vendor: 4,232 bytes, line 1
1!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=209)}([function(t,e,n){"use strict";n.d(e,"l",(function(){return c})),n.d(e,"m",(function(){return s})),n.d(e,"e",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"k",(function(){return h})),n.d(e,"I",(function(){return f})),n.d(e,"r",(function(){return p})),n.d(e,"x",(function(){return m})),n.d(e,"S",(function(){return g})),n.d(e,"P",(function(){return v})),n.d(e,"T",(function(){return b})),n.d(e,"W",(function(){return x})),n.d(e,"Y",(function(){return _})),n.d(e,"R",(function(){return S})),n.d(e,"K",(function(){return w})),n.d(e,"s",(function(){return A})),n.d(e,"p",(function(){return E})),n.d(e,"f",(function(){return T})),n.d(e,"U",(function(){return q})),n.d(e,"V",(function(){return I})),n.d(e,"X",(function(){return O})),n.d(e,"Q",(function(){return P})),n.d(e,"J",(function(){return N})),n.d(e,"i",(function(){return D})),n.d(e,"u",(function(){return B})),n.d(e,"v",(function(){return j})),n.d(e,"b",(function(){return R})),n.d(e,"w",(function(){return H})),n.d(e,"N",(function(){return z})),n.d(e,"O",(function(){return F})),n.d(e,"E",(function(){return G})),n.d(e,"A",(function(){return W})),n.d(e,"B",(function(){return U})),n.d(e,"C",(function(){return Y})),n.d(e,"D",(function(){return V})),n.d(e,"F",(function(){return X})),n.d(e,"t",(function(){return $})),n.d(e,"H",(function(){return K})),n.d(e,"y",(function(){return J})),n.d(e,"z",(function(){return Z})),n.d(e,"G",(function(){return Q})),n.d(e,"g",(function(){return tt})),n.d(e,"L",(function(){return et})),n.d(e,"M",(function(){return nt})),n.d(e,"d",(function(){return it})),n.d(e,"h",(function(){return rt})),n.d(e,"o",(function(){return ot})),n.d(e,"n",(function(){return at})),n.d(e,"q",(function(){return ct})),n.d(e,"j",(function(){return st})),n.d(e,"a",(function(){return lt}));var i=n(6),r=n(4),o=n(10);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var c={XS:0,SM:768,MD:1024,LG:1200,XL:1201},s={ESCAPE:27,ENTER:13,ARROW_DOWN:40,ARROW_UP:38,ARROW_RIGHT:39,ARROW_LEFT:37,SPACE:32,TAB:9},l={ANDROID:"android",IPAD:"ipad",MOBILE:"mobile",PHONE:"phone",IPHONE:"iphone",IEMOBILE:"iemobile",FILTER_MOBILE:"Mobile",FILTER_DESKTOP:"Desktop",FILTER_TABLET:"Tablet"},u={BROWSER_TYPE:"Chrome",CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",TRIDENT:"Trident",EDGE:"Edge",SAFARI:"Safari"},d={GROUP:"Group",DIRECT:"Direct",AFFINITY_NONTRAVEL:"Affinity-Non-Travel",AFFINITY_TRAVEL:"Affinity-Travel",AFFILIATES:"Affiliates"},h={Group:"EMP",Direct:"DMK","Affinity-Non-Travel":"AFF","Affinity-Travel":"AFF",Affiliates:"AFF"},f="isCookiesPath",p={ANDROID:"android",MAC:"mac",LANG:"en"},m={ANDROIDURL:"https://market.android.com/details?id=com.td&feature=search_result",MACURL:"http://itunes.apple.com/ca/app/td/id358790776?mt=8",OTHERENURL:"https://www.td.com/ca/en/personal-banking/solutions/ways-to-bank/?tdtab=digital-banking",OTHERFRURL:"https://www.td.com/ca/fr/services-bancaires-personnels/solutions/services-bancaires/?tdtab=Tab_services-bancaires-numeriques"},g={en:{search_result:"/ca/en/asset-management/search-results",fund_mf:"/ca/en/asset-management/funds/solutions/mutual-funds/FundCard",fund_etf:"/ca/en/asset-management/funds/solutions/etfs
1/FundCard"},fr:{search_result:"/ca/fr/gestion-de-placements-td/recherche",fund_mf:"/ca/fr/gestion-de-placements-td/fonds/solutions/fonds-mutuels/sommaire-du-fonds",fund_etf:"/ca/fr/gestion-de-placements-td/fonds/solutions/fnb/fretf"}};function y(){if(""!==location.hash){var t,e,n,i,r,o=location.hash.split("&");if(null!==(r=document.querySelector(o[0]))){e=r.getBoundingClientRect(),t=null!==document.querySelector("header")?document.querySelector("header").offsetHeight:0,i=e.top+window.scrollY;var a=0;if(o[1]){var c=o[1].split("=");if(c[1]){var s=document.querySelector("#"+c[1]);a=s.offsetTop,s.setAttribute("tabindex","-1"),s.focus()}}var l=i+a,u=0;if(document.getElementsByClassName("cmp-floating-container").length>0){var d=document.getElementById("start-hidden")&&document.getElementById("start-hidden").value;document.getElementById(d).offsetTop<l&&(u=65)}n=i+a-t-u,window.scrollTo({top:n,behavior:"smooth"})}}}function v(t){t.checkboxInput.addEventListener("click",(function(){b(this.checked,t),this.parentElement.querySelector(".checkbox-wrapper").focus(),i.a.disableCompareCheckBox(this.checked,2,1)})),t.checkboxWrap.addEventListener("keydown",(function(e){!function(t,e){("keydown"===t.type&&t.keyCode===s.ENTER||t.keyCode===s.SPACE)&&(t.preventDefault(),e.checkboxInput.checked=!e.checkboxInput.checked,b(e.checkboxInput.checked,e),i.a.disableCompareCheckBox(e.checkboxInput.checked,2,1))}(e,t)}))}function b(t,e){if(e)if(null!==document.querySelector(".cmp-compare-sticky-drawer"))e.checkboxInput&&(e.checkboxInput.checked=t),t?!1===i.a.numberOfCheckboxChecked(e)?e.checkboxInput&&e.checkboxInput.nextElementSibling.classList.remove("checkbox-checked"):(r.a.setProductLocalStorage(e.prodName,e.prodImg,e.prodUrl,e.prodType,e.prodId,e.specialOffer,e.lang,e.compType),i.a.checkBoxChecked(e),e.checkboxInput&&(e.checkboxInput.nextElementSibling.classList.add("checkbox-checked"),e.checkboxInput.nextElementSibling.querySelector(".checkbox-wrapper").setAttribute("aria-checked",t))):(r.a.deleteProductLocalStorage(e.prodType,e.prodId,e.lang),i.a.checkBoxUnChecked(e),e.checkboxInput&&(e.checkboxInput.nextElementSibling.classList.remove("checkbox-checked"),e.checkboxInput.nextElementSibling.querySelector(".checkbox-wrapper").setAttribute("aria-checked",t)));else if(null!==document.querySelector(".cmp-td-flex-comparison .cmp-flex-comparison-table")||null!==document.querySelector(".cmp-compare-table"))if(t){if(!0===i.a.numberOfCheckboxChecked(e)){var n="prod_ids_"+e.prodType+"_"+e.lang;null!=r.a.localStorageGetItem(n)&&""!=r.a.localStorageGetItem(n)&&(r.a.localStorageids_arr=decodeURIComponent(r.a.localStorageGetItem(n)).split(",")),r.a.setProductLocalStorage(e.prodName,e.prodImg,e.prodUrl,e.prodType,e.prodId,e.specialOffer,e.lang,e.compType)}}else r.a.checkLocalStorageIdsInList(e.prodType,e.lang,e.prodId)&&r.a.deleteProductLocalStorage(e.prodType,e.prodId,e.lang)}function x(t){var e={desktopMaxCheck:2,mobMaxCheck:1,gotoDrawerTimeOut:600};return e.prodName=t.getAttribute("data-cardName"),e.prodId=t.getAttribute("data-cardId"),e.prodImg=t.getAttribute("data-cardImg"),e.prodType=t.getAttribute("data-cardType"),e.lang=t.getAttribute("data-cardLang"),e.specialOffer=t.getAttribute("data-cardSpecialOffer"),e.prodUrl=t.getAttribute("data-cardDescriptionUrl"),e.compType=t.getAttribute("data-cardComponentType"),e.checkboxInput=t.querySelector(".checkbox-input"),e.checkboxLabel=t.querySelector(".checkbox-inputlabel"),e.checkboxWrap=t.querySelector(".checkbox-wrapper"),e}function _(){var t=document.querySelectorAll(".cmp-accordion__panel"),e=new MutationObserver((function(t){t.forEach((function(t){var e=t.target.querySelectorAll("a, .cmp-accordion__chevron-link, .cmp-button");null!==e&&("attributes"===t.type&&"aria-hidden"===t.attributeName&&"true"===t.target.ariaHidden?e.forEach((function(t){t.setAttribute("tabindex","-1")})):"attributes"===t.type&&"aria-hidden"===t.attributeName&&"false"===t.target.ariaHidden&&e.forEach((function(t){t.removeAttribute("tabindex")})))}))}));t&&t.forEach((function(t){var n=t.querySelectorAll("a, .cmp-accordion__chevron-link, .cmp-button");
1n&&n.forEach((function(t){t.setAttribute("tabindex","-1")})),e.observe(t,{attributes:!0})}))}function S(t){var e=new Event(t);window.dispatchEvent(e)}window.addEventListener("load",(function(){setTimeout((function(){var t,e;y(),function(){var t=document.querySelectorAll("[data-currentDate]");if(null!==t){var e=new Date,n=e.getDate()-1,i=["01","02","03","04","05","06","07","08","09","10","11","12"][e.getMonth()]+"/"+["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"][n]+"/"+e.getFullYear();t.forEach((function(t){null!==t&&"true"==t.getAttribute("data-currentDate")&&(t.innerHTML=i)}))}}(),function(){var t=document.querySelectorAll("[disclaimer-token-unique_id]");if(null!==t&&t.length>0){var e=JSON.parse(disclaimersMap).disclaimerBeanWrapperList;t.forEach((function(t){null!==t&&null!==e&&e.forEach((function(e){t.getAttribute("disclaimer-token-unique_id")===e.id&&(t.innerHTML=e.displayId)}))}))}}(),null!==(t=document.querySelectorAll(".role-as-presentation"))&&t.forEach((function(t){if(null!==t){var e=t.querySelectorAll("table");null!==e&&e.forEach((function(t){t.setAttribute("role","presentation")}))}})),(e=document.querySelectorAll('a[href^="#tdApp"]'))&&e.forEach((function(t){var e=navigator.userAgent.toLowerCase();t.addEventListener("click",(function(t){t.preventDefault();var n=t.currentTarget.getAttribute("target"),i=t.currentTarget.getAttribute("href").split("#")[1].split("~"),r=n&&"_blank"===n?"_blank":"_self";e.indexOf(p.ANDROID)>-1?window.open(m.ANDROIDURL,r):e.indexOf(p.MAC)>-1?window.open(m.MACURL,r):null!==i[1]&&window.open(i[1],r)}))}))}),500)})),window.addEventListener("hashchange",(function(){y(),function(){var t,e,n=document.querySelector(".cmp-tabs"),i=location.hash,r=-1;if(n&&i){var o=n.querySelector(".cmp-tabs__tablist");t=o.children,e=t.length;for(var a=i.slice(1),c=0;c<e;c++){if(t[c].id===a){r=c;break}}}if(r>=0)for(var s=n.querySelectorAll(".cmp-tabs__tabpanel"),l=0;l<e;l++)l===r?(s[l].classList.add("cmp-tabs__tabpanel--active"),s[l].setAttribute("aria-hidden",!1),t[l].classList.add("cmp-tabs__tab--active"),t[l].setAttribute("aria-selected",!0),t[l].setAttribute("tabindex","0")):(s[l].classList.remove("cmp-tabs__tabpanel--active"),s[l].setAttribute("aria-hidden",!0),t[l].classList.remove("cmp-tabs__tab--active"),t[l].setAttribute("aria-selected",!1),t[l].setAttribute("tabindex","-1"))}();var t=window.location.toString();if(t.indexOf("#")>0){var e=t.substring(0,t.indexOf("#"));window.history.replaceState({},document.title,e)}}));var w="userSegments",A="province",E="ca_user_location";function L(t,e){t!==e?(C.cookieSetItem(w,e),o.a.updateUserSegReload(!0)):o.a.updateUserSegReload(!1)}var k,C={cookieGetItem:function(t){return t&&this.hasItem(t)?decodeURIComponent(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1")):null},hasItem:function(t){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},cookieSetItem:function(t,e,n,i){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"/",c="";if(n)switch(a(n)){case"number":c="; max-age="+n;break;case"string":c="; expires="+n;break;case"object":n.hasOwnProperty("toGMTString")&&(c="; expires="+n.toGMTString())}document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+c+(i?"; domain="+i:"")+(o?"; path="+o:"")+(r?"; secure":"")}},T="document_referrer",M=r.a.localStorageGetItem(T);function q(){var t=window.location.host.split(".");return"td.com"===t[1]+"."+t[2]}function I(){var t="/"+window.location.pathname.split("/").slice(1,2).join("/");return localStorage.setItem(f,!0),t}function O(t,e){return null===t||e?null!==t&&e?t=e+"/?imageId="+t:"":t}function P(t){return(new DOMParser).parseFromString(t,"text/html").body.innerHTML}M&&(Object.defineProperty(document,"referrer",{get:function(){return M}}),r.a.localStorageSetItem(T,"")),(k=document.body).addEventListener("keydown",(function(t){k.classList.remove("td-no-focus-outline")})),k.addEventListener("mousedown",(function(t){k.classList.add("td-no-focus-outline")})),document.addEventListener("click",(function(t){if(t.currentTarget.activeElement.classList&&!t.currentTarget.activeElement.classList.contains("cmp-header-utility-bar__selectedProvince")){var e=document.querySelector(".cmp-header-utility-bar__dropdown--content");
1if(e&&!e.classList.contains("hide")){e.classList.add("hide");var n=document.querySelector(".cmp-header-utility-bar__selectedProvince");if("true"===n.getAttribute("aria-expanded")){n.setAttribute("aria-expanded",!1);var i=n.getElementsByClassName("dropdown-collapsed"),r=n.getElementsByClassName("dropdown-expanded");Array.from(i).forEach((function(t){t.classList.remove("hide")})),Array.from(r).forEach((function(t){t.classList.add("hide")}))}}}})),document.addEventListener("click",(function(t){if(t.currentTarget.activeElement.classList&&!t.currentTarget.activeElement.classList.contains("cmp-header-utility-bar__selectedLanguageValue")){var e=document.querySelector(".cmp-header-utility-bar__dropdown--content--language");if(e&&!e.classList.contains("hide")){e.classList.add("hide");var n=document.querySelector(".cmp-header-utility-bar__selectedLanguageValue");if("true"===n.getAttribute("aria-expanded")){n.setAttribute("aria-expanded",!1);var i=n.getElementsByClassName("dropdown-collapsed"),r=n.getElementsByClassName("dropdown-expanded");Array.from(i).forEach((function(t){t.classList.remove("hide")})),Array.from(r).forEach((function(t){t.classList.add("hide")}))}}}})),document.addEventListener("click",(function(t){if(t.currentTarget.activeElement.classList&&!t.currentTarget.activeElement.classList.contains("cmp-header-utility-bar__selectedCountry")){var e=document.querySelector(".cmp-header-utility-bar__dropdown--content--country");if(e&&!e.classList.contains("hide")){e.classList.add("hide");var n=document.querySelector(".cmp-header-utility-bar__selectedCountry");if("true"===n.getAttribute("aria-expanded")){n.setAttribute("aria-expanded",!1);var i=n.getElementsByClassName("dropdown-collapsed"),r=n.getElementsByClassName("dropdown-expanded");Array.from(i).forEach((function(t){t.classList.remove("hide")})),Array.from(r).forEach((function(t){t.classList.add("hide")}))}}}})),"undefined"!=typeof personalizationEnabled&&"true"===personalizationEnabled?(function(){var t=window.location.href,e=new URL(t).searchParams.get("userseg"),n=d.DIRECT,i=C.cookieGetItem(w);e?!function(t){var e=t;return Object.keys(d).some((function(t){return d[t]===e}))}(e)?L(i,n):L(i,e):userSegment?L(i,userSegment.split(":")[1]):i?o.a.updateUserSegReload(!1):(C.cookieSetItem(w,n),o.a.updateUserSegReload(!0))}(),function(){var t=C.cookieGetItem(A);if(province){var e=province.split("/");t!==e[1]?(C.cookieSetItem(A,e[1]),o.a.updateProvinceReload(!0)):o.a.updateProvinceReload(!1)}else if(province||t)o.a.updateProvinceReload(!1);else{var n=C.cookieGetItem(E);if(n){var i=JSON.parse('{"'+n.split("|").join('","').split("=").join('":"')+'"}');i.province?(C.cookieSetItem(A,i.province.toUpperCase()),o.a.updateProvinceReload(!0)):o.a.updateProvinceReload(!1)}else o.a.updateProvinceReload(!1)}}()):(o.a.updateUserSegReload(!1),o.a.updateProvinceReload(!1));var N=".td.com",D="privBan",B="RecentItems",j="RecentItems",R="infositeCookie",H="regionId",z="uscustomerloc",F="VARLINK",G="tdb-rates",W="tdb-heloan",U="tdb-heloan-pricing-detail",Y="tdb-heloc",V="tdb-heloc-pricing-detail",X="tdb-sb-rates",$="Rates may have been updated",K="tdct-resl",J="tdb-fro-calculator",Z="tdbFroCalculator",Q="tdct-gic",tt="eapply_user_loc",et="user_info",nt={NOPROVINCECHANGE:"NO_PROVINCE_CHANGE_IN_CA",PROVINCECHANGE:"PROVINCE_CHANGE_IN_CA",OUTOFCANADA:"IDENTIFIED_OUT_CA"},it="country",rt="ems_province_ems_country",ot="fr",at="en",ct="MF",st="ETF",lt=404},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return d})),n.d(e,"f",(function(){return h})),n.d(e,"g",(function(){return g}));var i=n(0);function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=function(t,e){var n;return function(i){n&&clearTimeout(n),n=setTimeout(t,e,i)}},c=function(t,e){var n=t.offsetHeight;if(e){var i=t.currentStyle||getComputedStyle(t);n+=parseInt(i.marginTop)+parseInt(i.marginBottom)}return n},s=function(t,e,n,i){var r=0,o=0,a=new Array,s=0;return function(t,e,n,i){var r=document.querySelector("#"+n),o=r.querySelectorAll(t),a=r.querySelectorAll(e);if(o.length===a.length)for(var c=0;c<o.length;c++)i(o[c],a[c],c)}(t,e,n,(function(t,e,n){if(!0===i&&(t.style.height="auto"),t.style.minHeight="auto",s=e.offsetTop,o!==s){for(var l=0;l<a.length;l++)!0===i&&(a[l].style.height=r+"px"),a[l].style.minHeight=r+"px";a.length=0,o=s,r=c(t,!1),a.push(t)}else a.push(t),r=r<c(t,!1)?c(t,!1):r;for(var u=0;u<a.length;u++)!0===i&&(a[u].style.height=r+"px"),a[u].style.minHeight=r+"px"})),r},l=function(){var t=navigator.userAgent;return t.indexOf(i.c.FIREFOX)>-1?i.c.FIREFOX:t.indexOf(i.c.OPERA)>-1?i.c.OPERA:t.indexOf(i.c.TRIDENT)>-1?i.c.TRIDENT:t.indexOf(i.c.EDGE)>-1?i.c.EDGE:t.indexOf(i.c.CHROME)>-1?i.c.CHROME:t.indexOf(i.c.SAFARI)>-1?i.c.SAFARI:"all"},u=function(){var t=null,e=navigator.userAgent;return e.toLowerCase().indexOf(i.e.ANDROID)>-1&&!(e.toLowerCase().indexOf(i.e.MOBILE)>-1)||e.toLowerCase().indexOf(i.e.IPAD)>-1?t=i.e.FILTER_TABLET:e.toLowerCase().indexOf(i.e.MOBILE)>-1||e.toLowerCase().indexOf(i.e.PHONE)>-1?(e.toLowerCase().indexOf(i.e.ANDROID)>-1||e.toLowerCase().indexOf(i.e.IPHONE)>-1||e.toLowerCase().indexOf(i.e.IEMOBILE)>-1)&&(t=i.e.FILTER_MOBILE):t=i.e.FILTER_DESKTOP,t},d=function(t){var e=document.createElement("template");return e.innerHTML=t,e.content.childNodes[0]},h=function(){var t="",e="";
1return JSON.parse(province_list).provinces.forEach((function(n){!0===n.defaultProvince&&(t=n.key,e=n.name)})),{defaultProvince:t,defaultCity:e}},f=function(t){return null==t},p=function(t,e){var n=t.classList.toString(),i=new MutationObserver((function(o){var a,c=r(o);try{for(c.s();!(a=c.n()).done;){if("class"===a.value.attributeName){var s=t.classList.toString();if(s!==n){e(i),n=s,i.disconnect();break}}}}catch(t){c.e(t)}finally{c.f()}}));return i.observe(t,{attributes:!0}),i},m=function(t){t.querySelectorAll(".cmp-image__image--is-loading").forEach((function(t){t.dispatchEvent(new Event("cmp-image-redraw"))}))},g={removeHtmlTag:function(t){return decodeURIComponent(t).trim().replace(/(<([^>]+)>)/gi,"").replace(/[<>,=]/gi,"").trim()},decodeHtmlEntity:function(t){var e=document.createElement("textarea");return e.innerHTML=t,e.value},isEmpty:function(t){return f(t)||""===t},isNull:f,getQueryParamValue:function(t){return new URLSearchParams(window.location.search).get(t)},onClassChangeEventListener:p,lazyLoadingEqualHeight:function(t,e){var n=document.querySelectorAll(".".concat(t));n&&n.forEach((function(t){p(t,(function(t){e()}))}))},compLazyImgRedraw:m,initModalImageLazyLoad:function(t){null==t||t.forEach((function(t){p(t,(function(e){m(t)})),t.querySelector(".cmp-dialog__details").addEventListener("scroll",(function(){m(t)}))}))},fetchJson:function(t,e,n){fetch(t).then((function(t){return t.json()})).then((function(t){return e(t)})).catch((function(t){return n(t)}))},setAttributes:function(t,e){for(var n in e)t.setAttribute(n,e[n])}}},function(t,e,n){"use strict";n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"j",(function(){return f})),n.d(e,"f",(function(){return p})),n.d(e,"h",(function(){return m})),n.d(e,"d",(function(){return g})),n.d(e,"k",(function(){return y})),n.d(e,"i",(function(){return v})),n.d(e,"g",(function(){return b}));var i=n(0),r=n(3),o=sessionStorage.getItem("session-id"),a="sessionID=".concat(o),c=!1;function s(t){c||Object(r.a)(t,"GET",l,u),c=!0}function l(t){c=!1,t.sessionID&&(o=t.sessionID,sessionStorage.setItem("session-id",o))}function u(t){c=!1,console.log(t)}function d(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t&&(e&&(t.innerHTML=""),n&&(t.querySelector(".content").innerHTML=""),i&&h(t))}function h(t){t&&t.classList.add("hidden")}function f(t){t&&t.classList.remove("hidden")}function p(t,e){t.relatedTarget||d(e,!0,!1)}function m(t){try{JSON.parse(t)}catch(t){return!1}return!0}function g(t,e,n,i,o,c,s){t.length>=i?Object(r.a)(e+t+"&".concat(a),"GET",c,u,{},s,n,o):d(s,!0,!1)}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";d(e,!0,!1),e&&t.forEach((function(t,o){if(o<n){if(null!==t.error)return!1;f(e);var a=document.createElement("button");a.classList.add("autoSuggestHeaderDropdown__suggestion-item");var c=e.appendChild(a);c.innerHTML=t.value,c.setAttribute("data-id",t.secret),c.addEventListener("mousedown",(function(e){v(r,t.value,!0)})),c.addEventListener("keyup",(function(e){e.keyCode!==i.m.ENTER&&e.keyCode!==i.m.SPACE||v(r,t.value,!0)}))}}))}function v(t,e,n){var i=n?9:1,r="".concat(t,"?query=").concat(b(e),"&source=").concat(i);window.location.href=r}function b(t){for(var e=new Array("&","'","Œ","œ","Š","š","Ÿ","ˆ","˜","–","—","‘","’","‚","“","”","„","†","‡","…","‰","‹","›","€","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","ø","ù","ú","û","ü","ý","þ","ÿ","¡","¤","¢","£","¥","¦","§","¨","©","ª","«","¬","®","™","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","×","÷"),n=new Array("&","'","Å","Å","Å ","Å¡","Ÿ","Ë","Ë","â","â","â","â","â","â","â","â","â ","â¡","â¦","â°","â¹","âº","â¬","Ã","Ã","Ã","Ã","Ã","Ã
","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","à ","á","â","ã","ä","Ã¥","æ","ç","è","é","ê","ë","ì","Ã","î","ï","ð","ñ","ò","ó","ô","õ","ö","ø","ù","ú","û","ü","ý","þ","ÿ","¡","¤","¢","£","Â¥","¦","§","¨","©","ª","«","¬","®","â¢","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","Ã","÷"),i=0;i<e.length;i++){var r=new RegExp(e[i],"g");t=t.replace(r,n[i])}return t}},function(t,e,n){"use strict";function i(t,e,n,i,o){for(var a=arguments.length,c=new Array(a>5?a-5:0),s=5;s<a;s++)c[s-5]=arguments[s];var l={};switch("undefined"!=typeof isReadFromStub&&!0===isReadFromStub&&void 0!==jsonFileList[c[0].source]&&(t=stubFilePath+jsonFileList[c[0].source],e="GET",console.log(t)),e){case"GET":l={method:"GET",credentials:r(c)};break;
1case"POST":l={method:"POST",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(o)}}fetch(t,l).then((function(t){return t.json()})).then((function(t){return n.apply(void 0,[t].concat(c))})).catch((function(t){return i.apply(void 0,[t].concat(c))}))}function r(t){var e="same-origin";return t&&Array.isArray(t)&&t.forEach((function(t){e=t.hasOwnProperty("credentials")?"include":"same-origin"})),t&&!Array.isArray(t)&&(e=t.hasOwnProperty("credentials")?"include":"same-origin"),e}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(0);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o={recentArr:[],localStorageids_arr:[],max_card_num:3,maxRecentlyViewed:3,localStorageGetItem:function(t){if(window.localStorage){var e=localStorage.getItem(t);return e&&/^[\],:{}\s]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))&&(e=JSON.parse(e)),e}},localStorageSetItem:function(t,e){if(window.localStorage){switch(r(e)){case"object":case"number":e=JSON.stringify(e)}return localStorage.setItem(t,e),!0}},localStorageRemoveItem:function(t){if(window.localStorage)return localStorage.removeItem(t),!0},localStorageRemoveAll:function(){if(window.localStorage)return localStorage.clear(),!0},localStorage_name:function(t,e){return t+"_"+e},setProductLocalStorage:function(t,e,n,i,r,a,c,s){var l=o.localStorage_name(c,i);l=o.localStorage_name(l,r);for(var u=["name","img","url","type","id","s_offer","cp_type"],d=[t,e,n,i,r,a,s],h=0;h<u.length;h++)o.localStorageSetItem(o.localStorage_name(l,u[h]),d[h]);o.add_localStorage_id(l,i,c)},deleteProductLocalStorage:function(t,e,n){var i=o.localStorage_name(n,t);i=o.localStorage_name(i,e);for(var r=["name","img","url","type","id","s_offer","cp_type"],a=0;a<r.length;a++)o.localStorageRemoveItem(o.localStorage_name(i,r[a]));o.delete_localStorage_id(i,t,n)},add_localStorage_id:function(t,e,n){o.localStorageids_arr.indexOf(t)<0&&o.localStorageids_arr.push(t);var i="prod_ids_"+e+"_"+n;o.localStorageSetItem(i,encodeURIComponent(o.localStorageids_arr.join(",")))},delete_localStorage_id:function(t,e,n){var i=o.localStorageids_arr.indexOf(t);i>-1?o.localStorageids_arr.splice(i,1):console.log("del_localStorage_id not found "+t+", "+o.localStorageids_arr.join(","));var r="prod_ids_"+e+"_"+n;o.localStorageSetItem(r,encodeURIComponent(o.localStorageids_arr.join(",")))},canCompareProduct:function(t,e){var n="prod_ids_"+t+"_"+e;return o.localStorageids_arr=decodeURIComponent(o.localStorageGetItem(n)).split(","),o.count_card_num=o.localStorageids_arr.length,o.count_card_num>=o.max_card_num},checkLocalStorageIdsInList:function(t,e,n){var i="prod_ids_"+t+"_"+e;if(null!=o.localStorageGetItem(i)&&""!=o.localStorageGetItem(i))return o.localStorageids_arr=decodeURIComponent(o.localStorageGetItem(i)).split(","),o.localStorageids_arr.indexOf(e+"_"+t+"_"+n)>-1;o.localStorageids_arr=[]},recentCardItem:function(t,e){if(o.maxRecentlyViewed>0){var n=o.recentLocalStorageValue(t,e);null!=n&&o.localStorageSetItem("".concat(i.v,"_").concat(e),n)}},recentLocalStorageValue:function(t,e){var n=o.localStorageGetItem("".concat(i.v,"_").concat(e));if(null===n||""===n)return"".concat(t);var r=n.toString().split("|");r.includes(t)||(r.length>=o.maxRecentlyViewed?(r.pop(),r.splice(0,0,t)):r.unshift(t),n=r.reduce((function(t,e){return"".concat(t,"|").concat(e)})));return n},checkRecent:function(t,e){var n=o.localStorageGetItem("".concat(i.v,"_").concat(e));return null!=n&&n.toString().split("|").includes(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(0);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o={recentArr:[],cookieids_arr:[],max_card_num:3,maxRecentlyViewed:3,cookieGetItem:function(t){return t&&this.hasItem(t)?decode
1URIComponent(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1")):null},hasItem:function(t){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},cookieSetItem:function(t,e,n,i){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"/",c="";if(n)switch(r(n)){case"number":c="; max-age="+n;break;case"string":c="; expires="+n;break;case"object":n.hasOwnProperty("toGMTString")&&(c="; expires="+n.toGMTString())}document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+c+(i?"; domain="+i:"")+(a?"; path="+a:"")+(o?"; secure":"")},cookieSetAuthenticated:function(t,e,n,i){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"/",c="";if(n)switch(r(n)){case"number":c="; max-age="+n;break;case"string":c="; expires="+n;break;case"object":n.hasOwnProperty("toGMTString")&&(c="; expires="+n.toGMTString())}document.cookie=encodeURIComponent(t)+"="+e+c+(i?"; domain="+i:"")+(a?"; path="+a:"")+(o?"; secure":"")},cookieRemoveItem:function(t,e,n){if(!t||!this.hasItem(t))return!1;document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:"")+(e?"; path="+e:"")},cookie_name:function(t,e){return t+"_"+e},deleteProductCookie:function(t,e,n){var i=o.cookie_name(n,t);i=o.cookie_name(i,e);for(var r=["name","img","url","type","id","s_offer","cp_type"],a=0;a<r.length;a++)o.cookieRemoveItem(o.cookie_name(i,r[a]));o.delete_cookie_id(i,t,n)},add_cookie_id:function(t,e,n){o.cookieids_arr.indexOf(t)<0&&o.cookieids_arr.push(t);var i="prod_ids_"+e+"_"+n;o.cookieSetItem(i,encodeURIComponent(o.cookieids_arr.join(",")))},delete_cookie_id:function(t,e,n){var i=o.cookieids_arr.indexOf(t);i>-1?o.cookieids_arr.splice(i,1):console.log("del_cookie_id not found "+t+", "+o.cookieids_arr.join(","));var r="prod_ids_"+e+"_"+n;o.cookieSetItem(r,encodeURIComponent(o.cookieids_arr.join(",")))},canCompareProduct:function(t,e){var n="prod_ids_"+t+"_"+e;return o.cookieids_arr=decodeURIComponent(o.cookieGetItem(n)).split(","),o.count_card_num=o.cookieids_arr.length,o.count_card_num>=o.max_card_num},checkCookieIdsInList:function(t,e,n){var i="prod_ids_"+t+"_"+e;if(null!=o.cookieGetItem(i)&&""!=o.cookieGetItem(i))return o.cookieids_arr=decodeURIComponent(o.cookieGetItem(i)).split(","),o.cookieids_arr.indexOf(e+"_"+t+"_"+n)>-1;o.cookieids_arr=[]},recentCardItem:function(t,e){if(o.maxRecentlyViewed>0){var n=o.recentCookieValue(t,e);if(null!=n){var r=new Date;r.setTime(r.getTime()+31536e6);var a="expires="+r.toUTCString();document.cookie="".concat(i.u,"_").concat(e,"=")+n+";expires="+a+";path=/;secure"}}},recentCookieValue:function(t,e){var n=o.cookieGetItem("".concat(i.u,"_").concat(e));if(null===n||""===n)return"".concat(t);var r=n.split("|");r.includes(t)||(r.length>=o.maxRecentlyViewed?(r.pop(),r.splice(0,0,t)):r.unshift(t),n=r.reduce((function(t,e){return"".concat(t,"|").concat(e)})));return n},checkRecent:function(t,e){var n=o.cookieGetItem("".concat(i.u,"_").concat(e));return null!=n&&n.split("|").includes(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n(4),r=function(t){var e=0;t.forEach((function(t){t.style.height=null,t.clientHeight>e&&(e=t.clientHeight)})),t.forEach((function(t){t.style.height="".concat(e,"px")}))},o=n(34),a=n(9),c=n(19),s=n(14),l=n(0);function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return d(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var h={getLabels:function(){var t=document.querySelector(".cmp-compare-sticky-drawer");return["remove-label","special-offer-flag","hint-text","add-prod-cta-url","add-prod-img","addProd-image-src"].reduce((function(e,n){return e[n]=t.getAttribute("data-".concat(n)),e}),{})},scrollHandler:function(){var t=document.querySelector(".cmp-compare-sticky-drawer");Object(s.b)(t)},adjustCardHeight:function(){var t=document.querySelectorAll(".cmp-compare-sticky-drawer .cmp-compare-sticky-drawer__col .cmp-compare-sticky-drawer__offer").length;document.querySelectorAll(".cmp-compare-sticky-drawer .cmp-compare-sticky-drawer__col").forEach((function(e){e.querySelector("h3")&&(e.querySelector(".special-offer-ribbon")||0==t?e.querySelector("h3").classList.remove("no-flag"):e.querySelector("h3").classList.add("no-flag"))}))},disableOrRemoveDrawer:function(){var t=this,e=document.querySelector(".cmp-compare-sticky-drawer"),n=e.querySelectorAll("[".concat("data-prodI
1d","]")).length,i=e.querySelector("#cmp-compare-sticky-drawer__compare-btn");n<=1?(i.classList.add("disabled"),i.disabled=!0):(i.classList.remove("disabled"),i.disabled=!1),n<1&&(Object(s.b)(),setTimeout((function(){e.style.display="none",document.removeEventListener("scroll",t.scrollHandler)}),250))},removeProduct:function(t){var e=document.querySelector(".cmp-compare-sticky-drawer"),n=e.getAttribute("data-cardLang"),r=e.getAttribute("data-cardType"),c=t.getAttribute("data-prodId").replace("".concat(n,"_").concat(r,"_"),""),s=this.getLabels();if(t.innerHTML=Object(o.b)(s),t.classList.add("empty"),t.removeAttribute("data-prodId"),h.checkOnPageOfCatlog(),i.a.deleteProductLocalStorage(r,c,n),!i.a.checkLocalStorageIdsInList(r,n,c)){var l=document.querySelector("#".concat(r,"_").concat(c," + .checkbox-inputlabel")),u=document.querySelector(".checkbox-wrapper"),d=document.querySelector("input#".concat(r,"_").concat(c));null!==u&&u.setAttribute("aria-checked","false"),null!==d&&(d.checked=!1,l.classList.remove("checkbox-checked"),l.classList.remove("checkbox-checked"),l.querySelector(".checkbox-wrapper").setAttribute("aria-checked","false"))}this.disableOrRemoveDrawer(),this.adjustCardHeight(),h.setEqualHeightOfOfferFlag(),h.setEqualHeightOfTitle(),this.disableCompareCheckBox(!1,2,1),Object(a.c)(e)},addProdHandler:function(t){var e,n=document.querySelector(".cmp-compare-sticky-drawer"),i=n.getAttribute("data-cardLang"),r=n.getAttribute("data-cardType"),c=".cmp-compare-sticky-drawer__col:not([".concat("data-prodId","]):not(:last-of-type)"),s=n.querySelectorAll(c),l=this.getLabels(),d=0,f=u(s);try{for(f.s();!(e=f.n()).done;){var p=e.value;if(t.length>0&&t[d]){var m="".concat(i,"_").concat(r,"_").concat(t[d].id);p.setAttribute("data-prodId",m),p.innerHTML=Object(o.a)(t[d],l),p.classList.add("addToDrawer");h.setTimeoutAnimation("addToDrawer",p,1500)}else p.innerHTML=Object(o.b)(l);d++}}catch(t){f.e(t)}finally{f.f()}this.addRemoveProdListener(),this.addClearProdsListener(),1===n.querySelectorAll("[".concat("data-prodId","]")).length&&document.addEventListener("scroll",h.scrollHandler),h.setEqualHeightOfTitle(),h.setEqualHeightOfOfferFlag(),Object(a.c)(n),this.adjustCardHeight()},setTimeoutAnimation:function(t,e,n){setTimeout((function(){e.classList.remove(t)}),n)},addRemoveProdListener:function(){var t,e=this,n=document.querySelector(".cmp-compare-sticky-drawer"),i=u(n.getElementsByClassName("cmp-compare-sticky-drawer__remove-prod-btn"));try{for(i.s();!(t=i.n()).done;){t.value.addEventListener("click",(function(t){var i=t.currentTarget.closest(".cmp-compare-sticky-drawer__col");i.classList.add("removeFromDrawer");h.setTimeoutAnimation("removeFromDrawer",i,500),e.removeProduct(i),h.addOverlayCompareModel(n),h.setEqualHeightOfOfferFlag(),h.setEqualHeightOfTitle()}))}}catch(t){i.e(t)}finally{i.f()}this.adjustCardHeight()},addClearProdsListener:function(){var t=this,e=document.querySelector(".cmp-compare-sticky-drawer"),n=e.querySelector("#cmp-compare-sticky-drawer__clear-btn");n.addEventListener("click",(function(n){n.stopPropagation();var i,r=u(e.querySelectorAll(".cmp-compare-sticky-drawer__col[".concat("data-prodId","]")));try{for(r.s();!(i=r.n()).done;){var o=i.value;t.removeProduct(o)}}catch(t){r.e(t)}finally{r.f()}Object(s.a)("30px","9000")})),this.adjustCardHeight()},setEqualHeightOfOfferFlag:function(){var t=document.querySelector(".cmp-compare-sticky-drawer").querySelectorAll(".offer");r(t)},setEqualHeightOfTitle:function(){var t=document.querySelector(".cmp-compare-sticky-drawer").querySelectorAll(".cmp-compare-sticky-drawer__col h3");r(t)},checkOnPageOfCatlog:function(){var t=document.querySelector(".cmp-compare-sticky-drawer");if("#cmp-modal~cmp-overlay-8-1-g-compare-modal-id"!==t.getAttribute("data-add-prod-cta-url")&&"true"===t.getAttribute("data-onBrowserCreditCard"))for(var e=document.querySelectorAll(".add-another"),n=0;n<e.length;n++)e[n].setAttribute("href","javascript:void(0);"),e[n].addEventListener("click",s.b)},checkBoxChecked:function(t){var e,n=document.querySelector(".cmp-compare-sticky-drawer");n.style.display="block",Object(s.c)(),document.addEventListener("scroll",h.scrollHandler);var i=t.selectedProdImageWrap;t.selectedProdImage=null!==(e=t.selectedProdImage)&&void 0!==e?e:i.querySelector("img"),h.handleAnimation(t.selectedProdImage,t.gotoDrawerTimeOut),setTimeout((function(){h.addProdHandler([{name:t.prodName,img:t.prodImg,url:t.prodUrl,type:t.prodType,id:t.prodId,s_offer:t.specialOffer,cp_type:t.compType}]);
1var e=n.querySelectorAll("[".concat("data-prodId","]")).length,i=n.querySelector("#cmp-compare-sticky-drawer__compare-btn");e<=1?(i.classList.add("disabled"),i.disabled=!0):(i.classList.remove("disabled"),i.disabled=!1),h.addOverlayCompareModel(n)}),t.gotoDrawerTimeOut)},checkBoxUnChecked:function(t){var e,n=document.querySelector(".cmp-compare-sticky-drawer"),i=n.querySelectorAll(".cmp-compare-sticky-drawer__col[".concat("data-prodId","]")),r=t.lang+"_"+t.prodType+"_"+t.prodId,o=u(i);try{for(o.s();!(e=o.n()).done;){var a=e.value;r==a.getAttribute("data-prodId")&&h.removeProduct(a)}}catch(t){o.e(t)}finally{o.f()}h.addOverlayCompareModel(n)},handleAnimation:function(t,e){var n=t.offsetParent.offsetWidth+1;0===t.offsetParent.offsetLeft?(t.classList.add("goToDrawerLTR"),setTimeout((function(){t.classList.remove("goToDrawerLTR")}),e)):t.offsetParent.offsetLeft===n?(t.classList.add("goToDrawerCenter"),setTimeout((function(){t.classList.remove("goToDrawerCenter")}),e)):(t.classList.add("goToDrawerRTL"),setTimeout((function(){t.classList.remove("goToDrawerRTL")}),e))},numberOfCheckboxChecked:function(){var t;null!==document.querySelector(".cmp-compare-sticky-drawer")?t=document.querySelector(".cmp-compare-sticky-drawer"):null!==document.querySelector(".cmp-td-flex-comparison .cmp-flex-comparison-table")?t=document.querySelector(".cmp-td-flex-comparison .cmp-flex-comparison-table"):null!==document.querySelector(".cmp-compare-table")&&(t=document.querySelector(".cmp-compare-table"));var e=t.getAttribute("data-cardLang"),n=t.getAttribute("data-cardType"),r="prod_ids_".concat(n,"_").concat(e),o=decodeURIComponent(i.a.localStorageGetItem(r));return(o&&"null"!==o?o.split(","):[]).length<=h.maxProductCount(2,1)},maxProductCount:function(t,e){var n=t;return window.innerWidth<l.l.SM&&(n=e),n},updateCheckboxStatus:function(t){i.a.checkLocalStorageIdsInList(t.prodType,t.lang,t.prodId)?(t.checkboxInput.nextElementSibling.classList.add("checkbox-checked"),t.checkboxInput.nextElementSibling.querySelector(".checkbox-wrapper").setAttribute("aria-checked",!0),t.checkboxInput.checked=!0):(t.checkboxInput.nextElementSibling.classList.remove("checkbox-checked"),t.checkboxInput.nextElementSibling.querySelector(".checkbox-wrapper").setAttribute("aria-checked",!1),t.checkboxInput.checked=!1)},addOverlayCompareModel:function(t){var e=t.querySelectorAll("[href='#cmp-modal~cmp-overlay-8-1-g-compare-modal-id']");null!==e&&0!==e.length&&e.forEach((function(t){t.addEventListener("click",c.a)}))},disableCompareCheckBox:function(t,e,n){var i;if(null!==document.querySelector(".cmp-compare-sticky-drawer")?i=document.querySelector(".cmp-compare-sticky-drawer"):null!==document.querySelector(".cmp-td-flex-comparison .cmp-flex-comparison-table")&&(i=document.querySelector(".cmp-td-flex-comparison .cmp-flex-comparison-table")),void 0!==i){var r=i.querySelectorAll("[".concat("data-prodId","]")).length,o=document.querySelectorAll(".compare-checkbox");t?r>=h.maxProductCount(e,n)&&o.forEach((function(t){0==t.querySelectorAll('input[type="checkbox"]:checked').length&&null!=t.querySelector('input[type="checkbox"]')&&(t.classList.add("disabled"),t.querySelector('input[type="checkbox"]').setAttribute("disabled",!0),t.querySelector(".checkbox-inputlabel").setAttribute("aria-hidden",!0),t.querySelector(".checkbox-wrapper").removeAttribute("tabindex"))})):o.forEach((function(t){null!=t.querySelector('input[type="checkbox"]')&&(t.classList.remove("disabled"),t.querySelector('input[type="checkbox"]').removeAttribute("disabled"),t.querySelector(".checkbox-inputlabel").removeAttribute("aria-hidden"),t.querySelector(".checkbox-wrapper").setAttribute("tabindex","0"))}))}}},f={init:function(){var t=document.querySelector(".cmp-compare-sticky-drawer");if(t){var e=t.getAttribute("data-cardLang"),n=t.getAttribute("data-cardType"),r="prod_ids_".concat(n,"_").concat(e);t.addEventListener("keydown",s.e),document.querySelector(".cmp-compare-sticky-drawer").querySelector(".cmp-compare-sticky-drawer__header").addEventListener("click",s.d),document.addEventListener("scroll",h.scrollHandler);var o,a=function(t){var e=decodeURIComponent(i.a.localStorageGetItem(t));return e&&"null"!==e?e.split(","):[]}(r),c=a.length,l=document.querySelectorAll(".compare-sticky-drawer");if(c>0){l.forEach((function(t){return t.style.opacity=1})),Object(s.b)();var u=(o=["name","img","url","type","id","s_offer","cp_type"],a.map((function(t){return o.reduce((function(e,n){return e[n]=i.a.localStorageGetItem("".concat(t,"_").concat(n)),e}),{})})));if(h.addProdHandler(u),h.disableOrRemoveDrawer(),1==c){var d=t.querySelector("#cmp-compare-sticky-drawer__compare-btn");d.classList.add("disabled"),d.disabled=!0}Object(s.a)("66px","1")}else h.disableOrRemoveDrawer(),setTimeout((function(){l.forEach((function(t){return t.style.opacity=1}))}),500);
1h.checkOnPageOfCatlog(),function(){var t=document.querySelector(".cmp-compare-sticky-drawer"),e=t.querySelector("#cmp-compare-sticky-drawer__compare-btn"),n=t.getAttribute("data-compare-page-link");e.addEventListener("click",(function(t){t.preventDefault(),window.location=n}))}(),h.setEqualHeightOfOfferFlag(),h.setEqualHeightOfTitle(),h.addOverlayCompareModel(t)}}};"loading"!==document.readyState?f().init():document.addEventListener("DOMContentLoaded",f.init)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(5),r=n(0),o={CANADA_COUNTRY:"ca",getCookieExpirydate:function(){var t=new Date;return t.setTime(t.getTime()+220752e6),"expires="+t.toUTCString()},setCookieFromGeoLocationAPI:function(){i.a.cookieSetItem(r.p,cookieValue,o.getCookieExpirydate())},setLocationCookie:function(t,e,n){var a=e,c=n,s=t,l=o.getLocationCookie(r.p),u="/";if(null!=l){var d=JSON.parse('{"'+l.split("|").join('","').split("=").join('":"')+'"}');a=d.city,c=d.country,s=d.province}var h=JSON.parse(localStorage.getItem(r.h));if((null==h?void 0:h.country)===o.CANADA_COUNTRY&&localStorage.setItem(r.h,JSON.stringify({province:s.toLowerCase(),country:h.country.toLowerCase()})),s!=t.toLowerCase()){var f="province="+t.toLowerCase()+"|city="+a+"|country="+c;Object(r.U)()&&(u=Object(r.V)()),sessionStorage.setItem(r.L,JSON.stringify({type:r.M.NOPROVINCECHANGE,manual:"true"})),i.a.cookieSetItem(r.p,f,o.getCookieExpirydate(),"",!0,u),i.a.cookieSetItem(r.g,f,o.getCookieExpirydate())}},getRegionData:function(){var t=o.getLocationCookie(r.p);return null===t||""===t?"":JSON.parse('{"'+t.split("|").join('","').split("=").join('":"')+'"}')},getProvinceFromCookie:function(){var t,e=o.getRegionData();return null===e||""===e?t="":e.province&&(t=e.province.toUpperCase()),t},getCountryCodeFromCookie:function(){var t=o.getRegionData();if(t.country)return t.country.toUpperCase()},getLocationCookie:function(t){for(var e=t+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i<n.length;i++){for(var r=n[i];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(e))return r.substring(e.length,r.length)}return""},getCurrentPageUrl:function(){var t=window.location.href;return t=(t="/"==t.charAt(t.length-1)?t.slice(0,-1):t).replace("#main","")},_prepareRedirectUrl:function(t,e,n,i){var r=t.split("/").pop().toLowerCase(),o=JSON.parse(province_list).provinces.findIndex((function(t){return t.redirectUrl.toLowerCase()===r}));if(!(o>-1&&""!==r)){if(n.length>0){if(e.length>0){if(n===e&&e!==r){if(""===r){var a=d(t,e,!0);return a||t+e}var c=d(t,e,!1);return c||t+"/"+e}var s=d(t,e,!1);return s||t.replace(/\/[^\/]*$/,"/"+e)}return t}if(e.length>0){if(""===r){var l=d(t,e,!0);return l||t+e}var u=d(t,e,!1);return u||t+"/"+e}return""}if(JSON.parse(province_list).provinces[o].key.toLowerCase()!==e.toLowerCase())return""===e.toLowerCase()?t.replace(/\/[^\/]*$/,""):t.replace(/\/[^\/]*$/,"/"+e);function d(t,e,n){return"undefined"!=typeof provinceCityPage&&"true"===provinceCityPage&&!0===i?(t=n?t.replace(/\/[^\/]*$/,"").replace(/\/[^\/]*$/,"").replace(/\/[^\/]*$/,""):t.replace(/\/[^\/]*$/,"").replace(/\/[^\/]*$/,""))+"/"+e:"undefined"!=typeof provinceCityPage&&"true"===provinceCityPage&&!1===i&&t}},getBaseUrl:function(t,e,n,i){var r,a=t.split("?"),c=a[0];if(c.indexOf(".html")>-1){var s=c.split(".html");""!==(r=o._prepareRedirectUrl(s[0],e,n,i))?r+=".html":r=c}else""===(r=o._prepareRedirectUrl(c,e,n,i))&&(r=c);return a[0]=r,c=a.join("?")},redirectLink:function(t){var e=JSON.parse(province_list).provinces.findIndex((function(e){return e.key.toLowerCase()===t.toLowerCase()}));return JSON.parse(province_list).provinces[e].redirectUrl},redirectToProvincePage:function(t,e){var n=o.getProvinceFromCookie(),a=o.getCurrentPageUrl(),c=o.redirectLink(n.toLowerCase());"undefined"!=typeof personalizationEnabled&&"true"===personalizationEnabled&&i.a.cookieSetItem(r.s,t.toUpperCase()),o.setLocationCookie(t.toLowerCase(),"","");var s=o.redirectLink(t),l=o.getBaseUrl(a,s,c,e);a===l&&t.toLowerCase()==n.toLowerCase()||window.location.replace(l)},getProvinceName:function(t){var e=JSON.parse(province_list).provinces.map((function(t){return t.key})).indexOf(t.toUpperCase());return JSON.parse(province_list).provinces[e].name}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i={filteredData:"No Data",elementToAppend:"",ratesResponse:{},getRatesResponse:function(t,e){i.ratesResponse[t]=e},getProductDetails:function(t,e){return i.ratesResponse[e].products.filter((function(e){e.akaName===t&&(i.filteredData=e)})),i.filteredData},getTermDetails:function(t,e,n){return i.getProductDetails(t,n).rates.filter((function(t){t.term===e&&(i.filteredData=t)})),i.filteredData},getValueDetails:function(t,e,n,r){return i.getTermDetails(t,e,r)[n]},getRatePercentageDetails:function(t,e,n,r,o){return i.getTermDetails(t,e,o)[n].filter((function(t){t.minDailyBalance===r&&(i.filteredData=t)})),i.filteredData},getMinBalanceAndRates:function(t,e,n,r,o){for(var a=[],c=0;c<r.length;++c){for(var s=[],l=0;l<n.length;++l){var u=void 0;if("minDailyBalance"===n[l])"null"!==(u="".concat(r[c].minDailyBalance))&&null!==u?s.push(u):s.push("None");else{if("year"===n[l]){var d=[],h=u=i.getRatePercentageDetails(t,e,"standardRates",r[c].minDailyBalance,o).currentAPY,f=h.split("<table")[0],p=h.split("<DD>").filter((function(t){return t.indexOf("</DD>")>-1})).map((function(t){return t.split("</DD>")[0]}));p.shift();var m=p.length;"year"===n[0]?d.unshift(["Composite APY",f]):d.unshift([f,"Composite APY"]);for(var g=0;g<m;++g){var y=p[g].replace(/ /g,",").split(",").filter((function(t){return t}));if("year"===n[0]){var v=[y[2],y[0]];d.push(v)}else{var b=[y[0],y[2]];d.push(b)}}return d}u=i.getRatePercentageDetails(t,e,n[l],r[c].minDailyBalance,o).currentAPY,s.push(u)}}a.push(s)}return a},appendTableData:function(t,e,n,r){var o=i.getValueDetails(e,n,"standardRates",r),a=t.querySelector("tbody"),c=a.querySelectorAll("tr td div"),s=[];
1c.forEach((function(t){s.push(t.getAttribute("data-value"))}));for(var l=i.getMinBalanceAndRates(e,n,s,o,r),u=0;u<l.length;++u){var d=a.insertRow(-1);d.classList.add("newRowAdded");for(var h=0;h<l[u].length;++h){d.insertCell(h).innerHTML=l[u][h]}}},appendRteTableData:function(t,e,n,r,o,a){var c=i.getValueDetails(e,n,"standardRates",a),s=o.length,l=document.createElement("table"),u=l.createTHead(),d=l.createTBody();l.classList.add("newRowAdded"),l.setAttribute("aria-readonly","true");for(var h=u.insertRow(-1),f=0;f<s;f++){var p=document.createElement("th");p.innerHTML=o[f],p.setAttribute("scope","col"),h.appendChild(p)}for(var m=i.getMinBalanceAndRates(e,n,r,c,a),g=0;g<m.length;g++)for(var y=d.insertRow(-1),v=0;v<m[g].length;v++){y.insertCell(v).innerHTML=m[g][v]}t.innerHTML="",t.appendChild(l)},getOptionToDom:function(t,e,n){t.map((function(t){null!==t[e]&&(i.elementToAppend=document.createElement("option"),i.elementToAppend.innerHTML=t[e],i.elementToAppend.setAttribute("value",t[e]),null!==n&&n.appendChild(i.elementToAppend))}))},hideElement:function(t){t.classList.add("hidden")},showElement:function(t){t.classList.remove("hidden")}}},function(t,e,n){"use strict";n.d(e,"c",(function(){return w})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return v}));var i=n(0),r=n(1);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=!1,c=new Array(0),s=function(t){var e;if(null===(e=t.id)||void 0===e||!e.startsWith("speed-bump")){for(var n=0;n<t.childNodes.length;n++){var i=t.childNodes[n];if(u(i)||s(i))return!0}return!1}t.focus()},l=function(t){var e;if(null===(e=t.id)||void 0===e||!e.startsWith("speed-bump")){for(var n=t.childNodes.length-1;n>=0;n--){var i=t.childNodes[n];if(u(i)||l(i))return!0}return!1}t.focus()},u=function(t){if(!d(t))return!1;a=!0;try{t.focus()}catch(t){}return a=!1,document.activeElement===t},d=function(t){if(t.tabIndex<0)return!1;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!=t.rel;case"INPUT":return"hidden"!=t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},h=function(t){return t.remove&&"function"==typeof t.remove?t.remove():!(!t.parentNode||!t.parentNode.removeChild||"function"!=typeof t.parentNode.removeChild)&&t.parentNode.removeChild(t)},f=function(){if(c&&c.length)return c[c.length-1]},p=function(){var t=f();return!!t&&(t.close(),!0)},m=function(t){(t.which||t.keyCode)===i.m.ESCAPE&&p()&&t.stopPropagation()},g=function(t,e){e?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")},y=function(t){var e=document.querySelector("footer"),n=document.querySelector("main");if(null!==n&&(g(n,t),n.setAttribute("aria-hidden",t)),null!==e&&(g(e,t),e.setAttribute("aria-hidden",t)),null!==document.querySelector(".cmp-overlay-8-1-l-modal-quote .active")){var i=document.querySelector(".header-utility-bar"),r=document.querySelector(".tdi-siteheader-navigation"),o=document.querySelector(".tdi-mobile-navigation-hamburger");null!==i&&(g(i,t),i.setAttribute("aria-hidden",t)),null!==r&&(g(r,t),r.setAttribute("aria-hidden",t)),null!==o&&(g(o,t),o.setAttribute("aria-hidden",t))}else{var a=document.querySelector("header");null!==a&&(g(a,t),a.setAttribute("aria-hidden",t))}};function v(t,e,n){var r=this;if(this.dialogNode=t,null===this.dialogNode)throw new Error('No element found with id="'+dialogId+'".');var a=["dialog","tooltip"],l=this.dialogNode.getAttribute("role")||"";if(!l.trim().split(/\s+/g).some((function(t){return a.some((function(e){return t===e}))})))throw new Error("Dialog() requires a DOM element with ARIA role of dialog or tooltip.");var u,d="dialog"===l?"dialog-backdrop":"tooltip-backdrop";if(this.dialogNode.parentNode.classList.contains(d)?this.backdropNode=this.dialogNode.parentNode:(this.backdropNode=document.createElement("div"),this.backdropNode.className=d,this.dialogNode.parentNode.insertBefore(this.backdropNode,this.dialogNode),this.backdropNode.appendChild(this.dialogNode)),this.backdropNode.classList.add("active"),"dialog"===l?(document.body.classList.add("has-dialog"),(u=this.backdropNode).addEventListener("click",(function(t){var e=t.target.querySelector('div[id^="speed-bump"]'),n=t.target.querySelector("#cmp-region-selector-modal");t.target!==u||e||n||p()}))):(document.body.classList.add("has-tooltip"),document.body.addEventListener("click",this.bodyClickListener,!0)),"string"==typeof e)this.focusAfterClosed=document.getElementById(e);else{if("object"!==o(e))throw new Error("the focusAfterClosed parameter is required for the aria.Dialog constructor.");this.focusAfterClosed=e}"string"==typeof n?this.focusFirst=document.getElementById(n):"object"===o(n)?this.focusFirst=n:this.focusFirst=null;var h=document.createElement("div");this.preNode=this.dialogNode.parentNode.insertBefore(h,this.dialogNode),this.preNode.tabIndex=0;var m=document.createElement("div");if(this.postNode=this.dialogNode.parentNode.insertBefore(m,this.dialogNode.nextSibling),this.postNode.tabIndex=0,c.length>0&&f().removeListeners(),this.addListeners(),c.push(this),this.clearDialog(),this.dialogNode.classList.remove("hidden"),this.focusFirst){var g=this.dialogNode.getAttribute("data-focusable-item");this.focusFirst.hasAttribute("data-focus-first")||this.focusFirst.setAttribute("data-focus-first","true"),this.focusFirst.tabIndex=-1,this.focusFirst.focus(),"true"===g&&b(this.dialogNode),n.scrollIntoView({behavior:"smooth"}),"scrollToFocus"===t.getAttribute("data-focus")&&this.focusFirst.classList.contains("cmp-text")&&(this.focusFirst.classList.add("focus"),setTimeout((function(){r.focusFirst.classList.remove("focus")}),1800))}else s(this.dialogNode);
1if(this.lastFocus=document.activeElement,"tooltip"===l){var v;this.dialogNode.style.top=this.focusAfterClosed.getBoundingClientRect().top+window.scrollY+this.focusAfterClosed.offsetHeight+"px",window.innerWidth>=768&&window.innerWidth,v="SUP"===this.focusAfterClosed.offsetParent.nodeName||"SUB"===this.focusAfterClosed.offsetParent.nodeName?this.focusAfterClosed.offsetParent.getBoundingClientRect().left+this.focusAfterClosed.offsetWidth/2-this.dialogNode.offsetWidth/2:this.focusAfterClosed.getBoundingClientRect().left+this.focusAfterClosed.offsetWidth/2-this.dialogNode.offsetWidth/2,this.dialogNode.style.left=Math.max(v,0)+"px";var x=this.dialogNode.offsetLeft+this.dialogNode.offsetWidth-document.body.offsetWidth;x>0&&(this.dialogNode.style.left=this.dialogNode.offsetLeft-(x+15)+"px"),this.dialogNode.scrollIntoViewIfNeeded()}y(!0),this.dialogNode.setAttribute("aria-hidden",!1),navigator.userAgent.toLowerCase().indexOf(i.r.MAC)>-1&&this.lastFocus.focus()}v.prototype.clearDialog=function(){Array.prototype.map.call(this.dialogNode.querySelectorAll("input"),(function(t){t.value=""}))},v.prototype.close=function(){c.pop(),this.removeListeners(),h(this.preNode),h(this.postNode),this.dialogNode.className="hidden",this.dialogNode.classList.add("cmp-dialog"),y(!1),this.dialogNode.setAttribute("aria-hidden",!0),this.backdropNode.classList.remove("active"),"tab"!==document.activeElement.getAttribute("role")&&this.focusAfterClosed.focus(),c.length>0?f().addListeners():(document.body.classList.remove("has-dialog"),document.body.classList.remove("has-tooltip"))};var b=function(t){var e=t.querySelector(".cmp-text");null!==e.firstElementChild&&e.firstElementChild.setAttribute("tabindex","0")};v.prototype.replace=function(t,e,n){c.pop(),this.removeListeners(),h(this.preNode),h(this.postNode),this.dialogNode.classList.add("hidden"),this.backdropNode.classList.remove("active");var i=e||this.focusAfterClosed;try{new v(t,i,n)}catch(t){console.log("Unable to instantiate the object:",t.message)}},v.prototype.addListeners=function(){document.addEventListener("focus",this.trapFocus,!0)},v.prototype.removeListeners=function(){document.removeEventListener("focus",this.trapFocus,!0)},v.prototype.bodyClickListener=function(t){var e=t.target.offsetParent;null!=e&&e.classList.contains("tooltip-bottom-border")&&document.body.classList.contains("has-tooltip")&&(p(),x(e),e.scrollIntoViewIfNeeded()),"tooltip"!==(null==e?void 0:e.getAttribute("role"))&&document.body.classList.contains("has-tooltip")&&p()};var x=function(t){t.click()},_=function(t){var e=f();e&&(e.dialogNode.contains(t.target)?e.lastFocus=t.target:("tab"!==t.target.getAttribute("role")&&s(e.dialogNode),e.lastFocus==document.activeElement&&l(e.dialogNode),e.lastFocus=document.activeElement))};v.prototype.trapFocus=function(t){a||(null!==t.target.getAttribute("tabindex")?_(t):setTimeout((function(){_(t)}),500))};var S=function(t){window.open(t.currentTarget.redirectUrl,t.currentTarget.redirectValue),p()},w=function(t){t||(t=document);for(var e,n=t.querySelectorAll('[href^="#cmp-modal"]'),i=function(){n[o].addEventListener("click",(function(t){t.preventDefault()}));var t,e,i,r=n[o].getAttribute("href").split("#")[1].split("~");if(r[1].startsWith("speed-bump")){var a="speed-bump"===r[1];n[o].setAttribute("role","button");var c=document.getElementById(r[1]),s=r[2];t=c,e=n[o],i=s,e.addEventListener("click",(function(n){p(),a?(t.classList.add("overlay-modal-speed-bump"),t.setAttribute("aria-labelledby","speedbumpHeading"),t.querySelector(".speed-bump__heading").setAttribute("id","speedbumpHeading")):(t.setAttribute("aria-labelledby","modalHeading"),t.querySelector("h1, .h1, h2, .h2, h3, .h3").setAttribute("id","modalHeading"));try{new v(t,e,i)}catch(t){console.log("Unable to instantiate the object:",t.message)}if(n.stopPropagation(),i){var r=t.querySelector(".open-modal-button button");r.redirectUrl=i,r.redirectValue="_blank"==r.getAttribute("data-target")?"_blank":"_self",r.removeEventListener("click",S),r.addEventListener("click",S)}})),t.querySelector(".close-modal-button button").addEventListener("click",p)}else{var l=document.getElementById(r[1]),u=r.length>2?document.getElementById(r[2]):null;l&&"tooltip"===l.getAttribute("role")&&function(t){t.classList.add("tooltip-bottom-border")}(n[o]),n[o].setAttribute("role","button"),function(t,e,n){(e.addEventListener("click",(function(i){p();try{new v(t,e,n)}catch(t){console.log("Unable to instantiate the object:",t.message)}i.stopPropagation()})),null!==t)&&t.querySelectorAll(".close-modal").forEach((function(t){t.addEventListener("click",p)}))}(l,n[o],u)}},o=0;o<n.length;o++)i();null!==(e=document.querySelectorAll('.cmp-dialog[data-focusable-item="true"]'))&&e.forEach((function(t){var e=t.querySelector(".cmp-text");null!==e.firstElementChild&&e.firstElementChild.setAttribute("tabindex","0")}));var a=t.querySelectorAll(".cmp-dialog");r.g.initModalImageLazyLoad(a)},A=function(){w(document),document.addEventListener("keyup",m)};document.addEventListener("DOMContentLoaded",(function(){A()}
1)),window.overlay_modal=function(){A()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i,r,o,a,c=n(0),s=n(4),l=(i=-1,r=-1,o=-1,a=function(){if(-1!==r&&-1!==i&&-1!==o&&(i||r||o)){var t=document.referrer;s.a.localStorageSetItem(c.f,t),window.location.reload()}},{updateUserSegReload:function(t){r=t,a()},updateProvinceReload:function(t){i=t,a()},updateGeoLocReload:function(t){o=t,a()}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i={intelliResponseStatus:-1,mindBreezeResponseStatus:-1,intelliErrorStatus:null,mindBreezeErrorStatus:null,callBackFn:null,registerCallBack:function(t){i.callBackFn=t},setIntelliStatus:function(t){i.intelliResponseStatus=t,-1!==i.mindBreezeResponseStatus&&i.callBackFn()},setMindBreezeStatus:function(t){i.mindBreezeResponseStatus=t,-1!==i.intelliResponseStatus&&i.callBackFn()},setIntelliErrorStatus:function(t){i.intelliErrorStatus=t,-1!==i.mindBreezeErrorStatus&&i.callBackFn()},setMindBreezeErrorStatus:function(t){i.mindBreezeErrorStatus=t,-1!==i.intelliErrorStatus&&i.callBackFn()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return B}));const i=window;let r=i.requestAnimationFrame||i.webkitRequestAnimationFrame||i.mozRequestAnimationFrame||i.msRequestAnimationFrame||function(t){return setTimeout(t,16)};const o=window;let a=o.cancelAnimationFrame||o.mozCancelAnimationFrame||function(t){clearTimeout(t)};function c(){let t,e,n,i=arguments[0]||{},r=1,o=arguments.length;for(;r<o;r++)if(null!==(t=arguments[r]))for(e in t)n=t[e],i!==n&&void 0!==n&&(i[e]=n);return i}function s(t){return["true","false"].indexOf(t)>=0?JSON.parse(t):t}function l(t,e,n,i){if(i)try{t.setItem(e,n)}catch(t){}return n}function u(){let t=document,e=t.body;return e||(e=t.createElement("body"),e.fake=!0),e}let d=document.documentElement;function h(t){let e="";return t.fake&&(e=d.style.overflow,t.style.background="",t.style.overflow=d.style.overflow="hidden",d.appendChild(t)),e}function f(t,e){t.fake&&(t.remove(),d.style.overflow=e,d.offsetHeight)}function p(t,e,n,i){"insertRule"in t?t.insertRule(e+"{"+n+"}",i):t.addRule(e,n,i)}function m(t){return("insertRule"in t?t.cssRules:t.rules).length}function g(t,e,n){for(let i=0,r=t.length;i<r;i++)e.call(n,t[i],i)}let y="classList"in document.createElement("_"),v=y?function(t,e){return t.classList.contains(e)}:function(t,e){return t.className.indexOf(e)>=0},b=y?function(t,e){v(t,e)||t.classList.add(e)}:function(t,e){v(t,e)||(t.className+=" "+e)},x=y?function(t,e){v(t,e)&&t.classList.remove(e)}:function(t,e){v(t,e)&&(t.className=t.className.replace(e,""))};function _(t,e){return t.hasAttribute(e)}function S(t,e){return t.getAttribute(e)}function w(t){return void 0!==t.item}function A(t,e){if(t=w(t)||t instanceof Array?t:[t],"[object Object]"===Object.prototype.toString.call(e))for(let n=t.length;n--;)for(let i in e)t[n].setAttribute(i,e[i])}function E(t,e){t=w(t)||t instanceof Array?t:[t];const n=(e=e instanceof Array?e:[e]).length;for(let i=t.length;i--;)for(let r=n;r--;)t[i].removeAttribute(e[r])}function L(t){let e=[];for(let n=0,i=t.length;n<i;n++)e.push(t[n]);return e}function k(t,e){"none"!==t.style.display&&(t.style.display="none")}function C(t,e){"none"===t.style.display&&(t.style.display="")}function T(t){return"none"!==window.getComputedStyle(t).display}function M(t){if("string"==typeof t){let e=[t],n=t.charAt(0).toUpperCase()+t.substr(1);["Webkit","Moz","ms","O"].forEach((function(i){"ms"===i&&"transform"!==t||e.push(i+n)})),t=e}let e=document.createElement("fakeelement");for(let n=0;n<t.length;n++){const i=t[n];if(void 0!==e.style[i])return i}return!1}function q(t,e){let n=!1;return/^Webkit/.test(t)?n="webkit"+e+"End":/^O/.test(t)?n="o"+e+"End":t&&(n=e.toLowerCase()+"end"),n}let I=!1;try{let t=Object.defineProperty({},"passive",{get:function(){I=!0}});window.addEventListener("test",null,t)}catch(t){}let O=!!I&&{passive:!0};function P(t,e,n){for(let i in e){let r=["touchstart","touchmove"].indexOf(i)>=0&&!n&&O;t.addEventListener(i,e[i],r)}}function N(t,e){for(const n in e){const i=["touchstart","touchmove"].indexOf(n)>=0&&O;t.removeEventListener(n,e[n],i)}}function D(){return{topics:{},on:function(t,e){this.topics[t]=this.topics[t]||[],this.topics[t].push(e)},off:function(t,e){if(this.topics[t])for(let n=0;n<this.topics[t].length;n++)if(this.topics[t][n]===e){this.topics[t].splice(n,1);break}},emit:function(t,e){e.type=t,this.topics[t]&&this.topics[t].forEach((function(n){n(e,t)}))}}}Object.keys||(Object.keys=function(t){let e=[];for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});const B=t=>{let e=!1,n=!1,i=!1,o=!1,d=!1;t=c({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:e,prevButton:n,nextButton:i,nav:!0,navPosition:"top",navContainer:d,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:o,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},t||{});let y=document,w=window,I={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},O={},j=t.useLocalStorage;
1if(j){const t=navigator.userAgent,e=new Date;try{O=w.localStorage,O?(O.setItem(e,e),j=O.getItem(e)==e,O.removeItem(e)):j=!1,j||(O={})}catch(t){j=!1}j&&(O.tnsApp&&O.tnsApp!==t&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach((function(t){O.removeItem(t)})),localStorage.tnsApp=t)}let R=O.tC?s(O.tC):l(O,"tC",function(){let t=document,e=u(),n=h(e),i=t.createElement("div"),r=!1;e.appendChild(i);try{let t,e="(10px * 10)",n=["calc"+e,"-moz-calc"+e,"-webkit-calc"+e];for(let o=0;o<3;o++)if(t=n[o],i.style.width=t,100===i.offsetWidth){r=t.replace(e,"");break}}catch(t){}return e.fake?f(e,n):i.remove(),r}(),j),H=O.tPL?s(O.tPL):l(O,"tPL",function(){let t=document,e=u(),n=h(e),i=t.createElement("div"),r=t.createElement("div"),o="",a=!1;i.className="tns-t-subp2",r.className="tns-t-ct";for(let t=0;t<70;t++)o+="<div></div>";return r.innerHTML=o,i.appendChild(r),e.appendChild(i),a=Math.abs(i.getBoundingClientRect().left-r.children[67].getBoundingClientRect().left)<2,e.fake?f(e,n):i.remove(),a}(),j),z=O.tMQ?s(O.tMQ):l(O,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;let t,e=document,n=u(),i=h(n),r=e.createElement("div"),o=e.createElement("style"),a="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return o.type="text/css",r.className="tns-mq-test",n.appendChild(o),n.appendChild(r),o.styleSheet?o.styleSheet.cssText=a:o.appendChild(e.createTextNode(a)),t=window.getComputedStyle?window.getComputedStyle(r).position:r.currentStyle.position,n.fake?f(n,i):r.remove(),"absolute"===t}(),j),F=O.tTf?s(O.tTf):l(O,"tTf",M("transform"),j),G=O.t3D?s(O.t3D):l(O,"t3D",function(t){if(!t)return!1;if(!window.getComputedStyle)return!1;let e,n=document,i=u(),r=h(i),o=n.createElement("p"),a=t.length>9?"-"+t.slice(0,-9).toLowerCase()+"-":"";return a+="transform",i.insertBefore(o,null),o.style[t]="translate3d(1px,1px,1px)",e=window.getComputedStyle(o).getPropertyValue(a),i.fake?f(i,r):o.remove(),void 0!==e&&e.length>0&&"none"!==e}(F),j),W=O.tTDu?s(O.tTDu):l(O,"tTDu",M("transitionDuration"),j),U=O.tTDe?s(O.tTDe):l(O,"tTDe",M("transitionDelay"),j),Y=O.tADu?s(O.tADu):l(O,"tADu",M("animationDuration"),j),V=O.tADe?s(O.tADe):l(O,"tADe",M("animationDelay"),j),X=O.tTE?s(O.tTE):l(O,"tTE",q(W,"Transition"),j),$=O.tAE?s(O.tAE):l(O,"tAE",q(Y,"Animation"),j),K=w.console&&"function"==typeof w.console.warn,J=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],Z={};if(J.forEach((function(e){if("string"==typeof t[e]){let n=t[e],i=y.querySelector(n);if(Z[e]=n,!i||!i.nodeName)return void(K&&console.warn("Can't find",t[e]));t[e]=i}})),t.container.children.length<1)return void(K&&console.warn("No slides found in",t.container));let Q,tt,et,nt,it=t.responsive,rt=t.nested,ot="carousel"===t.mode;if(it){0 in it&&(t=c(t,it[0]),delete it[0]);let e={};for(let t in it){let n=it[t];n="number"==typeof n?{items:n}:n,e[t]=n}it=e,e=null}ot||function t(e){for(let n in e)ot||("slideBy"===n&&(e[n]="page"),"edgePadding"===n&&(e[n]=!1),"autoHeight"===n&&(e[n]=!1)),"responsive"===n&&t(e[n])}(t),ot||(t.axis="horizontal",t.slideBy="page",t.edgePadding=!1,Q=t.animateIn,tt=t.animateOut,et=t.animateDelay,nt=t.animateNormal);let at,ct,st="horizontal"===t.axis,lt=y.createElement("div"),ut=y.createElement("div"),dt=t.container,ht=dt.parentNode,ft=dt.outerHTML,pt=dt.children,mt=pt.length,gt=bn(),yt=!1;it&&Rn(),ot&&(dt.className+=" tns-vpfix");let vt,bt,xt,_t=t.autoWidth,St=wn("fixedWidth"),wt=wn("edgePadding"),At=wn("gutter"),Et=_n(),Lt=wn("center"),kt=_t?1:Math.floor(wn("items")),Ct=wn("slideBy"),Tt=t.viewportMax||t.fixedWidthViewportWidth,Mt=wn("arrowKeys"),qt=wn("speed"),It=t.rewind,Ot=!It&&t.loop,Pt=wn("autoHeight"),Nt=wn("controls"),Dt=wn("controlsText"),Bt=wn("nav"),jt=wn("touch"),Rt=wn("mouseDrag"),Ht=wn("autoplay"),zt=wn("autoplayTimeout"),Ft=wn("autoplayText"),Gt=wn("autoplayHoverPause"),Wt=wn("autoplayResetOnVisibility"),Ut=function(t,e){let n=document.createElement("style");return t&&n.setAttribute("media",t),e&&n.setAttribute("nonce",e),document.querySelector("head").appendChild(n),n.sheet?n.sheet:n.styleSheet}(null,wn("nonce")),Yt=t.lazyload,Vt=t.lazyloadSelector,Xt=[],$t=Ot?function(){let e=function(){if(_t||St&&!Tt)return mt-1;{let e=St?"fixedWidth":"items",n=[];if((St||t[e]<mt)&&n.push(t[e]),it)for(let t in it){let i=it[t][e];i&&(St||i<mt)&&n.push(i)}return n.length||n.push(0),Math.ceil(St?Tt/Math.min.apply(null,n):Math.max.apply(null,n))}}(),n=ot?Math.ceil((5*e-mt)/2):4*e-mt;return n=Math.max(e,n),Sn("edgePadding")?n+1:n}():0,Kt=ot?mt+2*$t:mt+$t,Jt=!(!St&&!_t||Ot),Zt=St?hi():null,Qt=!ot||!Ot,te=st?"left":"top",ee="",ne="",ie=St?function(){return Lt&&!Ot?mt-1:Math.ceil(-Zt/(St+At))}:_t?function(){for(let t=0;t<Kt;t++)if(vt[t]>=-Zt)return t}:function(){return Lt&&ot&&!Ot?mt-1:Ot||ot?Math.max(0,Kt-Math.ceil(kt)):Kt-1},re=gn(wn("startIndex")),oe=re,ae=0,ce=_t?null:ie(),se=t.preventActionWhenRunning,le=t.swipeAngle,ue=!le||"?",de=!1,he=t.onInit,fe=new D,pe=" tns-sli
1der tns-"+t.mode,me=dt.id||function(){const t=window.tnsId;return window.tnsId=t?t+1:1,"tns"+window.tnsId}(),ge=wn("disable"),ye=!1,ve=t.freezable,be=!(!ve||_t)&&jn(),xe=!1,_e={click:Si,keydown:function(t){t=Mi(t);let e=[I.LEFT,I.RIGHT].indexOf(t.keyCode);e>=0&&(0===e?n.disabled||Si(t,-1):i.disabled||Si(t,1))}},Se={click:function(t){if(de){if(se)return;xi()}let e,n=qi(t=Mi(t));for(;n!==d&&!_(n,"data-nav");)n=n.parentNode;if(_(n,"data-nav")){e=Ve=Number(S(n,"data-nav"));let i=St||_t?e*mt/Ue:e*kt;_i(Me?e:Math.min(Math.ceil(i),mt-1),t),Xe===e&&(rn&&ki(),Ve=-1)}},keydown:function(t){t=Mi(t);let e=y.activeElement;if(!_(e,"data-nav"))return;let n=[I.LEFT,I.RIGHT,I.ENTER,I.SPACE].indexOf(t.keyCode),i=Number(S(e,"data-nav"));n>=0&&(0===n?i>0&&Ti(We[i-1]):1===n?i<Ue-1&&Ti(We[i+1]):(Ve=i,_i(i,t)))}},we={mouseover:function(){rn&&(Ai(),on=!0)},mouseout:function(){on&&(wi(),on=!1)}},Ae={visibilitychange:function(){y.hidden?rn&&(Ai(),cn=!0):cn&&(wi(),cn=!1)}},Ee={keydown:function(t){t=Mi(t);let e=[I.LEFT,I.RIGHT].indexOf(t.keyCode);e>=0&&Si(t,0===e?-1:1)}},Le={touchstart:Ni,touchmove:Di,touchend:Bi,touchcancel:Bi},ke={mousedown:Ni,mousemove:Di,mouseup:Bi,mouseleave:Bi},Ce=Sn("controls"),Te=Sn("nav"),Me=!!_t||t.navAsThumbnails,qe=Sn("autoplay"),Ie=Sn("touch"),Oe=Sn("mouseDrag"),Pe="tns-slide-active",Ne="tns-complete",De={load:function(t){$n(qi(t))},error:function(t){e=qi(t),b(e,"failed"),Kn(e);var e}},Be="force"===t.preventScrollOnTouch,je=null,Re=null,He=null,ze=null,Fe=null;Ce&&(e=t.controlsContainer,He=t.controlsContainer?t.controlsContainer.outerHTML:"",n=t.prevButton,i=t.nextButton,ze=t.prevButton?t.prevButton.outerHTML:"",Fe=t.nextButton?t.nextButton.outerHTML:"");let Ge=null,We=null,Ue=null,Ye=null,Ve=null,Xe=null,$e=null,Ke=null,Je=null,Ze=null;Te&&(d=t.navContainer,Ge=t.navContainer?t.navContainer.outerHTML:"",Ue=_t?mt:Ri(),Ye=0,Ve=-1,Xe=vn(),$e=Xe,Ke="tns-nav-active",Je="Carousel Page ",Ze=" (Current Slide)");let Qe=null,tn=null,en=null,nn=null,rn=null,on=null,an=null,cn=null;qe&&(o=t.autoplayButton,Qe="forward"===t.autoplayDirection?1:-1,tn=t.autoplayButton?t.autoplayButton.outerHTML:"",en=["<span class='tns-visually-hidden'>"," animation</span>"]);
1let sn=null,ln=null,un=null,dn=null,hn=null,fn=null;function pn(t){t&&(Nt=Bt=jt=Rt=Mt=Ht=Gt=Wt=!1)}function mn(){let t=ot?re-$t:re;for(;t<0;)t+=mt;return t%mt+1}function gn(t){const e=Ot?mt-1:mt-kt;return t=t?Math.max(0,Math.min(e,t)):0,ot?t+$t:t}function yn(t){for(null==t&&(t=re),ot&&(t-=$t);t<0;)t+=mt;return Math.floor(t%mt)}function vn(){let t,e=yn();const n=St||_t?Math.ceil((e+1)*Ue/mt-1):Math.floor(e/kt);return t=Me?e:n,!Ot&&ot&&re===ce&&(t=Ue-1),t}function bn(){return w.innerWidth||y.documentElement.clientWidth||y.body.clientWidth}function xn(t){return"top"===t?"afterbegin":"beforeend"}function _n(){let t=wt?2*wt-At:0;return function t(e){if(null==e)return;let n,i,r=y.createElement("div");return e.appendChild(r),n=r.getBoundingClientRect(),i=n.right-n.left,r.remove(),i||t(e.parentNode)}(ht)-t}function Sn(e){if(t[e])return!0;if(it)for(let t in it)if(it[t][e])return!0;return!1}function wn(e,n){if(null==n&&(n=gt),"items"===e&&St)return Math.floor((Et+At)/(St+At))||1;{let i=t[e];if(it)for(let t in it)n>=parseInt(t)&&e in it[t]&&(i=it[t][e]);return"slideBy"===e&&"page"===i&&(i=wn("items")),ot||"slideBy"!==e&&"items"!==e||(i=Math.floor(i)),i}}function An(t,e,n,i,r){let o="";if(void 0!==t){let n=t;e&&(n-=e),o=st?"margin: 0 "+n+"px 0 "+t+"px;":"margin: "+t+"px 0 "+n+"px 0;"}else if(e&&!n){let t="-"+e+"px";o="margin: 0 "+(st?t+" 0 0":"0 "+t+" 0")+";"}return!ot&&r&&W&&i&&(o+=Tn(i)),o}function En(t,e,n){return t?(t+e)*Kt+"px":R?R+"("+100*Kt+"% / "+n+")":100*Kt/n+"%"}function Ln(t,e,n){let i;if(t)i=t+e+"px";else{ot||(n=Math.floor(n));let t=ot?Kt:n;i=R?R+"(100% / "+t+")":100/t+"%"}return i="width:"+i,"inner"!==rt?i+";":i+" !important;"}function kn(t){let e="";if(!1!==t){e=(st?"padding-":"margin-")+(st?"right":"bottom")+": "+t+"px;"}return e}function Cn(t,e){let n=t.substring(0,t.length-e).toLowerCase();return n&&(n="-"+n+"-"),n}function Tn(t){return Cn(W,18)+"transition-duration:"+t/1e3+"s;"}function Mn(t){return Cn(Y,17)+"animation-duration:"+t/1e3+"s;"}function qn(){if(Sn("autoHeight")||_t||!st){let t=dt.querySelectorAll("img");g(t,(function(t){const e=t.src;Yt||(e&&e.indexOf("data:image")<0?(t.src="",P(t,De),b(t,"loading"),t.src=e):$n(t))})),r((function(){Qn(L(t),(function(){bt=!0}))})),Sn("autoHeight")&&(t=Jn(re,Math.min(re+kt-1,Kt-1))),Yt?In():r((function(){Qn(L(t),In)}))}else ot&&pi(),Pn(),Nn()}function In(){if(_t&&mt>1){const t=Ot?re:mt-1;!function e(){const n=pt[t].getBoundingClientRect().left,i=pt[t-1].getBoundingClientRect().right;Math.abs(n-i)<=1?On():setTimeout((function(){e()}),16)}()}else On()}function On(){st&&!_t||(ii(),_t?(Zt=hi(),ve&&(be=jn()),ce=ie(),pn(ge||be)):ji()),ot&&pi(),Pn(),Nn()}function Pn(){if(ri(),lt.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-hidden="true" aria-atomic="true">slide <span class="current">'+Yn()+"</span> of "+mt+"</div>"),xt=lt.querySelector(".tns-liveregion .current"),qe){const e=Ht?"stop":"start";o?A(o,{"data-action":e}):t.autoplayButtonOutput&&(lt.insertAdjacentHTML(xn(t.autoplayPosition),'<button type="button" data-action="'+e+'">'+en[0]+e+en[1]+Ft[0]+"</button>"),o=lt.querySelector("[data-action]")),o&&P(o,{click:Ci}),Ht&&(Li(),Gt&&P(dt,we),Wt&&P(dt,Ae))}if(Te){if(d)A(d,{"aria-label":"Carousel Pagination"}),We=d.children,g(We,(function(t,e){A(t,{"data-nav":e,tabindex:"-1","aria-label":Je+(e+1),"aria-controls":me})}));else{let e="",n=Me?"":'style="display:none"';for(let t=0;t<mt;t++)e+='<button type="button" data-nav="'+t+'" tabindex="-1" aria-controls="'+me+'" '+n+' aria-label="'+Je+(t+1)+'"></button>';e='<div class="tns-nav" aria-label="Carousel Pagination">'+e+"</div>",lt.insertAdjacentHTML(xn(t.navPosition),e),d=lt.querySelector(".tns-nav"),We=d.children}if(Hi(),W){let t=W.substring(0,W.length-18).toLowerCase(),e="transition: all "+qt/1e3+"s";t&&(e="-"+t+"-"+e),p(Ut,"[aria-controls^="+me+"-item]",e,m(Ut))}A(We[Xe],{"aria-label":Je+(Xe+1)+Ze}),E(We[Xe],"tabindex"),b(We[Xe],Ke),P(d,Se)}Ce&&(e||n&&i||(lt.insertAdjacentHTML(xn(t.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+me+'">'+Dt[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+me+'">'+Dt[1]+"</button></div>"),e=lt.querySelector(".tns-controls")),n&&i||(n=e.children[0],i=e.children[1]),t.controlsContainer&&A(e,{"aria-label":"Carousel Navigation",tabindex:"0"}),(t.controlsContainer||t.prevButton&&t.nextButton)&&A([n,i],{"aria-controls":me,tabindex:"-1"}),(t.controlsContainer||t.prevButton&&t.nextButton)&&(A(n,{"data-controls":"prev"}),A(i,{"data-controls":"next"})),je=ai(n),Re=ai(i),li(),e?P(e,_e):(P(n,_e),P(i,_e))),zn()}function Nn(){if(ot&&X){let t={};t[X]=xi,P(dt,t)}jt&&P(dt,Le,t.preventScrollOnTouch),Rt&&P(dt,ke),Mt&&P(y,Ee),"inner"===rt?fe.on("outerResized",(function(){Bn(),fe.emit("innerLoaded",zi())})):(it||St||_t||Pt||!st)&&P(w,{resize:Dn}),Pt&&("outer"===rt?fe.on("innerLoaded",Zn):ge||Zn()),Xn(),ge?Wn():be&&Gn(),fe.on("indexChanged",ti),"inner"===rt&&fe.emit("innerLoaded",zi()),"function"==typeof he&&he(zi()),yt=!0}function Dn(t){r((function(){Bn(Mi(t))}))}function Bn(r){if(!yt)return;"outer"===rt&&fe.emit("outerResized",zi(r)),gt=bn();let a,c=ct,s=!1;it&&(Rn(),a=c!==ct,a&&fe.emit("newBreakpointStart",zi(r)));let l,u,h,f,v,_,S,w,A,E=kt,L=ge,T=be,M=Mt,q=Nt,I=Bt,O=jt,D=Rt,B=Ht,j=Gt,R=Wt,H=re;if(a&&(h=St,f=Pt,v=Dt,_=Lt,S=Ft,z||(w=At,A=wt)),Mt=wn("arrowKeys"),Nt=wn("controls"),Bt=wn("nav"),jt=wn("touch"),Lt=wn("center"),Rt=wn("mouseDrag"),Ht=wn("autoplay"),Gt=wn("autoplayHoverPause"),Wt=wn("autoplayResetOnVisibility"),a&&(ge=wn("disable"),St=wn("fixedWidth"),qt=wn("speed"),Pt=wn("autoHeight"),Dt=wn("controlsText"),Ft=wn("autoplayText"),zt=wn("autoplayTimeout"),z||(wt=wn("edgePadding"),At=wn("gutter"))),pn(ge),Et=_n(),st&&!_t||ge||(ii(),st||(ji(),s=!0)),(St||_t)&&(Zt=hi(),ce=ie()),(a||St)&&(kt=wn("items"),Ct=wn("slideBy"),u=kt!==E,u&&(St||_t||(ce=ie()),Hn())),a&&ge!==L&&(ge?Wn():function(){if(!ye)return;if(Ut.disabled=!1,dt.className+=pe,pi(),Ot)for(let t=$t;t--;)ot&&C(pt[t]),C(pt[Kt-t-1]);if(!ot)for(let t=re,e=re+mt;t<e;t++){let e=pt[t],n=t<re+kt?Q:nt;e.style.left=100*(t-re)/kt+"%",b(e,n)}Fn(),ye=!1}()),ve&&(a||St||_t)&&(be=jn(),be!==T&&(be?(mi(fi(gn(0))),Gn()):(!function(){if(!xe)return;wt&&z&&(ut.style.margin="");if($t){let t="tns-transparent";for(let e=$t;e--;)ot&&x(pt[e],t),x(pt[Kt-e-1],t)}Fn(),xe=!1}(),s=!0))),pn(ge||be),Ht||(Gt=Wt=!1),Mt!==M&&(Mt?P(y,Ee):N(y,Ee)),Nt!==q&&(Nt?e?C(e):(n&&C(n),i&&C(i)):e?k(e):(n&&k(n),i&&k(i))),Bt!==I&&(Bt?(C(d),Hi()):k(d)),jt!==O&&(jt?P(dt,Le,t.preventScrollOnTouch):N(dt,Le)),Rt!==D&&(Rt?P(dt,ke):N(dt,ke)),Ht!==B&&(Ht?(o&&C(o),rn||an||Li()):(o&&k(o),rn&&ki())),Gt!==j&&(Gt?P(dt,we):N(dt,we)),Wt!==R&&(Wt?P(y,Ae):N(y,Ae)),a){if(St===h&&Lt===_||(s=!0),Pt!==f&&(Pt||(ut.style.height="")),Nt&&Dt!==v&&(n.innerHTML=Dt[0],i.innerHTML=Dt[1]),o&&Ft!==S){let t=Ht?1:0,e=o.innerHTML,n=e.length-S[t].length;e.substring(n)===S[t]&&(o.innerHTML=e.substring(0,n)+Ft[t])}}else Lt&&(St||_t)&&(s=!0);if((u||St&&!_t)&&(Ue=Ri(),Hi()),l=re!==H,l?(fe.emit("indexChanged",zi()),s=!0):u?l||ti():(St||_t)&&(Xn(),ri(),Un()),u&&!ot&&function(){let t=re+Math.min(mt,kt);for(let e=Kt;e--;){let n=pt[e];e>=re&&e<t?(b(n,"tns-moving"),n.style.left=100*(e-re)/kt+"%",b(n,Q),x(n,nt)):n.style.left&&(n.style.left="",b(n,nt),x(n,Q)),x(n,tt)}setTimeout((function(){g(pt,(function(t){x(t,"tns-moving")}))}),300)}(),!ge&&!be){if(a&&!z&&(wt===A&&At===w||(ut.style.cssText=An(wt,At,St,qt,Pt)),st)){ot&&(dt.style.width=En(St,At,kt));let t=Ln(St,At,kt)+kn(At);!function(t,e){"deleteRule"in t?t.deleteRule(e):t.removeRule(e)}(Ut,m(Ut)-1),p(Ut,"#"+me+" > .tns-item",t,m(Ut))}Pt&&Zn(),s&&(pi(),oe=re)}a&&fe.emit("newBreakpointEnd",zi(r))}function jn(){if(!St&&!_t){return mt<=(Lt?kt-(kt-1)/2:kt)}let t=St?(St+At)*mt:vt[mt],e=wt?Et+2*wt:Et+At;return Lt&&(e-=St?(Et-St)/2:(Et-(vt[re+1]-vt[re]-At))/2),t<=e}function Rn(){ct=0;for(let t in it)gt>=t&&(ct=t)}(Ie||Oe)&&(sn={},ln={},dn=!1,fn=st?function(t,e){return t.x-e.x}:function(t,e){return t.y-e.y}),_t||pn(ge||be),F&&(te=F,ee="translate",G?(ee+=st?"3d(":"3d(0px, ",ne=st?", 0px, 0px)":", 0px)"):(ee+=st?"X(":"Y(",ne=")")),ot&&(dt.className=dt.className.replace("tns-vpfix","")),function(){lt.className="tns-outer",ut.className="tns-inner",lt.id=me+"-ow",ut.id=me+"-iw",""===dt.id&&(dt.id=me);pe+=H||_t?" tns-subpixel":" tns-no-subpixel",pe+=R?" tns-calc":" tns-no-calc",_t&&(pe+=" tns-autowidth");pe+=" tns-"+t.axis,dt.className+=pe,ot?(at=y.createElement("div"),at.id=me+"-mw",at.className="tns-ovh",lt.appendChild(at),at.appendChild(ut)):lt.appendChild(ut);if(Pt){(at||ut).className+=" tns-ah"}if(ht.insertBefore(lt,dt),ut.appendChild(dt),g(pt,(function(t,e){b(t,"tns-item"),t.id||(t.id=me+"-item"+e),!ot&&nt&&b(t,nt),A(t,{tabindex:"-1"})})),$t){let t=y.createDocumentFragment(),e=y.createDocumentFragment();for(let n=$t;n--;){let i=n%mt,r=pt[i].cloneNode(!0);if(b(r,"tns-slide-cloned"),E(r,"id"),e.insertBefore(r,e.firstChild),ot){let e=pt[mt-1-i].cloneNode(!0);b(e,"tns-slide-cloned"),E(e,"id"),t.appendChild(e)}}dt.insertBefore(t,dt.firstChild),dt.appendChild(e),pt=dt.children}}(),function(){if(!ot)for(let t=re,e=re+Math.min(mt,kt);t<e;t++){let e=pt[t];e.style.left=100*(t-re)/kt+"%",b(e,Q),x(e,nt)}st&&(H||_t?(p(Ut,"#"+me+" > .tns-item","font-size:"+w.getComputedStyle(pt[0]).fontSize+";",m(Ut)),p(Ut,"#"+me,"font-size:0;",m(Ut))):ot&&g(pt,(function(t,e){t.style.marginLeft=function(t){return R?R+"("+100*t+"% / "+Kt+")":100*t/Kt+"%"}(e)})));if(z){let e="";W&&(e=at&&t.autoHeight?Tn(t.speed):"",p(Ut,"#"+me+"-mw",e,m(Ut))),e=An(t.edgePadding,t.gutter,t.fixedWidth,t.speed,t.autoHeight),p(Ut,"#"+me+"-iw",e,m(Ut)),ot&&(e=st&&!_t?"width:"+En(t.fixedWidth,t.gutter,t.items)+";":"",W&&(e+=Tn(qt)),p(Ut,"#"+me,e,m(Ut))),e=st&&!_t?Ln(t.fixedWidth,t.gutter,t.items):"",t.gutter&&(e+=kn(t.gutter)),ot||(W&&(e+=Tn(qt)),Y&&(e+=Mn(qt))),e&&p(Ut,"#"+me+" > .tns-item",e,m(Ut))}else{ot&&Pt&&(at.style[W]=qt/1e3+"s"),ut.style.cssText=An(wt,At,St,Pt),ot&&st&&!_t&&(dt.style.width=En(St,At,kt));let t=st&&!_t?Ln(St,At,kt):"";At&&(t+=kn(At)),t&&p(Ut,"#"+me+" > .tns-item",t,m(Ut))}if(it&&z)for(let t in it){let e=it[t],n="",i="",r="",o="",a="",c=_t?null:wn("items",t),s=wn("fixedWidth",t),l=wn("speed",t),u=wn("edgePadding",t),d=wn("autoHeight",t),h=wn("gutter",t);W&&at&&wn("autoHeight",t)&&"speed"in e&&(i="#"+me+"-mw{"+Tn(l)+"}"),("edgePadding"in e||"gutter"in e)&&(r="#"+me+"-iw{"+An(u,h,s,l,d)+"}"),ot&&st&&!_t&&("fixedWidth"in e||"items"in e||St&&"gutter"in e)&&(o="width:"+En(s,h,c)+";"),W&&"speed"in e&&(o+=Tn(l)),o&&(o="#"+me+"{"+o+"}"),("fixedWidth"in e||St&&"gutter"in e||!ot&&"items"in e)&&(a+=Ln(s,h,c)),"gutter"in e&&(a+=kn(h)),!ot&&"speed"in e&&(W&&(a+=Tn(l)),Y&&(a+=Mn(l))),a&&(a="#"+me+" > .tns-item{"+a+"}"),n=i+r+o+a,n&&Ut.insertRule("@media (min-width: "+t/16+"em) {"+n+"}",Ut.cssRules.length)}}(),qn();let Hn=Ot?ot?function(){let t=ae,e=ce;t+=Ct,e-=Ct,wt?(t+=1,e-=1):St&&(Et+At)%(St+At)&&(e-=1),$t&&(re>e?re-=mt:re<t&&(re+=mt))}:function(){if(re>ce)for(;re>=ae+mt;)re-=mt;else if(re<ae)for(;re<=ce-mt;)re+=mt}:function(){re=Math.max(ae,Math.min(ce,re))};function zn(){!Ht&&o&&k(o),!Bt&&d&&k(d),Nt||(e?k(e):(n&&k(n),i&&k(i)))}function Fn(){Ht&&o&&C(o),Bt&&d&&C(d),Nt&&(e?C(e):(n&&C(n),i&&C(i)))}function Gn(){if(!xe){if(wt&&(ut.style.margin="0px"),$t){let t="tns-transparent";for(let e=$t;e--;)ot&&b(pt[e],t),b(pt[Kt-e-1],t)}zn(),xe=!0}}function Wn(){if(!ye){if(Ut.disabled=!0,dt.className=dt.className.replace(pe.substring(1),""),E(dt,["style"]),Ot)for(let t=$t;t--;
1)ot&&k(pt[t]),k(pt[Kt-t-1]);if(st&&ot||E(ut,["style"]),!ot)for(let t=re,e=re+mt;t<e;t++){let e=pt[t];E(e,["style"]),x(e,Q),x(e,nt)}zn(),ye=!0}}function Un(){let t=Yn();xt.innerHTML!==t&&(xt.innerHTML=t)}function Yn(){let t=Vn(),e=t[0]+1,n=t[1]+1;return e===n?e+"":e+" to "+n}function Vn(t){null==t&&(t=fi());let e,n,i,r=re;if(Lt||wt?(_t||St)&&(n=-(parseFloat(t)+wt),i=n+Et+2*wt):_t&&(n=vt[re],i=n+Et),_t)vt.forEach((function(t,o){o<Kt&&((Lt||wt)&&t<=n+.5&&(r=o),i-t>=.5&&(e=o))}));else{if(St){let t=St+At;Lt||wt?(r=Math.floor(n/t),e=Math.ceil(i/t-1)):e=r+Math.ceil(Et/t)-1}else if(Lt||wt){let t=kt-1;if(Lt?(r-=t/2,e=re+t/2):e=re+t,wt){let t=wt*kt/Et;r-=t,e+=t}r=Math.floor(r),e=Math.ceil(e)}else e=r+kt-1;r=Math.max(r,0),e=Math.min(e,Kt-1)}return[r,e]}function Xn(){if(Yt&&!ge){let t=Vn();t.push(Vt),Jn.apply(null,t).forEach((function(t){if(!v(t,Ne)){let e={};e[X]=function(t){t.stopPropagation()},P(t,e),P(t,De),t.src=S(t,"data-src");let n=S(t,"data-srcset");n&&(t.srcset=n),b(t,"loading")}}))}}function $n(t){b(t,"loaded"),Kn(t)}function Kn(t){b(t,Ne),x(t,"loading"),N(t,De)}function Jn(t,e,n){let i=[];for(n||(n="img");t<=e;)g(pt[t].querySelectorAll(n),(function(t){i.push(t)})),t++;return i}function Zn(){let t=Jn.apply(null,Vn());r((function(){Qn(t,ni)}))}function Qn(t,e){return bt?e():(t.forEach((function(e,n){!Yt&&e.complete&&Kn(e),v(e,Ne)&&t.splice(n,1)})),t.length?void r((function(){Qn(t,e)})):e())}function ti(){Xn(),ri(),Un(),li(),function(){if(Bt&&(Xe=Ve>=0?Ve:vn(),Ve=-1,Xe!==$e)){let t=We[$e],e=We[Xe];A(t,{tabindex:"-1","aria-label":Je+($e+1)}),x(t,Ke),A(e,{"aria-label":Je+(Xe+1)+Ze}),E(e,"tabindex"),b(e,Ke),$e=Xe}}()}function ei(t,e){let n=[];for(let i=t,r=Math.min(t+e,Kt);i<r;i++)n.push(pt[i].offsetHeight);return Math.max.apply(null,n)}function ni(){let t=Pt?ei(re,kt):ei($t,mt),e=at||ut;e.style.height!==t&&(e.style.height=t+"px")}function ii(){vt=[0];let t=st?"left":"top",e=st?"right":"bottom",n=pt[0].getBoundingClientRect()[t];g(pt,(function(i,r){r&&vt.push(i.getBoundingClientRect()[t]-n),r===Kt-1&&vt.push(i.getBoundingClientRect()[e]-n)}))}function ri(){let t=Vn(),e=t[0],n=t[1];g(pt,(function(t,i){i>=e&&i<=n?_(t,"aria-hidden")&&(E(t,["aria-hidden","tabindex"]),b(t,Pe)):_(t,"aria-hidden")||(A(t,{tabindex:"-1"}),x(t,Pe))}))}function oi(t){return t.nodeName.toLowerCase()}function ai(t){return"button"===oi(t)}function ci(t){return"true"===t.getAttribute("aria-disabled")}function si(t,e,n){t?e.disabled=n:e.setAttribute("aria-disabled",n.toString())}function li(){if(!Nt||It||Ot)return;let t=je?n.disabled:ci(n),e=Re?i.disabled:ci(i),r=re<=ae,o=!It&&re>=ce;r&&!t&&si(je,n,!0),!r&&t&&si(je,n,!1),o&&!e&&si(Re,i,!0),!o&&e&&si(Re,i,!1)}function ui(t,e){W&&(t.style[W]=e)}function di(t){null==t&&(t=re);let e=St?(Et-St)/2:(kt-1)/2;return _t?(Et-(wt?At:0)-(vt[t+1]-vt[t]-At))/2:e}function hi(){let t=Et+(wt?At:0)-(St?(St+At)*Kt:vt[Kt]);return Lt&&!Ot&&(t=St?-(St+At)*(Kt-1)-di():di(Kt-1)-vt[Kt-1]),t>0&&(t=0),t}function fi(t){let e;if(null==t&&(t=re),st&&!_t)if(St)e=-(St+At)*t,Lt&&(e+=di());else{let n=F?Kt:kt,i=100-100*wn("items")/n;Lt&&(t-=di()),e=-Math.min(100*t/n,i)}else e=-vt[t],Lt&&_t&&(e+=di());return Jt&&(e=Math.max(e,Zt)),e+=!st||_t||St?"px":"%",e}function pi(t){ui(dt,"0s"),mi(t)}function mi(t){null==t&&(t=fi()),dt.style[te]=ee+t+ne}function gi(t,e,n,i){let r=t+kt;
1Ot||(r=Math.min(r,Kt));for(let o=t;o<r;o++){let r=pt[o];i||(r.style.left=100*(o-re)/kt+"%"),et&&U&&(r.style[U]=r.style[V]=et*(o-t)/1e3+"s"),x(r,e),b(r,n),i&&Xt.push(r)}}let yi=ot?function(){ui(dt,""),W||!qt?(mi(),qt&&T(dt)||xi()):function(t,e,n,i,r,o,a){let c=Math.min(o,10),s=r.indexOf("%")>=0?"%":"px";r=r.replace(s,"");let l=Number(t.style[e].replace(n,"").replace(i,"").replace(s,"")),u=(r-l)/o*c;setTimeout((function r(){o-=c,l+=u,t.style[e]=n+l+s+i,o>0?setTimeout(r,c):a()}),c)}(dt,te,ee,ne,fi(),qt,xi),st||ji()}:function(){Xt=[];let t={};t[X]=t[$]=xi,N(pt[oe],t),P(pt[re],t),gi(oe,Q,tt,!0),gi(re,nt,Q),X&&$&&qt&&T(dt)||xi()};function vi(t,e){Qt&&Hn(),(re!==oe||e)&&(fe.emit("indexChanged",zi()),fe.emit("transitionStart",zi()),Pt&&Zn(),rn&&t&&["click","keydown"].indexOf(t.type)>=0&&ki(),de=!0,yi())}function bi(t){return t.toLowerCase().replace(/-/g,"")}function xi(t){if(ot||de){if(fe.emit("transitionEnd",zi(t)),!ot&&Xt.length>0)for(let t of Xt)t.style.left="",V&&U&&(t.style[V]="",t.style[U]=""),x(t,tt),b(t,nt);if(!t||!ot&&t.target.parentNode===dt||t.target===dt&&bi(t.propertyName)===bi(te)){if(!Qt){let t=re;Hn(),re!==t&&(fe.emit("indexChanged",zi()),pi())}"inner"===rt&&fe.emit("innerLoaded",zi()),de=!1,oe=re}}}function _i(t,e){if(!be)if("prev"===t)Si(e,-1);else if("next"===t)Si(e,1);else{if(de){if(se)return;xi()}let n=yn(),i=0;if("first"===t?i=-n:"last"===t?i=ot?mt-kt-n:mt-1-n:("number"!=typeof t&&(t=parseInt(t)),isNaN(t)||(e||(t=Math.max(0,Math.min(mt-1,t))),i=t-n)),!ot&&i&&Math.abs(i)<kt){let t=i>0?1:-1;i+=re+i-mt>=ae?mt*t:2*mt*t*-1}re+=i,ot&&Ot&&(re<ae&&(re+=mt),re>ce&&(re-=mt)),yn(re)!==yn(oe)&&vi(e)}}function Si(t,r){if(de){if(se)return;xi()}let o;if(!r){let a=qi(t=Mi(t));for(;a!==e&&[n,i].indexOf(a)<0;)a=a.parentNode;let c=[n,i].indexOf(a);c>=0&&(o=!0,r=0===c?-1:1)}if(It){if(re===ae&&-1===r)return void _i("last",t);if(re===ce&&1===r)return void _i("first",t)}r&&(re+=Ct*r,_t&&(re=Math.floor(re)),vi(o||t&&"keydown"===t.type?t:null))}function wi(){nn=setInterval((function(){Si(null,Qe)}),zt),rn=!0}function Ai(){clearInterval(nn),rn=!1}function Ei(t,e){A(o,{"data-action":t}),o.innerHTML=en[0]+t+en[1]+e}function Li(){wi(),o&&Ei("stop",Ft[1])}function ki(){Ai(),o&&Ei("start",Ft[0])}function Ci(){rn?(ki(),an=!0):(Li(),an=!1)}function Ti(t){t.focus()}function Mi(t){return Ii(t=t||w.event)?t.changedTouches[0]:t}function qi(t){return t.target||w.event.srcElement}function Ii(t){return t.type.indexOf("touch")>=0}function Oi(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Pi(){return function(t,e){let n=!1,i=Math.abs(90-Math.abs(t));return i>=90-e?n="horizontal":i<=e&&(n="vertical"),n}((e=ln.y-sn.y,n=ln.x-sn.x,Math.atan2(e,n)*(180/Math.PI)),le)===t.axis;var e,n}function Ni(t){if(de){if(se)return;xi()}Ht&&rn&&Ai(),dn=!0,hn&&(a(hn),hn=null);let e=Mi(t);fe.emit(Ii(t)?"touchStart":"dragStart",zi(t)),!Ii(t)&&["img","a"].indexOf(oi(qi(t)))>=0&&Oi(t),ln.x=sn.x=e.clientX,ln.y=sn.y=e.clientY,ot&&(un=parseFloat(dt.style[te].replace(ee,"")),ui(dt,"0s"))}function Di(t){if(dn){let e=Mi(t);ln.x=e.clientX,ln.y=e.clientY,ot?hn||(hn=r((function(){!function t(e){if(!ue)return void(dn=!1);a(hn),dn&&(hn=r((function(){t(e)})));"?"===ue&&(ue=Pi());if(ue){!Be&&Ii(e)&&(Be=!0);try{e.type&&fe.emit(Ii(e)?"touchMove":"dragMove",zi(e))}catch(t){}let t=un,n=fn(ln,sn);if(!st||St||_t)t+=n,t+="px";else{t+=F?n*kt*100/((Et+At)*Kt):100*n/(Et+At),t+="%"}dt.style[te]=ee+t+ne}}(t)}))):("?"===ue&&(ue=Pi()),ue&&(Be=!0)),("boolean"!=typeof t.cancelable||t.cancelable)&&Be&&t.preventDefault()}}function Bi(e){if(dn){hn&&(a(hn),hn=null),ot&&ui(dt,""),dn=!1;let t=Mi(e);ln.x=t.clientX,ln.y=t.clientY;let n=fn(ln,sn);if(Math.abs(n)){if(!Ii(e)){let t=qi(e);P(t,{click:function e(n){Oi(n),N(t,{click:e})}})}ot?hn=r((function(){if(st&&!_t){let t=-n*kt/(Et+At);t=n>0?Math.floor(t):Math.ceil(t),re+=t}else{let t=-(un+n);if(t<=0)re=ae;else if(t>=vt[Kt-1])re=ce;else{let e=0;for(;e<Kt&&t>=vt[e];)re=e,t>vt[e]&&n<0&&(re+=1),e++}}vi(e,n),fe.emit(Ii(e)?"touchEnd":"dragEnd",zi(e))})):ue&&Si(e,n>0?-1:1)}}"auto"===t.preventScrollOnTouch&&(Be=!1),le&&(ue="?"),Ht&&!rn&&wi()}function ji(){(at||ut).style.height=vt[re+kt]-vt[re]+"px"}function Ri(){let t=St?(St+At)*mt/Et:mt/kt;return Math.min(Math.ceil(t),mt)}function Hi(){if(Bt&&!Me&&Ue!==Ye){let t=Ye,e=Ue,n=C;for(Ye>Ue&&(t=Ue,e=Ye,n=k);t<e;)n(We[t]),t++;Ye=Ue}}function zi(t){return{container:dt,slideItems:pt,navContainer:d,navItems:We,controlsContainer:e,hasControls:Ce,prevButton:n,nextButton:i,items:kt,slideBy:Ct,cloneCount:$t,slideCount:mt,slideCountNew:Kt,index:re,indexCached:oe,displayIndex:mn(),navCurrentIndex:Xe,navCurrentIndexCached:$e,pages:Ue,pagesCached:Ye,sheet:Ut,isOn:yt,event:t||{}}}return{version:"2.9.3",getInfo:zi,events:fe,goTo:_i,play:function(){Ht&&!rn&&(Li(),an=!1)},pause:function(){rn&&(ki(),an=!0)},isOn:yt,updateSliderHeight:ni,refresh:qn,destroy:function(){if(Ut.disabled=!0,Ut.ownerNode&&Ut.ownerNode.remove(),N(w,{resize:Dn}),Mt&&N(y,Ee),e&&N(e,_e),d&&N(d,Se),N(dt,we),N(dt,Ae),o&&N(o,{click:Ci}),Ht&&clearInterval(nn),ot&&X){let t={};t[X]=xi,N(dt,t)}jt&&N(dt,Le),Rt&&N(dt,ke);let r=[ft,He,ze,Fe,Ge,tn];J.forEach((function(e,n){let i="container"===e?lt:t[e];if("object"==typeof i&&i){let o=!!i.previousElementSibling&&i.previousElementSibling,a=i.parentNode;i.outerHTML=r[n],t[e]=o?o.nextElementSibling:a.firstElementChild}})),J=Q=tt=et=nt=st=lt=ut=dt=ht=ft=pt=mt=ct=gt=_t=St=wt=At=Et=kt=Ct=Tt=Mt=qt=It=Ot=Pt=Ut=Yt=vt=Xt=$t=Kt=Jt=Zt=Qt=te=ee=ne=ie=re=oe=ae=ce=le=ue=de=he=fe=pe=me=ge=ye=ve=be=xe=_e=Se=we=Ae=Ee=Le=ke=Ce=Te=Me=qe=Ie=Oe=Pe=Ne=De=bt=Nt=Dt=e=He=n=i=je=Re=Bt=d=Ge=We=Ue=Ye=Ve=Xe=$e=Ke=Je=Ze=Ht=zt=Qe=Ft=Gt=o=tn=Wt=en=nn=rn=on=an=cn=sn=ln=un=dn=hn=fn=jt=Rt=null;for(let t in this)"rebuild"!==t&&(this[t]=null);yt=!1},rebuild:function(){return B(c(t,Z))}}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return u}));var i=n(1);function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
1if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=function(t,e){t._observerInstance&&t._observerInstance.disconnect();var n=new MutationObserver((function(t){Object(i.a)(s(t,e),200)()}));return n.observe(t,{childList:!0,subtree:!0}),t._observerInstance=n,n},c=function(t){var e=t.takeRecords();t.disconnect(),e&&s(e)},s=function(t,e){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){"childList"===n.value.type&&e()}}catch(t){i.e(t)}finally{i.f()}},l=function(t,e){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){n.value.style.height="auto"}}catch(t){i.e(t)}finally{i.f()}var o,a=d(t),c=r(t);try{for(c.s();!(o=c.n()).done;){o.value.style.height="".concat(Math.max.apply(Math,a),"px")}}catch(t){c.e(t)}finally{c.f()}},u=function(t,e){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){n.value.style.minHeight="auto"}}catch(t){i.e(t)}finally{i.f()}var o,a=d(t),c=r(t);try{for(c.s();!(o=c.n()).done;){o.value.style.minHeight="".concat(Math.max.apply(Math,a),"px")}}catch(t){c.e(t)}finally{c.f()}},d=function(t){for(var e=[],n=0,i=Array.from(t);n<i.length;n++){var r=i[n];e.push(r.offsetHeight)}return e}},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return l})),n.d(e,"a",(function(){return u}));var i=!1,r=!0,o=function(){var t=document.querySelectorAll(".compare-sticky-drawer"),e=t[t.length-1];r?e.classList.remove("compare-sticky-drawer__expanded"):(e.classList.add("compare-sticky-drawer__expanded"),e.scrollTop=0)},a=function(){if(!0!==r){var t=document.querySelector(".cmp-compare-sticky-drawer"),e=document.querySelector(".cmp-compare-sticky-drawer__header--arrowBtn"),n=document.querySelector(".cmp-compare-sticky-drawer__body");t.classList.add("collapsed"),e.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex","-1"),setTimeout((function(){n.style.visibility="hidden",r=!0,o()}),600),u("66px","1")}},c=function(){var t=document.querySelector(".cmp-compare-sticky-drawer"),e=document.querySelector(".cmp-compare-sticky-drawer__header--arrowBtn"),n=document.querySelector(".cmp-compare-sticky-drawer__body");t.classList.remove("collapsed"),e.setAttribute("aria-expanded","true"),n.setAttribute("aria-hidden","false"),n.style.visibility="visible",r=!1,o(),u("66px","1")},s=function(){if(!i){i=!0;var t=document.querySelector(".cmp-compare-sticky-drawer"),e=document.querySelector(".cmp-compare-sticky-drawer__header--arrowBtn"),n=document.querySelector(".cmp-compare-sticky-drawer__body"),a=e.getAttribute("aria-expanded"),c="false"===a;t.classList.toggle("collapsed"),e.setAttribute("aria-expanded",c.toString()),n.setAttribute("aria-hidden",(!c).toString()),"false"===a?(n.style.visibility="visible",i=!1,r=!1,o()):setTimeout((function(){n.setAttribute("tabindex","-1"),n.style.visibility="hidden",i=!1,r=!0,o()}),600)}},l=function(t){var e=t.code;if(t.target.classList.contains("cmp-compare-sticky-drawer"))switch(e){case"ArrowUp":c();break;case"ArrowDown":a();break;case"Space":s()}},u=function(t,e){var n=document.querySelector(".cmp-footer__back-to-top");n&&(n.style.bottom=t,n.style.zIndex=e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n(5),r=n(3),o=n(0),a={callBackFuntions:[],varLink:"",addCredential:{credentials:"include"},registerLoginStateCallBack:function(t){return!!i.a.hasItem(o.b)||("undefined"==typeof loggedInStateApiURL||""===loggedInStateApiURL||t&&a.callBackFuntions.push(t),!1)},getAuthenticationCookies:function(){!i.a.hasItem(o.b)&&loggedInStateApiURL?Object(r.a)(loggedInStateApiURL,"GET",a.setAuthenticatedStatus,a.callbackError,"",a.addCredential):a.handleUpdateState()},setAuthenticatedStatus:function(t){t.infositeCookie&&i.a.cookieSetAuthenticated(o.b,t.infositeCookie,"",o.J),t.VARLINK&&i.a.cookieSetAuthenticated(o.O,t.VARLINK),a.handleUpdateState()},callbackError:function(t){console.error(t),a.handleUpdateState()},handleUpdateState:function(){for(var t=i.a.hasItem(o.b),e=a.callBackFuntions.length,n=0;n<e;n++)a.callBackFuntions[n](t)}};window.addEventListener("load",(function(){a.getAuthenticationCookies()}))},function(t,e,n){"use strict";n.d(e,"c",(function(){return f})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return g}));var i=n(6),r=n(4),o=n(0),a=n(1),c=n(14);function s(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
1if(!n){if(Array.isArray(t)||(n=u(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function u(t,e){if(t){if("string"==typeof t)return d(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var h=function(){function t(){var t=document.querySelector(".cmp-compare-sticky-drawer");if(t){var e,n=t.getAttribute("data-cardLang"),i=t.getAttribute("data-cardType"),a="prod_ids_".concat(i,"_").concat(n),c=decodeURIComponent(r.a.localStorageGetItem(a));return(c&&"null"!==c?c.split(","):[]).length<=(e=2,window.innerWidth<o.l.SM&&(e=1),e)}}function e(){if(document.querySelector(".cmp-compare-product__filter")){!function(){var t=document.getElementById("compareProductWrapper"),e=t.querySelectorAll(".compareProduct"),n=t.querySelectorAll(".compareProduct:not(.hidden)").length,i=e.length;document.querySelector(".resultCount").innerHTML=n,document.querySelector(".totalCount").innerHTML=i}();var t=document.getElementById("selectFilterWrapper").querySelectorAll(".selectFilter"),n=document.getElementById("compareProductWrapper").querySelectorAll(".compareProduct");t.forEach((function(i){i.addEventListener("change",e);for(var r=0,o=[],a=0;a<t.length;a++)o.push(t[a].value);n.forEach((function(t){var e=t.getAttribute("data-filter").split(",");o.every((function(t){return e.indexOf(t)>=0}))?(t.classList.remove("hidden"),t.classList.add("fadeEffect"),r+=1):(t.classList.add("hidden"),t.classList.remove("fadeEffect"))})),document.querySelector(".resultCount").innerHTML=r,g(),f(),p()}))}}return{init:function(){var n=document.querySelectorAll(".".concat("compareProduct",":not([data-component-state='initialized'])"));n.length>0&&(n.forEach((function(e){!function(e){var n=e.getAttribute("data-cardName"),a=e.getAttribute("data-cardId"),s=e.getAttribute("data-cardImg"),u=e.getAttribute("data-cardType"),d=e.getAttribute("data-cardLang"),h=e.getAttribute("data-cardSpecialOffer"),f=e.getAttribute("data-cardDescriptionUrl"),p=e.getAttribute("data-cardComponentType"),m=e.querySelector(".cmp-compare-product__card--indicator-view"),g=e.querySelector(".cmp-compare-product__card--title h2"),y=e.querySelector(".cmp-compare-product__card--action-link a"),v=e.querySelector(".cmp-compare-product__card--action-mode a");g.setAttribute("id",u+"_"+a+"_title"),null==y||y.setAttribute("aria-describedby",u+"_"+a+"_title"),v.setAttribute("aria-describedby",u+"_"+a+"_title");var b=document.querySelector(".cmp-product-compare");if(r.a.checkRecent(a,u)&&m.classList.add("show"),b){var x=e.querySelector(".checkbox-input"),_=e.querySelector(".checkbox-inputlabel"),S=e.querySelector(".checkbox-wrapper"),w=e.querySelector(".cmp-compare-product__card--info-imgWrap"),A=e.querySelector(".cmp-compare-product__card--info-img");x.setAttribute("id",u+"_"+a),_.setAttribute("for",u+"_"+a),S.setAttribute("aria-describedby",u+"_"+a+"_title"),x.addEventListener("click",(function(){if(this.checked)if(!1===t())E(!1);else{E(this.checked),r.a.setProductLocalStorage(n,s,f,u,a,h,d,p);var e=document.querySelector(".cmp-compare-sticky-drawer");e&&(e.style.display="block",Object(c.c)(),document.addEventListener("scroll",i.a.scrollHandler),L(),setTimeout((function(){i.a.addProdHandler([{name:n,img:s,url:f,type:u,id:a,s_offer:h,cp_type:p}]);var t=e.querySelectorAll("[".concat("data-prodId","]")).length,r=e.querySelector("#cmp-compare-sticky-drawer__compare-btn");t<=1?(r.classList.add("disabled"),r.disabled=!0):(r.classList.remove("disabled"),r.disabled=!1),i.a.addOverlayCompareModel(e)}),600))}else{E(this.checked),r.a.deleteProductLocalStorage(u,a,d);var o=document.querySelector(".cmp-compare-sticky-drawer");if(o){var m,g=o.querySelectorAll(".cmp-compare-sticky-drawer__col[".concat("data-prodI
1d","]")),y=d+"_"+u+"_"+a,v=l(g);try{for(v.s();!(m=v.n()).done;){var b=m.value,x=b.getAttribute("data-prodId");y==x&&i.a.removeProduct(b)}}catch(t){v.e(t)}finally{v.f()}i.a.addOverlayCompareModel(o)}}i.a.disableCompareCheckBox(this.checked,2,1),this.parentElement.querySelector(".checkbox-wrapper").focus(),i.a.adjustCardHeight()})),S.addEventListener("keydown",(function(e){var m=x.checked;if("keydown"===e.type&&e.keyCode===o.m.ENTER||e.keyCode===o.m.SPACE){if(m){E(!1),r.a.deleteProductLocalStorage(u,a,d);var g=document.querySelector(".cmp-compare-sticky-drawer");if(g){var y,v=g.querySelectorAll(".cmp-compare-sticky-drawer__col[".concat("data-prodId","]")),b=d+"_"+u+"_"+a,_=l(v);try{for(_.s();!(y=_.n()).done;){var S=y.value,w=S.getAttribute("data-prodId");b==w&&i.a.removeProduct(S)}}catch(t){_.e(t)}finally{_.f()}i.a.addOverlayCompareModel(g)}}else if(t()){E(!0),r.a.setProductLocalStorage(n,s,f,u,a,h,d,p);var A=document.querySelector(".cmp-compare-sticky-drawer");A&&(A.style.display="block",Object(c.c)(),document.addEventListener("scroll",i.a.scrollHandler),L(),setTimeout((function(){i.a.addProdHandler([{name:n,img:s,url:f,type:u,id:a,s_offer:h,cp_type:p}]);var t=A.querySelectorAll("[".concat("data-prodId","]")).length,e=A.querySelector("#cmp-compare-sticky-drawer__compare-btn");t<=1?(e.classList.add("disabled"),e.disabled=!0):(e.classList.remove("disabled"),e.disabled=!1),i.a.addOverlayCompareModel(A)}),600))}else E(!1);i.a.disableCompareCheckBox(!m,2,1)}i.a.adjustCardHeight()}));var E=function(t){x.checked=t,S.setAttribute("aria-checked",t),_.classList.remove("checkbox-checked"),t&&_.classList.add("checkbox-checked")};r.a.checkLocalStorageIdsInList(u,d,a)?E(!0):E(!1)}function L(){var t=(A=w.querySelector(".cmp-compare-product__card--info-img")).offsetParent.offsetWidth+1;0===A.offsetParent.offsetLeft?(A.classList.add("goToDrawerLTR"),setTimeout((function(){A.classList.remove("goToDrawerLTR")}),600)):A.offsetParent.offsetLeft===t?(A.classList.add("goToDrawerCenter"),setTimeout((function(){A.classList.remove("goToDrawerCenter")}),600)):(A.classList.add("goToDrawerRTL"),setTimeout((function(){A.classList.remove("goToDrawerRTL")}),600))}}(e),e.setAttribute("data-component-state","initialized")})),g(),e(),i.a.disableCompareCheckBox(!0,3,2))}}}(),f=function(){var t=s(document.querySelectorAll(".cmp-compare-product"));if(window.innerWidth>=o.l.SM){if(!t)return;t.forEach((function(t){var e=t.querySelector(".cmp-compare-product__container");Object(a.e)(".cmp-compare-product__card--indicator-Wrap",".compareProduct",e.id),Object(a.e)(".cmp-compare-product__card--title",".compareProduct",e.id),Object(a.e)(".cmp-compare-product__card--info-img",".compareProduct",e.id),Object(a.e)(".cmp-compare-product__card--info-content",".compareProduct",e.id),Object(a.e)(".cmp-compare-product__card--action-link",".compareProduct",e.id),Object(a.e)(".cmp-compare-product__card--action-mode",".compareProduct",e.id),Object(a.e)(".compareProduct:not(.hidden) .cmp-compare-product__card--indicator-Wrap",".compareProduct:not(.hidden)",e.id),Object(a.e)(".compareProduct:not(.hidden) .cmp-compare-product__card--title",".compareProduct:not(.hidden)",e.id),Object(a.e)(".compareProduct:not(.hidden) .cmp-compare-product__card--info-img",".compareProduct:not(.hidden)",e.id),Object(a.e)(".compareProduct:not(.hidden) .cmp-compare-product__card--info-content",".compareProduct:not(.hidden)",e.id),Object(a.e)(".compareProduct:not(.hidden) .cmp-compare-product__card--action-link",".compareProduct:not(.hidden)",e.id),Object(a.e)(".compareProduct:not(.hidden) .cmp-compare-product__card--action-mode",".compareProduct:not(.hidden)",e.id)}))}};function p(){var t=document.querySelectorAll(".compareProduct:not(.hidden)");window.innerWidth>=o.l.MD&&m(t,3),window.innerWidth>=o.l.SM&&window.innerWidth<o.l.MD&&m(t,2),window.innerWidth<o.l.SM&&m(t,1)}function m(t,e){if(e>1)for(var n=0;n<t.length;n++)(n+1)%e==0?(t[n].classList.remove("border-Right"),t[n].classList.add("remove-border-Right")):(t[n].classList.remove("remove-border-Right"),t[n].classList.add("border-Right"));else{var i,r=l(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.classList.remove("remove-border-Right"),o.classList.add("border-Right")}}catch(t){r.e(t)}finally{r.f()}}}function g(){var t=document.querySelectorAll(".compareProduct:not(.hidden)"),e=d
1ocument.querySelector(".cmp-compare-product__container");null!==e&&(t.length<=2?e.classList.add("alignCenterItem"):e.classList.remove("alignCenterItem"))}"loading"!==document.readyState?h().init():document.addEventListener("DOMContentLoaded",h.init),["load","resize"].forEach((function(t){"resize"===t?window.addEventListener(t,(function(){f()})):window.addEventListener(t,Object(a.a)((function(){f(),a.g.lazyLoadingEqualHeight("cmp-compare-product__card--info-img",f)})),1500)}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){var t=[{name:"title",formats:["HTML","VALUE"]},{name:"content",formats:["HTML"]},{name:"action_0",formats:["VALUE"]},{name:"extension",formats:["VALUE"]},{name:"keywords",formats:["VALUE"]},{name:"TimetoRead",formats:["VALUE"]},{name:"InsightsAuthor",formats:["VALUE"]},{name:"PublishedDate",formats:["VALUE"]},{name:"InsightsCategory",formats:["VALUE"]},{name:"InsightsType",formats:["VALUE"]}];function e(t,e,n){"POST"==n&&(t.body=JSON.stringify(e))}function n(t){t.headers={"Content-Type":"application/json",Accept:"application/json"}}function i(t,e){e(t)}return{getSearchResult:function(r,o,a,c,s,l,u,d,h,f,p){console.log(p,"filter"),console.log(r,o,a,c,s,l,u,d,h,f,p);var m={},g={};m.user=function(t,e,n,i){var r=[{label:"client",filtered_name:"client",filter_base:[{label:"client",unparsed:e}]}];if(i&&i.length>0){var o=0;if(i.forEach((function(t){var e={label:"keywords",unparsed:t,id:"constraintsGroupFound[0].constraints["+o+"]"};r.push(e),o++})),n){var a={label:"keywords",unparsed:n,id:"constraintsGroupFound[0].constraints["+o+"]"};r.push(a)}}else if(n){var c={label:"keywords",unparsed:n,id:"constraintsGroupFound[0].constraints[0]"};r.push(c)}return console.log(r,"constraints"),{query:{unparsed:t},constraints:r}}(o,s,l,p),m.count=a,m.content_sample_length=200,m.orderby="mes:relevance",m.properties=t,m.user_context={locale:c},u&&(m.paging_states=[u]),d&&(m.paging={direction:d}),g.method="POST",n(g),e(g,m,g.method),console.log("requestObject",g),fetch(r,g).then((function(t){if(console.log("response",t),t.ok)return t.json();throw new Error("Error")})).then((function(t){return function(t,e,n){var i={};console.log("search data",t.search_request.user.constraints[1]),i.results=t.resultset.results,i.nextAvail=t.resultset.next_avail,i.pagingState=t.resultset.per_service_dataset[0].paging_state,i.count=t.estimated_count,i.alternatives=t.alternatives,i.searchWord=t.search_request.user.query.unparsed,t.search_request.user.constraints[1]?i.tabSelection=t.search_request.user.constraints[1].unparsed:i.tabSelection="";n&&n(i,e)}(t,l,h)})).catch((function(t){return i(t,f)}))},getSearchSuggetion:function(t,r,o,a){var c,s={};c={query:a,property:"title",name:"default",count:5,constraints:[{label:"client",filtered_name:"client",filter_base:[{label:"client",unparsed:"td_gis_ca_en"}]}]},s.method="POST",n(s),e(s,c,s.method),fetch(t,s).then((function(t){if(t.ok)return t.json();throw new Error("Error")})).then((function(t){return function(t,e){var n={};n.results=t.results,n.count=t.estimated_count,e&&e(n)}(t,r)})).catch((function(t){return i(t,o)}))}}}()},function(t,e,n){"use strict";n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"f",(function(){return g})),n.d(e,"g",(function(){return y})),n.d(e,"e",(function(){return v}));var i=n(8),r=n(21),o=n(23);function a(t,e){var n=t.getAttribute("data-prodname");function r(t,e){var r=t.getAttribute("data-value"),o=t.getAttribute("data-term");o=null==o?"NULL":o;var a=t.getAttribute("data-minbalance");null!==n&&(t.innerHTML=i.a.getRatePercentageDetails(n,o,r,a,e).currentAPY)}null!==t.getAttribute("data-value")?r(t,e):null!==t.querySelector("[data-value]")&&(t=t.querySelectorAll("[data-value]")).forEach((function(t){r(t,e)}))}function c(t,e){if(null!==t.getAttribute("data-value")){var n=t.getAttribute("data-value"),i=t.getAttribute("data-prime");if(null!==n){var o=r.a.getSimpleProductDetails(n,e).toString().match(/^[+,-]?\d+(?:\.\d{0,2})?/)[0];t.innerHTML=d(i,o)}}else null!==t.querySelectorAll("[data-value]")&&(t=t.querySelectorAll("[data-value]")).forEac
1h((function(t){var n=t.getAttribute("data-value"),i=t.getAttribute("data-prime");if(null!==n){var o=r.a.getSimpleProductDetails(n,e).toString().match(/^[+,-]?\d+(?:\.\d{0,2})?/)[0];t.innerHTML=d(i,o)}}))}function s(t,e){u(t,e,(function(t,e){var n=t.getAttribute("data-propertyName"),i=t.getAttribute("data-minAmount"),o=t.getAttribute("data-maxAmount"),a=t.getAttribute("data-term"),c=t.getAttribute("data-value"),s=t.getAttribute("data-prime");if(null!==c){var l=r.a.getHeloanPricingDetail(n,i,o,a,e)[c].toString().match(/^[+,-]?\d+(?:\.\d{0,2})?/)[0];t.innerHTML=d(s,l)}}))}function l(t,e){u(t,e,(function(t,e){var n=t.getAttribute("data-propertyName"),i=t.getAttribute("data-minAmount"),o=t.getAttribute("data-anualFee"),a=t.getAttribute("data-value"),c=t.getAttribute("data-prime");if(null!==a){var s=r.a.getHelocPricingDetail(n,i,o,e)[a].toString().match(/^[+,-]?\d+(?:\.\d{0,2})?/)[0];t.innerHTML=d(c,s)}}))}function u(t,e,n){null!==t.getAttribute("data-value")?n(t,e):null!==t.querySelector("[data-value]")&&(t=t.querySelectorAll("[data-value]")).forEach((function(t){n(t,e)}))}function d(t,e){return"yes"===t&&"+"!==e.charAt(0)&&"-"!==e.charAt(0)&&(e="+"+e),e}function h(t,e){return"fr"===t&&(e=e.replace(".",",")),e}function f(t){return 1===p(t)&&(t=Number(t).toFixed(2).toString()),t}var p=function(t){var e=String(Number(t));return e.includes(".")?e.split(".")[1].length:0};function m(t,e){return"CeilingBPSCnt"===t&&(e="+"===e.charAt(0)?"-"+e.slice(1):"-"===e.charAt(0)?"+"+e.slice(1):"-"+e),e}function g(t,e){var n=t.getAttribute("data-value"),i=t.getAttribute("data-prime"),o=r.a.getSimplePricingDetail(n,e).toString().match(/^[+,-]?\d+(?:\.\d{0,2})?/)[0];t.innerHTML=d(i,o)}function y(t,e){var n,i,r,a,c,s;null!==t.getAttribute("data-value")?(n=t.getAttribute("data-product-key"),i=t.getAttribute("data-high-ratio"),r=t.getAttribute("data-value"),c=t.getAttribute("data-lang"),s=t.getAttribute("data-prime"),a=o.a.getReslRatioDetails(n,i,e)[r],a=m(r,a),a=h(c,a),t.innerHTML=d(s,a)):null!==t.querySelectorAll("[data-value]")&&(t=t.querySelectorAll("[data-value]")).forEach((function(t){n=t.getAttribute("data-product-key"),i=t.getAttribute("data-high-ratio"),r=t.getAttribute("data-value"),c=t.getAttribute("data-lang"),s=t.getAttribute("data-prime"),a=o.a.getReslRatioDetails(n,i,e)[r],a=m(r,a),a=h(c,a),t.innerHTML=d(s,a)}))}function v(t,e){var n,i,r,a,c;null!==t.getAttribute("data-value")?(n=t.getAttribute("data-filter-item"),i=t.getAttribute("data-value"),a=t.getAttribute("data-lang"),c=t.getAttribute("data-prime"),r=f(r=o.a.getGicValueDetails(n,i,e)),r=h(a,r),t.innerHTML=d(c,r)):null!==t.querySelectorAll("[data-value]")&&(t=t.querySelectorAll("[data-value]")).forEach((function(t){n=t.getAttribute("data-filter-item"),i=t.getAttribute("data-value"),a=t.getAttribute("data-lang"),c=t.getAttribute("data-prime"),r=f(r=o.a.getGicValueDetails(n,i,e)),r=h(a,r),t.innerHTML=d(c,r)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return L}));var i=n(0),r=n(4),o=n(1),a=n(37),c=n(38),s=n(9);function l(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var d="cmp-overlay-8-1-g-compare-modal",h=null,f=[],p=[];function m(t){var e={desktopMaxCheck:2,mobMaxCheck:1,gotoDrawerTimeOut:0};return e.prodName=t.getAttribute("data-cardName"),e.prodId=t.getAttribute("data-cardId"),e.prodImg=t.getAttribute("data-cardImg"),e.prodType=t.getAttribute("data-cardType"),e.lang=t.getAttribute("data-cardLang"),e.specialOffer=t.getAttribute("data-cardSpecialOffer"),e.prodUrl=t.getAttribute("data-cardDescriptionUrl"),e.compType=t.getAttribute("data-cardComponentType"),e.selectedProdImage=t.querySelector(".".concat(d,"__card--imageSection--image")),e.similarProduct=t.getAttribute("data-sim
1ilarProduct"),document.querySelectorAll('[data-cardId="'.concat(e.prodId,'"]')).forEach((function(t){null!==t.querySelector(".compare-checkbox-section")&&(e.checkboxInput=t.querySelector(".checkbox-input"),e.checkboxLabel=t.querySelector(".checkbox-inputlabel"),e.checkboxWrap=t.querySelector(".checkbox-wrapper"))})),e}function g(t,e){var n=S(),r=document.querySelector('[data-class="'.concat(d,'"]')),o=r.querySelectorAll(".".concat(d,"__cardSection")),a=r.querySelectorAll(".".concat(d,"__cardSection.card-selected"));if(null!==t){var c=t.split(",");!function(t,e,n){(0!==e.length||e.length<n)&&t.forEach((function(t){var e=t.querySelector(".".concat(d,"__card--similarProduct-flag-text"));t.querySelector(".".concat(d,"__card--similarProduct-flag")).classList.remove("visible"),e.style.visibility="hidden"}))}(o,a,n);window.innerWidth<i.l.SM&&0!==a.length&&a.length<2||0!==a.length&&a.length<n&&1!=n?(!function(t,e,n,i){t.forEach((function(t){for(var r=t.getAttribute("data-cardId"),o=0;o<n.length;o++)if(n[o]===r&&e<i){var a=t.querySelector(".".concat(d,"__card--similarProduct-flag-text"));t.classList.contains("card-selected")?(t.querySelector(".".concat(d,"__card--similarProduct-flag")).classList.remove("visible"),a.style.visibility="hidden"):(t.querySelector(".".concat(d,"__card--similarProduct-flag")).classList.add("visible"),a.style.visibility="visible",e++)}}))}(o,0,c,n),v(r,e),k()):y(r,o)}else null===t&&y(r,o)}function y(t,e){for(var n=t.querySelectorAll(".".concat(d,"__card--similarProduct-flag-text")),i=0;i<n.length;i++)n[i].style.visibility="hidden",n[i].classList.remove("visible"),e.forEach((function(t){t.querySelector(".".concat(d,"__card--similarProduct-flag")).classList.remove("visible")}))}function v(t,e){if(e){var n=t.querySelector("#compareModalContainer"),i=Array.prototype.slice.call(t.querySelectorAll(".".concat(d,"__cardSection")),0),r=Array.prototype.slice.call(t.querySelectorAll(".visible"),0);if(r.length>=1)for(var o=0;o<r.length;o++){var a=r[o].parentNode.parentNode;n.insertBefore(a,i[1])}}}function b(t){var e=t.querySelector("#compareModalContainer"),n=Array.prototype.slice.call(t.querySelectorAll(".".concat(d,"__cardSection")),0),i=Array.prototype.slice.call(t.querySelectorAll(".".concat(d,"__cardSection.card-selected")),0);if(i.length>=1)for(var r=0;r<i.length;r++)e.insertBefore(i[r],n[0]);k()}function x(){var t=document.querySelector('[data-class="'.concat(d,'"]')),e=t.querySelectorAll(".".concat(d,"__cardSection.card-selected")).length,n=t.querySelector(".cmp-button");e<=1?(n.classList.add("disabled"),n.disabled=!0):(n.classList.remove("disabled"),n.disabled=!1)}function _(){var t=document.querySelector('[data-class="'.concat(d,'"]')),e=t.querySelectorAll(".".concat(d,"__cardSection.card-selected")),n=t.querySelectorAll(".".concat(d,"__cardSection:not(.card-selected)"));e.length<=S()?n.forEach((function(t){var e;t.classList.remove("disabled"),null===(e=t.querySelector(".".concat(d,"__card--imageSection--image")))||void 0===e||e.addEventListener("click",w),t.querySelector(".".concat(d,"__card--imageSection--add-btn-wrapper a")).removeAttribute("aria-disabled","true")})):n.forEach((function(t){var e;t.classList.add("disabled"),null===(e=t.querySelector(".".concat(d,"__card--imageSection--image")))||void 0===e||e.removeEventListener("click",w),t.querySelector(".".concat(d,"__card--imageSection--add-btn-wrapper a")).setAttribute("aria-disabled","true")}))}function S(){var t=2;return window.innerWidth<i.l.SM&&(t=1),t}function w(t){var e=t.target.closest(".".concat(d,"__cardSection")),n=e.querySelector(".btn-rm-prod");if(!e.classList.contains("disabled")){var i=m(e);f.some((function(t){return t.prodId===i.prodId}))||f.push(i),e.querySelector(".".concat(d,"__card--imageSection--add-btn-wrapper")).classList.add("hidden"),e.querySelector(".".concat(d,"__card--imageSection--remove-btn-wrapper")).classList.remove("hidden"),e.classList.add("card-selected"),g(i.similarProduct,!1),x(),_(),n.focus()}}function A(t){var e=t.target.closest(".".concat(d,"__cardSection")),n=e.querySelector(".btn-add-prod"),i=m(e);p.push(i),f.length&&-1!==f.findIndex((function(t){return t.prodId===i.prodId}))&&f.splice(f.findIndex((function(t){return t.prodId===i.prodId})),1),e.querySelector(".".concat(d,"__card--imageSection--add-btn-wrapper")).classList.remove("hidden"),e.querySelector(".".concat(d,"__card--imageSection--remove-btn-wrapper")).classList.add("hidden"),e.classList.remove("card-selected");var r=document.querySelector('[data-class="'.concat(d,'"]')).querySelectorAll(".".concat(d,"__cardSection.card-selected"));
11===r.length?g(r[0].getAttribute("data-similarProduct"),!1):g(i.similarProduct,!1),x(),_(),n.focus()}function E(){var t=document.querySelector('[data-class="'.concat(d,'"]')),e=t.querySelector("#".concat(d,"__footer-cta-button-id")),n=t.getAttribute("data-compare-now-link");e.addEventListener("click",(function(t){p.length&&p.forEach((function(t){Object(i.T)(!1,t)})),f.length&&f.forEach((function(t){Object(i.T)(!0,t)})),p=[],f=[],null!==h?(h.init(),Object(s.b)()):(t.preventDefault(),window.location=n)}))}function L(){var t=document.querySelector('[data-class="'.concat(d,'"]'));if(null!==t){null!==document.querySelector(".cmp-compare-table")?h=c.a:null!==document.querySelector(".cmp-td-flex-comparison .cmp-flex-comparison-table")&&(h=a.a),t.querySelectorAll(".cmp-overlay-8-1-g-compare-modal__cardSection.card-selected").forEach((function(t){t.classList.remove("card-selected"),t.querySelector(".".concat(d,"__card--imageSection--add-btn-wrapper")).classList.remove("hidden"),t.querySelector(".".concat(d,"__card--imageSection--remove-btn-wrapper")).classList.add("hidden")}));var e,n=t.getAttribute("data-cardLang"),i=t.getAttribute("data-cardType"),o=function(t){var e=decodeURIComponent(r.a.localStorageGetItem(t));return e&&"null"!==e?e.split(","):[]}("prod_ids_".concat(i,"_").concat(n)),s=o.length;if(s>0)!function(t,e){t.forEach((function(t){var n=e.querySelector("[data-cardId='".concat(t.id,"']")),i=n.getAttribute("data-similarProduct");n.querySelector(".".concat(d,"__card--imageSection--add-btn-wrapper")).classList.add("hidden"),n.querySelector(".".concat(d,"__card--imageSection--remove-btn-wrapper")).classList.remove("hidden"),n.classList.add("card-selected"),g(i,!0),x(),_(),b(e)}))}((e=["name","img","url","type","id","s_offer","cp_type"],o.map((function(t){return e.reduce((function(e,n){return e[n]=r.a.localStorageGetItem("".concat(t,"_").concat(n)),e}),{})}))),t);else s<=0&&g(null,!1);t.querySelectorAll(".btn-add-prod").forEach((function(t){t.removeEventListener("click",w),t.addEventListener("click",w)})),t.querySelectorAll(".btn-rm-prod").forEach((function(t){t.removeEventListener("click",A),t.addEventListener("click",A)})),t.querySelector(".close-modal-button").addEventListener("click",C),t.querySelector(".close-modal-button").addEventListener("click",(function(t){if(null!==h){h.init();var e=document.querySelector(".cmp-compare-table_block-default .cmp-compare-table_block-prod-title a");null!==e&&e.focus()}})),p=[],f=[],x(),v(t,!0),function(t){t.querySelectorAll(".".concat(d,"__cardSection")).forEach((function(t){var e=t.getAttribute("data-cardId"),n=t.querySelector(".".concat(d,"__card--title h3")),i=t.querySelector(".btn-add-prod"),r=t.querySelector(".btn-rm-prod");n.setAttribute("id",e+"_title"),i.setAttribute("aria-describedby",e+"_title"),r.setAttribute("aria-describedby",e+"_title")}))}(t),E(),b(t),_(),setTimeout((function(){k()}),400)}}"loading"!==document.readyState?L():document.addEventListener("DOMContentLoaded",(function(){L()})),["load","resize"].forEach((function(t){"resize"===t||"load"===t?window.addEventListener(t,(function(){L(),k()})):window.addEventListener(t,Object(o.a)((function(){k()}),500))}));var k=function(){var t=l(document.querySelectorAll(".cmp-overlay-8-1-g-compare-modal "));if(window.innerWidth>=i.l.SM){if(!t)return;t.forEach((function(t){var e=t.querySelector(".cmp-overlay-8-1-g-compare-modal__container");Object(o.e)(".cmp-overlay-8-1-g-compare-modal__card--title",".cmp-overlay-8-1-g-compare-modal__cardSection",e.id,!0),Object(o.e)(".cmp-overlay-8-1-g-compare-modal__card--description",".cmp-overlay-8-1-g-compare-modal__cardSection",e.id,!0),Object(o.e)(".cmp-overlay-8-1-g-compare-modal__card",".cmp-overlay-8-1-g-compare-modal__cardSection",e.id)}))}};function C(t){!function(){var t=document.querySelector('[data-class="'.concat(d,'"]'));if(!t)return;t.querySelector(".close-modal-button").removeEventListener("click",C),t.querySelector("#".concat(d,"__footer-cta-button-id")).removeEventListener("click",E),t.querySelectorAll(".btn-add-prod").forEach((function(t){t.removeEventListener("click",w)})),t.querySelectorAll(".btn-rm-prod").forEach((function(t){t.removeEventListener("click",A)}))}()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return g}));var i=n(0),r=n(3),o=n(2),a=[],c="cmp-fund-document-search-results",s=geoLocationLang;function l(t){var e=t.querySelector("#fundDocumentSearchAPIdata"),n=""!==y(e)?y(e):{},a=n.displayAutoSuggestion,l=n.maxFundSelection,d=n.minSearchLength,h=n.noOfSuggestionToDisplay,f=n.fundSuggestionEn,g=n.fundSuggestionFr,b=t.querySelector(".".concat(c,"__search-input")),x=t.querySelector(".".concat(c,"__suggestion-dropdown")),_=t.querySelector(".".concat(c,"__no-results")),S=t.querySelector(".".concat(c,"__no-selection-error"));function w(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";A(n,r,o,b),u(n,r,e,t,i,l)}function A(t,e,n,i){Object(o.b)(t,!0,!1),Object(o.b)(e,!1,!1),Object(o.b)(n,!1,!1),v("",!0,e,i)}t.querySelector(".".concat(c,"__sr-max-fund-count")).id="sr-max-fund-limit",b&&b.addEventListener("keyup",(function(t){if(t.preventDefault(),t.keyCode===i.m.ENTER&&this.value)Object(o.b)(x,!0,!1),p(_,S,!0);else if(a){var e=function(t,e){var n="".concat(t,"&term=");s===i.o&&(n="".concat(e,"&term="));return n}(f,g);n=this.value,c=e,l=h,u=d,m=w,y=x,v=_,n.length>=u?Object(r.a)(c+Object(o.g)(n),"GET",m,o.callbackError,{},y,l,v):A(y,v,S,b)}var n,c,l,u,m,y,v})),b&&b.addEventListener("blur",(function(t){m(t,x)})),x&&x.addEventListener("focusout",(function(t){t.currentTarget.contains(t.relatedTarget)||m("blur",x)})),document.addEventListener("blur",m,!0)}function u(t,e,n,r,s,l){var u=r.querySelector(".".concat(c,"__search-input")),d=r.querySelector(".".concat(c,"__no-selection-error")),f=r.querySelector(".".concat(c,"__sr-max-fund-count"));t&&e&&(0!==n.length?function(t,e,n,r,s,l){t.forEach((function(t,u){if(u<n){Object(o.j)(r);var d=document.createElement("button");d.classList.add("".concat(c,"__suggestion-item"));var f=t.value.split("#"),p=r.appendChild(d);p.innerHTML=Object(i.Q)(t.label),p.setAttribute("data-id",f[0]),e.querySelectorAll(".".concat(c,"__suggestion-item")).forEac
1h((function(t){a.length>=s?t.classList.add("max-funds-reached"):t.classList.remove("max-funds-reached")})),p.addEventListener("mousedown",(function(n){a.length<s?(h(t,e,s),document.querySelector(".".concat(c,"__suggestion-dropdown")).classList.add("hidden")):(n.target.setAttribute("aria-describedby",l),n.target.setAttribute("aria-live","assertive"))})),p.addEventListener("keyup",(function(n){(n.keyCode===i.m.ENTER||n.keyCode===i.m.SPACE)&&a.length<s&&(h(t,e,s),document.querySelector(".".concat(c,"__suggestion-dropdown")).classList.add("hidden"))}))}}))}(n,r,s,t,l,f.id):(v(e.id,!1,e,u),p(e,d,!1)))}function d(t,e){var n=t.querySelector(".cmp-fund-document-search-results__selected-results"),r=t.querySelector(".".concat(c,"__search-input")),o=t.querySelector(".clear-all"),s=t.querySelector(".next-btn"),l="";a.forEach((function(t){l+='<div class="aem-GridColumn aem-GridColumn--default--12 fund-list document-col">\n <div class="fund">\n <span data-fund-value="'.concat(t.split("~")[1],'">').concat(t.split("~")[0],'</span>\n <a href="#" class="fund-remove" role="button" aria-label="Remove Fund"><span class="td-icon td-icon-close" aria-hidden="true"></span></a>\n </div>\n </div>')})),r.value="",n.innerHTML=Object(i.Q)(l),function(t,e){document.querySelector(".clear-all-first").classList.remove("hidden"),t.classList.remove("hidden"),e.classList.remove("hidden")}(o,s),t.querySelectorAll(".cmp-fund-document-search-results__selected-results .document-col .fund a").forEach((function(n){n.addEventListener("click",(function(i){i.preventDefault(),function(t,e,n){a.forEach((function(e,n){e.split("~")[1]===t&&(a.splice(n,1),setTimeout((function(){a.length!==n?document.querySelectorAll(".document-col")[n].querySelector(".fund-remove").focus():a.length?document.querySelectorAll(".cmp-fund-document-search-results__selected-fund-copy")[1].querySelector(".clear-btn").focus():document.querySelector(".cmp-fund-document-search-results__suggestion-input input").focus()}),50))})),d(e,n)}(n.previousElementSibling.getAttribute("data-fund-value"),t,e)}))})),t.querySelectorAll(".cmp-fund-document-search-results__selected-fund-copy .selected-count").forEach((function(t){t.innerHTML="",t.innerHTML=a.length})),t.querySelectorAll(".cmp-fund-document-search-results__selected-fund-copy .maximum-count").forEach((function(t){t.innerHTML="",t.innerHTML=e}));var u=document.getElementById("dynamic-count-wrapper"),h=u.innerHTML;u.innerHTML=" ",u.innerHTML=h,t.querySelectorAll(".cmp-fund-document-search-results__selected-fund-copy .clear-btn").forEach((function(e){e.addEventListener("click",(function(){t.querySelector(".cmp-fund-document-search-results__autocomplete-wrapper .selected-fund-copy-placeholder").innerHTML="",n.innerHTML="",a=[],document.querySelector(".cmp-fund-document-search-results__suggestion-input input").focus(),f(o,s)}))})),0==a.length&&f(o,s)}function h(t,e,n){0!==t.label.trim().length&&(a.includes(t.label+"~"+t.value)||a.push(t.label+"~"+t.value),d(e,n),document.querySelector(".cmp-fund-document-search-results__suggestion-input input").focus())}function f(t,e){document.querySelector(".clear-all-first").classList.add("hidden"),t.classList.add("hidden"),e.classList.add("hidden")}function p(t,e,n){var i="";n?(t.classList.add("hidden"),i=e):(e.classList.add("hidden"),i=t),Object(o.j)(i)}function m(t,e){t.relatedTarget||Object(o.b)(e,!0,!1)}function g(){return a}function y(t){var e="";if(t)return Object(o.h)(t.value)&&(e=JSON.parse(t.value)),e}function v(t,e,n,i){n&&i&&(n.setAttribute("aria-hidden",e),i.setAttribute("aria-describedby",t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i={productResponse:{},getProductsResponse:function(t,e){i.productResponse[t]=e},getSimpleProductDetails:function(t,e){if(i.productResponse[e].products[0][t])return i.productResponse[e].products[0][t]},getHeloanPricingDetail:function(t,e,n,r,o){return i.productResponse[o].propertyUseDetailsResponse.filter((function(o){o.propertyUseName===t&&o.slabDetailsResponse.filter((function(t){t.minAmount==e&&t.maxAmount==n&&t.termDetailsResponse.filter((function(t){t.term==r&&(i.filteredData=t)}))}))})),i.filteredData},getHelocPricingDetail:function(t,e,n,r){return i.productResponse[r].locPropertyTypeDetail.filter((function(r){r.propertyUse===t&&r.locPropertyUseDetails.filter((function(t){t.minAmount===e&&t.annualFee.toString()===n&&(i.filteredData=t)}))})),i.filteredData},getSimplePricingDetail:function(t,e){return i.productResponse[e][t]}}},function(t,e,n){"use strict";var i;!function(r,o){t.exports?(o.default=o,t.exports=r.document?o(r):o):void 0===(i=function(){return o(r)}.call(e,n,e,t))||(t.exports=i)}("undefined"!=typeof window?window:this,(function(t){function e(t,e,n,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,n))}var n={};return e(n,"Core/Globals.js",[],(function(){var e,n=void 0!==t?t:"undefined"!=typeof window?window:{};return function(t){t.SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="9.3.3",t.win=n,t.doc=t.win.document,t.svg=t.doc&&t.doc.createElementNS&&!!t.doc.createElementNS(t.SVG_NS,"svg").createSVGRect,t.userAgent=t.win.navigator&&t.win.navigator.userAgent||"",t.isChrome=-1!==t.userAgent.indexOf("Chrome"),t.isFirefox=-1!==t.userAgent.indexOf("Firefox"),t.isMS=/(edge|msie|trident)/i.test(t.userAgent)&&!t.win.opera,t.isSafari=!t.isChrome&&-1!==t.userAgent.indexOf("Safari"),t.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(t.userAgent),t.isWebKit=-1!==t.userAgent.indexOf("AppleWebKit"),t.deg2rad=2*Math.PI/360,t.hasBidiBug=t.isFirefox&&4>
1parseInt(t.userAgent.split("Firefox/")[1],10),t.hasTouch=!!t.win.TouchEvent,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){var e=!1;if(!t.isMS){var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,n),t.win.removeEventListener("testPassive",t.noop,n))}return e}(),t.charts=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={},t.chartCount=0}(e||(e={})),e})),e(n,"Core/Utilities.js",[n["Core/Globals.js"]],(function(t){function e(n,i,r,o){var a=i?"Highcharts error":"Highcharts warning";32===n&&(n=a+": Deprecated member");var c=s(n),l=c?a+" #"+n+": www.highcharts.com/errors/"+n+"/":n.toString();if(void 0!==o){var u="";c&&(l+="?"),m(o,(function(t,e){u+="\n - "+e+": "+t,c&&(l+=encodeURI(e)+"="+encodeURI(t))})),l+=u}y(t,"displayError",{chart:r,code:n,message:l,params:o},(function(){if(i)throw Error(l);x.console&&-1===e.messages.indexOf(l)&&console.warn(l)})),e.messages.push(l)}function n(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function r(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function o(t,e){return!(!t||"object"!=typeof t||e&&r(t))}function a(t){return o(t)&&"number"==typeof t.nodeType}function c(t){var e=t&&t.constructor;return!(!o(t,!0)||a(t)||!e||!e.name||"Object"===e.name)}function s(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function l(t){return null!=t}function u(t,e,n){var r;return i(e)?l(n)?t.setAttribute(e,n):t&&t.getAttribute&&((r=t.getAttribute(e))||"class"!==e||(r=t.getAttribute(e+"Name"))):m(e,(function(e,n){l(e)?t.setAttribute(n,e):t.removeAttribute(n)})),r}function d(t,e){var n;for(n in t||(t={}),e)t[n]=e[n];return t}function h(){for(var t=arguments,e=t.length,n=0;n<e;n++){var i=t[n];if(null!=i)return i}}function f(e,n){t.isMS&&!t.svg&&n&&void 0!==n.opacity&&(n.filter="alpha(opacity="+100*n.opacity+")"),d(e.style,n)}function p(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}function m(t,e,n){for(var i in t)Object.hasOwnProperty.call(t,i)&&e.call(n||t[i],t[i],i,t)}function g(e,n,i){function r(n,i){var r=e.removeEventListener||t.removeEventListenerPolyfill;r&&r.call(e,n,i,!1)}function o(t){var i;if(e.nodeName){if(n){var o={};o[n]=!0}else o=t;m(o,(function(e,n){if(t[n])for(i=t[n].length;i--;)r(n,t[n][i].fn)}))}}var a="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(a,"hcEvents")){var c=a.hcEvents;n?(a=c[n]||[],i?(c[n]=a.filter((function(t){return i!==t.fn})),r(n,i)):(o(c),c[n]=[])):(o(c),delete a.hcEvents)}}function y(e,n,i,r){if(i=i||{},b.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var o=b.createEvent("Events");o.initEvent(n,!0,!0),i=d(o,i),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(n,i)}else if(e.hcEvents){i.target||d(i,{preventDefault:function(){i.defaultPrevented=!0},target:e,type:n}),o=[];for(var a=e,c=!1;a.hcEvents;)Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents[n]&&(o.length&&(c=!0),o.unshift.apply(o,a.hcEvents[n])),a=Object.getPrototypeOf(a);c&&o.sort((function(t,e){return t.order-e.order})),o.forEach((function(t){!1===t.fn.call(e,i)&&i.preventDefault()}))}r&&!i.defaultPrevented&&r.call(e,i)}var v=t.charts,b=t.doc,x=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var _=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var n,i=t.length;for(n=0;n<i;n++)if(e(t[n],n))return t[n]};m({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(n,i){t[i]=function(t){var r;return e(32,!1,void 0,((r={})["Highcharts."+i]="use Array."+n,r)),Array.prototype[n].apply(t,[].slice.call(arguments,1))}}));var S,w=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(S?"":t)+e++}}();return x.jQuery&&(x.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[i(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):v[u(this[0],"data-highcharts-chart")]}),_={addEvent:function(e,n,i,r){void 0===r&&(r={});var o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={}),o=o.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var a=e.addEventListener||t.addEventListenerPolyfill;return a&&a.call(e,n,i,!!t.supportsPassiveEvents&&{passive:void 0===r.passive?-1!==n.indexOf("touch"):r.passive,capture:!1}),o[n]||(o[n]=[]),o[n].push({fn:i,order:"number"==typeof r.order?r.order:1/0}),o[n].sort((function(t,e){return t.order-e.order})),function(){g(e,n,i)}},arrayMax:function(t){for(var e=t.length,n=t[0];e--;)t[e]>n&&(n=t[e]);return n},arrayMin:function(t){for(var e=t.length,n=t[0];e--;)t[e]<n&&(n=t[e]);return n},attr:u,clamp:function(t,e,n){return t>e?t<n?t:n:e},cleanRecursively:function t(e,n){var i={};return m(e,(function(r,a){o(e[a],!0)&&!e.nodeType&&n[a]?(r=t(e[a],n[a]),Object.keys(r).length&&(i[a]=r)):(o(e[a])||e[a]!==n[a])&&(i[a]=e[a])})),i},clearTimeout:function(t){l(t)&&clearTimeout(t)},correctFloat:p,createElement:function(t,e,n,i,r){return t=b.createElement(t),e&&d(t,e),r&&f(t,{padding:"0",border:"none",margin:"0"}),n&&f(t,n),i&&i.appendChild(t),t},css:f,defined:l,destroyObjectProperties:function(t,e){m(t,(function(n,i){n&&n!==e&&n.destroy&&n.destroy(),delete t[i]}))},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var n=t.length;n--;)if(t[n]===e){t.splice(n,1);break}},error:e,extend:d,extendClass:function(t,e){var n=function(){};return d(n.prototype=new t,e),n},find:_,fireEvent:y,getMagnitude:function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},getNestedProperty:function(t,e){for(t=t.split(".");t.length&&l(e);){var n=t.shift();if(void 0===n||"__proto__"===n)return;if(!l(e=e[n])||"function"==typeof e||"number"==typeof e.nodeType||e===x)return}return e},getStyle:function i(r,o,a){var c=t.getStyle||i;if("width"===o)return o=Math.min(r.offsetWidth,r.scrollWidth),(a=r.getBoundingClientRect&&r.getBoundingClientRect().width)<o&&a>=o-1&&(o=Math.floor(a)),Math.max(0,o-(c(r,"padding-left",!0)||0)-(c(r,"padding-right",!0)||0));if("height"===o)return Math.max(0,Math.min(r.offsetHeight,r.scrollHeight)-(c(r,"padding-top",!0)||0)-(c(r,"padding-bottom",!0)||0));if(x.getComputedStyle||e(27,!0),r=x.getComputedStyle(r,void 0)){var s=r.getPropertyValue(o);h(a,"opacity"!==o)&&(s=n(s))}return s},inArray:function(t,n,i){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),n.indexOf(t,i)},isArray:r,isClass:c,isDOMElement:a,isFunction:function(t){return"function"==typeof t},isNumber:s,isObject:o,isString:i,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,n={},i=function(t,e){return"object"!=typeof t&&(t={}),m(e,(function(n,r){"__proto__"!==r&&"constructor"!==r&&(!o(n,!0)||c(n)||a(n)?t[r]=e[r]:t[r]=i(t[r]||{},n))})),t};!0===e[0]&&(n=e[1],e=Array.prototype.slice.call(e,2));var r=e.length;for(t=0;t<r;t++)n=i(n,e[t]);return n},normalizeTickInterval:function(t,e,n,i,r){var o=t,a=t/(n=h(n,1));for(e||(e=r?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===i&&(1===n?e=e.filter((function(t){return 0==t%1})):.1>=n&&(e=[1/n]))),i=0;i<e.length&&(o=e[i],!(r&&o*n>=t||!r&&a<=(e[i]+(e[i+1]||e[i]))/2));i++);return p(o*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:m,offset:function(t){var e=b.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}
1).top+(x.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(x.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,n){return Array((e||2)+1-String(t).replace("-","").length).join(n||"0")+t},pick:h,pInt:n,relativeLength:function(t,e,n){return/%$/.test(t)?e*parseFloat(t)/100+(n||0):parseFloat(t)},removeEvent:g,splat:function(t){return r(t)?t:[t]},stableSort:function(t,e){var n,i,r=t.length;for(i=0;i<r;i++)t[i].safeI=i;for(t.sort((function(t,i){return 0===(n=e(t,i))?t.safeI-i.safeI:n})),i=0;i<r;i++)delete t[i].safeI},syncTimeout:function(t,e,n){return 0<e?setTimeout(t,e,n):(t.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:w,useSerialIds:function(t){return S=h(t,S)},wrap:function(t,e,n){var i=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,r=this;return r.proceed=function(){i.apply(r,arguments.length?arguments:e)},t.unshift(i),t=n.apply(this,t),r.proceed=null,t}}}})),e(n,"Core/Chart/ChartDefaults.js",[],(function(){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}})),e(n,"Core/Color/Color.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.isNumber,i=e.merge,r=e.pInt;return e=function(){function e(n){this.rgba=[NaN,NaN,NaN,NaN],this.input=n;var i=t.Color;return i&&i!==e?new i(n):this instanceof e?void this.init(n):new e(n)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.init=function(t){var n;if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map((function(t){return new e(t[1])}));else if("string"==typeof t){if(this.input=t=e.names[t.toLowerCase()]||t,"#"===t.charAt(0)){var i=t.length,r=parseInt(t.substr(1),16);7===i?n=[(16711680&r)>>16,(65280&r)>>8,255&r,1]:4===i&&(n=[(3840&r)>>4|(3840&r)>>8,(240&r)>>4|240&r,(15&r)<<4|15&r,1])}if(!n)for(r=e.parsers.length;r--&&!n;){var o=e.parsers[r];(i=o.regex.exec(t))&&(n=o.parse(i))}}n&&(this.rgba=n)},e.prototype.get=function(t){var e=this.input,r=this.rgba;if("object"==typeof e&&void 0!==this.stops){var o=i(e);return o.stops=[].slice.call(o.stops),this.stops.forEach((function(e,n){o.stops[n]=[o.stops[n][0],e.get(t)]})),o}return r&&n(r[0])?"rgb"===t||!t&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===t?""+r[3]:"rgba("+r.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(n(t)&&0!==t)for(var i=0;3>i;i++)e[i]+=r(255*t),0>e[i]&&(e[i]=0),255<e[i]&&(e[i]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var i=this.rgba,r=t.rgba;return n(i[0])&&n(r[0])?((t=1!==r[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(r[0]+(i[0]-r[0])*(1-e))+","+Math.round(r[1]+(i[1]-r[1])*(1-e))+","+Math.round(r[2]+(i[2]-r[2])*(1-e))+(t?","+(r[3]+(i[3]-r[3])*(1-e)):"")+")":t.input||"none"},e.names={white:"#ffffff",black:"#000000"},e.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[r(t[1]),r(t[2]),r(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[r(t[1]),r(t[2]),r(t[3]),1]}}],e.None=new e(""),e}()})),e(n,"Core/Color/Palettes.js",[],(function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}})),e(n,"Core/Time.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=t.win,i=e.defined,r=e.error,o=e.extend,a=e.isObject,c=e.merge,s=e.objectEach,l=e.pad,u=e.pick,d=e.splat,h=e.timeUnits,f=t.isSafari&&n.Intl&&n.Intl.DateTimeFormat.prototype.formatRange,p=t.isSafari&&n.Intl&&!n.Intl.DateTimeFormat.prototype.formatRange;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=n.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var n=e.getTime(),i=n-this.getTimezoneOffset(e);return e.setTime(i),t=e["getUTC"+t](),e.setTime(n),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,n){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](n);var i=this.getTimezoneOffset(e);return i=e.getTime()-i,e.setTime(i),e["setUTC"+t](n),t=this.getTimezoneOffset(e),i=e.getTime()+t,e.setTime(i)}return this.useUTC||f&&"FullYear"===t?e["setUTC"+t](n):e["set"+t](n)},e.prototype.update=function(t){var e=u(t&&t.useUTC,!0);this.options=t=c(!0,this.options||{},t),this.Date=t.Date||n.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(t,e,n,i,r,o){if(this.useUTC){var a=this.Date.UTC.apply(0,arguments),c=this.getTimezoneOffset(a);a+=c;var s=this.getTimezoneOffset(a);c!==s?a+=s-c:c-36e5!==this.getTimezoneOffset(a-36e5)||p||(a-=36e5)}else a=new this.Date(t,e,u(n,1),u(i,0),u(r,0),u(o,0)).getTime();return a},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,i=e.getTimezoneOffset,o=e.moment||n.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(o)return function(t){return 6e4*-o.tz(t,e.timezone).utcOffset()};r(25)}return this.useUTC&&i?function(t){return 6e4*i(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,n,r){if(!i(n)||isNaN(n))return t.defaultOptions.lang&&t.defaultOptions.lang.invali
1dDate||"";e=u(e,"%Y-%m-%d %H:%M:%S");var a=this,c=new this.Date(n),d=this.get("Hours",c),h=this.get("Day",c),f=this.get("Date",c),p=this.get("Month",c),m=this.get("FullYear",c),g=t.defaultOptions.lang,y=g&&g.weekdays,v=g&&g.shortWeekdays;return c=o({a:v?v[h]:y[h].substr(0,3),A:y[h],d:l(f),e:l(f,2," "),w:h,b:g.shortMonths[p],B:g.months[p],m:l(p+1),o:p+1,y:m.toString().substr(2,2),Y:m,H:l(d),k:d,I:l(d%12||12),l:d%12||12,M:l(this.get("Minutes",c)),p:12>d?"AM":"PM",P:12>d?"am":"pm",S:l(c.getSeconds()),L:l(Math.floor(n%1e3),3)},t.dateFormats),s(c,(function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(a,n):t)})),r?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return a(t,!0)?t:{main:(t=d(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,n,r){var a,c=this,s=[],l={},d=new c.Date(e),f=t.unitRange,p=t.count||1;if(r=u(r,1),i(e)){if(c.set("Milliseconds",d,f>=h.second?0:p*Math.floor(c.get("Milliseconds",d)/p)),f>=h.second&&c.set("Seconds",d,f>=h.minute?0:p*Math.floor(c.get("Seconds",d)/p)),f>=h.minute&&c.set("Minutes",d,f>=h.hour?0:p*Math.floor(c.get("Minutes",d)/p)),f>=h.hour&&c.set("Hours",d,f>=h.day?0:p*Math.floor(c.get("Hours",d)/p)),f>=h.day&&c.set("Date",d,f>=h.month?1:Math.max(1,p*Math.floor(c.get("Date",d)/p))),f>=h.month){c.set("Month",d,f>=h.year?0:p*Math.floor(c.get("Month",d)/p));var m=c.get("FullYear",d)}f>=h.year&&c.set("FullYear",d,m-m%p),f===h.week&&(m=c.get("Day",d),c.set("Date",d,c.get("Date",d)-m+r+(m<r?-7:0))),m=c.get("FullYear",d),r=c.get("Month",d);var g=c.get("Date",d),y=c.get("Hours",d);for(e=d.getTime(),!c.variableTimezone&&c.useUTC||!i(n)||(a=n-e>4*h.month||c.getTimezoneOffset(e)!==c.getTimezoneOffset(n)),e=d.getTime(),d=1;e<n;)s.push(e),e=f===h.year?c.makeTime(m+d*p,0):f===h.month?c.makeTime(m,r+d*p):!a||f!==h.day&&f!==h.week?a&&f===h.hour&&1<p?c.makeTime(m,r,g,y+d*p):e+f*p:c.makeTime(m,r,g+d*p*(f===h.day?1:7)),d++;s.push(e),f<=h.hour&&1e4>s.length&&s.forEach((function(t){0==t%18e5&&"000000000"===c.dateFormat("%H%M%S%L",t)&&(l[t]="day")}))}return s.info=o(t,{higherRanks:l,totalRange:f*p}),s},e.prototype.getDateFormat=function(t,e,n,i){var r=this.dateFormat("%m-%d %H:%M:%S.%L",e),o={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond";for(c in h){if(t===h.week&&+this.dateFormat("%w",e)===n&&"00:00:00.000"===r.substr(6)){var c="week";break}if(h[c]>t){c=a;break}if(o[c]&&r.substr(o[c])!=="01-01 00:00:00.000".substr(o[c]))break;"week"!==c&&(a=c)}if(c)var s=this.resolveDTLFormat(i[c]).main;return s},e}()})),e(n,"Core/DefaultOptions.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palettes.js"],n["Core/Time.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o){e=e.parse;var a=o.merge,c={colors:i.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:n.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:n.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">â</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};c.chart.styledMode=!1;var s=new r(a(c.global,c.time));return t={defaultOptions:c,defaultTime:s,getOptions:function(){return c},setOptions:function(t){return a(!0,c,t),(t.time||t.global)&&(n.time?n.time.update(a(c.global,c.time,t.global,t.time)):n.time=s),c}}})),e(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=t.parse,r=e.win,o=n.isNumber,a=n.objectEach;return function(){function t(t,e,n){this.pos=NaN,this.options=e,this.elem=t,this.prop=n}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];
1t=t&&t[1];var n=this.now||0,i=[];if(1!==n&&e&&t)if(e.length===t.length&&1>n)for(var r=0;r<t.length;r++){for(var a=e[r],c=t[r],s=[],l=0;l<c.length;l++){var u=a[l],d=c[l];o(u)&&o(d)&&("A"!==c[0]||4!==l&&5!==l)?s[l]=u+n*(d-u):s[l]=d}i.push(s)}else i=t;else i=this.toD||[];this.elem.attr("d",i,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,n=this.now,i=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,n,null,!0):t.style[e]=n+this.unit,i&&i.call(t,n,this)},t.prototype.run=function(e,n,i){var o=this,a=o.options,c=function(t){return!c.stopped&&o.step(t)},s=r.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&s(l)};e!==n||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=n,this.unit=i,this.now=this.start,this.pos=0,c.elem=this.elem,c.prop=this.prop,c()&&1===t.timers.push(c)&&s(l)):(delete a.curAnim[this.prop],a.complete&&0===Object.keys(a.curAnim).length&&a.complete.call(this.elem))},t.prototype.step=function(t){var e=+new Date,n=this.options,i=this.elem,r=n.complete,o=n.duration,c=n.curAnim;if(i.attr&&!i.element)t=!1;else if(t||e>=o+this.startTime){this.now=this.end,this.pos=1,this.update();var s=c[this.prop]=!0;a(c,(function(t){!0!==t&&(s=!1)})),s&&r&&r.call(i),t=!1}else this.pos=n.easing((e-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,n){function i(t,e){for(;t.length<h;){var n=t[0],i=e[h-t.length];i&&"M"===n[0]&&(t[0]="C"===i[0]?["C",n[1],n[2],n[1],n[2],n[1],n[2]]:["L",n[1],n[2]]),t.unshift(n),s&&(n=t.pop(),t.push(t[t.length-1],n))}}function r(t,e){for(;t.length<h;)if("C"===(e=t[Math.floor(t.length/l)-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),s){var n=t[Math.floor(t.length/l)].slice();t.splice(t.length/2,0,e,n)}else t.push(e)}var a=t.startX,c=t.endX;n=n.slice();var s=t.isArea,l=s?2:1;if(!(e=e&&e.slice()))return[n,n];if(a&&c&&c.length){for(t=0;t<a.length;t++){if(a[t]===c[0]){var u=t;break}if(a[0]===c[c.length-a.length+t]){u=t;var d=!0;break}if(a[a.length-1]===c[c.length-a.length+t]){u=a.length-t;break}}void 0===u&&(e=[])}if(e.length&&o(u)){var h=n.length+u*l;d?(i(e,n),r(n,e)):(i(n,e),r(e,n))}return[e,n]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,i(this.start).tweenTo(i(this.end),this.pos),void 0,!0)},t.timers=[],t}()})),e(n,"Core/Animation/AnimationUtilities.js",[n["Core/Animation/Fx.js"],n["Core/Utilities.js"]],(function(t,e){function n(t){return s(t)?l({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function i(e,n){for(var i=t.timers.length;i--;)t.timers[i].elem!==e||n&&n!==t.timers[i].prop||(t.timers[i].stopped=!0)}
1var r=e.defined,o=e.getStyle,a=e.isArray,c=e.isNumber,s=e.isObject,l=e.merge,u=e.objectEach,d=e.pick;return{animate:function(e,n,r){var d,h,f,p="";if(!s(r)){var m=arguments;r={duration:m[2],easing:m[3],complete:m[4]}}c(r.duration)||(r.duration=400),r.easing="function"==typeof r.easing?r.easing:Math[r.easing]||Math.easeInOutSine,r.curAnim=l(n),u(n,(function(c,s){i(e,s),f=new t(e,r,s),h=void 0,"d"===s&&a(n.d)?(f.paths=f.initPath(e,e.pathArray,n.d),f.toD=n.d,d=0,h=1):e.attr?d=e.attr(s):(d=parseFloat(o(e,s))||0,"opacity"!==s&&(p="px")),h||(h=c),"string"==typeof h&&h.match("px")&&(h=h.replace(/px/g,"")),f.run(d,h,p)}))},animObject:n,getDeferredAnimation:function(t,e,i){var o=n(e),a=0,c=0;return(i?[i]:t.series).forEach((function(t){t=n(t.options.animation),a=e&&r(e.defer)?o.defer:Math.max(a,t.duration+t.defer),c=Math.min(o.duration,t.duration)})),t.renderer.forExport&&(a=0),{defer:Math.max(0,a-c),duration:Math.min(a,c)}},setAnimation:function(t,e){e.renderer.globalAnimation=d(t,e.options.chart.animation,!0)},stop:i}})),e(n,"Core/Renderer/HTML/AST.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=t.SVG_NS,i=e.attr,r=e.createElement,o=e.error,a=e.isFunction,c=e.isString,s=e.objectEach,l=e.splat,u=(e=t.win.trustedTypes)&&a(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(t){return t}}),d=u?u.createHTML(""):"";try{var h=!!(new DOMParser).parseFromString(d,"text/html")}catch(t){h=!1}return a=function(){function e(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return e.filterUserAttributes=function(t){return s(t,(function(n,i){var r=!0;-1===e.allowedAttributes.indexOf(i)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i)&&(r=c(n)&&e.allowedReferences.some((function(t){return 0===n.indexOf(t)}))),r||(o("Highcharts warning: Invalid attribute '"+i+"' in config"),delete t[i])})),t},e.setElementHTML=function(t,n){t.innerHTML=e.emptyHTML,n&&new e(n).addToDOM(t)},e.prototype.addToDOM=function(r){return function r(a,c){var u;return l(a).forEach((function(a){var l=a.tagName,d=a.textContent?t.doc.createTextNode(a.textContent):void 0;if(l)if("#text"===l)var h=d;else if(-1!==e.allowedTags.indexOf(l)){l=t.doc.createElementNS("svg"===l?n:c.namespaceURI||n,l);var f=a.attributes||{};s(a,(function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"textContent"!==e&&(f[e]=t)})),i(l,e.filterUserAttributes(f)),d&&l.appendChild(d),r(a.children||[],l),h=l}else o("Highcharts warning: Invalid tagName "+l+" in config");h&&c.appendChild(h),u=h})),u}(this.nodes,r)},e.prototype.parseMarkup=function(t){var e=[];if(t=t.trim(),h)t=(new DOMParser).parseFromString(u?u.createHTML(t):t,"text/html");else{var n=r("div");n.innerHTML=t,t={body:n}}var i=function(t,e){var n=t.nodeName.toLowerCase(),r={tagName:n};if("#text"===n&&(r.textContent=t.textContent||""),n=t.attributes){var o={};[].forEach.call(n,(function(t){o[t.name]=t.value})),r.attributes=o}if(t.childNodes.length){var a=[];[].forEach.call(t.childNodes,(function(t){i(t,a)})),a.length&&(r.children=a)}e.push(r)};return[].forEach.call(t.body.childNodes,(function(t){return i(t,e)})),e},e.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" "),e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),e.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" "),e.emptyHTML=d,e}()})),e(n,"Core/FormatUtilities.js",[n["Core/DefaultOptions.js"],n["Core/Utilities.js"]],(function(t,e){function n(t,e,n,r){t=+t||0,e=+e;var o=i.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,u=t.toString().split("e"),d=e;if(-1===e)e=Math.min(l,20);else if(a(e)){if(e&&u[1]&&0>u[1]){var h=e+ +u[1];0<=h?(u[0]=(+u[0]).toExponential(h).split("e")[0],e=h):(u[0]=u[0].split(".")[0]||0,t=20>e?(u[0]*Math.pow(10,u[1])).toFixed(e):0,u[1]=0)}}else e=2;h=(Math.abs(u[1]?u[0]:t)+Math.pow(10,-Math.max(e,l)-1)).toFixed(e);var f=3<(l=String(s(h))).length?l.length%3:0;return n=c(n,o.decimalPoint),r=c(r,o.thousandsSep),t=(0>t?"-":"")+(f?l.substr(0,f)+r:""),t=0>+u[1]&&!d?"0":t+l.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+r),e&&(t+=n+h.slice(-e)),u[1]&&0!=+t&&(t+="e"+u[1]),t}var i=t.defaultOptions,r=t.defaultTime,o=e.getNestedProperty,a=e.isNumber,c=e.pick,s=e.pInt;return{dateFormat:function(t,e,n){return r.dateFormat(t,e,n)},format:function(t,e,a){var c="{",s=!1,l=/f$/,u=/\.([0-9])/,d=i.lang,h=a&&a.time||r;a=a&&a.numberFormatter||n;for(var f=[];t;){var p=t.indexOf(c);if(-1===p)break;var m=t.slice(0,p);if(s){if(m=m.split(":"),c=o(m.shift()||"",e),m.length&&"number"==typeof c)if(m=m.join(":"),l.test(m)){var g=parseInt((m.match(u)||["","-1"])[1],10);null!==c&&(c=a(c,g,d.decimalPoint,-1<m.indexOf(",")?d.thousandsSep:""))}else c=h.dateFormat(m,c);f.push(c)}else f.push(m);t=t.slice(p+1),c=(s=!s)?"}":"{"}return f.push(t),f.join("")},numberFormat:n}})),e(n,"Core/Renderer/RendererUtilities.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.clamp,i=t.pick,r=t.stableSort;return function(t){t.distribute=function t(e,o,a){var c,s=e,l=s.reducedLen||o,u=function(t,e){return(e.rank||0)-(t.rank||0)},d=function(t,e){return t.target-e.target},h=!0,f=[],p=0;for(c=e.length;c--;)p+=e[c].size;if(p>l){for(r(e,u),p=c=0;p<=l;)p+=e[c].size,c++;f=e.splice(c-1,e.length)}for(r(e,d),e=e.map((function(t){return{size:t.size,targets:[t.target],align:i(t.align,.5)}}));h;){for(c=e.length;c--;
1)l=e[c],u=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=n(u-l.size*l.align,0,o-l.size);for(c=e.length,h=!1;c--;)0<c&&e[c-1].pos+e[c-1].size>e[c].pos&&(e[c-1].size+=e[c].size,e[c-1].targets=e[c-1].targets.concat(e[c].targets),e[c-1].align=.5,e[c-1].pos+e[c-1].size>o&&(e[c-1].pos=o-e[c-1].size),e.splice(c,1),h=!0)}return s.push.apply(s,f),c=0,e.some((function(e){var n=0;return(e.targets||[]).some((function(){return s[c].pos=e.pos+n,void 0!==a&&Math.abs(s[c].pos-s[c].target)>a?(s.slice(0,c+1).forEach((function(t){return delete t.pos})),s.reducedLen=(s.reducedLen||o)-.1*o,s.reducedLen>.1*o&&t(s,o,a),!0):(n+=s[c].size,c++,!1)}))})),r(s,d),s}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=t.animate,a=t.animObject,c=t.stop,s=i.deg2rad,l=i.doc,u=i.noop,d=i.svg,h=i.SVG_NS,f=i.win,p=r.addEvent,m=r.attr,g=r.createElement,y=r.css,v=r.defined,b=r.erase,x=r.extend,_=r.fireEvent,S=r.isArray,w=r.isFunction,A=r.isNumber,E=r.isString,L=r.merge,k=r.objectEach,C=r.pick,T=r.pInt,M=r.syncTimeout,q=r.uniqueKey;return(t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=h,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY roun
1ded".split(" ")}return t.prototype._defaultGetter=function(t){return t=C(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,n){n.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,n=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var i=this.zIndexSetter();return i||(t?t.element:e.box).appendChild(n),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var n=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce((function(t,e){return-1===n.indexOf(e)&&t.push(e),t}),n?[n]:[]).join(" "))!==n&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,n){var i,r,o,a={},c=this.renderer,s=c.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!n||E(n))&&(this.alignTo=i=n||"renderer",b(s,this),s.push(this),n=void 0)):(t=this.alignOptions,e=this.alignByTranslate,i=this.alignTo),n=C(n,c[i],"scrollablePlotBox"===i?c.plotBox:void 0,c),i=t.align;var l=t.verticalAlign;return c=(n.x||0)+(t.x||0),s=(n.y||0)+(t.y||0),"right"===i?r=1:"center"===i&&(r=2),r&&(c+=(n.width-(t.width||0))/r),a[e?"translateX":"x"]=Math.round(c),"bottom"===l?o=1:"middle"===l&&(o=2),o&&(s+=(n.height-(t.height||0))/o),a[e?"translateY":"y"]=Math.round(s),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,n){var i=this,r=a(C(e,this.renderer.globalAnimation,!0));return e=r.defer,C(l.hidden,l.msHidden,l.webkitHidden,!1)&&(r.duration=0),0!==r.duration?(n&&(r.complete=n),M((function(){i.element&&o(i,t,r)}),e)):(this.attr(t,void 0,n),k(t,(function(t,e){r.step&&r.step.call(this,t,{prop:e,pos:1,elem:this})}),this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var n=t.split(" ");if(t=n[n.length-1],(n=n[0])&&"none"!==n&&i.svg){this.fakeTS=!0,this.ySetter=this.xSetter,n=n.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,n){return 2*Number(e)+n})),this.removeTextOutline();var r=l.createElementNS(h,"tspan");m(r,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":n,"stroke-linejoin":"round"}),[].forEach.call(e.childNodes,(function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return e.removeAttribute(t)})),r.appendChild(e)}));var o=l.createElementNS(h,"tspan");o.textContent="â",["x","y"].forEach((function(t){var n=e.getAttribute(t);n&&o.setAttribute(t,n)})),r.appendChild(o),e.insertBefore(r,e.firstChild)}},t.prototype.attr=function(t,e,n,i){var r,o,a,s=this.element,l=this.symbolCustomAttribs,u=this;if("string"==typeof t&&void 0!==e){var d=t;(t={})[d]=e}return"string"==typeof t?u=(this[t+"Getter"]||this._defaultGetter).call(this,t,s):(k(t,(function(e,n){o=!1,i||c(this,n),this.symbolName&&-1!==l.indexOf(n)&&(r||(this.symbolAttr(t),r=!0),o=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),o||((a=this[n+"Setter"]||this._defaultSetter).call(this,e,n,s),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,e,a))}),this),this.afterSetters()),n&&n.call(this),u},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var n=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+n,t.y=Math.floor(t.y||this.y||0)+n,t.width=Math.floor((t.width||this.width||0)-2*n),t.height=Math.floor((t.height||this.height||0)-2*n),v(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,i){var r,o,a,c,s,l,u,d,h,f,p,m=this.renderer,g=[];_(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(a=t[o],s=m.gradients,l=t.stops,h=i.radialReference,S(a)&&(t[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&h&&!v(a.gradientUnits)&&(c=a,a=L(a,m.getRadialAttr(h,c),{gradientUnits:"userSpaceOnUse"})),k(a,(function(t,e){"id"!==e&&g.push(e,t)})),k(l,(function(t){g.push(t)})),g=g.join(","),s[g])f=s[g].attr("id");else{a.id=f=q();var y=s[g]=m.createElement(o).attr(a).add(m.defs);y.radAttr=c,y.stops=[],l.forEach((function(t){0===t[1].indexOf("rgba")?(r=n.parse(t[1]),u=r.get("rgb"),d=r.get("a")):(u=t[1],d=1),t=m.createElement("stop").attr({offset:t[0],"stop-color":u,"stop-opacity":d}).add(y),y.stops.push(t)}))}p="url("+m.url+"#"+f+")",i.setAttribute(e,p),i.gradient=g,t.toString=function(){return p}}}))},t.prototype.css=function(t){var e=this.styles,n={},i=this.element,r=["textOutline","textOverflow","width"],o="",a=!e;if(t&&t.color&&(t.fill=t.color),e&&k(t,(function(t,i){e&&e[i]!==t&&(n[i]=t,a=!0)})),a){if(e&&(t=x(e,n)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===i.nodeName.toLowerCase()&&t.width)var c=this.textWidth=T(t.width);if(this.styles=t,c&&!d&&this.renderer.forExport&&delete t.width,i.namespaceURI===this.SVG_NS){var s=function(t,e){return"-"+e.toLowerCase()};k(t,(function(t,e){-1===r.indexOf(e)&&(o+=e.replace(/([A-Z])/g,s)+":"+t+";")})),o&&m(i,"style",o)}else y(i,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var n=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=n.length;t--;)n[t]=""+T(n[t])*C(e,NaN);t=n.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},n=t.renderer,i=e.ownerSVGElement,r=n.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,c(t),t.clipPath&&i){var o=t.clipPath;[].forEach.call(i.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1<t.getAttribute("clip-path").indexOf(o.element.i
1d)&&t.removeAttribute("clip-path")})),t.clipPath=o.destroy()}if(t.stops){for(i=0;i<t.stops.length;i++)t.stops[i].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),n.styledMode||t.destroyShadows();r&&r.div&&0===r.div.childNodes.length;)e=r.parentGroup,t.safeRemoveChild(r.div),delete r.div,r=e;t.alignTo&&b(n.alignedObjects,t),k(t,(function(e,n){t[n]&&t[n].parentGroup===t&&t[n].destroy&&t[n].destroy(),delete t[n]}))},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach((function(t){this.safeRemoveChild(t)}),this),this.shadows=void 0},t.prototype.destroyTextPath=function(t,e){var n=t.getElementsByTagName("text")[0];if(n){if(n.removeAttribute("dx"),n.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&n.getElementsByTagName("textPath").length){for(t=this.textPathWrapper.element.childNodes;t.length;)n.appendChild(t[0]);n.removeChild(this.textPathWrapper.element)}}else(t.getAttribute("dx")||t.getAttribute("dy"))&&(t.removeAttribute("dx"),t.removeAttribute("dy"));this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())},t.prototype.dSetter=function(t,e,n){S(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((function(t,e,n){return e&&e.join?(n?t+" ":"")+e.join(" "):(e||"").toString()}),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(n.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0}
1,{duration:C(t,150),complete:function(){e.attr({y:-9999}).hide()}})},t.prototype.fillSetter=function(t,e,n){"string"==typeof t?n.setAttribute(e,t):t&&this.complexColor(t,e,n)},t.prototype.getBBox=function(e,n){var i=this.renderer,r=this.element,o=this.styles,a=this.textStr,c=i.cache,l=i.cacheKeys,u=r.namespaceURI===this.SVG_NS;n=C(n,this.rotation,0);var d,h=i.styledMode?r&&t.prototype.getStyle.call(r,"font-size"):o&&o.fontSize;if(v(a)){var f=a.toString();-1===f.indexOf("<")&&(f=f.replace(/[0-9]/g,"0")),f+=["",n,h,this.textWidth,o&&o.textOverflow,o&&o.fontWeight].join()}if(f&&!e&&(d=c[f]),!d){if(u||i.forExport){try{var p=this.fakeTS&&function(t){var e=r.querySelector(".highcharts-text-outline");e&&y(e,{display:t})};w(p)&&p("none"),d=r.getBBox?x({},r.getBBox()):{width:r.offsetWidth,height:r.offsetHeight},w(p)&&p("")}catch(t){}(!d||0>d.width)&&(d={width:0,height:0})}else d=this.htmlGetBBox();if(i.isSVG&&(e=d.width,i=d.height,u&&(d.height=i={"11px,17":14,"13px,20":16}[(h||"")+","+Math.round(i)]||i),n&&(u=n*s,d.width=Math.abs(i*Math.sin(u))+Math.abs(e*Math.cos(u)),d.height=Math.abs(i*Math.cos(u))+Math.abs(e*Math.sin(u)))),f&&(""===a||0<d.height)){for(;250<l.length;)delete c[l.shift()];c[f]||l.push(f),c[f]=d}}return d},t.prototype.getStyle=function(t){return f.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?g(e):l.createElementNS(this.SVG_NS,e),this.renderer=t,_(this,"afterInit")},t.prototype.invert=function(t){return this.inverted=t,this.updateTransform(),this},t.prototype.on=function(t,e){var n=this.onEvents;return n[t]&&n[t](),n[t]=p(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,n){this.opacity=t=Number(Number(t).toFixed(3)),n.setAttribute(e,t)},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(E(t)?new RegExp("(^| )"+t+"( |$)"):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.setTextPath=function(t,n){var i=this.element,r=this.text?this.text.element:i,o={textAnchor:"text-anchor"},a=!1,c=this.textPathWrapper,s=!c;n=L(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},n);var l=e.filterUserAttributes(n.attributes);if(t&&n&&n.enabled){c&&null===c.element.parentNode?(s=!0,c=c.destroy()):c&&this.removeTextOutline.call(c.parentGroup),this.options&&this.options.padding&&(l.dx=-this.options.padding),c||(this.textPathWrapper=c=this.renderer.createElement("textPath"),a=!0);var d=c.element;if((n=t.element.getAttribute("id"))||t.element.setAttribute("id",n=q()),s)for(r.setAttribute("y",0),A(l.dx)&&r.setAttribute("x",-l.dx),t=[].slice.call(r.childNodes),s=0;s<t.length;s++){var h=t[s];h.nodeType!==f.Node.TEXT_NODE&&"tspan"!==h.nodeName||d.appendChild(h)}a&&c&&c.add({element:r}),d.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+n),v(l.dy)&&(d.parentNode.setAttribute("dy",l.dy),delete l.dy),v(l.dx)&&(d.parentNode.setAttribute("dx",l.dx),delete l.dx),k(l,(function(t,e){d.setAttribute(o[e]||e,t)})),i.removeAttribute("transform"),this.removeTextOutline.call(c),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=u}else c&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(i,t),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},t.prototype.shadow=function(t,e,n){var i,r=[],o=this.element,a=this.oldSha
1dowOptions,c={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},s=!1;if(!0===t?i=c:"object"==typeof t&&(i=x(c,t)),i&&(i&&a&&k(i,(function(t,e){t!==a[e]&&(s=!0)})),s&&this.destroyShadows(),this.oldShadowOptions=i),i){if(!this.shadows){var l=i.opacity/i.width,u=this.parentInverted?"translate("+i.offsetY+", "+i.offsetX+")":"translate("+i.offsetX+", "+i.offsetY+")";for(c=1;c<=i.width;c++){var d=o.cloneNode(!1),h=2*i.width+1-2*c;m(d,{stroke:t.color||"#000000","stroke-opacity":l*c,"stroke-width":h,transform:u,fill:"none"}),d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow"),n&&(m(d,"height",Math.max(m(d,"height")-h,0)),d.cutHeight=h),e?e.element.appendChild(d):o.parentNode&&o.parentNode.insertBefore(d,o),r.push(d)}this.shadows=r}}else this.destroyShadows();return this},t.prototype.show=function(t){return this.attr({visibility:t?"inherit":"visible"})},t.prototype.strokeSetter=function(e,n,i){this[n]=e,this.stroke&&this["stroke-width"]?(t.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===n&&0===e&&this.hasStroke?(i.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),e=0;if(t.indexOf("px")===t.length-2)e=T(t);else if(""!==t){var n=l.createElementNS(h,"rect");m(n,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(n),e=n.getBBox().width,n.parentNode.removeChild(n)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(n){e[n]=C(t[n],e[n])})),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},t.prototype.titleSetter=function(t){var e=this.element,n=e.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(n,e.firstChild):e.appendChild(n),n.textContent=String(C(t,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,n){var i=this.shadows;if(i)for(var r=i.length;r--;)n.call(i[r],"height"===t?Math.max(e-(i[r].cutHeight||0),0):"d"===t?this.d:e,t,i[r])},t.prototype.updateTransform=function(){var t=this.scaleX,e=this.scaleY,n=this.inverted,i=this.rotation,r=this.matrix,o=this.element,a=this.translateX||0,c=this.translateY||0;n&&(a+=this.width,c+=this.height),a=["translate("+a+","+c+")"],v(r)&&a.push("matrix("+r.join(",")+")"),n?a.push("rotate(90) scale(-1,1)"):i&&a.push("rotate("+i+" "+C(this.rotationOriginX,o.getAttribute("x"),0)+" "+C(this.rotationOriginY,o.getAttribute("y")||0)+")"),(v(t)||v(e))&&a.push("scale("+C(t,1)+" "+C(e,1)+")"),a.length&&o.setAttribute("transform",a.join(" "))},t.prototype.visibilitySetter=function(t,e,n){"inherit"===t?n.removeAttribute(e):this[e]!==t&&n.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var n=this.renderer,i=this.parentGroup,r=(i||n).element||n.box,o=this.element;n=r===n.box;var a,c=!1,s=this.added;if(v(t)?(o.setAttribute("data-z-index",t),t=+t,this[e]===t&&(s=!1)):v(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,s){for((t=this.zIndex)&&i&&(i.handleZ=!0),a=(e=r.childNodes).length-1;0<=a&&!c;a--){s=(i=e[a]).getAttribute("data-z-index");var l=!v(s);i!==o&&(0>t&&l&&!n&&!a?(r.insertBefore(o,e[a]),c=!0):(T(s)<=t||l&&(!v(t)||0<=t))&&(r.insertBefore(o,e[a+1]||null),c=!0))}
1c||(r.insertBefore(o,e[n?3:0]||null),c=!0)}return c},t}()).prototype["stroke-widthSetter"]=t.prototype.strokeSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t})),e(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],(function(t){var e;return function(e){var n;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=n),e.rendererTypes[t]||e.rendererTypes[n]},e.registerRendererType=function(i,r,o){e.rendererTypes[i]=r,n&&!o||(n=i,t.Renderer=r)}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),i=e.defined,r=e.extend,o=e.isNumber,a=e.merge,c=e.pick,s=e.removeEvent;return function(e){function l(t,n,i,r,o,a,c,s,u,d){var h,f=e.call(this)||this;return f.paddingLeftSetter=f.paddingSetter,f.paddingRightSetter=f.paddingSetter,f.init(t,"g"),f.textStr=n,f.x=i,f.y=r,f.anchorX=a,f.anchorY=c,f.baseline=u,f.className=d,f.addClass("button"===d?"highcharts-no-tooltip":"highcharts-label"),d&&f.addClass("highcharts-"+d),f.text=t.text(void 0,0,0,s).attr({zIndex:1}),"string"==typeof o&&((h=/^url\((.*?)\)$/.test(o))||f.renderer.symbols[o])&&(f.symbolKey=o),f.bBox=l.emptyBBox,f.padding=3,f.baselineOffset=0,f.needsBox=t.styledMode||h,f.deferredAttr={},f.alignFactor=0,f}return n(l,e),l.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&o(this.xSetting)&&this.attr({x:this.xSetting}))},l.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},l.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},l.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},l.prototype.css=function(e){if(e){var n={};e=a(e),l.textProps.forEach((function(t){void 0!==e[t]&&(n[t]=e[t],delete e[t])})),this.text.css(n);var i="width"in n;"fontSize"in n||"fontWeight"in n?this.updateTextPadding():i&&this.updateBoxSize()}return t.prototype.css.call(this,e)},l.prototype.destroy=function(){s(this.element,"mouseenter"),s(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},l.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},l.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=c(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},l.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},l.prototype.heightSetter=function(t){this.heightSetting=t},l.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:i(t)?t:"",x:this.x,y:this.y}),this.box&&i(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},l.prototype.paddingSetter=function(t,e){o(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},l.prototype.rSetter=function(t,e){this.boxAttr(e,t)},l.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},l.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},l.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},l.prototype["text-alignSetter"]=function(t){this.textAlign=t},l.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},l.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},n=this.padding,a=this.bBox=o(this.widthSetting)&&o(this.heightSetting)&&!this.textAlign||!i(this.text.textStr)?l.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*n,t=this.renderer.fontMetrics(t&&t.fontSize,this.text),this.baselineOffset=n+Math.min((this.text.firstLineMetrics||t).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-t.h)/2),this.needsBox&&(this.box||((n=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),n.add(this)),n=this.getCrispAdjust(),e.x=n,e.y=(this.baseline?-this.baselineOffset:0)+n,e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(r(e,this.deferredAttr)),this.deferredAttr={})},l.prototype.updateTextPadding=function(){var t=this.text;this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,n=c(this.paddingLeft,this.padding);i(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(n+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),n===t.x&&e===t.y||
1(t.attr("x",n),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=n,t.y=e},l.prototype.widthSetter=function(t){this.widthSetting=o(t)?t:void 0},l.prototype.getPaddedWidth=function(){var t=this.padding,e=c(this.paddingLeft,t);return t=c(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},l.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},l.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),l}(t)})),e(n,"Core/Renderer/SVG/Symbols.js",[n["Core/Utilities.js"]],(function(t){function e(t,e,n,i,o){var c=[];if(o){var s=o.start||0,l=a(o.r,n);n=a(o.r,i||n);var u=(o.end||0)-.001;i=o.innerR;var d=a(o.open,.001>Math.abs((o.end||0)-s-2*Math.PI)),h=Math.cos(s),f=Math.sin(s),p=Math.cos(u),m=Math.sin(u);s=a(o.longArc,.001>u-s-Math.PI?0:1),c.push(["M",t+l*h,e+n*f],["A",l,n,0,s,a(o.clockwise,1),t+l*p,e+n*m]),r(i)&&c.push(d?["M",t+i*p,e+i*m]:["L",t+i*p,e+i*m],["A",i,i,0,s,r(o.clockwise)?1-o.clockwise:0,t+i*h,e+i*f]),d||c.push(["Z"])}return c}function n(t,e,n,r,o){return o&&o.r?i(t,e,n,r,o):[["M",t,e],["L",t+n,e],["L",t+n,e+r],["L",t,e+r],["Z"]]}function i(t,e,n,i,r){return[["M",t+(r=r&&r.r||0),e],["L",t+n-r,e],["C",t+n,e,t+n,e,t+n,e+r],["L",t+n,e+i-r],["C",t+n,e+i,t+n,e+i,t+n-r,e+i],["L",t+r,e+i],["C",t,e+i,t,e+i,t,e+i-r],["L",t,e+r],["C",t,e,t,e,t+r,e]]}var r=t.defined,o=t.isNumber,a=t.pick;return{arc:e,callout:function(t,e,n,r,a){var c=Math.min(a&&a.r||0,n,r),s=c+6,l=a&&a.anchorX;a=a&&a.anchorY||0;var u=i(t,e,n,r,{r:c});return o(l)?(t+l>=n?a>e+s&&a<e+r-s?u.splice(3,1,["L",t+n,a-6],["L",t+n+6,a],["L",t+n,a+6],["L",t+n,e+r-c]):u.splice(3,1,["L",t+n,r/2],["L",l,a],["L",t+n,r/2],["L",t+n,e+r-c]):0>=t+l?a>e+s&&a<e+r-s?u.splice(7,1,["L",t,a+6],["L",t-6,a],["L",t,a-6],["L",t,e+c]):u.splice(7,1,["L",t,r/2],["L",l,a],["L",t,r/2],["L",t,e+c]):a&&a>r&&l>t+s&&l<t+n-s?u.splice(5,1,["L",l+6,e+r],["L",l,e+r+6],["L",l-6,e+r],["L",t+c,e+r]):a&&0>a&&l>t+s&&l<t+n-s&&u.splice(1,1,["L",l-6,e],["L",l,e-6],["L",l+6,e],["L",n-c,e]),u):u},circle:function(t,n,i,r){return e(t+i/2,n+r/2,i/2,r/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,n,i){return[["M",t+n/2,e],["L",t+n,e+i/2],["L",t+n/2,e+i],["L",t,e+i/2],["Z"]]},rect:n,roundedRect:i,square:n,triangle:function(t,e,n,i){return[["M",t+n/2,e],["L",t+n,e+i],["L",t,e+i],["Z"]]},"triangle-down":function(t,e,n,i){return[["M",t,e],["L",t+n,e],["L",t+n/2,e+i],["Z"]]}}})),e(n,"Core/Renderer/SVG/TextBuilder.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=e.doc,r=e.SVG_NS,o=e.win,a=n.attr,c=n.isString,s=n.objectEach,l=n.pick;return function(){function e(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace),this.fontSize=e&&e.fontSize}return e.prototype.buildSVG=function(){var e=this.svgElement,n=e.element,r=e.renderer,o=l(e.textStr,"").toString(),a=-1!==o.indexOf("<"),s=n.childNodes;r=this.width&&!e.added&&r.box;var u=[o,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(u!==e.textCache){for(e.textCache=u,delete e.actualWidth,u=s.length;u--;)n.removeChild(s[u]);a||this.ellipsis||this.width||-1!==o.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(o))?""!==o&&(r&&r.appendChild(n),o=new t(o),this.modifyTree(o.nodes),o.addToDOM(e.element),this.modifyDOM(),this.ellipsis&&-1!==(n.textContent||"").indexOf("â¦")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),r&&r.removeChild(n)):n.appendChild(i.createTextNode(this.unescapeEntities(o))),c(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,n=this.svgElement,c=a(n.element,"x");for(n.firstLineMetrics=void 0;(t=n.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)n.element.removeChild(t);[].forEach.call(n.element.querySelectorAll("tspan.highcharts-br"),(function(t,i){t.nextSibling&&t.previousSibling&&(0===i&&1===t.previousSibling.nodeType&&(n.firstLineMetrics=n.renderer.fontMetrics(void 0,t.previousSibling)),a(t,{dy:e.getLineHeight(t.nextSibling),x:c}))}));var s=this.width||0;if(s){var l=function(t,o){var l=t.textContent||"",u=l.replace(/([^\^])-/g,"$1- ").split(" "),d=!e.noWrap&&(1<u.length||1<n.element.childNodes.length),h=e.getLineHeight(o),f=0,p=n.actualWidth;if(e.ellipsis)l&&e.truncate(t,l,void 0,0,Math.max(0,s-parseInt(e.fontSize||12,10)),(function(t,e){return t.substring(0,e)+"â¦"}));else if(d){for(l=[],d=[];o.firstChild&&o.firstChild!==t;)d.push(o.firstChild),o.removeChild(o.firstChild);for(;u.length;)u.length&&!e.noWrap&&0<f&&(l.push(t.textContent||""),t.textContent=u.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,u,0===f&&p||0,s,(function(t,e){return u.slice(0,e).join(" ").replace(/- /g,"-")})),p=n.actualWidth,f++;d.forEach((function(e){o.insertBefore(e,t)})),l.forEach((function(e){o.insertBefore(i.createTextNode(e),t),(e=i.createElementNS(r,"tspan")).textContent="â",a(e,{dy:h,x:c}),o.insertBefore(e,t)}))}}
1,u=function(t){[].slice.call(t.childNodes).forEach((function(e){e.nodeType===o.Node.TEXT_NODE?l(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(n.actualWidth=0),u(e))}))};u(n.element)}},e.prototype.getLineHeight=function(t){var e;return t=t.nodeType===o.Node.TEXT_NODE?t.parentElement:t,this.renderer.styledMode||(e=t&&/(px|em)$/.test(t.style.fontSize)?t.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,t||this.svgElement.element).h},e.prototype.modifyTree=function(t){var e=this,n=function(i,r){var o=i.attributes;o=void 0===o?{}:o;var a=i.children,s=i.tagName,l=e.renderer.styledMode;"b"===s||"strong"===s?l?o.class="highcharts-strong":o.style="font-weight:bold;"+(o.style||""):"i"!==s&&"em"!==s||(l?o.class="highcharts-emphasized":o.style="font-style:italic;"+(o.style||"")),c(o.style)&&(o.style=o.style.replace(/(;| |^)color([ :])/,"$1fill$2")),"br"===s?(o.class="highcharts-br",i.textContent="â",(r=t[r+1])&&r.textContent&&(r.textContent=r.textContent.replace(/^ +/gm,""))):"a"===s&&a&&a.some((function(t){return"#text"===t.tagName}))&&(i.children=[{children:a,tagName:"tspan"}]),"#text"!==s&&"a"!==s&&(i.tagName="tspan"),i.attributes=o,a&&a.filter((function(t){return"#text"!==t.tagName})).forEach(n)};t.forEach(n)},e.prototype.truncate=function(t,e,n,i,r,o){var a,c=this.svgElement,s=c.renderer,l=c.rotation,u=[],d=n?1:0,h=(e||n||"").length,f=h,p=function(r,a){a=a||r;var l=t.parentNode;if(l&&void 0===u[a])if(l.getSubStringLength)try{u[a]=i+l.getSubStringLength(0,n?a+1:a)}catch(t){}else s.getSpanWidth&&(t.textContent=o(e||n,r),u[a]=i+s.getSpanWidth(c,t));return u[a]};c.rotation=0;var m=p(t.textContent.length);if(i+m>r){for(;d<=h;)f=Math.ceil((d+h)/2),n&&(a=o(n,f)),m=p(f,a&&a.length-1),d===h?d=h+1:m>r?h=f-1:d=f;0===h?t.textContent="":e&&h===e.length-1||(t.textContent=a||o(e||n,f))}n&&n.splice(0,f),c.actualWidth=m,c.rotation=l},e.prototype.unescapeEntities=function(t,e){return s(this.renderer.escapes,(function(n,i){e&&-1!==e.indexOf(n)||(t=t.toString().replace(new RegExp(n,"g"),i))})),t},e}()})),e(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Renderer/SVG/TextBuilder.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,c,s){var l,u=n.charts,d=n.deg2rad,h=n.doc,f=n.isFirefox,p=n.isMS,m=n.isWebKit,g=n.noop,y=n.SVG_NS,v=n.symbolSizes,b=n.win,x=s.addEvent,_=s.attr,S=s.createElement,w=s.css,A=s.defined,E=s.destroyObjectProperties,L=s.extend,k=s.isArray,C=s.isNumber,T=s.isObject,M=s.isString,q=s.merge,I=s.pick,O=s.pInt,P=s.uniqueKey;return n=function(){function n(t,e,n,i,r,o,a){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,n,i,r,o,a)}return n.prototype.init=function(t,e,n,i,r,o,a){var c,s=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),l=s.element;a||s.css(this.getStyle(i)),t.appendChild(l),_(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&_(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=s,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(h.createTextNode("Created with Highcharts 9.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=r,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1),f&&t.getBoundingClientRect&&((e=function(){w(t,{left:0,top:0}),c=t.getBoundingClientRect(),w(t,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})})(),this.unSubPixelFix=x(b,"resize",e))},n.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},n.prototype.getReferenceURL=function(){if((f||m)&&h.getElementsByTagName("base").length){if(!A(l)){var e=P();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+e+")",fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(h.body),w(e,{position:"fixed",top:0,left:0,zIndex:9e5});var n=h.elementFromPoint(6,6);l="hitme"===(n&&n.id),h.body.removeChild(e)}if(l)return b.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},n.prototype.getStyle=function(t){return this.style=L({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},n.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},n.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),E(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},n.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},n.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},n.prototype.buildText=function(t){new c(t).buildSVG()},n.prototype.getContrast=function(t){return(t=e.parse(t).rgba)[0]*=1,t[1]*=1.2,t[2]*=.5,459<t[0]+t[1]+t[2]?"#000000":"#FFFFFF"},n.prototype.button=function(e,n,i,r,o,a,c,s,l,u){var d=this.label(e,n,i,l,void 0,void 0,u,void 0,"button"),h=this.styledMode,f=0,m=o?q(o):{};if(e=m&&m.style||{},m=t.filterUserAttributes(m),d.attr(q({padding:8,r:2},m)),!h){var g=(m=q({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},{style:e},m)).style;delete m.style;
1var y=(a=q(m,{fill:"#e6e6e6"},t.filterUserAttributes(a||{}))).style;delete a.style;var v=(c=q(m,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(c||{}))).style;delete c.style;var b=(s=q(m,{style:{color:"#cccccc"}},t.filterUserAttributes(s||{}))).style;delete s.style}return x(d.element,p?"mouseover":"mouseenter",(function(){3!==f&&d.setState(1)})),x(d.element,p?"mouseout":"mouseleave",(function(){3!==f&&d.setState(f)})),d.setState=function(t){1!==t&&(d.state=f=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),h||d.attr([m,a,c,s][t||0]).css([g,y,v,b][t||0])},h||d.attr(m).css(L({cursor:"default"},g)),d.on("touchstart",(function(t){return t.stopPropagation()})).on("click",(function(t){3!==f&&r.call(d,t)}))},n.prototype.crispLine=function(t,e,n){void 0===n&&(n="round");var i=t[0],r=t[1];return A(i[1])&&i[1]===r[1]&&(i[1]=r[1]=Math[n](i[1])-e%2/2),A(i[2])&&i[2]===r[2]&&(i[2]=r[2]=Math[n](i[2])+e%2/2),t},n.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return k(t)?e.d=t:T(t)&&L(e,t),this.createElement("path").attr(e)},n.prototype.circle=function(t,e,n){return t=T(t)?t:void 0===t?{}:{x:t,y:e,r:n},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,n){n.setAttribute("c"+e,t)},e.attr(t)},n.prototype.arc=function(t,e,n,i,r,o){return T(t)?(e=(i=t).y,n=i.r,t=i.x):i={innerR:i,start:r,end:o},(t=this.symbol("arc",t,e,n,n,i)).r=n,t},n.prototype.rect=function(t,e,n,i,r,o){r=T(t)?t.r:r;var a=this.createElement("rect");return t=T(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(n,0),height:Math.max(i,0)},this.styledMode||(void 0!==o&&(t["stroke-width"]=o,t=a.crisp(t)),t.fill="none"),r&&(t.r=r),a.rSetter=function(t,e,n){a.r=t,_(n,{rx:t,ry:t})},a.rGetter=function(){return a.r||0},a.attr(t)},n.prototype.setSize=function(t,e,n){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:I(n,!0)?void 0:0}),this.alignElements()},n.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},n.prototype.image=function(t,e,n,i,r,o){var a={preserveAspectRatio:"none"},c=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};C(e)&&(a.x=e),C(n)&&(a.y=n),C(i)&&(a.width=i),C(r)&&(a.height=r);var s=this.createElement("image").attr(a);return e=function(e){c(s.element,t),o.call(s,e)},o?(c(s.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n=new b.Image,x(n,"load",e),n.src=t,n.complete&&e({})):c(s.element,t),s},n.prototype.symbol=function(t,e,n,i,r,o){var a,c=this,s=/^url\((.*?)\)$/,l=s.test(t),d=!l&&(this.symbols[t]?t:"circle"),f=d&&this.symbols[d];if(f){"number"==typeof e&&(a=f.call(this.symbols,Math.round(e||0),Math.round(n||0),i||0,r||0,o));var p=this.path(a);c.styledMode||p.attr("fill","none"),L(p,{symbolName:d||void 0,x:e,y:n,width:i,height:r}),o&&L(p,o)}else if(l){var m=t.match(s)[1],g=p=this.image(m);g.imgwidth=I(v[m]&&v[m].width,o&&o.width),g.imgheight=I(v[m]&&v[m].height,o&&o.height);var y=function(t){return t.attr({width:t.width,height:t.height})};["width","height"].forEach((function(t){g[t+"Setter"]=function(t,e){var n=this["img"+e];this[e]=t,A(n)&&(o&&"within"===o.backgroundSize&&this.width&&this.height&&(n=Math.round(n*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,n),this.alignByTranslate||(t=((this[e]||0)-n)/2,this.attr("width"===e?{translateX:t}:{translateY:t})))}})),A(e)&&g.attr({x:e,y:n}),g.isImg=!0,A(g.imgwidth)&&A(g.imgheight)?y(g):(g.attr({width:0,height:0}),S("img",{onload:function(){var t=u[c.chartIndex];0===this.width&&(w(this,{position:"absolute",top:"-999em"}),h.body.appendChild(this)),v[m]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&y(g),this.parentNode&&this.parentNode.removeChild(this),c.imgCount--,c.imgCount||!t||t.hasLoaded||t.onload()},src:m}),this.imgCount++)}return p},n.prototype.clipRect=function(t,e,n,i){var r=P()+"-",o=this.createElement("clipPath").attr({id:r}).add(this.defs);return(t=this.rect(t,e,n,i,0).add(o)).id=r,t.clipPath=o,t.count=0,t},n.prototype.text=function(t,e,n,i){var r={};return!i||!this.allowHTML&&this.forExport?(r.x=Math.round(e||0),n&&(r.y=Math.round(n)),A(t)&&(r.text=t),t=this.createElement("text").attr(r),(!i||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,n){for(var i,r=n.getElementsByTagName("tspan"),o=n.getAttribute(e),a=0;a<r.length;a++)(i=r[a]).getAttribute(e)===o&&i.setAttribute(e,t);n.setAttribute(e,t)}),t):this.html(t,e,n)},n.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!b.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&r.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?O(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},n.prototype.rotCorr=function(t,e,n){var i=t;return e&&n&&(i=Math.max(i*Math.cos(e*d),4)),{x:-t/3*Math.sin(e*d),y:i}},n.prototype.pathToSegments=function(t){for(var e=[],n=[],i={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},r=0;r<t.length;r++)M(n[0])&&C(t[r])&&n.length===i[n[0].toUpperCase()]&&t.splice(r,0,n[0].replace("M","L").replace("m","l")),"string"==typeof t[r]&&(n.length&&e.push(n.slice(0)),n.length=0),n.push(t[r]);return e.push(n.slice(0)),e},n.prototype.label=function(t,e,n,i,r,a,c,s,l){return new o(this,t,e,n,i,r,a,c,s,l)},n.prototype.alignElements=function(){this.alignedObjects.forEac
1h((function(t){return t.align()}))},n}(),L(n.prototype,{Element:r,SVG_NS:y,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:a,draw:g}),i.registerRendererType("svg",n,!0),n})),e(n,"Core/Renderer/HTML/HTMLElement.js",[n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=t.isFirefox,o=t.isMS,a=t.isWebKit,c=t.win,s=n.css,l=n.defined,u=n.extend,d=n.pick,h=n.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var n=e.prototype,i=t.prototype;i.getSpanCorrection=n.getSpanCorrection,i.htmlCss=n.htmlCss,i.htmlGetBBox=n.htmlGetBBox,i.htmlUpdateTransform=n.htmlUpdateTransform,i.setSpanRotation=n.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,n){this.xCorr=-t*n,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,n=d(e&&t.width,void 0);if(e){delete t.width,this.textWidth=n;var i=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=u(this.styles,t),s(this.element,t),i&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,n=this.translateX||0,i=this.translateY||0,r=this.x||0,o=this.y||0,a=this.textAlign||"left",c={left:0,center:.5,right:1}[a],u=this.styles;if(u=u&&u.whiteSpace,s(e,{marginLeft:n,marginTop:i}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){s(t,{marginLeft:n+1,marginTop:i+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(n){t.invertChild(n,e)})),"SPAN"===e.tagName){var d=this.rotation,f=this.textWidth&&h(this.textWidth),p=[d,a,e.innerHTML,this.textWidth,this.textAlign].join(),m=void 0;if(m=!1,f!==this.oldTextWidth){if(this.textPxLength)var g=this.textPxLength;else s(e,{width:"",whiteSpace:u||"nowrap"}),g=e.offsetWidth;(f>this.oldTextWidth||g>f)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(s(e,{width:g>f||d?f+"px":"auto",display:"block",whiteSpace:u||"normal"}),this.oldTextWidth=f,m=!0)}this.hasBoxWidthChanged=m,p!==this.cTT&&(m=t.fontMetrics(e.style.fontSize,e).b,!l(d)||d===(this.oldRotation||0)&&a===this.oldAlign||this.setSpanRotation(d,c,m),this.getSpanCorrection(!l(d)&&this.textPxLength||e.offsetWidth,m,c,d,a)),s(e,{left:r+(this.xCorr||0)+"px",top:o+(this.yCorr||0)+"px"}),this.cTT=p,this.oldRotation=d,this.oldAlign=a}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,n){var i={},l=o&&!/Edge/.test(c.navigator.userAgent)?"-ms-transform":a?"-webkit-transform":r?"MozTransform":c.opera?"-o-transform":void 0;l&&(i[l]=i.transform="rotate("+t+"deg)",i[l+(r?"Origin":"-origin")]=i.transformOrigin=100*e+"% "+n+"px",s(this.element,i))},e.composedClasses=[],e}(e)})),e(n,"Core/Renderer/HTML/HTMLRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=i.attr,a=i.createElement,c=i.extend,s=i.pick;return function(n){function i(){return null!==n&&n.apply(this,arguments)||this}
1return r(i,n),i.compose=function(t){return-1===i.composedClasses.indexOf(t)&&(i.composedClasses.push(t),t.prototype.html=i.prototype.html),t},i.prototype.html=function(n,i,r){var l=this.createElement("span"),u=l.element,d=l.renderer,h=d.isSVG,f=function(t,n){["opacity","visibility"].forEach((function(i){t[i+"Setter"]=function(r,o,a){var c=t.div?t.div.style:n;e.prototype[i+"Setter"].call(this,r,o,a),c&&(c[o]=r)}})),t.addedSetters=!0};return l.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,s(e,"")),this.textStr=e,l.doTransform=!0)},h&&f(l,l.element.style),l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(t,e){"align"===e?l.alignValue=l.textAlign=t:l[e]=t,l.doTransform=!0},l.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},l.attr({text:n,x:Math.round(i),y:Math.round(r)}).css({position:"absolute"}),d.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),u.style.whiteSpace="nowrap",l.css=l.htmlCss,h&&(l.add=function(t){var e=d.box.parentNode,n=[];if(this.parentGroup=t){var i=t.div;if(!i){for(;t;)n.push(t),t=t.parentGroup;n.reverse().forEach((function(t){function r(e,n){t[n]=e,"translateX"===n?d.left=e+"px":d.top=e+"px",t.doTransform=!0}var s=o(t.element,"class"),u=t.styles||{},d=(i=t.div=t.div||a("div",s?{className:s}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:u.cursor,pointerEvents:u.pointerEvents,visibility:t.visibility},i||e)).style;c(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(i),on:function(){return n[0].div&&l.on.apply({element:n[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:r,translateYSetter:r}),t.addedSetters||f(t)}))}}else i=e;return i.appendChild(u),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l}),l},i.composedClasses=[],i}(n)})),e(n,"Core/Axis/AxisDefaults.js",[],(function(){var t;return function(t){t.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},t.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},t.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(t||(t={})),t})),e(n,"Core/Foundation.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,i=t.isFunction,r=t.objectEach,o=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},r(e.events,(function(e,r){t.eventOptions[r]!==e&&(t.eventOptions[r]&&(o(t,r,t.eventOptions[r]),delete t.eventOptions[r]),i(e)&&(t.eventOptions[r]=e,n(t,r,e)))}))}}(e||(e={})),e})),e(n,"Core/Axis/Tick.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=e.deg2rad,r=n.clamp,o=n.correctFloat,a=n.defined,c=n.destroyObjectProperties,s=n.extend,l=n.fireEvent,u=n.isNumber,d=n.merge,h=n.objectEach,f=n.pick;return e=function(){function e(t,e,n,i,r){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=n||"",this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,"init"),n||i||this.addLabel()}return e.prototype.addLabel=function(){var e=this,n=e.axis,i=n.options,r=n.chart,c=n.categories,d=n.logarithmic,h=n.names,p=e.pos,m=f(e.options&&e.options.labels,i.labels),g=n.tickPositions,y=p===g[0],v=p===g[g.length-1],b=(!m.step||1===m.step)&&1===n.tickInterval;g=g.info;var x,_=e.label;if(c=this.parameters.category||(c?f(c[p],h[p],p):p),d&&u(c)&&(c=o(d.lin2log(c))),n.dateTime)if(g)var S=r.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&g.higherRanks[p]||g.unitName]),w=S.main;else u(c)&&(w=n.dateTime.getXDateFormat(c,i.dateTimeLabelFormats||{}));e.isFirst=y,e.isLast=v;var A={axis:n,chart:r,dateTimeLabelFormat:w,isFirst:y,isLast:v,pos:p,tick:e,tickPositionInfo:g,value:c};l(this,"labelFormat",A);var E=function(e){return m.formatter?m.formatter.call(e,e):m.format?(e.text=n.defaultLabelFormatter.call(e),t.format(m.format,e,r)):n.defaultLabelFormatter.call(e,e)};i=E.call(A,A);var L=S&&S.list;e.shortenLabel=L?function(){for(x=0;x<L.length;x++)if(s(A,{dateTimeLabelFormat:L[x]}),_.attr({text:E.call(A,A)}),_.getBBox().width<n.getSlotWidth(e)-2*m.padding)return;_.attr({text:""})}:void 0,b&&n._addedPlotLB&&e.moveLabel(i,m),a(_)||e.movedLabel?_&&_.textStr!==i&&!b&&(!_.textWidth||m.style.width||_.styles.width||_.css({width:null}),_.attr({text:i}),_.textPxLength=_.getBBox().width):(e.label=_=e.createLabel({x:0,y:0},i,m),e.rotation=0)},e.prototype.createLabel=function(t,e,n){var i=this.axis,r=i.chart;return(t=a(e)&&n.enabled?r.renderer.text(e,t.x,t.y,n.useHTML).add(i.labelGroup):null)&&(r.styledMode||t.css(d(n.style)),t.textPxLength=t.getBBox().width),t},e.prototype.destroy=function(){c(this,this.axis)},e.prototype.getPosition=function(t,e,n,i){var a=this.axis,c=a.chart,s=i&&c.oldChartHeight||c.chartHe
1ight;return(t={x:t?o(a.translate(e+n,null,null,i)+a.transB):a.left+a.offset+(a.opposite?(i&&c.oldChartWidth||c.chartWidth)-a.right-a.left:0),y:t?s-a.bottom+a.offset-(a.opposite?a.height:0):o(s-a.translate(e+n,null,null,i)-a.transB)}).y=r(t.y,-1e5,1e5),l(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,n,r,o,c,s,u){var d=this.axis,h=d.transA,f=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,p=d.staggerLines,m=d.tickRotCorr||{x:0,y:0},g=r||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),y={},v=o.y;return a(v)||(v=0===d.side?n.rotation?-8:-n.getBBox().height:2===d.side?m.y+8:Math.cos(n.rotation*i)*(m.y-n.getBBox(!1,0).height/2)),t=t+o.x+g+m.x-(c&&r?c*h*(f?-1:1):0),e=e+v-(c&&!r?c*h*(f?1:-1):0),p&&(n=s/(u||1)%p,d.opposite&&(n=p-n-1),e+=d.labelOffset/p*n),y.x=t,y.y=Math.round(e),l(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:c,index:s}),y},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,n,i,r,o){return o.crispLine([["M",t,e],["L",t+(r?0:-n),e+(r?n:0)]],i)},e.prototype.handleOverflow=function(t){var e=this.axis,n=e.options.labels,r=t.x,o=e.chart.chartWidth,a=e.chart.spacing,c=f(e.labelLeft,Math.min(e.pos,a[3]));a=f(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,o-a[1]));var s,l=this.label,u=this.rotation,d={left:0,center:.5,right:1}[e.labelAlign||l.attr("align")],h=l.getBBox().width,p=e.getSlotWidth(this),m={},g=p,y=1;u||"justify"!==n.overflow?0>u&&r-d*h<c?s=Math.round(r/Math.cos(u*i)-c):0<u&&r+d*h>a&&(s=Math.round((o-r)/Math.cos(u*i))):(o=r+(1-d)*h,r-d*h<c?g=t.x+g*(1-d)-c:o>a&&(g=a-t.x+g*d,y=-1),(g=Math.min(p,g))<p&&"center"===e.labelAlign&&(t.x+=y*(p-g-d*(p-Math.min(h,g)))),(h>g||e.autoRotation&&(l.styles||{}).width)&&(s=g)),s&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(s)+"px",(n.style||{}).textOverflow||(m.textOverflow="ellipsis"),l.css(m)))},e.prototype.moveLabel=function(t,e){var n=this,i=n.label,r=n.axis,o=r.reversed,a=!1;if(i&&i.textStr===t?(n.movedLabel=i,a=!0,delete n.label):h(r.ticks,(function(e){a||e.isNew||e===n||!e.label||e.label.textStr!==t||(n.movedLabel=e.label,a=!0,e.labelPos=n.movedLabel.xy,delete e.label)})),!a&&(n.labelPos||i)){var c=n.labelPos||i.xy;i=r.horiz?o?0:r.width+r.left:c.x,r=r.horiz?c.y:o?r.width+r.left:0,n.movedLabel=n.createLabel({x:i,y:r},t,e),n.movedLabel&&n.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,n){var i=this.axis,r=i.horiz,o=this.pos,a=f(this.tickmarkOffset,i.tickmarkOffset);a=(o=this.getPosition(r,o,a,e)).x;var c=o.y;i=r&&a===i.pos+i.len||!r&&c===i.pos?-1:1,r=f(n,this.label&&this.label.newOpacity,1),n=f(n,1),this.isActive=!0,this.renderGridLine(e,n,i),this.renderMark(o,n,i),this.renderLabel(o,e,r,t),this.isNew=!1,l(this,"afterRender")},e.prototype.renderGridLine=function(t,e,n){var i=this.axis,r=i.options,o={},a=this.pos,c=this.type,s=f(this.tickmarkOffset,i.tickmarkOffset),l=i.chart.renderer,u=this.gridLine,d=r.gridLineWidth,h=r.gridLineColor,p=r.gridLineDashStyle;"minor"===this.type&&(d=r.minorGridLineWidth,h=r.minorGridLineColor,p=r.minorGridLineDashStyle),u||(i.chart.styledMode||(o.stroke=h,o["stroke-width"]=d||0,o.dashstyle=p),c||(o.zIndex=1),t&&(e=0),this.gridLine=u=l.path().attr(o).addClass("highcharts-"+(c?c+"-":"")+"grid-line").add(i.gridGroup)),u&&(n=i.getPlotLinePath({value:a+s,lineWidth:u.strokeWidth()*n,force:"pass",old:t}))&&u[t||this.isNew?"attr":"animate"]({d:n,opacity:e})},e.prototype.renderMark=function(t,e,n){var i=this.axis,r=i.options,o=i.chart.renderer,a=this.type,c=i.tickSize(a?a+"Tick":"tick"),s=t.x;t=t.y;var l=f(r["minor"!==a?"tickWidth":"minorTickWidth"],!a&&i.isXAxis?1:0);r=r["minor"!==a?"tickColor":"minorTickColor"];var u=this.mark,d=!u;c&&(i.opposite&&(c[0]=-c[0]),u||(this.mark=u=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||u.attr({stroke:r,"stroke-width":l})),u[d?"attr":"animate"]({d:this.getMarkPath(s,t,c[0],u.strokeWidth()*n,i.horiz,o),opacity:e}))},e.prototype.renderLabel=function(t,e,n,i){var r=this.axis,o=r.horiz,a=r.options,c=this.label,s=a.labels,l=s.step;r=f(this.tickmarkOffset,r.tickmarkOffset);var d=t.x;t=t.y;var h=!0;c&&u(d)&&(c.xy=t=this.getLabelPosition(d,t,c,o,s,r,i,l),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?h=!1:!o||s.step||s.rotation||e||0===n||this.handleOverflow(t),l&&i%l&&(h=!1),h&&u(t.y)?(t.opacity=n,c[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(c.attr("y",-9999),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,n=e.reversed;if(t&&!this.isNew){var i=e.horiz?n?e.left:e.width+e.left:t.xy.x;n=e.horiz?t.xy.y:n?e.width+e.top:e.top,t.animate({x:i,y:n,opacity:0}
1,void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}()})),e(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/AxisDefaults.js"],n["Core/Color/Color.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,c){var s=t.animObject,l=i.defaultOptions,u=r.registerEventOptions,d=o.deg2rad,h=c.arrayMax,f=c.arrayMin,p=c.clamp,m=c.correctFloat,g=c.defined,y=c.destroyObjectProperties,v=c.erase,b=c.error,x=c.extend,_=c.fireEvent,S=c.getMagnitude,w=c.isArray,A=c.isNumber,E=c.isString,L=c.merge,k=c.normalizeTickInterval,C=c.objectEach,T=c.pick,M=c.relativeLength,q=c.removeEvent,I=c.splat,O=c.syncTimeout;return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var n=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!n:n,this.isXAxis=n,this.coll=this.coll||(n?"xAxis":"yAxis"),_(this,"init",{userOptions:e}),this.opposite=T(e.opposite,this.opposite),this.side=T(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var i=this.options,r=i.labels,o=i.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=T(i.reversed,this.reversed),this.visible=i.visible,this.zoomEnabled=i.zoomEnabled,this.hasNames="category"===o||!0===i.categories,this.categories=i.categories||this.hasNames,this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=g(i.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=i.minRange||i.maxZoom,this.range=i.range,this.offset=i.offset||0,this.min=this.max=null,e=T(i.crosshair,I(t.options.tooltip.crosshairs)[n?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(n?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&n&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=A(r.rotation)?r.rotation:void 0,u(this,i),_(this,"afterInit")},t.prototype.setOptions=function(t){this.options=L(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],L(l[this.coll],t)),_(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var n=A(this.value)?this.value:NaN,i=e.chart.time,r=this.dateTimeLabelFormat,o=l.lang,a=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;var c=e.logarithmic?Math.abs(n):e.tickInterval,s=a&&a.length;if(e.categories)var u=""+this.value;else if(r)u=i.dateFormat(r,n);else if(s&&1e3<=c)for(;s--&&void 0===u;)c>=(e=Math.pow(o,s+1))&&0==10*n%e&&null!==a[s]&&0!==n&&(u=t(n/e,-1)+a[s]);return void 0===u&&(u=1e4<=Math.abs(n)?t(n,-1):t(n,-1,void 0,"")),u},t.prototype.getSeriesExtremes=function(){var t,e=this,n=e.chart;_(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach((function(i){if(i.visible||!n.options.chart.ignoreHiddenSeries){var r=i.options,o=r.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=o&&(o=null),e.isXAxis){if((r=i.xData).length){r=e.logarithmic?r.filter(e.validatePositiveValue):r;var a=(t=i.getXExtremes(r)).min,c=t.max;A(a)||a instanceof Date||(r=r.filter(A),a=(t=i.getXExtremes(r)).min,c=t.max),r.length&&(e.dataMin=Math.min(T(e.dataMin,a),a),e.dataMax=Math.max(T(e.dataMax,c),c))}}else i=i.applyExtremes(),A(i.dataMin)&&(a=i.dataMin,e.dataMin=Math.min(T(e.dataMin,a),a)),A(i.dataMax)&&(c=i.dataMax,e.dataMax=Math.max(T(e.dataMax,c),c)),g(o)&&(e.threshold=o),(!r.softThreshold||e.positiveValuesOnly)&&
1(e.softThreshold=!1)}}))})),_(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,n,i,r,o){var a=this.linkedParent||this,c=i&&a.old?a.old.min:a.min,s=a.minPixelPadding;r=(a.isOrdinal||a.brokenAxis&&a.brokenAxis.hasBreaks||a.logarithmic&&r)&&a.lin2val;var l=1,u=0;return(i=i&&a.old?a.old.transA:a.transA)||(i=a.transA),n&&(l*=-1,u=a.len),a.reversed&&(u-=(l*=-1)*(a.sector||a.len)),e?(t=(t*l+u-s)/i+c,r&&(t=a.lin2val(t))):(r&&(t=a.val2lin(t)),t=A(c)?l*(t-c)*i+u+l*s+(A(o)?i*o:0):void 0),t},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,n){return("pass"!==b&&t<e||t>n)&&(b?t=p(t,e,n):a=!0),t}var n,i,r,o,a,c=this,s=c.chart,l=c.left,u=c.top,d=t.old,h=t.value,f=t.lineWidth,m=d&&s.oldChartHeight||s.chartHeight,g=d&&s.oldChartWidth||s.chartWidth,y=c.transB,v=t.translatedValue,b=t.force;return t={value:h,lineWidth:f,old:d,force:b,acrossPanes:t.acrossPanes,translatedValue:v},_(this,"getPlotLinePath",t,(function(t){v=T(v,c.translate(h,null,null,d)),v=p(v,-1e5,1e5),n=r=Math.round(v+y),i=o=Math.round(m-v-y),A(v)?c.horiz?(i=u,o=m-c.bottom,n=r=e(n,l,l+c.width)):(n=l,r=g-c.right,i=o=e(i,u,u+c.height)):(a=!0,b=!1),t.path=a&&!b?null:s.renderer.crispLine([["M",n,i],["L",r,o]],f||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,n){var i=m(Math.floor(e/t)*t);n=m(Math.ceil(n/t)*t);var r,o=[];if(m(i+t)===i&&(r=20),this.single)return[e];for(e=i;e<=n&&(o.push(e),(e=m(e+t,r))!==a);)var a=e;return o},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?T(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,n=this.minorTickInterval,i=this.pointRangePadding||0,r=this.min-i,o=(i=this.max+i)-r,a=[];if(o&&o/n<this.len/3){var c=this.logarithmic;if(c)this.paddedTicks.forEach((function(t,e,i){e&&a.push.apply(a,c.getLogTickPositions(n,i[e-1],i[e],!0))}));else if(this.dateTime&&"auto"===this.getMinorTickInterval())a=a.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(n),r,i,t.startOfWeek));else for(t=r+(e[0]-r)%n;t<=i&&t!==a[0];t+=n)a.push(t)}return 0!==a.length&&this.trimTicks(a),a},t.prototype.adjustForMinRange=function(){var t,e,n,i,r=this.options,o=this.logarithmic,a=this.min,c=this.max,s=0;if(this.isXAxis&&void 0===this.minRange&&!o&&(g(r.min)||g(r.max)||g(r.floor)||g(r.ceiling)?this.minRange=null:(this.series.forEach((function(r){if(n=r.xData,i=r.xIncrement?1:n.length-1,1<n.length)for(t=i;0<t;t--)e=n[t]-n[t-1],(!s||e<s)&&(s=e)})),this.minRange=Math.min(5*s,this.dataMax-this.dataMin))),c-a<this.minRange){var l=this.dataMax-this.dataMin>=this.minRange,u=this.minRange,d=(u-c+a)/2;d=[a-d,T(r.min,a-d)],l&&(d[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),c=[(a=h(d))+u,T(r.max,a+u)],l&&(c[2]=o?o.log2lin(this.dataMax):this.dataMax),(c=f(c))-a<u&&(d[0]=c-u,d[1]=T(r.min,c-u),a=h(d))}this.min=a,this.max=c},t.prototype.getClosest=function(){var t;return this.categories?t=1:this.series.forEach((function(e){var n=e.closestPointRange,i=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&g(n)&&i&&(t=g(t)?Math.min(t,n):n)})),t},t.prototype.nameToX=function(t){var e=w(this.categories),n=e?this.categories:this.names,i=t.options.x;if(t.series.requireSorting=!1,g(i)||(i=this.options.uniqueNames?e?n.indexOf(t.name):T(n.keys[t.name],-1):t.series.autoIncrement()),-1===i){if(!e)var r=n.length}else r=i;return void 0!==r&&(this.names[r]=t.name,this.names.keys[t.name]=r),r},t.prototype.updateNames=function(){var t=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach((function(t){delete e.keys[t]})),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach((function(n,i){if(n&&n.options&&void 0!==n.name){var r=t.nameToX(n);void 0!==r&&r!==n.x&&(n.x=r,e.xData[i]=r)}}))})))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,n=t.linkedParent,i=!!t.categories,r
1=t.isXAxis,o=t.axisPointRange||0,a=0,c=0,s=t.transA;if(r||i||o){var l=t.getClosest();n?(a=n.minPointOffset,c=n.pointRangePadding):t.series.forEach((function(e){var n=i?1:r?T(e.options.pointRange,l,0):t.axisPointRange||0,s=e.options.pointPlacement;o=Math.max(o,n),t.single&&!i||(e=e.is("xrange")?!r:r,a=Math.max(a,e&&E(s)?0:n/2),c=Math.max(c,e&&"on"===s?0:n))})),n=t.ordinal&&t.ordinal.slope&&l?t.ordinal.slope/l:1,t.minPointOffset=a*=n,t.pointRangePadding=c*=n,t.pointRange=Math.min(o,t.single&&i?1:e),r&&(t.closestPointRange=l)}t.translationSlope=t.transA=s=t.staticScale||t.len/(e+c||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=s*a,_(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this.chart,n=this.logarithmic,i=this.options,r=this.isXAxis,o=this.isLinked,a=i.tickPixelInterval,c=this.categories,s=this.softThreshold,l=i.maxPadding,u=i.minPadding,d=A(i.tickInterval)&&0<=i.tickInterval?i.tickInterval:void 0,h=A(this.threshold)?this.threshold:null;this.dateTime||c||o||this.getTickAmount();var f=T(this.userMin,i.min),p=T(this.userMax,i.max);if(o){this.linkedParent=e[this.coll][i.linkedTo];var y=this.linkedParent.getExtremes();this.min=T(y.min,y.dataMin),this.max=T(y.max,y.dataMax),i.type!==this.linkedParent.options.type&&b(11,1,e)}else{if(s&&g(h))if(this.dataMin>=h)y=h,u=0;else if(this.dataMax<=h){var v=h;l=0}this.min=T(f,y,this.dataMin),this.max=T(p,v,this.dataMax)}if(n&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,T(this.dataMin,this.min))&&b(10,1,e),this.min=m(n.log2lin(this.min),16),this.max=m(n.log2lin(this.max),16)),this.range&&g(this.max)&&(this.userMin=this.min=f=Math.max(this.dataMin,this.minFromRange()),this.userMax=p=this.max,this.range=null),_(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(c||this.axisPointRange||this.stacking&&this.stacking.usePercentage||o)&&g(this.min)&&g(this.max)&&(e=this.max-this.min)&&(!g(f)&&u&&(this.min-=e*u),!g(p)&&l&&(this.max+=e*l)),A(this.userMin)||(A(i.softMin)&&i.softMin<this.min&&(this.min=f=i.softMin),A(i.floor)&&(this.min=Math.max(this.min,i.floor))),A(this.userMax)||(A(i.softMax)&&i.softMax>this.max&&(this.max=p=i.softMax),A(i.ceiling)&&(this.max=Math.min(this.max,i.ceiling))),s&&g(this.dataMin)&&(h=h||0,!g(f)&&this.min<h&&this.dataMin>=h?this.min=this.options.minRange?Math.min(h,this.max-this.minRange):h:!g(p)&&this.max>h&&this.dataMax<=h&&(this.max=this.options.minRange?Math.max(h,this.min+this.minRange):h)),A(this.min)&&A(this.max)&&!this.chart.polar&&this.min>this.max&&(g(this.options.min)?this.max=this.min:g(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:o&&this.linkedParent&&!d&&a===this.linkedParent.options.tickPixelInterval?d=this.linkedParent.tickInterval:T(d,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,c?1:(this.max-this.min)*a/Math.max(this.len,a)),r&&!t){var x=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(x)})),_(this,"postProcessData",{hasExtemesChanged:x})}this.setAxisTranslation(),_(this,"initialAxisTranslation"),this.pointRange&&!d&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=T(i.minTickInterval,this.dateTime&&!this.series.some((function(t){return t.noSharedTooltip}))?this.closestPointRange:0),!d&&this.tickInterval<t&&(this.tickInterval=t),this.dateTime||this.logarithmic||d||(this.tickInterval=k(this.tickInterval,void 0,S(this.tickInterval),T(i.allowDecimals,.5>this.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,n=this.getMinorTickInterval(),i=this.hasVerticalPanning(),r="colorAxis"===this.coll,o=(r||!i)&&t.startOnTick;i=(r||!i)&&t.endOnTick,r=t.tickPositioner,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&g(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=n=e&&e.slice(),!n&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?n=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(n=[this.min,this.max],b(19,!1,this.chart)),n.length>this.len&&((n=[n[0],n.pop()])[0]===n[1]&&(n.length=1)),this.tickPositions=n,r&&(r=r.apply(this,[this.min,this.max])))&&
1(this.tickPositions=n=r),this.paddedTicks=n.slice(0),this.trimTicks(n,o,i),this.isLinked||(this.single&&2>n.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),e||r||this.adjustTickAmount()),_(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,n){var i=t[0],r=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(_(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==i)this.min=i;else for(;this.min-o>t[0];)t.shift();if(n)this.max=r;else for(;this.max+o<t[t.length-1];)t.pop();0===t.length&&g(i)&&!this.options.tickPositions&&t.push((r+i)/2)}},t.prototype.alignToOthers=function(){var t,e={},n=this.options;return!1!==this.chart.options.chart.alignTicks&&n.alignTicks&&!1!==n.startOnTick&&!1!==n.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach((function(n){var i=n.options;i=[n.horiz?i.left:i.top,i.width,i.height,i.pane].join(),n.series.length&&(e[i]?t=!0:e[i]=1)})),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,n=t.tickAmount;!g(t.tickInterval)&&!n&&this.len<e&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/e)+1),4>n&&(this.finalTickAmt=n,n=5),this.tickAmount=n},t.prototype.adjustTickAmount=function(){var t=this.options,e=this.tickInterval,n=this.tickPositions,i=this.tickAmount,r=this.finalTickAmt,o=n&&n.length,a=T(this.threshold,this.softThreshold?0:null);if(this.hasData()&&A(this.min)&&A(this.max)){if(o<i){for(;n.length<i;)n.length%2||this.min===a?n.push(m(n[n.length-1]+e)):n.unshift(m(n[0]-e));this.transA*=(o-1)/(i-1),this.min=t.startOnTick?n[0]:Math.min(this.min,n[0]),this.max=t.endOnTick?n[n.length-1]:Math.max(this.max,n[n.length-1])}else o>i&&(this.tickInterval*=2,this.setTickPositions());if(g(r)){for(e=t=n.length;e--;)(3===r&&1==e%2||2>=r&&0<e&&e<t-1)&&n.splice(e,1);this.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t=!1,e=!1;this.series.forEach((function(n){t=t||n.isDirtyData||n.isDirty,e=e||n.xAxis&&n.xAxis.isDirty||!1})),this.setAxisSize();var n=this.len!==(this.old&&this.old.len);n||t||e||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=n||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),t&&this.panningState&&(this.panningState.isDirty=!0),_(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,n,i,r){var o=this,a=o.chart;n=T(n,!0),o.series.forEach((function(t){delete t.kdTree})),r=x(r,{min:t,max:e}),_(o,"setExtremes",r,(function(){o.userMin=t,o.userMax=e,o.eventArgs=r,n&&a.redraw(i)}))},t.prototype.zoom=function(t,e){var n=this,i=this.dataMin,r=this.dataMax,o=this.options,a=Math.min(i,T(o.min,i)),c=Math.max(r,T(o.max,r));return _(this,"zoom",t={newMin:t,newMax:e},(function(t){var e=t.newMin,o=t.newMax;e===n.min&&o===n.max||(n.allowZoomOutside||(g(i)&&(e<a&&(e=a),e>c&&(e=c)),g(r)&&(o<a&&(o=a),o>c&&(o=c))),n.displayBtn=void 0!==e||void 0!==o,n.setExtremes(e,o,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,n=e.offsets||[0,0,0,0],i=this.horiz,r=this.width=Math.round(M(T(e.width,t.plotWidth-n[3]+n[1]),t.plotWidth)),o=this.height=Math.round(M(T(e.height,t.plotHeight-n[0]+n[2]),t.plotHeight)),a=this.top=Math.round(M(T(e.top,t.plotTop+n[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(M(T(e.left,t.plotLeft+n[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-o-a,this.right=t.chartWidth-r-e,this.len=Math.max(i?r:o,0),this.pos=i?e:a},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?m(t.lin2log(this.min)):this.min,max:t?m(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,n=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=n:1/0===t?t=e:n>t?t=n:e<t&&(t=e),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(T(t,0)-90*this.side+720)%360;return _(this,"autoLabelAlign",t={align:"center"},(function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")})),t.align},t.prototype.tickSize=function(t){var e=this.options,n=T(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),i=e["tick"===t?"tickLength":"minorTickLength"];if(n&&i){"inside"===e[t+"Position"]&&(i=-i);var r=[i,n]}return _(this,"afterTickSize",t={tickSize:r}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t,e,n=this.options.labels,i=this.horiz,r=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/r),a=n.rotation,c=this.labelMetrics(),s=Math.max(this.max-this.min,0),l=function(t){var e=t/(o||1);return(e=1<e?Math.ceil(e):1)*r>s&&1/0!==t&&1/0!==o&&s&&(e=Math.ceil(s/r)),m(e*r)},u=r,h=Number.MAX_VALUE;if(i){if(!n.staggerLines&&!n.step)if(A(a))var f=[a];else o<n.autoRotationLimit&&(f=n.autoRotation);f&&f.forEach((function(n){if(n===a||n&&-90<=n&&90>=n){var i=(e=l(Math.abs(c.h/Math.sin(d*n))))+Math.abs(n/360);i<h&&(h=i,t=n,u=e)}}))}else n.step||(u=l(c.h));return this.autoRotation=f,this.labelRotation=T(t,A(a)?a:0),u},t.prototype.getSlotWidth=function(t){var e=this.chart,n=this.horiz,i=this.options.labels,r=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=e.margin[3];if(t&&A(t.slotWidth))return t.slotWidth;if(n&&2>i.step)return i.rotation?0:(this.staggerLines||1)*this.len/r;if(!n){if(void 0!==(t=i.style.width))return parseInt(String(t),10);if(o)return o-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,n=this.tickPositions,i=this.ticks,r=this.options.labels,o=r.style,a=this.horiz,c=this.getSlotWidth(),s=Math.max(1,Math.round(c-2*r.padding)),l={},u=this.labelMetrics(),d=o.textOverflow,h=0;
1if(E(r.rotation)||(l.rotation=r.rotation||0),n.forEach((function(t){(t=i[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>h&&(h=t.label.textPxLength)})),this.maxLabelLength=h,this.autoRotation)h>s&&h>u.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(c){var f=s;if(!d){var p="clip";for(s=n.length;!a&&s--;){var m=n[s];(m=i[m].label)&&(m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>c&&m.css({width:c+"px"}),m.getBBox().height>this.len/n.length-(u.h-u.f)&&(m.specificTextOverflow="ellipsis"))}}}l.rotation&&(f=h>.5*t.chartHeight?.33*t.chartHeight:h,d||(p="ellipsis")),(this.labelAlign=r.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),n.forEach((function(t){var e=(t=i[t])&&t.label,n=o.width,r={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():f&&!n&&"nowrap"!==o.whiteSpace&&(f<e.textPxLength||"SPAN"===e.element.tagName)?(r.width=f+"px",d||(r.textOverflow=e.specificTextOverflow||p),e.css(r)):e.styles&&e.styles.width&&!r.width&&!n&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=l.rotation)}),this),this.tickRotCorr=e.rotCorr(u.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some((function(t){return t.hasData()}))||this.options.showEmpty&&g(this.min)&&g(this.max)},t.prototype.addTitle=function(t){var e,n=this.chart.renderer,i=this.horiz,r=this.opposite,o=this.options.title,a=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(i?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[o.align]),this.axisTitle=n.text(o.text||"",0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation,align:e}).addClass("highcharts-axis-title"),a||this.axisTitle.css(L(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||o.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new a(this,t)},t.prototype.getOffset=function(){var t=this,e=this,n=e.chart,i=e.horiz,r=e.options,o=e.side,a=e.ticks,c=e.tickPositions,s=e.coll,l=e.axisParent,u=n.renderer,d=n.inverted&&!e.isZAxis?[1,0,3,2][o]:o,h=e.hasData(),f=r.title,p=r.labels,m=n.axisOffset;n=n.clipOffset;var y,v=[-1,1,1,-1][o],b=r.className,x=0,S=0,w=0;if(e.showAxis=y=h||r.showEmpty,e.staggerLines=e.horiz&&p.staggerLines||void 0,!e.axisGroup){var A=function(e,n,i){return u.g(e).attr({zIndex:i}).addClass("highcharts-"+s.toLowerCase()+n+" "+(t.isRadial?"highcharts-radial-axis"+n+" ":"")+(b||"")).add(l)};e.gridGroup=A("grid","-grid",r.gridZIndex),e.axisGroup=A("axis","",r.zIndex),e.labelGroup=A("axis-labels","-labels",p.zIndex)}if(h||e.isLinked?(c.forEach((function(t){e.generateTick(t)})),e.renderUnsquish(),e.reserveSpaceDefault=0===o||2===o||{1:"left",3:"right"}[o]===e.labelAlign,T(p.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&c.forEach((function(t){w=Math.max(a[t].getLabelSize(),w)})),e.staggerLines&&(w*=e.staggerLines),e.labelOffset=w*(e.opposite?-1:1)):C(a,(function(t,e){t.destroy(),delete a[e]})),f&&f.text&&!1!==f.enabled&&(e.addTitle(y),y&&!1!==f.reserveSpace)){e.titleOffset=x=e.axisTitle.getBBox()[i?"height":"width"];var E=f.offset;S=g(E)?0:T(f.margin,i?5:10)}e.renderLine(),e.offset=v*T(r.offset,m[o]?m[o]+(r.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},f=0===o?-e.labelMetrics().h:2===o?e.tickRotCorr.y:0,h=Math.abs(w)+S,w&&(h=h-f+v*(i?T(p.y,e.tickRotCorr.y+8*v):p.x)),e.axisTitleMargin=T(E,h),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(a,c)),"colorAxis"!==s&&(i=this.tickSize("tick"),m[o]=Math.max(m[o],(e.axisTitleMargin||0)+x+v*e.offset,h,c&&c.length&&i?i[0]+v*e.offset:0),r=!e.axisLine||r.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),n[d]=Math.max(n[d],r)),_(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,n=this.opposite,i=this.offset,r=this.horiz,o=this.left+(n?this.width:0)+i;return i=e.chartHeight-this.bottom-(n?this.height:0)+i,n&&(t*=-1),e.renderer.crispLine([["M",r?this.left:o,r?i:this.top],["L",r?e.chartWidth-this.right:o,r?i:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},t.prototype.getTitlePosition=function(){var t=this.horiz,e=this.left,n=this.top,i=this.len,r=this.options.title,o=t?e:n,a=this.opposite,c=this.offset,s=r.x,l=r.y,u=this.axisTitle,d=this.chart.renderer.fontMetrics(r.style.fontSize,u);return u=Math.max(u.getBBox(null,0).height-d.h-1,0),i={low:o+(t?0:i),middle:o+i/2,high:o+(t?i:0)}[r.align],e=(t?n+this.height:e)+(t?1:-1)*(a?-1:1)*this.axisTitleMargin+[-u,u,d.f,-u][this.side],t={x:t?i+s:e+(a?this.width:0)+c+s,y:t?e+l-(a?this.height:0)+c:i+l},_(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t,e){var n=this.minorTicks;n[t]||(n[t]=new a(this,t,"minor")),e&&n[t].isNew&&n[t].render(null,!0),n[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,n){var i=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(i[t]||(i[t]=new a(this,t)),n&&i[t].isNew&&i[t].render(e,!0,-1),i[t].render(e))},t.prototype.render=function(){var t,e,n=this,i=n.chart,r=n.logarithmic,c=n.options,l=n.isLinked,u=n.tickPositions,d=n.axisTitle,h=n.ticks,f=n.minorTicks,p=n.alternateBands,m=c.stackLabels,g=c.alternateGridColor,y=n.tickmarkOffset,v=n.axisLine,b=n.showAxis,x=s(i.renderer.globalAnimation);
1if(n.labelEdge.length=0,n.overlap=!1,[h,f,p].forEach((function(t){C(t,(function(t){t.isActive=!1}))})),n.hasData()||l){var S=n.chart.hasRendered&&n.old&&A(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach((function(t){n.renderMinorTick(t,S)})),u.length&&(u.forEach((function(t,e){n.renderTick(t,e,S)})),y&&(0===n.min||n.single)&&(h[-1]||(h[-1]=new a(n,-1,null,!0)),h[-1].render(-1))),g&&u.forEach((function(a,c){e=void 0!==u[c+1]?u[c+1]+y:n.max-y,0==c%2&&a<n.max&&e<=n.max+(i.polar?-y:y)&&(p[a]||(p[a]=new o.PlotLineOrBand(n)),t=a+y,p[a].options={from:r?r.lin2log(t):t,to:r?r.lin2log(e):e,color:g,className:"highcharts-alternate-grid"},p[a].render(),p[a].isActive=!0)})),n._addedPlotLB||(n._addedPlotLB=!0,(c.plotLines||[]).concat(c.plotBands||[]).forEach((function(t){n.addPlotBandOrLine(t)})))}[h,f,p].forEach((function(t){var e=[],n=x.duration;C(t,(function(t,n){t.isActive||(t.render(n,!1,0),t.isActive=!1,e.push(n))})),O((function(){for(var n=e.length;n--;)t[e[n]]&&!t[e[n]].isActive&&(t[e[n]].destroy(),delete t[e[n]])}),t!==p&&i.hasRendered&&n?n:0)})),v&&(v[v.isPlaced?"animate":"attr"]({d:this.getLinePath(v.strokeWidth())}),v.isPlaced=!0,v[b?"show":"hide"](b)),d&&b&&(c=n.getTitlePosition(),A(c.y)?(d[d.isNew?"attr":"animate"](c),d.isNew=!1):(d.attr("y",-9999),d.isNew=!0)),m&&m.enabled&&n.stacking&&n.stacking.renderStackTotals(),n.old={len:n.len,max:n.max,min:n.min,transA:n.transA,userMax:n.userMax,userMin:n.userMin},n.isDirty=!1,_(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(t){t.render()}))),this.series.forEach((function(t){t.isDirty=!0}))},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e=this,n=e.plotLinesAndBands,i=this.eventOptions;if(_(this,"destroy",{keepEvents:t}),t||q(e),[e.ticks,e.minorTicks,e.alternateBands].forEach((function(t){y(t)})),n)for(t=n.length;t--;)n[t].destroy();for(var r in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(t){e[t]&&(e[t]=e[t].destroy())})),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[r]=e.plotLinesAndBandsGroups[r].destroy();C(e,(function(t,n){-1===e.getKeepProps().indexOf(n)&&delete e[n]})),this.eventOptions=i},t.prototype.drawCrosshair=function(t,e){var i,r=this.crosshair,o=T(r&&r.snap,!0),a=this.chart,c=this.cross;if(_(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),r&&!1!==(g(e)||!o)){if(o?g(e)&&(i=T("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):i=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),g(i)){var s={value:e&&(this.isXAxis?e.x:T(e.stackY,e.y)),translatedValue:i};a.polar&&x(s,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),s=this.getPlotLinePath(s)||null}if(!g(s))return void this.hideCrosshair();o=this.categories&&!this.isRadial,c||(this.cross=c=a.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(o?"category ":"thin ")+(r.className||"")).attr({zIndex:T(r.zIndex,2)}).add(),a.styledMode||(c.attr({stroke:r.color||(o?n.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":T(r.width,1)}).css({"pointer-events":"none"}),r.dashStyle&&c.attr({dashstyle:r.dashStyle}))),c.show().attr({d:s}),o&&!r.width&&c.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();_(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),_(this,"afterHideCrosshair")},t.prototype.hasVerticalPanning=function(){var t=this.chart.options.chart.panning;return!!(t&&t.enabled&&/y/.test(t.type))},t.prototype.validatePositiveValue=function(t){return A(t)&&0<t},t.prototype.update=function(t,e){var n=this.chart;t=L(this.userOptions,t),this.destroy(!0),this.init(n,t),n.isDirtyBox=!0,T(e,!0)&&n.redraw()},t.prototype.remove=function(t){for(var e=this.chart,n=this.coll,i=this.series,r=i.length;r--;)i[r]&&i[r].remove(!1);v(e.axes,this),v(e[n],this),e[n].forEach((function(t,e){t.options.index=t.userOptions.index=e})),this.destroy(),e.isDirtyBox=!0,T(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.defaultOptions=e.defaultXAxisOptions,t.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}()})),e(n,"Core/Axis/DateTimeAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,i=t.getMagnitude,r=t.normalizeTickInterval,o=t.timeUnits;return function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function a(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new s(this))}var c=[];t.compose=function(t){return-1===c.indexOf(t)&&(c.push(t),t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,n(t,"init",a)),t};var s=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var n=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=n[n.length-1];var a,c=o[e[0]],s=e[1];for(a=0;a<n.length&&(e=n[a],c=o[e[0]],s=e[1],!(n[a+1]&&t<=(c*s[s.length-1]+o[n[a+1][0]])/2));a++);return c===o.year&&t<5*c&&(s=[1,2,5]),{unitRange:c,count:t=r(t/c,s,"year"===e[0]?Math.max(i(t/c),1):1),unitName:e[0]}},t.prototype.getXDateFormat=function(t,e){var n=this.axis;return n.closestPointRange?n.chart.time.getDateFormat(n.closestPointRange,t,n.options.startOfWeek,e)||e.year:e.day},t}();t.Additions=s}(e||(e={})),e})),e(n,"Core/Axis/LogarithmicAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,i=t.getMagnitude,r=t.normalizeTickInterval,o=t.pick;return function(t){function e(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new s(this))}function a(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}var c=[];t.compose=function(t){return-1===c.indexOf(t)&&(c.push(t),t.keepProps.push("logarithmic"),n(t,"init",e),n(t,"afterInit",a)),t};var s=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,n,a){var c=this.axis,s=c.len,l=c.options,u=[];
1if(a||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),u=c.getLinearTickPositions(t,e,n);else if(.08<=t){var d,h=Math.floor(e),f=l=void 0;for(s=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];h<n+1&&!f;h++){var p=s.length;for(d=0;d<p&&!f;d++){var m=this.log2lin(this.lin2log(h)*s[d]);m>e&&(!a||l<=n)&&void 0!==l&&u.push(l),l>n&&(f=!0),l=m}}}else e=this.lin2log(e),n=this.lin2log(n),t=a?c.getMinorTickInterval():l.tickInterval,t=o("auto"===t?null:t,this.minorAutoInterval,l.tickPixelInterval/(a?5:1)*(n-e)/((a?s/c.tickPositions.length:s)||1)),t=r(t,void 0,i(t)),u=c.getLinearTickPositions(t,e,n).map(this.log2lin),a||(this.minorAutoInterval=t/5);return a||(c.tickInterval=t),u},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=s}(e||(e={})),e})),e(n,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.erase,i=t.extend,r=t.isNumber;return function(t){var e,o=[];t.compose=function(t,n){return e||(e=t),-1===o.indexOf(n)&&(o.push(n),i(n.prototype,a.prototype)),n};var a=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,n){void 0===n&&(n=this.options);var i=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),o=[],a=this.horiz;if(e=!r(this.min)||!r(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),n=1,t&&i){if(e){var c=t.toString()===i.toString();n=0}for(e=0;e<t.length;e+=2){var s=t[e],l=t[e+1],u=i[e],d=i[e+1];"M"!==s[0]&&"L"!==s[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==u[0]&&"L"!==u[0]||"M"!==d[0]&&"L"!==d[0]||(a&&u[1]===s[1]?(u[1]+=n,d[1]+=n):a||u[2]!==s[2]||(u[2]+=n,d[2]+=n),o.push(["M",s[1],s[2]],["L",l[1],l[2]],["L",d[1],d[2]],["L",u[1],u[2]],["Z"])),o.isFlat=c}}return o},t.prototype.addPlotBand=function(t){return this.addPlotBandOrLine(t,"plotBands")},t.prototype.addPlotLine=function(t){return this.addPlotBandOrLine(t,"plotLines")},t.prototype.addPlotBandOrLine=function(t,n){var i=this,r=this.userOptions,o=new e(this,t);if(this.visible&&(o=o.render()),o){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach((function(t){i.addPlotBandOrLine(t)}))),n){var a=r[n]||[];a.push(t),r[n]=a}this.plotLinesAndBands.push(o)}return o},t.prototype.removePlotBandOrLine=function(t){var e=this.plotLinesAndBands,i=this.options,r=this.userOptions;if(e){for(var o=e.length;o--;)e[o].id===t&&e[o].destroy();[i.plotLines||[],r.plotLines||[],i.plotBands||[],r.plotBands||[]].forEach((function(e){for(o=e.length;o--;)(e[o]||{}).id===t&&n(e,e[o])}))}},t.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},t.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},t}()}(e||(e={})),e})),e(n,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[n["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.arrayMax,i=e.arrayMin,r=e.defined,o=e.destroyObjectProperties,a=e.erase,c=e.fireEvent,s=e.merge,l=e.objectEach,u=e.pick;return e=function(){function e(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return e.compose=function(n){return t.compose(e,n)},e.prototype.render=function(){c(this,"render");var t=this,e=t.axis,n=e.horiz,i=e.logarithmic,o=t.options,a=o.color,d=u(o.zIndex,0),h=o.events,f={},p=e.chart.renderer,m=o.label,g=t.label,y=o.to,v=o.from,b=o.value,x=t.svgElem,_=[],S=r(v)&&r(y);_=r(b);var w=!x,A={class:"highcharts-plot-"+(S?"band ":"line ")+(o.className||"")},E=S?"bands":"lines";if(i&&(v=i.log2lin(v),y=i.log2lin(y),b=i.log2lin(b)),e.chart.styledMode||(_?(A.stroke=a||"#999999",A["stroke-width"]=u(o.width,1),o.dashStyle&&(A.dashstyle=o.dashStyle)):S&&(A.fill=a||"#e6ebf5",o.borderWidth&&(A.stroke=o.borderColor,A["stroke-width"]=o.borderWidth))),f.zIndex=d,E+="-"+d,(i=e.plotLinesAndBandsGroups[E])||(e.plotLinesAndBandsGroups[E]=i=p.g("plot-"+E).attr(f).add()),w&&(t.svgElem=x=p.path().attr(A).add(i)),_)_=e.getPlotLinePath({value:b,lineWidth:x.strokeWidth(),acrossPanes:o.acrossPanes});else{if(!S)return;_=e.getPlotBandPath(v,y,o)}return!t.eventsAdded&&h&&(l(h,(function(e,n){x.on(n,(function(e){h[n].apply(t,[e])}))})),t.eventsAdded=!0),(w||!x.d)&&_&&_.length?x.attr({d:_}):x&&(_?(x.show(!0),x.animate({d:_})):x.d&&(x.hide(),g&&(t.label=g=g.destroy()))),m&&(r(m.text)||r(m.formatter))&&_&&_.length&&0<e.width&&0<e.height&&!_.isFlat?(m=s({align:n&&S&&"center",x:n?!S&&4:10,verticalAlign:!n&&S&&"middle",y:n?S?16:10:S?6:-4,rotation:n&&!S&&90},m),this.renderLabel(m,_,S,d)):g&&g.hide(),t},e.prototype.renderLabel=function(t,e,r,o){var a=this.axis,c=a.chart.renderer,l=this.label;l||(this.label=l=c.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(r?"band":"line")+"-label "+(t.className||""),zIndex:o}).add(),a.chart.styledMode||l.css(s({textOverflow:"ellipsis"},t.style))),o=e.xBounds||[e[0][1],e[1][1],r?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],r?e[2][2]:e[0][2]],r=i(o),c=i(e),l.align(t,!1,{x:r,y:c,width:n(o)-r,height:n(e)-c}),l.alignValue&&"left"!==l.alignValue||l.css({width:(90===l.rotation?a.height-(l.alignAttr.y-a.top):a.width-(l.alignAttr.x-a.left))+"px"}),l.show(!0)},e.prototype.getLabelText=function(t){return r(t.formatter)?t.formatter.call(this):t.text},e.prototype.destroy=function(){a(this.axis.plotLinesAndBands,this),delete this.axis,o(this)},e}()})),e(n,"Core/Tooltip.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=t.format,a=e.doc,c=n.distribute,s=r.addEvent,l=r.clamp,u=r.css,d=r.defined,h=r.discardElement,f=r.extend,p=r.fireEvent,m=r.isArray,g=r.isNumber,y=r.isString,v=r.merge,b=r.pick,x=r.splat,_=r.syncTimeout;return t=function(){function t(t,e){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}return t.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+t.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}}
1,{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},t.prototype.bodyFormatter=function(t){return t.map((function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")}))},t.prototype.cleanSplit=function(t){this.chart.series.forEach((function(e){var n=e&&e.tt;n&&(!n.isActive||t?e.tt=n.destroy():n.isActive=!1)}))},t.prototype.defaultFormatter=function(t){var e=this.points||x(this),n=[t.tooltipFooterHeaderFormatter(e[0])];return(n=n.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),n},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),h(this.container)),r.clearTimeout(this.hideTimer),r.clearTimeout(this.tooltipTimeout)},t.prototype.getAnchor=function(t,e){var n,i,r=this.chart,o=r.pointer,a=r.inverted,c=r.plotTop,s=r.plotLeft,l=0,u=0;return t=x(t),this.followPointer&&e?(void 0===e.chartX&&(e=o.normalize(e)),o=[e.chartX-s,e.chartY-c]):t[0].tooltipPos?o=t[0].tooltipPos:(t.forEach((function(t){n=t.series.yAxis,i=t.series.xAxis,l+=t.plotX||0,u+=t.plotLow?(t.plotLow+(t.plotHigh||0))/2:t.plotY||0,i&&n&&(a?(l+=c+r.plotHeight-i.len-i.pos,u+=s+r.plotWidth-n.len-n.pos):(l+=i.pos-s,u+=n.pos-c))})),l/=t.length,u/=t.length,o=[a?r.plotWidth-u:l,a?r.plotHeight-l:u],this.shared&&1<t.length&&e&&(a?o[0]=e.chartX-s:o[1]=e.chartY-c)),o.map(Math.round)},t.prototype.getLabel=function(){var t,n=this,r=this.chart.styledMode,o=this.options,a=this.split&&this.allowShared,c="tooltip"+(d(o.className)?" "+o.className:""),l=o.style.pointerEvents||(!this.followPointer&&o.stickOnContact?"auto":"none"),h=function(){n.inContact=!0},f=function(t){var e=n.chart.hoverSeries;n.inContact=n.shouldStickOnContact()&&n.chart.pointer.inClass(t.relatedTarget,"highcharts-tooltip"),!n.inContact&&e&&e.onMouseOut&&e.onMouseOut()},p=this.chart.renderer;if(n.label){var m=!n.label.hasClass("highcharts-label");(a&&!m||!a&&m)&&n.destroy()}if(!this.label){if(this.outside){m=this.chart.options.chart.style;var g=i.getRendererType();this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",u(t,{position:"absolute",top:"1px",pointerEvents:l,zIndex:Math.max(this.options.style.zIndex||0,(m&&m.zIndex||0)+3)}),s(t,"mouseenter",h),s(t,"mouseleave",f),e.doc.body.appendChild(t),this.renderer=p=new g(t,0,0,m,void 0,void 0,p.styledMode)}if(a?this.label=p.g(c):(this.label=p.label("",0,0,o.shape,void 0,void 0,o.useHTML,void 0,c).attr({padding:o.padding,r:o.borderRadius}),r||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth}).css(o.style).css({pointerEvents:l}).shadow(o.shadow)),r&&o.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),n.outside&&!n.split){var y=this.label,v=y.xSetter,b=y.ySetter;y.xSetter=function(e){v.call(y,n.distance),t.style.left=e+"px"},y.ySetter=function(e){b.call(y,n.distance),t.style.top=e+"px"}}this.label.on("mouseenter",h).on("mouseleave",f).attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,n){var i,r=this.chart,o=this.distance,c={},s=r.inverted&&n.h||0,l=this.outside,u=l?a.documentElement.clientWidth-2*o:r.chartWidth,d=l?Math.max(a.body.scrollHeight,a.documentElement.scrollHeight,a.body.offsetHeight,a.documentElement.offsetHeight,a.documentElement.clientHeight):r.chartHeight,h=r.pointer.getChartPosition(),f=function(i){var a="x"===i;return[i,a?u:d,a?t:e].concat(l?[a?t*h.scaleX:e*h.scaleY,a?h.left-o+(n.plotX+r.plotLeft)*h.scaleX:h.top-o+(n.plotY+r.plotTop)*h.scaleY,0,a?u:d]:[a?t:e,a?n.plotX+r.plotLeft:n.plotY+r.plotTop,a?r.plotLeft:r.plotTop,a?r.plotLeft+r.plotWidth:r.plotTop+r.plotHeight])},p=f("y"),m=f("x");f=!!n.negative,!r.polar&&r.hoverSeries&&r.hoverSeries.yAxis&&r.hoverSeries.yAxis.reversed&&(f=!f);var g=!this.followPointer&&b(n.ttBelow,!r.inverted===f),y=function(t,e,n,i,r,a,u){var d=l?"y"===t?o*h.scaleY:o*h.scaleX:o,f=(n-i)/2,p=i<r-o,m=r+o+i<e,y=r-d-n+f;if(r=r+d-f,g&&m)c[t]=r;else if(!g&&p)c[t]=y;else if(p)c[t]=Math.min(u-i,0>y-s?y:y-s);else{if(!m)return!1;c[t]=Math.max(a,r+s+n>e?r:r+s)}},v=function(t,e,n,i,r){var a;return r<o||r>e-o?a=!1:c[t]=r<n/2?1:r>e-i/2?e-i-2:r-n/2,a},x=function(t){var e=p;p=m,m=e,i=t},_=function(){!1!==y.apply(0,p)?!1!==v.apply(0,m)||i||(x(!0),_()):i?c.x=c.y=0:(x(!0),_())};return(r.inverted||1<this.len)&&x(),_(),c},t.prototype.hide=function(t){var e=this;r.clearTimeout(this.hideTimer),t=b(t,this.options.hideDelay),this.isHidden||(this.hideTimer=_((function(){e.getLabel().fadeOut(t?void 0:t),e.isHidden=!0}),t))},t.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=b(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)},t.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)},t.prototype.move=function(t,e,n,i){var o=this,a=o.now,c=!1!==o.options.animation&&!o.isHidden&&(1<Math.abs(t-a.x)||1<Math.abs(e-a.y)),s=o.followPointer||1<o.len;f(a,{x:c?(2*a.x+t)/3:t,y:c?(a.y+e)/2:e,anchorX:s?void 0:c?(2*a.anchorX+n)/3:n,anchorY:s?void 0:c?(a.anchorY+i)/2:i}),o.getLabel().attr(a),o.drawTracker(),c&&(r.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){o&&o.move(t,e,n,i)}),32))},t.prototype.refresh=function(t,e){var n=this.chart,i=this.options,o=x(t),a=o[0],c=[],s=i.formatter||this.defaultFormatter,l=this.shared,u=n.styledMode,d={};if(i.enabled){r.clearTimeout(this.hideTimer),this.allowShared=!(!m(t)&&t.series&&t.series.noSharedTooltip),this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;var h=(t=this.getAnchor(t,e))[0],f=t[1];
1if(l&&this.allowShared?(n.pointer.applyInactiveState(o),o.forEach((function(t){t.setState("hover"),c.push(t.getLabelConfig())})),(d={x:a.category,y:a.y}).points=c):d=a.getLabelConfig(),this.len=c.length,s=s.call(d,this),l=a.series,this.distance=b(l.tooltipOptions.distance,16),!1===s)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(s,o);else{var g=h,y=f;if(e&&n.pointer.isDirectTouch&&(g=e.chartX-n.plotLeft,y=e.chartY-n.plotTop),!n.polar&&!1!==l.options.clip&&!o.some((function(t){return t.series.shouldShowTooltip(g,y)})))return void this.hide();e=this.getLabel(),i.style.width&&!u||e.css({width:this.chart.spacingBox.width+"px"}),e.attr({text:s&&s.join?s.join(""):s}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+b(a.colorIndex,l.colorIndex)),u||e.attr({stroke:i.borderColor||a.color||l.color||"#666666"}),this.updatePosition({plotX:h,plotY:f,negative:a.negative,ttBelow:a.ttBelow,h:t[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}p(this,"refresh")}},t.prototype.renderSplit=function(t,e){function n(t,e,n,r,o){return void 0===o&&(o=!0),n?(e=T?0:O,t=l(t-r/2,L.left,L.right-r-(i.outside?M:0))):(e-=q,t=l(t=o?t-r-w:t+w,o?t:L.left,L.right)),{x:t,y:e}}var i=this,r=i.chart,o=i.chart,s=o.chartWidth,u=o.chartHeight,d=o.plotHeight,h=o.plotLeft,p=o.plotTop,m=o.pointer,g=o.scrollablePixelsY;g=void 0===g?0:g;var v=o.scrollablePixelsX,x=o.scrollingContainer,_=(x=void 0===x?{scrollLeft:0,scrollTop:0}:x).scrollLeft;x=x.scrollTop;var S=o.styledMode,w=i.distance,A=i.options,E=i.options.positioner,L=i.outside&&"number"!=typeof v?a.documentElement.getBoundingClientRect():{left:_,right:_+s,top:x,bottom:x+u},k=i.getLabel(),C=this.renderer||r.renderer,T=!(!r.xAxis[0]||!r.xAxis[0].opposite),M=(r=m.getChartPosition()).left;r=r.top;var q=p+x,I=0,O=d-g;y(t)&&(t=[!1,t]),t=t.slice(0,e.length+1).reduce((function(t,r,o){if(!1!==r&&""!==r){var a=(o=e[o-1]||{isHeader:!0,plotX:e[0].plotX,plotY:d,series:{}}).isHeader,c=a?i:o.series;r=r.toString();var s=c.tt,u=o.isHeader,f=o.series,m="highcharts-color-"+b(o.colorIndex,f.colorIndex,"none");if(s||(s={padding:A.padding,r:A.borderRadius},S||(s.fill=A.backgroundColor,s["stroke-width"]=A.borderWidth),s=C.label("",0,0,A[u?"headerShape":"shape"],void 0,void 0,A.useHTML).addClass((u?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+m).attr(s).add(k)),s.isActive=!0,s.attr({text:r}),S||s.css(A.style).shadow(A.shadow).attr({stroke:A.borderColor||o.color||f.color||"#333333"}),r=(u=(c=c.tt=s).getBBox()).width+c.strokeWidth(),a&&(I=u.height,O+=I,T&&(q-=I)),f=void 0===(f=o.plotX)?0:f,m=void 0===(m=o.plotY)?0:m,s=o.series,o.isHeader){f=h+f;var g=p+d/2}else{var y=s.xAxis,v=s.yAxis;f=y.pos+l(f,-w,y.len+w),s.shouldShowTooltip(0,v.pos-p+m,{ignoreX:!0})&&(g=v.pos+m)}f=l(f,L.left-w,L.right+w),"number"==typeof g?(u=u.height+1,m=E?E.call(i,r,u,o):n(f,g,a,r),t.push({align:E?0:void 0,anchorX:f,anchorY:g,boxWidth:r,point:o,rank:b(m.rank,a?1:0),size:u,target:m.y,tt:c,x:m.x})):c.isActive=!1}return t}),[]),!E&&t.some((function(t){var e=(i.outside?M:0)+t.anchorX;return e<L.left&&e+t.boxWidth<L.right||e<M-L.left+t.boxWidth&&L.right-e>e}))&&(t=t.map((function(t){var e=n(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return f(t,{target:e.y,x:e.x})}))),i.cleanSplit(),c(t,O);var P=M,N=M;t.forEach((function(t){var e=t.x,n=t.boxWidth;(t=t.isHeader)||(i.outside&&M+e<P&&(P=M+e),!t&&i.outside&&P+n>N&&(N=M+e))})),t.forEach((function(t){var e=t.x,n=t.anchorX,r=t.pos,o=t.point.isHeader;if(r={visibility:void 0===r?"hidden":"inherit",x:e,y:r+q,anchorX:n,anchorY:t.anchorY},i.outside&&e<n){var a=M-P;0<a&&(o||(r.x=e+a,r.anchorX=n+a),o&&(r.x=(N-P)/2,r.anchorX=n+a))}t.tt.attr(r)})),t=i.container,g=i.renderer,i.outside&&t&&g&&(o=k.getBBox(),g.setSize(o.width+o.x,o.height+o.y,!1),t.style.left=P+"px",t.style.top=r+"px")},t.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var t=this.chart,e=this.label,n=this.shared?t.hoverPoints:t.hoverPoint;if(e&&n){var i={x:0,y:0,width:0,height:0};n=this.getAnchor(n);var r=e.getBBox();n[0]+=t.plotLeft-e.translateX,n[1]+=t.plotTop-e.translateY,i.x=Math.min(0,n[0]),i.y=Math.min(0,n[1]),i.width=0>n[0]?Math.max(Math.abs(n[0]),r.width-n[0]):Math.max(Math.abs(n[0]),r.width),i.height=0>n[1]?Math.max(Math.abs(n[1]),r.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),r.height),this.tracker?this.tracker.attr(i):(this.tracker=e.renderer.rect(i).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var n=t.series,i=n.tooltipOptions,r=n.xAxis,a=r&&r.dateTime;r={isFooter:e,labelConfig:t};var c=i.xDateFormat,s=i[e?"footerFormat":"headerFormat"];return p(this,"headerFormatter",r,(function(e){a&&!c&&g(t.key)&&(c=a.getXDateFormat(t.key,i.dateTimeLabelFormats)),a&&c&&(t.point&&t.point.tooltipDateKeys||["key"]).forEac
1h((function(t){s=s.replace("{point."+t+"}","{point."+t+":"+c+"}")})),n.chart.styledMode&&(s=this.styledModeFormat(s)),e.text=o(s,{point:t,series:n},this.chart)})),r.text},t.prototype.update=function(t){this.destroy(),v(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,v(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,n=this.options,i=e.pointer,r=this.getLabel();i=i.getChartPosition();var o=(n.positioner||this.getPosition).call(this,r.width,r.height,t),a=t.plotX+e.plotLeft;t=t.plotY+e.plotTop,this.outside&&(n=n.borderWidth+2*this.distance,this.renderer.setSize(r.width+n,r.height+n,!1),1===i.scaleX&&1===i.scaleY||(u(this.container,{transform:"scale("+i.scaleX+", "+i.scaleY+")"}),a*=i.scaleX,t*=i.scaleY),a+=i.left-o.x,t+=i.top-o.y),this.move(Math.round(o.x),Math.round(o.y||0),a,t)},t}()})),e(n,"Core/Series/Point.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=e.animObject,a=n.defaultOptions,c=i.format,s=r.addEvent,l=r.defined,u=r.erase,d=r.extend,h=r.fireEvent,f=r.getNestedProperty,p=r.isArray,m=r.isFunction,g=r.isNumber,y=r.isObject,v=r.merge,b=r.objectEach,x=r.pick,_=r.syncTimeout,S=r.removeEvent,w=r.uniqueKey;return e=function(){function e(){this.colorIndex=this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},n=t.getGraphicalProps();n.singular.forEach((function(n){t[n]=t[n].animate("dataLabel"===n?{x:t[n].startXPos,y:t[n].startYPos,opacity:0}:e)})),n.plural.forEach((function(e){t[e].forEach((function(e){e.element&&e.animate(d({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))}))}))},e.prototype.applyOptions=function(t,n){var i=this.series,r=i.options.pointValKey||i.pointValKey;return t=e.prototype.optionsToObject.call(this,t),d(this,t),this.options=this.options?d(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,r&&(this.y=e.prototype.getNestedProperty.call(this,r)),this.formatPrefix=(this.isNull=x(this.isValid&&!this.isValid(),null===this.x||!g(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===n&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i?this.x=void 0===n?i.autoIncrement():n:g(t.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(r in(e.graphic||e.dataLabel||e.dataLabels)&&(S(e),e.destroyElements()),e)e[r]=null}var e=this,n=e.series,i=n.chart;n=n.options.dataSorting;var r,a=i.hoverPoints,c=o(e.series.chart.renderer.globalAnimation);e.legendItem&&i.legend.destroyItem(e),a&&(e.setState(),u(a,e),a.length||(i.hoverPoints=null)),e===i.hoverPoint&&e.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),_(t,c.duration)):t(),i.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach((function(t){e[t]=e[t].destroy()})),t.plural.forEach((function(t){e[t].forEach((function(t){t.element&&t.destroy()})),delete e[t]}))},e.prototype.firePointEvent=function(t,e,n){var i=this,r=this.series.options;(r.point.events[t]||i.options&&i.options.events&&i.options.events[t])&&i.importEvents(),"click"===t&&r.allowPointSelect&&(n=function(t){i.select&&i.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),h(i,t,e,n)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,n=this,i=[],r={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}
1).graphic&&i.push("graphic","upperGraphic","shadowGroup"),t.dataLabel&&i.push("dataLabel","dataLabelUpper","connector"),e=i.length;e--;){var o=i[e];n[o]&&r.singular.push(o)}return["dataLabel","connector"].forEach((function(e){var i=e+"s";t[e]&&n[i]&&r.plural.push(i)})),r},e.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?f(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var n,i=0;for(n=e[i];this[t]>=n.value;)n=e[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,n){return this.series=t,this.applyOptions(e,n),this.id=l(this.id)?this.id:w(),this.resolveColor(),t.chart.pointCount++,h(this,"afterInit"),this},e.prototype.optionsToObject=function(t){var n=this.series,i=n.options.keys,r=i||n.pointArrayMap||["y"],o=r.length,a={},c=0,s=0;if(g(t)||null===t)a[r[0]]=t;else if(p(t))for(!i&&t.length>o&&("string"===(n=typeof t[0])?a.name=t[0]:"number"===n&&(a.x=t[0]),c++);s<o;)i&&void 0===t[c]||(0<r[s].indexOf(".")?e.prototype.setNestedProperty(a,t[c],r[s]):a[r[s]]=t[c]),c++,s++;else"object"==typeof t&&(a=t,t.dataLabels&&(n._hasPointLabels=!0),t.marker&&(n._hasPointMarkers=!0));return a},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.styledMode,n=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!e){var i=(n=t.options.colors||t.chart.options.colors)[t.colorCounter];n=n.length}e=t.colorCounter,t.colorCounter++,t.colorCounter===n&&(t.colorCounter=0)}else e||(i=t.color),e=t.colorIndex;this.colorIndex=x(this.options.colorIndex,e),this.color=x(this.options.color,i)},e.prototype.setNestedProperty=function(t,e,n){return n.split(".").reduce((function(t,n,i,r){return t[n]=r.length-1===i?e:y(t[n],!0)?t[n]:{},t[n]}),t),t},e.prototype.tooltipFormatter=function(t){var e=this.series,n=e.tooltipOptions,i=x(n.valueDecimals,""),r=n.valuePrefix||"",o=n.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEac
1h((function(e){e="{point."+e,(r||o)&&(t=t.replace(RegExp(e+"}","g"),r+e+"}"+o)),t=t.replace(RegExp(e+"}","g"),e+":,."+i+"f}")})),c(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,n,i){function r(){a.applyOptions(t);var i=s&&a.hasDummyGraphic;i=null===a.y?!i:i,s&&i&&(a.graphic=s.destroy(),delete a.hasDummyGraphic),y(t,!0)&&(s&&s.element&&t&&t.marker&&void 0!==t.marker.symbol&&(a.graphic=s.destroy()),t&&t.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&(a.connector=a.connector.destroy())),o=a.index,c.updateParallelArrays(a,o),u.data[o]=y(u.data[o],!0)||y(t,!0)?a.options:x(t,u.data[o]),c.isDirty=c.isDirtyData=!0,!c.fixedBox&&c.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===u.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(n)}var o,a=this,c=a.series,s=a.graphic,l=c.chart,u=c.options;e=x(e,!0),!1===i?r():a.firePointEvent("update",{options:t},r)},e.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},e.prototype.select=function(t,e){var n=this,i=n.series,r=i.chart;this.selectedStaging=t=x(t,!n.selected),n.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){n.selected=n.options.selected=t,i.options.data[i.data.indexOf(n)]=n.options,n.setState(t&&"select"),e||r.getSelectedPoints().forEac
1h((function(t){var e=t.series;t.selected&&t!==n&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(r.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging},e.prototype.onMouseOver=function(t){var e=this.series.chart,n=e.pointer;t=t?n.normalize(t):n.getChartCoordinatesFromPoint(this,e.inverted),n.runPointActions(t,this)},e.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null},e.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,e=v(t.series.options.point,t.options).events;t.events=e,b(e,(function(e,n){m(e)&&s(t,n,e)})),this.hasImportedEvents=!0}},e.prototype.setState=function(e,n){var i,r=this.series,o=this.state,c=r.options.states[e||"normal"]||{},s=a.plotOptions[r.type].marker&&r.options.marker,l=s&&!1===s.enabled,u=s&&s.states&&s.states[e||"normal"]||{},f=!1===u.enabled,p=this.marker||{},m=r.chart,y=s&&r.markerAttribs,v=r.halo,b=r.stateMarkerGraphic;if(!((e=e||"")===this.state&&!n||this.selected&&"select"!==e||!1===c.enabled||e&&(f||l&&!1===u.enabled)||e&&p.states&&p.states[e]&&!1===p.states[e].enabled)){if(this.state=e,y&&(i=r.markerAttribs(this,e)),this.graphic&&!this.hasDummyGraphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),e&&this.graphic.addClass("highcharts-point-"+e),!m.styledMode){var _=r.pointAttribs(this,e),S=x(m.options.chart.animation,c.animation);r.options.inactiveOtherPoints&&g(_.opacity)&&((this.dataLabels||[]).forEach((function(t){t&&t.animate({opacity:_.opacity},S)})),this.connector&&this.connector.animate({opacity:_.opacity},S)),this.graphic.animate(_,S)}i&&this.graphic.animate(i,x(m.options.chart.animation,u.animation,s.animation)),b&&b.hide()}else e&&u&&(o=p.symbol||r.symbol,b&&b.currentSymbol!==o&&(b=b.destroy()),i&&(b?b[n?"animate":"attr"]({x:i.x,y:i.y}):o&&(r.stateMarkerGraphic=b=m.renderer.symbol(o,i.x,i.y,i.width,i.height).add(r.markerGroup),b.currentSymbol=o)),!m.styledMode&&b&&"inactive"!==this.state&&b.attr(r.pointAttribs(this,e))),b&&(b[e&&this.isInside?"show":"hide"](),b.element.point=this,b.addClass(this.getClassName(),!0));c=c.halo,i=(b=this.graphic||b)&&b.visibility||"inherit",c&&c.size&&b&&"hidden"!==i&&!this.isCluster?(v||(r.halo=v=m.renderer.path().add(b.parentGroup)),v.show()[n?"animate":"attr"]({d:this.haloPath(c.size)}),v.attr({class:"highcharts-halo highcharts-color-"+x(this.colorIndex,r.colorIndex)+(this.className?" "+this.className:""),visibility:i,zIndex:-1}),v.point=this,m.styledMode||v.attr(d({fill:this.color||r.color,"fill-opacity":c.opacity},t.filterUserAttributes(c.attributes||{})))):v&&v.point&&v.point.haloPath&&v.animate({d:v.point.haloPath(0)},null,v.hide),h(this,"afterSetState",{state:e})}},e.prototype.haloPath=function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)},e}()})),e(n,"Core/Pointer.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Tooltip.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=t.parse,o=e.charts,a=e.noop,c=i.addEvent,s=i.attr,l=i.css,u=i.defined,d=i.extend,h=i.find,f=i.fireEvent,p=i.isNumber,m=i.isObject,g=i.objectEach,y=i.offset,v=i.pick,b=i.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=t,this.hasDragged=!1,this.options=e,this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,n=[];(t||[]).forEach((function(t){e=t.series,n.push(e),e.linkedParent&&n.push(e.linkedParent),e.linkedSeries&&(n=n.concat(e.linkedSeries)),e.navigatorSeries&&n.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===n.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))},t.prototype.destroy=function(){var n=this;this.eventsToUnbind.forEach((function(t){return t()})),this.eventsToUnbind=[],e.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(n.tooltipTimeout),g(n,(function(t,e){n[e]=void 0}))},t.prototype.drag=function(t){var e=this.chart,n=e.options.chart,i=this.zoomHor,o=this.zoomVert,a=e.plotLeft,c=e.plotTop,s=e.plotWidth,l=e.plotHeight,u=this.mouseDownX||0,d=this.mouseDownY||0,h=m(n.panning)?n.panning&&n.panning.enabled:n.panning,f=n.panKey&&t[n.panKey+"Key"],p=t.chartX,g=t.chartY,y=this.selectionMarker;if((!y||!y.touch)&&(p<a?p=a:p>a+s&&(p=a+s),g<c?g=c:g>c+l&&(g=c+l),this.hasDragged=Math.sqrt(Math.pow(u-p,2)+Math.pow(d-g,2)),10<this.hasDragged)){var v=e.isInsidePlot(u-a,d-c,{visiblePlotOnly:!0});
1!e.hasCartesianSeries&&!e.mapView||!this.zoomX&&!this.zoomY||!v||f||y||(this.selectionMarker=y=e.renderer.rect(a,c,i?1:s,o?1:l,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||y.attr({fill:n.selectionMarkerFill||r("#335cad").setOpacity(.25).get()})),y&&i&&(i=p-u,y.attr({width:Math.abs(i),x:(0<i?0:i)+u})),y&&o&&(i=g-d,y.attr({height:Math.abs(i),y:(0<i?0:i)+d})),v&&!y&&h&&e.pan(t,n.panning)}},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},t.prototype.drop=function(t){var e=this,n=this.chart,i=this.hasPinched;if(this.selectionMarker){var r=this.selectionMarker,o=r.attr?r.attr("x"):r.x,a=r.attr?r.attr("y"):r.y,c=r.attr?r.attr("width"):r.width,s=r.attr?r.attr("height"):r.height,h={originalEvent:t,xAxis:[],yAxis:[],x:o,y:a,width:c,height:s},m=!!n.mapView;(this.hasDragged||i)&&(n.axes.forEach((function(n){if(n.zoomEnabled&&u(n.min)&&(i||e[{xAxis:"zoomX",yAxis:"zoomY"}[n.coll]])&&p(o)&&p(a)){var r=n.horiz,l="touchend"===t.type?n.minPixelPadding:0,d=n.toValue((r?o:a)+l);r=n.toValue((r?o+c:a+s)-l),h[n.coll].push({axis:n,min:Math.min(d,r),max:Math.max(d,r)}),m=!0}})),m&&f(n,"selection",h,(function(t){n.zoom(d(t,i?{animation:!1}:null))}))),p(n.index)&&(this.selectionMarker=this.selectionMarker.destroy()),i&&this.scaleGroups()}n&&p(n.index)&&(l(n.container,{cursor:n._cursor}),n.cancelClick=10<this.hasDragged,n.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,n){var i,r=this.chart,o=r.hoverPoint;return r=r.tooltip,o&&r&&r.isStickyOnContact()?o:(t.forEach((function(t){var r=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(n,r),(r=m(t,!0)&&t.series)&&!(r=!m(i,!0))){r=i.distX-t.distX;var o=i.dist-t.dist,a=(t.series.group&&t.series.group.zIndex)-(i.series.group&&i.series.group.zIndex);r=0<(0!==r&&e?r:0!==o?o:0!==a?a:i.series.index>t.series.index?-1:1)}r&&(i=t)})),i)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var n=t.series,i=n.xAxis;n=n.yAxis;var r=t.shapeArgs;if(i&&n){var o=v(t.clientX,t.plotX),a=t.plotY||0;return t.isNode&&r&&p(r.x)&&p(r.y)&&(o=r.x,a=r.y),e?{chartX:n.len+n.pos-a,chartY:i.len+i.pos-o}:{chartX:o+i.pos,chartY:a+n.pos}}if(r&&r.x&&r.y)return{chartX:r.x,chartY:r.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=y(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var n=t.offsetWidth;return t=t.offsetHeight,2<n&&2<t&&(this.chartPosition.scaleX=e.width/n,this.chartPosition.scaleY=e.height/t),this.chartPosition},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(n){e[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(t[n.horiz?"chartX":"chartY"])})})),e},t.prototype.getHoverData=function(t,e,n,i,r,o){var a=[];i=!(!i||!t);var c={chartX:o?o.chartX:void 0,chartY:o?o.chartY:void 0,shared:r};f(this,"beforeGetHoverData",c);var s=e&&!e.stickyTracking?[e]:n.filter((function(t){return c.filter?c.filter(t):t.visible&&!(!r&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&t.stickyTracking})),l=i||!o?t:this.findNearestKDPoint(s,r,o);return e=l&&l.series,l&&(r&&!e.noSharedTooltip?(s=n.filter((function(t){return c.filter?c.filter(t):t.visible&&!(!r&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}))).forEach((function(t){var e=h(t.points,(function(t){return t.x===l.x&&!t.isNull}));m(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),a.push(e))})):a.push(l)),f(this,"afterGetHoverData",c={hoverPoint:l}),{hoverPoint:c.hoverPoint,hoverSeries:e,hoverPoints:a}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var n;t;){if(n=s(t,"class")){if(-1!==n.indexOf(e))return!0;
1if(-1!==n.indexOf("highcharts-container"))return!1}t=t.parentNode}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=!(!e.chart.events||!e.chart.events.click),this.pinchDown=[],this.lastValidTouch={},n&&(t.tooltip=new n(t,e.tooltip),this.followTouchMove=v(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var n=t.touches,i=n?n.length?n.item(0):v(n.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),n=i.pageX-e.left,i=i.pageY-e.top,n/=e.scaleX,i/=e.scaleY,d(t,{chartX:Math.round(n),chartY:Math.round(i)})},t.prototype.onContainerClick=function(t){var e=this.chart,n=e.hoverPoint;t=this.normalize(t);var i=e.plotLeft,r=e.plotTop;e.cancelClick||(n&&this.inClass(t.target,"highcharts-tracker")?(f(n.series,"click",d(t,{point:n})),e.hoverPoint&&n.firePointEvent("click",t)):(d(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-i,t.chartY-r,{visiblePlotOnly:!0})&&f(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var n=1==(1&(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||n)&&(this.zoomOption(t),n&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var n=o[v(t.hoverChartIndex,-1)],i=this.chart.tooltip;i&&i.shouldStickOnContact()&&this.inClass(e.relatedTarget,"highcharts-tooltip-container")||(e=this.normalize(e),n&&(e.relatedTarget||e.toElement)&&(n.pointer.reset(),n.pointer.chartPosition=void 0),i&&!i.isHidden&&this.reset())},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),("mousedown"===e.mouseIsDown||this.touchSelect(t))&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||(this.inClass(t.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(t))},t.prototype.onDocumentTouchEnd=function(e){var n=o[v(t.hoverChartIndex,-1)];n&&n.pointer.drop(e)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,n=this.chartPosition;t=this.normalize(t,n);var i=e.tooltip;!n||i&&i.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var n=o[v(t.hoverChartIndex,-1)];n&&n.pointer.drop(e)},t.prototype.pinch=function(t){var e=this,n=e.chart,i=e.pinchDown,r=t.touches||[],o=r.length,c=e.lastValidTouch,s=e.hasZoom,l={},u=1===o&&(e.inClass(t.target,"highcharts-tracker")&&n.runTrackerClick||e.runChartClick),h={},p=e.selectionMarker;1<o?e.initiated=!0:1===o&&this.followTouchMove&&(e.initiated=!1),s&&e.initiated&&!u&&!1!==t.cancelable&&t.preventDefault(),[].map.call(r,(function(t){return e.normalize(t)})),"touchstart"===t.type?([].forEach.call(r,(function(t,e){i[e]={chartX:t.chartX,chartY:t.chartY}})),c.x=[i[0].chartX,i[1]&&i[1].chartX],c.y=[i[0].chartY,i[1]&&i[1].chartY],n.axes.forEach((function(t){if(t.zoomEnabled){var e=n.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,r=t.toPixels(Math.min(v(t.options.min,t.dataMin),t.dataMin)),o=t.toPixels(Math.max(v(t.options.max,t.dataMax),t.dataMax)),a=Math.max(r,o);e.min=Math.min(t.pos,Math.min(r,o)-i),e.max=Math.max(t.pos+t.len,a+i)}})),e.res=!0):e.followTouchMove&&1===o?this.runPointActions(e.normalize(t)):i.length&&(f(n,"touchpan",{originalEvent:t},(function(){p||(e.selectionMarker=p=d({destroy:a,touch:!0},n.plotBox)),e.pinchTranslate(i,r,l,p,h,c),e.hasPinched=s,e.scaleGroups(l,h)})),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,n,i,r,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,n,i,r,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,n,i,r,o)},t.prototype.pinchTranslateDirection=function(t,e,n,i,r,o,a,c){var s=this.chart,l=t?"x":"y",u=t?"X":"Y",d="chart"+u,h=t?"width":"height",f=s["plot"+(t?"Left":"Top")],p=s.inverted,m=s.bounds[t?"h":"v"],g=1===e.length,y=e[0][d],v=!g&&e[1][d];e=function(){"number"==typeof w&&20<Math.abs(y-v)&&(_=c||Math.abs(S-w)/Math.abs(y-v)),x=(f-S)/_+y,b=s["plot"+(t?"Width":"Height")]/_};var b,x,_=c||1,S=n[0][d],w=!g&&n[1][d];if(e(),(n=x)<m.min){n=m.min;var A=!0}else n+b>m.max&&(n=m.max-b,A=!0);A?(S-=.8*(S-a[l][0]),"number"==typeof w&&(w-=.8*(w-a[l][1])),e()):a[l]=[S,w],p||(o[l]=x-f,o[h]=b),o=p?1/_:_,r[h]=b,r[l]=n,i[p?t?"scaleY":"scaleX":"scale"+u]=_,i["translate"+u]=o*f+(S-o*y)},t.prototype.reset=function(t,e){var n=this.chart,i=n.hoverSeries,r=n.hoverPoint,o=n.hoverPoints,a=n.tooltip,c=a&&a.shared?o:r;
1t&&c&&b(c).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?a&&c&&b(c).length&&(a.refresh(c),a.shared&&o?o.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):r&&(r.setState(r.state,!0),n.axes.forEach((function(t){t.crosshair&&r.series[t.coll]===t&&t.drawCrosshair(null,r)})))):(r&&r.onMouseOut(),o&&o.forEach((function(t){t.setState()})),i&&i.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=n.hoverPoints=n.hoverPoint=null)},t.prototype.runPointActions=function(e,n){var i=this.chart,r=i.tooltip&&i.tooltip.options.enabled?i.tooltip:void 0,a=!!r&&r.shared,s=n||i.hoverPoint,l=s&&s.series||i.hoverSeries;s=(n=this.getHoverData(s,l,i.series,(!e||"touchmove"!==e.type)&&(!!n||l&&l.directTouch&&this.isDirectTouch),a,e)).hoverPoint,l=n.hoverSeries;var u=n.hoverPoints;if(n=l&&l.tooltipOptions.followPointer&&!l.tooltipOptions.split,a=a&&l&&!l.noSharedTooltip,s&&(s!==i.hoverPoint||r&&r.isHidden)){if((i.hoverPoints||[]).forEach((function(t){-1===u.indexOf(t)&&t.setState()})),i.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(u),(u||[]).forEach((function(t){t.setState("hover")})),i.hoverPoint&&i.hoverPoint.firePointEvent("mouseOut"),!s.series)return;i.hoverPoints=u,i.hoverPoint=s,s.firePointEvent("mouseOver"),r&&r.refresh(a?u:s,e)}else n&&r&&!r.isHidden&&(s=r.getAnchor([{}],e),i.isInsidePlot(s[0],s[1],{visiblePlotOnly:!0})&&r.updatePosition({plotX:s[0],plotY:s[1]}));this.unDocMouseMove||(this.unDocMouseMove=c(i.container.ownerDocument,"mousemove",(function(e){var n=o[t.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(e)})),this.eventsToUnbind.push(this.unDocMouseMove)),i.axes.forEach((function(t){var n,r=v((t.crosshair||{}).snap,!0);r&&((n=i.hoverPoint)&&n.series[t.coll]===t||(n=h(u,(function(e){return e.series[t.coll]===t})))),n||!r?t.drawCrosshair(e,n):t.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var n=this.chart;n.series.forEach((function(i){var r=t||i.getPlotBox();i.group&&(i.xAxis&&i.xAxis.zoomEnabled||n.mapView)&&(i.group.attr(r),i.markerGroup&&(i.markerGroup.attr(r),i.markerGroup.clip(e?n.clipRect:null)),i.dataLabelsGroup&&i.dataLabelsGroup.attr(r))})),n.clipRect.attr(e||n.clipBox)},t.prototype.setDOMEvents=function(){var n=this,i=this.chart.container,r=i.ownerDocument;i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(c(i,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(c(i,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=c(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var o=this.chart.renderTo.parentElement;o&&"BODY"!==o.tagName;)this.eventsToUnbind.push(c(o,"scroll",(function(){delete n.chartPosition}))),o=o.parentElement;e.hasTouch&&(this.eventsToUnbind.push(c(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(c(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=c(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var n=this.chart,i=e.charts[v(t.hoverChartIndex,-1)];i&&i!==n&&i.pointer.onContainerMouseLeave({relatedTarget:!0}),i&&i.mouseIsDown||(t.hoverChartIndex=n.index)},t.prototype.touch=function(t,e){var n=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop,{visiblePlotOnly:!0})&&!n.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var i=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));v(i,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zoomBySingleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,n=e.options.chart;e=e.inverted;var i=n.zoomType||"";/touch/.test(t.type)&&(i=v(n.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=n=/y/.test(i),this.zoomHor=t&&!e||n&&e,this.zoomVert=n&&!e||t&&e,this.hasZoom=t||n},t}()})),e(n,"Core/MSPointer.js",[n["Core/Globals.js"],n["Core/Pointer.js"],n["Core/Utilities.js"]],(function(t,e,n){function i(){var t=[];return t.item=function(t){return this[t]},h(p,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function r(t,n,r,o){var c=a[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!c||(c=c.pointer,o(t),c[n]({type:r,target:t.currentTarget,preventDefault:s,touches:i()}))}var o=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=t.charts,c=t.doc,s=t.noop,l=t.win,u=n.addEvent,d=n.css,h=n.objectEach,f=n.removeEvent,p={},m=!!l.PointerEvent;return function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.isRequired=function(){return!(t.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)},n.prototype.batchMSEvents=function(t){t(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(c,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},n.prototype.destroy=function(){this.batchMSEvents(f),e.prototype.destroy.call(this)},n.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this.hasZoom&&d(t.container,{"-ms-touch-action":"none","touch-action":"none"})},n.prototype.onContainerPointerDown=function(t){r(t,"onContainerTouchStart","touchstart",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},n.prototype.onContainerPointerMove=function(t){r(t,"onContainerTouchMove","touchmove",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY},p[t.pointerId].target||(p[t.pointerId].target=t.currentTarget)}))},n.prototype.onDocumentPointerUp=function(t){r(t,"onDocumentTouchEnd","touchend",(function(t){delete p[t.pointerId]}))},n.prototype.setDOMEvents=function(){e.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(u)},n}(e)})),e(n,"Core/Legend/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Series/Point.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o){var a=t.animObject,c=t.setAnimation,s=e.format;t=n.isFirefox;var l=n.marginNames;n=n.win;var u=r.distribute,d=o.addEvent,h=o.createElement,f=o.css,p=o.defined,m=o.discardElement,g=o.find,y=o.fireEvent,v=o.isNumber,b=o.merge,x=o.pick,_=o.relativeLength,S=o.stableSort,w=o.syncTimeout;return r=o.wrap,o=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWi
1dth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),d(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=d(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=b(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var n=this.chart;this.setOptions(b(!0,this.options,t)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,x(e,!0)&&n.redraw(),y(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var n=this.options,i=t.legendItem,r=t.legendLine,o=t.legendSymbol,a=this.itemHiddenStyle.color;n=e?n.itemStyle.color:a;var c=e&&t.color||a,s=t.options&&t.options.marker,l={fill:c};i&&i.css({fill:n,color:n}),r&&r.attr({stroke:c}),o&&(s&&o.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=a)),o.attr(l))}y(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,n=this.options,i=n.symbolPadding,r=!n.rtl,o=t._legendItemPos;n=o[0],o=o[1];var a=t.checkbox,c=t.legendGroup;c&&c.element&&(i={translateX:r?n:this.legendWidth-n-2*i-4,translateY:o},r=function(){y(e,"afterPositionItem",{item:t})},p(c.translateY)?c.animate(i,void 0,r):(c.attr(i),r())),a&&(a.x=n,a.y=o)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&m(t.checkbox)},t.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}
1this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,n=this.titleHeight;if(t){var i=t.translateY;this.allItems.forEach((function(r){var o=r.checkbox;if(o){var a=i+n+o.y+(this.scrollOffset||0)+3;f(o,{left:t.translateX+r.checkboxOffset+o.x-20+"px",top:a+"px",display:this.proximate||a>i-6&&a<i+e-6?"":"none"})}}),this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,n=t.title,i=0;n.text&&(this.title||(this.title=this.chart.renderer.label(n.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(n.style),this.title.add(this.group)),n.width||this.title.css({width:this.maxLegendWidth+"px"}),i=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:i})),this.titleHeight=i},t.prototype.setText=function(t){var e=this.options;t.legendItem.attr({text:e.labelFormat?s(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=this.chart,n=e.renderer,i=this.options,r=this.symbolWidth,o=i.symbolPadding||0,a=this.itemStyle,c=this.itemHiddenStyle,s="horizontal"===i.layout?x(i.itemDistance,20):0,l=!i.rtl,u=!t.series,d=!u&&t.series.drawLegendSymbol?t.series:t,h=d.options,f=this.createCheckboxForItem&&h&&h.showCheckbox,p=i.useHTML,m=t.options.className,g=t.legendItem;h=r+o+s+(f?20:0),g||(t.legendGroup=n.g("legend-item").addClass("highcharts-"+d.type+"-series highcharts-color-"+t.colorIndex+(m?" "+m:"")+(u?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=g=n.text("",l?r+o:-o,this.baseline||0,p),e.styledMode||g.css(b(t.visible?a:c)),g.attr({align:l?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=n.fontMetrics(e.styledMode?12:a.fontSize,g),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,g.attr("y",this.baseline),this.symbolHeight=i.symbolHeight||this.fontMetrics.f,i.squareSymbol&&(this.symbolWidth=x(i.symbolWidth,Math.max(this.symbolHeight,16)),h=this.symbolWidth+o+s+(f?20:0),l&&g.attr("x",this.symbolWidth+o))),d.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,g,p)),f&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&a.width||g.css({width:(i.itemWidth||this.widthOption||e.spacingBox.width)-h+"px"}),this.setText(t),e=g.getBBox(),n=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=i.itemWidth||t.legendItemWidth||e.width+h,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||(e.height>1.5*n?e.height:n))},t.prototype.layoutItem=function(t){var e=this.options,n=this.padding,i="horizontal"===e.layout,r=t.itemHeight,o=this.itemMarginBottom,a=this.itemMarginTop,c=i?x(e.itemDistance,20):0,s=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>s?this.maxItemWidth:t.itemWidth,i&&this.itemX-n+e>s&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=a+this.itemY+o,this.lastLineHeight=Math.max(r,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],i?this.itemX+=e:(this.itemY+=a+r+o,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((i?this.itemX-n-(t.checkbox?0:c):e)+n,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach((function(e){var n=e&&e.options;e&&x(n.showInLegend,!p(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))})),y(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var n=this.chart,i=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEac
1h((function(o,a){o.test(r)&&!p(t[a])&&(n[l[a]]=Math.max(n[l[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*i[a%2?"x":"y"]+x(i.margin,12)+e[a]+(n.titleOffset[a]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,e=[],n="left"===this.options.align;this.allItems.forEach((function(i){var r,o=n;if(i.yAxis){i.xAxis.options.reversed&&(o=!o),i.points&&(r=g(o?i.points:i.points.slice(0).reverse(),(function(t){return v(t.plotY)}))),o=this.itemMarginTop+i.legendItem.getBBox().height+this.itemMarginBottom;var a=i.yAxis.top-t.plotTop;i.visible?(r=r?r.plotY:i.yAxis.height,r+=a-.3*o):r=a+i.yAxis.height,e.push({target:r,size:o,item:i})}}),this),u(e,t.plotHeight).forEach((function(e){e.item._legendItemPos&&(e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos)}))},t.prototype.render=function(){var t=this.chart,e=t.renderer,n=this.options,i=this.padding,r=this.getAllItems(),o=this.group,a=this.box;this.itemX=i,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=_(n.width,t.spacingBox.width-i);var c=t.spacingBox.width-2*i-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(c/=2),this.maxLegendWidth=this.widthOption||c,o||(this.group=o=e.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(o),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),S(r,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),n.reversed&&r.reverse(),this.allItems=r,this.display=c=!!r.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,r.forEach(this.renderItem,this),r.forEach(this.layoutItem,this),r=(this.widthOption||this.offsetWidth)+i;var s=this.lastItemY+this.lastLineHeight+this.titleHeight;s=this.handleOverflow(s),s+=i,a||(this.box=a=e.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(o),a.isNew=!0),t.styledMode||a.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0<r&&0<s&&(a[a.isNew?"attr":"animate"](a.crisp.call({},{x:0,y:0,width:r,height:s},a.strokeWidth())),a.isNew=!1),a[c?"show":"hide"](),t.styledMode&&"none"===o.getStyle("display")&&(r=s=0),this.legendWidth=r,this.legendHeight=s,c&&this.align(),this.proximate||this.positionItems(),y(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,n=this.options,i=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?i+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(i-=e.titleOffset[2]),i!==t.y&&(t=b(t,{y:i})),this.group.align(b(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,n,i=this,r=this.chart,o=r.renderer,a=this.options,c=a.y,s="top"===a.verticalAlign,l=this.padding,u=a.maxHeight,d=a.navigation,h=x(d.animation,!0),f=d.arrowSize||12,p=this.pages,m=this.allItems,g=function(t){"number"==typeof t?b.attr({height:t}):b&&(i.clipRect=b.destroy(),i.contentGroup.clip()),i.contentGroup.div&&(i.contentGroup.div.style.clip=t?"rect("+l+"px,9999px,"+(l+t)+"px,0)":"auto")},y=function(t){return i[t]=o.circle(0,0,1.3*f).translate(f/2,f/2).add(v),r.styledMode||i[t].attr("fill","rgba(0,0,0,0.0001)"),i[t]};c=r.spacingBox.height+(s?-c:c)-l;var v=this.nav,b=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(c/=2),u&&(c=Math.min(c,u)),p.length=0,t&&0<c&&t>c&&!1!==d.enabled?(this.clipHeight=e=Math.max(c-20-this.titleHeight-l,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,m.forEach((function(t,i){var r=t._legendItemPos[1],o=Math.round(t.legendItem.getBBox().height),a=p.length;(!a||r-p[a-1]>e&&(n||r)!==p[a-1])&&(p.push(n||r),a++),t.pageIx=a-1,n&&(m[i-1].pageIx=a-1),i===m.length-1&&r+o-p[a-1]>e&&o<=e&&(p.push(r),t.pageIx=a),r!==n&&(n=r)})),b||(b=i.clipRect=o.clipRect(0,l,9999,0),i.contentGroup.clip(b)),g(e),v||(this.nav=v=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,f,f).add(v),y("upTracker").on("click",(function(){i.scroll(-1,h)})),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),r.styledMode||this.pager.css(d.style),this.pager.add(v),this.down=o.symbol("triangle-down",0,0,f,f).add(v),y("downTracker").on("click",(function(){i.scroll(1,h)}))),i.scroll(0),t=c):v&&(g(),this.nav=v.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var n=this,i=this.chart,r=this.pages,o=r.length,s=this.clipHeight,l=this.options.navigation,u=this.pager,d=this.padding,h=this.currentPage+t;h>o&&(h=o),0<h&&(void 0!==e&&c(e,i),this.nav.attr({translateX:d,translateY:s+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach((function(t){t.attr({class:1===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),u.attr({text:h+"/"+o}),[this.down,this.downTracker].forEach((function(t){t.attr({x:18+this.pager.getBBox().width,class:h===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),i.styledMode||(this.up.attr({fill:1===h?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===h?"default":"pointer"}),this.down.attr({fill:h===o?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:h===o?"default":"pointer"})),this.scrollOffset=-r[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes(),t=a(x(e,i.renderer.globalAnimation,!0)),w((function(){y(n,"afterScroll",{currentPage:h})}),t.duration))},t.prototype.setItemEvents=function(t,e,n){var r=this,o=r.chart.renderer.boxWrapper,a=t instanceof i,c="highcharts-legend-"+(a?"point":"series")+"-active",s=r.chart.styledMode,l=function(e){r.allItems.forEac
1h((function(n){t!==n&&[n].concat(n.linkedSeries||[]).forEach((function(t){t.setState(e,!a)}))}))};(n?[e,t.legendSymbol]:[t.legendGroup]).forEach((function(n){n&&n.on("mouseover",(function(){t.visible&&l("inactive"),t.setState("hover"),t.visible&&o.addClass(c),s||e.css(r.options.itemHoverStyle)})).on("mouseout",(function(){r.chart.styledMode||e.css(b(t.visible?r.itemStyle:r.itemHiddenStyle)),l(""),o.removeClass(c),t.setState()})).on("click",(function(e){var n=function(){t.setVisible&&t.setVisible(),l(t.visible?"inactive":"")};o.removeClass(c),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,n):y(t,"legendItemClick",e,n)}))}))},t.prototype.createCheckboxForItem=function(t){t.checkbox=h("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),d(t.checkbox,"click",(function(e){y(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},(function(){t.select()}))}))},t}(),(/Trident\/7\.0/.test(n.navigator&&n.navigator.userAgent)||t)&&r(o.prototype,"positionItem",(function(t,e){var n=this,i=function(){e._legendItemPos&&t.call(n,e)};i(),n.bubbleLegend||setTimeout(i)})),o})),e(n,"Core/Series/SeriesRegistry.js",[n["Core/Globals.js"],n["Core/DefaultOptions.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r,o=e.defaultOptions,a=i.error,c=i.extendClass,s=i.merge;return function(e){function i(t,i){var r=o.plotOptions||{},a=i.defaultOptions;i.prototype.pointClass||(i.prototype.pointClass=n),i.prototype.type=t,a&&(r[t]=a),e.seriesTypes[t]=i}e.seriesTypes=t.seriesTypes,e.getSeries=function(t,n){void 0===n&&(n={});var i=t.options.chart;i=n.type||i.type||i.defaultSeriesType||"";var r=e.seriesTypes[i];return e||a(17,!0,t,{missingModuleFor:i}),"function"==typeof(i=new r).init&&i.init(t,n),i},e.registerSeriesType=i,e.seriesType=function(t,r,a,l,u){var d=o.plotOptions||{};return r=r||"",d[t]=s(d[r],a),i(t,c(e.seriesTypes[r]||function(){},l)),e.seriesTypes[t].prototype.type=t,u&&(e.seriesTypes[t].prototype.pointClass=c(n,u)),e.seriesTypes[t]}}(r||(r={})),r})),e(n,"Core/Chart/Chart.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/FormatUtilities.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/Legend.js"],n["Core/MSPointer.js"],n["Core/DefaultOptions.js"],n["Core/Pointer.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Time.js"],n["Core/Utilities.js"],n["Core/Renderer/HTML/AST.js"]],(function(t,e,n,i,r,o,a,c,s,l,u,d,h,f,p){var m=t.animate,g=t.animObject,y=t.setAnimation,v=n.numberFormat,b=i.registerEventOptions,x=r.charts,_=r.doc,S=r.marginNames,w=r.svg,A=r.win,E=c.defaultOptions,L=c.defaultTime,k=u.seriesTypes,C=f.addEvent,T=f.attr,M=f.cleanRecursively,q=f.createElement,I=f.css,O=f.defined,P=f.discardElement,N=f.erase,D=f.error,B=f.extend,j=f.find,R=f.fireEvent,H=f.getStyle,z=f.isArray,F=f.isNumber,G=f.isObject,W=f.isString,U=f.merge,Y=f.objectEach,V=f.pick,X=f.pInt,$=f.relativeLength,K=f.removeEvent,J=f.splat,Z=f.syncTimeout,Q=f.uniqueKey;return t=function(){function t(t,e,n){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(t,e,n)}return t.chart=function(e,n,i){return new t(e,n,i)},t.prototype.getArgs=function(t,e,n){W(t)||t.nodeName?(this.renderTo=t,this.init(e,n)):this.init(t,e)},t.prototype.init=function(t,e){var n=t.plotOptions||{};R(this,"init",{args:arguments},(function(){var i=U(E,t),o=i.chart;Y(i.plotOptions,(function(t,e){G(t)&&(t.tooltip=n[e]&&U(n[e].tooltip)||void 0)})),i.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,this.userOptions=t,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new h(t.time):r.time,this.numberFormatter=o.numberFormatter||v,this.styledMode=o.styledMode,this.hasCartesianSeries=o.showAxes,this.index=x.length,x.push(this),r.chartCount++,b(this,o),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,R(this,"afterInit"),this.firstRen
1der()}))},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var n=k[e];return n||D(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new n).init&&e.init(this,t),e},t.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach((function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)}))},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort((function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0}))},t.prototype.orderSeries=function(t){var e=this.series;t=t||0;for(var n=e.length;t<n;++t)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,n){void 0===n&&(n={});var i=this.inverted,r=this.plotBox,o=this.plotLeft,a=this.plotTop,c=this.scrollablePlotBox,s=0,l=0;n.visiblePlotOnly&&this.scrollingContainer&&(s=(l=this.scrollingContainer).scrollLeft,l=l.scrollTop);var u=n.series;if(r=n.visiblePlotOnly&&c||r,t={x:c=n.inverted?e:t,y:e=n.inverted?t:e,isInsidePlot:!0},!n.ignoreX){var d=u&&(i?u.yAxis:u.xAxis)||{pos:o,len:1/0};(c=n.paneCoordinates?d.pos+c:o+c)>=Math.max(s+o,d.pos)&&c<=Math.min(s+o+r.width,d.pos+d.len)||(t.isInsidePlot=!1)}return!n.ignoreY&&t.isInsidePlot&&(i=u&&(i?u.xAxis:u.yAxis)||{pos:a,len:1/0},(n=n.paneCoordinates?i.pos+e:a+e)>=Math.max(l+a,i.pos)&&n<=Math.min(l+a+r.height,i.pos+i.len)||(t.isInsidePlot=!1)),R(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){R(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],n=this.series,i=this.pointer,r=this.legend,o=this.userOptions.legend,a=this.renderer,c=a.isHidden(),s=[],l=this.isDirtyBox,u=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),y(!!this.hasRendered&&t,this),c&&this.temporaryDisplay(),this.layOutTitles(),t=n.length;t--;){var d=n[t];if(d.options.stacking||d.options.centerInCategory){var h=!0;if(d.isDirty){var f=!0;break}}}if(f)for(t=n.length;t--;)(d=n[t]).options.stacking&&(d.isDirty=!0);n.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),u=!0):o&&(o.labelFormatter||o.labelFormat)&&(u=!0)),t.isDirtyData&&R(t,"updatedData")})),u&&r&&r.options.enabled&&(r.render(),this.isDirtyLegend=!1),h&&this.getStacks(),e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),e.forEach((function(t){t.isDirty&&(l=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,s.push((function(){R(t,"afterSetExtremes",B(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(l||h)&&t.redraw()})),l&&this.drawChartBox(),R(this,"predraw"),n.forEach((function(t){(l||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),i&&i.reset(!0),a.draw(),R(this,"redraw"),R(this,"render"),c&&this.temporaryDisplay(!0),s.forEach((function(t){t.call()}))},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var n=this.series,i=j(this.axes,e)||j(this.series,e),r=0;!i&&r<n.length;r++)i=j(n[r].points||[],e);return i},t.prototype.getAxes=function(){var t=this,n=this.options,i=n.xAxis=J(n.xAxis||{});n=n.yAxis=J(n.yAxis||{}),R(this,"getAxes"),i.forEach((function(t,e){t.index=e,t.isX=!0})),n.forEach((function(t,e){t.index=e})),i.concat(n).forEach((function(n){new e(t,n)})),R(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce((function(t,e){return e.getPointsCollection().forEach((function(e){V(e.selectedStaging,e.selected)&&t.push(e)})),t}),[])},t.prototype.getSelectedSeries=function(){return this.series.filter((function(t){return t.selected}))},t.prototype.setTitle=function(t,e,n){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(n)},t.prototype.applyDescription=function(t,e){var n=this,i="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};i=this.options[t]=U(!this.styledMode&&{style:i},this.options[t],e);var r=this[t];r&&e&&(this[t]=r=r.destroy()),i&&!r&&((r=this.renderer.text(i.text,0,0,i.useHTML).attr({align:i.align,class:"highcharts-"+t,zIndex:i.zIndex||4}
1).add()).update=function(e){n[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||r.css(i.style),this[t]=r)},t.prototype.layOutTitles=function(t){var e=[0,0,0],n=this.renderer,i=this.spacingBox;["title","subtitle","caption"].forEach((function(t){var r,o=this[t],a=this.options[t],c=a.verticalAlign||"top";if(t="title"===t?"top"===c?-3:0:"top"===c?e[0]+2:0,o){this.styledMode||(r=a.style&&a.style.fontSize),r=n.fontMetrics(r,o).b,o.css({width:(a.width||i.width+(a.widthAdjust||0))+"px"});var s=Math.round(o.getBBox(a.useHTML).height);o.align(B({y:"bottom"===c?r:t+r,height:s},a),!1,"spacingBox"),a.floating||("top"===c?e[0]=Math.ceil(e[0]+s):"bottom"===c&&(e[2]=Math.ceil(e[2]+s)))}}),this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var r=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,R(this,"afterLayOutTitles"),!this.isDirtyBox&&r&&(this.isDirtyBox=this.isDirtyLegend=r,this.hasRendered&&V(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var n=this.renderTo;O(e)||(this.containerWidth=H(n,"width")),O(t)||(this.containerHeight=H(n,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,$(t,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},t.prototype.temporaryDisplay=function(t){var e=this.renderTo;if(t)for(;e&&e.style;)e.hcOrigStyle&&(I(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(_.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(_.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,_.body.appendChild(e)),("none"===H(e,"display",!1)||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},t={display:"block",overflow:"hidden"},e!==this.renderTo&&(t.height=0),I(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==_.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e=this.options,n=e.chart,i=Q(),r=this.renderTo;r||(this.renderTo=r=n.renderTo),W(r)&&(this.renderTo=r=_.getElementById(r)),r||D(13,!0,this);var o=X(T(r,"data-highcharts-chart"));F(o)&&x[o]&&x[o].hasRendered&&x[o].destroy(),T(r,"data-highcharts-chart",this.index),r.innerHTML=p.emptyHTML,n.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize(),o=this.chartWidth;var a=this.chartHeight;if(I(r,{overflow:"hidden"}),this.styledMode||(t=B({position:"relative",overflow:"hidden",width:o+"px",height:a+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},n.style||{})),this.container=i=q("div",{id:i},t,r),this._cursor=i.style.cursor,this.renderer=new(n.renderer||!w?l.getRendererType(n.renderer):d)(i,o,a,void 0,n.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),y(void 0,this),this.setClassName(n.className),this.styledMode)for(var c in e.defs)this.renderer.definition(e.defs[c]);else this.renderer.setStyle(n.style);this.renderer.chartIndex=this.index,R(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,n=this.margin,i=this.titleOffset;this.resetMargins(),i[0]&&!O(n[0])&&(this.plotTop=Math.max(this.plotTop,i[0]+e[0])),i[2]&&!O(n[2])&&(this.marginBottom=Math.max(this.marginBottom,i[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(n,e),R(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],n=t.colorAxis,i=t.margin,r=function(t){t.forEach((function(t){t.visible&&t.getOffset()}))};t.hasCartesianSeries?r(t.axes):n&&n.length&&r(n),S.forEach((function(n,r){O(i[r])||(t[n]+=e[r])})),t.setChartSize()},t.prototype.reflow=function(t){var e=this,n=e.options.chart,i=e.renderTo,r=O(n.width)&&O(n.height),o=n.width||H(i,"width");n=n.height||H(i,"height"),i=t?t.target:A,delete e.pointer.chartPosition,r||e.isPrinting||!o||!n||i!==A&&i!==_||(
1o===e.containerWidth&&n===e.containerHeight||(f.clearTimeout(e.reflowTimeout),e.reflowTimeout=Z((function(){e.container&&e.setSize(void 0,void 0,!1)}),t?100:0)),e.containerWidth=o,e.containerHeight=n)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=C(A,"resize",(function(t){e.options&&e.reflow(t)})),C(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,n){var i=this,r=i.renderer;i.isResizing+=1,y(n,i),n=r.globalAnimation,i.oldChartHeight=i.chartHeight,i.oldChartWidth=i.chartWidth,void 0!==t&&(i.options.chart.width=t),void 0!==e&&(i.options.chart.height=e),i.getChartSize(),i.styledMode||(n?m:I)(i.container,{width:i.chartWidth+"px",height:i.chartHeight+"px"},n),i.setChartSize(!0),r.setSize(i.chartWidth,i.chartHeight,n),i.axes.forEach((function(t){t.isDirty=!0,t.setScale()})),i.isDirtyLegend=!0,i.isDirtyBox=!0,i.layOutTitles(),i.getMargins(),i.redraw(n),i.oldChartHeight=null,R(i,"resize"),Z((function(){i&&R(i,"endResize",null,(function(){--i.isResizing}))}),g(n).duration)},t.prototype.setChartSize=function(t){var e,n,i,r,o=this.inverted,a=this.renderer,c=this.chartWidth,s=this.chartHeight,l=this.options.chart,u=this.spacing,d=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=i=Math.max(0,Math.round(c-e-this.marginRight)),this.plotHeight=r=Math.max(0,Math.round(s-n-this.marginBottom)),this.plotSizeX=o?r:i,this.plotSizeY=o?i:r,this.plotBorderWidth=l.plotBorderWidth||0,this.spacingBox=a.spacingBox={x:u[3],y:u[0],width:c-u[3]-u[1],height:s-u[0]-u[2]},this.plotBox=a.plotBox={x:e,y:n,width:i,height:r},o=2*Math.floor(this.plotBorderWidth/2),c=Math.ceil(Math.max(o,d[3])/2),s=Math.ceil(Math.max(o,d[0])/2),this.clipBox={x:c,y:s,width:Math.floor(this.plotSizeX-Math.max(o,d[1])/2-c),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(o,d[2])/2-s))},t||(this.axes.forEach((function(t){t.setAxisSize(),t.setAxisTranslation()})),a.alignElements()),R(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){R(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach((function(n){var i=e[n],r=G(i)?i:[i,i,i,i];["Top","Right","Bottom","Left"].forEach((function(i,o){t[n][o]=V(e[n+i],r[o])}))})),S.forEach((function(e,n){t[e]=V(t.margin[n],t.spacing[n])})),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,n=this.renderer,i=this.chartWidth,r=this.chartHeight,o=this.styledMode,a=this.plotBGImage,c=e.backgroundColor,s=e.plotBackgroun
1dColor,l=e.plotBackgroundImage,u=this.plotLeft,d=this.plotTop,h=this.plotWidth,f=this.plotHeight,p=this.plotBox,m=this.clipRect,g=this.clipBox,y=this.chartBackground,v=this.plotBackground,b=this.plotBorder,x="animate";if(y||(this.chartBackground=y=n.rect().addClass("highcharts-background").add(),x="attr"),o)var _=t=y.strokeWidth();else t=(_=e.borderWidth||0)+(e.shadow?8:0),c={fill:c||"none"},(_||y["stroke-width"])&&(c.stroke=e.borderColor,c["stroke-width"]=_),y.attr(c).shadow(e.shadow);y[x]({x:t/2,y:t/2,width:i-t-_%2,height:r-t-_%2,r:e.borderRadius}),x="animate",v||(x="attr",this.plotBackground=v=n.rect().addClass("highcharts-plot-background").add()),v[x](p),o||(v.attr({fill:s||"none"}).shadow(e.plotShadow),l&&(a?(l!==a.attr("href")&&a.attr("href",l),a.animate(p)):this.plotBGImage=n.image(l,u,d,h,f).add())),m?m.animate({width:g.width,height:g.height}):this.clipRect=n.clipRect(g),x="animate",b||(x="attr",this.plotBorder=b=n.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),o||b.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),b[x](b.crisp({x:u,y:d,width:h,height:f},-b.strokeWidth())),this.isDirtyBox=!1,R(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,n,i=this,r=i.options.chart,o=i.options.series;["inverted","angular","polar"].forEach((function(a){for(e=k[r.type||r.defaultSeriesType],n=r[a]||e&&e.prototype[a],t=o&&o.length;!n&&t--;)(e=k[o[t].type])&&e.prototype[a]&&(n=!0);i[a]=n}))},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach((function(t){t.linkedSeries.length=0})),e.forEach((function(e){var n=e.options.linkedTo;W(n)&&(n=":previous"===n?t.series[e.index-1]:t.get(n))&&n.linkedParent!==e&&(n.linkedSeries.push(e),e.linkedParent=n,n.enabledDataSorting&&e.setDataSortingOptions(),e.visible=V(e.options.visible,n.options.visible,e.visible))})),R(this,"afterLinkSeries")},t.prototype.renderSeries=function(){this.series.forEach((function(t){t.translate(),t.render()}))},t.prototype.renderLabels=function(){var t=this,e=t.options.labels;e.items&&e.items.forEach((function(n){var i=B(e.style,n.style),r=X(i.left)+t.plotLeft,o=X(i.top)+t.plotTop+12;delete i.left,delete i.top,t.renderer.text(n.html,r,o).attr({zIndex:2}).css(i).add()}))},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,n=this.renderer,i=this.options,r=function(t){t.forEach((function(t){t.visible&&t.render()}))},a=0;this.setTitle(),this.legend=new o(this,i.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),i=this.plotWidth,t.some((function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return a=21,!0}));var c=this.plotHeight=Math.max(this.plotHeight-a,0);t.forEach((function(t){t.setScale()})),this.getAxisMargins();var s=1.1<i/this.plotWidth,l=1.05<c/this.plotHeight;(s||l)&&(t.forEach((function(t){(t.horiz&&s||!t.horiz&&l)&&t.setTickInterval(!0)})),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?r(t):e&&e.length&&r(e),this.seriesGroup||(this.seriesGroup=n.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,n=U(!0,this.options.credits,t);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){n.href&&(A.location.href=n.href)})).attr({align:n.position.align,zIndex:8}),e.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,n=e.axes,i=e.series,o=e.container,a=o&&o.parentNode;for(R(e,"destroy"),e.renderer.forExport?N(x,e):x[e.index]=void 0,r.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),K(e),t=n.length;t--;)n[t]=n[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=i.length;t--;)i[t]=i[t].destroy();
1"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach((function(t){var n=e[t];n&&n.destroy&&(e[t]=n.destroy())})),o&&(o.innerHTML=p.emptyHTML,K(o),a&&P(o)),Y(e,(function(t,n){delete e[n]}))},t.prototype.firstRender=function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(z(e.series)?e.series:[]).forEach((function(e){t.initSeries(e)})),t.linkSeries(),t.setSeriesData(),R(t,"beforeRender"),s&&(a.isRequired()?t.pointer=new a(t,e):t.pointer=new s(t,e)),t.render(),t.pointer.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0))},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach((function(t){t&&void 0!==this.index&&t.apply(this,[this])}),this),R(this,"load"),R(this,"render"),O(this.index)&&this.setReflow(this.options.chart.reflow),this.hasLoaded=!0},t.prototype.addSeries=function(t,e,n){var i,r=this;return t&&(e=V(e,!0),R(r,"addSeries",{options:t},(function(){i=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),i.enabledDataSorting&&i.setData(t.data,!1),R(r,"afterAddSeries",{series:i}),e&&r.redraw(n)}))),i},t.prototype.addAxis=function(t,e,n,i){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:n,animation:i})},t.prototype.addColorAxis=function(t,e,n){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:n})},t.prototype.createAxis=function(t,n){return t=new e(this,U(n.axis,{index:this[t].length,isX:"xAxis"===t})),V(n.redraw,!0)&&this.redraw(n.animation),t},t.prototype.showLoading=function(t){var e=this,n=e.options,i=n.loading,r=function(){o&&I(o,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},o=e.loadingDiv,a=e.loadingSpan;o||(e.loadingDiv=o=q("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),a||(e.loadingSpan=a=q("span",{className:"highcharts-loading-inner"},null,o),C(e,"redraw",r)),o.className="highcharts-loading",p.setElementHTML(a,V(t,n.lang.loading,"")),e.styledMode||(I(o,B(i.style,{zIndex:10})),I(a,i.labelStyle),e.loadingShown||(I(o,{opacity:0,display:""}),m(o,{opacity:i.style.opacity||.5},{duration:i.showDuration||0}))),e.loadingShown=!0,r()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){I(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,n,i){var r,o,a=this,c={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},s=t.isResponsiveOptions,l=[];R(a,"update",{options:t}),s||a.setResponsive(!1,!0),t=M(t,a.options),a.userOptions=U(a.userOptions,t);var u=t.chart;if(u){if(U(!0,a.options.chart,u),"className"in u&&a.setClassName(u.className),"reflow"in u&&a.setReflow(u.reflow),"inverted"in u||"polar"in u||"type"in u){a.propFromSeries();var d=!0}"alignTicks"in u&&(d=!0),"events"in u&&b(this,u),Y(u,(function(t,e){-1!==a.propsRequireUpdateSeries.indexOf("chart."+e)&&(r=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1!==a.propsRequireReflow.indexOf(e)&&(s?a.isDirtyBox=!0:o=!0)})),!a.styledMode&&u.style&&a.renderer.setStyle(a.options.chart.style||{})}!a.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===L&&(this.time=new h(t.time)),U(!0,a.options.time,t.time)),Y(t,(function(e,n){a[n]&&"function"==typeof a[n].update?a[n].update(e,!1):"function"==typeof a[c[n]]?a[c[n]](e):"colors"!==n&&-1===a.collectionsWithUpdate.indexOf(n)&&U(!0,a.options[n],t[n]),"chart"!==n&&-1!==a.propsRequireUpdateSeries.indexOf(n)&&(r=!0)})),this.collectionsWithUpdate.forEach((function(e){if(t[e]){var i=[];a[e].forEach((function(t,e){t.options.isInternal||i.push(V(t.options.index,e))})),J(t[e]).forEach((function(t,r){var o,c=O(t.id);c&&(o=a.get(t.id)),!o&&a[e]&&(o=a[e][i?i[r]:r])&&c&&O(o.options.id)&&(o=void 0),o&&o.coll===e&&(o.update(t,!1),n&&(o.touched=!0)),!o&&n&&a.collectionsWithInit[e]&&(a.collectionsWithInit[e][0].apply(a,[t].concat(a.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)})),n&&a[e].forEach((function(t){t.touched||t.options.isInternal?delete t.touched:l.push(t)}))}})),l.forEach((function(t){t.chart&&t.remove&&t.remove(!1)}
1)),d&&a.axes.forEach((function(t){t.update({},!1)})),r&&a.getSeriesOrderByLinks().forEach((function(t){t.chart&&t.update({},!1)}),this),d=u&&u.width,u=u&&(W(u.height)?$(u.height,d||a.chartWidth):u.height),o||F(d)&&d!==a.chartWidth||F(u)&&u!==a.chartHeight?a.setSize(d,u,i):V(e,!0)&&a.redraw(i),R(a,"afterUpdate",{options:t,redraw:e,animation:i})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){function t(){e.zoomOut()}var e=this,n=E.lang,i=e.options.chart.resetZoomButton,r=i.theme,o=r.states,a="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"scrollablePlotBox";R(this,"beforeShowResetZoom",null,(function(){e.resetZoomButton=e.renderer.button(n.resetZoom,null,null,t,r,o&&o.hover).attr({align:i.position.align,title:n.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,a)})),R(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){R(this,"selection",{resetSelection:!0}
1,this.zoom)},t.prototype.zoom=function(t){var e,n=this,i=n.pointer,r=n.inverted?i.mouseDownX:i.mouseDownY,o=!1;!t||t.resetSelection?(n.axes.forEach((function(t){e=t.zoom()})),i.initiated=!1):t.xAxis.concat(t.yAxis).forEach((function(t){var a=t.axis,c=n.inverted?a.left:a.top,s=n.inverted?c+a.width:c+a.height,l=a.isXAxis,u=!1;(!l&&r>=c&&r<=s||l||!O(r))&&(u=!0),i[l?"zoomX":"zoomY"]&&u&&(e=a.zoom(t.min,t.max),a.displayBtn&&(o=!0))}));var a=n.resetZoomButton;o&&!a?n.showResetZoom():!o&&G(a)&&(n.resetZoomButton=a.destroy()),e&&n.redraw(V(n.options.chart.animation,t&&t.animation,100>n.pointCount))},t.prototype.pan=function(t,e){var n=this,i=n.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var r=n.options.chart,o=n.options.mapNavigation&&n.options.mapNavigation.enabled;r&&r.panning&&(r.panning=e);var a,c=e.type;R(this,"pan",{originalEvent:t},(function(){i&&i.forEach((function(t){t.setState()}));var e=n.xAxis;"xy"===c?e=e.concat(n.yAxis):"y"===c&&(e=n.yAxis);var r={};e.forEach((function(e){if(e.options.panningEnabled&&!e.options.isInternal){var i=e.horiz,s=t[i?"chartX":"chartY"],l=n[i=i?"mouseDownX":"mouseDownY"],u=e.minPointOffset||0,d=e.reversed&&!n.inverted||!e.reversed&&n.inverted?-1:1,h=e.getExtremes(),f=e.toValue(l-s,!0)+u*d,p=e.toValue(l+e.len-s,!0)-(u*d||e.isXAxis&&e.pointRangePadding||0),m=p<f;d=e.hasVerticalPanning(),l=m?p:f,f=m?f:p;var g=e.panningState;!d||e.isXAxis||g&&!g.isDirty||e.series.forEach((function(t){var e=t.getProcessedData(!0);e=t.getExtremes(e.yData,!0),g||(g={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),F(e.dataMin)&&F(e.dataMax)&&(g.startMin=Math.min(V(t.options.threshold,1/0),e.dataMin,g.startMin),g.startMax=Math.max(V(t.options.threshold,-1/0),e.dataMax,g.startMax))}
1)),d=Math.min(V(g&&g.startMin,h.dataMin),u?h.min:e.toValue(e.toPixels(h.min)-e.minPixelPadding)),p=Math.max(V(g&&g.startMax,h.dataMax),u?h.max:e.toValue(e.toPixels(h.max)+e.minPixelPadding)),e.panningState=g,e.isOrdinal||(0<(u=d-l)&&(f+=u,l=d),0<(u=f-p)&&(f=p,l-=u),e.series.length&&l!==h.min&&f!==h.max&&l>=d&&f<=p&&(e.setExtremes(l,f,!1,!1,{trigger:"pan"}),n.resetZoomButton||o||l===d||f===p||!c.match("y")||(n.showResetZoom(),e.displayBtn=!1),a=!0),r[i]=s)}})),Y(r,(function(t,e){n[e]=t})),a&&n.redraw(!1),I(n.container,{cursor:"move"})}))},t}(),B(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),t})),e(n,"Core/Legend/LegendSymbol.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.merge,i=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.options,r=t.symbolWidth,o=t.symbolHeight,a=o/2,c=this.chart.renderer,s=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var l={},u=e.marker;this.chart.styledMode||(l={"stroke-width":e.lineWidth||0},e.dashStyle&&(l.dashstyle=e.dashStyle)),this.legendLine=c.path([["M",0,t],["L",r,t]]).addClass("highcharts-graph").attr(l).add(s),u&&!1!==u.enabled&&r&&(e=Math.min(i(u.radius,a),a),0===this.symbol.indexOf("url")&&(u=n(u,{width:o,height:o}),e=0),this.legendSymbol=r=c.symbol(this.symbol,r/2-e,t-e,2*e,2*e,u).addClass("highcharts-point").add(s),r.isMarker=!0)},t.drawRectangle=function(t,e){var n=t.symbolHeight,r=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(r?(t.symbolWidth-n)/2:0,t.baseline-n+1,r?n:t.symbolWidth,n,i(t.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)}}(e||(e={})),e})),e(n,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}})),e(n,"Core/Series/Series.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,c,s,l){var u=t.animObject,d=t.setAnimation,h=e.defaultOptions,f=n.registerEventOptions,p=i.hasTouch,m=i.svg,g=i.win,y=c.seriesTypes,v=l.addEvent,b=l.arrayMax,x=l.arrayMin,_=l.clamp,S=l.cleanRecursively,w=l.correctFloat,A=l.defined,E=l.erase,L=l.error,k=l.extend,C=l.find,T=l.fireEvent,M=l.getNestedProperty,q=l.isArray,I=l.isNumber,O=l.isString,P=l.merge,N=l.objectEach,D=l.pick,B=l.removeEvent,j=l.splat,R=l.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){T(this,"init",{options:e});var n=this,i=t.series;this.eventsToUnbind=[],n.chart=t,n.options=n.setOptions(e),e=n.options,n.linkedSeries=[],n.bindAxes(),k(n,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),f(this,e);var r,o=e.events;(o&&o.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach((function(t){n[t+"Data"]||(n[t+"Data"]=[])})),n.isCartesian&&(t.hasCartesianSeries=!0),i.length&&(r=i[i.length-1]),n._i=D(r&&r._i,-1)+1,n.opacity=n.options.opacity,t.orderSeries(this.insert(i)),e.dataSorting&&e.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(e.data,!1),T(this,"afterInit")},t.prototype.is=function(t){return y[t]&&this instanceof y[t]},t.prototype.insert=function(t){var e,n=this.options.index;if(I(n)){for(e=t.length;e--;)if(n>=D(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return D(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,n=e.options,i=e.chart;
1T(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(r){var o=0;i[r].forEach((function(i){t=i.options,(n[r]===o&&!t.isInternal||void 0!==n[r]&&n[r]===t.id||void 0===n[r]&&0===t.index)&&(e.insert(i.series),e[r]=i,i.isDirty=!0),t.isInternal||o++})),e[r]||e.optionalAxis===r||L(18,!0,i)}))})),T(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var n=t.series,i=arguments,r=I(e)?function(i){var r="y"===i&&n.toYData?n.toYData(t):t[i];n[i+"Data"][e]=r}:function(t){Array.prototype[e].apply(n[t+"Data"],Array.prototype.slice.call(i,2))};n.parallelArrays.forEach(r)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},t.prototype.autoIncrement=function(t){var e,n=this.options,i=n.pointIntervalUnit,r=n.relativeXValue,o=this.chart.time,a=this.xIncrement;return a=D(a,n.pointStart,0),this.pointInterval=e=D(this.pointInterval,n.pointInterval,1),r&&I(t)&&(e*=t),i&&(n=new o.Date(a),"day"===i?o.set("Date",n,o.get("Date",n)+e):"month"===i?o.set("Month",n,o.get("Month",n)+e):"year"===i&&o.set("FullYear",n,o.get("FullYear",n)+e),e=n.getTime()-a),r&&I(t)?a+e:(this.xIncrement=a+e,a)},t.prototype.setDataSortingOptions=function(){var t=this.options;k(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),A(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,n=e.options,i=n.plotOptions,r=e.userOptions||{};t=P(t),e=e.styledMode;var o={plotOptions:i,userOptions:t};T(this,"setOptions",o);var a=o.plotOptions[this.type],c=r.plotOptions||{};return this.userOptions=o.userOptions,r=P(a,i.series,r.plotOptions&&r.plotOptions[this.type],t),this.tooltipOptions=P(h.tooltip,h.plotOptions.series&&h.plotOptions.series.tooltip,h.plotOptions[this.type].tooltip,n.tooltip.userOptions,i.series&&i.series.tooltip,i[this.type].tooltip,t.tooltip),this.stickyTracking=D(t.stickyTracking,c[this.type]&&c[this.type].stickyTracking,c.series&&c.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||r.stickyTracking),null===a.marker&&delete r.marker,this.zoneAxis=r.zoneAxis,i=this.zones=(r.zones||[]).slice(),!r.negativeColor&&!r.negativeFillColor||r.zones||(n={value:r[this.zoneAxis+"Threshold"]||r.threshold||0,className:"highcharts-negative"},e||(n.color=r.negativeColor,n.fillColor=r.negativeFillColor),i.push(n)),i.length&&A(i[i.length-1].value)&&i.push(e?{}:{color:this.color,fillColor:this.fillColor}),T(this,"afterSetOptions",{options:r}),r},t.prototype.getName=function(){return D(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,n){var i=this.chart,r=this.userOptions,o=t+"Index",a=t+"Counter",c=n?n.length:D(i.options.chart[t+"Count"],i[t+"Count"]);if(!e){var s=D(r[o],r["_"+o]);A(s)||(i.series.length||(i[a]=0),r["_"+o]=s=i[a]%c,i[a]+=1),n&&(e=n[s])}void 0!==s&&(this[o]=s),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||h.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},t.prototype.findPointIndex=function(t,e){var n,i,r=t.id,a=t.x,c=this.points,s=this.options.dataSorting;if(r)(s=this.chart.get(r))instanceof o&&(n=s);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(n=function(e){return!e.touched&&e.index===t.index},s&&s.matchByName?n=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(n=function(e){return!e.touched&&e.options.x===t.x}),!(n=C(c,n))))return;if(n){var l=n&&n.index;void 0!==l&&(i=!0)}return void 0===l&&I(a)&&(l=this.xData.indexOf(a,e)),-1!==l&&void 0!==l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!i&&I(l)&&c[l]&&c[l].touched&&(l=void 0),l},t.prototype.updateData=function(t,e){var n,i,r,o=this.options,a=o.dataSorting,c=this.points,s=[],l=this.requireSorting,u=t.length===c.length,d=!0;if(this.xIncrement=null,t.forEach((function(t,e){var i=A(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},d=i.x;i.id||I(d)?(-1===(i=this.findPointIndex(i,r))||void 0===i?s.push(t):c[i]&&t!==o.data[i]?(c[i].update(t,!1,null,!1),c[i].touched=!0,l&&(r=i+1)):c[i]&&(c[i].touched=!0),(!u||e!==i||a&&a.enabled||this.hasDerivedData)&&(n=!0)):s.push(t)}),this),n)for(t=c.length;t--;)(i=c[t])&&!i.touched&&i.remove&&i.remove(!1,e);else!u||a&&a.enabled?d=!1:(t.forEach((function(t,e){t!==c[e].y&&c[e].update&&c[e].update(t,!1,null,!1)})),s.length=0);
1return c.forEach((function(t){t&&(t.touched=!1)})),!!d&&(s.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=b(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,n,i){var r=this,o=r.points,a=o&&o.length||0,c=r.options,s=r.chart,l=c.dataSorting,u=r.xAxis,d=c.turboThreshold,h=this.xData,f=this.yData,p=r.pointArrayMap;p=p&&p.length;var m,g=c.keys,y=0,v=1,b=null,x=(t=t||[]).length;if(e=D(e,!0),l&&l.enabled&&(t=this.sortData(t)),!1!==i&&x&&a&&!r.cropped&&!r.hasGroupedData&&r.visible&&!r.isSeriesBoosting&&(m=this.updateData(t,n)),!m){if(r.xIncrement=null,r.colorCounter=0,this.parallelArrays.forEach((function(t){r[t+"Data"].length=0})),d&&x>d)if(b=r.getFirstValidPoint(t),I(b))for(n=0;n<x;n++)h[n]=this.autoIncrement(),f[n]=t[n];else if(q(b))if(p)if(b.length===p)for(n=0;n<x;n++)h[n]=this.autoIncrement(),f[n]=t[n];else for(n=0;n<x;n++)i=t[n],h[n]=i[0],f[n]=i.slice(1,p+1);else if(g&&(y=0<=(y=g.indexOf("x"))?y:0,v=0<=(v=g.indexOf("y"))?v:1),1===b.length&&(v=0),y===v)for(n=0;n<x;n++)h[n]=this.autoIncrement(),f[n]=t[n][v];else for(n=0;n<x;n++)i=t[n],h[n]=i[y],f[n]=i[v];else L(12,!1,s);else for(n=0;n<x;n++)void 0!==t[n]&&(i={series:r},r.pointClass.prototype.applyOptions.apply(i,[t[n]]),r.updateParallelArrays(i,n));for(f&&O(f[0])&&L(14,!0,s),r.data=[],r.options.data=r.userOptions.data=t,n=a;n--;)o[n]&&o[n].destroy&&o[n].destroy();u&&(u.minRange=u.userMinRange),r.isDirty=s.isDirtyBox=!0,r.isDirtyData=!!o,n=!1}"point"===c.legendType&&(this.processData(),this.generatePoints()),e&&s.redraw(n)},t.prototype.sortData=function(t){var e=this,n=e.options.dataSorting.sortKey||"y",i=function(t,e){return A(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach((function(n,r){t[r]=i(e,n),t[r].index=r}),this),t.concat().sort((function(t,e){return t=M(n,t),(e=M(n,e))<t?-1:e>t?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var n=e.options,r=n.data;n.dataSorting&&n.dataSorting.enabled||!r||(r.forEach((function(n,o){r[o]=i(e,n),t[o]&&(r[o].x=t[o].x,r[o].index=o)})),e.setData(r,!1))})),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,n=this.options,i=n.cropThreshold,r=t||this.getExtremesFromAll||n.getExtremesFromAll,o=this.isCartesian;t=e&&e.val2lin,n=!(!e||!e.logarithmic);var a=0,c=this.xData,s=this.yData,l=this.requireSorting,u=!1,d=c.length;if(e){var h=(u=e.getExtremes()).min,f=u.max;u=e.categories&&!e.names.length}if(o&&this.sorted&&!r&&(!i||d>i||this.forceCrop))if(c[d-1]<h||c[0]>f)c=[],s=[];else if(this.yData&&(c[0]<h||c[d-1]>f)){var p=this.cropData(this.xData,this.yData,h,f);c=p.xData,s=p.yData,a=p.start,p=!0}for(i=c.length||1;--i;)if(0<(e=n?t(c[i])-t(c[i-1]):c[i]-c[i-1])&&(void 0===m||e<m))var m=e;else 0>e&&l&&!u&&(L(15,!1,this.chart),l=!1);return{xData:c,yData:s,cropped:p,cropStart:a,closestPointRange:m}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange,T(this,"afterProcessData")},t.prototype.cropData=function(t,e,n,i,r){var o,a=t.length,c=0,s=a;for(r=D(r,this.cropShoulder),o=0;o<a;o++)if(t[o]>=n){c=Math.max(0,o-r);break}for(n=o;n<a;n++)if(t[n]>i){s=n+r;break}return{xData:t.slice(c,s),yData:e.slice(c,s),start:c,end:s}},t.prototype.generatePoints=function(){var t=this.options,e=t.data,n=this.processedXData,i=this.processedYData,r=this.pointClass,o=n.length,a=this.cropStart||0,c=this.hasGroupedData,s=t.keys,l=[];t=t.dataGrouping&&t.dataGrouping.groupAll?a:0;var u,d,h=this.data;if(!h&&!c){var f=[];f.length=e.length,h=this.data=f}for(s&&c&&(this.options.keys=!1),d=0;d<o;d++){if(f=a+d,c){var p=(new r).init(this,[n[d]].concat(j(i[d])));p.dataGroup=this.groupMap[t+d],p.dataGroup.options&&(p.options=p.dataGroup.options,k(p,p.dataGroup.options),delete p.dataLabels)}else(p=h[f])||void 0===e[f]||(h[f]=p=(new r).init(this,e[f],n[d]));p&&(p.index=c?t+d:f,l[d]=p)}if(this.options.keys=s,h&&(o!==(u=h.length)||c))for(d=0;d<u;d++)d!==a||c||(d+=o),h[d]&&(h[d].destroyElements(),h[d].plotX=void 0);this.data=h,this.points=l,T(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:x(t),max:b(t)}},t.prototype.getExtremes=function(t,e){var n=this.xAxis,i=this.yAxis,r=this.processedXData||this.xData,o=[],a=this.requireSorting?this.cropShoulder:0;i=!!i&&i.positiveValuesOnly;var c,s=0,l=0,u=0,d=(t=t||this.stackedYData||this.processedYData||[]).length;if(n){var h=n.getExtremes();s=h.min,l=h.max}for(c=0;c<d;c++){var f=r[c];h=t[c];var p=(I(h)||q(h))&&(h.length||0<h||!i);if(f=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!n||(r[c+a]||f)>=s&&(r[c-a]||f)<=l,p&&f)if(p=h.length)for(;p--;
1)I(h[p])&&(o[u++]=h[p]);else o[u++]=h}return t={activeYData:o,dataMin:x(o),dataMax:b(o)},T(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,n=0,i=null;null===i&&n<e;)i=t[n],n++;return i},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,n=this.options,i=n.stacking,r=this.xAxis,o=r.categories,a=this.enabledDataSorting,c=this.yAxis,s=this.points,l=s.length,u=this.pointPlacementToXValue(),d=!!u,h=n.threshold,f=n.startFromThreshold?h:0,p=this.zoneAxis||"y",m=Number.MAX_VALUE;for(t=0;t<l;t++){var g=s[t],y=g.x,v=void 0,b=void 0,x=g.y,S=g.low,E=i&&c.stacking&&c.stacking.stacks[(this.negStacks&&x<(f?0:h)?"-":"")+this.stackKey];if((c.positiveValuesOnly&&!c.validatePositiveValue(x)||r.positiveValuesOnly&&!r.validatePositiveValue(y))&&(g.isNull=!0),g.plotX=e=w(_(r.translate(y,0,0,0,1,u,"flags"===this.type),-1e5,1e5)),i&&this.visible&&E&&E[y]){var L=this.getStackIndicator(L,y,this.index);g.isNull||(b=(v=E[y]).points[L.key])}if(q(b)&&(S=b[0],x=b[1],S===f&&L.key===E[y].base&&(S=D(I(h)&&h,c.min)),c.positiveValuesOnly&&0>=S&&(S=null),g.total=g.stackTotal=v.total,g.percentage=v.total&&g.y/v.total*100,g.stackY=x,this.irregularWidths||v.setOffset(this.pointXOffset||0,this.barW||0)),g.yBottom=A(S)?_(c.translate(S,0,1,0,1),-1e5,1e5):null,this.dataModify&&(x=this.dataModify.modifyValue(x,t)),g.plotY=void 0,I(x)&&(void 0!==(v=c.translate(x,!1,!0,!1,!0))&&(g.plotY=_(v,-1e5,1e5))),g.isInside=this.isPointInside(g),g.clientX=d?w(r.translate(y,0,0,0,1,u)):e,g.negative=g[p]<(n[p+"Threshold"]||h||0),g.category=o&&void 0!==o[g.x]?o[g.x]:g.x,!g.isNull&&!1!==g.visible){void 0!==k&&(m=Math.min(m,Math.abs(e-k)));var k=e}g.zone=this.zones.length?g.getZone():void 0,!g.graphic&&this.group&&a&&(g.isNew=!0)}this.closestPointRangePx=m,T(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,n){var i=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!i.isInsidePlot(t.plotX,t.plotY,{inverted:i.inverted}))&&(!1!==t.visible&&(n||!t.isNull))}))},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis,i=P(t.clipBox);return e&&e.len!==t.plotSizeX&&(i.width=e.len),n&&n.len!==t.plotSizeY&&(i.height=n.len),i},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},t.prototype.setClip=function(){var t=this.chart,e=this.group,n=this.markerGroup,i=t.sharedClips;t=t.renderer;var r=this.getClipBox(),o=this.getSharedClipKey(),a=i[o];a?a.animate(r):i[o]=a=t.clipRect(r),e&&e.clip(!1===this.options.clip?void 0:a),n&&n.clip()},t.prototype.animate=function(t){var e=this.chart,n=this.group,i=this.markerGroup,r=e.inverted,o=u(this.options.animation),a=[this.getSharedClipKey(),o.duration,o.easing,o.defer].join(),c=e.sharedClips[a],s=e.sharedClips[a+"m"];if(t&&n)o=this.getClipBox(),c?c.attr("height",o.height):(o.width=0,r&&(o.x=e.plotHeight),c=e.renderer.clipRect(o),e.sharedClips[a]=c,s=e.renderer.clipRect({x:r?(e.plotSizeX||0)+99:-99,y:r?-e.plotLeft:-e.plotTop,width:99,height:r?e.chartWidth:e.chartHeight}),e.sharedClips[a+"m"]=s),n.clip(c),i&&i.clip(s);else if(c&&!c.hasClass("highcharts-animating")){e=this.getClipBox();var l=o.step;i&&i.element.childNodes.length&&(o.step=function(t,e){l&&l.apply(e,arguments),s&&s.element&&s.attr(e.prop,"width"===e.prop?t+99:t)}),c.addClass("highcharts-animating").animate(e,o)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),N(this.chart.sharedClips,(function(e,n,i){e&&!t.chart.container.querySelector('[clip-path="url(#'+e.id+')"]')&&(e.destroy(),delete i[n])})),this.finishedAnimating=!0,T(this,"afterAnimate")},t.prototype.drawPoints=function(){var t,e,n=this.points,i=this.chart,r=this.options.marker,o=this[this.specialGroup]||this.markerGroup,a=this.xAxis,c=D(r.enabled,!(a&&!a.isRadial)||null,this.closestPointRangePx>=r.enabledThreshold*r.radius);if(!1!==r.enabled||this._hasPointMarkers)for(t=0;t<n.length;t++){var s=n[t],l=(e=s.graphic)?"animate":"attr",u=s.marker||{},d=!!s.marker;if((c&&void 0===u.enabled||u.enabled)&&!s.isNull&&!1!==s.visible){var h=D(u.symbol,this.symbol,"rect"),f=this.markerAttribs(s,s.selected&&"select");
1this.enabledDataSorting&&(s.startXPos=a.reversed?-(f.width||0):a.width);var p=!1!==s.isInside;e?e[p?"show":"hide"](p).animate(f):p&&(0<(f.width||0)||s.hasImage)&&(s.graphic=e=i.renderer.symbol(h,f.x,f.y,f.width,f.height,d?u:r).add(o),this.enabledDataSorting&&i.hasRendered&&(e.attr({x:s.startXPos}),l="animate")),e&&"animate"===l&&e[p?"show":"hide"](p).animate(f),e&&!i.styledMode&&e[l](this.pointAttribs(s,s.selected&&"select")),e&&e.addClass(s.getClassName(),!0)}else e&&(s.graphic=e.destroy())}},t.prototype.markerAttribs=function(t,e){var n=this.options,i=n.marker,r=t.marker||{},o=r.symbol||i.symbol,a=D(r.radius,i.radius);return e&&(i=i.states[e],e=r.states&&r.states[e],a=D(e&&e.radius,i&&i.radius,a+(i&&i.radiusPlus||0))),t.hasImage=o&&0===o.indexOf("url"),t.hasImage&&(a=0),t={x:n.crisp?Math.floor(t.plotX-a):t.plotX-a,y:t.plotY-a},a&&(t.width=t.height=2*a),t},t.prototype.pointAttribs=function(t,e){var n=this.options.marker,i=t&&t.options,r=i&&i.marker||{},o=i&&i.color,a=t&&t.color,c=t&&t.zone&&t.zone.color,s=this.color;return t=D(r.lineWidth,n.lineWidth),i=1,s=o||c||a||s,o=r.fillColor||n.fillColor||s,a=r.lineColor||n.lineColor||s,e=e||"normal",n=n.states[e]||{},e=r.states&&r.states[e]||{},t=D(e.lineWidth,n.lineWidth,t+D(e.lineWidthPlus,n.lineWidthPlus,0)),o=e.fillColor||n.fillColor||o,{stroke:a=e.lineColor||n.lineColor||a,"stroke-width":t,fill:o,opacity:i=D(e.opacity,n.opacity,i)}},t.prototype.destroy=function(t){var e,n,i,r=this,o=r.chart,a=/AppleWeb
1Kit\/533/.test(g.navigator.userAgent),c=r.data||[];for(T(r,"destroy"),this.removeEvents(t),(r.axisTypes||[]).forEach((function(t){(i=r[t])&&i.series&&(E(i.series,r),i.isDirty=i.forceRedraw=!0)})),r.legendItem&&r.chart.legend.destroyItem(r),e=c.length;e--;)(n=c[e])&&n.destroy&&n.destroy();r.clips&&r.clips.forEach((function(t){return t.destroy()})),l.clearTimeout(r.animationTimeout),N(r,(function(t,e){t instanceof s&&!t.survive&&t[a&&"group"===e?"hide":"destroy"]()})),o.hoverSeries===r&&(o.hoverSeries=void 0),E(o.series,r),o.orderSeries(),N(r,(function(e,n){t&&"hcEvents"===n||delete r[n]}))},t.prototype.applyZones=function(){var t,e,n,i,r,o,a,c,s=this,l=this.chart,u=l.renderer,d=this.zones,h=this.clips||[],f=this.graph,p=this.area,m=Math.max(l.chartWidth,l.chartHeight),g=this[(this.zoneAxis||"y")+"Axis"],y=l.inverted,v=!1;if(d.length&&(f||p)&&g&&void 0!==g.min){var b=g.reversed,x=g.horiz;f&&!this.showLine&&f.hide(),p&&p.hide();var S=g.getExtremes();d.forEach((function(d,w){t=b?x?l.plotWidth:0:x?0:g.toPixels(S.min)||0,t=_(D(e,t),0,m),e=_(Math.round(g.toPixels(D(d.value,S.max),!0)||0),0,m),v&&(t=e=g.toPixels(S.max)),i=Math.abs(t-e),r=Math.min(t,e),o=Math.max(t,e),g.isXAxis?(n={x:y?o:r,y:0,width:i,height:m},x||(n.x=l.plotHeight-n.x)):(n={x:0,y:y?o:r,width:m,height:i},x&&(n.y=l.plotWidth-n.y)),y&&u.isVML&&(n=g.isXAxis?{x:0,y:b?r:o,height:n.width,width:l.chartWidth}:{x:n.y-l.plotLeft-l.spacingBox.x,y:0,width:n.height,height:l.chartHeight}),h[w]?h[w].animate(n):h[w]=u.clipRect(n),a=s["zone-area-"+w],c=s["zone-graph-"+w],f&&c&&c.clip(h[w]),p&&a&&a.clip(h[w]),v=d.value>S.max,s.resetZones&&0===e&&(e=void 0)})),this.clips=h}else s.visible&&(f&&f.show(!0),p&&p.show(!0))},t.prototype.invertGroups=function(t){function e(){["group","markerGroup"].forEach((function(e){n[e]&&(i.renderer.isVML&&n[e].attr({width:n.yAxis.len,height:n.xAxis.len}),n[e].width=n.yAxis.len,n[e].height=n.xAxis.len,n[e].invert(!n.isRadialSeries&&t))}))}var n=this,i=n.chart;n.xAxis&&(n.eventsToUnbind.push(v(i,"resize",e)),e(),n.invertGroups=e)},t.prototype.plotGroup=function(t,e,n,i,r){var o=this[t],a=!o;return n={visibility:n,zIndex:i||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(n.opacity=this.opacity),a&&(this[t]=o=this.chart.renderer.g().add(r)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(A(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(n)[a?"attr":"animate"](this.getPlotBox()),o},t.prototype.getPlotBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis;return t.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:n?n.top:t.plotTop,scaleX:1,scaleY:1}},t.prototype.removeEvents=function(t){t||B(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,n=t.options,i=u(n.animation),r=t.visible?"inherit":"hidden",o=n.zIndex,a=t.hasRendered,c=e.seriesGroup,s=e.inverted;e=!t.finishedAnimating&&e.renderer.isSVG?i.duration:0,T(this,"render");var l=t.plotGroup("group","series",r,o,c);t.markerGroup=t.plotGroup("markerGroup","markers",r,o,c),!1!==n.clip&&t.setClip(),t.animate&&e&&t.animate(!0),l.inverted=!!D(t.invertible,t.isCartesian)&&s,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(s),t.animate&&e&&t.animate(),a||(e&&i.defer&&(e+=i.defer),t.animationTimeout=R((function(){t.afterAnimate()}),e||0)),t.isDirty=!1,t.hasRendered=!0,T(t,"afterRender")},t.prototype.redraw=function(){var t=this.chart,e=this.isDirty||this.isDirtyData,n=this.group,i=this.xAxis,r=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:D(i&&i.left,t.plotLeft),translateY:D(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var n=this.xAxis,i=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:r?i.len-t.chartX+i.pos:t.chartY-i.pos},e,t)},t.prototype.buildKDTree=function(t){this.buildingKdTree=!0;var e=this,n=-1<e.options.findNearestPointBy.indexOf("y")?2:1;delete e.kdTree,R((function(){e.kdTree=function t(n,i,r){var o=n&&n.length;if(o){var a=e.kdAxisArray[i%r];return n.sort((function(t,e){return t[a]-e[a]}
1)),{point:n[o=Math.floor(o/2)],left:t(n.slice(0,o),i+1,r),right:t(n.slice(o+1),i+1,r)}}}(e.getValidPoints(null,!e.directTouch),n,n),e.buildingKdTree=!1}),e.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,n){var i=this,r=this.kdAxisArray[0],o=this.kdAxisArray[1],a=e?"distX":"dist";if(e=-1<i.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return function t(e,n,c,s){var l=n.point,u=i.kdAxisArray[c%s],d=l,h=A(e[r])&&A(l[r])?Math.pow(e[r]-l[r],2):null,f=A(e[o])&&A(l[o])?Math.pow(e[o]-l[o],2):null;return f=(h||0)+(f||0),l.dist=A(f)?Math.sqrt(f):Number.MAX_VALUE,l.distX=A(h)?Math.sqrt(h):Number.MAX_VALUE,h=0>(u=e[u]-l[u])?"right":"left",n[f=0>u?"left":"right"]&&(d=(f=t(e,n[f],c+1,s))[a]<d[a]?f:l),n[h]&&Math.sqrt(u*u)<d[a]&&(d=(e=t(e,n[h],c+1,s))[a]<d[a]?e:d),d}(t,this.kdTree,e,e)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,n=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=n.reversed?-.5:.5),I(t)?t*(e||n.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,n=this.xAxis,i=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(i?i.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(n?n.len:e.plotWidth)},t.prototype.drawTracker=function(){var t=this,e=t.options,n=e.trackByArea,i=[].concat(n?t.areaPath:t.graphPath),r=t.chart,o=r.pointer,a=r.renderer,c=r.options.tooltip.snap,s=t.tracker,l=function(e){r.hoverSeries!==t&&t.onMouseOver()},u="rgba(192,192,192,"+(m?1e-4:.002)+")";s?s.attr({d:i}):t.graph&&(t.tracker=a.path(i).attr({visibility:t.visible?"visible":"hidden",zIndex:2}).addClass(n?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),r.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:u,fill:n?u:"none","stroke-width":t.graph.strokeWidth()+(n?0:2*c)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach((function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",(function(t){o.onTrackerMouseOut(t)})),e.cursor&&!r.styledMode&&t.css({cursor:e.cursor}),p)&&t.on("touchstart",l)}))),T(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,n,i,r){var o=this.options,a=this.data,c=this.chart,s=this.xAxis;s=s&&s.hasNames&&s.names;var l,u=o.data,d=this.xData;e=D(e,!0);var h={series:this};this.pointClass.prototype.applyOptions.apply(h,[t]);var f=h.x,p=d.length;if(this.requireSorting&&f<d[p-1])for(l=!0;p&&d[p-1]>f;)p--;this.updateParallelArrays(h,"splice",p,0,0),this.updateParallelArrays(h,p),s&&h.name&&(s[f]=h.name),u.splice(p,0,t),l&&(this.data.splice(p,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),n&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),this.updateParallelArrays(h,"shift"),u.shift())),!1!==r&&T(this,"addPoint",{point:h}),this.isDirtyData=this.isDirty=!0,e&&c.redraw(i)},t.prototype.removePoint=function(t,e,n){var i=this,r=i.data,o=r[t],a=i.points,c=i.chart,s=function(){a&&a.length===r.length&&a.splice(t,1),r.splice(t,1),i.options.data.splice(t,1),i.updateParallelArrays(o||{series:i},"splice",t,1),o&&o.destroy(),i.isDirty=!0,i.isDirtyData=!0,e&&c.redraw()};d(n,c),e=D(e,!0),o?o.firePointEvent("remove",null,s):s()},t.prototype.remove=function(t,e,n,i){function r(){o.destroy(i),a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(),D(t,!0)&&a.redraw(e)}var o=this,a=o.chart;!1!==n?T(o,"remove",null,r):r()},t.prototype.update=function(t,e){t=S(t,this.userOptions),T(this,"update",{options:t});var n,i=this,r=i.chart,o=i.userOptions,a=i.initialType||i.type,c=r.options.plotOptions,s=y[a].prototype,l=i.finishedAnimating&&{animation:!1},u={},d=["eventOptions","navigatorSeries","baseSeries"],h=t.type||o.type||r.options.chart.type,f=!(this.hasDerivedData||h&&h!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||i.hasOptionChanged("dataGrouping")||i.hasOptionChanged("pointStart")||i.hasOptionChanged("pointInterval")||i.hasOptionChanged("pointIntervalUnit")||i.hasOptionChanged("keys"));if(h=h||a,f&&(d.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&d.push("area","graph"),i.parallelArrays.forEach((function(t){d.push(t+"Data")})),t.data&&(t.dataSorting&&k(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=P(o,l,{index:void 0===o.index?i.index:o.index,pointStart:D(c&&c.series&&c.series.pointStart,o.pointStart,i.xData[0])},!f&&{data:i.options.data},t),f&&t.data&&(t.data=i.options.data),(d=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(d)).forEac
1h((function(t){d[t]=i[t],delete i[t]})),c=!1,y[h]){if(c=h!==i.type,i.remove(!1,!1,!1,!0),c)if(Object.setPrototypeOf)Object.setPrototypeOf(i,y[h].prototype);else{for(n in l=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents,s)i[n]=void 0;k(i,y[h].prototype),l?i.hcEvents=l:delete i.hcEvents}}else L(17,!0,r,{missingModuleFor:h});if(d.forEach((function(t){i[t]=d[t]})),i.init(r,t),f&&this.points){var p=i.options;!1===p.visible?(u.graphic=1,u.dataLabel=1):i._hasPointLabels||(t=p.marker,s=p.dataLabels,!t||!1!==t.enabled&&(o.marker&&o.marker.symbol)===t.symbol||(u.graphic=1),s&&!1===s.enabled&&(u.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(u).length&&t.destroyElements(u),!1===p.showInLegend&&t.legendItem&&r.legend.destroyItem(t))}),this)}i.initialType=a,r.linkSeries(),c&&i.linkedSeries.length&&(i.isDirtyData=!0),T(this,"afterUpdate"),D(e,!0)&&r.redraw(!!f&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],n=this.chart.options.plotOptions,i=this.userOptions[t];return i?e!==i:e!==D(n&&n[this.type]&&n[this.type][t],n&&n.series&&n.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&T(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,n=e.tooltip,i=e.hoverPoint;e.hoverSeries=null,i&&i.onMouseOut(),this&&t.events.mouseOut&&T(this,"mouseOut"),!n||this.stickyTracking||n.shared&&!this.noSharedTooltip||n.hide(),e.series.forEach((function(t){t.setState("",!0)}))},t.prototype.setState=function(t,e){var n=this,i=n.options,r=n.graph,o=i.inactiveOtherPoints,a=i.states,c=D(a[t||"normal"]&&a[t||"normal"].animation,n.chart.options.chart.animation),s=i.lineWidth,l=0,u=i.opacity;if(t=t||"",n.state!==t&&([n.group,n.markerGroup,n.dataLabelsGroup].forEach((function(e){e&&(n.state&&e.removeClass("highcharts-series-"+n.state),t&&e.addClass("highcharts-series-"+t))})),n.state=t,!n.chart.styledMode)){if(a[t]&&!1===a[t].enabled)return;if(t&&(s=a[t].lineWidth||s+(a[t].lineWidthPlus||0),u=D(a[t].opacity,u)),r&&!r.dashstyle)for(i={"stroke-width":s},r.animate(i,c);n["zone-graph-"+l];)n["zone-graph-"+l].animate(i,c),l+=1;o||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach((function(t){t&&t.animate({opacity:u},c)}))}e&&o&&n.points&&n.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},t.prototype.setVisible=function(t,e){var n=this,i=n.chart,r=n.legendItem,o=i.options.chart.ignoreHiddenSeries,a=n.visible,c=(n.visible=t=n.options.visible=n.userOptions.visible=void 0===t?!a:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){n[t]&&n[t][c]()})),i.hoverSeries!==n&&(i.hoverPoint&&i.hoverPoint.series)!==n||n.onMouseOut(),r&&i.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&i.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),n.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),o&&(i.isDirtyBox=!0),T(n,c),!1!==e&&i.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),T(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,n){return void 0===n&&(n={}),n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,n)},t.defaultOptions=a,t}(),k(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:r.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:o,requireSorting:!0,sorted:!0}),c.series=t,t})),e(n,"Extensions/ScrollablePlotArea.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o){var a=t.stop,c=o.addEvent,s=o.createElement,l=o.merge,u=o.pick;c(n,"afterSetChartSize",(function(t){var n=this.options.chart.scrollablePlotArea,i=n&&n.minWidth;
1if(n=n&&n.minHeight,!this.renderer.forExport){if(i){if(this.scrollablePixelsX=i=Math.max(0,i-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.width=this.plotWidth+=i,this.inverted?this.clipBox.height+=i:this.clipBox.width+=i;var r={1:{name:"right",value:i}}}}else n&&(this.scrollablePixelsY=i=Math.max(0,n-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.height=this.plotHeight+=i,this.inverted?this.clipBox.width+=i:this.clipBox.height+=i,r={2:{name:"bottom",value:i}});r&&!t.skipAxes&&this.axes.forEach((function(t){r[t.side]?t.getPlotLinePath=function(){var n=r[t.side].name,i=this[n];this[n]=i-r[t.side].value;var o=e.prototype.getPlotLinePath.apply(this,arguments);return this[n]=i,o}:(t.setAxisSize(),t.setAxisTranslation())}))}})),c(n,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),n.prototype.setUpScrolling=function(){var t=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=s("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=s("div",{className:"highcharts-scrolling"},e,this.scrollingParent),c(this.scrollingContainer,"scroll",(function(){t.pointer&&delete t.pointer.chartPosition})),this.innerContainer=s("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},n.prototype.moveFixedElements=function(){var t,e=this.container,n=this.fixedRenderer,i=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&i.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),i.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===n.SVG_NS?n.box:n.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},n.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,n=e.scrollablePlotArea,i=r.getRendererType();t?(this.fixedDiv=s("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new i(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":u(n.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),c(this,"afterShowResetZoom",this.moveFixedElements),c(this,"afterDrilldown",this.moveFixedElements),c(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),i=this.chartHeight+(this.scrollablePixelsY||0),a(this.container),this.container.style.width=e+"px",this.container.style.height=i+"px",this.renderer.boxWrapper.attr({width:e,height:i,viewBox:[0,0,e,i].join(" ")}),this.chartBackground.attr({width:e,height:i}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(n.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*n.scrollPositionX),n.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*n.scrollPositionY)),i=this.axisOffset,t=this.plotTop-i[0]-1,n=this.plotLeft-i[3]-1,e=this.plotTop+this.plotHeight+i[2]+1,i=this.plotLeft+this.plotWidth+i[1]+1;var o=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",o,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",o,e],["Z"]]:this.scrollablePixelsY?[["M",n,0],["L",n,this.plotTop-1],["L",
1i,this.plotTop-1],["L",i,0],["Z"],["M",n,l],["L",n,this.chartHeight],["L",i,this.chartHeight],["L",i,l],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},c(e,"afterInit",(function(){this.chart.scrollableDirty=!0})),c(i,"show",(function(){this.chart.scrollableDirty=!0}))})),e(n,"Core/Axis/StackingAxis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=t.getDeferredAnimation,o=n.addEvent,a=n.destroyObjectProperties,c=n.fireEvent,s=n.isNumber,l=n.objectEach;return function(t){function e(){var t=this.stacking;if(t){var e=t.stacks;l(e,(function(t,n){a(t),e[n]=null})),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function n(){this.stacking||(this.stacking=new u(this))}var i=[];t.compose=function(t){return-1===i.indexOf(t)&&(i.push(t),o(t,"init",n),o(t,"destroy",e)),t};var u=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,n=e.series,i=e.options.reversedStacks,r=n.length;if(!e.isXAxis){for(this.usePercentage=!1,t=r;t--;){var o=n[i?t:r-t-1];o.setStackedPoints(),o.setGroupedPoints()}for(t=0;t<r;t++)n[t].modifyStacks();c(e,"afterBuildStacks")}},t.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;l(t,(function(t){l(t,(function(t){t.cumulative=t.total}))}))}},t.prototype.resetStacks=function(){var t=this,e=t.stacks;t.axis.isXAxis||l(e,(function(e){l(e,(function(n,i){s(n.touched)&&n.touched<t.stacksTouched?(n.destroy(),delete e[i]):(n.total=null,n.cumulative=null)}))}))},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,n=e.renderer,i=this.stacks;t=r(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var o=this.stackTotalGroup=this.stackTotalGroup||n.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();o.translate(e.plotLeft,e.plotTop),l(i,(function(t){l(t,(function(t){t.render(o)}))})),o.animate({opacity:1},t)},t}();t.Additions=u}(i||(i={})),i})),e(n,"Extensions/Stacking.js",[n["Core/Axis/Axis.js"],n["Core/Chart/Chart.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Axis/StackingAxis.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a){var c=n.format,s=a.correctFloat,l=a.defined,u=a.destroyObjectProperties,d=a.isArray,h=a.isNumber,f=a.objectEach,p=a.pick,m=function(){function t(t,e,n,i,r){var o=t.chart.inverted;this.axis=t,this.isNegative=n,this.options=e=e||{},this.x=i,this.total=null,this.points={},this.hasValidPoints=!1,this.stack=r,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?n?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":n?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(o?n?"right":"left":"center")}return t.prototype.destroy=function(){u(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,n=this.options,i=n.format;i=i?c(i,this,e):n.formatter.call(this),this.label?this.label.attr({text:i,visibility:"hidden"}):(this.label=e.renderer.label(i,null,null,n.shape,null,null,n.useHTML,!1,"stack-labels"),i={r:n.borderRadius||0,text:i,rotation:n.rotation,padding:p(n.padding,5),visibility:"hidden"},e.styledMode||(i.fill=n.backgroundColor,i.stroke=n.borderColor,i["stroke-width"]=n.borderWidth,this.label.css(n.style)),this.label.attr(i),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY},t.prototype.setOffset=function(t,e,n,i,o){var a=this.axis,c=a.chart;i=a.translate(a.stacking.usePercentage?100:i||this.total,0,0,0,1),n=a.translate(n||0),n=l(i)&&Math.abs(i-n),t=p(o,c.xAxis[0].translate(this.x))+t,a=l(i)&&this.getStackBox(c,this,t,i,e,n,a),e=this.label,n=this.isNegative,t="justify"===p(this.options.overflow,"justify");var s=this.textAlign;e&&a&&(o=e.getBBox(),i=e.padding,s="left"===s?c.inverted?-i:i:"right"===s?o.width:c.inverted&&"center"===s?o.width/2:c.inverted?n?o.width+i:-i:o.width/2,n=c.inverted?o.height/2:n?-i:o.height,this.alignOptions.x=p(this.options.x,0),this.alignOptions.y=p(this.options.y,0),a.x-=s,a.y-=n,e.align(this.alignOptions,null,a),c.isInsidePlot(e.alignAttr.x+s-this.alignOptions.x,e.alignAttr.y+n-this.alignOptions.y)?e.show():(e.alignAttr.y=-9999,t=!1),t&&r.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,e.alignAttr,o,a),e.attr({x:e.alignAttr.x,y:e.alignAttr.y}),p(!t&&this.options.crop,!0)&&((c=h(e.x)&&h(e.y)&&c.isInsidePlot(e.x-i+e.width,e.y)&&c.isInsidePlot(e.x+i,e.y))||e.hide()))},t.prototype.getStackBox=function(t,e,n,i,r,o,a){var c=e.axis.reversed,s=t.inverted,l=a.height+a.pos-(s?t.plotLeft:t.plotTop);return e=e.isNegative&&!c||!e.isNegative&&c,{x:s?e?i-a.right:i-o+a.pos-t.plotLeft:n+t.xAxis[0].transB-t.plotLeft,y:s?a.height-n-r:e?l-i-o:l-i,width:s?o:r,height:s?r:o}},t}();return e.prototype.getStacks=function(){var t=this,e=t.inverted;t.yAxis.forEach((function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}
1)),t.series.forEach((function(n){var i=n.xAxis&&n.xAxis.options||{};!n.options.stacking||!0!==n.visible&&!1!==t.options.chart.ignoreHiddenSeries||(n.stackKey=[n.type,p(n.options.stack,""),e?i.top:i.left,e?i.height:i.width].join())}))},o.compose(t),r.prototype.setGroupedPoints=function(){var t=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?r.prototype.setStackedPoints.call(this,"group"):t&&f(t.stacks,(function(e,n){"group"===n.slice(-5)&&(f(e,(function(t){return t.destroy()})),delete t.stacks[n])}))},r.prototype.setStackedPoints=function(t){var e=t||this.options.stacking;if(e&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var n=this.processedXData,i=this.processedYData,r=[],o=i.length,a=this.options,c=a.threshold,u=p(a.startFromThreshold&&c,0);a=a.stack;var h,f,g="-"+(t=t?this.type+","+e:this.stackKey),y=this.negStacks,v=this.yAxis,b=v.stacking.stacks,x=v.stacking.oldStacks;for(v.stacking.stacksTouched+=1,f=0;f<o;f++){var _=n[f],S=i[f],w=this.getStackIndicator(w,_,this.index),A=w.key,E=(h=y&&S<(u?0:c))?g:t;b[E]||(b[E]={}),b[E][_]||(x[E]&&x[E][_]?(b[E][_]=x[E][_],b[E][_].total=null):b[E][_]=new m(v,v.options.stackLabels,h,_,a)),E=b[E][_],null!==S?(E.points[A]=E.points[this.index]=[p(E.cumulative,u)],l(E.cumulative)||(E.base=A),E.touched=v.stacking.stacksTouched,0<w.index&&!1===this.singleStacks&&(E.points[A][0]=E.points[this.index+","+_+",0"][0])):E.points[A]=E.points[this.index]=null,"percent"===e?(h=h?t:g,y&&b[h]&&b[h][_]?(h=b[h][_],E.total=h.total=Math.max(h.total,E.total)+Math.abs(S)||0):E.total=s(E.total+(Math.abs(S)||0))):"group"===e?(d(S)&&(S=S[0]),null!==S&&(E.total=(E.total||0)+1)):E.total=s(E.total+(S||0)),E.cumulative="group"===e?(E.total||1)-1:p(E.cumulative,u)+(S||0),null!==S&&(E.points[A].push(E.cumulative),r[f]=E.cumulative,E.hasValidPoints=!0)}"percent"===e&&(v.stacking.usePercentage=!0),"group"!==e&&(this.stackedYData=r),v.stacking.oldStacks={}}},r.prototype.modifyStacks=function(){var t,e=this,n=e.stackKey,i=e.yAxis.stacking.stacks,r=e.processedXData,o=e.options.stacking;e[o+"Stacker"]&&[n,"-"+n].forEach((function(n){for(var a,c,s=r.length;s--;)a=r[s],t=e.getStackIndicator(t,a,e.index,n),(c=(a=i[n]&&i[n][a])&&a.points[t.key])&&e[o+"Stacker"](c,a,s)}))},r.prototype.percentStacker=function(t,e,n){e=e.total?100/e.total:0,t[0]=s(t[0]*e),t[1]=s(t[1]*e),this.stackedYData[n]=t[1]},r.prototype.getStackIndicator=function(t,e,n,i){return!l(t)||t.x!==e||i&&t.key!==i?t={x:e,index:0,key:i}:t.index++,t.key=[n,e,t.index].join(),t},i.StackItem=m,i.StackItem})),e(n,"Series/Line/LineSeries.js",[n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n.defined,o=n.merge;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(n,e),n.prototype.drawGraph=function(){var t=this,e=this.options,n=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode,r=[["graph","highcharts-graph"]];i||r[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(r=t.getZonesGraphs(r)).forEach((function(r,o){var a=r[0],c=t[a],s=c?"animate":"attr";c?(c.endX=t.preventGraphAnimation?null:n.xMap,c.animate({d:n})):n.length&&(t[a]=c=t.chart.renderer.path(n).addClass(r[1]).attr({zIndex:1}).add(t.group)),c&&!i&&(a={stroke:r[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},r[3]?a.dashstyle=r[3]:"square"!==e.linecap&&(a["stroke-linecap"]=a["stroke-linejoin"]="round"),c[s](a).shadow(2>o&&e.shadow)),c&&(c.startX=n.xMap,c.isArea=n.isArea)}))},n.prototype.getGraphPath=function(t,e,n){var i,o=this,a=o.options,c=[],s=[],l=a.step,u=(t=t||o.points).reversed;return u&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&u&&(l=4-l),(t=this.getValidPoints(t,!1,!(a.connectNulls&&!e&&!n))).forEac
1h((function(u,d){var h=u.plotX,f=u.plotY,p=t[d-1];(u.leftCliff||p&&p.rightCliff)&&!n&&(i=!0),u.isNull&&!r(e)&&0<d?i=!a.connectNulls:u.isNull&&!e?i=!0:(0===d||i?d=[["M",u.plotX,u.plotY]]:o.getPointSpline?d=[o.getPointSpline(t,u,d)]:l?(d=1===l?[["L",p.plotX,f]]:2===l?[["L",(p.plotX+h)/2,p.plotY],["L",(p.plotX+h)/2,f]]:[["L",h,p.plotY]]).push(["L",h,f]):d=[["L",h,f]],s.push(u.x),l&&(s.push(u.x),2===l&&s.push(u.x)),c.push.apply(c,d),i=!1)})),c.xMap=s,o.graphPath=c},n.prototype.getZonesGraphs=function(t){return this.zones.forEach((function(e,n){n=["zone-graph-"+n,"highcharts-graph highcharts-zone-graph-"+n+" "+(e.className||"")],this.chart.styledMode||n.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(n)}),this),t},n.defaultOptions=o(t.defaultOptions,{}),n}(t),e.registerSeriesType("line",n),n})),e(n,"Series/Area/AreaSeries.js",[n["Core/Color/Color.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=t.parse,a=n.seriesTypes.line;t=i.extend;var c=i.merge,s=i.objectEach,l=i.pick;return i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,n=this.areaPath,i=this.options,r=[["area","highcharts-area",this.color,i.fillColor]];this.zones.forEach((function(t,n){r.push(["zone-area-"+n,"highcharts-area highcharts-zone-area-"+n+" "+t.className,t.color||e.color,t.fillColor||i.fillColor])})),r.forEach((function(t){var r=t[0],a=e[r],c=a?"animate":"attr",s={};a?(a.endX=e.preventGraphAnimation?null:n.xMap,a.animate({d:n})):(s.zIndex=0,(a=e[r]=e.chart.renderer.path(n).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(s.fill=l(t[3],o(t[2]).setOpacity(l(i.fillOpacity,.75)).get())),a[c](s),a.startX=n.xMap,a.shiftUnit=i.step?2:1}))},e.prototype.getGraphPath=function(t){var e,n=a.prototype.getGraphPath,i=this.options,r=i.stacking,o=this.yAxis,c=[],s=[],u=this.index,d=o.stacking.stacks[this.stackKey],h=i.threshold,f=Math.round(o.getThreshold(i.threshold));i=l(i.connectNulls,"percent"===r);var p=function(e,n,i){var a=t[e];e=r&&d[a.x].points[u];var l=a[i+"Null"]||0;if(i=a[i+"Cliff"]||0,a=!0,i||l){var p=(l?e[0]:e[1])+i,m=e[0]+i;a=!!l}else!r&&t[n]&&t[n].isNull&&(p=m=h);void 0!==p&&(s.push({plotX:g,plotY:null===p?f:o.getThreshold(p),isNull:a,isCliff:!0}),c.push({plotX:g,plotY:null===m?f:o.getThreshold(m),doCurve:!1}))};for(t=t||this.points,r&&(t=this.getStackPoints(t)),e=0;e<t.length;e++){r||(t[e].leftCliff=t[e].rightCliff=t[e].leftNull=t[e].rightNull=void 0);var m=t[e].isNull,g=l(t[e].rectPlotX,t[e].plotX),y=r?l(t[e].yBottom,f):f;m&&!i||(i||p(e,e-1,"left"),m&&!r&&i||(s.push(t[e]),c.push({x:e,plotX:g,plotY:y})),i||p(e,e+1,"right"))}return e=n.call(this,s,!0,!0),c.reversed=!0,(y=(m=n.call(this,c,!0,!0))[0])&&"M"===y[0]&&(m[0]=["L",y[1],y[2]]),(m=e.concat(m)).length&&m.push(["Z"]),n=n.call(this,s,!1,i),m.xMap=e.xMap,this.areaPath=m,n},e.prototype.getStackPoints=function(t){var e=this,n=[],i=[],r=this.xAxis,o=this.yAxis,a=o.stacking.stacks[this.stackKey],c={},u=o.series,d=u.length,h=o.options.reversedStacks?1:-1,f=u.indexOf(e);if(t=t||this.points,this.options.stacking){for(var p=0;p<t.length;p++)t[p].leftNull=t[p].rightNull=void 0,c[t[p].x]=t[p];s(a,(function(t,e){null!==t.total&&i.push(e)})),i.sort((function(t,e){return t-e}));var m=u.map((function(t){return t.visible}));i.forEach((function(t,s){var p,g,y=0;if(c[t]&&!c[t].isNull)n.push(c[t]),[-1,1].forEach((function(n){var r=1===n?"rightNull":"leftNull",o=0,l=a[i[s+n]];if(l)for(var y=f;0<=y&&y<d;){var v=u[y].index;(p=l.points[v])||(v===e.index?c[t][r]=!0:m[y]&&(g=a[t].points[v])&&(o-=g[1]-g[0])),y+=h}c[t][1===n?"rightCliff":"leftCliff"]=o}));else{for(var v=f;0<=v&&v<d;){if(p=a[t].points[u[v].index]){y=p[1];break}v+=h}y=l(y,0),y=o.translate(y,0,1,0,1),n.push({isNull:!0,plotX:r.translate(t,0,0,0,1),x:t,plotY:y,yBottom:y})}}))}return n},e.defaultOptions=c(a.defaultOptions,{threshold:0}),e}(a),t(i.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),n.registerSeriesType("area",i),i})),e(n,"Series/Spline/SplineSeries.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),i=t.seriesTypes.line,r=e.merge,o=e.pick;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;
1return e.data=void 0,e.options=void 0,e.points=void 0,e}return n(e,t),e.prototype.getPointSpline=function(t,e,n){var i=e.plotX||0,r=e.plotY||0,a=t[n-1];if(n=t[n+1],a&&!a.isNull&&!1!==a.doCurve&&!e.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!e.isCliff){t=a.plotY||0;var c=n.plotX||0;n=n.plotY||0;var s=0,l=(1.5*i+(a.plotX||0))/2.5,u=(1.5*r+t)/2.5,d=(1.5*r+n)/2.5;(c=(1.5*i+c)/2.5)!==l&&(s=(d-u)*(c-i)/(c-l)+r-d),d+=s,(u+=s)>t&&u>r?d=2*r-(u=Math.max(t,r)):u<t&&u<r&&(d=2*r-(u=Math.min(t,r))),d>n&&d>r?u=2*r-(d=Math.max(n,r)):d<n&&d<r&&(u=2*r-(d=Math.min(n,r))),e.rightContX=c,e.rightContY=d}return e=["C",o(a.rightContX,a.plotX,0),o(a.rightContY,a.plotY,0),o(l,i,0),o(u,r,0),i,r],a.rightContX=a.rightContY=void 0,e},e.defaultOptions=r(i.defaultOptions),e}(i),t.registerSeriesType("spline",e),e})),e(n,"Series/AreaSpline/AreaSplineSeries.js",[n["Series/Area/AreaSeries.js"],n["Series/Spline/SplineSeries.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=t.prototype,c=r.extend,s=r.merge;return c((r=function(n){function i(){var t=null!==n&&n.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return o(i,n),i.defaultOptions=s(e.defaultOptions,t.defaultOptions),i}(e)).prototype,{getGraphPath:a.getGraphPath,getStackPoints:a.getStackPoints,drawGraph:a.drawGraph,drawLegendSymbol:n.drawRectangle}),i.registerSeriesType("areaspline",r),r})),e(n,"Series/Column/ColumnSeries.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a){var c=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=t.animObject,l=e.parse,u=n.hasTouch;t=n.noop;var d=a.clamp,h=a.css,f=a.defined,p=a.extend,m=a.fireEvent,g=a.isArray,y=a.isNumber,v=a.merge,b=a.pick,x=a.objectEach;return a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return c(e,t),e.prototype.animate=function(t){var e=this,n=this.yAxis,i=e.options,r=this.chart.inverted,o={},a=r?"translateX":"translateY";if(t)o.scaleY=.001,t=d(n.toPixels(i.threshold),n.pos,n.pos+n.len),r?o.translateX=t-n.len:o.translateY=t,e.clipBox&&e.setClip(),e.group.attr(o);else{var c=Number(e.group.attr(a));e.group.animate({scaleY:1},p(s(e.options.animation),{step:function(t,i){e.group&&(o[a]=c+i.pos*(n.pos-c),e.group.attr(o))}}))}},e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments);var i=this;(e=i.chart).hasRendered&&e.series.forEach((function(t){t.type===i.type&&(t.isDirty=!0)}))},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,n=t.xAxis,i=t.yAxis,r=n.options.reversedStacks;r=n.reversed&&!r||!n.reversed&&r;var o,a={},c=0;!1===e.grouping?c=1:t.chart.series.forEach((function(e){var n=e.yAxis,r=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&i.len===n.len&&i.pos===n.pos){if(r.stacking&&"group"!==r.stacking){o=e.stackKey,void 0===a[o]&&(a[o]=c++);var s=a[o]}else!1!==r.grouping&&(s=c++);e.columnIndex=s}}));var s=Math.min(Math.abs(n.transA)*(n.ordinal&&n.ordinal.slope||e.pointRange||n.closestPointRange||n.tickInterval||1),n.len),l=s*e.groupPadding,u=(s-2*l)/(c||1);return e=Math.min(e.maxPointWidth||n.len,b(e.pointWidth,u*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(u-e)/2+(l+((t.columnIndex||0)+(r?1:0))*u-s/2)*(r?-1:1),paddedWidth:u,columnCount:c},t.columnMetrics},e.prototype.crispCol=function(t,e,n,i){var r=this.chart,o=this.borderWidth,a=-(o%2?.5:0);return o=o%2?.5:1,r.inverted&&r.renderer.isVML&&(o+=1),this.options.crisp&&(n=Math.round(t+n)+a,n-=t=Math.round(t)+a),i=Math.round(e+i)+o,a=.5>=Math.abs(e)&&.5<i,i-=e=Math.round(e)+o,a&&i&&(--e,i+=1),{x:t,y:e,width:n,height:i}},e.prototype.adjustForMissingColumns=function(t,e,n,i){var r=this,o=this.options.stacking;if(!n.isNull&&1<i.columnCount){var a=0,c=0;x(this.yAxis.stacking&&this.yAxis.stacking.stacks,(function(t){if("number"==typeof n.x&&(t=t[n.x.toString()])){var e=t.points[r.index],i=t.total;o?(e&&(a=c),t.hasValidPoints&&c++):g(e)&&(a=e[1],c=i||0)}})),t=(n.plotX||0)+((c-1)*i.paddedWidth+e)/2-e-a*i.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,n=t.options,i=t.dense=2>t.closestPointRange*t.xAxis.transA;i=t.borderWidth=b(n.borderWidth,i?0:1);var o=t.xAxis,a=t.yAxis,c=n.threshold,s=t.translatedThreshold=a.getThreshold(c),l=b(n.minPointLength,5),u=t.getColumnMetrics(),h=u.width,p=t.pointXOffset=u.offset,m=t.dataMin,g=t.dataMax,v=t.barW=Math.max(h,1+2*i);e.inverted&&(s-=.5),n.pointPadding&&(v=Math.ceil(v)),r.prototype.translate.apply(t),t.points.forEac
1h((function(i){var r=b(i.yBottom,s),x=999+Math.abs(r),_=i.plotX||0;x=d(i.plotY,-x,a.len+x);var S=Math.min(x,r),w=Math.max(x,r)-S,A=h,E=_+p,L=v;l&&Math.abs(w)<l&&(w=l,_=!a.reversed&&!i.negative||a.reversed&&i.negative,y(c)&&y(g)&&i.y===c&&g<=c&&(a.min||0)<c&&(m!==g||(a.max||0)<=c)&&(_=!_),S=Math.abs(S-s)>l?r-l:s-(_?l:0)),f(i.options.pointWidth)&&(A=L=Math.ceil(i.options.pointWidth),E-=Math.round((A-h)/2)),n.centerInCategory&&(E=t.adjustForMissingColumns(E,A,i,u)),i.barX=E,i.pointWidth=A,i.tooltipPos=e.inverted?[d(a.len+a.pos-e.plotLeft-x,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),o.len+o.pos-e.plotTop-E-L/2,w]:[o.left-e.plotLeft+E+L/2,d(x+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),w],i.shapeType=t.pointClass.prototype.shapeType||"rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[E,s,L,0]:[E,S,L,w])}))},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var n=this.options,i=this.pointAttrToOptions||{},r=i.stroke||"borderColor",o=i["stroke-width"]||"borderWidth",a=t&&t.color||this.color,c=t&&t[r]||n[r]||a;i=t&&t.options.dashStyle||n.dashStyle;var s=t&&t[o]||n[o]||this[o]||0,u=b(t&&t.opacity,n.opacity,1);if(t&&this.zones.length){var d=t.getZone();a=t.options.color||d&&(d.color||t.nonZonedColor)||this.color,d&&(c=d.borderColor||c,i=d.dashStyle||i,s=d.borderWidth||s)}return e&&t&&(e=(t=v(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||void 0!==e&&l(a).brighten(t.brightness).get()||a,c=t[r]||c,s=t[o]||s,i=t.dashStyle||i,u=b(t.opacity,u)),r={fill:a,stroke:c,"stroke-width":s,opacity:u},i&&(r.dashstyle=i),r},e.prototype.drawPoints=function(){var t,e=this,n=this.chart,i=e.options,r=n.renderer,o=i.animationLimit||250;e.points.forEach((function(a){var c=a.graphic,s=!!c,l=c&&n.pointCount<o?"animate":"attr";y(a.plotY)&&null!==a.y?(t=a.shapeArgs,c&&a.hasNewShapeType()&&(c=c.destroy()),e.enabledDataSorting&&(a.startXPos=e.xAxis.reversed?-(t&&t.width||0):e.xAxis.width),c||(a.graphic=c=r[a.shapeType](t).add(a.group||e.group))&&e.enabledDataSorting&&n.hasRendered&&n.pointCount<o&&(c.attr({x:a.startXPos}),s=!0,l="animate"),c&&s&&c[l](v(t)),i.borderRadius&&c[l]({r:i.borderRadius}),n.styledMode||c[l](e.pointAttribs(a,a.selected&&"select")).shadow(!1!==a.allowShadow&&i.shadow,null,i.stacking&&!i.borderRadius),c&&(c.addClass(a.getClassName(),!0),c.attr({visibility:a.visible?"inherit":"hidden"}))):c&&(a.graphic=c.destroy())}))},e.prototype.drawTracker=function(){var t,e=this,n=e.chart,i=n.pointer,r=function(t){var e=i.getPointFromEvent(t);void 0!==e&&(i.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach((function(e){t=g(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach((function(t){t.div?t.div.point=e:t.element.point=e}))})),e._hasTracking||(e.trackerGroups.forEach((function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",r).on("mouseout",(function(t){i.onTrackerMouseOut(t)})),u&&e[t].on("touchstart",r),!n.styledMode&&e.options.cursor&&e[t].css(h).css({cursor:e.options.cursor}))})),e._hasTracking=!0),m(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)})),r.prototype.remove.apply(t,arguments)},e.defaultOptions=v(r.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}),e}(r),p(a.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:i.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),o.registerSeriesType("column",a),a})),e(n,"Core/Series/DataLabel.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=t.getDeferredAnimation,o=e.format,a=n.defined,c=n.extend,s=n.fireEvent,l=n.isArray,u=n.merge,d=n.objectEach,h=n.pick,f=n.splat;return function(t){function e(t,e,n,i,r){var o=this,a=this.chart,s=this.isCartesian&&a.inverted,l=this.enabledDataSorting,u=h(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),d=h(t.plotY,-9999),f=e.getBBox(),p=n.rotation,m=n.align,g=a.isInsidePlot(u,Math.round(d),{inverted:s,paneCoordinates:!0,series:o}),y=function(n){l&&o.xAxis&&!v&&o.setDataLabelStartPos(t,e,r,g,n)},v="justify"===h(n.overflow,l?"none":"justify"),b=this.visible&&!1!==t.visible&&(t.series.forceDL||l&&!v||g||h(n.inside,!!this.options.stacking)&&i&&a.isInsidePlot(u,s?i.x+1:i.y+i.height-1,{inverted:s,paneCoordinates:!0,series:o}));if(b){var x=a.renderer.fontMetrics(a.styledMode?void 0:n.style.fontSize,e).b;i=c({x:s?this.yAxis.len-d:u,y:Math.round(s?this.xAxis.len-u:d),width:0,height:0},i),c(n,{width:f.width,height:f.height}),p?(v=!1,u=a.renderer.rotCorr(x,p),y(u={x:i.x+(n.x||0)+i.width/2+u.x,y:i.y+(n.y||0)+{top:0,middle:.5,bottom:1}[n.verticalAlign]*i.height}),e[r?"attr":"animate"](u).attr({align:m}),y=180<(y=(p+720)%360)&&360>
1y,"left"===m?u.y-=y?f.height:0:"center"===m?(u.x-=f.width/2,u.y-=f.height/2):"right"===m&&(u.x-=f.width,u.y-=y?0:f.height),e.placed=!0,e.alignAttr=u):(y(i),e.align(n,void 0,i),u=e.alignAttr),v&&0<=i.height?this.justifyDataLabel(e,n,u,f,i,r):h(n.crop,!0)&&(b=a.isInsidePlot(u.x,u.y,{paneCoordinates:!0,series:o})&&a.isInsidePlot(u.x+f.width,u.y+f.height,{paneCoordinates:!0,series:o})),n.shape&&!p&&e[r?"attr":"animate"]({anchorX:s?a.plotWidth-t.plotY:t.plotX,anchorY:s?a.plotHeight-t.plotX:t.plotY})}r&&l&&(e.placed=!1),b||l&&!v||(e.hide(!0),e.placed=!1)}function n(){var t=this,e=t.chart,n=t.options,i=t.points,c=t.hasRendered||0,u=e.renderer,m=n.dataLabels,g=m.animation;if(g=m.defer?r(e,g,t):{defer:0,duration:0},m=p(p(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[t.type]&&e.options.plotOptions[t.type].dataLabels),m),s(this,"drawDataLabels"),l(m)||m.enabled||t._hasPointLabels){var y=t.plotGroup("dataLabelsGroup","data-labels",c?"inherit":"hidden",m.zIndex||6);y.attr({opacity:+c}),!c&&(c=t.dataLabelsGroup)&&(t.visible&&y.show(!0),c[n.animation?"animate":"attr"]({opacity:1},g)),i.forEach((function(i){f(p(m,i.dlOptions||i.options&&i.options.dataLabels)).forEach((function(r,c){var s=r.enabled&&(!i.isNull||i.dataLabelOnNull)&&function(t,e){var n=e.filter;return!n||(e=n.operator,t=t[n.property],n=n.value,">"===e&&t>n||"<"===e&&t<n||">="===e&&t>=n||"<="===e&&t<=n||"=="===e&&t==n||"==="===e&&t===n)}(i,r),l=i.connectors?i.connectors[c]:i.connector,f=i.dataLabels?i.dataLabels[c]:i.dataLabel,p=h(r.distance,i.labelDistance),m=!f;if(s){var g=i.getLabelConfig(),v=h(r[i.formatPrefix+"Format"],r.format);g=a(v)?o(v,g,e):(r[i.formatPrefix+"Formatter"]||r.formatter).call(g,r),v=r.style;var b=r.rotation;e.styledMode||(v.color=h(r.color,v.color,t.color,"#000000"),"contrast"===v.color?(i.contrastColor=u.getContrast(i.color||t.color),v.color=!a(p)&&r.inside||0>p||n.stacking?i.contrastColor:"#000000"):delete i.contrastColor,n.cursor&&(v.cursor=n.cursor));var x={r:r.borderRadius||0,rotation:b,padding:r.padding,zIndex:1};e.styledMode||(x.fill=r.backgroundColor,x.stroke=r.borderColor,x["stroke-width"]=r.borderWidth),d(x,(function(t,e){void 0===t&&delete x[e]}))}!f||s&&a(g)&&!!f.div==!!r.useHTML||(i.dataLabel=f=i.dataLabel&&i.dataLabel.destroy(),i.dataLabels&&(1===i.dataLabels.length?delete i.dataLabels:delete i.dataLabels[c]),c||delete i.dataLabel,l&&(i.connector=i.connector.destroy(),i.connectors&&(1===i.connectors.length?delete i.connectors:delete i.connectors[c]))),s&&a(g)&&(f?x.text=g:(i.dataLabels=i.dataLabels||[],f=i.dataLabels[c]=b?u.text(g,0,-9999,r.useHTML).addClass("highcharts-data-label"):u.label(g,0,-9999,r.shape,null,null,r.useHTML,null,"data-label"),c||(i.dataLabel=f),f.addClass(" highcharts-data-label-color-"+i.colorIndex+" "+(r.className||"")+(r.useHTML?" highcharts-tracker":""))),f.options=r,f.attr(x),e.styledMode||f.css(v).shadow(r.shadow),f.added||f.add(y),r.textPath&&!r.useHTML&&(f.setTextPath(i.getDataLabelPath&&i.getDataLabelPath(f)||i.graphic,r.textPath),i.dataLabelPath&&!r.textPath.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy())),t.alignDataLabel(i,f,r,null,m))}))}))}s(this,"afterDrawDataLabels")}function i(t,e,n,i,r,o){var a=this.chart,c=e.align,s=e.verticalAlign,l=t.box?0:t.padding||0,u=e.x;u=void 0===u?0:u;var d=e.y;d=void 0===d?0:d;var h=(n.x||0)+l;if(0>h){"right"===c&&0<=u?(e.align="left",e.inside=!0):u-=h;var f=!0}return(h=(n.x||0)+i.width-l)>a.plotWidth&&("left"===c&&0>=u?(e.align="right",e.inside=!0):u+=a.plotWidth-h,f=!0),0>(h=n.y+l)&&("bottom"===s&&0<=d?(e.verticalAlign="top",e.inside=!0):d-=h,f=!0),(h=(n.y||0)+i.height-l)>a.plotHeight&&("top"===s&&0>=d?(e.verticalAlign="bottom",e.inside=!0):d+=a.plotHeight-h,f=!0),f&&(e.x=u,e.y=d,t.placed=!o,t.align(e,void 0,r)),f}function p(t,e){var n,i=[];if(l(t)&&!l(e))i=t.map((function(t){return u(t,e)}));else if(l(e)&&!l(t))i=e.map((function(e){return u(t,e)}));else if(l(t)||l(e))for(n=Math.max(t.length,e.length);n--;)i[n]=u(t[n],e[n]);else i=u(t,e);return i}function m(t,e,n,i,r){var o=this.chart,a=o.inverted,c=this.xAxis,s=c.reversed,l=a?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=a?r.x:s?-l-t:c.width-l+t,e.startYPos=a?s?this.yAxis.height-l+t:-l-t:r.y,i?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}
1).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(n&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var g=[];t.compose=function(t){if(-1===g.indexOf(t)){var r=t.prototype;g.push(t),r.alignDataLabel=e,r.drawDataLabels=n,r.justifyDataLabel=i,r.setDataLabelStartPos=m}}}(i||(i={})),i})),e(n,"Series/Column/ColumnDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=e.series,o=n.merge,a=n.pick;return function(e){function n(t,e,n,i,c){var s=this.chart.inverted,l=t.series,u=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var d=t.dlBox||t.shapeArgs,h=a(t.below,t.plotY>a(this.translatedThreshold,l)),f=a(n.inside,!!this.options.stacking);d&&(0>(i=o(d)).y&&(i.height+=i.y,i.y=0),0<(d=i.y+i.height-l)&&d<i.height&&(i.height-=d),s&&(i={x:l-i.y-i.height,y:u-i.x-i.width,width:i.height,height:i.width}),f||(s?(i.x+=h?0:i.width,i.width=0):(i.y+=h?i.height:0,i.height=0))),n.align=a(n.align,!s||f?"center":h?"right":"left"),n.verticalAlign=a(n.verticalAlign,s||f?"middle":h?"top":"bottom"),r.prototype.alignDataLabel.call(this,t,e,n,i,c),n.inside&&t.contrastColor&&e.css({color:t.contrastColor})}var i=[];e.compose=function(e){t.compose(r),-1===i.indexOf(e)&&(i.push(e),e.prototype.alignDataLabel=n)}}(i||(i={})),i})),e(n,"Series/Bar/BarSeries.js",[n["Series/Column/ColumnSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n.extend,o=n.merge;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(n,e),n.defaultOptions=o(t.defaultOptions,{}),n}(t),r(n.prototype,{inverted:!0}),e.registerSeriesType("bar",n),n})),e(n,"Series/Scatter/ScatterSeries.js",[n["Series/Column/ColumnSeries.js"],n["Series/Line/LineSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=i.addEvent,a=i.extend,c=i.merge;return a((i=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(n,t),n.prototype.applyJitter=function(){var t=this,e=this.options.jitter,n=this.points.length;e&&this.points.forEach((function(i,r){["x","y"].forEach((function(o,a){var c="plot"+o.toUpperCase();if(e[o]&&!i.isNull){var s=t[o+"Axis"],l=e[o]*s.transA;if(s&&!s.isLog){var u=Math.max(0,i[c]-l);s=Math.min(s.len,i[c]+l),a=1e4*Math.sin(r+a*n),i[c]=u+(s-u)*(a-Math.floor(a)),"x"===o&&(i.clientX=i.plotX)}}}))}))},n.prototype.drawGraph=function(){this.options.lineWidth?t.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},n.defaultOptions=c(e.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">â</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),n}(e)).prototype,{drawTracker:t.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),o(i,"afterTranslate",(function(){this.applyJitter()})),n.registerSeriesType("scatter",i),i})),e(n,"Series/CenteredUtilities.js",[n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=t.deg2rad,o=n.isNumber,a=n.pick,c=n.relativeLength;return function(t){t.getCenter=function(){var t=this.options,n=this.chart,i=2*(t.slicedOffset||0),r=n.plotWidth-2*i,o=n.plotHeight-2*i,s=t.center,l=Math.min(r,o),u=t.size,d=t.innerSize||0;for("string"==typeof u&&(u=parseFloat(u)),"string"==typeof d&&(d=parseFloat(d)),t=[a(s[0],"50%"),a(s[1],"50%"),a(u&&0>u?void 0:t.size,"100%"),a(d&&0>d?void 0:t.innerSize||0,"0%")],!n.angular||this instanceof e||(t[3]=0),s=0;4>s;++s)u=t[s],n=2>s||2===s&&/%$/.test(u),t[s]=c(u,[r,o,l,t[2]][s])+(n?i:0);return t[3]>t[2]&&(t[3]=t[2]),t},t.getStartAndEndRadians=function(t,e){return t=o(t)?t:0,e=o(e)&&e>t&&360>e-t?e:t+360,{start:r*(t+-90),end:r*(e+-90)}}}(i||(i={})),i})),e(n,"Series/Pie/PiePoint.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=t.setAnimation,o=n.addEvent,a=n.defined;t=n.extend;var c=n.isNumber,s=n.pick,l=n.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;
1return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return i(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,n=this.connectorShapes,i=e.connectorShape;return n[i]&&(i=n[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=s(this.name,"Slice");var n=function(t){e.slice("select"===t.type)};return o(this,"select",n),o(this,"unselect",n),this},e.prototype.isValid=function(){return c(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var n=this,i=this.series,r=i.chart,o=i.options.ignoreHiddenPoint;e=s(e,o),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,i.options.data[i.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){n[e]&&n[e][t?"show":"hide"](t)})),this.legendItem&&r.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),o&&(i.isDirty=!0),e&&r.redraw())},e.prototype.slice=function(t,e,n){var i=this.series;r(n,i.chart),s(e,!0),this.sliced=this.options.sliced=a(t)?t:!this.sliced,i.options.data[i.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,n){var i=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],n.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*i.x-e.x,2*i.y-e.y,i.x,i.y]:["L",i.x,i.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,n){e=e.touchingSliceAt;var i=this.series,r=i.center[0],o=i.chart.plotWidth,a=i.chart.plotLeft;i=t.alignment;var c=this.shapeArgs.r;return n=l(n.crookDistance,1),n=["L",o="left"===i?r+c+(o+a-r-c)*(1-n):a+(r-c)*n,t.y],r=!0,("left"===i?o>t.x||o<e.x:o<t.x||o>e.x)&&(r=!1),t=[["M",t.x,t.y]],r&&t.push(n),t.push(["L",e.x,e.y]),t}}}),e})),e(n,"Series/Pie/PieSeries.js",[n["Series/CenteredUtilities.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Series/Pie/PiePoint.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,c,s){var l=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=t.getStartAndEndRadians;n=n.noop;var d=s.clamp,h=s.extend,f=s.fireEvent,p=s.merge,m=s.pick,g=s.relativeLength;return s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return l(e,t),e.prototype.animate=function(t){var e=this,n=e.points,i=e.startAngleRad;t||n.forEach((function(t){var n=t.graphic,r=t.shapeArgs;n&&r&&(n.attr({r:m(t.startR,e.center&&e.center[3]/2),start:i,end:i}),n.animate({r:r.r,start:r.start,end:r.end},e.options.animation))}))},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,n=this.options;if(0===this.total&&this.center){var i=this.center[0],r=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(i,r,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:c.arc(i,r,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||"none",stroke:n.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;
1this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,n){var i=this.center,r=this.radii?this.radii[n.index]||0:i[2]/2;return t=Math.asin(d((t-i[1])/(r+n.labelDistance),-1,1)),i[0]+(e?-1:1)*Math.cos(t)*(r+n.labelDistance)+(0<n.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,n,i,r=this,o=r.chart,a=o.renderer,c=r.options.shadow;this.drawEmpty(),!c||r.shadowGroup||o.styledMode||(r.shadowGroup=a.g("shadow").attr({zIndex:-1}).add(r.group)),r.points.forEach((function(s){var l={};if(e=s.graphic,!s.isNull&&e){var u=void 0;i=s.shapeArgs,t=s.getTranslate(),o.styledMode||(u=s.shadowGroup,c&&!u&&(u=s.shadowGroup=a.g("shadow").add(r.shadowGroup)),u&&u.attr(t),n=r.pointAttribs(s,s.selected&&"select")),s.delayedRendering?(e.setRadialReference(r.center).attr(i).attr(t),o.styledMode||e.attr(n).attr({"stroke-linejoin":"round"}).shadow(c,u),s.delayedRendering=!1):(e.setRadialReference(r.center),o.styledMode||p(!0,l,n),p(!0,l,i,t),e.animate(l)),e.attr({visibility:s.visible?"inherit":"hidden"}),e.addClass(s.getClassName(),!0)}else e&&(s.graphic=e.destroy())}))},e.prototype.sortByAngle=function(t,e){t.sort((function(t,n){return void 0!==t.angle&&(n.angle-t.angle)*e}))},e.prototype.translate=function(t){this.generatePoints();var e=this.options,n=e.slicedOffset,i=n+(e.borderWidth||0),r=u(e.startAngle,e.endAngle),o=this.startAngleRad=r.start;r=(this.endAngleRad=r.end)-o;var a=this.points,c=e.dataLabels.distance;e=e.ignoreHiddenPoint;var s,l=a.length,d=0;for(t||(this.center=t=this.getCenter()),s=0;s<l;s++){var h=a[s],p=o+d*r;!h.isValid()||e&&!h.visible||(d+=h.percentage/100);var y=o+d*r,v={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*p)/1e3,end:Math.round(1e3*y)/1e3};h.shapeType="arc",h.shapeArgs=v,h.labelDistance=m(h.options.dataLabels&&h.options.dataLabels.distance,c),h.labelDistance=g(h.labelDistance,v.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,h.labelDistance),(y=(y+p)/2)>1.5*Math.PI?y-=2*Math.PI:y<-Math.PI/2&&(y+=2*Math.PI),h.slicedTranslation={translateX:Math.round(Math.cos(y)*n),translateY:Math.round(Math.sin(y)*n)},v=Math.cos(y)*t[2]/2;var b=Math.sin(y)*t[2]/2;h.tooltipPos=[t[0]+.7*v,t[1]+.7*b],h.half=y<-Math.PI/2||y>Math.PI/2?1:0,h.angle=y,p=Math.min(i,h.labelDistance/5),h.labelPosition={natural:{x:t[0]+v+Math.cos(y)*h.labelDistance,y:t[1]+b+Math.sin(y)*h.labelDistance},final:{},alignment:0>h.labelDistance?"center":h.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+v+Math.cos(y)*p,y:t[1]+b+Math.sin(y)*p},touchingSliceAt:{x:t[0]+v,y:t[1]+b}}}}f(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,n=e.length,i=this.options.ignoreHiddenPoint,r=0;for(t=0;t<n;t++){var o=e[t];!o.isValid()||i&&!o.visible||(r+=o.y)}for(this.total=r,t=0;t<n;t++)(o=e[t]).percentage=0<r&&(o.visible||!i)?o.y/r*100:0,o.total=r},e.defaultOptions=p(o.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),e}(o),h(s.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:i.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:n,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:r,requireSorting:!1,searchPoint:n,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",s),s})),e(n,"Series/Pie/PieDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o,a=e.noop,c=n.distribute,s=i.series,l=r.arrayMax,u=r.clamp,d=r.defined,h=r.merge,f=r.pick,p=r.relativeLength;return function(e){function n(){var t,e,n,i,r,o,a,u,p,m,g,y,v=this,b=v.data,x=v.chart,_=v.options.dataLabels||{},S=_.connectorPadding,w=x.plotWidth,A=x.plotHeight,E=x.plotLeft,L=Math.round(x.chartWidth/3),k=v.center,C=k[2]/2,T=k[1],M=[[],[]],q=[0,0,0,0],I=v.dataLabelPositioners;v.visible&&(_.enabled||v._hasPointLabels)&&(b.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),s.prototype.drawDataLabels.apply(v),b.forEach((function(t){t.dataLabel&&(t.visible?(M[t.half].push(t),t.dataLabel._pos=null,!d(_.style.width)&&!d(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>L&&(t.dataLabel.css({width:Math.round(.7*L)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),M.forEach((function(e,n){var s,l=e.length,h=[];if(l){if(v.sortByAngle(e,n-.5),0<v.maxLabelDistance){var b=Math.max(0,T-C-v.maxLabelDistance),L=Math.min(T+C+v.maxLabelDistance,x.plotHeight);e.forEach((function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,T-C-t.labelDistance),t.bottom=Math.min(T+C+t.labelDistance,x.plotHeight),s=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+s/2,size:s,rank:t.y},h.push(t.distributeBox))})),c(h,b=L+s-b,b/5)}for(g=0;g<l;g++){if(t=e[g],o=t.labelPosition,i=t.dataLabel,m=!1===t.visible?"hidden":"inherit",p=b=o.natural.y,h&&d(t.distributeBox)&&(void 0===t.distributeBox.pos?m="hidden":(a=t.distributeBox.size,p=I.radialDistributionY(t))),delete t.positionIndex,_.justify)u=I.justify(t,C,k);
1else switch(_.alignTo){case"connectors":u=I.alignToConnectors(e,n,w,E);break;case"plotEdges":u=I.alignToPlotEdges(i,n,w,E);break;default:u=I.radialDistributionX(v,t,p,b)}i._attr={visibility:m,align:o.alignment},y=t.options.dataLabels||{},i._pos={x:u+f(y.x,_.x)+({left:S,right:-S}[o.alignment]||0),y:p+f(y.y,_.y)-10},o.final.x=u,o.final.y=p,f(_.crop,!0)&&(r=i.getBBox().width,b=null,u-r<S&&1===n?(b=Math.round(r-u+S),q[3]=Math.max(b,q[3])):u+r>w-S&&0===n&&(b=Math.round(u+r-w+S),q[1]=Math.max(b,q[1])),0>p-a/2?q[0]=Math.max(Math.round(a/2-p),q[0]):p+a/2>A&&(q[2]=Math.max(Math.round(p+a/2-A),q[2])),i.sideOverflow=b)}}})),0===l(q)||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach((function(t){var r;(y=h(_,t.options.dataLabels),e=f(y.connectorWidth,1))&&(n=t.connector,(i=t.dataLabel)&&i._pos&&t.visible&&0<t.labelDistance?(m=i._attr.visibility,(r=!n)&&(t.connector=n=x.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(v.dataLabelsGroup),x.styledMode||n.attr({"stroke-width":e,stroke:y.connectorColor||t.color||"#666666"})),n[r?"attr":"animate"]({d:t.getConnectorPath()}),n.attr("visibility",m)):n&&(t.connector=n.destroy()))})))}function i(){this.points.forEach((function(t){var e,n=t.dataLabel;n&&t.visible&&((e=n._pos)?(n.sideOverflow&&(n._attr.width=Math.max(n.getBBox().width-n.sideOverflow,0),n.css({width:n._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),n.shortened=!0),n.attr(n._attr),n[n.moved?"animate":"attr"](e),n.moved=!0):n&&n.attr({y:-9999})),delete t.distributeBox}),this)}function r(t){var e=this.center,n=this.options,i=n.center,r=n.minSize||80,o=null!==n.size;if(!o){if(null!==i[0])var a=Math.max(e[2]-Math.max(t[1],t[3]),r);else a=Math.max(e[2]-t[1]-t[3],r),e[0]+=(t[3]-t[1])/2;null!==i[1]?a=u(a,r,e[2]-Math.max(t[0],t[2])):(a=u(a,r,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),a<e[2]?(e[2]=a,e[3]=Math.min(p(n.innerSize||0,a),a),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):o=!0}return o}var o=[],m={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,n,i){return t.getX(n<e.top+2||n>e.bottom-2?i:n,e.half,e)},justify:function(t,e,n){return n[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,n,i){return t=t.getBBox().width,e?t+i:n-t-i},alignToConnectors:function(t,e,n,i){var r,o=0;return t.forEach((function(t){(r=t.dataLabel.getBBox().width)>o&&(o=r)})),e?o+i:n-o-i}};e.compose=function(e){t.compose(s),-1===o.indexOf(e)&&(o.push(e),(e=e.prototype).dataLabelPositioners=m,e.alignDataLabel=a,e.drawDataLabels=n,e.placeDataLabels=i,e.verifyDataLabelOverflow=r)}}(o||(o={})),o})),e(n,"Extensions/OverlappingDataLabels.js",[n["Core/Chart/Chart.js"],n["Core/Utilities.js"]],(function(t,e){function n(t,e){var n=!1;if(t){var i=t.newOpacity;t.oldOpacity!==i&&(t.alignAttr&&t.placed?(t[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),n=!0,t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,(function(){e.styledMode||t.css({pointerEvents:i?"auto":"none"})})),r(e,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0}return n}var i=e.addEvent,r=e.fireEvent,o=e.isArray,a=e.isNumber,c=e.objectEach,s=e.pick;i(t,"render",(function(){var t=this,e=[];(this.labelCollectors||[]).forEach((function(t){e=e.concat(t())})),(this.yAxis||[]).forEach((function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&c(t.stacking.stacks,(function(t){c(t,(function(t){t.label&&"hidden"!==t.label.visibility&&e.push(t.label)}))}))})),(this.series||[]).forEach((function(i){var r=i.options.dataLabels;i.visible&&(!1!==r.enabled||i._hasPointLabels)&&((r=function(i){return i.forEach((function(i){i.visible&&(o(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[]).forEach((function(r){var o=r.options;r.labelrank=s(o.labelrank,i.labelrank,i.shapeArgs&&i.shapeArgs.height),o.allowOverlap?(r.oldOpacity=r.opacity,r.newOpacity=1,n(r,t)):e.push(r)}))}))})(i.nodes||[]),r(i.points))})),this.hideOverlappingLabels(e)})),t.prototype.hideOverlappingLabels=function(t){var e,i,o,c=this,s=t.length,l=c.renderer,u=!1,d=function(t){var e,n,i=t.box?0:t.padding||0,r=e=0;if(t&&(!t.alignAttr||t.placed)){var o=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},c=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=l.fontMetrics(null,t.element).h);
1var s=t.width-2*i;return(n={left:"0",center:"0.5",right:"1"}[t.alignValue])?r=+n*s:a(t.x)&&Math.round(t.x)!==t.translateX&&(r=t.x-t.translateX),{x:o.x+(c.translateX||0)+i-(r||0),y:o.y+(c.translateY||0)+i-e,width:t.width-2*i,height:t.height-2*i}}};for(i=0;i<s;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=d(e));for(t.sort((function(t,e){return(e.labelrank||0)-(t.labelrank||0)})),i=0;i<s;i++){var h=(d=t[i])&&d.absoluteBox;for(e=i+1;e<s;++e){var f=(o=t[e])&&o.absoluteBox;!h||!f||d===o||0===d.newOpacity||0===o.newOpacity||f.x>=h.x+h.width||f.x+f.width<=h.x||f.y>=h.y+h.height||f.y+f.height<=h.y||((d.labelrank<o.labelrank?d:o).newOpacity=0)}}t.forEach((function(t){n(t,c)&&(u=!0)})),u&&r(c,"afterHideAllOverlappingLabels")}})),e(n,"Core/Responsive.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.extend,i=t.find,r=t.isArray,o=t.isObject,a=t.merge,c=t.objectEach,s=t.pick,l=t.splat,u=t.uniqueKey;return function(t){var e=[];t.compose=function(t){return-1===e.indexOf(t)&&(e.push(t),n(t.prototype,d.prototype)),t};var d=function(){function t(){}return t.prototype.currentOptions=function(t){var e=this,n={};return function t(n,i,a,s){var u;c(n,(function(n,c){if(!s&&-1<e.collectionsWithUpdate.indexOf(c)&&i[c])for(n=l(n),a[c]=[],u=0;u<Math.max(n.length,i[c].length);u++)i[c][u]&&(void 0===n[u]?a[c][u]=i[c][u]:(a[c][u]={},t(n[u],i[c][u],a[c][u],s+1)));else o(n)?(a[c]=r(n)?[]:{},t(n,i[c]||{},a[c],s+1)):a[c]=void 0===i[c]?null:i[c]}))}(t,this.options,n,0),n},t.prototype.matchResponsiveRule=function(t,e){var n=t.condition;(n.callback||function(){return this.chartWidth<=s(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=s(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=s(n.minWidth,0)&&this.chartHeight>=s(n.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var n=this,r=this.options.responsive,o=this.currentResponsive,c=[];
1!e&&r&&r.rules&&r.rules.forEach((function(t){void 0===t._id&&(t._id=u()),n.matchResponsiveRule(t,c)}),this),(e=a.apply(void 0,c.map((function(t){return i((r||{}).rules||[],(function(e){return e._id===t}))})).map((function(t){return t&&t.chartOptions})))).isResponsiveOptions=!0,(c=c.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,t,!0),c?((o=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:c,mergedOptions:e,undoOptions:o},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e})),e(n,"masters/highcharts.src.js",[n["Core/Globals.js"],n["Core/Utilities.js"],n["Core/DefaultOptions.js"],n["Core/Animation/Fx.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/FormatUtilities.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Renderer/HTML/HTMLElement.js"],n["Core/Renderer/HTML/HTMLRenderer.js"],n["Core/Axis/Axis.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Axis/LogarithmicAxis.js"],n["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],n["Core/Axis/Tick.js"],n["Core/Tooltip.js"],n["Core/Series/Point.js"],n["Core/Pointer.js"],n["Core/MSPointer.js"],n["Core/Legend/Legend.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Series/Column/ColumnSeries.js"],n["Series/Column/ColumnDataLabel.js"],n["Series/Pie/PieSeries.js"],n["Series/Pie/PieDataLabel.js"],n["Core/Series/DataLabel.js"],n["Core/Responsive.js"],n["Core/Color/Color.js"],n["Core/Time.js"]],(function(t,e,n,i,r,o,a,c,s,l,u,d,h,f,p,m,g,y,v,b,x,_,S,w,A,E,L,k,C,T,M,q,I){return t.animate=r.animate,t.animObject=r.animObject,t.getDeferredAnimation=r.getDeferredAnimation,t.setAnimation=r.setAnimation,t.stop=r.stop,t.timers=i.timers,t.AST=o,t.Axis=h,t.Chart=S,t.chart=S.chart,t.Fx=i,t.Legend=_,t.PlotLineOrBand=m,t.Point=v,t.Pointer=x.isRequired()?x:b,t.Series=w,t.SVGElement=s,t.SVGRenderer=l,t.Tick=g,t.Time=I,t.Tooltip=y,t.Color=q,t.color=q.parse,d.compose(l),u.compose(s),t.defaultOptions=n.defaultOptions,t.getOptions=n.getOptions,t.time=n.defaultTime,t.setOptions=n.setOptions,t.dateFormat=a.dateFormat,t.format=a.format,t.numberFormat=a.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=c.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=A.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,L.compose(E),T.compose(w),f.compose(h),p.compose(h),C.compose(k),m.compose(h),M.compose(S),t})),n["masters/highcharts.src.js"]._modules=n,n["masters/highcharts.src.js"]}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n(0);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={filteredData:"",ratesResponse:{},getRatesResponse:function(t,e){c.ratesResponse[t]=e,t===i.H?c.updateReslDataWithKeys(t):t===i.G&&c.updateGicDataWithKeys(t)},updateReslDataWithKeys:function(t){var e=c.ratesResponse[t],n=["PostedRate","CeilingBPSCnt","SpecialRate","APR Value","PostedRateEnabled"],i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e),r=function(t){var r=function(r){var o={};n.forEach((function(n,i){o[n]=e[t][r][i]})),i[t][r]=o};for(var o in e[t])r(o)};for(var s in e)r(s)},getReslProductKeys:function(t,e){return c.ratesResponse[e][t]},getReslRatioDetails:function(t,e,n){return"true"===e?c.filteredData=c.getReslProductKeys(t,n).highRatio:"false"===e&&(c.filteredData=c.getReslProductKeys(t,n).nonHighRatio),c.filteredData},updateGicDataWithKeys:function(t){var e=c.ratesResponse[t],n=[];e.value.forEach((function(t,i){var r={};e.key.forEach((function(e,o){r[e]=t[o],n[i]=r}))})),c.ratesResponse[t]=n},getGicProductDetails:function(t,e){var n,i=t.replaceAll("|",",");return i=i.replace(/([a-zA-Z0-9-]+):([a-zA-Z0-9.]+)/g,'"$1":"$2"'),i=JSON.parse("{"+i+"}"),c.ratesResponse[e].filter((n=i,function(t){return Object.keys(n).every((function(e){return t[e]===n[e]||Array.isArray(n[e])&&n[e].includes(t[e])||"object"===r(n[e])&&+n[e].min<=t[e]&&t[e]<=+n[e].max||"function"==typeof n[e]&&n[e](t[e])}))}))},getGicValueDetails:function(t,e,n){var i=c.getGicProductDetails(t,n).pop();return i=null==i?"":i[e]}}},function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var i={addCardLabel:"Add another card to compare",addCardLinkLabel:"Add another card",addCardImgAltText:"Card type placeholder text",addCardShortLabel:"Add card",addCardUrl:"/en/credit-cards/browse-credit-card-categories/",addProductImg:"/etc.clientlibs/tdsite/clientlibs/clientlib-sapphire/resources/images/compare--add-new-product-sapphire.png"},r='\n\t<div class="cmp-flex-comparison-table__offer"></div>\n\t<div class="cmp-flex-comparison-table__prod-title cmp-flex-comparison-table__prod-title-color cmp-text">\n\t\t<span class="flex-comparison-span-heading">\n\t\t\t<a href="#">\n\t\t\t'.concat(i.addCardLabel,'\n\t\t\t</a>\n\t\t</span>\n\t</div>\n\t<div class="cmp-flex-comparison-table__prod-image">\n\t\t<a class="add-another" href="').concat(i.addCardUrl,'" aria-label="').concat(i.addCardLinkLabel,'">\n\t\t\t<img src="').concat(i.addProductImg,'"\n\t\t\t alt="').concat(i.addCardImgAltText,'" />\n\t\t</a>\n\t</div>\n'),o='\n\t<div class="cmp-flex-comparison-table__prod-title-color cmp-text">\n\t\t<span class="flex-comparison-span-heading">\n\t\t\t<a href="https://www.mbna.ca/en/credit-cards/compare-credit-cards/">\n\t\t\t\t'.concat(i.addCardLabel,'\n\t\t\t</a>\n\t\t</span>\n\t</div>\n\t<a class="cmp-button btnStyles" href="').concat(i.addCard,'">\n\t\t<span class="cmp-button__text">').concat(i.addCardShortLabel,"</span>\n\t</a>\n"),a='\n\t<a class="cmp-button btnStyles" href="'.concat(i.addCard,'">\n\t\t<span class="cmp-button__text">').concat(i.addCardShortLabel,"</span>\n\t</a>\n")},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));var i={activeTabIndex:"activeTabIndex"},r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";sessionStorage.setItem(t,e)},o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return sessionStorage.getItem(t)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var i=n(4),r=n(0),o=n(1),a={init:function(){var t=document.querySelectorAll(".".concat("cmp-simplified-compare-product",":not([data-component-state='initialized'])"));t.length>0&&(t.forEach((function(t){t.querySelectorAll(".simplifiedCompareProduct").forEach((function(t){!function(t){var e=t.getAttribute("data-cardId"),n=t.getAttribute("data-cardType"),r=t.querySelector(".cmp-simplified-compare-product__card--title h2"),o=t.querySelector(".cmp-simplified-compare-product__card--indicator-view");r.setAttribute("id",n+"_"+e+"_title");var a=t.querySelector(".cmp-simplified-compare-product__card--action-link a");if(a){a.setAttribute("aria-describedby",n+"_"+e+"_title");var c=t.querySelector(".cmp-simplified-compare-product__card--action-mode a");c&&(c.setAttribute("aria-describedby",n+"_"+e+"_title"),i.a.checkRecent(e,n)&&o.classList.add("show"))}}(t),t.setAttribute("data-component-state","initialized")}))})),s(),window.addEventListener("tabchange",(function(){setTimeout(c,0)})))}},c=function(){var t=document.querySelectorAll(".cmp-simplified-compare-product");
1if(window.innerWidth>=r.l.SM){if(!t)return;t.forEach((function(t){var e=t.querySelector(".cmp-simplified-compare-product__container");Object(o.e)(".cmp-simplified-compare-product__card--title",".simplifiedCompareProduct",e.id),Object(o.e)(".cmp-simplified-compare-product__card--info-img",".simplifiedCompareProduct",e.id),Object(o.e)(".cmp-simplified-compare-product__card--info-content",".simplifiedCompareProduct",e.id),Object(o.e)(".cmp-simplified-compare-product__card--action-link .linkWrap",".simplifiedCompareProduct",e.id),Object(o.e)(".cmp-simplified-compare-product__card--indicator-Wrap",".simplifiedCompareProduct",e.id),Object(o.e)(".simplifiedCompareProduct:not(.hidden) .cmp-simplified-compare-product__card--title",".simplifiedCompareProduct:not(.hidden)",e.id),Object(o.e)(".simplifiedCompareProduct:not(.hidden) .cmp-simplified-compare-product__card--info-img",".simplifiedCompareProduct:not(.hidden)",e.id),Object(o.e)(".simplifiedCompareProduct:not(.hidden) .cmp-simplified-compare-product__card--info-content",".simplifiedCompareProduct:not(.hidden)",e.id),Object(o.e)(".simplifiedCompareProduct:not(.hidden) .cmp-simplified-compare-product__card--action-link .linkWrap",".simplifiedCompareProduct:not(.hidden)",e.id),Object(o.e)(".simplifiedCompareProduct:not(.hidden) .cmp-simplified-compare-product__card--indicator-Wrap",".simplifiedCompareProduct:not(.hidden)",e.id)}))}};function s(){var t=document.querySelectorAll(".cmp-simplified-compare-product");t.length>0&&t.forEach((function(t){var e=t.querySelectorAll(".simplifiedCompareProduct:not(.hidden)"),n=t.querySelector(".cmp-simplified-compare-product__container");null!==n&&(e.length<=2?n.classList.add("alignCenterItem"):n.classList.remove("alignCenterItem"))}))}"loading"!==document.readyState?a().init():document.addEventListener("DOMContentLoaded",a.init),["load","resize"].forEach((function(t){"resize"===t?window.addEventListener(t,(function(){c()})):window.addEventListener(t,Object(o.a)((function(){c()})),1500)}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return v}));var i=n(0),r=n(3),o=n(2),a=geoLocationLang;function c(t,e){var n=t.querySelector("#fundSearchAPIdata"),c=""!==m(n)?m(n):{},l={searchInput:t.querySelector(".".concat(e,"__search-input")),searchSuggestionBox:t.querySelector(".".concat(e,"__suggestion-dropdown")),dropdownInputSearchBtn:t.querySelector(".".concat(e,"__suggestion-button .cmp-button")),noResultsBox:t.querySelector(".".concat(e,"__no-results")),resultsCount:t.querySelector(".results-count"),mfTotalCount:t.querySelector(".mf-total-count"),etfTotalCount:t.querySelector(".etf-total-count"),mutualSuggestions:t.querySelector(".".concat(e,"__mutual-suggestions")),etfSuggestions:t.querySelector(".".concat(e,"__etf-suggestions")),accordionContainer:t.querySelector(".".concat(e,"__accordion-container"))},d=new URLSearchParams(window.location.search).get("term");l.searchInput&&l.searchInput.addEventListener("keyup",(function(t){t.preventDefault(),t.keyCode===i.m.ENTER?function(t,e,n,r,c){if(t){if(n===r){var s="";return a===i.n?s="".concat(i.S.en.search_result,"?lang=en&term=").concat(v(Object(o.g)(t),!1)):a===i.o&&(s="".concat(i.S.fr.search_result,"?lang=fr&term=").concat(v(Object(o.g)(t),!1))),void y(s,!1)}Object(o.b)(c.searchSuggestionBox,!0,!1),u(t,e,c,r)}}(this.value,c,"cmp-fund-search",e,l):c.displayAutoSuggestion&&function(t,e,n,c){var l="";a===i.n?l="".concat(e.fundSuggestionEn,"&term="):a===i.o&&(l="".concat(e.fundSuggestionFr,"&term="));!function(t,e,n,i,a,c){t.length>=n.minSearchLength?(t=v(t,!0),Object(r.a)(e+Object(o.g)(t),"GET",i,o.callbackError,{},c,a,a.searchSuggestionBox,n.noOfSuggestionToDisplay,a.noResultsBox)):p(a)}(t,l,e,s,n,c)}(this.value,c,l,e)})),l.dropdownInputSearchBtn&&l.dropdownInputSearchBtn.addEventListener("click",(function(){!function(t,e,n,r){if(r.searchInput.value)if(t===e){var c="";a===i.n?c="".concat(i.S.en.search_result,"?lang=en&term=").concat(v(Object(o.g)(r.searchInput.value),!1)):a===i.o&&(c="".concat(i.S.fr.search_result,"?lang=fr&term=").concat(v(Object(o.g)(r.searchInput.value),!1))),y(c,!1)}else Object(o.b)(r.searchSuggestionBox,!0,!1),u(r.searchInput.value,n,r,e)}("cmp-fund-search",e,c,l)})),function(t){document.addEventListener("blur",(function(e){e.relatedTarget||Ob
1ject(o.b)(t.searchSuggestionBox,!0,!1)}),!0)}(l),function(t,e,n,i){t?(function(t,e){e.searchInput.focus(),e.searchInput.value=decodeURIComponent(t)}(t=t.replace(/-/g," "),e),u(decodeURIComponent(t),i,e,n)):Object(o.b)(e.accordionContainer,!1,!1,!0)}(d,l,e,c)}function s(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";p(n),i&&o&&l(t,e,n,i,r,o)}function l(t,e,n,r,c,s){0!==t.length?t.forEach((function(t,n){if(n<c){Object(o.j)(r);var s=document.createElement("button");s.classList.add("".concat(e,"__suggestion-item"));var l,u=t.value.split("#"),d=r.appendChild(s);d.innerHTML=Object(i.Q)(t.label),d.setAttribute("data-id",u[0]),l=function(t){var e="";a===i.n?t[1]===i.q?e=f("".concat(i.S.en.fund_mf),t[0],t[2]):t[1]===i.j&&(e=f("".concat(i.S.en.fund_etf),t[0],t[2])):a===i.o&&(t[1]===i.q?e=f("".concat(i.S.fr.fund_mf),t[0],t[2]):t[1]===i.j&&(e=f("".concat(i.S.fr.fund_etf),t[0],t[2])));return e}(u),d.addEventListener("mousedown",(function(t){y(l,!0)})),d.addEventListener("keyup",(function(t){t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||y(l,!0)}))}})):(g(s.id,!1,n),Object(o.j)(s))}function u(t,e,n,c){var s="";a===i.n?s="".concat(e.fundResultsEn,"?term="):a===i.o&&(s="".concat(e.fundResultsFr,"?term=")),function(t,e,n,i,a){var c=v(t,!0);Object(r.a)(e+Object(o.g)(c),"GET",d,o.callbackError,{},t,n,i,a)}(t,s,e,n,c)}function d(t,e,n,r,c){r.resultsCount&&r.mfTotalCount&&r.etfTotalCount&&r.mutualSuggestions&&r.etfSuggestions&&r.accordionContainer&&(function(t){Object(o.b)(t.resultsCount,!0,!1,!1),Object(o.b)(t.mfTotalCount,!0,!1,!1),Object(o.b)(t.etfTotalCount,!0,!1,!1),Object(o.b)(t.mutualSuggestions,!0,!1,!1),Object(o.b)(t.etfSuggestions,!0,!1,!1)}(r),function(t,e,n,r,c){if(0!==t.length){Object(o.j)(r.accordionContainer);var s=0,l="",u="";a===i.n?(l=n.mutualFundEn,u=n.etfFundEn):a===i.o&&(l=n.mutualFundFr,u=n.etfFundFr),t.forEach((function(t,n){t.Name===l?(s=t.Count,r.mfTotalCount.innerHTML=Object(i.Q)(t.Count),function(t,e,n,r){t.Funds.forEach((function(t){var o=t.value.split("#"),c="";a===i.n?c=f("".concat(i.S.en.fund_mf),o[0],o[2]):a===i.o&&(c=f("".concat(i.S.fr.fund_mf),o[0],o[2])),h(e.mutualSuggestions,c,o[0],t.label,n,r)}))}(t,r,e,c)):t.Name===u&&(s+=t.Count,r.etfTotalCount.innerHTML=Object(i.Q)(t.Count),function(t,e,n,r){t.Funds.forEach((function(t){var o=t.value.split("#"),c="";a===i.n?c=f("".concat(i.S.en.fund_etf),o[0],o[2]):a===i.o&&(c=f("".concat(i.S.fr.fund_etf),o[0],o[2])),h(e.etfSuggestions,c,o[0],t.label,n,r)}))}(t,r,e,c))})),r.resultsCount.innerHTML=Object(i.Q)(s)}}(t,e,n,r,c))}function h(t,e,n,r,o,a){var c=document.createElement("li"),s=t.appendChild(c),l=document.createElement("a"),u=s.appendChild(l);u.classList.add("".concat(a,"__link")),u.setAttribute("href","#"),u.setAttribute("data-id",n),u.innerHTML=Object(i.Q)(function(t,e){var n=new RegExp("("+e+")","ig");return t.replace(n,"<strong>$1</strong>")+'<span class="td-icon td-icon-rightCaret" aria-hidden="true"></span>'}(r,o)),u.addEventListener("mousedown",(function(t){t.preventDefault(),y(e,!0)})),u.addEventListener("keyup",(function(t){t.preventDefault(),t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||y(e,!0)}))}function f(t,e,n){return"".concat(t,"/?fundId=").concat(Object(o.g)(e),"&fundname=").concat(v(Object(o.g)(n),!1))}function p(t){Object(o.b)(t.searchSuggestionBox,!0,!1),Object(o.b)(t.noResultsBox,!1,!1),g("",!0,t)}function m(t){var e="";if(t)return Object(o.h)(t.value)&&(e=JSON.parse(t.value)),e}function g(t,e,n){n.noResultsBox&&n.searchInput&&(n.noResultsBox.setAttribute("aria-hidden",e),n.searchInput.setAttribute("aria-describedby",t))}function y(t,e){window.open(t,"_self")}function v(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?t.replace(/\s+/g,"+"):t.replace(/\s+/g,"-").replace(/-{2,}/g,"-")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n(0),r=n(4),o=n(17),a=n(1);function c(t,e,n,c,s,l,u,d,h,f,p,m,g,y,v,b,x,_,S,w,A){var E="",L="",k="",C="",T="";if(s){E="#"+l,L=s,(k=document.querySelector("#"+u))&&(k.addEventListener("click",(function(t){document.querySelector(E).style.display="none",L.value="",k.style.display="none",k.setAttribute("tabindex","-1"),k.setAttribute("aria-hidden","true"),M&&(M.style.display="none"),document.querySelectorAll(".cmp-mb-navigation-header__suggestion-dropdown")&&B()})),k.addEventListener("keyup",(function(t){t.keyCode!=i.m.ENTER&&t.keyCode!=i.m.SPACE||(document.querySelector(E).style.display="none",L.value="",k.style.display="none",k.setAttribute("tabindex","-1"),k.setAttribute("aria-hidden","true"),M&&(M.style.display="none"),document.querySelectorAll(".cmp-mb-navigation-header__suggestion-dropdown")&&B())})));var M=document.querySelector(".cmp-mb-navbar__search-backlink");M&&(M.style.display="none",M.addEventListener("click",(function(t){document.querySelector(E).style.display="none",L.value="",M.style.display="none",k.style.display="none",k.setAttribute("tabindex","-1"),k.setAttribute("aria-hidden","true"),B()})),M.addEventListener("keyup",(function(t){t.keyCode!=i.m.ENTER&&t.keyCode!=i.m.SPACE||(document.querySelector(E).style.display="none",L.value="",M.style.display="none",k.style.display="none",k.setAttribute("tabindex","-1"),k.setAttribute("aria-hidden","true"),B())}))),window.addEventListener("click",(function(t){if(document.querySelector(E)){var e=t.target.classList.contains("cmp-primary-header__search-box"),n=t.target.classList.contains("cmp-mb-navbar__search-input"),i=t.target.classList.contains("cmp-global-search-result__suggestion-dropdown"),r=t.target.classList.contains("cmp-global-search-result--search-Section--in
1put"),o=t.target.classList.contains("cmp-primary-header__search-input"),a=t.target.classList.contains("cmp-global-search-result--filter-tabs"),c=t.target.classList.contains("cmp-global-search-results--list-item"),s=t.target.classList.contains("cmp-global-search-result__suggestion-dropdown-container"),l=t.target.classList.contains("cmp-global-list-item-suggestion"),u=t.target.classList.contains("cmp-search-close-button"),d=t.target.classList.contains("cmp-search-clock"),h=t.target.classList.contains("cmp-gsr-recentsearchdesc"),f=t.target.classList.contains("cmp-search-media-icon"),p=t.target.classList.contains("cmp-global-search-result-title-parent"),m=t.target.classList.contains("cmp-global-search-result-title"),g=t.target.classList.contains("cmp-search-right-caret"),y=t.target.classList.contains("cmp-global-search-see-all-results"),v=t.target.classList.contains("cmp-global-search-see-all-results-anchor"),b=t.target.classList.contains("cmp-search-see-all-link"),x=t.target.classList.contains("close-btn-icon");e||n||i||r||o||a||c||s||l||u||d||h||f||p||m||g||y||v||b||x||document.querySelector(E)&&(document.querySelector(E).style.display="none")}})),s.addEventListener("keyup",(function(r){if(r.target.value.length?(k.style.display="block",k.setAttribute("tabindex","0"),k.setAttribute("aria-hidden","false")):(_&&(k.style.display="none",k.setAttribute("tabindex","-1"),k.setAttribute("aria-hidden","true")),N()),r.target.value.length>2){M&&(M.style.display="block");var a=document.querySelector(E);a&&(a.innerHTML="",function(r,a){a.innerHTML="";var l=document.createElement("ol");l.setAttribute("role","tablist"),l.setAttribute("aria-label",b),l.classList.add("cmp-global-search-result--filter-tabs"),r.forEach((function(i){var r=document.createElement("li");r.setAttribute("role","tab");var a=i.categoryTag+"search-tab-suggestion";r.setAttribute("id",a),r.setAttribute("aria-selected","false"),r.setAttribute("tabindex","-1"),r.innerHTML=i.categoryLabel,r.classList.add("cmp-global-search-results--list-item"),l.appendChild(r),r.addEventListener("click",(function(r){C=i.
1categoryTag,T=i.categoryLabel,I(a,l),o.a.getSearchResult(t,s.value,n,c,e,i.categoryTag,null,null,O,H)}))})),I(C+"search-tab-suggestion",l),function(t){for(var e=t.getElementsByTagName("li"),n=function(t){e[t].addEventListener("focus",(function(n){e[t].addEventListener("keydown",(function(n){if(n.keyCode===i.m.ARROW_RIGHT||n.keyCode===i.m.ARROW_LEFT||n.keyCode===i.m.ARROW_UP||n.keyCode===i.m.ARROW_DOWN){var r=e[t];if(n.keyCode===i.m.ARROW_RIGHT||n.keyCode===i.m.ARROW_DOWN){var o=r.nextElementSibling;o.focus();var a=o.getAttribute("id");document.getElementById(a).click()}else{var c=r.previousElementSibling;c.focus();var s=c.getAttribute("id");document.getElementById(s).click()}}n.keyCode!==i.m.TAB||n.shiftKey||n.target.parentElement.nextElementSibling&&"cmp-global-search-error"==n.target.parentElement.nextElementSibling.id&&document.querySelector(E)&&(document.querySelector(E).style.display="none")}))}))},r=0;r<e.length;r++)n(r)}(l),a.appendChild(l)}(f,a)),C?o.a.getSearchResult(t,r.target.value,n,c,e,C,null,null,O,H):(C=f[0].categoryTag,T=f[0].categoryLabel,o.a.getSearchResult(t,r.target.value,n,c,e,"",null,null,O,H))}})),s.addEventListener("focus",(function(t){console.log(1,"focus called",t),t.target.value.length<=0&&N()}),!0),s.addEventListener("focus",(function(t){console.log(2,"focus called",t),s.addEventListener("keydown",(function(t){if(t.keyCode===i.m.TAB&&t.shiftKey){if(document.querySelector(".cmp-primary-header__search-container")&&(document.querySelector(".cmp-primary-header__search-container").style.display="none"),document.querySelector(E)&&(document.querySelector(E).style.display="none"),document.querySelector(".cmp-primary-header_left")&&document.querySelector(".cmp-primary-header_left").setAttribute("aria-hidden",!1),document.querySelector(".cmp-primary-header_right")&&document.querySelector(".cmp-primary-header_right").setAttribute("aria-hidden",!1),document.querySelector(".cmp-primary-header__search-container")&&(document.querySelector(".cmp-primary-header__search-container").style.display="none"),document.querySelector(".cmp-primary-header__search"))document.querySelector(".cmp-primary-header__menu--login").querySelector(".cmp-primary-header__menu-item--hide-label").focus();if(s&&(s.value=""),document.querySelectorAll(".cmp-primary-header__menu-link"))document.querySelectorAll(".cmp-primary-header__menu-link").forEach((function(t){t.removeAttribute("tabindex")}))}var e;t.keyCode===i.m.ENTER&&(e=C?"".concat(h,"?query=").concat(R(t.target.value),"&tab=").concat(R(C)):"".concat(h,"?query=").concat(R(t.target.value)),window.location.href=e)}))})),g&&(g.addEventListener("keyup",(function(t){var e;t.keyCode===i.m.ENTER&&(e=C?"".concat(h,"?query=").concat(R(s.value),"&tab=").concat(R(C)):"".concat(h,"?query=").concat(R(s.value)),window.location.href=e)})),g.addEventListener("click",(function(t){var e;e=C?"".concat(h,"?query=").concat(R(s.value),"&tab=").concat(R(C)):"".concat(h,"?query=").concat(R(s.value)),window.location.href=e})))}function q(t){var e=t.getElementsByTagName("li"),n=e[e.length-1].querySelector(".cmp-search-close-button");n&&(console.log(n,"got into last close button"),n.addEventListener("blur",(function(t){console.log("called last blur")})),n.addEventListener("focus",(function(e){n.addEventListener("keydown",(function(e){if(console.log("keydown event",e),e.keyCode===i.m.TAB&&!e.shiftKey)if(e.preventDefault(),t.parentElement.classList.contains("cmp-mb-navigation-header__suggestion-dropdown")){var n=t.parentElement.classList.contains("cmp-mb-navigation-header__suggestion-dropdown"),r=document.querySelector("#cmp_mobile_primary_navigation").querySelector(".cmp-mb-navbar__menu-close");r&&n&&(console.log(r),setTimeout((function(){r.focus(),document.querySelector(E)&&(document.querySelector(E).style.display="none")}),0))}else{var o=document.querySelector(".cmp-primary-header__close-button");o&&(console.log(o),setTimeout((function(){o.focus(),document.querySelector(E)&&(document.querySelector(E).style.display="none")}),50))}}))})))}function I(t,e){e.querySelectorAll("li").forEach((function(e){e.getAttribute("id")==t?(e.classList.add("active-global-search-result-tab"),e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")):(e.classList.remove("active-global-search-result-tab"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false"))}))}function O(t){var e=t.results;if(e&&t.searchWord==s.value&&t.tabSelection==C){if(e.length>0){var n=document.querySelector(E);if(n){var r;if(n.style.display="block",n.classList.contains("hidden")&&n.classList.remove("hidden"),document.querySelector("#cmp-global-search-see-all-results"))document.querySelector("#cmp-global-search-see-all-results").remove();if(document.querySelector("#cmp-global-search-error"))document.querySelector("#cmp-global-search-error").remove();document.querySelector("#cmp-global-search-suggestion-list-search")?(r=document.querySelector("#cmp-global-search-suggestion-list-search")).innerHTML="":((r=document.createElement("ul")).classList.add("cmp-global-search-result__suggestion-dropdown-container"),r.setAttribute("id","cmp-global-search-suggestion-list-search"),r.setAttribute("aria-label",y)),e.forEach((function(t){var e="",o="",c="",s="",l="",u="";
1if(t.properties.forEach((function(t){"title"==t.id&&(e=t.data[0].value.str,o=a.g.decodeHtmlEntity(t.data[0].html)),"action_0"==t.id?c=t.data[0].value.href:"InsightsType"===t.id?l=t.data[0].value.str?t.data[0].value.str:"":"extension"===t.id&&(u="pdf"===t.data[0].value.str)})),l){var d;console.log(l),""!=(d=function(t){console.log("Mindbreeze IconName",t);var e="";return A.forEach((function(n){console.log("SearchIconsList",n.iconName),n.iconName===t&&(e=n.iconClass,console.log(e))})),e}(l))&&(s="td-icon td-icon-"+d+" cmp-search-media-icon")}u&&(s="td-icon td-icon-pdf cmp-search-media-icon");var h=document.createElement("li");h.innerHTML='<span style="visibility:'+(""==s?"hidden":"visible")+'" class="'+s+'" aria-hidden="true"></span> <p class="cmp-global-search-result-title-parent"><a tabindex="0" role="button" class="cmp-global-search-result-title" target="'+(u?"_blank":"_self")+'">'+o+'</a> <span class="td-icon td-icon-rightCaret cmp-search-right-caret" aria-hidden="true" style="color:#038203"></span></p>',h.classList.add("cmp-global-list-item-suggestion"),h.addEventListener("click",(function(t){P(e),L.value=e,n.style.display="none";var i,r=c;i=e,window.tms_tag=window.tms_tag||[],tms_tag.push({event:"linkClick",link:{name:i,type:"link",product:"tdgis:public",searchFilters:T}}),u?window.open(r,"_blank"):window.location.href=r})),h.addEventListener("keyup",(function(t){if(t.keyCode==i.m.ENTER||t.keyCode==i.m.SPACE){P(e),L.value=e,n.style.display="none";var r=c;u?window.open(r,"_blank"):window.location.href=r}})),r.appendChild(h)})),n.appendChild(r);var o=document.createElement("div");o.setAttribute("id","cmp-global-search-see-all-results"),o.classList.add("cmp-global-search-see-all-results");var c,l=document.createElement("a");l.classList.add("cmp-global-search-see-all-results-anchor"),l.innerHTML=m+' <span class="td-icon td-icon-rightCaret cmp-search-see-all-link" style="margin:0px;text-decoration:none" aria-hidden="true"></span>',c=C?"".concat(h,"?query=").concat(R(s.value),"&tab=").concat(R(C)):"".concat(h,"?query=").concat(R(s.value)),l.setAttribute("href",c),o.appendChild(l),n.appendChild(o);var u=document.querySelector(".cmp-global-search-see-all-results-anchor");u&&(u.addEventListener("keydown",(function(t){if(t.keyCode===i.m.TAB&&!t.shiftKey){if(document.querySelectorAll(".cmp-mb-navigation-header__suggestion-dropdown")){var e=document.querySelectorAll(".cmp-mb-navbar__menu-close");e&&e.forEach((function(t){setTimeout((function(){t.focus()}),50)}))}else{var n=document.querySelectorAll(".cmp-primary-header__close-button");n&&n.forEach((function(t){setTimeout((function(){t.focus()}),50)}))}document.querySelector(E)&&(document.querySelector(E).style.display="none")}})),u.addEventListener("touchend",(function(t){console.log("It called touchend")})),u.addEventListener("touchforcechange",(function(t){console.log("It called touchforcechange")})),u.addEventListener("touchmove",(function(t){console.log("It called touchmove")})),u.addEventListener("touchcancel",(function(t){console.log("It called touchcancel")}))),q(r)}}}else{var d=document.querySelector(E);if(d&&t.searchWord==s.value&&t.tabSelection==C){if(d.style.display="block",d.classList.contains("hidden")&&d.classList.remove("hidden"),document.querySelector("#cmp-global-search-suggestion-list-search"))document.querySelector("#cmp-global-search-suggestion-list-search").innerHTML="";if(document.querySelector("#cmp-global-search-see-all-results"))document.querySelector("#cmp-global-search-see-all-results").remove();if(document.querySelector("#cmp-global-search-error")){var f=document.querySelector("#cmp-global-search-error");f.innerHTML=p+"<p>"+S+"</p>",d.appendChild(f)}else{var g=document.createElement("div");g.setAttribute("id","cmp-global-search-error"),g.setAttribute("aria-live","assertive"),g.innerHTML=p+"<p>"+S+"</p>",d.appendChild(g)}}}if(document.querySelectorAll(".cmp-mb-navigation-header__suggestion-dropdown")){var v=document.querySelectorAll(".cmp-mb-navigation-header__suggestion-dropdown"),b=document.querySelector(".nav-level-1"),x=document.querySelector(".cmp-bottom-menu");v.forEach((function(t){if(x){var e="height:"+b.clientHeight+"px";t.setAttribute("style",e)}})),D()}}function P(t){var e=r.a.localStorageGetItem("recentList"),n=[];if(n.push(t),e)for(var i=0;i<4&&!(i>=e.length);i++)e[i]!==t&&n.push(e[i]);r.a.localStorageSetItem("recentList",n)}function N(){var t=r.a.localStorageGetItem("recentList");if(t.length>0){var e=document.querySelector(E);if(e){e.innerHTML="",e.style.display="block",e.classList.contains("hidden")&&e.classList.remove("hidden");var n=document.createElement("ul"),o=document.createElement("p");if(o.innerHTML=w,o.classList.add("cmp-global-search-result__recent-visits"),n.classList.add("cmp-global-search-result__suggestion-dropdown-container"),n.appendChild(o),n.setAttribute("aria-label",v),t.forEach((function(t){var e=document.createElement("li");e.classList.add("cmp-global-list-item-suggestion"),e.innerHTML='<span aria-hidden="true" class="cmp-search-clock td-icon td-icon-clock" aria-label="clock icon"></span><span tabindex=0 class="cmp-gsr-recentsearchdesc" aria-label="'+t+'"role="button">'+t+'</span><button class="cmp-search-close-button" aria-label="'+x+'" role="button"><span class="td-icon td-icon-close close-btn-icon"></span></button>',e.addEventListener("click",(function(e){if(console.log(e.target.classList),e.target.classList.contains("td-icon-close")||e.target.classList.contains("cmp-search-close-button"))e.preventDefault();else{var n="".concat(h,"?query=").concat(R(t));window.location.href=n}})),e.addEventListener("keyup",(function(e){if(e.keyCode==i.m.ENTER||e.keyCode==i.m.SPACE)if(e.target.classList.contains("td-icon-close")||e.target.classList.contains("cmp-search-close-button"))e.preventDefault();else{console.log(e.target.classList);var n="".concat(h,"?query=").concat(R(t));window.location.href=n}}));var r=e.querySelector(".cmp-search-close-button");r.addEventListener("click",(function(e){j(t)})),r.addEventListener("keyup",(function(e){e.keyCode!=i.m.ENTER&&e.keyCode!=i.m.SPACE||j(t)})),n.appendChild(e)})),e.appendChild(n),q(n),document.querySelectorAll(".cmp-mb-navigation-header__suggestion-dropdown")){var a=document.querySelectorAll(".cmp-mb-navigation-header__suggestion-dropdown"),c=document.querySelector(".nav-level-1"),l=d
1ocument.querySelector(".cmp-bottom-menu");a.forEach((function(t){if(l){var e="height:"+c.clientHeight+"px";t.setAttribute("style",e)}})),D()}}}else{var u=document.querySelector(E);u&&(u.innerHTML="",u.style.display="none",u.classList.add("hidden"))}s&&s.focus()}function D(){if(document.querySelector(".nav-level-1")){var t=document.querySelector(".nav-level-1").querySelectorAll("li");t&&t.forEach((function(t){t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t.style.display="none"}))}}function B(){if(document.querySelector(".nav-level-1")){var t=document.querySelector(".nav-level-1").querySelectorAll("li");t&&t.forEach((function(t){t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden"),t.style.display="block"}))}}function j(t){var e=r.a.localStorageGetItem("recentList"),n=e.indexOf(t);e.splice(n,1),r.a.localStorageSetItem("recentList",e),N()}function R(t){for(var e=new Array("&","'","Œ","œ","Š","š","Ÿ","ˆ","˜","–","—","‘","’","‚","“","”","„","†","‡","…","‰","‹","›","€","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","ø","ù","ú","û","ü","ý","þ","ÿ","¡","¤","¢","£","¥","¦","§","¨","©","ª","«","¬","®","™","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","×","÷"),n=new Array("&","'","Å","Å","Å ","Å¡","Ÿ","Ë","Ë","â","â","â","â","â","â","â","â","â ","â¡","â¦","â°","â¹","âº","â¬","Ã","Ã","Ã","Ã","Ã","Ã
","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","à ","á","â","ã","ä","Ã¥","æ","ç","è","é","ê","ë","ì","Ã","î","ï","ð","ñ","ò","ó","ô","õ","ö","ø","ù","ú","û","ü","ý","þ","ÿ","¡","¤","¢","£","Â¥","¦","§","¨","©","ª","«","¬","®","â¢","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","Ã","÷"),i=0;i<e.length;i++){var r=new RegExp(e[i],"g");t=t.replace(r,n[i])}return t}function H(t){console.log("error",t);var e=document.querySelector(E);if(e)if(document.querySelector("#cmp-global-search-error")){var n=document.querySelector("#cmp-global-search-error");n.innerHTML=p+"<p>"+S+"</p>",e.appendChild(n)}else{var i=document.createElement("div");i.setAttribute("id","cmp-global-search-error"),i.innerHTML=p+"<p>"+S+"</p>",e.appendChild(i)}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(8);function r(t,e,n){document.querySelectorAll("[data-view='table-rte']").forEach((function(r){var o=r.getAttribute("data-prodname"),a=r.getAttribute("data-tbody"),c=r.getAttribute("data-thead").split(","),s=a.split(",");t===o&&i.a.appendRteTableData(r,o,e,s,c,n)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return d}));var i=n(2),r=n(15),o=n(5),a=n(0);function c(){var t=window.location.hostname;return(t="/"+(t=t.replace(/^[a-zA-Z]{3,5}\:\/{2}[a-zA-Z0-9_.:-]+\//,"")))+window.location.pathname}function s(t){return t?{authenticationStatus:"authenticated",varlink:o.a.hasItem(a.O)?o.a.cookieGetItem(a.O):""}:{authenticationStatus:"non-authenticated"}}function l(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=window.tms_tag||[];if(null!==pageLoadData){var n=Object(i.h)(pageLoadData)&&JSON.parse(pageLo
1adData);if(n&&null!==n){var r=n.site,o=n.page,a=n.event;o.name=c();var l={event:a,site:r,page:o,user:s(t)};if("searchPageLoad"===a){var u=new URLSearchParams(window.location.search),d=u.get("query");if(d){var h=decodeURIComponent(d);h&&(l.search={term:h,engine:"search-navigation"})}}else"errorPageLoad"===a&&null!=window.location.search&&(l.error={name:"404 page not found"});e.push(l)}}}function u(t){var e=window.tms_tag||[],n={event:"search",search:{term:decodeURI(t).replace(/[^\w\s]/gi,""),engine:"search-inline"}};e.push(n)}function d(t){var e=window.tms_tag||[],n={event:"tabChange",page:{tabName:t.getAttribute("data-tab-name")}};e.push(n)}window.addEventListener("load",(function(){var t;((t=r.a.registerLoginStateCallBack(l))||""===loggedInStateApiURL)&&l(t),function(){for(var t=window.tms_tag||[],e=document.querySelectorAll("[data-link-text]"),n=0;n<e.length;n++)e[n].addEventListener("pointerdown",(function(){t.push({event:"linkClick",link:{name:this.getAttribute("data-link-text"),type:this.getAttribute("data-link-type"),product:this.getAttribute("data-product-name")||" "}})}))}()}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));var i={addCardLabel:"Add another card to compare",addCardLinkLabel:"Add another card",addCardImgAltText:"Card type placeholder text",addCardShortLabel:"Add card",addCardUrl:"/en/credit-cards/browse-credit-card-categories/",addProductImg:"/etc.clientlibs/tdsite/clientlibs/clientlib-sapphire/resources/images/compare--add-new-product-sapphire.png"},r='\n <div class="cmp-compare-table_block-prod-title cmp-compare-table_block-prod-title-color cmp-text">
1\n <h3 class="cmp-compare-table-span-heading">\n <a href="#">\n '.concat(i.addCardLabel,'\n </a>\n </h3>\n </div>\n <div class="cmp-compare-table_block-prod-image">\n <a class="add-another" aria-hidden="true" tabindex="-1" href="').concat(i.addCardUrl,'" aria-label="').concat(i.addCardLinkLabel,'">\n <img src="').concat(i.addProductImg,'"\n alt="').concat(i.addCardImgAltText,'" />\n </a>\n </div>\n'),o='\n <div class="cmp-compare-table_sticky-header_block-prod-title cmp-compare-table_sticky-header_block-prod-title-color cmp-text">\n <h3 class="cmp-compare-table-span-heading">\n\t\t\t<a href="https://www.mbna.ca/en/credit-cards/compare-credit-cards/">\n '.concat(i.addCardLabel,'\n </a>\n </h3>\n </div>\n <a class="cmp-button" aria-hidden="true" tabindex="-1" href="').concat(i.addCard,'">\n <span class="cmp-button__text">').concat(i.addCardShortLabel,"</span>\n </a>\n");'\n <a class="cmp-button" href="'.concat(i.addCard,'">\n <span class="cmp-button__text">').concat(i.addCardShortLabel,"</span>\n </a>\n")},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i={stateList:null,cityList:null,cityName:null,stateName:null,setStateList:function(t){i.stateList=t},setCityList:function(t){i.cityList=t},getStateNameFromStateCode:function(t){return null!==i.stateList&&null===i.cityList?(i.stateList.states.map((function(e){e.State===t&&(i.stateName=e.Name)})),i.stateName):null!==i.stateList&&null!==i.cityList?(i.stateList.states.map((function(e){t===e.State&&i.cityList.abBRANCH.map((function(n){t===n.state&&(i.stateName=e.Name)}))})),i.stateName):void 0},getCityNameFromCityCode:function(t){var e=parseInt(t);if(null!==i.cityList)return i.cityList.abBRANCH.map((function(t){t.cityID===e&&(i.cityName=t.cityName)})),i.cityName}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));var i=n(8);function r(t,e,n){var r=t.getAttribute("data-prodname"),a=t.getAttribute("data-term"),c=t.getAttribute("data-mobileView");null!==a?(i.a.appendTableData(t,r,a,n),null!==c&&"accordion"===c&&o(t,e)):(a="NULL",i.a.appendTableData(t,r,a,n))}function o(t,e){for(var n,i,r,o,c,s,l,u=function(t){for(var e=t.querySelectorAll("tr"),n=[],i=0,r=e.length;i<r;++i){n[i]||(n[i]=[]);for(var o=e[i].querySelectorAll("td, th"),a=0,c=o.length;a<c;++a){var s=parseInt(o[a].getAttribute("colspan"),10);if(isNaN(s))n[i][a]=o[a].innerHTML;else for(var l=0;l<s;l++)n[i][a+l]=o[a].innerHTML}}return n}(t),d=[],h=1,f=u[0].length;h<f;++h){for(var p=[],m=1,g=u.length;m<g;++m)n=a(u[m][0],h+m,e),i=a(u[m][h],m+h,e),p.push('<div class="cmp-accordion__panel-data"><div class="row-content__heading">'.concat(n,"</div><div>").concat(i,"</div></div>"));r=a(u[0][h],h,e),d.push((o=r,c=p.join(""),l=e,'<div class="cmp-accordion__item" data-cmp-hook-accordion="item">\n <h3 class="cmp-accordion__header">\n <div id="item'.concat(s=h,"-button-").concat(l,'" class="cmp-accordion__button" aria-controls="item').concat(s,"-panel-").concat(l,'" data-cmp-hook-accordion="button">\n <span class="cmp-accordion__title">').concat(o,'</span>\n <a href="javascript:void(0)" class="cmp-accordion__chevron-link" aria-expanded="false" aria-labelledby="item').concat(s,"-button-").concat(l,'">\n <span class="cmp-accordion__icon"></span>\n </a>\n </div>\n </h3>\n <div data-cmp-hook-accordion="panel" id="item').concat(s,"-panel-").concat(l,'" class="cmp-accordion__panel" role="region" aria-labelledby="item').concat(s,"-button-").concat(l,'">\n <div class="cmp-accordion__panel">\n ').concat(c,"\n </div>\n </div>\n </div>")))}var y,v=function(t){var e=document.createElement("template");return e.innerHTML=t,e.content.childNodes[0]}((y=d.join(""),'<div class="accordion">\n <div class="cmp-accordion" data-cmp-is="accordion">\n '.concat(y,"\n </div>\n </div>")));t.appendChild(v)}function a(t,e,n){var i,r=document.createElement("template");r.innerHTML=t;for(var o=r.content.children,a=0;a<o.length;a++)null===(i=o[a].getAttribute("id"))&&""==i||o[a].setAttribute("id",i+e+10+n);return r.innerHTML}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r}));var i=function(t){var e="yes"===t["special-offer-flag"];return"\n\t".concat(e?'<div class="offer"><span class="cmp-text"><span class="special-offer-ribbon ribbons">'.concat(t["special-offer-flag"],"</span></span></div>"):'<div class="offer"></div>','\n\t<div class="cmp-text noHeadingCaret">\n\t\t<h3>\n\t\t\t<a class="add-another" href="').concat(t["add-prod-cta-url"],'">\n\t\t\t\t').concat(t["hint-text"],'\n\t\t\t</a>\n\t\t</h3>\n\t</div>\n\t<div>\n\t\t<a class="add-another" tabindex="-1" aria-hidden="true" href="').concat(t["add-prod-cta-url"],'">\n\t\t\t<div class="cmp-compare-sticky-drawer__add-prod-img cmp-compare-sticky-drawer__prod-img">\n\t\t\t\t<img src="').concat(t["addProd-image-src"],'" alt="').concat(t["hint-text"],'" />\n\t\t\t</div>\n\t\t</a>\n\t</div>\n')},r=function(t,e){var n=t.id,i=t.url,r=t.name,o=t.img,a=t.s_offer,c=decodeURIComponent(r);return"\n\t".concat("yes"===a?'<div class="offer"><span class="cmp-text"><span class="special-offer-ribbon ribbons">'.concat(e["special-offer-flag"],"</span></span></div>"):'<div class="offer"></div>','\n\t\t<div class="cmp-text">\n\t\t\t<h3 id="prod-').concat(n,'">\n\t\t\t\t<a href="').concat(i,'">\n\t\t\t\t\t').concat(c,'\n\t\t\t\t</a>\n\t\t\t</h3>\n\t\t</div>\n\t\t<div>\n\t\t\t<img class="cmp-compare-sticky-drawer__prod-img" src="').concat(o,'" alt="" />\n\t\t\t<div class="cmp-compare-sticky-drawer__remove-prod-btn">\n\t\t\t\t<a href="javascript:void(0)" tabindex="0" aria-label="').concat(e["remove-label"],'" aria-describedby="prod-').concat(n,'" class="btn_rm_prod" role="button">\n\t\t\t\t\t<span class="td-icon td-icon-close" aria-hidden="true"></span>\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</div>\n\t')}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n(40),r=n(33),o=n(42),a=n(18),c=n(0),s=n(41),l=n(29);function u(){var t=JSON.parse(window.ratesAPIInfo);document.querySelectorAll("[data-source ^= ".concat(c.E,"] , [data-source ^= ").concat(c.F,"]"))&&document.querySelectorAll("[data-source ^= ".concat(c.E,"] , [data-source ^= ").concat(c.F,"]")).forEac
1h((function(e,n){t.rates.forEach((function(t){if(t.source===e.getAttribute("data-source")){var c=e.getAttribute("data-view"),u=e.getAttribute("data-source");switch(c){case"single":Object(a.d)(e,u);break;case"complex":Object(i.a)(e,u);break;case"table":Object(r.b)(e,n,u);break;case"table_dropdown":Object(o.a)(e,n,u);break;case"dropdown":Object(s.a)(e,n,u);break;case"table-rte":Object(l.a)(n,u)}}}))}));document.querySelectorAll("[data-source = ".concat(c.C,"] , [data-source = ").concat(c.A,"]"))&&document.querySelectorAll("[data-source = ".concat(c.C,"] , [data-source = ").concat(c.A,"]")).forEach((function(e,n){t.rates.forEach((function(t){if(t.source===e.getAttribute("data-source")){var n=e.getAttribute("data-view"),i=e.getAttribute("data-source");switch(n){case"single":Object(a.c)(e,i)}}}))}));document.querySelectorAll("[data-source = ".concat(c.B,"], [data-source = ").concat(c.D,"]"))&&document.querySelectorAll("[data-source = ".concat(c.B,"], [data-source = ").concat(c.D,"]")).forEach((function(t,e){var n=t.getAttribute("data-view"),i=t.getAttribute("data-source");if(i==c.B)switch(n){case"single":Object(a.a)(t,i);break;case"single-pricing":Object(a.f)(t,i)}else if(i==c.D)switch(n){case"single":Object(a.b)(t,i);break;case"single-pricing":Object(a.f)(t,i)}}));var e=document.querySelectorAll("[data-source = ".concat(c.H,"], [data-source = ").concat(c.G,"]"));null!==e&&e.forEach((function(t,e){var n=t.getAttribute("data-view"),i=t.getAttribute("data-source");if(i===c.H)switch(n){case"single":Object(a.g)(t,i)}else if(i===c.G)switch(n){case"single":Object(a.e)(t,i)}}))}},function(t,e,n){"use strict";var i,r;!function(o){t.exports?(o.default=o,t.exports=o):(i=[n(22)],void 0===(r=function(t){return o(t),o.Highcharts=t,o}.apply(e,i))||(t.exports=r))}((function(t){function e(t,e,n,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,n))}e(t=t?t._modules:{},"Accessibility/A11yI18n.js",[t["Core/FormatUtilities.js"],t["Core/Utilities.js"]],(function(t,e){var n,i=t.format,r=e.pick;return function(t){function e(t,e,n){var o=function(t,e){var n=(t=t.slice(e||0)).indexOf("{"),i=t.indexOf("}");if(-1<n&&i>n)return{statement:t.substring(n+1,i),begin:e+n+1,end:e+i}},a=[],c=0;do{var s=o(t,c),l=t.substring(c,s&&s.begin-1);l.length&&a.push({value:l,type:"constant"}),s&&a.push({value:s.statement,type:"statement"}),c=s?s.end+1:c+1}while(s);return a.forEach((function(t){"statement"===t.type&&(t.value=function(t,e){var n=t.indexOf("#each("),i=t.indexOf("#plural("),o=t.indexOf("["),a=t.indexOf("]");if(-1<n){if(a=t.slice(n).indexOf(")")+n,i=t.substring(0,n),o=t.substring(a+1),a=t.substring(n+6,a).split(","),n=Number(a[1]),t="",e=e[a[0]])for(n=0>(n=isNaN(n)?e.length:n)?e.length+n:Math.min(n,e.length),a=0;a<n;++a)t+=i+e[a]+o;return t.length?t:""}if(-1<i){switch(o=t.slice(i).indexOf(")")+i,i=t.substring(i+8,o).split(","),Number(e[i[0]])){case 0:t=r(i[4],i[1]);break;case 1:t=r(i[2],i[1]);break;case 2:t=r(i[3],i[1]);break;default:t=i[1]}return t?e=(e=t).trim&&e.trim()||e.replace(/^\s+|\s+$/g,""):e="",e}return-1<o?(i=t.substring(0,o),o=Number(t.substring(o+1,a)),t=void 0,e=e[i],!isNaN(o)&&e&&(0>o?void 0===(t=e[e.length+o])&&(t=e[0]):void 0===(t=e[o])&&(t=e[e.length-1])),void 0!==t?t:""):"{"+t+"}"}(t.value,e))})),i(a.reduce((function(t,e){return t+e.value}),""),e,n)}function n(t,n){t=t.split(".");for(var i=this.options.lang,r=0;r<t.length;++r)i=i&&i[t[r]];return"string"==typeof i?e(i,n,this):""}var o=[];t.compose=function(t){return-1===o.indexOf(t)&&(o.push(t),t.prototype.langFormat=n),t},t.i18nFormat=e}(n||(n={})),n})),e(t,"Accessibility/Utils/HTMLUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e){function n(t){if("function"==typeof o.MouseEvent)return new o.MouseEvent(t.type,t);if(r.createEvent){var e=r.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t.type,t.bubbles,t.cancelable,t.view||o,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),e}return i(t.type)}function i(t,e){if(e=e||{x:0,y:0},"function"==typeof o.MouseEvent)return new o.MouseEvent(t,{bubbles:!0,cancelable:!0,composed:!0,view:o,detail:"click"===t?1:0,screenX:e.x,screenY:e.y,clientX:e.x,clientY:e.y});if(r.createEvent){var n=r.createEvent("MouseEvent");
1if(n.initMouseEvent)return n.initMouseEvent(t,!0,!0,o,"click"===t?1:0,e.x,e.y,e.x,e.y,!1,!1,!1,!1,0,null),n}return{type:t}}var r=t.doc,o=t.win,a=e.css;return{addClass:function(t,e){t.classList?t.classList.add(e):0>t.className.indexOf(e)&&(t.className+=" "+e)},cloneMouseEvent:n,cloneTouchEvent:function(t){var e=function(t){for(var e=[],n=0;n<t.length;++n){var i=t.item(n);i&&e.push(i)}return e};return"function"==typeof o.TouchEvent?(e=new o.TouchEvent(t.type,{touches:e(t.touches),targetTouches:e(t.targetTouches),changedTouches:e(t.changedTouches),ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed,detail:t.detail,view:t.view}),t.defaultPrevented&&e.preventDefault(),e):((e=n(t)).touches=t.touches,e.changedTouches=t.changedTouches,e.targetTouches=t.targetTouches,e)},escapeStringForHTML:function(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},getElement:function(t){return r.getElementById(t)},getFakeMouseEvent:i,getHeadingTagNameForElement:function(t){var e=function(t){return t=parseInt(t.slice(1),10),"h"+Math.min(6,t+1)},n=function(t){var i;t:{for(i=t;i=i.previousSibling;){var r=i.tagName||"";if(/H[1-6]/.test(r)){i=r;break t}}i=""}return i?e(i):(t=t.parentElement)?(i=t.tagName,/H[1-6]/.test(i)?e(i):n(t)):"p"};return n(t)},removeChildNodes:function(t){for(;t.lastChild;)t.removeChild(t.lastChild)},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp(e,"g"),"")},removeElement:function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},reverseChildNodes:function(t){for(var e=t.childNodes.length;e--;)t.appendChild(t.childNodes[e])},stripHTMLTagsFromString:function(t){return"string"==typeof t?t.replace(/<\/?[^>]+(>|$)/g,""):t},visuallyHideElement:function(t){a(t,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}})),e(t,"Accessibility/Utils/ChartUtilities.js",[t["Core/Globals.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Core/Utilities.js"]],(function(t,e,n){function i(t){if(t.points&&t.points.length)return(t=s(t.points,(function(t){return!!t.graphic})))&&t.graphic&&t.graphic.element}function r(t){var e=i(t);return e&&e.parentNode||t.graph&&t.graph.element||t.group&&t.group.element}var o=t.doc,a=e.stripHTMLTagsFromString,c=n.defined,s=n.find,l=n.fireEvent;return{fireEventOnWrappedOrUnwrappedElement:function t(e,n){var i=n.type,r=e.hcEvents;o.createEvent&&(e.dispatchEvent||e.fireEvent)?e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(i,n):r&&r[i]?l(e,i,n):e.element&&t(e.element,n)},getChartTitle:function(t){return a(t.options.title.text||t.langFormat("accessibility.defaultChartTitle",{chart:t}))},getAxisDescription:function(t){return t&&(t.userOptions&&t.userOptions.accessibility&&t.userOptions.accessibility.description||t.axisTitle&&t.axisTitle.textStr||t.options.id||t.categories&&"categories"||t.dateTime&&"Time"||"values")},getAxisRangeDescription:function(t){var e=t.options||{};return e.accessibility&&void 0!==e.accessibility.rangeDescription?e.accessibility.rangeDescription:t.categories?(e=t.chart,t=t.dataMax&&t.dataMin?e.langFormat("accessibility.axis.rangeCategories",{chart:e,axis:t,numCategories:t.dataMax-t.dataMin+1}):""):!t.dateTime||0!==t.min&&0!==t.dataMin?function(t){var e=t.chart,n=e.options,i=n&&n.accessibility&&n.accessibility.screenReaderSection.axisRangeDateFormat||"";return n=function(n){return t.dateTime?e.time.dateFormat(i,t[n]):t[n]},e.langFormat("accessibility.axis.rangeFromTo",{chart:e,axis:t,rangeFrom
1:n("min"),rangeTo:n("max")})}(t):function(t){var e=t.chart,n={},i="Seconds";n.Seconds=((t.max||0)-(t.min||0))/1e3,n.Minutes=n.Seconds/60,n.Hours=n.Minutes/60,n.Days=n.Hours/24,["Minutes","Hours","Days"].forEach((function(t){2<n[t]&&(i=t)}));var r=n[i].toFixed("Seconds"!==i&&"Minutes"!==i?1:0);return e.langFormat("accessibility.axis.timeRange"+i,{chart:e,axis:t,range:r.replace(".0","")})}(t)},getPointFromXY:function(t,e,n){for(var i,r=t.length;r--;)if(i=s(t[r].points||[],(function(t){return t.x===e&&t.y===n})))return i},getSeriesFirstPointElement:i,getSeriesFromName:function(t,e){return e?(t.series||[]).filter((function(t){return t.name===e})):t.series},getSeriesA11yElement:r,unhideChartElementFromAT:function t(e,n){n.setAttribute("aria-hidden",!1),n!==e.renderTo&&n.parentNode&&n.parentNode!==o.body&&(Array.prototype.forEach.call(n.parentNode.childNodes,(function(t){t.hasAttribute("aria-hidden")||t.setAttribute("aria-hidden",!0)})),t(e,n.parentNode))},hideSeriesFromAT:function(t){(t=r(t))&&t.setAttribute("aria-hidden",!0)},scrollToPoint:function(t){var e=t.series.xAxis,n=t.series.yAxis,i=e&&e.scrollbar?e:n;if((e=i&&i.scrollbar)&&c(e.to)&&c(e.from)){if(n=e.to-e.from,c(i.dataMin)&&c(i.dataMax)){var r=i.toPixels(i.dataMin),o=i.toPixels(i.dataMax);t=(i.toPixels(t["xAxis"===i.coll?"x":"y"]||0)-r)/(o-r)}else t=0;e.updatePosition(t-n/2,t+n/2),l(e,"changed",{from:e.from,to:e.to,trigger:"scrollbar",DOMEvent:null})}}}})),e(t,"Accessibility/Utils/DOMElementProvider.js",[t["Core/Globals.js"],t["Accessibility/Utils/HTMLUtilities.js"]],(function(t,e){var n=t.doc,i=e.removeElement;return function(){function t(){this.elements=[]}return t.prototype.createElement=function(){var t=n.createElement.apply(n,arguments);return this.elements.push(t),t},t.prototype.destroyCreatedElements=function(){this.elements.forEach((function(t){i(t)})),this.elements=[]},t}()})),e(t,"Accessibility/Utils/EventProvider.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e){var n=e.addEvent;return function(){function e(){this.eventRemovers=[]}return e.prototype.addEvent=function(){var e=n.apply(t,arguments);return this.eventRemovers.push(e),e},e.prototype.removeAddedEvents=function(){this.eventRemovers.forEach((function(t){return t()})),this.eventRemovers=[]},e}()})),e(t,"Accessibility/AccessibilityComponent.js",[t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/DOMElementProvider.js"],t["Accessibility/Utils/EventProvider.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Core/Utilities.js"]],(function(t,e,n,i,r){var o=t.fireEventOnWrappedOrUnwrappedElement,a=i.getFakeMouseEvent;return t=r.extend,i=function(){function t(){this.proxyProvider=this.keyCodes=this.eventProvider=this.domElementProvider=this.chart=void 0}return t.prototype.initBase=function(t,i){this.chart=t,this.eventProvider=new n,this.domElementProvider=new e,this.proxyProvider=i,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}},t.prototype.addEvent=function(t,e,n,i){return this.eventProvider.addEvent(t,e,n,i)},t.prototype.createElement=function(t,e){return this.domElementProvider.createElement(t,e)},t.prototype.fakeClickEvent=function(t){var e=a("click");o(t,e)},t.prototype.destroyBase=function(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()},t}(),t(i.prototype,{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}}),i})),e(t,"Accessibility/KeyboardNavigationHandler.js",[t["Core/Utilities.js"]],(function(t){var e=t.find;return t=function(){function t(t,e){this.chart=t,this.keyCodeMap=e.keyCodeMap||[],this.validate=e.validate,this.init=e.init,this.terminate=e.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}return t.prototype.run=function(t){var n=t.which||t.keyCode,i=this.response.noHandler,r=e(this.keyCodeMap,(function(t){return-1<t[0].indexOf(n)}));return r?i=r[1].call(this,n,t):9===n&&(i=this.response[t.shiftKey?"prev":"next"]),i},t}()})),e(t,"Accessibility/Components/ContainerComponent.js",[t["Accessibility/AccessibilityComponent.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Core/Globals.js"],t["Accessibility/Utils/HTMLUtilities.js"]],(function(t,e,n,i,r){var o=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=n.unhideChartElementFromAT,c=n.getChartTitle,s=i.doc,l=r.stripHTMLTagsFromString;return function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.onChartUpdate=function(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()},n.prototype.handleSVGTitleElement=function(){var t=this.chart,e="highcharts-title-"+t.index,n=l(t.langFormat("accessibility.svgContainerTitle",{chartTitle:c(t)}));if(n.length){var i=this.svgTitleElement=this.svgTitleElement||s.createElementNS("http://www.w3.org/2000/svg","title");i.textContent=n,i.id=e,t.renderTo.insertBefore(i,t.renderTo.firstChild)}},n.prototype.setSVGContainerLabel=function(){var t=this.chart,e=t.langFormat("accessibility.svgContainerLabel",{chartTitle:c(t)});t.renderer.box&&e.length&&t.renderer.box.setAttribute("aria-label",e)},n.prototype.setGraphicContainerAttrs=function(){var t=this.chart,e=t.langFormat("accessibility.graphicContainerLabel",{chartTitle:c(t)});e.length&&t.container.setAttribute("aria-label",e)},n.prototype.setRenderToAttrs=function(){var t=this.chart;"disabled"!==t.options.accessibility.landmarkVerbosity?t.renderTo.setAttribute("role","regi
1on"):t.renderTo.removeAttribute("role"),t.renderTo.setAttribute("aria-label",t.langFormat("accessibility.chartContainerLabel",{title:c(t),chart:t}))},n.prototype.makeCreditsAccessible=function(){var t=this.chart,e=t.credits;e&&(e.textStr&&e.element.setAttribute("aria-label",t.langFormat("accessibility.credits",{creditsStr:l(e.textStr)})),a(t,e.element))},n.prototype.getKeyboardNavigation=function(){var t=this.chart;return new e(t,{keyCodeMap:[],validate:function(){return!0},init:function(){var e=t.accessibility;e&&e.keyboardNavigation.tabindexContainer.focus()}})},n.prototype.destroy=function(){this.chart.renderTo.setAttribute("aria-hidden",!0)},n}(t)})),e(t,"Accessibility/FocusBorder.js",[t["Core/Renderer/SVG/SVGLabel.js"],t["Core/Utilities.js"]],(function(t,e){var n,i=e.addEvent,r=e.pick;return function(e){function n(){var t=this.focusElement,e=this.options.accessibility.keyboardNavigation.focusBorder;t&&(t.removeFocusBorder(),e.enabled&&t.addFocusBorder(e.margin,{stroke:e.style.color,strokeWidth:e.style.lineWidth,r:e.style.borderRadius}))}function o(t,e){var n=this.options.accessibility.keyboardNavigation.focusBorder;(e=e||t.element)&&e.focus&&(e.hcEvents&&e.hcEvents.focusin||i(e,"focusin",(function(){})),e.focus(),n.hideBrowserFocusOutline&&(e.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=t,this.renderFocusBorder()}function a(e,n){this.focusBorder&&this.removeFocusBorder();var i=this.getBBox(),o=r(e,3);i.x+=this.translateX?this.translateX:0,i.y+=this.translateY?this.translateY:0;var a=i.x-o,s=i.y-o,l=i.width+2*o,u=i.height+2*o,d=this instanceof t;if("text"===this.element.nodeName||d){var h=!!this.rotation;if(d)var f={x:h?1:0,y:0};else{var p=f=0;"middle"===this.attr("text-anchor")?f=p=.5:this.rotation?f=.25:p=.75,f={x:f,y:p}}p=+this.attr("x");var m=+this.attr("y");isNaN(p)||(a=p-i.width*f.x-o),isNaN(m)||(s=m-i.height*f.y-o),d&&h&&(d=l,l=u,u=d,isNaN(p)||(a=p-i.height*f.x-o),isNaN(m)||(s=m-i.width*f.y-o))}this.focusBorder=this.renderer.rect(a,s,l,u,parseInt((n&&n.r||0).toString(),10)).addClass("highcharts-focus-border").attr({zIndex:99}).add(this.parentGroup),this.renderer.styledMode||this.focusBorder.attr({stroke:n&&n.stroke,"stroke-width":n&&n.strokeWidth}),c(this,e,n),function(t){if(!t.focusBorderDestroyHook){var e=t.destroy;t.destroy=function(){return t.focusBorder&&t.focusBorder.destroy&&t.focu
1sBorder.destroy(),e.apply(t,arguments)},t.focusBorderDestroyHook=e}}(this)}function c(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.focusBorderUpdateHooks||(t.focusBorderUpdateHooks={},u.forEach((function(n){var i=t[n+="Setter"]||t._defaultSetter;t.focusBorderUpdateHooks[n]=i,t[n]=function(){var n=i.apply(t,arguments);return t.addFocusBorder.apply(t,e),n}})))}function s(){!function(t){t.focusBorderUpdateHooks&&(Object.keys(t.focusBorderUpdateHooks).forEach((function(e){var n=t.focusBorderUpdateHooks[e];n===t._defaultSetter?delete t[e]:t[e]=n})),delete t.focusBorderUpdateHooks)}(this),this.focusBorderDestroyHook&&(this.destroy=this.focusBorderDestroyHook,delete this.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}var l=[],u="x y transform width height r d stroke-width".split(" ");e.compose=function(t,e){-1===l.indexOf(t)&&(l.push(t),(t=t.prototype).renderFocusBorder=n,t.setFocusToElement=o),-1===l.indexOf(e)&&(l.push(e),(e=e.prototype).addFocusBorder=a,e.removeFocusBorder=s)}}(n||(n={})),n})),e(t,"Accessibility/Utils/Announcer.js",[t["Core/Renderer/HTML/AST.js"],t["Accessibility/Utils/DOMElementProvider.js"],t["Core/Globals.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Core/Utilities.js"]],(function(t,e,n,i,r){var o=n.doc,a=i.addClass,c=i.visuallyHideElement,s=r.attr;return function(){function n(t,n){this.chart=t,this.domElementProvider=new e,this.announceRegion=this.addAnnounceRegion(n)}return n.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},n.prototype.announce=function(e){var n=this;t.setElementHTML(this.announceRegion,e),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout((function(){n.announceRegion.innerHTML=t.emptyHTML,delete n.clearAnnouncementRegionTimer}),1e3)},n.prototype.addAnnounceRegion=function(t){var e=this.chart.announcerContainer||this.createAnnouncerContainer(),n=this.domElementProvider.createElement("div");return s(n,{"aria-hidden":!1,"aria-live":t}),this.chart.styledMode?a(n,"highcharts-visually-hidden"):c(n),e.appendChild(n),n},n.prototype.createAnnouncerContainer=function(){var t=this.chart,e=o.createElement("div");return s(e,{"aria-hidden":!1,class:"highcharts-announcer-container"}),e.style.position="relative",t.renderTo.insertBefore(e,t.renderTo.firstChild),t.announcerContainer=e},n}()})),e(t,"Accessibility/Components/AnnotationsA11y.js",[t["Accessibility/Utils/HTMLUtilities.js"]],(function(t){function e(t){return(t.annotations||[]).reduce((function(t,e){return e.options&&!1!==e.options.visible&&(t=t.concat(e.labels)),t}),[])}function n(t){return t.options&&t.options.accessibility&&t.options.accessibility.description||t.graphic&&t.graphic.text&&t.graphic.text.textStr||""}function i(t){var e=t.options&&t.options.accessibility&&t.options.accessibility.description;if(e)return e;e=t.chart;var i=n(t),r=t.points.filter((function(t){return!!t.graphic})).map((function(t){var e=t.accessibility&&t.accessibility.valueDescription||t.graphic&&t.graphic.element&&t.graphic.element.getAttribute("aria-label")||"";return((t=t&&t.series.name||"")?t+", ":"")+"data point "+e})).filter((function(t){return!!t})),o=r.length,a="accessibility.screenReaderSection.annotations.description"+(1<o?"MultiplePoints":o?"SinglePoint":"NoPoints");return t={annotationText:i,annotation:t,numPoints:o,annotationPoint:r[0],additionalAnnotationPoints:r.slice(1)},e.langFormat(a,t)}function r(t){return e(t).map((function(t){return(t=o(a(i(t))))?"<li>"+t+"</li>":""}))}var o=t.escapeStringForHTML,a=t.stripHTMLTagsFromString;return{getAnnotationsInfoHTML:function(t){var e=t.annotations;return e&&e.length?'<ul style="list-style-type: none">'+r(t).join(" ")+"</ul>":""},getAnnotationLabelDescription:i,getAnnotationListItems:r,getPointAnnotationTexts:function(t){var i=e(t.series.chart).filter((function(e){return-1<e.points.indexOf(t)}));return i.length?i.map((function(t){return""+n(t)})):[]}}})),e(t,"Accessibility/Components/InfoRegionsComponent.js",[t["Accessibility/A11yI18n.js"],t["Accessibility/AccessibilityComponent.js"],t["Accessibility/Utils/Announcer.js"],t["Accessibility/Components/AnnotationsA11y.js"],t["Core/Renderer/HTML/AST.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Core/FormatUtilities.js"],t["Core/Globals.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,c,s,l){var u=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=i.getAnnotationsInfoHTML,h=o.getAxisDescription,f=o.getAxisRangeDescription,p=o.getChartTitle,m=o.unhideChartElementFromAT,g=a.format,y=c.doc,v=s.addClass,b=s.getElement,x=s.getHeadingTagNameForElement,_=s.stripHTMLTagsFromString,S=s.visuallyHideElement,w=l.attr,A=l.pick;return function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.announcer=void 0,t.screenReaderSections={},t}return u(i,e),i.prototype.init=function(){var t=this.chart,e=this;this.initRegionsDefinitions(),this.addEvent(t,"aftergetTableAST",(function(t){e.onDataTableCreated(t)})),this.addEvent(t,"afterViewData",(function(t){e.dataTableDiv=t,setTimeout((function(){e.focusDataTable()}),300)})),this.announcer=new n(t,"assertive")},i.prototype.initRegionsDefinitions=function(){var t=this;this.screenReaderSections={before:{element:null,buildContent:function(e){var n=e.options.accessibility.screenReaderSection.beforeChartFormatter;return n?n(e):t.defaultBeforeChartFormatter(e)},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.renderTo.firstChild)},afterInserted:function(){void 0!==t.sonifyButtonId&&t.initSonifyButton(t.sonifyButtonId),void 0!==t.dataTableButtonId&&t.initDataTableButton(t.dataTableButtonId)}},after:{element:null,buildContent:function(e){var n=e.options.accessibility.screenReaderSection.afterChartFormatter;return n?n(e):t.defaultAfterChartFormatter()},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.container.nextSibling)},afterInserted:function(){t.chart.accessibility&&t.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}},i.prototype.onChartRender=function(){var t=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEac
1h((function(e){t.updateScreenReaderSection(e)}))},i.prototype.getLinkedDescriptionElement=function(){var t=this.chart.options.accessibility.linkedDescription;if(t){if("string"!=typeof t)return t;if(t=g(t,this.chart),1===(t=y.querySelectorAll(t)).length)return t[0]}},i.prototype.setLinkedDescriptionAttrs=function(){var t=this.linkedDescriptionElement;t&&(t.setAttribute("aria-hidden","true"),v(t,"highcharts-linked-description"))},i.prototype.updateScreenReaderSection=function(t){var e=this.chart,n=this.screenReaderSections[t],i=n.buildContent(e),o=n.element=n.element||this.createElement("div"),a=o.firstChild||this.createElement("div");i?(this.setScreenReaderSectionAttribs(o,t),r.setElementHTML(a,i),o.appendChild(a),n.insertIntoDOM(o,e),e.styledMode?v(a,"highcharts-visually-hidden"):S(a),m(e,a),n.afterInserted&&n.afterInserted()):(o.parentNode&&o.parentNode.removeChild(o),delete n.element)},i.prototype.setScreenReaderSectionAttribs=function(t,e){var n=this.chart,i=n.langFormat("accessibility.screenReaderSection."+e+"RegionLabel",{chart:n,chartTitle:p(n)});w(t,{id:"highcharts-screen-reader-region-"+e+"-"+n.index,"aria-label":i}),t.style.position="relative","all"===n.options.accessibility.landmarkVerbosity&&i&&t.setAttribute("role","region")},i.prototype.defaultBeforeChartFormatter=function(){var e=this.chart,n=e.options.accessibility.screenReaderSection.beforeChartFormat;if(!n)return"";var i=this.getAxesDescription(),r=e.sonify&&e.options.sonification&&e.options.sonification.enabled,o="highcharts-a11y-sonify-data-btn-"+e.index,a="hc-linkto-highcharts-data-table-"+e.index,c=d(e),s=e.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:e});return i={headingTagName:x(e.renderTo),chartTitle:p(e),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:i.xAxis,yAxisDescription:i.yAxis,playAsSoundButton:r?this.getSonifyButtonText(o):"",viewTableButton:e.getCSV?this.getDataTableButtonText(a):"",annotationsTitle:c?s:"",annotationsList:c},e=t.i18nFormat(n,i,e),this.dataTableButtonId=a,this.sonifyButtonId=o,e.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")},i.prototype.defaultAfterChartFormatter=function(){var e=this.chart,n=e.options.accessibility.screenReaderSection.afterChartFormat;if(!n)return"";var i={endOfChartMarker:this.getEndOfChartMarkerText()};return t.i18nFormat(n,i,e).replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")},i.prototype.getLinkedDescription=function(){var t=this.linkedDescriptionElement;return _(t&&t.innerHTML||"")},i.prototype.getLongdescText=function(){var t=this.chart.options,e=t.caption;e=e&&e.text;var n=this.getLinkedDescription();return t.accessibility.description||n||e||""},i.prototype.getTypeDescriptionText=function(){var t=this.chart;return t.types?t.options.accessibility.typeDescription||function(t,e){var n=e[0],i=t.series&&t.series[0]||{};if(i={numSeries:t.series.length,numPoints:i.points&&i.points.length,chart:t,mapTitle:i.mapTitle},!n)return t.langFormat("accessibility.chartTypes.emptyChart",i);if("map"===n)return i.mapTitle?t.langFormat("accessibility.chartTypes.mapTypeDescription",i):t.langFormat("accessibility.chartTypes.unknownMap",i);if(1<t.types.length)return t.langFormat("accessibility.chartTypes.combinationChart",i);e=e[0],n=t.langFormat("accessibility.seriesTypeDescriptions."+e,i);var r=t.series&&2>t.series.length?"Single":"Multiple";return(t.langFormat("accessibility.chartTypes."+e+r,i)||t.langFormat("accessibility.chartTypes.default"+r,i))+(n?" "+n:"")}(t,t.types):""},i.prototype.getDataTableButtonText=function(t){var e=this.chart;return'<button id="'+t+'">'+(e=e.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:e,chartTitle:p(e)}))+"</button>"},i.prototype.getSonifyButtonText=function(t){var e=this.chart;return e.options.sonification&&!1===e.options.sonification.enabled?"":'<button id="'+t+'">'+(e=e.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:e,chartTitle:p(e)}))+"</button>"},i.prototype.getSubtitleText=function(){var t=this.chart.options.subtitle;return _(t&&t.text||"")},i.prototype.getEndOfChartMarkerText=function(){var t=this.chart,e=t.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:t});return'<div id="highcharts-end-of-chart-marker-'+t.index+'">'+e+"</div>"},i.prototype.onDataTableCreated=function(t){var e=this.chart;if(e.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");var n=t.tree.attributes||{};n.tabindex=-1,n.summary=e.langFormat("accessibility.table.tableSummary",{chart:e}),t.tree.attributes=n}}
1,i.prototype.focusDataTable=function(){var t=this.dataTableDiv;(t=t&&t.getElementsByTagName("table")[0])&&t.focus&&t.focus()},i.prototype.initSonifyButton=function(t){var e=this,n=this.sonifyButton=b(t),i=this.chart,r=function(t){n&&(n.setAttribute("aria-hidden","true"),n.setAttribute("aria-label","")),t.preventDefault(),t.stopPropagation(),t=i.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:i}),e.announcer.announce(t),setTimeout((function(){n&&(n.removeAttribute("aria-hidden"),n.removeAttribute("aria-label")),i.sonify&&i.sonify()}),1e3)};n&&i&&(n.setAttribute("tabindex",-1),n.onclick=function(t){(i.options.accessibility&&i.options.accessibility.screenReaderSection.onPlayAsSoundClick||r).call(this,t,i)})},i.prototype.initDataTableButton=function(t){var e=this.viewDataTableButton=b(t),n=this.chart;t=t.replace("hc-linkto-",""),e&&(w(e,{tabindex:-1,"aria-expanded":!!b(t)}),e.onclick=n.options.accessibility.screenReaderSection.onViewDataTableClick||function(){n.viewData()})},i.prototype.getAxesDescription=function(){var t=this.chart,e=function(e,n){return 1<(e=t[e]).length||e[0]&&A(e[0].options.accessibility&&e[0].options.accessibility.enabled,n)},n=!!t.types&&0>t.types.indexOf("map"),i=!!t.hasCartesianSeries,r=e("xAxis",!t.angular&&i&&n);return e=e("yAxis",i&&n),n={},r&&(n.xAxis=this.getAxisDescriptionText("xAxis")),e&&(n.yAxis=this.getAxisDescriptionText("yAxis")),n},i.prototype.getAxisDescriptionText=function(t){var e=this.chart,n=e[t];return e.langFormat("accessibility.axis."+t+"Description"+(1<n.length?"Plural":"Singular"),{chart:e,names:n.map((function(t){return h(t)})),ranges:n.map((function(t){return f(t)})),numAxes:n.length})},i.prototype.destroy=function(){this.announcer&&this.announcer.destroy()},i}(e)})),e(t,"Accessibility/Components/MenuComponent.js",[t["Core/Chart/Chart.js"],t["Core/Utilities.js"],t["Accessibility/AccessibilityComponent.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/HTMLUtilities.js"]],(function(t,e,n,i,r,o){var a=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=e.attr,s=r.getChartTitle,l=r.unhideChartElementFromAT,u=o.getFakeMouseEvent;return function(e){function n(){var t=this.exportSVGElements&&this.exportSVGElements[0];t&&(t=t.element).onclick&&t.onclick(u("click"))}function i(){var t=this.exportDivElements;t&&this.exportContextMenu&&(t.forEach((function(t){t&&"highcharts-menu-item"===t.className&&t.onmouseout&&t.onmouseout(u("mouseout"))})),this.highlightedExportItemIx=0,this.exportContextMenu.hideMenu(),this.container.focus())}function r(t){var e=this.exportDivElements&&this.exportDivElements[t],n=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(e&&"LI"===e.tagName&&(!e.children||!e.children.length)){var i=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return e.focus&&i&&e.focus(),n&&n.onmouseout&&n.onmouseout(u("mouseout")),e.onmouseover&&e.onmouseover(u("mouseover")),this.highlightedExportItemIx=t,!0}return!1}function o(){if(this.exportDivElements)for(var t=this.exportDivElements.length;t--;)if(this.highlightExportItem(t))return!0;return!1}var a=[];e.compose=function(e){-1===a.indexOf(e)&&(a.push(e),(e=t.prototype).hideExportMenu=i,e.highlightExportItem=r,e.highlightLastExportItem=o,e.showExportMenu=n)}}((e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(){var t=this.chart,e=this;this.addEvent(t,"exportMenuShown",(function(){e.onMenuShown()})),this.addEvent(t,"exportMenuHidden",(function(){e.onMenuHidden()})),this.createProxyGroup()},e.prototype.onMenuHidden=function(){var t=this.chart.exportContextMenu;t&&t.setAttribute("aria-hidden","true"),this.isExportMenuShown=!1,this.setExportButtonExpandedState("false")}
1,e.prototype.onMenuShown=function(){var t=this.chart,e=t.exportContextMenu;e&&(this.addAccessibleContextMenuAttribs(),l(t,e)),this.isExportMenuShown=!0,this.setExportButtonExpandedState("true")},e.prototype.setExportButtonExpandedState=function(t){this.exportButtonProxy&&this.exportButtonProxy.buttonElement.setAttribute("aria-expanded",t)},e.prototype.onChartRender=function(){var t=this.chart,e=t.focusElement,n=t.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&e&&e===t.exportingGroup&&(e.focusBorder?t.setFocusToElement(e,this.exportButtonProxy.buttonElement):n&&n.keyboardNavigation.tabindexContainer.focus())},e.prototype.proxyMenuButton=function(){var t=this.chart,e=this.proxyProvider,n=t.exportSVGElements&&t.exportSVGElements[0],i=t.options.exporting,r=t.exportSVGElements&&t.exportSVGElements[0];i&&!1!==i.enabled&&i.accessibility&&i.accessibility.enabled&&r&&r.element&&n&&(this.exportButtonProxy=e.addProxyElement("chartMenu",{click:n},{"aria-label":t.langFormat("accessibility.exporting.menuButtonLabel",{chart:t,chartTitle:s(t)}),"aria-expanded":!1}))},e.prototype.createProxyGroup=function(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu","div")},e.prototype.addAccessibleContextMenuAttribs=function(){var t=this.chart,e=t.exportDivElements;e&&e.length&&(e.forEach((function(t){t&&("LI"!==t.tagName||t.children&&t.children.length?t.setAttribute("aria-hidden","true"):t.setAttribute("tabindex",-1))})),(e=e[0]&&e[0].parentNode)&&c(e,{"aria-hidden":void 0,"aria-label":t.langFormat("accessibility.exporting.chartMenuLabel",{chart:t}),role:"list"}))},e.prototype.getKeyboardNavigation=function(){var t=this.keyCodes,e=this.chart,n=this;return new i(e,{keyCodeMap:[[[t.left,t.up],function(){return n.onKbdPrevious(this)}],[[t.right,t.down],function(){return n.onKbdNext(this)}],[[t.enter,t.space],function(){return n.onKbdClick(this)}]],validate:function(){return!!e.exporting&&!1!==e.options.exporting.enabled&&!1!==e.options.exporting.accessibility.enabled},init:function(){var t=n.exportButtonProxy,i=n.chart.exportingGroup;t&&i&&e.setFocusToElement(i,t.buttonElement)},terminate:function(){e.hideExportMenu()}})},e.prototype.onKbdPrevious=function(t){var e=this.chart,n=e.options.accessibility;t=t.response;for(var i=e.highlightedExportItemIx||0;i--;)if(e.highlightExportItem(i))return t.success;return n.keyboardNavigation.wrapAround?(e.highlightLastExportItem(),t.success):t.prev},e.prototype.onKbdNext=function(t){var e=this.chart,n=e.options.accessibility;t=t.response;for(var i=(e.highlightedExportItemIx||0)+1;i<e.exportDivElements.length;++i)if(e.highlightExportItem(i))return t.success;return n.keyboardNavigation.wrapAround?(e.highlightExportItem(0),t.success):t.next},e.prototype.onKbdClick=function(t){var e=this.chart,n=e.exportDivElements[e.highlightedExportItemIx],i=(e.exportSVGElements&&e.exportSVGElements[0]).element;return this.isExportMenuShown?this.fakeClickEvent(n):(this.fakeClickEvent(i),e.highlightExportItem(0)),t.response.success},e}(n))||(e={})),e})),e(t,"Accessibility/KeyboardNavigation.js",[t["Core/Globals.js"],t["Accessibility/Components/MenuComponent.js"],t["Core/Utilities.js"],t["Accessibility/Utils/EventProvider.js"],t["Accessibility/Utils/HTMLUtilities.js"]],(function(t,e,n,i,r){var o=t.doc,a=t.win,c=n.addEvent,s=n.fireEvent,l=r.getElement;return function(n){function i(){var t=this;s(this,"dismissPopupContent",{},(function(){t.tooltip&&t.tooltip.hide(0),t.hideExportMenu()}))}function r(e){27===(e.which||e.keyCode)&&t.charts&&t.charts.forEach((function(t){t&&t.dismissPopupContent&&t.dismissPopupContent()}))}var a=[];n.compose=function(t){return e.compose(t),-1===a.indexOf(t)&&(a.push(t),t.prototype.dismissPopupContent=i),-1===a.indexOf(o)&&(a.push(o),c(o,"keydown",r)),t}}((n=function(){function t(t,e){this.components=this.chart=void 0,this.currentModuleIx=NaN,this.exitAnchor=this.eventProvider=void 0,this.modules=[],this.tabindexContainer=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var n=this,r=this.eventProvider=new i;this.chart=t,this.components=e,this.modules=[],this.currentModuleIx=0,this.update(),r.addEvent(this.tabindexContainer,"keydown",(function(t){return n.onKeydown(t)})),r.addEvent(this.tabindexContainer,"focus",(function(t){return n.onFocus(t)})),["mouseup","touchend"].forEach((function(t){return r.addEvent(o,t,(function(){return n.onMouseUp()}))})),["mousedown","touchstart"].forEach((function(e){return r.addEvent(t.renderTo,e,(function(){n.isClickingChart=!0}))})),r.addEvent(t.renderTo,"mouseover",(function(){n.pointerIsOverChart=!0})),r.addEvent(t.renderTo,"mouseout",(function(){n.pointerIsOverChart=!1}))},t.prototype.update=function(t){var e=this.chart.options.accessibility;e=e&&e.keyboardNavigation;var n=this.components;this.updateContainerTabindex(),e&&e.enabled&&t&&t.length?(this.modules=t.reduce((function(t,e){return e=n[e].getKeyboardNavigation(),t.concat(e)}),[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())},t.prototype.onFocus=function(t){var e=this.chart;t=t.relatedTarget&&e.container.contains(t.relatedTarget),this.exiting||this.tabbingInBackwards||this.isClickingChart||t||!this.modules[0]||this.modules[0].init(1),this.exiting=!1},t.prototype.onMouseUp=function(){if(delete this.isClickingChart,!this.keyboardReset&&!this.pointerIsOverChart){var t=this.chart,e=this.modules&&this.modules[this.currentModuleIx||0];e&&e.terminate&&e.terminate(),t.focusElement&&t.focusElement.removeFocusBorder(),this.currentModuleIx=0,this.keyboardReset=!0}},t.prototype.onKeydown=function(t){t=t||a.event;var e,n=this.modules&&this.modules.length&&this.modules[this.currentModuleIx];if(this.exiting=this.keyboardReset=!1,n){var i=n.run(t);i===n.response.success?e=!0:i===n.response.prev?e=this.prev():i===n.response.next&&(e=this.next()),e&&(t.preventDefault(),t.stopPropagation())}},t.prototype.prev=function(){return this.move(-1)},t.prototype.next=function(){return this.move(1)},t.prototype.move=function(t){var e=this.modules&&this.modules[this.currentModuleIx];if(e&&e.terminate&&e.terminate(t),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=t,e=this.modules&&this.modules[this.currentModuleIx]){if(e.validate&&!e.validate())return this.move(t);if(e.init)return e.init(t),!0}return this.currentModuleIx=0,this.exiting=!0,0<t?this.exitAnchor.focus():this.tabindexContainer.focus(),!1},t.prototype.updateExitAnchor=function(){var t=l("highcharts-end-of-chart-marker-"+this.chart.index);this.removeExitAnchor(),t?(this.makeElementAnExitAnchor(t),this.exitAnchor=t):this.createExitAnchor()},t.prototype.updateContainerTabindex=function(){var t=this.chart.options.accessibility;t=!((t=t&&t.keyboardNavigation)&&!1===t.enabled);var e=this.chart,n=e.container;e.renderTo.hasAttribute("tabindex")&&(n.removeAttribute("tabindex"),n=e.renderTo),this.tabindexContainer=n;var i=n.getAttribute("tabindex");t&&!i?n.setAttribute("tabindex","0"):t||e.container.removeAttribute("tabindex")},t.prototype.makeElementAnExitAnchor=function(t){var e=this.tabindexContainer.getAttribute("tabindex")||0;t.setAttribute("class","highcharts-exit-anchor"),t.setAttribute("tabindex",e),t.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(t)},t.prototype.createExitAnchor=function(){var t=this.chart,e=this.exitAnchor=o.createElement("div");t.renderTo.appendChild(e),this.makeElementAnExitAnchor(e)},t.prototype.removeExitAnchor=function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)},t.prototype.addExitAnchorEventsToEl=function(t){var e=this.chart,n=this;this.eventProvider.addEvent(t,"focus",(function(t){(t=t||a.event).relatedTarget&&e.container.contains(t.relatedTarget)||n.exiting?n.exiting=!1:(n.tabbingInBackwards=!0,n.tabindexContainer.focus(),delete n.tabbingInBackwards,t.preventDefault(),n.modules&&n.modules.length&&(n.currentModuleIx=n.modules.length-1,(t=n.modules[n.currentModuleIx])&&t.validate&&!t.validate()?n.prev():t&&t.init(-1)))}))},t.prototype.destroy=function(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")},t}
1())||(n={})),n})),e(t,"Accessibility/Components/LegendComponent.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Core/Legend/Legend.js"],t["Core/Utilities.js"],t["Accessibility/AccessibilityComponent.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/HTMLUtilities.js"]],(function(t,e,n,i,r,o,a,c){function s(t){var e=t.legend&&t.legend.allItems,n=t.options.legend.accessibility||{};return!(!e||!e.length||t.colorAxis&&t.colorAxis.length||!1===n.enabled)}var l=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=t.animObject,d=i.addEvent,h=i.fireEvent,f=i.isNumber,p=i.pick,m=i.syncTimeout,g=a.getChartTitle,y=c.stripHTMLTagsFromString,v=c.addClass,b=c.removeClass;return function(t){function e(t){var e=this.legend.allItems,n=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,i=e[t];return!!i&&(f(n)&&e[n]&&h(e[n].legendGroup.element,"mouseout"),t=(e=this.legend).allItems[t].pageIx,n=e.currentPage,void 0!==t&&t+1!==n&&e.scroll(1+t-n),t=i.legendItem,e=i.a11yProxyElement&&i.a11yProxyElement.buttonElement,t&&t.element&&e&&this.setFocusToElement(t,e),i.legendGroup&&h(i.legendGroup.element,"mouseover"),!0)}function n(t){var e=t.item;this.chart.options.accessibility.enabled&&e&&e.a11yProxyElement&&e.a11yProxyElement.buttonElement.setAttribute("aria-pressed",t.visible?"true":"false")}var i=[];t.compose=function(t,r){-1===i.indexOf(t)&&(i.push(t),t.prototype.highlightLegendItem=e),-1===i.indexOf(r)&&(i.push(r),d(r,"afterColorizeItem",n))}}((t=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.highlightedLegendItemIx=NaN,e}return l(i,t),i.prototype.init=function(){var t=this;this.recreateProxies(),this.addEvent(n,"afterScroll",(function(){this.chart===t.chart&&(t.proxyProvider.updateGroupProxyElementPositions("legend"),t.updateLegendItemProxyVisibility(),-1<t.highlightedLegendItemIx&&this.chart.highlightLegendItem(t.highlightedLegendItemIx))})),this.addEvent(n,"afterPositionItem",(function(e){this.chart===t.chart&&this.chart.renderer&&t.updateProxyPositionForItem(e.item)}
1)),this.addEvent(n,"afterRender",(function(){this.chart===t.chart&&this.chart.renderer&&t.recreateProxies()&&m((function(){return t.proxyProvider.updateGroupProxyElementPositions("legend")}),u(p(this.chart.renderer.globalAnimation,!0)).duration)}))},i.prototype.updateLegendItemProxyVisibility=function(){var t=this.chart,e=t.legend,n=e.currentPage||1,i=e.clipHeight||0;(e.allItems||[]).forEach((function(r){if(r.a11yProxyElement){var o=r.a11yProxyElement.element,a=!1;if(e.pages&&e.pages.length)a=r.pageIx||0,a=(r._legendItemPos?r._legendItemPos[1]:0)+(r=r.legendItem?Math.round(r.legendItem.getBBox().height):0)-e.pages[a]>i||a!==n-1;a?t.styledMode?v(o,"highcharts-a11y-invisible"):o.style.visibility="hidden":(b(o,"highcharts-a11y-invisible"),o.style.visibility="")}}))},i.prototype.onChartRender=function(){s(this.chart)||this.removeProxies()},i.prototype.highlightAdjacentLegendPage=function(t){var e=this.chart,n=e.legend;t=(n.currentPage||1)+t;var i=n.pages||[];if(0<t&&t<=i.length){i=n.allItems.length;for(var r=0;r<i;++r)if(n.allItems[r].pageIx+1===t){e.highlightLegendItem(r)&&(this.highlightedLegendItemIx=r);break}}},i.prototype.updateProxyPositionForItem=function(t){t.a11yProxyElement&&t.a11yProxyElement.refreshPosition()},i.prototype.recreateProxies=function(){return this.removeProxies(),!!s(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),!0)},i.prototype.removeProxies=function(){this.proxyProvider.removeGroup("legend")},i.prototype.updateLegendTitle=function(){var t=this.chart,e=y((t.legend&&t.legend.options.title&&t.legend.options.title.text||"").replace(/<br ?\/?>/g," "));t=t.langFormat("accessibility.legend.legendLabel"+(e?"":"NoTitle"),{chart:t,legendTitle:e,chartTitle:g(t)}),this.proxyProvider.updateGroupAttrs("legend",{"aria-label":t})},i.prototype.addLegendProxyGroup=function(){this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:"all"===this.chart.options.accessibility.landmarkVerbosity?"region":null})},i.prototype.proxyLegendItems=function(){var t=this;(this.chart.legend&&this.chart.legend.allItems||[]).forEach((function(e){e.legendItem&&e.legendItem.element&&t.proxyLegendItem(e)}))},i.prototype.proxyLegendItem=function(t){if(t.legendItem&&t.legendGroup){var e=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:y(t.name),item:t});t.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:t.legendItem,visual:(t.legendGroup.div?t.legendItem:t.legendGroup).element},{tabindex:-1,"aria-pressed":t.visible,"aria-label":e})}},i.prototype.getKeyboardNavigation=function(){var t=this.keyCodes,n=this,i=this.chart;return new o(i,{keyCodeMap:[[[t.left,t.right,t.up,t.down],function(t){return n.onKbdArrowKey(this,t)}],[[t.enter,t.space],function(i){return e.isFirefox&&i===t.space?this.response.success:n.onKbdClick(this)}],[[t.pageDown,t.pageUp],function(e){return n.highlightAdjacentLegendPage(e===t.pageDown?1:-1),this.response.success}]],validate:function(){return n.shouldHaveLegendNavigation()},init:function(t){return n.onKbdNavigationInit(t)},terminate:function(){n.highlightedLegendItemIx=-1,i.legend.allItems.forEach((function(t){return t.setState("",!0)}))}})},i.prototype.onKbdArrowKey=function(t,e){var n=this.keyCodes,i=t.response,r=this.chart,o=r.options.accessibility,a=r.legend.allItems.length;return e=e===n.left||e===n.up?-1:1,r.highlightLegendItem(this.highlightedLegendItemIx+e)?(this.highlightedLegendItemIx+=e,i.success):1<a&&o.keyboardNavigation.wrapAround?(t.init(e),i.success):i[0<e?"next":"prev"]},i.prototype.onKbdClick=function(t){var e=this.chart.legend.allItems[this.highlightedLegendItemIx];return e&&e.a11yProxyElement&&e.a11yProxyElement.click(),t.response.success},i.prototype.shouldHaveLegendNavigation=function(){var t=this.chart,e=t.colorAxis&&t.colorAxis.length,n=(t.options.legend||{}).accessibility||{};return!!(t.legend&&t.legend.allItems&&t.legend.display&&!e&&n.enabled&&n.keyboardNavigation&&n.keyboardNavigation.enabled)},i.prototype.onKbdNavigationInit=function(t){var e=this.chart,n=e.legend.allItems.length-1;t=0<t?0:n,e.highlightLegendItem(t),this.highlightedLegendItemIx=t},i}(r))||(t={})),t})),e(t,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[t["Accessibility/Components/AnnotationsA11y.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Core/FormatUtilities.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Core/Utilities.js"]],(function(t,e,n,i,r){function o(t){var e=t.index;return t.series&&t.series.data&&A(e)&&_(t.series.data,(function(t){return!!(t&&void 0!==t.index&&t.index>e&&t.graphic&&t.graphic.element)}))||null}function a(t){var e=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(!1!==e&&t.points&&t.points.length>=e)}function c(t,e){var n=t.series,i=n.chart;t=i.options.accessibility.point||{};var r=n.options.accessibility&&n.options.accessibility.point||{};return n=n.tooltipOptions||{},i=i.options.lang,S(e)?v(e,r.valueDecimals||t.valueDecimals||n.valueDecimals||-1,i.decimalPoint,i.accessibility.thousandsSep||i.thousandsSep):e}function s(t,e){return t.chart.langFormat("accessibility.series."+e+"Description",{name:f(t[e]),series:t})}function l(t){var e=t.series,n=e.chart,i=t.series,r=i.chart,o=i.options.accessibility;if(o=o&&o.point&&o.point.valueDescriptionFormat||r.options.accessibility.point.valueDescriptionFormat,i=w(i.xAxis&&i.xAxis.options.accessibility&&i.xAxis.options.accessibility.enabled,!r.angular)){var a=t.series,s=a.chart,l=a.options.accessibility&&a.options.accessibility.point||{},u=s.options.accessibility.point||{};(a=a.xAxis&&a.xAxis.dateTime)?(a=a.getXDateFormat(t.x||0,s.options.tooltip.dateTimeLabelFormats),l=l.dateFormatter&&l.dateFormatter(t)||u.dateFormatter&&u.dateFormatter(t)||l.dateFormat||u.dateFormat||a,s=s.time.dateFormat(l,t.x||0,void 0)):s=void 0,l=(t.series.xAxis||{}).categories&&A(t.category)&&(""+t.category).replace("<br/>
1"," "),u=t.id&&0>t.id.indexOf("highcharts-"),a="x, "+t.x,s=t.name||s||l||(u?t.id:a)}else s="";l=A(t.index)?t.index+1:"";var d=(u=t.series).chart.options.accessibility.point||{},f=u.chart.options.accessibility&&u.chart.options.accessibility.point||{},p=u.tooltipOptions||{};return a=f.valuePrefix||d.valuePrefix||p.valuePrefix||"",d=f.valueSuffix||d.valueSuffix||p.valueSuffix||"",f=c(t,t[void 0!==t.value?"value":"y"]),u=t.isNull?u.chart.langFormat("accessibility.series.nullPointValue",{point:t}):u.pointArrayMap?function(t,e,n){var i=e||"",r=n||"";return t.series.pointArrayMap.reduce((function(e,n){e+=e.length?", ":"";var o=c(t,w(t[n],t.options[n]));return e+(n+": ")+i+o+r}),"")}(t,a,d):a+f+d,r=y(o,{point:t,index:l,xDescription:s,value:u,separator:i?", ":""},r),o=(o=t.options&&t.options.accessibility&&t.options.accessibility.description)?" "+o:"",e=1<n.series.length&&e.name?" "+e.name+".":"",n=t.series.chart,s={point:t,annotations:i=h(t)},n=i.length?n.langFormat("accessibility.series.pointAnnotationsDescription",s):"",t.accessibility=t.accessibility||{},t.accessibility.valueDescription=r,r+o+e+(n?" "+n:"")}function u(t){var e=function(t){var e=t.options.accessibility||{};return!a(t)&&!e.exposeAsGroupOnly}(t),n=function(t){var e=t.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!t.points||!(t.points.length<e.pointNavigationEnabledThreshold||!1===e.pointNavigationEnabledThreshold))}(t);(e||n)&&t.points.forEach((function(n){var i;if(!(i=n.graphic&&n.graphic.element)&&(i=n.series&&n.series.is("sunburst"),i=n.isNull&&!i)){var r=n.series,a=o(n);r=(i=a&&a.graphic)?i.parentGroup:r.graph||r.group,a=a?{x:w(n.plotX,a.plotX,0),y:w(n.plotY,a.plotY,0)}:{x:w(n.plotX,0),y:w(n.plotY,0)},(a=n.series.chart.renderer.rect(a.x,a.y,1,1)).attr({class:"highcharts-a11y-dummy-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),r&&r.element?(n.graphic=a,n.hasDummyGraphic=!0,a.add(r),r.element.insertBefore(a.element,i?i.element:null),i=a.element):i=void 0}r=n.options&&n.options.accessibility&&!1===n.options.accessibility.enabled,i&&(i.setAttribute("tabindex","-1"),t.chart.styledMode||(i.style.outline="none"),e&&!r?(r=(a=n.series).chart.options.accessibility.point||{},a=a.options.accessibility&&a.options.accessibility.point||{},n=x(a.descriptionFormatter&&a.descriptionFormatter(n)||r.descriptionFormatter&&r.descriptionFormatter(n)||l(n)),i.setAttribute("role","img"),i.setAttribute("aria-label",n)):i.setAttribute("aria-hidden",!0))}))}function d(t){var e=t.chart,n=e.types||[],i=function(t){var e=(t.options.accessibility||{}).description;return e&&t.chart.langFormat("accessibility.series.description",{description:e,series:t})||""}(t),r=function(n){return e[n]&&1<e[n].length&&t[n]},o=s(t,"xAxis"),a=s(t,"yAxis"),c={name:t.name||"",ix:t.index+1,numSeries:e.series&&e.series.length,numPoints:t.points&&t.points.length,series:t};return n=1<n.length?"Combination":"",(e.langFormat("accessibility.series.summary."+t.type+n,c)||e.langFormat("accessibility.series.summary.default"+n,c))+(i?" "+i:"")+(r("yAxis")?" "+a:"")+(r("xAxis")?" "+o:"")}var h=t.getPointAnnotationTexts,f=e.getAxisDescription,p=e.getSeriesFirstPointElement,m=e.getSeriesA11yElement,g=e.unhideChartElementFromAT,y=n.format,v=n.numberFormat,b=i.reverseChildNodes,x=i.stripHTMLTagsFromString,_=r.find,S=r.isNumber,w=r.pick,A=r.defined;return{defaultPointDescriptionFormatter:l,defaultSeriesDescriptionFormatter:d,describeSeries:function(t){var e=t.chart,n=p(t),i=m(t),r=e.is3d&&e.is3d();if(i){i.lastChild!==n||r||b(i),u(t),g(e,i),e=(r=t.chart).options.chart,n=1<r.series.length,r=r.options.accessibility.series.describeSingleSeries;var o=(t.options.accessibility||{}).exposeAsGroupOnly;e.options3d&&e.options3d.enabled&&n||!(n||r||o||a(t))?i.setAttribute("aria-label",""):(n=(e=t.chart.options.accessibility).landmarkVerbosity,(t.options.accessibility||{}).exposeAsGroupOnly?i.setAttribute("role","img"):"all"===n&&i.setAttribute("role","region"),i.setAttribute("tabindex","-1"),t.chart.styledMode||(i.style.outline="none"),i.setAttribute("aria-label",x(e.series.descriptionFormatter&&e.series.descriptionFormatter(t)||d(t))))}}}})),e(t,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[t["Core/Globals.js"],t["Core/Utilities.js"],t["Accessibility/Utils/Announcer.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/EventProvider.js"],t["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],(function(t,e,n,i,r,o){var a=e.addEvent,c=e.defined,s=i.getChartTitle,l=o.defaultPointDescriptionFormatter,u=o.defaultSeriesDescriptionFormatter;return function(t){function e(t){var e=this.chart,n=this.newDataAnnouncer;
1n&&n.chart===e&&e.options.accessibility.announceNewData.enabled&&(n.dirty.newPoint=c(n.dirty.newPoint)?void 0:t.point)}function n(){var t=this.chart,e=this.newDataAnnouncer;e&&e.chart===t&&t.options.accessibility.announceNewData.enabled&&(e.dirty.hasDirty=!0,e.dirty.allSeries[this.name+this.index]=this)}t.composedClasses=[],t.compose=function(i){-1===t.composedClasses.indexOf(i)&&(t.composedClasses.push(i),a(i,"addPoint",e),a(i,"updatedData",n))}}((e=function(){function e(t){this.announcer=void 0,this.dirty={allSeries:{}},this.eventProvider=void 0,this.lastAnnouncementTime=0,this.chart=t}return e.prototype.init=function(){var t=this.chart,e=t.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new r,this.announcer=new n(t,e),this.addEventListeners()},e.prototype.destroy=function(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()},e.prototype.addEventListeners=function(){var t=this,e=this.chart,n=this.eventProvider;n.addEvent(e,"afterDrilldown",(function(){t.lastAnnouncementTime=0})),n.addEvent(e,"afterAddSeries",(function(e){t.onSeriesAdded(e.series)})),n.addEvent(e,"redraw",(function(){t.announceDirtyData()}))},e.prototype.onSeriesAdded=function(t){this.chart.options.accessibility.announceNewData.enabled&&(this.dirty.hasDirty=!0,this.dirty.allSeries[t.name+t.index]=t,this.dirty.newSeries=c(this.dirty.newSeries)?void 0:t)},e.prototype.announceDirtyData=function(){var t=this;if(this.chart.options.accessibility.announceNewData&&this.dirty.hasDirty){var e=this.dirty.newPoint;e&&(e=function(t){var e=t.series.data.filter((function(e){return t.x===e.x&&t.y===e.y}));return 1===e.length?e[0]:t}(e)),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map((function(e){return t.dirty.allSeries[e]})),this.dirty.newSeries,e),this.dirty={allSeries:{}}}},e.prototype.queueAnnouncement=function(t,e,n){var i=this,r=this.chart.options.accessibility.announceNewData;if(r.enabled){var o=+new Date;r=Math.max(0,r.minAnnounceInterval-(o-this.lastAnnouncementTime)),t=function(t,e){var n=(t||[]).concat(e||[]).reduce((function(t,e){return t[e.name+e.index]=e,t}),{});return Object.keys(n).map((function(t){return n[t]}))}(this.queuedAnnouncement&&this.queuedAnnouncement.series,t),(e=this.buildAnnouncementMessage(t,e,n))&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:o,message:e,series:t},this.queuedAnnouncementTimer=setTimeout((function(){i&&i.announcer&&(i.lastAnnouncementTime=+new Date,i.announcer.announce(i.queuedAnnouncement.message),delete i.queuedAnnouncement,delete i.queuedAnnouncementTimer)}),r))}},e.prototype.buildAnnouncementMessage=function(e,n,i){var r=this.chart,o=r.options.accessibility.announceNewData;return o.announcementFormatter&&!1!==(e=o.announcementFormatter(e,n,i))?e.length?e:null:(e=t.charts&&1<t.charts.length?"Multiple":"Single",e=n?"newSeriesAnnounce"+e:i?"newPointAnnounce"+e:"newDataAnnounce",o=s(r),r.langFormat("accessibility.announceNewData."+e,{chartTitle:o,seriesDesc:n?u(n):null,pointDesc:i?l(i):null,point:i,series:n}))},e}())||(e={})),e})),e(t,"Accessibility/ProxyElement.js",[t["Core/Globals.js"],t["Core/Utilities.js"],t["Accessibility/Utils/EventProvider.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/HTMLUtilities.js"]],(function(t,e,n,i,r){var o=t.doc,a=e.attr,c=e.css,s=e.merge,l=i.fireEventOnWrappedOrUnwrappedElement,u=r.cloneMouseEvent,d=r.cloneTouchEvent,h=r.getFakeMouseEvent,f=r.removeElement;return function(){function t(t,e,i,r){this.chart=t,this.target=e,this.groupType=i,i="ul"===i,this.eventProvider=new n;var a=i?o.createElement("li"):null,c=this.buttonElement=o.createElement("button");t.styledMode||this.hideButtonVisually(c),a?(i&&!t.styledMode&&(a.style.listStyle="none"),a.appendChild(c),this.element=a):this.element=c,this.updateTarget(e,r)}return t.prototype.click=function(){var t=this.getTargetPosition();t.x+=t.width/2,t.y+=t.height/2,t=h("click",t),l(this.target.click,t)},t.prototype.updateTarget=function(t,e){this.target=t,this.updateCSSClassName(),a(this.buttonElement,s({"aria-label":this.getTargetAttr(t.click,"aria-label")},e)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToButton(this.buttonElement,t.click),this.refreshPosition()},t.prototype.refreshPosition=function(){var t=this.getTargetPosition();c(this.buttonElement,{width:(t.width||1)+"px",height:(t.height||1)+"px",left:(Math.round(t.x)||0)+"px",top:(Math.round(t.y)||0)+"px"})},t.prototype.remove=function(){this.eventProvider.removeAddedEvents(),f(this.element)},t.prototype.updateCSSClassName=function(){var t=this.chart.legend;t=-1<((t=t.group&&t.group.div)&&t.className||"").indexOf("highcharts-no-tooltip");var e=-1<(this.getTargetAttr(this.target.click,"class")||"").indexOf("highcharts-no-tooltip");this.buttonElement.className=t||e?"highcharts-a11y-proxy-button highcharts-no-tooltip":"highcharts-a11y-proxy-button"},t.prototype.addProxyEventsToButton=function(t,e){var n=this;"click touchstart touchend touchcancel touchmove mouseover mouseenter mouseleave mouseout".split(" ").forEach((function(i){var r=0===i.indexOf("touch");n.eventProvider.addEvent(t,i,(function(t){var n=r?d(t):u(t);e&&l(e,n),t.stopPropagation(),r||t.preventDefault()}),{passive:!1})}
1))},t.prototype.hideButtonVisually=function(t){c(t,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})},t.prototype.getTargetPosition=function(){var t=this.target.click;t=t.element?t.element:t;var e=this.target.visual||t;return(t=this.chart.renderTo)&&e&&e.getBoundingClientRect?(e=e.getBoundingClientRect(),t=t.getBoundingClientRect(),{x:e.left-t.left,y:e.top-t.top,width:e.right-e.left,height:e.bottom-e.top}):{x:0,y:0,width:1,height:1}},t.prototype.getTargetAttr=function(t,e){return t.element?t.element.getAttribute(e):t.getAttribute(e)},t}()})),e(t,"Accessibility/ProxyProvider.js",[t["Core/Globals.js"],t["Core/Utilities.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/DOMElementProvider.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Accessibility/ProxyElement.js"]],(function(t,e,n,i,r,o){var a=t.doc,c=e.attr,s=e.css,l=n.unhideChartElementFromAT,u=r.removeElement,d=r.removeChildNodes;return function(){function t(t){this.chart=t,this.domElementProvider=new i,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}return t.prototype.addProxyElement=function(t,e,n){var i=this.groups[t];if(!i)throw Error("ProxyProvider.addProxyElement: Invalid group key "+t);return t=new o(this.chart,e,i.type,n),i.proxyContainerElement.appendChild(t.element),i.proxyElements.push(t),t},t.prototype.addGroup=function(t,e,n){if(!this.groups[t]){var i=this.domElementProvider.createElement(e);if(n&&n.role&&"div"!==e){var r=this.domElementProvider.createElement("div");r.appendChild(i)}else r=i;r.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+t.replace(/\W/g,"-"),this.groups[t]={proxyContainerElement:i,groupElement:r,type:e,proxyElements:[]},c(r,n||{}),"ul"===e&&i.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(r),this.updateGroupOrder(this.groupOrder)}},t.prototype.updateGroupAttrs=function(t,e){var n=this.groups[t];if(!n)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+t);c(n.groupElement,e)},t.prototype.updateGroupOrder=function(t){var e=this;if(this.groupOrder=t.slice(),!this.isDOMOrderGroupOrder()){var n=t.indexOf("series"),i=-1<n?t.slice(0,n):t,r=-1<n?t.slice(n+1):[];t=a.activeElement,["before","after"].forEach((function(t){var n=e["before"===t?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];t="before"===t?i:r,d(n),t.forEach((function(t){(t=e.groups[t])&&n.appendChild(t.groupElement)}))})),(this.beforeChartProxyPosContainer.contains(t)||this.afterChartProxyPosContainer.contains(t))&&t&&t.focus&&t.focus()}},t.prototype.clearGroup=function(t){var e=this.groups[t];if(!e)throw Error("ProxyProvider.clearGroup: Invalid group key "+t);d(e.proxyContainerElement)},t.prototype.removeGroup=function(t){var e=this.groups[t];e&&(u(e.groupElement),delete this.groups[t])},t.prototype.update=function(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()},t.prototype.updateProxyElementPositions=function(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))},t.prototype.updateGroupProxyElementPositions=function(t){(t=this.groups[t])&&t.proxyElements.forEach((function(t){return t.refreshPosition()}))},t.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},t.prototype.createProxyPosContainer=function(t){var e=this.domElementProvider.createElement("div");return e.setAttribute("aria-hidden","false"),e.className="highcharts-a11y-proxy-container"+(t?"-"+t:""),s(e,{top:"0",left:"0"}),this.chart.styledMode||(e.style.whiteSpace="nowrap",e.style.position="absolute"),e},t.prototype.getCurrentGroupOrderInDOM=function(){var t=this,e=function(e){var n=[];e=e.children;for(var i=0;i<e.length;++i){t:{for(var r=e[i],o=Object.keys(t.groups),a=o.length;a--;){var c=o[a],s=t.groups[c];if(s&&r===s.groupElement){r=c;break t}}r=void 0}r&&n.push(r)}return n},n=e(this.beforeChartProxyPosContainer);return e=e(this.afterChartProxyPosContainer),n.push("series"),n.concat(e)},t.prototype.isDOMOrderGroupOrder=function(){var t=this,e=this.getCurrentGroupOrderInDOM(),n=this.groupOrder.filter((function(e){return"series"===e||!!t.groups[e]})),i=e.length;if(i!==n.length)return!1;for(;i--;)if(e[i]!==n[i])return!1;return!0},t.prototype.updatePosContainerPositions=function(){var t=this.chart,e=t.renderer.box;t.container.insertBefore(this.afterChartProxyPosContainer,e.nextSibling),t.container.insertBefore(this.beforeChartProxyPosContainer,e),l(this.chart,this.afterChartProxyPosContainer),l(this.chart,this.beforeChartProxyPosContainer)},t}()})),e(t,"Extensions/RangeSelector.js",[t["Core/Axis/Axis.js"],t["Core/Chart/Chart.js"],t["Core/Globals.js"],t["Core/DefaultOptions.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],(function(t,e,n,i,r,o){var a=i.defaultOptions,c=o.addEvent,s=o.createElement,l=o.css,u=o.defined,d=o.destroyObjectProperties,h=o.discardElement,f=o.extend,p=o.find,m=o.fireEvent,g=o.isNumber,y=o.merge,v=o.objectEach,b=o.pad,x=o.pick,_=o.pInt,S=o.splat;f(a,{rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}),f(a.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"â"});var w=function(){function e(t){this.buttons=void 0,this.buttonOptions=e.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=t,this.init(t)}return e.prototype.clickButton=function(e,n){var i=this.chart,r=this.buttonOptions[e],o=i.xAxis[0],a=i.scroller&&i.scroller.getUnionExtremes()||o||{},s=a.dataMin,l=a.dataMax,d=o&&Math.round(Math.min(o.max,x(l,o.max))),h=r.type;a=r._range;var f,p=r.dataGrouping;if(null!==s&&null!==l){if(i.fixedRange=a,this.setSelected(e),p&&(this.forcedDataGrouping=!0,t.prototype.setDataGrouping.call(o||{chart:this.chart},p,!1),this.frozenStates=r.preserveDataGrouping),"month"===h||"year"===h)if(o){h={range:r,max:d,chart:i,dataMin:s,dataMax:l};var y=o.minFromRange.call(h);g(h.newMax)&&(d=h.newMax)}else a=r;else if(a)y=Math.max(d-a,s),d=Math.min(y+a,l);else if("ytd"===h){if(!o)return void(this.deferredYTDClick=e);void 0===l&&(s=Number.MAX_VALUE,l=Number.MIN_VALUE,i.series.forEac
1h((function(t){t=t.xData,s=Math.min(t[0],s),l=Math.max(t[t.length-1],l)})),n=!1),y=f=(d=this.getYTDExtremes(l,s,i.time.useUTC)).min,d=d.max}else"all"===h&&o&&(i.navigator&&i.navigator.baseSeries[0]&&(i.navigator.baseSeries[0].xAxis.options.range=void 0),y=s,d=l);if(u(y)&&(y+=r._offsetMin),u(d)&&(d+=r._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=e+1),o)o.setExtremes(y,d,x(n,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:r});else{var v=S(i.options.xAxis)[0],b=v.range;v.range=a;var _=v.min;v.min=f,c(i,"load",(function(){v.range=b,v.min=_}))}m(this,"afterBtnClick")}},e.prototype.setSelected=function(t){this.selected=this.options.selected=t},e.prototype.init=function(t){var e=this,n=t.options.rangeSelector,i=n.buttons||e.defaultButtons.slice(),r=n.selected,o=function(){var t=e.minInput,n=e.maxInput;t&&t.blur&&m(t,"blur"),n&&n.blur&&m(n,"blur")};e.chart=t,e.options=n,e.buttons=[],e.buttonOptions=i,this.eventsToUnbind=[],this.eventsToUnbind.push(c(t.container,"mousedown",o)),this.eventsToUnbind.push(c(t,"resize",o)),i.forEac
1h(e.computeButtonRange),void 0!==r&&i[r]&&this.clickButton(r,!1),this.eventsToUnbind.push(c(t,"load",(function(){t.xAxis&&t.xAxis[0]&&c(t.xAxis[0],"setExtremes",(function(n){this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==n.trigger&&"updatedData"!==n.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)}))})))},e.prototype.updateButtonStates=function(){var t=this,e=this.chart,n=this.dropdown,i=e.xAxis[0],r=Math.round(i.max-i.min),o=!i.hasVisibleSeries,a=e.scroller&&e.scroller.getUnionExtremes()||i,c=a.dataMin,s=a.dataMax,l=(e=t.getYTDExtremes(s,c,e.time.useUTC)).min,u=e.max,d=t.selected,h=g(d),f=t.options.allButtonsEnabled,p=t.buttons;t.buttonOptions.forEach((function(e,a){var m=e._range,g=e.type,y=e.count||1,v=p[a],b=0,x=e._offsetMax-e._offsetMin;e=a===d;var _=m>s-c,S=m<i.minRange,w=!1,A=!1;m=m===r,("month"===g||"year"===g)&&r+36e5>=864e5*{month:28,year:365}[g]*y-x&&r-36e5<=864e5*{month:31,year:366}[g]*y+x?m=!0:"ytd"===g?(m=u-l+x===r,w=!e):"all"===g&&(m=i.max-i.min>=s-c,A=!e&&h&&m),g=!f&&(_||S||A||o),y=e&&m||m&&!h&&!w||e&&t.frozenStates,g?b=3:y&&(h=!0,b=2),v.state!==b&&(v.setState(b),n&&(n.options[a+1].disabled=g,2===b&&(n.selectedIndex=a+1)),0===b&&d===a&&t.setSelected())}))},e.prototype.computeButtonRange=function(t){var e=t.type,n=t.count||1,i={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};i[e]?t._range=i[e]*n:"month"!==e&&"year"!==e||(t._range=864e5*{month:30,year:365}[e]*n),t._offsetMin=x(t.offsetMin,0),t._offsetMax=x(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},e.prototype.getInputValue=function(t){t="min"===t?this.minInput:this.maxInput;var e=this.chart.options.rangeSelector,n=this.chart.time;return t?("text"===t.type&&e.inputDateParser||this.defaultInputDateParser)(t.value,n.useUTC,n):0},e.prototype.setInputValue=function(t,e){var n=this.options,i=this.chart.time,r="min"===t?this.minInput:this.maxInput;if(t="min"===t?this.minDateBox:this.maxDateBox,r){var o=r.getAttribute("data-hc-time");o=u(o)?Number(o):void 0,u(e)&&(u(o)&&r.setAttribute("data-hc-time-previous",o),r.setAttribute("data-hc-time",e),o=e),r.value=i.dateFormat(this.inputTypeFormats[r.type]||n.inputEditDateFormat,o),t&&t.attr({text:i.dateFormat(n.inputDateFormat,o)})}},e.prototype.setInputExtremes=function(t,e,n){if(t="min"===t?this.minInput:this.maxInput){var i=this.inputTypeFormats[t.type],r=this.chart.time;i&&(e=r.dateFormat(i,e),t.min!==e&&(t.min=e),n=r.dateFormat(i,n),t.max!==n&&(t.max=n))}},e.prototype.showInput=function(t){var e="min"===t?this.minDateBox:this.maxDateBox;if((t="min"===t?this.minInput:this.maxInput)&&e&&this.inputGroup){var n="text"===t.type,i=this.inputGroup,r=i.translateX;i=i.translateY;var o=this.options.inputBoxWidth;l(t,{width:n?e.width+(o?-2:20)+"px":"auto",height:n?e.height-2+"px":"auto",border:"2px solid silver"}),l(t,n&&o?{left:r+e.x+"px",top:i+"px"}:{left:Math.min(Math.round(e.x+r-(t.offsetWidth-e.width)/2),this.chart.chartWidth-t.offsetWidth)+"px",top:i-(t.offsetHeight-e.height)/2+"px"})}},e.prototype.hideInput=function(t){(t="min"===t?this.minInput:this.maxInput)&&l(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},e.prototype.defaultInputDateParser=function(t,e,i){var r,o=t.split("/").join("-").split(" ").join("T");(-1===o.indexOf("T")&&(o+="T00:00"),e)?o+="Z":((r=n.isSafari)&&(r=!(6<(r=o).length&&(r.lastIndexOf("-")===r.length-6||r.lastIndexOf("+")===r.length-6))),r&&(o+=0>=(r=new Date(o).getTimezoneOffset()/60)?"+"+b(-r)+":00":"-"+b(r)+":00"));return o=Date.parse(o),g(o)||(t=t.split("-"),o=Date.UTC(_(t[0]),_(t[1])-1,_(t[2]))),i&&e&&g(o)&&(o+=i.getTimezoneOffset(o)),o},e.prototype.drawInput=function(t){function e(){var e=c.getInputValue(t),n=i.xAxis[0],r=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:n,o=r.dataMin;r=r.dataMax;var a=c.maxInput,s=c.minInput;e!==Number(v.getAttribute("data-hc-time-previous"))&&g(e)&&(v.setAttribute("data-hc-time-previous",e),p&&a&&g(o)?e>Number(a.getAttribute("data-hc-time"))?e=void 0:e<o&&(e=o):s&&g(r)&&(e<Number(s.getAttribute("data-hc-time"))?e=void 0:e>r&&(e=r)),void 0!==e&&n.setExtremes(p?e:n.min,p?n.max:e,void 0,void 0,{trigger:"rangeSelectorInput"}))}var i=this.chart,r=this.div,o=this.inputGroup,c=this,u=i.renderer.style||{},d=i.renderer,h=i.options.rangeSelector,p="min"===t,m=a.lang[p?"rangeSelectorFrom":"rangeSelectorTo"]||"";m=d.label(m,0).addClass("highcharts-range-label").attr({padding:m?2:0,height:m?h.inputBoxHeight:0}).add(o),d=d.label("",0).addClass("highcharts-range-input").attr({padding:2,width:h.inputBoxWidth,height:h.inputBoxHeight,"text-align":"center"}).on("click",(function(){c.showInput(t),c[t+"Input"].focus()})),i.styledMode||d.attr({stroke:h.inputBoxBorderColor,"stroke-width":1}),d.add(o);var v=s("input",{name:t,className:"highcharts-range-selector"},void 0,r);v.setAttribute("type",function(t){if(-1!==t.indexOf("%L"))return"text";var e="aAdewbBmoyY".split("").some((function(e){return-1!==t.indexOf("%"+e)})),n="HkIlMS".split("").some((function(e){return-1!==t.indexOf("%"+e)}));return e&&n?"datetime-local":e?"date":n?"time":"text"}(h.inputDateFormat||"%b %e, %Y")),i.styledMode||(m.css(y(u,h.labelStyle)),d.css(y({color:"#333333"},u,h.inputStyle)),l(v,f({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:u.fontSize,fontFamily:u.fontFamily,top:"-9999em"},h.inputStyle))),v.onfocus=function(){c.showInput(t)},v.onblur=function(){v===n.doc.activeElement&&e(),c.hideInput(t),c.setInputValue(t),v.blur()};var b=!1;return v.onchange=function(){b||(e(),c.hideInput(t),v.blur())},v.onkeypress=function(t){13===t.keyCode&&e()},v.onkeydown=function(t){b=!0,38!==t.keyCode&&40!==t.keyCode||e()},v.onkeyup=function(){b=!1},{dateBox:d,input:v,label:m}},e.prototype.getPosition=function(){var t=this.chart,e=t.options.rangeSelector;return{buttonTop:(t="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0)+e.buttonPosition.y,inputTop:t+e.inputPosition.y-10}},e.prototype.getYTDExtremes=function(t,e,n){var i=this.chart.time,r=new i.Date(t),o=i.get("FullYear",r);return n=n?i.Date.UTC(o,0,1):+new i.Date(o,0,1),e=Math.max(e,n),r=r.getTime(),{max:Math.min(t||r,r),min:e}},e.prototype.render=function(t,e){var n=this.chart,i=n.renderer,r=n.container,o=n.options,a=o.rangeSelector,c=x(o.chart.style&&o.chart.style.zIndex,0)+1;if(o=a.inputEnabled,!1!==a.enabled){if(this.rendered||(this.group=i.g("range-selector-group").attr({zIndex:7}).add(),this.div=s("div",void 0,{position:"relative",height:0,zIndex:c}),this.buttonOptions.length&&this.renderButtons(),r.parentNode&&r.parentNode.insertBefore(this.div,r),o&&(this.inputGroup=i.g("input-group").add(this.group),i=this.drawInput("min"),this.minDateBox=i.dateBox,this.minLabel=i.label,this.minInput=i.input,i=this.drawInput("max"),this.maxDateBox=i.dateBox,this.maxLabel=i.label,this.maxInput=i.input)),o&&(this.setInputValue("min",t),this.setInputValue("max",e),t=n.scroller&&n.scroller.getUnionExtremes()||n.xAxis[0]||{},u(t.dataMin)&&u(t.dataMax)&&(n=n.xAxis[0].minRange||0,this.setInputExtremes("min",t.dataMin,Math.min(t.dataMax,this.getInputValue("max"))-n),this.setInputExtremes("max",Math.max(t.dataMin,this.getInputValue("min"))+n,t.dataMax)),this.inputGroup)){var l=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEac
1h((function(t){if(t){var e=t.getBBox().width;e&&(t.attr({x:l}),l+=e+a.inputSpacing)}}))}this.alignElements(),this.rendered=!0}},e.prototype.renderButtons=function(){var t=this,e=this.buttons,i=this.options,r=a.lang,o=this.chart.renderer,l=y(i.buttonTheme),u=l&&l.states,d=l.width||28;delete l.width,delete l.states,this.buttonGroup=o.g("range-selector-buttons").add(this.group);var h=this.dropdown=s("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);c(h,"touchstart",(function(){h.style.fontSize="16px"})),[[n.isMS?"mouseover":"mouseenter"],[n.isMS?"mouseout":"mouseleave"],["change","click"]].forEach((function(n){var i=n[0],r=n[1];c(h,i,(function(){var n=e[t.currentButtonIndex()];n&&m(n.element,r||i)}))})),this.zoomText=o.label(r&&r.rangeSelectorZoom||"",0).attr({padding:i.buttonTheme.padding,height:i.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(i.labelStyle),l["stroke-width"]=x(l["stroke-width"],0)),s("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,h),this.buttonOptions.forEach((function(n,i){s("option",{textContent:n.title||n.text},void 0,h),e[i]=o.button(n.text,0,0,(function(e){var r,o=n.events&&n.events.click;o&&(r=o.call(n,e)),!1!==r&&t.clickButton(i),t.isActive=!0}),l,u&&u.hover,u&&u.select,u&&u.disabled).attr({"text-align":"center",width:d}).add(t.buttonGroup),n.title&&e[i].attr("title",n.title)}))},e.prototype.alignElements=function(){var t=this,e=this.buttonGroup,n=this.buttons,i=this.chart,r=this.group,o=this.inputGroup,a=this.options,c=this.zoomText,s=i.options,l=s.exporting&&!1!==s.exporting.enabled&&s.navigation&&s.navigation.buttonOptions;s=a.buttonPosition;var u=a.inputPosition,d=a.verticalAlign,h=function(e,n){return l&&t.titleCollision(i)&&"top"===d&&"right"===n.align&&n.y-e.getBBox().height-12<(l.y||0)+(l.height||0)+i.spacing[0]?-40:0},f=i.plotLeft;if(r&&s&&u){var p=s.x-i.spacing[3];if(e){if(this.positionButtons(),!this.initialButtonGroupWidth){var m=0;c&&(m+=c.getBBox().width+5),n.forEach((function(t,e){m+=t.width,e!==n.length-1&&(m+=a.buttonSpacing)})),this.initialButtonGroupWidth=m}f-=i.spacing[3],this.updateButtonStates(),c=h(e,s),this.alignButtonGroup(c),r.placed=e.placed=i.hasLoaded}e=0,o&&(e=h(o,u),"left"===u.align?p=f:"right"===u.align&&(p=-Math.max(i.axisOffset[1],-e)),o.align({y:u.y,width:o.getBBox().width,align:u.align,x:u.x+p-2},!0,i.spacingBox),o.placed=i.hasLoaded),this.handleCollision(e),r.align({verticalAlign:d},!0,i.spacingBox),o=r.alignAttr.translateY,e=r.getBBox().height+20,h=0,"bottom"===d&&(h=o-(e=e+(h=(h=i.legend&&i.legend.options)&&"bottom"===h.verticalAlign&&h.enabled&&!h.floating?i.legend.legendHeight+x(h.margin,10):0)-20)-(a.floating?0:a.y)-(i.titleOffset?i.titleOffset[2]:0)-10),"top"===d?(a.floating&&(h=0),i.titleOffset&&i.titleOffset[0]&&(h=i.titleOffset[0]),h+=i.margin[0]-i.spacing[0]||0):"middle"===d&&(u.y===s.y?h=o:(u.y||s.y)&&(h=0>u.y||0>s.y?h-Math.min(u.y,s.y):o-e)),r.translate(a.x,a.y+Math.floor(h)),s=this.minInput,u=this.maxInput,o=this.dropdown,a.inputEnabled&&s&&u&&(s.style.marginTop=r.translateY+"px",u.style.marginTop=r.translateY+"px"),o&&(o.style.marginTop=r.translateY+"px")}},e.prototype.alignButtonGroup=function(t,e){var n=this.chart,i=this.buttonGroup,r=this.options.buttonPosition,o=n.plotLeft-n.spacing[3],a=r.x-n.spacing[3];"right"===r.align?a+=t-o:"center"===r.align&&(a-=o/2),i&&i.align({y:r.y,width:x(e,this.initialButtonGroupWidth),align:r.align,x:a},!0,n.spacingBox)},e.prototype.positionButtons=function(){var t=this.buttons,e=this.chart,n=this.options,i=this.zoomText,r=e.hasLoaded?"animate":"attr",o=n.buttonPosition,a=e.plotLeft,c=a;i&&"hidden"!==i.visibility&&(i[r]({x:x(a+o.x,a)}),c+=o.x+i.getBBox().width+5),this.buttonOptions.forEach((function(e,i){"hidden"!==t[i].visibility?(t[i][r]({x:c}),c+=t[i].width+n.buttonSpacing):t[i][r]({x:a})}))},e.prototype.handleCollision=function(t){var e=this,n=this.chart,i=this.buttonGroup,r=this.inputGroup,o=this.options,a=o.buttonPosition,c=o.dropdown,s=o.inputPosition;o=function(){var t=0;return e.buttons.forEach((function(e){(e=e.getBBox()).width>t&&(t=e.width)})),t};var l=function(e){if(r&&i){var n=r.alignAttr.translateX+r.alignOptions.x-t+r.getBBox().x+2,o=r.alignOptions.width,c=i.alignAttr.translateX+i.getBBox().x;return c+e>n&&n+o>c&&a.y<s.y+r.getBBox().height}return!1},u=function(){r&&i&&r.attr({translateX:r.alignAttr.translateX+(n.axisOffset[1]>=-t?0:-t),translateY:r.alignAttr.translateY+i.getBBox().height+10})};if(i){if("always"===c)return this.collapseButtons(t),void(l(o())&&u());"never"===c&&this.expandButtons()}
1r&&i?s.align===a.align||l(this.initialButtonGroupWidth+20)?"responsive"===c?(this.collapseButtons(t),l(o())&&u()):u():"responsive"===c&&this.expandButtons():i&&"responsive"===c&&(this.initialButtonGroupWidth>n.plotWidth?this.collapseButtons(t):this.expandButtons())},e.prototype.collapseButtons=function(t){var e=this.buttons,n=this.buttonOptions,i=this.chart,r=this.dropdown,o=this.options,a=this.zoomText,c=i.userOptions.rangeSelector&&i.userOptions.rangeSelector.buttonTheme||{},s=function(t){return{text:t?t+" â¾":"â¾",width:"auto",paddingLeft:x(o.buttonTheme.paddingLeft,c.padding,8),paddingRight:x(o.buttonTheme.paddingRight,c.padding,8)}};a&&a.hide();var l=!1;n.forEach((function(t,n){2!==(n=e[n]).state?n.hide():(n.show(),n.attr(s(t.text)),l=!0)})),l||(r&&(r.selectedIndex=0),e[0].show(),e[0].attr(s(this.zoomText&&this.zoomText.textStr))),n=o.buttonPosition.align,this.positionButtons(),"right"!==n&&"center"!==n||this.alignButtonGroup(t,e[this.currentButtonIndex()].getBBox().width),this.showDropdown()},e.prototype.expandButtons=function(){var t=this.buttons,e=this.buttonOptions,n=this.options,i=this.zoomText;this.hideDropdown(),i&&i.show(),e.forEach((function(e,i){(i=t[i]).show(),i.attr({text:e.text,width:n.buttonTheme.width||28,paddingLeft:x(n.buttonTheme.paddingLeft,"unset"),paddingRight:x(n.buttonTheme.paddingRight,"unset")}),2>i.state&&i.setState(0)})),this.positionButtons()},e.prototype.currentButtonIndex=function(){var t=this.dropdown;return t&&0<t.selectedIndex?t.selectedIndex-1:0},e.prototype.showDropdown=function(){var t=this.buttonGroup,e=this.buttons,n=this.chart,i=this.dropdown;if(t&&i){var r=t.translateX;t=t.translateY,e=e[this.currentButtonIndex()].getBBox(),l(i,{left:n.plotLeft+r+"px",top:t+.5+"px",width:e.width+"px",height:e.height+"px"}),this.hasVisibleDropdown=!0}},e.prototype.hideDropdown=function(){var t=this.dropdown;t&&(l(t,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},e.prototype.getHeight=function(){var t=this.options,e=this.group,n=t.y,i=t.buttonPosition.y,r=t.inputPosition.y;return t.height?t.height:(this.alignElements(),t=e?e.getBBox(!0).height+13+n:0,e=Math.min(r,i),(0>r&&0>i||0<r&&0<i)&&(t+=Math.abs(e)),t)},e.prototype.titleCollision=function(t){return!(t.options.title.text||t.options.subtitle.text)},e.prototype.update=function(t){var e=this.chart;y(!0,e.options.rangeSelector,t),this.destroy(),this.init(e),this.render()},e.prototype.destroy=function(){var t=this,n=t.minInput,i=t.maxInput;t.eventsToUnbind&&(t.eventsToUnbind.forEach((function(t){return t()})),t.eventsToUnbind=void 0),d(t.buttons),n&&(n.onfocus=n.onblur=n.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(t,(function(n,i){n&&"chart"!==i&&(n instanceof r?n.destroy():n instanceof window.HTMLElement&&h(n)),n!==e.prototype[i]&&(t[i]=null)}),this)},e}();if(w.prototype.defaultButtons=[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],w.prototype.inputTypeFormats={"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"},t.prototype.minFromRange=function(){var t=this.range,e=t.type,n=this.max,i=this.chart.time,r=function(t,n){var r="year"===e?"FullYear":"Month",o=new i.Date(t),a=i.get(r,o);return i.set(r,o,a+n),a===i.get(r,o)&&i.set("Date",o,0),o.getTime()-t};
1if(g(t))var o=n-t,a=t;else o=n+r(n,-t.count),this.chart&&(this.chart.fixedRange=n-o);var c=x(this.dataMin,Number.MIN_VALUE);return g(o)||(o=c),o<=c&&(o=c,void 0===a&&(a=r(o,t.count)),this.newMax=Math.min(o+a,this.dataMax)),g(n)||(o=void 0),o},!n.RangeSelector){var A=[],E=function(t){function e(){a&&(n=t.xAxis[0].getExtremes(),i=t.legend,o=a&&a.options.verticalAlign,g(n.min)&&a.render(n.min,n.max),i.display&&"top"===o&&o===i.options.verticalAlign&&((r=y(t.spacingBox)).y="vertical"===i.options.layout?t.plotTop:r.y+a.getHeight(),i.group.placed=!1,i.align(r)))}var n,i,r,o,a=t.rangeSelector;a&&(p(A,(function(e){return e[0]===t}))||A.push([t,[c(t.xAxis[0],"afterSetExtremes",(function(t){a&&a.render(t.min,t.max)})),c(t,"redraw",e)]]),e())};c(e,"afterGetContainer",(function(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new w(this))})),c(e,"beforeRender",(function(){var t=this.axes,e=this.rangeSelector;e&&(g(e.deferredYTDClick)&&(e.clickButton(e.deferredYTDClick),delete e.deferredYTDClick),t.forEach((function(t){t.updateNames(),t.setScale()})),this.getAxisMargins(),e.render(),t=e.options.verticalAlign,e.options.floating||("bottom"===t?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0)))})),c(e,"update",(function(t){var e=t.options.rangeSelector;t=this.rangeSelector;var n=this.extraBottomMargin,i=this.extraTopMargin;e&&e.enabled&&!u(t)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=t=new w(this)),this.extraTopMargin=this.extraBottomMargin=!1,t&&(E(this),e=e&&e.verticalAlign||t.options&&t.options.verticalAlign,t.options.floating||("bottom"===e?this.extraBottomMargin=!0:"middle"!==e&&(this.extraTopMargin=!0)),this.extraBottomMargin!==n||this.extraTopMargin!==i)&&(this.isDirtyBox=!0)})),c(e,"render",(function(){var t=this.rangeSelector;t&&!t.options.floating&&(t.render(),"bottom"===(t=t.options.verticalAlign)?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0))})),c(e,"getMargins",(function(){var t=this.rangeSelector;t&&(t=t.getHeight(),this.extraTopMargin&&(this.plotTop+=t),this.extraBottomMargin&&(this.marginBottom+=t))})),e.prototype.callbacks.push(E),c(e,"destroy",(function(){for(var t=0;t<A.length;t++){var e=A[t];
1if(e[0]===this){e[1].forEach((function(t){return t()})),A.splice(t,1);break}}})),n.RangeSelector=w}return w})),e(t,"Accessibility/Components/RangeSelectorComponent.js",[t["Extensions/RangeSelector.js"],t["Accessibility/AccessibilityComponent.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/Announcer.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Core/Utilities.js"]],(function(t,e,n,i,r,o){var a=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=n.unhideChartElementFromAT,s=n.getAxisRangeDescription,l=o.addEvent,u=o.attr;return function(e){function n(t){var e=this.rangeSelector&&this.rangeSelector.buttons||[],n=this.highlightedRangeSelectorItemIx,i=this.rangeSelector&&this.rangeSelector.selected;return void 0!==n&&e[n]&&n!==i&&e[n].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=t,!!e[t]&&(this.setFocusToElement(e[t].box,e[t].element),t!==i&&(this.oldRangeSelectorItemState=e[t].state,e[t].setState(1)),!0)}function i(){var t=this.chart.accessibility;if(t&&t.components.rangeSelector)return t.components.rangeSelector.onAfterBtnClick()}
1var r=[];e.compose=function(e,o){-1===r.indexOf(e)&&(r.push(e),e.prototype.highlightRangeSelectorButton=n),-1===r.indexOf(o)&&(r.push(o),l(t,"afterBtnClick",i))}}((e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.announcer=void 0,e}return a(e,t),e.prototype.init=function(){this.announcer=new i(this.chart,"polite")},e.prototype.onChartUpdate=function(){var t=this.chart,e=this,n=t.rangeSelector;n&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),n.buttons&&n.buttons.length&&n.buttons.forEach((function(t){e.setRangeButtonAttrs(t)})),n.maxInput&&n.minInput&&["minInput","maxInput"].forEach((function(i,r){(i=n[i])&&(c(t,i),e.setRangeInputAttrs(i,"accessibility.rangeSelector."+(r?"max":"min")+"InputLabel"))})))},e.prototype.updateSelectorVisibility=function(){var t=this.chart,e=t.rangeSelector,n=e&&e.dropdown,i=e&&e.buttons||[];e&&e.hasVisibleDropdown&&n?(c(t,n),i.forEach((function(t){return t.element.setAttribute("aria-hidden",!0)}))):(n&&n.setAttribute("aria-hidden",!0),i.forEach((function(e){return c(t,e.element)})))},e.prototype.setDropdownAttrs=function(){var t=this.chart,e=t.rangeSelector&&t.rangeSelector.dropdown;e&&(t=t.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:t.options.lang.rangeSelectorZoom}),e.setAttribute("aria-label",t),e.setAttribute("tabindex",-1))},e.prototype.setRangeButtonAttrs=function(t){u(t.element,{tabindex:-1,role:"button"})},e.prototype.setRangeInputAttrs=function(t,e){var n=this.chart;u(t,{tabindex:-1,"aria-label":n.langFormat(e,{chart:n})})},e.prototype.onButtonNavKbdArrowKey=function(t,e){var n=t.response,i=this.keyCodes,r=this.chart,o=r.options.accessibility.keyboardNavigation.wrapAround;return e=e===i.left||e===i.up?-1:1,r.highlightRangeSelectorButton(r.highlightedRangeSelectorItemIx+e)?n.success:o?(t.init(e),n.success):n[0<e?"next":"prev"]},e.prototype.onButtonNavKbdClick=function(t){t=t.response;var e=this.chart;return 3!==e.oldRangeSelectorItemState&&this.fakeClickEvent(e.rangeSelector.buttons[e.highlightedRangeSelectorItemIx].element),t.success},e.prototype.onAfterBtnClick=function(){var t=this.chart,e=s(t.xAxis[0]);(t=t.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:t,axisRangeDescription:e}))&&this.announcer.announce(t)},e.prototype.onInputKbdMove=function(t){var e=this.chart,n=e.rangeSelector,i=e.highlightedInputRangeIx=(e.highlightedInputRangeIx||0)+t;1<i||0>i?e.accessibility&&(e.accessibility.keyboardNavigation.tabindexContainer.focus(),e.accessibility.keyboardNavigation[0>t?"prev":"next"]()):n&&(t=n[i?"maxDateBox":"minDateBox"],n=n[i?"maxInput":"minInput"],t&&n&&e.setFocusToElement(t,n))},e.prototype.onInputNavInit=function(t){var e=this,n=this,i=this.chart,r=0<t?0:1,o=i.rangeSelector,a=o&&o[r?"maxDateBox":"minDateBox"];if(t=o&&o.minInput,o=o&&o.maxInput,i.highlightedInputRangeIx=r,a&&t&&o){i.setFocusToElement(a,r?o:t),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),i=function(t){(t.which||t.keyCode)===e.keyCodes.tab&&(t.preventDefault(),t.stopPropagation(),n.onInputKbdMove(t.shiftKey?-1:1))};var c=l(t,"keydown",i),s=l(o,"keydown",i);this.removeInputKeydownHandler=function(){c(),s()}}},e.prototype.onInputNavTerminate=function(){var t=this.chart.rangeSelector||{};t.maxInput&&t.hideInput("max"),t.minInput&&t.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)},e.prototype.initDropdownNav=function(){var t=this,e=this.chart,n=e.rangeSelector,i=n&&n.dropdown;n&&i&&(e.setFocusToElement(n.buttonGroup,i),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=l(i,"keydown",(function(n){var i=e.accessibility;(n.which||n.keyCode)===t.keyCodes.tab&&(n.preventDefault(),n.stopPropagation(),i&&(i.keyboardNavigation.tabindexContainer.focus(),i.keyboardNavigation[n.shiftKey?"prev":"next"]()))})))},e.prototype.getRangeSelectorButtonNavigation=function(){var t=this.chart,e=this.keyCodes,n=this;return new r(t,{keyCodeMap:[[[e.left,e.right,e.up,e.down],function(t){return n.onButtonNavKbdArrowKey(this,t)}],[[e.enter,e.space],function(){return n.onButtonNavKbdClick(this)}]],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.buttons&&t.rangeSelector.buttons.length)},init:function(e){var i=t.rangeSelector;i&&i.hasVisibleDropdown?n.initDropdownNav():i&&(i=i.buttons.length-1,t.highlightRangeSelectorButton(0<e?0:i))},terminate:function(){n.removeDropdownKeydownHandler&&(n.removeDropdownKeydownHandler(),delete n.removeDropdownKeydownHandler)}})},e.prototype.getRangeSelectorInputNavigation=function(){var t=this.chart,e=this;return new r(t,{keyCodeMap:[],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.inputGroup&&"hidden"
1!==t.rangeSelector.inputGroup.element.style.visibility&&!1!==t.options.rangeSelector.inputEnabled&&t.rangeSelector.minInput&&t.rangeSelector.maxInput)},init:function(t){e.onInputNavInit(t)},terminate:function(){e.onInputNavTerminate()}})},e.prototype.getKeyboardNavigation=function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]},e.prototype.destroy=function(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()},e}(e))||(e={})),e})),e(t,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[t["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,i=t.merge;return function(t){function e(t){i(!0,t,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function r(t){return t.marker.states&&t.marker.states.normal&&t.marker.states.normal.opacity}function o(){this.chart.styledMode&&(this.markerGroup&&this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),this._hasPointMarkers&&this.points&&this.points.length&&this.points.forEach((function(t){t.graphic&&(t.graphic[t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),t.graphic[!1===t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))})))}function a(t){this.resetA11yMarkerOptions=i(t.options.marker||{},this.userOptions.marker||{})}function c(){var t=this.options,n=!1!==(this.options.accessibility&&this.options.accessibility.enabled);if((n=this.chart.options.accessibility.enabled&&n)&&(n=this.chart.options.accessibility,n=this.points.length<n.series.pointDescriptionEnabledThreshold||!1===n.series.pointDescriptionEnabledThreshold),n){if(t.marker&&!1===t.marker.enabled&&(this.a11yMarkersForced=!0,e(this.options)),this._hasPointMarkers&&this.points&&this.points.length)for(t=this.points.length;t--;){var o=(n=this.points[t]).options,a=n.hasForcedA11yMarker;delete n.hasForcedA11yMarker,o.marker&&(a=a&&0===r(o),o.marker.enabled&&!a?(i(!0,o.marker,{states:{normal:{opacity:r(o)||1}}}),n.hasForcedA11yMarker=!1):!1===o.marker.enabled&&(e(o),n.hasForcedA11yMarker=!0))}}else this.a11yMarkersForced&&(delete this.a11yMarkersForced,(t=this.resetA11yMarkerOptions)&&i(!0,this.options,{marker:{enabled:t.enabled,states:{normal:{opacity:t.states&&t.states.normal&&t.states.normal.opacity}}}}))}var s=[];t.compose=function(t){-1===s.indexOf(t)&&(s.push(t),n(t,"afterSetOptions",a),n(t,"render",c),n(t,"afterRender",o))}}(e||(e={})),e})),e(t,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",[t["Core/Series/Point.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Globals.js"],t["Core/Utilities.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Accessibility/Utils/EventProvider.js"],t["Accessibility/Utils/ChartUtilities.js"]],(function(t,e,n,i,r,o,a,c){function s(t){var e=t.index,n=t.series.points,i=n.length;if(n[e]===t)return e;for(;i--;)if(n[i]===t)return i}function l(t){var e=t.chart.options.accessibility.keyboardNavigation.seriesNavigation,n=t.options.accessibility||{},i=n.keyboardNavigation;return i&&!1===i.enabled||!1===n.enabled||!1===t.options.enableMouseTracking||!t.visible||e.pointNavigationEnabledThreshold&&e.pointNavigationEnabledThreshold<=t.points.length}function u(t){var e=t.series.chart.options.accessibility,n=t.options.accessibility&&!1===t.options.accessibility.enabled;return t.isNull&&e.keyboardNavigation.seriesNavigation.skipNullPoints||!1===t.visible||!1===t.isInside||n||l(t.series)}function d(t){return delete t.highlightedPoint,t.series.reduce((function(t,e){return t||e.highlightFirstValidPoint()}),!1)}var h=n.seriesTypes,f=i.doc,p=r.defined,m=r.fireEvent,g=c.getPointFromXY,y=c.getSeriesFromName,v=c.scrollToPoint;return function(t){function e(t){var e=this.series,n=this.highlightedPoint,i=n&&s(n)||0,r=n&&n.series.points||[],o=this.series&&this.series[this.series.length-1];if(o=o&&o.points&&o.points[o.points.length-1],!e[0]||!e[0].points)return!1;if(n){if(e=e[n.series.index+(t?1:-1)],!(i=r[i+(t?1:-1)])&&e&&(i=e.points[t?0:e.points.length-1]),!i)return!1}else i=t?e[0].points[0]:o;return u(i)?(l(e=i.series)?this.highlightedPoint=t?e.points[e.points.length-1]:e.points[0]:this.highlightedPoint=i,this.highlightAdjacentPoint(t)):i.highlight()}function n(t){var e,n=this.highlightedPoint,i=1/0;
1return!(!p(n.plotX)||!p(n.plotY))&&(this.series.forEach((function(r){l(r)||r.points.forEach((function(o){if(p(o.plotY)&&p(o.plotX)&&o!==n){var a=o.plotY-n.plotY,c=Math.abs(o.plotX-n.plotX);c=Math.abs(a)*Math.abs(a)+c*c*4,r.yAxis&&r.yAxis.reversed&&(a*=-1),!(0>=a&&t||0<=a&&!t||5>c||u(o))&&c<i&&(i=c,e=o)}}))})),!!e&&e.highlight())}function i(t){var e=this.highlightedPoint,n=this.series&&this.series[this.series.length-1],i=n&&n.points&&n.points[n.points.length-1];return this.highlightedPoint?!!(n=this.series[e.series.index+(t?-1:1)])&&(!!(i=r(e,n,4))&&(l(n)?(i.highlight(),(t=this.highlightAdjacentSeries(t))||(e.highlight(),!1)):(i.highlight(),i.series.highlightFirstValidPoint()))):(n=t?this.series&&this.series[0]:n,!!(i=t?n&&n.points&&n.points[0]:i)&&i.highlight())}function r(t,e,n,i){var r=1/0,o=e.points.length,a=function(t){return!(p(t.plotX)&&p(t.plotY))};if(!a(t)){for(;o--;){var c=e.points[o];if(!a(c)&&(c=(t.plotX-c.plotX)*(t.plotX-c.plotX)*(n||1)+(t.plotY-c.plotY)*(t.plotY-c.plotY)*(i||1))<r){r=c;var s=o}}return p(s)?e.points[s]:void 0}}function o(){var t=this.series.chart;return this.isNull?t.tooltip&&t.tooltip.hide(0):this.onMouseOver(),v(this),this.graphic&&t.setFocusToElement(this.graphic),t.highlightedPoint=this,this}function a(){var t=this.chart.highlightedPoint,e=(t&&t.series)===this?s(t):0,n=(t=this.points).length;if(t&&n){for(var i=e;i<n;++i)if(!u(t[i]))return t[i].highlight();for(;0<=e;--e)if(!u(t[e]))return t[e].highlight()}return!1}var c=[];t.compose=function(t,r,s){-1===c.indexOf(t)&&(c.push(t),(t=t.prototype).highlightAdjacentPoint=e,t.highlightAdjacentPointVertical=n,t.highlightAdjacentSeries=i),-1===c.indexOf(r)&&(c.push(r),r.prototype.highlight=o),-1===c.indexOf(s)&&(c.push(s),(r=s.prototype).keyboardMoveVertical=!0,["column","gantt","pie"].forEach((function(t){h[t]&&(h[t].prototype.keyboardMoveVertical=!1)})),r.highlightFirstValidPoint=a)}}((n=function(){function n(t,e){this.keyCodes=e,this.chart=t}return n.prototype.init=function(){var n=this,i=this.chart,r=this.eventProvider=new a;r.addEvent(e,"destroy",(function(){return n.onSeriesDestroy(this)})),r.addEvent(i,"afterDrilldown",(function(){d(this),this.focusElement&&this.focusElement.removeFocusBorder()})),r.addEvent(i,"drilldown",(function(t){var e=(t=t.point).series;n.lastDrilledDownPoint={x:t.x,y:t.y,seriesName:e?e.name:""}})),r.addEvent(i,"drillupall",(function(){setTimeout((function(){n.onDrillupAll()}),10)})),r.addEvent(t,"afterSetState",(function(){var t=this.graphic&&this.graphic.element,e=f.activeElement,n=e&&e.getAttribute("class");n=n&&-1<n.indexOf("highcharts-a11y-proxy-button"),i.highlightedPoint===this&&e!==t&&!n&&t&&t.focus&&t.focus()}))},n.prototype.onDrillupAll=function(){var t,e=this.lastDrilledDownPoint,n=this.chart,i=e&&y(n,e.seriesName);e&&i&&p(e.x)&&p(e.y)&&(t=g(i,e.x,e.y)),n.container&&n.container.focus(),t&&t.highlight&&t.highlight(),n.focusElement&&n.focusElement.removeFocusBorder()},n.prototype.getKeyboardNavigationHandler=function(){var t=this,e=this.keyCodes,n=this.chart,i=n.inverted;return new o(n,{keyCodeMap:[[i?[e.up,e.down]:[e.left,e.right],function(e){return t.onKbdSideways(this,e)}],[i?[e.left,e.right]:[e.up,e.down],function(e){return t.onKbdVertical(this,e)}],[[e.enter,e.space],function(t,e){return(t=n.highlightedPoint)&&(e.point=t,m(t.series,"click",e),t.firePointEvent("click")),this.response.success}],[[e.home],function(){return d(n),this.response.success}],[[e.end],function(){for(var t=n.series.length;t--&&(n.highlightedPoint=n.series[t].points[n.series[t].points.length-1],!n.series[t].highlightFirstValidPoint()););return this.response.success}],[[e.pageDown,e.pageUp],function(t){return n.highlightAdjacentSeries(t===e.pageDown),this.response.success}]],init:function(){return d(n),this.response.success},terminate:function(){return t.onHandlerTerminate()}})},n.prototype.onKbdSideways=function(t,e){var n=this.keyCodes;return this.attemptHighlightAdjacentPoint(t,e===n.right||e===n.down)},n.prototype.onKbdVertical=function(t,e){var n=this.chart,i=this.keyCodes;return e=e===i.down||e===i.right,(i=n.options.accessibility.keyboardNavigation.seriesNavigation).mode&&"serialize"===i.mode?this.attemptHighlightAdjacentPoint(t,e):(n[n.highlightedPoint&&n.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](e),t.response.success)},n.prototype.onHandlerTerminate=function(){var t=this.chart;t.tooltip&&t.tooltip.hide(0);var e=t.highlightedPoint&&t.highlightedPoint.series;e&&e.onMouseOut&&e.onMouseOut(),t.highlightedPoint&&t.highlightedPoint.onMouseOut&&t.highlightedPoint.onMouseOut(),delete t.highlightedPoint},n.prototype.attemptHighlightAdjacentPoint=function(t,e){var n=this.chart,i=n.options.accessibility.keyboardNavigation.wrapAround;return n.highlightAdjacentPoint(e)?t.response.success:i?t.init(e?1:-1):t.response[e?"next":"prev"]},n.prototype.onSeriesDestroy=function(t){var e=this.chart;e.highlightedPoint&&e.highlightedPoint.series===t&&(delete e.highlightedPoint,e.focusElement&&e.focusElement.removeFocusBorder())},n.prototype.destroy=function(){this.eventProvider.removeAddedEvents()},n}())||(n={})),n})),e(t,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[t["Accessibility/AccessibilityComponent.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],t["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],t["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],t["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"],t["Core/Tooltip.js"]],(function(t,e,n,i,r,o,a){var c=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=e.hideSeriesFromAT,l=r.describeSeries;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}
1return c(e,t),e.compose=function(t,e,r){i.compose(r),n.compose(r),o.compose(t,e,r)},e.prototype.init=function(){this.newDataAnnouncer=new i(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new o(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()},e.prototype.hideTooltipFromATWhenShown=function(){var t=this;this.addEvent(a,"refresh",(function(){this.chart===t.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)}))},e.prototype.hideSeriesLabelsFromATWhenShown=function(){this.addEvent(this.chart,"afterDrawSeriesLabels",(function(){this.series.forEach((function(t){t.labelBySeries&&t.labelBySeries.attr("aria-hidden",!0)}))}))},e.prototype.onChartRender=function(){this.chart.series.forEach((function(t){!1!==(t.options.accessibility&&t.options.accessibility.enabled)&&t.visible?l(t):s(t)}))},e.prototype.getKeyboardNavigation=function(){return this.keyboardNavigation.getKeyboardNavigationHandler()},e.prototype.destroy=function(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()},e}(t)})),e(t,"Accessibility/Components/ZoomComponent.js",[t["Accessibility/AccessibilityComponent.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Core/Globals.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Core/Utilities.js"]],(function(t,e,n,i,r){var o=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=e.unhideChartElementFromAT,c=r.attr,s=r.pick;return function(t){function e(t,e){var n=e||3,i=((e=this.getExtremes()).max-e.min)/n*t,r=(n=e.max+i)-(i=e.min+i);0>t&&i<e.dataMin?n=(i=e.dataMin)+r:0<t&&n>e.dataMax&&(i=(n=e.dataMax)-r),this.setExtremes(i,n)}t.composedClasses=[],t.compose=function(n){-1===t.composedClasses.indexOf(n)&&(t.composedClasses.push(n),n.prototype.panStep=e)}}((t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.focusedMapNavButtonIx=-1,e}return o(e,t),e.prototype.init=function(){var t=this,e=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterDrilldown","drillupall"].forEach((function(n){t.addEvent(e,n,(function(){t.updateProxyOverlays()}))}))},e.prototype.onChartUpdate=function(){var t=this.chart,e=this;t.mapNavButtons&&t.mapNavButtons.forEach((function(n,i){a(t,n.element),e.setMapNavButtonAttrs(n.element,"accessibility.zoom.mapZoom"+(i?"Out":"In"))}))},e.prototype.setMapNavButtonAttrs=function(t,e){var n=this.chart;e=n.langFormat(e,{chart:n}),c(t,{tabindex:-1,role:"button","aria-label":e})},e.prototype.onChartRender=function(){this.updateProxyOverlays()},e.prototype.updateProxyOverlays=function(){var t=this.chart;this.proxyProvider.clearGroup("zoom"),t.resetZoomButton&&this.createZoomProxyButton(t.resetZoomButton,"resetZoomProxyButton",t.langFormat("accessibility.zoom.resetZoomButton",{chart:t})),t.drillUpButton&&this.createZoomProxyButton(t.drillUpButton,"drillUpProxyButton",t.langFormat("accessibility.drillUpButton",{chart:t,buttonText:t.getDrilldownBackText()}))},e.prototype.createZoomProxyButton=function(t,e,n){this[e]=this.proxyProvider.addProxyElement("zoom",{click:t},{"aria-label":n,tabindex:-1})},e.prototype.getMapZoomNavigation=function(){var t=this.keyCodes,e=this.chart,n=this;return new i(e,{keyCodeMap:[[[t.up,t.down,t.left,t.right],function(t){return n.onMapKbdArrow(this,t)}],[[t.tab],function(t,e){return n.onMapKbdTab(this,e)}],[[t.space,t.enter],function(){return n.onMapKbdClick(this)}]],validate:function(){return!!(e.mapZoom&&e.mapNavButtons&&e.mapNavButtons.length)},init:function(t){return n.onMapNavInit(t)}})},e.prototype.onMapKbdArrow=function(t,e){var n=this.keyCodes;return this.chart[e===n.up||e===n.down?"yAxis":"xAxis"][0].panStep(e===n.left||e===n.up?-1:1),t.response.success},e.prototype.onMapKbdTab=function(t,e){var n=this.chart;t=t.response;var i=(e=e.shiftKey)&&!this.focusedMapNavButtonIx||!e&&this.focusedMapNavButtonIx;return n.mapNavButtons[this.focusedMapNavButtonIx].setState(0),i?(n.mapZoom(),t[e?"prev":"next"]):(this.focusedMapNavButtonIx+=e?-1:1,e=n.mapNavButtons[this.focusedMapNavButtonIx],n.setFocusToElement(e.box,e.element),e.setState(2),t.success)},e.prototype.onMapKbdClick=function(t){return this.fakeClickEvent(this.chart.mapNavButtons[this.focusedMapNavButtonIx].element),t.response.success},e.prototype.onMapNavInit=function(t){var e=this.chart,n=e.mapNavButtons[0],i=e.mapNavButtons[1];n=0<t?n:i,e.setFocusToElement(n.box,n.element),n.setState(2),this.focusedMapNavButtonIx=0<t?0:1},e.prototype.simpleButtonNavigation=function(t,e,n){var r=this.keyCodes,o=this,a=this.chart;return new i(a,{keyCodeMap:[[[r.tab,r.up,r.down,r.left,r.right],function(t,e){return this.response[t===r.tab&&e.shiftKey||t===r.left||t===r.up?"prev":"next"]}],[[r.space,r.enter],function(){var t=n(this,a);return s(t,this.response.success)}]],validate:function(){return a[t]&&a[t].box&&o[e].buttonElement},init:function(){a.setFocusToElement(a[t].box,o[e].buttonElement)}})},e.prototype.getKeyboardNavigation=function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",(function(t,e){e.zoomOut()})),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",(function(t,e){return e.drillUp(),t.response.prev})),this.getMapZoomNavigation()]},e}(t))||(t={})),t})),e(t,"Accessibility/HighContrastMode.js",[t["Core/Globals.js"]],(function(t){var e=t.doc,n=t.isMS,i=t.win;return{isHighContrastModeActive:function(){var t=/(Edg)/.test(i.navigator.userAgent);if(i.matchMedia&&t)return i.matchMedia("(-ms-high-contrast: active)").matches;if(n&&i.getComputedStyle){(t=e.createElement("div")).style.backgroundImage="url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)",e.body.appendChild(t);var r=(t.currentStyle||i.getComputedStyle(t)).backgroundImage;return e.body.removeChild(t),"none"===r}return!1},setHighContrastTheme:function(t){t.highContrastModeActive=!0;var e=t.options.accessibility.highContrastTheme;
1t.update(e,!1),t.series.forEach((function(t){var n=e.plotOptions[t.type]||{};t.update({color:n.color||"windowText",colors:[n.color||"windowText"],borderColor:n.borderColor||"window"}),t.points.forEach((function(t){t.options&&t.options.color&&t.update({color:n.color||"windowText",borderColor:n.borderColor||"window"},!1)}))})),t.redraw()}}})),e(t,"Accessibility/HighContrastTheme.js",[],(function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},labels:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}})),e(t,"Accessibility/Options/Options.js",[],(function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{index}. {xDescription}{separator}{value}."},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#335cad",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}})),e(t,"Accessibility/Options/LangOptions.js",[],(function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"Chart screen reader information, {chartTitle}.",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{ Also related to, #each(additionalAnnotationPoints)}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"}
1,zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#plural(numPoints, points, point)}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#plural(numPoints, slices, slice)}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#plural(numPoints, points, point)}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each(names, -1) }and {names[-1]}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each(names, -1) }and {names[-1]}.",timeRangeDays:"Range: {range} days.",timeRangeHours:"Range: {range} hours.",timeRangeMinutes:"Range: {range} minutes.",timeRangeSeconds:"Range: {range} seconds.",rangeFromTo:"Range: {rangeFrom} to {rangeTo}.",rangeCategories:"Range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{name}, series {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",defaultCombination:"{name}, series {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",line:"{name}, line {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}
1.",lineCombination:"{name}, series {ix} of {numSeries}. Line with {numPoints} data {#plural(numPoints, points, point)}.",spline:"{name}, line {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",splineCombination:"{name}, series {ix} of {numSeries}. Line with {numPoints} data {#plural(numPoints, points, point)}.",column:"{name}, bar series {ix} of {numSeries} with {numPoints} {#plural(numPoints, bars, bar)}.",columnCombination:"{name}, series {ix} of {numSeries}. Bar series with {numPoints} {#plural(numPoints, bars, bar)}.",bar:"{name}, bar series {ix} of {numSeries} with {numPoints} {#plural(numPoints, bars, bar)}.",barCombination:"{name}, series {ix} of {numSeries}. Bar series with {numPoints} {#plural(numPoints, bars, bar)}.",pie:"{name}, pie {ix} of {numSeries} with {numPoints} {#plural(numPoints, slices, slice)}.",pieCombination:"{name}, series {ix} of {numSeries}. Pie with {numPoints} {#plural(numPoints, slices, slice)}.",scatter:"{name}, scatter plot {ix} of {numSeries} with {numPoints} {#plural(numPoints, points, point)}.",scatterCombination:"{name}, series {ix} of {numSeries}, scatter plot with {numPoints} {#plural(numPoints, points, point)}.",boxplot:"{name}, boxplot {ix} of {numSeries} with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotCombination:"{name}, series {ix} of {numSeries}. Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",bubble:"{name}, bubble series {ix} of {numSeries} with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleCombination:"{name}, series {ix} of {numSeries}. Bubble series with {numPoints} {#plural(numPoints, bubbles, bubble)}.",map:"{name}, map {ix} of {numSeries} with {numPoints} {#plural(numPoints, areas, area)}.",mapCombination:"{name}, series {ix} of {numSeries}. Map with {numPoints} {#plural(numPoints, areas, area)}.",mapline:"{name}, line {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",maplineCombination:"{name}, series {ix} of {numSeries}. Line with {numPoints} data {#plural(numPoints, points, point)}.",mapbubble:"{name}, bubble series {ix} of {numSeries} with {numPoints} {#plural(numPoints, bubbles, bubble)}.",mapbubbleCombination:"{name}, series {ix} of {numSeries}. Bubble series with {numPoints} {#plural(numPoints, bubbles, bubble)}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{Annotation: #each(annotations). }"}}}})),e(t,"Accessibility/Options/DeprecatedOptions.js",[t["Core/Utilities.js"]],(function(t){function e(t,e,n){for(var i,o=0;o<e.length-1;++o)t=t[i=e[o]]=r(t[i],{});t[e[e.length-1]]=n}function n(t,n,r,o){function a(t,e){return e.reduce((function(t,e){return t[e]}),t)}var c=a(t.options,n),s=a(t.options,r);Object.keys(o).forEach((function(a){var l,u=c[a];void 0!==u&&(e(s,o[a],u),i(32,!1,t,((l={})[n.join(".")+"."+a]=r.join(".")+"."+o[a].join("."),l)))}))}var i=t.error,r=t.pick;return function(t){!function(t){var e=t.options.chart,n=t.options.accessibility||{};["description","typeDescription"].forEach((function(r){var o;e[r]&&(n[r]=e[r],i(32,!1,t,((o={})["chart."+r]="use accessibility."+r,o)))}))}(t),function(t){t.axes.forEach((function(e){(e=e.options)&&e.description&&(e.accessibility=e.accessibility||{},e.accessibility.description=e.description,i(32,!1,t,{"axis.description":"use axis.accessibility.description"}))}))}(t),t.series&&function(t){var n={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};t.series.forEach((function(r){Object.keys(n).forEach((function(o){var a,c=r.options[o];"accessibility.pointDescriptionFormatter"===o&&(c=r.options.accessibility&&r.options.accessibility.pointDescriptionFormatter),void 0!==c&&(e(r.options,n[o],"skipKeyboardNavigation"===o?!c:c),i(32,!1,t,((a={})["series."+o]="series."+n[o].join("."),a)))}))}))}(t),n(t,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointV
1alueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]}),n(t,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]}),n(t,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})}})),e(t,"Accessibility/Accessibility.js",[t["Core/DefaultOptions.js"],t["Core/Globals.js"],t["Core/Utilities.js"],t["Accessibility/A11yI18n.js"],t["Accessibility/Components/ContainerComponent.js"],t["Accessibility/FocusBorder.js"],t["Accessibility/Components/InfoRegionsComponent.js"],t["Accessibility/KeyboardNavigation.js"],t["Accessibility/Components/LegendComponent.js"],t["Accessibility/Components/MenuComponent.js"],t["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],t["Accessibility/ProxyProvider.js"],t["Accessibility/Components/RangeSelectorComponent.js"],t["Accessibility/Components/SeriesComponent/SeriesComponent.js"],t["Accessibility/Components/ZoomComponent.js"],t["Accessibility/HighContrastMode.js"],t["Accessibility/HighContrastTheme.js"],t["Accessibility/Options/Options.js"],t["Accessibility/Options/LangOptions.js"],t["Accessibility/Options/DeprecatedOptions.js"]],(function(t,e,n,i,r,o,a,c,s,l,u,d,h,f,p,m,g,y,v,b){t=t.defaultOptions;var x=e.doc,_=n.addEvent,S=n.extend,w=n.fireEvent,A=n.merge;return function(t){function e(){this.accessibility&&this.accessibility.destroy()}function n(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());var t=this.accessibility;t&&!t.zombie&&(t.proxyProvider.updateProxyElementPositions(),t.getComponentOrder().forEach((function(e){t.components[e].onChartRender()})))}function r(t){(t=t.options.accessibility)&&(t.customComponents&&(this.options.accessibility.customComponents=t.customComponents,delete t.customComponents),A(!0,this.options.accessibility,t),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function a(){var e=this.accessibility,n=this.options.accessibility;n&&n.enabled?e&&!e.zombie?e.update():(this.accessibility=e=new t(this),!e.zombie&&e.update()):e?(e.destroy&&e.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function d(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}var m=[];t.i18nFormat=i.i18nFormat,t.compose=function(t,g,y,v,b,x,S){c.compose(g),u.compose(b),s.compose(g,y),l.compose(g),f.compose(g,v,b),p.compose(t),i.compose(g),o.compose(g,x),S&&h.compose(g,S),-1===m.indexOf(g)&&(m.push(g),g.prototype.updateA11yEnabled=a,_(g,"destroy",e),_(g,"render",n),_(g,"update",r),["addSeries","init"].forEach((function(t){_(g,t,(function(){this.a11yDirty=!0}))})),["afterDrilldown","drillupall"].forEach((function(t){_(g,t,(function(){var t=this.accessibility;t&&!t.zombie&&t.update()}))}))),-1===m.indexOf(v)&&(m.push(v),_(v,"update",d)),-1===m.indexOf(b)&&(m.push(b),["update","updatedData","remove"].forEach((function(t){_(b,t,(function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)}))})))}}((e=function(){function t(t){this.proxyProvider=this.keyboardNavigation=this.components=this.chart=void 0,this.init(t)}return t.prototype.init=function(t){this.chart=t,x.addEventListener&&t.renderer.isSVG?(b(t),this.proxyProvider=new d(this.chart),this.initComponents(),this.keyboardNavigation=new c(t,this.components)):(this.zombie=!0,this.components={},t.renderTo.setAttribute("aria-hidden",!0))},t.prototype.initComponents=function(){var t=this.chart,e=this.proxyProvider,n=t.options.accessibility;this.components={container:new r,infoRegions:new a,legend:new s,chartMenu:new l,rangeSelector:new h,series:new f,zoom:new p},n.customComponents&&S(this.components,n.customComponents);var i=this.components;
1this.getComponentOrder().forEach((function(n){i[n].initBase(t,e),i[n].init()}))},t.prototype.getComponentOrder=function(){if(!this.components)return[];if(!this.components.series)return Object.keys(this.components);var t=Object.keys(this.components).filter((function(t){return"series"!==t}));return["series"].concat(t)},t.prototype.update=function(){var t=this.components,e=this.chart,n=e.options.accessibility;w(e,"beforeA11yUpdate"),e.types=this.getChartTypes(),n=n.keyboardNavigation.order,this.proxyProvider.updateGroupOrder(n),this.getComponentOrder().forEach((function(n){t[n].onChartUpdate(),w(e,"afterA11yComponentUpdate",{name:n,component:t[n]})})),this.keyboardNavigation.update(n),!e.highContrastModeActive&&m.isHighContrastModeActive()&&m.setHighContrastTheme(e),w(e,"afterA11yUpdate",{accessibility:this})},t.prototype.destroy=function(){var t=this.chart||{},e=this.components;Object.keys(e).forEach((function(t){e[t].destroy(),e[t].destroyBase()})),this.proxyProvider&&this.proxyProvider.destroy(),this.keyboardNavigation&&this.keyboardNavigation.destroy(),t.renderTo&&t.renderTo.setAttribute("aria-hidden",!0),t.focusElement&&t.focusElement.removeFocusBorder()},t.prototype.getChartTypes=function(){var t={};return this.chart.series.forEach((function(e){t[e.type]=1})),Object.keys(t)},t}())||(e={})),A(!0,t,y,{accessibility:{highContrastTheme:g},lang:v}),e})),e(t,"masters/modules/accessibility.src.js",[t["Core/Globals.js"],t["Accessibility/Accessibility.js"],t["Accessibility/AccessibilityComponent.js"],t["Accessibility/Utils/ChartUtilities.js"],t["Accessibility/Utils/HTMLUtilities.js"],t["Accessibility/KeyboardNavigationHandler.js"],t["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],(function(t,e,n,i,r,o,a){t.i18nFormat=e.i18nFormat,t.A11yChartUtilities=i,t.A11yHTMLUtilities=r,t.AccessibilityComponent=n,t.KeyboardNavigationHandler=o,t.SeriesAccessibilityDescriber=a,e.compose(t.Axis,t.Chart,t.Legend,t.Point,t.Series,t.SVGElement,t.RangeSelector)}))}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return A}));var i=n(4),r=n(1),o=n(9),a=n(13),c=n(24),s=n(19);function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var d,h,f,p,m,g,y,v,b,x,_,S,w,A=(d="data-compareId",h=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=document.querySelector(".cmp-flex-comparison-table table"),n=e.getElementsByClassName("cmp-flex-comparison-table__prod-title");Object(a.c)(n,t);var i=e.querySelectorAll(".cmp-flex-comparison-table__prod-image img");Object(a.c)(i,t);var r=e.querySelectorAll(".cmp-flex-comparison-table__offer");Object(a.c)(r,t);var o=document.querySelector(".cmp-flex-comparison-table__sticky-header"),c=o.querySelectorAll(".cmp-flex-comparison-table__sticky-header-default > div"),s=document.querySelectorAll(".cmp-flex-comparison-table__sticky-mobile-default a");Object(a.c)(c,t),Object(a.c)(s,t);var u,d=e.querySelectorAll("tr"),h=l(d);try{for(h.s();!(u=h.n()).done;){var f=u.value,p=f.querySelectorAll(".cmp-flex-comparison-table__default-data");Object(a.c)(p,!0)}}catch(t){h.e(t)}finally{h.f()}},f=function(t){return unescape(i.a.localStorageGetItem(t)).split(",")},p=function(){var t=document.querySelector(".cmp-flex-comparison-table"),e=t.getAttribute("data-cardLang"),n=t.getAttribute("data-cardType"),i="prod_ids_".concat(n,"_").concat(e),r=t.querySelectorAll(".cmp-flex-comparison-table__default-data .cmp-flex-comparison-table__prod-title"),o=f(i),a=[];return r.forEach((function(t){if(t.id){var i=t.id.split("-");i="".concat(e,"_").concat(n,"_").concat(i[2]),a.push(i)}})),m(o,a)},m=function(t,e){return t.length===e.length&&t.every((function(t){if(e.indexOf(t)>-1)return!0}))},g=function(){var t=document.querySelector(".cmp-primary-header__container"),e=document.querySelector(".cmp-header-mobile"),n=document.querySelector(".cmp-header-utility-bar"),i=document.querySelector(".cmp-emergency-message"),r=document.querySelector(".cmp-flex-comparison-table__sticky-header"),o=t?t.offsetHeight:0,a=n?n.offsetHeight:0,c=i?i.offsetHeight:0,s=e?e.offsetHeight:0;r.style.top="".concat(o+a+c+s,"px");var l=function(){o=t?t.offsetHeight:0,a=n?n.offsetHeight:0,s=e?e.offsetHeight:0,c=i?i.offsetHeight:0,r.style.top="".concat(o+a+c+s,"px")}
1;window.removeEventListener("resize",l),window.addEventListener("resize",l)},y=function(t,e,n,i){var r,o,a=new DOMParser,c=l(t);try{for(c.s();!(o=c.n()).done;){var s=o.value;if(s.getAttribute(d)===n){r=s.innerHTML;break}}}catch(t){c.e(t)}finally{c.f()}if(r){var u,h=0,f=l(e);try{for(f.s();!(u=f.n()).done;){var p=u.value;if(p.classList.contains("empty-cell")&&h===i){var m=a.parseFromString(r,"text/html").querySelector("span.h3");m&&(r=r.replaceAll(m.id,"".concat(m.id,"--selected"))),p.innerHTML=r,p.classList.remove("empty-cell")}h++}}catch(t){f.e(t)}finally{f.f()}}},v=function(t,e,n){var i,r=0,o=l(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(r===e)return a.classList.add("empty-cell"),void(a.innerHTML=n);r++}}catch(t){o.e(t)}finally{o.f()}},b=function(t,e){var n,i=l(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.classList.add("empty-cell"),r.innerHTML=e}}catch(t){i.e(t)}finally{i.f()}},x=function(t,e){var n;t.stopPropagation(),n=e?e.lang+"_"+e.prodType+"_"+e.prodId:t.target.closest("a.btn_rm_prod").getAttribute("data-prodId");var o,a,s=document.querySelector(".cmp-flex-comparison-table table"),u=s.querySelectorAll("th.cmp-flex-comparison-table__default-data"),d=0,f=document.querySelector(".cmp-flex-comparison-table").getAttribute("data-browserCreditCardUrl"),p=document.querySelector(".cmp-flex-comparison-table"),m=p.getAttribute("data-cardLang"),g=p.getAttribute("data-cardType"),y=p.getAttribute("data-addCardLabel"),b=p.getAttribute("data-addCardLinkLabel"),x=p.getAttribute("data-addCardImgAltText")?p.getAttribute("data-addCardImgAltText"):"",_=p.getAttribute("data-addCardShortLabel"),A=p.getAttribute("data-addProd-image-src"),E=l(u);try{for(E.s();!(a=E.n()).done;){var L=a.value;if(L.querySelector("[data-prodId=".concat(n,"]"))){o=d,L.innerHTML=c.c;var k=L.querySelector(".cmp-flex-comparison-table__prod-title span a"),C=L.querySelector(".cmp-flex-comparison-table__prod-image a"),T=L.querySelector(".cmp-flex-comparison-table__prod-image a img");C.setAttribute("aria-label",b),C.href=f,k.href=f,T.src=A,T.setAttribute("alt",x),k.innerHTML=y;break}d++}}catch(t){E.e(t)}finally{E.f()}var M,q=l(s.querySelectorAll("tbody tr"));try{for(q.s();!(M=q.n()).done;){var I=M.value.getElementsByClassName("cmp-flex-comparison-table__default-data");v(I,o,"")}}catch(t){q.e(t)}finally{q.f()}var O=document.querySelector(".cmp-flex-comparison-table__sticky-header");if(O){var P=O.getElementsByClassName("cmp-flex-comparison-table__sticky-header-default");v(P,o,c.b);for(var N=document.querySelectorAll(".cmp-flex-comparison-table__sticky-header-default.empty-cell a"),D=document.querySelectorAll(".cmp-flex-comparison-table__sticky-header-default.empty-cell span a"),B=document.querySelectorAll(".cmp-flex-comparison-table__sticky-header-default.empty-cell a .cmp-button__text"),j=0;j<N.length;j++)N[j].setAttribute("href",f);for(var R=0;R<D.length;R++)D[R].innerHTML=y,B[R].innerHTML=_;var H=document.querySelector(".cmp-flex-comparison-table__sticky-mobile").getElementsByClassName("cmp-flex-comparison-table__sticky-mobile-default");v(H,o,c.a);for(var z=document.querySelectorAll(".cmp-flex-comparison-table__sticky-mobile-default.empty-cell a"),F=document.querySelectorAll(".cmp-flex-comparison-table__sticky-mobile-default.empty-cell a .cmp-button__text"),G=0;G<z.length;G++)z[G].setAttribute("href",f),F[G].innerHTML=_}Object(r.a)(h,200)();var W=n.replace("".concat(m,"_").concat(g,"_"),"");i.a.checkLocalStorageIdsInList(g,m,W)&&i.a.deleteProductLocalStorage(g,W,m),S(),w()},_=function(){var t=document.querySelectorAll(".selectTermFilter");t.forEach((function(t){t.addEventListener("change",(function(t){Object(r.a)(h,200)()}))}))},S=function(){var t=document.querySelector(".cmp-flex-comparison-table table"),e=t.querySelectorAll("th.cmp-flex-comparison-table__default-data .cmp-flex-comparison-table__offer span.cmp-text"),n=t.querySelectorAll("th.cmp-flex-comparison-table__default-data .cmp-flex-comparison-table__offer");e.length>0?n.forEach((function(t){t.classList.add("specialOfferSpacing")})):n.forEach((function(t){t.classList.remove("specialOfferSpacing")}))},w=function(){var t=document.querySelector(".cmp-flex-comparison-table").querySelectorAll("[href='#cmp-modal~cmp-overlay-8-1-g-compare-modal-id']");null!==t&&0!==t.length&&t.forEach((function(t){t.removeEventListener("click",
1s.a),t.addEventListener("click",s.a)}))},{init:function(){var t=document.querySelector(".cmp-flex-comparison-table"),e=document.querySelector(".cmp-flex-comparison-table table");if(e){var n=t.getAttribute("data-cardLang"),s=t.getAttribute("data-cardType"),u="prod_ids_".concat(s,"_").concat(n),m=Object(a.b)(e,o.c);e.addEventListener("unload",(function(){return Object(a.a)(m)}));var v=f(u);!1===p()&&(function(){var t,e=document.querySelector(".cmp-flex-comparison-table table"),n=e.querySelectorAll("th.cmp-flex-comparison-table__default-data"),i=document.querySelector(".cmp-flex-comparison-table").getAttribute("data-browserCreditCardUrl"),o=document.querySelector(".cmp-flex-comparison-table"),a=o.getAttribute("data-addCardLabel"),s=o.getAttribute("data-addCardLinkLabel"),u=o.getAttribute("data-addCardImgAltText")?o.getAttribute("data-addCardImgAltText"):"",d=o.getAttribute("data-addCardShortLabel"),f=o.getAttribute("data-addProd-image-src"),p=l(n);try{for(p.s();!(t=p.n()).done;){var m=t.value;m.innerHTML=c.c;var g=m.querySelector(".cmp-flex-comparison-table__prod-title span a"),y=m.querySelector(".cmp-flex-comparison-table__prod-image a"),v=m.querySelector(".cmp-flex-comparison-table__prod-image a img");y.setAttribute("aria-label",s),y.href=i,g.href=i,v.src=f,v.setAttribute("alt",u),g.innerHTML=a}}catch(t){p.e(t)}finally{p.f()}var x,_=l(e.querySelectorAll("tbody tr"));try{for(_.s();!(x=_.n()).done;){var w=x.value.getElementsByClassName("cmp-flex-comparison-table__default-data");b(w,"")}}catch(t){_.e(t)}finally{_.f()}var A=document.querySelector(".cmp-flex-comparison-table__sticky-header");if(A){var E=A.getElementsByClassName("cmp-flex-comparison-table__sticky-header-default");b(E,c.b);for(var L=document.querySelectorAll(".cmp-flex-comparison-table__sticky-header-default.empty-cell a"),k=document.querySelectorAll(".cmp-flex-comparison-table__sticky-header-default.empty-cell span a"),C=document.querySelectorAll(".cmp-flex-comparison-table__sticky-header-default.empty-cell a .cmp-button__text"),T=0;T<L.length;T++)L[T].setAttribute("href",i);for(var M=0;M<k.length;M++)k[M].innerHTML=a,C[M].innerHTML=d;var q=document.querySelector(".cmp-flex-comparison-table__sticky-mobile").getElementsByClassName("cmp-flex-comparison-table__sticky-mobile-default");b(q,c.a);for(var I=document.querySelectorAll(".cmp-flex-comparison-table__sticky-mobile-default.empty-cell a"),O=document.querySelectorAll(".cmp-flex-comparison-table__sticky-mobile-default.empty-cell a .cmp-button__text"),P=0;P<I.length;P++)I[P].setAttribute("href",i),O[P].innerHTML=d}Object(r.a)(h,200)(),S()}(),function(t){var e,n=document.querySelectorAll(".cmp-flex-comparison-table__sticky-header [".concat(d,"]")),i=document.getElementsByClassName("cmp-flex-comparison-table__sticky-header-default"),r=document.querySelectorAll(".cmp-flex-comparison-table__sticky-mobile [".concat(d,"]")),o=document.getElementsByClassName("cmp-flex-comparison-table__sticky-mobile-default"),a=0,c=l(t);try{for(c.s();!(e=c.n()).done;){var s=e.value;y(n,i,s,a),y(r,o,s,a),a++}}catch(t){c.e(t)}finally{c.f()}}(v)),function(t){var e=new DOMParser,n=document.querySelector(".cmp-flex-comparison-table table").getElementsByTagName("tr");if(!p()){var i,r=0,o=l(n);try{for(o.s();!(i=o.n()).done;){var a,c=i.value.getElementsByClassName("cmp-flex-comparison-table__default-data"),s=0,u=l(c);try{for(u.s();!(a=u.n()).done;){for(var d=a.value,h=Object.values(t),f=0,m=0,g=h;m<g.length;m++){var y=g[m];if(s===f){var v,b=0,x=l(y);try{for(x.s();!(v=x.n()).done;){var _=v.value;if(r===b){var S=e.parseFromString(_,"text/html"),w=_,A=S.querySelector(".cmp-flex-comparison-table__prod-title"),E=S.querySelector(".cmp-flex-comparison-table__prod-title span.h3");A&&(w=w.replaceAll(A.id,"".concat(A.id,"--selected"))),E&&(w=w.replaceAll(E.id,"".concat(E.id,"--selected"))),d.innerHTML=w,_.includes("<ul")&&d.classList.add("list-cell")}b++}}catch(t){x.e(t)}finally{x.f()}}f++}s++}}catch(t){u.e(t)}finally{u.f()}r++}}catch(t){o.e(t)}finally{o.f()}}}(function(t){var e,n=document.querySelector(".cmp-flex-comparison-table table"),r={},o=l(t);try{for(o.s();!(e=o.n()).done;){var a,c=e.value,s=n.getElementsByTagName("tr"),u=void 0,h=l(s);try{for(h.s();!(a=h.n()).done;){var f,p=a.value.children,m=0,g=l(p);try{for(g.s();!(f=g.n()).done;){var y=f.value,v=y.getAttribute(d);if(v&&v===c){u=m;var b="".concat(v,"_s_offer");"yes"===i.a.localStorageGetItem(b)&&(y.querySelector(".cmp-flex-comparison-table__offer").style.display="block")}if(m===u){var x=y.querySelector(".cmp-flex-comparison-table__prod-image");if(x){var _=x.getAttribute("data-cmp-src"),S=x.getElementsByTagName("img");S.length>0&&(S[0].setAttribute("src",_),S[0].classList.remove("cmp-image__image--is-loading"))}r[c]?r[c].push(y.innerHTML):r[c]=[y.innerHTML];break}m++}}catch(t){g.e(t)}finally{g.f()}}}catch(t){h.e(t)}finally{h.f()}}}catch(t){o.e(t)}finally{o.f()}return r}(v)),function(){var t,e=l(document.querySelector(".cmp-flex-comparison-table table").getElementsByClassName("cmp-flex-comparison-table__remove-prod-btn"));try{for(e.s();!(t=e.n()).done;){var n=t.value;n.removeEventListener("click",x),n.addEventListener("click",x)}}catch(t){e.e(t)}finally{e.f()}}(),function(){var t=document.querySelector(".cmp-flex-comparison-table table"),e=document.querySelector(".cmp-flex-comparison-table__sticky-header"),n=document.querySelector(".cmp-flex-comparison-table__sticky-mobile"),i=document.querySelector(".cmp-footer__back-to-top"),r=document.querySelector(".cmp-footer");document.addEventListener("scroll",(function(){var o=t.querySelector("tbody tr:nth-of-type(1)").offsetTop,a=window.scrollY;a>o?(e.classList.add("active"),e.classList.remove("inactive")):(e.classList.add("inactive"),e.classList.remove("active")),a>o&&a+screen.height<r.offsetTop&&i&&i.classList.contains("hidden")?(n.classList.add("active"),n.classList.remove("inactive")):(n.classList.add("inactive"),n.classList.remove("active"))}))}(),Object(r.a)(h,500)(),Object(r.a)(g,500)(),Object(r.a)(_,500)(),window.addEventListener("resize",(function(){h(!0)})),e.querySelectorAll("[data-view='table-rte']").forEach((function(t){t.parentElement.classList.add("tableRteView")})),S(),w()}},removeProductHandler:x});
1"loading"!==document.readyState?A.init():document.addEventListener("DOMContentLoaded",A.init)},function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var i=n(1),r=n(13),o=n(4),a=n(31),c=n(19),s=n(9);function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var d,h,f,p,m,g,y,v,b,x,_,S,w,A,E=(d="stickyBlockEmpty",f=function(t){var e=t.querySelectorAll(".cmp-compare-table_block-default .cmp-compare-table_block-offer"),n=t.querySelectorAll(".cmp-compare-table_block-default .cmp-compare-table_block-prod-title");e.length>0?n.forEach((function(t){t.classList.add("specialOfferSpacing")})):n.forEach((function(t){t.classList.remove("specialOfferSpacing")}))},p=function(){var t=document.querySelector(".cmp-primary-header__container"),e=document.querySelector(".cmp-header-mobile"),n=document.querySelector(".cmp-header-utility-bar"),i=document.querySelector(".cmp-emergency-message"),r=document.querySelector(".cmp-compare-table_sticky-header"),o=t?t.offsetHeight:0,a=n?n.offsetHeight:0,c=i?i.offsetHeight:0,s=e?e.offsetHeight:0;r.style.top="".concat(o+a+c+s,"px"),window.addEventListener("resize",(function(){o=t?t.offsetHeight:0,a=n?n.offsetHeight:0,s=e?e.offsetHeight:0,c=i?i.offsetHeight:0,r.style.top="".concat(o+a+c+s,"px")}))},m=function(){var t=document.querySelectorAll(".selectTermFilter");t.forEach((function(t){t.addEventListener("change",(function(t){Object(i.a)(h,500)()}))}))},g=function(t){return unescape(o.a.localStorageGetItem(t)).split(",")},y=function(t,e,n,i){var r,o,a=l(t);try{for(a.s();!(o=a.n()).done;){var c=o.value;if(c.getAttribute("data-compareId")===n){r=c.innerHTML;break}}}catch(t){a.e(t)}finally{a.f()}if(r){var s,u=0,h=l(e);try{for(h.s();!(s=h.n()).done;){var f=s.value;f.classList.contains(d)&&u===i&&(f.innerHTML=r,f.classList.remove(d)),u++}}catch(t){h.e(t)}finally{h.f()}}},v=function(t){var e=t.getAttribute("data-cardLang"),n=t.getAttribute("data-cardType"),i="prod_ids_".concat(n,"_").concat(e),r=t.querySelectorAll(".cmp-compare-table_block-default .cmp-compare-table_block-prod-title"),o=g(i),a=[];return r.forEach((function(t){if(t.id){var i=t.id.split("-");i="".concat(e,"_").concat(n,"_").concat(i[2]),a.push(i)}})),b(o,a)},b=function(t,e){return t.length===e.length&&t.every((function(t){if(e.indexOf(t)>-1)return!0}))},x=function(t){var e=t.querySelectorAll("[href='#cmp-modal~cmp-overlay-8-1-g-compare-modal-id']");null!==e&&0!==e.length&&e.forEach((function(t){t.removeEventListener("click",c.a),t.addEventListener("click",c.a)}))},_=function(t,e,n,i){for(var r=0;r<t.length;r++)0!==r&&(t[r].innerHTML=e);for(var o=0;o<n.length;o++){var a=document.createElement("div");a.classList.add("hidden-heading"),a.innerHTML=n[o].innerHTML,i[o].appendChild(a)}},w=function(t){var e,n=t.querySelectorAll(".cmp-compare-table_block-default .cmp-compare-table_block-heading"),r=t.getAttribute("data-browserCreditCardUrl"),o=t.getAttribute("data-addCardLabel"),c=t.getAttribute("data-addCardLinkLabel"),s=t.getAttribute("data-addCardImgAltText")?t.getAttribute("data-addCardImgAltText"):"",u=t.getAttribute("data-addCardShortLabel"),p=t.getAttribute("data-addProd-image-src"),m=l(n);try{for(m.s();!(e=m.n()).done;){var g=e.value;g.innerHTML=a.b;var y=g.querySelector(".cmp-compare-table_block-prod-title a"),v=g.querySelector(".cmp-compare-table_block-prod-image a"),b=g.querySelector(".cmp-compare-table_block-prod-image a img");v.setAttribute("aria-label",c),v.href=r,y.href=r,b.src=p,b.setAttribute("alt",s),y.innerHTML=o}}catch(t){m.e(t)}finally{m.f()}var x,S=t.querySelectorAll(".cmp-compare-table_block-default"),w=document.querySelectorAll(".cmp-compare-table_heading-block .cmp-compare-table_block-data"),A=l(S);try{for(A.s();!(x=A.n()).done;){var E=x.value,L=E.children,k=E.querySelectorAll(".cmp-compare-table_portrait-mobile-visible");_(L,"",w,k)}}catch(t){A.e(t)}finally{A.f()}var C=document.querySelector(".cmp-compare-table_sticky-header");if(C){!function(t,e){var n,i=l(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.classList.add(d),r.innerHTML=e}}catch(t){i.e(t)}finally{i.f()}}(C.getElementsByClassName("cmp-compare-table_sticky-header_block-default"),a.a);for(var T=document.querySelectorAll(".cmp-compare-table_sticky-header_block-default.stickyBlockEmpty a"),M=document.querySelectorAll(".cmp-compare-table_sticky-header_block-default.stickyBlockEmpty span a"),q=document.querySelectorAll(".cmp-compare-table_sticky-header_block-default.stickyBlockEmpty a .cmp-button__text"),I=0;I<T.length;I++)T[I].setAttribute("href",r);for(var O=0;O<M.length;O++)M[O].innerHTML=o,q[O].innerHTML=u}Object(i.a)(h,500)(),f(t)},{init:function(){var t=document.querySelector(".cmp-compare-table");if(t){var e=t.getAttribute("data-cardLang"),n=t.getAttribute("data-cardType"),r="prod_ids_".concat(n,"_").concat(e),o=g(r);!1===v(t)&&(w(t),function(t){var e,n=document.querySelectorAll(".cmp-compare-table_sticky-header [".concat("data-compareId","]")),i=document.getElementsByClassName("cmp-compare-table_sticky-header_block-default"),r=0,o=l(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;y(n,i,a,r),r++}}catch(t){o.e(t)}finally{o.f()}}
1(o));var a=function(t){var e,n=document.querySelector(".cmp-compare-table_container"),i={},r=l(t);try{for(r.s();!(e=r.n()).done;){var o,a=e.value,c=l(n.querySelectorAll(".cmp-compare-table_block"));try{for(c.s();!(o=c.n()).done;){var s=o.value,u=s.children,d=s.getAttribute("data-compareId");if(d&&d===a){var h=s.querySelector(".cmp-compare-table_block-prod-image");if(h){var f=h.getAttribute("data-cmp-src"),p=h.getElementsByTagName("img");p.length>0&&(p[0].setAttribute("src",f),p[0].classList.remove("cmp-image__image--is-loading"))}var m,g=l(u);try{for(g.s();!(m=g.n()).done;){var y=m.value;i[a]?i[a].push(y.innerHTML):i[a]=[y.innerHTML]}}catch(t){g.e(t)}finally{g.f()}}}}catch(t){c.e(t)}finally{c.f()}}}catch(t){r.e(t)}finally{r.f()}return i}(o);!function(t,e){if(!v(t))for(var n=Object.values(e),i=t.querySelectorAll(".cmp-compare-table_block-default"),r=0;r<n.length;r++)for(var o=i[r].children,a=0;a<o.length;a++)o[a].innerHTML=n[r][a],n[r][a].includes("<ul")&&o[a].classList.add("list-cell")}(t,a),function(t){var e,n=l(t.getElementsByClassName("cmp-compare-table_block-remove-prod-btn"));try{for(n.s();!(e=n.n()).done;){var i=e.value;i.removeEventListener("click",S),i.addEventListener("click",S)}}catch(t){n.e(t)}finally{n.f()}}(t),function(t){var e=t.querySelector(".cmp-compare-table_sticky-header");document.addEventListener("scroll",(function(){var n=t.querySelector(".cmp-compare-table_block-default .cmp-compare-table_block-data").offsetTop;window.scrollY>n?(e.classList.add("active"),e.classList.remove("inactive")):(e.classList.add("inactive"),e.classList.remove("active"))}))}(t),Object(i.a)(h,1e3)(),Object(i.a)(p,1e3)(),Object(i.a)(m,1e3)(),window.addEventListener("resize",(function(){h()})),t.querySelectorAll("[data-view='table-rte']").forEach((function(t){t.parentElement.classList.add("tableRteView")})),f(t),x(t),Object(s.c)(t),Object(i.a)(A,1e3)()}},removeProductHandler:S=function(t,e){var n;t.stopPropagation(),n=e?e.lang+"_"+e.prodType+"_"+e.prodId:t.target.closest("a.btn_rm_prod").getAttribute("data-prodId");var r,c=document.querySelector(".cmp-compare-table"),u=c.querySelectorAll(".cmp-compare-table_block-default .cmp-compare-table_block-heading"),p=0,m=0,g=c.getAttribute("data-browserCreditCardUrl"),y=c.getAttribute("data-cardLang"),v=c.getAttribute("data-cardType"),b=c.getAttribute("data-addCardLabel"),S=c.getAttribute("data-addCardLinkLabel"),w=c.getAttribute("data-addCardImgAltText")?c.getAttribute("data-addCardImgAltText"):"",A=c.getAttribute("data-addCardShortLabel"),E=c.getAttribute("data-addProd-image-src"),L=l(u);try{for(L.s();!(r=L.n()).done;){var k=r.value;if(k.querySelector("[data-prodId=".concat(n,"]"))){p=m,k.innerHTML=a.b;var C=k.querySelector(".cmp-compare-table_block-prod-title a"),T=k.querySelector(".cmp-compare-table_block-prod-image a"),M=k.querySelector(".cmp-compare-table_block-prod-image a img");T.setAttribute("aria-label",S),T.href=g,C.href=g,M.src=E,M.setAttribute("alt",w),C.innerHTML=b;break}m++}}catch(t){L.e(t)}finally{L.f()}var q=c.querySelectorAll(".cmp-compare-table_block-default"),I=document.querySelectorAll(".cmp-compare-table_heading-block .cmp-compare-table_block-data"),O=q[p],P=O.children,N=O.querySelectorAll(".cmp-compare-table_portrait-mobile-visible");_(P,"",I,N);var D=document.querySelector(".cmp-compare-table_sticky-header");if(D){!function(t,e){t.classList.add(d),t.innerHTML=e}(D.getElementsByClassName("cmp-compare-table_sticky-header_block-default")[p],a.a);for(var B=document.querySelectorAll(".cmp-compare-table_sticky-header_block-default.stickyBlockEmpty a"),j=document.querySelectorAll(".cmp-compare-table_sticky-header_block-default.stickyBlockEmpty span a"),R=document.querySelectorAll(".cmp-compare-table_sticky-header_block-default.stickyBlockEmpty a .cmp-button__text"),H=0;H<B.length;H++)B[H].setAttribute("href",g);for(var z=0;z<j.length;z++)j[z].innerHTML=b,R[z].innerHTML=A}Object(i.a)(h,500)();var F=n.replace("".concat(y,"_").concat(v,"_"),"");o.a.checkLocalStorageIdsInList(v,y,F)&&o.a.deleteProductLocalStorage(v,F,y),f(c),x(c),Object(s.c)(c)},setEqualCellHeights:h=function(){var t=document.querySelector(".cmp-compare-table"),e=t.querySelectorAll(".cmp-compare-table_block-prod-title");Object(r.c)(e,!0);var n=t.querySelectorAll(".cmp-compare-table_block-prod-image img");Object(r.c)(n,!0);var i=t.querySelectorAll(".cmp-compare-table_block-heading");Object(r.c)(i,!0);var o=t.querySelectorAll(".cmp-compare-table_sticky-header_block-prod-title");Object(r.d)(o,!0);for(var a=t.querySelectorAll(".cmp-compare-table_block"),c=t.querySelector(".cmp-compare-table_block").querySelectorAll(".cmp-compare-table_block-data"),s=0;s<c.length;s++){for(var u=[],d=0;d<a.length;d++){var h=a[d].querySelectorAll(".cmp-compare-table_block-data");u.push(h[s])}Object(r.c)(u,!0)}var f,p=l(t.querySelectorAll(".cmp-compare-table_block-default .cmp-compare-table_portrait-mobile-visible"));try{for(p.s();!(f=p.n()).done;){var m=f.value,g=m.querySelector(".hidden-heading").offsetHeight;m.style.height=g+"px"}}catch(t){p.e(t)}finally{p.f()}},ratesDropdownUpdate:A=function(){var t=document.querySelector(".cmp-compare-table"),e=t.querySelectorAll(".cmp-compare-table_block-default");if(t.querySelectorAll(".cmp-compare-table_block-default .selectTermFilter").length>=1)for(var n=0;n<e.length;n++){var i=e[n].querySelector(".selectTermFilter"),r=e[n].querySelector(".selectTermFilterLabel");if(null!==i&&null!==r){var o=e[n].querySelector(".cmp-compare-table_block-prod-title a").innerHTML;o=o.replace(/<sup.*?>.*?<\/sup>/gi,""),r.innerHTML=o,i.setAttribute("aria-label",o)}}}});"loading"!==document.readyState?E().init():document.addEventListener("DOMContentLoaded",E.init)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i,r=(i=[{name:"title",formats:["HTML"]},{name:"content",formats:["HTML"]},{name:"action_0",formats:["VALUE"]},{name:"extension",formats:["VALUE"]}],{getSearchResult:function(t,e,n,r,o,a,c,s,l){var u={},d={};u.user=function(t,e){return{query:{unparsed:t},constraints:[{label:"client",filtered_name:"client",filter_base:[{label:"client",unparsed:e}]}]}}(e,o),u.count=n,u.content_sample_length=100,u.orderby="mes:relevance",u.properties=i,u.user_context={locale:r},a&&(u.paging_states=[a]),c&&(u.paging={direction:c}),d.method="POST",function(t){t.headers={"Content-Type":"application/json",Accept:"application/json"}}(d),function(t,e,n){"POST"==n&&(t.body=JSON.stringify(e))}(d,u,d.method),fetch(t,d).then((function(t){if(t.ok)return t.json();throw new Error("Error")})).then((function(t){return function(t,e){var n={};n.results=t.resultset.results,n.nextAvail=t.resultset.next_avail,n.pagingState=t.resultset.per_service_dataset[0].paging_state,e&&e(n)}(t,s)})).catch((function(t){return function(t,e){console.log(t)}(t)}))}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n(8),r=(n(1),n(0)),o=n(9),a=0;
1function c(t,e){var n,c,s,l,u,d,h,f,p,m,g,y,v,b,x,_,S,w,A,E,L,k=t.getAttribute("data-prodname"),C=t.querySelector(".complex-select-term"),T=t.querySelector(".complex-select-min-balance"),M=t.querySelector(".complex-select-year"),q=i.a.getProductDetails(k,e),I=t.getAttribute("data-term-label"),O=t.getAttribute("data-minbalance-label"),P=t.getAttribute("data-year-label"),N=t.getAttribute("data-standardrate-label"),D=t.getAttribute("data-bumprate-label");function B(e,n){e=e.substring(0,e.length-1),A=t.querySelector(".cmp-product-card__rates-card"),_='<div class="cmp-product-card__rates-card__rates-label cmp-text">\n <span class="cmp-product-card__rates-card__percent td-xxl-copy">'.concat(e,'<sup><span class="h3">%</span></sup></span>\n <div class="cmp-product-card__rates-card__descriptor">').concat(n,"</div>\n </div>"),A.insertAdjacentHTML("beforeend",_)}function j(e,n){p=t.querySelector(".cmp-product-card__rates_custom_data"),_='<div class="'.concat(n,'">').concat(e,"</div>"),p.insertAdjacentHTML("beforeend",_)}function R(e,n){var i=n.split(" "),r="";i.forEach((function(t){r+=t+"_"})),r+=a;var o=t.querySelector(".cmp-product-card__forms-dropdown");_='<div class="cmp-product-card__dropdowns cmp-droplist__form-group">\n <label for="'.concat(r,'" class="cmp-product-card__dropdown-label">').concat(n,'</label>\n <div class="cmp-droplist__select-container">\n <select class="cmp-droplist__select complex-select-').concat(e,'" id="').concat(r,'" aria-labelledby="').concat(r," ").concat(c,'">\n </select>\n </div>\n </div>'),o.insertAdjacentHTML("beforeend",_)}function H(){v=null,b=null,q.rates[0].bumpRates&&(m=q.rates[0].bumpRates[0].currentAPY,v=q.rates[0].bumpRates[0].minDailyBalance),q.rates[0].standardRates&&(x=q.rates[0].standardRates[0].currentAPY,b=q.rates[0].standardRates[0].minDailyBalance),g=null!=m&&m.includes("<table"),y=null!=x&&x.includes("<table")}function z(){G(),Object(o.c)(t),C&&C.addEventListener("change",(function(e){A.innerHTML=null,G(),F(),Object(o.c)(t)})),T&&T.addEventListener("change",(function(e){A.innerHTML=null,G(),F(),Object(o.c)(t)}))}function F(){t.querySelector(".rate-update").innerHTML=null,setTimeout((function(){t.querySelector(".rate-update").innerHTML=r.t}),400)}function G(){S=C?C.value:"",w=T?T.value:"",""!==S&&""!==w?W(S,w,"bumpRates","standardRates"):""!==S&&""==w?W(S,null,"bumpRates","standardRates"):""==S&&""!==w&&W("NULL",w,"bumpRates","standardRates")}function W(t,n,r,o){var a=i.a.getValueDetails(k,t,r,e),c=i.a.getValueDetails(k,t,o,e);a&&!c?U(t,n,r,o,!0,!1):!a&&c?U(t,n,r,o,!1,!0):a&&c&&U(t,n,r,o,!0,!0)}function U(t,n,r,o,a,c){var s,l;a&&!c&&i.a.getRatePercentageDetails(k,t,r,n,e).currentAPY?(s=i.a.getRatePercentageDetails(k,t,r,n,e).currentAPY).includes("<table")?s.includes("<table")&&Y(s,""):B(s,D):!a&&c&&i.a.getRatePercentageDetails(k,t,o,n,e).currentAPY?(l=i.a.getRatePercentageDetails(k,t,o,n,e).currentAPY).includes("<table")?l.includes("<table")&&Y("",l):B(l,N):a&&c&&i.a.getRatePercentageDetails(k,t,r,n,e).currentAPY&&i.a.getRatePercentageDetails(k,t,o,n,e).currentAPY&&(s=i.a.getRatePercentageDetails(k,t,r,n,e).currentAPY,l=i.a.getRatePercentageDetails(k,t,o,n,e).currentAPY,s.includes("<table")||l.includes("<table")?s.includes("<table")&&l.includes("<table")&&Y(s,l):(B(s,D),B(l,N)))}function Y(e,n){var i,r,a,c,s="",l="";t.querySelector(".complex-select-year").innerHTML=null,t.querySelector(".cmp-product-card__rates_custom_data").innerHTML=null,M=t.querySelector(".complex-select-year"),e&&(j(e,"bumpRateTerm"),r=t.querySelector(".bumpRateTerm"),d=r.querySelectorAll("dd"),f=d.length,s=e.split("<table")[0]),n&&(j(n,"standardRateTerm"),a=t.querySelector(".standardRateTerm"),h=a.querySelectorAll("dd"),f=h.length,l=n.split("<table")[0]),i='<option data-bumpRateApy="'+s+'" data-standardRateApy="'+l+'">Composite APY</option>',M.insertAdjacentHTML("afterbegin",i);for(var u=1;u<f;++u){var p=void 0,m=void 0,g=void 0,y=void 0;e&&(g=p=d[u].innerHTML.replace(/ /g,"").split(" ")),n&&(y=p=h[u].innerHTML.replace(/ /g,"").split(" ")),(m=document.createElement("option")).innerHTML=p[1]+" "+p[2],e&&m.setAttribute("data-bumpRateApy",g[0]),n&&m.setAttribute("data-standardRateApy",y[0]),M.appendChild(m)}c=M.options[M.selectedIndex],e&&B(c.getAttribute("data-bumpRateApy"),D),n&&B(c.getAttribute("data-standardRateApy"),N),M.addEventListener("change",(function(e){A.innerHTML=null;var n=e.currentTarget.options[e.currentTarget.selectedIndex];n.getAttribute("data-bumpRateApy")&&B(n.getAttribute("data-bumpRateApy"),D),n.getAttribute("data-standardRateApy")&&B(n.getAttribute("data-standardRateApy"),N),F(),Object(o.c)(t)}))}a+=1,null!==t.parentElement.parentElement.querySelector(".cmp-product-card__title h2")&&(n=t.parentElement.parentElement.querySelector(".cmp-product-card__title h2"),c=n.getAttribute("id")),_='<div class="cmp-product-card__rates_custom_data hidden"></div>
1\n <span class="visually-hidden rate-update" aria-live="assertive"></span>\n <div class="cmp-product-card__rates-card" role="region" aria-labelledby="'.concat(c,'"></div>\n <div class="cmp-product-card__forms-dropdown"></div>'),t.insertAdjacentHTML("afterbegin",_),1==q.rates.length&&"NULL"==q.rates[0].term&&(l=i.a.getValueDetails(k,"NULL","bumpRates",e),u=i.a.getValueDetails(k,"NULL","standardRates",e),function(e,n){null!==e&&e.length>=1?(R("min-balance",O),T=t.querySelector(".complex-select-min-balance"),i.a.getOptionToDom(e,"minDailyBalance",T)):null!==n&&n.length>=1&&(R("min-balance",O),T=t.querySelector(".complex-select-min-balance"),i.a.getOptionToDom(n,"minDailyBalance",T))}(l,u),z()),H(),q.rates.length>=1&&"NULL"!==q.rates[0].term&&null==v&&null==b&&0==g&&0==y&&(s=q.rates,R("term",I),C=t.querySelector(".complex-select-term"),i.a.getOptionToDom(s,"term",C),z()),q.rates.length>1&&(H(),null===v&&null===b||(L=x,g=null!=(E=m)&&E.includes("<table"),y=null!=L&&L.includes("<table"),0==g&&0==y&&(R("term",I),C=t.querySelector(".complex-select-term"),i.a.getOptionToDom(q.rates,"term",C),R("min-balance",O),T=t.querySelector(".complex-select-min-balance"),l=null!==q.rates[0].bumpRates?q.rates[0].bumpRates:q.rates[0].standardRates,i.a.getOptionToDom(l,"minDailyBalance",T)),z()),1!=g&&1!=y||(function(e,n){g=null!=e&&e.includes("<table"),y=null!=n&&n.includes("<table"),(1==g||1==y)&&(R("term",I),R("year",P),C=t.querySelector(".complex-select-term"),i.a.getOptionToDom(q.rates,"term",C))}(m,x),z()))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(8),r=n(29);function o(t,e,n){var o=t.getAttribute("data-prodname"),a=t.getAttribute("data-value"),c=i.a.getProductDetails(o,n);if(null!==o&&null!==a&&"NULL"!==c.rates[0].term){!function(t,e,n){var i="selectDropDown-"+e,r=document.createElement("div");t.appendChild(r).innerHTML='<div class="cmp-droplist__form-group">\n <div class="cmp-droplist__select-container">\n <label class="visually-hidden selectTermFilterLabel" aria-hidden="true" for="'.concat(i,'">').concat(n,'</label>\n <select class="cmp-droplist__select selectTermFilter" id="').concat(i,'" aria-label="').concat(n,'">\n </select>\n </div>\n </div>')}(t,e,o);var s=t.querySelector(".selectTermFilter"),l=i.a.getProductDetails(o,n).rates;i.a.getOptionToDom(l,"term",s),Object(r.a)(o,s.value,n),s.addEventListener("change",(function(){Object(r.a)(o,s.value,n)}))}else t.innerHTML="N/A",Object(r.a)(o,"NULL",n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(8);function r(t,e,n){var r=t.getAttribute("data-prodname"),o=t.querySelector("div[data-value]"),a=o.getAttribute("data-value"),c=o.getAttribute("data-ariaLabel");if(null!==o){var s=function(){var e=t.querySelectorAll(".newRowAdded");0!==e.length&&e.forEach((function(t){return t.remove()}));var o=l.value;i.a.appendTableData(t,r,o,n)};!function(t,e,n,i){var r="selectDropDown-"+i,o=document.createElement("div");t.appendChild(o).innerHTML='<div class="cmp-droplist__form-group">\n <label for="'.concat(r,'">').concat(e,'</label>\n <div class="cmp-droplist__select-container">\n <select class="cmp-droplist__select selectTermFilter" aria-label="').concat(n,'" id="').concat(r,'">\n </select>\n </div>\n </div>')}(o,a,c,e);var l=t.querySelector(".selectTermFilter"),u=i.a.getProductDetails(r,n).rates;i.a.getOptionToDom(u,"term",l),s(),l.addEventListener("change",s)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(0),r=function(){var t=".cmp-card-bundle-12-3-a-b-c__product",e=[];function n(e){var n,o,a,c=[],s=e.querySelector(".cmp-card-bundle-12-3-a-b-c__variation-A"),l=e.querySelector(".cmp-card-bundle-12-3-a-b-c__variation-B"),u=e.querySelector(".cmp-card-bundle-12-3-a-b-c__variation-C"),d=e.getAttribute("data-baseURL"),h=e.querySelector(".cmp-card-bundle-12-3-1-b-c__ctaBtn a"),f=null!==(n=null===(o=document.querySelector("".concat(".cmp-card-bundle-12-3-a-b-c__container")))||void 0===o?void 0:o.getAttribute("data-exposedProductCount"))&&void 0!==n?n:-1,p=document.querySelector("".concat(".cmp-card-bundle-12-3-a-b-c__show-all"));null!==u&&(e.querySelectorAll("".concat('.cmp-card-bundle-12-3-a-b-c__compare input[type="checkbox"]')).forEac
1h((function(t){t.addEventListener("click",y),t.addEventListener("keydown",v)})),e.querySelectorAll(".form-check.radio.disabled").forEach((function(t){t.querySelectorAll("a").forEach((function(t){t.setAttribute("tabindex","-1")}))})),function(){if(null==p||p.classList.add("hidden"),p&&f>0){var e=document.querySelectorAll("".concat(t));e.length>f&&(p.classList.remove("hidden"),function(t){var e=document.createElement("div");e.id="show-all-block",e.classList.add("hidden"),p.querySelector("a").addEventListener("click",(function(t){return function(t,e){var n;t.preventDefault(),p.classList.add("hidden"),e.classList.remove("hidden"),null===(n=e.querySelector('input:enabled, button, [href], [tabindex]:not([tabindex="-1"])'))||void 0===n||n.focus()}(t,e)})),t.forEach((function(t,n){n>=f&&e.appendChild(t)})),t[f-1].parentNode.appendChild(p),t[f-1].parentNode.appendChild(e),h&&t[f-1].parentNode.appendChild(h.parentElement.parentElement);e.querySelector("input:checked")&&p.querySelector("a").click()}(e))}}());null!==s&&e.querySelectorAll(".radio input").forEach((function(t){t.addEventListener("click",g)}));function m(n,i){if(h)if(null!==n&&n.length>0){var r=d.split("=")[0],o=d.split("=")[1];if(null!==r&&null!==o){var a=o.split(",");n.forEach((function(t){a.push(t.split("|")[0]+"~"+(a.length+1))}));var c=r+"="+a.join(",");h.setAttribute("href",c),function(e,n){for(var i=Array.from(e.querySelectorAll("".concat(".cmp-card-bundle-12-3-a-b-c__container",":checked"))),r=0,o=i;r<o.length;r++){var a=o[r].closest("".concat(t));if(a){var c=a.querySelectorAll('.radio input[type="radio"]');if(c.length>0&&!Array.from(c).some((function(t){return t.checked})))return!1}}return i.length>=0}(e)&&(h.classList.remove("disabled"),h.setAttribute("tabindex","0"),h.setAttribute("aria-disabled","false"))}}else h.setAttribute("href","#"),h.classList.add("disabled"),h.setAttribute("tabindex","-1"),h.setAttribute("aria-disabled","true")}function g(t){var n=t.target.closest("div.cmp-card-bundle-12-3-a-b-c__product");if(t.target.checked){n.classList.add("cmp-card-bundle-12-3-a-b-c__product-border"),c.includes(t.target.value+"|radio")||c.push(t.target.value+"|radio");var i=e.querySelector(".radio input:not(:checked)").value;m(c=c.filter((function(t){return t!==i+"|radio"})))}}function y(t){var e=t.target,n=e.closest("div.cmp-card-bundle-12-3-a-b-c__product");e.checked?b(n,e):x(n,e),r(e)}function v(t){var e=t.target,n=e.checked,o=e.closest("div.cmp-card-bundle-12-3-a-b-c__product");("keydown"===t.type&&t.keyCode===i.m.ENTER||t.keyCode===i.m.SPACE)&&(n?x(o,e):b(o,e),r(e))}function b(e,n){var i=e.querySelectorAll("".concat(t," .radio"));e.classList.add("cmp-card-bundle-12-3-a-b-c__product-border"),1,i.length>0?(h&&(h.setAttribute("href","#"),h.classList.add("disabled"),h.setAttribute("tabindex","-1"),h.setAttribute("aria-disabled","true")),i.forEach((function(t){var e=t.querySelector("input");t.classList.remove("disabled"),e.disabled=!1,e.addEventListener("click",g),t.querySelectorAll("a").forEach((function(t){t.setAttribute("tabindex","0")}))}))):(c.unshift(n.value+"|checkbox"),m(c))}function x(e,n){var i=e.querySelectorAll("".concat(t," .radio"));e.classList.remove("cmp-card-bundle-12-3-a-b-c__product-border"),1,i.length>0?i.forEach((function(t){t.querySelector("input").checked=!1,t.querySelector("input").disabled=!0,t.classList.add("disabled");var e=t.querySelector("input").value+"|radio";m(c=c.filter((function(t){return t!==e}))),t.querySelectorAll("a").forEach((function(t){t.setAttribute("tabindex","-1")}))})):m(c=c.filter((function(t){return t!==n.value+"|checkbox"})))}null!==l&&(h.setAttribute("href",d),h.setAttribute("tabindex","0"),h.setAttribute("aria-disabled","false"),a=l.querySelector("img.plusIcon"),window.innerWidth<i.l.LG&&a.setAttribute("tabindex","0"))}function r(n){var i,r=n.closest("".concat(t)),o=!0,a=[],c=null===(i=r.dataset.businessRule)||void 0===i?void 0:i.split(",");return null==c||c.forEach((function(t){var i,c,s=t.split("/")[t.split("/").length-2],l=t.split("/")[t.split("/").length-1];"inclusion-rules"!==s&&(e.includes(l)?o=!1:(a.push(l),n.checked?(e.push(n.value),null===(i=r.querySelector(".td-error"))||void 0===i||i.classList.remove("hidden")):(e=e.filter((function(t){return t!==n.value})),null===(c=r.querySelector(".td-error"))||void 0===c||c.classList.add("hidden"))))})),a.forEach((function(t){var e=document.querySelector("".concat('.cmp-card-bundle-12-3-a-b-c__compare input[type="checkbox"]',"[value='").concat(t,"']"));e&&(e.disabled=n.checked)})),o}return{init:function(){var t=document.querySelectorAll(".".concat("cmp-card-bundle-12-3-a-b-c",":not([data-component-state='initialized'])"));t.length>0&&t.forEach((function(t){n(t),t.setAttribute("data-component-state","initialized")}))},handleExclusiveAccounts:r}}();"loading"!==document.readyState?r().init():document.addEventListener("DOMContentLoaded",r.init)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n(12),r=n(0),o=n(1);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s=function(){var t=document.querySelectorAll(".cmp-product-description__data-sli
1der"),e=document.querySelectorAll(".cmp-product-description__container"),n=document.querySelectorAll('form[name="search-form"]');if(n&&n.forEach((function(t){t.addEventListener("submit",(function(e){e.preventDefault();var n=t.dataset.action,i=encodeURIComponent(t.querySelector('input[name="search"]').value.trim());location.href="".concat(n,"?search=").concat(i)}))})),t)for(var i=function(n){if(0==e[n].querySelectorAll(".tns-outer").length){var i=t[n].id,r=!1;"stacked"===t[n].getAttribute("data-mobileview")&&(r=!0);var o=t[n].getAttribute("data-navposition");l("#"+i,r,o);var a=t[n].querySelectorAll(".slider-item"),c=document.querySelectorAll(".tns-nav"),s=document.querySelectorAll(".tns-nav [aria-controls]"),u=Number(t[n].getAttribute("data-columnscount")),d=t[n].getAttribute("data-rowscount"),h=e[n].querySelector(".cmp-product-description__read-more .td-link-action"),f=e[n].querySelector(".cmp-product-description__read-more");c.forEach((function(t){t.removeAttribute("aria-label")})),s.forEach((function(t){t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}));for(var p=0;p<a.length;p++)a[p].removeAttribute("aria-hidden"),a[p].removeAttribute("tabindex");var m=0,g=a.length,y=u*d,v=y;if(h&&f.classList.add("hidden"),d){for(var b=function(t){var e=t.querySelector(".cmp-teaser__image");if(e&&""!==e.innerHTML.trim())e.setAttribute("tabIndex","-1"),e.focus();else{var n=t.querySelector(".cmp-teaser__content");n&&""!==n.children[0].innerHTML.trim()&&(n.children[0].children[0].setAttribute("tabIndex","-1"),n.children[0].children[0].focus())}},x=function(){if(w)for(var e=0;e<w.length;e++)t[n].appendChild(w[e])},_=function(){if(w)for(var e=0;e<w.length;e++)t[n].removeChild(w[e])},S=0;S<a.length;S++)a[S].classList.add("hidden");var w=document.querySelectorAll(".slider-item.hidden");_(),g>y?(f.classList.remove("hidden"),g-=y):v=g,x();for(var A=0;A<v;A++)a[A].classList.remove("hidden"),m++;w=document.querySelectorAll(".slider-item.hidden"),_(),h.addEventListener("click",(function(){var t=!0;if(g>y){v+=y,g-=y,x();for(var e=m;e<v;e++)a[e].classList.remove("hidden"),t&&(b(a[e]),t=!1),m++;w=document.querySelectorAll(".slider-item.hidden"),_()}else{v+=g,x();for(var n=m;n<v;n++)a[n].classList.remove("hidden"),t&&(b(a[n]),t=!1),m++;f.classList.add("hidden"),w=document.querySelectorAll(".slider-item.hidden"),_()}}))}}},r=0;r<t.length;r++)i(r)},l=function(t,e,n){Object(i.a)({container:t,mode:"carousel",loop:!1,items:1,slideBy:"page",nav:!0,autoplay:!1,speed:400,autoplayButtonOutput:!1,mouseDrag:!1,lazyload:!0,controls:!1,arrowKeys:!0,autoheight:!0,navPosition:n,responsive:{0:{disable:e},767:{disable:e},768:{disable:!0},1024:{disable:!0},1200:{disable:!0}}})};function u(){var t=document.querySelectorAll(".cmp-product-description--image-cta"),e=document.querySelectorAll(".cmp-product-description--image-cta-flush"),n=document.querySelectorAll(".cmp-product-description--image-cta-grid"),i=document.querySelectorAll(".cmp-product-description--image-cta-divider"),c=document.querySelectorAll(".cmp-product-description--text-tools-swipeable-3-2-r"),s=[].concat(a(t),a(e),a(i),a(n),a(c));if(window.innerWidth>=r.l.SM){if(!s)return;s.forEach((function(t){var e=!0,n=t.querySelector(".cmp-product-description__data-slider"),i=t.querySelectorAll(".slider-item .cmp-teaser"),a=Object(o.e)("."+n.classList.value+".slider-item .cmp-teaser .cmp-teaser__image","."+n.classList.value+".slider-item",n.id),c=0;if(window.innerWidth>=r.l.MD||3==i.length)Object(o.e)("."+n.classList.value+".slider-item .cmp-teaser .cmp-teaser__title","."+n.classList.value+".slider-item",n.id),Object(o.e)("."+n.classList.value+".slider-item .cmp-teaser .cmp-teaser__action-container","."+n.classList.value+".slider-item",n.id),i.forEach((function(t){var e=t.querySelector(".cmp-teaser__description");e&&(e.style.minHeight="auto");var n=e?e.offsetHeight:0;t.querySelector(".cmp-image__image")&&(n+=a),c<n&&(c=n)})),i.forEach((function(t){var n=t.querySelector(".cmp-teaser__description"),i=t.getAttribute("data-orderBy");if(null===t.querySelector(".cmp-image__image")&&"titlefirstseq"===i){var r=t.querySelector(".cmp-teaser__image");r&&(r.style.minHeight="0px"),n&&(n.style.minHeight=parseInt(c,10)+"px"),e=!1}else n&&(n.style.minHeight=parseInt(c,10)-parseInt(a,10)+"px")}));else{Object(o.e)("."+n.classList.value+".slider-item .cmp-teaser .cmp-teaser__title","."+n.classList.value+".slider-item",n.id),Object(o.e)("."+n.classList.value+".slider-item .cmp-teaser .cmp-teaser__action-container","."+n.classList.value+".slider-item",n.id);for(var s=Math.ceil(i.length/2),l=i.length%2==0?2:1,u=0;u<s;u++){c=0;for(var d=0;d<l;d++){var h=i[2*u+d].querySelector(".cmp-teaser__description");h&&(h.style.minHeight="auto");var f=h?h.offsetHeight:0;i[2*u+d].querySelector(".cmp-image__image")&&(f+=a),c<f&&(c=f)}for(var p=0;p<l;p++){var m=i[2*u+p].querySelector(".cmp-teaser__description"),g=i[2*u+p].getAttribute("data-orderBy");
1if(null===i[2*u+p].querySelector(".cmp-image__image")&&"titlefirstseq"===g){var y=i[2*u+p].querySelector(".cmp-teaser__image");y&&(y.style.minHeight="0px"),m&&(m.style.minHeight=parseInt(c,10)+"px"),e=!1}else m&&(m.style.minHeight=parseInt(c,10)-parseInt(a,10)+"px")}}}i.forEach((function(t){if(t.parentElement.classList.contains("text-tools-swipeable-3-2-r")){var e=t.querySelector(".cmp-teaser__image .cmp-image"),n=e&&e.offsetHeight,i=t.querySelector(".cmp-teaser__image .cmp-image__play-icon");i&&(i.style.top=n/2+"px")}})),e&&Object(o.e)("."+n.classList.value+".slider-item .cmp-teaser .cmp-teaser__content","."+n.classList.value+".slider-item",n.id)})),t.length>0&&t.forEach((function(t){var e=t.querySelectorAll(".cmp-product-description__data-slider .slider-item"),n=e.length,i=0,r=t.querySelector(".cmp-product-description__data-slider").getAttribute("data-columnscount");i=n%r==0?r:n%r;for(var o=1;o<=i;o++)e[n-o].style.paddingBottom="15px !important"}))}else s.forEach((function(t){t.querySelectorAll(".slider-item .cmp-teaser").forEach((function(t){var e=t.querySelector(".cmp-teaser__content"),n=t.querySelector(".cmp-teaser__description");e&&(e.style.minHeight="0px"),n&&(n.style.minHeight="0px")}))}))}document.addEventListener("DOMContentLoaded",(function(){s()})),window.product_description=function(){s()},["load","resize","tabchange"].forEach((function(t){window.addEventListener(t,Object(o.a)((function(){u()}),500))})),window.addEventListener("load",(function(){o.g.lazyLoadingEqualHeight("cmp-image__image",u)}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return F}));var i=n(0);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==e);s=!0);}catch(t){l=!0,r=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function l(t,e,n){u(t,e),e.set(t,n)}function u(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(t,e){return t.get(f(t,e))}function h(t,e,n){return t.set(f(t,e),n),n}function f(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,S=new WeakMap,w=new WeakMap,A=new WeakMap,E=new WeakMap,L=new WeakMap,k=new WeakMap,C=new WeakMap,T=new WeakMap,M=new WeakMap,q=new WeakMap,I=new WeakMap,O=new WeakMap,P=new WeakMap,N=new WeakMap,D=new WeakMap,B=new WeakMap,j=new WeakMap,R=new WeakMap,H=new WeakSet,z=new WeakMap,F=function(){return function(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e,n,i,r,o,a){var c,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}
1(this,t),u(c=this,s=H),s.add(c),l(this,p,"cmp-fund-list-with-filter"),l(this,m,"cmp-fund-filter-combined"),l(this,g,"cmp-fund-list-with-filter--exposed-filter"),l(this,y,"cmp-fund-list-with-filter--modal-filter"),l(this,v,"mobile-fund-filter-trigger"),l(this,b,"mobile-fund-filter-close"),l(this,x,"mobile-fund-filter-reset"),l(this,_,"mobile-fund-filter-apply"),l(this,S,"filter-modal"),l(this,w,void 0),l(this,A,void 0),l(this,E,void 0),l(this,L,void 0),l(this,k,void 0),l(this,C,void 0),l(this,T,{}),l(this,M,void 0),l(this,q,void 0),l(this,I,void 0),l(this,O,void 0),l(this,P,void 0),l(this,N,void 0),l(this,D,void 0),l(this,B,void 0),l(this,j,void 0),l(this,R,void 0),l(this,z,f(H,this,$).bind(this)),h(M,this,e),h(q,this,n),h(I,this,i),h(P,this,r),h(j,this,o),h(R,this,a),h(C,this,document.querySelector(".".concat(d(m,this)))),h(O,this,d(C,this).querySelectorAll('div[data-group-id="product-types"]')),h(N,this,d(C,this).querySelectorAll('div[data-group-id="mutual-funds-series"]')),h(w,this,document.querySelector("#".concat(d(S,this)))),h(A,this,document.querySelector("#".concat(d(v,this)))),h(E,this,document.querySelector("#".concat(d(b,this)))),h(L,this,document.querySelector("#".concat(d(x,this)))),h(k,this,document.querySelector("#".concat(d(_,this))))}),[{key:"displayFilterOptions",value:function(){var t,e=this,n=null===(t=d(q,this))||void 0===t?void 0:t.filterTypes;null==n||n.forEach((function(t){var n=t.displayType;switch(n){case"simple":f(H,e,Y).call(e,t);break;case"select":f(H,e,V).call(e,t);break;case"complex-group":f(H,e,X).call(e,t);break;default:console.warn("Unknown filter display type: ".concat(f(H,e,G).call(e,n)))}})),f(H,this,et).call(this,".".concat(d(p,this),"--filter-group.checkbox-group")),f(H,this,nt).call(this,".".concat(d(p,this),"--filter-group.complex-group")),f(H,this,lt).call(this,".".concat(d(p,this),"--filter-group.select-group")),f(H,this,J).call(this),f(H,this,K).call(this),setTimeout((function(){var t;("0"!==d(j,e)&&f(H,e,U).call(e,d(j,e)),""!==d(R,e))&&(h(D,e,d(C,e).querySelectorAll(".".concat(d(p,e),"--filter-sub-group"))),null===(t=d(D,e))||void 0===t||t.forEach((function(t){var n=t.querySelector('input[data-id="group-'.concat(d(R,e),'"]'));n&&(n.checked=!0,n.dispatchEvent(new Event("change")))})))}),100)}},{key:"filterDefaultSeries",value:function(){var t,e=this;null===(t=d(N,this))||void 0===t||t.forEach((function(t){var n=t.getAttribute("data-group-id"),i=d(P,e);d(P,e)&&(t.querySelector("select").value=d(P,e),d(T,e)[n]=i)})),f(H,this,mt).call(this,d(M,this),d(T,this))}}])}();function G(t){return null==t?"":String(t).replace(/[\r\n]/g,"")}function W(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=document.createElement("div");r.classList.add("cmp-checkbox");var a=document.createElement("div");a.classList.add("form-check");var c=document.createElement("input");c.type="checkbox",c.setAttribute("data-id",t),c.setAttribute("value",e),c.id=t;for(var s=0,l=Object.entries(i);s<l.length;s++){var u=o(l[s],2),d=u[0],h=u[1];!0===h?c.setAttribute(d,""):c.setAttribute(d,h)}var f=document.createElement("label");return f.classList.add("cmp-text","checkbox-label"),f.setAttribute("for",t),f.textContent=n,a.appendChild(c),a.appendChild(f),r.appendChild(a),r}function U(t){var e,n=this;null===(e=d(O,this))||void 0===e||e.forEach((function(e){e.querySelector("select").value=t;var i=e.getAttribute("data-group-id");d(T,n)[i]=t})),f(H,this,Z).call(this,t),f(H,this,mt).call(this,d(M,this),d(T,this))}function Y(t){var e=this,n=t.id,i=d(C,this).querySelectorAll('div[data-id="'.concat(n,'"]'));null==i||i.forEach((function(i){var r=f(H,e,kt).call(e,i),o=i.querySelector("ul");t.option.forEach((function(a){var c="risk-ratings"===t.id?a.riskType:a.optionId,s="risk-ratings"===t.id?a.riskLabel:a.optionName,l="".concat(n,"-").concat(c).concat(r),u=i.querySelector('input[type="checkbox"][data-select-all]');u.setAttribute("id","select-all-".concat(n).concat(r)),u.nextElementSibling.setAttribute("for","select-all-".concat(n).concat(r));var d=document.createElement("li");d.classList.add("cmp-fund-list-with-filter--filter--select-group-item");var h=f(H,e,W).call(e,l,c,s,{"data-id":c}
1);d.appendChild(h),o.appendChild(d)}))}))}function V(t){var e=this,n=t.id,i=d(C,this).querySelectorAll('select[data-id="'.concat(n,'"]'));null==i||i.forEach((function(i){var r=f(H,e,kt).call(e,i);i.setAttribute("name","select-".concat(n).concat(r)),i.innerHTML="",t.option.forEach((function(t){var e=t.optionId,n=document.createElement("option");n.classList.add("cmp-fund-list-with-filter--filter-select-option"),n.setAttribute("data-id",e),n.setAttribute("value",e),"0"===e&&n.setAttribute("data-select-all",""),n.textContent=t.optionName,i.appendChild(n)}))}))}function X(t){var e=this,n=t.id,i=d(C,this).querySelectorAll('div[data-id="'.concat(n,'"]'));null==i||i.forEach((function(n){var i=f(H,e,kt).call(e,n),r=n.querySelector(".complex-dropdown-container");t.option.forEach((function(n,o){var a=n.capabilityId,c=n.name,s=o===t.option.length-1,l=document.createElement("div");l.classList.add("".concat(d(p,e),"--filter-sub-group")),l.setAttribute("data-group-id",a);var u=document.createElement("div");u.classList.add("".concat(d(p,e),"--filter-accordion-item")),u.setAttribute("data-group",a);var h="group-".concat(a).concat(i),m=f(H,e,W).call(e,h,"group-".concat(a),c,{"data-id":"group-".concat(a),"data-select-all-subGroup":!0}),g=m.querySelector('input[type="checkbox"]');g.setAttribute("aria-checked","false"),g.indeterminate=!1;var y=document.createElement("div");y.classList.add("".concat(d(p,e),"--filter-accordion-control"));var v=document.createElement("span"),b=document.createElement("span");b.classList.add("".concat(d(p,e),"--selected-count"));var x=document.createTextNode(" of "),_=document.createElement("span");_.classList.add("".concat(d(p,e),"--total-count"));var S=document.createTextNode(" strategies selected");v.appendChild(b),v.appendChild(x),v.appendChild(_),v.appendChild(S);var w=document.createElement("button");w.classList.add("accordion-control"),w.textContent=d(I,e).showLabel,y.appendChild(v),y.appendChild(document.createTextNode(" ")),y.appendChild(w),w.addEventListener("click",(function(){f(H,e,Q).call(e,w,s)}));var A=document.createElement("div");A.classList.add("".concat(d(p,e),"--filter-accordion-list")),A.classList.add("hidden"),A.setAttribute("data-id",a),A.setAttribute("aria-hidden","true"),A.setAttribute("aria-expanded","false");var E=document.createElement("ul");E.classList.add("".concat(d(p,e),"--filter--accordion-group")),n.strategies.forEach((function(t){var n=t.strategyId,r=t.strategy,o="".concat(n).concat(i),a=document.createElement("li");a.classList.add("".concat(d(p,e),"--filter--accordion-group-item"));var c=f(H,e,W).call(e,o,n,r,{"data-id":n});a.appendChild(c),E.appendChild(a)})),A.appendChild(E),u.appendChild(m),u.appendChild(y),u.appendChild(A),l.appendChild(u),r.appendChild(l)}))}))}function $(t){var e=t.currentTarget.closest(".".concat(d(p,this),"--filter-modal"));void 0===t.keyCode||t.keyCode!==i.m.TAB||t.shiftKey||e.classList.contains("hidden")||(e.classList.add("hidden"),e.setAttribute("aria-hidden","true"))}function K(){var t=this;d(C,this).querySelectorAll(".".concat(d(p,this),"--tooltip")).forEach((function(e){e.addEventListener("click",(function(e){return f(H,t,Et).call(t,e)}))})),d(C,this).querySelectorAll(".tooltip-overlay .close-modal-button").forEach((function(e){e.addEventListener("click",(function(e){return f(H,t,Lt).call(t,e)}))})),d(C,this).querySelectorAll(".".concat(d(p,this),"--filter-dropdown-button")).forEach((function(e){var n=e.getAttribute("data-group"),r=e.closest(".".concat(d(p,t),"--filter-group")).querySelector('div[data-id="'.concat(n,'"]'));e.addEventListener("click",(function(){f(H,t,ut).call(t,e,n)})),e.addEventListener("keydown",(function(t){t.keyCode===i.m.ESCAPE&&(r.classList.add("hidden"),r.setAttribute("aria-hidden","true"),e.setAttribute("aria-expanded","false"),e.focus())}))})),d(C,this).querySelectorAll(".".concat(d(p,this),"--filter-modal")).forEach((function(e){var n=e.querySelectorAll('input[type="checkbox"]');n&&n[n.length-1].addEventListener("keydown",d(z,t));var i=e.querySelectorAll("button");i&&i.length>0&&i[i.length-1].addEventListener("keydown",d(z,t))})),document.querySelector(".".concat(d(p,this))).querySelectorAll('button[data-id="resetFilterButton"]').forEach((function(e){e.addEventListener("click",(function(){f(H,t,_t).call(t)}))}
1)),d(A,this).addEventListener("click",(function(){return f(H,t,wt).call(t)})),d(E,this).addEventListener("click",(function(e){return f(H,t,At).call(t,e)})),d(L,this).addEventListener("click",(function(){return f(H,t,_t).call(t)})),d(k,this).addEventListener("click",(function(e){return f(H,t,At).call(t,e)}))}function J(){var t=this;h(B,this,[]),d(C,this).querySelectorAll(".".concat(d(p,this),"--filter-dropdown-button")).forEach((function(e){var n=e.innerText.trim();d(B,t).push(n)}))}function Z(t){var e,n,i=this;"2"===t?null===(e=d(N,this))||void 0===e||e.forEach((function(t){var e=t.getAttribute("data-group-id"),n=t.querySelector("select");n.value="0",n.setAttribute("disabled","disabled"),d(T,i)[e]="0"})):(null===(n=d(N,this))||void 0===n||n.forEach((function(t){var e=t.querySelector("select");e.value=d(P,i),e.removeAttribute("disabled")})),this.filterDefaultSeries())}function Q(t,e){var n=t.closest(".".concat(d(p,this),"--filter-accordion-item")).querySelector(".".concat(d(p,this),"--filter-accordion-list"));n.classList.contains("hidden")?(e&&t.removeEventListener("keydown",d(z,this)),n.classList.remove("hidden"),n.setAttribute("aria-hidden","false"),t.textContent=d(I,this).hideLabel,t.setAttribute("aria-expanded","true")):(e&&t.addEventListener("keydown",d(z,this)),n.classList.add("hidden"),n.setAttribute("aria-hidden","true"),t.textContent=d(I,this).showLabel,t.setAttribute("aria-expanded","false"))}function tt(t,e){var n=document.querySelector(".".concat(d(p,this))),i=function(r){t.contains(r.target)||e.contains(r.target)||(t.classList.add("hidden"),t.setAttribute("aria-hidden","true"),n.removeEventListener("click",i))};n.addEventListener("click",i)}function et(t){f(H,this,it).call(this,t,!1)}function nt(t){f(H,this,it).call(this,t,!0)}function it(t,e){var n=this,i=d(C,this).querySelectorAll("".concat(t));return null==i||i.forEach((function(t){var i=t.getAttribute("data-group-id")||t.id||"unknown-group",r=t.querySelectorAll('input[type="checkbox"]'),o=t.querySelector('input[type="checkbox"][data-select-all]'),a=e?t.querySelectorAll(".".concat(d(p,n),"--filter-sub-group")):null,c=t.querySelector(".".concat(d(p,n),"--display-selected-filter"));e&&a&&f(H,n,ct).call(n,a),r.forEach((function(s){s.addEventListener("change",(function(){e&&(null==a?void 0:a.length)>0&&f(H,n,rt).call(n,s,a),f(H,n,at).call(n,s,r,o),f(H,n,st).call(n,t,i,c),f(H,n,mt).call(n,d(M,n),d(T,n)),setTimeout((function(){s.focus()}),200)}))}))})),d(T,this)}function rt(t,e){var n=this;e.forEach((function(e){var i=e.querySelector('input[type="checkbox"][data-select-all-subGroup]'),r=e.querySelectorAll('input[type="checkbox"]:not([data-select-all-subGroup])');if(t===i){var o=i.checked;r.forEach((function(t){t.checked=o})),o&&(i.classList.remove("partial-selected"),i.indeterminate=!1,i.setAttribute("aria-checked","true"))}var a=f(H,n,ot).call(n,r);t!==i&&(i.checked=a),Array.from(r).some((function(t){return t.checked}))&&t!==i&&!a?(i.classList.add("partial-selected"),i.indeterminate=!0,i.setAttribute("aria-checked","mixed")):(i.classList.remove("partial-selected"),i.indeterminate=!1,i.setAttribute("aria-checked",a?"true":"false"))}))}function ot(t){return Array.from(t).every((function(t){return t.checked}))}function at(t,e,n){if(t!==n&&n&&(f(H,this,ot).call(this,e)||(n.checked=!1)),t===n){var i=n.checked;e.forEach((function(t){t!==n&&(t.checked=i)}))}n&&(n.checked=f(H,this,ot).call(this,e))}function ct(t){var e=this;t.forEach((function(t){var n=t.querySelectorAll('input[type="checkbox"]:not([data-select-all-subGroup])'),i=t.querySelector(".".concat(d(p,e),"--total-count")),r=t.querySelector(".".concat(d(p,e),"--selected-count")),o=t.querySelectorAll('input[type="checkbox"]:checked:not([data-select-all-subGroup])');i.innerText=n.length>0?"".concat(n.length):"0",r.innerText=o.length>0?"".concat(o.length):"0"}))}function st(t,e,n){var i=this,r=t.querySelectorAll('input[type="checkbox"]:not([data-select-all])'),o=t.querySelector('input[type="checkbox"][data-select-all]'),a=t.querySelectorAll('input[type="checkbox"]:checked:not([data-select-all]):not([data-select-all-subGroup])'),c=Array.from(a).map((function(t){return t.getAttribute("data-id")})),s=c.length>0?"".concat(c.length," ").concat(d(I,this).selectedCountLabel):"".concat(d(I,this).filterCommonHint);n.innerText=s,t.closest(".".concat(d(p,this),"--filter-group")).querySelector(".".concat(d(p,this),"--filter-dropdown-button")).setAttribute("aria-label",s);var l=t.querySelectorAll(".".concat(d(p,this),"--filter-sub-group"));l.length>0?(d(T,this)[e]={},l.forEach((function(t){var n=t.getAttribute("data-group-id")||"unknown-subgroup",r=t.querySelectorAll('input[type="checkbox"]:checked:not([data-select-all-subGroup])'),o=Array.from(r).map((function(t){return t.getAttribute("data-id")}));t.querySelector(".".concat(d(p,i),"--selected-count")).innerText=o.length>0?"".concat(o.length):"0",d(T,i)[e][n]=o}))):d(T,this)[e]=c,o&&(o.checked=f(H,this,ot).call(this,r))}function lt(t){var e=this,n=d(C,this).querySelectorAll("".concat(t));
1null==n||n.forEach((function(t){var n=t.getAttribute("data-group-id")||t.id||"unknown-group",i=t.querySelector("select");return i.addEventListener("change",(function(){var t=i.value;d(T,e)[n]=t,"product-types"===n&&f(H,e,Z).call(e,t),f(H,e,mt).call(e,d(M,e),d(T,e))})),d(T,e)}))}function ut(t,e){var n=t.closest(".".concat(d(p,this),"--filter-group")).querySelector('div[data-id="'.concat(e,'"]'));n.classList.contains("hidden")?(f(H,this,tt).call(this,n,t),n.classList.remove("hidden"),n.setAttribute("aria-hidden","false"),t.setAttribute("aria-expanded","true"),t.focus()):(n.classList.add("hidden"),n.setAttribute("aria-hidden","true"),t.setAttribute("aria-expanded","false"),t.focus())}function dt(t,e,n,i){var r=f(H,this,ht).call(this,t,i),o=f(H,this,ft).call(this,t,e,r);return f(H,this,pt).call(this,n,o)}function ht(t,e){return"0"===t?e:e.filter((function(e){return"1"===t?e.etfSeries:"2"===t&&"2"===e.investmentTypeId}))}function ft(t,e,n){return 0===parseInt(e)?n.filter((function(e){return"0"===t||"2"===t?"2"===e.investmentTypeId:"2"===e.investmentTypeId&&e.etfSeries})):n.filter((function(n){return"0"===t?parseInt(n.seriesId)===parseInt(e)||"2"===n.investmentTypeId&&!n.etfSeries:parseInt(n.seriesId)===parseInt(e)}))}function pt(t,e){return 0===parseInt(t)?e:e.filter((function(e){return parseInt(e.strategyTypeId)===parseInt(t)}))}function mt(t,e){var n=e["product-types"]?e["product-types"]:"0",i=e["mutual-funds-series"],r=e["strategies-types"]?e["strategies-types"]:"0",o=e?Object.keys(e):[],a=f(H,this,dt).call(this,n,i,r,t),c=f(H,this,vt).call(this,a,o,e),s=o.includes("geography")||o.includes("currency")||o.includes("risk-ratings")?f(H,this,gt).call(this,c,o,e):c,l=new CustomEvent("filtered",{detail:{source:s}});document.dispatchEvent(l)}function gt(t,e,n){var i=this;return e.reduce((function(t,e){var r=n[e];return r&&0!==r.length?t.filter((function(t){return f(H,i,yt).call(i,t,e,r)})):t}),t)}function yt(t,e,n){switch(e){case"geography":return n.includes(t.geographyId);case"currency":return n.includes(t.currencyId);case"risk-ratings":return n.includes(t.riskType);default:return console.warn("Unknown filter type: ".concat(f(H,this,G).call(this,e))),!0}}function vt(t,e,n){if(e.includes("capabilities-strategies")&&n["capabilities-strategies"]){var i=n["capabilities-strategies"],r=f(H,this,bt).call(this,i);return r.length>0?f(H,this,xt).call(this,t,r,i):t}return t}function bt(t){return Object.keys(t).filter((function(e){return t[e]&&t[e].length>0}))}function xt(t,e,n){var i=[];return t.forEach((function(t){if(e.includes(t.capabilityId)){var r=t.capabilityId,o=n[r];if(o.length>0){var a=t.strategyIds?t.strategyIds.split(","):[];o.some((function(t){return a.includes(t)}))&&!i.includes(t)&&i.push(t)}}})),i}function _t(){var t=this;d(C,this).querySelectorAll('input[type="checkbox"]').forEach((function(t){t.checked=!1,t.classList.remove("partial-selected"),t.removeAttribute("aria-checked")})),d(C,this).querySelectorAll("select").forEach((function(e){var n=e.getAttribute("data-id");e.value="mutual-funds-series"===n?d(P,t):"0",e.hasAttribute("disabled")&&e.removeAttribute("disabled")})),h(T,this,{}),d(C,this).querySelectorAll(".".concat(d(p,this),"--filter-dropdown-button")).forEach((function(e,n){e.classList.remove("active"),e.querySelector("span.cmp-fund-list-with-filter--display-selected-filter").innerText=d(B,t)[n]})),this.filterDefaultSeries()}function St(t){var e='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',n=t.querySelectorAll(e)[0],r=t.querySelectorAll(e),o=r[r.length-1];document.addEventListener("keydown",(function(e){if(e.keyCode===i.m.ESCAPE){var r=t.querySelector(".close-modal-button");e.stopPropagation(),r.click()}else e.keyCode===i.m.TAB&&(e.shiftKey?document.activeElement===n&&(o.focus(),e.preventDefault()):document.activeElement===o&&(n.focus(),e.preventDefault()))})),n.focus()}function wt(){document.body.classList.add("noscroll"),d(w,this).classList.remove("hidden"),d(w,this).setAttribute("aria-hidden","false"),d(w,this).removeAttribute("tabindex"),f(H,this,St).call(this,d(w,this))}function At(t){var e=t.currentTarget.closest(".cmp-fund-filter-combined--mobile").querySelector("#mobile-fund-filter-trigger");t.preventDefault(),document.body.classList.remove("noscroll"),d(w,this).classList.add("hidden"),d(w,this).setAttribute("aria-hidden","true"),d(w,this).setAttribute("tabindex","-1"),e.focus()}function Et(t){var e=t.target.closest(".".concat(d(p,this),"--filter-label")).querySelector(".tooltip-overlay"),n=t.target.closest(".".concat(d(p,this),"--filter-label")).nextElementSibling;if("mutual-funds-series"===n.getAttribute("data-group-id")){var i=n.querySelector("select").value,r=e.querySelector(".mfs-list"),o=null==r?void 0:r.querySelectorAll("p");null==o||o.forEach((function(t){t.hasAttribute("data-id")&&t.getAttribute("data-id")===i?t.classList.contains("hidden")&&t.classList.remove("hidden"):t.classList.contains("hidden")||t.classList.add("hidden")}))}e.classList.remove("hidden"),e.setAttribute("aria-hidden","false"),e.setAttribute("tabindex","0"),f(H,this,St).call(this,e),e.querySelector(".close-modal-button").focus()}function Lt(t){var e=t.target.closest(".".concat(d(p,this),"--filter-label")).querySelector(".".concat(d(p,this),"--tooltip")),n=t.target.closest(".".concat(d(p,this),"--filter-label")).querySelector(".tooltip-overlay");n.classList.add("hidden"),n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex","-1"),e.focus()}function kt(t){var e="";return t.closest(".cmp-experiencefragment").classList.contains("".concat(d(g,this)))?e="-d":t.closest(".cmp-experiencefragment").classList.contains("".concat(d(y,this)))&&(e="-m"),e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return P}));var i=n(0),r=n(1);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==o(e)?e:e+""}function s(t,e,n){l(t,e),e.set(t,n)}function l(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u(t,e){return t.get(h(t,e))}function d(t,e,n){return t.set(h(t,e),n),n}function h(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var f=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,S=new WeakMap,w=new WeakMap,A=new WeakMap,E=new WeakMap,L=new WeakMap,k=new WeakMap,C=new WeakMap,T=new WeakMap,M=new WeakMap,q=new WeakMap,I=new WeakSet,O=new WeakMap,P=function(){return function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e,n,i,r,o,a,c,P,N,D){var B,j,R=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),l(B=this,j=I),j.add(B),s(this,f,void 0),s(this,p,void 0),s(this,m,void 0),s(this,g,void 0),s(this,y,void 0),s(this,v,void 0),s(this,b,void 0),s(this,x,void 0),s(this,_,void 0),s(this,S,"asc"),s(this,w,"desc"),s(this,A,void 0),s(this,E,void 0),s(this,L,void 0),s(this,k,void 0),s(this,C,["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),s(this,T,["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]),s(this,M,void 0),s(this,q,void 0),s(this,O,(function(t){var e=t.currentTarget.getAttribute("data-col");if(d(A,R,e?"hideTdamPerformance"===e.split("-")[0]?e.split("-")[1]:e.split("-")[0]:null),u(A,R)){d(A,R,h(I,R,it).call(R,u(A,R)));var n="riskType"===u(A,R),i=u(n?w:S,R),r="asc"===i?"desc":"asc";d(n?w:S,R,r),h(I,R,nt).call(R,u(m,R),u(A,R),i);var o=new CustomEvent("sorted",{detail:{source:u(m,R),sortDirection:r}});document.dispatchEvent(o)}})),d(p,this,e),d(m,this,n),d(k,this,i),d(g,this,r),d(f,this,o),d(E,this,a),d(L,this,c),d(S,this,P||"asc"),d(w,this,P||"desc"),d(M,this,N),d(q,this,D)}),[{key:"displayFundsForTab",value:function(){var t=this,e=u(f,this).querySelector(".cmp-fund-list-table");if(geoLocationLang===i.n?(d(y,this,i.S.en.fund_mf),d(v,this,i.S.en.fund_etf)):geoLocationLang===i.o&&(d(y,this,i.S.fr.fund_mf),d(v,this,i.S.fr.fund_etf)),e){var n=e.closest(".cmp-fund-table");if("table-overview"===n.id){var o=e.querySelector(".asset-perf-date");o&&(o.innerHTML=h(I,this,tt).call(this,"","",!0,u(M,this)))}if("table-prices"===n.id){var a=e.querySelectorAll(".price-date");null==a||a.forEach((function(e){e.innerHTML=h(I,t,tt).call(t,"","",!0,u(q,t))}))}if("table-performance"===n.id){var c=n.querySelector(".perf-date");c&&(c.innerHTML=h(I,this,tt).call(this,"","",!0,u(M,this)))}var s=e.querySelectorAll("thead th");d(b,this,[]),d(x,this,[]),s.forEach((function(e,n){var i=e.getAttribute("id");u(b,t).push(i);var o=e.getAttribute("data-col");if(d(_,t,o?o.split("-"):[]),u(x,t).push(h(I,t,z).call(t,u(_,t))),e.addEventListener("mouseenter",(function(){h(I,t,D).call(t,n,!0,"hovered"),e.classList.add("hovered")})),e.addEventListener("mouseleave",(function(){h(I,t,D).call(t,n,!1,"hovered"),e.classList.remove("hovered"),e.classList.remove("sorted-column")})),e.classList.contains("sortable")){var a=e.querySelector("p");a&&r.g.setAttributes(a,{tabindex:0,role:"button"})}}));var l={tableSelector:".cmp-fund-list-table",cardSelector:".fund-card-mobile",ids:u(b,this),columns:u(x,this),emptyMessage:u(L,this).noDataMsg};h(I,this,j).call(this,u(p,this),l)}}}])}();function N(t){if(null==t)return"";var e=String(t),n=document.createElement("div");return n.appendChild(document.createTextNode(e)),n.innerHTML}function D(t,e,n){u(f,this).querySelector(".cmp-fund-list-table").querySelectorAll("tbody tr").forEach((function(i){var r=i.querySelectorAll("td");r[t]&&(e?r[t].classList.add(n):r[t].classList.remove(n))}))}function B(t,e){if(t.formatter)return t.formatter(e);var n=e[t.key];return"number"==typeof n?"<p>".concat(h(I,this,W).call(this,n),"</p>"):n?"<p>".concat(h(I,this,N).call(this,n),"</p>"):"<p>-</p>"}function j(t,e){var n=this,r=t,o=u(f,this).querySelector(e.tableSelector),a=u(f,this).querySelector(e.cardSelector);if(o){var c=o.querySelector("tbody");if(c.innerHTML="",r.length>0)r.forEach((function(t){var i=document.createElement("tr");e.columns.forEach((function(e){var r=document.createElement("td"),o=h(I,n,B).call(n,e,t);r.innerHTML="".concat(o),i.appendChild(r)})),c.appendChild(i)}));else{var s=document.createElement("tr"),l=document.createElement("td");l.setAttribute("colspan",e.columns.length),l.innerHTML="<p>".concat(h(I,this,N).call(this,e.emptyMessage),"</p>"),s.appendChild(l),c.appendChild(s)}h(I,this,rt).call(this,r)}if(a)if(a.innerHTML="",t.length>0)t.forEach((function(t){var r=document.createElement("div");r.classList.add("cmp-fund-card");var o=document.createElement("div");o.classList.add("cmp-fund-card-data");var c=document.createElement("div");c.classList.add("cmp-fund-card-heading");var s=document.createElement("ul");e.columns.forEach((function(r,o){var a,l=e.ids[o]?h(I,n,H).call(n,e.ids[o]):{},u=l?l.heading:"";if(u.indexOf('class="notes"')>0){var d=u.indexOf('class="notes"')-6,f=u.substring(0,d).replace(/<[^>]*>/g,""),p=l.heading.substring(d,u.length);a="".concat(h(I,n,N).call(n,f),"<br>").concat(p)}else a="".concat(h(I,n,N).call(n,u.replace(/<[^>]*>/g,"")));var m=h(I,n,B).call(n,r,t);if(0===o)c.innerHTML="<p>".concat(m,"</p>");else{var g='<span class="label">
1'.concat(a,'</span><span class="value">').concat(m,"</span>");if(l&&l.special&&window.innerWidth>=i.l.SM&&window.innerWidth<i.l.MD)c.innerHTML+="<p>".concat(g,"</p>");else{var y=document.createElement("li");y.innerHTML='<div class="cmp-fund-card-cell">'.concat(g,"</div>"),s.appendChild(y)}}}));var l=s.querySelectorAll("li").length;if(h(I,n,R).call(n,l)){var u=document.createElement("li");s.appendChild(u)}o.appendChild(s),r.appendChild(c),r.appendChild(o),a.appendChild(r)}));else{var d=document.createElement("div");d.innerHTML="<p>".concat(h(I,this,N).call(this,e.emptyMessage),"</p>"),a.appendChild(d)}}function R(t){return 1===Math.abs(t%2)}function H(t){var e=u(f,this).querySelector("#".concat(t)),n=e.classList.contains("chart-special-column");return{heading:e?e.innerHTML:"",special:n}}function z(t){var e=this;switch(t.length){case 1:return h(I,this,Y).call(this,t);case 2:return h(I,this,F).call(this,t);case 3:return"hideTdamPerformance"===t[0]?{key:t[0],formatter:function(n){return h(I,e,$).call(e,n,t)}}:h(I,this,Z).call(this,t);default:return h(I,this,Q).call(this,t)}}function F(t){var e=this,n=t[0],i={riskType:function(){return{key:n,formatter:function(n){return h(I,e,V).call(e,n,t)}}},capability:function(){return{key:n,formatter:function(n){return h(I,e,X).call(e,n,t)}}},investmentType:function(){return{key:n,formatter:function(n){return h(I,e,X).call(e,n,t)}}},hideTdamPerformance:function(){return{key:n,formatter:function(n){return h(I,e,K).call(e,n,t)}}}};return i[n]?i[n]():h(I,this,J).call(this,t)}function G(t,e){var n,i,r=t[e[0]],o=t[e[1]];return o>0?(n="cmp-fund-table__positive-change",i="+"):o<0?(n="cmp-fund-table__negative-change",i=""):(n="cmp-fund-table__no-change",i=""),r=h(I,this,W).call(this,r),o=h(I,this,W).call(this,o),'<p class="'.concat(h(I,this,N).call(this,n),'">').concat(h(I,this,N).call(this,i)).concat(h(I,this,N).call(this,r)," (").concat(h(I,this,N).call(this,i)).concat(h(I,this,N).call(this,o),"%)</p>")}function W(t){if(null==t||isNaN(t))return"-";var e=parseFloat(t).toFixed(2);return e="-999.00"===e?"-":e,geoLocationLang===i.o&&(e=h(I,this,U).call(this,e)),e}function U(t){return(t=t.toString().replaceAll(".",",")).replaceAll(".",",")}function Y(t){var e=this;return"lastPayment"===t[0]?{key:t.length?t[0]:null,formatter:function(n){return h(I,e,tt).call(e,n,t[0],!1,"")}}:{key:t[0]}}function V(t,e){var n=t[e[0]];if(n){var i="",r="";switch(n){case"1":i=u(E,this)[0].riskImgUrl,r=u(E,this)[0].riskLabel;break;case"2":i=u(E,this)[1].riskImgUrl,r=u(E,this)[1].riskLabel;break;case"3":i=u(E,this)[2].riskImgUrl,r=u(E,this)[2].riskLabel;break;case"4":i=u(E,this)[3].riskImgUrl,r=u(E,this)[3].riskLabel;break;case"5":i=u(E,this)[4].riskImgUrl,r=u(E,this)[4].riskLabel;break;default:return"-"}return'<img src="'.concat(h(I,this,N).call(this,i),'" alt="" /><br/><p class="cmp-fund-table--risk-text">').concat(h(I,this,N).call(this,r),"</p>")}return"-"}function X(t,e){var n=t[e[0]],i=t[e[1]]?t[e[1]]:"";return n?'<p class="cmp-text">'.concat(h(I,this,N).call(this,n),'</p><p class="notes">').concat(h(I,this,N).call(this,i),"</p>"):"<p>-</p>"}function $(t,e){var n=t[e[0]],i=t[e[1]],r=t[e[2]]?h(I,this,tt).call(this,t,e[2],!1,""):"";return!0===n?'<p class="cmp-text">-</p><p class="notes">'.concat("<p>-</p>"!==r||i?r:"","</p>"):i||r?'<p class="cmp-text">'.concat(i?h(I,this,N).call(this,i):"-",'</p><p class="notes">').concat("<p>-</p>"!==r||i?r:"","</p>"):"<p>-</p>"}function K(t,e){return!0===t[e[0]]?"<p>-</p>":"<p>".concat(h(I,this,W).call(this,t[e[1]]),"</p>")}function J(t){var e=this;return"changeAbsolute"===t[0]||"marketChangeAbsolute"===t[0]?{key:t[0],formatter:function(n){return h(I,e,G).call(e,n,t)}}:{key:t[0],formatter:function(n){var i=n[t[0]]?n[t[0]]:"-",r=n[t[1]]?n[t[1]]+"%":"-";return"-"===i&&"-"===r?"<p>-</p>":"<p>".concat(h(I,e,N).call(e,i)," (").concat(h(I,e,N).call(e,r),")</p>")}
1}}function Z(t){var e=this;return"b"===t[2]?{key:"fundName",formatter:function(n){var i="1"===n.investmentTypeId,r="2"===n.investmentTypeId,o=u(i?y:v,e),a=n[t[1]],c=a.indexOf(","),s=c>-1?a.substring(0,c).trim():a.trim(),l=c>-1?"<span>".concat(h(I,e,N).call(e,s),"<br>").concat(h(I,e,N).call(e,a.substring(c+1,a.length).trim()),"</span>"):"<span>".concat(h(I,e,N).call(e,s),"</span>");if(i||r){var d=encodeURIComponent(n.fundId),f=encodeURIComponent(n.fundName);return'<p class="cmp-text"><a href="'.concat(h(I,e,N).call(e,o),"?fundId=").concat(d,"&fundname=").concat(f,'" target="_blank">').concat(h(I,e,N).call(e,n[t[0]]),"</a></p>").concat(l)}return'<p class="cmp-text"><a href="#" target="_blank">'.concat(h(I,e,N).call(e,n[t[0]]),"</a></p><span>").concat(h(I,e,N).call(e,n[t[1]]),"</span>")}}:null}function Q(t){return{key:t.length?t[0]:null,formatter:function(){return"<p>-</p>"}}}function tt(t,e,n,r){var o=n?r:t[e];if(!o||"string"!=typeof o||"-"===o)return"-";var a=h(I,this,et).call(this,o),c=a.getDate(),s=a.getMonth(),l=a.getFullYear();return geoLocationLang===i.n?(s=u(C,this)[s],a="".concat(s," ").concat(c,", ").concat(l)):(s=u(T,this)[s],a="".concat(c," ").concat(s," ").concat(l)),a}function et(t){var e=t.match(/(\d+)/g),n=0,i={};return"yyyy-mm-dd".replace(/(yyyy|dd|mm)/g,(function(t){i[t]=n++})),new Date(e[i.yyyy],e[i.mm]-1,e[i.dd])}function nt(t,e,n){var i="asc"===n?1:-1;return t.sort((function(t,n){var r=t[e]||"",o=n[e]||"";return"string"==typeof r&&"string"==typeof o?r.localeCompare(o)*i:(r-o)*i}))}function it(t){var e=t.split("-");return e.length>1?e[0]:t}function rt(){var t=this;u(f,this).querySelectorAll(".cmp-fund-list-table thead th").forEach((function(e,n){if("true"!==e.getAttribute("data-listener")){var r=e.cloneNode(!0);e.parentNode.replaceChild(r,e),r.addEventListener("mouseenter",(function(){h(I,t,D).call(t,n,!0,"hovered"),r.classList.add("hovered")})),r.addEventListener("mouseleave",(function(){h(I,t,D).call(t,n,!1,"hovered"),r.classList.remove("hovered"),r.classList.remove("sorted-column")}));var o,a=function(e){"click"!==e.type&&("keypress"!==e.type||"Enter"!==e.key&&e.keyCode!==i.m.ENTER)||(h(I,t,ot).call(t,r),h(I,t,D).call(t,n,!0,"sorted-column"),r.classList.add("sorted-column"),u(O,t).call(t,e))};if(r.addEventListener("click",a),r.addEventListener("keypress",a),r.classList.contains("sorted-focus"))null===(o=r.querySelector("p"))||void 0===o||o.focus()}}))}function ot(t){var e=this,n="";u(f,this).querySelector(".cmp-fund-list-table").querySelectorAll("thead th").forEach((function(t,n){t.querySelector(".td-icon").classList.remove("td-icon-sort-asc","td-icon-sort-desc"),h(I,e,D).call(e,n,!1,"sorted-column"),t.classList.remove("sorted-column"),t.classList.remove("sorted-focus"),t.setAttribute("aria-sort","none")})),"asc"===("riskType"===u(A,this)?u(w,this):u(S,this))?("riskType"===u(A,this)?h(I,this,at).call(this,t,"asc"):h(I,this,at).call(this,t,"desc"),n=u(L,this).sortingPlus):("riskType"===u(A,this)?h(I,this,at).call(this,t,"desc"):h(I,this,at).call(this,t,"asc"),n=u(L,this).sortingMinus),t.setAttribute("aria-sort",n),t.classList.add("sorted-focus")}function at(t,e){"asc"===e?(t.querySelector(".td-icon").classList.add("td-icon-sort-asc"),t.querySelector(".td-icon").classList.remove("td-icon-sort-desc")):(t.querySelector(".td-icon").classList.add("td-icon-sort-desc"),t.querySelector(".td-icon").classList.remove("td-icon-sort-asc"))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return Q}));var i=n(0),r=n(1);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==o(e)?e:e+""}function s(t,e,n){l(t,e),e.set(t,n)}function l(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u(t,e,n){return t.set(h(t,e),n),n}function d(t,e){return t.get(h(t,e))}function h(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var f={searchConfig:".cmp-header-site-navigation-links__search-config",searchInput:".cmp-header-site-navigation-links__search-input",searchIcon:".cmp-header-site-navigation-links__search-icon",clearButton:".cmp-header-site-navigation-links__search-clear",recentSearches:".cmp-header-site-navigation-links__recent-searches",searchList:".cmp-header-site-navigation-links__search-list",suggestionDropdown:".cmp-header-site-navigation-links__suggestion-dropdown",trendingLinks:".cmp-header-site-navigation-links__trending-searches a",recentItemClass:"cmp-header-site-navigation-links__search-item",recentLinkClass:"cmp-header-site-navigation-links__search-link",recentTextClass:"cmp-header-site-navigation-links__search-text"},p=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,S=new WeakMap,w=new WeakMap,A=new WeakMap,E=new WeakMap,L=new WeakMap,k=new WeakMap,C=new WeakMap,T=new WeakMap,M=new WeakMap,q=new WeakMap,I=new WeakMap,O=new WeakMap,P=new WeakMap,N=new WeakSet,D=function(){return function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),l(n=this,i=N),i.add(n),s(this,p,"cmp-header-site-navigation-links"),s(this,m,"".concat(d(p,this),"__bg-flyout")),s(this,g,"show-menu-flyout"),s(this,y,"".concat(d(p,this),"__menu-item")),s(this,v,"".concat(d(p,this),"__menu-link")),s(this,b,"".concat(d(p,this),"__menu-link-mobile")),s(this,x,"".concat(d(p,this),"__menu-flyout")),s(this,_,"".concat(d(p,this),"__close-flyout")),s(this,S,"".concat(d(p,this),"__menu-go-back")),s(this,w,"header-nav-links-desktop"),s(this,A,"header-nav-links-mobile"),s(this,E,"cmp-site-utility-mobile__scrollable"),s(this,L,void 0),s(this,k,void 0),s(this,C,void 0),s(this,T,void 0),s(this,M,void 0),s(this,q,void 0),s(this,I,void 0),s(this,O,void 0),s(this,P,void 0),u(q,this,e)}),[{key:"initialize",value:function(){var t,e;u(M,this,parseInt(d(q,this).dataset.maxRecentSearches,10)),u(L,this,d(q,this).querySelectorAll(".".concat(d(y,this)))),u(k,this,d(q,this).querySelectorAll(".".concat(d(x,this)))),u(C,this,null===(t=d(q,this).closest("#".concat(d(w,this))))||void 0===t?void 0:t.querySelectorAll(".".concat(d(x,this)))),u(T,this,null===(e=d(q,this).closest("#".concat(d(A,this))))||void 0===e?void 0:e.querySelectorAll(".".concat(d(x,this)))),u(I,this,d(q,this).querySelector(".cmp-header-site-navigation-links__menu-flyout--search")),u(O,this,d(q,this).querySelector(".cmp-header-site-navigation-links__search-input")),h(N,this,Z).call(this),h(N,this,R).call(this),h(N,this,j).call(this),h(N,this,B).call(this)}}])}();function B(){d(O,this)&&d(I,this)&&u(P,this,Q(d(q,this),f,d(M,this)))}function j(){var t=this,e=document.querySelector("header")?document.querySelector("header").offsetHeight:0;window.innerWidth>=i.l.MD&&setTimeout((function(){var n;null===(n=d(C,t))||void 0===n||n.forEach((function(t){t.querySelector("div").style.maxHeight="calc(100svh - ".concat(e+5,"px)")}))}),400)}function R(){var t,e,n=this;d(L,this).forEach((function(t){var e,r,o,a,c;(t.querySelector(".".concat(d(v,n))).addEventListener("click",h(N,n,z).bind(n)),t.querySelector(".".concat(d(v,n))).addEventListener("keydown",h(N,n,F).bind(n)),t.classList.contains("cmp-header-site-navigation-links__menu-item--search"))&&(t.querySelector(".".concat(d(v,n))).addEventListener("keydown",(function(t){" "!==t.key&&t.keyCode!==i.m.SPACE||(t.preventDefault(),h(N,n,U).call(n,t.currentTarget.closest(".".concat(d(y,n)))))})),null===(c=t.querySelector(".".concat(d(x,n))))||void 0===c||c.addEventListener("keydown",(function(e){e.keyCode===i.m.ESCAPE&&(e.preventDefault(),e.stopPropagation(),h(N,n,K).call(n,t,!0))})));null===(e=t.querySelector(".".concat(d(_,n))))||void 0===e||e.addEventListener("click",h(N,n,$).bind(n)),null===(r=t.querySelector(".".concat(d(_,n))))||void 0===r||r.addEventListener("keydown",h(N,n,W).bind(n,!0)),null===(o=t.querySelector(".".concat(d(S,n))))||void 0===o||o.addEventListener("click",h(N,n,$).bind(n)),null===(a=t.querySelector(".".concat(d(S,n))))||void 0===a||a.addEventListener("keydown",h(N,n,W).bind(n,!0))})),window.innerWidth>
1=i.l.MD&&(d(k,this).forEach((function(t){var e=Array.from(t.querySelectorAll("a")).pop();e&&e.addEventListener("keydown",h(N,n,G).bind(n))})),document.addEventListener("emsClosed",h(N,this,j).bind(this))),null===(t=d(C,this))||void 0===t||t.forEach((function(t){t.querySelector("div").addEventListener("scroll",(function(e){h(N,n,V).call(n,t)}))}));var o=d(q,this).closest(".".concat(d(E,this)));null==o||o.addEventListener("scroll",(function(t){h(N,n,V).call(n,o)})),null===(e=d(T,this))||void 0===e||e.forEach((function(t){var e=t.querySelectorAll(".teaser a");null==e||e.forEach((function(t){t.addEventListener("click",(function(t){document.dispatchEvent(new Event("featuredLinkClicked"))}))}))})),window.addEventListener("resize",h(N,this,H).bind(this)),d(q,this).querySelector(".".concat(d(m,this))).addEventListener("click",(function(t){h(N,n,Y).call(n,t)})),d(q,this).querySelector(".".concat(d(m,this))).addEventListener("touchstart",h(N,this,J).bind(this)),document.addEventListener("utilityLinkClicked",h(N,this,J).bind(this));var a=document.querySelector(".cmp-emergency-message");a&&r.g.onClassChangeEventListener(a,(function(t){h(N,n,j).call(n)}))}function H(){h(N,this,j).call(this)}function z(t){h(N,this,U).call(this,t.target.closest(".".concat(d(y,this))))}function F(t){if(void 0!==t.keyCode){var e=t.currentTarget.closest(".".concat(d(y,this)));(t.target.classList.contains("".concat(d(v,this)))&&t.shiftKey&&i.m.TAB||t.keyCode===i.m.ESCAPE)&&h(N,this,K).call(this,e)}}function G(t){void 0!==t.keyCode&&(t.keyCode!==i.m.TAB||t.shiftKey||h(N,this,J).call(this))}
1function W(t,e){if(void 0!==e.keyCode){var n=e.currentTarget.closest(".".concat(d(y,this)));switch(e.keyCode){case i.m.ESCAPE:case i.m.ENTER:h(N,this,K).call(this,n,t)}}}function U(t){var e=t.querySelector(".".concat(d(x,this)));t&&e&&(event.preventDefault(),t.classList.contains("".concat(d(g,this)))?h(N,this,K).call(this,t):h(N,this,X).call(this,t))}function Y(t){"mouse"===t.pointerType&&h(N,this,J).call(this)}function V(t){t.querySelectorAll(".cmp-teaser").forEach((function(t){t.querySelector(".cmp-teaser__image").hasChildNodes()&&r.g.compLazyImgRedraw(t.querySelector(".cmp-teaser__image"))}))}function X(t){var e,n,r=this;(h(N,this,J).call(this),document.dispatchEvent(new Event("navLinkClicked")),t.classList.add("".concat(d(g,this))),t.querySelector(":scope > a").classList.add("active"),t.querySelector("a").setAttribute("aria-expanded","true"),t.querySelector(".".concat(d(x,this))).style.display="block",t.classList.contains("cmp-header-site-navigation-links__menu-item--search"))&&(null===(e=t.querySelector(".".concat(d(_,this))))||void 0===e||e.focus(),null===(n=d(P,this))||void 0===n||n.loadRecentSearches());window.innerWidth>=i.l.MD?(d(q,this).querySelector(".".concat(d(m,this))).classList.add("active"),d(q,this).querySelector(".".concat(d(m,this))).addEventListener("click",(function(t){h(N,r,Y).call(r,t)})),d(q,this).querySelector(".".concat(d(m,this))).addEventListener("touchstart",h(N,this,J).bind(this)),t.querySelector(".".concat(d(x,this),">div")).scrollTo(0,0)):(d(L,this).forEach((function(t){t.querySelector(".".concat(d(v,r))).style.display="none"})),t.querySelector(".".concat(d(b,this))).style.display="inline-flex",t.querySelector(".".concat(d(S,this))).style.display="block",t.closest(".cmp-site-utility-mobile__scrollable").scrollTo(0,0),setTimeout((function(){t.querySelector(".".concat(d(S,r)," a")).focus()}),400))}function $(t){var e;t.preventDefault();var n=null!==(e=t.currentTarget.closest(".".concat(d(y,this))))&&void 0!==e?e:t.currentTarget;h(N,this,K).call(this,n,!0)}function K(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.classList.remove("".concat(d(g,this)));var r=t.querySelector(".".concat(d(v,this)));r.classList.remove("active"),r.setAttribute("aria-expanded","false");var o,a,c=t.querySelector(".".concat(d(x,this)));(c&&(c.style.display="none"),t.classList.contains("cmp-header-site-navigation-links__menu-item--search"))&&(d(O,this)&&(d(O,this).value=""),null===(o=d(P,this))||void 0===o||o.hideSuggestions());if(window.innerWidth>=i.l.MD){var s;null===(s=d(q,this).querySelector(".".concat(d(m,this))))||void 0===s||s.classList.remove("active")}else{d(L,this).forEach((function(t){var n=t.querySelector(".".concat(d(v,e)));n&&(n.style.display="inline-flex")}));var l=t.querySelector(".".concat(d(b,this))),u=t.querySelector(".".concat(d(S,this)));l&&(l.style.display="none"),u&&(u.style.display="none")}n&&(null===(a=t.closest(".cmp-site-utility-mobile__scrollable"))||void 0===a||a.scrollTo({top:r.offsetTop}),setTimeout((function(){r.focus()}),200))}function J(){var t=this,e=d(q,this).querySelectorAll(".".concat(d(y,this),".").concat(d(g,this)));null==e||e.forEach((function(e){h(N,t,K).call(t,e)}))}function Z(){d(k,this)&&d(k,this).forEach((function(t){if(t.getAttribute("data-site-nav")&&"active"===t.getAttribute("data-site-nav")){var e=t.parentElement.parentElement;window.innerWidth>=i.l.MD&&e.classList.add("active")}}))}function Q(t,e,n){var i,r,o,a=document.documentElement.lang.toLowerCase().split("-")[0],c="td_recent_searches_".concat(a),s={},l=t.querySelector(e.searchConfig);if(l)try{s=JSON.parse(l.value)}catch(t){console.warn("Invalid search config JSON",t)}var u=t.querySelector(e.searchInput);if(u)return u.addEventListener("input",(function(t){var e=t.target;h(e.value.trim().length>0),e.value.trim()||m()})),u.addEventListener("keypress",(function(t){"Enter"===t.key&&g(t)})),null===(i=t.querySelector(e.searchIcon))||void 0===i||i.addEventListener("click",g),null===(r=t.querySelector(e.searchIcon))||void 0===r||r.addEventListener("keydown",(function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),g(t))})),null===(o=t.querySelector(e.clearButton))||void 0===o||o.addEventListener("click",y),m(),t.querySelectorAll(e.trendingLinks).forEac
1h((function(t){t.addEventListener("click",(function(){var e,n=null===(e=t.textContent)||void 0===e?void 0:e.trim();n&&p(n,"trending")}))})),window.addEventListener("pageshow",m),{loadRecentSearches:m,toggleClearButton:h,clearInput:y,hideSuggestions:f};function d(t){var e=s,n=e.buttonUrl,i=void 0===n?"/search":n,r=e.queryParam,o=void 0===r?"query":r,a=e.source,c=a?"&source=".concat(a):"";return"".concat(i,"?").concat(o,"=").concat(encodeURIComponent(t)).concat(c)}function h(n){var i=t.querySelector(e.clearButton);i&&(i.classList.toggle("hidden",!n),i.setAttribute("aria-hidden",String(!n)),i.setAttribute("tabindex",n?"0":"-1"))}function f(){var n;null===(n=t.querySelector(e.suggestionDropdown))||void 0===n||n.classList.add("hidden")}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"recent",n="trending"===e?"trending":"recent";window.tms_tag=window.tms_tag||[],window.tms_tag.push({event:"linkClick",link:{name:"globalsearch:".concat(n,":").concat(t),type:"link",product:"tdam:public:"}})}function m(){var i=t.querySelector(e.recentSearches);if(i)try{var r=JSON.parse(localStorage.getItem(c)||"[]").slice(0,n),o=i.querySelector(e.searchList),a=r.length>0&&o;if(i.classList.toggle("hidden",!a),!a)return;var s=document.createDocumentFragment();r.forEach((function(t){return s.appendChild((n=t,i=document.createElement("li"),r=document.createElement("a"),o=document.createElement("span"),i.className=e.recentItemClass,r.href=d(n),r.className=e.recentLinkClass,o.className=e.recentTextClass,o.textContent=n,r.addEventListener("click",(function(){return p(n,"recent")})),r.appendChild(o),i.appendChild(r),i));var n,i,r,o})),o.innerHTML="",o.appendChild(s)}catch(t){i.classList.add("hidden"),console.warn("Failed to load recent searches:",t)}}function g(t){t.preventDefault();var e=u.value.trim();e.length>=2&&(window.location.href=d(e))}function y(){u.value="",u.focus(),h(!1),m(),f()}}function tt(){var t=document.querySelectorAll('.cmp-header-site-navigation-links:not([data-component-state="initialized"])');t.length>0&&t.forEach((function(t){new D(t).initialize(),t.setAttribute("data-component-state","initialized")}))}"loading"!==document.readyState?tt():document.addEventListener("DOMContentLoaded",tt)},function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var i=n(0),r=n(7),o=n(5),a=n(9),c=n(2),s=n(15);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return d(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,g(i.key),i)}}function f(t,e,n){p(t,e),e.set(t,n)}function p(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(t,e,n){return(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==l(e)?e:e+""}function y(t,e){return t.get(b(t,e))}function v(t,e,n){return t.set(b(t,e),n),n}function b(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var x=new WeakMap,_=new WeakMap,S=new WeakMap,w=new WeakMap,A=new WeakMap,E=new WeakMap,L=new WeakMap,k=new WeakMap,C=new WeakMap,T=new WeakMap,M=new WeakMap,q=new WeakMap,I=new WeakMap,O=new WeakMap,P=new WeakMap,N=new WeakSet,D=function(){return function(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),p(n=this,i=N),i.add(n),m(this,"compName","cmp-site-utility-nav"),m(this,"elem",void 0),f(this,x,void 0),f(this,_,void 0),f(this,S,void 0),f(this,w,void 0),f(this,A,void 0),f(this,E,void 0),m(this,"searchInput",void 0),f(this,L,void 0),m(this,"searchSuggestionBox",void 0),f(this,k,void 0),f(this,C,void 0),f(this,T,void 0),f(this,M,100),f(this,q,void 0),f(this,I,void 0),f(this,O,void 0),f(this,P,175),this.elem=e}),[{key:"initialize",value:function(t){var e,n=this;v(x,this,t),v(w,this,this.elem.querySelectorAll(".".concat(this.compName,"__region .").concat(this.compName,"__sub-menu-link"))),v(A,this,null===(e=this.elem.querySelector("[data-aria-selected]"))||void 0===e?void 0:e.dataset.ariaSelected),v(E,this,this.elem.querySelector(".".concat(this.compName,"__search-container"))),y(E,this)&&b(N,this,B).call(this),b(N,this,R).call(this),this.initProductUnavailableModal(),v(S,this,r.a.getProvinceFromCookie()),""===y(S,this)?document.addEventListener("geoLocationCookieSet",(function(){v(S,n,r.a.getProvinceFromCookie()),n.initProvince()})):this.initProvince(),this.addEventListener();var i=this.elem.querySelector('a[href="#tdapplink"]');i&&b(N,this,tt).call(this,i),y(x,this)&&b(N,this,at).call(this)}},{key:"initProductUnavailableModal",value:function(){var t=!1;y(w,this).forEach((function(e){e.getAttribute("data-display-modal")&&"#cmp-modal~product-unavailable"===e.getAttribute("data-display-modal")&&(e.setAttribute("href","#cmp-modal~product-unavailable"),t=!0)})),t&&Object(a.c)(document)}},{key:"initProvince",value:function(){if(y(S,this))if("true"===personalizationEnabled){var t=o.a.cookieGetItem(i.s);if(province){var e=province.split("/");b(N,this,G).call(this,e[1])}else!province&&t?b(N,this,G).call(this,t):b(N,this,G).call(this,y(S,this))}else b(N,this,G).call(this,y(S,this))}},{key:"addEventListener",value:function(){var t=this;y(w,this).forEach((function(e){e.addEventListener("click",b(N,t,W).bind(t))}));var e=document.querySelector("body");this.elem.querySelectorAll(".".concat(this.compName,"__menu-item:not(.hidden)")).forEach((function(e){if(y(x,t)){var n=Array.from(e.querySelectorAll(".".concat(t.compName,"__sub-menu-link"))).pop();n&&n.addEventListener("keydown",b(N,t,X).bind(t))}e.addEventListener("click",b(N,t,J).bind(t)),e.addEventListener("keydown",b(N,t,Z).bind(t))})),e.addEventListener("click",b(N,this,$).bind(this)),y(x,this)&&document.addEventListener("navLinkClicked",b(N,this,V).bind(this)),window.addEventListener("resize",b(N,this,et).bind(this))}}])}();function B(){var t=this,e=y(E,this).dataset.searchConfig,n="";e&&Object(c.h)(e)&&(n=JSON.parse(e));var r=""===n?{}:n,o=r.apiURL,a=r.interfaceID,s=r.buttonUrl;o&&a&&Object(c.c)("".concat(o,"/json/?interfaceID=").concat(a)),this.searchInput=this.elem.querySelector(".".concat(this.compName,"__search-input")),this.searchSuggestionBox=this.elem.querySelector(".".concat(this.compName,"__suggestion-dropdown"));var l=this.elem.querySelector(".".concat(this.compName,"__search-submit"));if(y(x,this)){var u=this.elem.querySelector(".".concat(this.compName,"__search"));v(T,this,null==u?void 0:u.querySelector(".".concat(this.compName,"__menu-link")));var d=this.elem.querySelector(".".concat(this.compName,"__close-button"));v(_,this,this.elem.querySelector(".".concat(this.compName,"__nav"))),v(L,this,this.elem.querySelectorAll(".".concat(this.compName,"__menu-link")));var h=new URLSearchParams(window.location.search);v(k,this,h.get("query")),v(C,this,!1),y(T,this)&&(y(T,this).onclick=function(){return!1}),b(N,this,et).call(this),null==u||u.addEventListener("click",b(N,this,nt).bind(this)),null==u||u.addEventListener("keydown",b(N,this,rt).bind(this)),null!==y(k,this)&&b(N,this,nt).call(this),d.addEventListener("click",(function(){b(N,t,it).call(t)})),d.addEventListener("keydown",(function(e){e.keyCode!==i.m.TAB||e.shiftKey||b(N,t,it).call(t)}))}b(N,this,j).call(this,n,s,l)}function j(t,e,n){var i=this;this.searchInput&&this.searchInput.addEventListener("keyup",function(e){b(N,this,ot).call(this,e,t)}.bind(this)),y(x,this)&&this.searchInput&&this.searchInput.addEventListener("focus",function(){b(N,this,V).call(this)}.bind(this)),n&&n.addEventListener("click",(function(){Object(c.i)(e,i.searchInput.value,!1)})),this.searchInput&&this.searchInput.addEventListener("blur",(function(t){Object(c.f)(t,i.searchSuggestionBox)}))}function R(){if(v(O,this,this.elem.querySelector(".".concat(this.compName,"__profile"))),v(I,this,this.elem.querySelector(".".concat(this.compName,"__logout"))),null!==y(I,this)){v(q,this,this.elem.querySelector(".".concat(this.compName,"__login")));var t=s.a.registerLoginStateCallBack(b(N,this,Q).bind(this));b(N,this,Q).call(this,t)}}function H(t,e){var n=t.closest(".".concat(this.compName,"__menu-item")).querySelector(".".concat(this.compName,"__menu-link")),i=n.nextElementSibling,o=i.querySelector(".selected");if(!t.getAttribute("data-display-modal")||"#cmp-modal~product-unavailable"!==t.getAttribute("data-display-modal")){var a,c,s;b(N,this,z).call(this,t,n),null===(a=i.querySelector(".visually-hidden"))||void 0===a||a.remove(),null===(c=i.querySelector(".td-icon-checkMark"))||void 0===c||c.remove(),null===(s=i.querySelector(".active"))||void 0===s||s.classList.remove("active"),null==o||o.classList.remove("selected"),t.closest("li").classList.add("active"),t.innerHTML+='<span class="td-icon td-icon-checkMark selected" aria-hidden="true"></span><span class="visually-hidden">'.concat(y(A,this),"</span>");var l=t.getAttribute("data-key").toLowerCase();r.a.redirectToProvincePage(l,e)}
1}function z(t,e){var n=t.innerHTML;e.querySelector(".".concat(this.compName,"__label")).innerHTML=n.split("<span")[0].trim()}function F(t){var e=[];return JSON.parse(province_list).provinces.forEach((function(n){if(n.key.toLowerCase()===t.toLowerCase()){var i=n.name,r=n.redirectUrl;e=[i,t,r]}})),e}function G(t){var e,n=b(N,this,F).call(this,t.toLowerCase()),i=u(y(w,this));try{for(i.s();!(e=i.n()).done;){var o=e.value;if(o.getAttribute("data-key").toLowerCase()===n[1].toLowerCase()){b(N,this,H).call(this,o,!1);break}}}catch(t){i.e(t)}finally{i.f()}y(x,this)&&0===y(w,this).length&&0!==n.length&&r.a.redirectToProvincePage(n[1].toLowerCase(),!1)}function W(t){var e=t.target;b(N,this,H).call(this,e,!0)}function U(t){y(x,this)&&(b(N,this,V).call(this),document.dispatchEvent(new Event("utilityLinkClicked"))),setTimeout((function(){t.classList.add("show-sub-menu"),t.querySelector("a").setAttribute("aria-expanded","true");var e=t.querySelector("li").getBoundingClientRect(),n=window.innerHeight;e.bottom>n&&requestAnimationFrame((function(){t.querySelector("li").scrollIntoView({behavior:"smooth",block:"end"})}))}),10)}function Y(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.classList.remove("show-sub-menu"),t.querySelector("a").setAttribute("aria-expanded","false"),e&&t.querySelector("a").focus()}function V(){var t=this;this.elem.querySelectorAll(".".concat(this.compName,"__menu-item.show-sub-menu")).forEach((function(e){b(N,t,Y).call(t,e)}))}function X(t){void 0!==t.keyCode&&(t.keyCode!==i.m.TAB||t.shiftKey||b(N,this,V).call(this))}function $(t){t.target.closest("#product-unavailable")||(t.target.classList.contains(".".concat(this.compName,"__logo"))||t.target.classList.contains(".".concat(this.compName,"__nav"))||t.target.closest(".".concat(this.compName,"__search-box"))||null!==t.target.closest(".".concat(this.compName,"__nav")))&&null!==t.target.closest(".".concat(this.compName))||b(N,this,V).call(this)}function K(t){t&&(t.classList.contains("show-sub-menu")?b(N,this,Y).call(this,t):t.querySelector(".".concat(this.compName,"__sub-menu"))&&b(N,this,U).call(this,t))}function J(t){if(t.target.classList.contains("".concat(this.compName,"__sub-menu-link"))&&!t.target.hasAttribute("data-key"))b(N,this,Y).call(this,t.target.closest(".".concat(this.compName,"__sub-menu")));else if(t.target.closest(".".concat(this.compName,"__sub-menu")))return;b(N,this,K).call(this,t.target.closest(".".concat(this.compName,"__menu-item")))}function Z(t){if(void 0!==t.keyCode)switch(t.target.classList.contains("".concat(this.compName,"__menu-link"))&&t.shiftKey&&i.m.TAB&&b(N,this,Y).call(this,t.target.closest(".".concat(this.compName,"__menu-item"))),t.keyCode){case i.m.ESCAPE:b(N,this,Y).call(this,t.target.closest(".".concat(this.compName,"__menu-item")),!0);break;case i.m.SPACE:case i.m.ENTER:t.target.closest("#product-unavailable")||t.target.href.includes("#cmp-modal~product-unavailable")||b(N,this,K).call(this,t.currentTarget.closest(".".concat(this.compName,"__menu-item")))}}function Q(t){var e;if(t&&(null===(e=y(O,this))||void 0===e||e.classList.remove("hidden"),y(I,this).classList.remove("hidden"),null!==y(q,this)&&y(q,this).classList.add("hidden"),!y(x,this))){var n=this.elem.querySelector(".".concat(this.compName,"__section-right"));this.elem.querySelector(".".concat(this.compName,"__section-right-logout")).classList.remove("hidden"),null!==n&&n.classList.add("hidden")}}function tt(t){var e=navigator.userAgent.toLowerCase(),n=document.documentElement.lang.toLowerCase();t.addEventListener("click",(function(t){t.preventDefault();var r=t.target.getAttribute("target"),o=r&&"_blank"===r?"_blank":"_self";e.indexOf(i.r.ANDROID)>-1?window.open(i.x.ANDROIDURL,o):e.indexOf(i.r.MAC)>-1?window.open(i.x.MACURL,o):n&&(n.indexOf(i.r.LANG)>-1?window.open(i.x.OTHERENURL,o):window.open(i.x.OTHERFRURL,o))}))}function et(){var t=this;y(E,this)&&y(x,this)&&setTimeout((function(){var e,n,i=null===(e=t.elem.querySelector(".".concat(t.compName,"__logo")))||void 0===e?void 0:e.offsetWidth,r=0;null===(n=y(L,t))||void 0===n||n.forEach((function(e){e.parentElement.classList.contains("".concat(t.compName,"__bg-green"))&&(r+=e.parentElement.offsetWidth)}));var o=i+r+1;y(E,t).style.width="calc(100% - ".concat(o,"px")}),y(M,this))}function nt(){var t=this;setTimeout((function(){b(N,t,V).call(t),y(_,t).setAttribute("aria-hidden",!0),y(E,t).style.display="block",v(C,t,!0),t.searchInput.focus(),y(L,t).forEach((function(t){t.setAttribute("tabindex","-1")})),null!==y(k,t)&&(t.searchInput.value=y(k,t))}),y(M,this))}function it(t){var e=this;y(_,this).setAttribute("aria-hidden",!1),setTimeout((function(){y(E,e).style.display="none"}),100),v(k,this,null),t||y(T,this).focus(),this.searchInput&&(this.searchInput.value=""),Object(c.b)(this.searchSuggestionBox,!0,!1),y(L,this).forEac
1h((function(t){t.setAttribute("tabindex","0")}))}function rt(t){void 0!==t.keyCode&&(t.keyCode!==i.m.SPACE&&t.keyCode!==i.m.ENTER||b(N,this,nt).call(this))}function ot(t,e){t.preventDefault();var n=""===e?{}:e,r=n.minSearchLength,o=n.apiURL,a=n.interfaceID,s=n.noOfSuggestionToDisplay,l=n.buttonUrl;if(y(C,this))v(C,this,!1);else{if(t.keyCode===i.m.ENTER)return void Object(c.i)(l,t.currentTarget.value,!1);var u="".concat(o,"/IntelliSuggest?interfaceID=").concat(a,"&term=");Object(c.d)(t.currentTarget.value,u,s,r,l,c.k,this.searchSuggestionBox)}}function at(){var t,e=this,n=null===(t=this.elem.querySelector(".".concat(this.compName,"__login")))||void 0===t?void 0:t.querySelector(".".concat(this.compName,"__cols")),i=null==n?void 0:n.querySelectorAll("div");if((null==i?void 0:i.length)>1){var r=i.length*y(P,this);i.forEach((function(t){var i,o=null==t?void 0:t.querySelector("ul");if((null==o||null===(i=o.querySelectorAll("li"))||void 0===i?void 0:i.length)>5){r+=y(P,e),n.style.width="".concat(r,"px"),t.style.width="".concat(2*y(P,e),"px");var a=null==o?void 0:o.querySelectorAll("li");null==a||a.forEach((function(t){t.style.maxWidth="".concat(y(P,e),"px")}))}}))}}function ct(){var t=document.querySelectorAll('.cmp-site-utility-nav:not([data-component-state="initialized"])');t.length>0&&t.forEach((function(t){new D(t).initialize(!0),t.setAttribute("data-component-state","initialized")}))}"loading"!==document.readyState?ct():document.addEventListener("DOMContentLoaded",ct)},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n(0),r=n(1);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var c=function(){var t,e=document.querySelectorAll(".cmp-tdi-header-secondary-mega-menu");if(e&&0!==e.length&&(t=o(e)),window.innerWidth>=i.l.SM){if(!t)return;t.forEach((function(t){var e=t.querySelector(".cmp-tdi-header-secondary-mega-menu__column--container");Object(r.e)(".cmp-tdi-header-secondary-mega-menu__column--title",".cmp-tdi-header-secondary-mega-menu__column--container .cmp-tdi-header-secondary-mega-menu__column",e.id)}))}},s={init:function(){var t=document.querySelectorAll(".".concat("cmp-tdi-header-secondary-mega-menu",':not([data-component-state="initialized"])'));t.length>0&&(["load","resize"].forEach((function(t){"resize"===t?window.addEventListener(t,(function(){c()})):window.addEventListener(t,Object(r.a)((function(){c()}),500))})),t.forEach((function(t){!function(t){var e=t.querySelector(".cmp-tdi-header-secondary-mega-menu__column--container"),n=t.querySelectorAll(".cmp-tdi-header-secondary-mega-menu__column"),i=n&&n.length;5===i?e&&e.classList.add("cmp-tdi-header-secondary-mega-menu__column--five"):6===i?e&&e.classList.add("cmp-tdi-header-secondary-mega-menu__column--six"):7===i&&e&&e.classList.add("cmp-tdi-header-secondary-mega-menu__column--seven")}(t),t.setAttribute("data-component-state","initialized")})))}};"loading"!==document.readyState?s().init():document.addEventListener("DOMContentLoaded",s.init)},function(t,e,n){var i;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var o=[],a=Object.getPrototypeOf,c=o.slice,s=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},l=o.push,u=o.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,m=p.call(Object),g={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},b=n.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function _(t,e,n){var i,r,o=(n=n||b).createElement("script");
vendor: 50,278 bytes, line 1
1if(o.text=t,e)for(i in x)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function S(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var w=/HTML$/i,A=function(t,e){return new A.fn.init(t,e)};function E(t){var e=!!t&&"length"in t&&t.length,n=S(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function L(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}A.fn=A.prototype={jquery:"3.7.1",constructor:A,length:0,toArray:function(){return c.call(this)},get:function(t){return null==t?c.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=A.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return A.each(this,t)},map:function(t){return this.pushStack(A.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(A.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:o.sort,splice:o.splice},A.extend=A.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},c=1,s=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[c]||{},c++),"object"==typeof a||y(a)||(a={}),c===s&&(a=this,c--);c<s;c++)if(null!=(t=arguments[c]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(l&&i&&(A.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[e],o=r&&!Array.isArray(n)?[]:r||A.isPlainObject(n)?n:{},r=!1,a[e]=A.extend(l,o,i)):void 0!==i&&(a[e]=i));return a},A.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t))&&(!(e=a(t))||"function"==typeof(n=f.call(e,"constructor")&&e.constructor)&&p.call(n)===m)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){_(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(E(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=A.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(E(Object(t))?A.merge(n,"string"==typeof t?[t]:t):l.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!w.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(E(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return s(a)},guid:1,support:g}),"function"==typeof Symbol&&(A.fn[Symbol.iterator]=o[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){d["[object "+e+"]"]=e.toLowerCase()}));var k=o.pop,C=o.sort,T=o.splice,M="[\\x20\\t\\r\\n\\f]",q=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g");A.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var I=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function O(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}A.escapeSelector=function(t){return(t+"").replace(I,O)};var P=b,N=l;!function(){var t,e,i,r,a,s,l,d,h,p,m=N,y=A.expando,v=0,b=0,x=tt(),_=tt(),S=tt(),w=tt(),E=function(t,e){return t===e&&(a=!0),0},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",D="\\["+M+"*("+O+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",B=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",j=new RegExp(M+"+","g"),R=new RegExp("^"+M+"*,"+M+"*"),H=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),z=new RegExp(M+"|>"),F=new RegExp(B),G=new RegExp("^"+O+"$"),W={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,$=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),K=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},J=function(){st()},Z=ht((function(t){return!0===t.disabled&&L(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(o=c.call(P.childNodes),P.childNodes),o[P.childNodes.length].nodeType}catch(t){m={apply:function(t,e){N.apply(t,c.call(e))},call:function(t){N.apply(t,c.call(arguments,1))}}}function Q(t,e,n,i){var r,o,a,c,l,u,f,p=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!i&&(st(e),e=e||s,d)){if(11!==v&&(l=V.exec(t)))if(r=l[1]){if(9===v){if(!(a=e.getElementById(r)))return n;if(a.id===r)return m.call(n,a),n}else if(p&&(a=p.getElementById(r))&&Q.contains(e,a)&&a.id===r)return m.call(n,a),n}else{if(l[2])return m.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(r)),n}if(!(w[t+" "]||h&&h.test(t))){if(f=t,p=e,1===v&&(z.test(t)||H.test(t))){for((p=X.test(t)&&ct(e.parentNode)||e)==e&&g.scope||((c=e.getAttribute("id"))?c=A.escapeSelector(c):e.setAttribute("id",c=y)),o=(u=ut(t)).length;o--;)u[o]=(c?"#"+c:":scope")+" "+dt(u[o]);f=u.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(e){w(t,!0)}finally{c===y&&e.removeAttribute("id")}}}return vt(t.replace(q,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[y]=!0,t}function nt(t){var e=s.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return L(e,"input")&&e.type===t}}function rt(t){return function(e){return(L(e,"input")||L(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Z(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function at(t){return et((function(e){return e=+e,et((function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function ct(t){return t&&void 0!==t.getElementsByTagName&&t}function st(t){var n,i=t?t.ownerDocument||t:P;return i!=s&&9===i.nodeType&&i.documentElement?(l=(s=i).documentElement,d=!A.isXMLDoc(s),p=l.matches||l.webkitMatchesSelector||l.msMatchesSelector,l.msMatchesSelector&&P!=s&&(n=s.defaultView)&&n.top!==n&&n.addEventListener("unload",J),g.getById=nt((function(t){return l.appendChild(t).id=A.expando,!s.getElementsByName||!s.getElementsByName(A.expando).length})),g.disconnectedMatch=nt((function(t){return p.call(t,"*")})),g.scope=nt((function(){return s.querySelectorAll(":scope")})),g.cssHas=nt((function(){try{return s.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),g.getById?(e.filter.ID=function(t){var e=t.replace($,K);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace($,K);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},h=[],nt((function(t){var e;l.appendChild(t).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||h.push("\\["+M+"*(?:value|"+I+")"),t.querySelectorAll("[id~="+y+"-]").length||h.push("~="),t.querySelectorAll("a#"+y+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),(e=s.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),l.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(e=s.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")")})),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),E=function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===n?t===s||t.ownerDocument==P&&Q.contains(P,t)?-1:e===s||e.ownerDocument==P&&Q.contains(P,e)?1:r?u.call(r,t)-u.call(r,e):0:4&n?-1:1)},s):s}for(t in Q.matches=function(t,e){return Q(t,null,null,e)},Q.matchesSelector=function(t,e){if(st(t),d&&!w[e+" "]&&(!h||!h.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){w(e,!0)}return Q(e,s,null,[t]).length>0},Q.contains=function(t,e){return(t.ownerDocument||t)!=s&&st(t),A.contains(t,e)},Q.attr=function(t,n){(t.ownerDocument||t)!=s&&st(t);var i=e.attrHandle[n.toLowerCase()],r=i&&f.call(e.attrHandle,n.toLowerCase())?i(t,n,!d):void 0;return void 0!==r?r:t.getAttribute(n)},Q.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},A.uniqueSort=function(t){var e,n=[],i=0,o=0;if(a=!g.sortStable,r=!g.sortStable&&c.call(t,0),C.call(t,E),a){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)T.call(t,n[i],1)}return r=null,t},A.fn.uniqueSort=function(){return this.pushStack(A.uniqueSort(c.apply(this)))},(e=A.expr={cacheLength:50,createPseudo:et,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace($,K),t[3]=(t[3]||t[4]||t[5]||"").replace($,K),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Q.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Q.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return W.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&F.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace($,K).toLowerCase();return"*"===t?function(){return!0}:function(t){return L(t,e)}},CLASS:function(t){var e=x[t+" "];return e||(e=new RegExp("(^|"+M+")"+t+"("+M+"|$)"))&&x(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=Q.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(j," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),c="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,s){var l,u,d,h,f,p=o!==a?"nextSibling":"previousSibling",m=e.parentNode,g=c&&e.nodeName.toLowerCase(),b=!s&&!c,x=!1;if(m){if(o){for(;p;){for(d=e;d=d[p];)if(c?L(d,g):1===d.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&b){for(x=(h=(l=(u=m[y]||(m[y]={}))[t]||[])[0]===v&&l[1])&&l[2],d=h&&m.childNodes[h];d=++h&&d&&d[p]||(x=h=0)||f.pop();)if(1===d.nodeType&&++x&&d===e){u[t]=[v,h,x];break}}else if(b&&(x=h=(l=(u=e[y]||(e[y]={}))[t]||[])[0]===v&&l[1]),!1===x)for(;(d=++h&&d&&d[p]||(x=h=0)||f.pop())&&(!(c?L(d,g):1===d.nodeType)||!++x||(b&&((u=d[y]||(d[y]={}))[t]=[v,x]),d!==e)););return(x-=r)===i||x%i==0&&x/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Q.error("unsupported pseudo: "+t);return r[y]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var i,o=r(t,n),a=o.length;a--;)t[i=u.call(t,o[a])]=!(e[i]=o[a])})):function(t){return r(t,0,i)}):r}},pseudos:{not:et((function(t){var e=[],n=[],i=yt(t.replace(q,"$1"));return i[y]?et((function(t,e,n,r){for(var o,a=i(t,null,r,[]),c=t.length;c--;)(o=a[c])&&(t[c]=!(e[c]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return Q(t,e).length>0}})),contains:et((function(t){return t=t.replace($,K),function(e){return(e.textContent||A.text(e)).indexOf(t)>-1}})),lang:et((function(t){return G.test(t||"")||Q.error("unsupported lang: "+t),t=t.replace($,K).toLowerCase(),function(e){var n;do{if(n=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===l},focus:function(t){return t===function(){try{return s.activeElement}catch(t){}}()&&s.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return L(t,"input")&&!!t.checked||L(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return Y.test(t.nodeName)},input:function(t){return U.test(t.nodeName)},button:function(t){return L(t,"input")&&"button"===t.type||L(t,"button")},text:function(t){var e;return L(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:at((function(){return[0]})),last:at((function(t,e){return[e-1]})),eq:at((function(t,e,n){return[n<0?n+e:n]})),even:at((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:at((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:at((function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:at((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}}).pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function lt(){}function ut(t,n){var i,r,o,a,c,s,l,u=_[t+" "];if(u)return n?0:u.slice(0);for(c=t,s=[],l=e.preFilter;c;){for(a in i&&!(r=R.exec(c))||(r&&(c=c.slice(r[0].length)||c),s.push(o=[])),i=!1,(r=H.exec(c))&&(i=r.shift(),o.push({value:i,type:r[0].replace(q," ")}),c=c.slice(i.length)),e.filter)!(r=W[a].exec(c))||l[a]&&!(r=l[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),c=c.slice(i.length));if(!i)break}return n?c.length:c?Q.error(t):_(t,s).slice(0)}function dt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ht(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,c=b++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,s){var l,u,d=[v,c];if(s){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,s))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(u=e[y]||(e[y]={}),r&&L(e,r))e=e[i]||e;else{if((l=u[o])&&l[0]===v&&l[1]===c)return d[2]=l[2];if(u[o]=d,d[2]=t(e,n,s))return!0}return!1}}function ft(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function pt(t,e,n,i,r){for(var o,a=[],c=0,s=t.length,l=null!=e;c<s;c++)(o=t[c])&&(n&&!n(o,i,r)||(a.push(o),l&&e.push(c)));return a}function mt(t,e,n,i,r,o){return i&&!i[y]&&(i=mt(i)),r&&!r[y]&&(r=mt(r,o)),et((function(o,a,c,s){var l,d,h,f,p=[],g=[],y=a.length,v=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)Q(t,e[i],n);return n}(e||"*",c.nodeType?[c]:c,[]),b=!t||!o&&e?v:pt(v,p,t,c,s);if(n?n(b,f=r||(o?t:y||i)?[]:a,c,s):f=b,i)for(l=pt(f,g),i(l,[],c,s),d=l.length;d--;)(h=l[d])&&(f[g[d]]=!(b[g[d]]=h));if(o){if(r||t){if(r){for(l=[],d=f.length;d--;)(h=f[d])&&l.push(b[d]=h);r(null,f=[],l,s)}for(d=f.length;d--;)(h=f[d])&&(l=r?u.call(o,h):p[d])>-1&&(o[l]=!(a[l]=h))}}else f=pt(f===a?f.splice(y,f.length):f),r?r(null,a,f,s):m.apply(a,f)}))}function gt(t){for(var n,r,o,a=t.length,c=e.relative[t[0].type],s=c||e.relative[" "],l=c?1:0,d=ht((function(t){return t===n}),s,!0),h=ht((function(t){return u.call(n,t)>-1}),s,!0),f=[function(t,e,r){var o=!c&&(r||e!=i)||((n=e).nodeType?d(t,e,r):h(t,e,r));return n=null,o}];l<a;l++)if(r=e.relative[t[l].type])f=[ht(ft(f),r)];else{if((r=e.filter[t[l].type].apply(null,t[l].matches))[y]){for(o=++l;o<a&&!e.relative[t[o].type];o++);return mt(l>1&&ft(f),l>1&&dt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(q,"$1"),r,l<o&>(t.slice(l,o)),o<a&>(t=t.slice(o)),o<a&&dt(t))}f.push(r)}return ft(f)}function yt(t,n){var r,o=[],a=[],c=S[t+" "];if(!c){for(n||(n=ut(t)),r=n.length;r--;)(c=gt(n[r]))[y]?o.push(c):a.push(c);(c=S(t,function(t,n){var r=n.length>0,o=t.length>0,a=function(a,c,l,u,h){var f,p,g,y=0,b="0",x=a&&[],_=[],S=i,w=a||o&&e.find.TAG("*",h),E=v+=null==S?1:Math.random()||.1,L=w.length;for(h&&(i=c==s||c||h);b!==L&&null!=(f=w[b]);b++){if(o&&f){for(p=0,c||f.ownerDocument==s||(st(f),l=!d);g=t[p++];)if(g(f,c||s,l)){m.call(u,f);break}h&&(v=E)}r&&((f=!g&&f)&&y--,a&&x.push(f))}if(y+=b,r&&b!==y){for(p=0;g=n[p++];)g(x,_,c,l);if(a){if(y>0)for(;b--;)x[b]||_[b]||(_[b]=k.call(u));_=pt(_)}m.apply(u,_),h&&!a&&_.length>0&&y+n.length>1&&A.uniqueSort(u)}return h&&(v=E,i=S),x};return r?et(a):a}(a,o))).selector=t}return c}function vt(t,n,i,r){var o,a,c,s,l,u="function"==typeof t&&t,h=!r&&ut(t=u.selector||t);if(i=i||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(c=a[0]).type&&9===n.nodeType&&d&&e.relative[a[1].type]){if(!(n=(e.find.ID(c.matches[0].replace($,K),n)||[])[0]))return i;u&&(n=n.parentNode),t=t.slice(a.shift().value.length)}for(o=W.needsContext.test(t)?0:a.length;o--&&(c=a[o],!e.relative[s=c.type]);)if((l=e.find[s])&&(r=l(c.matches[0].replace($,K),X.test(a[0].type)&&ct(n.parentNode)||n))){if(a.splice(o,1),!(t=r.length&&dt(a)))return m.apply(i,r),i;break}}return(u||yt(t,h))(r,n,!d,i,!n||X.test(t)&&ct(n.parentNode)||n),i}lt.prototype=e.filters=e.pseudos,e.setFilters=new lt,g.sortStable=y.split("").sort(E).join("")===y,st(),g.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(s.createElement("fieldset"))})),A.find=Q,A.expr[":"]=A.expr.pseudos,A.unique=A.uniqueSort,Q.compile=yt,Q.select=vt,Q.setDocument=st,Q.tokenize=ut,Q.escape=A.escapeSelector,Q.getText=A.text,Q.isXML=A.isXMLDoc,Q.selectors=A.expr,Q.support=A.support,Q.uniqueSort=A.uniqueSort}();var D=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&A(t).is(n))break;i.push(t)}return i},B=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},j=A.expr.match.needsContext,R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(t,e,n){return y(e)?A.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?A.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?A.grep(t,(function(t){return u.call(e,t)>-1!==n})):A.filter(e,t,n)}A.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?A.find.matchesSelector(i,t)?[i]:[]:A.find.matches(t,A.grep(e,(function(t){return 1===t.nodeType})))},A.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(A(t).filter((function(){for(e=0;e<i;e++)if(A.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)A.find(t,r[e],n);return i>1?A.uniqueSort(n):n},filter:function(t){return this.pushStack(H(this,t||[],!1))},not:function(t){return this.pushStack(H(this,t||[],!0))},is:function(t){return!!H(this,"string"==typeof t&&j.test(t)?A(t):t||[],!1).length}});var z,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(A.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||z,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:F.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof A?e[0]:e,A.merge(this,A.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),R.test(i[1])&&A.isPlainObject(e))for(i in e)y(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(A):A.makeArray(t,this)}).prototype=A.fn,z=A(b);var G=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function U(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}A.fn.extend({has:function(t){var e=A(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(A.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&A(t);if(!j.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&A.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?A.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?u.call(A(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),A.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return D(t,"parentNode")},parentsUntil:function(t,e,n){return D(t,"parentNode",n)},next:function(t){return U(t,"nextSibling")},prev:function(t){return U(t,"previousSibling")},nextAll:function(t){return D(t,"nextSibling")},prevAll:function(t){return D(t,"previousSibling")},nextUntil:function(t,e,n){return D(t,"nextSibling",n)},prevUntil:function(t,e,n){return D(t,"previousSibling",n)},siblings:function(t){return B((t.parentNode||{}).firstChild,t)},children:function(t){return B(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(L(t,"template")&&(t=t.content||t),A.merge([],t.childNodes))}},(function(t,e){A.fn[t]=function(n,i){var r=A.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=A.filter(i,r)),this.length>1&&(W[t]||A.uniqueSort(r),G.test(t)&&r.reverse()),this.pushStack(r)}}));var Y=/[^\x20\t\r\n\f]+/g;function V(t){return t}function X(t){throw t}function $(t,e,n,i){var r;try{t&&y(r=t.promise)?r.call(t).done(e).fail(n):t&&y(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}A.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return A.each(t.match(Y)||[],(function(t,n){e[n]=!0})),e}(t):A.extend({},t);var e,n,i,r,o=[],a=[],c=-1,s=function(){for(r=r||t.once,i=e=!0;a.length;c=-1)for(n=a.shift();++c<o.length;)!1===o[c].apply(n[0],n[1])&&t.stopOnFalse&&(c=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},l={add:function(){return o&&(n&&!e&&(c=o.length-1,a.push(n)),function e(n){A.each(n,(function(n,i){y(i)?t.unique&&l.has(i)||o.push(i):i&&i.length&&"string"!==S(i)&&e(i)}))}(arguments),n&&!e&&s()),this},remove:function(){return A.each(arguments,(function(t,e){for(var n;(n=A.inArray(e,o,n))>-1;)o.splice(n,1),n<=c&&c--})),this},has:function(t){return t?A.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||s()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},A.extend({Deferred:function(t){var e=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return A.Deferred((function(n){A.each(e,(function(e,i){var r=y(t[i[4]])&&t[i[4]];o[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,i,r){var o=0;function a(t,e,i,r){return function(){var c=this,s=arguments,l=function(){var n,l;if(!(t<o)){if((n=i.apply(c,s))===e.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(l)?r?l.call(n,a(o,e,V,r),a(o,e,X,r)):(o++,l.call(n,a(o,e,V,r),a(o,e,X,r),a(o,e,V,e.notifyWith))):(i!==V&&(c=void 0,s=[n]),(r||e.resolveWith)(c,s))}},u=r?l:function(){try{l()}catch(n){A.Deferred.exceptionHook&&A.Deferred.exceptionHook(n,u.error),t+1>=o&&(i!==X&&(c=void 0,s=[n]),e.rejectWith(c,s))}};t?u():(A.Deferred.getErrorHook?u.error=A.Deferred.getErrorHook():A.Deferred.getStackHook&&(u.error=A.Deferred.getStackHook()),n.setTimeout(u))}}return A.Deferred((function(n){e[0][3].add(a(0,n,y(r)?r:V,n.notifyWith)),e[1][3].add(a(0,n,y(t)?t:V)),e[2][3].add(a(0,n,y(i)?i:X))})).promise()},promise:function(t){return null!=t?A.extend(t,r):r}},o={};return A.each(e,(function(t,n){var a=n[2],c=n[5];r[n[1]]=a.add,c&&a.add((function(){i=c}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=c.call(arguments),o=A.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?c.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&($(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||y(r[n]&&r[n].then)))return o.then();for(;n--;)$(r[n],a(n),o.reject);return o.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&K.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},A.readyException=function(t){n.setTimeout((function(){throw t}))};var J=A.Deferred();function Z(){b.removeEventListener("DOMContentLoaded",Z),n.removeEventListener("load",Z),A.ready()}A.fn.ready=function(t){return J.then(t).catch((function(t){A.readyException(t)})),this},A.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--A.readyWait:A.isReady)||(A.isReady=!0,!0!==t&&--A.readyWait>0||J.resolveWith(b,[A]))}}),A.ready.then=J.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(A.ready):(b.addEventListener("DOMContentLoaded",Z),n.addEventListener("load",Z));var Q=function(t,e,n,i,r,o,a){var c=0,s=t.length,l=null==n;if("object"===S(n))for(c in r=!0,n)Q(t,e,c,n[c],!0,o,a);else if(void 0!==i&&(r=!0,y(i)||(a=!0),l&&(a?(e.call(t,i),e=null):(l=e,e=function(t,e,n){return l.call(A(t),n)})),e))for(;c<s;c++)e(t[c],n,a?i:i.call(t[c],c,e(t[c],n)));return r?t:l?e.call(t):s?e(t[0],n):o},tt=/^-ms-/,et=/-([a-z])/g;function nt(t,e){return e.toUpperCase()}function it(t){return t.replace(tt,"ms-").replace(et,nt)}var rt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=A.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(t){var e=t[this.expando];return e||(e={},rt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[it(e)]=n;else for(i in e)r[it(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][it(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(it):(e=it(e))in i?[e]:e.match(Y)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||A.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!A.isEmptyObject(e)}};var at=new ot,ct=new ot,st=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,lt=/[A-Z]/g;function ut(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(lt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:st.test(t)?JSON.parse(t):t)}(n)}catch(t){}ct.set(t,e,n)}else n=void 0;return n}A.extend({hasData:function(t){return ct.hasData(t)||at.hasData(t)},data:function(t,e,n){return ct.access(t,e,n)},removeData:function(t,e){ct.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),A.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=ct.get(o),1===o.nodeType&&!at.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=it(i.slice(5)),ut(o,i,r[i]));at.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){ct.set(this,t)})):Q(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=ct.get(o,t))||void 0!==(n=ut(o,t))?n:void 0;this.each((function(){ct.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){ct.remove(this,t)}))}}),A.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=at.get(t,e),n&&(!i||Array.isArray(n)?i=at.access(t,e,A.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=A.queue(t,e),i=n.length,r=n.shift(),o=A._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){A.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:A.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),A.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?A.queue(this[0],t):void 0===e?this:this.each((function(){var n=A.queue(this,t,e);A._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&A.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){A.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=A.Deferred(),o=this,a=this.length,c=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=at.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(c));return c(),r.promise(e)}});var dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ht=new RegExp("^(?:([+-])=|)("+dt+")([a-z%]*)$","i"),ft=["Top","Right","Bottom","Left"],pt=b.documentElement,mt=function(t){return A.contains(t.ownerDocument,t)},gt={composed:!0};pt.getRootNode&&(mt=function(t){return A.contains(t.ownerDocument,t)||t.getRootNode(gt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&mt(t)&&"none"===A.css(t,"display")};function vt(t,e,n,i){var r,o,a=20,c=i?function(){return i.cur()}:function(){return A.css(t,e,"")},s=c(),l=n&&n[3]||(A.cssNumber[e]?"":"px"),u=t.nodeType&&(A.cssNumber[e]||"px"!==l&&+s)&&ht.exec(A.css(t,e));if(u&&u[3]!==l){for(s/=2,l=l||u[3],u=+s||1;a--;)A.style(t,e,u+l),(1-o)*(1-(o=c()/s||.5))<=0&&(a=0),u/=o;u*=2,A.style(t,e,u+l),n=n||[]}return n&&(u=+u||+s||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=u,i.end=r)),r}var bt={};function xt(t){var e,n=t.ownerDocument,i=t.nodeName,r=bt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=A.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),bt[i]=r,r)}function _t(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=at.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&yt(i)&&(r[o]=xt(i))):"none"!==n&&(r[o]="none",at.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}A.fn.extend({show:function(){return _t(this,!0)},hide:function(){return _t(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){yt(this)?A(this).show():A(this).hide()}))}});var St,wt,At=/^(?:checkbox|radio)$/i,Et=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Lt=/^$|^module$|\/(?:java|ecma)script/i;St=b.createDocumentFragment().appendChild(b.createElement("div")),(wt=b.createElement("input")).setAttribute("type","radio"),wt.setAttribute("checked","checked"),wt.setAttribute("name","t"),St.appendChild(wt),g.checkClone=St.cloneNode(!0).cloneNode(!0).lastChild.checked,St.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!St.cloneNode(!0).lastChild.defaultValue,St.innerHTML="<option></option>",g.option=!!St.lastChild;var kt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ct(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&L(t,e)?A.merge([t],n):n}function Tt(t,e){for(var n=0,i=t.length;n<i;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}kt.tbody=kt.tfoot=kt.colgroup=kt.caption=kt.thead,kt.th=kt.td,g.option||(kt.optgroup=kt.option=[1,"<select multiple='multiple'>","</select>"]);var Mt=/<|&#?\w+;/;function qt(t,e,n,i,r){for(var o,a,c,s,l,u,d=e.createDocumentFragment(),h=[],f=0,p=t.length;f<p;f++)if((o=t[f])||0===o)if("object"===S(o))A.merge(h,o.nodeType?[o]:o);else if(Mt.test(o)){for(a=a||d.appendChild(e.createElement("div")),c=(Et.exec(o)||["",""])[1].toLowerCase(),s=kt[c]||kt._default,a.innerHTML=s[1]+A.htmlPrefilter(o)+s[2],u=s[0];u--;)a=a.lastChild;A.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&A.inArray(o,i)>-1)r&&r.push(o);else if(l=mt(o),a=Ct(d.appendChild(o),"script"),l&&Tt(a),n)for(u=0;o=a[u++];)Lt.test(o.type||"")&&n.push(o);return d}var It=/^([^.]*)(?:\.(.+)|)/;function Ot(){return!0}function Pt(){return!1}function Nt(t,e,n,i,r,o){var a,c;if("object"==typeof e){for(c in"string"!=typeof n&&(i=i||n,n=void 0),e)Nt(t,c,n,i,e[c],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Pt;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return A().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=A.guid++)),t.each((function(){A.event.add(this,e,r,i,n)}))}function Dt(t,e,n){n?(at.set(t,e,!1),A.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(A.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=c.call(arguments),at.set(this,e,i),this[e](),n=at.get(this,e),at.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(at.set(this,e,A.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Ot)}})):void 0===at.get(t,e)&&A.event.add(t,e,Ot)}A.event={global:{},add:function(t,e,n,i,r){var o,a,c,s,l,u,d,h,f,p,m,g=at.get(t);if(rt(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&A.find.matchesSelector(pt,r),n.guid||(n.guid=A.guid++),(s=g.events)||(s=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==A&&A.event.triggered!==e.type?A.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(Y)||[""]).length;l--;)f=m=(c=It.exec(e[l])||[])[1],p=(c[2]||"").split(".").sort(),f&&(d=A.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=A.event.special[f]||{},u=A.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&A.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=s[f])||((h=s[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(f,a)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),A.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,a,c,s,l,u,d,h,f,p,m,g=at.hasData(t)&&at.get(t);if(g&&(s=g.events)){for(l=(e=(e||"").match(Y)||[""]).length;l--;)if(f=m=(c=It.exec(e[l])||[])[1],p=(c[2]||"").split(".").sort(),f){for(d=A.event.special[f]||{},h=s[f=(i?d.delegateType:d.bindType)||f]||[],c=c[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!r&&m!==u.origType||n&&n.guid!==u.guid||c&&!c.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,g.handle)||A.removeEvent(t,f,g.handle),delete s[f])}else for(f in s)A.event.remove(t,f+e[l],n,i,!0);A.isEmptyObject(s)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,c=new Array(arguments.length),s=A.event.fix(t),l=(at.get(this,"events")||Object.create(null))[s.type]||[],u=A.event.special[s.type]||{};for(c[0]=s,e=1;e<arguments.length;e++)c[e]=arguments[e];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=A.event.handlers.call(this,s,l),e=0;(r=a[e++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(i=((A.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,c))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,i,r,o,a,c=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],a={},n=0;n<s;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?A(r,this).index(l)>-1:A.find(r,this,null,[l]).length),a[r]&&o.push(i);o.length&&c.push({elem:l,handlers:o})}return l=this,s<e.length&&c.push({elem:l,handlers:e.slice(s)}),c},addProp:function(t,e){Object.defineProperty(A.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[A.expando]?t:new A.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return At.test(e.type)&&e.click&&L(e,"input")&&Dt(e,"click",!0),!1},trigger:function(t){var e=this||t;return At.test(e.type)&&e.click&&L(e,"input")&&Dt(e,"click"),!0},_default:function(t){var e=t.target;return At.test(e.type)&&e.click&&L(e,"input")&&at.get(e,"click")||L(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},A.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},A.Event=function(t,e){if(!(this instanceof A.Event))return new A.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ot:Pt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&A.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[A.expando]=!0},A.Event.prototype={constructor:A.Event,isDefaultPrevented:Pt,isPropagationStopped:Pt,isImmediatePropagationStopped:Pt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ot,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ot,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ot,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},A.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},A.event.addProp),A.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(b.documentMode){var n=at.get(this,"handle"),i=A.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else A.event.simulate(e,t.target,A.event.fix(t))}A.event.special[t]={setup:function(){var i;if(Dt(this,t,!0),!b.documentMode)return!1;(i=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(i||0)+1)},trigger:function(){return Dt(this,t),!0},teardown:function(){var t;if(!b.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},A.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=at.get(r,e);o||(b.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),at.set(r,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=at.get(r,e)-1;o?at.set(r,e,o):(b.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),at.remove(r,e))}}})),A.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){A.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||A.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),A.fn.extend({on:function(t,e,n,i){return Nt(this,t,e,n,i)},one:function(t,e,n,i){return Nt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,A(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Pt),this.each((function(){A.event.remove(this,t,n,e)}))}});var Bt=/<script|<style|<link/i,jt=/checked\s*(?:[^=]|=\s*.checked.)/i,Rt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ht(t,e){return L(t,"table")&&L(11!==e.nodeType?e:e.firstChild,"tr")&&A(t).children("tbody")[0]||t}function zt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ft(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Gt(t,e){var n,i,r,o,a,c;if(1===e.nodeType){if(at.hasData(t)&&(c=at.get(t).events))for(r in at.remove(e,"handle events"),c)for(n=0,i=c[r].length;n<i;n++)A.event.add(e,r,c[r][n]);ct.hasData(t)&&(o=ct.access(t),a=A.extend({},o),ct.set(e,a))}}function Wt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&At.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ut(t,e,n,i){e=s(e);var r,o,a,c,l,u,d=0,h=t.length,f=h-1,p=e[0],m=y(p);if(m||h>1&&"string"==typeof p&&!g.checkClone&&jt.test(p))return t.each((function(r){var o=t.eq(r);m&&(e[0]=p.call(this,r,o.html())),Ut(o,e,n,i)}));if(h&&(o=(r=qt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(c=(a=A.map(Ct(r,"script"),zt)).length;d<h;d++)l=r,d!==f&&(l=A.clone(l,!0,!0),c&&A.merge(a,Ct(l,"script"))),n.call(t[d],l,d);if(c)for(u=a[a.length-1].ownerDocument,A.map(a,Ft),d=0;d<c;d++)l=a[d],Lt.test(l.type||"")&&!at.access(l,"globalEval")&&A.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?A._evalUrl&&!l.noModule&&A._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):_(l.textContent.replace(Rt,""),l,u))}return t}function Yt(t,e,n){for(var i,r=e?A.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||A.cleanData(Ct(i)),i.parentNode&&(n&&mt(i)&&Tt(Ct(i,"script")),i.parentNode.removeChild(i));return t}A.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,a,c=t.cloneNode(!0),s=mt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||A.isXMLDoc(t)))for(a=Ct(c),i=0,r=(o=Ct(t)).length;i<r;i++)Wt(o[i],a[i]);if(e)if(n)for(o=o||Ct(t),a=a||Ct(c),i=0,r=o.length;i<r;i++)Gt(o[i],a[i]);else Gt(t,c);return(a=Ct(c,"script")).length>0&&Tt(a,!s&&Ct(t,"script")),c},cleanData:function(t){for(var e,n,i,r=A.event.special,o=0;void 0!==(n=t[o]);o++)if(rt(n)){if(e=n[at.expando]){if(e.events)for(i in e.events)r[i]?A.event.remove(n,i):A.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[ct.expando]&&(n[ct.expando]=void 0)}}}),A.fn.extend({detach:function(t){return Yt(this,t,!0)},remove:function(t){return Yt(this,t)},text:function(t){return Q(this,(function(t){return void 0===t?A.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ut(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ht(this,t).appendChild(t)}))},prepend:function(){return Ut(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ht(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(A.cleanData(Ct(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return A.clone(this,t,e)}))},html:function(t){return Q(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Bt.test(t)&&!kt[(Et.exec(t)||["",""])[1].toLowerCase()]){t=A.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(A.cleanData(Ct(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ut(this,arguments,(function(e){var n=this.parentNode;A.inArray(this,t)<0&&(A.cleanData(Ct(this)),n&&n.replaceChild(e,this))}),t)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){A.fn[t]=function(t){for(var n,i=[],r=A(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),A(r[a])[e](n),l.apply(i,n.get());return this.pushStack(i)}}));var Vt=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),Xt=/^--/,$t=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Kt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Jt=new RegExp(ft.join("|"),"i");function Zt(t,e,n){var i,r,o,a,c=Xt.test(e),s=t.style;return(n=n||$t(t))&&(a=n.getPropertyValue(e)||n[e],c&&a&&(a=a.replace(q,"$1")||void 0),""!==a||mt(t)||(a=A.style(t,e)),!g.pixelBoxStyles()&&Vt.test(a)&&Jt.test(e)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Qt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",pt.appendChild(l).appendChild(u);var t=n.getComputedStyle(u);i="1%"!==t.top,s=12===e(t.marginLeft),u.style.right="60%",a=36===e(t.right),r=36===e(t.width),u.style.position="absolute",o=12===e(u.offsetWidth/3),pt.removeChild(l),u=null}}function e(t){return Math.round(parseFloat(t))}var i,r,o,a,c,s,l=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,A.extend(g,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),s},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,i,r;return null==c&&(t=b.createElement("table"),e=b.createElement("tr"),i=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;
1border:1px solid",e.style.height="1px",i.style.height="9px",i.style.display="block",pt.appendChild(t).appendChild(e).appendChild(i),r=n.getComputedStyle(e),c=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,pt.removeChild(t)),c}}))}();var te=["Webkit","Moz","ms"],ee=b.createElement("div").style,ne={};function ie(t){var e=A.cssProps[t]||ne[t];return e||(t in ee?t:ne[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=te.length;n--;)if((t=te[n]+e)in ee)return t}(t)||t)}var re=/^(none|table(?!-c[ea]).+)/,oe={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function ce(t,e,n){var i=ht.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function se(t,e,n,i,r,o){var a="width"===e?1:0,c=0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=A.css(t,n+ft[a],!0,r)),i?("content"===n&&(s-=A.css(t,"padding"+ft[a],!0,r)),"margin"!==n&&(s-=A.css(t,"border"+ft[a]+"Width",!0,r))):(s+=A.css(t,"padding"+ft[a],!0,r),"padding"!==n?s+=A.css(t,"border"+ft[a]+"Width",!0,r):c+=A.css(t,"border"+ft[a]+"Width",!0,r));return!i&&o>=0&&(s+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-s-c-.5))||0),s+l}function le(t,e,n){var i=$t(t),r=(!g.boxSizingReliable()||n)&&"border-box"===A.css(t,"boxSizing",!1,i),o=r,a=Zt(t,e,i),c="offset"+e[0].toUpperCase()+e.slice(1);if(Vt.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&L(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===A.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===A.css(t,"boxSizing",!1,i),(o=c in t)&&(a=t[c])),(a=parseFloat(a)||0)+se(t,e,n||(r?"border":"content"),o,i,a)+"px"}function ue(t,e,n,i,r){return new ue.prototype.init(t,e,n,i,r)}A.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,c=it(e),s=Xt.test(e),l=t.style;if(s||(e=ie(c)),a=A.cssHooks[e]||A.cssHooks[c],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:l[e];"string"===(o=typeof n)&&(r=ht.exec(n))&&r[1]&&(n=vt(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||s||(n+=r&&r[3]||(A.cssNumber[c]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(s?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,i){var r,o,a,c=it(e);return Xt.test(e)||(e=ie(c)),(a=A.cssHooks[e]||A.cssHooks[c])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=Zt(t,e,i)),"normal"===r&&e in ae&&(r=ae[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),A.each(["height","width"],(function(t,e){A.cssHooks[e]={get:function(t,n,i){if(n)return!re.test(A.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?le(t,e,i):Kt(t,oe,(function(){return le(t,e,i)}))},set:function(t,n,i){var r,o=$t(t),a=!g.scrollboxSize()&&"absolute"===o.position,c=(a||i)&&"border-box"===A.css(t,"boxSizing",!1,o),s=i?se(t,e,i,c,o):0;return c&&a&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-se(t,e,"border",!1,o)-.5)),s&&(r=ht.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=A.css(t,e)),ce(0,n,s)}}})),A.cssHooks.marginLeft=Qt(g.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-Kt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),A.each({margin:"",padding:"",border:"Width"},(function(t,e){A.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+ft[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(A.cssHooks[t+e].set=ce)})),A.fn.extend({css:function(t,e){return Q(this,(function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=$t(t),r=e.length;a<r;a++)o[e[a]]=A.css(t,e[a],!1,i);return o}return void 0!==n?A.style(t,e,n):A.css(t,e)}),t,e,arguments.length>1)}}),A.Tween=ue,ue.prototype={constructor:ue,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||A.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(A.cssNumber[n]?"":"px")},cur:function(){var t=ue.propHooks[this.prop];return t&&t.get?t.get(this):ue.propHooks._default.get(this)},run:function(t){var e,n=ue.propHooks[this.prop];return this.options.duration?this.pos=e=A.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ue.propHooks._default.set(this),this}},ue.prototype.init.prototype=ue.prototype,ue.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=A.css(t.elem,t.prop,""))&&"auto"!==e?e:0}
vendor: 30,949 bytes, line 1
1,set:function(t){A.fx.step[t.prop]?A.fx.step[t.prop](t):1!==t.elem.nodeType||!A.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:A.style(t.elem,t.prop,t.now+t.unit)}}},ue.propHooks.scrollTop=ue.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},A.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},A.fx=ue.prototype.init,A.fx.step={};var de,he,fe=/^(?:toggle|show|hide)$/,pe=/queueHooks$/;function me(){he&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(me):n.setTimeout(me,A.fx.interval),A.fx.tick())}function ge(){return n.setTimeout((function(){de=void 0})),de=Date.now()}function ye(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=ft[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function ve(t,e,n){for(var i,r=(be.tweeners[e]||[]).concat(be.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function be(t,e,n){var i,r,o=0,a=be.prefilters.length,c=A.Deferred().always((function(){delete s.elem})),s=function(){if(r)return!1;for(var e=de||ge(),n=Math.max(0,l.startTime+l.duration-e),i=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(i);return c.notifyWith(t,[l,i,n]),i<1&&a?n:(a||c.notifyWith(t,[l,1,0]),c.resolveWith(t,[l]),!1)},l=c.promise({elem:t,props:A.extend({},e),opts:A.extend(!0,{specialEasing:{},easing:A.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||ge(),duration:n.duration,tweens:[],createTween:function(e,n){var i=A.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(i),i},stop:function(e){var n=0,i=e?l.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)l.tweens[n].run(1);return e?(c.notifyWith(t,[l,1,0]),c.resolveWith(t,[l,e])):c.rejectWith(t,[l,e]),this}}),u=l.props;for(!function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=it(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=A.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(u,l.opts.specialEasing);o<a;o++)if(i=be.prefilters[o].call(l,t,u,l.opts))return y(i.stop)&&(A._queueHooks(l.elem,l.opts.queue).stop=i.stop.bind(i)),i;return A.map(u,ve,l),y(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),A.fx.timer(A.extend(s,{elem:t,anim:l,queue:l.opts.queue})),l}A.Animation=A.extend(be,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return vt(n.elem,t,ht.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(Y);for(var n,i=0,r=t.length;i<r;i++)n=t[i],be.tweeners[n]=be.tweeners[n]||[],be.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,c,s,l,u,d="width"in e||"height"in e,h=this,f={},p=t.style,m=t.nodeType&&yt(t),g=at.get(t,"fxshow");for(i in n.queue||(null==(a=A._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,c=a.empty.fire,a.empty.fire=function(){a.unqueued||c()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,A.queue(t,"fx").length||a.empty.fire()}))}))),e)if(r=e[i],fe.test(r)){if(delete e[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||A.style(t,i)}if((s=!A.isEmptyObject(e))||!A.isEmptyObject(f))for(i in d&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=g&&g.display)&&(l=at.get(t,"display")),"none"===(u=A.css(t,"display"))&&(l?u=l:(_t([t],!0),l=t.style.display||l,u=A.css(t,"display"),_t([t]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===A.css(t,"float")&&(s||(h.done((function(){p.display=l})),null==l&&(u=p.display,l="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),s=!1,f)s||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:l}),o&&(g.hidden=!m),m&&_t([t],!0),h.done((function(){for(i in m||_t([t]),at.remove(t,"fxshow"),f)A.style(t,i,f[i])}))),s=ve(m?g[i]:0,i,h),i in g||(g[i]=s.start,m&&(s.end=s.start,s.start=0))}],prefilter:function(t,e){e?be.prefilters.unshift(t):be.prefilters.push(t)}}),A.speed=function(t,e,n){var i=t&&"object"==typeof t?A.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return A.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in A.fx.speeds?i.duration=A.fx.speeds[i.duration]:i.duration=A.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&A.dequeue(this,i.queue)},i},A.fn.extend({fadeTo:function(t,e,n,i){return this.filter(yt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=A.isEmptyObject(t),o=A.speed(e,n,i),a=function(){var e=be(this,A.extend({},t),o);(r||at.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=A.timers,a=at.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&pe.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||A.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=at.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=A.timers,a=i?i.length:0;for(n.finish=!0,A.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),A.each(["toggle","show","hide"],(function(t,e){var n=A.fn[e];A.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,i,r)}})),A.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){A.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),A.timers=[],A.fx.tick=function(){var t,e=0,n=A.timers;for(de=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||A.fx.stop(),de=void 0},A.fx.timer=function(t){A.timers.push(t),A.fx.start()},A.fx.interval=13,A.fx.start=function(){he||(he=!0,me())},A.fx.stop=function(){he=null},A.fx.speeds={slow:600,fast:200,_default:400},A.fn.delay=function(t,e){return t=A.fx&&A.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}}))},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var xe,_e=A.expr.attrHandle;A.fn.extend({attr:function(t,e){return Q(this,A.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){A.removeAttr(this,t)}))}}),A.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?A.prop(t,e,n):(1===o&&A.isXMLDoc(t)||(r=A.attrHooks[e.toLowerCase()]||(A.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void A.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=A.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&L(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(Y);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?A.removeAttr(t,n):t.setAttribute(n,n),n}},A.each(A.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=_e[e]||A.find.attr;_e[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=_e[a],_e[a]=r,r=null!=n(t,e,i)?a:null,_e[a]=o),r}}));var Se=/^(?:input|select|textarea|button)$/i,we=/^(?:a|area)$/i;function Ae(t){return(t.match(Y)||[]).join(" ")}function Ee(t){return t.getAttribute&&t.getAttribute("class")||""}function Le(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Y)||[]}A.fn.extend({prop:function(t,e){return Q(this,A.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[A.propFix[t]||t]}))}}),A.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&A.isXMLDoc(t)||(e=A.propFix[e]||e,r=A.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=A.find.attr(t,"tabindex");return e?parseInt(e,10):Se.test(t.nodeName)||we.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(A.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){A.propFix[this.toLowerCase()]=this})),A.fn.extend({addClass:function(t){var e,n,i,r,o,a;return y(t)?this.each((function(e){A(this).addClass(t.call(this,e,Ee(this)))})):(e=Le(t)).length?this.each((function(){if(i=Ee(this),n=1===this.nodeType&&" "+Ae(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=Ae(n),i!==a&&this.setAttribute("class",a)}})):this},removeClass:function(t){var e,n,i,r,o,a;return y(t)?this.each((function(e){A(this).removeClass(t.call(this,e,Ee(this)))})):arguments.length?(e=Le(t)).length?this.each((function(){if(i=Ee(this),n=1===this.nodeType&&" "+Ae(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=Ae(n),i!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,o,a=typeof t,c="string"===a||Array.isArray(t);return y(t)?this.each((function(n){A(this).toggleClass(t.call(this,n,Ee(this),e),e)})):"boolean"==typeof e&&c?e?this.addClass(t):this.removeClass(t):(n=Le(t),this.each((function(){if(c)for(o=A(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==t&&"boolean"!==a||((i=Ee(this))&&at.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Ae(Ee(n))+" ").indexOf(e)>-1)return!0;return!1}});var ke=/\r/g;A.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=y(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,A(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=A.map(r,(function(t){return null==t?"":t+""}))),(e=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=A.valHooks[r.type]||A.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(ke,""):null==n?"":n:void 0}}),A.extend({valHooks:{option:{get:function(t){var e=A.find.attr(t,"value");return null!=e?e:Ae(A.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,c=a?null:[],s=a?o+1:r.length;for(i=o<0?s:a?o:0;i<s;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!L(n.parentNode,"optgroup"))){if(e=A(n).val(),a)return e;c.push(e)}return c},set:function(t,e){for(var n,i,r=t.options,o=A.makeArray(e),a=r.length;a--;)((i=r[a]).selected=A.inArray(A.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),A.each(["radio","checkbox"],(function(){A.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=A.inArray(A(t).val(),e)>-1}},g.checkOn||(A.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ce=n.location,Te={guid:Date.now()},Me=/\?/;A.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=e&&e.getElementsByTagName("parsererror")[0],e&&!i||A.error("Invalid XML: "+(i?A.map(i.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var qe=/^(?:focusinfocus|focusoutblur)$/,Ie=function(t){t.stopPropagation()};A.extend(A.event,{trigger:function(t,e,i,r){var o,a,c,s,l,u,d,h,p=[i||b],m=f.call(t,"type")?t.type:t,g=f.call(t,"namespace")?t.namespace.split("."):[];if(a=h=c=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!qe.test(m+A.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),l=m.indexOf(":")<0&&"on"+m,(t=t[A.expando]?t:new A.Event(m,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:A.makeArray(e,[t]),d=A.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(i,e))){if(!r&&!d.noBubble&&!v(i)){for(s=d.delegateType||m,qe.test(s+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),c=a;c===(i.ownerDocument||b)&&p.push(c.defaultView||c.parentWindow||n)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?s:d.bindType||m,(u=(at.get(a,"events")||Object.create(null))[t.type]&&at.get(a,"handle"))&&u.apply(a,e),(u=l&&a[l])&&u.apply&&rt(a)&&(t.result=u.apply(a,e),!1===t.result&&t.preventDefault());return t.type=m,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),e)||!rt(i)||l&&y(i[m])&&!v(i)&&((c=i[l])&&(i[l]=null),A.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Ie),i[m](),t.isPropagationStopped()&&h.removeEventListener(m,Ie),A.event.triggered=void 0,c&&(i[l]=c)),t.result}},simulate:function(t,e,n){var i=A.extend(new A.Event,n,{type:t,isSimulated:!0});A.event.trigger(i,null,e)}}),A.fn.extend({trigger:function(t,e){return this.each((function(){A.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return A.event.trigger(t,e,n,!0)}});var Oe=/\[\]$/,Pe=/\r?\n/g,Ne=/^(?:submit|button|image|reset|file)$/i,De=/^(?:input|select|textarea|keygen)/i;function Be(t,e,n,i){var r;if(Array.isArray(e))A.each(e,(function(e,r){n||Oe.test(t)?i(t,r):Be(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==S(e))i(t,e);else for(r in e)Be(t+"["+r+"]",e[r],n,i)}A.param=function(t,e){var n,i=[],r=function(t,e){var n=y(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!A.isPlainObject(t))A.each(t,(function(){r(this.name,this.value)}));else for(n in t)Be(n,t[n],e,r);return i.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=A.prop(this,"elements");return t?A.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!A(this).is(":disabled")&&De.test(this.nodeName)&&!Ne.test(t)&&(this.checked||!At.test(t))})).map((function(t,e){var n=A(this).val();return null==n?null:Array.isArray(n)?A.map(n,(function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}})):{name:e.name,value:n.replace(Pe,"\r\n")}})).get()}});var je=/%20/g,Re=/#.*$/,He=/([?&])_=[^&]*/,ze=/^(.*?):[ \t]*([^\r\n]*)$/gm,Fe=/^(?:GET|HEAD)$/,Ge=/^\/\//,We={},Ue={},Ye="*/".concat("*"),Ve=b.createElement("a");function Xe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(Y)||[];if(y(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function $e(t,e,n,i){var r={},o=t===Ue;function a(c){var s;return r[c]=!0,A.each(t[c]||[],(function(t,c){var l=c(e,n,i);return"string"!=typeof l||o||r[l]?o?!(s=l):void 0:(e.dataTypes.unshift(l),a(l),!1)})),s}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Ke(t,e){var n,i,r=A.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&A.extend(!0,t,i),t}Ve.href=Ce.href,A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ce.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ce.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ye,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ke(Ke(t,A.ajaxSettings),e):Ke(A.ajaxSettings,t)},ajaxPrefilter:Xe(We),ajaxTransport:Xe(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,o,a,c,s,l,u,d,h,f=A.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?A(p):A.event,g=A.Deferred(),y=A.Callbacks("once memory"),v=f.statusCode||{},x={},_={},S="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(l){if(!a)for(a={};e=ze.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,e){return null==l&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==l&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)w.always(t[w.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||S;return i&&i.abort(e),E(0,e),this}};if(g.promise(w),f.url=((t||f.url||Ce.href)+"").replace(Ge,Ce.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Y)||[""],null==f.crossDomain){s=b.createElement("a");try{s.href=f.url,s.href=s.href,f.crossDomain=Ve.protocol+"//"+Ve.host!=s.protocol+"//"+s.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=A.param(f.data,f.traditional)),$e(We,f,e,w),l)return w;for(d in(u=A.event&&f.global)&&0==A.active++&&A.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Fe.test(f.type),r=f.url.replace(Re,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(je,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Me.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(He,"$1"),h=(Me.test(r)?"&":"?")+"_="+Te.guid+++h),f.url=r+h),f.ifModified&&(A.lastModified[r]&&w.setRequestHeader("If-Modified-Since",A.lastModified[r]),A.etag[r]&&w.setRequestHeader("If-None-Match",A.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ye+"; q=0.01":""):f.accepts["*"]),f.headers)w.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,w,f)||l))return w.abort();if(S="abort",y.add(f.complete),w.done(f.success),w.fail(f.error),i=$e(Ue,f,e,w)){if(w.readyState=1,u&&m.trigger("ajaxSend",[w,f]),l)return w;f.async&&f.timeout>0&&(c=n.setTimeout((function(){w.abort("timeout")}),f.timeout));try{l=!1,i.send(x,E)}catch(t){if(l)throw t;E(-1,t)}}else E(-1,"No Transport");function E(t,e,a,s){var d,h,b,x,_,S=e;l||(l=!0,c&&n.clearTimeout(c),i=void 0,o=s||"",w.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(x=function(t,e,n){for(var i,r,o,a,c=t.contents,s=t.dataTypes;"*"===s[0];)s.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in c)if(c[r]&&c[r].test(i)){s.unshift(r);break}if(s[0]in n)o=s[0];else{for(r in n){if(!s[0]||t.converters[r+" "+s[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==s[0]&&s.unshift(o),n[o]}(f,w,a)),!d&&A.inArray("script",f.dataTypes)>-1&&A.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(t,e,n,i){var r,o,a,c,s,l={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!s&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),s=o,o=u.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(!(a=l[s+" "+o]||l["* "+o]))for(r in l)if((c=r.split(" "))[1]===o&&(a=l[s+" "+c[0]]||l["* "+c[0]])){!0===a?a=l[r]:!0!==l[r]&&(o=c[0],u.unshift(c[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+s+" to "+o}}}return{state:"success",data:e}}(f,x,w,d),d?(f.ifModified&&((_=w.getResponseHeader("Last-Modified"))&&(A.lastModified[r]=_),(_=w.getResponseHeader("etag"))&&(A.etag[r]=_)),204===t||"HEAD"===f.type?S="nocontent":304===t?S="notmodified":(S=x.state,h=x.data,d=!(b=x.error))):(b=S,!t&&S||(S="error",t<0&&(t=0))),w.status=t,w.statusText=(e||S)+"",d?g.resolveWith(p,[h,S,w]):g.rejectWith(p,[w,S,b]),w.statusCode(v),v=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[w,f,d?h:b]),y.fireWith(p,[w,S]),u&&(m.trigger("ajaxComplete",[w,f]),--A.active||A.event.trigger("ajaxStop")))}return w},getJSON:function(t,e,n){return A.get(t,e,n,"json")},getScript:function(t,e){return A.get(t,void 0,e,"script")}}),A.each(["get","post"],(function(t,e){A[e]=function(t,n,i,r){return y(n)&&(r=r||i,i=n,n=void 0),A.ajax(A.extend({url:t,type:e,dataType:r,data:n,success:i},A.isPlainObject(t)&&t))}})),A.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),A._evalUrl=function(t,e,n){return A.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){A.globalEval(t,e,n)}})},A.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=A(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return y(t)?this.each((function(e){A(this).wrapInner(t.call(this,e))})):this.each((function(){var e=A(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){A(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){A(this).replaceWith(this.childNodes)})),this}}),A.expr.pseudos.hidden=function(t){return!A.expr.pseudos.visible(t)},A.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ze=A.ajaxSettings.xhr();g.cors=!!Ze&&"withCredentials"in Ze,g.ajax=Ze=!!Ze,A.ajaxTransport((function(t){var e,i;if(g.cors||Ze&&!t.crossDomain)return{send:function(r,o){var a,c=t.xhr();if(c.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)c[a]=t.xhrFields[a];for(a in t.mimeType&&c.overrideMimeType&&c.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)c.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=i=c.onload=c.onerror=c.onabort=c.ontimeout=c.onreadystatechange=null,"abort"===t?c.abort():"error"===t?"number"!=typeof c.status?o(0,"error"):o(c.status,c.statusText):o(Je[c.status]||c.status,c.statusText,"text"!==(c.responseType||"text")||"string"!=typeof c.responseText?{binary:c.response}:{text:c.responseText},c.getAllResponseHeaders()))}},c.onload=e(),i=c.onerror=c.ontimeout=e("error"),void 0!==c.onabort?c.onabort=i:c.onreadystatechange=function(){4===c.readyState&&n.setTimeout((function(){e&&i()}))},e=e("abort");try{c.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),A.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return A.globalEval(t),t}}}),A.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),A.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=A("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Qe,tn=[],en=/(=)\?(?=&|$)|\?\?/;A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=tn.pop()||A.expando+"_"+Te.guid++;return this[t]=!0,t}}),A.ajaxPrefilter("json jsonp",(function(t,e,i){var r,o,a,c=!1!==t.jsonp&&(en.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&en.test(t.data)&&"data");if(c||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,c?t[c]=t[c].replace(en,"$1"+r):!1!==t.jsonp&&(t.url+=(Me.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||A.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=n[r],n[r]=function(){a=arguments},i.always((function(){void 0===o?A(n).removeProp(r):n[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,tn.push(r)),a&&y(o)&&o(a[0]),a=o=void 0})),"script"})),g.createHTMLDocument=((Qe=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Qe.childNodes.length),A.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((i=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(i)):e=b),o=!n&&[],(r=R.exec(t))?[e.createElement(r[1])]:(r=qt([t],e,o),o&&o.length&&A(o).remove(),A.merge([],r.childNodes)));var i,r,o},A.fn.load=function(t,e,n){var i,r,o,a=this,c=t.indexOf(" ");return c>-1&&(i=Ae(t.slice(c)),t=t.slice(0,c)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&A.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(i?A("<div>").append(A.parseHTML(t)).find(i):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},A.expr.pseudos.animated=function(t){return A.grep(A.timers,(function(e){return t===e.elem})).length},A.offset={setOffset:function(t,e,n){var i,r,o,a,c,s,l=A.css(t,"position"),u=A(t),d={};"static"===l&&(t.style.position="relative"),c=u.offset(),o=A.css(t,"top"),s=A.css(t,"left"),("absolute"===l||"fixed"===l)&&(o+s).indexOf("auto")>-1?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(s)||0),y(e)&&(e=e.call(t,n,A.extend({},c))),null!=e.top&&(d.top=e.top-c.top+a),null!=e.left&&(d.left=e.left-c.left+r),"using"in e?e.using.call(t,d):u.css(d)}},A.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){A.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===A.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===A.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=A(t).offset()).top+=A.css(t,"borderTopWidth",!0),r.left+=A.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-A.css(i,"marginTop",!0),left:e.left-r.left-A.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===A.css(t,"position");)t=t.offsetParent;return t||pt}))}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;A.fn[t]=function(i){return Q(this,(function(t,i,r){var o;if(v(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),A.each(["top","left"],(function(t,e){A.cssHooks[e]=Qt(g.pixelPosition,(function(t,n){if(n)return n=Zt(t,e),Vt.test(n)?A(t).position()[e]+"px":n}))})),A.each({Height:"height",Width:"width"},(function(t,e){A.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){A.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),c=n||(!0===r||!0===o?"margin":"border");return Q(this,(function(e,n,r){var o;return v(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?A.css(e,n,c):A.style(e,n,r,c)}),e,a?r:void 0,a)}}))})),A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){A.fn[e]=function(t){return this.on(e,t)}})),A.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),A.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){A.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var nn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;A.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return i=c.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(c.call(arguments)))}).guid=t.guid=t.guid||A.guid++,r},A.holdReady=function(t){t?A.readyWait++:A.ready(!0)},A.isArray=Array.isArray,A.parseJSON=JSON.parse,A.nodeName=L,A.isFunction=y,A.isWindow=v,A.camelCase=it,A.type=S,A.now=Date.now,A.isNumeric=function(t){var e=A.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},A.trim=function(t){return null==t?"":(t+"").replace(nn,"$1")},void 0===(i=function(){return A}.apply(e,[]))||(t.exports=i);var rn=n.jQuery,on=n.$;return A.noConflict=function(t){return n.$===A&&(n.$=on),t&&n.jQuery===A&&(n.jQuery=rn),A},void 0===r&&(n.jQuery=n.$=A),A}))},function(t,e){var n=["couponcode","srccode","src"],i=function(){var t=window.location.href,e=window.location.search.substring(1);document.querySelectorAll(".dynamicContainer").length&&e.length>
10&&(!function(t,e,i){t.forEach((function(a){if(a.getAttribute("href").includes("~TOTALPARAMS")){var c=a.getAttribute("href").replace("~TOTALPARAMS",function(t){var e=/<[^>]*>|script|onerror|onload|javascript:/i,n=[];return r(t).split("&").forEach((function(t){!e.test(t)&&/^[a-zA-Z0-9=]+$/.test(t)&&n.push(t)})),n.length>0?n.join("&"):"~TOTALPARAMS"}(e));a.setAttribute("href",c)}else i.includes("/us/en/personal-banking/")&&a.getAttribute("href").includes("~DYNAMICPARAM")&&e.split("&").forEach((function(e){if(n.indexOf(e.split("=")[0])>-1){var i=e.split("=");return function(t,e){e[1].split("-").forEach((function(n,i){t.forEach((function(t){if(t.getAttribute("href").includes("".concat("~DYNAMICPARAM"+(i+1)))){var a="".concat(e[0]+"="+(o(r(n))?r(n):"")),c=t.getAttribute("href").replace("".concat("~DYNAMICPARAM"+(i+1)),a);t.setAttribute("href",c)}}))}))}(t,i),!1}}))}))}(document.querySelectorAll(".dynamicContainer a"),e,t),t.includes("/us/en/personal-banking/")&&document.querySelectorAll(".dynamicContainer .card-12-3-bundle").length&&function(t,e){t.forEach((function(t){null!==t.querySelector(".cmp-card-bundle-12-3-a-b-c").getAttribute("data-baseurl").includes("~DYNAMICPARAM")&&function(t,e,i){i.split("&").forEach((function(i){if(n.indexOf(i.split("=")[0])>-1){var a=i.split("=");return a[1].split("-").forEach((function(n,i){if(t.getAttribute("data-baseurl").includes("".concat("~DYNAMICPARAM"+(i+1)))){var c="".concat(a[0]+"="+(o(r(n))?r(n):"")),s=t.getAttribute("data-baseurl").replace("".concat("~DYNAMICPARAM"+(i+1)),c);t.setAttribute("data-baseurl",s),function(t,e,n,i){t.querySelectorAll(".cmp-card-bundle-12-3-a-b-c__product input").forEach((function(t){t.addEventListener("click",(function(){e.setAttribute("href",e.getAttribute("href").replace("".concat("~DYNAMICPARAM"+(n+1)),i))}))}))}(t,e,i,c)}})),!1}}))}(t.querySelector(".cmp-card-bundle-12-3-a-b-c"),t.querySelector(".cmp-card-bundle-12-3-1-b-c__ctaBtn .cmp-button"),e)}))}(document.querySelectorAll(".dynamicContainer .card-12-3-bundle"),e))};function r(t){try{return decodeURIComponent(t)}catch(e){return t}}function o(t){return/^\d+$/.test(t)}"loading"!==document.readyState?i():window.addEventListener("DOMContentLoaded",(function(){i()}))},function(t,e,n){"use strict";var i,r,o,a,c=n(5),s=n(0),l=n(35),u=n(8),d=n(21),h=n(23),f=n(3),p=window.location.href;function m(){var t=JSON.parse(window.ratesAPIInfo);0!==t.rates.length&&(null!==c.a.cookieGetItem(s.w)&&p.includes("/us/")||p.includes("/ca/"))&&(a=t.rates.length,t.rates.forEac
1h((function(t){1===t.urls.length?function(t){t.productNames?r={akaNames:t.productNames}:t.additionalParams&&(r=g(t.additionalParams));p.includes("/us/")&&(r[s.w]=c.a.cookieGetItem(s.w));Object(f.a)(t.urls,"POST",v,b,r,t)}(t):function(t){t.additionalParams,r={},t.source==s.D?o="locPropertyTypeDetails":(t.source==s.B||t.source==s.y)&&(o="propertyTypeDetails");Object(f.a)(t.urls[0],"GET",y,b,r,t,o)}(t)})))}function g(t){i={};for(var e=0;e<t.length;++e)i[t[e].key]=t[e].value;return i}function y(t,e,n){(r=g(e.additionalParams)).productName=JSON.stringify(e.productNames),r[n]=t[n],p.includes("/us/")&&(r[s.w]=c.a.cookieGetItem(s.w)),Object(f.a)(e.urls[1],"POST",v,b,r,e)}function v(t,e){a--,e.source.startsWith(s.E)||e.source.startsWith(s.F)?u.a.getRatesResponse(e.source,t):d.a.getProductsResponse(e.source,t),e.source!==s.H&&e.source!==s.G||h.a.getRatesResponse(e.source,t),e.source===s.y&&u.a.getRatesResponse(s.z,t),0==a&&Object(l.a)()}function b(t){0==--a&&Object(l.a)(),console.log(t)}"loading"!==document.readyState?m():document.addEventListener("DOMContentLoaded",m)},function(t,e,n){"use strict";var i=function(){var t=document.querySelectorAll(".cmp-accordion");t&&t.length>0&&t.forEach((function(t){t.querySelectorAll(".cmp-accordion__panel .cmp-accordion").length>0&&(r(t.querySelector(".cmp-accordion__item")),function(t){t.querySelectorAll(".cmp-accordion__header").forEach((function(t){["click","keyup"].forEach((function(e){t.addEventListener(e,(function(t){"click"!==t.type&&13!==t.keyCode&&32!==t.keyCode||r(t.currentTarget.parentElement)}))}))}))}(t))})),window.tms_tag=window.tms_tag||[];var e=document.querySelectorAll(".cmp-accordion--astext, .cmp-accordion--asbutton");e.forEach((function(t){t.querySelector('[data-cmp-datalayer-flag="true"]')&&t.querySelectorAll(".cmp-accordion__item").forEach((function(t){var e=t.querySelector(".cmp-accordion__button");e.addEventListener("pointerdown",(function(){var t;if(e.classList.contains("cmp-accordion__button--expanded")){var n=e.querySelector(".hide");t=n?n.innerText:""}else{var i=e.querySelector(".show");t=i?i.innerText:""}tms_tag.push({event:"linkClick",link:{name:t,type:"button",product:""}})}))}))})),e.forEach((function(t){t.querySelectorAll(".cmp-accordion__item").forEach((function(t){var e,n,i=t.querySelector(".cmp-accordion__button");null===(e=i.querySelector(".show"))||void 0===e||e.setAttribute("aria-hidden","true"),null===(n=i.querySelector(".hide"))||void 0===n||n.setAttribute("aria-hidden","true"),setTimeout((function(){o(i)}),1e3),["click","keyup"].forEach((function(t){i.addEventListener(t,c)}))}))}))};function r(t){var e,n,i=t.querySelectorAll(".cmp-accordion__panel .cmp-accordion .cmp-accordion__button");null!==t.getAttribute("data-cmp-expanded")||""===(null===(e=t.parentElement.parentElement.closest(".cmp-accordion .cmp-accordion__item"))||void 0===e?void 0:e.getAttribute("data-cmp-expanded"))||void 0!==(null===(n=t.parentElement.parentElement.closest(".cmp-accordion .cmp-accordion__item"))||void 0===n?void 0:n.getAttribute("data-cmp-expanded"))?i.forEach((function(t){t.removeAttribute("tabindex")})):i.forEach((function(t){t.setAttribute("tabindex","-1")}))}function o(t){var e=t.classList.contains("cmp-accordion__button--expanded");t.setAttribute("aria-expanded",e?"true":"false"),function(t){if(null!==t.parentElement.closest(".cmp-accordion__item").parentElement.getAttribute("data-cmp-single-expansion")){t.parentElement.closest(".cmp-accordion__item").parentElement.querySelectorAll(".cmp-accordion__button").forEach((function(t){var e=t.classList.contains("cmp-accordion__button--expanded");a(t,e)}))}}(t),a(t,e)}function a(t,e){var n="",i=navigator.userAgent,r=/iPad|iPhone|iPod/.test(i)&&!window.MSStream,o=t.querySelector(".show"),a=t.querySelector(".hide");n=o&&a?e?a.textContent:o.textContent:t.textContent;var c=e?"expanded":"collapsed";r?t.setAttribute("aria-label",c+", "+n.trim()):t.setAttribute("aria-label",n.trim())}function c(t){var e=this;"click"!==t.type&&13!==t.keyCode&&32!==t.keyCode||setTimeout((function(){o(e)}),100)}var s=function(){i()};"loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",(function(){s()}))},function(t,e){},function(t,e,n){"use strict";var i=n(0);function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}document.addEventListener("DOMContentLoaded",(function(){r(document.getElementsByClassName("cmp-button--app-deeplink")).forEac
1h((function(t){!function(t){var e=!0,n=!1,r=!1,o=[/Android/i,/iPhone/i].some((function(t){return navigator.userAgent.match(t)})),a=new function(t){if(!t)throw new Error("no options");function i(){e=!1}function o(t){"hidden"===t.target.visibilityState&&(n=!0)}function a(){navigator.userAgent.match(/iPhone/i)&&(n?(t.onReturn&&t.onReturn(),n=!1):!e&&t.onFallback&&r&&setTimeout((function(){n||(t.onFallback(),r=!1)}),1800)),e=!0}function c(){[[window,"blur",i],[document,"visibilitychange",o],[window,"focus",a]].forEach((function(t){t[0].addEventListener(t[1],t[2])}))}c(),this.destroy=c.bind(null,"remove"),this.openURL=function(n){setTimeout((function(){e&&t.onIgnored&&navigator.userAgent.match(/Android/i)&&r&&(t.onIgnored(),r=!1)}),500),window.location=n}}({onIgnored:function(){window.location=t.getAttribute("data-playstore-app-url")},onFallback:function(){window.location=t.getAttribute("data-appstore-app-url")},onReturn:function(){e=!0}});t.addEventListener("click",(function(e){e.preventDefault(),r=!0;var n=window.innerWidth>0?window.innerWidth:screen.width;o&&n<i.l.SM?a.openURL(t.getAttribute("data-deeplink-url")):window.location=t.getAttribute("data-other-devices-app-url")}))}(t)}))}))},function(t,e){},function(t,e){},function(t,e,n){"use strict";var i=n(0),r=n(2),o=n(15),a=n(28),c=function(){var t="cmp-primary-header",e="No matching content found",n="See All Results";function c(){var c=document.querySelector(".".concat(t,"-desktop")),s=c.querySelectorAll(".".concat(t,"__menu-item")),l=c.querySelectorAll(".".concat(t,"__sub-menu-item")),u=Array.from(c.querySelectorAll(".cmp-primary-header-secondary-level-menu-item")).pop(),d=c.querySelector("#primaryHeaderIntellAPIdata");console.log(d,"apiHiddenField");var h="";d&&Object(r.h)(d.value)&&(h=JSON.parse(d.value));var f=""==h?{}:h,p=f.mbApiURL,m=f.clientID,g=f.buttonUrl,y=f.searchCategories,v=f.predictiveSearchErrorMessage,b=f.seeAllResultsLabelText,x=f.predictiveSearchLabelText,_=f.recentSearchLabelText,S=f.searchsuggestiontabsLabelText,w=f.searchclosebtnLabelText,A=f.PredictiveErrormsgsecondLine,E=f.RecentVisitsLabelText,L=f.searchPageIconList;function k(t){void 0!==t.keyCode&&t.keyCode===i.m.TAB&&H()}function C(t){null===t.target.closest("nav")&&R()}function T(e){e&&(e.classList.contains("show-sub-menu")?function(t){t.classList.remove("show-sub-menu"),t.querySelector("a").setAttribute("aria-expanded","false")}(e):e.querySelector(".".concat(t,"__sub-menu"))&&j(e))}function M(e){e&&(e.classList.contains("show-nested-sub-menu")?function(t){t.classList.remove("show-nested-sub-menu"),t.querySelector("a").setAttribute("aria-expanded","false")}(e):e.querySelector(".".concat(t,"-secondary-level-menu-item"))&&(R(),e.classList.add("show-nested-sub-menu")))}function q(t){T(t.target.closest(".cmp-primary-header__menu-item"))}function I(t){M(t.target.closest(".cmp-primary-header__sub-menu-item"))}function O(t){void 0!==t.keyCode&&(t.keyCode===i.m.ESCAPE&&R(),t.keyCode===i.m.SPACE&&T(t.target.closest(".cmp-primary-header__menu-item")))}function P(t){void 0!==t.keyCode&&(t.keyCode===i.m.ESCAPE&&H(),t.keyCode===i.m.SPACE&&M(t.target.closest(".cmp-primary-header__sub-menu-item")))}function N(e){if(e.target.querySelector(".".concat(t,"__sub-menu"))&&"mouse"===e.pointerType){j(e.target);var n=document.querySelector(".cmp-header-utility-bar-v2__region-country-dropdown-content");if(n&&!n.classList.contains("cmp-header-utility-bar-v2__hide")){n.classList.add("cmp-header-utility-bar-v2__hide");var i=document.querySelector(".cmp-header-utility-bar-v2__selectedProvince");if("true"===i.getAttribute("aria-expanded")){i.setAttribute("aria-expanded",!1);var r=i.getElementsByClassName("dropdown-collapsed"),o=i.getElementsByClassName("dropdown-expanded");Array.from(r).forEach((function(t){t.classList.remove("cmp-header-utility-bar-v2__hide")})),Array.from(o).forEach((function(t){t.classList.add("cmp-header-utility-bar-v2__hide")}))}}var a=document.querySelector(".cmp-header-utility-bar-v2__dropdown--content--language");if(a&&!a.classList.contains("cmp-header-utility-bar-v2__hide")){a.classList.add("cmp-header-utility-bar-v2__hide");var c=document.querySelector(".cmp-header-utility-bar-v2__selectedLanguageValue");if("true"===c.getAttribute("aria-expanded")){c.setAttribute("aria-expanded",!1);var s=c.getElementsByClassName("dropdown-collapsed"),l=c.getElementsByClassName("dropdown-expanded");
1Array.from(s).forEach((function(t){t.classList.remove("cmp-header-utility-bar-v2__hide")})),Array.from(l).forEach((function(t){t.classList.add("cmp-header-utility-bar-v2__hide")}))}}var u=document.querySelector(".cmp-header-utility-bar-v2__dropdown--content--country");if(u&&!u.classList.contains("cmp-header-utility-bar-v2__hide")){u.classList.add("cmp-header-utility-bar-v2__hide");var d=document.querySelector(".cmp-header-utility-bar-v2__selectedCountry");if("true"===d.getAttribute("aria-expanded")){d.setAttribute("aria-expanded",!1);var h=d.getElementsByClassName("dropdown-collapsed"),f=d.getElementsByClassName("dropdown-expanded");Array.from(h).forEach((function(t){t.classList.remove("cmp-header-utility-bar-v2__hide")})),Array.from(f).forEach((function(t){t.classList.add("cmp-header-utility-bar-v2__hide")}))}}}}function D(t){"mouse"===t.pointerType&&R()}function B(t){"mouse"===t.pointerType&&H()}function j(t){R(),t.classList.add("show-sub-menu"),t.querySelector("a").setAttribute("aria-expanded","true")}function R(){c.querySelectorAll(".".concat(t,"__menu-item.show-sub-menu")).forEach((function(t){t.classList.remove("show-sub-menu"),t.querySelector("a").setAttribute("aria-expanded","false")}))}function H(){c.querySelectorAll(".".concat(t,"__sub-menu-item.show-nested-sub-menu")).forEach((function(t){t.classList.remove("show-nested-sub-menu"),t.querySelector("a").setAttribute("aria-expanded","false")}))}e=v,n=b;var z=document.querySelector(".cmp-primary-header").querySelector(".cmp-primary-header_left").querySelectorAll(".cmp-primary-header__sub-menu li");if(z&&z.forEach((function(t){if(t.getAttribute("data-site-nav")&&"active"===t.getAttribute("data-site-nav")){var e=t.parentElement.parentElement,n=e.querySelector(".cmp-primary-header__menu-link");e.classList.add("active"),i=n,(r=document.createElement("span")).textContent="Selected",r.classList.add("visually-hidden"),i.appendChild(r)}var i,r})),null!==document.querySelector(".cmp-primary-header__search")){var F=function(){X.setAttribute("aria-hidden",!0),$.setAttribute("aria-hidden",!0),K.style.display="block",!0,U.focus(),V.style.display="block",Z.forEach((function(t){t.setAttribute("tabindex","-1")})),null!==et&&(J.value=et),setTimeout((function(){J.focus()}),500)},G=function(){X.setAttribute("aria-hidden",!1),$.setAttribute("aria-hidden",!1),K.style.display="none",Y.focus(),J&&(J.value=""),Object(r.b)(Q,!0,!1),Z.forEach((function(t){t.removeAttribute("tabindex")}))},W=document.querySelector(".cmp-primary-header"),U=document.querySelector(".cmp-primary-header__search"),Y=U.querySelector(".cmp-primary-header__menu-link"),V=document.querySelector(".cmp-primary-header__close-button"),X=W.querySelector(".cmp-primary-header_left"),$=W.querySelector(".cmp-primary-header_right"),K=W.querySelector(".cmp-primary-header__search-container"),J=W.querySelector(".cmp-primary-header__search-input"),Z=W.querySelectorAll(".cmp-primary-header__menu-link"),Q=W.querySelector(".cmp-primary-header__suggestion-dropdown"),tt=W.querySelector(".cmp-primary-header__search-submit"),et=new URLSearchParams(window.location.search).get("query");Y.onclick=function(){return!1},U.addEventListener("click",F),null!==et&&F(),J&&J.addEventListener("keydown",(function(t){t.shiftKey&&9==t.keyCode&&Q&&(Q.style.display="none")})),Object(a.a)(p,m,5,geoLocationLang,J,"cmp-primary-header__suggestion-dropdown","cmp-primary-header__close-button",r.i,g,y,e,n,tt,x,_,S,w,!1,A,E,L),V.addEventListener("click",(function(){G()})),V.addEventListener("keydown",(function(t){t.keyCode!==i.m.TAB||t.shiftKey||G()}))}var nt,it=c.querySelector(".".concat(t)),rt=it.querySelector(".".concat(t,"__profile")),ot=it.querySelector(".".concat(t,"__logout"));if(null!==(rt&&ot)){var at=function(t){t&&(rt.classList.remove("hidden"),ot.classList.remove("hidden"),null!==ct&&ct.classList.add("hidden"))},ct=it.querySelector(".".concat(t,"__login"));at(o.a.registerLoginStateCallBack(at))}nt=document.querySelector("body"),u&&u.addEventListener("keydown",k),s.forEach((function(t){var e=t.querySelector(".cmp-primary-header__menu-link");e&&e.addEventListener("focus",R),t.addEventListener("keydown",O),t.addEventListener("click",q),t.addEventListener("pointerenter",N),t.addEventListener("pointerleave",D),t.addEventListener("hover",
1N)})),l.forEach((function(t){var e=t.querySelector(".cmp-primary-header__sub-menu-link");e&&e.addEventListener("focus",H),t.addEventListener("keydown",P),t.addEventListener("click",I),t.addEventListener("pointerleave",B)})),nt.addEventListener("touchstart",C)}return{init:function(){var e=document.querySelectorAll(".".concat(t,':not([data-component-state="initialized"])'));e.length>0&&e.forEach((function(t){document.querySelector(".cmp-primary-header-desktop")&&(c(),t.setAttribute("data-component-state","initialized"))}))}}}();"loading"!==document.readyState?c().init():document.addEventListener("DOMContentLoaded",c.init)},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var i=n(0),r=n(1),o=n(50),a=function(){!function(){var t="",e="";if(document.querySelector(".cmp-leadership--modal")){t=document.querySelector(".cmp-leadership--modal").parentElement.closest(".cmp-dialog__details").parentElement;var n=document.getElementById("tdleadership");e=n.querySelector(".close-modal.close-modal-button")}o(".leadership-link").click((function(){document.querySelector(".cmp-leadership--modal")&&t.previousElementSibling.focus();var n=o(this).attr("href").split("~").pop(),a=document.querySelectorAll(".cmp-leadership--modal"),c=document.querySelectorAll(".cmp-leadership-modal--previous"),s=document.querySelectorAll(".cmp-leadership-modal--next");a.forEach((function(t){t.classList.add("hidden"),r.g.onClassChangeEventListener(t,(function(e){r.g.compLazyImgRedraw(t)}))}));for(var l=o(this).closest("ul").attr("id"),u=document.getElementById(l).getElementsByTagName("a"),d=[],h=function(){var t=u[f].getAttribute("href").split("~").pop();d.push(t);for(var r=0;r<a.length;r++){var o=a[r].id;o===t&&(c[r].addEventListener("click",(function(e){_(t)})),c[r].addEventListener("keyup",(function(e){e.keyCode!==i.m.ENTER&&e.keyCode!==i.m.SPACE||_(t),e.keyCode===i.m.TAB&&y(t)})),s[r].addEventListener("click",(function(e){S(t)})),s[r].addEventListener("keyup",(function(e){e.keyCode!==i.m.ENTER&&e.keyCode!==i.m.SPACE||S(t),e.keyCode===i.m.TAB&&b(t)}))),o===n?a[r].classList.remove("hidden"):a[r].classList.add("hidden"),document.querySelector(".cmp-leadership--modal")&&e.focus()}},f=0;f<u.length;f++)h();if("1"==d.length){var p=d[0];c.forEach((function(t){t.getAttribute("data-hidden-id")==p&&t.classList.add("hide-arrow")})),s.forEach((function(t){t.getAttribute("data-hidden-id")==p&&t.classList.add("hide-arrow")}))}else{var m=d[0];c.forEach((function(t){t.getAttribute("data-hidden-id")==m&&t.classList.add("hide-arrow")}));var g=d[d.length-1];s.forEach((function(t){t.getAttribute("data-hidden-id")==g&&t.classList.add("hide-arrow")}))}function y(t){0===d.indexOf(t)&&v()}function v(){var t=d[0];c.forEach((function(e){e.getAttribute("data-hidden-id")==t&&e.classList.add("hide-arrow")}))}function b(t){d.indexOf(t)===d.length-1&&x()}function x(){var t=d[d.length-1];s.forEach((function(e){e.getAttribute("data-hidden-id")==t&&e.classList.add("hide-arrow")}))}function _(t){var n,i=d.indexOf(t);0===i?(n=i,v()):n=i-1;var r=d[n];a.forEach((function(t){t.getAttribute("id")==r?t.classList.remove("hidden"):t.classList.add("hidden")})),document.querySelector(".cmp-leadership--modal")&&e.focus()}function S(t){var n,i=d.indexOf(t);i===d.length-1?(n=i,x()):n=i+1;var r=d[n];a.forEach((function(t){t.getAttribute("id")==r?t.classList.remove("hidden"):t.classList.add("hidden")})),document.querySelector(".cmp-leadership--modal")&&e.focus()}return!1}))}()};"loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",(function(){a()}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var i=function(){document.getElementById("story-timeline-tab-main-id")&&function(){var t=document.getElementById("story-timeline-tab-main-id").querySelectorAll('[href^="#cmp-modal-tab"]'),e=document.getElementById("story-business-history"),n=e.closest(".cmp-storytimeline-tabs").closest(".cmp-dialog__details").parentElement,i=document.querySelectorAll(".cmp-droplist__select"),r=document.querySelectorAll(".droplistContent"),o=document.getElementById("cmp-business-select");if(o&&o.addEventListener("change",(function(t){console.log("called",t.target.value),r.forEach((function(e){e.getAttribute("data-content-id")==t.target.value?e.classList.remove("hidden"):e.classList.add("hidden")}))}
1)),t)for(var a=function(a){t[a].addEventListener("click",(function(c){e.scrollIntoView(),n.previousElementSibling.focus();var s=t[a].getAttribute("href").split("#")[1].split("~"),l=(s.length>2?document.getElementById(s[2]):null).getAttribute("id");document.getElementById(l).click();for(var u,d=0;u=o.options[d];d++)if(u.value==l){o.selectedIndex=d,i&&r.forEach((function(t){t.getAttribute("data-content-id")==l?t.classList.remove("hidden"):t.classList.add("hidden")}));break}c.preventDefault()}))},c=0;c<t.length;c++)a(c)}()};"loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i)},function(t,e,n){"use strict";n(50);var i=function(){!function(){for(var t=document.getElementsByClassName("cmp-story-timeline-container--decade"),e=function(){var e=t[n],i=t[n].nextElementSibling.lastElementChild;setTimeout((function(){e.style.bottom=i.clientHeight-e.clientHeight+"px"}),300)},n=0;n<t.length;n++)e();if(window.innerWidth<768){var i=document.querySelectorAll(".cmp-timeline-text"),r=0;i.forEach((function(t){setTimeout((function(){r<t.clientHeight&&(r=t.clientHeight)}),400)})),setTimeout((function(){i.forEach((function(t){t.style.height=r+"px"}))}),1200)}}()};"loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i)},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var i=n(0),r=n(1);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var c=function(){var t,e=document.querySelectorAll(".cmp-offers-1-5o-table");if(e&&0!=e.length&&(t=o(e)),window.innerWidth>=i.l.SM){if(!t)return;t.forEach((function(t){var e=t.querySelector(".cmp-offers-1-5o-table__features");Object(r.e)(".cmp-offers-1-5o-table__feature--subtext",".cmp-offers-1-5o-table__features li",e.id),Object(r.e)(".cmp-offers-1-5o-table__feature--text--number",".cmp-offers-1-5o-table__features li",e.id)}))}};["load","resize"].forEach((function(t){"resize"===t?window.addEventListener(t,(function(){c()})):window.addEventListener(t,Object(r.a)((function(){c()}),500))}))},function(t,e){var n=function(){var t=document.querySelector(".cmp-banner-1-8");if(null!==t){var e=t.closest(".cmp-banner-container");null!==e&&e.classList.add("cmp-banner-1-8ac")}if(null!==t){var n=t.closest(".banner-container");null!==n&&n.classList.add("banner1-8-viewport-style")}};"loading"!==document.readyState?n():document.addEventListener("DOMContentLoaded",n)},function(t,e,n){"use strict";var i=n(0),r=n(9);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function c(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}function u(t,e){return t.get(d(t,e))}function d(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,f=new WeakSet,p=function(){return function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(n=this,i=f),i.add(n),s(this,"compName","cmp-table-with-carousel"),s(this,"slidePagination","slide-pagination"),s(this,"elem",void 0),s(this,"viewCount",0),function(t,e,n){c(t,e),e.set(t,n)}(this,h,void 0),this.elem=e}),[{key:"initialize",value:function(){var t,e,n,i=this;t=h,e=this,n=this.elem,t.set(d(t,e),n),window.addEventListener("load",(function(){u(h,i).forEac
1h((function(t,e){t.hasAttribute("data-initialized")||(d(f,i,m).call(i,t,e),d(f,i,x).call(i,t),t.setAttribute("data-initialized","true"))}))}));var r,o=u(h,this)[0].offsetWidth;window.addEventListener("resize",(function(){var t=u(h,i)[0].offsetWidth;t!==o&&(clearTimeout(r),r=setTimeout((function(){u(h,i).forEach((function(t,e){d(f,i,g).call(i,t),d(f,i,m).call(i,t,e),d(f,i,x).call(i,t)})),o=t}),200))}))}}])}();function m(t,e){var n=this,i=JSON.parse(t.getAttribute("data-table")),o=t.getAttribute("data-caption"),a=t.getAttribute("data-slide-label"),c=t.getAttribute("data-trackinglinkname");if(this.viewCount=d(f,this,v).call(this,t)-1,this.elem[e].innerHTML='\n <div class="'.concat(this.compName,'--wrapper" role="region" aria-roledescription="carousel">\n <ul class="').concat(this.slidePagination,'" role="tablist"></ul>\n ').concat(Array.from({length:Math.ceil((i.columnHeadings.length-1)/this.viewCount)}).map((function(t,e){return'\n <div class="'.concat(n.compName,'--slide">\n <table role="table">\n <caption class="screen-reader-text">').concat(o,"</caption>\n <thead>\n <tr>\n <td>").concat(i.columnHeadings[0],"</td>\n ").concat(i.columnHeadings.slice(1,i.columnHeadings.length).slice(e*n.viewCount,(e+1)*n.viewCount).map((function(t){return"\n ".concat(null!==t?'<th scope="col"><div class="cmp-text">'.concat(t,"</div></th>"):"","\n ")})).join(""),"\n </tr>\n </thead>\n <tbody>\n ").concat(i.rowContentArr.map((function(t){return'\n <tr class="'.concat(null!==t.ctaModels?"cta-models":"text",'">\n <th scope="row"><div class="cmp-text">').concat(t.rowHeading,"</div></th>\n ").concat(null!==t.colContent?t.colContent.slice(e*n.viewCount,(e+1)*n.viewCount).map((function(t){return"\n ".concat(null!==t?'<td><div class="cmp-text">'.concat(t,"</div></td>"):"","\n ")})).join(""):"","\n ").concat(null!==t.ctaModels?t.ctaModels.slice(e*n.viewCount,(e+1)*n.viewCount).map((function(t,e){var n=Math.random().toString(36).substring(2,10);return'\n <td><div class="button cmp-button--'.concat(t.style.toLowerCase(),'">\n <a id="button-').concat(n,'" role="button" class="cmp-button" href="').concat(t.url,'" target="').concat(t.targetType,'" data-cmp-clickable="" data-cmp-data-layer=\'{"button-').concat(n,'":{"@type":"core/wcm/components/button/v1/button","repo:modifyDate":"2018-12-07T12:38:48Z","dc:title":"').concat(t.label,'","xdm:linkURL":"/content/core-components-examples/library/page-authoring/button.html"}}\' data-link-type="button" data-link-text="').concat(c,'" data-product-name="">\n <span class="visually-hidden">').concat(t.altTxt,"</span>\n ").concat(""!==t.icon?'<span aria-hidden="true" class="cmp-button__icon cmp-button__icon--'.concat(t.icon,'"></span>'):"",'\n <span class="cmp-button__text">').concat(t.label,"</span>\n </a>\n </div></td>\n ")})).join(""):"","\n </tr>\n ")})).join(""),"\n </tbody>\n </table>\n </div>\n ")})).join(""),"\n </div>"),""!==t.getAttribute("data-table")&&t.querySelectorAll(".".concat(this.compName,"--slide")).length>1){t.setAttribute("data-active-slide",0),d(f,this,w).call(this,t,e),t.querySelectorAll(".".concat(this.compName,"--slide")).forEach((function(e,i){e.classList.add("".concat(n.compName,"--slide-")+i),e.setAttribute("aria-hidden","true"),e.setAttribute("role","tabpanel"),e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-labelledby","".concat(n.compName,"--slide-")+i);var r=document.createElement("li"),o=document.createElement("button");r.appendChild(o),r.setAttribute("role","presentation"),o.setAttribute("type","button"),o.setAttribute("role","tab"),o.setAttribute("tabindex","-1"),o.setAttribute("aria-label","".concat(a+" "+(i+1))),o.setAttribute("aria-controls","".concat(n.compName,"--slide-")+i),t.querySelector(".".concat(n.slidePagination)).appendChild(r)}));var s=t.querySelector(".".concat(this.compName,"--slide")),l=t.querySelector(".".concat(this.slidePagination," button"));l&&(l.classList.add("slide-nav-active"),l.setAttribute("aria-selected","true"),l.setAttribute("tabindex","0"),s.setAttribute("aria-selected","true"),s.setAttribute("aria-hidden","false"),s.setAttribute("tabindex","0")),d(f,this,y).call(this,t),d(f,this,b).call(this,t),d(f,this,A).call(this,t)}else d(f,this,y).call(this,t);d(f,this,E).call(this,t),Object(r.c)()}function g(t){t.querySelectorAll(".".concat(this.slidePagination," li")).forEac
1h((function(t){return t.querySelector("button").remove()}));var e=t.querySelectorAll(".".concat(this.compName,"--slide"));e.forEach((function(t){t.style.display="",t.removeAttribute("aria-hidden"),t.removeAttribute("tabindex"),t.removeAttribute("aria-selected"),t.removeAttribute("aria-labelledby"),t.removeAttribute("role")})),e.forEach((function(t){var e=t.cloneNode(!0);t.parentNode.replaceChild(e,t)}));var n=t.querySelector(".".concat(this.slidePagination));n&&(n.innerHTML=""),t.innerHTML=""}function y(t){var e=this;t.querySelectorAll(".".concat(this.compName,"--slide table")).forEach((function(n,i){var r=t.querySelectorAll(".".concat(e.compName,"--slide table")).length>1?i:0;n.querySelectorAll(".cta-models td").forEach((function(n,i){var o=t.querySelectorAll(".".concat(e.compName,"--slide table"))[r].querySelectorAll("thead tr th")[i].innerHTML.replace(/<[^>]*>/g,"");n.querySelector(".button a").setAttribute("data-product-name",o)}))}))}function v(t){var e=parseInt(JSON.parse(t.getAttribute("data-maxDesktopCols"),10)),n=parseInt(JSON.parse(t.getAttribute("data-maxTabletLandscapeCols"),10)),r=parseInt(JSON.parse(t.getAttribute("data-maxTabletPortraitCols"),10)),o=parseInt(JSON.parse(t.getAttribute("data-maxMobileCols"),10)),a=t.offsetWidth,c=t.offsetHeight,s=!1;return s=screen.orientation&&screen.orientation.type?screen.orientation.type.includes("landscape"):"function"==typeof window.matchMedia?window.matchMedia("(orientation: landscape)").matches:a>c,a>=i.l.LG||a>=i.l.XL?e:a>=i.l.MD?s?n:r:a>=i.l.SM?r:o}function b(t){var e=this;t.querySelectorAll(".".concat(this.slidePagination," button")).forEach((function(n,i){n.addEventListener("click",(function(r){r.preventDefault(),t.querySelectorAll(".".concat(e.slidePagination," button")).forEach((function(t){t.classList.remove("slide-nav-active"),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1")})),n.classList.add("slide-nav-active"),n.setAttribute("aria-selected","true"),n.setAttribute("tabindex","0"),t.querySelectorAll(".".concat(e.compName,"--slide")).forEach((function(t){t.style.display="none",t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t.setAttribute("aria-selected","false")}));var o=t.querySelector(".".concat(e.compName,"--slide-").concat(i));o&&(o.style.display="block",o.setAttribute("aria-hidden","false"),o.setAttribute("tabindex","0"),o.setAttribute("aria-selected","true")),t.setAttribute("data-active-slide",i)}))}))}function x(t){var e=parseInt(t.getAttribute("data-active-slide"))||0,n=t.querySelector(".".concat(this.compName,"--slide-").concat(e)),i=t.querySelector(".".concat(this.slidePagination," li:nth-child(").concat(e+1,") button"));n&&i&&(n.style.display="block",n.setAttribute("aria-hidden","false"),n.setAttribute("tabindex","0"),n.setAttribute("aria-selected","true"),i.classList.add("slide-nav-active"),i.setAttribute("aria-selected","true"),i.setAttribute("tabindex","0"))}function _(t,e){var n=t.querySelectorAll(".".concat(this.compName,"--slide")),i=t.querySelectorAll(".".concat(this.slidePagination," button"));n.forEach((function(t,n){n===e?(t.style.display="block",t.setAttribute("aria-hidden","false"),t.setAttribute("tabindex","0"),t.setAttribute("aria-selected","true")):(t.style.display="none",t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-selected","false"))})),i.forEach((function(t,n){n===e?(t.classList.add("slide-nav-active"),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0")):(t.classList.remove("slide-nav-active"),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1"))})),t.setAttribute("data-active-slide",e)}function S(t,e,n){var i=n-e;if(Math.abs(i)>50){var r=t.querySelectorAll(".".concat(this.compName,"--slide")).length,o=parseInt(t.getAttribute("data-active-slide"))||0;o=i>0?Math.min(r-1,o+1):Math.max(0,o-1),d(f,this,_).call(this,t,o)}}function w(t,e){var n=this,i=t.querySelectorAll(".".concat(this.compName,"--slide")),r=0,o=0;i.forEach((function(e){e.addEventListener("touchstart",(function(t){r=t.changedTouches[0].screenX}),{passive:!0}),e.addEventListener("touchend",(function(e){o=e.changedTouches[0].screenX,d(f,n,S).call(n,t,r,o)}),{passive:!0})}
1))}function A(t){var e=this;t.querySelectorAll(".".concat(this.slidePagination," li")).forEach((function(n,i){n.querySelector("button").addEventListener("keydown",(function(n){if("ArrowRight"===n.key||"ArrowDown"===n.key){n.preventDefault();var r=t.querySelector(".".concat(e.slidePagination," li:nth-child(").concat(i+2,") button"));r&&(r.click(),r.focus())}else if("ArrowLeft"===n.key||"ArrowUp"===n.key){n.preventDefault();var o=t.querySelector(".".concat(e.slidePagination," li:nth-child(").concat(i,") button"));o&&(o.click(),o.focus())}}))}))}function E(t){var e=this;t.querySelectorAll("table").forEach((function(n){if(t.querySelectorAll("table").length>1){var i=t.querySelectorAll("thead tr th").length+1;if(n.querySelectorAll("thead tr th").length+1<i){var r=n.querySelectorAll("thead tr th").length+1,o=100/(e.viewCount+1)*r+"%";n.style.width="calc(".concat(o,")")}}}))}function L(){var t=document.querySelectorAll('.cmp-table-with-carousel:not([data-component-state="initialized"])');t.length>0&&new p(t).initialize()}"loading"!==document.readyState?L():document.addEventListener("DOMContentLoaded",L)},function(t,e,n){"use strict";var i=n(0);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function c(t,e,n){s(t,e),e.set(t,n)}function s(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(t,e){return t.get(d(t,e))}function u(t,e,n){return t.set(d(t,e),n),n}function d(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,v=new WeakSet,b=function(){return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),s(n=this,i=v),i.add(n),c(this,h,"cmp-11-7-table-2-4-columns-with-mobile-dropdown"),c(this,f,void 0),c(this,p,void 0),c(this,m,!1),c(this,g,0),c(this,y,void 0),u(f,this,e)}),[{key:"initialize",value:function(){var t=this;d(v,this,_).call(this),u(p,this,l(f,this).querySelectorAll(".droplist-block-container")),d(v,this,x).call(this),l(p,this).length>0&&(u(y,this,l(f,this).querySelector(".".concat(l(h,this),"--mobile-view"))),l(p,this).forEach((function(e,n){var i={button:e.querySelector('[role="combobox"]'),dropdown:e.querySelector('[role="listbox"]'),options:e.querySelectorAll('[role="option"]'),announcement:e.querySelector("#announcement"),selectionAnnouncement:e.querySelector("#productSelectionAnnouncment")};d(v,t,D).call(t,i.options[n],i),d(v,t,M).call(t,i),d(v,t,w).call(t),i.button.addEventListener("focus",(function(e){d(v,t,C).call(t,e,i)})),i.button.addEventListener("keydown",(function(e){d(v,t,k).call(t,e,i)})),e.addEventListener("click",(function(e){d(v,t,T).call(t,e,i)}))}))),window.addEventListener("resize",(function(){d(v,t,x).call(t)}))}}])}();function x(){var t=l(f,this).querySelector(".".concat(l(h,this),"--desktop"));window.innerWidth<i.l.SM?(l(p,this).length>0?t.style.display="none":t.style.display="block",d(v,this,E).call(this)):t.style.display="block"}function _(){var t=this,e=l(f,this).querySelectorAll(".".concat(l(h,this),"--desktop table thead th")),n=["td-primary-bg","td-secondary-bg","td-primary-alt-bg","td-secondary-alt-bg","td-white-bg"];e.forEach((function(e,i){for(var r=0,o=n;r<o.length;r++){var a=o[r];
1e.classList.contains(a)&&d(v,t,S).call(t,i,a)}}))}function S(t,e){l(f,this).querySelectorAll(".".concat(l(h,this),"--desktop table tbody tr")).forEach((function(n){var i=n.querySelectorAll("td");i[t]&&i[t].classList.add(e)}))}function w(){var t=this,e=l(f,this).querySelectorAll(".".concat(l(h,this),"--mobile-view table thead th")),n=["td-primary-bg","td-secondary-bg","td-primary-alt-bg","td-secondary-alt-bg","td-white-bg"];e.forEach((function(e,i){for(var r=0,o=n;r<o.length;r++){var a=o[r];e.classList.contains(a)&&d(v,t,A).call(t,e,a)}}))}function A(t,e){l(f,this).querySelectorAll(".".concat(l(h,this),"--mobile-view table tbody tr")).forEach((function(n){var i=t.classList.contains("first-column")?"first-column":"second-column";n.querySelectorAll("td").forEach((function(n){n.id==t.id&&n.classList.contains(i)&&n.classList.add(e)}))}))}function E(){var t=document.querySelector("header")?document.querySelector("header").offsetHeight:0,e=l(f,this).querySelector(".cmp-11-7-table-2-4-columns-with-mobile-dropdown-label-container"),n=l(f,this).querySelector(".cmp-11-7-table-2-4-columns-with-mobile-dropdown--mobile-view thead");e?(e.style.top=t+"px",n.style.top=e.getBoundingClientRect().height+t+"px"):l(f,this).querySelector(".cmp-11-7-table-2-4-columns-with-mobile-dropdown--desktop thead").style.top=t+"px"}function L(t,e){var n=t+" "+e.selectionAnnouncement.getAttribute("data-announcment-text");e.selectionAnnouncement.setAttribute("aria-label",""),e.announcement.setAttribute("aria-live","off"),setTimeout((function(){e.selectionAnnouncement.setAttribute("aria-label",n),e.announcement.setAttribute("aria-live","polite")}),1e3)}function k(t,e){var n=t.key;if(!l(m,this)&&["ArrowDown","ArrowUp","Enter"," "].includes(n))t.preventDefault(),d(v,this,M).call(this,e);else switch(n){case"Escape":d(v,this,M).call(this);break;case"ArrowDown":t.preventDefault(),d(v,this,q).call(this,e);break;case"ArrowUp":t.preventDefault(),d(v,this,I).call(this,e);break;case"Enter":case" ":t.preventDefault(),d(v,this,P).call(this,e)}}function C(t,e){var n=this;if(!l(m,this)){var i=0==e.button.id.split("-")[1]?1:0;l(p,this).forEach((function(t,r){r==i&&t.querySelectorAll('[role="option"]').forEach((function(t){"true"==t.getAttribute("aria-selected")&&d(v,n,L).call(n,t.textContent,e)}))}))}}function T(t,e){var n=e.button.contains(t.target),i=e.dropdown.contains(t.target);(n||!i&&l(m,this))&&d(v,this,M).call(this,e);var r=t.target.closest('[role="option"]');r&&d(v,this,D).call(this,r,e)}function M(t){t.dropdown.classList.toggle("active"),u(m,this,!l(m,this)),t.button.setAttribute("aria-expanded",l(m,this).toString()),l(m,this)?d(v,this,O).call(this,t):t.button.focus()}function q(t){var e;l(g,this)<t.options.length-1?u(g,this,(e=l(g,this),e++,e)):u(g,this,0);d(v,this,O).call(this,t)}function I(t){var e;l(g,this)>0?u(g,this,(e=l(g,this),e--,e)):u(g,this,t.options.length-1);d(v,this,O).call(this,t)}function O(t){var e=t.options[l(g,this)];e.classList.add("current"),e.focus(),e.scrollIntoView({block:"nearest"}),t.options.forEach((function(t,n){t!==e&&t.classList.remove("current")})),d(v,this,N).call(this,"You're currently focused on ".concat(e.ariaLabel),t)}function P(t){var e=t.options[l(g,this)];d(v,this,D).call(this,e,t)}function N(t,e){e.announcement.setAttribute("aria-label",t),e.announcement.setAttribute("aria-live","polite"),setTimeout((function(){e.announcement.textContent="",e.announcement.setAttribute("aria-live","off")}),1e3)}function D(t,e){var n=this,i=t.textContent;e.button.textContent=i,e.options.forEach((function(t){t.className.includes("active")&&t.removeChild(t.lastElementChild),t.classList.remove("active"),t.setAttribute("aria-selected","false")}
1)),t.innerHTML=t.innerHTML+'<span class="td-icon td-icon-checkMark selectedTickMark" aria-hidden="true"></span>',t.classList.add("active"),t.classList.add("current"),t.setAttribute("aria-selected","true"),d(v,this,M).call(this,e),e.options.forEach((function(t,e){t.className.includes("active")&&u(g,n,e)})),d(v,this,B).call(this,e,t.getAttribute("value")),d(v,this,j).call(this,t,e)}function B(t,e){var n=0==t.button.id.split("-")[1]?".first-column":".second-column",i=l(y,this).querySelectorAll(".table-mobile-view thead tr ".concat(n)),r=l(y,this).querySelectorAll(".table-mobile-view tbody tr ".concat(n));i.forEach((function(t,n){t.id==e?t.classList.remove("hidden-block"):t.classList.add("hidden-block")})),r.forEach((function(t,n){t.id==e?t.classList.remove("hidden-block"):t.classList.add("hidden-block")}))}function j(t,e){l(p,this).forEach((function(n,i){i!=e.button.id.split("-")[1]&&n.querySelectorAll('[role="option"]').forEach((function(e){e.getAttribute("value")===t.getAttribute("value")?e.classList.add("hide-option"):e.classList.remove("hide-option")}))}))}function R(){var t=document.querySelectorAll('.cmp-11-7-table-2-4-columns-with-mobile-dropdown:not([data-component-state="initialized"])');t.length>0&&t.forEach((function(t){new b(t).initialize(),t.setAttribute("data-component-state","initialized")}))}"loading"!==document.readyState?R():document.addEventListener("DOMContentLoaded",R)},function(t,e,n){"use strict";var i=n(0),r=n(1);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var c=function(){var t,e=document.querySelectorAll(".cmp-text-3-4v");if(e&&0!=e.length&&(t=o(e)),window.innerWidth>=i.l.SM){if(!t)return;t.forEach((function(t){var e=t.querySelector(".cmp-text-3-4v__container");Object(r.e)(".cmp-text-3-4v__card--popular-choice",".cmp-text-3-4v__container .cmp-text-3-4v__card",e.id),Object(r.e)(".cmp-text-3-4v__card-content--title",".cmp-text-3-4v__container .cmp-text-3-4v__card",e.id),Object(r.e)(".cmp-text-3-4v__card-content--action",".cmp-text-3-4v__container .cmp-text-3-4v__card",e.id),Object(r.e)(".cmp-text-3-4v__card-content-block",".cmp-text-3-4v__container .cmp-text-3-4v__card",e.id)}))}};["load","resize"].forEach((function(t){"resize"===t?window.addEventListener(t,(function(){c()})):window.addEventListener(t,Object(r.a)((function(){c(),r.g.lazyLoadingEqualHeight("cmp-image__image",c)})),1e3)}))},function(t,e,n){"use strict";var i=n(1),r=n(0);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var c=function(){var t,e=document.querySelectorAll(".cmp-3-2w-get-a-quote");if(e&&0!==e.length&&(t=o(e)),window.innerWidth>=r.l.MD){if(!t)return;t.forEach((function(t){var e=t.querySelector(".cmp-3-2w-get-a-quote__quoter-tool");Object(i.e)(".cmp-3-2w-get-a-quote__quoter-tool--setTitleEqualHeight",".cmp-3-2w-get-a-quote__quoter--setHeight",e.id)}))}};window.addEventListener("resize",(function(){c()})),window.addEventListener("load",Object(i.a)((function(){c()}),500))},function(t,e,n){"use strict";var i=n(0),r={init:function(){var t=document.querySelectorAll(".".concat("cmp-4-2a-selection-dropdown",':not([data-component-state="initialized"])'));t.length>0&&t.forEach((function(t){!function(t){var e=t.querySelector(".cmp-4-2a-selection-dropdown--select-wrapper--selection"),n=!1,r=navigator.userAgent.toLowerCase();function o(t){var e=t.options[t.selectedIndex],n=e.getAttribute("data-url"),i=e.getAttribute("data-target");window.open(n,i)}function a(t){n=!1,o(e)}
1r.indexOf(i.r.ANDROID)>-1||r.indexOf(i.r.MAC)>-1||"Macintel"===navigator.platform?e.addEventListener("change",(function(){o(e)})):e.addEventListener("change",(function(){n||(n=!0,e.addEventListener("click",a),setTimeout((function(){e.removeEventListener("click",a)}),100))}))}(t),t.setAttribute("data-component-state","initialized")}))}};"loading"!==document.readyState?r.init():document.addEventListener("DOMContentLoaded",r.init)},function(t,e,n){"use strict";var i=n(0),r=function(){function t(t){var e=t.querySelectorAll(".cmp-language-filter--dropdown-list--header");function n(t){o(t.target.closest(".cmp-language-filter--dropdown").querySelector("a"))}function r(){e.forEach((function(t){o(t),t.focus()}))}function o(t){var e=t.querySelector(".dropdown-collapsed"),n=t.querySelector(".dropdown-expanded"),i=t.nextElementSibling;e.classList.remove("cmp-language-filter--dropdown--hide"),n.classList.add("cmp-language-filter--dropdown--hide"),i.classList.add("cmp-language-filter--dropdown--hide"),t.setAttribute("aria-expanded",!1)}t.querySelectorAll(".cmp-language-filter--selection--list-item").forEach((function(t){t.addEventListener("keydown",(function(t){t.keyCode===i.m.ESCAPE&&r()}))})),["click","keypress"].forEach((function(t){e.forEach((function(e){e.addEventListener(t,(function(n){var a;"click"!==t&&("keypress"!==t||n.keyCode!==i.m.ENTER&&n.keyCode!==i.m.SPACE)||(n.preventDefault(),"true"===(a=e).getAttribute("aria-expanded")?o(a):function(t){r();var e=t.querySelector(".dropdown-collapsed"),n=t.querySelector(".dropdown-expanded"),i=t.nextElementSibling,o=i.querySelector("#cmp-language-filter--selection--list-item--one");e.classList.add("cmp-language-filter--dropdown--hide"),n.classList.remove("cmp-language-filter--dropdown--hide"),i.classList.remove("cmp-language-filter--dropdown--hide"),t.setAttribute("aria-expanded",!0),o.setAttribute("tabindex","-1"),o.focus()}(a))}))}))})),t.querySelectorAll(".cmp-language-filter--dropdown").forEach((function(t){var e=Array.from(t.querySelectorAll(".cmp-language-filter--selection--list-item")),r=e.slice(0,1).pop(),o=e.pop();o&&o.addEventListener("keydown",(function(t){t.keyCode!==i.m.TAB||t.shiftKey||n(t)})),r&&r.addEventListener("keydown",(function(t){t.keyCode===i.m.TAB&&t.shiftKey&&n(t)})),e&&e.forEach((function(t){t.querySelector("a").addEventListener("blur",(function(t){t.relatedTarget||n(t)}))}))}))}return{init:function(){var e=document.querySelectorAll(".".concat("cmp-language-filter",':not([data-component-state="initialized"])'));e.length>0&&e.forEach((function(e){t(e),e.setAttribute("data-component-state","initialized")}))}}}();"loading"!==document.readyState?r.init():document.addEventListener("DOMContentLoaded",r.init)},function(t,e,n){"use strict";var i,r,o,a,c=n(0),s=n(5),l=n(3),u=n(9),d=[],h="",f="",p="",m="",g="",y="",v=!1,b=!1,x=!1,_=function(){var t,e=document.querySelector(".affinity-group-search-4-14");if(null!==e){i=JSON.parse(e.querySelector("#searchRequiredData").value),p=i.groupApi,m=i.associationAssetPath,g=i.ctaAssetpath,t=s.a.cookieGetItem("province"),a=null==t?"ON":t;var n=e.querySelector(".affinity-group-search-4-14__input");n.value="",n.addEventListener("keyup",q),n.addEventListener("click",I),n.addEventListener("blur",C),e.querySelector(" .affinity-group-search-4-14__search--button a").addEventListener("click",E),e.querySelector(".affinity-group-search-4-14__input--close-icon .clear-input").addEventListener("click",(function(t){y="",x=!1,function(t,e){t.preventDefault(),e.value="",v=!1,b=!1,T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-no-result-error")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error-mobile")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-no-result-error-mobile")),document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown").innerHTML="",document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__search--button a").classList.add("disabled"),document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__search--button a").setAttribute("aria-disabled","true")}(t,n),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__input--close-icon")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success-mobile"))}))}};function S(t){d=t;var e=document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown");
1if(e.innerHTML="",t.length>0){var n=document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__input").value;v=!1,b=!1,T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-no-result-error")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error-mobile")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-no-result-error-mobile")),t.forEach((function(t,r){M(e);var o=document.createElement("button");o.classList.add("affinity-group-search-4-14__suggestion-item");var a,s,l=e.appendChild(o);if(l.innerHTML=(a=t.provincialGroupNameLong,s=new RegExp("("+n+")","ig"),a.replace(s,"<strong>$1</strong>")),r==d.length-1&&d.length>=i.maxResults){var u=document.createElement("div");u.classList.add("affinity-group-search-4-14__suggestion-msg");var h=e.appendChild(u);h.innerHTML=t.provincialGroupNameLong,h.innerHTML=i.dropdownMsg}l.setAttribute("data-id",t.id),l.addEventListener("mousedown",(function(e){w(e,t,r)})),l.addEventListener("keyup",(function(e){e.keyCode!==c.m.ENTER&&e.keyCode!==c.m.SPACE||w(e,t,r)}))}))}else D(!0),b=!0,T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error-mobile")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-success")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-success-mobile"))}function w(t,e,n){t.preventDefault(),document.querySelectorAll(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown .affinity-group-search-4-14__suggestion-item").forEach((function(t){t.childNodes.length>1&&(t.innerHTML=t.innerText)})),document.querySelectorAll(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown .selectedOption").forEach((function(t){return t.classList.remove("selectedOption")})),t.target.classList.add("selectedOption"),t.target.innerHTML=t.target.innerHTML+'<sp
1an class="td-icon td-icon-checkMark selectedTickMark" aria-hidden="true"></span>',y=e,document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__input").value=y.provincialGroupNameLong,m=i.associationAssetPath+(y.associationId?y.associationId.toLowerCase():i.defaultAssociationId)+".json",y?(Object(l.a)(m,"GET",L,P),document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__search--button a").classList.remove("disabled"),document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__search--button a").setAttribute("aria-disabled","false"),M(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success")),M(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success-mobile")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown"))):(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__search--button a").classList.add("disabled"),document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__search--button a").setAttribute("aria-disabled","true"),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success-mobile")))}function A(t){var e=document.querySelector(".affinity-quote-cta .affinity-button-list-container .cmp-product-description__data-slider");e.innerHTML="";var n="";t.forEach((function(t,e){n+='\n <li class="slider-item tns-item" id="product-descSlider-amgproducts-'.concat(e,'">\n <div class="grid-item">\n <div>\n <div class="aem-Grid aem-Grid--12 aem-Grid--default--12 ">\n <div class="button cmp--margin-top-small cmp--margin-bottom-small aem-GridColumn aem-GridColumn--default--12">\n <a id="button-').concat(e,'" class="cmp-button " href="').concat(t.btnUrl+"?associationid="+r+"&campaignid="+o,'" data-link-text="Car &amp; Home Bundle" role="button" data-di-id="#button-095970a38d">\n <span class="cmp-button__text">').concat(t.btntext,"</span>\n </a>\n </div>\n </div>\n </div>\n </div>\n </li>")})),e.innerHTML=n}function E(t){"false"==t.target.ariaDisabled?x?(Object(l.a)(g,"GET",k,O),document.querySelector(".affinity-quote-cta").classList.remove("hidden"),document.querySelector(".affinity-quote-modal-error").classList.add("hidden")):(document.querySelector(".affinity-quote-cta").classList.add("hidden"),document.querySelector(".affinity-quote-modal-error").classList.remove("hidden")):Object(u.b)()}function L(t){h=t,r=t.association_info.association_id,o=t.association_info.campaign_id,x=!0}function k(t){if(f=t,i.isAmgConsideration){var e=y.provinceCode;A(f.cta_combinations_gi_products.home_auto.provinces.find((function(t){return t.provinceCode==e}))[geoLocationLang])}else{var n=y.provinceCode,r=h.association_info.provinces.find((function(t){return t.provinceCode==n})),o=f.cta_combinations.find((function(t){return r.bundle in t})),a=geoLocationLang;A(o[r.bundle][a])}}function C(t){t.relatedTarget||(T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown")),N(!1),D(!1))}function T(t){t&&t.classList.add("hidden")}function M(t){t&&t.classList.remove("hidden")}function q(){var t=document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__input").value;t?(M(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__input--close-icon")),function(){var t=document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__input").value;if(t){var e=window.location.href.includes("story")?p:p.replace("{lang}",geoLocationLang)+"?searchString=".concat(t,"&provinceCode=").concat(a,"&maxResults=").concat(i.maxResults);Object(l.a)(e,"GET",S,O)}else document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown").innerHTML=""}()):(T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown")),document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown").innerHTML="",T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__input--close-icon")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success-mobile")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-no-result-error")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error-mobile")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-no-result-error-mobile"))),t&&y&&M(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown"))}function I(){document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__input").value&&y&&M(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown"))}function O(t){v=!0,d=[],N(!0)}function P(t){x=!1}function N(t){var e=document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown");
1if(t){e.innerHTML="";var n=document.createElement("div");n.classList.add("affinity-group-search-4-14__suggestion-msg"),n.setAttribute("aria-live","polite"),n.setAttribute("role","alert"),e.appendChild(n).innerHTML=i.apierrorMessageFocused,M(e),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success-mobile")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error-mobile"))}else!t&&v?(T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success-mobile")),M(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error")),M(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error-mobile"))):(T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-api-error-mobile")))}function D(t){var e=document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14__suggestion-dropdown");if(t){e.innerHTML="";var n=document.createElement("div");n.classList.add("affinity-group-search-4-14__suggestion-msg"),n.setAttribute("aria-live","polite"),n.setAttribute("role","alert"),e.appendChild(n).innerHTML=i.norecordfoundErrorMessageFocused,M(e),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-no-result-error")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-no-result-error-mobile"))}else!t&&b?(T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-success-mobile")),M(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-no-result-error")),M(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-no-result-error-mobile"))):(T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-no-result-error")),T(document.querySelector(".affinity-group-search-4-14 .affinity-group-search-4-14-no-result-error-mobile")))}"loading"!==document.readyState?_():window.addEventListener("DOMContentLoaded",(function(){_()}))},function(t,e){},function(t,e,n){"use strict";var i=n(0);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o,a=[],c=[],s=[],l=[],u=[],d=[],h="",f="",p="",m="",g="",y="",v="",b=[],x=!1,_=!1,S=!1,w=!1,A={root:null,rootMargin:"0px",thershold:1},E={code:"",Extend:function(t){t=t||{},E.size=t.size||0,E.page=t.page||1,E.step=t.step||9},Add:function(t,e){if(E.size>1)for(var n=t;n<e;n++)E.code+='<a tabindex="0">'+n+"</a>"},Last:function(){E.code+='<i>...</i><a tabindex="0">'+E.size+"</a>"},First:function(){E.code+='<a tabindex="0">1</a><i>...</i>'},Click:function(){document.getElementById("articles-list").scrollIntoView(),E.page=+this.innerHTML,E.Start()},Prev:function(){(document.getElementById("articles-list").scrollIntoView(),_||S)?document.getElementById("filterBtn").focus():document.getElementById("assetFilters").focus();E.page--,E.page<1&&(E.page=1),E.Start()},Next:function(){(document.getElementById("articles-list").scrollIntoView(),_||S)?document.getElementById("filterBtn").focus():document.getElementById("assetFilters").focus();E.page++,E.page>E.size&&(E.page=E.size),E.Start()},Bind:function(){for(var t=E.e.getElementsByTagName("a"),e=0;e<t.length;e++)+t[e].innerHTML===E.page&&(t[e].className="active"),t[e].addEventListener("click",E.Click,!1),t[e].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||(E.page=+this.innerHTML,E.Start(),document.getElementById("articles-list").scrollIntoView())}),!1)}
1,Finish:function(){E.e.innerHTML=E.code,E.code="",E.Bind()},Start:function(){E.size<4?E.Add(1,E.size+1):E.page<2*E.step+1?E.size>4?(E.Add(1,2*E.step+2),E.Last()):E.Add(1,E.size+1):E.page>E.size-2*E.step?E.size>4&&E.page>4?(E.First(),E.Add(E.size-2,E.size+1)):E.Add(1,E.size+1):(E.page>3?E.First():E.Add(1,E.page),E.page-E.step==2?E.Add(3,E.page+E.step+1):E.size-E.page==2?4==E.page&&6==E.size?E.Add(3,E.size+1):E.Add(E.page-E.step,E.size+1):E.Add(E.page-E.step,E.page+E.step+1),E.size-E.page>2&&E.Last()),V(l,document.getElementById("article-list"),9,E.page),E.Finish()},Buttons:function(t){if(E.size>3){var e=t.getElementsByTagName("a");e[0].addEventListener("click",E.Prev,!1),e[1].addEventListener("click",E.Next,!1),e[0].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||E.Prev()}),!1),e[1].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||E.Next()}),!1)}},Create:function(t){var e=[];e=E.size>3?['<a role="link" aria-label="previous page" tabindex="0" class="articleanchorprev td-icon td-icon-leftCaret"></a>',"<span ></span>",'<a role="link" aria-label="next page" tabindex="0" class="articleanchor td-icon td-icon-rightCaret"></a>']:["<span ></span>"],t.innerHTML=e.join(""),E.e=t.getElementsByTagName("span")[0],E.Buttons(t)},Init:function(t,e){E.Extend(e),E.Create(t),E.Start()}},L=function(t,e){t.classList.toggle(e)},k=function(t,e){var n=new XMLHttpRequest;n.overrideMimeType("application/json"),n.open("GET",t,!0),n.onreadystatechange=function(){4===n.readyState&&"200"==n.status&&e(n.responseText)},n.send(null)},C=function(t){if(document.getElementById("strategies-spinner")){var e=document.getElementById("strategies-spinner");e.style.display="show"==t?"block":"none"}},T=function(){M(),I(),B(),j(),R(),H(),q(),O()},M=function(){var t=document.getElementById("assets-class-list");t.innerHTML="",t.innerHTML='<div class="cmp-article--filter-dropdown--asset-list--title">'+o.assets.Title+"</div>";var e=document.createElement("fieldset");e.id="assetClass",e.classList.add("radio-fieldset"),t.appendChild(e),a.forEach((function(t){var n=document.createElement("label");n.htmlFor=t.id,n.classList.add("radio-label");var i=document.createElement("input");i.type="radio",i.id=t.id,i.name="assetClass",i.value=t.id;var r=document.createElement("div");r.classList="selected-radiobutton";var o=document.createElement("div");o.innerText=t.Title,o.classList.add("radio-btn-span"),n.appendChild(i),n.appendChild(r),n.appendChild(o),i.addEventListener("focus",(function(t){n.classList.add("active-label")})),i.addEventListener("blur",(function(t){n.classList.remove("active-label")})),e.appendChild(n),i.addEventListener("change",(function(t){f=t.target.value,P()}))}))},q=function(){var t=document.getElementById("mobile-asset-list");t.innerHTML="";var e=document.createElement("fieldset");e.id="assetMobileClass",e.setAttribute("role","radiogroup"),e.classList.add("radio-fieldset"),t.appendChild(e),a.forEach((function(t){var n=document.createElement("label");n.htmlFor=t.id+"-mobile",n.classList.add("radio-label");var i=document.createElement("input");i.type="radio",i.id=t.id+"-mobile",i.name="assetMobileClass",i.setAttribute("value",t.id+"-mobile"),i.setAttribute("aria-label",t.Title);var r=document.createElement("div");r.classList="selected-radiobutton";var o=document.createElement("div");o.setAttribute("aria-hidden","true"),o.innerText=t.Title,o.classList.add("radio-btn-span"),n.appendChild(i),n.appendChild(r),n.appendChild(o),i.addEventListener("focus",(function(t){n.classList.add("active-label")})),i.addEventListener("blur",(function(t){n.classList.remove("active-label")})),e.appendChild(n),i.addEventListener("change",(function(t){var e=t.target.id;f=e.split("-").length>2?e.split("-")[0]+"-"+e.split("-")[1]:e.split("-")[0],P()}))}))},I=function(){var t=document.getElementById("theme-class-list");t.innerHTML="",t.innerHTML='<div class="cmp-article--filter-dropdown--theme-list--title">'+o.themes.Title+"</div>",c.forEach((function(e){var n=document.createElement("label");n.htmlFor=e.id,n.classList.add("radio-label");var i=document.createElement("input");i.type="radio",i.id=e.id,i.name="themeClass",i.value=e.id;var r=document.createElement("div");r.classList="selected-radiobutton";var o=document.createElement("div");o.innerText=e.Title,o.classList.add("radio-btn-span"),n.appendChild(i),n.appendChild(r),n.appendChild(o),i.addEventListener("focus",(function(t){n.classList.add("active-label")})),i.addEventListener("blur",(function(t){n.classList.remove("active-label")})),t.appendChild(n),i.addEventListener("change",(function(t){m=t.target.value,N()}))}))},O=function(){var t=document.getElementById("mobile-theme-list");
1t.innerHTML="",c.forEach((function(e){var n=document.createElement("label");n.htmlFor=e.id+"-mobile",n.classList.add("radio-label");var i=document.createElement("input");i.type="radio",i.id=e.id+"-mobile",i.name="themeMobileClass",i.value=e.id+"-mobile",i.setAttribute("aria-label",e.Title);var r=document.createElement("div");r.classList="selected-radiobutton";var o=document.createElement("div");o.innerText=e.Title,o.setAttribute("aria-hidden",!0),o.classList.add("radio-btn-span"),n.appendChild(i),n.appendChild(r),n.appendChild(o),t.appendChild(n),i.addEventListener("change",(function(t){var e=t.target.id;m="",m=e.split("-").length>2?e.split("-")[0]+"-"+e.split("-")[1]:e.split("-")[0],N()}))}))},P=function(){var t=[];d.forEach((function(e){e.assettag.filter((function(t){return t==f})).length&&e.themetag.forEach((function(e){t.push(e)}))}));var e,n=t.map((function(t){return t})).filter((function(t,e,n){return n.indexOf(t)==e}));e=_||S?document.getElementsByName("themeMobileClass"):document.getElementsByName("themeClass"),D(n,e)},N=function(){var t=[];d.forEach((function(e){e.themetag.filter((function(t){return t==m})).length&&e.assettag.forEach((function(e){t.push(e)}))}));var e,n=t.map((function(t){return t})).filter((function(t,e,n){return n.indexOf(t)==e}));e=_||S?document.getElementsByName("assetMobileClass"):document.getElementsByName("assetClass"),D(n,e)},D=function(t,e){for(var n=[],i=function(i){e[i].disabled=!0,t.forEach((function(t){(_||S?e[i].id.split("-").length>2?e[i].id.split("-")[0]+"-"+e[i].id.split("-")[1]:e[i].id.split("-")[0]:e[i].id)==t&&n.push(e[i])}))},r=0;r<e.length;r++)i(r);n.forEach((function(t){t.disabled=!1}))},B=function(){document.getElementById("article-apply-btn").addEventListener("click",(function(t){h=f,p=m,G()}))},j=function(){document.getElementById("article-apply-btn-mobile").addEventListener("click",(function(t){(h=f,p=m,G(),h||p)&&(document.getElementById("filterBtn").querySelector(".cmp-button__text").innerText="Filter : Selected")}))},R=function(){document.getElementById("article-clear-btn").addEventListener("click",(function(t){z(),w=!1}))},H=function(){document.getElementById("article-clear-btn-mobile").addEventListener("click",(function(t){F(),w=!1}))},z=function(){w=!1,l=d;var t=document.getElementsByName("assetClass"),e=document.getElementsByName("themeClass"),n=document.getElementById("article-search-close"),i=document.getElementById("article-search");n.style.display="none",i.value="",_?nt(l,s):W(l,s),assetFilters.value="",h="",p="",f="",m="";for(var r=0;r<t.length;r++)t[r].checked=!1,t[r].disabled=!1;for(var o=0;o<e.length;o++)e[o].checked=!1,e[o].disabled=!1;l.length<10?document.getElementById("article-view-all").style.display="none":document.getElementById("article-view-all").style.display="block"},F=function(){document.getElementById("filterBtn").querySelector(".cmp-button__text").innerText="Filter",w=!1,l=d;var t=document.getElementsByName("assetMobileClass"),e=document.getElementsByName("themeMobileClass"),n=document.getElementById("article-search-close"),i=document.getElementById("article-search");n.style.display="none",i.value="",_?nt(l,s):W(l,s),assetFilters.value="",h="",p="",f="",m="";for(var r=0;r<t.length;r++)t[r].checked=!1,t[r].disabled=!1;for(var o=0;o<e.length;o++)e[o].checked=!1,e[o].disabled=!1;l.length<10?document.getElementById("article-view-all").style.display="none":document.getElementById("article-view-all").style.display="block"},G=function(){w=!0;var t=d,e=document.getElementById("article-chevron"),n=document.getElementById("assetFilters");if(h&&p){var i=[],r="",o="";t.forEach((function(t){t.properties.forEach((function(e){e.id==h&&(i.push(t),r=e.title)}))}));var a=[];i.forEach((function(t){t.properties.forEach((function(e){e.id==p&&(a.push(t),o=e.title)}))})),l=a,n.value=r+"/"+o}else if(!h&&p){var c=[],u="";t.forEach((function(t){t.properties.forEach((function(e){e.id==p&&(c.push(t),u=e.title)}))})),l=c,n.value=u}else if(h&&!p){var f=[],m="";t.forEach((function(t){t.properties.forEach((function(e){e.id==h&&(f.push(t),m=e.title)}))})),l=f,n.value=m}else l=t,n.value="";e.click(),_?nt(l,s):W(l,s)},W=function(t,e){var n=document.getElementById("tab-list");if(n.innerHTML="",e.forEach((function(e){var i=[];t.filter((function(t){e.mediatypeIds.forEach((function(e){t.mediaType==e&&i.push(t)}))}));var r=i.length,o=document.createElement("li");o.setAttribute("role","tab");var a="tabs-"+e.title+"-tab";o.setAttribute("id",a),o.setAttribute("aria-selected","false"),o.setAttribute("tabindex","-1"),o.innerText=e.title+" ("+r+")",r?o.addEventListener("click",(function(t){(l=i,y=a,x=!1,paginationSection.style.display="flex",l.length<10)?document.getElementById("article-view-all").style.display="none":document.getElementById("article-view-all").style.display="block";Y(),U(y)})):y==a?o.classList.add("cmp-article--disabled-tab--highlight"):o.classList.add("cmp-article--disabled-tab"),n.appendChild(o)})),l.length){if(y)document.getElementById(y).click();else n.children[0].click(),n.children[0].setAttribute("tabindex","0"),n.children[0].setAttribute("aria-selected","true")}else{var r=document.getElementById("article-list");r.innerHTML="";var o=document.createElement("div");o.classList.add("aem-GridColumn","aem-GridColumn--default--8","aem-GridColumn--offset--default--2","aem-GridColumn--phone--12","aem-GridColumn--offset--phone--0","aem-GridColumn--tabletportrait--12","aem-GridColumn--offset--tabletportrait--0");var a=document.createElement("div");a.classList.add("cmp-text"),a.classList.add("error-mesg");var c=document.createElement("p");c.innerHTML=v;var s=document.createElement("button");if(s.innerText="Clear All",s.addEventListener("click",(function(t){_||S?F():z()})),a.appendChild(c),a.appendChild(s),o.appendChild(a),r.appendChild(o),document.getElementById("article-pagination").innerHTML="",l.length<10)document.getElementById("article-view-all").style.display="none";else document.getElementById("article-view-all").style.display="block"}for(var u=n.getElementsByTagName("li"),d=function(t){u[t].addEventListener("focus",(function(e){u[t].addEventListener("keydown",(function(e){if(e.keyCode===i.m.ARROW_RIGHT||e.keyCode===i.m.ARROW_LEFT||e.keyCode===i.m.ARROW_UP||e.keyCode===i.m.ARROW_DOWN){var n=u[t];if(e.keyCode===i.m.ARROW_RIGHT||e.keyCode===i.m.ARROW_DOWN)for(var r=n.nextElementSibling;r;){if(!r.classList.contains("cmp-article--disabled-tab")){r.focus();var o=r.getAttribute("id");document.getElementById(o).click();break}r=r.nextElementSibling}else for(var a=n.previousElementSibling;a;){if(!a.classList.contains("cmp-article--disabled-tab")){a.focus();var c=a.getAttribute("id");document.getElementById(c).click();break}a=a.previousElementSibling}}}))}))},h=0;h<u.length;h++)d(h)},U=function(t){document.getElementById("tab-list").querySelectorAll("li").forEach((function(e){e.getAttribute("id")==t?(e.classList.add("active-article-tab"),e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")):(e.classList.remove("active-article-tab"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false"))}))},Y=function(){var t=document.getElementById("article-list"),e=document.getElementById("article-pagination");l.length<10?document.getElementById("article-view-all").style.display="none":document.getElementById("article-view-all").style.display="block";t.innerHTML="",e.innerHTML="";var n=Math.ceil(l.length/9);E.Init(e,{size:n,page:1,step:1})},V=function(t,e,n,i){e.innerHTML="";for(var r=n*--i,o=r+n,a=t.slice(r,o),c=function(){var t=a[s],n=t.coeColor.split("/").pop(),i=b.filter((function(e){return e.id==t.mediaType}
1)),r="";i.length>0&&(console.log(i[0]),r=i[0].Title?i[0].Title:"");var o=document.createElement("div");o.classList.add("item"),o.classList.add("aem-GridColumn"),o.classList.add("aem-GridColumn--default--4","aem-GridColumn--phone--12","aem-GridColumn--tabletportrait--6"),t.image?o.innerHTML='<div class="image_article"> <div class="cmp-article--most-recent-container-box"> <div class="cmp-text"> <div class="cmp-article--most-recent-title">'+t.category+'</div> <div class="cmp-article--most-recent-date">'+t.publicationDate+'</div> <a aria-hidden="true" tabindex="-1" href="'+t.pageLink+'"><img title="'+t.imageAltText+'" alt="'+t.imageAltText+'" src="'+t.image+'" /></a> <div class="cmp-article--most-recent-article-container" > <div class="'+n+'"> <h2 ><a href="'+t.pageLink+'"> '+t.headline+' </a> </h2> </div> <div class="cmp-article--most-recent-description-box"> '+t.shortDescription+' </div> <div class="cmp-article--most-recent-article-box"> <div class="cmp-article--most-recent-article-desc">'+r+'<span style="display:'+(""==t.mentionTime?"none":"")+'"><span aria-hidden="true" class="td-icon td-icon-clock cmp-article--most-recent-clock" aria-label="clock icon"></span>'+t.mentionTime+'</span></div> <div class="cmp-article--author-details">'+t.authorDetails+"</div> </div> </div> </div> </div> </div>":o.innerHTML='<div class="investor"> <div class="cmp-article--most-recent-container" > <div class="cmp-text"> <div class="cmp-article--most-recent-title">'+t.category+'</div> <div class="cmp-article--most-recent-date">'+t.publicationDate+'</div> <div class="cmp-article--description-only-header"> <div class="'+n+'"> <h2 ><a href="'+t.pageLink+'"> '+t.headline+' </a> </h2> </div> </div> <div class="cmp-article--most-recent-description" > <p>'+t.shortDescription+'</p> </div> <div class="cmp-article--most-recent-article"> <div class="cmp-article--most-recent-article-desc">'+r+'<span style="display:'+(""==t.mentionTime?"none":"")+'"><span aria-hidden="true" class="td-icon td-icon-clock cmp-article--most-recent-clock" aria-label="clock icon"></span>'+t.mentionTime+'</span></div> <div class="cmp-article--author-details">'+t.authorDetails+"</div> </div> </div> </div> </div>",e.appendChild(o),C("hide")},s=0;s<a.length;s++)c();$()};function X(t){var e="";try{e=null!=t.target.alt?t.target.alt:t.target.textContent.trim()}catch(t){console.log("Error occurred in linkClickArticle")}for(var n=document.getElementsByClassName("active-article-tab"),i="",r=document.querySelectorAll("input"),o=0;o<r.length;o++)"radio"==r[o].type&&1==r[o].checked&&(i+=r[o].labels[0].innerText+"|");i+=n[0].innerText.replace(/[^A-Za-z]+/g,"");var a=document.getElementsByClassName("cmp-article--search-Section--input")[0].value;window.tms_tag=window.tms_tag||[],tms_tag.push({event:"linkClick",link:{name:e,type:"link",product:"tdgis:public",searchFilters:i,searchTerm:a}})}function $(){for(var t=document.getElementsByClassName("cmp-text"),e=0;e<t.length;e++)try{var n=t[e].querySelector("a img");n&&n.addEventListener("click",X);var i=t[e].querySelector("h2");i&&i.addEventListener("click",X)}catch(t){console.log("Error occurred in image heading section")}for(var r=document.getElementsByClassName("cmp-title__link"),o=0;o<r.length;o++)try{var a=r[o];a&&a.addEventListener("click",X)}catch(t){console.log("Error occurred in trendingSection")}}var K=function(t,e){(u=function(t,e){var n=[];return t.forEach((function(t){Object.keys(t).some((function(n){if("object"!=r(t[n]))return"number"==typeof t[n]?t[n].toString().includes(e):t[n].toLowerCase().includes(e.toLowerCase());
1t[n].forEach((function(t){return Object.keys(t).some((function(n){return t[n].toLowerCase().includes(e.toLowerCase())}))}))}))&&n.push(t)})),function(t,e){return t.filter((function(n,i){return t.findIndex((function(t){return t[e]===n[e]}))===i}))}(n,"id")}(t,e),l=u,_?nt(l,s):W(l,s),l.length<10)?document.getElementById("article-view-all").style.display="none":document.getElementById("article-view-all").style.display="block"};var J,Z=function(){var t=document.documentElement.getAttribute("lang").split("-");(g=t[1]?t[0].toLocaleLowerCase()+"."+t[1].toLocaleLowerCase():t[0].toLocaleLowerCase())&&(function(t){if(document.getElementById("article-filter")){var e=document.getElementById("article-filter").getAttribute("path");k(e+"."+t+".json",(function(t){var e=JSON.parse(t);e&&(a=e.assets.tags,c=e.themes.tags,b=e.mediatype.tags,o=e,T())}))}}(g),function(t){if(document.getElementById("articles-list")){var e=document.getElementById("articles-list").getAttribute("path");v=document.getElementById("articles-list").getAttribute("errormesg"),k(e+".json",(function(t){var e=JSON.parse(t);e&&(C("show"),s=e.tablist,e.articleData.map((function(t,e){return t.id=e+1})),d=e.articleData,l=e.articleData,W(l,s),nt(l,s))}))}}())},Q=function(t,e){t.forEach((function(t){"article-lastDiv"===t.target.id&&t.isIntersecting&&x&&setTimeout((function(){tt()}),300)}))},tt=function(){var t=document.getElementById("article-list"),e=t.childNodes.length/9+1;et(l,t,9,e)},et=function(t,e,n,i){for(var r=n*--i,o=r+n,a=t.slice(r,o),c=function(){var t=a[s],n=t.coeColor.split("/").pop(),i=b.filter((function(e){return e.id==t.mediaType})),r="";i.length>0&&(console.log(i[0]),r=i[0].Title?i[0].Title:"");var o=document.createElement("div");o.classList.add("item"),o.classList.add("aem-GridColumn"),o.classList.add("aem-GridColumn--default--4","aem-GridColumn--phone--12","aem-GridColumn--tabletportrait--6"),t.image?o.innerHTML='<div class= "image_article"> <div class="cmp-article--most-recent-container-box"> <div class="cmp-text"> <div class="cmp-article--most-recent-title">'+t.category+'</div> <div class="cmp-article--most-recent-date">'+t.publicationDate+'</div> <a tabindex="-1" aria-hidden="true" href="'+t.pageLink+'"><img title="'+t.imageAltText+'" alt="'+t.imageAltText+'" src="'+t.image+'" /></a> <div class="cmp-article--most-recent-article-container" > <div class="'+n+'"> <h2 ><a href="'+t.pageLink+'"> '+t.headline+' </a> </h2> </div> <div class="cmp-article--most-recent-description-box"> '+t.shortDescription+' </div> <div class="cmp-article--most-recent-article-box"> <div class="cmp-article--most-recent-article-desc">'+r+'<span style="display:'+(""==t.mentionTime?"none":"")+'"><span aria-hidden="true" class="td-icon td-icon-clock cmp-article--most-recent-clock" aria-label="clock icon"></span>'+t.mentionTime+'</span></div> <div class="cmp-article--author-details">'+t.authorDetails+"</div> </div> </div> </div> </div> </div>":o.innerHTML='<div class="investor"> <div> <div class="cmp-article--most-recent-container" > <div class="cmp-text"> <div class="cmp-article--most-recent-title">'+t.category+'</div> <div class="cmp-article--most-recent-date">'+t.publicationDate+'</div> <div class="cmp-article--description-only-header"> <div class="'+n+'"> <h2 ><a href="'+t.pageLink+'"> '+t.headline+' </a> </h2> </div></div> <div class="cmp-article--most-recent-description" > <p>'+t.shortDescription+'</p> </div> <div class="cmp-article--most-recent-article"> <div class="cmp-article--most-recent-article-desc">'+r+'<span style="display:'+(""==t.mentionTime?"none":"")+'"><span aria-hidden="true" class="td-icon td-icon-clock cmp-article--most-recent-clock" aria-label="clock icon"></span>
1'+t.mentionTime+'</span></div> <div class="cmp-article--author-details">'+t.authorDetails+"</div> </div> </div> </div> </div> </div>",e.appendChild(o)},s=0;s<a.length;s++)c();$()},nt=function(t,e){var n=document.getElementById("cmp-article-select");n.disabled=!1,n.innerHTML="";if(e.forEach((function(e){var i=[];e.mediatypeIds.forEach((function(e){t.filter((function(t){t.mediaType==e&&i.push(t)}))}));var r=i.length,o=document.createElement("option"),a="tabs-"+e.title+"-tab-mobile";o.setAttribute("id",a),o.setAttribute("value",a),o.setAttribute("aria-selected","true"),o.text=e.title+" ("+r+")",o.setAttribute("tabindex","0"),0==r&&o.setAttribute("disabled",!0),n.appendChild(o)})),l.length)n.addEventListener("change",(function(e){var n=[],i=e.target.value.split("-")[1];(y=e.target.value.split("-")[0]+"-"+e.target.value.split("-")[1]+"-tab","all"!=i)?s.filter((function(t){return t.title==i}))[0].mediatypeIds.forEach((function(e){t.filter((function(t){t.mediaType==e&&n.push(t)}))})):n=t;(l=n).length<10?document.getElementById("article-view-all").style.display="none":document.getElementById("article-view-all").style.display="block";Y()})),n.value=y?y+"-mobile":n.childNodes[0].getAttribute("value"),Y();else{n.childNodes.forEach((function(t){t.disabled=!1})),n.value=n.childNodes[0].getAttribute("value"),n.setAttribute("disabled",!0);var i=document.getElementById("article-list");i.innerHTML="";var r=document.createElement("div");r.classList.add("aem-GridColumn","aem-GridColumn--default--8","aem-GridColumn--offset--default--2","aem-GridColumn--phone--12","aem-GridColumn--offset--phone--0","aem-GridColumn--tabletportrait--12","aem-GridColumn--offset--tabletportrait--0");var o=document.createElement("div");o.classList.add("cmp-text"),o.classList.add("error-mesg");var a=document.createElement("p");a.innerHTML=v;var c=document.createElement("button");if(c.innerText="Clear All",c.addEventListener("click",(function(t){_||S?F():z()})),o.appendChild(a),o.appendChild(c),r.appendChild(o),i.appendChild(r),document.getElementById("article-pagination").innerHTML="",l.length<10)document.getElementById("article-view-all").style.display="none";else document.getElementById("article-view-all").style.display="block"}},it=function(){if(document.getElementById("article-filter")){var t=document.getElementById("article-search");document.querySelectorAll(".article-accordion").forEach((function(t){var e=t.nextElementSibling;t.onclick=function(){this.classList.toggle("is-open"),e.style.maxHeight?(e.style.display="none",e.style.maxHeight=null,e.tabindex=-1,t.setAttribute("aria-expanded","false")):(e.style.display="block",e.style.maxHeight=e.scrollHeight+"px",e.tabindex=0,t.setAttribute("aria-expanded","true"))},t.addEventListener("focus",(function(e){t.style.outline="1px dotted #1c1c1c"})),t.addEventListener("blur",(function(e){t.style.outline=""}))})),Z(),function(){var t=document.getElementById("article-chevron"),e=document.getElementById("dropdown-panel"),n=document.getElementById("assetFilters");t&&(t.addEventListener("click",(function(n){L(t,"bottom"),L(e,"display-panel")})),n.addEventListener("keypress",(function(n){if("Enter"!=n.key)return n.preventDefault(),!1;L(t,"bottom"),L(e,"display-panel")})),n.addEventListener("blur",(function(n){n.relatedTarget.classList.contains("banner-1-9-tabs-li")&&(t.classList.add("bottom"),e.classList.remove("display-panel"))})),n.addEventListener("click",(function(n){L(t,"bottom"),L(e,"display-panel")})),window.addEventListener("click",(function(n){if(t){var i=n.target.classList.contains("cmp-article--filter-dropdown--select--chevron"),r=n.target.classList.contains("cmp-article--filter-dropdown--select--input"),o=n.target.classList.contains("cmp-article--filter-dropdown--select--panel"),a=n.target.classList.contains("cmp-article--filter-dropdown--asset-list"),c=n.target.classList.contains("cmp-article--filter-dropdown--selection-container"),s=n.target.classList.contains("cmp-article--filter-dropdown--theme-list"),l=n.target.classList.contains("cmp-article--filter-dropdown--asset-list--title"),u=n.target.classList.contains("cmp-article--filter-dropdown--button-container"),d=n.target.classList.contains("cmp-article--filter-dropdown--apply-btn"),h=n.target.classList.contains("cmp-article--filter-dropdown--clear-btn"),f=n.target.classList.contains("selected-radiobutton"),p=n.target.classList.contains("radio-label"),m=n.target.classList.contains("radio-btn-span"),g=n.target.classList.contains("radio-fieldset"),y="assetClass"==n.target.name||"themeClass"==n.target.name;i||r||o||a||c||s||y||l||u||d||h||f||m||p||g||(t.classList.add("bottom"),e.classList.remove("display-panel"))}})))}(),e=t,(n=document.getElementById("article-search-close")).style.display="none",n.addEventListener("click",(function(t){var i=d;if(n.style.display="none",w)if(h&&p){var r=[];
1i.forEach((function(t){t.properties.forEach((function(e){e.id==h&&r.push(t)}))}));var o=[];r.forEach((function(t){t.properties.forEach((function(e){e.id==p&&o.push(t)}))})),l=o}else if(!h&&p){var a=[];i.forEach((function(t){t.properties.forEach((function(e){e.id==p&&a.push(t)}))})),l=a}else if(h&&!p){var c=[];i.forEach((function(t){t.properties.forEach((function(e){e.id==h&&c.push(t)}))})),l=c}else l=i;else l=i;e.value="",_?nt(l,s):W(l,s),l.length<10?document.getElementById("article-view-all").style.display="none":document.getElementById("article-view-all").style.display="block"})),n.addEventListener("keyup",(function(t){if(t.keyCode===i.m.ENTER||t.keyCode===i.m.SPACE){var r=d;if(n.style.display="none",w)if(h&&p){var o=[];r.forEach((function(t){t.properties.forEach((function(e){e.id==h&&o.push(t)}))}));var a=[];o.forEach((function(t){t.properties.forEach((function(e){e.id==p&&a.push(t)}))})),l=a}else if(!h&&p){var c=[];r.forEach((function(t){t.properties.forEach((function(e){e.id==p&&c.push(t)}))})),l=c}else if(h&&!p){var u=[];r.forEach((function(t){t.properties.forEach((function(e){e.id==h&&u.push(t)}))})),l=u}else l=r;else l=r;e.value="",_?nt(l,s):W(l,s),l.length<10?document.getElementById("article-view-all").style.display="none":document.getElementById("article-view-all").style.display="block"}})),e.addEventListener("keyup",(function(t){if(console.log(t),t.keyCode!==i.m.TAB&&16!==t.keyCode){var e=t.target.value.trimStart().trimEnd(),r=d;if(h&&p){var o=[];r.forEach((function(t){t.properties.forEach((function(e){e.id==h&&o.push(t)}))}));var a=[];o.forEach((function(t){t.properties.forEach((function(e){e.id==p&&a.push(t)}))})),l=a}else if(!h&&p){var c=[],u="";r.forEach((function(t){t.properties.forEach((function(e){e.id==p&&(c.push(t),u=e.title)}))})),l=c,assetFilters.value=u}else if(h&&!p){var f=[];r.forEach((function(t){t.properties.forEach((function(e){e.id==h&&f.push(t)}))})),l=f}else l=r;e.length>0?(K(l,e),n.style.display="block"):(_?nt(l,s):W(l,s),n.style.display="none",l.length<10?document.getElementById("article-view-all").style.display="none":document.getElementById("article-view-all").style.display="block")}})),e.addEventListener("focus",(function(t){var e=document.getElementById("article-chevron"),n=document.getElementById("dropdown-panel");e.classList.add("bottom"),n.classList.remove("display-panel")})),function(){var t=document.getElementById("article-view-all"),e=document.getElementById("paginationSection"),n=document.getElementById("article-list"),i=document.getElementById("article-lastDiv"),r=document.getElementById("articles-list");new IntersectionObserver(Q,A).observe(i),t.addEventListener("click",(function(){r.scrollIntoView(),x=!0,e.style.display="none",n.innerHTML="",et(l,n,9,1)}))}(),rt()}var e,n},rt=function(){var t=window.innerWidth;t<685?(_=!0,S=!1):t<=1023&&t>684&&(S=!0,_=!1),window.addEventListener("resize",(function(t){var e=window.innerWidth;e<685?(_=!0,S=!1):e<781&&e>685?(S=!0,_=!1):(_=!1,S=!1)}))};"loading"!==document.readyState?it():((J=document.createElement("div")).classList.add("cmp-article-main"),J.innerHTML='<div class="dialog"> <div id="tddialogArticle" role="dialog" aria-label= "Modal Content" tabindex="-1" class="cmp-dialog hidden overlay-modal-background-secondary"><div class="cmp-dialog__header" > <div class="cmp-article__filter-label">Filter</div> <div class="cmp-dialog__header-controls"> <button type="button" role="button" class= "close-modal close-modal-button" aria-label="Close"> <span class="td-icon td-icon-close"></span> </button> </div> </div> <div class="cmp-dialog__details"> <div class="cmp-dialog__body"> <div> <div class="container"> <button class="article-accordion" aria-expanded="false">Asset Class</button> <div class="article-accordion-content"> <div class="article-accordion-main-content"> <div class="aem-Grid aem-Grid--12"> <div id="mobile-asset-list" class="aem-GridColumn aem-GridColumn--default--6 aem-GridColumn--tabletlandscape--6 aem-GridColumn--tabletportrait--12 aem-GridColumn--phone--12 cmp-article--filter-dropdown--asset-list" role="application"> </div> </div> </div> </div> <button class="article-accordion" aria-expanded="false" >Themes</button> <div class="article-accordion-content"> <div class="article-accordion-main-content"> <div role="radiogroup" class="cmp-article__radiogroup" > <div class="aem-Grid aem-Grid--12"> <div id="mobile-theme-list" class="aem-GridColumn aem-GridColumn--default--6 aem-GridColumn--tabletlandscape--6 aem-GridColumn--tabletportrait--12 aem-GridColumn--phone--12 cmp-article--filter-dropdown--asset-list" role="application"> </div> </div> </div> </div> </div> </div> <div class="cmp-article--filter-dropdown--button-container"> <button class="cmp-article--filter-dropdown--apply-btn close-modal" id="article-apply-btn-mobile">Apply Filter</button> <button class="cmp-article--filter-dropdown--clear-btn close-modal" id="article-clear-btn-mobile">Clear All</button> </div> </div> </div> </div></div></div>',document.querySelector("body").appendChild(J),document.addEventListener("DOMContentLoaded",it))},function(t,e,n){"use strict";var i=n(0),r=n(6),o=n(4),a={init:function(){var t=document.querySelectorAll(".".concat("cmp-banner-1-2k-product",':not([data-component-state="initialized"])'));t.length>0&&t.forEach((function(t){!function(t){var e=t.getAttribute("data-cardId"),n=t.getAttribute("data-cardType");if(null!==t.querySelector(".compare-checkbox-section")&&null!==t.querySelector(".checkbox-input")&&null!==document.querySelector(".compare-sticky-drawer")){var a=Object(i.W)(t),c=t.querySelectorAll(".cmp-image__image");
1setTimeout((function(){c.forEach((function(t){null!==t.offsetParent&&(a.selectedProdImage=t)}))}),500),a.checkboxInput.setAttribute("id",a.prodType+"_"+a.prodId),a.checkboxLabel.setAttribute("for",a.prodType+"_"+a.prodId),Object(i.P)(a),r.a.updateCheckboxStatus(a)}o.a.recentCardItem(e,n)}(t),t.setAttribute("data-component-state","initialized"),r.a.disableCompareCheckBox(!0,3,2)}))}};"loading"!==document.readyState?a().init():document.addEventListener("DOMContentLoaded",a.init)},function(t,e,n){"use strict";var i=function(){var t=document.querySelector(".cmp-banner-1-7");if(null!==t){var e=t.closest(".cmp-banner-container");null!==e&&e.classList.add("add-styles"),"cmp-banner-1-7g--regular-banner"===t.getAttribute("data-background")&&null!==e&&e.classList.add("cmp-banner-1-7-g-additional-styles")}if(null!==t){var n=t.closest(".banner-container");null!==n&&n.classList.add("banner-viewport-style")}};"loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i)},function(t,e,n){"use strict";var i=n(12),r=function(){var t=document.querySelector(".cmp-banner-1-9");if(null!==t){var e=t.closest(".cmp-banner-container");null!==e&&e.classList.add("add-styles")}},o=function(t,e,n){Object(i.a)({container:t,mode:"carousel",loop:!1,items:1,slideBy:"page",nav:!0,autoplay:!1,speed:400,autoplayButtonOutput:!1,mouseDrag:!1,lazyload:!0,controls:!1,arrowKeys:!0,autoheight:!0,navPosition:n,responsive:{0:{disable:e},767:{disable:e},768:{disable:!0},1024:{disable:!0},1200:{disable:!0}}})};document.addEventListener("DOMContentLoaded",(function(){!function(){var t=document.querySelectorAll(".cmp-banner-1-9-tabs-carousel__data-slider");if(t)for(var e=0;e<t.length;e++){var n=t[e].id,i=t[e].getAttribute("data-navposition");o("#"+n,!1,i);var r=t[e].querySelectorAll(".slider-item"),a=document.querySelectorAll(".tns-nav"),c=document.querySelectorAll(".tns-nav [aria-controls]");a.forEach((function(t){t.removeAttribute("aria-label")})),c.forEach((function(t){t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}));for(var s=0;s<r.length;s++)r[s].removeAttribute("aria-hidden"),r[s].removeAttribute("tabindex")}}()})),"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)},function(t,e,n){"use strict";var i=n(0),r=n(1),o={init:function(){var t=document.querySelectorAll(".".concat("cmp-banner-container",":not([data-component-state='initialized']"));t.length>0&&t.forEach((function(t){!function(t){var e=function(){var e=t,n=document.querySelector("header")?106:0,r=0,o=document.getElementsByTagName("header"),a=document.querySelectorAll(".banner-triple .cmp-banner-container").length>0,c=0===o.length||a&&window.innerWidth<i.l.MD?0:o[0].offsetHeight;if(0!==document.getElementsByClassName("inlineNotification").length){var s=e.parentElement.previousElementSibling;s&&(s.classList.contains("inlineNotification")||s.classList.contains("container"))&&(r=s.offsetHeight)}e.style.backgroundPositionY=c>0||r>0||0==c&&a?c+r+"px":n+r+"px",window.addEventListener("scroll",(function(){var t=window.pageYOffset;e.style.backgroundPositionY=0==c&&a?.1*-t+c+r+"px":c>0?.6*-t+c+r+"px":.6*-t+n+r+"px"}))},n=function(){if("parallaxBanner"===t.getAttribute("data-parallax")){e();var n=new ResizeObserver((function(){e()})),i=new ResizeObserver((function(){e()}));null!==document.querySelector("header")&&n.observe(document.querySelector("header")),document.getElementsByClassName("inlineNotification").length>0&&i.observe(document.getElementsByClassName("inlineNotification")[0])}};n();var o=function(){var e=t.querySelector(".cmp-banner-container__video-play-button");if(e)if(window.innerWidth<i.l.SM){var n=t.clientHeight,r=t.querySelector(".cmp-container > .container > .cmp-container");if(t.parentElement.className.includes("banner-login")&&(r=t.parentElement.querySelector(".cmp-container > .container > .cmp-container > div> .container > .cmp-container")),r){var o=r.clientHeight;e.style.top=(n-o)/n*100/2+"%"}else e.style.top="50%"}else e.style.top="50%"};o(),window.addEventListener("resize",Object(r.a)((function(){n(),o()})),100)}(t),t.setAttribute("data-component-state","initialized")}))}};"loading"!==document.readyState?o().init():document.addEventListener("DOMContentLoaded",o.init)},function(t,e,n){"use strict";var i=n(0),r=n(1),o=n(6),a=n(4);function c(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l=function(){var t,e=document.querySelectorAll(".cmp-banner-product-right-aligned");if(e&&0!=e.length&&(t=c(e)),window.innerWidth>=i.l.SM){if(!t)return;t.forEach((function(t){var e=t.querySelector(".cmp-banner-product-right-aligned__feature");Object(r.e)(".cmp-banner-product-right-aligned__feature--subtext",".cmp-banner-product-right-aligned__feature li",e.id),Object(r.e)(".cmp-banner-product-right-aligned__feature--text--number",".cmp-banner-product-right-aligned__feature li",e.id)}))}},u={init:function(){var t=document.querySelectorAll(".".concat("cmp-banner-product-right-aligned",':not([data-component-state="initialized"])'));t.length>0&&(["load","resize"].forEach((function(t){"resize"===t?window.addEventListener(t,(function(){l()})):window.addEventListener(t,Object(r.a)((function(){l()}),500))})),t.forEach((function(t){!function(t){var e=t.getAttribute("data-cardId"),n=t.getAttribute("data-cardType"),r=t.querySelector(".td-visible--mobile"),c=t.querySelector(".td-visible-desktop"),s=window.matchMedia("(max-width: 767px)"),l=t.dataset.comparelabel||"Compare",u='<div class="cmp-banner-product-right-aligned__compare compare-checkbox-section">\n <div class="cmp-banner-product-right-aligned__compare-checkbox compare-checkbox">\n <input type="checkbox" value="" id="banner-product_102" class="checkbox-input" aria-hidden="true" tabindex="-1">\n <label class="cmp-banner-product-right-aligned__compare-checkbox__checkbox-label checkbox-inputlabel " for="banner-product_102">
1\n <span class="cmp-banner-product-right-aligned__compare-checkbox__checkbox-wrapper checkbox-wrapper"\n aria-describedby="banner-product-heading-id" tabindex="0" role="checkbox" aria-checked="false">\n <span class="cmp-banner-product-right-aligned__compare-checkbox__checkbox-check checkbox-check"></span>\n <span class="cmp-banner-product-right-aligned__compare-checkbox__checkbox-checkLabel checkbox-checkLabel">'.concat(l,"</span>\n </span>\n </label>\n </div>\n </div>"),d=function(){function l(){if(null!==t.querySelector(".compare-checkbox-section")&&null!==t.querySelector(".checkbox-input")&&null!==document.querySelector(".compare-sticky-drawer")){var r=Object(i.W)(t),c=t.querySelectorAll(".cmp-image__image");setTimeout((function(){c.forEach((function(t){null!==t.offsetParent&&(r.selectedProdImage=t)}))}),500),r.checkboxInput.setAttribute("id",r.prodType+"_"+r.prodId),r.checkboxLabel.setAttribute("for",r.prodType+"_"+r.prodId),Object(i.P)(r),o.a.updateCheckboxStatus(r)}a.a.recentCardItem(e,n)}s.matches?(c.innerHTML="",l(),c.innerHTML=u):(r.innerHTML="",l(),r.innerHTML=u)};d(),s.addListener(d)}(t),t.setAttribute("data-component-state","initialized"),o.a.disableCompareCheckBox(!0,3,2)})))}};"loading"!==document.readyState?u().init():document.addEventListener("DOMContentLoaded",u.init)},function(t,e,n){"use strict";var i=n(1),r=n(0),o=n(6),a=n(4);function c(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l={init:function(){var t=document.querySelectorAll(".".concat("cmp-banner-products-dynamic-1-2",':not([data-component-state="initialized"])'));t.length>0&&t.forEach((function(t){!function(t){var e=t.getAttribute("data-cardId"),n=t.getAttribute("data-cardType");if(null!==t.querySelector(".compare-checkbox-section")&&null!==t.querySelector(".checkbox-input")&&null!==document.querySelector(".compare-sticky-drawer")){var i=Object(r.W)(t);i.selectedProdImage=t.querySelector(".cmp-banner-products-dynamic-1-2__image"),i.selectedProdImageWrap=t.querySelector(".cmp-banner-products-dynamic-1-2__info--left"),i.checkboxInput.setAttribute("id",i.prodType+"_"+i.prodId),i.checkboxLabel.setAttribute("for",i.prodType+"_"+i.prodId),Object(r.P)(i),o.a.updateCheckboxStatus(i)}a.a.recentCardItem(e,n)}(t),t.setAttribute("data-component-state","initialized"),o.a.disableCompareCheckBox(!0,3,2)}))}},u=function(){var t=c(document.querySelectorAll(".cmp-banner-products-dynamic-1-2"));if(window.innerWidth>=r.l.SM){if(!t)return;t.forEach((function(t){var e=t.querySelector(".cmp-banner-products-dynamic-1-2__table--product-features");Object(i.e)(".cmp-banner-products-dynamic-1-2__product-feature-subtext",".cmp-banner-products-dynamic-1-2__table--product-features--list-item",e.id)}))}};"loading"!==document.readyState?l.init():document.addEventListener("DOMContentLoaded",l.init),["load","resize"].forEach((function(t){"resize"===t?window.addEventListener(t,(function(){u()})):window.addEventListener(t,Object(i.a)((function(){u()}),1500))}))},function(t,e,n){"use strict";var i=n(6),r=n(4),o=n(0),a=n(14);function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l=function(){function t(t){var e=t.querySelector(".checkbox-input"),n=t.querySelector(".checkbox-inputlabel"),s=t.querySelector(".checkbox-wrapper"),l=t.getAttribute("data-cardName"),u=t.getAttribute("data-cardId"),d=t.getAttribute("data-cardImg"),h=t.getAttribute("data-cardType"),f=t.getAttribute("data-cardLang"),p=t.getAttribute("data-cardSpecialOffer"),m=t.getAttribute("data-cardDescriptionUrl"),g=t.getAttribute("data-cardComponentType"),y=document.querySelector(".cmp-banner-products__recently-viewed");e.setAttribute("id",h+"_"+u),n.setAttribute("for",h+"_"+u),e.addEventListener("click",(function(){if(this.checked)if(!1===b())v(!1);else{v(this.checked),r.a.setProductLocalStorage(l,d,m,h,u,p,f,g);var t=document.querySelector(".cmp-compare-sticky-drawer");if(t){t.style.display="block",Object(a.c)(),i.a.addProdHandler([{name:l,img:d,url:m,type:h,id:u,s_offer:p,cp_type:g}]);
1var e=t.querySelectorAll("[".concat("data-prodId","]")).length,n=t.querySelector("#cmp-compare-sticky-drawer__compare-btn");e<=1?(n.classList.add("disabled"),n.disabled=!0):(n.classList.remove("disabled"),n.disabled=!1)}}else{v(this.checked),r.a.deleteProductLocalStorage(h,u,f);var o=document.querySelector(".cmp-compare-sticky-drawer");if(o){var s,y=o.querySelectorAll(".cmp-compare-sticky-drawer__col[".concat("data-prodId","]")),x=f+"_"+h+"_"+u,_=c(y);try{for(_.s();!(s=_.n()).done;){var S=s.value,w=S.getAttribute("data-prodId");x==w&&i.a.removeProduct(S)}}catch(t){_.e(t)}finally{_.f()}}}i.a.disableCompareCheckBox(this.checked,2,1),this.parentElement.querySelector(".checkbox-wrapper").focus()})),s.addEventListener("keydown",(function(t){var n=e.checked;if("keydown"===t.type&&t.keyCode===o.m.ENTER||t.keyCode===o.m.SPACE){if(n){v(!1),r.a.deleteProductLocalStorage(h,u,f);var s=document.querySelector(".cmp-compare-sticky-drawer");if(s){var y,x=s.querySelectorAll(".cmp-compare-sticky-drawer__col[".concat("data-prodId","]")),_=f+"_"+h+"_"+u,S=c(x);try{for(S.s();!(y=S.n()).done;){var w=y.value,A=w.getAttribute("data-prodId");_==A&&i.a.removeProduct(w)}}catch(t){S.e(t)}finally{S.f()}}}else if(!1===b())v(!1);else{v(!0),r.a.setProductLocalStorage(l,d,m,h,u,p,f,g);var E=document.querySelector(".cmp-compare-sticky-drawer");if(E){E.style.display="block",Object(a.c)(),i.a.addProdHandler([{name:l,img:d,url:m,type:h,id:u,s_offer:p,cp_type:g}]);var L=E.querySelectorAll("[".concat("data-prodId","]")).length,k=E.querySelector("#cmp-compare-sticky-drawer__compare-btn");L<=1?(k.classList.add("disabled"),k.disabled=!0):(k.classList.remove("disabled"),k.disabled=!1)}}i.a.disableCompareCheckBox(n,2,1)}}));var v=function(t){e.checked=t,s.setAttribute("aria-checked",t),n.classList.remove("checkbox-checked"),t&&n.classList.add("checkbox-checked")};function b(){var t=document.querySelector(".cmp-compare-sticky-drawer");if(t){var e,n=t.getAttribute("data-cardLang"),i=t.getAttribute("data-cardType"),a="prod_ids_".concat(i,"_").concat(n),c=decodeURIComponent(r.a.localStorageGetItem(a));return(c&&"null"!==c?c.split(","):[]).length<=(e=2,window.innerWidth<o.l.SM&&(e=1),e)}}r.a.checkLocalStorageIdsInList(h,f,u)?v(!0):v(!1),r.a.checkRecent(u,h)&&y.classList.add("show"),r.a.recentCardItem(u,h)}return{init:function(){var e=document.querySelectorAll(".".concat("bannerProduct",':not([data-component-state="initialized"])'));e.length>0&&e.forEach((function(e){t(e),e.setAttribute("data-component-state","initialized"),i.a.disableCompareCheckBox(!0,3,2)}))}}}();"loading"!==document.readyState?l().init():document.addEventListener("DOMContentLoaded",l.init)},function(t,e,n){"use strict";var i=n(12),r=n(0),o=n(1);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s=function(){setTimeout((function(){var t=document.querySelectorAll(".banner-triple li.cmp-tabs__tab");null==t||t.forEach((function(t){t.addEventListener("click",(function(){return u()})),t.addEventListener("keyup",(function(){return u()}))}))}),200)},l=function(){var t=document.querySelectorAll(".banner-triple li.cmp-tabs__tabpanel");null==t||t.forEach((function(t){d(t)}))},u=function(){l();var t=document.querySelectorAll(".banner-triple li.cmp-tabs__tab");setTimeout((function(){null==t||t.forEach((function(t,e){t.classList.contains("cmp-tabs__tab--active")&&t.focus()}))}),200)},d=function(t){t.classList.contains("cmp-tabs__tabpanel--active")?(t.setAttribute("aria-hidden","false"),t.setAttribute("tabindex","0"),f(t)):(t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),h(t))},h=function(t){t.querySelectorAll("a").forEach((function(t){t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}))},f=function(t){t.querySelectorAll("a").forEach((function(t){t.setAttribute("aria-hidden","false"),t.setAttribute("tabindex","0")}))},p=function(){var t=document.querySelectorAll(".banner-triple li.cmp-tabs__tabpanel");setTimeout((function(){t.forEach((function(t){t.querySelectorAll("a").forEach((function(e){t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex"),e.setAttribute("aria-hidden","false"),e.removeAttribute("tabindex")}))}))}),200)},m=function(){document.querySelectorAll(".banner-triple .cmp-banner-1-7").forEach((function(t){if(null!==t){var e=t.closest(".cmp-banner-container");null!==e&&e.classList.add("add-styles"),"cmp-banner-1-7g--regular-banner"===t.getAttribute("data-background")&&null!==e&&e.classList.add("cmp-banner-1-7-g-ad
1ditional-styles")}if(null!==t){var n=t.closest(".banner-container");null!==n&&n.classList.add("banner-viewport-style")}}))},g=function(t,e,n){Object(i.a)({container:t,mode:"carousel",loop:!1,items:1,slideBy:"page",nav:!0,autoplay:!1,speed:900,autoplayButtonOutput:!1,mouseDrag:!1,lazyload:!0,controls:!1,arrowKeys:!0,autoheight:!0,navPosition:n,responsive:{0:{disable:e},767:{disable:e},768:{disable:e},1024:{disable:!0},1200:{disable:!0}}})};function y(){var t=document.querySelectorAll(".cmp-banner-triple--image-cta"),e=document.querySelectorAll(".cmp-banner-triple--image-cta-flush"),n=document.querySelectorAll(".cmp-banner-triple--image-cta-grid"),i=document.querySelectorAll(".cmp-banner-triple--image-cta-divider"),c=document.querySelectorAll(".cmp-banner-triple--text-tools-swipeable-3-2-r"),s=[].concat(a(t),a(e),a(i),a(n),a(c));window.innerWidth>=r.l.SM&&s&&(s.forEach((function(t){var e=!0,n=t.querySelector(".cmp-banner-triple__data-slider"),i=t.querySelectorAll(".slider-item .cmp-teaser"),r=Object(o.e)("."+n.classList.value+".slider-item .cmp-teaser .cmp-teaser__image","."+n.classList.value+".slider-item",n.id);Object(o.e)("."+n.classList.value+".slider-item .cmp-teaser .cmp-teaser__title","."+n.classList.value+".slider-item",n.id),Object(o.e)("."+n.classList.value+".slider-item .cmp-teaser .cmp-teaser__action-container","."+n.classList.value+".slider-item",n.id);var a=0;i.forEach((function(t){var e=t.querySelector(".cmp-teaser__description").offsetHeight;t.querySelector(".cmp-image__image")&&(e+=r),a<e&&(a=e)})),i.forEach((function(t){var n=t.querySelector(".cmp-teaser__description"),i=t.getAttribute("data-orderBy");if(null===t.querySelector(".cmp-image__image")&&"titlefirstseq"===i){var o=t.querySelector(".cmp-teaser__image"),c=t.querySelector(".cmp-teaser__action-container"),s=window.getComputedStyle(n,null).marginTop,l="0px";null!==c&&(l=window.getComputedStyle(c,null).marginTop),o.style.minHeight="0px",n.style.minHeight=parseInt(a,10)+"px","0px"!==s&&null!==c&&(c.style.marginTop=parseInt(s,10)+parseInt(l,10)+"px"),e=!1}else n.style.minHeight=parseInt(a,10)-parseInt(r,10)+"px"}
1)),i.forEach((function(t){if(t.parentElement.classList.contains("text-tools-swipeable-3-2-r")){var e=t.querySelector(".cmp-teaser__image .cmp-image"),n=e&&e.offsetHeight,i=t.querySelector(".cmp-teaser__image .cmp-image__play-icon");i&&(i.style.top=n/2+"px")}})),e&&Object(o.e)("."+n.classList.value+".slider-item .cmp-teaser .cmp-teaser__content","."+n.classList.value+".slider-item",n.id)})),t.length>0&&t.forEach((function(t){var e,n=t.querySelectorAll(".cmp-banner-triple__data-slider .slider-item"),i=n.length,r=t.querySelector(".cmp-banner-triple__data-slider").getAttribute("data-columnscount");e=i%r==0?r:i%r;for(var o=1;o<=e;o++)n[i-o].style.paddingBottom="15px !important"})))}document.addEventListener("DOMContentLoaded",(function(){!function(){var t=document.querySelectorAll(".banner-triple"),e=document.querySelectorAll(".cmp-banner-triple__data-slider");if(t){e.forEach((function(t){var e=t.id,n=t.getAttribute("data-mobileview"),i="carousel"!==n&&"stacked"===n,r=t.getAttribute("data-navposition");g("#"+e,i,r)}));var n=document.querySelectorAll(".tns-nav"),i=document.querySelectorAll(".tns-nav [aria-controls]");null==n||n.forEach((function(t){t.removeAttribute("aria-label")})),null==i||i.forEach((function(t){t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")})),m()}}(),window.innerWidth>1023?(s(),l()):p()})),["load","resize","tabchange"].forEach((function(t){window.addEventListener(t,(function(){y(),window.innerWidth>1023?function(){var t=document.querySelectorAll(".banner-triple .cmp-tabs__tablist li.cmp-tabs__tab");if(t.length>0){var e=t[0].offsetHeight;t.forEach((function(t){var n=parseInt(window.getComputedStyle(t,null).getPropertyValue("padding-top")),i=parseInt(window.getComputedStyle(t,null).getPropertyValue("padding-bottom")),r=t.getElementsByTagName("h3")[0],o=i+n+r.offsetHeight+parseInt(window.getComputedStyle(r,null).marginBottom)+t.getElementsByTagName("p")[0].offsetHeight+1;o>e&&(e=o)})),t.forEach((function(t){t.style.height=e+"px"}))}}():p()})),"resize"!==t&&window.addEventListener(t,Object(o.a)((function(){y()}),500))}))},function(t,e,n){"use strict";var i=n(25),r=n(0),o=n(12),a=n(30),c=n(1);function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var u,d={VISIBLETABCOUNT:5,TABVISIBLETABCOUNT:5,TABPOTVISIBLETABCOUNT:3,MOBILEVISIBLECOUNT:3.5},h={tabItemWidth:0},f={MOBILE_WIDTH:1,TABLET_PROTRAIT:.833333,TABLET_LANDSCAPE:.833333,DESKTOP_WIDTH:.833333},p=0,m=function(){var t,e,n=document.querySelectorAll(".cmp-tabs:not(.cmp-in-page-navigation)"),r=0;t=n.length;for(var o=0;o<t;o++)if(n[o].classList.contains("cmp-tabs--chips"))n[o].classList.contains("cmp-tabs--chips")&&(v(n[o],!0),M(n[o]));else{e=n[o].querySelector(".cmp-tabs__controler");var a=n[o].querySelector(".cmp-tabs__controler").id,c=n[o].querySelector(".cmp-tabs__tablist");u=g(".cmp-tabs__tablist--"+a,"#"+a),y(c.children),C(c),k(c.children);var s=c.closest(".cmp-tabs").id?c.closest(".cmp-tabs").id:c.id;null===(r=Object(i.a)(i.c.activeTabIndex+s))&&(r=0),T(n[o],c,parseInt(r)),e.removeAttribute("aria-label"),e.setAttribute("tabindex","-1")}window.addEventListener("resize",(function(){A(),e&&(e.removeAttribute("aria-label"),e.setAttribute("tabindex","-1"))})),A(),e&&(e.removeAttribute("aria-label"),e.setAttribute("tabindex","-1"))},g=function(t,e){return document.querySelectorAll(".cmp-tabs__tab--content .td-icon").length>1&&(d.TABPOTVISIBLETABCOUNT=5,d.MOBILEVISIBLECOUNT=4.5),Object(o.a)({container:t,loop:!1,items:1,slideBy:"page",nav:!1,autoplay:!1,speed:900,autoplayButtonOutput:!1,swipeAngle:!1,mouseDrag:!0,lazyload:!1,controlsContainer:e,responsive:{240:{items:d.MOBILEVISIBLECOUNT,controls:!1},768:{items:d.TABPOTVISIBLETABCOUNT,controls:!0}
1,1024:{items:d.TABVISIBLETABCOUNT,controls:!0}}})},y=function(t,e){for(var n=t.length,i=function(){var n=t[r];n.addEventListener("click",(function(t){x(t,e)})),n.addEventListener("keydown",(function(t){e&&n.scrollIntoView({block:"center"}),x(t,e)}))},r=0;r<n;r++)i()},v=function(t,e){var n=0,r=t.querySelector(".cmp-tabs__tablist"),o=r.children,a=r.closest(".cmp-tabs").id?r.closest(".cmp-tabs").id:r.id,c=Object(i.a)(i.c.activeTabIndex+a);n=null!==c?c:n,T(t,r,parseInt(n)),y(o,e)};function b(t){var e=t-(null!==document.querySelector("header")?document.querySelector("header").offsetHeight:0);window.scrollTo({top:e,behavior:"smooth"})}function x(t,e){var n=t.currentTarget;t.stopPropagation();var i=n.parentElement;(setTimeout((function(){_(i)}),100),0!==p||e)||(b(document.querySelector(".cmp-tabs").offsetTop),p+=1);if(e){var o=n.getBoundingClientRect(),c=window.scrollY+o.top-window.innerHeight/2+n.offsetHeight/2;window.scrollTo({top:c,behavior:"smooth"})}Object(r.R)("tabchange"),Object(a.b)(n);var s,l=i.children.length,u=Math.floor(i.parentElement.clientWidth/n.clientWidth);for(n.setAttribute("tabselected","true"),s=0;s<l&&!i.children[s].hasAttribute("tabselected");s++);if(l-s<u&&(s=l-u),!e||null==e){var d=100/l*s;i.style.transform="translate3d(-"+d+"%, 0, 0)"}n.removeAttribute("tabselected")}var _=function(t){for(var e=t.children,n=e.length,r=-1,o=0;o<n;o++){var a=e[o];if(a.classList.contains("cmp-tabs__tab--active")){r=o;var s=a.getAttribute("aria-controls");c.g.compLazyImgRedraw(document.getElementById(s))}}var l=t.closest(".cmp-tabs").id?t.closest(".cmp-tabs").id:t.id;Object(i.b)(i.c.activeTabIndex+l,r)},S=function(){var t=window.innerWidth;return t>=r.l.LG?d.VISIBLETABCOUNT:t>=r.l.MD?d.TABVISIBLETABCOUNT:t>=r.l.SM?d.TABPOTVISIBLETABCOUNT:d.MOBILEVISIBLECOUNT},w=function(){var t=window.innerWidth;return document.querySelector(".cmp-tabs-with-icons")&&(f.DESKTOP_WIDTH=.6666666,f.TABLET_LANDSCAPE=.6666666),t>=r.l.LG?f.DESKTOP_WIDTH:t>=r.l.MD?f.TABLET_LANDSCAPE:t>=r.l.SM?f.TABLET_PROTRAIT:f.MOBILE_WIDTH},A=function(){var t=document.querySelectorAll(".cmp-tabs:not(.cmp-tabs--chips) .cmp-tabs__tablist"),e=t.length,n=window.innerWidth>1200?1200:window.innerWidth,i=n*w();i=E(i,n);var r=S(),o=Math.floor(i/r)-1;Math.abs(o-h.tabItemWidth)>1&&(h.tabItemWidth=o,L(t,e))},E=function(t,e){var n=document.querySelector(".cmp-tabs-with-icons"),i=document.querySelectorAll(".cmp-tabs__tab--content .td-icon");if(n&&i.length>4){var o=n.querySelector(".cmp-tabs__tablist");e<r.l.SM?(t-=15,o&&(o.style.marginLeft="15px")):o&&(o.style.marginLeft="0px")}return t},L=function(t,e){void 0!==u&&u.rebuild();for(var n=0;n<e;n++)k(t[n].children),C(t[n])},k=function(t){for(var e=t.length,n=0;n<e;n++){t[n].style.width=h.tabItemWidth+"px"}},C=function(t){var e,n=window.innerWidth>1200?1200:window.innerWidth,i=t.children.length,r=h.tabItemWidth*i+i,o=S(),a=n*w();t.style.width=r+"px",t.style.perspective="1000px",t.style.backfaceVisibility="hidden",i<o&&(e=(a-r)/2,t.style.transform="translate3d("+e+"px, 0, 0)")},T=function(t,e,n){var i=t.querySelectorAll(".cmp-tabs__tabpanel"),r=e.children,o=r.length;1===o&&(n=0);var a,c=location.hash,s=!1;if(c)for(var l=c.slice(1).split("&"),u=0;u<o;u++){if(r[u].id===l[0]){n=u,s=!0;break}}for(var d=0;d<o;d++)d===n?(i[d].classList.add("cmp-tabs__tabpanel--active"),i[d].setAttribute("aria-hidden",!1),r[d].classList.add("cmp-tabs__tab--active"),r[d].setAttribute("aria-selected",!0),r[d].setAttribute("tabindex","0")):(i[d].classList.remove("cmp-tabs__tabpanel--active"),i[d].setAttribute("aria-hidden",!0),r[d].classList.remove("cmp-tabs__tab--active"),r[d].setAttribute("aria-selected",!1),r[d].setAttribute("tabindex","-1"));s&&(a=document.querySelector(".cmp-tabs").id,b(document.querySelector("#"+a).offsetTop))};function M(t){var e=geoLocationLang===r.o?"de":"of",n=t.querySelectorAll(".cmp-tabs__tablist li .cmp-tabs__tab--content"),i=n.length;n.forEach((function(t,n){var r=document.createElement("span");r.className="visually-hidden",r.textContent="".concat(n+1," ").concat(e," ").concat(i),t.after(r)}))}function q(t,e){var n=t.getElementsByClassName(e);
1if(n)for(var i=0;i<n.length;i++)n[i].setAttribute("id",n[i].getAttribute("id")+i)}window.addEventListener("load",(function(t){var e,n=s(document.getElementsByClassName("cmp-tabs"));try{for(n.s();!(e=n.n()).done;){var i=e.value;q(i,"tns-outer"),q(i,"tns-inner"),q(i,"tns-ovh")}}catch(t){n.e(t)}finally{n.f()}})),document.addEventListener("DOMContentLoaded",(function(){m()})),window.carousel_tab=function(){m()}},function(t,e){},function(t,e,n){"use strict";var i=n(1),r=n(33),o=n(9);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function s(t){Object(i.e)(".cmp-text",".datacell","last-row-"+t)}function l(t){var e=t.querySelector("table"),n=t.querySelector(".cmp-accordion");a(e.classList).forEach((function(t){n.classList.add(t)}))}function u(t){t.querySelectorAll(".cmp-accordion__button").forEach((function(t){new MutationObserver((function(e){e.forEach((function(e){"attributes"==e.type&&t.addEventListener("click",(function(t){t.currentTarget.querySelector(".cmp-accordion__chevron-link").setAttribute("aria-expanded",t.currentTarget.getAttribute("aria-expanded"))}))}))})).observe(t,{attributes:!0})}))}var d=0;function h(){d++,document.querySelectorAll(".cmp-chart-11-1").forEach((function(t,e){var n=t.classList.contains("three-column-chart--dynamic"),a=t.classList.contains("cmp-chart-11-1-five-column-chart");if(0==n)Object(r.a)(t,e),function(t,e){for(var n=t.querySelector("table").querySelectorAll("tr"),i=0;i<n.length;i++)if(i+1===n.length){n[i].setAttribute("id","last-row-"+e);for(var r=n[i].querySelectorAll("td, th"),o=0;o<r.length;o++)r[o].setAttribute("class","datacell")}}(t,e),l(t),u(t),2==d&&s(e),Object(o.c)(),window.addEventListener("load",(function(){return s(e)})),window.addEventListener("resize",(function(){return s(e)})),window.addEventListener("tabchange",Object(i.a)((function(){s(e)}),500));else{var c=t.querySelector('[data-mobileView="accordion"]'),h=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){e.classList.contains("accordion")&&(l(t),function(t){t.querySelectorAll(".newRowAdded").forEach((function(t){var e=t.querySelector("td"),n=e.textContent,i=document.createElement("th");i.setAttribute("scope","row"),i.textContent=n,e.replaceWith(i)}))}(t),u(t),h.disconnect())}))}))}));c&&h.observe(c,{childList:!0})}if(a){var f=t.closest(".chart-11-1");f&&f.classList.add("cmp-chart-11-1-add-styles")}}))}"loading"!==document.readyState?h():document.addEventListener("DOMContentLoaded",h),window.column_charts=function(){h()}},function(t,e,n){"use strict";var i=n(0),r=n(9);!function(){var t=null;function e(){var t;t="lg",document.querySelectorAll(".chart-size-"+t).forEach((function(t,e){t.classList.contains("resp-done")||(t.classList.contains("cmp-chart--type-column")?function(t,e){for(var i,r,l,u=n(t),d=[],h=1,f=u.length;h<f;h++){for(var p=[],m=1,g=u[0].length;m<g;m++)i=c(u[0][m],m+h,e),r=c(u[h][m],h+m,e),p.push("<tr><td>".concat(i,"</td><td>").concat(r,"</td></tr>"));l=c(u[h][0],h,e),d.push(o(l,p.join(""),h,e))}var y=s(a(d.join("")));t.appendChild(y),t.classList.add("resp-done")}(t,e):function(t,e){for(var i,r,l,u=n(t),d=[],h=1,f=u[0].length;h<f;h++){for(var p=[],m=1,g=u.length;m<g;m++)i=c(u[m][0],h+m,e),r=c(u[m][h],m+h,e),p.push("<tr><td>".concat(i,"</td><td>").concat(r,"</td></tr>"));l=c(u[0][h],h,e),d.push(o(l,p.join(""),h,e))}var y=s(a(d.join("")));t.appendChild(y),t.classList.add("resp-done")}(t,e))})),document.querySelectorAll(".cmp-accordion--complex-chart-variant").forEach((function(t){Object(r.c)(t)}))}function n(t){for(var e=t.querySelector("table").querySelectorAll("tr"),n=[],i=0,r=e.length;i<r;i++){n[i]||(n[i]=[]);for(var o=e[i].querySelectorAll("td, th"),a=0,c=0,s=o.length;c<s;c++){var l=parseInt(o[c].getAttribute("colspan"),10);if(isNaN(l))n[i][c+a]=o[c].innerHTML;else{for(var u=0;u<l;u++)n[i][c+u+a]=o[c].innerHTML;a+=l-1}}}return n}function o(t,e,n,i){return'<div class="cmp-accordion__item" data-cmp-hook-accordion="item">\n <h3 class="cmp-accordion__header">\n <div id="item'.concat(n,"-button-").concat(i,'" class="cmp-accordion__button" aria-controls="item').concat(n,"-panel-").concat(i,'" data-cmp-hook-accordion="button">
1\n <span class="cmp-accordion__title">').concat(t,'</span>\n <span class="cmp-accordion__separator"></span>\n <a href="#" class="cmp-accordion__chevron-link" aria-expanded="false" aria-labelledby="item').concat(n,"-button-").concat(i,'">\n <span class="cmp-accordion__icon"></span>\n </a>\n </div>\n </h3>\n <div data-cmp-hook-accordion="panel" id="item').concat(n,"-panel-").concat(i,'" class="cmp-accordion__panel" role="region" aria-labelledby="item').concat(n,"-button-").concat(i,'">\n <div>\n <table role="presentation">\n ').concat(e,"\n </table>\n </div>\n </div>\n </div>")}function a(t){return'<div class="accordion">\n <div class="cmp-accordion cmp-accordion--complex-chart-variant" data-cmp-is="accordion">\n '.concat(t,"\n </div>\n </div>")}function c(t,e,n){var i,r=document.createElement("template");r.innerHTML=t;for(var o=r.content.children,a=0;a<o.length;a++)null===(i=o[a].getAttribute("id"))&&""==i||o[a].setAttribute("id",i+e+10+n);return r.innerHTML}function s(t){var e=document.createElement("template");return e.innerHTML=t,e.content.childNodes[0]}function l(t){t.preventDefault();var e=t.currentTarget;"false"===e.getAttribute("aria-expanded")?e.setAttribute("aria-expanded",!0):e.setAttribute("aria-expanded",!1),t.currentTarget.focus()}function u(t){void 0!==t.keyCode&&(t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||l(t))}function d(){t&&clearInterval(t),t=setTimeout((function(){e()}),200)}function h(){document.querySelectorAll(".cmp-chart").forEach((function(t){var e="chart-size-";t.querySelectorAll("table thead td, table thead th").length>=3&&(e+="lg"),t.classList.add(e)})),window.innerWidth>=i.l.SM&&null!==document.querySelector(".accordion")&&Object(i.Y)(),e(),document.querySelectorAll(".cmp-accordion__chevron-link").forEach((function(t){t.addEventListener("click",l),t.addEventListener("keydown",u)})),window.addEventListener("resize",d),document.querySelectorAll(".cmp-chart .cmp-accordion__button").forEach((function(t){new MutationObserver((function(e){e.forEach((function(e){"attributes"==e.type&&t.addEventListener("click",(function(t){t.currentTarget.querySelector(".cmp-accordion__chevron-link").setAttribute("aria-expanded",t.currentTarget.getAttribute("aria-expanded"))}))}))})).observe(t,{attributes:!0})}))}"loading"!==document.readyState?h():document.addEventListener("DOMContentLoaded",h),window.complex_charts=function(){h()}}()},function(t,e){},function(t,e,n){"use strict";var i=n(1),r=n(0),o=n(6),a=n(4);function c(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l=function(){var t,e=document.querySelectorAll(".cmp-compare-card-6-1-c-e-horizontal-alignment"),n=document.querySelectorAll(".cmp-compare-card-6-1-d-f-horizontal-alignment");if((e&&0!=e.length||n&&0!=n.length)&&(t=[].concat(c(e),c(n))),window.innerWidth>=r.l.SM){if(!t)return;setTimeout((function(){t.forEach((function(t){var r=t.querySelector(".cmp-product-description__data-slider");Object(i.e)(".cmp-compare-card-6-1-c-e__indicator-section","."+r.classList.value+".slider-item",r.id),Object(i.e)(".cmp-compare-card-6-1-c-e__header-section-above-image","."+r.classList.value+".slider-item",r.id),n&&0!=n.length&&(Object(i.e)(".cmp-compare-card-6-1-c-e__rate-card__heading-section","."+r.classList.value+".slider-item",r.id),Object(i.e)(".cmp-compare-card-6-1-c-e__rate-card__top-copy-section","."+r.classList.value+".slider-item",r.id),Object(i.e)(".cmp-compare-card-6-1-c-e__rate-card__bottom-copy-section","."+r.classList.value+".slider-item",r.id)),e&&0!=e.length&&Object(i.e)(".cmp-compare-card-6-1-c-e__image-section","."+r.classList.value+".slider-item",r.id),Object(i.e)(".cmp-compare-card-6-1-c-e__body-copy-section","."+r.classList.value+".slider-item",r.id),Object(i.e)(".cmp-compare-card-6-1-c-e__divider-section","."+r.classList.value+".slider-item",r.id),Object(i.e)(".cmp-compare-card-6-1-c-e__cta-section","."+r.classList.value+".slider-item",r.id)}))}),0)}},u={init:function(){var t=document.querySelectorAll(".".concat("cmp-compare-card-6-1-c-e",':not([data-component-state="initialized"])'));t.length>0&&t.forEach((function(t){!function(t){var e=t.getAttribute("data-cardId"),n=t.getAttribute("data-cardType"),i=t.querySelector(".cmp-compare-card-6-1-c-e__indicator-view-flag");if(null!==t.querySelector(".compare-checkbox-section")&&null!==t.querySelector(".checkbox-input")&&null!==document.querySelector(".compare-sticky-drawer")){var c=Object(r.W)(t);setTimeout((function(){c.selectedProdImage=t.querySelector(".cmp-image__image")}),550),c.checkboxInput.setAttribute("id",c.prodType+"_"+c.prodId),c.checkboxLabel.setAttribute("for",c.prodType+"_"+c.prodId),Object(r.P)(c),o.a.updateCheckboxStatus(c)}a.a.checkRecent(e,n)&&null!==i&&i.classList.add("show")}(t),t.setAttribute("data-component-state","initialized"),setTimeout((function(){o.a.disableCompareCheckBox(!0,3,2)}),500),l(),window.addEventListener("tabchange",l)}))}};
1"loading"!==document.readyState?u.init():document.addEventListener("DOMContentLoaded",(function(){u.init(),i.g.lazyLoadingEqualHeight("cmp-compare-card-6-1-c-e .cmp-image__image--is-loading",l)})),["load","resize"].forEach((function(t){window.addEventListener(t,(function(){l(),"load"===t&&i.g.lazyLoadingEqualHeight("cmp-compare-card-6-1-c-e .cmp-image__image--is-loading",l)}))}))},function(t,e){},function(t,e){document.addEventListener("DOMContentLoaded",(function(){var t=document.getElementById("custURL");if(null!==t){var e,n,i,r,o=t.value;e="GET",n=o,i=function(t,e){if(t)throw t;var n=JSON.parse(e);document.getElementById("cmp-title").innerHTML=n[":items"].root[":items"].contentfragment.elements.messge_text.value,document.getElementById("cmp-desc").innerHTML=n[":items"].root[":items"].contentfragment.elements.messge_description.value},(r=new XMLHttpRequest).open(e,n),r.onload=function(){i(null,r.response)},r.onerror=function(){i(r.response)},r.send()}}))},function(t,e,n){"use strict";var i=n(44),r=n(1),o={init:function(){var t=document.querySelectorAll('.cmp-droplist:not([data-component-state="initialized"])');t.length>0&&t.forEach((function(t){!function(t){var e=t.querySelector(".cmp-droplist__select"),n=t.querySelector("#droplist-expanded-item"),o=t.querySelector("#droplist-author"),a=t.querySelectorAll(".droplistContent");function c(t){a&&a.forEach((function(e){e.getAttribute("data-content-id")===t.target.value?(e.classList.remove("hidden"),r.g.compLazyImgRedraw(e),Object(i.a)()):e.classList.add("hidden")}))}"publish"===o.value?(e&&(e.value=n&&n.value,a&&a.forEach((function(t){t.getAttribute("data-content-id")==e.value?(t.classList.remove("hidden"),r.g.compLazyImgRedraw(t)):t.classList.add("hidden")})),""==e.value&&(e.selectedIndex=0)),e.addEventListener("change",c)):a&&a.forEach((function(t){t.classList.remove("hidden"),r.g.compLazyImgRedraw(t)}))}(t),t.setAttribute("data-component-state","initialized")}))}};"loading"!==document.readyState?o().init():document.addEventListener("DOMContentLoaded",o.init)},function(t,e,n){"use strict";n(7),n(5);var i=n(0),r=n(1),o=n(3),a="Confirmation",c="Warning",s="Error",l="author",u=function(){function t(){var t=document.querySelector('[data-id="cmp-emergency-msg-id"]');if(null!==t){if("undefined"!=typeof isEmsShownInPage)if(!0===isEmsShownInPage)t.classList.remove("hidden");else if(!1===isEmsShownInPage)return;var e,n=t.getAttribute("data-lang"),u=t.getAttribute("data-lob"),d=t.getAttribute("data-channelId"),h=t.getAttribute("data-api-url"),f=t.getAttribute("data-mode"),p=t.getAttribute("data-close-label");""!==(e=g())&&Object(o.a)(e,"GET",y,A),null!==t&&window.addEventListener("resize",(function(){m()}))}function m(){var t=document.getElementsByTagName("header"),e=0;0!==t.length&&(e=t[0].offsetHeight-1,document.getElementById("main").style.paddingTop=e+"px");var n=document.querySelector(".cmp-floating-container");null!==n&&(n.style.top=e+"px")}function g(){var t="";if(targetedCountryName){var e=JSON.parse(localStorage.getItem(i.h)),o=e?e.country:"ca";""===geoAPIEndPoint&&(o=targetedCountryName),t=function(t,e){var i=Object(r.c)(),o=Object(r.b)(),a="";""!==h&&""!==n&&""!==u&&""!==d&&(a=f===l?"//"+window.location.host+h+"?language="+n+"&lob="+u+"&channel="+d+"&countryCode="+t+"&provinceStateCode="+e+"&deviceType="+i+"&browserType="+o:"//"+window.location.host+h+"/"+n+"/"+u+"/"+d+"/"+t+"/"+e+"/"+o+"/"+i);return a}(o,e?e.province:"on")}return t}function y(e){var n="";if(Object.keys(e.alertMessages).length>0){for(var i=0;i<1;i++)if(S(e.alertMessages[i])){n=w(e.alertMessages[i],i);var o=Object(r.d)(n);t.appendChild(o),_()}m()}else v()}function v(){t.classList.add("hidden");var e=document.querySelector(".cmp-floating-container");null!==e&&e.style.removeProperty("top"),m(),document.dispatchEvent(new Event("emsClosed"))}function b(){var t;null===(t=document.querySelector("#captured-focus"))||void 0===t||t.focus()}function x(t){void 0!==t.keyCode&&(t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||(b(),v()))}function _(){var e=t.querySelector("#cmp-emergency-message-close");e.setAttribute("aria-label",p),e.addEventListener("click",(function(){b(),v()})),e.addEventListener("keydown",x)}function S(t){var e=!0;if(""!==t.frequencyCappingFlag&&!1!==t.frequencyCappingFlag){var n=t.frequencyCappingNumber,i=t.messageID;null!==localStorage.getItem("frequencyCap-"+i)&&localStorage.getItem("frequencyCap-"+i)>=1?localStorage.setItem("frequencyCap-"+i,localStorage.getItem("frequencyCap-"+i)-1):null===localStorage.getItem("frequencyCap-"+i)?localStorage.setItem("frequencyCap-"+i,n-1):(e=!1,v(
1))}return e}function w(e,n){var i=function(t){var e=[];switch(t.messageType){case a:e.push("td-icon-approved","cmp-emergency-message__section--success-bg-color");break;case c:e.push("td-icon-error","cmp-emergency-message__section--warning-bg-color");break;case s:e.push("td-icon-error","cmp-emergency-message__section--alert-bg-color")}return e}(e);t.classList.add(i[1]);var r='<div id="cmp-emergency-message-section-'+n+'" class="aem-Grid aem-Grid--12 cmp-emergency-message__section cmp-emergency-message__noheader_section">';return r+='<div class="cmp-emergency-message__icon aem-GridColumn aem-GridColumn--default--1">',r+='<span class="td-icon '+i[0]+' cmp-emergency-message__icon--regular" aria-hidden="true"></span>',r+='</div><div class="aem-GridColumn cmp-emergency-message__text aem-GridColumn--default--10">',r+='<div class="cmp-text">'+e.messageText+"</div>",r+='</div><div class="cmp-emergency-message__icon--close aem-GridColumn aem-GridColumn--default--1">',r+='<span id="cmp-emergency-message-close" class="td-icon td-icon-close cmp-emergency-message__icon--regular" role="button" tabindex="0"></span>',r+="</div></div>"}function A(t){console.log(t)}}return{init:function(){t()}}}();"loading"!==document.readyState?u().init():window.addEventListener("load",u.init)},function(t,e,n){"use strict";var i=n(16),r=n(26),o=n(1),a=n(0);function c(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l=function(){var t,e,n,s,l,u,d,h,f=document.querySelectorAll(".cmp-single-tier-filter__container-filter-buttons__block-container__label"),p=document.querySelector(".cmp-compare-product .cmp-compare-product__container"),m=document.querySelector(".cmp-simplified-compare-product .cmp-simplified-compare-product__container"),g=document.querySelector(".cmp-multi-tier-filter__dropdown"),y=document.querySelector(".cmp-multi-tier-filter__dropdown button"),v=document.querySelector(".cmp-multi-tier-filter__dropdown .helper-text"),b=document.querySelector(".cmp-multi-tier-filter__dropdown button .placeholder"),x=document.querySelector(".cmp-multi-tier-filter__mobile-status-message"),_=document.querySelector(".cmp-multi-tier-filter__container-second-level-filter-buttons__block"),S=document.querySelector(".filter-result"),w=document.querySelector(".cmp-multi-tier-filter"),A=[],E="",L="";if(null!==g){window.addEventListener("load",(function(t){T(t)}));var k,C=w.offsetWidth;window.addEventListener("resize",(function(t){var e=w.offsetWidth;null!==g&&e!==C&&(clearTimeout(k),k=setTimeout((function(){T(t),C=e,O()}),100))})),y.addEventListener("click",(function(t){t.stopPropagation(),"true"===y.getAttribute("aria-expanded")?M():(y.classList.add("showDropdown"),y.setAttribute("aria-expanded",!0),_.style.display="flex",_.style.top="-".concat(v.offsetHeight+20,"px"),O(),y.focus())})),document.addEventListener("click",(function(t){!y.contains(t.target)&&!_.contains(t.target)&&w.offsetWidth<a.l.SM?M():_.style.display="flex"}))}function T(t){w.offsetWidth<a.l.SM?(_.classList.add("buttons-dropdown"),_.setAttribute("aria-labelledby","filterDropdown"),_.style.display="none",_.querySelectorAll(".cmp-text").forEach((function(t){t.querySelector("input").removeAttribute("aria-live")}))):(_.classList.remove("buttons-dropdown"),_.removeAttribute("aria-labelledby"),_.style.display="flex",_.querySelectorAll(".cmp-text").forEach((function(t){t.querySelector("input").setAttribute("aria-live","assertive")}))),z(u,S),"load"===t.type&&function(){d=null!==y.getAttribute("data-multi-select")?JSON.parse(y.getAttribute("data-multi-select")):null,h=null!==y.getAttribute("data-single-select")?JSON.parse(y.getAttribute("data-single-select")):null,y.setAttribute("aria-expanded",!1),void 0===A||0===A.length?b.textContent=null!==d?d.hintTextMulti:h.hintTextSingle:b.textContent="".concat(A[0]);null!==d?(_.querySelectorAll('input[type="checkbox"]').forEach((function(t){t.addEventListener("change",(function(e){!function(t,e,n){t.stopPropagation(),e.checked?A.push(e.value):A=A.filter((function(t){return t!==e.value}));setTimeout((function(){0===A.length?(b.textContent="".concat(n.hintTextMulti),L="".concat(n.dropdownLabelMulti+" : "+n.hintTextMulti),b.setAttribute("aria-label",L)):1===A.length?function(t,e){_.querySelectorAll('input[type="checkbox"]').forEach((function(n){if(n.value===t){var i=n.nextElementSibling;i&&(b.textContent=i.querySelector("p").innerText.trim(),L="".concat(e.dropdownLabelMulti+" : "+b.textContent),b.setAttribute("aria-label",L))}}))}(A[0],n):A.length===_.querySelectorAll('input[type="checkbox"]').length-_.querySelectorAll('input[type="checkbox"]:disabled').length?(b.textContent="".concat(n.allSelectedMulti),L="".concat(n.dropdownLabelMulti+" : "+n.allSelectedMulti),b.setAttribute("aria-label",L)):(b.textContent="".concat(A.length+" "+n.selectedLabelMulti),L="".concat(n.dropdownLabelMulti+" : "+A.length+" "+n.selectedLabelMulti),b.setAttribute("aria-label",L))}),100)}(e,t,d),O()}))})),b.setAttribute("aria-label","".concat(d.dropdownLabelMulti+" : "+b.textContent))):(["click","change"].forEach((function(t){_.querySelectorAll('input[type="radio"]').forEach((function(e){e.addEventListener(t,(function(t){t.stopPropagation(),e.checked&&(A[0]=e.value),function(t,e){_.querySelectorAll('input[type="radio"]').forEach((function(n){if(n.value===t){var i=n.nextElementSibling;i&&(b.textContent=t[0].length>0?"".concat(i.querySelector("p").innerText.trim()):"".concat(e.hintTextSingle),L="".concat(e.dropdownLabelSingle+" : "+b.textContent),b.setAttribute("aria-label",L))}}))}(A[0],h),w.offsetWidth<a.l.SM&&(M(),y.focus()),O()}))}))})),b.setAttribute("aria-label","".concat(h.dropdownLabelSingle+" : "+b.textContent)))}(),I()}function M(){var t;y.classList.remove("showDropdown"),y.setAttribute("aria-expanded",!1),_.style.display="none",null===(t=S.querySelector("p .disabled-text"))||void 0===t||t.setAttribute("aria-hidden","true")}function q(){null!==g&&(A=[],null!==d?(b.textContent=d.hintTextMulti,b.setAttribute("aria-label","".concat(d.dropdownLabelMulti+" : "+b.textContent))):(b.textContent=h.hintTextSingle,b.setAttribute("aria-label","".concat(h.dropdownLabelSingle+" : "+b.textContent))),x.classList.remove("visible"),E="",I())}function I(){y.setAttribute("aria-expanded",!1),y.classList.remove("showDropdown")}function O(){setTimeout((function(){_.querySelectorAll(".cmp-multi-tier-filter__container-second-level-filter-buttons__block-container input:disabled").length>0&&w.offsetWidth<a.l.SM?(x.classList.add("visible"),E="<span class='visually-hidden disabled-text' aria-hidden='false'>".concat(x.querySelector("p").innerText,"</span>")):(x.classList.remove("visible"),null!==S.querySelector("p .disabled-text")&&(S.querySelector("p .disabled-text").innerHTML=""),null!==S.querySelector("p .disabled-text")&&S.querySelector("p .disabled-text").setAttribute("aria-hidden","true"),E="")}),100),setTimeout((function(){null!==S.querySelector("p .disabled-text")&&S.querySelector("p .disabled-text").setAttribute("aria-hidden","true")}),2e3)}if(null!==f&&(f.forEach((function(t){!0===t.previousElementSibling.checked&&D(f,null),t.addEventListener("click",(function(){D(f,null)})),t.previousElementSibling.addEventListener("change",(function(){D(f,null)}))})),f.length>0&&window.addEventListener("resize",(function(){N()}))),null!==w){var P=w.querySelectorAll(".cmp-multi-tier-filter__container-first-level-filter-buttons__block-container__label");l=w.querySelectorAll(".cmp-multi-tier-filter__container-second-level-filter-buttons__block-container__label"),null!==P&&(P.forEach((function(t,e){!0===t.previousElementSibling.checked&&D(P,w),t.addEventListener("click",(function(){F(),q(),D(P,w)}
1)),t.previousElementSibling.addEventListener("change",(function(){F(),q(),D(P,w)}))})),window.addEventListener("resize",(function(){N()})),null!==p?(R(w,"compareProduct",i.a,i.c,i.b,S),H(w,"compareProduct",i.a,i.c,i.b,S)):null!==m&&(R(w,"simplifiedCompareProduct",r.a,r.b,G,S),H(w,"simplifiedCompareProduct",r.a,r.b,G,S)))}function N(){null!==p?Object(i.b)():null!==m&&G()}function D(t,e){return null!==p?B(t,u=p.querySelectorAll(".compareProduct"),"compareProduct",i.a,i.c,i.b,S,e):null!==m?B(t,u=m.querySelectorAll(".simplifiedCompareProduct"),"simplifiedCompareProduct",r.a,r.b,G,S,e):void 0}function B(e,n,i,r,a,l,d,h,f){var g=[];setTimeout((function(){null!==e&&e.forEach((function(t){!0===t.previousElementSibling.checked&&g.push(t.previousElementSibling.value)})),null!==n&&function(t,e){t.forEach((function(t){var n;(s=null===(n=t.getAttribute("data-filter"))||void 0===n?void 0:n.split(","))&&e.every((function(t){return s.indexOf(t)>=0}))?(t.classList.remove("hidden"),t.removeAttribute("hidden"),t.classList.add("fadeEffect")):(t.classList.add("hidden"),t.setAttribute("hidden","hidden"),t.classList.remove("fadeEffect"))}))}(n,g),null!==d&&z(u,d);var y=null;null!==p?y=p:null!==m&&(y=m),y&&o.g.compLazyImgRedraw(y),r(),a(),l(),function(e,n,i){if(null!==n&&"checkboxFilter"!==i){var r=[];null!==(t=document.querySelectorAll(".".concat(e,":not(.hidden)")))&&t.forEach((function(t){r.push(t.getAttribute("data-filter").split(","))})),r=c(new Set(r.flat())),j(n,r)}else if("checkboxFilter"===i){var o=[];null!==t&&t.forEach((function(t){t.classList.contains("hidden")||o.push(t.getAttribute("data-filter").split(","))})),o=c(new Set(o.flat())),j(n,o)}}(i,h,f)}),10)}function j(t,e){null!==(l=t.querySelectorAll(".cmp-multi-tier-filter__container-second-level-filter-buttons__block-container__label"))&&l.forEach((function(t){s=t.previousElementSibling.getAttribute("id"),e.indexOf(s)>=0?t.previousElementSibling.removeAttribute("disabled","disabled"):t.previousElementSibling.setAttribute("disabled","disabled")}))}function R(e,n,i,r,o,a){null!==e.querySelector(".cmp-multi-tier-radio-button")&&l.forEach((function(e){e.addEventListener("click",(function(){B(l,t,n,i,r,o,a,null)})),e.previousElementSibling.addEventListener("change",(function(){B(l,t,n,i,r,o,a,null)}))}))}function H(e,n,i,r,o,c){null!==e.querySelector(".cmp-multi-tier-checkbox-button")&&l.forEach((function(s){s.addEventListener("click",(function(){B(l,t,n,i,r,o,c,e,"checkboxFilter")})),function(e,n,i,r,o,c,s){["click","keypress"].forEach((function(u){e.previousElementSibling.addEventListener(u,(function(e){"click"!==u&&("keypress"!==u||e.keyCode!==a.m.ENTER&&e.keyCode!==a.m.SPACE)||B(l,t,i,r,o,c,s,n,"checkboxFilter")}))}))}(s,e,n,i,r,o,c)}))}function z(t,i){e=0,n=0,t.forEach((function(t){t.classList.contains("hidden")||(e+=1),n+=1})),setTimeout((function(){var t=null!==i.getAttribute("data-result-term1")?i.getAttribute("data-result-term1"):"",r=null!==i.getAttribute("data-result-term2")?i.getAttribute("data-result-term2"):"",o=null!==i.getAttribute("data-result-term3")?i.getAttribute("data-result-term3"):"";i.querySelector("p").innerHTML="".concat(E," <span aria-hidden='false'>").concat(t," <b> ").concat(e," </b> ").concat(r," <b> ").concat(n," </b> ").concat(o,"</span> ")}),100)}function F(){l.forEach((function(t){t.previousElementSibling.checked=!1}))}function G(){var t=document.querySelectorAll(".simplifiedCompareProduct:not(.hidden)");window.innerWidth>=a.l.MD?W(t,3):window.innerWidth>=a.l.SM&&window.innerWidth<a.l.MD?W(t,2):W(t,1)}function W(t,e){for(var n=0;n<t.length;n++)(n+1)%e==0?(t[n].classList.remove("border-Right"),t[n].classList.add("remove-border-Right")):(t[n].classList.remove("remove-border-Right"),t[n].classList.add("border-Right"))}},u=function(){var t,e=document.querySelectorAll(".cmp-multi-tier-filter");if(e&&0!=e.length&&(t=c(e)),window.innerWidth>=a.l.SM){if(!t)return;t.forEach((function(t){var e=t.querySelector(".cmp-multi-tier-filter__container-first-level-filter-buttons__block");Object(o.e)(".cmp-multi-tier-filter__container-first-level-filter-buttons__block-container__label",".cmp-multi-tier-filter__container-first-level-filter-buttons__block-container",e.id)}))}};["load","resize"].forEach((function(t){"resize"===t?window.addEventListener(t,(function(){u()}
1)):window.addEventListener(t,Object(o.a)((function(){u()}),500))})),"loading"!==document.readyState?l():document.addEventListener("DOMContentLoaded",l)},function(t,e){var n,i,r,o,a;n=function(t,e){var n=t.closest(".experiencefragment");n&&e&&e.insertBefore(n,e.firstChild)},i=function(t){var e=document.querySelector(".cmp-floating-container"),n=document.querySelector("#main");e&&(e.style.top="".concat(t.offsetHeight,"px")),n&&(n.style.paddingTop="".concat(t.offsetHeight,"px"))},r=function(){var t=Math.round((window.outerWidth-10)/window.innerWidth*100),e=document.querySelector("header"),n=document.querySelector("#main"),i=document.querySelector(".cmp-floating-container");e&&(t>=200?o(e,i,n):a(e,i,n))},o=function(t,e,n){t.style.position="relative",e&&(e.style.position="relative",e.style.top="0px"),n&&setTimeout((function(){n.style.paddingTop="0px"}),500)},a=function(t,e,n){t.style.position="fixed",e&&(e.style.position="fixed",e.style.top="".concat(t.offsetHeight,"px")),n&&setTimeout((function(){n.style.paddingTop="".concat(t.offsetHeight,"px")}),500)},document.addEventListener("DOMContentLoaded",(function(){var t=document.querySelector(".cmp-fdic-message"),e=document.querySelector("header.experiencefragment .cmp-container"),o=t&&t.closest("header");t&&!o&&(n(t,e),i(e)),r()})),window.addEventListener("resize",r)},function(t,e,n){"use strict";var i=n(1);function r(){if(null!==document.querySelector(".cmp-featured-grid-block-lg")||null!==document.querySelector(".cmp-featured-grid-block-sm")){document.querySelectorAll(".cmp-featured-grid-block-lg__block-heading__button").forEach((function(t){t.addEventListener("click",(function(t){this.parentElement.nextElementSibling.style.display="table",this.parentElement.nextElementSibling.focus(),this.parentElement.style.display="none"}))}));var t=document.querySelectorAll(".cmp-featured-grid-block-lg__hover-container"),e=document.querySelector(".overlay-video-modal");t.forEach((function(t){t.addEventListener("blur",(function(t){e.classList.contains("hidden")&&(this.style.display="none",this.previousElementSibling.style.display="block")}))}))}}"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r),["load","resize"].forEach((function(t){window.addEventListener(t,Object(i.a)((function(){!function(){var t=document.querySelector(".cmp-featured-grid-block-sm");if(null!==t){var e=t.querySelector(".cmp-featured-grid-block-sm__small-tile-column").offsetHeight;t.querySelector(".big-tile-tablet-image").style.minHeight=e+"px",t.querySelector(".cmp-featured-grid-block-sm__hover-last-block-tablet").offsetHeight>=t.querySelector(".cmp-featured-grid-block-sm__small-tile-column").offsetHeight?t.querySelector(".cmp-featured-grid-block-sm__hover-last-block-tablet").style.top="0px":t.querySelector(".cmp-featured-grid-block-sm__hover-last-block-tablet").style.top="auto"}}(),null!==document.querySelector(".cmp-featured-grid-block-lg__play-icon")&&document.querySelectorAll(".cmp-featured-grid-block-lg__play-icon").forEach((function(t){var e=t.parentElement.parentElement.offsetHeight-t.parentElement.nextElementSibling.offsetHeight;t.style.top=e/2+"px"}))})),500)}))},function(t,e,n){"use strict";var i=n(0),r=n(6),o={init:function(){var t=document.querySelectorAll(".".concat("cmp-featured-product",':not([data-component-state="initialized"])'));t.length>0&&t.forEach((function(t){!function(t){var e=document.querySelectorAll(".featured-product-table");if(e&&e.forEach((function(t){var e=t.querySelector("table");"true"===t.getAttribute("data-role")&&e&&e.setAttribute("role","presentation")})),null!==t.querySelector(".compare-checkbox-section")&&null!==t.querySelector(".checkbox-input")&&null!==document.querySelector(".compare-sticky-drawer")){var n=Object(i.W)(t),o=t.querySelectorAll(".cmp-image__image");setTimeout((function(){o.forEach((function(t){null!==t.offsetParent&&(n.selectedProdImage=t)}))}),500),n.checkboxInput.setAttribute("id",n.prodType+"_"+n.prodId),n.checkboxLabel.setAttribute("for",n.prodType+"_"+n.prodId),Object(i.P)(n),r.a.updateCheckboxStatus(n)}}(t),t.setAttribute("data-component-state","initialized"),r.a.disableCompareCheckBox(!0,3,2)}))}};"loading"!==document.readyState?o().init():document.addEventListener("DOMContentLoaded",o.init)},function(t,e,n){"use strict";var i=n(0),r=function(){function t(t){var e=t.querySelector("#cmp-feedback__self-help-form--select-yes"),n=t.querySelector("#cmp-feedback__self-help-form--select-no"),r=t.querySelector(".cmp-feedback__feed-yes-success-msg"),o=t.querySelector(".cmp-feedback__feed-no-success-msg"),a=t.querySelector(".cmp-feedback__feedback-no-container"),c=t.querySelector("#cmp-feedback__submit--button"),s=t.querySelector(".cmp-feedback__textarea_width_height");function l(){e&&(e.disabled=!0),n&&(n.disabled=!0)}function u(){var t;
1l(),e.setAttribute("aria-checked","true"),t=r.querySelector(".cmp-feedback__thank-you-positive-title"),f(r),t.focus(),setTimeout((function(){t.setAttribute("tabindex","-1")}),100)}function d(){var e=navigator.userAgent.toLowerCase();l(),s.value="",n.setAttribute("aria-checked","true"),f(a);var r=t.querySelector(".cmp-feedback__negative-feedback-title-message");e.indexOf(i.r.ANDROID)>-1&&r&&r.removeAttribute("aria-describedby"),r&&r.setAttribute("tabindex","-1"),r&&r.focus()}function h(){var e;f(a),e=t.querySelector(".cmp-feedback__thank-you-negative-title"),f(o),e.focus(),setTimeout((function(){e.setAttribute("tabindex","-1")}),100)}function f(t){t&&t.classList.toggle("hidden")}e&&e.addEventListener("click",u),n&&n.addEventListener("click",d),c&&c.addEventListener("click",h)}return{init:function(){var e=document.querySelectorAll('.cmp-feedback:not([data-component-state="initialized"])');e.length>0&&e.forEach((function(e){t(e),e.setAttribute("data-component-state","initialized")}))}}}();"loading"!==document.readyState?r().init():document.addEventListener("DOMContentLoaded",r.init)},function(t,e,n){"use strict";var i=n(0),r=n(1),o=n(5);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l=[],u=[],d=[],h=[],f=9,p=[],m=[],g=[],y="",v="",b="",x="",_="",S="",w="all",A="",E="topics-all-topic",L="topics-all-topic_modal",k=[],C=[],T=document.body,M=0,q="",I="",O="",P="",N=!1,D={code:"",Extend:function(t){t=t||{},D.size=t.size||0,D.page=t.page||1,D.step=t.step||9},Add:function(t,e){if(D.size>1)for(var n=document.getElementById("article-pagination"),i=t;i<e;i++)D.code+='<li><a href="javascript:void(0);" aria-current="false" aria-label="'+n.getAttribute("data-pagelabel")+i+'"><span class="page-num">'+i+"</span></a></li>"},Last:function(){var t=document.getElementById("article-pagination");D.code+='<li><span aria-hidden="true" class="page-ellipse">...</span><span class="visually-hidden">'+t.getAttribute("data-ellipse")+'</span></li><li><a href="javascript:void(0);" aria-current="false" aria-label="'+t.getAttribute("data-pagelabel")+D.size+'"><span class="page-num">'+D.size+"</span></a></li>"},First:function(){var t=document.getElementById("article-pagination");D.code+='<li><a href="javascript:void(0);" aria-current="false" aria-label="'+t.getAttribute("data-pagelabel")+'1"><span class="page-num">1</span></a><li><li><span class="page-ellipse" aria-hidden="true">...</span><span class="visually-hidden">'+t.getAttribute("data-ellipse")+"</span></li>"},Click:function(){D.page=+Number(this.querySelector(".page-num").innerHTML),D.Start(),D.Scroll()},Prev:function(){D.page--,D.page<1&&(D.page=1),D.Start(),D.Scroll()},Next:function(){D.page++,D.page>D.size&&(D.page=D.size),D.Start(),D.Scroll()},Bind:function(){for(var t=document.getElementById("article-pagination"),e=D.e.getElementsByTagName("a"),n=0;n<e.length;n++)+e[n].querySelector(".page-num").innerHTML===D.page&&(e[n].className="active",e[n].setAttribute("aria-current",t.getAttribute("data-pagelabel"))),e[n].addEventListener("click",D.Click,!1),e[n].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||(D.page=+Number(this.querySelector(".page-num").innerHTML),D.Start(),D.Scroll())}),!1)},Finish:function(){D.code&&(D.e.innerHTML=D.code,D.code="",D.Bind())},Start:function(){D.size<6?D.Add(1,D.size+1):D.page<2*D.step+1?D.size>5?(D.Add(1,2*D.step+2),D.Last()):D.Add(1,D.size+1):D.page>D.size-2*D.step?D.size>5&&D.page>5?(D.First(),D.Add(D.size-2,D.size+1)):D.Add(1,D.size+1):(D.page>3?D.First():D.Add(1,D.page),D.page-D.step==2?D.Add(3,D.page+D.step+1):D.size-D.page==2?4==D.page&&6==D.size?D.Add(3,D.size+1):D.Add(D.page-D.step,D.size+1):D.Add(D.page-D.step,D.page+D.step+1),D.size-D.page>2&&D.Last()),Q(p,document.getElementById("article-list"),f,D.page),Z();var t=document.getElementById("article-pagination");if(D.size>1){var e=document.getElementsByClassName("articleanchorprev")[0],n=document.getElementsByClassName("articleanchor")[0];if(e){var i=t.getAttribute("data-prev");1==D.page?(e.classList.add("visually-hidden"),e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")):(e.classList.remove("visually-hidden"),e.setAttribute("aria-hidden","false"),e.setAttribute("aria-label",i),e.setAttribute("tabindex","0"))}if(n){var r=t.getAttribute("data-next");D.page==D.size?(n.classList.add("visually-hidden"),n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex","-1")):(n.classList.remove("visually-hidden"),n.setAttribute("aria-hidden","false"),n.setAttribute("aria-label",r),n.setAttribute("tabindex","0"))}}D.Finish()},Buttons:function(t){if(D.size>1){var e=t.getElementsByTagName("a");e[0].addEventListener("click",D.Prev,!1),e[1].addEventListener("click",D.Next,!1),e[0].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||D.Prev()}),!1),e[1].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||D.Next()}),!1)}},Create:function(t){var e=[];e=D.size>1?['<a role="link" aria-label="previous page" tabindex="0" class="articleanchorprev td-icon td-icon-leftCaret"></a>','<ol role="navigation" class="article-pagination-view"></ol>','<a role="link" aria-label="next page" tabindex="0" class="articleanchor td-icon td-icon-rightCaret"></a>']:["<span></span>"],t.innerHTML=e.join(""),D.e=t.getElementsByTagName("ol")[0],D.Buttons(t)},Init:function(t,e){D.Extend(e),D.Create(t),D.Start()},Scroll:function(){var t=document.getElementById("resultsContainer"),e=t.parentElement.parentElement.offsetTop,n=document.getElementsByTagName("header")[0],i=e-(n?n.clientHeight:0);t.focus(),window.scrollTo({top:i,behavior:"smooth"})}},B=function(t,e){var n=new XMLHttpRequest;n.overrideMimeType("application/json"),n.open("GET",t,!0),n.onreadystatechange=function(){4===n.readyState&&"200"==n.status&&e(n.responseText)},n.send(null)},j=function(t){if(document.getElementById("strategies-spinner")){var e=document.getElementById("strategies-spinner");e.style.display="show"==t?"block":"none"}},R=function(t){if(t){var e=(l=t.tablist).filter((function(t){return t.mediatypeIds.length>1})).pop(),n=[];if(e&&(n=t.articleData.filter((function(t){return t.properties.filter((function(t){return e.mediatypeIds.includes(t.id)})).length>0}))),X()&&Array.isArray(C)&&C.length>0){var i=C.map((function(t){return t.name}));n=n.filter((function(t){var e=t.mediaType.split("/").pop();return i.includes(e)}))}t.articleData.map((function(t,e){return t.id=e+1}
1)),g=n,V(p=n,l),G(p,d),lt(p,l),it()}};function H(t){var e="";return u.forEach((function(n){n.id==t&&(e=n.name)})),e}function z(t){var e="";return d.forEach((function(n){n.id==t&&(e=n.Title)})),e}function F(t){var e="",n=t.substring(t.lastIndexOf("/")+1,t.length);return h.forEach((function(t){t.id.substring(t.id.lastIndexOf("/")+1,t.id.length)==n&&(e=t.Title)})),e}var G=function(t,e){var n=0,i=document.getElementsByClassName("cmp-article-hub")[0],r=e.length,o=document.getElementById("media-type-dropdown"),a=o?o.firstElementChild:"",c=document.getElementById("mediaTypeContainer"),s=document.getElementById("searchContainer");r&&1==r&&null!=c?(c.remove(),s.className="aem-GridColumn aem-GridColumn--default--5 aem-GridColumn--tabletportrait--6 aem-GridColumn--phone--12 search-only"):o&&(o.innerHTML="",o.appendChild(a),e.forEach((function(e){var r=document.createElement("option"),a=e.name,c=e.Title;r.classList.add("cmp-article--filter-dropdown--select-item"),r.setAttribute("value",a),e.name==w&&r.setAttribute("selected",!0);var s=[];t.forEach((function(t){var e=t.mediaType.split("/");a==e[e.length-1]&&s.push(t)})),n=" ("+s.length+")","all"!==a&&i.classList.contains("media-types-count--show")&&(c+=n),r.textContent=c,o.add(r)})))};function W(t,e,n){""!==n&&n.length>1&&ot(t,n);var i=E+"_modal",r=document.getElementById("topic-list"),o=1;window.innerWidth<1024&&(o=0);for(var a=Array.from(r.children),c=function(){var t,n=a[s].innerHTML,o=0;if("all"!=(t=r.children[s].getAttribute("data-id")?r.children[s].getAttribute("data-id"):"btn")&&"btn"!=t){e.forEach((function(e){var n=!1;e.properties.forEach((function(e){e.id==t&&(n=!0)})),n&&(o+=1)}));var c=String(n),l=c.substring(0,c.indexOf("<span>"))+"<span>("+o+")</span>";r.children[s].innerHTML=l,0==o?(r.children[s].classList.add("disabled"),r.children[s].id==E||r.children[s].id==i?r.children[s].classList.add("disabled-selected"):r.children[s].classList.remove("disabled-selected"),r.children[s].setAttribute("aria-hidden","true")):(r.children[s].classList.remove("disabled"),r.children[s].classList.remove("disabled-selected"),r.children[s].setAttribute("aria-hidden","false"))}},s=o;s<a.length;s++)c()}function U(t,e,n){""!==n&&n.length>1&&ot(t,n);for(var i=E+"_modal",r=document.getElementsByClassName("cmp-article-hub"),o=document.getElementById("article-filter-modal-topics").children,a=function(){var t=o[c].children[1].innerHTML,n=0,a=o[c].children[0].getAttribute("data-id");if(o[c].style.pointerEvents="auto","all"!=a){e.forEach((function(t){var e=!1;t.properties.forEach((function(t){t.id==a&&(e=!0)})),e&&(n+=1)}));var s=String(t),l=s.substring(0,s.indexOf("<span>"))+"<span>("+n+")</span>";if(o[c].children[1].innerHTML=l,r&&r[0].classList.contains("topics-count--show")){var u=s.substring(0,s.indexOf("<span>"))+"("+n+")";o[c].children[0].setAttribute("aria-label",u)}0==n?(o[c].children[0].setAttribute("disabled",""),o[c].children[0].id==E||o[c].children[0].id==i?(o[c].children[1].classList.add("disabled-selected"),o[c].style.pointerEvents="none"):(o[c].children[1].classList.remove("disabled-selected"),o[c].style.pointerEvents="none"),o[c].setAttribute("aria-hidden","true")):(o[c].children[0].removeAttribute("disabled"),o[c].children[1].classList.remove("disabled-selected"),o[c].style.pointerEvents="auto",o[c].setAttribute("aria-hidden","false"))}},c=1;c<o.length;c++)a()}function Y(t,e,n){var i=document.getElementsByClassName("cmp-article-hub")[0];""!==n&&n.length>1&&ot(t,n);var r=document.getElementById("media-type-dropdown");if(r)for(var o=Array.from(r.children),a=function(){var t=Array.from(r.children)[c].innerHTML,n=0,o=r.children[c].value;e.forEach((function(t){var e=t.mediaType.split("/");e[e.length-1]==o&&(n+=1)}));var a=String(t);if(i.classList.contains("media-types-count--show")){var s=a.substring(0,a.indexOf("(")+1)+n+")";r.children[c].innerHTML=s}0==n?(r.children[c].setAttribute("disabled",!0),r.children[c].classList.add("disabled"),r.children[c].setAttribute("aria-hidden","true")):(r.children[c].removeAttribute("disabled"),r.children[c].classList.remove("disabled"),r.children[c].setAttribute("aria-hidden","false"))},c=1;c<o.length;c++)a()}var V=function(t,e){var n=document.getElementById("topic-list"),r=document.getElementById("article-more-topics"),o=X()?15:8;f=9;var a=0,c=window.innerWidth;c>1023&&c<1200&&(o=X()?15:8,f=9),c>767&&c<1024&&(o=1,f=6),c<768&&(o=1,f=3),n.innerHTML="";var s="";e.forEach((function(e){var i,r=[];e.mediatypeIds.length>
11?r=t:t.filter((function(t){t.properties.forEach((function(n){n.id==e.mediatypeIds&&(r.push(t),s=H(e.mediatypeIds))}))})),i="("+r.length+")";var c=document.createElement("li"),l="topics-"+s+"-topic",u="";e.mediatypeIds.length>1?(l="topics-all-topic",u="all"):u=e.mediatypeIds,c.setAttribute("id",l),c.setAttribute("data-id",u),c.setAttribute("tabindex","-1"),c.textContent=e.title;var d=r.length;if(d&&(a++,c.addEventListener("click",(function(t){p=r,E=v=l,b=e.title,e.mediatypeIds.length>1&&(b=""),paginationSection.style.display="flex",N=!0,it(),N=!1}))),"topics-all-topic"!==l){c.textContent="".concat(e.title," ");var h=document.createElement("span");h.textContent=i,c.appendChild(h)}if(a>o&&l==E){var f=n.querySelectorAll("li");f[f.length-1].remove(),n.appendChild(c),$(E)}a<=o&&d&&n.appendChild(c)})),n.appendChild(r),r.style.display=e.length>o?"inline-block":"none",p.length?v||(J(),$(E)):rt();for(var l=n.getElementsByTagName("li"),u=function(t){l[t].addEventListener("focus",(function(e){l[t].addEventListener("keydown",(function(e){if(e.keyCode===i.m.ARROW_RIGHT||e.keyCode===i.m.ARROW_LEFT||e.keyCode===i.m.ARROW_UP||e.keyCode===i.m.ARROW_DOWN){var n=l[t];if(e.keyCode===i.m.ARROW_RIGHT||e.keyCode===i.m.ARROW_DOWN)for(var r=n.nextElementSibling;r&&"LI"==r.tagName;){if(!r.classList.contains("disabled")){r.focus();var o=r.getAttribute("id");document.getElementById(o).click();break}r=r.nextElementSibling}else for(var a=n.previousElementSibling;a&&"LI"==a.tagName;){if(!a.classList.contains("disabled")){a.focus();var c=a.getAttribute("id");document.getElementById(c).click();break}a=a.previousElementSibling}}}))}))},d=0;d<l.length;d++)u(d)},X=function(){var t=window.location.hostname;return t.includes("tdinsurance.com")||t.includes("tdassurance.com")};window.addEventListener("resize",(function(t){document.querySelectorAll(".cmp-article-hub").length>0&&M!==window.innerWidth&&setTimeout((function(){V(g,l),G(g,d),lt(g,l),N=!0,it(),N=!1,p.length>0&&J(),p.length>1&&nt(),M=window.innerWidth}),300)}));var $=function(t){document.getElementById("topic-list").querySelectorAll("li").forEach((function(e){e.getAttribute("id")==t?(e.classList.add("active-article-topic"),e.setAttribute("tabindex","0")):(e.classList.remove("active-article-topic"),e.setAttribute("tabindex","-1"))}))},K=function(t){document.getElementById("article-filter-modal-topics").querySelectorAll("input").forEach((function(e){e.getAttribute("id")==t?(e.classList.add("active-article-topic"),e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0"),e.checked=!0):(e.classList.remove("active-article-topic"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false"),e.checked=!1,e.classList.contains("disabled-selected")&&e.classList.remove("disabled-selected")),e.parentElement.addEventListener("focusin",(function(t){this.style.outline="1px dotted #1C1C1C"})),e.parentElement.addEventListener("focusout",(function(t){this.style.outline="none"}))}))},J=function(){var t=document.getElementById("article-list"),e=document.getElementById("article-pagination"),n=document.getElementById("totalNoPages"),i=document.getElementsByClassName("cmp-article-page-number")[0],r=document.getElementsByClassName("cmp-article--pagination-top-container")[0];n.innerHTML="",t.innerHTML="",e.innerHTML="";var o=Math.ceil(p.length/f);n.innerHTML="<strong>"+o+"</strong>",I=p.length,O=document.getElementById(E).innerText.split("(")[0],P=A,r.querySelectorAll("span.article-hide").forEach((function(t){t.classList.remove("article-hide")})),0==p.length?i.classList.add("article-hide"):i.classList.remove("article-hide"),D.Init(e,{size:o,page:1,step:1})},Z=function(){var t=document.getElementById("resultsContainer"),e=document.createElement("div");e.classList.add("visually-hidden"),e.innerHTML=t.innerHTML,t.innerHTML="",t.parentElement.append(e);var n=document.getElementById("noOfResults"),i=document.getElementById("totalArticles"),r=document.getElementById("categoryViewed"),o=document.getElementById("searchText");n.textContent="";var a=document.createElement("strong");a.textContent=q,n.appendChild(a),i.textContent="";var c=document.createElement("strong");c.textContent=I,i.appendChild(c),r.innerHTML="<strong>"+O+"</strong>",""!=P?(o.innerHTML="<strong>"+P+"</strong>",o.previousElementSibling.classList.remove("article-hide")):(o.previousElementSibling.classList.add("article-hide"),o.innerHTML=""),0==I&&(i.classList.add("article-hide"),i.previousElementSibling.classList.add("article-hide")),t.innerHTML=e.innerHTML,e.remove()},Q=function(t,e,n,i){var r=document.getElementById("currentPageNo");e.innerHTML="",r.innerHTML="",r.innerHTML=0==p.length?0:"<strong>"+i+"</strong>";var o,a=n*--i,s=a+n,l=a+n>t.length?t.length:a+n,u=t.slice(a,s);m=u,o=0==p.length?0:a+1==l?a+1:a+1+" â "+l,q=o;for(var d=0;d<u.length;d++){var h=u[d],f=document.createElement("div");f.classList.add("item"),f.classList.add("aem-GridColumn"),f.classList.add("aem-GridColumn--default--4","aem-GridColumn--phone--12","aem-GridColumn--tabletportrait--6");var g="",y="",v=h.headline,x=h.shortDescription;h.image?(g=h.image,y=h.imageAltText):g=_;h.authorDetails&&'<div class="display-author">'+h.authorDetails+"</div>";var S=!0;if(h.mentionTime&&""!=h.mentionTime.trim()||(S=!1),v&&v.length>0&&(window.innerWidth<768&&v.length>60?v=v.substring(0,60)+"...":window.innerWidth>=768&&v.length>90&&(v=v.substring(0,90)+"...")),x&&x.length>0){var E=x.substring(0,x.lastIndexOf("</p>"));window.innerWidth<768&&E.length>173?x=E.substring(0,173)+"...</p>":window.innerWidth>=768&&E.length>193&&(x=E.substring(0,193)+"...</p>")}var L="_self",k=String(h.pageLink||"").trim(),C=(/^(javascript|data|vbscript):/i.test(k)?"#":k).split("~");"newtab"==C[1]&&(L="_blank");var T=C[0]||"#",M=document.createElement("div");M.classList.add("cmp-article--clickable-article-block");var I=document.createElement("a");I.setAttribute("tabindex","-1"),I.setAttribute("aria-hidden","true"),I.classList.add("cmp-article--clickable-article-block--link"),I.setAttribute("href",T),I.setAttribute("target",L);var O=document.createElement("div");O.classList.add("cmp-article--clickable-article-block--img"),O.setAttribute("data-cmp-is","image"),O.setAttribute("data-cmp-lazy",""),O.setAttribute("data-cmp-lazythreshold","0"),O.setAttribute("data-cmp-src",g);var P=document.createElement("noscript");P.setAttribute("data-cmp-hook-image","noscript"),P.textContent='<img title="'+y+'" alt="'+y+'" src="'+g+'" data-cmp-hook-image="image"/>',O.appendChild(P);var N=document.createElement("div");N.classList.add("cmp-article--clickable-article-block--content");var D=document.createElement("p");D.classList.add("article-topic","display-topic"),D.textContent=b;var B=document.createElement("p");B.classList.add("media-type-mention");var R=document.createElement("span");R.setAttribute("aria-hidden","true"),R.classList.add("display-icon","td-icon");var H=F(h.mediaType);H&&R.classList.add(H);var G=document.createElement("span");G.classList.add("display-media-type"),G.textContent=" "+z(h.mediaType);var W=document.createElement("span");W.classList.add("divider"),W.textContent="|";var U=document.createElement("span");U.classList.add("display-time"),U.textContent=" "+h.mentionTime,B.appendChild(R),B.appendChild(G),B.appendChild(document.createTextNode(" ")),B.appendChild(W),B.appendChild(document.createTextNode(" ")),B.appendChild(U);var Y=document.createElement("h2"),V=document.createElement("a");V.setAttribute("href",T),V.setAttribute("target",L),V.textContent=v,Y.appendChild(V);var X=document.createElement("p");X.textContent=String(x||"").replace(/<[^>]*>/g,"");var $=document.createElement("p");if($.classList.add("article-date","display-date"),$.textContent=h.publicationDate,N.appendChild(D),N.appendChild(B),N.appendChild(Y),""!==X.textContent.trim()&&N.appendChild(X),h.authorDetails){var K=document.createElement("div");K.classList.add("display-author"),K.textContent=h.authorDetails,N.appendChild(K)}if(N.appendChild($),M.appendChild(I),M.appendChild(O),M.appendChild(N),f.appendChild(M),e.appendChild(f),j("hide"),!S)f.getElementsByClassName("divider")[0].remove()}0==t.length?rt():(tt(),setTimeout((function(){et()}),500),setTimeout((function(){t.length>1&&nt()}),500)),function(){window.tms_tag=window.tms_tag||[];var t=document.querySelectorAll(".cmp-article--article-list-container .cmp-article--clickable-article-block"),e=document.querySelector(".cmp-article--article-list-container").getAttribute("data-cmp-datalayer-flag");if(null!==t&&e){var n,i=c(t);try{for(i.s();!(n=i.n()).done;){n.value.addEventListener("pointerdown",(function(){var t,e=null===(t=this.querySelector("h2"))||void 0===t?void 0:t.innerText,n=document.getElementById("topic-list").querySelector(".active-article-topic").innerText.replace(/\n\(\d+\)/,""),i=w||"",r=A||"",o=document.getElementById("currentPageNo").innerText;tms_tag.push({event:"linkClick",link:{name:e,type:"link",appliedFilter:[n,i,r,o
1]}})}))}}catch(t){i.e(t)}finally{i.f()}}}()},tt=function(){for(var t=document.getElementsByClassName("cmp-article--clickable-article-block"),e=t[0].clientWidth/1.5,n=document.getElementsByClassName("cmp-article--clickable-article-block--img"),i=0;i<t.length;i++)n[i].style.height=e+"px",n[i].style.backgroundColor="#F3F3F3"};var et=function(){for(var t=document.getElementsByClassName("cmp-article--clickable-article-block"),e=(t.length>0?t[0].clientWidth:0)/1.5,n=0;n<t.length;n++){var i=t[n].getElementsByTagName("img")[0],o=Math.round(i.width/i.height*10)/10;o>1.5?(i.style.maxWidth="none",i.style.height=e+"px",i.style.width="auto"):o<1.5&&(i.parentElement.style.height=e+"px"),i.style.display="block"}r.g.lazyLoadingEqualHeight("cmp-article--clickable-article-block--img img",et)},nt=function(){var t=window.innerWidth,e=3;if(t>=768&&t<1024&&(e=2),t>=768)for(var n,i,r=0,o=Math.ceil(m.length/e),a=m.length%e,c=e,s=document.getElementsByClassName("cmp-article--clickable-article-block"),l=0;l<o;l++){r=0,(0!=l&&l==o-1&&0!=a||1==o&&0!=a)&&(c=a);for(var u=0;u<c;u++)s[e*l+u]&&(n=Number(s[e*l+u].clientHeight)),r<n&&(r=n),i=r;for(var d=0;d<c;d++)s[e*l+d].style.height=i+"px"}},it=function(){var t=document.getElementById("article-filter-search-close"),e=document.getElementById("article-filter-search-icon"),n=document.getElementById(E).getAttribute("data-id"),i=g,r=[],o=[],a=[];"all"!==n?i.forEach((function(t){t.properties.forEach((function(e){e.id==n&&r.push(t)}))})):r=i,"all"!==w?r.forEach((function(t){var e=t.mediaType.split("/");w==e[e.length-1]&&o.push(t)})):o=r,a=""!==A&&A.length>1?ot(o,A):o,""!==A&&A.length>0?(t.style.display="block",e.style.display="none"):(t.style.display="none",e.style.display="block"),p=a;var c,s,l=[],u=[];"all"!==n&&("all"!==w?i.forEach((function(t){var e=t.mediaType.split("/");w==e[e.length-1]&&l.push(t)})):l=i,""!==A&&A.length>1&&(l=ot(l,A))),"all"!==w&&("all"!==n?i.forEach((function(t){t.properties.forEach((function(e){e.id==n&&u.push(t)}))})):u=i,""!==A&&A.length>1&&(u=ot(u,A))),"topics-all-topic"!==E&&"all"==w?(W(p,l,A),U(p,l,A),Y(p,p,A)):"all"!==w&&"topics-all-topic"==E?(Y(p,u,A),W(p,p,A),U(p,p,A)):"all"!==w&&"topics-all-topic"!==E?(W(p,l,A),U(p,l,A),Y(p,u,A)):(W(p,p,A),U(p,p,A),Y(p,p,A)),0==p.length&&rt(),N&&J(),$(E),c=document.getElementById("topic-list").querySelectorAll("li.disabled"),s=document.getElementById("article-filter-modal-topics").querySelectorAll("li.disabled"),c.forEach((function(t){t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1")})),s.forEach((function(t){t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1")}))},rt=function(){var t=document.getElementById("article-list"),e=document.createElement("div");e.classList.add("aem-GridColumn","aem-GridColumn--default--8","aem-GridColumn--offset--default--2","aem-GridColumn--phone--12","aem-GridColumn--offset--phone--0","aem-GridColumn--tabletportrait--12","aem-GridColumn--offset--tabletportrait--0"),e.innerHTML='<div class="cmp-text error-mesg" data-cmp-is="image" data-cmp-lazy data-cmp-lazythreshold="0" data-cmp-src="'+S+'"> <noscript data-cmp-hook-image="noscript"> <img alt="" src="'+S+'" data-cmp-hook-image="image" /> </noscript> <p>'+x+"</p> </div>",t.appendChild(e),r.g.compLazyImgRedraw(e)};function ot(t,e){return function(t,e){var n=[];return t.forEach((function(t){Object.keys(t).some((function(n){if("object"!=a(t[n]))return"number"==typeof t[n]?t[n].toString().includes(e):t[n].toLowerCase().includes(e.toLowerCase());t[n].forEach((function(t){return Object.keys(t).some((function(n){return t[n].toLowerCase().includes(e.toLowerCase())}))}))}))&&n.push(t)})),function(t,e){return t.filter((function(n,i){return t.findIndex((function(t){return t[e]===n[e]}))===i}))}(n,"id")}(t,e)}var at=function(){var t=document.getElementById("article-more-topics"),e=document.getElementById("article-filter-modal"),n=document.getElementById("article-close-button"),i=document.getElementById("article-apply-filter");t.addEventListener("click",(function(){var t,n,i,r,o;T.classList.add("noscroll"),e.style.display="block",t='button, [href], input, select, textarea, [tabindex]:not
1([tabindex="-1"])',n=document.querySelector("#article-filter-modal"),i=n.querySelectorAll(t)[0],r=n.querySelectorAll(t),o=r[r.length-1],document.addEventListener("keydown",(function(t){("Tab"===t.key||9===t.keyCode)&&(t.shiftKey?document.activeElement===i&&(o.focus(),t.preventDefault()):document.activeElement===o&&(i.focus(),t.preventDefault()))})),i.focus(),K(E+"_modal")})),n.addEventListener("click",(function(t){t.preventDefault();var n=document.getElementById("article-more-topics");T.classList.remove("noscroll"),e.style.display="none",n.focus()})),i.addEventListener("click",(function(t){t.preventDefault();var n=document.getElementById("article-more-topics");T.classList.remove("noscroll"),e.style.display="none";var i=document.getElementById("topics-all-topic_modal").classList.contains("active-article-topic"),r=document.getElementById(E).classList.contains("disabled-selected");!i&&r||(E=L.split("_")[0],st(E),N=!0,it(),N=!1,ct()),n.focus()})),window.addEventListener("click",(function(t){var n=document.getElementById("article-more-topics");t.target==e&&(e.style.display="none",T.classList.remove("noscroll"),n.focus())}))},ct=function(){for(var t=document.getElementById("topic-list").getElementsByTagName("li"),e=function(e){t[e].addEventListener("focus",(function(n){t[e].addEventListener("keydown",(function(n){if(n.keyCode===i.m.ARROW_RIGHT||n.keyCode===i.m.ARROW_LEFT||n.keyCode===i.m.ARROW_UP||n.keyCode===i.m.ARROW_DOWN){var r=t[e];if(n.keyCode===i.m.ARROW_RIGHT||n.keyCode===i.m.ARROW_DOWN)for(var o=r.nextElementSibling;o;){if(!o.classList.contains("disabled")){o.focus();var a=o.getAttribute("id");document.getElementById(a).click();break}o=o.nextElementSibling}else for(var c=r.previousElementSibling;c;){if(!c.classList.contains("disabled")){c.focus();var s=c.getAttribute("id");document.getElementById(s).click();break}c=c.previousElementSibling}}}))}))},n=0;n<t.length;n++)e(n)},st=function(t){var e=document.getElementById("topic-list"),n=e.querySelectorAll("li"),i=document.getElementById(L),r=document.getElementById(L).nextElementSibling,o=!1;if(n.forEach((function(e){e.id==t&&(o=!0)})),0==o){n[n.length-1].remove();var a=document.createElement("li");a.setAttribute("id",t),a.setAttribute("data-id",i.getAttribute("data-id")),a.innerHTML=r.innerHTML,a.addEventListener("click",(function(t){v=t.target.id,E=v,N=!0,it(),N=!1})),e.appendChild(a);var c=document.getElementById("article-more-topics");c&&e.querySelector("#article-more-topics")?e.removeChild(c):c&&e.parentElement.querySelector("#article-more-topics")&&e.parentElement.removeChild(c),e.appendChild(c),$(t)}},lt=function(t,e){var n=document.getElementById("article-filter-modal-topics");n.innerHTML="";var r="";e&&e.forEach((function(e){var i=[];e.mediatypeIds.length>1?i=t:t.filter((function(t){t.properties.forEach((function(n){n.id==e.mediatypeIds&&(i.push(t),r=H(e.mediatypeIds))}))}));var o=i.length,a="",c=document.createElement("div");c.classList.add("td-multi-single-select-button-wrapper");var s=document.createElement("input"),l=document.createElement("label"),u="topics-"+r+"-topic_modal";if(e.mediatypeIds.length>1?(u="topics-all-topic_modal",a="all"):a=e.mediatypeIds,s.setAttribute("type","radio"),s.setAttribute("name","modal-topics-group"),s.setAttribute("id",u),s.setAttribute("value",u),s.setAttribute("data-id",a),s.setAttribute("aria-selected","false"),s.setAttribute("tabindex","-1"),s.setAttribute("aria-label",e.title),l.setAttribute("for",u),l.setAttribute("tabindex","-1"),l.setAttribute("aria-hidden","true"),l.textContent=e.title,"topics-all-topic_modal"!==u){l.appendChild(document.createTextNode(" "));var d=document.createElement("span");d.textContent="("+o+")",l.appendChild(d)}o&&(s.addEventListener("click",(function(t){L=s.getAttribute("id"),K(L),b=e.title,e.mediatypeIds.length>1&&(b="")})),c.appendChild(s),c.appendChild(l),n.appendChild(c))}));for(var o=n.getElementsByTagName("input"),a=function(t){o[t].addEventListener("focus",(function(e){o[t].addEventListener("keydown",(function(e){if(e.keyCode===i.m.ARROW_RIGHT||e.keyCode===i.m.ARROW_LEFT||e.keyCode===i.m.ARROW_UP||e.keyCode===i.m.ARROW_DOWN){var n=o[t];if(e.keyCode===i.m.ARROW_RIGHT||e.keyCode===i.m.ARROW_DOWN)for(var r=n.nextElementSibling;r;)r.classList.contains("disabled")||r.focus(),r=r.nextElementSibling;else for(var a=n.previousElementSibling;a;)a.classList.contains("disabled")||a.focus(),a=a.previousElementSibling}}))}))},c=0;c<o.length;c++)a(c)};var ut=function(){var t,e,n,i,r=location.search,o=new URLSearchParams(r);if(o.has("topic")){var a=o.get("topic");a&&(t=a,e=!1,u.forEach((function(n){n.id.substring(n.id.lastIndexOf("/")+1,n.id.length)==t&&(e=!0)})),e)&&(E="topics-"+a+"-topic",lt(p,l),V(p,l),"all"!=a&&u.forEach((function(t){var e,n;t.id.substring(t.id.lastIndexOf("/")+1,t.id.length)==a&&(e=t.id,n="",u.forEach((function(t){t.id==e&&(n=t.Title)})),b=n)})),N=!0,it(),N=!1)}if(o.has("mediaType")){var c=o.get("mediaType");c&&(n=c,i=!1,d.forEach((function(t){t.id.substring(t.id.lastIndexOf("/")+1,t.id.length)==n&&(i=!0)})),i)&&(w=c,G(p,d),N=!0,it(),N=!1)}},dt=function(){if(document.querySelectorAll(".cmp-article-hub").length>0){var t=document.getElementById("article-filter-search");M=window.innerWidth,g=document.documentElement.getAttribute("lang").split("-"),y=g[1]?g[0].toLocaleLowerCase()+"."+g[1].toLocaleLowerCase():g[0].toLocaleLowerCase();var e=function(){!function(t){if(document.getElementById("articles-list")){var e=document.getElementById("articles-list").getAttribute("path");x=document.getElementById("articles-list").getAttribute("errormesg"),_=document.getElementById("articles-list").getAttribute("placeholderImg"),S=document.getElementById("articles-list").getAttribute("noResultImg"),k=[],B(e+"."+y+".json",(function(t){k=JSON.parse(t),R(k)}))}}()},n=function(){!function(t,e){if(document.getElementById("article-topic-filter")){var n=document.getElementById("article-topic-filter").getAttribute("path");B(n+"."+t+".json",(function(t){var n=JSON.parse(t),i=X()&&Array.isArray(C)&&C.length>0?C:n.mediaType.tags;n&&(u=n.filters.tags,h=n.mediaTypeIcons.tags,d=i),"function"==typeof e&&e()}))}}(y,e)};X()?(f=n,p=geoLocationLang===i.o?"tdi-product-province-path-fr":"tdi-product-province-path-en",m=document.getElementById("article-topic-filter").getAttribute(p),B(m,(function(t){var e=JSON.parse(t),n=o.a.cookieGetItem(i.s),r=e.province.find((function(t){return t.provinceName===n}));C=r&&Array.isArray(r.products)?r.products:[],"function"==typeof f&&f()}))):n(),(l=document.getElementById("media-type-dropdown"))&&l.addEventListener("change",(function(){N=!0;var t=event.target.value;w=t,it(),N=!1,l.focus()})),r=t,a=document.getElementById("article-filter-search-close"),c=document.getElementById("article-filter-search-icon"),s=document.getElementById("article-filter-search"),a.style.display="none",a.addEventListener("click",(function(t){A="",s.value="",a.style.display="none",c.style.display="block",N=!0,it(),N=!1,s.focus()})),a.addEventListener("keyup",(function(t){t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||(A="",s.value="",a.style.display="none",c.style.display="block",N=!0,it(),N=!1,s.focus())})),r.addEventListener("keyup",(function(t){t.keyCode!==i.m.TAB&&16!==t.keyCode&&(a.style.display="block",c.style.display="none",(A=t.target.value.trimStart().trimEnd()).length>1&&(N=!0,it(),N=!1,s.focus())),t.keyCode!==i.m.Backspace&&8!==t.keyCode||(0==(A=t.target.value.trimStart().trimEnd()).length||A.length>1)&&(N=!0,it(),N=!1,s.focus())})),r.addEventListener("focus",(function(t){s.classList.add("cmp-article--search-section--in
1put--active")})),r.addEventListener("blur",(function(t){s.classList.remove("cmp-article--search-section--input--active")})),at()}var r,a,c,s,l,f,p,m,g};document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".cmp-article-hub").length>0&&dt()})),window.addEventListener("load",(function(){setTimeout((function(){ut()}),300)}))},function(t,e,n){"use strict";var i=n(12),r=n(0),o=n(1);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s=function(t,e,n){Object(i.a)({container:t,mode:"carousel",loop:!1,items:1,slideBy:"page",nav:!0,autoplay:!1,speed:400,autoplayButtonOutput:!1,mouseDrag:!0,lazyload:!0,controls:!1,arrowKeys:!0,autoheight:!0,navPosition:n,responsive:{0:{disable:e},767:{disable:e},768:{disable:!0},1024:{disable:!0},1200:{disable:!0}}})},l=function(){var t=document.querySelectorAll(".cmp-fixed-grid-block"),e=t?a(t):null;window.innerWidth>=r.l.SM&&e&&e.forEach((function(t){var e=t.querySelector(".cmp-fixed-grid-block__container");e&&(Object(o.e)(".cmp-fixed-grid-block__details--heading",".cmp-fixed-grid-block__content",e.id),Object(o.e)(".cmp-fixed-grid-block__details--description",".cmp-fixed-grid-block__content",e.id),Object(o.e)(".cmp-fixed-grid-block__details--icon",".cmp-fixed-grid-block__content",e.id))}));var n=document.querySelectorAll(".cmp-fixed-grid"),i=[];if(n){n.forEach((function(t){var e=t.offsetHeight,n=t.querySelector(".cmp-fixed-grid-block__details").offsetHeight;i.push(e-n),function(t,e,n){var i=t.querySelector(".cmp-image__play-icon");i&&(i.style.top=(e-n)/2+"px")}(t,e,n)}));var c=Math.max.apply(Math,i);n.forEach((function(t){t.querySelector(".cmp-fixed-grid-block__details").style.top=c+"px"}))}};document.addEventListener("DOMContentLoaded",(function(){var t;(t=document.querySelectorAll(".cmp-fixed-grid-block__container"))&&t.forEach((function(t){var e=t.getAttribute("data-mobileview"),n="carousal"!==e&&"stacked"===e,i=t.getAttribute("data-navposition");s(t,n,i);var r=t.querySelectorAll(".cmp-fixed-grid-block__content"),o=document.querySelectorAll(".tns-nav"),a=document.querySelectorAll(".tns-nav [aria-controls]");o.forEach((function(t){t.removeAttribute("aria-label")})),a.forEach((function(t){t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}));for(var c=0;c<r.length;c++)r[c].removeAttribute("aria-hidden"),r[c].removeAttribute("tabindex")}))})),["load","resize"].forEach((function(t){window.addEventListener(t,Object(o.a)((function(){l()})),1500),"load"===t&&window.addEventListener(t,Object(o.a)((function(){o.g.lazyLoadingEqualHeight("cmp-fixed-grid-block__image",l)})),1e3)}))},function(t,e,n){"use strict";var i=function(){var t=document.getElementById("cmp-floating-container-id"),e=null;if(t){var n,i,c=function(){var e=document.querySelector("header")&&document.querySelector("header").offsetHeight;u&&d?(n=document.getElementById(u)&&document.getElementById(u).offsetTop,i=document.getElementById(d)&&document.getElementById(d).offsetTop,window.pageYOffset+e>n&&window.pageYOffset+e<i?r(t):o(t)):u&&!d?(n=document.getElementById(u)&&document.getElementById(u).offsetTop,window.pageYOffset+e>n?r(t):o(t)):!u&&d?(i=document.getElementById(d)&&document.getElementById(d).offsetTop,r(t),window.pageYOffset+e>i&&o(t)):u||d||r(t)},s=document.querySelectorAll("[id^=emergencymessage]"),l=document.querySelectorAll("[id^=headermessage]"),u=document.getElementById("start-hidden")&&document.getElementById("start-hidden").value,d=document.getElementById("end-hidden")&&document.getElementById("end-hidden").value;s.length>0?a(s,t):l.length>0&&a(l,t),c(),window.addEventListener("scroll",(function(){e&&clearInterval(e),e=setTimeout((function(){c()}),100)}))}},r=function(t){t.setAttribute("aria-hidden",!1),t.classList.remove("floating-container-hide"),t.classList.add("floating-container-show")},o=function(t){t.setAttribute("aria-hidden",!0),t.classList.remove("floating-container-show"),t.classList.add("floating-container-hide"),t.classList.remove("sticky")},a=function(t,e){var n=document.createElement("div");n.innerHTML+=e.innerHTML,n.style.display="block",n.classList.add("header"),t[0].parentNode.insertBefore(n,t[0].nextSibling)};document.addEventListener("DOMContentLoaded",i),window.floating_container=function(){i()}},function(t,e,n){"use strict";var i=n(0),r={init:function(){var t=document.querySelectorAll(".".concat("cmp-footer__back-to-top",':not([data-component-state="initialized"])'));t.length>0&&t.forEach((function(t){!function(t){var e=!1,n=!1,r=t,o=document.getElementById("cmp-footer__start");function a(t){var n=null;t.preventDefault(),e=!0;var i=document.querySelector(".cmp-skip-nav");n=setInterval((function(){var t=window.pageYOffset-200;t<=0?(window.scrollTo(0,0),clearInterval(n),e=!1):window.scrollTo(0,t)}),40),i&&i.focus()}!function(){var t=o.querySelector(".footer-table");if(t){var e=t.querySelector("table");e&&e.setAttribute("role","presentation")}}();var c,s,l=function(){e||(setTimeout(u,500),!1===n&&(f(),n=!0))},u=function(){o.getBoundingClientRect().top<window.innerHeight?(r.classList.remove("hidden"),setTimeout(d,100)):(setTimeout(h,100),r.classList.add("hidden"))},d=function(){r.classList.add("show")},h=function(){r.classList.remove("show")}
1,f=function(){var t,e=document.querySelector(".cmp-footer__container"),n=window.innerWidth,o=e?e.offsetWidth:n;t=n>=i.l.LG?(n-o)/2+7:n>=i.l.MD?15:0,r.style.right=t+"px"};window.addEventListener("scroll",l),window.addEventListener("resize",f),t.addEventListener("click",a),c=document.querySelector(".cmp-skip-nav"),s=document.getElementById("main"),null!==c&&null!==s&&c.addEventListener("click",(function(){s.tabIndex="-1"}))}(t),t.setAttribute("data-component-state","initialized")}))}};"loading"!==document.readyState?r().init():document.addEventListener("DOMContentLoaded",r.init)},function(t,e,n){"use strict";var i=n(8);function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw o}}}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==e);s=!0);}catch(t){l=!0,r=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s={},l="fro-amount",u="fro-term",d="fro-property-type",h="fro-property-use",f="fro-amount-error",p="fro-term-error",m="fro-property-type-error",g="fro-property-use-error",y=function(){var t,e=document.querySelector(".cmp-fro-calculator");if(e){var n=e.querySelector(".cmp-fro-calculator__body"),a=e.querySelector(".cmp-fro-calculator__results"),c=n.querySelector("#".concat(l)),y=n.querySelector("#".concat(u)),S=n.querySelector("#".concat(d)),E=n.querySelector("#".concat(h)),L=n.querySelector(".cmp-button"),k=e.querySelector(".cmp-fro-calculator__start-over"),C=k.querySelector(".cmp-button");s.noInfo=n.dataset.dropdownErrorMessage,s.invalidCurrency=n.dataset.currencyErrorMessage,function(t){["blur","input"].forEach((function(e){t.addEventListener(e,(function(){var n=document.querySelector("#".concat(f)),i=o(x(t,n),2),r=i[0],a=i[1];a&&("blur"===e&&function(t){if(t.endsWith(".0"))return!0;return t%1!=0}(a)&&(t.value=r?"$"+parseFloat(a).toFixed(2):parseFloat(a).toFixed(2)),t.classList.remove("td-form-control-invalid"),n&&n.remove())}))}))}(c),t=[y,S,E],["blur","input"].forEach((function(e){t.forEach((function(t){t.addEventListener(e,(function(){var e=document.querySelector("#".concat(p)),n=document.querySelector("#".concat(m)),i=document.querySelector("#".concat(g));_(t,e,n,i)&&(t.classList.remove("td-form-control-invalid"),function(t,e,n,i){switch(t){case u:e&&e.remove();break;case d:n&&n.remove();break;case h:i&&i.remove()}}(t.id,e,n,i))}))}))})),function(t,e,n,o,a,c){t.addEventListener("click",(function(){var t,s=document.querySelector("#".concat(f)),d=x(a,s)[1],y=r(function(t){var e=[],n=document.querySelector("#".concat(p)),i=document.querySelector("#".concat(m)),r=document.querySelector("#".concat(g));return t.forEach((function(t){e.push(_(t,n,i,r))})),e}(c));try{for(y.s();!(t=y.n()).done;){if(!t.value||!d)return}}catch(t){y.e(t)}finally{y.f()}var S=e.querySelector("#".concat(l)).value,E=e.querySelector("#".concat(u)).value,L=e.querySelector("#".concat(h)).value;if(function(t,e,n){var i=t.value;i=w(i=i.replace(/ |,+/g,""))[1];var r=!1,o=n.querySelector("#max-min-text"),a=n.querySelector("#limit-amount");i<5e3?(o.textContent=o.dataset.errorMinText,a.textContent="$5,000",r=!0):i>5e18&&"Primary"===e?(o.textContent=o.dataset.errorMaxText,a.textContent="$5,000,000,000,000,000,000",r=!0):i>15e5&&"Secondary"===e?(o.textContent=o.dataset.errorMaxText,a.textContent="$1,500,000",r=!0):i>5e5&&"Investment"===e&&(o.textContent=o.dataset.errorMaxText,a.textContent="$500,000",r=!0);return r}(a,L,n))return e.classList.add("hidden"),o.classList.remove("hidden"),n.classList.remove("hidden"),void n.querySelector(".cmp-fro-calculator__results__container__input-error").classList.remove("hidden");e.classList.add("hidden");var k=function(t,e,n,i){i="string"==typeof i?parseFloat(i.replace(/,/g,"").replace(/\$/g,"")):i;var o=function(t,e){if(t>20&&"Investment"===e)return{term:30,propertyUseName:"Primary"};return{term:t,propertyUseName:e}}(e=function(t){var e="string"==typeof t?parseInt(t):t;if(isNaN(e))throw new Error("Invalid input: Please provide a valid number or numeric string.");var n=e%5;return 0===n?e:e+(5-n)}(e),n);e=o.term,n=o.propertyUseName;var a=t.tdbFroCalculator.propertyUseDetailsResponse.find((function(t){return t.propertyUseName.toLowerCase()==n.toLowerCase()}));if(!a)return null;if(!t||!t.tdbFroCalculator)return null;var c=a.slabDetailsResponse.reduce((function(t,e){return parseFloat(t.minAmount)<parseFloat(e.minAmount)?t:e})),s=a.slabDetailsResponse.reduce((function(t,e){return parseFloat(t.maxAmount)>parseFloat(e.maxAmount)?t:e}));
1if(i<parseFloat(c.minAmount))return v(c,e,a.slabDetailsResponse,i);if(i>parseFloat(s.maxAmount))return v(s,e,a.slabDetailsResponse,i);var l,u=r(a.slabDetailsResponse);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=parseFloat(d.minAmount),f=parseFloat(d.maxAmount);if(i>=h&&i<f+1)return v(d,e,a.slabDetailsResponse,i)}}catch(t){u.e(t)}finally{u.f()}return null}(i.a.ratesResponse,E,L,S);E>20&&"Investment"===L&&(k.Rate=parseFloat(k.Rate)+1,k.FinalRate=parseFloat(k.FinalRate)+1);var C=b(k.FinalRate,E,S),T=b(k.Rate,E,S),M=n.dataset.tableApr,q=n.dataset.tableTerm,I=n.dataset.tableMonthlyPayment,O=n.dataset.tableDetails,P=n.dataset.tableDetailsTextRow1,N=n.dataset.tableDetailsTextRow2;n.querySelector(".cmp-fro-calculator__results__container__header").insertAdjacentHTML("afterend",'<div class="cmp-chart cmp-chart--type-column" data-cpm-is="complex-chart">\n <table class="cmp-chart__chart">\n <caption class="visually-hidden">Text for Caption needed</caption>\n <thead>\n <tr>\n <td class="fro-table-header-text">\n <p>'.concat(M,'</p>\n </td>\n <td class="fro-table-header-text">\n <p>').concat(q,'</p>\n </td>\n <td class="fro-table-header-text">\n <p>').concat(I,'</p>\n </td>\n <td class="fro-table-header-text">\n <p>').concat(O,'</p>\n </td>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th scope="row">\n <div id="text-2d9d50c5a72" class="cmp-text">\n <p>').concat(k.FinalRate,'%</p>\n </div>\n </th>\n <td>\n <div id="text-2d9d50c5a72" class="cmp-text">\n <p>').concat(E,' years</p>\n </div>\n </td>\n <td>\n <div id="text-2d9d50c5a72" class="cmp-text">\n <p>').concat(C,'</p>\n </div>\n </td>\n <td>\n <div id="text-2d9d50c5a74" class="cmp-text">\n <p>').concat(P,'</p>\n </div>\n </td>\n </tr>\n <tr>\n <th scope="row">\n <div id="text-2d9d50c5a72" class="cmp-text">\n <p>').concat(k.Rate,'%</p>\n </div>\n </th>\n <td>\n <div id="text-2d9d50c5a72" class="cmp-text">\n <p>').concat(E,' years</p>\n </div>\n </td>\n <td>\n <div id="text-2d9d50c5a710" class="cmp-text">\n <p>\n ').concat(T,'\n </p>\n </div>\n </td>\n <td>\n <div id="text-2d9d50c5a711" class="cmp-text">\n <p>\n ').concat(N,"\n </p>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>")),n.classList.remove("hidden"),n.querySelector(".cmp-fro-calculator__results__container__header").classList.remove("hidden"),o.classList.remove("hidden"),window.complex_charts(),window.scrollTo(0,0),document.activeElement.blur(),document.querySelector(".cmp-region-selector__title-link").focus(),setTimeout((function(){document.querySelectorAll(".cmp-accordion__chevron-link").forEach((function(t){t.addEventListener("click",(function(t){A(t)})),t.addEventListener("keydown",(function(t){void 0!==t.keyCode&&(t.keyCode!==KEYCODES.ENTER&&t.keyCode!==KEYCODES.SPACE||A(t))}))}))}),100)}))}(L,n,a,k,c,[y,S,E]),function(t,e,n,i,r,o){t.addEventListener("click",(function(){e.classList.remove("hidden"),n.classList.add("hidden"),i.classList.add("hidden"),n.querySelector(".cmp-fro-calculator__results__container__input-error").classList.add("hidden"),n.querySelector(".cmp-fro-calculator__results__container__header").classList.add("hidden");var t=n.querySelector(".cmp-chart");t&&t.remove(),r.value="",o.forEach((function(t){t.selectedIndex=0})),window.scrollTo(0,0),document.getElementById(l).focus()}))}(C,n,a,k,c,[y,S,E])}};function v(t,e,n,i){if(t.termDetailsResponse&&0!==t.termDetailsResponse.length){var o,a=r(t.termDetailsResponse);try{for(a.s();!(o=a.n()).done;){var c=o.value;if(c.term==e.toString())return{Rate:c.rate,FinalRate:c.finalRate}}}catch(t){a.e(t)}finally{a.f()}var s=function(t,e){return t.termDetailsResponse.reduce((function(t,n){var i=parseFloat(t.term)-parseFloat(e),r=parseFloat(n.term)-parseFloat(e);return i>=0&&i<=r?t:n}))}(t,e);return{Rate:s.rate,FinalRate:s.finalRate}}return v(function(t,e){return t.reduce((function(t,n){return t.termDetailsResponse&&0!==t.termDetailsResponse.length&&parseFloat(t.minAmount)-e<parseFloat(n.minAmount)-e?t:n}))}(n,i),e,n,i)}function b(t,e,n){n=parseFloat(n.replace(/,/g,"").replace(/\$/g,""));var i=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2}),r=t/12/100,o=12*e,a=n*(r*Math.pow(1+r,o))/(Math.pow(1+r,o)-1);return i.format(a)}function x(t,e){var n,i=t.value,r=o(w(i=i.replace(/ |,+/g,"")),2);return n=r[0],(i=r[1])?/^\$?[\d,]+(\.\d{1,2})?$/.test(i)?[n,i]:(S(t,e,s.invalidCurrency,f),[!1,!1]):(S(t,e,s.noInfo,f),[!1,!1])}function _(t,e,n,i){if(0===t.selectedIndex){switch(t.id){case u:S(t,e,s.noInfo,p);break;case d:S(t,n,s.noInfo,m);break;case h:S(t,i,s.noInfo,g)}return!1}return!0}function S(t,e,n,i){t.classList.add("td-form-control-invalid"),e&&e.remove(),t.insertAdjacentHTML("afterend",function(t,e){return'<div class="error-message-container" id="'.concat(e,'">
1\n <span class="td-icon td-icon-error cmp-notification__icon--regular error-message-container__icon"></span>\n <span class="cmp-text">').concat(t,"</span>\n </div>")}(n,i))}function w(t){return"$"===Array.from(t)[0]?[!0,t.substring(1,t.length)]:[!1,t]}function A(t){t.preventDefault();var e=t.currentTarget,n=e.getAttribute("aria-expanded");e.setAttribute("tabindex","0"),"false"===n?e.setAttribute("aria-expanded",!0):e.setAttribute("aria-expanded",!1)}"loading"!==document.readyState?y():window.addEventListener("DOMContentLoaded",(function(){y()}))},function(t,e,n){"use strict";var i=n(0),r=n(3),o=n(2),a=n(9);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==e);s=!0);}catch(t){l=!0,r=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l=function(){var t=document.querySelector(".cmp-fund-card-header"),e=document.querySelector(".cmp-fund-card-header__container--fund-select-dropdown"),n=document.querySelector(".cmp-fund-card-header__container .download-pdf a");null!==t&&null!==e&&(b(),document.querySelector(".series-wrapper .custom-select-dropdown")&&u(t),d(t));null!=n&&(window.tms_tag=window.tms_tag||[],n.addEventListener("click",(function(t){t.preventDefault();var e=n.getAttribute("data-pdf-download-path");Object(r.a)(e,"GET",w,A,{},n);var i=n.getAttribute("data-fund-name");tms_tag.push({event:"linkClick",link:{name:"fundcard:download: "+i,type:"link",product:"tdam:public:"}})})))},u=function(t){document.querySelectorAll(".series-wrapper .custom-select-dropdown .dropdown-options li a").forEach((function(e){var n=function(t,e){var n,i=t.getAttribute("value"),r=t.getAttribute("fundname"),a=e.getAttribute("data-product-type"),c="true"===t.getAttribute("data-etfSeries"),s=e.getAttribute("data-page-url"),l=e.getAttribute("data-hybridPage-url");"mf"===a?n=c?l:s:"etf"===a&&(n=c?s:l);return"".concat(n,"?fundId=").concat(i,"&fundname=").concat(E(Object(o.g)(r),!1))}(e,t);e.setAttribute("href",n)})),f(".series-wrapper .custom-select-dropdown",".dropdown-options",".dropdown-options",(function(t){return h(t.getAttribute("href"),t)}))},d=function(t){document.querySelectorAll(".currency-wrapper .custom-select-dropdown .dropdown-options li a").forEach((function(e){var n=function(t,e){var n=t.getAttribute("fundID"),i=t.getAttribute("fundname"),r=e.getAttribute("data-page-url");return"".concat(r,"?fundId=").concat(n,"&fundname=").concat(E(Object(o.g)(i),!1))}(e,t);e.setAttribute("href",n)})),f(".currency-wrapper .custom-select-dropdown",".dropdown-options",".currency-wrapper .dropdown-options",(function(t){return h(t.getAttribute("href"),t)}))},h=function(t,e){window.location=t};function f(t,e,n,i){var r=document.querySelector(t);if(r&&!r.classList.contains("hidden")){var o=r.querySelector(".dropdown-selected, .dropdown"),a=r.querySelector(e);if(o&&a){var c=Array.from(a.querySelectorAll("li")),s=c.map((function(t){return t.querySelector("a")}));if(a.setAttribute("role","listbox"),function(t){t.forEach((function(e,n){e.setAttribute("role","option"),e.setAttribute("aria-posinset",n+1),e.setAttribute("aria-setsize",t.length),e.setAttribute("aria-selected","false");var i=e.querySelector("a");i&&i.setAttribute("tabindex","-1")}))}(c),o.classList.contains("dropdown-selected")){var l=c.find((function(t){return t.textContent.trim()===o.textContent.trim()}));if(l){l.setAttribute("aria-selected","true");var u=l.querySelector("a");u&&(S(s,u,"td-icon-checkMark"),v(u,n))}}var d=function(t){var e=t.querySelector("a");return e&&t.textContent.trim()!==o.textContent.trim()?(o.textContent=t.textContent,o.classList.remove("dropdown"),o.classList.add("dropdown-selected"),c.forEac
1h((function(t){return t.setAttribute("aria-selected","false")})),t.setAttribute("aria-selected","true"),S(s,e,"td-icon-checkMark"),v(e,n),y(r,a),i&&i(e),!0):(y(r,a),!1)};o.addEventListener("click",(function(){return g(r,a)})),function(t,e,n,i){t.forEach((function(t){var r=function(r){r.preventDefault(),r.stopPropagation(),"true"!==t.getAttribute("aria-selected")?e(t):y(n,i)};t.addEventListener("touchend",r,{passive:!1}),t.addEventListener("click",(function(t){t.cancelable&&r(t)}))}))}(c,d,r,a),p(r,a),m(r,o,a,c,d,!1)}}}function p(t,e){document.addEventListener("click",(function(n){t.contains(n.target)||y(t,e)}))}var m=function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=-1,c=n.id||"dropdown";o||i.forEach((function(t,e){t.setAttribute("id","".concat(c,"-").concat(e))})),e.setAttribute("aria-controls",c),e.setAttribute("aria-expanded","false"),o||(e.setAttribute("aria-haspopup","listbox"),e.setAttribute("role","combobox"));var s=function(t){t<0||t>=i.length||(a=t,i.forEach((function(e,n){(o?e.parentElement:e).classList.toggle("focused",n===t),o&&e.setAttribute("tabindex",n===t?"0":"-1")})),e.setAttribute("aria-activedescendant",i[t].id))},l=function(){a=-1,i.forEach((function(t){(o?t.parentElement:t).classList.remove("focused"),o&&t.setAttribute("tabindex","-1")})),e.removeAttribute("aria-activedescendant")},u=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t.classList.contains("dropdown-open")||(t.classList.add("dropdown-open"),n.classList.remove("hidden"),e.setAttribute("aria-expanded","true")),s(i)},d=function(){if(!(a<0)){var e=i[a];"true"!==e.getAttribute("aria-selected")?(r(e),l()):(y(t,n),l())}},h={Enter:function(e,i){e.preventDefault(),i&&a>=0?d():(g(t,n),i||u(0))}," ":function(t,e){return h.Enter(t,e)},ArrowDown:function(t,e){if(t.preventDefault(),e){var n=Math.min(a+1,i.length-1);s(n),o&&i[n].focus()}else u(0)},ArrowUp:function(t,e){if(t.preventDefault(),e){var n=Math.max(a-1,0);s(n),o&&i[n].focus()}else u(i.length-1)},Escape:function(i){i.preventDefault(),y(t,n),l(),e.focus()},Tab:function(){y(t,n),l()}};e.addEventListener("keydown",(function(e){var n=t.classList.contains("dropdown-open"),i=h[e.key];i&&i(e,n)})),o&&i.forEach((function(t){t.addEventListener("keydown",(function(t){var e=h[t.key];e&&e(t,!0)}))})),i.forEach((function(t,e){(o?t.parentElement:t).addEventListener("mouseenter",(function(){return s(e)}))}))},g=function(t,e){var n=t.classList.contains("dropdown-open"),i=t.querySelector(".dropdown-selected, .dropdown, .share-link");t.classList.toggle("dropdown-open",!n),e.classList.toggle("hidden",n),i&&i.setAttribute("aria-expanded",!n)},y=function(t,e){var n=t.querySelector(".dropdown-selected, .dropdown, .share-link");t.classList.remove("dropdown-open"),e.classList.add("hidden"),n&&n.setAttribute("aria-expanded","false")};function v(t,e){document.querySelectorAll("".concat(e," li")).forEach((function(t){return t.classList.remove("selected")})),document.querySelectorAll("".concat(e," li a")).forEach((function(t){return t.setAttribute("aria-selected","false")}));var n=t.parentElement;n&&n.classList.add("selected")}var b=function(){var t=document.querySelector(".share-container .share-link"),e=document.querySelector(".share-container .share-menu"),n=window.location.href;!function(t){var e=document.querySelector(".share-container .emailLink"),n=document.querySelector(".cmp-fund-card-header").getAttribute("data-fundEmail-template");if(e&&n){var i=JSON.parse(n.replace(/"/g,'"'));e.addEventListener("click",(function(e){e.preventDefault(),function(t,e){var n=t.emailSubject,i=t.emailContent,r=t.emailFooter,o=document.querySelector(".cmp-fund-card-header"),a=null==o?void 0:o.getAttribute("data-fund-title"),c=_(i=(i=i.replace(/\$\{link\}/g,e)).replace(/\$\{title\}/g,a)),s=_(r),l="".concat(c,"\n\n").concat(s),u="mailto:?subject=".concat(encodeURIComponent(n),"&body=").concat(encodeURIComponent(l));window.location.href=u}(i,t)}))}}(n),function(t){var e=document.querySelector(".share-container .share-menu .copyLink");e&&e.addEventListener("click",(function(e){e.preventDefault(),navigator.clipboard.writeText(t).catch((function(t){console.error("Failed to copy link: ",t)}))}))}(n),function(t){var e=document.querySelector(".share-container .share-menu .linkedInLink");if(e){var n=e.getAttribute("data-linkedin-url"),i=c(t.split("?"),2),r=i[0],o=x(i[1]),a="".concat(n).concat(r,"?").concat(o);e.setAttribute("href",a),e.addEventListener("click",(function(t){t.preventDefault(),window.open(a,"_blank")}))}}(n),function(t){var e=document.querySelector(".share-container .share-menu .twitterLink");if(e){var n=e.getAttribute("data-twitter-url"),i=c(t.split("?"),2),r=i[0],o=x(i[1]),a="".concat(n).concat(r,"?").concat(o);e.setAttribute("href",a),e.addEventListener("click",(function(t){t.preventDefault(),window.open(a,"_blank")}))}}(n);var i=Array.from(e.querySelectorAll("li")),r=function(n){var i=n.querySelector("a");
1return i&&i.click(),y(t.parentElement,e),t.focus(),!0};t.addEventListener("click",(function(n){n.preventDefault(),n.stopPropagation(),g(t.parentElement,e)})),i.forEach((function(t){var e=function(e){e.preventDefault(),e.stopPropagation(),r(t)};t.addEventListener("touchend",e,{passive:!1}),t.addEventListener("click",(function(t){t.cancelable&&e(t)}))})),p(t.parentElement,e),m(t.parentElement,t,e,i,r,!0)};function x(t){return t?t.split("&").map((function(t){return t.replace("=","%3D")})).join("&"):""}function _(t){var e=document.createElement("div");return e.innerHTML=t,e.innerHTML=e.innerHTML.replace(/<br\s*\/?>/gi,"\n"),e.innerHTML=e.innerHTML.replace(/<\/\w+>/g,"\n\n"),e.textContent.replace(/\n{3,}/g,"\n\n").trim()}function S(t,e,n){t.forEach((function(t){var e=t.querySelector(".".concat(n));e&&e.remove(),t.setAttribute("aria-selected","false")}));var i=document.createElement("span");i.className="td-icon ".concat(n),i.setAttribute("aria-hidden","true"),e.setAttribute("aria-selected","true");var r=e.getAttribute("aria-label")||e.textContent.trim();r.includes("checkmarked")||e.setAttribute("aria-label","".concat(r,", selected")),e.appendChild(i)}function w(t,e){if(t&&"success"===t.status.toLowerCase()){var n=function(t){var e=new Date,n=(a=t,a.replaceAll(" ","")),i=e.getDate(),r=e.getMonth()+1,o=e.getFullYear();var a;i<10&&(i="0"+i);r<10&&(r="0"+r);return n+i+r+o+".pdf"}(e.getAttribute("data-fund-name"));!function(t,e,n,i){if(-1!=navigator.userAgent.toLowerCase().indexOf("iphone os")||-1!=navigator.userAgent.toLowerCase().indexOf("mac os")){var r="window"+i.toString();window.open(window.URL.createObjectURL(function(t,e,n){for(var i=atob(t),r=[],o=0;o<i.length;o+=n){for(var a=i.slice(o,o+n),c=new Array(a.length),s=0;s<a.length;s++)c[s]=a.charCodeAt(s);var l=new Uint8Array(c);r.push(l)}return new Blob(r,{type:e})}(t,e,512)),r,"_blank")}else{var o="data:application/pdf;base64,"+t,a=document.createElement("a");a.href=o,a.target="_blank",a.download=n,a.click()}}(t.pdfFile,"application/pdf",n,1)}else A(new Error("Pdf Download Failed"))}function A(t){console.log("Error during PDF download:",t);var e=document.querySelector("#overlay-modal-pdfErrorMessage");if(e){var n=document.querySelector(".cmp-fund-card-header__container .download-pdf a"),i=e.querySelectorAll(".close-modal-button");n.setAttribute("href","#cmp-modal~overlay-modal-pdfErrorMessage"),new a.a(e,n),Object(a.c)(),i.forEach((function(t){t.addEventListener("click",a.b)}))}}function E(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?t.replace(/\s+/g,"+"):t.replace(/\s+/g,"-").replace(/-{2,}/g,"-")}"loading"!==document.readyState?l():window.addEventListener("DOMContentLoaded",(function(){l();var t,e=document.querySelectorAll(".cmp-header-utility-bar__dropdown--content--language .cmp-header-utility-bar__column ul li,.cmp-site-utility-nav__sub-menu .cmp-site-utility-nav__cols ul li"),n=document.querySelector(".headerColumnTable"),r=document.querySelector(".cmp-fund-card-header"),a=new URLSearchParams(window.location.search);r&&(t=r.getAttribute("data-fund-name-details"),a.set("fundname",E(Object(o.g)(t),!1))),null!==e&&n&&e.forEach((function(t){t.children[0].classList.contains("selected")||(t.children[0].href=t.children[0].href+"?"+a.toString())})),function(){if(window.innerWidth<=i.l.SM||window.innerWidth<=i.l.MD){var t,e=document.querySelectorAll(".cmp-nav-mobile .cmp-mobile-nav-bar__menu-list .cmp-mobile-nav-bar__accordion-language ul li,.cmp-site-utility-mobile .cmp-site-utility-mobile__language .cmp-site-utility-mobile__sub-menu ul li"),n=document.querySelector(".headerColumnTable"),r=document.querySelector(".cmp-fund-card-header"),a=new URLSearchParams(window.location.search);r&&(t=r.getAttribute("data-fund-name-details"),a.set("fundname",E(Object(o.g)(t),!1))),null!==e&&n&&e.forEach((function(t){t.classList.contains("active")||(t.children[0].href=t.children[0].href+"?"+a.toString())}))}}()}))},function(t,e){var n=function(){var t=document.querySelector(".cmp-fund-card-overview"),e=document.querySelector(".benchmark-text");e&&t&&(e.innerHTML=t.getAttribute("data-modal-popup"))};"loading"!==document.readyState?n():window.addEventListener("DOMContentLoaded",(function(){n()}))},function(t,e,n){"use strict";var i=n(0),r=function(){var t=document.querySelector(".cmp-fund-card-portfolio-manager .profile-managers-details");null!==document.querySelector(".cmp-fund-card-portfolio-manager")&&setTimeout((function(){var e=window.innerWidth>=i.l.MD?3:2;o(t,0,e)}),1e3)};
1function o(t,e,n){var r=t.querySelectorAll(".leadership-card"),c=window.innerWidth>=i.l.MD?3:2;if(window.innerWidth>=i.l.SM){if(!(n<=r.length))return a(r,e,n),!1;a(r,e,n),o(t,e+c,n+c)}else r.forEach((function(t,e){t.querySelector(".leadership-name h2").style.height="inherit"}))}function a(t,e,n){var i=0;Array.prototype.slice.call(t,e,n).forEach((function(t,e){t.querySelector(".leadership-name h2").style.height="inherit"})),Array.prototype.slice.call(t,e,n).forEach((function(t,e){i=t.querySelector(".leadership-name h2").offsetHeight>i?t.querySelector(".leadership-name h2").offsetHeight:i})),Array.prototype.slice.call(t,e,n).forEach((function(t,e){t.querySelector(".leadership-name h2").style.height="".concat(i,"px")}))}window.addEventListener("resize",(function(){if(null!==document.querySelector(".cmp-fund-card-portfolio-manager")){var t=document.querySelector(".cmp-fund-card-portfolio-manager .profile-managers-details");setTimeout((function(){var e=window.innerWidth>=i.l.MD?3:2;o(t,0,e)}),1e3)}})),"loading"!==document.readyState?r():window.addEventListener("DOMContentLoaded",(function(){r()}))},function(t,e,n){"use strict";var i=n(3),r=n(20),o=n(0);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s="?lang=".concat(geoLocationLang,"&term="),l=Object(r.b)(),u={},d=!1,h="",f="",p=function(){var t=document.querySelectorAll(".".concat("cmp-fund-document",':not([data-component-state="initialized"])')),e=document.querySelector(".cmp-fund-document-search-results__search-input"),n=document.querySelector(".cmp-fund-document .next-btn .cmp-button"),o=document.querySelectorAll(".cmp-fund-document .remove-fund"),c=document.querySelector(".cmp-fund-document #fund-container1"),p=document.querySelector(".cmp-fund-document #fund-container2"),S=document.querySelector(".cmp-fund-document #fund-container3"),w=document.querySelector(".cmp-fund-document .customize-doc"),A=document.querySelector("#checkbox-button-container"),E=document.querySelector("#accordion-button-container"),L=document.querySelector("#checkbox-container"),k=document.querySelector(".download-doc-msg"),C=document.querySelector(".accordion-document-select-msg"),T=null!==document.querySelector("#fundContainerData")?JSON.parse(document.querySelector("#fundContainerData").value):{};if(t.length>0){var M=function(t){var e=0;(u=t).documents.length>0&&(c.style.display="none",S.style.display="none",p.style.display="block",l=Object(r.b)(),A.closest(".container").classList.add("remove-padding"),document.querySelectorAll(".cmp-text .selected-count").forEach((function(t){t.innerHTML=l.length})),e=function(t){var e=0;t.documents.forEach((function(t,n){!0===t.isDefault&&(e=n)})),e<2&&(e=2);return e}(u),function(t,e,n,i,r,o){var a=e.documents,c="";a.forEach((function(t){c+='<div class="aem-GridColumn aem-GridColumn--default--3 aem-GridColumn--tabletportrait--3 aem-GridColumn--tabletlandscape--3 aem-GridColumn--phone--6 cmp-fund-document__container__block">\n <div class="cmp-fund-document__container__block-container cmp-text">\n <div class="cmp-fund-document__container__block-container-checkbox-block">\n <input type="checkbox" name="'.concat(t.documentName,'" value="').concat(t.isDefault,'" id="').concat(t.documentName,'">\n <label for="').concat(t.documentName,'">\n ').concat(t.documentName,"\n </label>\n </div>\n </div>\n </div>")}));var s="";s+='<div class="cmp-text">\n <p style="text-align: center;"><a href="#" class="show-more-btn show-more">'.concat(i.seeMoreText,"</a></p>\n </div>"),t.innerHTML=c+s,function(t,e,n){document.querySelector(".show-more-btn").addEventListener("click",(function(t){t.preventDefault(),d=!d;var i,r=e.querySelectorAll(".cmp-fund-document__container__block");d?(b(e),r.forEach((function(t,e){e>2&&t.classList.add("hidden")})),document.querySelector(".show-more-btn").classList.add("show-more"),document.querySelector(".show-more-btn").classList.remove("show-less"),document.querySelector(".show-more-btn").setAttribute("aria-live","off"),document.querySelector(".show-more-btn").innerHTML=n.seeMoreText,i=document.querySelector(".download-button-selector button")):(r.forEach((function(t,e){3==e&&(i=t),e>2&&t.classList.remove("hidden")})),b(e),document.querySelector(".show-more-btn").classList.remove("show-more"),document.querySelector(".show-more-btn").classList.add("show-less"),document.querySelector(".show-more-btn").setAttribute("aria-live","off"),document.querySelector(".show-more-btn").innerHTML=n.seeLessText),i&&(null!=i.querySelector("input")&&(i=i.querySelector("input")),i.setAttribute("tabindex","0"),i.focus())}))}(0,o,i),g(r),function(t,e){t.addEventListener("click",(function(t){void 0!==t.target.checked&&(t.target.checked?(u.documents.map((function(e){e.documentName==t.target.id&&(e.isDefault=!0)})),g(e)):(u.documents.map((function(e){e.documentName==t.target.id&&(e.isDefault=!1)})),g(e)))}))}(t,r),v(t),o.querySelectorAll(".cmp-fund-document__container__block").forEach((function(t,e){e>n&&t.classList.add("hidden")})),document.querySelector(".show-more-btn").classList.add("show-more"),document.querySelector(".show-more-btn").classList.remove("show-less"),d=!0}
1(L,u,e,T,A,L),b(L),o[0].focus(),window.scrollTo(0,0))};t.forEach((function(t){var e,n,i,o,c,s,l;Object(r.a)(t),t.setAttribute("data-component-state","initialized"),e=E,n=A.querySelectorAll(".button"),i=e.querySelectorAll(".button"),o=[].concat(a(n),a(i)),c={},s="",l=document.querySelector("#checkbox-container"),o.forEach((function(t,e){if(t.classList.remove("aem-GridColumn--default--12"),t.classList.add("aem-GridColumn","aem-GridColumn--default--3","aem-GridColumn--tabletportrait--4","aem-GridColumn--tabletlandscape--4","aem-GridColumn--phone--12","margin-bottom-15"),0==e||2==e)t.classList.add("aem-GridColumn--offset--default--3","aem-GridColumn--offset--tabletportrait--2","aem-GridColumn--offset--tabletlandscape--2","aem-GridColumn--offset--phone--0","download-button-selector"),t.querySelector("button").removeAttribute("data-link-text"),t.addEventListener("click",(function(t){s="/bin/fund-documents-download?documentNameList="+h,window.open(s,"_blank"),y("funddocuments:download",l)}));else{var n=t.querySelector("button");n.classList.add("email-button"),n.removeAttribute("data-link-text"),t.addEventListener("click",(function(t){var e,n,i,r,o,a,s;c=u.emailTemplate,n="checkbox-container",i=f,r=(e=c).emailSubject,o=e.emailContent,a=e.emailFooter,s="",document.querySelectorAll("#"+n+' input[type="checkbox"]:checked').length>0&&(s="mailto:?subject="+r+"&body="+o+" "+i+a,window.location.href=s),y("funddocuments:email",l)}))}}))})),o.forEach((function(t){t.parentNode.setAttribute("role","alert")})),k.setAttribute("aria-live","polite"),C.setAttribute("aria-live","polite"),n.addEventListener("click",(function(t){if(l.length>0){var e=s;l.forEach((function(t,n){e+=l.length-1!==n?t.split("~")[1]+",":t.split("~")[1]})),Object(i.a)("/bin/fund-documents-data"+e,"GET",M,m,{});var n=l.map((function(t){return t.split("~")[0]})).join(" | ");window.tms_tag=window.tms_tag||[],tms_tag.push({event:"pageChange",page:{name:window.location.href,subsection:"asset management",funds:n,fundcode:l.map((function(t){return t.split("~")[1]})).join(" | ")}})}})),o&&o.forEach((function(t){t.addEventListener("click",(function(t){c.style.display="block",p.style.display="none",S.style.display="none",e.focus()}))})),w&&w.addEventListener("click",(function(t){p.style.display="none",S.style.display="block",function(t){var e=document.querySelector("#accordion-container .aem-Grid");e.innerHTML="";var n=document.createElement("div");n.classList.add("cmp-fund-document__accordion-box");var i=document.createElement("div");i.classList.add("cmp-accordion"),e.appendChild(n),n.appendChild(i);var r=u.documents,o="",a=t.pdfSelectionText.split(" "),c=[];r.forEach((function(e,n){e.isDefault&&c.push(n);var i=!(n>0),r="";e.fundList.forEach((function(e,i){var o="";e.label.forEach((function(t){o+='<span class="label-data">'.concat(t.fundName,"</span>")})),r+='\n <div class="button expand-fund not-select-all">\n <div class="aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--tabletportrait--3 aem-GridColumn--tabletlandscape--3 aem-GridColumn--phone--6 set-padding">\n <div class="cmp-text">\n <div class="cmp-fund-document__container__block-container-expand-checkbox-block" id="not-selected-'.concat(n,'">\n <input type="checkbox" name="').concat(e.value,'" value="').concat(e.urlCode,'" id="').concat(n,"-").concat(i,'">\n <label for="').concat(n,"-").concat(i,'" aria-labelledby="fund-names-').concat(n,"-").concat(i,'">\n <div aria-hidden="true" id="fund-names-').concat(n,"-").concat(i,'">\n ').concat(o,'\n </div>\n </label>\n <span class="view-pdf-padding"><a aria-label="').concat(t.pdfLinkText,'" role="link" class="view-pdf" href="').concat(e.value,'" target="_blank"> ').concat(t.pdfLinkText,"</a></span>\n </div>\n </div>\n </div>\n </div>")}));var s;s="0 "+a[0]+" "+e.fundList.length+" "+a[1],o+='<div class="cmp-accordion__item" data-cmp-hook-accordion="item" id="accordion-'.concat(n,'">\n <div class="cmp-accordion__header cmp-text" aria-live="polite">\n <button id="accordion-button-').concat(n,'" class="cmp-accordion__button').concat(0==n?" cmp-accordion__button--expanded":"",' mutual-accordion-btn" data-cmp-hook-accordion="button" aria-expanded="').concat(i,'">
1\n <span class="cmp-accordion__icon" id="fund-').concat(n,'"></span>\n <span class="cmp-accordion__title" id="fund-').concat(n,'">\n <p id="fund-').concat(n,'">').concat(e.documentName,'</p>\n </span>\n <span class="selected-doc">\n ').concat(e.isDefault?t.allPdfSelectionText:s,'</span>\n </button>\n </div>\n <div data-cmp-hook-accordion="panel" id="accordion-item-panel-').concat(n,'" class="cmp-accordion__panel cmp-accordion__panel').concat(0==n?"--expanded":"--hidden",'">\n <div class="responsivegrid">\n <div class="aem-Grid aem-Grid--12 aem-Grid--default--12 ">\n <div class="cmp-accordion-suggestion-list">\n <ul class="cmp-fund-document__mutual-suggestions"></ul>\n <div class="cmp-accordion-showAll-button" id="button-').concat(n,'">\n <div class="button expand-fund select-all-fund">\n <div class="aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--tabletportrait--3 aem-GridColumn--tabletlandscape--3 aem-GridColumn--phone--6 set-padding">\n <div class="cmp-text">\n <div class="cmp-fund-document__container__block-container-expand-checkbox-block select-all-padding">\n <input type="checkbox" name="').concat(e.documentName,'" value="').concat(e.documentName,'" id="').concat(n,'">\n <label for="').concat(n,'" aria-label="').concat(t.tableHeading,'">\n <div aria-hidden="true">\n ').concat(t.tableHeading,"\n </div>\n </label>\n </div>\n </div>\n </div>\n </div>\n ").concat(r,'\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="separator">\n <div id="separator-00af5c003d" class="cmp-separator">\n <hr class="cmp-separator__horizontal-rule">\n </div>\n </div>')})),i.innerHTML=o,document.querySelectorAll(".view-pdf-padding a").forEach((function(t){t.addEventListener("click",(function(e){var n,i,r=t.closest(".cmp-accordion__item"),o=r?null===(n=r.querySelector(".cmp-accordion__title p"))||void 0===n?void 0:n.textContent.trim():"",a=t.closest(".cmp-fund-document__container__block-container-expand-checkbox-block"),c=a?null===(i=a.querySelector(".label-data"))||void 0===i?void 0:i.textContent.trim():"";window.tms_tag=window.tms_tag||[],tms_tag.push({event:"linkClick",link:{name:"funddocs:viewpdf:".concat(c),product:"tdam:public:",type:"link"},page:{funddocuments:o}})}))})),s=e,s.querySelectorAll(".cmp-accordion__item .cmp-accordion__header .cmp-accordion__button").forEach((function(t){t.addEventListener("click",(function(e){var n=e.target.id.split("-"),i=s.querySelector("#accordion-item-panel-".concat(n[n.length-1]));i&&(t.setAttribute("aria-expanded","".concat("true"!==t.getAttribute("aria-expanded"))),i.classList.contains("cmp-accordion__panel--expanded")?(i.classList.remove("cmp-accordion__panel--expanded"),i.classList.add("cmp-accordion__panel--hidden"),t.classList.remove("cmp-accordion__button--expanded")):(t.classList.add("cmp-accordion__button--expanded"),i.classList.add("cmp-accordion__panel--expanded"),i.classList.remove("cmp-accordion__panel--hidden")))}))})),function(t,e){var n=0,i=e.pdfSelectionText.split(" ");t.querySelectorAll(".cmp-fund-document__accordion-box .cmp-accordion .cmp-accordion__panel .cmp-accordion-showAll-button .select-all-fund").forEach((function(r){r.addEventListener("click",(function(r){if(void 0!==r.target.checked){var o=t.querySelector("#button-".concat(r.target.id));if(o){var a=o.querySelectorAll('.not-select-all input[type="checkbox"]'),c=document.querySelector("#accordion-button-".concat(r.target.id));o.querySelectorAll("input[type=checkbox]").forEach((function(t){if(r.target.checked)t.checked=!0,c.querySelector(".selected-doc").innerHTML=e.allPdfSelectionText;else{t.checked=!1;var n;n=o.querySelectorAll('.not-select-all input[type="checkbox"]:checked').length+" "+i[0]+" "+a.length+" "+i[1],c.querySelector(".selected-doc").innerHTML=n}}))}}n=t.querySelectorAll('.not-select-all input[type="checkbox"]:checked').length,document.querySelector(".selected-doc-count").innerHTML=n,_(t),x(t)}))})),function(t,e){var n=0,i=e.pdfSelectionText.split(" ");t.querySelectorAll(".cmp-fund-document__accordion-box .cmp-accordion .cmp-accordion__panel .cmp-accordion-showAll-button .not-select-all").forEach((function(r){r.addEventListener("click",(function(r){var o=r.target.parentElement.id.split("-"),a=t.querySelector("#button-".concat(o[o.length-1]));if(a){var c=a.querySelectorAll('.not-select-all input[type="checkbox"]'),s=a.querySelectorAll('.not-select-all input[type="checkbox"]:checked'),l=document.querySelector("#accordion-button-".concat(o[o.length-1]));c.length==s.length?a.querySelectorAll('.select-all-fund input[type="checkbox"]').forEach((function(t){t.checked=!0,l.querySelector(".selected-doc").innerHTML=e.allPdfSelectionText})):a.querySelectorAll('.select-all-fund input[type="checkbox"]').forEach((function(t){t.checked=!1;var e;e=s.length+" "+i[0]+" "+c.length+" "+i[1],l.querySelector(".selected-doc").innerHTML=e})),n=t.querySelectorAll('.not-select-all input[type="checkbox"]:checked').length,document.querySelector(".selected-doc-count").innerHTML=n,_(t),x(t)}}))}))}(t,e)}(e,t),function(t,e){var n=t.querySelectorAll(".cmp-fund-document__accordion-box .cmp-accordion .cmp-accordion__panel .cmp-accordion-showAll-button");
1e.forEach((function(t){n.forEach((function(e,n){t==n&&e.querySelectorAll('input[type="checkbox"]').forEach((function(t){t.checked=!0}))}))})),document.querySelector(".selected-doc-count").innerHTML=t.querySelectorAll('.not-select-all input[type="checkbox"]:checked').length}(e,c),v(e),_(e);var s}(T);var e,n=(e=0,u.documents.forEach((function(t){e+=t.fundList.length})),e);document.querySelector(".max-documents").innerHTML=n,o[1].focus()}))}};function m(t){console.log(t)}function g(t){var e=u.documents.filter((function(t){return!0===t.isDefault})),n=0;h="",f="",e.forEach((function(t){n+=t.fundList.length})),e.length>0?(document.querySelectorAll(".cmp-text .selected-document-cat-count").forEach((function(t){t.innerHTML=n})),t.style.display="block",document.querySelector(".no-document-select-msg").classList.add("hidden"),document.querySelector(".download-doc-msg").classList.remove("hidden"),e.forEach((function(t){n+=t.fundList.length,t.fundList.forEach((function(t){t.value&&(f+="%0A"+encodeURI(t.value)),t.urlCode&&""!==h?h+=";"+t.urlCode:h+=t.urlCode}))}))):(document.querySelectorAll(".cmp-text .selected-document-cat-count").forEach((function(t){t.innerHTML="0"})),t.style.display="none",document.querySelector(".download-doc-msg").classList.add("hidden"),document.querySelector(".no-document-select-msg").classList.remove("hidden"))}function y(t,e){var n=Object(r.b)().map((function(t){return t.split("~")[0]})).join(" | "),i=Array.from(e.querySelectorAll('input[type="checkbox"]:checked')).map((function(t){return t.name})).join(" | "),o=Object(r.b)().map((function(t){return t.split("~")[1]})).join(" | ");window.tms_tag=window.tms_tag||[],tms_tag.push({event:"linkClick",link:{name:t,product:"tdam:public:",type:"link"},page:{funddocuments:i,funds:n,fundcode:o}})}function v(t){t.querySelectorAll("input[type=checkbox]").forEach((function(t){["keypress"].forEach((function(e){t.addEventListener(e,(function(n){if("keypress"===e&&n.keyCode===o.m.ENTER){if("INPUT"!==n.target.tagName)return;t.click()}}))}))}))}function b(t){t.querySelectorAll("input[type=checkbox]").forEach((function(t){"true"==t.value&&(t.checked=!0)}))}function x(t){h="",f="",t.querySelectorAll('.not-select-all input[type="checkbox"]:checked').forEach((function(t){t.name&&(f+="%0A"+encodeURI(t.name)),t.value&&""!==h?h+=";"+t.value:h+=t.value}))}function _(t){var e=t.querySelectorAll('.not-select-all input[type="checkbox"]:checked'),n=document.querySelector("#accordion-button-container");e.length>0?(n.classList.remove("hidden"),document.querySelector(".accordion-document-select-msg").classList.remove("hidden"),document.querySelector(".accordion-no-document-select-msg").classList.add("hidden")):(n.classList.add("hidden"),document.querySelector(".accordion-document-select-msg").classList.add("hidden"),document.querySelector(".accordion-no-document-select-msg").classList.remove("hidden"))}"loading"!==document.readyState?p():document.addEventListener("DOMContentLoaded",p)},function(t,e,n){"use strict";var i=n(0);function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=!1,c="",s="",l=function(){var t=document.querySelector(".".concat("cmp-fund-document-resources")),e=document.querySelector(".cmp-fund-document-resources__checkbox-placeholder"),n=document.querySelector(".cmp-fund-document-resources__checkbox-button-wrapper"),o=document.querySelector(".cmp-fund-document-resources .download-doc-msg"),l=null!==document.querySelector(".cmp-fund-document-resources #fundDocResourceData")?JSON.parse(document.querySelector(".cmp-fund-document-resources #fundDocResourceData").value):{};if(null!==t){var d=null!==t.getAttribute("data-document-first")?t.getAttribute("data-document-first"):"",h=null!==t.getAttribute("data-document-second")?t.getAttribute("data-document-second"):"",f=null!==t.getAttribute("data-fund-document")?JSON.parse(t.getAttribute("data-fund-document")):"",p=null!==t.getAttribute("data-email-template")?JSON.parse(t.getAttribute("data-email-template")):"";f.forEach((function(t,e){t.isDefault=!1,d!=t.label&&h!=t.label||(t.isDefault=!0)})),function(t,e,n,r){t.length>0&&(!function(t,e,n,r,o){var c=e,s="",l=n.pdfExt?n.pdfExt:"";
1c.forEach((function(t,e){s+='<div class="aem-GridColumn aem-GridColumn--default--3 aem-GridColumn--tabletportrait--3 aem-GridColumn--tabletlandscape--3 aem-GridColumn--phone--6 cmp-fund-document-resources__block">\n <div class="cmp-fund-document-resources__block-container cmp-text">\n <div class="cmp-fund-document-resources__block-container-checkbox-block">\n <input type="checkbox" name="'.concat(t.label,'" value="').concat(t.isDefault,'" id="').concat(t.label," - ").concat(e,'">\n <label for="').concat(t.label," - ").concat(e,'">\n <a href="').concat(t.value,'" target="_blank">').concat(t.label+l,"</a>\n </label>\n </div>\n </div>\n </div>")}));var d="";d+='<div class="cmp-text">\n <p style="text-align: center;"><a href="#" class="show-more-btn show-more">'.concat(n.seeMoreText,"</a></p>\n </div>"),t.innerHTML=s+d,function(t,e){document.querySelector(".cmp-fund-document-resources .show-more-btn").addEventListener("click",(function(n){n.preventDefault(),a=!a;var i,r=t.querySelectorAll(".cmp-fund-document-resources__block"),o=document.querySelector(".cmp-fund-document-resources .show-more-btn");a?(r.forEach((function(t,e){e>2&&t.classList.add("hidden")})),o.classList.add("show-more"),o.classList.remove("show-less"),o.setAttribute("aria-live","off"),o.innerHTML=e.seeMoreText,i=document.querySelector(".download-button-selector button")):(r.forEach((function(t,e){3==e&&(i=t),e>2&&t.classList.remove("hidden")})),o.classList.remove("show-more"),o.classList.add("show-less"),o.setAttribute("aria-live","off"),o.innerHTML=e.seeLessText),i&&(null!=i.querySelector("input")&&(i=i.querySelector("input")),i.setAttribute("tabindex","0"),i.focus())}))}(o,n),u(r,e),function(t,e,n){t.addEventListener("click",(function(t){void 0!==t.target.checked&&(t.target.checked?(n.map((function(e,n){e.label+" - ".concat(n)==t.target.id&&(e.isDefault=!0)})),u(e,n)):(n.map((function(e,n){e.label+" - ".concat(n)==t.target.id&&(e.isDefault=!1)})),u(e,n)))}))}(t,r,e),function(t){t.querySelectorAll("input[type=checkbox]").forEach((function(t){["keypress"].forEach((function(e){t.addEventListener(e,(function(n){if("keypress"===e&&n.keyCode===i.m.ENTER){if("INPUT"!==n.target.tagName)return;t.click()}}))}))}))}(t);var h=o.querySelectorAll(".cmp-fund-document-resources__block"),f=document.querySelector(".cmp-fund-document-resources .show-more-btn");setTimeout((function(){h.forEach((function(t,e){e>2&&!0!==t.querySelector("input").checked&&t.classList.add("hidden")}))}),100),f.classList.add("show-more"),f.classList.remove("show-less"),a=!0}(e,t,n,r,e),e.querySelectorAll("input[type=checkbox]").forEach((function(t){"true"==t.value&&(t.checked=!0)})))}(f,e,l,n),o.setAttribute("aria-live","polite"),function(t,e){var n=r(t.querySelectorAll(".button")),i="";n.forEach((function(t,n){0==n?t.addEventListener("click",(function(t){i="/bin/fund-documents-download?documentNameList="+c,window.open(i,"_blank")})):(t.querySelector("button").classList.add("email-button"),t.addEventListener("click",(function(t){var n,i,r,o,a,c,l;i="cmp-fund-document-resources__checkbox-placeholder",r=s,o=(n=e).emailSubject,a=n.emailContent,c=n.emailFooter,l="",document.querySelectorAll("."+i+' input[type="checkbox"]:checked').length>0&&(l="mailto:?subject="+o+"&body="+a+" "+r+c,window.location.href=l)})))}))}(n,p)}};function u(t,e){var n=e.filter((function(t){return!0===t.isDefault})),i=0;if(c="",s="",n.forEach((function(t){i=n.length})),n.length>0){var r=document.querySelector(".download-doc-msg").innerHTML,o=(new DOMParser).parseFromString(r,"text/html");o.querySelector(".selected-document-cat-count").innerHTML=i,document.querySelector(".download-doc-msg").innerHTML=o.body.innerHTML,t.style.display="block",document.querySelector(".no-document-select-msg").classList.add("hidden"),document.querySelector(".download-doc-msg").classList.remove("hidden"),n.forEach((function(t){t.value&&(s+="%0A"+encodeURI(t.value)),t.urlCode&&""!==c?c+=";"+t.urlCode:c+=t.urlCode}))}else document.querySelector(".cmp-fund-document-resources .selected-document-cat-count").innerHTML=i,t.style.display="none",document.querySelector(".download-doc-msg").classList.add("hidden"),document.querySelector(".no-document-select-msg").classList.remove("hidden")}"loading"!==document.readyState?l():document.addEventListener("DOMContentLoaded",l)},function(t,e,n){"use strict";var i=n(20),r={init:function(){var t=document.querySelectorAll(".".concat("cmp-fund-document-search-results",':not([data-component-state="initialized"])'));t.length>0&&t.forEach((function(t){!function(t){Object(i.a)(t)}(t),t.setAttribute("data-component-state","initialized")}))}};"loading"!==document.readyState?r().init():document.addEventListener("DOMContentLoaded",r.init)},function(t,e,n){"use strict";var i=n(3),r=n(0),o=n(9),a=n(27),c=n(2);function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;
1!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==e);s=!0);}catch(t){l=!0,r=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var u,d,h,f,p,m,g=window.location.href.includes("story")?"/json/fund-filter.json":"/bin/fund-filter-data",y=window.location.href.includes("story")?"/json/etf-fund-filter.json":"/bin/fund-filter-data",v=window.location.href.includes("story")?"/json/fund-tab.json":"/bin/fund-filter-data",b=window.location.href.includes("story")?"/json/annual-tab.json":"/bin/fund-filter-data",x=window.location.href.includes("story")?"/json/calender-tab.json":"/bin/fund-filter-data",_=window.location.href.includes("story")?"/json/distribution-tab.json":"/bin/fund-filter-data",S=!1,w=!1,A=!1,E=0,L=[],k=[],C=[],T=[],M=[],q=[],I="tab-overview",O=!1,P=!1,N="",D=window.innerWidth,B=0,j=!0,R=["tab-overview","tab-annual","tab-calendar","tab-distribution"],H=function(){if(null!==document.querySelector('.cmp-fund-tab-filters:not([data-component-state="initialized"])')){u=document.querySelector(".fund-filter-overview"),d=document.querySelector(".fund-filter-annual"),h=document.querySelector(".fund-filter-calendar"),f=document.querySelector(".fund-filter-distribution"),p=u,Element.prototype.appendAfter=function(t){t.parentNode.insertBefore(this,t.nextSibling)};var t=document.createElement("DIV");t.classList.add("loader-wrapper"),t.innerHTML='<div class="container responsivegrid">\n <div class="spinner-block hidden"></div>\n <div class="fund-filter-error-banner hidden">\n <div class="cmp-fund-filter__container-error__banner aem-Grid aem-Grid--12">\n <div class="cmp-fund-filter__container-error__banner__text aem-GridColumn aem-GridColumn--offset--default--1 aem-GridColumn--default--11 aem-GridColumn--tabletlandscape--11 aem-GridColumn--tabletportrait--11 aem-GridColumn--offset--phone--0 aem-GridColumn--phone--12">\n <span class="td-icon td-icon-error cmp-notification__icon--regular"></span>\n <p></p>\n </div>\n </div>\n </div>\n </div>',t.appendAfter(document.querySelector(".cmp-tabs__outer-container")),U(!1),document.querySelectorAll(".selected-filter .selected-filter-left .selected-filters-column").forEach((function(t,e){t.classList.add("selected-filters-column_"+(e+1))}));var e=document.querySelectorAll(".cmp-tabs__tab");e[0].classList.remove("cmp-tabs__tab--active"),e[0].click(),e.forEach((function(t){t.classList.remove("cmp-tabs__tab--active")})),document.querySelector("#filter-fund-text-count h2").setAttribute("aria-live","assertive"),document.querySelector("#filter-fund-text-count h2").setAttribute("aria-atomic","true"),function(){var t=document.querySelector("#cmp-fund-search .cmp-fund-search__suggestion-input .self-help-form");if(t){var e=document.querySelector("#cmp-fund-search .cmp-fund-search__suggestion").getAttribute("data-close-aria-label");t.insertAdjacentHTML("beforeend",'<button class="td-icon td-icon-close close-icon" tabindex="0" aria-label="'.concat(e,'"></button>'))}}(),function(){if(null!==document.querySelector("#cmp-fund-filter")){var t=null!==document.querySelector(".cmp-fund-tab-filters")?W():{},e=document.querySelectorAll(".cmp-fund-filter .filter-right .action-item ul li"),n=document.querySelectorAll(".checkbox-button-wrapper button"),o=document.querySelector(".close-icon"),a="etf"==t.productType?y:g;Object(i.a)(a+"?productType=".concat(t.productType,"&reqType=filter&lang=").concat(geoLocationLang),"GET","etf"==t.productType?_t:xt,Ft),o&&["click","keypress"].forEach((function(t){o.addEventListener(t,(function(n){if("click"===t||n.keyCode===r.m.ENTER){X(A=!1);var i=e[1];
1i.setAttribute("aria-expanded","false"),i.classList.remove("button-width"),i.focus(),o.removeAttribute("aria-expanded")}}))})),e.forEach((function(t,e){0==e?function(t){["click","keypress","mouseover","mouseout"].forEach((function(e){t.addEventListener(e,(function(n){"click"===e||n.keyCode===r.m.ENTER?(at(),w=!1,A=!1,rt(t,S=!S),U(!1),X(!1),Y(S),"etf"===W().productType?it(S):nt(S)):ot(t,e)}))}))}(t):1==e?function(t){["click","keypress","mouseover","mouseout"].forEach((function(e){t.addEventListener(e,(function(n){if("click"===e||n.keyCode===r.m.ENTER){var i=document.querySelectorAll(".cmp-fund-filter .filter-right .action-item ul li");n.preventDefault(),at(),S=!1,w=!1,rt(t,A=!A),rt(i[1],A),Y(!1),U(!1),X(A),"etf"===W().productType?it(S):nt(S),"etf"===W().productType?it(S):nt(S),function(t,e){t&&e===r.m.ENTER?(t.blur(),t.value=null,t.focus()):t&&t.focus()}(document.querySelector(".cmp-fund-search__search-input"),n.keyCode)}else ot(t,e)}))}))}(t):function(t){["click","keypress","mouseover","mouseout"].forEach((function(e){t.addEventListener(e,(function(n){"click"===e||n.keyCode===r.m.ENTER?(at(),S=!1,A=!1,rt(t,w=!w),U(w),Y(!1),X(!1),"etf"===W().productType?it(S):nt(S)):ot(t,e)}))}))}(t)})),n.forEach((function(t,e){0==e&&["click"].forEach((function(e){t.addEventListener(e,(function(t){C=[],T=[],M=[],q=[],O=!1,"etf"===W().productType?(P=!0,N="",St(document.querySelector(".cmp-fund-filter__container__1")),St(document.querySelector(".cmp-fund-filter__container__2")),J(document.querySelector(".cmp-fund-filter__container__1")),Z(document.querySelector(".cmp-fund-filter__container__2")),ut(I,0)):(function(){k.needTypeVOList.length>0&&(document.querySelector(".cmp-fund-filter__container__3").querySelectorAll("input[type=checkbox]").forEach((function(t){return t.checked=!1})),tt(document.querySelector(".cmp-fund-filter__container__3")));var t,e=document.querySelector(".cmp-fund-filter__container__1").querySelectorAll("input[type=checkbox]"),n=document.querySelector(".cmp-fund-filter__container__2").querySelectorAll("input[type=radio]");e.forEach((function(t){return t.checked=!1})),n.forEach((function(t){return t.checked=!1})),t=!1,document.querySelectorAll(".checkbox-button-wrapper button")[1].disabled=t,$(!0);var i=document.querySelector(".cmp-fund-filter__container__1"),r=document.querySelector(".cmp-fund-filter__container__2");J(i),Q(r),E=0}(),lt(I,0)),ft(),document.querySelectorAll(".checkbox-button-wrapper .button")[1].querySelector("button").focus()}))})),1==e&&["click"].forEach((function(e){t.addEventListener(e,(function(t){S=!S,Y(!1),C=[],T=[],M=[],q=[],O=!0,P=!1,N="","etf"===W().productType?(it(S),ut(I,1)):(nt(S),lt(I,1)),ft(),at(),document.getElementById(I).focus()}))}))})),R.forEach((function(t){["click","keyup"].forEach((function(e){document.getElementById(t).addEventListener(e,(function(n){!function(t,e,n){if("click"===t||e.keyCode===r.m.ARROW_LEFT||e.keyCode===r.m.ARROW_RIGHT){var i=function(t){switch(t){case"tab-overview":return"fund-filter-overview";case"tab-annual":return"fund-filter-annual";case"tab-calendar":return"fund-filter-calendar";case"tab-distribution":return"fund-filter-distribution"}return null}(n);Ht(document.querySelector("."+i+" table")),window.innerWidth>=r.l.MD?("etf"===W().productType?ut(n,-1):lt(n,-1),I=n):("etf"===W().productType?oe(n,-1):re(n,-1),I=n)}}(e,n,t)}))}))}))}}();var n=document.querySelector("#filterExpanded");if(n&&"false"===n.getAttribute("data-enableFilter"))S=!0,Y(!0),rt(document.querySelector(".cmp-fund-filter .filter-right .action-item ul li:first-child"),S);else Y(!1)}if(u){var o=null!==document.querySelector(".cmp-fund-tab-filters")?W():{};G(),Object(i.a)(v+"?productType=".concat(o.productType,"&reqType=overview&lang=").concat(geoLocationLang),"GET",At,Ft,{},u)}window.scrollTo(0,0)};function z(){var t=document.querySelectorAll(".cmp-fund-tab-filters .cmp-tabs__tablist .cmp-tabs__tab");t.length>0&&t.forEach((function(t){t.classList.remove("tab-disabled")}))}function F(){j?(window.scrollTo(0,0),j=!1):document.getElementById("filter-fund-text-count").scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}function G(){B=0,function(){var t=document.querySelectorAll(".cmp-fund-tab-filters .cmp-tabs__tablist .cmp-tabs__tab");t.length>0&&t.forEach((function(t){t.classList.add("tab-disabled")}))}(),dt(!1);var t=null!==document.querySelector(".cmp-fund-filter .filter-left")?document.querySelector(".cmp-fund-filter .filter-left").getAttribute("data-spinner-image"):{},e=null!==document.querySelector(".cmp-fund-filter .filter-left")?document.querySelector(".cmp-fund-filter .filter-left").getAttribute("data-spinner-errorMessage1"):{},n='<div class="loading-img"> <img src= '.concat(t,"> </div>\n <span role='alert'> ").concat(e,"</span>");document.querySelector(".spinner-block").innerHTML=n,document.querySelector(".spinner-block").classList.remove("hidden"),document.querySelectorAll(".cmp-tabs__tabpanel").forEach((function(t){t.classList.add("hidden")})),m=setInterval((function(){var e=null!==document.querySelector(".cmp-fund-filter .filter-left")?document.querySelector(".cmp-fund-filter .filter-left").getAttribute("data-spinner-errorMessage2"):{},n='<div class="loading-img"> <img src= '.concat(t,"> </div>
1\n <span role='alert'> ").concat(e,"</span>");document.querySelector(".cmp-fund-filter__container-error__banner p").setAttribute("role","alert");var i=B++;if(5===i&&(document.querySelector(".spinner-block").innerHTML=n),i>10){z();var r=null!==document.querySelector(".cmp-fund-filter .filter-left")?document.querySelector(".cmp-fund-filter .filter-left").getAttribute("data-spinner-errorMessage3"):{};dt(!0),document.querySelector(".cmp-fund-filter__container-error__banner p").innerHTML=r,document.querySelector("#filter-fund-text-count h2 span").innerHTML="",document.querySelector(".spinner-block").classList.add("hidden"),clearInterval(m)}}),1e3)}function W(){return JSON.parse(document.querySelector(".cmp-fund-tab-filters").getAttribute("data-page-details"))}function U(t){var e=document.querySelector("#cmp-fund-resource");t?e.classList.remove("hidden"):e.classList.add("hidden"),t?e.setAttribute("aria-hidden","false"):e.setAttribute("aria-hidden","true")}function Y(t){var e=document.querySelector(".fund-filter__selected-wrapper");t?e.classList.remove("hidden"):e.classList.add("hidden"),t?e.setAttribute("aria-hidden","false"):e.setAttribute("aria-hidden","true")}function V(t){var e=document.querySelector("#cmp-fund-filter");e&&(t?e.classList.remove("hidden"):e.classList.add("hidden"))}function X(t){var e=document.querySelector("#cmp-fund-search");e&&(t?e.classList.add("search-visibility"):e.classList.remove("search-visibility"),t?e.setAttribute("aria-hidden","false"):e.setAttribute("aria-hidden","true"),window.innerWidth>=r.l.SM&&V(!t))}function $(t){var e=document.querySelectorAll(".checkbox-button-wrapper button");t?e[0].classList.add("hidden"):e[0].classList.remove("hidden")}function K(t){var e=t.totalFundRecords,n=document.getElementById("filter-fund-text-count");(n=n.querySelector("h2 span"))&&(n.innerHTML=e)}function J(t){var e=document.querySelector(".cmp-fund-filter__container__1 .cmp-fund-filter__container__results__block--info-content-text").getAttribute("data-filterOptionDynamicSubHeader"),n=document.querySelector(".cmp-fund-filter__container__1 .cmp-fund-filter__container__results__block--info-content-text").getAttribute("data-filteroptionsubheader"),i=document.getElementById("fund-filter-container1").getAttribute("data-all-text"),r=t.querySelectorAll("input[type=checkbox]:checked").length,o=t.querySelectorAll("input[type=checkbox]").length,a=document.querySelector(".cmp-fund-filter__container__1 .cmp-fund-filter__container__results__block--info-content-text p"),c=document.querySelector(".selected-filter .selected-filter-left .selected-filters-column_1 p");r==o?(a.innerHTML=i,c.innerHTML=i):r>0?(a.innerHTML=r+" "+e,c.innerHTML=r+" "+e):(a.innerHTML=n,c.innerHTML=n)}function Z(t){var e=document.querySelector(".cmp-fund-filter__container__2 .cmp-fund-filter__container__results__block--info-content-text").getAttribute("data-filterOptionDynamicSubHeader"),n=document.querySelector(".cmp-fund-filter__container__2 .cmp-fund-filter__container__results__block--info-content-text").getAttribute("data-filteroptionsubheader"),i=document.getElementById("fund-filter-container1").getAttribute("data-all-text"),r=t.querySelectorAll("input[type=checkbox]:checked").length,o=t.querySelectorAll("input[type=checkbox]").length,a=document.querySelector(".cmp-fund-filter__container__2 .cmp-fund-filter__container__results__block--info-content-text p"),c=document.querySelector(".selected-filter .selected-filter-left .selected-filters-column_2 p");r==o?(a.innerHTML=i,c.innerHTML=i):r>0?(a.innerHTML=r+" "+e,c.innerHTML=r+" "+e):(a.innerHTML=n,c.innerHTML=n)}function Q(t){!function(t){var e=t.querySelector("input[type=radio]:checked");if(e){var n=L.fundSeriesGroupList.filter((function(t){return t.fundSeriesGroupID==e.id.replace("Series_","")}));document.querySelector("#fund-filter-landing-popover-series .cmp-dialog__body").innerHTML=n[0].popOverContent}}(t);var e=document.querySelector(".cmp-fund-filter__container__2 .cmp-fund-filter__container__results__block--info-content-text").getAttribute("data-filterOptionDynamicSubHeader"),n=document.querySelector(".cmp-fund-filter__container__2 .cmp-fund-filter__container__results__block--info-content-text").getAttribute("data-filteroptionsubheader"),i=t.querySelectorAll("input[type=radio]:checked").length,r=document.querySelector(".cmp-fund-filter__container__2 .cmp-fund-filter__container__results__block--info-content-text p"),o=document.querySelector(".selected-filter .selected-filter-left .selected-filters-column_2 p"),a=t.querySelector("span.h3 a");i>0?(r.innerHTML=i+" "+e,o.innerHTML=i+" "+e,a.classList.remove("hidden")):(r.innerHTML=n,o.innerHTML=n,a.classList.add("hidden"))}function tt(t){var e=document.querySelector(".cmp-fund-filter__container__3 .cmp-fund-filter__container__results__block--info-content-text").getAttribute("data-filterOptionDynamicSubHeader"),n=document.getElementById("fund-filter-container1").getAttribute("data-all-text"),i=t.querySelectorAll("input[type=checkbox]:checked").length,r=t.querySelectorAll("input[type=checkbox]").length,o=document.querySelector(".cmp-fund-filter__container__3 .cmp-fund-filter__container__results__block--info-content-text p"),a=document.querySelector(".selected-filter .selected-filter-left .selected-filters-column_3 p");i==r?(o.innerHTML=n,a.innerHTML=n):i>0?(o.innerHTML=i+" "+e,a.innerHTML=i+" "+e,o.ariaHidden="false",a.ariaHidden="false"):(o.innerHTML=" ",a.innerHTML=" ",o.ariaHidden="true",a.ariaHidden="true")}function et(){var t=document.querySelector(".cmp-fund-filter__container__1").querySelectorAll("input[type=checkbox]:checked"),e=document.querySelector(".cmp-fund-filter__container__2").querySelectorAll("input[type=radio]:checked");if(k.needTypeVOList.length>0){var n=document.querySelector(".cmp-fund-filter__container__3").querySelectorAll("input[type=checkbox]:checked");t.length>0||e.length>0||n.length>0?$(!1):$(!0)}else!function(t,e){t.length>0||e.length>0?$(!1):$(!0)}(t,e)}function nt(t){var e=document.querySelector(".cmp-fund-filter .selected-filter"),n=document.querySelector(".cmp-fund-filter .filter-left"),i=document.querySelector(".cmp-fund-filter__container__1").querySelectorAll("input[type=checkbox]:checked"),r=document.querySelector(".cmp-fund-filter__container__2").querySelectorAll("input[type=radio]:checked");if(k.needTypeVOList.length>0){var o=document.querySelector(".cmp-fund-filter__container__3").querySelectorAll("input[type=checkbox]:checked");t||w||A||!(i.length>0||r.length>0||o.length>0)?(e.classList.add("hidden"),n.classList.remove("hidden")):(e.classList.remove("hidden"),n.classList.add("hidden"))}else!function(t,e,n,i,r,o,a){t||e||n||!(i.length>0||r.length>0)?(o.classList.add("hidden"),a.classList.remove("hidden")):(o.classList.remove("hidden"),a.classList.add("hidden"))}(t,w,A,i,r,e,n)}function it(t){var e=document.querySelector(".cmp-fund-filter .selected-filter"),n=document.querySelector(".cmp-fund-filter .filter-left"),i=document.querySelector(".cmp-fund-filter__container__1").querySelectorAll("input[type=checkbox]:checked"),r=document.querySelector(".cmp-fund-filter__container__2").querySelectorAll("input[type=checkbox]:checked");t||w||A||!(i.length>0||r.length>0)?(e.classList.add("hidden"),n.classList.remove("hidden")):(e.classList.remove("hidden"),n.classList.add("hidden"))}function rt(t,e){e?t.classList.add("button-width"):t.classList.remove("button-width"),e?t.setAttribute("aria-expanded","true"):t.setAttribute("aria-expanded","fal
1se")}function ot(t,e){var n=document.querySelectorAll(".cmp-fund-filter .filter-right .action-item ul li");"mouseover"==e?n.forEach((function(e){!e!==t&&e.classList.remove("button-width")})):n.forEach((function(t,e){(0===e&&S||1===e&&A||2===e&&w)&&t.classList.add("button-width")}))}function at(){document.querySelectorAll(".cmp-fund-filter .filter-right .action-item ul li").forEach((function(t){t.setAttribute("aria-expanded","false")}))}function ct(t,e,n){O?""===N&&(N="&".concat(t,"&").concat(e,"&").concat(n)):N=""}function st(t,e){O||P?""===N&&(N="&".concat(t,"&").concat(e)):N=""}function lt(t,e){var n=W(),r=new URLSearchParams({category:mt()});switch(ct(new URLSearchParams({series:gt()}),r,k.needTypeVOList.length>0?new URLSearchParams({currency:yt()}):new URLSearchParams({currency:[]})),t){case"tab-overview":0==C.length?(G(),Object(i.a)(v+"?productType=".concat(n.productType,"&reqType=overview&lang=").concat(geoLocationLang+N),"get",At,Ft,{},u)):(K(C),dt(!1),ht(),F()),pt(e),p=u;break;case"tab-annual":0==T.length?(G(),Object(i.a)(b+"?productType=".concat(n.productType,"&reqType=Annualized&lang=").concat(geoLocationLang+N),"get",At,Ft,{},d)):(K(T),dt(!1),ht(),F()),pt(e),p=d;break;case"tab-calendar":0==M.length?(G(),Object(i.a)(x+"?productType=".concat(n.productType,"&reqType=calendar&lang=").concat(geoLocationLang+N),"get",At,Ft,{},h)):(K(M),dt(!1),ht(),F()),pt(e),p=h;break;case"tab-distribution":0==q.length?(G(),Object(i.a)(_+"?productType=".concat(n.productType,"&reqType=distribution&lang=").concat(geoLocationLang+N),"get",At,Ft,{},f)):(K(q),dt(!1),ht(),F()),pt(e),p=f}}function ut(t,e){var n=W();switch(st(new URLSearchParams({assetVal:vt()}),new URLSearchParams({geography:bt()})),t){case"tab-overview":0==C.length?(G(),Object(i.a)(v+"?productType=".concat(n.productType,"&reqType=overview&lang=").concat(geoLocationLang+N),"get",At,Ft,{},u)):(K(C),dt(!1),ht(),F()),pt(e),p=u;break;case"tab-annual":0==T.length?(G(),Object(i.a)(b+"?productType=".concat(n.productType,"&reqType=Annualized&lang=").concat(geoLocationLang+N),"get",At,Ft,{},d)):(K(T),dt(!1),ht(),F()),pt(e),p=d;break;case"tab-calendar":0==M.length?(G(),Object(i.a)(x+"?productType=".concat(n.productType,"&reqType=calendar&lang=").concat(geoLocationLang+N),"get",At,Ft,{},h)):(K(M),dt(!1),ht(),F()),pt(e),p=h;break;case"tab-distribution":0==q.length?(G(),Object(i.a)(_+"?productType=".concat(n.productType,"&reqType=distribution&lang=").concat(geoLocationLang+N),"get",At,Ft,{},f)):(K(q),dt(!1),ht(),F()),pt(e),p=f}}function dt(t){t?document.querySelector(".fund-filter-error-banner").classList.remove("hidden"):document.querySelector(".fund-filter-error-banner").classList.add("hidden")}function ht(){document.querySelectorAll(".cmp-tabs__tabpanel").forEach((function(t){t.classList.remove("hidden")}))}function ft(){document.querySelectorAll(".cmp-tabs__tabpanel").forEach((function(t){t.removeAttribute("style")}))}function pt(t){1===t&&document.querySelector("#filter-fund-text-count").focus()}function mt(){var t=document.querySelector(".cmp-fund-filter__container__1").querySelectorAll("input[type=checkbox]:checked"),e=[];return t.forEach((function(t,n){0==n?e.push(t.name):e.push(" "+t.name)})),e}function gt(){var t=document.querySelector(".cmp-fund-filter__container__2").querySelectorAll("input[type=radio]:checked"),e=[];return t.forEach((function(t,n){0==n?e.push(t.id.replace("Series_","")):e.push(" "+t.id.replace("Series_"," "))})),e}function yt(){var t=document.querySelector(".cmp-fund-filter__container__3").querySelectorAll("input[type=checkbox]:checked"),e=[];return t.forEach((function(t,n){0==n?e.push(t.value):e.push(" "+t.value)})),e}function vt(){var t=document.querySelector(".cmp-fund-filter__container__1").querySelectorAll("input[type=checkbox]:checked"),e=[];return P?L.assetClassList.forEach((function(t){t.defaultOption&&e.push(t.assetClassId)})):t.forEach((function(t,n){0==n?e.push(t.name):e.push(" "+t.name)})),e}function bt(){var t=document.querySelector(".cmp-fund-filter__container__2").querySelectorAll("input[type=checkbox]:checked"),e=[];return P?L.geographyTypeList.forEach((function(t){t.defaultOption&&e.push(t.geographyID)}
1)):t.forEach((function(t,n){0==n?e.push(t.name):e.push(" "+t.name)})),e}function xt(t){if(L=t,k=t,t.sectorVOList.length>0){var e=document.querySelector(".cmp-fund-filter__container__1");e.classList.remove("hidden"),document.querySelector(".selected-filter .selected-filter-left .selected-filters-column_1").classList.remove("hidden");var n=document.createElement("div");n.classList.add("cmp-fund-filter__category-checkboxes");var i="";t.sectorVOList.forEach((function(t,e){i+='<div\n class="aem-GridColumn aem-GridColumn--default--3 aem-GridColumn--tabletportrait--3 aem-GridColumn--tabletlandscape--3 aem-GridColumn--phone--6 cmp-fund-filter__container-second-level-filter-buttons__block">\n <div class="cmp-fund-filter__container-second-level-filter-buttons__block-container cmp-text">\n <div\n class="cmp-fund-filter__container-second-level-filter-buttons__block-container-checkbox-block">\n <input type="checkbox" name="'.concat(t.sectorTypeId,'" value="').concat(t.defaultOption,'" id="Cat_').concat(e,'">\n <label for="Cat_').concat(e,'" >\n ').concat(t.sectorDescription,"\n </label>\n </div>\n </div>\n </div>")})),n.innerHTML=i,e.appendChild(n),wt(e),(r=e).querySelectorAll("input[type=checkbox]").forEach((function(t){t.addEventListener("click",(function(t){1==(E+=1)&&document.querySelector(".cmp-fund-filter__container__2 .cmp-fund-filter__series-checkboxes").querySelectorAll("input[type=radio]").forEach((function(t){"true"==t.value?t.checked=!0:t.checked=!1})),J(r),Q(document.querySelector(".cmp-fund-filter__container__2")),et()}))}))}var r;if(t.fundSeriesGroupList.length>0){var a=document.getElementById("fund-filter-container1").getAttribute("data-help-label-text"),c='<a href="#cmp-modal~fund-filter-landing-popover-series" aria-label="'.concat(a,'" role="button">\n <span class="td-icon td-icon-colour-primary icon-small td-icon-question"></span>\n </a>'),s=document.querySelector(".cmp-fund-filter__container__2"),l=s.querySelector(".cmp-fund-filter__container__results__block--title span.h3"),u=document.querySelector(".selected-filter .selected-filter-left .selected-filters-column_2 span.h3");l.innerHTML+=c,u.innerHTML+=c,s.classList.remove("hidden"),document.querySelector(".selected-filter .selected-filter-left .selected-filters-column_2").classList.remove("hidden");var d=document.createElement("div");d.classList.add("cmp-fund-filter__series-checkboxes");var h="";t.fundSeriesGroupList.forEach((function(t,e){h+='<div\n class="aem-GridColumn aem-GridColumn--default--3 aem-GridColumn--tabletportrait--3 aem-GridColumn--tabletlandscape--3 aem-GridColumn--phone--6 cmp-fund-filter__container-second-level-filter-buttons__block">\n <div class="cmp-fund-filter__container-second-level-filter-buttons__block-container cmp-text">\n <div\n class="cmp-fund-filter__container-second-level-filter-buttons__block-container-custom-radio-btn">\n <input type="radio" name="Series" value="'.concat(t.defaultOption,'" id="Series_').concat(t.fundSeriesGroupID,'">\n <label for="Series_').concat(t.fundSeriesGroupID,'">').concat(t.fundSeriesGroupName,"</label>\n </div>\n </div>\n </div>")})),d.innerHTML=h,s.appendChild(d),wt(s),function(t){t.querySelector(".cmp-fund-filter__container__results__block--title span.h3 a").classList.add("hidden"),t.querySelectorAll("input[type=radio]").forEach((function(e){e.addEventListener("click",(function(e){1==(E+=1)&&document.querySelector(".cmp-fund-filter__container__1 .cmp-fund-filter__category-checkboxes").querySelectorAll("input[type=checkbox]").forEach((function(t){"true"==t.value?t.checked=!0:t.checked=!1}));Q(t),J(document.querySelector(".cmp-fund-filter__container__1")),et()}))}))}(s)}if(t.needTypeVOList.length>0){var f=document.querySelector(".cmp-fund-filter__container__3");f.classList.remove("hidden"),document.querySelector(".selected-filter .selected-filter-left .selected-filters-column_3").classList.remove("hidden");var p=document.createElement("div");p.classList.add("cmp-fund-filter__currency-checkboxes");var m="";t.needTypeVOList.forEach((function(t,e){m+='<div\n class="aem-GridColumn aem-GridColumn--default--3 aem-GridColumn--tabletportrait--3 aem-GridColumn--tabletlandscape--3 aem-GridColumn--phone--6 cmp-fund-filter__container-second-level-filter-buttons__block">\n <div class="cmp-fund-filter__container-second-level-filter-buttons__block-container cmp-text">\n <div\n class="cmp-fund-filter__container-second-level-filter-buttons__block-container-checkbox-block">\n <input type="checkbox" name="Currency_'.concat(e,'" value="').concat(t.needTypeID,'" id="Currency_').concat(e,'">\n <label for="Currency_').concat(e,'" >\n ').concat(t.needDescription,"\n </label>\n </div>\n </div>\n </div>")})),p.innerHTML=m,f.appendChild(p),wt(f),function(t){t.querySelectorAll("input[type=checkbox]").forEach((function(e){e.addEventListener("click",(function(e){1==(E+=1)&&(document.querySelector(".cmp-fund-filter__container__1 .cmp-fund-filter__category-checkboxes").querySelectorAll("input[type=checkbox]").forEach((function(t){"true"==t.value?t.checked=!0:t.checked=!1}
1)),document.querySelector(".cmp-fund-filter__container__2 .cmp-fund-filter__series-checkboxes").querySelectorAll("input[type=radio]").forEach((function(t){"true"==t.value?t.checked=!0:t.checked=!1})));tt(t),J(document.querySelector(".cmp-fund-filter__container__1")),Q(document.querySelector(".cmp-fund-filter__container__2")),et()}))}))}(f),tt(f)}Object(o.c)(document),et(),function(t){L=t;var e=document.querySelectorAll(".fund-filter-mobile-view .child-accordion-header .selected-value"),n=document.querySelectorAll(".fund-filter-mobile-view .child-accordion-header .child-accordion-button"),i=document.querySelectorAll(".fund-filter-mobile-view .child-accordion-item"),r=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__1"),a=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__2");if(Gt(e),Wt(i),Ut(n),k.sectorVOList.length>0){document.querySelector(".fund-filter-mobile-view .child-accordion-item_1").classList.remove("hidden");var c="";t.sectorVOList.forEach((function(t,e){c+='<div\n class="cmp-fund-filter__container-second-level-filter-buttons__block">\n <div class="cmp-fund-filter__container-second-level-filter-buttons__block-container cmp-text">\n <div\n class="cmp-fund-filter__container-second-level-filter-buttons__block-container-checkbox-block">\n <input type="checkbox" name="'.concat(t.sectorTypeId,'" value="').concat(t.defaultOption,'" id="MCat_').concat(e,'">\n <label for="MCat_').concat(e,'" >\n ').concat(t.sectorDescription,"\n </label>\n </div>\n </div>\n </div>")})),r.innerHTML=c,wt(r)}if(k.fundSeriesGroupList.length>0){var s=document.querySelector(".fund-filter-mobile-view .child-accordion-item_2"),l=document.createElement("a");l.innerHTML='<span class="td-icon td-icon-colour-primary icon-small td-icon-question"></span>',l.classList.add("descriptor"),l.role="button",l.ariaLabel="help",l.href="#cmp-modal~fund-filter-landing-popover-series",s.insertBefore(l,s.children[1]),document.querySelector(".fund-filter-mobile-view .child-accordion-item_2").classList.remove("hidden");var u="";t.fundSeriesGroupList.forEach((function(t,e){u+='<div\n class="cmp-fund-filter__container-second-level-filter-buttons__block">\n <div class="cmp-fund-filter__container-second-level-filter-buttons__block-container cmp-text">\n <div\n class="cmp-fund-filter__container-second-level-filter-buttons__block-container-custom-radio-btn">\n <input type="radio" name="MSeries" value="'.concat(t.defaultOption,'" id="MSeries_').concat(t.fundSeriesGroupID,'">\n <label for="MSeries_').concat(t.fundSeriesGroupID,'">').concat(t.fundSeriesGroupName,"</label>\n </div>\n </div>\n </div>")})),a.innerHTML=u,wt(a)}if(k.needTypeVOList.length>0){var d=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__3");document.querySelector(".fund-filter-mobile-view .child-accordion-item_3").classList.remove("hidden");var h="";t.needTypeVOList.forEach((function(t,e){h+='<div\n class=" cmp-fund-filter__container-second-level-filter-buttons__block">\n <div class="cmp-fund-filter__container-second-level-filter-buttons__block-container cmp-text">\n <div\n class="cmp-fund-filter__container-second-level-filter-buttons__block-container-checkbox-block">\n <input type="checkbox" name="MCurrency_'.concat(e,'" value="').concat(t.needTypeID,'" id="MCurrency_').concat(e,'">\n <label for="MCurrency_').concat(e,'" >\n ').concat(t.needDescription,"\n </label>\n </div>\n </div>\n </div>")})),d.innerHTML=h,wt(d),function(t,e,n){t.querySelectorAll("input[type=checkbox]").forEach((function(t){t.addEventListener("click",(function(t){1==(E+=1)&&(Jt(e),Zt(n)),Kt(),Yt(ne())}))}))}(d,r,a)}else document.querySelector(".fund-filter-mobile-view .child-accordion-item_2").style.borderBottom="none";(function(t,e){t.querySelectorAll("input[type=checkbox]").forEach((function(t){t.addEventListener("click",(function(t){1==(E+=1)&&Zt(e),Vt(),Yt(ne())}))}))})(r,a),function(t,e){t.querySelectorAll("input[type=radio]").forEach((function(t){t.addEventListener("click",(function(t){1==(E+=1)&&Jt(e),Xt(),Yt(ne())}))}))}(a,r),Yt(!1),document.querySelectorAll(".fund-filter-mobile-view .fund-filter-mobile-button-wrapper button").forEach((function(t,e){var n=document.querySelector("#filterExpandedMobile");n&&"false"===n.getAttribute("data-enableFilter")&&ie(),0==e&&["click","keypress"].forEach((function(e){t.addEventListener(e,(function(t){var e=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__1").querySelectorAll("input[type=checkbox]"),n=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__2").querySelectorAll("input[type=radio]");k.needTypeVOList.length>0&&(document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__3").querySelectorAll("input[type=checkbox]").forEach((function(t){return t.checked=!1}
1)),Kt()),e.forEach((function(t){return t.checked=!1})),n.forEach((function(t){return t.checked=!1})),Yt(ne()),Xt(),Vt(),C=[],T=[],M=[],q=[],O=!1,re(I,0),ft(),E=0}))})),1==e&&["click","keypress"].forEach((function(e){t.addEventListener(e,(function(t){document.querySelectorAll(".fund-filter-mobile-view .cmp-accordion__button").forEach((function(t){t.classList.contains("cmp-accordion__button--expanded")&&t.click()})),C=[],T=[],M=[],q=[],O=!0,N="",re(I,1),ft(),document.getElementById(I).focus()}))}))})),Xt(),Object(o.c)(document)}(t)}function _t(t){if(L=t,k=t,t.assetClassList.length>0){var e=document.querySelector(".cmp-fund-filter__container__1");e.classList.remove("hidden"),document.querySelector(".selected-filter .selected-filter-left .selected-filters-column_1").classList.remove("hidden");var n=document.createElement("div");n.classList.add("cmp-fund-filter__asset-class");var i="";t.assetClassList.forEach((function(t,e){i+='<div\n class="aem-GridColumn aem-GridColumn--default--3 aem-GridColumn--tabletportrait--3 aem-GridColumn--tabletlandscape--3 aem-GridColumn--phone--6 cmp-fund-filter__container-second-level-filter-buttons__block">\n <div class="cmp-fund-filter__container-second-level-filter-buttons__block-container cmp-text">\n <div\n class="cmp-fund-filter__container-second-level-filter-buttons__block-container-checkbox-block">\n <input type="checkbox" name="'.concat(t.assetClassId,'" value="').concat(t.defaultOption,'" id="asset_').concat(e,'">\n <label for="asset_').concat(e,'" >\n ').concat(t.name,"\n </label>\n </div>\n </div>\n </div>")})),n.innerHTML=i,e.appendChild(n),St(e),wt(e),J(e),(r=e).querySelectorAll("input[type=checkbox]").forEach((function(t){t.addEventListener("click",(function(t){J(r)}))}))}var r;if(t.geographyTypeList.length>0){var o=document.querySelector(".cmp-fund-filter__container__2");o.classList.remove("hidden"),document.querySelector(".selected-filter .selected-filter-left .selected-filters-column_2").classList.remove("hidden");var a=document.createElement("div");a.classList.add("cmp-fund-filter__geography-checkboxes");var c="";t.geographyTypeList.forEach((function(t,e){c+='<div\n class="aem-GridColumn aem-GridColumn--default--3 aem-GridColumn--tabletportrait--3 aem-GridColumn--tabletlandscape--3 aem-GridColumn--phone--6 cmp-fund-filter__container-second-level-filter-buttons__block">\n <div class="cmp-fund-filter__container-second-level-filter-buttons__block-container cmp-text">\n <div\n class="cmp-fund-filter__container-second-level-filter-buttons__block-container-checkbox-block">\n <input type="checkbox" name="'.concat(t.geographyID,'" value="').concat(t.defaultOption,'" id="geo_').concat(e,'">\n <label for="geo_').concat(e,'" >\n ').concat(t.name,"\n </label>\n </div>\n </div>\n </div>")})),a.innerHTML=c,o.appendChild(a),wt(o),St(o),Z(o),function(t){t.querySelectorAll("input[type=checkbox]").forEach((function(e){e.addEventListener("click",(function(e){Z(t)}))}))}(o)}!function(t){L=t;var e=document.querySelectorAll(".fund-filter-mobile-view .child-accordion-header .selected-value"),n=document.querySelectorAll(".fund-filter-mobile-view .child-accordion-header .child-accordion-button"),i=document.querySelectorAll(".fund-filter-mobile-view .child-accordion-item"),r=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__1"),o=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__2");if(Gt(e),Wt(i),Ut(n),k.assetClassList.length>0){document.querySelector(".fund-filter-mobile-view .child-accordion-item_1").classList.remove("hidden");var a="";t.assetClassList.forEach((function(t,e){a+='<div\n class="cmp-fund-filter__container-second-level-filter-buttons__block">\n <div class="cmp-fund-filter__container-second-level-filter-buttons__block-container cmp-text">\n <div\n class="cmp-fund-filter__container-second-level-filter-buttons__block-container-checkbox-block">\n <input type="checkbox" name="'.concat(t.assetClassId,'" value="').concat(t.defaultOption,'" id="assetM_').concat(e,'">\n <label for="assetM_').concat(e,'" >\n ').concat(t.name,"\n </label>\n </div>\n </div>\n </div>")})),r.innerHTML=a,wt(r),function(t){t.querySelectorAll("input[type=checkbox]").forEach((function(t){t.addEventListener("click",(function(t){Vt()}))}))}(r)}if(k.geographyTypeList.length>0){document.querySelector(".fund-filter-mobile-view .child-accordion-item_2").classList.remove("hidden");var c="";t.geographyTypeList.forEach((function(t,e){c+='<div\n class="cmp-fund-filter__container-second-level-filter-buttons__block">\n <div class="cmp-fund-filter__container-second-level-filter-buttons__block-container cmp-text">\n <div\n class="cmp-fund-filter__container-second-level-filter-buttons__block-container-checkbox-block">\n <input type="checkbox" name="'.concat(t.geographyID,'" value="').concat(t.defaultOption,'" id="geoM_').concat(e,'">\n <label for="geoM_').concat(e,'">\n ').concat(t.name,"\n </label>\n </div>\n </div>\n </div>")})),o.innerHTML=c,wt(o),function(t){t.querySelectorAll("input[type=checkbox]").forEach((function(t){t.addEventListener("click",(function(t){$t()}))}))}(o),document.querySelector(".fund-filter-mobile-view .child-accordion-item_2").style.borderBottom="none"}St(r),St(o),Vt(),$t(),document.querySelectorAll(".fund-filter-mobile-view .fund-filter-mobile-button-wrapper button").forEach((function(t,e){var n=document.querySelector("#filterExpandedMobile");n&&"false"===n.getAttribute("data-enableFilter")&&ie(),0==e&&["click","keypress"].forEach((function(e){t.addEventListener(e,(function(t){St(document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__1")),St(document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__2")),Xt(),$t(),C=[],T=[],M=[],q=[],O=!1,P=!0,N="",oe(I,0),E=0}))}
1)),1==e&&["click","keypress"].forEach((function(e){t.addEventListener(e,(function(t){document.querySelectorAll(".fund-filter-mobile-view .cmp-accordion__button").forEach((function(t){t.classList.contains("cmp-accordion__button--expanded")&&t.click()})),C=[],T=[],M=[],q=[],O=!0,P=!1,N="","etf"===W().productType?oe(I,1):re(I,1),document.getElementById(I).focus()}))}))}))}(t)}function St(t){t.querySelectorAll("input[type=checkbox]").forEach((function(t){"true"===t.value?t.checked=!0:t.checked=!1}))}function wt(t){t.querySelectorAll("input[type=checkbox]").forEach((function(t){["keypress"].forEach((function(e){t.addEventListener(e,(function(n){if("keypress"===e&&n.keyCode===r.m.ENTER){if("INPUT"!==n.target.tagName)return;t.click()}}))}))})),t.querySelectorAll("input[type=radio]").forEach((function(t){["keypress"].forEach((function(e){t.addEventListener(e,(function(n){if("keypress"===e&&n.keyCode===r.m.ENTER){if("INPUT"!==n.target.tagName)return;t.click()}}))}))}))}function At(t,e){Array.from(document.querySelectorAll(".cmp-accordion.cmp-accordion--complex-chart-variant")).forEach((function(t){return t.parentNode.remove()})),K(t);var n=e.querySelector(".cmp-accordion"),i=e.querySelector(".cmp-accordion__item"),a=new DOMParser;if(n){i=i.outerHTML;var c="",l=[],u={},d=W().productType;if(t.complexTableData){t.complexTableData.forEach((function(r,o){var h=n.querySelector(".cmp-chart").outerHTML,f=n.querySelector(".chart thead").innerHTML,p=n.querySelector(".chart tbody").innerHTML,m=function(t,e,n){var i=(new DOMParser).parseFromString(t,"text/html");return i.querySelector(".cmp-accordion__title").innerHTML="etf"===e?n.assetClassName:n.sectorName,i.querySelector(".cmp-accordion__title").id="sectorName",i}(i,d,r),g=m.querySelector(".cmp-accordion__panel"),y=m.querySelector("button");if(0==!o){m.getElementById("sectorName").id="sectorName"+o;var v=m.querySelector("button").id;y.id=v+o,g.setAttribute("aria-labelledby",v+o);var b=g.getAttribute("id");g.setAttribute("id",b+o),y.setAttribute("aria-controls",b+o)}!function(t,e,n,i){if(t.classList.contains("fund-filter-annual")||t.classList.contains("fund-filter-calendar")){var r=n.perfDate?It(n.perfDate):"",o=i.querySelector("table").getAttribute("data-asof-label");!function(t,e,n,i){null!==t.querySelector(".cmp-accordion__header .as-of-label")?t.querySelector(".cmp-accordion__header .as-of-label").innerHTML=i.perfDate?e+" "+n:i.perfDate:t.querySelector(".cmp-accordion__header").innerHTML+='<span class="as-of-label"> '.concat(i.perfDate?e:""," "," "," ").concat(n," </span>")}(e,o,r,n)}}(e,m,r,n);var x,_,S,w=m.querySelector("body").innerHTML,A=s(function(t,e,n,i,r,o,a){var c=a.querySelector(".cmp-chart table").outerHTML,s="",l=(new DOMParser).parseFromString(c,"text/html"),u=a.querySelector("table").getAttribute("data-multiple-label-text"),d=a.querySelector("table").getAttribute("data-multiple-label-icon"),h=a.querySelector("table").getAttribute("data-partial-url"),f=a.querySelector("table").getAttribute("data-fund-code");return t.fundData.forEach((function(a){if(e.classList.contains("fund-filter-overview")){C=n,i={0:"string"};var c=t.priceDate?It(t.priceDate):"",p=t.perfDate?It(t.perfDate):"";"etf"===r?(s+=function(t,e,n,i,r){var o=t.fundId,a=kt(i,o,t.fundName),c=Dt(o,n);c=qt(c,o);var s=Ct(a,t.fundName,r,c,t.hybridFundId,e.querySelector("table")),l=Ot(t.MngtFee,geoLocationLang),u=Ot(t.merNumF,geoLocationLang),d=t.inceptionDate?It(t.inceptionDate):"";return(e=Nt([s,l,u,d],e)).querySelector("tbody tr").outerHTML}(a,l,n,h,f),i={0:"string",3:"date"}):(s+=function(t,e,n,i,r,o,a){var c=t.fundId,s=kt(o,c,t.fundName),l=Dt(c,n);l=qt(l,c,i,r);var u=Ct(s,t.fundName,a,l,t.hybridFundId,e.querySelector("table")),d=Ot(t.navNumF,geoLocationLang),h=Ot(t.formattedyeildAbsoluteNumF,geoLocationLang);h="-"==h?"-":"".concat(h," (").concat(Ot(t.formattedyeildPercentageNumF,geoLocationLang),"%)");var f=Ot(t.merNumF,geoLocationLang),p=Ot(t.totalAssetsNumF,geoLocationLang),m='<img src="'.concat(t.riskImageDesktop,'" alt="').concat(t.riskStyle,'">');return(e=Nt([u,d,h,f,p,m],e,[2])).querySelector("tbody tr").outerHTML}(a,l,n,u,d,h,f),o=[5],l.getElementById("nav-date").innerHTML=c,l.getElementById("change-date").innerHTML=c,l.getElementById("asset-date").innerHTML=p)}else e.classList.contains("fund-filter-annual")?(T=n,s+=function(t,e,n,i,r,o,a){var c=t.inceptionDate?It(t.inceptionDate):"",s=t.fundId,l=kt(o,s,t.fundName),u=Dt(s,n);u=qt(u,s,i,r);var d=Ct(l,t.fundName,a,u,t.hybridFundId,e.querySelector("table")),h=Ot(t.oneMonthNumF,geoLocationLang),f=Ot(t.threeMonthsNumF,geoLocationLang),p=Ot(t.sixMonthsNumF,geoLocationLang),m=Ot(t.oneYearNumF,geoLocationLang),g=Ot(t.threeYearsNumF,geoLocationLang),y=Ot(t.fiveYearsNumF,geoLocationLang),v=Ot(t.tenYearsNumF,geoLocationLang),b=Ot(t.inceptionNumF,geoLocationLang);return b="-"==b?"-":b+"<br> <span> ".concat(c," </span>"),(e=Nt([d,h,f,p,m,g,y,v,b],e)).querySelector("tbody tr").outerHTML}(a,l,n,u,d,h,f),i={0:"string"}):e.classList.contains("fund-filter-calendar")?(M=n,s+=function(t,e,n,i,r,o,a){var c=t.fundId,s=kt(o,c,t.fundName),l=Dt(c,n);l=qt(l,c,i,r);var u=Ct(s,t.fundName,a,l,t.hybridFundId,e.querySelector("table")),d=Ot(t.calYearPerfYTDNumF,geoLocationLang),h=Ot(t.calYearPerf1YNumF,geoLocationLang),f=Ot(t.calYearPerf2YNumF,geoLocationLang),p=Ot(t.calYearPerf3YNumF,geoLocationLang),m=Ot(t.calYearPerf4YNumF,geoLocationLang),g=Ot(t.calYearPerf5YNumF,geoLocationLang),y=Ot(t.calYearPerf6YNumF,geoLocationLang),v=Ot(t.calYearPerf7YNumF,geoLocationLang),b=Ot(t.calYearPerf8YNumF,geoLocationLang);return(e=Nt([u,d,h,f,p,m,g,y,v,b],e)).querySelector("tbody tr").outerHTML}(a,l,n,u,d,h,f),i={0:"string"}):e.classList.contains("fund-filter-distribution")&&(q=n,i={0:"string",2:"date",3:"string",4:"string"},"etf"===r?(s+=function(t,e,n,i,r){var o=t.fundId,a=kt(i,o,t.fundName),c=Dt(o,n);c=qt(c,o);var s=t.lastDistDate?It(t.lastDistDate):"",l=Ct(a,t.fundName,r,c,t.hybridFundId,e.querySelector("table")),u=Ot(t.lastDistributionNumF,geoLocationLang,3);return(e=Nt([l,u,s],e)).querySelector("tbody tr").outerHTML}(a,l,n,h,f),i={0:"string",2:"date"}):s+=function(t,e,n,i,r,o,a){var c=t.fundId,s=kt(o,c,t.fundName),l=Dt(c,n);l=qt(l,c,i,r);var u=t.lastDistDate?It(t.lastDistDate):"",d=Ct(s,t.fundName,a,l,t.hybridFundId,e.querySelector("table")),h=Ot(t.lastDistributionNumF.toFixed(2),geoLocationLang),f=u,p=t.distributionType,m=t.distributionFrequency;return(e=Nt([d,h,f,p,m],e)).querySelector("tbody tr").outerHTML}(a,l,n,u,d,h,f))})),[l,s,i,o]}(r,e,t,u,d,l,n),4);_=A[0],S=A[1],u=A[2],l=A[3],x=_.querySelector("thead").innerHTML,S=h.replace(p,S).replace(f,x),(S=(S=a.parseFromString(S,"text/html")).querySelector(".cmp-chart")).classList.remove("resp-done"),S=S.outerHTML,c=(c+=w).replace(h,S)})),n.innerHTML=c,n.setAttribute("data-cmp-is","accordion");var h=e.querySelector(".accordion");e.innerHTML=h.parentNode.outerHTML;var f=e.querySelectorAll("table");!function(t){t.forEach((function(t){var e,n=t.querySelector("thead");n.addEventListener("mouseover",(function(n){var i=n.target.closest("th").cellIndex;(e=Rt(t,i))&&e.forEach((function(t){t.classList.remove("hovered"),t.classList.add("hovered")}))}),!0),n.addEventListener("mouseout",(function(t){e&&e.forEach((function(t){t.classList.remove("hovered")})),e=null}),!0)}))}(f),f.forEach((function(e){var n=e.querySelectorAll("thead th"),i=e.querySelectorAll("thead th p");t.columnLabels&&function(t,e){t.forEach((function(t,n){switch(n){case 2:t.innerHTML=e.year1;break;case 3:t.innerHTML=e.year2;break;case 4:t.innerHTML=e.year3;break;case 5:t.innerHTML=e.year4;break;case 6:t.innerHTML=e.year5;break;case 7:t.innerHTML=e.year6;break;case 8:t.innerHTML=e.year7;break;case 9:t.innerHTML=e.year8}}))}(i,t.columnLabels),function(t,e){for(var n=0;n<t.rows[1].cells.length;n++){var i=t.rows[0].cells[n];if(e.includes(n))i.classList.add("no-sort");else if(0==i.querySelectorAll(".td-icon-sort").length){(i=i.querySelector("p")).setAttribute("tabindex","0"),i.setAttribute("role","button");var r=document.createElement("span");r.classList.add("td-icon","td-icon-colour-primary","icon-small","td-icon-sort"),i.insertBefore(r,i.firstChild.nextSibling)}}}(e,l),function(t,e){var n=Array.from(t).map((function(){return"none"}));[].forEach.call(t,(function(t,i){["click","keypress"].forEach((function(o){t.addEventListener(o,(function(a){"click"!==o&&a.keyCode!==r.m.ENTER||t.classList.contains("no-sort")||(n=function(t,e){for(var n=0;n<t.length;n++)t[n]=n!==e?"none":"asc"===t[n]?"desc":"asc";return t}(n,i),e.forEach((function(t){!function(t,e,n){var i=t.querySelectorAll("thead th"),r=t.querySelector("tbody"),o=r.querySelectorAll("tr"),a="asc"===(e[n]||"asc")?1:-1,c=Array.from(o);c.sort((function(t,e){var r=t.querySelectorAll("div p")[n].innerText,o=e.querySelectorAll("div p")[n].innerText,c=i[n].getAttribute("data-column-type");switch(c?"date"==c&&(r=new Date(r),o=new Date(o)):(r=zt(r),o=zt(o)),!0){case r<o:return 1
1*a;case r>o:return-1*a;case r===o:return 0}})),[].forEach.call(o,(function(t){r.removeChild(t)})),c.forEach((function(t){r.appendChild(t)}))}(t,n,i),Ht(t),function(t,e){t.querySelectorAll("thead th").forEach((function(t,n){t.classList.contains("no-sort")||(t.setAttribute("aria-sort","none"),"asc"==e[n]?(t.querySelector("span").classList.add("td-icon-sort-desc"),t.setAttribute("aria-sort","descending")):"desc"==e[n]&&(t.querySelector("span").classList.add("td-icon-sort-asc"),t.setAttribute("aria-sort","ascending")))}))}(t,n)})))}))}))}))}(n,f),function(t,e){t.forEach((function(t){var n=t.getAttribute("data-column-alignment");if(n){var i=t.cellIndex;Rt(e,i).forEach((function(t){"right"==n?t.classList.add("right-align"):"center"==n&&t.classList.add("center-align")}))}}))}(n,e),function(t,e){t.forEach((function(t,n){for(var i in e)i==n&&t.setAttribute("data-column-type",e[i])}))}(n,u)})),window.innerWidth>=r.l.MD?se(".cmp-chart__chart tbody","tr a","click"):se(".cmp-tabs__tabpanel--active .cmp-accordion__item",".cmp-text p a","click")}else!function(t,e){var n=e.getAttribute("class").split(" ")[1];switch(document.querySelector(".cmp-tabs__tabpanel--active").style.display="none",n){case"fund-filter-overview":C=t;break;case"fund-filter-annual":T=t;break;case"fund-filter-calendar":M=t;break;case"fund-filter-distribution":q=t}}(t,e);Object(o.c)(document),window.dispatchEvent(new Event("resize")),setTimeout((function(){document.querySelectorAll(".cmp-accordion__chevron-link").forEach((function(t){t.addEventListener("click",(function(t){Lt(t)})),t.addEventListener("keydown",(function(t){void 0!==t.keyCode&&(t.keyCode!==r.m.ENTER&&t.keyCode!==r.m.SPACE||Lt(t))}))})),Et()}),1e3)}B=0,clearInterval(m),z(),document.querySelector(".spinner-block").classList.add("hidden"),dt(!1),document.querySelectorAll(".cmp-tabs__tabpanel").forEach((function(t){t.classList.remove("hidden")})),F()}function Et(){window.innerWidth<r.l.MD&&document.querySelectorAll(".cmp-chart .cmp-accordion__header .cmp-accordion__title p a").forEach((function(t){t.addEventListener("keydown",(function(t){t.stopPropagation()}))}))}function Lt(t){t.preventDefault();var e=t.currentTarget,n=e.getAttribute("aria-expanded");e.setAttribute("tabindex","0"),"false"===n?e.setAttribute("aria-expanded",!0):e.setAttribute("aria-expanded",!1),t.currentTarget.focus()}function kt(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return i?t+"?fundId="+Object(c.g)(e):t+"?fundId="+Object(c.g)(e)+"&fundname="+Object(a.a)(Object(c.g)(n),!1)}function Ct(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a="";a="etf"===W().productType?'<a href="'.concat(t,'" target="_blank" rel="noopener noreferrer">').concat(e,"</a><br>").concat(i):'<a href="'.concat(t,'" target="_blank" rel="noopener noreferrer">').concat(e,"</a><br>").concat(n," ").concat(i);var c=r&&o?Tt(r,o):"";return Mt(o),c?"".concat(a).concat(c):a}function Tt(t,e){var n=e.getAttribute("data-hybrid-string"),i=e.getAttribute("data-hybrid-link"),r=e.getAttribute("data-hybridPagePath");if(n&&i&&r){var o=kt(r,t.trim(),null,!0),a='<a href="'.concat(o,'" target="_blank" class="hybrid-link">').concat(i,"</a>");return'<br><div class="hybrid-fund-message">'.concat(n," ").concat(a,"</div>")}return""}function Mt(t){t.querySelectorAll(".hybrid-fund-message").forEach((function(t){return t.remove()}))}function qt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r="";if(Object.keys(t).length>1){for(var o=0,a=Object.entries(t);o<a.length;o++){var c=s(a[o],2),l=c[0],u=c[1];r+='<p class="td-rte-margin-top-none">'.concat(u," - ").concat(l,"</p>")}var d=document.getElementById("popoverfund"),h=d.cloneNode(!0);h.setAttribute("id","popoverfund-"+e),h.querySelector(".cmp-dialog__body").innerHTML=r;var f=d.nextSibling;d.parentNode.insertBefore(h,f),t='<span class="multiple-text">'.concat(n,'</span> <a href="#cmp-modal~popoverfund-').concat(e,'" role="button" aria-label="').concat(i,'"><span class="td-icon td-icon-colour-primary icon-small td-icon-question"></span></a>')}else t=1==Object.keys(t).length?Object.keys(t)[0]:null;return t}function It(t){var e,n,i,o=(e=t.match(/(\d+)/g),n=0,i={},"yyyy-mm-dd".replace(/(yyyy|dd|mm)/g,(function(t){i[t]=n++})),new Date(e[i.yyyy],e[i.mm]-1,e[i.dd])),a=o.getDate(),c=o.getMonth(),s=o.getFullYear();
1return geoLocationLang===r.n?o="".concat(c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][c]," ").concat(a,", ").concat(s):(c=["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."][c],o="".concat(a," ").concat(c," ").concat(s)),o}function Ot(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,i=parseFloat(t).toFixed(n);return i=-999==i?"-":i,e===r.o&&(i=Bt(i)),i}function Pt(t){var e=jt((t=t.querySelector("p")).innerHTML),n=parseFloat(e);t.classList.remove("positive-value"),t.classList.remove("negative-value"),n>0?t.classList.add("positive-value"):(n<0||e.includes("-"))&&t.classList.add("negative-value")}function Nt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=e.querySelector("table");return t.forEach((function(t,e){var r=i.rows[1].cells[e];r.querySelector("p").innerHTML=t,n.forEach((function(t){t==e&&Pt(r)}))})),e}function Dt(t,e){var n={};for(var i in e.fundCodeMap)i==t&&e.fundCodeMap[i].forEach((function(t){n[t.code]=t.description}));return n}function Bt(t){return t.replaceAll(".",",")}function jt(t){return t.replaceAll(",",".")}function Rt(t,e){return Array.prototype.map.call(t.rows,(function(t){for(var n,i=e;!n&&i>=0;)n=t.cells[i],i-=1;return n}))}function Ht(t){t.querySelectorAll("thead th").forEach((function(t){!t.classList.contains("no-sort")&&t.querySelector("span")&&(t.querySelector("span").classList.remove("td-icon-sort-asc"),t.querySelector("span").classList.remove("td-icon-sort-desc"))}))}function zt(t){if(isNaN(parseFloat(t)))return Number.NEGATIVE_INFINITY;var e=jt(t);return parseFloat(e)}function Ft(t){console.log(t)}function Gt(t){t.forEach((function(t,e){t.classList.add(t.className+"_"+(e+1))}))}function Wt(t){t.forEach((function(t,e){t.classList.add("child-accordion-item_"+(e+1))}))}function Ut(t){t.forEach((function(t,e){t.classList.add("child-header_"+(e+1))}))}function Yt(t){var e=document.querySelectorAll(".fund-filter-mobile-view .fund-filter-mobile-button-wrapper .button");t?e[0].classList.remove("hidden"):e[0].classList.add("hidden")}function Vt(){var t=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__1").querySelectorAll("input[type=checkbox]:checked"),e=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__1").querySelectorAll("input[type=checkbox]"),n=document.querySelector(".fund-filter-mobile-view .selected-value_1 p"),i=document.getElementById("fund-filter-container1").getAttribute("data-all-text"),r=document.querySelector(".fund-filter-mobile-view .selected-value_1").getAttribute("data-filteroptiondynamicsubheader"),o=document.querySelector(".fund-filter-mobile-view .selected-value_1").getAttribute("data-filteroptionsubheader");t.length==e.length?n.innerHTML=i:t.length>0?n.innerHTML=t.length+" "+r:n.innerHTML=o}function Xt(){var t=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__2").querySelectorAll("input[type=radio]:checked"),e=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__2").querySelectorAll("input[type=radio]"),n=document.querySelector(".fund-filter-mobile-view .child-header_2 .cmp-accordion__title"),i=document.querySelector(".fund-filter-mobile-view .selected-value_2 p"),r=document.getElementById("fund-filter-container1").getAttribute("data-all-text"),o=document.querySelector(".fund-filter-mobile-view .selected-value_2").getAttribute("data-filteroptiondynamicsubheader"),a=document.querySelector(".fund-filter-mobile-view .selected-value_2").getAttribute("data-filteroptionsubheader"),c=document.querySelector(".fund-filter-mobile-view .child-accordion-header + .descriptor");t.length==e.length?i.innerHTML=r:(i.innerHTML=a,c.classList.add("hidden")),"etf"!==W().productType&&t.length>0&&(c.classList.remove("hidden"),c.style.left=n.offsetWidth+5+"px",i.innerHTML=t.length+" "+o,function(t){var e=t.querySelector("input[type=radio]:checked");if(e){var n=L.fundSeriesGroupList.filter((function(t){return t.fundSeriesGroupID==e.id.replace("MSeries_","")}));document.querySelector("#fund-filter-landing-popover-series .cmp-dialog__body").innerHTML=n[0].popOverContent}}(document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__2")))}function $t(){var t=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__2").querySelectorAll("input[type=checkbox]:checked"),e=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__2").querySelectorAll("input[type=checkbox]"),n=document.querySelector(".fund-filter-mobile-view .selected-value_2 p"),i=document.getElementById("fund-filter-container1").getAttribute("data-all-text"),r=document.querySelector(".fund-filter-mobile-view .selected-value_2").getAttribute("data-filteroptiondynamicsubheader"),o=document.querySelector(".fund-filter-mobile-view .selected-value_2").getAttribute("data-filteroptionsubheader");t.length==e.length?n.innerHTML=i:t.length>0?n.innerHTML=t.length+" "+r:n.innerHTML=o}function Kt(){var t=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__3").querySelectorAll("input[type=checkbox]:checked"),e=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__3").querySelectorAll("input[type=checkbox]"),n=document.querySelector(".fund-filter-mobile-view .selected-value_3 p"),i=document.getElementById("fund-filter-container1").getAttribute("data-all-text"),r=document.querySelector(".fund-filter-mobile-view .selected-value_3").getAttribute("data-filteroptiondynamicsubheader");t.length==e.length?n.innerHTML=i:t.length>0?n.innerHTML=t.length+" "+r:n.innerHTML=" "}function Jt(t){t.querySelectorAll("input[type=checkbox]").forEach((function(t){"true"==t.value?t.checked=!0:t.checked=!1,Vt()}))}function Zt(t){t.querySelectorAll("input[type=radio]").forEach((function(t){"true"==t.value?t.checked=!0:t.checked=!1,Xt()}))}function Qt(){var t=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__1").querySelectorAll("input[type=checkbox]:checked"),e=[];return t.forEach((function(t,n){0==n?e.push(t.name):e.push(" "+t.name)})),e}function te(){var t=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__2").querySelectorAll("input[type=radio]:checked"),e=[];return t.forEach((function(t,n){0==n?e.push(t.id.replace("MSeries_","")):e.push(" "+t.id.replace("MSeries_"," "))})),e}function ee(){var t=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__3").querySelectorAll("input[type=checkbox]:checked"),e=[];return t.forEach((function(t,n){0==n?e.push(t.value):e.push(" "+t.value)})),e}function ne(){var t=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__1").querySelectorAll("input[type=checkbox]:checked"),e=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__2").querySelectorAll("input[type=radio]:checked");if(k.needTypeVOList.length>0){var n=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__3").querySelectorAll("input[type=checkbox]:checked");return t.length>0||e.length>0||n.length>0}return t.length>0||e.length>0}function ie(){var t=document.querySelector(".fund-filter-mobile-view .cmp-accordion__button:first-child");t&&"false"===t.getAttribute("aria-expanded")&&(t.click(),t.blur())}function re(t,e){var n=JSON.parse(document.querySelector(".cmp-fund-tab-filters").getAttribute("data-page-details")),r=new
1URLSearchParams({category:Qt()});switch(ct(new URLSearchParams({series:te()}),r,k.needTypeVOList.length>0?new URLSearchParams({currency:ee()}):new URLSearchParams({currency:[]})),t){case"tab-overview":0==C.length?(G(),Object(i.a)(v+"?productType=".concat(n.productType,"&reqType=overview&lang=").concat(geoLocationLang+N),"get",At,Ft,{},u)):(dt(!1),ht(),At(C,u),F()),pt(e),p=u;break;case"tab-annual":0==T.length?(G(),Object(i.a)(b+"?productType=".concat(n.productType,"&reqType=Annualized&lang=").concat(geoLocationLang+N),"get",At,Ft,{},d)):(dt(!1),ht(),At(T,d),F()),pt(e),p=d;break;case"tab-calendar":0==M.length?(G(),Object(i.a)(x+"?productType=".concat(n.productType,"&reqType=calendar&lang=").concat(geoLocationLang+N),"get",At,Ft,{},h)):(dt(!1),ht(),At(M,h),F()),pt(e),p=h;break;case"tab-distribution":0==q.length?(G(),Object(i.a)(_+"?productType=".concat(n.productType,"&reqType=distribution&lang=").concat(geoLocationLang+N),"get",At,Ft,{},f)):(dt(!1),ht(),At(q,f),F()),pt(e),p=f}}function oe(t,e){var n,r,o,a,c=W();switch(st(new URLSearchParams({assetVal:(o=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__1").querySelectorAll("input[type=checkbox]:checked"),a=[],P?L.assetClassList.forEach((function(t){t.defaultOption&&a.push(t.assetClassId)})):o.forEach((function(t,e){0==e?a.push(t.name):a.push(" "+t.name)})),a)}),new URLSearchParams({geography:(n=document.querySelector(".fund-filter-mobile-view .child-accordion-item-column__2").querySelectorAll("input[type=checkbox]:checked"),r=[],P?L.geographyTypeList.forEach((function(t){t.defaultOption&&r.push(t.geographyID)})):n.forEach((function(t,e){0==e?r.push(t.name):r.push(" "+t.name)})),r)})),t){case"tab-overview":0==C.length?(G(),Object(i.a)(v+"?productType=".concat(c.productType,"&reqType=overview&lang=").concat(geoLocationLang+N),"get",At,Ft,{},u)):(dt(!1),ht(),At(C,u),F()),pt(e),p=u;break;case"tab-annual":0==T.length?(G(),Object(i.a)(b+"?productType=".concat(c.productType,"&reqType=Annualized&lang=").concat(geoLocationLang+N),"get",At,Ft,{},d)):(dt(!1),ht(),At(T,d),F()),pt(e),p=d;break;case"tab-calendar":0==M.length?(G(),Object(i.a)(x+"?productType=".concat(c.productType,"&reqType=calendar&lang=").concat(geoLocationLang+N),"get",At,Ft,{},h)):(dt(!1),ht(),At(M,h),F()),pt(e),p=h;break;case"tab-distribution":0==q.length?(G(),Object(i.a)(_+"?productType=".concat(c.productType,"&reqType=distribution&lang=").concat(geoLocationLang+N),"get",At,Ft,{},f)):(dt(!1),ht(),At(q,f),F()),pt(e),p=f}}function ae(){!function(){var t=window.innerWidth;t<r.l.SM?V(!0):t>=r.l.SM&&D<r.l.SM&&X(!1);D=t}(),function(){var t,e=window.innerWidth;p&&(t=p.querySelectorAll("table"));t&&t.forEach((function(t){for(var n=0;n<t.rows[1].cells.length;n++){var i=t.rows[0].cells[n];i=i.querySelector("p"),e>r.l.MD?i.setAttribute("role","button"):i.removeAttribute("role")}}))}(),Et()}function ce(t){var e=W().productType,n=function(){var t=[],e=window.innerWidth;if(!O)return"No filters applied";return(e>=r["l"].SM?[".cmp-fund-filter__container__1",".cmp-fund-filter__container__2",".cmp-fund-filter__container__3"]:[".fund-filter-mobile-view .child-accordion-item_1",".fund-filter-mobile-view .child-accordion-item_2",".fund-filter-mobile-view .child-accordion-item_3"]).forEach((function(e){var n=document.querySelector(e);n&&Array.from(new Set(Array.from(n.querySelectorAll("input")).map((function(t){return t.type})))).forEach((function(n){var i=function(t,e){var n=document.querySelector(t);if(!n)return[];var i=n.querySelectorAll("input[type=".concat(e,"]:checked")),r=[];return i.forEach((function(t){var e=document.querySelector('label[for="'.concat(t.id,'"]'));e&&r.push(e.textContent.trim())})),r}(e,n);i.length>0&&t.push(i.join(" | "))}))})),t.length>0?t.join(" | "):"No filters applied"}();window.tms_tag=window.tms_tag||[],window.tms_tag.push({event:"linkClick",link:{name:"".concat(e,":search:").concat(t),type:"link",product:"tdam:public:",filters:n}})}function se(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"click",i=document.querySelectorAll(t);i.forEach((function(t){t.addEventListener(n,(function(t){var n=t.target.closest(e);
1if(n){var i=n.textContent.trim();i&&ce(i)}}))}))}"loading"!==document.readyState?(H(),window.addEventListener("resize",ae)):(document.addEventListener("DOMContentLoaded",H),window.addEventListener("resize",ae))},function(t,e,n){"use strict";var i=n(1),r=n(0),o=n(46),a=n(45);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function u(t,e,n){d(t,e),e.set(t,n)}function d(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(t,e){return t.get(p(t,e))}function f(t,e,n){return t.set(p(t,e),n),n}function p(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var m=new WeakMap,g=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,S=new WeakMap,w=new WeakMap,A=new WeakMap,E=new WeakMap,L=new WeakMap,k=new WeakMap,C=new WeakMap,T=new WeakMap,M=new WeakMap,q=new WeakMap,I=new WeakMap,O=new WeakMap,P=new WeakMap,N=new WeakMap,D=new WeakMap,B=new WeakMap,j=new WeakMap,R=new WeakMap,H=new WeakMap,z=new WeakMap,F=new WeakMap,G=new WeakMap,W=new WeakMap,U=new WeakMap,Y=new WeakMap,V=new WeakMap,X=new WeakMap,$=new WeakMap,K=new WeakMap,J=new WeakMap,Z=new WeakMap,Q=new WeakMap,tt=new WeakMap,et=new WeakMap,nt=new WeakMap,it=new WeakMap,rt=new WeakMap,ot=new WeakMap,at=new WeakMap,ct=new WeakMap,st=new WeakSet,lt=function(){return function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),d(n=this,i=st),i.add(n),u(this,m,"cmp-fund-filter-combined"),u(this,g,"cmp-fund-table"),u(this,y,void 0),u(this,v,void 0),u(this,b,void 0),u(this,x,void 0),u(this,_,void 0),u(this,S,void 0),u(this,w,["overview","prices","performance","distributions","documents"]),u(this,A,"product-type"),u(this,E,"capability"),u(this,L,void 0),u(this,k,void 0),u(this,C,void 0),u(this,T,void 0),u(this,M,void 0),u(this,q,void 0),u(this,I,void 0),u(this,O,void 0),u(this,P,void 0),u(this,N,void 0),u(this,D,void 0),u(this,B,void 0),u(this,j,void 0),u(this,R,void 0),u(this,H,void 0),u(this,z,void 0),u(this,F,void 0),u(this,G,void 0),u(this,W,void 0),u(this,U,"asc"),u(this,Y,void 0),u(this,V,void 0),u(this,X,void 0),u(this,$,void 0),u(this,K,void 0),u(this,J,void 0),u(this,Z,void 0),u(this,Q,void 0),u(this,tt,void 0),u(this,et,void 0),u(this,nt,void 0),u(this,it,void 0),u(this,rt,void 0),u(this,ot,void 0),u(this,at,void 0),u(this,ct,/^[a-zA-Z0-9\-_]+$/),f(v,this,e)}),[{key:"initialize",value:function(){var t=this;f(T,this,h(v,this).querySelector("#noResultsContainer")),f(M,this,h(v,this).querySelector("#resultsContainer")),f(q,this,h(v,this).querySelector("#resultRange")),f(I,this,h(v,this).querySelector("#resultTotal")),f(N,this,h(v,this).querySelector("#mobile-show-result-count")),f(y,this,!!window.location.href.includes(".author.")),f(x,this,window.location.href.includes("story")?"/json/fund-data.json":h(v,this).getAttribute("data-pscsl")),f(it,this,window.location.href.includes("story")?"/json/extra-data.json":"/bin/fund-filter-data?productType=mutualFund&reqType=overview&lang=en"),p(st,this,ft).call(this),f(V,this,h(v,this).querySelector(".".concat(h(m,this)))),f(F,this,h(v,this).querySelector('select[data-id="filterProductType"]')),f(G,this,h(v,this).querySelector('select[data-id="filterSeries"]')),f(W,this,h(v,this).querySelector('select[data-id="filterSeriesDisable"]')),f($,this,h(v,this).querySelector("#pageCountContainer")),f(X,this,h(v,this).querySelector("#pageNavContainer")),f(K,this,h(X,this).querySelector(".fund-pagination-nav-pages")),f(et,this,h(v,this).querySelector("#pageNavContainer .page-prev")),f(tt,this,h(v,this).querySelector("#pageNavContainer .page-next")),f(Q,this,parseInt(h(v,this).getAttribute("data-page-size"))||10),f(_,this,h(v,this).getAttribute("data-filters")),f(S,this,h(v,this).getAttribute("data-labels")),f(z,this,h(v,this).getAttribute("data-default-series-id")),f(H,this,h(S,this)?JSON.parse(h(S,this)).label:null),p(st,this,Ct).call(this),p(st,this,Lt).call(this),setTimeout((function(){p(st,t,Et).call(t),p(st,t,ut).
1call(t)}),1e3)}}])}();function ut(){var t=this;window.addEventListener("resize",p(st,this,dt).bind(this)),document.addEventListener("sorted",(function(e){f(C,t,""===e.detail.source?h(C,t):e.detail.source),f(nt,t,h(C,t).slice(0,h(Q,t))),t.sortDirection=e.detail.sortDirection,p(st,t,Tt).call(t,h(nt,t),h(C,t),t.sortDirection),f(P,t,h(C,t).length);var n=h(P,t)>0?"1 - ".concat(Math.min(h(Q,t),h(P,t))):"0";p(st,t,kt).call(t,n),p(st,t,pt).call(t,h(C,t))})),document.addEventListener("filtered",(function(e){f(C,t,""===e.detail.source?h(C,t):e.detail.source),f(nt,t,h(C,t).slice(0,h(Q,t))),p(st,t,Tt).call(t,h(nt,t),h(C,t)),f(j,t,h(C,t)),f(P,t,h(C,t).length);var n=h(P,t)>0?"1 - ".concat(Math.min(h(Q,t),h(P,t))):"0";p(st,t,kt).call(t,n),p(st,t,pt).call(t,h(C,t))})),h(et,this).addEventListener("click",(function(e){return p(st,t,St).call(t,e,"prev")})),h(et,this).addEventListener("keydown",(function(e){return p(st,t,_t).call(t,e,"prev")})),h(tt,this).addEventListener("click",(function(e){return p(st,t,St).call(t,e,"next")})),h(tt,this).addEventListener("keydown",(function(e){return p(st,t,_t).call(t,e,"next")}))}function dt(){p(st,this,Tt).call(this,h(nt,this),h(C,this)),f(j,this,h(C,this))}function ht(t){if(null==t)return null;var e=String(t).trim();return""!==e&&h(ct,this).test(e)?e:null}function ft(){var t=location.search,e=new URLSearchParams(t),n=e.has(h(A,this))?e.get(h(A,this)):null,i=p(st,this,ht).call(this,n);f(L,this,null!==i?i:"0");var r=e.has("capability")?e.get("capability"):null,o=p(st,this,ht).call(this,r);f(E,this,null!==o?o:"")}function pt(t){var e=this;f(Z,this,Math.ceil(t.length/h(Q,this))),h(v,this).querySelector("#pageNavContainer").setAttribute("aria-label","".concat(h(H,this).paginationSrLabel," ").concat(h(Z,this)));var n=document.createElement("span");n.classList.add("hide-before"),n.classList.add("hidden"),n.setAttribute("tabindex","-1"),n.textContent="...";var i=document.createElement("span");i.classList.add("hide-after"),i.classList.add("hidden"),i.setAttribute("tabindex","-1"),i.textContent="...";var r=h(X,this).querySelector(".fund-pagination-nav-pages");r.innerHTML="";for(var o=function(t){var o=document.createElement("span");o.setAttribute("role","button"),o.setAttribute("tabindex","0"),o.setAttribute("aria-label","Page ".concat(t)),o.classList.add("page-button");var a=document.createElement("span");a.classList.add("page-num"),a.textContent=t,o.appendChild(a),o.addEventListener("click",(function(n){return p(st,e,xt).call(e,n,t)})),o.addEventListener("keydown",(function(n){return p(st,e,bt).call(e,n,t)})),r.appendChild(o),1===t&&(o.classList.add("active"),r.appendChild(i)),t===h(Z,e)-1&&r.appendChild(n)},a=1;a<=h(Z,this);a++)o(a);h(v,this).querySelector("#currentPage").textContent="1",h(v,this).querySelector("#totalPages").textContent=h(Z,this),h(Z,this)>1?(p(st,this,yt).call(this,h(X,this)),p(st,this,mt).call(this,1)):p(st,this,gt).call(this,h(X,this))}function mt(t){var e=this,n=h(X,this).querySelectorAll("span.page-num"),i=h(X,this).querySelector(".hide-before"),r=h(X,this).querySelector(".hide-after"),o=parseInt(h(Z,this)),a=parseInt(t);h(Z,this)>=5?n.forEach((function(t){var n=parseInt(t.textContent),c=t.closest(".page-button");a<o&&(p(st,e,yt).call(e,h(tt,e)),1===a?p(st,e,gt).call(e,h(et,e)):p(st,e,yt).call(e,h(et,e))),a>1&&(p(st,e,yt).call(e,h(et,e)),a===o?p(st,e,gt).call(e,h(tt,e)):p(st,e,yt).call(e,h(tt,e))),a+1<o-1?p(st,e,yt).call(e,i):p(st,e,gt).call(e,i),a-1>2?p(st,e,yt).call(e,r):p(st,e,gt).call(e,r),1===n||n===o?p(st,e,yt).call(e,c):1===a?n>3&&n!==o?p(st,e,gt).call(e,c):p(st,e,yt).call(e,c):a===o?n<o-2&&1!==n?p(st,e,gt).call(e,c):p(st,e,yt).call(e,c):n>=a-1&&n<=a+1?p(st,e,yt).call(e,c):p(st,e,gt).call(e,c)})):(p(st,this,gt).call(this,h(et,this)),p(st,this,gt).call(this,h(tt,this)))}function gt(t){t.classList.contains("hidden")||(t.classList.add("hidden"),t.setAttribute("tabindex","-1"))}function yt(t){t.classList.contains("hidden")&&(t.classList.remove("hidden"),t.classList.contains("hide-before")||t.classList.contains("hide-after")||t.setAttribute("tabindex","0"))}function vt(t){var e,n,i,o=h(v,this).querySelector(".cmp-tabs__tabpanel--active");(n=window.innerWidth<r.l.MD?(e=o.querySelector(".fund-card-mobile"))?e.querySelector("a"):null:(e=o.querySelector("table"))?e.querySelector("th"):null)&&(n.focus(),n.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),null===(i=n.querySelector("p"))||void 0===i||i.focus())}function bt(t,e){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),p(st,this,xt).call(this,t,e))}function xt(t,e){var n=parseInt(e);if(!isNaN(n)){f(J,this,n),h(v,this).querySelectorAll(".page-button").forEach((function(t){t.classList.remove("active"),t.setAttribute("aria-current","false")})),t.target.closest(".page-button").classList.add("active"),t.target.closest(".page-button").setAttribute("aria-current","true"),h(v,this).querySelector("#currentPage").textContent=n;var i=(n-1)*h(Q,this)+1,r=i+h(Q,this)-1>h(P,this)?h(P,this):i+h(Q,this)-1;f(nt,this,h(C,this).slice(i-1,r)),p(st,this,Tt).call(this,h(nt,this),h(C,this),h(U,this)),p(st,this,kt).call(this,"".concat(i," - ").concat(r)),p(st,this,mt).call(this,n),p(st,this,vt).call(this,t.target)}}function _t(t,e){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),p(st,this,St).call(this,t,e))}function St(t,e){var n=h(v,this).querySelector(".page-button.active"),i=h(v,this).querySelectorAll(".page-button"),r=i[1],o=i[i.length-2];"prev"===e&&(n===o?i[i.length-3].click():"..."===n.previousSibling.textContent?r.click():n.previousSibling.click()),"next"===e&&(n===r?i[2].click():"..."===n.nextSibling.textContent?o.click():n.nextSibling.click())}function wt(t){var e,n;f(rt,this,t),(null===(e=h(rt,this))||void 0===e||null===(n=e.complexTableData)||void 0===n?void 0:n.length)>
10&&(f(ot,this,h(rt,this).complexTableData[0].perfDate),f(at,this,h(rt,this).complexTableData[0].priceDate))}function At(t){var e,n;f(k,this,t),(null===(e=h(k,this))||void 0===e||null===(n=e.complexTableData)||void 0===n?void 0:n.length)>0&&(f(C,this,h(k,this).complexTableData[0].fundData),f(P,this,h(C,this).length),f(O,this,"1 - ".concat(h(P,this)))),p(st,this,kt).call(this,"1 - ".concat(h(Q,this))),p(st,this,pt).call(this,h(C,this)),f(nt,this,h(C,this).slice(0,h(Q,this))),p(st,this,Tt).call(this,h(nt,this),h(C,this)),f(j,this,h(C,this)),p(st,this,qt).call(this)}function Et(){h(y,this)||i.g.fetchJson(h(x,this),p(st,this,At).bind(this),(function(t){console.error("Error fetching fund data:",t)}))}function Lt(){i.g.fetchJson(h(it,this),p(st,this,wt).bind(this),(function(t){console.error("Error fetching extra data:",t)}))}function kt(t){if(h(P,this)>0){if(h(T,this).textContent="",p(st,this,yt).call(this,h($,this)),p(st,this,yt).call(this,h(X,this)),p(st,this,yt).call(this,h(M,this)),h(q,this)){var e=document.createElement("strong");e.textContent=t,h(q,this).innerHTML="",h(q,this).appendChild(e)}if(h(I,this)){var n=document.createElement("strong");n.textContent=h(P,this),h(I,this).innerHTML="",h(I,this).appendChild(n)}}else p(st,this,gt).call(this,h($,this)),p(st,this,gt).call(this,h(X,this)),p(st,this,gt).call(this,h(M,this)),h(T,this).textContent=h(H,this).noResultMsg;h(N,this)&&(h(N,this).textContent="(".concat(h(P,this),")"))}function Ct(){i.g.fetchJson(h(_,this),p(st,this,Mt).bind(this),(function(t){console.error("Error fetching fund filter:",t)}))}function Tt(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc",r=t,a=e;h(w,this).forEach((function(t){var e;(f(b,n,h(v,n).querySelector("#table-".concat(t,".").concat(h(g,n)))),h(b,n))&&(f(D,n,new o.a(r,a,h(Q,n),t,h(b,n),h(R,n),h(H,n),i,h(ot,n),h(at,n))),null===(e=h(D,n))||void 0===e||e.displayFundsForTab())}))}function Mt(t){var e=this;f(Y,this,t);var n=null==t?void 0:t.filterTypes;null==n||n.forEach((function(t){"risk-ratings"===t.id&&f(R,e,t.option)}))}function qt(){f(B,this,new a.a(h(C,this),h(Y,this),h(H,this),h(z,this),h(L,this),h(E,this))),h(B,this)&&(h(B,this).displayFilterOptions(),h(B,this).filterDefaultSeries())}function It(){var t=document.querySelectorAll('.cmp-fund-list-with-filter:not([data-component-state="initialized"])');t.length>0&&t.forEach((function(t){new lt(t).initialize(),t.setAttribute("data-component-state","initialized")}))}"loading"!==document.readyState?It():document.addEventListener("DOMContentLoaded",It)},function(t,e,n){"use strict";var i,r,o,a,c,s,l,u,d=n(0),h=n(22),f=n.n(h),p=n(36);function m(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return g(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}n.n(p)()(f.a);var y=function(){var t,e;null!==document.querySelector(".cmp-fund-performance-overview")&&(x(),e=null!==document.querySelector("#historical-chart")?JSON.parse(document.querySelector("#historical-chart").getAttribute("data-historic-perf")):[],f.a.chart("historical-chart",{chart:{type:"column",description:"Bar chart for historical performance of the fund",spacing:[10,0,0,0],marginRight:c,marginLeft:s,backgroundColor:"transparent",style:{fontFamily:"TD Graphik SemiLight"}},title:{text:""},xAxis:[{tickmarkPlacement:o,tickColor:"#cccccc",tickWidth:1,description:"Perio
1d",title:{text:""},categories:e.map(v),legend:{layout:"vertical",align:"right",verticalAlign:"middle"},labels:{staggerLines:a,y:20,useHTML:!0,style:{width:l,whiteSpace:"normal",color:"#1c1c1c",fontSize:"11px"},formatter:function(){return'<div style="text-align: center; word-wrap: break-word; word-break: '.concat(u,"; width: ").concat(l,'">').concat(this.value,"</div>")},autoRotation:0},offset:20,lineColor:"#cccccc"}],yAxis:{title:{text:""},labels:{enabled:!1},gridLineWidth:0,plotLines:[{color:"#cccccc",width:1,value:0}]},series:[{description:"historical performance over period",data:e.map(b),dataLabels:{enabled:!0,crop:!1,overflow:"none",padding:5,style:{textOutline:!1,color:"#1c1c1c",fontSize:r,fontFamily:"TD Graphik SemiLight"},formatter:function(){return _(this.y)}},pointWidth:i,colors:S(e.map(b),e.map(v),"last"),states:{hover:{brightness:.05,enabled:!0}}}],plotOptions:{series:{dataLabels:{align:"center"},colorByPoint:!0,borderColor:"#f4f7f4",pointWidth:20}},tooltip:{outside:!0,useHTML:!0,backgroundColor:"rgba(256, 256, 256, 1)",borderColor:"#cccccc",borderWidth:1,style:{opacity:1,background:"rgba(256, 256, 256, 1)",fontFamily:"TD Graphik Regular",fontSize:"13px"},formatter:function(){return this.x+"<br>"+_(this.y)}},legend:{enabled:!1},accessibility:{keyboardNavigation:{seriesNavigation:{pointNavigationEnabledThreshold:!0,rememberPointFocus:!0,skipNullPoints:!1}}}}),t=null!==document.querySelector("#calendar-chart")?JSON.parse(document.querySelector("#calendar-chart").getAttribute("data-calendar-perf")):[],f.a.chart("calendar-chart",{chart:{type:"column",description:"Bar chart for calendar performance of the fund",spacing:[15,0,0,0],marginRight:c,marginLeft:s,backgroundColor:"transparent",style:{fontFamily:"TD Graphik SemiLight"}},title:{text:""},xAxis:[{tickmarkPlacement:o,tickColor:"#cccccc",tickWidth:1,description:"Period",title:{text:""},categories:t.map(v),labels:{staggerLines:a,y:20,useHTML:!0,style:{width:l,whiteSpace:"normal",color:"#1c1c1c",fontSize:"11px"},formatter:function(){return'<div style="text-align: center; word-wrap: break-word; word-break: '.concat(u,"; width: ").concat(l,'">').concat(this.value,"</div>")},autoRotation:0},offset:20,lineColor:"#cccccc"}],yAxis:{title:{text:""},labels:{enabled:!1},gridLineWidth:0,plotLines:[{color:"#cccccc",width:1,value:0}]},series:[{description:"calendar performance over period",data:t.map(b),dataLabels:{enabled:!0,crop:!1,overflow:"none",padding:5,style:{textOutline:!1,color:"#1c1c1c",fontSize:r,fontFamily:"TD Graphik SemiLight"},formatter:function(){return _(this.y)}},pointWidth:i,colors:S(t.map(b),t.map(v),"first"),states:{hover:{brightness:.05,enabled:!0}}}],plotOptions:{series:{dataLabels:{align:"center"},colorByPoint:!0,borderColor:"#f4f7f4",pointWidth:20}},tooltip:{outside:!0,useHTML:!0,backgroundColor:"rgba(256, 256, 256, 1)",borderColor:"#cccccc",borderWidth:1,style:{opacity:1,background:"rgba(256, 256, 256, 1)",fontFamily:"TD Graphik Regular"},formatter:function(){return this.x+"<br>"+_(this.y)}},legend:{enabled:!1},accessibility:{keyboardNavigation:{seriesNavigation:{pointNavigationEnabledThreshold:!0,rememberPointFocus:!0,skipNullPoints:!1}}}}))};function v(t){return t.label}function b(t){return t.value?Number(t.value):t.value}function x(){window.innerWidth<d.l.MD?(i=26,r="13px",o="on",a=1,l="30px",u="break-all"):(i=34,r="13px",o="between",a=1,l="50px",u="normal"),c=s=window.innerWidth<d.l.SM?6:0}function _(t){return null!=t&&(t=parseFloat(t).toFixed(2)),t}function S(t,e,n){var i,r=[],o=m(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;null==a||0==a?r.push(" "):a>0?r.push("#008A00"):a<0&&r.push("#AE1100")}}catch(t){o.e(t)}finally{o.f()}return"first"===n?t[0]>0?r[0]="#1A5336":r[0]="#5A0302":"last"===n&&(t[t.length-1]>0?r[t.length-1]="#1A5336":r[t.length-1]="#5A0302"),r}function w(){x(),f.a.charts.forEach((function(t){"column"==t.userOptions.chart.type&&(t.reflow(),t.update({xAxis:[{tickmarkPlacement:o,labels:{staggerLines:a}}],series:[{dataLabels:{style:{fontSize:r}},pointWidth:i}]}),function(t){if(t.bgRect){var e,n=m(t.bgRect);try{for(n.s();!(e=n.n()).done;){e.value.destroy()}}catch(t){n.e(t)}finally{n.f()}}t.bgRect=[];var i=t.plotTop+t.plotHeight+1,r=t.renderer.rect(0,i,680,i+60,0).attr({"stroke-width":0,stroke:"#f4f7f4"}).add();t.bgRect.push(r)}(t))}))}window.onresize=function(){setTimeout((function(){w()}),500)},"loading"!==document.readyState?(y(),setTimeout((function(){w()}),500)):window.addEventListener("DOMContentLoaded",(function(){y(),setTimeout((function(){w()}),500)}))},function(t,e,n){"use strict";var i=n(22),r=n.n(i),o=n(36);n.n(o)()(r.a);var a=["#008A00","#4B94B9","#C47800","#8C8C8C","#719603","#A65207","#31728C","#439D2F","#933214","#767676","#00485E","#1A5336"],c=function(){if(null!==document.querySelector(".cmp-fund-portfolio-analysis")){var t=document.querySelector(".asset-mix-details"),e=JSON.parse(document.querySelector("#portfolio-chart").getAttribute("data-asset-mix"));!function(t){var e,n=!1,i="",o=t.assetMix,c=[];o.forEach((function(t){(e=new Array).push(t.label),e.push(t.value),c.push(e)}
1)),r.a.chart("portfolio-chart",{chart:{type:"pie",plotBackgroundColor:null,plotBorderWidth:null,plotShadow:!1},title:{text:""},plotOptions:{pie:{states:{inactive:{opacity:1}},allowPointSelect:!0,colors:a,dataLabels:{enabled:!1}}},tooltip:{outside:!0,useHTML:!0,backgroundColor:"rgba(256, 256, 256, 1)",borderColor:"#cccccc",borderWidth:1,style:{opacity:1,background:"rgba(256, 256, 256, 1)",fontFamily:"TD Graphik Regular"},formatter:function(){return'<b style="font-family: TD Graphik Medium">'+this.point.name+"</b>: "+this.y+" %"}},series:[{description:"Asset Allocation",data:c,colorByPoint:!0,size:"100%",innerSize:"45%",showInLegend:!1,dataLabels:{enabled:!1},point:{events:{select:function(t){i=t.target.index,n=!0,document.querySelector(".asset-mix-details").childNodes[t.target.index].childNodes[1].style="font-weight:600;font-family:TD Graphik Medium"},unselect:function(t){n=i!=t.target.index,document.querySelector(".asset-mix-details").childNodes[t.target.index].childNodes[1].style="font-weight:400;font-family:TD Graphik SemiLight"},mouseOver:function(t){document.querySelector(".asset-mix-details").childNodes.forEach((function(e,n){
1n==t.target.index&&(e.childNodes[1].style="font-weight:600;font-family:TD Graphik Medium")}))},mouseOut:function(t){var e=document.querySelector(".asset-mix-details");n?e.childNodes.forEach((function(t,e){t.childNodes[1].style=e==i?"font-weight:600;font-family:TD Graphik Medium":"font-weight:400;font-family:TD Graphik SemiLight"})):e.childNodes.forEach((function(t){return t.childNodes[1].style="font-weight:400;font-family:TD Graphik SemiLight"}))}}}}],accessibility:{description:"This is a portfolio analysis pie chart",keyboardNavigation:{seriesNavigation:{pointNavigationEnabledThreshold:!0,rememberPointFocus:!0,skipNullPoints:!1}}}})}(e),function(t,e){var n=e.assetMix,i="";n.forEach((function(t,e){i+='<div class="details-box">\n <div class="title">\n <span>'.concat(t.label,'</span>\n </div>\n <div class="title-value">\n <span class="set-color" style="fill:').concat(a[e],"; background-color:").concat(a[e],'"></span>\n <span>').concat(t.value," %</span>\n </div>\n </div>")})),t.innerHTML=i;var r=document.querySelector(".asset-mix-details");n.length%2==0&&(r.childNodes[n.length-2].style="border-bottom:none")}(t,e)}};"loading"!==document.readyState?c():window.addEventListener("DOMContentLoaded",(function(){c()}))},function(t,e,n){"use strict";var i=n(27),r={init:function(){var t=document.querySelectorAll(".".concat("cmp-fund-search",':not([data-component-state="initialized"])'));t.length>0&&t.forEach((function(t){!function(t){Object(i.b)(t,"cmp-fund-search")}(t),t.setAttribute("data-component-state","initialized")}))}};"loading"!==document.readyState?r().init():document.addEventListener("DOMContentLoaded",r.init)},function(t,e,n){"use strict";var i=n(27),r=function(){function t(t){Object(i.b)(t,"cmp-fund-search-results");var e=new URLSearchParams(window.location.search).get("term")||"";window.tms_tag&&window.tms_tag.push({event:"searchPageLoad",page:{name:window.location.origin+window.location.pathname,subsection:"asset management"},search:{term:e}})}return{init:function(){var e=document.querySelectorAll(".".concat("cmp-fund-search-results",':not([data-component-state="initialized"])'));e.length>0&&e.forEach((function(e){t(e),e.setAttribute("data-component-state","initialized")}))}}}();"loading"!==document.readyState?r().init():document.addEventListener("DOMContentLoaded",r.init)},function(t,e){function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var r=function(){if(null!==document.querySelector(".cmp-fund-sector-mix")){var t=JSON.parse(document.querySelector(".key-holding-details").getAttribute("data-top-ten-table")),e=JSON.parse(document.querySelector(".top-holding-model").getAttribute("data-table-static-data"));null!==document.querySelector(".cmp-dialog .container-with-params .top-holding-model")&&(!function(t,e){var n=" ("+t.length+")",i='<div class="text">\n <div class="cmp-text">\n <h2>'.concat(e.popup_header).concat(n,"</h2>\n </div>\n </div>"),r='<thead>\n <tr>\n <th scope="col" aria-sort="none">\n <div role="button" tabindex="0">\n '.concat(e.table_header_1,'\n <span class="td-icon td-icon-colour-primary icon-small td-icon-sort">\n </div>\n </span>\n </th>\n <th scope="col" aria-sort="none">\n <div role="button" tabindex="0">\n ').concat(e.table_header_2,'\n <sp
1an class="td-icon td-icon-colour-primary icon-small td-icon-sort">\n </div>\n </span>\n </th>\n </tr>\n</thead>'),o="";t.forEach((function(t){o+="\n <tr>\n <td>\n ".concat(t.label,"\n </td>\n <td>\n ").concat(t.value,"%\n </td>\n </tr>")})),document.querySelector("#top-ten-holding .cmp-dialog__header").insertAdjacentHTML("beforeend",i),document.querySelector(".top-holding-model").innerHTML='<div class="cmp-top-ten-holding-table"><table class="cmp-top-ten-holding-table__chart">'+r+"<tbody>"+o+"</tbody></table></div>"}(t,e),document.querySelectorAll(".cmp-top-ten-holding-table th").forEach((function(t){["click","keypress"].forEach((function(e){t.addEventListener(e,(function(){var e=t.parentElement.parentElement.parentElement,i=Array.prototype.indexOf.call(t.parentElement.children,t),r=t.classList.contains("th-sort-asc");"none"==t.getAttribute("aria-sort")||"descending"==t.getAttribute("aria-sort")?t.setAttribute("aria-sort","ascending"):t.setAttribute("aria-sort","descending"),function(t,e){for(var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=i?1:-1,o=t.tBodies[0],a=Array.from(o.querySelectorAll("tr")),c=a.sort((function(t,n){return t.querySelector("td:nth-child(".concat(e+1,")")).textContent.trim()>n.querySelector("td:nth-child(".concat(e+1,")")).textContent.trim()?1*r:-1*r}));o.firstChild;)o.removeChild(o.firstChild);o.append.apply(o,n(c)),t.querySelectorAll("th").forEach((function(t){t.classList.remove("th-sort-asc","th-sort-desc")})),t.querySelector("th:nth-child(".concat(e+1,")")).classList.toggle("th-sort-asc",i),t.querySelector("th:nth-child(".concat(e+1,")")).classList.toggle("th-sort-desc",!i),t.querySelectorAll("th").forEach((function(t){t.classList.contains("th-sort-asc")?(t.querySelector("span").classList.remove("desc-sort"),t.querySelector("span").classList.add("asc-sort")):t.classList.contains("th-sort-desc")?(t.querySelector("span").classList.remove("asc-sort"),t.querySelector("span").classList.add("desc-sort")):(t.querySelector("span").classList.remove("asc-sort"),t.querySelector("span").classList.remove("desc-sort"))}))}(e,i,!r)}))}))})))}};"loading"!==document.readyState?r():window.addEventListener("DOMContentLoaded",(function(){r()}))},function(t,e,n){"use strict";var i=n(0);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o="",a=[],c=[],s=[],l=[],u="",d="",h=[{Title:"Overview",id:"fp/overview",dataKey:"FundsOverviewTabData"},{Title:"Annualized Performance (%)",id:"fp/annualizedPerformance",dataKey:"AnnualizedTabData"},{Title:"Calendar Performance (%)",id:"fp/calendarPerformance",dataKey:"CalenderTabData"},{Title:"Distribution",id:"fp/distribution",dataKey:"FundsOverviewTabData"}],f="",p="",m="",g={investmentType:"",durationfocus:"",fp:""},y={"fp/overview":{title:["Fund name","Price (Nav)","Price Date","Benchmark","Aum $","Docs"],displayKey:["fundName","navNumF","navAsOfDateToString","benchmark","formattedAssetsUnderManagementNumF","docs"]},"fp/annualizedPerformance":{title:["Fund name","1M","3M","1Y","3Y","4Y","5Y","10Y","SI","Docs"],displayKey:["fundName","fundPerformance1MNumF","fundPerformance3MNumF","fundPerformance1YNumF","fundPerformance3YNumF","fundPerformance4YNumF","fundPerformance5YNumF","fundPerformance10YNumF","fundPerformanceSinceInceptionNumF","docs"]},"fp/calendarPerformance":{title:["Fund name","YTD"],displayKey:["fundName","fundPerformanceYearToDateNumF","fundYear1PerformanceNumF","fundYear2PerformanceNumF","fundYear3PerformanceNumF","fundYear4PerformanceNumF","fundYear5PerformanceNumF","docs"]},"fp/distribution":{title:["Fund name","Total","Income","Capital","Frequency","Date","Docs"],displayKey:["fundName","formattedTotalDistributionNumF","formattedIncomeDistributionNumF","formattedCapitalDistributionNumF","distributionFrequency","distributionDateToString","docs"]}},v={investmentType:g.investmentType,durationfocus:g.durationfocus,fp:g.fp},b=["strategiesLink","fundsLink","contactusLink","prospectusPDFLink","fundFactsPDFLink","annualFinancialReportsPDFLink","semiAnnualFinancialReportsPDFLink","annualManagementReportsPDFLink","proxyVotingRecordsPDFLink","semiAnnualFundPerformancePDFLink","quarterlyPortfolioSummaryPDFLInk"],x=[],_={code:"",Extend:function(t){t=t||{},_.size=t.size||0,_.page=t.page||1,_.step=t.step||10},Add:function(t,e){if(_.size>1)for(var n=t;n<e;n++)_.code+='<a tabindex="0">'+n+"</a>"},Last:function(){_.code+='<i>...</i><a tabindex="0">'+_.size+"</a>"},First:function(){_.code+='<a tabindex="0">1</a><i>...</i>'},Click:function(){document.getElementById("funds-performance").scrollIntoView(),_.page=+this.innerHTML,_.Start()},Prev:function(){_.page--,_.page<1&&(_.page=1),_.Start(),document.getElementById("funds-performance").scrollIntoView(),document.getElementById("cmp-fp-search").focus()},Next:function(){_.page++,_.page>_.size&&(_.page=_.size),_.Start(),document.getElementById("funds-performance").scrollIntoView(),document.getElementById("cmp-fp-search").focus()},Bind:function(){for(var t=_.e.getElementsByTagName("a"),e=0;e<t.length;e++)+t[e].innerHTML===_.page&&(t[e].className="active"),t[e].addEventListener("click",_.Click,!1),t[e].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||(_.page=+this.innerHTML,_.Start(),document.getElementById("funds-performance").scrollIntoView())}),!1)},Finish:function(){_.e.innerHTML=_.code,_.code="",_.Bind()},Start:function(){_.size<4?_.Add(1,_.size+1):_.page<2*_.step+1?_.size>4?(_.Add(1,2*_.step+2),_.Last()):_.Add(1,_.size+1):_.page>_.size-2*_.step?_.size>4&&_.page>
14?(_.First(),_.Add(_.size-2,_.size+1)):_.Add(1,_.size+1):(_.page>3?_.First():_.Add(1,_.page),_.page-_.step==2?_.Add(3,_.page+_.step+1):_.size-_.page==2?4==_.page&&6==_.size?_.Add(3,_.size+1):_.Add(_.page-_.step,_.size+1):_.Add(_.page-_.step,_.page+_.step+1),_.size-_.page>2&&_.Last()),S(x,10,_.page),_.Finish()},Buttons:function(t){if(_.size>3){var e=t.getElementsByTagName("a");e[0].addEventListener("click",_.Prev,!1),e[1].addEventListener("click",_.Next,!1),e[0].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||_.Prev()}),!1),e[1].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||_.Next()}),!1)}},Create:function(t){var e=[];e=_.size>3?['<a role="link" aria-label="previous page" tabindex="0" class="articleanchorprev td-icon td-icon-leftCaret"></a>',"<span ></span>",'<a role="link" aria-label="next page" tabindex="0" class="articleanchor td-icon td-icon-rightCaret"></a>']:["<span ></span>"],t.innerHTML=e.join(""),_.e=t.getElementsByTagName("span")[0],_.Buttons(t)},Init:function(t,e){_.Extend(e),_.Create(t),_.Start()}},S=function(t,e,n){var i=e*--n,r=i+e,o=t.slice(i,r);A(o,g.fp)},w=function(t){x=t;var e=document.getElementById("cmp-fp-pagination"),n=document.getElementById("cmp-fp-view-all");x.length>10?(n.style.display="block",function(t,e){e.addEventListener("click",(function(n){t.style.display="none",e.style.display="none",document.getElementById("funds-performance").scrollIntoView(),A(x,g.fp)}))}(e,n)):n.style.display="none";var i=Math.ceil(x.length/10);_.Init(e,{size:i,page:1,step:1})},A=function(t,e){var n=y[e].displayKey,r=document.getElementById("cmp-fp-data-table-body");r.innerHTML="";var o=document.getElementById("cmp-fp-data-table");if(o.querySelector("thead").querySelectorAll("tr").forEach((function(t){t.style.display="none"})),t.length){o.style.display="table",document.getElementById("cmp-fp-error-section").style.display="none";var a=e+"/thead";document.getElementById(a).style.display="table-row",t.forEach((function(t){var e=document.createElement("tr");
1n.forEach((function(n){if("docs"!=n){var r=document.createElement("td");"fundPerformanceSinceInceptionNumF"==n?(r.classList.add("cmp-fp-SI-col"),t[n]?-999==t[n]?r.innerHTML="-":r.innerHTML=t[n]+"<br/>"+t.inceptionDateToString:r.innerHTML="-"):t[n]?-999==t[n]?r.innerHTML="-":r.innerHTML=t[n]:r.innerHTML="-",e.appendChild(r)}else{var o=document.createElement("td");o.classList.add("cmp-fp-doc-col");var a=document.createElement("span");a.setAttribute("tabindex",0),a.classList.add("cmp-fp-dots"),a.classList.add("td-icon"),a.classList.add("td-icon-all"),a.setAttribute("role","button"),a.setAttribute("aria-expanded","false"),a.setAttribute("aria-label","Document List");var s=function(t){var e=c.filter((function(e){return e.phoenixCode==t}))[0],n=document.createElement("div");n.classList.add("cmp-funds-performance--panel");var i=document.createElement("ul");return i.classList.add("cmp-funds-performance--panel-container"),b.forEach((function(t){if(e[t]){var n=l.filter((function(e){return e.id==t}));if(n.length){var r=n[0].title,o=document.createElement("li"),a=document.createElement("a");a.href=e[t],a.classList.add("cmp-fp-dwnld-link"),a.innerHTML=r+'<span class="td-icon td-icon-rightCaret shiftright" aria-hidden="true"></span>',a.target="_blank",o.appendChild(a),i.appendChild(o)}}})),n.appendChild(i),console.log("linksPanel",n),n}(t.phoenixCode);a.addEventListener("click",(function(t){var e;e=!s.classList.contains("display-panel"),document.getElementById("cmp-fp-data-table").querySelectorAll(".cmp-fp-doc-col").forEach((function(t){t.querySelector(".cmp-funds-performance--panel").classList.remove("display-panel"),t.querySelector(".cmp-fp-dots").classList.remove("show-box"),t.setAttribute("aria-expanded","false")})),e?(s.classList.add("display-panel"),a.classList.add("show-box"),a.setAttribute("aria-expanded","true")):(s.classList.remove("display-panel"),a.classList.remove("show-box"),a.setAttribute("aria-expanded","false"))})),a.addEventListener("keyup",(function(t){t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||(a.click(),a.classList.add("show-box"))})),a.addEventListener("blur",(function(t){console.log("event",t),t.relatedTarget.classList.contains("cmp-fp-dwnld-link")||(console.log(t.relatedTarget),s.classList.remove("display-panel"),a.classList.remove("show-box"),a.setAttribute("aria-expanded","false"))})),o.appendChild(a),o.appendChild(s),e.appendChild(o);var u=s.querySelector("ul").querySelectorAll("a"),d=u[u.length-1];console.log("lastfundslink",d),u.forEach((function(t){d.addEventListener("blur",(function(t){t.relatedTarget.classList.contains("cmp-fp-dwnld-link")||document.getElementById("cmp-fp-data-table").querySelectorAll(".cmp-fp-doc-col").forEach((function(t){t.querySelector(".cmp-funds-performance--panel").classList.remove("display-panel"),t.querySelector(".cmp-fp-dots").classList.remove("show-box"),t.setAttribute("aria-expanded","false")}))}))}))}})),r.appendChild(e)})),function(t){window.addEventListener("click",(function(e){document.getElementById("cmp-fp-data-table")&&(e.target.classList.contains("cmp-fp-dots")||t.querySelectorAll(".cmp-fp-doc-col").forEach((function(t){t.querySelector(".cmp-funds-performance--panel").classList.remove("display-panel"),t.querySelector(".cmp-fp-dots").classList.remove("show-box"),t.setAttribute("aria-expanded","false")})))}))}(r)}else{var s=document.getElementById("cmp-fp-container");s.querySelector("#cmp-fp-data-table").style.display="none";var d=s.querySelector("#cmp-fp-error-section");d.style.display="block",d.innerHTML='<div class="cmp-fp-error-mesg-container aem-GridColumn aem-GridColumn--default--10 aem-GridColumn--offset--default--1 aem- aem-GridColumn--phone--12 aem-GridColumn--offset--phone--0 aem-GridColumn--tabletportrait--12 aem-GridColumn--offset--tabletportrait--0"> <p>'+u+"</p> </div>"}P("hide")};function E(t,e){var n=[];return t.forEach((function(t){Object.keys(t).some((function(n){if("object"!=r(t[n]))return"number"==typeof t[n]?t[n].toString().includes(e):t[n].toLowerCase().includes(e.toLowerCase());t[n].forEach((function(t){return Object.keys(t).some((function(n){return t[n].toLowerCase().includes(e.toLowerCase())}))}))}))&&n.push(t)})),L(n,"phoenixCode")}function L(t,e){return t.filter((function(n,i){return t.findIndex((function(t){return t[e]===n[e]}))===i}))}var k,C=function(){var t=document.getElementById("cmp-fp-asPerDate"),e=document.getElementById("cmp-fp-asPerDate-mobile"),n=window.innerWidth,i=[],r=[];s=[],g.investmentType&&"investmentType-all"!=g.investmentType?c.forEac
1h((function(t){t.properties.forEach((function(e){e.id==g.investmentType&&i.push(t)}))})):i=c,g.durationfocus&&"durationfocus-all"!==g.durationfocus?i.forEach((function(t){t.properties.forEach((function(e){e.id==g.durationfocus&&r.push(t)}))})):r=i;var o=r.map((function(t){return t.phoenixCode}));if(g.fp){var l=h.filter((function(t){return t.id==g.fp}))[0].dataKey,f=document.getElementById("cmp-fp-container");if(f.querySelector("#cmp-fp-data-table").style.display="table",f.querySelector("#cmp-fp-data-table-body").innerHTML="",f.querySelector("#cmp-fp-error-section").style.display="none",a[l].length)if(a[l][0].data.forEach((function(t){o.forEach((function(e){e==t.phoenixCode&&s.push(t)}))})),m){var p=[],y=E(s,m),v=E(r,m),b=L(y.concat(v),"phoenixCode").map((function(t){return t.phoenixCode}));a[l][0].data.forEach((function(t){b.forEach((function(e){e==t.phoenixCode&&p.push(t)}))})),t.innerText=d+" "+a[l][0].perfDate,e.innerText=d+" "+a[l][0].perfDate,n<768?w(p):A(p,g.fp)}else t.innerText=d+" "+a[l][0].perfDate,e.innerText=d+" "+a[l][0].perfDate,n<768?w(s):A(s,g.fp);else{var x=document.getElementById("cmp-fp-container");x.querySelector("#cmp-fp-data-table").style.display="none";var _=x.querySelector("#cmp-fp-error-section");_.style.display="block",_.innerHTML=' <div class="cmp-fp-error-mesg-container aem-GridColumn aem-GridColumn--default--10 aem-GridColumn--offset--default--1 aem- aem-GridColumn--phone--12 aem-GridColumn--offset--phone--0 aem-GridColumn--tabletportrait--12 aem-GridColumn--offset--tabletportrait--0"> <p>'+u+"</p> </div>"}}},T=function(t,e,n){t.querySelectorAll("li").forEach((function(t){if(t.getAttribute("id")==e)if("mobile"!=n){t.classList.add("active-funds-tab");var i=t.querySelector("span");i.setAttribute("aria-selected","true"),i.setAttribute("tabindex","0")}else t.classList.add("active-funds-tab-mobile"),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0");else if("mobile"!=n){t.classList.remove("active-funds-tab");var r=t.querySelector("span");r.setAttribute("aria-selected","false"),r.setAttribute("tabindex","-1")}else t.classList.remove("active-funds-tab-mobile"),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1")}))},M=function(t,e,n,r){if(t.innerHTML="",e.forEach((function(e){var i=document.createElement("li"),o=e.id+r;if(i.id=o,"mobile"!=r){var a=document.createElement("span");a.innerHTML=e.Title,a.setAttribute("tabindex","-1"),i.appendChild(a),T(t,o,r)}else i.innerText=e.Title,i.setAttribute("tabindex","-1"),T(t,o,r);t.appendChild(i),i.addEventListener("click",(function(i){T(t,o,r),"mobile"!=r?(g[n]=e.id,C()):"fp"!=n&&((v=g)[n]=e.id)}))})),g[n]){var o=g[n]+r;document.getElementById(o).click()}else t.children[0].click();!function(t,e){for(var n=t.querySelectorAll("li"),r=function(t){var r="";"mobile"!=e?(r=n[t].querySelector("span")).setAttribute("role","tab"):(r=n[t]).setAttribute("role","tab"),r.addEventListener("focus",(function(o){r.addEventListener("keydown",(function(r){if(r.keyCode===i.m.ARROW_RIGHT||r.keyCode===i.m.ARROW_LEFT||r.keyCode===i.m.ARROW_UP||r.keyCode===i.m.ARROW_DOWN){var o=n[t];if(r.keyCode===i.m.ARROW_RIGHT||r.keyCode===i.m.ARROW_DOWN){var a=o.nextElementSibling;"mobile"!=e?a.querySelector("span").focus():a.focus();var c=a.getAttribute("id");document.getElementById(c).click()}else{var s=o.previousElementSibling;"mobile"!=e?s.querySelector("span").focus():s.focus();var l=s.getAttribute("id");document.getElementById(l).click()}}}))}))},o=0;o<n.length;o++)r(o)}(t,r)},q=function(t,e){var n=document.getElementById("cmp-fp-investmentType-filter-"+e),i=[],r={Title:p,id:"investmentType-all"};i.push(r),t.investmentstyle.tags.forEach((function(t){return i.push(t)})),M(n,i,"investmentType",e);var o=[],a={Title:p,id:"durationfocus-all"};
1o.push(a),t.durationfocus.tags.forEach((function(t){return o.push(t)}));var c,s,l=document.getElementById("cmp-fp-durationfocus-filter-"+e);if(M(l,o,"durationfocus",e),"mobile"!=e){var u=document.getElementById("cmp-fp-filter");M(u,h,"fp",e)}else{var d=document.getElementById("cmp-funds-performance-select");s=h,(c=d).innerHTML="",s.forEach((function(t){var e=document.createElement("option"),n=t.id;e.setAttribute("value",n),e.text=t.Title,c.appendChild(e)})),c.addEventListener("change",(function(t){var e=t.target.value;g.fp=e,C()}))}},I=function(t,e){return t.filter((function(t){return t.id==e}))[0].title},O=function(t,e){var n=new XMLHttpRequest;n.overrideMimeType("application/json"),n.open("GET",t,!0),n.onreadystatechange=function(){4===n.readyState&&"200"==n.status&&e(n.responseText)},n.send(null)},P=function(t){if(document.getElementById("funds-performance-spinner")){var e=document.getElementById("funds-performance-spinner");e.style.display="show"==t?"block":"none"}},N=function(t,e){O(e,(function(e){var n,i=JSON.parse(e);if(i){if(P("show"),a=i,c=i.ContentFragmentTabData,l=i.tabDetailsData,p=l.filter((function(t){return"All"==t.id}))[0].title,n=l,h[0].Title=I(n,"FundsOverviewTabData"),h[1].Title=I(n,"AnnualizedTabData"),h[2].Title=I(n,"CalenderTabData"),h[3].Title=I(n,"FundsDistibutionTabData"),d=I(n,"asOfLabel"),u=I(n,"errorMsg"),f=I(n,"tableDescription"),document.getElementById("cmp-fp-data-table").setAttribute("aria-describedby",f),document.getElementById("cmp-fp-duration-focus-label").innerText=I(n,"durationFocusFilter"),document.getElementById("cmp-fp-investment-label").innerText=I(n,"investmentStyleFilter"),a.FundsOverviewTabData.length>0&&a.FundsOverviewTabData[0].data[0]){var r=document.getElementById("cmp-fp--as-of-date-main");r.innerHTML="",r.innerHTML=d+" "+a.FundsOverviewTabData[0].data[0].perfAsOfDateToString}var s=t.getAttribute("tag")+"."+o+".json";setTimeout(D(s),2e3)}}))},D=function(t){O(t,(function(t){var e=JSON.parse(t);q(e,"desktop"),q(e,"mobile")}))},B=function(){var t,e,n,r,a,c,s;document.getElementById("funds-performance")&&(s=document.documentElement.getAttribute("lang").split("-"),o=s[1]?s[0]+"."+s[1]:s[0],a=document.getElementById("funds-performance"),c=a.getAttribute("path")+"."+o+".json",N(a,c),r=(new Date).getFullYear(),document.querySelectorAll(".cmp-fp-preYear-col").forEach((function(t){r--,t.innerHTML=r})),e=document.getElementById("cmp-fp-search"),(n=document.getElementById("cmp-fp-search-close")).style.display="none",n.addEventListener("click",(function(t){n.style.display="none",m="",e.value="",C()})),n.addEventListener("keyup",(function(t){t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||(n.style.display="none",m="",e.value="",C())})),e.addEventListener("keyup",(function(t){"Tab"!=t.code&&"Shift"!=t.code&&((m=t.target.value.trimStart().trimEnd()).length>0?(n.style.display="block",C()):(n.style.display="none",m="",e.value="",C()))})),(t=document.querySelectorAll(".funds-performance-accordion")).forEach((function(e){t[0]===e&&(e.focus(),e.setAttribute("tabindex","0"));var n=e.nextElementSibling;n.style.display="none",e.onclick=function(){this.classList.toggle("is-open"),n.style.maxHeight?(n.style.display="none",n.style.maxHeight=null,n.tabindex=-1,e.setAttribute("aria-expanded","false")):(n.style.display="block",n.style.maxHeight=n.scrollHeight+"px",n.tabindex=0,e.setAttribute("aria-expanded","true"))}})),document.getElementById("funds-performance-apply-btn-mobile").addEventListener("click",(function(t){g=v,C()})),document.getElementById("funds-performance-clear-btn-mobile").addEventListener("click",(function(t){var e=g.fp;g={investmentType:"investmentType-all",durationfocus:"durationfocus-all",coe:"coe-all",fp:e},T(document.querySelector("#cmp-fp-investmentType-filter-mobile"),"investmentType-allmobile","mobile"),T(document.querySelector("#cmp-fp-durationfocus-filter-mobile"),"durationfocus-allmobile","mobile"),C()})),window.focus())};"loading"!==document.readyState?B():((k=document.createElement("div")).classList.add("cmp-funds-performance"),k.classList.add("cmp-funds-performance--no-margins"),k.innerHTML='<div id="tddialogFunds" role="dialog" aria-label= "Modal Content" tabindex="-1" class="cmp-dialog hidden overlay-modal-background-secondary"> <div class="cmp-dialog__header" >
1 <div class="cmp-dialog__header-controls" > <span class="cmp-funds-performance__filter-label">Filter</span> <button type="button" role="button" class= "close-modal close-modal-button" aria-label="Close"> <span class="td-icon td-icon-close"></span> </button> </div> </div> <div class="cmp-dialog__details"> <div class="cmp-dialog__body"> <div> <div class="container"> <button class="funds-performance-accordion" aria-expanded="false">Investment Style</button> <div class="funds-performance-accordion-content"> <div class="funds-performance-accordion-main-content"> <div class="aem-Grid aem-Grid--12"> <div class="aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--tabletlandscape--12 cmp-fp-nopadding"> <ul role="tablist" aria-label="Investment Style" class="cmp-funds-performance--modal-list" id="cmp-fp-investmentType-filter-mobile"> </ul> </div> </div> </div> </div> <button class="funds-performance-accordion" aria-expanded="false">Duration Focus</button> <div class="funds-performance-accordion-content"> <div class="funds-performance-accordion-main-content"> <div class="aem-Grid aem-Grid--12"> <div class="aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--tabletlandscape--12 cmp-fp-nopadding"> <ul role="tablist" aria-label="Duration Focus" class="cmp-funds-performance--modal-list" id="cmp-fp-durationfocus-filter-mobile" > </ul> </div> </div> </div> </div> <div class="cmp-funds-performance--filter-dropdown--button-container"> <button class="cmp-funds-performance--filter-dropdown--apply-btn close-modal" id="funds-performance-apply-btn-mobile">Apply Filter</button> <button class="cmp-funds-performance--filter-dropdown--clear-btn close-modal" id="funds-performance-clear-btn-mobile">Clear All</button> </div> </div> </div> </div> </div></div>',document.querySelector("body").appendChild(k),document.addEventListener("DOMContentLoaded",B))},function(module,__webpack_exports__,__webpack_require__){"use strict";var _site_js_locationCookieMgt__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7),_site_js_global__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_site_js_cookieManagement__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),cmpGenesys=function(){if("undefined"!=typeof genesysUserDataConfig){var genesysUserDataConfigList=JSON.parse(genesysUserDataConfig);if(0!==genesysUserDataConfigList.genesysUserData.length){var chatIconEnabled=window.chatIconEnabled;if(!0===chatIconEnabled&&_site_js_locationCookieMgt__WEBPACK_IMPORTED_MODULE_0__.a.getLocationCookie(_site_js_global__WEBPACK_IMPORTED_MODULE_1__.p)){var provinceCookie=_site_js_locationCookieMgt__WEBPACK_IMPORTED_MODULE_0__.a.getLocationCookie(_site_js_global__WEBPACK_IMPORTED_MODULE_1__.p),cookieData=JSON.parse('{"'+provinceCookie.split("|").join('","').split("=").join('":"')+'"}'),provinceValue=cookieData.province.toLocaleUpperCase()+"."+geoLocationLang;if(null!==chatExceptionList&&""!==chatExceptionList){var disableChatExceptionList=JSON.parse(chatExceptionList).chatExceptionData;disableChatExceptionList.find((function(t){return t.provinceLanguage===provinceValue}))&&(chatIconEnabled=!1)}else""===chatExceptionList&&(chatIconEnabled=!0)}return{init:init}}}function _initialize(){var createLink=document.createElement("link");createLink.id="genesys-widgets-styles-theme",createLink.rel="stylesheet",createLink.href=stylesheetURL,createLink.type="text/css",document.getElementsByTagName("head")[0].appendChild(createLink);var genesysUserDataConfigData=JSON.parse(genesysUserDataConfig).genesysUserData[0];function genesysApiCall(){fetch(genesysAPI,{method:"GET",headers:genesysHeaderConfig}).then((function(t){return t.json()})).then((function(t){return genesysCallbackSuccess(t)})).catch((function(t){return genesysCallbackError(t)}))}function genesysCallbackSuccess(t){console.log("Read genesysAPI-- "+JSON.stringify(t)),genesysScript(t)}function genesysCallbackError(t,e,n){var i=t.status+": "+t.statusText;console.log("Genesys API Failure:",i)}function genesysScript(t){var e=document.createElement("script");e.setAttribute("src","https://apps.usw2.pure.cloud/widgets/9.0/cxbus.min.js"),e.setAttribute("onload","javascript:CXBus.configure({debug:true,pluginsPath:'https://apps.usw2.pure.cloud/widgets/9.0/plugins/'});CXBus.loadPlugin('widgets-core')"),e.setAttribute("async","false"),document.head.insertBefore(e,document.head.firstElementChild);var n=_site_js_cookieManagement__WEBPACK_IMPORTED_MODULE_2__.a.cookieGetItem(_site_js_global__WEBPACK_IMPORTED_MODULE_1__.K)||"",i=getValueByKey(_site_js_global__WEBPACK_IMPORTED_MODULE_1__.k,n)||"",r=_site_js_cookieManagement__WEBPACK_IMPORTED_MODULE_2__.a.cookieGetItem(_site_js_global__WEBPACK_IMPORTED_MODULE_1__.s)||"";genesysUserDataConfigData.TD_Product_Region=r,genesysUserDataConfigData.TD_Client_LOB_Key2=i;var o={debug:t.widgets.main.debug,theme:t.widgets.main.theme,themes:t.
1widgets.main.themes,lang:t.widgets.main.lang,i18n:t.widgets.main.i18n,preload:t.widgets.main.preload},a=t.widgets.webchat.emojis,c=t.widgets.webchat.markdown,s={enabled:t.widgets.webchat.cometD.enabled},l={enabled:chatIconEnabled,effect:t.widgets.webchat.chatButton.effect,openDelay:t.widgets.webchat.chatButton.openDelay,effectDuration:t.widgets.webchat.chatButton.effectDuration,hideDuringInvite:t.widgets.webchat.chatButton.hideDuringInvite},u={wrapper:t.widgets.webchat.form.wrapper,inputs:t.widgets.webchat.form.inputs},d=t.widgets.webchat.uploadsEnabled,h=t.widgets.webchat.enableCustomHeader,f=t.widgets.webchat.maxMessageLength;console.log("maxMessageLength"+t.widgets.webchat.maxMessageLength);var p=t.widgets.webchat.transport.dataURL,m=t.widgets.webchat.transport.type,g=t.widgets.webchat.transport.endpoint,y={"x-client-api-key":t.widgets.webchat.transport.headers["x-client-api-key"],"x-lob":t.widgets.webchat.transport.headers["x-lob"]},v=t.widgets.webchat.transport.stream,b=t.widgets.webchat.transport.async.enabled;console.log("user data configuration test"+JSON.stringify(genesysUserDataConfigData)),window._genesys||(window._genesys={}),window._gt||(window._gt=[]),window._genesys={widgets:{main:o,webchat:{userData:genesysUserDataConfigData,form:u,emojis:a,markdown:c,cometD:s,chatButton:l,uploadsEnabled:d,enableCustomHeader:h,maxMessageLength:f,transport:{dataURL:p,type:m,endpoint:g,headers:y,stream:v,async:{enabled:b}}}}}}function getValueByKey(t,e){return t[e]}function genesysError(){CXBus.subscribe("WebChatService.messageReceived",(function(t){var e=t.data.originalMessages.filter((function(t){return"System"===t.type&&"InteractionStateChange"===t.event})).pop();if(e){var n=e.data.interactionState;n&&"Completed"===n&&CXBus.command("WebChat.endChat")}}))}function genesysUserDataUpdate(){var pageInfo={TD_ChatReferrer_PageName:eval(genesysUserDataConfigData.TD_ChatReferrer_PageName),TD_ChatReferrer_Url:eval(genesysUserDataConfigData.TD_ChatReferrer_Url)};-1===document.cookie.search("isGensysInfo")&&CXBus.subscribe("WebChatService.ready",(function(t){CXBus.command("WebChatService.updateUserData",{TD_ChatReferrer_PageName:pageInfo.TD_ChatReferrer_PageName,TD_ChatReferrer_Url:pageInfo.TD_ChatReferrer_Url}).done((function(t){console.log("WebChatService updated user data successfully ")})).fail((function(t){console.log("User Data Update Failed",t.message)})),document.cookie="isGensysInfo = yes"}))}genesysAPI&&"undefined"!==genesysAPI&&""!==genesysAPI&&null!=genesysAPI?(genesysApiCall(),document.addEventListener("DOMContentLoaded",(function(){setTimeout((function(){genesysError(),genesysUserDataUpdate()}),2500)}))):console.log("Genesys chat widget is not available in this page.")}function init(){_initialize()}}();try{!0!==chatIconEnabled&&!1!==chatIconEnabled||""===_site_js_locationCookieMgt__WEBPACK_IMPORTED_MODULE_0__.a.getLocationCookie(_site_js_global__WEBPACK_IMPORTED_MODULE_1__.p)||cmpGenesys.init()}catch(t){console.log("genesys is not defined")}},function(t,e,n){"use strict";var i=n(7),r=n(5),o=n(0),a=n(3),c=n(1),s=n(10),l=function(){var t=["getProvinceData"];function e(t){var e=JSON.parse('{"'+t.split("|").join('","').split("=").join('":"')+'"}');if(JSON.parse(province_list).provinces.forEach((function(t){t.key.toUpperCase()===e.province.toUpperCase()&&(e.city=t.name)})),Object(o.U)()&&null===localStorage.getItem(o.I))r.a.cookieRemoveItem(o.p),l(d);else if(null===sessionStorage.getItem(o.L))l(h);else{var n={country:e.country,province:e.province,city:i.a.getProvinceName(e.province)};y(n),s.a.updateGeoLocReload(!1)}}function n(t,e){var n,i;""!==geoAPIEndPoint&&0!=JSON.parse(province_list).provinces.length&&(n={province:(i=Object(c.f)()).defaultProvince,city:i.defaultCity,country:"CA"},localStorage.setItem(o.h,JSON.stringify({province:i.defaultProvince.toLowerCase(),country:"CA".toLowerCase()})),e(n))}function l(e){var i,r,o,c,s=(i="",r=window.location.href.split("://"),o=r[0],c=(r=r[1].split("/"))[0],geoAPIEndPoint&&""!==geoAPIEndPoint&&""!==o&&""!==c&&""!==geoLocationLang&&(geoAPIEndPoint===t[0]?i=o+"://"+c+"/"+geoLocationLang+"/"+geoAPIEndPoint:""!==targetedCountryName&&(i=o+"://"+c+"/"+targetedCountryName+"/"+geoLocationLang+"/"+geoAPIEndPoint)),i);""!==s&&Object(a.a)(s,"GET",u,n,"",e)}function u(t,e){e(t)}function d(t){m(t),x(t);var e=window.location.hostname.indexOf("td.com")>
1-1?"td.com":window.location.hostname;r.a.cookieRemoveItem(o.i,"/",e),p(e)?s.a.updateGeoLocReload(!0):s.a.updateGeoLocReload(!1)}function h(t){x(t);var e=i.a.getLocationCookie(o.p),n=JSON.parse('{"'+e.split("|").join('","').split("=").join('":"')+'"}');y({country:n.country,province:n.province,city:i.a.getProvinceName(n.province)}),s.a.updateGeoLocReload(!1)}function f(t){m(t);var e=window.location.hostname.indexOf("td.com")>-1?"td.com":window.location.hostname;r.a.cookieRemoveItem(o.i,"/",e),p(e)?s.a.updateGeoLocReload(!0):s.a.updateGeoLocReload(!1)}function p(t){return t.indexOf("tdinsurance.com")>-1||t.indexOf("tdassurance.com")>-1}function m(e){var n;""!==geoAPIEndPoint&&geoAPIEndPoint!==t[0]&&(e={country:e.country_code,province:e.region_code,city:e.city});try{if(province&&"true"===personalizationEnabled){var a=province.split("/");e.province=a[1],e.city=i.a.getProvinceName(a[1])}}catch(t){console.log(t.message)}localStorage.setItem(o.d,e.country.toLowerCase());var s=function(){var t;t=Object(o.U)()?Object(o.V)():"/";return t}();if(e.country.toUpperCase()==="CA".toUpperCase()||0===JSON.parse(province_list).provinces.length){var l="province="+e.province.toLowerCase()+"|city="+e.city.toLowerCase()+"|country="+e.country.toLowerCase();g(e.province),r.a.cookieSetItem(o.p,l,i.a.getCookieExpirydate(),"",!0,s),r.a.cookieSetItem(o.g,l,i.a.getCookieExpirydate()),localStorage.setItem(o.h,JSON.stringify({province:e.province.toLowerCase(),country:e.country.toLowerCase()}))}else if(e.country.toUpperCase()==="US".toUpperCase()){var u="province="+(n=Object(c.f)()).defaultProvince.toLowerCase()+"|city="+n.defaultCity.toLowerCase()+"|country="+"CA".toLowerCase();g(n.defaultProvince),r.a.cookieSetItem(o.p,u,i.a.getCookieExpirydate(),"",!0,s),r.a.cookieSetItem(o.g,u,i.a.getCookieExpirydate()),localStorage.setItem(o.h,JSON.stringify({province:e.province.toLowerCase(),country:e.country.toLowerCase()}))}else{var d="province="+(n=Object(c.f)()).defaultProvince.toLowerCase()+"|city="+n.defaultCity.toLowerCase()+"|country="+"CA".toLowerCase();g(n.defaultProvince),r.a.cookieSetItem(o.p,d,i.a.getCookieExpirydate(),"",!0,s),r.a.cookieSetItem(o.g,d,i.a.getCookieExpirydate()),localStorage.setItem(o.h,JSON.stringify({province:n.defaultProvince.toLowerCase(),country:"CA".toLowerCase()}))}document.dispatchEvent(new Event("geoLocationCookieSet"))}function g(t){var e=r.a.cookieGetItem(o.s);province||e||!t||"true"!==personalizationEnabled||(r.a.cookieSetItem(o.s,t.toUpperCase()),s.a.updateProvinceReload(!0))}function y(t){!0===provinceChangeMsg?function(t){var e;if(null!==sessionStorage.getItem(o.L)){if((e=JSON.parse(sessionStorage.getItem(o.L))).type)if(e.type===o.M.PROVINCECHANGE)document.querySelector(".cmp-geo-location__provinceChange")&&b("cmp-geo-location__provinceChange",t.city);else if(e.type===o.M.OUTOFCANADA){document.querySelector(".cmp-geo-location__countryChange")&&b("cmp-geo-location__countryChange",t.city)}else e.type===o.M.NOPROVINCECHANGE&&v(t)}}(t):v(t)}function v(t){t.country.toUpperCase()==="CA".toUpperCase()?b("cmp-geo-location__insideCanada",t.city):b("cmp-geo-location__outsideCanada",t.city)}function b(t,e){for(var n=document.querySelector(".cmp-geo-location__container").children,i=0;i<n.length;i++){if(n[i].classList.contains(t)){n[i].classList.remove("cmp-geo-location__toggle--hide");var r=document.querySelector("."+t);(r=r.querySelector(".cmp-geo-location__province--name")).innerHTML=e+"."}}}function x(t){try{if(province&&"true"===personalizationEnabled){var e=province.split("/");t.province=e[1],t.city=i.a.getProvinceName(e[1])}}catch(t){console.log(t.message)}var n=i.a.getLocationCookie(o.p);if(null===n||""===n)sessionStorage.setItem(o.L,JSON.stringify({type:o.M.NOPROVINCECHANGE,manual:"false"}));else{var r=JSON.parse('{"'+n.split("|").join('","').split("=").join('":"')+'"}');t.city=t.city.toLowerCase(),t.country=t.country.toLowerCase(),t.province=t.province.toLowerCase(),JSON.stringify(r)===JSON.stringify(t)?sessionStorage.setItem(o.L,JSON.stringify({type:o.M.NOPROVINCECHANGE,manual:"false"})):r.country===t.country?sessionStorage.setItem(o.L,JSON.stringify({type:o.M.PROVINCECHANGE,manual:"false"})):sessionStorage.setItem(o.L,JSON.stringify({type:o.M.OUTOFCANADA,manual:"false"}))}}return{init:function(){if(""!==geoAPIEndPoint){var t=document.querySelectorAll(".".concat("cmp-geo-location",':not([data-component-state="initialized"])'));if(t.length>
10)t.forEach((function(t){!function(t){var n=i.a.getLocationCookie(o.p);null===n||""===n?(document.addEventListener("geoLocationCookieSet",(function(){e(n=i.a.getLocationCookie(o.p))})),l(d)):e(n)}(),t.setAttribute("data-component-state","initialized")}));else{var n=i.a.getLocationCookie(o.p);null===n||""===n?l(f):Object(o.U)()&&null===localStorage.getItem(o.I)?(r.a.cookieRemoveItem(o.p),l(f)):s.a.updateGeoLocReload(!1)}}else s.a.updateGeoLocReload(!1)}}}();"loading"!==document.readyState?l.init():document.addEventListener("DOMContentLoaded",l.init)},function(t,e,n){"use strict";var i;function r(){i=new google.maps.Map(document.getElementById("map"),{center:{lat:40.9533,lng:12.1883},zoom:2.19,mapTypeControl:!1,draggable:!1,scaleControl:!1,scrollwheel:!1,navigationControl:!1,streetViewControl:!1,disableDefaultUI:!0,mapTypeId:google.maps.MapTypeId.ROADMAP,styles:[{elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"administrative",stylers:[{color:"#CCCCCC"}]},{featureType:"administrative",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.neighborhood",stylers:[{visibility:"off"}]},{featureType:"landscape",stylers:[{color:"#CCCCCC"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"road",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",stylers:[{color:"#CCCCCC"},{visibility:"off"}]},{featureType:"water",stylers:[{color:"#ffffff"}]}]}),o()}var o=function(){document.querySelectorAll(".cmp-global-mapData").forEach((function(t){var e=t.getAttribute("lat"),n=t.getAttribute("long"),r=t.getAttribute("location"),o=t.getAttribute("path"),a=t.getAttribute("icon"),c={lat:parseFloat(e),lng:parseFloat(n)};new google.maps.Marker({position:c,map:i,icon:a,labelContent:"View Website >",title:"View Website >",labelInBackground:!0,label:{text:r,fontSize:"15",color:"#1c1c1c",className:"marker-positioning",fontFamily:"TD Graphik Medium"}}).addListener("click",(function(t){window.open(o,"_blank").focus()}))}))},a=function(){var t;document.getElementById("map")&&((t=document.createElement("script")).async=!0,t.defer=!0,t.src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDDltnXj_rKmINb8sYTs1kS02HevWiLfPE&callback=initMap",document.body.appendChild(t),window.initMap=r)};"loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)},function(t,e,n){"use strict";var i=n(1),r=n(0),o=n(17),a=n(28),c=n(11),s=n(2);function l(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var d=[],h="",f="",p="",m=[],g=[],y="",v="",b="",x=function(){function t(t){var e=document.body,n=document.createElement("div");(n.classList.add("cmp-global-search-result__overlay"),n.classList.add("cmp-global-search-result__closeSidebar"),document.querySelector("#main"))&&document.querySelector("#main").appendChild(n);var u=JSON.parse(t.querySelector("#MindBreezeData").value),x=(u.truncateResultsAfter,u.apiURL),_=u.clientID,S=u.searchCategories,w=u.searchResultsCountPerPage,A=u.predictiveSearchErrorMessage,E=u.seeAllResultsLabelText,L=u.predictiveSearchLabelText,k=u.recentSearchLabelText,C=u.searchsuggestiontabsLabelText,T=u.searchclosebtnLabelText,M=u.PredictiveErrormsgsecondLine,q=u.searchPageIconList,I=JSON.parse(t.querySelector("#SearchPaginationData").value),O=I.PreviousPageLabelText,P=I.NextPageLabelText,N=I.ActivePageLabelText,D=I.GoToPageNumberLabelText,B=I.ChipsButtonLabelText,j=I.RecentVisitsLabelText;!function(t){var e=document.getElementById("cmp-global-search-result-filter");if(!e)return;e.innerHTML="",t.forEach((function(t){var n=document.createElement("li");n.setAttribute("role","tab");var i=t.categoryTag+"search-tab-desktop";n.setAttribute("id",i),n.setAttribute("aria-selected","false"),n.setAttribute("tabindex","-1"),n.innerHTML=t.categoryLabel,e.appendChild(n),n.addEventListener("click",(function(n){xt("show"),h=i,p=t.categoryTag,f=t.categoryLabel,ht(h,e),o.a.getSearchResult(x,V,R,geoLocationLang,_,t.categoryTag,null,null,tt,ut,g),xt("hide")}))})),dt(e)}(S);var R=parseInt(w),H=t,z=window.location.search,F=new URLSearchParams(z),G=F.get("query")||F.get("question"),W=i.g.removeHtmlTag(G),U=F.get("tab"),Y=encodeURIComponent(W),V=decodeURIComponent(Y),X=document.getElementById("cmp-fp-search"),$=document.querySelector("#cmp-global-search-best-answer__no-answer"),K=document.querySelector("#cmp-global-search-server-error");y=A,v=E;document.querySelectorAll(".cmp-global-search-result__openMenubar").forEach((function(t){t.addEventListener("click",(function(t){ft(t)})),t.addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||ft(t)}))}
1)),document.querySelectorAll(".cmp-global-search-result__closeSidebar").forEach((function(t){t.addEventListener("click",(function(t){pt(t)})),t.addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||pt(t)}))})),function(){if(document.querySelector("#cmp_global_search_result_sidebar")){var t=document.querySelector("#cmp_global_search_result_sidebar"),e=t.querySelectorAll("fieldset");m=[],e.forEach((function(t){m.push(t.id),t.querySelectorAll(".radio-btn-span").forEach((function(t){t.setAttribute("aria-hidden","true")}))}));for(var n=t.querySelectorAll("input[type=radio]"),i=function(t){n[t].addEventListener("focus",(function(e){n[t].parentElement.classList.add("active-label")})),n[t].addEventListener("blur",(function(e){n[t].parentElement.classList.remove("active-label")}))},r=0;r<n.length;r++)i(r);document.querySelector("#global-search-result-apply-btn").addEventListener("click",yt),document.querySelector("#global-search-result-clear-btn").addEventListener("click",(function(t){document.querySelector("#filter-chip-section").style.display="none",bt()}))}}(),function(t){console.log(t),window.tms_tag=window.tms_tag||[],tms_tag.push({event:"searchPageLoad",search:{term:t,engine:"search-navigation"}})}(V),Q(null,null,V,g);var J=window.location.origin+window.location.pathname;function Z(){0===c.a.mindBreezeResponseStatus?Object(s.j)($):1===c.a.mindBreezeErrorStatus&&(Object(s.j)(K),K&&K.classList.remove("hidden"))}function Q(t,e,n,i){if("null"!=n){X&&(X.value=n);var r=document.querySelector("#cmp-global-search-close");r&&X&&X.value.length>0&&(r.style.display="block");var a=document.getElementById("cmp-global-search-result-filter");if(X||a){for(var c=0;c<S.length;c++)null!=U?S[c].categoryTag.toLowerCase()==U.toLocaleLowerCase()&&(o.a.getSearchResult(x,n,R,geoLocationLang,_,S[c].categoryTag,t,e,tt,ut,i),h=S[c].categoryTag+"search-tab-desktop",p=S[c].categoryTag,f=S[c].categoryLabel,ht(S[c].categoryTag+"search-tab-desktop",document.getElementById("cmp-global-search-result-filter"))):0==c&&(o.a.getSearchResult(x,n,R,geoLocationLang,_,S[c].categoryTag,t,e,tt,ut,i),h=S[c].categoryTag+"search-tab-desktop",p=S[c].categoryTag,f=S[c].categoryLabel,ht(S[c].categoryTag+"search-tab-desktop",document.getElementById("cmp-global-search-result-filter")));xt("hide")}else{o.a.getSearchResult(x,n,R,geoLocationLang,_,"",t,e,tt,ut,null),xt("hide"),document.querySelector(".cmp-search-showing-count p").classList.add("tdam-result-text")}}else{var s=document.querySelector("#cmp-global-search-best-answer__no-answer");s.classList.remove("hidden"),document.querySelector(".cmp-search-showing-count")&&(document.querySelector(".cmp-search-showing-count").style.display="none"),s&&(s.querySelector("#cmp-global-no-aswer-suggetion").style.display="none"),xt("hide")}}function tt(t,e){if(H.classList.remove("hidden"),t.results&&0!==t.results.length){if(t.results.length>=1){$.classList.add("hidden"),c.a.setMindBreezeStatus(1),H.querySelector(".cmp-global-search-result-mindBreeze__questionAnswerSection").innerHTML="",t.results.forEach((function(t){!function(t,e){var n=document.createElement("div");n.classList.add("cmp-global-search-result-mindBreeze__questionAnswer");var r,o,a,c,s,l,u,d,h,p=e.querySelector(".cmp-global-search-result-mindBreeze__questionAnswerSection").appendChild(n);l="",s="",u="",d="",h="";var m="";if(p){if(t.properties.forEach((function(t){"title"===t.id?r=i.g.decodeHtmlEntity(t.data[0].html):"content"===t.id?o=i.g.decodeHtmlEntity(t.data[0].html):"action_0"===t.id?a=t.data[0].value.href:"extension"===t.id?c="pdf"===t.data[0].value.str:"TimetoRead"===t.id?u=t.data[0].value.str?t.data[0].value.str:"":"InsightsAuthor"===t.id?l=t.data[0].value.str?t.data[0].value.str:"":"PublishedDate"===t.id?s=t.data[0].value.str?t.data[0].value.str:"":"InsightsCategory"===t.id?d=t.data[0].value.str?t.data[0].value.str:"":"InsightsType"===t.id&&(h=t.data[0].value.str?t.data[0].value.str:"",console.log("mediaType",h))})),h){var y;""!=(y=function(t){var e="";return q.forEach((function(n){n.iconName===t&&(e=n.iconClass,console.log(e))})),e}
1(h))&&(m="td-icon td-icon-"+y)}p.innerHTML=!0===c?'<div class="cmp-global-search-result--container-second" >\n <h3 class="cmp-global-search-result-mindBreeze__title">\n <span class="td-icon td-icon-pdf" style="margin-right:5px" aria-hidden="true"></span><p style="display:inline-flex;align-items: center;"><a class="cmp-global-search-result-mindBreeze__title-link" href="'.concat(a,'" target="_blank">').concat(r,'</a><span class="td-icon td-icon-rightCaret" aria-hidden="true"></span></p>\n </h3>\n </div>'):'<div class="cmp-global-search-result--container-second" > <div style="display:'+(""==d?"none":"block")+'" class="cmp-global-search-result-mindBreeze__answer cmp-text"> <p class="cmp-global-search-result--tagname"><b>'+d+'</b></p> </div> <div style="display:'+(""==s?"none":"block")+'" class="cmp-global-search-result-mindBreeze__answer cmp-text"> <p class="cmp-global-search-result--date">'+s+'</p> </div> <h3 class="cmp-global-search-result-mindBreeze__title"> <span style="display:'+(""==m?"none":"inline-flex")+';margin-right:5px" class="'+m+'" aria-hidden="true"></span><p style="display:inline-flex;align-items: center;"><a class="cmp-global-search-result-mindBreeze__title-link" href="'+a+'"> '+r+' </a><span class="td-icon td-icon-rightCaret" aria-hidden="true"></span></p> </h3> <div class="cmp-global-search-result-mindBreeze__answer cmp-text cmp-global-search-result--description"> <p>'+o+'</p> </div> <div style="display:'+(""==u?"none":"block")+'" class="cmp-global-search-result-mindBreeze__answer cmp-text cmp-global-search-result--time"> <p><span style="display:'+(""==h?"none":"inline-flex")+'"><b>'+h+' </b></span> <span aria-hidden="true" class="cmp-search-clock td-icon td-icon-clock" aria-label="clock icon"></span> '+u+'</p> </div> <div style="display:'+(""==l?"none":"block")+'" class="cmp-global-search-result-mindBreeze__answer cmp-text"> <p class="cmp-global-search-result--author"><b>'+l+"</b></p> </div> </div>";var v=p.querySelectorAll(".cmp-global-search-result-mindBreeze__title");v&&v.forEach((function(t){var e=t.querySelector("a");e&&e.addEventListener("click",(function(t){console.log("event link",t),function(t){b=g.length>0?f+" | "+g.join(" | "):f;window.tms_tag=window.tms_tag||[],tms_tag.push({event:"linkClick",link:{name:t,type:"link",product:"tdgis:public",searchFilters:b}})}(e.textContent)}))}))}}(t,H),function(){for(var t=document.getElementsByClassName("cmp-global-search-result-mindBreeze__answer"),e=0;e<t.length;e++)for(var n=t[e].getElementsByTagName("em"),i=0;i<n.length;i++)n[i].classList.add("highLightSearchWord")}()}))}}else if(lt(0,0),H.querySelector(".cmp-global-search-result-mindBreeze__questionAnswerSection").innerHTML="",c.a.setMindBreezeStatus(0),Z(),console.log($.querySelector("#cmp-global-no-aswer-suggetion")),$.querySelector("#cmp-global-no-aswer-suggetion")){console.log(t.alternatives);var n=t.alternatives.filter((function(t){return"query_spelling"==t.id}));if(n.length>0){$.querySelector("#cmp-global-no-aswer-suggetion").style.display="block";var r,o=$.querySelector("#cmp-global-no-aswer-suggetion-key");o.innerHTML=n[0].entries[0].html,r=p?"".concat(J,"?query=").concat(_t(n[0].entries[0].query_expr.unparsed),"&tab=").concat(_t(p)):"".concat(J,"?query=").concat(_t(n[0].entries[0].query_expr.unparsed)),c
1onsole.log(r),o.setAttribute("href",r)}else $.querySelector("#cmp-global-no-aswer-suggetion").style.display="none";console.log("query_suggestion_object",n)}if(document.getElementById("global-search-result-list")){var a=document.getElementById("global-search-result-list"),s=document.getElementById("main"),l=document.getElementById("pagination");d=a.querySelectorAll(".cmp-global-search-result-mindBreeze__questionAnswer");var u=document.getElementById("gsr-lastDiv");new IntersectionObserver(ct,at).observe(u);var h=document.getElementById("gsr-view-all");h.style.display="none",d.length>10&&(h.style.display="block"),h&&h.addEventListener("click",(function(t){ot=!0,l.style.display="none",h.style.display="none",it(d,a,10,st.page),nt(d,a,10,1),s&&(s.scrollIntoView({behavior:"smooth",block:"start"}),s.focus()),setTimeout((function(){var t=document.querySelector("#cmp-global-search-result-filter").querySelector(".active-global-search-result-tab");console.log(t),t&&t.focus()}),200)})),function(t,e,n){document.getElementById("global-search-result-list"),document.getElementById("pagination");var i=Math.ceil(t.length/n);st.Init(document.getElementById("pagination"),{size:i,page:1,step:1})}(d,0,10)}}function et(t){rt=!0;var e=document.getElementById("global-search-result-list");!function(t,e,n){for(var i=t+10,r=t;r<i;r++){e[r].classList.add("active-global-search-result")}document.getElementById("gsr-lastDiv");rt=!1}(e.querySelectorAll(".active-global-search-result").length,t)}function nt(t,e,n,i){var r,o=n*--i,a=o+n;lt((r=a>t.length?t.length:a)-o,t.length);for(var c=o;c<r;c++){t[c].classList.add("active-global-search-result")}}function it(t,e,n,i){var r,o=n*--i,a=o+n;r=a>t.length?t.length:a;for(var c=o;c<r;c++){t[c].classList.remove("active-global-search-result")}}Object(a.a)(x,_,5,geoLocationLang,X,"cmp-global-search-result__suggestion-dropdown","cmp-global-search-close",Q,J,S,y,v,null,L,k,C,T,!0,M,j,q),c.a.registerCallBack(Z);var rt=!1,ot=!1,at={root:null,rootMargin:"0px",thershold:1},ct=function(t,e){t.forEach((function(t){"gsr-lastDiv"===t.target.id&&t.isIntersecting&&!rt&&ot&&setTimeout((function(){et(d)}),300)}))};var st={code:"",Extend:function(t){t=t||{},st.size=t.size||0,st.page=t.page||1,st.step=t.step||10},Add:function(t,e){if(st.size>1)for(var n=t;n<e;n++)st.code+='<a role="link" tabindex="0" aria-label="'+D+" "+n+'">'+n+"</a>"},Last:function(){st.code+='<i>...</i><a role="link" tabindex="0" aria-label="'+D+" "+st.size+'">'+st.size+"</a>"},First:function(){st.code+='<a role="link" tabindex="0" aria-label="'+D+' 1">1</a><i>...</i>'},Click:function(){it(d,document.getElementById("global-search-result-list"),10,st.page),st.page=+this.innerHTML,st.Start();var t=document.getElementById("main");t&&t.scrollIntoView(),setTimeout((function(){var t=document.querySelector("#cmp-global-search-result-filter").querySelector(".active-global-search-result-tab");console.log(t),t&&t.focus()}),200)},Prev:function(){it(d,document.getElementById("global-search-result-list"),10,st.page),st.page--,st.page<1&&(st.page=1),st.Start();var t=document.getElementById("main");t&&t.scrollIntoView(),setTimeout((function(){var t=document.querySelector("#cmp-global-search-result-filter").querySelector(".active-global-search-result-tab");console.log(t),t&&t.focus()}),200)},Next:function(){it(d,document.getElementById("global-search-result-list"),10,st.page),st.page++,st.page>st.size&&(st.page=st.size),st.Start();var t=document.getElementById("main");t&&t.scrollIntoView(),setTimeout((function(){var t=document.querySelector("#cmp-global-search-result-filter").querySelector(".active-global-search-result-tab");console.log(t),t&&t.focus()}),200)},Bind:function(){for(var t=st.e.getElementsByTagName("a"),e=0;e<t.length;e++){if(+t[e].innerHTML===st.page){t[e].className="active";var n=t[e].getAttribute("aria-label").split(" "),i=n[n.length-1];t[e].setAttribute("aria-label",N+" "+i)}t[e].addEventListener("click",st.Click,!1),t[e].addEventListener("keyup",(function(t){if("Enter"==t.code||"Space"==t.code){st.Click(),st.page=+this.innerHTML,st.Start();var e=document.getElementById("main");e&&e.scrollIntoView(),setTimeout((function(){var t=document.querySelector("#cmp-global-search-result-filter").querySelector(".active-global-search-result-tab");console.log(t),t&&t.focus()}),200)}}),!1)}},Finish:function(){st.e.innerHTML=st.code,st.code="",st.Bind()}
1,Start:function(){st.size<4?st.Add(1,st.size+1):st.page<2*st.step+1?st.size>4?(st.Add(1,2*st.step+2),st.Last()):st.Add(1,st.size+1):st.page>st.size-2*st.step?st.size>4&&st.page>4?(st.First(),st.Add(st.size-2,st.size+1)):st.Add(1,st.size+1):(st.page>3?st.First():st.Add(1,st.page),st.page-st.step==2?st.Add(3,st.page+st.step+1):st.size-st.page==2?4==st.page&&6==st.size?st.Add(3,st.size+1):st.Add(st.page-st.step,st.size+1):st.Add(st.page-st.step,st.page+st.step+1),st.size-st.page>2&&st.Last()),nt(d,document.getElementById("global-search-result-list"),10,st.page),st.Finish()},Buttons:function(t){if(st.size>3){var e=t.getElementsByTagName("a");e[0].addEventListener("click",st.Prev,!1),e[1].addEventListener("click",st.Next,!1),e[0].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||st.Prev()}),!1),e[1].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||st.Next()}),!1)}},Create:function(t){var e=[];e=st.size>3?['<a role="link" aria-label="'+O+'" tabindex="0" class="globalsearchresultanchorprev td-icon td-icon-leftCaret"></a>',"<span></span>",'<a role="link" aria-label="'+P+'" tabindex="0" class="globalsearchresultanchor td-icon td-icon-rightCaret"></a>']:["<span></span>"],t.innerHTML=e.join(""),st.e=t.getElementsByTagName("span")[0],st.Buttons(t)},Init:function(t,e){st.Extend(e),st.Create(t),st.Start()}};function lt(t,e){document.querySelector("#cmp-results-records")&&(document.querySelector("#cmp-results-records").innerHTML=t),document.querySelector("#cmp-results-records-outof")&&(document.querySelector("#cmp-results-records-outof").innerHTML=e),document.querySelector("#cmp-results-input")&&(document.querySelector("#cmp-results-input").innerHTML=V),document.querySelector("#cmp-results-tabValue")&&(document.querySelector("#cmp-results-tabValue").innerHTML=f),function(t){if(!G)return;if(!document.querySelector(".cmp-header-site-navigation-links__recent-searches, .cmp-site-utility-mobile__section-right__recent-searches"))return;!isNaN(t)&&t>0&&function(t){var e;if(!t)return;var n=document.documentElement.lang.toLowerCase().split("-")[0],i="td_recent_searches_".concat(n),r=parseInt(null===(e=document.querySelector("[data-max-recent-searches]"))||void 0===e?void 0:e.getAttribute("data-max-recent-searches"));try{var o=JSON.parse(localStorage.getItem(i)||"[]"),a=[t].concat(l(o.filter((function(e){return e.toLowerCase()!==t.toLowerCase()})))).slice(0,r);localStorage.setItem(i,JSON.stringify(a))}catch(t){console.warn("Failed to save recent search:",t)}}(G)}(e)}function ut(t){c.a.setMindBreezeErrorStatus(1),Z()}function dt(t){for(var e=t.getElementsByTagName("li"),n=function(t){e[t].addEventListener("focus",(function(n){e[t].addEventListener("keydown",(function(n){if(n.keyCode===r.m.ARROW_RIGHT||n.keyCode===r.m.ARROW_LEFT||n.keyCode===r.m.ARROW_UP||n.keyCode===r.m.ARROW_DOWN){var i=e[t];if(n.keyCode===r.m.ARROW_RIGHT||n.keyCode===r.m.ARROW_DOWN){var o=i.nextElementSibling;o.focus();var a=o.getAttribute("id");document.getElementById(a).click()}else{var c=i.previousElementSibling;c.focus();var s=c.getAttribute("id");document.getElementById(s).click()}}}))}))},i=0;i<e.length;i++)n(i)}function ht(t,e){e.querySelectorAll("li").forEach((function(e){e.getAttribute("id")==t?(e.classList.add("active-global-search-result-tab"),e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")):(e.classList.remove("active-global-search-result-tab"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false"))}))}function ft(t){var n=document.querySelector("#"+t.currentTarget.getAttribute("aria-controls")),i=document.querySelector(".cmp-global-search-result--sidebar");if(i.classList.add("cmp-global-search-result__show-menu-bar"),document.querySelector(".cmp-global-search-result__overlay").classList.add("cmp-global-search-result__show-overlay"),gt(i,!0),e.classList.add("noscroll"),e.classList.remove("td-no-focus-outline"),n.style.display="block",setTimeout((function(){n.classList.add("cmp-global-search-result__show-menu")}),100),document.getElementById("cmp_global_search_result_sidebar")){var r=document.getElementById("cmp-footer__start");if(r)r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex","-1"),r.querySelectorAll(".cmp-footer__social-link").forEach((function(t){t.setAttribute("tabindex","-1")}))}!function(){var t=document.getElementById("global-search-result-clear-btn"),e=d
1ocument.querySelector(".cmp-global-search-result--closeBtn"),n=document.querySelector(".cmp-global-search-focus-elem");n&&(setTimeout((function(){n.focus()}),200),n.addEventListener("blur",(function(t){t.relatedTarget&&(t.relatedTarget.classList.contains("cmp-global-search-result--closeBtn")||e.focus())})),n.addEventListener("mouseout",(function(t){t.relatedTarget&&(t.relatedTarget.classList.contains("cmp-global-search-result--closeBtn")||e.focus())})));e&&(e.addEventListener("blur",(function(t){t.relatedTarget&&t.relatedTarget.classList.contains("cmp-global-search-focus-elem")&&e.focus()})),e.addEventListener("mouseout",(function(t){t.relatedTarget&&t.relatedTarget.classList.contains("cmp-global-search-focus-elem")&&e.focus()})));t&&(t.addEventListener("blur",(function(t){t.relatedTarget&&(t.relatedTarget.classList.contains("cmp-global-search-result--filter-dropdown--apply-btn")||e.focus())})),t.addEventListener("mouseout",(function(t){t.relatedTarget&&(t.relatedTarget.classList.contains("cmp-global-search-result--filter-dropdown--apply-btn")||e.focus())})))}()}function pt(t){var n=document.querySelector(".cmp-global-search-result--sidebar");document.querySelector(".cmp-global-search-result__overlay").classList.remove("cmp-global-search-result__show-overlay"),setTimeout((function(){document.querySelector(".cmp-global-search-result--sidebar").classList.remove("cmp-global-search-result__show-menu-bar"),n.style.display="none",document.querySelector(".cmp-global-search-result-mindBreeze--container").querySelector('[aria-controls="'+n.id+'"]').focus()}),200),gt(n,!1),e.classList.remove("noscroll"),e.classList.remove("td-no-focus-outline"),n.classList.remove("cmp-global-search-result__show-menu");var i=document.getElementById("cmp-footer__start");i&&(i.removeAttribute("aria-hidden"),i.removeAttribute("tabindex"),i.querySelectorAll(".cmp-footer__social-link").forEach((function(t){t.removeAttribute("tabindex")})))}var mt=function(t,e){e?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")},gt=function(t,e){var n=document.querySelector("footer"),i=document.querySelector("header"),r=(document.querySelector("main"),document.querySelector(".cmp-global-search-best-answer__heading")),o=document.querySelector(".cmp-primary-header__logo-link");(null!==i&&(mt(i,e),e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")),t&&function(t,e){var n=t.parentElement.previousElementSibling;for(;n;)mt(n,e),e?n.setAttribute("aria-hidden",e):n.removeAttribute("aria-hidden"),n=n.previousElementSibling;var i=t.parentElement.nextElementSibling;for(;i;)mt(i,e),e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden"),i=i.nextElementSibling;var r=t.parentElement.parentElement.previousElementSibling;for(;r;)mt(r,e),r?r.setAttribute("aria-hidden",e):r.removeAttribute("aria-hidden"),r=r.previousElementSibling;var o=t.parentElement.parentElement.nextElementSibling;for(;o;)mt(o,e),e?o.setAttribute("aria-hidden",e):o.removeAttribute("aria-hidden"),o=o.nextElementSibling}(t,e),null!==n&&(mt(n,e),e?n.setAttribute("aria-hidden",e):n.removeAttribute("aria-hidden")),null!==r&&(mt(r,e),e?r.setAttribute("aria-hidden",e):r.removeAttribute("aria-hidden")),null!==o&&(mt(o,e),e?o.setAttribute("aria-hidden",e):o.removeAttribute("aria-hidden")),document.querySelector(".cmp-global-search-best-answer__heading")&&(mt(document.querySelector(".cmp-global-search-best-answer__heading"),e),e?document.querySelector(".cmp-global-search-best-answer__heading").setAttribute("aria-hidden",e):document.querySelector(".cmp-global-search-best-answer__heading").removeAttribute("aria-hidden")),document.querySelector(".cmp-global-search-result-pagination"))&&document.querySelector(".cmp-global-search-result-pagination").querySelectorAll("a").forEach((function(t){var n;n=t,e?n.setAttribute("tabindex","-1"):n.removeAttribute("tabindex","0"),t.setAttribute("aria-hidden",e)}))};function yt(){if(pt(),g=[],m.forEach((function(t){var e=document.querySelector("input[name="+t+"]:checked");e&&g.push(e.value)})),g.length>0){var t=document.querySelector("#cmp-global-search-result--count");t.innerHTML="",t.innerHTML="("+g.length+")",function(t){if(document.querySelector("#filter-chip-section")){var e=document.querySelector("#filter-chip-section");e.style.display="block";var n=e.querySelector(".cmp-global-search-result__chip-tabs");n.innerHTML="",t.forEach((function(t){var i=document.createElement("li");i.innerHTML=t+' <span tabindex="0" role="button" class="td-icon td-icon-close cmp-global-search-result__chip-close-btn"></span>',n.appendChild(i);var r=i.querySelector(".cmp-global-search-result__chip-close-btn"),o=B+" "+t;r.setAttribute("aria-label",o),r.addEventListener("click",(function(r){(console.log(i.nextElementSibling),i.nextElementSibling)?i.nextElementSibling.querySelector(".cmp-global-search-result__chip-close-btn").focus():i.previousElementSibling?i.previousElementSibling.querySelector(".cmp-global-search-result__chip-close-btn").focus():setTimeout((function(){var t=document.querySelector("#cmp-global-search-result-filter").querySelector(".active-global-search-result-tab");t&&t.focus()}),200);n.removeChild(i),vt(t,e)})),r.addEventListener("keyup",(function(r){if("Enter"==r.code||"
1Space"==r.code){if(i.nextElementSibling)i.nextElementSibling.querySelector(".cmp-global-search-result__chip-close-btn").focus();else if(i.previousElementSibling)i.previousElementSibling.querySelector(".cmp-global-search-result__chip-close-btn").focus();else setTimeout((function(){var t=document.querySelector("#cmp-global-search-result-filter").querySelector(".active-global-search-result-tab");t&&t.focus()}),200);n.removeChild(i),vt(t,e)}}))}));var i=e.querySelector(".cmp-global-search-result__chip-clear-btn");i.addEventListener("click",(function(t){setTimeout((function(){e.style.display="none",bt();var t=document.querySelector("#cmp-global-search-result-filter").querySelector(".active-global-search-result-tab");t&&t.focus()}),200)})),i.addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||setTimeout((function(){e.style.display="none",bt();var t=document.querySelector("#cmp-global-search-result-filter").querySelector(".active-global-search-result-tab");t&&t.focus()}),200)})),dt(e)}}(g),Q(null,null,V,g)}}function vt(t,e){var n=g.indexOf(t);g.splice(n,1),g.length<1&&(e.style.display="none");var i=document.querySelector("#cmp-global-search-result--count");i.innerHTML="",g.length>0&&(i.innerHTML="("+g.length+")"),Q(null,null,V,g),m.forEach((function(e){var n=document.querySelector("input[name="+e+"]:checked");n&&n.value==t&&(n.checked=!1)}))}function bt(){Q(null,null,V,g=[]),m.forEach((function(t){var e=document.querySelector("input[name="+t+"]:checked");e&&(e.checked=!1)})),document.querySelector("#cmp-global-search-result--count").innerHTML=""}function xt(t){if(document.getElementById("global-search-result-spinner")){var e=document.getElementById("global-search-result-spinner");e.style.display="show"==t?"block":"none"}}function _t(t){for(var e=new Array("&","'","Œ","œ","Š","š","Ÿ","ˆ","˜","–","—","‘","’","‚","“","”","„","†","‡","…","‰","‹","›","€","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","ø","ù","ú","û","ü","ý","þ","ÿ","¡","¤","¢","£","¥","¦","§","¨","©","ª","«","¬","®","™","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","×","÷"),n=new Array("&","'","Å","Å","Å ","Å¡","Ÿ","Ë","Ë","â","â","â","â","â","â","â","â","â ","â¡","â¦","â°","â¹","âº","â¬","Ã","Ã","Ã","Ã","Ã","Ã
","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","à ","á","â","ã","ä","Ã¥","æ","ç","è","é","ê","ë","ì","Ã","î","ï","ð","ñ","ò","ó","ô","õ","ö","ø","ù","ú","û","ü","ý","þ","ÿ","¡","¤","¢","£","Â¥","¦","§","¨","©","ª","«","¬","®","â¢","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","Ã","÷"),i=0;i<e.length;i++){var r=new RegExp(e[i],"g");t=t.replace(r,n[i])}return t}}return{init:function(){var e=document.querySelectorAll('.cmp-global-search-result-mindBreeze:not([data-component-state="initialized"])');e.length>0&&e.forEach((function(e){t(e),e.setAttribute("data-component-state","initialized")}))}}}();"loading"!==document.readyState?x.init():document.addEventListener("DOMContentLoaded",x.init)},function(t,e,n){"use strict";var i=n(0),r="",o="",a="",c="",s="",l="",u="",d=function(t){p(t);var e=document.getElementById("header-cookie-modal-checkbox-id");e.addEventListener("keyup",(function(t){t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||(console.log(t),e.click())})),e.addEventListener("click",(function(t){console.log("header-cookie-modal-checkbox-id")}));var n=document.querySelector("#header-cookie-madal-checkbox"),c=document.getElementById("gotositebtn"),l=document.querySelector("#cmp-droplist__selectedlocation"),u=document.querySelector("#cmp-droplist__selectedlanguague");(function(t){var e=document.getElementById("cmp-droplist__selectedlocation");e.innerHTML="";var n="",i=document.createElement("option");i.text="--- Please Select ---",i.value="",e.appendChild(i),t.forEach((function(t){t.countryLists.forEac
1h((function(t){var i=document.createElement("option");i.text=t.countryName,i.value=t.countryCode,e.appendChild(i),o?n=o:"yes"===t.countryActive&&(n=t.countryCode,a=t.countryCode,s=t.countryCode)}))})),e.value=n,b(n,t)}(t),l.addEventListener("change",(function(e){""===e.target.value?(c.disabled=!0,u.innerHTML="<option value=''>--- Please Select ---</option>",n.checked=!1):(b(e.target.value,t),s=e.target.value,n.checked=!1)})),n.addEventListener("change",(function(){this.checked?(e.setAttribute("aria-checked","true"),u.value&&l.value&&(c.disabled=!1)):(e.setAttribute("aria-checked","false"),c.disabled=!0)})),document.getElementById("dialog1"))&&document.getElementById("dialog1").querySelectorAll(".cmp-accordion__button").forEach((function(t){t.onclick=function(){var e=document.getElementById("modal-panel");"true"==e.getAttribute("aria-hidden")?(this.classList.add("cmp-accordion__button--expanded"),e.setAttribute("aria-hidden","false"),e.classList.remove("cmp-accordion__panel--hidden"),e.classList.add("cmp-accordion__panel--expanded"),e.style.display="block",t.setAttribute("aria-expanded",!0)):(this.classList.remove("cmp-accordion__button--expanded"),e.setAttribute("aria-hidden","true"),e.classList.remove("cmp-accordion__panel--expanded"),e.classList.add("cmp-accordion__panel--hidden"),e.style.display="none",t.setAttribute("aria-expanded",!1))},t.addEventListener("focus",(function(e){t.addEventListener("keyup",(function(t){var e=document.getElementById("modal-panel");t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||e.click()}))})),t.addEventListener("blur",(function(t){var n=document.getElementById("modal-panel").getAttribute("aria-hidden");"INPUT"!=t.relatedTarget.nodeName&&"true"==n&&e.focus()}))}));document.getElementById("cancelBtn")&&document.getElementById("cancelBtn").addEventListener("click",(function(t){var e,n;e=document.getElementById("cmp-droplist__selectedlocation").value,n=document.getElementById("cmp-droplist__selectedlanguague").value,document.getElementById("dialog1").innerHTML='<div class="cmp-dialog__details" style="padding-left:15px;padding-right:15px"> <div class="text"> <div class="cmp-text"> <h1 id="modalHeader" tabindex="-1" aria-label="Modal heading"></h1> </div> </div> <div class="cmp-dialog__body"> <div class="aem-Grid aem-Grid--12"> <div class="aem-GridColumn aem-GridColumn--default--6 aem-GridColumn--phone--12 cmp-nopadding"> <div class="cmp-header-cookie-modal--dropdown-container cmp-header-cookie-modal--margin-left"> <div class="cmp-text"> <div class="cmp-header-cookie-modal--location"> <label for="cmp-droplist__selectedlocation" id="modalLocation"></label> </div> </div> <div class="cmp-droplist__form-group"> <div class="cmp-droplist__select-container"> <select class="cmp-droplist__select" id="cmp-droplist__selectedlocation" name="selectlocation" data-id="1"></select> </div> </div> </div> </div> <div class="aem-GridColumn aem-GridColumn--default--6 aem-GridColumn--phone--12 cmp-nopadding"> <div class="cmp-header-cookie-modal--dropdown-container cmp-header-cookie-modal--margin-right"> <div class="cmp-text"> <div class="cmp-header-cookie-modal--location"> <label for="cmp-droplist__selectedlanguague" id="modalLanguage"></label> </div> </div> <div class="cmp-droplist__form-group"> <div class="cmp-droplist__select-container"> <select class="cmp-droplist__select" id="cmp-droplist__selectedlanguague" name="selectlanguage" data-id="1"> <option value="">--- Please Select ---</option> </select> </div> </div> </div> </div> </div> <div class="aem-Grid aem-Grid--12"> <div class="aem-GridColumn aem-GridColumn--default--6 aem-GridColumn--phone--12 cmp-nopadding" > <div class="cmp-header-cookie-modal--dropdown-container cmp-header-cookie-modal--margin-left"> <div class="cmp-header-cookie-modal--investor"> <label for="hcm-investortypelabel" id="modalInvestorType"></label> </div> </div > </div>
1 </div> <div class="aem-Grid aem-Grid--12" id="investorType" role="radiogroup" aria-label="investor type selection"> <div class="aem-GridColumn aem-GridColumn--default--6 aem-GridColumn--phone--12 cmp-nopadding-secondmodal-investors" > <label role="radio" for="Institutional" class="cmp-header-cookie-modal--investmentype-label newinvestortypeid" > <input type="radio" name="investoyTypeSelection" id="Institutional" value=""> <div class="cmp-header-cookie-modal--investmentype-label--text">Institutional</div></label> </div> </div> <div class="aem-Grid aem-Grid--12"> <div class="aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--phone--12 cmp-nopadding-secondmodal cmp-header-cookie-modal--for-tnc" style="display:none"> <div class="cmp-header-cookie-modal--accordion-container"> <div class="accordion"> <div id="modal-accordion" class="cmp-accordion" data-cmp-is="accordion" data-cmp-data-layer="{"accordion-d66e5c4a9d":{"shownItems":[],"@type":"core-components-examples/components/accordion","repo:modifyDate":"2018-12-07T12:12:10Z"}}" data-placeholder-text="false"> <div class="cmp-accordion__item" data-cmp-hook-accordion="item" data-cmp-data-layer="{"accordion-d66e5c4a9d-item-656f5a46b8":{"@type":"core-components-examples/components/accordion/item","dc:title":"Item 1"}}" id="accordion-d66e5c4a9d-item-656f5a46b8-1"> <p > <button class="cmp-accordion__button" aria-controls="modal-panel" data-cmp-hook-accordion="button" aria-expanded="false"> <span class="cmp-accordion__title" id="modalTermsNCondition"></span> <span class="cmp-accordion__icon"></span> </button> </p> <div data-cmp-hook-accordion="panel" role="region" id="modal-panel" class="cmp-accordion__panel cmp-accordion__panel--hidden" aria-labelledby="accordion-d66e5c4a9d-item-656f5a46b8-button-1" aria-hidden="true" style="display:none"> <div class="responsivegrid"> <div class="aem-Grid aem-Grid--12 aem-Grid--default--12 "> <div class="cmp-header-cookie-modal--accordion-content" id="cmp-text_termsNcondition"></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="cmp-header-cookie-modal--sticky"> <div class="aem-Grid aem-Grid--12" > <div class="aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--phone--12 cmp-nopadding-secondmodal"> <div class="cmp-header-cookie-modal--checkbox-container" style="display:none"> <label id="header-cookie-modal-checkbox-id" role="checkbox" tabindex="0" aria-checked="false" class="cmp-header-cookie-modal--tnc-checkbox-container"> <span class="td-label-content" tabindex="-1" id="modalTermsNConditionText">I have read and agree to the terms and conditions.</span> <input type="checkbox" tabindex="-1" aria-hidden="true" name="checkbox" id="header-cookie-madal-checkbox"> <span class="checkmark"></span> </label> </div> </div> </div> <div class="aem-Grid aem-Grid--12"> <div class="aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--phone--12 cmp-nopadding-secondmodal"> <div class="cmp-header-cookie-modal--button-container"> <button type="button" class="cmp-button" data-cmp-clickable="" disabled="disabled" id="gotositebtn"> <span class="cmp-button__text" id="modalGoToSite"></span> </button> </div> </div> </div>
1 </div> </div></div>',o=e,r=n,T(),A(),setTimeout((function(){navigator.userAgent.toLowerCase().indexOf(i.r.MAC)>-1&&document.getElementById("modalHeader").focus()}),400)}))},h=function(t){if(document.querySelector('[href^="#cmp-modal~dialog2"]')){var e=document.querySelector('[href^="#cmp-modal~dialog2"]'),n="";if(t.forEach((function(t){t.countryLists.forEach((function(t){n=t.content,t}))})),"true"!==m(n)&&!document.getElementById("TDW-Adchoices-en")&&!document.getElementById("TDW-Personalization-en")){e.click(),L("header-overlay-model-global"),M(),f(t);var i=document.getElementById("tdgis-main-container");if(i)i.parentElement.closest("footer").setAttribute("aria-hidden","false");var r=document.getElementById("cmp-footer__start");r&&(r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex","-1")),v()}}},f=function(t){var e=document.getElementById("cmp-text_termsNcondition"),n=document.getElementById("modalHeader"),i=document.getElementById("welcomHeader"),r=document.getElementById("modalLogo"),o=document.getElementById("modalTermsNCondition"),a=document.getElementById("modalTermsNConditionText"),c=document.getElementById("modalConfirm"),s=document.getElementById("modalDescription"),l=t[0].countryLists[0].languageLists[0];e.innerHTML=l.termsCondition,n.innerText=l.modelHeadline,s.innerText=l.shortdescription,o.innerText=l.termsConditionsLabel?l.termsConditionsLabel:"Terms & Conditions",a.innerText=l.termsConditionMandateText?l.termsConditionMandateText:"I have read and agree to the terms and conditions.",c.innerText=l.confirmButtonLabel?l.confirmButtonLabel:"Confirm",i&&(i.innerHTML=l.welcomeText?l.welcomeText:""),r&&(r.setAttribute("src",l.logo),r.setAttribute("alt",l.logoAltText),S(r,l.logo,l.logoMobile)),gotositebtn.addEventListener("click",(function(e){document.cookie=t[0].countryLists[0].content+"=true;path=/;"+k(),document.cookie="location="+t[0].countryLists[0].countryCode+";path=/;"+k(),document.cookie="language="+l.language+";path=/;"+k();var n=window.location.pathname;window.location=n}))},p=function(t){if(document.querySelector('[href^="#cmp-modal~dialog1"]')){var e=document.querySelector('[href^="#cmp-modal~dialog1"]'),n="";if(t.forEach((function(t){t.countryLists.forEach((function(t){"yes"===t.countryActive&&(n=t.content)}))})),"true"!==m(n)&&!document.getElementById("TDW-Adchoices-en")&&!document.getElementById("TDW-Personalization-en")){e.click(),L("header-overlay-model"),T();var i=document.getElementById("tdgis-main-container");if(i)i.parentElement.closest("footer").setAttribute("aria-hidden","false");var r=document.getElementById("cmp-footer__start");r&&(r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex","-1")),v()}}},m=function(t){var e;return(null===(e=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())||""};function g(t){var e,n=document.getElementById("cmp-droplist__selectedlocation"),i=document.getElementById("cmp-droplist__selectedlanguague");s=n.value,t.forEach((function(t){t.countryLists.filter((function(t){t.countryCode===n.value&&(e=t.content)}))})),document.cookie=e+"=true;path=/;"+k(),document.cookie="location="+n.value+";path=/;"+k(),document.cookie="language="+i.value+";path=/;"+k()}function y(t,e){document.cookie=t+"="+e+";domain=.td.com;path=/;"+k()}function v(){var t=m("TDB_ENSIGHTEN_PRIVACY_Analytics"),e=m("TDB_ENSIGHTEN_PRIVACY_Personalization"),n=m("TDB_ENSIGHTEN_PRIVACY_ThirdParty"),i=m("TDB_ENSIGHTEN_PRIVACY_BANNER_LOADED"),r=m("TDB_ENSIGHTEN_PRIVACY_BANNER_VIEWED"),o=m("GDPR"),a=m("CPRA");"true"==o||"true"==a?("true"!==t&&y("TDB_ENSIGHTEN_PRIVACY_Analytics","0"),"true"!==e&&y("TDB_ENSIGHTEN_PRIVACY_Personalization","0"),"true"!==n&&y("TDB_ENSIGHTEN_PRIVACY_ThirdParty","0")):("true"!==t&&y("TDB_ENSIGHTEN_PRIVACY_Analytics","1"),"true"!==e&&y("TDB_ENSIGHTEN_PRIVACY_Personalization","1"),"true"!==n&&y("TDB_ENSIGHTEN_PRIVACY_ThirdParty","1")),"true"!==i&&y("TDB_ENSIGHTEN_PRIVACY_BANNER_LOADED","1"),"true"!==r&&y("TDB_ENSIGHTEN_PRIVACY_BANNER_VIEWED","1")}function b(t,e){var n=document.getElementById("cmp-droplist__selectedlanguague"),i=document.getElementById("cmp-droplist__selectedlocation"),o=document.getElementById("cmp-text_termsNcondition"),d=document.getElementById("modalHeader"),h=document.getElementById("welcomHeader"),f=document.getElementById("modalLogo"),p=document.getElementById("modalLocation"),m=document.getElementById("modalLanguage"),y=document.getElementById("modalTermsNCondition"),v=document.getElementById("modalTermsNConditionText"),b=document.getElementById("gotositebtn");n.innerHTML="";var w,A=document.createElement("option");if(A.text="--- Please Select ---",A.value="",n.appendChild(A),e.forEach((function(e){e.countryLists.filter((function(e){e.countryCode===t&&(w=e)}))}
1)),w&&w.languageLists){if(w.languageLists.forEach((function(t){var w=document.createElement("option");if(w.text=t.language,w.value=t.language,n.appendChild(w),r){if(r===t.language){if(n.value=t.language,n.disabled=!1,o.innerHTML=t.investorData.termsCondition,d.innerText=t.modelHeadline,p.innerText=t.locationLabel?t.locationLabel:"Location",m.innerText=t.languageLabel?t.languageLabel:"Language",i.setAttribute("aria-label",t.locationLabel?t.locationLabel:"Location"),n.setAttribute("aria-label",t.languageLabel?t.languageLabel:"Language"),y.innerText=t.termsConditionsLabel?t.termsConditionsLabel:"Terms & Conditions",v.innerText=t.termsConditionMandateText?t.termsConditionMandateText:"I have read and agree to the terms and conditions.",u=t.languageURL,l=t.language,h&&(h.innerText=t.welcomeText?t.welcomeText:""),f&&(f.setAttribute("src",t.logo),f.setAttribute("alt",t.logoAltText),S(f,t.logo,t.logoMobile)),d.setAttribute("aria-label",t.modelHeadline),document.getElementById("investorType")){d.innerText=t.declineModelHeadline?t.declineModelHeadline:"",d.setAttribute("aria-label",t.declineModelHeadline),y.innerText=t.declineTermsConditionsLabel?t.declineTermsConditionsLabel:"",v.innerText=t.declineTermsConditionMandateText?t.declineTermsConditionMandateText:"";var A=document.getElementById("modalGoToSite"),E=document.getElementById("modalInvestorType");A.innerText=t.goToSiteButtonLabel?t.goToSiteButtonLabel:"Go to Site",E.innerText=t.investorTypeLabel?t.investorTypeLabel:"Investor Type",document.getElementById("investorType").innerHTML="",t.investorData.investorTypes.forEach((function(t){_(t)}))}else{var L=document.getElementById("modalDecline"),k=document.getElementById("modalConfirm");L.innerText=t.declineButtonLabel?t.declineButtonLabel:"Decline",k.innerText=t.confirmButtonLabel?t.confirmButtonLabel:"Confirm",C(t)}b.addEventListener("click",(function(t){var n;(n=document.getElementById("investorType")?x():a===s&&c===l?window.location.pathname:u)&&(g(e),window.location=n)}))}}else if("yes"===t.languageActive){if(c=t.language,n.value=t.language,n.disabled=!1,o.innerHTML=t.investorData.termsCondition,d.innerText=t.modelHeadline,p.innerText=t.locationLabel?t.locationLabel:"Location",m.innerText=t.languageLabel?t.languageLabel:"Language",i.setAttribute("aria-label",t.locationLabel?t.locationLabel:"Location"),n.setAttribute("aria-label",t.languageLabel?t.languageLabel:"Language"),y.innerText=t.termsConditionsLabel?t.termsConditionsLabel:"Terms & Conditions",v.innerText=t.termsConditionMandateText?t.termsConditionMandateText:"I have read and agree to the terms and conditions.",u=t.languageURL,l=t.language,d.setAttribute("aria-label",t.modelHeadline),h&&(h.innerText=t.welcomeText?t.welcomeText:""),f&&(f.setAttribute("src",t.logo),f.setAttribute("alt",t.logoAltText),S(f,t.logo,t.logoMobile)),document.getElementById("investorType")){d.innerText=t.declineModelHeadline?t.declineModelHeadline:"",d.setAttribute("aria-label",t.declineModelHeadline),y.innerText=t.declineTermsConditionsLabel?t.declineTermsConditionsLabel:"",v.innerText=t.declineTermsConditionMandateText?t.declineTermsConditionMandateText:"";var T=document.getElementById("modalGoToSite"),M=document.getElementById("modalInvestorType");T.innerText=t.goToSiteButtonLabel?t.goToSiteButtonLabel:"Go to Site",M.innerText=t.investorTypeLabel?t.investorTypeLabel:"Investor Type",document.getElementById("investorType").innerHTML="",t.investorData.investorTypes.forEach((function(t){_(t)}))}else{var q=document.getElementById("modalDecline"),I=document.getElementById("modalConfirm");q.innerText=t.declineButtonLabel?t.declineButtonLabel:"Decline",I.innerText=t.confirmButtonLabel?t.confirmButtonLabel:"Confirm",C(t)}b.addEventListener("click",(function(t){var n;(n=document.getElementById("investorType")?x():a===s&&c===l?window.location.pathname:u)&&(g(e),window.location=n)}))}})),1==w.languageLists.length){var E=w.languageLists[0];if(c=E.language,n.value=E.language,n.disabled=!0,o.innerHTML=E.investorData.termsCondition,d.innerText=E.modelHeadline,p.innerText=E.locationLabel?E.locationLabel:"Location",m.innerText=E.languageLabel?E.languageLabel:"Language",i.setAttribute("aria-label",E.locationLabel?E.locationLabel:"Location"),n.setAttribute("aria-label",E.languageLabel?E.languageLabel:"Language"),y.innerText=E.termsConditionsLabel?E.termsConditionsLabel:"Terms & Conditions",v.innerText=E.termsConditionMandateText?E.termsConditionMandateText:"I have read and agree to the terms and conditions.",u=E.languageURL,l=E.language,d.setAttribute("aria-label",E.modelHeadline),h&&(h.innerText=E.welcomeText?E.welcomeText:""),f&&(f.setAttribute("src",E.logo),f.setAttribute("alt",E.logoAltText),S(f,E.logo,E.logoMobile)),document.getElementById("investorType")){d.innerText=E.declineModelHeadline?E.declineModelHeadline:"",d.setAttribute("aria-label",E.declineModelHeadline),y.innerText=E.declineTermsConditionsLabel?E.declineTermsConditionsLabel:"",v.innerText=E.declineTermsConditionMandateText?E.declineTermsConditionMandateText:"";var L=document.getElementById("modalGoToSite"),k=document.getElementById("modalInvestorType");L.innerText=E.goToSiteButtonLabel?E.goToSiteButtonLabel:"Go to Site",k.innerText=E.investorTypeLabel?E.investorTypeLabel:"Investor Type",document.getElementById("investorType").innerHTML="",E.investorData.investorTypes.forEac
1h((function(t){_(t)}))}else{var T=document.getElementById("modalDecline"),M=document.getElementById("modalConfirm");T.innerText=E.declineButtonLabel?E.declineButtonLabel:"Decline",M.innerText=E.confirmButtonLabel?E.confirmButtonLabel:"Confirm",C(E)}b.addEventListener("click",(function(t){var n;(n=document.getElementById("investorType")?x():a===s&&c===l?window.location.pathname:u)&&(g(e),window.location=n)}))}}else{if(document.getElementById("investorType"))document.getElementById("investorType").innerHTML="",modalGoToSite.innerText="",modalInvestorType.innerText="";o.innerHTML="",d.innerText="",p.innerText="",m.innerText="",y.innerText="",v.innerText="",modalDecline.innerText="",modalConfirm.innerText="",d.removeAttribute("aria-label")}n.addEventListener("change",(function(t){var r=document.getElementById("gotositebtn"),b=document.querySelector("input[name=checkbox]");""===t.target.value?r.disabled=!0:b.checked&&(r.disabled=!1);var A=w.languageLists.filter((function(e){return e.language===t.target.value}));if(A.length){if(o.innerHTML=A[0].investorData.termsCondition,d.innerText=A[0].modelHeadline,p.innerText=A[0].locationLabel?A[0].locationLabel:"Location",m.innerText=A[0].languageLabel?A[0].languageLabel:"Language",i.setAttribute("aria-label",A[0].locationLabel?A[0].locationLabel:"Location"),n.setAttribute("aria-label",A[0].languageLabel?A[0].languageLabel:"Language"),y.innerText=A[0].termsConditionsLabel?A[0].termsConditionsLabel:"Terms & Conditions",v.innerText=A[0].termsConditionMandateText?A[0].termsConditionMandateText:"I have read and agree to the terms and conditions.",u=A[0].languageURL,l=A[0].language,d.setAttribute("aria-label",A[0].modelHeadline),h&&(h.innerText=A[0].welcomeText?A[0].welcomeText:""),f&&(f.setAttribute("src",A[0].logo),f.setAttribute("alt",A[0].logoAltText),S(f,A[0].logo,A[0].logoMobile)),document.getElementById("investorType")){d.innerText=A[0].declineModelHeadline?A[0].declineModelHeadline:"",d.setAttribute("aria-label",A[0].declineModelHeadline),y.innerText=A[0].declineTermsConditionsLabel?A[0].declineTermsConditionsLabel:"",v.innerText=A[0].declineTermsConditionMandateText?A[0].declineTermsConditionMandateText:"";var E=document.getElementById("modalGoToSite"),L=document.getElementById("modalInvestorType");E.innerText=A[0].goToSiteButtonLabel?A[0].goToSiteButtonLabel:"Go to Site",L.innerText=A[0].investorTypeLabel?A[0].investorTypeLabel:"Investor Type",r.disabled=!0,document.getElementById("investorType").innerHTML="",A[0].investorData.investorTypes.forEach((function(t){_(t)}))}else{var k=document.getElementById("modalDecline"),T=document.getElementById("modalConfirm");k.innerText=A[0].declineButtonLabel?A[0].declineButtonLabel:"Decline",T.innerText=A[0].confirmButtonLabel?A[0].confirmButtonLabel:"Confirm",C(A[0])}r.addEventListener("click",(function(t){var n;x(),(n=document.getElementById("investorType")?x():a===s&&c===l?window.location.pathname:u)&&(g(e),window.location=n)}))}})),b.disabled=!0}function x(){var t;return document.getElementsByName("investoyTypeSelection").forEach((function(e){e.checked&&(t=e.getAttribute("id").split("~").pop())})),t}function _(t){var e=document.getElementById("investorType"),n=document.querySelector(".cmp-header-cookie-modal--for-tnc"),r=document.querySelector(".cmp-header-cookie-modal--checkbox-container"),o=document.querySelector("#header-cookie-madal-checkbox"),a=document.getElementById("header-cookie-modal-checkbox-id");n&&(n.style.display="none"),r&&(r.style.display="none"),o.checked=!1,a.setAttribute("aria-checked","false");var c=document.createElement("input");c.type="radio",c.name="investoyTypeSelection",c.id=t.segmentSectionTitle+"~"+t.segmentSectionUrl,c.setAttribute("aria-label",t.segmentSectionTitle),c.setAttribute("tnc",t.segmentTncValue);var s=document.createElement("div");s.className="cmp-header-cookie-modal--investmentype-label--text",s.innerText=t.segmentSectionTitle,s.setAttribute("aria-hidden","true");var l=document.createElement("label");l.className="cmp-header-cookie-modal--investmentype-label",l.htmlFor=t.segmentSectionTitle+"~"+t.segmentSectionUrl,l.appendChild(c),l.appendChild(s);var u=document.createElement("div");u.classList="aem-GridColumn aem-GridColumn--default--6 aem-GridColumn--phone--12 cmp-nopadding-secondmodal-investors",u.appendChild(l),e.appendChild(u),c.addEventListener("change",(function(t){var e=c.getAttribute("tnc"),i=document.getElementById("gotositebtn");"true"==e?(i.disabled=!0,n&&(n.style.display="block",n.setAttribute("aria-hidden","false")),r&&(r.style.display="block",r.setAttribute("aria-hidden","false"))):(i.disabled=!1,o.checked=!1,n&&(n.style.display="none",n.setAttribute("aria-hidden","true")),r&&(r.style.display="none",r.setAttribute("aria-hidden","true")))})),c.addEventListener("blur",(function(t){t.relatedTarget&&"DIV"==t.relatedTarget.nodeName&&document.getElementById("cmp-droplist__selectedlocation").focus()})),l.addEventListener("focus",(function(t){l.addEventListener("keyup",(function(t){t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||document.getElementsByName("investoyTypeSelection").forEach((function(t){t.getAttribute("id")==l.htmlFor&&(t.checked=!0)}))}))}))}function S(t,e,n){var i=window.innerWidth;i<785?t.setAttribute("src",n):t.setAttribute("src",e),window.addEventListener("resize",(function(r){(i=window.innerWidth)<785?t.setAttribute("src",n):t.setAttribute("src",e)}))}function w(t,e){var n=new XMLHttpRequest;n.overrideMimeType("application/json"),n.open("GET",t,!0),n.onreadystatechange=function(){4===n.readyState&&"200"==n.status&&e(n.responseText)},n.send(null)}var A=function(){w(document.getElementById("header-overlay-model").getAttribute("path")+".caas.json",(function(t){var e=JSON.parse(t);e&&d(e.regionLists)}))},E=function(){w(document.getElementById("header-overlay-model-global").getAttribute("path")+".caas.json",(function(t){var e=JSON.parse(t);e&&function(t){h(t);var e=document.getElementById("header-cookie-modal-checkbox-id"),n=document.querySelector("#header-cookie-madal-checkbox"),r=document.getElementById("gotositebtn");e.addEventListener("keyup",(function(t){t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||e.click()})),n.addEventListener("change",(function(){this.checked?(e.setAttribute("aria-checked","true"),r.disabled=!1):(e.setAttribute("aria-checked","fal
1se"),r.disabled=!0)}))}(e.regionLists)}))},L=function(t){var e=document.getElementById(t),n=e.querySelector(".dialog-backdrop");if(n){var i=n.cloneNode(!0);if(n.parentNode.replaceChild(i,n),document.getElementById("cmp-droplist__selectedlocation"))document.getElementById("cmp-droplist__selectedlocation").focus();if(document.getElementById("header-overlay-model-global")){var r=e.querySelector(".cmp-dialog__details");console.log(r.previousElementSibling),r.previousElementSibling.focus()}}},k=function(){var t=new Date;return t.setTime(t.getTime()+220752e6),"expires="+t.toUTCString()},C=function(t){var e=document.querySelector(".cmp-header-cookie-modal--sticky").firstElementChild,n=e.firstElementChild,i=e.lastElementChild;t.declineButtonVisible&&"false"==t.declineButtonVisible?(n.style.display="none",n.setAttribute("aria-hidden","true"),i.classList.replace("aem-GridColumn--default--6","aem-GridColumn--default--12"),i.classList.add("cmp-header-cookie-modal-mobile-spacing"),i.classList.add("cmp-header-cookie-modal-no-decline")):(n.style.display="block",n.setAttribute("aria-hidden","false"),i.classList.replace("aem-GridColumn--default--12","aem-GridColumn--default--6"),i.classList.remove("cmp-header-cookie-modal-mobile-spacing"),i.classList.remove("cmp-header-cookie-modal-no-decline"))},T=function(){if(document.getElementById("header-overlay-model")){var t=document.getElementById("cancelBtn"),e=document.getElementById("gotositebtn"),n=document.getElementById("cmp-droplist__selectedlocation");n.addEventListener("blur",(function(n){if(n.relatedTarget&&"cmp-droplist__selectedlanguague"!=n.relatedTarget.id&&"DIV"==n.relatedTarget.nodeName)if(n.relatedTarget.nextElementSibling.classList.contains("cmp-dialog"),e.disabled){var i=document.querySelector(".cmp-header-cookie-modal--tnc-checkbox-container");if(t)"false"==t.parentElement.parentElement.getAttribute("aria-hidden")?t.focus():i.focus();else i.focus()}else e.focus()})),e.addEventListener("blur",(function(e){null==e.relatedTarget?t||document.querySelector(".cmp-header-cookie-modal--tnc-checkbox-container").focus():e.relatedTarget.classList.contains("cmp-header-cookie-modal--button-secondary")||e.relatedTarget.classList.contains("cmp-header-cookie-modal--tnc-checkbox-container")||"investoyTypeSelection"!==e.relatedTarget.name&&n.focus()}));var i=document.querySelector(".cmp-header-cookie-modal--tnc-checkbox-container"),r=document.querySelector("#header-cookie-madal-checkbox");i&&(i.addEventListener("blur",(function(i){var r="true";t&&(r=t.parentElement.parentElement.getAttribute("aria-hidden"));t&&"false"==r?t.addEventListener("blur",(function(t){e.disabled&&t.relatedTarget&&(t.relatedTarget.classList.contains("cmp-header-cookie-modal--tnc-checkbox-container")||n.focus())})):t&&"true"!=r||i.relatedTarget&&(i.relatedTarget.classList.contains("cmp-accordion__button")||"header-cookie-madal-checkbox"==i.relatedTarget.id||"A"==i.relatedTarget.nodeName||e.disabled&&n.focus())})),r.addEventListener("blur",(function(i){t?t.addEventListener("blur",(function(t){e.disabled&&t.relatedTarget&&(t.relatedTarget.classList.contains("cmp-header-cookie-modal--tnc-checkbox-container")||n.focus())})):t||e.disabled&&(i.relatedTarget.classList.contains("cmp-header-cookie-modal--tnc-checkbox-container")||n.focus())})))}},M=function(){if(document.getElementById("header-overlay-model-global")){var t=document.getElementById("gotositebtn"),e=document.querySelector(".cmp-header-cookie-modal--tnc-checkbox-container"),n=document.querySelector("#header-cookie-madal-checkbox");e.addEventListener("blur",(function(i){"DIV"==i.relatedTarget.nodeName&&(null==i.relatedTarget.nextElementSibling||i.relatedTarget.nextElementSibling.classList.contains("cmp-dialog")?t.disabled?e.focus():t.focus():console.log(i.relatedTarget.nextElementSibling)),t.disabled&&n.focus()})),t.addEventListener("blur",(function(t){e.focus()})),n.addEventListener("blur",(function(n){t.disabled&&e.focus()}))}},q=function(){document.getElementById("header-overlay-model")&&A(),document.getElementById("header-overlay-model-global")&&E()};"loading"!==document.readyState?q():document.addEventListener("DOMContentLoaded",(function(){q()}))},function(t,e,n){"use strict";var i=n(0),r=n(2),o=n(48),a=n(47);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,g(i.key),i)}}function d(t,e,n){return e=v(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}
1function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=y(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}}).apply(null,arguments)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e,n,i,r,o){return function(t,e,n,i,r){if(!m(t,e,n,i||t)&&r)throw new TypeError("failed to set property");return n}(v(o?t.prototype:t),e,n,i,r)}function m(t,e,n,i){return(m="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,n,i){var r,o=y(t,e);if(o){if((r=Object.getOwnPropertyDescriptor(o,e)).set)return r.set.call(i,n),!0;if(!r.writable)return!1}if(r=Object.getOwnPropertyDescriptor(i,e)){if(!r.writable)return!1;r.value=n,Object.defineProperty(i,e,r)}else!function(t,e,n){(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(i,e,n);return!0})(t,e,n,i)}function g(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}function y(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e,n){x(t,e),e.set(t,n)}function x(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _(t,e,n){return t.set(w(t,e),n),n}function S(t,e){return t.get(w(t,e))}function w(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var A={searchConfig:".cmp-site-utility-mobile__section-right__search-config",searchInput:".cmp-site-utility-mobile__section-right__search-input",searchIcon:".cmp-site-utility-mobile__section-right__search-icon",clearButton:".cmp-site-utility-mobile__section-right__search-clear",recentSearches:".cmp-site-utility-mobile__section-right__recent-searches",searchList:".cmp-site-utility-mobile__section-right__search-list",suggestionDropdown:".cmp-site-utility-mobile__section-right__suggestion-dropdown",trendingLinks:".cmp-site-utility-mobile__section-right__trending-searches a",recentItemClass:"cmp-site-utility-mobile__section-right__search-item",recentLinkClass:"cmp-site-utility-mobile__section-right__search-link",recentTextClass:"cmp-site-utility-mobile__section-right__search-text"},E=new WeakMap,L=new WeakMap,k=new WeakMap,C=new WeakMap,T=new WeakMap,M=new WeakMap,q=new WeakMap,I=new WeakMap,O=new WeakMap,P=new WeakMap,N=new WeakMap,D=new WeakMap,B=new WeakMap,j=new WeakSet,R=function(t){function e(t){var n,i,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=d(this,e,[t]),x(i=n,r=j),r.add(i),b(n,E,"cmp-site-utility-mobile"),b(n,L,void 0),b(n,k,void 0),b(n,C,void 0),b(n,T,void 0),b(n,M,void 0),b(n,q,void 0),b(n,I,void 0),b(n,O,void 0),b(n,P,void 0),b(n,N,void 0),b(n,D,void 0),b(n,B,void 0),p(e,"compName",S(E,n),n,1,1),_(L,n,t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),function(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"initialize",value:function(){var t,n,i,r,o,a=this;(t=e,n="initialize",i=this,o=h(v(1&(r=3)?t.prototype:t),n,i),2&r&&"function"==typeof o?function(t){return o.apply(i,t)}:o)([!1]),_(B,this,parseInt(S(L,this).dataset.maxRecentSearches,10)),_(q,this,S(L,this).querySelector(".".concat(S(E,this),"__overlay"))),_(k,this,S(L,this).querySelector(".cmp-site-utility-mobile__off-canvas-menu")),_(T,this,S(L,this).querySelector(".".concat(S(E,this),"__scrollable"))),_(M,this,document.body),_(I,this,S(L,this).querySelector(".".concat(S(E,this),"__search-toggle"))),_(O,this,S(L,this).querySelector("#cmp_mobile_search")),_(P,this,S(L,this).querySelector(".".concat(S(E,this),"__section-right__search-input"))),_(N,this,S(L,this).querySelector(".".concat(S(E,this),"__section-right__closeSearch"))),w(j,this,F).call(this),w(j,this,H).call(this),window.addEventListener("pageshow",(function(){var t;null===(t=S(D,a))||void 0===t||t.loadRecentSearches()})),S(L,this).querySelectorAll(".".concat(S(E,this),"__menu-ctas a")).forEac
1h((function(t){t.removeAttribute("role")}))}}])}(o.a);function H(){var t,e=this;S(P,this)&&S(O,this)&&S(I,this)&&(S(O,this).style.display="none",_(D,this,Object(a.a)(S(L,this),A,S(B,this))),S(I,this).addEventListener("click",(function(){return w(j,e,z).call(e,!0)})),null===(t=S(N,this))||void 0===t||t.addEventListener("click",(function(){return w(j,e,z).call(e,!1)})))}function z(t){var e,n;(S(O,this).style.display=t?"block":"none",S(O,this).setAttribute("aria-hidden",String(!t)),S(I,this).setAttribute("aria-expanded",String(t)),S(M,this).classList.toggle("noscroll",t),t)?(null===(e=S(D,this))||void 0===e||e.loadRecentSearches(),w(j,this,U).call(this,!0),S(N,this).focus()):(S(P,this).value="",null===(n=S(D,this))||void 0===n||n.toggleClearButton(!1),w(j,this,U).call(this,!1),S(I,this).focus())}function F(){var t=this;S(L,this).querySelectorAll(".".concat(S(E,this),"__openMenu")).forEach((function(e){e.addEventListener("click",function(t){w(j,this,G).call(this,t),this.searchSuggestionBox&&Object(r.b)(this.searchSuggestionBox,!0,!1),this.searchInput&&(this.searchInput.value="")}.bind(t))})),S(L,this).querySelectorAll(".".concat(S(E,this),"__closeMenu")).forEach((function(e){e.addEventListener("click",w(j,t,W).bind(t,!0))})),this.elem.querySelectorAll(".".concat(this.compName,'__sub-menu-link:not([href^="#cmp-modal"]), .').concat(this.compName,'__menu-link[href], .cmp-site-utility-mobile__search-submit, .autoSuggestHeaderDropdown__suggestion-item, .cmp-button:not([href^="#cmp-modal"]), .cmp-site-utility-mobile__icons a, .mobile-header-nav-links .cmp-header-site-navigation-links__menu-link:not([aria-expanded]), .').concat(S(E,this),"__section-right__search-link")).forEach((function(e){e.addEventListener("click",w(j,t,W).bind(t,!1))})),document.addEventListener("mclLinkClicked",w(j,this,W).bind(this,!1)),document.addEventListener("featuredLinkClicked",w(j,this,W).bind(this,!1))}function G(t){var e=this;t.currentTarget.setAttribute("aria-expanded","false"===t.currentTarget.getAttribute("aria-expanded")),S(k,this).classList.add("".concat(S(E,this),"__show-menu-bar")),S(q,this).classList.add("".concat(S(E,this),"__show-overlay")),S(M,this).classList.add("noscroll"),S(M,this).classList.remove("td-no-focus-outline"),w(j,this,U).call(this,!0);var n=S(L,this).querySelector("#"+t.currentTarget.getAttribute("aria-controls"));n.style.display="block";var i=".".concat(S(E,this),"__menu-item a, .").concat(S(E,this),'__logo a, button:not([disabled]), .show-sub-menu a, input[type="submit"], input[type="text"], .button a, .auth-title a');_(C,this,n.querySelectorAll(i)),w(j,this,V).call(this),S(L,this).querySelector(".".concat(this.compName,"__search-input"))&&(S(L,this).querySelector(".".concat(this.compName,"__search-input")).value="",this.searchSuggestionBox.classList.add("hidden")),setTimeout((function(){S(T,e).scrollTo(0,0),document.dispatchEvent(new Event("navLinkClicked")),document.dispatchEvent(new Event("utilityLinkClicked")),n.classList.add("".concat(S(E,e),"__show-menu")),S(C,e)[0].focus()}),100),n.addEventListener("keydown",w(j,this,Y).bind(this))}function W(t,e){var n,i=S(L,this).querySelector(".".concat(S(E,this),"__show-menu"));i&&(S(q,this).classList.remove("".concat(S(E,this),"__show-overlay")),S(k,this).classList.remove("".concat(S(E,this),"__show-menu-bar")),i.classList.remove("".concat(S(E,this),"__show-menu")),i.style.display="none",(n=S(L,this).querySelector('[aria-controls="'+i.id+'"]')).setAttribute("aria-expanded","false")),w(j,this,U).call(this,!1),S(M,this).classList.remove("noscroll"),S(M,this).classList.remove("td-no-focus-outline"),t&&n.focus(),S(O,this)&&"block"===S(O,this).style.display&&w(j,this,z).call(this,!1)}function U(t){S(M,this).querySelectorAll(".site-utility-nav--skip-nav, .cmp-site-utility-mobile__container, .cmp-site-utility-mobile__section-right, .cmp-site-utility-nav-full-width, .desktop-header-nav-links, footer, main, .cmp-emergency-message").forEach((function(e){return e.setAttribute("aria-hidden",t)}))}function Y(t){var e=this;setTimeout((function(){var n=s(S(C,e)).filter((function(t){return t.checkVisibility()})),r=Array.prototype.slice.call(n),o=n.length,a=r.indexOf(t.target);if(void 0!==t.keyCode)switch(t.keyCode){case i.m.TAB:t.shiftKey?0===a&&(n[o-1].focus(),t.preventDefault()):a===o-1&&(n[0].focus(),t.preventDefault());break;case i.m.ESCAPE:w(j,e,W).call(e,e,!0)}}),50)}function V(){S(L,this).querySelectorAll("[data-expand]").forEach((function(t){"true"===t.dataset.expand&&t.click()}))}function X(){var t=document.querySelectorAll('.cmp-site-utility-mobile:not([data-component-state="initialized"])');t.length>0&&t.forEach((function(t){new R(t).initialize(),t.setAttribute("data-component-state","initialized")}))}"loading"!==document.readyState?X():document.addEventListener("DOMContentLoaded",X)},function(t,e,n){"use strict";var i=n(5);function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
1if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function a(){var t=document.querySelector(".cmp-header-utility-bar__td-standards");if(null!==t){var e=i.a.cookieGetItem("theme"),n=t.querySelectorAll(".cmp-header-utility-bar__dropdown--theme li"),o=t.querySelectorAll(".cmp-header-utility-bar__dropdown--theme li a"),a=t.querySelector(".cmp-header-utility-bar__dropdown--theme li .selected"),c=t.querySelector(".cmp-header-utility-bar__selectedThemeName");if(null!==document.querySelector(".cmp-header-utility-bar__dropdown--theme")){if(e){a&&(a.querySelector(".cmp-header-utility-bar__forscreenreader").remove(),a.querySelector(".selectedTickMark").remove(),a.classList.remove("selected"));var s,l=r(n);try{for(l.s();!(s=l.n()).done;){var u=s.value,d=u.querySelector(".cmp-header-utility-bar__theme-value").innerHTML,h=u.querySelector("a");d===e&&(h.classList.add("selected"),h.innerHTML+='<span class="td-icon td-icon-checkMark selectedTickMark" aria-hidden="true"></span><span class="visually-hidden cmp-header-utility-bar__forscreenreader">Selected</span>',c.innerHTML=e)}}catch(t){l.e(t)}finally{l.f()}}else a&&(document.cookie="theme="+a.querySelector(".cmp-header-utility-bar__theme-value").innerHTML,c.innerHTML=a.querySelector(".cmp-header-utility-bar__theme-value").innerHTML);var f,p=r(o);try{var m=function(){var t=f.value;t.addEventListener("click",(function(e){document.cookie="theme="+t.querySelector(".cmp-header-utility-bar__theme-value").innerHTML,window.location.reload()}))};for(p.s();!(f=p.n()).done;)m()}catch(t){p.e(t)}finally{p.f()}}document.addEventListener("click",(function(t){if(t.currentTarget.activeElement.classList&&!t.currentTarget.activeElement.classList.contains("cmp-header-utility-bar__selectedTheme")){var e=document.querySelector(".cmp-header-utility-bar__dropdown--content--theme");if(e&&!e.classList.contains("hide")){e.classList.add("hide");var n=document.querySelector(".cmp-header-utility-bar__selectedTheme");if("true"===n.getAttribute("aria-expanded")){n.setAttribute("aria-expanded",!1);var i=n.getElementsByClassName("dropdown-collapsed"),r=n.getElementsByClassName("dropdown-expanded");Array.from(i).forEach((function(t){t.classList.remove("hide")})),Array.from(r).forEach((function(t){t.classList.add("hide")}))}}}}))}}"loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)},function(t,e,n){"use strict";var i=n(0),r=n(7),o=function(){function t(t){var e=t.querySelectorAll(".cmp-header-utility-bar-v2__menu-toggle"),n=t.querySelectorAll(".cmp-header-utility-bar-v2__dropdown--province .cmp-header-utility-bar-v2__dropdown--subMenu"),o=t.querySelectorAll(".cmp-header-utility-bar-v2__dropdown--province .cmp-header-utility-bar-v2__dropdown--subMenu-region"),a=t.querySelectorAll(".cmp-header-utility-bar-v2__dropdown--language--subMenu"),c=document.querySelectorAll(".cmp-header-utility-bar-v2__country-dropdown-item"),s=document.querySelectorAll(".cmp-header-utility-bar-v2__country-sub-dropdown"),l=!1;function u(t){for(var e=document.querySelectorAll(".cmp-header-utility-bar-v2__country-sub-dropdown"),n=0;n<e.length;n++)e[n].classList.remove("cmp-header-utility-bar-v2__country-list-open");for(var i=document.querySelectorAll(".cmp-header-utility-bar-v2__country-dropdown-item"),r=0;r<i.length;r++)i[r].classList.remove("cmp-header-utility-bar-v2__country-item-hover")}function d(){e.forEach((function(t){return h(t)}))}function h(t){var e=t.querySelector(".dropdown-collapsed"),n=t.querySelector(".dropdown-expanded"),i=t.nextElementSibling;e.classList.remove("cmp-header-utility-bar-v2__hide"),n.classList.add("cmp-header-utility-bar-v2__hide"),i.classList.add("cmp-header-utility-bar-v2__hide"),t.setAttribute("aria-expanded",!1)}function f(t,e){var n=t.innerHTML,i=t.closest(".cmp-header-utility-bar-v2__dropdowns").querySelector(".cmp-header-utility-bar-v2__menu-toggle"),o=i.nextElementSibling,a=o.querySelector(".selected"),c=n.search("<span");if(-1===c)i.querySelector(".cmp-header-utility-bar-v2__menu-toggle-label").innerHTML=n;else{var s=n.substr(0,c);i.querySelector(".cmp-header-utility-bar-v2__menu-toggle-label").innerHTML=s}l&&(null!=o.querySelector(".cmp-header-utility-bar-v2__visually-hidden")&&o.querySelector(".cmp-header-utility-bar-v2__visually-hidden").remove(),null!=o.querySelector(".cmp-header-utility-bar-v2__selectedTickMark")&&o.querySelector(".cmp-header-utility-bar-v2__selectedTickMark").remove(),null!=a&&a.classList.remove("selected")),t.classList.add("selected"),h(i),l=!0;var u=t.getAttribute("data-key").toLowerCase();r.a.redirectToProvincePage(u,e)}document.addEventListener("click",(function(t){document.getElementById("cmp-header-utility-bar-v2__main-dropdown-list").contains(t.target)||d()})),t.querySelectorAll(".cmp-header-utility-bar-v2__dropdowns").forEach((function(t){var e=[];(e=Array.from(t.querySelectorAll(".cmp-header-utility-bar-v2__dropdown--subMenu"))).length<1&&(e=Array.from(t.querySelectorAll(".cmp-header-utility-bar-v2__dropdown--subMenu-region")));var n=e.pop();n&&n.addEventListener("blur",(function(t){(null==t.relatedTarget||t.relatedTarget.classList.contains("cmp-primary-header__logo-link"))&&h(t.target.closest(".cmp-header-utility-bar-v2__dropdowns").querySelector("button"))}))})),e.forEach((function(t){t.addEventListener("click",(function(){!function(t){"true"===t.getAttribute("aria-expanded")?h(t):function(t){d();var e=t.querySelector(".dropdown-collapsed"),n=t.querySelector(".dropdown-expanded"),i=t.nextElementSibling;e.classList.add("cmp-header-utility-bar-v2__hide"),n.classList.remove("cmp-header-utility-bar-v2__hide"),i.classList.remove("cmp-header-utility-bar-v2__hide"),t.setAttribute("aria-expanded",!0),t.focus()}(t)}(t)})),t.addEventListener("keydown",(function(e){e.keyCode===i.m.ESCAPE&&h(t),document.activeElement==t&&e.shiftKey&&i.m.TAB&&h(t)}))}
1)),n.forEach((function(t){t.addEventListener("click",(function(t){f(t.target,!0),__setSelectedLanguage(t.target,!0)})),t.addEventListener("keydown",(function(t){t.keyCode===i.m.ESCAPE&&h(t.target.closest(".cmp-header-utility-bar-v2__dropdowns").querySelector("button"))}))})),o.forEach((function(t){t.addEventListener("focus",(function(e){t.style.backgroundColor="#f8faf9",t.style.fontFamily="TD Graphik Medium",t.addEventListener("keyup",(function(e){if(e.keyCode===i.m.TAB){var n=t.nextElementSibling;if(n){n.style.display="flex",n.style.backgroundColor="#f8faf9",n.style.flexDirection="column";for(var r=n.querySelectorAll(".cmp-header-utility-bar-v2__dropdown--subMenu"),o=r[r.length-1],a=function(e){r[e].setAttribute("tabindex","0"),r[e].addEventListener("keyup",(function(o){o.keyCode!==i.m.ENTER&&o.keyCode!==i.m.SPACE||(n.style.display="none",t.style.fontFamily="TD Graphik Semilight",t.style.backgroundColor="#ffffff",r[e].click())}))},c=0;c<r.length;c++)a(c);o.addEventListener("blur",(function(e){null==e.relatedTarget&&(n.style.display="none",t.style.fontFamily="TD Graphik Semilight",t.style.backgroundColor="#ffffff"),e.relatedTarget.classList.contains("cmp-header-utility-bar-v2__dropdown--subMenu-region")&&(n.style.display="none",t.style.fontFamily="TD Graphik Semilight",t.style.backgroundColor="#ffffff"),e.relatedTarget.classList.contains("cmp-primary-header__logo-link")&&(n.style.display="none",t.style.fontFamily="TD Graphik Semilight",t.style.backgroundColor="#ffffff",document.querySelector(".cmp-header-utility-bar-v2__dropdown--province").focus())}))}}}))})),t.addEventListener("blur",(function(e){var n=t.nextElementSibling;e.relatedTarget.classList.contains("cmp-header-utility-bar-v2__dropdown--subMenu-region")&&n&&(n.style.display="none",t.style.fontFamily="TD Graphik Semilight",t.style.backgroundColor="#ffffff")})),t.addEventListener("click",(function(e){h(t.closest(".cmp-header-utility-bar-v2__dropdowns").querySelector(".cmp-header-utility-bar-v2__menu-toggle"))}))})),a.forEach((function(t){t.addEventListener("keydown",(function(t){t.keyCode===i.m.ESCAPE&&d()}))})),c.forEach((function(t){t.addEventListener("mouseover",(function(){!function(t){var e=t.id,n=e+"_content";document.querySelector("#"+e).classList.add("cmp-header-utility-bar-v2__country-item-hover"),document.querySelector("#"+n).classList.add("cmp-header-utility-bar-v2__country-list-open")}(t)}))})),c.forEach((function(t){t.addEventListener("mouseout",(function(){u()}))})),s.forEach((function(t){t.addEventListener("mouseover",(function(){!function(t){u();var e=t.id,n=e.replace("_content","");document.querySelector("#"+n).classList.add("cmp-header-utility-bar-v2__country-item-hover"),document.querySelector("#"+e).classList.add("cmp-header-utility-bar-v2__country-list-open")}(t)}))})),s.forEach((function(t){t.addEventListener("mouseout",(function(){u()}))}))}return{init:function(){var e=document.querySelectorAll(".".concat("cmp-header-utility-bar-v2",':not([data-component-state="initialized"])'));e.length>0&&e.forEach((function(e){t(e),e.setAttribute("data-component-state","initialized")}))}}}();"loading"!==document.readyState?o.init():document.addEventListener("DOMContentLoaded",o.init)},function(t,e,n){"use strict";var i=n(0),r=n(7),o=n(5),a=n(9),c=function(){function t(t){var e=r.a.getProvinceFromCookie(),n=t.querySelectorAll(".cmp-header-utility-bar__menu-toggle"),c=t.querySelectorAll(".cmp-header-utility-bar__dropdown--province .cmp-header-utility-bar__dropdown--subMenu"),s=t.querySelectorAll(".cmp-header-utility-bar__dropdown--language--subMenu"),l=!1,u=t.getAttribute("data-usekey"),d=!1;function h(t){for(var e=function(t){var e=[];return JSON.parse(province_list).provinces.forEach((function(n){if(n.key.toLowerCase()===t.toLowerCase()){var i=n.name,r=n.redirectUrl;e=[i,t,r]}})),e}(t),n=0;n<c.length;n++)if(c[n].getAttribute("data-key").toLowerCase()===e[1].toLowerCase()){m(c[n],!1);break}0===c.length&&0!==e.length&&r.a.redirectToProvincePage(e[1].toLowerCase(),!1)}function f(){n.forEach((function(t){return p(t)}))}function p(t){var e=t.querySelector(".dropdown-collapsed"),n=t.querySelector(".dropdown-expanded"),i=t.nextElementSibling;e.classList.remove("hide"),n.classList.add("hide"),i.classList.add("hide"),t.setAttribute("aria-expanded",!1)}function m(t,e){var n=t.innerHTML,i=t.getAttribute("data-key"),o=t.closest(".cmp-header-utility-bar__dropdowns").querySelector(".cmp-header-utility-bar__menu-toggle"),a=o.nextElementSibling,c=a.querySelector(".selected"),s=o.querySelector(".cmp-header-utility-bar__menu-toggle-label"),d=n.search("<span");if(-1===d)u?t.getAttribute("data-display-modal")&&"#cmp-modal~product-unavailable"===t.getAttribute("data-display-modal")||(s.innerHTML=i):s.innerHTML=n;else if(u){var h=i.substr(0,d);o.querySelector(".cmp-header-utility-bar__menu-toggle-label").innerHTML=h}else{var f=n.substr(0,d);o.querySelector(".cmp-header-utility-bar__menu-toggle-label").innerHTML=f}if(!t.getAttribute("data-display-modal")||"#cmp-modal~product-unavailable"!==t.getAttribute("data-display-modal")){l&&(a.querySelector(".visually-hidden").remove(),a.querySelector(".selectedTickMark").remove(),c.classList.remove("selected")),t.classList.add("selected"),t.innerHTML+='<span class="td-icon td-icon-checkMark selectedTickMark" aria-hidden="true"></span><span class="visually-hidden">Selected</span>',l=!0;var m=t.getAttribute("data-key").toLowerCase();r.a.redirectToProvincePage(m,e)}p(o)}function g(){if(null!=e&&""!==e)if(u&&"true"===personalizationEnabled){var t=o.a.cookieGetItem(i.s);if(province)h(province.split("/")[1].toLowerCase());else!province&&t?h(t.toLowerCase()):h(e)}else h(e)}u&&(c.forEach((function(t){t.getAttribute("data-display-modal")&&"#cmp-modal~product-unavailable"===t.getAttribute("data-display-modal")&&(t.setAttribute("href","#cmp-modal~product-unavailable"),d=!0)})),d&&Object(a.c)(document)),""===e?document.addEventListener("geoLocationCookieSet",(function(){e=r.a.getProvinceFromCookie(),g()})):g(),t.querySelectorAll(".cmp-header-utility-bar__dropdowns").forEach((function(t){var e=Array.from(t.querySelectorAll(".cmp-header-utility-bar__dropdown--subMenu")).pop();e&&e.addEventListener("keydown",(function(t){t.keyCode!==i.m.TAB||t.shiftKey||p(t.target.closest(".cmp-header-utility-bar__dropdowns").querySelector("button"))}))}
1)),n.forEach((function(t){t.addEventListener("click",(function(){!function(t){"true"===t.getAttribute("aria-expanded")?p(t):function(t){f();var e=t.querySelector(".dropdown-collapsed"),n=t.querySelector(".dropdown-expanded"),i=t.nextElementSibling;e.classList.add("hide"),n.classList.remove("hide"),i.classList.remove("hide"),t.setAttribute("aria-expanded",!0),t.focus()}(t)}(t)})),t.addEventListener("keydown",(function(e){e.keyCode===i.m.ESCAPE&&p(t),document.activeElement==t&&e.shiftKey&&i.m.TAB&&p(t)}))})),c.forEach((function(t){t.addEventListener("click",(function(t){m(t.target,!0)})),t.addEventListener("keydown",(function(t){t.keyCode===i.m.ESCAPE&&p(t.target.closest(".cmp-header-utility-bar__dropdowns").querySelector("button"))}))})),s.forEach((function(t){t.addEventListener("keydown",(function(t){t.keyCode===i.m.ESCAPE&&f()}))}))}return{init:function(){var e=document.querySelectorAll(".".concat("cmp-header-utility-bar",':not([data-component-state="initialized"])'));e.length>0&&e.forEach((function(e){t(e),e.setAttribute("data-component-state","initialized")}))}}}();"loading"!==document.readyState?c.init():document.addEventListener("DOMContentLoaded",c.init)},function(t,e,n){"use strict";var i=n(0),r=n(12),o=function(){var t,e=5,n=5,o=4,a=2,c={tabItemWidth:0},s=.833333,l=.833333,u=.833333,d=.833333;function h(t,e){return Object(r.a)({container:t,loop:!1,items:1,slideBy:"page",nav:!1,autoplay:!1,speed:900,autoplayButtonOutput:!1,swipeAngle:!1,mouseDrag:!0,lazyload:!1,controlsContainer:e,responsive:{240:{items:a,controls:!0},768:{items:o,controls:!0},1024:{items:n,controls:!0}}})}function f(t){for(var e=t&&t.length,n=0;n<e;n++)t[n].classList.contains("cmp-tabs__active")?(t[n].querySelector("a").setAttribute("href","javascript:void(0)"),t[n].setAttribute("aria-current","page")):t[n].setAttribute("aria-current","false")}function p(t){for(var e=t&&t.length,n=0;n<e;n++){t[n].addEventListener("click",m)}}function m(t){var e=t.currentTarget.querySelector("a"),n=e&&e.getAttribute("href"),i=e&&e.getAttribute("target");t.currentTarget.classList.contains("cmp-tabs__active")?e&&e.setAttribute("href","javascript:void(0)"):window.open(n,i)}function g(){var t=window.innerWidth;return t>=i.l.LG?e:t>=i.l.MD?n:t>=i.l.SM?o:a}function y(){var t=window.innerWidth;return t>=i.l.LG?d:t>=i.l.MD?u:t>=i.l.SM?l:s}function v(){var e=document.querySelectorAll(".cmp-in-page-navigation .cmp-tabs__tablist"),n=e.length,i=(window.innerWidth>1200?1200:window.innerWidth)*y(),r=g(),o=Math.floor(i/r)-1;if(Math.abs(o-c.tabItemWidth)>1){c.tabItemWidth=o,void 0!==t&&t.rebuild();for(var a=0;a<n;a++)b(e[a].children),x(e[a])}}function b(t){for(var e=t&&t.length,n=0;n<e;n++){t[n].style.width=c.tabItemWidth+"px"}}function x(e){var n,i,r,o=window.innerWidth>1200?1200:window.innerWidth,a=e.children.length,s=c.tabItemWidth*a+a,l=g(),u=o*y();if(e.style.width=s+"px",e.style.perspective="1000px",e.style.backfaceVisibility="hidden",a<l)n=(u-s)/2,e.style.transform="translate3d("+n+"px, 0, 0)";else if(2==l){for(var d=0;d<a;d++)e.children[d].classList.contains("cmp-tabs__active")&&(i=d);t.rebuild(),t.goTo(i);var h=document.querySelector("div.cmp-tabs__arrow.cmp-tabs__arrow--right.next"),f=document.querySelector("div.cmp-tabs__arrow.cmp-tabs__arrow--left.prev");a<3?(h.setAttribute("aria-disabled","true"),f.setAttribute("aria-disabled","true")):a>3&&i>0&&i<a-2?(h.setAttribute("aria-disabled","false"),f.setAttribute("aria-disabled","false")):i<1?(h.setAttribute("aria-disabled","false"),f.setAttribute("aria-disabled","true")):(h.setAttribute("aria-disabled","true"),f.setAttribute("aria-disabled","false")),i==a-1&&(i-=1),i>=1&&(r=100/a*i,e.style.transform="translate3d(-"+r+"%, 0, 0)")}}return{init:function(){var e,n=document.querySelectorAll(".cmp-in-page-navigation"),r=document.querySelectorAll(".cmp-in-page-navigation--chip-filter"),o=0;if((r||0!==r.length)&&r.forEach((function(t){var e,n,r,o;e=t,n=geoLocationLang===i.o?"de":"of",r=e.querySelectorAll(".cmp-tabs__tablist li .cmp-tabs__tab--content .cmp-tabs__tab--label a"),o=r.length,r.forEach((function(t,e){var i=document.createElement("span");i.className="visually-hidden",i.textContent="".concat(e+1," ").
1concat(n," ").concat(o),t.appendChild(i)}))})),n||0!==n.length){o=n.length;for(var a=0;a<o;a++){e=n[a].querySelector(".cmp-tabs__controler");var c=n[a].querySelector(".cmp-tabs__controler").id,s=n[a].querySelector(".cmp-tabs__tablist");t=h(s,"#"+c),p(s.children),x(s),b(s.children),f(s.children),e.removeAttribute("aria-label"),e.setAttribute("tabindex","-1")}window.addEventListener("resize",(function(){v(),e&&(e.removeAttribute("aria-label"),e.setAttribute("tabindex","-1"))})),v(),e&&(e.removeAttribute("aria-label"),e.setAttribute("tabindex","-1"))}}}}();"loading"!==document.readyState?o.init():document.addEventListener("DOMContentLoaded",(function(){o.init()}))},function(t,e){function n(){var t=document.querySelector(".cmp-notification");if(t){var e=t.querySelector("#cmp-notification__close-button");e&&e.addEventListener("click",(function(){t.classList.add("hide-notification");var e=document.getElementById("main");e&&(e.setAttribute("tabindex","-1"),e.focus())}))}}"loading"!==document.readyState?n():document.addEventListener("DOMContentLoaded",n)},function(t,e){var n=function(){var t;document.querySelector("#insights-article-detail")&&((t=document.querySelector("#insights-article-detail")).classList.add("aem-Grid","aem-Grid--12"),t.children[0].classList.value="",t.children[0].classList.value="aem-GridColumn aem-GridColumn--default--10 aem-GridColumn--offset--default--1 aem-GridColumn--tabletportrait--10 aem-GridColumn--offset--tabletportrait--1 aem-GridColumn--phone--12 aem-GridColumn--offset--phone--0 no-padding-desktop",console.log(t.children[0].classList))};"loading"!==document.readyState?n():document.addEventListener("DOMContentLoaded",n)},function(t,e,n){"use strict";var i=n(0);function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw o}}}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==e);s=!0);}catch(t){l=!0,r=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s,l,u,d,h="tdsite:tdam/insights/",f="CAT-1",p=!1,m=0,g=0,y=!1;b();var v=function(){var t=document.querySelector(".cmp-insights-filter");null!==t&&function(t){var e,n,a,c,w,E,L=document.querySelector(".cmp-insights-filter__container-first-level-filter-buttons__block"),k=document.querySelector(".cmp-insights-filter__container-second-level-filter-buttons"),C=document.querySelector(".cmp-insights-filter__results"),T=document.querySelector(".cmp-insights-filter__container-load-more-btn-main"),M=document.querySelector(".cmp-insights-filter__container-clear-button .clear-btn"),q=document.querySelector(".cmp-insights-filter__container-pagination-block"),I=document.querySelector(".cmp-insights-filter__container-pagination-block__result"),O=document.querySelector(".cmp-insights-filter__container-error");new Promise((function(i,r){sessionStorage.locale!=geoLocationLang?(a=void 0!==t.getAttribute("data-primary-url")?t.getAttribute("data-primary-url")+".tags.".concat(geoLocationLang,".json"):"",c=t.getAttribute("data-grid-url")+".json",w=fetch(a).then((function(t){return t.json()})),E=fetch(c).then((function(t){return t.json()})),Promise.all([w,E]).then((function(t){var r=o(t,2),a=r[0],c=r[1];e=a,n=c,sessionStorage.setItem("primaryData",JSON.stringify(e)),sessionStorage.setItem("gridData",JSON.stringify(n)),sessionStorage.setItem("locale",geoLocationLang),i()})).catch((function(t){r("Error in API")}))):(e=JSON.parse(sessionStorage.primaryData),n=JSON.parse(sessionStorage.gridData),i())})).then((function(t){var a,c,w;
1void 0!==e&&void 0!==n&&(a=L,c=e,w="",Object.entries(c).forEach((function(t){var e=o(t,2),n=e[0],i=e[1];n.startsWith("CAT-")&&(w+='<div class="td-multi-single-select-button-wrapper cmp-insights-filter__container-first-level-filter-buttons__block-container">\n <input type="radio" value="'.concat(n,'" name="firstLevelFilter" id="').concat(n,'">\n <label class="cmp-insights-filter__container-first-level-filter-buttons__block-container__label" for="').concat(n,'">').concat(i.Title,"</label>\n </div>"),m++)})),a.innerHTML=w,document.getElementById("CAT-1").checked=!0,setTimeout((function(){A(a)}),500),function(t,e){var n="";Object.entries(e["CAT-1"].tags).forEach((function(t){var e=o(t,2),i=(e[0],e[1]);n+='<div class="aem-GridColumn aem-GridColumn--default--3 aem-GridColumn--tabletportrait--3 aem-GridColumn--tabletlandscape--3 aem-GridColumn--phone--6 cmp-insights-filter__container-second-level-filter-buttons__block">\n <div class="cmp-insights-filter__container-second-level-filter-buttons__block-container cmp-text">\n <div class="cmp-insights-filter__container-second-level-filter-buttons__block-container-checkbox-block">\n <input type="checkbox" name="'.concat(i.name,'" value="').concat(i.name,'" id="').concat(i.name,'">\n <label for="').concat(i.name,'">\n ').concat(i.Title,"\n </label>\n </div>\n </div>\n </div>"),g++})),t.innerHTML=n}(k,e),x(e,k),S(C,n.gridResults,".cmp-insights-filter__results .cmp-insights-filter__results--item",".cmp-insights-filter__results__block h2",l,T,I),function(t,e,n,i,r){var o=document.querySelector(".cmp-insights-filter__results"),a=document.querySelector(".cmp-insights-filter__container-pagination-block__result");n.querySelectorAll(".td-multi-single-select-button-wrapper").forEach((function(n){n.addEventListener("click",(function(c){if("INPUT"===c.target.tagName){var s=n.querySelector("input").value;if(f!==s){f=s,b();var u=_(t.gridResults,s);x(e,i),S(o,u,".cmp-insights-filter__results .cmp-insights-filter__results--item",".cmp-insights-filter__results__block h2",l,r,a)}}}))}))}(n,e,L,k,T),function(t,e,n,o,a){e.querySelectorAll("input[type=checkbox]").forEach((function(c){["click","keypress"].forEach((function(p){c.addEventListener(p,(function(m){if("click"===p||"keypress"===p&&(m.keyCode===i.m.ENTER||m.keyCode===i.m.SPACE)){if("INPUT"!==m.target.tagName)return;c.click(),function(t,e,n,i,o,a){l=!1,s=9;var c=t.value,p=[];t.checked&&""!==c?(u++,function(t,e){d=d.concat(t.gridResults.filter((function(t){var n,i=r(t.cat);try{for(i.s();!(n=i.n()).done;){var o=n.value;if((o.includes("".concat(h).concat(f,"/"))||"CAT-1"===f)&&o.endsWith("/".concat(e))&&!d.includes(t))return t}}catch(t){i.e(t)}finally{i.f()}return""})))}(e,c)):(u--,p=function(t){var e=[];return t.querySelectorAll("input[type=checkbox]").forEach((function(t){t.checked&&e.push(t.value)})),e}(n),function(t,e){d=t.gridResults.filter((function(t){var n,i=r(t.cat);try{for(i.s();!(n=i.n()).done;){var o=n.value;if((o.includes("".concat(h).concat(f,"/"))||"CAT-1"===f)&&e.includes(o.split("/").pop()))return t}}catch(t){i.e(t)}finally{i.f()}return""}))}(e,p));!function(t,e,n,i,r,o,a){if(0==d.length&&0==u){var c=_(t.gridResults,f);S(e,c,n,i,r,o,a)}else S(e,d,n,i,r,o,a)}(e,i,".cmp-insights-filter__results .cmp-insights-filter__results--item",".cmp-insights-filter__results__block h2",l,o,a)}(c,t,e,n,o,a)}}))}))}))}(n,k,C,T,I),function(t,e,n){if(!p){var i=".cmp-insights-filter__results .cmp-insights-filter__results--item",r=".cmp-insights-filter__results__block h2",o=document.querySelector(".cmp-insights-filter__results"),a=document.querySelector(".cmp-insights-filter__container-pagination-block__result");e.addEventListener("click",(function(n){if(s+=9,l=!0,0==d.length&&0==u){var c=_(t.gridResults,f);S(o,c,i,r,l,e,a)}else S(o,d,i,r,l,e,a)})),n.addEventListener("click",(function(t){f="CAT-1",b(),v(),y=!0})),p=!0}}(n,T,M),function(t){t||function(){if(window.location.href.includes("?")){var t=new URLSearchParams(window.location.search.toLowerCase()),e=t.get("cat"),n=t.get("subcat");e>0&&e<=m&&document.getElementById("CAT-"+e).click(),null!==n&&(n=n.split(",")).forEac
1h((function(t){t>0&&t<=g&&document.getElementById("SUBCAT-"+t).click()}))}}()}(y),O.style.display="none",M.style.display="block",T.style.display="block",q.style.display="block")}),(function(t){console.log(t),O.style.display="block",M.style.display="none",T.style.display="none",q.style.display="none"}))}(t)};function b(){s=9,l=!1,u=0,d=[]}function x(t,e){e.querySelectorAll("input[type=checkbox]").forEach((function(e){e.checked=!1,e.disabled=!0;var n,i=r(t[f].tags);try{for(i.s();!(n=i.n()).done;){var o=n.value;e.value===o.name&&(e.disabled=!1)}}catch(t){i.e(t)}finally{i.f()}}))}function _(t,e){return t.filter((function(t){if("CAT-1"===e)return t;var n,i=r(t.cat);try{for(i.s();!(n=i.n()).done;){if(n.value.includes(h+e))return t}}catch(t){i.e(t)}finally{i.f()}}))}function S(t,e,n,r,o,a,c){var l="",u=c.getAttribute("data-result-copy");e.sort((function(t,e){return new Date(e.publishDate)-new Date(t.publishDate)})),c.innerHTML=u,c.querySelector(".resultCount").innerHTML=s>e.length?e.length:s,c.querySelector(".totalCount").innerHTML=e.length;for(var d=s-9;d<s&&d<e.length;d++){var h=e[d],f='<section class="cmp-insights-filter__results__block">\n <div class="cmp-insights-filter__results__block--title">\n <h2>\n <a href="'.concat(h.path,'" target="').concat(h.target,'">').concat(h.insightTitle,'</a>\n </h2>\n </div>\n <div class="cmp-insights-filter__results__block--info-content-text">\n ').concat(h.description,'\n </div>\n <div class="cmp-insights-filter__results__block--info-content-text">\n <p><span class="date">').concat(h.localePublishDate,'</span> <span class="type">').concat(h.articleType,"</span></p>\n </div>\n </section>");if(l+='<div class="aem-GridColumn aem-GridColumn--phone--12 aem-GridColumn--tabletportrait--4 aem-GridColumn--tabletlandscape--4 aem-GridColumn--default--4 cmp-insights-filter__results--item">'+f+"</div>",o){var p=document.createElement("div"),m=void 0;p.classList.add("aem-GridColumn","aem-GridColumn--phone--12","aem-GridColumn--tabletportrait--4","aem-GridColumn--tabletlandscape--4","aem-GridColumn--default--4","cmp-insights-filter__results--item"),p.innerHTML=f,document.querySelectorAll(".remove-border-bottom").forEach((function(t){t.classList.remove("remove-border-bottom")})),t.appendChild(p),d==s-9&&((m=p.getElementsByTagName("a")[0]).tabIndex=-1,m.ariaLive="assertive",m.focus())}}o||(t.innerHTML=l),e.length<=9||s>=e.length?a.style.display="none":a.style.display="block",window.innerWidth>=i.l.SM&&setTimeout((function(){w(n,r,0,3)}),500)}function w(t,e,n,i){var r=document.querySelectorAll(t);if(!(i<=r.length))return Array.prototype.slice.call(r,n,i).forEach((function(t,e){t.classList.add("remove-border-bottom")})),!1;w(t,e,n+3,i+3),i===r.length&&r.length%3==0&&Array.prototype.slice.call(r,n,i).forEach((function(t,e){t.classList.add("remove-border-bottom")}))}function A(t){if(window.outerWidth>=i.l.SM){var e=0;t.querySelectorAll(".td-multi-single-select-button-wrapper").forEach((function(t){t.querySelector("label").style.height="inherit"})),t.querySelectorAll(".td-multi-single-select-button-wrapper").forEach((function(t){e=t.querySelector("label").offsetHeight>e?t.querySelector("label").offsetHeight:e})),t.querySelectorAll(".td-multi-single-select-button-wrapper").forEach((function(t){t.querySelector("label").style.height="".concat(e,"px")}))}else t.querySelectorAll(".td-multi-single-select-button-wrapper").forEach((function(t){t.querySelector("label").style.height="inherit"}))}window.addEventListener("resize",(function(){null!==document.querySelector(".cmp-insights-filter__container-first-level-filter-buttons__block")&&A(document.querySelector(".cmp-insights-filter__container-first-level-filter-buttons__block"));null!==document.querySelector(".cmp-insights-filter__results")&&function(t,e){if(window.outerWidth>=i.l.SM){w(".cmp-insights-filter__results--item",document.querySelector(".cmp-insights-filter__results__block h2"),t,e)}else{document.querySelectorAll(".cmp-insights-filter__results--item").forEach((function(t){t.classList.contains("remove-border-bottom")&&t.classList.remove("remove-border-bottom")}))}}(0,3)})),"loading"!==document.readyState?v():window.addEventListener("DOMContentLoaded",(function(){v()}))},function(t,e,n){"use strict";n(12);var i=n(0);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;
1!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==e);s=!0);}catch(t){l=!0,r=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=!1,c=!1,s=function(){var t=document.querySelectorAll(".cmp-insight-listing-caraousalblock"),e=document.querySelector(".cmp-insight-listing--previous"),n=document.querySelector(".cmp-insight-listing--next");0==a?(!function(t){for(var e=0;e<t.length;e++)0==e||1==e?(t[e].setAttribute("aria-hidden","false"),t[e].classList.remove("hidden")):(t[e].setAttribute("aria-hidden","true"),t[e].classList.add("hidden"))}(t),n.addEventListener("click",(function(){if(0==a){var e=r(l(t),2),n=e[0],i=e[1];i==t.length-1||(t[n].classList.add("hidden"),t[n].setAttribute("aria-hidden","true"),t[i+1].classList.remove("hidden"),t[i+1].setAttribute("aria-hidden","false"))}})),e.addEventListener("click",(function(){if(0==a){var e=r(l(t),2),n=e[0],i=e[1];0==n||(t[n-1].classList.remove("hidden"),t[n-1].setAttribute("aria-hidden","false"),t[i].classList.add("hidden"),t[i].setAttribute("aria-hidden","true"))}})),n.addEventListener("keyup",(function(e){if((e.keyCode===i.m.ENTER||e.keyCode===i.m.SPACE)&&0==a){var n=r(l(t),2),o=n[0],c=n[1];c==t.length-1||(t[o].classList.add("hidden"),t[o].setAttribute("aria-hidden","true"),t[c+1].classList.remove("hidden"),t[c+1].setAttribute("aria-hidden","false"))}})),e.addEventListener("keyup",(function(e){if((e.keyCode===i.m.ENTER||e.keyCode===i.m.SPACE)&&0==a){var n=r(l(t),2),o=n[0],c=n[1];0==o||(t[o-1].classList.remove("hidden"),t[o-1].setAttribute("aria-hidden","false"),t[c].classList.add("hidden"),t[c].setAttribute("aria-hidden","true"))}}))):(!function(t){for(var e=0;e<t.length;e++)0==e?(t[e].setAttribute("aria-hidden","false"),t[e].classList.remove("hidden")):(t[e].setAttribute("aria-hidden","true"),t[e].classList.add("hidden"))}(t),n.addEventListener("click",(function(){if(a){var e=u(t);e==t.length-1||(t[e].classList.add("hidden"),t[e].setAttribute("aria-hidden","true"),t[e+1].classList.remove("hidden"),t[e+1].setAttribute("aria-hidden","false"))}})),e.addEventListener("click",(function(){if(a){var e=u(t);0==e||(t[e-1].classList.remove("hidden"),t[e-1].setAttribute("aria-hidden","false"),t[e].classList.add("hidden"),t[e].setAttribute("aria-hidden","true"))}})),n.addEventListener("keyup",(function(){if((event.keyCode===i.m.ENTER||event.keyCode===i.m.SPACE)&&a){var e=u(t);e==t.length-1||(t[e].classList.add("hidden"),t[e].setAttribute("aria-hidden","true"),t[e+1].classList.remove("hidden"),t[e+1].setAttribute("aria-hidden","false"))}})),e.addEventListener("keyup",(function(){if((event.keyCode===i.m.ENTER||event.keyCode===i.m.SPACE)&&a){var e=u(t);0==e||(t[e-1].classList.remove("hidden"),t[e-1].setAttribute("aria-hidden","false"),t[e].classList.add("hidden"),t[e].setAttribute("aria-hidden","true"))}})))};function l(t){for(var e=0,n=[],i=0;i<t.length;i++)if("false"==t[i].getAttribute("aria-hidden")){if(2==e)break;n.push(i),e++}return n}function u(t){for(var e,n=0;n<t.length;n++)if("false"==t[n].getAttribute("aria-hidden")){e=n;break}return e}var d=function(t,e){t.querySelectorAll("a").forEach((function(t){t==e?t.classList.add("active-Link"):t.classList.remove("active-Link")}))},h=function(){document.querySelector(".cmp-insight-listing-mainblock")&&(window.innerWidth<=1024?(a=!0,s(),c=!0):(a=!1,c=!1,s()),window.addEventListener("resize",(function(t){window.innerWidth<=1024?(a=!0,c||(s(),c=!0)):(a=!1,c=!1,s())}))),document.querySelector(".cmp-jumplink")&&document.querySelectorAll(".cmp-jumplink").forEach((function(t){var e=t.querySelectorAll("a");window.innerWidth>=1024&&e[e.length-1].classList.add("download-Link"),window.addEventListener("resize",(function(t){window.innerWidth>=1024&&e[e.length-1].classList.add("download-Link")})),e.forEach((function(e){if(e.addEventListener("click",(function(n){d(t,e)})),e.getAttribute("href")){var n=e.getAttribute("href").replace("#","");document.getElementById(n)&&document.getElementById(n).setAttribute("tabindex","-1")}}
1))}))};"loading"!==document.readyState?h():document.addEventListener("DOMContentLoaded",h)},function(t,e,n){"use strict";function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var o=function(){var t=document.querySelectorAll(".cmp-item-list");if(t){var e,n=i(t);try{for(n.s();!(e=n.n()).done;){var r=e.value,o=r.querySelector(".cmp-item-list__load-more__button"),a=r.querySelector(".cmp-item-list__hidden--article--item"),c=r.querySelector(".cmp-item-list__list--group");o&&a&&c&&(s(o,a,c),c.classList.add("cmp-item-list__divider-style"))}}catch(t){n.e(t)}finally{n.f()}}function s(t,e,n){t.addEventListener("click",(function(){e.classList.toggle("show"),e.setAttribute("tabindex","-1"),e.focus(),t.setAttribute("aria-expanded",!0),t.classList.add("hide"),n.classList.remove("cmp-item-list__divider-style")}))}};"loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)},function(t,e,n){"use strict";var i=n(0),r=n(1),o=!1,a=0,c="",s=0,l="",u="",d=function(){var t=document.querySelector(".large-hero-banner-1-11");if(null!==t){var e=t.querySelector('[role="combobox"]'),n=t.querySelector(".cmp-large-hero-banner-1-11--content-container-right-aligned");if(null!==n&&n.classList.remove("container"),e){var d={button:t.querySelector('[role="combobox"]'),dropdown:t.querySelector('[role="listbox"]'),options:t.querySelectorAll('[role="option"]'),ctaButton:t.querySelector(".banner-1-7 .cmp-button"),announcement:t.querySelector("#announcement")};d.button.addEventListener("keydown",(function(t){!function(t,e){var n=t.key;if(!o&&["ArrowDown","ArrowUp","Enter"," "].includes(n))t.preventDefault(),h(e);else switch(n){case"Escape":h();break;case"ArrowDown":t.preventDefault(),function(t){a<t.options.length-1?a++:a=0;f(t)}(e);break;case"ArrowUp":t.preventDefault(),function(t){a>0?a--:a=t.options.length-1;f(t)}(e);break;case"Enter":case" ":t.preventDefault(),function(t){p(t.options[a],t)}(e);break;default:!function(t,e){var n=t.toLowerCase();c!==n&&(s=0);var i=Array.from(e.options).filter((function(t){return t.textContent.toLowerCase().startsWith(n)}));if(i.length){s===i.length&&(s=0);var r=i[s],o=Array.from(e.options).indexOf(r);a=o,f(h),s+=1}c=n}(n,e)}}(t,d)})),document.addEventListener("click",(function(t){!function(t,e){var n=e.button.contains(t.target),i=e.dropdown.contains(t.target);(n||!i&&o)&&h(e);var r=t.target.closest('[role="option"]');r&&p(r,e)}(t,d)})),d.dropdown&&function(t){var e=t.options[a],n=e.textContent;t.button.textContent=n,t.options.forEach((function(t){t.className.includes("active")&&t.removeChild(t.lastElementChild),t.classList.remove("active"),t.setAttribute("aria-selected","false")}
1)),e.innerHTML=e.innerHTML+'<span class="td-icon td-icon-checkMark selectedTickMark" aria-hidden="true"></span>',e.classList.add("active"),e.setAttribute("aria-selected","true"),document.querySelector(".large-hero-banner-1-11 .cmp-selection-dropdown-cta .cmp-banner-1-7__cta-types .banner-1-7 a").href=e.getAttribute("data-url")}(d)}if(null!==t.querySelector("video")){var m=t.querySelector("video"),g=t.querySelector("#optVideo-banner-file-container a");l=t.querySelector("#optVideo-banner-file-container").getAttribute("data-playBtn-label"),u=t.querySelector("#optVideo-banner-file-container").getAttribute("data-pauseBtn-label"),function(t,e){null!==e&&null!==t&&(e.querySelector(".pause-icon").style.display="none",e.querySelector(".play-icon").style.display="block",e.setAttribute("aria-label",u),e.addEventListener("click",(function(n){n.stopPropagation(),t.paused?(t.play(),e.querySelector(".play-icon").style.display="none",e.querySelector(".pause-icon").style.display="block",e.setAttribute("aria-label",l)):(t.pause(),e.querySelector(".pause-icon").style.display="none",e.querySelector(".play-icon").style.display="block",e.setAttribute("aria-label",u))})),t.addEventListener("ended",(function(){e.querySelector(".pause-icon").style.display="none",e.querySelector(".play-icon").style.display="block",e.setAttribute("aria-label",u)}),!1))}(m,g),function(t,e){var n=t.getAttribute("autoplay");Object(r.c)()==i.e.FILTER_DESKTOP&&"true"==n?(e.querySelector(".pause-icon").style.display="block",e.querySelector(".play-icon").style.display="none",e.setAttribute("aria-label",l)):(t.pause(),e.setAttribute("aria-label",u))}(m,g),window.innerWidth<i.l.SM&&setTimeout((function(){m.play().then((function(t){console.log("playing start",t),m.pause(),g.setAttribute("aria-label",u)})).catch((function(t){console.log("error playing",t)}))}),150)}}};function h(t){t.dropdown.classList.toggle("active"),o=!o,t.button.setAttribute("aria-expanded",o.toString()),o?f(t):t.button.focus()}function f(t){var e=t.options[a];e.classList.add("current"),e.focus(),e.scrollIntoView({block:"nearest"}),t.options.forEach((function(t,n){t!==e&&t.classList.remove("current")})),function(t,e){e.announcement.setAttribute("aria-label",t),e.announcement.setAttribute("aria-live","polite"),setTimeout((function(){e.announcement.textContent="",e.announcement.setAttribute("aria-live","off")}),1e3)}("You're currently focused on ".concat(e.ariaLabel),t)}function p(t,e){var n=t.textContent;e.button.textContent=n,e.options.forEach((function(t){t.className.includes("active")&&t.removeChild(t.lastElementChild),t.classList.remove("active"),t.setAttribute("aria-selected","false")}
1)),t.innerHTML=t.innerHTML+'<span class="td-icon td-icon-checkMark selectedTickMark" aria-hidden="true"></span>',t.classList.add("active"),t.classList.add("current"),t.setAttribute("aria-selected","true"),document.querySelector(".large-hero-banner-1-11 .cmp-selection-dropdown-cta .cmp-banner-1-7__cta-types .banner-1-7 a").href=t.getAttribute("data-url"),h(e),e.options.forEach((function(t,e){t.className.includes("active")&&(a=e)}))}"loading"!==document.readyState?d():window.addEventListener("DOMContentLoaded",(function(){d()}))},function(t,e){},function(t,e,n){"use strict";var i=n(0),r=n(7),o=n(2),a=n(15),c=n(28),s=function(){var t=document.body,e=t.querySelector(".cmp-mb-navigation-header"),n="No matching content found",s="See All Results";if(e){var l=function(n){var i=m.querySelector(".".concat(p,"__show-menu"));X.classList.remove("".concat(p,"__show-overlay")),setTimeout((function(){m.classList.remove("".concat(p,"__show-menu-bar")),i.style.display="none"}),200);var r=e.querySelector('[aria-controls="'+i.id+'"]');r.setAttribute("aria-expanded","false"),J(!1),t.classList.remove("noscroll"),t.classList.remove("noscroll-ios"),t.classList.remove("td-no-focus-outline"),r.focus(),i.classList.remove("".concat(p,"__show-menu"))},u=function(t){var e=t.currentTarget.querySelectorAll(Z),n=Array.prototype.slice.call(e),r=e.length;if(t.keyCode&&t.keyCode===i.m.TAB){var o=n.indexOf(t.target);if(o>=0){if(e[o].parentElement.parentElement.classList.contains("cmp-mb__nav-expand-content")){var a=e[o].parentElement.parentElement,c=2,s=new Array;for(var u in a.childNodes)if(1==a.childNodes[u].nodeType){if(a.childNodes[u].classList.contains("cmp-mb__nav-expand"))for(var d in a.childNodes[u].childNodes)if(1==a.childNodes[u].childNodes[d].nodeType)if(a.childNodes[u].childNodes[d].classList.contains("cmp-mb__nav-expand-content")){var h=a.childNodes[u].childNodes[d];for(var f in h.childNodes)1==h.childNodes[f].nodeType&&s.push(h.childNodes[f]);c++}else s.push(a.childNodes[u].childNodes[d]);s.push(a.childNodes[u])}var p=n.indexOf(s[0].querySelector("a"))+s.length-c;o>=p&&e[p].focus()}if(e[r-1].parentElement.parentElement.classList.contains("cmp-mb-navbar__accordion-content-sub"))if(e[r-1].parentElement.parentElement.classList.contains("cmp-mb-navbar__accordion-show"))o>=r-2?e[r-2].focus():e[o].focus();else{var m=e[r-1].parentElement.parentElement.childNodes;o>=r-m.length-2?e[r-m.length-2].focus():e[o].focus()}else o>=r-2?e[r-2].focus():e[o].focus()}}else t.keyCode&&t.keyCode===i.m.ESCAPE&&l()},d=function(t){var e=t.currentTarget.querySelectorAll(Z),n=Array.prototype.slice.call(e),r=t.target.getAttribute("aria-expanded");t.keyCode&&t.keyCode===i.m.ENTER&&"true"===r&&e[n.indexOf(t.target)+1].focus()},h=function(t,e){var n=t.innerHTML,i=t.closest(".".concat(p,"__accordion-region")).querySelector(".".concat(p,"__accordion-expand")),o=i.nextElementSibling,a=o.querySelector(".active"),c=m.querySelector("#screenReaderText").value;i.querySelector(".".concat(p,"__selectedProvinceName")).innerHTML=n,z&&(o.querySelector(".cmp-mb-navigation-header__forscreenreader").remove(),o.querySelector(".selectedTickMark").remove(),a.classList.remove("active")),t.parentElement.classList.add("active"),t.innerHTML+='<span class="td-icon td-icon-checkMark selectedTickMark" aria-hidden="true"></span><span class="cmp-mb-navigation-header__forscreenreader">'+c+"</span>",z=!0;var s=t.getAttribute("data-key")?t.getAttribute("data-key").toLowerCase():"";s&&r.a.redirectToProvincePage(s,e)},f=function(t){t&&(tt.classList.remove("hidden"),null!==Q&&Q.classList.add("hidden"))},p="cmp-mb-navbar",m=e.querySelector(".".concat(p)),g=document.querySelector("#humbergerIntellAPIdata"),y="";console.log(g.value),g&&g.value&&(y=JSON.parse(g.value)),console.log(y);var v=""==y?{}:y,b=v.mbApiURL,x=v.clientID,_=v.noOfSuggestionToDisplay,S=v.buttonUrl,w=v.searchCategories,A=v.predictiveSearchErrorMessage,E=v.seeAllResultsLabelText,L=v.predictiveSearchLabelText,k=v.recentSearchLabelText,C=v.searchsuggestiontabsLabelText,T=v.searchclosebtnLabelText,M=v.PredictiveErrormsgsecondLine,q=v.RecentVisitsLabelText,I=v.searchPageIconList;console.log(_);var O=e.querySelector(".cmp-mb-navbar__search-input"),P=e.querySelector("#cmp-mb-navbar__suggestion-dropdown"),N=e.querySelector(".cmp-mb-navbar__search-submit");n=A,s=E;console.log("searchIcon",N),Object(c.a)(b,x,5,geoLocationLang,O,"cmp-mb-navbar__suggestion-dropdown","cmp-mb-navbar__search-close",o.i,S,w,n,s,N,L,k,C,T,!1,M,q,I);var D=e.querySelector('a[href="#tdapplink"]');if(null!==D){var B=navigator.userAgent.toLowerCase(),j=document.documentElement.lang.toLowerCase();D.addEventListener("click",(function(t){t.preventDefault();var e=t.target.getAttribute("target"),n=e&&"_blank"===e?"_blank":"_self";
1B.indexOf(i.r.ANDROID)>-1?window.open(i.x.ANDROIDURL,n):B.indexOf(i.r.MAC)>-1?window.open(i.x.MACURL,n):j&&(j.indexOf(i.r.LANG)>-1?window.open(i.x.OTHERENURL,n):window.open(i.x.OTHERFRURL,n))}))}var R=r.a.getProvinceFromCookie(),H=m.querySelectorAll(".".concat(p,"__accordion-region .").concat(p,"__accordion-content li a")),z=!1;H.forEach((function(t){t.addEventListener("click",(function(t){h(t.target,!0)})),document.getElementById("defaultCountry").click()}));var F=e.querySelector(".".concat(p,"__accordion-segment"));if(null!==F){var G=F.querySelector(".".concat(p,"__accordion-content .active a")),W=F.querySelector(".selected-text"),U=null!==G?G.childNodes[0].nodeValue:null;null!==W&&(W.innerHTML=U)}m.querySelectorAll(".".concat(p,"__accordion-expand")).forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),this.parentElement.classList.toggle("".concat(p,"__accordion-active")),this.nextElementSibling.classList.toggle("".concat(p,"__accordion-show")),this.setAttribute("aria-expanded","false"===this.getAttribute("aria-expanded"))}))}));var Y=m.querySelectorAll(".cmp-mobile-nav-bar__multilayout .".concat(p,"__accordion-expand"));Y&&Y.forEach((function(t){"true"===t.getAttribute("data-Expansion")&&(t.parentElement.classList.toggle("".concat(p,"__accordion-active")),t.nextElementSibling.classList.toggle("".concat(p,"__accordion-show")),t.setAttribute("aria-expanded","false"===t.getAttribute("aria-expanded")))}));var V=e.querySelector(".cmp-mb-navbar__menu-primary").querySelectorAll(".".concat(p,"__accordion-content li"));V&&V.forEach((function(t){t.getAttribute("data-mobile-nav")&&"active"===t.getAttribute("data-mobile-nav")&&(t.parentElement.parentElement.classList.add("".concat(p,"__accordion-active")),t.parentElement.classList.add("".concat(p,"__accordion-show")),t.parentElement.previousElementSibling.setAttribute("aria-expanded","false"===t.parentElement.previousElementSibling.getAttribute("aria-expanded")))}));var X=e.querySelector(".".concat(p,"__overlay"));
1e.querySelectorAll(".".concat(p,"__openMenubar")).forEach((function(n){n.addEventListener("click",(function(n){!function(n){var i=e.querySelector("#"+n.currentTarget.getAttribute("aria-controls")),r=i.querySelector($);n.currentTarget.setAttribute("aria-expanded","false"===n.currentTarget.getAttribute("aria-expanded")),m.classList.add("".concat(p,"__show-menu-bar")),X.classList.add("".concat(p,"__show-overlay")),t.classList.add("noscroll"),t.classList.add("noscroll-ios"),t.classList.remove("td-no-focus-outline"),J(!0),i.style.display="block",setTimeout((function(){i.classList.add("".concat(p,"__show-menu")),r.focus();var t=document.querySelector(".nav-level-1"),e=document.querySelector(".cmp-bottom-menu");t&&document.querySelectorAll(".cmp-mb__nav-expand-content").forEach((function(n){if(e){var i="height:"+(t.clientHeight+e.clientHeight)+"px";n.setAttribute("style",i)}else n.style.height=t.clientHeight}))}),100),i.addEventListener("keydown",u),i.addEventListener("keyup",d),K()}(n),P&&Object(o.b)(P,!0,!1),O&&(O.value="")}))}
1)),e.querySelectorAll(".".concat(p,"__closeMenubar")).forEach((function(t){t.addEventListener("click",(function(t){l()}))}));var $="a[href]:not([disabled]), button:not([disabled])",K=function(){if(console.log("called event for layered menu"),m){if(document.querySelector(".cmp-bottom-menu")){var t=document.querySelector(".cmp-bottom-menu").lastElementChild.querySelector("a");t&&t.addEventListener("blur",(function(t){null==t.relatedTarget.nextElementSibling&&document.querySelector(".cmp-mb-navbar__logo").querySelector("a").focus()}))}m.querySelectorAll(".cmp-mb__nav-expand-link").forEach((function(t){var e=t.parentElement.lastElementChild.lastElementChild.querySelector("a"),n=t.nextElementSibling.querySelector(".cmp-mb__nav-back-link");e.addEventListener("blur",(function(t){n.focus()})),t.addEventListener("keyup",(function(e){var n=t.getAttribute("aria-expanded"),i=t.nextElementSibling.querySelector(".cmp-mb__nav-back-link");"Shift"==e.key&&"true"==n&&i.focus(),i.addEventListener("focus",(function(e){i.addEventListener("keyup",(function(e){if("Enter"==e.key||"Space"==e.key){var n=t.parentElement.querySelector("a");n&&(n.setAttribute("aria-hidden","false"),n.setAttribute("tabindex","0"));for(var i=t.parentElement;i;)(i=i.previousElementSibling)&&(i.style.display="block",i.setAttribute("aria-hidden","false"),i.setAttribute("tabindex","0"));for(var r=t.parentElement;r;)(r=r.nextElementSibling)&&(r.style.display="block",r.setAttribute("aria-hidden","false"),r.setAttribute("tabindex","0"))}})),i.addEventListener("click",(function(e){var n=t.parentElement.querySelector("a");n&&(n.setAttribute("aria-hidden","false"),n.setAttribute("tabindex","0"));for(var i=t.parentElement;i;)(i=i.previousElementSibling)&&(i.style.display="block",i.setAttribute("aria-hidden","false"),i.setAttribute("tabindex","0"));for(var r=t.parentElement;r;)(r=r.nextElementSibling)&&(r.style.display="block",r.setAttribute("aria-hidden","false"),r.setAttribute("tabindex","0"))}))})),t.focus()})),t.addEventListener("click",(function(e){var n=t.nextElementSibling.querySelector(".cmp-mb__nav-back-link");"Shift"==e.key&&"true"==menuAria&&n.focus();var i=e.target.parentElement.querySelector("a");i&&(i.setAttribute("aria-hidden","true"),i.setAttribute("tabindex","-1"));for(var r=e.target.parentElement;r;)(r=r.previousElementSibling)&&(r.style.display="none",r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex","-1"));for(var o=e.target.parentElement;o;)(o=o.nextElementSibling)&&(o.style.display="none",o.setAttribute("aria-hidden","true"),o.setAttribute("tabindex","-1"));n.addEventListener("click",(function(e){var n=t.parentElement.querySelector("a");n&&(n.setAttribute("aria-hidden","false"),n.setAttribute("tabindex","0"));for(var i=t.parentElement;i;)(i=i.previousElementSibling)&&(i.style.display="block",i.setAttribute("aria-hidden","false"),i.setAttribute("tabindex","0"));for(var r=t.parentElement;r;)(r=r.nextElementSibling)&&(r.style.display="block",r.setAttribute("aria-hidden","false"),r.setAttribute("tabindex","0"));t.focus()}))})),t.addEventListener("blur",(function(e){var n=t.getAttribute("aria-expanded");console.log(n),setTimeout((function(){"true"==n&&t.nextElementSibling.querySelector(".cmp-mb__nav-back-link").focus()}),200)}))}))}},J=function(e){var n=t.querySelector("footer"),i=".header-utility-bar-v2,.cmp-mb-header,.navigation",r=t.querySelector("main"),o=document.querySelector(".cmp-emergency-message");t.querySelectorAll(i).forEach((function(t){return t.setAttribute("aria-hidden",e)})),null!==r&&r.setAttribute("aria-hidden",e),null!==n&&n.setAttribute("aria-hidden",e),null===o||o.classList.contains("hidden")||o.setAttribute("aria-hidden",e)},Z='.cmp-mb__nav-expand-link a[href], a[href]:not([disabled]):not(.cmp-mb-navbar__accordion-content a[href]), button:not([disabled]), .cmp-mb-navbar__accordion-show a[href], input[type="submit"], input[type="text"]',Q=e.querySelector(".cmp-header-mobile__section-right"),tt=e.querySelector(".cmp-header-mobile__section-right-logged-in-state");if(null!==tt){var et=a.a.registerLoginStateCallBack(f());f(et)}null!=R&&""!==R&&function(t){for(var e=function(t){var e=[];
1return JSON.parse(province_list).provinces.forEach((function(n){if(n.key.toLowerCase()===t.toLowerCase()){var i=n.name,r=n.redirectUrl;e=[i,t,r]}})),e}(t),n=0;n<H.length;n++)if(H[n].getAttribute("data-key").toLowerCase()===e[1].toLowerCase()){h(H[n],!1);break}}(R)}};"loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s),document.addEventListener("DOMContentLoaded",(function(){[].slice.call(document.querySelectorAll(".cmp-mb__nav-expand")).forEach((function(t){t.querySelector(".cmp-mb__nav-link").addEventListener("click",(function(){t.classList.add("active"),t.querySelector(".cmp-mb__nav-link").setAttribute("aria-expanded",!0),console.log(t),t.querySelector("ul").querySelector("a").focus()})),t.querySelector(".cmp-mb__nav-back-link").addEventListener("click",(function(){t.classList.remove("active"),t.querySelector(".cmp-mb__nav-link").setAttribute("aria-expanded",!1),t.querySelector(".cmp-mb__nav-link").focus(),console.log("called close")})),t.querySelector(".cmp-mb__nav-back-link").addEventListener("keyup",(function(e){"Enter"!=e.key&&"Space"!=e.key||(t.classList.remove("active"),t.querySelector(".cmp-mb__nav-link").setAttribute("aria-expanded",!1),t.querySelector(".cmp-mb__nav-link").focus(),console.log("called close"))}))}))}),!1)},function(t,e,n){"use strict";var i=n(5);function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function a(){var t=document.querySelector(".cmp-nav-mobile-td-standards");if(null!==t){var e=i.a.cookieGetItem("theme"),n=t.querySelectorAll(".cmp-mobile-nav-bar__accordion-theme li"),o=t.querySelectorAll(".cmp-mobile-nav-bar__accordion-theme li a"),a=t.querySelector(".cmp-mobile-nav-bar__accordion-theme li.active"),c=t.querySelector(".cmp-mobile-nav-bar__selected-theme");if(null!==document.querySelector(".cmp-mobile-nav-bar__accordion-theme")){if(e){a&&(a.querySelector(".cmp-nav-mobile__forscreenreader").remove(),a.querySelector(".selectedTickMark").remove(),a.classList.remove("active"));var s,l=r(n);try{for(l.s();!(s=l.n()).done;){var u=s.value,d=u.querySelector(".cmp-mobile-nav-bar__theme-value").innerHTML,h=u.querySelector("a");d===e&&(u.classList.add("active"),h.innerHTML+='<span class="td-icon td-icon-checkMark selectedTickMark" aria-hidden="true"></span><span class="cmp-nav-mobile__forscreenreader">Selected</span>',c.innerHTML=e)}}catch(t){l.e(t)}finally{l.f()}}else a&&(document.cookie="theme="+a.querySelector(".cmp-mobile-nav-bar__theme-value").innerHTML,c.innerHTML=a.querySelector(".cmp-mobile-nav-bar__theme-value").innerHTML);var f,p=r(o);try{var m=function(){var t=f.value;t.addEventListener("click",(function(e){document.cookie="theme="+t.querySelector(".cmp-mobile-nav-bar__theme-value").innerHTML,window.location.reload()}))};for(p.s();!(f=p.n()).done;)m()}catch(t){p.e(t)}finally{p.f()}}}}"loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)},function(t,e,n){"use strict";var i=n(0),r=n(7),o=n(2),a=n(15),c=n(9),s=function(){var t=document.body,e=t.querySelector(".cmp-nav-mobile");if(e){var n=function(t){for(var e=function(t){var e=[];return JSON.parse(province_list).provinces.forEach((function(n){if(n.key.toLowerCase()===t.toLowerCase()){var i=n.name,r=n.redirectUrl;e=[i,t,r]}}
1)),e}(t),n=0;n<q.length;n++)if(q[n].getAttribute("data-key").toLowerCase()===e[1].toLowerCase()){d(q[n],!1);break}},s=function(n){var i=m.querySelector(".".concat(p,"__show-menu"));V.classList.remove("".concat(p,"__show-overlay")),setTimeout((function(){m.classList.remove("".concat(p,"__show-menu-bar")),i.style.display="none"}),200);var r=e.querySelector('[aria-controls="'+i.id+'"]');r.setAttribute("aria-expanded","false"),$(!1),t.classList.remove("noscroll"),t.classList.remove("td-no-focus-outline"),r.focus(),i.classList.remove("".concat(p,"__show-menu"))},l=function(n){var r=n.currentTarget.querySelectorAll(K),o=Array.prototype.slice.call(r),a=r.length;if(n.keyCode&&n.keyCode===i.m.TAB){var c=o.indexOf(n.target)+1,l=o.indexOf(n.target)-1;l=-1===l?a-1:l,r[n.shiftKey?l%a:c%a].focus(),n.preventDefault()}else if(n.keyCode&&n.keyCode===i.m.ESCAPE)s();else if(n.keyCode&&n.keyCode===i.m.ENTER){var u=n.target.getAttribute("href");if(null!==u&&u.indexOf("td-open-window")>-1){var d=u.split("~");setTimeout((function(){e.querySelector("#".concat(d[1]," .").concat(p,'__mega-menu-item a[href^="#td-back-window"]')).focus()}),50)}else if(null!==u&&u.indexOf("td-back-window")>-1){var h=n.target.parentNode.parentNode.id;setTimeout((function(){t.querySelector(".cmp-nav-mobile-tdi .".concat(p,'__primary-menu-item a[href^="#td-open-window~').concat(h,'"]')).focus()}),50)}}},u=function(t){var e=t.currentTarget.querySelectorAll(K),n=Array.prototype.slice.call(e),r=t.target.getAttribute("aria-expanded");t.keyCode&&t.keyCode===i.m.ENTER&&"true"===r&&e[n.indexOf(t.target)+1].focus()},d=function(e,n){var i;i=null!==t.querySelector(".cmp-nav-mobile-tdi .".concat(p,"__accordion-region"))?e.firstChild.nodeValue.trim():e.innerHTML;var o=e.closest(".".concat(p,"__accordion-region")).querySelector(".".concat(p,"__accordion-expand")),a=o.nextElementSibling,c=a.querySelector(".active"),s=m.querySelector("#screenReaderText").value;o.querySelector(".".concat(p,"__selectedProvinceName")).innerHTML=i,I&&(a.querySelector(".cmp-nav-mobile__forscreenreader").remove(),a.querySelector(".selectedTickMark").remove(),c.classList.remove("active")),e.parentElement.classList.add("active"),e.innerHTML+='<span class="td-icon td-icon-checkMark selectedTickMark" aria-hidden="true"></span><span class="cmp-nav-mobile__forscreenreader">'+s+"</span>",I=!0;var l=e.getAttribute("data-key").toLowerCase();r.a.redirectToProvincePage(l,n)},h=function(t){t&&(Z.classList.remove("hidden"),null!==J&&J.classList.add("hidden"))},f=function(){null!=M&&""!==M&&n(M)},p="cmp-mobile-nav-bar",m=e.querySelector(".".concat(p)),g=document.querySelector("#humbergerIntellAPIdata"),y="";g&&Object(o.h)(g.value)&&(y=JSON.parse(g.value));var v=""==y?{}:y,b=v.minSearchLength,x=v.apiURL,_=v.interfaceID,S=v.noOfSuggestionToDisplay,w=v.buttonUrl,A=e.querySelector(".cmp-mobile-nav-bar__search-input"),E=e.querySelector(".cmp-mobile-nav-bar__search-submit"),L=e.querySelector("#cmp-mobile-nav-bar__suggestion-dropdown");x&&_&&Object(o.c)("".concat(x,"/json/?interfaceID=").concat(_)),A&&A.addEventListener("keyup",(function(t){if(t.preventDefault(),t.keyCode!==i.m.ENTER){var e="".concat(x,"/IntelliSuggest?interfaceID=").concat(_,"&term=");Object(o.d)(this.value,e,S,b,w,o.k,L)}else Object(o.i)(w,this.value,!1)})),E&&E.addEventListener("click",(function(){Object(o.i)(w,A.value,!1)})),A&&A.addEventListener("blur",(function(t){Object(o.f)(t,L)}));var k=e.querySelector('a[href="#tdapplink"]');if(null!==k){var C=navigator.userAgent.toLowerCase(),T=document.documentElement.lang.toLowerCase();k.addEventListener("click",(function(t){t.preventDefault();var e=t.target.getAttribute("target"),n=e&&"_blank"===e?"_blank":"_self";C.indexOf(i.r.ANDROID)>-1?window.open(i.x.ANDROIDURL,n):C.indexOf(i.r.MAC)>-1?window.open(i.x.MACURL,n):T&&(T.indexOf(i.r.LANG)>-1?window.open(i.x.OTHERENURL,n):window.open(i.x.OTHERFRURL,n))}))}var M=r.a.getProvinceFromCookie(),q=m.querySelectorAll(".".concat(p,"__accordion-region .").concat(p,"__accordion-content li a")),I=!1,O=null!==t.querySelector(".cmp-nav-mobile-tdi"),P=!1;O&&(q.forEach((function(t){t.getAttribute("data-display-modal")&&"#cmp-modal~product-unavailable"===t.getAttribute("data-display-modal")&&(t.setAttribute("href","#cmp-modal~product-unavailable"),P=!0)})),P&&Object(c.c)(document)),q.forEach((function(t){t.addEventListener("click",(function(t){(!O||t.target.getAttribute("data-display-modal")&&"#cmp-modal~product-unavailable"===t.target.getAttribute("data-display-modal"))&&O||d(t.target,!0)}))}));var N=e.querySelector(".".concat(p,"__accordion-segment"));if(null!==N){var D=N.querySelector(".".concat(p,"__accordion-content .active a")),B=N.querySelector(".selected-text"),j=null!==D?D.childNodes[0].nodeValue:null;null!==B&&(B.innerHTML=j)}if(O){var R=".".concat(p,"__primary-menu"),H=".".concat(p,"__mega-menu"),z=e.querySelector(".".concat(p,"__menubar")),F=e.querySelector(R),G=F.querySelectorAll(".".concat(p,'__primary-menu-item a[href^="#td-open-window"]')),W=e.querySelectorAll(".".concat(p,"__mega-menu .").concat(p,'__mega-menu-item a[href^="#td-back-window"]'));G.forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault();var e=t.currentTarget.getAttribute("href").split("#")[1].split("~"),n=document.getElementById(e[1]);this.closest(R).classList.add("cmp-nav-list-inactive"),z.style.transform="translateX(150%)",this.closest(R).style.display="none",n.classList.remove("cmp-nav-list-inactive"),n.style.display="block",setTimeout((function(){z.style.transform="translateX(0)"}),250)}))})),W.forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),this.closest(H).classList.add("cmp-nav-list-inactive"),z.style.transform="translateX(-150%)",this.closest(H).style.display="none",F.classList.remove("cmp-nav-list-inactive"),F.style.display="block",setTimeout((function(){z.style.transform="translateX(0)"}),250)}))}))}
1m.querySelectorAll(".".concat(p,"__accordion-expand")).forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),this.parentElement.classList.toggle("".concat(p,"__accordion-active")),this.nextElementSibling.classList.toggle("".concat(p,"__accordion-show")),this.setAttribute("aria-expanded","false"===this.getAttribute("aria-expanded"))}))}));var U=m.querySelectorAll(".cmp-mobile-nav-bar__multilayout .".concat(p,"__accordion-expand"));U&&U.forEach((function(t){"true"===t.getAttribute("data-Expansion")&&(t.parentElement.classList.toggle("".concat(p,"__accordion-active")),t.nextElementSibling.classList.toggle("".concat(p,"__accordion-show")),t.setAttribute("aria-expanded","false"===t.getAttribute("aria-expanded")))}));var Y=e.querySelector(".cmp-mobile-nav-bar__menu-primary").querySelectorAll(".".concat(p,"__accordion-content li"));Y&&Y.forEach((function(t){t.getAttribute("data-mobile-nav")&&"active"===t.getAttribute("data-mobile-nav")&&(t.parentElement.parentElement.classList.add("".concat(p,"__accordion-active")),t.parentElement.classList.add("".concat(p,"__accordion-show")),t.parentElement.previousElementSibling.setAttribute("aria-expanded","false"===t.parentElement.previousElementSibling.getAttribute("aria-expanded")))}));var V=e.querySelector(".".concat(p,"__overlay"));
1e.querySelectorAll(".".concat(p,"__openMenubar")).forEach((function(n){n.addEventListener("click",(function(n){!function(n){var i=e.querySelector("#"+n.currentTarget.getAttribute("aria-controls")),r=i.querySelector(X);n.currentTarget.setAttribute("aria-expanded","false"===n.currentTarget.getAttribute("aria-expanded")),m.classList.add("".concat(p,"__show-menu-bar")),V.classList.add("".concat(p,"__show-overlay")),t.classList.add("noscroll"),t.classList.remove("td-no-focus-outline"),$(!0),i.style.display="block",setTimeout((function(){i.classList.add("".concat(p,"__show-menu")),r.focus()}),100),i.addEventListener("keydown",l),i.addEventListener("keyup",u)}(n),L&&Object(o.b)(L,!0,!1),A&&(A.value="")}))})),e.querySelectorAll(".".concat(p,"__closeMenubar")).forEach((function(t){t.addEventListener("click",(function(t){s()}))}));var X="a[href]:not([disabled]), button:not([disabled])",$=function(e){var n=t.querySelector("footer"),i=".header-utility-bar,.cmp-header-mobile,.siteheader-navigation",r=t.querySelector("main"),o=document.querySelector(".cmp-emergency-message");t.querySelectorAll(i).forEach((function(t){return t.setAttribute("aria-hidden",e)})),null!==r&&r.setAttribute("aria-hidden",e),null!==n&&n.setAttribute("aria-hidden",e),null===o||o.classList.contains("hidden")||o.setAttribute("aria-hidden",e)},K='a[href]:not([disabled]):not(.cmp-nav-list-inactive a[href]):not(.cmp-mobile-nav-bar__accordion-content a[href]), button:not([disabled]), .cmp-mobile-nav-bar__accordion-show a[href]:not(.cmp-nav-list-inactive a[href]), input[type="submit"], input[type="text"]',J=e.querySelector(".cmp-header-mobile__section-right"),Z=e.querySelector(".cmp-header-mobile__section-right-logged-in-state");if(null!==Z)h(a.a.registerLoginStateCallBack(h));""===M?document.addEventListener("geoLocationCookieSet",(function(){M=r.a.getProvinceFromCookie(),f()})):f()}var Q=document.querySelector(".cmp-mobile-nav-bar__mega-menu");if(!(Q&&Q.closest(".cmp-nav-mobile"))){var tt=document.querySelector(".tdi-mobile-navigation-megamenu");if(tt){var et='<div class="cmp-nav-mobile-tdi cmp-exp-frag-preview"> <div class="cmp-nav-mobile"> <ul class="cmp-mobile-nav-bar__menu-list"> '.concat(tt.innerHTML," </ul></div></div>");tt.innerHTML=et}}};"loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s)},function(t,e,n){"use strict";var i=n(1),r=n(9),o=n(0),a=n(13),c=n(43);function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var u=function(){var t=".cmp-card-bundle-12-3-a-b-c__product",e=".cmp-multi-product-shopping--feature",n=".cmp-card-bundle-12-3-a-b-c__compare-checkbox input",l='.cmp-multi-product-shopping--eligibility input[type="checkbox"]',u=".cmp-multi-product-shopping--eligibility .td-destructive";function d(d){var h,f,p,m=d.querySelectorAll(".cmp-card-bundle-12-3-a-b-c__variation-C"),g=d.querySelector(".cmp-multi-product-shopping--previous-cta a"),y=d.querySelectorAll("".concat(t)),v=d.querySelectorAll("".concat(n)),b=d.querySelector("".concat(".cmp-multi-product-shopping--warning")),x=d.querySelector("".concat(".cmp-multi-product-shopping--cta a")),_=d.querySelector("".concat(".cmp-multi-product-sh
1opping--warning .selection")),S=d.querySelector("".concat(".cmp-multi-product-shopping--warning .eligibility")),w=document.querySelector(".cmp-card-bundle-12-3-a-b-c__show-all"),A=null==S?void 0:S.querySelector(".cmp-text").innerHTML;if(window.scrollTo(0,0),C(),null!==m){var E,L=i.g.getQueryParamValue("acc"),k="true"===(null===(E=i.g.getQueryParamValue("redirect"))||void 0===E?void 0:E.toLowerCase());window.addEventListener("resize",M),!i.g.isEmpty(L)&&v.length>0&&function(e,n){var r=!1,o=null==e?void 0:e.split(",");Object(i.a)((function(){y.forEach((function(e){var i=e.dataset.prodId;null==o||o.forEach((function(e){var o=d.querySelector("input[value=".concat(e,"]"));if(o&&e===i&&!o.disabled)if(o.checked=!0,c.a.handleExclusiveAccounts(o)){o.closest("div.cmp-card-bundle-12-3-a-b-c__product").classList.add("cmp-card-bundle-12-3-a-b-c__product-border");var a=o.closest("".concat(t)).querySelector("".concat(l));a&&(a.checked=n,a.removeAttribute("disabled")),r||(r=null===o.offsetParent)}else o.checked=!1})),r&&(w.querySelector("a").click(),C())}))}),100)()}(L,k),v.forEach((function(e){e.addEventListener("change",(function(){return function(e){var n=e.closest("".concat(t)).querySelector("".concat(l));n&&(e.checked?(n.removeAttribute("disabled"),j(n)):(n.checked=!1,n.setAttribute("disabled","true"),B(n))),O(e)}(e)}))}
1)),d.querySelectorAll("".concat(l)).forEach((function(e){B(e),0===v.length&&(e.checked=!0,e.setAttribute("readonly","true")),e.addEventListener("change",(function(){e.checked?B(e):j(e),O(e.closest("".concat(t)).querySelector("".concat(n)))}))})),function(t){if(g){var e=g.getAttribute("href"),n=e+(e.includes("?")?"&":"?")+"redirect=true&acc="+t;g.setAttribute("href",n)}}(L),function(){var t=d.querySelector("".concat(e)),n=!1;if(t){var i=t.querySelectorAll(".cmp-checkbox .form-check");t.classList.contains("cmp-multi-product-shopping--feature-editmode")||(t.classList.add("hidden"),i.forEach((function(t){return t.classList.add("hidden")})));var r=(o=[],y.forEach((function(t){var e,n=null===(e=t.querySelector("".concat(".cmp-card-bundle-12-3-a-b-c__compare-checkbox .form-check")))||void 0===e?void 0:e.innerText;if(t.dataset.businessRule){var i=t.dataset.businessRule.split(","),r=[];i.forEach((function(t){var e=t.split("/")[t.split("/").length-2],n=t.split("/")[t.split("/").length-1];"inclusion-rules"===e&&r.push(n)})),n&&r.length>0&&o.push({name:n,features:r})}})),o);i.forEach((function(t){var e,i=t.querySelector("input").id;t.querySelectorAll(".form-check label").forEach((function(e){var o=function(t,e){var n=[];return t.forEach((function(t){t.features.includes(e)&&n.push(t.name)})),n.join(", ")}(r,i);""!==o&&(e.innerHTML=null==e?void 0:e.innerHTML.replace("{{(products)}}",o),t.classList.remove("hidden"),n=!0)})),null===(e=t.querySelector("input"))||void 0===e||e.addEventListener("click",q)})),n&&(t.classList.remove("hidden"),M(),window.addEventListener("resize",M))}var o}(),function(t){var e;document.querySelectorAll("".concat(n)).length>0&&!t&&(null===(e=sessionStorage)||void 0===e||e.setItem("cmp-shopping-exp-exit-url",document.referrer));var i,o=s(d.querySelectorAll("".concat(".cmp-multi-product-shopping--exit-cta"," a")));try{for(o.s();!(i=o.n()).done;){var a,c,l,u=i.value,h=null===(a=u.getAttribute("href"))||void 0===a?void 0:a.split("~"),f=""!==(null===(c=sessionStorage)||void 0===c?void 0:c.getItem("cmp-shopping-exp-exit-url"))?null===(l=sessionStorage)||void 0===l?void 0:l.getItem("cmp-shopping-exp-exit-url"):h[2];u.setAttribute("href","".concat(h[0],"~").concat(h[1],"~").concat(f))}}catch(t){o.e(t)}finally{o.f()}Object(r.c)(d)}(k),v.length>0?(P(),null==x||x.addEventListener("click",I)):(p="",y.forEach((function(t){var e=t.dataset.prodId;p+="".concat(""===p?"":",").concat(e)})),h=T(2,p),null==(f=d.querySelectorAll("".concat(".cmp-product-description a")))||f.forEach((function(t){t.href="".concat(t.href).concat(t.href.includes("?")?"&":"?","acc=").concat(h)})),q())}function C(){var t=document.createElement("div");t.setAttribute("tabindex","-1"),document.body.insertBefore(t,document.getElementsByTagName("div")[0]),t.focus(),t.remove()}function T(t,e){var n="";if(1===t&&(null==v||v.forEach((function(t){t.checked&&(n=n+(""!==n?",":"")+t.value)}))),2===t){var i=null==e?void 0:e.split(",");null==i||i.forEach((function(t,e){n=n+(""!==n?",":"")+t+"~"+(e+1)}))}return n}function M(){var t=d.querySelectorAll("".concat(e," .checkbox .cmp-checkbox .form-check:not(.hidden)"));if(t.length>0)if(window.innerWidth>=o.l.MD)Object(i.a)((function(){Object(a.c)(t,!1)}),300)();else{var n,r=s(t);try{for(r.s();!(n=r.n()).done;){n.value.style.height="auto"}}catch(t){r.e(t)}finally{r.f()}}}function q(){var t=function(){var t="",n=0,i=d.querySelector("".concat(e));if(i){var r=i.querySelectorAll(".form-check.form-check-inline:not(.hidden) input");null==r||r.forEach((function(e){e.checked&&(n++,t=t+(""!==t?",":"")+e.value+"~"+n)}))}return t}(),n=d.querySelectorAll("".concat(".cmp-product-description a"));null==n||n.forEach((function(e){var n=e.href.split("?")[0],r=new URLSearchParams(new URL(e.href).search);r.has("feat")&&r.delete("feat");var o=decodeURIComponent(r.toString()),a="".concat(n,"?").concat(o);i.g.isEmpty(t)||(a="".concat(a,"&feat=").concat(t)),e.href=a}))}function I(e){(e.preventDefault(),0===d.querySelectorAll("".concat(n,":checked")).length)?(D(S),D(_),N(_),N(b)):(d.querySelectorAll("".concat(l)).forEac
1h((function(e){e.closest("".concat(t)).querySelector("".concat(n)).checked&&(e.checked?B(e):j(e))})),O(),S.classList.contains("hidden")&&function(){var t=x.href,e=T(1,"");t=t+(t.includes("?")?"&":"?")+"acc="+e,window.location=t}())}function O(e){var i=d.querySelectorAll("".concat(n,":checked"));if(P(),i.length>0){var r="";e&&(i=d.querySelectorAll(".cmp-card-bundle-12-3-a-b-c__product-error ".concat(n))),i.forEach((function(e){r+=function(e){var n=e.closest("".concat(t)).querySelector("".concat(l)),i="";if(e.checked&&n&&!n.checked){var r=d.querySelector("label[for=".concat(e.id,"]")).innerText;i='<li><a href="#'.concat(e.id,'">').concat(r,"</a></li>")}return i}(e)})),S.querySelector(".cmp-text").innerHTML=""===r?A:"".concat(A,'<ul class="anchor-list">').concat(r,"</ul>"),""!==r&&(D(_),N(b),N(S))}}function P(){D(b),D(_),D(S)}function N(t){t.classList.remove("hidden"),t.setAttribute("aria-hidden","false")}function D(t){t.classList.add("hidden"),t.setAttribute("aria-hidden","true")}function B(e){var n,i,r=e.closest("".concat(t));e&&(r.classList.remove("cmp-card-bundle-12-3-a-b-c__product-error"),e.classList.remove("is-invalid"),null===(n=r.querySelector("".concat(u)))||void 0===n||n.classList.add("hidden"),null===(i=r.querySelector("".concat(u)))||void 0===i||i.setAttribute("aria-hidden","true"))}function j(e){var n,i,r=e.closest("".concat(t));e&&(e.classList.add("is-invalid"),r.classList.add("cmp-card-bundle-12-3-a-b-c__product-error"),null===(n=r.querySelector("".concat(u)))||void 0===n||n.classList.remove("hidden"),null===(i=r.querySelector("".concat(u)))||void 0===i||i.setAttribute("aria-hidden","false"))}}return{init:function(){var t=document.querySelectorAll(".".concat("cmp-multi-product-shopping",":not([data-component-state='initialized'])"));t.length>0&&t.forEach((function(t){d(t),t.setAttribute("data-component-state","initialized")}))}}}();"loading"!==document.readyState?u.init():document.addEventListener("DOMContentLoaded",u.init)},function(t,e,n){"use strict";var i=n(0),r="",o=[],a=[],c=new Object,s=!1,l=function(){window.innerWidth<768&&(s=!0),window.addEventListener("resize",(function(t){var e=window.innerWidth;s=e<768}))};function u(t,e,n,i){var r,o=n*--i,a=o+n;r=a>t.length?t.length:a;for(var c=o;c<r;c++){t[c].classList.add("active-news-articals")}}function d(t,e,n,i){var r,o=n*--i,a=o+n;r=a>t.length?t.length:a;for(var c=o;c<r;c++){t[c].classList.remove("active-news-articals")}}var h=!1,f=!1,p={root:null,rootMargin:"0px",thershold:1},m=function(t,e){t.forEach((function(t){"lastDiv"===t.target.id&&t.isIntersecting&&!h&&f&&setTimeout((function(){!function(t){h=!0;var e=document.getElementById("news-list"),n=e.querySelectorAll(".active-news-articals");console.log(n.length),function(t,e,n){for(var i=t+3,r=t;r<i;r++){e[r].classList.add("active-news-articals")}h=!1}(n.length,t)}(o)}),300)}))};var g=function(t,e){var n=new XMLHttpRequest;n.overrideMimeType("application/json"),n.open("GET",t,!0),n.onreadystatechange=function(){4===n.readyState&&"200"==n.status&&e(n.responseText)},n.send(null)},y=function(t,e,n){t.forEach((function(t){var n=document.createElement("div");n.classList.add("aem-GridColumn"),n.classList.add("aem-GridColumn--default--4","aem-GridColumn--phone--12","aem-GridColumn--tabletportrait--6","cmp-newsroom--nopadding-mobile"),n.innerHTML='<div id="'+(t.image?"investor-knowledge":"investor")+'"> <div class="'+(t.image?"cmp-newsroom--most-recent-container-box":"cmp-newsroom--most-recent-container")+'"> <div class="cmp-text"> <div class="cmp-newsroom--most-recent-title">'+t.heading+'</div> <div class="cmp-newsroom--most-recent-date">'+t.publicationDate+'</div> <div class="cmp-image-container" style="display:'+(t.image?"block":"none")+'" aria-hidden="'+(t.image?"false":"true")+'"> <a href="'+t.textUrl+'" target="_blank" tabindex="-1"> <img title="Image title" alt="'+t.altText+'" src="'+t.image+'"/> <div class="cmp-image__play-icon" style="display:'+("true"==t.videoIcon?"block":"none")+'> <svg role="img" aria-label="Play New TD Video" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 360 255"> <g class="play-button"> <path class="play-button-icon" d="M160.16 173.73c-7.62 4.4-13.86.8-13.86-8V89.27c0-8.8 6.24
1-12.4 13.86-8l66.22 38.23c7.62 4.4 7.62 11.6 0 16z"> </path> </g> </svg> </div> </a> </div> <div class="'+(t.image?"cmp-newsroom--most-recent-article-container":"")+'" > <div class="'+t.coe.split("/").pop()+'"> <h2> <a href="'+t.textUrl+'" target="_blank">'+t.textLink+'</a> </h2> </div> <div class="'+(t.image?"cmp-newsroom--most-recent-description-box":"cmp-newsroom--most-recent-description")+'" > <div>'+t.description+'</div> </div> </div> <div class="cmp-newsroom--most-recent-article"> <div class="cmp-newsroom--most-recent-article-desc">'+t.mediaType+'<span style="display:'+(""==t.timeToRead?"none":"")+'"><span class="td-icon td-icon-clock cmp-newsroom--most-recent-clock" aria-label="clock icon"></span>'+t.timeToRead+'</span></div> <div class="cmp-newsroom--authour"> <span>'+t.authorInfo+"</span> </div> </div> </div> </div> </div>",e.appendChild(n)})),b(n,"hide")},v=function(t){var e;e=document.documentElement.getAttribute("lang").split("-"),r=e[1]?e[0].toLocaleLowerCase()+"."+e[1].toLocaleLowerCase():e[0].toLocaleLowerCase(),l(),t.forEach((function(t){t.querySelector(".td-spinner").id=t.id+"-spinner",a.push(t.id),c[t.id]=new Object;var e=t.querySelector(".our-newsroom-final-content");c[t.id].path=e.getAttribute("path")+"."+r+".json";var n=t.querySelector(".cmp-accordion__button");n.addEventListener("click",(function(i){n.classList.toggle("active"),n.classList.contains("active")?(e.style.display="block",g(c[t.id].path,(function(n){var i=JSON.parse(n),r=t.id+"-spinner";b(r,"show"),y(i.archiveNewsrooms,e,r)}))):(e.innerHTML="",e.style.display="block")})),n.addEventListener("keyup",(function(r){r.keyCode!==i.m.ENTER&&r.keyCode!==i.m.SPACE||(n.classList.toggle("active"),n.classList.contains("active")?(e.style.display="block",g(c[t.id].path,(function(n){var i=JSON.parse(n),r=t.id+"-spinner";b(r,"show"),y(i.archiveNewsrooms,e,r)}))):(e.innerHTML="",e.style.display="block"))}))}))},b=function(t,e){if(document.getElementById(t)){var n=document.getElementById(t);n.style.display="show"==e?"block":"none"}};var x=function(){if(document.getElementById("news-list")){!function(){var t=document.getElementById("cmp-newsroom__tabs-id"),e=t.querySelectorAll(".cmp-tabs__tab"),n=t.querySelector(".cmp-droplist__select"),i=t.querySelectorAll(".cmp-tabs__tabpanel"),r=document.getElementById("cmp-newsroom-select");if(n&&n.addEventListener("change",(function(t){i&&i.forEach((function(e){e.getAttribute("data-content-id")===t.target.value?(e.classList.remove("hidden"),document.getElementById(t.target.value).click()):e.classList.add("hidden")}))})),e)for(var o=function(t){["click","keyup"].forEach((function(o){e[t].addEventListener(o,(function(o){var a=e[t].getAttribute("id");if(document.getElementById(a).click(),r)for(var c,s=0;c=r.options[s];s++)if(c.value==a){r.selectedIndex=s,n&&i.forEach((function(t){t.getAttribute("data-content-id")==a?t.classList.remove("hidden"):t.classList.add("hidden")}));break}}));if(r)for(var a,c=0;a=r.options[c];c++)if("tab1"==a.value){r.selectedIndex=c,n&&i.forEach((function(t){"tab1"==t.getAttribute("data-content-id")?t.classList.remove("hidden"):t.classList.add("hidden")}));break}}))},a=0;a<e.length;a++)o(a)}();var t=document.getElementById("news-list"),e=(document.getElementById("pagination"),t.querySelector("ul"));o=e.querySelectorAll("li"),function(t){var e=document.getElementById("view-all"),n=document.getElementById("pagination-container"),i=(document.getElementById("news-list"),document.getElementById("lastDiv")),r=document.getElementById("cmp-newsroom__tabs-id");new IntersectionObserver(m,p).observe(i),e.addEventListener("click",(function(){(d(o,0,9,_.page),r.scrollIntoView(),l(),s)?document.getElementById("cmp-newsroom-select").focus():document.getElementById("tab1").focus();u(o,0,9,1),f=!0,n.style.display="none"}))}(),function(t,e,n){var i=document.getElementById("pagination"),r=Math.ceil(t.length/n);_.Init(document.getElementById("pagination"),{size:r,page:1,step:1}),t.length<10?(i.style.display="none",document.getElementById("view-all").style.display="none"):(i.style.display="flex",document.getElementById("view-all").style.display="block")}(o,0,9)}var n;document.querySelector(".cmp-newsroom")&&(n=document.querySelector("#newsroom-archive").querySelectorAll(".cmp-accordion"),console.log("List accordians",n),n.length>0&&v(n))},_={code:"",Extend:function(t){t=t||{},_.size=t.size||0,_.page=t.page||1,_.step=t.step||9},Add:function(t,e){if(_.size>1)for(var n=t;n<e;n++)_.code+='<a tabindex="0">'+n+"</a>"},Last:function(){_.code+='<i>...</i><a tabindex="0">'+_.size+"</a>"},First:function(){_.code+='<a tabindex="0">1</a><i>...</i>'},Click:function(){document.getElementById("cmp-newsroom__tabs-id").scrollIntoView(),d(o,document.getElementById("news-list"),9,_.page),_.page=+this.innerHTML,_.Start()},Prev:function(){(d(o,document.getElementById("news-list"),9,_.page),_.page--,_.page<1&&(_.page=1),_.Start(),document.getElementById("cmp-newsroom__tabs-id").scrollIntoView(),l(),s)?document.getElementById("cmp-newsroom-select").focus():document.getElementById("tab1").focus()},Next:function(){(d(o,document.getElementById("news-list"),9,_.page),_.page++,_.page>_.size&&(_.page=_.size),_.Start(),document.getElementById("cmp-newsroom__tabs-id").scrollIntoView(),l(),s)?document.getElementById("cmp-newsroom-select").focus():document.getElementById("tab1").focus()},Bind:function(){for(var t=_.e.getElementsByTagName("a"),e=0;e<t.length;e++)+t[e].innerHTML===_.page&&(t[e].className="active"),t[e].addEventListener("click",_.Click,!1),t[e].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||(_.Click(),_.page=+this.innerHTML,_.Start(),document.getElementById("cmp-newsroom__tabs-id").scrollIntoView())}),!1)},Finish:function(){_.e.innerHTML=_.code,_.code="",_.Bind()},Start:function(){_.size<4?_.Add(1,_.size+1):_.page<2*_.step+1?_.size>4?(_.Add(1,2*_.step+2),_.Last()):_.Add(1,_.size+1):_.page>_.size-2*_.step?_.size>4&&_.page>
14?(_.First(),_.Add(_.size-2,_.size+1)):_.Add(1,_.size+1):(_.page>3?_.First():_.Add(1,_.page),_.page-_.step==2?_.Add(3,_.page+_.step+1):_.size-_.page==2?4==_.page&&6==_.size?_.Add(3,_.size+1):_.Add(_.page-_.step,_.size+1):_.Add(_.page-_.step,_.page+_.step+1),_.size-_.page>2&&_.Last()),u(o,document.getElementById("news-list"),9,_.page),_.Finish()},Buttons:function(t){if(_.size>3){var e=t.getElementsByTagName("a");e[0].addEventListener("click",_.Prev,!1),e[1].addEventListener("click",_.Next,!1),e[0].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||_.Prev()}),!1),e[1].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||_.Next()}),!1)}},Create:function(t){var e=[];e=_.size>3?['<a role="link" aria-label="previous page" tabindex="0" class="newsroomanchorprev td-icon td-icon-leftCaret"></a>','<span style="display: flex;justify-content: center;align-content: center;"></span>','<a role="link" aria-label="next page" tabindex="0" class="newsroomanchornext td-icon td-icon-rightCaret"></a>']:['<span style="display: flex;justify-content: center;align-content: center;"></span>'],t.innerHTML=e.join(""),_.e=t.getElementsByTagName("span")[0],_.Buttons(t)},Init:function(t,e){_.Extend(e),_.Create(t),_.Start()}};"loading"!==document.readyState?x():document.addEventListener("DOMContentLoaded",x)},function(t,e,n){"use strict";var i=n(0);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function l(t,e,n){u(t,e),e.set(t,n)}function u(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(t,e){return t.get(f(t,e))}function h(t,e,n){return t.set(f(t,e),n),n}function f(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,S=new WeakMap,w=new WeakMap,A=new WeakMap,E=new WeakSet,L=function(){return function(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),u(n=this,i=E),i.add(n),l(this,p,"cmp-multi-col-list"),l(this,m,void 0),l(this,g,!0),l(this,y,void 0),l(this,v,void 0),l(this,b,void 0),l(this,x,void 0),l(this,_,void 0),l(this,S,void 0),l(this,w,void 0),l(this,A,void 0),h(m,this,e)}),[{key:"initialize",value:function(){h(y,this,d(m,this).dataset.maxHeight),h(v,this,d(m,this).querySelectorAll(".".concat(d(p,this),"__col"))),h(b,this,d(m,this).querySelectorAll(".cmp-list__title")),h(x,this,d(m,this).querySelector(".".concat(d(p,this),">ul"))),h(_,this,d(m,this).querySelectorAll(".".concat(d(p,this),"__col[data-cols]"))),h(S,this,f(E,this,j).bind(this)),h(w,this,f(E,this,R).bind(this)),h(A,this,f(E,this,H).bind(this)),f(E,this,k).call(this),window.addEventListener("resize",f(E,this,k).bind(this)),document.addEventListener("navLinkClicked",f(E,this,C).bind(this))}}])}();function k(){if(h(g,this,window.innerWidth>=i.l.MD),d(g,this))f(E,this,P).call(this,!1),f(E,this,I).call(this),f(E,this,T).call(this),f(E,this,q).call(this,!0);else{var t=d(b,this)[0].getAttribute("tabindex");t&&"0"===t||(f(E,this,P).call(this,!0),f(E,this,I).call(this),f(E,this,O).call(this),f(E,this,M).call(this),f(E,this,q).call(this,!1))}}function C(t){var e=this;d(m,this).closest("header")&&setTimeout((function(){var t=d(m,e).querySelector(".cmp-list__title");if(t.checkVisibility())if(d(g,e))f(E,e,T).call(e);else{var n,i=o(t.closest(".".concat(d(p,e))).querySelectorAll(".".concat(d(p,e),"__col")));try{for(i.s();!(n=i.n()).done;){var r=n.value.querySelector(".cmp-list__title");f(E,e,D).call(e,r)}}catch(t){i.e(t)}finally{i.f()}f(E,e,B).call(e,t)}}),50)}function T(){var t,e,n=null===(t=d(x,this))||void 0===t?void 0:t.clientWidth,i=d(v,this).length,r=o(d(_,this));try{for(r.s();!(e=r.n()).done;){i+=1*e.value.dataset.cols-1}}catch(t){r.e(t)}finally{r.f()}var a,c=o(d(_,this));try{for(c.s();!(a=c.n()).done;){var s=a.value,l=1*s.dataset.cols,u=l/i;s.style.width=n*u+"px";var h,f=o(s.querySelectorAll("li"));try{for(f.s();!(h=f.n()).done;){h.value.style.width=n*u/l+"px"}}catch(t){f.e(t)}finally{f.f()}}}catch(t){c.e(t)}
1finally{c.f()}}function M(){var t,e=o(d(_,this));try{for(e.s();!(t=e.n()).done;){var n=t.value;n.removeAttribute("style");var i,r=o(n.querySelectorAll("li"));try{for(r.s();!(i=r.n()).done;){i.value.removeAttribute("style")}}catch(t){r.e(t)}finally{r.f()}}}catch(t){e.e(t)}finally{e.f()}}function q(t){if(d(y,this)){var e=d(m,this).querySelectorAll(".".concat(d(p,this),"__col ul"));if(t){var n,i=o(e);try{for(i.s();!(n=i.n()).done;){n.value.style.maxHeight=d(y,this)+"px"}}catch(t){i.e(t)}finally{i.f()}}else{var r,a=o(e);try{for(a.s();!(r=a.n()).done;){r.value.removeAttribute("style")}}catch(t){a.e(t)}finally{a.f()}}}}function I(){var t,e=o(d(b,this));try{for(e.s();!(t=e.n()).done;){var n,i=t.value;i.removeEventListener("click",d(S,this)),i.removeEventListener("keydown",d(w,this));var r=Array.from(null!==(n=i.closest("li").querySelectorAll("ul a"))&&void 0!==n?n:[]).pop();null==r||r.removeEventListener("keydown",d(A,this))}}catch(t){e.e(t)}finally{e.f()}}function O(){var t,e=o(d(b,this));try{for(e.s();!(t=e.n()).done;){var n=t.value;n.addEventListener("click",d(S,this)),n.addEventListener("keydown",d(w,this));var i=n.closest("li").querySelectorAll("ul a"),r=Array.from(null!=i?i:[]).pop();null==r||r.addEventListener("keydown",d(A,this));var a,c=o(i);try{for(c.s();!(a=c.n()).done;){a.value.addEventListener("click",(function(){document.dispatchEvent(new Event("mclLinkClicked"))}))}}catch(t){c.e(t)}finally{c.f()}}}catch(t){e.e(t)}finally{e.f()}}function P(t){if(t){var e,n=o(d(b,this));try{for(n.s();!(e=n.n()).done;){var i,r=e.value;r.setAttribute("tabindex","0"),r.setAttribute("aria-expanded","false"),r.setAttribute("role","button"),null===(i=r.closest("li").querySelector("ul"))||void 0===i||i.setAttribute("aria-hidden","true")}}catch(t){n.e(t)}finally{n.f()}}else{var a,c=o(d(b,this));try{for(c.s();!(a=c.n()).done;){var s,l=a.value;l.setAttribute("tabindex","-1"),l.removeAttribute("aria-expanded"),l.removeAttribute("role"),null===(s=l.closest("li").querySelector("ul"))||void 0===s||s.setAttribute("aria-hidden","false")}}catch(t){c.e(t)}finally{c.f()}}}function N(){var t=this;d(b,this).forEach((function(e){var n;null!==(n=e.parentElement.getElementsByTagName("ul")[0])&&void 0!==n&&n.classList.contains("cmp-list-item--expanded")&&f(E,t,D).call(t,e)}))}function D(t){var e=t.closest("li").querySelector("ul");e.classList.remove("cmp-list-item--expanded"),e.setAttribute("aria-hidden","true"),t.setAttribute("aria-expanded","false")}function B(t){var e=t.closest("li").querySelector("ul");e.classList.add("cmp-list-item--expanded"),e.setAttribute("aria-hidden","false"),t.setAttribute("aria-expanded","true")}function j(t){var e=t.target.closest(".cmp-multi-col-list__col"),n=e.querySelector(".cmp-list__title"),i=e.querySelector("ul");i&&(i.classList.contains("cmp-list-item--expanded")?f(E,this,D).call(this,n):f(E,this,B).call(this,n))}function R(t){if(void 0!==t.keyCode)switch(t.keyCode){case i.m.ESCAPE:f(E,this,N).call(this);break;case i.m.SPACE:case i.m.ENTER:f(E,this,j).call(this,t)}}function H(t){void 0!==t.keyCode&&(t.keyCode!==i.m.TAB||t.shiftKey||f(E,this,j).call(this,t))}function z(){var t=document.querySelectorAll('.cmp-multi-col-list:not([data-component-state="initialized"])');t.length>0&&t.forEach((function(t){new L(t).initialize(),t.setAttribute("data-component-state","initialized")}))}"loading"!==document.readyState?z():document.addEventListener("DOMContentLoaded",z)},function(t,e){function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var r=function(){var t=document.querySelectorAll(".number-bullet-step-list");if(t){var e,i=n(t);try{for(i.s();!(e=i.n()).done;){var r=e.value,o=r.querySelector(".cmp-number-list__btn"),a=r.querySelectorAll(".cmp-number-list__list");o&&a&&a[1]&&c(o,a[1])}}catch(t){i.e(t)}finally{i.f()}}function c(t,e){t.addEventListener("click",(function(n){n.preventDefault(),e.classList.remove("cmp-number-list__list_sm"),e.classList.add("cmp-number-list__list_sm--show"),e.setAttribute("tabindex","-1"),e.focus(),t.setAttribute("aria-expanded",!0),t.classList.remove("cmp-number-list__btn--active"),t.classList.add("cmp-number-list__btn--hidden")}))}};"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)},function(t,e){},function(t,e,n){"use strict";var i=n(12),r=n(0),o=function(t,e,n,r){return Object(i.a)({container:t,loop:!1,items:1,edgePadding:-1,slideBy:"page",nav:!1,autoplay:!1,arrowKeys:!1,mouseDrag:!0,speed:900,autoplayButtonOutput:!1,controlsContainer:r,responsive:{0:{items:1,disable:!1},767:{items:1,disable:!1},768:{items:e,disable:!1},1024:{items:e,disable:!1},1200:{items:e,disable:!1}}})},a=function(t){for(var e=t.querySelectorAll(".slider-item"),n=0;n<e.length;n++)e[n].setAttribute("tabindex","0"),e[n].removeAttribute("aria-hidden")},c=function(){document.getElementById("cmp-our-people-text-tile-tabs-filter__tabs-id")&&function(){var t=document.getElementById("cmp-our-people-text-tile-tabs-filter__tabs-id"),e=t.querySelectorAll(".cmp-tabs__tab"),n=t.querySelector(".cmp-droplist__select"),i=t.querySelectorAll(".cmp-tabs__tabpanel"),c=document.getElementById("cmp-our-people-text-tile-tabs-filter-select");
1if(n&&n.addEventListener("change",(function(t){i&&i.forEach((function(e){e.getAttribute("data-content-id")===t.target.value?(e.classList.remove("hidden"),document.getElementById(t.target.value).click()):e.classList.add("hidden")}))})),e)for(var s=function(t){e[t].addEventListener("click",(function(r){var o=e[t].getAttribute("id");if(document.getElementById(o).click(),c)for(var a,s=0;a=c.options[s];s++)if(a.value==o){c.selectedIndex=s,n&&i.forEach((function(t){t.getAttribute("data-content-id")==o?t.classList.remove("hidden"):t.classList.add("hidden")}));break}})),e[t].addEventListener("keyup",(function(n){var i=e[t].getAttribute("id");document.getElementById(i).click()}));if(c)for(var r,o=0;r=c.options[o];o++)if("tab1"==r.value){c.selectedIndex=o,n&&i.forEach((function(t){"tab1"==t.getAttribute("data-content-id")?t.classList.remove("hidden"):t.classList.add("hidden")}));break}},l=0;l<e.length;l++)s(l);var u=[],d=document.querySelectorAll(".cmp-our-people-text-tile-tabs-filter-slider");if(d)for(var h=function(t){var e=d[t].children.length,n=document.querySelectorAll(".cmp-our-people-text-tile-tabs-filter__carousel"),i=n[t].querySelector(".controls").id,c=d[t].id;if(e<=0){var s=n[t].querySelector(".controls");s.classList.remove("controls"),s.classList.add("hide-controls")}var l=d[t].getAttribute("data-desktop-itemcount"),h=d[t].closest(".link-circle-icons-list-share-2-1d");h&&(l="2",h.querySelector(".cmp-our-people-text-tile-tabs-filter-slider").setAttribute("aria-label",l+" items"));var f=d[t].getAttribute("data-mobileview"),p=o("#"+c,l,"carousel"!==f&&"stacked"===f,"#"+i);u.push(p);var m=d[t].querySelectorAll(".slider-item");if(m){m.length<5&&(d[t].style.margin="auto",d[t].style.transform="none");for(var g=function(t){var e=m[t].getAttribute("data-url"),n=m[t].getAttribute("data-target");m[t].setAttribute("tabindex","0");var i,o,a=!1;m[t].addEventListener("mousedown",(function(t){i=t.pageX,o=t.pageY})),m[t].addEventListener("mouseup",(function(t){var r=Math.abs(t.pageX-i),c=Math.abs(t.pageY-o);r<5&&c<5?0===t.button?window.open(e,n):t.preventDefault():a=!0})),m[t].addEventListener("click",(function(t){a?t.preventDefault():window.open(e,n)})),m[t].addEventListener("keyup",(function(e){e.keyCode!==r.m.ENTER&&e.keyCode!==r.m.SPACE||m[t].click()}))},y=0;y<m.length;y++)g(y)}n[t].querySelector(".controls").setAttribute("tabindex","-1"),n[t].querySelector(".controls").setAttribute("aria-hidden","true"),n[t].querySelector(".controls").removeAttribute("aria-label");for(var v=n[t].querySelectorAll(".controls li"),b=function(e){["click","touchstart"].forEach((function(n){v[e].addEventListener(n,(function(){setTimeout((function(){a(d[t])}),100)}))}))},x=0;x<v.length;x++)b(x);window.addEventListener("resize",(function(){setTimeout((function(){for(var t=0;t<d.length;t++){var e=d[t].querySelectorAll(".slider-item");u[t].refresh(),e.length<5&&(d[t].style.margin="auto",d[t].style.transform="none"),a(d[t])}}))}),100)},f=0;f<d.length;f++)h(f)}()};"loading"!==document.readyState?c():document.addEventListener("DOMContentLoaded",c)},function(t,e,n){"use strict";var i=n(0);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o="",a="",c=!1,s=!1,l=[],u=[],d=[],h=[],f=[],p=[],m="",g="",y=[],v=[],b=[],x=function(t,e){var n="our-strategies-"+t+"-spinner";if(document.getElementById(n)){var i=document.getElementById(n);i.style.display="show"==e?"block":"none"}},_=function(t){t.forEach((function(t){var e=t.id.split("accordion-"),n=t.querySelector("button");n.id=e[1];var i=e[1]+"-panel";n.setAttribute("aria-controls",i),v.push(e[1]),b.push(e[1]),p.push(e[1]),l.push(e[1]),h.push(e[1]),d.push(e[1]),f.push(e[1]),u.push(e[1]);var r=t.querySelector(".cmp-accordion__panel");r.id=e[1]+"-panel",r.setAttribute("aria-labelledby",e[1]),t.querySelector(".cmp-our-strategies--subfilter-tabs").id="our-strategies-"+e[1]+"-tab-list",t.querySelector(".td-spinner").id="our-strategies-"+e[1]+"-spinner",t.querySelector(".region_select").id="our-strategies-"+e[1]+"-select",t.querySelector(".cmp-our-strategies--label-region").htmlFor="our-strategies-"+e[1]+"-select",t.querySelector(".cmp-our-strategies--investment-subfilter-tabs").id="our-strategies-"+e[1]+"-investment-style-tab-list",t.querySelector(".investmentstyle_select").id="our-strategies-investment-style-"+e[1]+"-select";var o=t.querySelector(".cmp-our-strategies--label");o.htmlFor="our-strategies-investment-style-"+e[1]+"-select",o.id="strategies-"+e[1]+"-filter-label",o.innerText="Investment Style",t.querySelector(".cmp-our-strategies--search-Section--in
1put").id="our-strategies-"+e[1]+"-search",t.querySelector(".cmp-our-strategies--search-Section--label").htmlFor="our-strategies-"+e[1]+"-search",t.querySelector(".cmp-our-strategies--search-Section--close-btn").id="our-strategies-"+e[1]+"-search-close",t.querySelector(".our-strategies-main-content").id="strategies-"+e[1]+"-list",t.querySelector(".cmp-our-strategies--investment-heading").id="strategies-"+e[1]+"-filter-heading"}))},S=function(t){document.getElementById("cmp-our-strategies-list").querySelectorAll(".cmp-accordion__button").forEach((function(e){e.onclick=function(){if(e.classList.toggle("active"),e.classList.contains("active")){var n="accordion-"+e.id,i=document.getElementById(n);m=i.querySelector(".our-strategies-final-content").getAttribute("path"),g=i.querySelector(".our-strategies-final-content").getAttribute("tags"),i.querySelector(".our-strategies-final-content").style.display="block";var r=g+"."+t+".json";M(m+"."+t+".json",(function(t){var n=JSON.parse(t);if(n.strategiesLandingData.map((function(t,e){return t.id=e+1})),n){x(e.id,"show");var i=e.id;l[i]=n.strategiesLandingData,h[i]=n.strategiesLandingData,d[i]=n.tablist,f[i]=n.strategiesLandingData;var r="our-strategies-"+e.id+"-tab-list",a="our-strategies-"+e.id+"-select",s="strategies-"+e.id+"-list",u="our-strategies-"+e.id+"-investment-style-tab-list",p="our-strategies-investment-style-"+e.id+"-select",m="our-strategies-"+e.id+"-search";c?E(l[i],d[i],a,s,i,""):k(l[i],d[i],r,s,i),o(l[i],s,u,i,p),q(m,d[i],r,a,s,i)}}));var o=function(t,e,n,i,o){M(r,(function(r){var a=JSON.parse(r);if(a){u[i]=[];var l,h="all-data-"+i,f={Title:d[i][0].title,id:h};u[i].push(f),Object.keys(a).forEach((function(t){"id"!==t&&"name"!==t&&"Title"!==t&&(l=t)}
1)),a[l].tags.forEach((function(t){u[i].push(t)})),a[l].tags;var p="our-strategies-investment-style-"+i+"-select",m="strategies-"+i+"-filter-label";if(document.getElementById(p).setAttribute("aria-label",a[l].Title),document.getElementById(m).innerText="",document.getElementById(m).innerText=a[l].Title,c||s)A(u[i],t,o,i,e);else{var g="strategies-"+i+"-filter-heading";document.getElementById(g).innerText=a[l].Title,w(u[i],t,n,i,e)}var y="accordion-"+i;O(document.getElementById(y))}}))}}else{var a="accordion-"+e.id;document.getElementById(a).querySelector(".our-strategies-final-content").style.display="none";var p="our-strategies-"+e.id+"-search";document.getElementById(p).value=""}},e.addEventListener("keyup",(function(n){if(n.keyCode==i.m.ENTER||n.keyCode==i.m.SPACE)if(e.classList.toggle("active"),e.classList.contains("active")){var r="accordion-"+e.id,o=document.getElementById(r);m=o.querySelector(".our-strategies-final-content").getAttribute("path"),g=o.querySelector(".our-strategies-final-content").getAttribute("tags"),o.querySelector(".our-strategies-final-content").style.display="block";var a=g+"."+t+".json";M(m+"."+t+".json",(function(t){var n=JSON.parse(t);if(n.strategiesLandingData.map((function(t,e){return t.id=e+1})),n){var i=e.id;l[i]=n.strategiesLandingData,h[i]=n.strategiesLandingData,d[i]=n.tablist,f[i]=n.strategiesLandingData;var r="our-strategies-"+e.id+"-tab-list",o="our-strategies-"+e.id+"-select",a="strategies-"+e.id+"-list",s="our-strategies-"+e.id+"-investment-style-tab-list",u="our-strategies-investment-style-"+e.id+"-select",m="our-strategies-"+e.id+"-search";c?E(l[i],d[i],o,a,i,""):k(l[i],d[i],r,a,i),p(l[i],a,s,i,u),q(m,d[i],r,o,a,i)}}));var p=function(t,e,n,i,r){M(a,(function(o){var a=JSON.parse(o);if(a){u[i]=[];var l,h="all-data-"+i,f={Title:d[i][0].title,id:h};u[i].push(f),Object.keys(a).forEach((function(t){"id"!==t&&"name"!==t&&"Title"!==t&&(l=t)}
1)),a[l].tags.forEach((function(t){u[i].push(t)})),a[l].tags;var p="our-strategies-investment-style-"+i+"-select",m="strategies-"+i+"-filter-label";if(document.getElementById(p).setAttribute("aria-label",a[l].Title),document.getElementById(m).innerText="",document.getElementById(m).innerText=a[l].Title,c||s)A(u[i],t,r,i,e);else{var g="strategies-"+i+"-filter-heading";document.getElementById(g).innerText=a[l].Title,w(u[i],t,n,i,e)}var y="accordion-"+i;O(document.getElementById(y))}}))}}else{var y="accordion-"+e.id;document.getElementById(y).querySelector(".our-strategies-final-content").style.display="none";var v="our-strategies-"+e.id+"-search";document.getElementById(v).value=""}}))}))},w=function(t,e,n,r,o){var a=document.getElementById(n);a.innerHTML="",t.forEach((function(e){var i=[];i.push(t);var o=i.length,c=document.createElement("li");c.setAttribute("role","tab");var s="tabs-"+e.Title+"-tab-"+r+"investmentStyle";c.setAttribute("id",s),c.setAttribute("aria-selected","false"),c.setAttribute("tabindex","-1"),c.setAttribute("data-value",e.id),c.innerText=e.Title,o?c.addEventListener("click",(function(t){i,b[r]=s,T(b[r],n),p[r]=e.id;var o="our-strategies-"+r+"-tab-list",a="strategies-"+r+"-list";L(l[r],d[r],o,a,r,p[r])})):b[r]==s?c.classList.add("cmp-our-strategies--disabled-tab--highlight"):c.classList.add("cmp-our-strategies--disabled-tab"),a.appendChild(c)})),b[r]?document.getElementById(b[r]).click():a.children[0].click();for(var c=a.getElementsByTagName("li"),s=function(t){c[t].addEventListener("focus",(function(e){c[t].addEventListener("keydown",(function(e){if(e.keyCode===i.m.ARROW_DOWN||e.keyCode===i.m.ARROW_UP||e.keyCode===i.m.ARROW_RIGHT||e.keyCode===i.m.ARROW_LEFT){var n=c[t];if(e.keyCode===i.m.ARROW_DOWN||e.keyCode===i.m.ARROW_RIGHT){var r=n.nextElementSibling;if(r){r.focus();var o=r.getAttribute("id");document.getElementById(o).click()}}else{var a=n.previousElementSibling;if(a){a.focus();var s=a.getAttribute("id");document.getElementById(s).click()}}}}))}))},u=0;u<c.length;u++)s(u)},A=function(t,e,n,i,r){var o=document.getElementById(n);o.innerHTML="",t.forEach((function(t){var e=document.createElement("option"),n="tabs-"+t.Title+"-tab-"+i+"-mobile";e.setAttribute("id",n),e.setAttribute("value",t.id),e.setAttribute("aria-selected","true"),e.text=t.Title,o.appendChild(e)})),t.length&&o.addEventListener("change",(function(t){p[i]=t.target.value;var e="our-strategies-"+i+"-tab-list",n="strategies-"+i+"-list";L(l[i],d[i],e,n,i,p[i])}))},E=function(t,e,n,i,r){var o=document.getElementById(n);if(o.innerHTML="",e.forEach((function(t){var e=document.createElement("option"),n="tabs-"+t.title+"-tab-"+r+"-mobile";e.setAttribute("id",n),e.setAttribute("value",n),e.setAttribute("aria-selected","true"),e.text=t.title,o.appendChild(e)})),t.length){if(t,o.addEventListener("change",(function(n){var o=[],c=[],s="",l="";if(n.target.value.split("-").length>5?(l=n.target.value.split("-tab")[0],s=l.split("tabs-")[1]):s=n.target.value.split("-")[1],e.filter((function(t){return t.title==s}))[0].regionIDs.forEach((function(e){t.filter((function(t){t.region==e&&c.push(t)}))})),r){var u="our-strategies-investment-style-"+r+"-select",d=document.getElementById(u).value;d&&d!="all-data-"+r?c.forEach((function(t){t.properties.forEach((function(e){e.id==d&&o.push(t)}))})):o=c}if(v[r]=n.target.value,h[r]=o,h[r].length){var f="strategies-"+r+"-list";C(h[r],document.getElementById(f),r)}else{a=document.getElementById(i).getAttribute("errormesg");var p=document.getElementById(i);p.innerHTML="";var m=document.createElement("div");m.classList.add("aem-GridColumn","aem-GridColumn--default--8","aem-GridColumn--offset--default--2","aem-GridColumn--phone--12","aem-GridColumn--offset--phone--0","aem-GridColumn--tabletportrait--12","aem-GridColumn--offset--tabletportrait--0");var g=document.createElement("div");g.classList.add("cmp-text"),g.classList.add("error-mesg");var y=document.createElement("p");y.innerHTML=a,g.appendChild(y),m.appendChild(g),p.appendChild(m)}})),v[r]){var c=[],s=[],l="",u="";v[r].split("-").length>5?(u=v[r].split("-tab")[0],l=u.split("tabs-")[1]):l=v[r].split("-")[1],o.value=v[r];var d=e.filter((function(t){return t.title==l}));d[0].regionIDs.forEach((function(e){t.filter((function(t){t.region==e&&s.push(t)}))}));var f="our-strategies-investment-style-"+r+"-select",p=document.getElementById(f).value,m="all-data-"+r;
1if(p&&p!=m?s.forEach((function(t){t.properties.forEach((function(e){e.id==p&&c.push(t)}))})):c=s,h[r]=c,h[r].length){var g="strategies-"+r+"-list";C(h[r],document.getElementById(g),r)}else{a=document.getElementById(i).getAttribute("errormesg");var y=document.getElementById(i);y.innerHTML="";var b=document.createElement("div");b.classList.add("aem-GridColumn","aem-GridColumn--default--8","aem-GridColumn--offset--default--2","aem-GridColumn--phone--12","aem-GridColumn--offset--phone--0","aem-GridColumn--tabletportrait--12","aem-GridColumn--offset--tabletportrait--0");var x=document.createElement("div");x.classList.add("cmp-text"),x.classList.add("error-mesg");var _=document.createElement("p");_.innerHTML=a,x.appendChild(_),b.appendChild(x),y.appendChild(b)}}else{var S=[],w=[],A=e[0];A.regionIDs.forEach((function(e){t.filter((function(t){t.region==e&&w.push(t)}))}));var E="our-strategies-investment-style-"+r+"-select",L=document.getElementById(E).value,k="all-data-"+r;if(L&&L!=k?w.forEach((function(t){t.properties.forEach((function(e){e.id==L&&S.push(t)}))})):S=w,h[r]=S,h[r].length){var T="strategies-"+r+"-list";C(h[r],document.getElementById(T),r)}else{a=document.getElementById(i).getAttribute("errormesg");var M=document.getElementById(i);M.innerHTML="";var q=document.createElement("div");q.classList.add("aem-GridColumn","aem-GridColumn--default--8","aem-GridColumn--offset--default--2","aem-GridColumn--phone--12","aem-GridColumn--offset--phone--0","aem-GridColumn--tabletportrait--12","aem-GridColumn--offset--tabletportrait--0");var I=document.createElement("div");I.classList.add("cmp-text"),I.classList.add("error-mesg");var O=document.createElement("p");O.innerHTML=a,I.appendChild(O),q.appendChild(I),M.appendChild(q)}}}else{v[r]&&(o.value=v[r]),a=document.getElementById(i).getAttribute("errormesg");var P=document.getElementById(i);P.innerHTML="";var N=document.createElement("div");N.classList.add("aem-GridColumn","aem-GridColumn--default--8","aem-GridColumn--offset--default--2","aem-GridColumn--phone--12","aem-GridColumn--offset--phone--0","aem-GridColumn--tabletportrait--12","aem-GridColumn--offset--tabletportrait--0");var D=document.createElement("div");D.classList.add("cmp-text"),D.classList.add("error-mesg");var B=document.createElement("p");B.innerHTML=a,D.appendChild(B),N.appendChild(D),P.appendChild(N)}},L=function(t,e,n,i,r,o){var a=[];o!="all-data-"+r?t.forEach((function(t){t.properties.forEach((function(e){e.id==o&&a.push(t)}))})):a=t,c?E(t,e,n,i,r):k(a,e,n,i,r)},k=function(t,e,n,r,o){var c=document.getElementById(n);if(c.innerHTML="",e.forEach((function(e){var i=[];e.regionIDs.forEach((function(e){t.filter((function(t){t.region==e&&i.push(t)}))}));var s=i.length,l=document.createElement("li");l.setAttribute("role","tab");var u="tabs-"+e.title+"-tab-"+o;l.setAttribute("id",u),l.setAttribute("aria-selected","false"),l.setAttribute("tabindex","-1"),l.innerText=e.title+" ("+s+")",l.addEventListener("click",(function(t){if(s){h[o]=i,v[o]=u,T(v[o],n);var e="strategies-"+o+"-list";C(h[o],document.getElementById(e),o)}else{v[o]==u?l.classList.add("cmp-our-strategies--disabled-tab--highlight"):l.classList.add("cmp-our-strategies--disabled-tab"),a=document.getElementById(r).getAttribute("errormesg");var c=document.getElementById(r);c.innerHTML="";var d=document.createElement("div");d.classList.add("aem-GridColumn","aem-GridColumn--default--8","aem-GridColumn--offset--default--2","aem-GridColumn--phone--12","aem-GridColumn--offset--phone--0","aem-GridColumn--tabletportrait--12","aem-GridColumn--offset--tabletportrait--0");var f=document.createElement("div");f.classList.add("cmp-text"),f.classList.add("error-mesg");var p=document.createElement("p");p.innerHTML=a,f.appendChild(p),d.appendChild(f),c.appendChild(d)}})),c.appendChild(l)})),t.length){if(v[o])document.getElementById(v[o]).click();else c.children[0].click()}else{a=document.getElementById(r).getAttribute("errormesg");var s=document.getElementById(r);s.innerHTML="";var l=document.createElement("div");l.classList.add("aem-GridColumn","aem-GridColumn--default--8","aem-GridColumn--offset--default--2","aem-GridColumn--phone--12","aem-GridColumn--offset--phone--0","aem-GridColumn--tabletportrait--12","aem-GridColumn--offset--tabletportrait--0");var u=document.createElement("div");u.classList.add("cmp-text"),u.classList.add("error-mesg");var d=document.createElement("p");d.innerHTML=a,u.appendChild(d),l.appendChild(u),s.appendChild(l)}for(var f=c.getElementsByTagName("li"),p=function(t){f[t].addEventListener("focus",(function(e){f[t].addEventListener("keydown",(function(e){if(e.keyCode===i.m.ARROW_RIGHT||e.keyCode===i.m.ARROW_LEFT||e.keyCode===i.m.ARROW_UP||e.keyCode===i.m.ARROW_DOWN){var n=f[t];if(e.keyCode===i.m.ARROW_RIGHT||e.keyCode===i.m.ARROW_DOWN){var r=n.nextElementSibling;
1if(r){r.focus();var o=r.getAttribute("id");document.getElementById(o).click()}}else{var a=n.previousElementSibling;if(a){a.focus();var c=a.getAttribute("id");document.getElementById(c).click()}}}}))}))},m=0;m<f.length;m++)p(m)},C=function(t,e,n){e.innerHTML="";for(var i=t,r=0;r<i.length;r++){var o=i[r],a=o.coe.split("/").pop(),c=o.textUrl,s=document.createElement("div");s.classList.add("item"),s.classList.add("aem-GridColumn"),s.classList.add("aem-GridColumn--default--4","aem-GridColumn--phone--6","aem-GridColumn--tabletportrait--4","cmp-strategies-innerpadding"),s.innerHTML='<div class="aem-Grid aem-Grid--12"> <div class="aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--phone--12 cmp-strategies-nopadding"> <div class="cmp-our-strategies--flex-columns '+a+'" > <div class="text"> <div class="cmp-text"> <div class="cmp-our-strategies--heading">'+o.heading+'</div> <div class="cmp-our-strategies--sub-heading" > <a href="'+c+'" tabindex="0">'+o.textLink+'</a> </div> <div class="cmp-our-strategies--business-heading">'+o.coeTitle+"</div> </div> </div> </div> </div> </div>",e.appendChild(s)}x(n,"hide")},T=function(t,e){document.getElementById(e).querySelectorAll("li").forEach((function(e){e.getAttribute("id")==t?(e.classList.add("active-strategies-tab"),e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")):(e.classList.remove("active-strategies-tab"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false"))}))},M=function(t,e){var n=new XMLHttpRequest;n.overrideMimeType("application/json"),n.open("GET",t,!0),n.onreadystatechange=function(){4===n.readyState&&"200"==n.status&&e(n.responseText)},n.send(null)},q=function(t,e,n,o,a,s){var l=document.getElementById(t),u="our-strategies-"+s+"-search-close",d=document.getElementById(u);d.style.display="none",d.style.cursor="pointer",d.addEventListener("click",(function(t){var i=f[s];d.style.display="none";var r="all-data-"+s;if(p[s]&&p[s]!=r){var u=[];i.forEach((function(t){t.properties.forEach((function(e){e.id==p[s]&&u.push(t)}))})),h[s]=u}else h[s]=i;l.value="",c?E(h[s],e,o,a,s,p[s]):k(h[s],e,n,a,s)})),d.addEventListener("keyup",(function(t){if(t.keyCode==i.m.ENTER||t.keyCode==i.m.SPACE){var r=f[s];d.style.display="none";var u="all-data-"+s;if(p[s]&&p[s]!=u){var m=[];r.forEach((function(t){t.properties.forEach((function(e){e.id==p[s]&&m.push(t)}))})),h[s]=m}else h[s]=r;l.value="",c?E(h[s],e,o,a,s,p[s]):k(h[s],e,n,a,s)}})),l.addEventListener("keyup",(function(t){var i=t.target.value.trimStart().trimEnd(),l=f[s],u="all-data-"+s;if(p[s]&&p[s]!=u){var m=[];l.forEach((function(t){t.properties.forEach((function(e){e.id==p[s]&&m.push(t)}))})),h[s]=m}else h[s]=l;i.length>0?(y=function(t,e){var n=[];return t.forEach((function(t){Object.keys(t).some((function(n){if("object"!=r(t[n]))return"number"==typeof t[n]?t[n].toString().includes(e):t[n].toLowerCase().includes(e.toLowerCase());t[n].forEach((function(t){return Object.keys(t).some((function(n){return t[n].toLowerCase().includes(e.toLowerCase())}))}))}))&&n.push(t)})),function(t,e){return t.filter((function(n,i){return t.findIndex((function(t){return t[e]===n[e]}))===i}))}(n,"id")}(h[s],i),c?E(y,e,o,a,s):k(y,e,n,a,s),d.style.display="block"):(c?E(h[s],e,o,a,s):k(h[s],e,n,a,s),d.style.display="none")}))};var I=function(){var t,e;document.getElementById("cmp-our-strategies-list")&&((e=document.querySelector("#cmp-our-strategies-list").querySelectorAll(".cmp-accordion")).length>0&&_(e),t=document.documentElement.getAttribute("lang").split("-"),(o=t[1]?t[0].toLocaleLowerCase()+"."+t[1].toLocaleLowerCase():t[0].toLocaleLowerCase())&&S(o),P())},O=function(t){var e,n=t.querySelector(".cmp-our-strategies--investment-container");t.querySelector(".cmp-our-strategies--container").style.minHeight=n.clientHeight+(e=n,parseInt(window.getComputedStyle(e,null).getPropertyValue("margin-top"))+parseInt(window.getComputedStyle(e,null).getPropertyValue("margin-bottom")))+"px"},P=function(){var t=window.innerWidth;t<=767?(c=!0,s=!1):t<=1023&&t>767&&(s=!0,c=!1),window.addEventListener("resize",(function(t){var e=window.innerWidth;e<=767?(c=!0,s=!1):e<=1023&&e>767?(s=!0,c=!1):(c=!1,s=!1)}))};"loading"!==document.readyState?I():document.addEventListener("DOMContentLoaded",I)},function(t,e,n){"use strict";var i=n(1);function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=function(){var t=document.querySelectorAll("[href*='#cmp-modal~']"),e=document.querySelectorAll(".cmp-overlay-8-1-l-modal-quote__block-link, .affinity-quote-cta a");null!==t&&0!==t.length&&(t.forEach((function(t){t.addEventListener("click",c)})),window.addEventListener("resize",c));try{void 0!==campaignId&&null!==campaignId&&""!==campaignId&&e.forEach((function(t){var e=t.getAttribute("href"),n=window.location.href.split("?")[0],i=window.location.href.split("?")[1],r=-1==e.indexOf("?")?"?":"&",o=n.split("/").pop();e="".concat(e).concat(r,"associationid=").concat(o,"&campaignid=").concat(campaignId),i&&(e="".concat(e,"&").concat(i)),t.setAttribute("href",e)}))}catch(t){console.log(t)}},c=function(){var t=r(document.querySelectorAll(".cmp-overlay-8-1-l-modal-quote"));t&&t.forEach((function(t){var e=t.querySelector(".cmp-overlay-8-1-l-modal-quote__container");Object(i.e)(".cmp-overlay-8-1-l-modal-quote__block-selected-container-title",".cmp-overlay-8-1-l-modal-quote__block-selected",e.i
1d),Object(i.e)(".cmp-overlay-8-1-l-modal-quote__block-selected-container-sub-title",".cmp-overlay-8-1-l-modal-quote__block-selected",e.id)}))};"loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)},function(t,e,n){"use strict";var i=n(7),r=n(1),o=n(0),a=function(){var t=document.querySelector('[data-class="cmp-geolocation-modal"]');if(null!==t){var e=t.querySelectorAll(".cmp-geolocation-modal__radio-button"),n=t.querySelectorAll(".cmp-geolocation-modal__save-close"),a=t.getElementsByClassName("cmp-geolocation-modal__save-section"),c=t.querySelectorAll(".cmp-geolocation-modal__radio-label"),s=document.getElementsByClassName("cmp-geolocation-modal-region"),l=t.querySelector(".close-modal-button"),u=t.querySelector(".cmp-geolocation-modal__title-head"),d=t.querySelector("#cmp-geolocation-modal-province-name"),h="",f="";""===(h=i.a.getProvinceFromCookie())?document.addEventListener("geoLocationCookieSet",(function(){h=i.a.getProvinceFromCookie(),f=i.a.getProvinceName(h),p()})):(f=i.a.getProvinceName(h),p())}function p(){var o,a;v(),o='<span id="cmp-geolocation-modal-title-text" class="visually-hidden">'+u.innerText+"</span>",a=Object(r.d)(o),u.parentElement.insertBefore(a,d);for(var c=0;c<e.length;c++)e[c].addEventListener("click",(function(t){var e=t.target,n=e.parentElement.querySelector(".cmp-geolocation-modal__save-section"),i=n.querySelector(".cmp-geolocation-modal__save-close").getAttribute("id");m(),n.classList.remove("hidden"),y(),e.nextElementSibling.classList.add("cmp-geolocation-modal__checked-label"),document.getElementById("cmp-geolocation-modal-province-name").innerHTML=e.nextElementSibling.innerHTML,g(),e.setAttribute("aria-live","assertive"),e.setAttribute("aria-describedby","".concat(i," cmp-geolocation-modal-title-text cmp-geolocation-modal-province-name"))})),null!=h&&""!==h&&e[c].getAttribute("data-province-key").toLowerCase()===h.toLowerCase()&&(e[c].checked=!0);for(var f=0;f<n.length;f++)n[f].addEventListener("click",(function(t){t.preventDefault();var e=t.target.closest(".cmp-geolocation-modal__radio-section").querySelector(".cmp-geolocation-modal__radio-button").getAttribute("data-province-key").toLowerCase();window.location.hash&&history.replaceState(null,"",window.location.pathname+window.location.search),i.a.redirectToProvincePage(e,!0),l.click()}));for(var p=0;p<s.length;p++)s[p].addEventListener("click",(function(e){if(e.preventDefault(),v(),m(),y(),b(),null!=h&&""!==h&&null!==t.querySelector('input.cmp-geolocation-modal__radio-button[data-province-key="'+h+'"]')){var n=t.querySelector('input.cmp-geolocation-modal__radio-button[data-province-key="'+h+'"]');n.checked=!0,n.nextElementSibling.classList.add("cmp-geolocation-modal__checked-label")}}));l.addEventListener("click",(function(t){t.preventDefault(),g()}))}function m(){for(var t=0;t<a.length;t++)a[t].classList.add("hidden")}function g(){for(var t=0;t<e.length;t++)e[t].removeAttribute("aria-describedby")}function y(){for(var t=0;t<c.length;t++)c[t].classList.remove("cmp-geolocation-modal__checked-label")}function v(){null!=f&&""!==f&&(document.getElementById("cmp-geolocation-modal-province-name").innerHTML=f)}function b(){if(window.innerWidth<o.l.SM){var e=t.querySelector(".cmp-dialog__details"),n=t.querySelector(".cmp-geolocation-modal__cookie-footer"),i=document.documentElement.clientHeight-e.offsetTop-n.clientHeight+10;e.style.maxHeight=i+"px"}}};"loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)},function(t,e){var n,i=!0;if("undefined"!=typeof videojs&&(n=videojs),document.addEventListener("DOMContentLoaded",(function(){void 0!==n&&i&&(window.videojs=function(){},i=!1)})),"undefined"==typeof chkTDVideoModalNonDynamic&&document.addEventListener("DOMContentLoaded",(function(){for(var t=document.getElementsByClassName("overlay-video-modal"),e=!1,n=0;n<t.length;n++){var i=t[n];if(0!=i.getElementsByClassName("cmp-overlay-video-modal").length){var r=i.getElementsByTagName("script")[0];if(void 0!==r&&"cmp-overlay-video-modal.js"!=(r=l(r=r.src))){e=!0;break}}}e||(window.videojs=function(){})})),"undefined"==typeof TDVideoModalDynamicLoad){var r,o,a,c=!0,s=document.getElementsByClassName("overlay-video-modal");!function(){function t(t){var o;o=t.getElementsByTagName("video")[0];var a=t.getElementsByTagName("script")[0],h=t.getElementsByClassName("cmp-overlay-video-modal")[0];if(h.style.visibility="hidden",void 0!==a&&(a=l(a=a.src)),"cmp-overlay-video-modal.js"!=a&&void 0!==a||-1!==o.className.indexOf("vjs-tech")||!c)u(o),h.style.visibility="visible",void 0!==n&&-1!==o.className.indexOf("vjs-tech")&&(videojs=n,c=!0),c&&null!=(r=videojs(o.id))&&i(r,o),d(r,4e3);else if(null!=o){for(var f=o.getAttribute("data-account"),p=o.getAttribute("data-player"),m=o.offsetWidth+"px",g=o.offsetHeight+"px",y=0;y<s.length;y++)if(void 0!==s[y].getElementsByTagName("video")[0]){var v=s[y].getElementsByTagName("video")[0];v.className.indexOf("vjs-tech")&&(v.style.width=m,v.style.height=g)}var b=document.createElement("script");b.src="//players.brightcove.net/"+f+"/"+p+"_default/index.min.js",0===videojs.length&&(videojs=void 0),document.body.appendChild(b),b.onload=function(){var n=videojs.getPlayers();for(var a in n){videojs(a).on("loadedmetadata",(function(){var t=this.el();t.style.width="100%",t.style.height="100%",t.getElementsByTagName("video")[0].style.width="100%",t.getElementsByTagName("video")[0].style.height="100%"}))}t.getElementsByClassName("vjs-big-play-button")[0].style.display="none",function(t){var e=document.createElement("div");e.id=t.id+"_tdVideoSpinner",e.style.position="absolute",e.style.top="0",e.
1style.left="0",e.style.right="0",e.style.bottom="3em",e.style.width="100%",e.style.height="100%",e.style.pointerEvents="none",e.style.opacity="1",e.innerHTML="<div style='position:absolute;top:50%;left:50%;margin: -25px 0 0 -25px;opacity: 0.85;text-align: left;border: 6px solid rgba(43, 51, 63, 0.7);-webkit-animation: td-spin 1s linear infinite;animation: td-spin 1s linear infinite;border-top: 5px solid #fff;border-radius: 50%;width: 50px;height: 50px;'></div>",document.getElementById(t.id).parentNode.appendChild(e);var n=document.createElement("style");n.type="text/css";n.innerHTML=" @-webkit-keyframes td-spin { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); } } @keyframes td-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }",document.getElementsByTagName("head")[0].appendChild(n)}(o),null!=(r=videojs(o.id))&&(r.ready((function(){h.style.visibility="visible",u(o)})),r.on("loadedmetadata",(function(){i(r,o,t)})),r.on("loadeddata",(function(){e(o),d(r,4e3)})))},c=!0}}function e(t){document.getElementById(t.id+"_tdVideoSpinner").style.display="none"}function i(t,n,i){t.el().getElementsByClassName("vjs-big-play-button")[0].focus();var r=t.play();void 0!==r&&r.then((function(){})).catch((function(t){e(n),i.getElementsByClassName("vjs-big-play-button")[0].style.display=""})),setTimeout((function(){var e=t.el().getElementsByClassName("vjs-play-control")[0];e.focus(),e.setAttribute("aria-describedby",t.title.title.getAttribute("id"))}),500)}function u(t){o=document.getElementById(t.id.split("_html5_api")[0]),(a=o.getElementsByClassName("vjs-control-bar")[0]).style.display="none"}function d(t,e){t.setTimeout((function(){a.style.display="",o.classList.remove("vjs-user-inactive"),o.classList.add("vjs-user-active"),o.classList.remove("not-hover"),this.setTimeout((function(){o.classList.add("not-hover")}),e)}),0)}function h(t){t.preventDefault();var e=t.target.closest("a"),n=e.parentElement.nextElementSibling;n.classList.contains("hidden")?(n.classList.remove("hidden"),n.setAttribute("aria-hidden","false")):(n.classList.add("hidden"),n.setAttribute("aria-hidden","true")),e.classList.toggle("cmp-accordion__button--expanded"),e.setAttribute("aria-expanded","false"===e.getAttribute("aria-expanded"))}document.addEventListener("DOMContentLoaded",(function(){!function(){for(var e=0;e<s.length;e++){var i=s[e];if(0!=i.getElementsByClassName("cmp-overlay-video-modal").length){var o=new MutationObserver((function(e){e.forEach((function(e){e.target.classList.contains("hidden")?(void 0!==r&&(r.off("loadedmetadata"),r.pause(),r.currentTime(0)),void 0!==n&&(window.videojs=function(){})):t(e.target)}))})),a=document.getElementById(i.id);o.observe(a,{attributes:!0,attributeFilter:["class"]})}}}();var e=document.querySelectorAll(".".concat("cmp-overlay-video-modal"," .cmp-accordion__button"));e.length>0&&e.forEach((function(t){t.addEventListener("click",h)}))}))}()}function l(t){return(t.match(/[^\\/]+\.[^\\/]+$/)||[]).pop()}},function(t,e,n){"use strict";var i=n(3),r=n(7),o=n(5),a=n(0),c=n(32),s=function(){if(null!==document.querySelector('[data-class="cmp-region-selector-modal"]')){var t,e,n,s,l,u,d,h,f,p=function(){window.innerWidth>=a.l.SM?(f=.85*document.documentElement.clientHeight-66,w.style.maxHeight=f+"px"):w.style.maxHeight="100%"},m=function(){A.classList.remove("hidden"),L.classList.add("hidden"),E.classList.add("hidden"),C.classList.remove("hidden")},g=function(t){console.log(t)},y=function(){null!==t&&t.states.map((function(t){var e=document.createElement("option");e.innerHTML=t.Name,e.setAttribute("value",t.State),e.setAttribute("statename",t.Name),e.setAttribute("data-cityCount",t.count),null!==q&&q.appendChild(e)}))},v=function(){q.addEventListener("change",(function(n){if(B.classList.add("hidden"),B.querySelector("div").setAttribute("aria-hidden",!0),q.classList.remove("cmp-region-selector-modal__main-modal__dropdown-error"),null!==j&&(j.classList.add("hidden"),j.querySelector("div").setAttribute("aria-hidden",!0),I.classList.remove("cmp-region-selector-modal__main-modal__dropdown-error")),null!==t&&null!==e)if(n.target.options[n.target.selectedIndex].getAttribute("data-cityCount")>1){I.innerHTML="";var i=document.createElement("option");i.innerHTML=D,null!==I&&I.appendChild(i);var r=e.abBRANCH.filter((function(t){return t.state===n.target.value}));0!==r.length&&(O.classList.remove("hidden"),r.sort((function(t,e){return t.cityName.toLowerCase().localeCompare(e.cityName.toLowerCase())})),r.map((function(t){var e=document.createElement("option");e.innerHTML=t.cityName,e.setAttribute("value",t.cityName),e.setAttribute("bankid",t.bankID),e.setAttribute("cityid",t.cityID),e.setAttribute("state",t.state),null!==I&&I.appendChild(e)})))}else I.innerHTML="",O.classList.add("hidden");I.addEventListener("change",(function(t){j.classList.add("hidden"),j.querySelector("div").setAttribute("aria-hidden",!0),I.classList.remove("cmp-region-selector-modal__main-modal__dropdown-error")}))}))},b=function(){null!==q.options[q.selectedIndex].getAttribute("value")?!O.classList.contains("hidden")&&null!==I.options[I.selectedIndex].getAttribute("value")||O.classList.contains("hidden")?(x(),_(),window.location.reload()):(j.classList.remove("hidden"),j.querySelector("div").setAttribute("aria-hidden",!1),I.classList.add("cmp-region-selector-modal__main-modal__dropdown-error")):(B.classList.remove("hidden"),B.querySelector("div").setAttribute("aria-hidden",!1),q.classList.add("cmp-region-selector-modal__main-modal__dropdown-error"))},x=function(){if(q.options[q.selectedIndex].getAttribute("data-cityCount")>1)n=I.options[I.selectedIndex].getAttribute("bankid");else{var t=q.options[q.selectedIndex].getAttribute("value");""===t&&null===t||e.abBRANCH.map((function(e){t===e.state&&(n=e.bankID)}
1))}o.a.cookieSetItem(a.w,n,r.a.getCookieExpirydate())},_=function(){l=q.options[q.selectedIndex].getAttribute("value"),d=q.options[q.selectedIndex].getAttribute("statename"),q.options[q.selectedIndex].getAttribute("data-cityCount")>1?(s=I.options[I.selectedIndex].getAttribute("cityid"),u=I.options[I.selectedIndex].getAttribute("value"),h="city="+s+"|state="+l+"|country=12|cityname="+u+"|statename="+d):h="city=|state="+l+"|country=12|cityname=|statename="+d,o.a.cookieSetItem(a.N,h,r.a.getCookieExpirydate())},S=document.querySelector('[data-class="cmp-region-selector-modal"]'),w=S.querySelector(".cmp-dialog__details"),A=S.querySelector(".cmp-region-selector-modal__main-modal"),E=S.querySelector(".cmp-region-selector-modal__canadian-resident-modal"),L=S.querySelector(".cmp-region-selector-modal__close-selected-modal"),k=S.querySelector(".cmp-region-selector-modal__main-modal__footer-action-link a"),C=S.querySelector(".cmp-region-selector-modal__header button"),T=S.querySelector(".cmp-region-selector-modal__canadian-resident-modal__action-last-button button"),M=S.querySelector(".cmp-region-selector-modal__close-selected-modal__action-last-button button"),q=S.querySelector(".state_list"),I=S.querySelector(".city_list"),O=S.querySelector(".cmp-region-selector-modal__main-modal__dropdown-city"),P=S.getAttribute("data-state-api"),N=S.getAttribute("data-city-api"),D=I.getAttribute("data-city-title"),B=S.querySelector(".cmp-region-selector-modal__main-modal__state-error"),j=S.querySelector(".cmp-region-selector-modal__main-modal__city-error"),R=o.a.cookieGetItem(a.N),H=S.querySelector(".cmp-region-selector-modal__main-modal__with-out-location"),z=S.querySelector(".cmp-region-selector-modal__main-modal__with-location"),F=S.querySelector(".cmp-region-selector-modal__main-modal__withOut-location-button"),G=S.querySelector(".cmp-region-selector-modal__main-modal__with-location-button");if(k.addEventListener("click",(function(){A.classList.add("hidden"),L.classList.add("hidden"),E.classList.remove("hidden"),C.classList.remove("hidden")})),window.addEventListener("resize",p),p(),T.addEventListener("click",(function(){m()})),C.addEventListener("click",(function(t){L.classList.contains("hidden")&&E.classList.contains("hidden")&&(A.classList.add("hidden"),L.classList.remove("hidden"),E.classList.add("hidden"),C.classList.add("hidden")),L.classList.contains("hidden")&&A.classList.contains("hidden")&&m()})),M.addEventListener("click",(function(t){m()})),null!==P&&Object(i.a)(P,"GET",(function(e){t=e,null!==e&&c.a.setStateList(e),y()}),g),null!==N&&Object(i.a)(N,"GET",(function(t){e=t,null!==t&&c.a.setCityList(t),v()}),g),null===R||""===R)H.classList.remove("hidden"),z.classList.add("hidden"),F.classList.remove("hidden"),G.classList.add("hidden");else{var W=JSON.parse('{"'+R.split("|").join('","').split("=").join('":"')+'"}');W.hasOwnProperty("statename")?(H.classList.add("hidden"),z.classList.remove("hidden"),F.classList.add("hidden"),G.classList.remove("hidden"),null===W.cityname||""===W.cityname?S.querySelector(".cmp-region-selector-modal__main-modal__with-location h2").innerHTML=W.statename:S.querySelector(".cmp-region-selector-modal__main-modal__with-location h2").innerHTML=W.cityname+", "+W.statename):(H.classList.remove("hidden"),z.classList.add("hidden"),F.classList.remove("hidden"),G.classList.add("hidden"))}F.addEventListener("click",(function(){b()})),G.addEventListener("click",(function(){b()}))}};"loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",(function(){s()}))},function(t,e,n){"use strict";var i,r=n(0),o=n(2),a=n(15),c=(i="cmp-primary-header",{init:function(){var t=document.querySelectorAll(".".concat(i,':not([data-component-state="initialized"])'));t.length>0&&t.forEach((function(t){!function(){var t=document.querySelectorAll(".".concat(i,"__menu-item")),e=Array.from(document.querySelectorAll(".".concat(i,"__menu-item:not(.hidden) .").concat(i,"__sub-menu-link"))).pop(),n=document.querySelector("#primaryHeaderIntellAPIdata"),c="";n&&Object(o.h)(n.value)&&(c=JSON.parse(n.value));var s=""==c?{}:c,l=s.minSearchLength,u=s.apiURL,d=s.interfaceID,h=s.noOfSuggestionToDisplay,f=s.buttonUrl;function p(t){void 0!==t.keyCode&&(t.keyCode!==r.m.TAB||t.shiftKey||S())}function m(t){null===t.target.closest("nav")&&S()}function g(t){t&&(t.classList.contains("show-sub-menu")?function(t){t.classList.remove("show-sub-menu"),t.querySelector("a").setAttribute("aria-expanded","fal
1se")}(t):t.querySelector(".".concat(i,"__sub-menu"))&&_(t))}function y(t){g(t.target.closest(".cmp-primary-header__menu-item"))}function v(t){void 0!==t.keyCode&&(t.keyCode===r.m.ESCAPE&&S(),t.keyCode===r.m.SPACE&&g(t.target.closest(".cmp-primary-header__menu-item")))}function b(t){if(t.target.querySelector(".".concat(i,"__sub-menu"))&&"mouse"===t.pointerType){_(t.target);var e=document.querySelector(".cmp-header-utility-bar__dropdown--content");if(e&&!e.classList.contains("hide")){e.classList.add("hide");var n=document.querySelector(".cmp-header-utility-bar__selectedProvince");if("true"===n.getAttribute("aria-expanded")){n.setAttribute("aria-expanded",!1);var r=n.getElementsByClassName("dropdown-collapsed"),o=n.getElementsByClassName("dropdown-expanded");Array.from(r).forEach((function(t){t.classList.remove("hide")})),Array.from(o).forEach((function(t){t.classList.add("hide")}))}}var a=document.querySelector(".cmp-header-utility-bar__dropdown--content--language");if(a&&!a.classList.contains("hide")){a.classList.add("hide");var c=document.querySelector(".cmp-header-utility-bar__selectedLanguageValue");if("true"===c.getAttribute("aria-expanded")){c.setAttribute("aria-expanded",!1);var s=c.getElementsByClassName("dropdown-collapsed"),l=c.getElementsByClassName("dropdown-expanded");Array.from(s).forEach((function(t){t.classList.remove("hide")})),Array.from(l).forEach((function(t){t.classList.add("hide")}))}}var u=document.querySelector(".cmp-header-utility-bar__dropdown--content--country");if(u&&!u.classList.contains("hide")){u.classList.add("hide");var d=document.querySelector(".cmp-header-utility-bar__selectedCountry");if("true"===d.getAttribute("aria-expanded")){d.setAttribute("aria-expanded",!1);var h=d.getElementsByClassName("dropdown-collapsed"),f=d.getElementsByClassName("dropdown-expanded");Array.from(h).forEach((function(t){t.classList.remove("hide")})),Array.from(f).forEach((function(t){t.classList.add("hide")}))}}}}function x(t){"mouse"===t.pointerType&&S()}function _(t){S(),t.classList.add("show-sub-menu"),t.querySelector("a").setAttribute("aria-expanded","true")}function S(){document.querySelectorAll(".".concat(i,"__menu-item.show-sub-menu")).forEach((function(t){t.classList.remove("show-sub-menu"),t.querySelector("a").setAttribute("aria-expanded","false")}))}function w(t){var e=document.createElement("span");e.textContent="Selected",e.classList.add("visually-hidden"),t.appendChild(e)}u&&d&&Object(o.c)("".concat(u,"/json/?interfaceID=").concat(d));var A=document.querySelector(".cmp-primary-header").querySelector(".cmp-primary-header_left").querySelectorAll(".cmp-primary-header__sub-menu li");if(function(){A&&A.forEach((function(t){if(t.getAttribute("data-site-nav")&&"active"===t.getAttribute("data-site-nav")){var e=t.parentElement.parentElement,n=e.querySelector(".cmp-primary-header__menu-link");e.classList.add("active"),w(n)}}));var t=document.querySelector(".cmp-primary-header-tdam-us .cmp-primary-header");if(t){var e=t.querySelector(".cmp-primary-header_left").querySelector(".cmp-primary-header__menu-item.active");e&&(e.querySelector(".cmp-primary-header__sub-menu")||w(e.querySelector(".cmp-primary-header__menu-link")))}}(),null!==document.querySelector(".cmp-primary-header__search")){var E=function(){q.setAttribute("aria-hidden",!0),I.setAttribute("aria-hidden",!0),O.style.display="block",R=!0,P.focus(),N.forEach((function(t){t.setAttribute("tabindex","-1")})),null!==j&&(P.value=j)},L=function(){q.setAttribute("aria-hidden",!1),I.setAttribute("aria-hidden",!1),O.style.display="none",T.focus(),P&&(P.value=""),Object(o.b)(D,!0,!1),N.forEach((function(t){t.removeAttribute("tabindex")}))},k=document.querySelector(".cmp-primary-header"),C=document.querySelector(".cmp-primary-header__search"),T=C.querySelector(".cmp-primary-header__menu-link"),M=document.querySelector(".cmp-primary-header__close-button"),q=k.querySelector(".cmp-primary-header_left"),I=k.querySelector(".cmp-primary-header_right"),O=k.querySelector(".cmp-primary-header__search-container"),P=k.querySelector(".cmp-primary-header__search-input"),N=k.querySelectorAll(".cmp-primary-header__menu-link"),D=k.querySelector(".cmp-primary-header__suggestion-dropdown"),B=k.querySelector(".cmp-primary-header__search-submit"),j=new URLSearchParams(window.location.search).get("query"),R=!1;T.onclick=function(){return!1},C.addEventListener("click",E),null!==j&&E(),P&&P.addEventListener("keyup",(function(t){if(t.preventDefault(),R)R=!1;else{if(t.keyCode===r.m.ENTER)return void Object(o.i)(f,this.value,!1);var e="".concat(u,"/IntelliSuggest?interfaceID=").concat(d,"&term=");Object(o.d)(this.value,e,h,l,f,o.k,D)}})),B&&B.addEventListener("click",(function(){Object(o.i)(f,P.value,!1)})),P&&P.addEventListener("blur",(function(t){Object(o.f)(t,D)})),M.addEventListener("click",(function(){L()})),M.addEventListener("keydown",(function(t){t.keyCode!==r.m.TAB||t.shiftKey||L()}))}var H,z=document.querySelector(".".concat(i)),F=z.querySelector(".".concat(i,"__profile")),G=z.querySelector(".".concat(i,"__logout"));if(null!==(F&&G)){var W=function(t){t&&(F.classList.remove("hidden"),G.classList.remove("hidden"),null!==U&&U.classList.add("hidden"))},U=z.querySelector(".".concat(i,"__login"));W(a.a.registerLoginStateCallBack(W))}H=document.querySelector("body"),e&&e.addEventListener("keydown",p),t.forEach((function(t){var e=t.querySelector(".cmp-primary-header__menu-link");e&&e.addEventListener("focus",S),t.addEventListener("keydown",v),t.addEventListener("click",y),t.addEventListener("pointerenter",b),t.addEventListener("pointerleave",x),t.addEventListener("hover",b)})),H.addEventListener("touchstart",m)}(),t.setAttribute("data-component-state","initialized")}))}});"loading"!==document.readyState?c().init():document.addEventListener("DOMContentLoaded",c.init)},function(t,e){var n={init:function(){var t=document.getElementById("ensCall");if(t){var e=t.querySelector(".td-forscreenreader"),n=document.getElementsByTagName("html")[0];if(n&&e){var i=n.getAttribute("lang");"en-CA"===i?e.innerHTML="Close":"fr-CA"===i&&(e.innerHTML="Fermer")}}}};"loading"!==document.readyState?n.init():document.addEventListener("DOMContentLoaded",(function(){n.init()}))},function(t,e,n){"use strict";var i=n(1),r=n(0),o=n(6),a=n(4);function c(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l,u=(l="cmp-product-card",{init:function(){var t=document.querySelectorAll(".".concat(l,":not([data-component-state='initialized'])"));t.length>0&&(t.forEach((function(t){!function(t){var e=t.getAttribute("data-cardId"),n=t.getAttribute("data-cardType"),i=t.querySelector(".cmp-product-card__indicator-wrap");if(null!==t.querySelector(".compare-checkbox-section")&&null!==t.querySelector(".checkbox-input")&&null!==document.querySelector(".compare-sticky-drawer")){var c=t.querySelector(".".concat(l,"__title h2")),s=t.querySelector(".".concat(l,"__action-mode a")),u=Object(r.W)(t);u.selectedProdImage=t.querySelector(".cmp-product-card__image-info"),u.selectedProdImageWrap=t.querySelector(".cmp-product-card__image"),c.setAttribute("id",u.prodId+"_title"),s.setAttribute("aria-describedby",u.prodId+"_title"),null!==t.querySelector(".".concat(l,"__rates-benefits a"))&&t.querySelectorAll(".".concat(l,"__rates-benefits a")).forEac
1h((function(t){t.setAttribute("aria-describedby",u.prodId+"_title")})),u.checkboxInput.setAttribute("id",u.prodType+"_"+u.prodId),u.checkboxLabel.setAttribute("for",u.prodType+"_"+u.prodId),u.checkboxWrap.setAttribute("aria-describedby",u.prodId+"_title"),Object(r.P)(u),o.a.updateCheckboxStatus(u)}a.a.checkRecent(e,n)&&(null==i||i.classList.add("show"))}(t),t.setAttribute("data-component-state","initialized")})),o.a.disableCompareCheckBox(!0,3,2))}});"loading"!==document.readyState?u().init():document.addEventListener("DOMContentLoaded",u.init),["load","resize"].forEach((function(t){"resize"===t?window.addEventListener(t,(function(){d(),h()})):window.addEventListener(t,Object(i.a)((function(){d(),h(),i.g.lazyLoadingEqualHeight("cmp-product-card__image-info",d)})),500)}));var d=function(){var t=c(document.querySelectorAll(".cmp-product-cards-6-1b"));window.innerWidth>=r.l.SM&&t&&t.forEach((function(t){var e=t.querySelector(".cmp-product-description__data-slider");Object(i.e)(".cmp-product-card__indicator-wrap-parent",".slider-item",e.id),Object(i.e)(".cmp-product-card__title",".slider-item",e.id),Object(i.e)(".cmp-product-card__image-info",".slider-item",e.id),Object(i.e)(".cmp-product-card__information",".slider-item",e.id),Object(i.e)(".cmp-product-card__main-section",".slider-item",e.id),Object(i.e)(".cmp-product-card__action-mode",".slider-item",e.id)}))},h=function(){var t=document.querySelector(".cmp-product-cards-6-1b");if(null!==t){var e=t.querySelectorAll(".slider-item");if(e.forEach((function(t){t.classList.remove("borderBottomNone")})),window.innerWidth>=r.l.MD){var n=e.length%3;0===n?(e[e.length-3].classList.add("borderBottomNone"),e[e.length-2].classList.add("borderBottomNone")):2===n&&e[e.length-2].classList.add("borderBottomNone"),e[e.length-1].classList.add("borderBottomNone")}else if(window.innerWidth>=r.l.SM&&window.innerWidth<r.l.MD){0===e.length%2&&e[e.length-2].classList.add("borderBottomNone"),e[e.length-1].classList.add("borderBottomNone")}else window.innerWidth>=r.l.XS&&window.innerWidth<r.l.SM&&e[e.length-1].classList.add("borderBottomNone")}}},function(t,e,n){"use strict";var i=n(12),r=n(0),o=function(){var t=window.location.pathname,e="carousel_priority_"+t.substring(t.lastIndexOf("/")+1),n=document.querySelector(".carousel-priority"),i=[],o=document.querySelectorAll(".cmp-circle-slider");if(o)for(var l=function(t){var l=o[t].children.length,u=document.querySelectorAll(".cmp-product-services-icons__container"),d=u[t].querySelector(".controls"),h=d.id,f=o[t].id;l<=0&&(d.classList.remove("controls"),d.classList.add("hide-controls"));var p=o[t].getAttribute("data-desktop-itemcount");o[t].closest(".link-circle-icons-list-share-2-1d")&&(p="2");var m=!1;"stacked"===o[t].getAttribute("data-mobileview")&&(m=!0);var g=a("#"+f,p,m,"#"+h);i.push(g);var y=o[t].querySelectorAll(".slider-item");if(y){y.length<5&&(o[t].style.margin="auto",o[t].style.transform="none");for(var v=function(i){var o,a=y[i].querySelector("a");a&&""!==a&&(o=a.getAttribute("href").includes("#cmp-modal~speed-bump~")),o?(a.removeAttribute("role","button"),y[i].removeAttribute("tabindex","-1")):a?y[i].removeAttribute("tabindex","0"):y[i].setAttribute("tabindex","0");var c,s,l=!1;y[i].addEventListener("mousedown",(function(t){c=t.pageX,s=t.pageY})),y[i].addEventListener("mouseup",(function(t){var e=Math.abs(t.pageX-c),n=Math.abs(t.pageY-s);e<5&&n<5?t.preventDefault():l=!0})),y[i].addEventListener("click",(function(r){if(n){var o=y[i].id;localStorage.setItem(e+t,o)}l&&r.preventDefault()})),y[i].addEventListener("keyup",(function(t){t.keyCode!==r.m.ENTER&&t.keyCode!==r.m.SPACE||y[i].click()}))},b=0;b<y.length;b++)v(b)}s(d);for(var x=u[t].querySelectorAll(".controls li"),_=function(e){["click","touchstart"].forEach((function(n){x[e].addEventListener(n,(function(){setTimeout((function(){c(o[t])}),100)}))}))},S=0;S<x.length;S++)_(S);window.addEventListener("resize",(function(){setTimeout((function(){for(var t=0;t<o.length;t++){var e=o[t].querySelectorAll(".slider-item");i[t].refresh(),e.length<5&&(o[t].style.margin="auto",o[t].style.transform="none"),c(o[t])}s(d)}))}),100),n&&function(t){var n=localStorage.getItem(e+t),i=document.querySelector("#"+n);if(i){var r=i.outerHTML;i.remove(),o[t].insertAdjacentHTML("afterbegin",r)}}(t)},u=0;u<o.length;u++)l(u)},a=function(t,e,n,r){return Object(i.a)({container:t,loop:!1,items:1,edgePadding:-1,slideBy:"page",nav:!1,autoplay:!1,arrowKeys:!1,mouseDrag:!0,speed:900,autoplayButtonOutput:!1,controlsContainer:r,responsive:{0:{disable:n},767:{disable:n},768:{items:e,disable:!1},1024:{items:e,disable:!1},1200:{items:e,disable:!1}}})},c=function(t){for(var e=t.querySelectorAll(".slider-item"),n=0;n<e.length;n++){var i=e[n].querySelector("a");i&&""!==i?i.getAttribute("href").includes("#cmp-modal~speed-bump~"):e[n].setAttribute("tabindex","0"),e[n].removeAttribute("aria-hidden")}},s=function(t){t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t.removeAttribute("aria-label")};document.addEventListener("DOMContentLoaded",(function(){o()})),window.product_service_icon=function(){o()}},function(t,e,n){"use strict";var i=n(0),r=n(3),o=n(2),a=function(){var t="cmp-tdam-profile-details";function e(e){var n=e.querySelector("#profile-card-detail"),a="";n&&Object(o.h)(n.value)&&(a=JSON.parse(n.value));var c=""!==a?a:{},s=c.profileDetailEndPointEnUrl,l=c.profileDetailEndPointFrUrl,u=c.profileDetailDefaultLandingPageUrl,d=c.profileDetailImageUrl,h=new URLSearchParams(window.location.search),f=h.get("profileId"),p=h.get("teamId");function m(t){var e="/?profileId="+f+"&teamId="+p;Object(r.a)(t+Object(o.g)(e),"GET",g,o.callbackError)}function g(t){t===i.a?b(u):geoLocationLang===i.o?y(t.managerDetail.profileName,t.managerDetail.imageBlobId,t.managerDetail.titleFrench,t.managerDetail.biodataFrench,t.fundsManaged,t.teamName,t.managerDetail.credentialFrench):y(t.managerDetail.profileName,t.managerDetail.imageBlobId,t.managerDetail.title,t.managerDetail.biodata,t.fundsManaged,t.teamName,t.managerDetail.credentials)}function y(n,r,a,c,s,l,u){var h,f,p,m,g,y,x,_,S,w,A,E=e.querySelector(".".concat(t,"__main-section .cmp-accordion")),L=e.querySelector(".".concat(t,"__mutual-suggestions")),k=new URLSearchParams(window.location.search).get("teamId");h=e.querySelector(".".concat(t,"__profile")),S=e.querySelector(".".concat(t,"__desc")),f=Object(i.X)(l),p=Object(i.X)(n),y=Object(i.X)(r,d),m=Object(i.X)(a),_=Object(i.X)(c),x=Object(i.X)(s),A=Object(i.X)(u),f=f?"<h1>".concat(f,"</h1>"):"";var C=p;""!==A&&(C+=", "+A),w=k?"<h2>".concat(C,"</h2>"):'<h1 class="h2 h2-padding">'.concat(C,"</h1>"),g='\n <div class="'.concat(t,'__profile-wrapper">\n <div class="').concat(t,'__heading">\n ').concat(f,'\n </div>\n <img src="').concat(y,'" alt="" />\n ').concat(w,'\n <p class="').concat(t,'__title">').concat(m,"</p>\n </div>\n "),h.insertAdjacentHTML("afterbegin",g),S.innerHTML=_,0!==x.length?(Object(o.b)(L,!0,!1,!1),Object(o.j)(E),x.forEach((function(e,n){var r="";geoLocationLang===i.n?r="".concat(i.S.en.fund_mf,"/?fundId=").concat(Object(o.g)(e.fundId),"&fundname=").concat(v(Object(o.g)(e.fundName),!1)):geoLocationLang===i.o&&(r="".concat(i.S.fr.fund_mf,"/?fundId=").concat(Object(o.g)(e.fundId),"&fundname=").concat(v(Object(o.g)(e.fundName),!1))),function(e,n,r,o){var a=document.createElement("li"),c=e.appendChild(a),s=document.createElement("a"),l=c.appendChild(s);l.classList.add("".concat(t,"__link")),l.setAttribute("href","#"),l.setAttribute("data-id",r),l.innerHTML=o+'<span class="td-icon td-icon-rightCaret" aria-hidden="true"></span>',l.addEventListener("mousedown",(function(t){t.preventDefault(),b(n)})),l.addEventListener("keyup",(function(t){t.preventDefault(),t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||b(n)}))}(L,r,e.fundId,e.fundName)}))):Object(o.b)(E,!0,!1,!0)}function v(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?t.replace(/\s+/g,"+"):t.replace(/\s+/g,"-").replace(/-{2,}/g,"-")}function b(t){window.location.href=t}p=p||"0",f&&(s&&geoLocationLang===i.n?m(s):l&&geoLocationLang===i.o&&m(l))}return{init:function(){var n=document.querySelectorAll(".".concat(t,':not([data-component-state="initialized"])'));n.length>
10&&n.forEach((function(t){e(t),t.setAttribute("data-component-state","initialized")}))}}}();function c(){if(window.innerWidth<=i.l.SM||window.innerWidth<=i.l.MD){var t=document.querySelectorAll(".cmp-nav-mobile .cmp-mobile-nav-bar__menu-list .cmp-mobile-nav-bar__accordion-language ul li,.cmp-site-utility-mobile .cmp-site-utility-mobile__language .cmp-site-utility-mobile__sub-menu ul li"),e=document.querySelector(".cmp-tdam-profile-details");t&&e&&t.forEach((function(t){t.classList.contains("active")||(t.children[0].href=t.children[0].href+window.location.search)}))}}function s(){window.innerWidth<=i.l.MD&&c()}"loading"!==document.readyState?(a().init(),window.addEventListener("resize",s)):document.addEventListener("DOMContentLoaded",(function(){var t,e;a.init(),t=document.querySelectorAll(".cmp-header-utility-bar__dropdown--content--language .cmp-header-utility-bar__column ul li,.cmp-site-utility-nav__sub-menu .cmp-site-utility-nav__cols ul li"),e=document.querySelector(".cmp-tdam-profile-details"),t&&e&&t.forEach((function(t){t.children[0].classList.contains("selected")||(t.children[0].href=t.children[0].href+window.location.search)})),c(),window.addEventListener("resize",s)}))},function(t,e,n){"use strict";var i=n(0),r=n(30),o=n(3),a=n(2),c=function(){function t(t){var e,n=JSON.parse(t.querySelector("#questionChatRequiredData").value),c=n.minSearchLength,s=n.maxNumQuestions,l=n.apiURL,u=n.interfaceID,d=n.totalNumQuestionToDisplay,h={getSessionId:"".concat(l,"/json/?interfaceID=").concat(u),suggestions:"".concat(l,"/IntelliSuggest?interfaceID=").concat(u,"&term="),topQuestions:"".concat(l,"/json?interfaceID=").concat(u,"&sourceID=4&requestType=TopQuestionsRequest"),singleAnswer:"".concat(l,"/json/?interfaceID=").concat(u,"&requestType=NormalRequest&source=9&question="),searchTerm:"".concat(l,"/json/?interfaceID=").concat(u,"&requestType=NormalRequest&source=1&id=-1&question="),positiveFeedback:"".concat(l,"/json/?interfaceID=").concat(u,"&requestType=RatingRequest&rating=100&comment=undefined&question="),negativeFeedback:"".concat(l,"/json/?interfaceID=").concat(u,"&requestType=RatingRequest&rating=0&question="),questionClick:"".concat(l,"/json/?interfaceID=").concat(u,"&requestType=NormalRequest")},f=t.querySelector("#cmp-questions__popular_link"),p=t.querySelector(".cmp-questions__link--container"),m=t.querySelector("#cmp-questions__ask--button button"),g=t.querySelector("#cmp-questions__popular-topics"),y=t.querySelector("#cmp-questions__input"),v=t.querySelector("#cmp-questions__answer"),b=t.querySelector("#cmp-questions__related"),x=t.querySelector("#cmp-question__suggestion-dropdown"),_=t.querySelector(".cmp-questions__yes-no-container"),S=t.querySelectorAll(".cmp-questions__read-more button"),w=t.querySelector("#cmp-questions__no-answer-container"),A=t.querySelector("#cmp-questions__intelliresponse_down-container"),E=t.querySelector("#select-yes"),L=t.querySelector("#select-no"),k=t.querySelector(".cmp-question__feed-yes-success-msg"),C=t.querySelector(".cmp-question__feed-no-success-msg"),T=t.querySelector(".cmp-question__feedback-no-container"),M=t.querySelector("#cmp-questions__submit--button"),q=t.querySelector(".feedbackComment-text"),I=t.querySelector("#cmp-questions__intelliresponse_down-feedback-container"),O=t.querySelector(".cmp-questions__chatbutton--clear"),P=t.querySelector("#cmp-questions__multiple-results"),N=t.querySelector("#accordianSiteDownMessage"),D=4,B=3,j=2,R=1,H=1,z="popular_Questions",F="helpful_Questions",G="multipleResult_Questions",W="relatedEntryQuestion",U="partialEntryQuestion";l&&u&&(e=sessionStorage.getItem("session-id")||Object(a.c)(h.getSessionId));var Y="sessionID=".concat(e),V=!1,X={},$=1,K=1,J=!1,Z=!1;function Q(){E&&(E.disabled=!0),L&&(L.disabled=!0)}function tt(){Q();var e=navigator.userAgent.toLowerCase();q.style.width="100%",q.style.height="120px",q.value="",L.setAttribute("aria-checked","true"),gt(T);var n=t.querySelector("#cmp-questions__negative-feedback-title .h3");e.indexOf(i.r.ANDROID)>-1&&n&&n.removeAttribute("aria-describedby"),n&&n.setAttribute("tabindex","-1"),n&&n.focus()}function et(){var t=h.negativeFeedback+y.value+"&".concat(Y,"&source=").concat($,"&responseID=").concat(X.id,"&uuid=").concat(X.uuid,"&comment=").concat(q.value);mt(T),Object(o.a)(t,"GET",rt,ot)}function nt(){var t=h.positiveFeedback+y.value+"&".concat(Y,"&source=").concat($,"&responseID=").concat(X.id,"&uuid=").concat(X.uuid);Q(),E.setAttribute("aria-checked","true"),Object(o.a)(t,"GET",it,ot)}function it(t){var e=k.querySelector(".h3");e.setAttribute("tabindex","-1"),gt(k),e.focus()}function rt(e){mt(T),gt(C);var n=t.querySelector("#cmp-questions__thank-you-negative .h3");n.setAttribute("tabindex","-1"),n.focus()}function ot(t,e){console.error(t),503===t.status&>(I)}function at(t){var e=t.target.parentElement,n=e.previousElementSibling;mt(e),n.querySelectorAll(".cmp-accordion__item.hidden").forEach((function(t,e){e<d-s&>(t)}));var i=document.querySelector(".item-".concat(s," a"));i&&i.focus()}function ct(t){var e;(t.preventDefault(),$=1,K=1,t.keyCode!==i.m.ENTER)?(e=this.value).length>=c?Object(o.a)(h.suggestions+e+"&".concat(Y),"GET",ut,wt):yt(x,!0,!1):lt(t)}function st(t){t.relatedTarget||yt(x,!0,!1)}function lt(t){V=!0,pt(),$=1,K=1,J=t&&t.target.classList.contains("cmp-questions__button--block"),Object(o.a)(h.searchTerm+y.value+"&".concat(Y),"GET",ft,wt),Object(r.a)(y.value)}function ut(t){if(yt(x,!0,!1),V&&0==t.length)return vt(),V=!1,!1;x&&t.forEach((function(t,e){if(null!==t.error)return!1;gt(x);var n=document.createElement("button");n.classList.add("cmp-question__suggestion-item");var r=x.appendChild(n);r.innerHTML=t.value,r.setAttribute("data-id",t.secret),r.addEventListener("mousedown",(function(n){dt(n,t,e)})),r.addEventListener("keyup",(function(n){n.keyCode!==i.m.ENTER&&n.keyCode!==i.m.SPACE||dt(n,t,e)}))}
1))}function dt(t,e,n){var i,a;t.preventDefault(),pt(),i=encodeURI(ht(e.value)),a=e.secret,$=9,K=2,J=!1,Z=0==n,Object(o.a)(h.singleAnswer+i+"&".concat(Y,"&id=").concat(a),"GET",ft,wt),Object(r.a)(encodeURI(ht(e.value)))}function ht(t){for(var e=new Array("&","'","Œ","œ","Š","š","Ÿ","ˆ","˜","–","—","‘","’","‚","“","”","„","†","‡","…","‰","‹","›","€","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","ø","ù","ú","û","ü","ý","þ","ÿ","¡","¤","¢","£","¥","¦","§","¨","©","ª","«","¬","®","™","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","×","÷"),n=new Array("&","'","Å","Å","Å ","Å¡","Ÿ","Ë","Ë","â","â","â","â","â","â","â","â","â ","â¡","â¦","â°","â¹","âº","â¬","Ã","Ã","Ã","Ã","Ã","Ã
","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","Ã","à ","á","â","ã","ä","Ã¥","æ","ç","è","é","ê","ë","ì","Ã","î","ï","ð","ñ","ò","ó","ô","õ","ö","ø","ù","ú","û","ü","ý","þ","ÿ","¡","¤","¢","£","Â¥","¦","§","¨","©","ª","«","¬","®","â¢","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","Ã","÷"),i=0;i<e.length;i++){var r=new RegExp(e[i],"g");t=t.replace(r,n[i])}return t}function ft(t){var e=!0;if(t.exactMatches)if(1==t.exactMatches.length){gt(v),gt(_),E&&(E.disabled=!1,E.checked=!1,E.setAttribute("aria-checked","false")),L&&(L.disabled=!1,L.checked=!1,L.setAttribute("aria-checked","false"));var n=document.createElement("div");n.classList.add("cmp-text");var i=v.querySelector(".content").appendChild(n),r=t.exactMatches.pop();if(X=r,v.querySelector(".cmp-questions__title").innerHTML=r.title,2==K){var o=document.createElement("div");o.innerHTML=r.title,y.value=o.textContent,v.querySelector(".singleAnswerMessge").classList.add("hidden")}else v.querySelector(".singleAnswerMessge").classList.remove("hidden");i.innerHTML=r.body.split("\x3c!--startTrim--\x3e").pop().split("\x3c!--endTrim--\x3e")[0];var a=i.querySelectorAll("table");a&&a.length>0&&a[a.length-1].setAttribute("align","")}else 0==t.exactMatches.length?(vt(),gt(w),w.setAttribute("tabindex","-1"),e=!1):t.exactMatches.length>1&&_t(t.exactMatches,P);if(""!=y.value?(2==K||J||(y.focus(),Z=!0),J&&(Z=!0),!Z&&f&&2==K&&f.focus()):m.focus(),e){var c=[];t.relatedEntries&&t.relatedEntries.length>0&&(t.relatedEntries.forEach((function(t){t.isRelatedEntry=!0})),c=t.relatedEntries),t.partialMatches&&t.partialMatches.length>0&&t.partialMatches.forEach((function(t){t.isRelatedEntry=!1})),(c=c.concat(t.partialMatches)).length>0&&_t(c,b)}V=!1}function pt(){yt(x,!0,!1),yt(g),yt(b),yt(P),yt(v),gt(p),mt(w),mt(_),mt(A),mt(k),mt(T),mt(C),mt(I)}function mt(t){t&&t.classList.add("hidden")}function gt(t){t&&t.classList.remove("hidden")}function yt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t&&(e&&(t.innerHTML=""),n&&(t.querySelector(".content").innerHTML=""),i&&mt(t))}function vt(t){t&&t.preventDefault(),pt(),mt(p),Object(o.a)(h.topQuestions+"&".concat(Y),"GET",bt,wt)}function bt(t){_t(t.topQuestions,g)}function xt(t,e){e.preventDefault();var n=e.target.closest("a");if(yt(x,!0,!1),null===n.parentElement.nextElementSibling){var i=document.createElement("div");i.classList.add("cmp-questions__temp"),n.closest(".cmp-accordion__item").appendChild(i);var r=e.currentTarget&&e.currentTarget.children[0].innerHTML,a=H;n.classList.contains(G)?a=R:n.classList.contains(F)?(a=B,n.classList.contains(W)&&(a=j)):n.classList.contains(z)&&(a=D);var c=h.questionClick+"&".concat(Y,"&source=").concat(a,"&id=").concat(n.getAttribute("data-id"),"&question=").concat(encodeURI(r));Object(o.a)(c,"GET",St,At)}else n.parentElement.nextElementSibling.classList.contains("hidden")?n.parentElement.nextElementSibling.classList.remove("hidden"):n.parentElement.nextElementSibling.classList.add("hidden");n.classList.toggle("cmp-accordion__button--expanded"),n.setAttribute("aria-expanded","fal
1se"===n.getAttribute("aria-expanded"))}function _t(t,e){if(t.length>0){gt(e);var n=e.querySelector(".popularTopicsHeading");n&&n.setAttribute("tabindex","-1"),t.forEach((function(t,n){var i=function(t,e,n,i){var r="item-"+i,o=document.createElement("div"),a=e.querySelector(".content").appendChild(o),c="",s="";return e==P?s=G:e==b?(s=F,c=t.isRelatedEntry?W:U):e==g&&(s=z),a.innerHTML='<div class="cmp-accordion__item '.concat(r," ").concat(n?"hidden":"",'">\n <h3>\n <a href="#" tabindex="0" class="cmp-accordion__button ').concat(s," ").concat(c,'" aria-expanded="false" data-id="').concat(t.id,'">\n <span class="cmp-accordion__title">').concat(t.title,'</span>\n <span class="cmp-accordion__icon" aria-hidden="true"></span>\n </a>\n </h3>\n </div>'),a}(t,e,n>=s,n);i.querySelector(".cmp-accordion__button").addEventListener("click",xt.bind(event,i),!1)})),t.length>=s&&e!=P&>(e.querySelector(".cmp-questions__read-more")),w&&w.classList.contains("hidden")&&n&&n.focus()}}function St(t){var e=document.querySelector(".cmp-questions__temp");e.innerHTML=t.exactMatches.pop().body.split("\x3c!--startTrim--\x3e").pop().split("\x3c!--endTrim--\x3e")[0],e.classList.remove("cmp-questions__temp"),e.classList.add("cmp-questions__question-body"),e.classList.add("cmp-text"),e.setAttribute("data-element-state","initialized")}function wt(t,e){console.error(t),gt(A),gt(p)}function At(t,e){if(console.error(t),t.status&&503===t.status){var n=document.querySelector(".cmp-questions__temp");n.innerHTML="<div>".concat(N.value,"</div>"),n.classList.remove("cmp-questions__temp"),n.classList.add("cmp-questions__question-body"),n.classList.add("cmp-text"),n.setAttribute("data-element-state","initialized")}}O?(t.querySelector(".cmp-questions__input-search-column").classList.remove("aem-GridColumn--default--10"),t.querySelector(".cmp-questions__input-search-column").classList.add("aem-GridColumn--default--6")):(t.querySelector(".cmp-questions__input-search-column").classList.remove("aem-GridColumn--default--6"),t.querySelector(".cmp-questions__input-search-column").classList.add("aem-GridColumn--default--10")),y.addEventListener("keyup",ct),y.addEventListener("blur",st),f&&f.addEventListener("click",vt),m.addEventListener("click",lt),S.forEach((function(t){t.addEventListener("click",at)})),E&&E.addEventListener("click",nt),L&&L.addEventListener("click",tt),M&&M.addEventListener("click",et)}return{init:function(){var e=document.querySelectorAll('.cmp-questions:not([data-component-state="initialized"])');e.length>0&&e.forEach((function(e){t(e),e.setAttribute("data-component-state","initialized")}))}}}();"loading"!==document.readyState?c.init():document.addEventListener("DOMContentLoaded",c.init)},function(t,e){},function(t,e,n){"use strict";n(32);var i=n(5),r=n(0),o={init:function(){var t=document.querySelectorAll(".".concat("cmp-region-selector",':not([data-component-state="initialized"])'));t.length>0&&t.forEach((function(t){!function(t){var e=document.querySelector(".cmp-region-selector"),n=i.a.cookieGetItem(r.N),o=document.querySelectorAll(".cmp-region-selector__title-name"),a=e.getAttribute("data-environment");if(null===n||""===n)"author"!==a&&e.querySelector(".cmp-region-selector__title-link").click();else{var c=JSON.parse('{"'+n.split("|").join('","').split("=").join('":"')+'"}');c.hasOwnProperty("statename")?null===c.cityname||""===c.cityname?null!==o&&o.forEach((function(t){t.innerHTML=c.statename})):null!==o&&o.forEach((function(t){t.innerHTML=c.cityname+", "+c.statename})):e.querySelector(".cmp-region-selector__title-link").click()}}(),t.setAttribute("data-component-state","initialized")}))}};"loading"!==document.readyState?o.init():document.addEventListener("DOMContentLoaded",o.init)},function(t,e,n){"use strict";var i=n(0),r="",o=[],a=[],c=[],s="",l=!1,u=!1,d={root:null,rootMargin:"0px",thershold:1},h={code:"",Extend:function(t){t=t||{},h.size=t.size||0,h.page=t.page||1,h.step=t.step||7},Add:function(t,e){if(h.size>1)for(var n=t;n<e;n++)h.code+='<a tabindex="0">'+n+"</a>"},Last:function(){h.code+='<i>...</i><a tabindex="0">'+h.size+"</a>"},First:function(){h.code+='<a tabindex="0">1</a><i>...</i>'},Click:function(){h.page=+this.innerHTML,h.Start(),document.getElementById("cmp-our-resource-details").scrollIntoView()},Prev:function(){(h.page--,h.page<1&&(h.page=1),h.Start(),document.getElementById("cmp-our-resource-details").scrollIntoView(),L(),u)?document.getElementById("cmp-resource-details-select").focus():document.getElementById("tabs-All-tab").focus()},Next:function(){(h.page++,h.page>h.size&&(h.page=h.size),h.Start(),document.getElementById("cmp-our-resource-details").scrollIntoView(),L(),u)?document.getElementById("cmp-resource-details-select").focus():document.getElementById("tabs-All-tab").focus()},Bind:function(){for(var t=h.e.getElementsByTagName("a"),e=0;e<t.length;e++)+t[e].innerHTML===h.page&&(t[e].className="active"),t[e].addEventListener("click",h.Click,!1),t[e].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||(h.page=+this.innerHTML,h.Start(),document.getElementById("cmp-our-resource-details").scrollIntoView())}),!1)},Finish:function(){h.e.innerHTML=h.code,h.code="",h.Bind()},Start:function(){h.size<4?h.Add(1,h.size+1):h.page<2*h.step+1?h.size>4?(h.Add(1,2*h.step+2),h.Last()):h.Add(1,h.size+1):h.page>h.size-2*h.step?h.size>4&&h.page>4?(h.First(),h.Add(h.size-2,h.size+1)):h.Add(1,h.size+1):(h.page>3?h.First():h.Add(1,h.page),h.page-h.step==2?h.Add(3,h.page+h.step+1):h.size-h.page==2?4==h.page&&6==h.size?h.Add(3,h.size+1):h.Add(h.page-h.step,h.size+1):h.Add(h.page-h.step,h.page+h.step+1),h.size-h.page>2&&h.Last()),b(a,document.getElementById("resource-details-list"),7,h.page),h.Finish()},Buttons:function(t){if(h.size>3){var e=t.getElementsByTagName("a");e[0].addEventListener("click",h.Prev,!1),e[1].addEventListener("click",h.Next,!1),e[0].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||h.Prev()}),!1),e[1].addEventListener("keyup",(function(t){"Enter"!=t.code&&"Space"!=t.code||h.Next()}),!1)}},Create:function(t){var e=[];e=h.size>3?['<a role="link" aria-label="previous page" tabindex="0" class="td-icon td-icon-leftCaret resourcedetailsanchor"></a>',"<span></span>",'<a role="link" aria-label="next page" tabindex="0" class="td-icon td-icon-rightCaret resourcedetailsanchor next"></a>']:["<span></span>"],t.innerHTML=e.join(""),h.e=t.getElementsByTagName("span")[0],h.Buttons(t)},Init:function(t,e){h.Extend(e),h.Create(t),h.Start()}},f=function(){(a=c,u?y(a,o):m(a,o),a<1)?document.getElementById("resource-details-view-all").style.display="none":document.getElementById("resource-details-view-all").style.display="block"},p=function(t){var e=document.getElementById("cmp-resource-details-show-records");e.innerHTML="",e.innerHTML=t},m=function(t,e){var n=document.getElementById("resource-details-tab-list");if(n.innerHTML="",e.forEach((function(e){var i=[];e.resourcetypeIds.forEach((function(e){t.filter((function(t){t.resourceFilterType==e&&i.push(t)}))}));var r=i.length,o=document.createElement("li");o.setAttribute("role","tab");var c="tabs-"+e.title+"-tab";o.setAttribute("id",c),o.setAttribute("aria-selected","false"),o.setAttribute("tabindex","-1"),o.innerText=e.title+" ("+r+")",r?o.addEventListener("click",(function(t){a=i,s=c,l=!1,document.getElementById("pagination-container").style.display="block",v(r),g(s)})):s==c?o.classList.add("cmp-resource-details--disabled-tab--highlight"):o.classList.add("cmp-resource-details--disabled-tab"),n.appendChild(o)})),a.length){if(s)document.getElementById(s).click();else n.children[0].click(),n.children[0].setAttribute("tabindex","0"),n.children[0].setAttribute("aria-selected","true")}else{var r=document.getElementById("resource-details-list");r.innerHTML="";var o=document.createElement("div");o.classList.add("aem-GridColumn","aem-GridColumn--default--8","aem-GridColumn--offset--default--2","aem-GridColumn--phone--12","aem-GridColumn--offset--phone--0","aem-GridColumn--tabletportrait--12","aem-GridColumn--offset--tabletportrait--0");var c=document.createElement("div");c.classList.add("cmp-text"),c.classList.add("error-mesg");var u=document.createElement("p");u.innerHTML=errorMesg;var d=document.createElement("button");if(d.innerText="Clear All",d.addEventListener("click",(function(t){f()})),c.appendChild(u),c.appendChild(d),o.appendChild(c),r.appendChild(o),document.getElementById("resource-details-pagination").innerHTML="",a<1)document.getElementById("resource-details-view-all").style.display="none";else document.getElementById("resource-details-view-all").style.display="block"}for(var h=n.getElementsByTagName("li"),p=function(t){h[t].addEventListener("focus",(function(e){h[t].addEventListener("keydown",(function(e){if(e.keyCode===i.m.ARROW_RIGHT||e.keyCode===i.m.ARROW_LEFT||e.keyCode===i.m.ARROW_UP||e.keyCode===i.m.ARROW_DOWN){var n=h[t];if(e.keyCode===i.m.ARROW_RIGHT||e.keyCode===i.m.ARROW_DOWN){var r=n.nextElementSibling;r.focus();var o=r.getAttribute("id");document.getElementById(o).click()}else{var a=n.previousElementSibling;a.focus();var c=a.getAttribute("id");document.getElementById(c).click()}}}))}))},m=0;m<h.length;m++)p(m)},g=function(t){document.getElementById("resource-details-tab-list").querySelectorAll("li").forEach((function(e){e.getAttribute("id")==t?(e.classList.add("active-resource-details-tab"),e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0")):(e.classList.remove("active-resource-details-tab"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false"))}))},y=function(t,e){var n=document.getElementById("cmp-resource-details-select");if(n.innerHTML="",e.forEach((function(e){var i=[];e.resourcetypeIds.forEach((function(e){t.filter((function(t){t.resourceFilterType==e&&i.push(t)}))}));var r=i.length,o=document.createElement("option"),a="tabs-"+e.title+"-tab-mobile";o.setAttribute("id",a),o.setAttribute("value",a+"-"+r),o.setAttribute("aria-selected","true"),o.text=e.title+" ("+r+")",o.setAttribute("tabindex","0"),n.appendChild(o)})),a.length)n.addEventListener("change",(function(e){console.log(e.target.value.split("-"));var n=[],i=e.target.value.split("-")[1];"all"!=i?o.filter((function(t){return t.title==i}))[0].resourcetypeIds.forEach((function(e){t.filter((function(t){t.resourceFilterType==e&&n.push(t)}))})):n=t;v((a=n).length),l=!1,document.getElementById("pagination-container").style.display="block"}));else{var i=document.getElementById("resource-details-list");i.innerHTML="";var r=document.createElement("div");r.classList.add("aem-GridColumn","aem-GridColumn--default--8","aem-GridColumn--offset--default--2","aem-GridColumn--phone--12","aem-GridColumn--offset--phone--0","aem-GridColumn--tabletportrait--12","aem-GridColumn--offset--tabletportrait--0");var c=document.createElement("div");c.classList.add("cmp-text"),c.classList.add("error-mesg");var s=document.createElement("p");s.innerHTML=errorMesg;var u=document.createElement("button");if(u.innerText="Clear All",u.addEventListener("click",(function(t){f()})),c.appendChild(s),c.appendChild(u),r.appendChild(c),i.appendChild(r),document.getElementById("resource-details-pagination").innerHTML="",a<1)document.getElementById("resource-details-view-all").style.display="none";else document.getElementById("resource-details-view-all").style.display="block"}},v=function(t){var e=document.getElementById("resource-details-list"),n=document.getElementById("resource-details-pagination");e.innerHTML="",n.innerHTML="";var i,r,o=Math.ceil(a.length/7);(h.Init(n,{size:o,page:1,step:1}),i=t,(r=document.getElementById("cmp-resource-details-show-records-outof")).innerHTML="",r.innerHTML=i,t<8)?document.getElementById("resource-details-view-all").style.display="none":document.getElementById("resource-details-view-all").style.display="block"},b=function(t,e,n,i){e.innerHTML="";for(var r=n*--i,o=r+n,a=t.slice(r,o),c=0;c<a.length;c++){for(var s=a[c],l=s.coeColor.split("/").pop(),u=l.split("-"),d=0;d<u.length;d++)u[d]=u[d].charAt(0).toUpperCase()+u[d].slice(1);var h=s.shortDescription,f=document.createElement("div");f.classList.add("cmp-resource-details--main-container"),f.innerHTML=""!=h?'<div class="cmp-resource-details__coetext" >'+s.coeTitle+'</div> <div class="'+l+'"> <div class="cmp-resource-details__title" > <a href="'+s.pdfLink+'" tabindex="0" target="_blank">'+s.title+' <span class="td-icon td-icon-rightCaret"></span></a> </div> </div> <div class="cmp-text cmp-resource-details__description" >'+s.shortDescription+" </div>":'<div class="cmp-resource-details__coetext" >'+s.coeTitle+'</div> <div class="'+l+'"> <div class="cmp-resource-details__title" > <a href="'+s.pdfLink+'" tabindex="0" target="_blank">'+s.title+' <span class="td-icon td-icon-rightCaret"></span></a> </div> </div>',e.appendChild(f)}p(a.length),E()},x=function(t,e){var n=new XMLHttpRequest;n.overrideMimeType("application/json"),n.open("GET",t,!0),n.onreadystatechange=function(){4===n.readyState&&"200"==n.status&&e(n.responseText)},n.send(null)};var _=function(t,e){t.forEach((function(t){"resourcedetails-lastDiv"===t.target.id&&t.isIntersecting&&l&&setTimeout((function(){console.log("last section reached"),S()}),300)}))},S=function(){var t=document.getElementById("resource-details-list"),e=t.childNodes.length/7+1;w(a,t,7,e)},w=function(t,e,n,i){var r=document.getElementById("resourcedetails-lastDiv");new IntersectionObserver(_,d).observe(r);for(var o=n*--i,a=o+n,c=t.slice(o,a),s=0;s<c.length;s++){for(var l=c[s],u=l.coeColor.split("/").pop(),h=u.split("-"),f=0;f<h.length;f++)h[f]=h[f].charAt(0).toUpperCase()+h[f].slice(1);
1var m=l.shortDescription,g=document.createElement("div");g.classList.add("cmp-resource-details--main-container"),g.innerHTML=""!=m?'<div class="cmp-resource-details__coetext" >'+l.coeTitle+'</div> <div class="'+u+'"> <div class="cmp-resource-details__title" > <a href="'+l.pdfLink+'" tabindex="0" target="_blank">'+l.title+' <span class="td-icon td-icon-rightCaret"></span></a> </div> </div> <div class="cmp-text cmp-resource-details__description" >'+l.shortDescription+" </div>":'<div class="cmp-resource-details__coetext" >'+l.coeTitle+'</div> <div class="'+u+'"> <div class="cmp-resource-details__title" > <a href="'+l.pdfLink+'" tabindex="0" target="_blank">'+l.title+' <span class="td-icon td-icon-rightCaret"></span></a> </div> </div>',e.appendChild(g)}p(t.length),E()};function A(t){var e=document.getElementsByClassName("active-resource-details-tab")[0].innerText,n="";null!=t.target.textContent&&(n=t.target.textContent.trim()),window.tms_tag=window.tms_tag||[],tms_tag.push({event:"linkClick",link:{name:n,type:"link",product:"tdgis:public",searchFilters:e.replace(/[^A-Za-z]+/g,"")}})}function E(){for(var t=document.getElementsByClassName("cmp-resource-details__title"),e=0;e<t.length;e++)try{t[e].querySelector("a").addEventListener("click",A)}catch(t){console.log("Error occurred in addClickEvent")}}var L=function(){window.innerWidth<1024&&(u=!0),window.addEventListener("resize",(function(t){var e=window.innerWidth;u=e<1024}))},k=function(){var t;document.getElementById("cmp-our-resource-details")&&(t=document.documentElement.getAttribute("lang").split("-"),r=t[1]?t[0].toLocaleLowerCase()+"."+t[1].toLocaleLowerCase():t[0].toLocaleLowerCase(),function(){if(document.getElementById("cmp-our-resource-details")){var t=document.getElementById("cmp-our-resource-details").getAttribute("path");x(t+"."+r+".json",(function(t){var e=JSON.parse(t);e&&(o=e.tablist,e.resourceData.map((function(t,e){return t.id=e+1})),c=e.resourceData,a=e.resourceData,m(c,o),y(c,o))}))}}(),function(){var t=document.getElementById("resource-details-view-all"),e=document.getElementById("pagination-container"),n=document.getElementById("resource-details-list"),i=document.getElementById("cmp-our-resource-details"),r=document.getElementById("resourcedetails-lastDiv");new IntersectionObserver(_,d).observe(r),t.addEventListener("click",(function(){i.scrollIntoView(),l=!0,e.style.display="none",n.innerHTML="",w(a,n,7,1)}))}(),L())};"loading"!==document.readyState?k():document.addEventListener("DOMContentLoaded",k)},function(t,e,n){"use strict";var i=n(0);n(3);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function c(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var c=i&&i.prototype instanceof l?i:l,u=Object.create(c.prototype);return s(u,"_invoke",function(n,i,r){var o,c,s,l=0,u=r||[],d=!1,h={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,c=0,s=t,h.n=n,a}};function f(n,i){for(c=n,s=i,e=0;!d&&l&&!r&&e<u.length;e++){var r,o=u[e],f=h.p,p=o[2];n>3?(r=p===i)&&(s=o[(c=o[4])?5:(c=3,3)],o[4]=o[5]=t):o[0]<=f&&((r=n<2&&f<o[1])?(c=0,h.v=i,h.n=o[1]):f<p&&(r=n<3||o[0]>i||i>p)&&(o[4]=n,o[5]=i,h.n=p,c=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),c=u,s=p;(e=c<2?t:s)||!d;){o||(c?c<3?(c>1&&(h.n=-1),f(c,s)):h.n=s:h.v=s);try{if(l=2,o){if(c||(r="next"),e=o[r]){if(!(e=e.call(o,s)))throw TypeError("iterator result is not an object");
1if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=o.return)&&e.call(o),c<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),c=1);o=t}else if((e=(d=h.n<0)?s:n.call(i,h))!==a)break}catch(e){o=t,c=1,s=e}finally{l=1}}return{value:e,done:d}}}(n,r,o),!0),u}var a={};function l(){}function u(){}function d(){}e=Object.getPrototypeOf;var h=[][i]?e(e([][i]())):(s(e={},i,(function(){return this})),e),f=d.prototype=l.prototype=Object.create(h);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,r,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=d,s(f,"constructor",d),s(d,"constructor",u),u.displayName="GeneratorFunction",s(d,r,"GeneratorFunction"),s(f),s(f,r,"Generator"),s(f,i,(function(){return this})),s(f,"toString",(function(){return"[object Generator]"})),(c=function(){return{w:o,m:p}})()}function s(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}(s=function(t,e,n,i){function o(e,n){s(t,e,(function(t){return this._invoke(e,n,t)}))}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(o("next",0),o("throw",1),o("return",2))})(t,e,n,i)}function l(t,e,n,i,r,o,a){try{var c=t[o](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(i,r)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){l(o,i,r,a,c,"next",t)}function c(t){l(o,i,r,a,c,"throw",t)}a(void 0)}))}}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,h(i.key),i)}}function h(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function f(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function p(t,e){return t.get(g(t,e))}function m(t,e,n){return t.set(g(t,e),n),n}function g(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var y=new WeakMap,v=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,S=new WeakMap,w=new WeakMap,A=new WeakMap,E=new WeakMap,L=new WeakMap,k=new WeakMap,C=new WeakMap,T=new WeakMap,M=new WeakMap,q=new WeakMap,I=new WeakMap,O=new WeakMap,P=function(){return function(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,y,"cmp-search-4-4d"),f(this,v,void 0),f(this,b,void 0),f(this,x,void 0),f(this,_,void 0),f(this,S,void 0),f(this,w,void 0),f(this,A,void 0),f(this,E,void 0),f(this,L,void 0),f(this,k,void 0),f(this,C,void 0),f(this,T,void 0),f(this,M,void 0),f(this,q,[]),f(this,I,!1),f(this,O,!0),m(v,this,e)}),[{key:"initialize",value:function(){m(b,this,p(v,this).querySelector(".".concat(p(y,this),"__search-input"))),m(x,this,p(v,this).querySelector(".".concat(p(y,this),"__suggestion-button button"))),m(L,this,p(v,this).querySelector(".".concat(p(y,this),"__occupation-box--occupation-block"))),m(k,this,p(v,this).querySelector(".".concat(p(y,this),"__occupation-box--industry-block"))),m(E,this,JSON.parse(p(v,this).querySelector("#sbiSearchAPIdata").value)),m(T,this,p(v,this).querySelector(".".concat(p(y,this),"__no-results"))),m(M,this,p(v,this).querySelector(".".concat(p(y,this),"__api-error"))),m(_,this,p(v,this).querySelector(".".concat(p(y,this),"__suggestion-dropdown"))),m(S,this,p(v,this).querySelector(".".concat(p(y,this),"__occupation-container"))),m(w,this,p(v,this).querySelector(".".concat(p(y,this),"__btn-block"))),m(A,this,p(v,this).querySelector(".".concat(p(y,this),"__popular-occupations"))),this.performSearch(),this.onSearchBtnClick(),this.hideBtnContainerOnLoad()}},{key:"performSearch",value:function(){var t,e,n,r=this;p(b,this).addEventListener("keyup",(t=function(t){var e=(p(b,r).value||" ").toLowerCase().trim();t.keyCode==i.m.ENTER?""!==e&&(m(O,r,!0),r.hide(p(_,r)),r.hide(p(T,r)),r.hide(p(M,r)),r.hide(p(A,r)),0==p(q,r).length?r.loadData():r.showSuggestions()):(m(O,r,!1),r.searchString())},e=300,function(){for(var i=this,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){return t.apply(i,o)}),e)})),document.addEventListener("mousedown",this.handleDocumentClick.bind(this))}},{key:"handleDocumentClick",value:function(t){t.target!==p(b,this)&&(this.hide(p(_,this)),p(I,this)&&(this.show(p(M,this)),this.show(p(w,this))))}},{key:"hideBtnContainerOnLoad",value:function(){p(w,this)&&p(w,this).classList.add("hidden")}},{key:"sanitizeHTML",value:function(t){return t.replace(/<strong>/g,"%%STRONG_OPEN%%").replace(/<\/strong>/g,"%%STRONG_CLOSE%%").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/%%STRONG_OPEN%%/g,"<strong>").replace(/%%STRONG_CLOSE%%/g,"</strong>")}},{key:"highlightMatch",value:function(t,e){if(!e)return this.sanitizeHTML(t);var n=this.normalizeString(t),i=this.normalizeString(e);if(!i)return this.sanitizeHTML(t);for(var r=[],o=0;o<n.length;){var a=n.indexOf(i,o);if(-1===a)break;r.push(a),o=a+i.length}if(0===r.length)return this.sanitizeHTML(t);for(var c="",s=0,l=0;l<r.length;l++){var u=r[l],d=u+i.length,h=this._originalIndexFromNormalized(t,u),f=this._originalIndexFromNormalized(t,d);c+=this.sanitizeHTML(t.slice(s,h)),c+="<strong>"+this.sanitizeHTML(t.slice(h,f))+"</strong>",s=f}return c+=this.sanitizeHTML(t.slice(s))}},{key:"_originalIndexFromNormalized",value:function(t,e){for(var n=0,i=0;n<t.length&&i<e&&!((i=this.normalizeString(t.slice(0,n+1)).length)>e);)n++;return n}},{key:"searchString",value:(n=u(c().m((function t(){return c().w((function(t){for(;;)switch(t.n){case 0:if(!((p(b,this).value||" ").toLowerCase().trim().length>=p(E,this).minSearchCharLength)){t.n=4;break}if(0!=p(q,this).length){t.n=2;break}return t.n=1,this.loadData();case 1:t.n=3;break;case 2:this.showSuggestions();case 3:t.n=5;break;case 4:this.hide(p(_,this)),this.hide(p(T,this));case 5:return t.a(2)}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"fetchData",value:(e=u(c().m((function t(e){var n,i;return c().w((function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,fetch(e);case 1:if((n=t.v).ok){t.n=2;break}throw new Error("HTTP error! status: ".concat(n.status));case 2:return t.n=3,n.json();case 3:return i=t.v,t.a(2,i);case 4:throw t.p=4,t.v,new Error("errr");case 5:return t.a(2)}}),t,null,[[0,4]])}))),function(t){return e.apply(this,arguments)})},{key:"loadData",value:(t=u(c().m((function t(){var e,n,r;return c().w((function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,e=geoLocationLang===i.o?p(E,this).sbiApiFr:p(E,this).sbiApiEn,t.n=1,this.fetchData(e);case 1:n=t.v,m(q,this,null==n?void 0:n.sbi_industry_occupation),m(I,this,!1),this.hide(p(M,this)),this.addingAriaAttributes("",!0),this.filterOccupationAndIndustry(),t.n=3;break;case 2:t.p=2,r=t.v,m(q,this,[]),m(I,this,!0),this.apiError(r);case 3:return t.a(2)}}),t,this,[[0,2]])}))),function(){return t.apply(this,arguments)})},{key:"apiError",value:function(){this.hide(p(A,this)),this.hide(p(T,this)),this.show(p(M,this)),this.addingAriaAttributes(p(M,this).id,!1),m(C,this,{occupations:[],industries:[]}),document.activeElement==p(b,this)&&this.showDropdownErorMsg()}},{key:"onSearchBtnClick",value:function(){var t=this;p(x,this).addEventListener("click",(function(e){e.preventDefault(),m(O,t,!0),""!==(p(b,t).value||" ").toLowerCase().trim()&&(0==p(q,t).length?t.loadData():t.showSuggestions())}))}},{key:"showSearchResults",value:function(){var t,e;(null===(t=p(C,this))||void 0===t?void 0:t.occupations.length)>0||(null===(e=p(C,this))||void 0===e?void 0:e.industries.length)>0?(this.addingAriaAttributes("",!0),this.generateDynamicMarkup(),this.hide(p(_,this)),this.hide(p(A,this)),this.hide(p(T,this)),this.hide(p(M,this)),this.show(p(S,this)),this.show(p(w,this))):(this.hide(p(S,this)),this.hide(p(w,this)),this.hide(p(S,this)),this.hide(p(T,this)),this.hide(p(A,this)),this.show(p(w,this)),p(I,this)?this.show(p(M,this)):(this.generateDynamicMarkup(),this.hide(p(M,this))))}},{key:"showSuggestions",value:function(){this.filterOccupationAndIndustry()}},{key:"filterOccupationAndIndustry",value:function(){var t=this,e=this.normalizeString(p(b,this).value),n=p(q,this).map((function(n){var i=n.industry,r
1=n.industryPageUrl,o=n.occupations,a=t.normalizeString(i).includes(e),c=o.filter((function(n){var i=n.name,r=n.description,o=n.keywords;return t.normalizeString(i).includes(e)||r.some((function(n){return t.normalizeString(n).includes(e)}))||o.some((function(n){return t.normalizeString(n)===e}))}));return a||c.length>0?{industry:i,industryPageUrl:r,occupations:c}:null})).filter(Boolean),i=n.map((function(t){return{industryName:t.industry,industryPageUrl:t.industryPageUrl}})),r=n.flatMap((function(t){return t.occupations.filter((function(t){return t.name&&t.name.trim()})).map((function(e){return{occupationName:e.name,occupationUrl:e.url,industryName:t.industry,industryUrl:t.industryPageUrl}}))}));r.sort((function(t,e){return t.occupationName.localeCompare(e.occupationName)})),i.sort((function(t,e){return t.industryName.localeCompare(e.industryName)}));var a=[].concat(o(r),o(i));m(C,this,{occupations:r,industries:i}),this.hide(p(T,this)),p(O,this)?this.showSearchResults():this.dropdownBoxMarkup(a,e)}},{key:"normalizeString",value:function(t){return(t||"").toLowerCase().replace(/[\u00A0\u202F]/g," ").replace(/(\d)\s+(\d)/g,"$1$2").replace(/\s+/g," ").trim()}},{key:"dropdownBoxMarkup",value:function(t,e){var n=this;0!==t.length?(this.addingAriaAttributes("",!0),p(_,this).innerHTML="",t.forEach((function(t,r){if(r<p(E,n).maxSearchSuggestionDropdownOption){n.show(p(_,n));var o=document.createElement("button");o.classList.add("".concat(p(y,n),"__suggestion-item"));var a=t.occupationName||t.industryName,c=t.occupationUrl||t.industryPageUrl,s=p(_,n).appendChild(o);s.innerHTML=n.highlightMatch(a,e),s.setAttribute("data-id",r),s.setAttribute("role","link"),s.addEventListener("mousedown",(function(t){n.onSearchSuggestionSelect(c)})),s.addEventListener("keyup",(function(t){t.keyCode!==i.m.ENTER&&t.keyCode!==i.m.SPACE||n.onSearchSuggestionSelect(c)}))}}))):(this.hide(p(_,this)),this.show(p(T,this)),this.hide(p(A,this)),this.hide(p(S,this)),this.hide(p(w,this)),this.addingAriaAttributes(p(T,this).id,!1))}},{key:"addingAriaAttributes",value:function(t,e){p(T,this).setAttribute("aria-hidden",e),p(M,this).setAttribute("aria-hidden",e),p(b,this).setAttribute("aria-describedby",t)}},{key:"showDropdownErorMsg",value:function(){p(_,this).innerHTML="";var t=document.createElement("button");t.classList.add("".concat(p(y,this),"__suggestion-item"));var e=p(M,this).querySelector(".cmp-text").textContent,n=p(_,this).appendChild(t);n.textContent=e,n.setAttribute("data-id","0"),this.show(p(_,this)),this.hide(p(M,this)),this.hide(p(w,this))}},{key:"onSearchSuggestionSelect",value:function(t){window.open(t,"_self")}},{key:"hide",value:function(t){t&&t.classList.add("hidden")}},{key:"show",value:function(t){t&&t.classList.remove("hidden")}},{key:"generateDynamicMarkup",value:function(){var t,e;this.show(p(S,this)),p(S,this).querySelector(".results-count").textContent=(null===(t=p(C,this))||void 0===t?void 0:t.occupations.length)+(null===(e=p(C,this))||void 0===e?void 0:e.industries.length),this.dynamicHtmlForOccupationList(),this.dynamicHtmlForIndustryList()}},{key:"dynamicHtmlForOccupationList",value:function(){var t,e=this;if((null===(t=p(C,this))||void 0===t?void 0:t.occupations.length)>0){var n,r;this.show(p(L,this));var o=p(L,this).querySelector("ul");p(L,this).querySelector(".occupation-count").textContent=null===(n=p(C,this))||void 0===n?void 0:n.occupations.length,o?o.innerHTML="":((o=document.createElement("ul")).classList.add("".concat(p(y,this),"__occupation-box--occupation-list")),p(L,this).appendChild(o));var a=function(t){t.preventDefault();var n=t.currentTarget.getAttribute("href");e.onSearchSuggestionSelect(n)},c=function(t){if(t.preventDefault(),t.keyCode===i.m.ENTER||t.keyCode===i.m.SPACE){var n=t.currentTarget.getAttribute("href");e.onSearchSuggestionSelect(n)}};null===(r=p(C,this))||void 0===r||r.occupations.forEach((function(t){var n=document.createElement("li"),i=o.appendChild(n),r=document.createElement("a"),s=i.appendChild(r);s.classList.add("".concat(p(y,e),"__occupation-box--occupation-name")),s.setAttribute("href",t.occupationUrl),s.textContent=t.occupationName,s.addEventListener("mousedown",a),s.addEventListener("keyup",c)}))}else this.hide(p(L,this))}},{key:"dynamicHtmlForIndustryList",value:function(){var t,e=this;if((null===(t=p(C,this))||void 0===t?void 0:t.industries.length)>0){var n,r;this.show(p(k,this)),p(k,this).querySelector(".industry-count").textContent=null===(n=p(C,this))||void 0===n?void 0:n.industries.length;var o=p(k,this).querySelector("ul");o?o.innerHTML="":((o=document.createElement("ul")).classList.add("".concat(p(y,this),"__occupation-box--industry-list")),p(k,this).appendChild(o));var a=function(t){t.preventDefault();var n=t.currentTarget.getAttribute("href");e.onSearchSuggestionSelect(n)},c=function(t){if(t.preventDefault(),t.keyCode===i.m.ENTER||t.keyCode===i.m.SPACE){var n=t.currentTarget.getAttribute("href");e.onSearchSuggestionSelect(n)}};
1null===(r=p(C,this))||void 0===r||r.industries.forEach((function(t){var n=document.createElement("li"),i=o.appendChild(n),r=document.createElement("a"),s=i.appendChild(r);s.classList.add("".concat(p(y,e),"__occupation-box--occupation-name")),s.setAttribute("href",t.industryPageUrl),s.textContent=t.industryName,s.addEventListener("mousedown",a),s.addEventListener("keyup",c)}))}else this.hide(p(k,this))}}]);var t,e,n}();function N(){var t=document.querySelectorAll('.cmp-search-4-4d:not([data-component-state="initialized"])');t.length>0&&t.forEach((function(t){new P(t).initialize(),t.setAttribute("data-component-state","initialized")}))}"loading"!==document.readyState?N():document.addEventListener("DOMContentLoaded",N)},function(t,e,n){"use strict";var i=n(1),r=n(0);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var c=function(){var t="cmp-search-4-9a-filter-product";function e(e){var n=e;if(n){var a,c=n.querySelectorAll(".filter-product-card"),s=n.querySelectorAll(".".concat(t,"__container-filter-tags__block-container")),l=n.querySelector(".".concat(t,"__container-load-more")),u=n.getAttribute("data-hide-filter"),d=n.querySelector(".showing-text"),h=n.querySelector(".".concat(t,"__container-products")).getAttribute("data-max-no-of-cards"),f=[];l.addEventListener("click",(function(){f.forEach((function(t,e){t.classList.contains("hidden")&&(e==h&&function(t){setTimeout((function(){t.getElementsByTagName("h3")[0].getElementsByTagName("a")[0].focus()}),100)}(t),t.classList.remove("hidden"),t.classList.add("card-shown"))})),l.classList.add("hidden"),setTimeout((function(){y(),v()}),100)})),"false"===u?s.forEach((function(t){!0===t.children[0].checked&&p(t.children[0],c),t.addEventListener("click",(function(){p(t.children[0],c)}))})):(g(),f=c,m(c)),window.addEventListener("load",(function(){i.g.lazyLoadingEqualHeight("search-4-9a-filter .cmp-image__image--is-loading",y)}))}function p(e,i){a=e.value,f=[],function(t){d.innerHTML="<span>"+t+"</span>"}(e.parentNode.getElementsByTagName("p")[0].innerHTML),g(),null!==i&&i.forEach((function(t){t.getAttribute("data-filter").split(",").includes(a)&&f.push(t)})),m(f),function(e){var i=n.querySelector("input[name=filter-cards]:checked");s.forEach((function(e){e.classList.remove("".concat(t,"__container-filter-tags__block-container--selected"))})),e?(e.setAttribute("checked","checked"),e.parentNode.classList.add("".concat(t,"__container-filter-tags__block-container--selected"))):(i.removeAttribute("checked","checked"),i.parentNode.classList.add("".concat(t,"__container-filter-tags__block-container--selected")))}(e)}
1function m(t){t.forEach((function(e,n){n<h&&(e.classList.remove("hidden"),e.classList.add("card-shown")),t.length>h&&l.classList.remove("hidden")})),setTimeout((function(){y(),v()}),300)}function g(){c.forEach((function(t){t.classList.add("hidden"),t.classList.remove("card-shown"),t.classList.remove("add-margin"),t.classList.contains("cmp-search-4-9a-filter-product__container-products-card-with-illustration")&&t.classList.add("border-Right")})),l.classList.add("hidden")}function y(){var e,n=document.querySelectorAll(".".concat(t));if(n&&0!=n.length&&(e=o(n)),window.innerWidth>=r.l.SM){if(!e)return;e.forEach((function(e){var n=e.querySelector(".".concat(t,"__container-products"));Object(i.e)(".card-shown .cmp-search-4-9a-filter-product__card-large-devices .".concat(t,"__container-products-card-with-illustration__offer"),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9a-filter-product__card-large-devices .".concat(t,"__container-products-card-with-illustration__info"),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9a-filter-product__card-large-devices .".concat(t,"__container-products-card-with-illustration__title"),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9a-filter-product__card-large-devices .".concat(t,"__container-products-card-with-illustration__info--content"),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9a-filter-product__card-large-devices",".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9a-filter-product__card-large-devices .".concat(t,"__container-products-card-with-image__title"),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9a-filter-product__card-large-devices .".concat(t,"__container-products-card-with-image__info--content"),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9a-filter-product__card-large-devices .".concat(t,"__container-products-card-with-video__title"),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9a-filter-product__card-large-devices .".concat(t,"__container-products-card-with-video__info--content"),".card-shown",n.id,!0)}))}}function v(){var t=e.querySelectorAll(".card-shown.cmp-search-4-9a-filter-product__container-products-card-with-illustration");if(window.innerWidth>=r.l.SM)for(var n=2;n<t.length;n+=3)t[n].classList.remove("border-Right");else t.forEach((function(t){return t.classList.remove("border-Right")}))}}return{init:function(){var n=document.querySelectorAll(".".concat(t,':not([data-component-state="initialized"])'));n.length>0&&n.forEach((function(t){e(t),t.setAttribute("data-component-state","initialized")}))}}}();"loading"!==document.readyState?c.init():document.addEventListener("DOMContentLoaded",(function(){c.init()}))},function(t,e,n){"use strict";var i=n(1),r=n(0);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==o(e)?e:e+""}function u(t,e,n){d(t,e),e.set(t,n)}function d(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(t,e,n){return t.set(p(t,e),n),n}function f(t,e){return t.get(p(t,e))}function p(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var m=new WeakMap,g=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,S=new WeakMap,w=new WeakMap,A=new WeakMap,E=new WeakMap,L=new WeakMap,k=new WeakMap,C=new WeakMap,T=new WeakMap,M=new WeakMap,q=new WeakMap,I=new WeakMap,O=new WeakMap,P=new WeakMap,N=new WeakMap,D=new WeakMap,B=new WeakMap,j=new WeakMap,R=new WeakMap,H=new WeakMap,z=new WeakMap,F=new WeakMap,G=new WeakSet,W=function(){return function(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),d(n=this,i=G),i.add(n),u(this,m,"cmp-search-4-9b-filter-products-with-dropdown"),u(this,g,void 0),u(this,y,void 0),u(this,v,void 0),u(this,b,void 0),u(this,x,void 0),u(this,_,void 0),u(this,S,[]),u(this,w,void 0),u(this,A,""),u(this,E,[]),u(this,L,void 0),u(this,k,!1),u(this,C,0),u(this,T,"".concat(f(m,this),"__container-filter-tags__block-container")),u(this,M,"".concat(f(m,this),"__container-load-more")),u(this,q,"".concat(f(m,this),"__container-products")),u(this,I,"".concat(f(m,this),"__container-filter-tags__block-container--selected")),u(this,O,void 0),u(this,P,"".concat(f(m,this),"__container-products-card-with-illustration__offer")),u(this,N,"".concat(f(m,this),"__container-products-card-with-illustration__info")),u(this,D,"".concat(f(m,this),"__container-products-card-with-illustration__title")),u(this,B,"".concat(f(m,this),"__container-products-card-with-illustration__info--content")),u(this,j,"".concat(f(m,this),"__container-products-card-with-image__offer")),u(this,R,"".concat(f(m,this),"__container-products-card-with-image__title")),u(this,H,"".concat(f(m,this),"__container-products-card-with-image__info--content")),u(this,z,"".concat(f(m,this),"__container-products-card-with-video__title")),u(this,F,"".concat(f(m,this),"__container-products-card-with-video__info--content")),h(O,this,e)}),[{key:"initialize",value:function(){var t=this;if(h(g,this,f(O,this).querySelectorAll(".filter-product-card")),h(y,this,f(O,this).querySelectorAll(".".concat(f(T,this)))),h(v,this,f(O,this).querySelector(".".concat(f(M,this)))),h(b,this,f(O,this).getAttribute("data-is-filter")),h(x,this,f(O,this).querySelector(".showing-text")),h(_,this,f(O,this).querySelector(".".concat(f(q,this))).getAttribute("data-max-no-of-cards")),h(L,this,f(O,this).querySelector('[role="combobox"]')),"true"===f(b,this))f(y,this).forEach((function(e){e.children[0].checked=!!e.children[0].getAttribute("checked"),!0===e.children[0].checked&&p(G,t,U).call(t,e.children[0]),e.addEventListener("click",(function(){p(G,t,U).call(t,e.children[0])}))}));else if(f(L,this)){var e={button:f(O,this).querySelector('[role="combobox"]'),dropdown:f(O,this).querySelector('[role="listbox"]'),options:f(O,this).querySelectorAll('[role="option"]'),announcement:f(O,this).querySelector("#announcement")};p(G,this,Y).call(this,e),e.button.addEventListener("keydown",(function(n){p(G,t,X).call(t,n,e)})),f(O,this).addEventListener("click",(function(n){p(G,t,$).call(t,n,e)}))}f(v,this).addEventListener("click",p(G,this,at).bind(this)),window.addEventListener("load",(function(){setTimeout((function(){i.g.lazyLoadingEqualHeight("search-4-9b-filter-products-with-dropdown .cmp-image__image--is-loading",p(G,t,lt).bind(t))}),1e3)})),window.addEventListener("resize",(function(){p(G,t,lt).call(t)}))}}])}();function U(t){var e=this;h(w,this,t.value),h(E,this,[]),h(A,this,t.parentNode.getElementsByTagName("p")[0].innerHTML),p(G,this,rt).call(this),p(G,this,st).call(this),null!==f(g,this)&&f(g,this).forEach((function(t){h(S,e,t.getAttribute("data-filter").split(",")),f(S,e).includes(f(w,e))&&f(E,e).push(t)})),p(G,this,it).call(this,f(E,this)),p(G,this,ot).call(this,t)}function Y(t){var e=t.options[f(C,this)],n=e.textContent;p(G,this,V).call(this,e),t.button.textContent=n,t.options.forEach((function(t){t.className.includes("active")&&t.removeChild(t.lastElementChild),t.classList.remove("active"),t.setAttribute("aria-selected","false")}
1)),e.innerHTML=e.innerHTML+'<span class="td-icon td-icon-checkMark selectedTickMark" aria-hidden="true"></span>',e.classList.add("active"),e.setAttribute("aria-selected","true")}function V(t){var e=this;h(w,this,t.getAttribute("value")),h(E,this,[]),h(A,this,t.textContent),p(G,this,rt).call(this),p(G,this,st).call(this),null!==f(g,this)&&f(g,this).forEach((function(t){h(S,e,t.getAttribute("data-filter").split(",")),f(S,e).includes(f(w,e))&&f(E,e).push(t)})),p(G,this,it).call(this,f(E,this))}function X(t,e){var n=t.key;if(!f(k,this)&&["ArrowDown","ArrowUp","Enter"," "].includes(n))t.preventDefault(),p(G,this,K).call(this,e);else switch(n){case"Escape":p(G,this,K).call(this);break;case"ArrowDown":t.preventDefault(),p(G,this,J).call(this,e);break;case"ArrowUp":t.preventDefault(),p(G,this,Z).call(this,e);break;case"Enter":case" ":t.preventDefault(),p(G,this,tt).call(this,e)}}function $(t,e){var n=e.button.contains(t.target),i=e.dropdown.contains(t.target);(n||!i&&f(k,this))&&p(G,this,K).call(this,e);var r=t.target.closest('[role="option"]');r&&p(G,this,nt).call(this,r,e)}function K(t){t.dropdown.classList.toggle("active"),h(k,this,!f(k,this)),t.button.setAttribute("aria-expanded",f(k,this).toString()),f(k,this)?p(G,this,Q).call(this,t):t.button.focus()}function J(t){var e;f(C,this)<t.options.length-1?h(C,this,(e=f(C,this),e++,e)):h(C,this,0);p(G,this,Q).call(this,t)}function Z(t){var e;f(C,this)>0?h(C,this,(e=f(C,this),e--,e)):h(C,this,t.options.length-1);p(G,this,Q).call(this,t)}function Q(t){var e=t.options[f(C,this)];e.classList.add("current"),e.focus(),e.scrollIntoView({block:"nearest"}),t.options.forEach((function(t,n){t!==e&&t.classList.remove("current")})),p(G,this,et).call(this,"You're currently focused on ".concat(e.ariaLabel),t)}function tt(t){var e=t.options[f(C,this)];p(G,this,nt).call(this,e,t)}function et(t,e){e.announcement.setAttribute("aria-label",t),e.announcement.setAttribute("aria-live","polite"),setTimeout((function(){e.announcement.textContent="",e.announcement.setAttribute("aria-live","off")}),1e3)}function nt(t,e){var n=this;p(G,this,V).call(this,t);var i=t.textContent;e.button.textContent=i,e.options.forEach((function(t){t.className.includes("active")&&(t.innerHTML=t.textContent),t.classList.remove("active"),t.setAttribute("aria-selected","false")}
1)),t.innerHTML=t.textContent,t.innerHTML=t.innerHTML+'<span class="td-icon td-icon-checkMark selectedTickMark" aria-hidden="true"></span>',t.classList.add("active"),t.classList.add("current"),t.setAttribute("aria-selected","true"),p(G,this,K).call(this,e),e.options.forEach((function(t,e){t.className.includes("active")&&h(C,n,e)}))}function it(t){var e=this;t.forEach((function(n,i){i<f(_,e)&&(n.classList.remove("hidden"),n.classList.add("card-shown")),t.length>f(_,e)&&f(v,e).classList.remove("hidden")})),setTimeout((function(){p(G,e,lt).call(e),p(G,e,ut).call(e)}),300)}function rt(){f(x,this).innerHTML="<span>"+f(A,this)+"</span>"}function ot(t){var e=this,n=f(O,this).querySelector("input[name=filter-cards]:checked");f(y,this).forEach((function(t){t.classList.remove("".concat(f(I,e)))})),t?t.parentNode.classList.add("".concat(f(I,this))):(n.removeAttribute("checked","checked"),n.parentNode.classList.add("".concat(f(I,this))))}function at(){var t=this;f(E,this).forEach((function(e,n){e.classList.contains("hidden")&&(n==f(_,t)&&p(G,t,ct).call(t,e),e.classList.remove("hidden"),e.classList.add("card-shown"))})),f(v,this).classList.add("hidden"),setTimeout((function(){p(G,t,lt).call(t),p(G,t,ut).call(t)}),500)}function ct(t){setTimeout((function(){t.getElementsByTagName("h3")[0].getElementsByTagName("a")[0].focus()}),100)}function st(){f(g,this).forEach((function(t){t.classList.add("hidden"),t.classList.remove("card-shown"),t.classList.remove("add-margin"),t.classList.contains("cmp-search-4-9b-filter-products-with-dropdown__container-products-card-with-illustration")&&t.classList.add("border-Right")})),f(v,this).classList.add("hidden")}function lt(){var t,e=this,n=document.querySelectorAll(".cmp-search-4-9b-filter-products-with-dropdown");if(n&&0!=n.length&&(t=a(n)),window.innerWidth>=r.l.SM){if(!t)return;t.forEach((function(t){var n=t.querySelector(".".concat(f(q,e)));Object(i.e)(".card-shown .cmp-search-4-9b-filter-products-with-dropdown__card-large-devices .".concat(f(P,e)),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9b-filter-products-with-dropdown__card-large-devices .".concat(f(N,e)),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9b-filter-products-with-dropdown__card-large-devices .".concat(f(D,e)),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9b-filter-products-with-dropdown__card-large-devices .".concat(f(B,e)),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9b-filter-products-with-dropdown__card-large-devices .".concat(f(j,e)),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9b-filter-products-with-dropdown__card-large-devices .".concat(f(R,e)),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9b-filter-products-with-dropdown__card-large-devices .".concat(f(H,e)),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9b-filter-products-with-dropdown__card-large-devices .".concat(f(z,e)),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9b-filter-products-with-dropdown__card-large-devices .".concat(f(F,e)),".card-shown",n.id,!0),Object(i.e)(".card-shown .cmp-search-4-9b-filter-products-with-dropdown__card-large-devices",".card-shown",n.id,!0)}))}}function ut(){var t=f(O,this).querySelectorAll(".card-shown.cmp-search-4-9b-filter-products-with-dropdown__container-products-card-with-illustration");if(window.innerWidth>=r.l.SM)for(var e=2;e<t.length;e+=3)t[e].classList.remove("border-Right");else t.forEach((function(t){return t.classList.remove("border-Right")}));f(E,this).length<=3?f(E,this).forEach((function(t){return t.classList.add("border-Bottom")})):f(E,this).forEach((function(t){return t.classList.remove("border-Bottom")}))}function dt(){var t=document.querySelectorAll('.cmp-search-4-9b-filter-products-with-dropdown:not([data-component-state="initialized"])');t.length>0&&t.forEach((function(t){new W(t).initialize(),t.setAttribute("data-component-state","initialized")}))}"loading"!==document.readyState?dt():document.addEventListener("DOMContentLoaded",dt)},function(t,e,n){"use strict";var i=n(0),r=n(2),o={init:function(){var t=document.querySelectorAll(".".concat("cmp-searchbar",':not([data-component-state="initialized"])'));t&&t.length>0&&t.forEach((function(t){!function(t){var e,n,o,a,c=JSON.parse(document.querySelector("#tdAutoSearchIntellAPIdata").value),s=c.minSearchLength,l=c.apiURL,u=c.interfaceID,d=c.noOfSuggestionToDisplay,h=c.buttonUrl;l&&u&&Object(r.c)("".concat(l,"/json/?interfaceID=").concat(u)),e=t.querySelector(".cmp-searchbar__input"),n=t.querySelector(".cmp-searchbar__suggestion-dropdown"),o=t.querySelector(".cmp-searchbar__askbutton button"),a=t.querySelector(".cmp-searchbar__close-icon"),e&&e.addEventListener("keyup",(function(t){if(t.preventDefault(),t.keyCode!==i.m.ENTER||""===e.value){this.value.length>0?Object(r.j)(a):Object(r.e)(a);var o="".concat(l,"/IntelliSuggest?interfaceID=").concat(u,"&term=");Object(r.d)(this.value,o,d,s,h,r.k,n)}else Object(r.i)(h,this.value,!1)})),o&&o.addEventListener("click",(function(){""!==e.value&&Object(r.i)(h,e.value,!1)})),e&&e.addEventListener("blur",(function(t){Object(r.f)(t,n)})),a&&a.addEventListener("click",(function(t){Object(r.e)(a),e.value="",e.focus(),Ob
1ject(r.f)(t,n)}))}(t),t.setAttribute("data-component-state","initialized")}))}};"loading"!==document.readyState?o().init():document.addEventListener("DOMContentLoaded",o.init)},function(t,e,n){"use strict";var i=n(1),r=n(2),o=n(11),a=n(3),c=function(){var t="cmp-search-best-answer";function e(e){var n,c=JSON.parse(e.querySelector("#SearchResultData").value),s=c.apiURL,l=c.interfaceID,u=c.relatedQuestionToDisplay,d=c.totalPopularQuestionToDisplay,h=c.truncatePopularQuestionsAfter,f={getSessionId:"".concat(s,"/json/?interfaceID=").concat(l),singleAnswer:"".concat(s,"/json/?interfaceID=").concat(l,"&requestType=NormalRequest&source=9&question="),searchTerm:"".concat(s,"/json/?interfaceID=").concat(l,"&requestType=NormalRequest&source=1&id=-1&question="),questionClick:"".concat(s,"/json/?interfaceID=").concat(l,"&requestType=NormalRequest"),topQuestions:"".concat(s,"/json?interfaceID=").concat(l,"&sourceID=4&requestType=TopQuestionsRequest")},p=e.querySelector("#".concat(t,"__answer")),m=e.querySelector("#".concat(t,"__related")),g=e.querySelector("#".concat(t,"__multiple-results")),y=e.querySelector(".".concat(t,"__heading-nextline")),v=e.querySelector("#".concat(t,"__intelliresponse_down")),b=new URLSearchParams(window.location.search),x=b.get("query")||b.get("question"),_=i.g.removeHtmlTag(x),S=encodeURIComponent(_),w=b.get("source"),A=b.get("id"),E=decodeURIComponent(S),L=document.querySelector(".search-4-7-no-results"),k=e.querySelector(".".concat(t,"__resultContent")),C=e.querySelector("#".concat(t,"__no-answer")),T=e.querySelector("#".concat(t,"__popular-questions")),M=e.querySelector(".".concat(t,"__read-more .readMorelink")),q=e.querySelector(".".concat(t,"__heading h1")),I=4,O=3,P=2,N=1,D=1,B="popular_Questions",j="helpful_Questions",R="multipleResult_Questions",H="relatedEntryQuestion",z="partialEntryQuestion";s&&l&&(n=sessionStorage.getItem("session-id")||Object(r.c)(f.getSessionId));var F="sessionID=".concat(n);function G(e){var n=!0;if(e.exactMatches)if(1===e.exactMatches.length){Object(r.j)(p);var i=document.createElement("div");i.classList.add("cmp-text");var a=p.querySelector(".".concat(t,"__response-content")).appendChild(i),c=e.exactMatches.pop();p.querySelector(".".concat(t,"__title")).innerHTML=c.title,a.innerHTML=c.body.split("\x3c!--startTrim--\x3e").pop().split("\x3c!--endTrim--\x3e")[0],o.a.setIntelliStatus(1)}else 0===e.exactMatches.length?(n=!1,o.a.setIntelliStatus(0),k.classList.add("hidden")):e.exactMatches.length>1&&(o.a.setIntelliStatus(1),e.exactMatches.forEach((function(e,n){!function(e,n){Object(r.j)(n);var i=document.createElement("li"),o=n.querySelector(".".concat(t,"__response-content ul")).appendChild(i),a=e.title,c=window.location.href.split("?")[0],s="".concat(c,"?query=").concat(e.title,"&id=").concat(e.id,"&source=").concat(e.source);o.innerHTML='<span class="td-link-action"><a href="'.concat(s,'">').concat(a,"</a></span>")}(e,g)})),n=!1);n&&function(t){var e=[];t.relatedEntries&&t.relatedEntries.length>0&&(t.relatedEntries.forEach((function(t){t.isRelatedEntry=!0})),e=t.relatedEntries);t.partialMatches&&t.partialMatches.length>0&&t.partialMatches.forEach((function(t){t.isRelatedEntry=!1}));(e=e.concat(t.partialMatches)).length>0&&V(e,m,u)}(e)}function W(){K(),Object(a.a)(f.topQuestions+"&".concat(F),"GET",U,$)}function U(t){V(t.topQuestions,T,h)}function Y(e,n){n.preventDefault();var i=n.target.closest("a");if(null===i.parentElement.nextElementSibling){var r=document.createElement("div");r.classList.add("".concat(t,"__temp")),i.closest(".cmp-accordion__item").appendChild(r);var o=n.currentTarget&&n.currentTarget.children[0].innerHTML,c=D;i.classList.contains(R)?c=N:i.classList.contains(j)?(c=O,i.classList.contains(H)&&(c=P)):i.classList.contains(B)&&(c=I);var s=f.questionClick+"&".concat(F,"&source=").concat(c,"&id=").concat(i.getAttribute("data-id"),"&question=").concat(encodeURI(o));Object(a.a)(s,"GET",X,J)}else i.parentElement.nextElementSibling.classList.contains("hidden")?i.parentElement.nextElementSibling.classList.remove("hidden"):i.parentElement.nextElementSibling.classList.add("hidden");i.classList.toggle("cmp-accordion__button--expanded"),i.setAttribute("aria-expanded","fal
1se"===i.getAttribute("aria-expanded"))}function V(e,n,i){e.length>0&&(Object(r.j)(n),e.forEach((function(e,r){var o=function(e,n,i,r){var o="item-"+r,a=document.createElement("div"),c=n.querySelector(".".concat(t,"__response-content")).appendChild(a),s="",l="";return n===g?l=R:n===m?(l=j,s=e.isRelatedEntry?H:z):n===T&&(l=B),c.innerHTML='<div class="cmp-accordion__item '.concat(o," ").concat(i?"hidden":"",'">\n <h3>\n <a href="#" tabindex="0" class="cmp-accordion__button ').concat(l," ").concat(s,'" aria-expanded="false" data-id="').concat(e.id,'">\n <span class="cmp-accordion__title">').concat(e.title,'</span>\n <span class="cmp-accordion__icon" aria-hidden="true"></span>\n </a>\n </h3>\n </div>'),c}(e,n,r>=i,r);o.querySelector(".cmp-accordion__button").addEventListener("click",Y.bind(event,o),!1)})),e.length>=u&&n===T&&Object(r.j)(n.querySelector(".cmp-search-best-answer__read-more")))}function X(e){var n=document.querySelector(".".concat(t,"__temp"));n.innerHTML=e.exactMatches.pop().body.split("\x3c!--startTrim--\x3e").pop().split("\x3c!--endTrim--\x3e")[0],n.classList.remove("".concat(t,"__temp")),n.classList.add("".concat(t,"__question-body")),n.classList.add("cmp-text"),n.setAttribute("data-element-state","initialized")}function $(){o.a.setIntelliErrorStatus(1),k.classList.add("hidden")}function K(){Object(r.b)(m),Object(r.b)(g),Object(r.b)(p)}function J(e){if(e.status&&503===e.status){var n=document.querySelector(".".concat(t,"__temp"));n.innerHTML="<div>".concat(accordiansiteDowmnContent.value,"</div>"),n.classList.remove("".concat(t,"__temp")),n.classList.add("".concat(t,"__question-body")),n.classList.add("cmp-text"),n.setAttribute("data-element-state","initialized")}}M.addEventListener("click",(function(t){var e=t.target.parentElement,n=e.closest(".cmp-search-best-answer__read-more");Object(r.e)(e);var i=n.previousElementSibling.querySelectorAll(".cmp-accordion__item.hidden");null!==i&&i.forEach((function(t,e){e<d-h&&Object(r.j)(t)}));var o=document.querySelector(".item-".concat(h," a"));null!==o&&o&&o.focus()})),null!==L&&L.classList.add("hidden"),o.a.registerCallBack((function(){0===o.a.intelliResponseStatus&&0===o.a.mindBreezeResponseStatus?(W(),Object(r.j)(C),null!==L&&(L.style.display="block",L.classList.remove("hidden"))):1===o.a.intelliErrorStatus&&1===o.a.mindBreezeErrorStatus&&Object(r.j)(v)})),y.innerHTML=E,function(){if(K(),null!==S)if("9"===w&&null===A)Object(a.a)(f.singleAnswer+S+"&".concat(F),"GET",G,$);else if("1"===w&&null===A)Object(a.a)(f.searchTerm+S+"&".concat(F),"GET",G,$);else{var t=null===A?-1:A,e=f.questionClick+"&".concat(F,"&source=").concat(w,"&id=").concat(t,"&question=").concat(S);Object(a.a)(e,"GET",G,$)}else W(),Object(r.j)(C),null!==L&&L.classList.remove("hidden"),q.classList.add("hidden")}()}return{init:function(){var n=document.querySelectorAll(".".concat(t,':not([data-component-state="initialized"])'));n.length>0&&n.forEach((function(t){e(t),t.setAttribute("data-component-state","initialized")}))}}}();"loading"!==document.readyState?c.init():document.addEventListener("DOMContentLoaded",c.init)},function(t,e,n){"use strict";n(0);var i=n(1),r=n(39),o=n(11),a=function(){function t(t){var e=JSON.parse(t.querySelector("#MindBreezeData").value),n=e.truncateResultsAfter,a=e.apiURL,c=e.clientID,s=parseInt(n),l=t,u=t.querySelector(".cmp-search-result-mindBreeze__viewMore"),d=window.location.search,h=new URLSearchParams(d),f=h.get("query")||h.get("question"),p=i.g.removeHtmlTag(f),m=encodeURIComponent(p),g=decodeURIComponent(m),y=null,v=null;function b(t,e){"null"!=g&&r.a.getSearchResult(a,g,s,geoLocationLang,c,t,e,x,_)}function x(t){if(l.classList.remove("hidden"),t.results&&0!==t.results.length){if(t.results.length>=1&&(o.a.setMindBreezeStatus(1),t.results.forEach((function(t){!function(t,e){var n=document.createElement("div");n.classList.add("cmp-search-result-mindBreeze__questionAnswer");var r,o,a,c,s=e.querySelector(".cmp-search-result-mindBreeze__questionAnswerSection").appendChild(n);
1t.properties.forEach((function(t){"title"===t.id?r=i.g.decodeHtmlEntity(t.data[0].html):"content"===t.id?o=i.g.decodeHtmlEntity(t.data[0].html):"action_0"===t.id?a=t.data[0].value.href:"extension"===t.id&&(c="pdf"===t.data[0].value.str)})),s.innerHTML=!0===c?'<h3 class="cmp-search-result-mindBreeze__title"><a href="'.concat(a,'">').concat(r,'</a> <span class="td-icon td-icon-distributionGuide" aria-hidden="true"></span> <span>PDF</span></h3>\n <div class="cmp-search-result-mindBreeze__answer cmp-text">\n <p>').concat(o,"</p>\n </div>"):'<h3 class="cmp-search-result-mindBreeze__title"><a href="'.concat(a,'">').concat(r,'</a></h3>\n <div class="cmp-search-result-mindBreeze__answer cmp-text">\n <p>').concat(o,"</p>\n </div>")}(t,l),function(){for(var t=document.getElementsByClassName("cmp-search-result-mindBreeze__answer"),e=0;e<t.length;e++)for(var n=t[e].getElementsByTagName("em"),i=0;i<n.length;i++)n[i].classList.add("highLightSearchWord")}()})),null!==v))for(var e=document.querySelectorAll(".cmp-search-result-mindBreeze__questionAnswer h3 a"),r=e.length-1,a=e.length-n,c=r;c>=a;c--)c===a&&e[c].focus()}else l.classList.add("hidden"),o.a.setMindBreezeStatus(0);!0===t.nextAvail?(u.classList.contains("hidden")&&u.classList.remove("hidden"),y=t.pagingState):u.classList.add("hidden")}function _(t){o.a.setMindBreezeErrorStatus(1),l.classList.add("hidden")}u.addEventListener("click",(function(){y&&b(y,v="NEXT")})),b(y,v)}return{init:function(){var e=document.querySelectorAll('.cmp-search-result-mindBreeze:not([data-component-state="initialized"])');e.length>0&&e.forEach((function(e){t(e),e.setAttribute("data-component-state","initialized")}))}}}();"loading"!==document.readyState?a.init():document.addEventListener("DOMContentLoaded",a.init)},function(t,e){},function(t,e,n){"use strict";var i=n(4),r={init:function(){var t=document.querySelectorAll(".".concat("simplifiedBannerProduct",':not([data-component-state="initialized"])'));t.length>0&&t.forEach((function(t){!function(t){var e=t.getAttribute("data-cardId"),n=t.getAttribute("data-cardType");i.a.checkRecent(e,n),i.a.recentCardItem(e,n)}(t),t.setAttribute("data-component-state","initialized")}))}};"loading"!==document.readyState?r().init():document.addEventListener("DOMContentLoaded",r.init)},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}function a(t,e,n){c(t,e),e.set(t,n)}function c(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(t,e){return t.get(u(t,e))}function l(t,e,n){return t.set(u(t,e),n),n}function u(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakSet,y=function(){return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(n=this,i=g),i.add(n),a(this,d,"cmp-site-footer"),a(this,h,void 0),a(this,f,!1),a(this,p,void 0),a(this,m,!1),l(h,this,e)}),[{key:"initialize",value:function(){l(p,this,s(h,this).querySelectorAll(".".concat(s(d,this),"__back2top a"))),u(g,this,x).call(this)}}])}();function v(t){var e=this;t.preventDefault();var n=null;l(f,this,!0);var i=document.querySelector('a[href="#main"]');n=setInterval((function(){var t=window.pageYOffset-200;t<=0?(window.scrollTo(0,0),clearInterval(n),l(f,e,!1)):window.scrollTo(0,t)}),40),null==i||i.focus()}function b(t){s(f,this)||s(m,this)||l(m,this,!0)}function x(){var t=this;
1s(p,this).forEach((function(e){window.addEventListener("scroll",u(g,t,b).bind(t,e)),e.addEventListener("click",u(g,t,v).bind(t))}))}function _(){var t=document.querySelectorAll('.cmp-site-footer:not([data-component-state="initialized"])');t.length>0&&t.forEach((function(t){new y(t).initialize(),t.setAttribute("data-component-state","initialized")}))}"loading"!==document.readyState?_():document.addEventListener("DOMContentLoaded",_)},function(t,e){},function(t,e,n){"use strict";var i=n(0),r={init:function(){var t=document.querySelectorAll(".cmp-table-11-3");if(t&&0!=t.length){var e=1199,n=1023;document.querySelectorAll(".cmp-table-11-3 .cmp-table-11-3__cta-section .td-link-action a").forEach((function(t,e){var n=t.text.trim().split(" "),i=n.pop(),r=n.join(" ");t.innerHTML="".concat(r," <nobr><span class='td-link-lastword'>").concat(i," <span class='td-icon td-icon-rightCaret' aria-hidden='true'></span></span></nobr>")}));for(var r=function(e){var n=t[e].getAttribute("data-desktop").split(","),i=t[e].getAttribute("data-landscape").split(","),r=t[e].getAttribute("data-portrait").split(","),o=t[e].getAttribute("data-mobile").split(",");a(t[e],n,i,r,o),window.addEventListener("resize",(function(){a(t[e],n,i,r,o)}))},o=0;o<t.length;o++)r(o)}function a(t,r,o,a,c){for(var s=t.querySelectorAll("table thead th"),l=window.innerWidth,u=s&&s.length,d=0;d<u;d++)l>=i.l.LG?s[d].style.width=r[d]+"%":l>=i.l.MD&&l<=e?s[d].style.width=o[d]+"%":l<=n&&l>=i.l.SM?s[d].style.width=a[d]+"%":s[d].style.width=c[d]+"%"}}};"loading"!==document.readyState?r.init():document.addEventListener("DOMContentLoaded",(function(){r.init()}))},function(t,e,n){"use strict";var i,r,o,a,c,s,l,u,d,h,f=n(1),p=n(5),m=n(0),g=(u=function(){var t=JSON.parse(o),e=JSON.parse(a),n=e.TD_Product_Region;void 0!==n&&n===m.s&&(e.TD_Product_Region=p.a.cookieGetItem(m.s)),t.userData=e;var i=JSON.parse(c),u=JSON.parse(s);i.ctaLocation=u;var d=document.createElement("chat-dock");d.setAttribute("title",l.title),d.setAttribute("debug",l.debug),f.g.isEmpty(r)||d.setAttribute("serverconfig",r),f.g.isEmpty(t)||d.setAttribute("userconfig",JSON.stringify(t)),f.g.isEmpty(c)||d.setAttribute("widgetConfig",JSON.stringify(i)),(l.output||"true"==l.output)&&(d.addEventListener("initialized",(function(t){return console.log("initialized",event)})),d.addEventListener("minimize",(function(t){return console.log("minimize",event)})),d.addEventListener("maximize",(function(t){return console.log("maximize",event)})),d.addEventListener("close",(function(t){return console.log("close",event)})),d.addEventListener("chatmessage",(function(t){return console.log("chatmessage",event)}))),document.body.appendChild(d);var h=document.createElement("chat-button");document.body.appendChild(h)},d=function(){var t=document.querySelectorAll('[href*="#cmp-chat-window"]');t.length>0&&t.forEach((function(t){t.addEventListener("click",(function(e){e.preventDefault();var n=t.getAttribute("href").split("~");n.length>1&&("closechat"==n[1]?window.tdcw.closechat():"maximize"==n[1]?window.tdcw.maximize():"minimize"==n[1]&&window.tdcw.minimize())}))}))},h=function(){var t=document.createElement("script");t.src=l.scriptUrl,t.defer=!0,document.head.insertBefore(t,document.head.firstElementChild)},{init:function(){var t;t=document.querySelector(".cmp-td-chat-widget"),f.g.isNull(t)||(r=t.dataset.serverconfig,o=t.dataset.userconfig,a=t.dataset.userdata,c=t.dataset.widgetconfig,s=t.dataset.ctalocation,i=t.dataset.dockconfig,f.g.isEmpty(i)||f.g.isEmpty(r)||f.g.isEmpty(""===r)||(l=JSON.parse(i),f.g.isEmpty(l)||(h(),u(),d())))}});try{"loading"!==document.readyState?g.init():document.addEventListener("DOMContentLoaded",(function(){g.init()}))}catch(t){console.log("TD chat widget V2 is not defined")}},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var i,r=n(0),o=n(49),a=(i="cmp-tdi-site-header-navigation",{init:function(){var t=document.querySelectorAll(".".concat(i,':not([data-component-state="initialized"])'));t.length>0&&t.forEach((function(t){!function(t){var e=document.querySelectorAll(".".concat(i,"__nav--menu--item")),n=document.querySelectorAll(".cmp-tdi-header-secondary-mega-menu");function a(){h()}function c(t){var e=t.target,n=e.closest(".".concat(i,"__nav--menu--item.show-sub-menu"));e.classList.contains("cmp-tdi-header-secondary-mega-menu__column--subtitle--link")&&!e.classList.contains("cmp-button")?"_self"===e.getAttribute("target")&&h():n&&p(n)}function s(t){null===t.target.closest("nav")&&null===t.target.closest(".dialog-backdrop")&&h()}function l(t){void 0!==t.keyCode&&(t.keyCode!==r.m.TAB||t.shiftKey||h())}function u(t){void 0!==t.keyCode&&(t.keyCode===r.m.ESCAPE&&h(),t.keyCode===r.m.SPACE&&f(t.target.closest(".".concat(i,"__nav--menu--item"))))}function d(t){var e=t.target,n=t.currentTarget.querySelector(".cmp-tdi-site-header-navigation__arrow--dropdown");!e.closest(".cmp-tdi-header-secondary-mega-menu")&&n&&(t.preventDefault(),f(e.closest(".".concat(i,"__nav--menu--item")))),e.closest(".cmp-tdi-header-secondary-mega-menu")||n||h();var r=e.closest(".show-sub-menu");e.closest(".cmp-tdi-site-header-navigation__nav--menu").querySelectorAll(".cmp-tdi-site-header-navigation__nav--menu--item").forEach((function(t){t.classList.contains("active")&&r&&!t.classList.contains("show-sub-menu")?t.classList.add("cmp-tdi-site-header-navigation__nav--menu--inactiveMenu"):t.classList.contains("active")&&!r&&(t.classList.remove("cmp-tdi-site-header-navigation__nav--menu--inactiveMenu"),t.classList.add("cmp-tdi-site-header-navigation__nav--menu--activeMenu"))}))}function h(){document.querySelectorAll(".".concat(i,"__nav--menu--item.show-sub-menu")).forEac
1h((function(t){t.classList.remove("show-sub-menu"),t.querySelector("a").setAttribute("aria-expanded","false"),t.querySelector(".".concat(i,"__dropdown-expanded")).classList.add("".concat(i,"__hide")),t.querySelector(".".concat(i,"__dropdown-collapsed")).classList.remove("".concat(i,"__hide"))}))}function f(t){t&&(t.classList.contains("show-sub-menu")?m(t):t.querySelector(".cmp-tdi-header-secondary-mega-menu")&&p(t))}function p(t){h(),t.classList.add("show-sub-menu"),Object(o.a)(),t.querySelector("a").setAttribute("aria-expanded","true"),t.querySelector(".".concat(i,"__dropdown-collapsed")).classList.add("".concat(i,"__hide")),t.querySelector(".".concat(i,"__dropdown-expanded")).classList.remove("".concat(i,"__hide"))}function m(t){t.classList.remove("show-sub-menu"),t.querySelector("a").setAttribute("aria-expanded","false"),t.querySelector(".".concat(i,"__dropdown-expanded")).classList.add("".concat(i,"__hide")),t.querySelector(".".concat(i,"__dropdown-collapsed")).classList.remove("".concat(i,"__hide"))}var g,y=t.getAttribute("data-tdi-nav"),v=document.querySelector(".tdi-siteheader-navigation"),b=v&&v.querySelector(".cmp-tdi-site-header-navigation__nav"),x=b&&b.querySelectorAll(".cmp-tdi-header-secondary-mega-menu__column--subcategory li");y&&x&&x.forEach((function(t){t.getAttribute("data-site-nav")&&"active"===t.getAttribute("data-site-nav")&&t.closest(".cmp-tdi-site-header-navigation__nav--menu--item").classList.add("active")})),g=document.querySelector("body"),e.forEach((function(t){t.addEventListener("keydown",u),t.addEventListener("click",d)})),e.forEach((function(t){t.addEventListener("keydown",(function(e){var n=t.querySelector("a");document.activeElement==n&&e.shiftKey&&e.keyCode===r.m.TAB&&m(t)}))})),n.forEach((function(t){t.addEventListener("click",c);var e=Array.from(t.querySelectorAll(".cmp-tdi-header-secondary-mega-menu__column--subtitle--link")).pop();e&&e.addEventListener("keydown",l)})),window.addEventListener("scroll",a),g.addEventListener("click",s)}(t),t.setAttribute("data-component-state","initialized")}))}});"loading"!==document.readyState?a().init():document.addEventListener("DOMContentLoaded",a.init)},function(t,e,n){"use strict";var i=n(15),r=function(){var t=document.querySelector(".tdw-login-form"),e=document.querySelector(".tdw-logged-in-form");if(null!==e&&e.classList.add("hidden"),null!==(t&&e)){var n=function(n){n&&(t.classList.add("hidden"),e.classList.remove("hidden"))};n(i.a.registerLoginStateCallBack(n))}};"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)},function(t,e,n){"use strict";var i=n(3),r=n(0),o=n(2);function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s=function(){function t(t){var e,i,c,s,l,u=JSON.parse(document.querySelector("#partner-cards").value),d=u.partnerLandingPageUrl,h=u.partnerImageUrl;(s=document.querySelector(".cmp-tdam-partner-profile")).setAttribute("data-partner-count",t.length);var f,p=a(t);try{for(p.s();!(f=p.n()).done;){var m=f.value;h=Object(r.X)(h),e=Object(r.X)(m.imageBlobId,h),l=Object(r.X)(m.teamGroupId),c=geoLocationLang===r.o?Object(r.X)(m.profileNameFrench):Object(r.X)(m.profileName),d=Object(r.X)(d),i='<div class="cmp-tdam-partner-profile-block">\n <a href="'.concat(d,"/?teamId=").concat(l,"&name=").concat(n(Object(o.g)(c),!1),'" target="_self">\n <img src="').concat(e,'" alt="').concat(c,'">\n </a>\n </div>'),s.insertAdjacentHTML("beforeend",i)}}catch(t){p.e(t)}finally{p.f()}}function e(t){console.log(t)}function n(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?t.replace(/\s+/g,"+"):t.replace(/\s+/g,"-").replace(/-{2,}/g,"-")}return{init:function(){var n;null!==document.querySelector(".cmp-tdam-our-partner")&&(n=JSON.parse(document.querySelector("#partner-cards").value).partnerEndPointUrl)&&Object(i.a)(n,"GET",t,e)}}}();"loading"!==document.readyState?s().init():document.addEventListener("DOMContentLoaded",s.init)},function(t,e,n){"use strict";var i=n(3),r=n(1),o=n(0);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l=function(){function t(){var t=JSON.parse(document.querySelector("#partner-card-detail").value),e=t.partnerDetailEndPointUrl,n=t.partnerDetailLandingPageUrl,r=t.partnerDetailDefaultLandingPageUrl,a=t.partnerDetailImageUrl,s=t.partnerDetailListHeading,l=new URLSearchParams(window.location.search).get("teamId");
1function u(t,e,i,r,l,u,d,h,f,p,m){var g,y,v,b,x,_,S,w,A,E,L,k,C,T,M,q;if(g=document.querySelector(".cmp-tdam-partner-details-profile"),y=Object(o.X)(t),E=Object(o.X)(e,a),v=Object(o.X)(i),T=Object(o.X)(l),q=Object(o.X)(m),b='<div class="cmp-tdam-partner-details-description">\n <div class="partnerDetail">\n <div class="cmp-tdam-partner-details-heading">\n <h1>'.concat(y,'</h1>\n </div>\n <img src="').concat(E,'" alt="').concat(y,'" />\n <p class="cmp-text">').concat(q,'</p>\n <p class="cmp-text">').concat(v,"</p>\n </div>\n </div>"),g.insertAdjacentHTML("beforeend",b),r.length>=1){x='<div class="cmp-tdam-partner-details-profile-card" id="partnerDetails">\n <div class="cmp-tdam-partner-details-heading">\n <h2>'.concat(s,'</h2>\n </div>\n <div class="cmp-tdam-partner-details-section" data-partnerDetail-count="').concat(r.length,'">\n </div>\n </div>'),g.insertAdjacentHTML("beforeend",x),k=document.querySelector(".cmp-tdam-partner-details-section");var I,O=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=c(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(r);try{for(O.s();!(I=O.n()).done;){var P=I.value;_=Object(o.X)(P[d]),S=Object(o.X)(P[h]),L=P[f].length>=1?", "+P[f]:"",w=Object(o.X)(P[p],a),C=Object(o.X)(P[u]),M=_.replace(/\s+/g,"-"),A='<div class="cmp-tdam-profile-details-card">\n <div class="cmp-tdam-partner-details-profile-card-image">\n <a href="'.concat(n,"?profileId=").concat(C,"&teamId=").concat(T,"&name=").concat(M,'" aria-hidden="true" tabindex="-1" target="_self">\n <img src="').concat(w,'" alt="" />\n </a>\n </div>\n <div class="cmp-tdam-partner-details-profile-card-name cmp-text">\n <h2>\n <a href="').concat(n,"?profileId=").concat(C,"&teamId=").concat(T,"&name=").concat(M,'" target="_self">').concat(_).concat(L,'</a>\n </h2>\n </div>\n <div class="cmp-tdam-partner-details-profile-card-info">\n <p class="cmp-text">').concat(S,"</p>\n </div>\n </div>"),k.insertAdjacentHTML("beforeend",A)}}catch(t){O.e(t)}finally{O.f()}}}e&&null!==l&&(e=e+"/?teamId="+l,Object(i.a)(e,"GET",(function(t){t===o.a?window.location.replace(r):geoLocationLang===o.o?u(t.profileNameFrench,t.imageBlobId,t.descriptionFrench,t.managers,t.teamGroupId,"fundManagerId","profileName","titleFrench","credentials","imageBlobId",t.briefDescriptionFrench):u(t.profileName,t.imageBlobId,t.description,t.managers,t.teamGroupId,"fundManagerId","profileName","title","credentialFrench","imageBlobId",t.briefDescription)}),(function(t){console.log(t)})))}return{init:function(){null!==document.querySelector(".cmp-tdam-our-partner-details")&&t()},setEqualHeight:function(){var t=document.querySelectorAll(".cmp-tdam-our-partner-details"),e=t?a(t):null;if(window.innerWidth>=o.l.SM){if(!e)return;e.forEach((function(t){var e=t.querySelector(".cmp-tdam-partner-details-profile-card");e&&(Object(r.e)(".cmp-tdam-partner-details-profile-card-name",".cmp-tdam-profile-details-card",e.i
1d,!0),Object(r.e)(".cmp-tdam-partner-details-profile-card-info",".cmp-tdam-profile-details-card",e.id,!0))}))}}}}();function u(){if(window.innerWidth<=o.l.SM||window.innerWidth<=o.l.MD){var t=document.querySelectorAll(".cmp-nav-mobile .cmp-mobile-nav-bar__menu-list .cmp-mobile-nav-bar__accordion-language ul li,.cmp-site-utility-mobile .cmp-site-utility-mobile__language .cmp-site-utility-mobile__sub-menu ul li"),e=document.querySelector(".cmp-tdam-our-partner-details");t&&e&&t.forEach((function(t){t.classList.contains("active")||(t.children[0].href=t.children[0].href+window.location.search)}))}}"loading"!==document.readyState?l().init():document.addEventListener("DOMContentLoaded",(function(){var t,e;l.init(),t=document.querySelectorAll(".cmp-header-utility-bar__dropdown--content--language .cmp-header-utility-bar__column ul li,.cmp-site-utility-nav__sub-menu .cmp-site-utility-nav__cols ul li"),e=document.querySelector(".cmp-tdam-our-partner-details"),t&&e&&t.forEach((function(t){t.children[0].classList.contains("selected")||(t.children[0].href=t.children[0].href+window.location.search)})),u()})),["load","resize"].forEach((function(t){"resize"===t?window.addEventListener(t,(function(){l.setEqualHeight(),window.innerWidth<=o.l.MD&&u()})):window.addEventListener(t,Object(r.a)((function(){l.setEqualHeight()}),1e3))}))},function(t,e,n){"use strict";var i=n(3),r=n(1),o=n(0);function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function s(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var u=function(){function t(){var t=document.querySelectorAll(".cmp-tdam-leadership-team-profile-card"),e=t?a(t):null;if(window.innerWidth>=o.l.SM){if(!e)return;e.forEach((function(t){var e=t.querySelector(".cmp-tdam-leadership-team-section");e&&(Object(r.e)(".cmp-tdam-leadership-team-profile-card-name",".cmp-tdam-leadership-team-card",e.id,!0),Object(r.e)(".cmp-tdam-leadership-team-profile-card-info",".cmp-tdam-leadership-team-card",e.id,!0))}))}}return{init:function(){null!==document.querySelector(".cmp-tdam-leadership-team-profile")&&(!function(){var e=JSON.parse(document.querySelector("#leadership").value),n=e.leadershipEndPointUrl,a=e.leadershipLandingPageUrl,s=e.leadershipImageUrl;function l(e,n,i,l,u,d,h,f,p,m){var g,y,v,b,x,_,S,w,A,E,L,k,C=document.querySelector(".cmp-tdam-leadership-team-profile");if(g=Object(o.X)(e),x=Object(o.X)(n),v=Object(o.X)(i),_=1==m?'<div class="cmp-tdam-leadership-team-profile-card">\n <div class="cmp-tdam-leadership-team-description">\n <div class="partnerDetail">\n <div class="cmp-tdam-leadership-team-heading">\n <h1>'.concat(g,'</h1>\n </div>\n <p class="cmp-text">').concat(x,'</p>\n </div>\n </div>\n <div class="cmp-tdam-leadership-team-section section-').concat(m,'" id="profile-').concat(m,'" data-leadershipList-count="').concat(l.length,'"></div>\n <hr></div>'):'<div class="cmp-tdam-leadership-team-profile-card">\n <div class="cmp-tdam-leadership-team-description">\n <div class="partnerDetail">\n <div class="cmp-tdam-leadership-team-heading">\n <h2 class="h1">'.concat(g,'</h2>\n </div>\n <p class="cmp-text">').concat(x,'</p>\n </div>\n </div>\n <div class="cmp-tdam-leadership-team-section section-').concat(m,'" id="profile-').concat(m,'" data-leadershipList-count="').concat(l.length,'"></div>\n <hr></div>'),C.insertAdjacentHTML("beforeend",_),l.length>=1){k=document.querySelector(".section-".concat(m));var T,M=c(l);try{for(M.s();!(T=M.n()).done;){var q=T.value;S=Object(o.X)(q[d]),w=q[f].length>=1?", "+q[f]:"",A=Object(o.X)(q[h]),E=Object(o.X)(q[p],s),y=S.replace(/\s+/g,"-"),b=Object(o.X)(q[u]),L='<div class="cmp-tdam-leadership-team-card">\n <div class="cmp-tdam-leadership-team-profile-card-image">\n <a href="'.concat(a,"?profileId=").concat(b,"&teamId=").concat(v,"&name=").concat(y,'" aria-hidden="true" tabindex="-1">\n <img src="').concat(E,'" alt="" />\n </a>\n </div>\n <div class="cmp-tdam-leadership-team-profile-card-name cmp-text">\n <h2><a href="').concat(a,"?profileId=").concat(b,"&teamId=").concat(v,"&name=").concat(y,'">').concat(S).concat(w,'</a></h2>\n </div>\n <div class="cmp-tdam-leadership-team-profile-card-info">\n <p class="cmp-text">').concat(A,"</p>\n </div>\n </div>"),k.insertAdjacentHTML("beforeend",L)}}catch(t){M.e(t)}finally{M.f()}}Object(r.a)(t,"1000")()}n&&Object(i.a)(n,"GET",(function(t){var e,n=0,i=c(t);try{for(i.s();!(e=i.n()).done;){var r=e.value;n+=1,geoLocationLang===o.o?l(r.profileNameFrench,r.descriptionFrench,r.teamGroupId,r.managers,"fundManagerId","profileName","titleFrench","credentialFrench","imageBlobId",n):l(r.profileName,r.description,r.teamGroupId,r.managers,"fundManagerId","profileName","title","credentials","imageBlobId",n)}}catch(t){i.e(t)}finally{i.f()}}),(function(t){console.log(t)}))}(),window.addEventListener("resize",(function(){t()})))}}}();"loading"!==document.readyState?u().init():document.addEventListener("DOMContentLoaded",u.init)},function(t,e,n){"use strict";var i=n(3),r=n(1),o=n(0);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l=function(){function t(){var t=JSON.parse(document.querySelector("#generalTeam").value),n=t.generalTeamEndPointUrl,a=t.generalTeamLandingPageUrl,s=t.generalTeamDefaultLandingPageUrl,l=t.generalTeamImageUrl,u=t.generalTeamTeamId;
1function d(t,n,i,s,u,d,h,f,p,m){var g,y,v,b,x,_,S,w,A,E,L,k,C,T;if(g=document.querySelector(".cmp-tdam-general-team-profile"),y=Object(o.X)(t),v=Object(o.X)(n),k=Object(o.X)(s),T=Object(o.X)(m),b='<div class="cmp-tdam-general-team-description">\n <div class="partnerDetail">\n <div class="cmp-tdam-general-team-heading">\n <h1>'.concat(y,'</h1>\n </div>\n <p class="cmp-text">').concat(T,'</p>\n <p class="cmp-text">').concat(v,'</p>\n </div>\n </div>\n <div class="cmp-tdam-general-team-profile-card">\n <div class="cmp-tdam-general-team-section" id="general-team"></div>\n </div>'),g.insertAdjacentHTML("beforeend",b),i.length>=1){(E=document.querySelector(".cmp-tdam-general-team-section")).setAttribute("data-partnerdetail-count",i.length);var M,q=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=c(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(i);try{for(q.s();!(M=q.n()).done;){var I=M.value;x=Object(o.X)(I[d]),_=Object(o.X)(I[h]),A=I[f].length>=1?", "+I[f]:"",S=Object(o.X)(I[p],l),L=Object(o.X)(I[u]),C=x.replace(/\s+/g,"-"),w='<div class="cmp-tdam-general-team-card">\n <div class="cmp-tdam-general-team-profile-card-image">\n <a href="'.concat(a,"?profileId=").concat(L,"&teamId=").concat(k,"&name=").concat(C,'" aria-hidden="true" tabindex="-1" target="_self">\n <img src="').concat(S,'" alt="" />\n </a>\n </div>\n <div class="cmp-tdam-general-team-profile-card-name cmp-text">\n <h2>\n <a href="').concat(a,"?profileId=").concat(L,"&teamId=").concat(k,"&name=").concat(C,'" target="_self">').concat(x).concat(A,'</a>\n </h2>\n </div>\n <div class="cmp-tdam-general-team-profile-card-info">\n <p class="cmp-text">').concat(_,"</p>\n </div>\n </div>"),E.insertAdjacentHTML("beforeend",w),Object(r.a)(e,"1000")()}}catch(t){q.e(t)}finally{q.f()}}}u&&(n=n+"/?teamId="+u),n&&Object(i.a)(n,"GET",(function(t){t===o.a?window.location.replace(s):geoLocationLang===o.o?d(t.profileNameFrench,t.descriptionFrench,t.managers,t.teamGroupId,"fundManagerId","profileName","titleFrench","credentialFrench","imageBlobId",t.briefDescriptionFrench):d(t.profileName,t.description,t.managers,t.teamGroupId,"fundManagerId","profileName","title","credentials","imageBlobId",t.briefDescription)}),(function(t){console.log(t)}))}function e(){var t=document.querySelectorAll(".cmp-tdam-general-team-profile"),e=t?a(t):null;if(window.innerWidth>=o.l.SM){if(!e)return;e.forEach((function(t){var e=t.querySelector(".cmp-tdam-general-team-section");e&&(Object(r.e)(".cmp-tdam-general-team-profile-card-name",".cmp-tdam-general-team-card",e.i
1d,!0),Object(r.e)(".cmp-tdam-general-team-profile-card-info",".cmp-tdam-general-team-card",e.id,!0))}))}}return{init:function(){null!==document.querySelector(".cmp-tdam-general-team-profile")&&(t(),window.addEventListener("resize",(function(){e()})))}}}();"loading"!==document.readyState?l().init():document.addEventListener("DOMContentLoaded",l.init)},function(t,e){},function(t,e,n){"use strict";var i=n(0),r="cmp-text-3-4a";function o(){var t=document.querySelector(".".concat(r));if(t){var e=t.querySelector(".".concat(r,"-container__left-block__additional-content")),n=t.querySelector(".".concat(r,"-container__right-block__additional-content"));if(!t.querySelector(".".concat(r,"-container__left-block__image"))||!t.querySelector(".".concat(r,"-container__right-block__image")))window.innerWidth>=i.l.SM?t.classList.add("".concat(r,"__no-image--container-padding-large")):(t.querySelector(".".concat(r,"-container__left-block")).classList.add("".concat(r,"__no-image--container-padding-small")),t.querySelector(".".concat(r,"-container__right-block")).classList.add("".concat(r,"__no-image--container-padding-small"))),t.querySelector(".".concat(r,"-container__left-block__title")).classList.add("".concat(r,"-container__left-block__title--no-image")),t.querySelector(".".concat(r,"-container__right-block__title")).classList.add("".concat(r,"-container__left-block__title--no-image")),e&&t.querySelector(".".concat(r,"-container__left-block__additional-content")).classList.add("".concat(r,"-container__left-block__additional-content--no-image")),n&&t.querySelector(".".concat(r,"-container__right-block__additional-content")).classList.add("".concat(r,"-container__left-block__additional-content--no-image"));!function(){var t=document.querySelector(".".concat(r)),e=window.innerWidth,n=t.querySelector(".".concat(r,"-container__left-block__additional-content")),o=t.querySelector(".".concat(r,"-container__right-block__additional-content"));e<=i.l.SM&&(n||t.querySelector(".".concat(r,"-container__left-block__cta-block")).classList.add("".concat(r,"-container__left-block__cta-block--no-additional-content")),o||t.querySelector(".".concat(r,"-container__right-block__cta-block")).classList.add("".concat(r,"-container__right-block__cta-block--no-additional-content")))}()}}function a(){var t=document.querySelectorAll(".".concat(r));t&&window.innerWidth>=i.l.SM&&t.forEach((function(t){var e=t.querySelector(".".concat(r,"-container__left-block__title")),n=t.querySelector(".".concat(r,"-container__right-block__title")),i=e.offsetHeight,o=n.offsetHeight;i>o?n.style.height=i+"px":e.style.height=o+"px"}))}"loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o),["load","resize"].forEach((function(t){"resize"===t||"load"===t?window.addEventListener(t,(function(){o(),a()})):window.addEventListener(t,_debounce((function(){o(),a()}),500))}))},function(t,e){},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i,r="",o="",a=function(t){for(var e=0;e<i.lobList.length;e++)for(var n in i.lobList[e])if(n==t)return i.lobList[e][n]},c=function(t,e){""==t.value||"default"==t.value?e.setAttribute("disabled","disabled"):(e.removeAttribute("disabled"),a(r).forEach((function(e){for(var n in e)if(n===t.value){o=e.redirectUrl;break}})))},s=function(t,e){var i;"object"===n(t)&&t.forEach((function(t){for(var e in t)"redirectUrl"!=e&&(i+='<option label="'.concat(t[e],'" value="').concat(e,'">').concat(t[e],"</option>"),o=t.redirectUrl)})),e.innerHTML=i};window.onload=function(){var t,e,n,l;t=document.querySelectorAll(".cmp-triage-filter__form-block .td-multi-single-select-button-wrapper input"),e=document.querySelector(".cmp-triage-filter__select-lang--select--filter-dropdown"),n=document.querySelector(".cmp-triage-filter__form-block .cmp-button"),null!==(l=document.querySelector(".cmp-triage-filter"))&&(i=JSON.parse(l.getAttribute("form-data")),c(e,n),t.forEach((function(t,i){t.addEventListener("change",(function(t){r=t.target.value;var i=a(t.target.value);s(i,e),c(e,n)}))})),e.addEventListener("change",(function(t){c(t.target,n)})),n.addEventListener("click",(function(){o.includes("/content/")||(window.location.host=o),window.location.href=o})))}},function(t,e){},function(t,e,n){"use strict";var i,r=n(0),o=n(12),a=n(1),c=4,s=3,l=2,u=1,d=280,h=function(){var t,e,n=document.querySelectorAll(".cmp-video-carousel .cmp-tabs:not(.cmp-in-page-navigation)"),r=document.querySelectorAll(".cmp-video-carousel .cmp-tabs__banner-slider .cmp-tabs__tabpanel"),o=a.g.getQueryParamValue("carousalTab"),c=0;if(n&&0!=n.length){t=n.length;for(var s=0;s<t;s++){e=n[s].querySelector(".cmp-tabs__controler");var l=n[s].querySelector(".cmp-tabs__controler").id,u=n[s].querySelector(".cmp-tabs__tablist");i=v(".cmp-video-carousel .cmp-tabs__tablist--"+l,"#"+l),S(u),_(u.children),c=f(o,r.length),w(n[s],u,c),setTimeout((function(){i.goTo(c)}),1e3),e.removeAttribute("aria-label"),e.setAttribute("tabindex","-1")}window.scrollTo({top:0,behavior:"smooth"}),window.addEventListener("resize",(function(){x(),e&&(e.removeAttribute("aria-label"),e.setAttribute("tabindex","-1"))})),e&&(e.removeAttribute("aria-label"),e.setAttribute("tabindex","-1")),x(),g(r),p(r),setTimeout((function(){m(r,c,!0)}),2e3),y(r)}},f=function(t,e){if(!a.g.isEmpty(t)&&!isNaN(t)){var n=parseInt(t);return n<1?0:n>e?e-1:n-1}return 0};window.addEventListener("load",(function(t){var e=document.querySelectorAll(".cmp-video-carousel .tns-outer"),n=document.querySelectorAll(".cmp-video-carousel .tns-inner"),i=document.querySelectorAll(".cmp-video-carousel .tns-ovh"),r=document.querySelectorAll(".cmp-video-carousel .tns3-ow");e.forEach((function(t,e){t.setAttribute("id",t.getAttribute("id")+e)}
1)),n.forEach((function(t,e){t.setAttribute("id",t.getAttribute("id")+e)})),i.forEach((function(t,e){t.setAttribute("id",t.getAttribute("id")+e)})),r.forEach((function(t,e){t.setAttribute("id",t.getAttribute("id")+e)}))}));var p=function(t){t.forEach((function(t){setTimeout((function(){if(null!==t.querySelector("video")){var e=t.querySelector("video"),n=t.querySelector(".video-btn");null!==n&&null!==e&&(n.addEventListener("click",(function(t){t.stopPropagation(),e.paused?(e.play(),n.querySelector(".play-icon").style.display="none",n.querySelector(".pause-icon").style.display="block",n.setAttribute("aria-label",n.getAttribute("data-label").split(",")[1])):(e.pause(),n.querySelector(".pause-icon").style.display="none",n.querySelector(".play-icon").style.display="block",n.setAttribute("aria-label",n.getAttribute("data-label").split(",")[0]))})),e.addEventListener("ended",(function(){n.querySelector(".pause-icon").style.display="none",n.querySelector(".play-icon").style.display="block"}),!1))}}),1e3)}))},m=function(t,e,n){var i=document.querySelector(".cmp-video-carousel .cmp-tabs__banner-slider").getBoundingClientRect().top,r=t[e].querySelector("video");window.addEventListener("scroll",(function(){null!==r&&r.offsetWidth>0&&window.scrollY>=i&&n&&(n=!1,t[0].querySelector(".video-btn").click())}))},g=function(t){var e=document.querySelector(".cmp-video-carousel .cmp-tabs__wrapper");1===t.length?e.style.display="none":e.style.display="block"},y=function(t){var e=a.g.getQueryParamValue("carousalTab"),n=0,i=0,r=0,o=document.querySelector(".cmp-video-carousel .cmp-tabs__slider-index-block .cmp-tabs__slider-index-block--prev").parentNode,c=document.querySelector(".cmp-video-carousel .cmp-tabs__slider-index-block .cmp-tabs__slider-index-block--next").parentNode,s=document.querySelector(".cmp-video-carousel .cmp-tabs__slider-index-block .activeNum"),l=document.querySelector(".cmp-video-carousel .cmp-tabs__slider-index-block .totalNum"),u=document.querySelector(".cmp-video-carousel .cmp-tabs__slider-index-block .cmp-tabs__slider-index-result");n=f(e,t.length),s.innerHTML=n+1,l.innerHTML=t.length,t.length&&0===n&&(o.classList.add("visually-hidden"),o.setAttribute("aria-hidden",!0)),t.length&&n===t.length-1&&(c.classList.add("visually-hidden"),c.setAttribute("aria-hidden",!0));var d=function(){n<t.length-1&&(n+=1),o.classList.remove("visually-hidden"),o.setAttribute("aria-hidden",!1),n===t.length-1?setTimeout((function(){c.classList.add("visually-hidden"),c.setAttribute("aria-hidden",!0)}),100):(c.classList.remove("visually-hidden"),c.setAttribute("aria-hidden",!1)),t.forEach((function(t){t.classList.remove("cmp-tabs__tabpanel--active"),t.setAttribute("aria-hidden",!0)})),t[n].classList.add("cmp-tabs__tabpanel--active"),t[n].setAttribute("aria-hidden",!1),u.focus(),s.innerHTML=n+1,A(t,n)},h=function(){n>0&&(n-=1),c.classList.remove("visually-hidden"),c.setAttribute("aria-hidden",!1),0===n?setTimeout((function(){o.classList.add("visually-hidden"),o.setAttribute("aria-hidden",!0)}),100):(o.classList.remove("visually-hidden"),o.setAttribute("aria-hidden",!1)),t.forEach((function(t){t.classList.remove("cmp-tabs__tabpanel--active"),t.setAttribute("aria-hidden",!0)})),t[n].classList.add("cmp-tabs__tabpanel--active"),t[n].setAttribute("aria-hidden",!1),u.focus(),s.innerHTML=n+1,A(t,n)};c.addEventListener("click",(function(){d()})),o.addEventListener("click",(function(){h()})),document.querySelector(".cmp-video-carousel .cmp-tabs__banner-slider").addEventListener("touchstart",(function(t){i=t.changedTouches[0].screenX})),document.querySelector(".cmp-video-carousel .cmp-tabs__banner-slider").addEventListener("touchend",(function(t){r=t.changedTouches[0].screenX,window.outerWidth<768&&r<i&&d(),window.outerWidth<768&&r>i&&h()}))},v=function(t,e){return Object(o.a)({container:t,loop:!1,items:c,slideBy:"page",nav:!1,autoplay:!1,speed:900,autoplayButtonOutput:!1,swipeAngle:!1,mouseDrag:!0,lazyload:!0,controlsContainer:e,responsive:{320:{items:u,controls:!1},768:{items:l,controls:!0},1024:{items:s,controls:!0},1160:{items:c,controls:!0}}})};var b=function(){var t=document.querySelector(".cmp-video-carousel .cmp-tabs__container").offsetWidth;return t>=r.l.LG||t>=r.l.XL?c:t>=r.l.MD?s:t>=r.l.SM?l:u},x=function(){var t=document.querySelectorAll(".cmp-video-carousel .cmp-tabs__tablist"),e=t.length;if(Math.abs(d)>1){void 0!==i&&i.rebuild();for(var n=0;n<e;n++)_(t[n].children),S(t[n])}},_=function(t){for(var e=t.length,n=0;n<e;n++){t[n].style.width=d+"px"}},S=function(t){setTimeout((function(){var e,n=document.querySelector(".cmp-video-carousel .cmp-tabs__container").offsetWidth-100,i=t.children.length,r=d*i,o=b(),a=n;t.style.width=r+"px",t.style.perspective="1200px",t.style.backfaceVisibility="hidden",i<=o&&(e=(a-r)/2,t.style.transform="translate3d("+e+"px, 0, 0)")}),500)},w=function(t,e,n){var i=t.querySelectorAll(".cmp-video-carousel .cmp-tabs__banner-slider .cmp-tabs__tabpanel"),r=e.children,o=r.length,a=document.querySelectorAll(".cmp-video-carousel .cmp-tabs__tablist li"),s=document.querySelector(".cmp-video-carousel .cmp-tabs__controler"),l=document.querySelector(".cmp-video-carousel .cmp-tabs__controler #tabLeftArrow"),u=document.querySelector(".cmp-video-carousel .cmp-tabs__controler #tabRightArrow");1===o&&(n=0),setTimeout((function(){for(var t=0;t<o;t++)t===n?(i[t].classList.add("cmp-tabs__tabpanel--active"),i[t].setAttribute("aria-hidden",!1),r[t].classList.add("cmp-tabs__tab--active"),r[t].setAttribute("aria-selected",!0),r[t].setAttribute("tabindex","0")):(i[t].classList.remove("cmp-tabs__tabpanel--active"),i[t].setAttribute("aria-hidden",!0),r[t].classList.remove("cmp-tabs__tab--active"),r[t].setAttribute("aria-selected",!1),r[t].setAttribute("tabindex","-1"));A(i,n),o>c&&(l.setAttribute("tabindex","-1"),u.setAttribute("tabindex","0"))}),100),L(a,e,i),u.addEventListener("click",(function(t){E(t,a,s,l,u)})),l.addEventListener("click",(function(t){E(t,a,s,l,u)})),u.addEventListener("keydown",(function(t){E(t,a,s,l,u)})),l.addEventListener("keydown",(function(t){E(t,a,s,l,u)})),a.forEach((function(t,e){t.addEventListener("click",(function(t){a.length>4&&(s.setAttribute("tabindex","-1"),l.setAttribute("tabindex","0"),u.setAttribute("tabindex","0"))})),t.addEventListener("keydown",(function(t){a.length>4&&(s.setAttribute("tabindex","-1"),l.setAttribute("tabindex","0"),u.setAttribute("tabindex","0"))}))}))},A=function(t,e){t.forEach((function(t){t.querySelectorAll("a").length&&t.querySelectorAll("a").forEach((function(t){t.setAttribute("tabindex","-1")}))})),t[e].querySelectorAll("a").length&&t[e].querySelectorAll("a").forEach((function(t){t.setAttribute("tabindex","0")}))},E=function(t,e,n,i,r){t.currentTarget.classList.contains("next")&&t.currentTarget.getAttribute("aria-disabled")?(n.setAttribute("tabindex","-1"),i.setAttribute("tabindex","0"),r.setAttribute("tabindex","-1")):(n.setAttribute("tabindex","-1"),i.setAttribute("tabindex","-1"),r.setAttribute("tabindex","0")),setTimeout((function(){e.forEach((function(t,e){t.classList.contains("cmp-tabs__tab--active")?t.setAttribute("tabindex","0"):t.setAttribute("tabindex","-1")}))}),1e3)},L=function(t,e,n){var i=document.querySelector(".cmp-video-carousel .cmp-tabs__container").offsetWidth;t.forEach((function(o,a){var s=function(t,e){"keyup"===e.type?o.classList.contains("cmp-tabs__tab--active")&&null!==o.querySelector(".cmp-tabs__tab--content a")&&(o.querySelector(".cmp-tabs__tab--content a").setAttribute("tabindex","0"),o.querySelector(".cmp-tabs__tab--content a").style.visibility="visible",A(n,a)):setTimeout((function(){o.classList.contains("cmp-tabs__tab--active")&&null!==o.querySelector(".cmp-tabs__tab--content a")&&(o.querySelector(".cmp-tabs__tab--content a").setAttribute("tabindex","0"),o.querySelector(".cmp-tabs__tab--content a").style.visibility="visible",A(n,a))}),t)};s(1e3,"init");
1var l=function(t,e,i,r){t.forEach((function(t){null!==t.querySelector(".cmp-tabs__tab--content a")&&t.querySelector(".cmp-tabs__tab--content a").setAttribute("tabindex","-1")})),s(0,i),function(t){null!==n[t].querySelector(".video-btn")&&null!==n[t].querySelector(".video-btn").offsetParent&&n[t].querySelector(".video-btn").click()}(r)};o.addEventListener("click",(function(e){l(t,0,e,a)})),o.addEventListener("keyup",(function(n){if(l(t,0,n,a),i>=r.l.LG&&e.children.length>c){var o=e.children.length,s=d,u=b(),h=s*o,f=document.querySelector(".cmp-video-carousel .cmp-tabs__container"),p=(f?f.offsetWidth-100:window.innerWidth)-h;if(0===a&&(e.style.transform="translate3d(0px, 0, 0)"),a===e.children.length-1){var m=-s*(o-u),g=m<p?p:m;e.style.transform="translate3d("+g+"px, 0, 0)"}var y=window.getComputedStyle(e),v=0,x=y.transform||y.webkitTransform;if(x&&"none"!==x){var _=x.match(/matrix\(([^)]+)\)/);if(_){var S=_[1].split(",");v=parseFloat(S[4])||0}else{var w=x.match(/matrix3d\(([^)]+)\)/);if(w){var A=w[1].split(",");v=parseFloat(A[12])||0}}}var E=Math.max(0,Math.round(-v/s)),L=E+u-1;if(a<E){var k=-s*a;k<p&&(k=p),k>0&&(k=0),e.style.transform="translate3d("+k+"px, 0, 0)"}else if(a>L){var C=-s*(a-u+1);C<p&&(C=p),C>0&&(C=0),e.style.transform="translate3d("+C+"px, 0, 0)"}}}))}))};"loading"!==document.readyState?h():document.addEventListener("DOMContentLoaded",(function(){h()}))},function(t,e){},function(t,e){},function(t,e){function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){s=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}document.addEventListener("DOMContentLoaded",(function(){var t=document.querySelector("#theme-select");if(null!==t){var e=t.querySelectorAll("option"),i=function(t){if(!t||!function(t){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}(t))return null;return decodeURIComponent(document.cookie.replace(new RegExp("(?:^|.*;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"),"$1"))}("theme");if(i){var r,o=n(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.value===i?a.setAttribute("selected",""):a.removeAttribute("selected","")}}catch(t){o.e(t)}finally{o.f()}}else{var c,s=n(e);try{for(s.s();!(c=s.n()).done;){var l=c.value;l.hasAttribute("selected")&&(document.cookie="theme="+l.value)}}catch(t){s.e(t)}finally{s.f()}}t.addEventListener("change",(function(t){document.cookie="theme="+t.target.value,window.location.reload()}))}}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var i={};function r(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function o(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function a(t){let e,n,i;function a(t,i,r=0,o=t.length){if(r<o){if(0!==e(i,i))return o;do{const e=r+o>>>1;n(t[e],i)<0?r=e+1:o=e}while(r<o)}return r}return 2!==t.length?(e=r,n=(e,n)=>r(t(e),n),i=(e,n)=>t(e)-n):(e=t===r||t===o?t:c,n=t,i=t),{left:a,center:function(t,e,n=0,r=t.length){const o=a(t,e,n,r-1);return o>n&&i(t[o-1],e)>-i(t[o],e)?o-1:o},right:function(t,i,r=0,o=t.length){if(r<o){if(0!==e(i,i))return o;do{const e=r+o>>>1;n(t[e],i)<=0?r=e+1:o=e}while(r<o)}return r}}}function c(){return 0}function s(t){return null===t?NaN:+t}n.r(i),n.d(i,"bisect",(function(){return f})),n.d(i,"bisectRight",(function(){return u})),n.d(i,"bisectLeft",(function(){return d})),n.d(i,"bisectCenter",(function(){return h})),n.d(i,"ascending",(function(){return r})),n.d(i,"bisector",(function(){return a})),n.d(i,"blur",(function(){return p})),n.d(i,"blur2",(function(){return m})),n.d(i,"blurImage",(function(){return g})),n.d(i,"count",(function(){return _})),n.d(i,"cross",(function(){return E})),n.d(i,"cumsum",(function(){return L})),n.d(i,"descending",(function(){return o}
1)),n.d(i,"deviation",(function(){return C})),n.d(i,"extent",(function(){return T})),n.d(i,"Adder",(function(){return M})),n.d(i,"fsum",(function(){return q})),n.d(i,"fcumsum",(function(){return I})),n.d(i,"group",(function(){return H})),n.d(i,"flatGroup",(function(){return G})),n.d(i,"flatRollup",(function(){return W})),n.d(i,"groups",(function(){return z})),n.d(i,"index",(function(){return V})),n.d(i,"indexes",(function(){return X})),n.d(i,"rollup",(function(){return U})),n.d(i,"rollups",(function(){return Y})),n.d(i,"groupSort",(function(){return et})),n.d(i,"bin",(function(){return pt})),n.d(i,"histogram",(function(){return pt})),n.d(i,"thresholdFreedmanDiaconis",(function(){return Et})),n.d(i,"thresholdScott",(function(){return Lt})),n.d(i,"thresholdSturges",(function(){return ft})),n.d(i,"max",(function(){return mt})),n.d(i,"maxIndex",(function(){return gt})),n.d(i,"mean",(function(){return kt})),n.d(i,"median",(function(){return Ct})),n.d(i,"medianIndex",(function(){return Tt})),n.d(i,"merge",(function(){return Mt})),n.d(i,"min",(function(){return yt})),n.d(i,"minIndex",(function(){return vt})),n.d(i,"mode",(function(){return qt})),n.d(i,"nice",(function(){return ht})),n.d(i,"pairs",(function(){return It})),n.d(i,"permute",(function(){return J})),n.d(i,"quantile",(function(){return St})),n.d(i,"quantileIndex",(function(){return At})),n.d(i,"quantileSorted",(function(){return wt})),n.d(i,"quickselect",(function(){return bt})),n.d(i,"range",(function(){return Pt})),n.d(i,"rank",(function(){return Nt})),n.d(i,"least",(function(){return Dt})),n.d(i,"leastIndex",(function(){return Bt})),n.d(i,"greatest",(function(){return _t})),n.d(i,"greatestIndex",(function(){return jt})),n.d(i,"scan",(function(){return Rt})),n.d(i,"shuffle",(function(){return Ht})),n.d(i,"shuffler",(function(){return zt})),n.d(i,"sum",(function(){return Ft})),n.d(i,"ticks",(function(){return lt})),n.d(i,"tickIncrement",(function(){return ut})),n.d(i,"tickStep",(function(){return dt})),n.d(i,"transpose",(function(){return Gt})),n.d(i,"variance",(function(){return k})),n.d(i,"zip",(function(){return Ut})),n.d(i,"every",(function(){return Yt})),n.d(i,"some",(function(){return Vt})),n.d(i,"filter",(function(){return Xt})),n.d(i,"map",(function(){return $t})),n.d(i,"reduce",(function(){return Kt})),n.d(i,"reverse",(function(){return Jt})),n.d(i,"sort",(function(){return Z})),n.d(i,"difference",(function(){return Zt})),n.d(i,"disjoint",(function(){return Qt})),n.d(i,"intersection",(function(){return te})),n.d(i,"subset",(function(){return re})),n.d(i,"superset",(function(){return ne})),n.d(i,"union",(function(){return oe})),n.d(i,"InternMap",(function(){return O})),n.d(i,"InternSet",(function(){return P})),n.d(i,"axisTop",(function(){return fe})),n.d(i,"axisRight",(function(){return pe})),n.d(i,"axisBottom",(function(){return me})),n.d(i,"axisLeft",(function(){return ge})),n.d(i,"brush",(function(){return Yo})),n.d(i,"brushX",(function(){return Wo})),n.d(i,"brushY",(function(){return Uo})),n.d(i,"brushSelection",(function(){return Go})),n.d(i,"chord",(function(){return ia})),n.d(i,"chordTranspose",(function(){return ra})),n.d(i,"chordDirected",(function(){return oa})),n.d(i,"ribbon",(function(){return Aa})),n.d(i,"ribbonArrow",(function(){return Ea})),n.d(i,"color",(function(){return li})),n.d(i,"rgb",(function(){return fi})),n.d(i,"hsl",(function(){return Si})),n.d(i,"lab",(function(){return Ma})),n.d(i,"hcl",(function(){return ja})),n.d(i,"lch",(function(){return Ba})),n.d(i,"gray",(function(){return Ta})),n.d(i,"cubehelix",(function(){return Ya})),n.d(i,"contours",(function(){return nc})),n.d(i,"contourDensity",(function(){return uc})),n.d(i,"Delaunay",(function(){return Rc})),n.d(i,"Voronoi",(function(){return Oc})),n.d(i,"dispatch",(function(){return we})),n.d(i,"drag",(function(){return Yc})),n.d(i,"dragDisable",(function(){return Un})),n.d(i,"dragEnable",(function(){return Yn})),n.d(i,"dsvFormat",(function(){return Qc})),n.d(i,"csvParse",(function(){return es})),n.d(i,"csvParseRows",(function(){return ns})),n.d(i,"csvFormat",(function(){return is})),n.d(i,"csvFormatBody",(function(){return rs})),n.d(i,"csvFormatRows",(function(){return os})),n.d(i,"csvFormatRow",(function(){return as})),n.d(i,"csvFormatValue",(function(){return cs})),n.d(i,"tsvParse",(function(){return ls})),n.d(i,"tsvParseRows",(function(){return us})),n.d(i,"tsvFormat",(function(){return ds})),n.d(i,"tsvFormatBody",(function(){return hs}
1)),n.d(i,"tsvFormatRows",(function(){return fs})),n.d(i,"tsvFormatRow",(function(){return ps})),n.d(i,"tsvFormatValue",(function(){return ms})),n.d(i,"autoType",(function(){return gs})),n.d(i,"easeLinear",(function(){return vs})),n.d(i,"easeQuad",(function(){return _s})),n.d(i,"easeQuadIn",(function(){return bs})),n.d(i,"easeQuadOut",(function(){return xs})),n.d(i,"easeQuadInOut",(function(){return _s})),n.d(i,"easeCubic",(function(){return uo})),n.d(i,"easeCubicIn",(function(){return so})),n.d(i,"easeCubicOut",(function(){return lo})),n.d(i,"easeCubicInOut",(function(){return uo})),n.d(i,"easePoly",(function(){return As})),n.d(i,"easePolyIn",(function(){return Ss})),n.d(i,"easePolyOut",(function(){return ws})),n.d(i,"easePolyInOut",(function(){return As})),n.d(i,"easeSin",(function(){return Ts})),n.d(i,"easeSinIn",(function(){return ks})),n.d(i,"easeSinOut",(function(){return Cs})),n.d(i,"easeSinInOut",(function(){return Ts})),n.d(i,"easeExp",(function(){return Os})),n.d(i,"easeExpIn",(function(){return qs})),n.d(i,"easeExpOut",(function(){return Is})),n.d(i,"easeExpInOut",(function(){return Os})),n.d(i,"easeCircle",(function(){return Ds})),n.d(i,"easeCircleIn",(function(){return Ps})),n.d(i,"easeCircleOut",(function(){return Ns})),n.d(i,"easeCircleInOut",(function(){return Ds})),n.d(i,"easeBounce",(function(){return js})),n.d(i,"easeBounceIn",(function(){return Bs})),n.d(i,"easeBounceOut",(function(){return js})),n.d(i,"easeBounceInOut",(function(){return Rs})),n.d(i,"easeBack",(function(){return Fs})),n.d(i,"easeBackIn",(function(){return Hs})),n.d(i,"easeBackOut",(function(){return zs})),n.d(i,"easeBackInOut",(function(){return Fs})),n.d(i,"easeElastic",(function(){return Us})),n.d(i,"easeElasticIn",(function(){return Ws})),n.d(i,"easeElasticOut",(function(){return Us})),n.d(i,"easeElasticInOut",(function(){return Ys})),n.d(i,"blob",(function(){return Xs})),n.d(i,"buffer",(function(){return Ks})),n.d(i,"dsv",(function(){return tl})),n.d(i,"csv",(function(){return el})),n.d(i,"tsv",(function(){return nl})),n.d(i,"image",(function(){return il})),n.d(i,"json",(function(){return ol})),n.d(i,"text",(function(){return Zs})),n.d(i,"xml",(function(){return cl})),n.d(i,"html",(function(){return sl})),n.d(i,"svg",(function(){return ll})),n.d(i,"forceCenter",(function(){return ul})),n.d(i,"forceCollide",(function(){return wl})),n.d(i,"forceLink",(function(){return Ll})),n.d(i,"forceManyBody",(function(){return ql})),n.d(i,"forceRadial",(function(){return Il})),n.d(i,"forceSimulation",(function(){return Ml})),n.d(i,"forceX",(function(){return Ol})),n.d(i,"forceY",(function(){return Pl})),n.d(i,"formatDefaultLocale",(function(){return Kl})),n.d(i,"format",(function(){return Fl})),n.d(i,"formatPrefix",(function(){return Gl})),n.d(i,"formatLocale",(function(){return $l})),n.d(i,"formatSpecifier",(function(){return jl})),n.d(i,"FormatSpecifier",(function(){return Rl})),n.d(i,"precisionFixed",(function(){return Jl})),n.d(i,"precisionPrefix",(function(){return Zl})),n.d(i,"precisionRound",(function(){return Ql})),n.d(i,"geoArea",(function(){return Zu})),n.d(i,"geoBounds",(function(){return Od})),n.d(i,"geoCentroid",(function(){return Ud})),n.d(i,"geoCircle",(function(){return nh})),n.d(i,"geoClipAntimeridian",(function(){return fh})),n.d(i,"geoClipCircle",(function(){return ph})),n.d(i,"geoClipExtent",(function(){return xh})),n.d(i,"geoClipRectangle",(function(){return mh})),n.d(i,"geoContains",(function(){return Bh})),n.d(i,"geoDistance",(function(){return Ch})),n.d(i,"geoGraticule",(function(){return Hh})),n.d(i,"geoGraticule10",(function(){return zh})),n.d(i,"geoInterpolate",(function(){return Yh})),n.d(i,"geoLength",(function(){return Eh})),n.d(i,"geoPath",(function(){return $f})),n.d(i,"geoAlbers",(function(){return fp})),n.d(i,"geoAlbersUsa",(function(){return pp})),n.d(i,"geoAzimuthalEqualArea",(function(){return vp})),n.d(i,"geoAzimuthalEqualAreaRaw",(function(){return yp})),n.d(i,"geoAzimuthalEquidistant",(function(){return xp})),n.d(i,"geoAzimuthalEquidistantRaw",(function(){return bp})),n.d(i,"geoConicConformal",(function(){return Lp})),n.d(i,"geoConicConformalRaw",(function(){return Ep})),n.d(i,"geoConicEqualArea",(function(){return hp})),n.d(i,"geoConicEqualAreaRaw",(function(){return dp})),n.d(i,"geoConicEquidistant",(function(){return Mp})),n.d(i,"geoConicEquidistantRaw",(function(){return Tp})),n.d(i,"geoEqualEarth",(function(){return Bp})),n.d(i,"geoEqualEarthRaw",(function(){return Dp})),n.d(i,"geoEquirectangular",(function(){return Cp})),n.d(i,"geoEquirectangularRaw",(function(){return kp})),n.d(i,"geoGnomonic",(function(){return Rp})),n.d(i,"geoGnomonicRaw",(function(){return jp})),n.d(i,"geoIdentity",(function(){return Hp})),n.d(i,"geoProjection",(function(){return sp})),n.d(i,"geoProjectionMutator",(function(){return lp})),n.d(i,"geoMercator",(function(){return Sp})),n.d(i,"geoMercatorRaw",(function(){return _p})),n.d(i,"geoNaturalEarth1",(function(){return Fp})),n.d(i,"geoNaturalEarth1Raw",(function(){return zp})),n.d(i,"geoOrthographic",(function(){return Wp})),n.d(i,"geoOrthographicRaw",(function(){return Gp})),n.d(i,"geoStereographic",(function(){return Yp})),n.d(i,"geoStereographicRaw",(function(){return Up})),n.d(i,"geoTransverseMercator",(function(){return Xp})),n.d(i,"geoTransverseMercatorRaw",(function(){return Vp})),n.d(i,"geoRotation",(function(){return Qd})),n.d(i,"geoStream",(function(){return Ou})),n.d(i,"geoTransform",(function(){return Kf})),n.d(i,"cluster",(function(){return Zp})),n.d(i,"hierarchy",(function(){return tm})),n.d(i,"Node",(function(){return om})),n.d(i,"pack",(function(){return km})),n.d(i,"packSiblings",(function(){return Em})),n.d(i,"packEnclose",(function(){return dm})),n.d(i,"partition",(function(){return Om})),n.d(i,"stratify",(function(){return Rm})),n.d(i,"tree",(function(){return Xm})),n.d(i,"treemap",(function(){return Qm})),n.d(i,"treemapBinary",(function(){return tg})),n.d(i,"treemapDice",(function(){return Im})),n.d(i,"treemapSlice",(function(){return $m})),n.d(i,"treemapSliceDice",(function(){return eg})),n.d(i,"treemapSquarify",(function(){return Zm})),n.d(i,"treemapResquarify",(function(){return ng})),n.d(i,"interpolate",(function(){return Ji})),n.d(i,"interpolateArray",(function(){return zi})),n.d(i,"interpolateBasis",(function(){return Ci})),n.d(i,"interpolateBasisClosed",(function(){return Ti})),n.d(i,"interpolateDate",(function(){return Gi})),n.d(i,"interpolateDiscrete",(function(){return ig})),n.d(i,"interpolateHue",(function(){return rg})),n.d(i,"interpolateNumber",(function(){return Wi})),n.d(i,"interpolateNumberArray",(function(){return Ri})),n.d(i,"interpolateObject",(function(){return Ui})),n.d(i,"interpolateRound",(function(){return og})),n.d(i,"interpolateString",(function(){return Ki})),n.d(i,"interpolateTransformCss",(function(){return Tr})),n.d(i,"interpolateTransformSvg",(function(){return Mr})),n.d(i,"interpolateZoom",(function(){return cg})),n.d(i,"interpolateRgb",(function(){return Ni})),n.d(i,"interpolateRgbBasis",(function(){return Bi})),n.d(i,"interpolateRgbBasisClosed",(function(){return ji})),n.d(i,"interpolateHsl",(function(){return lg})),n.d(i,"interpolateHslLong",(function(){return ug})),n.d(i,"interpolateLab",(function(){return dg})),n.d(i,"interpolateHcl",(function(){return fg})),n.d(i,"interpolateHclLong",(function(){return pg})),n.d(i,"interpolateCubehelix",(function(){return gg})),n.d(i,"interpolateCubehelixLong",(function(){return yg})),n.d(i,"piecewise",(function(){return vg})),n.d(i,"quantize",(function(){return bg})),n.d(i,"Path",(function(){return da})),n.d(i,"path",(function(){return ha})),n.d(i,"pathRound",(function(){return fa})),n.d(i,"polygonArea",(function(){return xg})),n.d(i,"polygonCentroid",(function(){return _g}
1)),n.d(i,"polygonHull",(function(){return Ag})),n.d(i,"polygonContains",(function(){return Eg})),n.d(i,"polygonLength",(function(){return Lg})),n.d(i,"quadtree",(function(){return ml})),n.d(i,"randomUniform",(function(){return Cg})),n.d(i,"randomInt",(function(){return Tg})),n.d(i,"randomNormal",(function(){return Mg})),n.d(i,"randomLogNormal",(function(){return qg})),n.d(i,"randomBates",(function(){return Og})),n.d(i,"randomIrwinHall",(function(){return Ig})),n.d(i,"randomExponential",(function(){return Pg})),n.d(i,"randomPareto",(function(){return Ng})),n.d(i,"randomBernoulli",(function(){return Dg})),n.d(i,"randomGeometric",(function(){return Bg})),n.d(i,"randomBinomial",(function(){return Hg})),n.d(i,"randomGamma",(function(){return jg})),n.d(i,"randomBeta",(function(){return Rg})),n.d(i,"randomWeibull",(function(){return zg})),n.d(i,"randomCauchy",(function(){return Fg})),n.d(i,"randomLogistic",(function(){return Gg})),n.d(i,"randomPoisson",(function(){return Wg})),n.d(i,"randomLcg",(function(){return Yg})),n.d(i,"scaleBand",(function(){return Jg})),n.d(i,"scalePoint",(function(){return Qg})),n.d(i,"scaleIdentity",(function(){return hy})),n.d(i,"scaleLinear",(function(){return dy})),n.d(i,"scaleLog",(function(){return _y})),n.d(i,"scaleSymlog",(function(){return Ey})),n.d(i,"scaleOrdinal",(function(){return Kg})),n.d(i,"scaleImplicit",(function(){return $g})),n.d(i,"scalePow",(function(){return My})),n.d(i,"scaleSqrt",(function(){return qy})),n.d(i,"scaleRadial",(function(){return Py})),n.d(i,"scaleQuantile",(function(){return Ny})),n.d(i,"scaleQuantize",(function(){return Dy})),n.d(i,"scaleThreshold",(function(){return By})),n.d(i,"scaleTime",(function(){return Ax})),n.d(i,"scaleUtc",(function(){return Ex})),n.d(i,"scaleSequential",(function(){return Cx})),n.d(i,"scaleSequentialLog",(function(){return Tx})),n.d(i,"scaleSequentialPow",(function(){return qx})),n.d(i,"scaleSequentialSqrt",(function(){return Ix})),n.d(i,"scaleSequentialSymlog",(function(){return Mx})),n.d(i,"scaleSequentialQuantile",(function(){return Ox})),n.d(i,"scaleDiverging",(function(){return Nx})),n.d(i,"scaleDivergingLog",(function(){return Dx})),n.d(i,"scaleDivergingPow",(function(){return jx})),n.d(i,"scaleDivergingSqrt",(function(){return Rx})),n.d(i,"scaleDivergingSymlog",(function(){return Bx})),n.d(i,"tickFormat",(function(){return ly})),n.d(i,"schemeCategory10",(function(){return zx})),n.d(i,"schemeAccent",(function(){return Fx})),n.d(i,"schemeDark2",(function(){return Gx})),n.d(i,"schemeObservable10",(function(){return Wx})),n.d(i,"schemePaired",(function(){return Ux})),n.d(i,"schemePastel1",(function(){return Yx})),n.d(i,"schemePastel2",(function(){return Vx})),n.d(i,"schemeSet1",(function(){return Xx})),n.d(i,"schemeSet2",(function(){return $x})),n.d(i,"schemeSet3",(function(){return Kx})),n.d(i,"schemeTableau10",(function(){return Jx})),n.d(i,"interpolateBrBG",(function(){return t_})),n.d(i,"schemeBrBG",(function(){return Qx})),n.d(i,"interpolatePRGn",(function(){return n_})),n.d(i,"schemePRGn",(function(){return e_})),n.d(i,"interpolatePiYG",(function(){return r_})),n.d(i,"schemePiYG",(function(){return i_})),n.d(i,"interpolatePuOr",(function(){return a_})),n.d(i,"schemePuOr",(function(){return o_})),n.d(i,"interpolateRdBu",(function(){return s_})),n.d(i,"schemeRdBu",(function(){return c_})),n.d(i,"interpolateRdGy",(function(){return u_})),n.d(i,"schemeRdGy",(function(){return l_})),n.d(i,"interpolateRdYlBu",(function(){return h_})),n.d(i,"schemeRdYlBu",(function(){return d_})),n.d(i,"interpolateRdYlGn",(function(){return p_})),n.d(i,"schemeRdYlGn",(function(){return f_})),n.d(i,"interpolateSpectral",(function(){return g_})),n.d(i,"schemeSpectral",(function(){return m_})),n.d(i,"interpolateBuGn",(function(){return v_})),n.d(i,"schemeBuGn",(function(){return y_})),n.d(i,"interpolateBuPu",(function(){return x_})),n.d(i,"schemeBuPu",(function(){return b_})),n.d(i,"interpolateGnBu",(function(){return S_})),n.d(i,"schemeGnBu",(function(){return __})),n.d(i,"interpolateOrRd",(function(){return A_})),n.d(i,"schemeOrRd",(function(){return w_})),n.d(i,"interpolatePuBuGn",(function(){return L_})),n.d(i,"schemePuBuGn",(function(){return E_})),n.d(i,"interpolatePuBu",(function(){return C_})),n.d(i,"schemePuBu",(function(){return k_})),n.d(i,"interpolatePuRd",(function(){return M_})),n.d(i,"schemePuRd",(function(){return T_})),n.d(i,"interpolateRdPu",(function(){return I_})),n.d(i,"schemeRdPu",(function(){return q_})),n.d(i,"interpolateYlGnBu",(function(){return P_})),n.d(i,"schemeYlGnBu",(function(){return O_})),n.d(i,"interpolateYlGn",(function(){return D_})),n.d(i,"schemeYlGn",(function(){return N_})),n.d(i,"interpolateYlOrBr",(function(){return j_})),n.d(i,"schemeYlOrBr",(function(){return B_})),n.d(i,"interpolateYlOrRd",(function(){return H_})),n.d(i,"schemeYlOrRd",(function(){return R_})),n.d(i,"interpolateBlues",(function(){return F_})),n.d(i,"schemeBlues",(function(){return z_})),n.d(i,"interpolateGreens",(function(){return W_})),n.d(i,"schemeGreens",(function(){return G_})),n.d(i,"interpolateGreys",(function(){return Y_})),n.d(i,"schemeGreys",(function(){return U_})),n.d(i,"interpolatePurples",(function(){return X_})),n.d(i,"schemePurples",(function(){return V_})),n.d(i,"interpolateReds",(function(){return K_})),n.d(i,"schemeReds",(function(){return $_})),n.d(i,"interpolateOranges",(function(){return Z_})),n.d(i,"schemeOranges",(function(){return J_})),n.d(i,"interpolateCividis",(function(){return Q_})),n.d(i,"interpolateCubehelixDefault",(function(){return tS})),n.d(i,"interpolateRainbow",(function(){return rS})),n.d(i,"interpolateWarm",(function(){return eS})),n.d(i,"interpolateCool",(function(){return nS})),n.d(i,"interpolateSinebow",(function(){return sS})),n.d(i,"interpolateTurbo",(function(){return lS})),n.d(i,"interpolateViridis",(function(){return dS})),n.d(i,"interpolateMagma",(function(){return hS})),n.d(i,"interpolateInferno",(function(){return fS})),n.d(i,"interpolatePlasma",(function(){return pS})),n.d(i,"create",(function(){return mS})),n.d(i,"creator",(function(){return En})),n.d(i,"local",(function(){return yS})),n.d(i,"matcher",(function(){return Te})),n.d(i,"namespace",(function(){return Ue})),n.d(i,"namespaces",(function(){return We})),n.d(i,"pointer",(function(){return Qi})),n.d(i,"pointers",(function(){return bS})),n.d(i,"select",(function(){return Hn})),n.d(i,"selectAll",(function(){return xS})),n.d(i,"selection",(function(){return Rn})),n.d(i,"selector",(function(){return Ee})),n.d(i,"selectorAll",(function(){return Ce})),n.d(i,"style",(function(){return nn})),n.d(i,"window",(function(){return Ze})),n.d(i,"arc",(function(){return FS})),n.d(i,"area",(function(){return KS})),n.d(i,"line",(function(){return $S})),n.d(i,"pie",(function(){return QS})),n.d(i,"areaRadial",(function(){return ow})),n.d(i,"radialArea",(function(){return ow})),n.d(i,"lineRadial",(function(){return rw})),n.d(i,"radialLine",(function(){return rw})),n.d(i,"pointRadial",(function(){return aw})),n.d(i,"link",(function(){return pw})),n.d(i,"linkHorizontal",(function(){return mw})),n.d(i,"linkVertical",(function(){return gw})),n.d(i,"linkRadial",(function(){return yw})),n.d(i,"symbol",(function(){return Ww})),n.d(i,"symbolsStroke",(function(){return Gw})),n.d(i,"symbolsFill",(function(){return Fw})),n.d(i,"symbols",(function(){return Fw})),n.d(i,"symbolAsterisk",(function(){return bw})),n.d(i,"symbolCircle",(function(){return xw})),n.d(i,"symbolCross",(function(){return _w})),n.d(i,"symbolDiamond",(function(){return Aw})),n.d(i,"symbolDiamond2",(function(){return Ew})),n.d(i,"symbolPlus",(function(){return Lw})),n.d(i,"symbolSquare",(function(){return kw})),n.d(i,"symbolSquare2",(function(){return Cw})),n.d(i,"symbolStar",(function(){return Iw})),n.d(i,"symbolTriangle",(function(){return Pw}
1)),n.d(i,"symbolTriangle2",(function(){return Dw})),n.d(i,"symbolWye",(function(){return Hw})),n.d(i,"symbolTimes",(function(){return zw})),n.d(i,"symbolX",(function(){return zw})),n.d(i,"curveBasisClosed",(function(){return Kw})),n.d(i,"curveBasisOpen",(function(){return Zw})),n.d(i,"curveBasis",(function(){return Xw})),n.d(i,"curveBumpX",(function(){return lw})),n.d(i,"curveBumpY",(function(){return uw})),n.d(i,"curveBundle",(function(){return tA})),n.d(i,"curveCardinalClosed",(function(){return oA})),n.d(i,"curveCardinalOpen",(function(){return cA})),n.d(i,"curveCardinal",(function(){return iA})),n.d(i,"curveCatmullRomClosed",(function(){return hA})),n.d(i,"curveCatmullRomOpen",(function(){return pA})),n.d(i,"curveCatmullRom",(function(){return uA})),n.d(i,"curveLinearClosed",(function(){return gA})),n.d(i,"curveLinear",(function(){return YS})),n.d(i,"curveMonotoneX",(function(){return AA})),n.d(i,"curveMonotoneY",(function(){return EA})),n.d(i,"curveNatural",(function(){return CA})),n.d(i,"curveStep",(function(){return MA})),n.d(i,"curveStepAfter",(function(){return IA})),n.d(i,"curveStepBefore",(function(){return qA})),n.d(i,"stack",(function(){return BA})),n.d(i,"stackOffsetExpand",(function(){return jA})),n.d(i,"stackOffsetDiverging",(function(){return RA})),n.d(i,"stackOffsetNone",(function(){return OA})),n.d(i,"stackOffsetSilhouette",(function(){return HA})),n.d(i,"stackOffsetWiggle",(function(){return zA})),n.d(i,"stackOrderAppearance",(function(){return FA})),n.d(i,"stackOrderAscending",(function(){return WA})),n.d(i,"stackOrderDescending",(function(){return YA})),n.d(i,"stackOrderInsideOut",(function(){return VA})),n.d(i,"stackOrderNone",(function(){return PA})),n.d(i,"stackOrderReverse",(function(){return XA})),n.d(i,"timeInterval",(function(){return Hy})),n.d(i,"utcMillisecond",(function(){return zy})),n.d(i,"utcMilliseconds",(function(){return Fy})),n.d(i,"timeMillisecond",(function(){return zy})),n.d(i,"timeMilliseconds",(function(){return Fy})),n.d(i,"utcSecond",(function(){return Gy})),n.d(i,"utcSeconds",(function(){return Wy})),n.d(i,"timeSecond",(function(){return Gy})),n.d(i,"timeSeconds",(function(){return Wy})),n.d(i,"timeMinute",(function(){return Uy})),n.d(i,"timeMinutes",(function(){return Yy})),n.d(i,"utcMinute",(function(){return Vy})),n.d(i,"utcMinutes",(function(){return Xy})),n.d(i,"timeHour",(function(){return $y})),n.d(i,"timeHours",(function(){return Ky})),n.d(i,"utcHour",(function(){return Jy})),n.d(i,"utcHours",(function(){return Zy})),n.d(i,"timeDay",(function(){return Qy})),n.d(i,"timeDays",(function(){return tv})),n.d(i,"utcDay",(function(){return ev})),n.d(i,"utcDays",(function(){return nv})),n.d(i,"unixDay",(function(){return iv})),n.d(i,"unixDays",(function(){return rv})),n.d(i,"timeWeek",(function(){return av})),n.d(i,"timeWeeks",(function(){return fv})),n.d(i,"timeSunday",(function(){return av})),n.d(i,"timeSundays",(function(){return fv})),n.d(i,"timeMonday",(function(){return cv})),n.d(i,"timeMondays",(function(){return pv})),n.d(i,"timeTuesday",(function(){return sv})),n.d(i,"timeTuesdays",(function(){return mv})),n.d(i,"timeWednesday",(function(){return lv})),n.d(i,"timeWednesdays",(function(){return gv})),n.d(i,"timeThursday",(function(){return uv})),n.d(i,"timeThursdays",(function(){return yv})),n.d(i,"timeFriday",(function(){return dv})),n.d(i,"timeFridays",(function(){return vv})),n.d(i,"timeSaturday",(function(){return hv})),n.d(i,"timeSaturdays",(function(){return bv})),n.d(i,"utcWeek",(function(){return _v})),n.d(i,"utcWeeks",(function(){return Cv})),n.d(i,"utcSunday",(function(){return _v})),n.d(i,"utcSundays",(function(){return Cv})),n.d(i,"utcMonday",(function(){return Sv})),n.d(i,"utcMondays",(function(){return Tv})),n.d(i,"utcTuesday",(function(){return wv})),n.d(i,"utcTuesdays",(function(){return Mv})),n.d(i,"utcWednesday",(function(){return Av})),n.d(i,"utcWednesdays",(function(){return qv})),n.d(i,"utcThursday",(function(){return Ev})),n.d(i,"utcThursdays",(function(){return Iv})),n.d(i,"utcFriday",(function(){return Lv})),n.d(i,"utcFridays",(function(){return Ov})),n.d(i,"utcSaturday",(function(){return kv})),n.d(i,"utcSaturdays",(function(){return Pv})),n.d(i,"timeMonth",(function(){return Nv})),n.d(i,"timeMonths",(function(){return Dv})),n.d(i,"utcMonth",(function(){return Bv})),n.d(i,"utcMonths",(function(){return jv})),n.d(i,"timeYear",(function(){return Rv})),n.d(i,"timeYears",(function(){return Hv})),n.d(i,"utcYear",(function(){return zv})),n.d(i,"utcYears",(function(){return Fv})),n.d(i,"utcTicks",(function(){return Wv})),n.d(i,"utcTickInterval",(function(){return Uv})),n.d(i,"timeTicks",(function(){return Yv})),n.d(i,"timeTickInterval",(function(){return Vv})),n.d(i,"timeFormatDefaultLocale",(function(){return xx})),n.d(i,"timeFormat",(function(){return Qv})),n.d(i,"timeParse",(function(){return tb})),n.d(i,"utcFormat",(function(){return eb})),n.d(i,"utcParse",(function(){return nb})),n.d(i,"timeFormatLocale",(function(){return Jv})),n.d(i,"isoFormat",(function(){return $A})),n.d(i,"isoParse",(function(){return KA})),n.d(i,"now",(function(){return sr})),n.d(i,"timer",(function(){return dr})),n.d(i,"timerFlush",(function(){return hr})),n.d(i,"timeout",(function(){return gr})),n.d(i,"interval",(function(){return JA})),n.d(i,"transition",(function(){return oo})),n.d(i,"active",(function(){return mo})),n.d(i,"interrupt",(function(){return Ar})),n.d(i,"zoom",(function(){return dE})),n.d(i,"zoomTransform",(function(){return nE})),n.d(i,"zoomIdentity",(function(){return eE})),n.d(i,"ZoomTransform",(function(){return tE}
vendor: 1,240 bytes, line 1
1));const l=a(r),u=l.right,d=l.left,h=a(s).center;var f=u;function p(t,e){if(!((e=+e)>=0))throw new RangeError("invalid r");let n=t.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!e)return t;const i=x(e),r=t.slice();return i(t,r,0,n,1),i(r,t,0,n,1),i(t,r,0,n,1),t}const m=y(x),g=y((function(t){const e=x(t);return(t,n,i,r,o)=>{e(t,n,(i<<=2)+0,(r<<=2)+0,o<<=2),e(t,n,i+1,r+1,o),e(t,n,i+2,r+2,o),e(t,n,i+3,r+3,o)}}));function y(t){return function(e,n,i=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((i=+i)>=0))throw new RangeError("invalid ry");let{data:r,width:o,height:a}=e;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(void 0!==a?a:r.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!n&&!i)return e;const c=n&&t(n),s=i&&t(i),l=r.slice();return c&&s?(v(c,l,r,o,a),v(c,r,l,o,a),v(c,l,r,o,a),b(s,r,l,o,a),b(s,l,r,o,a),b(s,r,l,o,a)):c?(v(c,r,l,o,a),v(c,l,r,o,a),v(c,r,l,o,a)):s&&(b(s,r,l,o,a),b(s,l,r,o,a),b(s,r,l,o,a)),e}}function v(t,e,n,i,r){for(let o=0,a=i*r;o<a;)t(e,n,o,o+=i,1)}function b(t,e,n,i,r){for(let o=0,a=i*r;o<i;++o)t(e,n,o,o+a,i)}function x(t){const e=Math.floor(t);if(e===t)return function(t){const e=2*t+1;return(n,i,r,o,a)=>
vendor: 24,568 bytes, line 1
1{if(!((o-=a)>=r))return;let c=t*i[r];const s=a*t;for(let t=r,e=r+s;t<e;t+=a)c+=i[Math.min(o,t)];for(let t=r,l=o;t<=l;t+=a)c+=i[Math.min(o,t+s)],n[t]=c/e,c-=i[Math.max(r,t-s)]}}(t);const n=t-e,i=2*t+1;return(t,r,o,a,c)=>{if(!((a-=c)>=o))return;let s=e*r[o];const l=c*e,u=l+c;for(let t=o,e=o+l;t<e;t+=c)s+=r[Math.min(a,t)];for(let e=o,d=a;e<=d;e+=c)s+=r[Math.min(a,e+l)],t[e]=(s+n*(r[Math.max(o,e-u)]+r[Math.min(a,e+u)]))/i,s-=r[Math.max(o,e-l)]}}function _(t,e){let n=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&++n;else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(r=+r)>=r&&++n}return n}function S(t){return 0|t.length}function w(t){return!(t>0)}function A(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function E(...t){const e="function"==typeof t[t.length-1]&&function(t){return e=>t(...e)}(t.pop()),n=(t=t.map(A)).map(S),i=t.length-1,r=new Array(i+1).fill(0),o=[];if(i<0||n.some(w))return o;for(;;){o.push(r.map((e,n)=>t[n][e]));let a=i;for(;++r[a]===n[a];){if(0===a)return e?o.map(e):o;r[a--]=0}}}function L(t,e){var n=0,i=0;return Float64Array.from(t,void 0===e?t=>n+=+t||0:r=>n+=+e(r,i++,t)||0)}function k(t,e){let n,i=0,r=0,o=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(n=e-r,r+=n/++i,o+=n*(e-r));else{let a=-1;for(let c of t)null!=(c=e(c,++a,t))&&(c=+c)>=c&&(n=c-r,r+=n/++i,o+=n*(c-r))}if(i>1)return o/(i-1)}function C(t,e){const n=k(t,e);return n?Math.sqrt(n):n}function T(t,e){let n,i;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=i=e):(n>e&&(n=e),i<e&&(i=e)));else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(void 0===n?o>=o&&(n=i=o):(n>o&&(n=o),i<o&&(i=o)))}return[n,i]}class M{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let i=0;i<this._n&&i<32;i++){const r=e[i],o=t+r,a=Math.abs(t)<Math.abs(r)?t-(o-r):r-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let e,n,i,r=this._n,o=0;if(r>0){for(o=t[--r];r>0&&(e=o,n=t[--r],o=e+n,i=n-(o-e),!i););r>0&&(i<0&&t[r-1]<0||i>0&&t[r-1]>0)&&(n=2*i,e=o+n,n==e-o&&(o=e))}return o}}function q(t,e){const n=new M;if(void 0===e)for(let e of t)(e=+e)&&n.add(e);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&n.add(r)}return+n}function I(t,e){const n=new M;let i=-1;return Float64Array.from(t,void 0===e?t=>n.add(+t||0):r=>n.add(+e(r,++i,t)||0))}class O extends Map{constructor(t,e=j){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(N(this,t))}has(t){return super.has(N(this,t))}set(t,e){return super.set(D(this,t),e)}delete(t){return super.delete(B(this,t))}}class P extends Set{constructor(t,e=j){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(N(this,t))}add(t){return super.add(D(this,t))}delete(t){return super.delete(B(this,t))}}function N({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function D({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function B({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function j(t){return null!==t&&"object"==typeof t?t.valueOf():t}function R(t){return t}function H(t,...e){return K(t,R,R,e)}function z(t,...e){return K(t,Array.from,R,e)}function F(t,e){for(let n=1,i=e.length;n<i;++n)t=t.flatMap(t=>t.pop().map(([e,n])=>[...t,e,n]));return t}function G(t,...e){return F(z(t,...e),e)}function W(t,e,...n){return F(Y(t,e,...n),n)}function U(t,e,...n){return K(t,R,e,n)}function Y(t,e,...n){return K(t,Array.from,e,n)}function V(t,...e){return K(t,R,$,e)}function X(t,...e){return K(t,Array.from,$,e)}function $(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function K(t,e,n,i){return function t(r,o){if(o>=i.length)return n(r);const a=new O,c=i[o++];let s=-1;for(const t of r){const e=c(t,++s,r),n=a.get(e);n?n.push(t):a.set(e,[t])}for(const[e,n]of a)a.set(e,t(n,o));return e(a)}(t,0)}function J(t,e){return Array.from(e,e=>t[e])}function Z(t,...e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&2!==n.length||e.length>1){const i=Uint32Array.from(t,(t,e)=>e);return e.length>1?(e=e.map(e=>t.map(e)),i.sort((t,n)=>{for(const i of e){const e=tt(i[t],i[n]);if(e)return e}})):(n=t.map(n),i.sort((t,e)=>tt(n[t],n[e]))),J(t,i)}return t.sort(Q(n))}function Q(t=r){if(t===r)return tt;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const i=t(e,n);return i||0===i?i:(0===t(n,n))-(0===t(e,e))}}function tt(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function et(t,e,n){return(2!==e.length?Z(U(t,e,n),([t,e],[n,i])=>r(e,i)||r(t,n)):Z(H(t,n),([t,n],[i,o])=>e(n,o)||r(t,i))).map(([t])=>t)}var nt=Array.prototype,it=nt.slice;nt.map;function rt(t){return()=>t}const ot=Math.sqrt(50),at=Math.sqrt(10),ct=Math.sqrt(2);function st(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),o=i/Math.pow(10,r),a=o>=ot?10:o>=at?5:o>=ct?2:1;let c,s,l;return r<0?(l=Math.pow(10,-r)/a,c=Math.round(t*l),s=Math.round(e*l),c/l<t&&++c,s/l>e&&--s,l=-l):(l=Math.pow(10,r)*a,c=Math.round(t/l),s=Math.round(e/l),c*l<t&&++c,s*l>e&&--s),s<c&&.5<=n&&n<2?st(t,e,2*n):[c,s,l]}function lt(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const i=e<t,[r,o,a]=i?st(e,t,n):st(t,e,n);if(!(o>=r))return[];const c=o-r+1,s=new Array(c);if(i)if(a<0)for(let t=0;t<c;++t)s[t]=(o-t)/-a;else for(let t=0;t<c;++t)s[t]=(o-t)*a;else if(a<0)for(let t=0;t<c;++t)s[t]=(r+t)/-a;else for(let t=0;t<c;++t)s[t]=(r+t)*a;return s}function ut(t,e,n){return st(t=+t,e=+e,n=+n)[2]}function dt(t,e,n){n=+n;const i=(e=+e)<(t=+t),r=i?ut(e,t,n):ut(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function ht(t,e,n){let i;for(;;){const r=ut(t,e,n);if(r===i||0===r||!isFinite(r))return[t,e];r>0?(t=Math.floor(t/r)*r,e=Math.ceil(e/r)*r):r<0&&(t=Math.ceil(t*r)/r,e=Math.floor(e*r)/r),i=r}}function ft(t){return Math.max(1,Math.ceil(Math.log(_(t))/Math.LN2)+1)}function pt(){var t=R,e=T,n=ft;function i(i){Array.isArray(i)||(i=Array.from(i));var r,o,a,c=i.length,s=new Array(c);for(r=0;r<c;++r)s[r]=t(i[r],r,i);var l=e(s),u=l[0],d=l[1],h=n(s,u,d);if(!Array.isArray(h)){const t=d,n=+h;if(e===T&&([u,d]=ht(u,d,n)),(h=lt(u,d,n))[0]<=u&&(a=ut(u,d,n)),h[h.length-1]>=d)if(t>=d&&e===T){const t=ut(u,d,n);isFinite(t)&&(t>0?d=(Math.floor(d/t)+1)*t:t<0&&(d=(Math.ceil(d*-t)+1)/-t))}else h.pop()}for(var p=h.length,m=0,g=p;h[m]<=u;)++m;for(;h[g-1]>d;)--g;(m||g<p)&&(h=h.slice(m,g),p=g-m);var y,v=new Array(p+1);for(r=0;r<=p;++r)(y=v[r]=[]).x0=r>0?h[r-1]:u,y.x1=r<p?h[r]:d;if(isFinite(a)){if(a>0)for(r=0;r<c;++r)null!=(o=s[r])&&u<=o&&o<=d&&v[Math.min(p,Math.floor((o-u)/a))].push(i[r]);else if(a<0)for(r=0;r<c;++r)if(null!=(o=s[r])&&u<=o&&o<=d){const t=Math.floor((u-o)*a);v[Math.min(p,t+(h[t]<=o))].push(i[r])}}else for(r=0;r<c;++r)null!=(o=s[r])&&u<=o&&o<=d&&v[f(h,o,0,p)].push(i[r]);return v}return i.value=function(e){return arguments.length?(t="function"==typeof e?e:rt(e),i):t},i.domain=function(t){return arguments.length?(e="function"==typeof t?t:rt([t[0],t[1]]),i):e},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:rt(Array.isArray(t)?it.call(t):t),i):n},i}function mt(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function gt(t,e){let n,i=-1,r=-1;if(void 0===e)for(const e of t)++r,null!=e&&(n<e||void 0===n&&e>=e)&&(n=e,i=r);else for(let o of t)null!=(o=e(o,++r,t))&&(n<o||void 0===n&&o>=o)&&(n=o,i=r);return i}function yt(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function vt(t,e){let n,i=-1,r=-1;if(void 0===e)for(const e of t)++r,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,i=r);else for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o,i=r);return i}function bt(t,e,n=0,i=1/0,r){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),i=Math.floor(Math.min(t.length-1,i)),!(n<=e&&e<=i))return t;for(r=void 0===r?tt:Q(r);i>n;){if(i-n>600){const o=i-n+1,a=e-n+1,c=Math.log(o),s=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*s*(o-s)/o)*(a-o/2<0?-1:1);bt(t,e,Math.max(n,Math.floor(e-a*s/o+l)),Math.min(i,Math.floor(e+(o-a)*s/o+l)),r)}const o=t[e];let a=n,c=i;for(xt(t,n,e),r(t[i],o)>0&&xt(t,n,i);a<c;){for(xt(t,a,c),++a,--c;r(t[a],o)<0;)++a;for(;r(t[c],o)>0;)--c}0===r(t[n],o)?xt(t,n,c):(++c,xt(t,c,i)),c<=e&&(n=c+1),e<=c&&(i=c-1)}return t}function xt(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function _t(t,e=r){let n,i=!1;if(1===e.length){let o;for(const a of t){const t=e(a);(i?r(t,o)>0:0===r(t,t))&&(n=a,o=t,i=!0)}}else for(const r of t)(i?e(r,n)>0:0===e(r,r))&&(n=r,i=!0);return n}function St(t,e,n){if((i=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(i=+i)>=i&&(yield i)}}(t,n))).length)&&!isNaN(e=+e)){if(e<=0||i<2)return yt(t);if(e>=1)return mt(t);var i,r=(i-1)*e,o=Math.floor(r),a=mt(bt(t,o).subarray(0,o+1));return a+(yt(t.subarray(o+1))-a)*(r-o)}}function wt(t,e,n=s){if((i=t.length)&&!isNaN(e=+e)){if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,o=Math.floor(r),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(r-o)}}function At(t,e,n=s){if(!isNaN(e=+e)){if(i=Float64Array.from(t,(e,i)=>s(n(t[i],i,t))),e<=0)return vt(i);if(e>=1)return gt(i);var i,r=Uint32Array.from(t,(t,e)=>e),o=i.length-1,a=Math.floor(o*e);return bt(r,a,0,o,(t,e)=>tt(i[t],i[e])),(a=_t(r.subarray(0,a+1),t=>i[t]))>=0?a:-1}}function Et(t,e,n){const i=_(t),r=St(t,.75)-St(t,.25);return i&&r?Math.ceil((n-e)/(2*r*Math.pow(i,-1/3))):1}function Lt(t,e,n){const i=_(t),r=C(t);return i&&r?Math.ceil((n-e)*Math.cbrt(i)/(3.49*r)):1}function kt(t,e){let n=0,i=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(++n,i+=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(o=+o)>=o&&(++n,i+=o)}if(n)return i/n}function Ct(t,e){return St(t,.5,e)}function Tt(t,e){return At(t,.5,e)}function Mt(t){return Array.from(function*(t){for(const e of t)yield*e}(t))}function qt(t,e){const n=new O;if(void 0===e)for(let e of t)null!=e&&e>=e&&n.set(e,(n.get(e)||0)+1);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&r>=r&&n.set(r,(n.get(r)||0)+1)}let i,r=0;for(const[t,e]of n)e>r&&(r=e,i=t);return i}function It(t,e=Ot){const n=[];let i,r=!1;for(const o of t)r&&n.push(e(i,o)),i=o,r=!0;return n}function Ot(t,e){return[t,e]}function Pt(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(r);++i<r;)o[i]=t+i*n;return o}function Nt(t,e=r){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");let n=Array.from(t);const i=new Float64Array(n.length);2!==e.length&&(n=n.map(e),e=r);const o=(t,i)=>e(n[t],n[i]);let a,c;return(t=Uint32Array.from(n,(t,e)=>e)).sort(e===r?(t,e)=>tt(n[t],n[e]):Q(o)),t.forEach((t,e)=>{const n=o(t,void 0===a?t:a);n>=0?((void 0===a||n>0)&&(a=t,c=e),i[t]=c):i[t]=NaN}),i}function Dt(t,e=r){let n,i=!1;if(1===e.length){let o;for(const a of t){const t=e(a);(i?r(t,o)<0:0===r(t,t))&&(n=a,o=t,i=!0)}}else for(const r of t)(i?e(r,n)<0:0===e(r,r))&&(n=r,i=!0);return n}function Bt(t,e=r){if(1===e.length)return vt(t,e);let n,i=-1,o=-1;for(const r of t)++o,(i<0?0===e(r,r):e(r,n)<0)&&(n=r,i=o);return i}function jt(t,e=r){if(1===e.length)return gt(t,e);let n,i=-1,o=-1;for(const r of t)++o,(i<0?0===e(r,r):e(r,n)>0)&&(n=r,i=o);return i}function Rt(t,e){const n=Bt(t,e);return n<0?void 0:n}var Ht=zt(Math.random);function zt(t){return function(e,n=0,i=e.length){let r=i-(n=+n);for(;r;){const i=t()*r--|0,o=e[r+n];e[r+n]=e[i+n],e[i+n]=o}return e}}function Ft(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function Gt(t){if(!(r=t.length))return[];for(var e=-1,n=yt(t,Wt),i=new Array(n);++e<n;)for(var r,o=-1,a=i[e]=new Array(r);++o<r;)a[o]=t[o][e];return i}function Wt(t){return t.length}function Ut(){return Gt(arguments)}function Yt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const i of t)if(!e(i,++n,t))return!1;return!0}function Vt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const i of t)if(e(i,++n,t))return!0;return!1}function Xt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");const n=[];let i=-1;for(const r of t)e(r,++i,t)&&n.push(r);return n}function $t(t,e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof e)throw new TypeError("mapper is not a function");return Array.from(t,(n,i)=>e(n,i,t))}function Kt(t,e,n){if("function"!=typeof e)throw new TypeError("reducer is not a function");const i=t[Symbol.iterator]();let r,o,a=-1;if(arguments.length<3){if(({done:r,value:n}=i.next()),r)return;++a}for(;({done:r,value:o}=i.next()),!r;)n=e(n,o,++a,t);return n}function Jt(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Zt(t,...e){t=new P(t);for(const n of e)for(const e of n)t.delete(e);return t}function Qt(t,e){const n=e[Symbol.iterator](),i=new P;for(const e of t){if(i.has(e))return!1;let t,r;for(;({value:t,done:r}=n.next())&&!r;){if(Object.is(e,t))return!1;i.add(t)}}return!0}function te(t,...e){t=new P(t),e=e.map(ee);t:for(const n of t)for(const i of e)if(!i.has(n)){t.delete(n);continue t}return t}function ee(t){return t instanceof P?t:new P(t)}function ne(t,e){const n=t[Symbol.iterator](),i=new Set;for(const t of e){const e=ie(t);if(i.has(e))continue;let r,o;for(;({value:r,done:o}=n.next());){if(o)return!1;const t=ie(r);if(i.add(t),Object.is(e,t))break}}return!0}function ie(t){return null!==t&&"object"==typeof t?t.valueOf():t}function re(t,e){return ne(e,t)}function oe(...t){const e=new P;for(const n of t)for(const t of n)e.add(t);return e}var ae=function(t){return t};function ce(t){return"translate("+t+",0)"}function se(t){return"translate(0,"+t+")"}function le(t){return e=>+t(e)}function ue(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function de(){return!this.__axis}function he(t,e){var n=[],i=null,r=null,o=6,a=6,c=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,u=4===t||2===t?"x":"y",d=1===t||3===t?ce:se;function h(h){var f=null==i?e.ticks?e.ticks.apply(e,n):e.domain():i,p=null==r?e.tickFormat?e.tickFormat.apply(e,n):ae:r,m=Math.max(o,0)+c,g=e.range(),y=+g[0]+s,v=+g[g.length-1]+s,b=(e.bandwidth?ue:le)(e.copy(),s),x=h.selection?h.selection():h,_=x.selectAll(".domain").data([null]),S=x.selectAll(".tick").data(f,e).order(),w=S.exit(),A=S.enter().append("g").attr("class","tick"),E=S.select("line"),L=S.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(A),E=E.merge(A.append("line").attr("stroke","currentColor").attr(u+"2",l*o)),L=L.merge(A.append("text").attr("fill","currentColor").attr(u,l*m).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==x&&(_=_.transition(h),S=S.transition(h),E=E.transition(h),L=L.transition(h),w=w.transition(h).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=b(t))?d(t+s):this.getAttribute("transform")})),A.attr("opacity",1e-6).attr("transform",(function(t){var e=this.parentNode.__axis;return d((e&&isFinite(e=e(t))?e:b(t))+s)}))),w.remove(),_.attr("d",4===t||2===t?a?"M"+l*a+","+y+"H"+s+"V"+v+"H"+l*a:"M"+s+","+y+"V"+v:a?"M"+y+","+l*a+"V"+s+"H"+v+"V"+l*a:"M"+y+","+s+"H"+v),S.attr("opacity",1).attr("transform",(function(t){return d(b(t)+s)})),E.attr(u+"2",l*o),L.attr(u,l*m).text(p),x.filter(de).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),x.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),h):i&&i.slice()},h.tickFormat=function(t){return arguments.length?(r=t,h):r},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(c=+t,h):c},h.offset=function(t){return arguments.length?(s=+t,h):s},h}function fe(t){return he(1,t)}function pe(t){return he(2,t)}function me(t){return he(3,t)}function ge(t){return he(4,t)}var ye={value:()=>{}};function ve(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new be(i)}function be(t){this._=t}function xe(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function _e(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function Se(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=ye,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}be.prototype=ve.prototype={constructor:be,on:function(t,e){var n,i=this._,r=xe(t+"",i),o=-1,a=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(n=(t=r[o]).type)i[n]=Se(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Se(i[n],t.name,null);return this}for(;++o<a;)if((n=(t=r[o]).type)&&(n=_e(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new be(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(i=this._[t]).length;o<n;++o)i[o].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};var we=ve;function Ae(){}var Ee=function(t){return null==t?Ae:function(){return this.querySelector(t)}};function Le(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function ke(){return[]}var Ce=function(t){return null==t?ke:function(){return this.querySelectorAll(t)}};var Te=function(t){return function(){return this.matches(t)}};function Me(t){return function(e){return e.matches(t)}}var qe=Array.prototype.find;function Ie(){return this.firstElementChild}var Oe=Array.prototype.filter;function Pe(){return Array.from(this.children)}var Ne=function(t){return new Array(t.length)};function De(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}De.prototype={constructor:De,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Be=function(t){return function(){return t}};function je(t,e,n,i,r,o){for(var a,c=0,s=e.length,l=o.length;c<l;++c)(a=e[c])?(a.__data__=o[c],i[c]=a):n[c]=new De(t,o[c]);for(;c<s;++c)(a=e[c])&&(r[c]=a)}function Re(t,e,n,i,r,o,a){var c,s,l,u=new Map,d=e.length,h=o.length,f=new Array(d);for(c=0;c<d;++c)(s=e[c])&&(f[c]=l=a.call(s,s.__data__,c,e)+"",u.has(l)?r[c]=s:u.set(l,s));for(c=0;c<h;++c)l=a.call(t,o[c],c,o)+"",(s=u.get(l))?(i[c]=s,s.__data__=o[c],u.delete(l)):n[c]=new De(t,o[c]);for(c=0;c<d;++c)(s=e[c])&&u.get(f[c])===s&&(r[c]=s)}function He(t){return t.__data__}function ze(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Fe(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var Ge="http://www.w3.org/1999/xhtml",We={svg:"http://www.w3.org/2000/svg",xhtml:Ge,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ue=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),We.hasOwnProperty(e)?{space:We[e],local:t}:t};function Ye(t){return function(){this.removeAttribute(t)}}function Ve(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Xe(t,e){return function(){this.setAttribute(t,e)}}function $e(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ke(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Je(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Ze=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Qe(t){return function(){this.style.removeProperty(t)}}function tn(t,e,n){return function(){this.style.setProperty(t,e,n)}}function en(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function nn(t,e){return t.style.getPropertyValue(e)||Ze(t).getComputedStyle(t,null).getPropertyValue(e)}function rn(t){return function(){delete this[t]}}function on(t,e){return function(){this[t]=e}}function an(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function cn(t){return t.trim().split(/^|\s+/)}function sn(t){return t.classList||new ln(t)}function ln(t){this._node=t,this._names=cn(t.getAttribute("class")||"")}function un(t,e){for(var n=sn(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function dn(t,e){for(var n=sn(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function hn(t){return function(){un(this,t)}}function fn(t){return function(){dn(this,t)}}function pn(t,e){return function(){(e.apply(this,arguments)?un:dn)(this,t)}}ln.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function mn(){this.textContent=""}function gn(t){return function(){this.textContent=t}}function yn(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function vn(){this.innerHTML=""}function bn(t){return function(){this.innerHTML=t}}function xn(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function _n(){this.nextSibling&&this.parentNode.appendChild(this)}function Sn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ge&&e.documentElement.namespaceURI===Ge?e.createElement(t):e.createElementNS(n,t)}}function An(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var En=function(t){var e=Ue(t);return(e.local?An:wn)(e)};function Ln(){return null}function kn(){var t=this.parentNode;t&&t.removeChild(this)}function Cn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Tn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Mn(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function qn(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,o=e.length;i<o;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function In(t,e,n){return function(){var i,r=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var a=0,c=r.length;a<c;++a)if((i=r[a]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),void(i.value=e);this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function On(t,e,n){var i=Ze(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dis
vendor: 4,192 bytes, line 1
1patchEvent(r)}function Pn(t,e){return function(){return On(this,t,e)}}function Nn(t,e){return function(){return On(this,t,e.apply(this,arguments))}}var Dn=[null];function Bn(t,e){this._groups=t,this._parents=e}function jn(){return new Bn([[document.documentElement]],Dn)}Bn.prototype=jn.prototype={constructor:Bn,select:function(t){"function"!=typeof t&&(t=Ee(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a,c=e[r],s=c.length,l=i[r]=new Array(s),u=0;u<s;++u)(o=c[u])&&(a=t.call(o,o.__data__,u,c))&&("__data__"in o&&(a.__data__=o.__data__),l[u]=a);return new Bn(i,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return Le(t.apply(this,arguments))}}(t):Ce(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var a,c=e[o],s=c.length,l=0;l<s;++l)(a=c[l])&&(i.push(t.call(a,a.__data__,l,c)),r.push(a));return new Bn(i,r)},selectChild:function(t){return this.select(null==t?Ie:function(t){return function(){return qe.call(this.children,t)}}("function"==typeof t?t:Me(t)))},selectChildren:function(t){return this.selectAll(null==t?Pe:function(t){return function(){return Oe.call(this.children,t)}}("function"==typeof t?t:Me(t)))},filter:function(t){"function"!=typeof t&&(t=Te(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a=e[r],c=a.length,s=i[r]=[],l=0;l<c;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new Bn(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,He);var n=e?Re:je,i=this._parents,r=this._groups;"function"!=typeof t&&(t=Be(t));for(var o=r.length,a=new Array(o),c=new Array(o),s=new Array(o),l=0;l<o;++l){var u=i[l],d=r[l],h=d.length,f=ze(t.call(u,u&&u.__data__,l,i)),p=f.length,m=c[l]=new Array(p),g=a[l]=new Array(p),y=s[l]=new Array(h);n(u,d,m,g,y,f,e);for(var v,b,x=0,_=0;x<p;++x)if(v=m[x]){for(x>=_&&(_=x+1);!(b=g[_])&&++_<p;);v._next=b||null}}return(a=new Bn(a,i))._enter=c,a._exit=s,a},enter:function(){return new Bn(this._enter||this._groups.map(Ne),this._parents)},exit:function(){return new Bn(this._exit||this._groups.map(Ne),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,o=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==n?o.remove():n(o),i&&r?i.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,o=i.length,a=Math.min(r,o),c=new Array(r),s=0;s<a;++s)for(var l,u=n[s],d=i[s],h=u.length,f=c[s]=new Array(h),p=0;p<h;++p)(l=u[p]||d[p])&&(f[p]=l);for(;s<r;++s)c[s]=n[s];return new Bn(c,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],o=r.length-1,a=r[o];--o>=0;)(i=r[o])&&(a&&4^i.compareDocumentPosition(a)&&a.parentNode.insertBefore(i,a),a=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Fe);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var a,c=n[o],s=c.length,l=r[o]=new Array(s),u=0;u<s;++u)(a=c[u])&&(l[u]=a);l.sort(e)}return new Bn(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var a=i[r];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,o=e[n],a=0,c=o.length;a<c;++a)(r=o[a])&&t.call(r,r.__data__,a,o);return this},attr:function(t,e){var n=Ue(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?Ve:Ye:"function"==typeof e?n.local?Je:Ke:n.local?$e:Xe)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Qe:"function"==typeof e?en:tn)(t,e,null==n?"":n)):nn(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?rn:"function"==typeof e?an:on)(t,e)):this.node()[t]},classed:function(t,e){var n=cn(t+"");
vendor: 5,818 bytes, line 1
1if(arguments.length<2){for(var i=sn(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?pn:e?hn:fn)(n,e))},text:function(t){return arguments.length?this.each(null==t?mn:("function"==typeof t?yn:gn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?vn:("function"==typeof t?xn:bn)(t)):this.node().innerHTML},raise:function(){return this.each(_n)},lower:function(){return this.each(Sn)},append:function(t){var e="function"==typeof t?t:En(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:En(t),i=null==e?Ln:"function"==typeof e?e:Ee(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(kn)},clone:function(t){return this.select(t?Tn:Cn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,o=Mn(t+""),a=o.length;if(!(arguments.length<2)){for(c=e?In:qn,i=0;i<a;++i)this.each(c(o[i],e,n));return this}var c=this.node().__on;if(c)for(var s,l=0,u=c.length;l<u;++l)for(i=0,s=c[l];i<a;++i)if((r=o[i]).type===s.type&&r.name===s.name)return s.value},dispatch:function(t,e){return this.each(("function"==typeof e?Nn:Pn)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],o=0,a=r.length;o<a;++o)(i=r[o])&&(yield i)}};var Rn=jn,Hn=function(t){return"string"==typeof t?new Bn([[document.querySelector(t)]],[document.documentElement]):new Bn([[t]],Dn)};const zn={passive:!1},Fn={capture:!0,passive:!1};function Gn(t){t.stopImmediatePropagation()}var Wn=function(t){t.preventDefault(),t.stopImmediatePropagation()},Un=function(t){var e=t.document.documentElement,n=Hn(t).on("dragstart.drag",Wn,Fn);"onselectstart"in e?n.on("selectstart.drag",Wn,Fn):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function Yn(t,e){var n=t.document.documentElement,i=Hn(t).on("dragstart.drag",null);e&&(i.on("click.drag",Wn,Fn),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Vn=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Xn(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function $n(){}var Kn="\\s*([+-]?\\d+)\\s*",Jn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qn=/^#([0-9a-f]{3,8})$/,ti=new RegExp(`^rgb\\(${Kn},${Kn},${Kn}\\)$`),ei=new RegExp(`^rgb\\(${Zn},${Zn},${Zn}\\)$`),ni=new RegExp(`^rgba\\(${Kn},${Kn},${Kn},${Jn}\\)$`),ii=new RegExp(`^rgba\\(${Zn},${Zn},${Zn},${Jn}\\)$`),ri=new RegExp(`^hsl\\(${Jn},${Zn},${Zn}\\)$`),oi=new RegExp(`^hsla\\(${Jn},${Zn},${Zn},${Jn}\\)$`),ai={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ci(){return this.rgb().formatHex()}function si(){return this.rgb().formatRgb()}function li(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Qn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ui(e):3===n?
vendor: 9,424 bytes, line 1
1new pi(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?di(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?di(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ti.exec(t))?new pi(e[1],e[2],e[3],1):(e=ei.exec(t))?new pi(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ni.exec(t))?di(e[1],e[2],e[3],e[4]):(e=ii.exec(t))?di(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ri.exec(t))?xi(e[1],e[2]/100,e[3]/100,1):(e=oi.exec(t))?xi(e[1],e[2]/100,e[3]/100,e[4]):ai.hasOwnProperty(t)?ui(ai[t]):"transparent"===t?new pi(NaN,NaN,NaN,0):null}function ui(t){return new pi(t>>16&255,t>>8&255,255&t,1)}function di(t,e,n,i){return i<=0&&(t=e=n=NaN),new pi(t,e,n,i)}function hi(t){return t instanceof $n||(t=li(t)),t?new pi((t=t.rgb()).r,t.g,t.b,t.opacity):new pi}function fi(t,e,n,i){return 1===arguments.length?hi(t):new pi(t,e,n,null==i?1:i)}function pi(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function mi(){return`#${bi(this.r)}${bi(this.g)}${bi(this.b)}`}function gi(){const t=yi(this.opacity);return`${1===t?"rgb(":"rgba("}${vi(this.r)}, ${vi(this.g)}, ${vi(this.b)}${1===t?")":`, ${t})`}`}function yi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function vi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function bi(t){return((t=vi(t))<16?"0":"")+t.toString(16)}function xi(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new wi(t,e,n,i)}function _i(t){if(t instanceof wi)return new wi(t.h,t.s,t.l,t.opacity);if(t instanceof $n||(t=li(t)),!t)return new wi;if(t instanceof wi)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),a=NaN,c=o-r,s=(o+r)/2;return c?(a=e===o?(n-i)/c+6*(n<i):n===o?(i-e)/c+2:(e-n)/c+4,c/=s<.5?o+r:2-o-r,a*=60):c=s>0&&s<1?0:a,new wi(a,c,s,t.opacity)}function Si(t,e,n,i){return 1===arguments.length?_i(t):new wi(t,e,n,null==i?1:i)}function wi(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Ai(t){return(t=(t||0)%360)<0?t+360:t}function Ei(t){return Math.max(0,Math.min(1,t||0))}function Li(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function ki(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}Vn($n,li,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ci,formatHex:ci,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _i(this).formatHsl()},formatRgb:si,toString:si}),Vn(pi,fi,Xn($n,{brighter(t){return t=null==t?1/.7:Math.pow(1/.7,t),new pi(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new pi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new pi(vi(this.r),vi(this.g),vi(this.b),yi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mi,formatHex:mi,formatHex8:function(){return`#${bi(this.r)}${bi(this.g)}${bi(this.b)}${bi(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:gi,toString:gi})),Vn(wi,Si,Xn($n,{brighter(t){return t=null==t?1/.7:Math.pow(1/.7,t),new wi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new wi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new pi(Li(t>=240?t-240:t+120,r,i),Li(t,r,i),Li(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new wi(Ai(this.h),Ei(this.s),Ei(this.l),yi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=yi(this.opacity);return`${1===t?"hsl(":"hsla("}${Ai(this.h)}, ${100*Ei(this.s)}%, ${100*Ei(this.l)}%${1===t?")":`, ${t})`}`}}));var Ci=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],o=t[i+1],a=i>0?t[i-1]:2*r-o,c=i<e-1?t[i+2]:2*o-r;return ki((n-i/e)*e,a,r,o,c)}},Ti=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],o=t[i%e],a=t[(i+1)%e],c=t[(i+2)%e];return ki((n-i/e)*e,r,o,a,c)}},Mi=t=>()=>t;function qi(t,e){return function(n){return t+n*e}}function Ii(t,e){var n=e-t;return n?qi(t,n>180||n<-180?n-360*Math.round(n/360):n):Mi(isNaN(t)?e:t)}function Oi(t){return 1==(t=+t)?Pi:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Mi(isNaN(e)?n:e)}}function Pi(t,e){var n=e-t;return n?qi(t,n):Mi(isNaN(t)?e:t)}var Ni=function t(e){var n=Oi(e);function i(t,e){var i=n((t=fi(t)).r,(e=fi(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=Pi(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function Di(t){return function(e){var n,i,r=e.length,o=new Array(r),a=new Array(r),c=new Array(r);for(n=0;n<r;++n)i=fi(e[n]),o[n]=i.r||0,a[n]=i.g||0,c[n]=i.b||0;return o=t(o),a=t(a),c=t(c),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=c(t),i+""}}}var Bi=Di(Ci),ji=Di(Ti),Ri=function(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(o){for(n=0;n<i;++n)r[n]=t[n]*(1-o)+e[n]*o;return r}};function Hi(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}var zi=function(t,e){return(Hi(e)?Ri:Fi)(t,e)};function Fi(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,o=new Array(r),a=new Array(i);for(n=0;n<r;++n)o[n]=Ji(t[n],e[n]);for(;n<i;++n)a[n]=e[n];return function(t){for(n=0;n<r;++n)a[n]=o[n](t);return a}}var Gi=function(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}},Wi=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Ui=function(t,e){var n,i={},r={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Ji(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}},Yi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vi=new RegExp(Yi.source,"g");var Xi,$i,Ki=function(t,e){var n,i,r,o=Yi.lastIndex=Vi.lastIndex=0,a=-1,c=[],s=[];for(t+="",e+="";(n=Yi.exec(t))&&(i=Vi.exec(e));)(r=i.index)>o&&(r=e.slice(o,r),c[a]?c[a]+=r:c[++a]=r),(n=n[0])===(i=i[0])?c[a]?c[a]+=i:c[++a]=i:(c[++a]=null,s.push({i:a,x:Wi(n,i)})),o=Vi.lastIndex;return o<e.length&&(r=e.slice(o),c[a]?c[a]+=r:c[++a]=r),c.length<2?s[0]?function(t){return function(e){return t(e)+""}}(s[0].x):function(t){return function(){return t}}(e):(e=s.length,function(t){for(var n,i=0;i<e;++i)c[(n=s[i]).i]=n.x(t);return c.join("")})},Ji=function(t,e){var n,i=typeof e;return null==e||"boolean"===i?Mi(e):("number"===i?Wi:"string"===i?(n=li(e))?(e=n,Ni):Ki:e instanceof li?Ni:e instanceof Date?Gi:Hi(e)?Ri:Array.isArray(e)?Fi:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ui:Wi)(t,e)},Zi=function(t){let e;for(;e=t.sourceEvent;)t=e;return t},Qi=function(t,e){if(t=Zi(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]}}return[t.pageX,t.pageY]},tr=0,er=0,nr=0,ir=0,rr=0,or=0,ar="object"==typeof performance&&performance.now?performance:Date,cr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function sr(){return rr||(cr(lr),rr=ar.now()+or)}function lr(){rr=0}function ur(){this._call=this._time=this._next=null}function dr(t,e,n){var i=new ur;return i.restart(t,e,n),i}function hr(){sr(),++tr;for(var t,e=Xi;e;)(t=rr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tr}function fr(){rr=(ir=ar.now())+or,tr=er=0;try{hr()}finally{tr=0,function(){var t,e,n=Xi,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Xi=e);$i=t,mr(i)}(),rr=0}}function pr(){var t=ar.now(),e=t-ir;e>1e3&&(or-=e,ir=t)}function mr(t){tr||(er&&(er=clearTimeout(er)),t-rr>24?(t<1/0&&(er=setTimeout(fr,t-ar.now()-or)),nr&&(nr=clearInterval(nr))):(nr||(ir=ar.now(),nr=setInterval(pr,1e3)),tr=1,cr(fr)))}ur.prototype=dr.prototype={constructor:ur,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?sr():+n)+(null==e?0:+e),this._next||$i===this||($i?$i._next=this:Xi=this,$i=this),this._call=t,this._time=n,mr()},stop:function(){this._call&&(this._call=null,this._time=1/0,mr())}};var gr=function(t,e,n){var i=new ur;return e=null==e?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,n),i},yr=we("start","end","cancel","interrupt"),vr=[],br=function(t,e,n,i,r,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function o(s){var l,u,d,h;if(1!==n.state)return c();for(l in r)if((h=r[l]).name===n.name){if(3===h.state)return gr(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete r[l]):+l<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete r[l])}if(gr((function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(s))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(d=n.tween.length),l=0,u=-1;l<d;++l)(h=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(i[
vendor: 5,223 bytes, line 1
1++u]=h);i.length=u+1}}function a(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(c),n.state=5,1),o=-1,a=i.length;++o<a;)i[o].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=dr((function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:i,group:r,on:yr,tween:vr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function xr(t,e){var n=Sr(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function _r(t,e){var n=Sr(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Sr(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var wr,Ar=function(t,e){var n,i,r,o=t.__transition,a=!0;if(o){for(r in e=null==e?null:e+"",o)(n=o[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[r]):a=!1;a&&delete t.__transition}},Er=180/Math.PI,Lr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},kr=function(t,e,n,i,r,o){var a,c,s;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(s=t*n+e*i)&&(n-=t*s,i-=e*s),(c=Math.sqrt(n*n+i*i))&&(n/=c,i/=c,s/=c),t*i<e*n&&(t=-t,e=-e,s=-s,a=-a),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*Er,skewX:Math.atan(s)*Er,scaleX:a,scaleY:c}};function Cr(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(o,a){var c=[],s=[];return o=t(o),a=t(a),function(t,i,r,o,a,c){if(t!==r||i!==o){var s=a.push("translate(",null,e,null,n);c.push({i:s-4,x:Wi(t,r)},{i:s-2,x:Wi(i,o)})}else(r||o)&&a.push("translate("+r+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,c,s),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Wi(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(o.rotate,a.rotate,c,s),function(t,e,n,o){t!==e?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Wi(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(o.skewX,a.skewX,c,s),function(t,e,n,i,o,a){if(t!==n||e!==i){var c=o.push(r(o)+"scale(",null,",",null,")");a.push({i:c-4,x:Wi(t,n)},{i:c-2,x:Wi(e,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,c,s),o=a=null,function(t){for(var e,n=-1,i=s.length;++n<i;)c[(e=s[n]).i]=e.x(t);return c.join("")}}}var Tr=Cr((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Lr:kr(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Mr=Cr((function(t){return null==t?Lr:(wr||(wr=document.createElementNS("http://www.w3.org/2000/svg","g")),wr.setAttribute("transform",t),(t=wr.transform.baseVal.consolidate())?(t=t.matrix,kr(t.a,t.b,t.c,t.d,t.e,t.f)):Lr)}),", ",")",")");function qr(t,e){var n,i;return function(){var r=_r(this,t),o=r.tween;if(o!==n)for(var a=0,c=(i=n=o).length;a<c;++a)if(i[a].name===e){(i=i.slice()).splice(a,1);break}r.tween=i}}function Ir(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=_r(this,t),a=o.tween;if(a!==i){r=(i=a).slice();for(var c={name:e,value:n},s=0,l=r.length;s<l;++s)if(r[s].name===e){r[s]=c;break}s===l&&r.push(c)}o.tween=r}}function Or(t,e,n){var i=t._id;return t.each((function(){var t=_r(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Sr(t,i).value[e]}}var Pr=function(t,e){var n;return("number"==typeof e?Wi:e instanceof li?Ni:(n=li(e))?(e=n,Ni):Ki)(t,e)};function Nr(t){return function(){this.removeAttribute(t)}}function Dr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Br(t,e,n){var i,r,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===i?r:r=e(i=a,n)}}function jr(t,e,n){var i,r,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===i?r:r=e(i=a,n)}}function Rr(t,e,n){var i,r,o;return function(){var a,c,s=n(this);if(null!=s)return(a=this.getAttribute(t))===(c=s+"")?null:a===i&&c===r?o:(r=c,o=e(i=a,s));this.removeAttribute(t)}}function Hr(t,e,n){var i,r,o;return function(){var a,c,s=n(this);if(null!=s)return(a=this.getAttributeNS(t.space,t.local))===(c=s+"")?null:a===i&&c===r?o:(r=c,o=e(i=a,s));this.removeAttributeNS(t.space,t.local)}}function zr(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Fr(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Gr(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Fr(t,r)),n}return r._value=e,r}function Wr(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&zr(t,r)),n}return r._value=e,r}function Ur(t,e){return function(){xr(this,t).delay=+e.apply(this,arguments)}}function Yr(t,e){return e=+e,function(){xr(this,t).delay=e}}function Vr(t,e){return function(){_r(this,t).duration=+e.apply(this,arguments)}}function Xr(t,e){return e=+e,function(){_r(this,t).duration=e}}function $r(t,e){if("function"!=typeof e)throw new Error;return function(){_r(this,t).ease=e}}function Kr(t,e,n){var i,r,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>
vendor: 5,720 bytes, line 1
1=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?xr:_r;return function(){var a=o(this,t),c=a.on;c!==i&&(r=(i=c).copy()).on(e,n),a.on=r}}var Jr=Rn.prototype.constructor;function Zr(t){return function(){this.style.removeProperty(t)}}function Qr(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function to(t,e,n){var i,r;function o(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&Qr(t,o,n)),i}return o._value=e,o}function eo(t){return function(e){this.textContent=t.call(this,e)}}function no(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&eo(i)),e}return i._value=t,i}var io=0;function ro(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function oo(t){return Rn().transition(t)}function ao(){return++io}var co=Rn.prototype;function so(t){return t*t*t}function lo(t){return--t*t*t+1}function uo(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}ro.prototype=oo.prototype={constructor:ro,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ee(t));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a<r;++a)for(var c,s,l=i[a],u=l.length,d=o[a]=new Array(u),h=0;h<u;++h)(c=l[h])&&(s=t.call(c,c.__data__,h,l))&&("__data__"in c&&(s.__data__=c.__data__),d[h]=s,br(d[h],e,n,h,d,Sr(c,n)));return new ro(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ce(t));for(var i=this._groups,r=i.length,o=[],a=[],c=0;c<r;++c)for(var s,l=i[c],u=l.length,d=0;d<u;++d)if(s=l[d]){for(var h,f=t.call(s,s.__data__,d,l),p=Sr(s,n),m=0,g=f.length;m<g;++m)(h=f[m])&&br(h,e,n,m,f,p);o.push(f),a.push(s)}return new ro(o,a,e,n)},selectChild:co.selectChild,selectChildren:co.selectChildren,filter:function(t){"function"!=typeof t&&(t=Te(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a=e[r],c=a.length,s=i[r]=[],l=0;l<c;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new ro(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),a=new Array(i),c=0;c<o;++c)for(var s,l=e[c],u=n[c],d=l.length,h=a[c]=new Array(d),f=0;f<d;++f)(s=l[f]||u[f])&&(h[f]=s);for(;c<i;++c)a[c]=e[c];return new ro(a,this._parents,this._name,this._id)},selection:function(){return new Jr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=ao(),i=this._groups,r=i.length,o=0;o<r;++o)for(var a,c=i[o],s=c.length,l=0;l<s;++l)if(a=c[l]){var u=Sr(a,e);br(a,t,n,l,c,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new ro(i,this._parents,t,n)},call:co.call,nodes:co.nodes,node:co.node,size:co.size,empty:co.empty,each:co.each,on:function(t,e){var n=this._id;return arguments.length<2?Sr(this.node(),n).on.on(t):this.each(Kr(n,t,e))},attr:function(t,e){var n=Ue(t),i="transform"===n?Mr:Pr;return this.attrTween(t,"function"==typeof e?(n.local?Hr:Rr)(n,i,Or(this,"attr."+t,e)):null==e?(n.local?Dr:Nr)(n):(n.local?jr:Br)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=Ue(t);return this.tween(n,(i.local?Gr:Wr)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Tr:Pr;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var o=nn(this,t),a=(this.style.removeProperty(t),nn(this,t));return o===a?null:o===n&&a===i?r:r=e(n=o,i=a)}}(t,i)).on("end.style."+t,Zr(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,o;return function(){var a=nn(this,t),c=n(this),s=c+"";return null==c&&(this.style.removeProperty(t),s=c=nn(this,t)),a===s?null:a===i&&s===r?o:(r=s,o=e(i=a,c))}}(t,i,Or(this,"style."+t,e))).each(function(t,e){var n,i,r,o,a="style."+e,c="end."+a;return function(){var s=_r(this,t),l=s.on,u=null==s.value[a]?o||(o=Zr(e)):void 0;l===n&&r===u||(i=(n=l).copy()).on(c,r=u),s.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,o=n+"";return function(){var a=nn(this,t);return a===o?null:a===i?r:r=e(i=a,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,to(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Or(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,no(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=Sr(this.node(),n).tween,o=0,a=r.length;o<a;++o)if((i=r[o]).name===t)return i.value;return null}return this.each((null==e?qr:Ir)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ur:Yr)(e,t)):Sr(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Vr:Xr)(e,t)):Sr(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each($r(e,t)):Sr(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;_r(this,t).ease=n}}(this._id,t))}
vendor: 9,391 bytes, line 1
1,end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(o,a){var c={value:a},s={value:function(){0==--r&&o()}};n.each((function(){var n=_r(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(c),e._.interrupt.push(c),e._.end.push(s)),n.on=e})),0===r&&o()}))},[Symbol.iterator]:co[Symbol.iterator]};var ho={time:null,delay:0,duration:250,ease:uo};function fo(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}Rn.prototype.interrupt=function(t){return this.each((function(){Ar(this,t)}))},Rn.prototype.transition=function(t){var e,n;t instanceof ro?(e=t._id,t=t._name):(e=ao(),(n=ho).time=sr(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var a,c=i[o],s=c.length,l=0;l<s;++l)(a=c[l])&&br(a,t,e,l,c,n||fo(a,e));return new ro(i,this._parents,t,e)};var po=[null],mo=function(t,e){var n,i,r=t.__transition;if(r)for(i in e=null==e?null:e+"",r)if((n=r[i]).state>1&&n.name===e)return new ro([[t]],po,e,+i);return null},go=t=>()=>t;function yo(t,{sourceEvent:e,target:n,selection:i,mode:r,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:i,enumerable:!0,configurable:!0},mode:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function vo(t){t.stopImmediatePropagation()}var bo=function(t){t.preventDefault(),t.stopImmediatePropagation()},xo={name:"drag"},_o={name:"space"},So={name:"handle"},wo={name:"center"};const{abs:Ao,max:Eo,min:Lo}=Math;function ko(t){return[+t[0],+t[1]]}function Co(t){return[ko(t[0]),ko(t[1])]}var To={name:"x",handles:["w","e"].map(Bo),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Mo={name:"y",handles:["n","s"].map(Bo),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},qo={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Bo),input:function(t){return null==t?null:Co(t)},output:function(t){return t}},Io={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Oo={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Po={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},No={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Do={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Bo(t){return{type:t}}function jo(t){return!t.ctrlKey&&!t.button}function Ro(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Ho(){return navigator.maxTouchPoints||"ontouchstart"in this}function zo(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Fo(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Go(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Wo(){return Vo(To)}function Uo(){return Vo(Mo)}var Yo=function(){return Vo(qo)};function Vo(t){var e,n=Ro,i=jo,r=Ho,o=!0,a=we("start","brush","end"),c=6;function s(e){var n=e.property("__brush",m).selectAll(".overlay").data([Bo("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Io.overlay).merge(n).each((function(){var t=zo(this).extent;Hn(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([Bo("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Io.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));i.exit().remove(),i.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return Io[t.type]})),e.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){var t=Hn(this),e=zo(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-c/2:e[0][0]-c/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-c/2:e[0][1]-c/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+c:c})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+c:c}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(t,e,n){var i=t.__brush.emitter;return!i||n&&i.clean?new d(t,e,n):i}function d(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function h(n){if((!e||n.touches)&&i.apply(this,arguments)){var r,a,c,s,d,h,f,p,m,g,y,v=this,b=n.target.__data__.type,x="selection"===(o&&n.metaKey?b="overlay":b)?xo:o&&n.altKey?wo:So,_=t===Mo?null:No[b],S=t===To?null:Do[b],w=zo(v),A=w.extent,E=w.selection,L=A[0][0],k=A[0][1],C=A[1][0],T=A[1][1],M=0,q=0,I=_&&S&&o&&n.shiftKey,O=Array.from(n.touches||[n],t=>{const e=t.identifier;return(t=Qi(t,v)).point0=t.slice(),t.identifier=e,t});Ar(v);var P=u(v,arguments,!0).beforestart();if("overlay"===b){E&&(m=!0);const e=[O[0],O[1]||O[0]];w.selection=E=[[r=t===Mo?L:Lo(e[0][0],e[1][0]),c=t===To?k:Lo(e[0][1],e[1][1])],[d=t===Mo?C:Eo(e[0][0],e[1][0]),f=t===To?T:Eo(e[0][1],e[1][1])]],O.length>1&&R(n)}else r=E[0][0],c=E[0][1],d=E[1][0],f=E[1][1];a=r,s=c,h=d,p=f;var N=Hn(v).attr("pointer-events","none"),D=N.selectAll(".overlay").attr("cursor",Io[b]);if(n.touches)P.moved=j,P.ended=H;else{var B=Hn(n.view).on("mousemove.brush",j,!0).on("mouseup.brush",H,!0);o&&B.on("keydown.brush",z,!0).on("keyup.brush",F,!0),Un(n.view)}l.call(v),P.start(n,x.name)}function j(t){for(const e of t.changedTouches||[t])for(const t of O)t.identifier===e.identifier&&(t.cur=Qi(e,v));if(I&&!g&&!y&&1===O.length){const t=O[0];Ao(t.cur[0]-t[0])>Ao(t.cur[1]-t[1])?y=!0:g=!0}for(const t of O)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);m=!0,bo(t),R(t)}function R(t){const e=O[0],n=e.point0;var i;switch(M=e[0]-n[0],q=e[1]-n[1],x){case _o:case xo:_&&(M=Eo(L-r,Lo(C-d,M)),a=r+M,h=d+M),S&&(q=Eo(k-c,Lo(T-f,q)),s=c+q,p=f+q);break;case So:O[1]?(_&&(a=Eo(L,Lo(C,O[0][0])),h=Eo(L,Lo(C,O[1][0])),_=1),S&&(s=Eo(k,Lo(T,O[0][1])),p=Eo(k,Lo(T,O[1][1])),S=1)):(_<0?(M=Eo(L-r,Lo(C-r,M)),a=r+M,h=d):_>0&&(M=Eo(L-d,Lo(C-d,M)),a=r,h=d+M),S<0?(q=Eo(k-c,Lo(T-c,q)),s=c+q,p=f):S>0&&(q=Eo(k-f,Lo(T-f,q)),s=c,p=f+q));break;case wo:_&&(a=Eo(L,Lo(C,r-M*_)),h=Eo(L,Lo(C,d+M*_))),S&&(s=Eo(k,Lo(T,c-q*S)),p=Eo(k,Lo(T,f+q*S)))}h<a&&(_*=-1,i=r,r=d,d=i,i=a,a=h,h=i,b in Oo&&D.attr("cursor",Io[b=Oo[b]])),p<s&&(S*=-1,i=c,c=f,f=i,i=s,s=p,p=i,b in Po&&D.attr("cursor",Io[b=Po[b]])),w.selection&&(E=w.selection),g&&(a=E[0][0],h=E[1][0]),y&&(s=E[0][1],p=E[1][1]),E[0][0]===a&&E[0][1]===s&&E[1][0]===h&&E[1][1]===p||(w.selection=[[a,s],[h,p]],l.call(v),P.brush(t,x.name))}function H(t){if(vo(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else Yn(t.view,m),B.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);N.attr("pointer-events","all"),D.attr("cursor",Io.overlay),w.selection&&(E=w.selection),Fo(E)&&(w.selection=null,l.call(v)),P.end(t,x.name)}function z(t){switch(t.keyCode){case 16:I=_&&S;break;case 18:x===So&&(_&&(d=h-M*_,r=a+M*_),S&&(f=p-q*S,c=s+q*S),x=wo,R(t));break;case 32:x!==So&&x!==wo||(_<0?d=h-M:_>0&&(r=a-M),S<0?f=p-q:S>0&&(c=s-q),x=_o,D.attr("cursor",Io.selection),R(t));break;default:return}bo(t)}function F(t){switch(t.keyCode){case 16:I&&(g=y=I=!1,R(t));break;case 18:x===wo&&(_<0?d=h:_>0&&(r=a),S<0?f=p:S>0&&(c=s),x=So,R(t));break;case 32:x===_o&&(t.altKey?(_&&(d=h-M*_,r=a+M*_),S&&(f=p-q*S,c=s+q*S),x=wo):(_<0?d=h:_>0&&(r=a),S<0?f=p:S>0&&(c=s),x=So),D.attr("cursor",Io[b]),R(t));break;default:return}bo(t)}}function f(t){u(this,arguments).moved(t)}function p(t){u(this,arguments).ended(t)}function m(){var e=this.__brush||{selection:null};return e.extent=Co(n.apply(this,arguments)),e.dim=t,e}return s.move=function(e,n,i){e.tween?e.on("start.brush",(function(t){u(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){u(this,arguments).end(t)})).tween("brush",(function(){var e=this,i=e.__brush,r=u(e,arguments),o=i.selection,a=t.input("function"==typeof n?n.apply(this,arguments):n,i.extent),c=Ji(o,a);function s(t){i.selection=1===t&&null===a?null:c(t),l.call(e),r.brush()}return null!==o&&null!==a?s:s(1)})):e.each((function(){var e=this,r=arguments,o=e.__brush,a=t.input("function"==typeof n?n.apply(e,r):n,o.extent),c=u(e,r).beforestart();Ar(e),o.selection=null===a?null:a,l.call(e),c.start(i).brush(i).end(i)}))},s.clear=function(t,e){s.move(t,null,e)},d.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit
vendor: 4,753 bytes, line 1
1("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,i){var r=Hn(this.that).datum();a.call(e,this.that,new yo(e,{sourceEvent:n,target:s,selection:t.output(this.state.selection),mode:i,dispatch:a}),r)}},s.extent=function(t){return arguments.length?(n="function"==typeof t?t:go(Co(t)),s):n},s.filter=function(t){return arguments.length?(i="function"==typeof t?t:go(!!t),s):i},s.touchable=function(t){return arguments.length?(r="function"==typeof t?t:go(!!t),s):r},s.handleSize=function(t){return arguments.length?(c=+t,s):c},s.keyModifiers=function(t){return arguments.length?(o=!!t,s):o},s.on=function(){var t=a.on.apply(a,arguments);return t===a?s:t},s}var Xo=Math.abs,$o=Math.cos,Ko=Math.sin,Jo=Math.PI,Zo=Jo/2,Qo=2*Jo,ta=Math.max;function ea(t,e){return Array.from({length:e-t},(e,n)=>t+n)}function na(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}var ia=function(){return aa(!1,!1)};function ra(){return aa(!1,!0)}function oa(){return aa(!0,!1)}function aa(t,e){var n=0,i=null,r=null,o=null;function a(a){var c,s=a.length,l=new Array(s),u=ea(0,s),d=new Array(s*s),h=new Array(s),f=0;a=Float64Array.from({length:s*s},e?(t,e)=>a[e%s][e/s|0]:(t,e)=>a[e/s|0][e%s]);for(let e=0;e<s;++e){let n=0;for(let i=0;i<s;++i)n+=a[e*s+i]+t*a[i*s+e];f+=l[e]=n}c=(f=ta(0,Qo-n*s)/f)?n:Qo/s;{let e=0;i&&u.sort((t,e)=>i(l[t],l[e]));for(const n of u){const i=e;if(t){const t=ea(1+~s,s).filter(t=>t<0?a[~t*s+n]:a[n*s+t]);r&&t.sort((t,e)=>r(t<0?-a[~t*s+n]:a[n*s+t],e<0?-a[~e*s+n]:a[n*s+e]));for(const i of t)if(i<0){(d[~i*s+n]||(d[~i*s+n]={source:null,target:null})).target={index:n,startAngle:e,endAngle:e+=a[~i*s+n]*f,value:a[~i*s+n]}}else{(d[n*s+i]||(d[n*s+i]={source:null,target:null})).source={index:n,startAngle:e,endAngle:e+=a[n*s+i]*f,value:a[n*s+i]}}h[n]={index:n,startAngle:i,endAngle:e,value:l[n]}}else{const t=ea(0,s).filter(t=>a[n*s+t]||a[t*s+n]);r&&t.sort((t,e)=>r(a[n*s+t],a[n*s+e]));for(const i of t){let t;if(n<i?(t=d[n*s+i]||(d[n*s+i]={source:null,target:null}),t.source={index:n,startAngle:e,endAngle:e+=a[n*s+i]*f,value:a[n*s+i]}):(t=d[i*s+n]||(d[i*s+n]={source:null,target:null}),t.target={index:n,startAngle:e,endAngle:e+=a[n*s+i]*f,value:a[n*s+i]},n===i&&(t.source=t.target)),t.source&&t.target&&t.source.value<t.target.value){const e=t.source;t.source=t.target,t.target=e}}h[n]={index:n,startAngle:i,endAngle:e,value:l[n]}}e+=c}}return(d=Object.values(d)).groups=h,o?d.sort(o):d}return a.padAngle=function(t){return arguments.length?(n=ta(0,t),a):n},a.sortGroups=function(t){return arguments.length?(i=t,a):i},a.sortSubgroups=function(t){return arguments.length?(r=t,a):r},a.sortChords=function(t){return arguments.length?(null==t?o=null:(o=na(t))._=t,a):o&&o._},a}const ca=Math.PI,sa=2*ca,la=sa-1e-6;function ua(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class da{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?ua:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error("invalid digits: "+t);if(e>15)return ua;const n=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,i){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,e,n,i,r,o){this._append`C${+t},${+e},${+n},${+i},${this._x1=+r},${this._y1=+o}`}arcTo(t,e,n,i,r){if(t=+t,e=+e,n=+n,i=+i,(r=+r)<0)throw new Error("negative radius: "+r);let o=this._x1,a=this._y1,c=n-t,s=i-e,l=o-t,u=a-e,d=l*l+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(d>1e-6)if(Math.abs(u*c-s*l)>1e-6&&r){let h=n-o,f=i-a,p=c*c+s*s,m=h*h+f*f,g=Math.sqrt(p),y=Math.sqrt(d),v=r*Math.tan((ca-Math.acos((p+d-m)/(2*g*y)))/2),b=v/y,x=v/g;Math.abs(b-1)>1e-6&&this._append`L${t+b*l},${e+b*u}`,this._append`A${r},${r},0,0,${+(u*h>l*f)},${this._x1=t+x*c},${this._y1=e+x*s}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,n,i,r,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error("negative radius: "+n);let a=n*Math.cos(i),c=n*Math.sin(i),s=t+a,l=e+c,u=1^o,d=o?i-r:r-i;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-l)>1e-6)&&this._append`L${s},${l}`,n&&(d<0&&(d=d%sa+sa),d>la?this._append`A${n},${n},0,1,${u},${t-a},${e-c}A${n},${n},0,1,${u},${this._x1=s},${this._y1=l}`:d>1e-6&&this._append`A${n},${n},0,${+(d>=ca)},${u},${this._x1=t+n*Math.cos(r)}
1,${this._y1=e+n*Math.sin(r)}`)}rect(t,e,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function ha(){return new da}function fa(t=3){return new da(+t)}ha.prototype=da.prototype;var pa=Array.prototype.slice,ma=function(t){return function(){return t}};function ga(t){return t.source}function ya(t){return t.target}function va(t){return t.radius}function ba(t){return t.startAngle}function xa(t){return t.endAngle}function _a(){return 0}function Sa(){return 10}function wa(t){var e=ga,n=ya,i=va,r=va,o=ba,a=xa,c=_a,s=null;function l(){var l,u=e.apply(this,arguments),d=n.apply(this,arguments),h=c.apply(this,arguments)/2,f=pa.call(arguments),p=+i.apply(this,(f[0]=u,f)),m=o.apply(this,f)-Zo,g=a.apply(this,f)-Zo,y=+r.apply(this,(f[0]=d,f)),v=o.apply(this,f)-Zo,b=a.apply(this,f)-Zo;if(s||(s=l=ha()),h>1e-12&&(Xo(g-m)>2*h+1e-12?g>m?(m+=h,g-=h):(m-=h,g+=h):m=g=(m+g)/2,Xo(b-v)>2*h+1e-12?b>v?(v+=h,b-=h):(v-=h,b+=h):v=b=(v+b)/2),s.moveTo(p*$o(m),p*Ko(m)),s.arc(0,0,p,m,g),m!==v||g!==b)if(t){var x=+t.apply(this,arguments),_=y-x,S=(v+b)/2;s.quadraticCurveTo(0,0,_*$o(v),_*Ko(v)),s.lineTo(y*$o(S),y*Ko(S)),s.lineTo(_*$o(b),_*Ko(b))}else s.quadraticCurveTo(0,0,y*$o(v),y*Ko(v)),s.arc(0,0,y,v,b);if(s.quadraticCurveTo(0,0,p*$o(m),p*Ko(m)),s.closePath(),l)return s=null,l+""||null}return t&&(l.headRadius=function(e){return arguments.length?(t="function"==typeof e?e:ma(+e),l):t}),l.radius=function(t){return arguments.length?(i=r="function"==typeof t?t:ma(+t),l):i},l.sourceRadius=function(t){return arguments.length?(i="function"==typeof t?t:ma(+t),l):i},l.targetRadius=function(t){return arguments.length?(r="function"==typeof t?t:ma(+t),l):r},l.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:ma(+t),l):o},l.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:ma(+t),l):a},l.padAngle=function(t){return arguments.length?(c="function"==typeof t?t:ma(+t),l):c},l.source=function(t){return arguments.length?(e=t,l):e},l.target=function(t){return arguments.length?(n=t,l):n},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}var Aa=function(){return wa()};function Ea(){return wa(Sa)}const La=Math.PI/180,ka=180/Math.PI;function Ca(t){if(t instanceof qa)return new qa(t.l,t.a,t.b,t.opacity);if(t instanceof Ra)return Ha(t);t instanceof pi||(t=hi(t));var e,n,i=Na(t.r),r=Na(t.g),o=Na(t.b),a=Ia((.2225045*i+.7168786*r+.0606169*o)/1);return i===r&&r===o?e=n=a:(e=Ia((.4360747*i+.3850649*r+.1430804*o)/.96422),n=Ia((.0139322*i+.0971045*r+.7141733*o)/.82521)),new qa(116*a-16,500*(e-a),200*(a-n),t.opacity)}function Ta(t,e){return new qa(t,0,0,null==e?1:e)}function Ma(t,e,n,i){return 1===arguments.length?Ca(t):new qa(t,e,n,null==i?1:i)}function qa(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}function Ia(t){return t>6/29*(6/29)*(6/29)?Math.pow(t,1/3):t/(6/29*3*(6/29))+4/29}function Oa(t){return t>6/29?t*t*t:6/29*3*(6/29)*(t-4/29)}
vendor: 4,801 bytes, line 1
1function Pa(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Na(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Da(t){if(t instanceof Ra)return new Ra(t.h,t.c,t.l,t.opacity);if(t instanceof qa||(t=Ca(t)),0===t.a&&0===t.b)return new Ra(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*ka;return new Ra(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Ba(t,e,n,i){return 1===arguments.length?Da(t):new Ra(n,e,t,null==i?1:i)}function ja(t,e,n,i){return 1===arguments.length?Da(t):new Ra(t,e,n,null==i?1:i)}function Ra(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}function Ha(t){if(isNaN(t.h))return new qa(t.l,0,0,t.opacity);var e=t.h*La;return new qa(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Vn(qa,Ma,Xn($n,{brighter(t){return new qa(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new qa(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new pi(Pa(3.1338561*(e=.96422*Oa(e))-1.6168667*(t=1*Oa(t))-.4906146*(n=.82521*Oa(n))),Pa(-.9787684*e+1.9161415*t+.033454*n),Pa(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Vn(Ra,ja,Xn($n,{brighter(t){return new Ra(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new Ra(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return Ha(this).rgb()}}));var za=-.29227,Fa=-1.7884503806,Ga=3.5172982438,Wa=-.6557636667999999;function Ua(t){if(t instanceof Va)return new Va(t.h,t.s,t.l,t.opacity);t instanceof pi||(t=hi(t));var e=t.r/255,n=t.g/255,i=t.b/255,r=(Wa*i+Fa*e-Ga*n)/(Wa+Fa-Ga),o=i-r,a=(1.97294*(n-r)-za*o)/-.90649,c=Math.sqrt(a*a+o*o)/(1.97294*r*(1-r)),s=c?Math.atan2(a,o)*ka-120:NaN;return new Va(s<0?s+360:s,c,r,t.opacity)}function Ya(t,e,n,i){return 1===arguments.length?Ua(t):new Va(t,e,n,null==i?1:i)}function Va(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}Vn(Va,Ya,Xn($n,{brighter(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Va(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new Va(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*La,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),i=Math.cos(t),r=Math.sin(t);return new pi(255*(e+n*(-.14861*i+1.78277*r)),255*(e+n*(za*i+-.90649*r)),255*(e+n*(1.97294*i)),this.opacity)}}));var Xa=Array.prototype.slice,$a=function(t,e){return t-e},Ka=t=>()=>t,Ja=function(t,e){for(var n,i=-1,r=e.length;++i<r;)if(n=Za(t,e[i]))return n;return 0};function Za(t,e){for(var n=e[0],i=e[1],r=-1,o=0,a=t.length,c=a-1;o<a;c=o++){var s=t[o],l=s[0],u=s[1],d=t[c],h=d[0],f=d[1];if(Qa(s,d,e))return 0;u>i!=f>i&&n<(h-l)*(i-u)/(f-u)+l&&(r=-r)}return r}function Qa(t,e,n){var i,r,o,a;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(r=t[i=+(t[0]===e[0])],o=n[i],a=e[i],r<=o&&o<=a||a<=o&&o<=r)}var tc=function(){},ec=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],nc=function(){var t=1,e=1,n=ft,i=c;function r(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort($a);else{const n=T(t,ic);for(e=lt(...ht(n[0],n[1],e),e);e[e.length-1]>=n[1];)e.pop();for(;e[1]<n[0];)e.shift()}return e.map(e=>o(t,e))}function o(n,r){const o=null==r?NaN:+r;if(isNaN(o))throw new Error("invalid value: "+r);var c=[],s=[];return function(n,i,r){var o,c,s,l,u,d,h=new Array,f=new Array;o=c=-1,l=rc(n[0],i),ec[l<<1].forEach(p);for(;++o<t-1;)s=l,l=rc(n[o+1],i),ec[s|l<<1].forEach(p);ec[l<<0].forEach(p);for(;++c<e-1;){for(o=-1,l=rc(n[c*t+t],i),u=rc(n[c*t],i),ec[l<<1|u<<2].forEach(p);++o<t-1;)s=l,l=rc(n[c*t+t+o+1],i),d=u,u=rc(n[c*t+o+1],i),ec[s|l<<1|u<<2|d<<3].forEach(p);ec[l|u<<3].forEach(p)}o=-1,u=n[c*t]>=i,ec[u<<2].forEach(p);for(;++o<t-1;)d=u,u=rc(n[c*t+o+1],i),ec[u<<2|d<<3].forEach(p);function p(t){var e,n,i=[t[0][0]+o,t[0][1]+c],s=[t[1][0]+o,t[1][1]+c],l=a(i),u=a(s);(e=f[l])?(n=h[u])?(delete f[e.end],delete h[n.start],e===n?(e.ring.push(s),r(e.ring)):h[e.start]=f[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete f[e.end],e.ring.push(s),f[e.end=u]=e):(e=h[u])?(n=f[l])?(delete h[e.start],delete f[n.end],e===n?(e.ring.push(s),r(e.ring)):h[n.start]=f[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete h[e.start],e.ring.unshift(i),h[e.start=l]=e):h[l]=f[u]={start:l,end:u,ring:[i,s]}}ec[u<<3].forEach(p)}(n,o,(function(t){i(t,n,o),function(t){for(var e=0,n=t.length,i=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e<n;)i+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return i}(t)>0?c.push([t]):s.push(t)}
vendor: 5,341 bytes, line 1
1)),s.forEach((function(t){for(var e,n=0,i=c.length;n<i;++n)if(-1!==Ja((e=c[n])[0],t))return void e.push(t)})),{type:"MultiPolygon",value:r,coordinates:c}}function a(e){return 2*e[0]+e[1]*(t+1)*4}function c(n,i,r){n.forEach((function(n){var o=n[0],a=n[1],c=0|o,s=0|a,l=oc(i[s*t+c]);o>0&&o<t&&c===o&&(n[0]=ac(o,oc(i[s*t+c-1]),l,r)),a>0&&a<e&&s===a&&(n[1]=ac(a,oc(i[(s-1)*t+c]),l,r))}))}return r.contour=o,r.size=function(n){if(!arguments.length)return[t,e];var i=Math.floor(n[0]),o=Math.floor(n[1]);if(!(i>=0&&o>=0))throw new Error("invalid size");return t=i,e=o,r},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Ka(Xa.call(t)):Ka(t),r):n},r.smooth=function(t){return arguments.length?(i=t?c:tc,r):i===c},r};function ic(t){return isFinite(t)?t:NaN}function rc(t,e){return null!=t&&+t>=e}function oc(t){return null==t||isNaN(t=+t)?-1/0:t}function ac(t,e,n,i){const r=i-e,o=n-e,a=isFinite(r)||isFinite(o)?r/o:Math.sign(r)/Math.sign(o);return isNaN(a)?t:t+a-.5}function cc(t){return t[0]}function sc(t){return t[1]}function lc(){return 1}var uc=function(){var t=cc,e=sc,n=lc,i=960,r=500,o=20,a=2,c=3*o,s=i+2*c>>a,l=r+2*c>>a,u=Ka(20);function d(i){var r=new Float32Array(s*l),u=Math.pow(2,-a),d=-1;for(const o of i){var h=(t(o,++d,i)+c)*u,f=(e(o,d,i)+c)*u,p=+n(o,d,i);if(p&&h>=0&&h<s&&f>=0&&f<l){var g=Math.floor(h),y=Math.floor(f),v=h-g-.5,b=f-y-.5;r[g+y*s]+=(1-v)*(1-b)*p,r[g+1+y*s]+=v*(1-b)*p,r[g+1+(y+1)*s]+=v*b*p,r[g+(y+1)*s]+=(1-v)*b*p}}return m({data:r,width:s,height:l},o*u),r}function h(t){var e=d(t),n=u(e),i=Math.pow(2,2*a);return Array.isArray(n)||(n=lt(Number.MIN_VALUE,mt(e)/i,n)),nc().size([s,l]).thresholds(n.map(t=>t*i))(e).map((t,e)=>(t.value=+n[e],f(t)))}function f(t){return t.coordinates.forEach(p),t}function p(t){t.forEach(g)}function g(t){t.forEach(y)}function y(t){t[0]=t[0]*Math.pow(2,a)-c,t[1]=t[1]*Math.pow(2,a)-c}function v(){return s=i+2*(c=3*o)>>a,l=r+2*c>>a,h}return h.contours=function(t){var e=d(t),n=nc().size([s,l]),i=Math.pow(2,2*a),r=t=>{t=+t;var r=f(n.contour(e,t*i));return r.value=t,r};return Object.defineProperty(r,"max",{get:()=>mt(e)/i}),r},h.x=function(e){return arguments.length?(t="function"==typeof e?e:Ka(+e),h):t},h.y=function(t){return arguments.length?(e="function"==typeof t?t:Ka(+t),h):e},h.weight=function(t){return arguments.length?(n="function"==typeof t?t:Ka(+t),h):n},h.size=function(t){if(!arguments.length)return[i,r];var e=+t[0],n=+t[1];if(!(e>=0&&n>=0))throw new Error("invalid size");return i=e,r=n,v()},h.cellSize=function(t){if(!arguments.length)return 1<<a;if(!((t=+t)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),v()},h.thresholds=function(t){return arguments.length?(u="function"==typeof t?t:Array.isArray(t)?Ka(Xa.call(t)):Ka(t),h):u},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=(Math.sqrt(4*t*t+1)-1)/2,v()},h};const dc=134217729;function hc(t,e,n,i,r){let o,a,c,s,l=e[0],u=i[0],d=0,h=0;u>l==u>-l?(o=l,l=e[++d]):(o=u,u=i[++h]);let f=0;if(d<t&&h<n)for(u>l==u>-l?(a=l+o,c=o-(a-l),l=e[++d]):(a=u+o,c=o-(a-u),u=i[++h]),o=a,0!==c&&(r[f++]=c);d<t&&h<n;)u>l==u>-l?(a=o+l,s=a-o,c=o-(a-s)+(l-s),l=e[++d]):(a=o+u,s=a-o,c=o-(a-s)+(u-s),u=i[++h]),o=a,0!==c&&(r[f++]=c);for(;d<t;)a=o+l,s=a-o,c=o-(a-s)+(l-s),l=e[++d],o=a,0!==c&&(r[f++]=c);for(;h<n;)a=o+u,s=a-o,c=o-(a-s)+(u-s),u=i[++h],o=a,0!==c&&(r[f++]=c);return 0===o&&0!==f||(r[f++]=o),f}function fc(t,e){let n=e[0];for(let i=1;i<t;i++)n+=e[i];return n}function pc(t){return new Float64Array(t)}const mc=pc(4),gc=pc(8),yc=pc(12),vc=pc(16),bc=pc(4);function xc(t,e,n,i,r,o){const a=(e-o)*(n-r),c=(t-r)*(i-o),s=a-c,l=Math.abs(a+c);return Math.abs(s)>=33306690738754716e-32*l?s:-function(t,e,n,i,r,o,a){let c,s,l,u,d,h,f,p,m,g,y,v,b,x,_,S,w,A;const E=t-r,L=n-r,k=e-o,C=i-o;x=E*C,h=dc*E,f=h-(h-E),p=E-f,h=dc*C,m=h-(h-C),g=C-m,_=p*g-(x-f*m-p*m-f*g),S=k*L,h=dc*k,f=h-(h-k),p=k-f,h=dc*L,m=h-(h-L),g=L-m,w=p*g-(S-f*m-p*m-f*g),y=_-w,d=_-y,mc[0]=_-(y+d)+(d-w),v=x+y,d=v-x,b=x-(v-d)+(y-d),y=b-S,d=b-y,mc[1]=b-(y+d)+(d-S),A=v+y,d=A-v,mc[2]=v-(A-d)+(y-d),mc[3]=A;let T=fc(4,mc),M=22204460492503146e-32*a;if(T>=M||-T>=M)return T;if(d=t-E,c=t-(E+d)+(d-r),d=n-L,l=n-(L+d)+(d-r),d=e-k,s=e-(k+d)+(d-o),d=i-C,u=i-(C+d)+(d-o),0===c&&0===s&&0===l&&0===u)return T;if(M=11093356479670487e-47*a+33306690738754706e-32*Math.abs(T),T+=E*u+C*c-(k*l+L*s),T>=M||-T>=M)return T;x=c*C,h=dc*c,f=h-(h-c),p=c-f,h=dc*C,m=h-(h-C),g=C-m,_=p*g-(x-f*m-p*m-f*g),S=s*L,h=dc*s,f=h-(h-s),p=s-f,h=dc*L,m=h-(h-L),g=L-m,w=p*g-(S-f*m-p*m-f*g),y=_-w,d=_-y,bc[0]=_-(y+d)+(d-w),v=x+y,d=v-x,b=x-(v-d)+(y-d),y=b-S,d=b-y,bc[1]=b-(y+d)+(d-S),A=v+y,d=A-v,bc[2]=v-(A-d)+(y-d),bc[3]=A;const q=hc(4,mc,4,bc,gc);x=E*u,h=dc*E,f=h-(h-E),p=E-f,h=dc*u,m=h-(h-u),g=u-m,_=p*g-(x-f*m-p*m-f*g),S=k*l,h=dc*k,f=h-(h-k),p=k-f,h=dc*l,m=h-(h-l),g=l-m,w=p*g-(S-f*m-p*m-f*g),y=_-w,d=_-y,bc[0]=_-(y+d)+(d-w),v=x+y,d=v-x,b=x-(v-d)+(y-d),y=b-S,d=b-y,bc[1]=b-(y+d)+(d-S),A=v+y,d=A-v,bc[2]=v-(A-d)+(y-d),bc[3]=A;const I=hc(q,gc,4,bc,yc);x=c*u,h=dc*c,f=h-(h-c),p=c-f,h=dc*u,m=h-(h-u),g=u-m,_=p*g-(x-f*m-p*m-f*g),S=s*l,h=dc*s,f=h-(h-s),p=s-f,h=dc*l,m=h-(h-l),g=l-m,w=p*g-(S-f*m-p*m-f*g),y=_-w,d=_-y,bc[0]=_-(y+d)+(d-w),v=x+y,d=v-x,b=x-(v-d)+(y-d),y=b-S,d=b-y,bc[1]=b-(y+d)+(d-S),A=v+y,d=A-v,bc[2]=v-(A-d)+(y-d),bc[3]=A;const O=hc(I,yc,4,bc,vc);
vendor: 5,806 bytes, line 1
1return vc[O-1]}(t,e,n,i,r,o,l)}pc(4),pc(4),pc(4),pc(4),pc(4),pc(4),pc(4),pc(4),pc(4),pc(8),pc(8),pc(8),pc(4),pc(8),pc(8),pc(16),pc(12);pc(192),pc(192);pc(4),pc(4),pc(4),pc(4),pc(4),pc(4),pc(4),pc(4),pc(8),pc(8),pc(8),pc(8),pc(8),pc(8),pc(8),pc(8),pc(8),pc(4),pc(4),pc(4),pc(8),pc(16),pc(16),pc(16),pc(32),pc(32),pc(48),pc(64);pc(1152),pc(1152);pc(4),pc(4),pc(4),pc(4),pc(4),pc(4),pc(4),pc(4),pc(4),pc(4),pc(24),pc(24),pc(24),pc(24),pc(24),pc(24),pc(24),pc(24),pc(24),pc(24),pc(1152),pc(1152),pc(1152),pc(1152),pc(1152),pc(2304),pc(2304),pc(3456),pc(5760),pc(8),pc(8),pc(8),pc(16),pc(24),pc(48),pc(48),pc(96),pc(192),pc(384),pc(384),pc(384),pc(768);pc(96),pc(96),pc(96),pc(1152);const _c=Math.pow(2,-52),Sc=new Uint32Array(512);class wc{static from(t,e=Tc,n=Mc){const i=t.length,r=new Float64Array(2*i);for(let o=0;o<i;o++){const i=t[o];r[2*o]=e(i),r[2*o+1]=n(i)}return new wc(r)}constructor(t){const e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.trianglesLen=0,this._cx=0,this._cy=0,this._hullStart=0,this.hull=this._triangles,this.triangles=this._triangles,this.halfedges=this._halfedges,this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:i,_hullHash:r}=this,o=t.length>>1;let a=1/0,c=1/0,s=-1/0,l=-1/0;for(let e=0;e<o;e++){const n=t[2*e],i=t[2*e+1];n<a&&(a=n),i<c&&(c=i),n>s&&(s=n),i>l&&(l=i),this._ids[e]=e}const u=(a+s)/2,d=(c+l)/2;let h=0,f=0,p=0;for(let e=0,n=1/0;e<o;e++){const i=Ac(u,d,t[2*e],t[2*e+1]);i<n&&(h=e,n=i)}const m=t[2*h],g=t[2*h+1];for(let e=0,n=1/0;e<o;e++){if(e===h)continue;const i=Ac(m,g,t[2*e],t[2*e+1]);i<n&&i>0&&(f=e,n=i)}let y=t[2*f],v=t[2*f+1],b=1/0;for(let e=0;e<o;e++){if(e===h||e===f)continue;const n=Lc(m,g,y,v,t[2*e],t[2*e+1]);n<b&&(p=e,b=n)}let x=t[2*p],_=t[2*p+1];if(b===1/0){for(let e=0;e<o;e++)this._dists[e]=t[2*e]-t[0]||t[2*e+1]-t[1];kc(this._ids,this._dists,0,o-1);const e=new Uint32Array(o);let n=0;for(let t=0,i=-1/0;t<o;t++){const r=this._ids[t],o=this._dists[r];o>i&&(e[n++]=r,i=o)}return this.hull=e.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Int32Array(0))}if(xc(m,g,y,v,x,_)<0){const t=f,e=y,n=v;f=p,y=x,v=_,p=t,x=e,_=n}const S=function(t,e,n,i,r,o){const a=n-t,c=i-e,s=r-t,l=o-e,u=a*a+c*c,d=s*s+l*l,h=.5/(a*l-c*s);return{x:t+(l*u-c*d)*h,y:e+(a*d-s*u)*h}}(m,g,y,v,x,_);this._cx=S.x,this._cy=S.y;for(let e=0;e<o;e++)this._dists[e]=Ac(t[2*e],t[2*e+1],S.x,S.y);kc(this._ids,this._dists,0,o-1),this._hullStart=h;let w=3;n[h]=e[p]=f,n[f]=e[h]=p,n[p]=e[f]=h,i[h]=0,i[f]=1,i[p]=2,r.fill(-1),r[this._hashKey(m,g)]=h,r[this._hashKey(y,v)]=f,r[this._hashKey(x,_)]=p,this.trianglesLen=0,this._addTriangle(h,f,p,-1,-1,-1);for(let o=0,a=0,c=0;o<this._ids.length;o++){const s=this._ids[o],l=t[2*s],u=t[2*s+1];if(o>0&&Math.abs(l-a)<=_c&&Math.abs(u-c)<=_c)continue;if(a=l,c=u,s===h||s===f||s===p)continue;let d=0;for(let t=0,e=this._hashKey(l,u);t<this._hashSize&&(d=r[(e+t)%this._hashSize],-1===d||d===n[d]);t++);d=e[d];let m,g=d;for(;m=n[g],xc(l,u,t[2*g],t[2*g+1],t[2*m],t[2*m+1])>=0;)if(g=m,g===d){g=-1;break}if(-1===g)continue;let y=this._addTriangle(g,s,n[g],-1,-1,i[g]);i[s]=this._legalize(y+2),i[g]=y,w++;let v=n[g];for(;m=n[v],xc(l,u,t[2*v],t[2*v+1],t[2*m],t[2*m+1])<0;)y=this._addTriangle(v,s,m,i[s],-1,i[v]),i[s]=this._legalize(y+2),n[v]=v,w--,v=m;if(g===d)for(;m=e[g],xc(l,u,t[2*m],t[2*m+1],t[2*g],t[2*g+1])<0;)y=this._addTriangle(m,s,g,-1,i[g],i[m]),this._legalize(y+2),i[m]=y,n[g]=g,w--,g=m;this._hullStart=e[s]=g,n[g]=e[v]=s,n[s]=v,r[this._hashKey(l,u)]=s,r[this._hashKey(t[2*g],t[2*g+1])]=g}this.hull=new Uint32Array(w);for(let t=0,e=this._hullStart;t<w;t++)this.hull[t]=e,e=n[e];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(function(t,e){const n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:e,_halfedges:n,coords:i}=this;let r=0,o=0;for(;;){const a=n[t],c=t-t%3;if(o=c+(t+2)%3,-1===a){if(0===r)break;t=Sc[--r];continue}const s=a-a%3,l=c+(t+1)%3,u=s+(a+2)%3,d=e[o],h=e[t],f=e[l],p=e[u];if(Ec(i[2*d],i[2*d+1],i[2*h],i[2*h+1],i[2*f],i[2*f+1],i[2*p],i[2*p+1])){e[t]=p,e[a]=d;const i=n[u];if(-1===i){let e=this._hullStart;do{if(this._hullTri[e]===u){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,i),this._link(a,n[o]),this._link(o,u);const c=s+(a+1)%3;r<Sc.length&&(Sc[r++]=c)}else{if(0===r)break;t=Sc[--r]}}return o}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,i,r,o){const a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=n,this._link(a,i),this._link(a+1,r),this._link(a+2,o),this.trianglesLen+=3,a}}function Ac(t,e,n,i){const r=t-n,o=e-i;return r*r+o*o}function Ec(t,e,n,i,r,o,a,c){const s=t-a,l=e-c,u=n-a,d=i-c,h=r-a,f=o-c,p=u*u+d*d,m=h*h+f*f;return s*(d*m-p*f)-l*(u*m-p*h)+(s*s+l*l)*(u*f-d*h)<0}function Lc(t,e,n,i,r,o){const a=n-t,c=i-e,s=r-t,l=o-e,u=a*a+c*c,d=s*s+l*l,h=.5/(a*l-c*s),f=(l*u-c*d)*h,p=(a*d-s*u)*h;return f*f+p*p}function kc(t,e,n,i){if(i-n<=20)for(let r=n+1;r<=i;r++){const i=t[r],o=e[i];let a=r-1;for(;a>=n&&e[t[a]]>o;)t[a+1]=t[a--];t[a+1]=i}else{let r=n+1,o=i;Cc(t,n+i>>1,r),e[t[n]]>e[t[i]]&&Cc(t,n,i),e[t[r]]>e[t[i]]&&Cc(t,r,i),e[t[n]]>e[t[r]]&&Cc(t,n,r);const a=t[r],c=e[a];for(;;){do{r++}while(e[t[r]]<c);do{o--}while(e[t[o]]>c);if(o<r)break;Cc(t,r,o)}
vendor: 4,464 bytes, line 1
1t[n+1]=t[o],t[o]=a,i-r+1>=o-n?(kc(t,e,r,i),kc(t,e,n,o-1)):(kc(t,e,n,o-1),kc(t,e,r,i))}}function Cc(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function Tc(t){return t[0]}function Mc(t){return t[1]}class qc{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){const i=(t=+t)+(n=+n),r=e=+e;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${i},${r}`:(Math.abs(this._x1-i)>1e-6||Math.abs(this._y1-r)>1e-6)&&(this._+="L"+i+","+r),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=i},${this._y1=r}`)}rect(t,e,n,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+i}h${-n}Z`}value(){return this._||null}}class Ic{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class Oc{constructor(t,[e,n,i,r]=[0,0,960,500]){if(!((i=+i)>=(e=+e)&&(r=+r)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=i,this.xmin=e,this.ymax=r,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:i}=this;let r,o;const a=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let i,c,s=0,l=0,u=n.length;s<u;s+=3,l+=2){const u=2*n[s],d=2*n[s+1],h=2*n[s+2],f=t[u],p=t[u+1],m=t[d],g=t[d+1],y=t[h],v=t[h+1],b=m-f,x=g-p,_=y-f,S=v-p,w=2*(b*S-x*_);if(Math.abs(w)<1e-9){if(void 0===r){r=o=0;for(const n of e)r+=t[2*n],o+=t[2*n+1];r/=e.length,o/=e.length}const n=1e9*Math.sign((r-f)*S-(o-p)*_);i=(f+y)/2-n*S,c=(p+v)/2+n*_}else{const t=1/w,e=b*b+x*x,n=_*_+S*S;i=f+(S*e-x*n)*t,c=p+(b*n-_*e)*t}a[l]=i,a[l+1]=c}let c,s,l,u=e[e.length-1],d=4*u,h=t[2*u],f=t[2*u+1];i.fill(0);for(let n=0;n<e.length;++n)u=e[n],c=d,s=h,l=f,d=4*u,h=t[2*u],f=t[2*u+1],i[c+2]=i[d]=l-f,i[c+3]=i[d+1]=h-s}render(t){const e=null==t?t=new qc:void 0,{delaunay:{halfedges:n,inedges:i,hull:r},circumcenters:o,vectors:a}=this;if(r.length<=1)return null;for(let e=0,i=n.length;e<i;++e){const i=n[e];if(i<e)continue;const r=2*Math.floor(e/3),a=2*Math.floor(i/3),c=o[r],s=o[r+1],l=o[a],u=o[a+1];this._renderSegment(c,s,l,u,t)}let c,s=r[r.length-1];for(let e=0;e<r.length;++e){c=s,s=r[e];const n=2*Math.floor(i[s]/3),l=o[n],u=o[n+1],d=4*c,h=this._project(l,u,a[d+2],a[d+3]);h&&this._renderSegment(l,u,h[0],h[1],t)}return e&&e.value()}renderBounds(t){const e=null==t?t=new qc:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){const n=null==e?e=new qc:void 0,i=this._clip(t);if(null===i||!i.length)return;e.moveTo(i[0],i[1]);let r=i.length;for(;i[0]===i[r-2]&&i[1]===i[r-1]&&r>1;)r-=2;for(let t=2;t<r;t+=2)i[t]===i[t-2]&&i[t+1]===i[t-1]||e.lineTo(i[t],i[t+1]);return e.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){const t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){const e=new Ic;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,i,r){let o;const a=this._regioncode(t,e),c=this._regioncode(n,i);0===a&&0===c?(r.moveTo(t,e),r.lineTo(n,i)):(o=this._clipSegment(t,e,n,i,a,c))&&(r.moveTo(o[0],o[1]),r.lineTo(o[2],o[3]))}contains(t,e,n){return(e=+e)==e&&(n=+n)==n&&this.delaunay._step(t,e,n)===t}*neighbors(t){const e=this._clip(t);if(e)for(const n of this.delaunay.neighbors(t)){const t=this._clip(n);if(t)t:for(let i=0,r=e.length;i<r;i+=2)for(let o=0,a=t.length;o<a;o+=2)if(e[i]===t[o]&&e[i+1]===t[o+1]&&e[(i+2)%r]===t[(o+a-2)%a]&&e[(i+3)%r]===t[(o+a-1)%a]){yield n;break t}}}_cell(t){const{circumcenters:e,delaunay:{inedges:n,halfedges:i,triangles:r}}=this,o=n[t];if(-1===o)return null;const a=[];let c=o;do{const n=Math.floor(c/3);if(a.push(e[2*n],e[2*n+1]),c=c%3==2?c-2:c+1,r[c]!==t)break;c=i[c]}while(c!==o&&-1!==c);return a}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const e=this._cell(t);if(null===e)return null;const{vectors:n}=this,i=4*t;return this._simplify(n[i]||n[i+1]?this._clipInfinite(t,e,n[i],n[i+1],n[i+2],n[i+3]):this._clipFinite(t,e))}_clipFinite(t,e){const n=e.length;
vendor: 5,532 bytes, line 1
1let i,r,o,a,c=null,s=e[n-2],l=e[n-1],u=this._regioncode(s,l),d=0;for(let h=0;h<n;h+=2)if(i=s,r=l,s=e[h],l=e[h+1],o=u,u=this._regioncode(s,l),0===o&&0===u)a=d,d=0,c?c.push(s,l):c=[s,l];else{let e,n,h,f,p;if(0===o){if(null===(e=this._clipSegment(i,r,s,l,o,u)))continue;[n,h,f,p]=e}else{if(null===(e=this._clipSegment(s,l,i,r,u,o)))continue;[f,p,n,h]=e,a=d,d=this._edgecode(n,h),a&&d&&this._edge(t,a,d,c,c.length),c?c.push(n,h):c=[n,h]}a=d,d=this._edgecode(f,p),a&&d&&this._edge(t,a,d,c,c.length),c?c.push(f,p):c=[f,p]}if(c)a=d,d=this._edgecode(c[0],c[1]),a&&d&&this._edge(t,a,d,c,c.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return c}_clipSegment(t,e,n,i,r,o){const a=r<o;for(a&&([t,e,n,i,r,o]=[n,i,t,e,o,r]);;){if(0===r&&0===o)return a?[n,i,t,e]:[t,e,n,i];if(r&o)return null;let c,s,l=r||o;8&l?(c=t+(n-t)*(this.ymax-e)/(i-e),s=this.ymax):4&l?(c=t+(n-t)*(this.ymin-e)/(i-e),s=this.ymin):2&l?(s=e+(i-e)*(this.xmax-t)/(n-t),c=this.xmax):(s=e+(i-e)*(this.xmin-t)/(n-t),c=this.xmin),r?(t=c,e=s,r=this._regioncode(t,e)):(n=c,i=s,o=this._regioncode(n,i))}}_clipInfinite(t,e,n,i,r,o){let a,c=Array.from(e);if((a=this._project(c[0],c[1],n,i))&&c.unshift(a[0],a[1]),(a=this._project(c[c.length-2],c[c.length-1],r,o))&&c.push(a[0],a[1]),c=this._clipFinite(t,c))for(let e,n=0,i=c.length,r=this._edgecode(c[i-2],c[i-1]);n<i;n+=2)e=r,r=this._edgecode(c[n],c[n+1]),e&&r&&(n=this._edge(t,e,r,c,n),i=c.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(c=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return c}_edge(t,e,n,i,r){for(;e!==n;){let n,o;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,o=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,o=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,o=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,o=this.ymin}i[r]===n&&i[r+1]===o||!this.contains(t,n,o)||(i.splice(r,0,n,o),r+=2)}return r}_project(t,e,n,i){let r,o,a,c=1/0;if(i<0){if(e<=this.ymin)return null;(r=(this.ymin-e)/i)<c&&(a=this.ymin,o=t+(c=r)*n)}else if(i>0){if(e>=this.ymax)return null;(r=(this.ymax-e)/i)<c&&(a=this.ymax,o=t+(c=r)*n)}if(n>0){if(t>=this.xmax)return null;(r=(this.xmax-t)/n)<c&&(o=this.xmax,a=e+(c=r)*i)}else if(n<0){if(t<=this.xmin)return null;(r=(this.xmin-t)/n)<c&&(o=this.xmin,a=e+(c=r)*i)}return[o,a]}_edgecode(t,e){return(t===this.xmin?1:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let e=0;e<t.length;e+=2){const n=(e+2)%t.length,i=(e+4)%t.length;(t[e]===t[n]&&t[n]===t[i]||t[e+1]===t[n+1]&&t[n+1]===t[i+1])&&(t.splice(n,2),e-=2)}t.length||(t=null)}return t}}const Pc=2*Math.PI,Nc=Math.pow;function Dc(t){return t[0]}function Bc(t){return t[1]}function jc(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class Rc{static from(t,e=Dc,n=Bc,i){return new Rc("length"in t?function(t,e,n,i){const r=t.length,o=new Float64Array(2*r);for(let a=0;a<r;++a){const r=t[a];o[2*a]=e.call(i,r,a,t),o[2*a+1]=n.call(i,r,a,t)}return o}(t,e,n,i):Float64Array.from(function*(t,e,n,i){let r=0;for(const o of t)yield e.call(i,o,r,t),yield n.call(i,o,r,t),++r}(t,e,n,i)))}constructor(t){this._delaunator=new wc(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:e,coords:n}=t;for(let t=0;t<e.length;t+=3){const i=2*e[t],r=2*e[t+1],o=2*e[t+2];if((n[o]-n[i])*(n[r+1]-n[i+1])-(n[r]-n[i])*(n[o+1]-n[i+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:e.length/2},(t,e)=>e).sort((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]);const t=this.collinear[0],n=this.collinear[this.collinear.length-1],i=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],r=1e-8*Math.hypot(i[3]-i[1],i[2]-i[0]);for(let t=0,n=e.length/2;t<n;++t){const n=jc(e[2*t],e[2*t+1],r);e[2*t]=n[0],e[2*t+1]=n[1]}this._delaunator=new wc(e)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,r=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let t=0,e=n.length;t<e;++t){const e=r[t%3==2?t-2:t+1];-1!==n[t]&&-1!==o[e]||(o[e]=t)}for(let t=0,e=i.length;t<e;++t)a[i[t]]=t;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],o[i[0]]=1,2===i.length&&(o[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new Oc(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:i,halfedges:r,triangles:o,collinear:a}=this;if(a){const e=a.indexOf(t);return e>0&&(yield a[e-1]),void(e<a.length-1&&(yield a[e+1]))}const c=e[t];if(-1===c)return;let s=c,l=-1;do{if(yield l=o[s],s=s%3==2?s-2:s+1,o[s]!==t)return;if(s=r[s],-1===s){const e=n[(i[t]+1)%n.length];return void(e!==l&&(yield e))}}while(s!==c)}find(t,e,n=0){if((t=+t)!=t||(e=+e)!=e)return-1;const i=n;let r;for(;(r=this._step(n,t,e))>=0&&r!==n&&r!==i;)n=r;return r}_step(t,e,n){const{inedges:i,hull:r,_hullIndex:o,halfedges:a,triangles:c,points:s}=this;if(-1===i[t]||!s.length)return(t+1)%(s.length>>1);let l=t,u=Nc(e-s[2*t],2)+Nc(n-s[2*t+1],2);const d=i[t];let h=d;do{let i=c[h];const d=Nc(e-s[2*i],2)+Nc(n-s[2*i+1],2);
vendor: 4,668 bytes, line 1
1if(d<u&&(u=d,l=i),h=h%3==2?h-2:h+1,c[h]!==t)break;if(h=a[h],-1===h){if(h=r[(o[t]+1)%r.length],h!==i&&Nc(e-s[2*h],2)+Nc(n-s[2*h+1],2)<u)return h;break}}while(h!==d);return l}render(t){const e=null==t?t=new qc:void 0,{points:n,halfedges:i,triangles:r}=this;for(let e=0,o=i.length;e<o;++e){const o=i[e];if(o<e)continue;const a=2*r[e],c=2*r[o];t.moveTo(n[a],n[a+1]),t.lineTo(n[c],n[c+1])}return this.renderHull(t),e&&e.value()}renderPoints(t,e){void 0!==e||t&&"function"==typeof t.moveTo||(e=t,t=null),e=null==e?2:+e;const n=null==t?t=new qc:void 0,{points:i}=this;for(let n=0,r=i.length;n<r;n+=2){const r=i[n],o=i[n+1];t.moveTo(r+e,o),t.arc(r,o,e,0,Pc)}return n&&n.value()}renderHull(t){const e=null==t?t=new qc:void 0,{hull:n,points:i}=this,r=2*n[0],o=n.length;t.moveTo(i[r],i[r+1]);for(let e=1;e<o;++e){const r=2*n[e];t.lineTo(i[r],i[r+1])}return t.closePath(),e&&e.value()}hullPolygon(){const t=new Ic;return this.renderHull(t),t.value()}renderTriangle(t,e){const n=null==e?e=new qc:void 0,{points:i,triangles:r}=this,o=2*r[t*=3],a=2*r[t+1],c=2*r[t+2];return e.moveTo(i[o],i[o+1]),e.lineTo(i[a],i[a+1]),e.lineTo(i[c],i[c+1]),e.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){const e=new Ic;return this.renderTriangle(t,e),e.value()}}var Hc=t=>()=>t;function zc(t,{sourceEvent:e,subject:n,target:i,identifier:r,active:o,x:a,y:c,dx:s,dy:l,dispatch:u}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:c,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}function Fc(t){return!t.ctrlKey&&!t.button}function Gc(){return this.parentNode}function Wc(t,e){return null==e?{x:t.x,y:t.y}:e}function Uc(){return navigator.maxTouchPoints||"ontouchstart"in this}zc.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Yc=function(){var t,e,n,i,r=Fc,o=Gc,a=Wc,c=Uc,s={},l=we("start","drag","end"),u=0,d=0;function h(t){t.on("mousedown.drag",f).filter(c).on("touchstart.drag",g).on("touchmove.drag",y,zn).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(a,c){if(!i&&r.call(this,a,c)){var s=b(this,o.call(this,a,c),a,c,"mouse");s&&(Hn(a.view).on("mousemove.drag",p,Fn).on("mouseup.drag",m,Fn),Un(a.view),Gn(a),n=!1,t=a.clientX,e=a.clientY,s("start",a))}}function p(i){if(Wn(i),!n){var r=i.clientX-t,o=i.clientY-e;n=r*r+o*o>d}s.mouse("drag",i)}function m(t){Hn(t.view).on("mousemove.drag mouseup.drag",null),Yn(t.view,n),Wn(t),s.mouse("end",t)}function g(t,e){if(r.call(this,t,e)){var n,i,a=t.changedTouches,c=o.call(this,t,e),s=a.length;for(n=0;n<s;++n)(i=b(this,c,t,e,a[n].identifier,a[n]))&&(Gn(t),i("start",t,a[n]))}}function y(t){var e,n,i=t.changedTouches,r=i.length;for(e=0;e<r;++e)(n=s[i[e].identifier])&&(Wn(t),n("drag",t,i[e]))}function v(t){var e,n,r=t.changedTouches,o=r.length;for(i&&clearTimeout(i),i=setTimeout((function(){i=null}),500),e=0;e<o;++e)(n=s[r[e].identifier])&&(Gn(t),n("end",t,r[e]))}function b(t,e,n,i,r,o){var c,d,f,p=l.copy(),m=Qi(o||n,e);if(null!=(f=a.call(t,new zc("beforestart",{sourceEvent:n,target:h,identifier:r,active:u,x:m[0],y:m[1],dx:0,dy:0,dispatch:p}),i)))return c=f.x-m[0]||0,d=f.y-m[1]||0,function n(o,a,l){var g,y=m;switch(o){case"start":s[r]=n,g=u++;break;case"end":delete s[r],--u;case"drag":m=Qi(l||a,e),g=u}p.call(o,t,new zc(o,{sourceEvent:a,subject:f,target:h,identifier:r,active:g,x:m[0]+c,y:m[1]+d,dx:m[0]-y[0],dy:m[1]-y[1],dispatch:p}),i)}}return h.filter=function(t){return arguments.length?(r="function"==typeof t?t:Hc(!!t),h):r},h.container=function(t){return arguments.length?(o="function"==typeof t?t:Hc(t),h):o},h.subject=function(t){return arguments.length?(a="function"==typeof t?t:Hc(t),h):a},h.touchable=function(t){return arguments.length?(c="function"==typeof t?t:Hc(!!t),h):c},h.on=function(){var t=l.on.apply(l,arguments);return t===l?h:t},h.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,h):Math.sqrt(d)},h},Vc={},Xc={};function $c(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function Kc(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var i in t)i in e||n.push(e[i]=i)})),n}
1function Jc(t,e){var n=t+"",i=n.length;return i<e?new Array(e-i+1).join(0)+n:n}function Zc(t){var e,n=t.getUTCHours(),i=t.getUTCMinutes(),r=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+Jc(-e,6):e>9999?"+"+Jc(e,6):Jc(e,4))+"-"+Jc(t.getUTCMonth()+1,2)+"-"+Jc(t.getUTCDate(),2)+(o?"T"+Jc(n,2)+":"+Jc(i,2)+":"+Jc(r,2)+"."+Jc(o,3)+"Z":r?"T"+Jc(n,2)+":"+Jc(i,2)+":"+Jc(r,2)+"Z":i||n?"T"+Jc(n,2)+":"+Jc(i,2)+"Z":"")}var Qc=function(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function i(t,e){var i,r=[],o=t.length,a=0,c=0,s=o<=0,l=!1;function u(){if(s)return Xc;if(l)return l=!1,Vc;var e,i,r=a;if(34===t.charCodeAt(r)){for(;a++<o&&34!==t.charCodeAt(a)||34===t.charCodeAt(++a););return(e=a)>=o?s=!0:10===(i=t.charCodeAt(a++))?l=!0:13===i&&(l=!0,10===t.charCodeAt(a)&&++a),t.slice(r+1,e-1).replace(/""/g,'"')}for(;a<o;){if(10===(i=t.charCodeAt(e=a++)))l=!0;else if(13===i)l=!0,10===t.charCodeAt(a)&&++a;else if(i!==n)continue;return t.slice(r,e)}return s=!0,t.slice(r,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(i=u())!==Xc;){for(var d=[];i!==Vc&&i!==Xc;)d.push(i),i=u();e&&null==(d=e(d,c++))||r.push(d)}return r}function r(e,n){return e.map((function(e){return n.map((function(t){return a(e[t])})).join(t)}))}function o(e){return e.map(a).join(t)}function a(t){return null==t?"":t instanceof Date?Zc(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,r,o=i(t,(function(t,i){if(n)return n(t,i-1);r=t,n=e?function(t,e){var n=$c(t);return function(i,r){return e(n(i),r,t)}}(t,e):$c(t)}));return o.columns=r||[],o},parseRows:i,format:function(e,n){return null==n&&(n=Kc(e)),[n.map(a).join(t)].concat(r(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=Kc(t)),r(t,e).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:a}},ts=Qc(","),es=ts.parse,ns=ts.parseRows,is=ts.format,rs=ts.formatBody,os=ts.formatRows,as=ts.formatRow,cs=ts.formatValue,ss=Qc("\t"),ls=ss.parse,us=ss.parseRows,ds=ss.format,hs=ss.formatBody,fs=ss.formatRows,ps=ss.formatRow,ms=ss.formatValue;function gs(t){for(var e in t){var n,i,r=t[e].trim();if(r)if("true"===r)r=!0;else if("false"===r)r=!1;else if("NaN"===r)r=NaN;else if(isNaN(n=+r)){if(!(i=r.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;ys&&i[4]&&!i[7]&&(r=r.replace(/-/g,"/").replace(/T/," ")),r=new Date(r)}else r=n;else r=null;t[e]=r}return t}const ys=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),vs=t=>+t;function bs(t){return t*t}function xs(t){return t*(2-t)}function _s(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var Ss=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),ws=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),As=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Es=Math.PI,Ls=Es/2;function ks(t){return 1==+t?1:1-Math.cos(t*Ls)}function Cs(t){return Math.sin(t*Ls)}function Ts(t){return(1-Math.cos(Es*t))/2}function Ms(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function qs(t){return Ms(1-+t)}function Is(t){return 1-Ms(t)}function Os(t){return((t*=2)<=1?Ms(1-t):2-Ms(t-1))/2}function Ps(t){return 1-Math.sqrt(1-t*t)}function Ns(t){return Math.sqrt(1- --t*t)}function Ds(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function Bs(t){return 1-js(1-t)}function js(t){return(t=+t)<4/11?7.5625*t*t:t<8/11?7.5625*(t-=6/11)*t+3/4:t<10/11?7.5625*(t-=9/11)*t+15/16:7.5625*(t-=21/22)*t+63/64}function Rs(t){return((t*=2)<=1?1-js(1-t):js(t-1)+1)/2}var Hs=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),zs=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),Fs=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),Gs=2*Math.PI,Ws=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=Gs);function r(t){return e*Ms(- --t)*Math.sin((i-t)/n)}return r.amplitude=function(e){return t(e,n*Gs)},r.period=function(n){return t(e,n)},r}(1,.3),Us=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=Gs);function r(t){return 1-e*Ms(t=+t)*Math.sin((t+i)/n)}return r.amplitude=function(e){return t(e,n*Gs)},r.period=function(n){return t(e,n)},r}(1,.3),Ys=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=Gs);function r(t){return((t=2*t-1)<0?e*Ms(-t)*Math.sin((i-t)/n):2-e*Ms(t)*Math.sin((i+t)/n))/2}return r.amplitude=function(e){return t(e,n*Gs)},r.period=function(n){return t(e,n)},r}(1,.3);function Vs(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}var Xs=function(t,e){return fetch(t,e).then(Vs)};function $s(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}var Ks=function(t,e){return fetch(t,e).then($s)};function Js(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}var Zs=function(t,e){return fetch(t,e).then(Js)};function Qs(t){return function(e,n,i){return 2===arguments.length&&"function"==typeof n&&(i=n,n=void 0),Zs(e,n).then((function(e){return t(e,i)}))}}function tl(t,e,n,i){3===arguments.length&&"function"==typeof n&&(i=n,n=void 0);var r=Qc(t);return Zs(e,n).then((function(t){return r.parse(t,i)}))}var el=Qs(es),nl=Qs(ls),il=function(t,e){return new Promise((function(n,i){var r=new Image;for(var o in e)r[o]=e[o];r.onerror=i,r.onload=function(){n(r)},r.src=t}))};function rl(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}var ol=function(t,e){return fetch(t,e).then(rl)};function al(t){return(e,n)=>Zs(e,n).then(e=>(new DOMParser).parseFromString(e,t))}
vendor: 12,925 bytes, line 1
1var cl=al("application/xml"),sl=al("text/html"),ll=al("image/svg+xml"),ul=function(t,e){var n,i=1;function r(){var r,o,a=n.length,c=0,s=0;for(r=0;r<a;++r)c+=(o=n[r]).x,s+=o.y;for(c=(c/a-t)*i,s=(s/a-e)*i,r=0;r<a;++r)(o=n[r]).x-=c,o.y-=s}return null==t&&(t=0),null==e&&(e=0),r.initialize=function(t){n=t},r.x=function(e){return arguments.length?(t=+e,r):t},r.y=function(t){return arguments.length?(e=+t,r):e},r.strength=function(t){return arguments.length?(i=+t,r):i},r};function dl(t,e,n,i){if(isNaN(e)||isNaN(n))return t;var r,o,a,c,s,l,u,d,h,f=t._root,p={data:i},m=t._x0,g=t._y0,y=t._x1,v=t._y1;if(!f)return t._root=p,t;for(;f.length;)if((l=e>=(o=(m+y)/2))?m=o:y=o,(u=n>=(a=(g+v)/2))?g=a:v=a,r=f,!(f=f[d=u<<1|l]))return r[d]=p,t;if(c=+t._x.call(null,f.data),s=+t._y.call(null,f.data),e===c&&n===s)return p.next=f,r?r[d]=p:t._root=p,t;do{r=r?r[d]=new Array(4):t._root=new Array(4),(l=e>=(o=(m+y)/2))?m=o:y=o,(u=n>=(a=(g+v)/2))?g=a:v=a}while((d=u<<1|l)==(h=(s>=a)<<1|c>=o));return r[h]=f,r[d]=p,t}var hl=function(t,e,n,i,r){this.node=t,this.x0=e,this.y0=n,this.x1=i,this.y1=r};function fl(t){return t[0]}function pl(t){return t[1]}function ml(t,e,n){var i=new gl(null==e?fl:e,null==n?pl:n,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function gl(t,e,n,i,r,o){this._x=t,this._y=e,this._x0=n,this._y0=i,this._x1=r,this._y1=o,this._root=void 0}function yl(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var vl=ml.prototype=gl.prototype;vl.copy=function(){var t,e,n=new gl(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=yl(i),n;for(t=[{source:i,target:n._root=new Array(4)}];i=t.pop();)for(var r=0;r<4;++r)(e=i.source[r])&&(e.length?t.push({source:e,target:i.target[r]=new Array(4)}):i.target[r]=yl(e));return n},vl.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return dl(this.cover(e,n),e,n,t)},vl.addAll=function(t){var e,n,i,r,o=t.length,a=new Array(o),c=new Array(o),s=1/0,l=1/0,u=-1/0,d=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(r=+this._y.call(null,e))||(a[n]=i,c[n]=r,i<s&&(s=i),i>u&&(u=i),r<l&&(l=r),r>d&&(d=r));if(s>u||l>d)return this;for(this.cover(s,l).cover(u,d),n=0;n<o;++n)dl(this,a[n],c[n],t[n]);return this},vl.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,i=this._y0,r=this._x1,o=this._y1;if(isNaN(n))r=(n=Math.floor(t))+1,o=(i=Math.floor(e))+1;else{for(var a,c,s=r-n||1,l=this._root;n>t||t>=r||i>e||e>=o;)switch(c=(e<i)<<1|t<n,(a=new Array(4))[c]=l,l=a,s*=2,c){case 0:r=n+s,o=i+s;break;case 1:n=r-s,o=i+s;break;case 2:r=n+s,i=o-s;break;case 3:n=r-s,i=o-s}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=i,this._x1=r,this._y1=o,this},vl.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},vl.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},vl.find=function(t,e,n){var i,r,o,a,c,s,l,u=this._x0,d=this._y0,h=this._x1,f=this._y1,p=[],m=this._root;for(m&&p.push(new hl(m,u,d,h,f)),null==n?n=1/0:(u=t-n,d=e-n,h=t+n,f=e+n,n*=n);s=p.pop();)if(!(!(m=s.node)||(r=s.x0)>h||(o=s.y0)>f||(a=s.x1)<u||(c=s.y1)<d))if(m.length){var g=(r+a)/2,y=(o+c)/2;p.push(new hl(m[3],g,y,a,c),new hl(m[2],r,y,g,c),new hl(m[1],g,o,a,y),new hl(m[0],r,o,g,y)),(l=(e>=y)<<1|t>=g)&&(s=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=s)}else{var v=t-+this._x.call(null,m.data),b=e-+this._y.call(null,m.data),x=v*v+b*b;if(x<n){var _=Math.sqrt(n=x);u=t-_,d=e-_,h=t+_,f=e+_,i=m.data}}return i},vl.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,i,r,o,a,c,s,l,u,d,h,f=this._root,p=this._x0,m=this._y0,g=this._x1,y=this._y1;if(!f)return this;if(f.length)for(;;){if((l=o>=(c=(p+g)/2))?p=c:g=c,(u=a>=(s=(m+y)/2))?m=s:y=s,e=f,!(f=f[d=u<<1|l]))return this;if(!f.length)break;(e[d+1&3]||e[d+2&3]||e[d+3&3])&&(n=e,h=d)}for(;f.data!==t;)if(i=f,!(f=f.next))return this;return(r=f.next)&&delete f.next,i?(r?i.next=r:delete i.next,this):e?(r?e[d]=r:delete e[d],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[h]=f:this._root=f),this):(this._root=r,this)},vl.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},vl.root=function(){return this._root},vl.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},vl.visit=function(t){var e,n,i,r,o,a,c=[],s=this._root;for(s&&c.push(new hl(s,this._x0,this._y0,this._x1,this._y1));e=c.pop();)if(!t(s=e.node,i=e.x0,r=e.y0,o=e.x1,a=e.y1)&&s.length){var l=(i+o)/2,u=(r+a)/2;(n=s[3])&&c.push(new hl(n,l,u,o,a)),(n=s[2])&&c.push(new hl(n,i,u,l,a)),(n=s[1])&&c.push(new hl(n,l,r,o,u)),(n=s[0])&&c.push(new hl(n,i,r,l,u))}return this},vl.visitAfter=function(t){var e,n=[],i=[];for(this._root&&n.push(new hl(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var r=e.node;if(r.length){var o,a=e.x0,c=e.y0,s=e.x1,l=e.y1,u=(a+s)/2,d=(c+l)/2;(o=r[0])&&n.push(new hl(o,a,c,u,d)),(o=r[1])&&n.push(new hl(o,u,c,s,d)),(o=r[2])&&n.push(new hl(o,a,d,u,l)),(o=r[3])&&n.push(new hl(o,u,d,s,l))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},vl.x=function(t){return arguments.length?(this._x=t,this):this._x},vl.y=function(t){return arguments.length?(this._y=t,this):this._y};var bl=function(t){return function(){return t}},xl=function(t){return 1e-6*(t()-.5)};function _l(t){return t.x+t.vx}function Sl(t){return t.y+t.vy}var wl=function(t){var e,n,i,r=1,o=1;function a(){for(var t,a,s,l,u,d,h,f=e.length,p=0;p<o;++p)for(a=ml(e,_l,Sl).visitAfter(c),t=0;t<f;++t)s=e[t],d=n[s.index],h=d*d,l=s.x+s.vx,u=s.y+s.vy,a.visit(m);function m(t,e,n,o,a){var c=t.data,f=t.r,p=d+f;if(!c)return e>l+p||o<l-p||n>u+p||a<u-p;if(c.index>s.index){var m=l-c.x-c.vx,g=u-c.y-c.vy,y=m*m+g*g;y<p*p&&(0===m&&(y+=(m=xl(i))*m),0===g&&(y+=(g=xl(i))*g),y=(p-(y=Math.sqrt(y)))/y*r,s.vx+=(m*=y)*(p=(f*=f)/(h+f)),s.vy+=(g*=y)*p,c.vx-=m*(p=1-p),c.vy-=g*p)}}}function c(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function s(){if(e){var i,r,o=e.length;for(n=new Array(o),i=0;i<o;++i)r=e[i],n[r.index]=+t(r,i,e)}}return"function"!=typeof t&&(t=bl(null==t?1:+t)),a.initialize=function(t,n){e=t,i=n,s()},a.iterations=function(t){return arguments.length?(o=+t,a):o},a.strength=function(t){return arguments.length?(r=+t,a):r},a.radius=function(e){return arguments.length?(t="function"==typeof e?e:bl(+e),s(),a):t},a};function Al(t){return t.index}function El(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}var Ll=function(t){var e,n,i,r,o,a,c=Al,s=function(t){return 1/Math.min(r[t.source.index],r[t.target.index])},l=bl(30),u=1;function d(i){for(var r=0,c=t.length;r<u;++r)for(var s,l,d,h,f,p,m,g=0;g<c;++g)l=(s=t[g]).source,h=(d=s.target).x+d.vx-l.x-l.vx||xl(a),f=d.y+d.vy-l.y-l.vy||xl(a),h*=p=((p=Math.sqrt(h*h+f*f))-n[g])/p*i*e[g],f*=p,d.vx-=h*(m=o[g]),d.vy-=f*m,l.vx+=h*(m=1-m),l.vy+=f*m}function h(){if(i){var a,s,l=i.length,u=t.length,d=new Map(i.map((t,e)=>[c(t,e,i),t]));for(a=0,r=new Array(l);a<u;++a)(s=t[a]).index=a,"object"!=typeof s.source&&(s.source=El(d,s.source)),"object"!=typeof s.target&&(s.target=El(d,s.target)),r[s.source.index]=(r[s.source.index]||0)+1,r[s.target.index]=(r[s.target.index]||0)+1;for(a=0,o=new Array(u);a<u;++a)s=t[a],o[a]=r[s.source.index]/(r[s.source.index]+r[s.target.index]);e=new Array(u),f(),n=new Array(u),p()}}function f(){if(i)for(var n=0,r=t.length;n<r;++n)e[n]=+s(t[n],n,t)}function p(){if(i)for(var e=0,r=t.length;e<r;++e)n[e]=+l(t[e],e,t)}return null==t&&(t=[]),d.initialize=function(t,e){i=t,a=e,h()},d.links=function(e){return arguments.length?(t=e,h(),d):t},d.id=function(t){return arguments.length?(c=t,d):c},d.iterations=function(t){return arguments.length?(u=+t,d):u},d.strength=function(t){return arguments.length?(s="function"==typeof t?t:bl(+t),f(),d):s},d.distance=function(t){return arguments.length?(l="function"==typeof t?t:bl(+t),p(),d):l},d};function kl(t){return t.x}function Cl(t){return t.y}var Tl=Math.PI*(3-Math.sqrt(5)),Ml=function(t){var e,n=1,i=.001,r=1-Math.pow(i,1/300),o=0,a=.6,c=new Map,s=dr(d),l=we("tick","end"),u=function(){let t=1;return()=>(t=(1664525*t+1013904223)%4294967296)/4294967296}();function d(){h(),l.call("tick",e),n<i&&(s.stop(),l.call("end",e))}function h(i){var s,l,u=t.length;void 0===i&&(i=1);for(var d=0;d<i;++d)for(n+=(o-n)*r,c.forEach((function(t){t(n)})),s=0;s<u;++s)null==(l=t[s]).fx?l.x+=l.vx*=a:(l.x=l.fx,l.vx=0),null==l.fy?l.y+=l.vy*=a:(l.y=l.fy,l.vy=0);return e}function f(){for(var e,n=0,i=t.length;n<i;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var r=10*Math.sqrt(.5+n),o=n*Tl;e.x=r*Math.cos(o),e.y=r*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function p(e){return e.initialize&&e.initialize(t,u),e}return null==t&&(t=[]),f(),e={tick:h,restart:function(){return s.restart(d),e},stop:function(){return s.stop(),e},nodes:function(n){return arguments.length?(t=n,f(),c.forEach(p),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(i=+t,e):i},alphaDecay:function(t){return arguments.length?(r=+t,e):+r},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(a=1-t,e):1-a},randomSource:function(t){return arguments.length?(u=t,c.forEach(p),e):u},force:function(t,n){return arguments.length>1?(null==n?c.delete(t):c.set(t,p(n)),e):c.get(t)},find:function(e,n,i){var r,o,a,c,s,l=0,u=t.length;for(null==i?i=1/0:i*=i,l=0;l<u;++l)(a=(r=e-(c=t[l]).x)*r+(o=n-c.y)*o)<i&&(s=c,i=a);return s},on:function(t,n){return arguments.length>1?(l.on(t,n),e):l.on(t)}}},ql=function(){var t,e,n,i,r,o=bl(-30),a=1,c=1/0,s=.81;function l(n){var r,o=t.length,a=ml(t,kl,Cl).visitAfter(d);for(i=n,r=0;r<o;++r)e=t[r],a.visit(h)}function u(){if(t){var e,n,i=t.length;for(r=new Array(i),e=0;e<i;++e)n=t[e],r[n.index]=+o(n,e,t)}}function d(t){var e,n,i,o,a,c=0,s=0;if(t.length){for(i=o=a=0;a<4;++a)(e=t[a])&&(n=Math.abs(e.value))&&(c+=e.value,s+=n,i+=n*e.x,o+=n*e.y);t.x=i/s,t.y=o/s}else{(e=t).x=e.data.x,e.y=e.data.y;do{c+=r[e.data.index]}while(e=e.next)}t.value=c}function h(t,o,l,u){if(!t.value)return!0;var d=t.x-e.x,h=t.y-e.y,f=u-o,p=d*d+h*h;if(f*f/s<p)return p<c&&(0===d&&(p+=(d=xl(n))*d),0===h&&(p+=(h=xl(n))*h),p<a&&(p=Math.sqrt(a*p)),e.vx+=d*t.value*i/p,e.vy+=h*t.value*i/p),!0;if(!(t.length||p>=c)){(t.data!==e||t.next)&&(0===d&&(p+=(d=xl(n))*d),0===h&&(p+=(h=xl(n))*h),p<a&&(p=Math.sqrt(a*p)));do{t.data!==e&&(f=r[t.data.index]*i/p,e.vx+=d*f,e.vy+=h*f)}while(t=t.next)}}return l.initialize=function(e,i){t=e,n=i,u()},l.strength=function(t){return arguments.length?(o="function"==typeof t?t:bl(+t),u(),l):o},l.distanceMin=function(t){return arguments.length?(a=t*t,l):Math.sqrt(a)},l.distanceMax=function(t){return arguments.length?(c=t*t,l):Math.sqrt(c)},l.theta=function(t){return arguments.length?(s=t*t,l):Math.sqrt(s)},l},Il=function(t,e,n){var i,r,o,a=bl(.1);function c(t){for(var a=0,c=i.length;a<c;++a){var s=i[a],l=s.x-e||1e-6,u=s.y-n||1e-6,d=Math.sqrt(l*l+u*u),h=(o[a]-d)*r[a]*t/d;s.vx+=l*h,s.vy+=u*h}}function s(){if(i){var e,n=i.length;for(r=new Array(n),o=new Array(n),e=0;e<n;++e)o[e]=+t(i[e],e,i),r[e]=isNaN(o[e])?0:+a(i[e],e,i)}}return"function"!=typeof t&&(t=bl(+t)),null==e&&(e=0),null==n&&(n=0),c.initialize=function(t){i=t,s()},c.strength=function(t){return arguments.length?(a="function"==typeof t?t:bl(+t),s(),c):a},c.radius=function(e){return arguments.length?(t="function"==typeof e?e:bl(+e),s(),c):t},c.x=function(t){return arguments.length?(e=+t,c):e},c.y=function(t){return arguments.length?(n=+t,c):n},c},Ol=function(t){var e,n,i,r=bl(.1);function o(t){for(var r,o=0,a=e.length;o<a;++o)(r=e[o]).vx+=(i[o]-r.x)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),i=new Array(a),o=0;o<a;++o)n[o]=isNaN(i[o]=+t(e[o],o,e))?0:+r(e[o],o,e)}}return"function"!=typeof t&&(t=bl(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(r="function"==typeof t?t:bl(+t),a(),o):r},o.x=function(e){return arguments.length?(t="function"==typeof e?e:bl(+e),a(),o):t},o},Pl=function(t){var e,n,i,r=bl(.1);function o(t){for(var r,o=0,a=e.length;o<a;++o)(r=e[o]).vy+=(i[o]-r.y)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),i=new Array(a),o=0;o<a;++o)n[o]=isNaN(i[o]=+t(e[o],o,e))?0:+r(e[o],o,e)}}return"function"!=typeof t&&(t=bl(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(r="function"==typeof t?t:bl(+t),a(),o):r},o.y=function(e){return arguments.length?(t="function"==typeof e?e:bl(+e),a(),o):t},o};function Nl(t,e){if(!isFinite(t)||0===t)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),i=t.slice(0,n);return[i.length>
vendor: 4,438 bytes, line 1
11?i[0]+i.slice(2):i,+t.slice(n+1)]}var Dl=function(t){return(t=Nl(Math.abs(t)))?t[1]:NaN},Bl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jl(t){if(!(e=Bl.exec(t)))throw new Error("invalid format: "+t);var e;return new Rl({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Rl(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}jl.prototype=Rl.prototype,Rl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Hl,zl,Fl,Gl,Wl=function(t,e){var n=Nl(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},Ul={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Wl(100*t,e),r:Wl,s:function(t,e){var n=Nl(t,e);if(!n)return Hl=void 0,t.toPrecision(e);var i=n[0],r=n[1],o=r-(Hl=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+Nl(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)},Yl=function(t){return t},Vl=Array.prototype.map,Xl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],$l=function(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?Yl:(e=Vl.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,o=[],a=0,c=e[0],s=0;r>0&&c>0&&(s+c+1>i&&(c=Math.max(1,i-s)),o.push(t.substring(r-=c,r+c)),!((s+=c+1)>i));)c=e[a=(a+1)%e.length];return o.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?Yl:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Vl.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"â":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function d(t,e){var n=(t=jl(t)).fill,d=t.align,h=t.sign,f=t.symbol,p=t.zero,m=t.width,g=t.comma,y=t.precision,v=t.trim,b=t.type;"n"===b?(g=!0,b="g"):Ul[b]||(void 0===y&&(y=12),v=!0,b="g"),(p||"0"===n&&"="===d)&&(p=!0,n="0",d="=");var x=(e&&void 0!==e.prefix?e.prefix:"")+("$"===f?r:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),_=("$"===f?o:/[%p]/.test(b)?s:"")+(e&&void 0!==e.suffix?e.suffix:""),S=Ul[b],w=/[defgprs%]/.test(b);function A(t){var e,r,o,s=x,f=_;if("c"===b)f=S(t)+f,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:S(Math.abs(t),y),v&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==h&&(A=!1),s=(A?"("===h?h:l:"-"===h||"("===h?"":h)+s,f=("s"!==b||isNaN(t)||void 0===Hl?"":Xl[8+Hl/3])+f+(A&&"("===h?")":""),w)for(e=-1,r=t.length;++e<r;)if(48>(o=t.charCodeAt(e))||o>57){f=(46===o?a+t.slice(e+1):t.slice(e))+f,t=t.slice(0,e);break}}g&&!p&&(t=i(t,1/0));var E=s.length+t.length+f.length,L=E<m?new Array(m-E+1).join(n):"";switch(g&&p&&(t=i(L+t,L.length?m-f.length:1/0),L=""),d){case"<":t=s+t+f+L;break;case"=":t=s+L+t+f;break;case"^":t=L.slice(0,E=L.length>>1)+s+t+f+L.slice(E);break;default:t=L+s+t+f}return c(t)}return y=void 0===y?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),A.toString=function(){return t+""},A}return{format:d,formatPrefix:function(t,e){var n=3*Math.max(-8,Math.min(8,Math.floor(Dl(e)/3))),i=Math.pow(10,-n),r=d(((t=jl(t)).type="f",t),{suffix:Xl[8+n/3]});return function(t){return r(i*t)}}}};function Kl(t){return zl=$l(t),Fl=zl.format,Gl=zl.formatPrefix,zl}
vendor: 4,947 bytes, line 1
1Kl({thousands:",",grouping:[3],currency:["$",""]});var Jl=function(t){return Math.max(0,-Dl(Math.abs(t)))},Zl=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Dl(e)/3)))-Dl(Math.abs(t)))},Ql=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Dl(e)-Dl(t))+1},tu=Math.PI,eu=tu/2,nu=tu/4,iu=2*tu,ru=180/tu,ou=tu/180,au=Math.abs,cu=Math.atan,su=Math.atan2,lu=Math.cos,uu=Math.ceil,du=Math.exp,hu=(Math.floor,Math.hypot),fu=Math.log,pu=Math.pow,mu=Math.sin,gu=Math.sign||function(t){return t>0?1:t<0?-1:0},yu=Math.sqrt,vu=Math.tan;function bu(t){return t>1?0:t<-1?tu:Math.acos(t)}function xu(t){return t>1?eu:t<-1?-eu:Math.asin(t)}function _u(t){return(t=mu(t/2))*t}function Su(){}function wu(t,e){t&&Eu.hasOwnProperty(t.type)&&Eu[t.type](t,e)}var Au={Feature:function(t,e){wu(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,r=n.length;++i<r;)wu(n[i].geometry,e)}},Eu={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){Lu(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)Lu(n[i],e,0)},Polygon:function(t,e){ku(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)ku(n[i],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,r=n.length;++i<r;)wu(n[i],e)}};function Lu(t,e,n){var i,r=-1,o=t.length-n;for(e.lineStart();++r<o;)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function ku(t,e){var n=-1,i=t.length;for(e.polygonStart();++n<i;)Lu(t[n],e,1);e.polygonEnd()}var Cu,Tu,Mu,qu,Iu,Ou=function(t,e){t&&Au.hasOwnProperty(t.type)?Au[t.type](t,e):wu(t,e)},Pu=new M,Nu=new M,Du={point:Su,lineStart:Su,lineEnd:Su,polygonStart:function(){Pu=new M,Du.lineStart=Bu,Du.lineEnd=ju},polygonEnd:function(){var t=+Pu;Nu.add(t<0?iu+t:t),this.lineStart=this.lineEnd=this.point=Su},sphere:function(){Nu.add(iu)}};function Bu(){Du.point=Ru}function ju(){Hu(Cu,Tu)}function Ru(t,e){Du.point=Hu,Cu=t,Tu=e,Mu=t*=ou,qu=lu(e=(e*=ou)/2+nu),Iu=mu(e)}function Hu(t,e){var n=(t*=ou)-Mu,i=n>=0?1:-1,r=i*n,o=lu(e=(e*=ou)/2+nu),a=mu(e),c=Iu*a,s=qu*o+c*lu(r),l=c*i*mu(r);Pu.add(su(l,s)),Mu=t,qu=o,Iu=a}var zu,Fu,Gu,Wu,Uu,Yu,Vu,Xu,$u,Ku,Ju,Zu=function(t){return Nu=new M,Ou(t,Du),2*Nu};function Qu(t){return[su(t[1],t[0]),xu(t[2])]}function td(t){var e=t[0],n=t[1],i=lu(n);return[i*lu(e),i*mu(e),mu(n)]}function ed(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function nd(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function id(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function rd(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function od(t){var e=yu(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ad={point:cd,lineStart:ld,lineEnd:ud,polygonStart:function(){ad.point=dd,ad.lineStart=hd,ad.lineEnd=fd,$u=new M,Du.polygonStart()},polygonEnd:function(){Du.polygonEnd(),ad.point=cd,ad.lineStart=ld,ad.lineEnd=ud,Pu<0?(zu=-(Gu=180),Fu=-(Wu=90)):$u>1e-6?Wu=90:$u<-1e-6&&(Fu=-90),Ju[0]=zu,Ju[1]=Gu},sphere:function(){zu=-(Gu=180),Fu=-(Wu=90)}};function cd(t,e){Ku.push(Ju=[zu=t,Gu=t]),e<Fu&&(Fu=e),e>Wu&&(Wu=e)}function sd(t,e){var n=td([t*ou,e*ou]);if(Xu){var i=nd(Xu,n),r=nd([i[1],-i[0],0],i);od(r),r=Qu(r);var o,a=t-Uu,c=a>0?1:-1,s=r[0]*ru*c,l=au(a)>180;l^(c*Uu<s&&s<c*t)?(o=r[1]*ru)>Wu&&(Wu=o):l^(c*Uu<(s=(s+360)%360-180)&&s<c*t)?(o=-r[1]*ru)<Fu&&(Fu=o):(e<Fu&&(Fu=e),e>Wu&&(Wu=e)),l?t<Uu?pd(zu,t)>pd(zu,Gu)&&(Gu=t):pd(t,Gu)>pd(zu,Gu)&&(zu=t):Gu>=zu?(t<zu&&(zu=t),t>Gu&&(Gu=t)):t>Uu?pd(zu,t)>pd(zu,Gu)&&(Gu=t):pd(t,Gu)>pd(zu,Gu)&&(zu=t)}else Ku.push(Ju=[zu=t,Gu=t]);e<Fu&&(Fu=e),e>Wu&&(Wu=e),Xu=n,Uu=t}function ld(){ad.point=sd}function ud(){Ju[0]=zu,Ju[1]=Gu,ad.point=cd,Xu=null}function dd(t,e){if(Xu){var n=t-Uu;$u.add(au(n)>180?n+(n>0?360:-360):n)}else Yu=t,Vu=e;Du.point(t,e),sd(t,e)}function hd(){Du.lineStart()}function fd(){dd(Yu,Vu),Du.lineEnd(),au($u)>1e-6&&(zu=-(Gu=180)),Ju[0]=zu,Ju[1]=Gu,Xu=null}function pd(t,e){return(e-=t)<0?e+360:e}function md(t,e){return t[0]-e[0]}function gd(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var yd,vd,bd,xd,_d,Sd,wd,Ad,Ed,Ld,kd,Cd,Td,Md,qd,Id,Od=function(t){var e,n,i,r,o,a,c;if(Wu=Gu=-(zu=Fu=1/0),Ku=[],Ou(t,ad),n=Ku.length){for(Ku.sort(md),e=1,o=[i=Ku[0]];e<n;++e)gd(i,(r=Ku[e])[0])||gd(i,r[1])?(pd(i[0],r[1])>pd(i[0],i[1])&&(i[1]=r[1]),pd(r[0],i[1])>pd(i[0],i[1])&&(i[0]=r[0])):o.push(i=r);for(a=-1/0,e=0,i=o[n=o.length-1];e<=n;i=r,++e)r=o[e],(c=pd(i[1],r[0]))>a&&(a=c,zu=r[0],Gu=i[1])}return Ku=Ju=null,zu===1/0||Fu===1/0?[[NaN,NaN],[NaN,NaN]]:[[zu,Fu],[Gu,Wu]]},Pd={sphere:Su,point:Nd,lineStart:Bd,lineEnd:Hd,polygonStart:function(){Pd.lineStart=zd,Pd.lineEnd=Fd},polygonEnd:function(){Pd.lineStart=Bd,Pd.lineEnd=Hd}};function Nd(t,e){t*=ou;var n=lu(e*=ou);Dd(n*lu(t),n*mu(t),mu(e))}function Dd(t,e,n){++yd,bd+=(t-bd)/yd,xd+=(e-xd)/yd,_d+=(n-_d)/yd}function Bd(){Pd.point=jd}
vendor: 25,640 bytes, line 1
1function jd(t,e){t*=ou;var n=lu(e*=ou);Md=n*lu(t),qd=n*mu(t),Id=mu(e),Pd.point=Rd,Dd(Md,qd,Id)}function Rd(t,e){t*=ou;var n=lu(e*=ou),i=n*lu(t),r=n*mu(t),o=mu(e),a=su(yu((a=qd*o-Id*r)*a+(a=Id*i-Md*o)*a+(a=Md*r-qd*i)*a),Md*i+qd*r+Id*o);vd+=a,Sd+=a*(Md+(Md=i)),wd+=a*(qd+(qd=r)),Ad+=a*(Id+(Id=o)),Dd(Md,qd,Id)}function Hd(){Pd.point=Nd}function zd(){Pd.point=Gd}function Fd(){Wd(Cd,Td),Pd.point=Nd}function Gd(t,e){Cd=t,Td=e,t*=ou,e*=ou,Pd.point=Wd;var n=lu(e);Md=n*lu(t),qd=n*mu(t),Id=mu(e),Dd(Md,qd,Id)}function Wd(t,e){t*=ou;var n=lu(e*=ou),i=n*lu(t),r=n*mu(t),o=mu(e),a=qd*o-Id*r,c=Id*i-Md*o,s=Md*r-qd*i,l=hu(a,c,s),u=xu(l),d=l&&-u/l;Ed.add(d*a),Ld.add(d*c),kd.add(d*s),vd+=u,Sd+=u*(Md+(Md=i)),wd+=u*(qd+(qd=r)),Ad+=u*(Id+(Id=o)),Dd(Md,qd,Id)}var Ud=function(t){yd=vd=bd=xd=_d=Sd=wd=Ad=0,Ed=new M,Ld=new M,kd=new M,Ou(t,Pd);var e=+Ed,n=+Ld,i=+kd,r=hu(e,n,i);return r<1e-12&&(e=Sd,n=wd,i=Ad,vd<1e-6&&(e=bd,n=xd,i=_d),(r=hu(e,n,i))<1e-12)?[NaN,NaN]:[su(n,e)*ru,xu(i/r)*ru]},Yd=function(t){return function(){return t}},Vd=function(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,i){return(n=e.invert(n,i))&&t.invert(n[0],n[1])}),n};function Xd(t,e){return au(t)>tu&&(t-=Math.round(t/iu)*iu),[t,e]}function $d(t,e,n){return(t%=iu)?e||n?Vd(Jd(t),Zd(e,n)):Jd(t):e||n?Zd(e,n):Xd}function Kd(t){return function(e,n){return au(e+=t)>tu&&(e-=Math.round(e/iu)*iu),[e,n]}}function Jd(t){var e=Kd(t);return e.invert=Kd(-t),e}function Zd(t,e){var n=lu(t),i=mu(t),r=lu(e),o=mu(e);function a(t,e){var a=lu(e),c=lu(t)*a,s=mu(t)*a,l=mu(e),u=l*n+c*i;return[su(s*r-u*o,c*n-l*i),xu(u*r+s*o)]}return a.invert=function(t,e){var a=lu(e),c=lu(t)*a,s=mu(t)*a,l=mu(e),u=l*r-s*o;return[su(s*r+l*o,c*n+u*i),xu(u*n-c*i)]},a}Xd.invert=Xd;var Qd=function(t){function e(e){return(e=t(e[0]*ou,e[1]*ou))[0]*=ru,e[1]*=ru,e}return t=$d(t[0]*ou,t[1]*ou,t.length>2?t[2]*ou:0),e.invert=function(e){return(e=t.invert(e[0]*ou,e[1]*ou))[0]*=ru,e[1]*=ru,e},e};function th(t,e,n,i,r,o){if(n){var a=lu(e),c=mu(e),s=i*n;null==r?(r=e+i*iu,o=e-s/2):(r=eh(a,r),o=eh(a,o),(i>0?r<o:r>o)&&(r+=i*iu));for(var l,u=r;i>0?u>o:u<o;u-=s)l=Qu([a,-c*lu(u),-c*mu(u)]),t.point(l[0],l[1])}}function eh(t,e){(e=td(e))[0]-=t,od(e);var n=bu(-e[1]);return((-e[2]<0?-n:n)+iu-1e-6)%iu}var nh=function(){var t,e,n=Yd([0,0]),i=Yd(90),r=Yd(2),o={point:function(n,i){t.push(n=e(n,i)),n[0]*=ru,n[1]*=ru}};function a(){var a=n.apply(this,arguments),c=i.apply(this,arguments)*ou,s=r.apply(this,arguments)*ou;return t=[],e=$d(-a[0]*ou,-a[1]*ou,0).invert,th(o,c,s,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return a.center=function(t){return arguments.length?(n="function"==typeof t?t:Yd([+t[0],+t[1]]),a):n},a.radius=function(t){return arguments.length?(i="function"==typeof t?t:Yd(+t),a):i},a.precision=function(t){return arguments.length?(r="function"==typeof t?t:Yd(+t),a):r},a},ih=function(){var t,e=[];return{point:function(e,n,i){t.push([e,n,i])},lineStart:function(){e.push(t=[])},lineEnd:Su,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},rh=function(t,e){return au(t[0]-e[0])<1e-6&&au(t[1]-e[1])<1e-6};function oh(t,e,n,i){this.x=t,this.z=e,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}var ah=function(t,e,n,i,r){var o,a,c=[],s=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,i=t[0],a=t[e];if(rh(i,a)){if(!i[2]&&!a[2]){for(r.lineStart(),o=0;o<e;++o)r.point((i=t[o])[0],i[1]);return void r.lineEnd()}a[0]+=2e-6}c.push(n=new oh(i,t,null,!0)),s.push(n.o=new oh(i,null,n,!1)),c.push(n=new oh(a,t,null,!1)),s.push(n.o=new oh(a,null,n,!0))}})),c.length){for(s.sort(e),ch(c),ch(s),o=0,a=s.length;o<a;++o)s[o].e=n=!n;for(var l,u,d=c[0];;){for(var h=d,f=!0;h.v;)if((h=h.n)===d)return;l=h.z,r.lineStart();do{if(h.v=h.o.v=!0,h.e){if(f)for(o=0,a=l.length;o<a;++o)r.point((u=l[o])[0],u[1]);else i(h.x,h.n.x,1,r);h=h.n}else{if(f)for(l=h.p.z,o=l.length-1;o>=0;--o)r.point((u=l[o])[0],u[1]);else i(h.x,h.p.x,-1,r);h=h.p}l=(h=h.o).z,f=!f}while(!h.v);r.lineEnd()}}};function ch(t){if(e=t.length){for(var e,n,i=0,r=t[0];++i<e;)r.n=n=t[i],n.p=r,r=n;r.n=n=t[0],n.p=r}}function sh(t){return au(t[0])<=tu?t[0]:gu(t[0])*((au(t[0])+tu)%iu-tu)}var lh=function(t,e){var n=sh(e),i=e[1],r=mu(i),o=[mu(n),-lu(n),0],a=0,c=0,s=new M;1===r?i=eu+1e-6:-1===r&&(i=-eu-1e-6);for(var l=0,u=t.length;l<u;++l)if(h=(d=t[l]).length)for(var d,h,f=d[h-1],p=sh(f),m=f[1]/2+nu,g=mu(m),y=lu(m),v=0;v<h;++v,p=x,g=S,y=w,f=b){var b=d[v],x=sh(b),_=b[1]/2+nu,S=mu(_),w=lu(_),A=x-p,E=A>=0?1:-1,L=E*A,k=L>tu,C=g*S;if(s.add(su(C*E*mu(L),y*w+C*lu(L))),a+=k?A+E*iu:A,k^p>=n^x>=n){var T=nd(td(f),td(b));od(T);var q=nd(o,T);od(q);var I=(k^A>=0?-1:1)*xu(q[2]);(i>I||i===I&&(T[0]||T[1]))&&(c+=k^A>=0?1:-1)}}return(a<-1e-6||a<1e-6&&s<-1e-12)^1&c},uh=function(t,e,n,i){return function(r){var o,a,c,s=e(r),l=ih(),u=e(l),d=!1,h={point:f,lineStart:m,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=v,h.lineEnd=b,a=[],o=[]},polygonEnd:function(){h.point=f,h.lineStart=m,h.lineEnd=g,a=Mt(a);var t=lh(o,i);a.length?(d||(r.polygonStart(),d=!0),ah(a,hh,t,n,r)):t&&(d||(r.polygonStart(),d=!0),r.lineStart(),n(null,null,1,r),r.lineEnd()),d&&(r.polygonEnd(),d=!1),a=o=null},sphere:function(){r.polygonStart(),r.lineStart(),n(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function f(e,n){t(e,n)&&r.point(e,n)}function p(t,e){s.point(t,e)}function m(){h.point=p,s.lineStart()}function g(){h.point=f,s.lineEnd()}function y(t,e){c.push([t,e]),u.point(t,e)}function v(){u.lineStart(),c=[]}function b(){y(c[0][0],c[0][1]),u.lineEnd();var t,e,n,i,s=u.clean(),h=l.result(),f=h.length;if(c.pop(),o.push(c),c=null,f)if(1&s){if((e=(n=h[0]).length-1)>0){for(d||(r.polygonStart(),d=!0),r.lineStart(),t=0;t<e;++t)r.point((i=n[t])[0],i[1]);r.lineEnd()}}else f>1&&2&s&&h.push(h.pop().concat(h.shift())),a.push(h.filter(dh))}return h}};function dh(t){return t.length>1}function hh(t,e){return((t=t.x)[0]<0?t[1]-eu-1e-6:eu-t[1])-((e=e.x)[0]<0?e[1]-eu-1e-6:eu-e[1])}var fh=uh((function(){return!0}),(function(t){var e,n=NaN,i=NaN,r=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var c=o>0?tu:-tu,s=au(o-n);au(s-tu)<1e-6?(t.point(n,i=(i+a)/2>0?eu:-eu),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(c,i),t.point(o,i),e=0):r!==c&&s>=tu&&(au(n-r)<1e-6&&(n-=1e-6*r),au(o-c)<1e-6&&(o-=1e-6*c),i=function(t,e,n,i){var r,o,a=mu(t-n);return au(a)>1e-6?cu((mu(e)*(o=lu(i))*mu(n)-mu(i)*(r=lu(e))*mu(t))/(r*o*a)):(e+i)/2}(n,i,o,a),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(c,i),e=0),t.point(n=o,i=a),r=c},lineEnd:function(){t.lineEnd(),n=i=NaN},clean:function(){return 2-e}}}),(function(t,e,n,i){var r;if(null==t)r=n*eu,i.point(-tu,r),i.point(0,r),i.point(tu,r),i.point(tu,0),i.point(tu,-r),i.point(0,-r),i.point(-tu,-r),i.point(-tu,0),i.point(-tu,r);else if(au(t[0]-e[0])>1e-6){var o=t[0]<e[0]?tu:-tu;r=n*o/2,i.point(-o,r),i.point(0,r),i.point(o,r)}else i.point(e[0],e[1])}),[-tu,-eu]);var ph=function(t){var e=lu(t),n=2*ou,i=e>0,r=au(e)>1e-6;function o(t,n){return lu(t)*lu(n)>e}function a(t,n,i){var r=[1,0,0],o=nd(td(t),td(n)),a=ed(o,o),c=o[0],s=a-c*c;if(!s)return!i&&t;var l=e*a/s,u=-e*c/s,d=nd(r,o),h=rd(r,l);id(h,rd(o,u));var f=d,p=ed(h,f),m=ed(f,f),g=p*p-m*(ed(h,h)-1);if(!(g<0)){var y=yu(g),v=rd(f,(-p-y)/m);if(id(v,h),v=Qu(v),!i)return v;var b,x=t[0],_=n[0],S=t[1],w=n[1];_<x&&(b=x,x=_,_=b);var A=_-x,E=au(A-tu)<1e-6;if(!E&&w<S&&(b=S,S=w,w=b),E||A<1e-6?E?S+w>0^v[1]<(au(v[0]-x)<1e-6?S:w):S<=v[1]&&v[1]<=w:A>tu^(x<=v[0]&&v[0]<=_)){var L=rd(f,(-p+y)/m);return id(L,h),[v,Qu(L)]}}}function c(e,n){var r=i?t:tu-t,o=0;return e<-r?o|=1:e>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}return uh(o,(function(t){var e,n,s,l,u;return{lineStart:function(){l=s=!1,u=1},point:function(d,h){var f,p=[d,h],m=o(d,h),g=i?m?0:c(d,h):m?c(d+(d<0?tu:-tu),h):0;if(!e&&(l=s=m)&&t.lineStart(),m!==s&&(!(f=a(e,p))||rh(e,f)||rh(p,f))&&(p[2]=1),m!==s)u=0,m?(t.lineStart(),f=a(p,e),t.point(f[0],f[1])):(f=a(e,p),t.point(f[0],f[1],2),t.lineEnd()),e=f;else if(r&&e&&i^m){var y;g&n||!(y=a(p,e,!0))||(u=0,i?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!m||e&&rh(e,p)||t.point(p[0],p[1]),e=p,s=m,n=g},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return u|(l&&s)<<1}}}),(function(e,i,r,o){th(o,t,n,r,e,i)}),i?[0,-t]:[-tu,t-tu])};function mh(t,e,n,i){function r(r,o){return t<=r&&r<=n&&e<=o&&o<=i}function o(r,o,c,l){var u=0,d=0;if(null==r||(u=a(r,c))!==(d=a(o,c))||s(r,o)<0^c>0)do{l.point(0===u||3===u?t:n,u>1?i:e)}while((u=(u+c+4)%4)!==d);else l.point(o[0],o[1])}function a(i,r){return au(i[0]-t)<1e-6?r>0?0:3:au(i[0]-n)<1e-6?r>0?2:1:au(i[1]-e)<1e-6?r>0?1:0:r>0?3:2}function c(t,e){return s(t.x,e.x)}function s(t,e){var n=a(t,1),i=a(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var s,l,u,d,h,f,p,m,g,y,v,b=a,x=ih(),_={point:S,lineStart:function(){_.point=w,l&&l.push(u=[]);y=!0,g=!1,p=m=NaN},lineEnd:function(){s&&(w(d,h),f&&g&&x.rejoin(),s.push(x.result()));_.point=S,g&&b.lineEnd()},polygonStart:function(){b=x,s=[],l=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,r=l.length;n<r;++n)for(var o,a,c=l[n],s=1,u=c.length,d=c[0],h=d[0],f=d[1];s<u;++s)o=h,a=f,d=c[s],h=d[0],f=d[1],a<=i?f>i&&(h-o)*(i-a)>(f-a)*(t-o)&&++e:f<=i&&(h-o)*(i-a)<(f-a)*(t-o)&&--e;return e}(),n=v&&e,r=(s=Mt(s)).length;(n||r)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),r&&ah(s,c,e,o,a),a.polygonEnd());b=a,s=l=u=null}};function S(t,e){r(t,e)&&b.point(t,e)}function w(o,a){var c=r(o,a);if(l&&u.push([o,a]),y)d=o,h=a,f=c,y=!1,c&&(b.lineStart(),b.point(o,a));else if(c&&g)b.point(o,a);else{var s=[p=Math.max(-1e9,Math.min(1e9,p)),m=Math.max(-1e9,Math.min(1e9,m))],x=[o=Math.max(-1e9,Math.min(1e9,o)),a=Math.max(-1e9,Math.min(1e9,a))];!function(t,e,n,i,r,o){var a,c=t[0],s=t[1],l=0,u=1,d=e[0]-c,h=e[1]-s;if(a=n-c,d||!(a>0)){if(a/=d,d<0){if(a<l)return;a<u&&(u=a)}else if(d>0){if(a>u)return;a>l&&(l=a)}if(a=r-c,d||!(a<0)){if(a/=d,d<0){if(a>u)return;a>l&&(l=a)}else if(d>0){if(a<l)return;a<u&&(u=a)}if(a=i-s,h||!(a>0)){if(a/=h,h<0){if(a<l)return;a<u&&(u=a)}else if(h>0){if(a>u)return;a>l&&(l=a)}if(a=o-s,h||!(a<0)){if(a/=h,h<0){if(a>u)return;a>l&&(l=a)}else if(h>0){if(a<l)return;a<u&&(u=a)}return l>0&&(t[0]=c+l*d,t[1]=s+l*h),u<1&&(e[0]=c+u*d,e[1]=s+u*h),!0}}}}}(s,x,t,e,n,i)?c&&(b.lineStart(),b.point(o,a),v=!1):(g||(b.lineStart(),b.point(s[0],s[1])),b.point(x[0],x[1]),c||b.lineEnd(),v=!1)}p=o,m=a,g=c}return _}}var gh,yh,vh,bh,xh=function(){var t,e,n,i=0,r=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=mh(i,r,o,a)(e=n)},extent:function(c){return arguments.length?(i=+c[0][0],r=+c[0][1],o=+c[1][0],a=+c[1][1],t=e=null,n):[[i,r],[o,a]]}}},_h={sphere:Su,point:Su,lineStart:function(){_h.point=wh,_h.lineEnd=Sh},lineEnd:Su,polygonStart:Su,polygonEnd:Su};function Sh(){_h.point=_h.lineEnd=Su}function wh(t,e){yh=t*=ou,vh=mu(e*=ou),bh=lu(e),_h.point=Ah}function Ah(t,e){t*=ou;var n=mu(e*=ou),i=lu(e),r=au(t-yh),o=lu(r),a=i*mu(r),c=bh*n-vh*i*o,s=vh*n+bh*i*o;gh.add(su(yu(a*a+c*c),s)),yh=t,vh=n,bh=i}var Eh=function(t){return gh=new M,Ou(t,_h),+gh},Lh=[null,null],kh={type:"LineString",coordinates:Lh},Ch=function(t,e){return Lh[0]=t,Lh[1]=e,Eh(kh)},Th={Feature:function(t,e){return qh(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,r=n.length;++i<r;)if(qh(n[i].geometry,e))return!0;return!1}},Mh={Sphere:function(){return!0},Point:function(t,e){return Ih(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)if(Ih(n[i],e))return!0;return!1},LineString:function(t,e){return Oh(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)if(Oh(n[i],e))return!0;return!1},Polygon:function(t,e){return Ph(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)if(Ph(n[i],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,r=n.length;++i<r;)if(qh(n[i],e))return!0;return!1}};function qh(t,e){return!(!t||!Mh.hasOwnProperty(t.type))&&Mh[t.type](t,e)}function Ih(t,e){return 0===Ch(t,e)}function Oh(t,e){for(var n,i,r,o=0,a=t.length;o<a;o++){if(0===(i=Ch(t[o],e)))return!0;if(o>0&&(r=Ch(t[o],t[o-1]))>0&&n<=r&&i<=r&&(n+i-r)*(1-Math.pow((n-i)/r,2))<1e-12*r)return!0;n=i}return!1}function Ph(t,e){return!!lh(t.map(Nh),Dh(e))}function Nh(t){return(t=t.map(Dh)).pop(),t}function Dh(t){return[t[0]*ou,t[1]*ou]}var Bh=function(t,e){return(t&&Th.hasOwnProperty(t.type)?Th[t.type]:qh)(t,e)};function jh(t,e,n){var i=Pt(t,e-1e-6,n).concat(e);return function(t){return i.map((function(e){return[t,e]}))}}function Rh(t,e,n){var i=Pt(t,e-1e-6,n).concat(e);return function(t){return i.map((function(e){return[e,t]}))}}function Hh(){var t,e,n,i,r,o,a,c,s,l,u,d,h=10,f=h,p=90,m=360,g=2.5;function y(){return{type:"MultiLineString",coordinates:v()}}function v(){return Pt(uu(i/p)*p,n,p).map(u).concat(Pt(uu(c/m)*m,a,m).map(d)).concat(Pt(uu(e/h)*h,t,h).filter((function(t){return au(t%p)>1e-6})).map(s)).concat(Pt(uu(o/f)*f,r,f).filter((function(t){return au(t%m)>1e-6})).map(l))}return y.lines=function(){return v().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[u(i).concat(d(a).slice(1),u(n).reverse().slice(1),d(c).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],c=+t[0][1],a=+t[1][1],i>n&&(t=i,i=n,n=t),c>a&&(t=c,c=a,a=t),y.precision(g)):[[i,c],[n,a]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],r=+n[1][1],e>t&&(n=e,e=t,t=n),o>r&&(n=o,o=r,r=n),y.precision(g)):[[e,o],[t,r]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],m=+t[1],y):[p,m]},y.stepMinor=function(t){return arguments.length?(h=+t[0],f=+t[1],y):[h,f]},y.precision=function(h){return arguments.length?(g=+h,s=jh(o,r,90),l=Rh(e,t,g),u=jh(c,a,90),d=Rh(i,n,g),y):g},y.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function zh(){return Hh()()}var Fh,Gh,Wh,Uh,Yh=function(t,e){var n=t[0]*ou,i=t[1]*ou,r=e[0]*ou,o=e[1]*ou,a=lu(i),c=mu(i),s=lu(o),l=mu(o),u=a*lu(n),d=a*mu(n),h=s*lu(r),f=s*mu(r),p=2*xu(yu(_u(o-i)+a*s*_u(r-n))),m=mu(p),g=p?function(t){var e=mu(t*=p)/m,n=mu(p-t)/m,i=n*u+e*h,r=n*d+e*f,o=n*c+e*l;return[su(r,i)*ru,su(o,yu(i*i+r*r))*ru]}:function(){return[n*ru,i*ru]};return g.distance=p,g},Vh=t=>t,Xh=new M,$h=new M,Kh={point:Su,lineStart:Su,lineEnd:Su,polygonStart:function(){Kh.lineStart=Jh,Kh.lineEnd=tf},polygonEnd:function(){Kh.lineStart=Kh.lineEnd=Kh.point=Su,Xh.add(au($h)),$h=new M},result:function(){var t=Xh/2;return Xh=new M,t}};function Jh(){Kh.point=Zh}function Zh(t,e){Kh.point=Qh,Fh=Wh=t,Gh=Uh=e}function Qh(t,e){$h.add(Uh*t-Wh*e),Wh=t,Uh=e}function tf(){Qh(Fh,Gh)}var ef=Kh,nf=1/0,rf=nf,of=-nf,af=of;var cf,sf,lf,uf,df={point:function(t,e){t<nf&&(nf=t);t>of&&(of=t);e<rf&&(rf=e);e>af&&(af=e)},lineStart:Su,lineEnd:Su,polygonStart:Su,polygonEnd:Su,result:function(){var t=[[nf,rf],[of,af]];return of=af=-(rf=nf=1/0),t}},hf=0,ff=0,pf=0,mf=0,gf=0,yf=0,vf=0,bf=0,xf=0,_f={point:Sf,lineStart:wf,lineEnd:Lf,polygonStart:function(){_f.lineStart=kf,_f.lineEnd=Cf},polygonEnd:function(){_f.point=Sf,_f.lineStart=wf,_f.lineEnd=Lf},result:function(){var t=xf?[vf/xf,bf/xf]:yf?[mf/yf,gf/yf]:pf?[hf/pf,ff/pf]:[NaN,NaN];return hf=ff=pf=mf=gf=yf=vf=bf=xf=0,t}};function Sf(t,e){hf+=t,ff+=e,++pf}function wf(){_f.point=Af}function Af(t,e){_f.point=Ef,Sf(lf=t,uf=e)}function Ef(t,e){var n=t-lf,i=e-uf,r=yu(n*n+i*i);mf+=r*(lf+t)/2,gf+=r*(uf+e)/2,yf+=r,Sf(lf=t,uf=e)}function Lf(){_f.point=Sf}function kf(){_f.point=Tf}function Cf(){Mf(cf,sf)}function Tf(t,e){_f.point=Mf,Sf(cf=lf=t,sf=uf=e)}function Mf(t,e){var n=t-lf,i=e-uf,r=yu(n*n+i*i);mf+=r*(lf+t)/2,gf+=r*(uf+e)/2,yf+=r,vf+=(r=uf*t-lf*e)*(lf+t),bf+=r*(uf+e),xf+=3*r,Sf(lf=t,uf=e)}var qf=_f;function If(t){this._context=t}If.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,iu)}},result:Su};var Of,Pf,Nf,Df,Bf,jf=new M,Rf={point:Su,lineStart:function(){Rf.point=Hf},lineEnd:function(){Of&&zf(Pf,Nf),Rf.point=Su},polygonStart:function(){Of=!0},polygonEnd:function(){Of=null},result:function(){var t=+jf;return jf=new M,t}};function Hf(t,e){Rf.point=zf,Pf=Df=t,Nf=Bf=e}function zf(t,e){Df-=t,Bf-=e,jf.add(yu(Df*Df+Bf*Bf)),Df=t,Bf=e}var Ff=Rf;let Gf,Wf,Uf,Yf;class Vf{constructor(t){this._append=null==t?Xf:function(t){const e=Math.floor(t);if(!(e>=0))throw new RangeError("invalid digits: "+t);if(e>15)return Xf;if(e!==Gf){const t=10**e;Gf=e,Wf=function(e){let n=1;this._+=e[0];for(const i=e.length;n<i;++n)this._+=Math.round(arguments[n]*t)/t+e[n]}}return Wf}(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(t,e){switch(this._point){case 0:this._append`M${t},${e}`,this._point=1;break;case 1:this._append`L${t},${e}`;break;default:if(this._append`M${t},${e}`,this._radius!==Uf||this._append!==Wf){const t=this._radius,e=this._;this._="",this._append`m0,${t}a${t},${t} 0 1,1 0,${-2*t}a${t},${t} 0 1,1 0,${2*t}z`,Uf=t,Wf=this._append,Yf=this._,this._=e}this._+=Yf}}result(){const t=this._;return this._="",t.length?t:null}}function Xf(t){let e=1;this._+=t[0];for(const n=t.length;e<n;++e)this._+=arguments[e]+t[e]}var $f=function(t,e){let n,i,r=3,o=4.5;function a(t){return t&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),Ou(t,n(i))),i.result()}return a.area=function(t){return Ou(t,n(ef)),ef.result()},a.measure=function(t){return Ou(t,n(Ff)),Ff.result()},a.bounds=function(t){return Ou(t,n(df)),df.result()},a.centroid=function(t){return Ou(t,n(qf)),qf.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,Vh):(t=e).stream,a):t},a.context=function(t){return arguments.length?(i=null==t?(e=null,new Vf(r)):new If(e=t),"function"!=typeof o&&i.pointRadius(o),a):e},a.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(i.pointRadius(+t),+t),a):o},a.digits=function(t){if(!arguments.length)return r;if(null==t)r=null;else{const e=Math.floor(t);if(!(e>=0))throw new RangeError("invalid digits: "+t);r=e}return null===e&&(i=new Vf(r)),a},a.projection(t).digits(r).context(e)},Kf=function(t){return{stream:Jf(t)}};function Jf(t){return function(e){var n=new Zf;for(var i in t)n[i]=t[i];return n.stream=e,n}}function Zf(){}function Qf(t,e,n){var i=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=i&&t.clipExtent(null),Ou(n,t.stream(df)),e(df.result()),null!=i&&t.clipExtent(i),t}function tp(t,e,n){return Qf(t,(function(n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),a=+e[0][0]+(i-o*(n[1][0]+n[0][0]))/2,c=+e[0][1]+(r-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,c])}),n)}function ep(t,e,n){return tp(t,[[0,0],e],n)}function np(t,e,n){return Qf(t,(function(n){var i=+e,r=i/(n[1][0]-n[0][0]),o=(i-r*(n[1][0]+n[0][0]))/2,a=-r*n[0][1];t.scale(150*r).translate([o,a])}),n)}function ip(t,e,n){return Qf(t,(function(n){var i=+e,r=i/(n[1][1]-n[0][1]),o=-r*n[0][0],a=(i-r*(n[1][1]+n[0][1]))/2;t.scale(150*r).translate([o,a])}),n)}Zf.prototype={constructor:Zf,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var rp=lu(30*ou),op=function(t,e){return+e?function(t,e){function n(i,r,o,a,c,s,l,u,d,h,f,p,m,g){var y=l-i,v=u-r,b=y*y+v*v;if(b>4*e&&m--){var x=a+h,_=c+f,S=s+p,w=yu(x*x+_*_+S*S),A=xu(S/=w),E=au(au(S)-1)<1e-6||au(o-d)<1e-6?(o+d)/2:su(_,x),L=t(E,A),k=L[0],C=L[1],T=k-i,M=C-r,q=v*T-y*M;(q*q/b>e||au((y*T+v*M)/b-.5)>.3||a*h+c*f+s*p<rp)&&(n(i,r,o,a,c,s,k,C,E,x/=w,_/=w,S,m,g),g.point(k,C),n(k,C,E,x,_,S,l,u,d,h,f,p,m,g))}}return function(e){var i,r,o,a,c,s,l,u,d,h,f,p,m={point:g,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),m.lineStart=x},polygonEnd:function(){e.polygonEnd(),m.lineStart=y}};function g(n,i){n=t(n,i),e.point(n[0],n[1])}function y(){u=NaN,m.point=v,e.lineStart()}function v(i,r){var o=td([i,r]),a=t(i,r);n(u,d,l,h,f,p,u=a[0],d=a[1],l=i,h=o[0],f=o[1],p=o[2],16,e),e.point(u,d)}function b(){m.point=g,e.lineEnd()}function x(){y(),m.point=_,m.lineEnd=S}function _(t,e){v(i=t,e),r=u,o=d,a=h,c=f,s=p,m.point=v}function S(){n(u,d,l,h,f,p,r,o,i,a,c,s,16,e),m.lineEnd=b,b()}return m}}(t,e):function(t){return Jf({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)};var ap=Jf({point:function(t,e){this.stream.point(t*ou,e*ou)}});function cp(t,e,n,i,r,o){if(!o)return function(t,e,n,i,r){function o(o,a){return[e+t*(o*=i),n-t*(a*=r)]}return o.invert=function(o,a){return[(o-e)/t*i,(n-a)/t*r]},o}(t,e,n,i,r);var a=lu(o),c=mu(o),s=a*t,l=c*t,u=a/t,d=c/t,h=(c*n-a*e)/t,f=(c*e+a*n)/t;function p(t,o){return[s*(t*=i)-l*(o*=r)+e,n-l*t-s*o]}return p.invert=function(t,e){return[i*(u*t-d*e+h),r*(f-d*t-u*e)]},p}function sp(t){return lp((function(){return t}))()}function lp(t){var e,n,i,r,o,a,c,s,l,u,d=150,h=480,f=250,p=0,m=0,g=0,y=0,v=0,b=0,x=1,_=1,S=null,w=fh,A=null,E=Vh,L=.5;function k(t){return s(t[0]*ou,t[1]*ou)}function C(t){return(t=s.invert(t[0],t[1]))&&[t[0]*ru,t[1]*ru]}function T(){var t=cp(d,0,0,x,_,b).apply(null,e(p,m)),i=cp(d,h-t[0],f-t[1],x,_,b);return n=$d(g,y,v),c=Vd(e,i),s=Vd(n,c),a=op(c,L),M()}function M(){return l=u=null,k}return k.stream=function(t){return l&&u===t?l:l=ap(function(t){return Jf({point:function(e,n){var i=t(e,n);return this.stream.point(i[0],i[1])}})}(n)(w(a(E(u=t)))))},k.preclip=function(t){return arguments.length?(w=t,S=void 0,M()):w},k.postclip=function(t){return arguments.length?(E=t,A=i=r=o=null,M()):E},k.clipAngle=function(t){return arguments.length?(w=+t?ph(S=t*ou):(S=null,fh),M()):S*ru},k.clipExtent=function(t){return arguments.length?(E=null==t?(A=i=r=o=null,Vh):mh(A=+t[0][0],i=+t[0][1],r=+t[1][0],o=+t[1][1]),M()):null==A?null:[[A,i],[r,o]]},k.scale=function(t){return arguments.length?(d=+t,T()):d},k.translate=function(t){return arguments.length?(h=+t[0],f=+t[1],T()):[h,f]},k.center=function(t){return arguments.length?(p=t[0]%360*ou,m=t[1]%360*ou,T()):[p*ru,m*ru]},k.rotate=function(t){return arguments.length?(g=t[0]%360*ou,y=t[1]%360*ou,v=t.length>2?t[2]%360*ou:0,T()):[g*ru,y*ru,v*ru]},k.angle=function(t){return arguments.length?(b=t%360*ou,T()):b*ru},k.reflectX=function(t){return arguments.length?(x=t?-1:1,T()):x<0},k.reflectY=function(t){return arguments.length?(_=t?-1:1,T()):_<0},k.precision=function(t){return arguments.length?(a=op(c,L=t*t),M()):yu(L)},k.fitExtent=function(t,e){return tp(k,t,e)},k.fitSize=function(t,e){return ep(k,t,e)},k.fitWidth=function(t,e){return np(k,t,e)},k.fitHeight=function(t,e){return ip(k,t,e)},function(){return e=t.apply(this,arguments),k.invert=e.invert&&C,T()}}function up(t){var e=0,n=tu/3,i=lp(t),r=i(e,n);return r.parallels=function(t){return arguments.length?i(e=t[0]*ou,n=t[1]*ou):[e*ru,n*ru]},r}function dp(t,e){var n=mu(t),i=(n+mu(e))/2;if(au(i)<1e-6)return function(t){var e=lu(t);function n(t,n){return[t*e,mu(n)/e]}return n.invert=function(t,n){return[t/e,xu(n*e)]},n}(t);var r=1+n*(2*i-n),o=yu(r)/i;function a(t,e){var n=yu(r-2*i*mu(e))/i;return[n*mu(t*=i),o-n*lu(t)]}return a.invert=function(t,e){var n=o-e,a=su(t,au(n))*gu(n);return n*i<0&&(a-=tu*gu(t)*gu(n)),[a/i,xu((r-(t*t+n*n)*i*i)/(2*i))]},a}var hp=function(){return up(dp).scale(155.424).center([0,33.6442])},fp=function(){return hp().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var pp=function(){var t,e,n,i,r,o,a=fp(),c=hp().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=hp().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,e){o=[t,e]}};function u(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(i.point(e,a),o)||(r.point(e,a),o)}function d(){return t=e=null,u}return u.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?c:r>=.166&&r<.234&&i>=-.214&&i<-.115?s:a).invert(t)},u.stream=function(n){return t&&e===n?t:(i=[a.stream(e=n),c.stream(n),s.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},u.precision=function(t){return arguments.length?(a.precision(t),c.precision(t),s.precision(t),d()):a.precision()},u.scale=function(t){return arguments.length?(a.scale(t),c.scale(.35*t),s.scale(t),u.translate(a.translate())):a.scale()},u.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],u=+t[1];return n=a.translate(t).clipExtent([[o-.455*e,u-.238*e],[o+.455*e,u+.238*e]]).stream(l),i=c.translate([o-.307
1*e,u+.201*e]).clipExtent([[o-.425*e+1e-6,u+.12*e+1e-6],[o-.214*e-1e-6,u+.234*e-1e-6]]).stream(l),r=s.translate([o-.205*e,u+.212*e]).clipExtent([[o-.214*e+1e-6,u+.166*e+1e-6],[o-.115*e-1e-6,u+.234*e-1e-6]]).stream(l),d()},u.fitExtent=function(t,e){return tp(u,t,e)},u.fitSize=function(t,e){return ep(u,t,e)},u.fitWidth=function(t,e){return np(u,t,e)},u.fitHeight=function(t,e){return ip(u,t,e)},u.scale(1070)};function mp(t){return function(e,n){var i=lu(e),r=lu(n),o=t(i*r);return o===1/0?[2,0]:[o*r*mu(e),o*mu(n)]}}function gp(t){return function(e,n){var i=yu(e*e+n*n),r=t(i),o=mu(r),a=lu(r);return[su(e*o,i*a),xu(i&&n*o/i)]}}var yp=mp((function(t){return yu(2/(1+t))}));yp.invert=gp((function(t){return 2*xu(t/2)}));var vp=function(){return sp(yp).scale(124.75).clipAngle(179.999)},bp=mp((function(t){return(t=bu(t))&&t/mu(t)}));bp.invert=gp((function(t){return t}));var xp=function(){return sp(bp).scale(79.4188).clipAngle(179.999)};function _p(t,e){return[t,fu(vu((eu+e)/2))]}_p.invert=function(t,e){return[t,2*cu(du(e))-eu]};var Sp=function(){return wp(_p).scale(961/iu)};function wp(t){var e,n,i,r=sp(t),o=r.center,a=r.scale,c=r.translate,s=r.clipExtent,l=null;function u(){var o=tu*a(),c=r(Qd(r.rotate()).invert([0,0]));return s(null==l?[[c[0]-o,c[1]-o],[c[0]+o,c[1]+o]]:t===_p?[[Math.max(c[0]-o,l),e],[Math.min(c[0]+o,n),i]]:[[l,Math.max(c[1]-o,e)],[n,Math.min(c[1]+o,i)]])}return r.scale=function(t){return arguments.length?(a(t),u()):a()},r.translate=function(t){return arguments.length?(c(t),u()):c()},r.center=function(t){return arguments.length?(o(t),u()):o()},r.clipExtent=function(t){return arguments.length?(null==t?l=e=n=i=null:(l=+t[0][0],e=+t[0][1],n=+t[1][0],i=+t[1][1]),u()):null==l?null:[[l,e],[n,i]]},u()}function Ap(t){return vu((eu+t)/2)}function Ep(t,e){var n=lu(t),i=t===e?mu(t):fu(n/lu(e))/fu(Ap(e)/Ap(t)),r=n*pu(Ap(t),i)/i;if(!i)return _p;function o(t,e){r>0?e<1e-6-eu&&(e=1e-6-eu):e>eu-1e-6&&(e=eu-1e-6);var n=r/pu(Ap(e),i);return[n*mu(i*t),r-n*lu(i*t)]}return o.invert=function(t,e){var n=r-e,o=gu(i)*yu(t*t+n*n),a=su(t,au(n))*gu(n);return n*i<0&&(a-=tu*gu(t)*gu(n)),[a/i,2*cu(pu(r/o,1/i))-eu]},o}var Lp=function(){return up(Ep).scale(109.5).parallels([30,30])};function kp(t,e){return[t,e]}kp.invert=kp;
vendor: 4,510 bytes, line 1
1var Cp=function(){return sp(kp).scale(152.63)};function Tp(t,e){var n=lu(t),i=t===e?mu(t):(n-lu(e))/(e-t),r=n/i+t;if(au(i)<1e-6)return kp;function o(t,e){var n=r-e,o=i*t;return[n*mu(o),r-n*lu(o)]}return o.invert=function(t,e){var n=r-e,o=su(t,au(n))*gu(n);return n*i<0&&(o-=tu*gu(t)*gu(n)),[o/i,r-gu(i)*yu(t*t+n*n)]},o}var Mp=function(){return up(Tp).scale(131.154).center([0,13.9389])},qp=1.340264,Ip=-.081106,Op=893e-6,Pp=.003796,Np=yu(3)/2;function Dp(t,e){var n=xu(Np*mu(e)),i=n*n,r=i*i*i;return[t*lu(n)/(Np*(qp+3*Ip*i+r*(7*Op+9*Pp*i))),n*(qp+Ip*i+r*(Op+Pp*i))]}Dp.invert=function(t,e){for(var n,i=e,r=i*i,o=r*r*r,a=0;a<12&&(o=(r=(i-=n=(i*(qp+Ip*r+o*(Op+Pp*r))-e)/(qp+3*Ip*r+o*(7*Op+9*Pp*r)))*i)*r*r,!(au(n)<1e-12));++a);return[Np*t*(qp+3*Ip*r+o*(7*Op+9*Pp*r))/lu(i),xu(mu(i)/Np)]};var Bp=function(){return sp(Dp).scale(177.158)};function jp(t,e){var n=lu(e),i=lu(t)*n;return[n*mu(t)/i,mu(e)/i]}jp.invert=gp(cu);var Rp=function(){return sp(jp).scale(144.049).clipAngle(60)},Hp=function(){var t,e,n,i,r,o,a,c=1,s=0,l=0,u=1,d=1,h=0,f=null,p=1,m=1,g=Jf({point:function(t,e){var n=b([t,e]);this.stream.point(n[0],n[1])}}),y=Vh;function v(){return p=c*u,m=c*d,o=a=null,b}function b(n){var i=n[0]*p,r=n[1]*m;if(h){var o=r*t-i*e;i=i*t+r*e,r=o}return[i+s,r+l]}return b.invert=function(n){var i=n[0]-s,r=n[1]-l;if(h){var o=r*t+i*e;i=i*t-r*e,r=o}return[i/p,r/m]},b.stream=function(t){return o&&a===t?o:o=g(y(a=t))},b.postclip=function(t){return arguments.length?(y=t,f=n=i=r=null,v()):y},b.clipExtent=function(t){return arguments.length?(y=null==t?(f=n=i=r=null,Vh):mh(f=+t[0][0],n=+t[0][1],i=+t[1][0],r=+t[1][1]),v()):null==f?null:[[f,n],[i,r]]},b.scale=function(t){return arguments.length?(c=+t,v()):c},b.translate=function(t){return arguments.length?(s=+t[0],l=+t[1],v()):[s,l]},b.angle=function(n){return arguments.length?(e=mu(h=n%360*ou),t=lu(h),v()):h*ru},b.reflectX=function(t){return arguments.length?(u=t?-1:1,v()):u<0},b.reflectY=function(t){return arguments.length?(d=t?-1:1,v()):d<0},b.fitExtent=function(t,e){return tp(b,t,e)},b.fitSize=function(t,e){return ep(b,t,e)},b.fitWidth=function(t,e){return np(b,t,e)},b.fitHeight=function(t,e){return ip(b,t,e)},b};function zp(t,e){var n=e*e,i=n*n;return[t*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),e*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}zp.invert=function(t,e){var n,i=e,r=25;do{var o=i*i,a=o*o;i-=n=(i*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(au(n)>1e-6&&--r>0);return[t/(.8707+(o=i*i)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),i]};var Fp=function(){return sp(zp).scale(175.295)};function Gp(t,e){return[lu(e)*mu(t),mu(e)]}Gp.invert=gp(xu);var Wp=function(){return sp(Gp).scale(249.5).clipAngle(90.000001)};function Up(t,e){var n=lu(e),i=1+lu(t)*n;return[n*mu(t)/i,mu(e)/i]}Up.invert=gp((function(t){return 2*cu(t)}));var Yp=function(){return sp(Up).scale(250).clipAngle(142)};function Vp(t,e){return[fu(vu((eu+e)/2)),-t]}Vp.invert=function(t,e){return[-e,2*cu(du(t))-eu]};var Xp=function(){var t=wp(Vp),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)};function $p(t,e){return t.parent===e.parent?1:2}function Kp(t,e){return t+e.x}function Jp(t,e){return Math.max(t,e.y)}var Zp=function(){var t=$p,e=1,n=1,i=!1;function r(r){var o,a=0;r.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(Kp,0)/t.length}(n),e.y=function(t){return 1+t.reduce(Jp,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var c=function(t){for(var e;e=t.children;)t=e[0];return t}(r),s=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(r),l=c.x-t(c,s)/2,u=s.x+t(s,c)/2;return r.eachAfter(i?function(t){t.x=(t.x-r.x)*e,t.y=(r.y-t.y)*n}:function(t){t.x=(t.x-l)/(u-l)*e,t.y=(1-(r.y?t.y/r.y:1))*n})}return r.separation=function(e){return arguments.length?(t=e,r):t},r.size=function(t){return arguments.length?(i=!1,e=+t[0],n=+t[1],r):i?null:[e,n]},r.nodeSize=function(t){return arguments.length?(i=!0,e=+t[0],n=+t[1],r):i?[e,n]:null},r};function Qp(t){var e=0,n=t.children,i=n&&n.length;if(i)for(;--i>=0;)e+=n[i].value;else e=1;t.value=e}function tm(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=nm)):void 0===e&&(e=em);for(var n,i,r,o,a,c=new om(t),s=[c];n=s.pop();)if((r=e(n.data))&&(a=(r=Array.from(r)).length))for(n.children=r,o=a-1;o>
vendor: 5,444 bytes, line 1
1=0;--o)s.push(i=r[o]=new om(r[o])),i.parent=n,i.depth=n.depth+1;return c.eachBefore(rm)}function em(t){return t.children}function nm(t){return Array.isArray(t)?t[1]:null}function im(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function rm(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function om(t){this.data=t,this.depth=this.height=0,this.parent=null}function am(t){return null==t?null:cm(t)}function cm(t){if("function"!=typeof t)throw new Error;return t}function sm(){return 0}om.prototype=tm.prototype={constructor:om,count:function(){return this.eachAfter(Qp)},each:function(t,e){let n=-1;for(const i of this)t.call(e,i,++n,this);return this},eachAfter:function(t,e){for(var n,i,r,o=this,a=[o],c=[],s=-1;o=a.pop();)if(c.push(o),n=o.children)for(i=0,r=n.length;i<r;++i)a.push(n[i]);for(;o=c.pop();)t.call(e,o,++s,this);return this},eachBefore:function(t,e){for(var n,i,r=this,o=[r],a=-1;r=o.pop();)if(t.call(e,r,++a,this),n=r.children)for(i=n.length-1;i>=0;--i)o.push(n[i]);return this},find:function(t,e){let n=-1;for(const i of this)if(t.call(e,i,++n,this))return i},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,i=e.children,r=i&&i.length;--r>=0;)n+=i[r].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;t=n.pop(),e=i.pop();for(;t===e;)r=t,t=n.pop(),e=i.pop();return r}(e,t),i=[e];e!==n;)e=e.parent,i.push(e);for(var r=i.length;t!==n;)i.splice(r,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return tm(this).eachBefore(im)},[Symbol.iterator]:function*(){var t,e,n,i,r=this,o=[r];do{for(t=o.reverse(),o=[];r=t.pop();)if(yield r,e=r.children)for(n=0,i=e.length;n<i;++n)o.push(e[n])}while(o.length)}};var lm=function(t){return function(){return t}};var um=function(){let t=1;return()=>(t=(1664525*t+1013904223)%4294967296)/4294967296};var dm=function(t){return hm(t,um())};function hm(t,e){for(var n,i,r=0,o=(t=function(t,e){let n,i,r=t.length;for(;r;)i=e()*r--|0,n=t[r],t[r]=t[i],t[i]=n;return t}(Array.from(t),e)).length,a=[];r<o;)n=t[r],i&&mm(i,n)?++r:(i=ym(a=fm(a,n)),r=0);return i}function fm(t,e){var n,i;if(gm(e,t))return[e];for(n=0;n<t.length;++n)if(pm(e,t[n])&&gm(vm(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(i=n+1;i<t.length;++i)if(pm(vm(t[n],t[i]),e)&&pm(vm(t[n],e),t[i])&&pm(vm(t[i],e),t[n])&&gm(bm(t[n],t[i],e),t))return[t[n],t[i],e];throw new Error}function pm(t,e){var n=t.r-e.r,i=e.x-t.x,r=e.y-t.y;return n<0||n*n<i*i+r*r}function mm(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function gm(t,e){for(var n=0;n<e.length;++n)if(!mm(t,e[n]))return!1;return!0}function ym(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return vm(t[0],t[1]);case 3:return bm(t[0],t[1],t[2])}var e}function vm(t,e){var n=t.x,i=t.y,r=t.r,o=e.x,a=e.y,c=e.r,s=o-n,l=a-i,u=c-r,d=Math.sqrt(s*s+l*l);return{x:(n+o+s/d*u)/2,y:(i+a+l/d*u)/2,r:(d+r+c)/2}}function bm(t,e,n){var i=t.x,r=t.y,o=t.r,a=e.x,c=e.y,s=e.r,l=n.x,u=n.y,d=n.r,h=i-a,f=i-l,p=r-c,m=r-u,g=s-o,y=d-o,v=i*i+r*r-o*o,b=v-a*a-c*c+s*s,x=v-l*l-u*u+d*d,_=f*p-h*m,S=(p*x-m*b)/(2*_)-i,w=(m*g-p*y)/_,A=(f*b-h*x)/(2*_)-r,E=(h*y-f*g)/_,L=w*w+E*E-1,k=2*(o+S*w+A*E),C=S*S+A*A-o*o,T=-(Math.abs(L)>1e-6?(k+Math.sqrt(k*k-4*L*C))/(2*L):C/k);return{x:i+S+w*T,y:r+A+E*T,r:T}}function xm(t,e,n){var i,r,o,a,c=t.x-e.x,s=t.y-e.y,l=c*c+s*s;l?(r=e.r+n.r,r*=r,a=t.r+n.r,r>(a*=a)?(i=(l+a-r)/(2*l),o=Math.sqrt(Math.max(0,a/l-i*i)),n.x=t.x-i*c-o*s,n.y=t.y-i*s+o*c):(i=(l+r-a)/(2*l),o=Math.sqrt(Math.max(0,r/l-i*i)),n.x=e.x+i*c-o*s,n.y=e.y+i*s+o*c)):(n.x=e.x+n.r,n.y=e.y)}function _m(t,e){var n=t.r+e.r-1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function Sm(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,o=(e.y*n.r+n.y*e.r)/i;return r*r+o*o}function wm(t){this._=t,this.next=null,this.previous=null}function Am(t,e){if(!(a=(n=t,t="object"==typeof n&&"length"in n?n:Array.from(n)).length))return 0;var n,i,r,o,a,c,s,l,u,d,h,f;if((i=t[0]).x=0,i.y=0,!(a>1))return i.r;if(r=t[1],i.x=-r.r,r.x=i.r,r.y=0,!(a>2))return i.r+r.r;xm(r,i,o=t[2]),i=new wm(i),r=new wm(r),o=new wm(o),i.next=o.previous=r,r.next=i.previous=o,o.next=r.previous=i;t:for(l=3;l<a;++l){xm(i._,r._,o=t[l]),o=new wm(o),u=r.next,d=i.previous,h=r._.r,f=i._.r;do{if(h<=f){if(_m(u._,o._)){r=u,i.next=r,r.previous=i,--l;continue t}h+=u._.r,u=u.next}else{if(_m(d._,o._)){(i=d).next=r,r.previous=i,--l;continue t}f+=d._.r,d=d.previous}}while(u!==d.next);for(o.previous=i,o.next=r,i.next=r.previous=r=o,c=Sm(i);(o=o.next)!==r;)(s=Sm(o))<c&&(i=o,c=s);r=i.next}for(i=[r._],o=r;(o=o.next)!==r;)i.push(o._);for(o=hm(i,e),l=0;l<a;++l)(i=t[l]).x-=o.x,i.y-=o.y;return o.r}var Em=function(t){return Am(t,um()),t};function Lm(t){return Math.sqrt(t.value)}var km=function(){var t=null,e=1,n=1,i=sm;function r(r){const o=um();return r.x=e/2,r.y=n/2,t?r.eachBefore(Cm(t)).eachAfter(Tm(i,.5,o)).eachBefore(Mm(1)):r.eachBefore(Cm(Lm)).eachAfter(Tm(sm,1,o)).eachAfter(Tm(i,r.r/Math.min(e,n),o)).eachBefore(Mm(Math.min(e,n)/(2*r.r))),r}
vendor: 14,932 bytes, line 1
1return r.radius=function(e){return arguments.length?(t=am(e),r):t},r.size=function(t){return arguments.length?(e=+t[0],n=+t[1],r):[e,n]},r.padding=function(t){return arguments.length?(i="function"==typeof t?t:lm(+t),r):i},r};function Cm(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function Tm(t,e,n){return function(i){if(r=i.children){var r,o,a,c=r.length,s=t(i)*e||0;if(s)for(o=0;o<c;++o)r[o].r+=s;if(a=Am(r,n),s)for(o=0;o<c;++o)r[o].r-=s;i.r=a+s}}}function Mm(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var qm=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Im=function(t,e,n,i,r){for(var o,a=t.children,c=-1,s=a.length,l=t.value&&(i-e)/t.value;++c<s;)(o=a[c]).y0=n,o.y1=r,o.x0=e,o.x1=e+=o.value*l},Om=function(){var t=1,e=1,n=0,i=!1;function r(r){var o=r.height+1;return r.x0=r.y0=n,r.x1=t,r.y1=e/o,r.eachBefore(function(t,e){return function(i){i.children&&Im(i,i.x0,t*(i.depth+1)/e,i.x1,t*(i.depth+2)/e);var r=i.x0,o=i.y0,a=i.x1-n,c=i.y1-n;a<r&&(r=a=(r+a)/2),c<o&&(o=c=(o+c)/2),i.x0=r,i.y0=o,i.x1=a,i.y1=c}}(e,o)),i&&r.eachBefore(qm),r}return r.round=function(t){return arguments.length?(i=!!t,r):i},r.size=function(n){return arguments.length?(t=+n[0],e=+n[1],r):[t,e]},r.padding=function(t){return arguments.length?(n=+t,r):n},r},Pm={depth:-1},Nm={},Dm={};function Bm(t){return t.id}function jm(t){return t.parentId}var Rm=function(){var t,e=Bm,n=jm;function i(i){var r,o,a,c,s,l,u,d,h=Array.from(i),f=e,p=n,m=new Map;if(null!=t){const e=h.map((e,n)=>function(t){let e=(t=""+t).length;zm(t,e-1)&&!zm(t,e-2)&&(t=t.slice(0,-1));return"/"===t[0]?t:"/"+t}(t(e,n,i))),n=e.map(Hm),r=new Set(e).add("");for(const t of n)r.has(t)||(r.add(t),e.push(t),n.push(Hm(t)),h.push(Dm));f=(t,n)=>e[n],p=(t,e)=>n[e]}for(a=0,r=h.length;a<r;++a)o=h[a],l=h[a]=new om(o),null!=(u=f(o,a,i))&&(u+="")&&(d=l.id=u,m.set(d,m.has(d)?Nm:l)),null!=(u=p(o,a,i))&&(u+="")&&(l.parent=u);for(a=0;a<r;++a)if(u=(l=h[a]).parent){if(!(s=m.get(u)))throw new Error("missing: "+u);if(s===Nm)throw new Error("ambiguous: "+u);s.children?s.children.push(l):s.children=[l],l.parent=s}else{if(c)throw new Error("multiple roots");c=l}if(!c)throw new Error("no root");if(null!=t){for(;c.data===Dm&&1===c.children.length;)c=c.children[0],--r;for(let t=h.length-1;t>=0&&(l=h[t]).data===Dm;--t)l.data=null}if(c.parent=Pm,c.eachBefore((function(t){t.depth=t.parent.depth+1,--r})).eachBefore(rm),c.parent=null,r>0)throw new Error("cycle");return c}return i.id=function(t){return arguments.length?(e=am(t),i):e},i.parentId=function(t){return arguments.length?(n=am(t),i):n},i.path=function(e){return arguments.length?(t=am(e),i):t},i};function Hm(t){let e=t.length;if(e<2)return"";for(;--e>1&&!zm(t,e););return t.slice(0,e)}function zm(t,e){if("/"===t[e]){let n=0;for(;e>0&&"\\"===t[--e];)++n;if(0==(1&n))return!0}return!1}function Fm(t,e){return t.parent===e.parent?1:2}function Gm(t){var e=t.children;return e?e[0]:t.t}function Wm(t){var e=t.children;return e?e[e.length-1]:t.t}function Um(t,e,n){var i=n/(e.i-t.i);e.c-=i,e.s+=n,t.c+=i,e.z+=n,e.m+=n}function Ym(t,e,n){return t.a.parent===e.parent?t.a:n}function Vm(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Vm.prototype=Object.create(om.prototype);var Xm=function(){var t=Fm,e=1,n=1,i=null;function r(r){var s=function(t){for(var e,n,i,r,o,a=new Vm(t,0),c=[a];e=c.pop();)if(i=e._.children)for(e.children=new Array(o=i.length),r=o-1;r>=0;--r)c.push(n=e.children[r]=new Vm(i[r],r)),n.parent=e;return(a.parent=new Vm(null,0)).children=[a],a}(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),i)r.eachBefore(c);else{var l=r,u=r,d=r;r.eachBefore((function(t){t.x<l.x&&(l=t),t.x>u.x&&(u=t),t.depth>d.depth&&(d=t)}));var h=l===u?1:t(l,u)/2,f=h-l.x,p=e/(u.x+h+f),m=n/(d.depth||1);r.eachBefore((function(t){t.x=(t.x+f)*p,t.y=t.depth*m}))}return r}function o(e){var n=e.children,i=e.parent.children,r=e.i?i[e.i-1]:null;if(n){!function(t){for(var e,n=0,i=0,r=t.children,o=r.length;--o>=0;)(e=r[o]).z+=n,e.m+=n,n+=e.s+(i+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;r?(e.z=r.z+t(e._,r._),e.m=e.z-o):e.z=o}else r&&(e.z=r.z+t(e._,r._));e.parent.A=function(e,n,i){if(n){for(var r,o=e,a=e,c=n,s=o.parent.children[0],l=o.m,u=a.m,d=c.m,h=s.m;c=Wm(c),o=Gm(o),c&&o;)s=Gm(s),(a=Wm(a)).a=e,(r=c.z+d-o.z-l+t(c._,o._))>0&&(Um(Ym(c,e,i),e,r),l+=r,u+=r),d+=c.m,l+=o.m,h+=s.m,u+=a.m;c&&!Wm(a)&&(a.t=c,a.m+=d-u),o&&!Gm(s)&&(s.t=o,s.m+=l-h,i=e)}return i}(e,r,e.parent.A||i[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function c(t){t.x*=e,t.y=t.depth*n}return r.separation=function(e){return arguments.length?(t=e,r):t},r.size=function(t){return arguments.length?(i=!1,e=+t[0],n=+t[1],r):i?null:[e,n]},r.nodeSize=function(t){return arguments.length?(i=!0,e=+t[0],n=+t[1],r):i?[e,n]:null},r},$m=function(t,e,n,i,r){for(var o,a=t.children,c=-1,s=a.length,l=t.value&&(r-n)/t.value;++c<s;)(o=a[c]).x0=e,o.x1=i,o.y0=n,o.y1=n+=o.value*l},Km=(1+Math.sqrt(5))/2;function Jm(t,e,n,i,r,o){for(var a,c,s,l,u,d,h,f,p,m,g,y=[],v=e.children,b=0,x=0,_=v.length,S=e.value;b<_;){s=r-n,l=o-i;do{u=v[x++].value}while(!u&&x<_);for(d=h=u,g=u*u*(m=Math.max(l/s,s/l)/(S*t)),p=Math.max(h/g,g/d);x<_;++x){if(u+=c=v[x].value,c<d&&(d=c),c>h&&(h=c),g=u*u*m,(f=Math.max(h/g,g/d))>p){u-=c;break}p=f}y.push(a={value:u,dice:s<l,children:v.slice(b,x)}),a.dice?Im(a,n,i,r,S?i+=l*u/S:o):$m(a,n,i,S?n+=s*u/S:r,o),S-=u,b=x}return y}var Zm=function t(e){function n(t,n,i,r,o){Jm(e,t,n,i,r,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Km),Qm=function(){var t=Zm,e=!1,n=1,i=1,r=[0],o=sm,a=sm,c=sm,s=sm,l=sm;function u(t){return t.x0=t.y0=0,t.x1=n,t.y1=i,t.eachBefore(d),r=[0],e&&t.eachBefore(qm),t}function d(e){var n=r[e.depth],i=e.x0+n,u=e.y0+n,d=e.x1-n,h=e.y1-n;d<i&&(i=d=(i+d)/2),h<u&&(u=h=(u+h)/2),e.x0=i,e.y0=u,e.x1=d,e.y1=h,e.children&&(n=r[e.depth+1]=o(e)/2,i+=l(e)-n,u+=a(e)-n,(d-=c(e)-n)<i&&(i=d=(i+d)/2),(h-=s(e)-n)<u&&(u=h=(u+h)/2),t(e,i,u,d,h))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(n=+t[0],i=+t[1],u):[n,i]},u.tile=function(e){return arguments.length?(t=cm(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:lm(+t),u):o},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:lm(+t),u):a},u.paddingRight=function(t){return arguments.length?(c="function"==typeof t?t:lm(+t),u):c},u.paddingBottom=function(t){return arguments.length?(s="function"==typeof t?t:lm(+t),u):s},u.paddingLeft=function(t){return arguments.length?(l="function"==typeof t?t:lm(+t),u):l},u},tg=function(t,e,n,i,r){var o,a,c=t.children,s=c.length,l=new Array(s+1);for(l[0]=a=o=0;o<s;++o)l[o+1]=a+=c[o].value;!function t(e,n,i,r,o,a,s){if(e>=n-1){var u=c[e];return u.x0=r,u.y0=o,u.x1=a,void(u.y1=s)}var d=l[e],h=i/2+d,f=e+1,p=n-1;for(;f<p;){var m=f+p>>>1;l[m]<h?f=m+1:p=m}h-l[f-1]<l[f]-h&&e+1<f&&--f;var g=l[f]-d,y=i-g;if(a-r>s-o){var v=i?(r*y+a*g)/i:a;t(e,f,g,r,o,v,s),t(f,n,y,v,o,a,s)}else{var b=i?(o*y+s*g)/i:s;t(e,f,g,r,o,a,b),t(f,n,y,r,b,a,s)}}(0,s,t.value,e,n,i,r)},eg=function(t,e,n,i,r){(1&t.depth?$m:Im)(t,e,n,i,r)},ng=function t(e){function n(t,n,i,r,o){if((a=t._squarify)&&a.ratio===e)for(var a,c,s,l,u,d=-1,h=a.length,f=t.value;++d<h;){for(s=(c=a[d]).children,l=c.value=0,u=s.length;l<u;++l)c.value+=s[l].value;c.dice?Im(c,n,i,r,f?i+=(o-i)*c.value/f:o):$m(c,n,i,f?n+=(r-n)*c.value/f:r,o),f-=c.value}else t._squarify=a=Jm(e,t,n,i,r,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Km),ig=function(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}},rg=function(t,e){var n=Ii(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}},og=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}};function ag(t){return((t=Math.exp(t))+1/t)/2}var cg=function t(e,n,i){function r(t,r){var o,a,c=t[0],s=t[1],l=t[2],u=r[0],d=r[1],h=r[2],f=u-c,p=d-s,m=f*f+p*p;if(m<1e-12)a=Math.log(h/l)/e,o=function(t){return[c+t*f,s+t*p,l*Math.exp(e*t*a)]};else{var g=Math.sqrt(m),y=(h*h-l*l+i*m)/(2*l*n*g),v=(h*h-l*l-i*m)/(2*h*n*g),b=Math.log(Math.sqrt(y*y+1)-y),x=Math.log(Math.sqrt(v*v+1)-v);a=(x-b)/e,o=function(t){var i,r=t*a,o=ag(b),u=l/(n*g)*(o*(i=e*r+b,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[c+u*f,s+u*p,l*o/ag(e*r+b)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return r.rho=function(e){var n=Math.max(.001,+e),i=n*n;return t(n,i,i*i)},r}(Math.SQRT2,2,4);function sg(t){return function(e,n){var i=t((e=Si(e)).h,(n=Si(n)).h),r=Pi(e.s,n.s),o=Pi(e.l,n.l),a=Pi(e.opacity,n.opacity);return function(t){return e.h=i(t),e.s=r(t),e.l=o(t),e.opacity=a(t),e+""}}}var lg=sg(Ii),ug=sg(Pi);function dg(t,e){var n=Pi((t=Ma(t)).l,(e=Ma(e)).l),i=Pi(t.a,e.a),r=Pi(t.b,e.b),o=Pi(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=r(e),t.opacity=o(e),t+""}}function hg(t){return function(e,n){var i=t((e=ja(e)).h,(n=ja(n)).h),r=Pi(e.c,n.c),o=Pi(e.l,n.l),a=Pi(e.opacity,n.opacity);return function(t){return e.h=i(t),e.c=r(t),e.l=o(t),e.opacity=a(t),e+""}}}var fg=hg(Ii),pg=hg(Pi);function mg(t){return function e(n){function i(e,i){var r=t((e=Ya(e)).h,(i=Ya(i)).h),o=Pi(e.s,i.s),a=Pi(e.l,i.l),c=Pi(e.opacity,i.opacity);return function(t){return e.h=r(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=c(t),e+""}}return n=+n,i.gamma=e,i}(1)}var gg=mg(Ii),yg=mg(Pi);function vg(t,e){void 0===e&&(e=t,t=Ji);for(var n=0,i=e.length-1,r=e[0],o=new Array(i<0?0:i);n<i;)o[n]=t(r,r=e[++n]);return function(t){var e=Math.max(0,Math.min(i-1,Math.floor(t*=i)));return o[e](t-e)}}var bg=function(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t(i/(e-1));return n},xg=function(t){for(var e,n=-1,i=t.length,r=t[i-1],o=0;++n<i;)e=r,r=t[n],o+=e[1]*r[0]-e[0]*r[1];return o/2},_g=function(t){for(var e,n,i=-1,r=t.length,o=0,a=0,c=t[r-1],s=0;++i<r;)e=c,c=t[i],s+=n=e[0]*c[1]-c[0]*e[1],o+=(e[0]+c[0])*n,a+=(e[1]+c[1])*n;return[o/(s*=3),a/s]};function Sg(t,e){return t[0]-e[0]||t[1]-e[1]}function wg(t){const e=t.length,n=[0,1];let i,r=2;for(i=2;i<e;++i){for(;r>1&&(o=t[n[r-2]],a=t[n[r-1]],c=t[i],(a[0]-o[0])*(c[1]-o[1])-(a[1]-o[1])*(c[0]-o[0])<=0);)--r;n[r++]=i}var o,a,c;return n.slice(0,r)}var Ag=function(t){if((n=t.length)<3)return null;var e,n,i=new Array(n),r=new Array(n);for(e=0;e<n;++e)i[e]=[+t[e][0],+t[e][1],e];for(i.sort(Sg),e=0;e<n;++e)r[e]=[i[e][0],-i[e][1]];var o=wg(i),a=wg(r),c=a[0]===o[0],s=a[a.length-1]===o[o.length-1],l=[];for(e=o.length-1;e>=0;--e)l.push(t[i[o[e]][2]]);for(e=+c;e<a.length-s;++e)l.push(t[i[a[e]][2]]);return l},Eg=function(t,e){for(var n,i,r=t.length,o=t[r-1],a=e[0],c=e[1],s=o[0],l=o[1],u=!1,d=0;d<r;++d)n=(o=t[d])[0],(i=o[1])>c!=l>c&&a<(s-n)*(c-i)/(l-i)+n&&(u=!u),s=n,l=i;return u},Lg=function(t){for(var e,n,i=-1,r=t.length,o=t[r-1],a=o[0],c=o[1],s=0;++i<r;)e=a,n=c,e-=a=(o=t[i])[0],n-=c=o[1],s+=Math.hypot(e,n);return s},kg=Math.random,Cg=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(kg),Tg=function t(e){function n(t,n){return arguments.length<2&&(n=t,t=0),t=Math.floor(t),n=Math.floor(n)-t,function(){return Math.floor(e()*n+t)}}return n.source=t,n}(kg),Mg=function t(e){function n(t,n){var i,r;return t=null==t?0:+t,n=null==n?1:+n,function(){var o;if(null!=i)o=i,i=null;else do{i=2*e()-1,o=2*e()-1,r=i*i+o*o}while(!r||r>1);return t+n*o*Math.sqrt(-2*Math.log(r)/r)}}return n.source=t,n}(kg),qg=function t(e){var n=Mg.source(e);function i(){var t=n.apply(this,arguments);return function(){return Math.exp(t())}}return i.source=t,i}(kg),Ig=function t(e){function n(t){return(t=+t)<=0?()=>0:function(){for(var n=0,i=t;i>1;--i)n+=e();return n+i*e()}}return n.source=t,n}(kg),Og=function t(e){var n=Ig.source(e);function i(t){if(0==(t=+t))return e;var i=n(t);return function(){return i()/t}}return i.source=t,i}(kg),Pg=function t(e){function n(t){return function(){return-Math.log1p(-e())/t}}return n.source=t,n}(kg),Ng=function t(e){function n(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-e(),t)}}return n.source=t,n}(kg),Dg=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(e()+t)}}return n.source=t,n}(kg),Bg=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-e())/t)})}return n.source=t,n}(kg),jg=function t(e){var n=Mg.source(e)();function i(t,i){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(i=null==i?1:+i,1===t)return()=>-Math.log1p(-e())*i;var r=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(r)),a=t<1?()=>Math.pow(e(),1/t):()=>1;return function(){do{do{var t=n(),c=1+o*t}while(c<=0);c*=c*c;var s=1-e()}while(s>=1-.0331*t*t*t*t&&Math.log(s)>=.5*t*t+r*(1-c+Math.log(c)));return r*c*a()*i}}return i.source=t,i}(kg),Rg=function t(e){var n=jg.source(e);function i(t,e){var i=n(t),r=n(e);return function(){var t=i();return 0===t?0:t/(t+r())}}return i.source=t,i}(kg),Hg=function t(e){var n=Bg.source(e),i=Rg.source(e);function r(t,e){return t=+t,(e=+e)>=1?()=>t:e<=0?()=>0:function(){for(var r=0,o=t,a=e;o*a>16&&o*(1-a)>16;){var c=Math.floor((o+1)*a),s=i(c,o-c+1)();s<=a?(r+=c,o-=c,a=(a-s)/(1-s)):(o=c-1,a/=s)}for(var l=a<.5,u=n(l?a:1-a),d=u(),h=0;d<=o;++h)d+=u();return r+(l?h:o-h)}}return r.source=t,r}(kg),zg=function t(e){function n(t,n,i){var r;return 0==(t=+t)?r=t=>-Math.log(t):(t=1/t,r=e=>Math.pow(e,t)),n=null==n?0:+n,i=null==i?1:+i,function(){return n+i*r(-Math.log1p(-e()))}}return n.source=t,n}(kg),Fg=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){return t+n*Math.tan(Math.PI*e())}}return n.source=t,n}(kg),Gg=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){var i=e();return t+n*Math.log(i/(1-i))}}return n.source=t,n}(kg),Wg=function t(e){var n=jg.source(e),i=Hg.source(e);function r(t){return function(){for(var r=0,o=t;o>16;){var a=Math.floor(.875*o),c=n(a)();if(c>o)return r+i(a-1,o/c)();r+=a,o-=c}for(var s=-Math.log1p(-e()),l=0;s<=o;++l)s-=Math.log1p(-e());return r+l}}return r.source=t,r}(kg);const Ug=1/4294967296;function Yg(t=Math.random()){let e=0|(0<=t&&t<1?t/Ug:Math.abs(t));return()=>(e=1664525*e+1013904223|0,Ug*(e>>>0))}function Vg(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Xg(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}
vendor: 31,611 bytes, line 1
1const $g=Symbol("implicit");function Kg(){var t=new O,e=[],n=[],i=$g;function r(r){let o=t.get(r);if(void 0===o){if(i!==$g)return i;t.set(r,o=e.push(r)-1)}return n[o%n.length]}return r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new O;for(const i of n)t.has(i)||t.set(i,e.push(i)-1);return r},r.range=function(t){return arguments.length?(n=Array.from(t),r):n.slice()},r.unknown=function(t){return arguments.length?(i=t,r):i},r.copy=function(){return Kg(e,n).unknown(i)},Vg.apply(r,arguments),r}function Jg(){var t,e,n=Kg().unknown(void 0),i=n.domain,r=n.range,o=0,a=1,c=!1,s=0,l=0,u=.5;function d(){var n=i().length,d=a<o,h=d?a:o,f=d?o:a;t=(f-h)/Math.max(1,n-s+2*l),c&&(t=Math.floor(t)),h+=(f-h-t*(n-s))*u,e=t*(1-s),c&&(h=Math.round(h),e=Math.round(e));var p=Pt(n).map((function(e){return h+t*e}));return r(d?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),d()):i()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,d()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,c=!0,d()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(c=!!t,d()):c},n.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),d()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),d()):s},n.paddingOuter=function(t){return arguments.length?(l=+t,d()):l},n.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),d()):u},n.copy=function(){return Jg(i(),[o,a]).round(c).paddingInner(s).paddingOuter(l).align(u)},Vg.apply(d(),arguments)}function Zg(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Zg(e())},t}function Qg(){return Zg(Jg.apply(null,arguments).paddingInner(1))}function ty(t){return+t}var ey=[0,1];function ny(t){return t}function iy(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function ry(t,e,n){var i=t[0],r=t[1],o=e[0],a=e[1];return r<i?(i=iy(r,i),o=n(a,o)):(i=iy(i,r),o=n(o,a)),function(t){return o(i(t))}}function oy(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),o=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<i;)r[a]=iy(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=f(t,e,1,i)-1;return o[n](r[n](e))}}function ay(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function cy(){var t,e,n,i,r,o,a=ey,c=ey,s=Ji,l=ny;function u(){var t,e,n,s=Math.min(a.length,c.length);return l!==ny&&(t=a[0],e=a[s-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),i=s>2?oy:ry,r=o=null,d}function d(e){return null==e||isNaN(e=+e)?n:(r||(r=i(a.map(t),c,s)))(t(l(e)))}return d.invert=function(n){return l(e((o||(o=i(c,a.map(t),Wi)))(n)))},d.domain=function(t){return arguments.length?(a=Array.from(t,ty),u()):a.slice()},d.range=function(t){return arguments.length?(c=Array.from(t),u()):c.slice()},d.rangeRound=function(t){return c=Array.from(t),s=og,u()},d.clamp=function(t){return arguments.length?(l=!!t||ny,u()):l!==ny},d.interpolate=function(t){return arguments.length?(s=t,u()):s},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,i){return t=n,e=i,u()}}function sy(){return cy()(ny,ny)}function ly(t,e,n,i){var r,o=dt(t,e,n);switch((i=jl(null==i?",f":i)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(r=Zl(o,a))||(i.precision=r),Gl(i,a);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=Ql(o,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=Jl(o))||(i.precision=r-2*("%"===i.type))}return Fl(i)}function uy(t){var e=t.domain;return t.ticks=function(t){var n=e();return lt(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return ly(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,r,o=e(),a=0,c=o.length-1,s=o[a],l=o[c],u=10;for(l<s&&(r=s,s=l,l=r,r=a,a=c,c=r);u-- >0;){if((r=ut(s,l,n))===i)return o[a]=s,o[c]=l,e(o);if(r>0)s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r}i=r}return t},t}function dy(){var t=sy();return t.copy=function(){return ay(t,dy())},Vg.apply(t,arguments),uy(t)}function hy(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,ty),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return hy(t).unknown(e)},t=arguments.length?Array.from(t,ty):[0,1],uy(n)}function fy(t,e){var n,i=0,r=(t=t.slice()).length-1,o=t[i],a=t[r];return a<o&&(n=i,i=r,r=n,n=o,o=a,a=n),t[i]=e.floor(o),t[r]=e.ceil(a),t}function py(t){return Math.log(t)}function my(t){return Math.exp(t)}function gy(t){return-Math.log(-t)}function yy(t){return-Math.exp(-t)}function vy(t){return isFinite(t)?+("1e"+t):t<0?0:t}function by(t){return(e,n)=>-t(-e,n)}function xy(t){const e=t(py,my),n=e.domain;let i,r,o=10;function a(){return i=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(o),r=function(t){return 10===t?vy:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),n()[0]<0?(i=by(i),r=by(r),t(gy,yy)):t(py,my),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],c=e[e.length-1];const s=c<a;s&&([a,c]=[c,a]);let l,u,d=i(a),h=i(c);const f=null==t?10:+t;let p=[];if(!(o%1)&&h-d<f){if(d=Math.floor(d),h=Math.ceil(h),a>0){for(;d<=h;++d)for(l=1;l<o;++l)if(u=d<0?l/r(-d):l*r(d),!(u<a)){if(u>c)break;p.push(u)}}else for(;d<=h;++d)for(l=o-1;l>=1;--l)if(u=d>0?l/r(-d):l*r(d),!(u<a)){if(u>c)break;p.push(u)}2*p.length<f&&(p=lt(a,c,f))}else p=lt(d,h,Math.min(h-d,f)).map(r);return s?p.reverse():p},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=jl(n)).precision||(n.trim=!0),n=Fl(n)),t===1/0)return n;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/r(Math.round(i(t)));return e*o<o-.5&&(e*=o),e<=a?n(t):""}},e.nice=()=>n(fy(n(),{floor:t=>r(Math.floor(i(t))),ceil:t=>r(Math.ceil(i(t)))})),e}function _y(){const t=xy(cy()).domain([1,10]);return t.copy=()=>ay(t,_y()).base(t.base()),Vg.apply(t,arguments),t}function Sy(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function wy(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Ay(t){var e=1,n=t(Sy(e),wy(e));return n.constant=function(n){return arguments.length?t(Sy(e=+n),wy(e)):e},uy(n)}function Ey(){var t=Ay(cy());return t.copy=function(){return ay(t,Ey()).constant(t.constant())},Vg.apply(t,arguments)}function Ly(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function ky(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Cy(t){return t<0?-t*t:t*t}function Ty(t){var e=t(ny,ny),n=1;function i(){return 1===n?t(ny,ny):.5===n?t(ky,Cy):t(Ly(n),Ly(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,i()):n},uy(e)}function My(){var t=Ty(cy());return t.copy=function(){return ay(t,My()).exponent(t.exponent())},Vg.apply(t,arguments),t}function qy(){return My.apply(null,arguments).exponent(.5)}function Iy(t){return Math.sign(t)*t*t}function Oy(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Py(){var t,e=sy(),n=[0,1],i=!1;function r(n){var r=Oy(e(n));return isNaN(r)?t:i?Math.round(r):r}return r.invert=function(t){return e.invert(Iy(t))},r.domain=function(t){return arguments.length?(e.domain(t),r):e.domain()},r.range=function(t){return arguments.length?(e.range((n=Array.from(t,ty)).map(Iy)),r):n.slice()},r.rangeRound=function(t){return r.range(t).round(!0)},r.round=function(t){return arguments.length?(i=!!t,r):i},r.clamp=function(t){return arguments.length?(e.clamp(t),r):e.clamp()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.copy=function(){return Py(e.domain(),n).round(i).clamp(e.clamp()).unknown(t)},Vg.apply(r,arguments),uy(r)}function Ny(){var t,e=[],n=[],i=[];function o(){var t=0,r=Math.max(1,n.length);for(i=new Array(r-1);++t<r;)i[t-1]=wt(e,t/r);return a}function a(e){return null==e||isNaN(e=+e)?t:n[f(i,e)]}return a.invertExtent=function(t){var r=n.indexOf(t);return r<0?[NaN,NaN]:[r>0?i[r-1]:e[0],r<i.length?i[r]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(r),o()},a.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return Ny().domain(e).range(n).unknown(t)},Vg.apply(a,arguments)}function Dy(){var t,e=0,n=1,i=1,r=[.5],o=[0,1];function a(e){return null!=e&&e<=e?o[f(r,e,0,i)]:t}function c(){var t=-1;for(r=new Array(i);++t<i;)r[t]=((t+1)*n-(t-i)*e)/(i+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,c()):[e,n]},a.range=function(t){return arguments.length?(i=(o=Array.from(t)).length-1,c()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,r[0]]:a>=i?[r[i-1],n]:[r[a-1],r[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return r.slice()},a.copy=function(){return Dy().domain([e,n]).range(o).unknown(t)},Vg.apply(uy(a),arguments)}function By(){var t,e=[.5],n=[0,1],i=1;function r(r){return null!=r&&r<=r?n[f(e,r,0,i)]:t}return r.domain=function(t){return arguments.length?(e=Array.from(t),i=Math.min(e.length,n.length-1),r):e.slice()},r.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(e.length,n.length-1),r):n.slice()},r.invertExtent=function(t){var i=n.indexOf(t);return[e[i-1],e[i]]},r.unknown=function(e){return arguments.length?(t=e,r):t},r.copy=function(){return By().domain(e).range(n).unknown(t)},Vg.apply(r,arguments)}const jy=new Date,Ry=new Date;function Hy(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=e=>(t(e=new Date(+e)),e),r.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),r.round=t=>{const e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),r.range=(n,i,o)=>{const a=[];if(n=r.ceil(n),o=null==o?1:Math.floor(o),!(n<i&&o>0))return a;let c;do{a.push(c=new Date(+n)),e(n,o),t(n)}while(c<n&&n<i);return a},r.filter=n=>Hy(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,i)=>{if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}),n&&(r.count=(e,i)=>(jy.setTime(+e),Ry.setTime(+i),t(jy),t(Ry),Math.floor(n(jy,Ry))),r.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?e=>i(e)%t==0:e=>r.count(0,e)%t==0):r:null)),r}const zy=Hy(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);zy.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Hy(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):zy:null);const Fy=zy.range,Gy=Hy(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),Wy=Gy.range,Uy=Hy(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),Yy=Uy.range,Vy=Hy(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),Xy=Vy.range,$y=Hy(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours()),Ky=$y.range,Jy=Hy(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),Zy=Jy.range,Qy=Hy(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5,t=>t.getDate()-1),tv=Qy.range,ev=Hy(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),nv=ev.range,iv=Hy(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),rv=iv.range;function ov(t){return Hy(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5)}const av=ov(0),cv=ov(1),sv=ov(2),lv=ov(3),uv=ov(4),dv=ov(5),hv=ov(6),fv=av.range,pv=cv.range,mv=sv.range,gv=lv.range,yv=uv.range,vv=dv.range,bv=hv.range;function xv(t){return Hy(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}const _v=xv(0),Sv=xv(1),wv=xv(2),Av=xv(3),Ev=xv(4),Lv=xv(5),kv=xv(6),Cv=_v.range,Tv=Sv.range,Mv=wv.range,qv=Av.range,Iv=Ev.range,Ov=Lv.range,Pv=kv.range,Nv=Hy(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth()),Dv=Nv.range,Bv=Hy(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth()),jv=Bv.range,Rv=Hy(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Rv.every=t=>isFinite(t=Math.floor(t))&&t>0?Hy(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null;const Hv=Rv.range,zv=Hy(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());zv.every=t=>isFinite(t=Math.floor(t))&&t>0?Hy(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null;const Fv=zv.range;function Gv(t,e,n,i,r,o){const c=[[Gy,1,1e3],[Gy,5,5e3],[Gy,15,15e3],[Gy,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,36e5],[r,3,108e5],[r,6,216e5],[r,12,432e5],[i,1,864e5],[i,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,n,i){const r=Math.abs(n-e)/i,o=a(([,,t])=>t).right(c,r);if(o===c.length)return t.every(dt(e/31536e6,n/31536e6,i));if(0===o)return zy.every(Math.max(dt(e,n,i),1));const[s,l]=c[r/c[o-1][2]<c[o][2]/r?o-1:o];return s.every(l)}return[function(t,e,n){const i=e<t;i&&([t,e]=[e,t]);const r=n&&"function"==typeof n.range?n:s(t,e,n),o=r?r.range(t,+e+1):[];return i?o.reverse():o},s]}const[Wv,Uv]=Gv(zv,Bv,_v,iv,Jy,Vy),[Yv,Vv]=Gv(Rv,Nv,av,Qy,$y,Uy);function Xv(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function $v(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Kv(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Jv(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,a=t.shortDays,c=t.months,s=t.shortMonths,l=lb(r),u=ub(r),d=lb(o),h=ub(o),f=lb(a),p=ub(a),m=lb(c),g=ub(c),y=lb(s),v=ub(s),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:qb,e:qb,f:Db,g:Vb,G:$b,H:Ib,I:Ob,j:Pb,L:Nb,m:Bb,M:jb,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:vx,s:bx,S:Rb,u:Hb,U:zb,V:Gb,w:Wb,W:Ub,x:null,X:null,y:Yb,Y:Xb,Z:Kb,"%":yx},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:Jb,e:Jb,f:nx,g:fx,G:mx,H:Zb,I:Qb,j:tx,L:ex,m:ix,M:rx,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:vx,s:bx,S:ox,u:ax,U:cx,V:lx,w:ux,W:dx,x:null,X:null,y:hx,Y:px,Z:gx,"%":yx},_={a:function(t,e,n){var i=f.exec(e.slice(n));return i?(t.w=p.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=d.exec(e.slice(n));return i?(t.w=h.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=y.exec(e.slice(n));return i?(t.m=v.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=m.exec(e.slice(n));return i?(t.m=g.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return A(t,e,n,i)},d:_b,e:_b,f:kb,g:yb,G:gb,H:wb,I:wb,j:Sb,L:Lb,m:xb,M:Ab,p:function(t,e,n){var i=l.exec(e.slice(n));return i?(t.p=u.get(i[0].toLowerCase()),n+i[0].length):-1},q:bb,Q:Tb,s:Mb,S:Eb,u:hb,U:fb,V:pb,w:db,W:mb,x:function(t,e,i){return A(t,n,e,i)},X:function(t,e,n){return A(t,i,e,n)},y:yb,Y:gb,Z:vb,"%":Cb};function S(t,e){return function(n){var i,r,o,a=[],c=-1,s=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(s,c)),null!=(r=ib[i=t.charAt(++c)])?i=t.charAt(++c):r="e"===i?" ":"0",(o=e[i])&&(i=o(n,r)),a.push(i),s=c+1);return a.push(t.slice(s,c)),a.join("")}}function w(t,e){return function(n){var i,r,o=Kv(1900,void 0,1);if(A(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=$v(Kv(o.y,0,1))).getUTCDay(),i=r>4||0===r?Sv.ceil(i):Sv(i),i=ev.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(r=(i=Xv(Kv(o.y,0,1))).getDay(),i=r>4||0===r?cv.ceil(i):cv(i),i=Qy.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?$v(Kv(o.y,0,1)).getUTCDay():Xv(Kv(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,$v(o)):Xv(o)}}function A(t,e,n,i){for(var r,o,a=0,c=e.length,s=n.length;a<c;){if(i>=s)return-1;if(37===(r=e.charCodeAt(a++))){if(r=e.charAt(a++),!(o=_[r in ib?e.charAt(a++):r])||(i=o(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return b.x=S(n,b),b.X=S(i,b),b.c=S(e,b),x.x=S(n,x),x.X=S(i,x),x.c=S(e,x),{format:function(t){var e=S(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=S(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}var Zv,Qv,tb,eb,nb,ib={"-":"",_:" ",0:"0"},rb=/^\s*\d+/,ob=/^%/,ab=/[\\^$*+?|[\]().{}]/g;function cb(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(e)+r:r)}function sb(t){return t.replace(ab,"\\$&")}function lb(t){return new RegExp("^(?:"+t.map(sb).join("|")+")","i")}function ub(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function db(t,e,n){var i=rb.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function hb(t,e,n){var i=rb.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function fb(t,e,n){var i=rb.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function pb(t,e,n){var i=rb.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function mb(t,e,n){var i=rb.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function gb(t,e,n){var i=rb.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function yb(t,e,n){var i=rb.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function vb(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function bb(t,e,n){var i=rb.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function xb(t,e,n){var i=rb.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function _b(t,e,n){var i=rb.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Sb(t,e,n){var i=rb.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function wb(t,e,n){var i=rb.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Ab(t,e,n){var i=rb.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Eb(t,e,n){var i=rb.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Lb(t,e,n){var i=rb.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function kb(t,e,n){var i=rb.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Cb(t,e,n){var i=ob.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Tb(t,e,n){var i=rb.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function Mb(t,e,n){var i=rb.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function qb(t,e){return cb(t.getDate(),e,2)}function Ib(t,e){return cb(t.getHours(),e,2)}function Ob(t,e){return cb(t.getHours()%12||12,e,2)}function Pb(t,e){return cb(1+Qy.count(Rv(t),t),e,3)}function Nb(t,e){return cb(t.getMilliseconds(),e,3)}function Db(t,e){return Nb(t,e)+"000"}function Bb(t,e){return cb(t.getMonth()+1,e,2)}function jb(t,e){return cb(t.getMinutes(),e,2)}function Rb(t,e){return cb(t.getSeconds(),e,2)}function Hb(t){var e=t.getDay();return 0===e?7:e}function zb(t,e){return cb(av.count(Rv(t)-1,t),e,2)}function Fb(t){var e=t.getDay();return e>=4||0===e?uv(t):uv.ceil(t)}function Gb(t,e){return t=Fb(t),cb(uv.count(Rv(t),t)+(4===Rv(t).getDay()),e,2)}function Wb(t){return t.getDay()}function Ub(t,e){return cb(cv.count(Rv(t)-1,t),e,2)}function Yb(t,e){return cb(t.getFullYear()%100,e,2)}function Vb(t,e){return cb((t=Fb(t)).getFullYear()%100,e,2)}function Xb(t,e){return cb(t.getFullYear()%1e4,e,4)}function $b(t,e){var n=t.getDay();return cb((t=n>=4||0===n?uv(t):uv.ceil(t)).getFullYear()%1e4,e,4)}function Kb(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+cb(e/60|0,"0",2)+cb(e%60,"0",2)}function Jb(t,e){return cb(t.getUTCDate(),e,2)}function Zb(t,e){return cb(t.getUTCHours(),e,2)}function Qb(t,e){return cb(t.getUTCHours()%12||12,e,2)}function tx(t,e){return cb(1+ev.count(zv(t),t),e,3)}function ex(t,e){return cb(t.getUTCMilliseconds(),e,3)}function nx(t,e){return ex(t,e)+"000"}function ix(t,e){return cb(t.getUTCMonth()+1,e,2)}function rx(t,e){return cb(t.getUTCMinutes(),e,2)}function ox(t,e){return cb(t.getUTCSeconds(),e,2)}function ax(t){var e=t.getUTCDay();return 0===e?7:e}function cx(t,e){return cb(_v.count(zv(t)-1,t),e,2)}function sx(t){var e=t.getUTCDay();return e>=4||0===e?Ev(t):Ev.ceil(t)}function lx(t,e){return t=sx(t),cb(Ev.count(zv(t),t)+(4===zv(t).getUTCDay()),e,2)}function ux(t){return t.getUTCDay()}function dx(t,e){return cb(Sv.count(zv(t)-1,t),e,2)}function hx(t,e){return cb(t.getUTCFullYear()%100,e,2)}function fx(t,e){return cb((t=sx(t)).getUTCFullYear()%100,e,2)}function px(t,e){return cb(t.getUTCFullYear()%1e4,e,4)}function mx(t,e){var n=t.getUTCDay();return cb((t=n>=4||0===n?Ev(t):Ev.ceil(t)).getUTCFullYear()%1e4,e,4)}function gx(){return"+0000"}function yx(){return"%"}function vx(t){return+t}function bx(t){return Math.floor(+t/1e3)}function xx(t){return Zv=Jv(t),Qv=Zv.format,tb=Zv.parse,eb=Zv.utcFormat,nb=Zv.utcParse,Zv}function _x(t){return new Date(t)}function Sx(t){return t instanceof Date?+t:+new Date(+t)}function wx(t,e,n,i,r,o,a,c,s,l){var u=sy(),d=u.invert,h=u.domain,f=l(".%L"),p=l(":%S"),m=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),v=l("%b %d"),b=l("%B"),x=l("%Y");function _(t){return(s(t)<t?f:c(t)<t?p:a(t)<t?m:o(t)<t?g:i(t)<t?r(t)<t?y:v:n(t)<t?b:x)(t)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?h(Array.from(t,Sx)):h().map(_x)},u.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?_:l(e)},u.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(fy(n,t)):u},u.copy=function(){return ay(u,wx(t,e,n,i,r,o,a,c,s,l))},u}function Ax(){return Vg.apply(wx(Yv,Vv,Rv,Nv,av,Qy,$y,Uy,Gy,Qv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ex(){return Vg.apply(wx(Wv,Uv,zv,Bv,_v,ev,Jy,Vy,Gy,eb).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Lx(){var t,e,n,i,r,o=0,a=1,c=ny,s=!1;function l(e){return null==e||isNaN(e=+e)?r:c(0===n?.5:(e=(i(e)-t)*n,s?Math.max(0,Math.min(1,e)):e))}function u(t){return function(e){var n,i;return arguments.length?([n,i]=e,c=t(n,i),l):[c(0),c(1)]}}return l.domain=function(r){return arguments.length?([o,a]=r,t=i(o=+o),e=i(a=+a),n=t===e?0:1/(e-t),l):[o,a]},l.clamp=function(t){return arguments.length?(s=!!t,l):s},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=u(Ji),l.rangeRound=u(og),l.unknown=function(t){return arguments.length?(r=t,l):r},function(r){return i=r,t=r(o),e=r(a),n=t===e?0:1/(e-t),l}}function kx(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Cx(){var t=uy(Lx()(ny));return t.copy=function(){return kx(t,Cx())},Xg.apply(t,arguments)}function Tx(){var t=xy(Lx()).domain([1,10]);return t.copy=function(){return kx(t,Tx()).base(t.base())},Xg.apply(t,arguments)}function Mx(){var t=Ay(Lx());return t.copy=function(){return kx(t,Mx()).constant(t.constant())},Xg.apply(t,arguments)}function qx(){var t=Ty(Lx());return t.copy=function(){return kx(t,qx()).exponent(t.exponent())},Xg.apply(t,arguments)}function Ix(){return qx.apply(null,arguments).exponent(.5)}function Ox(){var t=[],e=ny;function n(n){if(null!=n&&!isNaN(n=+n))return e((f(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(r),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map((n,i)=>e(i/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(n,i)=>St(t,i/e))},n.copy=function(){return Ox(e).domain(t)},Xg.apply(n,arguments)}function Px(){var t,e,n,i,r,o,a,c=0,s=.5,l=1,u=1,d=ny,h=!1;function f(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(u*t<u*e?i:r),d(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(e){var n,i,r;return arguments.length?([n,i,r]=e,d=vg(t,[n,i,r]),f):[d(0),d(.5),d(1)]}}return f.domain=function(a){return arguments.length?([c,s,l]=a,t=o(c=+c),e=o(s=+s),n=o(l=+l),i=t===e?0:.5/(e-t),r=e===n?0:.5/(n-e),u=e<t?-1:1,f):[c,s,l]},f.clamp=function(t){return arguments.length?(h=!!t,f):h},f.interpolator=function(t){return arguments.length?(d=t,f):d},f.range=p(Ji),f.rangeRound=p(og),f.unknown=function(t){return arguments.length?(a=t,f):a},function(a){return o=a,t=a(c),e=a(s),n=a(l),i=t===e?0:.5/(e-t),r=e===n?0:.5/(n-e),u=e<t?-1:1,f}}function Nx(){var t=uy(Px()(ny));return t.copy=function(){return kx(t,Nx())},Xg.apply(t,arguments)}function Dx(){var t=xy(Px()).domain([.1,1,10]);return t.copy=function(){return kx(t,Dx()).base(t.base())},Xg.apply(t,arguments)}function Bx(){var t=Ay(Px());return t.copy=function(){return kx(t,Bx()).constant(t.constant())},Xg.apply(t,arguments)}function jx(){var t=Ty(Px());return t.copy=function(){return kx(t,jx()).exponent(t.exponent())},Xg.apply(t,arguments)}function Rx(){return jx.apply(null,arguments).exponent(.5)}xx({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Hx=function(t){for(var e=t.length/6|0,n=new Array(e),i=0;i<e;)n[i]="#"+t.slice(6*i,6*++i);return n},zx=Hx("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Fx=Hx("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Gx=Hx("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Wx=Hx("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),Ux=Hx("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Yx=Hx("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Vx=Hx("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Xx=Hx("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),$x=Hx("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Kx=Hx("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Jx=Hx("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Zx=t=>Bi(t[t.length-1]),Qx=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Hx),t_=Zx(Qx),e_=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Hx),n_=Zx(e_),i_=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Hx),r_=Zx(i_),o_=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Hx),a_=Zx(o_),c_=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Hx),s_=Zx(c_),l_=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Hx),u_=Zx(l_),d_=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Hx),h_=Zx(d_),f_=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d
17191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Hx),p_=Zx(f_),m_=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Hx),g_=Zx(m_),y_=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Hx),v_=Zx(y_),b_=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Hx),x_=Zx(b_),__=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Hx),S_=Zx(__),w_=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Hx),A_=Zx(w_),E_=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Hx),L_=Zx(E_),k_=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Hx),C_=Zx(k_),T_=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Hx),M_=Zx(T_),q_=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Hx),I_=Zx(q_),O_=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Hx),P_=Zx(O_),N_=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Hx),D_=Zx(N_),B_=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Hx),j_=Zx(B_),R_=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Hx),H_
vendor: 4,355 bytes, line 1
1=Zx(R_),z_=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Hx),F_=Zx(z_),G_=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Hx),W_=Zx(G_),U_=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Hx),Y_=Zx(U_),V_=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Hx),X_=Zx(V_),$_=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Hx),K_=Zx($_),J_=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Hx),Z_=Zx(J_),Q_=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"},tS=yg(Ya(300,.5,0),Ya(-240,.5,1)),eS=yg(Ya(-100,.75,.35),Ya(80,1.5,.8)),nS=yg(Ya(260,.75,.35),Ya(80,1.5,.8)),iS=Ya(),rS=function(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return iS.h=360*t-100,iS.s=1.5-1.5*e,iS.l=.8-.9*e,iS+""},oS=fi(),aS=Math.PI/3,cS=2*Math.PI/3,sS=function(t){var e;return t=(.5-t)*Math.PI,oS.r=255*(e=Math.sin(t))*e,oS.g=255*(e=Math.sin(t+aS))*e,oS.b=255*(e=Math.sin(t+cS))*e,oS+""},lS=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"};function uS(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var dS=uS(Hx("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc
15c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),hS=uS(Hx("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),fS=uS(Hx("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),pS=uS(Hx("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),mS=function(t){return Hn(En(t).call(
vendor: 5,866 bytes, line 1
1document.documentElement))},gS=0;function yS(){return new vS}function vS(){this._="@"+(++gS).toString(36)}vS.prototype=yS.prototype={constructor:vS,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var bS=function(t,e){return t.target&&(t=Zi(t),void 0===e&&(e=t.currentTarget),t=t.touches||[t]),Array.from(t,t=>Qi(t,e))},xS=function(t){return"string"==typeof t?new Bn([document.querySelectorAll(t)],[document.documentElement]):new Bn([Le(t)],Dn)},_S=function(t){return function(){return t}};const SS=Math.abs,wS=Math.atan2,AS=Math.cos,ES=Math.max,LS=Math.min,kS=Math.sin,CS=Math.sqrt,TS=Math.PI,MS=TS/2,qS=2*TS;function IS(t){return t>1?0:t<-1?TS:Math.acos(t)}function OS(t){return t>=1?MS:t<=-1?-MS:Math.asin(t)}function PS(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError("invalid digits: "+n);e=t}return t},()=>new da(e)}function NS(t){return t.innerRadius}function DS(t){return t.outerRadius}function BS(t){return t.startAngle}function jS(t){return t.endAngle}function RS(t){return t&&t.padAngle}function HS(t,e,n,i,r,o,a,c){var s=n-t,l=i-e,u=a-r,d=c-o,h=d*s-u*l;if(!(h*h<1e-12))return[t+(h=(u*(e-o)-d*(t-r))/h)*s,e+h*l]}function zS(t,e,n,i,r,o,a){var c=t-n,s=e-i,l=(a?o:-o)/CS(c*c+s*s),u=l*s,d=-l*c,h=t+u,f=e+d,p=n+u,m=i+d,g=(h+p)/2,y=(f+m)/2,v=p-h,b=m-f,x=v*v+b*b,_=r-o,S=h*m-p*f,w=(b<0?-1:1)*CS(ES(0,_*_*x-S*S)),A=(S*b-v*w)/x,E=(-S*v-b*w)/x,L=(S*b+v*w)/x,k=(-S*v+b*w)/x,C=A-g,T=E-y,M=L-g,q=k-y;return C*C+T*T>M*M+q*q&&(A=L,E=k),{cx:A,cy:E,x01:-u,y01:-d,x11:A*(r/_-1),y11:E*(r/_-1)}}var FS=function(){var t=NS,e=DS,n=_S(0),i=null,r=BS,o=jS,a=RS,c=null,s=PS(l);function l(){var l,u,d=+t.apply(this,arguments),h=+e.apply(this,arguments),f=r.apply(this,arguments)-MS,p=o.apply(this,arguments)-MS,m=SS(p-f),g=p>f;if(c||(c=l=s()),h<d&&(u=h,h=d,d=u),h>1e-12)if(m>qS-1e-12)c.moveTo(h*AS(f),h*kS(f)),c.arc(0,0,h,f,p,!g),d>1e-12&&(c.moveTo(d*AS(p),d*kS(p)),c.arc(0,0,d,p,f,g));else{var y,v,b=f,x=p,_=f,S=p,w=m,A=m,E=a.apply(this,arguments)/2,L=E>1e-12&&(i?+i.apply(this,arguments):CS(d*d+h*h)),k=LS(SS(h-d)/2,+n.apply(this,arguments)),C=k,T=k;if(L>1e-12){var M=OS(L/d*kS(E)),q=OS(L/h*kS(E));(w-=2*M)>1e-12?(_+=M*=g?1:-1,S-=M):(w=0,_=S=(f+p)/2),(A-=2*q)>1e-12?(b+=q*=g?1:-1,x-=q):(A=0,b=x=(f+p)/2)}var I=h*AS(b),O=h*kS(b),P=d*AS(S),N=d*kS(S);if(k>1e-12){var D,B=h*AS(x),j=h*kS(x),R=d*AS(_),H=d*kS(_);if(m<TS)if(D=HS(I,O,R,H,B,j,P,N)){var z=I-D[0],F=O-D[1],G=B-D[0],W=j-D[1],U=1/kS(IS((z*G+F*W)/(CS(z*z+F*F)*CS(G*G+W*W)))/2),Y=CS(D[0]*D[0]+D[1]*D[1]);C=LS(k,(d-Y)/(U-1)),T=LS(k,(h-Y)/(U+1))}else C=T=0}A>1e-12?T>1e-12?(y=zS(R,H,I,O,h,T,g),v=zS(B,j,P,N,h,T,g),c.moveTo(y.cx+y.x01,y.cy+y.y01),T<k?c.arc(y.cx,y.cy,T,wS(y.y01,y.x01),wS(v.y01,v.x01),!g):(c.arc(y.cx,y.cy,T,wS(y.y01,y.x01),wS(y.y11,y.x11),!g),c.arc(0,0,h,wS(y.cy+y.y11,y.cx+y.x11),wS(v.cy+v.y11,v.cx+v.x11),!g),c.arc(v.cx,v.cy,T,wS(v.y11,v.x11),wS(v.y01,v.x01),!g))):(c.moveTo(I,O),c.arc(0,0,h,b,x,!g)):c.moveTo(I,O),d>1e-12&&w>1e-12?C>1e-12?(y=zS(P,N,B,j,d,-C,g),v=zS(I,O,R,H,d,-C,g),c.lineTo(y.cx+y.x01,y.cy+y.y01),C<k?c.arc(y.cx,y.cy,C,wS(y.y01,y.x01),wS(v.y01,v.x01),!g):(c.arc(y.cx,y.cy,C,wS(y.y01,y.x01),wS(y.y11,y.x11),!g),c.arc(0,0,d,wS(y.cy+y.y11,y.cx+y.x11),wS(v.cy+v.y11,v.cx+v.x11),g),c.arc(v.cx,v.cy,C,wS(v.y11,v.x11),wS(v.y01,v.x01),!g))):c.arc(0,0,d,S,_,g):c.lineTo(P,N)}else c.moveTo(0,0);if(c.closePath(),l)return c=null,l+""||null}return l.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-TS/2;return[AS(i)*n,kS(i)*n]},l.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:_S(+e),l):t},l.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:_S(+t),l):e},l.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:_S(+t),l):n},l.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:_S(+t),l):i},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:_S(+t),l):r},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:_S(+t),l):o},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:_S(+t),l):a},l.context=function(t){return arguments.length?(c=null==t?null:t,l):c},l},GS=Array.prototype.slice,WS=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)};function US(t){this._context=t}US.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var YS=function(t){return new US(t)};function VS(t){return t[0]}function XS(t){return t[1]}var $S=function(t,e){var n=_S(!0),i=null,r=YS,o=null,a=PS(c);function c(c){var s,l,u,d=(c=WS(c)).length,h=!1;for(null==i&&(o=r(u=a())),s=0;s<=d;++s)!(s<d&&n(l=c[s],s,c))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,c),+e(l,s,c));if(u)return o=null,u+""||null}return t="function"==typeof t?t:void 0===t?VS:_S(t),e="function"==typeof e?e:void 0===e?XS:_S(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:_S(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:_S(+t),c):e},c.defined=function(t){return arguments.length?(n="function"==typeof t?t:_S(!!t),c):n},c.curve=function(t){return arguments.length?(r=t,null!=i&&(o=r(i)),c):r},c.context=function(t){return arguments.length?(null==t?i=o=null:o=r(i=t),c):i},c}
vendor: 32,755 bytes, line 1
1,KS=function(t,e,n){var i=null,r=_S(!0),o=null,a=YS,c=null,s=PS(l);function l(l){var u,d,h,f,p,m=(l=WS(l)).length,g=!1,y=new Array(m),v=new Array(m);for(null==o&&(c=a(p=s())),u=0;u<=m;++u){if(!(u<m&&r(f=l[u],u,l))===g)if(g=!g)d=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=u-1;h>=d;--h)c.point(y[h],v[h]);c.lineEnd(),c.areaEnd()}g&&(y[u]=+t(f,u,l),v[u]=+e(f,u,l),c.point(i?+i(f,u,l):y[u],n?+n(f,u,l):v[u]))}if(p)return c=null,p+""||null}function u(){return $S().defined(r).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?VS:_S(+t),e="function"==typeof e?e:_S(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?XS:_S(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:_S(+e),i=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:_S(+e),l):t},l.x1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:_S(+t),l):i},l.y=function(t){return arguments.length?(e="function"==typeof t?t:_S(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:_S(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:_S(+t),l):n},l.lineX0=l.lineY0=function(){return u().x(t).y(e)},l.lineY1=function(){return u().x(t).y(n)},l.lineX1=function(){return u().x(i).y(e)},l.defined=function(t){return arguments.length?(r="function"==typeof t?t:_S(!!t),l):r},l.curve=function(t){return arguments.length?(a=t,null!=o&&(c=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=c=null:c=a(o=t),l):o},l},JS=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},ZS=function(t){return t},QS=function(){var t=ZS,e=JS,n=null,i=_S(0),r=_S(qS),o=_S(0);function a(a){var c,s,l,u,d,h=(a=WS(a)).length,f=0,p=new Array(h),m=new Array(h),g=+i.apply(this,arguments),y=Math.min(qS,Math.max(-qS,r.apply(this,arguments)-g)),v=Math.min(Math.abs(y)/h,o.apply(this,arguments)),b=v*(y<0?-1:1);for(c=0;c<h;++c)(d=m[p[c]=c]=+t(a[c],c,a))>0&&(f+=d);for(null!=e?p.sort((function(t,n){return e(m[t],m[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),c=0,l=f?(y-h*b)/f:0;c<h;++c,g=u)s=p[c],u=g+((d=m[s])>0?d*l:0)+b,m[s]={data:a[s],index:c,value:d,startAngle:g,endAngle:u,padAngle:v};return m}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:_S(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:_S(+t),a):i},a.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:_S(+t),a):r},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:_S(+t),a):o},a},tw=nw(YS);function ew(t){this._curve=t}function nw(t){function e(e){return new ew(t(e))}return e._curve=t,e}function iw(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(nw(t)):e()._curve},t}ew.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var rw=function(){return iw($S().curve(tw))},ow=function(){var t=KS().curve(tw),e=t.curve,n=t.lineX0,i=t.lineX1,r=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return iw(n())},delete t.lineX0,t.lineEndAngle=function(){return iw(i())},delete t.lineX1,t.lineInnerRadius=function(){return iw(r())},delete t.lineY0,t.lineOuterRadius=function(){return iw(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(nw(t)):e()._curve},t},aw=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]};class cw{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}class sw{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,e){if(t=+t,e=+e,0===this._point)this._point=1;else{const n=aw(this._x0,this._y0),i=aw(this._x0,this._y0=(this._y0+e)/2),r=aw(t,this._y0),o=aw(t,e);this._context.moveTo(...n),this._context.bezierCurveTo(...i,...r,...o)}this._x0=t,this._y0=e}}function lw(t){return new cw(t,!0)}function uw(t){return new cw(t,!1)}function dw(t){return new sw(t)}function hw(t){return t.source}function fw(t){return t.target}function pw(t){let e=hw,n=fw,i=VS,r=XS,o=null,a=null,c=PS(s);function s(){let s;const l=GS.call(arguments),u=e.apply(this,l),d=n.apply(this,l);if(null==o&&(a=t(s=c())),a.lineStart(),l[0]=u,a.point(+i.apply(this,l),+r.apply(this,l)),l[0]=d,a.point(+i.apply(this,l),+r.apply(this,l)),a.lineEnd(),s)return a=null,s+""||null}return s.source=function(t){return arguments.length?(e=t,s):e},s.target=function(t){return arguments.length?(n=t,s):n},s.x=function(t){return arguments.length?(i="function"==typeof t?t:_S(+t),s):i},s.y=function(t){return arguments.length?(r="function"==typeof t?t:_S(+t),s):r},s.context=function(e){return arguments.length?(null==e?o=a=null:a=t(o=e),s):o},s}function mw(){return pw(lw)}function gw(){return pw(uw)}function yw(){const t=pw(dw);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const vw=CS(3);var bw={draw(t,e){const n=.59436*CS(e+LS(e/28,.75)),i=n/2,r=i*vw;t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-r,-i),t.lineTo(r,i),t.moveTo(-r,i),t.lineTo(r,-i)}},xw={draw(t,e){const n=CS(e/TS);t.moveTo(n,0),t.arc(0,0,n,0,qS)}},_w={draw(t,e){const n=CS(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};const Sw=CS(1/3),ww=2*Sw;var Aw={draw(t,e){const n=CS(e/ww),i=n*Sw;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},Ew={draw(t,e){const n=.62625*CS(e);t.moveTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.lineTo(-n,0),t.closePath()}},Lw={draw(t,e){const n=.87559*CS(e-LS(e/7,2));t.moveTo(-n,0),t.lineTo(n,0),t.moveTo(0,n),t.lineTo(0,-n)}},kw={draw(t,e){const n=CS(e),i=-n/2;t.rect(i,i,n,n)}},Cw={draw(t,e){const n=.4431*CS(e);t.moveTo(n,n),t.lineTo(n,-n),t.lineTo(-n,-n),t.lineTo(-n,n),t.closePath()}};const Tw=kS(TS/10)/kS(7*TS/10),Mw=kS(qS/10)*Tw,qw=-AS(qS/10)*Tw;var Iw={draw(t,e){const n=CS(.8908130915292852*e),i=Mw*n,r=qw*n;t.moveTo(0,-n),t.lineTo(i,r);for(let e=1;e<5;++e){const o=qS*e/5,a=AS(o),c=kS(o);t.lineTo(c*n,-a*n),t.lineTo(a*i-c*r,c*i+a*r)}t.closePath()}};const Ow=CS(3);var Pw={draw(t,e){const n=-CS(e/(3*Ow));t.moveTo(0,2*n),t.lineTo(-Ow*n,-n),t.lineTo(Ow*n,-n),t.closePath()}};const Nw=CS(3);var Dw={draw(t,e){const n=.6824*CS(e),i=n/2,r=n*Nw/2;t.moveTo(0,-n),t.lineTo(r,i),t.lineTo(-r,i),t.closePath()}};const Bw=CS(3)/2,jw=1/CS(12),Rw=3*(jw/2+1);var Hw={draw(t,e){const n=CS(e/Rw),i=n/2,r=n*jw,o=i,a=n*jw+n,c=-o,s=a;t.moveTo(i,r),t.lineTo(o,a),t.lineTo(c,s),t.lineTo(-.5*i-Bw*r,Bw*i+-.5*r),t.lineTo(-.5*o-Bw*a,Bw*o+-.5*a),t.lineTo(-.5*c-Bw*s,Bw*c+-.5*s),t.lineTo(-.5*i+Bw*r,-.5*r-Bw*i),t.lineTo(-.5*o+Bw*a,-.5*a-Bw*o),t.lineTo(-.5*c+Bw*s,-.5*s-Bw*c),t.closePath()}},zw={draw(t,e){const n=.6189*CS(e-LS(e/6,1.7));t.moveTo(-n,-n),t.lineTo(n,n),t.moveTo(-n,n),t.lineTo(n,-n)}};const Fw=[xw,_w,Aw,kw,Iw,Pw,Hw],Gw=[xw,Lw,zw,Dw,bw,Cw,Ew];function Ww(t,e){let n=null,i=PS(r);function r(){let r;if(n||(n=r=i()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return t="function"==typeof t?t:_S(t||xw),e="function"==typeof e?e:_S(void 0===e?64:+e),r.type=function(e){return arguments.length?(t="function"==typeof e?e:_S(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:_S(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}var Uw=function(){};function Yw(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Vw(t){this._context=t}Vw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Yw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Yw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Xw=function(t){return new Vw(t)};function $w(t){this._context=t}$w.prototype={areaStart:Uw,areaEnd:Uw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Yw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Kw=function(t){return new $w(t)};function Jw(t){this._context=t}Jw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Yw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Zw=function(t){return new Jw(t)};function Qw(t,e){this._basis=new Vw(t),this._beta=e}Qw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i,r=t[0],o=e[0],a=t[n]-r,c=e[n]-o,s=-1;++s<=n;)i=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(r+i*a),this._beta*e[s]+(1-this._beta)*(o+i*c));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var tA=function t(e){function n(t){return 1===e?new Vw(t):new Qw(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function eA(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function nA(t,e){this._context=t,this._k=(1-e)/6}nA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:eA(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:eA(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var iA=function t(e){function n(t){return new nA(t,e)}return n.tension=function(e){return t(+e)},n}(0);function rA(t,e){this._context=t,this._k=(1-e)/6}rA.prototype={areaStart:Uw,areaEnd:Uw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:eA(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var oA=function t(e){function n(t){return new rA(t,e)}return n.tension=function(e){return t(+e)},n}(0);function aA(t,e){this._context=t,this._k=(1-e)/6}aA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:eA(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var cA=function t(e){function n(t){return new aA(t,e)}return n.tension=function(e){return t(+e)},n}(0);function sA(t,e,n){var i=t._x1,r=t._y1,o=t._x2,a=t._y2;if(t._l01_a>1e-12){var c=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*c-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,r=(r*c-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>1e-12){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(i,r,o,a,t._x2,t._y2)}function lA(t,e){this._context=t,this._alpha=e}lA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:sA(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var uA=function t(e){function n(t){return e?new lA(t,e):new nA(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function dA(t,e){this._context=t,this._alpha=e}dA.prototype={areaStart:Uw,areaEnd:Uw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:sA(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var hA=function t(e){function n(t){return e?new dA(t,e):new rA(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function fA(t,e){this._context=t,this._alpha=e}fA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:sA(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var pA=function t(e){function n(t){return e?new fA(t,e):new aA(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function mA(t){this._context=t}mA.prototype={areaStart:Uw,areaEnd:Uw,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var gA=function(t){return new mA(t)};function yA(t){return t<0?-1:1}function vA(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),a=(n-t._y1)/(r||i<0&&-0),c=(o*r+a*i)/(i+r);return(yA(o)+yA(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function bA(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function xA(t,e,n){var i=t._x0,r=t._y0,o=t._x1,a=t._y1,c=(o-i)/3;t._context.bezierCurveTo(i+c,r+c*e,o-c,a-c*n,o,a)}function _A(t){this._context=t}function SA(t){this._context=new wA(t)}function wA(t){this._context=t}function AA(t){return new _A(t)}function EA(t){return new SA(t)}function LA(t){this._context=t}function kA(t){var e,n,i=t.length-1,r=new Array(i),o=new Array(i),a=new Array(i);for(r[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<i-1;++e)r[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(r[i-1]=2,o[i-1]=7,a[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=r[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(r[i-1]=a[i-1]/o[i-1],e=i-2;e>=0;--e)r[e]=(a[e]-r[e+1])/o[e];for(o[i-1]=(t[i]+r[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-r[e+1];return[r,o]}_A.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:xA(this,this._t0,bA(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,xA(this,bA(this,n=vA(this,t,e)),n);break;default:xA(this,this._t0,n=vA(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(SA.prototype=Object.create(_A.prototype)).point=function(t,e){_A.prototype.point.call(this,e,t)},wA.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}},LA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var i=kA(t),r=kA(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var CA=function(t){return new LA(t)};function TA(t,e){this._context=t,this._t=e}TA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var MA=function(t){return new TA(t,.5)};function qA(t){return new TA(t,0)}function IA(t){return new TA(t,1)}var OA=function(t,e){if((r=t.length)>1)for(var n,i,r,o=1,a=t[e[0]],c=a.length;o<r;++o)for(i=a,a=t[e[o]],n=0;n<c;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]},PA=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n};function NA(t,e){return t[e]}function DA(t){const e=[];return e.key=t,e}var BA=function(){var t=_S([]),e=PA,n=OA,i=NA;function r(r){var o,a,c=Array.from(t.apply(this,arguments),DA),s=c.length,l=-1;for(const t of r)for(o=0,++l;o<s;++o)(c[o][l]=[0,+i(t,c[o].key,l,r)]).data=t;for(o=0,a=WS(e(c));o<s;++o)c[a[o]].index=o;return n(c,a),c}return r.keys=function(e){return arguments.length?(t="function"==typeof e?e:_S(Array.from(e)),r):t},r.value=function(t){return arguments.length?(i="function"==typeof t?t:_S(+t),r):i},r.order=function(t){return arguments.length?(e=null==t?PA:"function"==typeof t?t:_S(Array.from(t)),r):e},r.offset=function(t){return arguments.length?(n=null==t?OA:t,r):n},r},jA=function(t,e){if((i=t.length)>0){for(var n,i,r,o=0,a=t[0].length;o<a;++o){for(r=n=0;n<i;++n)r+=t[n][o][1]||0;if(r)for(n=0;n<i;++n)t[n][o][1]/=r}OA(t,e)}},RA=function(t,e){if((c=t.length)>0)for(var n,i,r,o,a,c,s=0,l=t[e[0]].length;s<l;++s)for(o=a=0,n=0;n<c;++n)(r=(i=t[e[n]][s])[1]-i[0])>0?(i[0]=o,i[1]=o+=r):r<0?(i[1]=a,i[0]=a+=r):(i[0]=0,i[1]=r)},HA=function(t,e){if((n=t.length)>0){for(var n,i=0,r=t[e[0]],o=r.length;i<o;++i){for(var a=0,c=0;a<n;++a)c+=t[a][i][1]||0;r[i][1]+=r[i][0]=-c/2}OA(t,e)}},zA=function(t,e){if((r=t.length)>0&&(i=(n=t[e[0]]).length)>0){for(var n,i,r,o=0,a=1;a<i;++a){for(var c=0,s=0,l=0;c<r;++c){for(var u=t[e[c]],d=u[a][1]||0,h=(d-(u[a-1][1]||0))/2,f=0;f<c;++f){var p=t[e[f]];h+=(p[a][1]||0)-(p[a-1][1]||0)}s+=d,l+=h*d}n[a-1][1]+=n[a-1][0]=o,s&&(o-=l/s)}n[a-1][1]+=n[a-1][0]=o,OA(t,e)}},FA=function(t){var e=t.map(GA);return PA(t).sort((function(t,n){return e[t]-e[n]}))};function GA(t){for(var e,n=-1,i=0,r=t.length,o=-1/0;++n<r;)(e=+t[n][1])>o&&(o=e,i=n);return i}var WA=function(t){var e=t.map(UA);return PA(t).sort((function(t,n){return e[t]-e[n]}))};function UA(t){for(var e,n=0,i=-1,r=t.length;++i<r;)(e=+t[i][1])&&(n+=e);return n}var YA=function(t){return WA(t).reverse()},VA=function(t){var e,n,i=t.length,r=t.map(UA),o=FA(t),a=0,c=0,s=[],l=[];for(e=0;e<i;++e)n=o[e],a<c?(a+=r[n],s.push(n)):(c+=r[n],l.push(n));return l.reverse().concat(s)},XA=function(t){return PA(t).reverse()};var $A=Date.prototype.toISOString?function(t){return t.toISOString()}:eb("%Y-%m-%dT%H:%M:%S.%LZ");var KA=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:nb("%Y-%m-%dT%H:%M:%S.%LZ"),JA=function(t,e,n){var i=new ur,r=e;return null==e?(i.restart(t,e,n),i):(i._restart=i.restart,i.restart=function(t,e,n){e=+e,n=null==n?sr():+n,i._restart((function o(a){a+=r,i._restart(o,r+=e,n),t(a)}),e,n)},i.restart(t,e,n),i)},ZA=t=>()=>t;function QA(t,{sourceEvent:e,target:n,transform:i,dispatch:r}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:r}})}function tE(t,e,n){this.k=t,this.x=e,this.y=n}tE.prototype={constructor:tE,scale:function(t){return 1===t?this:new tE(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new tE(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eE=new tE(1,0,0);function nE(t){for(;!t.__zoom;)if(!(t=t.parentNode))return eE;return t.__zoom}function iE(t){t.stopImmediatePropagation()}nE.prototype=tE.prototype;var rE=function(t){t.preventDefault(),t.stopImmediatePropagation()};function oE(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function aE(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function cE(){return this.__zoom||eE}function sE(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function lE(){return navigator.maxTouchPoints||"ontouchstart"in this}function uE(t,e,n){var i=t.invertX(e[0][0])-n[0][0],r=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}var dE=function(){var t,e,n,i=oE,r=aE,o=uE,a=sE,c=lE,s=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],u=250,d=cg,h=we("start","zoom","end"),f=0,p=10;function m(t){t.property("__zoom",cE).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",w).on("dblclick.zoom",A).filter(c).on("touchstart.zoom",E).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new tE(e,t.x,t.y)}function y(t,e,n){var i=e[0]-n[0]*t.k,r=e[1]-n[1]*t.k;return i===t.x&&r===t.y?t:new tE(t.k,i,r)}function v(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n,i){t.on("start.zoom",(function(){x(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,o=arguments,a=x(t,o).event(i),c=r.apply(t,o),s=null==n?v(c):"function"==typeof n?n.apply(t,o):n,l=Math.max(c[1][0]-c[0][0],c[1][1]-c[0][1]),u=t.__zoom,h="function"==typeof e?e.apply(t,o):e,f=d(u.invert(s).concat(l/u.k),h.invert(s).concat(l/h.k));return function(t){if(1===t)t=h;else{var e=f(t),n=l/e[2];t=new tE(n,s[0]-e[0]*n,s[1]-e[1]*n)}a.zoom(null,t)}}))}function x(t,e,n){return!n&&t.__zooming||new _(t,e)}function _(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=r.apply(t,e),this.taps=0}function S(t,...e){if(i.apply(this,arguments)){var n=x(this,e).event(t),r=this.__zoom,c=Math.max(s[0],Math.min(s[1],r.k*Math.pow(2,a.apply(this,arguments)))),u=Qi(t);if(n.wheel)n.mouse[0][0]===u[0]&&n.mouse[0][1]===u[1]||(n.mouse[1]=r.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(r.k===c)return;n.mouse=[u,r.invert(u)],Ar(this),n.start()}rE(t),n.wheel=setTimeout(d,150),n.zoom("mouse",o(y(g(r,c),n.mouse[0],n.mouse[1]),n.extent,l))}function d(){n.wheel=null,n.end()}}function w(t,...e){if(!n&&i.apply(this,arguments)){var r=t.currentTarget,a=x(this,e,!0).event(t),c=Hn(t.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",p,!0),s=Qi(t,r),u=t.clientX,d=t.clientY;Un(t.view),iE(t),a.mouse=[s,this.__zoom.invert(s)],Ar(this),a.start()}function h(t){if(rE(t),!a.moved){var e=t.clientX-u,n=t.clientY-d;a.moved=e*e+n*n>f}a.event(t).zoom("mouse",o(y(a.that.__zoom,a.mouse[0]=Qi(t,r),a.mouse[1]),a.extent,l))}function p(t){c.on("mousemove.zoom mouseup.zoom",null),Yn(t.view,a.moved),rE(t),a.event(t).end()}}function A(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,a=Qi(t.changedTouches?t.changedTouches[0]:t,this),c=n.invert(a),s=n.k*(t.shiftKey?.5:2),d=o(y(g(n,s),a,c),r.apply(this,e),l);rE(t),u>0?Hn(this).transition().duration(u).call(b,d,a,t):Hn(this).call(m.transform,d,a,t)}}function E(n,...r){if(i.apply(this,arguments)){var o,a,c,s,l=n.touches,u=l.length,d=x(this,r,n.changedTouches.length===u).event(n);for(iE(n),a=0;a<u;++a)c=l[a],s=[s=Qi(c,this),this.__zoom.invert(s),c.identifier],d.touch0?d.touch1||d.touch0[2]===s[2]||(d.touch1=s,d.taps=0):(d.touch0=s,o=!0,d.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(d.taps<2&&(e=s[0],t=setTimeout((function(){t=null}),500)),Ar(this),d.start())}}function L(t,...e){if(this.__zooming){var n,i,r,a,c=x(this,e).event(t),s=t.changedTouches,u=s.length;for(rE(t),n=0;n<u;++n)i=s[n],r=Qi(i,this),c.touch0&&c.touch0[2]===i.identifier?c.touch0[0]=r:c.touch1&&c.touch1[2]===i.identifier&&(c.touch1[0]=r);if(i=c.that.__zoom,c.touch1){var d=c.touch0[0],h=c.touch0[1],f=c.touch1[0],p=c.touch1[1],m=(m=f[0]-d[0])*m+(m=f[1]-d[1])*m,v=(v=p[0]-h[0])*v+(v=p[1]-h[1])*v;i=g(i,Math.sqrt(m/v)),r=[(d[0]+f[0])/2,(d[1]+f[1])/2],a=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!c.touch0)return;r=c.touch0[0],a=c.touch0[1]}c.zoom("touch",o(y(i,r,a),c.extent,l))}}function k(t,...i){if(this.__zooming){var r,o,a=x(this,i).event(t),c=t.changedTouches,s=c.length;for(iE(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),r=0;r<s;++r)o=c[r],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=Qi(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<p)){var l=Hn(this).on("dblclick.zoom");l&&l.apply(this,arguments)}}}return m.transform=function(t,e,n,i){var r=t.selection?t.selection():t;r.property("__zoom",cE),t!==r?b(t,e,n,i):r.interrupt().each((function(){x(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},m.scaleBy=function(t,e,n,i){m.scaleTo(t,(function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n}),n,i)},m.scaleTo=function(t,e,n,i){m.transform(t,(function(){var t=r.apply(this,arguments),i=this.__zoom,a=null==n?v(t):"function"==typeof n?n.apply(this,arguments):n,c=i.invert(a),s="function"==typeof e?e.apply(this,arguments):e;return o(y(g(i,s),a,c),t,l)}),n,i)},m.translateBy=function(t,e,n,i){m.transform(t,(function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),l)}),null,i)},m.translateTo=function(t,e,n,i,a){m.transform(t,(function(){var t=r.apply(this,arguments),a=this.__zoom,c=null==i?v(t):"function"==typeof i?i.apply(this,arguments):i;return o(eE.translate(c[0],c[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,l)}),i,a)},_.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit
1("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=Hn(this.that).datum();h.call(t,this.that,new QA(t,{sourceEvent:this.sourceEvent,target:m,type:t,transform:this.that.__zoom,dispatch:h}),e)}},m.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:ZA(+t),m):a},m.filter=function(t){return arguments.length?(i="function"==typeof t?t:ZA(!!t),m):i},m.touchable=function(t){return arguments.length?(c="function"==typeof t?t:ZA(!!t),m):c},m.extent=function(t){return arguments.length?(r="function"==typeof t?t:ZA([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),m):r},m.scaleExtent=function(t){return arguments.length?(s[0]=+t[0],s[1]=+t[1],m):[s[0],s[1]]},m.translateExtent=function(t){return arguments.length?(l[0][0]=+t[0][0],l[1][0]=+t[1][0],l[0][1]=+t[0][1],l[1][1]=+t[1][1],m):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},m.constrain=function(t){return arguments.length?(o=t,m):o},m.duration=function(t){return arguments.length?(u=+t,m):u},m.interpolate=function(t){return arguments.length?(d=t,m):d},m.on=function(){var t=h.on.apply(h,arguments);return t===h?m:t},m.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,m):Math.sqrt(f)},m.tapDistance=function(t){return arguments.length?(p=+t,m):p},m},hE={},fE=[],pE=[],mE=[],gE=[],yE=[],vE=0,bE=450,xE=600,_E=400,SE=250,wE=function(){if(document.querySelector(".cmp-pie-chart-data")){var t=document.querySelectorAll(".cmp-pie-chart-data"),e=document.querySelector(".cmp-bar-pie-chart--list-container"),n="";t.forEach((function(t){var i=t.getAttribute("charttitle"),r=t.getAttribute("chartpercent"),o=t.getAttribute("chartcolor"),a=t.getAttribute("chartSymbol");n=a||"",fE.push(i),pE.push(o),hE[i]=r,function(t,e,n,i,r){var o=document.createElement("div");o.classList.add("cmp-bar-pie-chart--label-list-item");var a=document.createElement("div");a.classList.add("cmp-bar-pie-chart--widget"),a.style.backgroundColor=i,o.appendChild(a);var c=document.createElement("p");c.innerText=e,o.appendChild(c);var s=document.createElement("div");s.classList.add("cmp-bar-pie-chart--value-percent"),s.innerText=n+" "+r,o.appendChild(s),t.appendChild(o)}(e,i,r,o,a||"")})),console.log(hE),console.log(pE),AE(n)}},AE=function(t){console.log(i);var e=bE,n=bE,r=Math.min(e,n)/2-40,o=Hn("#my_dataviz").append("svg").attr("width",e).attr("height",n).append("g").attr("transform","translate(".concat(e/2,",").concat(n/2,")")),a=hE;console.log(pE);var c=Kg().domain(fE).range(pE),s=QS().sort(null).value((function(t){return t[1]}))(Object.entries(a)),l=FS().innerRadius(.5*r).outerRadius(.8*r),u=FS().innerRadius(.9*r).outerRadius(.9*r);o.selectAll("allSlices").data(s).join("path").attr("d",l).attr("fill",(function(t){return c(t.data[0])})).attr("stroke","white").style("stroke-width","2px").style("opacity",.7),o.selectAll("allPolylines").data(s).join("polyline").attr("stroke","black").style("fill","none").attr("stroke-width",1).attr("points",(function(t){var e=l.centroid(t),n=u.centroid(t),i=u.centroid(t),o=t.startAngle+(t.endAngle-t.startAngle)/2;return i[0]=.95*r*(o<Math.PI?1:-1),[e,n,i]})),o.selectAll("allLabels").data(s).join("text").text((function(e){return e.data[1]+t})).attr("transform",(function(t){var e=u.centroid(t),n=t.startAngle+(t.endAngle-t.startAngle)/2;return e[0]=.99*r*(n<Math.PI?1:-1),"translate(".concat(e,")")})).style("text-anchor",(function(t){return t.startAngle+(t.endAngle-t.startAngle)/2<Math.PI?"start":"end"})),o.selectAll("path").style("opacity",1)},EE=function(t){var e=20,n=65,i=40,r=SE,o=xE-r-n,a=_E-e-i,c=Hn("#bar_dataviz").append("svg").attr("width",o+r+n).attr("height",a+e+i).append("g").attr("transform","translate(".concat(r,", ").concat(e,")")),s=mE,l=Kg().domain(yE).range(gE),u=Math.ceil(vE),d=dy().domain([0,u]).range([0,o]);c.append("g").attr("transform","translate(0, ".concat(a,")")).call(me(d).ticks(6)).selectAll("text").style("text-anchor","center");var h=Jg().range([0,a]).domain(s.map((function(t){return t.label}))).padding(.5);c.append("g").call(ge(h)),c.selectAll("myRect").data(s).join("rect").attr("x",d(0)).attr("y",(function(t){return h(t.label)})).attr("width",(function(t){return d(t.Value)})).attr("height",h.bandwidth()).attr("fill",(function(t){return l(t.label)})),console.log(),c.selectAll("myRect").data(s).join("text").text((function(e){return e.Value+t})).attr("x",(function(t){return d(t.Value)+10})).attr("y",(function(t){return h(t.label)+h.bandwidth()/2+2})).attr("class","cmp-bar-pie-chart--value-label")},LE=function(){document.getElementById("my_dataviz")&&(kE(),wE()),document.getElementById("bar_dataviz")&&(kE(),function(){if(document.querySelector(".cmp-bar-chart-data")){var t,e=document.querySelectorAll(".cmp-bar-chart-data"),n=document.getElementById("bar-chart-visivally-hidden");e.forEach((function(e){var i=e.getAttribute("charttitle"),r=e.getAttribute("chartpercent"),o=e.getAttribute("chartcolor"),a=e.getAttribute("chartSymbol");t=a||"";var c={label:i,Value:r};mE.push(c),yE.push(i),gE.push(o),vE<parseFloat(r)&&(vE=parseFloat(r));var s=document.createElement("p");s.innerText=i+r+a,n.appendChild(s)})),console.log(mE),console.log(gE),EE(t)}}())},kE=function(){var t=window.innerWidth;t<550&&t>469?(xE=450,_E=370):t<470&&t>399?(bE=380,xE=400,_E=280,SE=150):t<400&&t>374?(bE=380,xE=370,_E=250,SE=175):t<375&&t>344?(bE=350,xE=340,_E=240,SE=150):t<345&&(bE=320,xE=320,_E=240,SE=145),window.addEventListener("resize",(function(t){var e=window.innerWidth;e<550&&e>439&&(xE=450,_E=370),e<440&&e>374?bE=380:e<375&&e>344?bE=350:e<345?bE=320:(bE=450,xE=500,_E=400)}))};"loading"!==document.readyState?LE():document.addEventListener("DOMContentLoaded",LE)},function(t,e,n){"use strict";var i=[{id:1022,type:"cc",cp_type:"catalogue-card",url:"https://www.mbna.ca/en/credit-cards/rewards/mbna-rewards-world-elite-mastercard/%2520",name:encodeURI("MBNA Rewards World Elite<sup>®</sup> Mastercard<sup>®</sup>"),img:"https://www.mbna.ca/en/images/TDMB-0006_CreditCard_Rewards_World_Elite_170x107_En_tcm378-287453.png",s_offer:!1},{id:2024,type:"cc",cp_type:"catalogue-card",url:"https://www.mbna.ca/en/credit-cards/cash-back/smart-cash-world-mastercard/",name:encodeURI("MBNA Smart Cash World Mastercard<sup>®</sup>"),img:"https://www.mbna.ca/en/images/smart-cash-mdeium-world-elite-medium-en_tcm378-267457.png",s_offer:!1}],r=n(4),o=n(6);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?c(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u="en";new Set;document.addEventListener("DOMContentLoaded",(function(){var t=u;!function(){var e;if(window.parent.location.href.includes("flex-comparison-table--entry-point")){i.forEach((function(e){var n=e.id,i=e.type,o=e.img,a=e.name,c=e.cp_type,s=e.url,l=e.s_offer;r.a.setProductLocalStorage(a,o,s,i,n,l,t,c)})),(e=document.querySelector(".flex-comparison-table-recipe #cmp-compare-sticky-drawer__compare-btn"))&&e.addEventListener("click",(function(){var t=window.parent.location.origin;window.parent.location.href="".concat(t,"/").concat("?path=/story/layouts-project-flex-comparison-table--standard")}));var n=document.querySelector(".cmp-banner-products__checkbox-label");n&&n.addEventListener("click",(function(t){t.preventDefault(),o.a.addProdHandler([s({},i[1])])}))}}()}))},,,,,function(t,e,n){"use strict";n.r(e);n(210),n(3),n(15),n(32),n(5),n(30),n(51),n(20),n(27),n(11),n(0),n(4),n(7),n(17),n(39),n(40),n(41),n(52),n(21),n(8),n(18),n(35),n(42),n(29),n(33),n(23),n(10),n(2),n(28),n(25),n(1),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(71),n(72),n(73),n(74),n(75),n(76),n(77),n(78),n(79),n(80),n(81),n(82),n(83),n(84),n(85),n(86),n(87),n(88),n(89),n(90),n(91),n(92),n(93),n(94),n(203),n(43),n(95),n(96),n(97),n(98),n(99),n(100),n(16),n(34),n(14),n(6),n(38),n(31),n(101),n(102),n(103),n(104),n(105),n(106),n(107),n(108),n(109),n(110),n(111),n(37),n(24),n(13),n(112),n(113),n(114),n(115),n(116),n(117),n(118),n(119),n(120),n(45),n(121),n(122),n(123),n(124),n(125),n(126),n(127),n(46),n(128),n(129),n(130),n(131),n(132),n(133),n(47),n(134),n(48),n(135),n(136),n(137),n(138),n(139),n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(19),n(156),n(157),n(158),n(9),n(159),n(160),n(161),n(162),n(44),n(163),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(26),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(49),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(204),n(199),n(200),n(201),n(202)},function(t,e,n){}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.