1require=function i(a,r,o){function s(t,e){if(!r[t]){if(!a[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=r[t]={exports:{}},a[t][0].call(n.exports,function(e){return s(a[t][1][e]||e)},n,n.exports,i,a,r,o)}return r[t].exports}for(var l="function"==typeof require&&require,e=0;e<o.length;e++)s(o[e]);return s}({435:[function(e,t,n){"use strict";e("./scrollHash.js"),e("../../../../Feature/Nykredit.Feature.Contact/UI/javascript/openChat.js"),e("../../../../Feature/Nykredit.Feature.Tracking/UI/javascript/tracking.js")},{"../../../../Feature/Nykredit.Feature.Contact/UI/javascript/openChat.js":433,"../../../../Feature/Nykredit.Feature.Tracking/UI/javascript/tracking.js":434,"./scrollHash.js":436}],436:[function(e,t,n){"use strict";addEventListener("load",function(){var e,t;window.location.hash&&(t=window.location.hash,t=document.querySelector(t))&&((e=document.querySelector(".nyk-menu__top-menu__bottom"))?(e=1.5*e.getBoundingClientRect().height,t=t.getBoundingClientRect().top+window.scrollY-e,window.scrollTo({top:t,behavior:"smooth"})):console.log("Top bar element not found."));var a="";document.addEventListener("scroll",function(){for(var e=document.querySelectorAll(".anchor_tags"),t=0;t<e.length;++t)if(function(e){var t=window.pageYOffset,n=t+window.document.documentElement.clientHeight,i=e.getBoundingClientRect().top+window.pageYOffset;return i+e.offsetHeight<=n&&t<=i}(e[t])){var n=e[t].id,i=n;
1if(void 0!==n&&a!==i){!function(e){var t=e.replace(/^.*#/,"");{var n;t&&(n=document.getElementById(t))&&(n.id=t+"-tmp",history.replaceState(void 0,void 0,e),n.id=t)}}("#"+i),a=i;break}if(a===i)break}})})},{}],434:[function(e,t,n){"use strict";function i(){if(document.cookie)for(var e=document.cookie.split("; "),t=0;t<e.length;t++)if(0===e[t].lastIndexOf(r,0))return 1}var a,r,o;a=window,r="__Secure-vid",o=2,a.identifyVisitor=function(e){var t,n;i()||(e=e,t=function(e){var t;i()||(e=e,(t=new Date).setFullYear(t.getFullYear()+o),t="; expires="+t.toGMTString(),e=r+"="+e+t+"; path=/; Secure",document.cookie=e)},(n=new XMLHttpRequest).open("GET",e,!0),n.withCredentials=!0,n.onreadystatechange=function(){var e;4===this.readyState&&200<=this.status&&this.status<300&&(e=JSON.parse(this.responseText))&&e.vid&&t(e.vid)},n.send())}},{}],433:[function(e,t,n){"use strict";var i;(i=window).openChat=function(e){var t="width=386,height=720,status=yes,location=no,left="+(i.screen.availWidth-386-20)+",top=0,resizable=1",n=encodeURIComponent(i.location.href);return i.open(e+"&myurl="+n,"NetopWebDesk",t).focus(),!1}},{}],205:[function(e,t,n){"use strict";var i=m(e("powerform")),f=m(e("mithril")),h=e("../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat"),a=m(e("../../../../beregnere-tk/javascript-tk-beregnere/components/util/labelsAndSettings")),s=m(e("../../../../beregnere-tk/javascript-tk-beregnere/components/modal/ts-modal")),l=m(e("../../../../beregnere-tk/javascript-tk-beregnere/components/spinner/ts-spinner")),u=m(e("../../calculators/NykreditTooltip.js")),c=m(e("../../../../beregnere-tk/javascript-tk-beregnere/components/error/ts-error")),d=m(e("../../../../beregnere-tk/javascript-tk-beregnere/components/util/InPartnershipWith")),r=e("validatex"),o=m(e("./nykredit-mithrilHighchartRefinance")),p=e("../../mdc-mithril-init");function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var v=new a.default,_={baseUrl:""};function y(e){return Math.round(10*e)/10}var b={oncreate:function(e){e.attrs.model;setTimeout(function(){e.dom.classList.remove("tk-hide"),e.dom.classList.add("tk-enter-animation")},500)},view:function(e){var t=e.attrs.model,e=t.beregnerResultData,n=t.withInstallments?"tab-active":"tab-inactive",i=t.withInstallments?"tab-inactive":"tab-active",a=(e=e,a=t.withInstallments,r=t.withPlusOne,a?r?e.WithInstallmentsPlusOnePercent:e.WithInstallments:r?e.WithoutInstallmentsPlusOnePercent:e.WithoutInstallments),r=0<window.innerWidth?window.innerWidth:screen.width,e=r<1e3,r=400<r&&r<900;return(0,f.default)("div",{class:"beregner__before-result beregner__before-result--ultra-wide"},(0,f.default)("div",{class:"tk-refinance-container-right"},(0,f.default)("div",null,(0,f.default)("button",{class:"tk-refinance-tab tk-button-refinance "+n,onclick:function(){t.withInstallments=1}},v.get("LeftTab"))),(0,f.default)("div",null,(0,f.default)("button",{class:"tk-refinance-tab tk-button-refinance "+i,onclick:function(){t.withInstallments=0}},v.get("Rightab"))),(0,f.default)("div",{class:"tk-refinance-afdrag-tooltip tk-refinance-afdrag-tooltip-mobile"},(0,f.default)(u.default,{text:v.get("AfdragTooltip"),class:""}))),(0,f.default)("div",{class:"tk-resultbox__container tk-refinance-highchart-container"},(0,f.default)(o.default,{activeDataset:a,seriesNames:[v.get("AfdragLabel"),v.get("RenterOgBidragLabel")],isMobile:e,isLargeMobile:r})),(0,f.default)("div",{class:"tk-refinance-gray-line"}),(0,f.default)("div",{class:"tk-refinance-table-container"},(0,f.default)("table",null,(0,f.default)("tbody",null,(0,f.default)("tr",{class:"tk-refinance-row"},(0,f.default)("th",{class:"tk-refinance-first-column tk-refinance-first-column-mobile"},v.get("FirstRowName")),(0,f.default)("td",{class:"tk-refinance-second-column tk-refinance-second-column-mobile"},(0,h.applyThousandSeperator)(a[0].MonthlyRateBeforeTax)," kr."),(0,f.default)("td",{class:"tk-refinance-third-column tk-refinance-third-column-mobile"},(0,h.applyThousandSeperator)(a[1].MonthlyRateBeforeTax)," kr."),(0,f.default)("td",{class:"tk-refinance-fourth-column tk-refinance-fourth-column-mobile"},(0,h.applyThousandSeperator)(a[2].MonthlyRateBeforeTax)," kr.")),(0,f.default)("tr",{class:"tk-refinance-row"},(0,f.default)("th",{class:"tk-refinance-first-column tk-refinance-first-column-mobile"},v.get("SecondRowName")),(0,f.default)("td",{class:"tk-refinance-second-column tk-refinance-second-column-mobile"},(0,h.applyThousandSeperator)(a[0].MonthlyRateAfterTax)," kr."),(0,f.default)("td",{class:"tk-refinance-third-column tk-refinance-third-column-mobile"},(0,h.applyThousandSeperator)(a[1].MonthlyRateAfterTax)," kr."),(0,f.default)("td",{class:"tk-refinance-fourth-column tk-refinance-fourth-column-mobile"},(0,h.applyThousandSeperator)(a[2].MonthlyRateAfterTax)," kr.")),(0,f.default)("tr",{class:"tk-refinance-row"},(0,f.default)("th",{class:"tk-refinance-first-column tk-refinance-first-column-mobile"},v.get("ThirdRowName")),(0,f.default)("td",{class:"tk-refinance-second-column tk-refinance-second-column-mobile"}
1,String(y(Number(a[0].CalculateEstimatedCashrate))).replace(".",","),"%"),(0,f.default)("td",{class:"tk-refinance-third-column tk-refinance-third-column-mobile"},String(y(Number(a[1].CalculateEstimatedCashrate))).replace(".",","),"%"),(0,f.default)("td",{class:"tk-refinance-fourth-column tk-refinance-fourth-column-mobile"},String(y(Number(a[2].CalculateEstimatedCashrate))).replace(".",","),"%")),(0,f.default)("tr",{class:"tk-refinance-row"},(0,f.default)("th",{class:"tk-refinance-first-column tk-refinance-first-column-mobile"},v.get("FourthRowName")),(0,f.default)("td",{class:"tk-refinance-second-column tk-refinance-second-column-mobile"},String(y(Number(a[0].ContributionRate))).replace(".",","),"%"),(0,f.default)("td",{class:"tk-refinance-third-column tk-refinance-third-column-mobile"},String(y(Number(a[1].ContributionRate))).replace(".",","),"%"),(0,f.default)("td",{class:"tk-refinance-fourth-column tk-refinance-fourth-column-mobile"},String(y(Number(a[2].ContributionRate))).replace(".",","),"%"))))),(0,f.default)("div",{class:"tk-refinance-below-table-input-container"},(0,f.default)("div",{class:"mdc-form-field mdc-form-field--inline tk-refinance-below-table-input"},(0,f.default)("div",{class:"mdc-radio",oncreate:p.createMdcRadio,onremove:p.removeMdc},(0,f.default)("input",{id:"tk-radio-interestdaily",class:"mdc-radio__native-control",type:"radio",name:"radiolist2",checked:0==t.withPlusOne,onchange:f.default.withAttr("checked",function(){t.withPlusOne=0,t.state="calcDone",f.default.redraw})}),(0,f.default)("div",{class:"mdc-radio__background"},(0,f.default)("div",{class:"mdc-radio__outer-circle"}),(0,f.default)("div",{class:"mdc-radio__inner-circle"}))),(0,f.default)("label",{class:"mdc-typography--body-alt",id:"tk-radio-interestdaily-label",for:"tk-radio-interestdaily"},v.get("DailyRentLevelOne"))),(0,f.default)("div",{class:"mdc-form-field mdc-form-field--inline"},(0,f.default)("div",{class:"mdc-radio",oncreate:p.createMdcRadio,onremove:p.removeMdc},(0,f.default)("input",{id:"tk-radio-interestdailyplusone",class:"mdc-radio__native-control",type:"radio",name:"radiolist2",checked:1==t.withPlusOne,onchange:f.default.withAttr("checked",function(){t.withPlusOne=1,t.state="calcDone",f.default.redraw})}),(0,f.default)("div",{class:"mdc-radio__background"},(0,f.default)("div",{class:"mdc-radio__outer-circle"}),(0,f.default)("div",{class:"mdc-radio__inner-circle"}))),(0,f.default)("label",{class:"mdc-typography--body-alt",id:"tk-radio-interestdailyplusone-label",for:"tk-radio-interestdailyplusone"},v.get("DailyRentLevelTwo")),(0,f.default)("div",{class:"tk-refinance-below-table-tooltip"},(0,f.default)(u.default,{text:v.get("DailyRentTooltip"),class:"tk-refinance-label-right"})))),e?(0,f.default)("div",{class:"tk-row"},(0,f.default)("div",{class:"tk-col-xs-11 tk-col-md-12 tk-typography--body-xs-alt tk-refinance-mobile-padding-disclaimer"},v.getHtml("description")),(new d.default).get()):(0,f.default)("div",null))}},k={onbeforeremove:function(e){return e.dom.classList.add("tk-exit-animation"),new Promise(function(e){setTimeout(e,500)})},view:function(e){e.attrs.model;e=(0<window.innerWidth?window.innerWidth:screen.width)<1e3;return(0,f.default)("div",{class:"beregner__before-result"},(0,f.default)("div",{class:"tk-resultbox__container"},(0,f.default)("div",{class:"beregner-icon"},(0,f.default)("svg",{width:"86",height:"87",viewBox:"0 0 86 87",xmlns:"http://www.w3.org/2000/svg"},(0,f.default)("g",{transform:"translate(1.2 1.299)",stroke:"var(--colortheme-icon)","stroke-width":"2",fill:"none","fill-rule":"evenodd","stroke-linecap":"square"},(0,f.default)("path",{d:"M41.778 84.124V45.956M0 0h83.556v45.956H0z"}),(0,f.default)("ellipse",{cx:"41.391",cy:"22.199",rx:"7.35",ry:"7.4"}),(0,f.default)("path",{d:"M13.152 13.242h7.737M62.667 32.715h7.736M70.403 59.198H62.77c-11.594 0-20.992 9.443-20.992 21.091v3.835h7.633c11.594 0 20.992-9.443 20.992-21.091v-3.835z"})))),(0,f.default)("h3",{class:"mdc-typography--subtitle-lg beregner__before-result__title"},v.get("GeneralTitle")),(0,f.default)("p",{class:"tk-resultbox__result-before__text tk-typography--body"},v.get("GeneralDescription"))),e?(0,f.default)("div",{class:"tk-row"},(0,f.default)("div",{class:"tk-col-xs-11 tk-col-md-12 tk-typography--body-xs-alt tk-refinance-mobile-padding-disclaimer"},v.getHtml("description")),(new d.default).get()):(0,f.default)("div",null))}},w={form:(0,i.default)({tk_debt:{validator:[(0,r.required)(!0)],modifier:function(e,t){return(0,h.applyThousandSeperator)(e)}}
1,tk_runtime_input:{validator:[(0,r.required)(!0)],modifier:function(e,t){return e}},tk_percentageLeftInput:{default:"0",validator:[(0,r.required)(!0)],modifier:function(e,t){return E(e,0)}},tk_percentageRightInput:{default:"80",validator:[(0,r.required)(!0)],modifier:function(e,t){return E(e,0)}}}),model:{state:"loading",selectedHouseType:1,openedMortage:!1,beregnerResultData:null,calculateServerError:"",withPlusOne:0,withInstallments:1},calculate:function(){var t,e,n,i,a,r,o,s,l,u,c=w.model,d=w.form;c.state="calculating",null!=d.tk_debt().toString()&&null!=d.tk_runtime_input().toString()&&d.tk_percentageLeftInput().toString()&&d.tk_percentageRightInput().toString()&&(t=(0,h.removeNonDigitChars)(d.tk_debt().toString()),e=(0,h.removeNonDigitChars)(d.tk_runtime_input().toString()),n=(0,h.removeNonDigitChars)(d.tk_percentageLeftInput().toString()),d=(0,h.removeNonDigitChars)(d.tk_percentageRightInput().toString()),i=2==c.selectedHouseType,a=i,r=t,o=e,s=n,l=d,(u=new URL(window.location)).searchParams.set("holidayHouse",a),u.searchParams.set("amount",r),u.searchParams.set("loanPeriod",o),u.searchParams.set("startInterval",s),u.searchParams.set("endInterval",l),window.history.pushState(null,"",u.toString()),a=(_&&_.baseUrl?_.baseUrl:"")+"/api/refinance/refinansering"+("?holidayHouse="+(i?"1":"0")+"&amount="+t+"&loanPeriod="+e+"&startInterval="+n+"&endInterval="+d),f.default.request({method:"GET",url:a}).then(function(e){""!=e.Error?(c.calculateServerError=e.Error,c.state="serverError"):(c.calculateServerError="",c.beregnerResultData=e,c.state="calcDone",window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event.beregn_rentetilpasning",eventCategory:"beregn",eventAction:"rentetilpasning",eventLabel:"submit",eventValue:"0",eventNoninteraction:!0,userType:"privat",userDebt:t,propertyType:i?"Feriebolig":"Ejerbolig"})),f.default.redraw},function(e){c.state="calcError",""!==e.message?c.calculateServerError=e.message:c.calculateServerError="Fejl i kald til serveren."}))},oninit:function(e){var t=e.state.model,n=e.state.form;_=e.attrs.settings,_=e.attrs.baseUrl&&null!=e.attrs.baseUrl&&""!=e.attrs.baseUrl?{baseUrl:e.attrs.baseUrl}:{baseUrl:""};v.download("RefinanceCalculator",_,function(){e.state.form;"False"===v.get("serviceActive")&&(e.state.model.state="serviceNotActive")}),t.state="initDone",T(t,n,e)},view:function(e){var t,n=e.state.model,i=e.state.form,a=(n.initialValuesSet||(T(n,i,e),NaN!=v.get("MaxDebt")&&(n.initialValuesSet=!0)),null!=i.tk_debt()&&(0,h.removeNonDigitChars)(i.tk_debt()),null!=i.tk_runtime_input()&&(0,h.removeNonDigitChars)(i.tk_runtime_input()),""!=n.calculateServerError&&(n.invalidPercentage=S(i,v),n.invalidRunTime=C(i.tk_runtime_input(),v),n.invalidDebt=x(i.tk_debt(),v)),null);switch(n.state){case"calculating":case"loading":a=(0,f.default)("div",{class:"tk-col-xs-12 tk-center-xs tk-col--top-padding tk-col--bottom-padding"},(0,f.default)(l.default,null));break;case"initError":return(0,f.default)("div",null,"Kunne ikke initialisere beregner. Prøv senere eller genindlæs siden.");case"calcDone":a=(0,f.default)(b,{model:e.state.model});break;case"calcError":a=(0,f.default)("div",null," calcError ");break;default:a=(0,f.default)(k,{model:e.state.model})}var r=(0,f.default)(s.default,{title:v.get("disclaimerHeading"),body:v.getHtml("disclaimerContent")}),o=(0<window.innerWidth?window.innerWidth:screen.width)<1e3;return(0,f.default)("div",null,(0,f.default)("div",{class:"tk-beregner tk-beregner-refinance nyk-beregner-refinance tk-beregner--force-mobile-styling"},(0,f.default)("div",{class:"mdc-layout-grid__inner"},(0,f.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6"},(0,f.default)("div",{class:"mdc-layout-grid__inner"},(0,f.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12 tk-col--bottom-padding"},(0,f.default)("div",{class:"mdc-form-field mdc-form-field--inline"},(0,f.default)("div",{class:"mdc-radio mdc-ripple-upgraded mdc-ripple-upgraded--unbounded"},(0,f.default)("input",{id:"tk-radio-house",class:"mdc-radio__native-control",type:"radio",name:"radiolist",checked:1==n.selectedHouseType,onchange:f.default.withAttr("checked",function(){n.selectedHouseType=1,n.state="valueChanged",n.openedMortage||(i.tk_percentageRightInput.setInitialValue(v.get("ContributionRateDefaultValueHouseType1")),i.tk_debt.setInitialValue(i.tk_debt()),i.tk_runtime_input.setInitialValue(i.tk_runtime_input()),i.reset())})}),(0,f.default)("div",{class:"mdc-radio__background"},(0,f.default)("div",{class:"mdc-radio__outer-circle"}
1),(0,f.default)("div",{class:"mdc-radio__inner-circle"}))),(0,f.default)("label",{class:"mdc-typography--body-alt",id:"tk-radio-house-label",for:"tk-radio-house"},v.get("HousingType1"))),(0,f.default)("div",{class:"mdc-form-field mdc-form-field--inline"},(0,f.default)("div",{class:"mdc-radio mdc-ripple-upgraded mdc-ripple-upgraded--unbounded"},(0,f.default)("input",{id:"tk-radio-leisure",class:"mdc-radio__native-control",type:"radio",name:"radiolist",checked:2==n.selectedHouseType,onchange:f.default.withAttr("checked",function(){n.selectedHouseType=2,n.state="valueChanged",n.openedMortage||(i.tk_percentageRightInput.setInitialValue(v.get("ContributionRateDefaultValueHouseType2")),i.tk_debt.setInitialValue(i.tk_debt()),i.tk_runtime_input.setInitialValue(i.tk_runtime_input()),i.reset())})}),(0,f.default)("div",{class:"mdc-radio__background"},(0,f.default)("div",{class:"mdc-radio__outer-circle"}),(0,f.default)("div",{class:"mdc-radio__inner-circle"}))),(0,f.default)("label",{class:"mdc-typography--body-alt",id:"tk-radio-leisure-label",for:"tk-radio-leisure"},v.get("HousingType2"))))),(0,f.default)("div",{class:"mdc-layout-grid__inner"},(0,f.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5 tk-col--bottom-padding"},(0,f.default)("div",{class:"tk-refinance-label-right"},(0,f.default)(u.default,{text:v.get("DebtTooltip")}))," ",(0,f.default)("div",{class:"mdc-form-field"},(0,f.default)("div",{class:"mdc-text-field mdc-text-field--outlined mdc-text-field--grey js-forms-mdc-text-field mdc-text-field--upgraded tk-refinance-no-margin-top",oncreate:p.createMdcTextfield,onupdate:p.updateMdcTextfield,onremove:p.removeMdc},(0,f.default)("input",{class:"mdc-text-field__input",type:"tel",maxlength:"12",id:"debt-input",name:"debt-input",min:"1",max:"10000000000",value:i.tk_debt(),oninput:f.default.withAttr("value",i.tk_debt),onfocusout:function(){n.invalidDebt=x(i.tk_debt(),v)}}),(0,f.default)("label",{class:"mdc-floating-label",for:"debt-input"},v.get("DebtBaseText")),(0,f.default)("div",{class:"mdc-line-ripple"}))),(0,f.default)(c.default,{visible:n.invalidDebt,message:v.get("ErrorDebtLabel")})),(0,f.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5 tk-col--bottom-padding"},(0,f.default)("div",{class:"tk-refinance-label-right"},(0,f.default)(u.default,{text:v.get("RuntimeTooltip")})),(0,f.default)("div",{class:"mdc-form-field"},(0,f.default)("div",{class:"mdc-text-field mdc-text-field--outlined mdc-text-field--grey js-forms-mdc-text-field mdc-text-field--upgraded tk-refinance-no-margin-top",oncreate:p.createMdcTextfield,onupdate:p.updateMdcTextfield,onremove:p.removeMdc},(0,f.default)("input",{class:"mdc-text-field__input",type:"tel",maxlength:"2",id:"runtime-input",name:"runtime-input",value:i.tk_runtime_input(),oninput:f.default.withAttr("value",i.tk_runtime_input),onfocusout:function(){n.invalidRunTime=C(i.tk_runtime_input(),v)}}),(0,f.default)("label",{class:"mdc-floating-label",for:"runtime-input"},v.get("RuntimeBaseText")),(0,f.default)("div",{class:"mdc-line-ripple"}))),(0,f.default)(c.default,{visible:n.invalidRunTime,message:v.get("ErrorRuntimeLabel")}))),(0,f.default)("div",{class:"mdc-layout-grid__inner"},(0,f.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12 tk-col--bottom-padding"},n.openedMortage?(0,f.default)("div",null,(0,f.default)("div",{class:"mdc-layout-grid__inner"},(0,f.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6",style:"display: flex;"},(0,f.default)("div",{class:"tk-refinance-label-right",style:"right: 14px"},(0,f.default)(u.default,{text:v.get("ContributionRateTooltipWithConfig")})),(0,f.default)("div",{class:"mdc-form-field tk-refinance-contribution-input",style:"min-width: 134px;"},(0,f.default)("div",{class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded",oncreate:p.createMdcTextfield,onupdate:p.updateMdcTextfield,onremove:p.removeMdc},(0,f.default)("input",{type:"tel",class:"mdc-text-field__input",maxlength:"4",size:"4",id:"percent-left-input",n
1ame:"percent-left-input",value:i.tk_percentageLeftInput(),oninput:f.default.withAttr("value",i.tk_percentageLeftInput),onfocusout:function(){n.invalidPercentage=S(i,v)}}),(0,f.default)("label",{class:"mdc-floating-label",for:"runtime-input"},"Belåningsgrad"),(0,f.default)("div",{class:"mdc-line-ripple"}))),(0,f.default)("span",{class:n.invalidPercentage?"tk-refinance-seperator tk-form-field__title__error":"tk-refinance-seperator"},"-"),(0,f.default)("div",{class:"mdc-form-field tk-refinance-contribution-input",style:"min-width: 134px;"},(0,f.default)("div",{class:"tk-refinance-label"},(0,f.default)(u.default,{text:v.get("ContributionRateTooltipWithConfig")})),(0,f.default)("div",{class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded",oncreate:p.createMdcTextfield,onupdate:p.updateMdcTextfield,onremove:p.removeMdc},(0,f.default)("input",{type:"tel",class:"mdc-text-field__input",maxlength:"4",size:"4",id:"percent-right-input",name:"percent-right-input",value:i.tk_percentageRightInput(),oninput:f.default.withAttr("value",i.tk_percentageRightInput),onfocusout:function(){n.invalidPercentage=S(i,v)}}),(0,f.default)("label",{class:"mdc-floating-label",for:"percent-right-input"},"Belåningsgrad"),(0,f.default)("div",{class:"mdc-line-ripple"}))))),(0,f.default)(c.default,{visible:n.invalidPercentage,message:v.get("ErrorContributionRate")})):(0,f.default)("div",{class:"mdc-form-field mdc-form-field--inline"},1==n.selectedHouseType?v.get("ContributionRateHouseType1"):v.get("ContributionRateHouseType2")," - ",(0,f.default)("span",{class:"tk-refinance-belaaning-span"}),(0,f.default)("div",{class:"tk-refinance-belaaning",onclick:function(){n.openedMortage=!0,f.default.redraw}},v.get("ContributionLinkText"))))),(0,f.default)("div",{class:"mdc-layout-grid__inner"},(0,f.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12 tk-col--bottom-padding"},n.invalidPercentage||n.invalidRunTime||n.invalidDebt?(0,f.default)("button",{type:"submit",class:"mdc-button mdc-button--raised mdc-button--primary mdc-ripple-upgraded tk-button-refinance",disabled:!0},v.get("submit")):(0,f.default)("button",{type:"submit",class:"mdc-button mdc-button--raised mdc-button--primary mdc-ripple-upgraded tk-button-refinance",onclick:function(){e.state.calculate()}},v.get("submit")),(0,f.default)("a",(g(t={class:"mdc-button mdc-button--raised mdc-button--primary mdc-ripple-upgraded"},"class","tk-button-refinance tk-refinance-modal"),g(t,"onclick",function(){r.state.open()}),t),v.get("disclaimerButton")))),o?(0,f.default)("div",null):(0,f.default)("div",{class:"tk-row"},(0,f.default)("div",{class:"tk-col-xs-11 tk-col-md-12 tk-typography--body-xs-alt tk-refinance-mobile-padding-disclaimer"},v.getHtml("description")),(new d.default).get())),(0,f.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6"},a))),r)}};function S(e,t){var n=0,i=80,e=(null!=e.tk_percentageLeftInput()&&(n=(0,h.removeNonDigitChars)(e.tk_percentageLeftInput())),null!=e.tk_percentageRightInput()&&(i=(0,h.removeNonDigitChars)(e.tk_percentageRightInput())),Number(t.get("ContributionRateMinHouseType1"))),a=Number(t.get("ContributionRateMaxHouseType1")),r=Number(t.get("ContributionRateMinHouseType2")),t=Number(t.get("ContributionRateMaxHouseType2"));return i<=n||n<e||a<n||i<r||t<i}function x(e,t){var n;return null!=(e=(0,h.removeNonDigitChars)(e))&&""!==e&&(n=e<Number(t.get("MinDebt")),e=e>Number(t.get("MaxDebt")),n||e)}function C(e,t){var n;return null!=(e=(0,h.removeNonDigitChars)(e))&&""!==e&&(n=e<Number(t.get("MinRunTime")),e=e>Number(t.get("MaxRunTime")),n||e)}function T(e,t,n){var i=new URLSearchParams(window.location.search);i.has("holidayHouse")&&(e.selectedHouseType="true"===i.get("holidayHouse")?2:1),i.has("amount")&&t.tk_debt.setInitialValue(i.get("amount")),i.has("loanPeriod")&&t.tk_runtime_input.setInitialValue(i.get("loanPeriod")),i.has("startInterval")&&t.tk_percentageLeftInput.setInitialValue(i.get("startInterval")),i.has("endInterval")&&t.tk_percentageRightInput.setInitialValue(i.get("endInterval")),i.has("IncludePayments")&&(e.withInstallments=!!i.get("IncludePayments")),i.has("IncreaseInInterest")&&(e.withPlusOne=!!i.get("IncreaseInInterest")),t.reset(),e.
1invalidPercentage=S(t,v),e.invalidRunTime=C(t.tk_runtime_input(),v),e.invalidDebt=x(t.tk_debt(),v),!i.has("amount")||!i.has("loanPeriod")||e.invalidPercentage||e.invalidRunTime||e.invalidDebt||n.state.calculate()}function E(e,t){t=1<arguments.length&&void 0!==t?t:2;return null==e?"":(e=(e=e.toString()).replace(/[^0-9]/g,""),e=(e=Number(e)).toLocaleString("da-DK",{minimumFractionDigits:t,maximumFractionDigits:t}),e+"%")}e=document.getElementsByTagName("nyk-beregner-refinansering")||[];if(null!=e&&0!==e.length||(a=[],null!=(i=document.getElementById("nyk-refinance-calculator"))&&(a.push(i),e=a)),0<e.length){var r=e[0],A={};if(null!=r.getAttribute("labels"))try{var O=JSON.parse(r.getAttribute("labels"));A.customLabels=O}catch(e){console.log("Could not parse custom labels")}A.baseUrl=null!=r.getAttribute("base-url")?r.getAttribute("base-url"):null,A.debugLabels=r.getAttribute("debug-labels"),r.getAttribute("link-css")&&((i=document.createElement("link")).setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",r.getAttribute("link-css")),void 0!==i)&&document.getElementsByTagName("head")[0].appendChild(i),(r=document.getElementById("nyk-refinance-calculator"))&&f.default.mount(r,{view:function(){return(0,f.default)(w,A)}})}},{"../../../../beregnere-tk/javascript-tk-beregnere/components/error/ts-error":2,"../../../../beregnere-tk/javascript-tk-beregnere/components/modal/ts-modal":7,"../../../../beregnere-tk/javascript-tk-beregnere/components/spinner/ts-spinner":10,"../../../../beregnere-tk/javascript-tk-beregnere/components/util/InPartnershipWith":12,"../../../../beregnere-tk/javascript-tk-beregnere/components/util/labelsAndSettings":16,"../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat":17,"../../calculators/NykreditTooltip.js":144,"../../mdc-mithril-init":255,"./nykredit-mithrilHighchartRefinance":206,mithril:410,powerform:416,validatex:432}],206:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=l(e("mithril")),o=l(e("highcharts")),s=l(e("./nykredit-mithrilHighchartRefinanceDraw"));function l(e){return e&&e.__esModule?e:{default:e}}i(u,[{key:"oninit",value:function(e){this.modelData,this.isMobile=e.attrs.isMobile,this.isLargeMobile=e.attrs.isLargeMobile,this.mithrilDraw=new s.default(this.isMobile)}},{key:"oncreate",value:function(e){this.drawHighChart(e)}},{key:"onupdate",value:function(e){e.attrs.activeDataset!=this.modelData&&this.drawHighChart(e)}},{key:"view",value:function(e){return(0,r.default)("div",{class:"mdc-layout-grid__cell--span-12 tk-beregner-flexLoan__results",id:"resultDetails"},(0,r.default)("div",{id:"nyk-refinance__highchart",class:"tk-beregner__highchart",style:"height: 279px"}))}},{key:"drawHighChart",value:function(e){this.modelData=e.attrs.activeDataset,this.seriesName=e.attrs.seriesNames,this.columnNames=["F1","F3","F5"],this.columnSeries=[this.seriesName[0],this.seriesName[1]];var e=[this.modelData[0].Repayment,this.modelData[1].Repayment,this.modelData[2].Repayment],t=[this.modelData[0].InterestAndContributions,this.modelData[1].InterestAndContributions,this.modelData[2].InterestAndContributions];this.columnData=[e,t],this.chartdata=[],this.isMobile&&this.isLargeMobile?this.chartdata=this.mithrilDraw.getChartDataMobileLarge(this.columnNames,this.columnSeries,this.columnData):this.isMobile?this.chartdata=this.mithrilDraw.getChartDataMobile(this.columnNames,this.columnSeries,this.columnData):this.chartdata=this.mithrilDraw.getChartData(this.columnNames,this.columnSeries,this.columnData),o.default.setOptions({colors:["#0f1e82","#4192dc"]}),this.chart=o.default.chart("nyk-refinance__highchart",this.chartdata)}}]);e=u;function u(){if(!(this instanceof u))throw new TypeError("Cannot call a class as a function")}n.default=e},{"./nykredit-mithrilHighchartRefinanceDraw":207,highcharts:408,mithril:410}],207:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var r=e("mithril"),o=((r=r)&&r.__esModule,e("../../../../beregnere-tk/javascript-tk-beregnere/components/util/highchartsTheme"),e("../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat"));i(s,[{key:"updateSeries",value:function(){}},{key:"getChartDataMobile",value:function(e,t,n){return{chart:{type:"column",marginLeft:110,events:{load:function(){var e=this.series[0].points.length,e=95*(e-1)+e*this.series[0].points[0].pointWidth;this.update({chart:{width:e}})}}},title:{text:""},xAxis:{categories:e,lineWidth:0,minorGridLineWidth:0,gridLineWidth:0,lineColor:"transparent",minorTickLength:0,tickLength:0,visible:!0},yAxis:{min:0,lineWidth:0,minorGridLineWidth:0,gridLineWidth:0,lineColor:"transparent",minorTickLength:0,tickLength:0,title:{text:""},visible:!1,stackLabels:{enabled:!1,style:{fontWeight:"bold",color:"gray",textOutline:"none"}}},credits:{enabled:!1},tooltip:{useHTML:!0,backgroundColor:"rgba(255, 255, 255, 1)",shape:"square",formatter:function(){var t=this.point,e=this.series.chart.series,n=t.index,i="<table>",a=0,r=["#fabf3a","#FF8300"];return e.forEach(function(e){e.options.stack===t.series.options.stack&&(i+="<tr><td style='text-align: left;'> <span style='font-size: 16px; color:"+r[a]+"'>â </span><b>"+e.name+"</b></td><td style='text-align: center;'><span style='position:relative; top: 2px'>"+(0,o.applyThousandSeperator)(e.points[n].y)+" kr </span></td></tr>",a+=1)}),i+="</table>"}},dataLabels:{enabled:!0},plotOptions:{column:{stacking:"normal",pointPadding:0,groupPadding:-100,pointWidth:55,padding:0}},legend:{enabled:!0,align:"right",x:-20,verticalAlign:"top",y:-10,floating:!0},series:[{borderWidth:0,name:t[0],data:n[0],showInLegend:!0,index:1,legendIndex:1,events:{legendItemClick:function(e){e.preventDefault()}},states:{hover:{enabled:!1},inactive:{enabled:!1},select:{enabled:!1}}},{borderWidth:0,name:t[1],data:n[1],showInLegend:!0,index:0,legendIndex:0,events:{legendItemClick:function(e){e.preventDefault()}},states:{hover:{enabled:!1},inactive:{enabled:!1},select:{enabled:!1}}}]}}},{key:"getChartDataMobileLarge",value:function(e,t,n){return{chart:{type:"column",marginLeft:100,events:{load:function(){var e=this.series[0].points.length,e=85*(e-1)+e*this.series[0].points[0].pointWidth;this.update({chart:{width:e}})}}},title:{text:""},xAxis:{categories:e,lineWidth:0,minorGridLineWidth:0,gridLineWidth:0,lineColor:"transparent",minorTickLength:0,tickLength:0,visible:!0},yAxis:{min:0,lineWidth:0,minorGridLineWidth:0,gridLineWidth:0,lineColor:"transparent",minorTickLength:0,tickLength:0,title:{text:""},visible:!1,stackLabels:{enabled:!1,style:{fontWeight:"bold",color:"gray",textOutline:"none"}}},credits:{enabled:!1},tooltip:{useHTML:!0,backgroundColor:"rgba(255, 255, 255, 1)",shape:"square",formatter:function(){var t=this.point,e=this.series.chart.series,n=t.index,i="<table>",a=0,r=["#fabf3a","#FF8300"];return e.forEach(function(e){e.options.stack===t.series.options.stack&&(i+="<tr><td style='text-align: left;'> <span style='font-size: 16px; color:"+r[a]+"'>â </span><b>"+e.name+"</b></td><td style='text-align: center;'><span style='position:relative; top: 2px'>"+(0,o.applyThousandSeperator)(e.points[n].y)+" kr </span></td></tr>",a+=1)}),i+="</table>"}},dataLabels:{enabled:!0},plotOptions:{column:{stacking:"normal",pointPadding:0,groupPadding:-100,pointWidth:55,padding:0}},legend:{enabled:!0,align:"right",x:-20,verticalAlign:"top",y:-10,floating:!0},series:[{borderWidth:0,name:t[0],data:n[0],showInLegend:!0,index:1,legendIndex:1,events:{legendItemClick:function(e){e.preventDefault()}},states:{hover:{enabled:!1},inactive:{enabled:!1},select:{enabled:!1}}},{borderWidth:0,name:t[1],data:n[1],showInLegend:!0,index:0,legendIndex:0,events:{legendItemClick:function(e){e.preventDefault()}},states:{hover:{enabled:!1},inactive:{enabled:!1},select:{enabled:!1}}}]}}},{key:"getChartData",value:function(e,t,n){return{chart:{type:"column",events:{load:function(){var e=this.series[0].points.length,e=100*(e-1)+e*this.series[0].points[0].pointWidth;this.update({chart:{width:e}})}}},title:{text:""},xAxis:{categories:e,lineWidth:0,minorGridLineWidth:0,gridLineWidth:0,lineColor:"transparent",minorTickLength:0,tickLength:0,visible:!0},yAxis:{min:0,lineWidth:0,minorGridLineWidth:0,gridLineWidth:0,lineColor:"transparent",minorTickLength:0,tickLength:0,title:{text:""},visible:!1,stackLabels:{enabled:!1,style:{fontWeight:"bold",color:"gray",textOutline:"none"}}},credits:{enabled:!1},tooltip:{useHTML:!0,backgroundColor:"rgba(255, 255, 255, 1)",shape:"square",formatter:function(){var t=this.point,e=this.series.chart.series,n=t.index,i="<table>",a=0,r=["#0f1e82","#4192dc"];return e.forEach(function(e){e.options.stack===t.series.options.stack&&(i+="<tr><td style='text-align: left;'> <span style='font-size: 16px; color:"+r[a]+"'>â </span><b>"+e.name+"</b></td><td style='text-align: center;'><span style='position:relative; top: 2px'>"+(0,o.applyThousandSeperator)(e.points[n].y)+" kr </span></td></tr>",a+=1)}),i+="</table>"}},dataLabels:{enabled:!0},plotOptions:{column:{stacking:"normal",pointPadding:0,groupPadding:-100,pointWidth:55,padding:0}},legend:{enabled:!0,align:"right",x:-20,verticalAlign:"top",y:-10,floating:!0},series:[{borderWidth:0,name:t[0],data:n[0],showInLegend:!0,index:1,legendIndex:1,events:{legendItemClick:function(e){e.preventDefault()}},states:{hover:{enabled:!1},inactive:{enabled:!1},select:{enabled:!1}}},{borderWidth:0,name:t[1],data:n[1],showInLegend:!0,index:0,legendIndex:0,events:{legendItemClick:function(e){e.preventDefault()}},states:{hover:{enabled:!1},inactive:{enabled:!1},select:{enabled:!1}}}]}}}]);r=s;function s(e){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function");this.isMobile=e;e=document.getElementById("nyk-refinance-calculator");this.pointWidth=e&&null!=e&&e.getAttribute("pointWidth")&&null!=e.getAttribute("pointWidth")&&null!=e.getAttribute("pointWidth")?e.getAttribute("pointWidth"):0,this.groupPadding=e&&null!=e&&e.getAttribute("groupPadding")&&null!=e.getAttribute("groupPadding")&&null!=e.getAttribute("groupPadding")?e.getAttribute("groupPadding"):0}n.default=r},{"../../../../beregnere-tk/javascript-tk-beregnere/components/util/highchartsTheme":15,"../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat":17,mithril:410}],198:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ResultColumn=n.ResultAction=n.ResultState=n.LoanAbroadResultTable=void 0;var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=u(e("mithril")),r=u(e("./LoanAbroadNumberFormatterService")),s=e("./LoanAbroadEnums"),l=u(e("../NykreditTooltip"));
1function u(e){return e&&e.__esModule?e:{default:e}}var c=Object.freeze({Left:"Left",Right:"Right"}),d=Object.freeze({Initial:"Initial",Loading:"Loading",Error:"Error",Success:"Success"}),e=Object.freeze({Error:"Error",Calculate:"Calculate",CalculationSuccess:"CalculationSuccess"}),i=(i(f,[{key:"_setState",value:function(e,t){null==t||-1==Object.keys(d).indexOf(t)?this._states[e]=d.Error:this._states[e]=t}},{key:"UpdateState",value:function(e,t){var n=this.GetState(e),n=this._stateMachine[n][t];this._setState(e,n)}},{key:"GetState",value:function(e){return this._states[e]}},{key:"UpdateResult",value:function(e,t){this._results[e]=t}},{key:"GetResult",value:function(e){return this._results[e]}},{key:"GetEstimatedTotalPayoutView",value:function(e){var t=this,n=this.GetValues("EstimatedTotalPayout",function(e){return t._formatters.Euros(e)});return(0,o.default)("div",{class:"beregner__result-total"},(0,o.default)("div",{class:"beregner__result-total__label"},e),(0,o.default)("div",{class:"beregner__result-total__left"},(0,o.default)("span",{class:"mdc-typography--title-sm"},n[c.Left],"Â ")),(0,o.default)("div",{class:"beregner__result-total__right"},(0,o.default)("span",{class:"mdc-typography--title-sm"},n[c.Right],"Â ")))}},{key:"GetRowView",value:function(e,t,n,i){var a=n[c.Left],n=n[c.Right],r=this._hideRightCol;return(0,o.default)("div",{class:"mdc-layout-grid__inner beregner__result-table__row"},(0,o.default)("div",{class:"mdc-layout-grid__cell"+(r?" mdc-layout-grid__cell--span-9-desktop mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-2-phone":" mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-2-phone")+" beregner__result-table__row__label"+(i?" beregner__result-table__row__label__bold":"")},e," ",null!=t?(0,o.default)(l.default,{text:t}):""),(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3-desktop mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-2-phone beregner__result-table__row__result-1"},null!=a?a:"-"),r?"":(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3-desktop mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-0-phone beregner__result-table__row__result-2"},null!=n?n:"-"))}},{key:"GetHeadlineRowView",value:function(e){return(0,o.default)("div",{class:"mdc-layout-grid__inner beregner__result-table__row--headline"},(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone"},(0,o.default)("h3",{class:"beregner__result-table__heading mdc-typography--title-xs"},e)))}},{key:"GetValues",value:function(n,i){var a=this,r={};return Object.keys(c).forEach(function(e){switch(a.GetState(e)){case d.Success:var t;null==n?r[e]=i(n):null==(t=a.GetResult(e).KeyIndicators[n])?r[e]=null:(t=i(t),r[e]=t);break;case d.Error:case d.Loading:case d.Initial:default:r[e]=""}}),r}},{key:"GetExtendedRowView",value:function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:function(e){return e},a=4<arguments.length&&void 0!==arguments[4]&&arguments[4],r=this.GetValues(e,i),o=!1;if(null!=t&&Object.keys(r).forEach(function(e){null!=r[e]&&(o=!0)}),o)return this.GetRowView(t,n,r,a)}},{key:"ToggleShowMore",value:function(){this._showMore=!this._showMore}},{key:"GetTable",value:function(e,t){function n(e){return a._formatters.Euros(e)}function i(e){return a._formatters.Percentage(e,2)}var a=this,r=this._labels;this._results,this._states;return(0,o.default)("div",{class:"beregner__result-table mdc-layout-grid mdc-layout-grid--no-spacing mdc-layout-grid--no-side-spacing"},this.GetHeadlineRowView(r.ResultTableHeadlinePaymentsLabel),this.GetExtendedRowView("PaymentGrossMonthly",r.ResultTablePaymentGrossMonthlyLabel,r.ResultTablePaymentGrossMonthlyTooltip,n),this._showMore?this.GetExtendedRowView("DebtReductionMonthly",r.ResultTableDebtReductionMonthlyLabel,r.ResultTableDebtReductionMonthlyTooltip,n):"",(0,o.default)("span",{style:"display:none"}),t&&this._showMore?this.GetExtendedRowView("PaymentGrossAfterInterestOnlyFirstMonth",r.ResultTablePaymentGrossAfterInterestOnlyMonthlyLabel,r.ResultTablePaymentGrossAfterInterestOnlyMonthlyTooltip,n):"",(0,o.default)("span",{style:"display:none"}),t&&this._showMore?this.GetExtendedRowView("PaymentNetAfterInterestOnlyFirstMonth",r.ResultTablePaymentNetAfterInterestOnlyFirstMonthLabel,r.ResultTablePaymentNetAfterInterestOnlyFirstMonthTooltip,n):"",(0,o.default)("div",{class:"mdc-layout-grid__inner beregner__result-table__row"},(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone"},(0,o.default)("a",{class:this._showMore?"beregner__result-table__toggler"
1:"beregner__result-table__toggler beregner__result-table__toggler--more",href:"javascript:void(0);",onclick:function(e){a.ToggleShowMore()}},this._showMore?r.ResultTableButtonShowLess:r.ResultTableButtonShowMore))),this.GetHeadlineRowView(r.ResultTableHeadlineLoanDetailsLabel),this.GetExtendedRowView("LoanAmount",r.ResultTableLoanAmountLabel,r.ResultTableLoanAmountTooltip,n),this.GetExtendedRowView("BondPriceAdjustedAmount",r.ResultBondPriceAdjustedAmountLabel,r.ResultBondPriceAdjustedAmountTooltip,n),this.GetExtendedRowView("TenureLengthYears",r.ResultTableTenureLengthYearsLabel,r.ResultTableTenureLengthYearsTooltip,function(e){return a._formatters.Years(e)}),this.GetExtendedRowView("TenureLengthTerms",r.ResultTableTenureLengthTermsLabel,r.ResultTableTenureLengthTermsTooltip),this.GetExtendedRowView("BondPrice",r.ResultTableBondPriceLabel,r.ResultTableBondPriceTooltip),this.GetExtendedRowView(null,r.ResultTableLoanTypeLabel,r.ResultTableLoanTypeTooltip,function(e){return r.ResultTableLoanTypeValue}),this.GetExtendedRowView("InnerInterestGross",r.ResultTableInnerInterestGrossLabel,r.ResultTableInnerInterestGrossTooltip,i),e==s.Country.Spain?this.GetExtendedRowView("YearOneToThreeSpanishCommisionRate","Bidragssats første 3 år",r.ResultTableYearlyCommisionRateTooltip,i):"",this.GetExtendedRowView("YearlyCommisionRate",r.ResultTableYearlyCommisionRateLabel,r.ResultTableYearlyCommisionRateTooltip,i),e==s.Country.Spain?this.GetExtendedRowView("SpannishEffectiveInterestGross",r.ResultTableSpannishEffectiveInterestGrossLabel,r.ResultTableSpannishEffectiveInterestGrossTooltip,i):"",e==s.Country.France?this.GetExtendedRowView("FrenchEffectiveInterestGross",r.ResultTableFrenchEffectiveInterestGrossLabel,r.ResultTableFrenchEffectiveInterestGrossTooltip,i):"",e==s.Country.Spain?this.GetExtendedRowView("DanishEffectiveInterestGross",r.ResultTableDanishEffectiveInterestGrossLabel,r.ResultTableDanishEffectiveInterestGrossTooltip,i):"",this.GetExtendedRowView("TotalInterestAndComissionSum",r.ResultTableTotalInterestAndComissionSumLabel,r.ResultTableTotalInterestAndComissionSumTooltip,n),this.GetExtendedRowView("TotalLoanSum",r.ResultTableTotalLoanSumLabel,r.ResultTableTotalLoanSumTooltip,n),this.GetExtendedRowView(null,r.ResultTableRateAdjustmentLabel,r.ResultTableRateAdjustmentTooltip,function(e){return r.ResultTableRateAdjustmentValue}),this.GetHeadlineRowView(r.ResultTableHeadlineCostLabel),this.GetExtendedRowView("EndFee",r.ResultTableEndFeeLabel,r.ResultTableEndFeeTooltip,n),this.GetExtendedRowView("Brokerage",r.ResultTableBrokerageLabel,r.ResultTableBrokerageTooltip,n),this.GetExtendedRowView("BondReductionOnPayout",r.ResultTableBondReductionOnPayoutLabel,r.ResultTableBondReductionOnPayoutTooltip,n),this.GetExtendedRowView(null,r.ResultTableHeadlineCostOutsideNykredit,null,function(e){return""},!0),this.GetExtendedRowView("NotaryAndRegistraion",r.ResultTableNotaryAndRegistraionLabel,r.ResultTableNotaryAndRegistraionTooltip,n),this.GetExtendedRowView("Assessor",r.ResultTableAssessorLabel,r.ResultTableAssessorTooltip,n),this.GetExtendedRowView("Lawyer",r.ResultTableLawyerLabel,r.ResultTableLawyerTooltip,n),this.GetExtendedRowView("TotalLoanFeesSum",r.ResultTableTotalLoanFeesSumLabel,r.ResultTableTotalLoanFeesSumTooltip,n,!0))}}]),f);function f(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=this,a=f;if(!(i instanceof a))throw new TypeError("Cannot call a class as a function");this._labels=null,this._results={},this._formatters=null,this._showMore=!1,this._hideRightCol=!1,this._states={},this._stateMachine=Object.freeze({Initial:{Calculate:d.Loading},Loading:{CalculationSuccess:d.Success,Error:d.Error},Error:{Calculate:d.Loading},Success:{Calculate:d.Loading}}),this._labels=e,this._formatters=new r.default(this._labels),this._hideRightCol=n,Array.from(Object.keys(c)).forEach(function(e){t._states[e]=d.Initial})}n.LoanAbroadResultTable=i,n.ResultState=d,n.ResultAction=e,n.ResultColumn=c},{"../NykreditTooltip":144,"./LoanAbroadEnums":196,"./LoanAbroadNumberFormatterService":197,mithril:410}],197:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var r=e("../util/numberFormat");i(o,[{key:"DanishNumber",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return e=(e=Number(e)).toLocaleString("da-DK",{minimumFractionDigits:t,maximumFractionDigits:t})}},{key:"Euros",value:function(e){var t=this._labels.UnitEuro;return(0,r.applyThousandSeperator)(this.DanishNumber(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:0))+" "+t}},{key:"Years",value:function(e){return(e=Number(e))+" "+(1==e?this._labels.UnitYear:this._labels.UnitYears)}},{key:"Percentage",value:function(e){return this.DanishNumber(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:0)+" %"}}]);e=o;function o(e){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this._labels=null,this._labels=e}n.default=e},{"../util/numberFormat":210}],196:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=Object.freeze({LoanOnEquity:"LoanOnEquity",LoanOnNewHouse:"LoanOnNewHouse"}),a=Object.freeze({France:"France",Spain:"Spain"}),r=Object.freeze({BoligBank360:"BoligBank360",BoligBank365:"BoligBank365",PrivateBanking:"PrivateBanking",PrivateBankingElite:"PrivateBankingElite",BoligBank:"BoligBank",IkkeKunde:"IkkeKunde"}),o=Object.freeze({France:[10,20,25],FranceMax:25,Spain:[10,20,30],SpainMax:30}),s=Object.freeze({Andalusien:"Andalusien",Valencia:"Valencia",Murcia:"Murcia",Catalonien:"Catalonien",Mallorca:"Mallorca"}),l=Object.freeze({Yes:"Yes",No:"No"});n.ScenarioType=i,n.Country=a,n.InterestOnlyPeriod=l,n.CustomerOffer=r,n.SpanishRegions=s,n.CountryYearOptions=o},{}],194:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(e){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.url=e}i(o,[{key:"GetResultPromise",value:function(e){return r.default.request({method:"GET",url:this.url,data:e})}}]),n.default=o},{mithril:410}],208:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=e("mithril"),o=(r=r)&&r.__esModule?r:{default:r},s=e("../../mdc-mithril-init");e("../util/numberFormat");function l(){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function")}i(l,[{key:"oninit",value:function(t){this.header=t.attrs.header,this.min=null!=t.attrs.min?t.attrs.min:0,this.max=null!=t.attrs.max?t.attrs.max:100,this.maxLength=null!=t.attrs.maxLength?t.attrs.maxLength:3,this.unit=t.attrs.unit,this.setValue=function(e){return t.attrs.setValue(e)},this.getValue=function(){return t.attrs.getValue()}}},{key:"linkToValue",value:function(e){var t=this,n=e.dom.mdcComponent;n.listen("MDCSlider:input",function(){t.setValue(Math.round(n.value)),o.default.redraw()})}},{key:"updater",value:function(e){var t,e=e.dom.mdcComponent;null!=e&&(t=this.getValue(),e.foundation_.setValue(t))}},{key:"view",value:function(e){var t=this;return(0,o.default)("div",{class:"mdc-layout-grid mdc-layout-grid--no-spacing mdc-layout-grid--no-side-spacing"},(0,o.default)("div",{class:"mdc-layout-grid__inner"},(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3-phone mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-10-desktop"},(0,o.default)("div",{class:"mdc-typography--body beregner__slider-header"},this.header),(0,o.default)("div",{class:"mdc-slider beregner__slider-slider",oncreate:function(e){(0,s.createMdcSlider)(e),t.linkToValue(e)},onremove:s.removeMdc,onupdate:function(e){return t.updater(e)},tabindex:"0",role:"slider","aria-valuemin":this.min,"aria-valuemax":this.max,step:"1","aria-label":"Select Value"},(0,o.default)("div",{class:"mdc-slider__track-container"},(0,o.default)("div",{class:"mdc-slider__track"})),(0,o.default)("div",{class:"mdc-slider__thumb-container"},(0,o.default)("svg",{class:"mdc-slider__thumb",width:"21",height:"21"},(0,o.default)("circle",{cx:"10.5",cy:"10.5",r:"7.875"})),(0,o.default)("div",{class:"mdc-slider__focus-ring"})))),(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-1-phone mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-2-desktop"},(0,o.default)("div",{class:"beregner__slider-value"},(0,o.default)("input",{class:"mdc-text-field__input beregner__slider-value-input",type:"tel",value:this.getValue(),oninput:o.default.withAttr("value",function(e){t.setValue(e)}),maxlength:this.maxLength}),null!=this.unit?(0,o.default)("span",{class:"beregner__slider-value-unit"},this.unit):""))))}}]),n.default=l},{"../../mdc-mithril-init":255,"../util/numberFormat":210,mithril:410}],153:[function(e,t,n){"use strict";
1var e=e("./EnergyCalculator"),i=(e=e)&&e.__esModule?e:{default:e};Array.from(document.querySelectorAll("energy-calculator")).forEach(function(e){return new i.default(e)})},{"./EnergyCalculator":152}],152:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.default=function e(t){o(this,e),r.default.mount(t,{view:function(){return(0,r.default)(s,JSON.parse(t.getAttribute("attrs")))}})},i(l,[{key:"oninit",value:function(e){e.attrs}},{key:"view",value:function(e){e=e.attrs;return(0,r.default)("div",null,(0,r.default)("h1",null,e.InputSection.CalculatorHeadline),(0,r.default)("h2",null,e.InputSection.CalculatorSubheader),(0,r.default)("h3",null,e.InputSection.InputFieldHeadline),e.InputSection.InputAddressFieldLabel," ",e.InputSection.InputAddressFieldPlaceholder)}}]);var s=l;function l(){o(this,l)}},{mithril:410}],210:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.applyThousandSeperator=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:".";return e=(e=""!=(e=(e=e.toString()).replace(/[^0-9]/g,""))?Number(e).toString():e).replace(/\B(?=(\d{3})+(?!\d))/g,t)},n.removeNonDigitChars=function(e){return e=e.replace(/[^0-9]/g,""),e=Number(e)},n.percentage=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2;return e=(e=Number(e)).toLocaleString("da-DK",{minimumFractionDigits:t,maximumFractionDigits:t}),e+="%"},n.danishCurrency=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return e=(e=Number(e)).toLocaleString("da-DK",{style:"currency",currency:"DKK",minimumFractionDigits:t,maximumFractionDigits:t})},n.danishValue=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2;return e=(e=Number(e)).toLocaleString("da-DK",{minimumFractionDigits:t,maximumFractionDigits:t})},n.percentageDecimal=function(e,t){return-1===(e=(e=e.replace(/[.]/g,",")).replace(/[^0-9,]/g,"")).indexOf(",")&&(e=(e=1<e.length&&"0"==e.charAt(0)&&","!=e.charAt(1)?e.substring(1):e).substring(0,3),e=100<Number(e)?100:e),e}},{}],142:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function")}i(o,[{key:"view",value:function(e){e=e.attrs.v;return(0,r.default)("div",{class:"beregner-icon beregner-icon--large beregner-icon--layers"},(0,r.default)("div",{class:"beregner-icon__svg-wrapper",style:"height:100%"},(0,r.default)("svg",{id:"beregnerhus",viewBox:"0 0 164 156",width:"160px",height:"160px"},(0,r.default)("g",{fill:"none",stroke:e.color1,"fill-rule":"evenodd"},(0,r.default)("g",{"stroke-width":"4"},(0,r.default)("path",{d:"M23.146 55.532V152h43.17v-40.157H98.69V152h43.164V55.532"}),(0,r.default)("path",{"stroke-linecap":"square",d:"M66.226 60.308h33.506v28.654H66.226z"}),(0,r.default)("path",{"stroke-linecap":"square",d:"M161 70.814L82.5 3 4 70.814"})),(0,r.default)("path",{"stroke-width":"4",d:"M23.146 55.548v96.497h43.17v-40.17H98.69v40.17h43.164V55.548"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M66.226 60.325h33.506v28.662H66.226v-8.181z"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M161 70.834L82.5 3 4 70.834"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M66.226 60.325V82m-43.08-27v27"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M66.226 112.583v39.505m32.548-39.505v39.505"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M141.854 55v27M99.732 60.325V82M66.226 60.325h33.506"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M66.226 88.987h33.506m-33.506 22.93h32.548"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"2",d:"M24.104 152.045h42.122m32.548 0h42.122"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M161 70.834L82.5 3M4 70.834L82.5 3"})))),(0,r.default)("div",{class:"beregner-icon__svg-wrapper",style:"height: "+e.percentage+"%"},(0,r.default)("svg",{id:"beregnerhus",viewBox:"0 0 164 156",width:"160px",height:"160px"},(0,r.default)("g",{fill:"none",stroke:e.color2,"fill-rule":"evenodd"},(0,r.default)("g",{"stroke-width":"4"},(0,r.default)("path",{d:"M23.146 55.532V152h43.17v-40.157H98.69V152h43.164V55.532"}),(0,r.default)("path",{"stroke-linecap":"square",d:"M66.226 60.308h33.506v28.654H66.226z"}),(0,r.default)("path",{"stroke-linecap":"square",d:"M161 70.814L82.5 3 4 70.814"})),(0,r.default)("path",{"stroke-width":"4",d:"M23.146 55.548v96.497h43.17v-40.17H98.69v40.17h43.164V55.548"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M66.226 60.325h33.506v28.662H66.226v-8.181z"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M161 70.834L82.5 3 4 70.834"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M66.226 60.325V82m-43.08-27v27"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M66.226 112.583v39.505m32.548-39.505v39.505"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M141.854 55v27M99.732 60.325V82M66.226 60.325h33.506"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M66.226 88.987h33.506m-33.506 22.93h32.548"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"2",d:"M24.104 152.045h42.122m32.548 0h42.122"}),(0,r.default)("path",{"stroke-linecap":"square","stroke-width":"4",d:"M161 70.834L82.5 3M4 70.834L82.5 3"})))))}}]),n.default=o},{mithril:410}],112:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};i(s,[{key:"oninit",value:function(e){e=e.attrs;this.model={theme:e.theme,hoverEnterBankBranchFunc:e.hoverEnterBankBranchFunc,hoverLeaveBankBranchFunc:e.hoverLeaveBankBranchFunc,clickBankBranchFunc:e.clickBankBranchFunc,bankBranches:e.bankBranches,focusToggle:!1,focusPoints:[],highlightBankBranch:null,mapContainer:null,map:null,pins:[],maxZoom:15,defaultCenter:new google.maps.LatLng(56.27206,10.3),defaultZoom:7}}},{key:"oncreate",value:function(e){e=e.attrs;this.model.mapContainer=document.getElementById("mapcontainer"),null!=this.model&&this.initMap(),this.model.bankBranches=null==e.bankBranches?[]:e.bankBranches,this.updateMarkers()}},{key:"onupdate",value:function(e){e=e.attrs;null!=this.model&&(this.model.map||this.initMap(),this.updateModel(e))}},{key:"updateModel",value:function(e){null!=e.bankBranches&&null!=this.model.bankBranches&&this.model.bankBranches==e.bankBranches||(this.model.bankBranches=null==e.bankBranches?[]:e.bankBranches,this.updateMarkers()),this.model.focusToggle!=e.focusToggle&&(this.model.focusPoints=e.focusPoints,this.model.focusToggle=e.focusToggle,this.updateBounds()),null!=this.model.pins&&(this.model.highlightBankBranch=e.highlightBankBranch,this.updateMarkerHighlight())}},{key:"initMap",value:function(){this.model.map=new google.maps.Map(this.model.mapContainer,this.initialMapOptions())}},{key:"updateMarkers",value:function(){for(var n=[],e=0;e<this.model.pins.length;e++)n.push(!1);for(e=0;e<this.model.bankBranches.length;e++){var t=this.model.bankBranches[e],i=this.model.pins.findIndex(function(e){return t==e.bankBranch});-1!=i?n[i]=!0:(this.model.pins.push({marker:this.createMarker(t),bankBranch:t}),n.push(!0))}for(var a=this.model.pins.filter(function(e,t){return!n[t]}),e=0;e<a.length;e++)a[e].marker.setMap(null);this.model.pins=this.model.pins.filter(function(e,t){return n[t]})}},{key:"markerThemeExtractor",value:function(e,t,n){return n?e?this.model.theme.markerBigHighlight:this.model.theme.markerBig:t?e?this.model.theme.markerMediumHighlight:this.model.theme.markerMedium:e?this.model.theme.markerHighlight:this.model.theme.markerDefault}},{key:"updateMarkerHighlight",value:function(){for(var e,t,n,i=0;i<this.model.pins.length;i++)this.model.pins[i].marker&&this.model.pins[i].bankBranch&&(e=this.model.highlightBankBranch==this.model.pins[i].bankBranch,t=this.model.pins[i].bankBranch.UseMediumIcon,n=this.model.pins[i].bankBranch.UseBigIcon,this.model.pins[i].marker.setIcon(this.markerThemeExtractor(e,t,n)))}},{key:"createMarker",value:function(e){var t={lat:e.Latitude,lng:e.Longitude},n=this.model.highlightBankBranch==e,i=e.UseMediumIcon,a=e.UseBigIcon,t=new google.maps.Marker(o({position:t,map:this.model.map,title:e.Name,icon:this.markerThemeExtractor(n,i,a)},this.model.theme.markerOptions)),r=this;return r.model.hoverEnterBankBranchFunc&&t.addListener("mouseover",function(){r.model.hoverEnterBankBranchFunc(e)}),r.model.hoverLeaveBankBranchFunc&&t.addListener("mouseout",function(){r.model.hoverLeaveBankBranchFunc()}),r.model.clickBankBranchFunc&&t.addListener("click",function(){r.model.clickBankBranchFunc(e)}),t}},{key:"updateBounds",value:function(){var t;null!=this.model.bankBranches&&(t=new google.maps.LatLngBounds,0<this.model.focusPoints.length?(this.model.focusPoints.forEach(function(e){e=new google.maps.LatLng(e.Latitude,e.Longitude);t.extend(e)}),this.model.map.fitBounds(t),this.model.map.setZoom(Math.min(this.model.map.getZoom(),this.model.maxZoom))):(t.extend(this.model.defaultCenter),this.model.map.fitBounds(t),this.model.map.setZoom(this.model.defaultZoom)))}},{key:"initialMapOptions",value:function(){return o({zoom:this.model.defaultZoom,center:{lat:this.model.defaultCenter.lat(),lng:this.model.defaultCenter.lng()},scrollwheel:!1,fullscreenControl:!1,streetViewControl:!1,mapTypeId:"roadmap",mapTypeControlOptions:{mapTypeIds:["roadmap","satellite"],position:google.maps.ControlPosition.TOP_RIGHT},zoomControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT},clickableIcons:!1,gestureHandling:"greedy"},this.model.theme.mapOptions)}},{key:"view",value:function(){return(0,r.default)("div",{class:"find-map-and-list-map"},(0,r.default)("div",{style:"width:100%; height:100%",id:"mapcontainer"}))}}]);e=s;function s(){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function")}n.default=e},{mithril:410}],87:[function(e,$,H){"use strict";var t=L(e("./components/SiPrices/SiPrices")),n=e("@material/ripple/dist/mdc.ripple"),i=e("@material/radio/dist/mdc.radio"),a=e("@material/checkbox/dist/mdc.checkbox"),r=e("@material/textfield/dist/mdc.textfield"),o=e("@material/select/dist/mdc.select"),s=L(e("svg4everybody"));e("./vendors/ie-from-polyfill"),e("./vendors/nodelist-foreach-polyfill"),e("./polyfills/string-includes-polyfill"),e("./polyfills/string-startsWith-polyfill"),e("./polyfills/urlSearchParams"),e("./polyfills/array-findIndex-polyfil"),e("./polyfills/array-flatmap-polyfill"),e("./polyfills/object-entries-polyfill"),e("./polyfills/object-values-polyfill");
1var l=L(e("./components/accordion")),u=(L(e("./components/anchorScroll")),L(e("./components/backgroundImage"))),c=L(e("./components/contentSlideIn")),d=L(e("./components/financialCalendar")),f=(L(e("./components/popup-rating")),L(e("./components/share"))),h=L(e("./components/stickeyTableHeader")),p=(L(e("./components/tables/table")),L(e("./components/toolbar"))),m=(L(e("./components/fixedAfterScrollBy")),e("./components/tabs/tabs")),g=L(e("./components/video")),v=L(e("./components/rich-text-expansion")),_=(L(e("./components/rich-text-expansion-excerpt")),L(e("./components/BondDataBlock"))),y=L(e("./components/fundDisclaimerModal")),b=(L(e("./components/ColorScale")),L(e("./components/epiFormContactModal"))),k=L(e("./components/progressBar")),w=L(e("./components/morningstar/m-CircleChart")),S=L(e("./components/calculators/HeatingSystemLoanCalculator/HeatingSystemLoanCalculator")),x=L(e("./components/npa/association-overview/association-overview-app.mithril")),C=L(e("./components/dropdown/dropdown-with-text.mithril")),T=L(e("./components/tabs/nestable-tabs.mithril")),E=L(e("./components/dropdown/dropdown-as-sub-nav.mithril")),A=L(e("./components/npa/price-list/price-list-app.mithril")),O=L(e("./components/tables/generic-table-wrapper/generic-table-wrapper-app.mithril")),M=(L(e("./components/tables/investment-fund-list-tables/investment-fund-list-document-table-wrapper-app.mithril.js")),L(e("./components/tables/investment-fund-list-tables/investment-fund-list-table-wrapper-app.mithril.js"))),F=L(e("./components/dropdown/dropdown-download-button-app.mithril")),N=(L(e("./components/calculators/car-loan-calculator/CarLoanCalculatorApp")),L(e("./components/return-report/ReturnReport")));function L(e){return e&&e.__esModule?e:{default:e}}(0,s.default)(),window.nykredit={FinancialCalendar:d.default,Share:f.default},Array.from(document.querySelectorAll(".js-accordion")).forEach(function(e){return new l.default(e)}),document.querySelectorAll("[background-image]").forEach(function(e){return new u.default(e)}),Array.from(document.querySelectorAll(".js-content-slide-in")).forEach(function(e){return new c.default(e)}),Array.from(document.querySelectorAll(".js-financial-calendar")).forEach(function(e){return new d.default(e)}),Array.from(document.querySelectorAll(".file-upload")),Array.from(document.querySelectorAll("si-prices")).forEach(function(e){return new t.default(e)});e=document.querySelectorAll(".js-mdc-toolbar"),e.length&&new p.default(e),Array.from(document.querySelectorAll("fond-disclaimer-modal")).forEach(function(e){return new y.default(e)}),Array.from(document.querySelectorAll(".js-stickey-table-header")).forEach(function(e){return new h.default(e)}),Array.from(document.querySelectorAll(".js-mdc-tab-bar")).forEac
1h(function(e){return new m.TabBar(e)}),Array.from(document.querySelectorAll(".js-mdc-tab-bar-scroller")).forEach(function(e){return new m.TabBarScroller(e)}),Array.from(document.querySelectorAll(".js-video")).forEach(function(e){return new g.default(e)}),window.addEventListener("CookieInformationConsentGiven",function(e){CookieInformation.getConsentGivenFor("cookie_cat_functional")&&Array.from(document.querySelectorAll(".js-video")).forEach(function(e){e.style.display="block",new g.default(e)})},!1),Array.from(document.querySelectorAll(".richtext-container")).forEach(function(e){return new v.default(e)}),Array.from(document.querySelectorAll("bond-data-block")).forEach(function(e){return new _.default(e)}),Array.from(document.querySelectorAll("return-report")).forEach(function(e){return new N.default(e)}),s=document.querySelector(".js-epi-form-mithril-init");function I(e,t){Array.from(document.querySelectorAll(e)).forEach(function(e){return new t(e)})}function D(t){t.querySelectorAll("table").forEach(function(e){t.clientWidth<e.clientWidth&&835<document.body.clientWidth?e.setAttribute("style","transform: scale("+t.clientWidth/e.clientWidth+"); transform-origin: left;"):e.setAttribute("style","")})}s&&new b.default(s),I(".js-progress",k.default),I(".npa-association-overview",x.default),I(".js-dropdown-with-text",C.default),I(".js-nestable-tabs",T.default),I(".js-dropdown-as-sub-nav",E.default),I(".npa-price-list",A.default),I(".generic-table-wrapper",O.default),I(".js-dropdown-download-button",F.default),Array.from(document.querySelectorAll(".npa-price-list")),Array.from(document.querySelectorAll(".generic-table-wrapper")).forEach(function(e){return new O.default(e)}),Array.from(document.querySelectorAll("investment-fund-list-table-wrapper")).forEach(function(e){return new M.default(e)});var P=document.querySelectorAll(".accordion__item-content .richtext .table");function R(n,e){try{document.querySelectorAll(n).forEach(function(t){try{e(t)}catch(e){console.error("Failed to initialize component for element",n,t,e)}})}catch(e){console.error("Failed to initialize component",n,e)}}window.addEventListener("resize",function(){return P.forEach(D)}),P.forEach(D),Array.from(document.querySelectorAll(".js-forms-mdc-text-field")).forEach(function(e){return e.querySelector("input,textarea").mdcTextFieldComponent=new r.MDCTextField(e)}),R("heating-system-loan-calculator",function(e){new S.default(e)}),R(".js-mdc-checkbox",function(e){new a.MDCCheckbox(e)}),R(".js-mdc-text-field",function(e){new r.MDCTextField(e)}),R(".js-mdc-select",function(e){new o.MDCSelect(e)}),R(".js-mdc-radio",function(e){new i.MDCRadio(e)}),R(".js-mdc-ripple",function(e){new n.MDCRipple(e)}),Array.from(document.querySelectorAll("m-circle-chart")).forEach(function(e){return new w.default(e)}),Array.from(document.getElementsByClassName("hero-tkpage__title")).forEach(function(e){var t=e.parentElement.getBoundingClientRect(),n=t.x,t=t.width;e.getBoundingClientRect().x+e.scrollWidth>n+t&&(e.style.fontSize="36px")})},{"./components/BondDataBlock":90,"./components/ColorScale":93,"./components/SiPrices/SiPrices":105,"./components/accordion":108,"./components/anchorScroll":109,"./components/backgroundImage":111,"./components/calculators/HeatingSystemLoanCalculator/HeatingSystemLoanCalculator":134,"./components/calculators/car-loan-calculator/CarLoanCalculatorApp":146,"./components/contentSlideIn":221,"./components/dropdown/dropdown-as-sub-nav.mithril":224,"./components/dropdown/dropdown-download-button-app.mithril":225,"./components/dropdown/dropdown-with-text.mithril":230,"./components/epiFormContactModal":231,"./components/financialCalendar":236,"./components/fixedAfterScrollBy":242,"./components/fundDisclaimerModal":243,"./components/morningstar/m-CircleChart":269,"./components/npa/association-overview/association-overview-app.mithril":274,"./components/npa/price-list/price-list-app.mithril":285,"./components/popup-rating":292,"./components/progressBar":295,"./components/return-report/ReturnReport":299,"./components/rich-text-expansion":307,"./components/rich-text-expansion-excerpt":306,"./components/share":313,"./components/stickeyTableHeader":317,"./components/tables/generic-table-wrapper/generic-table-wrapper-app.mithril":328,"./components/tables/investment-fund-list-tables/investment-fund-list-document-table-wrapper-app.mithril.js":342,"./components/tables/investment-fund-list-tables/investment-fund-list-table-wrapper-app.mithril.js":345,"./components/tables/table":350,"./components/tabs/nestable-tabs.mithril":351,"./components/tabs/tabs":352,"./components/toolbar":353,"./components/video":365,"./polyfills/array-findIndex-polyfil":371,"./polyfills/array-flatmap-polyfill":372,"./polyfills/object-entries-polyfill":373,"./polyfills/object-values-polyfill":374,"./polyfills/string-includes-polyfill":375,"./polyfills/string-startsWith-polyfill":376,"./polyfills/urlSearchParams":377,"./vendors/ie-from-polyfill":380,"./vendors/nodelist-foreach-polyfill":382,"@material/checkbox/dist/mdc.checkbox":383,"@material/radio/dist/mdc.radio":386,"@material/ripple/dist/mdc.ripple":387,"@material/select/dist/mdc.select":388,"@material/textfield/dist/mdc.textfield":392,svg4everybody:430}],430:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(){function h(e,t,n){if(n){var i=document.createDocumentFragment(),a=!t.hasAttribute("viewBox")&&n.getAttribute("viewBox");a&&t.setAttribute("viewBox",a);for(var r=n.cloneNode(!0);r.childNodes.length;)i.appendChild(r.firstChild);e.appendChild(i)}}return function(e){var s=Object(e),e=window.top!==window.self,l="polyfill"in s?s.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537||/\bEdge\/.(\d+)\b/.test(navigator.userAgent)&&e,u={},c=window.requestAnimationFrame||setTimeout,d=document.getElementsByTagName("use"),f=0;l&&function e(){for(var t=0;t<d.length;){var n,i=d[t],a=i.parentNode,r=function(e){for(var t=e;"svg"!==t.nodeName.toLowerCase()&&(t=t.parentNode););return t}(a),o=i.getAttribute("xlink:href")||i.getAttribute("href");!o&&s.attributeName&&(o=i.getAttribute(s.attributeName)),r&&o?l&&(!s.validate||s.val
1idate(o,r,i)?(a.removeChild(i),o=(i=o.split("#")).shift(),i=i.join("#"),o.length?((n=u[o])||((n=u[o]=new XMLHttpRequest).open("GET",o),n.send(),n._embeds=[]),n._embeds.push({parent:a,svg:r,id:i}),function(i){i.onreadystatechange=function(){var n;4===i.readyState&&((n=i._cachedDocument)||((n=i._cachedDocument=document.implementation.createHTMLDocument("")).body.innerHTML=i.responseText,i._cachedTarget={}),i._embeds.splice(0).map(function(e){var t=(t=i._cachedTarget[e.id])||(i._cachedTarget[e.id]=n.getElementById(e.id));h(e.parent,e.svg,t)}))},i.onreadystatechange()}(n)):h(a,r,document.getElementById(i))):(++t,++f)):++t}(!d.length||0<d.length-f)&&c(e,67)}()}},"function"==typeof define&&define.amd?define([],function(){return i.svg4everybody=a()}):"object"==typeof t&&t.exports?t.exports=a():i.svg4everybody=a()},{}],382:[function(e,t,n){"use strict";window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)})},{}],380:[function(e,t,n){"use strict";function l(e){return"function"==typeof e||"[object Function]"===i.call(e)}function u(e){return e=function(e){e=Number(e);return isNaN(e)?0:0!==e&&isFinite(e)?(0<e?1:-1)*Math.floor(Math.abs(e)):e}(e),Math.min(Math.max(e,0),a)}var i,a;Array.from||(Array.from=(i=Object.prototype.toString,a=Math.pow(2,53)-1,function(e){var t=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,i=1<arguments.length?arguments[1]:void 0;if(void 0!==i){if(!l(i))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(n=arguments[2])}for(var a,r=u(t.length),o=l(this)?Object(new this(r)):new Array(r),s=0;s<r;)a=t[s],o[s]=i?void 0===n?i(a,s):i.call(n,a,s):a,s+=1;return o.length=r,o}))},{}],377:[function(e,t,n){"use strict";function i(e){((e=e||"")instanceof URLSearchParams||e instanceof i)&&(e=e.toString()),this[g]=s(e)}function o(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function u(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,function(e){return decodeURIComponent(e)})}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return y&&(e[l.Symbol.iterator]=function(){return e}),e}function s(e){var t={};if("object"==typeof e)if(d(e))for(var n=0;n<e.length;n++){var i=e[n];if(!d(i)||2!==i.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");c(t,i[0],i[1])}else for(var a in e)e.hasOwnProperty(a)&&c(t,a,e[a]);else for(var r=(e=0===e.indexOf("?")?e.slice(1):e).split("&"),o=0;o<r.length;o++){var s=r[o],l=s.indexOf("=");-1<l?c(t,u(s.slice(0,l)),u(s.slice(l+1))):s&&c(t,u(s),"")}return t}function c(e,t,n){n="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);r(e,t)?e[t].push(n):e[t]=[n]}function d(e){return e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var l,f,h,p,m,g,v,_,y;l="undefined"!=typeof global?global:"undefined"!=typeof window?window:void 0,h=function(){try{if(l.URLSearchParams&&"bar"===new l.URLSearchParams("foo=bar").get("foo"))return l.URLSearchParams}catch(e){}return null}(),p=h&&"a=1"===new h({a:1}).toString(),m=h&&"+"===new h("s=%2B").get("s"),g="__URLSearchParams__",v=!h||((v=new h).append("s"," &"),"s=+%26"===v.toString()),_=i.prototype,y=!(!l.Symbol||!l.Symbol.iterator),h&&p&&m&&v||(_.append=function(e,t){c(this[g],e,t)},_.delete=function(e){delete this[g][e]},_.get=function(e){var t=this[g];return this.has(e)?t[e][0]:null},_.getAll=function(e){var t=this[g];return this.has(e)?t[e].slice(0):[]},_.has=function(e){return r(this[g],e)},_.set=function(e,t){this[g][e]=[""+t]},_.toString=function(){var e,t,n,i,a=this[g],r=[];for(t in a)for(n=o(t),e=0,i=a[t];e<i.length;e++)r.push(n+"="+o(i[e]));return r.join("&")},!!m&&h&&!p&&l.Proxy?(f=new Proxy(h,{construct:function(e,t){return new e(new i(t[0]).toString())}})).toString=Function.prototype.toString.bind(i):f=i,Object.defineProperty(l,"URLSearchParams",{value:f}),(_=l.URLSearchParams.prototype).polyfill=!0,_.forEach=_.forEach||function(n,i){var e=s(this.toString());Object.getOwnPropertyNames(e).forEach(function(t){e[t].forEach(function(e){n.call(i,e,t,this)},this)},this)},_.sort=_.sort||function(){var e,t,n=s(this.toString()),i=[];for(e in n)i.push(e);for(i.sort(),t=0;t<i.length;t++)this.delete(i[t]);for(t=0;t<i.length;t++)for(var a=i[t],r=n[a],o=0;o<r.length;o++)this.append(a,r[o])},_.keys=_.keys||function(){var n=[];return this.forEach(function(e,t){n.push(t)}),a(n)},_.values=_.values||function(){var t=[];return this.forEach(function(e){t.push(e)}),a(t)},_.entries=_.entries||function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),a(n)},y&&(_[l.Symbol.iterator]=_[l.Symbol.iterator]||_.entries))},{}],376:[function(e,t,n){"use strict";
1String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(e,t){t=0<t?0|t:0;return this.substring(t,t+e.length)===e}})},{}],375:[function(e,t,n){"use strict";String.prototype.includes||(String.prototype.includes=function(e,t){if(e instanceof RegExp)throw TypeError("first argument must not be a RegExp");return-1!==this.indexOf(e,t=void 0===t?0:t)})},{}],374:[function(e,t,n){"use strict";Object.values||(Object.values=function(t){return Object.keys(t).map(function(e){return t[e]})})},{}],373:[function(e,t,n){"use strict";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,i=new Array(n);n--;)i[n]=[t[n],e[t[n]]];return i})},{}],372:[function(e,t,n){"use strict";function l(e){return"function"==typeof e||"[object Function]"===i.call(e)}function u(e){return e=function(e){e=Number(e);return isNaN(e)?0:0!==e&&isFinite(e)?(0<e?1:-1)*Math.floor(Math.abs(e)):e}(e),Math.min(Math.max(e,0),a)}var i,a;Array.prototype.findLastIndex||Object.defineProperty(Array.prototype,"findLastIndex",{value:function(e,t){for(var n=this.length-1;0<=n;){var i=this[n];if(e.call(t,i,n,this))return n;n--}return-1},writable:!0,enumerable:!1,configurable:!0}),Array.prototype.findLast||Object.defineProperty(Array.prototype,"findLast",{value:function(e,t){for(var n=this.length-1;0<=n;){var i=this[n];if(e.call(t,i,n,this))return i;n--}},writable:!0,enumerable:!1,configurable:!0}),Array.prototype.at||Object.defineProperty(Array.prototype,"at",{value:function(e){if((e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]},writable:!0,enumerable:!1,configurable:!0}),Array.from||(Array.from=(i=Object.prototype.toString,a=Math.pow(2,53)-1,function(e){var t=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,i=1<arguments.length?arguments[1]:void 0;if(void 0!==i){if(!l(i))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(n=arguments[2])}for(var a,r=u(t.length),o=l(this)?Object(new this(r)):new Array(r),s=0;s<r;)a=t[s],o[s]=i?void 0===n?i(a,s):i.call(n,a,s):a,s+=1;return o.length=r,o})),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Array.of||(Array.of=function(){return Array.prototype.slice.call(arguments)}),Array.prototype.copyWithin||Object.defineProperty(Array.prototype,"copyWithin",{configurable:!0,writable:!0,value:function(e,t){if(null==this)throw new TypeError("this is null or not defined");var n=Object(this),i=n.length>>>0,e=e>>0,a=e<0?Math.max(i+e,0):Math.min(e,i),e=t>>0,r=e<0?Math.max(i+e,0):Math.min(e,i),t=arguments[2],e=void 0===t?i:t>>0,t=e<0?Math.max(i+e,0):Math.min(e,i),o=Math.min(t-r,i-a),s=1;for(r<a&&a<r+o&&(s=-1,r+=o-1,a+=o-1);0<o;)r in n?n[a]=n[r]:delete n[a],r+=s,a+=s,o--;return n}}),Array.prototype.entries||(Array.prototype.entries=function(){function e(){}e.prototype.next=function(){return(t=i>n.length-1||t)?{value:void 0,done:!0}:{value:[i,n[i++]],done:!1}};var t,n=this,i=0;return new e}),Array.prototype.every||Object.defineProperty(Array.prototype,"every",{configurable:!0,writable:!0,value:function(e,t){var n,i;if(null==this)throw new TypeError("this is null or not defined");var a=Object(this),r=a.length>>>0;if("function"!=typeof e)throw new TypeError;for(1<arguments.length&&(n=t),i=0;i<r;){if(i in a){var o=a[i];if(!e.call(n,o,i,a))return!1}i++}return!0}}),Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{configurable:!0,writable:!0,value:function(e){if(null==this)throw new TypeError("this is null or not defined");for(var t=Object(this),n=t.length>>>0,i=arguments[1]>>0,a=i<0?Math.max(n+i,0):Math.min(i,n),i=arguments[2],i=void 0===i?n:i>>0,r=i<0?Math.max(n+i,0):Math.min(i,n);a<r;)t[a]=e,a++;return t}}),Array.prototype.filter||Object.defineProperty(Array.prototype,"filter",{configurable:!0,writable:!0,value:function(e){if(null==this)throw new TypeError;var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var i,a=[],r=2<=arguments.length?arguments[1]:void 0,o=0;o<n;o++)o in t&&(i=t[o],e.call(r,i,o,t))&&a.push(i);return a}}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var i=arguments[1],a=0;a<n;){var r=t[a];if(e.call(i,r,a,t))return r;a++}}}),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{configurable:!0,writable:!0,value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var i=arguments[1],a=0;a<n;){var r=t[a];if(e.call(i,r,a,t))return a;a++}return-1}}),Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,writable:!0,value:function(){var e=void 0===arguments[0]?1:Number(arguments[0])||0,i=[],a=i.forEach;return function t(e,n){a.call(e,function(e){0<n&&Array.isArray(e)?t(e,n-1):i.push(e)})}(this,e),i}}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,writable:!0,value:function(){return Array.prototype.map.apply(this,arguments).flat(1)}}),Array.prototype.forEach||Object.defineProperty(Array.prototype,"forEach",{configurable:!0,writable:!0,value:function(e){var t,n;if(null==this)throw new TypeError("this is null or not defined");var i,a=Object(this),r=a.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1<arguments.length&&(t=arguments[1]),n=0;n<r;)n in a&&(i=a[n],e.call(t,i,n,a)),n++}}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{configurable:!0,writable:!0,value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),i=n.length>>>0;if(0!=i)for(var a,r,t=0|t,o=Math.max(0<=t?t:i-Math.abs(t),0);o<i;){if((a=n[o])===(r=e)||"number"==typeof a&&"number"==typeof r&&isNaN(a)&&isNaN(r))return!0;o++}return!1}}),Array.prototype.indexOf||Object.defineProperty(Array.prototype,"indexOf",{configurable:!0,writable:!0,value:function(e,t){var n;if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),a=i.length>>>0;if(0!=a){t=0|t;if(!(a<=t))for(n=Math.max(0<=t?t:a-Math.abs(t),0);n<a;){if(n in i&&i[n]===e)return n;n++}}return-1}}),Array.prototype.keys||(Array.prototype.keys=function(){function e(){}e.prototype.next=function(){return(t=i>n.length-1||t)?{value:void 0,done:!0}:{value:i++,done:!1}};var t,n=this,i=0;return new e}),Array.prototype.lastIndexOf||Object.defineProperty(Array.prototype,"lastIndexOf",{configurable:!0,writable:!0,value:function(e){if(null==this)throw new TypeError;var t,n,i=Object(this),a=i.length>>>0;if(0!=a)for(t=a-1,1<arguments.length&&((t=Number(arguments[1]))!=t?t=0:0!=t&&t!=1/0&&t!=-1/0&&(t=(0<t||-1)*Math.floor(Math.abs(t)))),n=0<=t?Math.min(t,a-1):a-Math.abs(t);0<=n;n--)if(n in i&&i[n]===e)return n;return-1}}),Array.prototype.map||Object.defineProperty(Array.prototype,"map",{configurable:!0,writable:!0,value:function(e){var t,n,i;if(null==this)throw new TypeError("this is null or not defined");var a,r=Object(this),o=r.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1<arguments.length&&(t=arguments[1]),n=new Array(o),i=0;i<o;)i in r&&(a=r[i],a=e.call(t,a,i,r),n[i]=a),i++;return n}}
1),Array.prototype.reduce||Object.defineProperty(Array.prototype,"reduce",{configurable:!0,writable:!0,value:function(e){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var t,n=Object(this),i=n.length>>>0,a=0;if(2<=arguments.length)t=arguments[1];else{for(;a<i&&!(a in n);)a++;if(i<=a)throw new TypeError("Reduce of empty array with no initial value");t=n[a++]}for(;a<i;)a in n&&(t=e(t,n[a],a,n)),a++;return t}}),"function"!=typeof Array.prototype.reduceRight&&Object.defineProperty(Array.prototype,"reduceRight",{configurable:!0,writable:!0,value:function(e){if(null==this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var t,n=Object(this),i=(n.length>>>0)-1;if(2<=arguments.length)t=arguments[1];else{for(;0<=i&&!(i in n);)i--;if(i<0)throw new TypeError("Reduce of empty array with no initial value");t=n[i--]}for(;0<=i;i--)i in n&&(t=e(t,n[i],i,n));return t}}),Array.prototype.some||Object.defineProperty(Array.prototype,"some",{configurable:!0,writable:!0,value:function(e){if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof e)throw new TypeError;for(var t=Object(this),n=t.length>>>0,i=2<=arguments.length?arguments[1]:void 0,a=0;a<n;a++)if(a in t&&e.call(i,t[a],a,t))return!0;return!1}}),Array.prototype.toLocaleString||Object.defineProperty(Array.prototype,"toLocaleString",{configurable:!0,writable:!0,value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),i=n.length>>>0;if(0==i)return"";for(var a=n[0],r=null==a?"":a.toLocaleString(e,t),o=1;o<i;){var s=n[o];r=r+","+(r=null==s?"":s.toLocaleString(e,t)),o++}return r}}),Array.prototype.values||(Array.prototype.values=function(){function e(){}e.prototype.next=function(){return(t=i>n.length-1||t)?{value:void 0,done:!0}:{value:n[i++],done:!1}};var t,n=this,i=0;return new e})},{}],371:[function(e,t,n){"use strict";Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var i=arguments[1],a=0;a<n;){var r=t[a];if(e.call(i,r,a,t))return a;a++}return-1},configurable:!0,writable:!0})},{}],365:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("./GtmVideoService"),u=(e=e)&&e.__esModule?e:{default:e};i(r,[{key:"attachEventHandlerToBtn",value:function(n){var i=this;this.videoStartButton.addEventListener("click",function e(t){window.youTubeIframeAPIInserted||i.insertYoutubeApi(),t.currentTarget.removeEventListener(t.type,e),i.playOrQueue(n)})}},{key:"playOrQueue",value:function(e){var t=this;window.youTubeIframeAPIReady?this.initVideo(e):(window.youTubeCallbackQueue.push(e),window.onYouTubeIframeAPIReady=function(){return t.onYouTubeIframeAPIReady()})}},{key:"insertYoutubeApi",value:function(){var e=document.createElement("script"),t=(e.src="https://www.youtube.com/iframe_api",document.getElementsByTagName("script")[0]);t.parentNode.insertBefore(e,t),window.youTubeIframeAPIInserted=!0}},{key:"onYouTubeIframeAPIReady",value:function(){var t=this;window.youTubeIframeAPIReady=!0,window.youTubeCallbackQueue.forEach(function(e){return t.initVideo(e)})}},{key:"initVideo",value:function(t){var n=this.lazyLoad,i=t.querySelector(".js-video-player-handler"),a=t.querySelector(".js-video-placeholder"),r=t.querySelector(".js-video-element").getAttribute("id"),e=t.querySelector(".js-youtube-element").getAttribute("id"),o=void 0,s=new YT.Player(r,{height:"390",width:"640",host:"https://www.youtube-nocookie.com",videoId:e,playerVars:{showinfo:0,rel:0,hl:"da-dk"},events:{onReady:function(e){n&&l();i.addEventListener("click",function(){l()})},onStateChange:function(e){e.data==window.YT.PlayerState.PAUSED&&(o=setTimeout(function(){a.classList.remove("hide"),t.classList.contains("article-video")&&document.body.classList.remove("video-playing")},300)),e.data==window.YT.PlayerState.PLAYING&&(a.classList.add("hide"),t.classList.contains("article-video"))&&document.body.classList.add("video-playing"),e.data==window.YT.PlayerState.BUFFERING&&clearTimeout(o),e.data==window.YT.PlayerState.ENDED&&(setTimeout(function(){a.classList.remove("hide"),t.classList.contains("article-video")&&document.body.classList.remove("video-playing")},150),s.cueVideoById({videoId:r}))}}});function l(){s.playVideo(),a.classList.add("hide"),t.classList.contains("article-video")&&document.body.classList.add("video-playing")}new u.default(s,r)}}]);e=r;function r(e){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");e&&(-1!=navigator.userAgent.indexOf("NkApp")||CookieInformation.getConsentGivenFor("cookie_cat_functional"))&&(this.videoElement=e.querySelector(".js-video-element"),this.lazyLoad=!1,this.videoStartButton=e.querySelector(".js-video-player-handler"),this.videoElement&&(this.lazyLoad="true"===this.videoElement.dataset.lazyload),window.youTubeCallbackQueue=window.youTubeCallbackQueue||[],!this.lazyLoad||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream?(window.youTubeIframeAPIInserted||this.insertYoutubeApi(),this.playOrQueue(e)):this.attachEventHandlerToBtn(e))}n.default=e},{"./GtmVideoService":97}],97:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var r=e("./gtmDataLayerService");function o(e,t){var i=this;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.Player=null,this.interval=null,this.watched=null,this.videoId=null,this.trackPossibleEvents=function(){var t,e,n;"function"==typeof i.Player.getDuration&&"function"==typeof i.Player.getCurrentTime&&(n=i.Player.getDuration(),e=i.Player.getCurrentTime(),0!=n)&&(t=e/n,(e=0)<(n=Object.keys(i.registredPercentages).reverse().filter(function(e){if(e<=100*t)return e})).length&&(e=n[0]),i.registerVideo(e))},this.Player=e,this.registredPercentages={0:!1,25:!1,50:!1,75:!1,100:!1},this.videoId=t,this.Player.addEventListener("onStateChange",function(e){i.onVideoStateChanged(e)})}i(o,[{key:"onVideoStateChanged",value:function(e){e.data===YT.PlayerState.PLAYING?(clearInterval(this.interval),this.trackPossibleEvents(),this.interval=setInterval(this.trackPossibleEvents,1e3)):e.data===YT.PlayerState.ENDED?(clearInterval(this.interval),this.registerVideo(100)):e.data===YT.PlayerState.PAUSED&&clearInterval(this.interval)}},{key:"registerVideo",value:function(e){var t,n;this.registredPercentages[e]||(this.registredPercentages[e]=!0,e=0==e?"start":e+"%",t=this.videoId,n=this.Player.getVideoUrl(),e={eventCategory:"video",eventAction:e,eventLabel:n="function"==typeof this.Player.getVideoData?this.Player.getVideoData().title||n:n,eventValue:0,eventNoninteraction:!0,videoId:t,event:"track-event"},(0,r.registerGtmDataLayer)(e))}}]),n.default=o},{"./gtmDataLayerService":245}],353:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=e("@material/toolbar/dist/mdc.toolbar");function o(e){var n=this;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.lastPageOffset=0,this.ticking=!1,this.toolbarPrimaryHeight=64,this.toolbarSecondaryEl=null,this.cookieBannerHeight=0,this.onlyOnMobile=!1,this.changeCookieBannerHeight=function(){var e=document.getElementById("CybotCookiebotDialog");e&&(e.style&&e.style.display&&"none"==e.style.display?n.cookieBannerHeight=0:e.offsetHeight&&(n.cookieBannerHeight=e.offsetHeight))},this.changePrimHeight=function(e){e.classList.contains("nav-secondary--totalkredit")?n.setTotalkreditHeights():e.classList.contains("nav-secondary--nykredit")?n.toolbarPrimaryHeight=0:n.toolbarPrimaryHeight=64,n.lastPageOffset=0},this.checkScrollPos=function(e){var t=window.pageYOffset;t!==n.lastPageOffset&&(n.lastPageOffset=t,n.requestTick())},Array.from(e).forEach(function(t){new r.MDCToolbar(t).fixedAdjustElement=document.querySelector(".mdc-toolbar-fixed-adjust"),n.onlyOnMobile=t.classList.contains("mdc-toolbar--fixed--on-mobile"),n.changeCookieBannerHeight(),setInterval(function(){var e=n.cookieBannerHeight;n.changeCookieBannerHeight(),e!=n.cookieBannerHeight&&n.updatePos()},100),window.addEventListener("resize",function(e){n.changePrimHeight(t),(t.classList.contains("mdc-toolbar--fixed")||t.classList.contains("mdc-toolbar--fixed--on-mobile"))&&n.checkScrollPos()},!1),n.changePrimHeight(t),(t.classList.contains("mdc-toolbar--fixed")||t.classList.contains("mdc-toolbar--fixed--on-mobile"))&&(n.toolbarSecondaryEl=t,window.addEventListener("scroll",n.checkScrollPos,!1),n.checkScrollPos())})}i(o,[{key:"requestTick",value:function(){var t=this;this.ticking||(this.ticking=!0,window.requestAnimationFrame(function(){t.ticking=!1;var e=t.toolbarPrimaryHeight+t.cookieBannerHeight;t.lastPageOffset>e&&0===t.lastToolbarOffset&&t.lastToolbarOffset===e||t.updatePos()}))}},{key:"updatePos",value:function(){this.toolbarSecondaryEl&&this.toolbarSecondaryEl.classList.contains("nav-secondary--totalkredit")&&(0!=this.cookieBannerHeight?this.toolbarPrimaryHeight=0:this.setTotalkreditHeights());var e=this.toolbarPrimaryHeight+this.cookieBannerHeight;this.lastToolbarOffset=Math.round(e-this.lastPageOffset),this.lastToolbarOffset=Math.min(e,this.lastToolbarOffset),this.lastToolbarOffset=Math.max(0,this.lastToolbarOffset),this.lastToolbarOffset=this.onlyOnMobile&&1080<=window.innerWidth?0:this.lastToolbarOffset,this.toolbarSecondaryEl&&(this.toolbarSecondaryEl.style.transform="translateY("+this.lastToolbarOffset+"px)")}},{key:"setTotalkreditHeights",value:function(){1080<window.innerWidth?this.toolbarPrimaryHeight=90:this.toolbarPrimaryHeight=64}}]),n.default=o},{"@material/toolbar/dist/mdc.toolbar":393}],393:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(){return n={0:function(e,t,n){var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.adapter_=e}
1i(r,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),i(r,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),t.a=r},1:function(e,t,n){var i=n(0),n=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(s,null,[{key:"attachTo",value:function(e){return new s(e,new i.a)}}]),n(s,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(e,t){this.root_.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){this.root_.removeEventListener(e,t)}},{key:"emit",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=void 0;"function"==typeof CustomEvent?i=new CustomEvent(e,{detail:t,bubbles:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(i)}}]);n=s;function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,n=this,i=s;if(!(n instanceof i))throw new TypeError("Cannot call a class as a function");this.root_=e;for(var a=arguments.length,r=Array(2<a?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];this.initialize.apply(this,r),this.foundation_=void 0===t?this.getDefaultFoundation():t,this.foundation_.init(),this.initialSyncWithDOM()}t.a=n},111:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCToolbar",function(){return u});var i=n(7),a=n(4),r=n(112),o=(n.d(t,"MDCToolbarFoundation",function(){return r.a}),function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e});function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?l(i,t,n):void 0}var u=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,[{key:"initialize",value:function(){this.ripples_=[].map.call(this.root_.querySelectorAll(r.a.strings.ICON_SELECTOR),function(e){e=a.MDCRipple.attachTo(e);return e.unbounded=!0,e})}},{key:"destroy",value:function(){this.ripples_.forEach(function(e){e.destroy()}),l(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"destroy",this).call(this)}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({hasClass:function(e){return n.root_.classList.contains(e)},addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},registerScrollHandler:function(e){return window.addEventListener("scroll",e)},deregisterScrollHandler:function(e){return window.removeEventListener("scroll",e)},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getViewportWidth:function(){return window.innerWidth},getViewportScrollY:function(){return window.pageYOffset},getOffsetHeight:function(){return n.root_.offsetHeight},getFirstRowElementOffsetHeight:function(){return n.firstRowElement_.offsetHeight}
1,notifyChange:function(e){return n.emit(r.a.strings.CHANGE_EVENT,e)},setStyle:function(e,t){return n.root_.style.setProperty(e,t)},setStyleForTitleElement:function(e,t){return n.titleElement_.style.setProperty(e,t)},setStyleForFlexibleRowElement:function(e,t){return n.firstRowElement_.style.setProperty(e,t)},setStyleForFixedAdjustElement:function(e,t){n.fixedAdjustElement&&n.fixedAdjustElement.style.setProperty(e,t)}})}},{key:"firstRowElement_",get:function(){return this.root_.querySelector(r.a.strings.FIRST_ROW_SELECTOR)}},{key:"titleElement_",get:function(){return this.root_.querySelector(r.a.strings.TITLE_SELECTOR)}},{key:"fixedAdjustElement",set:function(e){this.fixedAdjustElement_=e,this.foundation_.updateAdjustElementStyles()},get:function(){return this.fixedAdjustElement_}}],[{key:"attachTo",value:function(e){return new n(e)}}]),n}(i.MDCComponent)},112:function(e,t,n){var i=n(0),a=n(113),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function i(e){var t;if(this instanceof i)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,r(i.defaultAdapter,e)))).resizeHandler_=function(){return t.checkRowHeight_()},t.scrollHandler_=function(){return t.updateToolbarStyles_()},t.checkRowHeightFrame_=0,t.scrollFrame_=0,t.executedLastChange_=!1,t.calculations_={toolbarRowHeight:0,toolbarRatio:0,flexibleExpansionRatio:0,maxTranslateYRatio:0,scrollThresholdRatio:0,toolbarHeight:0,flexibleExpansionHeight:0,maxTranslateYDistance:0,scrollThreshold:0},t.fixed_=!1,t.fixedLastrow_=!1,t.hasFlexibleRow_=!1,t.useFlexDefaultBehavior_=!1,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(i,null,[{key:"cssClasse
1s",get:function(){return a.a}},{key:"strings",get:function(){return a.c}},{key:"numbers",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},registerScrollHandler:function(){},deregisterScrollHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},getViewportWidth:function(){return 0},getViewportScrollY:function(){return 0},getOffsetHeight:function(){return 0},getFirstRowElementOffsetHeight:function(){return 0},notifyChange:function(){},setStyle:function(){},setStyleForTitleElement:function(){},setStyleForFlexibleRowElement:function(){},setStyleForFixedAdjustElement:function(){}}}}]),o(i,[{key:"init",value:function(){this.fixed_=this.adapter_.hasClass(i.cssClasses.FIXED),this.fixedLastrow_=this.adapter_.hasClass(i.cssClasses.FIXED_LASTROW)&this.fixed_,this.hasFlexibleRow_=this.adapter_.hasClass(i.cssClasses.TOOLBAR_ROW_FLEXIBLE),this.hasFlexibleRow_&&(this.useFlexDefaultBehavior_=this.adapter_.hasClass(i.cssClasses.FLEXIBLE_DEFAULT_BEHAVIOR)),this.initKeyRatio_(),this.setKeyHeights_(),this.adapter_.registerResizeHandler(this.resizeHandler_),this.adapter_.registerScrollHandler(this.scrollHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterResizeHandler(this.resizeHandler_),this.adapter_.deregisterScrollHandler(this.scrollHandler_)}},{key:"updateAdjustElementStyles",value:function(){this.fixed_&&this.adapter_.setStyleForFixedAdjustElement("margin-top",this.calculations_.toolbarHeight+"px")}},{key:"getFlexibleExpansionRatio_",value:function(e){return Math.max(0,1-e/(this.calculations_.flexibleExpansionHeight+1e-4))}},{key:"checkRowHeight_",value:function(){var e=this;cancelAnimationFrame(this.checkRowHeightFrame_),this.checkRowHeightFrame_=requestAnimationFrame(function(){return e.setKeyHeights_()})}},{key:"setKeyHeights_",value:function(){var e=this.getRowHeight_();e!==this.calculations_.toolbarRowHeight&&(this.calculations_.toolbarRowHeight=e,this.calculations_.toolbarHeight=this.calculations_.toolbarRatio*this.calculations_.toolbarRowHeight,this.calculations_.flexibleExpansionHeight=this.calculations_.flexibleExpansionRatio*this.calculations_.toolbarRowHeight,this.calculations_.maxTranslateYDistance=this.calculations_.maxTranslateYRatio*this.calculations_.toolbarRowHeight,this.calculations_.scrollThreshold=this.calculations_.scrollThresholdRatio*this.calculations_.toolbarRowHeight,this.updateAdjustElementStyles(),this.updateToolbarStyles_())}},{key:"updateToolbarStyles_",value:function(){var i=this;cancelAnimationFrame(this.scrollFrame_),this.scrollFrame_=requestAnimationFrame(function(){var e,t=i.adapter_.getViewportScrollY(),n=i.scrolledOutOfThreshold_(t);n&&i.executedLastChange_||(e=i.getFlexibleExpansionRatio_(t),i.updateToolbarFlexibleState_(e),i.fixedLastrow_&&i.updateToolbarFixedState_(t),i.hasFlexibleRow_&&i.updateFlexibleRowElementStyles_(e),i.executedLastChange_=n,i.adapter_.notifyChange({flexibleExpansionRatio:e}))})}},{key:"scrolledOutOfThreshold_",value:function(e){return e>this.calculations_.scrollThreshold}},{key:"initKeyRatio_",value:function(){var e=this.getRowHeight_(),t=this.adapter_.getFirstRowElementOffsetHeight()/e;this.calculations_.toolbarRatio=this.adapter_.getOffsetHeight()/e,this.calculations_.flexibleExpansionRatio=t-1,this.calculations_.maxTranslateYRatio=this.fixedLastrow_?this.calculations_.toolbarRatio-t:0,this.calculations_.scrollThresholdRatio=(this.fixedLastrow_?this.calculations_.toolbarRatio:t)-1}},{key:"getRowHeight_",value:function(){var e=i.numbers.TOOLBAR_MOBILE_BREAKPOINT;return this.adapter_.getViewportWidth()<e?i.numbers.TOOLBAR_ROW_MOBILE_HEIGHT:i.numbers.TOOLBAR_ROW_HEIGHT}},{key:"updateToolbarFlexibleState_",value:function(e){this.adapter_.removeClass(i.cssClasses.FLEXIBLE_MAX),this.adapter_.removeClass(i.cssClasses.FLEXIBLE_MIN),1===e?this.adapter_.addClass(i.cssClasses.FLEXIBLE_MAX):0===e&&this.adapter_.addClass(i.cssClasses.FLEXIBLE_MIN)}},{key:"updateToolbarFixedState_",value:function(e){e=Math.max(0,Math.min(e-this.calculations_.flexibleExpansionHeight,this.calculations_.maxTranslateYDistance));this.adapter_.setStyle("transform","translateY("+-e+"px)"),e===this.calculations_.maxTranslateYDistance?this.adapter_.addClass(i.cssClasse
1s.FIXED_AT_LAST_ROW):this.adapter_.removeClass(i.cssClasses.FIXED_AT_LAST_ROW)}},{key:"updateFlexibleRowElementStyles_",value:function(e){var t;this.fixed_&&(t=this.calculations_.flexibleExpansionHeight*e,this.adapter_.setStyleForFlexibleRowElement("height",t+this.calculations_.toolbarRowHeight+"px")),this.useFlexDefaultBehavior_&&this.updateElementStylesDefaultBehavior_(e)}},{key:"updateElementStylesDefaultBehavior_",value:function(e){var t=i.numbers.MAX_TITLE_SIZE,n=i.numbers.MIN_TITLE_SIZE;this.adapter_.setStyleForTitleElement("font-size",(t-n)*e+n+"rem")}}]),i}(i.a);t.a=n},113:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i={FIXED:"mdc-toolbar--fixed",FIXED_LASTROW:"mdc-toolbar--fixed-lastrow-only",FIXED_AT_LAST_ROW:"mdc-toolbar--fixed-at-last-row",TOOLBAR_ROW_FLEXIBLE:"mdc-toolbar--flexible",FLEXIBLE_DEFAULT_BEHAVIOR:"mdc-toolbar--flexible-default-behavior",FLEXIBLE_MAX:"mdc-toolbar--flexible-space-maximized",FLEXIBLE_MIN:"mdc-toolbar--flexible-space-minimized"},a={TITLE_SELECTOR:".mdc-toolbar__title",ICON_SELECTOR:".mdc-toolbar__icon",FIRST_ROW_SELECTOR:".mdc-toolbar__row:first-child",CHANGE_EVENT:"MDCToolbar:change"},r={MAX_TITLE_SIZE:2.125,MIN_TITLE_SIZE:1.25,TOOLBAR_ROW_HEIGHT:64,TOOLBAR_ROW_MOBILE_HEIGHT:56,TOOLBAR_MOBILE_BREAKPOINT:600}},2:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"supportsCssVariables",function(){return a}),n.d(t,"applyPassive",function(){return o}),n.d(t,"getMatchesProperty",function(){return s}),n.d(t,"getNormalizedEventCoords",function(){return l});var r=void 0,i=void 0;function a(e){var t,n,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=r;return"boolean"!=typeof r||i?e.CSS&&"function"==typeof e.CSS.supports?(t=e.CSS.supports("--css-vars","yes"),n=e.CSS.supports("(--css-vars: yes)")&&e.CSS.supports("color","#00000000"),a=!(!t&&!n||function(e){var t=e.document,n=t.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",t.body.appendChild(n);e=null!==(t=e.getComputedStyle(n))&&"solid"===t.borderTopStyle;return n.remove(),e}(e)),i||(r=a),a):void 0:a}function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;if(void 0===i||1<arguments.length&&void 0!==arguments[1]&&arguments[1]){var t=!1;try{e.document.addEventListener("test",null,{get passive(){t=!0}})}catch(e){}i=t}return!!i&&{passive:!0}}function s(t){return["webkitMatchesSelector","msMatchesSelector","matches"].filter(function(e){return e in t}).pop()}function l(e,t,n){var i=t.x,t=t.y,i=i+n.left,t=t+n.top,n=void 0,a=void 0,a="touchstart"===e.type?(n=e.changedTouches[0].pageX-i,e.changedTouches[0].pageY-t):(n=e.pageX-i,e.pageY-t);return{x:n,y:a}}},3:function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"browserSupportsCssVars",value:function(){}},{key:"isUnbounded",value:function(){}},{key:"isSurfaceActive",value:function(){}},{key:"isSurfaceDisabled",value:function(){}},{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"containsEventTarget",value:function(e){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"registerDocumentInteractionHandler",value:function(e,t){}},{key:"deregisterDocumentInteractionHandler",value:function(e,t){}},{key:"registerResizeHandler",value:function(e){}},{key:"deregisterResizeHandler",value:function(e){}},{key:"updateCssVariable",value:function(e,t){}},{key:"computeBoundingRect",value:function(){}},{key:"getWindowPageOffset",value:function(){}}])},4:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCRipple",function(){return u}),n.d(t,"RippleCapableSurface",function(){return c});var i=n(1),r=(n(3),n(5)),o=n(2),s=(n.d(t,"MDCRippleFoundation",function(){return r.a}),n.d(t,"util",function(){return o}
1),function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e});function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function a(){l(this,a);for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(t)));return i.disabled=!1,i.unbounded_,i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(a,[{key:"setUnbounded_",value:function(){this.foundation_.setUnbounded(this.unbounded_)}},{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"getDefaultFoundation",value:function(){return new r.a(a.createAdapter(this))}},{key:"initialSyncWithDOM",value:function(){this.unbounded="mdcRippleIsUnbounded"in this.root_.dataset}},{key:"unbounded",get:function(){return this.unbounded_},set:function(e){this.unbounded_=Boolean(e),this.setUnbounded_()}}],[{key:"attachTo",value:function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isUnbounded,t=void 0===t?void 0:t,e=new a(e);return void 0!==t&&(e.unbounded=t),e}},{key:"createAdapter",value:function(n){var e=o.getMatchesProperty(HTMLElement.prototype);return{browserSupportsCssVars:function(){return o.supportsCssVariables(window)},isUnbounded:function(){return n.unbounded},isSurfaceActive:function(){return n.root_[e](":active")},isSurfaceDisabled:function(){return n.disabled},addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},containsEventTarget:function(e){return n.root_.contains(e)},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t,o.applyPassive())},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t,o.applyPassive())},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,o.applyPassive())},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,o.applyPassive())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},updateCssVariable:function(e,t){return n.root_.style.setProperty(e,t)},computeBoundingRect:function(){return n.root_.getBoundingClientRect()},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}}}}}]),a}(i.a),c=function e(){l(this,e)};c.prototype.root_,c.prototype.unbounded,c.prototype.disabled},5:function(e,t,n){var i=n(0),a=(n(3),n(6)),r=n(2),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e};function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=["touchstart","pointerdown","mousedown","keydown"],d=["touchend","pointerup","mouseup"],f=[],n=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function c(e){var t;if(this instanceof c)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,o(c.defaultAdapter,e)))).layoutFrame_=0,t.frame_={width:0,height:0},t.activationState_=t.defaultActivationState_(),t.initialSize_=0,t.maxRadius_=0,t.activateHandler_=function(e){return t.activate_(e)},t.deactivateHandler_=function(e){return t.deactivate_(e)},t.focusHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.addClass(c.cssClasse
1s.BG_FOCUSED)})},t.blurHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.removeClass(c.cssClasses.BG_FOCUSED)})},t.resizeHandler_=function(){return t.layout()},t.unboundedCoords_={left:0,top:0},t.fgScale_=0,t.activationTimer_=0,t.fgDeactivationRemovalTimer_=0,t.activationAnimationHasEnded_=!1,t.activationTimerCallback_=function(){t.activationAnimationHasEnded_=!0,t.runDeactivationUXLogicIfReady_()},t.previousActivationEvent_=null,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(c,null,[{key:"cssClasses",get:function(){return a.a}},{key:"strings",get:function(){return a.c}},{key:"numbers",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{browserSupportsCssVars:function(){},isUnbounded:function(){},isSurfaceActive:function(){},isSurfaceDisabled:function(){},addClass:function(){},removeClass:function(){},containsEventTarget:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerDocumentInteractionHandler:function(){},deregisterDocumentInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},updateCssVariable:function(){},computeBoundingRect:function(){},getWindowPageOffset:function(){}}}}]),s(c,[{key:"isSupported_",value:function(){return this.adapter_.browserSupportsCssVars()}},{key:"defaultActivationState_",value:function(){return{isActivated:!1,hasDeactivationUXRun:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1,activationEvent:null,isProgrammatic:!1}}},{key:"init",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.registerRootHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.addClass(t),i.adapter_.isUnbounded()&&(i.adapter_.addClass(n),i.layoutInternal_())}))}},{key:"destroy",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,e=c.cssClasses.FG_ACTIVATION,this.adapter_.removeClass(e)),this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.removeClass(t),i.adapter_.removeClass(n),i.removeCssVars_()}))}},{key:"registerRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.registerInteractionHandler(e,t.activateHandler_)}),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)}},{key:"registerDeactivationHandlers_",value:function(e){var t=this;"keydown"===e.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):d.forEach(function(e){t.adapter_.registerDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"deregisterRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.activateHandler_)}),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"deregisterDeactivationHandlers_",value:function(){var t=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),d.forEach(function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"removeCssVars_",value:function(){var t=this,n=c.strings;Object.keys(n).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(n[e],null)})}},{key:"activate_",value:function(e){var t,n,i=this;this.adapter_.isSurfaceDisabled()||(t=this.activationState_).isActivated||(n=this.previousActivationEvent_)&&e&&n.type!==e.type||(t.isActivated=!0,t.isProgrammatic=null===e,t.activationEvent=e,t.wasActivatedByPointer=!t.isProgrammatic&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type),e&&0<f.length&&f.some(function(e){return i.adapter_.containsEventTarget(e)})?this.resetActivationState_():(e&&(f.push(e.target),this.registerDeactivationHandlers_(e)),t.wasElementMadeActive=this.checkElementMadeActive_(e),t.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){f=[],t.wasElementMadeActive||" "!==e.key&&32!==e.keyCode||(t.wasElementMadeActive=i.checkElementMadeActive_(e),t.wasElementMadeActive&&i.animateActivation_()),t.wasElementMadeActive||(i.activationState_=i.defaultActivationState_())})))}},{key:"checkElementMadeActive_",value:function(e){return!e||"keydown"!==e.type||this.adapter_.isSurfaceActive()}},{key:"activate",value:function(){this.activate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateActivation_",value:function(){var e,t,n=this,i=c.strings,a=i.VAR_FG_TRANSLATE_START,i=i.VAR_FG_TRANSLATE_END,r=c.cssClasse
1s,o=r.FG_DEACTIVATION,r=r.FG_ACTIVATION,s=c.numbers.DEACTIVATION_TIMEOUT_MS,l=(this.layoutInternal_(),""),u="";this.adapter_.isUnbounded()||(e=(t=this.getFgTranslationCoordinates_()).startPoint,t=t.endPoint,l=e.x+"px, "+e.y+"px",u=t.x+"px, "+t.y+"px"),this.adapter_.updateCssVariable(a,l),this.adapter_.updateCssVariable(i,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(o),this.adapter_.computeBoundingRect(),this.adapter_.addClass(r),this.activationTimer_=setTimeout(function(){return n.activationTimerCallback_()},s)}},{key:"getFgTranslationCoordinates_",value:function(){var e=this.activationState_,t=e.activationEvent,n=void 0;return{startPoint:n={x:(n=e.wasActivatedByPointer?Object(r.getNormalizedEventCoords)(t,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:n.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}}},{key:"runDeactivationUXLogicIfReady_",value:function(){var e=this,t=c.cssClasses.FG_DEACTIVATION,n=this.activationState_,i=n.hasDeactivationUXRun,n=n.isActivated;!i&&n||!this.activationAnimationHasEnded_||(this.rmBoundedActivationClasses_(),this.adapter_.addClass(t),this.fgDeactivationRemovalTimer_=setTimeout(function(){e.adapter_.removeClass(t)},a.b.FG_DEACTIVATION_MS))}},{key:"rmBoundedActivationClasses_",value:function(){var e=c.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()}},{key:"resetActivationState_",value:function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return e.previousActivationEvent_=null},c.numbers.TAP_DELAY_MS)}},{key:"deactivate_",value:function(e){var t,n=this,i=this.activationState_;i.isActivated&&(t=o({},i),i.isProgrammatic?(requestAnimationFrame(function(){return n.animateDeactivation_(null,t)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){n.activationState_.hasDeactivationUXRun=!0,n.animateDeactivation_(e,t),n.resetActivationState_()})))}},{key:"deactivate",value:function(){this.deactivate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateDeactivation_",value:function(e,t){var n=t.wasActivatedByPointer,t=t.wasElementMadeActive;(n||t)&&this.runDeactivationUXLogicIfReady_()}},{key:"layout",value:function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})}},{key:"layoutInternal_",value:function(){var e=this,t=(this.frame_=this.adapter_.computeBoundingRect(),Math.max(this.frame_.height,this.frame_.width));this.maxRadius_=this.adapter_.isUnbounded()?t:Math.sqrt(Math.pow(e.frame_.width,2)+Math.pow(e.frame_.height,2))+c.numbers.PADDING,this.initialSize_=t*c.numbers.INITIAL_ORIGIN_SCALE,this.fgScale_=this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()}},{key:"updateLayoutCssVars_",value:function(){var e=c.strings,t=e.VAR_FG_SIZE,n=e.VAR_LEFT,i=e.VAR_TOP,e=e.VAR_FG_SCALE;this.adapter_.updateCssVariable(t,this.initialSize_+"px"),this.adapter_.updateCssVariable(e,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(n,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(i,this.unboundedCoords_.top+"px"))}},{key:"setUnbounded",value:function(e){var t=c.cssClasses.UNBOUNDED;e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}}]),c}(i.a);t.a=n},6:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i={ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded",BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation"},a={VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end"},r={PADDING:10,INITIAL_ORIGIN_SCALE:.6,DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,TAP_DELAY_MS:300}}
1,7:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1);n.d(t,"MDCFoundation",function(){return i.a}),n.d(t,"MDCComponent",function(){return a.a})}},a={},i.m=n,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=111);function i(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,a},"object"==typeof n&&"object"==typeof t?t.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof n?n.toolbar=a():(i.mdc=i.mdc||{},i.mdc.toolbar=a())},{}],352:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TabBarScroller=n.TabBar=void 0;var i=e("@material/tabs/dist/mdc.tabs");function a(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,n){function t(e){var t;n.tabpanels&&((t=n.tabpanels.querySelector(".js-tabpanel.js-tabpanel--active"))&&t.classList.remove("js-tabpanel--active"),t=n.tabpanels.querySelector(".js-tabpanel:nth-child("+(e+1)+")"))&&t.classList.add("js-tabpanel--active")}if(l(this,u),n.tabpanels=document.querySelector(".js-panels[for="+e.id+"]"),n.tabs.forEac
1h(function(e){e.preventDefaultOnClick=!0}),n.listen("MDCTabBar:change",function(e){t(e.detail.activeTabIndex)}),n.tabpanels){var i,a=n.tabpanels.querySelector(".active-tab-block-id");if(a&&(i=a.getAttribute("data-active-tab-id")),"total-app-tabs"==e.id&&i){var r=n.tabpanels.querySelectorAll(".js-tabpanel");if(r)for(var o=0;o<r.length;o++){var s=r[o].querySelector(".tabpanel-id");if(!s){t(0);break}s.getAttribute("data-tab-id")==i&&r[o].classList.add("js-tabpanel--active")}else t(0)}else t(0)}}n.TabBar=(r(o,u),o);function o(e){l(this,o);var t=new i.MDCTabBar(e);return a(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e,t))}n.TabBarScroller=(r(s,u),s);function s(e){l(this,s);var t=new i.MDCTabBarScroller(e),e=e.querySelector(".mdc-tab-bar-scroller__scroll-frame__tabs");return a(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e,t.tabBar))}},{"@material/tabs/dist/mdc.tabs":391}],351:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NestableTabs=void 0;var e=e("mithril"),u=(e=e)&&e.__esModule?e:{default:e};var i=n.NestableTabs=function(e){function n(e){o=e,l.forEach(function(e){e=document.querySelector("#"+a+e);e&&e.classList.add(r)}),(e=document.querySelector("#"+a+e))&&e.classList.remove(r),u.default.redraw()}var t,i=e.attrs,a="js-nestable-tab-panel-",r="npa-association__tab-panel--hidden",o=void 0,s=void 0,l=void 0;return{oninit:function(){t=i.data,s=t.labels,l=t.identifiers,n(l[0]),u.default.redraw()},view:function(){return(0,u.default)("ul",{class:"npa-association__tab-list"},l.map(function(e,t){return(0,u.default)("li",{class:"npa-association__tab-list-item "+(o===e?"npa-association__tab-list-item--selected":"")},(0,u.default)("button",{onclick:function(){return n(e)}},(0,u.default)("p",null,s[t])))}))}}};n.default=function e(t){var n;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");t&&(n={data:t.dataset.content.length?JSON.parse(t.dataset.content):[],el:t},u.default.mount(t,{view:function(){return(0,u.default)(i,n)}}))}},{mithril:410}],350:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("tablesort"),r=(e=e)&&e.__esModule?e:{default:e};function o(e){var t,n,i=this;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");e&&((t=e.querySelectorAll("thead th, thead td")).length&&(n=e.querySelectorAll("tbody tr"),Array.from(n).forEach(function(e){var n=e.children;n.length===t.length&&Array.from(t).forEach(function(e,t){n[t].setAttribute("data-title",e.textContent)})})),e.classList.contains("js-table-sort")&&(n=e.querySelector("table"),(0,r.default)(n,{descending:!0})),(n=e.querySelectorAll("tr[data-js-click-link]")).length)&&Array.from(n).forEach(function(e){e.addEventListener("click",function(){return i.followLink(e)})})}i(o,[{key:"followLink",value:function(e){e&&e.dataset&&e.dataset.jsClickLink&&(window.location.href=e.dataset.jsClickLink)}}]),n.default=o},{tablesort:431}],431:[function(e,t,n){"use strict";function i(e,t){if(!(this instanceof i))return new i(e,t);if(!e||"TABLE"!==e.tagName)throw new Error("Element must be a table");this.init(e,t||{})}function v(e){var t;return window.CustomEvent&&"function"==typeof window.CustomEvent?t=new CustomEvent(e):(t=document.createEvent("CustomEvent")).initCustomEvent(e,!1,!1,void 0),t}function _(e,t){return e.getAttribute(t.sortAttribute||"data-sort")||e.textContent||e.innerText||""}function y(e,t){return(e=e.trim().toLowerCase())===(t=t.trim().toLowerCase())?0:e<t?1:-1}function b(e,t){return[].slice.call(e).find(function(e){return e.getAttribute("data-sort-column-key")===t})}function k(i,a){return function(e,t){var n=i(e.td,t.td);return 0===n?a?t.index-e.index:e.index-t.index:n}}var w;w=[],i.extend=function(e,t,n){if("function"!=typeof t||"function"!=typeof n)throw new Error("Pattern and sort must be a function");w.push({name:e,pattern:t,sort:n})},i.prototype={init:function(e,t){var n,i,a,r=this;if(r.table=e,r.thead=!1,r.options=t,e.rows&&0<e.rows.length)if(e.tHead&&0<e.tHead.rows.length){for(s=0;s<e.tHead.rows.length;s++)if("thead"===e.tHead.rows[s].getAttribute("data-sort-method")){n=e.tHead.rows[s];break}n=n||e.tHead.rows[e.tHead.rows.length-1],r.thead=!0}else n=e.rows[0];if(n){for(var o=function(){r.current&&r.current!==this&&r.current.removeAttribute("aria-sort"),r.current=this,r.sortTable(this)},s=0;s<n.cells.length;s++)(a=n.cells[s]).setAttribute("role","columnheader"),"none"!==a.getAttribute("data-sort-method")&&(a.tabindex=0,a.addEventListener("click",o,!1),null!==a.getAttribute("data-sort-default"))&&(i=a);i&&(r.current=i,r.sortTable(i))}},sortTable:function(e,t){var n=this,i=e.getAttribute("data-sort-column-key"),a=e.cellIndex,r=y,o="",s=[],l=n.thead?0:1,u=e.getAttribute("data-sort-method"),c=e.getAttribute("aria-sort");if(n.table.dispatchEvent(v("beforeSort")),t||(c="ascending"===c||"descending"!==c&&n.options.descending?"desce
1nding":"ascending",e.setAttribute("aria-sort",c)),!(n.table.rows.length<2)){if(!u){for(;s.length<3&&l<n.table.tBodies[0].rows.length;)0<(o=(o=(f=i?b(n.table.tBodies[0].rows[l].cells,i):n.table.tBodies[0].rows[l].cells[a])?_(f,n.options):"").trim()).length&&s.push(o),l++;if(!s)return}for(l=0;l<w.length;l++)if(o=w[l],u){if(o.name===u){r=o.sort;break}}else if(s.every(o.pattern)){r=o.sort;break}for(n.col=a,l=0;l<n.table.tBodies.length;l++){var d,f,h=[],p={},m=0,g=0;if(!(n.table.tBodies[l].rows.length<2)){for(d=0;d<n.table.tBodies[l].rows.length;d++)"none"===(o=n.table.tBodies[l].rows[d]).getAttribute("data-sort-method")?p[m]=o:(f=i?b(o.cells,i):o.cells[n.col],h.push({tr:o,td:f?_(f,n.options):"",index:m})),m++;for("descending"===c?h.sort(k(r,!0)):(h.sort(k(r,!1)),h.reverse()),d=0;d<m;d++)p[d]?(o=p[d],g++):o=h[d-g].tr,n.table.tBodies[l].appendChild(o)}}n.table.dispatchEvent(v("afterSort"))}},refresh:function(){void 0!==this.current&&this.sortTable(this.current,!0)}},void 0!==t&&t.exports?t.exports=i:window.Tablesort=i},{}],345:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},p=a(e("mithril")),m=a(e("./store/investment-fund-list-table-store")),g=e("./investment-fund-list-table-container.mithril"),v=e("./investment-fund-list-filter-search.mithril"),i=e("../generic-table-wrapper/helper/PropHelper"),_=a(e("../../debouncer")),y=(e("dawa-autocomplete2"),e("./fundDisclaimerModalInvest.mithril"));function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var o={name:"investment-fund-list-table-wrapper",props:(r(e={xraylink:"",colorTheme:{},tableheaders:[],labels:{},rowstoshow:{type:Number,default:6},expandsize:{type:Number,default:6},filter:{default:null},rangefilter:{default:null},endpoint:"",endpoints:[],id:{}},"filter",{}),r(e,"pageref",{}),r(e,"cardsubtitlekey",{}),r(e,"cardtitlekey",{}),r(e,"includefavorites",{type:Boolean,default:!1}),r(e,"documentspageurl",""),r(e,"tableselector",{}),r(e,"fundTypes",[]),r(e,"swanmarkurl",""),r(e,"fundCategories",[]),r(e,"documentlinks",[]),e),oninit:function(e){(0,i.InitProps)(this);var t=e.attrs.fundTypes.find(function(e){return e.IsSelected}),n=1,t=(t&&(n=t.Id),m.default.actions.setFundType(n),e.attrs.fundCategories.find(function(e){return e.IsSelected})),n=1;t&&(n=t.Id),m.default.actions.setFundCategory(n),m.default.mutations.SET_ROWS_TO_SHOW(this.props.rowstoshow),m.default.mutations.SET_EXPAND_SIZE(this.props.expandsize),m.default.mutations.SET_LABELS(this.props.labels),m.default.mutations.SET_TABLE_HEADERS(this.props.tableheaders),m.default.mutations.SET_TABLE_HEADER(0),m.default.mutations.SET_CARD_TITLE_KEY(this.props.cardtitlekey),m.default.mutations.SET_CARD_SUBTITLE_KEY(this.props.cardsubtitlekey),m.default.mutations.SET_DATA_ENDPOINTS(this.props.endpoints),m.default.mutations.SET_DATA_ENDPOINT(0),m.default.mutations.SET_ID(this.props.id),m.default.mutations.SET_FILTER_DATA(this.props.filter),m.default.mutations.SET_FILTER_AMOUNT(5),m.default.mutations.SET_RANGE_FILTER_DATA(this.props.rangefilter),m.default.mutations.SET_ALL_FILTER_DATA(this.props.filter,this.props.rangefilter),m.default.mutations.SET_TABLE_SELECTOR_DATA(this.props.tableselector),m.default.mutations.SET_PAGE_REF(this.props.pageref),m.default.mutations.SET_COLOR_THEME(this.props.colorTheme),m.default.mutations.SET_INCLUDE_FAVORITES(this.props.includefavorites),m.default.mutations.SET_DOCUMENT_DOWNLOAD_URL(this.props.documentspageurl),m.default.mutations.SET_DOCUMENT_LINKS(this.props.documentlinks),m.default.mutations.SET_SWANMARK_ICON_URL(this.props.swanmarkurl),m.default.mutations.SET_FUNDYPE_LABELS(e.attrs.fundTypes),m.default.mutations.SET_FUNDCATEGORY_LABELS(e.attrs.fundCategories),m.default.mutations.SET_CURRENT_FUND_DISCLAIMER(m.default.state.fundCategoryLabels.find(function(e){return e.Id===m.default.state.fund_category_filter_data}).DisclaimerContent),m.default.actions.fetchTableData(!1)},oncreate:function(){document.getElementById("fund-category-selector").addEventListener("change",function(e){var t=document.getElementById("fund-category-selector").value;m.default.actions.setFundCategory(parseInt(t)),m.default.actions.setCurrentFundDisclaimer(m.default.state.fundCategoryLabels.find(function(e){return e.Id===m.default.state.fund_category_filter_data}).DisclaimerContent)}),document.getElementById("fund-type-selector").addEventListener("change",function(e){var t=document.getElementById("fund-type-selector").value;m.default.actions.setFundType(parseInt(t))})},onupdate:function(){document.querySelectorAll(".fund-type__selector").forEach(function(e){var t;e=(e={target:e}).target,t=e.options[e.selectedIndex].text,e.parentElement.querySelector(".fund-type__label").innerHTML=t})},view:function(e){var t=e.attrs.filterTextBefore,e=e.attrs.filterTextAfter,n=m.default.state.table_data,i=m.default.state.filter_data,a=m.default.state.range_filter_data,r=m.default.state.all_filter_data,o=window.innerWidth<768,s=m.default.getters.getAmountOfFiltersInUse(),l=m.default.state.labels,u=m.default.state.fundCategoryLabels,c=m.default.state.fundTypesLabels,d=new _.default,f=m.default.getters.getSearchValue();return(0,p.default)("article",null,(0,p.default)("div",{class:"find-fond-search mdc-typography--title-sm"},(0,p.default)("p",null,(0,p.default)("span",null,t)),(0,p.default)("div",{class:"fund-type__wrapper"},(0,p.default)("span",{class:"fund-type__label"}),(0,p.default)("select",{id:"fund-category-selector",class:"fund-type__selector"},u.map(function(e){return(0,p.default)("option",h({key:e.Id,value:e.Id},e.IsSelected?{selected:"selected"}:{}),e.Name)}
1))),(0,p.default)("p",null,(0,p.default)("span",null,e)),(0,p.default)("div",{class:"fund-type__wrapper"},(0,p.default)("span",{class:"fund-type__label"}),(0,p.default)("select",{id:"fund-type-selector",class:"fund-type__selector"},c.map(function(e){return(0,p.default)("option",{key:e.Id,value:e.Id,selected:e.IsSelected},e.Name)})))),(0,p.default)("div",null,o?(0,p.default)("div",{class:"npa-association-overview__search-input-container"},(0,p.default)("div",{class:"npa-association-overview__search-input-wrapper"},(0,p.default)("input",{class:"npa-association-overview__search-input",type:"text",value:f,oninput:function(e){return e=e.target.value,m.default.mutations.SET_SEARCH_VALUE(e),void d.update(function(){m.default.actions.search()},250)},placeholder:l?l.searchPlaceholderLabel:""}))):"",o?(0,p.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--raised generic-table-filter-and-search__filter-button-sticky",onclick:function(){return m.default.mutations.SET_DISPLAY_MODAL(!0)}},"Filter (",s,")"):"",(0,p.default)(v.InvestmentFundListFilterAndSearch,{filterData:i,allFilterData:r,rangeFilterData:a}),(0,p.default)(g.InvestmentFundListContainer,{tableData:n}),(0,p.default)(y.FundDisclaimerModalComponent,{body:m.default.state.currentFundDisclaimer.DisclaimerBody,acceptLabel:m.default.state.currentFundDisclaimer.AcceptLabel,denyLabel:m.default.state.currentFundDisclaimer.DenyLabel,denyUrl:m.default.state.currentFundDisclaimer.DenyUrl,disclaimerId:m.default.state.fund_category_filter_data})))}};n.default=function e(n){var i;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");n&&(i={},["fundTypes","fundCategories","filterTextBefore","filterTextAfter"].forEach(function(t){if(null!=n.getAttribute(t))try{var e=JSON.parse(n.getAttribute(t));i[t]=e}catch(e){console.log("Could not parse "+t),console.log(e)}}),p.default.mount(n,{view:function(){return(0,p.default)(o,i)}}))}},{"../../debouncer":223,"../generic-table-wrapper/helper/PropHelper":331,"./fundDisclaimerModalInvest.mithril":338,"./investment-fund-list-filter-search.mithril":343,"./investment-fund-list-table-container.mithril":344,"./store/investment-fund-list-table-store":349,"dawa-autocomplete2":405,mithril:410}],344:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.InvestmentFundListContainer=void 0;var d=i(e("mithril")),f=i(e("./store/investment-fund-list-table-store")),h=e("./investment-fund-list-table.mithril"),p=e("../../cards/Investment-fund-list-card.mithril"),m=(e("../cell-type/CellTypeCheckboxBanner.mithril"),e("./SelectDisplayStateNavigation.mithril")),g=e("../../dropdown/dropdown-with-fund-display.mithril");function i(e){return e&&e.__esModule?e:{default:e}}n.InvestmentFundListContainer=function(){function u(e){f.default.mutations.SET_TABLE_HEADER(e),f.default.mutations.SET_DATA_ENDPOINT(e),f.default.mutations.SET_TABLE_SELECTOR_TEXT(e),f.default.actions.performSearch(),0<e?(f.default.mutations.SET_SHOW_GRAPHICS(!1),f.default.mutations.SET_SHOW_CARD_LIST(!0),f.default.mutations.SET_IS_OVERVEIW(!1)):(f.default.mutations.SET_SHOW_GRAPHICS(!0),f.default.mutations.SET_SHOW_CARD_LIST(!1),f.default.mutations.SET_IS_OVERVEIW(!0))}var c=window.innerWidth<768;return{onupdate:function(){document.querySelectorAll(".generic-table-wrapper .nyk-generic-table__favorite-button").forEach(function(e){e.setAttribute("style","color : "+f.default.state.color_theme_data.CVIContrastColor+";")})},oncreate:function(){window.addEventListener("resize",function(){c=window.innerWidth<768,setTimeout(function(){d.default.redraw()},100)})},view:function(e){var e=e.attrs,t=f.default.state.labels,n=f.default.state.totalCount,i=f.default.state.table_selector,a=Object.values(e.tableData.tableRows.map(function(e){return e.favorite})).reduce(function(e,t){return e+t},0),r=1<n?t.rowPluralLabel:t.rowSingularLabel,o=f.default.state.includeFavorites,s=1<a?t.favoritesPluralLabel:t.favoriteSingularLabel,l=e.tableData.tableRows;return(0,d.default)("section",{class:"npa-association-overview__table-wrapper"}
1,c?"":(0,d.default)(m.SelectDisplayStateNavigation,null,null!=i&&(0,d.default)(g.DropdownWithFundDisplay,{data:i,key:"tableselector",type:i.type,setFundDisplay:u}),(0,d.default)("div",{className:"npa-association-overview__table-top-details"},(0,d.default)("span",{class:"npa-association-overview__total-amount-index-funds"},n," ",r),o?(0,d.default)("span",null," ",(0,d.default)("span",{class:"npa-association-overview__spacer"},"|")," ",a," ",s," "):"")),f.default.getters.getCardDisplayState()||c?(0,d.default)("div",null,(0,d.default)("div",{class:"nyk-investment-fund-list-card__cards-wrapper"},l.map(function(e){return(0,d.default)(p.InvestmentFundListCard,{data:e})}))):(0,d.default)(h.InvestmentFundListTable,{tableData:e.tableData,setFavorite:function(e,t){return f.default.actions.setFavorites(t,e)},sortColumnCallback:function(e){return f.default.actions.sortColumn(e)}}),n>l.length?(0,d.default)("div",{class:"npa-association-overview__more-table-entries-container"},(0,d.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--raised",style:"background-color: "+f.default.state.color_theme_data.CVIBackgroundColor+"; color: "+f.default.state.color_theme_data.CVIBackgroundTextColor,onclick:function(){f.default.actions.loadMore()}},t.seeMoreLabel)):"")}}}},{"../../cards/Investment-fund-list-card.mithril":214,"../../dropdown/dropdown-with-fund-display.mithril":228,"../cell-type/CellTypeCheckboxBanner.mithril":319,"./SelectDisplayStateNavigation.mithril":337,"./investment-fund-list-table.mithril":346,"./store/investment-fund-list-table-store":349,mithril:410}],346:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.InvestmentFundListTable=void 0;var p=i(e("mithril")),m=e("../../../svg-render-functions/npa-icons.mithril"),s=i(e("../../calculators/NykreditTooltip.js")),g=(i(e("./store/investment-fund-list-table-store")),e("../cell-type/CellTypeCheckboxBanner.mithril"),e("../cell-type/CellTypeCheckbox.mithril"),e("../cell-type/EuSustainabilitySfdr.mithril")),v=e("../cell-type/numberRange.mithril"),_=e("../cell-type/Percentage.mithril"),y=e("../cell-type/StarRange.mithril"),b=e("../cell-type/CellTypeIcon.mithril");function i(e){return e&&e.__esModule?e:{default:e}}function l(){return{view:function(e){var t,n,i,a,r,o,s,l,u,c,d,f,h,e=e.attrs;return(0,p.default)("td",{class:"nyk-generic-table__cell"},(n=(t=e).cell,i=e.id,a=e.setFavorite,e=!(!(t=n).url||"link"!==n.type),r=!(!n.url||"icon"!==n.type),o=!("icon"!==n.type),s=!("stars"!==n.type),l="numberrange"===n.type,u=!("sfdr"!==n.type),c=!("percentage"!==n.type),d=!("text"!==n.type),f=!("boolean"!=typeof n),h="number"===n.type,e?n.url?(0,p.default)("div",null,(0,p.default)("div",null,n.additionalText),(0,p.default)("a",{href:n.url},n.value)):"":l?(0,p.default)(v.NumberRange,{minValue:n.minValue,maxValue:n.maxValue,boldValue:n.value}):s?(0,p.default)(y.StarRange,{minValue:n.minValue,maxValue:n.maxValue,boldValue:n.value,sliderStars:!1}):u?(0,p.default)(g.EuSustainabilitySfdr,{name:n.value,subtitle:n.subtitle}):c?(0,p.default)(_.Percentage,{negative:n.negative,value:n.value}):d?n.value:r?n.url&&"/"!==n.url?(0,p.default)("a",{href:n.url,target:"_blank",rel:"noopener noreferrer"},(0,p.default)(b.CellTypeIcon,{iconName:n.value})):"":o?(0,p.default)(b.CellTypeIcon,{iconName:n.value}):f?(0,p.default)("button",{class:"nyk-generic-table__favorite-button "+(n?"nyk-generic-table__favorite-button--active":""),onclick:function(){return a(!n,i)},"aria-label":n?"Fjern favorit":"Tilføj favorit"},(n?(0,m.favoriteSelected):(0,m.favoriteUnselected))()):h?n.value.toLocaleString("da-DK",{maximumFractionDigits:2}):t))}}}n.InvestmentFundListTable=function(){var o={direction:"asc",column:"name",label:"navn"};return{view:function(e){var e=e.attrs,n=e.tableData,i=e.setFavorite,a=e.sortColumnCallback,r=n.tableHeader.map(function(e){return e.name});if(0!==n.tableRows.length)return(0,p.default)("div",null,(0,p.default)("table",{class:"nyk-generic-table"},(0,p.default)("caption",{"aria-live":"polite"},n.tableTitle," sorteret efter ",o.label," i ","desc"===o.direction?"faldende":"stigende"," rækkefølge"),(0,p.default)("thead",null,(0,p.default)("tr",null,r.map(function(t){var i=n.tableHeader.find(function(e){return e.name===t});i.name;return(0,p.default)("th",{class:"nyk-generic-table__cell nyk-generic-table__cell--header"},i.hasSorting?(0,p.default)("div",null,(0,p.default)("button",{class:"nyk-generic-table__cell-sort-button",onclick:function(){return e=i.name,t=i.value||"",n=a,o.direction="asc"===o.direction?"de
1sc":"asc",o.column=e,o.label=t,n(o),void p.default.redraw();var e,t,n}},i.value||"",i.name===o.column?(0,p.default)("div",{class:"nyk-generic-table__cell-sort-arrow-container"},"asc"===o.direction?(0,p.default)("span",{class:"fund-list__sort-indicator fund-list__sort-indicator--ascending"}):"","desc"===o.direction?(0,p.default)("span",{class:"fund-list__sort-indicator fund-list__sort-indicator--descending"}):""):(0,p.default)("div",{class:"nyk-generic-table__cell-sort-arrow-container"},(0,p.default)("span",{class:"fund-list__sort-indicator fund-list__sort-indicator--ascending"}),(0,p.default)("span",{class:"fund-list__sort-indicator fund-list__sort-indicator--descending"}))),function(e){if(null!=e.description)return e=e.description,(0,p.default)("div",{class:"nyk-generic-table__tooltip"},(0,p.default)(s.default,{text:e}))}(i)):(0,p.default)("div",null,i.value||""))}))),(0,p.default)("tbody",null,(0,p.default)("tr",{class:"nyk-generic-table__spacer"}),n.tableRows.map(function(e){return(0,p.default)("tr",null,(t=e,n=i,r.map(function(e){return null!==t[e]&&void 0!==t[e]?t[e]:""}).map(function(e){return(0,p.default)(l,{cell:e,row:t,id:t.id,setFavorite:n})})));var t,n}))))}}}},{"../../../svg-render-functions/npa-icons.mithril":378,"../../calculators/NykreditTooltip.js":144,"../cell-type/CellTypeCheckbox.mithril":318,"../cell-type/CellTypeCheckboxBanner.mithril":319,"../cell-type/CellTypeIcon.mithril":320,"../cell-type/EuSustainabilitySfdr.mithril":321,"../cell-type/Percentage.mithril":322,"../cell-type/StarRange.mithril":323,"../cell-type/numberRange.mithril":324,"./store/investment-fund-list-table-store":349,mithril:410}],337:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SelectDisplayStateNavigation=void 0;var i=o(e("mithril")),a=o(e("./store/investment-fund-list-table-store")),r=e("../../../svg-render-functions/npa-icons.mithril");function o(e){return e&&e.__esModule?e:{default:e}}n.SelectDisplayStateNavigation=function(e){return{view:function(e){e=e.children;return(0,i.default)("nav",{class:"nyk-select-display-state-navigation"},(0,i.default)("div",{className:"nyk-select-display-state-navigation__content-wrapper-left"},e),a.default.getters.getIsOverview()?(0,i.default)("div",{className:"nyk-select-display-state-navigation__content-wrapper-right",role:"tablist"},(0,i.default)("p",{className:"nyk-select-display-state-navigation__content-wrapper-right-title"},"Vis:"),(0,i.default)("button",{className:a.default.getters.getCardDisplayState()?"nyk-select-display-state-navigation__display-button":"nyk-select-display-state-navigation__display-button nyk-select-display-state-navigation__display-button--active",onclick:function(){a.default.mutations.SET_CARD_DISPLAY_STATE(!1)},role:"tab","aria-label":"Liste visning","aria-selected":String(!a.default.getters.getCardDisplayState())},r.tableDisplayIcon),(0,i.default)("button",{className:a.default.getters.getShowCardList()&&a.default.getters.getCardDisplayState()?"nyk-select-display-state-navigation__display-button nyk-select-display-state-navigation__display-button--active":"nyk-select-display-state-navigation__display-button",onclick:function(){a.default.mutations.SET_SHOW_CARD_LIST(!0),a.default.mutations.SET_SHOW_GRAPHICS(!0),a.default.mutations.SET_CARD_DISPLAY_STATE(!0)},role:"tab","aria-label":"Kort visning","aria-selected":String(a.default.getters.getShowCardList()&&a.default.getters.getCardDisplayState())},r.bigCardDisplayIcon),(0,i.default)("button",{className:!a.default.getters.getShowCardList()&&a.default.getters.getCardDisplayState()?"nyk-select-display-state-navigation__display-button nyk-select-display-state-navigation__display-button--active":"nyk-select-display-state-navigation__display-button",onclick:function(){a.default.mutations.SET_SHOW_CARD_LIST(!1),a.default.mutations.SET_SHOW_GRAPHICS(!0),a.default.mutations.SET_CARD_DISPLAY_STATE(!0)},role:"tab","aira-label":"Simpel kort visning","aria-selected":String(!a.default.getters.getShowCardList()&&a.default.getters.getCardDisplayState())},r.smallCardDisplayIcon)):(0,i.default)("div",{className:"nyk-select-display-state-navigation__content-wrapper-right"},(0,i.default)("p",{className:"nyk-select-display-state-navigation__content-wrapper-right-title"},"Vis:"),(0,i.default)("button",{className:a.default.getters.getCardDisplayState()?"nyk-select-display-state-navigation__display-button":"nyk-select-display-state-navigation__display-button
1nyk-select-display-state-navigation__display-button--active",onclick:function(){a.default.mutations.SET_CARD_DISPLAY_STATE(!1)}},r.tableDisplayIcon),(0,i.default)("button",{style:"display:none",className:a.default.getters.getIsOverview()?"nyk-select-display-state-navigation__display-button nyk-select-display-state-navigation__display-button--active":"nyk-select-display-state-navigation__display-button",onclick:function(){console.log("Disabled Big card view when other fund that Overview chosen")}},r.bigCardDisplayIcon),(0,i.default)("button",{className:a.default.getters.getShowCardList()&&a.default.getters.getCardDisplayState()?"nyk-select-display-state-navigation__display-button nyk-select-display-state-navigation__display-button--active":"nyk-select-display-state-navigation__display-button",onclick:function(){a.default.mutations.SET_SHOW_CARD_LIST(!0),a.default.mutations.SET_SHOW_GRAPHICS(!1),a.default.mutations.SET_CARD_DISPLAY_STATE(!0)}},r.smallCardDisplayIcon)))}}}},{"../../../svg-render-functions/npa-icons.mithril":378,"./store/investment-fund-list-table-store":349,mithril:410}],214:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.InvestmentFundListCard=void 0;var d=i(e("mithril")),f=i(e("../tables/investment-fund-list-tables/store/investment-fund-list-table-store")),h=e("../../svg-render-functions/npa-icons.mithril"),p=e("../graphs/InvestmentFundListCircleGraph.mithril"),m=(e("../tables/cell-type/CellTypeCheckbox.mithril"),e("../tables/cell-type/Percentage.mithril")),g=e("./GenericCardList");function i(e){return e&&e.__esModule?e:{default:e}}n.InvestmentFundListCard=function(){function s(e,t,n){n&&(c=e),t&&("click"===t.type&&(c=e),"Enter"!==t.code&&"Space"!==t.code||(c=e))}function n(e,t){var n=document.getElementById("document-button-"+t),t=document.getElementById("document-list-"+t);n&&t&&(n=n?n.contains(e.target):null,t=t?t.contains(e.target):null,n||t||!c||s(!1,null,!0))}var l=!1,u=!1,c=!1;return{oncreate:function(e){var t=e.attrs.data;document.addEventListener("click",function(e){n(e,t.id)})},onremove:function(e){document.removeEventListener("click",n)},view:function(e){var e=e.attrs,t=document.body.classList.contains("Sparinvest"),n=e.data,e=n.allocations||[],i=t?["#c8273d","#2D4390","#419f43","#fd3fa4","#843a8e"]:["#0f1e82","#4192dc","#07094a","#875ba3","#6972b1"],a=[],t=(e.forEach(function(e,t){a.push({color:i[t],name:e.allocationCultureLabel,value:e.pfWeight})}),f.default.getters.getShowCardList()),e=f.default.getters.getShowGraphics(),r=f.default.getters.getIsOverview(),o=f.default.getters.getDocumentLinks();return(0,d.default)("article",{class:"nyk-fund-card nyk-investment-fund-list-card"},(0,d.default)("div",{class:"nyk-investment-fund-list-card__content-container"},(0,d.default)("div",{class:"nyk-investment-fund-list-card__above-title-container"},(0,d.default)("span",{class:"nyk-fund-card__favorites-container"},(0,d.default)("button",{onclick:function(){return e=!n.favorite,t=n.id,f.default.actions.setFavorites(t,e);var e,t}},(n.favorite?(0,h.favoriteSelected):(0,h.favoriteUnselected))())),(0,d.default)("h4",{class:"nyk-investment-fund-list-card__above-title"}," ","aktier | verden")),(0,d.default)("div",{class:"nyk-investment-fund-list-card__title-container"},(0,d.default)("h2",{class:"nyk-investment-fund-list-card__title mdc-typography--title-s"},n.name.value)),e?(0,d.default)("div",{class:"nyk-investment-fund-list-card__below-title"},(0,d.default)("div",{class:"nyk-investment-fund-list-card__below-title-circle"},(0,d.default)(p.InvestmentFundListCircleGraph,{type:"large",fundAsGraph:a},(0,d.default)("div",{class:"nyk-investment-fund-list-card__below-title-value"},(0,d.default)(m.Percentage,{negative:n.yearlyReturn.negative,value:n.yearlyReturn.value}),(0,d.default)("span",{class:"nyk-investment-fund-list-card__below-title-value-subtitle"},"Ã
rligt afkast på 3 år")))),(0,d.default)("div",{class:"nyk-investment-fund-list-card__fund-brief"},null!=n.fundBrief?n.fundBrief.value:"")):"",t?(0,d.default)(g.GenericCardList,{data:n}):"",u?(0,d.default)(g.GenericCardList,{data:n}):"",(0,d.default)("div",{class:"nyk-investment-fund-list-card__button-container"},(0,d.default)("div",{class:"fund__documents-menu"},(0,d.default)("a",{id:"document-button-"+n.id,class:"nyk-investment-fund-list-card__button nyk-investment-fund-list-card__button--w
1hite",href:"javascript:void(0);",onclick:function(e){s(!c,e,!1)}},"Dokumenter"),(0,d.default)("div",{id:"document-list-"+n.id,class:"mdc-menu mdc-menu--open-from-bottom-left"+(c?" mdc-menu--open":""),"mdc-menu":"mdc-menu"},(0,d.default)("ul",{class:"mdc-menu__items mdc-list mdc-list--non-interactive",role:"menu","aria-hidden":"true"},o.map(function(e){var t=e.Label.toLowerCase().includes("esg");if(null!=e.Link&&(!t||n.hasEsgReport))return(0,d.default)("li",{class:"mdc-list-item",role:"menuitem",tabindex:"0"},(0,d.default)("a",{class:"fund__menu-link",href:e.Link.replace("{isin}",n.id),target:"_blank",rel:"noopener"},e.Label))})))),(0,d.default)("a",{class:"nyk-investment-fund-list-card__button",href:n.name.url},"Produktside")),(0,d.default)("footer",{class:"nyk-investment-fund-list-card__footer"},(0,d.default)("p",{class:"nyk-investment-fund-list-card__footer-text"},"ISIN: "+n.id),r?(0,d.default)("div",{class:"nyk-investment-fund-list-card__mobile-toggle-bigcard",onclick:function(e){var t;t=!l,1||(l=t),(e=e)&&("click"===e.type&&(l=t),"Enter"!==e.code&&"Space"!==e.code||(l=t)),u=!u}},(0,d.default)("div",{class:"nyk-select-custom-input__chevron "+(l?"":"nyk-select-custom-input__chevron--rotated")},h.chevron)):"")))}}}},{"../../svg-render-functions/npa-icons.mithril":378,"../graphs/InvestmentFundListCircleGraph.mithril":244,"../tables/cell-type/CellTypeCheckbox.mithril":318,"../tables/cell-type/Percentage.mithril":322,"../tables/investment-fund-list-tables/store/investment-fund-list-table-store":349,"./GenericCardList":213,mithril:410}],244:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.InvestmentFundListCircleGraph=void 0;var r=i(e("mithril")),o=i(e("../../../beregnere-tk/javascript-tk-beregnere/energiberegner/methods/deepClone")),s=e("../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat");function i(e){return e&&e.__esModule?e:{default:e}}n.InvestmentFundListCircleGraph=function(){function a(e,t){return(n=e.sort(function(e,t){return e.value-t.value}).reverse()).forEach(function(e,t){n[t].value=0==t?n[t].value:n[t].value+n[t-1].value}),n.reverse().map(function(e){return(0,r.default)("div",{class:"investment-fund-list-circle-graphs__svg-container"},(0,r.default)("svg",{viewBox:"0 0 36 36",class:"circular-chart"},(0,r.default)("path",{class:"investment-fund-list-circle-graphs__circle","stroke-width":"large"===t?2.5:4.2,stroke:e.color,"stroke-dasharray":e.value+", 100",d:"M18 2.0845\r a 15.9155 15.9155 0 0 1 0 31.831\r a 15.9155 15.9155 0 0 1 0 -31.831"})))});var n}return{view:function(e){var t=e.attrs,e=e.children,n=t.fundAsGraph,t=t.type,i=(0,o.default)(n);return(0,r.default)("figure",{class:"investment-fund-list-circle-graphs"},"large"===t?(0,r.default)("div",{class:"investment-fund-list-circle-graphs__content-wrapper"},(0,r.default)("div",{class:"investment-fund-list-circle-graphs__stroke-wrapper"},a(i,t),(0,r.default)("div",{class:"investment-fund-list-circle-graphs__info"},e)),(0,r.default)("ul",{class:"investment-fund-list-circle-graphs__info-list"},n.map(function(e){return(0,r.default)("li",{class:"investment-fund-list-circle-graphs__output-item"},(0,r.default)("p",{class:"investment-fund-list-circle-graphs__output-type",style:"--background-color: "+e.color+";"},e.name),(0,r.default)("p",{class:"investment-fund-list-circle-graphs__output-value"},(0,s.percentage)(e.value)))}))):(0,r.default)("div",{class:"investment-fund-list-circle-graphs__content-wrapper"},(0,r.default)("div",{class:"investment-fund-list-circle-graphs__stroke-wrapper-small"},(0,r.default)("div",{class:"investment-fund-list-circle-graphs__graph-container"},a(n,t)),(0,r.default)("div",{class:"investment-fund-list-circle-graphs__info"},e)),(0,r.default)("ul",{class:"investment-fund-list-circle-graphs__info-container-list"},n.map(function(e){return(0,r.default)("li",{class:"investment-fund-list-circle-graphs__output-item"},(0,r.default)("p",{class:"investment-fund-list-circle-graphs__output-type",style:"--background-color: "+e.color+";"},e.name),(0,r.default)("p",{class:"investment-fund-list-circle-graphs__output-value"},(0,s.percentage)(e.value)))}))))}}}},{"../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat":17,"../../../beregnere-tk/javascript-tk-beregnere/energiberegner/methods/deepClone":51,mithril:410}],213:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GenericCardList=void 0;var c=i(e("mithril")),d=e("../../svg-render-functions/npa-icons.mithril"),f=e("../tables/cell-type/Percentage.mithril"),h=e("../tables/cell-type/EuSustainabilitySfdr.mithril"),p=e("../tables/cell-type/StarRange.mithril"),m=e("../tables/cell-type/numberRange.mithril"),g=i(e("../tables/investment-fund-list-tables/store/investment-fund-list-table-store"));
1function i(e){return e&&e.__esModule?e:{default:e}}n.GenericCardList=function(){function i(e){var t=!(!e.url||"link"!==e.type),n=!(!e.url||"icon"!==e.type),i=!("icon"!==e.type),a=!("stars"!==e.type),r="numberrange"===e.type,o=!("sfdr"!==e.type),s=!("percentage"!==e.type),l=!("text"!==e.type),u="number"===e.type||!isNaN(e);return t?e.url?(0,c.default)("a",{href:e.url},e.value):"":r?(0,c.default)(m.NumberRange,{minValue:e.minValue,maxValue:e.maxValue,boldValue:e.value,sliderNumbers:!1}):a?(0,c.default)(p.StarRange,{minValue:e.minValue,maxValue:e.maxValue,boldValue:e.value,sliderStars:!1}):o?(0,c.default)(h.EuSustainabilitySfdr,{name:e.value,subtitle:e.subtitle}):s?(0,c.default)(f.Percentage,{negative:e.negative,value:e.value}):l?e.value||"":n?e.url&&"/"!==e.url?(0,c.default)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer"},computevalueTypeIcon(e.value)):"":i?(t=e.value,{download:d.downloadDocument,swan:(0,c.default)("img",{width:"35",height:"35",src:g.default.getters.getSwanmarkUrl()}),none:"","":""}[t]||""):u?e.value.toLocaleString("da-DK",{maximumFractionDigits:2}):e}return{view:function(e){var t=e.attrs.data,n=[];return Object.keys(t).map(function(e){t[e]&&t[e].showOnCard&&""!=t[e].labelOnCard&&n.push(t[e])}),(0,c.default)("div",{class:"nyk-investment-fund-list-card__big-card-content"},(0,c.default)("ul",{class:"nyk-investment-fund-list-card__big-card-content-list-container"},n.map(function(e){return(0,c.default)("li",{class:"nyk-investment-fund-list-card__big-card-content-list-item"},(0,c.default)("span",{class:g.default.getters.getIsOverview()?"nyk-investment-fund-list-card__big-card-content-list-item-span nyk-investment-fund-list-card__big-card-content-list-item-span-overview":"nyk-investment-fund-list-card__big-card-content-list-item-span"},e.labelOnCard||"missing"),(0,c.default)("span",{class:g.default.getters.getIsOverview()?"nyk-investment-fund-list-card__big-card-content-list-item-span nyk-investment-fund-list-card__big-card-content-list-item-span-overview":"nyk-investment-fund-list-card__big-card-content-list-item-span"},i(e)))})))}}}},{"../../svg-render-functions/npa-icons.mithril":378,"../tables/cell-type/EuSustainabilitySfdr.mithril":321,"../tables/cell-type/Percentage.mithril":322,"../tables/cell-type/StarRange.mithril":323,"../tables/cell-type/numberRange.mithril":324,"../tables/investment-fund-list-tables/store/investment-fund-list-table-store":349,mithril:410}],322:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Percentage=void 0;var e=e("mithril"),i=(e=e)&&e.__esModule?e:{default:e};n.Percentage=function(){return{view:function(e){var e=e.attrs,t=e.negative,e=e.value;return(0,i.default)("p",{class:t?"nyk-cell-type-percentage nyk-cell-type-percentage--red":"nyk-cell-type-percentage"},e+"%")}}}},{mithril:410}],338:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FundDisclaimerModalComponent=n.FundDisclaimerModal=void 0;var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e){o(this,s),r.default.mount(e,l)}i(u,[{key:"oninit",value:function(e){this.updateModel(e.attrs)}},{key:"onbeforeupdate",value:function(e){this.updateModel(e.attrs)}},{key:"updateModel",value:function(e){this.model.open=!1,e.body&&(this.model.disclaimerId=e.disclaimerId,this.model.body=e.body,this.model.acceptLabel=e.acceptLabel,this.model.denyLabel=e.denyLabel,this.model.denyUrl=e.denyUrl,this.model.cookieName="InvestFundDisclaimerCookie"+this.model.disclaimerId,!function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){var a=n[i].trim();if(0==a.indexOf(t))return a.substring(t.length)}}(this.model.cookieName))&&(this.model.open=!0,this.setBodyScrollable(!1))}},{key:"setBodyScrollable",value:function(e){document.body.style.overflow=e?"auto":"hidden"}},{key:"publishAccept",value:function(){var e,t,n,i;this.model.open=!1,this.setBodyScrollable(!0),e=this.model.cookieName,t="true",n=24,(i=new Date).setTime(i.getTime()+60*n*60*1e3),n="expires="+i.toUTCString(),document.cookie=e+"="+t+";"+n+";path=/"}},{key:"view",value:function(){var e=this;return this.model.open?(0,r.default)("div",{class:"fund-disclaimer"},(0,r.default)("div",{class:"fund-disclaimer--background fund-disclaimer--background__nykinvest"}),(0,r.default)("div",{class:"fund-disclaimer--modal fund-disclaimer--modal__nykinvest"},(0,r.default)("div",{class:"fund-disclaimer--modal--inner"},(0,r.default)("div",{class:"fund-disclaimer--modal--inner--content"},r.default.trust(this.model.body)),(0,r.default)("div",{class:"fund-disclaimer--modal--inner--footer"},(0,r.default)("a",{class:"mdc-button mdc-button--primary mdc-button--outlined",href:this.model.denyUrl},this.model.denyLabel),(0,r.default)("a",{class:"mdc-button mdc-button--raised",onclick:function(){return e.publishAccept()}},this.model.acceptLabel))))):(0,r.default)("div",null)}}]);var l=u;function u(e){o(this,u),this.model={},this.updateModel(e.attrs)}n.FundDisclaimerModal=s,n.FundDisclaimerModalComponent=l},{mithril:410}],342:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=a(e("mithril")),o=a(e("./store/investment-fund-list-table-store")),s=e("./investment-fund-list-filter-search.mithril"),l=e("./investment-fund-list-document-table-container.mithril"),i=e("../generic-table-wrapper/helper/PropHelper");
1function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var c={name:"investment-fund-list-document-table-wrapper",props:(u(e={checkboxcallbackendpoint:"",colorTheme:{},tableheaders:[],labels:{},rowstoshow:{type:Number,default:6},filter:{default:null},rangefilter:{default:null},endpoint:"",endpoints:[],id:{}},"filter",{}),u(e,"pageref",{}),u(e,"cardsubtitlekey",{}),u(e,"cardtitlekey",{}),u(e,"includefavorites",{type:Boolean,default:!1}),u(e,"mobilefundlabels",[]),u(e,"mobilemenulabels",[]),e),oninit:function(e){(0,i.InitProps)(this),o.default.mutations.SET_ROWS_TO_SHOW(this.props.rowstoshow),o.default.mutations.SET_FILTER_AMOUNT(0),o.default.mutations.SET_LABELS(this.props.labels),o.default.mutations.SET_TABLE_HEADERS(this.props.tableheaders),o.default.mutations.SET_DOCUMENT_LINK(this.props.checkboxcallbackendpoint),o.default.mutations.SET_TABLE_HEADER(0),o.default.mutations.SET_CARD_TITLE_KEY(this.props.cardtitlekey),o.default.mutations.SET_CARD_SUBTITLE_KEY(this.props.cardsubtitlekey),o.default.mutations.SET_DATA_ENDPOINTS(this.props.endpoints),o.default.mutations.SET_DATA_ENDPOINT(0),o.default.mutations.SET_ID(this.props.id),o.default.mutations.SET_PAGE_REF(this.props.pageref),o.default.mutations.SET_COLOR_THEME(this.props.colorTheme),o.default.actions.fetchTableData(!1)},view:function(){var e=o.default.state.table_data,t=o.default.state.filter_data,n=o.default.state.range_filter_data,i=o.default.state.all_filter_data,a=window.innerWidth<768;return(0,r.default)("article",null,a?"":(0,r.default)(s.InvestmentFundListFilterAndSearch,{filterData:t,allFilterData:i,rangeFilterData:n}),(0,r.default)(l.InvestmentFundListDocumentTableContainer,{tableData:e,mobileMenuLabels:this.props.mobilemenulabels,mobileFundLabels:this.props.mobilefundlabels}))}};n.default=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");t&&r.default.mount(t,{view:function(){return(0,r.default)(c)}})}},{"../generic-table-wrapper/helper/PropHelper":331,"./investment-fund-list-document-table-container.mithril":341,"./investment-fund-list-filter-search.mithril":343,"./store/investment-fund-list-table-store":349,mithril:410}],343:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.InvestmentFundListFilterAndSearch=void 0;var p=i(e("mithril")),m=e("../../dropdown/dropdown-with-custom-input.mithril.js"),g=e("../../dropdown/dropdown-with-range-input.mithril.js"),v=i(e("./store/investment-fund-list-table-store")),_=i(e("../../debouncer")),y=e("../../modals/generic-filter-modal.mithril");function i(e){return e&&e.__esModule?e:{default:e}}n.InvestmentFundListFilterAndSearch=function(e){function a(e,t,n,i){"change"!==i.type&&"click"!==i.type&&"Space"!==i.code||(v.default.mutations.UPDATE_FILTER(e,t,n),v.default.actions.performSearch())}function r(e,t,n,i,a){"input"===a.type&&(v.default.mutations.UPDATE_RANGE_FILTER(e,t,n),v.default.actions.performSearch())}function t(e){v.default.mutations.SET_TABLE_HEADER(e),v.default.mutations.SET_DATA_ENDPOINT(e),v.default.actions.performSearch(),0<e?(v.default.mutations.SET_SHOW_GRAPHICS(!1),v.default.mutations.SET_SHOW_CARD_LIST(!0),v.default.mutations.SET_IS_OVERVEIW(!1)):(v.default.mutations.SET_SHOW_GRAPHICS(!0),v.default.mutations.SET_SHOW_CARD_LIST(!1),v.default.mutations.SET_IS_OVERVEIW(!0))}function o(e){"change"!==e.type&&"range"!==e.type&&"click"!==e.type&&"Space"!==e.code||(v.default.mutations.REMOVE_ALL_FILTER(),v.default.actions.performSearch())}function s(){return f.flatMap(function(t){var e;if("checkboxList"==t.type)return(e=t.content.filter(function(e){return e.isChecked})).map(function(e){return e.type=t.id}),e.map(function(e){return e.style=t.style}),e})}function l(){return i.filter(function(e){return e.currentMinValue>e.minValue||e.currentMaxValue<e.maxValue})}function u(e){v.default.mutations.SET_DISPLAY_MODAL(e),e=document.querySelector("body"),n?e.classList.add("stop-scroll"):e.classList.remove("stop-scroll")}var e=e.attrs,c=window.innerWidth<768,n=v.default.getters.getDisplayModal(),d=new _.default,i=e.rangeFilterData,f=e.filterData,h=e.allFilterData;return{onupdate:function(){document.querySelectorAll(".generic-table-wrapper .mdc-checkbox input").forEach(function(e){e.checked?e.nextElementSibling.setAttribute("style","background-color : "+v.default.state.color_theme_data.CVIContrastColor+"; border-color : "+v.default.state.color_theme_data.CVIContrastColor+";"):e.nextElementSibling.setAttribute("style","background-color : white; border-color : "+v.default.state.color_theme_data.CVIContrastColor+";")})},oncreate:function(){window.addEventListener("resize",function(){c=window.innerWidth<768,setTimeout(function(){p.default.redraw()},100)}),v.default.mutations.UPDATE_ALLOWED_FILTER_LIST(h)},view:function(){var e=v.default.state.labels,n=v.default.state.color_theme_data,i=v.default.getters.getFilterMinAmount();return(0,p.default)("section",{class:"npa-association-overview__filter-wrapper generic-table-filter-and-search"},c?"":(0,p.default)("div",{class:"npa-association-overview__search-input-container"},(0,p.default)("div",{class:"npa-association-overview__search-input-wrapper"},(0,p.default)("input",{class:"npa-association-overview__search-input",type:"text",value:v.default.getters.getSearchValue(),oninput:function(e){return e=e.target.value,v.default.mutations.SET_SEARCH_VALUE(e),void d.update(function(){v.default.actions.search()},250)}
1,placeholder:e?e.searchPlaceholderLabel:""}))),c?"":(0,p.default)("div",{class:"generic-table-filter-and-search__container"},(0,p.default)("div",{class:"npa-association-overview__filter-container",id:"filter-container"},v.default.getters.getAllowedFilterList().map(function(e,t){return e&&"checkboxList"===e.type?(0,p.default)(m.DropdownWithCustomInput,{data:e,key:t,type:e.type,callback:a}):!e||"starrange"!==e.type&&"numberrange"!==e.type&&"range"!==e.type?void 0:(0,p.default)(g.DropdownWithRangeInput,{data:e,key:e.id,type:e.type,callback:r})})),(0,p.default)("div",{className:"npa-association-overview__filter-container--see-all-filters"},(0,p.default)("button",{class:"npa-association-overview__filter-tag-button npa-association-overview__filter-tag-button--see-all-filters",onclick:function(e){var t,n;t=h,n=i,e&&(v.default.getters.getFilterAmount()<=n?v.default.mutations.SET_FILTER_AMOUNT(t.length):v.default.mutations.SET_FILTER_AMOUNT(n),v.default.mutations.UPDATE_ALLOWED_FILTER_LIST(t))}},(v.default.getters.getAllowedFilterList().length>i?"luk":"")+" Alle filtre")),(0,p.default)("div",{class:"npa-association-overview__filter-container npa-association-overview__filter-container-selected"},s().length+l().length?(0,p.default)("button",{class:"npa-association-overview__filter-tag-button npa-association-overview__filter-tag-button--remove-filters",onclick:o},e?e.clearAllFiltersLabel:""):"",s().map(function(t){return t&&t.label&&(0,p.default)("span",{class:"npa-association-overview__filter-tag",style:"background-color : "+n.CVIContrastColor+"; color: "+n.CVIBackgroundTextColor},"star"==t.style?(0,p.default)("p",{"aria-label":t.id+" "+(1===t.id?"Stjerne":"Stjerner"),class:"nyk-cell-type-star-range__star--filled"},p.default.trust(t.label)):(0,p.default)("p",null,t.label),(0,p.default)("button",{class:"npa-association-overview__filter-tag-button",onclick:function(e){return a(t.id,!1,t.type,e)}},(0,p.default)("svg",{viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.default)("circle",{cx:"14",cy:"14",r:"8",fill:"#07094A"}),(0,p.default)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.1196 11.0485L11.0485 18.1196L10.1646 17.2357L17.2357 10.1646L18.1196 11.0485Z",fill:"white"}),(0,p.default)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0485 10.1646L18.1196 17.2357L17.2357 18.1196L10.1646 11.0485L11.0485 10.1646Z",fill:"white"}))))}),l().map(function(i){return(0,p.default)("span",{class:"npa-association-overview__filter-tag",style:"background-color : "+n.CVIContrastColor+"; color: "+n.CVIBackgroundTextColor},(0,p.default)("p",null,i.name),(0,p.default)("button",{class:"npa-association-overview__filter-tag-button",onclick:function(e){return t=i.id,(n=v.default.state.range_filter_data.find(function(e){return e.id==t}))&&(n.currentMinValue=n.minValue,n.currentMaxValue=n.maxValue),void v.default.actions.performSearch();var t,n}},(0,p.default)("svg",{viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,p.default)("circle",{cx:"14",cy:"14",r:"8",fill:"#07094A"}),(0,p.default)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.1196 11.0485L11.0485 18.1196L10.1646 17.2357L17.2357 10.1646L18.1196 11.0485Z",fill:"white"}),(0,p.default)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0485 10.1646L18.1196 17.2357L17.2357 18.1196L10.1646 11.0485L11.0485 10.1646Z",fill:"white"}))))}))),v.default.getters.getDisplayModal()?(0,p.default)(y.FilterModal,{toggleFilter:u,setCheckedValue:a,allFilterData:h,setRangedValue:r,setFundDisplay:t,removeAllFilters:o,store:v.default}):"")}}}},{"../../debouncer":223,"../../dropdown/dropdown-with-custom-input.mithril.js":227,"../../dropdown/dropdown-with-range-input.mithril.js":229,"../../modals/generic-filter-modal.mithril":262,"./store/investment-fund-list-table-store":349,mithril:410}],341:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.InvestmentFundListDocumentTableContainer=void 0;var a=i(e("mithril")),r=i(e("./store/investment-fund-list-table-store")),o=e("./generic-document-table.mithril"),s=e("./investment-fund-list-document-mobile.mithril");
1function i(e){return e&&e.__esModule?e:{default:e}}n.InvestmentFundListDocumentTableContainer=function(){var i=window.innerWidth<768;return{onupdate:function(){document.querySelectorAll(".generic-table-wrapper .nyk-generic-table__favorite-button").forEach(function(e){e.setAttribute("style","color : "+r.default.state.color_theme_data.CVIContrastColor+";")})},oncreate:function(){window.addEventListener("resize",function(){i=window.innerWidth<768,setTimeout(function(){a.default.redraw()},100)})},view:function(e){var e=e.attrs,t=r.default.state.labels,n=e.tableData;return(0,a.default)("section",{class:"npa-association-overview__table-wrapper"},i?(0,a.default)("div",null,(0,a.default)(s.InvestmentFundListDocumentMobile,{menuLabels:e.mobileMenuLabels,fundLabels:e.mobileFundLabels,downloadEnpoint:n.checkboxcallbackendpoint})):(0,a.default)(o.GenericDocumentTable,{tableData:n,setFavorite:function(e,t){return r.default.actions.setFavorites(t,e)},sortColumnCallback:function(e){return r.default.actions.sortColumn(e)}}),(0,a.default)("div",{class:"npa-association-overview__more-table-entries-container"},(0,a.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--raised",style:"background-color: "+r.default.state.color_theme_data.CVIBackgroundColor+"; color: "+r.default.state.color_theme_data.CVIBackgroundTextColor,onclick:function(){r.default.actions.loadMore()}},t.seeMoreLabel)))}}}},{"./generic-document-table.mithril":339,"./investment-fund-list-document-mobile.mithril":340,"./store/investment-fund-list-table-store":349,mithril:410}],340:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.InvestmentFundListDocumentMobile=void 0;var a=i(e("mithril")),r=i(e("./store/investment-fund-list-table-store")),o=e("../../../svg-render-functions/npa-icons.mithril");function i(e){return e&&e.__esModule?e:{default:e}}n.InvestmentFundListDocumentMobile=function(e){e.attrs;var t={},n={},i="all";return{onupdate:function(){},oncreate:function(e){e=e.attrs;window.addEventListener("resize",function(){setTimeout(function(){a.default.redraw()},100)}),t=e.menuLabels,n=e.fundLabels,document.getElementById(t[0].Id).classList.add("nyk-investment-fund-list-document-mobile__menu-list-item--active")},view:function(e){e=e.attrs;return t=e.menuLabels,n=e.fundLabels,(0,a.default)("section",{class:"nyk-investment-fund-list-document-mobile"},(0,a.default)("div",{class:"nyk-investment-fund-list-document-mobile__menu"},(0,a.default)("ul",{class:"nyk-investment-fund-list-document-mobile__menu-list mdc-typography--body-xs mdc-typography--bd"},t.map(function(n){return(0,a.default)("li",{id:n.Id,class:"nyk-investment-fund-list-document-mobile__menu-list-item js-nyk-investment-fund-list-document-mobile__menu-list-item--active",onclick:function(e){var t;e=e.target,t=n.Id,e&&t&&(document.querySelectorAll(".nyk-investment-fund-list-document-mobile__menu-list-item").forEach(function(e){e.classList.remove("nyk-investment-fund-list-document-mobile__menu-list-item--active")}),document.querySelector("#"+t).classList.add("nyk-investment-fund-list-document-mobile__menu-list-item--active")),t!==i&&(i=t)}},n.Title)}))),(0,a.default)("div",{class:"nyk-investment-fund-list-document-mobile__fund-content"},(0,a.default)("h5",{className:"nyk-investment-fund-list-document-mobile__fund-content-title mdc-typography--body-xs mdc-typography--sb"},"Fonde"),(0,a.default)("ul",{class:"nyk-investment-fund-list-document-mobile__fund-content-list mdc-typography--body-md"},n.map(function(e){return(0,a.default)("li",{id:e.Id,class:"nyk-investment-fund-list-document-mobile__fund-content-list-item"},e.Title,(0,a.default)("a",{className:"nyk-investment-fund-list-document-mobile__fund-content-list-icon",download:!0,href:(e=e.Id,t=i,r.default.getters.getDocumentsLink()+"?documents="+e+":"+t)},o.downloadDocument));var t}))))}}}},{"../../../svg-render-functions/npa-icons.mithril":378,"./store/investment-fund-list-table-store":349,mithril:410}],339:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GenericDocumentTable=void 0;var c=i(e("mithril")),d=e("../../../svg-render-functions/npa-icons.mithril"),l=i(e("../../calculators/NykreditTooltip.js")),f=i(e("./store/investment-fund-list-table-store")),h=(e("../cell-type/CellTypeCheckboxBanner.mithril"),e("../cell-type/CellTypeCheckbox.mithril")),p=e("../cell-type/CellTypeIcon.mithril");
1function i(e){return e&&e.__esModule?e:{default:e}}function u(){return{view:function(e){var t,n,i,a,r,o,s,l,u,e=e.attrs;return(0,c.default)("td",{class:"nyk-generic-table__cell"},(n=(t=e).cell,i=e.id,a=e.setFavorite,e=!(!(t=n).url||"link"!==n.type),r=!(!n.url||"icon"!==n.type),o=!("icon"!==n.type),s=!("text"!==n.type),l=!("boolean"!=typeof n),u=!("checkbox"!==n.type),e?n.url?(0,c.default)("a",{href:n.url},n.value):"":s?n.value:u?(0,c.default)(h.CellTypeCheckbox,{id:n.id,updateList:f.default.mutations.UPDATE_DOCUMENT_LIST,setCheckedState:f.default.mutations.SET_CHECKED_STATE}):r?n.url&&"/"!==n.url?(0,c.default)("a",{href:n.url,target:"_blank",rel:"noopener noreferrer"},(0,c.default)(p.CellTypeIcon,{iconName:n.value})):"":o?(0,c.default)(p.CellTypeIcon,{iconName:n.value}):l?(0,c.default)("button",{class:"nyk-generic-table__favorite-button "+(n?"nyk-generic-table__favorite-button--active":""),onclick:function(){return a(!n,i)},"aria-label":n?"Fjern favorit":"Tilføj favorit"},(n?(0,d.favoriteSelected):(0,d.favoriteUnselected))()):t))}}}n.GenericDocumentTable=function(){var s={direction:"asc",column:"name"};return{view:function(e){var e=e.attrs,i=e.tableData,a=e.setFavorite,r=e.sortColumnCallback,o=i.tableHeader.map(function(e){return e.name});if(0!==i.tableRows.length)return(0,c.default)("div",null,(0,c.default)("table",{class:"nyk-generic-table"},(0,c.default)("caption",null,i.tableTitle),(0,c.default)("thead",null,(0,c.default)("tr",null,o.map(function(t){var n=i.tableHeader.find(function(e){return e.name===t}),e=n.name===s.column?"asc"===s.direction?"ascending":"descending":void 0;return(0,c.default)("th",{class:"nyk-generic-table__cell nyk-generic-table__cell--header","aria-sort":n.hasSorting?e:void 0},n.hasSorting?(0,c.default)("div",null,(0,c.default)("button",{class:"nyk-generic-table__cell-sort-button",onclick:function(){return e=n.name,t=r,s.direction="asc"===s.direction?"desc":"asc",s.column=e,t(s),void c.default.redraw();var e,t}},n.value||"",n.name===s.column?(0,c.default)("div",{class:"nyk-generic-table__cell-sort-arrow-container"},"asc"===s.direction?(0,c.default)("span",{class:"fund-list__sort-indicator fund-list__sort-indicator--ascending"}):"","desc"===s.direction?(0,c.default)("span",{class:"fund-list__sort-indicator fund-list__sort-indicator--descending"}):""):(0,c.default)("div",{class:"nyk-generic-table__cell-sort-arrow-container"},(0,c.default)("span",{class:"fund-list__sort-indicator fund-list__sort-indicator--ascending"}),(0,c.default)("span",{class:"fund-list__sort-indicator fund-list__sort-indicator--descending"}))),function(e){if(null!=e.description)return e=e.description,(0,c.default)("div",{class:"nyk-generic-table__tooltip"},(0,c.default)(l.default,{text:e}))}(n)):(0,c.default)("div",null,n.value||""))}))),(0,c.default)("tbody",null,(0,c.default)("tr",{class:"nyk-generic-table__spacer"}),i.tableRows.map(function(e){return(0,c.default)("tr",null,(t=e,n=a,o.map(function(e){return null!==t[e]&&void 0!==t[e]?t[e]:""}).map(function(e){return(0,c.default)(u,{cell:e,row:t,id:t.id,setFavorite:n})})));var t,n}))))}}}},{"../../../svg-render-functions/npa-icons.mithril":378,"../../calculators/NykreditTooltip.js":144,"../cell-type/CellTypeCheckbox.mithril":318,"../cell-type/CellTypeCheckboxBanner.mithril":319,"../cell-type/CellTypeIcon.mithril":320,"./store/investment-fund-list-table-store":349,mithril:410}],320:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CellTypeIcon=void 0;var i=o(e("mithril")),a=e("../../../svg-render-functions/npa-icons.mithril"),r=o(e("../investment-fund-list-tables/store/investment-fund-list-table-store"));function o(e){return e&&e.__esModule?e:{default:e}}n.CellTypeIcon=function(){return{view:function(e){var e=e.attrs.iconName;return e=e,{download:a.downloadDocument,swan:(0,i.default)("img",{width:"35",height:"35",src:r.default.getters.getSwanmarkUrl()}),none:""}[e]||""}}}},{"../../../svg-render-functions/npa-icons.mithril":378,"../investment-fund-list-tables/store/investment-fund-list-table-store":349,mithril:410}],349:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=a(e("./investment-fund-list-table-mutations")),e=a(e("./investment-fund-list-table-actions"));
1function a(e){return e&&e.__esModule?e:{default:e}}var r={state:{table_data:{tableRows:[],tableHeader:[],tableHeaders:[],totalCount:0},labels:{searchPlaceholderLabel:"",rowPluralLabel:"",rowSingularLabel:"",favoritesPluralLabel:"",favoriteSingularLabel:"",seeMoreLabel:"",clearAllFiltersLabel:""},documents_list:[],includeFavorites:!1,showGraphics:!0,showCardList:!1,isOverview:!0,cardDisplayState:!1,filterAmount:5,filterMinAmount:5,allowedFilterList:[],displayModal:!1,filter_data:[],range_filter_data:[],all_filter_data:[],fund_type_filter_data:0,fund_category_filter_data:0,rowsToShow:"",expandSize:"",endpoint:"",endpoints:[],totalCount:0,xrayLink:"",documentLink:"",id:"id",sort:"",searchValue:"",rowsToSkip:0,color_theme_data:{},fundTypesLabels:[],fundCategoryLabels:[],documentlinks:[],currentFundDisclaimer:{}},getters:{getDocumentsLink:function(){var e=r.getters.getDocumentsList();return r.state.documentLink+e.map(function(e,t){return(0==t?"?":"&")+"documents="+e}).join("")},getContentReference:function(){return r.state.pageRef},getAmountOfFiltersInUse:function(){return r.state.filter_data.flatMap(function(e){return e.content.filter(function(e){return e.isChecked})}).length+r.state.range_filter_data.flatMap(function(e){return e.currentMinValue>e.minValue||e.currentMaxValue<e.maxValue}).filter(Boolean).length},getDocumentsList:function(){return r.state.documents_list},getShowGraphics:function(){return r.state.showGraphics},getShowCardList:function(){return r.state.showCardList},getIsOverview:function(){return r.state.isOverview},getDocumentsPageUrl:function(){return r.state.documentsPageUrl},getSwanmarkUrl:function(){return r.state.swanmarkUrl},getCardDisplayState:function(){return r.state.cardDisplayState},getFilterAmount:function(){return r.state.filterAmount},getFilterMinAmount:function(){return r.state.filterMinAmount},getAllowedFilterList:function(){return r.state.allowedFilterList},getDisplayModal:function(){return r.state.displayModal},getSearchValue:function(){return r.state.searchValue},getDocumentLinks:function(){return r.state.documentlinks}},mutations:i.default,actions:e.default};n.default=r},{"./investment-fund-list-table-actions":347,"./investment-fund-list-table-mutations":348}],348:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var s=i(e("./investment-fund-list-table-store"));i(e("mithril"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}a(e={SET_COLOR_THEME:function(e){s.default.state.color_theme_data=e},SET_ROWS_TO_SHOW:function(e){s.default.state.rowsToShow=e},SET_ROWS_TO_SKIP:function(e){s.default.state.rowsToSkip=e},SET_EXPAND_SIZE:function(e){s.default.state.expandSize=e},SET_LABELS:function(t){Object.keys(s.default.state.labels).forEach(function(e){s.default.state.labels[e]=t[e]})},SET_DOCUMENT_LINK:function(e){s.default.state.documentLink=e},SET_TABLE_HEADERS:function(e){s.default.state.table_data.tableHeaders=e},SET_TABLE_HEADER:function(e){s.default.state.table_data.tableHeader=s.default.state.table_data.tableHeaders[e]}},"SET_TABLE_HEADERS",function(e){s.default.state.table_data.tableHeaders=e}),a(e,"SET_DATA_ENDPOINT",function(e){s.default.state.endpoint=s.default.state.endpoints[e]}),a(e,"SET_DATA_ENDPOINTS",function(e){s.default.state.endpoints=e}),a(e,"SET_CARD_TITLE_KEY",function(e){s.default.state.table_data.cardTitleKey=e}),a(e,"SET_CARD_SUBTITLE_KEY",function(e){s.default.state.table_data.cardSubtitleKey=e}),a(e,"SET_TOTAL_COUNT",function(e){s.default.state.totalCount=e}),a(e,"SET_TABLE_ROWS",function(e){s.default.state.table_data.tableRows=e}),a(e,"APPEND_TABLE_ROWS",function(e){s.default.state.table_data.tableRows=s.default.state.table_data.tableRows.concat(e)}),a(e,"SET_ID",function(e){s.default.state.id=e}),a(e,"SET_SORT",function(e){s.default.state.sort=e}),a(e,"SET_FILTER_AMOUNT",function(e){s.default.state.filterAmount=e}),a(e,"SET_FILTER_MIN_AMOUNT",function(e){s.default.state.filterMinAmount=e}),a(e,"SET_DISPLAY_MODAL",function(e){s.default.state.displayModal=e}),a(e,"SET_SEARCH_VALUE",function(e){s.default.state.searchValue=e}),a(e,"SET_FILTER_DATA",function(e){s.default.state.filter_data=e}),a(e,"SET_RANGE_FILTER_DATA",function(e){s.default.state.range_filter_data=e}),a(e,"SET_FUND_TYPE_FILTER_DATA",function(e){s.default.state.fund_type_filter_data=e}),a(e,"SET_FUND_CATEGORY_FILTER_DATA",function(e){s.default.state.fund_category_filter_data=e}),a(e,"SET_ALL_FILTER_DATA",function(e,t){e=e.concat(t).sort(function(e,t){return e.SortValue>t.SortValue?1:-1});s.default.state.all_filter_data=e}),a(e,"SET_TABLE_SELECTOR_DATA",function(e){s.default.state.table_selector=e}),a(e,"SET_TABLE_SELECTOR_TEXT",function(e){0==e?s.default.state.table_selector.name=s.default.state.table_selector.defaultValue:(e=s.default.state.table_selector.content[e],s.default.state.table_selector.name=e.label)}),a(e,"SET_PAGE_REF",function(e){s.default.state.pageRef=e}),a(e,"SET_INCLUDE_FAVORITES",function(e){s.default.state.includeFavorites=e}),a(e,"SET_DOCUMENTS_LIST",function(e){s.default.state.documents_list=e}),a(e,"SET_SHOW_GRAPHICS",function(e){s.default.state.showGraphics=e}),a(e,"SET_IS_OVERVEIW",function(e){s.default.state.isOverview=e}
1),a(e,"SET_DOCUMENT_DOWNLOAD_URL",function(e){s.default.state.documentsPageUrl=e}),a(e,"SET_SWANMARK_ICON_URL",function(e){s.default.state.swanmarkUrl=e}),a(e,"SET_SHOW_CARD_LIST",function(e){s.default.state.showCardList=e}),a(e,"SET_CARD_DISPLAY_STATE",function(e){s.default.state.cardDisplayState=e}),a(e,"SET_FUNDYPE_LABELS",function(e){s.default.state.fundTypesLabels=e}),a(e,"SET_FUNDCATEGORY_LABELS",function(e){s.default.state.fundCategoryLabels=e}),a(e,"SET_DOCUMENT_LINKS",function(e){s.default.state.documentlinks=e}),a(e,"SET_CURRENT_FUND_DISCLAIMER",function(e){s.default.state.currentFundDisclaimer=e}),a(e,"CHECKBOX_IS_CHECKED",function(e){return s.default.state.portfolio_list.includes(e)}),a(e,"SET_CHECKED_STATE",function(e){r.CHECKBOX_IS_CHECKED(e)&&(document.getElementById(e).checked=!0)}),a(e,"UPDATE_DOCUMENT_LIST",function(t,e){var n=s.default.state.documents_list;e&&!n.includes(t)?n.push(t):!e&&n.includes(t)&&r.SET_DOCUMENTS_LIST(n.filter(function(e){return e!=t}))}),a(e,"UPDATE_FAVORITE",function(n,i){var a=s.default.state.table_data.tableRows;a.forEach(function(e,t){e.id===n&&(a[t].favorite=i)})}),a(e,"REMOVE_ALL_FILTER",function(){var i=s.default.state.filter_data;i.forEach(function(e,t){var n=i[t];n.content.forEach(function(e,t){n.content[t].isChecked=!1})}),s.default.state.range_filter_data.forEach(function(e){e.currentMinValue=e.minValue,e.currentMaxValue=e.maxValue})}),a(e,"UPDATE_ALLOWED_FILTER_LIST",function(e){if(e){s.default.state.allowedFilterList=[];for(var t=0;t<s.default.state.filterAmount;t++)s.default.state.allowedFilterList.push(e[t])}}),a(e,"UPDATE_FILTER",function(i,a,r){var o=s.default.state.filter_data;o.forEach(function(e,t){var n;e.id==r&&(n=o[t]).content.forEach(function(e,t){e.id==i&&(n.content[t].isChecked=a)})})}),a(e,"UPDATE_RANGE_FILTER",function(t,n,i){s.default.state.range_filter_data.forEach(function(e){e.id==t&&(e.currentMinValue=n,e.currentMaxValue=i)})});var r=e;n.default=r},{"./investment-fund-list-table-store":349,mithril:410}],347:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=e("./investment-fund-list-table-store"),a=(i=i)&&i.__esModule?i:{default:i},r=e("../../generic-table-wrapper/helper/FetchHelper"),o=e("../../generic-table-wrapper/helper/LocalStoreHelper"),s=e("../../generic-table-wrapper/helper/UrlHelper");n.default={fetchTableData:function(t){var e=(0,s.GetParameters)(!0,a.default.state,(0,o.GetLocalStorageName)(a.default.state.id)),n=(0,s.BuildUrl)(a.default.state.endpoint,e);this.replaceQueryParams((0,s.buildURLQuery)(e)),(0,r.FetchData)(n).then(function(e){e.hasError||(a.default.mutations.SET_TOTAL_COUNT(e.response.result.totalCount),t?a.default.mutations.APPEND_TABLE_ROWS(e.response.result.data):a.default.mutations.SET_TABLE_ROWS(e.response.result.data))})},replaceQueryParams:function(e){var t=new URL(window.location.href);t.search=e,t.searchParams.delete("reference"),t.searchParams.delete("take"),t.searchParams.delete("descending"),window.history.replaceState(null,"",t.toString())},setFavorites:function(e,t){a.default.mutations.UPDATE_FAVORITE(e,t),(0,o.UpdateLocalStorage)(a.default.state.id,e,t)},sortColumn:function(e){a.default.mutations.SET_SORT(e),this.performSearch()},search:function(){this.performSearch()},setRowsToSkip:function(e){a.default.mutations.SET_ROWS_TO_SKIP(e)},performSearch:function(){a.default.mutations.SET_ROWS_TO_SKIP(null),this.fetchTableData(!1)},loadMore:function(){var e=a.default.state;a.default.mutations.SET_ROWS_TO_SKIP(e.table_data.tableRows.length),a.default.mutations.SET_ROWS_TO_SHOW(e.expandSize),this.fetchTableData(!0)},setFundType:function(e){a.default.mutations.SET_FUND_TYPE_FILTER_DATA(e),this.fetchTableData(!1)},setFundCategory:function(e){a.default.mutations.SET_FUND_CATEGORY_FILTER_DATA(e),this.fetchTableData(!1)},setCurrentFundDisclaimer:function(e){a.default.mutations.SET_CURRENT_FUND_DISCLAIMER(e)},modifyTableDataForMobile:function(e,n){return e.map(function(t){return{id:t.id,favorite:t.favorite,title:t[a.default.state.table_data.cardTitleKey],subtitle:t[a.default.state.table_data.cardSubtitleKey],values:n.map(function(e){return t[e]})}})}}},{"../../generic-table-wrapper/helper/FetchHelper":329,"../../generic-table-wrapper/helper/LocalStoreHelper":330,"../../generic-table-wrapper/helper/UrlHelper":332,"./investment-fund-list-table-store":349}],319:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CellTypeCheckboxBanner=void 0;
1var e=e("mithril"),o=(e=e)&&e.__esModule?e:{default:e};n.CellTypeCheckboxBanner=function(){var r=!0;return{view:function(e){var e=e.attrs,t=e.portfolioList,n=e.clearhandler,i=e.callback,a=e.asDownload,e=e.buttonLabel;return(0,o.default)("div",{class:r?"nyk-cell-type-checkbox__banner":"nyk-cell-type-checkbox__banner--hide"},a?(0,o.default)("a",{class:"nyk-cell-type-checkbox__banner__button",href:i(),download:!0},e):(0,o.default)("a",{class:"nyk-cell-type-checkbox__banner__button",href:i()},e),(0,o.default)("p",{class:"nyk-cell-type-checkbox__banner__count"},t.length+" er valgt"),(0,o.default)("button",{class:"nyk-cell-type-checkbox__banner__close",onclick:function(){r=!r,t.forEach(function(e){document.getElementById(e).checked=!1}),n([])}},(0,o.default)("svg",{viewBox:"0 0 48 48",width:"100%",height:"100%"},(0,o.default)("path",{stroke:"#696057","stroke-width":"2px",d:"M9.9 9.9l28.3 28.3m-.1-28.3L9.9 38.1"}))))}}}},{mithril:410}],318:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CellTypeCheckbox=void 0;var e=e("mithril"),i=(e=e)&&e.__esModule?e:{default:e};n.CellTypeCheckbox=function(){return{oncreate:function(e){var e=e.attrs,t=e.id;(0,e.setCheckedState)(t)},view:function(e){var e=e.attrs,t=e.id,n=e.updateList;return(0,i.default)("div",{class:"nyk-cell-type-checkbox mdc-checkbox mdc-checkbox--upgraded mdc-ripple-upgraded mdc-ripple-upgraded--unbounded mdc-ripple-upgraded--foreground-activation"},(0,i.default)("input",{class:"mdc-checkbox__native-control",type:"checkbox",id:t,onchange:function(e){n(t,e.target.checked)}}),(0,i.default)("div",{class:"mdc-checkbox__background"},(0,i.default)("svg",{class:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},(0,i.default)("path",{class:"mdc-checkbox__checkmark-path",fill:"none",stroke:"white",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),(0,i.default)("div",{class:"mdc-checkbox__mixedmark"})))}}}},{mithril:410}],328:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=l(e("mithril")),a=l(e("./store/generic-table-store")),r=e("./generic-table-container.mithril"),o=e("./generic-filter-search.mithril"),s=e("./helper/PropHelper");function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var c={name:"generic-table-wrapper",props:(u(e={colorTheme:{},tableheader:{},labels:{},rowstoshow:{type:Number,default:6},filter:{default:null},endpoint:{},id:{}},"filter",{}),u(e,"pageref",{}),u(e,"cardsubtitlekey",{}),u(e,"cardtitlekey",{}),u(e,"includefavorites",{type:Boolean,default:!1}),e),oninit:function(e){(0,s.InitProps)(this),a.default.mutations.SET_ROWS_TO_SHOW(this.props.rowstoshow),a.default.mutations.SET_LABELS(this.props.labels),a.default.mutations.SET_TABLE_HEADER(this.props.tableheader),a.default.mutations.SET_CARD_TITLE_KEY(this.props.cardtitlekey),a.default.mutations.SET_CARD_SUBTITLE_KEY(this.props.cardsubtitlekey),a.default.mutations.SET_DATA_ENDPOINT(this.props.endpoint),a.default.mutations.SET_ID(this.props.id),a.default.mutations.SET_FILTER_DATA(this.props.filter),a.default.mutations.SET_PAGE_REF(this.props.pageref),a.default.mutations.SET_COLOR_THEME(this.props.colorTheme),a.default.mutations.SET_INCLUDE_FAVORITES(this.props.includefavorites),a.default.actions.fetchTableData(!1)},view:function(){var e=a.default.state.table_data,t=a.default.state.filter_data;return(0,i.default)("article",null,(0,i.default)(o.GenericFilterAndSearch,{filterData:t}),(0,i.default)(r.GenericTableContainer,{tableData:e}))}};n.default=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");t&&i.default.mount(t,{view:function(){return(0,i.default)(c)}})}},{"./generic-filter-search.mithril":326,"./generic-table-container.mithril":327,"./helper/PropHelper":331,"./store/generic-table-store":335,mithril:410}],331:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n.InitProps=function(e){var i=new r(e.name),a=e.props;
1Object.keys(a).forEach(function(e,t){var n=i.GetAttribute(e);s(n)?a[e].type===Number?a[e]=Number(n):a[e].type===Boolean?a[e]="true"===n||"True"===n:a[e]=n:a[e]=a[e].default})};i(o,[{key:"GetAttribute",value:function(e){if(this.hasDomElement){var t=this.domElement.dataset[e];if(s(t))try{return JSON.parse(this.domElement.dataset[e])}catch(e){return t}}}}]);var r=o;function o(e){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.domElement=document.getElementsByClassName(e)[0],s(this.domElement)||(this.hasDomElement=!1,console.error("Can't find "+e)),this.hasDomElement=!0}function s(e){return null!=e}},{}],327:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GenericTableContainer=void 0;var f=i(e("mithril")),h=i(e("./store/generic-table-store")),p=e("../generic-table.mithril"),m=e("../generic-table-wrapper/cards/generic-card.mithril");function i(e){return e&&e.__esModule?e:{default:e}}n.GenericTableContainer=function(){var d=window.innerWidth<768;return{onupdate:function(){document.querySelectorAll(".generic-table-wrapper .nyk-generic-table__favorite-button").forEach(function(e){e.setAttribute("style","color : "+h.default.state.color_theme_data.CVIContrastColor+";")})},oncreate:function(){window.addEventListener("resize",function(){d=window.innerWidth<768,setTimeout(function(){f.default.redraw()},100)})},view:function(e){function t(e,t){return h.default.actions.setFavorites(t,e)}var e=e.attrs,n=h.default.state.labels,i=h.default.state.totalCount,a=Object.values(e.tableData.tableRows.map(function(e){return e.favorite})).reduce(function(e,t){return e+t},0),r=1<i?n.rowPluralLabel:n.rowSingularLabel,o=h.default.state.includeFavorites,s=1<a?n.favoritesPluralLabel:n.favoriteSingularLabel,l=h.default.state.table_data.tableHeaders.filter(function(e){return"favorite"!==e.name&&e.name!==h.default.state.table_data.cardTitleKey&&e.name!==h.default.state.table_data.cardSubtitleKey}),u=l.map(function(e){return e.name}),c=l.map(function(e){return e.value}),l=h.default.actions.modifyTableDataForMobile(e.tableData.tableRows,u);return(0,f.default)("section",{class:"npa-association-overview__table-wrapper"},(0,f.default)("span",{class:"npa-association-overview__total-amount-index-funds"},i," ",r),o?(0,f.default)("span",null," ",(0,f.default)("span",{class:"npa-association-overview__spacer"},"|")," ",a," ",s," "):"",d?l.map(function(e){return(0,f.default)(m.GenericCard,{data:e,cardDataHeaders:c,setFavorite:t})}):(0,f.default)(p.GenericTable,{tableData:e.tableData,setFavorite:t,sortColumnCallback:function(e){return h.default.actions.sortColumn(e)}}),(0,f.default)("div",{class:"npa-association-overview__more-table-entries-container"},(0,f.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--raised",style:"background-color: "+h.default.state.color_theme_data.CVIBackgroundColor+"; color: "+h.default.state.color_theme_data.CVIBackgroundTextColor,onclick:function(){h.default.actions.loadMore()}},n.seeMoreLabel)))}}}},{"../generic-table-wrapper/cards/generic-card.mithril":325,"../generic-table.mithril":336,"./store/generic-table-store":335,mithril:410}],325:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GenericCard=void 0;var i=e("mithril"),u=(i=i)&&i.__esModule?i:{default:i},c=e("../../../../svg-render-functions/npa-icons.mithril");n.GenericCard=function(){function l(e){var t={download:c.downloadDocument};return t[e]||""}return{view:function(e){var e=e.attrs,t=e.data,n=t.title,i=t.subtitle,a=e.setFavorite,r=t.favorite,o=t.id,t=e.data.values,s=e.cardDataHeaders;return(0,u.default)("article",{class:"nyk-fund-card"},(0,u.default)("div",{class:"nyk-fund-card__container"},(0,u.default)("span",{class:"nyk-fund-card__favorites-container"},(0,u.default)("button",{onclick:function(){return a(!r,o)}},(r?(0,c.favoriteSelected):(0,c.favoriteUnselected))())),(0,u.default)("div",{class:"nyk-fund-card__inner-wrapper"},(0,u.default)("div",{class:"nyk-fund-card__subtitle mdc-typography--subtitle"},n),i?(0,u.default)("h2",{class:"nyk-fund-card__title mdc-typography--title-xs"},i):"",(0,u.default)("ul",{class:"nyk-fund-card__list-container"},t.map(function(e,t){return e=e,t=s[t],n=!(!e.url||"link"!==e.type),i=!(!e.url||"icon"!==e.type),n?e.url?(0,u.default)("li",{class:"nyk-fund-card__list-item"},(0,u.default)("span",{style:"font-weight:bold"},t),(0,u.default)("a",{href:e.url},l(e.value))):"":i?e.url&&"/"!==e.url?(0,u.default)("li",{class:"nyk-fund-card__list-item"},(0,u.default)("span",{style:"font-weight:bold"},t),(0,u.default)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer"},l(e.value))):"":(0,u.default)("li",{class:"nyk-fund-card__list-item"},(0,u.default)("span",{style:"font-weight:bold"},t),(0,u.default)("span",null,e));var n,i})))))}}}},{"../../../../svg-render-functions/npa-icons.mithril":378,mithril:410}],326:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GenericFilterAndSearch=void 0;var f=i(e("mithril")),h=e("../../dropdown/dropdown-with-custom-input.mithril.js"),p=i(e("./store/generic-table-store")),m=i(e("../../debouncer")),g=e("../../modals/generic-filter-modal.mithril");
1function i(e){return e&&e.__esModule?e:{default:e}}n.GenericFilterAndSearch=function(e){function i(e,t,n,i){"change"!==i.type&&"click"!==i.type&&"Space"!==i.code||(p.default.mutations.UPDATE_FILTER(e,t,n),p.default.actions.performSearch())}function t(e){"change"!==e.type&&"click"!==e.type&&"Space"!==e.code||(p.default.mutations.REMOVE_ALL_FILTER(),p.default.actions.performSearch())}function a(){return l.flatMap(function(t){var e=t.content.filter(function(e){return e.isChecked});return e.map(function(e){return e.type=t.id}),e})}function r(e){s=e,c=p.default.getters.getAmountOfFiltersInUse(),e=document.querySelector("body"),s?e.classList.add("stop-scroll"):e.classList.remove("stop-scroll")}var e=e.attrs,o=window.innerWidth<768,s=!1,l=e.filterData,u=new m.default,c=p.default.getters.getAmountOfFiltersInUse(),d="";return{onupdate:function(){document.querySelectorAll(".generic-table-wrapper .mdc-checkbox input").forEach(function(e){e.checked?e.nextElementSibling.setAttribute("style","background-color : "+p.default.state.color_theme_data.CVIContrastColor+"; border-color : "+p.default.state.color_theme_data.CVIContrastColor+";"):e.nextElementSibling.setAttribute("style","background-color : white; border-color : "+p.default.state.color_theme_data.CVIContrastColor+";")})},oncreate:function(){d=p.default.state.searchValue,c=p.default.getters.getAmountOfFiltersInUse(),window.addEventListener("resize",function(){o=window.innerWidth<768,setTimeout(function(){f.default.redraw()},100)})},view:function(){var e=p.default.state.labels,n=p.default.state.color_theme_data;return(0,f.default)("section",{class:"npa-association-overview__filter-wrapper"},(0,f.default)("div",{class:"npa-association-overview__search-input-container"},(0,f.default)("div",{class:"npa-association-overview__search-input-wrapper"},(0,f.default)("input",{class:"npa-association-overview__search-input",type:"text",value:d,oninput:function(e){return t=e.target.value,d=t,void u.update(function(){p.default.actions.setSearchValue(t)},250);var t},placeholder:e?e.searchPlaceholderLabel:""}))),o?(0,f.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--raised",onclick:function(){return r(!0)}},"Filter (",c,")"):(0,f.default)("div",null,(0,f.default)("div",{class:"npa-association-overview__filter-container"},l.map(function(e,t){return(0,f.default)(h.DropdownWithCustomInput,{data:e,key:t,type:"checkboxList",callback:i})})),(0,f.default)("div",{class:"npa-association-overview__filter-container"},a().length?(0,f.default)("button",{class:"npa-association-overview__filter-tag-button npa-association-overview__filter-tag-button--remove-filters",onclick:t,onkeypress:t},e?e.clearAllFiltersLabel:""):"",a().map(function(t){return(0,f.default)("span",{class:"npa-association-overview__filter-tag",style:"background-color : "+n.CVIContrastColor+"; color: "+n.CVIBackgroundTextColor},(0,f.default)("p",null,t.label),(0,f.default)("button",{class:"npa-association-overview__filter-tag-button",onclick:function(e){return i(t.id,!1,t.type,e)},onkeypress:function(e){return i(t.id,!1,t.type,e)}},(0,f.default)("svg",{viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,f.default)("circle",{cx:"14",cy:"14",r:"8",fill:"#07094A"}),(0,f.default)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.1196 11.0485L11.0485 18.1196L10.1646 17.2357L17.2357 10.1646L18.1196 11.0485Z",fill:"white"}),(0,f.default)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0485 10.1646L18.1196 17.2357L17.2357 18.1196L10.1646 11.0485L11.0485 10.1646Z",fill:"white"}))))}))),s?(0,f.default)(g.FilterModal,{toggleFilter:r,filterData:l,setCheckedValue:i,removeAllFilters:t,store:p.default}):"")}}}},{"../../debouncer":223,"../../dropdown/dropdown-with-custom-input.mithril.js":227,"../../modals/generic-filter-modal.mithril":262,"./store/generic-table-store":335,mithril:410}],335:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=a(e("./generic-table-mutations")),e=a(e("./generic-table-actions"));function a(e){return e&&e.__esModule?e:{default:e}}var r={state:{table_data:{tableRows:[],tableHeaders:[],totalCount:0}
1,labels:{searchPlaceholderLabel:"",rowPluralLabel:"",rowSingularLabel:"",favoritesPluralLabel:"",favoriteSingularLabel:"",seeMoreLabel:"",clearAllFiltersLabel:""},includeFavorites:!1,filter_data:[],rowsToShow:"6",endpoint:"",totalCount:0,id:"id",sort:"",searchValue:"",rowsToSkip:0,color_theme_data:{}},getters:{getContentReference:function(){return r.state.pageRef},getAmountOfFiltersInUse:function(){return r.state.filter_data.flatMap(function(e){return e.content.filter(function(e){return e.isChecked})}).length}},mutations:i.default,actions:e.default};n.default=r},{"./generic-table-actions":333,"./generic-table-mutations":334}],334:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=e("./generic-table-store"),s=(e=e)&&e.__esModule?e:{default:e};n.default={SET_COLOR_THEME:function(e){s.default.state.color_theme_data=e},SET_ROWS_TO_SHOW:function(e){s.default.state.rowsToShow=e},SET_ROWS_TO_SKIP:function(e){s.default.state.rowsToSkip=e},SET_LABELS:function(t){Object.keys(s.default.state.labels).forEach(function(e){s.default.state.labels[e]=t[e]})},SET_TABLE_HEADER:function(e){s.default.state.table_data.tableHeaders=e},SET_CARD_TITLE_KEY:function(e){s.default.state.table_data.cardTitleKey=e},SET_CARD_SUBTITLE_KEY:function(e){s.default.state.table_data.cardSubtitleKey=e},SET_DATA_ENDPOINT:function(e){s.default.state.endpoint=e},SET_TOTAL_COUNT:function(e){s.default.state.totalCount=e},SET_TABLE_ROWS:function(e){s.default.state.table_data.tableRows=e},APPEND_TABLE_ROWS:function(e){s.default.state.table_data.tableRows=s.default.state.table_data.tableRows.concat(e)},SET_ID:function(e){s.default.state.id=e},SET_SORT:function(e){s.default.state.sort=e},SET_FILTER_DATA:function(e){s.default.state.filter_data=e},SET_PAGE_REF:function(e){s.default.state.pageRef=e},SET_INCLUDE_FAVORITES:function(e){s.default.state.includeFavorites=e},UPDATE_FAVORITE:function(n,i){var a=s.default.state.table_data.tableRows;a.forEach(function(e,t){e.id===n&&(a[t].favorite=i)})},REMOVE_ALL_FILTER:function(){var i=s.default.state.filter_data;i.forEach(function(e,t){var n=i[t];n.content.forEach(function(e,t){n.content[t].isChecked=!1})})},UPDATE_FILTER:function(i,a,r){var o=s.default.state.filter_data;o.forEach(function(e,t){var n;e.id==r&&(n=o[t]).content.forEach(function(e,t){e.id==i&&(n.content[t].isChecked=a)})})},SET_SEARCH_VALUE:function(e){s.default.state.searchValue=e}}},{"./generic-table-store":335}],333:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=e("./generic-table-store"),a=(i=i)&&i.__esModule?i:{default:i},r=e("../helper/FetchHelper"),o=e("../helper/LocalStoreHelper"),s=e("../helper/UrlHelper");n.default={fetchTableData:function(t){var e=(0,s.BuildUrl)(a.default.state.endpoint,(0,s.GetParameters)(!0,a.default.state,(0,o.GetLocalStorageName)(a.default.state.id)));(0,r.FetchData)(e).then(function(e){e.hasError||(a.default.mutations.SET_TOTAL_COUNT(e.response.result.totalCount),t?a.default.mutations.APPEND_TABLE_ROWS(e.response.result.data):a.default.mutations.SET_TABLE_ROWS(e.response.result.data))})},setFavorites:function(e,t){a.default.mutations.UPDATE_FAVORITE(e,t),(0,o.UpdateLocalStorage)(a.default.state.id,e,t)},sortColumn:function(e){a.default.mutations.SET_SORT(e),this.performSearch()},setSearchValue:function(e){a.default.mutations.SET_SEARCH_VALUE(e),this.performSearch()},setRowsToSkip:function(e){a.default.mutations.SET_ROWS_TO_SKIP(e)},performSearch:function(){a.default.mutations.SET_ROWS_TO_SKIP(null),this.fetchTableData(!1)},loadMore:function(){var e=a.default.state;a.default.mutations.SET_ROWS_TO_SKIP(e.table_data.tableRows.length),this.fetchTableData(!0)},modifyTableDataForMobile:function(e,n){return e.map(function(t){return{id:t.id,favorite:t.favorite,title:t[a.default.state.table_data.cardTitleKey],subtitle:t[a.default.state.table_data.cardSubtitleKey],values:n.map(function(e){return t[e]})}})}}},{"../helper/FetchHelper":329,"../helper/LocalStoreHelper":330,"../helper/UrlHelper":332,"./generic-table-store":335}],332:[function(e,t,n){"use strict";function i(e){var t=[];return e.forEach(function(e){t.push(e.key+"="+e.value)}),t.join("&")}function a(e){return null!=e}Object.defineProperty(n,"__esModule",{value:!0}),n.BuildUrl=function(e,t){t=i(t);return"string"!=typeof t||0===t.length?e:e+"?"+t},n.buildURLQuery=i,n.GetParameters=function(e,t,n){var i=[];e&&(i.AddKeyValue("reference",t.pageRef),i.AddKeyValue("skip",t.rowsToSkip),i.AddKeyValue("take",t.rowsToShow));"string"==typeof t.searchValue&&0!==t.searchValue.length&&i.AddKeyValue("query",encodeURIComponent(t.searchValue));a(t.filter_data)&&(t.filter_data.forEach(function(t){"checkboxList"==t.type&&t.content.forEach(function(e){!0===e.isChecked&&i.AddKeyValue("filter",t.id+":"+e.id)})}),a(t.range_filter_data))&&t.range_filter_data.forEach(function(e){i.AddKeyValue("rangefilter",e.id+":"+e.currentMinValue+":"+e.currentMaxValue)});a(t.fund_type_filter_data)&&i.AddKeyValue("fundtypefilter",t.fund_type_filter_data);a(t.fund_category_filter_data)&&i.AddKeyValue("fundcategoryfilter",t.fund_category_filter_data);
1e&&localStorage.getObj(n,[]).forEach(function(e){i.AddKeyValue("favorite",e)});e&&null!=t.sort&&(i.AddKeyValue("sortby",t.sort.column),n="desc"===t.sort.direction,i.AddKeyValue("descending",n));return i},Storage.prototype.getObj=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,e=this.getItem(e);return null===e?t:JSON.parse(e)}},{}],330:[function(e,t,n){arguments[4][282][0].apply(n,arguments)},{dup:282}],329:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FetchData=function(e){return i.default.request({method:"GET",url:e,headers:{"Content-Type":"application/json"}}).then(function(e){return!e.result.data||e.error?{response:e,hasError:!0}:{response:e,hasError:!1}}).catch(function(e){return{response:"",hasError:!0}})};var n=e("mithril"),i=(e=n)&&e.__esModule?e:{default:e}},{mithril:410}],262:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FilterModal=void 0;var i=e("mithril"),l=(i=i)&&i.__esModule?i:{default:i},u=e("../dropdown/dropdown-with-custom-input.mithril"),c=e("../dropdown/dropdown-with-fund-display.mithril"),d=e("../dropdown/dropdown-with-range-input.mithril");n.FilterModal=function(){return{view:function(e){var e=e.attrs,t=e.toggleFilter,n=e.allFilterData,i=e.setCheckedValue,a=e.setRangedValue,r=e.setFundDisplay,o=e.removeAllFilters,e=e.store,s=e.state.table_data.tableRows.length,e=e.state.table_selector;return(0,l.default)("article",{class:"npa-filter-modal"},(0,l.default)("div",{class:"npa-filter-modal__top-wrapper"},(0,l.default)("button",{class:"npa-filter-modal__clear-filters nyk-js--fund-dropdown-element",onclick:function(e){return o(e)}},"Ryd alle filtre"),(0,l.default)("h2",{class:"npa-filter-modal__title mdc-typography--title-xs"},"Filtrer"),(0,l.default)("button",{class:"npa-filter-modal__close-modal nyk-js--fund-dropdown-element",onclick:function(){return t(!1)}},(0,l.default)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.default)("path",{d:"M19.25 2.75L2.75 19.25",stroke:"#212121","stroke-width":"3","stroke-miterlimit":"10","stroke-linecap":"square"}),(0,l.default)("path",{d:"M19.25 19.25L2.75 2.75",stroke:"#212121","stroke-width":"3","stroke-miterlimit":"10","stroke-linecap":"square"})))),(0,l.default)("div",{class:"npa-filter-modal__content-container"},(0,l.default)(c.DropdownWithFundDisplay,{data:e,key:"tableselector",type:e.type,setFundDisplay:r}),n.map(function(e){return e&&"checkboxList"===e.type?(0,l.default)(u.DropdownWithCustomInput,{data:e,key:e.id,type:e.type,callback:i}):!e||"starrange"!==e.type&&"numberrange"!==e.type?void 0:(0,l.default)(d.DropdownWithRangeInput,{data:e,key:e.id,type:e.type,callback:a})})),(0,l.default)("div",{class:"npa-filter-modal__show-result-button-container"},(0,l.default)("button",{onclick:function(){return t(!1)},class:"mdc-button mdc-button--raised mdc-button--primary nyk-js--fund-dropdown-element"},"Vis ",s," Resultater")))}}}},{"../dropdown/dropdown-with-custom-input.mithril":227,"../dropdown/dropdown-with-fund-display.mithril":228,"../dropdown/dropdown-with-range-input.mithril":229,mithril:410}],229:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DropdownWithRangeInput=n.RangeForDropdown=void 0;var m=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,i=[],a=!0,t=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(i.push(o.value),!n||i.length!==n);a=!0);}catch(e){t=!0,r=e}finally{try{!a&&s.return&&s.return()}finally{if(t)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=e("mithril"),g=(i=i)&&i.__esModule?i:{default:i},r=e("../../svg-render-functions/npa-icons.mithril"),v=e("../tables/cell-type/StarRange.mithril"),_=e("../tables/cell-type/numberRange.mithril");var o=n.RangeForDropdown=function(e){var a=e.attrs,e=document.body.classList.contains("Sparinvest"),t=a.data,r="",o="",s=t.currentMinValue,l=t.currentMaxValue,u=e?"#024f52":"#0f1e82";function c(e,t){var e=document.getElementById(e),t=document.getElementById(t),n=f(e,t),n=m(n,2),i=n[0],n=n[1];h(e,t,"#ccc",u,t),n<i&&(e.value=n)}function d(e,t){var e=document.getElementById(e),t=document.getElementById(t),n=f(e,t),n=m(n,2),i=n[0],n=n[1];
1h(e,t,"#ccc",u,t),p(t),t.value=i<=n?n:i}function f(e,t){return[parseFloat(e.value,10),parseFloat(t.value,10)]}function h(e,t,n,i,a){var r=t.max-t.min,e=e.value-t.min,t=t.value-t.min;a.style.background="linear-gradient(\n to right,\n "+n+" 0%,\n "+n+" "+e/r*100+"%,\n "+i+" "+e/r*100+"%,\n "+i+" "+t/r*100+"%, \n "+n+" "+t/r*100+"%, \n "+n+" 100%)"}function p(e){var t=document.getElementById(r);Number(e.value)<=Number(e.min)?t.style.zIndex=10:t.style.zIndex=0}return{oncreate:function(){var e=document.getElementById(o),t=document.getElementById(r);h(e,t,"#ccc",u,t),p(t)},onupdate:function(e){e=e.attrs.data;s=e.currentMinValue,l=e.currentMaxValue,document.getElementById(o).value=s,document.getElementById(r).value=l,c(o,r),d(o,r)},view:function(e){var e=e.attrs,t=e.data,i=e.type,e=e.dropdownState;return o=t.id+"-min",r=t.id+"-max",(0,g.default)("div",{class:"mdc-form-field nyk-select-dual-range__container"},(0,g.default)("div",{class:"nyk-select-dual-range__sliders-control"},(0,g.default)("input",{class:"nyk-select-dual-range__input nyk-select-dual-range__input-min",tabindex:e?"0":"-1",id:o,type:"range",min:t.minValue,max:t.maxValue,value:t.currentMinValue,oninput:function(e){var t,n;c(o,r),t=e.target.value,n=i,(e=e)&&(s=t,a.callback(a.data.id,s,l,n,e),g.default.redraw())}}),(0,g.default)("input",{class:"nyk-select-dual-range__input nyk-select-dual-range__input-max",tabindex:e?"0":"-1",id:r,type:"range",min:t.minValue,max:t.maxValue,value:t.currentMaxValue,oninput:function(e){var t,n;d(o,r),t=e.target.value,n=i,(e=e)&&(l=t,a.callback(a.data.id,s,l,n,e),g.default.redraw())}})),"range"===t.type?(0,g.default)("div",{class:"nyk-select-dual-range__labels-container"},(0,g.default)("label",{for:o},""+t.currentMinValue),(0,g.default)("label",{class:"nyk-select-dual-range__labels-container--last-label",for:r},""+t.currentMaxValue)):"","starrange"===t.type?(0,g.default)("div",{class:"nyk-select-dual-range__labels-container--steps"},(0,g.default)(v.StarRange,{minValue:t.minValue,maxValue:t.maxValue,currentMaxValue:t.currentMaxValue,currentMinValue:t.currentMinValue,sliderStars:!0})):"","numberrange"===t.type?(0,g.default)("div",{class:"nyk-select-dual-range__labels-container--steps"},(0,g.default)(_.NumberRange,{minValue:t.minValue,maxValue:t.maxValue,currentMaxValue:t.currentMaxValue,currentMinValue:t.currentMinValue,sliderNumbers:!0})):"")}}};n.DropdownWithRangeInput=function(n){function i(e,t,n){n&&(a=e),t&&("click"===t.type&&(a=e),"Enter"!==t.code&&"Space"!==t.code||(a=e))}function e(e){var t=document.getElementById("js-nyk-select-custom-input"+n.key);!t||(t?t.contains(e.target):null)||(i(!1,null,!0),g.default.redraw())}var a=!1;return{oncreate:function(){768<window.innerWidth&&document.addEventListener("click",e)},view:function(){var e=n.attrs.data;return(0,g.default)("div",{class:"nyk-select-custom-input",id:"js-nyk-select-custom-input"+n.key},(0,g.default)("div",{tabindex:"0",class:"nyk-select-custom-input__selected",onclick:function(e){return i(!a,e,!1)},onkeypress:function(e){return i(!a,e,!1)}},(0,g.default)("div",null,(0,g.default)("span",null,g.default.trust(e.icon)),(0,g.default)("span",{class:"nyk-select-custom-input__selected-value"},e.name)),(0,g.default)("div",{class:"nyk-select-custom-input__chevron "+(a?"":"nyk-select-custom-input__chevron--rotated")},r.chevron)),(0,g.default)("div",{class:"nyk-select-custom-input__content-container "+(a?"nyk-select-custom-input__content-container--selected nyk-select-custom-input__content-container--selected-dual-range":"")},(0,g.default)(o,{data:e,callback:n.attrs.callback,type:n.attrs.data.type,dropdownState:a})))}}}},{"../../svg-render-functions/npa-icons.mithril":378,"../tables/cell-type/StarRange.mithril":323,"../tables/cell-type/numberRange.mithril":324,mithril:410}],324:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NumberRange=void 0;var e=e("mithril"),l=(e=e)&&e.__esModule?e:{default:e};n.NumberRange=function(){return{view:function(e){var e=e.attrs,t=e.minValue,n=e.maxValue,i=e.boldValue,a=e.sliderNumbers,r=e.currentMinValue,o=e.currentMaxValue;s=t;var s,e=Array(parseInt(n)-parseInt(s)+1).fill().map(function(e,t){return parseInt(s)+t});return(0,l.default)("ul",{class:a?"nyk-cell-type-number-range nyk-cell-type-number-range--slider":"nyk-cell-type-number-range","aria-label":"Risiko rating: "+i+" ud af "+n},a?"":e.map(function(e){return e==i?(0,l.default)("li",{class:"nyk-cell-type-number-range__number nyk-cell-type-number-range__number--bold"},e):(0,l.default)("li",{class:"nyk-cell-type-number-range__number"},e)}),a?e.map(function(e){return r<=e&&e<=o?(0,l.default)("li",{class:"nyk-cell-type-number-range__number nyk-cell-type-number-range__number--bold"},e):(0,l.default)("li",{class:"nyk-cell-type-number-range__number"},e)}):"")}}}},{mithril:410}],323:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.StarRange=void 0;var i=e("mithril"),r=(i=i)&&i.__esModule?i:{default:i},o=e("../../../svg-render-functions/npa-icons.mithril");
1n.StarRange=function(){return{view:function(e){var e=e.attrs,t=e.minValue,n=e.maxValue,i=e.boldValue,e=e.sliderStars;a=t;var a,t=Array(parseInt(n)-parseInt(a)+1).fill().map(function(e,t){return parseInt(a)+t});return 0==i?"Ikke ratet":(0,r.default)("ul",{class:e?"nyk-cell-type-star-range nyk-cell-type-star-range--slider":"nyk-cell-type-star-range","aria-label":"Morningstar rating: "+i+" ud af "+n},e?"":t.map(function(e){return e<=i?(0,r.default)("li",{class:"nyk-cell-type-star-range__star--filled"},(0,o.favoriteSelected)()):(0,r.default)("li",{class:"nyk-cell-type-star-range__star"},(0,o.favoriteUnselected)())}),e?t.map(function(e){return(0,r.default)("li",{class:"nyk-cell-type-star-range__star--filled"},(0,o.favoriteSelected)())}):"")}}}},{"../../../svg-render-functions/npa-icons.mithril":378,mithril:410}],228:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DropdownWithFundDisplay=n.RadioForTableDisplay=void 0;var i=e("mithril"),s=(i=i)&&i.__esModule?i:{default:i},l=e("../../svg-render-functions/npa-icons.mithril"),u=e("../mdc-mithril-init");var c=n.RadioForTableDisplay=function(e){function a(e){document.querySelectorAll(".js-nyk-select-custom-input__mobile-checked-button").forEach(function(e){e.classList.remove("nyk-select-custom-input__mobile-checked-button--selected")}),document.querySelector("#"+e).classList.add("nyk-select-custom-input__mobile-checked-button--selected"),r()}function r(e){t(n,e)}var e=e.attrs,t=e.handleRadioFundDisplay,o=e.handleKeyDown,n=e.key;return{oncreate:function(e){var e=e.attrs,t=e.content,e=e.key;1===t.id&&768<window.innerWidth?document.getElementById(t.label+"-"+e).click():1===t.id&&window.innerWidth<768&&document.getElementById(t.label+"-"+e).classList.add("nyk-select-custom-input__mobile-checked-button--selected")},view:function(e){var e=e.attrs,t=e.content,n=e.key,e=e.dropdownState,i=t.label+"-"+n;return 768<window.innerWidth?(0,s.default)("div",{class:"mdc-form-field nyk-js--fund-dropdown-element"},(0,s.default)("div",{class:"mdc-radio js-mdc-radio",oncreate:u.createMdcRadio,onremove:u.removeMdc},(0,s.default)("input",{class:"mdc-radio__native-control nyk-js--fund-dropdown-element",tabindex:e?0:-1,id:i,value:t.label,type:"radio",name:"fund-select",onclick:function(){return r(!0)},onchange:function(){return r(!1)},onkeydown:function(e){return o(e)}}),(0,s.default)("div",{class:"mdc-radio__background"},(0,s.default)("div",{class:"mdc-radio__outer-circle"}),(0,s.default)("div",{class:"mdc-radio__inner-circle"}))),(0,s.default)("label",{for:i},t.label)):(0,s.default)("button",{id:i,class:"nyk-select-custom-input__mobile-checked-button nyk-js--fund-dropdown-element js-nyk-select-custom-input__mobile-checked-button",onclick:function(){return a(i)},onkeydown:function(){return a(i)}},t.label)}}};n.DropdownWithFundDisplay=function(n){function i(e,t,n){n&&(a=e),t&&"click"===t.type&&(a=e)}function e(e){var t=document.getElementById("js-nyk-select-custom-input"+n.key);!t||(t?t.contains(e.target):null)||(i(!1,null,!0),s.default.redraw())}function t(e,t){if("fundDisplayTypeList"===n.attrs.type)return(0,s.default)(c,{handleKeyDown:function(e){var t=e,e=document.querySelectorAll("input.nyk-js--fund-dropdown-element,button.nyk-js--fund-dropdown-element");if(0<e.length){var n=Array.from(e),i=n.indexOf(t.target);switch(t.code){case"Tab":t.preventDefault(),o(i,n,!t.shiftKey);break;case"Enter":case"Space":n[i].checked=!0,n[i].dispatchEvent(new Event("change",{bubbles:!0}));break;case"Escape":a=!1,n[0].focus();break;case"ArrowDown":t.preventDefault(),o(i,n,!0);break;case"ArrowUp":t.preventDefault(),o(i,n,!1)}}},content:e,key:t,handleRadioFundDisplay:function(e,t){r(e),t&&i(!1,null,!0),s.default.redraw()},type:n.attrs.data.id,dropdownState:a})}var a=!1,r=n.attrs.setFundDisplay,o=function(e,t,n){function i(e){t[e].checkVisibility()?t[e].focus():i(n?e+1:e-1)}n?e===t.length-1?i(0):i(e+1):i(0===e?t.length-1:e-1)};return{oncreate:function(){768<window.innerWidth&&document.addEventListener("click",e)},view:function(){var e=n.attrs.data;return(0,s.default)("div",{class:"nyk-select-custom-input nyk-select-fund-display-type",id:"js-nyk-select-custom-input"+n.key},(0,s.default)("button",{"aria-expanded":a,"aria-controls":"nyk-dropdown-region-id__"+n.key,id:"nyk-dropdown-button-id__"+n.key,class:"nyk-select-custom-input__selected nyk-select-fund-display-type__selector nyk-js--fund-dropdown-element",onclick:function(e){return i(!a,e,!1)}},(0,s.default)("div",null,(0,s.default)("span",null,s.default.trust(e.icon)),(0,s.default)("span",{class:"nyk-select-custom-input__selected-value"},e.name)),(0,s.default)("div",{class:"nyk-select-custom-input__chevron "+(a?"":"nyk-select-custom-input__chevron--rotated")},l.chevron)),(0,s.default)("div",{id:"nyk-dropdown-region-id__"+n.key,role:"region","aria-labelledby":"nyk-dropdown-button-id__"+n.key,class:"nyk-select-custom-input__content-container "+(a?"nyk-select-custom-input__content-container--selected":"")},e.content.map(t)))}}}},{"../../svg-render-functions/npa-icons.mithril":378,"../mdc-mithril-init":255,mithril:410}],317:[function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e){var n=this;if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.table=null,this.regularHeaderRow=null,this.stickeyHeaderRow=null,this.changeHeaderPosition=function(e){var t=n.getPosition(n.table).y;n.stickeyHeaderRow.style.position="fixed",n.stickeyHeaderRow.style.top=0,n.stickeyHeaderRow.style.zIndex=3,Array.from(n.regularHeaderRow.children).forEac
1h(function(e,t){n.stickeyHeaderRow.children[t].style.width=e.offsetWidth+"px"}),window.pageYOffset>t&&window.pageYOffset<=t+n.table.offsetHeight-n.regularHeaderRow.offsetHeight?(n.stickeyHeaderRow.style.display="table-row",n.regularHeaderRow.style.visibility="hidden"):(n.stickeyHeaderRow.style.display="none",n.regularHeaderRow.style.visibility="visible")},this.table=e;var e=this.table.getElementsByTagName("thead");0<e.length&&2==(e=e[0].getElementsByTagName("tr")).length&&(this.regularHeaderRow=e[0],this.stickeyHeaderRow=e[1],window.addEventListener("scroll",this.changeHeaderPosition,!1),window.addEventListener("resize",this.changeHeaderPosition,!1),this.changeHeaderPosition())}Object.defineProperty(n,"__esModule",{value:!0}),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"getPosition",value:function(e){for(var t=0,n=0;e;)t+=e.offsetLeft+e.clientLeft,n+=e.offsetTop+e.clientTop,e=e.offsetParent;return{x:t,y:n}}}]),n.default=a},{}],313:[function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e){var i=this;if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.initialized=!1,this.shareButtonClickHandler=function(e){i.initialized||(i.initialized=!0,i.shareEl=i.triggerEl.nextElementSibling,i.backdropEl=i.shareEl.querySelector(".js-share-backdrop"),i.shareLinkEls=i.shareEl.querySelectorAll(".js-share-link"),i.copyButtonEl=i.shareEl.querySelector(".js-share-copy"),i.linkEl=i.shareEl.querySelector(".js-share-url"),i.copyButtonEl&&!document.execCommand("copy")&&(i.copyButtonEl.parentNode.removeChild(i.copyButtonEl),i.copyButtonEl=null),document.body.appendChild(i.shareEl)),i.shareEl.classList.contains("is-active")?i.closeOverlay():i.openOverlay()},this.backdropClickHandler=function(e){i.closeOverlay()},this.shareLinkClickHandler=function(e){e.preventDefault(),i.openPopup(e.target.href)},this.copyButtonClickHandler=function(e){if(i.linkEl){var t=document.createRange(),n=(t.selectNodeContents(i.linkEl),window.getSelection());n.removeAllRanges(),n.addRange(t);try{document.execCommand("copy"),i.linkEl.blur(),n.removeAllRanges(),i.copyButtonEl.classList.add("tooltipped")}catch(e){}}},this.copyButtonMouseLeaveHandler=function(e){i.copyButtonEl.classList.remove("tooltipped")},e&&(this.triggerEl=e,this.triggerEl.addEventListener("click",this.shareButtonClickHandler,!1))}Object.defineProperty(n,"__esModule",{value:!0}),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"openOverlay",value:function(){var t=this;document.body.classList.add("mdc-drawer-scroll-lock"),this.shareEl.classList.add("is-active"),this.backdropEl.addEventListener("click",this.backdropClickHandler,!1),Array.from(this.shareLinkEls).forEach(function(e){return e.addEventListener("click",t.shareLinkClickHandler,!1)}),this.copyButtonEl&&(this.copyButtonEl.addEventListener("click",this.copyButtonClickHandler,!1),this.copyButtonEl.addEventListener("mouseleave",this.copyButtonMouseLeaveHandler,!1))}},{key:"closeOverlay",value:function(){var t=this;document.body.classList.remove("mdc-drawer-scroll-lock"),this.shareEl.classList.remove("is-active"),this.backdropEl.removeEventListener("click",this.backdropClickHandler,!1),Array.from(this.shareLinkEls).forEach(function(e){return e.removeEventListener("click",t.shareLinkClickHandler,!1)}),this.copyButtonEl&&(this.copyButtonEl.removeEventListener("click",this.copyButtonClickHandler,!1),this.copyButtonEl.removeEventListener("mouseleave",this.copyButtonMouseLeaveHandler,!1))}},{key:"openPopup",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:500,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:300,i=window.screen.width/2-t/2,a=window.screen.height/2-n/2;window.open(e,"","menubar=no, toolbar=no, resizable=yes, scrollbars=yes, width="+t+", height="+n+", top="+a+"', left="+i)}}]),n.default=a},{}],307:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var r=s(e("mithril")),o=s(e("./icon"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.default=function e(t){l(this,e),r.default.mount(t,{view:function(){return(0,r.default)(u,JSON.parse(t.getAttribute("attrs")))}})},i(c,[{key:"oninit",value:function(e){var t,n,e=e.attrs;this.stateHidden=!0,this.showIcon="#fade_show",this.hideIcon="#fade_hide",this.iconSize=" button-icon",this.gradientStyle="",this.buttonStyle="","Sparinvest"==e.DesignSchema&&(this.showIcon="#fade_show_sparinvest",this.hideIcon="#fade_hide_sparinvest"),"Totalkredit"==e.DesignSchema&&(this.showIcon="#circle-fade_show",this.hideIcon="#circle-fade_hide",this.iconSize=" button-icon--small",this.buttonStyle="stroke: #F68628; color: #F68628;"),e.BackgroundColor?(this.showIcon="#circle-fade_show",this.hideIcon="#circle-fade_hide",this.iconSize=" button-icon--small",n=e.BackgroundColor||"#f7f6f5",this.gradientStyle="background: linear-gradient(0, "+n+" 0%, #FFFFFF00);background: -ms-linear-gradient(bottom,"+n+" 0%, #FFFFFF00)",this.buttonStyle="stroke: "+e.Color+"; color: "+e.Color+";"):((t=document.createElement("div")).style.display="none",document.body.appendChild(t),t.className=e.BackgroundClass,n=window.getComputedStyle(t).getPropertyValue("background-color"),t.parentNode.removeChild(t),this.gradientStyle="background: linear-gradient(0, "+n+"0%, #FFFFFF00);background: -ms-linear-gradient(bottom,"+n+"0%, #FFFFFF00)")}},{key:"view",value:function(e){var t=this,e=e.attrs;return(0,r.default)("div",null,(0,r.default)("div",{class:"richtext rich-text-position "+(this.stateHidden&&"limitcharactersshown")},e.Body&&!e.SimpleBody&&r.default.trust(e.Body),e.SimpleBody&&!e.Body&&(0,r.default)("p",{class:"mdc-typography--subtitle preserve-linebreaks"},e.SimpleBody),this.stateHidden&&(0,r.default)("div",{class:"showmore",style:this.gradientStyle})),(0,r.default)("button",{style:this.buttonStyle,class:"center"===e.Alignment&&"center",onclick:function(){return t.stateHidden=!t.stateHidden}},this.stateHidden&&(0,r.default)(o.default,{type:this.showIcon,size:this.iconSize}),!this.stateHidden&&(0,r.default)(o.default,{type:this.hideIcon,size:this.iconSize})))}}]);var u=c;function c(){l(this,c)}},{"./icon":246,mithril:410}],306:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.default=function e(t){o(this,e),r.default.mount(t,{view:function(){return(0,r.default)(s,JSON.parse(t.getAttribute("attrs")))}})},i(l,[{key:"oninit",value:function(e){e.attrs;this.stateHidden=!0}},{key:"view",value:function(e){var t=this,e=e.attrs;return(0,r.default)("div",{class:"richtext__excerpt"},(0,r.default)("div",{class:"richtext rich-text-position",style:this.stateHidden?"":"display: none;"},(0,r.default)("p",null,r.default.trust(e.BodyExcerpt))),(0,r.default)("div",{class:"richtext rich-text-position",style:this.stateHidden?"display: none;":""},e.Body&&r.default.trust(e.Body)),(0,r.default)("div",{class:"mdc-button mdc-button--compact mdc-card__action seo-block__read-more",onclick:function(){return t.stateHidden=!t.stateHidden}},this.stateHidden?e.ReadMore:e.ReadLess))}}]);var s=l;function l(){o(this,l)}},{mithril:410}],299:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=e("mithril"),l=(r=r)&&r.__esModule?r:{default:r},u=e("./components/PerformanceGraph"),c=e("./components/ScenarioTable.mithrill"),d=e("./components/SelectorBar.mithrill"),f=e("./components/TopInfoList.mithril"),h=e("./store/ReturnReportStore");function p(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.default=function e(t){o(this,e);var n=JSON.parse(t.getAttribute("attrs"));
1l.default.mount(t,{view:function(){return(0,l.default)(m,n)}}),console.log("ReturnReport mounted with attrs:",n)},i(g,[{key:"oninit",value:function(e){var t,n,i;this.data=e.attrs.data,this.theme=e.attrs.theme,this.isSicavFund=e.attrs.isSicavFund,this.benchmarkDisclaimerText=e.attrs.benchmarkDisclaimerText,this.data&&(n=e=void 0,(t=this.data.performanceScenarios)&&t.years?0<(i=Object.keys(t.years)).length?(n=Math.max.apply(Math,p(i.map(function(e){return parseInt(e,10)}))),t.years[n]?e=Object.keys(t.years[n].months||{}):console.log("No data available for the latest year:",n)):console.log("No years data available"):console.log("Performance scenarios data is not structured as expected"),h.store.mutations.setCurrentYear(n),e)&&0<e.length&&h.store.mutations.setCurrentMonth(e[e.length-1])}},{key:"view",value:function(){var e,t,n,i,a,r,o;return this.data?(e=(n=this.data).generalData,t=n.historicalScenarios,a=n.performanceScenarios,n=n.associationBranchTheme,i=a.topBarData,r=h.store.actions.getCurrentYear(),o=h.store.actions.getCurrentMonth(),i=i[r].basicList,a=[{ScenarioType:e.minimumScenarioTypeLabel,scenarioContentTitle:e.minimumScenarioContentTitle,scenarioContentSubTitle:e.minimumScenarioContentSubTitle}].concat(p(a.years[r].months[o].scenarios)),r=e.scenarioDescription&&e.scenarioDescription.replace("{year}",a[1].RecommendedHoldingPeriod),o=s({},e,{scenarioDescription:r}),(0,l.default)("div",{class:"rr-return-report-content"},(0,l.default)(d.SelectorBar,{labelsAndOptions:e,theme:this.theme,associationBranchTheme:n}),(0,l.default)(f.TopInfoList,{basicList:i,associationBranchTheme:n}),(0,l.default)(u.PerformanceGraph,{labels:o,graphdata:t,associationBranchTheme:n,benchmarkDisclaimerText:this.benchmarkDisclaimerText}),(0,l.default)(c.ScenarioTable,{generalData:e,performanceScenarios:a,theme:this.theme,associationBranchTheme:n}),this.isSicavFund&&e.sicavDisclosure&&(0,l.default)("p",{class:"rr-scenario-table__description",style:"color:"+n.WhiteBackgroundTextColor},l.default.trust(e.sicavDisclosure)))):(0,l.default)("h1",{class:"intro"},"No available data.")}}]);var m=g;function g(){o(this,g)}},{"./components/PerformanceGraph":300,"./components/ScenarioTable.mithrill":302,"./components/SelectorBar.mithrill":303,"./components/TopInfoList.mithril":304,"./store/ReturnReportStore":305,mithril:410}],304:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TopInfoList=void 0;var e=e("mithril"),i=(e=e)&&e.__esModule?e:{default:e};n.TopInfoList=function(){return{view:function(e){var t=e.attrs.basicList[0],n=t.recommendedTime,t=t.investmentExample,e=e.attrs.associationBranchTheme;return(0,i.default)("ul",{className:"rr-top-info-list",style:"color:"+e.WhiteBackgroundTextColor},(0,i.default)("li",{className:"rr-top-info-list__list-item",id:n.id},(0,i.default)("h4",{className:"rr-top-info-list__list-item-content"},(0,i.default)("span",{className:"rr-top-info-list__list-item-content-title"},n.title)),(0,i.default)("h5",{className:"rr-top-info-list__list-item-content"},(0,i.default)("span",{className:"rr-top-info-list__list-item-content-value rr-top-info-list__list-item-content-value--lowercase"},n.value+" "+n.typeIndicator))),(0,i.default)("li",{className:"rr-top-info-list__list-item",id:t.id},(0,i.default)("h4",{className:"rr-top-info-list__list-item-content"},(0,i.default)("span",{className:"rr-top-info-list__list-item-content-title"},t.title)),(0,i.default)("h5",{className:"rr-top-info-list__list-item-content"},(0,i.default)("span",{className:"rr-top-info-list__list-item-content-value"},parseInt(t.value).toLocaleString("da-DA")+" "+t.typeIndicator.toUpperCase()))))}}}},{mithril:410}],303:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SelectorBar=void 0;var i=e("mithril"),l=(i=i)&&i.__esModule?i:{default:i},u=e("../store/ReturnReportStore");n.SelectorBar=function(r){return{view:function(){function t(e,t){"month"==t?u.store.mutations.setCurrentMonth(e):"year"==t&&(t=n[e].find(function(e){return 1==e.hasData}),u.store.mutations.setCurrentYear(e),u.store.mutations.setCurrentMonth(t.value))}var e=r.attrs.theme,n=r.attrs.labelsAndOptions.selectors,i=r.attrs.associationBranchTheme,o=u.store.actions.getCurrentMonth(),s=u.store.actions.getCurrentYear(),a=n[s];return(0,l.default)("div",{className:"rr-selector-bar rr-selector-bar"+e,style:"background-color:"+i.CVIBackgroun
1dColor},(0,l.default)("div",{className:"rr-selector-bar__select-wrapper rr-selector-bar__select-wrapper"+e,style:"color:"+i.CVIBackgroundTextColor},(0,l.default)("label",{for:"year",className:"rr-selector-bar__select-label"},r.attrs.labelsAndOptions.chooseYearLabel),(0,l.default)("select",{id:"year",className:"rr-selector-bar__select",onchange:function(e){t(e.target.selectedOptions[0].getAttribute("data-display-value"),"year")}},Object.keys(n).map(function(e){return(0,l.default)("option",{value:e,"data-display-value":e,onchange:function(){t(e,"year")},className:"rr-selector-bar__select-option"},e)}))),(0,l.default)("div",{className:"rr-selector-bar__select-wrapper rr-selector-bar__select-wrapper"+e,style:"color:"+i.CVIBackgroundTextColor},(0,l.default)("label",{for:"month",className:"rr-selector-bar__select-label"},r.attrs.labelsAndOptions.chooseMonthLabel),(0,l.default)("select",{id:"month",className:"rr-selector-bar__select",onchange:function(e){t(e.target.selectedOptions[0].getAttribute("data-display-value"),"month")}},a.map(function(e){return(0,l.default)("option",{disabled:!e.hasData,value:e.value,"data-display-value":e.dis
1playValue,onchange:function(){t(e.displayValue,e.id)},className:"rr-selector-bar__select-option"+(e.hasData?"":" rr-selector-bar__select-option--disabled")},e.value)}))),function(){var e=document.getElementById("year");if(e)for(var t=e.options,n=0;n<t.length;n++)if(t[n].getAttribute("data-display-value")===String(s)){e.selectedIndex=n;break}var i=document.getElementById("month");if(i)for(var a=i.options,r=0;r<a.length;r++)if(a[r].value===o){i.selectedIndex=r;break}}())}}}},{"../store/ReturnReportStore":305,mithril:410}],305:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.store=void 0;var e=e("mithril");(e=e)&&e.__esModule;var i=n.store={state:{currentYear:"2023",currentMonth:"january"},mutations:{setCurrentYear:function(e){i.state.currentYear=e},setCurrentMonth:function(e){i.state.currentMonth=e}},actions:{getCurrentYear:function(){return i.state.currentYear},getCurrentMonth:function(){return i.state.currentMonth}}}},{mithril:410}],302:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ScenarioTable=void 0;var i=e("mithril"),v=(i=i)&&i.__esModule?i:{default:i},_=e("./ScenarioListMobile.mithrill");n.ScenarioTable=function(e){var s=window.innerWidth<768,e=(e.attrs.theme,e.attrs.generalData),l=e.scenarioDisclaimer,u=e.scenarioTypeColumnHeader,c=e.scenarioFirstC
1olumnHeader,d=e.scenarioSecondColumnHeader,f=e.contentTitle,h=e.contentSubTitle,p=e.scenarioDateRangeText,m=e.scenarioDisclaimerNoBenchmark,g=e.locale;return{view:function(e){var t=e.attrs.performanceScenarios,i=e.attrs.associationBranchTheme,n="1C"!==t[1].PriipsCategory,a="1C"===t[1].PriipsCategory,r=c.replace("{year}","1"),o=d.replace("{year}",t[1].RecommendedHoldingPeriod);return(0,v.default)("div",{className:"rr-scenario-table"},s?(0,v.default)(_.ScenarioListMobile,{generalData:e.attrs.generalData,performanceScenarios:t,hasFirstYearExitData:n,scenarioFirstColumnHeaderReplaced:r,scenarioSecondColumnHeaderReplaced:o}):(0,v.default)("div",{className:"rr-scenario-table__content"},(0,v.default)("table",{class:"rr-scenario-table__table"},(0,v.default)("thead",{class:"rr-scenario-table__table-head rr-scenario-table__table-head",style:"background-color:"+i.CVIBackgroundColor},(0,v.default)("tr",{class:"rr-scenario-table__table-head-row"},(0,v.default)("th",{colspan:"2",class:"rr-scenario-table__table-cell rr-scenario-table__table-cell--header rr-scenario-table__table-cell--header rr-scenario-table__table-cell--header-first",style:"color:"+i.CVIBackgroundTextColor},u),(0,v.default)("th",{class:"rr-scenario-table__table-cell rr-scenario-table__table-cell--header rr-scenario-table__table-cell--header",style:"color:"+i.CVIBackgroundTextColor},n?r:""),(0,v.default)("th",{class:"rr-scenario-table__table-cell rr-scenario-table__table-cell--header rr-scenario-table__table-cell--header",style:"color:"+i.CVIBackgroundTextColor},o))),(0,v.default)("tbody",{class:"rr-scenario-table__table-body",style:"color:"+i.WhiteBackgroundTextColor},t.map(function(e){return(0,v.default)("tr",{class:"rr-scenario-table__table-body-row"},(0,v.default)("td",{class:"rr-scenario-table__table-cell"},(0,v.default)("span",{class:"rr-scenario-table__table-cell-span rr-scenario-table__table-cell-span--bold"},e.ScenarioType)),(0,v.default)("td",{class:"rr-scenario-table__table-cell"},(0,v.default)("span",{class:"rr-scenario-table__table-cell-span"},e.scenarioContentTitle||f,(0,v.default)("br",null),e.scenarioContentSubTitle||h)),(0,v.default)("td",{class:"rr-scenario-table__table-cell rr-scenario-table__table-cell--center-content"},(0,v.default)("span",{class:"rr-scenario-table__table-cell-span"},n&&e.Rhp1Base?parseInt(e.Rhp1Base).toLocaleString("da-DA")+" "+e.Currency:"-"),(0,v.default)("br",null),(0,v.default)("span",{class:"rr-scenario-table__table-cell-span"},n&&e.Rhp1?(100*e.Rhp1).toFixed(2)+"%":"")),(0,v.default)("td",{class:"rr-scenario-table__table-cell rr-scenario-table__table-cell--center-content"},(0,v.default)("span",{class:"rr-scenario-table__table-cell-span"},e.RhpBase?parseInt(e.RhpBase).toLocaleString("da-DA")+" "+e.Currency:"-"),(0,v.default)("br",null),(0,v.default)("span",{class:"rr-scenario-table__table-cell-span"},e.RhpBase?(100*e.RhpScen).toFixed(2)+"%":"")))}))),(0,v.default)("p",{className:"rr-scenario-table__description",style:"color:"+i.WhiteBackgroundTextColor},l),m&&(a||t.every(function(e){return!e.ScenarioStartDateRhp||!e.ScenarioEndDateRhp}))&&(0,v.default)("p",{className:"rr-scenario-table__description",style:"color:"+i.WhiteBackgroundTextColor},m),!a&&p&&t.map(function(e){var t,n;return e.ScenarioStartDateRhp&&e.ScenarioEndDateRhp?(n=e.ScenarioType,t=function(e){return new Date(e).toLocaleDateString(g,{month:"long",year:"numeric"})},n=p.replace("{scenario}",n).replace("{startDate}",t(e.ScenarioStartDateRhp)).replace("{endDate}",t(e.ScenarioEndDateRhp)),(0,v.default)("p",{className:"rr-scenario-table__description rr-scenario-table__description--compact",style:"color:"+i.WhiteBackgroundTextColor},n)):null})))}}}},{"./ScenarioListMobile.mithrill":301,mithril:410}],301:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ScenarioListMobile=void 0;var e=e("mithril"),l=(e=e)&&e.__esModule?e:{default:e};n.ScenarioListMobile=function(e){var e=e.attrs.generalData,r=e.scenarioDisclaimer,o=e.scenarioTypeTitle,s=(e.exitAfterOneYearTitle,e.contentTitle);e.contentSubTitle;return{view:function(e){var t=e.attrs.performanceScenarios,n="1C"!==t[0].PriipsCategory,i=e.attrs.scenarioFirstC
1olumnHeaderReplaced,a=e.attrs.scenarioSecondColumnHeaderReplaced;return(0,l.default)("div",{className:"rr-scenario-list-mobile"},(0,l.default)("h4",{className:"rr-scenario-list-mobile__title"},o),t.map(function(e){return(0,l.default)("ul",{className:"rr-scenario-list-mobile__list"},(0,l.default)("li",{className:"rr-scenario-list-mobile__list-item--list-title"},(0,l.default)("h5",{class:"rr-scenario-list-mobile__list-title"},s)),(0,l.default)("li",{className:"rr-scenario-list-mobile__list-item"},(0,l.default)("h6",{class:"rr-scenario-list-mobile__list-item-title"},e.ScenarioType),(0,l.default)("div",{className:"rr-scenario-list-mobile__list-item-span-wrapper"},(0,l.default)("div",{className:"rr-scenario-list-mobile__list-item-span-wrapper-inner"},(0,l.default)("span",{class:"rr-scenario-list-mobile__list-item-span rr-scenario-list-mobile__list-item-span--uppercase"},n?i:""),(0,l.default)("span",{class:"rr-scenario-list-mobile__list-item-span"},n?parseInt(e.Rhp1Base).toLocaleString("da-DA")+" "+e.Currency:"")),(0,l.default)("div",{className:"rr-scenario-list-mobile__list-item-span-wrapper-inner"},(0,l.default)("span",{class:"rr-scenario-list-mobile__list-item-span rr-scenario-list-mobile__list-item-span--uppercase"},a),(0,l.default)("span",{class:"rr-scenario-list-mobile__list-item-span"},parseInt(e.RhpBase).toLocaleString("da-DA")+" "+e.Currency))),(0,l.default)("h6",{class:"rr-scenario-list-mobile__list-item-title"},e.ScenarioType),(0,l.default)("div",{className:"rr-scenario-list-mobile__list-item-span-wrapper"},(0,l.default)("div",{className:"rr-scenario-list-mobile__list-item-span-wrapper-inner"},(0,l.default)("span",{class:"rr-scenario-list-mobile__list-item-span rr-scenario-list-mobile__list-item-span--uppercase"},n?i:""),(0,l.default)("span",{class:"rr-scenario-list-mobile__list-item-span"},n?(100*e.Rhp1).toFixed(2)+"%":"")),(0,l.default)("div",{className:"rr-scenario-list-mobile__list-item-span-wrapper-inner"},(0,l.default)("span",{class:"rr-scenario-list-mobile__list-item-span rr-scenario-list-mobile__list-item-span--uppercase"},a),(0,l.default)("span",{class:"rr-scenario-list-mobile__list-item-span"},(100*e.RhpScen).toFixed(2)+"%")))))}),(0,l.default)("p",{className:"rr-scenario-list-mobile__description"},r))}}}},{mithril:410}],300:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PerformanceGraph=void 0;var i=a(e("mithril")),l=a(e("highcharts")),u=a(e("escape-html"));function a(e){return e&&e.__esModule?e:{default:e}}e("../../../highcharts/highchartsTheme");n.PerformanceGraph=function(n){return{oninit:function(e){e.attrs;this.graphdata=n.attrs.graphdata,this.labels=n.attrs.labels,this.associationBranchTheme=n.attrs.associationBranchTheme},oncreate:function(){this.drawHighChart(this.graphdata,this.labels,this.associationBranchTheme)},drawHighChart:function(e,t,n){if(e&&0!=e.scenarioData.length){for(var i=e.scenarioData.slice(),a=5<=i.length?10:5;i.length<a;)i.unshift({Id:i[0].Id-1,Year:i[0].Year-1,StrategyChangeYear:i[0].StrategyChangeYear,StrategyChangeFriendlyDate:i[0].StrategyChangeFriendlyDate});var e=i.map(function(e){return e.Year}).slice(-a),r=i[0].StrategyChangeYear,r=e.indexOf(r),o=0<=r,s={color:n.CVIBackgroundColor,name:"Benchmark",data:i.map(function(e){return 100*e.Benchmarkreturn1Y}).slice(-a)},n={color:n.CVIContrastColor,name:t.fundName?t.fundName.toString():"Produkt",data:i.map(function(e){return 100*e.ProductReturn1Y}).slice(-a)},t={name:"Strategiændring "+i[0].StrategyChangeFriendlyDate,dashStyle:"longdash",color:"#FFCD00"},n=[n],s=(s.data&&s.data.some(function(e){return null!==e&&!Number.isNaN(e)&&0!==e})&&n.push(s),o&&n.push(t),document.body.classList.contains("Sparinvest")?["#46525c","#22a596"]:["#0f1e82","#4192dc","#07094a","#875ba3","#6972b1"]);l.default.chart("performance-graph",{chart:{type:"column"},title:{text:null},subtitle:{text:null},xAxis:{categories:e,plotLines:[{dashStyle:"longdash",color:"#FFCD00",width:o?2:0,value:o?r-.5:""}]},yAxis:{title:{text:null},labels:{formatter:function(){return this.value+" %"}}},legend:{align:"left",enabled:!0,labelFormatter:function(){return this.name}},tooltip:{enabled:!0,shared:!0,useHTML:!0,backgroundColor:"white",style:{borderRadius:"10px"},valueDecimals:2,formatter:function(){var t="<b>"+this.points[0].key+"</b><br/>";
1return this.points.forEach(function(e){t+='<span style="color:'+e.color+';margin-right:2px">â</span> <span style="color: #000">'+(0,u.default)(e.series.name)+": <b>"+l.default.numberFormat(e.y,1)+" %</b><br>"}),t}},series:n,colors:s})}},view:function(){var e=n.attrs.labels,t=n.attrs.associationBranchTheme;return(0,i.default)("section",{className:"rr-performance-graph",style:"color:"+t.WhiteBackgroundTextColor},(0,i.default)("div",{className:"rr-performance-graph__text-wrapper"},(0,i.default)("h4",{className:"rr-performance-graph__text-title"},e.graphTitle," "),(0,i.default)("p",{className:"rr-performance-graph__text-content"},(0,i.default)("span",{className:"rr-performance-graph__text-content-paragraph"},i.default.trust(e.graphDescription)))),(0,i.default)("div",{className:"rr-performance-graph__graph-wrapper"},null==this.graphdata||0==this.graphdata.scenarioData.length?(0,i.default)("div",null,(0,i.default)("p",null,this.labels.graphErrorMessage)):(0,i.default)("figure",{className:"highcharts-figure"},(0,i.default)("div",{id:"performance-graph"})),e.inceptionDateGraphText&&(0,i.default)("p",null,e.inceptionDateGraphText),n.attrs.benchmarkDisclaimerText&&(0,i.default)("p",{className:"nyk-highcharts-text"},n.attrs.benchmarkDisclaimerText),(0,i.default)("p",{class:"rr-performance-graph__graph-description",style:"color:"+t.WhiteBackgroundTextColor},e.graphDisclaimer)),(0,i.default)("div",{className:"rr-performance-graph__text-wrapper"},(0,i.default)("h4",{className:"rr-performance-graph__text-title"}," ",e.scenarioTitle," "),(0,i.default)("p",{className:"rr-performance-graph__text-content"},(0,i.default)("span",{className:"rr-performance-graph__text-content-paragraph"},e.scenarioDescription))))}}}},{"../../../highcharts/highchartsTheme":370,"escape-html":406,highcharts:408,mithril:410}],295:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function e(t){var n=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.calculateRange=function(){n.getFixedStart(),n.readStart=0,n.readEnd=n.article.getBoundingClientRect().bottom+(window.pageYOffset-document.documentElement.clientHeight),n.readRange=n.readEnd-n.readStart},this.checkScrollPos=function(e){n.scroll=n.getScrollPercent(),n.element.style.width=n.scroll+"%";var t=window.pageYOffset;t!==n.lastPageOffset&&(n.lastPageOffset=t,n.ticking||(n.ticking=!0,window.requestAnimationFrame(function(){n.ticking=!1,n.lastPageOffset>n.startPosition?n.element.classList.add("fixed-element"):n.element.classList.remove("fixed-element")})))},this.getScrollPercent=function(){var e=((window.pageYOffset||document.documentElement.scrollTop)-n.readStart)/n.readRange;return 1<e?100:e<0?0:100*e},this.getFixedStart=function(){n.header=document.getElementsByTagName("header"),n.iNav=document.querySelector(".insights-navigation"),n.iNav?n.startPosition=n.iNav.clientHeight+n.header[0].clientHeight:n.startPosition=n.header[0].clientHeight},t&&(this.element=t,this.startPosition=0,t=document.getElementsByTagName("article"))&&0<t.length&&(this.article=t[0],this.getFixedStart(),this.calculateRange(),window.addEventListener("scroll",this.checkScrollPos,!1),window.addEventListener("resize",this.calculateRange,!1))}},{}],292:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=e("mithril"),o=(r=r)&&r.__esModule?r:{default:r},s=e("./gtmDataLayerService");i(l,[{key:"submitRating",value:function(e){e.preventDefault();var t=0;this.popup.querySelectorAll(".popup-rating__stars__item").forEach(function(e){e.checked&&(t=e.value)}),o.default.request({method:"POST",url:this.popup.action,data:{url:location.href,rating:t}}),(0,s.registerGtmDataLayer)({event:"track-event",eventCategory:"fortæl os din mening",eventAction:"submit",eventLabel:window.location.href,eventValue:t,eventNoninteraction:!0}),this.closePopup()}},{key:"closePopupClick",value:function(){this.closePopup(),(0,s.registerGtmDataLayer)({event:"track-event",eventCategory:"fortæl os din mening",eventAction:"closed",eventLabel:window.location.href,eventValue:"0",eventNoninteraction:!0})}},{key:"openPopup",value:function(){var t=this,e=this.popup.querySelector(".js-popup-close");e&&e.addEventListener("click",function(e){return t.closePopupClick()}),this.popup.addEventListener("change",function(e){return t.ratingChosen()}),this.popup.addEventListener("submit",function(e){return t.submitRating(e)}),localStorage.rateMeShown=Date.now(),this.popup.classList.add("popup-rating--open"),(0,s.registerGtmDataLayer)({event:"track-event",eventCategory:"fortæl os din mening",eventAction:"shown",eventLabel:window.location.href,eventValue:"0",eventNoninteraction:!0})}},{key:"ratingChosen",value:function(){this.popup.querySelector(".js-popup-submit").disabled=!1}},{key:"closePopup",value:function(){var e=this;this.popup.classList.add("popup-rating--close"),setTimeout(function(){e.popup.classList.remove("popup-rating--open")},1e3)}}]);r=l;function l(e){var t,n=this;if(!(this instanceof l))throw new TypeError("Cannot call a class as a function");this.popup=e,localStorage.rateMeShown&&Number(localStorage.rateMeShown)>Date.now()-e.getAttribute("data-hide-for-user-millis")||(sessionStorage.showRateMe||(sessionStorage.showRateMe=""+(Math.random()<Number(e.getAttribute("data-show-to-fraction")))),"false"!=sessionStorage.showRateMe&&(sessionStorage.rateMeSessionStart||(sessionStorage.rateMeSessionStart=Date.now()),t=Date.now()-Number(sessionStorage.rateMeSessionStart),e=Number(e.getAttribute("data-se
1ssion-delay-millis"))-t,setTimeout(function(){return n.openPopup()},e)))}n.default=r},{"./gtmDataLayerService":245,mithril:410}],285:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=u(e("mithril")),a=u(e("./store/price-list-store")),r=e("./price-list-data"),o=e("./price-list-table-container.mithril"),s=e("./price-list-filter-search.mithril"),l=e("../helper/PropHelper");function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var d={name:"npa-price-list",props:(c(e={colorTheme:{default:r.defaultColorTheme},tableheader:{default:r.defaultTableHeader},labels:{default:r.defaultLabels},rowstoshow:{type:Number,default:6},filter:{default:null},endpoint:{},id:{}},"filter",{}),c(e,"pageref",{}),e),oninit:function(e){(0,l.InitProps)(this),a.default.mutations.SET_ROWS_TO_SHOW(this.props.rowstoshow),a.default.mutations.SET_LABELS(this.props.labels),a.default.mutations.SET_TABLE_HEADER(this.props.tableheader),a.default.mutations.SET_DATA_ENDPOINT(this.props.endpoint),a.default.mutations.SET_ID(this.props.id),a.default.mutations.SET_FILTER_DATA(this.props.filter),a.default.mutations.SET_PAGE_REF(this.props.pageref),a.default.mutations.SET_COLOR_THEME(this.props.colorTheme),a.default.actions.fetchTableData(!1)},view:function(){var e=a.default.state.table_data,t=a.default.state.filter_data;return(0,i.default)("article",null,(0,i.default)("div",null,(0,i.default)(s.PriceListFilterAndSearch,{filterData:t}),(0,i.default)(o.PriceListTableContainer,{tableData:e})))}};n.default=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");t&&i.default.mount(t,{view:function(){return(0,i.default)(d)}})}},{"../helper/PropHelper":283,"./price-list-data":286,"./price-list-filter-search.mithril":287,"./price-list-table-container.mithril":288,"./store/price-list-store":291,mithril:410}],288:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PriceListTableContainer=void 0;var h=i(e("mithril")),p=i(e("./store/price-list-store")),m=e("../../tables/generic-table.mithril"),g=e("../../../components/cards/generic-fund-card.mithril");function i(e){return e&&e.__esModule?e:{default:e}}n.PriceListTableContainer=function(){var f=window.innerWidth<768;return{onupdate:function(){document.querySelectorAll(".npa-price-list .nyk-generic-table__favorite-button").forEach(function(e){e.setAttribute("style","color : "+p.default.state.color_theme_data.CVIContrastColor+";")})},oncreate:function(){window.addEventListener("resize",function(){f=window.innerWidth<768,setTimeout(function(){h.default.redraw()},100)})},view:function(e){function t(e,t){return p.default.actions.setFavorites(t,e)}var n,e=e.attrs,i=p.default.state.labels,a=p.default.state.totalCount,r=Object.values(e.tableData.tableRows.map(function(e){return e.favorite})).reduce(function(e,t){return e+t},0),o=1<p.default.state.totalCount?i.departmentPluralLabel:i.departmentSingularLabel,s=1<r?i.favoritesPluralLabel:i.favoriteSingularLabel,l=p.default.actions.modifyTableDataForMobile(e.tableData.tableRows),u=e.tableData.tableHeaders,c=["innerValue","emission","date","redemption","centralInvesting","sfdr","fact"],d={};for(n of u)c.includes(n.name)&&(d[n.name+"Name"]=n.value);return(0,h.default)("section",{class:"npa-association-overview__table-wrapper"},(0,h.default)("span",{class:"npa-association-overview__total-amount-index-funds"},a," ",o)," ",(0,h.default)("span",{class:"npa-association-overview__spacer"},"|")," ",r," ",s,f?l.map(function(e){return(0,h.default)(g.GenericFundCard,{data:e,tableHeaders:d,isPricelist:!0,setFavorite:t,labels:p.default.state.labels})}):(0,h.default)(m.GenericTable,{tableData:e.tableData,setFavorite:t,sortColumnCallback:function(e){return p.default.actions.sortColumn(e)}}),(0,h.default)("div",{class:"npa-association-overview__more-table-entries-container"},(0,h.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--raised",style:"background-color: "+p.default.state.color_theme_data.CVIBackgroun
1dColor+"; color: "+p.default.state.color_theme_data.CVIBackgroundTextColor,onclick:function(){p.default.actions.loadMore()}},i.seeMoreLabel)))}}}},{"../../../components/cards/generic-fund-card.mithril":215,"../../tables/generic-table.mithril":336,"./store/price-list-store":291,mithril:410}],287:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PriceListFilterAndSearch=void 0;var f=i(e("mithril")),h=e("../../dropdown/dropdown-with-custom-input.mithril.js"),p=i(e("./store/price-list-store")),m=i(e("../../../../javascript/components/debouncer")),g=e("../../modals/filter-modal.mithril");function i(e){return e&&e.__esModule?e:{default:e}}n.PriceListFilterAndSearch=function(e){function i(e,t,n,i){"change"!==i.type&&"click"!==i.type&&"Space"!==i.code||(p.default.mutations.UPDATE_FILTER(e,t,n),p.default.actions.performSearch())}function t(e){"change"!==e.type&&"click"!==e.type&&"Space"!==e.code||(p.default.mutations.REMOVE_ALL_FILTER(),p.default.actions.performSearch())}function a(){return l.flatMap(function(t){var e=t.content.filter(function(e){return e.isChecked});return e.map(function(e){return e.type=t.id}),e})}function r(e){s=e,e=document.querySelector("body"),s?e.classList.add("stop-scroll"):e.classList.remove("stop-scroll")}var e=e.attrs,o=window.innerWidth<768,s=!1,l=e.filterData,u=new m.default,c=p.default.getters.getAmountOfFiltersInUse(),d="";return{onupdate:function(){document.querySelectorAll(".npa-price-list .mdc-checkbox input").forEach(function(e){e.checked?e.nextElementSibling.setAttribute("style","background-color : "+p.default.state.color_theme_data.CVIContrastColor+"; border-color : "+p.default.state.color_theme_data.CVIContrastColor+";"):e.nextElementSibling.setAttribute("style","background-color : white; border-color : "+p.default.state.color_theme_data.CVIContrastColor+";")})},oncreate:function(){d=p.default.state.searchValue,window.addEventListener("resize",function(){o=window.innerWidth<768,setTimeout(function(){f.default.redraw()},100)})},view:function(){var e=p.default.state.labels,n=p.default.state.color_theme_data;return(0,f.default)("section",{class:"npa-association-overview__filter-wrapper"},(0,f.default)("div",{class:"npa-association-overview__search-input-container"},(0,f.default)("div",{class:"npa-association-overview__search-input-wrapper"},(0,f.default)("input",{class:"npa-association-overview__search-input",type:"text",value:d,oninput:function(e){return t=e.target.value,d=t,void u.update(function(){p.default.actions.setSearchValue(t)},250);var t},placeholder:e?e.searchPlaceholderLabel:""}))),o?(0,f.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--raised",onclick:function(){return r(!0)}},"Filter (",c,")"):(0,f.default)("div",null,(0,f.default)("div",{class:"npa-association-overview__filter-container"},l.map(function(e,t){return(0,f.default)(h.DropdownWithCustomInput,{data:e,key:t,type:"checkboxList",callback:i})})),(0,f.default)("div",{class:"npa-association-overview__filter-container"},a().length?(0,f.default)("button",{class:"npa-association-overview__filter-tag-button npa-association-overview__filter-tag-button--remove-filters",onclick:t,onkeypress:t},e?e.clearAllFiltersLabel:""):"",a().map(function(t){return(0,f.default)("span",{class:"npa-association-overview__filter-tag",style:"background-color : "+n.CVIContrastColor+"; color: "+n.CVIBackgroundTextColor},(0,f.default)("p",null,t.label),(0,f.default)("button",{class:"npa-association-overview__filter-tag-button",onclick:function(e){return i(t.id,!1,t.type,e)},onkeypress:function(e){return i(t.id,!1,t.type,e)}},(0,f.default)("svg",{viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,f.default)("circle",{cx:"14",cy:"14",r:"8",fill:"#07094A"}),(0,f.default)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.1196 11.0485L11.0485 18.1196L10.1646 17.2357L17.2357 10.1646L18.1196 11.0485Z",fill:"white"}),(0,f.default)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0485 10.1646L18.1196 17.2357L17.2357 18.1196L10.1646 11.0485L11.0485 10.1646Z",fill:"white"}))))}))),s?(0,f.default)(g.FilterModal,{toggleFilter:r,filterData:l,setCheckedValue:i,removeAllFilters:t}):"")}}}},{"../../../../javascript/components/debouncer":223,"../../dropdown/dropdown-with-custom-input.mithril.js":227,"../../modals/filter-modal.mithril":261,"./store/price-list-store":291,mithril:410}],291:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=a(e("./price-list-mutations")),e=a(e("./price-list-actions"));
1function a(e){return e&&e.__esModule?e:{default:e}}var r={state:{table_data:{tableRows:[],tableHeaders:[],totalCount:0},labels:{titleLabel:"",searchPlaceholderLabel:"",departmentPluralLabel:"",departmentSingularLabel:"",favoritesPluralLabel:"",favoriteSingularLabel:"",seeMoreLabel:"",clearAllFiltersLabel:""},filter_data:[],rowsToShow:"6",endpoint:"",totalCount:0,id:"id",sort:"",searchValue:"",rowsToSkip:0,color_theme_data:{}},getters:{getContentReference:function(){return r.state.pageRef},getAmountOfFiltersInUse:function(){return r.state.filter_data.flatMap(function(e){return e.content.filter(function(e){return e.isChecked})}).length}},mutations:i.default,actions:e.default};n.default=r},{"./price-list-actions":289,"./price-list-mutations":290}],290:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});i(e("mithril"));var s=i(e("./price-list-store"));function i(e){return e&&e.__esModule?e:{default:e}}n.default={SET_COLOR_THEME:function(e){s.default.state.color_theme_data=e},SET_ROWS_TO_SHOW:function(e){s.default.state.rowsToShow=e},SET_ROWS_TO_SKIP:function(e){s.default.state.rowsToSkip=e},SET_LABELS:function(t){Object.keys(s.default.state.labels).forEach(function(e){s.default.state.labels[e]=t[e]})},SET_TABLE_HEADER:function(e){s.default.state.table_data.tableHeaders=e},SET_DATA_ENDPOINT:function(e){s.default.state.endpoint=e},SET_TOTAL_COUNT:function(e){s.default.state.totalCount=e},SET_TABLE_ROWS:function(e){s.default.state.table_data.tableRows=e},APPEND_TABLE_ROWS:function(e){s.default.state.table_data.tableRows=s.default.state.table_data.tableRows.concat(e)},SET_ID:function(e){s.default.state.id=e},SET_SORT:function(e){s.default.state.sort=e},SET_FILTER_DATA:function(e){s.default.state.filter_data=e},SET_PAGE_REF:function(e){s.default.state.pageRef=e},UPDATE_FAVORITE:function(n,i){var a=s.default.state.table_data.tableRows;a.forEach(function(e,t){e.id===n&&(a[t].favorite=i)})},REMOVE_ALL_FILTER:function(){var i=s.default.state.filter_data;i.forEach(function(e,t){var n=i[t];n.content.forEach(function(e,t){n.content[t].isChecked=!1})})},UPDATE_FILTER:function(i,a,r){var o=s.default.state.filter_data;o.forEach(function(e,t){var n;e.id==r&&(n=o[t]).content.forEach(function(e,t){e.id==i&&(n.content[t].isChecked=a)})})},SET_SEARCH_VALUE:function(e){s.default.state.searchValue=e}}},{"./price-list-store":291,mithril:410}],289:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});s(e("mithril"));var i=s(e("./price-list-store")),a=(e("../price-list-data"),e("../../helper/FetchHelper")),r=e("../../helper/LocalStoreHelper"),o=e("../../helper/UrlHelper");function s(e){return e&&e.__esModule?e:{default:e}}n.default={fetchTableData:function(t){var e=(0,o.BuildUrl)(i.default.state.endpoint,(0,o.GetParameters)(!0,i.default.state,(0,r.GetLocalStorageName)(i.default.state.id)));(0,a.FetchData)(e).then(function(e){e.hasError||(i.default.mutations.SET_TOTAL_COUNT(e.responce.result.totalCount),t?i.default.mutations.APPEND_TABLE_ROWS(e.responce.result.data):i.default.mutations.SET_TABLE_ROWS(e.responce.result.data))})},setFavorites:function(e,t){i.default.mutations.UPDATE_FAVORITE(e,t),(0,r.UpdateLocalStorage)(i.default.state.id,e,t)},sortColumn:function(e){i.default.mutations.SET_SORT(e),this.performSearch()},setSearchValue:function(e){i.default.mutations.SET_SEARCH_VALUE(e),this.performSearch()},setRowsToSkip:function(e){i.default.mutations.SET_ROWS_TO_SKIP(e)},performSearch:function(){i.default.mutations.SET_ROWS_TO_SKIP(null),this.fetchTableData(!1)},loadMore:function(){var e=i.default.state;i.default.mutations.SET_ROWS_TO_SKIP(e.table_data.tableRows.length),this.fetchTableData(!0)},modifyTableDataForMobile:function(e){return e.map(function(e){return{id:e.id,favorite:e.favorite,name:e.name,associationName:e.associationName,innerValue:e.innerValue,emission:e.emission,redemption:e.redemption,date:e.date,centralInvesting:e.centralInvesting,fact:e.fact,esg:e.esg}})}}},{"../../helper/FetchHelper":281,"../../helper/LocalStoreHelper":282,"../../helper/UrlHelper":284,"../price-list-data":286,"./price-list-store":291,mithril:410}],286:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});
1n.defaultColorTheme={CVIBackgroundColor:"",CVIContrastColor:"",WhiteBackgroundTextColor:"",CVIBackgroundTextColor:""},n.defaultLabels={titleLabel:"title",searchPlaceholderLabel:"search",departmentPluralLabel:"afdeling",departmentSingularLabel:"afdelinger",favoritesPluralLabel:"favorit",favoriteSingularLabel:"favortitter",seeMoreLabel:"se mere"},n.defaultTableHeader=[{name:"favorite",value:"",hasSorting:!1},{name:"department",value:"MAfdeling",hasSorting:!0,description:"min afdeling"},{name:"innerValue",value:"MI.V.",hasSorting:!0,description:"indre værdi"},{name:"emission",value:"MEMISSION",hasSorting:!0,description:"dette er emission"},{name:"redemption",value:"MREDEMPTION",hasSorting:!0},{name:"centralInvasionInfomation",value:"MCentral inv. info.",hasSorting:!1},{name:"prospectus",value:"MProspekt",hasSorting:!1},{name:"fact",value:"MFaktaside",hasSorting:!1},{name:"esg",value:"MEsg",hasSorting:!1},{name:"date",value:"MDato",hasSorting:!0},{name:"centralInvesting",value:"MDato",hasSorting:!0}],n.defaultFilter=[{name:"Foreningstype",id:"indexFundType",icon:"<svg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M6.41674 13.4166H1.72266V0.583252H12.2227V6.99992' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M4.08301 4.08325H9.88892' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M4.08301 7H9.88892' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M4.08301 9.9165H6.41634' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M13.4167 10.5V13.4167H8.75V10.5L11.0833 8.75L13.4167 10.5Z' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M11.083 12.25V13.4167' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/></svg>",type:"checkboxList",content:[{id:"1",label:"Investerings foreninger",isChecked:!0},{id:"2",label:"Kapital foreninger",isChecked:!0},{id:"3",label:"Ãvrige foreninger",isChecked:!1}]},{name:"Test",id:"TestType",icon:"<svg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M6.41674 13.4166H1.72266V0.583252H12.2227V6.99992' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M4.08301 4.08325H9.88892' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M4.08301 7H9.88892' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M4.08301 9.9165H6.41634' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M13.4167 10.5V13.4167H8.75V10.5L11.0833 8.75L13.4167 10.5Z' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M11.083 12.25V13.4167' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/></svg>",type:"checkboxList",content:[{id:"4",label:"Investerings foreninger",isChecked:!0},{id:"5",label:"Kapital foreninger",isChecked:!1},{id:"6",label:"Ãvrige foreninger",isChecked:!1}]}],n.mockTableRows=[{id:12,favorite:!0,department:"Aktieallokering KL",innerValue:"153,05",emission:"153,05",redemption:"153,05",centralInvasionInfomation:{type:"link",name:"GÃ¥ til foreningens kursliste",url:"/somewhere"},prospectus:{type:"link",name:"GÃ¥ til foreningens kursliste",url:"/somewhere"},esg:{type:"link",name:"GÃ¥ til foreningens kursliste",url:"/somewhere"},date:"19-05-20"},{id:17,favorite:!1,department:"Aktieallokering Akk. KL",innerValue:"153,05",emission:"153,05",redemption:"153,05",centralInvasionInfomation:{type:"link",name:"GÃ¥ til foreningens kursliste",url:"/somewhere"},prospectus:{type:"link",name:"GÃ¥ til foreningens kursliste",url:"/somewhere"},esg:{type:"link",name:"GÃ¥ til foreningens kursliste",url:"/somewhere"},date:"19-05-20"},{id:19,favorite:!1,department:"Balanced Risk Allocation",innerValue:"153,05",emission:"153,05",redemption:"153,05",centralInvasionInfomation:{type:"link",name:"GÃ¥ til foreningens kursliste",url:"/somewhere"},prospectus:{type:"link",name:"GÃ¥ til foreningens kursliste",url:"/somewhere"},esg:{type:"link",name:"GÃ¥ til foreningens kursliste",url:"/somewhere"},date:"19-05-20"}]},{}],274:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=u(e("mithril")),a=e("./association-overview-table-container.mithril"),r=e("./association-overview-filter-search.mithril"),o=u(e("./store/association-overview-store")),s=u(e("../../../../beregnere-tk/javascript-tk-beregnere/components/spinner/ts-spinner")),l=e("../helper/PropHelper"),e=e("./association-overview-data");
1function u(e){return e&&e.__esModule?e:{default:e}}var c={name:"npa-association-overview",props:{labels:{default:e.defaultLabels},rowstoshow:{type:Number,default:6},pageref:{},tableheader:{default:e.defaultTableHeader},filter:{default:e.defaultFilter},endpoint:{}},oninit:function(e){(0,l.InitProps)(this),o.default.mutations.SET_LABELS(this.props.labels),o.default.mutations.SET_ROWS_TO_SHOW(this.props.rowstoshow),o.default.mutations.SET_PAGE_REF(this.props.pageref),o.default.mutations.SET_TABLE_DATA_HEADER(this.props.tableheader),o.default.mutations.SET_FILTER_DATA(this.props.filter),o.default.mutations.SET_DATA_ENDPOINT(this.props.endpoint),o.default.actions.updateParams(),o.default.actions.performSearch()},view:function(){var e=o.default.state.table_data,t=o.default.state.filter_data;return(0,i.default)("article",null,t||e?(0,i.default)("div",null,(0,i.default)(r.AssociationOverviewFilterAndSearch,{filterData:t}),(0,i.default)(a.AssociationOverviewTableContainer,{tableData:e})):(0,i.default)("div",{class:"npa-association-overview__loading-spinner-container"},(0,i.default)(s.default,null)))}};n.default=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");t&&i.default.mount(t,{view:function(){return(0,i.default)(c)}})}},{"../../../../beregnere-tk/javascript-tk-beregnere/components/spinner/ts-spinner":10,"../helper/PropHelper":283,"./association-overview-data":275,"./association-overview-filter-search.mithril":276,"./association-overview-table-container.mithril":277,"./store/association-overview-store":280,mithril:410}],283:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n.InitProps=function(e){var i=new r(e.name),a=e.props;Object.keys(a).forEach(function(e,t){var n=i.GetAttribute(e);s(n)?a[e].type===Number?a[e]=Number(n):a[e]=n:a[e]=a[e].default})};i(o,[{key:"GetAttribute",value:function(e){if(this.hasDomElement){var t=this.domElement.dataset[e];
1if(s(t))try{return JSON.parse(this.domElement.dataset[e])}catch(e){return t}}}}]);var r=o;function o(e){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.domElement=document.getElementsByClassName(e)[0],s(this.domElement)||(this.hasDomElement=!1,console.error("Can't find "+e)),this.hasDomElement=!0}function s(e){return null!=e}},{}],277:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.AssociationOverviewTableContainer=void 0;var u=i(e("mithril")),c=e("../../tables/generic-table.mithril"),d=e("../../../components/cards/generic-fund-card.mithril"),f=i(e("./store/association-overview-store"));function i(e){return e&&e.__esModule?e:{default:e}}n.AssociationOverviewTableContainer=function(){var l=window.innerWidth<768;return{oncreate:function(){window.addEventListener("resize",function(){l=window.innerWidth<768,setTimeout(function(){u.default.redraw()},100)})},view:function(e){function t(e,t){return f.default.actions.setFavorites(t,e)}var e=e.attrs,n=f.default.state.labels,i=f.default.state.totalCount,a=Object.values(e.tableData.tableRows.map(function(e){return e.favorite})).reduce(function(e,t){return e+t},0),r=1<i?n.associationsShownPluralLabel:n.associationsShownSingularLabel,o=1<a?n.favoritesPluralLabel:n.favoriteSingularLabel,s=f.default.actions.modifyTableDataForMobile(e.tableData);return(0,u.default)("section",{class:"npa-association-overview__table-wrapper"},(0,u.default)("span",{class:"npa-association-overview__total-amount-index-funds"},i," ",r)," ",(0,u.default)("span",{class:"npa-association-overview__spacer"},"|")," ",a," ",o,l?s.map(function(e){return(0,u.default)(d.GenericFundCard,{data:e,isPricelist:!1,setFavorite:t,labels:f.default.state.labels})}):(0,u.default)(c.GenericTable,{tableData:e.tableData,setFavorite:t,sortColumnCallback:function(e){return f.default.actions.sortColumn(e)}}),(0,u.default)("div",{class:"npa-association-overview__more-table-entries-container"},(0,u.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--raised",onclick:function(){f.default.actions.loadMore()}},n.seeMoreLabel)))}}}},{"../../../components/cards/generic-fund-card.mithril":215,"../../tables/generic-table.mithril":336,"./store/association-overview-store":280,mithril:410}],336:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GenericTable=void 0;var u=i(e("mithril")),c=e("../../svg-render-functions/npa-icons.mithril"),l=i(e("../calculators/NykreditTooltip.js")),d=e("./cell-type/EuSustainabilitySfdr.mithril");function i(e){return e&&e.__esModule?e:{default:e}}function f(){function t(e){var t=e.cell,n=e.id,i=e.setFavorite,e=t,a=!(!t.url||"link"!==t.type),r=!(!t.url||"icon"!==t.type),o=!("boolean"!=typeof t),s=!isNaN(e),l=!("sfdr"!==t.type);return Number.isInteger(e)&&0===e?"-":a?t.url?(0,u.default)("a",{href:t.url},t.value):"":r?t.url&&"/"!==t.url?(0,u.default)("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},(a=t.value,{download:c.downloadDocument}[a]||"")):"":o?(0,u.default)("button",{class:"nyk-generic-table__favorite-button "+(t?"nyk-generic-table__favorite-button--active":""),onclick:function(){return i(!t,n)},"aria-label":t?"Fjern favorit":"Tilføj favorit"},(t?(0,c.favoriteSelected):(0,c.favoriteUnselected))()):s?e.toLocaleString("da-DK",{maximumFractionDigits:2}):l?(0,u.default)(d.EuSustainabilitySfdr,{name:t.value,subtitle:t.subtitle}):e}return{view:function(e){e=e.attrs;return(0,u.default)("td",{class:"nyk-generic-table__cell"},t(e))}}}n.GenericTable=function(){var s={direction:"asc",column:"name"};return{view:function(e){var e=e.attrs,i=e.tableData,a=e.setFavorite,r=e.sortColumnCallback,o=i.tableHeaders.map(function(e){return e.name});if(0!==i.tableRows.length)return(0,u.default)("table",{class:"nyk-generic-table"},(0,u.default)("caption",null,i.tableTitle),(0,u.default)("thead",null,(0,u.default)("tr",null,o.map(function(t){var n=i.tableHeaders.find(function(e){return e.name===t}),e=n.name===s.column?"asc"===s.direction?"ascending":"descending":void 0;return(0,u.default)("th",{class:"nyk-generic-table__cell nyk-generic-table__cell--header","aria-sort":n.hasSorting?e:void 0},n.hasSorting?(0,u.default)("div",null,(0,u.default)("button",{class:"nyk-generic-table__cell-sort-button",onclick:function(){return e=n.name,t=r,s.direction="asc"===s.direction?"de
1sc":"asc",s.column=e,t(s),void u.default.redraw();var e,t}},n.value||"",n.name===s.column?(0,u.default)("div",{class:"nyk-generic-table__cell-sort-arrow-container"},"asc"===s.direction?(0,u.default)("span",{class:"fund-list__sort-indicator fund-list__sort-indicator--ascending"}):"","desc"===s.direction?(0,u.default)("span",{class:"fund-list__sort-indicator fund-list__sort-indicator--descending"}):""):(0,u.default)("div",{class:"nyk-generic-table__cell-sort-arrow-container"},(0,u.default)("span",{class:"fund-list__sort-indicator fund-list__sort-indicator--ascending"}),(0,u.default)("span",{class:"fund-list__sort-indicator fund-list__sort-indicator--descending"}))),function(e){if(null!=e.description)return e=e.description,(0,u.default)("div",{class:"nyk-generic-table__tooltip"},(0,u.default)(l.default,{text:e}))}(n)):(0,u.default)("div",null,n.value||""))}))),(0,u.default)("tbody",null,(0,u.default)("tr",{class:"nyk-generic-table__spacer"}),i.tableRows.map(function(e){return(0,u.default)("tr",null,(t=e,n=a,o.map(function(e){return null!==t[e]&&void 0!==t[e]?t[e]:""}).map(function(e){return(0,u.default)(f,{cell:e,row:t,id:t.id,setFavorite:n})})));var t,n})))}}}},{"../../svg-render-functions/npa-icons.mithril":378,"../calculators/NykreditTooltip.js":144,"./cell-type/EuSustainabilitySfdr.mithril":321,mithril:410}],321:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.EuSustainabilitySfdr=void 0;var e=e("mithril"),i=(e=e)&&e.__esModule?e:{default:e};n.EuSustainabilitySfdr=function(){return{view:function(e){e=e.attrs.name;return(0,i.default)("div",{class:"nyk-cell-type-eu-sustainability-sfdr"},(0,i.default)("p",{class:"nyk-cell-type-eu-sustainability-sfdr__article"},""+e))}}}},{mithril:410}],215:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GenericFundCard=void 0;var i=e("mithril"),x=(i=i)&&i.__esModule?i:{default:i},a=e("../../svg-render-functions/npa-icons.mithril");n.GenericFundCard=function(){function w(e){return(e?(0,a.favoriteSelected):(0,a.favoriteUnselected))()}function S(e){return e&&e.url&&"/"!==e.url?(0,x.default)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer"},(e=e.value,{download:a.downloadDocument}[e]||"")):null}return{view:function(e){var t,n,i,a,r,o,s,l,u,c,d,f,h,p,m,g,v,_,y,e=e.attrs,b=e.isPricelist,k=e.setFavorite;return b?(b=e.data,t=b.id,n=b.favorite,f=b.name,c=b.associationName,p=b.innerValue,g=b.emission,y=b.redemption,i=b.date,a=b.centralInvesting,r=b.fact,b=b.esg,h=(u=e.tableHeaders).innerValueName,m=u.emissionName,o=u.dateName,v=u.redemptionName,s=u.centralInvestingName,l=u.factName,u=u.esgName,(0,x.default)("article",{class:"nyk-fund-card"},(0,x.default)("div",{class:"nyk-fund-card__container"},(0,x.default)("span",{class:"nyk-fund-card__favorites-container"},(0,x.default)("button",{onclick:function(){return k(!n,t)}},w(n))),(0,x.default)("div",{class:"nyk-fund-card__inner-wrapper"},(0,x.default)("div",{class:"nyk-fund-card__subtitle mdc-typography--subtitle"},c),(0,x.default)("h2",{class:"nyk-fund-card__title mdc-typography--title-xs"},f.value),(0,x.default)("ul",{class:"nyk-fund-card__list-container"},(0,x.default)("li",{class:"nyk-fund-card__list-item"},(0,x.default)("span",{style:"font-weight:bold"},h),(0,x.default)("span",null,p.toLocaleString("da-DK",{maximumFractionDigits:2}))),(0,x.default)("li",{class:"nyk-fund-card__list-item"},(0,x.default)("span",{style:"font-weight:bold"},m),(0,x.default)("span",null,g.toLocaleString("da-DK",{maximumFractionDigits:2}))),(0,x.default)("li",{class:"nyk-fund-card__list-item"},(0,x.default)("span",{style:"font-weight:bold"},v),(0,x.default)("span",null,y.toLocaleString("da-DK",{maximumFractionDigits:2}))),(0,x.default)("li",{class:"nyk-fund-card__list-item",style:"padding-bottom: 20px"},(0,x.default)("span",{style:"font-weight:bold"},o),(0,x.default)("span",null,i)),(0,x.default)("li",{class:"nyk-fund-card__list-item"},(0,x.default)("span",{style:"font-weight:bold"},s),S(a)),(0,x.default)("li",{class:"nyk-fund-card__list-item"},(0,x.default)("span",{style:"font-weight:bold"},l),S(r)),(0,x.default)("li",{class:"nyk-fund-card__list-item"},(0,x.default)("span",{style:"font-weight:bold"},u),S(b))))))):(c=e.data,d=c.favorite,f=c.financia,h=c.indexFundType,p=c.name,m=c.price,g=c.prospectus,v=c.statutes,_=c.id,y=c.documentLink,(0,x.default)("article",{class:"nyk-fund-card"},(0,x.default)("div",{class:"nyk-fund-card__container"},(0,x.default)("span",{class:"nyk-fund-card__favorites-container"},(0,x.default)("button",{onclick:function(){return k(!d,_)}},w(d))),(0,x.default)("span",{class:"nyk-fund-card__type"},h),(0,x.default)("div",{class:"nyk-fund-card__inner-wrapper"},(0,x.default)("h2",{class:"nyk-fund-card__title mdc-typography--title-xs"},p.value),(0,x.default)("ul",{class:"nyk-fund-card__list-container"},(0,x.default)("li",{class:"nyk-fund-card__list-item"},(0,x.default)("span",null,f.displayName),S(f)),(0,x.default)("li",{class:"nyk-fund-card__list-item"},(0,x.default)("span",null,g.displayName),S(g)),(0,x.default)("li",{class:"nyk-fund-card__list-item"},(0,x.default)("span",null,v.displayName),S(v))),(0,x.default)("div",{class:"nyk-fund-card__button-container"},(0,x.default)("a",{href:y,class:"mdc-button mdc-button--secondary mdc-button--raised"},e.labels.documentBtnLabel),(0,x.default)("a",{href:p.url,class:"mdc-button mdc-button--primary mdc-button--raised"},e.labels.indexFundBtnLabel))),(0,x.default)("a",{class:"nyk-fund-card__link",href:m.url},m.value))))}}}},{"../../svg-render-functions/npa-icons.mithril":378,mithril:410}],276:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.AssociationOverviewFilterAndSearch=void 0;var d=i(e("mithril")),f=e("../../dropdown/dropdown-with-custom-input.mithril.js"),h=i(e("./store/association-overview-store")),p=i(e("../../../../javascript/components/debouncer")),m=e("../../modals/filter-modal.mithril"),g=e("../../../svg-render-functions/npa-icons.mithril");
1function i(e){return e&&e.__esModule?e:{default:e}}n.AssociationOverviewFilterAndSearch=function(e){function n(e,t,n,i){"change"!==i.type&&"click"!==i.type&&"Space"!==i.code||(h.default.mutations.UPDATE_FILTER(e,t,n),h.default.actions.performSearch())}function t(e){"change"!==e.type&&"click"!==e.type&&"Space"!==e.code||(h.default.mutations.REMOVE_ALL_FILTER(),h.default.actions.performSearch())}function i(){return s.flatMap(function(t){var e=t.content.filter(function(e){return e.isChecked});return e.map(function(e){return e.type=t.id}),e})}function a(e){o=e,e=document.querySelector("body"),o?e.classList.add("stop-scroll"):e.classList.remove("stop-scroll")}var e=e.attrs,r=window.innerWidth<768,o=!1,s=e.filterData,l=new p.default,u=h.default.getters.getAmountOfFiltersInUse(),c="";return{oncreate:function(){c=h.default.state.searchValue,window.addEventListener("resize",function(){r=window.innerWidth<768,setTimeout(function(){d.default.redraw()},100)})},view:function(){var e=h.default.state.labels;return(0,d.default)("section",{class:"npa-association-overview__filter-wrapper"},(0,d.default)("div",{class:"npa-association-overview__search-input-container"},(0,d.default)("div",{class:"npa-association-overview__search-input-wrapper"},(0,d.default)("input",{class:"npa-association-overview__search-input",type:"text",value:c,oninput:function(e){return t=e.target.value,c=t,void l.update(function(){h.default.mutations.SET_SEARCH_VALUE(t),h.default.actions.performSearch(t)},250);var t},placeholder:e?e.searchPlaceholderLabel:""}))),r?(0,d.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--raised",onclick:function(){return a(!0)}},"Filter (",u,")"):(0,d.default)("div",null,(0,d.default)("div",{class:"npa-association-overview__filter-container"},s.map(function(e,t){return(0,d.default)(f.DropdownWithCustomInput,{data:e,key:t,type:"checkboxList",callback:n})})),(0,d.default)("div",{class:"npa-association-overview__filter-container"},i().length?(0,d.default)("button",{class:"npa-association-overview__filter-tag-button npa-association-overview__filter-tag-button--remove-filters",onclick:t,onkeypress:t},e?e.clearAllFiltersLabel:""):"",i().map(function(t){return(0,d.default)("span",{class:"npa-association-overview__filter-tag"},(0,d.default)("p",null,t.label),(0,d.default)("button",{class:"npa-association-overview__filter-tag-button",onclick:function(e){return n(t.id,!1,t.type,e)},onkeypress:function(e){return n(t.id,!1,t.type,e)}},g.times))}))),o?(0,d.default)(m.FilterModal,{toggleFilter:a,filterData:s,setCheckedValue:n,removeAllFilters:t}):"")}}}},{"../../../../javascript/components/debouncer":223,"../../../svg-render-functions/npa-icons.mithril":378,"../../dropdown/dropdown-with-custom-input.mithril.js":227,"../../modals/filter-modal.mithril":261,"./store/association-overview-store":280,mithril:410}],261:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FilterModal=void 0;var o=a(e("mithril")),s=e("../dropdown/dropdown-with-custom-input.mithril"),i=a(e("../npa/association-overview/store/association-overview-store"));function a(e){return e&&e.__esModule?e:{default:e}}n.FilterModal=function(){var r=i.default.state.table_data.tableRows.length;return{view:function(e){var e=e.attrs,t=e.toggleFilter,n=e.filterData,i=e.setCheckedValue,a=e.removeAllFilters;return(0,o.default)("article",{class:"npa-filter-modal"},(0,o.default)("div",{class:"npa-filter-modal__top-wrapper"},(0,o.default)("button",{class:"npa-filter-modal__clear-filters nyk-js--fund-dropdown-element",onclick:function(){return a()}},"Ryd alle filtre"),(0,o.default)("h2",{class:"npa-filter-modal__title mdc-typography--title-xs"},"Filtrer"),(0,o.default)("button",{class:"npa-filter-modal__close-modal nyk-js--fund-dropdown-element",onclick:function(){return t(!1)}},(0,o.default)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.default)("path",{d:"M19.25 2.75L2.75 19.25",stroke:"#212121","stroke-width":"3","stroke-miterlimit":"10","stroke-linecap":"square"}),(0,o.default)("path",{d:"M19.25 19.25L2.75 2.75",stroke:"#212121","stroke-width":"3","stroke-miterlimit":"10","stroke-linecap":"square"})))),(0,o.default)("div",{class:"npa-filter-modal__content-container"},n.map(function(e,t){return(0,o.default)(s.DropdownWithCustomInput,{data:e,key:t,type:"checkboxList",callback:i})})),(0,o.default)("div",{class:"npa-filter-modal__show-result-button-container"},(0,o.default)("button",{onclick:function(){return t(!1)},class:"mdc-button mdc-button--raised mdc-button--primary nyk-js--fund-dropdown-element"},"Vis ",r," Resultater")))}}}},{"../dropdown/dropdown-with-custom-input.mithril":227,"../npa/association-overview/store/association-overview-store":280,mithril:410}],280:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=a(e("./association-overview-actions"));
1function a(e){return e&&e.__esModule?e:{default:e}}var r={state:{table_data:{tableRows:[],totalCount:0},filter_data:[],labels:{},pageRef:"",searchValue:"",rowsToShow:"6",currentUrl:"",rowsToSkip:null},getters:{getContentReference:function(){return r.state.pageRef},getAmountOfFiltersInUse:function(){return r.state.filter_data.flatMap(function(e){return e.content.filter(function(e){return e.isChecked})}).length}},mutations:a(e("./association-overview-mutations")).default,actions:i.default};n.default=r},{"./association-overview-actions":278,"./association-overview-mutations":279}],279:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});i(e("mithril"));var s=i(e("./association-overview-store"));function i(e){return e&&e.__esModule?e:{default:e}}n.default={SET_ALL_TABLE_DATA:function(e){s.default.state.table_data=e},SET_FILTER_DATA:function(e){s.default.state.filter_data=e},SET_TOTAL_COUNT:function(e){s.default.state.totalCount=e},SET_TABLE_DATA:function(e){s.default.state.table_data.tableRows=e},APPEND_TABLE_DATA:function(e){s.default.state.table_data.tableRows=s.default.state.table_data.tableRows.concat(e)},SET_TABLE_DATA_TITLE:function(e){s.default.state.table_data.tableTitle=e},SET_TABLE_DATA_HEADER:function(e){s.default.state.table_data.tableHeaders=e},SET_LABELS:function(e){s.default.state.labels=e},SET_ROWS_TO_SKIP:function(e){s.default.state.rowsToSkip=e},SET_SORT:function(e){s.default.state.sort=e},SET_ROWS_TO_SHOW:function(e){s.default.state.rowsToShow=e},SET_PAGE_REF:function(e){s.default.state.pageRef=e},SET_SEARCH_VALUE:function(e){s.default.state.searchValue=e},SET_DATA_ENDPOINT:function(e){s.default.state.dataEndPoint=e},SET_CURRENT_URL:function(e){s.default.state.currentUrl=e},REMOVE_ALL_FILTER:function(){var i=s.default.state.filter_data;i.forEach(function(e,t){var n=i[t];n.content.forEach(function(e,t){n.content[t].isChecked=!1})})},UPDATE_FILTER:function(i,a,r){var o=s.default.state.filter_data;o.forEach(function(e,t){var n;e.id==r&&(n=o[t]).content.forEach(function(e,t){e.id==i&&(n.content[t].isChecked=a)})})},UPDATE_FAVORITE:function(n,i){var a=s.default.state.table_data.tableRows;a.forEach(function(e,t){e.id===n&&(a[t].favorite=i)})}}},{"./association-overview-store":280,mithril:410}],278:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});s(e("mithril"));var i=s(e("./association-overview-store")),a=e("../../helper/UrlHelper"),r=e("../../helper/LocalStoreHelper"),o=e("../../helper/FetchHelper");e("../association-overview-data");function s(e){return e&&e.__esModule?e:{default:e}}var l="association";n.default={fetchTableData:function(t){this.updateCurrentUrl();var e=(0,a.BuildUrl)(i.default.state.dataEndPoint,(0,a.GetParameters)(!0,i.default.state,(0,r.GetLocalStorageName)(l)));(0,o.FetchData)(e).then(function(e){e.hasError||(i.default.mutations.SET_TOTAL_COUNT(e.responce.result.totalCount),t?i.default.mutations.APPEND_TABLE_DATA(e.responce.result.data):i.default.mutations.SET_TABLE_DATA(e.responce.result.data))})},updateCurrentUrl:function(){var e=(0,a.BuildUrl)(i.default.state.currentUrl,(0,a.GetParameters)(!1,i.default.state,(0,r.GetLocalStorageName)(l)));""==e?window.history.replaceState({},"",location.pathname):window.history.pushState({path:e},"",e)},loadMore:function(){var e=i.default.state;i.default.mutations.SET_ROWS_TO_SKIP(e.table_data.tableRows.length),this.updateCurrentUrl(),this.fetchTableData(!0)},performSearch:function(){i.default.mutations.SET_ROWS_TO_SKIP(null),this.fetchTableData(!1)},sortColumn:function(e){i.default.mutations.SET_SORT(e),this.performSearch()},setFavorites:function(e,t){i.default.mutations.UPDATE_FAVORITE(e,t),(0,r.UpdateLocalStorage)(l,e,t),this.updateCurrentUrl()},updateParams:function(){var e=window.location.search,e=new URLSearchParams(e),t=e.get("query"),t=(null!=t&&i.default.mutations.SET_SEARCH_VALUE(t),e.getAll("filter"));(Array.isArray(t)||0<t.length)&&t.forEach(function(e){e=e.split(":");i.default.mutations.UPDATE_FILTER(e[1],!0,e[0])})},modifyTableDataForMobile:function(t){return t.tableRows.map(function(e){return{id:e.id,favorite:e.favorite,name:e.name,documentLink:e.documentLink,indexFundType:e.indexFundType,price:{type:e.price.type,value:e.price.value,url:e.price.url},financia:{displayName:t.tableHeaders.find(function(e){return"financia"===e.name}).value,type:e.financia.type,value:e.financia.value,url:e.financia.url},prospectus:{displayName:t.tableHeaders.find(function(e){return"prospectus"===e.name}).value,type:e.prospectus.type,value:e.prospectus.value,url:e.prospectus.url},statutes:{displayName:t.tableHeaders.find(function(e){return"statutes"===e.name}).value,type:e.statutes.type,value:e.statutes.value,url:e.statutes.url}}})}},Array.prototype.AddKeyValue=function(e,t){null!=t&&this.push({key:e,value:t})},Storage.prototype.setObj=function(e,t){return this.setItem(e,JSON.stringify(t))},Storage.prototype.getObj=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,e=this.getItem(e);return null===e?t:JSON.parse(e)}},{"../../helper/FetchHelper":281,"../../helper/LocalStoreHelper":282,"../../helper/UrlHelper":284,"../association-overview-data":275,"./association-overview-store":280,mithril:410}],284:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.BuildUrl=function(e,t){t=function(e){var t=[];return e.forEach(function(e){t.push(e.key+"="+e.value)}),t.join("&")}(t);return"string"!=typeof t||0===t.length?e:e+"?"+t},n.GetParameters=function(e,t,n){var i=[];e&&(i.AddKeyValue("reference",t.pageRef),i.AddKeyValue("skip",t.rowsToSkip),i.AddKeyValue("take",t.rowsToShow));"string"==typeof t.searchValue&&0!==t.searchValue.length&&i.AddKeyValue("query",encodeURIComponent(t.searchValue));!function(e){return null!=e}(t.filter_data)||t.filter_data.forEach(function(t){t.content.forEach(function(e){!0===e.isChecked&&i.AddKeyValue("filter",t.id+":"+e.id)})});
1e&&localStorage.getObj(n,[]).forEach(function(e){i.AddKeyValue("favorite",e)});e&&null!=t.sort&&(i.AddKeyValue("sortby",t.sort.column),n="desc"===t.sort.direction,i.AddKeyValue("descending",n));return i},Storage.prototype.getObj=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,e=this.getItem(e);return null===e?t:JSON.parse(e)}},{}],282:[function(e,t,n){"use strict";function a(e){return"favorites_"+e}Object.defineProperty(n,"__esModule",{value:!0}),n.UpdateLocalStorage=function(e,t,n){var e=a(e),i=localStorage.getObj(e,[]);!0===n?i.push(t):i=i.filter(function(e){return e!==t});localStorage.setObj(e,i)},n.GetLocalStorageName=a,Storage.prototype.setObj=function(e,t){return this.setItem(e,JSON.stringify(t))},Storage.prototype.getObj=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,e=this.getItem(e);return null===e?t:JSON.parse(e)}},{}],281:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FetchData=function(e){return i.default.request({method:"GET",url:e,headers:{"Content-Type":"application/json"}}).then(function(e){return!e.result.data||e.error?{responce:e,hasError:!0}:{responce:e,hasError:!1}}).catch(function(e){return{responce:"",hasError:!0}})},n.MockFetchData=function(e){return{responce:{data:e,totalCount:123},hasError:!1}};var n=e("mithril"),i=(e=n)&&e.__esModule?e:{default:e}},{mithril:410}],227:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DropdownWithCustomInput=n.CheckBoxForDropdown=void 0;var i=e("mithril"),o=(i=i)&&i.__esModule?i:{default:i},s=e("../mdc-mithril-init"),r=e("../../svg-render-functions/npa-icons.mithril");var l=n.CheckBoxForDropdown=function(e){function r(e,t,n,i){i&&a.callback(e,!t,n,i)}var a=e.attrs;return{view:function(e){var e=e.attrs,t=e.content,n=e.key,i=e.type,a=(e.style,e.dropdownState);return 768<window.innerWidth?(0,o.default)("div",{class:"mdc-form-field"},(0,o.default)("div",{class:"mdc-checkbox js-mdc-checkbox",oncreate:s.createMdcCheckbox,onremove:s.removeMdc},(0,o.default)("input",{class:"mdc-checkbox__native-control",tabindex:a?"0":"-1",id:t.label+"-"+n,type:"checkbox",value:t.isChecked,checked:t.isChecked,onchange:function(e){return r(t.id,t.isChecked,i,e)}}),(0,o.default)("div",{class:"mdc-checkbox__background"},(0,o.default)("svg",{class:"mdc-checkbox__checkmark",viewbox:"0 0 24 24"},(0,o.default)("path",{class:"mdc-checkbox__checkmark-path",transform:"scale(0.6)",fill:"none",stroke:"white",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),(0,o.default)("div",{class:"mdc-checkbox__mixedmark"}))),"star"==e.style?(0,o.default)("label",{"aria-label":t.id+" "+(1===t.id?"Stjerne":"Stjerner"),for:t.label+"-"+n,class:"nyk-cell-type-star-range__star--filled"},o.default.trust(t.label)):(0,o.default)("label",{for:t.label+"-"+n},t.label)):"star"==e.style?(0,o.default)("button",{class:"nyk-select-custom-input__mobile-checked-button "+(t.isChecked?"nyk-select-custom-input__mobile-checked-button--selected":""),onclick:function(e){return r(t.id,t.isChecked,i,e)},"aria-label":t.id+" "+(1===t.id?"Stjerne":"Stjerner")},o.default.trust(t.label)):(0,o.default)("button",{class:"nyk-select-custom-input__mobile-checked-button "+(t.isChecked?"nyk-select-custom-input__mobile-checked-button--selected":""),onclick:function(e){return r(t.id,t.isChecked,i,e)}},o.default.trust(t.label))}}};n.DropdownWithCustomInput=function(n){function i(e,t,n){n&&(a=e),t&&("click"===t.type&&(a=e),"Enter"!==t.code&&"Space"!==t.code||(a=e))}function e(e){var t=document.getElementById("js-nyk-select-custom-input"+n.key);!t||(t?t.contains(e.target):null)||(i(!1,null,!0),o.default.redraw())}var a=!1;return{oncreate:function(){768<window.innerWidth&&document.addEventListener("click",e)},view:function(){var e=n.attrs.data;return(0,o.default)("div",{class:"nyk-select-custom-input",id:"js-nyk-select-custom-input"+n.key},(0,o.default)("div",{tabindex:"0",class:"nyk-select-custom-input__selected",onclick:function(e){return i(!a,e,!1)},onkeypress:function(e){return i(!a,e,!1)}},(0,o.default)("div",null,(0,o.default)("span",null,o.default.trust(e.icon)),(0,o.default)("span",{class:"nyk-select-custom-input__selected-value"},e.name)),(0,o.default)("div",{class:"nyk-select-custom-input__chevron "+(a?"":"nyk-select-custom-input__chevron--rotated")},r.chevron)),(0,o.default)("div",{class:"nyk-select-custom-input__content-container "+(a?"nyk-select-custom-input__content-container--selected":"")},e.content.map(function(e,t){if("checkboxList"===n.attrs.type)return(0,o.default)(l,{content:e,key:t,callback:n.attrs.callback,type:n.attrs.data.id,style:n.attrs.data.style,dropdownState:a})})))}}}},{"../../svg-render-functions/npa-icons.mithril":378,"../mdc-mithril-init":255,mithril:410}],378:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.smallCardDisplayIcon=n.bigCardDisplayIcon=n.tableDisplayIcon=n.swan=n.chevron=n.times=n.downloadDocument=n.favoriteUnselected=n.favoriteSelected=void 0;
1var e=e("mithril"),i=(e=e)&&e.__esModule?e:{default:e};var e=(0,i.default)("svg",{width:"26",height:"25",viewBox:"0 0 26 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.default)("path",{d:"M13 0V18.8571",stroke:"var(--colortheme-icon)","stroke-width":"2","stroke-miterlimit":"10"}),(0,i.default)("path",{d:"M6.14258 12L12.9997 18.8571L19.8569 12",stroke:"var(--colortheme-icon)","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"square"}),(0,i.default)("path",{d:"M1 18V24H25V18",stroke:"var(--colortheme-icon)","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"square"})),a=(0,i.default)("svg",{viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.default)("circle",{cx:"14",cy:"14",r:"8",fill:"#07094A"}),(0,i.default)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.1196 11.0485L11.0485 18.1196L10.1646 17.2357L17.2357 10.1646L18.1196 11.0485Z",fill:"white"}),(0,i.default)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0485 10.1646L18.1196 17.2357L17.2357 18.1196L10.1646 11.0485L11.0485 10.1646Z",fill:"white"})),r=(0,i.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-tabler icon-tabler-chevron-up",viewBox:"0 0 24 24","stroke-width":"2",stroke:"var(--colortheme-icon)",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},(0,i.default)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,i.default)("polyline",{points:"6 15 12 9 18 15"})),o=(0,i.default)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.default)("path",{d:"M7.285 2.714H17M7.285 9H17m-9.715 6.286H17M2.714 4.429a1.714 1.714 0 1 0 0-3.429 1.714 1.714 0 0 0 0 3.429Zm0 6.285a1.714 1.714 0 1 0 0-3.428 1.714 1.714 0 0 0 0 3.428Zm0 6.286a1.714 1.714 0 1 0 0-3.429 1.714 1.714 0 0 0 0 3.429Z",stroke:"var(--colortheme-icon)","stroke-miterlimit":"10","stroke-linecap":"square"})),s=(0,i.default)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.default)("path",{d:"M7.857 1H1v6.857h6.857V1ZM17 1h-6.857v6.857H17V1Zm-9.143 9.143H1V17h6.857v-6.857Zm9.143 0h-6.857V17H17v-6.857Z",stroke:"var(--colortheme-icon)","stroke-miterlimit":"10","stroke-linecap":"square"})),l=(0,i.default)("svg",{width:"18",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.default)("g",{"clip-path":"url(#clip0_1704_235)"},(0,i.default)("path",{d:"M4.51562 1.40625H1.32812V4.78125H4.51562V1.40625Z",stroke:"var(--colortheme-icon)","stroke-miterlimit":"10","stroke-linecap":"square"}),(0,i.default)("path",{d:"M10.3594 1.40625H7.17188V4.78125H10.3594V1.40625Z",stroke:"var(--colortheme-icon)","stroke-miterlimit":"10","stroke-linecap":"square"}),(0,i.default)("path",{d:"M16.2031 1.40625H13.0156V4.78125H16.2031V1.40625Z",stroke:"var(--colortheme-icon)","stroke-miterlimit":"10","stroke-linecap":"square"}),(0,i.default)("path",{d:"M4.51562 7.59375H1.32812V10.9688H4.51562V7.59375Z",stroke:"var(--colortheme-icon)","stroke-miterlimit":"10","stroke-linecap":"square"}),(0,i.default)("path",{d:"M10.3594 7.59375H7.17188V10.9688H10.3594V7.59375Z",stroke:"var(--colortheme-icon)","stroke-miterlimit":"10","stroke-linecap":"square"}),(0,i.default)("path",{d:"M16.2031 7.59375H13.0156V10.9688H16.2031V7.59375Z",stroke:"var(--colortheme-icon)","stroke-miterlimit":"10","stroke-linecap":"square"}),(0,i.default)("path",{d:"M4.51562 13.7812H1.32812V17.1562H4.51562V13.7812Z",stroke:"var(--colortheme-icon)","stroke-miterlimit":"10","stroke-linecap":"square"}),(0,i.default)("path",{d:"M10.3594 13.7812H7.17188V17.1562H10.3594V13.7812Z",stroke:"var(--colortheme-icon)","stroke-miterlimit":"10","stroke-linecap":"square"}),(0,i.default)("path",{d:"M16.2031 13.7812H13.0156V17.1562H16.2031V13.7812Z",stroke:"var(--colortheme-icon)","stroke-miterlimit":"10","stroke-linecap":"square"})),(0,i.default)("defs",null,(0,i.default)("clipPath",{id:"clip0_1704_235"},(0,i.default)("rect",{width:"18",height:"18",fill:"white"}))));n.favoriteSelected=function(){return(0,i.default)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.default)("g",{"clip-path":"url(#clip0_14_1974)"},(0,i.default)("path",{d:"M12 1.30054L15.477 8.34454L23.25 9.47404L17.625 14.9565L18.9525 22.6995L12 19.044L5.0475 22.6995L6.375 14.9565L0.75 9.47404L8.523 8.34454L12 1.30054Z",fill:"currentColor",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})),(0,i.default)("defs",null,(0,i.default)("clipPath",{id:"clip0_14_1974"},(0,i.default)("rect",{width:"24",height:"24",fill:"white"}))))},n.favoriteUnselected=function(){return(0,i.default)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.default)("path",{d:"M12 1.30054L15.477 8.34454L23.25 9.47404L17.625 14.9565L18.9525 22.6995L12 19.044L5.0475 22.6995L6.375 14.9565L0.75 9.47404L8.523 8.34454L12 1.30054Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}))},n.downloadDocument=e,n.times=a,n.chevron=r,n.swan=function(){return(0,i.default)("img",{width:"35",height:"35",src:"https://www.nykreditinvest.dk/contentassets/79c6e4f9113e4e0c81a9392d72c52587/svanmarke--size-Icon64--version-20181213095300.svg"})},n.tableDisplayIcon=o,n.bigCardDisplayIcon=s,n.smallCardDisplayIcon=l},{mithril:410}],275:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});
1n.defaultLabels={titleLabel:"",searchPlaceholderLabel:"",departmentPluralLabel:"",departmentSingularLabel:"",favoritesPluralLabel:"",favoriteSingularLabel:"",seeMoreLabel:"",documentBtnLabel:"",indexFundBtnLabel:""},n.defaultTableHeader=[{name:"favorite",value:null,hasSorting:!1},{name:"name",value:"Navn",hasSorting:!0},{name:"indexFundType",value:"Foreningstype",hasSorting:!0},{name:"price",value:"Kursliste",hasSorting:!1},{name:"financia",value:"Regnskab",hasSorting:!1},{name:"prospectus",value:"Prospekt",hasSorting:!1},{name:"statutes",value:"Vedtægter",hasSorting:!1}],n.defaultFilter=[{name:"Demo",id:"indexFundType",icon:"<svg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M6.41674 13.4166H1.72266V0.583252H12.2227V6.99992' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M4.08301 4.08325H9.88892' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M4.08301 7H9.88892' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M4.08301 9.9165H6.41634' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M13.4167 10.5V13.4167H8.75V10.5L11.0833 8.75L13.4167 10.5Z' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M11.083 12.25V13.4167' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/></svg>",type:"checkboxList",content:[{id:"1",label:"Investerings foreninger",isChecked:!0},{id:"2",label:"Kapital foreninger",isChecked:!0},{id:"3",label:"Ãvrige foreninger",isChecked:!1}]},{name:"Test",id:"TestType",icon:"<svg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M6.41674 13.4166H1.72266V0.583252H12.2227V6.99992' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M4.08301 4.08325H9.88892' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M4.08301 7H9.88892' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M4.08301 9.9165H6.41634' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M13.4167 10.5V13.4167H8.75V10.5L11.0833 8.75L13.4167 10.5Z' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/><path d='M11.083 12.25V13.4167' stroke='#07094A' stroke-miterlimit='10' stroke-linecap='square'/></svg>",type:"checkboxList",content:[{id:"4",label:"Investerings foreninger",isChecked:!0},{id:"5",label:"Kapital foreninger",isChecked:!1},{id:"6",label:"Ãvrige foreninger",isChecked:!1}]}],n.mockTableRows=[{favorite:!0,id:12,name:"Nykredit KOBRA III",indexFundType:"Investering",price:{type:"link",name:"GÃ¥ til foreningens kursliste",url:"/somewhere"},financia:{type:"icon",name:"download",url:"somewhere"},prospectus:{type:"icon",name:"download",url:"somewhere"},statutes:{type:"icon",name:"download",url:"somewhere"}},{favorite:!0,id:14,name:"EVIRA",indexFundType:"Investering",price:{type:"link",name:"GÃ¥ til foreningens kursliste",url:"/somewhere"},financia:{type:"icon",name:"download",url:"somewhere"},prospectus:{type:"icon",name:"download",url:"somewhere"},statutes:{type:"icon",name:"download",url:"somewhere"}},{favorite:!0,id:18,name:"Private Equity ASL KL",indexFundType:"Investering",price:{type:"link",name:"GÃ¥ til foreningens kursliste",url:"/somewhere"},financia:{type:"icon",name:"download",url:"somewhere"},prospectus:{type:"icon",name:"download",url:"somewhere"},statutes:{type:"icon",name:"download",url:"somewhere"}}]},{}],269:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CircleChartComponent=void 0;var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=s(e("mithril")),o=s(e("highcharts"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.default=function e(t){l(this,e),r.default.mount(t,{view:function(){return(0,r.default)(u,JSON.parse(t.getAttribute("chart-data")))}})};var u=n.CircleChartComponent=(i(c,[{key:"oninit",value:function(e){e.attrs;var e=e.children,t=document.body.classList.contains("invest")?["#0f1e82","#4192dc","#07094a","#875ba3","#6972b1"]:["#46525c","#843a8e","#22a596","#fd3da4"];
1this.model={chart:{renderTo:"m-donut-chart",plotBackgroundColor:null,plotBorderWidth:null,plotShadow:!1,type:"pie",margin:0},title:{text:null},tooltip:{valueSuffix:"%",decimals:0},legend:{enabled:!1},series:[{colorByPoint:!0,innerSize:"90%",data:e}],plotOptions:{pie:{slicedOffset:0,size:"90%",borderColor:this.setBorderColor(),dataLabels:{distance:10}},series:{states:{hover:{halo:{size:10}}},point:{events:{mouseOver:function(){document.querySelector(".nyk-donut__chart").classList.add("nyk-donut__chart--bring-to-front")}}},events:{mouseOut:function(){document.querySelector(".nyk-donut__chart").classList.remove("nyk-donut__chart--bring-to-front")}}}},colors:t}}},{key:"setBorderColor",value:function(){var e,t="#ffffff";return t=this.chartData&&1===this.chartData.length&&(e=o.default.getOptions().colors[0])?e:t}},{key:"setColors",value:function(){o.default.setOptions({pie:{showInLegend:!0}})}},{key:"view",value:function(){return(0,r.default)("div",{class:"circle-chart-container",id:"m-donut-chart"})}},{key:"oncreate",value:function(){this.setColors(),o.default.chart(this.model)}}]),c);function c(){l(this,c)}},{highcharts:408,mithril:410}],243:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.default=function e(t){o(this,e),r.default.mount(t,{view:function(){return(0,r.default)(s,t)}})},i(l,[{key:"oninit",value:function(){var n=document.getElementsByTagName("fond-disclaimer-modal")[0],i=(this.model={},this);new MutationObserver(function(e){for(var t=0;t<e.length;t++)if("attributes"==e[t].type){i.reicevedAttrs(i,n);break}}).observe(n,{attributes:!0}),this.reicevedAttrs(this,n)}},{key:"reicevedAttrs",value:function(e,t){e.model.open=!1;try{var n=JSON.parse(t.getAttribute("attrs"));n.disclaimer&&(e.model.open=!0,e.model.acceptUrl=n.acceptUrl,e.model.disclaimerId=n.disclaimer.id,e.model.body=n.disclaimer.richtextContent,e.model.acceptLabel=n.disclaimer.acceptLabel,e.model.denyLabel=n.disclaimer.denyLabel,e.model.denyUrl=n.disclaimer.denyLinkUrl,e.setBodyScrollable(!1))}catch(e){}r.default.redraw()}},{key:"setBodyScrollable",value:function(e){document.getElementsByTagName("body")[0].style.overflow=e?"auto":"hidden"}},{key:"publishAccept",value:function(e){r.default.request({method:"GET",url:e.model.acceptUrl}).then(function(){}).catch(function(e){console.log(e)}),e.model.open=!1,e.setBodyScrollable(!0)}},{key:"view",value:function(){var e=this;return this.model.open?(0,r.default)("div",{class:"fund-disclaimer"},(0,r.default)("div",{class:"fund-disclaimer--background"}),(0,r.default)("div",{class:"fund-disclaimer--modal"},(0,r.default)("div",{class:"fund-disclaimer--modal--inner"},(0,r.default)("div",{class:"fund-disclaimer--modal--inner--content"},r.default.trust(this.model.body)),(0,r.default)("div",{class:"fund-disclaimer--modal--inner--footer"},(0,r.default)("a",{class:"nyk-button nyk-button--outline-primary",href:this.model.denyUrl},this.model.denyLabel),(0,r.default)("a",{class:"nyk-button nyk-button--filled-primary",onclick:function(){return e.publishAccept(e)}},this.model.acceptLabel))))):(0,r.default)("div",null)}}]);var s=l;function l(){o(this,l)}},{mithril:410}],242:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function e(t){var r=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.ticking=!1,this.lastPageOffset=0,this.adjustContent=!1,this.adjustMainContentBy=0,this.sections={},this.toolbarSecondaryHeight=60,this.navbarHeights=120,this.startPosition=0,this.startPositionOffset=20,this.fixedElementClass="fixed-element",this.navigateToHash=function(){var e=document.querySelectorAll(".nav-onpage__link");e.length&&Array.from(e).forEach(function(e){e.getAttribute("href")===window.location.hash&&e.click()})},this.checkOverflow=function(e){e=e.querySelectorAll(".nav-onpage__section");e.length&&Array.from(e).forEach(function(e){e.scrollWidth>e.clientWidth?e.classList.add("nav-onpage__section--overflowing"):e.classList.remove("nav-onpage__section--overflowing")})},this.checkScrollPos=function(e,t){var n=window.pageYOffset;n!==r.lastPageOffset&&(r.lastPageOffset=n,r.ticking||(r.ticking=!0,window.requestAnimationFrame(function(){r.ticking=!1,r.lastPageOffset>r.startPosition?t.classList.add(r.fixedElementClass):t.classList.remove(r.fixedElementClass),r.toggleActive(n,e,t)})))},this.adjustMainContent=function(e){var t=document.getElementById("main-container");window.innerWidth<1080&&t?(r.toolbarSecondaryHeight=r.fixedAdjustElement.offsetHeight,r.navbarHeights=e.offsetHeight+r.toolbarSecondaryHeight,t.setAttribute("style","margin-top:"+r.toolbarSecondaryHeight+"px;")):t.setAttribute("style","margin-top:0")},this.toggleActive=function(e,t,n){if(n.classList.contains(r.fixedElementClass)){var i,a=0;for(a in r.sections)r.sections[a]<=e+r.navbarHeights&&((i=document.querySelector(".nav-onpage__link--active"))&&i.classList.remove("nav-onpage__link--active"),document.querySelector('.nav-onpage a[href="#'+a+'"]').classList.add("nav-onpage__link--active"))}else{n=document.querySelector(".nav-onpage__link--active");n&&n.classList.remove("nav-onpage__link--active")}},this.scrollToActiveLink=function(){window.clearTimeout(r.isScrolling),r.isScrolling=setTimeout(function(){var e,t,n,i=document.querySelector(".nav-onpage__link--active");
1i&&(n=(e=document.querySelector(".nav-onpage__section")).getBoundingClientRect(),n=(t=i.getBoundingClientRect()).left-n.left-i.clientWidth,0<=t.left&&t.right<=(window.innerWidth||document.documentElement.clientWidth)||(e.lastElementChild,e.scrollLeft=n+i.clientWidth))},100)},this.getSections=function(e){r.sections={},Array.from(r.link).forEach(function(e){var e=e.hash.substr(1),t=document.getElementById(e);t&&(r.sections[e]=t.offsetTop)})},Array.from(t).forEach(function(t){r.sparinvestSecondary=document.getElementsByClassName("nav-secondary-sparinvest"),0<r.sparinvestSecondary.length&&(r.startPositionOffset=43,r.fixedElementClass="fixed-element-secondary-sparinvest"),document.body.classList.add("body--nav-onpage");window.onload=function(){this.startPosition=t.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop)-this.startPositionOffset,this.startPosition<0&&(this.startPosition=0)}.bind(r),r.startPosition=t.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop)-r.startPositionOffset,r.startPosition<0&&(r.startPosition=0),r.link=document.querySelectorAll(".nav-onpage__link"),r.fixedAdjustElement=document.querySelector(".mdc-toolbar--fixed--on-mobile"),r.fixedAdjustElement&&r.adjustMainContent(t);var n=t.querySelector(".nav-onpage__row");r.checkScrollPos(t,n),r.getSections(),r.checkOverflow(t),window.addEventListener("scroll",function(e){r.checkScrollPos(t,n),r.scrollToActiveLink()},!1),window.addEventListener("resize",function(e){r.adjustMainContent(t),r.checkScrollPos(t,n),r.checkOverflow(t),r.getSections()},!1)}),window.location.hash&&this.navigateToHash()}},{}],236:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=e("siema"),i=(e=e)&&e.__esModule?e:{default:e};function a(){var i=this;this.drawer=!1,this.openDrawer=function(t,e){document.body.classList.add("mdc-drawer-scroll-lock"),i.backdropEl.addEventListener("click",i.backdropClickHandler,!1),i.closeBtnEl.addEventListener("click",i.closeBtnClickHandler,!1),i.drawerImg.setAttribute("src",t.dataset.img),Array.from(i.drawerDate).forEach(function(e){e.innerHTML=t.dataset.date}),i.drawerTime.innerHTML=t.dataset.time,i.drawerTitle.innerHTML=t.dataset.title,i.drawerDesc.innerHTML=t.dataset.desc,i.drawerAddress.innerHTML=t.dataset.adress,i.drawerAddress2.innerHTML=t.dataset.adress2,i.drawerCal.setAttribute("href",t.dataset.ical),i.drawer.classList.add("is-active");var n=document.querySelector(".js-financial-calendar-documents");n&&setTimeout(function(){n.classList.remove("financial-calendar__drawer-documents--hidden")},500)},this.closeDrawer=function(e){document.body.classList.remove("mdc-drawer-scroll-lock"),i.drawer.classList.remove("is-active"),i.backdropEl.removeEventListener("click",i.backdropClickHandler,!1),i.closeBtnEl.removeEventListener("click",i.closeBtnClickHandler,!1),i.drawerImg.setAttribute("src",""),Array.from(i.drawerDate).forEach(function(e){e.innerHTML=""}),i.drawerTime.innerHTML="",i.drawerTitle.innerHTML="",i.drawerDesc.innerHTML="",i.drawerAddress.innerHTML="",i.drawerAddress2.innerHTML="",i.drawerCal.setAttribute("href","");var t=document.querySelector(".js-financial-calendar-documents");t&&t.classList.add("financial-calendar__drawer-documents--hidden")},this.backdropClickHandler=function(e){i.closeDrawer()},this.closeBtnClickHandler=function(e){i.closeDrawer()},this.slideChangeHandler=function(e){i.siema.goTo(i.siema.config.startIndex)}}n.default=function e(t){var n=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");a.call(this),t&&(this.prevYearButton=t.querySelector(".js-financial-calendar-prev-year"),this.nextYearButton=t.querySelector(".js-financial-calendar-next-year"),this.nowButton=t.querySelector(".js-financial-calendar-now"),this.slidesEl=t.querySelector(".js-financial-calendar-slides"),this.prevButton=t.querySelector(".js-financial-calendar-prev"),this.nextButton=t.querySelector(".js-financial-calendar-next"),this.drawer=t.querySelector(".js-financial-calendar-drawer"),this.drawerInner=t.querySelector(".js-financial-calendar-inner"),this.backdropEl=t.querySelector(".js-financial-calendar-backdrop"),this.triggerEls=t.querySelectorAll(".js-financial-calendar-btn"),this.closeBtnEl=t.querySelector(".js-financial-calendar-drawer-close"),this.drawerImg=t.querySelector(".js-financial-calendar-img"),this.drawerDate=t.querySelectorAll(".js-financial-calendar-date"),this.drawerTime=t.querySelector(".js-financial-calendar-time"),this.drawerTitle=t.querySelector(".js-financial-calendar-title"),this.drawerDesc=t.querySelector(".js-financial-calendar-desc"),this.drawerAddress=t.querySelector(".js-financial-calendar-ad
1dress"),this.drawerAddress2=t.querySelector(".js-financial-calendar-address2"),this.drawerCal=t.querySelector(".js-financial-calendar-cal"),Array.from(this.triggerEls).forEach(function(e){return e.addEventListener("click",n.openDrawer.bind(n,e),!1)}),this.siema=new i.default({duration:300,easing:"ease-out",loop:"true"==t.getAttribute("data-loop"),startIndex:parseInt(t.getAttribute("data-start-index"),10)||0,selector:this.slidesEl,perPage:{400:2,600:3,765:4},onInit:function(){return setTimeout(n.slideChangeHandler,0)}}),this.nowButton&&this.nowButton.addEventListener("click",function(){return n.siema.goTo(n.siema.config.startIndex)}),this.prevButton&&this.prevButton.addEventListener("click",function(){return n.siema.prev(4)}),this.nextButton)&&this.nextButton.addEventListener("click",function(){return n.siema.next(4)})}},{siema:428}],428:[function(e,t,n){"use strict";var i,a;i="undefined"!=typeof self?self:void 0,a=function(){return n=[function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}(r,[{key:"attachEvents",value:function(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}},{key:"detachEvents",value:function(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}},{key:"init",value:function(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}},{key:"buildSliderFrame",value:function(){var e=this.selectorWidth/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length,n=(this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=e*t+"px",this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab"),document.createDocumentFragment());if(this.config.loop)for(var i=this.innerElements.length-this.perPage;i<this.innerElements.length;i++){var a=this.buildSliderFrameItem(this.innerElements[i].cloneNode(!0));n.appendChild(a)}for(var r=0;r<this.innerElements.length;r++){var o=this.buildSliderFrameItem(this.innerElements[r]);n.appendChild(o)}if(this.config.loop)for(var s=0;s<this.perPage;s++){var l=this.buildSliderFrameItem(this.innerElements[s].cloneNode(!0));n.appendChild(l)}this.sliderFrame.appendChild(n),this.selector.innerHTML="",this.selector.appendChild(this.sliderFrame),this.slideToCurrent()}},{key:"buildSliderFrameItem",value:function(e){var t=document.createElement("div");return t.style.cssFloat=this.config.rtl?"right":"left",t.style.float=this.config.rtl?"right":"left",t.style.width=(this.config.loop?100/(this.innerElements.length+2*this.perPage):100/this.innerElements.length)+"%",t.appendChild(e),t}},{key:"resolveSlidesNumber",value:function(){if("number"==typeof this.config.perPage)this.perPage=this.config.perPage;else if("object"===i(this.config.perPage))for(var e in this.perPage=1,this.config.perPage)window.innerWidth>=e&&(this.perPage=this.config.perPage[e])}},{key:"prev",value:function(){var e,t,n,i,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,r=arguments[1];this.innerElements.length<=this.perPage||(e=this.currentSlide,this.config.loop?this.currentSlide-a<0?(this.disableTransition(),t=this.currentSlide+this.innerElements.length,n=this.perPage,n=(this.config.rtl?1:-1)*(t+n)
1*(this.selectorWidth/this.perPage),i=this.config.draggable?this.drag.endX-this.drag.startX:0,this.sliderFrame.style[this.transformProperty]="translate3d("+(n+i)+"px, 0, 0)",this.currentSlide=t-a):this.currentSlide=this.currentSlide-a:this.currentSlide=Math.max(this.currentSlide-a,0),e!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),r)&&r.call(this))}},{key:"next",value:function(){var e,t,n,i,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,r=arguments[1];this.innerElements.length<=this.perPage||(e=this.currentSlide,this.config.loop?this.currentSlide+a>this.innerElements.length-this.perPage?(this.disableTransition(),t=this.currentSlide-this.innerElements.length,n=this.perPage,n=(this.config.rtl?1:-1)*(t+n)*(this.selectorWidth/this.perPage),i=this.config.draggable?this.drag.endX-this.drag.startX:0,this.sliderFrame.style[this.transformProperty]="translate3d("+(n+i)+"px, 0, 0)",this.currentSlide=t+a):this.currentSlide=this.currentSlide+a:this.currentSlide=Math.min(this.currentSlide+a,this.innerElements.length-this.perPage),e!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),r)&&r.call(this))}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing}},{key:"goTo",value:function(e,t){var n;this.innerElements.length<=this.perPage||(n=this.currentSlide,this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),n!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t)&&t.call(this))}},{key:"slideToCurrent",value:function(e){var t=this,n=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=(this.config.rtl?1:-1)*n*(this.selectorWidth/this.perPage);e?requestAnimationFrame(function(){requestAnimationFrame(function(){t.enableTransition(),t.sliderFrame.style[t.transformProperty]="translate3d("+i+"px, 0, 0)"})}):this.sliderFrame.style[this.transformProperty]="translate3d("+i+"px, 0, 0)"}},{key:"updateAfterDrag",value:function(){var e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),n=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,i=0<e&&this.currentSlide-n<0,a=e<0&&this.currentSlide+n>this.innerElements.length-this.perPage;0<e&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(n):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(n),this.slideToCurrent(i||a)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(e){-1===["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)&&(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)}},{key:"touchendHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(e){var t;e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY)<Math.abs(this.drag.startX-e.touches[0].pageX)),this.pointerDown&&this.drag.letItGo&&(e.preventDefault(),this.drag.endX=e.touches[0].pageX,this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing,e=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),t=this.drag.endX-this.drag.startX,e=this.config.rtl?e+t:e-t,this.sliderFrame.style[this.transformProperty]="translate3d("+(this.config.rtl?1:-1)*e+"px, 0, 0)")}},{key:"mousedownHandler",value:function(e){-1===["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)&&(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)}},{key:"mouseupHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"mousemoveHandler",value:function(e){var t;e.preventDefault(),this.pointerDown&&("A"===e.target.nodeName&&(this.drag.preventClick=!0),this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing,e=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),t=this.drag.endX-this.drag.startX,e=this.config.rtl?e+t:e-t,this.sliderFrame.style[this.transformProperty]="translate3d("+(this.config.rtl?1:-1)*e+"px, 0, 0)")}},{key:"mouseleaveHandler",value:function(e){this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())}},{key:"clickHandler",value:function(e){this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1}},{key:"remove",value:function(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn't exist ð");var n=e<this.currentSlide,i=this.currentSlide+this.perPage-1===e;(n||i)&&this.currentSlide--,this.innerElements.splice(e,1),this.buildSliderFrame(),t&&t.call(this)}},{key:"insert",value:function(e,t,n){if(t<0||t>this.innerElements.length+1)throw new Error("Unable to inset it at this index ð");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope ð");var i=0<(t<=this.currentSlide)&&this.innerElements.length;this.currentSlide=i?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),n&&n.call(this)}},{key:"prepend",value:function(e,t){this.insert(e,0),t&&t.call(this)}},{key:"append",value:function(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}},{key:"destroy",value:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",e){for(var n=document.createDocumentFragment(),i=0;i<this.innerElements.length;i++)n.appendChild(this.innerElements[i]);this.selector.innerHTML="",this.selector.appendChild(n),this.selector.removeAttribute("style")}t&&t.call(this)}}],[{key:"mergeSettings",value:function(e){var t,n={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:function(){},onChange:function(){}},i=e;for(t in i)n[t]=i[t];return n}},{key:"webkitOrNot",value:function(){return"string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform"}}]),r);function r(e){var t=this;if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");if(this.config=r.mergeSettings(e),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something wrong with your selector ð");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=[].slice.call(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=r.webkitOrNot(),["resizeHandler","touchstartHandler","touchendHandler","touchmoveHandler","mousedownHandler","mouseupHandler","mouseleaveHandler","mousemoveHandler","clickHandler"].forEach(function(e){t[e]=t[e].bind(t)}),this.init()}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.default=a,e.exports=t.default}],a={},i.m=n,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})}
1,i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0);function i(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,a},"object"==typeof n&&"object"==typeof t?t.exports=a():"function"==typeof define&&define.amd?define("Siema",[],a):"object"==typeof n?n.Siema=a():i.Siema=a()},{}],231:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril");(e=e)&&e.__esModule;function r(e){var i=this;if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.attachEventHandlersToButtons=function(){var e=document.querySelectorAll(".js-open-epi-form-contact-button"),t=document.querySelectorAll(".js-close-epi-form-contact-button"),n=document.querySelector(".js-lead-form-success__btn");n&&n.addEventListener("click",i.closeModal),t.length&&e.length&&(t.forEach(function(e){return e.addEventListener("click",i.closeModal)}),e.forEach(function(e){return e.addEventListener("click",i.openModal)}))},e&&(this.attachEventHandlersToButtons(this.body),(e=new URLSearchParams(window.location.search)).has("open-contact-form"))&&"true"==e.get("open-contact-form")&&document.querySelector(".js-open-epi-form-contact-button").click()}i(r,[{key:"openModal",value:function(e){e=e.target.id;document.querySelector("body").classList.add("no-scroll"),document.querySelector("#"+e+"__stepper-content").classList.add("js-epi-form-container--open")}},{key:"closeModal",value:function(){document.querySelector("body").classList.remove("no-scroll"),document.querySelectorAll(".js-epi-form-container").forEach(function(e){e.classList.remove("js-epi-form-container--open")})}}]),n.default=r},{mithril:410}],230:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DropdownWithText=void 0;var e=e("mithril"),l=(e=e)&&e.__esModule?e:{default:e};var i=n.DropdownWithText=function(e){function t(t){document.querySelectorAll("."+i.el.className).forEach(function(e){(e?e.contains(t.target):null)||(s(!1),l.default.redraw())})}function n(e){r=e,document.querySelectorAll(".npa-association__department-container").forEach(function(e){e.id!==r?e.classList.add("npa-association__department-container--hidden"):e.classList.remove("npa-association__department-container--hidden")}),s(!1),l.default.redraw()}var i=e.attrs,a=!1,r=void 0,o=void 0,s=function(e){a=e,l.default.redraw()};return{oncreate:function(){document.addEventListener("click",t)},oninit:function(){o=i.data,n(o[0]),l.default.redraw()},view:function(){return(0,l.default)("div",{class:"nyk-select-text"},(0,l.default)("button",{onclick:function(){return s(!a)},class:"nyk-select-text__select-button"},(0,l.default)("p",null,r),(0,l.default)("span",null,(0,l.default)("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.default)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.50011 0.689453L6.00011 5.18945L10.5001 0.689453L11.5608 1.75011L6.00011 7.31077L0.439453 1.75011L1.50011 0.689453Z"})))),(0,l.default)("div",{class:"nyk-select-text__content "+(a?"":"nyk-select-text__content--hidden")},(0,l.default)("ul",{class:"nyk-select-text__list"},o.map(function(e){return(0,l.default)("li",{onclick:function(e){return n(e.target.textContent)},class:"nyk-select-text__list-item "+(r===e?"nyk-select-text__list-item--selected":"")},e)}))))}}};n.default=function e(t){var n;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");t&&(n={data:t.dataset.content.length?JSON.parse(t.dataset.content):[],el:t},l.default.mount(t,{view:function(){return(0,l.default)(i,n)}}))}},{mithril:410}],225:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=r(e("mithril")),a=r(e("../dropdown/dropdown-download-button.mithril"));
1function r(e){return e&&e.__esModule?e:{default:e}}n.default=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");i.default.mount(t,{view:function(){return(0,i.default)(a.default,JSON.parse(t.getAttribute("attrs")))}})}},{"../dropdown/dropdown-download-button.mithril":226,mithril:410}],226:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(){var i=this;if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.toggleDropdown=function(e,t,n){n&&(i.dropdownState=e),t&&("click"===t.type&&(i.dropdownState=e),"Enter"!==t.code&&"Space"!==t.code||(i.dropdownState=e))},this.clickOutside=function(e){var t=document.getElementById("js-dropdown-download"+i.key);!t||(t?t.contains(e.target):null)||(i.toggleDropdown(!1,null,!0),r.default.redraw())}}i(o,[{key:"oninit",value:function(e){e=e.attrs;this.label=e.label,this.color=e.color,this.key=e.key,this.content=e.content,this.dropdownState=!1}},{key:"oncreate",value:function(){768<window.innerWidth&&document.addEventListener("click",this.clickOutside)}},{key:"view",value:function(){var t=this;return(0,r.default)("div",{class:"nyk-select-custom-input",id:"js-dropdown-download"+this.key},(0,r.default)("button",{class:"mdc-button mdc-button--primary mdc-button--raised",style:"background-color: "+this.color,onclick:function(e){return t.toggleDropdown(!t.dropdownState,e,!1)},onkeypress:function(e){return t.toggleDropdown(!t.dropdownState,e,!1)}},this.label),(0,r.default)("div",{class:"mdc-menu mdc-menu-bottom-left "+(this.dropdownState?"mdc-menu--open":"mdc-menu--closed")},(0,r.default)("ul",{class:"mdc-menu__items mdc-list mdc-list--non-interactive"},this.content.map(function(e){return(0,r.default)("li",{class:"mdc-list-item"},(0,r.default)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer"},e.label))}))))}}]),n.default=o},{mithril:410}],224:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DropdownAsSubNav=void 0;var e=e("mithril"),s=(e=e)&&e.__esModule?e:{default:e};var i=n.DropdownAsSubNav=function(e){function t(t){document.querySelectorAll("."+i.el.className).forEach(function(e){(e?e.contains(t.target):null)||(n(!1),s.default.redraw())})}function n(e){r=e,s.default.redraw()}var i=e.attrs,a=void 0,r=!1,o=void 0;return{oncreate:function(){document.addEventListener("click",t);var e=document.querySelectorAll("div .js-dropdown-as-sub-nav-anchor[id]");e&&e.forEach(function(e){new IntersectionObserver(function(e){e.forEach(function(e){var t=e.target.getAttribute("id");0<e.intersectionRatio&&(e=o.find(function(e){return e.linkKey===t}),a=e.displayName,s.default.redraw())})},{threshold:[0,1]}).observe(e)})},oninit:function(){o=i.data,a=o[0].linkKey,s.default.redraw()},view:function(){return(0,s.default)("div",{class:"nyk-select-text"},(0,s.default)("button",{onclick:function(){return n(!r)},class:"nyk-select-text__select-button"},(0,s.default)("p",null,a),(0,s.default)("span",null,(0,s.default)("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.default)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.50011 0.689453L6.00011 5.18945L10.5001 0.689453L11.5608 1.75011L6.00011 7.31077L0.439453 1.75011L1.50011 0.689453Z",fill:"#07094A"})))),(0,s.default)("div",{class:"nyk-select-text__content "+(r?"":"nyk-select-text__content--hidden")},(0,s.default)("ul",{class:"nyk-select-text__list"},o.map(function(e){return(0,s.default)("li",{onclick:function(){n(!1),s.default.redraw()},class:"nyk-select-text__list-item "+(a===e.displayName?"nyk-select-text__list-item--selected":"")},(0,s.default)("a",{class:"nav-onpage__link",href:"#"+e.linkKey},e.displayName))}))))}}};n.default=function e(t){var n;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");t&&(n={data:t.dataset.content.length?JSON.parse(t.dataset.content):[],el:t},s.default.mount(t,{view:function(){return(0,s.default)(i,n)}}))}},{mithril:410}],221:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var e=e("scrollmonitor"),r=(e=e)&&e.__esModule?e:{default:e};function o(e){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");s.call(this),e&&this.makeWatcher(e)}i(o,[{key:"watcherStateChangeHandler",value:function(){this.isInViewport&&(this.watchItem.classList.add("slide-in"),this.destroy())}}]);var s=function(){var t=this;this.makeWatcher=function(e){e=r.default.create(e);e.stateChange(t.watcherStateChangeHandler),t.watcherStateChangeHandler.call(e)}};n.default=o},{scrollmonitor:423}],423:[function(e,t,n){"use strict";var i,a=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){e[i=void 0===i?n:i]=t[n]},r=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};i=function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Watcher=t.ScrollMonitorContainer=void 0;var n=e("./src/container.js"),i=(Object.defineProperty(t,"ScrollMonitorContainer",{enumerable:!0,get:function(){return n.ScrollMonitorContainer}}),e("./src/watcher.js")),a=(Object.defineProperty(t,"Watcher",{enumerable:!0,get:function(){return i.Watcher}}),r(e("./src/types"),t),e("./src/constants.js")),e=new(e("./src/container.js").ScrollMonitorContainer)(a.isInBrowser?document.body:void 0);a.isInBrowser&&(e.updateState(),e.listenToDOM(),window.scrollMonitor=e),t.default=e},"object"==typeof t&&"object"==typeof t.exports?i(e,n):"function"==typeof define&&define.amd&&define(["require","exports","./src/container.js","./src/watcher.js","./src/types","./src/constants.js","./src/container.js"],i)},{"./src/constants.js":424,"./src/container.js":425,"./src/types":426,"./src/watcher.js":427}],426:[function(e,t,n){"use strict";var i;i=function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"object"==typeof t&&"object"==typeof t.exports?i(0,n):"function"==typeof define&&define.amd&&define(["require","exports"],i)},{}],425:[function(e,t,n){"use strict";var i;i=function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollMonitorContainer=void 0;var o=e("./constants.js"),i=e("./watcher.js");function s(e){return o.isOnServer?0:e===document.body?window.innerHeight||document.documentElement.clientHeight:e.clientHeight}function l(e){return o.isOnServer?0:e===document.body?Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight):e.scrollHeight}function u(e){return o.isOnServer?0:e===document.body?window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop}var n=!1;if(o.isInBrowser)try{var a=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,a)}catch(e){}var r=!!n&&{capture:!1,passive:!0};function c(e,t){this.eventTypes=o.eventTypes;var n,i,a,r=this;this.item=e,this.watchers=[],this.viewportTop=null,this.viewportBottom=null,this.documentHeight=l(e),this.viewportHeight=s(e),this.DOMListener=function(){c.prototype.DOMListener.apply(r,arguments)},t&&(this.containerWatcher=t.create(e)),this.update=function(){if(r.viewportTop=u(e),r.viewportBottom=r.viewportTop+r.viewportHeight,r.documentHeight=l(e),r.documentHeight!==n){for(i=r.watchers.length;i--;)r.watchers[i].recalculateLocation();n=r.documentHeight}for(a=r.watchers.length;a--;)r.watchers[a].update();for(a=r.watchers.length;a--;)r.watchers[a].triggerCallbacks(void 0)},this.recalculateLocations=function(){this.documentHeight=0,this.update()}}c.prototype.listenToDOM=function(){o.isInBrowser&&((this.item===document.body?window:this.item).addEventListener("scroll",this.DOMListener,r),window.addEventListener("resize",this.DOMListener),this.destroy=function(){this.item===document.body?(window.removeEventListener("scroll",this.DOMListener,r),this.containerWatcher.destroy()):this.item.removeEventListener("scroll",this.DOMListener,r),window.removeEventListener("resize",this.DOMListener)})},c.prototype.destroy=function(){},c.prototype.DOMListener=function(e){this.updateState(),this.updateAndTriggerWatchers(e)},c.prototype.updateState=function(){var e=u(this.item),t=s(this.item),n=l(this.item),i=t!==this.viewportHe
1ight||n!==this.contentHeight;if(this.viewportTop=e,this.viewportHeight=t,this.viewportBottom=e+t,this.contentHeight=n,i)for(var a=this.watchers.length;a--;)this.watchers[a].recalculateLocation()},c.prototype.updateAndTriggerWatchers=function(e){for(var t=this.watchers.length;t--;)this.watchers[t].update();for(t=this.watchers.length;t--;)this.watchers[t].triggerCallbacks(e)},c.prototype.createContainer=function(e){e="string"==typeof e?document.querySelector(e):Array.isArray(e)||e instanceof NodeList?e[0]:e,e=new c(e,this);return this.updateState(),e.listenToDOM(),e},c.prototype.create=function(e,t){var n="string"==typeof n?document.querySelector(n):Array.isArray(e)||e instanceof NodeList?e[0]:e,e=new i.Watcher(this,n,t);return this.watchers.push(e),e},c.prototype.beget=function(e,t){return this.create(e,t)},t.ScrollMonitorContainer=c},"object"==typeof t&&"object"==typeof t.exports?i(e,n):"function"==typeof define&&define.amd&&define(["require","exports","./constants.js","./watcher.js"],i)},{"./constants.js":424,"./watcher.js":427}],427:[function(e,t,n){"use strict";var i;i=function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Watcher=void 0;var p=e("./constants.js"),n=(i.prototype.on=function(e,t,n){switch(void 0===n&&(n=!1),!0){case e===p.VISIBILITYCHANGE&&!this.isInViewport&&this.isAboveViewport:case e===p.ENTERVIEWPORT&&this.isInViewport:case e===p.FULLYENTERVIEWPORT&&this.isFullyInViewport:case e===p.EXITVIEWPORT&&this.isAboveViewport&&!this.isInViewport:case e===p.PARTIALLYEXITVIEWPORT&&this.isInViewport&&this.isAboveViewport:if(t.call(this,this),n)return}if(!this.callbacks[e])throw new Error("Tried to add a scroll monitor listener of type "+e+". Your options are: "+p.eventTypes.join(", "));this.callbacks[e].push({callback:t,isOne:n})},i.prototype.off=function(e,t){if(!this.callbacks[e])throw new Error("Tried to remove a scroll monitor listener of type "+e+". Your options are: "+p.eventTypes.join(", "));for(var n,i=0;n=this.callbacks[e][i];i++)if(n.callback===t){this.callbacks[e].splice(i,1);break}},i.prototype.one=function(e,t){this.on(e,t,!0)},i.prototype.recalculateSize=function(){this.watchItem instanceof HTMLElement&&(this.height=this.watchItem.offsetHeight+this.offsets.top+this.offsets.bottom,this.bottom=this.top+this.height)},i.prototype.update=function(){this.isAboveViewport=this.top<this.container.viewportTop,this.isBelowViewport=this.bottom>this.container.viewportBottom,this.isInViewport=this.top<this.container.viewportBottom&&this.bottom>this.container.viewportTop,this.isFullyInViewport=this.top>=this.container.viewportTop&&this.bottom<=this.container.viewportBottom||this.isAboveViewport&&this.isBelowViewport},i.prototype.destroy=function(){var e=this.container.watchers.indexOf(this);this.container.watchers.splice(e,1),this.callbacks={}},i.prototype.lock=function(){this.locked=!0},i.prototype.unlock=function(){this.locked=!1},i);function i(e,t,n){this.container=e,this.watchItem=t,this.locked=!1,this.callbacks={};var i=this;this.offsets=n?"number"==typeof n?{top:n,bottom:n}:{top:("top"in n?n:p.defaultOffsets).top,bottom:("bottom"in n?n:p.defaultOffsets).bottom}:p.defaultOffsets;for(var a,r,o,s,l,u,c=0,d=p.eventTypes.length;c<d;c++)i.callbacks[p.eventTypes[c]]=[];var f=this.locked=!1;function h(e,t){if(f=!0,0!==e.length)for(l=e.length;l--;)(u=e[l]).callback.call(i,t,i),u.isOne&&e.splice(l,1)}this.triggerCallbacks=function(e){this.isInViewport&&!a&&h(this.callbacks[p.ENTERVIEWPORT],e),this.isFullyInViewport&&!r&&h(this.callbacks[p.FULLYENTERVIEWPORT],e),this.isAboveViewport!==o&&this.isBelowViewport!==s&&(h(this.callbacks[p.VISIBILITYCHANGE],e),r||this.isFullyInViewport||(h(this.callbacks[p.FULLYENTERVIEWPORT],e),h(this.callbacks[p.PARTIALLYEXITVIEWPORT],e)),a||this.isInViewport||(h(this.callbacks[p.ENTERVIEWPORT],e),h(this.callbacks[p.EXITVIEWPORT],e))),!this.isFullyInViewport&&r&&h(this.callbacks[p.PARTIALLYEXITVIEWPORT],e),!this.isInViewport&&a&&h(this.callbacks[p.EXITVIEWPORT],e),this.isInViewport!==a&&h(this.callbacks[p.VISIBILITYCHANGE],e),f&&(f=!1,h(this.callbacks[p.STATECHANGE],e)),a=this.isInViewport,r=this.isFullyInViewport,o=this.isAboveViewport,s=this.isBelowViewport},this.recalculateLocation=function(){if(!this.locked){var e=this.top,t=this.bottom;if(this.watchItem.nodeName){for(var n=this.watchItem.style.display,i=("none"===n&&(this.watchItem.style.display=""),0),a=this.container;a.containerWatcher;)i+=a.containerWatcher.top-a.containerWatcher.container.viewportTop,a=a.containerWatcher.container;var r=this.watchItem.getBoundingClientRect();this.top=r.top+this.container.viewportTop-i,this.bottom=r.bottom+this.container.viewportTop-i,"none"===n&&(this.watchItem.style.display=n)}else this.watchItem===+this.watchItem?0<this.watchItem?this.top=this.bottom=this.watchItem:this.top=this.bottom=this.container.documentHeight-this.watchItem:(this.top=this.watchItem.top,this.bottom=this.watchItem.bottom);this.top-=this.offsets.top,this.bottom+=this.offsets.bottom,this.height=this.bottom-this.top,void 0===e&&void 0===t||this.top===e&&this.bottom===t||h(this.callbacks[p.LOCATIONCHANGE],void 0)}},this.recalculateLocation(),this.update(),a=this.isInViewport,r=this.isFullyInViewport,o=this.isAboveViewport,s=this.isBelowViewport}t.Watcher=n;for(var a=0,r=p.eventTypes.length;a<r;a++){var o=p.eventTypes[a];n.prototype[o]=function(n){return function(e,t){this.on.call(this,n,e,t=void 0===t?!1:t)}}(o)}},"object"==typeof t&&"object"==typeof t.exports?i(e,n):"function"==typeof define&&define.amd&&define(["require","exports","./constants.js"],i)},{"./constants.js":424}],424:[function(e,t,n){"use strict";var i;
1i=function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultOffsets=t.isInBrowser=t.isOnServer=t.eventTypes=t.STATECHANGE=t.LOCATIONCHANGE=t.PARTIALLYEXITVIEWPORT=t.EXITVIEWPORT=t.FULLYENTERVIEWPORT=t.ENTERVIEWPORT=t.VISIBILITYCHANGE=void 0,t.VISIBILITYCHANGE="visibilityChange",t.ENTERVIEWPORT="enterViewport",t.FULLYENTERVIEWPORT="fullyEnterViewport",t.EXITVIEWPORT="exitViewport",t.PARTIALLYEXITVIEWPORT="partiallyExitViewport",t.LOCATIONCHANGE="locationChange",t.STATECHANGE="stateChange",t.eventTypes=[t.VISIBILITYCHANGE,t.ENTERVIEWPORT,t.FULLYENTERVIEWPORT,t.EXITVIEWPORT,t.PARTIALLYEXITVIEWPORT,t.LOCATIONCHANGE,t.STATECHANGE],t.isOnServer="undefined"==typeof window,t.isInBrowser=!t.isOnServer,t.defaultOffsets={top:0,bottom:0}},"object"==typeof t&&"object"==typeof t.exports?i(0,n):"function"==typeof define&&define.amd&&define(["require","exports"],i)},{}],146:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=o(e("mithril")),a=o(e("./CarLoanCalculator")),r=o(e("./store/CarLoanCalculatorStore"));function o(e){return e&&e.__esModule?e:{default:e}}n.default=function e(t){var n;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");t&&(n={labels:t.getAttribute("labels")?JSON.parse(t.getAttribute("labels")):null,settings:t.getAttribute("settings")?JSON.parse(t.getAttribute("settings")):null},r.default.mutations.setLabels(n.labels.Labels),r.default.mutations.setSettings(n.settings.Settings),i.default.mount(t,{view:function(){return(0,i.default)(a.default)}}))}},{"./CarLoanCalculator":145,"./store/CarLoanCalculatorStore":147,mithril:410}],145:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=g(e("mithril")),s=g(e("../NykreditModal")),l=e("../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat"),u=e("../../mdc-mithril-init"),c=g(e("../../calculators/NykreditTooltip.js")),d=g(e("../../../../beregnere-tk/javascript-tk-beregnere/components/spinner/ts-spinner")),f=e("../../buttons/GenericButton_WithSpinner.mithril"),h=e("../../buttons/StickyFloatingButton.mithril"),p=e("../../inputfields/GenericRangeSlider.mithril"),m=g(e("./store/CarLoanCalculatorStore")),r=g(e("../../../components/debouncer"));function g(e){return e&&e.__esModule?e:{default:e}}function v(){if(!(this instanceof v))throw new TypeError("Cannot call a class as a function");this.debouncer=new r.default,this.debounceDelay=800}i(v,[{key:"oninit",value:function(){m.default.mutations.createFormAndSettings(),m.default.mutations.createResultTable(),m.default.mutations.createCarLoanPage(),m.default.mutations.setParametersFromUrlQuery(),m.default.actions.shouldCalculateFromUrl()&&this.handleOnClickCalculate()}},{key:"handleOnClickCalculate",value:function(){!!m.default.state.formAndSettings.inputs.carPrice.value&&!!m.default.state.formAndSettings.inputs.downPayment.value?(m.default.mutations.updateCalculateButtonClicked(!0),m.default.mutations.setDataError(!1,""),m.default.mutations.updateValidationStatus(!0),m.default.actions.getCalculation()):(m.default.mutations.setDataError("Not all inputs filled","Venligst udfyld alle felter inden beregning."),m.default.mutations.updateValidationStatus(!1))}},{key:"handleInputRangeCallback",value:function(e,t){m.default.mutations.setInputValue(e,t),m.default.actions.getCalculation()}},{key:"view",value:function(e){var i=this,t=(0,o.default)(s.default,{title:m.default.state.carLoanPage.disclaimerLabel,body:m.default.state.carLoanPage.disclaimerText}),n=m.default.state.spinnerIsActive,a=m.default.state.resultPage,r="nk-billaansberegner-form";return window.addEventListener("scroll",function(){var e=document.getElementById(r),t=document.getElementById("nk-sticky-floating-button"),n=window.scrollY,e=e.offsetTop-500;t&&e<n&&(t.style.display="none"),t&&n<e&&(t.style.display="flex")}),(0,o.default)("div",{class:"section section--no-spacing theme--white"},(0,o.default)("div",{id:"car-loan-calculator",class:"nk-billaansberegner mdc-layout-grid"},(0,o.default)("div",{class:"section"},(0,o.default)("div",{class:"mdc-layout-grid__inner"},(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-1"}),(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-10"},(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3 "+(m.default.state.XHRerror?"varme-beregner__error--shown":"varme-beregner__error--hidden")}),(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6 "+(m.default.state.XHRerror?"varme-beregner__error":"varme-beregner__error--hidden")},(0,o.default)("h2",{class:""},m.default.state.XHRerror?m.default.state.labelErrorMessage:"")),(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3 "+(m.default.state.XHRerror?"varme-beregner__error---shown":"varme-beregner__error--hidden")})),(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-1"}))),(0,o.default)("div",{class:"mdc-layout-grid__inner"},(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-1"}),(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-10"},(0,o.default)("section",{class:"nk-billaansberegner__form mdc-layout-grid__inner mdc-layout-grid__cell--span-12"},(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-4"},(0,o.default)("div",{class:"mdc-form-field"},(0,o.default)("div",{style:"width:100%",class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded mdc-text-field--grey",oncreate:u.createMdcTextfield,onupdate:u.updateMdcTextfield,onremove:u.removeMdc},(0,o.default)("input",{class:"mdc-text-field__input",type:"tel",maxlength:"12",id:"car-price",name:"car-price",min:m.default.state.formAndSettings.inputs.carPrice.min,max:m.default.state.formAndSettings.inputs.carPrice.max,value:(0,l.a
1pplyThousandSeperator)(m.default.state.formAndSettings.inputs.carPrice.value),oninput:function(e){m.default.mutations.setInputValue("carPrice",(0,l.removeNonDigitChars)(e.target.value)),i.debouncer.update(function(){3<e.target.value.length&&(m.default.actions.validateInputValue("carPrice",(0,l.removeNonDigitChars)(e.target.value)),m.default.actions.getCalculation())},i.debounceDelay)}}),(0,o.default)("label",{class:"mdc-floating-label",for:"car-price"},m.default.state.formAndSettings.inputs.carPrice.label),(0,o.default)("span",{class:"varme-beregner__input-postfix"},""+m.default.state.formAndSettings.inputs.carPrice.postFix)))),(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-4"},(0,o.default)("div",{class:"mdc-form-field"},(0,o.default)("div",{style:"width:100%",class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded mdc-text-field--grey",oncreate:u.createMdcTextfield,onupdate:u.updateMdcTextfield,onremove:u.removeMdc},(0,o.default)("input",{class:"mdc-text-field__input",type:"tel",maxlength:"12",id:"own-downpayment",name:"own-downpayment",min:m.default.state.formAndSettings.inputs.downPayment.min,max:m.default.state.formAndSettings.inputs.downPayment.max,value:(0,l.applyThousandSeperator)(m.default.state.formAndSettings.inputs.downPayment.value),oninput:function(e){m.default.mutations.setInputValue("downPayment",(0,l.removeNonDigitChars)(e.target.value)),i.debouncer.update(function(){3<e.target.value.length&&(m.default.actions.validateInputValue("downPayment",(0,l.removeNonDigitChars)(e.target.value)),m.default.actions.getCalculation())},i.debounceDelay)}}),(0,o.default)("label",{class:"mdc-floating-label",for:"own-downpayment"},m.default.state.formAndSettings.inputs.downPayment.label),(0,o.default)("span",{class:"varme-beregner__input-postfix"},""+m.default.state.formAndSettings.inputs.downPayment.postFix)))),(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-4"},(0,o.default)("div",{class:"nk-billaansberegner__cell-flex-wrapper"},(0,o.default)("div",{class:"mdc-form-field nk-billaansberegner__slider"},(0,o.default)(p.GenericRangeSlider,{label:m.default.state.formAndSettings.inputs.loanTerm.label,valueLabel:" "+m.default.state.formAndSettings.inputs.loanTerm.valueLabel,defaultValue:m.default.state.formAndSettings.inputs.loanTerm.max,min:m.default.state.formAndSettings.inputs.loanTerm.min,max:m.default.state.formAndSettings.inputs.loanTerm.max,callback:function(e,t,n){return i.handleInputRangeCallback("loanTerm",t)}})),(0,o.default)("div",{class:"mdc-form-field"},a?"":(0,o.default)(f.GenericButton_WithSpinner,{spinnerState:n,label:m.default.state.formAndSettings.inputs.calculateButton.label,callback:this.handleOnClickCalculate})))))),(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-1"})),a?"":(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},(0,o.default)("div",{class:"nk-billaansberegner__tos mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},(0,o.default)("a",{id:"terms-and-conditions",onclick:function(){t.state.open()},href:"javascript://show disclaimer",class:"nk-billaansberegner__tos-button"},m.default.state.carLoanPage.disclaimerLabel))),t),a?(0,o.default)("div",{class:"nk-billaansberegner__result-content mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},n?(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},(0,o.default)("div",{class:"varme-beregner__spinner"},(0,o.default)(d.default,null))):(0,o.default)("div",{class:"mdc-layout-grid__inner"},(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-2"}),(0,o.default)("div",{class:"mdc-layout-grid__inner mdc-layout-grid__cell--span-8"},(0,o.default)(h.StickyFloatingButton,{label:"Kontakt",href:"#"+r}),(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},(0,o.default)("div",{class:"mdc-layout-grid__inner"},(0,o.default)("section",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12 nk-billaansberegner__cards-container"},(0,o.default)("div",{class:"varme-beregner__card nk-billaansberegner__cards-content-header"},(0,o.default)("div",{class:"nk-billaansberegner__cards-content-header-wrapper"},(0,o.default)("h3",{class:"nk-billaansberegner__cards-content-header-title title mdc-typography--title-sm"},m.default.state.carLoanPage.detailsHeaderTitle),(0,o.default)("div",{class:"nk-billaansberegner__cards-content-header-monthly-payment-wrapper"},(0,o.default)("h4",{class:"nk-billaansberegner__cards-content-header-monthly-payment-title mdc-typography--subtitle"},m.default.state.resultTableData.monthlyPayment.title),(0,o.default)("p",{class:"nk-billaansberegner__cards-content-header-monthly-payment-value title mdc-typography--title-lg"},""+m.default.state.resultTableData.monthlyPayment.value,(0,o.default)("span",{class:"mdc-typography--subtitle"},m.default.state.resultTableData.monthlyPayment.postFix))),(0,o.default)("p",{class:"nk-billaansberegner__cards-content-header-description mdc-typography--subtitle"},o.default.trust(m.default.state.carLoanPage.detailsHeaderDescription)))),(0,o.default)("div",{class:"varme-beregner__card nk-billaansberegner__cards-result-content"},(0,o.default)("div",{class:"nk-billaansberegner__cards-table-padding-wrapper"},(0,o.default)("table",{class:"nk-billaansberegner__cards-table"},(0,o.default)("thead",null,(0,o.default)("tr",null,(0,o.default)("th",{colspan:"2"},(0,o.default)("div",{class:"nk-billaansberegner__cards-table-flex-wrapper"},m.default.state.resultTableData.detailsTable.title,(0,o.default)("span",{class:"nk-billaansberegner__cards-table-title-tooltip"},(0,o.default)(c.default,{text:m.default.state.resultTableData.detailsTable.toolTipText})))))),(0,o.default)("tbody",{class:"nk-billaansberegner__cards-table-body"},Object.keys(m.default.state.resultTableData.detailsTable.tableRows).map(function(e){return(0,o.default)("tr",null,(0,o.default)("td",null,m.default.state.resultTableData.detailsTable.tableRows[e].title),(0,o.default)("td",{class:"nk-billaansberegner__cards-table-value"},m.default.state.resultTableData.detailsTable.tableRows[e].value+" "+m.default.state.resultTableData.detailsTable.tableRows[e].postFix))}),(0,o.default)("tr",null)))),(0,o.default)("div",{class:"nk-billaansberegner__cards-table-padding-wrapper"},(0,o.default)("table",{class:"nk-billaansberegner__cards-table"},(0,o.default)("thead",null,(0,o.default)("tr",null,(0,o.default)("th",{colspan:"2"},(0,o.default)("div",{class:"nk-billaansberegner__cards-table-flex-wrapper"},m.default.state.resultTableData.costsTable.title,(0,o.default)("span",{class:"nk-billaansberegner__cards-table-title-tooltip"},(0,o.default)(c.default,{text:m.default.state.resultTableData.costsTable.toolTipText})))))),(0,o.default)("tbody",{class:"nk-billaansberegner__cards-table-body"},Object.keys(m.default.state.resultTableData.costsTable.tableRows).map(function(e){return(0,o.default)("tr",null,(0,o.default)("td",null,m.default.state.resultTableData.costsTable.tableRows[e].title),(0,o.default)("td",{class:"nk-billaansberegner__cards-table-value"},m.default.state.resultTableData.costsTable.tableRows[e].value+" "+m.default.state.resultTableData.costsTable.tableRows[e].postFix))}),(0,o.default)("tr",null))))),(0,o.default)("div",{class:"mdc-layout-grid__inner"},(0,o.default)("div",{class:"nk-billaansberegner__tos-text mdc-typography--body-xs mdc-layout-grid__cell mdc-layout-grid__cell--span-8"},o.default.trust(m.default.state.carLoanPage.tosDescription)),(0,o.default)("div",{class:"nk-billaansberegner__tos mdc-layout-grid__cell mdc-layout-grid__cell--span-4"},(0,o.default)("a",{id:"terms-and-conditions",onclick:function(){t.state.open()},href:"javascript://show disclaimer",class:"nk-billaansberegner__tos-button
1nk-billaansberegner__tos-button--result-mobile"},m.default.state.carLoanPage.disclaimerLabel))))))),(0,o.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-2"})),t):"")}}]),n.default=v},{"../../../../beregnere-tk/javascript-tk-beregnere/components/spinner/ts-spinner":10,"../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat":17,"../../../components/debouncer":223,"../../buttons/GenericButton_WithSpinner.mithril":132,"../../buttons/StickyFloatingButton.mithril":133,"../../calculators/NykreditTooltip.js":144,"../../inputfields/GenericRangeSlider.mithril":247,"../../mdc-mithril-init":255,"../NykreditModal":143,"./store/CarLoanCalculatorStore":147,mithril:410}],247:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GenericRangeSlider=void 0;var e=e("mithril"),u=(e=e)&&e.__esModule?e:{default:e};n.GenericRangeSlider=function(){var l=void 0;return{oncreate:function(e){e=e.attrs;l=e.defaultValue,u.default.redraw()},view:function(e){var e=e.attrs,t=e.id,n=e.label,i=e.callback,a=e.min,r=e.max,o=e.valueLabel,s=e.disabled,e=e.defaultValue;return(0,u.default)("div",{class:"nk-range-slider"},(0,u.default)("div",{class:"nk-range-slider__labels-container"},(0,u.default)("label",{for:t+n},n),(0,u.default)("label",{for:t+n},void 0===l?e:l," ",o)),(0,u.default)("input",{disabled:s,type:"range",min:a,max:r,value:l,class:"nk-range-slider__slider "+(0<l?"nk-range-slider__slider--active":""),id:t+n,onchange:function(e){return i(t,e.target.value,n)},oninput:function(e){return l=e.target.value}}),(0,u.default)("div",{class:"nk-range-slider__labels-container nk-range-slider__labels-container--min-max"},(0,u.default)("label",{for:t+n},a," ",o),(0,u.default)("label",{for:t+n},r," ",o)))}}}},{mithril:410}],223:[function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.handle=0}Object.defineProperty(n,"__esModule",{value:!0}),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"update",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:350;0!=this.handle&&clearTimeout(this.handle),this.handle=setTimeout(function(){t.handle=0,e()},n)}}]),n.default=a},{}],147:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=e("mithril"),l=(i=i)&&i.__esModule?i:{default:i},a=e("../../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat");var u={state:{labels:void 0,settings:void 0,calculationData:{},calculationDataAvailable:!1,calculateButtonClicked:!1,mobileHeaderExpanded:!1,spinnerIsActive:!1,inputId:"inputid",resultId:"resultid",formId:"",resultPage:!1,validationStatus:!1,baseUrl:window.location.origin,modalPopupData:null,modalWithLinkPopupData:null,resultTableData:void 0,carLoanPage:void 0,formAndSettings:void 0,cardsData:[],labelErrorMessage:"",errorLabels:{},statusCode:0,XHRerror:"",editedState:{Id:null,Status:{Code:"ok",Messages:""},Input:{}}},mutations:{createFormAndSettings:function(){u.state.formAndSettings={inputs:{carPrice:{label:u.actions.getLabel("carPrice"),value:null,min:u.actions.getSetting("carPriceMin"),max:u.actions.getSetting("carPriceMax"),postFix:u.actions.getLabel("currency")},downPayment:{label:u.actions.getLabel("downPayment"),value:null,min:u.actions.getSetting("downPaymentMin"),max:u.actions.getSetting("downPaymentMax"),postFix:u.actions.getLabel("currency")},loanTerm:{label:u.actions.getLabel("loanTerm"),value:u.actions.getSetting("loanTermMax"),min:u.actions.getSetting("loanTermMin"),max:u.actions.getSetting("loanTermMax"),valueLabel:u.actions.getLabel("year")},calculateButton:{label:u.actions.getLabel("calculateButton")}}}},setParametersFromUrlQuery:function(){var e=l.default.parseQueryString(location.search);e.cp&&u.mutations.setInputValue("carPrice",e.cp),e.dp&&u.mutations.setInputValue("downPayment",e.dp),e.lt&&u.mutations.setInputValue("loanTerm",e.lt)},createResultTable:function(){u.state.resultTableData=u.actions.getResultTable()},createCarLoanPage:function(){u.state.carLoanPage={pageTitle:u.actions.getLabel("pageTitle"),pageSubtitle:u.actions.getLabel("pageSubtitle"),disclaimerLabel:u.actions.getLabel("disclaimerLabel"),disclaimerText:u.actions.getLabel("disclaimerText"),tosDescription:u.actions.getLabel("tosDescription"),detailsHeaderTitle:u.actions.getLabel("detailsHeaderTitle"),detailsHeaderDescription:u.actions.getLabel("detailsHeaderDescription"),detailsHeaderReadMoreButtonText:u.actions.getLabel("detailsHeaderReadMoreButtonText"),detailsHeaderCtaButtonText:u.actions.getLabel("detailsHeaderCtaButtonText")}},setDataError:function(e,t){u.state.XHRerror=e,u.state.labelErrorMessage=t,l.default.redraw()},setInputValue:function(e,t){u.state.formAndSettings.inputs[e].value=t},updateCalculationDataAvailability:function(){u.state.calculationDataAvailable=!0},setLabels:function(e){u.state.labels=e},setSettings:function(e){u.state.settings=e},setSpinner:function(){u.state.spinnerIsActive=!0},removeSpinner:function(){u.state.spinnerIsActive=!1},updateResultTable:function(e){u.state.resultTableData=u.actions.getResultTable(e)},updateCarLoanPage:function(){u.state.carLoanPage=getCarLoanPage()},updateFormAndSettings:function(){u.state.formAndSettings=getFormAndSettings()},updateResultPage:function(e){u.state.resultPage=e},updateCalculateButtonClicked:function(e){u.state.calculateButtonClicked=e}
1,updateValidationStatus:function(e){u.state.validationStatus=e}},actions:{getLabel:function(e){var t=u.state.labels[e];return t||console.error("Label does not exist",e),t||"["+e+"]"},getSetting:function(e){var t=u.state.settings[e];return 0==t?0:(t||0==t||console.error("Setting does not exist",e),t||"["+e+"]")},shouldCalculateFromUrl:function(){var e=l.default.parseQueryString(location.search);return e.cp&&e.dp&&e.lt},getResultTable:function(e){return e=e||{annualPercentageRate:0,borrowingRate:0,customerBenefit:0,fixedRegistrationFee:0,monthlyPayment:0,mortgageInsurance:0,principal:0,totalCost:0,totalInterest:0,totalRepayment:0,variableRegistrationFee:0,loanOriginationFee:0},{monthlyPayment:{title:u.actions.getLabel("monthlyPayment"),value:(0,a.danishValue)(e.monthlyPayment,0),postFix:u.actions.getLabel("currency")},detailsTable:{title:u.actions.getLabel("detailsTitle"),toolTipText:u.actions.getLabel("detailsToolTipText"),tableRows:{downPayment:{title:u.actions.getLabel("downPayment"),value:(0,a.danishValue)(u.state.formAndSettings.inputs.downPayment.value,0),postFix:u.actions.getLabel("currency")},loanTerm:{title:u.actions.getLabel("loanTerm"),value:u.state.formAndSettings.inputs.loanTerm.value,postFix:u.actions.getLabel("year")},loanPrincipal:{title:u.actions.getLabel("loanPrincipal"),value:(0,a.danishValue)(e.principal,0),postFix:u.actions.getLabel("currency")},totalRepayment:{title:u.actions.getLabel("totalRepayment"),value:(0,a.danishValue)(e.totalRepayment,0),postFix:u.actions.getLabel("currency")},borrowingRate:{title:u.actions.getLabel("borrowingRate"),value:(0,a.danishValue)(100*e.borrowingRate,2),postFix:u.actions.getLabel("procent")},annualPercentageRate:{title:u.actions.getLabel("annualPercentageRate"),value:(0,a.danishValue)(100*e.annualPercentageRate,2),postFix:u.actions.getLabel("procent")},durationInMonths:{title:u.actions.getLabel("durationInMonths"),value:(0,a.danishValue)(12*u.state.formAndSettings.inputs.loanTerm.value,0),postFix:u.actions.getLabel("months")}}},costsTable:{title:u.actions.getLabel("costsTitle"),toolTipText:u.actions.getLabel("costsToolTipText"),tableRows:{totalInterest:{title:u.actions.getLabel("totalInterest"),value:(0,a.danishValue)(e.totalInterest,0),postFix:u.actions.getLabel("currency")},variableRegistrationFee:{title:u.actions.getLabel("variableRegistrationFee"),value:(0,a.danishValue)(e.variableRegistrationFee,0),postFix:u.actions.getLabel("currency")},fixedRegistrationFee:{title:u.actions.getLabel("fixedRegistrationFee"),value:(0,a.danishValue)(e.fixedRegistrationFee,0),postFix:u.actions.getLabel("currency")},loanOriginationFee:{title:u.actions.getLabel("loanOriginationFee"),value:(0,a.danishValue)(u.actions.getSetting("loanOriginationFeeValue"),0),postFix:u.actions.getLabel("currency")},totalCost:{title:u.actions.getLabel("totalCost"),value:(0,a.danishValue)(e.totalCost,0),postFix:u.actions.getLabel("currency")}}}}},validateInputValue:function(e,t){if(t>u.state.formAndSettings.inputs[e].max){var n="Den øvre grænse for "+u.state.formAndSettings.inputs[e].label+" er blevet overskrevet. Vælg venligst en værdi under "+(0,a.applyThousandSeperator)(u.state.formAndSettings.inputs[e].max);u.mutations.setDataError("Max value exceded",n)}else{if(!(u.state.formAndSettings.inputs[e].min>t))return u.state.formAndSettings.inputs[e].value=t,u.mutations.setDataError(!1,""),u.mutations.updateValidationStatus(!0),t;n="Minimumsværdien for "+u.state.formAndSettings.inputs[e].label+" er ikke blevet overholdt. Vælg venligst en værdi over "+(0,a.applyThousandSeperator)(u.state.formAndSettings.inputs[e].min);u.mutations.setDataError("Min value not met",n)}u.mutations.updateValidationStatus(!1)},validateRelativeDownpayment:function(e,t){var n;(e=parseInt(e,10))<.2*(t=parseInt(t,10))?(n="Din udbetaling skal være min. 20% af bilens pris (min. "+(0,a.danishValue)(.2*t,0)+"kr.)",u.mutations.setDataError("Downpayment not 20% of car value.",n),u.mutations.updateValidationStatus(!1)):t==e?(u.mutations.setDataError("Car value cannot be the same as downpayment.","Bilens værdi kan ikke være den samme som din udbetaling."),u.mutations.updateV
1alidationStatus(!1)):t-e<5e4&&0<t-e?(n="Bilens værdi skal være mindst 50.000 kr højere end udbetalingen (min. "+(0,a.danishValue)(Number(e)+5e4,0)+"kr.)",u.mutations.setDataError("Car value not 20% higher than downpayment.",n),u.mutations.updateValidationStatus(!1)):t<e?(u.mutations.setDataError("Downpayment cannot be higher than the car value.","Din udbetaling kan ikke være højere end bilens værdi."),u.mutations.updateValidationStatus(!1)):Number.isNaN(t)?(n="Bilens værdi skal være mindst 50.000 kr højere end udbetalingen (min. "+(0,a.danishValue)(Number(e)+5e4,0)+"kr.)",u.mutations.setDataError("Car value is undefined.",n),u.mutations.updateValidationStatus(!1)):Number.isNaN(e)?(n="Din udbetaling skal være min. 20% af bilens pris (min. "+(0,a.danishValue)(.2*t,0)+"kr.)",u.mutations.setDataError("Downpayment is undefined.",n),u.mutations.updateValidationStatus(!1)):(u.mutations.setDataError(!1,""),u.mutations.updateValidationStatus(!0))},showForm:function(){document.getElementById("nk-billaansberegner-form").style.display="block"},getCalculation:function(){var e=!!u.state.formAndSettings.inputs.carPrice.value&&!!u.state.formAndSettings.inputs.downPayment.value,t=u.state.XHRerror,n=u.state.calculateButtonClicked,i=u.state.validationStatus;if(!e||t||!n||!i)return!1;var a,e=new URLSearchParams,r=u.actions.validateInputValue("downPayment",u.state.formAndSettings.inputs.downPayment.value),o=u.actions.validateInputValue("carPrice",u.state.formAndSettings.inputs.carPrice.value),s=u.actions.validateInputValue("loanTerm",u.state.formAndSettings.inputs.loanTerm.value),t=(e.set("downpayment",r),e.set("carPrice",o),e.set("loanTerm",s),u.actions.validateRelativeDownpayment(r,o),new URL(u.state.baseUrl+"/api/carloancalculator/calculate/"));t.search=e.toString(),u.state.validationStatus&&(a=u.actions.buildNewUrlWithQueryData(r,o,s),n=u.state.baseUrl+window.location.pathname+"?"+l.default.buildQueryString(a),u.actions.AddCalculationToCookie(n),l.default.request({method:"GET",url:t}).then(function(e){e.isError?u.mutations.setDataError(e.isError,e.errMsg):(u.mutations.updateResultTable(e),u.mutations.updateResultPage(!0),u.mutations.updateCalculationDataAvailability(),history.pushState(a,"Update parameters","?"+l.default.buildQueryString(a)),u.mutations.setDataError(!1,""),u.actions.showForm()),window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event.beregn_elbil",eventCategory:"beregn",eventAction:"elbil",eventLabel:"submit",eventValue:0,carPrice:o,carDownpayment:r,loanTerm:s,eventNoninteraction:!0,userType:"privat"}),l.default.redraw()}).catch(function(e){console.error("Error while getting calculation",e),u.mutations.removeSpinner()}))},buildNewUrlWithQueryData:function(e,t,n){var i=l.default.parseQueryString(location.search);return i.cp=t,i.dp=e,i.lt=n,i},openModalPopup:function(e){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - billånsberegner",eventLabel:"info læs mere",eventValue:0,eventNoninteraction:!0}),u.mutations.toggleModalPopup(e),l.default.redraw()},closeModalPopup:function(e){u.mutations.toggleModalPopup(e),l.default.redraw()},openModalWithLinkPopup:function(e){u.mutations.toggleModalWithLinkPopup(e),l.default.redraw()},closeModalWithLinkPopup:function(e){u.mutations.toggleModalWithLinkPopup(e),l.default.redraw()},AddCalculationToCookie:function(e){var t="; expires="+new Date(Date.now()+864e5).toUTCString();document.cookie="greenCarLoanCalculation="+e+t+"; path=/; SameSite=Lax"}}};n.default=u},{"../../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat":17,mithril:410}],132:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GenericButton_WithSpinner=void 0;var i=e("mithril"),a=(i=i)&&i.__esModule?i:{default:i},r=e("../../components/loading/LoadingSpinner.mithril");n.GenericButton_WithSpinner=function(){return{view:function(e){var e=e.attrs,t=e.callback,n=e.spinnerState,e=e.label;return(0,a.default)("button",{disabled:n,onclick:function(){return t()},class:"nk-button "+(n?"nk-button__spinner-is-active":"")},n?(0,a.default)(r.LoadingSpinner,{height:23,width:23,strokeWidth:6}):e)}}}},{"../../components/loading/LoadingSpinner.mithril":254,mithril:410}],254:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LoadingSpinner=void 0;
1var e=e("mithril"),i=(e=e)&&e.__esModule?e:{default:e};n.LoadingSpinner=function(){return{view:function(e){var e=e.attrs,t=e.height,n=e.width,e=e.strokeWidth;return(0,i.default)("div",{class:"tk-loader"},(0,i.default)("svg",{width:void 0===n?65:n,height:void 0===t?65:t,viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg"},(0,i.default)("circle",{class:"path",fill:"none","stroke-width":void 0===e?6:e,"stroke-linecap":"round",cx:"33",cy:"33",r:"30"})))}}}},{mithril:410}],134:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=g(e("powerform")),s=g(e("../NykreditModal")),l=g(e("mithril")),a=e("validatex"),u=e("../../../components/buttons/StickyFloatingButton.mithril"),r=g(e("../HeatingSystemLoanCalculator/InputField")),c=g(e("../HeatingSystemLoanCalculator/HeatingSystemLoanCard")),o=g(e("../HeatingSystemLoanCalculator/HeatingSystemLoanCardMobile")),d=g(e("../HeatingSystemLoanCalculator/store/HeatingSystemCalculatorStore")),f=g(e("../../calculators/NykreditTooltip.js")),h=g(e("../../../../beregnere-tk/javascript-tk-beregnere/components/spinner/ts-spinner")),p=e("../../mdc-mithril-init"),m=e("../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat");function g(e){return e&&e.__esModule?e:{default:e}}function v(e){switch(e.toLowerCase()){case"other":return"Anden";case"electric_heating":return"Elvarme";case"gas":return"Gas";case"oil":return"Oliefyr";case"district_heating":return"Fjernvarme";case"heat_pump":return"Varmepumpe";case"wood_pellets":return"Træpiller";case"solar_heating":return"Solvarme";case"wood_burning_stove":return"Brændeovn";default:return""}}function _(e,t){e=Number((0,m.removeNonDigitChars)(e)),t(e=isNaN(e)?0:e)}function y(e){d.default.actions.postEditedStateResults(function(){},e)}function b(){var e,t=document.querySelector("#varme-beregner-select");null!=t&&(e=t.querySelector("varme-beregner-select__icon"),t.classList.contains("varme-beregner-select__focused")?t.classList.remove("varme-beregner-select__focused"):t.classList.add("varme-beregner-select__focused"),null!=e)&&(t.classList.contains("varme-beregner-select__focused")?e.classList.add("active"):e.classList.remove("active"))}function k(){var e,t=document.querySelector("#varme-beregner-select");null!=t&&(e=t.querySelector("varme-beregner-select__icon"),t.classList.remove("varme-beregner-select__focused"),null!=e)&&e.classList.remove("active")}n.default=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");l.default.mount(t,{view:function(){return(0,l.default)(T,JSON.parse(t.getAttribute("attrs")))}})};var w=["district_heating","electric_heating","heat_pump","gas","oil","solar_heating","wood_burning_stove","wood_pellets","other"],S={view:function(e){var n=e.attrs.cardLabels,t=e.attrs.headerLabels,i=e.attrs.modalLabels,a=(0,l.default)(s.default,{title:i.TosTitle,body:i.TosBody}),e=1===d.default.state.cardsData.length,r=!e,o="heating-system-contact-form";return window.addEventListener("scroll",function(){var e=document.getElementById(o),t=document.getElementById("nk-sticky-floating-button"),n=window.scrollY,e=e.offsetTop-1e3;t&&e<n&&(t.style.display="none"),t&&n<e&&(t.style.display="flex")}),(0,l.default)("div",{style:"display:none",id:d.default.state.resultId,class:"mdc-layout-grid__inner"},(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-1"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-10 varme-beregner__secondary-input-container"},(0,l.default)("div",{class:"mdc-layout-grid__inner"},(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3",style:"display: flex;"},(0,l.default)("div",{class:"mdc-form-field mdc-form-field--inline",style:"width:50%"},(0,l.default)("img",{src:"/assets/images/nykredit-house.svg",alt:"Temp alt text",class:"icon icon--stroke varme-beregner__image varme-beregner__image--max-height","aria-hidden":"true"})),(0,l.default)("div",{style:"width:50%; margin-left: 15px"},(0,l.default)("div",null,d.default.state.inputAddress.split(",")[0]?d.default.state.inputAddress.split(",")[0]:""),(0,l.default)("div",{style:"padding-bottom: 4px"},d.default.state.inputAddress.split(",",2).slice(1).join(",")?d.default.state.inputAddress.split(",").slice(1).join(","):""),(0,l.default)("a",{class:"varme-beregner__edit-address-button",onclick:function(e){return d.default.actions.changeWindowState()}},t.ChangeAddressButtonLabel))),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3"},(0,l.default)("span",{class:"varme-beregner__tooltip"},(0,l.default)(f.default,{text:t.AreaInputTooltip})," "),(0,l.default)("div",{class:"mdc-form-field"},(0,l.default)("div",{style:"width:100%",class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded mdc-text-field--white",oncreate:p.createMdcTextfield,onremove:p.removeMdc},(0,l.default)("input",{class:"mdc-text-field__input",type:"tel",maxlength:"12",id:"living-space",n
1ame:"living-space",min:"0",max:"10000000000",onchange:function(e){_(e.target.value,d.default.mutations.setAreaOfHouse),y(!0)},oninput:function(e){_(e.target.value,d.default.mutations.setAreaOfHouse)},value:(0,m.applyThousandSeperator)(d.default.state.editedState.Input.Area)}),(0,l.default)("label",{class:"mdc-floating-label",for:"living-space"},t.LivingSpaceInputPlaceholder),(0,l.default)("span",{class:"varme-beregner__input-postfix"},"kvm")))),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3"},(0,l.default)("span",{class:"varme-beregner__tooltip"},(0,l.default)(f.default,{text:t.CurrentHeatingSystemInputTooltip})," "),(0,l.default)("div",{class:"mdc-form-field"},(0,l.default)("div",{id:"varme-beregner-select",class:"mdc-select varme-beregner-select varme-beregner-select__outlined js-mdc-select",oncreate:p.createMdcSelect,onremove:p.removeMdc,onclick:b},(0,l.default)("select",{class:"mdc-select__native-control varme-beregner-select__control",id:"heating-system",onchange:function(e){d.default.mutations.setHeatingSource(e.target.value),y(!0)},onblur:k},(0,l.default)("option",{value:"",disabled:!0,selected:!0},"Vælg én"),w.map(function(e){return(0,l.default)("option",{selected:e===d.default.state.editedState.Input.varme_name,value:e},v(e))})),(0,l.default)("label",{for:"heating-system",class:"mdc-floating-label varme-beregner-select__label"},t.HeatingSystemInputPlaceholder),(0,l.default)("span",{class:"varme-beregner-select__icon"},(0,l.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"2",fill:"none"},(0,l.default)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,l.default)("polyline",{points:"15 6 9 12 15 18"})))))),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3"},(0,l.default)("span",{class:"varme-beregner__tooltip"},(0,l.default)(f.default,{text:t.ConsumptionInputTooltip})," "),(0,l.default)("div",{class:"mdc-form-field"},(0,l.default)("div",{class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded mdc-text-field--white",oncreate:p.createMdcTextfield,onremove:p.removeMdc},(0,l.default)("input",{class:"mdc-text-field__input",type:"tel",maxlength:"12",id:"yearly-expenses",name:"yearly-expenses",min:"0",max:"10000000000",onchange:function(e){_(e.target.value,d.default.mutations.setHeatingAnnualConsumption),y(!1)},oninput:function(e){_(e.target.value,d.default.mutations.setHeatingAnnualConsumption)},value:(0,m.applyThousandSeperator)(d.default.state.editedState.Input.Consumption)}),(0,l.default)("label",{class:"mdc-floating-label",for:"yearly-expenses"},t.YearlyExpensesInputPlaceholder),(0,l.default)("span",{class:"varme-beregner__input-postfix"},"kr.")))))),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-1"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12",style:"background-color: #f7f6f5"},d.default.state.spinnerIsActive?(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},(0,l.default)("div",{class:"varme-beregner__spinner"},(0,l.default)(h.default,null))):(0,l.default)("div",{class:"mdc-layout-grid__inner"},(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12 varme-beregner__subtitle"},(0,l.default)("div",null,t.ResultTitle,(0,l.default)("span",{class:"varme-beregner__tooltip"},(0,l.default)(f.default,{text:t.ResultTitleTooltip})," "))),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3 "+(d.default.state.XHRerror?"varme-beregner__error--shown":"varme-beregner__error--hidden")}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6 "+(d.default.state.XHRerror?"varme-beregner__error":"varme-beregner__error--hidden")},(0,l.default)("h2",{class:""},d.default.state.XHRerror?d.default.state.labelErrorMessage:"")),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3 "+(d.default.state.XHRerror?"varme-beregner__error---shown":"varme-beregner__error--hidden")}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-1"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-10 varme-beregner__cards-container"},(0,l.default)(u.StickyFloatingButton,{label:"Kontakt",href:"#"+o}),(0,l.default)("div",{class:"mdc-layout-grid__inner"},r?d.default.state.cardsData.map(function(e,t){return 1==t?l.default.fragment({},[(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6 mdc-layout-grid__cell--span-8-tablet"},(0,l.default)("div",{class:"varme-beregner__card"}
1,(0,l.default)(c.default,{labels:n,modalLabels:i,state:e})),(0,l.default)("a",{class:"varme-beregner__tos-button",href:"javascript://show disclaimer",onclick:function(){a.state.open()}},i.TosTitle))]):(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6 mdc-layout-grid__cell--span-8-tablet"},(0,l.default)("div",{class:"varme-beregner__card"},(0,l.default)(c.default,{labels:n,modalLabels:i,state:e})))}):e&&d.default.state.cardsData.map(function(e){return(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},(0,l.default)("div",{class:"mdc-layout-grid__inner"},(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6 mdc-layout-grid__cell--span-8-tablet"},(0,l.default)("div",{class:"varme-beregner__card"},(0,l.default)(c.default,{labels:n,modalLabels:i,state:e})),(0,l.default)("a",{class:"varme-beregner__tos-button",href:"javascript://show disclaimer",onclick:function(){a.state.open()}},i.TosTitle)),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3"})))}))),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-1"}))),a)}},x={view:function(e){var t=e.attrs.attrs,n=e.attrs.attrs.FrontpageLabels,e=e.attrs.attrs.ModalLabels,i=(0,l.default)(s.default,{title:e.TosTitle,body:e.TosBody});return(0,l.default)("div",{id:d.default.state.inputId,class:"mdc-layout-grid__inner mdc-layout-grid__inner-phone"},(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6"},(0,l.default)("div",{class:"intro"},(0,l.default)("h2",{class:"mdc-typography--title-lg",style:"color: #07094a;"},n.Title),(0,l.default)("h3",{class:"mdc-typography--subtitle preserve-linebreaks"},n.Description))),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3 mdc-layout-grid__cell--span-0-phone"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6 "+(d.default.state.XHRerror?"varme-beregner__error":"")},(0,l.default)("h2",{class:""},d.default.state.XHRerror?d.default.state.labelErrorMessage:"")),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3 mdc-layout-grid__cell--span-0-phone"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3 mdc-layout-grid__cell--span-0-phone"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6 mdc-layout-grid__cell--span-8-tablet"},(0,l.default)("div",{class:"varme-beregner__input-container"},(0,l.default)(r.default,{labels:n.AddressFieldLabels,componentAttrs:t}))),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6"},(0,l.default)("div",{class:"mdc-layout-grid__inner"},(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-9"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3 mdc-layout-grid__cell--span-0-phone"},(0,l.default)("a",{class:"varme-beregner__tos-button",href:"javascript://show disclaimer",onclick:function(){i.state.open()}},e.TosTitle)))),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3 mdc-layout-grid__cell--span-0-phone"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-4 mdc-layout-grid__cell--span-0-phone"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-4 mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone varme-beregner__image-container"},(0,l.default)("img",{src:"/assets/images/nykredit-house.svg",alt:"Temp alt text",class:"icon icon--stroke varme-beregner__image","aria-hidden":"true"})),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-4 mdc-layout-grid__cell--span-0-phone"}),i)}},C={view:function(e){var a=this,n=e.attrs.cardLabels,i=e.attrs.modalLabels,e=e.attrs.headerLabels;d.default.state.cardsData.length,this.state=d.default.state;return(0,l.default)("div",{style:"display:none;",id:d.default.state.resultId,class:"mdc-layout-grid__inner"},(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-8",style:"padding-top: 16px;"},(0,l.default)("span",{class:"varme-beregner__mobile-back-btn",onclick:function(e){return d.default.actions.changeWindowState()}},(0,l.default)("svg",{width:"40px",height:"40px",viewBox:"0 0 40 40",version:"1.1"},(0,l.default)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,l.default)("g",{transform:"translate(-16.000000, -192.000000)"},(0,l.default)("g",{transform:"translate(16.000000, 192.000000)"},(0,l.default)("circle",{fill:"#FFFFFF",cx:"20",cy:"20",r:"20"}),(0,l.default)("g",{transform:"translate(12.000000, 14.000000)",stroke:"var(--colortheme-icon)","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},(0,l.default)("line",{x1:"0",y1:"6",x2:"16.5",y2:"6"}),(0,l.default)("polyline",{points:"6 12 0 6 6 0"})))))))),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-8 varme-beregner__result-title"},e.ResultTitle),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-8"},(0,l.default)("div",{class:"accordion js-accordion varme-beregner__mobile-header"},(0,l.default)("div",{class:"accordion__item varme-beregner__accordion-item-card"},(0,l.default)("button",{class:"accordion__item-handler js-accordion-handler",type:"button",onclick:function(e){var t,n,i;(t=a.state).mobileHeaderExpanded=!t.mobileHeaderExpanded,t=e,e=a.state.mobileHeaderExpanded,t=t.target,null!=(i=t.nextElementSibling)&&(i.classList.remove("accordion-open"),n=i.firstChild.getBoundingClientRect().height,i.style.height=e?n+"px":"0px",
1i=t.parentElement)&&(i.classList.contains("accordion__item--white")?i.classList.remove("accordion__item--white"):i.classList.add("accordion__item--white"))}},(0,l.default)("div",{class:"accordion__item-label varme-beregner__accordion"},(0,l.default)("div",{class:"varme-beregner__mobile-header-container"},(0,l.default)("div",{class:"varme-beregner__mobile-header-img"},(0,l.default)("img",{src:"/assets/images/nykredit-house.svg",alt:"Temp alt text",class:"icon icon--stroke varme-beregner__image","aria-hidden":"true"})),(0,l.default)("div",null,d.default.state.inputAddress)),(0,l.default)("span",{class:this.state.mobileHeaderExpanded?"active":""},(0,l.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"2",fill:"none"},(0,l.default)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,l.default)("polyline",{points:"15 6 9 12 15 18"}))))),(0,l.default)("div",{class:"accordion__item-content js-accordion-content",ontransitionend:function(e){e=e.target,a.state.mobileHeaderExpanded&&e.classList.add("accordion-open")}},(0,l.default)("div",{class:"varme-beregner__accordion-item"},(0,l.default)("div",{class:"varme-beregner__space-between varme-beregner__vertical-center"},(0,l.default)("label",{class:"mdc-typography--body-xs mdc-typography--no-bottom-margin",for:"living-space"},e.LivingSpaceInputPlaceholder),(0,l.default)("div",{class:"mdc-form-field"},(0,l.default)("div",{class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded varme-beregner__input-small",oncreate:p.createMdcTextfield,onremove:p.removeMdc},(0,l.default)("input",{class:"mdc-text-field__input",type:"tel",maxlength:"12",id:"living-space",name:"living-space",min:"0",style:"text-align: right; font-size: 14px !important;",max:"10000000000",onchange:function(e){_(e.target.value,d.default.mutations.setAreaOfHouse),y(!0)},oninput:function(e){_(e.target.value,d.default.mutations.setAreaOfHouse)},value:(0,m.applyThousandSeperator)(d.default.state.editedState.Input.Area)}),(0,l.default)("span",{class:"varme-beregner__input-postfix"},"kvm")))),(0,l.default)("div",{class:"varme-beregner__space-between varme-beregner__vertical-center"},(0,l.default)("label",{for:"heating-system",class:"mdc-typography--body-xs mdc-typography--no-bottom-margin"},e.HeatingSystemInputPlaceholder),(0,l.default)("div",{class:"mdc-form-field"},(0,l.default)("div",{id:"varme-beregner-select",class:"mdc-select varme-beregner-select varme-beregner-select__outlined js-mdc-select varme-beregner__input-small",oncreate:p.createMdcSelect,onremove:p.removeMdc,onclick:b},(0,l.default)("select",{class:"mdc-select__native-control varme-beregner-select__control",id:"heating-system",style:"text-align: right; font-size: 14px !important;",oninput:function(e){d.default.mutations.setHeatingSource(e.target.value),y(!0)},onblur:k},(0,l.default)("option",{value:"",disabled:!0,selected:!0},"Vælg én"),w.map(function(e){return(0,l.default)("option",{selected:e===d.default.state.editedState.Input.varme_name,value:e},v(e))}))))),(0,l.default)("div",{class:"varme-beregner__space-between varme-beregner__vertical-center"},(0,l.default)("label",{class:"mdc-typography--body-xs mdc-typography--no-bottom-margin",for:"yearly-expenses"},e.YearlyExpensesInputPlaceholder),(0,l.default)("div",{class:"mdc-form-field"},(0,l.default)("div",{class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded varme-beregner__address-list varme-beregner__input-small",oncreate:p.createMdcTextfield,onremove:p.removeMdc},(0,l.default)("input",{class:"mdc-text-field__input",type:"tel",style:"text-align: right; font-size: 14px !important;",maxlength:"12",id:"yearly-expenses",name:"yearly-expenses",min:"0",max:"10000000000",oninput:function(e){_(e.target.value,d.default.mutations.setHeatingAnnualConsumption),y(!1)},value:(0,m.applyThousandSeperator)(d.default.state.editedState.Input.Consumption)}),(0,l.default)("span",{class:"varme-beregner__input-postfix"},"kr."))))))))),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6 mdc-layout-grid__cell--span-8-tablet"},(0,l.default)("div",{class:"mdc-layout-grid__inner varme-beregner__card__container"},d.default.state.spinnerIsActive?(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},(0,l.default)("div",{class:"varme-beregner__spinner"},(0,l.default)(h.default,null))):l.default.fragment({},[d.default.state.cardsData.map(function(e,t){return 1==t?l.default.fragment({},[(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6 mdc-layout-grid__cell--span-8-tablet varme-beregner__card"}
1,(0,l.default)(o.default,{labels:n,modalLabels:i,state:e,customId:"cardOne"}))]):(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-6 mdc-layout-grid__cell--span-8-tablet varme-beregner__card"},(0,l.default)(o.default,{labels:n,modalLabels:i,state:e,customId:"cardTwo"}))}),(0,l.default)("div",{class:"mdc-layout-grid__inner"},(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-8"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-8 varme-beregner__button-container"},(0,l.default)("a",{target:"_blank",href:"",class:"mdc-button mdc-button--raised mdc-button--primary varme-beregner__button varme-beregner__mobile-footer-button"},n.LoanInformationButtonLabel)),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-8"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-8"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-8"}),(0,l.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-8"}))]))))}},T={form:(0,i.default)({unused_value:{default:"80",validator:[(0,a.required)(!0)],modifier:function(e,t){return""}}}),oninit:function(e){e=e.attrs;d.default.mutations.setInputId(e.InputId),d.default.mutations.setFormId(e.FormId),d.default.mutations.setResultId(e.ResultId)},oncreate:function(e){e.attrs;e=l.default.parseQueryString(location.search);null!=e.address&&(null!=e.address&&d.default.mutations.updateDawaAddressID(e.address),null!=e.area&&d.default.mutations.setAreaOfHouse(e.area),null!=e.consumption&&d.default.mutations.setHeatingAnnualConsumption(e.consumption),null!=e.heating_type&&d.default.mutations.setHeatingSource(e.heating_type),null!=e.streetName&&d.default.mutations.updateStreetName(e.streetName),null!=e.houseNumber&&d.default.mutations.updateHouseNumber(e.houseNumber),null!=e.postcode&&d.default.mutations.updatePostcode(e.postcode),y(!1),d.default.actions.changeWindowState())},view:function(e){var e=e.attrs,t=(0<window.innerWidth?window.innerWidth:screen.width)<1e3;return(0,l.default)("div",{class:"varme-beregner__container"},(0,l.default)(x,{attrs:e}),t?(0,l.default)(C,{headerLabels:e.ResultHeaderLabels,cardLabels:e.ResultCardLabels,modalLabels:e.ModalLabels}):(0,l.default)(S,{headerLabels:e.ResultHeaderLabels,cardLabels:e.ResultCardLabels,modalLabels:e.ModalLabels}))}}},{"../../../../beregnere-tk/javascript-tk-beregnere/components/spinner/ts-spinner":10,"../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat":17,"../../../components/buttons/StickyFloatingButton.mithril":133,"../../calculators/NykreditTooltip.js":144,"../../mdc-mithril-init":255,"../HeatingSystemLoanCalculator/HeatingSystemLoanCard":135,"../HeatingSystemLoanCalculator/HeatingSystemLoanCardMobile":136,"../HeatingSystemLoanCalculator/InputField":137,"../HeatingSystemLoanCalculator/store/HeatingSystemCalculatorStore":141,"../NykreditModal":143,mithril:410,powerform:416,validatex:432}],137:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){function t(e,t){return t.AddressInputTooltip,(0,s.default)("section",{class:"mdc-layout-grid__inner"},(0,s.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-9 mdc-layout-grid__cell--span-4-phone"},(0,s.default)("div",{class:"mdc-form-field"},(0,s.default)("div",{class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded varme-beregner__address-list mdc-text-field--white",oncreate:i.createMdcTextfield,onremove:i.removeMdc},(0,s.default)("input",{class:"mdc-text-field__input",type:"text",id:"dawa-address-input",name:"dawa-address-input",value:u.default.state.inputAddress}),(0,s.default)("label",{class:"mdc-floating-label",for:"dawa-address-input"},t.InputPlaceholder)))),(0,s.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3 mdc-layout-grid__cell--span-4-phone varme-beregner__button-container"},(0,s.default)("button",{id:"dawa-address-submit-button",disabled:!u.default.state.dawaAddressResult,type:"submit",class:"mdc-button mdc-button--raised mdc-button--primary varme-beregner__button",onclick:function(){u.default.actions.initialCalculation(function(){u.default.actions.changeWindowState()})}},t.CalculateButtonLabel)))}return{oncreate:function(e){u.default.mutations.extractFromAttrs(e.attrs.componentAttrs);var t=e.dom.querySelector("#dawa-address-input"),n=s.default.parseQueryString(location.search),i=n.address,a=n.streetName,r=n.houseNumber,n=n.postcode,o=(l.dawaAutocomplete(t,{select:function(e){u.default.mutations.updateDawaAddressResult(e.tekst,e.tekst),u.default.mutations.updateDawaAddressID(e.data.id),u.default.mutations.updateStreetName(e.data.vejnavn),u.default.mutations.updateHouseNumber(e.data.husnr),u.default.mutations.updatePostcode(e.data.postnr)},id:i,street:a,number:r,postcode:n}),e.dom.querySelector("#dawa-address-submit-button"));t.addEventListener("keypress",function(e){13==(e.which||e.keyCode||0)&&u.default.state.dawaAddressResult&&o.click()})},view:function(e){u.default.state.XHRerror;return t(0,e.attrs.labels)}}};
1var s=a(e("mithril")),l=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(e("dawa-autocomplete2")),u=a(e("../HeatingSystemLoanCalculator/store/HeatingSystemCalculatorStore")),i=(a(e("../../calculators/NykreditTooltip.js")),e("../../mdc-mithril-init"));function a(e){return e&&e.__esModule?e:{default:e}}},{"../../calculators/NykreditTooltip.js":144,"../../mdc-mithril-init":255,"../HeatingSystemLoanCalculator/store/HeatingSystemCalculatorStore":141,"dawa-autocomplete2":405,mithril:410}],136:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{view:function(e){var n=this,t=(a.default.state.XHRerror,this.state=e.attrs.state,this.labels=e.attrs.labels,this.modalLabels=e.attrs.modalLabels,_(this.state.heatingId,this.modalLabels)),e=(this.showTkSubsidy=!("oil"!=a.default.state.editedState.Input.varme_name&&"gas"!=a.default.state.editedState.Input.varme_name||"7"!=this.state.heatingId&&"6"!=this.state.heatingId),this.customId=e.attrs.customId,this.savingIsValid=this.state.yearlySavings.savingIsValid,this.labels.DisclaimerPreamble),e="*"+(e?e+"\n":"")+this.labels.LoanInformationTitle+" "+(100*this.state.repayment.rate).toLocaleString("da-DK",{maximumFractionDigits:2,minimumFractionDigits:2})+"%. Samlet kreditbeløb "+this.state.repayment.establishmentCostAfterSubsidies.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})+" kr. Månedlig ydelse "+(-1*this.state.repayment.instalmentDates[1].Flow).toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})+" kr. i "+(this.state.repayment.instalmentDates.length-1)/12+" år, "+(this.state.repayment.instalmentDates.length-1)+" ydelser. V
1ariabel debitorrente "+(100*this.state.repayment.debitorRate).toLocaleString("da-DK",{maximumFractionDigits:2,minimumFractionDigits:2})+"%. Ã
OP: "+this.state.repayment.aaop.toLocaleString("da-DK",{maximumFractionDigits:1,minimumFractionDigits:1})+"%. Samlede kreditomkostninger "+(this.state.repayment.totalContributions-this.state.repayment.establishmentCostAfterSubsidies).toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})+" kr. Samlet tilbagebetalingsbeløb "+this.state.repayment.totalContributions.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})+(1e5<this.state.repayment.establishmentCostAfterSubsidies?" kr. Inkluderer ikke omkostninger til obligatorisk brandforsikring. Lånet ydes mod pant i boligen.":" kr.")+" Eksemplet er gældende for BoligBank 360-, Boligbank 365-, eller Private Banking kunder.";return(0,i.default)("div",{id:this.customId},(0,i.default)("div",{class:"HeatingSystemCard__Title"},(0,i.default)("span",{class:"nk-tooltip varme-beregner__float-right",onclick:function(){t.state.open()}},(0,i.default)("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15",width:"15",height:"15"},(0,i.default)("g",{fill:"none","fill-rule":"evenodd"},(0,i.default)("circle",{cx:"7.5",cy:"7.5",r:"7",stroke:"var(--colortheme-icon)","stroke-linecap":"round","stroke-linejoin":"round","stroke-opacity":".5"}),(0,i.default)("circle",{cx:"7.5",cy:"12",r:"1",fill:"#07094A","fill-opacity":".5","fill-rule":"nonzero"}),(0,i.default)("path",{stroke:"var(--colortheme-icon)","stroke-linecap":"round","stroke-linejoin":"round","stroke-opacity":".5",d:"M6 3.577c.953-.86 3.018-.845 3.423.635C9.95 6.134 7.5 6.142 7.5 9"})))),(0,i.default)("h2",{class:"varme-beregner__card__title mdc-typography--title-sm mdc-typography--no-bottom-margin"},this.state.heatingName)),t,(0,i.default)("div",{class:"varme-beregner__space-between varme-beregner__vertical-center"},(0,i.default)("h4",{class:"varme-beregner__card__subtitle mdc-typography--body-xs mdc-typography--no-bottom-margin"}," ",this.savingIsValid?this.labels.YearlySavingsTitle:this.labels.NoPriceMessage," "),(0,i.default)("h2",{class:"varme-beregner__vertical-center"},(0,i.default)("span",{class:"varme-beregner__card__number mdc-typography--title-xl mdc-typography--no-bottom-margin"},this.savingIsValid?(0,l.applyThousandSeperator)(this.state.yearlySavings.total):"-"),(0,i.default)("span",{class:"varme-beregner__card__suffix mdc-typography--body-xs mdc-typography--no-bottom-margin"},"kr."))),(0,i.default)("div",{class:"accordion js-accordion varme-beregner__accordion--hidden"},(0,i.default)("div",{class:"accordion__item accordion-closed"},(0,i.default)("button",{id:"yearlySavingsAccordion",class:"accordion__item-handler js-accordion-handler",type:"button",onclick:function(e){c(n.state),p(e,n.state.yearlySavingsExpanded)}}),(0,i.default)("div",{class:"accordion__item-content js-accordion-content",ontransitionend:function(e){return m(e.target,n.state.yearlySavingsExpanded)}},(0,i.default)("div",{class:"varme-beregner__accordion-item"},(0,i.default)("div",{class:"varme-beregner__space-between mdc-typography--body-xs mdc-typography--no-bottom-margin",style:"padding-bottom: 12px"}," ",(0,i.default)("span",null,this.labels.ExistingHeatingSystemCostLabel," ",(0,i.default)("span",{class:""},(0,i.default)(r.default,{text:this.labels.ExistingHeatingSystemCostTooltip})))," ",(0,i.default)("span",null,this.state.yearlySavings.existingWithoutServiceFee.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})," kr.")),0<this.state.yearlySavings.aproximatedExistingServiceFee?(0,i.default)("div",{class:"varme-beregner__space-between mdc-typography--body-xs mdc-typography--no-bottom-margin",style:"padding-bottom: 12px"}," ",(0,i.default)("span",null,this.labels.ExistingServiceFeeLabel," ",(0,i.default)("span",{class:""},(0,i.default)(r.default,{text:this.labels.ExistingServiceFeeTooltip})))," ",(0,i.default)("span",null,this.state.yearlySavings.aproximatedExistingServiceFee.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})," kr.")):"",(0,i.default)("div",{class:"varme-beregner__space-between mdc-typography--body-xs mdc-typography--no-bottom-margin"}," ",(0,i.default)("span",null,this.labels.NewHeatingSystemCostLabel," ",(0,i.default)("span",{class:""},(0,i.default)(r.default,{text:this.labels.NewHeatingSystemCostTooltip})))," ",(0,i.default)("span",null,this.savingIsValid?this.state.yearlySavings.new.toLocaleStr
1ing("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0}):"-"," kr.")))))),(0,i.default)("div",{class:"varme-beregner__space-between varme-beregner__vertical-center"},(0,i.default)("h4",{class:"varme-beregner__card__subtitle mdc-typography--body-xs mdc-typography--no-bottom-margin"}," ",this.labels.EstablishmentCostTitle," "),(0,i.default)("h2",{class:"varme-beregner__vertical-center"},(0,i.default)("span",{class:"varme-beregner__card__number mdc-typography--title-xs mdc-typography--no-bottom-margin"},(0,l.applyThousandSeperator)(this.state.establishmentCost.total)),(0,i.default)("span",{class:"varme-beregner__card__suffix mdc-typography--body-xs mdc-typography--no-bottom-margin"},"kr."))),(0,i.default)("div",{class:"accordion js-accordion varme-beregner__accordion--hidden"},(0,i.default)("div",{class:"accordion__item accordion-closed"},(0,i.default)("button",{id:"establishmentAccordion",class:"accordion__item-handler js-accordion-handler",type:"button",onclick:function(e){d(n.state),p(e,n.state.establishmentCostsShowMore)}}),(0,i.default)("div",{class:"accordion__item-content js-accordion-content",ontransitionend:function(e){return m(e.target,n.state.establishmentCostsShowMore)}},(0,i.default)("div",{class:"varme-beregner__accordion-item"},(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline varme-beregner__space-between"},(0,i.default)("span",null,this.labels.EstablishmentPriceLabel,(0,i.default)("span",{class:"varme-beregner-toggle__tooltip"},(0,i.default)(r.default,{text:this.labels.EstablishmentPriceTooltip}))),(0,i.default)("span",null,(0,i.default)("div",{class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded varme-beregner__input-small"},(0,i.default)("input",{oninput:function(e){return a.default.mutations.setEstablishmentCost(e.target.value,n.state.Id)},style:"padding-right: 26px; font-size: 14px!important; text-align: right;",class:"mdc-text-field__input",type:"tel",maxlength:"12",id:"new-price"+this.state.Id,name:"new-price"+this.state.Id,min:"1",max:"10000000000",value:(0,l.applyThousandSeperator)(this.state.establishmentCost.price)}),(0,i.default)("div",{class:"mdc-line-ripple"}),(0,i.default)("span",{class:"varme-beregner__card__input-postfix"},"kr.")))),(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline varme-beregner__space-between"},(0,i.default)("span",null,this.labels.PublicSubsidyLabel,(0,i.default)("span",{class:"varme-beregner-toggle__tooltip"},(0,i.default)(r.default,{text:this.labels.PublicSubsidyTooltip})," ")),(0,i.default)("span",null,(0,i.default)("div",{class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded varme-beregner__input-small"},(0,i.default)("input",{oninput:function(e){return a.default.mutations.setPublicSubsidy(e.target.value,n.state.Id)},style:"padding-right: 26px; font-size: 14px!important; text-align: right;",class:"mdc-text-field__input",type:"tel",maxlength:"12",id:"public-subsidy"+this.state.Id,name:"public-subsidy"+this.state.Id,min:"0",max:"10000000000",value:"- "+(0,l.a
1pplyThousandSeperator)(this.state.establishmentCost.publicSubsidy)}),(0,i.default)("div",{class:"mdc-line-ripple"}),(0,i.default)("span",{class:"varme-beregner__card__input-postfix"},"kr.")))),(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline varme-beregner__space-between",style:this.showTkSubsidy?"":"display: none;"},(0,i.default)("span",null,this.labels.TotalkreditSubsidyLabel,(0,i.default)("span",{class:"varme-beregner-toggle__tooltip"},(0,i.default)(r.default,{text:this.labels.TotalkreditSubsidyTooltip}))),(0,i.default)("span",null,(0,i.default)("div",{class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded varme-beregner__input-small"},(0,i.default)("input",{oninput:function(e){return a.default.mutations.setTkSubsidy(e.target.value,n.state.Id)},style:"padding-right: 26px; font-size: 14px!important; text-align: right;",class:"mdc-text-field__input",type:"tel",maxlength:"12",id:"tk-subsidy"+this.state.Id,name:"tk-subsidy"+this.state.Id,min:"0",max:"10000000000",value:"- "+(0,l.a
1pplyThousandSeperator)(this.state.establishmentCost.tkSubsidy)}),(0,i.default)("div",{class:"mdc-line-ripple"}),(0,i.default)("span",{class:"varme-beregner__card__input-postfix"},"kr.")))),(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline varme-beregner__space-between",style:"padding-top: 12px"}," ",(0,i.default)("span",null,this.labels.InterestCostLabel," ",(0,i.default)("span",{class:""},(0,i.default)(r.default,{text:this.labels.InterestCostTooltip})))," ",(0,i.default)("span",null,this.state.establishmentCost.interestCost.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})," kr.")),(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline varme-beregner__space-between",style:"padding-top: 12px; padding-bottom: 12px"}," ",(0,i.default)("span",null,this.labels.RegistrationFeeLabel," ",(0,i.default)("span",{class:""},(0,i.default)(r.default,{text:this.labels.RegistrationFeeTooltip})))," ",(0,i.default)("span",null,this.state.establishmentCost.registrationFee.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})," kr.")),(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline varme-beregner__space-between"}," ",(0,i.default)("span",null,this.labels.AuxRegistrationFeeLabel," ",(0,i.default)("span",{class:""},(0,i.default)(r.default,{text:this.labels.AuxRegistrationFeeTooltip})))," ",(0,i.default)("span",null,this.state.establishmentCost.auxRegistrationFee.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})," kr.")),(0,i.default)("div",{class:"mdc-typography--body-xxxs varme-beregner__disclaimer-text"},e))))),this.savingIsValid&&(0,i.default)("div",null,(0,i.default)("div",{class:"varme-beregner__space-between varme-beregner__vertical-center"},(0,i.default)("h4",{class:"varme-beregner__card__subtitle mdc-typography--body-xs mdc-typography--no-bottom-margin"}," ",this.labels.RepaymentTimelineTitle," "),(0,i.default)("h2",{class:"varme-beregner__vertical-center"},(0,i.default)("span",{class:"varme-beregner__card__number mdc-typography--title-xs mdc-typography--no-bottom-margin"},(0,l.danishValue)(this.state.repayment.yearsBeforeProfit)),(0,i.default)("span",{class:"varme-beregner__card__suffix mdc-typography--body-xs mdc-typography--no-bottom-margin"},"Ã¥r"))),(0,i.default)("div",{class:"accordion js-accordion varme-beregner__accordion--hidden"},(0,i.default)("div",{class:"accordion__item accordion-closed"},(0,i.default)("button",{id:"repaymentTimelineAccordion",class:"accordion__item-handler js-accordion-handler",type:"button",onclick:function(e){f(n.state),p(e,n.state.paymentTimeShowMore)}}),(0,i.default)("div",{class:"accordion__item-content js-accordion-content",ontransitionend:function(e){return m(e.target,n.state.paymentTimeShowMore)}},(0,i.default)("div",{class:"varme-beregner__accordion-item"},(0,i.default)("div",{class:"section varme-beregner-toggle"},(0,i.default)("nav",{class:"js-mdc-tab-bar mdc-tab-bar-upgraded varme-beregner-toggle__container",id:"Card-tabs"+this.state.Id},(0,i.default)("a",{class:"mdc-tab mdc-tab--with-icon-and-text mdc-ripple-upgraded varme-beregner-toggle__item mdc-tab"+(this.state.showTable?"--active":""),onclick:function(e){h(e.target,n.state,!0)},role:"tab","aria-controls":"TableTab"},(0,i.default)("span",{class:"mdc-tab__icon-text"},"Liste")),(0,i.default)("a",{class:"mdc-tab mdc-tab--with-icon-and-text mdc-ripple-upgraded varme-beregner-toggle__item mdc-tab"+(this.state.showGraph?"--active":""),onclick:function(e){h(e.target,n.state,!1)},role:"tab","aria-controls":"GraphTab"},(0,i.default)("span",{class:"mdc-tab__icon-text"},"Graf")),(0,i.default)("span",{class:"mdc-tab-bar__indicator"}))),(0,i.default)("div",{class:"tab-panels js-panels",for:"Card-tabs"+this.state.Id},(0,i.default)("div",{class:"panel js-tabpanel js-tabpanel"+(this.state.showTable?"--active":""),id:"TableTab",role:"tabpanel","aria-hidden":"false"},this.state.repayment.yearGraphData.map(function(e,t){var n=0<parseInt(e);return i.default.fragment({},[(0,i.default)("div",{class:"varme-beregner__card__list-item mdc-typography--body-xs mdc-typography--no-bottom-margin"},(0,i.default)("span",{style:"padding-left: 20px"},"Ã
r ",t),(0,i.default)("span",{style:"padding-right: 20px",class:n?"varme-beregner__bold":""},e," kr.")),(0,i.default)("hr",null)])})),(0,i.default)("div",{class:"panel js-tabpanel js-tabpanel"+(this.state.showGraph?"--active":""),id:"GraphTab",role:"tabpanel","aria-hidden":"false"},(0,i.default)(s.default,{activeDataset:this.state.repayment.monthGraphData,labels:this.labels,graphId:"graph-"+this.state.heatingId})))))))),(0,i.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-8",style:"padding-top: 30px;"},(0,i.default)("div",{class:"mdc-layout-grid__inner"},(0,i.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12 tk-col--bottom-padding"},(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline",style:"display: flex; flex-direction: column; gap: 20px;"},(0,i.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3 varme-beregner__button-container"},(0,i.default)("button",{onclick:function(){var e,t;e=document.querySelector("#"+n.customId),(t=e.querySelector("#yearlySavingsAccordionsAccordion"))&&t.click(),(t=e.querySelector("#establishmentAccordion"))&&t.click(),(t=e.querySelector("#repaymentTimelineAccordion"))&&t.click()},class:"varme-beregner__button"},"SE DETALJER")))))))}}};var i=u(e("mithril")),a=u(e("./store/HeatingSystemCalculatorStore")),r=u(e("../../calculators/NykreditTooltip")),o=u(e("../NykreditModal")),s=u(e("./mithrilHighchartHeatingSystem")),l=(u(e("../HeatingSystemLoanCalculator/MaskedInput")),e("../../mdc-mithril-init"),e("../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat"));
1function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){e.yearlySavingsExpanded=!e.yearlySavingsExpanded},d=function(e){e.establishmentCostsShowMore=!e.establishmentCostsShowMore},f=function(e){e.paymentTimeShowMore=!e.paymentTimeShowMore},h=function(e,t,n){t.showTable=n,t.showGraph=!n,i.default.redraw(),g(e)},p=function(e,t){var n,e=e.target,i=e.nextElementSibling;null!=i&&(e.parentElement.classList.remove("accordion-closed"),i.classList.remove("accordion-open"),n=i.firstChild.getBoundingClientRect().height,i.style.height=t?n+"px":"0px",i=e.parentElement)&&(i.classList.contains("accordion__item--open")?i.classList.remove("accordion__item--open"):i.classList.add("accordion__item--open"))},m=function(e,t){e.classList.contains("js-accordion-content")&&e.parentElement.classList.contains("accordion__item")&&(t||e.parentElement.classList.add("accordion-closed"),t)&&e.classList.add("accordion-open")},g=function(e){var e=v(e,"accordion__item-content"),t=e.firstChild.getBoundingClientRect().height;e.style.height=t+"px"},v=function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e},_=function(e,t){switch(e){case"1":return(0,i.default)(o.default,{title:t.OtherTitle,body:t.OtherBody,image:t.OtherImage});case"2":return(0,i.default)(o.default,{title:t.ElectricTitle,body:t.ElectricBody,image:t.ElectricImage});case"3":return(0,i.default)(o.default,{title:t.NaturalGasTitle,body:t.NaturalGasBody,image:t.NaturalGasImage});case"4":return(0,i.default)(o.default,{title:t.OilTitle,body:t.OilBody,image:t.OilImage});case"5":return(0,i.default)(o.default,{title:t.DistrictHeatingTitle,body:t.DistrictHeatingBody,image:t.DistrictHeatingImage});case"6":return(0,i.default)(o.default,{title:t.GroundTitle,body:t.GroundBody,image:t.GroundImage});case"7":return(0,i.default)(o.default,{title:t.HeatPumpTitle,body:t.HeatPumpBody,image:t.HeatPumpImage});case"8":return(0,i.default)(o.default,{title:t.WoodPelletsTitle,body:t.WoodPelletsBody,image:t.WoodPelletsImage});case"9":return(0,i.default)(o.default,{title:t.SolarTitle,body:t.SolarBody,image:t.SolarImage});case"10":return(0,i.default)(o.default,{title:t.WoodBurningStoveTitle,body:t.WoodBurningStoveBody,image:t.WoodBurningStoveImage});default:return(0,i.default)(o.default,{title:t.OtherTitle,body:t.OtherBody,image:t.OtherImage})}}},{"../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat":17,"../../calculators/NykreditTooltip":144,"../../mdc-mithril-init":255,"../HeatingSystemLoanCalculator/MaskedInput":138,"../NykreditModal":143,"./mithrilHighchartHeatingSystem":139,"./store/HeatingSystemCalculatorStore":141,mithril:410}],135:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{view:function(e){var t=this,n=(this.state=e.attrs.state,this.labels=e.attrs.labels,this.modalLabels=e.attrs.modalLabels,_(this.state.heatingId,this.modalLabels)),e=(this.showTkSubsidy=!("oil"!=a.default.state.editedState.Input.varme_name&&"gas"!=a.default.state.editedState.Input.varme_name||"7"!=this.state.heatingId&&"6"!=this.state.heatingId),this.savingIsValid=this.state.yearlySavings.savingIsValid,this.labels.DisclaimerPreamble),e="*"+(e?e+"\n":"")+this.labels.LoanInformationTitle+" "+(100*this.state.repayment.rate).toLocaleString("da-DK",{maximumFractionDigits:2,minimumFractionDigits:2})+"%. Samlet kreditbeløb "+this.state.repayment.establishmentCostAfterSubsidies.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})+" kr. Månedlig ydelse "+(-1*this.state.repayment.instalmentDates[1].Flow).toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})+" kr. i "+(this.state.repayment.instalmentDates.length-1)/12+" år, "+(this.state.repayment.instalmentDates.length-1)+" ydelser. V
1ariabel debitorrente "+(100*this.state.repayment.debitorRate).toLocaleString("da-DK",{maximumFractionDigits:2,minimumFractionDigits:2})+"%. Ã
OP: "+this.state.repayment.aaop.toLocaleString("da-DK",{maximumFractionDigits:1,minimumFractionDigits:1})+"%. Samlede kreditomkostninger "+(this.state.repayment.totalContributions-this.state.repayment.establishmentCostAfterSubsidies).toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})+" kr. Samlet tilbagebetalingsbeløb "+this.state.repayment.totalContributions.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})+(1e5<this.state.repayment.establishmentCostAfterSubsidies?" kr. Inkluderer ikke omkostninger til obligatorisk brandforsikring. Lånet ydes mod pant i boligen.":" kr.")+" Eksemplet er gældende for BoligBank 360-, Boligbank 365-, eller Private Banking kunder.";return(0,i.default)("div",null,(0,i.default)("div",{class:"HeatingSystemCard__Title"},(0,i.default)("span",{class:"nk-tooltip varme-beregner__float-right",onclick:function(){n.state.open()}},(0,i.default)("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15",width:"15",height:"15"},(0,i.default)("g",{fill:"none","fill-rule":"evenodd"},(0,i.default)("circle",{cx:"7.5",cy:"7.5",r:"7",stroke:"var(--colortheme-icon)","stroke-linecap":"round","stroke-linejoin":"round","stroke-opacity":".5"}),(0,i.default)("circle",{cx:"7.5",cy:"12",r:"1",fill:"#07094A","fill-opacity":".5","fill-rule":"nonzero"}),(0,i.default)("path",{stroke:"var(--colortheme-icon)","stroke-linecap":"round","stroke-linejoin":"round","stroke-opacity":".5",d:"M6 3.577c.953-.86 3.018-.845 3.423.635C9.95 6.134 7.5 6.142 7.5 9"})))),(0,i.default)("h2",{class:"varme-beregner__card__title mdc-typography--title-lg mdc-typography--no-bottom-margin"},this.state.heatingName)),n,(0,i.default)("h4",{class:"varme-beregner__card__subtitle"}," ",this.savingIsValid?this.labels.YearlySavingsTitle:this.labels.NoPriceMessage," "),(0,i.default)("h2",{style:"margin-top: 0"},(0,i.default)("span",{class:"varme-beregner__card__number mdc-typography--title-xl mdc-typography--no-bottom-margin"},this.savingIsValid?(0,l.applyThousandSeperator)(this.state.yearlySavings.total):"-"),(0,i.default)("span",{class:"varme-beregner__card__suffix mdc-typography--title-xs mdc-typography--no-bottom-margin"},"kr.")),(0,i.default)("div",{class:"accordion js-accordion"},(0,i.default)("div",{class:"accordion__item"},(0,i.default)("button",{class:"accordion__item-handler js-accordion-handler",type:"button",onclick:function(e){c(t.state),p(e,t.state.yearlySavingsExpanded)}},(0,i.default)("div",{class:"accordion__item-label varme-beregner__accordion"},(0,i.default)("span",null,this.labels.SeeYearlySavingsDropdownLabel),(0,i.default)("span",{class:this.state.yearlySavingsExpanded?"active":""},(0,i.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"2",fill:"none"},(0,i.default)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,i.default)("polyline",{points:"15 6 9 12 15 18"}))))),(0,i.default)("div",{class:"accordion__item-content js-accordion-content",ontransitionend:function(e){return m(e.target,t.state.yearlySavingsExpanded)}},(0,i.default)("div",{class:"varme-beregner__accordion-item mdc-typography--body-xs mdc-typography--no-bottom-margin"},(0,i.default)("div",{class:"varme-beregner__space-between",style:"padding-bottom: 12px"}," ",(0,i.default)("span",null,this.labels.ExistingHeatingSystemCostLabel," ",(0,i.default)("span",{class:""},(0,i.default)(r.default,{text:this.labels.ExistingHeatingSystemCostTooltip})))," ",(0,i.default)("span",null,this.state.yearlySavings.existingWithoutServiceFee.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})," kr.")),0<this.state.yearlySavings.aproximatedExistingServiceFee?(0,i.default)("div",{class:"varme-beregner__space-between",style:"padding-bottom: 12px"}," ",(0,i.default)("span",null,this.labels.ExistingServiceFeeLabel," ",(0,i.default)("span",{class:""},(0,i.default)(r.default,{text:this.labels.ExistingServiceFeeTooltip})))," ",(0,i.default)("span",null,this.state.yearlySavings.aproximatedExistingServiceFee.toLocaleStr
1ing("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})," kr.")):"",(0,i.default)("div",{class:"varme-beregner__space-between"}," ",(0,i.default)("span",null,this.labels.NewHeatingSystemCostLabel," ",(0,i.default)("span",{class:""},(0,i.default)(r.default,{text:this.labels.NewHeatingSystemCostTooltip})))," ",(0,i.default)("span",null,this.savingIsValid?this.state.yearlySavings.new.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0}):"-"," kr.")))))),(0,i.default)("h4",{class:"varme-beregner__card__subtitle"}," ",this.labels.EstablishmentCostTitle," "),(0,i.default)("h2",{style:"margin-top: 0"},(0,i.default)("span",{class:"varme-beregner__card__number mdc-typography--title-xl mdc-typography--no-bottom-margin"},(0,l.applyThousandSeperator)(this.state.establishmentCost.total)),(0,i.default)("span",{class:"varme-beregner__card__suffix mdc-typography--title-xs mdc-typography--no-bottom-margin"},"kr.")),(0,i.default)("div",{class:"accordion js-accordion"},(0,i.default)("div",{class:"accordion__item"},(0,i.default)("button",{class:"accordion__item-handler js-accordion-handler",type:"button",onclick:function(e){d(t.state),p(e,t.state.establishmentCostsShowMore)}},(0,i.default)("div",{class:"accordion__item-label varme-beregner__accordion"},(0,i.default)("span",null,this.labels.SeeEstablishmentCostLabel),(0,i.default)("span",{class:this.state.establishmentCostsShowMore?"active":""},(0,i.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"2",fill:"none"},(0,i.default)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,i.default)("polyline",{points:"15 6 9 12 15 18"}))))),(0,i.default)("div",{class:"accordion__item-content js-accordion-content",ontransitionend:function(e){return m(e.target,t.state.establishmentCostsShowMore)}},(0,i.default)("div",{class:"varme-beregner__accordion-item"},(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline varme-beregner__space-between"},(0,i.default)("span",null,this.labels.EstablishmentPriceLabel,(0,i.default)("span",{class:"varme-beregner-toggle__tooltip"},(0,i.default)(r.default,{text:this.labels.EstablishmentPriceTooltip}))),(0,i.default)("span",null,(0,i.default)("div",{class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded varme-beregner__input-small"},(0,i.default)("input",{oninput:function(e){return a.default.mutations.setEstablishmentCost(e.target.value,t.state.Id)},style:"padding-right: 26px; font-size: 14px!important; text-align: right;",class:"mdc-text-field__input",type:"tel",maxlength:"12",id:"new-price"+this.state.Id,name:"new-price"+this.state.Id,min:"1",max:"10000000000",value:(0,l.applyThousandSeperator)(this.state.establishmentCost.price)}),(0,i.default)("div",{class:"mdc-line-ripple"}),(0,i.default)("span",{class:"varme-beregner__card__input-postfix"},"kr.")))),(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline varme-beregner__space-between"},(0,i.default)("span",null,this.labels.PublicSubsidyLabel,(0,i.default)("span",{class:"varme-beregner-toggle__tooltip"},(0,i.default)(r.default,{text:this.labels.PublicSubsidyTooltip})," ")),(0,i.default)("span",null,(0,i.default)("div",{class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded varme-beregner__input-small"},(0,i.default)("input",{oninput:function(e){return a.default.mutations.setPublicSubsidy(e.target.value,t.state.Id)},style:"padding-right: 26px; font-size: 14px!important; text-align: right;",class:"mdc-text-field__input",type:"tel",maxlength:"12",id:"public-subsidy"+this.state.Id,name:"public-subsidy"+this.state.Id,min:"0",max:"10000000000",value:"- "+(0,l.a
1pplyThousandSeperator)(this.state.establishmentCost.publicSubsidy)}),(0,i.default)("div",{class:"mdc-line-ripple"}),(0,i.default)("span",{class:"varme-beregner__card__input-postfix"},"kr.")))),(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline varme-beregner__space-between",style:this.showTkSubsidy?"":"display: none;"},(0,i.default)("span",null,this.labels.TotalkreditSubsidyLabel,(0,i.default)("span",{class:"varme-beregner-toggle__tooltip"},(0,i.default)(r.default,{text:this.labels.TotalkreditSubsidyTooltip}))),(0,i.default)("span",null,(0,i.default)("div",{class:"mdc-text-field mdc-text-field--outlined js-forms-mdc-text-field mdc-text-field--upgraded varme-beregner__input-small"},(0,i.default)("input",{oninput:function(e){return a.default.mutations.setTkSubsidy(e.target.value,t.state.Id)},style:"padding-right: 26px; font-size: 14px!important; text-align: right;",class:"mdc-text-field__input",type:"tel",maxlength:"12",id:"tk-subsidy"+this.state.Id,name:"tk-subsidy"+this.state.Id,min:"0",max:"10000000000",value:"- "+(0,l.a
1pplyThousandSeperator)(this.state.establishmentCost.tkSubsidy)}),(0,i.default)("div",{class:"mdc-line-ripple"}),(0,i.default)("span",{class:"varme-beregner__card__input-postfix"},"kr.")))),(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline varme-beregner__space-between",style:"padding-top: 12px"}," ",(0,i.default)("span",null,this.labels.InterestCostLabel," ",(0,i.default)("span",{class:""},(0,i.default)(r.default,{text:this.labels.InterestCostTooltip})))," ",(0,i.default)("span",null,this.state.establishmentCost.interestCost.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})," kr.")),(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline varme-beregner__space-between",style:"padding-top: 12px; padding-bottom: 12px"}," ",(0,i.default)("span",null,this.labels.RegistrationFeeLabel," ",(0,i.default)("span",{class:""},(0,i.default)(r.default,{text:this.labels.RegistrationFeeTooltip})))," ",(0,i.default)("span",null,this.state.establishmentCost.registrationFee.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})," kr.")),(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline varme-beregner__space-between"}," ",(0,i.default)("span",null,this.labels.AuxRegistrationFeeLabel," ",(0,i.default)("span",{class:""},(0,i.default)(r.default,{text:this.labels.AuxRegistrationFeeTooltip})))," ",(0,i.default)("span",null,this.state.establishmentCost.auxRegistrationFee.toLocaleString("da-DK",{maximumFractionDigits:0,minimumFractionDigits:0})," kr.")),(0,i.default)("div",{class:"mdc-typography--body-xxxs varme-beregner__disclaimer-text"},e))))),this.savingIsValid&&(0,i.default)("div",null,(0,i.default)("h4",{class:"varme-beregner__card__subtitle"}," ",this.savingIsValid?this.labels.RepaymentTimelineTitle:this.labels.NoPriceMessage," "),(0,i.default)("h2",{style:"margin-top: 0"},(0,i.default)("span",{class:"varme-beregner__card__number mdc-typography--title-xl mdc-typography--no-bottom-margin"},this.savingIsValid?(0,l.danishValue)(this.state.repayment.yearsBeforeProfit):"-"),(0,i.default)("span",{class:"varme-beregner__card__suffix mdc-typography--title-xs mdc-typography--no-bottom-margin"},"Ã¥r")),(0,i.default)("div",{class:"accordion js-accordion"},(0,i.default)("div",{class:"accordion__item"},(0,i.default)("button",{class:"accordion__item-handler js-accordion-handler",type:"button",onclick:function(e){f(t.state),p(e,t.state.paymentTimeShowMore)}},(0,i.default)("div",{class:"accordion__item-label varme-beregner__accordion"},(0,i.default)("span",null,this.labels.SeeRepaymentTimelineLabel),(0,i.default)("span",{class:this.state.paymentTimeShowMore?"active":""},(0,i.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"2",fill:"none"},(0,i.default)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,i.default)("polyline",{points:"15 6 9 12 15 18"}))))),(0,i.default)("div",{class:"accordion__item-content js-accordion-content",ontransitionend:function(e){return m(e.target,t.state.paymentTimeShowMore)}},(0,i.default)("div",{class:"varme-beregner__accordion-item"},(0,i.default)("div",{class:"section varme-beregner-toggle"},(0,i.default)("nav",{class:"js-mdc-tab-bar mdc-tab-bar-upgraded varme-beregner-toggle__container",id:"Card-tabs"+this.state.Id},(0,i.default)("a",{class:"mdc-tab mdc-tab--with-icon-and-text mdc-ripple-upgraded varme-beregner-toggle__item mdc-tab"+(this.state.showTable?"--active":""),onclick:function(e){h(e.target,t.state,!0)},role:"tab","aria-controls":"TableTab"},(0,i.default)("span",{class:"mdc-tab__icon-text"},"Liste")),(0,i.default)("a",{class:"mdc-tab mdc-tab--with-icon-and-text mdc-ripple-upgraded varme-beregner-toggle__item mdc-tab"+(this.state.showGraph?"--active":""),onclick:function(e){h(e.target,t.state,!1)},role:"tab","aria-controls":"GraphTab"},(0,i.default)("span",{class:"mdc-tab__icon-text"},"Graf")),(0,i.default)("span",{class:"mdc-tab-bar__indicator"}))),(0,i.default)("div",{class:"tab-panels js-panels",for:"Card-tabs"+this.state.Id},(0,i.default)("div",{class:"panel js-tabpanel js-tabpanel"+(this.state.showTable?"--active":""),id:"TableTab",role:"tabpanel","aria-hidden":"false"},this.state.repayment.yearGraphData.map(function(e,t){var n=0<parseInt(e);return i.default.fragment({},[(0,i.default)("div",{class:"varme-beregner__card__list-item"},(0,i.default)("span",null,"Ã
r ",t),(0,i.default)("span",{class:n?"varme-beregner__bold":""}
1,e.toLocaleString("da-DK")," kr.")),(0,i.default)("hr",null)])})),(0,i.default)("div",{class:"panel js-tabpanel js-tabpanel"+(this.state.showGraph?"--active":""),id:"GraphTab",role:"tabpanel","aria-hidden":"false"},(0,i.default)(s.default,{activeDataset:this.state.repayment.monthGraphData,labels:this.labels,graphId:"graph-"+this.state.heatingId})))))))),(0,i.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-8",style:"padding-top: 30px;"},(0,i.default)("div",{class:"mdc-layout-grid__inner"},(0,i.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12 tk-col--bottom-padding"},(0,i.default)("div",{class:"mdc-form-field mdc-form-field--inline",style:"display: flex; flex-direction: column; gap: 20px;"},(0,i.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12 mdc-typography--body mdc-typography--no-bottom-margin varme-beregner__finance-text"},this.labels.LoanInformationDescription),(0,i.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-3 varme-beregner__button-container"},(0,i.default)("a",{target:"_blank",href:this.labels.LoanInformationButtonLink,class:"mdc-button mdc-button--raised mdc-button--primary varme-beregner__button"},this.labels.LoanInformationButtonLabel)))))))}}};var i=u(e("mithril")),a=u(e("./store/HeatingSystemCalculatorStore")),r=u(e("../../calculators/NykreditTooltip")),o=u(e("../NykreditModal")),s=u(e("./mithrilHighchartHeatingSystem")),l=(e("../../mdc-mithril-init"),u(e("../HeatingSystemLoanCalculator/MaskedInput")),e("../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat"));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){e.yearlySavingsExpanded=!e.yearlySavingsExpanded},d=function(e){e.establishmentCostsShowMore=!e.establishmentCostsShowMore},f=function(e){e.paymentTimeShowMore=!e.paymentTimeShowMore},h=function(e,t,n){t.showTable=n,t.showGraph=!n,i.default.redraw(),g(e)},p=function(e,t){var n,e=e.target,i=e.nextElementSibling;null!=i&&(i.classList.remove("accordion-open"),n=i.firstChild.getBoundingClientRect().height,i.style.height=t?n+"px":"0px",i=e.parentElement)&&(i.classList.contains("accordion__item--open")?i.classList.remove("accordion__item--open"):i.classList.add("accordion__item--open"))},m=function(e,t){t&&e.classList.add("accordion-open")},g=function(e){var e=v(e,"accordion__item-content"),t=e.firstChild.getBoundingClientRect().height;e.style.height=t+"px"},v=function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e},_=function(e,t){switch(e){case"1":return(0,i.default)(o.default,{title:t.OtherTitle,body:t.OtherBody,image:t.OtherImage});case"2":return(0,i.default)(o.default,{title:t.ElectricTitle,body:t.ElectricBody,image:t.ElectricImage});case"3":return(0,i.default)(o.default,{title:t.NaturalGasTitle,body:t.NaturalGasBody,image:t.NaturalGasImage});case"4":return(0,i.default)(o.default,{title:t.OilTitle,body:t.OilBody,image:t.OilImage});case"5":return(0,i.default)(o.default,{title:t.DistrictHeatingTitle,body:t.DistrictHeatingBody,image:t.DistrictHeatingImage});case"6":return(0,i.default)(o.default,{title:t.GroundTitle,body:t.GroundBody,image:t.GroundImage});case"7":return(0,i.default)(o.default,{title:t.HeatPumpTitle,body:t.HeatPumpBody,image:t.HeatPumpImage});case"8":return(0,i.default)(o.default,{title:t.WoodPelletsTitle,body:t.WoodPelletsBody,image:t.WoodPelletsImage});case"9":return(0,i.default)(o.default,{title:t.SolarTitle,body:t.SolarBody,image:t.SolarImage});case"10":return(0,i.default)(o.default,{title:t.WoodBurningStoveTitle,body:t.WoodBurningStoveBody,image:t.WoodBurningStoveImage});default:return(0,i.default)(o.default,{title:t.OtherTitle,body:t.OtherBody,image:t.OtherImage})}}},{"../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat":17,"../../calculators/NykreditTooltip":144,"../../mdc-mithril-init":255,"../HeatingSystemLoanCalculator/MaskedInput":138,"../NykreditModal":143,"./mithrilHighchartHeatingSystem":139,"./store/HeatingSystemCalculatorStore":141,mithril:410}],144:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function")}i(o,[{key:"oninit",value:function(){this.isVisible=!1}},{key:"view",value:function(e){if(""!=e.attrs.text&&null!=e.attrs.text)return(0,r.default)("span",{className:"nk-tooltip "+(!0===e.state.isVisible?"nk-tooltip--open ":" "),"data-tooltip":e.attrs.text,onmouseover:function(){e.state.isVisible=!0},onmouseout:function(){e.state.isVisible=!1}},(0,r.default)("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15",width:"15",height:"15"},(0,r.default)("g",{fill:"none","fill-rule":"evenodd"},(0,r.default)("circle",{cx:"7.5",cy:"7.5",r:"7",stroke:"var(--colortheme-icon)","stroke-linecap":"round","stroke-linejoin":"round","stroke-opacity":".5"}),(0,r.default)("circle",{cx:"7.5",cy:"12",r:"1",fill:"#07094A","fill-opacity":".5","fill-rule":"nonzero"}),(0,r.default)("path",{stroke:"var(--colortheme-icon)","stroke-linecap":"round","stroke-linejoin":"round","stroke-opacity":".5",d:"M6 3.577c.953-.86 3.018-.845 3.423.635C9.95 6.134 7.5 6.142 7.5 9"}))))}}]),n.default=o},{mithril:410}],143:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function")}i(o,[{key:"oninit",value:function(e){this.modalIsOpen=!1,this.open=function(e){this.modalIsOpen=!0},this.close=function(){this.modalIsOpen=!1}}},{key:"view",value:function(e){return this.title=e.attrs.title,this.body=e.attrs.body,this.image=e.attrs.image,(0,r.default)("div",{className:"nk-modal "+(!0===e.state.modalIsOpen?"nk-modal--is-active":"")},(0,r.default)("div",{class:"nk-modal__backdrop",onclick:function(){e.state.close()}}),(0,r.default)("div",{class:"nk-modal__content"},(0,r.default)("div",{class:"nk-modal__close",onclick:function(){e.state.close()}},(0,r.default)("svg",{viewBox:"0 0 48 48",width:"100%",height:"100%"},(0,r.default)("path",{stroke:"#696057","stroke-width":"2px",d:"M9.9 9.9l28.3 28.3m-.1-28.3L9.9 38.1"}))),(0,r.default)("div",{class:"nk-modal__content__inner"},(0,r.default)("h2",{class:"nk-modal__title nk-typography--title"}
1,e.state.title),(0,r.default)("div",{class:"nk-modal__text-container tk-richtext"},(0,r.default)("img",{class:"nk-modal__image",src:this.image||this.image}),r.default.trust(e.state.body)))))}}]),n.default=o},{mithril:410}],141:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=i(e("mithril")),r=i(e("../../../../../beregnere-tk/javascript-tk-beregnere/energiberegner/methods/deepClone")),l=e("../store/HeatingSystemCalculatorFunctions"),u=(e("../../../../../beregnere-tk/javascript-tk-beregnere/components/util/highchartsTheme"),e("../../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function c(e,t){if(!t)return!1;switch(e){case"3":case"4":return!0;default:return!1}}function d(e,t){if("7"!=t&&"6"!=t)return 0;switch(e){case"3":case"4":return h.state.loanDetails.TkSubsidy;default:return 0}}function s(e){switch(e){case"1":return"other";case"2":return"electric_heating";case"3":return"gas";case"4":return"oil";case"5":return"district_heating";case"7":return"heat_pump";case"8":return"wood_pellets";case"9":return"solar_heating";case"10":return"wood_burning_stove";default:return"electric_heating"}}var f="[addressplaceholder]",h={state:{loanDetails:{TkSubsidy:0,PublicSubsidy:0,RegistrationFee:0,AuxRegistrationThreshold:0,AuxRegistrationRate:0,ShortLoanRate:0,ShortLoanYearLength:0,LongLoanRate:0,LongLoanYearLength:0,InterestFrequency:0,LoanTerms:0,GraphYearLength:0},mobileHeaderExpanded:!1,inputAddress:"",dawaAddressResult:"",dawaAddressID:"",consumption:"",heatingType:"",area:"",streetName:"",houseNumber:"",postcode:"",spinnerIsActive:!1,inputId:"inputid",resultId:"resultid",formId:"",resultPage:!0,baseUrl:"",url:"/api/energycalculator/spar/",initialEndpoint:"nyvarmeresults?"+f,recalculateEndpoint:"nyvarmeresults",modalPopupData:null,modalWithLinkPopupData:null,input:{Address:null,Area:0,Consumption:0,HeatingInput:{TypeOfHeatingList:["Elektricitet.","Gasværksgas.","Flydende brændsel (olie, petroleum, flaskegas).","Fast brændsel (kul, koks,brænde m.m.).","Halm.","Naturgas.","Andet."]},BbrData:{Address:null},nyvarmeresults:null},cardsData:[],labelErrorMessage:"",errorLabels:{},statusCode:0,XHRerror:"",editedState:{Id:null,Status:{Code:"ok",Messages:""},Input:{Address:null,Area:0,Consumption:0,varme_name:"",varme_type:""}}},mutations:{extractFromAttrs:function(e){h.state.loanDetails=e.LoanDetail
1s,h.state.baseUrl=e.BaseUrl,h.state.url=e.EnergyCalcSuffix,h.state.initialEndpoint=e.InitialCalcEndpointSuffix+"?addressId="+f,h.state.recalculateEndpoint=e.RecalculateEndpointSuffix,h.state.errorLabels=e.ErrorLabels},updateLivingAreaInputIsTooHigh:function(e){h.state.LivingAreaInputIsTooHigh=e},updateDawaAddressID:function(e){h.state.dawaAddressID=e},updateStreetName:function(e){h.state.streetName=e},updateHouseNumber:function(e){h.state.houseNumber=e},updatePostcode:function(e){h.state.postcode=e},updateConsumption:function(e){h.state.consumption=e},updateHeatingType:function(e){h.state.heatingType=e},updateArea:function(e){h.state.area=e},ResetDawaData:function(){h.state.dawaAddressID="",h.state.dawaAddressResult=""},updateDawaAddressResult:function(e,t){h.state.inputAddress=t,h.mutations.setDataError(!1,""),h.state.dawaAddressResult=e,a.default.redraw()},setDawaResponseStatus:function(e){h.state.XHRerror=0!==e,h.state.statusCode=e,a.default.redraw()},getAndSetDawaAdressText:function(e){a.default.request({method:"GET",url:"https://api.dataforsyningen.dk/adresser/"+e}).then(function(e){e?h.mutations.updateDawaAddressResult(e.adressebetegnelse,e.adressebetegnelse):h.mutations.setDataError(!0,"Addressen kunne ikke slås op i DAWA. Vi beklager ulejligheden.")}).catch(function(e){console.log("Error: ",e),h.mutations.removeSpinner(),h.mutations.setDataError(!0,"Addressen kunne ikke slås op i DAWA. Vi beklager ulejligheden.")})},setResultPage:function(e){h.state.resultPage=e},setInputId:function(e){h.state.inputId=e},setFormId:function(e){h.state.formId=e},setResultId:function(e){h.state.resultId=e},setInputData:function(e){h.state.input=e},setEditedInputData:function(e){h.state.editedState.Input=e},setDataError:function(e,t){h.state.XHRerror=e,h.state.labelErrorMessage=t,a.default.redraw()},setSpinner:function(){h.state.spinnerIsActive=!0},removeSpinner:function(){h.state.spinnerIsActive=!1},toggleModalPopup:function(e){h.state.modalPopupData=e},toggleModalWithLinkPopup:function(e){h.state.modalWithLinkPopupData=e},resetCardData:function(){h.state.cardsData=[]},insertCardData:function(e){h.state.cardsData.push(e)},updateUrlQuery:function(e,t){var n=a.default.parseQueryString(location.search);n[e]=t,history.pushState(n,"Update parameters","?"+a.default.buildQueryString(n))},setHeatingSource:function(e,t){h.state.editedState.Input.varme_type=t,h.state.editedState.Input.varme_name=e,h.mutations.updateUrlQuery("heating_type",e)},setAreaOfHouse:function(e){h.state.editedState.Input.Area=parseInt(e),h.mutations.updateUrlQuery("area",parseInt(e))},setHeatingAnnualConsumption:function(e){h.state.editedState.Input.Consumption=parseInt(e),h.mutations.updateUrlQuery("consumption",parseInt(e))},setEstablishmentCost:function(o,s){h.state.cardsData=h.state.cardsData.map(function(e){var t,n,i,a,r;return e.Id==s&&(t=parseInt((0,u.removeNonDigitChars)(o)),a=h.state.editedState.Input.varme_type,n=e.establishmentCost.publicSubsidy,i=d(a,e.heatingId),a=c(a,h.state.loanDetails.EnableStoveRebate),5e5<(a=(0,l.calculateTotalEstablishmentCost)(t,n,i,h.state.loanDetails,a)).total?h.mutations.setDataError(!0,h.state.errorLabels.LoanTooBigErrorMsg):h.mutations.setDataError(!1,""),e.repayment=(0,l.calculateRepayment)(a.total,a.costAfterSubsidies,e.yearlySavings.total,h.state.loanDetails),r=e.repayment.totalInterest,e.establishmentCost={total:a.total+r,price:t,publicSubsidy:n,tkSubsidy:i,interestCost:r,registrationFee:a.registrationFee,auxRegistrationFee:a.auxRegistrationFee}),e}),a.default.redraw()},setTkSubsidy:function(r,o){h.state.cardsData=h.state.cardsData.map(function(e){var t,n,i,a;return e.Id==o&&(i=h.state.editedState.Input.varme_type,t=parseInt((0,u.removeNonDigitChars)(r)),n=e.establishmentCost.publicSubsidy,i=c(i,h.state.loanDetails.EnableStoveRebate),i=(0,l.calculateTotalEstablishmentCost)(establishmentCost,n,t,h.state.loanDetails,i),e.repayment=(0,l.calculateRepayment)(i.total,i.costAfterSubsidies,e.yearlySavings.total,h.state.loanDetails),a=e.repayment.totalInterest,e.establishmentCost={total:i.total+a,price:e.establishmentCost.price,publicSubsidy:n,tkSubsidy:t,interestCost:a,registrationFee:i.registrationFee,auxRegistrationFee:i.auxRegistrationFee}),e}),a.default.redraw()},setPublicSubsidy:function(r,o){h.state.cardsData=h.state.cardsData.map(function(e){var t,n,i,a;return e.Id==o&&(i=h.state.editedState.Input.varme_type,t=parseInt((0,u.removeNonDigitChars)(r)),n=d(i,e.heatingId),i=c(i,h.state.loanDetail
1s.EnableStoveRebate),i=(0,l.calculateTotalEstablishmentCost)(establishmentCost,t,n,h.state.loanDetails,i),e.repayment=(0,l.calculateRepayment)(i.total,i.costAfterSubsidies,e.yearlySavings.total,h.state.loanDetails),a=e.repayment.totalInterest,e.establishmentCost={total:i.total+a,price:e.establishmentCost.price,publicSubsidy:t,tkSubsidy:n,interestCost:a,registrationFee:i.registrationFee,auxRegistrationFee:i.auxRegistrationFee}),e}),a.default.redraw()}},actions:{initialCalculation:function(n){var i="function"==typeof n,e=(h.mutations.setDataError(!1,""),h.mutations.setSpinner(),i&&n(),""+h.state.baseUrl+h.state.url+h.state.initialEndpoint.replace(f,h.state.dawaAddressID)+"&consumption="+h.state.consumption+"&heatingType="+h.state.heatingType+"&area="+h.state.area+"&streetName="+h.state.streetName+"&houseNumber="+h.state.houseNumber+"&postcode="+h.state.postcode);h.mutations.updateDawaAddressID(h.state.dawaAddressID),h.mutations.updateUrlQuery("address",h.state.dawaAddressID),h.mutations.updateUrlQuery("streetName",h.state.streetName),h.mutations.updateUrlQuery("houseNumber",h.state.houseNumber),h.mutations.updateUrlQuery("postcode",h.state.postcode),a.default.request({method:"GET",url:e}).then(function(e){var t;h.mutations.setDawaResponseStatus(0),console.log("result: ",e),h.mutations.removeSpinner(),e?(h.mutations.setInputData(e),h.mutations.setEditedInputData((0,r.default)(e)),h.actions.processCardData(),h.mutations.setAreaOfHouse(e.nyvarmeresults.area),h.mutations.setHeatingAnnualConsumption(e.nyvarmeresults.consumption),t=e.nyvarmeresults.varme_type.toString(),h.mutations.setHeatingSource(s(t),t),"Fjernvarme"==e.nyvarmeresults.varme_name?h.mutations.setDataError(!0,h.state.errorLabels.AlreadyDistrictHeatingErrorMsg):(window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event.beregn_varmekilder",eventCategory:"beregn",eventAction:"varmekilder",eventLabel:"submit",eventValue:"0",eventNoninteraction:!0,userType:"privat"})),a.default.redraw()):(h.mutations.setDataError(!0,h.state.errorLabels.GeneralErrorMsg),i&&n())}).catch(function(e){console.log("Error: ",e),h.mutations.removeSpinner(),h.mutations.setDataError(!0,h.state.errorLabels.GeneralErrorMsg),i&&n()})},changeWindowState:function(){h.state.resultPage?(document.getElementById(h.state.inputId).style.display="none",document.getElementById(h.state.resultId).style.display="grid",document.getElementById(h.state.formId).style.display="grid"):(h.mutations.ResetDawaData(),document.getElementById(h.state.inputId).style.display="grid",document.getElementById(h.state.resultId).style.display="none",document.getElementById(h.state.formId).style.display="none"),h.mutations.setResultPage(!h.state.resultPage)},postEditedStateResults:function(t,e){var n="function"==typeof t,e=(h.mutations.setDataError(!1,""),h.mutations.setSpinner(),n&&t(),""+h.state.baseUrl+h.state.url+h.state.recalculateEndpoint+"?addressId="+h.state.dawaAddressID+"&area="+(h.state.editedState.Input.Area||"")+"&consumption="+(h.state.editedState.Input.Consumption&&!e?h.state.editedState.Input.Consumption:"")+"&heatingtype="+(h.state.editedState.Input.varme_name||"")+"&streetName="+(h.state.streetName||"")+"&houseNumber="+(h.state.houseNumber||"")+"&postcode="+(h.state.postcode||""));a.default.request({method:"GET",url:e}).then(function(e){h.mutations.removeSpinner(),"Fjernvarme"==e.nyvarmeresults.varme_name?(h.mutations.setDataError(!0,h.state.errorLabels.AlreadyDistrictHeatingErrorMsg),a.default.redraw()):(h.mutations.setInputData(e),h.mutations.getAndSetDawaAdressText(h.state.dawaAddressID),h.mutations.setEditedInputData((0,r.default)(e)),h.mutations.setAreaOfHouse(e.nyvarmeresults.area),h.mutations.setHeatingAnnualConsumption(e.nyvarmeresults.consumption),e=e.nyvarmeresults.varme_typ.toString(),h.mutations.setHeatingSource(s(e),e),h.actions.processCardData(),a.default.redraw(),n&&t())}).catch(function(e){console.log("Error: ",e),h.mutations.removeSpinner(),h.mutations.setDataError(!0,h.state.errorLabels.GeneralErrorMsg)})},processCardData:function(){var t,e,s=h.state.input.nyvarmeresults;h.mutations.resetCardData(),s&&s.potentials?(t=[],s.potentials.filter(function(e){return e.potential["total-savings"]}
1).forEach(function(e){e={heatingName:e.heating_name,heatingId:e.heating_id,Id:0,yearlySavings:{savingIsValid:null!=e.potential["total-savings"].value,total:parseInt(e.potential["total-savings"].value),existing:parseInt(e.potential["actual-section"].total.value),aproximatedExistingServiceFee:e.potential["actual-section"].total.value-s.consumption,existingWithoutServiceFee:parseInt(s.consumption),new:parseInt(e.potential["future-section"].total.value)},establishmentCost:{total:0,price:parseInt(e.potential["total-investment"].value),publicSubsidy:0,tkSubsidy:0,interestCost:0,registrationFee:0,auxRegistrationFee:0},repayment:{},yearlySavingsExpanded:!1,establishmentCostsShowMore:!1,paymentTimeShowMore:!1,showGraph:!1,showTable:!0};t.push(e)}),t.sort(function(e,t){return e.yearlySavings.total<t.yearlySavings.total?1:-1}),0===(e=(t=[].concat(o(t.filter(function(e){return"Fjernvarme"==e.heatingName})),o(t.filter(function(e){return"Fjernvarme"!=e.heatingName})))).slice(0,2)).length&&(h.mutations.setDataError(!0,h.state.errorLabels.NoSavingsErrorMsg),h.actions.changeWindowState()),e.forEach(function(e,t){var n=s.varme_type,i=e.establishmentCost.price,a=d(n,e.heatingId),n=c(n,h.state.loanDetails.EnableStoveRebate),n=(0,l.calculateTotalEstablishmentCost)(i,0,a,h.state.loanDetails,n),r=n.total,o=(e.repayment=(0,l.calculateRepayment)(r,n.costAfterSubsidies,e.yearlySavings.total,h.state.loanDetails),e.repayment.totalInterest);e.establishmentCost={total:r+o,price:i,publicSubsidy:0,tkSubsidy:a,interestCost:o,registrationFee:n.registrationFee,auxRegistrationFee:n.auxRegistrationFee},e.Id=t,h.mutations.insertCardData(e)})):(h.mutations.setDataError(!0,h.state.errorLabels.NoSavingsErrorMsg),h.actions.changeWindowState())},openModalPopup:function(e){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - varmekildeberegner",eventLabel:"info læs mere",eventValue:0,eventNoninteraction:!0}),h.mutations.toggleModalPopup(e),a.default.redraw()},closeModalPopup:function(e){h.mutations.toggleModalPopup(e),a.default.redraw()},openModalWithLinkPopup:function(e){h.mutations.toggleModalWithLinkPopup(e),a.default.redraw()},closeModalWithLinkPopup:function(e){h.mutations.toggleModalWithLinkPopup(e),a.default.redraw()}}};n.default=h},{"../../../../../beregnere-tk/javascript-tk-beregnere/components/util/highchartsTheme":15,"../../../../../beregnere-tk/javascript-tk-beregnere/components/util/numberFormat":17,"../../../../../beregnere-tk/javascript-tk-beregnere/energiberegner/methods/deepClone":51,"../store/HeatingSystemCalculatorFunctions":140,mithril:410}],140:[function(e,t,n){"use strict";function v(e,t,n,i,a){var r=0,o=i,s=new Date(Date.now()),s=new Date(s.setMonth(s.getMonth()+e)),l=(l=s.getFullYear(),s=s.getMonth(),new Date(new Date(l,s,1)-1));return e%(12/n)==0&&(o-=r=a*(t/n)),a<i?{instalment:a,interest:r,payment:a+r,newValue:0,instalmentDate:l}:{instalment:o,interest:r,payment:i,newValue:a-o,instalmentDate:l}}function f(e,t,n,i,a,r,o){for(var s,l,u=o*i,c=e*(s=r/i)/(1-Math.pow(1+s,-1*u)),d=e,f=0,h=[{Flow:t,Date:(s=new Date(Date.now()).getFullYear(),l=new Date(Date.now()).getMonth(),new Date(new Date(s,l,1)))}],p=0,m=1;m<=u;m++){var g=v(m,r,a,c,d),d=g.newValue;f+=g.interest,p+=g.payment,h.push({Flow:-g.payment,Date:g.instalmentDate})}return{length:i*o,yearsBeforeProfit:((e+(f=Math.ceil(f)))/n).toFixed(2),totalInterest:f,instalmentDates:h,totalContributions:p,establishmentCostAfterSubsidies:t,rate:r,debitorRate:Math.pow(1+r/4,4)-1,aaop:null,monthGraphData:null,yearGraphData:null,shortLoanSelected:null}}function h(e,t){for(var n=0,i=new Date(t[0].Date),a=0;a<t.length;a++){var r=t[a],o=r.Flow,r=new Date(r.Date);n+=o/Math.pow(1+e,(o=r,Math.round(Math.abs((i.getTime()-o.getTime())/864e5))/365))}return n}Object.defineProperty(n,"__esModule",{value:!0}),n.calculateTotalEstablishmentCost=function(e,t,n,i,a){var e=e-t-n,t=e,n=0,r=0,o=0;t>=i.AuxRegistrationThreshold&&(n=a?0:100*Math.ceil(t*i.AuxRegistrationRate/100),r=a?0:i.RegistrationFee,o=n+r);a=t+o;return{total:a<0?0:a,auxRegistrationFee:n,registrationFee:r,costAfterSubsidies:e}},n.calculateRepayment=function(e,t,n,i){var a=i.LoanTerms,r=i.InterestFrequency,o=f(e,t,n,a,r,i.ShortLoanRate,i.ShortLoanYearLength),t=f(e,t,n,a,r,i.LongLoanRate,i.LongLoanYearLength),a=o,r=5<o.yearsBeforeProfit,o=5<t.yearsBeforeProfit;a.shortLoanSelected=!0,r&&o&&((a=t).shortLoanSelected=!1);a.aaop=100*function(e,t){t=t||.1;for(var n=0,i=t,a=h(n,e),r=h(i,e),o=0;o<100&&!(a*r<0);o++)Math.abs(a)<Math.abs(r)?a=h(n+=1.6*(n-i),e):r=h(i+=1.6*(i-n),e);if(!(0<a*r)){var s,l,t=h(n,e);l=t<0?i-(s=n):n-(s=i);for(o=0;o<100;o++){var u=s+(l*=.5),c=h(u,e);if(c<=0&&(s=u),Math.abs(c)<1e-6||Math.abs(l)<1e-6)return u}}return null}(a.instalmentDates,.015);for(var s=-1*(e+a.totalInterest),l=Math.round(n/12),u=[s],c=[s],d=1;d<=12*i.GraphYearLength;d++)u.push(s+=l),d%12==0&&c.push(s);return a.monthGraphData=u,a.yearGraphData=c,a}},{}],139:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var r=s(e("mithril")),o=s(e("highcharts"));function s(e){return e&&e.__esModule?e:{default:e}}function l(){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function")}i(l,[{key:"oninit",value:function(e){this.modelData,this.labels}},{key:"oncreate",value:function(e){this.drawHighChart(e)}},{key:"onupdate",value:function(e){e.attrs.activeDataset!=this.modelData&&this.drawHighChart(e)}},{key:"view",value:function(e){return(0,r.default)("div",{id:e.attrs.graphId})}},{key:"drawHighChart",value:function(e){this.modelData=e.attrs.activeDataset,this.labels=e.attrs.labels,this.graphId=e.attrs.graphId,o.default.wrap(o.default.Axis.prototype,"getPlotLinePath",function(e){e=e.apply(this,Array.prototype.slice.call(arguments,1));return e&&(e.flat=!1),e}),this.graph={chart:{marginTop:50,marginBottom:50,marginLeft:50,marginRight:50},title:{text:null},subtitle:{x:0,y:20,text:"<b>"+this.labels.ProfitLabel+"</b>",align:"left",style:{color:"#07094a"}},tooltip:{formatter:function(){return"<b>Overskud</b> "+this.y.toLocaleString("da-DK")}},xAxis:{showFirstLabel:!1,tickInterval:60,lineColor:"transparent",labels:{formatter:function(){return this.value/12}}},yAxis:{title:{offset:0,y:30,x:-40,align:"low",rotation:0,text:"<b>"+this.labels.DebtLabel+"</b>",style:{color:"#07094a"}},plotLines:[{color:"grey",width:1,value:0,dashStyle:"dash",label:{text:"<b>Ã
R</b>",align:"right",x:25,y:5}}],tickInterval:5e4,lineColor:"transparent",gridLineWidth:0,minorGridLineWidth:0},plotOptions:{series:{label:{connectorAllowed:!1},pointStart:0}},series:[{data:this.modelData}]},this.chart=o.default.chart(this.graphId,this.graph)}}]),n.default=l},{highcharts:408,mithril:410}],138:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(e,t,n,i){n=2<arguments.length&&void 0!==n?n:"";return(3<arguments.length&&void 0!==i?i:"")+t(e.replace(/\D/g,""))+n}var s=void 0,e=(i(l,[{key:"oninit",value:function(e){this.mask=e.attrs.mask,this.suffix=e.attrs.suffix,this.prefix=e.attrs.prefix,this.value=e.attrs.value,this.class=e.attrs.class,this.rightaligned=e.attrs.rightaligned,this.oninput=e.attrs.oninput,this.callback=e.attrs.callback,this.id=e.attrs.id,this.name=e.attrs.name,this.min=e.attrs.min,this.max=e.attrs.max,this.formattedValue=o(this.value.toString(),this.mask,this.suffix,this.prefix)}},{key:"checkInputValue",value:function(e){var t=e.replace(/\D/g,"");return this.min&&(t<this.min||!t)?this.min:e}},{key:"view",value:function(e){var a=this;return(0,r.default)("input",{class:this.class,style:this.rightaligned?"text-align: right; font-size: 14px;":"font-size: 14px!important;",type:"text",value:this.formattedValue,id:this.id,name:this.name,oncreate:function(e){s=e.dom.selectionStart},oninput:function(e){s=e.target.selectionStart;var t=e.target.value,n=o(t,a.mask,a.suffix,a.prefix),i=n.slice(0,s).length-t.slice(0,s).length+(n.slice(s,n.length).length-t.slice(s,t.length).length);if(s+(i=s+i<0?0:i)>n.length&&(i=n.length),s+=i,a.suffix&&s>n.length-a.suffix.length&&(s=n.length-a.suffix.length),a.prefix&&s<a.prefix.length&&(s=a.prefix.length),"deleteContentBackward"==e.inputType)for(;t.length<n.length&&0<s;)n=o(n=n.slice(0,s-1)+n.slice(s),a.mask,a.suffix,a.prefix),s-=1;a.formattedValue=o(a.checkInputValue(n),a.mask,a.suffix,a.prefix),a.callback&&a.callback(a.formattedValue.replace(/\D/g,""))},onupdate:function(e){setTimeout(function(){e.dom.setSelectionRange(s,s)},0)}})}}]),l);function l(){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function")}n.default=e},{mithril:410}],133:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.StickyFloatingButton=void 0;var e=e("mithril"),i=(e=e)&&e.__esModule?e:{default:e};n.StickyFloatingButton=function(){return{view:function(e){var e=e.attrs,t=e.href,e=e.label;return(0,i.default)("a",{id:"nk-sticky-floating-button",class:"nk-sticky-floating-button",href:t},(0,i.default)("div",{style:"width: 30px; height: 30px;"},(0,i.default)("svg",{fill:"#ffffff",height:"30px",width:"30px",viewBox:"0 0 512 512"},(0,i.default)("g",{"stroke-width":"0"}),(0,i.default)("g",{"stroke-linecap":"round","stroke-linejoin":"round"}),(0,i.default)("g",null," ",(0,i.default)("g",null," ",(0,i.default)("g",null," ",(0,i.default)("path",{d:"M508.645,18.449c-2.929-2.704-7.133-3.51-10.826-2.085L6.715,204.446c-3.541,1.356-6.066,4.515-6.607,8.264 c-0.541,3.75,0.985,7.496,3.995,9.796l152.127,116.747c-0.004,0.116-0.575,0.224-0.575,0.342v83.592 c0,3.851,2.663,7.393,6.061,9.213c1.541,0.827,3.51,1.236,5.199,1.236c2.026,0,4.181-0.593,5.931-1.756l56.12-37.367 l130.369,99.669c1.848,1.413,4.099,2.149,6.365,2.149c1.087,0,2.186-0.169,3.248-0.516c3.27-1.066,5.811-3.672,6.786-6.974 L511.571,29.082C512.698,25.271,511.563,21.148,508.645,18.449z M170.506,321.508c-0.385,0.36-0.7,0.763-1.019,1.163 L31.659,217.272L456.525,54.557L170.506,321.508z M176.552,403.661v-48.454l33.852,25.887L176.552,403.661z M359.996,468.354 l-121.63-93.012c-1.263-1.77-2.975-3.029-4.883-3.733l-47.29-36.163L480.392,60.86L359.996,468.354z"})," ")," ")," "))),(0,i.default)("div",null,e))}}}},{mithril:410}],111:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var n=void 0;(n=window.matchMedia("(max-width: 479px)").matches?t.getAttribute("data-image-mobile-src"):window.matchMedia("(max-width: 839px) and (min-width: 480px)").matches?t.getAttribute("data-image-tablet-src"):t.getAttribute("data-image-desktop-src"))&&(t.style.backgroundImage='url("'+n+'")')}},{}],109:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});
1var e=e("anchor-scroll"),i=(e=e)&&e.__esModule?e:{default:e};n.default=function e(){var n=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.offset=0,this.resizeTimeout=null,this.checkForFixedNavigation=function(){var e,t=document.querySelector(".nav-onpage__row");t?(n.offset=-t.clientHeight,window.innerWidth<1080&&(e=document.querySelector(".mdc-toolbar--fixed--on-mobile"))&&(n.offset=-(t.clientHeight+e.clientHeight-10))):n.offset=0,i.default.init({updateUrl:!0,offset:n.offset,ease:"in-out-expo",duration:1500,selector:"a[href^='#']:not([href='#'])"})},this.resizeThrottler=function(){n.resizeTimeout||(n.resizeTimeout=setTimeout(n.checkForFixedNavigation(),66),n.resizeTimeout=null)},this.checkForFixedNavigation(),window.addEventListener("resize",function(e){n.resizeThrottler()},!1)}},{"anchor-scroll":394}],394:[function(e,t,n){"use strict";var i,a=e("closest"),r=e("object-assign"),o=e("scroll-to-element");function s(){document.removeEventListener("click",i,!1)}t.exports={init:function(n){s(),n=r({updateUrl:!0},n),i=function(e){var t=a(e.target,n.selector||"a[href*='#']",!0);t&&(e.preventDefault(),history.pushState&&n.updateUrl&&history.pushState(null,null,t.hash||"#"),o(t.hash||"html",n))},document.addEventListener("click",i,!1)},destroy:s}},{closest:403,"object-assign":414,"scroll-to-element":420}],420:[function(e,t,n){"use strict";var s=e("./scroll-to");t.exports=function(e,t){if(t=t||{},e="string"==typeof e?document.querySelector(e):e)return s(0,(e=e,n=t.offset,i=t.align,a=document.body,r=document.documentElement,e=e.getBoundingClientRect(),o=r.clientHeight,a=Math.max(a.scrollHeight,a.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight),n=n||0,r="bottom"===i?e.bottom-o:"middle"===i?e.bottom-o/2-e.height/2:e.top,i=a-o,Math.min(r+n+window.pageYOffset,i)),t);var n,i,a,r,o}},{"./scroll-to":421}],421:[function(e,t,n){"use strict";var o=e("./tween"),s=e("raf");t.exports=function(e,t,n){n=n||{};var i={top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft},a=o(i).ease(n.ease||"out-circ").to({top:t,left:e}).duration(n.duration||1e3);function r(){s(r),a.update()}return a.update(function(e){window.scrollTo(0|e.left,0|e.top)}),a.on("end",function(){r=function(){}}),r(),a}},{"./tween":422,raf:417}],422:[function(e,t,n){"use strict";var i=e("./ease");function a(e){if(!(this instanceof a))return new a(e);this._from=e,this.ease("linear"),this.duration(500)}e("./emitter")(a.prototype),a.prototype.reset=function(){return this.isArray="[object Array]"===Object.prototype.toString.call(this._from),this._curr=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}({},this._from),this._done=!1,this._start=Date.now(),this},a.prototype.to=function(e){return this.reset(),this._to=e,this},a.prototype.duration=function(e){return this._duration=e,this},a.prototype.ease=function(e){if(e="function"==typeof e?e:i[e])return this._ease=e,this;throw new TypeError("invalid easing function")},a.prototype.stop=function(){return this.stopped=!0,this._done=!0,this.emit("stop"),this.emit("end"),this},a.prototype.step=function(){if(!this._done){var e=this._duration,t=Date.now();if(e<=t-this._start)this._from=this._to,this._update(this._to),this._done=!0,this.emit("end");else{var n=this._from,i=this._to,a=this._curr,r=(0,this._ease)((t-this._start)/e);if(this.isArray)for(var o=0;o<n.length;++o)a[o]=n[o]+(i[o]-n[o])*r;else for(var s in n)a[s]=n[s]+(i[s]-n[s])*r;this._update(a)}return this}},a.prototype.update=function(e){return 0==arguments.length?this.step():(this._update=e,this)},t.exports=a},{"./ease":418,"./emitter":419}],419:[function(e,t,n){"use strict";function i(e){if(e){var t,n=e;for(t in i.prototype)n[t]=i.prototype[t];return n}}i.prototype.on=i.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},i.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)this._callbacks={};else{var n=this._callbacks["$"+e];if(n)if(1==arguments.length)delete this._callbacks["$"+e];else{for(var i,a=0;a<n.length;a++)if((i=n[a])===t||i.fn===t){n.splice(a,1);break}0===n.length&&delete this._callbacks["$"+e]}}return this},i.prototype.emit=function(e){this._callbacks=this._callbacks||{};
1var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var i=0,a=(n=n.slice(0)).length;i<a;++i)n[i].apply(this,t);return this},i.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},i.prototype.hasListeners=function(e){return!!this.listeners(e).length},void 0!==t&&(t.exports=i)},{}],418:[function(e,t,n){"use strict";n.linear=function(e){return e},n.inQuad=function(e){return e*e},n.outQuad=function(e){return e*(2-e)},n.inOutQuad=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},n.inCube=function(e){return e*e*e},n.outCube=function(e){return--e*e*e+1},n.inOutCube=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},n.inQuart=function(e){return e*e*e*e},n.outQuart=function(e){return 1- --e*e*e*e},n.inOutQuart=function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},n.inQuint=function(e){return e*e*e*e*e},n.outQuint=function(e){return--e*e*e*e*e+1},n.inOutQuint=function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},n.inSine=function(e){return 1-Math.cos(e*Math.PI/2)},n.outSine=function(e){return Math.sin(e*Math.PI/2)},n.inOutSine=function(e){return.5*(1-Math.cos(Math.PI*e))},n.inExpo=function(e){return 0==e?0:Math.pow(1024,e-1)},n.outExpo=function(e){return 1==e?e:1-Math.pow(2,-10*e)},n.inOutExpo=function(e){return 0==e?0:1==e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},n.inCirc=function(e){return 1-Math.sqrt(1-e*e)},n.outCirc=function(e){return Math.sqrt(1- --e*e)},n.inOutCirc=function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},n.inBack=function(e){return e*e*(2.70158*e-1.70158)},n.outBack=function(e){return--e*e*(2.70158*e+1.70158)+1},n.inOutBack=function(e){var t=2.5949095;return(e*=2)<1?e*e*((1+t)*e-t)*.5:.5*((e-=2)*e*((1+t)*e+t)+2)},n.inBounce=function(e){return 1-n.outBounce(1-e)},n.outBounce=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},n.inOutBounce=function(e){return e<.5?.5*n.inBounce(2*e):.5*n.outBounce(2*e-1)+.5},n.inElastic=function(e){var t,n=.1;return 0===e?0:1===e?1:(t=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*--e)*Math.sin((e-t)*(2*Math.PI)/.4)))},n.outElastic=function(e){var t,n=.1;return 0===e?0:1===e?1:(t=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},n.inOutElastic=function(e){var t,n=.1;return 0===e?0:1===e?1:(t=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*--e)*Math.sin((e-t)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--e)*Math.sin((e-t)*(2*Math.PI)/.4)*.5+1)},n["in-quad"]=n.inQuad,n["out-quad"]=n.outQuad,n["in-out-quad"]=n.inOutQuad,n["in-cube"]=n.inCube,n["out-cube"]=n.outCube,n["in-out-cube"]=n.inOutCube,n["in-quart"]=n.inQuart,n["out-quart"]=n.outQuart,n["in-out-quart"]=n.inOutQuart,n["in-quint"]=n.inQuint,n["out-quint"]=n.outQuint,n["in-out-quint"]=n.inOutQuint,n["in-sine"]=n.inSine,n["out-sine"]=n.outSine,n["in-out-sine"]=n.inOutSine,n["in-expo"]=n.inExpo,n["out-expo"]=n.outExpo,n["in-out-expo"]=n.inOutExpo,n["in-circ"]=n.inCirc,n["out-circ"]=n.outCirc,n["in-out-circ"]=n.inOutCirc,n["in-back"]=n.inBack,n["out-back"]=n.outBack,n["in-out-back"]=n.inOutBack,n["in-bounce"]=n.inBounce,n["out-bounce"]=n.outBounce,n["in-out-bounce"]=n.inOutBounce,n["in-elastic"]=n.inElastic,n["out-elastic"]=n.outElastic,n["in-out-elastic"]=n.inOutElastic},{}],417:[function(e,t,n){"use strict";for(var i,a,r,o=e("performance-now"),s="undefined"==typeof window?global:window,l=["moz","webkit"],u="AnimationFrame",c=s["request"+u],d=s["cancel"+u]||s["cancelRequest"+u],f=0;!c&&f<l.length;f++)c=s[l[f]+"Request"+u],d=s[l[f]+"Cancel"+u]||s[l[f]+"CancelRequest"+u];c&&d||(a=i=0,r=[],c=function(e){var t,n;return 0===r.length&&(t=o(),n=Math.max(0,1e3/60-(t-i)),i=n+t,setTimeout(function(){for(var e=r.slice(0),t=r.length=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(i)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))),r.push({handle:++a,callback:e,cancelled:!1}),a},d=function(e){for(var t=0;t<r.length;t++)r[t].handle===e&&(r[t].cancelled=!0)}),t.exports=function(e){return c.call(s,e)},t.exports.cancel=function(){d.apply(s,arguments)},t.exports.polyfill=function(e){(e=e||s).requestAnimationFrame=c,e.cancelAnimationFrame=d}},{"performance-now":415}],415:[function(e,o,t){"use strict";!function(){var e,t,n,i,a,r;"undefined"!=typeof performance&&null!==performance&&performance.now?o.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(o.exports=function(){return(e()-a)/1e6},t=process.hrtime,i=(e=function(){var e=t();return 1e9*e[0]+e[1]})(),r=1e9*process.uptime(),a=i-r):n=Date.now?(o.exports=function(){return Date.now()-n},Date.now()):(o.exports=function(){return(new Date).getTime()-n},(new Date).getTime())}.call(void 0)},{}],414:[function(e,t,n){"use strict";
1t.exports=Object.assign||function(e,t){for(var n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++)for(var a=arguments[i],r=Object.keys(Object(a)),o=0;o<r.length;o++)n[r[o]]=a[r[o]];return n}},{}],403:[function(e,t,n){"use strict";var a=e("matches-selector");t.exports=function(e,t,n){for(var i=n?e:e.parentNode;i&&i!==document;){if(a(i,t))return i;i=i.parentNode}}},{"matches-selector":409}],409:[function(e,t,n){"use strict";var i=Element.prototype,a=i.matchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector;t.exports=function(e,t){if(a)return a.call(e,t);for(var n=e.parentNode.querySelectorAll(t),i=0;i<n.length;++i)if(n[i]==e)return!0;return!1}},{}],108:[function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(n,"__esModule",{value:!0});(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(s,[{key:"toggleContainer",value:function(e){var e=e.parentElement,t=e.classList.contains("is-open");this.urlParameters="",this.openFromHash=!1,t?this.closeContainer(e):this.openContainer(e)}},{key:"openContainer",value:function(e){e.classList.add("is-open"),(this.activeContainerEl=e).id&&(t=""!=this.urlParameters?"#"+e.id+"?"+this.urlParameters:"#"+e.id,window.history.pushState?window.history.pushState(null,null,t):window.location.hash=t);var t=e.querySelector(".js-accordion-content"),e=t.firstElementChild.getBoundingClientRect().height;t.style.height=e+"px",this.openFromHash&&this.activeContainerEl.scrollIntoView(!0)}},{key:"closeContainer",value:function(e){e.classList.remove("is-open"),this.activeContainerEl=null,e.querySelector(".js-accordion-content").style.height=0}}]);var a=s;function s(e){var t=this;if(!(this instanceof s))throw new TypeError("Cannot call a class as a function");if(this.activeContainerEl=null,this.urlParameters="",this.openFromHash=!1,this.clickHandler=function(e){e=e.target;t.toggleContainer(e)},e){this.triggerEls=e.querySelectorAll(".js-accordion-handler"),this.triggerEls.length&&Array.from(this.triggerEls).forEach(function(e){return e.addEventListener("click",t.clickHandler,!1)});var n=window.location.hash;if(n){var i,a="";-1!=n.indexOf("?")&&(a=(i=n.split("?"))[0],this.urlParameters=i[1],this.openFromHash=!0);try{var r=""!=a?a:n,o=e.querySelector(r);o&&o.classList.contains("accordion__item")&&this.openContainer(o)}catch(e){}}}}n.default=a},{}],105:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=l(e("mithril")),o=l(e("./PagingComponent")),s=l(e("../icon"));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.default=function e(t){u(this,e),r.default.mount(t,{view:function(){return(0,r.default)(c,JSON.parse(t.getAttribute("attrs")))}})},i(d,[{key:"oninit",value:function(e){e=e.attrs;this.pagingComponent=new o.default,this.type=e.InstrumentType,this.url=e.url,this.priceUrl=e.priceUrl,this.nameFilter=e.NameFilterList,this.isinFilter=e.IsinFilterList,this.updateTime=e.UpdateTime,this.instruments=[],this.price=null,this.asyncCounter=0,this.errorMessage=e.ErrorMessage,this.unavailable=!1,this.getInstruments()}},{key:"getInstruments",value:function(){var t=this,n=this.asyncCounter,e=(this.loading=!0,{NameList:this.nameFilter,IsinList:this.isinFilter});r.default.request({url:this.url,data:e,method:"GET"}).then(function(e){n===t.asyncCounter&&(t.unavailable=!1,t.instruments=e)}).catch(function(e){n===t.asyncCounter&&(t.unavailable=!0)})}},{key:"updateInstrumentPrice",value:function(e){var n=this,i=this.asyncCounter,t=this.priceUrl,a=(this.loading=!0,this.instruments.indexOf(e));r.default.request({url:t,data:e.Isin,method:"POST"}).then(function(e){var t;
1i===n.asyncCounter&&(t=new Date(e.UpdateTime).toLocaleString("da-DK"),n.instruments[a].Buy=e.BuyPrice,n.instruments[a].Sell=e.SellPrice,n.instruments[a].Updated=t)}).catch(function(e){n.asyncCounter})}},{key:"view",value:function(e){var t=this,n=e.attrs;return this.pagingComponent.init(this.instruments),this.unavailable=this.instruments<1,(0,r.default)("div",{class:"section section--table theme--white"},(0,r.default)("div",{class:"mdc-layout-grid"},(0,r.default)("div",{class:"table si-prices"},(0,r.default)("table",null,(0,r.default)("thead",null,(0,r.default)("tr",null,(0,r.default)("th",{id:n.IsinHeader},n.IsinHeader),(0,r.default)("th",{id:n.NameHeader,align:"right"},n.NameHeader),(0,r.default)("th",{id:n.UpdatedHeader,align:"right"},n.UpdatedHeader),(0,r.default)("th",{id:n.RateHeader,align:"right"},n.RateHeader),(0,r.default)("th",{id:n.BuyPxHeader,align:"right"},n.BuyPxHeader),(0,r.default)("th",{id:n.SellPxHeader,align:"right"},n.SellPxHeader),(0,r.default)("th",{colspan:"1"}))),(0,r.default)("tbody",null,(0,r.default)("tr",null,(0,r.default)("th",{colspan:"7",align:"right"},n.LastUpdatedLabel," ",this.updateTime)),this.instruments.slice(this.pagingComponent.currentOffset,this.pagingComponent.currentEnd).map(function(e){return(0,r.default)("tr",null,(0,r.default)("td",{headers:n.IsinHeader,"data-title":n.IsinHeader},e.Isin),(0,r.default)("td",{headers:n.NameHeader,align:"right","data-title":n.NameHeader},e.Name),(0,r.default)("td",{headers:n.UpdatedHeader,align:"right","data-title":n.UpdatedHeader},e.Updated),(0,r.default)("td",{headers:n.RateHeader,align:"right","data-title":n.RateHeader},e.Rate),(0,r.default)("td",{headers:n.BuyPxHeader,align:"right","data-title":n.BuyPxHeader},e.Buy),(0,r.default)("td",{headers:n.SellPxHeader,align:"right","data-title":n.SellPxHeader},e.Sell),(0,r.default)("td",{align:"right","data-title":" "},(0,r.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--small mdc-button--compact si-prices__button",onclick:function(){return t.updateInstrumentPrice(e)}},"Opdater")))}))),this.pagingComponent.hasPaging()&&(0,r.default)("div",{class:"si-prices__paging"},(0,r.default)("span",{class:"mdc-typography--body-xs"},this.pagingComponent.pageLabel()),this.pagingComponent.hasPrev()?(0,r.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--small mdc-button--compact",onclick:function(){return t.pagingComponent.prev()}},(0,r.default)(s.default,{type:"#minimal-left",size:"xxs"})):(0,r.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--small mdc-button--compact",disabled:!0},(0,r.default)(s.default,{type:"#minimal-left",size:"xxs"})),this.pagingComponent.hasNext()?(0,r.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--small mdc-button--compact",onclick:function(){return t.pagingComponent.next()}},(0,r.default)(s.default,{type:"#minimal-right",size:"xxs"})):(0,r.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--small mdc-button--compact",disabled:!0},(0,r.default)(s.default,{type:"#minimal-right",size:"xxs"})))),this.unavailable&&r.default.trust(this.errorMessage)))}}]);var c=d;function d(){u(this,d)}},{"../icon":246,"./PagingComponent":104,mithril:410}],104:[function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.currentOffset=0,this.pageSize=25,this.currentEnd=this.pageSize,this.instruments=[]}Object.defineProperty(n,"__esModule",{value:!0}),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"init",value:function(e){this.instruments=e}},{key:"hasPaging",value:function(){return this.instruments.length>this.pageSize}},{key:"prev",value:function(){this.currentOffset-=this.pageSize,this.currentEnd=Math.min(this.currentOffset+this.pageSize,this.instruments.length)}},{key:"hasPrev",value:function(){return 0<this.currentOffset}},{key:"next",value:function(){this.currentOffset+=this.pageSize,this.currentEnd=Math.min(this.currentOffset+this.pageSize,this.instruments.length)}},{key:"hasNext",value:function(){return this.currentOffset+this.pageSize<this.instruments.length}},{key:"pageLabel",value:function(){return this.currentOffset+1+"-"+Math.min(this.currentOffset+this.pageSize,this.instruments.length)+" af "+this.instruments.length}}]),n.default=a},{}],93:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e){return(0,r.default)("div",{class:"drop "+((!(1<arguments.length&&void 0!==arguments[1])||arguments[1])&&"drop--down")},(0,r.default)("span",null,e),(0,r.default)("svg",{viewbox:"0 0 24 25"},(0,r.default)("path",{"stroke-width":"1.5",d:"M15 3\r Q16.5 6.8 25 18\r A12.8 12.8 0 1 1 5 18\r Q13.5 6.8 15 3z"})))}n.default=function e(t){o(this,e),r.default.mount(t,{view:function(){return(0,r.default)(l,JSON.parse(t.getAttribute("attrs")))}})};i(u,[{key:"oninit",value:function(e){e=e.attrs;this.fundEsgScore=e.FundEsgScore,this.benchmarkEsgScore=e.BenchmarkEsgScore,this.fundEsgLabel=e.FundEsgLabel,this.benchmarkEsgLabel=e.BenchmarkEsgLabel}},{key:"makeColorBox",value:function(e,t){return(0,r.default)("div",{class:"scale-container__box",style:{background:e}},(0,r.default)("span",{class:"scale-container__box__number"},t+1),0===t&&(0,r.default)("span",{class:"scale-container__box__first"},0))}},{key:"makePointer",value:function(e,t){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];return(0,r.default)("div",{class:"pointer-container",style:{marginLeft:10*(e-5)+"%"}},(0,r.default)("div",{class:"pointer-container__content"},!n&&s(e,n),(0,r.default)("h3",{class:"pointer-container__content__label"},t),n&&s(e,n)))}},{key:"view",value:function(e){e.attrs;var e=this.model,t=this.makeColorBox,n=this.makePointer;return(0,r.default)("div",{class:"container"},n(this.fundEsgScore,"Fonden",!0),(0,r.default)("div",{class:"scale-container"},e.colors.map(t)),n(this.benchmarkEsgScore,this.benchmarkEsgLabel,!1))}}]);var l=u;function u(e){o(this,u),this.model={colors:["#FA0000","#FF4D4D","#FF7970","#FF9271","#FEAD63","#FFD568","#FCE2A0","#ADDBC2","#63c190","#009f4d"]}}},{mithril:410}],90:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=u(e("mithril")),o=u(e("./icon")),s=u(e("./PagingComponent")),l=e("./mdc-mithril-init");function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.default=function e(t){c(this,e),r.default.mount(t,{view:function(){return(0,r.default)(d,JSON.parse(t.getAttribute("attrs")))}})},i(f,[{key:"oninit",value:function(e){e=e.attrs;this.allBondDataFiles=e.BondDataFiles||[],this.bondDataFiles=this.allBondDataFiles,this.pagingComponent=new s.default,this.pagingComponent.init(this.bondDataFiles),this.locale=e.UsSeparator?"en-US":"da-DK",this.isin={value:""},this.shortName={value:""},this.couponRate={value:""},this.maturityYear={value:""},this.circulationVolume={value:""},this.termsPerYearList=e.TermsPerYearList||[],this.termsPerYearSelected={value:""},this.currencyList=e.CurrencyList||[],this.currencySelected={value:""},this.operatorList=["=","<",">","<=",">="],this.couponOperator={value:""},this.maturityYearOperator={value:""},this.openClosedList=[{key:e.OptionOpenLabel,value:!0},{key:e.OptionClosedLabel,value:!1}],this.openClosedSelected={value:""},this.callableList=[{key:e.OptionCallableLabel,value:!0},{key:e.OptionNonCallableLabel,value:!1}],this.callableSelected={value:""},this.fixedList=[{key:e.OptionFixedLabel,value:!0},{key:e.OptionVariableLabel,value:!1}],this.fixedSelected={value:""},this.isinSort={sort:!1,desc:!1},this.shortNameSort={sort:!1,desc:!1},this.couponRateSort={sort:!1,desc:!1},this.maturityYearSort={sort:!1,desc:!1},this.currencySort={sort:!1,desc:!1},this.circulatingVolumeSort={sort:!0,desc:!0}}},{key:"resetSorting",value:function(){this.isinSort={sort:!1,desc:!1},this.shortNameSort={sort:!1,desc:!1},this.couponRateSort={sort:!1,desc:!1},this.maturityYearSort={sort:!1,desc:!1},this.currencySort={sort:!1,desc:!1},this.circulatingVolumeSort={sort:!1,desc:!1}}},{key:"sortIsin",value:function(){this.isinSort.sort=!0;var e=this.isinSort;this.resetSorting(),this.isinSort=e,this.isinSort.desc?this.bondDataFiles.sort(function(e,t){return e.Isin>t.Isin?1:-1}):this.bondDataFiles.sort(function(e,t){return t.Isin>e.Isin?1:-1}),this.isinSort.desc=!this.isinSort.desc}},{key:"sortShortName",value:function(){this.shortNameSort.sort=!0;var e=this.shortNameSort;this.resetSorting(),this.shortNameSort=e,this.shortNameSort.desc?this.bondDataFiles.sort(function(e,t){return e.ShortName>t.ShortName?1:-1}):this.bondDataFiles.sort(function(e,t){return t.ShortName>e.ShortName?1:-1}),this.shortNameSort.desc=!this.shortNameSort.desc}},{key:"sortCouponRate",value:function(){this.couponRateSort.sort=!0;var e=this.couponRateSort;this.resetSorting(),this.couponRateSort=e,this.couponRateSort.desc?this.bondDataFiles.sort(function(e,t){return e.CouponRate-t.CouponRate}):this.bondDataFiles.sort(function(e,t){return t.CouponRate-e.CouponRate}),this.couponRateSort.desc=!this.couponRateSort.desc}},{key:"sortMaturityYear",value:function(){this.maturityYearSort.sort=!0;var e=this.maturityYearSort;this.resetSorting(),this.maturityYearSort=e,this.maturityYearSort.desc?this.bondDataFiles.sort(function(e,t){return e.MaturityYear-t.MaturityYear}):this.bondDataFiles.sort(function(e,t){return t.MaturityYear-e.MaturityYear}),this.maturityYearSort.desc=!this.maturityYearSort.desc}},{key:"sortCurrency",value:function(){this.currencySort.sort=!0;var e=this.currencySort;this.resetSorting(),this.currencySort=e,this.currencySort.desc?this.bondDataFiles.sort(function(e,t){return e.CurrencyDenomination>t.CurrencyDenomination?1:-1}):this.bondDataFiles.sort(function(e,t){return t.CurrencyDenomination>e.CurrencyDenomination?1:-1}),this.currencySort.desc=!this.currencySort.desc}},{key:"sortCirculatingVolume",value:function(){this.circulatingVolumeSort.sort=!0;var e=this.circulatingVolumeSort;this.resetSorting(),this.circulatingVolumeSort=e,this.circulatingVolumeSort.desc?this.bondDataFiles.sort(function(e,t){return e.Cir
1culatingVolume-t.CirculatingVolume}):this.bondDataFiles.sort(function(e,t){return t.CirculatingVolume-e.CirculatingVolume}),this.circulatingVolumeSort.desc=!this.circulatingVolumeSort.desc}},{key:"updateFilter",value:function(e,t){var n,i,a,r=this;if(e.value=t,this.bondDataFiles=this.allBondDataFiles,0<this.isin.value.length&&(this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.Isin.toLowerCase().includes(r.isin.value.toLowerCase())})),0<this.currencySelected.value.length&&(this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.CurrencyDenomination.toLowerCase().startsWith(r.currencySelected.value.toLowerCase())})),0<this.termsPerYearSelected.value.length&&(this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.TermsPerYear==r.termsPerYearSelected.value})),0<this.openClosedSelected.value.length&&(n="true"==this.openClosedSelected.value,this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.OpenBond==n})),0<this.callableSelected.value.length&&(i="true"==this.callableSelected.value,this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.CallableBond==i})),0<this.fixedSelected.value.length&&(a="true"==this.fixedSelected.value,this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.FixedCoupon==a})),0<this.couponRate.value.length){var o=parseFloat(this.couponRate.value.replace(",","."));switch(this.couponOperator.value){case"=":this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.CouponRate==o});break;case"<":this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.CouponRate<o});break;case">":this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.CouponRate>o});break;case"<=":this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.CouponRate<=o});break;case">=":this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.CouponRate>=o});break;default:this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.CouponRate==o})}}if(0<this.maturityYear.value.length){var s=parseInt(this.maturityYear.value);switch(this.maturityYearOperator.value){case"=":this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.MaturityYear==s});break;case"<":this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.MaturityYear<s});break;case">":this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.MaturityYear>s});break;case"<=":this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.MaturityYear<=s});break;case">=":this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.MaturityYear>=s});break;default:this.bondDataFiles=this.bondDataFiles.filter(function(e){return e.MaturityYear==s})}}this.pagingComponent.init(this.bondDataFiles)}},{key:"textInput",value:function(t,e){var n=this;return(0,r.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop"},(0,r.default)("div",{class:"mdc-form-field mdc-form-field--column"},(0,r.default)("div",{class:"mdc-text-field mdc-text-field--upgraded bond-input",oncreate:l.createMdcTextfield,onupdate:l.updateMdcTextfield,onremove:l.removeMdc},(0,r.default)("input",{class:"mdc-text-field__input",id:e,oninput:r.default.withAttr("value",function(e){return n.updateFilter(t,e)})}),(0,r.default)("label",{class:"mdc-text-field__label mdc-floating-label",for:e},e),(0,r.default)("div",{class:"mdc-line-ripple"}))))}},{key:"dropDownInput",value:function(e,t,n){var i=this;return(0,r.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop"},(0,r.default)("div",{class:"mdc-select bond-input",oncreate:l.createMdcSelect,onremove:l.removeMdc},(0,r.default)("select",{class:"mdc-select__native-control",id:n,onchange:r.default.withAttr("value",function(e){return i.updateFilter(t,e)})},(0,r.default)("option",{selected:!0,value:""}),e.map(function(e){return"object"==typeof e?(0,r.default)("option",{value:e.value},e.key):(0,r.default)("option",{value:e},e)})),(0,r.default)("label",{class:"mdc-text-field__label mdc-floating-label input-label",for:n},n)))}},{key:"dropDownTextInput",value:function(e,t,n,i){var a=this;return(0,r.default)("div",{class:"mdc-layout-grid__cell mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop double-input"},(0,r.default)("div",{class:"mdc-form-field mdc-form-field--column text-input"},(0,r.default)("div",{class:"mdc-text-field mdc-text-field--upgraded bond-input",oncreate:l.createMdcTextfield,onupdate:l.updateMdcTextfield,onremove:l.removeMdc},(0,r.default)("input",{class:"mdc-text-field__input",id:i,oninput:r.default.withAttr("value",function(e){return a.updateFilter(n,e)})}),(0,r.default)("label",{class:"mdc-text-field__label mdc-floating-label",for:i},i),(0,r.default)("div",{class:"mdc-line-ripple"}))),(0,r.default)("div",{class:"mdc-select bond-input select-input",oncreate:l.createMdcSelect,onremove:l.removeMdc},(0,r.default)("select",{class:"mdc-select__native-control",onchange:r.default.withAttr("value",function(e){return a.updateFilter(t,e)})},e.map(function(e){return(0,r.default)("option",{value:e},e)}))))}},{key:"inMillions",value:function(e,t){return(e/Math.pow(10,6)).toLocaleStr
1ing(this.locale,{minimumFractionDigits:2,maximumFractionDigits:2})}},{key:"view",value:function(e){var t=this,n=e.attrs;return(0,r.default)("div",{class:"bond-data-block"},(0,r.default)("form",{class:"bond-data-form",action:"javascript:void(0);",autocomplete:"off"},(0,r.default)("div",{class:"mdc-layout-grid__inner"},this.textInput(this.isin,n.IsinLabel),this.dropDownTextInput(this.operatorList,this.couponOperator,this.couponRate,n.CouponRateLabel),this.dropDownInput(this.termsPerYearList,this.termsPerYearSelected,n.TermsPerYearLabel),this.dropDownTextInput(this.operatorList,this.maturityYearOperator,this.maturityYear,n.MaturityYearLabel),this.dropDownInput(this.openClosedList,this.openClosedSelected,n.OpenClosedLabel),this.dropDownInput(this.currencyList,this.currencySelected,n.CurrencyLabel),this.dropDownInput(this.callableList,this.callableSelected,n.CallableLabel),this.dropDownInput(this.fixedList,this.fixedSelected,n.FixedVariableLabel))),(0,r.default)("div",null,0<this.bondDataFiles.length&&(0,r.default)("table",{class:"bond-data-table"},(0,r.default)("thead",null,(0,r.default)("tr",{class:"header-row"},(0,r.default)("th",{class:this.isinSort.sort?"sorted":"",onclick:function(){return t.sortIsin()}},(0,r.default)("div",{class:"flex-container"},n.IsinHeaderLabel,this.isinSort.sort&&(this.isinSort.desc?(0,r.default)(o.default,{type:"#stroke-down",size:"xxs"}):(0,r.default)("span",null,(0,r.default)(o.default,{type:"#stroke-up",size:"xxs"}))))),(0,r.default)("th",{class:this.shortNameSort.sort?"sorted":"",onclick:function(){return t.sortShortName()}},(0,r.default)("div",{class:"flex-container"},n.ShortNameHeaderLabel,this.shortNameSort.sort&&(this.shortNameSort.desc?(0,r.default)(o.default,{type:"#stroke-down",size:"xxs"}):(0,r.default)("span",null,(0,r.default)(o.default,{type:"#stroke-up",size:"xxs"}))))),(0,r.default)("th",{class:this.couponRateSort.sort?"sorted":"",onclick:function(){return t.sortCouponRate()}},(0,r.default)("div",{class:"flex-container right-align "},n.CouponHeaderLabel,this.couponRateSort.sort&&(this.couponRateSort.desc?(0,r.default)(o.default,{type:"#stroke-down",size:"xxs"}):(0,r.default)("span",null,(0,r.default)(o.default,{type:"#stroke-up",size:"xxs"}))))),(0,r.default)("th",{class:this.maturityYearSort.sort?"sorted":"",onclick:function(){return t.sortMaturityYear()}},(0,r.default)("div",{class:"flex-container right-align "},n.MaturityYearHeaderLabel,this.maturityYearSort.sort&&(this.maturityYearSort.desc?(0,r.default)(o.default,{type:"#stroke-down",size:"xxs"}):(0,r.default)("span",null,(0,r.default)(o.default,{type:"#stroke-up",size:"xxs"}))))),(0,r.default)("th",{class:this.currencySort.sort?"sorted":"",onclick:function(){return t.sortCurrency()}},(0,r.default)("div",{class:"flex-container right-align "},n.CurrencyHeaderLabel,this.currencySort.sort&&(this.currencySort.desc?(0,r.default)(o.default,{type:"#stroke-down",size:"xxs"}):(0,r.default)("span",null,(0,r.default)(o.default,{type:"#stroke-up",size:"xxs"}))))),(0,r.default)("th",{class:this.circulatingVolumeSort.sort?"sorted":"",onclick:function(){return t.sortCirculatingVolume()}},(0,r.default)("div",{class:"flex-container right-align "},n.CirculatingVolumeHeaderLabel,this.circulatingVolumeSort.sort&&(this.circulatingVolumeSort.desc?(0,r.default)(o.default,{type:"#stroke-down",size:"xxs"}):(0,r.default)("span",null,(0,r.default)(o.default,{type:"#stroke-up",size:"xxs"}))))))),(0,r.default)("tbody",{class:"row-column-transpose"},this.bondDataFiles.slice(this.pagingComponent.currentOffset,this.pagingComponent.currentEnd).map(function(e){return(0,r.default)("tr",null,(0,r.default)("td",null,(0,r.default)("div",{class:"row-header"},n.IsinHeaderLabel),(0,r.default)("a",{href:e.FileUri},e.Isin)),(0,r.default)("td",null,(0,r.default)("div",{class:"row-header"},n.ShortNameHeaderLabel),e.ShortName),(0,r.default)("td",{class:"right-align"},(0,r.default)("div",{class:"row-header"},n.CouponHeaderLabel),e.CouponRate.toLocaleString(t.locale)),(0,r.default)("td",{class:"right-align"},(0,r.default)("div",{class:"row-header"},n.MaturityYearHeaderLabel),e.MaturityYear),(0,r.default)("td",{class:"right-align"},(0,r.default)("div",{class:"row-header"},n.CurrencyHeaderLabel),e.CurrencyDenomination),(0,r.default)("td",{class:"right-align"},(0,r.default)("div",{class:"row-header"},n.CirculatingVolumeHeaderLabel),-1==e.CirculatingVolume?"-":t.inMillions(e.CirculatingVolume,2)))}))),0==this.bondDataFiles.length&&(0,r.default)("p",null,n.NoMatchLabel)),this.pagingComponent.hasPaging(
1)&&(0,r.default)("div",{class:"bec-si-prices__paging"},(0,r.default)("span",{class:"mdc-typography--body-xs"},this.pagingComponent.pageLabel()),this.pagingComponent.hasPrev()?(0,r.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--small mdc-button--compact",onclick:function(){return t.pagingComponent.prev()}},(0,r.default)(o.default,{type:"#minimal-left",size:"xxs"})):(0,r.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--small mdc-button--compact",disabled:!0},(0,r.default)(o.default,{type:"#minimal-left",size:"xxs"})),this.pagingComponent.hasNext()?(0,r.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--small mdc-button--compact",onclick:function(){return t.pagingComponent.next()}},(0,r.default)(o.default,{type:"#minimal-right",size:"xxs"})):(0,r.default)("button",{class:"mdc-button js-mdc-ripple mdc-button--small mdc-button--compact",disabled:!0},(0,r.default)(o.default,{type:"#minimal-right",size:"xxs"}))))}}]);var d=f;function f(){c(this,f)}},{"./PagingComponent":101,"./icon":246,"./mdc-mithril-init":255,mithril:410}],255:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createMdcTextfield=function(e){e.dom.mdcComponent=new i.MDCTextField(e.dom)},n.updateMdcTextfield=function(e){var t=e.dom.querySelector("input");t!==document.activeElement&&(t.value?e.dom.mdcComponent.foundation_.adapter_.floatLabel(!0):e.dom.mdcComponent.foundation_.adapter_.floatLabel(!1))},n.createMdcCheckbox=function(e){e.dom.mdcComponent=new s.MDCCheckbox(e.dom)},n.createMdcRadio=function(e){e.dom.mdcComponent=new o.MDCRadio(e.dom)},n.createMdcRipple=function(e){e.dom.mdcComponent=new r.MDCRipple(e.dom)},n.removeMdc=function(e){e.dom.mdcComponent.destroy()},n.createMdcSlider=function(e){e.dom.mdcComponent=new a.MDCSlider(e.dom)},n.createMdcSelect=function(e){e.dom.mdcComponent=new l.MDCSelect(e.dom)};var i=e("@material/textfield/dist/mdc.textfield"),a=e("@material/slider/dist/mdc.slider"),r=e("@material/ripple/dist/mdc.ripple"),o=e("@material/radio/dist/mdc.radio"),s=e("@material/checkbox/dist/mdc.checkbox"),l=e("@material/select/dist/mdc.select")},{"@material/checkbox/dist/mdc.checkbox":383,"@material/radio/dist/mdc.radio":386,"@material/ripple/dist/mdc.ripple":387,"@material/select/dist/mdc.select":388,"@material/slider/dist/mdc.slider":389,"@material/textfield/dist/mdc.textfield":392}],387:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(){return n=[function(e,t,n){var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.adapter_=e}
1i(r,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),i(r,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),t.a=r},function(e,t,n){var i=n(0),n=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(s,null,[{key:"attachTo",value:function(e){return new s(e,new i.a)}}]),n(s,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(e,t){this.root_.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){this.root_.removeEventListener(e,t)}},{key:"emit",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=void 0;"function"==typeof CustomEvent?i=new CustomEvent(e,{detail:t,bubbles:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(i)}}]);n=s;function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,n=this,i=s;if(!(n instanceof i))throw new TypeError("Cannot call a class as a function");this.root_=e;for(var a=arguments.length,r=Array(2<a?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];this.initialize.apply(this,r),this.foundation_=void 0===t?this.getDefaultFoundation():t,this.foundation_.init(),this.initialSyncWithDOM()}t.a=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"supportsCssVariables",function(){return a}),n.d(t,"applyPassive",function(){return o}),n.d(t,"getMatchesProperty",function(){return s}),n.d(t,"getNormalizedEventCoords",function(){return l});var r=void 0,i=void 0;function a(e){var t,n,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=r;return"boolean"!=typeof r||i?e.CSS&&"function"==typeof e.CSS.supports?(t=e.CSS.supports("--css-vars","yes"),n=e.CSS.supports("(--css-vars: yes)")&&e.CSS.supports("color","#00000000"),a=!(!t&&!n||function(e){var t=e.document,n=t.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",t.body.appendChild(n);e=null!==(t=e.getComputedStyle(n))&&"solid"===t.borderTopStyle;return n.remove(),e}(e)),i||(r=a),a):void 0:a}function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;if(void 0===i||1<arguments.length&&void 0!==arguments[1]&&arguments[1]){var t=!1;try{e.document.addEventListener("test",null,{get passive(){t=!0}})}catch(e){}i=t}return!!i&&{passive:!0}}function s(t){return["webkitMatchesSelector","msMatchesSelector","matches"].filter(function(e){return e in t}).pop()}function l(e,t,n){var i=t.x,t=t.y,i=i+n.left,t=t+n.top,n=void 0,a=void 0,a="touchstart"===e.type?(n=e.changedTouches[0].pageX-i,e.changedTouches[0].pageY-t):(n=e.pageX-i,e.pageY-t);return{x:n,y:a}}},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"browserSupportsCssVars",value:function(){}},{key:"isUnbounded",value:function(){}},{key:"isSurfaceActive",value:function(){}},{key:"isSurfaceDisabled",value:function(){}},{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"containsEventTarget",value:function(e){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"registerDocumentInteractionHandler",value:function(e,t){}},{key:"deregisterDocumentInteractionHandler",value:function(e,t){}},{key:"registerResizeHandler",value:function(e){}},{key:"deregisterResizeHandler",value:function(e){}},{key:"updateCssVariable",value:function(e,t){}},{key:"computeBoundingRect",value:function(){}},{key:"getWindowPageOffset",value:function(){}}])}
1,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCRipple",function(){return u}),n.d(t,"RippleCapableSurface",function(){return c});var i=n(1),r=(n(3),n(5)),o=n(2),s=(n.d(t,"MDCRippleFoundation",function(){return r.a}),n.d(t,"util",function(){return o}),function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e});function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function a(){l(this,a);for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(t)));return i.disabled=!1,i.unbounded_,i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(a,[{key:"setUnbounded_",value:function(){this.foundation_.setUnbounded(this.unbounded_)}},{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"getDefaultFoundation",value:function(){return new r.a(a.createAdapter(this))}},{key:"initialSyncWithDOM",value:function(){this.unbounded="mdcRippleIsUnbounded"in this.root_.dataset}},{key:"unbounded",get:function(){return this.unbounded_},set:function(e){this.unbounded_=Boolean(e),this.setUnbounded_()}}],[{key:"attachTo",value:function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isUnbounded,t=void 0===t?void 0:t,e=new a(e);return void 0!==t&&(e.unbounded=t),e}},{key:"createAdapter",value:function(n){var e=o.getMatchesProperty(HTMLElement.prototype);return{browserSupportsCssVars:function(){return o.supportsCssVariables(window)},isUnbounded:function(){return n.unbounded},isSurfaceActive:function(){return n.root_[e](":active")},isSurfaceDisabled:function(){return n.disabled},addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},containsEventTarget:function(e){return n.root_.contains(e)},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t,o.applyPassive())},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t,o.applyPassive())},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,o.applyPassive())},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,o.applyPassive())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},updateCssVariable:function(e,t){return n.root_.style.setProperty(e,t)},computeBoundingRect:function(){return n.root_.getBoundingClientRect()},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}}}}}]),a}(i.a),c=function e(){l(this,e)};c.prototype.root_,c.prototype.unbounded,c.prototype.disabled},function(e,t,n){var i=n(0),a=(n(3),n(6)),r=n(2),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e};function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=["touchstart","pointerdown","mousedown","keydown"],d=["touchend","pointerup","mouseup"],f=[],n=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function c(e){var t;if(this instanceof c)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,o(c.defaultAdapter,e)))).layoutFrame_=0,t.frame_={width:0,height:0},t.activationState_=t.defaultActivationState_(),t.initialSize_=0,t.maxRadius_=0,t.activateHandler_=function(e){return t.activate_(e)},t.deactivateHandler_=function(e){return t.deactivate_(e)},t.focusHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.addClass(c.cssClasse
1s.BG_FOCUSED)})},t.blurHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.removeClass(c.cssClasses.BG_FOCUSED)})},t.resizeHandler_=function(){return t.layout()},t.unboundedCoords_={left:0,top:0},t.fgScale_=0,t.activationTimer_=0,t.fgDeactivationRemovalTimer_=0,t.activationAnimationHasEnded_=!1,t.activationTimerCallback_=function(){t.activationAnimationHasEnded_=!0,t.runDeactivationUXLogicIfReady_()},t.previousActivationEvent_=null,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(c,null,[{key:"cssClasses",get:function(){return a.a}},{key:"strings",get:function(){return a.c}},{key:"numbers",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{browserSupportsCssVars:function(){},isUnbounded:function(){},isSurfaceActive:function(){},isSurfaceDisabled:function(){},addClass:function(){},removeClass:function(){},containsEventTarget:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerDocumentInteractionHandler:function(){},deregisterDocumentInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},updateCssVariable:function(){},computeBoundingRect:function(){},getWindowPageOffset:function(){}}}}]),s(c,[{key:"isSupported_",value:function(){return this.adapter_.browserSupportsCssVars()}},{key:"defaultActivationState_",value:function(){return{isActivated:!1,hasDeactivationUXRun:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1,activationEvent:null,isProgrammatic:!1}}},{key:"init",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.registerRootHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.addClass(t),i.adapter_.isUnbounded()&&(i.adapter_.addClass(n),i.layoutInternal_())}))}},{key:"destroy",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,e=c.cssClasses.FG_ACTIVATION,this.adapter_.removeClass(e)),this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.removeClass(t),i.adapter_.removeClass(n),i.removeCssVars_()}))}},{key:"registerRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.registerInteractionHandler(e,t.activateHandler_)}),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)}},{key:"registerDeactivationHandlers_",value:function(e){var t=this;"keydown"===e.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):d.forEach(function(e){t.adapter_.registerDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"deregisterRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.activateHandler_)}),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"deregisterDeactivationHandlers_",value:function(){var t=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),d.forEach(function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"removeCssVars_",value:function(){var t=this,n=c.strings;Object.keys(n).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(n[e],null)})}},{key:"activate_",value:function(e){var t,n,i=this;this.adapter_.isSurfaceDisabled()||(t=this.activationState_).isActivated||(n=this.previousActivationEvent_)&&e&&n.type!==e.type||(t.isActivated=!0,t.isProgrammatic=null===e,t.activationEvent=e,t.wasActivatedByPointer=!t.isProgrammatic&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type),e&&0<f.length&&f.some(function(e){return i.adapter_.containsEventTarget(e)})?this.resetActivationState_():(e&&(f.push(e.target),this.registerDeactivationHandlers_(e)),t.wasElementMadeActive=this.checkElementMadeActive_(e),t.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){f=[],t.wasElementMadeActive||" "!==e.key&&32!==e.keyCode||(t.wasElementMadeActive=i.checkElementMadeActive_(e),t.wasElementMadeActive&&i.animateActivation_()),t.wasElementMadeActive||(i.activationState_=i.defaultActivationState_())})))}},{key:"checkElementMadeActive_",value:function(e){return!e||"keydown"!==e.type||this.adapter_.isSurfaceActive()}},{key:"activate",value:function(){this.activate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateActivation_",value:function(){var e,t,n=this,i=c.strings,a=i.VAR_FG_TRANSLATE_START,i=i.VAR_FG_TRANSLATE_END,r=c.cssClasse
1s,o=r.FG_DEACTIVATION,r=r.FG_ACTIVATION,s=c.numbers.DEACTIVATION_TIMEOUT_MS,l=(this.layoutInternal_(),""),u="";this.adapter_.isUnbounded()||(e=(t=this.getFgTranslationCoordinates_()).startPoint,t=t.endPoint,l=e.x+"px, "+e.y+"px",u=t.x+"px, "+t.y+"px"),this.adapter_.updateCssVariable(a,l),this.adapter_.updateCssVariable(i,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(o),this.adapter_.computeBoundingRect(),this.adapter_.addClass(r),this.activationTimer_=setTimeout(function(){return n.activationTimerCallback_()},s)}},{key:"getFgTranslationCoordinates_",value:function(){var e=this.activationState_,t=e.activationEvent,n=void 0;return{startPoint:n={x:(n=e.wasActivatedByPointer?Object(r.getNormalizedEventCoords)(t,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:n.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}}},{key:"runDeactivationUXLogicIfReady_",value:function(){var e=this,t=c.cssClasses.FG_DEACTIVATION,n=this.activationState_,i=n.hasDeactivationUXRun,n=n.isActivated;!i&&n||!this.activationAnimationHasEnded_||(this.rmBoundedActivationClasses_(),this.adapter_.addClass(t),this.fgDeactivationRemovalTimer_=setTimeout(function(){e.adapter_.removeClass(t)},a.b.FG_DEACTIVATION_MS))}},{key:"rmBoundedActivationClasses_",value:function(){var e=c.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()}},{key:"resetActivationState_",value:function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return e.previousActivationEvent_=null},c.numbers.TAP_DELAY_MS)}},{key:"deactivate_",value:function(e){var t,n=this,i=this.activationState_;i.isActivated&&(t=o({},i),i.isProgrammatic?(requestAnimationFrame(function(){return n.animateDeactivation_(null,t)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){n.activationState_.hasDeactivationUXRun=!0,n.animateDeactivation_(e,t),n.resetActivationState_()})))}},{key:"deactivate",value:function(){this.deactivate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateDeactivation_",value:function(e,t){var n=t.wasActivatedByPointer,t=t.wasElementMadeActive;(n||t)&&this.runDeactivationUXLogicIfReady_()}},{key:"layout",value:function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})}},{key:"layoutInternal_",value:function(){var e=this,t=(this.frame_=this.adapter_.computeBoundingRect(),Math.max(this.frame_.height,this.frame_.width));this.maxRadius_=this.adapter_.isUnbounded()?t:Math.sqrt(Math.pow(e.frame_.width,2)+Math.pow(e.frame_.height,2))+c.numbers.PADDING,this.initialSize_=t*c.numbers.INITIAL_ORIGIN_SCALE,this.fgScale_=this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()}},{key:"updateLayoutCssVars_",value:function(){var e=c.strings,t=e.VAR_FG_SIZE,n=e.VAR_LEFT,i=e.VAR_TOP,e=e.VAR_FG_SCALE;this.adapter_.updateCssVariable(t,this.initialSize_+"px"),this.adapter_.updateCssVariable(e,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(n,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(i,this.unboundedCoords_.top+"px"))}},{key:"setUnbounded",value:function(e){var t=c.cssClasses.UNBOUNDED;e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}}]),c}(i.a);t.a=n},function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i={ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded",BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation"},a={VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end"},r={PADDING:10,INITIAL_ORIGIN_SCALE:.6,DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,TAP_DELAY_MS:300}}],a={},i.m=n,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})}
1,i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=4);function i(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,a},"object"==typeof n&&"object"==typeof t?t.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof n?n.ripple=a():(i.mdc=i.mdc||{},i.mdc.ripple=a())},{}],386:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(){return n={0:function(e,t,n){var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.adapter_=e}i(r,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),i(r,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),t.a=r},1:function(e,t,n){var i=n(0),n=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(s,null,[{key:"attachTo",value:function(e){return new s(e,new i.a)}}]),n(s,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(e,t){this.root_.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){this.root_.removeEventListener(e,t)}},{key:"emit",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=void 0;"function"==typeof CustomEvent?i=new CustomEvent(e,{detail:t,bubbles:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(i)}}]);n=s;function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,n=this,i=s;if(!(n instanceof i))throw new TypeError("Cannot call a class as a function");this.root_=e;for(var a=arguments.length,r=Array(2<a?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];this.initialize.apply(this,r),this.foundation_=void 0===t?this.getDefaultFoundation():t,this.foundation_.init(),this.initialSyncWithDOM()}t.a=n},2:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"supportsCssVariables",function(){return a}),n.d(t,"applyPassive",function(){return o}),n.d(t,"getMatchesProperty",function(){return s}),n.d(t,"getNormalizedEventCoords",function(){return l});var r=void 0,i=void 0;function a(e){var t,n,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=r;return"boolean"!=typeof r||i?e.CSS&&"function"==typeof e.CSS.supports?(t=e.CSS.supports("--css-vars","yes"),n=e.CSS.supports("(--css-vars: yes)")&&e.CSS.supports("color","#00000000"),a=!(!t&&!n||function(e){var t=e.document,n=t.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",t.body.appendChild(n);e=null!==(t=e.getComputedStyle(n))&&"solid"===t.borderTopStyle;return n.remove(),e}(e)),i||(r=a),a):void 0:a}function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;if(void 0===i||1<arguments.length&&void 0!==arguments[1]&&arguments[1]){var t=!1;try{e.document.addEventListener("test",null,{get passive(){t=!0}})}catch(e){}i=t}return!!i&&{passive:!0}}function s(t){return["webkitMatchesSelector","msMatchesSelector","matches"].filter(function(e){return e in t}).pop()}function l(e,t,n){var i=t.x,t=t.y,i=i+n.left,t=t+n.top,n=void 0,a=void 0,a="touchstart"===e.type?(n=e.changedTouches[0].pageX-i,e.changedTouches[0].pageY-t):(n=e.pageX-i,e.pageY-t);return{x:n,y:a}}},3:function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"browserSupportsCssVars",value:function(){}},{key:"isUnbounded",value:function(){}},{key:"isSurfaceActive",value:function(){}},{key:"isSurfaceDisabled",value:function(){}},{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"containsEventTarget",value:function(e){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"registerDocumentInteractionHandler",value:function(e,t){}},{key:"deregisterDocumentInteractionHandler",value:function(e,t){}},{key:"registerResizeHandler",value:function(e){}},{key:"deregisterResizeHandler",value:function(e){}},{key:"updateCssVariable",value:function(e,t){}},{key:"computeBoundingRect",value:function(){}},{key:"getWindowPageOffset",value:function(){}}])}
1,4:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCRipple",function(){return u}),n.d(t,"RippleCapableSurface",function(){return c});var i=n(1),r=(n(3),n(5)),o=n(2),s=(n.d(t,"MDCRippleFoundation",function(){return r.a}),n.d(t,"util",function(){return o}),function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e});function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function a(){l(this,a);for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(t)));return i.disabled=!1,i.unbounded_,i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(a,[{key:"setUnbounded_",value:function(){this.foundation_.setUnbounded(this.unbounded_)}},{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"getDefaultFoundation",value:function(){return new r.a(a.createAdapter(this))}},{key:"initialSyncWithDOM",value:function(){this.unbounded="mdcRippleIsUnbounded"in this.root_.dataset}},{key:"unbounded",get:function(){return this.unbounded_},set:function(e){this.unbounded_=Boolean(e),this.setUnbounded_()}}],[{key:"attachTo",value:function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isUnbounded,t=void 0===t?void 0:t,e=new a(e);return void 0!==t&&(e.unbounded=t),e}},{key:"createAdapter",value:function(n){var e=o.getMatchesProperty(HTMLElement.prototype);return{browserSupportsCssVars:function(){return o.supportsCssVariables(window)},isUnbounded:function(){return n.unbounded},isSurfaceActive:function(){return n.root_[e](":active")},isSurfaceDisabled:function(){return n.disabled},addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},containsEventTarget:function(e){return n.root_.contains(e)},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t,o.applyPassive())},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t,o.applyPassive())},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,o.applyPassive())},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,o.applyPassive())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},updateCssVariable:function(e,t){return n.root_.style.setProperty(e,t)},computeBoundingRect:function(){return n.root_.getBoundingClientRect()},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}}}}}]),a}(i.a),c=function e(){l(this,e)};c.prototype.root_,c.prototype.unbounded,c.prototype.disabled},5:function(e,t,n){var i=n(0),a=(n(3),n(6)),r=n(2),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e};function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=["touchstart","pointerdown","mousedown","keydown"],d=["touchend","pointerup","mouseup"],f=[],n=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function c(e){var t;if(this instanceof c)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,o(c.defaultAdapter,e)))).layoutFrame_=0,t.frame_={width:0,height:0},t.activationState_=t.defaultActivationState_(),t.initialSize_=0,t.maxRadius_=0,t.activateHandler_=function(e){return t.activate_(e)},t.deactivateHandler_=function(e){return t.deactivate_(e)},t.focusHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.addClass(c.cssClasse
1s.BG_FOCUSED)})},t.blurHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.removeClass(c.cssClasses.BG_FOCUSED)})},t.resizeHandler_=function(){return t.layout()},t.unboundedCoords_={left:0,top:0},t.fgScale_=0,t.activationTimer_=0,t.fgDeactivationRemovalTimer_=0,t.activationAnimationHasEnded_=!1,t.activationTimerCallback_=function(){t.activationAnimationHasEnded_=!0,t.runDeactivationUXLogicIfReady_()},t.previousActivationEvent_=null,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(c,null,[{key:"cssClasses",get:function(){return a.a}},{key:"strings",get:function(){return a.c}},{key:"numbers",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{browserSupportsCssVars:function(){},isUnbounded:function(){},isSurfaceActive:function(){},isSurfaceDisabled:function(){},addClass:function(){},removeClass:function(){},containsEventTarget:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerDocumentInteractionHandler:function(){},deregisterDocumentInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},updateCssVariable:function(){},computeBoundingRect:function(){},getWindowPageOffset:function(){}}}}]),s(c,[{key:"isSupported_",value:function(){return this.adapter_.browserSupportsCssVars()}},{key:"defaultActivationState_",value:function(){return{isActivated:!1,hasDeactivationUXRun:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1,activationEvent:null,isProgrammatic:!1}}},{key:"init",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.registerRootHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.addClass(t),i.adapter_.isUnbounded()&&(i.adapter_.addClass(n),i.layoutInternal_())}))}},{key:"destroy",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,e=c.cssClasses.FG_ACTIVATION,this.adapter_.removeClass(e)),this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.removeClass(t),i.adapter_.removeClass(n),i.removeCssVars_()}))}},{key:"registerRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.registerInteractionHandler(e,t.activateHandler_)}),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)}},{key:"registerDeactivationHandlers_",value:function(e){var t=this;"keydown"===e.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):d.forEach(function(e){t.adapter_.registerDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"deregisterRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.activateHandler_)}),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"deregisterDeactivationHandlers_",value:function(){var t=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),d.forEach(function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"removeCssVars_",value:function(){var t=this,n=c.strings;Object.keys(n).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(n[e],null)})}},{key:"activate_",value:function(e){var t,n,i=this;this.adapter_.isSurfaceDisabled()||(t=this.activationState_).isActivated||(n=this.previousActivationEvent_)&&e&&n.type!==e.type||(t.isActivated=!0,t.isProgrammatic=null===e,t.activationEvent=e,t.wasActivatedByPointer=!t.isProgrammatic&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type),e&&0<f.length&&f.some(function(e){return i.adapter_.containsEventTarget(e)})?this.resetActivationState_():(e&&(f.push(e.target),this.registerDeactivationHandlers_(e)),t.wasElementMadeActive=this.checkElementMadeActive_(e),t.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){f=[],t.wasElementMadeActive||" "!==e.key&&32!==e.keyCode||(t.wasElementMadeActive=i.checkElementMadeActive_(e),t.wasElementMadeActive&&i.animateActivation_()),t.wasElementMadeActive||(i.activationState_=i.defaultActivationState_())})))}},{key:"checkElementMadeActive_",value:function(e){return!e||"keydown"!==e.type||this.adapter_.isSurfaceActive()}},{key:"activate",value:function(){this.activate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateActivation_",value:function(){var e,t,n=this,i=c.strings,a=i.VAR_FG_TRANSLATE_START,i=i.VAR_FG_TRANSLATE_END,r=c.cssClasse
1s,o=r.FG_DEACTIVATION,r=r.FG_ACTIVATION,s=c.numbers.DEACTIVATION_TIMEOUT_MS,l=(this.layoutInternal_(),""),u="";this.adapter_.isUnbounded()||(e=(t=this.getFgTranslationCoordinates_()).startPoint,t=t.endPoint,l=e.x+"px, "+e.y+"px",u=t.x+"px, "+t.y+"px"),this.adapter_.updateCssVariable(a,l),this.adapter_.updateCssVariable(i,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(o),this.adapter_.computeBoundingRect(),this.adapter_.addClass(r),this.activationTimer_=setTimeout(function(){return n.activationTimerCallback_()},s)}},{key:"getFgTranslationCoordinates_",value:function(){var e=this.activationState_,t=e.activationEvent,n=void 0;return{startPoint:n={x:(n=e.wasActivatedByPointer?Object(r.getNormalizedEventCoords)(t,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:n.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}}},{key:"runDeactivationUXLogicIfReady_",value:function(){var e=this,t=c.cssClasses.FG_DEACTIVATION,n=this.activationState_,i=n.hasDeactivationUXRun,n=n.isActivated;!i&&n||!this.activationAnimationHasEnded_||(this.rmBoundedActivationClasses_(),this.adapter_.addClass(t),this.fgDeactivationRemovalTimer_=setTimeout(function(){e.adapter_.removeClass(t)},a.b.FG_DEACTIVATION_MS))}},{key:"rmBoundedActivationClasses_",value:function(){var e=c.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()}},{key:"resetActivationState_",value:function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return e.previousActivationEvent_=null},c.numbers.TAP_DELAY_MS)}},{key:"deactivate_",value:function(e){var t,n=this,i=this.activationState_;i.isActivated&&(t=o({},i),i.isProgrammatic?(requestAnimationFrame(function(){return n.animateDeactivation_(null,t)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){n.activationState_.hasDeactivationUXRun=!0,n.animateDeactivation_(e,t),n.resetActivationState_()})))}},{key:"deactivate",value:function(){this.deactivate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateDeactivation_",value:function(e,t){var n=t.wasActivatedByPointer,t=t.wasElementMadeActive;(n||t)&&this.runDeactivationUXLogicIfReady_()}},{key:"layout",value:function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})}},{key:"layoutInternal_",value:function(){var e=this,t=(this.frame_=this.adapter_.computeBoundingRect(),Math.max(this.frame_.height,this.frame_.width));this.maxRadius_=this.adapter_.isUnbounded()?t:Math.sqrt(Math.pow(e.frame_.width,2)+Math.pow(e.frame_.height,2))+c.numbers.PADDING,this.initialSize_=t*c.numbers.INITIAL_ORIGIN_SCALE,this.fgScale_=this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()}},{key:"updateLayoutCssVars_",value:function(){var e=c.strings,t=e.VAR_FG_SIZE,n=e.VAR_LEFT,i=e.VAR_TOP,e=e.VAR_FG_SCALE;this.adapter_.updateCssVariable(t,this.initialSize_+"px"),this.adapter_.updateCssVariable(e,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(n,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(i,this.unboundedCoords_.top+"px"))}},{key:"setUnbounded",value:function(e){var t=c.cssClasses.UNBOUNDED;e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}}]),c}(i.a);t.a=n},6:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i={ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded",BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation"},a={VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end"},r={PADDING:10,INITIAL_ORIGIN_SCALE:.6,DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,TAP_DELAY_MS:300}}
1,87:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCRadio",function(){return c});function a(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?a(i,t,n):void 0}var i=n(1),o=(n(9),n(88)),s=n(4),l=(n.d(t,"MDCRadioFoundation",function(){return o.a}),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}),u=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var c=function(e){var t=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(){var e=this,t=r;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(i)));return t.ripple_=t.initRipple_(),t}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),u(r,[{key:"checked",get:function(){return this.foundation_.isChecked()},set:function(e){this.foundation_.setChecked(e)}},{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(e){this.foundation_.setDisabled(e)}},{key:"value",get:function(){return this.foundation_.getValue()},set:function(e){this.foundation_.setValue(e)}},{key:"ripple",get:function(){return this.ripple_}}],[{key:"attachTo",value:function(e){return new r(e)}}
1]),u(r,[{key:"initRipple_",value:function(){var n=this,e=l(s.MDCRipple.createAdapter(this),{isUnbounded:function(){return!0},isSurfaceActive:function(){return!1},registerInteractionHandler:function(e,t){return n.nativeControl_.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){return n.nativeControl_.removeEventListener(e,t)}}),e=new s.MDCRippleFoundation(e);return new s.MDCRipple(this.root_,e)}},{key:"destroy",value:function(){this.ripple_.destroy(),a(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"destroy",this).call(this)}},{key:"getDefaultFoundation",value:function(){var t=this;return new o.a({addClass:function(e){return t.root_.classList.add(e)},removeClass:function(e){return t.root_.classList.remove(e)},getNativeControl:function(){return t.root_.querySelector(o.a.strings.NATIVE_CONTROL_SELECTOR)}})}},{key:"nativeControl_",get:function(){var e=o.a.strings.NATIVE_CONTROL_SELECTOR;return this.root_.querySelector(e)}}]),r}(i.a)},88:function(e,t,n){var i=n(0),a=(n(9),n(89),n(90)),r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(n,[{key:"isChecked",value:function(){return this.getNativeControl_().checked}},{key:"setChecked",value:function(e){this.getNativeControl_().checked=e}},{key:"isDisabled",value:function(){return this.getNativeControl_().disabled}},{key:"setDisabled",value:function(e){var t=n.cssClasses.DISABLED;(this.getNativeControl_().disabled=e)?this.adapter_.addClass(t):this.adapter_.removeClass(t)}},{key:"getValue",value:function(){return this.getNativeControl_().value}},{key:"setValue",value:function(e){this.getNativeControl_().value=e}},{key:"getNativeControl_",value:function(){return this.adapter_.getNativeControl()||{checked:!1,disabled:!1,value:null}}}
1],[{key:"cssClasses",get:function(){return a.a}},{key:"strings",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},getNativeControl:function(){}}}}]),n}(i.a);t.a=n},89:function(e,t,n){n(9);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"getNativeControl",value:function(){}}])},9:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCSelectionControlState",function(){return a}),n.d(t,"MDCSelectionControl",function(){return r});n(4);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=void 0,r=(function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}(o,[{key:"ripple",get:function(){}}]),o);function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function")}},90:function(e,t,n){n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var i={NATIVE_CONTROL_SELECTOR:".mdc-radio__native-control"},a={ROOT:"mdc-radio",DISABLED:"mdc-radio--disabled"}}},a={},i.m=n,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=87);function i(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,a},"object"==typeof n&&"object"==typeof t?t.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof n?n.radio=a():(i.mdc=i.mdc||{},i.mdc.radio=a())},{}],246:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function")}i(o,[{key:"view",value:function(e){var t=e.attrs.type,e=e.attrs.size||"rg";if(null!=t)return(0,r.default)("svg",{class:"icon icon--stroke icon--"+e,"aria-hidden":"true"},(0,r.default)("use",{"xlink:href":t}))}}]),n.default=o},{mithril:410}],101:[function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:25,t=this,n=a;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.currentOffset=0,this.pageSize=e,this.currentEnd=this.pageSize,this.instruments=[]}Object.defineProperty(n,"__esModule",{value:!0}),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"init",value:function(e){this.instruments=e,this.resetPage()}},{key:"resetPage",value:function(){this.currentOffset=0,this.currentEnd=this.pageSize}},{key:"hasPaging",value:function(){return this.instruments.length>this.pageSize}},{key:"prev",value:function(){this.currentOffset-=this.pageSize,this.currentEnd=Math.min(this.currentOffset+this.pageSize,this.instruments.length)}},{key:"hasPrev",value:function(){return 0<this.currentOffset}},{key:"next",value:function(){this.currentOffset+=this.pageSize,this.currentEnd=Math.min(this.currentOffset+this.pageSize,this.instruments.length)}},{key:"hasNext",value:function(){return this.currentOffset+this.pageSize<this.instruments.length}},{key:"pageLabel",value:function(){return this.currentOffset+1+"-"+Math.min(this.currentOffset+this.pageSize,this.instruments.length)+" af "+this.instruments.length}}]),n.default=a},{}],400:[function(n,i,a){"use strict";var me=window;function o(e){if(!ye(e))return ci;E(e.objectMaxDepth)&&(ci.objectMaxDepth=k(e.objectMaxDepth)?e.objectMaxDepth:NaN),E(e.urlErrorParam
1sEnabled)&&Re(e.urlErrorParamsEnabled)&&(ci.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function k(e){return v(e)&&0<e}function O(a,r){return r=r||Error,function(){var e=arguments[0];for(t="["+(a?a+":":"")+e+"] http://errors.angularjs.org/1.8.3/"+(a?a+"/":"")+e,e=1;e<arguments.length;e++){var t=t+(1==e?"?":"&")+"p"+(e-1)+"=",n=encodeURIComponent,i=arguments[e];t+=n(i="function"==typeof i?i.toString().replace(/ \{[\s\S]*$/,""):void 0===i?"undefined":"string"!=typeof i?JSON.stringify(i):i)}return new r(t)}}function I(e){var t;return null!=e&&!D(e)&&(ke(e)||be(e)||Ee&&e instanceof Ee||v(t="length"in Object(e)&&e.length)&&(0<=t&&t-1 in e||"function"==typeof e.item))}function ge(e,t,n){if(e)if(we(e))for(a in e)"prototype"!==a&&"length"!==a&&"name"!==a&&e.hasOwnProperty(a)&&t.call(n,e[a],a,e);else if(ke(e)||I(e))for(var i="object"!=typeof e,a=0,r=e.length;a<r;a++)(i||a in e)&&t.call(n,e[a],a,e);else if(e.forEach&&e.forEach!==ge)e.forEach(t,n,e);else if(m(e))for(a in e)t.call(n,e[a],a,e);else if("function"==typeof e.hasOwnProperty)for(a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e);else for(a in e)fi.call(e,a)&&t.call(n,e[a],a,e);return e}function u(e,t,n){for(var i=Object.keys(e).sort(),a=0;a<i.length;a++)t.call(n,e[i[a]],i[a])}function S(n){return function(e,t){n(t,e)}}function h(e,t,n){for(var i=e.$$hashKey,a=0,r=t.length;a<r;++a){var o=t[a];if(ye(o)||we(o))for(var s=Object.keys(o),l=0,u=s.length;l<u;l++){var c=s[l],d=o[c];n&&ye(d)?w(d)?e[c]=new Date(d.valueOf()):x(d)?e[c]=new RegExp(d):d.nodeName?e[c]=d.cloneNode(!0):P(d)?e[c]=d.clone():"__proto__"!==c&&(ye(e[c])||(e[c]=ke(d)?[]:{}),h(e[c],[d],!0)):e[c]=d}}return i?e.$$hashKey=i:delete e.$$hashKey,e}function ve(e){return h(e,pi.call(arguments,1),!1)}function c(e){return h(e,pi.call(arguments,1),!0)}function g(e){return parseInt(e,10)}function Le(e,t){return ve(Object.create(e),t)}function C(){}function Ie(e){return e}function T(e){return function(){return e}}function d(e){return we(e.toString)&&e.toString!==_}function _e(e){return void 0===e}function E(e){return void 0!==e}function ye(e){return null!==e&&"object"==typeof e}function m(e){return null!==e&&"object"==typeof e&&!vi(e)}function be(e){return"string"==typeof e}function v(e){return"number"==typeof e}function w(e){return"[object Date]"===_.call(e)}function ke(e){return Array.isArray(e)||e instanceof Array}function De(e){switch(_.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return 1;default:return e instanceof Error}}function we(e){return"function"==typeof e}function x(e){return"[object RegExp]"===_.call(e)}function D(e){return e&&e.window===e}function Pe(e){return e&&e.$evalAsync&&e.$watch}function Re(e){return"boolean"==typeof e}function P(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function Se(e){return Ae(e.nodeName||e[0]&&e[0].nodeName)}function $e(e,t){t=e.indexOf(t);return 0<=t&&e.splice(t,1),t}function R(e,n,t){function a(e,t,n){if(--n<0)return"...";var i=t.$$hashKey;if(ke(e))for(var a=0,r=e.length;a<r;a++)t.push(o(e[a],n));else if(m(e))for(a in e)t[a]=o(e[a],n);else if(e&&"function"==typeof e.hasOwnProperty)for(a in e)e.hasOwnProperty(a)&&(t[a]=o(e[a],n));else for(a in e)fi.call(e,a)&&(t[a]=o(e[a],n));return i?t.$$hashKey=i:delete t.$$hashKey,t}function o(e,t){if(!ye(e))return e;if(-1!==(n=r.indexOf(e)))return s[n];if(D(e)||Pe(e))throw _i("cpws");var n=!1,i=function(e){switch(_.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(o(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":var t;return e.slice?e.slice(0):(t=new ArrayBuffer(e.byteLength),new Uint8Array(t).set(new Uint8Array(e)),t);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":return(t=new RegExp(e.source,e.toString().match(/[^/]*$/)[0])).lastIndex=e.lastIndex,t;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(we(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===i&&(i=ke(e)?[]:Object.create(vi(e)),n=!0),r.push(e),s.push(i),n?a(e,i,t):i}var i,r=[],s=[];
1if(t=k(t)?t:NaN,n){if((i=n)&&v(i.length)&&ki.test(_.call(i))||"[object ArrayBuffer]"===_.call(n))throw _i("cpta");if(e===n)throw _i("cpi");return ke(n)?n.length=0:ge(n,function(e,t){"$$hashKey"!==t&&delete n[t]}),r.push(e),s.push(n),a(e,n,t)}return o(e,t)}function He(e,t){return e===t||e!=e&&t!=t}function xe(e,t){if(e===t)return!0;if(null!==e&&null!==t){if(e!=e&&t!=t)return!0;var n,i=typeof e;if(i===typeof t&&"object"===i){if(!ke(e)){if(w(e))return!!w(t)&&He(e.getTime(),t.getTime());if(x(e))return!!x(t)&&e.toString()===t.toString();if(Pe(e)||Pe(t)||D(e)||D(t)||ke(t)||w(t)||x(t))return!1;for(n in i=Ce(),e)if("$"!==n.charAt(0)&&!we(e[n])){if(!xe(e[n],t[n]))return!1;i[n]=!0}for(n in t)if(!(n in i)&&"$"!==n.charAt(0)&&E(t[n])&&!we(t[n]))return!1;return!0}if(!ke(t))return!1;if((i=e.length)===t.length){for(n=0;n<i;n++)if(!xe(e[n],t[n]))return!1;return!0}}}return!1}function $(e,t,n){return e.concat(pi.call(t,n))}function Fe(e,t){var n=2<arguments.length?pi.call(arguments,2):[];return!we(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,$(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function H(e,t){var n=t;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?n=void 0:D(t)?n="$WINDOW":t&&me.document===t?n="$DOCUMENT":Pe(t)&&(n="$SCOPE"),n}function F(e,t){if(!_e(e))return v(t)||(t=t?2:null),JSON.stringify(e,H,t)}function N(e){return be(e)?JSON.parse(e):e}function j(e,t){e=e.replace(xi,"");e=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return L(e)?t:e}function V(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function B(e,t,n){n=n?-1:1;var i=e.getTimezoneOffset();return V(e,n*((t=j(t,i))-i))}function Ne(e){e=Ee(e).clone().empty();var t=Ee("<div></div>").append(e).html();try{return e[0].nodeType===Oi?Ae(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+Ae(t)})}catch(e){return Ae(t)}}function U(e){try{return decodeURIComponent(e)}catch(e){}}function W(e){var a={};return ge((e||"").split("&"),function(e){var t,n,i;e&&(n=e=e.replace(/\+/g,"%20"),-1!==(t=e.indexOf("="))&&(n=e.substring(0,t),i=e.substring(t+1)),E(n=U(n)))&&(i=!E(i)||U(i),fi.call(a,n)?ke(a[n])?a[n].push(i):a[n]=[a[n],i]:a[n]=i)}),a}function Y(e){return r(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function r(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function z(n,e){var i,a,t={};ge(Ci,function(e){e+="app",!i&&n.hasAttribute&&n.hasAttribute(e)&&(a=(i=n).getAttribute(e))}),ge(Ci,function(e){var t;e+="app",!i&&(t=n.querySelector("["+e.replace(":","\\:")+"]"))&&(a=(i=t).getAttribute(e))}),i&&(Ti?(t.strictDi=null!==function(e,t){for(var n,i=Ci.length,a=0;a<i;++a)if(n=Ci[a]+t,be(n=e.getAttribute(n)))return n;return null}(i,"strict-di"),e(i,a?[a]:[],t)):me.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function G(t,n,i){i=ve({strictDi:!1},i=ye(i)?i:{});function a(){var e;if((t=Ee(t)).injector())throw e=t[0]===me.document?"document":Ne(t),_i("bt
1strpd",e.replace(/</,"<").replace(/>/,">"));return(n=n||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng"),(e=it(n,i.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,i){e.$apply(function(){t.data("$injector",i),n(t)(e)})}]),e}var e=/^NG_ENABLE_DEBUG_INFO!/,r=/^NG_DEFER_BOOTSTRAP!/;if(me&&e.test(me.name)&&(i.debugInfoEnabled=!0,me.name=me.name.replace(e,"")),me&&!r.test(me.name))return a();me.name=me.name.replace(r,""),b.resumeBootstrap=function(e){return ge(e,function(e){n.push(e)}),a()},we(b.resumeDeferredBootstrap)&&b.resumeDeferredBootstrap()}function q(){me.name="NG_ENABLE_DEBUG_INFO!"+me.name,me.location.reload()}function X(e){if(e=b.element(e).injector())return e.get("$$testability");throw _i("test")}function je(e,n){return n=n||"_",e.replace(Ei,function(e,t){return(t?n:"")+e.toLowerCase()})}function K(){l.legacyXHTMLReplacement=!0}function Ve(e,t,n){if(!e)throw _i("areq",t||"?",n||"required")}function Z(e,t,n){Ve(we(e=n&&ke(e)?e[e.length-1]:e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e))}function J(e,t){if("hasOwnProperty"===e)throw _i("badname",t)}function Q(e){for(var t,n=e[0],i=e[e.length-1],a=1;n!==i&&(n=n.nextSibling);a++)!t&&e[a]===n||(t=t||Ee(pi.call(e,0,a))).push(n);return t||e}function Ce(){return Object.create(null)}function ee(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!d(e)||ke(e)||w(e)?F(e):e.toString()}return e}function A(e,t){if(ke(e)){t=t||[];for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}else if(ye(e))for(n in t=t||{},e)"$"===n.charAt(0)&&"$"===n.charAt(1)||(t[n]=e[n]);return t||e}function te(e,t){return t.toUpperCase()}function ne(e){return e.replace(Di,te)}function ie(e){return 1===(e=e.nodeType)||!e||9===e}function ae(e,t){var n,i,a,r,o=t.createDocumentFragment(),s=[];if(Fi.test(e)){if(n=o.appendChild(t.createElement("div")),i=(Ni.exec(e)||["",""])[1].toLowerCase(),a=l.legacyXHTMLReplacement?e.replace(ji,"<$1></$2>"):e,bi<10)for(i=Bi[i]||Bi._default,n.innerHTML=i[1]+a+i[2],r=i[0];r--;)n=n.firstChild;else{for(r=(i=Vi[i]||[]).length;-1<--r;)n.appendChild(me.document.createElement(i[r])),n=n.firstChild;n.innerHTML=a}s=$(s,n.childNodes),(n=o.firstChild).textContent=""}else s.push(t.createTextNode(e));return o.textContent="",o.innerHTML="",ge(s,function(e){o.appendChild(e)}),o}function l(e){if(e instanceof l)return e;var t,n;if(be(e)&&(e=Oe(e),n=!0),!(this instanceof l)){if(n&&"<"!==e.charAt(0))throw $i("nosel");return new l(e)}n?(n=me.document,Ue(this,e=(t=Hi.exec(e))?[n.createElement(t[1])]:(t=ae(e,n))?t.childNodes:[])):we(e)?qe(e):Ue(this,e)}function Be(e){return e.cloneNode(!0)}function re(e,t){!t&&ie(e)&&Ee.cleanData([e]),e.querySelectorAll&&Ee.cleanData(e.querySelectorAll("*"))}function oe(e){for(var t in e)return;return 1}function se(e){var t=e.ng339,n=t&&Li[t],i=n&&n.events;(n=n&&n.data)&&!oe(n)||i&&!oe(i)||(delete Li[t],e.ng339=void 0)}function le(n,e,i,t){if(E(t))throw $i("offargs");var a=(t=ce(n))&&t.events,r=t&&t.handle;if(r){if(e){var o=function(e){var t=a[e];E(i)&&$e(t||[],i),E(i)&&t&&0<t.length||(n.removeEventListener(e,r),delete a[e])};ge(e.split(" "),function(e){o(e),Ri[e]&&o(Ri[e])})}else for(e in a)"$destroy"!==e&&n.removeEventListener(e,r),delete a[e];se(n)}}function ue(e,t){var n=e.ng339;(n=n&&Li[n])&&(t?delete n.data[t]:n.data={},se(e))}function ce(e,t){var n=(n=e.ng339)&&Li[n];return t&&!n&&(e.ng339=n=++Ii,n=Li[n]={events:{},data:{},handle:void 0}),n}function de(e,t,n){if(ie(e)){var i,a=E(n),r=!a&&t&&!ye(t),o=!t;if(e=(e=ce(e,!r))&&e.data,a)e[ne(t)]=n;else{if(o)return e;if(r)return e&&e[ne(t)];for(i in t)e[ne(i)]=t[i]}}}function fe(e,t){return!!e.getAttribute&&-1<(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")}function he(e,t){var n,i;t&&e.setAttribute&&(n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),i=n,ge(t.split(" "),function(e){e=Oe(e),i=i.replace(" "+e+" "," ")}),i!==n)&&e.setAttribute("class",Oe(i))}function pe(e,t){var n,i;t&&e.setAttribute&&(n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),i=n,ge(t.split(" "),function(e){e=Oe(e),-1===i.indexOf(" "+e+" ")&&(i+=e+" ")}),i!==n)&&e.setAttribute("class",Oe(i))}function Ue(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var i=0;i<n;i++)e[e.length++]=t[i]}else e[e.length++]=t}}function We(e,t){return Ye(e,"$"+(t||"ngController")+"Controller")}function Ye(e,t,n){for(9===e.nodeType&&(e=e.documentElement),t=ke(t)?t:[t];e;){for(var i=0,a=t.length;i<a;i++)if(E(n=Ee.data(e,t[i])))return n;e=e.parentNode||11===e.nodeType&&e.host}}function ze(e){for(re(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ge(e,t){t||re(e);t=e.parentNode;t&&t.removeChild(e)}function qe(e){function t(){me.document.removeEventListener("DOMContentLoaded",t),me.removeEventListener("load",t),e()}"complete"===me.document.readyState?me.setTimeout(e):(me.document.addEventListener("DOMContentLoaded",t),me.addEventListener("load",t))}function Xe(e,t){t=Gi[t.toLowerCase()];return t&&qi[Se(e)]&&t}function Ke(s,l){function e(e,t){e.isDefaultPrevented=function(){return e.defaultPrevented};var n=l[t||e.type],i=n?n.length:0;if(i){_e(e.immediatePropagationStopped)&&(a=e.stopImmediatePropagation,e.stopImmediatePropagation=function(){e.immediatePropagationStopped=!0,e.stopPropagation&&e.stopPropagation(),a&&a.call(e)}),e.isImmediatePropagationStopped=function(){return!0===e.immediatePropagationStopped};var a,r=n.specialHandlerWrapper||Ze;1<i&&(n=A(n));for(var o=0;o<i;o++)e.isImmediatePropagationStopped()||r(s,e,n[o])}}return e.elem=s,e}function Ze(e,t,n){n.call(e,t)}function Je(e,t,n){var i=t.relatedTarget;i&&(i===e||Yi.call(e,i))||n.call(e,t)}function Qe(){this.$get=function(){return ve(l,{hasClass:function(e,t){return fe(e=e.attr?e[0]:e,t)},addClass:function(e,t){return pe(e=e.attr?e[0]:e,t)},removeClass:function(e,t){return he(e=e.attr?e[0]:e,t)}})}}function et(e,t){var n=e&&e.$$hashKey;return n?"function"==typeof n?e.$$hashKey():n:"function"===(n=typeof e)||"object"===n&&null!==e?e.$$hashKey=n+":"+(t||function(){return++yi})():n+":"+e}function tt(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function nt(e){return(e=Function.prototype.toString.call(e).replace(wa,"")).match(_a)||e.match(ya)}function it(e,l){function t(n){return function(e,t){if(!ye(e))return n(e,t);ge(e,S(n))}}function r(e,t){if(J(e,"service"),(t=we(t)||ke(t)?d.instantiate(t):t).$get)return c[e+"Provider"]=t;throw Sa("pget",e)}function n(e,t,n){return r(e,{$get:!1!==n?(i=e,a=t,function(){var e=p.invoke(a,this);if(_e(e))throw Sa("undef",i);return e}):t});var i,a}function a(e){Ve(_e(e)||ke(e),"modulesToLoad","not an array");var n,i=[];return ge(e,function(t){function e(e){for(var t=0,n=e.length;t<n;t++){var i=e[t],a=d.get(i[0]);a[i[1]].apply(a,i[2])}}if(!s.get(t)){s.set(t,!0);
1try{be(t)?(n=si(t),p.modules[t]=n,i=i.concat(a(n.requires)).concat(n._runBlocks),e(n._invokeQueue),e(n._configBlocks)):we(t)||ke(t)?i.push(d.invoke(t)):Z(t,"module")}catch(e){throw ke(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Sa("modulerr",t,e.stack||e.message||e)}}}),i}function i(n,i){function s(t,e){if(n.hasOwnProperty(t)){if(n[t]===o)throw Sa("cdep",t+" <- "+u.join(" <- "));return n[t]}try{return u.unshift(t),n[t]=o,n[t]=i(t,e),n[t]}catch(e){throw n[t]===o&&delete n[t],e}finally{u.shift()}}function r(e,t,n){for(var i=[],a=0,r=(e=it.$$annotate(e,l,n)).length;a<r;a++){var o=e[a];if("string"!=typeof o)throw Sa("itkn",o);i.push(t&&t.hasOwnProperty(o)?t[o]:s(o,n))}return i}return{invoke:function(e,t,n,i){var a;return"string"==typeof n&&(i=n,n=null),n=r(e,n,i),i=e=ke(e)?e[e.length-1]:e,(i=!bi&&"function"==typeof i&&(a=Re(a=i.$$ngIsClass)?a:i.$$ngIsClass=/^class\b/.test(Function.prototype.toString.call(i))))?(n.unshift(null),new(Function.prototype.bind.apply(e,n))):e.apply(t,n)},instantiate:function(e,t,n){var i=ke(e)?e[e.length-1]:e;return(e=r(e,t,n)).unshift(null),new(Function.prototype.bind.apply(i,e))},get:s,annotate:it.$$annotate,has:function(e){return c.hasOwnProperty(e+"Provider")||n.hasOwnProperty(e)}}}l=!0===l;var o={},u=[],s=new ga,c={$provide:{provider:t(r),factory:t(n),service:t(function(e,t){return n(e,["$injector",function(e){return e.instantiate(t)}])}),value:t(function(e,t){return n(e,T(t),!1)}),constant:t(function(e,t){J(e,"constant"),c[e]=t,f[e]=t}),decorator:function(e,t){var n=d.get(e+"Provider"),i=n.$get;n.$get=function(){var e=p.invoke(i,n);return p.invoke(t,null,{$delegate:e})}}}},d=c.$injector=i(c,function(e,t){throw b.isString(t)&&u.push(t),Sa("unpr",u.join(" <- "))}),f={},h=i(f,function(e,t){t=d.get(e+"Provider",t);return p.invoke(t.$get,t,void 0,e)}),p=h,e=(c.$injectorProvider={$get:T(h)},p.modules=d.modules=Ce(),a(e));return(p=h.get("$injector")).strictDi=l,ge(e,function(e){e&&p.invoke(e)}),p.loadNewModules=function(e){ge(a(e),function(e){e&&p.invoke(e)})},p}function at(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(n,a,i){function r(e){var t;e?(e.scrollIntoView(),we(t=o.yOffset)?t=t():P(t)?(t=t[0],t="fixed"!==n.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom):v(t)||(t=0),t&&(e=e.getBoundingClientRect().top,n.scrollBy(0,e-t))):n.scrollTo(0,0)}function o(e){var t,n,i;(e=be(e)?e:v(e)?e.toString():a.hash())?(t=s.getElementById(e))||(n=s.getElementsByName(e),i=null,Array.prototype.some.call(n,function(e){if("a"===Se(e))return i=e,!0}),t=i)?r(t):"top"===e&&r(null):r(null)}var s=n.document;return e&&i.$watch(function(){return a.hash()},function(e,t){var n;e===t&&""===e||(t=function(){i.$evalAsync(o)},"complete"===(n=n||me).document.readyState?n.setTimeout(t):Ee(n).on("load",t))}),o}]}function rt(e,t){return e||t?e?t?(e=ke(e)?e.join(" "):e)+" "+(t=ke(t)?t.join(" "):t):e:t:""}function ot(e){return ye(e)?e:{}}function st(r,e,t,o,n){function i(){y=null,a()}function s(){xe(m=_e(m=b())?null:m,S)&&(m=S),g=S=m}function a(){var e=g;s(),v===l.url()&&e===m||(v=l.url(),g=m,ge(k,function(e){e(l.url(),m)}))}var l=this,u=r.location,c=r.history,d=r.setTimeout,f=r.clearTimeout,h={},p=n(t);l.isMock=!1,l.$$completeOutstandingRequest=p.completeTask,l.$$incOutstandingRequestCount=p.incTaskCount,l.notifyWhenNoOutstandingRequests=p.notifyWhenNoPendingTasks;var m,g,v=u.href,_=e.find("base"),y=null,b=o.history?function(){try{return c.state}catch(e){}}:C,k=(s(),l.url=function(e,t,n){var i,a;return _e(n)&&(n=null),u!==r.location&&(u=r.location),c!==r.history&&(c=r.history),e?(i=g===n,e=M(e).href,(v!==e||o.history&&!i)&&(a=v&&$t(v)===$t(e),v=e,g=n,!o.history||a&&i?(a||(y=e),t?u.replace(e):a?(t=u,n=-1===(i=(n=e).indexOf("#"))?"":n.substr(i),t.hash=n):u.href=e,u.href!==e&&(y=e)):(c[t?"replaceState":"pushState"](n,"",e),s()),y=y&&e),l):(y||u.href).replace(/#$/,"")},l.state=function(){return m},[]),w=!1,S=null;l.onUrlChange=function(e){return w||(o.history&&Ee(r).on("popstate",i),Ee(r).on("hashchange",i
1),w=!0),k.push(e),e},l.$$applicationDestroyed=function(){Ee(r).off("hashchange popstate",i)},l.$$checkUrlChange=a,l.baseHref=function(){var e=_.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},l.defer=function(e,t,n){var i;return t=t||0,n=n||p.DEFAULT_TASK_TYPE,p.incTaskCount(n),i=d(function(){delete h[i],p.completeTask(e,n)},t),h[i]=n,i},l.defer.cancel=function(e){var t;return!!h.hasOwnProperty(e)&&(t=h[e],delete h[e],f(e),p.completeTask(C,t),!0)}}function lt(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,i,a){return new st(e,i,t,n,a)}]}function ut(){this.$get=function(){function e(e,t){function n(e){e!==u&&(c?c===e&&(c=e.n):c=e,i(e.n,e.p),i(e,u),(u=e).n=null)}function i(e,t){e!==t&&(e&&(e.p=t),t)&&(t.n=e)}if(e in d)throw O("$cacheFactory")("iid",e);var a=0,r=ve({},t,{id:e}),o=Ce(),s=t&&t.capacity||Number.MAX_VALUE,l=Ce(),u=null,c=null;return d[e]={put:function(e,t){if(!_e(t))return s<Number.MAX_VALUE&&n(l[e]||(l[e]={key:e})),e in o||a++,o[e]=t,s<a&&this.remove(c.key),t},get:function(e){if(s<Number.MAX_VALUE){var t=l[e];if(!t)return;n(t)}return o[e]},remove:function(e){if(s<Number.MAX_VALUE){var t=l[e];if(!t)return;t===u&&(u=t.p),t===c&&(c=t.n),i(t.n,t.p),delete l[e]}e in o&&(delete o[e],a--)},removeAll:function(){o=Ce(),a=0,l=Ce(),u=c=null},destroy:function(){l=r=o=null,delete d[e]},info:function(){return ve({},r,{size:a})}}}var d={};return e.info=function(){var n={};return ge(d,function(e,t){n[t]=e.info()}),n},e.get=function(e){return d[e]},e}}function ct(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function dt(a,t){function h(e,i,a){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,o=Ce();return ge(e,function(e,t){if((e=e.trim())in s)o[t]=s[e];else{var n=e.match(r);if(!n)throw Me("iscp",i,t,e,a?"controller bindings definition":"isolate scope definition");o[t]={mode:n[1][0],collection:"*"===n[2],optional:"?"===n[3],attrName:n[4]||t},n[4]&&(s[e]=o[t])}}),o}var ue={},ce=/^\s*directive:\s*([\w-]+)\s+(.*)$/,de=/(([\w-]+)(?::([^;]+))?;?)/,fe=function(e){var t,n={};for(e=e.split(","),t=0;t<e.length;t++)n[e[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),d=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,he=/^(on[a-z]+|formaction)$/,s=Ce(),c=(this.directive=function e(c,t){if(Ve(c,"name"),J(c,"directive"),be(c)){var n=c,i=n.charAt(0);if(!i||i!==Ae(i))throw Me("baddir",n);if(n!==n.trim())throw Me("baddir",n);Ve(t,"directiveFactory"),ue.hasOwnProperty(c)||(ue[c]=[],a.factory(c+"Directive",["$injector","$exceptionHandler",function(s,l){var u=[];return ge(ue[c],function(e,t){try{var n=s.invoke(e),i=(we(n)?n={compile:T(n)}:!n.compile&&n.link&&(n.compile=T(n.link)),n.priority=n.priority||0,n.index=t,n.name=n.name||c,n.require=(!ke(o=(r=n).require||r.controller&&r.name)&&ye(o)&&ge(o,function(e,t){var n=e.match(d);e.substring(n[0].length)||(o[t]=n[0]+t)}),o),n),a=n.restrict;if(a&&(!be(a)||!/[EACM]/.test(a)))throw Me("badrestrict",a,c);i.restrict=a||"EA",n.$$moduleName=e.$$moduleName,u.push(n)}catch(e){l(e)}var r,o}),u}])),ue[c].push(t)}else ge(c,S(e));return this},this.component=function e(t,a){function n(i){function e(n){return we(n)||ke(n)?function(e,t){return i.invoke(n,this,{$element:e,$attrs:t})}:n}var t=a.template||a.templateUrl?a.template:"",n={controller:r,controllerAs:function(e,t){if(t&&be(t))return t;if(be(e)){t=Ma.exec(e);if(t)return t[3]}}(a.controller)||a.controllerAs||"$ctrl",template:e(t),templateUrl:e(a.templateUrl),transclude:a.transclude,scope:{},bindToController:a.bindings||{},restrict:"E",require:a.require};return ge(a,function(e,t){"$"===t.charAt(0)&&(n[t]=e)}),n}var r;return be(t)?(r=a.controller||function(){},ge(a,function(e,t){"$"===t.charAt(0)&&(n[t]=e,we(r))&&(r[t]=e)}),n.$inject=["$injector"],this.directive(t,n)):(ge(t,S(Fe(this,e))),this)},this.aHrefSanitizationTrustedUrlList=function(e){return E(e)?(t.aHrefSanitizationTrustedUrlList(e),this):t.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(e){this.aHrefSanitizationTrustedUrlList=e}}),this.imgSrcSanitizationTrustedUrlList=function(e){return E(e)?(t.imgSrcSanitizationTrustedUrlList(e),this):t.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(e){this.imgSrcSanitizationTrustedUrlList=e}}),!0),f=!(this.debugInfoEnabled=function(e){return E(e)?(c=e,this):c}),p=(this.strictComponentBindingsEnabled=function(e){return E(e)?(f=e,this):f},10),m=(this.onChangesTtl=function(e){return arguments.length?(p=e,this):p},!0),g=(this.commentDirectivesEnabled=function(e){return arguments.length?(m=e,this):m},!0),pe=(this.cssClassDirectivesEnabled=function(e){return arguments.length?(g=e,this):g},Ce());function e(t,e){ge(e,function(e){pe[e.toLowerCase()]=t})}this.addPropertySecurityContext=function(e,t,n){var i=e.toLowerCase()+"|"+t.toLowerCase();if(i in pe&&pe[i]!==n)throw Me("ctxoverride",e,t,pe[i],n);return pe[i]=n,this},e(y.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(y.CSS,["*|style"]),e(y.URL,"area|href area|ping a|href a|ping blockquote|cite body|background del|cite input|src ins|cite q|cite".split(" ")),e(y.MEDIA_URL,"audio|src img|src img|srcset source|src source|srcset track|
1src video|src video|poster".split(" ")),e(y.RESOURCE_URL,"*|formAction applet|code applet|codebase base|href embed|src frame|src form|action head|profile html|manifest iframe|src link|href media|src object|codebase object|data script|src".split(" ")),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(A,O,N,j,M,se,L,I,i){function o(){try{if(!--e)throw r=void 0,Me("infchng",p);L.$apply(function(){for(var e=0,t=r.length;e<t;++e)try{r[e]()}catch(e){N(e)}r=void 0})}finally{e++}}function s(e,t){if(!e)return e;if(!be(e))throw Me("srcset",t,e.toString());for(var n="",i=Oe(e),a=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,a=/\s/.test(i)?a:/(,)/,i=i.split(a),a=Math.floor(i.length/2),r=0;r<a;r++)var o=2*r,n=(n=n+I.getTrustedMediaUrl(Oe(i[o])))+(" "+Oe(i[1+o]));return i=Oe(i[2*r]).split(/\s/),n+=I.getTrustedMediaUrl(Oe(i[0])),2===i.length&&(n+=" "+Oe(i[1])),n}function V(e,t){if(t)for(var n,i=Object.keys(t),a=0,r=i.length;a<r;a++)this[n=i[a]]=t[n];else this.$attr={};this.$$element=e}function B(e,t){try{e.addClass(t)}catch(e){}}function U(o,e,t,n,s){var l=W(o=o instanceof Ee?o:Ee(o),e,o,t,n,s),u=(U.$$addScopeClass(o),null);return function(e,t,n){if(!o)throw Me("multilink");Ve(e,"scope"),s&&s.needsNewScope&&(e=e.$parent.$new());var i=(n=n||{}).parentBoundTranscludeFn,a=n.transcludeControllers;if(n=n.futureParentElement,i&&i.$$boundTransclude&&(i=i.$$boundTransclude),n="html"!==(u=u||((n=n&&n[0])&&"foreignobject"!==Se(n)&&_.call(n).match(/SVG/)?"svg":"html"))?Ee(te(u,Ee("<div></div>").append(o).html())):t?zi.clone.call(o):o,a)for(var r in a)n.data("$"+r+"Controller",a[r].instance);return U.$$addScopeInfo(n,e),t&&t(n,e),l&&l(e,n,n,i),t||(o=l=null),n}}function W(e,c,t,n,i,a){for(var r,o,s,d,f=[],l=ke(e)||e instanceof Ee,u=0;u<e.length;u++){if(r=new V,11===bi){h=void 0;p=void 0;m=void 0;v=void 0;_=void 0;g=void 0;var h=e;var p=u;var m=l;var g,v=h[p],_=v.parentNode;if(v.nodeType===Oi)for(;(g=_?v.nextSibling:h[p+1])&&g.nodeType===Oi;)v.nodeValue+=g.nodeValue,g.parentNode&&g.parentNode.removeChild(g),m&&g===h[p+1]&&h.splice(p+1,1)}(a=(o=z(e[u],[],r,0===u?n:void 0,i)).length?K(o,e[u],r,c,t,null,[],[],a):null)&&a.scope&&U.$$addScopeClass(r.$$element),r=a&&a.terminal||!(o=e[u].childNodes)||!o.length?null:W(o,a?(a.transcludeOnThisElement||!a.templateOnThisElement)&&a.transclude:c),(a||r)&&(f.push(u,a,r),s=!0,d=d||a),a=null}return s?function(e,t,n,i){var a,r,o,s,l,u;if(d)for(u=Array(t.length),s=0;s<f.length;s+=3)u[a=f[s]]=t[a];else u=t;for(s=0,l=f.length;s<l;)r=u[f[s++]],t=f[s++],a=f[s++],t?(t.scope?(o=e.$new(),U.$$addScopeInfo(Ee(r),o)):o=e,t(a,o,r,n,t.transcludeOnThisElement?Y(e,t.transclude,i):!t.templateOnThisElement&&i?i:!i&&c?Y(e,c):null)):a&&a(e,r.childNodes,void 0,i)}:null}function Y(r,o,s){function e(e,t,n,i,a){return e||((e=r.$new(!1,a)).$$transcluded=!0),o(e,t,{parentBoundTranscludeFn:s,transcludeControllers:n,futureParentElement:i})}var t,n=e.$$slots=Ce();for(t in o.$$slots)n[t]=o.$$slots[t]?Y(r,o.$$slots[t],s):null;return e}function z(e,t,n,i,a){var r,o,s=n.$attr;switch(e.nodeType){case 1:D(t,Te(r=Se(e)),"E",i,a);for(var l=e.attributes,u=0,c=l&&l.length;u<c;u++){var d,f,h,p=!1,m=!1,g=!1,v=!1,_=!1,y=(f=l[u]).name,b=f.value;(d=(h=Te(y.toLowerCase())).match(F))?(g="Attr"===d[1],v="Prop"===d[1],_="On"===d[1],y=y.replace(Ea,"").toLowerCase().substr(4+d[1].length).replace(/_(.)/g,function(e,t){return t.toUpperCase()})):(d=h.match(le))&&function(e){if(ue.hasOwnProperty(e))for(var t=A.get(e+"Directive"),n=0,i=t.length;n<i;n++)if((e=t[n]).multiElement)return 1;return}(d[1])&&(m=(p=y).substr(0,y.length-5)+"end",y=y.substr(0,y.length-6)),v||_?(n[h]=b,s[h]=f.name,v?function(e,t,n,r){if(he.test(r))throw Me("nodomevents");var i=function(e,t){t=t.toLowerCase();return pe[e+"|"+t]||pe["*|"+t]}(e=Se(e),r),o=Ie;"srcset"!==r||"img"!==e&&"source"!==e?i&&(o=I.getTrusted.bind(I,i)):o=R,t.push({priority:100,compile:function(e,t){var i=M(t[n]),a=M(t[n],function(e){return I.valueOf(e)});return{pre:function(t,n){function e(){var e=i(t);n[0][r]=o(e)}e(),t.$watch(a,e)}}}})}(e,t,h,y):t.push(Qn(M,L,N,h,y,!1))):(s[h=Te(y.toLowerCase())]=y,!g&&n.hasOwnProperty(h)||(n[h]=b,Xe(e,h)&&(n[h]=!0)),function(e,t,a,r,n){var i=Se(e),o=function(e,t){return"srcdoc"===t?I.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?I.RESOURCE_URL:I.MEDIA_URL:"xlinkHref"===t?"image"===e?I.MEDIA_URL:"a"===e?I.URL:I.RESOURCE_URL:"form"===e&&"action"===t||"base"
1===e&&"href"===t||"link"===e&&"href"===t?I.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:I.URL}(i,r),s=fe[r]||n,l=O(a,!n,o,s);if(l){if("multiple"===r&&"select"===i)throw Me("selmulti",Ne(e));if(he.test(r))throw Me("nodomevents");t.push({priority:100,compile:function(){return{pre:function(e,t,n){t=n.$$observers||(n.$$observers=Ce());var i=n[r];i!==a&&(l=i&&O(i,!0,o,s),a=i),l&&(n[r]=l(e),(t[r]||(t[r]=[])).$$inter=!0,(n.$$observers&&n.$$observers[r].$$scope||e).$watch(l,function(e,t){"class"===r&&e!==t?n.$updateClass(e,t):n.$set(r,e)}))}}}})}}(e,t,b,h,g),D(t,h,"A",i,a,p,m))}if("input"===r&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),H&&(be(s=ye(s=e.className)?s.animVal:s)&&""!==s))for(;e=de.exec(s);)D(t,h=Te(e[2]),"C",i,a)&&(n[h]=Oe(e[3])),s=s.substr(e.index+e[0].length);break;case Oi:r=t,k=e.nodeValue,(o=O(k,!0))&&r.push({priority:0,compile:function(e){var i=!!(e=e.parent()).length;return i&&U.$$addBindingClass(e),function(e,t){var n=t.parent();i||U.$$addBindingClass(n),U.$$addBindingInfo(n,o.expressions),e.$watch(o,function(e){t[0].nodeValue=e})}}});break;case 8:if($){var k=e,w=t,S=n,x=i,C=a;try{var T,E=ce.exec(k.nodeValue);E&&(T=Te(E[1]),D(w,T,"M",x,C))&&(S[T]=Oe(E[2]))}catch(e){}}}return t.sort(P),t}function G(e,t,n){var i=[],a=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw Me("uterdir",t,n)}while(1===e.nodeType&&(e.hasAttribute(t)&&a++,e.hasAttribute(n))&&a--,i.push(e),e=e.nextSibling,0<a)}else i.push(e);return Ee(i)}function q(r,o,s){return function(e,t,n,i,a){return t=G(t[0],o,s),r(e,t,n,i,a)}}function X(e,t,n,i,a,r){var o;return e?U(t,n,i,a,r):function(){return o||(o=U(t,n,i,a,r),t=n=r=null),o.apply(this,arguments)}}function K(e,m,g,t,n,i,v,_,a){function $(e,t,n,i){e&&((e=n?q(e,n,i):e).require=T.require,e.directiveName=o,k!==T&&!T.$$isolateScope||(e=ie(e,{isolateScope:!0})),v.push(e)),t&&((t=n?q(t,n,i):t).require=T.require,t.directiveName=o,k!==T&&!T.$$isolateScope||(t=ie(t,{isolateScope:!0})),_.push(t))}function r(e,t,n,i,o){var a,r,s,l,u,c;for(a in m===n?c=(i=g).$$element:i=new V(c=Ee(n),g),s=t,k?r=t.$new(!0):y&&(s=t.$parent),o&&((u=function(e,t,n,i){var a;if(Pe(e)||(i=n,n=t,t=e,e=void 0),S&&(a=l),n=n||(S?c.parent():c),!i)return o(e,t,a,n,p);var r=o.$$slots[i];if(r)return r(e,t,a,n,p);if(_e(r))throw Me("noslot",i,Ne(c))}).$$boundTransclude=o,u.isSlotFilled=function(e){return!!o.$$slots[e]}),b&&(l=function(e,t,n,i,a,r,o){var s,l=Ce();for(s in i){var u=i[s],c={$scope:u===o||u.$$isolateScope?a:r,$element:e,$attrs:t,$transclude:n},d=u.controller;"@"===d&&(d=t[u.name]),c=se(d,c,!0,u.controllerAs),l[u.name]=c,e.data("$"+u.name+"Controller",c.instance)}return l}(c,i,u,b,r,t,k)),k&&(U.$$addScopeInfo(c,r,!0,!(w&&(w===k||w===k.$$originalDirective))),U.$$addScopeClass(c,!0),r.$$isolateBindings=k.$$isolateBindings,(d=re(t,i,r,r.$$isolateBindings,k)).removeWatches)&&r.$on("$destroy",d.removeWatches),l){var d=b[a],f=l[a],h=d.$$bindings.bindToController;f.instance=f(),c.data("$"+d.name+"Controller",f.instance),f.bindingInfo=re(s,i,f.instance,h,d)}for(ge(b,function(e,t){var n=e.require;e.bindToController&&!ke(n)&&ye(n)&&ve(l[t].instance,Z(t,n,c,l))}),ge(l,function(e){var t=e.instance;if(we(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){N(e)}if(we(t.$onInit))try{t.$onInit()}catch(e){N(e)}we(t.$doCheck)&&(s.$watch(function(){t.$doCheck()}),t.$doCheck()),we(t.$onDestroy)&&s.$on("$destroy",function(){t.$onDestroy()})}),a=0,d=v.length;a<d;a++)ae(f=v[a],f.isolateScope?r:t,c,i,f.require&&Z(f.directiveName,f.require,c,l),u);var p=t;for(k&&(k.template||null===k.templateUrl)&&(p=r),e&&e(p,n.childNodes,void 0,o),a=_.length-1;0<=a;a--)ae(f=_[a],f.isolateScope?r:t,c,i,f.require&&Z(f.directiveName,f.require,c,l),u);ge(l,function(e){we((e=e.instance).$postLink)&&e.$postLink()})}a=a||{};for(var o,s=-Number.MAX_VALUE,y=a.newScopeDirective,b=a.controllerDirectives,k=a.newIsolateScopeDirective,w=a.templateDirective,l=a.nonTlbTranscludeDirective,u=!1,c=!1,S=a.hasElementTranscludeDirective,d=g.$$element=Ee(m),f=t,h=!1,p=!1,x=0,C=e.length;x<C;x++){var T,E=(T=e[x]).$$start,A=T.$$end;if(E&&(d=G(m,E,A)),L=void 0,s>T.priority)break;if((D=T.scope)&&(T.templateUrl||(ye(D)?(ee("new/isolated scope",k||y,T,d),k=T):ee("new/isolated scope",k,T,d)),y=y||T),o=T.name,!h&&(T.replace&&(T.templateUrl||T.template)||T.transclude&&!T.$$tlb)){for(D=x+1;h=e[D++];)if(h.transclude&&!h.$$tlb||h.replace&&(h.templateUrl||h.template)){p=!0;break}h=!0}if(!T.templateUrl&&T.controller&&(b=b||Ce(),ee("'"+o+"' controller",b[o],T,d),b[o]=T),D=T.transclude)if(u=!0,T.$$tlb||(ee("transclusion",l,T,d),l=T),"element"===D)S=!0,s=T.priority,L=d,d=g.$$element=Ee(U.$$createComment(o,g[o])),m=d[0],ne(n,pi.call(L,0),m),f=X(p,L,t,s,i&&i.name,{nonTlbTranscludeDirective:l});else{var O=Ce();if(ye(D)){var M,L=me.document.createDocumentFragment(),H=Ce(),I=Ce();for(M in ge(D,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,H[e]=t,O[t]=null,I[t]=n}),ge(d.contents(),function(e){var t=H[Te(Se(e))];(t?(I[t]=!0,O[t]=O[t]||me.document.createDocumentFragment(),O[t]):L).appendChild(e)}),ge(I,function(e,t){if(!e)throw Me("reqslot",t)}),O)O[M]&&(f=Ee(O[M].childNodes),O[M]=X(p,f,t));L=Ee(L.childNodes)}else L=Ee(Be(m)).contents();d.empty(),(f=X(p,L,t,void 0,void 0,{needsNewScope:T.$$isolateScope||T.$$newScope})).$$slots=O}if(T.template)if(c=!0,ee("template",w,T,d),D=we((w=T).template)?T.template(d,g):T.template,D=oe(D),T.replace){if(i=T,L=Fi.test(D)?pt(te(T.templateNamespace,Oe(D))):[],m=L[0],1!==L.length||1!==m.nodeType)throw Me("tplrt",o,"");ne(n,d,m);var D=z(m,[],C={$attr:{}}),F=e.splice(x+1,e.length-(x+1));(k||y)&&J(D,k,y),e=e.concat(D).concat(F),Q(g,C),C=e.length}else d.html(D);if(T.templateUrl)c=!0,ee("template",w,T,d),(w=T).replace&&(i=T),r=function(s,l,u,c,d,f,h,p){var m,g,v=[],_=l[0],y=s.shift(),b=Le(y,{templateUrl:null,transclude:null,replace:null,$$originalDirective:y}),k=we(y.templateUrl)?y.templateUrl(l,u):y.templateUrl,w=y.templateNamespace;return l.empty(),j(k).then(function(e){var n;if(e=oe(e),y.replace){if(e=Fi.test(e)?pt(te(w,Oe(e))):[],n=e[0],1!==e.length||1!==n.nodeType)throw Me("tplrt",y.name,k);e={$attr:{}},ne(c,l,n);var t=z(n,[],e);ye(y.scope)&&J(t,!0),s=t.concat(s),Q(u,e)}else n=_,l.html(e);for(s.unshift(b),m=K(s,n,u,d,l,y,f,h,p),ge(c,function(e,t){e===n&&(c[t]=l[0])}),g=W(l[0].childNodes,d);v.length;){e=v.shift();var i,a=v.shift(),r=v.shift(),o=v.shift(),t=l[0];e.$$destroyed||(a!==_&&(i=a.className,p.hasElementTranscludeDirective&&y.replace||(t=Be(n)),ne(r,Ee(a),t),B(Ee(t),i)),a=m.transcludeOnThisElement?Y
1(e,m.transclude,o):o,m(g,e,t,c,a))}v=null}).catch(function(e){De(e)&&N(e)}),function(e,t,n,i,a){e=a,t.$$destroyed||(v?v.push(t,n,i,e):(m.transcludeOnThisElement&&(e=Y(t,m.transclude,a)),m(g,t,n,i,e)))}}(e.splice(x,e.length-x),d,g,n,u&&f,v,_,{controllerDirectives:b,newScopeDirective:y!==T&&y,newIsolateScopeDirective:k,templateDirective:w,nonTlbTranscludeDirective:l}),C=e.length;else if(T.compile)try{var P=T.compile(d,g,f),R=T.$$originalDirective||T;we(P)?$(null,Fe(R,P),E,A):P&&$(Fe(R,P.pre),Fe(R,P.post),E,A)}catch(e){N(e,Ne(d))}T.terminal&&(r.terminal=!0,s=Math.max(s,T.priority))}return r.scope=y&&!0===y.scope,r.transcludeOnThisElement=u,r.templateOnThisElement=c,r.transclude=f,a.hasElementTranscludeDirective=S,r}function Z(n,e,i,a){if(be(e)){var t,r,o=e.match(d),s=(e=e.substring(o[0].length),o[1]||o[3]),o="?"===o[2];if("^^"===s?i=i.parent():r=(r=a&&a[e])&&r.instance,r||(t="$"+e+"Controller",r="^^"===s&&i[0]&&9===i[0].nodeType?null:s?i.inheritedData(t):i.data(t)),!r&&!o)throw Me("ctreq",e,n)}else if(ke(e))for(r=[],s=0,o=e.length;s<o;s++)r[s]=Z(n,e[s],i,a);else ye(e)&&(r={},ge(e,function(e,t){r[t]=Z(n,e,i,a)}));return r||null}function J(e,t,n){for(var i=0,a=e.length;i<a;i++)e[i]=Le(e[i],{$$isolateScope:t,$$newScope:n})}function D(e,t,n,i,a,r,o){if(t!==a){var s=null;if(ue.hasOwnProperty(t))for(var l=0,u=(a=A.get(t+"Directive")).length;l<u;l++)if(t=a[l],(_e(i)||i>t.priority)&&-1!==t.restrict.indexOf(n)){if(!(t=r?Le(t,{$$start:r,$$end:o}):t).$$bindings){var c=s=t,d=t.name,f={isolateScope:null,bindToController:null};if(ye(c.scope)&&(!0===c.bindToController?(f.bindToController=h(c.scope,d,!0),f.isolateScope={}):f.isolateScope=h(c.scope,d,!1)),ye(c.bindToController)&&(f.bindToController=h(c.bindToController,d,!0)),f.bindToController&&!c.controller)throw Me("noctrl",d);ye((s=s.$$bindings=f).isolateScope)&&(t.$$isolateBindings=s.isolateScope)}e.push(t),s=t}return s}}function Q(n,i){var a=i.$attr,r=n.$attr;ge(n,function(e,t){"$"!==t.charAt(0)&&(i[t]&&i[t]!==e&&(e=e.length?e+(("style"===t?";":" ")+i[t]):i[t]),n.$set(t,e,!0,a[t]))}),ge(i,function(e,t){n.hasOwnProperty(t)||"$"===t.charAt(0)||(n[t]=e,"class"!==t&&"style"!==t&&(r[t]=a[t]))})}function P(e,t){var n=t.priority-e.priority;return 0!=n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function ee(e,t,n,i){function a(e){return e?" (module: "+e+")":""}if(t)throw Me("multidir",t.name,a(t.$$moduleName),n.name,a(n.$$moduleName),e,Ne(i))}function te(e,t){switch(e=Ae(e||"html")){case"svg":case"math":var n=me.document.createElement("div");return n.innerHTML="<"+e+">"+t+"</"+e+">",n.childNodes[0].childNodes;default:return t}}function R(e){return s(I.valueOf(e),"ng-prop-srcset")}function ne(e,t,n){var i,a=t[0],r=t.length,o=a.parentNode;if(e)for(i=0,s=e.length;i<s;i++)if(e[i]===a){e[i++]=n;for(var s=i+r-1,l=e.length;i<l;i++,s++)s<l?e[i]=e[s]:delete e[i];e.length-=r-1,e.context===a&&(e.context=n);break}for(o&&o.replaceChild(n,a),e=me.document.createDocumentFragment(),i=0;i<r;i++)e.appendChild(t[i]);for(Ee.hasData(a)&&(Ee.data(n,Ee.data(a)),Ee(a).off("$destroy")),Ee.cleanData(e.querySelectorAll("*")),i=1;i<r;i++)delete t[i];t[0]=n,t.length=1}function ie(e,t){return ve(function(){return e.apply(null,arguments)},e,t)}function ae(e,t,n,i,a,r){try{e(t,n,i,a,r)}catch(e){N(e,Ne(n))}}function v(e,t){if(f)throw Me("missingattr",e,t)}function re(c,d,f,e,h){function p(e,t,n){we(f.$onChanges)&&!He(t,n)&&(r||(c.$$postDigest(o),r=[]),a||(a={},r.push(i)),a[e]&&(n=a[e].previousValue),a[e]=new ft(n,t))}function i(){f.$onChanges(a),a=void 0}var a,m=[],g={};return ge(e,function(e,n){var t,i,a,r,o,s,l=e.attrName,u=e.optional;switch(e.mode){case"@":u||fi.call(d,l)||(v(l,h.name),f[n]=d[l]=void 0),u=d.$observe(l,function(e){(be(e)||Re(e))&&(p(n,e,f[n]),f[n]=e)}),d.$$observers[l].$$scope=c,be(t=d[l])?f[n]=O(t)(c):Re(t)&&(f[n]=t),g[n]=new ft(Ta,f[n]),m.push(u);break;case"=":if(!fi.call(d,l)){if(u)break;v(l,h.name),d[l]=void 0}u&&!d[l]||(r=M(d[l]),a=r.literal?xe:He,i=r.assign||function(){throw t=f[n]=r(c),Me("nonassign",d[l],l,h.name)},t=f[n]=r(c),(u=function(e){return a(e,f[n])||(a(e,t)?i(c,e=f[n]):f[n]=e),t=e}
1).$stateful=!0,u=e.collection?c.$watchCollection(d[l],u):c.$watch(M(d[l],u),null,r.literal),m.push(u));break;case"<":if(!fi.call(d,l)){if(u)break;v(l,h.name),d[l]=void 0}u&&!d[l]||(o=(r=M(d[l])).literal,s=f[n]=r(c),g[n]=new ft(Ta,f[n]),u=c[e.collection?"$watchCollection":"$watch"](r,function(e,t){if(t===e){if(t===s||o&&xe(t,s))return;t=s}p(n,e,t),f[n]=e}),m.push(u));break;case"&":u||fi.call(d,l)||v(l,h.name),(r=d.hasOwnProperty(l)?M(d[l]):C)===C&&u||(f[n]=function(e){return r(c,e)})}}),{initialChanges:g,removeWatches:m.length&&function(){for(var e=0,t=m.length;e<t;++e)m[e]()}}}var r,u=/^\w/,l=me.document.createElement("div"),$=m,H=g,e=p,t=(V.prototype={$normalize:Te,$addClass:function(e){e&&0<e.length&&i.addClass(this.$$element,e)},$removeClass:function(e){e&&0<e.length&&i.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=ht(e,t);n&&n.length&&i.addClass(this.$$element,n),(n=ht(t,e))&&n.length&&i.removeClass(this.$$element,n)},$set:function(e,t,n,i){var a=Xe(this.$$element[0],e),r=Xi[e],o=e;a?(this.$$element.prop(e,t),i=a):r&&(this[r]=t,o=r),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=je(e,"-")),"img"===Se(this.$$element)&&"srcset"===e&&(this[e]=t=s(t,"$set('srcset', value)")),!1!==n&&(null===t||_e(t)?this.$$element.removeAttr(i):u.test(i)?a&&!1===t?this.$$element.removeAttr(i):this.$$element.attr(i,t):(r=this.$$element[0],n=i,a=t,l.innerHTML="<span "+n+">",i=(n=l.firstChild.attributes)[0],n.removeNamedItem(i.name),i.value=a,r.attributes.setNamedItem(i))),(e=this.$$observers)&&ge(e[o],function(e){try{e(t)}catch(e){N(e)}})},$observe:function(e,t){var n=this,i=n.$$observers||(n.$$observers=Ce()),a=i[e]||(i[e]=[]);return a.push(t),L.$evalAsync(function(){a.$$inter||!n.hasOwnProperty(e)||_e(n[e])||t(n[e])}),function(){$e(a,t)}}},O.startSymbol()),n=O.endSymbol(),oe="{{"===t&&"}}"===n?Ie:function(e){return e.replace(/\{\{/g,t).replace(/}}/g,n)},F=/^ng(Attr|Prop|On)([A-Z].*)$/,le=/^(.+)Start$/;return U.$$addBindingInfo=c?function(e,t){var n=e.data("$binding")||[];ke(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:C,U.$$addBindingClass=c?function(e){B(e,"ng-binding")}:C,U.$$addScopeInfo=c?function(e,t,n,i){e.data(n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:C,U.$$addScopeClass=c?function(e,t){B(e,t?"ng-isolate-scope":"ng-scope")}:C,U.$$createComment=function(e,t){var n="";return c&&(n=" "+(e||"")+": ",t)&&(n+=t+" "),me.document.createComment(n)},U}]}function ft(e,t){this.previousValue=e,this.currentValue=t}function Te(e){return e.replace(Ea,"").replace(Aa,function(e,t,n){return n?t.toUpperCase():t})}function ht(e,t){var n="",i=e.split(/\s+/),a=t.split(/\s+/),r=0;e:for(;r<i.length;r++){for(var o=i[r],s=0;s<a.length;s++)if(o===a[s])continue e;n+=(0<n.length?" ":"")+o}return n}function pt(e){var t=(e=Ee(e)).length;if(!(t<=1))for(;t--;){var n=e[t];(8===n.nodeType||n.nodeType===Oi&&""===n.nodeValue.trim())&&mi.call(e,t,1)}return e}function mt(){var u={};this.has=function(e){return u.hasOwnProperty(e)},this.register=function(e,t){J(e,"controller"),ye(e)?ve(u,e):u[e]=t},this.$get=["$injector",function(s){function l(e,t,n,i){if(!e||!ye(e.$scope))throw O("$controller")("noscp",i,t);e.$scope[t]=n}return function(t,n,e,i){var a,r,o;if(e=!0===e,i&&be(i)&&(o=i),be(t)){if(!(i=t.match(Ma)))throw Oa("ctrlfmt",t);if(r=i[1],o=o||i[3],!(t=u.hasOwnProperty(r)?u[r]:function(e,t,n){if(!t)return e;for(var i,a=e,r=(t=t.split(".")).length,o=0;o<r;o++)i=t[o],e=e&&(a=e)[i];return!n&&we(e)?Fe(a,e):e}(n.$scope,r,!0)))throw Oa("ctrlreg",r);Z(t,r,!0)}return e?(e=(ke(t)?t[t.length-1]:t).prototype,a=Object.create(e||null),o&&l(n,o,a,r||t.name),ve(function(){var e=s.invoke(t,a,n,r);return e!==a&&(ye(e)||we(e))&&(a=e,o)&&l(n,o,a,r||t.name),a},{instance:a,identifier:o})):(a=s.instantiate(t,n,r),o&&l(n,o,a,r||t.name),a)}}]}function gt(){this.$get=["$window",function(e){return Ee(e.document)}]}function vt(){this.$get=["$document","$rootScope",function(e,t){function n(){a=i.hidden}var i=e[0],a=i&&i.hidden;return e.on("visibilitychange",n),t.$on("$destroy",function(){e.off("visibilitychange",n)}),function(){return a}}]}function _t(){this.$get=["$log",function(n){return function(e,t){n.error.apply(n,arguments)}}]}function yt(e){return ye(e)?w(e)?e.toISOString():F(e):e}function bt(){this.$get=function(){return function(e){var n;return e?(n=[],u(e,function(e,t){null===e||_e(e)||we(e)||(ke(e)?ge(e,function(e){n.push(r
1(t)+"="+r(yt(e)))}):n.push(r(t)+"="+r(yt(e))))}),n.join("&")):""}}}function kt(){this.$get=function(){return function(e){var t;return e?(t=[],function n(e,i,a){ke(e)?ge(e,function(e,t){n(e,i+"["+(ye(e)?t:"")+"]")}):ye(e)&&!w(e)?u(e,function(e,t){n(e,i+(a?"":"[")+t+(a?"":"]"))}):(we(e)&&(e=e()),t.push(r(i)+"="+(null==e?"":r(yt(e)))))}(e,"",!0),t.join("&")):""}}}function wt(t,n){if(be(t)){var e=t.replace(Ra,"").trim();if(e){var n=n("Content-Type"),i=(i=n=n&&0===n.indexOf(La))||(i=e.match(Da))&&Pa[i[0]].test(e);if(i)try{t=N(e)}catch(e){if(n)throw $a("baddata",t,e)}}}return t}function St(e){var n,i=Ce();return be(e)?ge(e.split("\n"),function(e){n=e.indexOf(":");var t=Ae(Oe(e.substr(0,n)));e=Oe(e.substr(n+1)),t&&(i[t]=i[t]?i[t]+", "+e:e)}):ye(e)&&ge(e,function(e,t){t=Ae(t),e=Oe(e);t&&(i[t]=i[t]?i[t]+", "+e:e)}),i}function xt(t){var n;return function(e){return n=n||St(t),e?e=void 0===(e=n[Ae(e)])?null:e:n}}function Ct(t,n,i,e){return we(e)?e(t,n,i):(ge(e,function(e){t=e(t,n,i)}),t)}function Tt(){var S=this.defaults={transformResponse:[wt],transformRequest:[function(e){return ye(e)&&"[object File]"!==_.call(e)&&"[object Blob]"!==_.call(e)&&"[object FormData]"!==_.call(e)?F(e):e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:A(Ia),put:A(Ia),patch:A(Ia)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},x=!1,n=(this.useApplyAsync=function(e){return E(e)?(x=!!e,this):x},this.interceptors=[]),i=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(e){this.xsrfTrustedOrigins=e}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(r,m,g,e,v,_,o,y){function b(e){function t(e,t){for(var n=0,i=t.length;n<i;){var a=t[n++],r=t[n++];e=e.then(a,r)}return t.length=0,e}function p(e){var t=ve({},e);return t.data=Ct(e.data,e.headers,e.status,n.transformResponse),200<=(e=e.status)&&e<300?t:_.reject(t)}if(!ye(e))throw O("$http")("badreq",e);var n,i,a;if(be(y.valueOf(e.url)))return(n=ve({method:"get",transformRequest:S.transformRequest,transformResponse:S.transformResponse,paramSerializer:S.paramSerializer,jsonpCallbackParam:S.jsonpCallbackParam},e)).headers=function(e){var t,n,i,a,r,o,s,l=S.headers,u=ve({},e.headers);e:for(t in l=ve({},l.common,l[Ae(e.method)])){for(i in n=Ae(t),u)if(Ae(i)===n)continue e;u[t]=l[t]}return a=u,r=A(e),s={},ge(a,function(e,t){we(e)?null!=(o=e(r))&&(s[t]=o):s[t]=e}),s}(e),n.method=hi(n.method),n.paramSerializer=be(n.paramSerializer)?o.get(n.paramSerializer):n.paramSerializer,r.$$incOutstandingRequestCount("$http"),i=[],a=[],e=_.resolve(n),ge(s,function(e){(e.request||e.requestError)&&i.unshift(e.request,e.requestError),(e.response||e.responseError)&&a.push(e.response,e.responseError)}),e=t(e,i),(e=t(e=e.then(function(e){var r,o,t,s,n,i,l,a=e.headers,u=Ct(e.data,xt(a),void 0,e.transformRequest);return _e(u)&&ge(a,function(e,t){"content-type"===Ae(t)&&delete a[t]}),_e(e.withCredentials)&&!_e(S.withCredentials)&&(e.withCredentials=S.withCredentials),r=e,e=u,s=_.defer(),u=s.promise,n=r.headers,i="jsonp"===Ae(r.method),l=r.url,i?l=y.getTrustedResourceUrl(l):be(l)||(l=y.valueOf(l)),l=function(e,t){return 0<t.length&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}(l,r.paramSerializer(r.params)),i&&(l=function(n,i){var e=n.split("?");if(2<e.length)throw $a("badjsonp",n);return ge(e=W(e[1]),function(e,t){if("JSON_CALLBACK"===e)throw $a("badjsonp",n);if(t===i)throw $a("badjsonp",i,n)}),n+=(-1===n.indexOf("?")?"?":"&")+i+"=JSON_CALLBACK"}(l,r.jsonpCallbackParam)),b.pendingRequests.push(r),u.then(h,h),(o=!r.cache&&!S.cache||!1===r.cache||"GET"!==r.method&&"JSONP"!==r.method?o:ye(r.cache)?r.cache:ye(S.cache)?S.cache:k)&&(E(t=o.get(l))?t&&we(t.then)?t.then(f,f):ke(t)?d(t[1],t[0],A(t[2]),t[3],t[4]):d(t,200,{},"OK","complete"):o.put(l,u)),_e(t)&&((t=w(r.url)?g()[r.xsrfCookieName||S.xsrfCookieName]:void 0)&&(n[r.xsrfHeaderName||S.xsrfHeaderName]=t),m(r.method,l,e,function(e,t,n,i,a){function r(){d(t,e,n,i,a)}
1o&&(200<=e&&e<300?o.put(l,[e,t,St(n),i,a]):o.remove(l)),x?v.$applyAsync(r):(r(),v.$$phase||v.$apply())},n,r.timeout,r.withCredentials,r.responseType,c(r.eventHandlers),c(r.uploadEventHandlers))),u.then(p,p);function c(e){var t;if(e)return t={},ge(e,function(n,e){t[e]=function(e){function t(){n(e)}x?v.$applyAsync(t):v.$$phase?t():v.$apply(t)}}),t}function d(e,t,n,i,a){(200<=(t=-1<=t?t:0)&&t<300?s.resolve:s.reject)({data:e,status:t,headers:xt(n),config:r,statusText:i,xhrStatus:a})}function f(e){d(e.data,e.status,A(e.headers()),e.statusText,e.xhrStatus)}function h(){var e=b.pendingRequests.indexOf(r);-1!==e&&b.pendingRequests.splice(e,1)}}),a)).finally(function(){r.$$completeOutstandingRequest(C,"$http")});throw O("$http")("badreq",e.url)}var t,k=e("$http"),s=(S.paramSerializer=be(S.paramSerializer)?o.get(S.paramSerializer):S.paramSerializer,[]),w=(ge(n,function(e){s.unshift(be(e)?o.get(e):o.invoke(e))}),t=[er].concat(i.map(M)),function(e){return e=M(e),t.some(vn.bind(null,e))});return b.pendingRequests=[],function(){ge(arguments,function(n){b[n]=function(e,t){return b(ve({},t||{},{method:n,url:e}))}})}("get","delete","head","jsonp"),function(){ge(arguments,function(i){b[i]=function(e,t,n){return b(ve({},n||{},{method:i,url:e,data:t}))}})}("post","put","patch"),b.defaults=S,b}]}function Et(){this.$get=function(){return function(){return new me.XMLHttpRequest}}}function At(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,i){return S=i,x=(w=e).defer,C=t,T=n[0],function(e,i,t,a,n,r,o,s,l,u){function c(e){m="timeout"===e,h&&h(),p&&p.abort()}function d(e,t,n,i,a,r){E(k)&&x.cancel(k),h=p=null,e(t,n,i,a,r)}if(i=i||w.url(),"jsonp"===Ae(e))var f=C.createCallback(i),h=(v=f,_=function(e,t){var n=200===e&&C.getResponse(f);d(a,e,n,"",t,"complete"),C.removeCallback(f)},g=(g=i).replace("JSON_CALLBACK",v),(b=T.createElement("script")).type="text/javascript",b.src=g,b.async=!0,b.addEventListener("load",y=function(e){b.removeEventListener("load",y),b.removeEventListener("error",y),T.body.removeChild(b),b=null;var t=-1,n="unknown";e&&(n=(e="load"!==e.type||C.wasCalled(v)?e:{type:"error"}).type,t="error"===e.type?404:200),_&&_(t,n)}),b.addEventListener("error",y),T.body.appendChild(b),y);else{var p=S(e,i),m=!1;if(p.open(e,i,!0),ge(n,function(e,t){E(e)&&p.setRequestHeader(t,e)}),p.onload=function(){var e=p.statusText||"",t="response"in p?p.response:p.responseText,n=1223===p.status?204:p.status;0===n&&(n=t?200:"file"===M(i).protocol?404:0),d(a,n,t,p.getAllResponseHeaders(),e,"complete")},p.onerror=function(){d(a,-1,null,null,"","error")},p.ontimeout=function(){d(a,-1,null,null,"","timeout")},p.onabort=function(){d(a,-1,null,null,"",m?"timeout":"abort")},ge(l,function(e,t){p.addEventListener(t,e)}),ge(u,function(e,t){p.upload.addEventListener(t,e)}),o&&(p.withCredentials=!0),s)try{p.responseType=s}catch(e){if("json"!==s)throw e}p.send(_e(t)?null:t)}var g,v,_,y,b,k;0<r?k=x(function(){c("timeout")},r):r&&we(r.then)&&r.then(function(){c(E(r.$$timeoutId)?"timeout":"abort")})};var w,S,x,C,T}]}function Ot(){var S="{{",x="}}";this.startSymbol=function(e){return e?(S=e,this):S},this.endSymbol=function(e){return e?(x=e,this):x},this.$get=["$parse","$exceptionHandler","$sce",function(g,v,_){function e(e){return"\\\\\\"+e}function y(e){return e.replace(n,S).replace(i,x)}function b(e,t,n,i){var a=e.$watch(function(e){return a(),i(e)},t,n);return a}function t(a,e,i,r){var o=i===_.URL||i===_.MEDIA_URL;if(!a.length||-1===a.indexOf(S))return e?void 0:(e=y(a),(e=T(e=o?_.getTrusted(i,e):e)).exp=a,e.expressions=[],e.$$watchDelegate=b,e);r=!!r;for(var t,n,s=0,l=[],u=a.length,c=[],d=[];s<u;){if(-1===(t=a.indexOf(S,s))||-1===(n=a.indexOf(x,t+k))){s!==u&&c.push(y(a.substring(s)));break}s!==t&&c.push(y(a.substring(s,t))),s=a.substring(t+k,n),l.push(s),s=n+w,d.push(c.length),c.push("")}var f,h=1===c.length&&1===d.length,p=o&&h?void 0:function(e){try{return e=i&&!o?_.getTrusted(i,e):_.valueOf(e),r&&!E(e)?e:ee(e)}catch(e){v(Ha.interr(a,e))}},m=l.map(function(e){return g(e,p)});return!e||l.length?(f=function(e){for(var t=0,n=l.length;t<n;t++){if(r&&_e(e[t]))return;c[d[t]]=e[t]}return o?_.getTrusted(i,h?c[0]:c.join("")):(i&&1<c.length&&Ha.throwNoconcat(a),c.join(""))},ve(function(e){var t=0,n=l.length,i=Array(n);try{for(;t<n;t++)i[t]=m[t](e);return f(i)}catch(e){v(Ha.interr(a,e))}},{exp:a,expressions:l,$$watchDelegate:function(i,a){var r;return i.$watchGroup(m,function(e,t){var n=f(e);a.call(this,n,e!==t?r:n,i),r=n})}})):void 0}var k=S.length,w=x.length,n=new RegExp(S.replace(/./g,e),"g"),i=new RegExp(x.replace(/./g,e),"g");return t.startSymbol=function(){return S},t.endSymbol=function(){return x},t}]}function Mt(){this.$get=["$$intervalFactory","$window",function(e,i){function a(e){i.clearInterval(e),delete r[e]}var r={},e=e(function(e,t,n){return e=i.setInterval(e,t),r[e]=n,e},a);return e.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw Fa("badprom");if(!r.hasOwnProperty(e.$$intervalId))return!1;e=e.$$intervalId;var t=r[e],n=t.promise;return n.$$state&&(n.$$state.pur=!0),t.reject("canceled"),a(e),!0},e}]}function Lt(){this.$get=["$browser","$q","$$q","$rootScope",function(h,p,m,g){return function(d,f){return function(e,t,n,i){function a(){r?e.apply(null,o):e(s)}
1var r=4<arguments.length,o=r?pi.call(arguments,4):[],s=0,l=E(i)&&!i,u=(l?m:p).defer(),c=u.promise;return n=E(n)?n:0,c.$$intervalId=d(function(){l?h.defer(a):g.$evalAsync(a),u.notify(s++),0<n&&n<=s&&(u.resolve(s),f(c.$$intervalId)),l||g.$apply()},t,u,l),c}}}]}function It(e,t){e=M(e);t.$$protocol=e.protocol,t.$$host=e.hostname,t.$$port=g(e.port)||ja[e.protocol]||null}function Dt(e,t,n){if(Ba.test(e))throw Va("badpath",e);var i="/"!==e.charAt(0);e=M(e=i?"/"+e:e);for(var a=(i=(i&&"/"===e.pathname.charAt(0)?e.pathname.substring(1):e.pathname).split("/")).length;a--;)i[a]=decodeURIComponent(i[a]),n&&(i[a]=i[a].replace(/\//g,"%2F"));n=i.join("/"),t.$$path=n,t.$$search=W(e.search),t.$$hash=decodeURIComponent(e.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Pt(e,t){return e.slice(0,t.length)===t}function Rt(e,t){if(Pt(t,e))return t.substr(e.length)}function $t(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function Ht(i,a,r){this.$$html5=!0,r=r||"",It(i,this),this.$$parse=function(e){var t=Rt(a,e);if(!be(t))throw Va("ipthprfx",e,a);Dt(t,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return a+e.substr(1)},this.$$parseLinkUrl=function(e,t){var n;return t&&"#"===t[0]?(this.hash(t.slice(1)),!0):(E(t=Rt(i,e))?(n=t,n=r&&E(t=Rt(r,t))?a+(Rt("/",t)||t):i+n):E(t=Rt(a,e))?n=a+t:a===e+"/"&&(n=a),n&&this.$$parse(n),!!n)}}function Ft(a,r,o){It(a,this),this.$$parse=function(e){_e(n=Rt(a,e)||Rt(r,e))||"#"!==n.charAt(0)?this.$$html5?t=n:(t="",_e(n)&&(a=e,this.replace())):_e(t=Rt(o,n))&&(t=n),Dt(t,this,!1),e=this.$$path;var t,n=a,i=/^\/[A-Z]:(\/.*)/;Pt(t,n)&&(t=t.replace(n,"")),i.exec(t)||(e=(t=i.exec(e))?t[1]:e),this.$$path=e,this.$$compose()},this.$$normalizeUrl=function(e){return a+(e?o+e:"")},this.$$parseLinkUrl=function(e,t){return $t(a)===$t(e)&&(this.$$parse(e),!0)}}function Nt(i,a,r){this.$$html5=!0,Ft.apply(this,arguments),this.$$parseLinkUrl=function(e,t){var n;return t&&"#"===t[0]?(this.hash(t.slice(1)),!0):(i===$t(e)?n=e:(t=Rt(a,e))?n=i+r+t:a===e+"/"&&(n=a),n&&this.$$parse(n),!!n)},this.$$normalizeUrl=function(e){return i+r+e}}function jt(e){return function(){return this[e]}}function Vt(t,n){return function(e){return _e(e)?this[t]:(this[t]=n(e),this.$$compose(),this)}}function Bt(){var p="!",m={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return E(e)?(p=e,this):p},this.html5Mode=function(e){return Re(e)?(m.enabled=e,this):ye(e)?(Re(e.enabled)&&(m.enabled=e.enabled),Re(e.requireBase)&&(m.requireBase=e.requireBase),(Re(e.rewriteLinks)||be(e.rewriteLinks))&&(m.rewriteLinks=e.rewriteLinks),this):m},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(o,s,l,a,e){function u(e,t,n){var i=d.url(),a=d.$$state;try{s.url(e,t,n),d.$$state=s.state()}catch(e){throw d.url(i),d.$$state=a,e}}function c(e,t){o.$broadcast("$locationChangeSuccess",d.absUrl(),e,d.$$state,t)}var t,n=s.baseHref(),i=s.url();if(m.enabled){if(!n&&m.requireBase)throw Va("nobase");t=i.substring(0,i.indexOf("/",i.indexOf("//")+2))+(n||"/"),n=l.history?Ht:Nt}else t=$t(i),n=Ft;var d,r=t.substr(0,$t(t).lastIndexOf("/")+1),f=((d=new n(t,r,"#"+p)).$$parseLinkUrl(i,i),d.$$state=s.state(),/^\s*(javascript|mailto):/i),h=(a.on("click",function(e){if((t=m.rewriteLinks)&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var t,n,i=Ee(e.target);"a"!==Se(i[0]);
1)if(i[0]===a[0]||!(i=i.parent())[0])return;be(t)&&_e(i.attr(t))||(t=i.prop("href"),n=i.attr("href")||i.attr("xlink:href"),ye(t)&&"[object SVGAnimatedString]"===t.toString()&&(t=M(t.animVal).href),f.test(t))||!t||i.attr("target")||e.isDefaultPrevented()||!d.$$parseLinkUrl(t,n)||(e.preventDefault(),d.absUrl()!==s.url()&&o.$apply())}}),d.absUrl()!==i&&s.url(d.absUrl(),!0),!0);return s.onUrlChange(function(i,a){Pt(i,r)?(o.$evalAsync(function(){var e,t=d.absUrl(),n=d.$$state;d.$$parse(i),d.$$state=a,e=o.$broadcast("$locationChangeStart",i,t,a,n).defaultPrevented,d.absUrl()===i&&(e?(d.$$parse(t),d.$$state=n,u(t,!1,n)):(h=!1,c(t,n)))}),o.$$phase||o.$digest()):e.location.href=i}),o.$watch(function(){var n,i,a,r,e,t;(h||d.$$urlUpdatedByLocation)&&(d.$$urlUpdatedByLocation=!1,n=s.url(),t=d.absUrl(),i=s.state(),a=d.$$replace,r=!((e=n)===(t=t)||M(e).href===M(t).href)||d.$$html5&&l.history&&i!==d.$$state,h||r)&&(h=!1,o.$evalAsync(function(){var e=d.absUrl(),t=o.$broadcast("$locationChangeStart",e,n,d.$$state,i).defaultPrevented;d.absUrl()===e&&(t?(d.$$parse(n),d.$$state=i):(r&&u(e,a,i===d.$$state?null:d.$$state),c(n,i)))})),d.$$replace=!1}),d}]}function Ut(){var i=!0,r=this;this.debugEnabled=function(e){return E(e)?(i=e,this):i},this.$get=["$window",function(t){function e(e){var n=t.console||{},i=n[e]||n.log||C;return function(){var t=[];return ge(arguments,function(e){t.push((De(e=e)&&(e.stack&&a?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e))}),Function.prototype.apply.call(i,n,t)}}var n,a=bi||/\bEdge\//.test(t.navigator&&t.navigator.userAgent);return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:(n=e("debug"),function(){i&&n.apply(r,arguments)})}}]}function Wt(e){return e+""}function Yt(e,t){return void 0!==e?e:t}function zt(e,t){return void 0===e?t:void 0===t?e:e+t}function s(e,t,n){var i,a,r=e.isPure=function(e,t){switch(e.type){case f.MemberExpression:if(e.computed)return!1;break;case f.UnaryExpression:return 1;case f.BinaryExpression:return"+"!==e.operator&&1;case f.CallExpression:return!1}return void 0===t?Xa:t}(e,n);switch(e.type){case f.Program:i=!0,ge(e.body,function(e){s(e.expression,t,r),i=i&&e.expression.constant}),e.constant=i;break;case f.Literal:e.constant=!0,e.toWatch=[];break;case f.UnaryExpression:s(e.argument,t,r),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case f.BinaryExpression:s(e.left,t,r),s(e.right,t,r),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case f.LogicalExpression:s(e.left,t,r),s(e.right,t,r),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case f.ConditionalExpression:s(e.test,t,r),s(e.alternate,t,r),s(e.consequent,t,r),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case f.Identifier:e.constant=!1,e.toWatch=[e];break;case f.MemberExpression:s(e.object,t,r),e.computed&&s(e.property,t,r),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case f.CallExpression:i=n=!!e.filter&&!t(e.callee.name).$stateful,a=[],ge(e.arguments,function(e){s(e,t,r),i=i&&e.constant,a.push.apply(a,e.toWatch)}),e.constant=i,e.toWatch=n?a:[e];break;case f.AssignmentExpression:s(e.left,t,r),s(e.right,t,r),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case f.ArrayExpression:i=!0,a=[],ge(e.elements,function(e){s(e,t,r),i=i&&e.constant,a.push.apply(a,e.toWatch)}),e.constant=i,e.toWatch=a;break;case f.ObjectExpression:i=!0,a=[],ge(e.properties,function(e){s(e.value,t,r),i=i&&e.value.constant,a.push.apply(a,e.value.toWatch),e.computed&&(s(e.key,t,!1),i=i&&e.key.constant,a.push.apply(a,e.key.toWatch))}),e.constant=i,e.toWatch=a;break;case f.ThisExpression:case f.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Gt(e){var t;return 1===e.length&&(1!==(t=(e=e[0].expression).toWatch).length||t[0]!==e)?t:void 0}function qt(e){return e.type===f.Identifier||e.type===f.MemberExpression}function Xt(e){if(1===e.body.length&&qt(e.body[0].expression))return{type:f.AssignmentExpression,left:e.body[0].expression,right:{type:f.NGValueParameter},operator:"="}}function Kt(e){this.$filter=e}function Zt(e){this.$filter=e}function Jt(e,t,n){this.ast=new f(e,n),this.astCompiler=new(n.csp?Zt:Kt)(t)}function Qt(e){return we(e.valueOf)?e.valueOf():Ya.call(e)}function en(){var s,l,u=Ce(),c={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){c[e]=t},this.setIdentifierFns=function(e,t){return s=e,l=t,this},this.$get=["$filter",function(a){function e(e,t){var n,i;switch(typeof e){case"string":return i=e=e.trim(),(n=u[i])||(n=new Jt(n=new qa(o),a,o).parse(e),u[i]=p(n)),r(n,t);case"function":return r(e,t);default:return r(C,t)}}function f(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Qt(e))&&!n)&&(e===t||e!=e&&t!=t)}function t(e,t,n,r,i){var o,a,s=r.inputs;if(1===s.length)return a=f,s=s[0],e.$watch(function(e){var t=s(e);return f(t,a,s.isPure)||(o=r(e,void 0,void 0,[t]),a=t&&Qt(t)),o},t,n,i);for(var l=[],u=[],c=0,d=s.length;c<d;c++)l[c]=f,u[c]=null;return e.$watch(function(e){for(var t=!1,n=0,i=s.length;n<i;n++){var a=s[n](e);(t=t||!f(a,l[n],s[n].isPure))&&(l[n]=(u[n]=a)&&Qt(a))}return o=t?r(e,void 0,void 0,u):o},t,n,i)}function n(e,t,n,i,a){function r(){u(l)&&s()}function o(e,t,n,i){return l=f&&i?i[0]:c(e,t,n,i),u(l)&&e.$$postDigest(r),d(l)}var s,l,u=i.literal?h:E,c=i.$$intercepted||i,d=i.$$interceptor||Ie,f=i.inputs&&!c.inputs;return o.literal=i.literal,o.constant=i.constant,o.inputs=i.inputs,p(o),s=e.$watch(o,t,n,a)}function h(e){var t=!0;return ge(e,function(e){E(e)||(t=!1)}),t}
1function i(e,t,n,i){var a=e.$watch(function(e){return a(),i(e)},t,n);return a}function p(e){return e.constant?e.$$watchDelegate=i:e.oneTime?e.$$watchDelegate=n:e.inputs&&(e.$$watchDelegate=t),e}function r(a,r){var t,n,o,e;return r?(a.$$interceptor&&(t=a.$$interceptor,n=r,i.$stateful=t.$stateful||n.$stateful,i.$$pure=t.$$pure&&n.$$pure,r=i,a=a.$$intercepted),o=!1,(e=function(e,t,n,i){return e=o&&i?i[0]:a(e,t,n,i),r(e)}).$$intercepted=a,e.$$interceptor=r,e.literal=a.literal,e.oneTime=a.oneTime,e.constant=a.constant,r.$stateful||(o=!a.inputs,e.inputs=a.inputs||[a],r.$$pure)||(e.inputs=e.inputs.map(function(t){return t.isPure===Xa?function(e){return t(e)}:t})),p(e)):a;function i(e){return n(t(e))}}var o={csp:Si().noUnsafeEval,literals:R(c),isIdentifierStart:we(s)&&s,isIdentifierContinue:we(l)&&l};return e.$$getAst=function(e){return new Jt(new qa(o),a,o).getAst(e).ast},e}]}function tn(){var n=!0;this.$get=["$rootScope","$exceptionHandler",function(t,e){return an(function(e){t.$evalAsync(e)},e,n)}],this.errorOnUnhandledRejections=function(e){return E(e)?(n=e,this):n}}function nn(){var n=!0;this.$get=["$browser","$exceptionHandler",function(t,e){return an(function(e){t.defer(e)},e,n)}],this.errorOnUnhandledRejections=function(e){return E(e)?(n=e,this):n}}function an(o,s,l){function n(){return new e}function e(){var t=this.promise=new r;this.resolve=function(e){d(t,e)},this.reject=function(e){f(t,e)},this.notify=function(e){p(t,e)}}function r(){this.$$state={status:0}}function u(){for(;!v&&_.length;){var e,t=_.shift();t.pur||(t.pur=!0,e="Possibly unhandled rejection: "+("function"==typeof(e=t.value)?e.toString().replace(/ \{[\s\S]*$/,""):_e(e)?"undefined":"string"!=typeof e?function(e,t){var n=[];return k(t)&&(e=b.copy(e,null,t)),JSON.stringify(e,function(e,t){if(ye(t=H(e,t))){if(0<=n.indexOf(t))return"...";n.push(t)}return t})}(e,void 0):e),De(t.value)?s(t.value,e):s(e))}}function c(r){!l||r.pending||2!==r.status||r.pur||(0===v&&0===_.length&&o(u),_.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++v,o(function(){var e,t,n=r.pending;r.processScheduled=!1,r.pending=void 0;try{for(var i=0,a=n.length;i<a;++i){r.pur=!0,t=n[i][0],e=n[i][r.status];try{we(e)?d(t,e(r.value)):(1===r.status?d:f)(t,r.value)}catch(e){f(t,e),e&&!0===e.$$passToExceptionHandler&&s(e)}}}finally{--v,l&&0===v&&o(u)}}))}function d(e,t){e.$$state.status||(t===e?h(e,g("qcycle",t)):function t(n,e){function i(e){s||(s=!0,t(n,e))}function a(e){s||(s=!0,h(n,e))}function r(e){p(n,e)}var o,s=!1;try{(ye(e)||we(e))&&(o=e.then),we(o)?(n.$$state.status=-1,o.call(e,i,a,r)):(n.$$state.value=e,n.$$state.status=1,c(n.$$state))}catch(e){a(e)}}(e,t))}function f(e,t){e.$$state.status||h(e,t)}function h(e,t){e.$$state.value=t,e.$$state.status=2,c(e.$$state)}function p(e,a){var r=e.$$state.pending;e.$$state.status<=0&&r&&r.length&&o(function(){for(var e,t,n=0,i=r.length;n<i;n++){t=r[n][0],e=r[n][3];try{p(t,we(e)?e(a):a)}catch(e){s(e)}}})}function a(e){var t=new r;return f(t,e),t}function i(e,t,n){var i=null;try{we(n)&&(i=n())}catch(e){return a(e)}return i&&we(i.then)?i.then(function(){return t(e)},a):t(e)}function m(e,t,n,i){var a=new r;return d(a,e),a.then(t,n,i)}function t(e){var t;if(we(e))return t=new r,e(function(e){d(t,e)},function(e){f(t,e)}),t;throw g("norslvr",e)}var g=O("$q",TypeError),v=0,_=[],y=(ve(r.prototype,{then:function(e,t,n){var i;return _e(e)&&_e(t)&&_e(n)?this:(i=new r,this.$$state.pending=this.$$
1state.pending||[],this.$$state.pending.push([i,e,t,n]),0<this.$$state.status&&c(this.$$state),i)},catch:function(e){return this.then(null,e)},finally:function(t,e){return this.then(function(e){return i(e,y,t)},function(e){return i(e,a,t)},e)}}),m);return t.prototype=r.prototype,t.defer=n,t.reject=a,t.when=m,t.resolve=y,t.all=function(e){var n=new r,i=0,a=ke(e)?[]:{};return ge(e,function(e,t){i++,m(e).then(function(e){a[t]=e,--i||d(n,a)},function(e){f(n,e)})}),0===i&&d(n,a),n},t.race=function(e){var t=n();return ge(e,function(e){m(e).then(t.resolve,t.reject)}),t.promise},t}function rn(){this.$get=["$window","$timeout",function(e,n){var i=e.requestAnimationFrame||e.webkitRequestAnimationFrame,a=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,e=!!i,t=e?function(e){var t=i(e);return function(){a(t)}}:function(e){var t=n(e,16.66,!1);return function(){n.cancel(t)}};return t.supported=e,t}]}function on(){var k=10,w=O("$rootScope"),S=null,x=null;this.digestTtl=function(e){return k=arguments.length?e:k},this.$get=["$exceptionHandler","$parse","$browser",function(d,h,f){function a(e){e.currentScope.$$destroyed=!0}function r(){this.$id=++yi,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,(this.$root=this).$$suspended=this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function p(e){if(v.$$phase)throw w("inprog",v.$$phase);v.$$phase=e}function l(e,t){for(;e.$$watchersCount+=t,e=e.$parent;);}function o(e,t,n){for(;e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n],e=e.$parent;);}function m(){}function g(){for(;n.length;)try{n.shift()()}catch(e){d(e)}x=null}r.prototype={constructor:r,$new:function(e,t){var n;function i(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++yi,this.$$ChildScope=null,this.$$suspended=!1}return t=t||this,e?(n=new r).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=(i.prototype=this,i)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,!e&&t===this||n.$on("$destroy",a),n},$watch:function(e,t,n,i){var a,r,o,s=h(e);return t=we(t)?t:C,s.$$watchDelegate?s.$$watchDelegate(this,t,n,s,e):(r=(a=this).$$watchers,o={fn:t,last:m,get:s,exp:i||e,eq:!!n},S=null,r||((r=a.$$watchers=[]).$$digestWatchIndex=-1),r.unshift(o),r.$$digestWatchIndex++,l(this,1),function(){var e=$e(r,o);0<=e&&(l(a,-1),e<r.$$digestWatchIndex)&&r.$$digestWatchIndex--,S=null})},$watchGroup:function(t,i){function n(){l=!1;try{u?(u=!1,i(r,r,s)):i(r,a,s)}finally{for(var e=0;e<t.length;e++)a[e]=r[e]}}var e,a=Array(t.length),r=Array(t.length),o=[],s=this,l=!1,u=!0;return t.length?1===t.length?this.$watch(t[0],function(e,t,n){r[0]=e,a[0]=t,i(r,e===t?r:a,n)}):(ge(t,function(e,t){e=s.$watch(e,function(e){r[t]=e,l||(l=!0,s.$evalAsync(n))});o.push(e)}),function(){for(;o.length;)o.shift()()}):(e=!0,s.$evalAsync(function(){e&&i(r,r,s)}),function(){e=!1})},$watchCollection:function(e,t){function n(e){var t,n,i;if(!_e(a=e)){if(ye(a))if(I(a))for(r!==u&&(f=(r=u).length=0,l++),e=a.length,f!==e&&(l++,r.length=f=e),t=0;t<e;t++)i=r[t],n=a[t],i!=i&&n!=n||i===n||(l++,r[t]=n);else{for(t in r!==c&&(r=c={},f=0,l++),e=0,a)fi.call(a,t)&&(e++,n=a[t],i=r[t],t in r?i!=i&&n!=n||i===n||(l++,r[t]=n):(f++,r[t]=n,l++));if(e<f)for(t in l++,r)fi.call(a,t)||(f--,delete r[t])}else r!==a&&(r=a,l++);return l}}n.$$pure=h(e).literal,n.$stateful=!n.$$pure;var a,r,i,o=this,s=1<t.length,l=0,e=h(e,n),u=[],c={},d=!0,f=0;return this.$watch(e,function(){if(d?(d=!1,t(a,a,o)):t(a,i,o),s)if(ye(a))if(I(a)){i=Array(a.length);for(var e=0;e<a.length;e++)i[e]=a[e]}else for(e in i={},a)fi.call(a,e)&&(i[e]=a[e]);else i=a})},$digest:function(){var e,t,n,i,a,r,o,s,l=k,u=_.length?v:this,c=[];p("$digest"),f.$$checkUrlChange(),this===v&&null!==x&&(f.defer.cancel(x),g()),S=null;do{for(a=!1,r=u,i=0;i<_.length;i++){try{(0,(s=_[i]).fn)(s.scope,s.locals)}catch(e){d(e)}S=null}_.length=0;e:do{if(i=!r.$$suspended&&r.$$watchers)for(i.$$digestWatchIndex=i.length;i.$$digestWatchIndex--;)try{if(e=i[i.$$digestWatchIndex])if((t=(0,e.get)(r))===(n=e.last)||(e.eq?xe(t,n):L(t)&&L(n))){if(e===S){a=!1;break e}}else a=!0,(S=e).last=e.eq?R(t,null):t,(0,e.fn)(t,n===m?t:n,r),l<5&&(c[o=4-l]||(c[o]=[]),c[o].push({msg:we(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:t,oldVal:n}))}catch(e){d(e)}if(!(i=!r.$$suspended&&r.$$watchersCount&&r.$$childHead||r!==u&&r.$$nextSibling))for(;r!==u&&!(i=r.$$nextSibling);)r=r.$parent}while(r=i);if((a||_.length)&&!l--)throw v.$$phase=null,w("infdig",k,c)}while(a||_.length);for(v.$$phase=null;b<y.length;)try{y[b++]()}catch(e){d(e)}y.length=b=0,f.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e,t=this.$parent;for(e in this.$broadcast("$destroy"),this.$$destroyed=!0,this===v&&f.$$applicationDestroyed(),l(this,-this.$$wat
1chersCount),this.$$listenerCount)o(this,this.$$listenerCount[e],e);t&&t.$$childHead===this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail===this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=C,this.$on=this.$watch=this.$watchGroup=function(){return C},this.$$listeners={},this.$$nextSibling=null,!function e(t){9===bi&&(t.$$childHead&&e(t.$$childHead),t.$$nextSibling)&&e(t.$$nextSibling),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}(this)}},$eval:function(e,t){return h(e)(this,t)},$evalAsync:function(e,t){v.$$phase||_.length||f.defer(function(){_.length&&v.$digest()},null,"$evalAsync"),_.push({scope:this,fn:h(e),locals:t})},$$postDigest:function(e){y.push(e)},$apply:function(e){try{p("$apply");try{return this.$eval(e)}finally{v.$$phase=null}}catch(e){d(e)}finally{try{v.$digest()}catch(e){throw d(e),e}}},$applyAsync:function(e){var t=this;e&&n.push(function(){t.$eval(e)}),e=h(e),null===x&&(x=f.defer(function(){v.$apply(g)},null,"$applyAsync"))},$on:function(t,n){for(var i=this.$$listeners[t],e=(i||(this.$$listeners[t]=i=[]),i.push(n),this);e.$$listenerCount[t]||(e.$$listenerCount[t]=0),e.$$listenerCount[t]++,e=e.$parent;);var a=this;return function(){var e=i.indexOf(n);-1!==e&&(delete i[e],o(a,1,t))}},$emit:function(e,t){var n,i,a,r=[],o=this,s=!1,l={name:e,targetScope:o,stopPropagation:function(){s=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},u=$([l],arguments,1);do{for(n=o.$$listeners[e]||r,l.currentScope=o,i=0,a=n.length;i<a;i++)if(n[i])try{n[i].apply(null,u)}catch(e){d(e)}else n.splice(i,1),i--,a--}while(!s&&(o=o.$parent));return l.currentScope=null,l},$broadcast:function(e,t){var n=this,i=this,a={name:e,targetScope:this,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(this.$$listenerCount[e]){for(var r,o,s=$([a],arguments,1);n=i;){for(r=0,o=(i=(a.currentScope=n).$$listeners[e]||[]).length;r<o;r++)if(i[r])try{i[r].apply(null,s)}catch(e){d(e)}else i.splice(r,1),r--,o--;if(!(i=n.$$listenerCount[e]&&n.$$childHead||n!==this&&n.$$nextSibling))for(;n!==this&&!(i=n.$$nextSibling);)n=n.$parent}a.currentScope=null}return a}};var v=new r,_=v.$$asyncQueue=[],y=v.$$postDigestQueue=[],n=v.$$applyAsyncQueue=[],b=0;return v}]}function sn(){var i=/^\s*(https?|s?ftp|mailto|tel|file):/,a=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return E(e)?(i=e,this):i},this.imgSrcSanitizationTrustedUrlList=function(e){return E(e)?(a=e,this):a},this.$get=function(){return function(e,t){var t=t?a:i,n=M(e&&e.trim()).href;return""===n||n.match(t)?e:"unsafe:"+n}}}function ln(e){var t=[];return E(e)&&ge(e,function(e){t.push(function(e){if("self"===e)return e;if(be(e)){if(-1<e.indexOf("***"))throw Ka("iwcard",e);return e=wi(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(x(e))return new RegExp("^"+e.source+"$");throw Ka("imatcher")}(e))}),t}function un(){this.SCE_CONTEXTS=y;var c=["self"],d=[];this.trustedResourceUrlList=function(e){return c=arguments.length?ln(e):c},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(e){this.trustedResourceUrlList=e}}),this.bannedResourceUrlList=function(e){return d=arguments.length?ln(e):d},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(e){this.bannedResourceUrlList=e}}),this.$get=["$injector","$$sanitizeUri",function(e,o){function s(e,t){var n;return"self"===e?(n=vn(t,er))||(n=vn(t,n=me.document.baseURI||(ca||((ca=me.document.createElement("a")).href=".",ca=ca.cloneNode(!1)),ca.href))):n=!!e.exec(t.href),n}function t(e){function t(e){this.$$unwrapTrustedValue=function(){return e}}return(t.prototype=e?new e:t.prototype).valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var l=function(e){throw Ka("unsafe")},n=(e.has("$sanitize")&&(l=e.get("$sanitize")),t()),u={};return u[y.HTML]=t(n),u[y.CSS]=t(n),u[y.MEDIA_URL]=t(n),u[y.URL]=t(u[y.MEDIA_URL]),u[y.JS]=t(n),u[y.RESOURCE_URL]=t(u[y.URL]),{trustAs:function(e,t){var n=u.hasOwnProperty(e)?u[e]:null;if(!n)throw Ka("icontext",e,t);if(null===t||_e(t)||""===t)return t;if("string"!=typeof t)throw Ka("itype",e);return new n(t)},getTrusted:function(e,t){if(null===t||_e(t)||""===t)return t;if((n=u.hasOwnProperty(e)?u[e]:null)&&t instanceof n)return t.$$unwrapTrustedValue();if(we(t.$$unwrapTrustedValue)&&(t=t.$$unwrapTrustedValue()),e===y.MEDIA_URL||e===y.URL)return o(t.toString(),e===y.MEDIA_URL);if(e===y.RESOURCE_URL){for(var n=M(t.toString()),i=!1,a=0,r=c.length;a<r;a++)if(s(c[a],n)){i=!0;break}if(i)for(a=0,r=d.length;a<r;a++)if(s(d[a],n)){i=!1;break}if(i)return t;throw Ka("insecurl",t.toString())}if(e===y.HTML)return l(t);throw Ka("unsafe")}
1,valueOf:function(e){return e instanceof n?e.$$unwrapTrustedValue():e}}}]}function cn(){var t=!0;this.enabled=function(e){return t=arguments.length?!!e:t},this.$get=["$parse","$sceDelegate",function(i,e){if(t&&bi<8)throw Ka("iequirks");var a=A(y),n=(a.isEnabled=function(){return t},a.trustAs=e.trustAs,a.getTrusted=e.getTrusted,a.valueOf=e.valueOf,t||(a.trustAs=a.getTrusted=function(e,t){return t},a.valueOf=Ie),a.parseAs=function(t,e){var n=i(e);return n.literal&&n.constant?n:i(e,function(e){return a.getTrusted(t,e)})},a.parseAs),r=a.getTrusted,o=a.trustAs;return ge(y,function(t,e){e=Ae(e);a[("parse_as_"+e).replace(Za,te)]=function(e){return n(t,e)},a[("get_trusted_"+e).replace(Za,te)]=function(e){return r(t,e)},a[("trust_as_"+e).replace(Za,te)]=function(e){return o(t,e)}}),a}]}function dn(){this.$get=["$window","$document",function(e,t){var n={},i=!((!e.nw||!e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,a=g((/android (\d+)/.exec(Ae((e.navigator||{}).userAgent))||[])[1]),e=/Boxee/i.test((e.navigator||{}).userAgent),r=t[0]||{},t=r.body&&r.body.style,o=!1,s=!1;return t&&(o=!!("transition"in t||"webkitTransition"in t),s=!!("animation"in t||"webkitAnimation"in t)),{history:!(!i||a<4||e),hasEvent:function(e){var t;return("input"!==e||!bi)&&(_e(n[e])&&(t=r.createElement("div"),n[e]="on"+e in t),n[e])},csp:Si(),transitions:o,animations:s,android:a}}]}function fn(){this.$get=T(function(e){return new hn(e)})}function hn(a){function r(){var e=i.pop();return e&&e.cb}function o(e){for(var t=i.length-1;0<=t;--t){var n=i[t];if(n.type===e)return i.splice(t,1),n.cb}}var s={},i=[],l=this.ALL_TASKS_TYPE="$$all$$",u=this.DEFAULT_TASK_TYPE="$$default$$";this.completeTask=function(e,t){t=t||u;try{e()}finally{var n=t||u,i=(s[n]&&(s[n]--,s[l]--),n=s[t],s[l]);if(!i||!n)for(n=i?o:r;i=n(t);)try{i()}catch(e){a.error(e)}}},this.incTaskCount=function(e){s[e=e||u]=(s[e]||0)+1,s[l]=(s[l]||0)+1},this.notifyWhenNoPendingTasks=function(e,t){s[t=t||l]?i.push({type:t,cb:e}):e()}}function pn(){var u;this.httpOptions=function(e){return e?(u=e,this):u},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(i,a,r,o,s){function l(t,n){l.totalPendingRequests++,be(t)&&!_e(a.get(t))||(t=s.getTrustedResourceUrl(t));var e=r.defaults&&r.defaults.transformResponse;return ke(e)?e=e.filter(function(e){return e!==wt}):e===wt&&(e=null),r.get(t,ve({cache:a,transformResponse:e},u)).finally(function(){l.totalPendingRequests--}).then(function(e){return a.put(t,e.data)},function(e){return n||(e=Ja("tpload",t,e.status,e.statusText),i(e)),o.reject(e)})}return l.totalPendingRequests=0,l}]}function mn(){this.$get=["$rootScope","$browser","$location",function(t,n,i){return{findBindings:function(e,n,i){e=e.getElementsByClassName("ng-binding");var a=[];return ge(e,function(t){var e=b.element(t).data("$binding");e&&ge(e,function(e){i?new RegExp("(^|\\s)"+wi(n)+"(\\s|\\||$)").test(e)&&a.push(t):-1!==e.indexOf(n)&&a.push(t)})}),a},findModels:function(e,t,n){for(var i=["ng-","data-ng-","ng\\:"],a=0;a<i.length;++a){var r=e.querySelectorAll("["+i[a]+"model"+(n?"=":"*=")+'"'+t+'"]');if(r.length)return r}},getLocation:function(){return i.url()},setLocation:function(e){e!==i.url()&&(i.url(e),t.$digest())},whenStable:function(e){n.notifyWhenNoOutstandingRequests(e)}}}]}function gn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(s,l,u,c,d){function e(e,t,n){we(e)||(n=t,t=e,e=C);var i=pi.call(arguments,3),a=E(n)&&!n,r=(a?c:u).defer(),o=r.promise,n=l.defer(function(){try{r.resolve(e.apply(null,i))}catch(e){r.reject(e),d(e)}finally{delete f[o.$$timeoutId]}a||s.$apply()},t,"$timeout");return o.$$timeoutId=n,f[n]=r,o}var f={};return e.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw Qa("badprom");if(!f.hasOwnProperty(e.$$timeoutId))return!1;e=e.$$timeoutId;var t=f[e],n=t.promise;return n.$$state&&(n.$$state.pur=!0),t.reject("canceled"),delete f[e],l.defer.cancel(e)},e}]}function M(e){return be(e)?(bi&&(t.setAttribute("href",e),e=t.href),t.setAttribute("href",e),e=t.hostname,!tr&&-1<e.indexOf(":")&&(e="["+e+"]"),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:e,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}):e}function vn(e,t){return e=M(e),t=M(t),e.protocol===t.protocol&&e.host===t.host}function _n(){this.$get=T(me)}function yn(e){function r(t){try{return decodeURIComponent(t)}catch(e){return t}}var o=e[0]||{},s={},l="";return function(){var t,e,n,i,a;try{t=o.cookie||""}catch(e){t=""}if(t!==l)for(t=(l=t).split("; "),s={},n=0;n<t.length;n++)0<(i=(e=t[n]).indexOf("="))&&(a=r(e.substring(0,i)),_e(s[a]))&&
1(s[a]=r(e.substring(i+1)));return s}}function bn(){this.$get=yn}function kn(i){function a(e,t){var n;return ye(e)?(n={},ge(e,function(e,t){n[t]=a(t,e)}),n):i.factory(e+"Filter",t)}this.register=a,this.$get=["$injector",function(t){return function(e){return t.get(e+"Filter")}}],a("currency",Cn),a("date",Dn),a("filter",wn),a("json",Pn),a("limitTo",Rn),a("lowercase",or),a("number",Tn),a("orderBy",Hn),a("uppercase",sr)}function wn(){return function(e,t,n,i){if(!I(e)){if(null==e)return e;throw O("filter")("notarray",e)}var a,r,o,s,l,u;switch(i=i||"$",xn(t)){case"function":break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=n,s=i,l=a,u=ye(r=t)&&s in r,!0===o?o=xe:we(o)||(o=function(e,t){return!(_e(e)||(null===e||null===t?e!==t:ye(t)||ye(e)&&!d(e)||(e=Ae(""+e),t=Ae(""+t),-1===e.indexOf(t))))}),t=function(e){return u&&!ye(e)?Sn(e,r[s],o,s,!1):Sn(e,r,o,s,l)};break;default:return e}return Array.prototype.filter.call(e,t)}}function Sn(e,t,n,i,a,r){var o,s=xn(e),l=xn(t);if("string"===l&&"!"===t.charAt(0))return!Sn(e,t.substring(1),n,i,a);if(ke(e))return e.some(function(e){return Sn(e,t,n,i,a)});switch(s){case"object":if(a){for(o in e)if(o.charAt&&"$"!==o.charAt(0)&&Sn(e[o],t,n,i,!0))return!0;return!r&&Sn(e,t,n,i,!1)}if("object"!==l)return n(e,t);for(o in t)if(!we(r=t[o])&&!_e(r)&&!Sn((s=o===i)?e:e[o],r,n,i,s,s))return!1;return!0;case"function":return!1;default:return n(e,t)}}function xn(e){return null===e?"null":typeof e}function Cn(e){var a=e.NUMBER_FORMATS;return function(e,t,n){_e(t)&&(t=a.CURRENCY_SYM),_e(n)&&(n=a.PATTERNS[1].maxFrac);var i=t?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:En(e,a.PATTERNS[1],a.GROUP_SEP,a.DECIMAL_SEP,n).replace(i,t)}}function Tn(e){var n=e.NUMBER_FORMATS;return function(e,t){return null==e?e:En(e,n.PATTERNS[0],n.GROUP_SEP,n.DECIMAL_SEP,t)}}function En(e,t,n,i,a){if(!be(e)&&!v(e)||isNaN(e))return"";var r=!isFinite(e),o=!1,s=Math.abs(e)+"",l="";if(r)l="â";else{var u=o=function(e){var t,n,i,a,r,o=0;for(0<(i=(e=-1<(n=e.indexOf("."))?e.replace(".",""):e).search(/e/i))?(n<0&&(n=i),n+=+e.slice(i+1),e=e.substring(0,i)):n<0&&(n=e.length),i=0;e.charAt(i)===nr;i++);if(i===(r=e.length))t=[0],n=1;else{for(r--;e.charAt(r)===nr;)r--;for(n-=i,t=[],a=0;i<=r;i++,a++)t[a]=+e.charAt(i)}
1return 22<n&&(t=t.splice(0,21),o=n-1,n=1),{d:t,e:o,i:n}}(s),c=a,d=t.minFrac,f=t.maxFrac,h=u.d,p=h.length-u.i;if(f=h[d=(c=_e(c)?Math.min(Math.max(d,p),f):+c)+u.i],0<d){h.splice(Math.max(u.i,d));for(var m=d;m<h.length;m++)h[m]=0}else for(p=Math.max(0,p),u.i=1,h.length=Math.max(1,d=c+1),h[0]=0,m=1;m<d;m++)h[m]=0;if(5<=f)if(d-1<0){for(f=0;d<f;f--)h.unshift(0),u.i++;h.unshift(1),u.i++}else h[d-1]++;for(;p<Math.max(0,c);p++)h.push(0);for((c=h.reduceRight(function(e,t,n,i){return i[n]=(t+=e)%10,Math.floor(t/10)},0))&&(h.unshift(c),u.i++),l=o.d,s=o.i,a=o.e,r=[],o=l.reduce(function(e,t){return e&&!t},!0);s<0;)l.unshift(0),s++;for(0<s?r=l.splice(s,l.length):(r=l,l=[0]),s=[],l.length>=t.lgSize&&s.unshift(l.splice(-t.lgSize,l.length).join(""));l.length>t.gSize;)s.unshift(l.splice(-t.gSize,l.length).join(""));l.length&&s.unshift(l.join("")),l=s.join(n),r.length&&(l+=i+r.join("")),a&&(l+="e+"+a)}return e<0&&!o?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function An(e,t,n,i){var a="";for((e<0||i&&e<=0)&&(i?e=1-e:(e=-e,a="-")),e=""+e;e.length<t;)e=nr+e;return a+(e=n?e.substr(e.length-t):e)}function e(t,n,i,a,r){return i=i||0,function(e){return e=e["get"+t](),(0<i||-i<e)&&(e+=i),An(e=0===e&&-12===i?12:e,n,a,r)}}function On(n,i,a){return function(e,t){e=e["get"+n]();return t[hi((a?"STANDALONE":"")+(i?"SHORT":"")+n)][e]}}function Mn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Ln(n){return function(e){var t=Mn(e.getFullYear());return e=+new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))-+t,An(e=1+Math.round(e/6048e5),n)}}function In(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function Dn(p){var m=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(t,e,n){var i,a,r,o,s,l,u,c,d="",f=[];if(e=p.DATETIME_FORMATS[e=e||"mediumDate"]||e,!w(t=v(t=be(t)?rr.test(t)?g(t):((o=(r=t).match(m))&&(r=new Date(0),l=s=0,u=o[8]?r.setUTCFullYear:r.setFullYear,c=o[8]?r.setUTCHours:r.setHours,o[9]&&(s=g(o[9]+o[10]),l=g(o[9]+o[11])),u.call(r,g(o[1]),g(o[2])-1,g(o[3])),s=g(o[4]||0)-s,l=g(o[5]||0)-l,u=g(o[6]||0),o=Math.round(1e3*parseFloat("0."+(o[7]||0))),c.call(r,s,l,u,o)),r):t)?new Date(t):t)||!isFinite(t.getTime()))return t;for(;e;)e=(a=ar.exec(e))?(f=$(f,a,1)).pop():(f.push(e),null);var h=t.getTimezoneOffset();return n&&(h=j(n,h),t=B(t,n,!0)),ge(f,function(e){i=ir[e],d+=i?i(t,p.DATETIME_FORMATS,h):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}}function Pn(){return function(e,t){return F(e,t=_e(t)?2:t)}}function Rn(){return function(e,t,n){return t=(1/0===Math.abs(Number(t))?Number:g)(t),!L(t)&&I(e=v(e)?e.toString():e)?(n=(n=!n||isNaN(n)?0:g(n))<0?Math.max(0,e.length+n):n,0<=t?$n(e,n,n+t):0===n?$n(e,t,e.length):$n(e,Math.max(0,n+t),n)):e}}function $n(e,t,n){return be(e)?e.slice(t,n):pi.call(e,t,n)}function Hn(a){function l(e){switch(typeof e){case"number":case"boolean":case"string":return 1;default:return}}function u(e,t){var n,i=0,a=e.type,r=t.type;return a===r?(r=e.value,n=t.value,"string"===a?(r=r.toLowerCase(),n=n.toLowerCase()):"object"===a&&(ye(r)&&(r=e.index),ye(n))&&(n=t.index),r!==n&&(i=r<n?-1:1)):i="undefined"!==a&&("undefined"===r||"null"!==a&&("null"===r||a<r))?-1:1,i}return function(e,t,n,i){if(null==e)return e;var r,o,s;if(I(e))return r=(t=0===(t=ke(t)?t:[t]).length?["+"]:t).map(function(e){var t,n=1,i=Ie;return we(e)?i=e:be(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e)&&(i=a(e)).constant&&(t=i(),i=function(e){return e[t]}),{get:i,descending:n}}),o=n?-1:1,s=we(i)?i:u,(e=Array.prototype.map.call(e,function(n,i){return{value:n,tieBreaker:{value:i,type:"number",index:i},predicateValues:r.map(function(e){var t=e.get(n);return e=typeof t,null===t?e="null":"object"!==e||we(t.valueOf)&&l(t=t.valueOf())||d(t)&&l(t=t.toString()),{value:t,type:e,index:i}})}})).sort(function(e,t){for(var n=0,i=r.length;n<i;n++){var a=s(e.predicateValues[n],t.predicateValues[n]);if(a)return a*r[n].descending*o}return(s(e.tieBreaker,t.tieBreaker)||u(e.tieBreaker,t.tieBreaker))*o}),e.map(function(e){return e.value});throw O("orderBy")("notarray",e)}}function Fn(e){return(e=we(e)?{link:e}:e).restrict=e.restrict||"AC",T(e)}function Nn(e,t,n,i,a){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=a(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$valid=this.$pristine=!0,this.$submitted=this.$invalid=!1,this.$$parentForm=cr,this.$$element=e,this.$$animate=i,jn(this)}function jn(e){e.$$classCache={},e.$$classCache[Vr]=!(e.$$classCache[jr]=e.$$element.hasClass(jr))}function Vn(e){function i(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function a(e,t,n){t=t?"-"+je(t,"-"):"",i(e,jr+t,!0===n),i(e,Vr+t,!1===n)}
1var r=e.set,o=e.unset;e.clazz.prototype.$setValidity=function(e,t,n){_e(t)?(this.$pending||(this.$pending={}),r(this.$pending,e,n)):(this.$pending&&o(this.$pending,e,n),Bn(this.$pending)&&(this.$pending=void 0)),(Re(t)?t?(o(this.$error,e,n),r):(r(this.$error,e,n),o):(o(this.$error,e,n),o))(this.$$success,e,n),this.$pending?(i(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(i(this,"ng-pending",!1),this.$valid=Bn(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),a(this,e,t=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,t,this)}}function Bn(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function Un(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function Wn(e,n,i,a,t,r){var o,s=Ae(n[0].type);t.android||(o=!1,n.on("compositionstart",function(){o=!0}),n.on("compositionupdate",function(e){!_e(e.data)&&""!==e.data||(o=!1)}),n.on("compositionend",function(){o=!1,c()}));var l,u,c=function(e){var t;l&&(r.defer.cancel(l),l=null),!o&&(t=n.val(),e=e&&e.type,"password"===s||i.ngTrim&&"false"===i.ngTrim||(t=Oe(t)),a.$viewValue!==t||""===t&&a.$$hasNativeValidators)&&a.$setViewValue(t,e)};t.hasEvent("input")?n.on("input",c):(u=function(e,t,n){l=l||r.defer(function(){l=null,t&&t.value===n||c(e)})},n.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||u(e,this,this.value)}),t.hasEvent("paste")&&n.on("paste cut drop",u)),n.on("change",c),kr[s]&&a.$$hasNativeValidators&&s===i.type&&n.on("keydown wheel mousedown",function(e){var t,n,i;l||(t=this.validity,n=t.badInput,i=t.typeMismatch,l=r.defer(function(){l=null,t.badInput===n&&t.typeMismatch===i||c(e)}))}),a.$render=function(){var e=a.$isEmpty(a.$viewValue)?"":a.$viewValue;n.val()!==e&&n.val(e)}}function Yn(i,a){return function(e,t){var n;if(w(e))return e;if(be(e)){if('"'===e.charAt(0)&&'"'===e.charAt(e.length-1)&&(e=e.substring(1,e.length-1)),hr.test(e))return new Date(e);if(i.lastIndex=0,e=i.exec(e))return e.shift(),n=t?{yyyy:t.getFullYear(),MM:t.getMonth()+1,dd:t.getDate(),HH:t.getHours(),mm:t.getMinutes(),ss:t.getSeconds(),sss:t.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},ge(e,function(e,t){t<a.length&&(n[a[t]]=+e)}),e=new Date(n.yyyy,n.MM-1,n.dd,n.HH,n.mm,n.ss||0,1e3*n.sss||0),n.yyyy<100&&e.setFullYear(n.yyyy),e}return NaN}}function zn(_,y,b,k){return function(e,t,n,i,a,r,o,s){function l(e){return e&&(!e.getTime||e.getTime()===e.getTime())}function u(e){return E(e)&&!w(e)?c(e)||void 0:e}function c(e,t){var n=i.$options.getOption("timezone"),e=(f&&f!==n&&(t=V(t,j(f))),b(e,t));return e=!isNaN(e)&&n?B(e,n):e}Gn(0,t,0,i,_),Wn(0,t,n,i,a,r);var d,f,h,p,m,g,v="time"===_||"datetimelocal"===_;i.$parsers.push(function(e){return i.$isEmpty(e)?null:y.test(e)?c(e,d):void(i.$$parserName=_)}),i.$formatters.push(function(e){if(e&&!w(e))throw Wr("datefmt",e);var t,n;return l(e)?(d=e,(t=i.$options.getOption("timezone"))&&(d=B(d,f=t,!0)),n=k,v&&be(i.$options.getOption("timeSecondsFormat"))&&(n=k.replace("ss.sss",i.$options.getOption("timeSecondsFormat")).replace(/:$/,"")),e=o("date")(e,n,t),v&&i.$options.getOption("timeStripZeroSeconds")?e.replace(/(?::00)?(?:\.000)?$/,""):e):(f=d=null,"")}),(E(n.min)||n.ngMin)&&(h=n.min||s(n.ngMin)(e),p=u(h),i.$validators.min=function(e){return!l(e)||_e(p)||b(e)>=p},n.$observe("min",function(e){e!==h&&(p=u(e),h=e,i.$validate())})),(E(n.max)||n.ngMax)&&(m=n.max||s(n.ngMax)(e),g=u(m),i.$validators.max=function(e){return!l(e)||_e(g)||b(e)<=g},n.$observe("max",function(e){e!==m&&(g=u(e),m=e,i.$validate())}))}}function Gn(e,n,t,i,a){(i.$$hasNativeValidators=ye(n[0].validity))&&i.$parsers.push(function(e){var t=n.prop("validity")||{};if(!t.badInput&&!t.typeMismatch)return e;i.$$parserName=a})}function qn(t){t.$parsers.push(function(e){return t.$isEmpty(e)?null:gr.test(e)?parseFloat(e):void(t.$$parserName="number")}),t.$formatters.push(function(e){if(!t.$isEmpty(e)){if(!v(e))throw Wr("numfmt",e);e=e.toString()}return e})}function p(e){return E(e)&&!v(e)&&(e=parseFloat(e)),L(e)?void 0:e}function Xn(e){var t=e.toString(),n=t.indexOf(".");return-1===n?-1<e&&e<1&&(e=/e-(\d+)$/.exec(t))?Number(e[1]):0:t.length-n-1}function Kn(e,t,n){var i,a,r,o=(0|(e=Number(e)))!==e,s=(0|t)!==t,l=(0|n)!==n;return(o||s||l)&&(r=o?Xn(e):0,i=s?Xn(t):0,a=l?Xn(n):0,r=Math.max(r,
1i,a),e*=r=Math.pow(10,r),t*=r,n*=r,o&&(e=Math.round(e)),s&&(t=Math.round(t)),l)&&(n=Math.round(n)),0==(e-t)%n}function Zn(e,t,n,i,a){if(E(i)){if((e=e(i)).constant)return e(t);throw Wr("constexpr",n,i)}return a}function Jn(l,u){function c(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[],i=0;e:for(;i<e.length;i++){for(var a=e[i],r=0;r<t.length;r++)if(a===t[r])continue e;n.push(a)}return n}function d(t){var e;return t&&(ke(e=t)?e=t.map(d).join(" "):ye(t)?e=Object.keys(t).filter(function(e){return t[e]}).join(" "):be(t)||(e=t+""),e)}var f;return l="ngClass"+l,["$parse",function(n){return{restrict:"AC",link:function(e,t,a){function r(e,t){var n=[];return ge(e,function(e){(0<t||i[e])&&(i[e]=(i[e]||0)+t,i[e]===+(0<t))&&n.push(e)}),n.join(" ")}var o,i=t.data("$classCounts"),s=!0;i||(i=Ce(),t.data("$classCounts",i)),"ngClass"!==l&&(f=f||n("$index",function(e){return 1&e}),e.$watch(f,function(e){var t;e===u?(t=r((t=o)&&t.split(" "),1),a.$addClass(t)):(t=r((t=o)&&t.split(" "),-1),a.$removeClass(t)),s=e})),e.$watch(n(a[l],d),function(e){var t,n,i;s===u&&(n=c(i=o&&o.split(" "),t=e&&e.split(" ")),i=c(t,i),n=r(n,-1),i=r(i,1),a.$addClass(i),a.$removeClass(n)),o=e})}}}]}function Qn(n,a,r,o,s,l){return{restrict:"A",compile:function(e,t){var i=n(t[o]);return function(n,e){e.on(s,function(e){function t(){i(n,{$event:e})}if(a.$$phase)if(l)n.$evalAsync(t);else try{t()}catch(e){r(e)}else n.$apply(t)})}}}}function ei(e,t,n,i,a,r,o,s,l){var u;this.$modelValue=this.$viewValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=l(n.name||"",!1)(e),this.$$parentForm=cr,this.$options=da,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=a(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=i,this.$$animate=r,this.$$timeout=o,this.$$parse=a,this.$$q=s,this.$$exceptionHandler=t,jn(this),(u=this).$$scope.$watch(function(e){return(e=u.$$ngModelGet(e))===u.$modelValue||u.$modelValue!=u.$modelValue&&e!=e||u.$$setModelValue(e),e})}function ti(e){this.$$options=e}function ni(n,e){ge(e,function(e,t){E(n[t])||(n[t]=e)})}function ii(e,t){e.prop("selected",t),e.attr("selected",t)}function ai(e,t,n){if(e){if((e=be(e)?new RegExp("^"+e+"$"):e).test)return e;throw O("ngPattern")("noregexp",t,e,Ne(n))}}function ri(e){return e=g(e),L(e)?-1:e}function oi(){if(E(oi.name_))return oi.name_;for(var e,t,n,i=Ci.length,a=0;a<i;++a)if(t=Ci[a],e=me.document.querySelector("["+t.replace(":","\\:")+"jq]")){n=e.getAttribute(t+"jq");break}return oi.name_=n}var Ee,si,li,ui,ci={objectMaxDepth:5,urlErrorParamsEnabled:!0},di=/^\/(.+)\/([a-z]*)$/,fi=Object.prototype.hasOwnProperty,Ae=function(e){return be(e)?e.toLowerCase():e},hi=function(e){return be(e)?e.toUpperCase():e},pi=[].slice,mi=[].splice,gi=[].push,_=Object.prototype.toString,vi=Object.getPrototypeOf,_i=O("ng"),b=me.angular||(me.angular={}),yi=0,bi=me.document.documentMode,L=Number.isNaN||function(e){return e!=e},ki=(C.$inject=[],Ie.$inject=[],/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/),Oe=function(e){return be(e)?e.trim():e},wi=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Si=function e(){if(!E(e.rules)){var t=me.document.querySelector("[ng-csp]")||me.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");e.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else{t=e;try{new Function(""),n=!1}catch(e){n=!0}t.rules={noUnsafeEval:n,noInlineStyle:!1}}}return e.rules},xi=/:/g,Ci=["ng-","data-ng-","ng:","x-ng-"],Ti=(li=me.document,!(Ai=li.currentScript)||(Ai instanceof me.HTMLScriptElement||Ai instanceof me.SVGScriptElement)&&[(Ai=Ai.attributes).getNamedItem("src"),Ai.getNamedItem("href"),Ai.getNamedItem("xlink:href")].every(function(e){if(!e)return!0;
1if(!e.value)return!1;var t=li.createElement("a");if(t.href=e.value,li.location.origin===t.origin)return!0;switch(t.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})),Ei=/[A-Z]/g,Ai=!1,Oi=3,Mi={full:"1.8.3",major:1,minor:8,dot:3,codeName:"ultimate-farewell"},Li=(l.expando="ng339",l.cache={}),Ii=1,Di=(l._data=function(e){return this.cache[e[this.expando]]||{}},/-([a-z])/g),Pi=/^-ms-/,Ri={mouseleave:"mouseout",mouseenter:"mouseover"},$i=O("jqLite"),Hi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Fi=/<|&#?\w+;/,Ni=/<([\w:-]+)/,ji=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Vi={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]},Bi=(Vi.tbody=Vi.tfoot=Vi.colgroup=Vi.caption=Vi.thead,Vi.th=Vi.td,{option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]});for(ui in Vi){var Ui=Vi[ui],Wi=Ui.slice().reverse();Bi[ui]=[Wi.length,"<"+Wi.join("><")+">","</"+Ui.join("></")+">"]}Bi.optgroup=Bi.option;var Yi=me.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},zi=l.prototype={ready:qe,toString:function(){var t=[];return ge(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(e){return Ee(0<=e?this[e]:this[this.length+e])},length:0,push:gi,sort:[].sort,splice:[].splice},Gi={},qi=(ge("multiple selected checked disabled readOnly required open".split(" "),function(e){Gi[Ae(e)]=e}),{}),Xi=(ge("input select option textarea button form details".split(" "),function(e){qi[e]=!0}),{ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"});function Ki(e,t){var n;if(_e(t))return 1===(n=e.nodeType)||n===Oi?e.textContent:"";e.textContent=t}function Zi(){this.$get=C}function Ji(){var l=new ga,u=[];this.$get=["$$AnimateRunner","$rootScope",function(a,r){function o(t,e,n){var i=!1;return e&&ge(e=be(e)?e.split(" "):ke(e)?e:[],function(e){e&&(i=!0,t[e]=n)}),i}function s(){ge(u,function(e){var n,i,a,t,r,o=l.get(e);o&&(be(t=e.attr("class"))&&(t=t.split(" ")),r=Ce(),ge(t,function(e){e.length&&(r[e]=!0)}),n=r,a=i="",ge(o,function(e,t){e!==!!n[t]&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),ge(e,function(e){i&&pe(e,i),a&&he(e,a)}),l.delete(e))}),u.length=0}return{enabled:C,on:C,off:C,pin:C,push:function(e,t,n,i){return i&&i(),(n=n||{}).from&&e.css(n.from),n.to&&e.css(n.to),(n.addClass||n.removeClass)&&(t=n.addClass,i=n.removeClass,t=o(n=l.get(e)||{},t,!0),i=o(n,i,!1),t||i)&&(l.set(e,n),u.push(e),1===u.length)&&r.$$postDigest(s),(e=new a).complete(),e}}}]}function Qi(){this.$get=["$$rAF",function(t){function n(e){i.push(e),1<i.length||t(function(){for(var e=0;e<i.length;e++)i[e]();i=[]})}var i=[];return function(){var t=!1;return n(function(){t=!0}),function(e){t?e():n(e)}}}]}function ea(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(t,e,n,i,a){function r(e){this.setHost(e);var t=n();this._doneCallbacks=[],this._tick=function(e){i()?a(e,0,!1):t(e)},this._state=0}return r.chain=function(e,n){var i=0;!function t(){i===e.length?n(!0):e[i](function(e){!1===e?n(!1):(i++,t())})}()},r.all=function(t,n){function i(e){r=r&&e,++a===t.length&&n(r)}var a=0,r=!0;ge(t,function(e){e.done(i)})},r.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:C,getPromise:function(){var e;return this.promise||((e=this).promise=t(function(t,n){e.done(function(e){(!1===e?n:t)()})})),this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(t){2!==this._state&&(ge(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},r}]}function ta(){this.$get=["$$rAF","$q","$$AnimateRunner",function(o,e,s){return function(e,t){function n(){return o(function(){i.addClass&&(e.addClass(i.addClass),i.addClass=null),i.removeClass&&(e.removeClass(i.removeClass),i.removeClass=null),i.to&&(e.css(i.to),i.to=null),a||r.complete(),a=!0}),r}var i=t||{};(i=i.$$prepared?i:R(i)).cleanupStyles&&(i.from=i.to=null),i.from&&(e.css(i.from),i.from=null);var a,r=new s;return{start:n,end:n}}}]}function na(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof Ee&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]}function ia(){this.$get=function(){function i(e){function t(e){t.data=e,t.called=!0}return t.id=e,t}var a=b.callbacks,r={};return{createCallback:function(e){var t="angular.callbacks."+(e="_"+(a.$$counter++).toString(36)),n=i(e);return r[t]=a[e]=n,t},wasCalled:function(e){return r[e].called},getResponse:function(e){return r[e].data},removeCallback:function(e){delete a[r[e].id],delete r[e]}}}}function aa(n){return["$timeout","$parse",function(l,t){function u(e){return""===e?t('this[""]').assign:t(e).assign||C}return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:Nn,compile:function(e,t){e.addClass(Br).addClass(jr);var s=t.name?"name":!(!n||!t.ngForm)&&"ngForm";return{pre:function(t,e,n,i){var a,r=i[0],o=("action"in n||(e[0].addEventListener("submit",a=function(e){t.$apply(function(){r.$commitViewValue(),r.$setSubmitted()}),e.preventDefault()}),e.on("$destroy",function(){l(function(){e[0].removeEventListener("submit",a)},0,!1)})),(i[1]||r.$$parentForm).$addControl(r),s?u(r.$name):C);s&&(o(t,r),n.$observe(s,function(e){r.$name!==e&&(o(t,void 0),r.$$parentForm.$$renameControl(r,e),(o=u(r.$name))(t,r))})),e.on("$destroy",function(){r.$$parentForm.$removeControl(r),o(t,void 0),ve(r,cr)})}}}}}]}function ra(){var a={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(e,t){if("hidden"===Ae(t.type))return{pre:function(e,t,n,i){(e=t[0]).parentNode&&e.parentNode.insertBefore(e,e.nextSibling),Object.defineProperty&&Object.defineProperty(e,"value",a)}}}}}function oa(){function i(e,t,n){var i=E(n)?n:9===bi?"":null;e.prop("value",i),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(e,t){return xr.test(t.ngValue)?function(e,t,n){i(t,n,e=e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){i(t,n,e)})}}}}function sa(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,i){var a=n.ngList||", ",r="false"!==n.ngTrim,o=r?Oe(a):a;i.$parsers.push(function(e){var t;if(!_e(e))return t=[],e&&ge(e.split(o),function(e){e&&t.push(r?Oe(e):e)}),t}),i.$formatters.push(function(e){if(ke(e))return e.join(a)}),i.$isEmpty=function(e){return!e||!e.length}}}}function la(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:da,t=this.$$
1scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}}function ua(){return{restrict:"E",require:["select","?ngModel"],controller:fo,priority:1,link:{pre:function(e,i,t,n){var a,r,o=n[0],s=n[1];s?(o.ngModelCtrl=s,i.on("change",function(){o.removeUnknownOption(),e.$apply(function(){s.$setViewValue(o.readValue())})}),t.multiple&&(o.multiple=!0,o.readValue=function(){var t=[];return ge(i.find("option"),function(e){e.selected&&!e.disabled&&(e=e.value,t.push(e in o.selectValueMap?o.selectValueMap[e]:e))}),t},o.writeValue=function(n){ge(i.find("option"),function(e){var t=!!n&&(-1!==Array.prototype.indexOf.call(n,e.value)||-1!==Array.prototype.indexOf.call(n,o.selectValueMap[e.value]));t!==e.selected&&ii(Ee(e),t)})},r=NaN,e.$watch(function(){r!==s.$viewValue||xe(a,s.$viewValue)||(a=A(s.$viewValue),s.$render()),r=s.$viewValue}),s.$isEmpty=function(e){return!e||0===e.length})):o.registerOption=C},post:function(e,t,n,i){var a,r=i[1];r&&(a=i[0],r.$render=function(){a.writeValue(r.$viewValue)})}}}}ge({data:de,removeData:ue,hasData:function(e){for(var t in Li[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)ue(e[t]),le(e[t])}},function(e,t){l[t]=e}),ge({data:de,inheritedData:Ye,scope:function(e){return Ee.data(e,"$scope")||Ye(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Ee.data(e,"$isolateScope")||Ee.data(e,"$isolateScopeNoTemplate")},controller:We,injector:function(e){return Ye(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:fe,css:function(e,t,n){if(t=ne(t.replace(Pi,"ms-")),!E(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){if((i=e.nodeType)!==Oi&&2!==i&&8!==i&&e.getAttribute){var i=Ae(t),a=Gi[i];if(!E(n))return e=e.getAttribute(t),null===(e=a&&null!==e?i:e)?void 0:e;null===n||!1===n&&a?e.removeAttribute(t):e.setAttribute(t,a?i:n)}},prop:function(e,t,n){if(!E(n))return e[t];e[t]=n},text:(Ki.$dv="",Ki),val:function(e,t){var n;if(_e(t))return e.multiple&&"select"===Se(e)?(n=[],ge(e.options,function(e){e.selected&&n.push(e.value||e.text)}),n):e.value;e.value=t},html:function(e,t){if(_e(t))return e.innerHTML;re(e,!0),e.innerHTML=t},empty:ze},function(o,e){l.prototype[e]=function(e,t){var n,i=this.length;if(o!==ze&&_e(2===o.length&&o!==fe&&o!==We?e:t)){if(ye(e)){for(r=0;r<i;r++)if(o===de)o(this[r],e);else for(n in e)o(this[r],n,e[n]);return this}for(i=_e(r=o.$dv)?Math.min(i,1):i,n=0;n<i;n++)var a=o(this[n],e,t),r=r?r+a:a;return r}for(r=0;r<i;r++)o(this[r],e,t);return this}}),ge({removeData:ue,on:function(a,e,r,t){if(E(t))throw $i("onargs");if(ie(a))for(var o=(t=ce(a,!0)).events,s=(s=t.handle)||(t.handle=Ke(a,o)),n=(t=0<=e.indexOf(" ")?e.split(" "):[e]).length,i=function(e,t,n){var i;(i=o[e])||((i=o[e]=[]).specialHandlerWrapper=t,"$destroy"===e)||n||a.addEventListener(e,s),i.push(r)};n--;)e=t[n],Ri[e]?(i(Ri[e],Je),i(e,void 0,!0)):i(e)},off:le,one:function(t,n,i){(t=Ee(t)).on(n,function e(){t.off(n,i),t.off(n,e)}),t.on(n,i)},replaceWith:function(t,e){var n,i=t.parentNode;re(t),ge(new l(e),function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e})},children:function(e){var t=[];return ge(e.childNodes,function(e){1===e.nodeType&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){if(1===(n=e.nodeType)||11===n)for(var n=0,i=(t=new l(t)).length;n<i;n++)e.appendChild(t[n])},prepend:function(t,e){var n;1===t.nodeType&&(n=t.firstChild,ge(new l(e),function(e){t.insertBefore(e,n)}))},wrap:function(e,t){var t=Ee(t).eq(0).clone()[0],n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)},remove:Ge,detach:function(e){Ge(e,!0)},after:function(e,t){var n=e,i=e.parentNode;if(i)for(var a=0,r=(t=new l(t)).length;a<r;a++){var o=t[a];i.insertBefore(o,n.nextSibling),n=o}},addClass:pe,removeClass:he,toggleClass:function(n,e,i){e&&ge(e.split(" "),function(e){var t=i;((t=_e(i)?!fe(n,e):t)?pe:he)(n,e)})},parent:function(e){return(e=e.parentNode)&&11!==e.nodeType?e:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Be,triggerHandler:function(t,e,n){var i,a,r=e.type||e,o=ce(t);(o=(o=o&&o.events)&&o[r])&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:C,type:r,target:t},e.type&&(i=ve(i,e)),e=A(o),a=n?[i].concat(n):[i],ge(e,function(e){i.isImmediatePropagationStopped()||e.apply(t,a)}))}},function(o,e){l.prototype[e]=function(e,t,n){for(var i,a=0,r=this.length;a<r;
1a++)_e(i)?E(i=o(this[a],e,t,n))&&(i=Ee(i)):Ue(i,o(this[a],e,t,n));return E(i)?i:this}}),l.prototype.bind=l.prototype.on,l.prototype.unbind=l.prototype.off;var ca,da,fa,ha,pa,ma=Object.create(null),ga=(tt.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return L(e)?ma:e},get:function(e){if(e=this._transformKey(e),-1!==(e=this._idx(e)))return this._values[e]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){return e=this._transformKey(e),-1!==(e=this._idx(e))&&(this._keys.splice(e,1),this._values.splice(e,1),this._lastKey=NaN,this._lastIndex=-1,!0)}},tt),va=[function(){this.$get=[function(){return ga}]}],_a=/^([^(]+?)=>/,ya=/^[^(]*\(\s*([^)]*)\)/m,ba=/,/,ka=/^\s*(_?)(\S+?)\1\s*$/,wa=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Sa=O("$injector"),xa=(it.$$annotate=function(e,t,n){var i,a;if("function"==typeof e){if(!(i=e.$inject)){if(i=[],e.length){if(t)throw be(n)&&n||(n=e.name||((a=nt(a=e))?"function("+(a[1]||"").replace(/[\s\r\n]+/," ")+")":"fn")),Sa("strictdi",n);ge((t=nt(e))[1].split(ba),function(e){e.replace(ka,function(e,t,n){i.push(n)})})}e.$inject=i}}else ke(e)?(t=e.length-1,Z(e[t],"fn"),i=e.slice(0,t)):Z(e,"fn",!0);return i},O("$animate")),Ca=["$provide",function(i){var a=this,t=null,n=null;this.$$registeredAnimations=Object.create(null),this.register=function(e,t){if(e&&"."!==e.charAt(0))throw xa("notcsel",e);var n=e+"-animation";a.$$registeredAnimations[e.substr(1)]=n,i.factory(n,t)},this.customFilter=function(e){return n=1===arguments.length?we(e)?e:null:n},this.classNameFilter=function(e){if(1===arguments.length&&(t=e instanceof RegExp?e:null)&&/[(\s|\/)]ng-animate[(\s|\/)]/.test(t.toString()))throw t=null,xa("nongcls","ng-animate");return t},this.$get=["$$animateQueue",function(r){function a(e,t,n){if(n){var i;e:{for(i=0;i<n.length;i++){var a=n[i];if(1===a.nodeType){i=a;break e}}i=void 0}!i||i.parentNode||i.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:r.on,off:r.off,pin:r.pin,enabled:r.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(e,t,n,i){return t=t&&Ee(t),n=n&&Ee(n),a(e,t=t||n.parent(),n),r.push(e,"enter",ot(i))},move:function(e,t,n,i){return t=t&&Ee(t),n=n&&Ee(n),a(e,t=t||n.parent(),n),r.push(e,"move",ot(i))},leave:function(e,t){return r.push(e,"leave",ot(t),function(){e.remove()})},addClass:function(e,t,n){return(n=ot(n)).addClass=rt(n.addclass,t),r.push(e,"addClass",n)},removeClass:function(e,t,n){return(n=ot(n)).removeClass=rt(n.removeClass,t),r.push(e,"removeClass",n)},setClass:function(e,t,n,i){return(i=ot(i)).addClass=rt(i.addClass,t),i.removeClass=rt(i.removeClass,n),r.push(e,"setClass",i)},animate:function(e,t,n,i,a){return(a=ot(a)).from=a.from?ve(a.from,t):t,a.to=a.to?ve(a.to,n):n,a.tempClasses=rt(a.tempClasses,i||"ng-inline-animate"),r.push(e,"animate",a)}}}]}],Me=O("$compile"),Ta=new function(){},Ea=(dt.$inject=["$provide","$$sanitizeUriProvider"],ft.prototype.isFirstChange=function(){return this.previousValue===Ta},/^((?:x|data)[:\-_])/i),Aa=/[:\-_]+(.)/g,Oa=O("$controller"),Ma=/^(\S+)(\s+as\s+([\w$]+))?$/,La="application/json",Ia={"Content-Type":La+";charset=utf-8"},Da=/^\[|^\{(?!\{)/,Pa={"[":/]$/,"{":/}$/},Ra=/^\)]\}',?\n/,$a=O("$http"),Ha=b.$interpolateMinErr=O("$interpolate"),Fa=(Ha.throwNoconcat=function(e){throw Ha("noconcat",e)},Ha.interr=function(e,t){return Ha("interr",e,t.toString())},O("$interval")),Na=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,ja={http:80,https:443,ftp:21},Va=O("$location"),Ba=/^\s*[\\/]{2,}/,Ua={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){for(var n,e=this.$$path,t=this.$$hash,i=(i=this.$$search,n=[],ge(i,function(e,t){ke(e)?ge(e,function(e){n.push(r(t,!0)+(!0===e?"":"="+r(e,!0)))}):n.push(r(t,!0)+(!0===e?"":"="+r(e,!0)))}),n.length?n.join("&"):""),t=t?"#"+Y(t):"",a=(e=e.split("/")).length;a--;)e[a]=Y(e[a].replace(/%2F/g,"/"));this.$$url=e.join("/")+(i?"?"+i:"")+t,this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0}
1,absUrl:jt("$$absUrl"),url:function(e){var t;return _e(e)?this.$$url:(!(t=Na.exec(e))[1]&&""!==e||this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this)},protocol:jt("$$protocol"),host:jt("$$host"),port:jt("$$port"),path:Vt("$$path",function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e}),search:function(n,e){switch(arguments.length){case 0:return this.$$search;case 1:if(be(n)||v(n))n=n.toString(),this.$$search=W(n);else{if(!ye(n))throw Va("isrcharg");ge(n=R(n,{}),function(e,t){null==e&&delete n[t]}),this.$$search=n}break;default:_e(e)||null===e?delete this.$$search[n]:this.$$search[n]=e}return this.$$compose(),this},hash:Vt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}},Wa=(ge([Nt,Ft,Ht],function(t){t.prototype=Object.create(Ua),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t===Ht&&this.$$html5)return this.$$state=_e(e)?null:e,this.$$urlUpdatedByLocation=!0,this;throw Va("nostate")}}),O("$parse")),Ya={}.constructor.prototype.valueOf,za=Ce(),Ga=(ge("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){za[e]=!0}),{n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'}),qa=function(e){this.options=e},f=(qa.prototype={constructor:qa,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t,n,i,a;'"'===(e=this.text.charAt(this.index))||"'"===e?this.readString(e):this.isNumber(e)||"."===e&&this.isNumber(this.peek())?this.readNumber():this.isIdentifierStart(this.peekMultichar())?this.readIdent():this.is(e,"(){}[].,;:?")?(this.tokens.push({index:this.index,text:e}),this.index++):this.isWhitespace(e)?this.index++:(n=(t=e+this.peek())+this.peek(2),i=za[t],a=za[n],za[e]||i||a?(this.tokens.push({index:this.index,text:e=a?n:i?t:e,operator:!0}),this.index+=e.length):this.throwError("Unexpected next character ",this.index,this.index+1))}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){return this.index+(e=e||1)<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||"Â "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e,t,n=this.text.charAt(this.index),i=this.peek();return i&&(e=n.charCodeAt(0),t=i.charCodeAt(0),55296<=e)&&e<=56319&&56320<=t&&t<=57343?n+i:n},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){throw n=n||this.index,t=E(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n,Wa("lexerr",e,t,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Ae(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var i=this.peek();if("e"===n&&this.isExpOperator(i))e+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",i=e,a=!1;this.index<this.text.length;){var r=this.text.charAt(this.index),i=i+r;if(a)"u"===r?((a=this.text.substring(this.index+1,this.index+5)).match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))):n+=Ga[r]||r,a=!1;else if("\\"===r)a=!0;else{if(r===e)return this.index++,void this.tokens.push({index:t,text:i,constant:!0,value:n});n+=r}this.index++}this.throwError("Unterminated quote",t)}},function(e,t){this.lexer=e,this.options=t}),Xa=(f.Program="Program",f.ExpressionStatement="ExpressionStatement",f.AssignmentExpression="AssignmentExpression",f.ConditionalExpression="ConditionalExpression",f.LogicalExpression="LogicalExpression",f.BinaryExpression="BinaryExpression",f.UnaryExpression="UnaryExpression",f.CallExpression="CallExpression",f.Member
1Expression="MemberExpression",f.Identifier="Identifier",f.Literal="Literal",f.ArrayExpression="ArrayExpression",f.Property="Property",f.ObjectExpression="ObjectExpression",f.ThisExpression="ThisExpression",f.LocalsExpression="LocalsExpression",f.NGValueParameter="NGValueParameter",f.prototype={ast:function(e){return this.text=e,this.tokens=this.lexer.lex(e),e=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var e=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:f.Program,body:e}},expressionStatement:function(){return{type:f.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!qt(e))throw Wa("lval");e={type:f.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:f.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:f.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:f.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:f.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:f.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:f.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:f.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:f.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=R(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:f.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:f.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:f.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:f.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){e=[e];for(var t={type:f.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return t},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)for(;e.push(this.filterChain()),this.expect(","););return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:f.Identifier,name:e.text}},constant:function(){return{type:f.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)for(;!this.peek("]")&&(e.push(this.expression()),this.expect(",")););return this.consume("]"),{type:f.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)for(;!this.peek("}")&&(e={type:f.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e),this.expect(",")););return this.consume("}"),{type:f.ObjectExpression,properties:t}},throwError:function(e,t){throw Wa("syntax",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw Wa("ueoe",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Wa("ueoe",this.text);return this.tokens[0]},peek:function(e,t,n,i){return this.peekAhead(0,e,t,n,i)},peekAhead:function(e,t,n,i,a){if(this.tokens.length>e){var r=(e=this.tokens[e]).text;if(r===t||r===n||r===i||r===a||!(t||n||i||a))return e}return!1},expect:function(e,t,n,i){return!!(e=this.peek(e,t,n,i))&&(this.tokens.shift(),e)},selfReferential:{this:{type:f.ThisExpression},$locals:{type:f.LocalsExpression}}},2),Ka=(Kt.prototype={compile:function(e){var t,a=this,n=(this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},s(e,a.$filter),"");return this.stage="assign",(t=Xt(e))&&(this.state.computing="assign",n=this.nextId(),this.recurse(t,n),this.return_(n),n="fn.assign="+this.generateFunction("assign","s,v,l")),t=Gt(e.body),a.stage="inputs",ge(t,function(e,t){var n="fn"+t,i=(a.state[n]={vars:[],body:[],own:{}},a.state.computing=n,a.nextId());a.recurse(e,i),a.return_(i),a.state.inputs.push({name:n,isPure:e.isPure}),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(e),e='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+n+this.watchFns()+"return fn;",e=new Function("$filter","getStringValue","ifDefined","plus",e)(this.$filter,Wt,Yt,zt),this.state=this.stage=void 0,e},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return ge(e,function(e){t.push("var "+e.name+"="+n.generateFunction(e.name,"s")),e.isPure&&t.push(e.name,".isPure="+JSON.stringify(e.isPure)+";")}),e.length&&t.push("fn.inputs=["+e.map(function(e){return e.name}).join(",")+"];"),t.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var n=[],i=this;return ge(this.state.filters,function(e,t){n.push(e+"=$filter("+i.escape(t)+")")}),n.length?"var "+n.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(n,t,e,i,a,r){var o,s,l,u,c,d=this;if(i=i||C,!r&&E(n.watchId))t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.computedMember("i",n.watchId)),this.lazyRecurse(n,t,e,i,a,!0));else switch(n.type){case f.Program:ge(n.body,function(e,t){d.recurse(e.expression,void 0,void 0,function(e){s=e}),t!==n.body.length-1?d.current().body.push(s,";"):d.return_(s)});break;case f.Literal:u=this.escape(n.value),this.assign(t,u),i(t||u);break;case f.UnaryExpression:this.recurse(n.argument,void 0,void 0,function(e){s=e}),u=n.operator+"("+this.ifDefined(s,0)+")",this.assign(t,u),i(u);break;case f.BinaryExpression:this.recurse(n.left,void 0,void 0,function(e){o=e}),this.recurse(n.right,void 0,void 0,function(e){s=e}),u="+"===n.operator?this.plus(o,s):"-"===n.operator?this.ifDefined(o,0)+n.operator+this.ifDefined(s,0):"("+o+")"+n.operator+"("+s+")",this.assign(t,u),i(u);break;case f.LogicalExpression:t=t||this.nextId(),d.recurse(n.left,t),d.if_("&&"===n.operator?t:d.not(t),d.lazyRecurse(n.right,t)),i(t);break;case f.ConditionalExpression:t=t||this.nextId(),d.recurse(n.test,t),d.if_(t,d.lazyRecurse(n.alternate,t),d.lazyRecurse(n.consequent,t)),i(t);break;case f.Identifier:t=t||this.nextId(),e&&(e.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),e.computed=!1,e.name=n.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",n.name)),function(){d.if_("inputs"===d.stage||"s",function(){a&&1!==a&&d.if_(d.isNull(d.nonComputedMember("s",n.name)),d.lazyAssign(d.nonComputedMember("s",n.name),"{}")),d.assign(t,d.nonComputedMember("s",n.name))})},t&&d.lazyAssign(t,d.nonComputedMember("l",n.name))),i(t);break;
1case f.MemberExpression:o=e&&(e.context=this.nextId())||this.nextId(),t=t||this.nextId(),d.recurse(n.object,o,void 0,function(){d.if_(d.notNull(o),function(){n.computed?(s=d.nextId(),d.recurse(n.property,s),d.getStringValue(s),a&&1!==a&&d.if_(d.not(d.computedMember(o,s)),d.lazyAssign(d.computedMember(o,s),"{}")),u=d.computedMember(o,s),d.assign(t,u),e&&(e.computed=!0,e.name=s)):(a&&1!==a&&d.if_(d.isNull(d.nonComputedMember(o,n.property.name)),d.lazyAssign(d.nonComputedMember(o,n.property.name),"{}")),u=d.nonComputedMember(o,n.property.name),d.assign(t,u),e&&(e.computed=!1,e.name=n.property.name))},function(){d.assign(t,"undefined")}),i(t)},!!a);break;case f.CallExpression:t=t||this.nextId(),n.filter?(s=d.filter(n.callee.name),l=[],ge(n.arguments,function(e){var t=d.nextId();d.recurse(e,t),l.push(t)}),u=s+"("+l.join(",")+")",d.assign(t,u),i(t)):(s=d.nextId(),o={},l=[],d.recurse(n.callee,s,o,function(){d.if_(d.notNull(s),function(){ge(n.arguments,function(e){d.recurse(e,n.constant?void 0:d.nextId(),void 0,function(e){l.push(e)})}),u=o.name?d.member(o.context,o.name,o.computed)+"("+l.join(",")+")":s+"("+l.join(",")+")",d.assign(t,u)},function(){d.assign(t,"undefined")}),i(t)}));break;case f.AssignmentExpression:s=this.nextId(),o={},this.recurse(n.left,void 0,o,function(){d.if_(d.notNull(o.context),function(){d.recurse(n.right,s),u=d.member(o.context,o.name,o.computed)+n.operator+s,d.assign(t,u),i(t||u)})},1);break;case f.ArrayExpression:l=[],ge(n.elements,function(e){d.recurse(e,n.constant?void 0:d.nextId(),void 0,function(e){l.push(e)})}),u="["+l.join(",")+"]",this.assign(t,u),i(t||u);break;case f.ObjectExpression:c=!(l=[]),ge(n.properties,function(e){e.computed&&(c=!0)}),c?(t=t||this.nextId(),this.assign(t,"{}"),ge(n.properties,function(e){e.computed?(o=d.nextId(),d.recurse(e.key,o)):o=e.key.type===f.Identifier?e.key.name:""+e.key.value,s=d.nextId(),d.recurse(e.value,s),d.assign(d.member(t,o,e.computed),s)})):(ge(n.properties,function(t){d.recurse(t.value,n.constant?void 0:d.nextId(),void 0,function(e){l.push(d.escape(t.key.type===f.Identifier?t.key.name:""+t.key.value)+":"+e)})}),u="{"+l.join(",")+"}",this.assign(t,u)),i(t||u);break;case f.ThisExpression:this.assign(t,"s"),i(t||"s");break;case f.LocalsExpression:this.assign(t,"l"),i(t||"l");break;case f.NGValueParameter:this.assign(t,"v"),i(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,i=this.current().own;return i.hasOwnProperty(n)||(i[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),i[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){var i;!0===e?t():((i=this.current().body).push("if(",e,"){"),t(),i.push("}"),n&&(i.push("else{"),n(),i.push("}")))},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,i,a,r){var o=this;return function(){o.recurse(e,t,n,i,a,r)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(be(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(v(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw Wa("esc")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},Zt.prototype={compile:function(e){var t,i,a,r=this,o=(s(e,r.$filter),(t=Xt(e))&&(i=this.recurse(t)),(t=Gt(e.body))&&(a=[],ge(t,function(e,t){var n=r.recurse(e);n.isPure=e.isPure,e.input=n,a.push(n),e.watchId=t})),[]);return ge(e.body,function(e){o.push(r.recurse(e.expression))}),e=0===e.body.length?C:1===e.body.length?o[0]:function(t,n){var i;return ge(o,function(e){i=e(t,n)}),i},i&&(e.assign=function(e,t,n){return i(e,n,t)}
1),a&&(e.inputs=a),e},recurse:function(e,s,t){var r,l,u,n=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case f.Literal:return this.value(e.value,s);case f.UnaryExpression:return l=this.recurse(e.argument),this["unary"+e.operator](l,s);case f.BinaryExpression:case f.LogicalExpression:return r=this.recurse(e.left),l=this.recurse(e.right),this["binary"+e.operator](r,l,s);case f.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),s);case f.Identifier:return n.identifier(e.name,s,t);case f.MemberExpression:return r=this.recurse(e.object,!1,!!t),e.computed||(l=e.property.name),e.computed&&(l=this.recurse(e.property)),e.computed?this.computedMember(r,l,s,t):this.nonComputedMember(r,l,s,t);case f.CallExpression:return u=[],ge(e.arguments,function(e){u.push(n.recurse(e))}),e.filter&&(l=this.$filter(e.callee.name)),e.filter||(l=this.recurse(e.callee,!0)),e.filter?function(e,t,n,i){for(var a=[],r=0;r<u.length;++r)a.push(u[r](e,t,n,i));return e=l.apply(void 0,a,i),s?{context:void 0,name:void 0,value:e}:e}:function(e,t,n,i){var a=l(e,t,n,i);if(null!=a.value){for(var r=[],o=0;o<u.length;++o)r.push(u[o](e,t,n,i));r=a.value.apply(a.context,r)}return s?{value:r}:r};case f.AssignmentExpression:return r=this.recurse(e.left,!0,1),l=this.recurse(e.right),function(e,t,n,i){var a=r(e,t,n,i);return e=l(e,t,n,i),a.context[a.name]=e,s?{value:e}:e};case f.ArrayExpression:return u=[],ge(e.elements,function(e){u.push(n.recurse(e))}),function(e,t,n,i){for(var a=[],r=0;r<u.length;++r)a.push(u[r](e,t,n,i));return s?{value:a}:a};case f.ObjectExpression:return u=[],ge(e.properties,function(e){e.computed?u.push({key:n.recurse(e.key),computed:!0,value:n.recurse(e.value)}):u.push({key:e.key.type===f.Identifier?e.key.name:""+e.key.value,computed:!1,value:n.recurse(e.value)})}),function(e,t,n,i){for(var a={},r=0;r<u.length;++r)u[r].computed?a[u[r].key(e,t,n,i)]=u[r].value(e,t,n,i):a[u[r].key]=u[r].value(e,t,n,i);return s?{value:a}:a};case f.ThisExpression:return function(e){return s?{value:e}:e};case f.LocalsExpression:return function(e,t){return s?{value:t}:t};case f.NGValueParameter:return function(e,t,n){return s?{value:n}:n}}},"unary+":function(a,r){return function(e,t,n,i){return e=E(e=a(e,t,n,i))?+e:0,r?{value:e}:e}},"unary-":function(a,r){return function(e,t,n,i){return e=E(e=a(e,t,n,i))?-e:-0,r?{value:e}:e}},"unary!":function(a,r){return function(e,t,n,i){return e=!a(e,t,n,i),r?{value:e}:e}},"binary+":function(a,r,o){return function(e,t,n,i){t=zt(a(e,t,n,i),e=r(e,t,n,i));return o?{value:t}:t}},"binary-":function(r,o,s){return function(e,t,n,i){var a=r(e,t,n,i);return e=o(e,t,n,i),a=(E(a)?a:0)-(E(e)?e:0),s?{value:a}:a}},"binary*":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)*r(e,t,n,i),o?{value:e}:e}},"binary/":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)/r(e,t,n,i),o?{value:e}:e}},"binary%":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)%r(e,t,n,i),o?{value:e}:e}},"binary===":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)===r(e,t,n,i),o?{value:e}:e}},"binary!==":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)!==r(e,t,n,i),o?{value:e}:e}},"binary==":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)==r(e,t,n,i),o?{value:e}:e}},"binary!=":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)!=r(e,t,n,i),o?{value:e}:e}},"binary<":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)<r(e,t,n,i),o?{value:e}:e}},"binary>":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)>r(e,t,n,i),o?{value:e}:e}},"binary<=":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)<=r(e,t,n,i),o?{value:e}:e}},"binary>=":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)>=r(e,t,n,i),o?{value:e}:e}},"binary&&":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)&&r(e,t,n,i),o?{value:e}:e}},"binary||":function(a,r,o){return function(e,t,n,i){return e=a(e,t,n,i)||r(e,t,n,i),o?{value:e}:e}},"ternary?:":function(a,r,o,s){return function(e,t,n,i){return e=(a(e,t,n,i)?r:
1o)(e,t,n,i),s?{value:e}:e}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(a,r,o){return function(e,t,n,i){return e=t&&a in t?t:e,o&&1!==o&&e&&null==e[a]&&(e[a]={}),t=e?e[a]:void 0,r?{context:e,name:a,value:t}:t}},computedMember:function(s,l,u,c){return function(e,t,n,i){var a,r,o=s(e,t,n,i);return null!=o&&(a=l(e,t,n,i),a+="",c&&1!==c&&o&&!o[a]&&(o[a]={}),r=o[a]),u?{context:o,name:a,value:r}:r}},nonComputedMember:function(a,r,o,s){return function(e,t,n,i){return e=a(e,t,n,i),s&&1!==s&&e&&null==e[r]&&(e[r]={}),t=null!=e?e[r]:void 0,o?{context:e,name:r,value:t}:t}},inputs:function(a,r){return function(e,t,n,i){return i?i[r]:a(e,t,n)}}},Jt.prototype={constructor:Jt,parse:function(e){e=this.getAst(e);var t=this.astCompiler.compile(e.ast),n=e.ast;return t.literal=0===n.body.length||1===n.body.length&&(n.body[0].expression.type===f.Literal||n.body[0].expression.type===f.ArrayExpression||n.body[0].expression.type===f.ObjectExpression),t.constant=e.ast.constant,t.oneTime=e.oneTime,t},getAst:function(e){var t=!1;return":"===(e=e.trim()).charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}},O("$sce")),y={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Za=/_([a-z])/g,Ja=O("$templateRequest"),Qa=O("$timeout"),t=me.document.createElement("a"),er=M(me.location.href),tr=(t.href="http://[::1]","[::1]"===t.hostname),nr=(yn.$inject=["$document"],kn.$inject=["$provide"],"0"),ir=(Cn.$inject=["$locale"],{yyyy:e("FullYear",4,0,!(Tn.$inject=["$locale"]),!0),yy:e("FullYear",2,0,!0,!0),y:e("FullYear",1,0,!1,!0),MMMM:On("Month"),MMM:On("Month",!0),MM:e("Month",2,1),M:e("Month",1,1),LLLL:On("Month",!1,!0),dd:e("Date",2),d:e("Date",1),HH:e("Hours",2),H:e("Hours",1),hh:e("Hours",2,-12),h:e("Hours",1,-12),mm:e("Minutes",2),m:e("Minutes",1),ss:e("Seconds",2),s:e("Seconds",1),sss:e("Milliseconds",3),EEEE:On("Day"),EEE:On("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){return(0<=(e=-1*n)?"+":"")+(An(Math[0<e?"floor":"ceil"](e/60),2)+An(Math.abs(e%60),2))},ww:Ln(2),w:Ln(1),G:In,GG:In,GGG:In,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}}),ar=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,rr=/^-?\d+$/,or=(Dn.$inject=["$locale"],T(Ae)),sr=T(hi),lr=(Hn.$inject=["$parse"],T({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){var n;"a"===t[0].nodeName.toLowerCase()&&(n="[object SVGAnimatedString]"===_.call(t.prop("href"))?"xlink:href":"href",t.on("click",function(e){t.attr(n)||e.preventDefault()}))}}})),ur={},cr=(ge(Gi,function(e,i){function a(e,t,n){e.$watch(n[r],function(e){n.$set(i,!!e)})}var r,t;"multiple"!==e&&(r=Te("ng-"+i),t="checked"===e?function(e,t,n){n.ngModel!==n[r]&&a(e,0,n)}:a,ur[r]=function(){return{restrict:"A",priority:100,link:t}})}),ge(Xi,function(e,i){ur[i]=function(){return{priority:100,link:function(e,t,n){"ngPattern"===i&&"/"===n.ngPattern.charAt(0)&&(t=n.ngPattern.match(di))?n.$set("ngPattern",new RegExp(t[1],t[2])):e.$watch(n[i],function(e){n.$set(i,e)})}}}}),ge(["src","srcset","href"],function(o){var s=Te("ng-"+o);ur[s]=["$sce",function(r){return{priority:99,link:function(e,t,n){var i=o,a=o;"href"===o&&"[object SVGAnimatedString]"===_.call(t.prop("href"))&&(a="xlinkHref",n.$attr[a]="xlink:href",i=null),n.$set(s,r.getTrustedMediaUrl(n[s])),n.$observe(s,function(e){e?(n.$set(a,e),bi&&i&&t.prop(i,n[a])):"href"===o&&n.$set(a,null)})}}}]}),{$addControl:C,$getControls:T([]),$$renameControl:function(e,t){e.$name=t},$removeControl:C,$setValidity:C,$setDirty:C,$setPristine:C,$setSubmitted:C,$$setSubmitted:C}),dr=(Nn.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Nn.prototype={$rollbackViewValue:function(){ge(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){ge(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){J(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return A(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],(this[t]=e).$name=t},$removeControl:function(n){n.$name&&this[n.$name]===n&&delete this[n.$name],ge(this.$pending,function(e,t){this.$setValidity(t,null,n)},this),ge(this.$error,function(e,t){this.$setValidity(t,null,n)}
1,this),ge(this.$$success,function(e,t){this.$setValidity(t,null,n)},this),$e(this.$$controls,n),n.$$parentForm=cr},$setDirty:function(){this.$$animate.removeClass(this.$$element,Br),this.$$animate.addClass(this.$$element,Ur),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Br,Ur+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,ge(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){ge(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==cr;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,ge(this.$$controls,function(e){e.$$setSubmitted&&e.$$setSubmitted()})}},Vn({clazz:Nn,set:function(e,t,n){var i=e[t];i?-1===i.indexOf(n)&&i.push(n):e[t]=[n]},unset:function(e,t,n){var i=e[t];i&&($e(i,n),0===i.length)&&delete e[t]}}),aa()),fr=aa(!0),hr=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,pr=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,mr=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,gr=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,gi=/^(\d{4,})-(\d{2})-(\d{2})$/,vr=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,_r=/^(\d{4,})-W(\d\d)$/,yr=/^(\d{4,})-(\d\d)$/,br=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,kr=Ce(),wr=(ge(["date","datetime-local","month","time","week"],function(e){kr[e]=!0}),{text:function(e,t,n,i,a,r){Wn(0,t,n,i,a,r),Un(i)},date:zn("date",gi,Yn(gi,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":zn("datetimelocal",vr,Yn(vr,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:zn("time",br,Yn(br,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:zn("week",_r,function(e,t){if(w(e))return e;if(be(e)){_r.lastIndex=0;var n,i,a,r,o,s,e=_r.exec(e);if(e)return n=+e[1],s=+e[2],r=a=i=e=0,o=Mn(n),s=7*(s-1),t&&(e=t.getHours(),i=t.getMinutes(),a=t.getSeconds(),r=t.getMilliseconds()),new Date(n,0,o.getDate()+s,e,i,a,r)}return NaN},"yyyy-Www"),month:zn("month",yr,Yn(yr,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,i,a,r,o,s){var l,u,c,d,f,h;Gn(0,t,0,i,"number"),qn(i),Wn(0,t,n,i,a,r),(E(n.min)||n.ngMin)&&(l=n.min||s(n.ngMin)(e),u=p(l),i.$validators.min=function(e,t){return i.$isEmpty(t)||_e(u)||u<=t},n.$observe("min",function(e){e!==l&&(u=p(e),l=e,i.$validate())})),(E(n.max)||n.ngMax)&&(c=n.max||s(n.ngMax)(e),d=p(c),i.$validators.max=function(e,t){return i.$isEmpty(t)||_e(d)||t<=d},n.$observe("max",function(e){e!==c&&(d=p(e),c=e,i.$validate())})),(E(n.step)||n.ngStep)&&(f=n.step||s(n.ngStep)(e),h=p(f),i.$validators.step=function(e,t){return i.$isEmpty(t)||_e(h)||Kn(t,u||0,h)},n.$observe("step",function(e){e!==f&&(h=p(e),f=e,i.$validate())}))},url:function(e,t,n,i,a,r){Wn(0,t,n,i,a,r),Un(i),i.$validators.url=function(e,t){e=e||t;return i.$isEmpty(e)||pr.test(e)}},email:function(e,t,n,i,a,r){Wn(0,t,n,i,a,r),Un(i),i.$validators.email=function(e,t){e=e||t;return i.$isEmpty(e)||mr.test(e)}},radio:function(e,n,i,a){var r=!i.ngTrim||"false"!==Oe(i.ngTrim);_e(i.name)&&n.attr("name",++yi),n.on("change",function(e){var t;n[0].checked&&(t=i.value,r&&(t=Oe(t)),a.$setViewValue(t,e&&e.type))}),a.$render=function(){var e=i.value;r&&(e=Oe(e)),n[0].checked=e===a.$viewValue},i.$observe("value",a.$render)},range:function(e,i,a,n,t,r){function o(e,t){i.attr(e,a[e]);var n=a[e];a.$observe(e,function(e){e!==n&&t(n=e)})}Gn(0,i,0,n,"range"),qn(n),Wn(0,i,a,n,t,r);var s=n.$$hasNativeValidators&&"range"===i[0].type,l=s?0:void 0,u=s?100:void 0,c=s?1:void 0,d=i[0].validity,f=(e=E(a.min),t=E(a.max),r=E(a.step),n.$render);n.$render=s&&E(d.rangeUnderflow)&&E(d.rangeOverflow)?function(){f(),n.$setViewValue(i.val())}:f,e&&(l=p(a.min),n.$validators.min=s?function(){return!0}:function(e,t){return n.$isEmpty(t)||_e(l)||l<=t},o("min",function(e){l=p(e),L(n.$modelValue)||(s?((e=i.val())<l&&(e=l,i.val(e)),n.$setViewValue(e)):n.$validate())})),t&&(u=p(a.max),n.$validators.max=s?function(){return!0}:function(e,t){return n.$isEmpty(t)||_e(u)||t<=u},o("max",function(e){u=p(e),L(n.$modelValue)||(s?(e=i.val(),u<e&&(i.val(u),e=u<l?l:u),n.$setViewValue(e)):n.$validate())})),r&&(c=p(a.step),n.$validators.step=s?function(){return!d.stepMismatch}:function(e,t){return n.$isEmpty(t)||_e(c)||Kn(t,l||0,c)},o("step",function(e){c=p(e),L(n.$modelValue)||(s?n.$viewValue!==i.val()&&n.$setViewValue(i.val()):n.$validate())}))},checkbox:function(e,t,n,i,a,r,o,s){var l=Zn(s,e,"ngTrueValue",n.ngTrueValue,!0),u=Zn(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("change",function(e){i.$setViewValue(t[0].checked,e&&e.type)}),i.$render=function(){t[0].checked=i.$viewValue},i.$isEmpty=function(e){return!1===e},i.$formatters.push(function(e){return xe(e,l)}),i.$parsers.push(function(e){return e?l:u})},hidden:C,button:C,submit:C,reset:C,file:C}),Sr=["$browser","$sniffer","$filter","$parse",function(a,r,o,s){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,t,n,i){i[0]&&(wr[Ae(n.type)]||wr.text)(e,t,n,i[0],r,a,o,s)}}}}],xr=/^(true|false|\d+)$/,Cr=["$compile",function(i){return{restrict:"AC",compile:function(e){return i.$$addBindingClass(e),function(e,t,n){i.$$addBindingInfo(t,n.ngBind),t=t[0],e.$watch(n.ngBind,function(e){t.textContent=ee(e)})}}}}],Tr=["$interpolate","$compile",function(i,a){return{compile:function(e){return a.$$addBindingClass(e),function(e,t,n){e=i(t.attr(n.$attr.ngBindTemplate)),a.$$addBindingInfo(t,e.expressions),t=t[0],n.$observe("ngBindTemplate",function(e){t.textContent=_e(e)?"":e})}}}}],Er=["$sce","$parse","$compile",function(r,n,o){return{restrict:"A",compile:function(e,t){var i=n(t.ngBindHtml),a=n(t.ngBindHtml,function(e){return r.valueOf(e)});return o.$$addBindingClass(e),function(t,n,e){o.$$addBindingInfo(n,e.ngBindHtml),t.$watch(a,function(){var e=i(t);n.html(r.getTrustedHtml(e)||"")})}}}}],Ar=T({restrict:"A",require:"ngModel",link:function(e,t,n,i){i.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Or=Jn("",!0),Mr=Jn("Odd",0),Lr=Jn("Even",1),Ir=Fn({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Dr=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Pr={},Rr={blur:!0,focus:!0},$r=(ge("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(i){var a=Te("ng-"+i);Pr[a]=["$parse","$rootScope","$exceptionHandler",function(e,t,n){return Qn(e,t,n,a,i,Rr[i])}]}),["$animate","$compile",function(l,u){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(e,n,i,t,a){var r,o,s;e.$watch(i.ngIf,function(e){e?o||a(function(e,t){o=t,e[e.length++]=u.$$createComment("end ngIf",i.ngIf),r={clone:e},l.enter(e,n.parent(),n)}):(s&&(s.remove(),s=null),o&&(o.$destroy(),o=null),r&&(s=Q(r.clone),l.leave(s).done(function(e){!1!==e&&(s=null)}),r=null))})}}}]),Hr=["$templateRequest","$anchorScroll","$animate",function(m,g,v){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:b.
1noop,compile:function(e,t){var n=t.ngInclude||t.src,h=t.onload||"",p=t.autoscroll;return function(r,o,e,s,l){function u(){t&&(t.remove(),t=null),c&&(c.$destroy(),c=null),d&&(v.leave(d).done(function(e){!1!==e&&(t=null)}),t=d,d=null)}var c,t,d,f=0;r.$watch(n,function(n){function i(e){!1===e||!E(p)||p&&!r.$eval(p)||g()}var a=++f;n?(m(n,!0).then(function(e){var t;r.$$destroyed||a!==f||(t=r.$new(),s.template=e,e=l(t,function(e){u(),v.enter(e,null,o).done(i)}),d=e,(c=t).$emit("$includeContentLoaded",n),r.$eval(h))},function(){r.$$destroyed||a!==f||(u(),r.$emit("$includeContentError",n))}),r.$emit("$includeContentRequested",n)):(u(),s.template=null)})}}}}],Fr=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(e,t,n,i){_.call(t[0]).match(/SVG/)?(t.empty(),a(ae(i.template,me.document).childNodes)(e,function(e){t.append(e)},{futureParentElement:t})):(t.html(i.template),a(t.contents())(e))}}}],Nr=Fn({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),jr="ng-valid",Vr="ng-invalid",Br="ng-pristine",Ur="ng-dirty",Wr=O("ngModel"),Yr=(ei.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" "),ei.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var n=this.$$parse(this.$$attr.ngModel+"()"),i=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(e){var t=this.$$parsedNgModel(e);return t=we(t)?n(e):t},this.$$ngModelSet=function(e,t){we(this.$$parsedNgModel(e))?i(e,{$$$p:t}):this.$$parsedNgModelAssign(e,t)}}else if(!this.$$parsedNgModel.assign)throw Wr("nonassign",this.$$attr.ngModel,Ne(this.$$element))},$render:C,$isEmpty:function(e){return _e(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Ur),this.$$animate.addClass(this.$$element,Br)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Br),this.$$animate.addClass(this.$$element,Ur),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){var e,t,n,i,a,r;L(this.$modelValue)||(e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,i=this.$modelValue,a=this.$options.getOption("allowInvalid"),(r=this).$$runValidators(t,e,function(e){a||n===e||(r.$modelValue=e?t:void 0,r.$modelValue!==i&&r.$$writeModelToScope())}))},$$runValidators:function(n,i,t){function a(e,t){u===c.$$currentValidationRunId&&c.$setValidity(e,t)}function e(e){u===c.$$currentValidationRunId&&t(e)}this.$$currentValidationRunId++;var r,o,s,l,u=this.$$currentValidationRunId,c=this;l=c.$$parserName,(_e(c.$$parserValid)?(a(l,null),1):(c.$$parserValid||(ge(c.$validators,function(e,t){a(t,null)}),ge(c.$asyncValidators,function(e,t){a(t,null)})),a(l,c.$$parserValid),c.$$parserValid))&&(s=!0,ge(c.$validators,function(e,t){e=Boolean(e(n,i));s=s&&e,a(t,e)}),s||(ge(c.$asyncValidators,function(e,t){a(t,null)}),0))?(r=[],o=!0,ge(c.$asyncValidators,function(e,t){e=e(n,i);if(!e||!we(e.then))throw Wr("nopromise",e);a(t,void 0),r.push(e.then(function(){a(t,!0)},function(){a(t,o=!1)}))}),r.length?c.$$q.all(r).then(function(){e(o)},C):e(!0)):e(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var t=this.$$lastCommittedViewValue,n=this;if(this.$$parserValid=!_e(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var e=0;e<this.$parsers.length;e++)if(_e(t=this.$parsers[e](t))){this.$$parserValid=!1;break}L(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$
1scope));var i=this.$modelValue,a=this.$options.getOption("allowInvalid");this.$$rawModelValue=t,a&&(this.$modelValue=t,n.$modelValue!==i)&&n.$$writeModelToScope(),this.$$runValidators(t,this.$$lastCommittedViewValue,function(e){a||(n.$modelValue=e?t:void 0,n.$modelValue!==i&&n.$$writeModelToScope())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),ge(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce"),n=(v(t[e])?t=t[e]:v(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:v(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce),this);0<t?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,C))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),(this.$$updateEvents=this.$options.getOption("updateOn"))&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},Vn({clazz:ei,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}}),["$rootScope",function(o){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ei,priority:1,compile:function(e){return e.addClass(Br).addClass("ng-untouched").addClass(jr),{pre:function(e,t,n,i){var a=i[0];t=i[1]||a.$$parentForm,(i=i[2])&&(a.$options=i.$options),a.$$initGetterSetters(),t.$addControl(a),n.$observe("name",function(e){a.$name!==e&&a.$$parentForm.$$renameControl(a,e)}),e.$on("$destroy",function(){a.$$parentForm.$removeControl(a)})},post:function(e,t,n,i){function a(){r.$setTouched()}var r=i[0];r.$$setUpdateOnEvents(),t.on("blur",function(){r.$touched||(o.$$phase?e.$evalAsync(a):e.$apply(a))})}}}}}]),zr=/(\s+|^)default(\s+|$)/,Gr=(ti.prototype={getOption:function(e){return this.$$options[e]},createChild:function(n){var i=!1;return ge(n=ve({},n),function(e,t){"$inherit"===e?"*"===t?i=!0:(n[t]=this.$$options[t],"updateOn"===t&&(n.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===t&&(n.updateOnDefault=!1,n[t]=Oe(e.replace(zr,function(){return n.updateOnDefault=!0," "})))},this),i&&(delete n["*"],ni(n,this.$$options)),ni(n,da.$$options),new ti(n)}},da=new ti({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null}),Fn({terminal:!0,priority:1e3})),qr=O("ngOptions"),Xr=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Kr=["$compile","$document","$parse",function(p,m,k){var g=me.document.createElement("option"),v=me.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,i){i[0].registerOption=C},post:function(e,a,t,n){function i(e){var t=(e=d.getOptionFromViewValue(e))&&e.element;return t&&!t.selected&&(t.selected=!0),e}function r(e,t){(e.element=t).disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}var o=n[0],s=n[1],l=t.multiple;n=0;for(var u=a.children(),c=u.length;n<c;n++)if(""===u[n].value){o.hasEmptyOption=!0,o.emptyOption=u.eq(n);break}a.empty(),n=!!o.emptyOption,Ee(g.cloneNode(!1)).val("?");var d,f=function(e,t,u){function c(e,t,n,i,a){this.selectValue=e,this.viewValue=t,this.label=n,this.group=i,this.disabled=a}function d(e){var t;if(!i&&I(e))t=e;else for(var n in t=[],e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n);return t}var n,i,f,h,a,p,m,g,v,_,y,r,b,s=e.match(Xr);if(s)return n=s[5]||s[7],i=s[6],e=/ as /.test(s[0])&&s[1],f=s[9],t=k(s[2]?s[1]:n),h=e&&k(e)||t,a=f&&k(f),p=f?function(e,t){return a(u,t)}:function(e){return et(e)},m=function(e,t){return p(e,b(e,t))},g=k(s[2]||s[1]),v=k(s[3]||""),_=k(s[4]||""),y=k(s[8]),r={},b=i?function(e,t){return r[i]=t,r[n]=e,r}:function(e){return r[n]=e,r},{trackBy:f,getTrackByValue:m,getWatchables:k(y,function(e){for(var t=[],n=d(e=e||[]),i=n.length,a=0;a<i;a++){var r=e[o=e===n?a:n[a]],o=b(r,o),r=p(r,o);t.push(r),(s[2]||s[1])&&(r=g(u,o),t.push(r)),s[4]&&(o=_(u,o),t.push(o))}return t}),getOptions:function(){for(var e=[],t={},n=y(u)||[],i=d(n),a=i.length,r=0;r<a;r++){var o=n===i?r:i[r],s=b(n[o],o),l=h(u,s),l=new c(o=p(l,s),l,g(u,s),v(u,s),_(u,s));e.push(l),t[o]=l}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[m(e)]},getViewValueFromOption:function(e){return f?R(e.viewValue):e.viewValue}}}};throw qr("iexp",e,Ne(t))}(t.ngOptions,a,e),h=m[0].createDocumentFragment();o.generateUnknownOptionValue=function(e){return"?"},l?(o.writeValue=function(e){var t;
1d&&(t=e&&e.map(i)||[],d.items.forEach(function(e){e.element.selected&&-1===Array.prototype.indexOf.call(t,e)&&(e.element.selected=!1)}))},o.readValue=function(){var e=a.val()||[],t=[];return ge(e,function(e){(e=d.selectValueMap[e])&&!e.disabled&&t.push(d.getViewValueFromOption(e))}),t},f.trackBy&&e.$watchCollection(function(){if(ke(s.$viewValue))return s.$viewValue.map(function(e){return f.getTrackByValue(e)})},function(){s.$render()})):(o.writeValue=function(e){var t,n;d&&(t=a[0].options[a[0].selectedIndex],n=d.getOptionFromViewValue(e),t&&t.removeAttribute("selected"),n?(a[0].value!==n.selectValue&&(o.removeUnknownOption(),a[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):o.selectUnknownOrEmptyOption(e))},o.readValue=function(){var e=d.selectValueMap[a.val()];return e&&!e.disabled?(o.unselectEmptyOption(),o.removeUnknownOption(),d.getViewValueFromOption(e)):null},f.trackBy&&e.$watch(function(){return f.getTrackByValue(s.$viewValue)},function(){s.$render()})),n&&(p(o.emptyOption)(e),a.prepend(o.emptyOption),8===o.emptyOption[0].nodeType?(o.hasEmptyOption=!1,o.registerOption=function(e,t){""===t.val()&&(o.hasEmptyOption=!0,o.emptyOption=t,o.emptyOption.removeClass("ng-scope"),s.$render(),t.on("$destroy",function(){var e=o.$isEmptyOptionSelected();o.hasEmptyOption=!1,o.emptyOption=void 0,e&&s.$render()}))}):o.emptyOption.removeClass("ng-scope")),e.$watchCollection(f.getWatchables,function(){var e=d&&o.readValue();if(d)for(var t=d.items.length-1;0<=t;t--){var n=d.items[t];E(n.group)?Ge(n.element.parentNode):Ge(n.element)}d=f.getOptions();var i={};d.items.forEach(function(e){var t,n;E(e.group)?((t=i[e.group])||(t=v.cloneNode(!1),h.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),n=g.cloneNode(!1),t.appendChild(n),r(e,n)):(t=g.cloneNode(!1),h.appendChild(t),r(e,t))}),a[0].appendChild(h),s.$render(),s.$isEmpty(e)||(t=o.readValue(),f.trackBy||l?xe(e,t):e===t)||(s.$setViewValue(t),s.$render())})}}}}],Zr=["$locale","$interpolate","$log",function(p,m,g){var v=/{}/g,_=/^when(Minus)?(.+)$/;return{link:function(i,a,r){function o(e){a.text(e||"")}var s,e=r.count,l=r.$attr.when&&a.attr(r.$attr.when),u=r.offset||0,c=i.$eval(l)||{},d={},t=m.startSymbol(),n=m.endSymbol(),f=t+e+"-"+u+n,h=b.noop;ge(r,function(e,t){var n=_.exec(t);n&&(n=(n[1]?"-":"")+Ae(n[2]),c[n]=a.attr(r.$attr[t]))}),ge(c,function(e,t){d[t]=m(e.replace(v,f))}),i.$watch(e,function(e){var t=parseFloat(e),n=L(t);(t=n||t in c?t:p.pluralCat(t-u))===s||n&&L(s)||(h(),_e(n=d[t])?(null!=e&&g.debug("ngPluralize: no rule defined for '"+t+"' in "+l),h=C,o()):h=i.$watch(n,o),s=t)})}}}],Jr=O("ngRef"),Qr=["$parse",function(t){return{priority:-1,restrict:"A",compile:function(e,a){var r=Te(Se(e)),o=t(a.ngRef),s=o.assign||function(){throw Jr("nonassign",a.ngRef)};return function(e,t,n){var i;if(n.hasOwnProperty("ngRefRead")){if("$element"===n.ngRefRead)i=t;else if(!(i=t.data("$"+n.ngRefRead+"Controller")))throw Jr("noctrl",n.ngRefRead,a.ngRef)}else i=t.data("$"+r+"Controller");s(e,i=i||t),t.on("$destroy",function(){o(e)===i&&s(e,null)})}}}}],eo=["$parse","$animate","$compile",function(o,x,s){function C(e,t,n,i,a,r,o){e[n]=i,a&&(e[a]=r),e.$index=t,e.$first=0===t,e.$last=t===o-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))}function T(e,t,n){return et(n)}function E(e,t){return t}var A=O("ngRepeat");return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,t){var v=t.ngRepeat,_=s.$$createComment("end ngRepeat",v),t=v.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!t)throw A("iexp",v);var n=t[1],i=t[2],y=t[3],a=t[4];if(!(t=n.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw A("iidexp",n);var b,r,k,w=t[3]||t[1],S=t[2];if(!y||/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(y)&&!/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(y))return a&&(b={$id:et},r=o(a),k=function(e,t,n,i){return S&&(b[S]=t),b[w]=n,b.$index=i,r(e,b)}),function(h,p,e,t,m){var g=Ce();h.$watchCollection(i,function(e){var n,t,i,a,r,o,s,l,u,c,d=p[0],f=Ce();if(y&&(h[y]=e),I(e))l=e,t=k||T;else for(c in t=k||E,l=[],e)fi.call(e,c)&&"$"!==c.charAt(0)&&l.push(c);for(a=l.length,c=Array(a),n=0;n<a;n++)if(r=e===l?n:l[n],o=e[r],s=t(h,r,o,n),g[s])u=g[s],delete g[s],f[s]=u,c[n]=u;else{if(f[s])throw ge(c,function(e){e&&e.scope&&(g[e.id]=e)}),A("dupes",v,s,o);c[n]={id:s,scope:void 0,clone:void 0},f[s]=!0}for(i in b&&(b[w]=void 0),g){if(s=Q((u=g[i]).clone),x.leave(s),s[0].parentNode)for(n=0,t=s.length;n<t;n++)s[n].$$NG_REMOVED=!0;u.scope.$destroy()}for(n=0;n<a;n++)if(r=e===l?n:l[n],o=e[r],(u=c[n]).scope){for(i=d;(i=i.nextSibling)&&i.$$NG_REMOVED;);u.clone[0]!==i&&x.move(Q(u.clone),null,d),d=u.clone[u.clone.length-1],C(u.scope,n,w,o,S,r,a)}else m(function(e,t){u.scope=t;t=_.cloneNode(!1);e[e.length++]=t,x.enter(e,null,d),d=t,u.clone=e,f[u.id]=u,C(u.scope,n,w,o,S,r,a)});g=f})};throw A("badident",y)}}}],to=["$animate",function(i){return{restrict:"A",multiElement:!0,link:function(e,t,n){e.$watch(n.ngShow,function(e){i[e?"removeClass":"addClass"](t,"ng-hide",{tempClasse
1s:"ng-hide-animate"})})}}}],no=["$animate",function(i){return{restrict:"A",multiElement:!0,link:function(e,t,n){e.$watch(n.ngHide,function(e){i[e?"addClass":"removeClass"](t,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],io=Fn(function(e,n,t){e.$watchCollection(t.ngStyle,function(e,t){t&&e!==t&&ge(t,function(e,t){n.css(t,"")}),e&&n.css(e)})}),ao=["$animate","$compile",function(u,c){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(e,t,n,a){var r,o=[],s=[],l=[];e.$watch(n.ngSwitch||n.on,function(e){for(var t,n;s.length;)u.cancel(s.pop());for(t=0,n=l.length;t<n;++t){var i=Q(o[t].clone);l[t].$destroy(),(s[t]=u.leave(i)).done(function(t,n){return function(e){!1!==e&&t.splice(n,1)}}(s,t))}o.length=0,l.length=0,(r=a.cases["!"+e]||a.cases["?"])&&ge(r,function(n){n.transclude(function(e,t){l.push(t);t=n.element;e[e.length++]=c.$$createComment("end ngSwitchWhen"),o.push({clone:e}),u.enter(e,t.parent(),t)})})})}}}],ro=Fn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,i,a){ge(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(e,t,n){return n[t-1]!==e}),function(e){i.cases["!"+e]=i.cases["!"+e]||[],i.cases["!"+e].push({transclude:a,element:t})})}}),oo=Fn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,i,a){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:a,element:t})}}),so=O("ngTransclude"),lo=["$compile",function(t){return{restrict:"EAC",compile:function(e){var a=t(e.contents());return e.empty(),function(e,r,t,n,i){function o(){a(e,function(e){r.append(e)})}if(!i)throw so("orphan",Ne(r));t.ngTransclude===t.$attr.ngTransclude&&(t.ngTransclude=""),i(function(e,t){if(n=e.length)e:{for(var n=0,i=e.length;n<i;n++){var a=e[n];if(a.nodeType!==Oi||a.nodeValue.trim()){n=!0;break e}}n=void 0}n?r.append(e):(o(),t.$destroy())},null,t=t.ngTransclude||t.ngTranscludeSlot),t&&!i.isSlotFilled(t)&&o()}}}}],uo=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(e,t){"text/ng-template"===t.type&&n.put(t.id,e[0].text)}}}],co={$setViewValue:C,$render:C},fo=["$element","$scope",function(n,t){function s(){e||(e=!0,t.$$postDigest(function(){e=!1,u.ngModelCtrl.$render()}))}function l(e){a||(a=!0,t.$$postDigest(function(){t.$$destroyed||(a=!1,u.ngModelCtrl.$setViewValue(u.readValue()),e&&u.ngModelCtrl.$render())}))}var u=this,i=new ga,e=(u.selectValueMap={},u.ngModelCtrl=co,u.multiple=!1,u.unknownOption=Ee(me.document.createElement("option")),u.hasEmptyOption=!1,u.emptyOption=void 0,u.renderUnknownOption=function(e){e=u.generateUnknownOptionValue(e),u.unknownOption.val(e),n.prepend(u.unknownOption),ii(u.unknownOption,!0),n.val(e)},u.updateUnknownOption=function(e){e=u.generateUnknownOptionValue(e),u.unknownOption.val(e),ii(u.unknownOption,!0),n.val(e)},u.generateUnknownOptionValue=function(e){return"? "+et(e)+" ?"},u.removeUnknownOption=function(){u.unknownOption.parent()&&u.unknownOption.remove()},u.selectEmptyOption=function(){u.emptyOption&&(n.val(""),ii(u.emptyOption,!0))},u.unselectEmptyOption=function(){u.hasEmptyOption&&ii(u.emptyOption,!1)},t.$on("$destroy",function(){u.renderUnknownOption=C}),u.readValue=function(){var e=(e=n.val())in u.selectValueMap?u.selectValueMap[e]:e;return u.hasOption(e)?e:null},u.writeValue=function(e){var t=n[0].options[n[0].selectedIndex];t&&ii(Ee(t),!1),u.hasOption(e)?(u.removeUnknownOption(),t=et(e),n.val(t in u.selectValueMap?t:e),ii(Ee(n[0].options[n[0].selectedIndex]),!0)):u.selectUnknownOrEmptyOption(e)},u.addOption=function(e,t){8!==t[0].nodeType&&(J(e,'"option value"'),""===e&&(u.hasEmptyOption=!0,u.emptyOption=t),t=i.get(e)||0,i.set(e,t+1),s())},u.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.delete(e),""===e&&(u.hasEmptyOption=!1,u.emptyOption=void 0)):i.set(e,t-1))},u.hasOption=function(e){return!!i.get(e)},u.$hasEmptyOption=function(){return u.hasEmptyOption},u.$isUnknownOptionSelected=function(){return n[0].options[0]===u.unknownOption[0]},u.$isEmptyOptionSelected=function(){return u.hasEmptyOption&&n[0].options[n[0].selectedIndex]===u.emptyOption[0]},!(u.selectUnknownOrEmptyOption=function(e){null==e&&u.emptyOption?(u.removeUnknownOption(),u.selectEmptyOption()):u.unknownOption.parent().length?u.updateUnknownOption(e):u.renderUnknownOption(e)})),a=!1;u.registerOption=function(e,i,a,t,n){var r,o;a.$attr.ngValue?a.$observe("value",function(e){var t,n=i.prop("selected");E(o)&&(u.removeOption(r),delete u.selectValueMap[o],t=!0),o=et(e),r=e,u.selectValueMap[o]=e,u.addOption(e,i),i.attr("value",o),t&&n&&l()}):t?a.$observe("value",function(e){u.readValue();var t,n=i.prop("selected");E(r)&&(u.removeOption(r),t=!0),r=e,u.addOption(e,i),t&&n&&l()}):n?e.$watch(n,function(e,t){a.$set("value",e);var n=i.prop("selected");t!==e&&u.removeOption(t),u.addOption(e,i),t&&n&&l()}):u.addOption(a.value,i),a.$observe("disabled",function(e){("true"===e||e&&i.prop("selected"))&&(u.multiple?l(!0):(u.ngModelCtrl.$setViewValue(null),u.ngModelCtrl.$render()))}),i.on("$destroy",function(){var e=u.readValue(),t=a.value;u.removeOption(t),s(),(u.multiple&&e&&-1!==e.indexOf(t)||e===t)&&l(!0)})}}],ho=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(e,t){var a,r;return E(t.ngValue)||(E(t.value)?a=n(t.value,!0):(r=n(e.text(),!0))||t.$set("value",e.text())),function(e,t,n){var i=t.parent();(i=i.data("$selectController")||i.parent().data("$selectController"))&&i.registerOption(e,t,n,a,r)}}}}],po=["$parse",function(r){return{restrict:"A",require:"?ngModel",link:function(e,t,n,i){var a;i&&(a=n.hasOwnProperty("required")||r(n.ngRequired)(e),n.ngRequired||(n.required=!0),i.$validators.required=function(e,t){return!a||!i.$isEmpty(t)},n.$observe("required",function(e){a!==e&&(a=e,i.$validate())}))}}}],mo=["$parse",function(n){return{restrict:"A",require:"?ngModel",compile:function(e,t){var o,s;return t.ngPattern&&(o=t.ngPattern,s="/"===t.ngPattern.charAt(0)&&di.test(t.ngPattern)?function(){return t.ngPattern}:n(t.ngPattern)),function(e,n,t,i){var a,r;i&&(a=t.pattern,t.ngPattern?a=s(e):o=t.pattern,r=ai(a,o,n),t.$observe("pattern",function(e){var t=r;r=ai(e,o,n),(t&&t.toString())!==(r&&r.toString())&&i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||_e(r)||r.test(t)})}}}}],go=["$parse",function(o){return{restrict:"A",require:"?ngModel",link:function(e,t,n,i){var a,r;i&&(a=n.maxlength||o(n.ngMaxlength)(e),r=ri(a),n.$observe("maxlength",function(e){a!==e&&(r=ri(e),a=e,i.$validate())}),i.$validators.maxlength=function(e,t){return r<0||i.$isEmpty(t)||t.length<=r})}}}],vo=["$parse",function(o){return{restrict:"A",require:"?ngModel",link:function(e,t,n,i){var a,r;i&&(a=n.minlength||o(n.ngMinlength)(e),r=ri(a)||-1,n.$observe("minlength",function(e){a!==e&&(r=ri(e)||-1,a=e,i.$validate())}),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=r})}}}];function _o(e,t,n){return e[t]||(e[t]=n())}me.angular.bootstrap?me.console&&console.log("WARNING: Tried to load AngularJS more than once."):(Ai||(gi=oi(),(vr=_e(gi)?me.jQuery:gi?me[gi]:void 0)&&vr.fn.on?ve((Ee=vr).fn,{scope:zi.scope,isolateScope:zi.isolateScope,controller:zi.c
1ontroller,injector:zi.injector,inheritedData:zi.inheritedData}):Ee=l,pa=Ee.cleanData,Ee.cleanData=function(e){for(var t,n,i=0;null!=(n=e[i]);i++)(t=(Ee._data(n)||{}).events)&&t.$destroy&&Ee(n).triggerHandler("$destroy");pa(e)},b.element=Ee,Ai=!0),ve(br=b,{errorHandlingConfig:o,bootstrap:G,copy:R,extend:ve,merge:c,equals:xe,element:Ee,forEach:ge,injector:it,noop:C,bind:Fe,toJson:F,fromJson:N,identity:Ie,isUndefined:_e,isDefined:E,isString:be,isFunction:we,isObject:ye,isNumber:v,isElement:P,isArray:ke,version:Mi,isDate:w,callbacks:{$$counter:0},getTestability:X,reloadWithDebugInfo:q,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:K,$$minErr:O,$$csp:Si,$$encodeUriSegment:Y,$$encodeUriQuery:r,$$lowercase:Ae,$$stringify:ee,$$uppercase:hi}),br=me,fa=O("$injector"),ha=O("ng"),(br=_o(br,"angular",Object)).$$minErr=br.$$minErr||O,(si=_o(br,"module",function(){var e={};return function(s,l,u){var c={};if("hasOwnProperty"===s)throw ha("badname","module");return l&&e.hasOwnProperty(s)&&(e[s]=null),_o(e,s,function(){function e(e,t,n,i){return i=i||r,function(){return i[n||"push"]([e,t,arguments]),o}}function t(n,i,a){return a=a||r,function(e,t){return t&&we(t)&&(t.$$moduleName=s),a.push([n,i,arguments]),o}}var r,n,i,a,o;if(l)return r=[],a=e("$injector","invoke","push",n=[]),o={_invokeQueue:r,_configBlocks:n,_runBlocks:i=[],info:function(e){if(E(e)){if(ye(e))return c=e,this;throw ha("aobj","value")}return c},requires:l,name:s,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator",n),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),component:t("$compileProvider","component"),config:a,run:function(e){return i.push(e),this}},u&&a(u),o;throw fa("nomod",s)})}}))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:sn}),e.provider("$compile",dt).directive({a:lr,input:Sr,textarea:Sr,form:dr,script:uo,select:ua,option:ho,ngBind:Cr,ngBindHtml:Er,ngBindTemplate:Tr,ngClass:Or,ngClassEven:Lr,ngClassOdd:Mr,ngCloak:Ir,ngController:Dr,ngForm:fr,ngHide:no,ngIf:$r,ngInclude:Hr,ngInit:Nr,ngNonBindable:Gr,ngPluralize:Zr,ngRef:Qr,ngRepeat:eo,ngShow:to,ngStyle:io,ngSwitch:ao,ngSwitchWhen:ro,ngSwitchDefault:oo,ngOptions:Kr,ngTransclude:lo,ngModel:Yr,ngList:sa,ngChange:Ar,pattern:mo,ngPattern:mo,required:po,ngRequired:po,minlength:vo,ngMinlength:vo,maxlength:go,ngMaxlength:go,ngValue:oa,ngModelOptions:la}).directive({ngInclude:Fr,input:ra}).directive(ur).directive(Pr),e.provider({$anchorScroll:at,$animate:Ca,$animateCss:ta,$$animateJs:Zi,$$animateQueue:Ji,$$AnimateRunner:ea,$$animateAsyncRun:Qi,$browser:lt,$cacheFactory:ut,$controller:mt,$document:gt,$$isDocumentHidden:vt,$exceptionHandler:_t,$filter:kn,$$forceReflow:na,$interpolate:Ot,$interval:Mt,$$intervalFactory:Lt,$http:Tt,$httpParamSerializer:bt,$httpParamSerializerJQLike:kt,$httpBackend:At,$xhrFactory:Et,$jsonpCallbacks:ia,$location:Bt,$log:Ut,$parse:en,$rootScope:on,$q:tn,$$q:nn,$sce:cn,$sceDelegate:un,$sniffer:dn,$$taskTrackerFactory:fn,$templateCache:ct,$templateRequest:pn,$$testability:mn,$timeout:gn,$window:_n,$$rAF:rn,$$jqLite:Qe,$$Map:va,$$cookieReader:bn})}]).info({angularVersion:"1.8.3"}),b.module("ngLocale",[],["$provide",function(e){e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var n,i=0|e;return void 0===t&&(t=Math.min((e=e,-1==(n=(e+="").indexOf("."))?0:e.length-n-1),3)),Math.pow(10,t),1==i&&0==t?"one":"other"}})}]),Ee(function(){z(me.document,G)})),window.angular.$$csp().noInlineStyle||window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}'))},{}],398:[function(u,e,t){"use strict";u=function i(a,r,o){function s(n,e){if(!r[n]){if(!a[n]){var t="function"==typeof u&&u;if(!e&&t)return t(n,!0);if(l)return l(n,!0);e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}t=r[n]={exports:{}};a[n][0].call(t.exports,function(e){var t=a[n][1][e];return s(t||e)},t,t.exports,i,a,r,o)}return r[n].exports}for(var l="function"==typeof u&&u,e=0;e<o.length;e++)s(o[e]);return s}({1:[function(e,t,n){var i,a;i=this,a=function(){function t(e,t){if(t.match&&!t.match.test(e))return!1;for(var n,i,a,r,o=0;o<t.dvs.length;o++)if(n=e,i=t.dvs[o],r=a=void 0,a=i.algorithmSteps,n=s.handleStr[a[0]](n),r=s.sum[a[1]](n,i.pesos),r=s.rest[a[2]](r),parseInt(n[i.dvpos])!==s.expectedDV[a[3]](r,n))return!1;return!0}function n(e){return this instanceof n?(this.rules=a[e]||[],this.rule,n.prototype._defineRule=function(e){this.rule=void 0;for(var t=0;t<this.rules.length&&void 0===this.rule;t++){var n=e.replace(/[^\d]/g,""),i=this.rules[t];n.length!==i.chars||i.match&&!i.match.test(e)||(this.rule=i)}return!!this.rule},void(n.prototype.validate=function(e){return!(!e||!this._defineRule(e))&&this.rule.validate(e)})):new n(e)}var e={validate:function(e){var t=[6,5,4,3,2,9,8,7,6,5,4,3,2];if(!(e=e.replace(/[^\d]/g,""))||14!==e.length||/^(0{14}|1{14}|2{14}|3{14}|4{14}|5{14}|6{14}|7{14}|8{14}|9{14})$/.test(e))return!1;e=e.split("");for(var n=0,i=0;n<12;n++)i+=e[n]*t[n+1];if(i=10<=(i=11-i%11)?0:i,parseInt(e[12])!==i)return!1;for(i=n=0;n<=12;n++)i+=e[n]*t[n];return i=10<=(i=11-i%11)?0:i,parseInt(e[13])===i}},i={validate:function(a){function e(e){for(var t=0,n=e-9,i=0;i<9;i++)t+=parseInt(a.charAt(i+n))*(i+1);return t%11%10===parseInt(a.charAt(e))}return!(!(a=a.replace(/[^\d]+/g,""))||11!==a.length||/^(0{11}|1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11})$/.test(a))&&e(9)&&e(10)}},a={},s={handleStr:{onlyNumbers:function(e){return e.replace(/[^\d]/g,"").split("")},mgSpec:function(e){e=e.replace(/[^\d]/g,"");return(e=e.substr(0,3)+"0"+e.substr(3,e.length)).split("")}},sum:{normalSum:function(e,t){for(var n=e,i=0,a=0;a<t.length;a++)i+=parseInt(n[a])*t[a];return i},individualSum:function(e,t){for(var n=e,i=0,a=0;a<t.length;a++){var r=parseInt(n[a])*t[a];i+=r%10+parseInt(r/10)}return i},apSpec:function(e,t){t=this.normalSum(e,t),e=e.join("");return"030000010"<=e&&e<="030170009"?t+5:"030170010"<=e&&e<="030190229"?t+9:t}},rest:{mod11:function(e){return e%11},mod10:function(e){return e%10},mod9:function(e){return e%9}},expectedDV:{minusRestOf11:function(e){return e<2?0:11-e},minusRestOf11v2:function(e){return e<2?11-e-10:11-e},minusRestOf10:function(e){return e<1?0:10-e},mod10:function(e){return e%10},goSpec:function(e,t){t=t.join("");return 1===e?"101031050"<=t&&t<="101199979"?1:0:0===e?0:11-e},apSpec:function(e,t){t=t.join("");return 0===e?"030170010"<=t&&t<="030190229"?1:0:1===e?0:11-e},voidFn:function(e){return e}}};return a.PE=[{chars:9,dvs:[{dvpos:7,pesos:[8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}},{chars:14,pesos:[[1,2,3,4,5,9,8,7,6,5,4,3,2]],dvs:[{dvpos:13,pesos:[5,4,3,2,1,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11v2"]}],validate:function(e){return t(e,this)}}],a.RS=[{chars:10,dvs:[{dvpos:9,pesos:[2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.AC=[{chars:13,match:/^01/,dvs:[{dvpos:11,pesos:[4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:12,pesos:[5,4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.MG=[{chars:13,dvs:[{dvpos:12,pesos:[1,2,1,2,1,2,1,2,1,2,1,2],algorithmSteps:["mgSpec","individualSum","mod10","minusRestOf10"]},{dvpos:12,pesos:[3,2,11,10,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.SP=[{chars:12,match:/^[0-9]/,dvs:[{dvpos:8,pesos:[1,3,4,5,6,7,8,10],algorithmSteps:["onlyNumbers","normalSum","mod11","mod10"]},{dvpos:11,pesos:[3,2,10,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","mod10"]}],validate:function(e){return t(e,this)}},{chars:12,match:/^P/i,dvs:[{dvpos:8,pesos:[1,3,4,5,6,7,8,10],algorithmSteps:["onlyNumbers","normalSum","mod11","mod10"]}],validate:function(e){return t(e,this)}}],a.DF=[{chars:13,dvs:[{dvpos:11,pesos:[4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:12,pesos:[5,4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.ES=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.BA=[{chars:8,match:/^[0123458]/,dvs:[{dvpos:7,pesos:[7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod10","minusRestOf10"]},{dvpos:6,pesos:[8,7,6,5,4,3,0,2],algorithmSteps:["onlyNumbers","normalSum","mod10","minusRestOf10"]}],validate:function(e){return t(e,this)}},{chars:8,match:/^[679]/,dvs:[{dvpos:7,pesos:[7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:6,pesos:[8,7,6,5,4,3,0,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}},{chars:9,match:/^[0-9][0123458]/,dvs:[{dvpos:8,pesos:[8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod10","minusRestOf10"]},{dvpos:7,pesos:[9,8,7,6,5,4,3,0,2],algorithmSteps:["onlyNumbers","normalSum","mod10","minusRestOf10"]}],validate:function(e){return t(e,this)}},{chars:9,match:/^[0-9][679]/,dvs:[{dvpos:8,pesos:[8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:7,pesos:[9,8,7,6,5,4,3,0,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.AM=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.RN=[{chars:9,match:/^20/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}},{chars:10,match:/^20/,dvs:[{dvpos:8,pesos:[10,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.RO=[{chars:14,dvs:[{dvpos:13,pesos:[6,5,4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.PR=[{chars:10,dvs:[{dvpos:8,pesos:[3,2,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:9,pesos:[4,3,2,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.SC=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.RJ=[{chars:8,dvs:[{dvpos:7,pesos:[2,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.PA=[{chars:9,match:/^15/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.SE=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.PB=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.CE=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.PI=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.MA=[{chars:9,match:/^12/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.MT=[{chars:11,dvs:[{dvpos:10,pesos:[3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.MS=[{chars:9,match:/^28/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.TO=[{chars:11,match:/^[0-9]{2}((0[123])|(99))/,dvs:[{dvpos:10,pesos:[9,8,0,0,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.AL=[{chars:9,match:/^24[03578]/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],a.RR=[{chars:9,match:/^24/,dvs:[{dvpos:8,pesos:[1,2,3,4,5,6,7,8],algorithmSteps:["onlyNumbers","normalSum","mod9","voidFn"]}],validate:function(e){return t(e,this)}}],a.GO=[{chars:9,match:/^1[015]/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","goSpec"]}],validate:function(e){return t(e,this)}}],a.AP=[{chars:9,match:/^03/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","apSpec","mod11","apSpec"]}],validate:function(e){return t(e,this)}}],{ie:n,cpf:i,cnpj:e}},"function"==typeof define&&define.amd?define([],a):"object"==typeof n?t.exports=a():i.BrV=a()},{}],2:[function(un,cn,e){var t,n;t=this,n=function(){function h(){return ot.apply(null,arguments)}function l(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function $(e){return"[object Object]"===Object.prototype.toString.call(e)}function H(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function F(e,t){for(var n=[],i=0;i<e.length;++i)n.push(t(e[i],i));return n}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}
vendor: 7,198 bytes, line 1
1function o(e,t){for(var n in t)p(t,n)&&(e[n]=t[n]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,i){return Oe(e,t,n,i,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}),e._pf}function N(e){var t,n;return null==e._isValid&&(t=m(e),n=st.call(t.parsedDateParts,function(e){return null!=e}),e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict)&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),e._isValid}function j(e){var t=u(NaN);return null!=e?o(m(t),e):m(t).userInvalidated=!0,t}function r(e){return void 0===e}function V(e,t){var n,i,a;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=m(t)),r(t._locale)||(e._locale=t._locale),0<lt.length)for(n in lt)r(a=t[i=lt[n]])||(e[i]=a);return e}function B(e){V(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===ut&&(ut=!0,h.updateOffset(this),ut=!1)}function s(e){return e instanceof B||null!=e&&null!=e._isAMomentObject}function c(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function d(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?c(e):t}function U(e,t,n){for(var i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0,o=0;o<i;o++)(n&&e[o]!==t[o]||!n&&d(e[o])!==d(t[o]))&&r++;return r+a}function W(e){!1===h.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(e,t){var n=!0;return o(function(){return null!=h.deprecationHandler&&h.deprecationHandler(null,e),n&&(W(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),n=!1),t.apply(this,arguments)},t)}function Y(e,t){null!=h.deprecationHandler&&h.deprecationHandler(e,t),ct[e]||(W(t),ct[e]=!0)}function f(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function z(e,t){var n,i=o({},e);for(n in t)p(t,n)&&($(e[n])&&$(t[n])?(i[n]={},o(i[n],e[n]),o(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)p(e,n)&&!p(t,n)&&$(e[n])&&(i[n]=o({},i[n]));return i}function G(e){null!=e&&this.set(e)}function t(e,t){var n=e.toLowerCase();ft[n]=ft[n+"s"]=ft[t]=e}function g(e){return"string"==typeof e?ft[e]||ft[e.toLowerCase()]:void 0}function q(e){var t,n,i={};for(n in e)p(e,n)&&(t=g(n))&&(i[t]=e[n]);return i}function n(e,t){ht[e]=t}function X(t,n){return function(e){return null!=e?(Z(this,t,e),h.updateOffset(this,n),this):K(this,t)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Z(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function v(e,t,n){var i=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}function i(e,t,n,i){var a="string"==typeof i?function(){return this[i]()}:i;e&&(vt[e]=a),t&&(vt[t[0]]=function(){return v(a.apply(this,arguments),t[1],t[2])}),n&&(vt[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function J(e,t){return e.isValid()?(t=Q(t,e.localeData()),gt[t]=gt[t]||function(i){for(var e,a=i.match(pt),t=0,r=a.length;t<r;t++)vt[a[t]]?a[t]=vt[a[t]]:a[t]=(e=a[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<r;n++)t+=a[n]instanceof Function?a[n].call(e,i):a[n];return t}}(t),gt[t](e)):e.localeData().invalidDate()}function Q(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(mt.lastIndex=0;0<=i&&mt.test(e);)e=e.replace(mt,n),mt.lastIndex=0,--i;return e}function a(e,n,i){Mt[e]=f(n)?n:function(e,t){return e&&i?i:n}}function ee(e,t){return p(Mt,e)?Mt[e](t._strict,t._locale):new RegExp(te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,a){return t||n||i||a})))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _(e,n){var t,i=n;for("string"==typeof e&&(e=[e]),"number"==typeof n&&(i=function(e,t){t[n]=d(e)}),t=0;t<e.length;t++)Lt[e[t]]=i}function ne(e,a){_(e,function(e,t,n,i){n._w=n._w||{},a(e,n._w,n,i)})}function ie(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ae(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=d(t);else if("number"!=typeof(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function re(e){return null!=e?(ae(this,e),h.updateOffset(this,!0),this):K(this,"Month")}function oe(){function e(e,t){return t.length-e.length}for(var t,n=[],i=[],a=[],r=0;r<12;r++)t=u([2e3,r]),n.push(this.monthsShort(t,"")),i.push(this.months(t,"")),a.push(this.months(t,"")),a.push(this.monthsShort(t,""));for(n.sort(e),i.sort(e),a.sort(e),r=0;r<12;r++)n[r]=te(n[r]),i[r]=te(i[r]);for(r=0;r<24;r++)a[r]=te(a[r]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function se(e){return le(e)?366:365}function le(e){return e%4==0&&e%100!=0||e%400==0}function ue(e,t,n,i,a,r,o){t=new Date(e,t,n,i,a,r,o);return e<100&&0<=e&&isFinite(t.getFullYear())&&t.setFullYear(e),t}function ce(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function de(e,t,n){n=7+t-n;return n-(7+ce(e,0,n).getUTCDay()-t)%7-1}function fe(e,t,n,i,a){var r,t=1+7*(t-1)+(7+n-i)%7+de(e,i,a),n=t<=0?se(r=e-1)+t:t>se(e)?(r=e+1,t-se(e)):(r=e,t);return{year:r,dayOfYear:n}}function he(e,t,n){var i,a,r=de(e.year(),t,n),r=Math.floor((e.dayOfYear()-r-1)/7)+1;return r<1?i=r+pe(a=e.year()-1,t,n):r>pe(e.year(),t,n)?(i=r-pe(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function pe(e,t,n){var i=de(e,t,n),t=de(e+1,t,n);return(se(e)-i+t)/7}function me(){function e(e,t){return t.length-e.length}for(var t,n,i,a=[],r=[],o=[],s=[],l=0;l<7;l++)i=u([2e3,1]).day(l),t=this.weekdaysMin(i,""),n=this.weekdaysShort(i,""),i=this.weekdays(i,""),a.push(t),r.push(n),o.push(i),s.push(t),s.push(n),s.push(i);for(a.sort(e),r.sort(e),o.sort(e),s.sort(e),l=0;l<7;l++)r[l]=te(r[l]),o[l]=te(o[l]),s[l]=te(s[l]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ge(){return this.hours()%12||12}function ve(e,t){i(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function _e(e,t){return t._meridiemParse}function ye(e){return e&&e.toLowerCase().replace("_","-")}function be(e){var t;
1if(!D[e]&&void 0!==cn&&cn&&cn.exports)try{t=Gt._abbr,un("./locale/"+e),ke(t)}catch(e){}return D[e]}function ke(e,t){return(Gt=e&&(e=r(t)?y(e):we(e,t))?e:Gt)._abbr}function we(e,t){var n;return null!==t?(n=Xt,t.abbr=e,null!=D[e]?(Y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=D[e]._config):null!=t.parentLocale&&(null!=D[t.parentLocale]?n=D[t.parentLocale]._config:Y("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),D[e]=new G(z(n,t)),ke(e),D[e]):(delete D[e],null)}function y(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return Gt;if(!l(e)){if(t=be(e))return t;e=[e]}for(var n,i,a,r,o=e,s=0;s<o.length;){for(n=(r=ye(o[s]).split("-")).length,i=(i=ye(o[s+1]))?i.split("-"):null;0<n;){if(a=be(r.slice(0,n).join("-")))return a;if(i&&i.length>=n&&U(r,i,!0)>=n-1)break;n--}s++}return null}function Se(e){var t=e._a;return t&&-2===m(e).overflow&&(t=t[E]<0||11<t[E]?E:t[A]<1||t[A]>ie(t[T],t[E])?A:t[O]<0||24<t[O]||24===t[O]&&(0!==t[M]||0!==t[L]||0!==t[It])?O:t[M]<0||59<t[M]?M:t[L]<0||59<t[L]?L:t[It]<0||999<t[It]?It:-1,m(e)._overflowDayOfYear&&(t<T||A<t)&&(t=A),m(e)._overflowWeeks&&-1===t&&(t=Dt),m(e)._overflowWeekday&&-1===t&&(t=Pt),m(e).overflow=t),e}function xe(e){var t,n,i,a,r,o,s=e._i,l=Kt.exec(s)||Zt.exec(s);if(l){for(m(e).iso=!0,t=0,n=Qt.length;t<n;t++)if(Qt[t][1].exec(l[1])){a=Qt[t][0],i=!1!==Qt[t][2];break}if(null==a)e._isValid=!1;else{if(l[3]){for(t=0,n=en.length;t<n;t++)if(en[t][1].exec(l[3])){r=(l[2]||" ")+en[t][0];break}if(null==r)return void(e._isValid=!1)}if(i||null==r){if(l[4]){if(!Jt.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=a+(r||"")+(o||""),Ee(e)}else e._isValid=!1}}else e._isValid=!1}function Ce(e,t,n){return null!=e?e:null!=t?t:n}function Te(e){var t,n,i,a,r,o,s,l,u,c,d=[];if(!e._d){for(u=e,c=new Date(h.now()),n=u._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],e._w&&null==e._a[A]&&null==e._a[E]&&(null!=(c=(u=e)._w).GG||null!=c.W||null!=c.E?(o=1,s=4,i=Ce(c.GG,u._a[T],he(b(),1,4).year),a=Ce(c.W,1),((r=Ce(c.E,1))<1||7<r)&&(l=!0)):(o=u._locale._week.dow,s=u._locale._week.doy,i=Ce(c.gg,u._a[T],he(b(),o,s).year),a=Ce(c.w,1),null!=c.d?((r=c.d)<0||6<r)&&(l=!0):null!=c.e?(r=c.e+o,(c.e<0||6<c.e)&&(l=!0)):r=o),a<1||a>pe(i,o,s)?m(u)._overflowWeeks=!0:null!=l?m(u)._overflowWeekday=!0:(c=fe(i,a,r,o,s),u._a[T]=c.year,u._dayOfYear=c.dayOfYear)),e._dayOfYear&&(l=Ce(e._a[T],n[T]),e._dayOfYear>se(l)&&(m(e)._overflowDayOfYear=!0),i=ce(l,0,e._dayOfYear),e._a[E]=i.getUTCMonth(),e._a[A]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[O]&&0===e._a[M]&&0===e._a[L]&&0===e._a[It]&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?ce:ue).apply(null,d),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24)}}function Ee(e){if(e._f===h.ISO_8601)return xe(e);e._a=[],m(e).empty=!0;for(var t,n,i,a,r,o,s,l=""+e._i,u=l.length,c=0,d=Q(e._f,e._locale).match(pt)||[],f=0;f<d.length;f++)n=d[f],(t=(l.match(ee(n,e))||[])[0])&&(0<(i=l.substr(0,l.indexOf(t))).length&&m(e).unusedInput.push(i),l=l.slice(l.indexOf(t)+t.length),c+=t.length),vt[n]?(t?m(e).empty=!1:m(e).unusedTokens.push(n),i=n,r=e,null!=(a=t)&&p(Lt,i)&&Lt[i](a,r._a,r,i)):e._strict&&!t&&m(e).unusedTokens.push(n);m(e).charsLeftOver=u-c,0<l.length&&m(e).unusedInput.push(l),e._a[O]<=12&&!0===m(e).bigHour&&0<e._a[O]&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[O]=(u=e._locale,o=e._a[O],null==(s=e._meridiem)?o:null!=u.meridiemHour?u.meridiemHour(o,s):null!=u.isPM?((u=u.isPM(s))&&o<12&&(o+=12),o=u||12!==o?o:0):o),Te(e),Se(e)}function Ae(e){var t=e._i,n=e._f;{var i,a;return(e._locale=e._locale||y(e._l),null===t||void 0===n&&""===t)?j({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),s(t)?new B(Se(t)):(l(n)?function(e){var t,n,i,a,r;if(0===e._f.length)return m(e).invalidFormat=!0,e._d=new Date(NaN);for(a=0;a<e._f.length;a++)r=0,t=V({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Ee(t),N(t)&&(r=(r+=m(t).charsLeftOver)+10*m(t).unusedTokens.length,m(t).score=r,null==i||r<i)&&(i=r,n=t);o(e,n||t)}(e):H(t)?e._d=t:n?Ee(e):void 0===(n=(t=e)._i)?t._d=new Date(h.now()):H(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(i=t,null!==(a=tn.exec(i._i))?i._d=new Date(+a[1]):(xe(i),!1===i._isValid&&
1(delete i._isValid,h.createFromInputFallback(i)))):l(n)?(t._a=F(n.slice(0),function(e){return parseInt(e,10)}),Te(t)):"object"==typeof n?(a=t)._d||(i=q(a._i),a._a=F([i.year,i.month,i.day||i.date,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),Te(a)):"number"==typeof n?t._d=new Date(n):h.createFromInputFallback(t),N(e)||(e._d=null),e))}}function Oe(e,t,n,i,a){var r={};return"boolean"==typeof n&&(i=n,n=void 0),($(e)&&function(e){for(var t in e)return;return 1}(e)||l(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=e,r._f=t,r._strict=i,(a=new B(Se(Ae(a=r))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function b(e,t,n,i){return Oe(e,t,n,i,!1)}function Me(e,t){var n,i;if(!(t=1===t.length&&l(t[0])?t[0]:t).length)return b();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function Le(e){var e=q(e),t=e.year||0,n=e.quarter||0,i=e.month||0,a=e.week||0,r=e.day||0,o=e.hour||0,s=e.minute||0,l=e.second||0,e=e.millisecond||0;this._milliseconds=+e+1e3*l+6e4*s+1e3*o*60*60,this._days=+r+7*a,this._months=+i+3*n+12*t,this._data={},this._locale=y(),this._bubble()}function Ie(e){return e instanceof Le}function De(e,n){i(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+v(~~(e/60),2)+n+v(~~e%60,2)})}function Pe(e,t){t=(t||"").match(e)||[],e=((t[t.length-1]||[])+"").match(nn)||["-",0,0],t=60*e[1]+d(e[2]);return"+"===e[0]?t:-t}function Re(e,t){var n;return t._isUTC?(t=t.clone(),n=(s(e)||H(e)?e:b(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),h.updateOffset(t,!1),t):b(e).local()}function $e(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function He(){return!!this.isValid()&&this._isUTC&&0===this._offset}function k(e,t){var n,i,a=e;return Ie(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(a={},t?a[t]=e:a.milliseconds=e):(t=an.exec(e))?(n="-"===t[1]?-1:1,a={y:0,d:d(t[A])*n,h:d(t[O])*n,m:d(t[M])*n,s:d(t[L])*n,ms:d(t[It])*n}):(t=rn.exec(e))?(n="-"===t[1]?-1:1,a={y:Fe(t[2],n),M:Fe(t[3],n),w:Fe(t[4],n),d:Fe(t[5],n),h:Fe(t[6],n),m:Fe(t[7],n),s:Fe(t[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(t=b(a.from),n=b(a.to),t=t.isValid()&&n.isValid()?(n=Re(n,t),t.isBefore(n)?i=Ne(t,n):((i=Ne(n,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0},(a={}).ms=t.milliseconds,a.M=t.months),i=new Le(a),Ie(e)&&p(e,"_locale")&&(i._locale=e._locale),i}function Fe(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Ne(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function je(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ve(i,a){return function(e,t){var n;return null===t||isNaN(+t)||(Y(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Be(this,k(e="string"==typeof e?+e:e,t),i),this}}function Be(e,t,n,i){var a=t._milliseconds,r=je(t._days),t=je(t._months);e.isValid()&&(i=null==i||i,a&&e._d.setTime(e._d.valueOf()+a*n),r&&Z(e,"Date",K(e,"Date")+r*n),t&&ae(e,K(e,"Month")+t*n),i)&&h.updateOffset(e,r||t)}function Ue(e){return void 0===e?this._locale._abbr:(null!=(e=y(e))&&(this._locale=e),this)}function We(){return this._locale}function Ye(e,t){i(0,[e,e.length],0,t)}function ze(e,t,n,i,a){var r;return null==e?he(this,i,a).year:(r=pe(e,i,a),function(e,t,n,i,a){e=fe(e,t,n,i,a),t=ce(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=r<t?r:t,n,i,a))}function Ge(e,t){t[It]=d(1e3*("0."+e))}function qe(e){return e}function Xe(e,t,n,i){var a=y(),i=u().set(i,t);return a[n](i,e)}function Ke(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return Xe(e,t,n,"month");for(var i=[],a=0;a<12;a++)i[a]=Xe(e,a,n,"month");return i}function Ze(e,t,n,i){t=("boolean"==typeof e||(n=t=e,e=!1),"number"==typeof t&&(n=t,t=void 0),t||"");var a=y(),r=e?a._week.dow:0;if(null!=n)return Xe(t,(n+r)%7,i,"day");for(var o=[],s=0;s<7;s++)o[s]=Xe(t,(s+r)%7,i,"day");return o}function Je(e,t,n,i){t=k(t,n);return e._milliseconds+=i*t._milliseconds,e._days+=i*t._days,e._months+=i*t._months,e._bubble()}function Qe(e){return e<0?Math.floor(e):Math.ceil(e)}function et(e){return 4800*e/146097}function tt(e){return 146097*e/4800}function nt(e){return function(){return this.as(e)}}function it(e){return function(){return this._data[e]}}function at(e,t,n){var i=k(e).abs(),a=on(i.as("s")),r=on(i.as("m")),o=on(i.as("h")),s=on(i.as("d")),l=on(i.as("M")),i=on(i.as("y")),a=(a<sn.s?["s",a]:r<=1&&["m"])||(r<sn.m?["mm",r]:o<=1&&["h"])||(o<sn.h?["hh",o]:s<=1&&["d"])||(s<sn.d?["dd",s]:l<=1&&["M"])||(l<sn.M?["MM",l]:i<=1&&["y"])||["yy",i];return a[2]=t,a[3]=0<+e,a[4]=n,function(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}.apply(null,a)}function rt(){var e=ln(this._milliseconds)/1e3,t=ln(this._days),n=ln(this._months),i=c(e/60),a=c(i/60),r=(e%=60,i%=60,c(n/12)),n=n%=12,o=this.asSeconds();return o?(o<0?"-":"")+"P"+(r?r+"Y":"")+(n?n+"M":"")+(t?t+"D":"")+(a||i||e?"T":"")+(a?a+"H":"")+(i?i+"M":"")+(e?e+"S":""):"P0D"}var ot,st=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1},lt=h.momentProperties=[],ut=!1,ct={},dt=(h.suppressDeprecationWarnings=!1,h.deprecationHandler=null,Object.keys||function(e){var t,n=[];for(t in e)p(e,t)&&n.push(t);return n}),ft={},ht={},pt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
1|x|X|zz?|ZZ?|.)/g,mt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,gt={},vt={},w=/\d/,S=/\d\d/,_t=/\d{3}/,yt=/\d{4}/,bt=/[+-]?\d{6}/,x=/\d\d?/,kt=/\d\d\d\d?/,wt=/\d\d\d\d\d\d?/,St=/\d{1,3}/,xt=/\d{1,4}/,C=/[+-]?\d{1,6}/,Ct=/\d+/,Tt=/[+-]?\d+/,Et=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,Ot=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Mt={},Lt={},T=0,E=1,A=2,O=3,M=4,L=5,It=6,Dt=7,Pt=8,I=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},Rt=(i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),i("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),a("M",x),a("MM",x,S),a("MMM",function(e,t){return t.monthsShortRegex(e)}),a("MMMM",function(e,t){return t.monthsRegex(e)}),_(["M","MM"],function(e,t){t[E]=d(e)-1}),_(["MMM","MMMM"],function(e,t,n,i){i=n._locale.monthsParse(e,i,n._strict);null!=i?t[E]=i:m(n).invalidMonth=e}),/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/),$t="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ht="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ft=Ot,Nt=Ot,jt=(i("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),a("Y",Tt),a("YY",x,S),a("YYYY",xt,yt),a("YYYYY",C,bt),a("YYYYYY",C,bt),_(["YYYYY","YYYYYY"],T),_("YYYY",function(e,t){t[T]=2===e.length?h.parseTwoDigitYear(e):d(e)}),_("YY",function(e,t){t[T]=h.parseTwoDigitYear(e)}),_("Y",function(e,t){t[T]=parseInt(e,10)}),h.parseTwoDigitYear=function(e){return d(e)+(68<d(e)?1900:2e3)},X("FullYear",!0)),Vt=(i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),a("w",x),a("ww",x,S),a("W",x),a("WW",x,S),ne(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=d(e)}),i("d",0,"do","day"),i("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),i("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),i("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),a("d",x),a("e",x),a("E",x),a("dd",function(e,t){return t.weekdaysMinRegex(e)}),a("ddd",function(e,t){return t.weekdaysShortRegex(e)}),a("dddd",function(e,t){return t.weekdaysRegex(e)}),ne(["dd","ddd","dddd"],function(e,t,n,i){i=n._locale.weekdaysParse(e,i,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e}),ne(["d","e","E"],function(e,t,n,i){t[i]=d(e)}),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_")),Bt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Wt=Ot,Yt=Ot,zt=Ot;i("H",["HH",2],0,"hour"),i("h",["hh",2],0,ge),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+ge.apply(this)+v(this.minutes(),2)}),i("hmmss",0,0,function(){return""+ge.apply(this)+v(this.minutes(),2)+v(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+v(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+v(this.minutes(),2)+v(this.seconds(),2)}),ve("a",!0),ve("A",!1),t("hour","h"),n("hour",13),a("a",_e),a("A",_e),a("H",x),a("h",x),a("HH",x,S),a("hh",x,S),a("hmm",kt),a("hmmss",wt),a("Hmm",kt),a("Hmmss",wt),_(["H","HH"],O),_(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_(["h","hh"],function(e,t,n){t[O]=d(e),m(n).bigHour=!0}),_("hmm",function(e,t,n){var i=e.length-2;t[O]=d(e.substr(0,i)),t[M]=d(e.substr(i)),m(n).bigHour=!0}),_("hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[O]=d(e.substr(0,i)),t[M]=d(e.substr(i,2)),t[L]=d(e.substr(a)),m(n).bigHour=!0}),_("Hmm",function(e,t,n){var i=e.length-2;t[O]=d(e.substr(0,i)),t[M]=d(e.substr(i))}),_("Hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[O]=d(e.substr(0,i)),t[M]=d(e.substr(i,2)),t[L]=d(e.substr(a))});var Gt,qt,Ot=X("Hours",!0),Xt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",ordinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:$t,monthsShort:Ht,week:{dow:0,doy:6},weekdays:Vt,weekdaysMin:Ut,weekdaysShort:Bt,meridiemParse:/[ap]\.?m?\.?/i},D={},Kt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Zt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Jt=/Z|[+-]\d\d(?::?\d\d)?/,Qt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],en=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],tn=/^\/?Date\((\-?\d+)/i,kt=(h.createFromInputFallback=e("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),h.ISO_8601=function(){},e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=b.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:j()})),wt=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=b.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:j()}),nn=(De("Z",":"),De("ZZ",""),a("Z",At),a("ZZ",At),_(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Pe(At,e)}),/([\+\-]|\d\d)/gi),an=(h.updateOffset=function(){},/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/),rn=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/,$t=(k.fn=Le.prototype,Ve(1,"add")),Ht=Ve(-1,"subtract"),Vt=(h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)})),Ut=(i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ye("gggg","weekYear"),Ye("ggggg","weekYear"),Ye("GGGG","isoWeekYear"),Ye("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),a("G",Tt),a("g",Tt),a("GG",x,S),a("gg",x,S),a("GGGG",xt,yt),a("gggg",xt,yt),a("GGGGG",C,bt),a("ggggg",C,bt),ne(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=d(e)}),ne(["gg","GG"],function(e,t,n,i){t[i]=h.parseTwoDigitYear(e)}),i("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),a("Q",w),_("Q",function(e,t){t[E]=3*(d(e)-1)}),i("D",["DD",2],"Do","date"),t("date","D"),n("date",9),a("D",x),a("DD",x,S),a("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),_(["D","DD"],A),_("Do",function(e,t){t[A]=d(e.match(x)[0])}),X("Date",!0)),Bt=(i("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),a("DDD",St),a("DDDD",_t),_(["DDD","DDDD"],function(e,t,n){n._dayOfYear=d(e)}),i("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),a("m",x),a("mm",x,S),_(["m","mm"],M),X("Minutes",!1)),xt=(i("s",["ss",2],0,"second"),t("second","s"),n("second",15),a("s",x),a("ss",x,S),_(["s","ss"],L),X("Seconds",!1));for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),a("S",St,w),a("SS",St,S),a("SSS",St,_t),qt="SSSS";qt.length<=9;qt+="S")a(qt,Ct);for(qt="S";qt.length<=9;qt+="S")_(qt,Ge);var yt=X("Milliseconds",!1),C=(i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName"),B.prototype),bt=(C.add=$t,C.calendar=function(e,t){var n=Re(e=e||b(),this).startOf("day"),n=h.calendarFormat(this,n)||"sameElse",t=t&&(f(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,b(e)))},C.clone=function(){return new B(this)},C.diff=function(e,t,n){var i,a,r,o,s,l;return this.isValid()&&(e=Re(e,this)).isValid()?(i=6e4*(e.utcOffset()-this.utcOffset()),"year"===(t=g(t))||"month"===t||"quarter"===t?(a=this,s=12*((r=e).year()-a.year())+(r.month()-a.month()),l=a.clone().add(s,"months"),a=r-l<0?(o=a.clone().add(s-1,"months"),(r-l)/(l-o)):(o=a.clone().add(1+s,"months"),(r-l)/(o-l)),r=-(s+a)||0,"quarter"===t?r/=3:"year"===t&&(r/=12)):(o=this-e,r="second"===t?o/1e3:"minute"===t?o/6e4:"hour"===t?o/36e5:"day"===t?(o-i)/864e5:"week"===t?(o-i)/6048e5:o),n?r:c(r)):NaN},C.endOf=function(e){return void 0===(e=g(e))||"millisecond"===e?this:this.startOf(e="date"===e?"day":e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")},C.format=function(e){return e=e||(this.isUtc()?h.defaultFormatUtc:h.defaultFormat),e=J(this,e),this.localeData().postformat(e)},C.from=function(e,t){return this.isValid()&&(s(e)&&e.isValid()||b(e).isValid())?k({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},C.fromNow=function(e){return this.from(b(),e)},C.to=function(e,t){return this.isValid()&&(s(e)&&e.isValid()||b(e).isValid())?k({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}
vendor: 4,503 bytes, line 1
1,C.toNow=function(e){return this.to(b(),e)},C.get=function(e){return f(this[e=g(e)])?this[e]():this},C.invalidAt=function(){return m(this).overflow},C.isAfter=function(e,t){return e=s(e)?e:b(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=g(r(t)?"millisecond":t))?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},C.isBefore=function(e,t){return e=s(e)?e:b(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=g(r(t)?"millisecond":t))?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},C.isBetween=function(e,t,n,i){return("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},C.isSame=function(e,t){var e=s(e)?e:b(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=g(t||"millisecond"))?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},C.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},C.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},C.isValid=function(){return N(this)},C.lang=Vt,C.locale=Ue,C.localeData=We,C.max=wt,C.min=kt,C.parsingFlags=function(){return o({},m(this))},C.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)n.push({unit:t,priority:ht[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=q(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(f(this[e=g(e)]))return this[e](t);return this},C.startOf=function(e){switch(e=g(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},C.subtract=Ht,C.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},C.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},C.toDate=function(){return new Date(this.valueOf())},C.toISOString=function(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?f(Date.prototype.toISOString)?this.toDate().toISOString():J(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):J(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},C.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},C.year=jt,C.isLeapYear=function(){return le(this.year())},C.weekYear=function(e){return ze.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},C.isoWeekYear=function(e){return ze.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},C.quarter=C.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},C.month=re,C.daysInMonth=function(){return ie(this.year(),this.month())},C.week=C.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},C.isoWeek=C.isoWeeks=function(e){var t=he(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},C.weeksInYear=function(){var e=this.localeData()._week;return pe(this.year(),e.dow,e.doy)},C.isoWeeksInYear=function(){return pe(this.year(),1,4)},C.date=Ut,C.day=C.days=function(e){var t,n,i;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(n=e,i=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=i.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},C.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},C.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},C.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}
1,C.hour=C.hours=Ot,C.minute=C.minutes=Bt,C.second=C.seconds=xt,C.millisecond=C.milliseconds=yt,C.utcOffset=function(e,t){var n,i=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=Pe(At,e):Math.abs(e)<16&&(e*=60),!this._isUTC&&t&&(n=$e(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?Be(this,k(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:$e(this):null!=e?this:NaN},C.utc=function(e){return this.utcOffset(0,e)},C.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract($e(this),"m"),this},C.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Pe(Et,this._i)),this},C.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?b(e).utcOffset():0,(this.utcOffset()-e)%60==0)},C.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},C.isLocal=function(){return!!this.isValid()&&!this._isUTC},C.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},C.isUtc=He,C.isUTC=He,C.zoneAbbr=function(){return this._isUTC?"UTC":""},C.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},C.dates=e("dates accessor is deprecated. Use date instead.",Ut),C.months=e("months accessor is deprecated. Use month instead",re),C.years=e("years accessor is deprecated. Use year instead",jt),C.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),C.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return r(this._isDSTShifted)&&(V(e={},this),(e=Ae(e))._a?(t=(e._isUTC?u:b)(e._a),this._isDSTShifted=this.isValid()&&0<U(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted}),C),w=G.prototype,P=(w.calendar=function(e,t,n){return f(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},w.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},w.invalidDate=function(){return this._invalidDate},w.ordinal=function(e){return this._ordinal.replace("%d",e)},w.preparse=qe,w.postformat=qe,w.relativeTime=function(e,t,n,i){var a=this._relativeTime[n];return f(a)?a(e,t,n,i):a.replace(/%d/i,e)},w.pastFuture=function(e,t){return f(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},w.set=function(e){var t,n;for(n in e)f(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},w.months=function(e,t){return(l(this._months)?this._months:this._months[(this._months.isFormat||Rt).test(t)?"format":"standalone"])[e.month()]},w.monthsShort=function(e,t){return(l(this._monthsShort)?this._monthsShort:this._monthsShort[Rt.test(t)?"format":"standalone"])[e.month()]},w.monthsParse=function(e,t,n){var i,a;if(this._monthsParseExact)return function(e,t,n){var i,a,r,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=u([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?-1!==(a="MMM"===t?I.call(this._shortMonthsParse,e):I.call(this._longMonthsParse,e))?a:null:"MMM"===t?-1!==(a=I.call(this._shortMonthsParse,e))||-1!==(a=I.call(this._longMonthsParse,e))?a:null:-1!==(a=I.call(this._longMonthsParse,e))||-1!==(a=I.call(this._shortMonthsParse,e))?a:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=u([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},w.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||oe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Nt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},w.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||oe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Ft),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},w.week=function(e){return he(e,this._week.dow,this._week.doy).week},w.firstDayOfYear=function(){return this._week.doy},w.firstDayOfWeek=function(){return this._week.dow},w.weekdays=function(e,t){return(l(this._weekdays)?this._weekdays:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"])[e.day()]},w.weekdaysMin=function(e){return this._weekdaysMin[e.day()]},w.weekdaysShort=function(e){return this._weekdaysShort[e.day()]},w.weekdaysParse=function(e,t,n){var i,a;if(this._weekdaysParseExact)return function(e,t,n){var i,a,r,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=u([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?-1!==(a="dddd"===t?I.call(this._weekdaysParse,e):"ddd"===t?I.call(this._shortWeekdaysParse,e):I.call(this._minWeekdaysParse,e))?a:null:"dddd"===t?-1!==(a=I.call(this._weekdaysParse,e))||-1!==(a=I.call(this._shortWeekdaysParse,e))||-1!==(a=I.call(this._minWeekdaysParse,e))?a:null:"ddd"===t?-1!==(a=I.call(this._shortWeekdaysParse,e))||-1!==(a=I.call(this._weekdaysParse,e))||-1!==(a=I.call(this._minWeekdaysParse,e))?a:null:-1!==(a=I.call(this._minWeekdaysParse,e))||-1!==(a=I.call(this._weekdaysParse,e))||-1!==(a=I.call(this._shortWeekdaysParse,e))?a:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=u([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},w.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||me.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=Wt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},w.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||me.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Yt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},w.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||me.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},w.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},w.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ke("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===d(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),h.lang=e("moment.lang is deprecated. Use moment.locale instead.",ke),h.langData=e("moment.langData is deprecated. Use moment.localeData instead.",y),Math.abs),S=nt("ms"),St=nt("s"),_t=nt("m"),$t=nt("h"),wt=nt("d"),kt=nt("w"),Ht=nt("M"),Ot=nt("y"),Bt=it("milliseconds"),xt=it("seconds"),yt=it("minutes"),Ut=it("hours"),jt=it("days"),C=it("months"),w=it("years"),on=Math.round,sn={s:45,m:45,h:22,d:26,M:11},ln=Math.abs,R=Le.prototype;return R.abs=function(){var e=this._data;return this._milliseconds=P(this._milliseconds),this._days=P(this._days),this._months=P(this._months),e.milliseconds=P(e.milliseconds),e.seconds=P(e.seconds),e.minutes=P(e.minutes),e.hours=P(e.hours),e.months=P(e.months),e.years=P(e.years),this},R.add=function(e,t){return Je(this,e,t,1)},R.subtract=function(e,t){return Je(this,e,t,-1)},R.as=function(e){var t,n,i=this._milliseconds;if("month"===(e=g(e))||"year"===e)return t=this._days+i/864e5,n=this._months+et(t),"month"===e?n:n/12;switch(t=this._days+Math.round(tt(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},R.asMilliseconds=S,R.asSeconds=St,R.asMinutes=_t,R.asHours=$t,R.asDays=wt,R.asWeeks=kt,R.asMonths=Ht,R.asYears=Ot,R.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*d(this._months/12)},R._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,i=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*Qe(tt(n)+t),n=t=0),i.milliseconds=e%1e3,e=c(e/1e3),i.seconds=e%60,e=c(e/60),i.minutes=e%60,e=c(e/60),i.hours=e%24,t+=c(e/24),n+=e=c(et(t)),t-=Qe(tt(e)),e=c(n/12),n%=12,i.days=t,i.months=n,i.years=e,this},R.get=function(e){return this[(e=g(e))+"s"]()},R.milliseconds=Bt,R.seconds=xt,R.minutes=yt,R.hours=Ut,R.days=jt,R.weeks=function(){return c(this.days()/7)},R.months=C,R.years=w,R.humanize=function(e){var t=this.localeData(),n=at(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},R.toISOString=rt,R.toString=rt,R.toJSON=rt,R.locale=Ue,R.localeData=We,R.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rt),R.lang=Vt,i("X",0,0,"unix"),i("x",0,0,"valueOf"),a("x",Tt),a("X",/[+-]?\d+(\.\d{1,3})?/),_("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),_("x",function(e,t,n){n._d=new Date(d(e))}),h.version="2.14.1",ot=b,h.fn=bt,h.min=function(){return Me("isBefore",[].slice.call(arguments,0))},h.max=function(){return Me("isAfter",[].slice.call(arguments,0))},h.now=function(){return Date.now?Date.now():+new Date},h.utc=u,h.unix=function(e){return b(1e3*e)},h.months=function(e,t){return Ke(e,t,"months")},h.isDate=H,h.locale=ke,h.invalid=j,h.duration=k,h.isMoment=s,h.weekdays=function(e,t,n){return Ze(e,t,n,"weekdays")},h.parseZone=function(){return b.apply(null,arguments).parseZone()},h.localeData=y,h.isDuration=Ie,h.monthsShort=function(e,t){return Ke(e,t,"monthsShort")},h.weekdaysMin=function(e,t,n){return Ze(e,t,n,"weekdaysMin")},h.defineLocale=we,h.updateLocale=function(e,t){var n;return null!=t?(n=Xt,(n=new G(t=z(n=null!=D[e]?D[e]._config:n,t))).parentLocale=D[e],D[e]=n,ke(e)):null!=D[e]&&(null!=D[e].parentLocale?D[e]=D[e].parentLocale:null!=D[e]&&delete D[e]),D[e]},h.locales=function(){return dt(D)},h.weekdaysShort=function(e,t,n){return Ze(e,t,n,"weekdaysShort")},h.normalizeUnits=g,h.relativeTimeRounding=function(e){return void 0===e?on:"function"==typeof e&&(on=e,!0)},h.relativeTimeThreshold=function(e,t){return void 0!==sn[e]&&(void 0===t?sn[e]:(sn[e]=t,!0))},h.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},h.prototype=bt,h},"object"==typeof e&&void 0!==cn?cn.exports=n():"function"==typeof define&&define.amd?define(n):t.moment=n()},{}],3:[function(e,t,n){var i,a;i=this,a=function(){function v(e,t,n,i){return i&&"function"==typeof i.transform&&(t=i.transform(t)),n.reverse?t+e:e+t}function _(e,t,n){e=e.split("");return e.splice(n,0,t),e.join("")}function i(e,t){this.options=t||{},this.options={reverse:this.options.reverse||!1,usedefaults:this.options.usedefaults||this.options.reverse},this.pattern=e}var y={0:{pattern:/\d/,_default:"0"},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,optional:!0,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/},U:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleUpperCase()}},L:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleLowerCase()}},$:{escape:!0}};return i.prototype.process=function(n){function e(e){if(!f&&!d.length&&function e(t,n,i){var a=t.charAt(n),r=y[a];return""!==a&&(!(!r||r.escape)||e(t,n+i,i))}(a,l,h.inc))return 1;if(!f&&d.length&&function e(t,n,i){var a=t.charAt(n),r=y[a];return""!==a&&(!(!r||!r.recursive)||e(t,n+i,i))}(a,l,h.inc))return 1;if(f=f||0<d.length){var t=d.shift();if(d.push(t),e.reverse&&0<=s)return a=_(a,t,++l),1;if(!e.reverse&&s<n.length)return a=_(a,t,l),1}return l<a.length&&0<=l}if(!n)return{result:"",valid:!1};n+="";for(var t,i,a=this.pattern,r=!0,o="",s=this.options.reverse?n.length-1:0,l=0,u=(i=n,t=(t=a).replace(/[^0]/g,"").length,i.replace(/[^\d]/g,"").length-t),c=!1,d=[],f=!1,h={start:this.options.reverse?a.length-1:0,end:this.options.reverse?-1:a.length,inc:this.options.reverse?-1:1},l=h.start;e(this.options);l+=h.inc){var p=n.charAt(s),m=a.charAt(l),g=y[m];if(d.length&&g&&!g.recursive&&(g=null),!f||p){if(this.options.reverse&&function(e,t){for(var n=0,i=t-1,a={escape:!0};0<=i&&a&&a.escape;)n+=(a=y[e.charAt(i)])&&a.escape?1:0,i--;return 0<n&&n%2==1}
1(a,l)){o=v(o,m,this.options,g),l+=h.inc;continue}if(!this.options.reverse&&c){o=v(o,m,this.options,g),c=!1;continue}if(!this.options.reverse&&g&&g.escape){c=!0;continue}}if(!f&&g&&g.recursive)d.push(m);else{if(f&&!p){o=v(o,m,this.options,g);continue}if(!f&&0<d.length&&!p)continue}if(g)if(g.optional){if(g.pattern.test(p)&&u)o=v(o,p,this.options,g),s+=h.inc,u--;else if(0<d.length&&p){r=!1;break}}else if(g.pattern.test(p))o=v(o,p,this.options,g),s+=h.inc;else{if(p||!g._default||!this.options.usedefaults){r=!1;break}o=v(o,g._default,this.options,g)}else o=v(o,m,this.options,g),!f&&d.length&&d.push(m)}return{result:o,valid:r}},i.prototype.apply=function(e){return this.process(e).result},i.prototype.validate=function(e){return this.process(e).valid},i.process=function(e,t,n){return new i(t,n).process(e)},i.apply=function(e,t,n){return new i(t,n).apply(e)},i.validate=function(e,t,n){return new i(t,n).validate(e)},i},"function"==typeof define&&define.amd?define([],a):"object"==typeof n?t.exports=a():i.StringMask=a()},{}],4:[function(e,t,n){t.exports=angular.module("ui.utils.masks",[e("./global/global-masks"),e("./br/br-masks"),e("./us/us-masks"),e("./ch/ch-masks")]).name},{"./br/br-masks":6,"./ch/ch-masks":15,"./global/global-masks":19,"./us/us-masks":27}],5:[function(e,t,n){var i=e("string-mask"),e=e("mask-factory"),a=new i("00000.00000 00000.000000 00000.000000 0 00000000000000");t.exports=e({clearValue:function(e){return e.replace(/[^0-9]/g,"").slice(0,47)},format:function(e){return 0===e.length?e:a.apply(e).replace(/[^0-9]$/,"")},validations:{brBoletoBancario:function(e){return 47===e.length}}})},{"mask-factory":"mask-factory","string-mask":3}],6:[function(e,t,n){e=angular.module("ui.utils.masks.br",[e("../helpers")]).directive("uiBrBoletoBancarioMask",e("./boleto-bancario/boleto-bancario")).directive("uiBrCepMask",e("./cep/cep")).directive("uiBrCnpjMask",e("./cnpj/cnpj")).directive("uiBrCpfMask",e("./cpf/cpf")).directive("uiBrCpfcnpjMask",e("./cpf-cnpj/cpf-cnpj")).directive("uiBrIeMask",e("./inscricao-estadual/ie")).directive("uiNfeAccessKeyMask",e("./nfe/nfe")).directive("uiBrCarPlateMask",e("./car-plate/car-plate")).directive("uiBrPhoneNumber",e("./phone/br-phone"));t.exports=e.name},{"../helpers":25,"./boleto-bancario/boleto-bancario":5,"./car-plate/car-plate":7,"./cep/cep":8,"./cnpj/cnpj":9,"./cpf-cnpj/cpf-cnpj":10,"./cpf/cpf":11,"./inscricao-estadual/ie":12,"./nfe/nfe":13,"./phone/br-phone":14}],7:[function(e,t,n){var i=e("string-mask"),e=e("mask-factory"),a=new i("UUU-0000");t.exports=e({clearValue:function(e){return e.replace(/[^a-zA-Z0-9]/g,"").slice(0,7)},format:function(e){return(a.apply(e)||"").replace(/[^a-zA-Z0-9]$/,"")},validations:{carPlate:function(e){return 7===e.length}}})},{"mask-factory":"mask-factory","string-mask":3}],8:[function(e,t,n){var i=e("string-mask"),e=e("mask-factory"),a=new i("00000-000");t.exports=e({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,8)},format:function(e){return(a.apply(e)||"").replace(/[^0-9]$/,"")},validations:{cep:function(e){return 8===e.length}}})},{"mask-factory":"mask-factory","string-mask":3}],9:[function(e,t,n){var i=e("string-mask"),a=e("br-validations"),e=e("mask-factory"),r=new i("00.000.000/0000-00");t.exports=e({clearValue:function(e){return e.replace(/[^\d]/g,"").slice(0,14)},format:function(e){return(r.apply(e)||"").trim().replace(/[^0-9]$/,"")},validations:{cnpj:function(e){return a.cnpj.validate(e)}}})},{"br-validations":1,"mask-factory":"mask-factory","string-mask":3}],10:[function(e,t,n){var i=e("string-mask"),a=e("br-validations"),e=e("mask-factory"),r=new i("00.000.000/0000-00"),o=new i("000.000.000-00");t.exports=e({clearValue:function(e){return e.replace(/[^\d]/g,"").slice(0,14)},format:function(e){return(11<e.length?r.apply(e):o.apply(e)||"").trim().replace(/[^0-9]$/,"")},validations:{cpf:function(e){return 11<e.length||a.cpf.validate(e)},cnpj:function(e){return e.length<=11||a.cnpj.validate(e)}}})},{"br-validations":1,"mask-factory":"mask-factory","string-mask":3}],11:[function(e,t,n){var i=e("string-mask"),a=e("br-validations"),e=e("mask-factory"),r=new i("000.000.000-00");t.exports=e({clearValue:function(e){return e.replace(/[^\d]/g,"").slice(0,11)},format:function(e){return(r.apply(e)||"").trim().replace(/[^0-9]$/,"")},validations:{cpf:function(e){return a.cpf.validate(e)}}})},{"br-validations":1,"mask-factory":"mask-factory","string-mask":3}],12:[function(e,t,n){function i(o){function s(e){return e&&e.replace(/[^0-9]/g,"")}function l(e,t){var n=function(e,t){if(e&&a[e]){if("SP"===e&&/^P/i.test(t))return a.SP[1].mask;for(var n=a[e],i=0;n[i].chars&&n[i].chars<s(t).length&&i<n.length-1;)i++;return n[i].mask}}(t,e);return n?(n=(n=n.process(s(e)).result||"").trim().replace(/[^0-9]$/,""),"SP"===t&&/^p/i.test(e)?"P"+n:n):e}var a={AC:[{mask:new r("00.000.000/000-00")}],AL:[{mask:new r("000000000")}],AM:[{mask:new r("00.000.000-0")}],AP:[{mask:new r("000000000")}],BA:[{chars:8,mask:new r("000000-00")},{mask:new r("0000000-00")}],CE:[{mask:new r("00000000-0")}],DF:[{mask:new r("00000000000-00")}],ES:[{mask:new r("00000000-0")}],GO:[{mask:new r("00.000.000-0")}],MA:[{mask:new r("000000000")}],MG:[{mask:new r("000.000.000/0000")}],MS:[{mask:new r("000000000")}],MT:[{mask:new r("0000000000-0")}],PA:[{mask:new r("00-000000-0")}],PB:[{mask:new r("00000000-0")}],PE:[{chars:9,mask:new r("0000000-00")},{mask:new r("00.0.000.0000000-0")}],PI:[{mask:new r("000000000")}],PR:[{mask:new r("000.00000-00")}],RJ:[{mask:new r("00.000.00-0")}],RN:[{chars:9,mask:new r("00.000.000-0")},{mask:new r("00.0.000.000-0")}],RO:[{mask:new r("0000000000000-0")}],RR:[{mask:new r("00000000-0")}],RS:[{mask:new r("000/0000000")}],SC:[{mask:new r("000.000.000")}],SE:[{mask:new r("00000000-0")}],SP:[{mask:new r("000.000.000.000")},{mask:new r("-00000000.0/000")}],TO:[{mask:new r("00000000000")}]};return{restrict:"A",require:"ngModel",link:function(e,t,n,i){function a(e){var t,n;return i.$isEmpty(e)?e:(n=s(t=l(e,r)),i.$viewValue!==t&&(i.$setViewValue(t),i.$render()),r&&"SP"===r.toUpperCase()&&/^p/i.test(e)?"P"+n:n)}
1var r=(o(n.uiBrIeMask)(e)||"").toUpperCase();i.$formatters.push(function(e){return i.$isEmpty(e)?e:l(e,r)}),i.$parsers.push(a),i.$validators.ie=function(e){return i.$isEmpty(e)||u.ie(r).validate(e)},e.$watch(n.uiBrIeMask,function(e){r=(e||"").toUpperCase(),a(i.$viewValue),i.$validate()})}}}var r=e("string-mask"),u=e("br-validations");i.$inject=["$parse"],t.exports=i},{"br-validations":1,"string-mask":3}],13:[function(e,t,n){var i=e("string-mask"),e=e("mask-factory"),a=new i("0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000");t.exports=e({clearValue:function(e){return e.replace(/[^0-9]/g,"").slice(0,44)},format:function(e){return(a.apply(e)||"").replace(/[^0-9]$/,"")},validations:{nfeAccessKey:function(e){return 44===e.length}}})},{"mask-factory":"mask-factory","string-mask":3}],14:[function(e,t,n){var i=e("string-mask"),e=e("mask-factory"),a={areaCode:new i("(00) 0000-0000"),simple:new i("0000-0000")},r={areaCode:new i("(00) 00000-0000"),simple:new i("00000-0000")},o={areaCode:null,simple:new i("0000-000-0000")};t.exports=e({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,11)},format:function(e){return(0===e.indexOf("0800")?o.simple.apply(e):e.length<9?a.simple.apply(e)||"":(e.length<10?r.simple:(e.length<11?a:r).areaCode).apply(e)).trim().replace(/[^0-9]$/,"")},getModelValue:function(e,t){e=this.clearValue(e);return"number"===t?parseInt(e):e},validations:{brPhoneNumber:function(e){e=e&&e.toString().length;return 8<=e&&e<=11}}})},{"mask-factory":"mask-factory","string-mask":3}],15:[function(e,t,n){e=angular.module("ui.utils.masks.ch",[e("../helpers")]).directive("uiChPhoneNumber",e("./phone/ch-phone"));t.exports=e.name},{"../helpers":25,"./phone/ch-phone":16}],16:[function(e,t,n){var i=e("string-mask"),e=e("mask-factory"),a=new i("+00 00 000 00 00");t.exports=e({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,11)},format:function(e){return(a.apply(e)||"").trim().replace(/[^0-9]$/,"")},validations:{chPhoneNumber:function(e){return 11===(e&&e.toString().length)}}})},{"mask-factory":"mask-factory","string-mask":3}],17:[function(e,t,n){var i=e("string-mask"),e=e("mask-factory"),a=new i("0000 0000 0000 0000");t.exports=e({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,16)},format:function(e){return(a.apply(e)||"").trim().replace(/[^0-9]$/,"")},validations:{creditCard:function(e){return 16===(e&&e.toString().length)}}})},{"mask-factory":"mask-factory","string-mask":3}],18:[function(e,t,n){function i(e){var o={"pt-br":"DD/MM/YYYY",ru:"DD.MM.YYYY"}[e.id]||"YYYY-MM-DD";return{restrict:"A",require:"ngModel",link:function(e,t,n,i){function a(e){var t;return i.$isEmpty(e)?e:(t=(t="object"!=typeof(t=e)&&!/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}([-+][0-9]{2}:[0-9]{2}|Z)$/.test(e.toString())?t:s(e).format(o)).replace(/[^0-9]/g,""),(r.apply(t)||"").trim().replace(/[^0-9]$/,""))}n.parse=n.parse||"true",o=n.uiDateMask||o;var r=new l(o.replace(/[YMD]/g,"0"));i.$formatters.push(a),i.$parsers.push(function(e){return i.$isEmpty(e)||(e=a(e),i.$viewValue!==e&&(i.$setViewValue(e),i.$render()),"false"===n.parse)?e:s(e,o).toDate()}),i.$validators.date=function(e,t){return!!i.$isEmpty(e)||s(t,o).isValid()&&t.length===o.length}}}}var s=e("moment"),l=e("string-mask");i.$inject=["$locale"],t.exports=i},{moment:2,"string-mask":3}],19:[function(e,t,n){e=angular.module("ui.utils.masks.global",[e("../helpers")]).directive("uiDateMask",e("./date/date")).directive("uiMoneyMask",e("./money/money")).directive("uiNumberMask",e("./number/number")).directive("uiPercentageMask",e("./percentage/percentage")).directive("uiScientificNotationMask",e("./scientific-notation/scientific-notation")).directive("uiTimeMask",e("./time/time")).directive("uiCreditCard",e("./credit-card/credit-card"));t.exports=e.name},{"../helpers":25,"./credit-card/credit-card":17,"./date/date":18,"./money/money":20,"./number/number":21,"./percentage/percentage":22,"./scientific-notation/scientific-notation":23,"./time/time":24}],20:[function(e,t,n){function i(m,g,v){return{restrict:"A",require:"ngModel",link:function(e,t,a,r){function n(e){e=0<e?l+new Array(e+1).join("0"):"",e="#"+u+"##0"+e;return angular.isDefined(a.uiCurrencyAfter)?e+=d:e=d+e,new _(e,{reverse:!0})}function i(e){var t,n,i;return r.$isEmpty(e)?e:(i=(i=(i=e.replace(/[^\d]+/g,"")).replace(/^[0]+([1-9])/,"$1"))||"0",h&&angular.isDefined(a.uiCurrencyAfter)&&0!==i&&(i=i.substring(0,i.length-1),h=!1),t=angular.isDefined(a.uiCurrencyAfter)?p.apply(i)+c:c+p.apply(i),angular.isDefined(a.uiNegativeNumber)&&(n="-"===e[0],"-"===e.slice(-1)^n)&&i&&(i*=-1,t="-"+t),e!==t&&(r.$setViewValue(t),r.$render()),t?parseInt(t.replace(/[^\d\-]+/g,""))/Math.pow(10,f):null)}var o,s,l=m.NUMBER_FORMATS.DECIMAL_SEP,u=m.NUMBER_FORMATS.GROUP_SEP,c=m.NUMBER_FORMATS.CURRENCY_SYM,d=" ",f=g(a.uiMoneyMask)(e),h=!1,p=(t.bind("keydown keypress",function(e){h=8===e.which}),angular.isDefined(a.uiDecimalDelimiter)&&(l=a.uiDecimalDelimiter),angular.isDefined(a.uiThousandsDelimiter)&&(u=a.uiThousandsDelimiter),angular.isDefined(a.uiHideGroupSep)&&(u=""),angular.isDefined(a.uiHideSpace)&&(d=""),angular.isDefined(a.currencySymbol)&&(c=a.currencySymbol,0===a.currencySymbol.length)&&(d=""),isNaN(f)&&(f=2),n(f=parseInt(f)));r.$formatters.push(function(e){var t;return r.$isEmpty(e)?e:(t=angular.isDefined(a.uiNegativeNumber)&&e<0?"-":"",e=v.prepareNumberToFormatter(e,f),angular.isDefined(a.uiCurrencyAfter)?t+p.apply(e)+c:t+c+p.apply(e))}),r.$parsers.push(i),a.uiMoneyMask&&e.$watch(a.uiMoneyMask,function(e){f=isNaN(e)?2:e,f=parseInt(f),p=n(f),i(r.$viewValue)}),a.min&&(r.$validators.min=function(e){return y.minNumber(r,e,o)},e.$watch(a.min,function(e){o=e,r.$validate()})),a.max&&(r.$validators.max=function(e){return y.maxNumber(r,e,s)},e.$watch(a.max,function(e){s=e,r.$validate()}))}}}var _=e("string-mask"),y=e("validators");i.$inject=["$locale","$parse","PreFormatters"],t.exports=i},{"string-mask":3,validators:"validators"}],21:[function(e,t,n){function i(f,h,p,m){return{restrict:"A",require:"ngModel",link:function(e,t,a,r){function n(e){var t,n,i;
1return r.$isEmpty(e)?null:(n=p.clearDelimitersAndLeadingZeros(e)||"0",t=c.apply(n),n=parseFloat(d.apply(n)),angular.isDefined(a.uiNegativeNumber)&&(i="-"===e[0],"-"===e.slice(-1)^i||"-"===e)&&(t="-"+(0!==(n*=-1)?t:"")),r.$viewValue!==t&&(r.$setViewValue(t),r.$render()),n)}var i,o,s=f.NUMBER_FORMATS.DECIMAL_SEP,l=f.NUMBER_FORMATS.GROUP_SEP,u=h(a.uiNumberMask)(e),c=(angular.isDefined(a.uiHideGroupSep)&&(l=""),isNaN(u)&&(u=2),m.viewMask(u,s,l)),d=m.modelMask(u);t.on("blur",function(){"-"===r.$viewValue&&(r.$setViewValue(""),r.$render())}),r.$formatters.push(function(e){var t;return r.$isEmpty(e)?e:(t=angular.isDefined(a.uiNegativeNumber)&&e<0?"-":"",e=p.prepareNumberToFormatter(e,u),t+c.apply(e))}),r.$parsers.push(n),a.uiNumberMask&&e.$watch(a.uiNumberMask,function(e){u=isNaN(e)?2:e,c=m.viewMask(u,s,l),d=m.modelMask(u),n(r.$viewValue)}),a.min&&(r.$validators.min=function(e){return g.minNumber(r,e,i)},e.$watch(a.min,function(e){i=e,r.$validate()})),a.max&&(r.$validators.max=function(e){return g.maxNumber(r,e,o)},e.$watch(a.max,function(e){o=e,r.$validate()}))}}}var g=e("validators");i.$inject=["$locale","$parse","PreFormatters","NumberMasks"],t.exports=i},{validators:"validators"}],22:[function(e,t,n){function i(v,e,_,y){return{restrict:"A",require:"ngModel",link:function(e,t,n,i){function a(e){var t,n;return i.$isEmpty(e)?e:(t=c,n=h.multiplier,e=_.clearDelimitersAndLeadingZeros((parseFloat(e)*n).toFixed(t)),m.apply(e)+(d?"%":" %"))}function r(e){var t;return i.$isEmpty(e)?null:(t=_.clearDelimitersAndLeadingZeros(e)||"0",1<e.length&&-1===e.indexOf("%")&&(t=t.slice(0,t.length-1)),f&&1===e.length&&"%"!==e&&(t="0"),e=d?"%":" %",e=m.apply(t)+e,t=parseFloat(g.apply(t)),i.$viewValue!==e&&(i.$setViewValue(e),i.$render()),t)}var o,s,l=v.NUMBER_FORMATS.DECIMAL_SEP,u=v.NUMBER_FORMATS.GROUP_SEP,c=parseInt(n.uiPercentageMask),d=!1,f=!1,h=(t.bind("keydown keypress",function(e){f=8===e.which}),{multiplier:100,decimalMask:2}),p=(angular.isDefined(n.uiHideGroupSep)&&(u=""),angular.isDefined(n.uiHideSpace)&&(d=!0),angular.isDefined(n.uiPercentageValue)&&(h.multiplier=1,h.decimalMask=0),(c=isNaN(c)?2:c)+h.decimalMask),m=y.viewMask(c,l,u),g=y.modelMask(p);i.$formatters.push(a),i.$parsers.push(r),n.uiPercentageMask&&e.$watch(n.uiPercentageMask,function(e){c=isNaN(e)?2:e,angular.isDefined(n.uiPercentageValue)&&(h.multiplier=1,h.decimalMask=0),p=c+h.decimalMask,m=y.viewMask(c,l,u),g=y.modelMask(p),r(i.$viewValue)}),n.min&&(i.$validators.min=function(e){return b.minNumber(i,e,o)},e.$watch(n.min,function(e){o=e,i.$validate()})),n.max&&(i.$validators.max=function(e){return b.maxNumber(i,e,s)},e.$watch(n.max,function(e){s=e,i.$validate()}))}}}var b=e("validators");i.$inject=["$locale","$parse","PreFormatters","NumberMasks"],t.exports=i},{validators:"validators"}],23:[function(e,t,n){function i(e,s){var l=e.NUMBER_FORMATS.DECIMAL_SEP;return{restrict:"A",require:"ngModel",link:function(e,t,n,a){function i(e){if(a.$isEmpty(e))return e;"string"==typeof e?e=e.replace(l,"."):"number"==typeof e&&(e=e.toExponential(r));var t,e={integerPartOfSignificand:(e=(e=e).toString().match(/(-?[0-9]*)[\.]?([0-9]*)?[Ee]?([\+-]?[0-9]*)?/))[1],decimalPartOfSignificand:e[2],exponent:0|e[3]},n=e.integerPartOfSignificand||0,i=n.toString();return angular.isDefined(e.decimalPartOfSignificand)&&(i+=e.decimalPartOfSignificand),(1<=n||n<=-1)&&(angular.isDefined(e.decimalPartOfSignificand)&&e.decimalPartOfSignificand.length>r||0===r&&2<=i.length)&&(t=i.slice(r+1,i.length),i=i.slice(0,r+1)),n=o.apply(i),0!==e.exponent&&(t=e.exponent),angular.isDefined(t)&&(n+="e"+t),n}var r=s(n.uiScientificNotationMask)(e),o=function(e){var t="0";if(0<e){t+=l;for(var n=0;n<e;n++)t+="0"}return new u(t,{reverse:!0})}(r=isNaN(r)?2:r);a.$formatters.push(i),a.$parsers.push(function(e){var t;return a.$isEmpty(e)?e:(e=i(e),t=parseFloat(e.replace(l,".")),a.$viewValue!==e&&(a.$setViewValue(e),a.$render()),t)}),a.$validators.max=function(e){return a.$isEmpty(e)||e<Number.MAX_VALUE}}}}var u=e("string-mask");i.$inject=["$locale","$parse"],t.exports=i},{"string-mask":3}],24:[function(e,t,n){var u=e("string-mask");t.exports=function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,a){function i(e){return a.$isEmpty(e)?e:(e=e.replace(/[^0-9]/g,"").slice(0,s)||"",(l.apply(e)||"").replace(/[^0-9]$/,""))}
1var r="00:00:00",o=(r=angular.isDefined(n.uiTimeMask)&&"short"===n.uiTimeMask?"00:00":r).length,s=r.replace(":","").length,l=new u(r);a.$formatters.push(i),a.$parsers.push(function(e){var t;return a.$isEmpty(e)?e:(e=i(e),a.$viewValue!==(t=e)&&(a.$setViewValue(e),a.$render()),t)}),a.$validators.time=function(e){var t,n,i;return!!a.$isEmpty(e)||(i=e.toString().split(/:/).filter(function(e){return!!e}),t=parseInt(i[0]),n=parseInt(i[1]),i=parseInt(i[2]||0),e.toString().length===o&&t<24&&n<60&&i<60)}}}}},{"string-mask":3}],25:[function(e,t,n){var r=e("string-mask"),e=angular.module("ui.utils.masks.helpers",[]);t.exports=e.name,e.factory("PreFormatters",[function(){function n(e){return"0"===e?"0":e.replace(/^-/,"").replace(/^0*/,"").replace(/[^0-9]/g,"")}return{clearDelimitersAndLeadingZeros:n,prepareNumberToFormatter:function(e,t){return n(parseFloat(e).toFixed(t))}}}]).factory("NumberMasks",[function(){return{viewMask:function(e,t,n){var i="#"+n+"##0";if(0<e){i+=t;for(var a=0;a<e;a++)i+="0"}return new r(i,{reverse:!0})},modelMask:function(e){var t="###0";if(0<e){t+=".";for(var n=0;n<e;n++)t+="0"}return new r(t,{reverse:!0})}}}])},{"string-mask":3}],26:[function(e,t,n){var i=e("string-mask"),e=e("mask-factory"),a=new i("(000) 000-0000"),r=new i("+00-00-000-000000");t.exports=e({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"")},format:function(e){return(e.length<11?a.apply(e)||"":r.apply(e)).trim().replace(/[^0-9]$/,"")},validations:{usPhoneNumber:function(e){return e&&9<e.toString().length}}})},{"mask-factory":"mask-factory","string-mask":3}],27:[function(e,t,n){e=angular.module("ui.utils.masks.us",[e("../helpers")]).directive("uiUsPhoneNumber",e("./phone/us-phone"));t.exports=e.name},{"../helpers":25,"./phone/us-phone":26}],"mask-factory":[function(e,t,n){t.exports=function(a){return function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,i){i.$formatters.push(function(e){return i.$isEmpty(e)?e:(e=a.clearValue(e),a.format(e))}),i.$parsers.push(function(e){var t;return i.$isEmpty(e)||(e=a.clearValue(e),t=a.format(e),i.$viewValue!==t&&(i.$setViewValue(t),i.$render()),angular.isUndefined(a.getModelValue))?e:(e=typeof i.$modelValue,a.getModelValue(t,e))}),angular.forEach(a.validations,function(n,e){i.$validators[e]=function(e,t){return i.$isEmpty(e)||n(e,t)}})}}}}},{}],validators:[function(e,t,n){t.exports={maxNumber:function(e,t,n){n=parseFloat(n,10);return e.$isEmpty(t)||isNaN(n)||t<=n},minNumber:function(e,t,n){n=parseFloat(n,10);return e.$isEmpty(t)||isNaN(n)||n<=t}}},{}]},{},[4])},{}],397:[function(e,t,n){"use strict";angular.module("ngLocale",[],["$provide",function(e){var o="one",s="other";e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],ERANAMES:["f.Kr.","e.Kr."],ERAS:["f.Kr.","e.Kr."],FIRSTDAYOFWEEK:0,MONTH:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],SHORTDAY:["søn.","man.","tir.","ons.","tor.","fre.","lør."],SHORTMONTH:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],STANDALONEMONTH:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],WEEKENDRANGE:[5,6],fullDate:"EEEE 'den' d. MMMM y",longDate:"d. MMMM y",medium:"d. MMM y HH.mm.ss",mediumDate:"d. MMM y",mediumTime:"HH.mm.ss",short:"dd/MM/y HH.mm",shortDate:"dd/MM/y",shortTime:"HH.mm"},NUMBER_FORMATS:{CURRENCY_SYM:"kr.",DECIMAL_SEP:",",GROUP_SEP:".",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:" ¤",posPre:"",posSuf:" ¤"}]},id:"da-dk",localeID:"da_DK",pluralCat:function(e,t){var n,i,a=0|e,r=(n=e,void 0===(t=t)&&(t=Math.min((i=n,-1==(r=(i+="").indexOf("."))?0:i.length-r-1),3)),i=Math.pow(10,t),{v:t,f:(n*i|0)%i}),t=function(e,t){if(0===t)return{w:0,t:0};for(;t%10==0;)t/=10,e--;return{w:e,t:t}}(r.v,r.f);return 1==e||0!=t.t&&(0==a||1==a)?o:s}})}])},{}],396:[function(e,t,n){"use strict";function i(e,r,t){var o=t.baseHref(),s=e[0];return function(e,t,n){var i=(n=n||{}).expires,a=l.isDefined(n.path)?n.path:o;l.isUndefined(t)&&(i="Thu, 01 Jan 1970 00:00:00 GMT",t=""),l.isString(i)&&(i=new Date(i)),t=(t=encodeURIComponent(e)+"="+encodeURIComponent(t))+(a?";path="+a:"")+(n.domain?";domain="+n.domain:""),4096<(n=(t=(t=(t+=i?";expires="+i.toUTCString():"")+(n.secure?";secure":""))+(n.samesite?";samesite="+n.samesite:"")).length+1)&&r.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+n+" > 4096 bytes)!"),s.cookie=t}}var l;window,(l=window.angular).module("ngCookies",["ng"]).info({angularVersion:"1.8.3"}).provider("$cookies",[function(){var a=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(t,i){return{get:function(e){return t()[e]},getObject:function(e){return(e=this.get(e))&&l.fromJson(e)},getAll:function(){return t()},put:function(e,t,n){i(e,t,n?l.extend({},a,n):a)},putObject:function(e,t,n){this.put(e,l.toJson(t),n)},remove:function(e,t){i(e,void 0,t?l.extend({},a,t):a)}}}]}]),i.$inject=["$document","$log","$browser"],l.module("ngCookies").provider("$$cookieWriter",function(){this.$get=i})},{}],395:[function(n,i,a){"use strict";function u(e,t,n){if(!e)throw r("areq",t||"?",n||"required")}function k(e,t){return e||t?e?t?(e=he(e)?e.join(" "):e)+" "+(t=he(t)?t.join(" "):t):e:t:""}function te(e,n,i){var a="";return e=he(e)?e:e&&q(e)&&e.length?e.split(/\s+/):[],fe(e,function(e,t){e&&0<e.length&&(a=a+(0<t?" ":"")+(i?n+e:e+n))}),a}function B(e){if(e instanceof K)switch(e.length){case 0:return e;case 1:if(1===e[0].nodeType)return e;break;default:return K(c(e))}if(1===e.nodeType)return K(e)}function c(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(1===n.nodeType)return n}}function U(o){return function(e,t){var n,i,a,r;t.addClass&&(n=o,i=t.addClass,fe(e,function(e){n.addClass(e,i)}),t.addClass=null),t.removeClass&&(a=o,r=t.removeClass,fe(e,function(e){a.removeClass(e,r)}),t.removeClass=null)}}function ne(e){var t;return(e=e||{}).$$prepared||(t=e.domOperation||pe,e.domOperation=function(){e.$$domOperationFired=!0,t(),t=pe},e.$$prepared=!0),e}function ie(e,t){ae(e,t),ye(e,t)}function ae(e,t){t.from&&(e.css(t.from),t.from=null)}function ye(e,t){t.to&&(e.css(t.to),t.to=null)}function W(e,t,n){var a,i,r,o,s=t.options||{},l=(n=n.options||{},(s.addClass||"")+" "+(n.addClass||"")),u=(s.removeClass||"")+" "+(n.removeClass||"");function c(e){q(e)&&(e=e.split(" "));var t={};return fe(e,function(e){e.length&&(t[e]=!0)}),t}return a=e.attr("class"),i=l,u=u,r={},a=c(a),i=c(i),fe(i,function(e,t){r[t]=1}),u=c(u),fe(u,function(e,t){r[t]=1===r[t]?null:-1}),o={addClass:"",removeClass:""},fe(r,function(e,t){var n,i;1===e?(n="addClass",i=!a[t]||a[t+"-remove"]):-1===e&&(n="removeClass",i=a[t]||a[t+"-add"]),i&&(o[n].length&&(o[n]+=" "),o[n]+=t)}),e=o,n.preparationClasses&&(s.preparationClasses=Y(n.preparationClasses,s.preparationClasses),delete n.preparationClasses),l=s.domOperation!==pe?s.domOperation:null,f(s,n),l&&(s.domOperation=l),s.addClass=e.addClass||null,s.removeClass=e.removeClass||null,t.addClass=s.addClass,t.removeClass=s.removeClass,s}function re(e){return e instanceof K?e[0]:e}function oe(e,t){var t=t?"paused":"",n=ce+"PlayState";return se(e,[n,t]),[n,t]}function se(e,t){e.style[t[0]]=t[1]}function Y(e,t){return e?t?e+" "+t:e:t}function be(e,t,n){var a=Object.create(null),r=e.getComputedStyle(t)||{};return fe(n,function(e,t){var n,i,e=r[e];e&&(("-"===(n=e.charAt(0))||"+"===n||0<=n)&&(i=0,n=(n=e).split(/\s*,\s*/),fe(n,function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,i=i?Math.max(e,i):e}),e=i),0===e&&(e=null),a[t]=e)}),a}function le(e){return 0===e||null!=e}function ke(e,t){var n=ue,e=e+"s";return t?n+="Duration":e+=" linear all",[n,e]}function we(t,n,e){fe(e,function(e){t[e]=z(t[e])?t[e]:n.style.getPropertyValue(e)})}var d,e,ue,ce,de,f,fe,he,z,h,y,G,q,X,K,pe,Se,xe,me,ge,ve,t,r,_e,o,Ce;d=window,e=window.angular,Se=void 0===d.ontransitionend&&void 0!==d.onwebkittransitionend?(ue="WebkitTransition","webkitTransitionEnd transitionend"):(ue="transition","transitionend"),xe=void 0===d.onanimationend&&void 0!==d.onwebkitanimationend?(ce="WebkitAnimation","webkitAnimationEnd animationend"):(ce="animation","animationend"),me=ce+"Delay",ge=ce+"Duration",ve=ue+"Delay",t=ue+"Duration",r=e.$$minErr("ng"),_e=function(e,t){t=t?"-"+t+"s":"";return se(e,[ve,t]),[ve,t]},o={transitionDuration:t,transitionDelay:ve,transitionProperty:ue+"Property",animationDuration:ge,animationDelay:me,animationIterationCount:ce+"IterationCount"},Ce={transitionDuration:t,transitionDelay:ve,animationDuration:ge,animationDelay:me},e.module("ngAnimate",[],function(){pe=e.noop,de=e.copy,f=e.extend,K=e.element,fe=e.forEach,he=e.isArray,q=e.isString,G=e.isObject,X=e.isUndefined,z=e.isDefined,y=e.isFunction,h=e.isElement}).info({angularVersion:"1.8.3"}).directive("ngAnimateSwap",["$animate",function(s){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link:function(e,n,t,i,a){var r,o;e.$watchCollection(t.ngAnimateSwap||t.for,function(e){r&&s.leave(r),o&&(o.$destroy(),o=null),!e&&0!==e||a(function(e,t){r=e,o=t,s.enter(e,null,n)})})}}}]).directive("ngAnimateChildren",["$interpolate",function(r){return{link:function(e,t,n){function i(e){t.data("$$ngAnimateChildren","on"===e||"true"===e)}var a=n.ngAnimateChildren;q(a)&&0===a.length?t.data("$$ngAnimateChildren",!0):(i(r(a)(e)),n.$observe("ngAnimateChildren",i))}}}]).factory("$$rAFScheduler",["$$rAF",function(n){function e(e){r=r.concat(e),i()}function i(){if(r.length){for(var e=r.shift(),t=0;t<e.length;t++)e[t]();a||n(function(){a||i()})}}var a,r=e.queue=[];return e.waitUntilQuiet=function(e){a&&a(),a=n(function(){a=null,e(),i()})},e}]).provider("$$animateQueue",["$animateProvider",function(l){function N(e){return{addClass:e.addClass,removeClass:e.removeClass,from:e.from,to:e.to}}function a(e,t){var n;if(e&&t)return n=function(e){if(!e)return null;e=e.split(" ");var t=Object.create(null);return fe(e,function(e){t[e]=!0}),t}(t),e.split(" ").some(function(e){return n[e]})}function j(e,t,n){return i[e].some(function(e){return e(t,n)})}function V(e,t){var n=0<(e.addClass||"").length,e=0<(e.removeClass||"").length;return t?n&&e:n||e}var i=this.rules={skip:[],cancel:[],join:[]};i.join.push(function(e,t){return!e.structural&&V(e)}),i.skip.push(function(e,t){return!e.structural&&!V(e)}),i.skip.push(function(e,t){return"leave"===t.event&&e.structural}),i.skip.push(function(e,t){return t.structural&&2===t.state&&!e.structural}),i.cancel.push(function(e,t){return t.structural&&e.structural}),i.cancel.push(function(e,t){return 2===t.state&&e.structural}),i.cancel.push(function(e,t){var n,i;return!(t.structural||(n=e.addClass,e=e.removeClass,i=t.addClass,t=t.removeClass,X(n)&&X(e))||X(i)&&X(t))&&(a(n,t)||a(e,i))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(b,k,w,S,e,x,C,t,T,n,E){function a(e){L.delete(e.target)}function r(e,t,n){var i=c(t);return e.filter(function(e){return!(e.node===i&&(!n||e.callback===n))})}function o(i,a,e){function r(e,o,s,l){n(function(){t=d,n=c,a=[],(e=D[i=o])&&fe(e,function(e){(H.call(e.node,n)||"leave"===i&&H.call(e.node,t))&&a.push(e.callback)});var t,n,i,a,e,r=a;r.length?b(function(){fe(r,function(e){e(u,s,l)}),"close"!==s||c.parentNode||F.off(c)}):"close"!==s||c.parentNode||F.off(c)}),e.progress(o,s,l)}function o(e){var t=u,n=s;n.preparationClasses&&(t.removeClass(n.preparationClasses),n.preparationClasses=null),n.activeClasses&&(t.removeClass(n.activeClasses),n.activeClasses=null),$(u,s),ie(u,s),s.domOperation(),l.complete(!e)}var t,s=de(e),u=B(i),c=re(u),d=c&&c.parentNode,s=ne(s),l=new C,n=(t=!1,function(e){t?e():k.$$postDigest(function(){t=!0,e()})});if(he(s.addClass)&&(s.addClass=s.addClass.join(" ")),s.addClass&&!q(s.addClass)&&(s.addClass=null),he(s.removeClass)&&(s.removeClass=s.removeClass.join(" ")),s.removeClass&&!q(s.removeClass)&&(s.removeClass=null),s.from&&!G(s.from)&&(s.from=null),s.to&&!G(s.to)&&(s.to=null),I&&c&&P(c,a,e)&&R(c,s)){var f,h,p,m,g=0<=["enter","move","leave"].indexOf(a),v=E(),_=v||L.get(c),y=!!(e=!_&&M.get(c)||{}).state;if(_=_||y&&1===e.state?_:!function(e,t,n){n=S[0].body;
1var i,a=re(w),r=e===n||"HTML"===e.nodeName,o=e===a,s=!1,l=L.get(e);for((e=K.data(e,"$ngAnimatePin"))&&(t=re(e));t&&(o=o||t===a,1===t.nodeType);){if(e=M.get(t)||{},!s){var u=L.get(t);if(!0===u&&!1!==l){l=!0;break}!1===u&&(l=!1),s=e.structural}if((X(i)||!0===i)&&(e=K.data(t,"$$ngAnimateChildren"),z(e))&&(i=e),s&&!1===i)break;if((r=r||t===n)&&o)break;t=!o&&(e=K.data(t,"$ngAnimatePin"))?re(e):t.parentNode}return(!s||i)&&!0!==l&&o&&r}(c,d,a))v&&r(l,a,"start",N(s)),o(),v&&r(l,a,"close",N(s));else{if(g&&(_=(_=c).querySelectorAll("[data-ng-animate]"),fe(_,function(e){var t=parseInt(e.getAttribute("data-ng-animate"),10),n=M.get(e);if(n)switch(t){case 2:n.runner.end();case 1:M.delete(e)}})),v={structural:g,element:u,event:a,addClass:s.addClass,removeClass:s.removeClass,close:o,options:s,runner:l},y){if(j("skip",v,e))return 2===e.state?(o(),l):(W(u,e,v),e.runner);if(j("cancel",v,e))if(2===e.state)e.runner.end();else{if(!e.structural)return W(u,e,v),e.runner;e.close()}else if(j("join",v,e)){if(2!==e.state)return _=T,f=u,p=s,_="",(h=g?a:null)&&(_=te(h,"ng-",!0)),p.addClass&&(_=Y(_,te(p.addClass,"-add"))),(_=p.removeClass?Y(_,te(p.removeClass,"-remove")):_).length&&(p.preparationClasses=_,f.addClass(_)),a=v.event=e.event,s=W(u,e,v),e.runner;W(u,v,{})}}else W(u,v,{});(y=(y=v.structural)||"animate"===v.event&&0<Object.keys(v.options.to||{}).length||V(v))?(m=(e.counter||0)+1,v.counter=m,O(c,1,v),k.$$postDigest(function(){u=B(i);var e=!(t=M.get(c)),t=t||{},n=0<(u.parent()||[]).length&&("animate"===t.event||t.structural||V(t));e||t.counter!==m||!n?(e&&($(u,s),ie(u,s)),(e||g&&t.event!==a)&&(s.domOperation(),l.end()),n||A(c)):(a=!t.structural&&V(t,!0)?"setClass":t.event,O(c,2),t=x(u,a,t.options),l.setHost(t),r(l,a,"start",N(s)),t.done(function(e){o(!e),(e=M.get(c))&&e.counter===m&&A(c),r(l,a,"close",N(s))}))})):(o(),A(c))}}else o();return l}function A(e){e.removeAttribute("data-ng-animate"),M.delete(e)}function O(e,t,n){(n=n||{}).state=t,e.setAttribute("data-ng-animate",t),n=(t=M.get(e))?f(t,n):n,M.set(e,n)}var M=new e,L=new e,I=null,i=k.$watch(function(){return 0===t.totalPendingRequests},function(e){e&&(i(),k.$$postDigest(function(){k.$$postDigest(function(){null===I&&(I=!0)})}))}),D=Object.create(null),s=(e=l.customFilter(),l.classNameFilter()),P=(n=function(){return!0},e||n),R=s?function(e,t){e=[e.getAttribute("class"),t.addClass,t.removeClass].join(" ");return s.test(e)}:n,$=U(T),H=d.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},F={on:function(e,t,n){var i=c(t);D[e]=D[e]||[],D[e].push({node:i,callback:n}),K(t).on("$destroy",function(){M.get(i)||F.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||q(e)){var i=D[e];i&&(D[e]=1===arguments.length?null:r(i,t,n))}else for(i in t=e,D)D[i]=r(D[i],t)},pin:function(e,t){u(h(e),"element","not an element"),u(h(t),"parentElement","not an element"),e.data("$ngAnimatePin",t)},push:function(e,t,n,i){return(n=n||{}).domOperation=i,o(e,t,n)},enabled:function(e,t){var n,i=arguments.length;return 0===i?t=!!I:h(e)?(n=re(e),1===i?t=!L.get(n):(L.has(n)||K(e).on("$destroy",a),L.set(n,!t))):t=I=!!e,t}};return F}]}]).provider("$$animateCache",function(){var r=0,i=Object.create(null);this.$get=[function(){return{cacheKey:function(e,t,n,i){var a=e.parentNode;return e=[a.$$ngAnimateParentKey||(a.$$ngAnimateParentKey=++r),t,e.getAttribute("class")],n&&e.push(n),i&&e.push(i),e.join(" ")},containsCachedAnimationWithoutDuration:function(e){return(e=i[e])&&!e.isValid||!1},flush:function(){i=Object.create(null)},count:function(e){return(e=i[e])?e.total:0},get:function(e){return(e=i[e])&&e.value},put:function(e,t,n){i[e]?(i[e].total++,i[e].value=t):i[e]={total:1,value:t,isValid:n}}}}]}).provider("$$animation",["$animateProvider",function(e){var b=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(c,d,f,h,p,m,g){function v(e){for(var r={children:[]},o=new p,t=0;t<e.length;t++){var n=e[t];o.set(n.domNode,e[t]={domNode:n.domNode,element:n.element,fn:n.fn,children:[]})}for(t=0;t<e.length;t++)!function e(t){if(!t.processed){t.processed=!0;var n,i=t.domNode,a=i.parentNode;for(o.set(i,t);a;){if(n=o.get(a)){n.processed||(n=e(n));break}a=a.parentNode}(n||r).children.push(t)}return t}(e[t]);for(var i=r,a=[],s=[],l=0;l<i.children.length;l++)s.push(i.children[l]);i=s.length;var u=0,c=[];for(l=0;l<s.length;l++){var d=s[l];
1i<=0&&(i=u,u=0,a.push(c),c=[]),c.push(d),d.children.forEach(function(e){u++,s.push(e)}),i--}return c.length&&a.push(c),a}var _=[],y=U(c);return function(t,n,l){function u(s){var l=[],u={},c=(fe(s,function(e,n){var t,i,a,r=re(e.element),o=0<=["enter","move"].indexOf(e.event);(r=e.structural?(t=(t=r).hasAttribute("ng-animate-ref")?[t]:t.querySelectorAll("[ng-animate-ref]"),i=[],fe(t,function(e){var t=e.getAttribute("ng-animate-ref");t&&t.length&&i.push(e)}),i):[]).length?(a=o?"to":"from",fe(r,function(e){var t=e.getAttribute("ng-animate-ref");u[t]=u[t]||{},u[t][a]={animationID:n,element:K(e)}})):l.push(e)}),{}),d={};return fe(u,function(e,t){var n,i,a,r,o=e.from,e=e.to;o&&e?(n=s[o.animationID],i=s[e.animationID],a=o.animationID.toString(),d[a]||((r=d[a]={structural:!0,beforeStart:function(){n.beforeStart(),i.beforeStart()},close:function(){n.close(),i.close()},classes:function(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],i=0;i<e.length;i++){var a=e[i];if("ng-"!==a.substring(0,3))for(var r=0;r<t.length;r++)if(a===t[r]){n.push(a);break}}return n.join(" ")}(n.classes,i.classes),from:n,to:i,anchors:[]}).classes.length?l.push(r):(l.push(n),l.push(i))),d[a].anchors.push({out:o.element,in:e.element})):(e=(o=(o||e).animationID).toString(),c[e]||(c[e]=!0,l.push(s[o])))}),l}function i(){var e=t.data("$$animationRunner");!e||"leave"===n&&l.$$domOperationFired||e.end()}function e(e){t.off("$destroy",i),t.removeData("$$animationRunner"),y(t,l),ie(t,l),l.domOperation(),r&&c.removeClass(t,r),s.complete(!e)}l=ne(l);var a,r,o=0<=["enter","move","leave"].indexOf(n),s=new h({end:function(){e()},cancel:function(){e(!0)}});return b.length?(a=k(t.attr("class"),k(l.addClass,l.removeClass)),(r=l.tempClasses)&&(a+=" "+r,l.tempClasses=null),o&&t.data("$$animatePrepareClasses","ng-"+n+"-prepare"),t.data("$$animationRunner",s),_.push({element:t,classes:a,event:n,structural:o,options:l,beforeStart:function(){r=(r?r+" ":"")+"ng-animate",c.addClass(t,r);var e=t.data("$$animatePrepareClasses");e&&c.removeClass(t,e)},close:e}),t.on("$destroy",i),1<_.length||d.$$postDigest(function(){var t=[],e=(fe(_,function(e){e.element.data("$$animationRunner")?t.push(e):e.close()}),_.length=0,u(t)),n=[];fe(e,function(r){var e=(r.from||r).element,t=l.addClass,o=g.cacheKey(e[0],r.event,(t?t+" ":"")+"ng-animate",l.removeClass);n.push({element:e,domNode:re(e),fn:function(){var e,t,n,i=r.close;function a(e){(e=e.data("$$animationRunner"))&&e.setHost(n)}!g.containsCachedAnimationWithoutDuration(o)&&(r.beforeStart(),e=(r.anchors?r.from.element||r.to.element:r.element).data("$$animationRunner")&&(t=function(e){for(var t=b.length-1;0<=t;t--){var n=f.get(b[t])(e);if(n)return n}}(r))?t.start:e)?((e=e()).done(function(e){i(!e)}),n=e,(t=r).from&&t.to?(a(t.from.element),a(t.to.element)):a(t.element)):i()}})});for(var e=v(n),i=0;i<e.length;i++)for(var a=e[i],r=0;r<a.length;r++){var o=a[r],s=o.element;e[i][r]=o.fn,0===i?s.removeData("$$animatePrepareClasses"):(o=s.data("$$animatePrepareClasses"))&&c.addClass(s,o)}m(e)})):e(),s}}]}]).provider("$animateCss",["$animateProvider",function(e){this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(Y,z,G,q,X,n,K,t,Z){function J(e){i.push(e),t.waitUntilQuiet(function(){X.flush();for(var e=n(),t=0;t<i.length;t++)i[t](e);i.length=0})}function Q(e,t,n,i){return(t=X.get(n))||"infinite"===(t=be(Y,e,o)).animationIterationCount&&(t.animationIterationCount=1),X.put(n,t,i||0<t.transitionDuration||0<t.animationDuration),n=(e=t).animationDelay,i=e.transitionDelay,e.maxDelay=n&&i?Math.max(n,i):n||i,e.maxDuration=Math.max(e.animationDuration*e.animationIterationCount,e.transitionDuration),e}var ee=U(z),i=[];return function(o,e){function t(){s()}function $(){s(!0)}function s(e){var t;d||a&&i||(i=!(d=!0),S&&!l.$$skipPreparationClasses&&z.removeClass(o,S),O&&z.removeClass(o,O),oe(c,!1),_e(c,!1),fe(g,function(e){c.style[e[0]]=""}),ee(o,l),ie(o,l),Object.keys(u).length&&fe(u,function(e,t){e?c.style.setProperty(t,e):c.style.removeProperty(t)}),l.onDone&&l.onDone(),_&&_.length&&o.off(_.join(" "),F),(t=o.data("$$animateCss"))&&(q.cancel(t[0].timer),o.removeData("$$animateCss")),r&&r.complete(!e))}function H(e){R.blockTransition&&_e(c,e),R.blockKeyframeAnimation&&oe(c,!!e)}function n(){return r=new G({end:t,cancel:$}),J(pe),s(),{$$willAnimate:!1,start:function(){return r},end:t}}function F(e){e.stopPropagation();var t=e.originalEvent||e;t.target===c&&(e=t.$manualTimeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3)),Math.max(e-m,0)>=h)&&P<=t&&(a=!0,s())}function N(){function e(){if(!d){if(H(!1),fe(g,function(e){c.style[e[0]]=e[1]}
1),ee(o,l),z.addClass(o,O),R.recalculateTimingStyles){if(j=c.getAttribute("class")+" "+S,A=X.cacheKey(c,y,l.addClass,l.removeClass),L=Q(c,j,A,!1),I=L.maxDelay,D=Math.max(I,0),0===(P=L.maxDuration))return void s();R.hasTransitions=0<L.transitionDuration,R.hasAnimations=0<L.animationDuration}R.applyAnimationDelay&&(I="boolean"!=typeof l.delay&&le(l.delay)?parseFloat(l.delay):I,D=Math.max(I,0),L.animationDelay=I,M=[me,I+"s"],g.push(M),c.style[M[0]]=M[1]),h=1e3*D,p=1e3*P,l.easing&&(i=l.easing,R.hasTransitions&&(n=ue+"TimingFunction",g.push([n,i]),c.style[n]=i),R.hasAnimations)&&(n=ce+"TimingFunction",g.push([n,i]),c.style[n]=i),L.transitionDuration&&_.push(Se),L.animationDuration&&_.push(xe),m=Date.now();var e,t=h+1.5*p,n=m+t,i=o.data("$$animateCss")||[],a=!0;i.length&&((a=n>(e=i[0]).expectedEndTime)?q.cancel(e.timer):i.push(s)),a&&(t=q(r,t,!1),i[0]={timer:t,expectedEndTime:n},i.push(s),o.data("$$animateCss",i)),_.length&&o.on(_.join(" "),F),l.to&&(l.cleanupStyles&&we(u,c,Object.keys(l.to)),ye(o,l))}}function r(){var e=o.data("$$animateCss");if(e){for(var t=1;t<e.length;t++)e[t]();o.removeData("$$animateCss")}}var t,n;d||(c.parentNode?(t=function(e){var t,n;a?i&&e&&(i=!1,s()):(i=!e,L.animationDuration&&(e=oe(c,i),i?g.push(e):(n=(t=g).indexOf(e),0<=e&&t.splice(n,1))))},(n=0<W&&(L.transitionDuration&&0===x.transitionDuration||L.animationDuration&&0===x.animationDuration)&&Math.max(x.animationDelay,x.transitionDelay))?q(e,Math.floor(n*W*1e3),!1):e(),f.resume=function(){t(!0)},f.pause=function(){t(!1)}):s())}var l=e||{},u=(l.$$prepared||(l=ne(de(l))),{}),c=re(o);if(!c||!c.parentNode||!Z.enabled())return n();var d,i,a,r,f,h,p,m,g=[],e=o.attr("class"),v=(b={},(v=l)&&(v.to||v.from)&&(b.to=v.to,b.from=v.from),b),_=[];if(0===l.duration||!K.animations&&!K.transitions)return n();var y=l.event&&he(l.event)?l.event.join(" "):l.event,b=y&&l.structural,k="",w="",S=(b?k=te(y,"ng-",!0):y&&(k=y),l.addClass&&(w+=te(l.addClass,"-add")),l.removeClass&&(w.length&&(w+=" "),w+=te(l.removeClass,"-remove")),l.applyClassesEarly&&w.length&&ee(o,l),[k,w].join(" ").trim()),j=e+" "+S,e=v.to&&0<Object.keys(v.to).length;if(!(0<(l.keyframeStyle||"").length||e||S))return n();var x,C,T,V,B,E,U,A=X.cacheKey(c,y,l.addClass,l.removeClass);if(X.containsCachedAnimationWithoutDuration(A))return S=null,n();x=0<l.stagger?{transitionDelay:v=parseFloat(l.stagger),animationDelay:v,transitionDuration:0,animationDuration:0}:(C=c,T=S,B=Ce,U="stagger-"+(V=A),0<X.count(V)&&((E=X.get(U))||(T=te(T,"-stagger"),z.addClass(C,T),(E=be(Y,C,B)).animationDuration=Math.max(E.animationDuration,0),E.transitionDuration=Math.max(E.transitionDuration,0),z.removeClass(C,T),X.put(U,E,!0))),E||{}),l.$$skipPreparationClasses||z.addClass(o,S),l.transitionStyle&&(v=[ue,l.transitionStyle],se(c,v),g.push(v)),0<=l.duration&&(v=0<c.style[ue].length,v=ke(l.duration,v),se(c,v),g.push(v)),l.keyframeStyle&&(v=[ce,l.keyframeStyle],se(c,v),g.push(v));var O,M,W=x?0<=l.staggerIndex?l.staggerIndex:X.count(A):0,L=((k=0===W)&&!l.skipBlocking&&_e(c,9999),Q(c,j,A,!b)),I=L.maxDelay,D=Math.max(I,0),P=L.maxDuration,R={};return R.hasTransitions=0<L.transitionDuration,R.hasAnimations=0<L.animationDuration,R.hasTransitionAll=R.hasTransitions&&"all"===L.transitionProperty,R.applyTransitionDuration=e&&(R.hasTransitions&&!R.hasTransitionAll||R.hasAnimations&&!R.hasTransitions),R.applyAnimationDuration=l.duration&&R.hasAnimations,R.applyTransitionDelay=le(l.delay)&&(R.applyTransitionDuration||R.hasTransitions),R.applyAnimationDelay=le(l.delay)&&R.hasAnimations,R.recalculateTimingStyles=0<w.length,(R.applyTransitionDuration||R.applyAnimationDuration)&&(P=l.duration?parseFloat(l.duration):P,R.applyTransitionDuration&&(R.hasTransitions=!0,L.transitionDuration=P,v=0<c.style[ue+"Property"].length,g.push(ke(P,v))),R.applyAnimationDuration)&&(R.hasAnimations=!0,L.animationDuration=P,g.push([ge,P+"s"])),0!==P||R.recalculateTimingStyles?(O=te(S,"-active"),null!=l.delay&&("boolean"!=typeof l.delay&&(M=parseFloat(l.delay),D=Math.max(M,0)),R.applyTransitionDelay&&g.push([ve,M+"s"]),R.applyAnimationDelay)&&g.push([me,M+"s"]),null==l.duration&&0<L.transitionDuration&&(
1R.recalculateTimingStyles=R.recalculateTimingStyles||k),h=1e3*D,p=1e3*P,l.skipBlocking||(R.blockTransition=0<L.transitionDuration,R.blockKeyframeAnimation=0<L.animationDuration&&0<x.animationDelay&&0===x.animationDuration),l.from&&(l.cleanupStyles&&we(u,c,Object.keys(l.from)),ae(o,l)),R.blockTransition||R.blockKeyframeAnimation?H(P):l.skipBlocking||_e(c,!1),{$$willAnimate:!0,end:t,start:function(){if(!d)return r=new G(f={end:t,cancel:$,resume:null,pause:null}),J(N),r}}):n()}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(e){e.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(p,e,m,t,n,i,a){function g(e){return e.replace(/\bng-\S+\b/g,"")}function v(e,t){return q(e)&&(e=e.split(" ")),q(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function r(e,t,f,n){var i=o(e),a=o(t),h=[];if(fe(n,function(e){function n(e){var n={},i=re(e).getBoundingClientRect();return fe(["width","height","top","left"],function(e){var t=i[e];switch(e){case"top":t+=_.scrollTop;break;case"left":t+=_.scrollLeft}n[e]=Math.floor(t)+"px"}),n}function i(){var e=v(t=g(o.attr("class")||""),d),t=v(d,t);return(e=p(c,{to:n(o),addClass:"ng-anchor-in "+e,removeClass:"ng-anchor-out "+t,delay:!0})).$$willAnimate?e:null}function a(){c.remove(),r.removeClass("ng-animate-shim"),o.removeClass("ng-animate-shim")}var t,r,o,s,l,u,c,d;t=f,r=e.out,o=e.in,c=K(re(r).cloneNode(!0)),d=g(c.attr("class")||""),r.addClass("ng-animate-shim"),o.addClass("ng-animate-shim"),c.addClass("ng-anchor"),y.append(c),(e=(t=(l=p(c,{addClass:"ng-anchor-out",delay:!0,from:n(r)})).$$willAnimate?l:null)||(s=i())?(u=t||s,{start:function(){function e(){n&&n.end()}var t,n=u.start();return n.done(function(){if(n=null,!s&&(s=i()))return(n=s.start()).done(function(){n=null,a(),t.complete()}),n;a(),t.complete()}),t=new m({end:e,cancel:e})}}):a())&&h.push(e)}),i||a||0!==h.length)return{start:function(){function e(){fe(t,function(e){e.end()})}var t=[],n=(i&&t.push(i.start()),a&&t.push(a.start()),fe(h,function(e){t.push(e.start())}),new m({end:e,cancel:e}));return m.all(t,function(e){n.complete(e)}),n}}}function o(e){var t=e.element,n=e.options||{};return e.structural&&(n.event=e.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===e.event)&&(n.onDone=n.domOperation),n.preparationClasses&&(n.event=Y(n.event,n.preparationClasses)),(e=p(t,n)).$$willAnimate?e:null}var _,y;return n.animations||n.transitions?(_=a[0].body,e=re(t),y=K(e.parentNode&&11===e.parentNode.nodeType||_.contains(e)?e:_),function(e){return e.from&&e.to?r(e.from,e.to,e.classes,e.anchors):o(e)}):pe}]}]).provider("$$animateJs",["$animateProvider",function(_){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(m,g,e){var v=U(e);return function(i,e,t,a){function r(){a.domOperation(),v(i,a)}function l(o,s,l,e,t){var n=[];return fe(e,function(e){var r=e[t];r&&n.push(function(){function t(e){n||(n=!0,(a||pe)(e),i.complete(!e))}var n=!1,i=new g({end:function(){t()},cancel:function(){t(!0)}}),a=function(e,t,n,i,a){switch(n){case"animate":t=[t,i.from,i.to,a];break;case"setClass":t=[t,h,p,a];break;case"addClass":t=[t,h,a];break;case"removeClass":t=[t,p,a];break;default:t=[t,a]}if(t.push(i),e=e.apply(e,t))if((e=y(e.start)?e.start():e)instanceof g)e.done(a);else if(y(e))return e;return pe}(r,o,s,l,function(e){t(!1===e)});return i})}),n}function n(e,t,n,i,a){var r,o,s=l(e,t,n,i,a);if(0!==(s=0===s.length&&("beforeSetClass"===a?(r=l(e,"removeClass",n,i,"beforeRemoveClass"),o=l(e,"addClass",n,i,"beforeAddClass")):"setClass"===a&&(r=l(e,"removeClass",n,i,"removeClass"),o=l(e,"addClass",n,i,"addClass")),r&&(s=s.concat(r)),o)?s.concat(o):s).length)return function(e){var n=[];return s.length&&fe(s,function(e){n.push(e())}),n.length?g.all(n,e):e(),function(t){fe(n,function(e){t?e.cancel():e.end()})}}}var o,s,u,c,d,f=!1,h=(3===arguments.length&&G(t)&&(a=t,t=null),a=ne(a),t||(t=i.attr("class")||"",a.addClass&&(t+=" "+a.addClass),a.removeClass&&(t+=" "+a.removeClass)),a.addClass),p=a.removeClass,t=function(e){e=he(e)?e:e.split(" ");for(var t=[],n={},i=0;i<e.length;i++){var a=e[i],r=_.$$registeredAnimations[a];r&&!n[a]&&(t.push(m.get(r)),n[a]=!0)}return t}(t);if(t.length&&(c="leave"===e?(u="leave","afterLeave"):(u="before"+e.charAt(0).toUpperCase()+e.substr(1),e),"enter"!==e&&"move"!==e&&(o=n(i,e,a,t,u)),s=n(i,e,a,t,c)),o||s)return{$$willAnimate:!0,end:function(){return d?d.end():(f=!0,r(),ie(i,a),(d=new g).complete(!0)),d},start:function(){function e(e){f=!0,r(),ie(i,a),d.complete(e)}var t,n;return d||(d=new g,n=[],o&&n.push(function(e){t=o(e)}),n.length?n.push(function(e){r(),e(!0)}):r(),s&&n.push(function(e){t=s(e)}),d.setHost({end:function(){f||((t||pe)(void 0),e(void 0))},cancel:function(){f||((t||pe)(!0),e(!0))}}),g.chain(n,e)),d}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,r){function n(e){return t(e.element,e.event,e.classes,e.options)}return function(e){var i,a;return e.from&&e.to?(i=n(e.from),a=n(e.to),i||a?{start:function(){function e(){return function(){fe(t,function(e){e.end()})}}var t=[],n=(i&&t.push(i.start()),a&&t.push(a.start()),r.all(t,function(e){n.complete(e)}),new r({end:e(),cancel:e()}));return n}}:void 0):n(e)}}]}])},{}],379:[function(e,t,n){"use strict";angular.module("collapseFeature",[]),angular.module("collapseFeature").directive("collapse",["$animate","$q","$parse","$injector",function(h,p,m,e){var g=e.has("$animateCss")?e.get("$animateCss"):null;return{link:function(t,n,e){var i=m(e.expanding),a=m(e.expanded),r=m(e.collapsing),o=m(e.collapsed),s=!1,l={},u={};function c(e){return s?{width:e.scrollWidth+"px"}:{height:e.scrollHeight+"px"}}function d(){n.removeClass("collapsing").addClass("collapse").css(l),a(t)}function f(){n.css(u),n.removeClass("collapsing").addClass("collapse"),o(t)}u=(s=!!("horizontal"in e))?(l={width:""},{width:"0"}):(l={height:""},{height:"0"}),t.$eval(e.collapse)||n.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(l),t.$watch(e.collapse,function(e){e?n.hasClass("collapse")||n.hasClass("in")?p.resolve(r(t)).then(function(){n.css(c(n[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),g?g(n,{removeClass:"in",to:u}).start().finally(f):h.removeClass(n,"in",{to:u}).then(f)},angular.noop):f():n.hasClass("collapse")&&n.hasClass("in")||p.resolve(i(t)).then(function(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),g?g(n,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:c(n[0])}).start().finally(d):h.addClass(n,"in",{css:{overflow:"hidden"},to:c(n[0])}).then(d)},angular.noop)})}}}])},{}],370:[function(e,t,n){"use strict";var i=a(e("highcharts-more-node")),o=a(e("escape-html"));
1function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,i,a,r){return n=(0,o.default)(n),a=(0,o.default)(a),"<div class='nyk-highcharts-tooltip__item'><span class='nyk-highcharts-tooltip__color' style='background-color:"+t+"'></span><span class='nyk-highcharts-tooltip__name'>"+n+"</span><span class='nyk-highcharts-tooltip__grow'></span><span class='nyk-highcharts-tooltip__value'>"+(null==r?e(i):"<span class='nyk-highcharts-tooltip__value__first'>"+e(i)+" "+a+"</span><br/>"+e(r))+" "+a+"</span></div>"}var r,l,e=["#c8273d","#2D4390","#419f43","#fd3fa4","#843a8e"];i.default.theme={colors:["#0f1e82","#4192dc","#07094a","#875ba3","#6972b1","#fb264e"],credits:!1,chart:{backgroundColor:null,spacingBottom:100,style:{fontFamily:"Open Sans, sans-serif"}},title:{align:"left",margin:40,style:{fontSize:"20px",fontWeight:"bold"}},subtitle:{align:"left"},tooltip:{shared:!0,headerFormat:"",borderWidth:0,backgroundColor:"transparent",shadow:!1,useHTML:!0,formatter:function(i){function n(e){var t=document.getElementsByTagName("highchart-culture"),n="da-DK";return 0<t.length?(n=t[0].getAttribute("culture"),t=e.toString(),parseFloat(t.replace(/,([^,]*)$/,".$1")).toLocaleString(n,{maximumFractionDigits:2,minimumFractionDigits:2})):a("number")(e,null!=i.options.decimals?i.options.decimals:2)}var e,a=angular.element(i.chart.renderTo).injector().get("$filter"),r="",t="";return null!=i.options.tooltipTitleFormatter&&(t='<div class="nyk-highcharts-tooltip__title">'+i.options.tooltipTitleFormatter.call(this)+"</div>"),void 0!==this.points&&0<this.points.length?(r='<div class="nyk-highcharts-tooltip">'+t,this.points.forEach(function(e){var t="";null!=e.series.tooltipOptions.valueSuffix&&(t=e.series.tooltipOptions.valueSuffix),null!=e.point.high?r+=s(n,e.color,e.series.name,e.y,t,e.point.high):r+=s(n,e.color,e.series.name,e.y,t)}),r+="</div>"):void 0!==this.point&&(e="",null!=this.point.series.tooltipOptions.valueSuffix&&(e=this.point.series.tooltipOptions.valueSuffix),r='<div class="nyk-highcharts-tooltip">'+t+s(n,this.point.color,this.point.name,this.point.y,e)+"</div>"),r}},legend:{enabled:!0,verticalAlign:"bottom",align:"left",y:100,itemDistance:40,itemMarginBottom:30,itemStyle:{fontWeight:"normal",fontSize:"12px"}},xAxis:{title:{align:"high",style:{fontWeight:"bold",color:"#000"}},labels:{style:{fontSize:"12px",color:"#000"}},lineColor:"#eae7e2",tickWidth:0},yAxis:{title:{align:"high",style:{fontWeight:"bold",color:"#000"}},labels:{style:{fontSize:"12px",color:"#000"}},lineWidth:0},plotOptions:{series:{dataLabels:{enabled:!1},states:{hover:{halo:{size:0}}}},line:{marker:{enabled:!1,symbol:"circle",states:{hover:{lineWidthPlus:0}}}},column:{},bar:{borderWidth:0,pointPadding:0,groupPadding:.25},area:{fillOpacity:1,marker:{enabled:!1,symbol:"circle",states:{hover:{enabled:!1}}}},pie:{showInLegend:!0}}};!function(){for(var e=!1,t=document.getElementsByTagName("link"),n=0;n<t.length;n++)-1<t[n].href.indexOf("sparinvest")&&(e=!0);return e}()?(r=!1,null!=(l=document.querySelectorAll("nk-joint-benefits-calculator"))&&0<l.length||r||i.default.setOptions(i.default.theme)):(i.default.theme.colors.length=0,Array.prototype.push.apply(i.default.theme.colors,e),i.default.setOptions(i.default.theme))},{"escape-html":406,"highcharts-more-node":407}],363:[function(e,t,n){"use strict";var i=r(e("./FindRaadgiver")),a=r(e("./Steps")),e=r(e("./ContactAdvisor"));function r(e){return e&&e.__esModule?e:{default:e}}angular.module("NYK-totalkredit",["ngAnimate"]).controller("FindRaadgiverController",i.default).controller("StepsController",a.default).controller("ContactAdvisorController",e.default)},{"./ContactAdvisor":359,"./FindRaadgiver":360,"./Steps":362}],362:[function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(n,"__esModule",{value:!0});(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(r,[{key:"init",value:function(e){this.anchors=e.anchors,this.fixedOnScroll()}},{key:"getListHeight",value:function(){return this.listElm.clientHeight+"px"}},{key:"fixedOnScroll",value:function(){if(void 0!==this.anchors)for(var e,t=0;t<this.anchors.length;t++)"#"!==this.anchors[t].id&&((e=document.querySelectorAll(this.anchors[t].id))&&0<e.length)&&(e=e[0].getBoundingClientRect().top+(window.scrollY||window.pageYOffset),this.anchors[t].distToTop=e);var n=this;angular.element(window).bind("scroll",function(){n.listDummyElm.getBoundingClientRect().top<=0?n.isFixed||(n.isFixed=!0,n.listDummyElm.style.height=n.getListHeight()):(n.isFixed=!1,n.listDummyElm.style.height="0px");for(var e=0,t=0;
1t<n.anchors.length;t++)n.anchors[t].active=!1,null!=n.anchors[t].distToTop&&n.anchors[t].distToTop<(window.scrollY||window.pageYOffset)&&(e=t);n.anchors[e].active=!0,n.$scope.$apply()})}}]);var a=r;function r(e,t){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.$scope=e,this.$element=t,this.listElm=document.querySelectorAll(".steps__anchor-list-container")[0],this.listDummyElm=document.querySelectorAll(".steps__anchor-list-container__dummy")[0],this.isFixed=!1,this.anchors=void 0}a.$inject=["$scope","$element"],n.default=a},{}],360:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=e("../../../beregnere-tk/javascript-tk-beregnere/components/util/tracking");i(o,[{key:"init",value:function(e){this.bankBranchUrl=e.bankBranchUrl,this.isBusiness=e.isBusiness||!1,this.availablePengeinstituts=e.availablePengeinstituts,this.initialMapOptions.zoom=e.startZoom||7,this.initialMapOptions.center.lat=56.27206,this.initialMapOptions.center.lng=10.3;var t,n=Number(e.startLatitude),i=Number(e.startLongitude),a=(null===e.startLatitude||""===e.startLatitude||isNaN(n)||(this.initialMapOptions.center.lat=n),null===e.startLongitude||""===e.startLongitude||isNaN(i)||(this.initialMapOptions.center.lng=i),this.initMap(),this.$location.search());a.filial||a.pengeinstitut||a.postnummer?(this.selectedPengeinstitut=this.availablePengeinstituts.filter(function(e){return e.value==a.pengeinstitut})[0]||this.availablePengeinstituts[0],this.zipcode=/^[0-9]{4}$/.test(a.postnummer)?a.postnummer:"",a.filial?this._getInitialBankBranch(a.filial):this._updateBankBranches()):(t=0,n=null,"object"==typeof CookieInformation&&"function"==typeof CookieInformation.getConsentGivenFor&&CookieInformation.getConsentGivenFor(this.cookieCategory)&&(t=this.$cookies.get(this.isBusiness?this.businessPengeinstitutIdCookie:this.pengeinstitutIdCookie),n=this.$cookies.get(this.isBusiness?this.businessBankBranchIdCookie:this.bankBranchIdCookie)),this.selectedPengeinstitut=this.availablePengeinstituts.filter(function(e){return e.value==t})[0]||this.availablePengeinstituts[0],n?this._getInitialBankBranch(n):this._updateBankBranches())}},{key:"_updateQueryString",value:function(){var e=this.selectedPengeinstitut&&0<this.selectedPengeinstitut.value?this.selectedPengeinstitut.value:null,e=(this.$location.search("pengeinstitut",e),this.zipcode||null),e=(this.$location.search("postnummer",e),this.selectedBankBranch?this.selectedBankBranch.filialID:null);this.$location.search("filial",e)}},{key:"_getInitialBankBranch",value:function(e){var n=this,t=this.bankBranchUrl,i=(t+="?filialId="+e,++this.asyncCounter);this.isLoading=!0,this.$http({url:t,method:"GET",headers:{}}).then(function(e){i===n.asyncCounter&&(n.isLoading=!1,n.bankBranches=[],angular.forEach(e.data,function(e,t){e.$id=t,n.bankBranches.push(e),n.selectedBankBranch=e}),n.findBankBranchesOnMap())},function(e){i===n.asyncCounter&&(n.isLoading=!1,n.bankBranches=[],n.resetMap()),console.log("Search error:"+e.data)})}},{key:"_updateBankBranches",value:function(){var e,t,n=this;this._updateQueryString(),this.toggleDetailPanel("hide"),this.zipcode||0<this.selectedPengeinstitut.value?this.selectedPengeinstitut.external?(this.bankBranches=[],this.selectedBankBranch=null,this.createCookies(),this.resetMap(),this.showExternalContactForm()):(e=this.bankBranchUrl+"?isBusiness="+this.isBusiness,this.zipcode&&(e+="&zipcode="+this.zipcode),0<this.selectedPengeinstitut.value&&(e+="&bankId="+this.selectedPengeinstitut.value),t=++this.asyncCounter,this.isLoading=!0,this.$http({url:e,method:"GET",headers:{}}).then(function(e){t===n.asyncCounter&&(n.isLoading=!1,n.bankBranches=[],angular.forEach(e.data,function(e,t){e.$id=e.filialID,n.bankBranches.push(e)}),n.findBankBranchesOnMap())},function(e){t===n.asyncCounter&&(n.isLoading=!1,n.bankBranches=[],n.resetMap()),c
1onsole.log("Search error:"+e.data)})):(this.bankBranches=[],this.selectedBankBranch=null,this.resetMap())}},{key:"pengeinstitutChanged",value:function(){this.selectedBankBranch=null,this._updateBankBranches()}},{key:"findBankBranches",value:function(){""==this.zipcode||/^[1-9]{1}[0-9]{3}$/.test(this.zipcode)?(this.zipcodeIsValid=!0,this.selectedBankBranch=null,this._updateBankBranches()):this.zipcodeIsValid=!1}},{key:"selectBankBranch",value:function(e){this.selectedBankBranch=this.arraySearch(e,"filialID",this.bankBranches),this._updateQueryString(),null!=this.activeMarker&&this.activeMarker.setIcon(this.iconInactive),this.activeMarker=this.arraySearch(e,"filialID",this.markers),null!=this.activeMarker&&this.activeMarker.setIcon(this.iconActive);var e=new google.maps.LatLngBounds,t=new google.maps.LatLng(parseFloat(this.selectedBankBranch.latitude),parseFloat(this.selectedBankBranch.longitude));e.extend(t),this.setBounds(e),this.createCookies(),this.toggleDetailPanel()}},{key:"toggleDetailPanel",value:function(e){if(e)switch(e){case"hide":this.showDetailPanel=!1,document.documentElement.classList.remove("findraadgiver--detail-open"),this.detailViewState=this.detailViewStates.default;break;case"show":this.showDetailPanel=!0,document.documentElement.classList.add("findraadgiver--detail-open"),this.detailViewState=this.detailViewStates.default}else this.showDetailPanel=!this.showDetailPanel,document.documentElement.classList.contains("findraadgiver--detail-open")?document.documentElement.classList.remove("findraadgiver--detail-open"):document.documentElement.classList.add("findraadgiver--detail-open")}},{key:"goback",value:function(){this.detailViewState!==this.detailViewStates.showContactform||this.selectedBankBranch.external?this.toggleDetailPanel():this.detailViewState=this.detailViewStates.default}},{key:"showExternalContactForm",value:function(){this.selectedBankBranch={bankName:this.selectedPengeinstitut.name,logo:this.selectedPengeinstitut.logo,external:!0},this.toggleDetailPanel("show"),this.showContactForm()}},{key:"showContactForm",value:function(){this.resetForm(),this.detailViewState=this.detailViewStates.showContactform}},{key:"resetForm",value:function(){if(this.bankBranchDetailsContainer){var e=this.bankBranchDetailsContainer.querySelector(".Form__Status__Message"),t=this.bankBranchDetailsContainer.querySelector(".Form__MainBody"),n=this.bankBranchDetailsContainer.querySelectorAll(".ValidationSuccess");if(e&&(this.clearClasses(e),e.classList.add("Form__Status__Message"),e.classList.add("hide")),t&&t.removeAttribute("style"),n)for(var i=0;i<n.length;++i)n[i].classList.remove("ValidationSuccess")}}},{key:"clearClasses",value:function(e){for(var t=e.classList,n=t.length;0<n;n--)t.remove(t[0])}},{key:"createCookies",value:function(){var e,t,n;"object"==typeof CookieInformation&&"function"==typeof CookieInformation.getConsentGivenFor&&CookieInformation.getConsentGivenFor(this.cookieCategory)&&(e=this.isBusiness?this.businessPengeinstitutIdCookie:this.pengeinstitutIdCookie,t=this.isBusiness?this.businessBankBranchIdCookie:this.bankBranchIdCookie,(n=new Date).setTime(n.getTime()+864e8),this.selectedPengeinstitut?this.$cookies.put(e,this.selectedPengeinstitut.value,{path:"/",expires:n}):this.$cookies.remove(e),this.selectedBankBranch?this.$cookies.put(t,this.selectedBankBranch.filialID,{path:"/",expires:n}):this.$cookies.remove(t))}},{key:"arraySearch",value:function(e,t,n){for(var i=0;i<n.length;i++)if(n[i][t]===e)return n[i]}},{key:"updateWebsiteUrl",value:function(e){return e=null!=e&&""!=e&&0<e.length&&"http"!=e.substring(0,4)?"http://"+e:e}},{key:"initMap",value:function(){var e,n=this;this.mapContainer&&(this.tkMap.map=new google.maps.Map(this.mapContainer,this.initialMapOptions),this.tkMap.bounds=new google.maps.LatLngBounds,e=new google.maps.StyledMapType([{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],{name:"Kort"}),this.tkMap.map.mapTypes.set("betterwater",e),this.tkMap.map.setMapTypeId("betterwater"),this.zoomOut&&google.maps.event.addDomListener(this.zoomOut,"click",function(){var e=n.tkMap.map.getZoom();0<e&&n.tkMap.map.setZoom(e-1)}),this.zoomIn&&google.maps.event.addDomListener(this.zoomIn,"click",function(){var e,t=n.tkMap.map.getZoom();t<21&&(e=n.tkMap.map.getBounds(),n.tkMap.map.setZoom(t+1),null!=n.activeMarker)&&n.zoomTowardsMarker(n.activeMarker,e)}),this.betterWater&&google.maps.event.addDomListener(this.betterWater,"click",function(){n.tkMap.map.setMapTypeId("betterwater"),n.betterWater.classList.remove("inactive"),n.satellite&&n.satellite.classList.add("inactive")}),this.satellite)&&google.maps.event.addDomListener(this.satellite,"click",function(){n.tkMap.map.setMapTypeId(google.maps.MapTypeId.HYBRID),n.satellite.classList.remove("inactive"),n.betterWater&&n.betterWater.classList.add("inactive")})}},{key:"zoomTowardsMarker",value:function(e,t){var e=e.getPosition(),n=this.tkMap.map.getBounds().toSpan(),i=e.lat()-n.lat()*(e.lat()-t.getSouthWest
1().lat())/t.toSpan().lat(),e=e.lng()-n.lng()*(e.lng()-t.getSouthWest().lng())/t.toSpan().lng();this.tkMap.map.panToBounds({south:i,north:i+n.lat(),west:e,east:e+n.lng()})}},{key:"resetMap",value:function(){this.tkMap.map.setZoom(this.initialMapOptions.zoom),this.tkMap.map.setCenter(this.initialMapOptions.center),this.clearMarkers()}},{key:"clearMarkers",value:function(){for(var e=0;e<this.markers.length;e++)this.markers[e].setMap(null);this.markers=[]}},{key:"findBankBranchesOnMap",value:function(){var n=this;this.bankBranches.length?(this.clearMarkers(),null==this.zipcode||""==this.zipcode||555<=this.zipcode&&this.zipcode<=1999?this.setMarkers():(new google.maps.Geocoder).geocode({address:this.zipcode,componentRestrictions:{country:"DK"}},function(e,t){e=t==google.maps.GeocoderStatus.OK?(t=e[0].geometry.location,new google.maps.LatLng(parseFloat(t.lat()),parseFloat(t.lng()))):new google.maps.LatLng(n.initialMapOptions.center.lat,n.initialMapOptions.center.lng),n.setMarkers(e)})):this.resetMap()}},{key:"setMarkers",value:function(e){var a=this,r=new google.maps.LatLngBounds,e=(e&&r.extend(e),this.bankBranches.sort(function(){return.5-Math.random()}));angular.forEach(e,function(e,t){var n=new google.maps.LatLng(parseFloat(e.latitude),parseFloat(e.longitude)),i=(r.extend(n),new google.maps.Marker({filialID:e.filialID,bankId:e.bankId,position:n,optimized:!1,icon:a.iconInactive,map:a.tkMap.map}));a.markers.push(i),google.maps.event.addListener(i,"click",function(){a.$scope.$apply(function(){null!=a.activeMarker&&a.activeMarker.setIcon(a.iconInactive),(a.activeMarker=i).setIcon(a.iconActive),a.selectedBankBranch=a.arraySearch(e.filialID,"filialID",a.bankBranches),a._updateQueryString(),a.createCookies(),a.toggleDetailPanel("show")})})},this),this.setBounds(r)}
1},{key:"setBounds",value:function(e){this.tkMap.map.fitBounds(e),this.bankBranchesContainer&&(e=this.tkMap.map.getZoom())>this.initialMinZoom&&(e>this.initialMaxZoom?this.tkMap.map.setZoom(this.initialMaxZoom):this.tkMap.map.setZoom(e-1))}},{key:"registerDataLayer",value:function(e,t,n){(-1<window.location.hostname.indexOf("total")||-1<window.location.hostname.indexOf("localhost"))&&(0,r.registerTotalkredit)("find rådgiver",e,t,void 0===n?"undefined":n?"udenfor samarbejdet":"indenfor samarbejdet",t)}}]);e=o;function o(e,t,n,i){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.$scope=e,this.$http=t,this.$location=n,this.$cookies=i,this.bankBranchUrl=null,this.isBusiness=!1,this.isExternal=!1,this.externalMail=null,this.asyncCounter=0,this.availablePengeinstituts=[],this.selectedPengeinstitut=null,this.zipcode="",this.zipcodeIsValid=!0,this.bankBranches=[],this.selectedBankBranch=null,this.showDetailPanel=!1,this.detailViewStates={default:"default",showContactform:"showContactform"},this.detailViewState=this.detailViewStates.default,this.mobileViewStates={map:"map",list:"list"},this.mobileViewState=this.mobileViewStates.map,this.cookieCategory="cookie_cat_functional",this.pengeinstitutIdCookie="bankIDCookie",this.bankBranchIdCookie="filialIDCookie",this.businessPengeinstitutIdCookie="erhvervBankIDCookie",this.businessBankBranchIdCookie="businessfilialIDCookie",this.bankBranchesContainer=document.querySelector(".findraadgiver__list"),this.bankBranchDetailsContainer=document.querySelector(".findraadgiver__detail"),this.mapContainer=document.querySelector(".findraadgiver__map-container"),this.initialMinZoom=7,this.initialMaxZoom=16,this.zoomOut=document.querySelector(".zoom-out"),this.zoomIn=document.querySelector(".zoom-in"),this.betterWater=document.querySelector(".better-water"),this.satellite=document.querySelector(".satellite"),this.tkMap={map:null,bounds:null},this.initialMapOptions={zoom:null,center:{lat:null,lng:null},scrollwheel:!1,disableDefaultUI:!0},this.markers=[],this.activeMarker=null,this.iconInactive={url:"data:image/svg+xml;charset=utf-8,"+encodeURIComponent('<svg version="1.1" width="20" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 32.6 32.6" style="enable-background:new 0 0 32.6 32.6;" xml:space="preserve"><g><path fill="orangered" d="M11.3,16.4L0,27.6l5,5l11.3-11.2l11.3,11.2c0,0,5-4.9,5-5L21.3,16.4l-5-5L11.3,16.4L11.3,16.4z"/><path fill="darkorange" d="M11.6,15.9L0,4.9L5.1,0l11.6,11L11.6,15.9z"/><path fill="darkorange" d="M15.9,11L27.5,0l5.1,4.9L21,15.9L15.9,11z"/></g></svg>'),anchor:new google.maps.Point(10,10),scaledSize:new google.maps.Size(20,20)},this.iconActive={url:"data:image/svg+xml;charset=utf-8,"+encodeURIComponent('<svg version="1.1" width="40" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 32.6 32.6" style="enable-background:new 0 0 32.6 32.6;" xml:space="preserve"><g><path fill="orangered" d="M11.3,16.4L0,27.6l5,5l11.3-11.2l11.3,11.2c0,0,5-4.9,5-5L21.3,16.4l-5-5L11.3,16.4L11.3,16.4z"/><path fill="darkorange" d="M11.6,15.9L0,4.9L5.1,0l11.6,11L11.6,15.9z"/><path fill="darkorange" d="M15.9,11L27.5,0l5.1,4.9L21,15.9L15.9,11z"/></g></svg>'),anchor:new google.maps.Point(20,20),scaledSize:new google.maps.Size(40,40)}}e.$inject=["$scope","$http","$location","$cookies"],n.default=e},{"../../../beregnere-tk/javascript-tk-beregnere/components/util/tracking":19}],359:[function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(n,"__esModule",{value:!0});(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(r,[{key:"init",value:function(e){this.gotoUrl=e.gotoUrl,this._startUrl=e.gotoUrl}},{key:"updateUrl",value:function(){this.gotoUrl=this._startUrl,(this.zipCode||this.bankId)&&(this.gotoUrl+="?",this.bankId&&(this.gotoUrl+="pengeinstitut="+this.bankId),this.zipCode)&&(this.gotoUrl+=(this.bankId?"&":"")+"postnummer="+this.zipCode)}},{key:"onEnter",value:function(e){13==e.keyCode&&(this.updateUrl(),window.location=decodeURIComponent(this.gotoUrl))}}]);var a=r;function r(e){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.$location=e,this.gotoUrl=null,this._startUrl=null,this.zipCode=null,this.bankId=null}a.$inject=["$location"],n.default=a},{}],383:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(){return n={0:function(e,t,n){var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.adapter_=e}
1i(r,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),i(r,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),t.a=r},1:function(e,t,n){var i=n(0),n=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(s,null,[{key:"attachTo",value:function(e){return new s(e,new i.a)}}]),n(s,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(e,t){this.root_.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){this.root_.removeEventListener(e,t)}},{key:"emit",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=void 0;"function"==typeof CustomEvent?i=new CustomEvent(e,{detail:t,bubbles:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(i)}}]);n=s;function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,n=this,i=s;if(!(n instanceof i))throw new TypeError("Cannot call a class as a function");this.root_=e;for(var a=arguments.length,r=Array(2<a?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];this.initialize.apply(this,r),this.foundation_=void 0===t?this.getDefaultFoundation():t,this.foundation_.init(),this.initialSyncWithDOM()}t.a=n},2:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"supportsCssVariables",function(){return a}),n.d(t,"applyPassive",function(){return o}),n.d(t,"getMatchesProperty",function(){return s}),n.d(t,"getNormalizedEventCoords",function(){return l});var r=void 0,i=void 0;function a(e){var t,n,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=r;return"boolean"!=typeof r||i?e.CSS&&"function"==typeof e.CSS.supports?(t=e.CSS.supports("--css-vars","yes"),n=e.CSS.supports("(--css-vars: yes)")&&e.CSS.supports("color","#00000000"),a=!(!t&&!n||function(e){var t=e.document,n=t.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",t.body.appendChild(n);e=null!==(t=e.getComputedStyle(n))&&"solid"===t.borderTopStyle;return n.remove(),e}(e)),i||(r=a),a):void 0:a}function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;if(void 0===i||1<arguments.length&&void 0!==arguments[1]&&arguments[1]){var t=!1;try{e.document.addEventListener("test",null,{get passive(){t=!0}})}catch(e){}i=t}return!!i&&{passive:!0}}function s(t){return["webkitMatchesSelector","msMatchesSelector","matches"].filter(function(e){return e in t}).pop()}function l(e,t,n){var i=t.x,t=t.y,i=i+n.left,t=t+n.top,n=void 0,a=void 0,a="touchstart"===e.type?(n=e.changedTouches[0].pageX-i,e.changedTouches[0].pageY-t):(n=e.pageX-i,e.pageY-t);return{x:n,y:a}}},3:function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"browserSupportsCssVars",value:function(){}},{key:"isUnbounded",value:function(){}},{key:"isSurfaceActive",value:function(){}},{key:"isSurfaceDisabled",value:function(){}},{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"containsEventTarget",value:function(e){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"registerDocumentInteractionHandler",value:function(e,t){}},{key:"deregisterDocumentInteractionHandler",value:function(e,t){}},{key:"registerResizeHandler",value:function(e){}},{key:"deregisterResizeHandler",value:function(e){}},{key:"updateCssVariable",value:function(e,t){}},{key:"computeBoundingRect",value:function(){}},{key:"getWindowPageOffset",value:function(){}}])}
1,4:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCRipple",function(){return u}),n.d(t,"RippleCapableSurface",function(){return c});var i=n(1),r=(n(3),n(5)),o=n(2),s=(n.d(t,"MDCRippleFoundation",function(){return r.a}),n.d(t,"util",function(){return o}),function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e});function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function a(){l(this,a);for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(t)));return i.disabled=!1,i.unbounded_,i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(a,[{key:"setUnbounded_",value:function(){this.foundation_.setUnbounded(this.unbounded_)}},{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"getDefaultFoundation",value:function(){return new r.a(a.createAdapter(this))}},{key:"initialSyncWithDOM",value:function(){this.unbounded="mdcRippleIsUnbounded"in this.root_.dataset}},{key:"unbounded",get:function(){return this.unbounded_},set:function(e){this.unbounded_=Boolean(e),this.setUnbounded_()}}],[{key:"attachTo",value:function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isUnbounded,t=void 0===t?void 0:t,e=new a(e);return void 0!==t&&(e.unbounded=t),e}},{key:"createAdapter",value:function(n){var e=o.getMatchesProperty(HTMLElement.prototype);return{browserSupportsCssVars:function(){return o.supportsCssVariables(window)},isUnbounded:function(){return n.unbounded},isSurfaceActive:function(){return n.root_[e](":active")},isSurfaceDisabled:function(){return n.disabled},addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},containsEventTarget:function(e){return n.root_.contains(e)},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t,o.applyPassive())},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t,o.applyPassive())},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,o.applyPassive())},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,o.applyPassive())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},updateCssVariable:function(e,t){return n.root_.style.setProperty(e,t)},computeBoundingRect:function(){return n.root_.getBoundingClientRect()},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}}}}}]),a}(i.a),c=function e(){l(this,e)};c.prototype.root_,c.prototype.unbounded,c.prototype.disabled},46:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCCheckbox",function(){return f});function a(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?a(i,t,n):void 0}var i=n(8),r=n(1),o=(n(9),n(47)),s=n(4),l=n(2),u=(n.d(t,"MDCCheckboxFoundation",function(){return o.a}),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}),c=function(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e};function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var f=function(e){var t=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(){var e=this,t=r;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(i)));return t.ripple_=t.initRipple_(),t}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),c(r,[{key:"nativeCb_",get:function(){var e=o.a.strings.NATIVE_CONTROL_SELECTOR;return this.root_.querySelector(e)}}],[{key:"attachTo",value:function(e){return new r(e)}}]),c(r,[{key:"initRipple_",value:function(){var n=this,e=Object(l.getMatchesProperty)(HTMLElement.prototype),t=u(s.MDCRipple.createAdapter(this),{isUnbounded:function(){return!0},isSurfaceActive:function(){return n.nativeCb_[e](":active")},registerInteractionHandler:function(e,t){return n.nativeCb_.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){return n.nativeCb_.removeEventListener(e,t)}}),t=new s.MDCRippleFoundation(t);return new s.MDCRipple(this.root_,t)}},{key:"getDefaultFoundation",value:function(){var n=this;return new o.a({addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},setNativeControlAttr:function(e,t){return n.nativeCb_.setAttribute(e,t)},removeNativeControlAttr:function(e){return n.nativeCb_.removeAttribute(e)},registerAnimationEndHandler:function(e){return n.root_.addEventListener(Object(i.getCorrectEventName)(window,"animationend"),e)},deregisterAnimationEndHandler:function(e){return n.root_.removeEventListener(Object(i.getCorrectEventName)(window,"animationend"),e)},registerChangeHandler:function(e){return n.nativeCb_.addEventListener("change",e)},deregisterChangeHandler:function(e){return n.nativeCb_.removeEventListener("change",e)},getNativeControl:function(){return n.nativeCb_},forceLayout:function(){return n.root_.offsetWidth},isAttachedToDOM:function(){return Boolean(n.root_.parentNode)}})}},{key:"destroy",value:function(){this.ripple_.destroy(),a(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"destroy",this).call(this)}},{key:"ripple",get:function(){return this.ripple_}},{key:"checked",get:function(){return this.foundation_.isChecked()},set:function(e){this.foundation_.setChecked(e)}},{key:"indeterminate",get:function(){return this.foundation_.isIndeterminate()},set:function(e){this.foundation_.setIndeterminate(e)}},{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(e){this.foundation_.setDisabled(e)}},{key:"value",get:function(){return this.foundation_.getValue()},set:function(e){this.foundation_.setValue(e)}}]),r}(r.a)},47:function(e,t,n){var i=n(0),h=(n(9),n(48),n(49)),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=["checked","indeterminate"],n=function(e){var t=f;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function f(e){var t;if(this instanceof f)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,a(f.defaultAdapter,e)))).currentCheckState_=h.c.TRANSITION_STATE_INIT,t.currentAnimationClass_="",t.animEndLatchTimer_=0,t.animEndHandler_=function(){return t.handleAnimationEnd()},t.changeHandler_=function(){return t.handleChange()},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(f,null,[{key:"cssClasse
1s",get:function(){return h.a}},{key:"strings",get:function(){return h.c}},{key:"numbers",get:function(){return h.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlAttr:function(){},removeNativeControlAttr:function(){},registerAnimationEndHandler:function(){},deregisterAnimationEndHandler:function(){},registerChangeHandler:function(){},deregisterChangeHandler:function(){},getNativeControl:function(){},forceLayout:function(){},isAttachedToDOM:function(){}}}}]),r(f,[{key:"init",value:function(){this.currentCheckState_=this.determineCheckState_(this.getNativeControl_()),this.updateAriaChecked_(),this.adapter_.addClass(h.a.UPGRADED),this.adapter_.registerChangeHandler(this.changeHandler_),this.installPropertyChangeHooks_()}},{key:"destroy",value:function(){this.adapter_.deregisterChangeHandler(this.changeHandler_),this.uninstallPropertyChangeHooks_()}},{key:"isChecked",value:function(){return this.getNativeControl_().checked}},{key:"setChecked",value:function(e){this.getNativeControl_().checked=e}},{key:"isIndeterminate",value:function(){return this.getNativeControl_().indeterminate}},{key:"setIndeterminate",value:function(e){this.getNativeControl_().indeterminate=e}},{key:"isDisabled",value:function(){return this.getNativeControl_().disabled}},{key:"setDisabled",value:function(e){(this.getNativeControl_().disabled=e)?this.adapter_.addClass(h.a.DISABLED):this.adapter_.removeClass(h.a.DISABLED)}},{key:"getValue",value:function(){return this.getNativeControl_().value}},{key:"setValue",value:function(e){this.getNativeControl_().value=e}},{key:"handleAnimationEnd",value:function(){var e=this;clearTimeout(this.animEndLatchTimer_),this.animEndLatchTimer_=setTimeout(function(){e.adapter_.removeClass(e.currentAnimationClass_),e.adapter_.deregisterAnimationEndHandler(e.animEndHandler_)},h.b.ANIM_END_LATCH_MS)}},{key:"handleChange",value:function(){this.transitionCheckState_()}},{key:"installPropertyChangeHooks_",value:function(){var i=this,a=this.getNativeControl_(),r=Object.getPrototypeOf(a);s.forEach(function(e){var t,n=Object.getOwnPropertyDescriptor(r,e);l(n)&&(t={get:n.get,set:function(e){n.set.call(a,e),i.transitionCheckState_()},configurable:n.configurable,enumerable:n.enumerable},Object.defineProperty(a,e,t))})}},{key:"uninstallPropertyChangeHooks_",value:function(){var n=this.getNativeControl_(),i=Object.getPrototypeOf(n);s.forEach(function(e){var t=Object.getOwnPropertyDescriptor(i,e);l(t)&&Object.defineProperty(n,e,t)})}},{key:"transitionCheckState_",value:function(){var e,t=this.adapter_.getNativeControl();t&&(e=this.currentCheckState_)!==(t=this.determineCheckState_(t))&&(this.updateAriaChecked_(),0<this.currentAnimationClass_.length&&(clearTimeout(this.animEndLatchTimer_),this.adapter_.forceLayout(),this.adapter_.removeClass(this.currentAnimationClass_)),this.currentAnimationClass_=this.getTransitionAnimationClass_(e,t),this.currentCheckState_=t,this.adapter_.isAttachedToDOM())&&0<this.currentAnimationClass_.length&&(this.adapter_.addClass(this.currentAnimationClass_),this.adapter_.registerAnimationEndHandler(this.animEndHandler_))}},{key:"determineCheckState_",value:function(e){var t=h.c.TRANSITION_STATE_INDETERMINATE,n=h.c.TRANSITION_STATE_CHECKED,i=h.c.TRANSITION_STATE_UNCHECKED;return e.indeterminate?t:e.checked?n:i}},{key:"getTransitionAnimationClass_",value:function(e,t){var n=h.c.TRANSITION_STATE_INIT,i=h.c.TRANSITION_STATE_CHECKED,a=h.c.TRANSITION_STATE_UNCHECKED,r=f.cssClasses,o=r.ANIM_UNCHECKED_CHECKED,s=r.ANIM_UNCHECKED_INDETERMINATE,l=r.ANIM_CHECKED_UNCHECKED,u=r.ANIM_CHECKED_INDETERMINATE,c=r.ANIM_INDETERMINATE_CHECKED,d=r.ANIM_INDETERMINATE_UNCHECKED;switch(e){case n:if(t===a)return"";case a:return t===i?o:s;case i:return t===a?l:u;default:return t===i?c:d}}},{key:"updateAriaChecked_",value:function(){this.isIndeterminate()?this.adapter_.setNativeControlAttr(h.c.ARIA_CHECKED_ATTR,h.c.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter_.removeNativeControlAttr(h.c.ARIA_CHECKED_ATTR)}},{key:"getNativeControl_",value:function(){return this.adapter_.getNativeControl()||{checked:!1,indeterminate:!1,disabled:!1,value:null}}}]),f}(i.a);function l(e){return e&&"function"==typeof e.set}t.a=n},48:function(e,t,n){n(9);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"setNativeControlAttr",value:function(e,t){}},{key:"removeNativeControlAttr",value:function(e){}},{key:"registerAnimationEndHandler",value:function(e){}},{key:"deregisterAnimationEndHandler",value:function(e){}},{key:"registerChangeHandler",value:function(e){}},{key:"deregisterChangeHandler",value:function(e){}},{key:"getNativeControl",value:function(){}},{key:"forceLayout",value:function(){}},{key:"isAttachedToDOM",value:function(){}}])},49:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i={UPGRADED:"mdc-checkbox--upgraded",CHECKED:"mdc-checkbox--checked",INDETERMINATE:"mdc-checkbox--indeterminate",DISABLED:"mdc-checkbox--disabled",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",AN
1IM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked"},a={NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_UNCHECKED:"unchecked",TRANSITION_STATE_INDETERMINATE:"indeterminate",ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed"},r={ANIM_END_LATCH_MS:250}},5:function(e,t,n){var i=n(0),a=(n(3),n(6)),r=n(2),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e};function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=["touchstart","pointerdown","mousedown","keydown"],d=["touchend","pointerup","mouseup"],f=[],n=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function c(e){var t;if(this instanceof c)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,o(c.defaultAdapter,e)))).layoutFrame_=0,t.frame_={width:0,height:0},t.activationState_=t.defaultActivationState_(),t.initialSize_=0,t.maxRadius_=0,t.activateHandler_=function(e){return t.activate_(e)},t.deactivateHandler_=function(e){return t.deactivate_(e)},t.focusHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.addClass(c.cssClasses.BG_FOCUSED)})},t.blurHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.removeClass(c.cssClasses.BG_FOCUSED)})},t.resizeHandler_=function(){return t.layout()},t.unboundedCoords_={left:0,top:0},t.fgScale_=0,t.activationTimer_=0,t.fgDeactivationRemovalTimer_=0,t.activationAnimationHasEnded_=!1,t.activationTimerCallback_=function(){t.activationAnimationHasEnded_=!0,t.runDeactivationUXLogicIfReady_()},t.previousActivationEvent_=null,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(c,null,[{key:"cssClasse
1s",get:function(){return a.a}},{key:"strings",get:function(){return a.c}},{key:"numbers",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{browserSupportsCssVars:function(){},isUnbounded:function(){},isSurfaceActive:function(){},isSurfaceDisabled:function(){},addClass:function(){},removeClass:function(){},containsEventTarget:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerDocumentInteractionHandler:function(){},deregisterDocumentInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},updateCssVariable:function(){},computeBoundingRect:function(){},getWindowPageOffset:function(){}}}}]),s(c,[{key:"isSupported_",value:function(){return this.adapter_.browserSupportsCssVars()}},{key:"defaultActivationState_",value:function(){return{isActivated:!1,hasDeactivationUXRun:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1,activationEvent:null,isProgrammatic:!1}}},{key:"init",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.registerRootHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.addClass(t),i.adapter_.isUnbounded()&&(i.adapter_.addClass(n),i.layoutInternal_())}))}},{key:"destroy",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,e=c.cssClasses.FG_ACTIVATION,this.adapter_.removeClass(e)),this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.removeClass(t),i.adapter_.removeClass(n),i.removeCssVars_()}))}},{key:"registerRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.registerInteractionHandler(e,t.activateHandler_)}),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)}},{key:"registerDeactivationHandlers_",value:function(e){var t=this;"keydown"===e.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):d.forEach(function(e){t.adapter_.registerDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"deregisterRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.activateHandler_)}),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"deregisterDeactivationHandlers_",value:function(){var t=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),d.forEach(function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"removeCssVars_",value:function(){var t=this,n=c.strings;Object.keys(n).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(n[e],null)})}},{key:"activate_",value:function(e){var t,n,i=this;this.adapter_.isSurfaceDisabled()||(t=this.activationState_).isActivated||(n=this.previousActivationEvent_)&&e&&n.type!==e.type||(t.isActivated=!0,t.isProgrammatic=null===e,t.activationEvent=e,t.wasActivatedByPointer=!t.isProgrammatic&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type),e&&0<f.length&&f.some(function(e){return i.adapter_.containsEventTarget(e)})?this.resetActivationState_():(e&&(f.push(e.target),this.registerDeactivationHandlers_(e)),t.wasElementMadeActive=this.checkElementMadeActive_(e),t.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){f=[],t.wasElementMadeActive||" "!==e.key&&32!==e.keyCode||(t.wasElementMadeActive=i.checkElementMadeActive_(e),t.wasElementMadeActive&&i.animateActivation_()),t.wasElementMadeActive||(i.activationState_=i.defaultActivationState_())})))}},{key:"checkElementMadeActive_",value:function(e){return!e||"keydown"!==e.type||this.adapter_.isSurfaceActive()}},{key:"activate",value:function(){this.activate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateActivation_",value:function(){var e,t,n=this,i=c.strings,a=i.VAR_FG_TRANSLATE_START,i=i.VAR_FG_TRANSLATE_END,r=c.cssClasse
1s,o=r.FG_DEACTIVATION,r=r.FG_ACTIVATION,s=c.numbers.DEACTIVATION_TIMEOUT_MS,l=(this.layoutInternal_(),""),u="";this.adapter_.isUnbounded()||(e=(t=this.getFgTranslationCoordinates_()).startPoint,t=t.endPoint,l=e.x+"px, "+e.y+"px",u=t.x+"px, "+t.y+"px"),this.adapter_.updateCssVariable(a,l),this.adapter_.updateCssVariable(i,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(o),this.adapter_.computeBoundingRect(),this.adapter_.addClass(r),this.activationTimer_=setTimeout(function(){return n.activationTimerCallback_()},s)}},{key:"getFgTranslationCoordinates_",value:function(){var e=this.activationState_,t=e.activationEvent,n=void 0;return{startPoint:n={x:(n=e.wasActivatedByPointer?Object(r.getNormalizedEventCoords)(t,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:n.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}}},{key:"runDeactivationUXLogicIfReady_",value:function(){var e=this,t=c.cssClasses.FG_DEACTIVATION,n=this.activationState_,i=n.hasDeactivationUXRun,n=n.isActivated;!i&&n||!this.activationAnimationHasEnded_||(this.rmBoundedActivationClasses_(),this.adapter_.addClass(t),this.fgDeactivationRemovalTimer_=setTimeout(function(){e.adapter_.removeClass(t)},a.b.FG_DEACTIVATION_MS))}},{key:"rmBoundedActivationClasses_",value:function(){var e=c.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()}},{key:"resetActivationState_",value:function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return e.previousActivationEvent_=null},c.numbers.TAP_DELAY_MS)}},{key:"deactivate_",value:function(e){var t,n=this,i=this.activationState_;i.isActivated&&(t=o({},i),i.isProgrammatic?(requestAnimationFrame(function(){return n.animateDeactivation_(null,t)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){n.activationState_.hasDeactivationUXRun=!0,n.animateDeactivation_(e,t),n.resetActivationState_()})))}},{key:"deactivate",value:function(){this.deactivate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateDeactivation_",value:function(e,t){var n=t.wasActivatedByPointer,t=t.wasElementMadeActive;(n||t)&&this.runDeactivationUXLogicIfReady_()}},{key:"layout",value:function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})}},{key:"layoutInternal_",value:function(){var e=this,t=(this.frame_=this.adapter_.computeBoundingRect(),Math.max(this.frame_.height,this.frame_.width));this.maxRadius_=this.adapter_.isUnbounded()?t:Math.sqrt(Math.pow(e.frame_.width,2)+Math.pow(e.frame_.height,2))+c.numbers.PADDING,this.initialSize_=t*c.numbers.INITIAL_ORIGIN_SCALE,this.fgScale_=this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()}},{key:"updateLayoutCssVars_",value:function(){var e=c.strings,t=e.VAR_FG_SIZE,n=e.VAR_LEFT,i=e.VAR_TOP,e=e.VAR_FG_SCALE;this.adapter_.updateCssVariable(t,this.initialSize_+"px"),this.adapter_.updateCssVariable(e,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(n,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(i,this.unboundedCoords_.top+"px"))}},{key:"setUnbounded",value:function(e){var t=c.cssClasses.UNBOUNDED;e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}}]),c}(i.a);t.a=n},6:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i={ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded",BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation"},a={VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end"},r={PADDING:10,INITIAL_ORIGIN_SCALE:.6,DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,TAP_DELAY_MS:300}}
1,8:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"transformStyleProperties",function(){return a}),n.d(t,"getCorrectEventName",function(){return s}),n.d(t,"getCorrectPropertyName",function(){return l});var r={animationstart:{noPrefix:"animationstart",webkitPrefix:"webkitAnimationStart",styleProperty:"animation"},animationend:{noPrefix:"animationend",webkitPrefix:"webkitAnimationEnd",styleProperty:"animation"},animationiteration:{noPrefix:"animationiteration",webkitPrefix:"webkitAnimationIteration",styleProperty:"animation"},transitionend:{noPrefix:"transitionend",webkitPrefix:"webkitTransitionEnd",styleProperty:"transition"}},o={animation:{noPrefix:"animation",webkitPrefix:"-webkit-animation"},transform:{noPrefix:"transform",webkitPrefix:"-webkit-transform"},transition:{noPrefix:"transition",webkitPrefix:"-webkit-transition"}};function i(e,t){var n,i,a;return void 0!==(n=e).document&&"function"==typeof n.document.createElement&&((n=t)in r||n in o)?(n=t in r?r:o,e=e.document.createElement("div"),n===r?(a=n)[i=t].styleProperty in e.style?a[i].noPrefix:a[i].webkitPrefix:n[t].noPrefix in e.style?n[t].noPrefix:n[t].webkitPrefix):t}var a=["transform","WebkitTransform","MozTransform","OTransform","MSTransform"];function s(e,t){return i(e,t)}function l(e,t){return i(e,t)}},9:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCSelectionControlState",function(){return a}),n.d(t,"MDCSelectionControl",function(){return r});n(4);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=void 0,r=(function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}(o,[{key:"ripple",get:function(){}}]),o);function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function")}}},a={},i.m=n,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=46);function i(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,a},"object"==typeof n&&"object"==typeof t?t.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof n?n.checkbox=a():(i.mdc=i.mdc||{},i.mdc.checkbox=a())},{}],392:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(){return n=[function(e,t,n){var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.adapter_=e}
1i(r,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),i(r,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),t.a=r},function(e,t,n){var i=n(0),n=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(s,null,[{key:"attachTo",value:function(e){return new s(e,new i.a)}}]),n(s,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(e,t){this.root_.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){this.root_.removeEventListener(e,t)}},{key:"emit",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=void 0;"function"==typeof CustomEvent?i=new CustomEvent(e,{detail:t,bubbles:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(i)}}]);n=s;function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,n=this,i=s;if(!(n instanceof i))throw new TypeError("Cannot call a class as a function");this.root_=e;for(var a=arguments.length,r=Array(2<a?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];this.initialize.apply(this,r),this.foundation_=void 0===t?this.getDefaultFoundation():t,this.foundation_.init(),this.initialSyncWithDOM()}t.a=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"supportsCssVariables",function(){return a}),n.d(t,"applyPassive",function(){return o}),n.d(t,"getMatchesProperty",function(){return s}),n.d(t,"getNormalizedEventCoords",function(){return l});var r=void 0,i=void 0;function a(e){var t,n,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=r;return"boolean"!=typeof r||i?e.CSS&&"function"==typeof e.CSS.supports?(t=e.CSS.supports("--css-vars","yes"),n=e.CSS.supports("(--css-vars: yes)")&&e.CSS.supports("color","#00000000"),a=!(!t&&!n||function(e){var t=e.document,n=t.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",t.body.appendChild(n);e=null!==(t=e.getComputedStyle(n))&&"solid"===t.borderTopStyle;return n.remove(),e}(e)),i||(r=a),a):void 0:a}function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;if(void 0===i||1<arguments.length&&void 0!==arguments[1]&&arguments[1]){var t=!1;try{e.document.addEventListener("test",null,{get passive(){t=!0}})}catch(e){}i=t}return!!i&&{passive:!0}}function s(t){return["webkitMatchesSelector","msMatchesSelector","matches"].filter(function(e){return e in t}).pop()}function l(e,t,n){var i=t.x,t=t.y,i=i+n.left,t=t+n.top,n=void 0,a=void 0,a="touchstart"===e.type?(n=e.changedTouches[0].pageX-i,e.changedTouches[0].pageY-t):(n=e.pageX-i,e.pageY-t);return{x:n,y:a}}},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"browserSupportsCssVars",value:function(){}},{key:"isUnbounded",value:function(){}},{key:"isSurfaceActive",value:function(){}},{key:"isSurfaceDisabled",value:function(){}},{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"containsEventTarget",value:function(e){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"registerDocumentInteractionHandler",value:function(e,t){}},{key:"deregisterDocumentInteractionHandler",value:function(e,t){}},{key:"registerResizeHandler",value:function(e){}},{key:"deregisterResizeHandler",value:function(e){}},{key:"updateCssVariable",value:function(e,t){}},{key:"computeBoundingRect",value:function(){}},{key:"getWindowPageOffset",value:function(){}}])}
1,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCRipple",function(){return u}),n.d(t,"RippleCapableSurface",function(){return c});var i=n(1),r=(n(3),n(5)),o=n(2),s=(n.d(t,"MDCRippleFoundation",function(){return r.a}),n.d(t,"util",function(){return o}),function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e});function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function a(){l(this,a);for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(t)));return i.disabled=!1,i.unbounded_,i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(a,[{key:"setUnbounded_",value:function(){this.foundation_.setUnbounded(this.unbounded_)}},{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"getDefaultFoundation",value:function(){return new r.a(a.createAdapter(this))}},{key:"initialSyncWithDOM",value:function(){this.unbounded="mdcRippleIsUnbounded"in this.root_.dataset}},{key:"unbounded",get:function(){return this.unbounded_},set:function(e){this.unbounded_=Boolean(e),this.setUnbounded_()}}],[{key:"attachTo",value:function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isUnbounded,t=void 0===t?void 0:t,e=new a(e);return void 0!==t&&(e.unbounded=t),e}},{key:"createAdapter",value:function(n){var e=o.getMatchesProperty(HTMLElement.prototype);return{browserSupportsCssVars:function(){return o.supportsCssVariables(window)},isUnbounded:function(){return n.unbounded},isSurfaceActive:function(){return n.root_[e](":active")},isSurfaceDisabled:function(){return n.disabled},addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},containsEventTarget:function(e){return n.root_.contains(e)},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t,o.applyPassive())},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t,o.applyPassive())},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,o.applyPassive())},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,o.applyPassive())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},updateCssVariable:function(e,t){return n.root_.style.setProperty(e,t)},computeBoundingRect:function(){return n.root_.getBoundingClientRect()},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}}}}}]),a}(i.a),c=function e(){l(this,e)};c.prototype.root_,c.prototype.unbounded,c.prototype.disabled},function(e,t,n){var i=n(0),a=(n(3),n(6)),r=n(2),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e};function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=["touchstart","pointerdown","mousedown","keydown"],d=["touchend","pointerup","mouseup"],f=[],n=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function c(e){var t;if(this instanceof c)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,o(c.defaultAdapter,e)))).layoutFrame_=0,t.frame_={width:0,height:0},t.activationState_=t.defaultActivationState_(),t.initialSize_=0,t.maxRadius_=0,t.activateHandler_=function(e){return t.activate_(e)},t.deactivateHandler_=function(e){return t.deactivate_(e)},t.focusHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.addClass(c.cssClasse
1s.BG_FOCUSED)})},t.blurHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.removeClass(c.cssClasses.BG_FOCUSED)})},t.resizeHandler_=function(){return t.layout()},t.unboundedCoords_={left:0,top:0},t.fgScale_=0,t.activationTimer_=0,t.fgDeactivationRemovalTimer_=0,t.activationAnimationHasEnded_=!1,t.activationTimerCallback_=function(){t.activationAnimationHasEnded_=!0,t.runDeactivationUXLogicIfReady_()},t.previousActivationEvent_=null,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(c,null,[{key:"cssClasses",get:function(){return a.a}},{key:"strings",get:function(){return a.c}},{key:"numbers",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{browserSupportsCssVars:function(){},isUnbounded:function(){},isSurfaceActive:function(){},isSurfaceDisabled:function(){},addClass:function(){},removeClass:function(){},containsEventTarget:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerDocumentInteractionHandler:function(){},deregisterDocumentInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},updateCssVariable:function(){},computeBoundingRect:function(){},getWindowPageOffset:function(){}}}}]),s(c,[{key:"isSupported_",value:function(){return this.adapter_.browserSupportsCssVars()}},{key:"defaultActivationState_",value:function(){return{isActivated:!1,hasDeactivationUXRun:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1,activationEvent:null,isProgrammatic:!1}}},{key:"init",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.registerRootHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.addClass(t),i.adapter_.isUnbounded()&&(i.adapter_.addClass(n),i.layoutInternal_())}))}},{key:"destroy",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,e=c.cssClasses.FG_ACTIVATION,this.adapter_.removeClass(e)),this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.removeClass(t),i.adapter_.removeClass(n),i.removeCssVars_()}))}},{key:"registerRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.registerInteractionHandler(e,t.activateHandler_)}),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)}},{key:"registerDeactivationHandlers_",value:function(e){var t=this;"keydown"===e.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):d.forEach(function(e){t.adapter_.registerDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"deregisterRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.activateHandler_)}),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"deregisterDeactivationHandlers_",value:function(){var t=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),d.forEach(function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"removeCssVars_",value:function(){var t=this,n=c.strings;Object.keys(n).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(n[e],null)})}},{key:"activate_",value:function(e){var t,n,i=this;this.adapter_.isSurfaceDisabled()||(t=this.activationState_).isActivated||(n=this.previousActivationEvent_)&&e&&n.type!==e.type||(t.isActivated=!0,t.isProgrammatic=null===e,t.activationEvent=e,t.wasActivatedByPointer=!t.isProgrammatic&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type),e&&0<f.length&&f.some(function(e){return i.adapter_.containsEventTarget(e)})?this.resetActivationState_():(e&&(f.push(e.target),this.registerDeactivationHandlers_(e)),t.wasElementMadeActive=this.checkElementMadeActive_(e),t.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){f=[],t.wasElementMadeActive||" "!==e.key&&32!==e.keyCode||(t.wasElementMadeActive=i.checkElementMadeActive_(e),t.wasElementMadeActive&&i.animateActivation_()),t.wasElementMadeActive||(i.activationState_=i.defaultActivationState_())})))}},{key:"checkElementMadeActive_",value:function(e){return!e||"keydown"!==e.type||this.adapter_.isSurfaceActive()}},{key:"activate",value:function(){this.activate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateActivation_",value:function(){var e,t,n=this,i=c.strings,a=i.VAR_FG_TRANSLATE_START,i=i.VAR_FG_TRANSLATE_END,r=c.cssClasse
1s,o=r.FG_DEACTIVATION,r=r.FG_ACTIVATION,s=c.numbers.DEACTIVATION_TIMEOUT_MS,l=(this.layoutInternal_(),""),u="";this.adapter_.isUnbounded()||(e=(t=this.getFgTranslationCoordinates_()).startPoint,t=t.endPoint,l=e.x+"px, "+e.y+"px",u=t.x+"px, "+t.y+"px"),this.adapter_.updateCssVariable(a,l),this.adapter_.updateCssVariable(i,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(o),this.adapter_.computeBoundingRect(),this.adapter_.addClass(r),this.activationTimer_=setTimeout(function(){return n.activationTimerCallback_()},s)}},{key:"getFgTranslationCoordinates_",value:function(){var e=this.activationState_,t=e.activationEvent,n=void 0;return{startPoint:n={x:(n=e.wasActivatedByPointer?Object(r.getNormalizedEventCoords)(t,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:n.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}}},{key:"runDeactivationUXLogicIfReady_",value:function(){var e=this,t=c.cssClasses.FG_DEACTIVATION,n=this.activationState_,i=n.hasDeactivationUXRun,n=n.isActivated;!i&&n||!this.activationAnimationHasEnded_||(this.rmBoundedActivationClasses_(),this.adapter_.addClass(t),this.fgDeactivationRemovalTimer_=setTimeout(function(){e.adapter_.removeClass(t)},a.b.FG_DEACTIVATION_MS))}},{key:"rmBoundedActivationClasses_",value:function(){var e=c.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()}},{key:"resetActivationState_",value:function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return e.previousActivationEvent_=null},c.numbers.TAP_DELAY_MS)}},{key:"deactivate_",value:function(e){var t,n=this,i=this.activationState_;i.isActivated&&(t=o({},i),i.isProgrammatic?(requestAnimationFrame(function(){return n.animateDeactivation_(null,t)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){n.activationState_.hasDeactivationUXRun=!0,n.animateDeactivation_(e,t),n.resetActivationState_()})))}},{key:"deactivate",value:function(){this.deactivate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateDeactivation_",value:function(e,t){var n=t.wasActivatedByPointer,t=t.wasElementMadeActive;(n||t)&&this.runDeactivationUXLogicIfReady_()}},{key:"layout",value:function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})}},{key:"layoutInternal_",value:function(){var e=this,t=(this.frame_=this.adapter_.computeBoundingRect(),Math.max(this.frame_.height,this.frame_.width));this.maxRadius_=this.adapter_.isUnbounded()?t:Math.sqrt(Math.pow(e.frame_.width,2)+Math.pow(e.frame_.height,2))+c.numbers.PADDING,this.initialSize_=t*c.numbers.INITIAL_ORIGIN_SCALE,this.fgScale_=this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()}},{key:"updateLayoutCssVars_",value:function(){var e=c.strings,t=e.VAR_FG_SIZE,n=e.VAR_LEFT,i=e.VAR_TOP,e=e.VAR_FG_SCALE;this.adapter_.updateCssVariable(t,this.initialSize_+"px"),this.adapter_.updateCssVariable(e,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(n,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(i,this.unboundedCoords_.top+"px"))}},{key:"setUnbounded",value:function(e){var t=c.cssClasses.UNBOUNDED;e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}}]),c}(i.a);t.a=n},function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i={ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded",BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation"},a={VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end"},r={PADDING:10,INITIAL_ORIGIN_SCALE:.6,DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,TAP_DELAY_MS:300}},,,,function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"getWidth",value:function(){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}}])},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"hasClass",value:function(e){}},{key:"setStyle",value:function(e,t){}},{key:"registerEventHandler",value:function(e,t){}},{key:"deregisterEventHandler",value:function(e,t){}}])}
1,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCFloatingLabel",function(){return s});var i=n(1),a=(n(10),n(13)),r=(n.d(t,"MDCFloatingLabelFoundation",function(){return a.a}),function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e});function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(n,[{key:"shake",value:function(e){this.foundation_.shake(e)}},{key:"float",value:function(e){this.foundation_.float(e)}},{key:"getWidth",value:function(){return this.foundation_.getWidth()}},{key:"getDefaultFoundation",value:function(){var n=this;return new a.a({addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},getWidth:function(){return n.root_.offsetWidth},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t)}})}}],[{key:"attachTo",value:function(e){return new n(e)}}]),n}(i.a)},function(e,t,n){var i=n(0),a=(n(10),n(14)),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function i(e){var t;if(this instanceof i)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,r(i.defaultAdapter,e)))).shakeAnimationEndHandler_=function(){return t.handleShakeAnimationEnd_()},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(i,null,[{key:"cssClasse
1s",get:function(){return a.a}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}}}]),o(i,[{key:"init",value:function(){this.adapter_.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)}},{key:"getWidth",value:function(){return this.adapter_.getWidth()}},{key:"shake",value:function(e){var t=i.cssClasses.LABEL_SHAKE;e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}},{key:"float",value:function(e){var t=i.cssClasses,n=t.LABEL_FLOAT_ABOVE,t=t.LABEL_SHAKE;e?this.adapter_.addClass(n):(this.adapter_.removeClass(n),this.adapter_.removeClass(t))}},{key:"handleShakeAnimationEnd_",value:function(){var e=i.cssClasses.LABEL_SHAKE;this.adapter_.removeClass(e)}}]),i}(i.a);t.a=n},function(e,t,n){n.d(t,"a",function(){return i});var i={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_SHAKE:"mdc-floating-label--shake"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCLineRipple",function(){return l});var i=n(1),a=(n(11),n(16)),r=(n.d(t,"MDCLineRippleFoundation",function(){return a.a}),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}),o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var l=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,[{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"setRippleCenter",value:function(e){this.foundation_.setRippleCenter(e)}},{key:"getDefaultFoundation",value:function(){var n=this;return new a.a(r({addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},hasClass:function(e){return n.root_.classList.contains(e)},setStyle:function(e,t){return n.root_.style[e]=t},registerEventHandler:function(e,t){return n.root_.addEventListener(e,t)},deregisterEventHandler:function(e,t){return n.root_.removeEventListener(e,t)}}))}}],[{key:"attachTo",value:function(e){return new n(e)}}]),n}(i.a)},function(e,t,n){var i=n(0),r=(n(11),n(17)),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function a(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=this,i=a;if(n instanceof i)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,o(a.defaultAdapter,e)))).transitionEndHandler_=function(e){return t.handleTransitionEnd(e)},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(a,null,[{key:"cssClasse
1s",get:function(){return r.a}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}}}]),s(a,[{key:"init",value:function(){this.adapter_.registerEventHandler("transitionend",this.transitionEndHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterEventHandler("transitionend",this.transitionEndHandler_)}},{key:"activate",value:function(){this.adapter_.removeClass(r.a.LINE_RIPPLE_DEACTIVATING),this.adapter_.addClass(r.a.LINE_RIPPLE_ACTIVE)}},{key:"setRippleCenter",value:function(e){this.adapter_.setStyle("transform-origin",e+"px center")}},{key:"deactivate",value:function(){this.adapter_.addClass(r.a.LINE_RIPPLE_DEACTIVATING)}},{key:"handleTransitionEnd",value:function(e){var t=this.adapter_.hasClass(r.a.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter_.removeClass(r.a.LINE_RIPPLE_ACTIVE),this.adapter_.removeClass(r.a.LINE_RIPPLE_DEACTIVATING))}}]),a}(i.a);t.a=n},function(e,t,n){n.d(t,"a",function(){return i});var i={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"}},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"getWidth",value:function(){}},{key:"getHeight",value:function(){}},{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"setOutlinePathAttr",value:function(e){}},{key:"getIdleOutlineStyleValue",value:function(e){}}])},function(e,t,n){n.d(t,"a",function(){return a}),n.d(t,"b",function(){return i});var i={PATH_SELECTOR:".mdc-notched-outline__path",IDLE_OUTLINE_SELECTOR:".mdc-notched-outline__idle"},a={OUTLINE_NOTCHED:"mdc-notched-outline--notched"}},,,,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCNotchedOutline",function(){return l});var i=n(1),a=(n(18),n(26)),r=n(19),o=(n.d(t,"MDCNotchedOutlineFoundation",function(){return a.a}),function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e});function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var l=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,[{key:"notch",value:function(e,t){this.foundation_.notch(e,t)}},{key:"closeNotch",value:function(){this.foundation_.closeNotch()}},{key:"getDefaultFoundation",value:function(){var n=this;return new a.a({getWidth:function(){return n.root_.offsetWidth},getHeight:function(){return n.root_.offsetHeight},addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},setOutlinePathAttr:function(e){n.root_.querySelector(r.b.PATH_SELECTOR).setAttribute("d",e)},getIdleOutlineStyleValue:function(e){var t=n.root_.parentNode.querySelector(r.b.IDLE_OUTLINE_SELECTOR);return window.getComputedStyle(t).getPropertyValue(e)}})}}],[{key:"attachTo",value:function(e){return new n(e)}}]),n}(i.a)},function(e,t,n){var i=n(0),a=(n(18),n(19)),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function i(e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");var t=this,e=(i.__proto__||Object.getPrototypeOf(i)).call(this,r(i.defaultAdapter,e));if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(i,null,[{key:"strings",get:function(){return a.b}}
1,{key:"cssClasses",get:function(){return a.a}},{key:"defaultAdapter",get:function(){return{getWidth:function(){},getHeight:function(){},addClass:function(){},removeClass:function(){},setOutlinePathAttr:function(){},getIdleOutlineStyleValue:function(){}}}}]),o(i,[{key:"notch",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=i.cssClasses.OUTLINE_NOTCHED;this.adapter_.addClass(n),this.updateSvgPath_(e,t)}},{key:"closeNotch",value:function(){var e=i.cssClasses.OUTLINE_NOTCHED;this.adapter_.removeClass(e)}},{key:"updateSvgPath_",value:function(e,t){var n=this.adapter_.getIdleOutlineStyleValue("border-radius")||this.adapter_.getIdleOutlineStyleValue("border-top-left-radius"),n=parseFloat(n),i=this.adapter_.getWidth(),a=this.adapter_.getHeight(),r=n+1.2,o=Math.abs(11-r),e=e+8,a="a"+n+","+n+" 0 0 1 "+n+","+n+"v"+(a-2*r)+"a"+n+","+n+" 0 0 1 "+-n+","+n+"h"+(2*r-i)+"a"+n+","+n+" 0 0 1 "+-n+","+-n+"v"+(2*r-a)+"a"+n+","+n+" 0 0 1 "+n+","+-n,n=void 0,n=t?"M"+(i-r-o)+",1h"+o+a+"h"+(i-2*r-e-o):"M"+(r+o+e)+",1h"+(i-2*r-e-o)+a+"h"+o;this.adapter_.setOutlinePathAttr(n)}}]),i}(i.a);t.a=n},function(e,t,n){var i=n(0),a=(n(43),n(106)),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var t=this,e=(n.__proto__||Object.getPrototypeOf(n)).call(this,r(n.defaultAdapter,e));if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,null,[{key:"cssClasse
1s",get:function(){return a.a}},{key:"strings",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},setAttr:function(){},removeAttr:function(){},setContent:function(){}}}}]),o(n,[{key:"setContent",value:function(e){this.adapter_.setContent(e)}},{key:"setPersistent",value:function(e){e?this.adapter_.addClass(a.a.HELPER_TEXT_PERSISTENT):this.adapter_.removeClass(a.a.HELPER_TEXT_PERSISTENT)}},{key:"setValidation",value:function(e){e?this.adapter_.addClass(a.a.HELPER_TEXT_VALIDATION_MSG):this.adapter_.removeClass(a.a.HELPER_TEXT_VALIDATION_MSG)}},{key:"showToScreenReader",value:function(){this.adapter_.removeAttr(a.b.ARIA_HIDDEN)}},{key:"setValidity",value:function(e){var t=this.adapter_.hasClass(a.a.HELPER_TEXT_PERSISTENT),e=this.adapter_.hasClass(a.a.HELPER_TEXT_VALIDATION_MSG)&&!e;e?this.adapter_.setAttr(a.b.ROLE,"alert"):this.adapter_.removeAttr(a.b.ROLE),t||e||this.hide_()}},{key:"hide_",value:function(){this.adapter_.setAttr(a.b.ARIA_HIDDEN,"true")}}]),n}(i.a);t.a=n},function(e,t,n){var i=n(0),a=(n(44),n(107)),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e){var t;if(this instanceof n)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r(n.defaultAdapter,e)))).savedTabIndex_=null,t.interactionHandler_=function(e){return t.handleInteraction(e)},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,null,[{key:"strings",get:function(){return a.a}},{key:"defaultAdapter",get:function(){return{getAttr:function(){},setAttr:function(){},removeAttr:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}}}]),o(n,[{key:"init",value:function(){var t=this;this.savedTabIndex_=this.adapter_.getAttr("tabindex"),["click","keydown"].forEach(function(e){t.adapter_.registerInteractionHandler(e,t.interactionHandler_)})}},{key:"destroy",value:function(){var t=this;["click","keydown"].forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.interactionHandler_)})}},{key:"setDisabled",value:function(e){this.savedTabIndex_&&(e?(this.adapter_.setAttr("tabindex","-1"),this.adapter_.removeAttr("role")):(this.adapter_.setAttr("tabindex",this.savedTabIndex_),this.adapter_.setAttr("role",a.a.ICON_ROLE)))}},{key:"handleInteraction",value:function(e){"click"!==e.type&&"Enter"!==e.key&&13!==e.keyCode||this.adapter_.notifyIconAction()}}]),n}(i.a);t.a=n},,,,,,,,,,,,,function(e,t,n){n.d(t,"a",function(){return a}),n.d(t,"c",function(){return i}),n.d(t,"b",function(){return r});var i={ARIA_CONTROLS:"aria-controls",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",ICON_SELECTOR:".mdc-text-field__icon",OUTLINE_SELECTOR:".mdc-notched-outline",LINE_RIPPLE_SELECTOR:".mdc-line-ripple"},a={ROOT:"mdc-text-field",UPGRADED:"mdc-text-field--upgraded",DISABLED:"mdc-text-field--disabled",DENSE:"mdc-text-field--dense",FOCUSED:"mdc-text-field--focused",INVALID:"mdc-text-field--invalid",BOX:"mdc-text-field--box",OUTLINED:"mdc-text-field--outlined"},r={LABEL_SCALE:.75,DENSE_LABEL_SCALE:.923}},function(e,t,n){n(27),n(28);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}!function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"hasClass",value:function(e){}},{key:"registerTextFieldInteractionHandler",value:function(e,t){}},{key:"deregisterTextFieldInteractionHandler",value:function(e,t){}},{key:"registerInputInteractionHandler",value:function(e,t){}},{key:"deregisterInputInteractionHandler",value:function(e,t){}},{key:"registerValidationAttributeChangeHandler",value:function(e){}},{key:"deregisterValidationAttributeChangeHandler",value:function(e){}},{key:"getNativeInput",value:function(){}},{key:"isFocused",value:function(){}},{key:"isRtl",value:function(){}},{key:"activateLineRipple",value:function(){}},{key:"deactivateLineRipple",value:function(){}},{key:"setLineRippleTransformOrigin",value:function(e){}},{key:"shakeLabel",value:function(e){}},{key:"floatLabel",value:function(e){}},{key:"hasLabel",value:function(){}},{key:"getLabelWidth",value:function(){}},{key:"hasOutline",value:function(){}},{key:"notchOutline",value:function(e,t){}},{key:"closeOutline",value:function(){}}]);function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"hasClass",value:function(e){}},{key:"setAttr",value:function(e,t){}},{key:"removeAttr",value:function(e){}},{key:"setContent",value:function(e){}}])},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"getAttr",value:function(e){}},{key:"setAttr",value:function(e,t){}},{key:"removeAttr",value:function(e){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"notifyIconAction",value:function(){}}])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){Object.defineProperty(t,"__esMo
1dule",{value:!0}),n.d(t,"MDCTextField",function(){return l});var i=n(1),u=n(4),c=n(2),d=n(41),a=(n(42),n(108)),f=n(15),h=n(109),p=n(110),m=n(12),g=n(25),v=(n.d(t,"MDCTextFieldFoundation",function(){return a.a}),n.d(t,"MDCTextFieldHelperText",function(){return h.a}),n.d(t,"MDCTextFieldHelperTextFoundation",function(){return h.b}),n.d(t,"MDCTextFieldIcon",function(){return p.a}),n.d(t,"MDCTextFieldIconFoundation",function(){return p.b}),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}),o=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?s(i,t,n):void 0}var l=function(e){var t=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(){var e=this,t=r;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(i)));return t.input_,t.ripple,t.lineRipple_,t.helperText_,t.icon_,t.label_,t.outline_,t}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(r,[{key:"initialize",value:function(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(e,t){return new u.MDCRipple(e,t)},n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(e){return new f.MDCLineRipple(e)},i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(e){return new h.a(e)},a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:function(e){return new p.a(e)},r=this,o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:function(e){return new m.MDCFloatingLabel(e)},s=5<arguments.length&&void 0!==arguments[5]?arguments[5]:function(e){return new g.MDCNotchedOutline(e)},l=(this.input_=this.root_.querySelector(d.c.INPUT_SELECTOR),this.root_.querySelector(d.c.LABEL_SELECTOR)),o=(l&&(this.label_=o(l)),this.root_.querySelector(d.c.LINE_RIPPLE_SELECTOR)),l=(o&&(this.lineRipple_=n(o)),this.root_.querySelector(d.c.OUTLINE_SELECTOR)),o=(l&&(this.outline_=s(l)),this.input_.hasAttribute(d.c.ARIA_CONTROLS)&&(n=document.getElementById(this.input_.getAttribute(d.c.ARIA_CONTROLS)))&&(this.helperText_=i(n)),this.root_.querySelector(d.c.ICON_SELECTOR));o&&(this.icon_=a(o)),this.ripple=null,this.root_.classList.contains(d.a.BOX)&&(e=Object(c.getMatchesProperty)(HTMLElement.prototype),s=v(u.MDCRipple.createAdapter(this),{isSurfaceActive:function(){return r.input_[e](":active")},registerInteractionHandler:function(e,t){return r.input_.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){return r.input_.removeEventListener(e,t)}}),l=new u.MDCRippleFoundation(s),this.ripple=t(this.root_,l))}},{key:"destroy",value:function(){this.ripple&&this.ripple.destroy(),this.lineRipple_&&this.lineRipple_.destroy(),this.helperText_&&this.helperText_.destroy(),this.icon_&&this.icon_.destroy(),this.label_&&this.label_.destroy(),this.outline_&&this.outline_.destroy(),s(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"destroy",this).call(this)}},{key:"initialSyncWithDom",value:function(){this.disabled=this.input_.disabled}},{key:"layout",value:function(){var e=this.foundation_.shouldFloat;this.foundation_.notchOutline(e)}},{key:"getDefaultFoundation",value:function(){var n=this;return new a.a(v({addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},hasClass:function(e){return n.root_.classList.contains(e)},registerTextFieldInteractionHandler:function(e,t){return n.root_.addEventListener(e,t)},deregisterTextFieldInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t)},registerValidationAttributeChangeHandler:function(e){var e=new MutationObserver(e),t=n.root_.querySelector(d.c.INPUT_SELECTOR);return e.observe(t,{attributes:!0}),e},deregisterValidationAttributeChangeHandler:function(e){return e.disconnect()},isFocused:function(){return document.activeElement===n.root_.querySelector(d.c.INPUT_SELECTOR)},isRtl:function(){return"rtl"===window.getComputedStyle(n.root_).getPropertyValue("direction")}},this.getInputAdapterMethods_(),this.getLabelAdapterMethods_(),this.getLineRippleAdapterMethods_(),this.getOutlineAdapterMethods_()),this.getFoundationMap_())}},{key:"getLabelAdapterMethods_",value:function(){var t=this;return{shakeLabel:function(e){return t.label_.shake(e)},floatLabel:function(e){return t.label_.float(e)},hasLabel:function(){return!!t.label_},getLabelWidth:function(){return t.label_.getWidth()}}}},{key:"getLineRippleAdapterMethods_",value:function(){var t=this;return{activateLineRipple:function(){t.lineRipple_&&t.lineRipple_.activate()},deactivateLineRipple:function(){t.lineRipple_&&t.lineRipple_.deactivate()},setLineRippleTransformOrigin:function(e){t.lineRipple_&&t.lineRipple_.setRippleCenter(e)}}}},{key:"getOutlineAdapterMethods_",value:function(){var n=this;return{notchOutline:function(e,t){return n.outline_.notch(e,t)},closeOutline:function(){return n.outline_.closeNotch()},hasOutline:function(){return!!n.outline_}}}},{key:"getInputAdapterMethods_",value:function(){var n=this;return{registerInputInteractionHandler:function(e,t){return n.input_.addEventListener(e,t)},deregisterInputInteractionHandler:function(e,t){return n.input_.removeEventListener(e,t)},getNativeInput:function(){return n.input_}}}},{key:"getFoundationMap_",value:function(){return{helperText:this.helperText_?this.helperText_.foundation:void 0,icon:this.icon_?this.icon_.foundation:void 0}}},{key:"value",get:function(){return this.foundation_.getValue()},set:function(e){this.foundation_.setValue(e)}},{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(e){this.foundation_.setDisabled(e)}},{key:"valid",get:function(){return this.foundation_.isValid()},set:function(e){this.foundation_.setValid(e)}},{key:"required",get:function(){return this.input_.required},set:function(e){this.input_.required=e}},{key:"pattern",get:function(){return this.input_.pattern},set:function(e){this.input_.pattern=e}},{key:"minLength",get:function(){return this.input_.minLength},set:function(e){this.input_.minLength=e}},{key:"maxLength",get:function(){return this.input_.maxLength},set:function(e){e<0?this.input_.removeAttribute("maxLength"):this.input_.maxLength=e}},{key:"min",get:function(){return this.input_.min},set:function(e){this.input_.min=e}},{key:"max",get:function(){return this.input_.max},set:function(e){this.input_.max=e}},{key:"step",get:function(){return this.input_.step},set:function(e){this.input_.step=e}},{key:"helperTextContent",set:function(e){this.foundation_.setHelperTextContent(e)}}],[{key:"attachTo",value:function(e){return new r(e)}}]),r}(i.a)},function(e,t,n){n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var i={ARIA_HIDDEN:"aria-hidden",ROLE:"role"}
1,a={HELPER_TEXT_PERSISTENT:"mdc-text-field-helper-text--persistent",HELPER_TEXT_VALIDATION_MSG:"mdc-text-field-helper-text--validation-msg"}},function(e,t,n){n.d(t,"a",function(){return i});var i={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"}},function(e,t,n){var i=n(0),a=(n(27),n(28),n(42),n(41)),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var l=["pattern","min","max","required","step","minlength","maxlength"],n=function(e){var t=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=this,a=r;if(i instanceof a)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,o(r.defaultAdapter,e)))).helperText_=n.helperText,t.icon_=n.icon,t.isFocused_=!1,t.receivedUserInput_=!1,t.useCustomValidityChecking_=!1,t.isValid_=!0,t.inputFocusHandler_=function(){return t.activateFocus()},t.inputBlurHandler_=function(){return t.deactivateFocus()},t.inputInputHandler_=function(){return t.autoCompleteFocus()},t.setPointerXOffset_=function(e){return t.setTransformOrigin(e)},t.textFieldInteractionHandler_=function(){return t.handleTextFieldInteraction()},t.validationAttributeChangeHandler_=function(e){return t.handleValidationAttributeMutation(e)},t.validationObserver_,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(r,[{key:"shouldShake",get:function(){return!this.isValid()&&!this.isFocused_}},{key:"shouldFloat",get:function(){return!this.isBadInput_()&&(!!this.getValue()||this.isFocused_)}}
1],[{key:"cssClasses",get:function(){return a.a}},{key:"strings",get:function(){return a.c}},{key:"numbers",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){},isFocused:function(){},isRtl:function(){},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},hasLabel:function(){},getLabelWidth:function(){},hasOutline:function(){},notchOutline:function(){},closeOutline:function(){}}}}]),s(r,[{key:"init",value:function(){var t=this;this.adapter_.addClass(r.cssClasses.UPGRADED),this.adapter_.hasLabel()&&this.getValue()&&(this.adapter_.floatLabel(this.shouldFloat),this.notchOutline(this.shouldFloat)),this.adapter_.isFocused()&&this.inputFocusHandler_(),this.adapter_.registerInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter_.registerInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter_.registerInputInteractionHandler("input",this.inputInputHandler_),["mousedown","touchstart"].forEach(function(e){t.adapter_.registerInputInteractionHandler(e,t.setPointerXOffset_)}),["click","keydown"].forEach(function(e){t.adapter_.registerTextFieldInteractionHandler(e,t.textFieldInteractionHandler_)}),this.validationObserver_=this.adapter_.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_)}},{key:"destroy",value:function(){var t=this;this.adapter_.removeClass(r.cssClasses.UPGRADED),this.adapter_.deregisterInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter_.deregisterInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter_.deregisterInputInteractionHandler("input",this.inputInputHandler_),["mousedown","touchstart"].forEach(function(e){t.adapter_.deregisterInputInteractionHandler(e,t.setPointerXOffset_)}),["click","keydown"].forEach(function(e){t.adapter_.deregisterTextFieldInteractionHandler(e,t.textFieldInteractionHandler_)}),this.adapter_.deregisterValidationAttributeChangeHandler(this.validationObserver_)}},{key:"handleTextFieldInteraction",value:function(){this.adapter_.getNativeInput().disabled||(this.receivedUserInput_=!0)}},{key:"handleValidationAttributeMutation",value:function(e){var t=this;e.some(function(e){if(-1<l.indexOf(e.attributeName))return t.styleValidity_(!0),!0})}},{key:"notchOutline",value:function(e){var t;this.adapter_.hasOutline()&&this.adapter_.hasLabel()&&(e?(e=this.adapter_.hasClass(a.a.DENSE)?a.b.DENSE_LABEL_SCALE:a.b.LABEL_SCALE,e=this.adapter_.getLabelWidth()*e,t=this.adapter_.isRtl(),this.adapter_.notchOutline(e,t)):this.adapter_.closeOutline())}},{key:"activateFocus",value:function(){this.isFocused_=!0,this.styleFocused_(this.isFocused_),this.adapter_.activateLineRipple(),this.notchOutline(this.shouldFloat),this.adapter_.hasLabel()&&(this.adapter_.shakeLabel(this.shouldShake),this.adapter_.floatLabel(this.shouldFloat)),this.helperText_&&this.helperText_.showToScreenReader()}},{key:"setTransformOrigin",value:function(e){var t=e.target.getBoundingClientRect(),n=e.clientX,e=(e.clientY,n-t.left);this.adapter_.setLineRippleTransformOrigin(e)}},{key:"autoCompleteFocus",value:function(){this.receivedUserInput_||this.activateFocus()}},{key:"deactivateFocus",value:function(){this.isFocused_=!1,this.adapter_.deactivateLineRipple();var e=!this.getNativeInput_().value&&!this.isBadInput_(),t=this.isValid();this.styleValidity_(t),this.styleFocused_(this.isFocused_),this.adapter_.hasLabel()&&(this.adapter_.shakeLabel(this.shouldShake),this.adapter_.floatLabel(this.shouldFloat),this.notchOutline(this.shouldFloat)),e&&(this.receivedUserInput_=!1)}},{key:"getValue",value:function(){return this.getNativeInput_().value}},{key:"setValue",value:function(e){this.getNativeInput_().value=e;e=this.isValid();this.styleValidity_(e),this.adapter_.hasLabel()&&(this.adapter_.shakeLabel(this.shouldShake),this.adapter_.floatLabel(this.shouldFloat),this.notchOutline(this.shouldFloat))}},{key:"isValid",value:function(){return this.useCustomValidityChecking_?this.isValid_:this.isNativeInputValid_()}},{key:"setValid",value:function(e){this.useCustomValidityChecking_=!0,this.isValid_=e,e=this.isValid(),this.styleValidity_(e),this.adapter_.hasLabel()&&this.adapter_.shakeLabel(this.shouldShake)}},{key:"isDisabled",value:function(){return this.getNativeInput_().disabled}},{key:"setDisabled",value:function(e){this.getNativeInput_().disabled=e,this.styleDisabled_(e)}},{key:"setHelperTextContent",value:function(e){this.helperText_&&this.helperText_.setContent(e)}},{key:"isBadInput_",value:function(){return this.getNativeInput_().validity.badInput}},{key:"isNativeInputValid_",value:function(){return this.getNativeInput_().validity.valid}}
1,{key:"styleValidity_",value:function(e){var t=r.cssClasses.INVALID;e?this.adapter_.removeClass(t):this.adapter_.addClass(t),this.helperText_&&this.helperText_.setValidity(e)}},{key:"styleFocused_",value:function(e){var t=r.cssClasses.FOCUSED;e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}},{key:"styleDisabled_",value:function(e){var t=r.cssClasses,n=t.DISABLED,t=t.INVALID;e?(this.adapter_.addClass(n),this.adapter_.removeClass(t)):this.adapter_.removeClass(n),this.icon_&&this.icon_.setDisabled(e)}},{key:"getNativeInput_",value:function(){return this.adapter_.getNativeInput()||{value:"",disabled:!1,validity:{badInput:!1,valid:!0}}}}]),r}(i.a);t.a=n},function(e,t,n){n.d(t,"a",function(){return l});var i=n(1),a=(n(43),n(27)),r=(n.d(t,"b",function(){return a.a}),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}),o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var l=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,[{key:"getDefaultFoundation",value:function(){var n=this;return new a.a(r({addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},hasClass:function(e){return n.root_.classList.contains(e)},setAttr:function(e,t){return n.root_.setAttribute(e,t)},removeAttr:function(e){return n.root_.removeAttribute(e)},setContent:function(e){n.root_.textContent=e}}))}},{key:"foundation",get:function(){return this.foundation_}}],[{key:"attachTo",value:function(e){return new n(e)}}]),n}(i.a)},function(e,t,n){n.d(t,"a",function(){return l});var i=n(1),a=(n(44),n(28)),r=(n.d(t,"b",function(){return a.a}),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}),o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var l=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,[{key:"getDefaultFoundation",value:function(){var n=this;return new a.a(r({getAttr:function(e){return n.root_.getAttribute(e)},setAttr:function(e,t){return n.root_.setAttribute(e,t)},removeAttr:function(e){return n.root_.removeAttribute(e)},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t)},notifyIconAction:function(){return n.emit(a.a.strings.ICON_EVENT,{},!0)}}))}},{key:"foundation",get:function(){return this.foundation_}}],[{key:"attachTo",value:function(e){return new n(e)}}]),n}(i.a)}],a={},i.m=n,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})}
1,i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=105);function i(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,a},"object"==typeof n&&"object"==typeof t?t.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof n?n.textfield=a():(i.mdc=i.mdc||{},i.mdc.textfield=a())},{}],389:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(){return n={0:function(e,t,n){var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.adapter_=e}i(r,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),i(r,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),t.a=r},1:function(e,t,n){var i=n(0),n=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(s,null,[{key:"attachTo",value:function(e){return new s(e,new i.a)}}]),n(s,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(e,t){this.root_.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){this.root_.removeEventListener(e,t)}},{key:"emit",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=void 0;"function"==typeof CustomEvent?i=new CustomEvent(e,{detail:t,bubbles:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(i)}}]);n=s;function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,n=this,i=s;if(!(n instanceof i))throw new TypeError("Cannot call a class as a function");this.root_=e;for(var a=arguments.length,r=Array(2<a?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];this.initialize.apply(this,r),this.foundation_=void 0===t?this.getDefaultFoundation():t,this.foundation_.init(),this.initialSyncWithDOM()}t.a=n},36:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i={ACTIVE:"mdc-slider--active",DISABLED:"mdc-slider--disabled",DISCRETE:"mdc-slider--discrete",FOCUS:"mdc-slider--focus",IN_TRANSIT:"mdc-slider--in-transit",IS_DISCRETE:"mdc-slider--discrete",HAS_TRACK_MARKER:"mdc-slider--display-markers"},a={TRACK_SELECTOR:".mdc-slider__track",TRACK_MARKER_CONTAINER_SELECTOR:".mdc-slider__track-marker-container",LAST_TRACK_MARKER_SELECTOR:".mdc-slider__track-marker:last-child",THUMB_CONTAINER_SELECTOR:".mdc-slider__thumb-container",PIN_VALUE_MARKER_SELECTOR:".mdc-slider__pin-value-marker",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_DISABLED:"aria-disabled",STEP_DATA_ATTR:"data-step",CHANGE_EVENT:"MDCSlider:change",INPUT_EVENT:"MDCSlider:input"},r={PAGE_FACTOR:4}},37:function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"hasClass",value:function(e){}},{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"getAttribute",value:function(e){}},{key:"setAttribute",value:function(e,t){}},{key:"removeAttribute",value:function(e){}},{key:"computeBoundingRect",value:function(){}},{key:"getTabIndex",value:function(){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"registerThumbContainerInteractionHandler",value:function(e,t){}},{key:"deregisterThumbContainerInteractionHandler",value:function(e,t){}},{key:"registerBodyInteractionHandler",value:function(e,t){}},{key:"deregisterBodyInteractionHandler",value:function(e,t){}},{key:"registerResizeHandler",value:function(e){}},{key:"deregisterResizeHandler",value:function(e){}},{key:"notifyInput",value:function(){}},{key:"notifyChange",value:function(){}},{key:"setThumbContainerStyleProperty",value:function(e,t){}},{key:"setTrackStyleProperty",value:function(e,t){}},{key:"setMarkerValue",value:function(e){}},{key:"appendTrackMarkers",value:function(e){}},{key:"removeTrackMarkers",value:function(){}},{key:"setLastTrackMarkersStyleProperty",value:function(e,t){}},{key:"isRTL",value:function(){}}])}
1,8:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"transformStyleProperties",function(){return a}),n.d(t,"getCorrectEventName",function(){return s}),n.d(t,"getCorrectPropertyName",function(){return l});var r={animationstart:{noPrefix:"animationstart",webkitPrefix:"webkitAnimationStart",styleProperty:"animation"},animationend:{noPrefix:"animationend",webkitPrefix:"webkitAnimationEnd",styleProperty:"animation"},animationiteration:{noPrefix:"animationiteration",webkitPrefix:"webkitAnimationIteration",styleProperty:"animation"},transitionend:{noPrefix:"transitionend",webkitPrefix:"webkitTransitionEnd",styleProperty:"transition"}},o={animation:{noPrefix:"animation",webkitPrefix:"-webkit-animation"},transform:{noPrefix:"transform",webkitPrefix:"-webkit-transform"},transition:{noPrefix:"transition",webkitPrefix:"-webkit-transition"}};function i(e,t){var n,i,a;return void 0!==(n=e).document&&"function"==typeof n.document.createElement&&((n=t)in r||n in o)?(n=t in r?r:o,e=e.document.createElement("div"),n===r?(a=n)[i=t].styleProperty in e.style?a[i].noPrefix:a[i].webkitPrefix:n[t].noPrefix in e.style?n[t].noPrefix:n[t].webkitPrefix):t}var a=["transform","WebkitTransform","MozTransform","OTransform","MSTransform"];function s(e,t){return i(e,t)}function l(e,t){return i(e,t)}},93:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCSlider",function(){return l});var i=n(1),o=n(36),s=(n(37),n(94)),a=(n.d(t,"MDCSliderFoundation",function(){return s.a}),function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e});function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var l=function(e){var t=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(){var e=this,t=r;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(i)));return t.thumbContainer_,t.track_,t.pinValueMarker_,t.trackMarkerContainer_,t}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),a(r,null,[{key:"attachTo",value:function(e){return new r(e)}}]),a(r,[{key:"initialize",value:function(){this.thumbContainer_=this.root_.querySelector(o.c.THUMB_CONTAINER_SELECTOR),this.track_=this.root_.querySelector(o.c.TRACK_SELECTOR),this.pinValueMarker_=this.root_.querySelector(o.c.PIN_VALUE_MARKER_SELECTOR),this.trackMarkerContainer_=this.root_.querySelector(o.c.TRACK_MARKER_CONTAINER_SELECTOR)}},{key:"getDefaultFoundation",value:function(){var a=this;return new s.a({hasClass:function(e){return a.root_.classList.contains(e)},addClass:function(e){return a.root_.classList.add(e)},removeClass:function(e){return a.root_.classList.remove(e)},getAttribute:function(e){return a.root_.getAttribute(e)},setAttribute:function(e,t){return a.root_.setAttribute(e,t)},removeAttribute:function(e){return a.root_.removeAttribute(e)},computeBoundingRect:function(){return a.root_.getBoundingClientRect()},getTabIndex:function(){return a.root_.tabIndex},registerInteractionHandler:function(e,t){a.root_.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){a.root_.removeEventListener(e,t)},registerThumbContainerInteractionHandler:function(e,t){a.thumbContainer_.addEventListener(e,t)},deregisterThumbContainerInteractionHandler:function(e,t){a.thumbContainer_.removeEventListener(e,t)},registerBodyInteractionHandler:function(e,t){document.body.addEventListener(e,t)},deregisterBodyInteractionHandler:function(e,t){document.body.removeEventListener(e,t)},registerResizeHandler:function(e){window.addEventListener("resize",e)},deregisterResizeHandler:function(e){window.removeEventListener("resize",e)}
1,notifyInput:function(){a.emit(o.c.INPUT_EVENT,a)},notifyChange:function(){a.emit(o.c.CHANGE_EVENT,a)},setThumbContainerStyleProperty:function(e,t){a.thumbContainer_.style.setProperty(e,t)},setTrackStyleProperty:function(e,t){a.track_.style.setProperty(e,t)},setMarkerValue:function(e){a.pinValueMarker_.innerText=e},appendTrackMarkers:function(e){for(var t=document.createDocumentFragment(),n=0;n<e;n++){var i=document.createElement("div");i.classList.add("mdc-slider__track-marker"),t.appendChild(i)}a.trackMarkerContainer_.appendChild(t)},removeTrackMarkers:function(){for(;a.trackMarkerContainer_.firstChild;)a.trackMarkerContainer_.removeChild(a.trackMarkerContainer_.firstChild)},setLastTrackMarkersStyleProperty:function(e,t){a.root_.querySelector(o.c.LAST_TRACK_MARKER_SELECTOR).style.setProperty(e,t)},isRTL:function(){return"rtl"===getComputedStyle(a.root_).direction}})}},{key:"initialSyncWithDOM",value:function(){var e=parseFloat(this.root_.getAttribute(o.c.ARIA_VALUENOW));this.min=parseFloat(this.root_.getAttribute(o.c.ARIA_VALUEMIN))||this.min,this.max=parseFloat(this.root_.getAttribute(o.c.ARIA_VALUEMAX))||this.max,this.step=parseFloat(this.root_.getAttribute(o.c.STEP_DATA_ATTR))||this.step,this.value=e||this.value,this.disabled=this.root_.hasAttribute(o.c.ARIA_DISABLED)&&"false"!==this.root_.getAttribute(o.c.ARIA_DISABLED),this.foundation_.setupTrackMarker()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"stepUp",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.step||1;this.value+=e}},{key:"stepDown",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.step||1;this.value-=e}},{key:"value",get:function(){return this.foundation_.getValue()},set:function(e){this.foundation_.setValue(e)}},{key:"min",get:function(){return this.foundation_.getMin()},set:function(e){this.foundation_.setMin(e)}},{key:"max",get:function(){return this.foundation_.getMax()},set:function(e){this.foundation_.setMax(e)}},{key:"step",get:function(){return this.foundation_.getStep()},set:function(e){this.foundation_.setStep(e)}},{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(e){this.foundation_.setDisabled(e)}}]),r}(i.a)},94:function(e,t,n){var a=n(36),s=(n(37),n(8)),n=n(0),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var l="ArrowLeft",u="ArrowRight",c="ArrowUp",d="ArrowDown",f="Home",h="End",p="PageUp",m="PageDown",g={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"pointermove"},v=["mousedown","pointerdown","touchstart"],_=["mouseup","pointerup","touchend"],n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e){var t;if(this instanceof n)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,i(n.defaultAdapter,e)))).rect_=null,t.savedTabIndex_=NaN,t.active_=!1,t.inTransit_=!1,t.isDiscrete_=!1,t.hasTrackMarker_=!1,t.handlingThumbTargetEvt_=!1,t.min_=0,t.max_=100,t.step_=0,t.value_=0,t.disabled_=!1,t.preventFocusState_=!1,t.updateUIFrame_=0,t.thumbContainerPointerHandler_=function(){t.handlingThumbTargetEvt_=!0},t.interactionStartHandler_=function(e){return t.handleDown_(e)},t.keydownHandler_=function(e){return t.handleKeydown_(e)},t.focusHandler_=function(){return t.handleFocus_()},t.blurHandler_=function(){return t.handleBlur_()},t.resizeHandler_=function(){return t.layout()},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(n,null,[{key:"cssClasse
1s",get:function(){return a.a}},{key:"strings",get:function(){return a.c}},{key:"numbers",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},getAttribute:function(){return null},setAttribute:function(){},removeAttribute:function(){},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabIndex:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerThumbContainerInteractionHandler:function(){},deregisterThumbContainerInteractionHandler:function(){},registerBodyInteractionHandler:function(){},deregisterBodyInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},notifyInput:function(){},notifyChange:function(){},setThumbContainerStyleProperty:function(){},setTrackStyleProperty:function(){},setMarkerValue:function(){},appendTrackMarkers:function(){},removeTrackMarkers:function(){},setLastTrackMarkersStyleProperty:function(){},isRTL:function(){return!1}}}}]),r(n,[{key:"init",value:function(){var t=this;this.isDiscrete_=this.adapter_.hasClass(a.a.IS_DISCRETE),this.hasTrackMarker_=this.adapter_.hasClass(a.a.HAS_TRACK_MARKER),v.forEach(function(e){return t.adapter_.registerInteractionHandler(e,t.interactionStartHandler_)}),this.adapter_.registerInteractionHandler("keydown",this.keydownHandler_),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_),v.forEach(function(e){t.adapter_.registerThumbContainerInteractionHandler(e,t.thumbContainerPointerHandler_)}),this.adapter_.registerResizeHandler(this.resizeHandler_),this.layout(),this.isDiscrete_&&0==this.getStep()&&(this.step_=1)}},{key:"destroy",value:function(){var t=this;v.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.interactionStartHandler_)}),this.adapter_.deregisterInteractionHandler("keydown",this.keydownHandler_),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),v.forEach(function(e){t.adapter_.deregisterThumbContainerInteractionHandler(e,t.thumbContainerPointerHandler_)}),this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"setupTrackMarker",value:function(){var e,t,n,i;this.isDiscrete_&&this.hasTrackMarker_&&0!=this.getStep()&&(e=this.getMin(),t=((i=this.getMax())-e)/(e=this.getStep()),(n=Math.ceil(t)!==t)&&(t=Math.ceil(t)),this.adapter_.removeTrackMarkers(),this.adapter_.appendTrackMarkers(t),n)&&(n=(i-t*e)/e+1,i=Object(s.getCorrectPropertyName)(window,"flex"),this.adapter_.setLastTrackMarkersStyleProperty(i,String(n)))}},{key:"layout",value:function(){this.rect_=this.adapter_.computeBoundingRect(),this.updateUIForCurrentValue_()}},{key:"getValue",value:function(){return this.value_}},{key:"setValue",value:function(e){this.setValue_(e,!1)}},{key:"getMax",value:function(){return this.max_}},{key:"setMax",value:function(e){if(e<this.min_)throw new Error("Cannot set max to be less than the slider's minimum value");this.max_=e,this.setValue_(this.value_,!1,!0),this.adapter_.setAttribute(a.c.ARIA_VALUEMAX,String(this.max_)),this.setupTrackMarker()}},{key:"getMin",value:function(){return this.min_}},{key:"setMin",value:function(e){if(e>this.max_)throw new Error("Cannot set min to be greater than the slider's maximum value");this.min_=e,this.setValue_(this.value_,!1,!0),this.adapter_.setAttribute(a.c.ARIA_VALUEMIN,String(this.min_)),this.setupTrackMarker()}},{key:"getStep",value:function(){return this.step_}},{key:"setStep",value:function(e){if(e<0)throw new Error("Step cannot be set to a negative number");this.isDiscrete_&&("number"!=typeof e||e<1)&&(e=1),this.step_=e,this.setValue_(this.value_,!1,!0),this.setupTrackMarker()}},{key:"isDisabled",value:function(){return this.disabled_}},{key:"setDisabled",value:function(e){this.disabled_=e,this.toggleClass_(a.a.DISABLED,this.disabled_),this.disabled_?(this.savedTabIndex_=this.adapter_.getTabIndex(),this.adapter_.setAttribute(a.c.ARIA_DISABLED,"true"),this.adapter_.removeAttribute("tabindex")):(this.adapter_.removeAttribute(a.c.ARIA_DISABLED),isNaN(this.savedTabIndex_)||this.adapter_.setAttribute("tabindex",String(this.savedTabIndex_)))}},{key:"handleDown_",value:function(e){var n,t,i=this;this.disabled_||(this.preventFocusState_=!0,this.setInTransit_(!this.handlingThumbTargetEvt_),this.handlingThumbTargetEvt_=!1,this.setActive_(!0),n=function(e){i.handleMove_(e)},t=function t(){i.handleUp_(),i.adapter_.deregisterBodyInteractionHandler(g[e.type],n),_.forEach(function(e){return i.adapter_.deregisterBodyInteractionHandler(e,t)})},this.adapter_.registerBodyInteractionHandler(g[e.type],n),_.forEach(function(e){return i.adapter_.registerBodyInteractionHandler(e,t)}),this.setValueFromEvt_(e))}},{key:"handleMove_",value:function(e){e.preventDefault(),this.setValueFromEvt_(e)}},{key:"handleUp_",value:function(){this.setActive_(!1),this.adapter_.notifyChange()}},{key:"getPageX_",value:function(e){return(e.targetTouches&&0<e.targetTouches.length?e.targetTouches[0]:e).pageX}},{key:"setValueFromEvt_",value:function(e){e=this.getPageX_(e),e=this.computeValueFromPageX_(e);this.setValue_(e,!0)}},{key:"computeValueFromPageX_",value:function(e){var t=this.max_,n=this.min_,e=(e-this.rect_.left)/this.rect_.width;return n+(e=this.adapter_.isRTL()?1-e:e)*(t-n)}},{key:"handleKeydown_",value:function(e){var t=this.getKeyId_(e),t=this.getValueForKeyId_(t);isNaN(t)||(e.preventDefault(),this.adapter_.addClass(a.a.FOCUS),this.setValue_(t,!0),this.adapter_.notifyChange())}}
1,{key:"getKeyId_",value:function(e){return e.key===l||37===e.keyCode?l:e.key===u||39===e.keyCode?u:e.key===c||38===e.keyCode?c:e.key===d||40===e.keyCode?d:e.key===f||36===e.keyCode?f:e.key===h||35===e.keyCode?h:e.key===p||33===e.keyCode?p:e.key===m||34===e.keyCode?m:""}},{key:"getValueForKeyId_",value:function(e){var t=this.max_,n=this.min_,i=this.step_||(t-n)/100;switch(this.adapter_.isRTL()&&(e===l||e===u)&&(i=-i),e){case l:case d:return this.value_-i;case u:case c:return this.value_+i;case f:return this.min_;case h:return this.max_;case p:return this.value_+i*a.b.PAGE_FACTOR;case m:return this.value_-i*a.b.PAGE_FACTOR;default:return NaN}}},{key:"handleFocus_",value:function(){this.preventFocusState_||this.adapter_.addClass(a.a.FOCUS)}},{key:"handleBlur_",value:function(){this.preventFocusState_=!1,this.adapter_.removeClass(a.a.FOCUS)}},{key:"setValue_",value:function(e,t){var n,i;(e!==this.value_||2<arguments.length&&void 0!==arguments[2]&&arguments[2])&&(n=this.min_,i=this.max_,(e=this.step_&&!(e===n||e===i)?this.quantize_(e):e)<n?e=n:i<e&&(e=i),this.value_=e,this.adapter_.setAttribute(a.c.ARIA_VALUENOW,String(this.value_)),this.updateUIForCurrentValue_(),t)&&(this.adapter_.notifyInput(),this.isDiscrete_)&&this.adapter_.setMarkerValue(e)}},{key:"quantize_",value:function(e){return Math.round(e/this.step_)*this.step_}},{key:"updateUIForCurrentValue_",value:function(){var t=this,e=this.max_,n=this.min_,i=(this.value_-n)/(e-n),a=i*this.rect_.width,r=(this.adapter_.isRTL()&&(a=this.rect_.width-a),Object(s.getCorrectPropertyName)(window,"transform")),o=Object(s.getCorrectEventName)(window,"transitionend");this.inTransit_&&this.adapter_.registerThumbContainerInteractionHandler(o,function e(){t.setInTransit_(!1),t.adapter_.deregisterThumbContainerInteractionHandler(o,e)}),this.updateUIFrame_=requestAnimationFrame(function(){t.adapter_.setThumbContainerStyleProperty(r,"translateX("+a+"px) translateX(-50%)"),t.adapter_.setTrackStyleProperty(r,"scaleX("+i+")")})}},{key:"setActive_",value:function(e){this.active_=e,this.toggleClass_(a.a.ACTIVE,this.active_)}},{key:"setInTransit_",value:function(e){this.inTransit_=e,this.toggleClass_(a.a.IN_TRANSIT,this.inTransit_)}},{key:"toggleClass_",value:function(e,t){t?this.adapter_.addClass(e):this.adapter_.removeClass(e)}}]),n}(n.a);t.a=n}},a={},i.m=n,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=93);function i(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,a},"object"==typeof n&&"object"==typeof t?t.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof n?n.slider=a():(i.mdc=i.mdc||{},i.mdc.slider=a())},{}],110:[function(e,t,n){"use strict";var i=l(e("./morningstar/FindFonds")),a=l(e("./calculators/loan-calculator/loanCalculator")),r=l(e("./mdcSelectComponent")),o=l(e("./mdcSimpleMenuDirective")),s=l(e("./tooltip")),e=l(e("./site-search/SiteSearchController"));function l(e){return e&&e.__esModule?e:{default:e}}angular.module("ngAnimate").config(["$animateProvider",function(e){e.classNameFilter(/angular-animate/)}]),angular.module("NYK",["ngCookies","ui.utils.masks","NYK-totalkredit"]).controller("FindFondsController",i.default).controller("LoanCalculatorController",a.default).component("mdcSelect",r.default).directive("mdcMenu",o.default).component("nykTooltip",s.default).controller("SiteSearchController",e.default).config(["$locationProvider",function(e){e.html5Mode({enabled:!0,requireBase:!1,rewriteLinks:!1})}])},{"./calculators/loan-calculator/loanCalculator":200,"./mdcSelectComponent":258,"./mdcSimpleMenuDirective":259,"./morningstar/FindFonds":263,"./site-search/SiteSearchController":314,"./tooltip":354}],354:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var r=e("@material/dialog/dist/mdc.dialog");i(o,[{key:"onClick",value:function(e){e.preventDefault(),this.mdcComponent.lastFocusedTarget=e.target,this.mdcComponent.show()}},{key:"close",value:function(){this.mdcComponent.close()}},{key:"$onDestroy",value:function(){this.mdcComponent.destroy()}}]);e=o;function o(e){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.id=Math.random(),this.mdcComponent=new r.MDCDialog(e[0].querySelector(".mdc-dialog"))}e.$inject=["$element"],n.default={bindings:{title:"@tipTitle",text:"@tipText",linkLogo:"@tipLinkLogo",linkLogoClass:"@tipLinkLogoClass"},controller:e,template:'\n <a\n href="#"\n class="tooltip mdc-typography"\n data-ng-if="$ctrl.text && !($ctrl.linkLogo)"\n tabindex="0"\n ng-click="$ctrl.onClick($event)"\n >?</a>\n <a\n href="#"\n class="tooltip mdc-typography"\n data-ng-if="$ctrl.text && $ctrl.linkLogo"\n tabindex="0"\n ng-click="$ctrl.onClick($event)"\n ><img \n class="{{$ctrl.linkLogoClass || \'icon icon--stroke icon--sm\'}}" \n ng-src="{{$ctrl.linkLogo}}" /></a>\n <aside\n class="mdc-dialog"\n role="alertdialog"\n aria-labelledby="mdc-dialog-label-{{$ctrl.id}}"\n aria-describedby="mdc-dialog-description-{{$ctrl.id}}">\n <div class="mdc-dialog__surface theme-color--white">\n <header class="mdc-dialog__header">\n <h2 id="mdc-dialog-label-{{$ctrl.id}}" class="mdc-dialog__header__title">\n {{$ctrl.title}}\n </h2>\n <button class="tooltip__close" ng-click="$ctrl.close()">\n <svg class="icon icon--stroke icon--rg" aria-hidden="true">\n <use xlink:href="#close-big"></use>\n </svg>\n </button>\n </header>\n <section id="mdc-dialog-description-{{$ctrl.id}}" class="mdc-dialog__body theme-color--white" tabindex="0">\n {{$ctrl.text}}\n </section>\n </div>\n <div class="mdc-dialog__backdrop"></div>\n </aside>\n '}},{"@material/dialog/dist/mdc.dialog":384}],384:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(){return n={0:function(e,t,n){var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.adapter_=e}
1i(r,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),i(r,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),t.a=r},1:function(e,t,n){var i=n(0),n=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(s,null,[{key:"attachTo",value:function(e){return new s(e,new i.a)}}]),n(s,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(e,t){this.root_.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){this.root_.removeEventListener(e,t)}},{key:"emit",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=void 0;"function"==typeof CustomEvent?i=new CustomEvent(e,{detail:t,bubbles:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(i)}}]);n=s;function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,n=this,i=s;if(!(n instanceof i))throw new TypeError("Cannot call a class as a function");this.root_=e;for(var a=arguments.length,r=Array(2<a?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];this.initialize.apply(this,r),this.foundation_=void 0===t?this.getDefaultFoundation():t,this.foundation_.init(),this.initialSyncWithDOM()}t.a=n},2:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"supportsCssVariables",function(){return a}),n.d(t,"applyPassive",function(){return o}),n.d(t,"getMatchesProperty",function(){return s}),n.d(t,"getNormalizedEventCoords",function(){return l});var r=void 0,i=void 0;function a(e){var t,n,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=r;return"boolean"!=typeof r||i?e.CSS&&"function"==typeof e.CSS.supports?(t=e.CSS.supports("--css-vars","yes"),n=e.CSS.supports("(--css-vars: yes)")&&e.CSS.supports("color","#00000000"),a=!(!t&&!n||function(e){var t=e.document,n=t.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",t.body.appendChild(n);e=null!==(t=e.getComputedStyle(n))&&"solid"===t.borderTopStyle;return n.remove(),e}(e)),i||(r=a),a):void 0:a}function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;if(void 0===i||1<arguments.length&&void 0!==arguments[1]&&arguments[1]){var t=!1;try{e.document.addEventListener("test",null,{get passive(){t=!0}})}catch(e){}i=t}return!!i&&{passive:!0}}function s(t){return["webkitMatchesSelector","msMatchesSelector","matches"].filter(function(e){return e in t}).pop()}function l(e,t,n){var i=t.x,t=t.y,i=i+n.left,t=t+n.top,n=void 0,a=void 0,a="touchstart"===e.type?(n=e.changedTouches[0].pageX-i,e.changedTouches[0].pageY-t):(n=e.pageX-i,e.pageY-t);return{x:n,y:a}}},3:function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"browserSupportsCssVars",value:function(){}},{key:"isUnbounded",value:function(){}},{key:"isSurfaceActive",value:function(){}},{key:"isSurfaceDisabled",value:function(){}},{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"containsEventTarget",value:function(e){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"registerDocumentInteractionHandler",value:function(e,t){}},{key:"deregisterDocumentInteractionHandler",value:function(e,t){}},{key:"registerResizeHandler",value:function(e){}},{key:"deregisterResizeHandler",value:function(e){}},{key:"updateCssVariable",value:function(e,t){}},{key:"computeBoundingRect",value:function(){}},{key:"getWindowPageOffset",value:function(){}}])}
1,4:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCRipple",function(){return u}),n.d(t,"RippleCapableSurface",function(){return c});var i=n(1),r=(n(3),n(5)),o=n(2),s=(n.d(t,"MDCRippleFoundation",function(){return r.a}),n.d(t,"util",function(){return o}),function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e});function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function a(){l(this,a);for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(t)));return i.disabled=!1,i.unbounded_,i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(a,[{key:"setUnbounded_",value:function(){this.foundation_.setUnbounded(this.unbounded_)}},{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"getDefaultFoundation",value:function(){return new r.a(a.createAdapter(this))}},{key:"initialSyncWithDOM",value:function(){this.unbounded="mdcRippleIsUnbounded"in this.root_.dataset}},{key:"unbounded",get:function(){return this.unbounded_},set:function(e){this.unbounded_=Boolean(e),this.setUnbounded_()}}],[{key:"attachTo",value:function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isUnbounded,t=void 0===t?void 0:t,e=new a(e);return void 0!==t&&(e.unbounded=t),e}},{key:"createAdapter",value:function(n){var e=o.getMatchesProperty(HTMLElement.prototype);return{browserSupportsCssVars:function(){return o.supportsCssVariables(window)},isUnbounded:function(){return n.unbounded},isSurfaceActive:function(){return n.root_[e](":active")},isSurfaceDisabled:function(){return n.disabled},addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},containsEventTarget:function(e){return n.root_.contains(e)},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t,o.applyPassive())},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t,o.applyPassive())},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,o.applyPassive())},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,o.applyPassive())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},updateCssVariable:function(e,t){return n.root_.style.setProperty(e,t)},computeBoundingRect:function(){return n.root_.getBoundingClientRect()},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}}}}}]),a}(i.a),c=function e(){l(this,e)};c.prototype.root_,c.prototype.unbounded,c.prototype.disabled},5:function(e,t,n){var i=n(0),a=(n(3),n(6)),r=n(2),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e};function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=["touchstart","pointerdown","mousedown","keydown"],d=["touchend","pointerup","mouseup"],f=[],n=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function c(e){var t;if(this instanceof c)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,o(c.defaultAdapter,e)))).layoutFrame_=0,t.frame_={width:0,height:0},t.activationState_=t.defaultActivationState_(),t.initialSize_=0,t.maxRadius_=0,t.activateHandler_=function(e){return t.activate_(e)},t.deactivateHandler_=function(e){return t.deactivate_(e)},t.focusHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.addClass(c.cssClasse
1s.BG_FOCUSED)})},t.blurHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.removeClass(c.cssClasses.BG_FOCUSED)})},t.resizeHandler_=function(){return t.layout()},t.unboundedCoords_={left:0,top:0},t.fgScale_=0,t.activationTimer_=0,t.fgDeactivationRemovalTimer_=0,t.activationAnimationHasEnded_=!1,t.activationTimerCallback_=function(){t.activationAnimationHasEnded_=!0,t.runDeactivationUXLogicIfReady_()},t.previousActivationEvent_=null,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(c,null,[{key:"cssClasses",get:function(){return a.a}},{key:"strings",get:function(){return a.c}},{key:"numbers",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{browserSupportsCssVars:function(){},isUnbounded:function(){},isSurfaceActive:function(){},isSurfaceDisabled:function(){},addClass:function(){},removeClass:function(){},containsEventTarget:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerDocumentInteractionHandler:function(){},deregisterDocumentInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},updateCssVariable:function(){},computeBoundingRect:function(){},getWindowPageOffset:function(){}}}}]),s(c,[{key:"isSupported_",value:function(){return this.adapter_.browserSupportsCssVars()}},{key:"defaultActivationState_",value:function(){return{isActivated:!1,hasDeactivationUXRun:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1,activationEvent:null,isProgrammatic:!1}}},{key:"init",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.registerRootHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.addClass(t),i.adapter_.isUnbounded()&&(i.adapter_.addClass(n),i.layoutInternal_())}))}},{key:"destroy",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,e=c.cssClasses.FG_ACTIVATION,this.adapter_.removeClass(e)),this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.removeClass(t),i.adapter_.removeClass(n),i.removeCssVars_()}))}},{key:"registerRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.registerInteractionHandler(e,t.activateHandler_)}),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)}},{key:"registerDeactivationHandlers_",value:function(e){var t=this;"keydown"===e.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):d.forEach(function(e){t.adapter_.registerDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"deregisterRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.activateHandler_)}),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"deregisterDeactivationHandlers_",value:function(){var t=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),d.forEach(function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"removeCssVars_",value:function(){var t=this,n=c.strings;Object.keys(n).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(n[e],null)})}},{key:"activate_",value:function(e){var t,n,i=this;this.adapter_.isSurfaceDisabled()||(t=this.activationState_).isActivated||(n=this.previousActivationEvent_)&&e&&n.type!==e.type||(t.isActivated=!0,t.isProgrammatic=null===e,t.activationEvent=e,t.wasActivatedByPointer=!t.isProgrammatic&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type),e&&0<f.length&&f.some(function(e){return i.adapter_.containsEventTarget(e)})?this.resetActivationState_():(e&&(f.push(e.target),this.registerDeactivationHandlers_(e)),t.wasElementMadeActive=this.checkElementMadeActive_(e),t.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){f=[],t.wasElementMadeActive||" "!==e.key&&32!==e.keyCode||(t.wasElementMadeActive=i.checkElementMadeActive_(e),t.wasElementMadeActive&&i.animateActivation_()),t.wasElementMadeActive||(i.activationState_=i.defaultActivationState_())})))}},{key:"checkElementMadeActive_",value:function(e){return!e||"keydown"!==e.type||this.adapter_.isSurfaceActive()}},{key:"activate",value:function(){this.activate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateActivation_",value:function(){var e,t,n=this,i=c.strings,a=i.VAR_FG_TRANSLATE_START,i=i.VAR_FG_TRANSLATE_END,r=c.cssClasse
1s,o=r.FG_DEACTIVATION,r=r.FG_ACTIVATION,s=c.numbers.DEACTIVATION_TIMEOUT_MS,l=(this.layoutInternal_(),""),u="";this.adapter_.isUnbounded()||(e=(t=this.getFgTranslationCoordinates_()).startPoint,t=t.endPoint,l=e.x+"px, "+e.y+"px",u=t.x+"px, "+t.y+"px"),this.adapter_.updateCssVariable(a,l),this.adapter_.updateCssVariable(i,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(o),this.adapter_.computeBoundingRect(),this.adapter_.addClass(r),this.activationTimer_=setTimeout(function(){return n.activationTimerCallback_()},s)}},{key:"getFgTranslationCoordinates_",value:function(){var e=this.activationState_,t=e.activationEvent,n=void 0;return{startPoint:n={x:(n=e.wasActivatedByPointer?Object(r.getNormalizedEventCoords)(t,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:n.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}}},{key:"runDeactivationUXLogicIfReady_",value:function(){var e=this,t=c.cssClasses.FG_DEACTIVATION,n=this.activationState_,i=n.hasDeactivationUXRun,n=n.isActivated;!i&&n||!this.activationAnimationHasEnded_||(this.rmBoundedActivationClasses_(),this.adapter_.addClass(t),this.fgDeactivationRemovalTimer_=setTimeout(function(){e.adapter_.removeClass(t)},a.b.FG_DEACTIVATION_MS))}},{key:"rmBoundedActivationClasses_",value:function(){var e=c.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()}},{key:"resetActivationState_",value:function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return e.previousActivationEvent_=null},c.numbers.TAP_DELAY_MS)}},{key:"deactivate_",value:function(e){var t,n=this,i=this.activationState_;i.isActivated&&(t=o({},i),i.isProgrammatic?(requestAnimationFrame(function(){return n.animateDeactivation_(null,t)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){n.activationState_.hasDeactivationUXRun=!0,n.animateDeactivation_(e,t),n.resetActivationState_()})))}},{key:"deactivate",value:function(){this.deactivate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateDeactivation_",value:function(e,t){var n=t.wasActivatedByPointer,t=t.wasElementMadeActive;(n||t)&&this.runDeactivationUXLogicIfReady_()}},{key:"layout",value:function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})}},{key:"layoutInternal_",value:function(){var e=this,t=(this.frame_=this.adapter_.computeBoundingRect(),Math.max(this.frame_.height,this.frame_.width));this.maxRadius_=this.adapter_.isUnbounded()?t:Math.sqrt(Math.pow(e.frame_.width,2)+Math.pow(e.frame_.height,2))+c.numbers.PADDING,this.initialSize_=t*c.numbers.INITIAL_ORIGIN_SCALE,this.fgScale_=this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()}},{key:"updateLayoutCssVars_",value:function(){var e=c.strings,t=e.VAR_FG_SIZE,n=e.VAR_LEFT,i=e.VAR_TOP,e=e.VAR_FG_SCALE;this.adapter_.updateCssVariable(t,this.initialSize_+"px"),this.adapter_.updateCssVariable(e,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(n,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(i,this.unboundedCoords_.top+"px"))}},{key:"setUnbounded",value:function(e){var t=c.cssClasses.UNBOUNDED;e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}}]),c}(i.a);t.a=n},54:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCDialog",function(){return c});var i=n(7),a=n(4),r=n(55),o=n(57),s=(n.d(t,"MDCDialogFoundation",function(){return r.a}),n.d(t,"util",function(){return o}),function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e});function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?u(i,t,n):void 0}var c=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(n,[{key:"initialize",value:function(){this.focusTrap_=o.createFocusTrapInstance(this.dialogSurface_,this.acceptButton_),this.footerBtnRipples_=[];for(var e,t=this.root_.querySelectorAll(".mdc-dialog__footer__button"),n=0;e=t[n];n++)this.footerBtnRipples_.push(new a.MDCRipple(e))}},{key:"destroy",value:function(){this.footerBtnRipples_.forEach(function(e){return e.destroy()}),u(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"destroy",this).call(this)}},{key:"show",value:function(){this.foundation_.open()}},{key:"close",value:function(){this.foundation_.close()}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)}
1,addBodyClass:function(e){return document.body.classList.add(e)},removeBodyClass:function(e){return document.body.classList.remove(e)},eventTargetHasClass:function(e,t){return e.classList.contains(t)},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t)},registerSurfaceInteractionHandler:function(e,t){return n.dialogSurface_.addEventListener(e,t)},deregisterSurfaceInteractionHandler:function(e,t){return n.dialogSurface_.removeEventListener(e,t)},registerDocumentKeydownHandler:function(e){return document.addEventListener("keydown",e)},deregisterDocumentKeydownHandler:function(e){return document.removeEventListener("keydown",e)},registerTransitionEndHandler:function(e){return n.dialogSurface_.addEventListener("transitionend",e)},deregisterTransitionEndHandler:function(e){return n.dialogSurface_.removeEventListener("transitionend",e)},notifyAccept:function(){return n.emit(r.a.strings.ACCEPT_EVENT)},notifyCancel:function(){return n.emit(r.a.strings.CANCEL_EVENT)},trapFocusOnSurface:function(){return n.focusTrap_.activate()},untrapFocusOnSurface:function(){return n.focusTrap_.deactivate()},isDialog:function(e){return e===n.dialogSurface_}})}},{key:"open",get:function(){return this.foundation_.isOpen()}},{key:"acceptButton_",get:function(){return this.root_.querySelector(r.a.strings.ACCEPT_SELECTOR)}},{key:"dialogSurface_",get:function(){return this.root_.querySelector(r.a.strings.DIALOG_SURFACE_SELECTOR)}}],[{key:"attachTo",value:function(e){return new n(e)}}]),n}(i.MDCComponent)},55:function(e,t,n){var i=n(7),a=n(56),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e){var t;if(this instanceof n)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r(n.defaultAdapter,e)))).isOpen_=!1,t.componentClickHandler_=function(e){t.adapter_.eventTargetHasClass(e.target,a.a.BACKDROP)&&t.cancel(!0)},t.dialogClickHandler_=function(e){return t.handleDialogClick_(e)},t.documentKeydownHandler_=function(e){(e.key&&"Escape"===e.key||27===e.keyCode)&&t.cancel(!0)},t.transitionEndHandler_=function(e){return t.handleTransitionEnd_(e)},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,null,[{key:"cssClasse
1s",get:function(){return a.a}},{key:"strings",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},addBodyClass:function(){},removeBodyClass:function(){},eventTargetHasClass:function(){return!1},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerSurfaceInteractionHandler:function(){},deregisterSurfaceInteractionHandler:function(){},registerDocumentKeydownHandler:function(){},deregisterDocumentKeydownHandler:function(){},registerTransitionEndHandler:function(){},deregisterTransitionEndHandler:function(){},notifyAccept:function(){},notifyCancel:function(){},trapFocusOnSurface:function(){},untrapFocusOnSurface:function(){},isDialog:function(){return!1}}}}]),o(n,[{key:"destroy",value:function(){this.isOpen_&&(this.adapter_.deregisterSurfaceInteractionHandler("click",this.dialogClickHandler_),this.adapter_.deregisterDocumentKeydownHandler(this.documentKeydownHandler_),this.adapter_.deregisterInteractionHandler("click",this.componentClickHandler_),this.adapter_.untrapFocusOnSurface(),this.adapter_.deregisterTransitionEndHandler(this.transitionEndHandler_),this.adapter_.removeClass(n.cssClasses.ANIMATING),this.adapter_.removeClass(n.cssClasses.OPEN),this.enableScroll_())}},{key:"open",value:function(){this.isOpen_=!0,this.disableScroll_(),this.adapter_.registerDocumentKeydownHandler(this.documentKeydownHandler_),this.adapter_.registerSurfaceInteractionHandler("click",this.dialogClickHandler_),this.adapter_.registerInteractionHandler("click",this.componentClickHandler_),this.adapter_.registerTransitionEndHandler(this.transitionEndHandler_),this.adapter_.addClass(n.cssClasses.ANIMATING),this.adapter_.addClass(n.cssClasses.OPEN)}},{key:"close",value:function(){this.isOpen_=!1,this.enableScroll_(),this.adapter_.deregisterSurfaceInteractionHandler("click",this.dialogClickHandler_),this.adapter_.deregisterDocumentKeydownHandler(this.documentKeydownHandler_),this.adapter_.deregisterInteractionHandler("click",this.componentClickHandler_),this.adapter_.untrapFocusOnSurface(),this.adapter_.registerTransitionEndHandler(this.transitionEndHandler_),this.adapter_.addClass(n.cssClasses.ANIMATING),this.adapter_.removeClass(n.cssClasses.OPEN)}},{key:"isOpen",value:function(){return this.isOpen_}},{key:"accept",value:function(e){e&&this.adapter_.notifyAccept(),this.close()}},{key:"cancel",value:function(e){e&&this.adapter_.notifyCancel(),this.close()}},{key:"handleDialogClick_",value:function(e){e=e.target;this.adapter_.eventTargetHasClass(e,a.a.ACCEPT_BTN)?this.accept(!0):this.adapter_.eventTargetHasClass(e,a.a.CANCEL_BTN)&&this.cancel(!0)}},{key:"handleTransitionEnd_",value:function(e){this.adapter_.isDialog(e.target)&&(this.adapter_.deregisterTransitionEndHandler(this.transitionEndHandler_),this.adapter_.removeClass(n.cssClasses.ANIMATING),this.isOpen_)&&this.adapter_.trapFocusOnSurface()}},{key:"disableScroll_",value:function(){this.adapter_.addBodyClass(a.a.SCROLL_LOCK)}},{key:"enableScroll_",value:function(){this.adapter_.removeBodyClass(a.a.SCROLL_LOCK)}}]),n}(i.MDCFoundation);t.a=n},56:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i={ROOT:"mdc-dialog",OPEN:"mdc-dialog--open",ANIMATING:"mdc-dialog--animating",BACKDROP:"mdc-dialog__backdrop",SCROLL_LOCK:"mdc-dialog-scroll-lock",ACCEPT_BTN:"mdc-dialog__footer__button--accept",CANCEL_BTN:"mdc-dialog__footer__button--cancel"},a={OPEN_DIALOG_SELECTOR:".mdc-dialog--open",DIALOG_SURFACE_SELECTOR:".mdc-dialog__surface",ACCEPT_SELECTOR:".mdc-dialog__footer__button--accept",ACCEPT_EVENT:"MDCDialog:accept",CANCEL_EVENT:"MDCDialog:cancel"}},57:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createFocusTrapInstance=function(e,t){return(2<arguments.length&&void 0!==arguments[2]?arguments[2]:i.a)(e,{initialFocus:t,clickOutsideDeactivates:!0})};var t=n(58),i=n.n(t)},58:function(e,t,n){var _=n(59),y=null;function b(e){e&&e.focus&&(e.focus(),"input"===e.tagName.toLowerCase())&&e.select()}e.exports=function(e,t){var a=[],n=null,i=!1,r=!1,o="string"==typeof e?document.querySelector(e):e,s=t||{},l=(s.returnFocusOnDeactivate=!t||void 0===t.returnFocusOnDeactivate||t.returnFocusOnDeactivate,s.escapeDeactivates=!t||void 0===t.escapeDeactivates||t.escapeDeactivates,{activate:function(e){if(!i)return e={onActivate:(e&&void 0!==e.onActivate?e:s).onActivate},r=!(i=!0),n=document.activeElement,e.onActivate&&e.onActivate(),c(),l},deactivate:u,pause:function(){!r&&i&&(r=!0,d())},unpause:function(){r&&i&&(r=!1,c())}});return l;function u(e){if(i)return e={returnFocus:e&&void 0!==e.returnFocus?e.returnFocus:s.returnFocusOnDeactivate,onDeactivate:(e&&void 0!==e.onDeactivate?e:s).onDeactivate},d(),e.onDeactivate&&e.onDeactivate(),e.returnFocus&&setTimeout(function(){b(n)},0),r=i=!1,this}function c(){i&&(y&&y.pause(),y=l,v(),b(function(){var e;e=null!==f("initialFocus")?f("initialFocus"):o.contains(document.activeElement)?document.activeElement:a[0]||f("fallbackFocus");if(e)return e;throw new Error("You can't have a focus-trap without at least one focusable element")}()),document.addEventListener("focus",m,!0),document.addEventListener("click",p,!0),document.addEventListener("mousedown",h,!0),document.addEventListener("touchstart",h,!0),document.addEventListener("keydown",g,!0))}function d(){i&&y===l&&(document.removeEventListener("focus",m,!0),document.removeEventListener("click",p,!0),document.removeEventListener("mousedown",h,!0),document.removeEventListener("touchstart",h,!0),document.removeEventListener("keydown",g,!0),y=null)}function f(e){var t=s[e],n=t;if(!t)return null;if("string"==typeof t&&!(n=document.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"!=typeof t||(n=t()))return n;
1throw new Error("`"+e+"` did not return a node")}function h(e){s.clickOutsideDeactivates&&!o.contains(e.target)&&u({returnFocus:!1})}function p(e){s.clickOutsideDeactivates||o.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function m(e){o.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation(),"function"==typeof e.target.blur&&e.target.blur())}function g(e){"Tab"!==e.key&&9!==e.keyCode||!function(e){e.preventDefault(),v();var t=a.indexOf(e.target),n=a[a.length-1],i=a[0];if(e.shiftKey)return e.target===i||-1===a.indexOf(e.target)?b(n):b(a[t-1]);if(e.target===n)return b(i);b(a[t+1])}(e),!1===s.escapeDeactivates||"Escape"!==(e=e).key&&"Esc"!==e.key&&27!==e.keyCode||u()}function v(){a=_(o)}}},59:function(e,t){e.exports=function(e){for(var o,t,n,i=[],a=[],r=(o=[],function(e){return e!==document.documentElement&&(!!function e(t,n){if(t===document.documentElement)return!1;for(var i=0,a=o.length;i<a;i++)if(o[i][0]===t)return o[i][1];var r=!1;return"none"===(n=n||window.getComputedStyle(t)).display?r=!0:t.parentNode&&(r=e(t.parentNode)),o.push([t,r]),r}(e,e=window.getComputedStyle(e))||"hidden"===e.visibility)}),s=e.querySelectorAll(["input","select","a[href]","textarea","button","[tabindex]"]),l=0,u=s.length;l<u;l++)t=s[l],(n=parseInt(t.getAttribute("tabindex"),10)||t.tabIndex)<0||"INPUT"===t.tagName&&"hidden"===t.type||t.disabled||r(t)||(0===n?i.push(t):a.push({tabIndex:n,node:t}));e=a.sort(function(e,t){return e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(e,i),e}},6:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i={ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded",BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation"},a={VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end"},r={PADDING:10,INITIAL_ORIGIN_SCALE:.6,DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,TAP_DELAY_MS:300}},7:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1);n.d(t,"MDCFoundation",function(){return i.a}),n.d(t,"MDCComponent",function(){return a.a})}},a={},i.m=n,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=54);function i(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,a},"object"==typeof n&&"object"==typeof t?t.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof n?n.dialog=a():(i.mdc=i.mdc||{},i.mdc.dialog=a())},{}],314:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=u(e("mithril")),o=u(e("moment")),s=(e("moment/locale/da"),e("moment/locale/en-gb"),e("@material/tabs/dist/mdc.tabs")),l=e("./gtmSearchServices");function u(e){return e&&e.__esModule?e:{default:e}}i(c,[{key:"_updateSearch",value:function(){var e,t,n,i=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).loadMore,a=void 0!==i&&i;this.$location.search("q",this.searchText),this.searchText.trim()?(i=void 0,this.sections&&0<this._activeSectionIndex&&(i=this.sections[this._activeSectionIndex-1]),e=this._url,t={searchTerm:this.searchText,searchSection:i?i.value:null,pageNumber:this._pageNumber},this._asyncCounter++,this.isLoading=!0,this.isLoadingMore=a,n=this._asyncCounter,this.$http({url:e+"?"+r.default.buildQueryString(t),method:"GET"}).then(function(e){e=e.data;n===this._asyncCounter&&(this.isLoading=!1,this.isLoadingMore=!1,this.totalResults=e.NumberOfHits,this.totalResultsAllSections=e.UnfilteredNumberOfHits,a||(this.results=[]),this.results=this.results.concat(e.Hits),this.canLoadMore=e.PagingPagesTotal>this._pageNumber,this.hasDidYouMeanResults=e.HasDidYouMeanHits,this.didYouMeanResults=e.DidYouMeanHits,this.resultSearchText=t.searchTerm,this._updateSectionFacets(e.SectionFacets),this._layoutTabBar(),(this.ShowEpiserverFindErrorMessage=!1,l.registerSearch)("submit","intern søgning",t.searchTerm,e.UnfilteredNumberOfHits))}.bind(this)).catch(function(e){e=e.data;n===this._asyncCounter&&(this.isLoading=!1,this.isLoadingMore=!1,this.totalResults=0,this.totalResultsAllSections=0,this.results=[],this.canLoadMore=!1,this.hasDidYouMeanResults=!1,this.didYouMeanResults=[],this.resultSearchText="",this.ShowEpiserverFindErrorMessage=!0,this._updateSectionFacets([])),console.log("Document archive search error:"+e)}.bind(this))):(this.isLoading=!1,this.isLoadingMore=!1,this.totalResults=0,this.totalResultsAllSections=0,this.results=[],this.canLoadMore=!1,this.hasDidYouMeanResults=!1,this.didYouMeanResults=[],this.resultSearchText="",this.ShowEpiserverFindErrorMessage=!1,this._updateSectionFacets([]))}},{key:"_layoutTabBar",value:function(){var e=this;this.$timeout(function(){e._mdcTabBar&&e._mdcTabBar.layout()})}},{key:"_updateSectionFacets",value:function(e){var t;this.sections&&(t={},e.forEach(function(e){return t[e.Term]=e.Count}),this.sections.forEach(function(e){return e.facetCount=t[e.value]||
10}))}},{key:"init",value:function(e){this._locale=e.locale,this._url=e.url,this.sections=e.sections,this.popularSearches=e.popularSearches,this._updateSectionFacets([]);var t=this.$location.search();this.searchText=t.q||e.query||"",this._updateSearch(),this._broadcastSiteSearchInitiated(this.searchText)}},{key:"didYouMeanSearch",value:function(e){this.searchText=e,this._updateSearchInput(),this._broadcastSiteSearchInitiated(e)}},{key:"_broadcastSiteSearchInitiated",value:function(e){var t=document.createEvent("Event");t.initEvent("broadcastSiteSearchInitiated",!1,!1),t.data=e,window.dispatchEvent(t)}},{key:"choosePopularSearch",value:function(e){this.searchText=e,this._updateSearchInput()}},{key:"inputChanged",value:function(){this._updateSearchInput()}},{key:"_updateSearchInput",value:function(){this._pageNumber=1,this.canLoadMore=!1,this._updateSearch()}},{key:"loadMore",value:function(){this._pageNumber++,this._updateSearch({loadMore:!0})}},{key:"toLocaleString",value:function(e){e=(0,o.default)(e);return e.locale(this._locale),e.format("LL")}}]);e=c;function c(e,n,t,i,a,r){var o=this;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");this.$rootScope=e,this.$http=t,this.$location=i,this.$timeout=r,this._locale="da-dk",this._url=null,this.sections=null,this.searchText="",this._pageNumber=1,this.totalResults=0,this.totalResultsAllSections=0,this.results=[],this.hasDidYouMeanResults=!1,this.didYouMeanResults=[],this.resultSearchText="",this.ShowEpiserverFindErrorMessage=!1,this.canLoadMore=!1,this.isLoading=!1,this.isLoadingMore=!1,this._asyncCounter=0,this._activeSectionIndex=0,this._mdcTabBar=null,r(function(){var e=a[0].querySelector("#searchResultTabBar");e&&(o._mdcTabBar=new s.MDCTabBar(e),o._mdcTabBar.listen("MDCTabBar:change",function(e){var t=e.detail;n.$apply(function(){o._activeSectionIndex=t.activeTabIndex,o._updateSearchInput()})}),o._mdcTabBar.tabs.forEach(function(e){e.preventDefaultOnClick=!0}))}),window.addEventListener("broadcastMenuSearchBar",function(e){n.$apply(function(){o.searchText=e.data,o.inputChanged()})})}e.$inject=["$rootScope","$scope","$http","$location","$element","$timeout"],n.default=e},{"./gtmSearchServices":315,"@material/tabs/dist/mdc.tabs":391,mithril:410,moment:413,"moment/locale/da":411,"moment/locale/en-gb":412}],412:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(e){return e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}})},"object"==typeof n&&void 0!==t&&"function"==typeof e?a(e("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(i.moment)},{"../moment":413}],411:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(e){return e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"==typeof n&&void 0!==t&&"function"==typeof e?a(e("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(i.moment)},{"../moment":413}],413:[function(Mn,Ln,e){"use strict";var t,n;t=void 0,n=function(){var $;function m(){return $.apply(null,arguments)}function g(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function H(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function v(e){return void 0===e}function _(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function N(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function j(e,t){for(var n=[],i=e.length,a=0;a<i;++a)n.push(t(e[a],a));return n}function V(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,i){return Lt(e,t,n,i,!0).utc()}function y(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invali
vendor: 6,122 bytes, line 1
1dMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function B(e){var t,n,i=e._d&&!isNaN(e._d.getTime());return i&&(t=y(e),n=W.call(t.parsedDateParts,function(e){return null!=e}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict)&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function U(e){var t=u(NaN);return null!=e?V(y(t),e):y(t).userInvalidated=!0,t}var W=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1},Y=m.momentProperties=[],z=!1;function G(e,t){var n,i,a,r=Y.length;if(v(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),v(t._i)||(e._i=t._i),v(t._f)||(e._f=t._f),v(t._l)||(e._l=t._l),v(t._strict)||(e._strict=t._strict),v(t._tzm)||(e._tzm=t._tzm),v(t._isUTC)||(e._isUTC=t._isUTC),v(t._offset)||(e._offset=t._offset),v(t._pf)||(e._pf=y(t)),v(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)v(a=t[i=Y[n]])||(e[i]=a);return e}function q(e){G(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,m.updateOffset(this),z=!1)}function b(e){return e instanceof q||null!=e&&null!=e._isAMomentObject}function X(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(r,o){var s=!0;return V(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,r),s){for(var e,t,n=[],i=arguments.length,a=0;a<i;a++){if(e="","object"==typeof arguments[a]){for(t in e+="\n["+a+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[a];n.push(e)}X(r+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),s=!1}return o.apply(this,arguments)},o)}var K={};function Z(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function o(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function J(e,t){var n,i=V({},e);for(n in t)f(t,n)&&(H(e[n])&&H(t[n])?(i[n]={},V(i[n],e[n]),V(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)f(e,n)&&!f(t,n)&&H(e[n])&&(i[n]=V({},i[n]));return i}function Q(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var ee=Object.keys||function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};function r(e,t,n){var i=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var te=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},ae={};function i(e,t,n,i){var a="string"==typeof i?function(){return this[i]()}:i;e&&(ae[e]=a),t&&(ae[t[0]]=function(){return r(a.apply(this,arguments),t[1],t[2])}),n&&(ae[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function re(e,t){return e.isValid()?(t=oe(t,e.localeData()),ie[t]=ie[t]||function(i){for(var e,a=i.match(te),t=0,r=a.length;t<r;t++)ae[a[t]]?a[t]=ae[a[t]]:a[t]=(e=a[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<r;n++)t+=o(a[n])?a[n].call(e,i):a[n];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function oe(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=n&&ne.test(e);)e=e.replace(ne,i),ne.lastIndex=0,--n;return e}var se={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function s(e){return"string"==typeof e?se[e]||se[e.toLowerCase()]:void 0}function le(e){var t,n,i={};for(n in e)f(e,n)&&(t=s(n))&&(i[t]=e[n]);return i}var ue={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var ce=/\d/,t=/\d\d/,de=/\d{3}/,fe=/\d{4}/,he=/[+-]?\d{6}/,n=/\d\d?/,pe=/\d\d\d\d?/,me=/\d\d\d\d\d\d?/,ge=/\d{1,3}/,ve=/\d{1,4}/,_e=/[+-]?\d{1,6}/,ye=/\d+/,be=/[+-]?\d+/,ke=/Z|[+-]\d\d:?\d\d/gi,we=/Z|[+-]\d\d(?::?\d\d)?/gi,a=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,l=/^[1-9]\d?/,c=/^([1-9]\d|\d)/;function d(e,n,i){xe[e]=o(n)?n:function(e,t){return e&&i?i:n}}function Se(e,t){return f(xe,e)?xe[e](t._strict,t._locale):new RegExp(h(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,a){return t||n||i||a})))}function h(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function p(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?p(e):t}var xe={},Ce={};function w(e,n){var t,i,a=n;for("string"==typeof e&&(e=[e]),_(n)&&(a=function(e,t){t[n]=k(e)}),i=e.length,t=0;t<i;t++)Ce[e[t]]=a}function Te(e,a){w(e,function(e,t,n,i){n._w=n._w||{},a(e,n._w,n,i)})}function Ee(e){return e%4==0&&e%100!=0||e%400==0}var S=0,x=1,C=2,T=3,E=4,A=5,Ae=6,Oe=7,Me=8;function Le(e){return Ee(e)?366:365}i("Y",0,0,function(){var e=this.year();
vendor: 1,685 bytes, line 1
1return e<=9999?r(e,4):"+"+e}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),d("Y",be),d("YY",n,t),d("YYYY",ve,fe),d("YYYYY",_e,he),d("YYYYYY",_e,he),w(["YYYYY","YYYYYY"],S),w("YYYY",function(e,t){t[S]=2===e.length?m.parseTwoDigitYear(e):k(e)}),w("YY",function(e,t){t[S]=m.parseTwoDigitYear(e)}),w("Y",function(e,t){t[S]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return k(e)+(68<k(e)?1900:2e3)};var O,Ie=De("FullYear",!0);function De(t,n){return function(e){return null!=e?(Re(this,t,e),m.updateOffset(this,n),this):Pe(this,t)}}function Pe(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Re(e,t,n){var i,a,r;if(e.isValid()&&!isNaN(n)){switch(i=e._d,a=e._isUTC,t){case"Milliseconds":return a?i.setUTCMilliseconds(n):i.setMilliseconds(n);case"Seconds":return a?i.setUTCSeconds(n):i.setSeconds(n);case"Minutes":return a?i.setUTCMinutes(n):i.setMinutes(n);case"Hours":return a?i.setUTCHours(n):i.setHours(n);case"Date":return a?i.setUTCDate(n):i.setDate(n);case"FullYear":break;default:return}t=n,r=e.month(),e=29!==(e=e.date())||1!==r||Ee(t)?e:28,a?i.setUTCFullYear(t,r,e):i.setFullYear(t,r,e)}}function $e(e,t){var n;
vendor: 44,810 bytes, line 1
1return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?Ee(e)?29:28:31-n%7%2)}O=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),i("MMMM",0,0,function(e){return this.localeData().months(this,e)}),d("M",n,l),d("MM",n,t),d("MMM",function(e,t){return t.monthsShortRegex(e)}),d("MMMM",function(e,t){return t.monthsRegex(e)}),w(["M","MM"],function(e,t){t[x]=k(e)-1}),w(["MMM","MMMM"],function(e,t,n,i){i=n._locale.monthsParse(e,i,n._strict);null!=i?t[x]=i:y(n).invalidMonth=e});var He="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Fe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ne=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,je=a,Ve=a;function Be(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=k(t);else if(!_(t=e.localeData().monthsParse(t)))return;var n=(n=e.date())<29?n:Math.min(n,$e(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n)}}function Ue(e){return null!=e?(Be(this,e),m.updateOffset(this,!0),this):Pe(this,"Month")}function We(){function e(e,t){return t.length-e.length}for(var t,n,i=[],a=[],r=[],o=0;o<12;o++)n=u([2e3,o]),t=h(this.monthsShort(n,"")),n=h(this.months(n,"")),i.push(t),a.push(n),r.push(n),r.push(t);i.sort(e),a.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ye(e,t,n,i,a,r,o){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,i,a,r,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,a,r,o),s}function ze(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ge(e,t,n){n=7+t-n;return n-(7+ze(e,0,n).getUTCDay()-t)%7-1}function qe(e,t,n,i,a){var r,t=1+7*(t-1)+(7+n-i)%7+Ge(e,i,a),n=t<=0?Le(r=e-1)+t:t>Le(e)?(r=e+1,t-Le(e)):(r=e,t);return{year:r,dayOfYear:n}}function Xe(e,t,n){var i,a,r=Ge(e.year(),t,n),r=Math.floor((e.dayOfYear()-r-1)/7)+1;return r<1?i=r+M(a=e.year()-1,t,n):r>M(e.year(),t,n)?(i=r-M(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function M(e,t,n){var i=Ge(e,t,n),t=Ge(e+1,t,n);return(Le(e)-i+t)/7}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),d("w",n,l),d("ww",n,t),d("W",n,l),d("WW",n,t),Te(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=k(e)});function Ke(e,t){return e.slice(t,7).concat(e.slice(0,t))}i("d",0,"do","day"),i("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),i("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),i("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),d("d",n),d("e",n),d("E",n),d("dd",function(e,t){return t.weekdaysMinRegex(e)}),d("ddd",function(e,t){return t.weekdaysShortRegex(e)}),d("dddd",function(e,t){return t.weekdaysRegex(e)}),Te(["dd","ddd","dddd"],function(e,t,n,i){i=n._locale.weekdaysParse(e,i,n._strict);null!=i?t.d=i:y(n).invalidWeekday=e}),Te(["d","e","E"],function(e,t,n,i){t[i]=k(e)});var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=a,tt=a,nt=a;function it(){function e(e,t){return t.length-e.length}for(var t,n,i,a=[],r=[],o=[],s=[],l=0;l<7;l++)i=u([2e3,1]).day(l),t=h(this.weekdaysMin(i,"")),n=h(this.weekdaysShort(i,"")),i=h(this.weekdays(i,"")),a.push(t),r.push(n),o.push(i),s.push(t),s.push(n),s.push(i);a.sort(e),r.sort(e),o.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function at(){return this.hours()%12||12}function rt(e,t){i(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,at),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+at.apply(this)+r(this.minutes(),2)}),i("hmmss",0,0,function(){return""+at.apply(this)+r(this.minutes(),2)+r(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+r(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+r(this.minutes(),2)+r(this.seconds(),2)}),rt("a",!0),rt("A",!1),d("a",ot),d("A",ot),d("H",n,c),d("h",n,l),d("k",n,l),d("HH",n,t),d("hh",n,t),d("kk",n,t),d("hmm",pe),d("hmmss",me),d("Hmm",pe),d("Hmmss",me),w(["H","HH"],T),w(["k","kk"],function(e,t,n){e=k(e);t[T]=24===e?0:e}),w(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),w(["h","hh"],function(e,t,n){t[T]=k(e),y(n).bigHour=!0}),w("hmm",function(e,t,n){var i=e.length-2;t[T]=k(e.substr(0,i)),t[E]=k(e.substr(i)),y(n).bigHour=!0}),w("hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[T]=k(e.substr(0,i)),t[E]=k(e.substr(i,2)),t[A]=k(e.substr(a)),y(n).bigHour=!0}),w("Hmm",function(e,t,n){var i=e.length-2;t[T]=k(e.substr(0,i)),t[E]=k(e.substr(i))}),w("Hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[T]=k(e.substr(0,i)),t[E]=k(e.substr(i,2)),t[A]=k(e.substr(a))});a=De("Hours",!0);var st,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:He,monthsShort:Fe,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},L={},ut={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,n,i,a,r=0;r<e.length;){for(t=(a=ct(e[r]).split("-")).length,n=(n=ct(e[r+1]))?n.split("-"):null;0<t;){if(i=ft(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}(a,n)>=t-1)break;t--}r++}return st}function ft(t){var e,n;if(void 0===L[t]&&void 0!==Ln&&Ln&&Ln.exports&&(n=t)&&n.match("^[^/\\\\]*$"))try{e=st._abbr,Mn("./locale/"+t),ht(e)}catch(e){L[t]=null}return L[t]}function ht(e,t){return e&&((t=v(t)?I(e):pt(e,t))?st=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function pt(e,t){if(null===t)return delete L[e],null;var n,i=lt;if(t.abbr=e,null!=L[e])Z("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=L[e]._config;else if(null!=t.parentLocale)if(null!=L[t.parentLocale])i=L[t.parentLocale]._config;else{if(null==(n=ft(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;i=n._config}return L[e]=new Q(J(i,t)),ut[e]&&ut[e].forEach(function(e){pt(e.name,e.config)}),ht(e),L[e]}function I(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return st;if(!g(e)){if(t=ft(e))return t;e=[e]}return dt(e)}function mt(e){var t=e._a;return t&&-2===y(e).overflow&&(t=t[x]<0||11<t[x]?x:t[C]<1||t[C]>$e(t[S],t[x])?C:t[T]<0||24<t[T]||24===t[T]&&(0!==t[E]||0!==t[A]||0!==t[Ae])?T:t[E]<0||59<t[E]?E:t[A]<0||59<t[A]?A:t[Ae]<0||999<t[Ae]?Ae:-1,y(e)._overflowDayOfYear&&(t<S||C<t)&&(t=C),y(e)._overflowWeeks&&-1===t&&(t=Oe),y(e)._overflowWeekday&&-1===t&&(t=Me),y(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],kt=/^\/?Date\((-?\d+)/i,wt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xt(e){var t,n,i,a,r,o,s=e._i,l=gt.exec(s)||vt.exec(s),s=yt.length,u=bt.length;if(l){for(y(e).iso=!0,t=0,n=s;t<n;t++)if(yt[t][1].exec(l[1])){a=yt[t][0],i=!1!==yt[t][2];break}if(null==a)e._isValid=!1;else{if(l[3]){for(t=0,n=u;t<n;t++)if(bt[t][1].exec(l[3])){r=(l[2]||" ")+bt[t][0];break}if(null==r)return void(e._isValid=!1)}if(i||null==r){if(l[4]){if(!_t.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=a+(r||"")+(o||""),Ot(e)}else e._isValid=!1}}else e._isValid=!1}function Ct(e,t,n,i,a,r){e=[function(e){e=parseInt(e,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(e),Fe.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return r&&e.push(parseInt(r,10)),e}function Tt(e){var t,n,i=wt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));i?(t=Ct(i[4],i[3],i[2],i[5],i[6],i[7]),function(e,t,n){if(!e||Je.indexOf(e)===new Date(t[0],t[1],t[2]).getDay())return 1;y(n).weekdayMismatch=!0,n._isValid=!1}(i[1],t,e)&&(e._a=t,e._tzm=(t=i[8],n=i[9],i=i[10],t?St[t]:n?0:60*(((t=parseInt(i,10))-(n=t%100))/100)+n),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0)):e._isValid=!1}function Et(e,t,n){return null!=e?e:null!=t?t:n}function At(e){var t,n,i,a,r,o,s,l,u,c,d,f=[];if(!e._d){for(i=e,a=new Date(m.now()),n=i._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()],e._w&&null==e._a[C]&&null==e._a[x]&&(null!=(a=(i=e)._w).GG||null!=a.W||null!=a.E?(l=1,u=4,r=Et(a.GG,i._a[S],Xe(D(),1,4).year),o=Et(a.W,1),((s=Et(a.E,1))<1||7<s)&&(c=!0)):(l=i._locale._week.dow,u=i._locale._week.doy,d=Xe(D(),l,u),r=Et(a.gg,i._a[S],d.year),o=Et(a.w,d.week),null!=a.d?((s=a.d)<0||6<s)&&(c=!0):null!=a.e?(s=a.e+l,(a.e<0||6<a.e)&&(c=!0)):s=l),o<1||o>M(r,l,u)?y(i)._overflowWeeks=!0:null!=c?y(i)._overflowWeekday=!0:(d=qe(r,o,s,l,u),i._a[S]=d.year,i._dayOfYear=d.dayOfYear)),null!=e._dayOfYear&&(a=Et(e._a[S],n[S]),(e._dayOfYear>Le(a)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),c=ze(a,0,e._dayOfYear),e._a[x]=c.getUTCMonth(),e._a[C]=c.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=f[t]=n[t];for(;t<7;t++)e._a[t]=f[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[T]&&0===e._a[E]&&0===e._a[A]&&0===e._a[Ae]&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?ze:Ye).apply(null,f),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[T]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(y(e).weekdayMismatch=!0)}}function Ot(e){if(e._f===m.ISO_8601)xt(e);else if(e._f===m.RFC_2822)Tt(e);else{e._a=[],y(e).empty=!0;for(var t,n,i,a,r,o=""+e._i,s=o.length,l=0,u=oe(e._f,e._locale).match(te)||[],c=u.length,d=0;d<c;d++)n=u[d],(t=(o.match(Se(n,e))||[])[0])&&(0<(i=o.substr(0,o.indexOf(t))).length&&y(e).unusedInput.push(i),o=o.slice(o.indexOf(t)+t.length),l+=t.length),ae[n]?(t?y(e).empty=!1:y(e).unusedTokens.push(n),i=n,r=e,null!=(a=t)&&f(Ce,i)&&Ce[i](a,r._a,r,i)):e._strict&&!t&&y(e).unusedTokens.push(n);y(e).charsLeftOver=s-l,0<o.length&&y(e).unusedInput.push(o),e._a[T]<=12&&!0===y(e).bigHour&&0<e._a[T]&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[T]=function(e,t,n){if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t}(e._locale,e._a[T],e._meridiem),null!==(s=y(e).era)&&(e._a[S]=e._locale.erasConvertYear(s,e._a[S])),At(e),mt(e)}}function Mt(e){var t,n,i,a=e._i,r=e._f;if(e._locale=e._locale||I(e._l),null===a||void 0===r&&""===a)return U({nullInput:!0});if("string"==typeof a&&(e._i=a=e._locale.preparse(a)),b(a))return new q(mt(a));if(N(a))e._d=a;else if(g(r)){var o,s,l,u,c,d,f=e,h=!1,p=f._f.length;if(0===p)y(f).invalidFormat=!0,f._d=new Date(NaN);else{for(u=0;u<p;u++)c=0,d=!1,o=G({},f),null!=f._useUTC&&(o._useUTC=f._useUTC),o._f=f._f[u],Ot(o),B(o)&&(d=!0),c=(c+=y(o).charsLeftOver)+10*y(o).unusedTokens.length,y(o).score=c,h?c<l&&(l=c,s=o):(null==l||c<l||d)&&(l=c,s=o,d)&&(h=!0);V(f,s||o)}}else if(r)Ot(e);else if(v(r=(a=e)._i))a._d=new Date(m.now());else N(r)?a._d=new Date(r.valueOf()):"string"==typeof r?(n=a,null!==(t=kt.exec(n._i))?n._d=new Date(+t[1]):(xt(n),!1===n._isValid&&(delete n._isValid,Tt(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:m.createFromInputFallback(n)))):g(r)?(a._a=j(r.slice(0),function(e){return parseInt(e,10)}),At(a)):H(r)?(t=a)._d||(i=void 0===(n=le(t._i)).day?n.date:n.day,t._a=j([n.year,n.month,i,n.hour,n.minute,n.second,n.millisecond],function(e){return e&&parseInt(e,10)}),At(t)):_(r)?a._d=new Date(r):m.createFromInputFallback(a);return B(e)||(e._d=null),e}function Lt(e,t,n,i,a){var r={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(H(e)&&F(e)||g(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=e,r._f=t,r._strict=i,(a=new q(mt(Mt(a=r))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function D(e,t,n,i){return Lt(e,t,n,i,!1)}m.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};pe=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:U()}),me=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:U()});function It(e,t){var n,i;if(!(t=1===t.length&&g(t[0])?t[0]:t).length)return D();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Dt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var e=le(e),t=e.year||0,n=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,r=e.day||0,o=e.hour||0,s=e.minute||0,l=e.second||0,u=e.millisecond||0;this._isValid=function(e){var t,n,i=!1,a=Dt.length;for(t in e)if(f(e,t)&&(-1===O.call(Dt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<a;++n)if(e[Dt[n]]){if(i)return!1;parseFloat(e[Dt[n]])!==k(e[Dt[n]])&&(i=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*s+1e3*o*60*60,this._days=+r+7*a,this._months=+i+3*n+12*t,this._data={},this._locale=I(),this._bubble()}function Rt(e){return e instanceof Pt}function $t(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ht(e,n){i(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+r(~~(e/60),2)+n+r(~~e%60,2)})}Ht("Z",":"),Ht("ZZ",""),d("Z",we),d("ZZ",we),w(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(we,e)});var Ft=/([\+\-]|\d\d)/gi;function Nt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ft)||["-",0,0])[1]+k(e[2]))?0:"+"===e[0]?t:-t}function jt(e,t){var n;return t._isUTC?(t=t.clone(),n=(b(e)||N(e)?e:D(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),m.updateOffset(t,!1),t):D(e).local()}function Vt(e){return-Math.round(e._d.getTimezoneOffset())}function Bt(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var Ut=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function P(e,t){var n,i=e;return Rt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:_(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=Ut.exec(e))?(n="-"===t[1]?-1:1,i={y:0,d:k(t[C])*n,h:k(t[T])*n,m:k(t[E])*n,s:k(t[A])*n,ms:k($t(1e3*t[Ae]))*n}):(t=Wt.exec(e))?(n="-"===t[1]?-1:1,i={y:Yt(t[2],n),M:Yt(t[3],n),w:Yt(t[4],n),d:Yt(t[5],n),h:Yt(t[6],n),m:Yt(t[7],n),s:Yt(t[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=jt(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(D(i.from),D(i.to)),(i={}).ms=t.milliseconds,i.M=t.months),n=new Pt(i),Rt(e)&&f(e,"_locale")&&(n._locale=e._locale),Rt(e)&&f(e,"_isValid")&&(n._isValid=e._isValid),n}function Yt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(i,a){return function(e,t){var n;return null===t||isNaN(+t)||(Z(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),qt(this,P(e,t),i),this}}function qt(e,t,n,i){var a=t._milliseconds,r=$t(t._days),t=$t(t._months);e.isValid()&&(i=null==i||i,t&&Be(e,Pe(e,"Month")+t*n),r&&Re(e,"Date",Pe(e,"Date")+r*n),a&&e._d.setTime(e._d.valueOf()+a*n),i)&&m.updateOffset(e,r||t)}P.fn=Pt.prototype,P.invalid=function(){return P(NaN)};He=Gt(1,"add"),Ze=Gt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Kt(e){return b(e)||N(e)||Xt(e)||_(e)||function(t){var e=g(t),n=!1;e&&(n=0===t.filter(function(e){return!_(e)&&Xt(t)}).length);return e&&n}(e)||function(e){var t,n,i=H(e)&&!F(e),a=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=r.length;for(t=0;t<o;t+=1)n=r[t],a=a||f(e,n);return i&&a}(e)||null==e}function Zt(e,t){var n,i;return e.date()<t.date()?-Zt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(i=e.clone().add(n,"months"))<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(1+n,"months")-i)))||0}function Jt(e){return void 0===e?this._locale._abbr:(null!=(e=I(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function on(){for(var e,t,n,i=[],a=[],r=[],o=[],s=this.eras(),l=0,u=s.length;l<u;++l)e=h(s[l].name),t=h(s[l].abbr),n=h(s[l].narrow),a.push(e),i.push(t),r.push(n),o.push(e),o.push(t),o.push(n);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function sn(e,t){i(0,[e,e.length],0,t)}function ln(e,t,n,i,a){var r;return null==e?Xe(this,i,a).year:(r=M(e,i,a),function(e,t,n,i,a){e=qe(e,t,n,i,a),t=ze(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=r<t?r:t,n,i,a))}i("N",0,0,"eraAbbr"),i("NN",0,0,"eraAbbr"),i("NNN",0,0,"eraAbbr"),i("NNNN",0,0,"eraName"),i("NNNNN",0,0,"eraNarrow"),i("y",["y",1],"yo","eraYear"),i("y",["yy",2],0,"eraYear"),i("y",["yyy",3],0,"eraYear"),i("y",["yyyy",4],0,"eraYear"),d("N",rn),d("NN",rn),d("NNN",rn),d("NNNN",function(e,t){return t.erasNameRegex(e)}),d("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),w(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){i=n._locale.erasParse(e,i,n._strict);i?y(n).era=i:y(n).invalidEra=e}),d("y",ye),d("yy",ye),d("yyy",ye),d("yyyy",ye),d("yo",function(e,t){return t._eraYearOrdinalRegex||ye}),w(["y","yy","yyy","yyyy"],S),w(["yo"],function(e,t,n,i){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[S]=n._locale.eraYearOrdinalParse(e,a):t[S]=parseInt(e,10)}),i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),d("G",be),d("g",be),d("GG",n,t),d("gg",n,t),d("GGGG",ve,fe),d("gggg",ve,fe),d("GGGGG",_e,he),d("ggggg",_e,he),Te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=k(e)}),Te(["gg","GG"],function(e,t,n,i){t[i]=m.parseTwoDigitYear(e)}),i("Q",0,"Qo","quarter"),d("Q",ce),w("Q",function(e,t){t[x]=3*(k(e)-1)}),i("D",["DD",2],"Do","date"),d("D",n,l),d("DD",n,t),d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),w(["D","DD"],C),w("Do",function(e,t){t[C]=k(e.match(n)[0])});ve=De("Date",!0);i("DDD",["DDDD",3],"DDDo","dayOfYear"),d("DDD",ge),d("DDDD",de),w(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),i("m",["mm",2],0,"minute"),d("m",n,c),d("mm",n,t),w(["m","mm"],E);var un,fe=De("Minutes",!1),_e=(i("s",["ss",2],0,"second"),d("s",n,c),d("ss",n,t),w(["s","ss"],A),De("Seconds",!1));for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),d("S",ge,ce),d("SS",ge,t),d("SSS",ge,de),un="SSSS";un.length<=9;un+="S")d(un,ye);function cn(e,t){t[Ae]=k(1e3*("0."+e))}for(un="S";un.length<=9;un+="S")w(un,cn);he=De("Milliseconds",!1),i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName");l=q.prototype;function dn(e){return e}l.add=He,l.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=H(e)&&!F(e),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a=0;a<i.length;a+=1)n=n||f(e,i[a]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||D(),n=jt(e,this).startOf("day"),n=m.calendarFormat(this,n)||"sameElse",t=t&&(o(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,D(e)))},l.clone=function(){return new q(this)},l.diff=function(e,t,n){var i,a,r;if(!this.isValid())return NaN;if(!(i=jt(e,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),t=s(t)){case"year":r=Zt(this,i)/12;break;case"month":r=Zt(this,i);break;case"quarter":r=Zt(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:p(r)},l.endOf=function(e){var t,n;if(void 0!==(e=s(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?an:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},l.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=re(this,e),this.localeData().postformat(e)},l.from=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||D(e).isValid())?P({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},l.fromNow=function(e){return this.from(D(),e)},l.to=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||D(e).isValid())?P({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},l.toNow=function(e){return this.to(D(),e)},l.get=function(e){return o(this[e=s(e)])?this[e]():this},l.invalidAt=function(){return y(this).overflow},l.isAfter=function(e,t){return e=b(e)?e:D(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=s(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},l.isBefore=function(e,t){return e=b(e)?e:D(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=s(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},l.isBetween=function(e,t,n,i){return e=b(e)?e:D(e),t=b(t)?t:D(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},l.isSame=function(e,t){var e=b(e)?e:D(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=s(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},l.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},l.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},l.isValid=function(){return B(this)},l.lang=Qe,l.locale=Jt,l.localeData=Qt,l.max=me,l.min=pe,l.parsingFlags=function(){return V({},y(this))},l.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)f(e,t)&&n.push({unit:t,priority:ue[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=le(e)),i=n.length,a=0;a<i;a++)this[n[a].unit](e[n[a].unit]);else if(o(this[e=s(e)]))return this[e](t);return this},l.startOf=function(e){var t,n;if(void 0!==(e=s(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?an:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},l.subtract=Ze,l.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},l.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},l.toDate=function(){return new Date(this.valueOf())},l.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?re(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):o(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",re(t,"Z")):re(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},l.inspect=function(){var e,t,n;return this.isValid()?(t="moment",e="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+(e+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(l[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},l.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},l.eraName=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},l.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},l.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},l.eraYear=function(){for(var e,t,n=this.localeData().eras(),i=0,a=n.length;i<a;++i)if(e=n[i].since<=n[i].until?1:-1,t=this.clone().startOf("day").valueOf(),n[i].since<=t&&t<=n[i].until||n[i].until<=t&&t<=n[i].since)return(this.year()-m(n[i].since).year())*e+n[i].offset;return this.year()},l.year=Ie,l.isLeapYear=function(){return Ee(this.year())},l.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},l.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},l.quarter=l.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},l.month=Ue,l.daysInMonth=function(){return $e(this.year(),this.month())},l.week=l.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},l.isoWeek=l.isoWeeks=function(e){var t=Xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},l.weeksInYear=function(){var e=this.localeData()._week;return M(this.year(),e.dow,e.doy)},l.weeksInWeekYear=function(){var e=this.localeData()._week;return M(this.weekYear(),e.dow,e.doy)},l.isoWeeksInYear=function(){return M(this.year(),1,4)},l.isoWeeksInISOWeekYear=function(){return M(this.isoWeekYear(),1,4)},l.date=ve,l.day=l.days=function(e){var t,n,i;return this.isValid()?(t=Pe(this,"Day"),null!=e?(n=e,i=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=i.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},l.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},l.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},l.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},l.hour=l.hours=a,l.minute=l.minutes=fe,l.second=l.seconds=_e,l.millisecond=l.milliseconds=he,l.utcOffset=function(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?a:Vt(this);if("string"==typeof e){if(null===(e=Nt(we,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Vt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?qt(this,P(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},l.utc=function(e){return this.utcOffset(0,e)},l.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Vt(this),"m"),this},l.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Nt(ke,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},l.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?D(e).utcOffset():0,(this.utcOffset()-e)%60==0)},l.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},l.isLocal=function(){return!!this.isValid()&&!this._isUTC},l.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},l.isUtc=Bt,l.isUTC=Bt,l.zoneAbbr=function(){return this._isUTC?"UTC":""},l.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},l.dates=e("dates accessor is deprecated. Use date instead.",ve),l.months=e("months accessor is deprecated. Use month instead",Ue),l.years=e("years accessor is deprecated. Use year instead",Ie),l.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),l.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return v(this._isDSTShifted)&&(G(e={},this),(e=Mt(e))._a?(t=(e._isUTC?u:D)(e._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0,o=0;o<i;o++)(n&&e[o]!==t[o]||!n&&k(e[o])!==k(t[o]))&&r++;return r+a}(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted});c=Q.prototype;function fn(e,t,n,i){var a=I(),i=u().set(i,t);return a[n](i,e)}function hn(e,t,n){if(_(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");for(var i=[],a=0;a<12;a++)i[a]=fn(e,a,n,"month");return i}function pn(e,t,n,i){t=("boolean"==typeof e?_(t)&&(n=t,t=void 0):(t=e,e=!1,_(n=t)&&(n=t,t=void 0)),t||"");var a,r=I(),o=e?r._week.dow:0,s=[];if(null!=n)return fn(t,(n+o)%7,i,"day");for(a=0;a<7;a++)s[a]=fn(t,(a+o)%7,i,"day");return s}c.calendar=function(e,t,n){return o(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},c.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(te).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},c.invalidDate=function(){return this._invalidDate},c.ordinal=function(e){return this._ordinal.replace("%d",e)},c.preparse=dn,c.postformat=dn,c.relativeTime=function(e,t,n,i){var a=this._relativeTime[n];return o(a)?a(e,t,n,i):a.replace(/%d/i,e)},c.pastFuture=function(e,t){return o(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},c.set=function(e){var t,n;for(n in e)f(e,n)&&(o(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},c.eras=function(e,t){for(var n,i=this._eras||I("en")._eras,a=0,r=i.length;a<r;++a)switch("string"==typeof i[a].since&&(n=m(i[a].since).startOf("day"),i[a].since=n.valueOf()),typeof i[a].until){case"undefined":i[a].until=1/0;break;case"string":n=m(i[a].until).startOf("day").valueOf(),i[a].until=n.valueOf()}return i},c.erasParse=function(e,t,n){var i,a,r,o,s,l=this.eras();for(e=e.toUpperCase(),i=0,a=l.length;i<a;++i)if(r=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[i];break;case"NNNN":if(r===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if(0<=[r,o,s].indexOf(e))return l[i]},c.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*n},c.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},c.erasNameRegex=function(e){return f(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},c.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},c.months=function(e,t){return e?(g(this._months)?this._months:this._months[(this._months.isFormat||Ne).test(t)?"format":"standalone"])[e.month()]:g(this._months)?this._months:this._months.standalone},c.monthsShort=function(e,t){return e?(g(this._monthsShort)?this._monthsShort:this._monthsShort[Ne.test(t)?"format":"standalone"])[e.month()]:g(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},c.monthsParse=function(e,t,n){var i,a;if(this._monthsParseExact)return function(e,t,n){var i,a,r,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=u([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=O.call(this._shortMonthsParse,e))?a:null:-1!==(a=O.call(this._longMonthsParse,e))?a:null:"MMM"===t?-1!==(a=O.call(this._shortMonthsParse,e))||-1!==(a=O.call(this._longMonthsParse,e))?a:null:-1!==(a=O.call(this._longMonthsParse,e))||-1!==(a=O.call(this._shortMonthsParse,e))?a:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=u([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},c.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},c.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=je),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},c.week=function(e){return Xe(e,this._week.dow,this._week.doy).week},c.firstDayOfYear=function(){return this._week.doy},c.firstDayOfWeek=function(){return this._week.dow},c.weekdays=function(e,t){return t=g(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ke(t,this._week.dow):e?t[e.day()]:t},c.weekdaysMin=function(e){return!0===e?Ke(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},c.weekdaysShort=function(e){return!0===e?Ke(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},c.weekdaysParse=function(e,t,n){var i,a;if(this._weekdaysParseExact)return function(e,t,n){var i,a,r,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=u([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=O.call(this._weekdaysParse,e))?a:null:"ddd"===t?-1!==(a=O.call(this._shortWeekdaysParse,e))?a:null:-1!==(a=O.call(this._minWeekdaysParse,e))?a:null:"dddd"===t?-1!==(a=O.call(this._weekdaysParse,e))||-1!==(a=O.call(this._shortWeekdaysParse,e))||-1!==(a=O.call(this._minWeekdaysParse,e))?a:null:"ddd"===t?-1!==(a=O.call(this._shortWeekdaysParse,e))||-1!==(a=O.call(this._weekdaysParse,e))||-1!==(a=O.call(this._minWeekdaysParse,e))?a:null:-1!==(a=O.call(this._minWeekdaysParse,e))||-1!==(a=O.call(this._weekdaysParse,e))||-1!==(a=O.call(this._shortWeekdaysParse,e))?a:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=u([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},c.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},c.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},c.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},c.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},c.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ht("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===k(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",ht),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",I);var mn=Math.abs;function gn(e,t,n,i){t=P(t,n);return e._milliseconds+=i*t._milliseconds,e._days+=i*t._days,e._months+=i*t._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function _n(e){return 4800*e/146097}function yn(e){return 146097*e/4800}function bn(e){return function(){return this.as(e)}}ce=bn("ms"),t=bn("s"),ge=bn("m"),de=bn("h"),He=bn("d"),me=bn("w"),pe=bn("M"),Ze=bn("Q"),a=bn("y"),fe=ce;function kn(e){return function(){return this.isValid()?this._data[e]:NaN}}var _e=kn("milliseconds"),he=kn("seconds"),ve=kn("minutes"),Ie=kn("hours"),c=kn("days"),wn=kn("months"),Sn=kn("years");var xn=Math.round,Cn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tn(e,t,n,i){var a=P(e).abs(),r=xn(a.as("s")),o=xn(a.as("m")),s=xn(a.as("h")),l=xn(a.as("d")),u=xn(a.as("M")),c=xn(a.as("w")),a=xn(a.as("y")),r=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||(o<=1?["m"]:o<n.m&&["mm",o])||(s<=1?["h"]:s<n.h&&["hh",s])||
vendor: 4,500 bytes, line 1
1(l<=1?["d"]:l<n.d&&["dd",l]);return(r=(r=null!=n.w?r||(c<=1?["w"]:c<n.w&&["ww",c]):r)||(u<=1?["M"]:u<n.M&&["MM",u])||(a<=1?["y"]:["yy",a]))[2]=t,r[3]=0<+e,r[4]=i,function(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}.apply(null,r)}var En=Math.abs;function An(e){return(0<e)-(e<0)||+e}function On(){var e,t,n,i,a,r,o,s,l,u,c;return this.isValid()?(e=En(this._milliseconds)/1e3,t=En(this._days),n=En(this._months),(s=this.asSeconds())?(i=p(e/60),a=p(i/60),e%=60,i%=60,r=p(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=An(this._months)!==An(s)?"-":"",u=An(this._days)!==An(s)?"-":"",c=An(this._milliseconds)!==An(s)?"-":"",(s<0?"-":"")+"P"+(r?l+r+"Y":"")+(n?l+n+"M":"")+(t?u+t+"D":"")+(a||i||e?"T":"")+(a?c+a+"H":"")+(i?c+i+"M":"")+(e?c+o+"S":"")):"P0D"):this.localeData().invalidDate()}var R=Pt.prototype;return R.isValid=function(){return this._isValid},R.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},R.add=function(e,t){return gn(this,e,t,1)},R.subtract=function(e,t){return gn(this,e,t,-1)},R.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=s(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+_n(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(yn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},R.asMilliseconds=ce,R.asSeconds=t,R.asMinutes=ge,R.asHours=de,R.asDays=He,R.asWeeks=me,R.asMonths=pe,R.asQuarters=Ze,R.asYears=a,R.valueOf=fe,R._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,i=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*vn(yn(n)+t),n=t=0),i.milliseconds=e%1e3,e=p(e/1e3),i.seconds=e%60,e=p(e/60),i.minutes=e%60,e=p(e/60),i.hours=e%24,t+=p(e/24),n+=e=p(_n(t)),t-=vn(yn(e)),e=p(n/12),n%=12,i.days=t,i.months=n,i.years=e,this},R.clone=function(){return P(this)},R.get=function(e){return e=s(e),this.isValid()?this[e+"s"]():NaN},R.milliseconds=_e,R.seconds=he,R.minutes=ve,R.hours=Ie,R.days=c,R.weeks=function(){return p(this.days()/7)},R.months=wn,R.years=Sn,R.humanize=function(e,t){var n,i;return this.isValid()?(n=!1,i=Cn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(i=Object.assign({},Cn,t),null!=t.s)&&null==t.ss&&(i.ss=t.s-1),e=this.localeData(),t=Tn(this,!n,i,e),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},R.toISOString=On,R.toString=On,R.toJSON=On,R.locale=Jt,R.localeData=Qt,R.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",On),R.lang=Qe,i("X",0,0,"unix"),i("x",0,0,"valueOf"),d("x",be),d("X",/[+-]?\d+(\.\d{1,3})?/),w("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),w("x",function(e,t,n){n._d=new Date(k(e))}),m.version="2.30.1",$=D,m.fn=l,m.min=function(){return It("isBefore",[].slice.call(arguments,0))},m.max=function(){return It("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=u,m.unix=function(e){return D(1e3*e)},m.months=function(e,t){return hn(e,t,"months")},m.isDate=N,m.locale=ht,m.invalid=U,m.duration=P,m.isMoment=b,m.weekdays=function(e,t,n){return pn(e,t,n,"weekdays")},m.parseZone=function(){return D.apply(null,arguments).parseZone()},m.localeData=I,m.isDuration=Rt,m.monthsShort=function(e,t){return hn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return pn(e,t,n,"weekdaysMin")},m.defineLocale=pt,m.updateLocale=function(e,t){var n,i;return null!=t?(i=lt,null!=L[e]&&null!=L[e].parentLocale?L[e].set(J(L[e]._config,t)):(t=J(i=null!=(n=ft(e))?n._config:i,t),null==n&&(t.abbr=e),(i=new Q(t)).parentLocale=L[e],L[e]=i),ht(e)):null!=L[e]&&(null!=L[e].parentLocale?(L[e]=L[e].parentLocale,e===ht()&&ht(e)):null!=L[e]&&delete L[e]),L[e]},m.locales=function(){return ee(L)},m.weekdaysShort=function(e,t,n){return pn(e,t,n,"weekdaysShort")},m.normalizeUnits=s,m.relativeTimeRounding=function(e){return void 0===e?xn:"function"==typeof e&&(xn=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Cn[e]&&(void 0===t?Cn[e]:(Cn[e]=t,"
1s"===e&&(Cn.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=l,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m},"object"==typeof e&&void 0!==Ln?Ln.exports=n():"function"==typeof define&&define.amd?define(n):t.moment=n()},{}],391:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(){return n={0:function(e,t,n){var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.adapter_=e}
1i(r,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),i(r,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),t.a=r},1:function(e,t,n){var i=n(0),n=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(s,null,[{key:"attachTo",value:function(e){return new s(e,new i.a)}}]),n(s,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(e,t){this.root_.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){this.root_.removeEventListener(e,t)}},{key:"emit",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=void 0;"function"==typeof CustomEvent?i=new CustomEvent(e,{detail:t,bubbles:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(i)}}]);n=s;function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,n=this,i=s;if(!(n instanceof i))throw new TypeError("Cannot call a class as a function");this.root_=e;for(var a=arguments.length,r=Array(2<a?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];this.initialize.apply(this,r),this.foundation_=void 0===t?this.getDefaultFoundation():t,this.foundation_.init(),this.initialSyncWithDOM()}t.a=n},100:function(e,t,n){var i=n(0),a=n(8),r=n(101),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e};function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e){var t;if(this instanceof n)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,o(n.defaultAdapter,e)))).isIndicatorShown_=!1,t.computedWidth_=0,t.computedLeft_=0,t.activeTabIndex_=0,t.layoutFrame_=0,t.resizeHandler_=function(){return t.layout()},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(n,null,[{key:"cssClasse
1s",get:function(){return r.a}},{key:"strings",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},bindOnMDCTabSelectedEvent:function(){},unbindOnMDCTabSelectedEvent:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},getOffsetWidth:function(){return 0},setStyleForIndicator:function(){},getOffsetWidthForIndicator:function(){return 0},notifyChange:function(){},getNumberOfTabs:function(){return 0},isTabActiveAtIndex:function(){return!1},setTabActiveAtIndex:function(){},isDefaultPreventedOnClickForTabAtIndex:function(){return!1},setPreventDefaultOnClickForTabAtIndex:function(){},measureTabAtIndex:function(){},getComputedWidthForTabAtIndex:function(){return 0},getComputedLeftForTabAtIndex:function(){return 0}}}}]),s(n,[{key:"init",value:function(){this.adapter_.addClass(r.a.UPGRADED),this.adapter_.bindOnMDCTabSelectedEvent(),this.adapter_.registerResizeHandler(this.resizeHandler_);var e=this.findActiveTabIndex_();0<=e&&(this.activeTabIndex_=e),this.layout()}},{key:"destroy",value:function(){this.adapter_.removeClass(r.a.UPGRADED),this.adapter_.unbindOnMDCTabSelectedEvent(),this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"layoutInternal_",value:function(){var t=this;this.forEachTabIndex_(function(e){return t.adapter_.measureTabAtIndex(e)}),this.computedWidth_=this.adapter_.getOffsetWidth(),this.layoutIndicator_()}},{key:"layoutIndicator_",value:function(){var e=!this.isIndicatorShown_;e&&this.adapter_.setStyleForIndicator("transition","none");var t="translateX("+this.adapter_.getComputedLeftForTabAtIndex(this.activeTabIndex_)+"px) scale("+this.adapter_.getComputedWidthForTabAtIndex(this.activeTabIndex_)/this.adapter_.getOffsetWidth()+", 1)";this.adapter_.setStyleForIndicator(Object(a.getCorrectPropertyName)(window,"transform"),t),e&&(this.adapter_.getOffsetWidthForIndicator(),this.adapter_.setStyleForIndicator("transition",""),this.adapter_.setStyleForIndicator("visibility","visible"),this.isIndicatorShown_=!0)}},{key:"findActiveTabIndex_",value:function(){var t=this,n=-1;return this.forEachTabIndex_(function(e){if(t.adapter_.isTabActiveAtIndex(e))return n=e,!0}),n}},{key:"forEachTabIndex_",value:function(e){for(var t=this.adapter_.getNumberOfTabs(),n=0;n<t&&!e(n);n++);}},{key:"layout",value:function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})}},{key:"switchToTabAtIndex",value:function(e,t){var n=this;if(e!==this.activeTabIndex_){if(e<0||e>=this.adapter_.getNumberOfTabs())throw new Error("Out of bounds index specified for tab: "+e);var i=this.activeTabIndex_;this.activeTabIndex_=e,requestAnimationFrame(function(){0<=i&&n.adapter_.setTabActiveAtIndex(i,!1),n.adapter_.setTabActiveAtIndex(n.activeTabIndex_,!0),n.layoutIndicator_(),t&&n.adapter_.notifyChange({activeTabIndex:n.activeTabIndex_})})}}},{key:"getActiveTabIndex",value:function(){return this.findActiveTabIndex_()}}]),n}(i.a);t.a=n},101:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i={UPGRADED:"mdc-tab-bar-upgraded"},a={TAB_SELECTOR:".mdc-tab",INDICATOR_SELECTOR:".mdc-tab-bar__indicator",CHANGE_EVENT:"MDCTabBar:change"}},102:function(e,t,n){n.d(t,"a",function(){return u});var i=n(8),a=n(1),r=n(40),o=n(103),s=(n.d(t,"b",function(){return o.a}),function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e});function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(n,[{key:"initialize",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(e){return new r.a(e)};this.scrollFrame_=this.root_.querySelector(o.a.strings.FRAME_SELECTOR),this.tabBarEl_=this.root_.querySelector(o.a.strings.TABS_SELECTOR),this.forwardIndicator_=this.root_.querySelector(o.a.strings.INDICATOR_FORWARD_SELECTOR),this.backIndicator_=this.root_.querySelector(o.a.strings.INDICATOR_BACK_SELECTOR),this.tabBar_=e(this.tabBarEl_)}},{key:"getDefaultFoundation",value:function(){var n=this;return new o.a({addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},eventTargetHasClass:function(e,t){return e.classList.contains(t)},addClassToForwardIndicator:function(e){return n.forwardIndicator_.classList.add(e)},removeClassFromForwardIndicator:function(e){return n.forwardIndicator_.classList.remove(e)},addClassToBackIndicator:function(e){return n.backIndicator_.classList.add(e)},removeClassFromBackIndicator:function(e){return n.backIndicator_.classList.remove(e)},isRTL:function(){return"rtl"===getComputedStyle(n.root_).getPropertyValue("direction")},registerBackIndicatorClickHandler:function(e){return n.backIndicator_.addEventListener("click",e)},deregisterBackIndicatorClickHandler:function(e){return n.backIndicator_.removeEventListener("click",e)},registerForwardIndicatorClickHandler:function(e){return n.forwardIndicator_.addEventListener("click",e)},deregisterForwardIndicatorClickHandler:function(e){return n.forwardIndicator_.removeEventListener("click",e)},registerCapturedInteractionHandler:function(e,t){return n.root_.addEventListener(e,t,!0)},deregisterCapturedInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t,!0)},registerWindowResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterWindowResizeHandler:function(e){return window.removeEventListener("resize",e)},getNumberOfTabs:function(){return n.tabBar.tabs.length},getComputedWidthForTabAtIndex:function(e){return n.tabBar.tabs[e].computedWidth},getComputedLeftForTabAtIndex:function(e){return n.tabBar.tabs[e].computedLeft},getOffsetWidthForScrollFrame:function(){return n.scrollFrame_.offsetWidth},getScrollLeftForScrollFrame:function(){return n.scrollFrame_.scrollLeft},setScrollLeftForScrollFrame:function(e){return n.scrollFrame_.scrollLeft=e},getOffsetWidthForTabBar:function(){return n.tabBarEl_.offsetWidth},setTransformStyleForTabBar:function(e){n.tabBarEl_.style.setProperty(Object(i.getCorrectPropertyName)(window,"transform"),e)},getOffsetLeftForEventTarget:function(e){return e.offsetLeft},getOffsetWidthForEventTarget:function(e){return e.offsetWidth}})}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"tabBar",get:function(){return this.tabBar_}}],[{key:"attachTo",value:function(e){return new n(e)}}]),n}(a.a)},103:function(e,t,n){var i=n(0),r=n(104),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e){var t;if(this instanceof n)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,a(n.defaultAdapter,e)))).pointerDownRecognized_=!1,t.currentTranslateOffset_=0,t.focu
1sedTarget_=null,t.layoutFrame_=0,t.scrollFrameScrollLeft_=0,t.forwardIndicatorClickHandler_=function(e){return t.scrollForward(e)},t.backIndicatorClickHandler_=function(e){return t.scrollBack(e)},t.resizeHandler_=function(){return t.layout()},t.interactionHandler_=function(e){"touchstart"!=e.type&&"mousedown"!=e.type||(t.pointerDownRecognized_=!0),t.handlePossibleTabKeyboardFocus_(e),"focus"==e.type&&(t.pointerDownRecognized_=!1)},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},eventTargetHasClass:function(){return!1},addClassToForwardIndicator:function(){},removeClassFromForwardIndicator:function(){},addClassToBackIndicator:function(){},removeClassFromBackIndicator:function(){},isRTL:function(){return!1},registerBackIndicatorClickHandler:function(){},deregisterBackIndicatorClickHandler:function(){},registerForwardIndicatorClickHandler:function(){},deregisterForwardIndicatorClickHandler:function(){},registerCapturedInteractionHandler:function(){},deregisterCapturedInteractionHandler:function(){},registerWindowResizeHandler:function(){},deregisterWindowResizeHandler:function(){},getNumberOfTabs:function(){return 0},getComputedWidthForTabAtIndex:function(){return 0},getComputedLeftForTabAtIndex:function(){return 0},getOffsetWidthForScrollFrame:function(){return 0},getScrollLeftForScrollFrame:function(){return 0},setScrollLeftForScrollFrame:function(){},getOffsetWidthForTabBar:function(){return 0},setTransformStyleForTabBar:function(){},getOffsetLeftForEventTarget:function(){return 0},getOffsetWidthForEventTarget:function(){return 0}}}}]),o(n,[{key:"init",value:function(){var t=this;this.adapter_.registerBackIndicatorClickHandler(this.backIndicatorClickHandler_),this.adapter_.registerForwardIndicatorClickHandler(this.forwardIndicatorClickHandler_),this.adapter_.registerWindowResizeHandler(this.resizeHandler_),["touchstart","mousedown","focus"].forEach(function(e){t.adapter_.registerCapturedInteractionHandler(e,t.interactionHandler_)}),this.layout()}},{key:"destroy",value:function(){var t=this;this.adapter_.deregisterBackIndicatorClickHandler(this.backIndicatorClickHandler_),this.adapter_.deregisterForwardIndicatorClickHandler(this.forwardIndicatorClickHandler_),this.adapter_.deregisterWindowResizeHandler(this.resizeHandler_),["touchstart","mousedown","focus"].forEach(function(e){t.adapter_.deregisterCapturedInteractionHandler(e,t.interactionHandler_)})}},{key:"scrollBack",value:function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=(e&&e.preventDefault(),0),n=0,i=this.adapter_.getNumberOfTabs()-1;0<i;i--){var a=this.adapter_.getComputedLeftForTabAtIndex(i),r=this.adapter_.getOffsetWidthForTabBar()-a,a=a>this.currentTranslateOffset_;if(!(a=this.isRTL_()?r>this.currentTranslateOffset_:a))if((t+=this.adapter_.getComputedWidthForTabAtIndex(i))>this.adapter_.getOffsetWidthForScrollFrame()){n=this.isRTL_()?i+1:i;break}}this.scrollToTabAtIndex(n)}},{key:"scrollForward",value:function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=(e&&e.preventDefault(),this.adapter_.getOffsetWidthForScrollFrame()+this.currentTranslateOffset_),n=0,i=0;i<this.adapter_.getNumberOfTabs();i++){var a,r,o=t<this.adapter_.getComputedLeftForTabAtIndex(i)+this.adapter_.getComputedWidthForTabAtIndex(i);if(this.isRTL_()&&(a=t-this.adapter_.getComputedWidthForTabAtIndex(i),r=this.adapter_.getComputedLeftForTabAtIndex(i)+this.adapter_.getComputedWidthForTabAtIndex(i),o=a<this.adapter_.getOffsetWidthForTabBar()-r),o){n=i;break}}this.scrollToTabAtIndex(n)}},{key:"layout",value:function(){var e=this;cancelAnimationFrame(this.layoutFrame_),this.scrollFrameScrollLeft_=this.adapter_.getScrollLeftForScrollFrame(),this.layoutFrame_=requestAnimationFrame(function(){return e.layout_()})}},{key:"isRTL_",value:function(){return this.adapter_.isRTL()}},{key:"handlePossibleTabKeyboardFocus_",value:function(e){var t,n,i,a;this.adapter_.eventTargetHasClass(e.target,r.a.TAB)&&!this.pointerDownRecognized_&&(t=this.isRTL_()?this.scrollFrameScrollLeft_:0,this.adapter_.setScrollLeftForScrollFrame(t),this.focusedTarget_=e.target,t=this.adapter_.getOffsetWidthForScrollFrame(),e=this.adapter_.getOffsetWidthForTabBar(),i=(a=(n=this.adapter_.getOffsetLeftForEventTarget(this.focusedTarget_))+this.adapter_.getOffsetWidthForEventTarget(this.focusedTarget_))<=this.currentTranslateOffset_,a=a>this.currentTranslateOffset_+t,this.isRTL_()&&(i=n>=e-this.currentTranslateOffset_,a=e-n>t+this.currentTranslateOffset_),a?this.scrollForward():i&&this.scrollBack(),this.pointerDownRecognized_=!1)}},{key:"layout_",value:function(){var e=this.adapter_.getOffsetWidthForScrollFrame();this.adapter_.getOffsetWidthForTabBar()>e||(this.currentTranslateOffset_=0),this.shiftFrame_(),this.updateIndicatorEnabledStates_()}},{key:"scrollToTabAtIndex",value:function(e){var t=this,n=this.adapter_.getComputedLeftForTabAtIndex(e),e=this.adapter_.getComputedWidthForTabAtIndex(e);this.currentTranslateOffset_=this.normalizeForRTL_(n,e),requestAnimationFrame(function(){return t.shiftFrame_()})}},{key:"normalizeForRTL_",value:function(e,t){return this.isRTL_()?this.adapter_.getOffsetWidthForTabBar()-(e+t):e}},{key:"shiftFrame_",value:function(){var e=this.isRTL_()?this.currentTranslateOffset_:-this.currentTranslateOffset_;this.adapter_.setTransformStyleForTabBar("translateX("+e+"px)"),this.updateIndicatorEnabledStates_()}},{key:"updateIndicatorEnabledStates_",value:function(){var e=r.a.INDICATOR_ENABLED;0===this.currentTranslateOffset_?this.adapter_.removeClassFromBackIndicator(e):this.adapter_.addClassToBackIndicator(e),this.adapter_.getOffsetWidthForTabBar()-this.currentTranslateOffset_>this.adapter_.getOffsetWidthForScrollFrame()?this.adapter_.addClassToForwardIndicator(e):this.adapter_.removeClassFromForwardIndicator(e)}}]),n}(i.a);t.a=n},104:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i={INDICATOR_FORWARD:"mdc-tab-bar-scroller__indicator--forward",INDICATOR_BACK:"mdc-tab-bar-scroller__indicator--back",INDICATOR_ENABLED:"mdc-tab-bar-scroller__indicator--enabled",TAB:"mdc-tab"},a={FRAME_SELECTOR:".mdc-tab-bar-scroller__scroll-frame",TABS_SELECTOR:".mdc-tab-bar-scroller__scroll-frame__tabs",TAB_SELECTOR:".mdc-tab",INDICATOR_FORWARD_SELECTOR:".mdc-tab-bar-scroller__indicator--forward",INDICATOR_BACK_SELECTOR:".mdc-tab-bar-scroller__indicator--back"}}
1,2:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"supportsCssVariables",function(){return a}),n.d(t,"applyPassive",function(){return o}),n.d(t,"getMatchesProperty",function(){return s}),n.d(t,"getNormalizedEventCoords",function(){return l});var r=void 0,i=void 0;function a(e){var t,n,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=r;return"boolean"!=typeof r||i?e.CSS&&"function"==typeof e.CSS.supports?(t=e.CSS.supports("--css-vars","yes"),n=e.CSS.supports("(--css-vars: yes)")&&e.CSS.supports("color","#00000000"),a=!(!t&&!n||function(e){var t=e.document,n=t.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",t.body.appendChild(n);e=null!==(t=e.getComputedStyle(n))&&"solid"===t.borderTopStyle;return n.remove(),e}(e)),i||(r=a),a):void 0:a}function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;if(void 0===i||1<arguments.length&&void 0!==arguments[1]&&arguments[1]){var t=!1;try{e.document.addEventListener("test",null,{get passive(){t=!0}})}catch(e){}i=t}return!!i&&{passive:!0}}function s(t){return["webkitMatchesSelector","msMatchesSelector","matches"].filter(function(e){return e in t}).pop()}function l(e,t,n){var i=t.x,t=t.y,i=i+n.left,t=t+n.top,n=void 0,a=void 0,a="touchstart"===e.type?(n=e.changedTouches[0].pageX-i,e.changedTouches[0].pageY-t):(n=e.pageX-i,e.pageY-t);return{x:n,y:a}}},3:function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"browserSupportsCssVars",value:function(){}},{key:"isUnbounded",value:function(){}},{key:"isSurfaceActive",value:function(){}},{key:"isSurfaceDisabled",value:function(){}},{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"containsEventTarget",value:function(e){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"registerDocumentInteractionHandler",value:function(e,t){}},{key:"deregisterDocumentInteractionHandler",value:function(e,t){}},{key:"registerResizeHandler",value:function(e){}},{key:"deregisterResizeHandler",value:function(e){}},{key:"updateCssVariable",value:function(e,t){}},{key:"computeBoundingRect",value:function(){}},{key:"getWindowPageOffset",value:function(){}}])},38:function(e,t,n){n.d(t,"a",function(){return c});function a(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?a(i,t,n):void 0}var i=n(1),o=n(4),s=n(39),l=n(99),u=(n.d(t,"b",function(){return l.a}),function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e});function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var c=function(e){var t=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(){var e=this,t=r;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(i)));return t.ripple_=o.MDCRipple.attachTo(t.root_),t}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),u(r,[{key:"computedWidth",get:function(){return this.foundation_.getComputedWidth()}},{key:"computedLeft",get:function(){return this.foundation_.getComputedLeft()}},{key:"isActive",get:function(){return this.foundation_.isActive()},set:function(e){this.foundation_.setActive(e)}},{key:"preventDefaultOnClick",get:function(){return this.foundation_.preventsDefaultOnClick()},set:function(e){this.foundation_.setPreventDefaultOnClick(e)}}],[{key:"attachTo",value:function(e){return new r(e)}}
1]),u(r,[{key:"destroy",value:function(){this.ripple_.destroy(),a(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"destroy",this).call(this)}},{key:"getDefaultFoundation",value:function(){var n=this;return new l.a({addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t)},getOffsetWidth:function(){return n.root_.offsetWidth},getOffsetLeft:function(){return n.root_.offsetLeft},notifySelected:function(){return n.emit(l.a.strings.SELECTED_EVENT,{tab:n},!0)}})}},{key:"initialSyncWithDOM",value:function(){this.isActive=this.root_.classList.contains(s.a.ACTIVE)}},{key:"measureSelf",value:function(){this.foundation_.measureSelf()}}]),r}(i.a)},39:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i={ACTIVE:"mdc-tab--active"},a={SELECTED_EVENT:"MDCTab:selected"}},4:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCRipple",function(){return u}),n.d(t,"RippleCapableSurface",function(){return c});var i=n(1),r=(n(3),n(5)),o=n(2),s=(n.d(t,"MDCRippleFoundation",function(){return r.a}),n.d(t,"util",function(){return o}),function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e});function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function a(){l(this,a);for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(t)));return i.disabled=!1,i.unbounded_,i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(a,[{key:"setUnbounded_",value:function(){this.foundation_.setUnbounded(this.unbounded_)}},{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"getDefaultFoundation",value:function(){return new r.a(a.createAdapter(this))}},{key:"initialSyncWithDOM",value:function(){this.unbounded="mdcRippleIsUnbounded"in this.root_.dataset}},{key:"unbounded",get:function(){return this.unbounded_},set:function(e){this.unbounded_=Boolean(e),this.setUnbounded_()}}],[{key:"attachTo",value:function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isUnbounded,t=void 0===t?void 0:t,e=new a(e);return void 0!==t&&(e.unbounded=t),e}},{key:"createAdapter",value:function(n){var e=o.getMatchesProperty(HTMLElement.prototype);return{browserSupportsCssVars:function(){return o.supportsCssVariables(window)},isUnbounded:function(){return n.unbounded},isSurfaceActive:function(){return n.root_[e](":active")},isSurfaceDisabled:function(){return n.disabled},addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},containsEventTarget:function(e){return n.root_.contains(e)},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t,o.applyPassive())},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t,o.applyPassive())},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,o.applyPassive())},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,o.applyPassive())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},updateCssVariable:function(e,t){return n.root_.style.setProperty(e,t)},computeBoundingRect:function(){return n.root_.getBoundingClientRect()},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}}}}}]),a}(i.a),c=function e(){l(this,e)};c.prototype.root_,c.prototype.unbounded,c.prototype.disabled},40:function(e,t,n){n.d(t,"a",function(){return l});var i=n(1),a=n(38),r=n(100),o=(n.d(t,"b",function(){return r.a}),function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e});function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var l=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,[{key:"initialize",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(e){return new a.a(e)};this.indicator_=this.root_.querySelector(r.a.strings.INDICATOR_SELECTOR),this.tabs_=this.gatherTabs_(e),this.tabSelectedHandler_=function(e){e=e.detail.tab;t.setActiveTab_(e,!0)}}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},bindOnMDCTabSelectedEvent:function(){return n.listen(a.b.strings.SELECTED_EVENT,n.tabSelectedHandler_)},unbindOnMDCTabSelectedEvent:function(){return n.unlisten(a.b.strings.SELECTED_EVENT,n.tabSelectedHandler_)},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getOffsetWidth:function(){return n.root_.offsetWidth},setStyleForIndicator:function(e,t){return n.indicator_.style.setProperty(e,t)},getOffsetWidthForIndicator:function(){return n.indicator_.offsetWidth}
1,notifyChange:function(e){return n.emit(r.a.strings.CHANGE_EVENT,e)},getNumberOfTabs:function(){return n.tabs.length},isTabActiveAtIndex:function(e){return n.tabs[e].isActive},setTabActiveAtIndex:function(e,t){n.tabs[e].isActive=t},isDefaultPreventedOnClickForTabAtIndex:function(e){return n.tabs[e].preventDefaultOnClick},setPreventDefaultOnClickForTabAtIndex:function(e,t){n.tabs[e].preventDefaultOnClick=t},measureTabAtIndex:function(e){return n.tabs[e].measureSelf()},getComputedWidthForTabAtIndex:function(e){return n.tabs[e].computedWidth},getComputedLeftForTabAtIndex:function(e){return n.tabs[e].computedLeft}})}},{key:"gatherTabs_",value:function(t){return[].slice.call(this.root_.querySelectorAll(r.a.strings.TAB_SELECTOR)).map(function(e){return t(e)})}},{key:"setActiveTabIndex_",value:function(e,t){this.foundation_.switchToTabAtIndex(e,t)}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"setActiveTab_",value:function(e,t){e=this.tabs.indexOf(e);if(e<0)throw new Error("Invalid tab component given as activeTab: Tab not found within this component's tab list");this.setActiveTabIndex_(e,t)}},{key:"tabs",get:function(){return this.tabs_}},{key:"activeTab",get:function(){var e=this.foundation_.getActiveTabIndex();return this.tabs[e]},set:function(e){this.setActiveTab_(e,!1)}},{key:"activeTabIndex",get:function(){return this.foundation_.getActiveTabIndex()},set:function(e){this.setActiveTabIndex_(e,!1)}}],[{key:"attachTo",value:function(e){return new n(e)}}]),n}(i.a)},5:function(e,t,n){var i=n(0),a=(n(3),n(6)),r=n(2),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e};function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=["touchstart","pointerdown","mousedown","keydown"],d=["touchend","pointerup","mouseup"],f=[],n=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function c(e){var t;if(this instanceof c)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,o(c.defaultAdapter,e)))).layoutFrame_=0,t.frame_={width:0,height:0},t.activationState_=t.defaultActivationState_(),t.initialSize_=0,t.maxRadius_=0,t.activateHandler_=function(e){return t.activate_(e)},t.deactivateHandler_=function(e){return t.deactivate_(e)},t.focusHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.addClass(c.cssClasses.BG_FOCUSED)})},t.blurHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.removeClass(c.cssClasses.BG_FOCUSED)})},t.resizeHandler_=function(){return t.layout()},t.unboundedCoords_={left:0,top:0},t.fgScale_=0,t.activationTimer_=0,t.fgDeactivationRemovalTimer_=0,t.activationAnimationHasEnded_=!1,t.activationTimerCallback_=function(){t.activationAnimationHasEnded_=!0,t.runDeactivationUXLogicIfReady_()},t.previousActivationEvent_=null,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(c,null,[{key:"cssClasse
1s",get:function(){return a.a}},{key:"strings",get:function(){return a.c}},{key:"numbers",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{browserSupportsCssVars:function(){},isUnbounded:function(){},isSurfaceActive:function(){},isSurfaceDisabled:function(){},addClass:function(){},removeClass:function(){},containsEventTarget:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerDocumentInteractionHandler:function(){},deregisterDocumentInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},updateCssVariable:function(){},computeBoundingRect:function(){},getWindowPageOffset:function(){}}}}]),s(c,[{key:"isSupported_",value:function(){return this.adapter_.browserSupportsCssVars()}},{key:"defaultActivationState_",value:function(){return{isActivated:!1,hasDeactivationUXRun:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1,activationEvent:null,isProgrammatic:!1}}},{key:"init",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.registerRootHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.addClass(t),i.adapter_.isUnbounded()&&(i.adapter_.addClass(n),i.layoutInternal_())}))}},{key:"destroy",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,e=c.cssClasses.FG_ACTIVATION,this.adapter_.removeClass(e)),this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.removeClass(t),i.adapter_.removeClass(n),i.removeCssVars_()}))}},{key:"registerRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.registerInteractionHandler(e,t.activateHandler_)}),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)}},{key:"registerDeactivationHandlers_",value:function(e){var t=this;"keydown"===e.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):d.forEach(function(e){t.adapter_.registerDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"deregisterRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.activateHandler_)}),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"deregisterDeactivationHandlers_",value:function(){var t=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),d.forEach(function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"removeCssVars_",value:function(){var t=this,n=c.strings;Object.keys(n).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(n[e],null)})}},{key:"activate_",value:function(e){var t,n,i=this;this.adapter_.isSurfaceDisabled()||(t=this.activationState_).isActivated||(n=this.previousActivationEvent_)&&e&&n.type!==e.type||(t.isActivated=!0,t.isProgrammatic=null===e,t.activationEvent=e,t.wasActivatedByPointer=!t.isProgrammatic&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type),e&&0<f.length&&f.some(function(e){return i.adapter_.containsEventTarget(e)})?this.resetActivationState_():(e&&(f.push(e.target),this.registerDeactivationHandlers_(e)),t.wasElementMadeActive=this.checkElementMadeActive_(e),t.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){f=[],t.wasElementMadeActive||" "!==e.key&&32!==e.keyCode||(t.wasElementMadeActive=i.checkElementMadeActive_(e),t.wasElementMadeActive&&i.animateActivation_()),t.wasElementMadeActive||(i.activationState_=i.defaultActivationState_())})))}},{key:"checkElementMadeActive_",value:function(e){return!e||"keydown"!==e.type||this.adapter_.isSurfaceActive()}},{key:"activate",value:function(){this.activate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateActivation_",value:function(){var e,t,n=this,i=c.strings,a=i.VAR_FG_TRANSLATE_START,i=i.VAR_FG_TRANSLATE_END,r=c.cssClasse
1s,o=r.FG_DEACTIVATION,r=r.FG_ACTIVATION,s=c.numbers.DEACTIVATION_TIMEOUT_MS,l=(this.layoutInternal_(),""),u="";this.adapter_.isUnbounded()||(e=(t=this.getFgTranslationCoordinates_()).startPoint,t=t.endPoint,l=e.x+"px, "+e.y+"px",u=t.x+"px, "+t.y+"px"),this.adapter_.updateCssVariable(a,l),this.adapter_.updateCssVariable(i,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(o),this.adapter_.computeBoundingRect(),this.adapter_.addClass(r),this.activationTimer_=setTimeout(function(){return n.activationTimerCallback_()},s)}},{key:"getFgTranslationCoordinates_",value:function(){var e=this.activationState_,t=e.activationEvent,n=void 0;return{startPoint:n={x:(n=e.wasActivatedByPointer?Object(r.getNormalizedEventCoords)(t,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:n.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}}},{key:"runDeactivationUXLogicIfReady_",value:function(){var e=this,t=c.cssClasses.FG_DEACTIVATION,n=this.activationState_,i=n.hasDeactivationUXRun,n=n.isActivated;!i&&n||!this.activationAnimationHasEnded_||(this.rmBoundedActivationClasses_(),this.adapter_.addClass(t),this.fgDeactivationRemovalTimer_=setTimeout(function(){e.adapter_.removeClass(t)},a.b.FG_DEACTIVATION_MS))}},{key:"rmBoundedActivationClasses_",value:function(){var e=c.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()}},{key:"resetActivationState_",value:function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return e.previousActivationEvent_=null},c.numbers.TAP_DELAY_MS)}},{key:"deactivate_",value:function(e){var t,n=this,i=this.activationState_;i.isActivated&&(t=o({},i),i.isProgrammatic?(requestAnimationFrame(function(){return n.animateDeactivation_(null,t)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){n.activationState_.hasDeactivationUXRun=!0,n.animateDeactivation_(e,t),n.resetActivationState_()})))}},{key:"deactivate",value:function(){this.deactivate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateDeactivation_",value:function(e,t){var n=t.wasActivatedByPointer,t=t.wasElementMadeActive;(n||t)&&this.runDeactivationUXLogicIfReady_()}},{key:"layout",value:function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})}},{key:"layoutInternal_",value:function(){var e=this,t=(this.frame_=this.adapter_.computeBoundingRect(),Math.max(this.frame_.height,this.frame_.width));this.maxRadius_=this.adapter_.isUnbounded()?t:Math.sqrt(Math.pow(e.frame_.width,2)+Math.pow(e.frame_.height,2))+c.numbers.PADDING,this.initialSize_=t*c.numbers.INITIAL_ORIGIN_SCALE,this.fgScale_=this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()}},{key:"updateLayoutCssVars_",value:function(){var e=c.strings,t=e.VAR_FG_SIZE,n=e.VAR_LEFT,i=e.VAR_TOP,e=e.VAR_FG_SCALE;this.adapter_.updateCssVariable(t,this.initialSize_+"px"),this.adapter_.updateCssVariable(e,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(n,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(i,this.unboundedCoords_.top+"px"))}},{key:"setUnbounded",value:function(e){var t=c.cssClasses.UNBOUNDED;e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}}]),c}(i.a);t.a=n},6:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i={ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded",BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation"},a={VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end"},r={PADDING:10,INITIAL_ORIGIN_SCALE:.6,DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,TAP_DELAY_MS:300}}
1,8:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"transformStyleProperties",function(){return a}),n.d(t,"getCorrectEventName",function(){return s}),n.d(t,"getCorrectPropertyName",function(){return l});var r={animationstart:{noPrefix:"animationstart",webkitPrefix:"webkitAnimationStart",styleProperty:"animation"},animationend:{noPrefix:"animationend",webkitPrefix:"webkitAnimationEnd",styleProperty:"animation"},animationiteration:{noPrefix:"animationiteration",webkitPrefix:"webkitAnimationIteration",styleProperty:"animation"},transitionend:{noPrefix:"transitionend",webkitPrefix:"webkitTransitionEnd",styleProperty:"transition"}},o={animation:{noPrefix:"animation",webkitPrefix:"-webkit-animation"},transform:{noPrefix:"transform",webkitPrefix:"-webkit-transform"},transition:{noPrefix:"transition",webkitPrefix:"-webkit-transition"}};function i(e,t){var n,i,a;return void 0!==(n=e).document&&"function"==typeof n.document.createElement&&((n=t)in r||n in o)?(n=t in r?r:o,e=e.document.createElement("div"),n===r?(a=n)[i=t].styleProperty in e.style?a[i].noPrefix:a[i].webkitPrefix:n[t].noPrefix in e.style?n[t].noPrefix:n[t].webkitPrefix):t}var a=["transform","WebkitTransform","MozTransform","OTransform","MSTransform"];function s(e,t){return i(e,t)}function l(e,t){return i(e,t)}},98:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(38),a=(n.d(t,"MDCTabFoundation",function(){return i.b}),n.d(t,"MDCTab",function(){return i.a}),n(40)),r=(n.d(t,"MDCTabBarFoundation",function(){return a.b}),n.d(t,"MDCTabBar",function(){return a.a}),n(102));n.d(t,"MDCTabBarScrollerFoundation",function(){return r.b}),n.d(t,"MDCTabBarScroller",function(){return r.a})},99:function(e,t,n){var i=n(0),r=n(39),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function a(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=this,i=a;if(n instanceof i)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,o(a.defaultAdapter,e)))).computedWidth_=0,t.computedLeft_=0,t.isActive_=!1,t.preventDefaultOnClick_=!1,t.clickHandler_=function(e){t.preventDefaultOnClick_&&e.preventDefault(),t.adapter_.notifySelected()},t.keydownHandler_=function(e){(e.key&&"Enter"===e.key||13===e.keyCode)&&t.adapter_.notifySelected()},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(a,null,[{key:"cssClasse
1s",get:function(){return r.a}},{key:"strings",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},getOffsetWidth:function(){return 0},getOffsetLeft:function(){return 0},notifySelected:function(){}}}}]),s(a,[{key:"init",value:function(){this.adapter_.registerInteractionHandler("click",this.clickHandler_),this.adapter_.registerInteractionHandler("keydown",this.keydownHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterInteractionHandler("click",this.clickHandler_),this.adapter_.deregisterInteractionHandler("keydown",this.keydownHandler_)}},{key:"getComputedWidth",value:function(){return this.computedWidth_}},{key:"getComputedLeft",value:function(){return this.computedLeft_}},{key:"isActive",value:function(){return this.isActive_}},{key:"setActive",value:function(e){this.isActive_=e,this.isActive_?this.adapter_.addClass(r.a.ACTIVE):this.adapter_.removeClass(r.a.ACTIVE)}},{key:"preventsDefaultOnClick",value:function(){return this.preventDefaultOnClick_}},{key:"setPreventDefaultOnClick",value:function(e){this.preventDefaultOnClick_=e}},{key:"measureSelf",value:function(){this.computedWidth_=this.adapter_.getOffsetWidth(),this.computedLeft_=this.adapter_.getOffsetLeft()}}]),a}(i.a);t.a=n}},a={},i.m=n,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=98);function i(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,a},"object"==typeof n&&"object"==typeof t?t.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof n?n.tabs=a():(i.mdc=i.mdc||{},i.mdc.tabs=a())},{}],315:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.registerSearch=function(e,t,n,i){(0,a.registerGtmDataLayer)({event:"track-event",eventCategory:t,eventAction:e,eventLabel:n,eventValue:i,eventNoninteraction:!0,searchNumresult:i})};var a=e("../gtmDataLayerService")},{"../gtmDataLayerService":245}],263:[function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(n,"__esModule",{value:!0});(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(r,[{key:"init",value:function(e){this.fundsListBaseUrl=e.fundsListBaseUrl,this.availableFilterTypes=e.availableFilterTypes,this.availableFilterRisks=e.availableFilterRisks,this.selectedFilterTypes=this.availableFilterTypes[0],this.selectedFilterRisks=this.availableFilterRisks[0],this.inputsChanged()}},{key:"inputsChanged",value:function(){this.fundsListUrl=this.fundsListBaseUrl+"?types="+this.selectedFilterTypes.value+"&risks="+this.selectedFilterRisks.value}}]);var a=r;function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.availableFilterTypes=[],this.availableFilterRisks=[],this.selectedFilterTypes=null,this.selectedFilterRisks=null,this.fundsListBaseUrl=null,this.fundsListUrl=null}a.$inject=[],n.default=a},{}],259:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=e("@material/menu/dist/mdc.menu");n.default=[function(){return{restrict:"A",scope:{open:"<mdcMenuOpen",onHide:"&mdcMenuHide"},link:function(e,t,n){var i=new a.MDCMenu(t[0]);t.on("$destroy",function(){i.destroy()}),e.$watch("open",function(e){i.open=e}),i.listen("MDCMenu:selected",function(){e.$apply(function(){e.onHide()})}),i.listen("MDCMenu:cancel",function(){e.$apply(function(){e.onHide()})})}}}]},{"@material/menu/dist/mdc.menu":385}],385:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(){return n={0:function(e,t,n){var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.adapter_=e}
1i(r,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),i(r,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),t.a=r},1:function(e,t,n){var i=n(0),n=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(s,null,[{key:"attachTo",value:function(e){return new s(e,new i.a)}}]),n(s,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(e,t){this.root_.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){this.root_.removeEventListener(e,t)}},{key:"emit",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=void 0;"function"==typeof CustomEvent?i=new CustomEvent(e,{detail:t,bubbles:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(i)}}]);n=s;function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,n=this,i=s;if(!(n instanceof i))throw new TypeError("Cannot call a class as a function");this.root_=e;for(var a=arguments.length,r=Array(2<a?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];this.initialize.apply(this,r),this.foundation_=void 0===t?this.getDefaultFoundation():t,this.foundation_.init(),this.initialSyncWithDOM()}t.a=n},34:function(e,t,n){n.d(t,"c",function(){return i}),n.d(t,"e",function(){return a}),n.d(t,"d",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var i={ROOT:"mdc-menu",OPEN:"mdc-menu--open",ANIMATING_OPEN:"mdc-menu--animating-open",ANIMATING_CLOSED:"mdc-menu--animating-closed",SELECTED_LIST_ITEM:"mdc-list-item--selected"},a={ITEMS_SELECTOR:".mdc-menu__items",SELECTED_EVENT:"MDCMenu:selected",CANCEL_EVENT:"MDCMenu:cancel",ARIA_DISABLED_ATTR:"aria-disabled"},r={SELECTED_TRIGGER_DELAY:50,TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_WIDTH_RATIO:.67,OFFSET_TO_MENU_HEIGHT_RATIO:.1},o={BOTTOM:1,CENTER:2,RIGHT:4,FLIP_RTL:8},s={TOP_LEFT:0,TOP_RIGHT:o.RIGHT,BOTTOM_LEFT:o.BOTTOM,BOTTOM_RIGHT:o.BOTTOM|o.RIGHT,TOP_START:o.FLIP_RTL,TOP_END:o.FLIP_RTL|o.RIGHT,BOTTOM_START:o.BOTTOM|o.FLIP_RTL,BOTTOM_END:o.BOTTOM|o.RIGHT|o.FLIP_RTL}},83:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCMenu",function(){return u});var i=n(1),a=n(84),o=n(85),r=n(34),s=(n.d(t,"MDCMenuFoundation",function(){return o.b}),n.d(t,"AnchorMargin",function(){return o.a}),n.d(t,"Corner",function(){return r.a}),n.d(t,"CornerBit",function(){return r.b}),function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e});function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=function(e){var t=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(){var e=this,t=r;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(i)));return t.previousFocus_,t}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(r,[{key:"show",value:function(){var e=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).focusIndex;this.foundation_.open({focusIndex:void 0===e?null:e})}},{key:"hide",value:function(){this.foundation_.close()}}
1,{key:"setAnchorCorner",value:function(e){this.foundation_.setAnchorCorner(e)}},{key:"setAnchorMargin",value:function(e){this.foundation_.setAnchorMargin(e)}},{key:"getOptionByIndex",value:function(e){return e<this.items.length?this.items[e]:null}},{key:"getDefaultFoundation",value:function(){var i=this;return new o.b({addClass:function(e){return i.root_.classList.add(e)},removeClass:function(e){return i.root_.classList.remove(e)},hasClass:function(e){return i.root_.classList.contains(e)},hasNecessaryDom:function(){return Boolean(i.itemsContainer_)},getAttributeForEventTarget:function(e,t){return e.getAttribute(t)},getInnerDimensions:function(){var e=i.itemsContainer_;return{width:e.offsetWidth,height:e.offsetHeight}},hasAnchor:function(){return i.root_.parentElement&&i.root_.parentElement.classList.contains("mdc-menu-anchor")},getAnchorDimensions:function(){return i.root_.parentElement.getBoundingClientRect()},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getNumberOfItems:function(){return i.items.length},registerInteractionHandler:function(e,t){return i.root_.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){return i.root_.removeEventListener(e,t)},registerBodyClickHandler:function(e){return document.body.addEventListener("click",e)},deregisterBodyClickHandler:function(e){return document.body.removeEventListener("click",e)},getIndexForEventTarget:function(e){return i.items.indexOf(e)},notifySelected:function(e){return i.emit(o.b.strings.SELECTED_EVENT,{index:e.index,item:i.items[e.index]})},notifyCancel:function(){return i.emit(o.b.strings.CANCEL_EVENT,{})},saveFocus:function(){i.previousFocus_=document.activeElement},restoreFocus:function(){i.previousFocus_&&i.previousFocus_.focus()},isFocused:function(){return document.activeElement===i.root_},focus:function(){return i.root_.focus()},getFocusedItemIndex:function(){return i.items.indexOf(document.activeElement)},focusItemAtIndex:function(e){return i.items[e].focus()},isRtl:function(){return"rtl"===getComputedStyle(i.root_).getPropertyValue("direction")},setTransformOrigin:function(e){i.root_.style[Object(a.a)(window)+"-origin"]=e},setPosition:function(e){i.root_.style.left="left"in e?e.left:null,i.root_.style.right="right"in e?e.right:null,i.root_.style.top="top"in e?e.top:null,i.root_.style.bottom="bottom"in e?e.bottom:null},setMaxHeight:function(e){i.root_.style.maxHeight=e},setAttrForOptionAtIndex:function(e,t,n){return i.items[e].setAttribute(t,n)},rmAttrForOptionAtIndex:function(e,t){return i.items[e].removeAttribute(t)},addClassForOptionAtIndex:function(e,t){return i.items[e].classList.add(t)},rmClassForOptionAtIndex:function(e,t){return i.items[e].classList.remove(t)}})}},{key:"open",get:function(){return this.foundation_.isOpen()},set:function(e){e?this.foundation_.open():this.foundation_.close()}},{key:"itemsContainer_",get:function(){return this.root_.querySelector(o.b.strings.ITEMS_SELECTOR)}},{key:"items",get:function(){var e=this.itemsContainer_;return[].slice.call(e.querySelectorAll(".mdc-list-item[role]"))}},{key:"selectedItemIndex",set:function(e){this.foundation_.setSelectedIndex(e)},get:function(){return this.foundation_.getSelectedIndex()}},{key:"rememberSelection",set:function(e){this.foundation_.setRememberSelection(e)}},{key:"quickOpen",set:function(e){this.foundation_.setQuickOpen(e)}}],[{key:"attachTo",value:function(e){return new r(e)}}]),r}(i.a)},84:function(e,t,n){n.d(t,"a",function(){return a});var i=void 0;function a(e){return void 0!==i&&!(1<arguments.length&&void 0!==arguments[1]&&arguments[1])||(e="transform"in e.document.createElement("div").style?"transform":"webkitTransform",i=e),i}},85:function(e,t,n){n.d(t,"b",function(){return s}),n.d(t,"a",function(){return o});var t=n(0),c=(n(86),n(34)),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var o=void 0,s=function(e){var t=u;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function u(e){var t;if(this instanceof u)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,i(u.defaultAdapter,e)))).clickHandler_=function(e){return t.handlePossibleSelected_(e)},t.keydownHandler_=function(e){return t.handleKeyboardDown_(e)},t.keyupHandler_=function(e){return t.handleKeyboardUp_(e)},t.documentClickHandler_=function(e){return t.handleDocumentClick_(e)},t.isOpen_=!1,t.openAnimationEndTimerId_=0,t.closeAnimationEndTimerId_=0,t.selectedTriggerTimerId_=0,t.animationRequestId_=0,t.dimensions_,t.itemHeight_,t.anchorCorner_=c.a.TOP_START,t.anchorMargin_={top:0,right:0,bottom:0,left:0},t.measures_=null,t.selectedIndex_=-1,t.rememberSelection_=!1,t.quickOpen_=!1,t.keyDownWithinMenu_=!1,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),a(u,null,[{key:"cssClasse
1s",get:function(){return c.c}},{key:"strings",get:function(){return c.e}},{key:"numbers",get:function(){return c.d}},{key:"Corner",get:function(){return c.a}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasNecessaryDom:function(){return!1},getAttributeForEventTarget:function(){},getInnerDimensions:function(){return{}},hasAnchor:function(){return!1},getAnchorDimensions:function(){return{}},getWindowDimensions:function(){return{}},getNumberOfItems:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerBodyClickHandler:function(){},deregisterBodyClickHandler:function(){},getIndexForEventTarget:function(){return 0},notifySelected:function(){},notifyCancel:function(){},saveFocus:function(){},restoreFocus:function(){},isFocused:function(){return!1},focus:function(){},getFocusedItemIndex:function(){return-1},focusItemAtIndex:function(){},isRtl:function(){return!1},setTransformOrigin:function(){},setPosition:function(){},setMaxHeight:function(){},setAttrForOptionAtIndex:function(){},rmAttrForOptionAtIndex:function(){}
1,addClassForOptionAtIndex:function(){},rmClassForOptionAtIndex:function(){}}}}]),a(u,[{key:"init",value:function(){var e=u.cssClasses,t=e.ROOT,e=e.OPEN;if(!this.adapter_.hasClass(t))throw new Error(t+" class required in root element.");if(!this.adapter_.hasNecessaryDom())throw new Error("Required DOM nodes missing in "+t+" component.");this.adapter_.hasClass(e)&&(this.isOpen_=!0),this.adapter_.registerInteractionHandler("click",this.clickHandler_),this.adapter_.registerInteractionHandler("keyup",this.keyupHandler_),this.adapter_.registerInteractionHandler("keydown",this.keydownHandler_)}},{key:"destroy",value:function(){clearTimeout(this.selectedTriggerTimerId_),clearTimeout(this.openAnimationEndTimerId_),clearTimeout(this.closeAnimationEndTimerId_),cancelAnimationFrame(this.animationRequestId_),this.adapter_.deregisterInteractionHandler("click",this.clickHandler_),this.adapter_.deregisterInteractionHandler("keyup",this.keyupHandler_),this.adapter_.deregisterInteractionHandler("keydown",this.keydownHandler_),this.adapter_.deregisterBodyClickHandler(this.documentClickHandler_)}},{key:"setAnchorCorner",value:function(e){this.anchorCorner_=e}},{key:"setAnchorMargin",value:function(e){this.anchorMargin_.top="number"==typeof e.top?e.top:0,this.anchorMargin_.right="number"==typeof e.right?e.right:0,this.anchorMargin_.bottom="number"==typeof e.bottom?e.bottom:0,this.anchorMargin_.left="number"==typeof e.left?e.left:0}},{key:"setRememberSelection",value:function(e){this.rememberSelection_=e,this.setSelectedIndex(-1)}},{key:"setQuickOpen",value:function(e){this.quickOpen_=e}},{key:"focusOnOpen_",value:function(e){null===e?this.rememberSelection_&&0<=this.selectedIndex_?this.adapter_.focusItemAtIndex(this.selectedIndex_):(this.adapter_.focus(),this.adapter_.isFocused()||this.adapter_.focusItemAtIndex(0)):this.adapter_.focusItemAtIndex(e)}},{key:"handleDocumentClick_",value:function(e){for(var t=e.target;t&&t!==document.documentElement;){if(-1!==this.adapter_.getIndexForEventTarget(t))return;t=t.parentNode}this.adapter_.notifyCancel(),this.close(e)}},{key:"handleKeyboardDown_",value:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t=e.keyCode,n=e.key,i=e.shiftKey,a="Tab"===n||9===t,r="ArrowUp"===n||38===t,o="ArrowDown"===n||40===t,s="Space"===n||32===t,n=(this.keyDownWithinMenu_="Enter"===n||13===t||s,this.adapter_.getFocusedItemIndex()),t=this.adapter_.getNumberOfItems()-1;if(i&&a&&0===n)return this.adapter_.focusItemAtIndex(t),e.preventDefault(),!1;if(!i&&a&&n===t)return this.adapter_.focusItemAtIndex(0),e.preventDefault(),!1;(r||o||s)&&e.preventDefault(),r?0===n||this.adapter_.isFocused()?this.adapter_.focusItemAtIndex(t):this.adapter_.focusItemAtIndex(n-1):o&&(n===t||this.adapter_.isFocused()?this.adapter_.focusItemAtIndex(0):this.adapter_.focusItemAtIndex(n+1))}return!0}},{key:"handleKeyboardUp_",value:function(e){var t,n,i;return e.altKey||e.ctrlKey||e.metaKey||(t=e.keyCode,i="Escape"===(n=e.key)||27===t,"Enter"!==n&&13!==t&&("Space"!==n&&32!==t)||(this.keyDownWithinMenu_&&this.handlePossibleSelected_(e),this.keyDownWithinMenu_=!1),i&&(this.adapter_.notifyCancel(),this.close())),!0}},{key:"handlePossibleSelected_",value:function(e){var t,n=this;"true"===this.adapter_.getAttributeForEventTarget(e.target,c.e.ARIA_DISABLED_ATTR)||(t=this.adapter_.getIndexForEventTarget(e.target))<0||this.selectedTriggerTimerId_||(this.selectedTriggerTimerId_=setTimeout(function(){n.selectedTriggerTimerId_=0,n.close(),n.rememberSelection_&&n.setSelectedIndex(t),n.adapter_.notifySelected({index:t})},c.d.SELECTED_TRIGGER_DELAY))}},{key:"getAutoLayoutMeasurements_",value:function(){var e=this.adapter_.getAnchorDimensions(),t=this.adapter_.getWindowDimensions();return{viewport:t,viewportDistance:{top:e.top,right:t.width-e.right,left:e.left,bottom:t.height-e.bottom},anchorHeight:e.height,anchorWidth:e.width,menuHeight:this.dimensions_.height,menuWidth:this.dimensions_.width}}},{key:"getOriginCorner_",value:function(){var e=c.a.TOP_LEFT,t=this.measures_,n=t.viewportDistance,i=t.anchorHeight,a=t.anchorWidth,r=t.menuHeight,t=t.menuWidth,o=Boolean(this.anchorCorner_&c.b.BOTTOM),s=o?n.top+i+this.anchorMargin_.bottom:n.top+this.anchorMargin_.top,o=r-(o?n.bottom-this.anchorMargin_.bottom:n.bottom+i-this.anchorMargin_.top),i=(0<o&&r-s<o&&(e|=c.b.BOTTOM),this.adapter_.isRtl()),r=Boolean(this.anchorCorner_&c.b.FLIP_RT
1L),s=Boolean(this.anchorCorner_&c.b.RIGHT),o=s&&!i||!s&&r&&i,r=t-(o?n.left+a+this.anchorMargin_.right:n.left+this.anchorMargin_.left),t=t-(o?n.right-this.anchorMargin_.right:n.right+a-this.anchorMargin_.left);return(r<0&&o&&i||s&&!o&&r<0||0<t&&r<t)&&(e|=c.b.RIGHT),e}},{key:"getHorizontalOriginOffset_",value:function(e){var t=this.measures_.anchorWidth,e=Boolean(e&c.b.RIGHT),n=Boolean(this.anchorCorner_&c.b.RIGHT);return e?n?t-this.anchorMargin_.left:this.anchorMargin_.right:n?t-this.anchorMargin_.right:this.anchorMargin_.left}},{key:"getVerticalOriginOffset_",value:function(e){var t=this.measures_,n=t.viewport,i=t.viewportDistance,a=t.anchorHeight,t=t.menuHeight,e=Boolean(e&c.b.BOTTOM),r=u.numbers.MARGIN_TO_EDGE,o=Boolean(this.anchorCorner_&c.b.BOTTOM),s=!o,l=0;return e?(l=o?a-this.anchorMargin_.top:-this.anchorMargin_.bottom,s&&t>i.top+a&&(l=-(Math.min(t,n.height-r)-(i.top+a)))):(l=o?a+this.anchorMargin_.bottom:this.anchorMargin_.top,s&&t>i.bottom+a&&(l=-(Math.min(t,n.height-r)-(i.bottom+a)))),l}},{key:"getMenuMaxHeight_",value:function(e){var t=0,n=this.measures_.viewportDistance,e=Boolean(e&c.b.BOTTOM);return t=this.anchorCorner_&c.b.BOTTOM?e?n.top+this.anchorMargin_.top:n.bottom-this.anchorMargin_.bottom:t}},{key:"autoPosition_",value:function(){var e,t,n,i,a,r,o,s,l;this.adapter_.hasAnchor()&&(this.measures_=this.getAutoLayoutMeasurements_(),e=this.getOriginCorner_(),t=this.getMenuMaxHeight_(e),l=e&c.b.BOTTOM?"bottom":"top",n=e&c.b.RIGHT?"right":"left",a=this.getHorizontalOriginOffset_(e),i=this.getVerticalOriginOffset_(e),d(s={},n,a?a+"px":"0"),d(s,l,i?i+"px":"0"),a=s,o=(s=this.measures_).anchorWidth,r=s.menuHeight,o/s.menuWidth>c.d.ANCHOR_TO_MENU_WIDTH_RATIO&&(n="center"),!(this.anchorCorner_&c.b.BOTTOM)&&Math.abs(i/r)>c.d.OFFSET_TO_MENU_HEIGHT_RATIO&&(o=100*Math.abs(i/r),s=e&c.b.BOTTOM?100-o:o,l=Math.round(100*s)/100+"%"),this.adapter_.setTransformOrigin(n+" "+l),this.adapter_.setPosition(a),this.adapter_.setMaxHeight(t?t+"px":""),this.measures_=null)}},{key:"open",value:function(){var e=this,t=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).focusIndex,n=void 0===t?null:t;this.adapter_.saveFocus(),this.quickOpen_||this.adapter_.addClass(u.cssClasses.ANIMATING_OPEN),this.animationRequestId_=requestAnimationFrame(function(){e.dimensions_=e.adapter_.getInnerDimensions(),e.autoPosition_(),e.adapter_.addClass(u.cssClasses.OPEN),e.focusOnOpen_(n),e.adapter_.registerBodyClickHandler(e.documentClickHandler_),e.quickOpen_||(e.openAnimationEndTimerId_=setTimeout(function(){e.openAnimationEndTimerId_=0,e.adapter_.removeClass(u.cssClasses.ANIMATING_OPEN)},c.d.TRANSITION_OPEN_DURATION))}),this.isOpen_=!0}},{key:"close",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;!!t&&"true"===this.adapter_.getAttributeForEventTarget(t.target,c.e.ARIA_DISABLED_ATTR)||(this.adapter_.deregisterBodyClickHandler(this.documentClickHandler_),this.quickOpen_||this.adapter_.addClass(u.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){e.adapter_.removeClass(u.cssClasses.OPEN),e.quickOpen_||(e.closeAnimationEndTimerId_=setTimeout(function(){e.closeAnimationEndTimerId_=0,e.adapter_.removeClass(u.cssClasses.ANIMATING_CLOSED)},c.d.TRANSITION_CLOSE_DURATION))}),this.isOpen_=!1,this.adapter_.restoreFocus())}},{key:"isOpen",value:function(){return this.isOpen_}},{key:"getSelectedIndex",value:function(){return this.selectedIndex_}},{key:"setSelectedIndex",value:function(e){var t;e!==this.selectedIndex_&&(0<=(t=this.selectedIndex_)&&(this.adapter_.rmAttrForOptionAtIndex(t,"aria-selected"),this.adapter_.rmClassForOptionAtIndex(t,c.c.SELECTED_LIST_ITEM)),this.selectedIndex_=0<=e&&e<this.adapter_.getNumberOfItems()?e:-1,0<=this.selectedIndex_)&&(this.adapter_.setAttrForOptionAtIndex(this.selectedIndex_,"aria-selected","true"),this.adapter_.addClassForOptionAtIndex(this.selectedIndex_,c.c.SELECTED_LIST_ITEM))}}]),u}(t.a)},86:function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}!function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"hasClass",value:function(e){}},{key:"hasNecessaryDom",value:function(){}},{key:"getAttributeForEventTarget",value:function(e,t){}},{key:"getInnerDimensions",value:function(){}},{key:"hasAnchor",value:function(){}},{key:"getAnchorDimensions",value:function(){}},{key:"getWindowDimensions",value:function(){}},{key:"getNumberOfItems",value:function(){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"registerBodyClickHandler",value:function(e){}},{key:"deregisterBodyClickHandler",value:function(e){}},{key:"getIndexForEventTarget",value:function(e){}},{key:"notifySelected",value:function(e){}},{key:"notifyCancel",value:function(){}},{key:"saveFocus",value:function(){}},{key:"restoreFocus",value:function(){}},{key:"isFocused",value:function(){}},{key:"focus",value:function(){}},{key:"getFocusedItemIndex",value:function(){}},{key:"focusItemAtIndex",value:function(e){}},{key:"isRtl",value:function(){}},{key:"setTransformOrigin",value:function(e){}},{key:"setPosition",value:function(e){}},{key:"setMaxHeight",value:function(e){}},{key:"setAttrForOptionAtIndex",value:function(e,t,n){}},{key:"rmAttrForOptionAtIndex",value:function(e,t){}}
1,{key:"addClassForOptionAtIndex",value:function(e,t){}},{key:"rmClassForOptionAtIndex",value:function(e,t){}}]);function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}}},a={},i.m=n,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=83);function i(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,a},"object"==typeof n&&"object"==typeof t?t.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof n?n.menu=a():(i.mdc=i.mdc||{},i.mdc.menu=a())},{}],258:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=e("@material/select/dist/mdc.select");i(o,[{key:"$postLink",value:function(){var e=this,t=this.options.indexOf(this.value);this.$scope.$$postDigest(function(){e.mdcComponent=new r.MDCSelect(e.$element[0].querySelector("div.mdc-select")),e.mdcComponent.listen("MDCSelect:change",function(){e.$scope.$apply(function(){e.onChange({value:e.options[e.mdcComponent.selectedIndex]})})}),e.nativeSelect=e.$element[0].querySelector("select.mdc-select__native-control"),e.nativeSelect.addEventListener("change",function(){e.$scope.$apply(function(){e.onChange({value:e.options[e.nativeSelect.selectedIndex]})})}),e.nativeSelect.selectedIndex=t})}},{key:"$onChanges",value:function(){var e=this,t=this.options.indexOf(this.value);this.$scope.$$postDigest(function(){e.mdcComponent&&(e.mdcComponent.selectedIndex=t),e.nativeSelect&&(e.nativeSelect.selectedIndex=t)})}},{key:"$onDestroy",value:function(){this.mdcComponent.destroy()}}]);e=o;function o(e,t){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.$scope=e,this.$element=t,this.mdcComponent=null,this.nativeSelect=null}e.$inject=["$scope","$element"],n.default={bindings:{value:"<",options:"<",for:"@",selectedTextClass:"@",nativeSelectClass:"@",onChange:"&",showAsterisk:"<"},controller:e,template:'\n <div class="mdc-select mdc-select--box mdc-select--generated">\n <label for="{{$ctrl.for}}" ng-if="$ctrl.value.name" class="mdc-select__selected-text {{$ctrl.selectedTextClass}}">{{$ctrl.value.name}}</label>\n \n <select id="{{$ctrl.for}}" class="mdc-select__native-control {{$ctrl.nativeSelectClass}}">\n <option\n data-ng-repeat="option in $ctrl.options track by option.value"\n data-ng-attr-selected="{{$ctrl.value == option ? \'\' : undefined}}"\n >{{option.name}}</option>\n </select>\n <div ng-if="$ctrl.showAsterisk" class="mdc-select__asterix">*</div>\n </div>\n\n '}},{"@material/select/dist/mdc.select":388}],388:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(){return n={0:function(e,t,n){var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.adapter_=e}
1i(r,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),i(r,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),t.a=r},1:function(e,t,n){var i=n(0),n=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(s,null,[{key:"attachTo",value:function(e){return new s(e,new i.a)}}]),n(s,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(e,t){this.root_.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){this.root_.removeEventListener(e,t)}},{key:"emit",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=void 0;"function"==typeof CustomEvent?i=new CustomEvent(e,{detail:t,bubbles:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root_.dispatchEvent(i)}}]);n=s;function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,n=this,i=s;if(!(n instanceof i))throw new TypeError("Cannot call a class as a function");this.root_=e;for(var a=arguments.length,r=Array(2<a?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];this.initialize.apply(this,r),this.foundation_=void 0===t?this.getDefaultFoundation():t,this.foundation_.init(),this.initialSyncWithDOM()}t.a=n},10:function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"getWidth",value:function(){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}}])},11:function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"hasClass",value:function(e){}},{key:"setStyle",value:function(e,t){}},{key:"registerEventHandler",value:function(e,t){}},{key:"deregisterEventHandler",value:function(e,t){}}])},12:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCFloatingLabel",function(){return s});var i=n(1),a=(n(10),n(13)),r=(n.d(t,"MDCFloatingLabelFoundation",function(){return a.a}),function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e});function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(n,[{key:"shake",value:function(e){this.foundation_.shake(e)}},{key:"float",value:function(e){this.foundation_.float(e)}},{key:"getWidth",value:function(){return this.foundation_.getWidth()}},{key:"getDefaultFoundation",value:function(){var n=this;return new a.a({addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},getWidth:function(){return n.root_.offsetWidth},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t)}})}}],[{key:"attachTo",value:function(e){return new n(e)}}]),n}(i.a)},13:function(e,t,n){var i=n(0),a=(n(10),n(14)),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function i(e){var t;if(this instanceof i)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,r(i.defaultAdapter,e)))).shakeAnimationEndHandler_=function(){return t.handleShakeAnimationEnd_()},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(i,null,[{key:"cssClasse
1s",get:function(){return a.a}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}}}]),o(i,[{key:"init",value:function(){this.adapter_.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)}},{key:"getWidth",value:function(){return this.adapter_.getWidth()}},{key:"shake",value:function(e){var t=i.cssClasses.LABEL_SHAKE;e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}},{key:"float",value:function(e){var t=i.cssClasses,n=t.LABEL_FLOAT_ABOVE,t=t.LABEL_SHAKE;e?this.adapter_.addClass(n):(this.adapter_.removeClass(n),this.adapter_.removeClass(t))}},{key:"handleShakeAnimationEnd_",value:function(){var e=i.cssClasses.LABEL_SHAKE;this.adapter_.removeClass(e)}}]),i}(i.a);t.a=n},14:function(e,t,n){n.d(t,"a",function(){return i});var i={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_SHAKE:"mdc-floating-label--shake"}},15:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCLineRipple",function(){return l});var i=n(1),a=(n(11),n(16)),r=(n.d(t,"MDCLineRippleFoundation",function(){return a.a}),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}),o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var l=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,[{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"setRippleCenter",value:function(e){this.foundation_.setRippleCenter(e)}},{key:"getDefaultFoundation",value:function(){var n=this;return new a.a(r({addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},hasClass:function(e){return n.root_.classList.contains(e)},setStyle:function(e,t){return n.root_.style[e]=t},registerEventHandler:function(e,t){return n.root_.addEventListener(e,t)},deregisterEventHandler:function(e,t){return n.root_.removeEventListener(e,t)}}))}}],[{key:"attachTo",value:function(e){return new n(e)}}]),n}(i.a)},16:function(e,t,n){var i=n(0),r=(n(11),n(17)),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function a(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=this,i=a;if(n instanceof i)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,o(a.defaultAdapter,e)))).transitionEndHandler_=function(e){return t.handleTransitionEnd(e)},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(a,null,[{key:"cssClasse
1s",get:function(){return r.a}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}}}]),s(a,[{key:"init",value:function(){this.adapter_.registerEventHandler("transitionend",this.transitionEndHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterEventHandler("transitionend",this.transitionEndHandler_)}},{key:"activate",value:function(){this.adapter_.removeClass(r.a.LINE_RIPPLE_DEACTIVATING),this.adapter_.addClass(r.a.LINE_RIPPLE_ACTIVE)}},{key:"setRippleCenter",value:function(e){this.adapter_.setStyle("transform-origin",e+"px center")}},{key:"deactivate",value:function(){this.adapter_.addClass(r.a.LINE_RIPPLE_DEACTIVATING)}},{key:"handleTransitionEnd",value:function(e){var t=this.adapter_.hasClass(r.a.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter_.removeClass(r.a.LINE_RIPPLE_ACTIVE),this.adapter_.removeClass(r.a.LINE_RIPPLE_DEACTIVATING))}}]),a}(i.a);t.a=n},17:function(e,t,n){n.d(t,"a",function(){return i});var i={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"}},2:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"supportsCssVariables",function(){return a}),n.d(t,"applyPassive",function(){return o}),n.d(t,"getMatchesProperty",function(){return s}),n.d(t,"getNormalizedEventCoords",function(){return l});var r=void 0,i=void 0;function a(e){var t,n,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=r;return"boolean"!=typeof r||i?e.CSS&&"function"==typeof e.CSS.supports?(t=e.CSS.supports("--css-vars","yes"),n=e.CSS.supports("(--css-vars: yes)")&&e.CSS.supports("color","#00000000"),a=!(!t&&!n||function(e){var t=e.document,n=t.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",t.body.appendChild(n);e=null!==(t=e.getComputedStyle(n))&&"solid"===t.borderTopStyle;return n.remove(),e}(e)),i||(r=a),a):void 0:a}function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window;if(void 0===i||1<arguments.length&&void 0!==arguments[1]&&arguments[1]){var t=!1;try{e.document.addEventListener("test",null,{get passive(){t=!0}})}catch(e){}i=t}return!!i&&{passive:!0}}function s(t){return["webkitMatchesSelector","msMatchesSelector","matches"].filter(function(e){return e in t}).pop()}function l(e,t,n){var i=t.x,t=t.y,i=i+n.left,t=t+n.top,n=void 0,a=void 0,a="touchstart"===e.type?(n=e.changedTouches[0].pageX-i,e.changedTouches[0].pageY-t):(n=e.pageX-i,e.pageY-t);return{x:n,y:a}}},3:function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)})(a,[{key:"browserSupportsCssVars",value:function(){}},{key:"isUnbounded",value:function(){}},{key:"isSurfaceActive",value:function(){}},{key:"isSurfaceDisabled",value:function(){}},{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"containsEventTarget",value:function(e){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"registerDocumentInteractionHandler",value:function(e,t){}},{key:"deregisterDocumentInteractionHandler",value:function(e,t){}},{key:"registerResizeHandler",value:function(e){}},{key:"deregisterResizeHandler",value:function(e){}},{key:"updateCssVariable",value:function(e,t){}},{key:"computeBoundingRect",value:function(){}},{key:"getWindowPageOffset",value:function(){}}])},35:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i={BOX:"mdc-select--box",DISABLED:"mdc-select--disabled",ROOT:"mdc-select"},a={CHANGE_EVENT:"MDCSelect:change",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",LABEL_SELECTOR:".mdc-floating-label",NATIVE_CONTROL_SELECTOR:".mdc-select__native-control"}}
1,4:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCRipple",function(){return u}),n.d(t,"RippleCapableSurface",function(){return c});var i=n(1),r=(n(3),n(5)),o=n(2),s=(n.d(t,"MDCRippleFoundation",function(){return r.a}),n.d(t,"util",function(){return o}),function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e});function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function a(){l(this,a);for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(t)));return i.disabled=!1,i.unbounded_,i}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(a,[{key:"setUnbounded_",value:function(){this.foundation_.setUnbounded(this.unbounded_)}},{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"getDefaultFoundation",value:function(){return new r.a(a.createAdapter(this))}},{key:"initialSyncWithDOM",value:function(){this.unbounded="mdcRippleIsUnbounded"in this.root_.dataset}},{key:"unbounded",get:function(){return this.unbounded_},set:function(e){this.unbounded_=Boolean(e),this.setUnbounded_()}}],[{key:"attachTo",value:function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isUnbounded,t=void 0===t?void 0:t,e=new a(e);return void 0!==t&&(e.unbounded=t),e}},{key:"createAdapter",value:function(n){var e=o.getMatchesProperty(HTMLElement.prototype);return{browserSupportsCssVars:function(){return o.supportsCssVariables(window)},isUnbounded:function(){return n.unbounded},isSurfaceActive:function(){return n.root_[e](":active")},isSurfaceDisabled:function(){return n.disabled},addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},containsEventTarget:function(e){return n.root_.contains(e)},registerInteractionHandler:function(e,t){return n.root_.addEventListener(e,t,o.applyPassive())},deregisterInteractionHandler:function(e,t){return n.root_.removeEventListener(e,t,o.applyPassive())},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,o.applyPassive())},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,o.applyPassive())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},updateCssVariable:function(e,t){return n.root_.style.setProperty(e,t)},computeBoundingRect:function(){return n.root_.getBoundingClientRect()},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}}}}}]),a}(i.a),c=function e(){l(this,e)};c.prototype.root_,c.prototype.unbounded,c.prototype.disabled},5:function(e,t,n){var i=n(0),a=(n(3),n(6)),r=n(2),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e};function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u=["touchstart","pointerdown","mousedown","keydown"],d=["touchend","pointerup","mouseup"],f=[],n=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function c(e){var t;if(this instanceof c)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,o(c.defaultAdapter,e)))).layoutFrame_=0,t.frame_={width:0,height:0},t.activationState_=t.defaultActivationState_(),t.initialSize_=0,t.maxRadius_=0,t.activateHandler_=function(e){return t.activate_(e)},t.deactivateHandler_=function(e){return t.deactivate_(e)},t.focusHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.addClass(c.cssClasse
1s.BG_FOCUSED)})},t.blurHandler_=function(){return requestAnimationFrame(function(){return t.adapter_.removeClass(c.cssClasses.BG_FOCUSED)})},t.resizeHandler_=function(){return t.layout()},t.unboundedCoords_={left:0,top:0},t.fgScale_=0,t.activationTimer_=0,t.fgDeactivationRemovalTimer_=0,t.activationAnimationHasEnded_=!1,t.activationTimerCallback_=function(){t.activationAnimationHasEnded_=!0,t.runDeactivationUXLogicIfReady_()},t.previousActivationEvent_=null,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),s(c,null,[{key:"cssClasses",get:function(){return a.a}},{key:"strings",get:function(){return a.c}},{key:"numbers",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{browserSupportsCssVars:function(){},isUnbounded:function(){},isSurfaceActive:function(){},isSurfaceDisabled:function(){},addClass:function(){},removeClass:function(){},containsEventTarget:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerDocumentInteractionHandler:function(){},deregisterDocumentInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},updateCssVariable:function(){},computeBoundingRect:function(){},getWindowPageOffset:function(){}}}}]),s(c,[{key:"isSupported_",value:function(){return this.adapter_.browserSupportsCssVars()}},{key:"defaultActivationState_",value:function(){return{isActivated:!1,hasDeactivationUXRun:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1,activationEvent:null,isProgrammatic:!1}}},{key:"init",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.registerRootHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.addClass(t),i.adapter_.isUnbounded()&&(i.adapter_.addClass(n),i.layoutInternal_())}))}},{key:"destroy",value:function(){var e,t,n,i=this;this.isSupported_()&&(this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,e=c.cssClasses.FG_ACTIVATION,this.adapter_.removeClass(e)),this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_(),t=(e=c.cssClasses).ROOT,n=e.UNBOUNDED,requestAnimationFrame(function(){i.adapter_.removeClass(t),i.adapter_.removeClass(n),i.removeCssVars_()}))}},{key:"registerRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.registerInteractionHandler(e,t.activateHandler_)}),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)}},{key:"registerDeactivationHandlers_",value:function(e){var t=this;"keydown"===e.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):d.forEach(function(e){t.adapter_.registerDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"deregisterRootHandlers_",value:function(){var t=this;u.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.activateHandler_)}),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"deregisterDeactivationHandlers_",value:function(){var t=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),d.forEach(function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})}},{key:"removeCssVars_",value:function(){var t=this,n=c.strings;Object.keys(n).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(n[e],null)})}},{key:"activate_",value:function(e){var t,n,i=this;this.adapter_.isSurfaceDisabled()||(t=this.activationState_).isActivated||(n=this.previousActivationEvent_)&&e&&n.type!==e.type||(t.isActivated=!0,t.isProgrammatic=null===e,t.activationEvent=e,t.wasActivatedByPointer=!t.isProgrammatic&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type),e&&0<f.length&&f.some(function(e){return i.adapter_.containsEventTarget(e)})?this.resetActivationState_():(e&&(f.push(e.target),this.registerDeactivationHandlers_(e)),t.wasElementMadeActive=this.checkElementMadeActive_(e),t.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){f=[],t.wasElementMadeActive||" "!==e.key&&32!==e.keyCode||(t.wasElementMadeActive=i.checkElementMadeActive_(e),t.wasElementMadeActive&&i.animateActivation_()),t.wasElementMadeActive||(i.activationState_=i.defaultActivationState_())})))}},{key:"checkElementMadeActive_",value:function(e){return!e||"keydown"!==e.type||this.adapter_.isSurfaceActive()}},{key:"activate",value:function(){this.activate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateActivation_",value:function(){var e,t,n=this,i=c.strings,a=i.VAR_FG_TRANSLATE_START,i=i.VAR_FG_TRANSLATE_END,r=c.cssClasse
1s,o=r.FG_DEACTIVATION,r=r.FG_ACTIVATION,s=c.numbers.DEACTIVATION_TIMEOUT_MS,l=(this.layoutInternal_(),""),u="";this.adapter_.isUnbounded()||(e=(t=this.getFgTranslationCoordinates_()).startPoint,t=t.endPoint,l=e.x+"px, "+e.y+"px",u=t.x+"px, "+t.y+"px"),this.adapter_.updateCssVariable(a,l),this.adapter_.updateCssVariable(i,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(o),this.adapter_.computeBoundingRect(),this.adapter_.addClass(r),this.activationTimer_=setTimeout(function(){return n.activationTimerCallback_()},s)}},{key:"getFgTranslationCoordinates_",value:function(){var e=this.activationState_,t=e.activationEvent,n=void 0;return{startPoint:n={x:(n=e.wasActivatedByPointer?Object(r.getNormalizedEventCoords)(t,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:n.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}}},{key:"runDeactivationUXLogicIfReady_",value:function(){var e=this,t=c.cssClasses.FG_DEACTIVATION,n=this.activationState_,i=n.hasDeactivationUXRun,n=n.isActivated;!i&&n||!this.activationAnimationHasEnded_||(this.rmBoundedActivationClasses_(),this.adapter_.addClass(t),this.fgDeactivationRemovalTimer_=setTimeout(function(){e.adapter_.removeClass(t)},a.b.FG_DEACTIVATION_MS))}},{key:"rmBoundedActivationClasses_",value:function(){var e=c.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()}},{key:"resetActivationState_",value:function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return e.previousActivationEvent_=null},c.numbers.TAP_DELAY_MS)}},{key:"deactivate_",value:function(e){var t,n=this,i=this.activationState_;i.isActivated&&(t=o({},i),i.isProgrammatic?(requestAnimationFrame(function(){return n.animateDeactivation_(null,t)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){n.activationState_.hasDeactivationUXRun=!0,n.animateDeactivation_(e,t),n.resetActivationState_()})))}},{key:"deactivate",value:function(){this.deactivate_(0<arguments.length&&void 0!==arguments[0]?arguments[0]:null)}},{key:"animateDeactivation_",value:function(e,t){var n=t.wasActivatedByPointer,t=t.wasElementMadeActive;(n||t)&&this.runDeactivationUXLogicIfReady_()}},{key:"layout",value:function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})}},{key:"layoutInternal_",value:function(){var e=this,t=(this.frame_=this.adapter_.computeBoundingRect(),Math.max(this.frame_.height,this.frame_.width));this.maxRadius_=this.adapter_.isUnbounded()?t:Math.sqrt(Math.pow(e.frame_.width,2)+Math.pow(e.frame_.height,2))+c.numbers.PADDING,this.initialSize_=t*c.numbers.INITIAL_ORIGIN_SCALE,this.fgScale_=this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()}},{key:"updateLayoutCssVars_",value:function(){var e=c.strings,t=e.VAR_FG_SIZE,n=e.VAR_LEFT,i=e.VAR_TOP,e=e.VAR_FG_SCALE;this.adapter_.updateCssVariable(t,this.initialSize_+"px"),this.adapter_.updateCssVariable(e,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(n,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(i,this.unboundedCoords_.top+"px"))}},{key:"setUnbounded",value:function(e){var t=c.cssClasses.UNBOUNDED;e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}}]),c}(i.a);t.a=n},6:function(e,t,n){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return r});var i={ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded",BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation"},a={VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end"},r={PADDING:10,INITIAL_ORIGIN_SCALE:.6,DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,TAP_DELAY_MS:300}}
1,7:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1);n.d(t,"MDCFoundation",function(){return i.a}),n.d(t,"MDCComponent",function(){return a.a})},91:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"MDCSelect",function(){return h});var i=n(7),a=n(12),r=n(15),o=n(4),s=n(92),l=n(35),u=(n.d(t,"MDCSelectFoundation",function(){return s.a}),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}),c=function(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e};function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function f(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?f(i,t,n):void 0}var h=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),c(n,[{key:"initialize",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(e){return new a.MDCFloatingLabel(e)},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(e){return new r.MDCLineRipple(e)},n=(this.nativeControl_=this.root_.querySelector(l.b.NATIVE_CONTROL_SELECTOR),this.root_.querySelector(l.b.LABEL_SELECTOR)),e=(n&&(this.label_=e(n)),this.root_.querySelector(l.b.LINE_RIPPLE_SELECTOR));e&&(this.lineRipple_=t(e)),this.root_.classList.contains(l.a.BOX)&&(this.ripple=this.initRipple_())}},{key:"initRipple_",value:function(){var n=this,e=u(o.MDCRipple.createAdapter(this),{registerInteractionHandler:function(e,t){return n.nativeControl_.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){return n.nativeControl_.removeEventListener(e,t)}}),e=new o.MDCRippleFoundation(e);return new o.MDCRipple(this.root_,e)}},{key:"getDefaultFoundation",value:function(){var n=this;return new s.a({addClass:function(e){return n.root_.classList.add(e)},removeClass:function(e){return n.root_.classList.remove(e)},floatLabel:function(e){n.label_&&n.label_.float(e)},activateBottomLine:function(){n.lineRipple_&&n.lineRipple_.activate()},deactivateBottomLine:function(){n.lineRipple_&&n.lineRipple_.deactivate()},setDisabled:function(e){return n.nativeControl_.disabled=e},registerInteractionHandler:function(e,t){return n.nativeControl_.addEventListener(e,t)},deregisterInteractionHandler:function(e,t){return n.nativeControl_.removeEventListener(e,t)},getSelectedIndex:function(){return n.nativeControl_.selectedIndex},setSelectedIndex:function(e){return n.nativeControl_.selectedIndex=e},getValue:function(){return n.nativeControl_.value},setValue:function(e){return n.nativeControl_.value=e}})}},{key:"initialSyncWithDOM",value:function(){this.selectedIndex=this.nativeControl_.selectedIndex,this.nativeControl_.disabled&&(this.disabled=!0)}},{key:"destroy",value:function(){this.ripple&&this.ripple.destroy(),f(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"destroy",this).call(this)}},{key:"value",get:function(){return this.nativeControl_.value},set:function(e){this.foundation_.setValue(e)}},{key:"selectedIndex",get:function(){return this.nativeControl_.selectedIndex},set:function(e){this.foundation_.setSelectedIndex(e)}},{key:"disabled",get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation_.setDisabled(e)}}],[{key:"attachTo",value:function(e){return new n(e)}}]),n}(i.MDCComponent)},92:function(e,t,n){var i=n(7),a=n(35),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o=function(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e};function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e){var t;if(this instanceof n)return(t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r(n.defaultAdapter,e)))).focusHandler_=function(e){return t.handleFocus_(e)},t.blurHandler_=function(e){return t.handleBlur_(e)},t.selectionHandler_=function(e){return t.handleSelect_(e)},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,null,[{key:"cssClasse
1s",get:function(){return a.a}},{key:"strings",get:function(){return a.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},floatLabel:function(){},activateBottomLine:function(){},deactivateBottomLine:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},setDisabled:function(){},getValue:function(){return""},setValue:function(){}}}}]),o(n,[{key:"init",value:function(){this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_),this.adapter_.registerInteractionHandler("change",this.selectionHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.deregisterInteractionHandler("change",this.selectionHandler_)}},{key:"setSelectedIndex",value:function(e){this.adapter_.setSelectedIndex(e),this.floatLabelWithValue_()}},{key:"setValue",value:function(e){this.adapter_.setValue(e),this.setSelectedIndex(this.adapter_.getSelectedIndex())}},{key:"setDisabled",value:function(e){var t=n.cssClasses.DISABLED;this.adapter_.setDisabled(e),e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}},{key:"floatLabelWithValue_",value:function(){var e=0<this.adapter_.getValue().length;this.adapter_.floatLabel(e)}},{key:"handleFocus_",value:function(){this.adapter_.floatLabel(!0),this.adapter_.activateBottomLine()}},{key:"handleBlur_",value:function(){this.floatLabelWithValue_(),this.adapter_.deactivateBottomLine()}},{key:"handleSelect_",value:function(){this.setSelectedIndex(this.adapter_.getSelectedIndex())}}]),n}(i.MDCFoundation);t.a=n}},a={},i.m=n,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=91);function i(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,i),t.l=!0,t)).exports}var n,a},"object"==typeof n&&"object"==typeof t?t.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof n?n.select=a():(i.mdc=i.mdc||{},i.mdc.select=a())},{}],200:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=e("../gtmCalculatorService");function a(c,n,r,o){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var d=this;c.isShown=0,c.calculating=!1,c.showMore=!1,c.loans={},c.error=null,c.collateralType=null,c.collateralValue=null,c.downPayment=null,c.downPaymentIsDirty=!1,c.mortgageLoanTenureLength=null,c.bankLoanTenureLength=null,c.housingCooperativeLoanTenureLength=null,c.mortgageLoanInterestOnlyLength=null,c.productType=null,c.callbackProductTypes=null,c.resultsFound=!1,c.isAndelsLoan=!1,c.shareLink="",c.ltvSettings={},c.ltvValues={bankLoan:{},mortageLoan:{},downPayment:{}},c.suppLoanAmount=null,c.suppOwnCollateralValue=null,c.suppExistingCollateralLoan=null,c.maxCollateralValue=null,c.minCollateralValue=null,c.andelMaxCollateralValue=null,c.andelMinCollateralValue=null,c.downPaymentRatio=null,c.mortgageLoanTenureLengthMinValue=null,c.mortgageLoanTenureLengthMaxValue=null,c.mortgageLoanInterestOnlyLengthMinValue=null,c.mortgageLoanInterestOnlyLengthMaxValue=null,c.bankLoanTenureLengthMinValue=null,c.bankLoanTenureLengthMaxValue=null,c.cooperativeHousingLoanTenureLengthMinValue=null,c.cooperativeHousingLoanTenureLengthMaxValue=null,c.calculate=function(i,e,a){c.error=null;var t={ProductType:e="Andel"===c.collateralType?"Banklån":e,CollateralType:c.collateralType,CollateralValue:c.collateralValue,DownPayment:c.downPayment,MortgageLoanTenureLength:c.mortgageLoanTenureLength,MortgageLoanInterestOnlyLength:c.mortgageLoanInterestOnlyLength,BankLoanTenureLength:c.bankLoanTenureLength,HousingCooperativeLoanTenureLength:c.housingCooperativeLoanTenureLength,LiabilitySum:c.suppExistingCollateralLoan,LoanAmount:c.suppLoanAmount},e=(a&&0<a.length&&(c.isShown=e,c.resultsFound=!1,c.calculating=!0,c.currentBankAmmortization=null,c.currentMortgageAmmortization=null,c.isAndelsLoan=!1),c.loans[e]&&(c.loans[e].hasLoaded=!1),d.apiEndpoint+i);o.post(e,t,null,function(e,t){var n;t&&t.success&&t.result?(c.resultsFound=!0,c.calculating=!1,n=3,c.loans[t.result.ProductType]=t.result,c.loans[t.result.ProductType].hasLoaded=!0,c.loans[t.result.ProductType].MortgageLoan&&n--,c.loans[t.result.ProductType].BankLoan&&n--,c.loans[t.result.ProductType].colSpan=n,a&&0<a.length&&(c.updateLocation(),c.updatePosition("loanCalculatorResult"),t.result.BankLoan&&(c.currentBankAmmortization=t.result.BankLoan.Ammortization),t.result.MortgageLoan&&(c.currentMortgageAmmortization=t.result.MortgageLoan.Ammortization),c.triggerTrackEvent(c.events.calculate),"Andel"===c.collateralType)?c.isAndelsLoan=!0:angular.forEach(a,function(e){c.calculate(i,e,[])})):t&&!t.success&&(c.calculating=!1,c.error=r(t.error)(c))},function(e,t){t&&t.error?(c.calculating=!1,c.error=r(t.error)(c)):c.error="Der opstod en uventet fejl da beregningen blev forsøgt foretaget. Prøv venligst igen senere. Vi beklager ulejligheden."})},c.toggleShowMore=function(){c.showMore=!c.showMore},c.changeTab=function(e){c.isShown=e=null==e?"Obligationslån":e,void 0!==c.loans[e].MortgageLoan&&null!==c.loans[e].MortgageLoan?c.currentMortgageAmmortization=c.loans[e].MortgageLoan.Ammortization:c.currentMortgageAmmortization=null,void 0!==c.loans[e].BankLoan&&null!==c.loans[e].BankLoan?c.currentBankAmmortization=c.loans[e].BankLoan.Ammortization:c.currentBankAmmortization=null,c.triggerTrackEvent(c.events.tabChange)},d.open=!1,c.toggleOpenAdvancedControls=function(){d.open=!d.open,d.open?c.triggerTrackEvent(c.events.extend):c.triggerTrackEvent(c.events.simple)},c.updateLocation=function(){location.hash="",c.collateralValue&&c.suppLoanAmount?(c.setParameter("cv",c.collateralValue),c.suppExistingCollateralLoan&&c.setParameter("secl",c.suppExistingCollateralLoan),c.setParameter("sla",c.suppLoanAmount)):(c.setParameter("dp",c.downPayment),c.setParameter("cv",c.collateralValue)),c.setParameter("ct",c.collateralType),c.mortgageLoanTenureLength&&c.setParameter("mtl",c.mortgageLoanTenureLength),c.mortgageLoanInterestOnlyLength&&c.setParameter("mio",c.mortgageLoanInterestOnlyLength),c.bankLoanTenureLength&&c.setParameter("btl",c.bankLoanTenureLength),c.housingCooperativeLoanTenureLength&&c.setParameter("hctl",c.housingCooperativeLoanTenureLength)},c.updatePosition=function(e){e=$("#"+e);e.length&&$("body, html").animate({scrollTop:e.offset().top},500)},c.share=function(e,t){c.triggerTrackEvent(c.events.sendToSelf);e=encodeURIComponent(r(e)(c)),t=encodeURIComponent(r(t)(c));window.location.href="mailto:?subject="+e+"&body="+t},c.adjustSliders=function(){parseInt(c.mortgageLoanTenureLength)<=parseInt(c.mortgageLoanInterestOnlyLength)&&(c.mortgageLoanTenureLength=parseInt(c.mortgageLoanInterestOnlyLength)+1)},c.changeCollateralType=function(e){c.collateralType=c.collateralTypeMobile=e,c.updateLtv(),c.$broadcast("collateralTypeChanged",e)},c.updateLtv=function(){if(c.collateralValue&&c.collateralType){var e;switch(c.collateralType){case"Helaarsbolig":e=c.ltvSettings.Permanent;break;case"Fritidshus":e=c.ltvSettings.Leisure;break;case"Andel":e=c.ltvSettings.Andel;break;default:e=0}var t=0,n=c.collateralValue-c.downPayment,n=(n>c.collateralValue*e&&"Andel"!==c.collateralType?t=c.collateralValue*e:"Andel"!==c.collateralType&&(t=n),n-=t),i=(n<0&&(n=0),t<0&&(t=0),c.downPayment);i>c.collateralValue&&(i=c.collateralValue),c.ltvValues={bankLoan:{value:Math.round(n),pct:Math.round(n/c.collateralValue*100)},mortageLoan:{value:Math.round(t),pct:Math.round(t/c.collateralValue*100)},downPayment:{value:Math.round(i),pct:Math.round(i/c.collateralValue*100)}}}else c.ltvValues={}},c.touchDownpaymentDirtyFlag=function(){c.downPaymentIsDirty=!0},c.updateDownPayment=function(){var e;c.collateralValue&&"Andel"!==c.collateralType&&(e=c.collateralValue*c.ltvSettings.DownPayment,c.downPaymentIsDirty||d.updateDownPayment(e))},d.updateCollateralValue=function(e){c.collateralValue=e},d.updateDownPayment=function(e){c.downPayment=Math.ceil(e)},d.extractParameters=function(e){c.hideTypes="true"==n.search().hidetypes,n.search().sla&&n.search().cv&&n.search().ct?(c.suppLoanAmount=n.search().sla,c.collateralValue=n.search().cv,n.search().secl&&(c.suppExistingCollateralLoan=n.search().secl),c.collateralType=n.search().ct):n.search().cv&&n.search().ct&&(c.collateralType=n.search().ct,d.updateCollateralValue(n.search().cv),n.search().dp)&&(c.downPaymentIsDirty=!0,d.updateDownPayment(n.search().dp)),c.collateralType&&c.collateralValue&&(c.downPayment||!c.downPayment&&"Andel"===c.collateralType||c.suppLoanAmount)&&(n.search().mtl&&(c.mortgageLoanTenureLength=n.search().mtl),n.search().btl&&(c.bankLoanTenureLength=n.search().btl),n.search().hctl&&(c.housingCooperativeLoanTenureLength=n.search().hctl),n.search().mio&&(c.mortgageLoanInterestOnlyLength=n.search().mio),c.updateLtv(),n.search().fillOnly||c.calculate(e,c.productType,c.callbackProductTypes))},c.setParameter=function(e,t){n.search(e,t)},c.getLocation=function(){return window.location.href},d.setInitLoans=function(e,t){c.loans[e.id]={Title:e.title},angular.forEach(t,function(e,t){c.loans[e.id]={Title:e.title},c.loans[e.id].hasLoaded=!1})},c.setVariables=function(e){c.maxCollateralValue=e.maxCollateralValue,c.minCollateralValue=e.minCollateralValue,c.andelMaxCollateralValue=e.andelMaxCollateralValue,c.andelMinCollateralValue=e.andelMinCollateralValue,c.downPaymentRatio=e.downPaymentRatio,c.mortgageLoanTenureLengthMinValue=e.mortgageLoanTenureLengthMinValue,c.mortgageLoanTenureLengthMaxValue=e.mortgageLoanTenureLengthMaxValue,c.mortgageLoanInterestOnlyLengthMinValue=e.mortgageLoanInterestOnlyLengthMinValue,c.mortgageLoanInterestOnlyLengthMaxValue=e.mortgageLoanInterestOnlyLengthMaxValue,c.bankLoanTenureLengthMinValue=e.bankLoanTenureLengthMinValue,c.bankLoanTenureLengthMaxValue=e.bankLoanTenureLengthMaxValue,c.housingCooperativeLoanTenureLengthMinValue=e.housingCooperativeLoanTenureLengthMinValue,c.housingCooperativeLoanTenureLengthMaxValue=e.housingCooperativeLoanTenureLengthMaxValue,c.andelsPaymentRatioMinimum=e.andelsPaymentRatioMinimum,null===e.collateralType||""===e.collateralType||"undefined"===e.collateralType?c.collateralType=c.collateralType||"Helaarsbolig":c.collateralType=c.collateralType||e.collateralType},c.init=function(e,t,n,i,a,r,o,s,l){d.apiEndpoint=e,c.mortgageLoanTenureLength=n,c.bankLoanTenureLength=a,c.housingCooperativeLoanTenureLength=r,c.mortgageLoanInterestOnlyLength=i,c.productType=s.id;var u=[];angular.forEach(l,function(e,t){u.push(e.id)}),c.callbackProductTypes=u,c.isShown=s.id,d.setInitLoans(s,l),c.ltvSettings=o,d.extractParameters(t)},c.initializeEventNames=function(){c.events={extend:"calculator extended form",simple:"calculator simple form",calculate:"calculate loan",tabChange:"calculator loantype changed",sendToSelf:"send-calculation-to-self"}},c.initializeSuppEventNames=function(){c.events={extend:"supp calculator extended form",simple:"supp calculator simple form",calculate:"supp calculate loan",tabChange:"supp calculator loantype changed",sendToSelf:"send-calculation-to-self"}},c.triggerTrackEvent=function(e){try{switch(e){case"calculator extended form":case"supp calculator extended form":break;case"calculator simple form":case"supp calculator simple form":break;case"calculate loan":t="fritidsbolig"==d.getPropertyType(c.collateralType)?{event:"track-event.beregn_fritidsbolig",eventCategory:"beregn",eventAction:"fritidsbolig",eventLabel:"submit",eventValue:"0",eventNoninteraction:!0,userType:"privat",propertyType:d.getPropertyType(c.collateralType),propertyPrice:c.collateralValue}:{event:"track-event",eventCategory:"beregnere",eventAction:"hvad koster lån til ny bolig?",eventLabel:"submit",eventValue:"0",eventNoninteraction:!0,userType:"privat",propertyType:d.getPropertyType(c.collateralType),propertyPrice:c.collateralValue},(0,i.registerNykreditCalculatorEvent)(t);break;case"supp calculate loan":(0,i.registerNykreditCalculator)("SupplementaryLoanCalculator");break;case"calculator loantype changed":case"supp calculator loantype changed":break;case"send-calculation-to-self":var t={event:"track-event",eventCategory:"beregnere",eventAction:"Send beregning til dig selv",eventLabel:"submit",eventValue:"0",eventNoninteraction:!0,userType:"privat",propertyType:d.getPropertyType(c.collateralType),propertyPrice:c.collateralValue};(0,i.registerNykreditCalculatorEvent)(t)}}catch(e){}},d.getPropertyType=function(e){switch(e){case"Helaarsbolig":return"helårsbolig";case"Fritidshus":return"fritidsbolig";case"Andel":return"andelsbolig"}return""}}a.$inject=["$scope","$location","$interpolate","serviceBase"],n.default=a},{"../gtmCalculatorService":170}],170:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.registerNykreditCalculator=function(e){(0,i.registerGtmDataLayer)({event:"calculation",elementName:e})},n.registerNykreditCalculatorEvent=function(e){(0,i.registerGtmDataLayer)(e)};var i=e("../gtmDataLayerService")},{"../gtmDataLayerService":245}],70:[function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0}),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(a,[{key:"search",value:function(e){e=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.href);return null==e?null:decodeURI(e[1])||0}}]),n.default=a},{}],68:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var r=e("mithril"),o=(r=r)&&r.__esModule?r:{default:r},s=(e("../components/util/highchartsTheme"),e("../components/util/numberFormat"));function l(){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function")}i(l,[{key:"view",value:function(e){return 0<e.attrs.startYear?this.getResultViewWithInterest(e):this.getResultViewNoInterest(e)}},{key:"getMonthlyPaymentNetAfterXYears",value:function(e){return e.attrs.noInterestAfterXYears.KeyIndicators.PaymentNetMonthly.value}},{key:"getMonthlyPaymentNet",value:function(e){return(0<e.attrs.startYear?e.attrs.withInterestWholePeriod:e.attrs.noInterestAfterXYears).KeyIndicators.PaymentNetMonthly.value}},{key:"getResultViewWithInterest",value:function(e){var t=e.attrs.labelService,n=t.get("resultBoxXYearPaymentTitleLabel").replace(new RegExp("{numberOfYears}","g"),e.attrs.noInterestAfterXYears.FirstYearForNoInterest);return(0,o.default)("div",null,(0,o.default)("p",{class:"tk-resultbox__result--details__label"},(0,o.default)("b",null,t.get("resultBoxFirstPaymentTitleLabel"))),(0,o.default)("p",null,o.default.trust(t.get("resultBoxFirstPaymentLabel"))),(0,o.default)("div",{class:"tk-resultbox__result--details__value"},(0,s.applyThousandSeperator)(Math.round(this.getMonthlyPaymentNet(e)))," ",t.get("currencyLabel")),(0,o.default)("p",{class:"tk-resultbox__result--details__label"},(0,o.default)("b",null,o.default.trust(n))),(0,o.default)("p",null,o.default.trust(t.get("resultBoxXYearPaymentLabel"))),(0,o.default)("div",{class:"tk-resultbox__result--details__value"},(0,s.applyThousandSeperator)(Math.round(this.getMonthlyPaymentNetAfterXYears(e)))," ",t.get("currencyStarLabel")))}},{key:"getResultViewNoInterest",value:function(e){var t=e.attrs.labelService;return(0,o.default)("div",null,(0,o.default)("p",{class:"tk-resultbox__result--details__label"},(0,o.default)("b",null,t.get("resultBoxFirstPaymentTitleLabel"))),e.attrs.noInterestAfterXYears.KeyIndicators.PaymentGrossMonthly.value==e.attrs.withInterestWholePeriod.KeyIndicators.PaymentGrossMonthly.value?(0,o.default)("p",null,o.default.trust(t.get("resultBoxFirstPaymentLabel"))):(0,o.default)("p",null,o.default.trust(t.get("resultBoxXYearPaymentLabel"))),(0,o.default)("div",{class:"tk-resultbox__result--details__value"},(0,s.applyThousandSeperator)(Math.round(this.getMonthlyPaymentNet(e)))," ",t.get("currencyLabel")))}}]),n.default=l},{"../components/util/highchartsTheme":15,"../components/util/numberFormat":17,mithril:410}],71:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=e("../components/util/numberFormat");function o(e){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.form=e}i(o,[{key:"IsInputValid",value:function(){var e=(0,r.removeNonDigitChars)(this.form.collateralValue()),t=(0,r.removeNonDigitChars)(this.form.loanAmount());return!!(this.form.isValid()&&t<=e)}}]),n.default=o},{"../components/util/numberFormat":17}],62:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=e("mithril"),o=(r=r)&&r.__esModule?r:{default:r},s=e("../components/util/numberFormat"),l=e("../components/util/googleAnalyticsTracking"),u=e("../components/util/tracking");i(c,[{key:"CalculateLTV1",value:function(){this.collateralValue=(0,s.removeNonDigitChars)(this.form.collateralValue()),this.loanAmount=(0,s.removeNonDigitChars)(this.form.loanAmount());var e=1e3*Math.ceil((this.loanAmount+this.model.Tax+this.model.FixedCharge)*(1+this.model.VariableCharge+this.model.Commission)/1e3),e=Math.ceil(e/this.collateralValue*100),t={collateralValue:this.collateralValue,loanAmount:this.loanAmount};return this.RegisterDataLayer(t),e}},{key:"RegisterDataLayer",value:function(e){var t=window.location.origin+window.location.pathname+"|"+e.collateralValue+"|"+e.loanAmount,n="submit â 30 aars beregner";(0,l.gaPixel)("beregner",n,window.location.hostname,"gaFlexLoanSubmit"),e&&this.model.calcInitiator==u.trackingInitiatorEvent.buttonPressed&&"undefined"!=typeof dataLayer&&(0,u.registerTotalkredit)("beregner",n,t)}},{key:"Calculate60ProcentOfHouseValue",value:function(){this.setProcentOfHouseValue(.6*this.collateralValue)}},{key:"enableFormInputWhenCalculating",value:function(){this.enableSelect(!1),this.enableRange(!1)}},{key:"disableFormInputWhenCalculating",value:function(){this.enableSelect(!0),this.enableRange(!0)}},{key:"CalculateGraf",value:function(t,n,i){var a=this;i=null==i||i,this.disableFormInputWhenCalculating(),this.collateralValue=(0,s.removeNonDigitChars)(this.form.collateralValue()),this.loanAmount=(0,s.removeNonDigitChars)(this.form.loanAmount()),null!=t&&0<=t.indexOf("Fastrente")?this.CalculateLTV2(t,0).then(function(e){1==e.success?(e=Math.ceil(e.result.WithInterestWholePeriod.FirstTermForNoInterest/4),n=Math.max(n,e),a.GetResults(t,n,i)):a.model.state="error"}):this.GetResults(t,n,i)}},{key:"GetResults",value:function(e,n,i){var a=this,e=this.CalculateLTV2(e,n);this.colData.col2={loading:!0},e.then(function(e){var t;1==e.success?(a.setNoInterestAfterXYears(e.result.NoInterestAfterXYears),i&&(t=Math.ceil(e.result.WithInterestWholePeriod.FirstTermForNoInterest/4),a.setStartYear(t)),a.setWithInterestWholePeriod(e.result.WithInterestWholePeriod),a.setLoanType(e.result.NoInterestAfterXYears.ProductType),a.rangeDisabled=!1,a.colData.col2={result:{result:e.result.NoInterestAfterXYears,success:!0}},a.setColData(a.colData),t=null!=e.result.NoInterestAfterXYears.FirstYearForNoInterest?e.result.NoInterestAfterXYears.FirstYearForNoInterest:0,a.form.tk_LoanLength(null!=n?n:t),a.model.state="grafCalcDone"):a.model.state="error",a.enableFormInputWhenCalculating()})}},{key:"CalculateLTV2",value:function(e,t){var n="",n=(""!=this.collateralValue&&(n+="?collateralValue="+this.collateralValue+"&"),""!=this.collateralValue&&(n+="loanAmount="+this.loanAmount+"&"),window.history.replaceState(null,null,n),null==t?0:t);return o.default.request({method:"GET",url:this.api,data:{BankLoanTenureLength:null,CollateralType:"Helaarsbolig",CollateralValue:this.collateralValue,DownPayment:0,LiabilitySum:null,LoanAmount:this.loanAmount,MortgageLoanInterestOnlyLength:0,MortgageLoanTenureLength:30,ProductType:null==e||"undefined"==e?"Fastrente":e,ScenarioType:this.model.scenarioType||0,StartInterestOnlyInYear:n}})}}]);r=c;
1function c(e,t,n){var i=this;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");this.api=e,this.model=t,this.form=n,null!=this.form&&null!=this.model&&(this.setNoInterestAfterXYears=function(e){return i.model.noInterestAfterXYears=e},this.setWithInterestWholePeriod=function(e){return i.model.withInterestWholePeriod=e},this.setProcentOfHouseValue=function(e){return i.model.procentOfHouseValue=e},this.setLoanType=function(e){return i.model.productType=e},this.setColData=function(e){return i.model.colData=e},this.enableSelect=function(e){return i.model.selectDisabled=e},this.enableRange=function(e){return i.model.rangeDisabled=e},this.setStartYear=function(e){return i.model.setStartYear=e}),this.colData={col1:{},col2:{}}}n.default=r},{"../components/util/googleAnalyticsTracking":14,"../components/util/numberFormat":17,"../components/util/tracking":19,mithril:410}],55:[function(e,t,n){"use strict";Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError("predicate must be a function");for(var i=arguments[1],a=0;a<n;){var r=t[a];if(e.call(i,r,a,t))return r;a++}},configurable:!0,writable:!0})},{}],42:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{view:function(){var t,n,e=l.default.state.output.BbrBasedOutput.BbrProposals,i=l.default.state.output.EnergyMarkBasedOutput.EnergyMarkProposals.filter(function(e){return!0===e.IsChosen}),e=e.filter(function(e){return!0===e.IsChosen}),a=l.default.state.labels,r=l.default.state.links;return(0,o.default)("div",{class:"tk-energiberegner__scroll-to-get-started-js tk-energiberegner__loading-wrapper"+(l.default.state.resultIsVisible?"":"--remove-padding")},(0,o.default)("div",{class:"tk-energiberegner__spinner"+(l.default.state.spinnerIsActive?"":"--hidden")},(0,o.default)(u.default,null)),(0,o.default)("section",{id:"hvadgoerandrenu",class:"tk-energiberegner__get-started tk-energiberegner__get-started"+(l.default.state.resultIsVisible&&(!l.default.state.output.IsWithEnergyMark&&0<e.length||l.default.state.output.IsWithEnergyMark&&0<i.length)?"":"--hidden")},(0,o.default)("div",{class:"tk-energiberegner__get-started__spacer"},(0,o.default)("h2",{class:"tk-typography--title-lg tk-beregner__title__energiberegner tk-beregner__title__energiberegner--small-margin"},(0,s.default)("GetstartedHeadline",a)),(0,o.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text"},(0,s.default)("GetstartedIntrotext",a))),(0,o.default)("section",{class:"tk-energiberegner__get-started__card-container"},(t=a,[{title:"GetstartedCraftsmanTitle",label:"GetStartedLinkingButton",bodytext:"GetstartedCraftsmanText",type:"link",linkUrl:(n=r).GetStartedIconCraftsmanLinkUrl,icon:t.GetStartedIconCraftsmanPath,backFilled:!0},{title:"GetstartedAskFriendTitle",label:"GetstartedSendMailButton",bodytext:"GetstartedAskFriendText",type:"link",linkUrl:n.GetStartedIconAskFriendLinkUrl,icon:t.GetStartedIconAskFriendPath},{title:"GetStartedCopyTitle",bodytext:"GetStartedCopyDescription",type:"popup",linkUrl:n.GetStartedIconShareLinkLinkUrl,icon:t.GetStartedIconShareLinkPath}].map(function(e){return(0,o.default)(c.default,{carddata:e,labels:t,links:n})})))))}}};var o=i(e("mithril")),s=i(e("../../methods/LabelController")),l=i(e("../../store/EnergyCalculatorStore")),u=i(e("../../../components/spinner/ts-spinner")),c=(i(e("../modal/energiberegner-modal-link")),i(e("../CalculatorGetStartedCard/CalculatorGetStartedCard.mithril")));function i(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/spinner/ts-spinner":10,"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,"../CalculatorGetStartedCard/CalculatorGetStartedCard.mithril":41,"../modal/energiberegner-modal-link":44,mithril:410}],41:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){function i(e,t,n){var i=(0,s.default)(l.default,{data:e}),a=void 0,r="tk-button tk-button--primary-fixed-width tk-energiberegner__get-started__card__button";switch(e.type){case"sendmail":var o="mailto:?subject=Min energiberegning&body=Se min energiberegning her: "+(0,
1c.default)(!0),a=(0,s.default)("a",{onclick:function(){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - energiberegner",eventLabel:"send mail med beregning",eventValue:0,eventNoninteraction:!0})},href:o,class:r},(0,u.default)("GetstartedSendMailButton",t));break;case"popup":a=(0,s.default)("div",null,(0,s.default)("button",{onclick:function(){return i.state.open()},class:r},(0,u.default)("GetstartedBookMeetingButton",t)),i);break;case"link":a=(0,s.default)("div",null,(0,s.default)("a",{class:r,href:e.linkUrl,target:"_blank"},(0,u.default)(e.label,t)),i)}return a}return{view:function(e){var t=e.attrs.carddata,n=e.attrs.labels;e.attrs.links;if(t)return(0,s.default)("article",{class:"tk-energiberegner__get-started__card"},t.backFilled&&(0,s.default)("div",{class:"tk-energiberegner__get-started__card__back-filler"}),(0,s.default)("div",{class:"sendmail"===t.type?"tk-energiberegner__get-started__card__spacer":""},(0,s.default)("div",{class:"tk-energiberegner__get-started__card__content-wrapper"},(0,s.default)("div",{class:"tk-energiberegner__get-started__card__title-container"},(0,s.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--large"},s.default.trust(t.icon)),(0,s.default)("h3",{class:"tk-energiberegner__get-started__card__title"},(0,u.default)(t.title,n))),(0,s.default)("div",{class:"tk-energiberegner__get-started__expand-text tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text tk-energiberegner__get-started__card__body-text tk-energiberegner-js--body-text"},(0,u.default)(t.bodytext,n)),(0,s.default)("div",{class:"tk-energiberegner__get-started__card__linear-gradient"}))),i(t,n))}}};var s=i(e("mithril")),l=i(e("../modal/energiberegner-modal-link")),u=i(e("../../methods/LabelController")),c=i(e("../../methods/composeLinkurl"));function i(e){return e&&e.__esModule?e:{default:e}}},{"../../methods/LabelController":49,"../../methods/composeLinkurl":50,"../modal/energiberegner-modal-link":44,mithril:410}],44:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=u(e("mithril")),o=u(e("../../store/EnergyCalculatorStore")),s=u(e("../../methods/LabelController")),l=(u(e("../../methods/imagePathController")),u(e("../../methods/composeLinkurl")));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function")}i(c,[{key:"oninit",value:function(){this.modalIsOpen=!1,this.open=function(){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - energiberegner",eventLabel:"kopier link til beregning",eventValue:0,eventNoninteraction:!0}),this.modalIsOpen=!0},this.close=function(){this.modalIsOpen=!1}}},{key:"copyText",value:function(){var e=document.getElementById("link-clip-field");e.select(),e.setSelectionRange(0,99999),document.execCommand("copy")}},{key:"view",value:function(e){var t=this,n=o.default.state.labels;if(e.attrs.data)return(0,r.default)("div",{className:"tk-modal "+(!0===e.state.modalIsOpen?"tk-modal--is-active":"")},(0,r.default)("div",{class:"tk-modal__backdrop tk-energiberegner__modal__backdrop",onclick:function(){e.state.close()}}),(0,r.default)("div",{class:"tk-energiberegner__modal__content"},(0,r.default)("div",{class:"tk-energiberegner__modal__close",onclick:function(){e.state.close()}},(0,r.default)("svg",{viewBox:"0 0 48 48",width:"100%",height:"100%"},(0,r.default)("path",{stroke:"#696057","stroke-width":"3px",d:"M9.9 9.9l28.3 28.3m-.1-28.3L9.9 38.1"}))),(0,r.default)("div",{class:"tk-energiberegner__modal__content__inner"},(0,r.default)("h2",{class:"tk-typography--title-lg tk-beregner__title tk-energiberegner__modal__title"},(0,s.default)("GetStartedCopyModalTitle",n)),(0,r.default)("div",{class:"tk-modal__text-container tk-energiberegner__modal__text-container"}
1,(0,r.default)("textarea",{readonly:!0,id:"link-clip-field",value:(0,l.default)(),class:"tk-energiberegner__modal__content-text tk-energiberegner__modal__link-text-area"},(0,l.default)())),(0,r.default)("button",{onclick:function(){return t.copyText()},class:"tk-button tk-energiberegner__modal__link-button"},(0,s.default)("GetStartedCopyModalButtonLabel",n)))))}}]),n.default=c},{"../../methods/LabelController":49,"../../methods/composeLinkurl":50,"../../methods/imagePathController":54,"../../store/EnergyCalculatorStore":58,mithril:410}],50:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var t,n,i=a.default.state.input.CalculationLink,i=(n="",(i=i)&&(t=-1<i.indexOf("?")?i.indexOf("?"):0,n=i.substring(t)),e?encodeURIComponent(n):n);return document.location.origin+document.location.pathname+i};var n=e("../store/EnergyCalculatorStore"),a=(e=n)&&e.__esModule?e:{default:e}},{"../store/EnergyCalculatorStore":58}],26:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){function p(e){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - energiberegner",eventLabel:"info læs mere",eventValue:0,eventNoninteraction:!0}),_.default.actions.openModalPopup(e)}var e=document.body,t={type:"slider",rewind:!1,perView:4,gap:40,autoplay:!1,breakpoints:{1400:{perView:3},1e3:{perView:2}}},m={visible:!1,displayOverlay:function(){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - energiberegner",eventLabel:"skift valgte forslag",eventValue:0,eventNoninteraction:!0}),m.visible=!0,e.classList.add("tk-energiberegner__no-scroll")},closeOverlay:function(){m.visible=!1,_.default.mutations.setEditedOutputData(_.default.state.output),e.classList.remove("tk-energiberegner__no-scroll")}};return{propsBBR:_.default.state.output.BbrBasedOutput.BbrProposals,onupdate:function(){document.querySelector(".tk-energiberegner__suggestion__container--js")&&new i.default(".glide",t).mount()},view:function(){var n,i,e=_.default.state.output.BbrBasedOutput.BbrProposals,t=_.default.state.output.EnergyMarkBasedOutput.EnergyMarkProposals,a=t.filter(function(e){return!0===e.IsChosen}),r=e.filter(function(e){return!0===e.IsChosen}),o=_.default.state.output.EnergyMarkBasedOutput,s=_.default.state.output.BbrBasedOutput,l=_.default.state.output.IsWithEnergyMark,u=_.default.state.labels,c=_.default.state.output.ShowEnergyOffer&&(0<=["C","D","E","F","G"].indexOf(_.default.state.input.EmoData.EnergyLabelClassification)||!_.default.state.output.IsWithEnergyMark&&_.default.state.input.AboutHouseInput.BuildYear<2e3),d={title:(0,v.default)("OilGrantPopupHeadline",u),text:(0,v.default)("OilGrantPopupText",u),type:"1"},f={title:(0,v.default)("GasGrantPopupHeadline",u),text:(0,v.default)("GasGrantPopupText",u),type:"1"},h={title:(0,v.default)("EnergyOfferPopupHeadline",u),text:(0,v.default)("EnergyOfferPopupText",u),type:"1"};return(0,g.default)("div",{class:"tk-energiberegner__scroll-to-suggestion-js tk-energiberegner__loading-wrapper"+(_.default.state.resultIsVisible?"":"--remove-padding")},(0,g.default)("div",{class:"tk-energiberegner__spinner"+(_.default.state.spinnerIsActive?"":"--hidden")},(0,g.default)(y.default,null)),(0,g.default)("section",{id:"energiforbedringertildinbolig",class:"tk-energiberegner__suggestion tk-energiberegner__suggestion"+(_.default.state.resultIsVisible?"":"--hidden")},(0,g.default)("div",{class:"tk-energiberegner__suggestion__spacer"},(0,g.default)("h2",{class:"tk-typography--title-lg tk-beregner__title__energiberegner tk-beregner__title__energiberegner--small-margin"},(0,v.default)("ProposalsHeadline",u)),(0,g.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text tk-energiberegner__body-text--subheading-text--desktop"},(0,v.default)("ProposalsSubHeadline",u)),(0,g.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text tk-energiberegner__body-text--subheading-text--mobile"},(0,v.default)("ProposalsSubHeadlineMobile",u)),(0,g.default)("div",{class:"tk-energiberegner__suggestion__button-container"},(0,g.default)("button",{onclick:function(){return m.displayOverlay()},class:"tk-button tk-button--primary-border tk-energiberegner__button"},(0,v.default)("ChangeSelectedProposalsButton",u)))),l?0<a.length?(0,g.default)("section",{class:"tk-energiberegner__suggestion__container tk-energiberegner__suggestion__container"+(4<a.length?"--glide":"")},(0,x.default)(e,t,a,r,u,l),(i=u,t.map(function(e){var t=(0,O.default)(e);if(e.IsShown&&e.IsChosen)return(0,g.default)(S.default,{card:e,labels:i,modalContent:t})}))):(0,g.default)("section",{class:"tk-energiberegner--no-proposals-section"},(0,g.default)("h2",{class:"tk-typography--title-md tk-energiberegner--no-proposalstitle tk-energiberegner--center-text"},(0,v.default)("NoEnergyProposalsTitle",u)),(0,g.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner--no-proposalstext tk-energiberegner--center-text"},(0,v.default)("NoEnergyProposalsText",u))):0<r.length?(0,g.default)("section",{class:"tk-energiberegner__suggestion__container tk-energiberegner__suggestion__container"+(4<r.length?"--glide":"")},(0,x.default)(e,t,a,r,u,l),(n=u,e.map(function(e){var t={title:e.Type,image:e.ModalImagePath,linkUrl:(0,v.default)("ProposalModalReferralLink",n),linkText:(0,v.default)("ProposalModalReferralLinkText",n),text:e.ModalImageText};if(e.IsShown&&e.IsChosen)return(0,g.default)(w.default,{card:e,labels:n,modalContent:t})}))):(0,g.default)("section",{class:"tk-energiberegner--no-proposals-section"},(0,g.default)("h2",{class:"tk-typography--title-md tk-energiberegner--no-proposalstitle tk-energiberegner--center-text"},(0,v.default)("NoBbrProposalsTitle",u)),(0,g.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner--no-proposalstext tk-energiberegner--center-text"},(0,v.default)("NoBbrProposalsText",u))),(0,g.default)("div",{class:"tk-energiberegner__suggestion__result-container"+(!_.default.state.output.IsWithEnergyMark&&0<r.length||_.default.state.output.IsWithEnergyMark&&0<a.length?"":"--hidden")},_.default.state.output.ShowOilGrant&&"Olie"===_.default.state.input.HeatingInput.TypeOfHeating&&!c?(0,g.default)("section",{class:"tk-energiberegner__suggestion__oil-grant"},(0,g.default)("h3",{class:"tk-energiberegner__suggestion__result-title-oil-grant"},(0,v.default)("OilGrantBoxHeadline",u)),(0,g.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text-oil-grant"},g.default.trust((0,v.default)("OilGrantBoxText",u))),(0,g.default)("button",{onclick:function(){return p(d)},class:"tk-button tk-button--link tk-energiberegner__suggestion__oil-link"}
1,(0,v.default)("ReadMoreLabel",u))):_.default.state.output.ShowGasGrant&&"Naturgas"===_.default.state.input.HeatingInput.TypeOfHeating&&!c?(0,g.default)("section",{class:"tk-energiberegner__suggestion__oil-grant"},(0,g.default)("h3",{class:"tk-energiberegner__suggestion__result-title-oil-grant"},(0,v.default)("GasGrantBoxHeadline",u)),(0,g.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text-oil-grant"},g.default.trust((0,v.default)("GasGrantBoxText",u))),(0,g.default)("button",{onclick:function(){return p(f)},class:"tk-button tk-button--link tk-energiberegner__suggestion__oil-link"},(0,v.default)("ReadMoreLabel",u))):c?(0,g.default)("section",{class:"tk-energiberegner__suggestion__energyOffer"},(0,g.default)("h3",{class:"tk-energiberegner__suggestion__result-title-energyOffer"},(0,v.default)("EnergyOfferBoxHeadline",u)),(0,g.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text-energyOffer"},g.default.trust((0,v.default)("EnergyOfferBoxText",u))),(0,g.default)("button",{onclick:function(){return p(h)},class:"tk-button tk-button--link tk-energiberegner__suggestion__energyOffer-link"},(0,v.default)("ReadMoreLabel",u))):"",(0,g.default)("section",{class:"tk-energiberegner__suggestion__result"},(0,g.default)("h3",{class:"tk-energiberegner__suggestion__result-title"},(0,v.default)("ProposalTotalHeadline",u)),(0,C.default)(l,o,s),(0,T.default)(l,o,s),(0,E.default)(),(0,A.default)(l,o,s)),(0,g.default)("div",{class:"tk-energiberegner__suggestion__bottom-button-container"},(0,g.default)("button",{class:"tk-button tk-button--primary-border tk-energiberegner__button",onclick:function(){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - energiberegner",eventLabel:"hvad gør andre nu",eventValue:0,eventNoninteraction:!0}),document.querySelector(".tk-energiberegner__scroll-to-get-started-js").scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}},(0,v.default)("GetStartedButtonLabel",u)))),(0,g.default)(b.default,{suggestionOverlay:m})),(0,g.default)(k.default,{data:_.default.state.modalPopupData}))}}};var g=a(e("mithril")),v=a(e("../../methods/LabelController")),_=a(e("../../store/EnergyCalculatorStore")),y=a(e("../../../components/spinner/ts-spinner")),b=a(e("./CalculatorSuggestionEditOverlay.mithril")),k=a(e("../modal/energiberegner-modal")),i=a(e("../../glide/glide.esm")),w=a(e("./CalculatorSuggestion__RenderCardBBRMobile.mithril")),S=a(e("./CalculatorSuggestion__RenderCardEnergyMobile.mithril")),x=a(e("./CalculatorSuggestion__RenderCardCarousel.mithril")),C=a(e("./CalculatorSuggestion__ResultWrapper.mithrilDesktop")),T=a(e("./CalculatorSuggestion__ResultWrapper.mithrilMobile")),E=a(e("./CalculatorSuggestion__ResultBottom.mithril")),A=a(e("./CalculatorSuggestion__CO2Savings.mithril")),O=a(e("../../methods/getEnergyCardModalContent"));function a(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/spinner/ts-spinner":10,"../../glide/glide.esm":48,"../../methods/LabelController":49,"../../methods/getEnergyCardModalContent":53,"../../store/EnergyCalculatorStore":58,"../modal/energiberegner-modal":45,"./CalculatorSuggestionEditOverlay.mithril":27,"./CalculatorSuggestion__CO2Savings.mithril":28,"./CalculatorSuggestion__RenderCardBBRMobile.mithril":29,"./CalculatorSuggestion__RenderCardCarousel.mithril":30,"./CalculatorSuggestion__RenderCardEnergyMobile.mithril":31,"./CalculatorSuggestion__ResultBottom.mithril":37,"./CalculatorSuggestion__ResultWrapper.mithrilDesktop":38,"./CalculatorSuggestion__ResultWrapper.mithrilMobile":39,mithril:410}],48:[function($,H,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perTouch:!1,touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",throttle:10,direction:"ltr",peek:0,breakpoints:{},classes:{direction:{ltr:"glide--ltr",rtl:"glide--rtl"},slider:"glide--slider",carousel:"glide--carousel",swipeable:"glide--swipeable",dragging:"glide--dragging",cloneSlide:"glide__slide--clone",activeNav:"glide__bullet--active",activeSlide:"glide__slide--active",disabledArrow:"glide__arrow--disabled"}};function s(e){console.error("[Glide warn]: "+e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);return void 0!==i?"value"in i?i.value:void 0!==(i=i.get)?i.call(n):void 0:null!==(i=Object.getPrototypeOf(e))?l(i,t,n):void 0}var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};function h(e){return parseInt(e)}function c(e){return"string"==typeof e}function d(e){var t=void 0===e?"undefined":a(e);return"function"===t||"object"===t&&e}function f(e){return"function"==typeof e}function p(e){return void 0===e}function m(e){return e.constructor===Array}function g(e,t,n){Object.defineProperty(e,t,n)}function v(e,t){var n=u({},e,t);return t.hasOwnProperty("classes")&&(n.classes=u({},e.classes,t.classes),t.classes.hasOwnProperty("direction"))&&(n.classes.direction=u({},e.classes.direction,t.classes.direction)),t.hasOwnProperty("breakpoints")&&(n.breakpoints=u({},e.breakpoints,t.breakpoints)),n}r(t,[{key:"on",value:function(e,t){if(m(e))for(var n=0;n<e.length;n++)this.on(e[n],t);this.hop.call(this.events,e)||(this.events[e]=[]);var i=this.events[e].push(t)-1;return{remove:function(){delete this.events[e][i]}}}},{key:"emit",value:function(e,t){if(m(e))for(var n=0;n<e.length;
1n++)this.emit(e[n],t);this.hop.call(this.events,e)&&this.events[e].forEach(function(e){e(t||{})})}}]);var _=t;function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};i(this,t),this.events=e,this.hop=e.hasOwnProperty}r(y,[{key:"mount",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),d(e)?this._c=function(e,t,n){var i,a,r={};for(i in t)f(t[i])?r[i]=t[i](e,r,n):s("Extension must be a function");for(a in r)f(r[a].mount)&&r[a].mount();return r}(this,e,this._e):s("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return m(e)?this._t=e:s("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.settings=v(this.settings,e),e.hasOwnProperty("startAt")&&(this.index=e.startAt),this._e.emit("update"),this}},{key:"go",value:function(e){return this._c.Run.make(e),this}},{key:"move",value:function(e){return this._c.Transition.disable(),this._c.Move.make(e),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return e&&(this.settings.autoplay=e),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(e,t){return this._e.on(e,t),this}},{key:"isType",value:function(e){return this.settings.type===e}},{key:"settings",get:function(){return this._o},set:function(e){d(e)?this._o=e:s("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(e){this._i=h(e)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(e){this._d=!!e}}]);var F=y;function y(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};i(this,y),this._c={},this._t=[],this._e=new _,this.disabled=!1,this.selector=e,this.settings=v(n,t),this.index=this.settings.startAt}function b(){return(new Date).getTime()}function k(n,i,a){function r(){c=!1===a.leading?0:b(),o=null,u=n.apply(s,l),o||(s=l=null)}function e(){var e=b(),t=(c||!1!==a.leading||(c=e),i-(e-c));return s=this,l=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),c=e,u=n.apply(s,l),o||(s=l=null)):o||!1===a.trailing||(o=setTimeout(r,t)),u}var o=void 0,s=void 0,l=void 0,u=void 0,c=0;a=a||{};return e.cancel=function(){clearTimeout(o),c=0,o=s=l=null},e}var w={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function S(e){if(e&&e.parentNode){for(var t=e.parentNode.firstChild,n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}return[]}function x(e){return!!(e&&e instanceof window.HTMLElement)}var C='[data-glide-el="track"]';r(E,[{key:"on",value:function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];c(e)&&(e=[e]);for(var a=0;a<e.length;a++)this.listeners[e[a]]=n,t.addEventListener(e[a],this.listeners[e[a]],i)}},{key:"off",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];c(e)&&(e=[e]);for(var i=0;i<e.length;i++)t.removeEventListener(e[i],this.listeners[e[i]],n)}},{key:"destroy",value:function(){delete this.listeners}}]);var T=E;function E(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};i(this,E),this.listeners=e}var N=["ltr","rtl"],j={">":"<","<":">","=":"="};function V(e,t){return{modify:function(e){return t.Direction.is("rtl")?-e:e}}}function B(i,a,r){var o=[function(t,n){return{modify:function(e){return e+n.Gaps.value*t.index}}},function(e,t){return{modify:function(e){return e+t.Clones.grow/2}}},function(n,i){return{modify:function(e){var t;return 0<=n.settings.focusAt?d(t=i.Peek.value)?e-t.before:e-t:e}}},function(r,o){return{modify:function(e){var t=o.Gaps.value,n=o.Sizes.width,i=r.settings.focusAt,a=o.Sizes.slideWidth;return"center"===i?e-(n/2-a/2):e-a*i-t*i}}}].concat(i._t,[V]);return{mutate:function(e){for(var t=0;t<o.length;t++){var n=o[t];f(n)&&f(n().modify)?e=n(i,a,r).modify(e):s("Transformer should be a function that returns an object with `modify()` method")}return e}}}var A=!1;try{var O=Object.defineProperty({},"passive",{get:function(){A=!0}});window.addEventListener("testPassive",null,O),window.removeEventListener("testPassive",null,O)}catch(e){}var M=A,L=["touchstart","mousedown"],I=["touchmove","mousemove"],D=["touchend","touchcancel","mouseup","mouseleave"],P=["mousedown","mousemove","mouseup","mouseleave"];function R(e){var n;return d(e)?(n=e,Object.keys(n).sort().reduce(function(e,t){return e[t]=n[t],e[t],e},{})):(s("Breakpoints option must be an object"),{})}var U={Html:function(t,e){var n={mount:function(){this.root=t.selector,this.track=this.root.querySelector(C),this.slides=Array.prototype.slice.call(this.wrapper.children).filter(function(e){return!e.classList.contains(t.settings.classes.cloneSlide)})}};return g(n,"root",{get:function(){return n._r},set:function(e){x(e=c(e)?document.querySelector(e):e)?n._r=e:s("Root element must be a existing Html node")}}),g(n,"track",{get:function(){return n._t},set:function(e){x(e)?n._t=e:s("Could not find track element. Please use "+C+" attribute.")}}),g(n,"wrapper",{get:function(){return n.track.children[0]}}),n},Translate:function(a,r,o){var s={set:function(e){e=B(a,r).mutate(e);r.Html.wrapper.style.transform="translate3d("+-1*e+"px, 0px, 0px)"},remove:function(){r.Html.wrapper.style.transform=""}};
1return o.on("move",function(e){var t=r.Gaps.value,n=r.Sizes.length,i=r.Sizes.slideWidth;return a.isType("carousel")&&r.Run.isOffset("<")?(r.Transition.after(function(){o.emit("translate.jump"),s.set(i*(n-1))}),s.set(-i-t*n)):a.isType("carousel")&&r.Run.isOffset(">")?(r.Transition.after(function(){o.emit("translate.jump"),s.set(0)}),s.set(i*n+t*n)):s.set(e.movement)}),o.on("destroy",function(){s.remove()}),s},Transition:function(n,t,e){var i=!1,a={compose:function(e){var t=n.settings;return i?e+" 0ms "+t.animationTimingFunc:e+" "+this.duration+"ms "+t.animationTimingFunc},set:function(){t.Html.wrapper.style.transition=this.compose(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"transform")},remove:function(){t.Html.wrapper.style.transition=""},after:function(e){setTimeout(function(){e()},this.duration)},enable:function(){i=!1,this.set()},disable:function(){i=!0,this.set()}};return g(a,"duration",{get:function(){var e=n.settings;return n.isType("slider")&&t.Run.offset?e.rewindDuration:e.animationDuration}}),e.on("move",function(){a.set()}),e.on(["build.before","resize","translate.jump"],function(){a.disable()}),e.on("run",function(){a.enable()}),e.on("destroy",function(){a.remove()}),a},Direction:function(e,t,n){var i={mount:function(){this.value=e.settings.direction},resolve:function(e){var t=e.slice(0,1);return this.is("rtl")?e.split(t).join(j[t]):e},is:function(e){return this.value===e},addClass:function(){t.Html.root.classList.add(e.settings.classes.direction[this.value])},removeClass:function(){t.Html.root.classList.remove(e.settings.classes.direction[this.value])}};return g(i,"value",{get:function(){return i._v},set:function(e){-1<N.indexOf(e)?i._v=e:s("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],function(){i.removeClass()}),n.on("update",function(){i.mount()}),n.on(["build.before","update"],function(){i.addClass()}),i},Peek:function(n,e,t){var i={mount:function(){this.value=n.settings.peek}};return g(i,"value",{get:function(){return i._v},set:function(e){d(e)?(e.before=h(e.before),e.after=h(e.after)):e=h(e),i._v=e}}),g(i,"reductor",{get:function(){var e=i.value,t=n.settings.perView;return d(e)?e.before/t+e.after/t:2*e/t}}),t.on(["resize","update"],function(){i.mount()}),i},Sizes:function(e,i,t){var n={setupSlides:function(){for(var e=this.slideWidth+"px",t=i.Html.slides,n=0;n<t.length;n++)t[n].style.width=e},setupWrapper:function(e){i.Html.wrapper.style.width=this.wrapperSize+"px"},remove:function(){for(var e=i.Html.slides,t=0;t<e.length;t++)e[t].style.width="";i.Html.wrapper.style.width=""}};return g(n,"length",{get:function(){return i.Html.slides.length}}),g(n,"width",{get:function(){return i.Html.root.offsetWidth}}),g(n,"wrapperSize",{get:function(){return n.slideWidth*n.length+i.Gaps.grow+i.Clones.grow}}),g(n,"slideWidth",{get:function(){return n.width/e.settings.perView-i.Peek.reductor-i.Gaps.reductor}}),t.on(["build.before","resize","update"],function(){n.setupSlides(),n.setupWrapper()}),t.on("destroy",function(){n.remove()}),n},Gaps:function(t,r,e){var n={apply:function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t].style,a=r.Direction.value;i[w[a][0]]=0!==t?this.value/2+"px":"",t!==e.length-1?i[w[a][1]]=this.value/2+"px":i[w[a][1]]=""}},remove:function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t].style;i.marginLeft="",i.marginRight=""}}};return g(n,"value",{get:function(){return h(t.settings.gap)}}),g(n,"grow",{get:function(){return n.value*(r.Sizes.length-1)}}),g(n,"reductor",{get:function(){var e=t.settings.perView;return n.value*(e-1)/e}}),e.on(["build.after","update"],k(function(){n.apply(r.Html.wrapper.children)},30)),e.on("destroy",function(){n.remove(r.Html.wrapper.children)}),n},Move:function(e,n,t){var i={mount:function(){this._o=0},make:function(){var e=this;this.offset=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t.emit("move",{movement:this.value}),n.Transition.after(function(){t.emit("move.after",{movement:e.value})})}};return g(i,"offset",{get:function(){return i._o},set:function(e){i._o=p(e)?0:h(e)}}),g(i,"translate",{get:function(){return n.Sizes.slideWidth*e.index}}),g(i,"value",{get:function(){var e=this.offset,t=this.translate;return n.Direction.is("rtl")?t+e:t-e}}),t.on(["build.before","run"],function(){i.make()}),i},Clones:function(f,h,e){var t={mount:function(){this.items=[],f.isType("carousel")&&(this.items=this.collect())},collect:function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=h.Html.slides,n=f.settings,i=n.perView,a=n.classes,n=i+ +!!f.settings.peek,r=t.slice(0,n),o=t.slice(-n),s=0;s<Math.max(1,Math.floor(i/t.length));s++){for(var l=0;l<r.length;l++){var u=r[l].cloneNode(!0);u.classList.add(a.cloneSlide),e.push(u)}for(var c=0;c<o.length;c++){var d=o[c].cloneNode(!0);d.classList.add(a.cloneSlide),e.unshift(d)}}return e},append:function(){for(var e=this.items,t=h.Html,n=t.wrapper,i=t.slides,t=Math.floor(e.length/2),a=e.slice(0,t).reverse(),r=e.slice(t,e.length),o=h.Sizes.slideWidth+"px",s=0;s<r.length;s++)n.appendChild(r[s]);for(var l=0;l<a.length;l++)n.insertBefore(a[l],i[0]);for(var u=0;u<e.length;u++)e[u].style.width=o},remove:function(){for(var e=this.items,t=0;t<e.length;t++)h.Html.wrapper.removeChild(e[t])}};
1return g(t,"grow",{get:function(){return(h.Sizes.slideWidth+h.Gaps.value)*t.items.length}}),e.on("update",function(){t.remove(),t.mount(),t.append()}),e.on("build.before",function(){f.isType("carousel")&&t.append()}),e.on("destroy",function(){t.remove()}),t},Resize:function(e,t,n){var i=new T,a={mount:function(){this.bind()},bind:function(){i.on("resize",window,k(function(){n.emit("resize")},e.settings.throttle))},unbind:function(){i.off("resize",window)}};return n.on("destroy",function(){a.unbind(),i.destroy()}),a},Build:function(n,i,e){var t={mount:function(){e.emit("build.before"),this.typeClass(),this.activeClass(),e.emit("build.after")},typeClass:function(){i.Html.root.classList.add(n.settings.classes[n.settings.type])},activeClass:function(){var t=n.settings.classes,e=i.Html.slides[n.index];e&&(e.classList.add(t.activeSlide),S(e).forEach(function(e){e.classList.remove(t.activeSlide)}))},removeClasses:function(){var t=n.settings.classes;i.Html.root.classList.remove(t[n.settings.type]),i.Html.slides.forEach(function(e){e.classList.remove(t.activeSlide)})}};return e.on(["destroy","update"],function(){t.removeClasses()}),e.on(["resize","update"],function(){t.mount()}),e.on("move.after",function(){t.activeClass()}),t},Run:function(r,n,i){var e={mount:function(){this._o=!1},make:function(e){var t=this;r.disabled||(r.disable(),this.move=e,i.emit("run.before",this.move),this.calculate(),i.emit("run",this.move),n.Transition.after(function(){t.isStart()&&i.emit("run.start",t.move),t.isEnd()&&i.emit("run.end",t.move),(t.isOffset("<")||t.isOffset(">"))&&(t._o=!1,i.emit("run.offset",t.move)),i.emit("run.after",t.move),r.enable()}))},calculate:function(){var e=this.move,t=this.length,n=e.steps,i=e.direction,a="number"==typeof h(n)&&0!==h(n);switch(i){case">":">"===n?r.index=t:this.isEnd()?r.isType("slider")&&!r.settings.rewind||(this._o=!0,r.index=0):a?r.index+=Math.min(t-r.index,-h(n)):r.index++;break;case"<":"<"===n?r.index=0:this.isStart()?r.isType("slider")&&!r.settings.rewind||(this._o=!0,r.index=t):a?r.index-=Math.min(r.index,h(n)):r.index--;break;case"=":r.index=n;break;default:s("Invalid direction pattern ["+i+n+"] has been used")}},isStart:function(){return 0===r.index},isEnd:function(){return r.index===this.length},isOffset:function(e){return this._o&&this.move.direction===e}};return g(e,"move",{get:function(){return this._m},set:function(e){var t=e.substr(1);this._m={direction:e.substr(0,1),steps:t?h(t)?h(t):t:0}}}),g(e,"length",{get:function(){var e=r.settings,t=n.Html.slides.length;return r.isType("slider")&&"center"!==e.focusAt&&e.bound?t-1-(h(e.perView)-1)+h(e.focusAt):t-1}}),g(e,"offset",{get:function(){return this._o}}),e},Swipe:function(s,l,u){var n=new T,c=0,d=0,f=0,t=!1,i=!!M&&{passive:!0},e={mount:function(){this.bindSwipeStart()},start:function(e){t||s.disabled||(this.disable(),e=this.touches(e),c=null,d=h(e.pageX),f=h(e.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),u.emit("swipe.start"))},move:function(e){if(!s.disabled){var t=s.settings,n=t.touchAngle,i=t.touchRatio,t=t.classes,a=this.touches(e),r=h(a.pageX)-d,a=h(a.pageY)-f,o=Math.abs(r<<2),a=Math.abs(a<<2),o=Math.sqrt(o+a),a=Math.sqrt(a);if(!(180*(c=Math.asin(a/o))/Math.PI<n))return!1;e.stopPropagation(),l.Move.make(r*parseFloat(i)),l.Html.root.classList.add(t.dragging),u.emit("swipe.move")}},end:function(e){var t,n,i,a;s.disabled||(t=s.settings,n=this.touches(e),e=this.threshold(e),n=n.pageX-d,i=180*c/Math.PI,a=Math.round(n/l.Sizes.slideWidth),this.enable(),e<n&&i<t.touchAngle?(t.perTouch&&(a=Math.min(a,h(t.perTouch))),l.Direction.is("rtl")&&(a=-a),l.Run.make(l.Direction.resolve("<"+a))):n<-e&&i<t.touchAngle?(t.perTouch&&(a=Math.max(a,-h(t.perTouch))),l.Direction.is("rtl")&&(a=-a),l.Run.make(l.Direction.resolve(">"+a))):l.Move.make(),l.Html.root.classList.remove(t.classes.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),u.emit("swipe.end"))},bindSwipeStart:function(){var t=this,e=s.settings;e.swipeThreshold&&n.on(L[0],l.Html.wrapper,function(e){t.start(e)},i),e.dragThreshold&&n.on(L[1],l.Html.wrapper,function(e){t.start(e)},i)},unbindSwipeStart:function(){n.off(L[0],l.Html.wrapper,i),n.off(L[1],l.Html.wrapper,i)},bindSwipeMove:function(){var t=this;n.on(I,l.Html.wrapper,k(function(e){t.move(e)},s.settings.throttle),i)},unbindSwipeMove:function(){n.off(I,l.Html.wrapper,i)},bindSwipeEnd:function(){var t=this;n.on(D,l.Html.wrapper,function(e){t.end(e)})},unbindSwipeEnd:function(){n.off(D,l.Html.wrapper)},touches:function(e){return-1<P.indexOf(e.type)?e:e.touches[0]||e.changedTouches[0]},threshold:function(e){var t=s.settings;return-1<P.indexOf(e.type)?t.dragThreshold:t.swipeThreshold},enable:function(){return t=!1,l.Transition.enable(),this},disable:function(){return t=!0,l.Transition.disable(),this}};return u.on("build.after",function(){l.Html.root.classList.add(s.settings.classes.swipeable)}),u.on("destroy",function(){e.unbindSwipeStart(),e.unbindSwipeMove(),e.unbindSwipeEnd(),n.destroy()}),e},Images:function(e,t,n){var i=new T,a={mount:function(){this.bind()},bind:function(){i.on("dragstart",t.Html.wrapper,this.dragstart)},unbind:function(){i.off("dragstart",t.Html.wrapper)},dragstart:function(e){e.preventDefault()}};return n.on("destroy",function(){a.unbind(),i.destroy()}),a},Anchors:function(e,t,n){var i=new T,a=!1,r=!1,o={mount:function(){this._a=t.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){i.on("click",t.Html.wrapper,this.click)},unbind:function(){i.off("click",t.Html.wrapper)},click:function(e){r&&(e.stopPropagation(),e.preventDefault())},detach:function(){if(r=!0,!a){for(var e=0;e<this.items.length;e++)this.items[e].draggable=!1,this.items[e].setAttribute("data-href",this.items[e].getAttribute("href")),this.items[e].removeAttribute("href");a=!0}return this},attach:function(){if(r=!1,a){for(var e=0;e<this.items.length;e++)this.items[e].draggable=!0,this.items[e].setAttribute("href",this.items[e].getAttribute("data-href"));a=!1}return this}};return g(o,"items",{get:function(){return o._a}}),n.on("swipe.move",function(){o.detach()}),n.on("swipe.end",function(){t.Transition.after(function(){o.attach()})}),n.on("destroy",function(){o.attach(),o.unbind(),i.destroy()}),o},Controls:function(n,t,e){var i=new T,a=!!M&&{passive:!0},r={mount:function(){this._n=t.Html.root.querySelectorAll('[data-glide-el="
1controls[nav]"]'),this._c=t.Html.root.querySelectorAll('[data-glide-el^="controls"]'),this.addBindings()},setActive:function(){for(var e=0;e<this._n.length;e++)this.addClass(this._n[e].children)},removeActive:function(){for(var e=0;e<this._n.length;e++)this.removeClass(this._n[e].children)},addClass:function(e){var t=n.settings,e=e[n.index];e&&(e.classList.add(t.classes.activeNav),S(e).forEach(function(e){e.classList.remove(t.classes.activeNav)}))},removeClass:function(e){e=e[n.index];e&&e.classList.remove(n.settings.classes.activeNav)},addBindings:function(){for(var e=0;e<this._c.length;e++)this.bind(this._c[e].children)},removeBindings:function(){for(var e=0;e<this._c.length;e++)this.unbind(this._c[e].children)},bind:function(e){for(var t=0;t<e.length;t++)i.on("click",e[t],this.click),i.on("touchstart",e[t],this.click,a)},unbind:function(e){for(var t=0;t<e.length;t++)i.off(["click","touchstart"],e[t])},click:function(e){e.preventDefault(),t.Run.make(t.Direction.resolve(e.currentTarget.getAttribute("data-glide-dir")))}};return g(r,"items",{get:function(){return r._c}}),e.on(["mount.after","move.after"],function(){r.setActive()}),e.on("destroy",function(){r.removeBindings(),r.removeActive(),i.destroy()}),r},Keyboard:function(e,t,n){var i=new T,a={mount:function(){e.settings.keyboard&&this.bind()},bind:function(){i.on("keyup",document,this.press)},unbind:function(){i.off("keyup",document)},press:function(e){39===e.keyCode&&t.Run.make(t.Direction.resolve(">")),37===e.keyCode&&t.Run.make(t.Direction.resolve("<"))}};return n.on(["destroy","update"],function(){a.unbind()}),n.on("update",function(){a.mount()}),n.on("destroy",function(){i.destroy()}),a},Autoplay:function(t,n,e){var i=new T,a={mount:function(){this.start(),t.settings.hoverpause&&this.bind()},start:function(){var e=this;t.settings.autoplay&&p(this._i)&&(this._i=setInterval(function(){e.stop(),n.Run.make(">"),e.start()},this.time))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var e=this;i.on("mouseover",n.Html.root,function(){e.stop()}),i.on("mouseout",n.Html.root,function(){e.start()})},unbind:function(){i.off(["mouseover","mouseout"],n.Html.root)}};return g(a,"time",{get:function(){var e=n.Html.slides[t.index].getAttribute("data-glide-autoplay");return h(e||t.settings.autoplay)}}),e.on(["destroy","update"],function(){a.unbind()}),e.on(["run.before","pause","destroy","swipe.start","update"],function(){a.stop()}),e.on(["run.after","play","swipe.end"],function(){a.start()}),e.on("update",function(){a.mount()}),e.on("destroy",function(){i.destroy()}),a},Breakpoints:function(e,t,n){var i=new T,a=e.settings,r=R(a.breakpoints),o=u({},a),s={match:function(e){if(void 0!==window.matchMedia)for(var t in e)if(e.hasOwnProperty(t)&&window.matchMedia("(max-width: "+t+"px)").matches)return e[t];return o}};return u(a,s.match(r)),i.on("resize",window,k(function(){e.settings=v(a,s.match(r))},e.settings.throttle)),n.on("update",function(){r=R(r),o=u({},a)}),n.on("destroy",function(){i.off("resize",window)}),s}},O=function(){var e=n,t=F;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function n(){i(this,n);var e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t),r(n,[{key:"mount",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return l(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"mount",this).call(this,u({},U,e))}}]),n}();e.default=O},{}],39:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){var i=o.default.state.labels;return(0,a.default)("section",{class:"tk-energiberegner__suggestion__result-wrapper-mobile"},(0,a.default)("div",{class:"tk-energiberegner__suggestion__result-item-mobile"},(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-item-mobile__text"}
1,a.default.trust((0,r.default)("YearlySavingsLabel",i))),(0,a.default)("div",null,(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--large"},e?(0,s.applyThousandSeperatorNullCheck)(t.YearlySavings):(0,s.applyThousandSeperatorNullCheck)(n.YearlySavings)," ",(0,r.default)("Currency",i)),(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--sub-label"},e?(0,s.applyThousandSeperatorNullCheck)(Math.floor(t.YearlySavings/12)):(0,s.applyThousandSeperatorNullCheck)(Math.floor(n.YearlySavings/12))," ",(0,r.default)("SavingsPrMonthLabel",i)))),(0,a.default)("div",{class:"tk-energiberegner__suggestion__result-item-mobile"},(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-item-mobile__text"},(0,r.default)("InvestmentForProposalLabel",i)),(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--large"},e?(0,s.applyThousandSeperatorNullCheck)(t.Investment):(0,s.applyThousandSeperatorNullCheck)(n.Investment)," ",(0,r.default)("Currency",i))),(0,a.default)("div",{class:"tk-energiberegner__suggestion__result-item-mobile"},(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-item-mobile__text"},a.default.trust((0,r.default)("YearlyCo2SavingsLabel",i))),e?t.Co2Calculation.ValidCo2Calculation?(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--large"},(Math.round(10*t.Co2Calculation.Co2InTonOut)/10).toString().replace(".",",")+" "+(0,r.default)("EmissionUnit",i)):(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text"+("Kan ikke beregnes"===t.Co2Calculation.Co2InTonOut?"--small":"--large")},t.Co2Calculation.Co2InTonOut):n.Co2Calculation.ValidCo2Calculation?(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--large"},(Math.round(10*n.Co2Calculation.Co2InTonOut)/10).toString().replace(".",",")+" "+(0,r.default)("EmissionUnit",i)):(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text"+("Kan ikke beregnes"===n.Co2Calculation.Co2InTonOut?"--small":"--large")},n.Co2Calculation.Co2InTonOut)))};var a=i(e("mithril")),r=i(e("../../methods/LabelController")),o=i(e("../../store/EnergyCalculatorStore")),s=e("../../../components/util/numberFormat");function i(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/util/numberFormat":17,"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,mithril:410}],38:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){var i=o.default.state.labels;return(0,a.default)("section",{class:"tk-energiberegner__suggestion__result-wrapper-desktop"},(0,a.default)("div",{class:"tk-energiberegner__suggestion__result-top"},(0,a.default)("article",{class:"tk-energiberegner__suggestion__result-top-item"},(0,a.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--large"},(0,a.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 42 52"},(0,a.default)("g",{fill:"none","fill-rule":"evenodd","stroke-linecap":"square","stroke-width":"2"},(0,a.default)("path",{d:"M27.7 12.667l11.47 24.025C42.338 43.328 37.5 51 30.145 51h-18.29C4.5 51-.338 43.328 2.83 36.692L14.3 12.667M32.667 1H9.333l5 11.667h13.334zM21 12.667v-5"})))),(0,a.default)("div",{class:"tk-energiberegner__suggestion__card-top-paragraphs"},(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--thin"},a.default.trust((0,r.default)("YearlySavingsLabel",i))),(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--large"},e?(0,s.applyThousandSeperatorNullCheck)(t.YearlySavings):(0,s.applyThousandSeperatorNullCheck)(n.YearlySavings)," ",(0,r.default)("Currency",i)),(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--sub-label"},e?(0,s.applyThousandSeperatorNullCheck)(Math.floor(t.YearlySavings/12)):(0,s.applyThousandSeperatorNullCheck)(Math.floor(n.YearlySavings/12))," ",(0,r.default)("SavingsPrMonthLabel",i
1)))),(0,a.default)("article",{class:"tk-energiberegner__suggestion__result-top-item"},(0,a.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--large"},(0,a.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 42 53"},(0,a.default)("g",{fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},(0,a.default)("path",{d:"M41 10c0 3.215-3.812 6.187-10 7.794-6.188 1.608-13.812 1.608-20 0C4.812 16.187 1 13.215 1 10s3.812-6.187 10-7.794c6.188-1.608 13.812-1.608 20 0C37.188 3.813 41 6.785 41 10z"}),(0,a.default)("path",{d:"M1 19v1.833C1 25.897 9.953 30 21 30s20-4.103 20-9.167V19M1 30v1.833C1 36.897 9.953 41 21 41s20-4.103 20-9.167V30M1 41v1.833C1 47.897 9.953 52 21 52s20-4.103 20-9.167V41"})))),(0,a.default)("div",{class:"tk-energiberegner__suggestion__card-top-paragraphs"},(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--thin"},(0,r.default)("InvestmentForProposalLabel",i)),(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--large"},e?(0,s.applyThousandSeperatorNullCheck)(t.Investment):(0,s.applyThousandSeperatorNullCheck)(n.Investment)," ",(0,r.default)("Currency",i)))),(0,a.default)("article",{class:"tk-energiberegner__suggestion__result-top-item"},(0,a.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--xlarge"},(0,a.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 42"},(0,a.default)("path",{fill:"none","fill-rule":"evenodd","stroke-linecap":"square","stroke-width":"2",d:"M48.455 41C54.255 41 59 36.2 59 30.333c0-5.866-4.745-10.666-10.545-10.666h-.132C47.663 9.267 39.095 1 28.682 1 18.136 1 9.436 9.4 8.909 20.067A10.548 10.548 0 0 0 1 30.333C1 36.2 5.745 41 11.545 41h36.91z"}))),(0,a.default)("div",{class:"tk-energiberegner__suggestion__card-top-paragraphs"},(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--thin"},a.default.trust((0,r.default)("YearlyCo2SavingsLabel",i))),e?t.Co2Calculation.ValidCo2Calculation?(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--large"},(Math.round(10*t.Co2Calculation.Co2InTonOut)/10).toString().replace(".",",")+" "+(0,r.default)("EmissionUnit",i)):(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text"+("Kan ikke beregnes"===t.Co2Calculation.Co2InTonOut?"--small":"--large")},t.Co2Calculation.Co2InTonOut):n.Co2Calculation.ValidCo2Calculation?(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text--large"},(Math.round(10*n.Co2Calculation.Co2InTonOut)/10).toString().replace(".",",")+" "+(0,r.default)("EmissionUnit",i)):(0,a.default)("p",{class:"tk-energiberegner__suggestion__result-text tk-energiberegner__suggestion__result-text"+("Kan ikke beregnes"===n.Co2Calculation.Co2InTonOut?"--small":"--large")},n.Co2Calculation.Co2InTonOut)))))};var a=i(e("mithril")),r=i(e("../../methods/LabelController")),o=i(e("../../store/EnergyCalculatorStore")),s=e("../../../components/util/numberFormat");function i(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/util/numberFormat":17,"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,mithril:410}],37:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=r.default.state.labels;return(0,i.default)("section",{class:"tk-energiberegner__suggestion__result-bottom"},(0,i.default)("div",{class:"tk-energiberegner__suggestion__result-bottom-wrapper"},(0,i.default)("div",{class:"tk-energiberegner__suggestion__result-labels"},(0,i.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--small"},(0,i.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 25"},(0,i.default)("g",{fill:"none","fill-rule":"evenodd"},(0,i.default)("path",{fill:"#FC8100",d:"M18.995 4.167L22 7.297 10.505 19.271 7.5 16.14z"}),(0,i.default)("path",{fill:"#FD4C05",d:"M2 10.44l3.02-3.148L10.5 13l-3.022 3.146z"})))),(0,i.default)("span",{class:"tk-energiberegner__suggestion__result-label"},(0,a.default)("ImprovementDescriptionStringOne",e))),(0,i.default)("div",{class:"tk-energiberegner__suggestion__result-labels"},(0,i.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--small"},(0,i.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 25"},(0,i.default)("g",{fill:"none","fill-rule":"evenodd"},(0,i.default)("path",{fill:"#FC8100",d:"M18.995 4.167L22 7.297 10.505 19.271 7.5 16.14z"}),(0,i.default)("path",{fill:"#FD4C05",d:"M2 10.44l3.02-3.148L10.5 13l-3.022 3.146z"})))),(0,i.default)("span",{class:"tk-energiberegner__suggestion__result-label"},(0,a.default)("ImprovementDescriptionStringTwo",e))),(0,i.default)("div",{class:"tk-energiberegner__suggestion__result-labels"},(0,i.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--small"},(0,i.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 25"},(0,i.default)("g",{fill:"none","fill-rule":"evenodd"},(0,i.default)("path",{fill:"#FC8100",d:"M18.995 4.167L22 7.297 10.505 19.271 7.5 16.14z"}),(0,i.default)("path",{fill:"#FD4C05",d:"M2 10.44l3.02-3.148L10.5 13l-3.022 3.146z"})))),(0,i.default)("span",{class:"tk-energiberegner__suggestion__result-label"},(0,a.default)("ImprovementDescriptionStringThree",e)))))};var i=o(e("mithril")),a=o(e("../../methods/LabelController")),r=o(e("../../store/EnergyCalculatorStore"));
1function o(e){return e&&e.__esModule?e:{default:e}}},{"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,mithril:410}],31:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var a=e.attrs.modalContent,r=!1;return{view:function(e){var t=e.attrs.card,e=e.attrs.labels,n=t.Description&&t.Notes,i="Fjernvarme"===t.Type;return(0,o.default)("article",{class:"tk-energiberegner__suggestion__card__mobile"},(0,o.default)("div",{class:"tk-energiberegner__suggestion__card-wrapper-top"},(0,o.default)("section",{class:"tk-energiberegner__suggestion__card-top"+(r?"":"--closed")},(0,o.default)("h3",{class:"tk-energiberegner__suggestion__card-top-title"},t.Type),(0,o.default)("p",{class:"tk-energiberegner__suggestion__card-top-text"},t.TextBeneathTitle),(0,o.default)("button",{type:"button",onclick:function(){r=!1},class:"tk-button tk-energiberegner__suggestion__card__mobile-link tk-energiberegner__suggestion__card__mobile-link"+(r?"":"--closed")},(0,s.default)("ReadLessLabel",e))),(0,o.default)("section",{class:"tk-energiberegner__suggestion__card-top__energy-label"+(r?"":"--closed")},(0,o.default)("div",{class:"tk-energiberegner__suggestion__card-top-container__mobile"},(0,o.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small tk-energiberegner__suggestion__card__mobile-text"},(0,s.default)("YearlySavingsLabel",e)),(0,o.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--large"},(0,u.applyThousandSeperatorNullCheck)(t.YearlySavings)," ",(0,o.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,s.default)("Currency",e)))),(0,o.default)("div",{class:"tk-energiberegner__suggestion__card-top-container__mobile"},(0,o.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small tk-energiberegner__suggestion__card__mobile-text"},(0,s.default)("InvestmentForProposalLabel",e)),(0,o.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--large"},(0,u.applyThousandSeperatorNullCheck)(t.Investment),i?(0,s.default)("DistictHeatingSuffix",e):"",(0,o.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,s.default)("Currency",e)))),i?(0,o.default)("p",null,(0,s.default)("DistictHeatingDisclaimer",e)):"")),(0,o.default)("button",{type:"button",onclick:function(){r=!0},class:"tk-button tk-energiberegner__suggestion__card__mobile-link tk-energiberegner__suggestion__card__mobile-link"+(r?"--closed":"")},(0,s.default)("ReadMoreLabel",e)),n&&(0,o.default)("button",{onclick:function(){return l.default.actions.openModalPopup(a)},class:"tk-button tk-button--link tk-energiberegner__suggestion__card-link"},(0,s.default)("ReadMoreLabel",e)))}}};var o=i(e("mithril")),s=i(e("../../methods/LabelController")),l=i(e("../../store/EnergyCalculatorStore")),u=e("../../../components/util/numberFormat");function i(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/util/numberFormat":17,"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,mithril:410}],30:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n,i,a,r){var o,s;return r?4<n.length?(0,l.default)("div",{class:"tk-energiberegner__suggestion__container--js glide"},(0,l.default)("div",{class:"glide__track","data-glide-el":"track"},(0,l.default)("div",{class:"glide__slides"},t.map(function(e){if(e.IsShown&&e.IsChosen)return(0,l.default)(c.default,{card:e,propsEL:t,visibleSuggestionCardsEL:n,labels:a})}))),(0,l.default)("div",{class:"glide__arrows","data-glide-el":"controls"},(0,l.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--glide-next","data-glide-dir":">"},(0,l.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9 22"},(0,l.default)("path",{fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7.667 1L1 11l6.667 10"}))),(0,l.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--glide-prev","data-glide-dir":"<"},(0,l.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9 22"},(0,l.default)("path",{fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7.667 1L1 11l6.667 10"}))))):(o=n,(s=t).map(function(e){if(e.IsShown&&e.IsChosen)return(0,l.default)(c.default,{propsEL:s,visibleSuggestionCardsEL:o,card:e,labels:a})})):4<i.length?(0,l.default)("div",{class:"tk-energiberegner__suggestion__container--js glide"},(0,l.default)("div",{class:"glide__track","data-glide-el":"track"},(0,l.default)("div",{class:"glide__slides"},(0,u.default)(i,e,a))),(0,l.default)("div",{class:"glide__arrows","data-glide-el":"controls"},(0,l.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--glide-next","data-glide-dir":">"},(0,l.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9 22"},(0,l.default)("path",{fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7.667 1L1 11l6.667 10"}))),(0,l.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--glide-prev","data-glide-dir":"<"},(0,l.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9 22"},(0,l.default)("path",{fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7.667 1L1 11l6.667 10"}))))):(0,u.default)(i,e,a)};var l=i(e("mithril")),u=i(e("./CalculatorSuggestion__RenderCardNoEnergyLabel.mithril")),c=i(e("./CalculatorSuggestion__RenderCardHasEnergyLabel.mithril"));i(e("../../store/EnergyCalculatorStore"));
1function i(e){return e&&e.__esModule?e:{default:e}}},{"../../store/EnergyCalculatorStore":58,"./CalculatorSuggestion__RenderCardHasEnergyLabel.mithril":32,"./CalculatorSuggestion__RenderCardNoEnergyLabel.mithril":33,mithril:410}],33:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(c,e,d){function f(e,t){return e?(0,h.default)("li",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},t):null}return e.map(function(e){var t={title:e.Type,image:e.ModalImagePath,linkUrl:(0,p.default)("ProposalModalReferralLink",d),linkText:(0,p.default)("ProposalModalReferralLinkText",d),text:e.ModalImageText},n={title:(0,p.default)("OilGrantPopupHeadline",d),text:(0,p.default)("OilGrantPopupText",d),type:"1"},i={title:(0,p.default)("GasGrantPopupHeadline",d),text:(0,p.default)("GasGrantPopupText",d),type:"1"},a=m.default.state.output.ShowOilGrant&&("Varmepumpe"===e.Type||"Jordvarme"===e.Type),r=m.default.state.output.ShowGasGrant&&("Varmepumpe"===e.Type||"Jordvarme"===e.Type),o=null!=e.InfoInsulation&&null!=e.InfoInsulation&&""!=e.InfoInsulation,s=null!=e.InfoWindows&&null!=e.InfoWindows&&""!=e.InfoWindows,l=o||s,u="Fjernvarme"===e.Type;if(e.IsShown&&e.IsChosen)return(0,h.default)("article",{class:"tk-energiberegner__suggestion__card tk-energiberegner__suggestion__card"+(4<c.length?"--glide glide__slide":"")},(0,h.default)("div",{class:"tk-energiberegner__suggestion__card-wrapper-top"},(0,h.default)("section",{class:"tk-energiberegner__suggestion__card-top"},(0,h.default)("h3",{class:"tk-energiberegner__suggestion__card-top-title--BBR-data"},e.Type),(0,h.default)("div",{class:"tk-energiberegner__suggestion__card-top-container"},(0,h.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--fat-stroke"},(0,h.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 42 52"},(0,h.default)("g",{fill:"none","fill-rule":"evenodd","stroke-linecap":"square"},(0,h.default)("path",{d:"M27.7 12.667l11.47 24.025C42.338 43.328 37.5 51 30.145 51h-18.29C4.5 51-.338 43.328 2.83 36.692L14.3 12.667M32.667 1H9.333l5 11.667h13.334zM21 12.667v-5"})))),(0,h.default)("div",{class:"tk-energiberegner__suggestion__card-top-paragraphs"},(0,h.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,p.default)("YearlySavingsLabel",d)),(0,h.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--large"},(0,g.applyThousandSeperatorNullCheck)(e.YearlySavings)," ",(0,h.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,p.default)("Currency",d))))),(0,h.default)("div",{class:"tk-energiberegner__suggestion__card-top-container"},(0,h.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--fat-stroke"},(0,h.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 42 53"},(0,h.default)("g",{fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"},(0,h.default)("path",{d:"M41 10c0 3.215-3.812 6.187-10 7.794-6.188 1.608-13.812 1.608-20 0C4.812 16.187 1 13.215 1 10s3.812-6.187 10-7.794c6.188-1.608 13.812-1.608 20 0C37.188 3.813 41 6.785 41 10z"}),(0,h.default)("path",{d:"M1 19v1.833C1 25.897 9.953 30 21 30s20-4.103 20-9.167V19M1 30v1.833C1 36.897 9.953 41 21 41s20-4.103 20-9.167V30M1 41v1.833C1 47.897 9.953 52 21 52s20-4.103 20-9.167V41"})))),(0,h.default)("div",{class:"tk-energiberegner__suggestion__card-top-paragraphs"},(0,h.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,p.default)("InvestmentForProposalLabel",d)),(0,h.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--large"},(0,g.applyThousandSeperatorNullCheck)(e.Investment),u?(0,p.default)("DistictHeatingSuffix",d):""," ",(0,h.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,p.default)("Currency",d))))),a?(0,h.default)("div",{onclick:function(){return m.default.actions.openModalPopup(n)},class:"tk-energiberegner__body-text tk-energiberegner__body-text__grant-link-margin-left"},(0,p.default)("OilGrantPopupLinkLabel",d)):"",u?(0,h.default)("p",null,(0,p.default)("DistictHeatingDisclaimer",d)):"",r?(0,h.default)("div",{onclick:function(){return m.default.actions.openModalPopup(i)},class:"tk-energiberegner__body-text tk-energiberegner__body-text__grant-link-margin-left"},(0,p.default)("GasGrantPopupLinkLabel",d)):""),(0,h.default)("section",{class:"tk-energiberegner__suggestion__card-bottom"},(0,h.default)("h4",{class:"tk-energiberegner__suggestion__card-bottom-title"},l?(0,p.default)("InfoLabel",d):(0,p.default)("WhatDoesItTakeLabel",d)),(0,h.default)("ul",{class:"tk-energiberegner__suggestion__card-bottom-list"},f(o,e.InfoInsulation),f(s,e.InfoWindows),e.WhatDoesItTakeTexts.map(function(e){if(e)return(0,h.default)("li",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},h.default.trust(e))})))),(0,h.default)("button",{onclick:function(){return m.default.actions.openModalPopup(t)},class:"tk-button tk-button--link tk-energiberegner__suggestion__card-link"},(0,p.default)("ReadMoreLabel",d)))})};var h=i(e("mithril")),p=i(e("../../methods/LabelController")),m=i(e("../../store/EnergyCalculatorStore")),g=e("../../../components/util/numberFormat");
1function i(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/util/numberFormat":17,"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,mithril:410}],32:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{view:function(e){var t=e.attrs.visibleSuggestionCardsEL,n=e.attrs.card,e=e.attrs.labels,i=(0,u.default)(n),a=n.Description&&n.Notes;return(0,r.default)("article",{class:"tk-energiberegner__suggestion__card tk-energiberegner__suggestion__card"+(4<t.length?"--glide glide__slide":"")},(0,r.default)("div",{class:"tk-energiberegner__suggestion__card-wrapper-top"},(0,r.default)("section",{class:"tk-energiberegner__suggestion__card-top"},(0,r.default)("h3",{class:"tk-energiberegner__suggestion__card-top-title"},n.Type),(0,r.default)("p",{class:"tk-energiberegner__suggestion__card-top-text"},n.TextBeneathTitle))),(0,r.default)("div",{class:"tk-energiberegner__suggestion__card-wrapper-bottom "+(a?"tk-energiberegner__suggestion__card-wrapper-bottom__readmore":"")},(0,r.default)("section",{class:"tk-energiberegner__suggestion__card-bottom-no-requirement "+(a?"tk-energiberegner__suggestion__card-bottom-no-requirement__readmore":"")},(0,r.default)("div",{class:"tk-energiberegner__suggestion__card-top-container"},(0,r.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--fat-stroke"},(0,r.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 42 53"},(0,r.default)("g",{fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round"},(0,r.default)("path",{d:"M41 10c0 3.215-3.812 6.187-10 7.794-6.188 1.608-13.812 1.608-20 0C4.812 16.187 1 13.215 1 10s3.812-6.187 10-7.794c6.188-1.608 13.812-1.608 20 0C37.188 3.813 41 6.785 41 10z"}),(0,r.default)("path",{d:"M1 19v1.833C1 25.897 9.953 30 21 30s20-4.103 20-9.167V19M1 30v1.833C1 36.897 9.953 41 21 41s20-4.103 20-9.167V30M1 41v1.833C1 47.897 9.953 52 21 52s20-4.103 20-9.167V41"})))),(0,r.default)("div",{class:"tk-energiberegner__suggestion__card-top-paragraphs"},(0,r.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,o.default)("YearlySavingsLabel",e)),(0,r.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--large"},(0,l.applyThousandSeperatorNullCheck)(n.YearlySavings)," ",(0,r.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,o.default)("Currency",e))))),(0,r.default)("div",{class:"tk-energiberegner__suggestion__card-top-container"},(0,r.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--fat-stroke"},(0,r.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 42 52"},(0,r.default)("g",{fill:"none","fill-rule":"evenodd","stroke-linecap":"square"},(0,r.default)("path",{d:"M27.7 12.667l11.47 24.025C42.338 43.328 37.5 51 30.145 51h-18.29C4.5 51-.338 43.328 2.83 36.692L14.3 12.667M32.667 1H9.333l5 11.667h13.334zM21 12.667v-5"})))),(0,r.default)("div",{class:"tk-energiberegner__suggestion__card-top-paragraphs"},(0,r.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,o.default)("InvestmentForProposalLabel",e)),(0,r.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--large"},(0,l.applyThousandSeperatorNullCheck)(n.Investment)," ",(0,r.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,o.default)("Currency",e))))))),a&&(0,r.default)("button",{onclick:function(){return s.default.actions.openModalPopup(i)},class:"tk-button tk-button--link tk-energiberegner__suggestion__card-link"},(0,o.default)("ReadMoreLabel",e)))}}};var r=i(e("mithril")),o=i(e("../../methods/LabelController")),s=i(e("../../store/EnergyCalculatorStore")),l=(i(e("../../components/modal/energiberegner-modal")),e("../../../components/util/numberFormat")),u=i(e("../../methods/getEnergyCardModalContent"));function i(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/util/numberFormat":17,"../../components/modal/energiberegner-modal":45,"../../methods/LabelController":49,"../../methods/getEnergyCardModalContent":53,"../../store/EnergyCalculatorStore":58,mithril:410}],53:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});function i(e){return'<div style="margin:0;padding:0;"><p>'+e.Description+"</p><strong>Noter fra energimærke</strong><p>"+e.Notes+"</p></div>"}n.default=function(e){return{title:"Om forbedring",image:null,linkUrl:null,linkText:null,text:i(e),shrinkTitle:!0,type:0}}},{}],29:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){function c(e,t){return e?(0,h.default)("li",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},t):null}var d=e.attrs.modalContent,f=!1;return{view:function(e){var t=e.attrs.card,e=e.attrs.labels,n=null!=t.InfoInsulation&&null!=t.InfoInsulation&&""!=t.InfoInsulation,i=null!=t.InfoWindows&&null!=t.InfoWindows&&""!=t.InfoWindows,a=n||i,r=m.default.state.output.ShowOilGrant&&("Varmepumpe"===t.Type||"Jordvarme"===t.Type),o={title:(0,p.default)("OilGrantPopupHeadline",e),text:(0,p.default)("OilGrantPopupText",e),type:"1"},s="Fjernvarme"===t.Type,l=m.default.state.output.ShowGasGrant&&("Varmepumpe"===t.Type||"Jordvarme"===t.Type),u={title:(0,p.default)("GasGrantPopupHeadline",e),text:(0,p.default)("GasGrantPopupText",e),type:"1"};if(t.IsShown&&t.IsChosen)return(0,h.default)("article",{class:"tk-energiberegner__suggestion__card__mobile"},(0,h.default)("div",{class:"tk-energiberegner__suggestion__card-wrapper-top"},(0,h.default)("section",{class:"tk-energiberegner__suggestion__card-top"+(f?"":"--closed")},(0,h.default)("h3",{class:"tk-energiberegner__suggestion__card-top-title"},t.Type),(0,h.default)("div",{class:"tk-energiberegner__suggestion__card-top-container__mobile"},(0,h.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small tk-energiberegner__suggestion__card__mobile-text"},(0,p.default)("YearlySavingsLabel",e)),(0,h.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--large"},(0,g.applyThousandSeperatorNullCheck)(t.YearlySavings)," ",(0,h.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,p.default)("Currency",e)))),(0,h.default)("div",{class:"tk-energiberegner__suggestion__card-top-container__mobile"},(0,h.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small tk-energiberegner__suggestion__card__mobile-text"},(0,p.default)("InvestmentForProposalLabel",e)),(0,h.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--large"},(0,g.applyThousandSeperatorNullCheck)(t.Investment),s?(0,p.default)("DistictHeatingSuffix",e):"",(0,h.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,p.default)("Currency",e)))),r?(0,h.default)("div",{onclick:function(){return m.default.actions.openModalPopup(o)},class:"tk-energiberegner__body-text tk-energiberegner__body-text__grant-link-mobile"},(0,p.default)("OilGrantPopupLinkLabel",e)):"",s?(0,h.default)("p",null,(0,p.default)("DistictHeatingDisclaimer",e)):"",l?(0,h.default)("div",{onclick:function(){return m.default.actions.openModalPopup(u)},class:"tk-energiberegner__body-text tk-energiberegner__body-text__grant-link-mobile"},(0,p.default)("GasGrantPopupLinkLabel",e)):"",(0,h.default)("button",{type:"button",onclick:function(){f=!1},class:"tk-button tk-energiberegner__suggestion__card__mobile-link tk-energiberegner__suggestion__card__mobile-link"+(f?"":"--closed")},(0,p.default)("ReadLessLabel",e))),(0,h.default)("section",{class:"tk-energiberegner__suggestion__card-bottom tk-energiberegner__suggestion__card-bottom"+(f?"":"--closed")},(0,h.default)("h4",{class:"tk-energiberegner__suggestion__card-bottom-title"},a?(0,p.default)("InfoLabel",e):(0,p.default)("WhatDoesItTakeLabel",e)),(0,h.default)("ul",{class:"tk-energiberegner__suggestion__card-bottom-list"},c(n,t.InfoInsulation),c(i,t.InfoWindows),t.WhatDoesItTakeTexts.map(function(e){return""===e?null:(0,h.default)("li",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},h.default.trust(e))})))),(0,h.default)("button",{type:"button",onclick:function(){f=!0},class:"tk-button tk-energiberegner__suggestion__card__mobile-link tk-energiberegner__suggestion__card__mobile-link"+(f?"--closed":"")},(0,p.default)("ReadMoreLabel",e)),(0,h.default)("button",{onclick:function(){return m.default.actions.openModalPopup(d)},class:"tk-button tk-button--link tk-energiberegner__suggestion__card-link"+(f?"":"--closed")},(0,p.default)("ReadMoreLabel",e)))}}};var h=i(e("mithril")),p=i(e("../../methods/LabelController")),m=i(e("../../store/EnergyCalculatorStore")),g=e("../../../components/util/numberFormat");
1function i(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/util/numberFormat":17,"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,mithril:410}],28:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t,n){var i=o.default.state.labels;return e&&t.Co2Calculation.ValidCo2Calculation||!e&&n.Co2Calculation.ValidCo2Calculation?(0,a.default)("section",{class:"tk-energiberegner__suggestion__c02-savings"},(0,a.default)("button",{class:"tk-energiberegner__suggestion__c02-savings-collapsible tk-energiberegner__suggestion__c02-savings--mobile",onclick:function(){var e,t;e=document.getElementsByClassName("tk-energiberegner__suggestion__c02-savings-collapsible")[0],t=document.getElementsByClassName("tk-energiberegner__suggestion__c02-savings-wrapper")[0],e.classList.contains("active")?(e.classList.remove("active"),t.style.display="none"):(e.classList.add("active"),t.style.display="block")}},(0,a.default)("h4",{class:"tk-energiberegner__suggestion__c02-savings-title"},e?t.Co2Calculation.Co2InTon?a.default.trust((Math.round(10*t.Co2Calculation.Co2InTonOut)/10).toString().replace(".",",")+" "+(0,r.default)("CO2CalculatorHeadline",i)):t.Co2Calculation.Co2InTonOut:n.Co2Calculation.Co2InTon?a.default.trust((Math.round(10*n.Co2Calculation.Co2InTonOut)/10).toString().replace(".",",")+" "+(0,r.default)("CO2CalculatorHeadline",i)):n.Co2Calculation.Co2InTonOut),(0,a.default)("div",null,(0,a.default)("svg",{width:"20",height:"12",xmlns:"http://www.w3.org/2000/svg"},(0,a.default)("path",{d:"M18.093 0 10 8.093 1.907 0 0 1.907l9.046 9.047a1.349 1.349 0 0 0 1.908 0L20 1.907 18.093 0z",fill:"#FF8300","fill-rule":"evenodd"})))),(0,a.default)("h4",{class:"tk-energiberegner__suggestion__c02-savings-title tk-energiberegner__suggestion__c02-savings--desktop"},e?t.Co2Calculation.Co2InTon?a.default.trust((Math.round(10*t.Co2Calculation.Co2InTonOut)/10).toString().replace(".",",")+" "+(0,r.default)("CO2CalculatorHeadline",i)):t.Co2Calculation.Co2InTonOut:n.Co2Calculation.Co2InTon?a.default.trust((Math.round(10*n.Co2Calculation.Co2InTonOut)/10).toString().replace(".",",")+" "+(0,r.default)("CO2CalculatorHeadline",i)):n.Co2Calculation.Co2InTonOut),(0,a.default)("div",{class:"tk-energiberegner__suggestion__c02-savings-wrapper tk-energiberegner__suggestion__c02-savings-wrapper--mobile-init"},(0,a.default)("article",{class:"tk-energiberegner__suggestion__c02-savings-container"},(0,a.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--large"},(0,a.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",width:"46",height:"40",viewBox:"0 0 46 40"},(0,a.default)("g",{fill:"none","fill-rule":"evenodd",stroke:"","stroke-width":"2"},(0,a.default)("path",{d:"M40 15L38.231 1.736A2 2 0 0036.249 0H7.751a2 2 0 00-1.982 1.736L4 15",transform:"translate(1 1)"}),(0,a.default)("path",{"stroke-linecap":"square",d:"M12 32L12 38 3 38 3 32M41 32L41 38 32 38 32 32M44 32H0V21.403c0-.908.309-1.79.877-2.499L4 15h36l3.123 3.904A4 4 0 0144 21.403V32z",transform:"translate(1 1)"}),(0,a.default)("path",{"stroke-linecap":"square",d:"M39 24a3 3 0 11-6 0 3 3 0 016 0zM11 24a3 3 0 11-6 0 3 3 0 016 0zM19 24L25 24",transform:"translate(1 1)"})))),(0,a.default)("div",{class:"tk-energiberegner__suggestion__c02-savings-text-container"},(0,a.default)("p",{class:"tk-energiberegner__suggestion__c02-savings-number"},e?(0,s.applyThousandSeperatorNullCheck)(t.Co2Calculation.CalculationOne):(0,s.applyThousandSeperatorNullCheck)(n.Co2Calculation.CalculationOne)),(0,a.default)("p",{class:"tk-energiberegner__suggestion__c02-savings-text"},a.default.trust((0,r.default)("Co2CalculationTextOne",i))))),(0,a.default)("article",{class:"tk-energiberegner__suggestion__c02-savings-container"},(0,a.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--large"},(0,a.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",width:"46",height:"43",viewBox:"0 0 46 43"},(0,a.default)("g",{fill:"none","fill-rule":"evenodd",stroke:"","stroke-width":"2"},(0,a.default)("path",{"stroke-linecap":"square",d:"M17 16a2 2 0 11-4 0 2 2
10 014 0zM31 16a2 2 0 11-4 0 2 2 0 014 0zM12.5 0L12.5 6M32.5 0L32.5 6",transform:"translate(1 1)"}),(0,a.default)("path",{d:"M36 23L34.043 6 9.957 6 8 23",transform:"translate(1 1)"}),(0,a.default)("path",{d:"M10 6H0c0 3.866 3.582 7 8 7h1.158M34 6h10c0 3.866-3.582 7-8 7h-1.158",transform:"translate(1 1)"}),(0,a.default)("path",{"stroke-linecap":"square",d:"M19 32a3 3 0 11-6 0 3 3 0 016 0zM31 32a3 3 0 11-6 0 3 3 0 016 0z",transform:"translate(1 1)"}),(0,a.default)("path",{"stroke-linecap":"square",d:"M34 22H10c-2.21 0-4 1.701-4 3.8v5.7c0 5.247 4.477 9.5 10 9.5h12c5.523 0 10-4.253 10-9.5v-5.7c0-2.099-1.79-3.8-4-3.8z",transform:"translate(1 1)"})))),(0,a.default)("div",{class:"tk-energiberegner__suggestion__c02-savings-text-container"},(0,a.default)("p",{class:"tk-energiberegner__suggestion__c02-savings-number"},e?(0,s.applyThousandSeperatorNullCheck)(t.Co2Calculation.CalculationTwo):(0,s.applyThousandSeperatorNullCheck)(n.Co2Calculation.CalculationTwo)),(0,a.default)("p",{class:"tk-energiberegner__suggestion__c02-savings-text"},a.default.trust((0,r.default)("Co2CalculationTextTwo",i))))),(0,a.default)("article",{class:"tk-energiberegner__suggestion__c02-savings-container"},(0,a.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--large"},(0,a.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",width:"46",height:"38",viewBox:"0 0 58 46"},(0,a.default)("g",{fill:"none","fill-rule":"evenodd",stroke:"","stroke-width":"2"},(0,a.default)("path",{d:"M35.75 14.667L25.667 0 17.417 0 24.75 14.667",transform:"translate(2 1)"}),(0,a.default)("path",{"stroke-linecap":"square",d:"M47.397 14.667H12.833L8.401 7.28A3.667 3.667 0 005.257 5.5H0l5.5 22h20.378L17.417 44h8.25l11.211-16.5h10.789c3.61 0 6.523-2.98 6.414-6.614-.106-3.512-3.17-6.22-6.684-6.22zM20.167 21.083L22.917 21.083M28.417 21.083L31.167 21.083M36.667 21.083L39.417 21.083",transform:"translate(2 1)"})))),(0,a.default)("div",{class:"tk-energiberegner__suggestion__c02-savings-text-container"},(0,a.default)("p",{class:"tk-energiberegner__suggestion__c02-savings-number"},e?(0,s.applyThousandSeperatorNullCheck)(t.Co2Calculation.CalculationThree):(0,s.applyThousandSeperatorNullCheck)(n.Co2Calculation.CalculationThree)),(0,a.default)("p",{class:"tk-energiberegner__suggestion__c02-savings-text"},a.default.trust((0,r.default)("Co2CalculationTextThree",i))))))):null};var a=i(e("mithril")),r=i(e("../../methods/LabelController")),o=i(e("../../store/EnergyCalculatorStore")),s=e("../../../components/util/numberFormat");i(e("../../methods/imagePathController"));function i(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/util/numberFormat":17,"../../methods/LabelController":49,"../../methods/imagePathController":54,"../../store/EnergyCalculatorStore":58,mithril:410}],27:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var r=e.attrs.suggestionOverlay,o=i.default.url,s=i.default.recalculateSuggestionEndpoint;return{view:function(){var n=u.default.state.labels,e=u.default.state.output.IsWithEnergyMark,t=null!=u.default.state.editedState.Output.BbrBasedOutput.IfNotPossibleHeatSource&&null!=u.default.state.editedState.Output.BbrBasedOutput.IfNotPossibleHeatSource&&""!=u.default.state.editedState.Output.BbrBasedOutput.IfNotPossibleHeatSource,i=u.default.state.editedState.Output.BbrBasedOutput.BbrProposals,a=u.default.state.editedState.Output.EnergyMarkBasedOutput.EnergyMarkProposals;return r.visible?(0,l.default)("article",{class:"tk-energiberegner__suggestion-edit-modal"+(r.visible?"":"--hidden")},(0,l.default)("div",{class:"tk-energiberegner__scroll-container"+(r.visible?"":"--hidden")},(0,l.default)("div",{onclick:function(){return r.closeOverlay()},class:"tk-energiberegner__svg-container tk-energiberegner__close tk-energiberegner__close--overlay"},(0,l.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.default)("g",{fill:"none","fill-rule":"evenodd",stroke:"#696057","stroke-linecap":"square","stroke-width":"2"},(0,l.default)("path",{d:"M2.101 2.101L21.9 21.899M21.9 2.101L2.101 21.899"})))),(0,l.default)("article",{class:"tk-energiberegner__suggestion-edit-modal__wrapper"+(r.visible?"":"--hidden")},(0,l.default)("h1",{class:"tk-typography--title-lg tk-beregner__title__energiberegner tk-beregner__title__energiberegner--modal"},(0,c.default)("ChangeSelectedHeadline",n)),(0,l.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text"},(0,c.default)("ChangeSelectedSubHeadline",n)),(0,l.default)("div",{class:"tk-energi-beregner__suggestion-edit-modal__container"}
1,(0,l.default)("div",{class:"tk-energiberegner__house-info__button-container tk-energiberegner__house-info__button-container--modal"},(0,l.default)("button",{onclick:function(){u.default.actions.postEditedStateSuggestions(o,s,function(){document.querySelector(".tk-energiberegner__scroll-to-suggestion-js").scrollIntoView({behavior:"smooth",block:"start"})}),r.closeOverlay()},class:"tk-button tk-button--primary-border tk-energiberegner__button"},(0,c.default)("SaveProposalChangesButton",n))),e?(0,l.default)("section",{class:"tk-energiberegner__suggestion-edit-modal__item-wrapper"},(0,l.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__item-container tk-energiberegner__suggestion-edit-modal__item-container--energy-label"},a.map(function(e,t){return(0,l.default)(h.default,{index:t,card:e,labels:n})}))):(0,l.default)("section",{class:"tk-energiberegner__suggestion-edit-modal__item-wrapper"},(0,l.default)("h2",{class:"tk-energiberegner__suggestion-edit-modal__section-title tk-energiberegner__body-text"},(0,c.default)("HeatSourceProposalHeadline",n)),(0,l.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__item-container"},t?(0,l.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--possibleheat-text"},u.default.state.editedState.Output.BbrBasedOutput.IfNotPossibleHeatSource):i.map(function(e,t){return(0,l.default)(d.default,{index:t,card:e,labels:n})})),(0,l.default)("h2",{class:"tk-energiberegner__suggestion-edit-modal__section-title tk-energiberegner__body-text"},(0,c.default)("BuildingProposalHeadline",n)),(0,l.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__item-container"},i.map(function(e,t){return(0,l.default)(f.default,{index:t,card:e,labels:n})}))))))):""}}};var l=a(e("mithril")),u=(function(e){{if(e&&e.__esModule)return;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}}(e("dawa-autocomplete2")),a(e("../../store/EnergyCalculatorStore"))),c=a(e("../../methods/LabelController")),i=a(e("../../environmentVariables")),d=a(e("./CalculatorSuggestion__RenderDesktopCardBBRHeat.mithril")),f=a(e("./CalculatorSuggestion__RenderDesktopCardBBRBuilding.mithril")),h=a(e("./CalculatorSuggestion__RenderDesktopCardEnergyLabel.mithril"));function a(e){return e&&e.__esModule?e:{default:e}}},{"../../environmentVariables":47,"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,"./CalculatorSuggestion__RenderDesktopCardBBRBuilding.mithril":34,"./CalculatorSuggestion__RenderDesktopCardBBRHeat.mithril":35,"./CalculatorSuggestion__RenderDesktopCardEnergyLabel.mithril":36,"dawa-autocomplete2":405,mithril:410}],36:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(i){var a=!1;return{oninit:function(){i.attrs.card.IsChosen&&(a=!0)},view:function(){var e=i.attrs.card,t=i.attrs.index,n=i.attrs.labels;if(e.IsShown)return(0,r.default)("article",{onclick:function(){var e;e=t,(a=!a)?o.default.mutations.selectEnergySuggestion(!0,e):o.default.mutations.selectEnergySuggestion(!1,e)},class:"tk-energiberegner__suggestion-edit-modal__item tk-energiberegner__suggestion-edit-modal__item"+(a?"--selected":"")},(0,r.default)("div",{class:"tk-energiberegner__suggestion__card-wrapper-top tk-energiberegner__suggestion__card-wrapper-top--overlay-cards"},(0,r.default)("h3",{class:"tk-energiberegner__body-text tk-energiberegner__body-text tk-energiberegner__suggestion-edit-modal__item-title tk-energiberegner__suggestion-edit-modal__item-title"+(a?"--selected":"")},e.Type),(0,r.default)("p",{class:"tk-energiberegner__suggestion__card-top-text"},e.TextBeneathTitle)),(0,r.default)("div",{class:"tk-energiberegner__suggestion__card-wrapper-bottom"},(0,r.default)("div",{class:"tk-energiberegner__suggestion__card-bottom-no-requirement tk-energiberegner__suggestion__card-bottom-no-requirement--overlay-cards"},(0,r.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__text-container"},(0,r.default)("label",{class:"tk-energiberegner__suggestion-edit-modal__text-container__text tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,s.default)("YearlySavingsLabel",n)),(0,r.default)("p",{class:"tk-energiberegner__suggestion-edit-modal__item-text"},(0,l.applyThousandSeperatorNullCheck)(e.YearlySavings)," ",(0,r.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,s.default)("Currency",n)))),(0,r.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__text-container"},(0,r.default)("label",{class:"tk-energiberegner__suggestion-edit-modal__text-container__text tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,s.default)("InvestmentForProposalLabel",n)),(0,r.default)("p",{class:"tk-energiberegner__suggestion-edit-modal__item-text"},(0,l.applyThousandSeperatorNullCheck)(e.Investment)," ",(0,r.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,s.default)("Currency",n)))))),(0,r.default)("section",{class:"tk-energiberegner__suggestion__card-bottom-edit tk-energiberegner__suggestion__card-bottom-edit--closed"}),(0,r.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__circle tk-energiberegner__suggestion-edit-modal__circle"+(a?"--selected":"")},(0,r.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--suggestion-checkmark"},(0,r.default)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},(0,r.default)("path",{fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M1 7l4 4L15 1"})))))}}};var r=i(e("mithril")),o=i(e("../../store/EnergyCalculatorStore")),s=i(e("../../methods/LabelController")),l=e("../../../components/util/numberFormat");
1function i(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/util/numberFormat":17,"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,mithril:410}],35:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(s){function l(e){var t=c,n=0;f.default.state.editedState.Output.BbrBasedOutput.BbrProposals.forEach(function(e){e.IsChosen&&n++,1===e.Category&&(e.IsChosen=!1)}),d.default.redraw(),c=(t&&1<n?f.default.mutations.selectSuggestion(!1,e):f.default.mutations.selectSuggestion(!0,e),s.attrs.card.IsChosen)}function n(e,t){var n=s.attrs.index,i={title:(0,h.default)("OilGrantPopupHeadline",e),text:(0,h.default)("OilGrantPopupText",e),type:"1"},a={title:(0,h.default)("GasGrantPopupHeadline",e),text:(0,h.default)("GasGrantPopupText",e),type:"1"},r=f.default.state.output.ShowGasGrant&&("Varmepumpe"===t.Type||"Jordvarme"===t.Type),o=f.default.state.output.ShowOilGrant&&("Varmepumpe"===t.Type||"Jordvarme"===t.Type);return"Fjernvarme"===t.Type&&""!=f.default.state.editedState.Output.BbrBasedOutput.IfNotPossibleFJV&&null!=f.default.state.editedState.Output.BbrBasedOutput.IfNotPossibleFJV&&null!=f.default.state.editedState.Output.BbrBasedOutput.IfNotPossibleFJV?(0,d.default)("article",{class:"tk-energiberegner__suggestion-edit-modal__item tk-energiberegner__suggestion-edit-modal__item"},(0,d.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__item-text-wrapper tk-energiberegner__suggestion-edit-modal__item-text-wrapper--district-heat"},(0,d.default)("h3",{class:"tk-energiberegner__suggestion-edit-modal__item-title--BBR-data tk-energiberegner__body-text"},f.default.state.editedState.Output.BbrBasedOutput.IfNotPossibleFJV),(0,d.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__item-see-more-text"},(0,d.default)("p",{class:"tk-energiberegner__body-text"},f.default.state.editedState.Output.BbrBasedOutput.IfNotPossibleFJVText)))):(0,d.default)("article",{class:"tk-energiberegner__suggestion-edit-modal__item tk-energiberegner__suggestion-edit-modal__item--overlay-BBR tk-energiberegner__suggestion-edit-modal__item"+(c?"--selected":"")},(0,d.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__item-text-wrapper",onclick:function(){return l(n)}},(0,d.default)("h3",{class:"tk-energiberegner__body-text tk-energiberegner__body-text tk-energiberegner__suggestion-edit-modal__item-title--BBR-data tk-energiberegner__suggestion-edit-modal__item-title"+(c?"--selected":"")},t.Type),(0,d.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__text-container"},(0,d.default)("label",{class:"tk-energiberegner__suggestion-edit-modal__text-container__text tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,h.default)("YearlySavingsLabel",e)),(0,d.default)("p",{class:"tk-energiberegner__suggestion-edit-modal__item-text"},(0,p.applyThousandSeperatorNullCheck)(t.YearlySavings)," ",(0,d.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,h.default)("Currency",e)))),(0,d.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__text-container"},(0,d.default)("label",{class:"tk-energiberegner__suggestion-edit-modal__text-container__text tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,h.default)("InvestmentForProposalLabel",e)),(0,d.default)("p",{class:"tk-energiberegner__suggestion-edit-modal__item-text"},(0,p.applyThousandSeperatorNullCheck)(t.Investment)," ",(0,d.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,h.default)("Currency",e)))),o?(0,d.default)("div",{onclick:function(){return f.default.actions.openModalPopup(i)},class:"tk-energiberegner__body-text tk-energiberegner__body-text__grant-link"},(0,h.default)("OilGrantPopupLinkLabel",e)):"",r?(0,d.default)("div",{onclick:function(){return f.default.actions.openModalPopup(a)},class:"tk-energiberegner__body-text tk-energiberegner__body-text__grant-link"},(0,h.default)("GasGrantPopupLinkLabel",e)):"",(0,d.default)("section",{class:"tk-energiberegner__suggestion__card-bottom-edit tk-energiberegner__suggestion__card-bottom-edit"+(u?"":"--closed")},(0,d.default)("h4",{class:"tk-energiberegner__suggestion__card-bottom-title"},(0,h.default)("WhatDoesItTakeLabel",e)),(0,d.default)("ul",{class:"tk-energiberegner__suggestion__card-bottom-list"},t.WhatDoesItTakeTexts.map(function(e){return""===e?null:(0,d.default)("li",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},d.default.trust(e))})))),(0,d.default)("button",{onclick:function(){u=!0},class:"tk-energiberegner__suggestion-edit-modal__item-link"+(u?"--closed":"")+" tk-energiberegner__suggestion-edit-modal__item-link"+(c?"--selected":"")},(0,h.default)("ReadMoreLabel",e)),(0,d.default)("button",{onclick:function(){u=!1},class:"tk-energiberegner__suggestion-edit-modal__item-link"+(u?"":"--closed")+" tk-energiberegner__suggestion-edit-modal__item-link"+(c?"--selected":"")},(0,h.default)("ReadLessLabel",e)),(0,d.default)("div",{onclick:function(e){return l(n)},class:"tk-energiberegner__suggestion-edit-modal__circle tk-energiberegner__suggestion-edit-modal__circle"+(c?"--selected":"")},(0,d.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--suggestion-checkmark"},(0,d.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},(0,d.default)("path",{fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M1 7l4 4L15 1"})))))}var u=!1,c=!1;return{oninit:function(){c=s.attrs.card.IsChosen},onupdate:function(){c=s.attrs.card.IsChosen},view:function(){var e=s.attrs.card,t=s.attrs.labels;return"Fjernvarme"===e.Type&&""!=f.default.state.editedState.Output.BbrBasedOutput.IfNotPossibleFJV&&null!=f.default.state.editedState.Output.BbrBasedOutput.IfNotPossibleFJV&&null!=f.default.state.editedState.Output.BbrBasedOutput.IfNotPossibleFJV||1===e.Category&&e.IsShown?n(t,e):void 0}}};var d=i(e("mithril")),f=i(e("../../store/EnergyCalculatorStore")),h=i(e("../../methods/LabelController")),p=e("../../../components/util/numberFormat");
1function i(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/util/numberFormat":17,"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,mithril:410}],34:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(o){function s(e,t){return e?(0,d.default)("li",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},t):null}function l(e){var t=0;i.default.state.editedState.Output.BbrBasedOutput.BbrProposals.forEach(function(e){e.IsChosen&&t++}),c?1!=t&&(i.default.mutations.selectSuggestion(!1,e),c=!1):(i.default.mutations.selectSuggestion(!0,e),c=!0)}function n(e,t){var n=o.attrs.index,i=null!=t.InfoInsulation&&null!=t.InfoInsulation&&""!=t.InfoInsulation,a=null!=t.InfoWindows&&null!=t.InfoWindows&&""!=t.InfoWindows,r=i||a;return(0,d.default)("article",{class:"tk-energiberegner__suggestion-edit-modal__item tk-energiberegner__suggestion-edit-modal__item--overlay-BBR tk-energiberegner__suggestion-edit-modal__item"+(c?"--selected":"")},(0,d.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__item-text-wrapper",onclick:function(){return l(n)}},(0,d.default)("h3",{class:"tk-energiberegner__body-text tk-energiberegner__body-text tk-energiberegner__suggestion-edit-modal__item-title--BBR-data tk-energiberegner__suggestion-edit-modal__item-title"+(c?"--selected":"")},t.Type),(0,d.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__text-container"},(0,d.default)("label",{class:"tk-energiberegner__suggestion-edit-modal__text-container__text tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,f.default)("YearlySavingsLabel",e)),(0,d.default)("p",{class:"tk-energiberegner__suggestion-edit-modal__item-text"},(0,h.applyThousandSeperatorNullCheck)(t.YearlySavings)," ",(0,d.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,f.default)("Currency",e)))),(0,d.default)("div",{class:"tk-energiberegner__suggestion-edit-modal__text-container"},(0,d.default)("label",{class:"tk-energiberegner__suggestion-edit-modal__text-container__text tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,f.default)("InvestmentForProposalLabel",e)),(0,d.default)("p",{class:"tk-energiberegner__suggestion-edit-modal__item-text"},(0,h.applyThousandSeperatorNullCheck)(t.Investment)," ",(0,d.default)("span",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,f.default)("Currency",e)))),(0,d.default)("section",{class:"tk-energiberegner__suggestion__card-bottom-edit tk-energiberegner__suggestion__card-bottom-edit"+(u?"":"--closed")},(0,d.default)("h4",{class:"tk-energiberegner__suggestion__card-bottom-title"},r?(0,f.default)("InfoLabel",e):(0,f.default)("WhatDoesItTakeLabel",e)),(0,d.default)("ul",{class:"tk-energiberegner__suggestion__card-bottom-list"},s(i,t.InfoInsulation),s(a,t.InfoWindows),t.WhatDoesItTakeTexts.map(function(e){return""===e?null:(0,d.default)("li",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--small"},d.default.trust(e))})))),(0,d.default)("button",{onclick:function(){u=!0},class:"tk-energiberegner__suggestion-edit-modal__item-link"+(u?"--closed":"")+" tk-energiberegner__suggestion-edit-modal__item-link"+(c?"--selected":"")},(0,f.default)("ReadMoreLabel",e)),(0,d.default)("button",{onclick:function(){u=!1},class:"tk-energiberegner__suggestion-edit-modal__item-link"+(u?"":"--closed")+" tk-energiberegner__suggestion-edit-modal__item-link"+(c?"--selected":"")},(0,f.default)("ReadLessLabel",e)),(0,d.default)("div",{onclick:function(e){return l(n)},class:"tk-energiberegner__suggestion-edit-modal__circle tk-energiberegner__suggestion-edit-modal__circle"+(c?"--selected":"")},(0,d.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--suggestion-checkmark"},(0,d.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},(0,d.default)("path",{fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M1 7l4 4L15 1"})))))}var u=!1,c=!1;return{oninit:function(){c=o.attrs.card.IsChosen},onupdate:function(){c=o.attrs.card.IsChosen},view:function(){var e=o.attrs.card,t=o.attrs.labels;if(2===e.Category&&e.IsShown)return n(t,e)}}};var d=a(e("mithril")),i=a(e("../../store/EnergyCalculatorStore")),f=a(e("../../methods/LabelController")),h=e("../../../components/util/numberFormat");
1function a(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/util/numberFormat":17,"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,mithril:410}],23:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){function u(){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - energiberegner",eventLabel:"se resultat",eventValue:0,eventNoninteraction:!0}),document.querySelector(".tk-energiberegner__scroll-to-suggestion-js").scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}function l(){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - energiberegner",eventLabel:"hent energimærkerapport",eventValue:0,eventNoninteraction:!0})}function c(e){return(0,y.default)(C.default,{text:(0,b.default)("YourHouseTooltipRoof",e)})}function d(e){return(0,y.default)(C.default,{text:(0,b.default)("YourHouseTooltipHeat",e)})}function f(e){return(0,y.default)(C.default,{text:(0,b.default)("YourHouseTooltipAbout",e)})}function h(e){return(0,y.default)(C.default,{text:(0,b.default)("YourHouseTooltipCellar",e)})}function p(e){return(0,y.default)(C.default,{text:(0,b.default)("YourHouseTooltipWindowsAndFacade",e)})}function m(e,t,n,i){var a,r,o,s={title:(0,b.default)("OilGrantPopupHeadline",e),text:(0,b.default)("OilGrantPopupText",e),type:"1"},l={title:(0,b.default)("GasGrantPopupHeadline",e),text:(0,b.default)("GasGrantPopupText",e),type:"1"};return(0,y.default)("section",{class:"tk-energiberegner__house-info__container"},(0,y.default)("div",{class:"tk-energiberegner__house-info__row-container tk-energiberegner__house-info__row-container"+(n.IsWithEnergyMark?"--hasEnergiLabel":"")},(0,y.default)("section",{class:"tk-energiberegner__house-info__item-wrapper--center tk-energiberegner__house-info__item-wrapper--center--top-margin tk-energiberegner__house-info__item-wrapper"+(n.IsWithEnergyMark?"--hidden":"")},(0,y.default)("div",{class:"tk-energiberegner__house-info__item\r tk-energiberegner__house-info__item-border__middle\r tk-energiberegner__house-info__item-border--color-yellow"},(0,y.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,y.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,b.default)("RoofLabel",e)),c(e)),(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--short-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("RoofTypeLabel",e)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.RoofInput.TypeOfRoof?(0,b.default)("YourHouseUnknownInput",e):t.RoofInput.TypeOfRoof)),"Opvarmet tagetage"===t.RoofInput.TypeOfRoof?(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--short-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("RoofAreaLabel",e)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},t.RoofInput.AreaOfRoof," ",(0,b.default)("KvmUnitLabel",e))):null,(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--short-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("RoofInsulationLabel",e)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.RoofInput.SelectedInsulationOfRoof?(0,b.default)("YourHouseUnknownInput",e):(0,A.applyThousandSeperatorNullCheck)(t.RoofInput.SelectedInsulationOfRoof)+" "+(0,b.default)("MmUnitLabel",e))))),(0,y.default)("section",{class:"tk-energiberegner__house-info__item-wrapper"},(0,y.default)("div",{class:"tk-energiberegner__house-info__item tk-energiberegner__house-info__item-border__left tk-energiberegner__house-info__item-border--color-light-yellow tk-energiberegner__house
1-info__item"+(n.IsWithEnergyMark?"--energyLabel-about-house":"")},(0,y.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,y.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,b.default)("AbouthouseLabel",e)),n.IsWithEnergyMark?null:f(e)),(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--short-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("AbouthouseBuildyearLabel",e)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},t.AboutHouseInput.BuildYear)),(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--short-width tk-energiberegner__house-info__single-label-row"+(n.IsWithEnergyMark?"--hidden":"")},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("AbouthouseAreaLabel",e)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},(0,A.applyThousandSeperatorNullCheck)(t.AboutHouseInput.LivingArea)," ",(0,b.default)("KvmUnitLabel",e))),(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--short-width tk-energiberegner__house-info__single-label-row"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("AbouthouseFloorCountLabel",e)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.AboutHouseInput.SelectedNumberOfFloors?(0,b.default)("YourHouseUnknownInput",e):t.AboutHouseInput.SelectedNumberOfFloors))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item tk-energiberegner__house-info__item-border__right tk-energiberegner__house-info__item-border--color-orange tk-energiberegner__house-info__item-border__bottom tk-energiberegner__house-info__item"+(n.IsWithEnergyMark?"--hidden ":" ")},(0,y.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,y.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,b.default)("WindowsAndFacadeLabel",e)),p(e)),(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--long-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("WindowsAndFacadeTypeLabel",e)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.EnvironmentalShellInput.TypeOfWindows?(0,b.default)("YourHouseUnknownInput",e):t.EnvironmentalShellInput.TypeOfWindows)),(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--long-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("WindowsAndFacadeAreaLabel",e)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},t.EnvironmentalShellInput.AreaOfWindows," ",(0,b.default)("KvmUnitLabel",e))),(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--long-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("WindowsAndFacadeInsulationLabel",e)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.EnvironmentalShellInput.SelectedOuterInsulationThickness?(0,b.default)("YourHouseUnknownInput",e):(0,A.applyThousandSeperatorNullCheck)(t.EnvironmentalShellInput.SelectedOuterInsulationThickness)+" "+(0,b.default)("MmUnitLabel",e))))),(0,y.default)("section",{class:"tk-energiberegner__house-info__item-wrapper"},(0,y.default)("div",{class:"tk-energiberegner__house-info__item"+(n.IsWithEnergyMark?"--hidden ":" ")+"tk-energiberegner__house-info__item-border__left tk-energiberegner__house-info__item-border--color-orange tk-energiberegner__house-info__item-border__bottom "}
1,(0,y.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,y.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,b.default)("BasementLabel",e)),h(e)),(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--short-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("BasementTypeLabel",e)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.CellarInput.TypeOfCellar?(0,b.default)("YourHouseUnknownInput",e):t.CellarInput.TypeOfCellar)),"Ingen"===t.CellarInput.TypeOfCellar?null:(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--short-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("BasementSizeLabel",e)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},t.CellarInput.AreaOfCellar," ",(0,b.default)("KvmUnitLabel",e))),"Opvarmet kælder"===t.CellarInput.TypeOfCellar?(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--short-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("FloorInsulationLabel",e)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.CellarInput.SelectedFloorInsulationThickness?(0,b.default)("YourHouseUnknownInput",e):(0,A.applyThousandSeperatorNullCheck)(t.CellarInput.SelectedFloorInsulationThickness)+" "+(0,b.default)("MmUnitLabel",e))):null),(0,y.default)("div",{class:"tk-energiberegner__house-info__item"+(n.IsWithEnergyMark?" tk-energiberegner__house-info__item--energyLabel-heating ":" ")+"tk-energiberegner__house-info__item-border__right tk-energiberegner__house-info__item-border--color-yellow tk-energiberegner__house-info__item-border__bottom "},(0,y.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,y.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,b.default)("HeatingLabel",e)),n.IsWithEnergyMark?(0,y.default)(C.default,{text:(0,b.default)("YourHouseTooltipHeatEnergyMark",e)}):d(e)),(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--long-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("HeatingConsumptionLabel",e)),n.IsWithEnergyMark?(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},(0,A.applyThousandSeperatorNullCheck)(t.HeatingInput.AnnualConsumptionEnergyMark)+" "+(0,b.default)("Currency",e)):(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},(0,A.applyThousandSeperatorNullCheck)(t.HeatingInput.AnnualConsumption)+" "+(0,b.default)("Currency",e))),(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--long-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("HeatingSourceLabel",e)),n.IsWithEnergyMark?(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.HeatingInput.TypeOfHeatingEnergy?(0,b.default)("YourHouseUnknownInput",e):t.HeatingInput.TypeOfHeatingEnergy):(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.HeatingInput.TypeOfHeating?(0,b.default)("YourHouseUnknownInput",e):t.HeatingInput.TypeOfHeating)),k.default.state.output.ShowOilGrant&&"Olie"===k.default.state.input.HeatingInput.TypeOfHeating?(0,y.default)("div",{onclick:function(){return k.default.actions.openModalPopup(s)},class:"tk-energiberegner__body-text tk-energiberegner__body-text__grant-link"},(0,b.default)("OilGrantPopupLinkLabel",e)):"",k.default.state.output.ShowGasGrant&&"Naturgas"===k.default.state.input.HeatingInput.TypeOfHeating?(0,y.default)("div",{onclick:function(){return k.default.actions.openModalPopup(l)},class:"tk-energiberegner__body-text tk-energiberegner__body-text__grant-link"}
1,(0,b.default)("GasGrantPopupLinkLabel",e)):"")),(a=e,r=t.CellarInput,o=n.IsWithEnergyMark,"Opvarmet kælder"===r.TypeOfCellar?null:"Uopvarmet kælder"===r.TypeOfCellar?(0,y.default)("section",{class:"tk-energiberegner__house-info__item-wrapper"+(o?"--hidden":"")},(0,y.default)("div",{class:"tk-energiberegner__house-info__item \r tk-energiberegner__house-info__item-border__left\r tk-energiberegner__house-info__item-border__bottom\r tk-energiberegner__house-info__item-border--color-yellow"},(0,y.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,y.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,b.default)("FloorToCellarLabel",a)),_(a)),(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--short-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("FloorInsulationLabel",a)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===r.SelectedFloorInsulationThickness?(0,b.default)("YourHouseUnknownInput",a):(0,A.applyThousandSeperatorNullCheck)(r.SelectedFloorInsulationThickness)+" "+(0,b.default)("MmUnitLabel",a))))):(0,y.default)("section",{class:"tk-energiberegner__house-info__item-wrapper"+(o?"--hidden":"")},(0,y.default)("div",{class:"tk-energiberegner__house-info__item\r tk-energiberegner__house-info__item-border__left\r tk-energiberegner__house-info__item-border--color-orange\r tk-energiberegner__house-info__item-border__bottom"},(0,y.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,y.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,b.default)("FloorLabel",a)),v(a)),(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--short-width"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,b.default)("FloorInsulationLabel",a)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===r.SelectedFloorInsulationThickness?(0,b.default)("YourHouseUnknownInput",a):(0,A.applyThousandSeperatorNullCheck)(r.SelectedFloorInsulationThickness)+" "+(0,b.default)("MmUnitLabel",a))))))),n.IsWithEnergyMark?y.default.fragment({},[(0,y.default)("div",{class:"tk-energiberegner__house-info__house-image tk-energiberegner__house-info__house-image"},(0,E.default)(n.YourHouseSvgVariety)),(0,y.default)("div",{class:"tk-energiberegner__house-info__button-container tk-energiberegner__house-info__button-container--energimaerke"},t.BbrData.Entity.ENH_ANVEND_KODE===O.HOUSE&&(0,y.default)("button",{class:"tk-button tk-button--primary-border tk-energiberegner__button",onclick:function(){return i.state.open()}},(0,b.default)("CorrectInformationButtonLabel",e)),(0,y.default)("button",{class:"tk-button tk-button--secondary tk-energiberegner__button",onclick:u},(0,b.default)("SeeResultButtonLabel",e)))]):y.default.fragment({},[(0,y.default)("div",{class:"tk-energiberegner__house-info__house-image tk-energiberegner__house-info__house-image"+("Opvarmet kælder"===t.CellarInput.TypeOfCellar?"--no-cellar":"")},(0,E.default)(n.YourHouseSvgVariety)),(0,y.default)("div",{class:"tk-energiberegner__house-info__button-container tk-energiberegner__house-info__button-container"+("Opvarmet kælder"===t.CellarInput.TypeOfCellar?"--no-cellar":"")},t.BbrData.Entity.ENH_ANVEND_KODE===O.HOUSE&&(0,y.default)("button",{class:"tk-button tk-button--primary-border tk-energiberegner__button",onclick:function(){return g.displayOverlay()}},(0,b.default)("CorrectInformationButtonLabel",e)),(0,y.default)("button",{class:"tk-button tk-button--primary tk-energiberegner__button",onclick:u},(0,b.default)("SeeResultButtonLabel",e)))]))}var e=document.body,g={visible:!1,displayOverlay:function(){g.visible=!0,e.classList.add("tk-energiberegner__no-scroll"),window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - energiberegner",eventLabel:"ret oplysninger",eventValue:0,eventNoninteraction:!0})},closeOverlay:function(){g.visible=!1,e.classList.remove("tk-energiberegner__no-scroll")}},v=function(e){return(0,y.default)(C.default,{text:(0,b.default)("YourHouseTooltipFloor",e)})},_=function(e){return(0,y.default)(C.default,{text:(0,b.default)("YourHouseTooltipFloorToCellar",e)}
1)};return{oncreate:function(){},view:function(){var e,t,n,i=k.default.state.labels,a=k.default.state.input,r=k.default.state.output,o=k.default.state.output.EnergyMarkBasedOutput.EnergyLabelValidFrom,s=(k.default.state.output.EnergyMarkBasedOutput.EnergyLabelValidTo,(0,y.default)(T.default,{title:i.SwitchCalculatorModalHeadline,text:i.SwitchCalculatorModalText,goToOverlay:g}));return console.log("labels",i),console.log("input",a),console.log("output",r),console.log("modal",s),(0,y.default)("div",{class:"tk-energiberegner__scroll-to-house-js tk-energiberegner__loading-wrapper"+(k.default.state.resultIsVisible?"":"--remove-padding")},(0,y.default)("div",{class:"tk-energiberegner__spinner"+(k.default.state.spinnerIsActive?"":"--hidden")},(0,y.default)(S.default,null)),(0,y.default)("section",{id:"oplysningeromdithus",class:"tk-energiberegner__house-info tk-energiberegner__house-info"+(k.default.state.resultIsVisible?"":"--hidden")},(0,y.default)("div",{class:"tk-energiberegner__house-info__info-container"},(0,y.default)("h2",{class:"tk-typography--title-lg tk-beregner__title__energiberegner tk-beregner__title__energiberegner--small-margin"},(0,b.default)("YourHouseHeadline",i)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text tk-energiberegner__body-text--subheading-text--desktop"},function(e,t){var n=k.default.state.labels;switch(e){case O.HOUSE:return t.IsWithEnergyMark?(0,b.default)("YourHouseSubHeaderEnergyMark",n):(0,b.default)("YourHouseSubHeader",n);case O.TOWNHOME_OLD:case O.TOWNHOME:return(0,b.default)("YourHouseSubHeaderTownHome",n);case O.SUMMERHOUSE:return(0,b.default)("YourHouseSubHeaderSommerHouse",n);default:return(0,b.default)("YourHouseSubHeader",n)}}(a.BbrData.Entity.ENH_ANVEND_KODE,r)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text tk-energiberegner__body-text--subheading-text--mobile"},function(e,t){var n=k.default.state.labels;switch(e){case O.HOUSE:return t.IsWithEnergyMark?(0,b.default)("YourHouseSubHeaderEnergyMark",n):(0,b.default)("YourHouseSubHeaderMobile",n);case O.TOWNHOME_OLD:case O.TOWNHOME:return(0,b.default)("YourHouseSubHeaderTownHomeMobile",n);case O.SUMMERHOUSE:return(0,b.default)("YourHouseSubHeaderSommerHouseMobile",n);default:return(0,b.default)("YourHouseSubHeaderMobile",n)}}(a.BbrData.Entity.ENH_ANVEND_KODE,r)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--address"},k.default.state.dawaAddressResult)),r.IsWithEnergyMark&&840<window.innerWidth&&(0,y.default)("div",{class:"tk-energiberegner__energy-label-block"},(0,y.default)("div",{class:"tk-energiberegner__house-info__mini-energy-label"},(0,y.default)("img",{src:(0,x.default)("MiniEnergyIcon",r),alt:"Energylabel icon"})),(0,y.default)("div",{class:"tk-energiberegner--reportContainer"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text tk-energiberegner__body-text--energy-label-validity"},(0,b.default)("EnergyLabelValidFromLabel",i)," ",o),k.default.state.input.EmoData.EntityIdentifier&&(0,y.default)("a",{class:"tk-button tk-energimaerkerapport",href:"https://www.totalkredit.dk/energi/energiberegner/energimaerkerapport?EntityIdentifier="+k.default.state.input.EmoData.EntityIdentifier,onclick:l},"Hent energimærkerapporten"))),m(i,a,r,s),(o=i,i=a,a=r,e=s,t={title:(0,b.default)("OilGrantPopupHeadline",o),text:(0,b.default)("OilGrantPopupText",o),type:"1"},n={title:(0,b.default)("GasGrantPopupHeadline",o),text:(0,b.default)("GasGrantPopupText",o),type:"1"},(0,y.default)("section",{class:"tk-energiberegner__house-info__container tk-energiberegner__house-info__container--mobile"},a.IsWithEnergyMark&&(0,y.default)("div",{class:"tk-energiberegner__energy-label-block"},(0,y.default)("div",{class:"tk-energiberegner__house-info__mini-energy-label"},(0,y.default)("img",{src:(0,x.default)("MiniEnergyIcon",a),alt:"Energylabel icon"})),(0,y.default)("div",{class:"tk-energiberegner--reportContainer"},(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text tk-energiberegner__body-text--energy-label-validity"},(0,b.default)("EnergyLabelValidFromLabel",o)," ",a.EnergyMarkBasedOutput.EnergyLabelValidFrom),k.default.state.input.EmoData.EntityIdentifier&&(0,y.default)("a",{class:"tk-button tk-energimaerkerapport",href:"https://www.totalkredit.dk/energi/energiberegner/energimaerkerapport?EntityIdentifier="+k.default.state.input.EmoData.EntityIdentifier,oncl
1ick:l},"Hent energimærkerapporten"))),(0,y.default)("div",{class:"tk-energiberegner__house-info__house-image tk-energiberegner__house-info__house-image "+("Opvarmet kælder"===i.CellarInput.TypeOfCellar?"--no-cellar":"")},(0,E.default)(a.YourHouseSvgVariety)),k.default.state.output.ShowOilGrant&&"Olie"===k.default.state.input.HeatingInput.TypeOfHeating?(0,y.default)("div",{onclick:function(){return k.default.actions.openModalPopup(t)},class:"tk-energiberegner__body-text tk-energiberegner__body-text__grant-link-mobile"},(0,b.default)("OilGrantPopupLinkLabel",o)):"",k.default.state.output.ShowGasGrant&&"Naturgas"===k.default.state.input.HeatingInput.TypeOfHeating?(0,y.default)("div",{onclick:function(){return k.default.actions.openModalPopup(n)},class:"tk-energiberegner__body-text tk-energiberegner__body-text__grant-link-mobile"},(0,b.default)("GasGrantPopupLinkLabel",o)):"",a.IsWithEnergyMark?(0,y.default)("div",{class:"tk-energiberegner__label-section"},(0,y.default)("section",{class:"tk-energiberegner__house-info__row-container tk-energiberegner__house-info__row-container--mobile"},(0,y.default)("div",{onclick:function(){return e.state.open()},class:"tk-energiberegner__house-info__item-wrapper tk-energiberegner__house-info__item-wrapper--mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("AbouthouseBuildyearLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},i.AboutHouseInput.BuildYear))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("AbouthouseFloorCountLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===i.AboutHouseInput.SelectedNumberOfFloors?(0,b.default)("YourHouseUnknownInput",o):i.AboutHouseInput.SelectedNumberOfFloors))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("HeatingConsumptionLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},(0,A.applyThousandSeperatorNullCheck)(i.HeatingInput.AnnualConsumptionEnergyMark)+" "+(0,b.default)("Currency",o)))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("HeatingSourceLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===i.HeatingInput.TypeOfHeatingEnergy?(0,b.default)("YourHouseUnknownInput",o):i.HeatingInput.TypeOfHeatingEnergy)))))):(0,y.default)("div",{class:"tk-energiberegner__label-section"},(0,y.default)("section",{class:"tk-energiberegner__house-info__row-container tk-energiberegner__house-info__row-container--mobile"},(0,y.default)("div",{onclick:function(){return g.displayOverlay()},class:"tk-energiberegner__house-info__item-wrapper tk-energiberegner__house-info__item-wrapper--mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text "},(0,b.default)("RoofTypeLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===i.RoofInput.TypeOfRoof?(0,b.default)("YourHouseUnknownInput",o):i.RoofInput.TypeOfRoof))),"Opvarmet tagetage"===i.RoofInput.TypeOfRoof?(0,y.default)("div",{class:"tk-energiberegner__house
1-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("RoofAreaLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},i.RoofInput.AreaOfRoof," ",(0,b.default)("KvmUnitLabel",o)))):null,(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("RoofInsulationLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===i.RoofInput.SelectedInsulationOfRoof?(0,b.default)("YourHouseUnknownInput",o):(0,A.applyThousandSeperatorNullCheck)(i.RoofInput.SelectedInsulationOfRoof)+" "+(0,b.default)("MmUnitLabel",o)))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("AbouthouseBuildyearLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},i.AboutHouseInput.BuildYear))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("AbouthouseAreaLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},(0,A.applyThousandSeperatorNullCheck)(i.AboutHouseInput.LivingArea)," ",(0,b.default)("KvmUnitLabel",o)))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("AbouthouseFloorCountLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===i.AboutHouseInput.SelectedNumberOfFloors?(0,b.default)("YourHouseUnknownInput",o):i.AboutHouseInput.SelectedNumberOfFloors))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("HeatingConsumptionLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},(0,A.applyThousandSeperatorNullCheck)(i.HeatingInput.AnnualConsumption)+" "+(0,b.default)("Currency",o)))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("HeatingSourceLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===i.HeatingInput.TypeOfHeating?(0,b.default)("YourHouseUnknownInput",o):i.HeatingInput.TypeOfHeating))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"+("Ingen"===i.CellarInput.TypeOfCellar?"--hidden":"")},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("BasementTypeLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===i.CellarInput.TypeOfCellar?(0,b.default)("YourHouseUnknownInput",o):i.CellarInput.TypeOfCellar))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"+("Ingen"===i.CellarInput.TypeOfCellar?"--hidden":"")},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house
1-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("BasementSizeLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},i.CellarInput.AreaOfCellar," ",(0,b.default)("KvmUnitLabel",o)))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("FloorInsulationLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===i.CellarInput.SelectedFloorInsulationThickness?(0,b.default)("YourHouseUnknownInput",o):(0,A.applyThousandSeperatorNullCheck)(i.CellarInput.SelectedFloorInsulationThickness)+" "+(0,b.default)("MmUnitLabel",o)))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("WindowsAndFacadeTypeLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===i.EnvironmentalShellInput.TypeOfWindows?(0,b.default)("YourHouseUnknownInput",o):i.EnvironmentalShellInput.TypeOfWindows))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("WindowsAndFacadeAreaLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},i.EnvironmentalShellInput.AreaOfWindows," ",(0,b.default)("KvmUnitLabel",o)))),(0,y.default)("div",{class:"tk-energiberegner__house-info__item__mobile"},(0,y.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--mobile"},(0,y.default)("p",{class:"tk-energiberegner__body-text"},(0,b.default)("WindowsAndFacadeInsulationLabel",o)),(0,y.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===i.EnvironmentalShellInput.SelectedOuterInsulationThickness?(0,b.default)("YourHouseUnknownInput",o):(0,A.applyThousandSeperatorNullCheck)(i.EnvironmentalShellInput.SelectedOuterInsulationThickness)+" "+(0,b.default)("MmUnitLabel",o))))))),a.IsWithEnergyMark?(0,y.default)("div",{class:"tk-energiberegner__house-info__button-container tk-energiberegner__house-info__button-container--no-cellar"},i.BbrData.Entity.ENH_ANVEND_KODE===O.HOUSE&&(0,y.default)("button",{class:"tk-button tk-button--primary-border tk-energiberegner__button",onclick:function(){return e.state.open()}},(0,b.default)("CorrectInformationButtonLabel",o)),(0,y.default)("button",{class:"tk-button tk-button--primary tk-energiberegner__button",onclick:u},(0,b.default)("SeeResultButtonLabel",o))):(0,y.default)("div",{class:"tk-energiberegner__house-info__button-container tk-energiberegner__house-info__button-container"+("Opvarmet kælder"===i.CellarInput.TypeOfCellar||"Ingen"===i.CellarInput.TypeOfCellar?"--no-cellar":"")},i.BbrData.Entity.ENH_ANVEND_KODE===O.HOUSE&&(0,y.default)("button",{class:"tk-button tk-button--primary-border tk-energiberegner__button",onclick:function(){return g.displayOverlay()}},(0,b.default)("CorrectInformationButtonLabel",o)),(0,y.default)("button",{class:"tk-button tk-button--secondary tk-energiberegner__button",onclick:u},(0,b.default)("SeeResultButtonLabel",o))),e)),(0,y.default)(w.default,{overlay:g,renderToolTipRoof:c,renderToolTipHeat:d,renderToolTipAbout:f,renderToolTipCellar:h,renderToolTipFloor:v,renderToolTipFloorToCellar:_,renderToolTipWindowsAndFacade:p}),s))}}};var y=i(e("mithril")),b=i(e("../../methods/LabelController")),k=i(e("../../store/EnergyCalculatorStore")),w=i(e("./CalculatorResultEditOverlay.mithril")),S=i(e("../../../components/spinner/ts-spinner")),x=i(e("../../methods/imagePathController")),C=i(e("../../../components/tooltip/ts-tooltip")),T=i(e("../../components/modal/energiberegner-modal-buttons")),E=i(e("./CalculatorHouseSVG")),A=e("../../../components/util/numberFormat");
1function i(e){return e&&e.__esModule?e:{default:e}}var O={HOUSE:"120",TOWNHOME_OLD:"130",TOWNHOME:"131",SUMMERHOUSE:"510"}},{"../../../components/spinner/ts-spinner":10,"../../../components/tooltip/ts-tooltip":11,"../../../components/util/numberFormat":17,"../../components/modal/energiberegner-modal-buttons":43,"../../methods/LabelController":49,"../../methods/imagePathController":54,"../../store/EnergyCalculatorStore":58,"./CalculatorHouseSVG":22,"./CalculatorResultEditOverlay.mithril":24,mithril:410}],43:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=l(e("mithril")),o=l(e("../../store/EnergyCalculatorStore")),s=l(e("../../methods/LabelController"));function l(e){return e&&e.__esModule?e:{default:e}}i(u,[{key:"oninit",value:function(){this.modalIsOpen=!1,this.open=function(){this.modalIsOpen=!0},this.close=function(){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - energiberegner",eventLabel:"luk oplysninger",eventValue:0,eventNoninteraction:!0}),this.modalIsOpen=!1}}},{key:"view",value:function(e){var t=this;this.labels=o.default.state.labels,this.title=e.attrs.title,this.text=e.attrs.text,this.goToOverlay=e.attrs.goToOverlay;if(e.attrs.title)return(0,r.default)("div",{className:"tk-modal "+(!0===e.state.modalIsOpen?"tk-modal--is-active":"")},(0,r.default)("div",{class:"tk-modal__backdrop",onclick:function(){e.state.close()}}),(0,r.default)("div",{class:"tk-energiberegner__modal__content"},(0,r.default)("div",{class:"tk-energiberegner__modal__close",onclick:function(){e.state.close()}},(0,r.default)("svg",{viewBox:"0 0 48 48",width:"100%",height:"100%"},(0,r.default)("path",{stroke:"#696057","stroke-width":"3px",d:"M9.9 9.9l28.3 28.3m-.1-28.3L9.9 38.1"}))),(0,r.default)("div",{class:"tk-energiberegner__modal__content__inner"},(0,r.default)("h2",{class:"tk-typography--title-lg tk-beregner__title tk-energiberegner__modal__title"},this.title),(0,r.default)("div",{class:"tk-energiberegner__modal__image-container"+(this.image?"":"--hidden")},(0,r.default)("img",{class:"tk-energiberegner__modal__image-container__image",src:this.image,alt:"Popup illustration"})),(0,r.default)("div",{class:"tk-modal__text-container tk-energiberegner__modal__text-container"},r.default.trust(this.text)),(0,r.default)("div",{class:"tk-energiberegner__modal__primary-button-container"},(0,r.default)("button",{onclick:function(){return e.state.close()},class:"tk-button tk-button--primary tk-energiberegner__button tk-energiberegner__button--fixed-length"},(0,s.default)("BackToCalculationLabel",this.labels)),(0,r.default)("button",{onclick:function(){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - energiberegner",eventLabel:"oplysninger gå videre",eventValue:0,eventNoninteraction:!0}),o.default.mutations.setDataToBBR(),t.goToOverlay.displayOverlay(),e.state.close()},class:"tk-button tk-button--primary tk-energiberegner__button tk-energiberegner__button--fixed-length"},(0,s.default)("NewCalculationLabel",this.labels))))))}}]);e=u;function u(){if(!(this instanceof u))throw new TypeError("Cannot call a class as a function")}n.default=e},{"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,mithril:410}],24:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){function r(e,t,n,i,a){return e=y(e,t,n,i),parseInt(a)>=e?(S(a,A.default.mutations.setAreaOfHouse),g=a,!1):(S(a,A.default.mutations.setAreaOfHouse),g=a,!0)}function o(e,t,n,i){return e=b(e,t,n),parseInt(i)<=e?(S(v=i,A.default.mutations.setAreaOfWindows),!1):(S(i,A.default.mutations.setAreaOfWindows),v=i,!0)}function s(){A.default.actions.postEditedStateResults(t,n,function(){document.querySelector(".tk-energiberegner__scroll-to-house-js").scrollIntoView({behavior:"smooth",block:"start"})}),l.closeOverlay()}function i(e,t){return(0,C.default)("section",{class:"tk-energiberegner__house
1-info__container tk-energiberegner__house-info__container--mobile-edit-modal"},(0,C.default)("div",{class:"tk-energiberegner__house-info__button-container tk-energiberegner__house-info__button-container--modal"},A.default.state.AreaOfWindowsInputIsTooHigh||A.default.state.LivingAreaInputIsTooHigh?(0,C.default)("button",{onclick:s,disabled:!0,class:"tk-button tk-button--primary-border tk-energiberegner__button"},(0,T.default)("SaveChangesButtonLabel",e)):(0,C.default)("button",{onclick:s,class:"tk-button tk-button--primary-border tk-energiberegner__button"},(0,T.default)("SaveChangesButtonLabel",e))),(0,C.default)("div",{onclick:function(){return k(t.RoofInput,"TypeOfRoofList","TypeOfRoof",A.default.mutations.setRoofType)},class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("RoofTypeLabelMobile",e)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.RoofInput.TypeOfRoof?(0,T.default)("YourhouseChooseOnePlaceholder",e):t.RoofInput.TypeOfRoof)),x()),"Opvarmet tagetage"===t.RoofInput.TypeOfRoof?(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("label",{for:"input-roof-area-mobile",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("RoofSizeLabelMobile",e)),(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item-wrapper"},(0,C.default)("input",{id:"input-roof-area-mobile",onchange:function(e){return S(e.target.value,A.default.mutations.setAreaOfRoof)},value:t.RoofInput.AreaOfRoof,placeholder:t.RoofInput.AreaOfRoof,class:"tk-energiberegner__edit-input tk-energiberegner__body-text tk-energiberegner__body-text__data-label"}),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},(0,T.default)("KvmUnitLabel",e))))):null,(0,C.default)("div",{onclick:function(){return k(t.RoofInput,"InsulationOfRoofList","SelectedInsulationOfRoof",A.default.mutations.setRoofInsulation)},class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("RoofInsulationLabelMobile",e)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.RoofInput.SelectedInsulationOfRoof?(0,T.default)("YourhouseChooseOnePlaceholder",e):t.RoofInput.SelectedInsulationOfRoof+" "+(0,T.default)("MmUnitLabel",e))),x()),(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("BuildYearLabelMobile",e)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label tk-energiberegner__body-text__data-label--disabled"},null===t.AboutHouseInput.BuildYear?(0,T.default)("YourHouseUnknownInput",e):t.AboutHouseInput.BuildYear))),(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("label",{for:"input-area-mobile",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("LivingAreaLabelMobile",e)),(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item-wrapper"},(0,C.default)("input",{id:"input-area-mobile",onchange:function(e){return A.default.mutations.updateLivingAreaInputIsTooHigh(r(t.ValidationParameters.FloorHeightValidationOutput,t.EnvironmentalShellInput.AreaOfWindows,t.AboutHouseInput.SelectedNumberOfFloors,t.ValidationParameters.HouseGeometriValidationOutput,e.target.value))},value:g,placeholder:t.AboutHouseInput.LivingArea+" "+(0,T.default)("KvmUnitLabel",e),type:"text",class:"tk-energiberegner__edit-input tk-energiberegner__body-text tk-energiberegner__body-text__data-label"}),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},(0,T.default)("KvmUnitLabel",e)),(0,C.default)(O.default,{visible:A.default.state.LivingAreaInputIsTooHigh,message:(0,T.default)("HouseAreaValidationLabel",e)}
1)))),(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("NumberOfFloorsLabelMobile",e)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label tk-energiberegner__body-text__data-label--disabled"},null===t.AboutHouseInput.SelectedNumberOfFloors?(0,T.default)("YourHouseUnknownInput",e):t.AboutHouseInput.SelectedNumberOfFloors))),(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("label",{for:"input-annual-heat-consumption",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("YearlyConsumptionLabelMobile",e)),(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item-wrapper"},(0,C.default)("input",{id:"input-annual-heat-consumption",onchange:function(e){return S(e.target.value,A.default.mutations.setHeatingAnnualConsumption)},value:t.HeatingInput.AnnualConsumption,placeholder:t.HeatingInput.AnnualConsumption,class:"tk-energiberegner__edit-input tk-energiberegner__body-text tk-energiberegner__body-text__data-label"}),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},(0,T.default)("Currency",e))))),(0,C.default)("div",{onclick:function(){return k(t.HeatingInput,"TypeOfHeatingList","TypeOfHeating",A.default.mutations.setHeatingSource)},class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("PrimaryHeatSourceLabelMobile",e)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.HeatingInput.TypeOfHeating?(0,T.default)("YourhouseChooseOnePlaceholder",e):t.HeatingInput.TypeOfHeating)),x()),(0,C.default)("div",{onclick:function(){return k(t.CellarInput,"TypeOfCellarList","TypeOfCellar",A.default.mutations.setCellarType)},class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("CellarTypeLabelMobile",e)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.CellarInput.TypeOfCellar?(0,T.default)("YourhouseChooseOnePlaceholder",e):t.CellarInput.TypeOfCellar)),x()),"Ingen"===t.CellarInput.TypeOfCellar?null:(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("label",{for:"input-cellar-area-mobile",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("CellarSizeLabelMobile",e)),(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item-wrapper"},(0,C.default)("input",{id:"input-cellar-area-mobile",onchange:function(e){return S(e.target.value,A.default.mutations.setAreaOfCellar)},value:t.CellarInput.AreaOfCellar,placeholder:t.CellarInput.AreaOfCellar,class:"tk-energiberegner__edit-input tk-energiberegner__body-text tk-energiberegner__body-text__data-label"}),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},(0,T.default)("KvmUnitLabel",e))))),"Opvarmet kælder"===t.CellarInput.TypeOfCellar?(0,C.default)("div",{onclick:function(){return k(t.CellarInput,"FloorInsulationThicknessList","SelectedFloorInsulationThickness",A.default.mutations.setCellarFloorInsulation)},class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("CellarFloorTypeLabelMobile",e)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"}
1,null===t.CellarInput.SelectedFloorInsulationThickness?(0,T.default)("YourhouseChooseOnePlaceholder",e):t.CellarInput.SelectedFloorInsulationThickness+" "+(0,T.default)("MmUnitLabel",e))),x()):null,(n=e,i=t.CellarInput,a=t,"Opvarmet kælder"===i.TypeOfCellar?null:"Uopvarmet kælder"===i.TypeOfCellar?(0,C.default)("div",{onclick:function(){return k(a.CellarInput,"FloorInsulationThicknessList","SelectedFloorInsulationThickness",A.default.mutations.setCellarFloorInsulation)},class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("CellarFloorTypeLabelMobile",n)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===a.CellarInput.SelectedFloorInsulationThickness?(0,T.default)("YourhouseChooseOnePlaceholder",n):a.CellarInput.SelectedFloorInsulationThickness+" "+(0,T.default)("MmUnitLabel",n))),x()):(0,C.default)("div",{onclick:function(){return k(a.CellarInput,"FloorInsulationThicknessList","SelectedFloorInsulationThickness",A.default.mutations.setCellarFloorInsulation)},class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("FloorInsulationMobile",n)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===a.CellarInput.SelectedFloorInsulationThickness?(0,T.default)("YourhouseChooseOnePlaceholder",n):a.CellarInput.SelectedFloorInsulationThickness+" "+(0,T.default)("MmUnitLabel",n))),x())),(0,C.default)("div",{onclick:function(){return k(t.EnvironmentalShellInput,"TypeOfWindowsList","TypeOfWindows",A.default.mutations.setEnvironmentalShellType)},class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("WindowsAndFacadeTypeLabel",e)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.EnvironmentalShellInput.TypeOfWindows?(0,T.default)("YourhouseChooseOnePlaceholder",e):t.EnvironmentalShellInput.TypeOfWindows)),x()),(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("label",{for:"input-windows-area-mobile",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("WindowAreaLabelMobile",e)),(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item-wrapper"},(0,C.default)("input",{id:"input-windows-area-mobile",onchange:function(e){return A.default.mutations.updateAreaOfWindowsInputIsTooHigh(o(t.ValidationParameters.HouseCircumferenceValidationOutput,t.AboutHouseInput.SelectedNumberOfFloors,t.ValidationParameters.FloorHeightValidationOutput,e.target.value))},value:v,type:"text",class:"tk-energiberegner__edit-input tk-energiberegner__body-text tk-energiberegner__body-text__data-label"}),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},(0,T.default)("KvmUnitLabel",e))),(0,C.default)(O.default,{visible:A.default.state.AreaOfWindowsInputIsTooHigh,message:(0,T.default)("WindowAreaValidationLabel",e)}))),(0,C.default)("div",{onclick:function(){return k(t.EnvironmentalShellInput,"OuterInsulationThicknessList","SelectedOuterInsulationThickness",A.default.mutations.setEnvironmentalShellOuterInsulation)},class:"tk-energiberegner__house-edit-modal__item-list"},(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__item"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("WindowInsulationLabelMobile",e)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},null===t.EnvironmentalShellInput.SelectedOuterInsulationThickness?(0,T.default)("YourhouseChooseOnePlaceholder",e):t.EnvironmentalShellInput.SelectedOuterInsulationThickness+" "+(0,T.default)("MmUnitLabel",e))),x()));var n,i,a}function a(e,t){return g=A.default.state.editedState.Input.AboutHouseInput.LivingArea,v=A.default.state.editedState.Input.EnvironmentalShellInput.AreaOfWindows,(0,C.default)("section",{class:"tk-energiberegner__house
1-info__container tk-energiberegner__house-info__container--edit-modal"},(0,C.default)("div",{class:"tk-energiberegner__house-info__button-container tk-energiberegner__house-info__button-container--modal"},A.default.state.AreaOfWindowsInputIsTooHigh||A.default.state.LivingAreaInputIsTooHigh?(0,C.default)("button",{onclick:s,disabled:!0,class:"tk-button tk-button--primary-border tk-energiberegner__button"},(0,T.default)("SaveChangesButtonLabel",e)):(0,C.default)("button",{onclick:s,class:"tk-button tk-button--primary-border tk-energiberegner__button"},(0,T.default)("SaveChangesButtonLabel",e))),(0,C.default)("div",{class:"tk-energiberegner__house-info__row-container tk-energiberegner__house-info__row-container--modal"},(0,C.default)("article",{class:"tk-energiberegner__house-info__item\r tk-energiberegner__house-info__item--overlay \r tk-energiberegner__house-info__item-border__left \r tk-energiberegner__house-info__item-border--color-light-yellow\r "},(0,C.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,C.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,T.default)("AbouthouseLabel",e)),d(e)),(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("p",{for:"build-year-input",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("AbouthouseBuildyearLabel",e)),(0,C.default)("div",{class:"tk-energiberegner__house-info__label__paragraph-container"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__house-info__label--edit-text"},null===t.AboutHouseInput.BuildYear?"Ukendt":t.AboutHouseInput.BuildYear))),(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"house-area-input",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("AbouthouseAreaLabel",e)),(0,C.default)("div",{class:"tk-form-field tk-form-field__energiberegner-modal"+(A.default.state.LivingAreaInputIsTooHigh?"__error":"")},(0,C.default)("input",{id:"house-area-input",onchange:function(e){return A.default.mutations.updateLivingAreaInputIsTooHigh(r(t.ValidationParameters.FloorHeightValidationOutput,t.EnvironmentalShellInput.AreaOfWindows,t.AboutHouseInput.SelectedNumberOfFloors,t.ValidationParameters.HouseGeometriValidationOutput,e.target.value))},value:g,placeholder:t.AboutHouseInput.LivingArea+" "+(0,T.default)("KvmUnitLabel",e),type:"text"}),(0,C.default)(O.default,{visible:A.default.state.LivingAreaInputIsTooHigh,message:(0,T.default)("HouseAreaValidationLabel",e)}))),(0,C.default)("div",{class:"tk-energiberegner__house-info__label tk-energiberegner__house-info__label--disabled-value"},(0,C.default)("p",{for:"build-year-input",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("AbouthouseFloorCountLabel",e)),(0,C.default)("div",{class:"tk-energiberegner__house-info__label__paragraph-container"},(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__house-info__label--edit-text"},null===t.AboutHouseInput.SelectedNumberOfFloors?"Ukendt":t.AboutHouseInput.SelectedNumberOfFloors)))),(0,C.default)("article",{class:"tk-energiberegner__house-info__item \r tk-energiberegner__house-info__item-border__middle\r tk-energiberegner__house-info__item-border__left\r tk-energiberegner__house-info__item-border--color-yellow\r tk-energiberegner__house-info__item--overlay"},(0,C.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,C.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,T.default)("RoofLabel",e)),u(e)),(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("RoofTypeLabel",e)),w(e,t.RoofInput.TypeOfRoofList,A.default.mutations.setRoofType,t.RoofInput.TypeOfRoof)),"Opvarmet tagetage"===t.RoofInput.TypeOfRoof?(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"area-input",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("RoofAreaLabel",e)),(0,C.default)("div",{class:"tk-form-field tk-form-field__energiberegner-modal"},(0,C.default)("input",{id:"area-input",onchange:function(e){return S(e.target.value,A.default.mutations.setAreaOfRoof)},value:t.RoofInput.AreaOfRoof,placeholder:t.RoofInput.AreaOfRoof+" "+(0,T.default)("KvmUnitLabel",e),type:"text"}
1))):null,(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"isolation-input",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("RoofInsulationLabel",e)),w(e,t.RoofInput.InsulationOfRoofList,A.default.mutations.setRoofInsulation,t.RoofInput.SelectedInsulationOfRoof))),(0,C.default)("article",{class:"tk-energiberegner__house-info__item \r tk-energiberegner__house-info__item--overlay \r tk-energiberegner__house-info__item-border__left \r tk-energiberegner__house-info__item-border--color-orange\r "},(0,C.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,C.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,T.default)("WindowsAndFacadeLabel",e)),m(e)),(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"windows-select",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("WindowsAndFacadeTypeLabel",e)),w(e,t.EnvironmentalShellInput.TypeOfWindowsList,A.default.mutations.setEnvironmentalShellType,t.EnvironmentalShellInput.TypeOfWindows)),(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"window-area-input",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("WindowsAndFacadeAreaLabel",e)),(0,C.default)("div",{class:"tk-form-field tk-form-field__energiberegner-modal"+(A.default.state.AreaOfWindowsInputIsTooHigh?"__error":"")},(0,C.default)("input",{id:"window-area-input",onchange:function(e){return A.default.mutations.updateAreaOfWindowsInputIsTooHigh(o(t.ValidationParameters.HouseCircumferenceValidationOutput,t.AboutHouseInput.SelectedNumberOfFloors,t.ValidationParameters.FloorHeightValidationOutput,e.target.value))},value:v,placeholder:t.EnvironmentalShellInput.AreaOfWindows+" "+(0,T.default)("KvmUnitLabel",e),type:"text"}),(0,C.default)(O.default,{visible:A.default.state.AreaOfWindowsInputIsTooHigh,message:(0,T.default)("WindowAreaValidationLabel",e)}))),(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"outer-wall-input",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("WindowsAndFacadeInsulationLabel",e)),w(e,t.EnvironmentalShellInput.OuterInsulationThicknessList,A.default.mutations.setEnvironmentalShellOuterInsulation,t.EnvironmentalShellInput.SelectedOuterInsulationThickness))),(0,C.default)("article",{class:"tk-energiberegner__house-info__item \r tk-energiberegner__house-info__item--overlay \r tk-energiberegner__house-info__item-border__left\r tk-energiberegner__house-info__item-border--color-light-yellow\r "},(0,C.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,C.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,T.default)("BasementLabel",e)),f(e)),(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"basement-type-select",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("BasementTypeLabel",e)),w(e,t.CellarInput.TypeOfCellarList,A.default.mutations.setCellarType,t.CellarInput.TypeOfCellar)),"Ingen"===t.CellarInput.TypeOfCellar?null:(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"basement-size-input",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("BasementSizeLabel",e)),(0,C.default)("div",{class:"tk-form-field tk-form-field__energiberegner-modal"},(0,C.default)("input",{id:"basement-size-input",onchange:function(e){return S(e.target.value,A.default.mutations.setAreaOfCellar)},value:t.CellarInput.AreaOfCellar,placeholder:t.CellarInput.AreaOfCellar+" "+(0,T.default)("KvmUnitLabel",e),type:"text"}))),"Opvarmet kælder"===t.CellarInput.TypeOfCellar?(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"floor-isolation-input",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("FloorInsulationLabel",e)),w(e,t.CellarInput.FloorInsulationThicknessList,A.default.mutations.setCellarFloorInsulation,t.CellarInput.
1SelectedFloorInsulationThickness)):null),(0,C.default)("article",{class:"tk-energiberegner__house-info__item \r tk-energiberegner__house-info__item--overlay \r tk-energiberegner__house-info__item-border__left\r tk-energiberegner__house-info__item-border--color-yellow\r "},(0,C.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,C.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,C.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,T.default)("HeatingLabel",e)),c(e))),(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"yearly-heat-consumption-input",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("HeatingConsumptionLabel",e)),(0,C.default)("div",{class:"tk-form-field tk-form-field__energiberegner-modal"},(0,C.default)("input",{id:"yearly-heat-consumption-input",onchange:function(e){return S(e.target.value,A.default.mutations.setHeatingAnnualConsumption)},value:t.HeatingInput.AnnualConsumption,placeholder:t.HeatingInput.AnnualConsumption+" "+(0,T.default)("Currency",e),type:"text"}))),(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"primary-heat-source-select",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("HeatingSourceLabel",e)),w(e,t.HeatingInput.TypeOfHeatingList,A.default.mutations.setHeatingSource,t.HeatingInput.TypeOfHeating))),(e=e,n=t.CellarInput,i=t,"Opvarmet kælder"===n.TypeOfCellar?null:"Uopvarmet kælder"===n.TypeOfCellar?(0,C.default)("article",{class:"tk-energiberegner__house-info__item \r tk-energiberegner__house-info__item--overlay \r tk-energiberegner__house-info__item-border__left \r tk-energiberegner__house-info__item-border--color-orange"},(0,C.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,C.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,T.default)("FloorToCellarLabel",e)),p(e)),(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"basement-type-select",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("FloorInsulationLabel",e)),w(e,i.CellarInput.FloorInsulationThicknessList,A.default.mutations.setCellarFloorInsulation,i.CellarInput.SelectedFloorInsulationThickness))):(0,C.default)("article",{class:"tk-energiberegner__house-info__item\r tk-energiberegner__house-info__item--overlay \r tk-energiberegner__house-info__item-border__left\r tk-energiberegner__house-info__item-border--color-orange"},(0,C.default)("div",{class:"tk-energiberegner__house-info__item__title-container"},(0,C.default)("h3",{class:"tk-energiberegner__house-info__item__title"},(0,T.default)("FloorLabel",e)),h(e)),(0,C.default)("div",{class:"tk-energiberegner__house-info__label"},(0,C.default)("label",{for:"basement-type-select",class:"tk-energiberegner__body-text tk-energiberegner__body-text--thin"},(0,T.default)("FloorInsulationLabel",e)),w(e,i.CellarInput.FloorInsulationThicknessList,A.default.mutations.setCellarFloorInsulation,i.CellarInput.SelectedFloorInsulationThickness))))));var n,i}var l=e.attrs.overlay,t=M.default.url,n=M.default.recalculateResultEndpoint,u=(e.attrs.renderHouseSVG,e.attrs.renderToolTipRoof),c=e.attrs.renderToolTipHeat,d=e.attrs.renderToolTipAbout,f=e.attrs.renderToolTipCellar,h=e.attrs.renderToolTipFloor,p=e.attrs.renderToolTipFloorToCellar,m=e.attrs.renderToolTipWindowsAndFacade,g=A.default.state.editedState.Input.AboutHouseInput.LivingArea,v=A.default.state.editedState.Input.EnvironmentalShellInput.AreaOfWindows,_={visible:!1,selected:null,mutation:{},selectedClickList:[],closeMobileSelectOverlay:function(){_.visible=!1}},y=function(e,t,n,i){return 1/(2.994003*e*4)*Math.pow(t,2)/Math.pow(n*(Math.sqrt(1/i)+Math.sqrt(i)),2)},b=function(e,t,n){return.999*e*t*n},k=function(e,t,n,i){_.visible=!0,_.selectedClickList=e[t],_.selected=e[n],_.dataReference=e,_.mutation=i},w=function(e,t,n,i){return(0,C.default)("select",{onchange:function(e){return n(e.target.value)},class:"tk-select tk-select__not-valid tk-select--energiberegner-modal"},(0,C.default)("option",{value:"",disabled:!0,selected:!0},(0,T.default)("YourhouseChooseOnePlaceholder",e)),t.map(function(e){return(0,C.default)("option",{selected:e===i,value:e},e)}))},S=function(e,t){e=Number(e);t(e=isNaN(e)?0:e)},x=function(){return(0,C.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--arrow-edit-modal"},(0,C.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9 22"},(0,C.default)("path",{fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7.667 1L1 11l6.667 10"})))};return{view:function(){var e=A.default.state.labels,t=A.default.state.editedState.Input,n=A.default.state.output;
1return(0,C.default)("article",{class:"tk-energiberegner__house-edit-modal"+(l.visible?"":"--hidden")},(0,C.default)("div",{class:"tk-energiberegner__scroll-container"},(0,C.default)("div",{onclick:function(){return l.closeOverlay()},class:"tk-energiberegner__svg-container tk-energiberegner__close tk-energiberegner__close--overlay"},(0,C.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.default)("g",{fill:"none","fill-rule":"evenodd",stroke:"#696057","stroke-linecap":"square","stroke-width":"2"},(0,C.default)("path",{d:"M2.101 2.101L21.9 21.899M21.9 2.101L2.101 21.899"})))),(0,C.default)("div",{class:"tk-energiberegner__house-edit-modal__wrapper"+(l.visible?"":"--hidden")},(0,C.default)("h1",{class:"tk-typography--title-lg tk-beregner__title__energiberegner tk-beregner__title__energiberegner--modal"},(0,T.default)("CorrectInformationButtonLabel",e)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--subheading-text"},(0,T.default)("YourHouseSubHeaderEdit",e)),(0,C.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--address"},A.default.state.dawaAddressResult),(0,C.default)("div",{class:"tk-energiberegner__house-info__house-image tk-energiberegner__house-info__house-image--overlay"},(0,L.default)(n.YourHouseSvgVariety,!0)),a(e,t),i(e,t),(0,C.default)(E.default,{mobileSelectOverlay:_}))))}}};var C=i(e("mithril")),T=i(e("../../methods/LabelController")),E=i(e("./EditOverlayMobileSelect")),A=i(e("../../store/EnergyCalculatorStore")),O=i(e("../../../components/error/ts-error")),M=i(e("../../environmentVariables")),L=i(e("./CalculatorHouseSVG"));function i(e){return e&&e.__esModule?e:{default:e}}},{"../../../components/error/ts-error":2,"../../environmentVariables":47,"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,"./CalculatorHouseSVG":22,"./EditOverlayMobileSelect":25,mithril:410}],25:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(n){function i(n){return n.selectedClickList.map(function(t){var e=n.selected===t;return(0,a.default)("div",{onclick:function(){return e=t,n.mutation(e),n.selected=e,void a.default.redraw();var e},class:"tk-energiberegner__house-edit-modal__item-list tk-energiberegner__house-edit-modal__item-list--overlay"},(0,a.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text__data-label"},t),(0,a.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--checkmark tk-energiberegner__house-edit-modal__item-checkmark"+(e?"--is-selected":"")},(0,a.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 12"},(0,a.default)("path",{fill:"none","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M1 7l4 4L15 1"}))))})}return{view:function(){var e=o.default.state.labels,t=n.attrs.mobileSelectOverlay;return(0,a.default)("article",{class:"tk-energiberegner__house-edit-mobile-select"+(t.visible?"":"--hidden")},(0,a.default)("div",{class:"tk-energiberegner__scroll-container"},(0,a.default)("section",{class:"tk-energiberegner__house-edit-mobile-select__item-overlay-wrapper"+(t.visible?"":"--hidden")},(0,a.default)("div",{onclick:function(){return t.closeMobileSelectOverlay()},class:"tk-energiberegner__house-edit-modal__mobile-heading"},(0,a.default)("div",{class:"tk-energiberegner__svg-container tk-energiberegner__svg-container--house-edit-modal-return"},(0,a.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9 22"},(0,a.default)("path",{fill:"none","fill-rule":"evenodd",stroke:"#696057","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7.667 1L1 11l6.667 10"}))),(0,a.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__house-edit-modal__return-title"},(0,r.default)("BackLabelMobile",e))),i(t))))}}};var a=i(e("mithril")),r=i(e("../../methods/LabelController")),o=i(e("../../store/EnergyCalculatorStore"));function i(e){return e&&e.__esModule?e:{default:e}}},{"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,mithril:410}],22:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){t={1:(0,i.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 570 400",class:"tk-energiberegner__house
1-info__house-image__image tk-energiberegner-house-color tk-energiberegner__house-info__house-image__image"+(t?"--overlay":"")},(0,i.default)("defs",null,(0,i.default)("path",{id:"a",d:"M0 349.067h569.913V.647H0z"})),(0,i.default)("g",{"fill-rule":"evenodd"},(0,i.default)("path",{class:"tk-energiberegner-house-color__2",d:"M125.717 26.571l-.529.473-.424.528-.494.459-.492.464-.484.47-.516.438-.363.592-.589.368-.468.487-.379.574-.516.44-.498.454-.447.507-.59.365-.452.499-.499.454-.487.467-.375.575-.516.437-.493.459-.53.424-.353.598-.484.466-.552.402-.463.49-.508.446-.477.476-.435.516-.56.396-.466.489-.385.569-.49.464-.481.475-.496.461-.459.496-.468.486-.557.397-.441.511-.48.471-.562.39-.455.495-.498.453-.351.595-.555.395-.437.511-.455.492-.515.432-.52.429-.417.529-.569.379-.37.576-.475.472-.46.489-.536.412-.414.534-.569.38-.441.509-.528.423-.397.552-.516.437-.512.443-.488.466-.47.486-.513.446-.369.588-.594.367-.469.488-.386.568-.546.41-.411.544-.525.428-.541.415-.423.529-.465.489-.52.433-.466.488-.424.529-.512.443-.447.51-.551.406-.42.538-.523.438-.497.464-.453.505-.491.467-.558.401-.482.476-.38.574-.482.476-.465.492-.472.487-.591.371-.458.504-.464.496-.529.43-.451.509-.519.441-.385.568-.495.464-.464.499-.513.447-.555.402-.383.57-.547.409-.432.524-.503.454-.461.501-.499.467-.503.458-.44.519-.465.499-.601.367-.383.578-.471.494-.59.367-.472.491-.485.481-.453.513-.451.52-.52.454-.453.52-.607.409.101.693-.017.667-.109.666.14.666-.068.668.079.666-.029.667-.122.669.127.667.036.669-.07.669.082.668-.022.668-.106.668.079.668-.056.667.08.666.031.668-.046.667-.082.667.097.668-.009.666-.009.667.008.668-.062.667-.078.668.041.669.015.668-.008.668-.045.669.174.67-.119.668.012.668.075.663.001.663.029.664-.16.665.146.665-.142.666.057.668.068.668-.009.669-.116.669.042.669-.056.667.171.667-.029.667-.044.666.072.666-.073.665.026.666-.078.665.079.665-.085.667.106.666-.116.669.052.667-.001.669.057.67-.12.671.1.669-.105.669.127.668-.145.668.08.669-.077.668.076.668.029.669.033.67.024.672-.021.671.024.67-.036.669-.01.669.038.671-.007.67-.074.672-.029.671-.035.67.083.671-.029.665.069.667-.022.669-.026.671-.045.672-.005.671-.012.669.08.671-.049.674.01.673-.027.672-.013.674.069.674-.006.673.02.672-.013.675.077.677-.044.678-.021.655.656.007.68.085.68-.132.679.08.679.039.68-.133.679-.013.68.164.679-.028.678.01.68-.104.679.122.679-.101.678.095.68.021.679-.144.678.145.679-.065.679-.115.678.124.679.038.679-.138.679.037.678.116.679-.179.679.048.678.039.676.054.676.005.676-.114.677.075.676.032.676.009.677.001.678-.021.677.006.678-.115.677.058.679.081.679-.013.678-.123.678.02.68.051.681-.065.678.143.681-.165.68.178.682-.077.68.014.68.035.68-.049.68.021.679-.096.679.04.68.056.678-.041.679-.001.678.04.678.035.679-.153.678.15.677-.1.677-.026.678-.024.678.151.677-.022.677-.054.676.063.677-.06.677-.029.677-.016.676.027.676.047.676-.098.677.111.676-.114.677-.012.675.106.676-.012.677-.066.675.087.677.053.676-.011.675-.107.677.005.676-.053.677.078.675.073.677-.006.676-.092.677-.049.677.065.677.027.676.085.676-.148.678.036.677.018.678-.075.677.078.678-.015.678.003.678.098.678-.118.679-.026.679-.005.678.04.68-.006.68.041.679.008.681-.086.681.084.68.003.681-.003.682-.086.682.088.681-.055.682.009.681.097.681-.12.682.063.68-.062.681.044.678.044.681-.054.68.081.679.022.679-.066.68.06.678-.144.68.152.678-.13.679.087.679-.012.679.027.678-.109.678.101.68-.096.679.092.678-.077.679.115.679-.041.679-.028.679-.087.679.086.68.046.679-.064.681.08.679-.145.68.077.682-.103.679.103.682-.065.681.072.683-.064.681.127.684-.133.682.131.682-.127.682.005.682.101.681-.15.681.055.682.049.679-.039.682.116.68-.07.681.053.68-.046.68-.111.681.12.679.05.681-.156.681.089.68-.099.68.15.681-.033.682-.082.682.089.681-.088.683.063.682-.073.683.094.683.01.683-.104.682.014.682.025.683-.054.681.044.682.106.682-.167.68.145.682-.134.681.11.681-.011.681-.03.683-.031.682-.028.682.002.682-.03.684.039.683-.002.684.014.682.085.683-.077.682.016.683.083.676-.083.679.017.68-.033.679-.007.68.023.683.105.682-.05.684-.044.683-.087.683.002.682.052.681.031.681-.081.68.159.68-.13.68.11.68-.002.679.018.68-.074.681-.039.681.037.681-.067.683.012.684.085.684-.081.685.137.684-.166.683.066.683.04.681-.05.683.034.682-.002.683-.062.684.069.685-.083.686.038.685.035.684-.09.684.099.683.087.685-.131.685-.
105.687.035.684.068.685.027.685-.09.68-.036.681.005.683.071.684-.065.688.018.685-.005.684.023.685.08.689.05.687-.137.686.11.689-.133.688.047.688.031.686.043.69-.079.691-.009.693.079.677-.051-.487-.438-.487-.46-.423-.524-.433-.513-.483-.466-.566-.383-.481-.467-.441-.507-.461-.488-.529-.42-.414-.534-.486-.464-.505-.445-.536-.415-.37-.577-.575-.379-.378-.57-.541-.41-.508-.444-.478-.475-.412-.538-.456-.495-.501-.452-.527-.427-.489-.465-.403-.549-.576-.379-.367-.586-.589-.366-.448-.506-.457-.499-.519-.436-.477-.48-.388-.567-.494-.463-.517-.442-.514-.444-.462-.495-.516-.443-.481-.476-.504-.454-.484-.472-.433-.523-.468-.487-.438-.518-.515-.44-.557-.4-.394-.559-.573-.383-.348-.606-.533-.421-.491-.462-.442-.512-.474-.48-.517-.436-.466-.487-.494-.459-.51-.443-.522-.431-.349-.602-.503-.449-.548-.405-.501-.451-.405-.545-.444-.509-.575-.378-.455-.496-.439-.513-.488-.462-.538-.414-.426-.527-.521-.43-.396-.554-.564-.389-.475-.476-.432-.52-.495-.457-.468-.483-.54-.413-.471-.481-.429-.521-.453-.501-.485-.467-.545-.408-.433-.52-.505-.449-.403-.55-.486-.465-.549-.405-.448-.507-.56-.394-.454-.5-.508-.448-.379-.575-.468-.487-.536-.421-.452-.503-.522-.436-.51-.447-.417-.539-.539-.419-.507-.453-.394-.562-.471-.489-.566-.395-.424-.535-.54-.42-.47-.488-.43-.529-.485-.473-.495-.463-.518-.44-.466-.491-.414-.54-.547-.411-.475-.482-.429-.526-.479-.478-.588-.369-.376-.578-.593-.363-.348-.607-.533-.422-.52-.436-.401-.553-.511-.445-.511-.445-.501-.453-.401-.554-.533-.424-.418-.536-.566-.391-.486-.469-.512-.445-.431-.525-.527-.431-.464-.492-.413-.543-.58-.38-.439-.517-.498-.461-.425-.534-.564-.395-.418-.542-.503-.457-.504-.456-.48-.482-.421-.537-.455-.506-.505-.454-.549-.411-.501-.458-.414-.544-.53-.428-.4-.557-.573-.385-.375-.582-.501-.456-.506-.451-.487-.471-.444-.514-.577-.382-.474-.483-.391-.565-.554-.406-.496-.462-.413-.545-.555-.406-.482-.477-.412-.547-.556-.405-.394-.566-.551-.412-.469-.492-.482-.477-.51-.449-.484-.474-.502-.454-.427-.529-.444-.512-.512-.442-.473-.482-.544-.409-.474-.48-.448-.505-.424-.528-.498-.455-.55-.402-.46-.494-.486-.466-.441-.511-.449-.504-.579-.374-.393-.56-.549-.406-.508-.447-.405-.55-.44-.516-.588-.372-.461-.496-.446-.515-.478-.482-.532-.431-.432-.532-.548-.417-.451-.511-.498-.464-.519-.441-.474-.488-.39-.567-.526-.434-.527-.431-.469-.489-.47-.49-.426-.532-.507-.453-.461-.498-.456-.505-.5-.464-.587-.378-.423-.542-.537-.429-.431-.532-.55-.416-.4-.56-.457-.505-.501-.462-.531-.432-.495-.469-.52-.445-.398-.566-.481-.486-.574-.394-.453-.51-.427-.537-.569-.397-.432-.527-.519-.447-.445-.523-.483-.479-.512-.449-.452-.51-.486-.475-.563-.398-.429-.532-.487-.482-.421-.548-.581-.387-.453-.513-.553-.415-.437-.535-.447-.522-.522-.448-.473-.486-.425-.543-.574-.399-.406-.566-.609-.369-.435-.541-.511-.471z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__1",d:"M251.429 250.042l-.676.088-.68-.075-.679-.013-.68.074-.679-.054-.68-.095-.679.147-.679-.119-.679.118-.68-.023-.678-.078-.679-.053-.679.065-.68-.062-.677.158-.68-.019h-.679l-.678-.129-.678.116-.68-.024-.678-.095-.679.054-.68.098-.678-.084-.678.06-.679-.074-.68.098-.675-.154-.675.054-.676.111-.677-.122-.676-.019-.677.009-.677.083-.676-.117-.678.022-.678.056-.679-.03-.677-.03-.678.139-.68-.078-.679.001-.678.078-.68-.022-.681-.102-.68.121-.68-.041-.68-.127-.682.003-.68.009-.679.042-.68.027-.68-.079-.679.146-.679.027-.679-.02-.678-.112-.679.077-.678.046-.678-.076-.678.064-.678-.101-.678.074-.677.009-.676-.114-.678.021-.677-.008-.678-.035-.676.14-.676.02-.677-.106-.676.043-.677-.08-.677.163-.675-.102-.676-.053-.676.023-.677.135-.676-.03-.676.001-.676.032-.676-.163-.676.109-.676-.106-.676.115-.677-.071-.675-.03-.677.135-.677-.144-.675.118-.677-.089-.676-.041-.677.03-.677-.049-.678.112-.676-.066-.678.08-.677-.095-.678-.02-.677.03-.678-.009-.678.089-.679.021-.678-.064-.679.048-.68-.058-.678.069-.68-.002-.681-.097-.679-.018-.681.102-.681-.108-.681.149-.681.021-.682-.029-.683-.074-.68-.01-.682-.065-.681.022-.681.012-.68-.02-.68.036-.681-.01-.679.129-.68-.13-.68.03-.679.078-.679-.125-.679-.008-.679.155-.679-.145-.679.04-.679-.053-.678.091-.679.059-.679-.137-.677.027-.68.009-.679-.058-.679.161-.678-.089-.679-.078-.68.057-.679.071-.679.026-.
168-.008-.679.001-.681-.019-.679-.039-.681.023-.682.061-.681-.122-.681.064-.682.067-.683-.184-.682.122-.683.04-.682-.038-.682.033-.681.023-.682-.068-.68-.044-.682-.016-.681.077-.68-.062-.681.012-.68.065-.681-.063-.679-.07-.68.173-.681-.031-.68-.027-.68.024-.682-.087-.68.07-.682.017-.68-.129-.682-.007-.681-.012-.682.178-.683-.144-.683.122-.682-.052-.684.065-.683-.11-.682-.038-.681.01-.683.075-.68.037-.682.019-.682.018-.681-.114-.682.006-.681.052-.682-.041-.681-.082-.682.065-.683.099-.682-.116-.683-.034-.684-.008-.683.128-.683.015-.683-.024-.682.008-.682-.02-.678-.016-.678.022-.678.054-.681-.033-.68-.11-.681.138-.683-.14-.684.041-.683.075-.684-.14-.681.148-.681-.085-.681.057-.681.001-.68-.102-.679-.018-.68.048-.68-.018-.68.105-.68-.046-.681-.09-.682.158-.682-.159-.684.103-.684-.101-.685.02-.684.051-.683.005-.683-.073-.682.034-.683-.02-.681.036-.684-.012-.684.077-.684-.014-.687-.072-.683.011-.686.12-.683-.06-.684.035-.684-.118-.685.112-.687.011h-.685l-.684-.024-.686-.012-.68.004-.68-.108-.683.115-.686-.037-.687.096-.685-.009-.684-.056-.685-.036-.689.07-.686.03-.687-.086-.689.042-.688-.071-.687.008-.687.084-.689-.103-.692.031-.692.06-.647-.103-.034-.621.005-.67.044-.668-.071-.667-.077-.668.145-.669-.057-.668-.093-.667.134-.668-.128-.667.007-.668.053-.668-.007-.667.029-.668-.041-.667-.004-.668.077-.667-.01-.668v-.668l.045-.668-.075-.667-.032-.67.039-.668-.075-.669.13-.669.028-.669-.043-.669-.097-.67.059-.67-.048-.67.088-.67.016-.672-.087-.671-.006-.672-.016-.67.046-.672-.029-.671.091-.67-.124-.669.093-.67.071-.669-.185-.67.08-.669.057-.669-.098-.67.048-.669-.051-.669-.031-.669.16-.669-.046-.669-.075-.67-.004-.669.013-.67.083-.67-.046-.671.052-.67.033-.67-.141-.672.109-.672-.111-.672.131-.671-.074-.672.096-.671-.055-.671.003-.669-.108-.672.041-.67.104-.671-.07-.669.001-.67.046-.67-.008-.671-.051-.67-.027-.671.114-.672-.099-.671.005-.672-.078-.672.021-.673.067-.672.045-.67.003-.672-.005-.671-.128-.666.178-.667-.086-.668.056-.668-.015-.67-.117-.67.01-.671.03-.673-.063-.672.172-.672-.134-.67.15-.671-.186-.67.128-.669.006-.668-.078-.668.078-.67.012-.668-.001-.669-.086-.668.082-.671-.053-.671-.049-.671.13-.672-.156-.674.121-.673-.073-.673.039-.671.017-.672-.008-.671-.017-.671-.027-.671.038-.672.026-.673-.119-.673.055-.674.024-.675.011-.672.005-.673-.014-.673-.056-.672-.031-.675.149-.675-.014-.673-.077-.674-.055-.674.104-.669.017-.669-.035-.672-.017-.674.044-.675.002-.674-.088-.673-.011-.674.136-.678-.116-.675-.01-.675-.003-.679-.024-.675.178-.677-.059-.676v-.677l-.042-.681-.069-.681.113-.648.645.057.679-.14.68-.034.679.107.679-.071.68-.037.68.167.678-.165.68.172.679-.142.679.027.678.031.68-.018.678-.022.68.074.679-.02.678-.086.679.117.679.005.679.005.677-.074.68-.007.679.008.678.08.678-.124.68.013.679-.026.675-.01.676-.006.675.014.677.058.677-.019.677.076.676-.064.678.107.676-.17.679.015.678.019.678.135.678-.073.679.051.678-.021.68-.13.681.112.678-.057.681.006.681-.031.68-.025.681-.004.68.038.68.111.68-.037.679-.089.679.145.68-.072.677.075.68-.071.678.002.679.024.677-.038.678.018.678.07.678-.098.677.04.677-.093.677.036.678-.022.677.115.676.017.677-.041.676-.058.677.005.676-.072.677.021.676-.023.676.161.676-.16.676.029.676.057.677.025.676-.033.676.024.675.069.676-.027.677-.152.676.108.677-.057.676-.045.675.068.677-.067.677.099.677.049.677-.137.676.071.676.076.678.008.677-.013.678-.079.677-.059.677.043.679-.016.678-.029.678.128.678-.124.68.057.679.076.679-.005.679.011.681-.016.68-.093.681.077.679.029.682-.119.682.125.681-.074.683.062.681-.066.682-.014.68.094.682-.088.68-.051.68.003.68.095.68-.092.68-.009.679-.014.679-.005.68.172.679-.04.678-.066.679.107.68-.164.678.084.678.072.679-.137.679.113.679-.131.679.075.678.063.679-.107.679.056.68-.096.677.056.68.105.68-.101.679.049.68.036.68-.099.68.118.681-.097.68-.023.682-.026.682.094.681.06.683-.17.683.153.682-.132.682-.007.683.123.68-.085.683-.048.68.07.681-.048.68.116.682-.147.681.12.679-.082.681.013.68.037.681-.027.68.057.68.057.681-.14.68.112.68-.035.682.019.681-.072.681.077.682-.066.683-.06.681.087.684.007.683.054.683.005.682-.168.683.164.681-.009.682-.07.682-.002.681-.079.681.109.682-.051.681.025.681-.027.682.002.682.03.682.068.682-.003.683-.12.682.008.684.045.684-.068.682-.023.683.032.682.055.682.094.678-.12.678.12.68-.005.679-.041.68.017.683-.101.681.021.685.098.683-.032.683-.106.682.101.
1682.026.68-.117.68.085.681-.105.679-.009.679.096.68.071.68-.019.681-.128.68-.033.682.063.683.12.683-.02.685.012h.685l.684-.138.683.139.683-.067.681-.067.683.119.682-.011.683.001.684-.152.685.051.686.029.685.057.684-.103.684.025h.683l.685.038.685-.076.686.095.686-.069.684.055.685-.002.68-.074.682.083.681-.035.685.106.689-.077.684.017.684.051.685-.034.689-.097.686-.004.687.128.689-.086.689-.049.688.056.685-.028.69.079.691.01.693-.03.75-.081-.131.726.018.669.105.668-.128.669.117.667.042.668-.117.668.045.668-.031.668-.052.667-.014.667.144.668v.667l-.024.669-.093.667.102.667-.09.668.111.668-.123.667-.011.669.106.668.023.668.007.668.016.67-.063.668.042.67-.109.668.126.67-.074.67.005.671-.035.671.004.67.034.672.025.672.06.67-.038.671-.033.671.031.67-.133.67.102.67.016.669.046.67-.051.669-.075.668.112.67-.042.67.062.669-.021.669-.077.668-.032.67.076.67-.094.669-.027.67.098.669.052.67v.671l-.05.671-.017.672.014.672.077.672-.097.672-.087.671.164.671-.102.671.087.67.038.67-.003.67-.101.67.035.671.037.67-.121.67.018.671.048.67-.094.67.161.672-.102.671-.05.672.045.672.056.672.002.672.041.671-.061.671.066.672-.1.667-.002.667.082.666-.045.67.028.669-.051.671-.006.672.026.671.051.673.022.672-.035.67.01.67-.131.67.099.669.01.67.049.667.016.669-.085.668.05.67-.002.669-.055.669.057.671-.121.671.039.673-.02.672.056.675-.048.673.114.671.007.671-.032.672.01.671-.121.67.047.672-.042.673-.005.674.072.674v.674l-.083.674.08.672-.001.672-.091.673.051.674.102.675-.003.675-.118.673-.045.674.152.669-.047.669-.05.671.129.674-.068.677-.088.673.097.673.02.674.004.677-.072.676-.024.675-.01.678.04.677.054.675-.104.676.142.678-.132.68.085.682z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__2",d:"M486.123 250.073l-.708-.093-.681.054-.679-.08-.679.002-.68.02-.679.147-.68.003-.679-.01-.678.015-.68-.113-.679-.019-.679-.017-.678.039-.679.035-.68-.026-.677-.055-.679.006-.679-.027-.678.128-.678-.018-.679-.069-.678-.011-.678.077-.679.07-.678-.113-.678-.035-.678-.022-.679.097-.678.078-.678-.05-.678-.061-.678.092-.679-.107-.677.064-.678.059-.679-.026-.678-.151-.678.011-.678.109-.678-.008-.679.042-.678-.084-.677-.036-.679.095-.679-.07h-.678l-.679-.004-.678.122-.679-.18-.678.014-.679.138-.678-.005-.679-.102-.679.095-.68-.028-.677-.056-.68-.012-.68.023-.678.044-.679-.072-.681-.016-.679.038-.68.059-.679.006-.68.015-.681.015-.68-.055-.679.005-.682-.044-.68-.053-.681.166-.68-.07-.68-.099-.68.089-.68-.001-.679-.002-.681-.044-.679.077-.679-.117-.68.037-.679.021-.68.112-.679-.007-.679-.017-.68-.066-.679-.049-.679.044-.679.057-.679-.035-.68-.091-.678.119-.679-.06-.679-.071-.679-.001-.679.082-.678.01-.679.082-.679-.078-.68-.043-.678.032-.679.059-.676-.061-.676-.036-.676.054-.677-.085-.676.111-.676-.005-.678.02-.678-.122-.678.033-.676-.016-.679.046-.678-.055-.68.038-.677.064-.68-.088-.68.03-.679.041-.68-.113-.681.13-.68.044-.682-.175-.679.101-.681-.067-.681.131-.679-.091-.68-.029-.679.128-.68-.118-.678.061-.679-.107-.678.059-.679.046-.679.03-.677.027-.678-.068-.678.011-.678-.052-.678.025-.676-.003-.677-.011-.678.075-.677-.122-.677.015-.675.03-.677.01-.677-.051-.677.009-.676-.037-.677.169-.675.008-.676-.043-.677.041-.677-.129-.676.051-.677-.038-.675.035-.676-.079-.676.038-.677.073-.677-.067-.676.031-.676.086-.676-.025-.677-.043-.677-.023-.678.095-.676-.047-.676-.096-.678.01-.678.135-.678-.167-.677.006-.677.11-.679.052-.679-.116-.678-.063-.678.129-.68-.032-.679.012-.679.047-.68.023-.68-.042-.681-.042-.68-.057-.681.022-.682.002-.681-.029-.682-.003-.682.064-.682.015-.681.006-.682-.019-.681.06-.68-.086-.681.109-.679-.179-.681.148-.68-.102-.679.011-.68.038-.68.029-.678-.023-.679.065-.68-.004-.678-.081-.679.04-.679.032-.679-.13-.679.001-.679.05-.679.099-.678-.171-.679.11-.68.007-.678-.122-.68.084-.68-.045-.679-.032-.679.157-.681-.025-.68-.119-.68-.02-.68.159-.682-.064-.682.07-.681-.15-.683.121-.682.005-.683-.126-.682.069-.683.075-.681-.106-.683-.006-.681.113-.681-.01-.681-.007-.682-.072-.68.093-.68-.021-.682.006-.68-.132-.68.095-.68-.038-.681-.053-.681.072-.679.03-.682-.092-.68.033-.681-.032-.682.127-.682-.148-.682.092-.681-.08-.684-.008-.683.081-.682.055-.684-.128-.683.159-.682-.084-.682-.068-.682.044-.681.097-.682-.003-.683-.136-.68-.035-.682.145-.681-.086-.682.02-.682.059-.682-.116-.682.062-.683-.064-.683.04-.684-.019-.684.107-.682-.097-.683-.01-.682.069-.684-.066-.678.073-.677.067-.
1679-.117-.681-.045-.68.075-.682.047-.683-.102-.684.141-.683-.169-.684.089-.682-.04-.681.041-.681-.074-.681.125-.678.009-.681-.119-.681.135-.679-.118-.68.032-.681.018-.681.069-.682-.063-.682-.003-.685-.066-.683-.019-.685.15-.685-.062-.683-.009-.683-.085-.683.024-.682-.047-.682.094-.683-.086-.684.132-.685-.073-.686-.06-.685-.004-.685.021-.684.076-.683.037-.685.033-.686-.074-.686.03-.685-.015-.685-.087-.686.028h-.68l-.68.09-.684-.066-.684-.055-.688.074-.685.002-.684-.076-.686.004-.688.055-.688.071-.686-.125-.69.088-.687-.015-.688.072-.687-.002-.69-.165-.691.045-.693.043-.681-.011.074-.657.006-.669-.097-.669.091-.668-.032-.667.039-.669-.085-.668.081-.667-.144-.668-.006-.668.133-.667.007-.667-.105-.668-.047-.668.059-.667.045-.669-.049-.666.004-.668-.003-.668.096-.668-.025-.668-.034-.668-.085-.669.111-.669.002-.669-.117-.669.05-.669.051-.67-.097-.67.057-.67-.061-.671.06-.671-.052-.671.028-.672-.042-.67.155-.671-.163-.671.12-.671-.125-.67.158-.669-.082-.669-.054-.67.114-.669-.045-.669-.032-.67.079-.669-.125-.669.06-.669.028-.669-.053-.669-.045-.67.062-.669-.019-.67.117-.67-.028-.671-.087-.67.088-.671-.118-.671.154-.672-.113-.672-.05-.672.034-.671.059-.671.024-.671-.024-.67.069-.67-.016-.67.004-.672.003-.67-.159-.669.137-.67-.136-.671.099-.671.052-.67-.116-.671.074-.671-.119-.673.067-.671.099-.673.02-.672-.128-.67.081-.672-.031-.672.078-.666-.078-.667-.098-.668.16-.668-.127-.67.07-.67.063-.672-.065-.672-.049-.672.056-.672-.037-.67.08-.67-.081-.671-.012-.669.098-.669-.15-.667.031-.669.055-.669.046-.669-.033-.669.026-.669-.019-.671-.004-.671.056-.673-.041-.673.009-.674.007-.673-.112-.671.048-.672-.056-.671.004-.671.062-.67.081-.672.009-.673-.013-.674-.093-.674-.026-.675-.035-.673.125-.672-.033-.673-.056-.673.092-.674-.055-.674.071-.675-.028-.673-.065-.674.103-.669-.077-.669.09-.671-.114-.674.086-.677-.106-.673-.024-.673.017-.675.058-.676.03-.676-.009-.675-.103-.678.016-.677.034-.676.098-.676-.122-.677.092-.681-.002-.681.007-.635.631.034.679-.077.68.077.68-.15.68.095.679-.022h.678l.68-.026.68.035.677-.079.68.029.679.06.679-.111.678.09.679-.068.679.057.678.081.679-.095.678-.012.678.019.679.024.679-.031.678.084.678.005.678-.03.679.039.678-.068.677-.038.679-.008.679-.012.677.04.678.085.678.006.679-.147.678.143.678-.092.678-.036.678.118.678-.103.679-.017.677-.006.679.033.678.073.679-.111.679.036.677.095.678-.086.679.022.679.016.678.031.679-.119.679.103.679-.06.678.05.679.052.68-.139.678.01.68.049.679.038.679.018.68-.033.68-.07.679-.001.68.077.681-.008.678-.06.681.077.68.015.681-.064.68-.052.68.015.681.122.68-.003.68-.106.68.058.68-.055.68.115.68-.008.679.02.68-.091.68-.061.678.083.68.064.68-.167.678-.003.679.087.68.067.678.001.68-.079.678.043.679-.012.679-.081.68-.023.678.173.679-.005.679-.156.679.086.678.003.679-.038.68.066.678-.063.676.001.676.084.676.007.677.008.677-.116.676-.042.677-.015.677.177.678-.144.679.148.677-.149.678.03.679.071.679.028.679-.05.679-.003.68.068.681-.178.681.148.679-.092.682.04.68-.093.681.089.68-.057.679.059.68.072h.68l.678-.034.68-.12.679.001.678.161.678.007.679-.085.678-.056.677.023.678.102.678-.151.677.053.678
1-.025.677.008.677-.02.676.124.678.006.677.022.676-.154.676.128.676-.085.677.037.677.011.676.06.676-.146.677.112.675-.105.677.039.676.039.677-.104.676.081.676.024.676.061.676-.016.677-.011.677-.045.677.052.676-.071.676.087.677-.069.677.017.678-.084.677.031.676-.014.678.097.679-.112.677.119.678-.11.678-.006.679.139.679-.158.679.088.679-.041.679-.044.68.145.681-.046.679.012.682.036.68-.14.681-.001.683.054.682-.011.682-.001.681-.054.682.123.681-.136.681.032.68.068.681-.109.68.164.68.009.68-.066.68.049.678-.051.68-.057.68.089.679-.012.678.028.68-.14.678.065.68.023.679-.027.677-.044.68.121.679-.038.679-.099.678.157.68-.076.679.035.679.049.679-.16.68.074.68.066.68-.07.679-.02.681.044.682-.06.68.003.682.103.681-.038.683.035.681-.019.684-.057.683-.042.682.016.682.067.682.063.681-.136.682.065.681.005.68-.061.682.078.68-.056.681-.015.679.105.681-.003.681.016.679-.05.682-.055.68-.058.681.11.681-.105.681.128.682-.074.68.032.683-.083.682.019.682.092.683.027.685-.015.682-.055.683-.068.682.121.682-.114.682-.011.683.128.681.021.681-.119.681-.047.683.061.68.009.682.079.682-.007.682.034.682-.178.684.001.682.049.685-.021.683.045.683.105.683-.004.683-.094.681.074.678-.012.679-.066.679.074.68-.069.68.077.682-.045.683-.031.684-.003.684.067.682-.112.682.018.683-.009.679.133.681-.109.681-.061.68.005.679.057.681-.053.68.043.681.096.68-.126.682.053.683-.027.683.119.685-.037.685-.06.684.069.683.002.683-.071.682.066.683.025.683-.024.683-.075.684-.025.684.041.687-.046.685.094.683.016.685-.134.683.042.686.065.685-.089.686.001.686.076.684-.033.685-.018.681.119.681-.066.682.063.686-.156.686.044.687.06.684-.123.684-.006.69.043.686.012.688.122.688-.046.689.012.687-.136.687.033.69.126.692-.128.692.07.692-.013-.061.666-.022.669.061.669.044.667-.09.668.104.668-.003.669-.101.667-.015.667.035.668.104.667-.057.668-.057.668-.023.668.016.666.143.668-.025.668-.038.668-.034.667.049.669-.081.667.045.669-.008.669.096.669-.107.668-.049.669.004.669.16.671-.17.67.117.67-.08.67-.007.671-.017.672.043.672.063.67.045.671-.076.671.075.67-.123.67-.033.67.152.669-.117.67.074.668-.073.67.069.669-.052.67.021.669-.089.668.042.67.072.669.017.67-.072.669-.042.669.09.67-.079.671.018.671.131.67-.159.672.14.672-.011.672-.023.671-.061.672.071.671-.12.671.108.669-.093.671-.023.67.062.67.097.671-.119.67.091.67-.03.671-.026.669-.024.671.083.672.018.671-.01.671.021.673-.146.672-.005.672.113.671-.114.671.1.672.045.667-.007.666-.034.668-.033.669-.017.669-.056.671.123.671-.065.672-.008.673.084.672-.137.67.047.67-.017.67.061.67-.034.668.085.668-.059.669-.091.669-.003.669.157.668v.67l-.055.671.065.671-.021.672-.061.673.033.675-.074.672.028.672.071.671-.075.672.02.67.012.671-.002.672.062.673-.015.673-.074.675.026.674.002.673.019.673-.112.673.017.672.09.674.034.675-.125.674.117.674-.061.674-.077.669.075.668-.02.672-.045.674.017.676.141.674-.157.673.16.674-.035.677-.034.676.051.675-.068.678.038.676-.108.677.088.675-.063.678.027.68.094.68z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__3",d:"M486.041 150.695l-.626.127-.681.014-.679-.138-.679.044-.68-.078-.679.031-.68-.005-.678.083-.679-.102-.68-.01-.679.109-.678-.053-.679-.044-.679.08-.679-.06-.678.123-.678-.148-.679.088-.678-.02-.679-.064-.678.163-.679-.056-.678-.013-.678.005-.678-.083-.679.131-.677-.162-.679.001-.679.025-.677.025-.678.045-.678-.016-.679.017-.677-.035-.678.08-.679-.007-.678-.057-.678.096-.677-.123-.679-.017-.679.024-.677.097-.679.01-.678-.146-.679.01-.678.089-.679-.014-.678-.042-.678-.035-.679-.002-.679-.007-.679.147-.677-.021-.68.02-.679-.013-.679.01-.678-.055-.68.056-.679-.05-.68.043-.679-.102-.679.031-.68.037-.681.017-.678-.008-.681-.129-.681.008-.68.106-.68-.111-.68.135-.681-.041-.68-.075-.68.155-.68-.165-.681.131-.678-.099-.681.031-.679.074-.68-.074-.679-.059-.679.162-.68-.006-.68-.165-.679.019-.678.152-.68-.015-.68-.046-.677-.112-.68.096-.679-.061-.679.045-.678.082-.68-.113-.678.075-.679.038-.679-.034-.679.027-.679-.084-.679.017-.679.003-.678-.034-.676-.005-.676.003-.677.101-.676-.042-.676-.031-.676-.051-.678.051-.678.037-.678-.012-.677.025-.677-.047-.679.018-.679-.078-.679.141-.679-.132-.68.133-.679-.098-.681.103-.68-.041-.68.024-.682.02-.679-.135-.681.029-.681-.002-.679-.04-.679.019-.68.03-.679.054-.679-.013-.679-.115-.678.132-.679-.012-.678-.041-.679-.07-.676.026-.678.013-.678.026-.678.031-.677-.026-.676.016-.678.046-.677-.033-.677-.051-.676.009-.676.072-.677.03-.677-.112-.676.096-.677-.09-.676.063-.675-.131-.677.11-.676.045-.677-.12-.676.05-.677.025-.675-.067-.676.115-.677-.082-.676-.017-.677.03-.677-.06-.676.065-.676-.072-.677.014-.677.012-.677.034-.677-.06-.676-.024-.678.181-.678-.035-.678-.059-.677-.032-.678-.034-.679.141-.679-.155-.678.062-.679.089-.679-.026-.679.002-.681.026h-.679l-.681-.11-.681-.033-.68.022-.682-.031-.682.009-.681.112-.683-.062-.681.068-.682-.03-.68.069-.682-.115-.68.101-.68.012-.681-.074-.68.029-.68-.068-.679-.031-.679.087-.68.045-.68-.009-.678.014-.679-.06-.68-.081-.678.037-.678.061-.68-.039-.678-.055-.679.141-.679-.103-.679-.019-.679-.031-.679.055-.68-.005-.678.112-.68-.161-.68-.005-.679.023-.68.008-.68-.012-.681-.029-.68.032-.681-.012-.682.017-.681.084-.682-.123-.682.095-.684-.061-.682.108-.683-.072-.682.03-.681-.031-.682-.041-.682-.003-.68.127-.681-.05-.681-.026-.681.059-.68.017-.68-.148-.681.165-.68-.118-.68-.054-.681.083-.681-.023-.68.039-.682-.075-.68.01-.681-.018-.682.099-.682-.007-.682-.01
17-.683.073-.683-.16-.683.137-.683.028-.683-.049-.682.007-.683-.029-.681-.06-.683-.013-.68.084-.682.065-.681-.07-.682.007-.681.046-.682.025-.682-.008-.682-.075-.683-.001-.682.026-.683-.021-.684-.067-.683.029-.684-.019-.682.038-.683.048-.682-.054-.678.064-.679.006-.678-.073-.68-.063-.682.147-.681-.115-.683.046-.683-.06-.683.146-.684-.038-.682-.066-.682.072-.68-.008-.681-.076-.68.126-.679-.072-.68-.093-.681-.011-.68.029-.68-.012-.681.071-.682.046-.683.019-.683-.005-.685-.02-.685.033-.684-.056-.683-.052-.683-.046-.682.133-.683-.034-.682-.101-.684.047-.683.114-.685-.006-.687-.135-.684.142-.685-.078-.684-.088-.683.018-.685-.009-.685.126-.686-.143-.687.003-.684.015-.685.039-.681.116-.68-.043-.683-.001-.685-.094-.688.082-.685-.089-.683.117-.687-.003-.687-.017-.688.047-.687-.155-.688.164-.689-.08-.688.075-.686-.104-.69-.007-.691-.033-.693.148-.7-.072-.444-.519-.441-.51-.55-.402-.486-.466-.485-.464-.506-.446-.491-.46-.479-.472-.446-.504-.41-.538-.464-.486-.527-.424-.435-.515-.541-.409-.472-.477-.482-.468-.53-.421-.355-.593-.588-.363-.472-.477-.47-.479-.402-.548-.507-.442-.432-.518-.504-.447-.568-.381-.457-.494-.482-.468-.385-.564-.535-.416-.535-.417-.426-.524-.413-.535-.547-.407-.469-.481-.435-.515-.449-.503-.498-.455-.578-.376-.421-.531-.537-.416-.38-.571-.533-.421-.449-.506-.555-.401-.455-.497-.424-.531-.577-.38-.358-.595-.5-.458-.487-.469-.528-.431-.514-.443-.478-.481-.434-.522-.471-.486-.568-.389-.387-.569-.493-.462-.542-.415-.407-.547-.564-.391-.41-.545-.512-.442-.45-.504-.456-.498-.532-.422-.415-.539-.486-.467-.489-.464-.541-.414-.499-.454-.404-.549-.513-.441-.514-.439-.501-.453-.448-.505-.493-.46-.401-.552-.485-.469-.535-.42-.418-.533-.586-.371-.428-.527-.534-.421-.44-.514-.43-.525-.536-.42-.511-.447-.422-.533-.427-.531-.551-.407-.419-.539-.525-.434-.534-.426-.409-.548-.545-.414-.486-.471-.501-.456-.397-.56-.558-.398-.43-.527-.489-.465-.498-.459-.465-.491-.489-.467-.426-.528-.52-.436-.425-.53-.567-.389-.431-.526-.458-.497-.559-.398-.498-.458-.48-.478-.408-.547-.524-.434-.437-.521-.572-.388-.409-.549-.505-.454-.42-.538-.498-.459-.466-.492-.481-.474-.517-.438-.484-.47-.481-.473-.483-.47-.532-.422-.46-.491-.461-.49-.403-.547-.51-.441-.448-.503-.581-.371-.379-.568-.5-.453-.462-.487-.584-.37-.434-.515-.435-.516-.579-.376-.456-.496-.373-.579-.555-.402-.477-.478-.412-.543-.514-.445-.453-.506-.573-.389-.513-.447-.38-.583-.495-.465-.467-.494-.499-.46-.579-.379-.365-.592-.563-.395-.428-.528-.507-.451-.484-.472-.424-.533-.553-.404-.491-.468-.524-.436-.366-.594-.511-.45-.547-.418-.469-.494-.483-.48-.499-.462-.497-.464-.381-.579-.574-.385-.434-.527-.513-.45-.403-.557-.548-.417-.504-.461-.458-.506-.466-.498-.465-.496-.594-.371-.4-.556-.488-.475-.54-.426-.436-.526-.477-.482-.534-.425-.447-.511-.447-.512-.502-.459-.477-.489-.571-.399-.454-.509-.394-.571-.491-.473-.497-.472-.545-.424-.451-.516-.542-.418-.508-.459-.443-.527-.523-.448-.395-.578-.591-.386-.453-.524-.49-.495.681-.019.677.086.678-.145.677-.002.676.085.677.021.678-.031.678-.025
1h.678l.676.071.678.044.678-.049.678-.083.677.116.677-.158.679.116.678.002.678.033.677.027.679-.064.679-.108.678.015.679.122.678-.125.679.008.678.001.68.064.678.008.679.061.679-.105.68.109.678-.034.68.011.68-.121.68.076.679-.049.68.111.68-.139.681-.015.679.137.68-.1.681.034.679.061.679-.118.681.078.679.023.68-.039.679.031.679.011.68-.056.679.015.678.045.68.024.679-.07.679.057.678-.053.679-.07.679.097.679-.042.678-.065.679.17.677-.032.679.003.679.012.678-.027.678-.119.678.064.679-.061.677.027.678.036.678-.049.679.008.678-.009.676.058.678-.075.679.107.678.016.677.006h.677l.678-.141.678.11.677-.108h.678l.677.095.678.038.678-.092.677-.019.678.011.677.086.678.001.677-.067.678.002.678-.017h.677l.677.092.677-.131.678.046.678.06.677.004.677-.057.678-.036.678.029.678.135.677-.143.677.037.678-.051.679.02.677.116.677-.089.678.052.679-.046.678.033.676.021.679-.104.678.002.679.025.677-.015.678.052.679-.016.679-.073.677.154.678-.048.679.016.678.041.68-.031.679.035.678.008.679-.058.679.054.68-.074.677-.062.68.046.68.079.679.007.679-.108.68.068.68.008h.68l.68.012.679-.111.681-.027.679.07.681.024.681-.007.68.043.681-.091.68.063.681-.108.681.122.679.027.68-.006.681-.14.679.025.68.113.679-.117.681-.005.679.07.679.042.68-.037.68.004.678.033.679-.133.68.098.679-.096.679.173.679-.126.679.097.679.026.679-.103.678.062.679-.043.679.085.679-.127.678.086.679-.122.679.037.679.132.677-.005.679-.123.679.054.678-.011.679-.02.678-.036.68.092.678-.016.679.02.678-.023.678-.073.679.063.68-.08.678.012.678.129.679-.145.68.004.678.007.679.022.679.077.679.027.68-.034.678-.022.679-.091.68.103.68-.06.679-.014.679.048.681.064.679-.049.679.017.681-.108.68.151.68-.095.68.054.68-.108.682-.007.679.057.681.087.682-.034.681-.112.68.018.681.016.681.118.68-.126.68.039.681-.044.68-.026.68.02.681.137.679-.088.681.015.679.042.68.05.68-.092.679.087.679-.168.68.07.68.104.679-.154.68.074.679-.042.68.094.679-.118.678.118.68-.113.68.112.679-.025.679-.111.68.084.679-.016.68-.068.679.043.677.127.676-.002.677-.127.677.037.677-.043.678-.021.677.121.679-.099.678.05.679-.054.678.046.68-.005.68-.019.678.114.68-.069.681.012.68-.085.681.142.681-.06.682-.062.68.007.681-.02.682.127.679-.063.68-.042.68.006.68.027.679-.012.679.068.679-.147.68.052h.678l.678.07.679-.089.678.104.678-.086.677.075.678-.124.678.054.678.119.677-.102.677.047.677-.113.678.067.677-.019.676.069.677-.093.677.025.677-.001.677.108.676-.096.677-.035.676.043.677.069.677-.072.677-.044.676.09h.676l.678.055.677-.03.677-.134.677.071.677-.043.677.134.677-.173.678.097.677-.064.678.056.678-.024.678.006.678-.077.679.149.678.036.679-.11.678.014.68.002.679-.079.679.114.681-.065.68.121.68-.058.682-.07.68.089.682.019.681-.151.683.126.683-.091.682.078.682-.09.683.106.68-.104.682.008.681.11.681.009.681-.137.68.001.681.148.679-.106.68.007.681.016.679.015.679-.093.68.092.679-.052.68.099.679.009.679.002.679-.154.68.069.678-.043.68-.035.68.101.679-.056.679.035.681-.07.679.081.68-.018.681.02
11.68-.014.681-.05.68-.01.682.074.681-.024.682.024.683-.045.682.087.682.01.684.027.683-.065.683.066.682-.142.683.02.681.009.682-.014.682.009.682-.026.681.115.681-.065.681.003.68-.05.681-.033.681.17.682-.032.68-.112.681.04.682.029.68.01.682.064.682-.107.682-.055.682.081.683.082.682.003.685-.036.684-.009.683.051.683-.109.683.095.682-.085.682.003.683-.017h.681l.683-.013.682.038.681-.012.683.014.682.085.683-.143.682.141.683-.124.683.013.683.029.685-.07.683.137.685-.061.683.077.682-.082.683.01.679-.004.678-.002.68-.003.681.004.681-.034.682-.021.683.016.685-.054.683.04.683.053.684.058.681-.059.682.049.68.025.68-.009.682-.059.68-.012.681-.03.68.001.681.067.682.006.681-.092.684.068.684-.028.684.04.687-.074.684.107.683-.083.684.079.683-.109.683.035.683.002.683-.041.684.027.686-.016.687.055.685-.011.684.013.685-.071.685.124.684-.13.687.11.686-.132.686.027.686-.027.685.119.68.055.682-.118.682.029.687.021.687-.064.686-.032.686.04.685-.003.689-.005.687.103.688-.061.689-.039.69.112.687-.126.687.059.69-.026.692-.064.694.153.651-.03.132.626-.128.669.12.668-.154.669.078.667-.04.668.028.669.004.668-.049.667.117.668-.114.667-.024.668.134.667-.106.668.066.668.067.666-.136.669.107.668-.023.668-.106.669.077.668-.047.667.111.668-.149.67.167.669-.144.669.078.669.058.67-.154.67.063.671.025.67-.01.672-.038.671.024.672.054.67-.104.671.064.671.072.67-.011.67-.026.67.005.67-.128.67.102.669.002.668-.088.669.09.671.054.669-.11.669-.003.668.006.67.084.67-.141.67.026.669.001.67-.013.67v.671l.086.671-.047.671.085.672-.006.672.006.671-.009.672-.033.672.027.671.036.67-.035.67-.083.671.111.67-.03.67-.129.67.052.67.041.672-.009.67-.08.671.051.671.105.672-.037.671-.01.672-.08.673.144.672.003.671-.005.671-.002.671-.117.667.007.668-.021.667.046.668.023.67.051.671-.068.671-.005.673.017.672.063.672-.14.67.118.671-.047.669-.05.67.098.667-.049.67.044.669-.107.668.12.669.02.669-.015.67-.076.671v.672l-.006.671.062.674-.019.674-.031.672-.04.672-.014.672-.034.672.089.67-.008.671-.017.672.059.673-.122.673.126.675-.028.674.019.672-.099.673.101.673-.01.673.027.675.038.675-.146.673-.03.674.092.674.057.669-.101.67-.023.671.004.674.041.675-.048.675.138.673-.115.674.021.677.071.676.011.675-.088.679.001.675-.03.677.073.676.029.677-.092.681.037.68z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__2",d:"M486.094 125.912v24.833h83.82l-25.144-24.833z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__1",d:"M486.095 250.045h83.819v-99.301h-83.819z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__3",d:"M66.502 84.951l-.374.579-.506.449-.494.458-.424.53-.52.434-.476.478-.511.444-.487.465-.399.555-.55.405-.528.427-.414.54-.475.479-.548.407-.453.504-.457.498-.514.442-.393.563-.588.371-.479.478-.402.555-.507.453-.524.434-.388.571-.595.365-.398.558-.54.418-.469.489-.459.497-.472.486-.495.462-.453.503-.544.411-.449.508-.471.485-.494.461-.513.442-.389.566-.53.426-.546.412-.475.48-.37.586-.527.431-.45.506-.593.366-.37.587-.528.43-.491.468-.495.464-.458.502-.538.42-.401.557-.464.493-.561.396-.449.506-.472.482-.475.479-.434.519-.532.42-.51.443-.492.46-.433.518-.462.488-.477.474-.536.416-.387.564-.503.446-.517.435-.427.524-.525.427-.474.477-.436.516-.535.418-.526.43-.371.584-.577.379-.382.573-.513.444-.531.43-.463.5-.542.42-.494.468-.42.54-.459.502-.554.406-.416.54-.478.48-.459.499-.588.368-.476.483-.468.489-.407.55-.476.481-.56.399-.386.573-.521.44-.513.45-.532.431-.449.516-.485.477-.48.483-.501.459-.465.495-.514.448-.478.482-.475.487-.483.478-.472.493-.53.436-.448.516-.41.553-.469.492-.552.413-.537.421-.418.544-.544.423-.487.477-.461.497-.39.567-.595.366-.433.525-.48.482-.432.533-.536.433-.56.406-.42.543-.548.417-.449.524-.504.463-.486.481-.417.543-.451.515-.49.481-.537.434-.496.478-.534.442-.482.497-.407.536.001.644-.061.49v1.176l.078.34-.063.667.078.668-.093.525v.561l.015.25.029.667-.014.669-.009.666-.011.668-.01.096v.956l.041.284.034.667-.012.667-.055.669-.008.058v.952l.076.324-.076.317v1.917l.051.439.004.67-.055.331v.857l.016.149-.016.11v1.014l.039.215-.039.232v1.563l.017.217-.017.609v.077l.07.656-.024.672-.046.389v1.581l.001.042.019.67-.02.234v.893l.017.213-.017.268v1.453l.039.287-.039.44v.484l.033.415.018.669.022.669
1-.031.669.014.668.03.67-.039.67-.047.271v4.003l.072.418-.072.57v1.076l.028.369-.021.672.01.671-.017.104v1.029l.042.208-.042.41v2.555l.062.387-.024.669-.038.347v.534l.079.459-.079.394v.613l.055.336-.055.567v1.61l.079.51-.079.318v.989l.005.037-.005.085v1.727l.028.197.067.667-.095.612v2.229l.08.507-.08.346v1.9l.085.441-.057.669-.028.312v.65l.042.377-.035.67-.007.087v1.453l.088.465-.082.668.034.67-.04.231v.794l.067.315-.067.51v.628l.01.205-.01.062v1.922l.003.037-.003.031v.949l.062.362-.049.672.019.67.051.671-.083.39v.674l.044.281-.044.365v1.805l.087.525-.087.422v1.093l.076.503-.055.674-.021.625v.065l.074.659-.062.674-.012.126v.79l.091.426-.053.67.015.672-.053.366v.914l.005.07-.005.071v1.349l.034.6.054.677-.011.675.016.676-.062.678-.031.199v.854l.061.3-.061.383v.583l.062.387.019.68-.081.447v.489l.062.368.613.136.673.006.676-.089.676-.016.674.008.676-.016.676-.029.676.034.676-.043.678.161.677-.041.678-.138.675.061.677-.036.675.018.677.044.675.027.676-.029.676.073.675.001.675-.15.675.073.677.079.675.016.676-.164.677-.005.677.079.675-.032.679.089.677-.043.678-.029.677-.051.675.157.673-.158.672.056.672.099.672-.138.674.044.675.04.676-.071.676-.007.678.09.679-.014.676-.115.677.104.674-.036.676-.064.674.048.674-.049.674.157.674-.122.674-.017.674.13.675.013.675-.106.675.058.678-.107.677.038.679-.026.678.053.68-.013.676-.046.678.058.675.023.677-.104.677.041.677.136.677-.177.679.167.681-.084.678.098.679-.029.678-.051.678-.084.677.042.681.11.681-.156.678.136.68.014.679-.004.674-.02.675-.096.676.06.68-.033.681-.057.679-.016.679.129.68-.097.681.122.682.027.679-.026.684-.07.682.09.683-.062.68.041.684-.129.685.158.686-.137.669.028.103-.652-.022-.67-.116-.672.082-.668-.081-.669.004-.668.052-.668v-.67l.077-.669-.123-.67-.046-.669.104-.67-.005-.67.072-.67-.169-.671.134-.671-.064-.672-.055-.672.14-.672-.005-.672.014-.672-.131-.673.065-.672-.041-.673.036-.672-.017-.673-.002-.671-.029-.672.129-.672-.115-.671-.008-.672-.027-.671-.024-.671.061-.67-.034-.67.15-.67-.175-.67-.008-.67.09-.67-.056-.669-.005-.671.094-.668-.065-.668.078-.67-.096-.669.014-.669.131-.668-.01-.669-.002-.67-.117-.667-.003-.669.024-.668.045-.668.011-.67-.016-.667.03-.669-.01-.668.027-.668-.034-.669-.082-.668.057-.67-.098-.667.113-.669-.095-.668.052-.669.081-.67-.07-.667.093-.669-.125-.671-.05-.668.113-.669-.019-.67.012-.669.016-.67-.031-.67.025-.671-.121-.67.184-.671-.025-.67-.064-.671-.006-.671.09-.672-.056-.672.026-.672-.05-.672-.058-.673.119-.674-.075-.673.089-.675-.145-.673-.027-.674.177-.673-.039-.674-.055-.674.021-.673-.054-.673-.043-.672.094-.672.036-.672-.076-.672-.018-.671.134-.672-.051-.672.055-.671-.175-.672.135-.671-.127-.67.057-.671.011-.671.038-.671-.029-.672-.081-.671.075-.671-.022-.671.114-.67-.163-.672-.011-.671.019-.671-.026-.671.168-.672-.005-.671-.125-.673.087-.672-.079-.673.088-.673-.045-.673.004-.674.054-.674-.001-.674v-.674l-.098-.675.059-.674-.005-.675.064-.675-.08-.673-.058-.672.003-.674.025-.674-.043-.673.118-.673-.057-.672.001-.673.091-.673-.088-.673-.052-.672.119-.672-.009-.673-.118-.673.158-.673-.122-.672.12-.674-.021-.672-.136-.675.147-.673-.079-.675.055-.675.045-.675-.11-.675.097-.675-.164-.675.034-.675.098-.674.025-.673-.018-.674-.117-.673.043-.674.083-.674.01-.674-.086-.673.037-.674-.1-.674-.012-.675-.004-.674.146-.675-.138-.676.1-.674-.004-.676-.029-.675-.053-.675.036-.676.017-.673.108-.67-.079-.671-.071-.67-.027-.673-.007-.673.153-.674-.009-.673-.069-.677-.065-.676.069-.675.057-.674.034-.674-.046-.672-.115-.673.157-.671-.088-.673.018-.671.055-.672-.105-.673-.013-.673-.02-.672.055-.675.041-.675.051-.675-.001-.678-.131-.677.123-.675-.03-.675-.036-.676.084-.675-.168-.674.175-.674.009-.675-.005-.676-.147-.677.147-.678-.105-.678.07-.676-.076-.675-.036-.677.1-.676.004-.678-.012-.679-.096-.676.101-.677.026-.678-.068-.672.099-.674-.041-.673-.058-.678.012-.679.012-.678.063-.677-.039-.676-.091-.68.101-.679-.132-.679.064-.682.023-.68-.07-.68-.018-.679.062-.682-.051-.682.044-.686.043-.722zm260.402 165.055l.63.03.679-.008.68.032.68.012.68-.056.682-.04.681.146.684-.026.684-.06.684.052.684-.072.682-.011.682.086.682-.028.683-.002.682.052.682-.142.683.068.685.021.685-.048.685.129.683-.176.684.082.683.055.684-.02.686-.101.685.033.685.06.684-.093.685.059.68.067.68-.088.682.083.685-.04.686.055.686.023.683-.148.684-.03.69.164.685-.029.687-.021.688.05.688-.108.688.11.685-.009.69.022.69-.056.693.002.748.023-.002-.725-.036-.669.014-.67-.048-.668.087-.669-.127-.669-.038-.668.174-.669-.141-.668.119-.669.036-.668-.177-.669.005-.669.143-.668-.066-.669.091-.669-.154-.67.14-.67-.047-.669-.016-.67.059-.671-.062-.671-.036-.671.004-.671.031-.671.066-.671.018-.67-.111-.67.035-.67.032-.669-.005-.67-.006-.669-.042-.67-.047-.67.009-.669-.019-.669.07-.671-.009-.67.08-.671-.108-.672.081-.671-.011-.672.051-.671-.106-.67.1-.671.001-.67-.064-.666v-.667l-.072-.667.095-.667.025-.67.001-.67-.061-.67-.026-.672-.08-.672.019-.671.132-.67.01-.668-.157-.67.179-.669-.131-.668.047-.668.006-.669-.032-.667.024-.668.043-.668-.016-.67.027-.67-.033-.67.057-.672.013-.673-.143-.672.054-.673.02-.671.058-.671-.086-.67-.07-.67.052-.671.096-.671-.148-.671.127-.673.037-.675-.081-.672.056-.673-.089-.672-.041-.672.017-.672-.044-.674.137-.675-.032-.673-.066-.673.047-.673-.023-.669.078-.668.029-.67-.021-.674.01-.675-.154-.673.008-.673.018-.674v-.675l.004-.675.138-.675-.031-.677.044-.677-.055-.675.041-.675-.018-.676-.137-.68.069-.681.028-.702-.702-.014-.679-.008-.68-.011-.68.092-.681-.044-.68.078-.682-.07-.684-.079-.684.13-.685-.044-.684.082-.682-.094-.682.057-.683-.07-.68.041-.683-.083-.683.035-.683.033-.684-.034-.686.014-.685-.
1006-.683-.028-.684.116-.683-.1-.684-.053-.685.031-.686.007-.685-.004-.684.06-.685-.099-.68.057-.679.019-.683.02-.685.083-.686-.182-.685.095-.683.02-.686.059-.688-.04-.686.042-.687-.112-.688-.063-.688.04-.687.035-.686-.046-.689.106-.691-.014-.692-.025-.676.01.041.652-.075.669-.033.669.033.669.057.668-.048.67.046.668-.057.668.048.668.057.67-.167.668.063.669.08.667-.055.67.018.669.006.669-.032.669-.083.669.152.671.009.67-.152.671.094.67-.089.672.158.671-.051.671-.124.67.042.67.09.67.039.671-.124.669.081.669-.021.669-.11.67.069.67.086.669.004.67-.032.671-.031.67.042.671-.039.671.04.671-.074.672-.011.67-.051.671.051.672.029.67.069.666.01.666.006.667-.107.668.104.669-.138.67-.007.671-.014.672.012.672.158.671-.074.669.013.67.044.668-.135.669.123.669-.096.667-.045.668.007.669.052.668-.065.668.019.669.071.67-.042.671-.046.672.171.673.003.672-.162.672.165.672-.181.67.09.671-.082.67.068.671.068.67-.04.672-.028.673-.023.675-.028.672.155.673-.113.672.12.671-.145.673.121.674-.034.673-.01.674-.039.673.058.673-.018.668-.041.67.049.67-.123.674-.004.674.081.674-.043.672.091.673-.12.677.138.676-.066.674-.037.677-.004.676.07.676-.018.674-.016.678-.048.679.076.68z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__5",d:"M310.042 250.109l.726-.134.67.154.67-.017.669-.132.669.091.669-.099.664.065.665.086.666-.08.669-.021.673.057.668-.021.668-.077.669.045.673-.05.671.098.671-.087.673.056.672.019.672-.042.67.013.673.107.675-.001.677-.139.637.014-.041-.629-.014-.669.152-.67-.037-.668-.027-.669.065-.669-.044-.668.05-.669-.135-.668.018-.67-.029-.667.043-.668.104-.669-.137-.67.094-.669-.07-.668.031-.669-.033-.67.018-.671.027-.67-.059-.67-.029-.671.163-.672-.144-.671-.021-.67.154-.671-.018-.67-.001-.67-.046-.67-.054-.669.042-.67-.051-.669.141-.669-.107-.671.017-.669.11-.67-.14-.671.068-.669-.08-.671.03-.671.121-.672-.127-.671-.036-.671.069-.671-.081-.672.022-.669.106-.666-.079-.667.056-.667-.081-.668-.031-.669.046-.67.084-.67-.099-.673.01-.672.007-.67-.007-.67.062-.669.079-.669-.041-.669-.016-.668.008-.668.046-.668-.175-.669.118-.668-.011-.667-.076-.669-.001-.671-.028-.671.159-.671-.145-.673.141-.673-.056-.672-.07-.671.009-.671.118-.671-.044-.67.058-.67-.172-.671.028-.672.045-.672-.072-.675.073-.673-.026-.673.078-.671-.079-.672.084-.673-.105-.673.117-.674-.052-.674v-.672l-.058-.673.119-.669-.098-.67.104-.669-.128-.674.147-.675-.081-.672.078-.673-.077-.674-.029-.676-.033-.675-.024-.676.02-.676-.023-.677.036-.676.011-.673-.038-.678.006-.679.074-.681.017-.708-.696-.046-.669.083-.67-.03-.669.068-.669-.02-.67-.027-.663-.044-.665-.004-.667-.013-.669.079-.672-.047-.669.008-.667-.025-.669-.013-.674.068-.671-.007-.67.021-.673-.013-.672.076-.672-.043-.67-.011-.674-.017-.675-.085-.677.133-.688-.075-.046.68.138.669.011.67-.166.669.029.669-.011.668.105.668-.123.669.103.669-.097.669-.02.667.144.669-.146.669.065.669.118.669-.127.668-.039.67.141.67-.038.67-.117.67.181.67-.049.671-.04.672-.053.671-.007.67.116.671-.075.671-.032.67-.01.669-.001.669.02.67-.004.669.117.671-.061.669-.082.669.015.67.124.671-.02.669-.052.671.066.672-.144.672.165.671-.179.671.079.671-.016.671-.035.669.05.666-.023.667.098.667-.041.668-.056.67.041.669.002.671-.041.672-.036.672.155.67-.152.67.102.67.027.669.024.668-.154.668.024.668.054.669-.064.668.061.668.031.667.014.67-.026.67-.049.671.1.671-.114.673.118.673.01.673-.106.67.012.671.068.671-.089.67-.053.67.009.671.11.672-.004.673.051.674-.078.673-.074.673.006.671.094.672.048.673-.066.673-.026.675-.085.674.148.672-.036.673-.018.669.077.669-.08.67.014.673-.001.676-.1.674.119.671.026.674.005.676-.039.675.006.675-.042.676-.009.677.089.676-.086.674-.004.678.003.678.089.684z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__2",d:"M251.37 51.505l.743.008.676-.047.677.002.676-.075.675.076.678-.107.68.104.679-.045.679.043.678.037.678-.028.677.048.679-.133.678.031.681.067.679-.036.679-.019.678.075.674-.112.675-.004.676-.019.679.021.682.106.677.012.679-.018.679-.03.682.013.681-.063.68.068.684-.068.681-.048.681.147.681-.028.683-.06.684.013.688-.026.75.094.011-.727-.131-.665.104-.664-.086-.667.111-.667-.055-.667-.055-.666.082-.664-.012-.666.027-.664-.109-.664.036-.663.008-.663.029-.664-.115-.663.112-.663.025-.665-.09-.664.133-.665-.007-.666-.15-.666.127-.668.023-.668-.013-.668-.103-.667-.059-.665.016-.666.041-.665.038-.666.088-.666-.093-.667-.05-.669-.016-.67.154-.667-.113-.668.016-.667-.008-.667-.031-.668.121-.669-.087-.669-.058-.668.106-.668-.038-.67-.069-.663.106-.664.009-.666-.111-.668.11-.671-.051-.668.014-.668.087-.668-.097-.672.011-.67-.093-.67.11-.673-.062-.67-.043-.671.095-.67-.042-.673.002-.674-.042-.677.103-.705-.707-.035-.676.071-.675.011-.676-.004-.677-.018-.678.022-.679-.037-.679.01-.679-.051-.678-.007-.678.022-.677.124-.678-.165-.68.13-.68-.041-.678-.016-.679.015-.68.027-.674-.046-.674.054-.676-.083-.679.075-.682-.011-.678.029-.678-.112-.679-.014-.682.029-.681.101-.681-.026-.682-.067-.682.094-.682-.012-.68.017-.683-.055-.685-.036-.687.002-.717.001-.033.695.041.664.027.664-.091.667.095.667.082.667-.061.666-.046.665-.076.666.015.664.12.662-.086.664.098.663-.124.664-.011.663.114.663-.095.665.093.664-.013.665-.072.666.046.667.084.668.006.667-.01.668-.1.667-.011.665.097.667-.137.665.013.666.112.665.01
17.668-.064.668-.007.67.032.668-.1.668.042.666.079.667-.082.669.099.668-.017.67-.046.667-.034.669-.025.669-.031.663.059.664.086.666.023.669-.125.67.08.668-.064.668.058.669.052.672-.086.669-.079.67.086.673-.007.671.019.67.039.67-.132.673-.003.674.039.675z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__5",d:"M251.379 150.803l.734-.084.676.08.676-.01.676.049.677-.104.677.098.68.001.679-.06.679-.002.679-.071.677.093.677.025.679.001.679-.06.679-.025.68-.079.679.018.678.13.674.011.674-.154.677.174.679-.128.681.046.679.006.678-.032.679.023.682.044.681-.016.68.026.684-.03.681.055.681.012.68-.141.685.052.683.022.687.056.685-.084-.072-.666.054-.669.094-.668-.147-.668.127-.669.036-.667-.081-.668.057-.668-.09-.668-.041-.667.018-.669-.043-.666.136-.668-.033-.668-.065-.668.047-.667-.024-.668.079-.668.029-.667-.022-.668.011-.669-.153-.669.007-.668.018-.668.001-.67.004-.669.136-.67-.031-.668.044-.671-.055-.67.042-.671-.018-.671-.138-.672.07-.672.037-.671.004-.67.007-.671.012-.67-.094-.67.045-.67-.079-.669.07-.67.081-.67-.13-.669.044-.668-.084-.669.096-.671-.057-.669.07-.669-.042-.668.084-.67-.035-.67-.033-.67.033-.671-.014-.669.007-.671.028-.671-.118-.671.102-.671.053-.673-.031-.672-.009-.671.006-.671-.06-.671.1-.671-.058-.67-.021-.671-.018-.67-.084-.67.183-.671-.095-.669-.021-.671-.06-.67.041-.671-.042-.672.113-.671.064-.673-.042-.671-.036-.673.049-.672-.109-.671.014-.671.026-.671-.016-.666-.033-.667.074-.669.034-.668-.033-.669-.058-.671.048-.672-.046-.672.058-.672-.049-.672-.056-.671.166-.67-.062-.67-.081-.669.056-.669-.018-.669-.007-.668.032-.669.082-.669-.15-.669-.01-.67.151-.67-.092-.672.088-.672-.157-.673.05-.674.123-.673-.041-.672-.09-.671-.039-.671.123-.672-.08-.67.022-.672.109-.673-.069-.674-.086-.675-.003-.674.031-.673.032-.672-.043-.673.04-.674-.04-.673.073-.675.011-.674.051-.673-.051-.675-.03-.669-.067-.669-.011-.671-.006-.674.108-.677-.105-.673.139-.674.006-.674.014-.676-.011-.676-.158-.677.072-.676-.011-.678-.044-.676.135-.675-.123-.678.094-.68.046-.682-.028-.735-.732.029-.676-.065-.676.02-.677.07-.676-.041-.678-.047-.678.169-.681.004-.678-.161-.678.163-.677-.179-.679.09-.677-.081-.68.066-.68.068-.678-.039-.679-.029-.68-.021-.674-.028-.675.153-.675-.112-.679.117-.682-.142-.678.12-.677-.034-.68-.011-.682-.038-.681.059-.681-.019-.682-.041-.683.049-.68-.121-.681-.005-.683.079-.685-.041-.687.09-.744-.095.114.726-.066.669-.036.668-.005.668.07.668-.018.669-.016.668-.048.668.076.666-.107.669.047.667-.01.668.103.668-.071.667.026.667.03.668-.087.668.067.668-.024.668-.049.669-.006.667.057.668.015.669-.03.669-.008.669.04.668.007.67-.072.671-.003.67.067.669-.006.671-.061.672.072.671-.056.671-.009.671.103.671-.043.671-.024.669-.048.672.025.669-.048.67.149.67-.035.668-.022.669.08.67-.057.67.006.669-.044.668-.012.669.116.671-.099.669-.068.669.094.67.007.67-.095.67.042.671.032.671-.048.672.126.672-.15.671.004.672.113.672-.035.671-.059.67.134.671-.159.67.117.671-.082.669.018.671.033.671.013.67-.019.67.041.671-.091.671.046.671.014.671-.019.672-.046.672.129.673-.069.671-.091.672.008.671.157.671-.063.667.044.667-.157.668.16.668-.067.671-.01.669-.02.672.036.673-.08.673.115.67.026.671-.112.671.043.669.011.669.008.669.065.669-.077.669-.044.668-.017.669.065.67.024.669.002.671-.082.671.129.672-.035.674-.055.674.075.672-.067.673.007.671.062.671-.079.671-.065.671.155.672-.136.672.141.674-.046.676-.068.672.031.673-.083.673-.013.672.089.674.036.675-.101.674.091.675.007.674.031.672-.151.67.008.67.02.671.105.674.01.675-.111.675.136.672-.051.675-.041.677-.068.675.051.676v.679l.006.675-.025.677.025.675-.042.678.006.68.013.68z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__3",d:"M251.422 250.066l.691-.107.676.029.676.014.676-.012.677.131.678-.039.679-.052.679.082.679.016.679-.099.676.029.678-.085.679.014.679.098.679.023.68.033.679-.033.678-.082.674.089.675-.05.676-.002.679-.046.681.013.679.016.678-.039.679.097.682-.1.682.04.679.011.684-.068.681.048.681.105.68-.009.685-.019.683-.083.687.056.69-.03-.091-.672.039-.67.108-.668.017-.668-.143-.668.087-.668-.007-.668.046-.667-.07-.669-.057-.668.013-.667.073-.667.023-.668-.041-.667-.079-.668.043-.668.1-.668-.051-.667-.03-.669.09-.667-.06-.669.052-.668-.001-.669-.142-.668.127-.669-.003-.669-.009-.67.013-.67-.085-.67.102-.67-.155-.671.007-.
1672.151-.67-.045-.672-.079-.671-.001-.67.092-.671.035-.671-.114-.67-.011-.67.117-.669-.102-.67.088-.669-.039-.67.055-.669-.073-.669-.036-.669.133-.669-.155-.67.093-.669-.047-.669-.037-.67.069-.67.026-.67-.067-.67-.021-.671.099-.671-.047-.672.075-.671-.053-.672-.046-.672-.05-.671.156-.671-.079-.671.009-.671-.076-.669.012-.671.127-.67-.075-.671.046-.671.019-.669-.024-.671.03-.671-.138-.671.099-.67-.033-.672.041-.672.006-.671-.056-.673-.086-.672.126-.672-.031-.67-.094-.671.087-.668-.084-.667.047-.667.094-.669-.102-.67.086-.67-.055-.672.022-.672-.095-.672.048-.672.098-.671-.08-.67.076-.669-.042-.669-.092-.67.146-.669-.07-.668.027-.668.022-.67-.103-.67.072-.669.01-.67-.08-.671.096-.673-.019-.673.047-.674-.061-.673-.059-.673.09-.67.012-.672-.016-.671-.022-.671-.046-.671.066-.673-.107-.674-.003-.675.025-.674.151-.672-.068-.672-.103-.673.117-.674-.013-.674-.025-.675-.016-.675.008-.673-.067-.674-.013-.669.108-.67.001-.67-.049-.675-.006-.676-.005-.673.078-.673.042-.674-.098-.677-.036-.677.009-.675-.036-.678.167-.677-.136-.675-.027-.676.111-.679-.104-.679.161-.682-.075-.699-.695.001-.676-.027-.676.058-.677.061-.677-.009-.677.011-.678-.163-.681.009-.678.043-.678.113-.677-.082-.679.061-.677-.076-.68.015-.68-.087-.678.086-.679-.036-.68.084-.674-.054-.674.082-.676-.132-.679.058-.682.005-.679.012-.676-.087-.68.087-.683-.031-.679.056-.682-.103-.682.033-.683.104-.68-.127-.681.052-.683-.084-.685.13-.687-.088-.693.036.064.676.01.669.008.667.016.668-.059.669.022.668-.021.668.009.668-.032.667-.105.667.069.668.116.668-.048.668-.031.667-.004.668.057.667-.102.668.067.669.03.667.017.668-.035.668-.024.669.076.668-.081.669-.005.669.031.669-.014.67-.021.669-.011.671.066.669-.104.671.028.671-.076.672.113.671.049.672-.114.671.095.671-.017.669.042.67-.057.67.004.67-.017.669-.051.67.115.669-.017.669-.088.669.068.669-.091.67-.004.669.079.669.061.67.01.669-.003.671-.015.67-.15.67.041.67.06.671-.067.672.071.672.049.671-.053.672.061.672-.108.671.002.67.098.671-.014.67-.002.672-.043.669-.078.67-.01.671.051.67.079.67-.055.67-.084.671.17.672-.061.671.058.672-.043.672.026.673-.09.671.057.672.055.672.004.671-.1.666.038.667-.014.668-.03.669-.06.669-.007.67.108.672.043.673-.062.672-.013.671-.085.671.042.671-.044.67.035.668.019.669-.027.669.139.669-.034.669.026.668-.121.669-.014.67.063.671-.021.67-.067.673.097.674-.063.674.082.672.041.672-.045.672.038.67-.006.672.015.671-.131.672.004.672.141.674-.036.676.026.673.006.673-.111.673.073.672-.13.674.185.673-.032.675-.016.674-.127.674.017.674.001.669-.016.669.12.672-.1.673.049.677.037.674-.033.673-.054.674.059.677.011.675-.054.677.02.677.049.677-.019.677-.083.674.158.679-.133.679.137.684z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__5",d:"M419.627 250.049l.662-.065.658.128.661-.012.661-.031.664.061.666-.154.664.056.662.087.665-.045.666-.026.666-.034.665.07.668-.107.667.13h.665l.666-.061.668.023.669-.014.671-.049.64.01.026-.633.192-.648.081-.661.062-.66.038-.664-.021-.67.086-.653.156-.648-.061-.671.113-.656.045-.666.171-.65.026-.663.125-.656.003-.669.146-.656-.067-.675.06-.666.121-.658.151-.654-.062-.676.177-.654.135-.659-.042-.68.082-.653-.655-.083-.669.065-.67-.003-.669.095-.669-.087-.669.064-.663.025-.665-.025-.666-.007-.
167-.098-.671-.003-.669.038-.667.085-.67-.075-.672-.043-.671-.049-.671.126-.672-.105-.672-.01-.672.129-.671.006-.673-.006-.674.039-.676-.147-.703.035.015.689.138.654-.005.67.234.644-.031.669.084.66.132.65.08.655.091.655-.063.674.081.662.117.655.123.654-.087.677.092.661.083.661.025.667.151.656.059.664.145.656.063.662.093.663-.015.674.024.673zm.702-29.856l-.496-.373-.573-.351-.522-.425-.593-.316-.526-.41-.521-.418-.551-.379-.495-.452-.608-.312-.506-.439-.492-.458-.556-.382-.531-.411-.527-.419-.53-.415-.497-.455-.488-.463-.512-.439-.403-.55-.587-.359-.43-.523-.55-.402-.472-.482-.399-.553-.538-.42-.397-.552-.431-.52-.532-.433-.427-.524-.426-.524-.353-.582-.526-.448-.43-.523-.312-.607-.469-.497-.34-.585-.293-.61-.265-.62-.382-.555-.285-.606-.307-.596-.148-.657-.206-.632-.189-.64-.127-.655-.109-.661-.036-.672.201-.65.177-.636.105-.666.253-.626.39-.556.453-.5.448-.51.605-.33.493-.469.609-.3.636-.227.631-.244.67-.133.679.073.638.223.637.193.609.274.62.284.483.474.556.392.398.549.488.465.332.588.455.496.404.536.248.631.414.532.27.613.347.573.309.592.208.641.29.599.312.588.254.614.276.607.223.627.269.61.292.604.15.655.277.612.259.618.198.64.113.665.282.615.192.645.179.649.085.674.189.645.283.619.048.684.267.624.064.675.299.618.024.682.281.621.064.669.103.658.115.652.124.653.148.647.256.628.016.672.09.654z"}),(0,i.default)("g",{transform:"translate(0 .287)"},(0,i.default)("path",{class:"tk-energiberegner-house-color__5","stroke-width":"2",d:"M410.586 205.306c11.906 16.112 15.786 25.295 15.693 36.186"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__5",d:"M432.66 219.394l.627-.186.675-.109.627-.266.645-.207.606-.307.665-.142.613-.287.624-.258.641-.216.632-.239.667-.159.628-.252.611-.296.59-.344.652-.204.638-.237.635-.236.56-.401.658-.198.614-.292.548-.42.601-.317.602-.314.579-.36.668-.206.577-.363.61-.311.545-.416.614-.307.476-.514.617-.305.544-.411.504-.461.525-.431.505-.45.595-.353.485-.475.439-.516.413-.535.55-.424.384-.558.359-.577.367-.573.203-.65.23-.632.077-.669.08-.658-.031-.661-.006-.671-.126-.662-.326-.594-.219-.646-.482-.493-.322-.601-.477-.486-.488-.48-.599-.336-.648-.214-.652-.179-.678-.027-.68.016-.638.242-.678.094-.586.351-.589.32-.618.276-.618.293-.469.501-.506.442-.604.33-.449.509-.454.496-.531.42-.495.46-.452.5-.452.498-.462.492-.386.55-.438.508-.502.458-.388.549-.467.491-.321.601-.43.519-.44.514-.419.53-.353.576-.28.624-.381.56-.429.527-.444.52-.387.557-.283.622-.443.524-.274.624-.317.597-.347.578-.392.552-.332.584-.422.533-.169.67-.396.546-.392.55-.239.631-.395.55-.251.618z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__5","stroke-width":"2",d:"M445.367 207.878c-19.086 13.956-19.179 22.723-19.086 33.614"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__5",d:"M424.826 217.09l-.219-.604-.314-.595-.205-.643-.243-.626-.248-.624-.333-.593-.159-.658-.327-.598-.089-.677-.337-.591-.251-.622-.094-.675-.203-.639-.219-.634-.269-.62-.127-.663-.309-.613-.048-.684-.211-.639-.149-.654-.251-.629-.126-.661-.25-.633-.149-.658-.028-.685-.15-.658-.101-.668-.283-.634-.017-.684-.119-.665-.057-.673-.127-.665-.109-.669-.162-.664.071-.689-.133-.667-.115-.672-.033-.677.055-.681-.164-.674.036-.679.146-.673-.089-.681.18-.663-.02-.681.034-.676.15-.66.277-.628.003-.696.292-.615.26-.622.348-.58.317-.59.276-.63.539-.435.483-.466.508-.441.554-.387.616-.281.604-.324.668-.147.661-.187.695.057.676-.163.68.129.695-.031.644.256.648.207.643.255.466.512.494.453.427.52.347.574.327.589.305.607.145.661.116.662.214.645-.084.686.089.663.108.664.066.671-.133.671-.046.668.065.675-.051.67-.115.665.039.681-.198.654.002.68-.235.645-.099.661-.023.677-.231.64-.019.681-.268.632-.132.66-.081.672-.137.661-.174.652-.178.651-.213.643-.215.642-.068.685-.255.634-.158.658-.279.622-.153.661-.238.634-.236.633-.09.683-.385.584-.119.673-.299.617-.241.635-.19.654-.263.626-.119.677-.362.586-.193.647-.171.656-.303.604-.213.641-.343.587-.266.619-.214.637z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__5","stroke-width":"2",d:"M426.28 198.213c-3.764 22.893.092 32.387-.001 43.278"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__2",d:"M334.025 212.527l-.071.636-.454.45-.476.405-.625.073-.591-.156-.639-.194-.133-.657-.273-.557.229-.576.343-.475.462-.385.602-.075.66-.063.424.504.413.458z"}),(0,i.default)("mask",{id:"b",class:"tk-energiberegner-house-color__2"},(0,i.default)("use",{href:"#a"})),(0,i.default)("path",{class:"tk-energiberegner-house-color__4",d:"M0 349.066h569.913v-99.308H0z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__1",d:"M310.1 266.315h50.285v-16.549H310.1z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__5",d:"M360.385 266.315h209.528v-16.549H360.385zM0 266.315h310.1v-16.549H0z"}),(0,i.default)("path",{class:"tk-energiberegner-house-color__5 tk-energiberegner-house-color__5--stroke-only","stroke-width":"2",d:"M519 207.82h16.765v-33.107H519zM138.299 96.665l-.026.672-.033.673-.105.666-.052.677-.207.646-.211.642-.252.627-.349.583-.181.662-.408.54
16-.401.543-.287.624-.42.535-.579.391-.458.493-.513.439-.464.503-.624.293-.517.447-.639.247-.615.28-.566.397-.689.097-.629.256-.634.275-.694.005-.677.051-.668.192-.685-.019-.675-.134-.695.123-.672-.137-.663-.165-.646-.213-.648-.202-.679-.126-.597-.334-.595-.327-.585-.338-.569-.363-.563-.374-.526-.424-.585-.365-.44-.519-.394-.553-.435-.512-.5-.475-.351-.579-.29-.612-.364-.574-.136-.673-.391-.576-.027-.694-.24-.63-.113-.663-.056-.667-.104-.665.004-.672-.078-.675.094-.67.148-.659.086-.667.162-.654.239-.63.268-.616.127-.679.439-.535.248-.635.347-.582.379-.562.547-.43.436-.513.442-.512.549-.403.491-.467.536-.417.567-.377.607-.309.632-.255.587-.358.678-.127.619-.307.662-.173.691-.024.672-.101.676-.122.684.071.676.07.677.044.689-.018.67.132.677.113.631.271.612.3.625.259.651.217.621.29.539.42.537.415.475.485.606.34.456.502.443.512.487.478.334.593.381.559.333.586.213.643.378.569.26.625.205.645.126.663.134.661.05.672.046.67z"}))))};if(e)return t[e]||""};var n=e("mithril"),i=(e=n)&&e.__esModule?e:{default:e}},{mithril:410}],21:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){function n(e,t){var n={title:e.TermsAndConditionsHeadline,text:e.TermsAndConditionsText};return(0,a.default)("section",{class:"tk-energiberegner__enter-info__input-container"},(0,f.useThirdPartyGaPixel)()?(0,a.default)("img",{style:"visibility:hidden;display:none;",src:"https://www.google-analytics.com/collect?ds=mp&cd9=mp&v=1&t=pageview&tid=UA-38857911-3&dl="+window.location.href+"&dh="+window.location.hostname+"&uip=194.89.129.68&cid=mp202101191233&dt=tester&sc=end"}):"",(0,a.default)("img",{style:"visibility:hidden;display:none;",src:"",id:"gaEnergySubmit"}),(0,a.default)("img",{style:"visibility:hidden;display:none;",src:"",id:"gaResMediaSubmitPixelEnergy"}),(0,a.default)("img",{style:"visibility:hidden;display:none;",src:"https://stm.totalkredit.dk/extembed?v=1&t=event&tid=UA-38857911-3&ec=beregnere&ea=show&el=energiberegner&dl="+window.location.href+"&dh="+window.location.hostname+"&uip=194.89.129.68&cid=mp202101191233&dt=beregnere&ds=embed&sc=end",id:"gaResMediaShowPixelEnergy"}),(0,a.default)("h2",{class:"tk-typography--title-lg tk-beregner__title__energiberegner tk-energiberegner__enter-info__input-container__title"},(0,s.default)("InputFieldHeadline",e)),(0,a.default)("div",{class:"tk-form-field tk-form-field--energiberegner"},(0,a.default)("label",{for:"dawa-address-input"},(0,s.default)("InputAddressFieldLabel",e),(0,a.default)(l.default,{text:(0,s.default)("InputAddressFieldTooltip",e)})),(0,a.default)("div",{class:"autocomplete-container "+(t?"tk-form-field__error":"")},(0,a.default)("input",{id:"dawa-address-input",placeholder:(0,s.default)("InputAddressFieldPlaceholder",e),type:"text",value:o.default.state.inputValue}),(0,a.default)("button",{onclick:function(){return o.default.mutations.updateDawaAddressResult("","")},class:"tk-energiberegner__svg-container tk-energiberegner__enter-info__reset-input"},(0,a.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.default)("g",{fill:"none","fill-rule":"evenodd",stroke:"#696057","stroke-linecap":"square"},(0,a.default)("path",{d:"M2.101 2.101L21.9 21.899M21.9 2.101L2.101 21.899"}))))),(0,a.default)(d.default,null)),(0,a.default)("div",{class:"tk-col--bottom-padding tk-bottom-button-group tk-energiberegner__enter-info__button-group"},(0,a.default)("button",{id:"dawa-address-submit-button",disabled:!o.default.state.dawaAddressResult,type:"submit",class:"mdc-button mdc-button--secondary mdc-button--raised",onclick:function(){void 0!==window.CookieInformation&&window.CookieInformation.getConsentGivenFor("cookie_cat_statistic")&&window.CookieInformation.getConsentGivenFor("cookie_cat_marketing")&&gaTK("TKtracker.send","event","beregnere","submit - energiberegner",window.location.hostname),(0,f.gaPixel)("beregnere","submit%20-%20energiberegner",window.location.hostname,"gaEnergySubmit"),o.default.actions.getAddressData(p,m,function(){document.querySelector(i(o.default.state.XHRerror)).scrollIntoView({behavior:"smooth",block:"start"})}),(0,h.googleAnalyticsResolutionMediaPixel)("beregnere","submit","energiberegner","gaResMediaSubmitPixelEnergy")}},(0,s.default)("CalculateButtonText",e)),(0,a.default)("a",{class:"tk-button tk-energiberegner__enter-info__link",onclick:function(){return o.default.actions.openModalPopup(n)}},(0,s.default)("TermsAndConditionsLinkText",e))))}var i=function(e){return e?".tk-energiberegner__scroll-to-js":".tk-energiberegner__scroll-to-house-js"};return{oncreate:function(e){var t=e.dom.querySelector("#dawa-address-input"),n=(r.dawaAutocomplete(t,{select:function(e){o.default.mutations.updateDawaAddressResult(e.tekst,e.tekst),o.default.mutations.updateDawaAddressID(e.data.id),o.default.mutations.updateDawaInfo(e.data)}}),e.dom.querySelector("#dawa-address-submit-button"));t.addEventListener("keypress",function(e){13==(e.which||e.keyCode||0)&&o.default.state.dawaAddressResult&&n.click()})},view:function(){var e=o.default.state.labels,t=o.default.state.XHRerror;return(0,a.default)("section",{class:"tk-energiberegner__enter-info tk-energiberegner__scroll-to-js tk-energiberegner__enter-info"+(o.default.state.resultIsVisible?"--h
1ouse-info-shown":"")},(0,a.default)("article",{class:"tk-energiberegner__progressbar"},(0,a.default)("ul",{class:"tk-energiberegner__progressbar__container"},(0,a.default)("li",{class:"tk-energiberegner__progressbar__item"},(0,a.default)("div",{class:"tk-energiberegner__progressbar__item-spacer"},(0,a.default)("p",{class:"tk-energiberegner__progressbar__item__text tk-energiberegner__progressbar__item__text--first tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,a.default)("p",{class:"tk-energiberegner__progressbar__circle"},"1"),(0,s.default)("ProgressbarTextOne",e)))),(0,a.default)("li",{class:"tk-energiberegner__progressbar__item"},(0,a.default)("p",{class:"tk-energiberegner__progressbar__item__text tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,a.default)("p",{class:"tk-energiberegner__progressbar__circle"},"2")," ",(0,s.default)("ProgressbarTextTwo",e))),(0,a.default)("li",{class:"tk-energiberegner__progressbar__item"},(0,a.default)("p",{class:"tk-energiberegner__progressbar__item__text tk-energiberegner__body-text tk-energiberegner__body-text--small"},(0,a.default)("p",{class:"tk-energiberegner__progressbar__circle"},"3"),(0,s.default)("ProgressbarTextThree",e))))),n(e,t),(t=e,(0,a.default)("section",{class:"tk-energiberegner__enter-info__image-container"},(0,a.default)("p",{class:"tk-energiberegner__body-text tk-energiberegner__body-text--input-section"},a.default.trust((0,s.default)("RightSideText",t))),(0,a.default)("div",{class:"tk-energiberegner__enter-info__image-container__distributor"},(0,a.default)("div",{class:"tk-energiberegner__enter-info__img"},""===t.RightSideLogoOnePath?null:(0,a.default)("img",{class:"tk-energiberegner__image",src:(0,c.default)("RightSideLogoOnePath",t),alt:"Energistyrelsen logo"})),(0,a.default)("div",{class:"tk-energiberegner__enter-info__img"},""===t.RightSideLogoTwoPath?null:(0,a.default)("img",{class:"tk-energiberegner__image",src:(0,c.default)("RightSideLogoTwoPath",t),alt:"Norconsult logo"}))))),(0,a.default)(u.default,{data:o.default.state.modalPopupData}))}}};var a=i(e("mithril")),r=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(e("dawa-autocomplete2")),o=i(e("../../store/EnergyCalculatorStore")),s=i(e("../../methods/LabelController")),l=i(e("../../../components/tooltip/ts-tooltip")),u=i(e("../modal/energiberegner-modal")),c=i(e("../../methods/imagePathController")),n=i(e("../../environmentVariables")),d=i(e("../CalculatorError/CalculatorError.mithril")),f=e("../../../components/util/googleAnalyticsTracking"),h=e("../../../components/util/tracking");function i(e){return e&&e.__esModule?e:{default:e}}var p=n.default.url,m=n.default.endpoint},{"../../../components/tooltip/ts-tooltip":11,"../../../components/util/googleAnalyticsTracking":14,"../../../components/util/tracking":19,"../../environmentVariables":47,"../../methods/LabelController":49,"../../methods/imagePathController":54,"../../store/EnergyCalculatorStore":58,"../CalculatorError/CalculatorError.mithril":40,"../modal/energiberegner-modal":45,"dawa-autocomplete2":405,mithril:410}],405:[function(e,t,n){"use strict";var i,a,Tn=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function En(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i=void 0,a=function($){var H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(e,t){return e(t={exports:{}},t.exports),t.exports}function l(e){try{return!!e()}catch(e){return!0}}function F(e){return oe?re.createElement(e):{}}function s(e,t){return ce.call(e,t)}function h(e,t,n){var i,a,r,o=e&h.F,s=e&h.G,l=e&h.P,u=e&h.B,c=s?p:e&h.S?p[t]||(p[t]={}):(p[t]||{})[ve],d=s?m:m[t]||(m[t]={}),f=d[ve]||(d[ve]={});for(i in n=s?t:n)a=((r=!o&&c&&void 0!==c[i])?c:n)[i],r=u&&r?_(a,p):l&&"function"==typeof a?_(Function.call,a):a,c&&ge(c,i,a,e&h.U),d[i]!=a&&v(d,i,r),l&&f[i]!=a&&(f[i]=a)}function N(e){return ye(be(e))}function w(e){return 0<e?xe(Se(e),9007199254740991):0}function j(e){return Object(be(e))}function V(e,t){return void 0===(e=S(e).constructor)||null==(e=S(e)[Re])?t:r(e)}function B(e,t,n){return t+(n?$e(e,t).length:1)}function U(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=Ne(e=Object(e),He))?t:Fe?y(e):"Object"==(t=y(e))&&"function"==typeof e.callee?"Arguments":t}function W(e,t){var n=e.exec;if("function"==typeof n){n=n.call(e,t);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==U(e))throw new TypeError("RegExp#exec called on incompatible receiver");return je.call(e,t)}function Y(n,e,t){var r,i,a=c(n),o=!l(function(){var e={};return e[a]=function(){return 7},7!=""[n](e)}),s=o?!l(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},"split"===n&&(t.constructor={},t.constructor[Ge]=function(){return t}),t[a](""),!e}):void 0;o&&s&&("replace"!==n||qe)&&("split"!==n||Xe)||(r=/./[a],t=(s=t(be,a,""[n],function(e,t,n,i,a){return t.exec===ze?o&&!a?{done:!0,value:r.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}
1))[0],i=s[1],ge(String.prototype,n,t),v(RegExp.prototype,a,2==e?function(e,t){return i.call(e,this,t)}:function(e){return i.call(e,this)}))}function z(r,o,s){if(0<r.suggestions.length&&r.focused){dt("ul","",["class","dawa-autocomplete-suggestions","role","listbox","unselectable","on"]);for(var e=0;e<r.suggestions.length;++e)!function(t){var e=r.suggestions[t],n="dawa-autocomplete-suggestion";r.selected===t&&(n+=" dawa-selected"),dt("li","",["role","option"],"class",n,"onmousedown",function(e){o(t),e.preventDefault()});var i=(i=e.forslagstekst.split("\n")).map(function(e){return e.replace(/ /g," ")});if(s){ht(i[0]);for(var a=1;a<i.length;++a)ft("br"),ht(i[a])}else ht(i.join(", "));ct("li")}(e);ct("ul")}}function G(t,n){function i(e){var t=e.value,e=e.selectionStart;v.caretpos=e,v.inputText=t,g(t,e)}function a(e){e=v.suggestions[e],v.inputText=e.tekst,v.caretpos=e.caretpos,v.suggestions=[],u(e),b(!0)}function e(e){var t=window.event?e.keyCode:e.which;if(0<v.suggestions.length&&v.focused){if(40===t)v.selected=(v.selected+1)%v.suggestions.length,b();else if(38===t)v.selected=(v.selected-1+v.suggestions.length)%v.suggestions.length,b();else{if(13!==t&&9!==t)return!0;a(v.selected)}return e.preventDefault(),!1}}function r(){v.focused=!0,b()}function o(){return v.focused=!1,b(),!1}function s(e){i(e.target)}function l(e){return i(e.target)}var u=n.onSelect,c=n.onTextChange,d=n.render||pt,f=!1,h="",p=0,m=document.createElement("div"),g=(t.parentNode.insertBefore(m,t.nextSibling),function(e,t){h===e&&p===t||(c(e,t),h=e,p=t)}),v={caretpos:2,inputText:"",selected:0,focused:document.activeElement===t,suggestions:[]},_=!1,y=!1,b=function(e){e&&(y=!0),_||(_=!0,requestAnimationFrame(function(){f||(_=!1,y&&(t.value=v.inputText,t.setSelectionRange(v.caretpos,v.caretpos)),y=!1,d(m,v,a,n.multiline))}))};return b(),t.addEventListener("keydown",e),t.addEventListener("blur",o),t.addEventListener("focus",r),t.addEventListener("input",s),t.addEventListener("mouseup",l),t.setAttribute("aria-autocomplete","list"),t.setAttribute("autocomplete","off"),{destroy:function(){f=!0,t.removeEventListener("keydown",e),t.removeEventListener("blur",o),t.removeEventListener("focus",r),t.removeEventListener("input",s),t.removeEventListener("mouseup",l),ut(m,function(){}),m.remove()},setSuggestions:function(e){v.suggestions=e,v.selected=0,b()},selectAndClose:function(e){v.inputText=e,v.caretpos=e.length,v.suggestions=[],v.selected=0,b(!0)}}}var u,q,X,d,K,Z,J,Q,ee,te,ne,ie,ae,p=e(function(e){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),m=e(function(e){e=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)}),f=(m.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),S=function(e){if(f(e))return e;throw TypeError(e+" is not an object!")},g=!l(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),re=p.document,oe=f(re)&&f(re.createElement),se=!g&&!l(function(){return 7!=Object.defineProperty(F("div"),"a",{get:function(){return 7}}).a}),le=Object.defineProperty,ue={f:g?Object.defineProperty:function(e,t,n){if(S(e),t=function(e,t){if(!f(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!f(i=n.call(e))||"function"==typeof(n=e.valueOf)&&!f(i=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!f(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}(t,!0),S(n),se)try{return le(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},v=g?function(e,t,n){return ue.f(e,t,{enumerable:!((e=1)&e),configurable:!(2&e),writable:!(4&e),value:n})}:function(e,t,n){return e[t]=n,e},ce={}.hasOwnProperty,de=0,fe=Math.random(),he=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++de+fe).toString(36))},pe=e(function(e){var t="__core-js_shared__",n=p[t]||(p[t]={});(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:m.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),me=pe("native-function-to-string",Function.toString),ge=e(function(e){var r=he("src"),o=(""+me).split("toString");m.inspectSource=function(e){return me.call(e)},(e.exports=function(e,t,n,i){var a="function"==typeof n;a&&!s(n,"name")&&v(n,"name",t),e[t]!==n&&(a&&!s(n,r)&&v(n,r,e[t]?""+e[t]:o.join(String(t))),e===p?e[t]=n:i?e[t]?e[t]=n:v(e,t,n):(delete e[t],v(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[r]||me.call(this)})}),r=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},_=function(i,a,e){if(r(i),void 0===a)return i;switch(e){case 1:return function(e){return i.call(a,e)};case 2:return function(e,t){return i.call(a,e,t)};case 3:return function(e,t,n){return i.call(a,e,t,n)}}return function(){return i.apply(a,arguments)}}
1,ve="prototype",t=(p.core=m,h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,h),_e={}.toString,y=function(e){return _e.call(e).slice(8,-1)},ye=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==y(e)?e.split(""):Object(e)},be=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},ke=Math.ceil,we=Math.floor,Se=function(e){return isNaN(e=+e)?0:(0<e?we:ke)(e)},xe=Math.min,Ce=Math.max,Te=Math.min,n=pe("keys"),Ee=(u=!1,function(e,t,n){var i,a=N(e),r=w(a.length),o=(e=r,(n=Se(n=n))<0?Ce(n+e,0):Te(n,e));if(u&&t!=t){for(;o<r;)if((i=a[o++])!=i)return!0}else for(;o<r;o++)if((u||o in a)&&a[o]===t)return u||o||0;return!u&&-1}),Ae=n[i="IE_PROTO"]||(n[i]=he(i)),Oe="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Me=Object.keys||function(e){var t,n=Oe,i=N(e),a=0,r=[];for(t in i)t!=Ae&&s(i,t)&&r.push(t);for(;n.length>a;)!s(i,t=n[a++])||~Ee(r,t)||r.push(t);return r},Le={f:Object.getOwnPropertySymbols},Ie={f:{}.propertyIsEnumerable},De=Object.assign,n=!De||l(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=De({},e)[n]||Object.keys(De({},t)).join("")!=i})?function(e,t){for(var n=j(e),i=arguments.length,a=1,r=Le.f,o=Ie.f;a<i;)for(var s,l=ye(arguments[a++]),u=r?Me(l).concat(r(l)):Me(l),c=u.length,d=0;d<c;)s=u[d++],g&&!o.call(l,s)||(n[s]=l[s]);return n}:De,c=(t(t.S+t.F,"Object",{assign:n}),e(function(e){var t=pe("wks"),n=p.Symbol,i="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=i&&n[e]||(i?n:he)("Symbol."+e))}).store=t})),Pe=c("match"),Re=c("species"),$e=(q=!0,function(e,t){var n,e=String(be(e)),t=Se(t),i=e.length;return t<0||i<=t?q?"":void 0:(n=e.charCodeAt(t))<55296||56319<n||t+1===i||(i=e.charCodeAt(t+1))<56320||57343<i?q?e.charAt(t):n:q?e.slice(t,t+2):i-56320+(n-55296<<10)+65536}),He=c("toStringTag"),Fe="Arguments"==y(function(){return arguments}()),Ne=function(e,t){try{return e[t]}catch(e){}},je=RegExp.prototype.exec,Ve=RegExp.prototype.exec,Be=String.prototype.replace,i=Ve,Ue="lastIndex",We=(n=/a/,a=/b*/g,Ve.call(n,"a"),Ve.call(a,"a"),0!==n[Ue]||0!==a[Ue]),Ye=void 0!==/()??/.exec("")[1],ze=i=We||Ye?function(e){var t,n,i,a;return Ye&&(n=new RegExp("^"+this.source+"$(?!\\s)",function(){var e=S(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}.call(this))),We&&(t=this[Ue]),i=Ve.call(this,e),We&&i&&(this[Ue]=this.global?i.index+i[0].length:t),Ye&&i&&1<i.length&&Be.call(i[0],n,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)}),i}:i,Ge=(t({target:"RegExp",proto:!0,forced:ze!==/./.exec},{exec:ze}),c("species")),qe=!l(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),Xe=(X=(n=/(?:)/).exec,n.exec=function(){return X.apply(this,arguments)},2===(n="ab".split(n)).length&&"a"===n[0]&&"b"===n[1]),Ke=Math.min,Ze=[].push,o="split",b="length",Je="lastIndex",Qe=4294967295,k=!l(function(){RegExp(Qe,"y")}),et=(Y("split",2,function(a,r,p,m){var g="c"=="abbc"[o](/(b)*/)[1]||4!="test"[o](/(?:)/,-1)[b]||2!="ab"[o](/(?:ab)*/)[b]||4!="."[o](/(.?)(.?)/)[b]||1<"."[o](/()()/)[b]||""[o](/.?/)[b]?function(e,t){var n,i=String(this);if(void 0===e&&0===t)return[];if(!f(n=e)||(void 0!==(l=n[Pe])?!l:"RegExp"!=y(n)))return p.call(i,e,t);for(var a,r,o,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,c=void 0===t?Qe:t>>>0,d=new RegExp(e.source,l+"g");(a=ze.call(d,i))&&!(u<(r=d[Je])&&(s.push(i.slice(u,a.index)),1<a[b]&&a.index<i[b]&&Ze.apply(s,a.slice(1)),o=a[0][b],u=r,c<=s[b]));)d[Je]===a.index&&d[Je]++;return u===i[b]?!o&&d.test("")||s.push(""):s.push(i.slice(u)),c<s[b]?s.slice(0,c):s}:"0"[o](void 0,0)[b]?function(e,t){return void 0===e&&0===t?[]:p.call(this,e,t)}:p;return[function(e,t){var n=a(this),i=null==e?void 0:e[r];return void 0!==i?i.call(e,n,t):g.call(String(n),e,t)},function(e,t){var n=m(g,e,this,t,g!==p);if(n.done)return n.value;var n=S(e),i=String(this),e=V(n,RegExp),a=n.unicode,r=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(k?"y":"g"),o=new e(k?n:"^(?:"+n.source+")",r),s=void 0===t?Qe:t>>>0;if(0==s)return[];if(0===i.length)return null===W(o,i)?[i]:[];for(var l=0,u=0,c=[];u<i.length;){o.lastIndex=k?u:0;var d,f=W(o,k?i:i.slice(u));if(null===f||(d=Ke(w(o.lastIndex+(k?0:u)),i.length))===l)u=B(i,u,a);else{if(c.push(i.slice(l,u)),c.length===s)return c;for(var h=1;h<=f.length-1;h++)if(c.push(f[h]),c.length===s)return c;u=l=d}}return c.push(i.slice(l)),c}]}),Array.isArray||function(e){return"Array"==y(e)}),tt=c("species"),nt=function(e){var t;return void 0===(t=et(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!et(t.prototype)||(t=void 0),f(t))&&null===(t=t[tt])?void 0:t)?Array:t},it=(K=(d=1)==d,Z=2==d,J=3==d,Q=4==d,ee=6==d,te=5==d||ee,ne=x||function(e,t){return new(nt(e))(t)},function(e,t,n){for(var i,a,r=j(e),o=ye(r),s=_(t,n,3),l=w(o.length),u=0,c=K?ne(e,l):Z?ne(e,0):void 0;u<l;u++)if((te||u in o)&&(a=s(i=o[u],u,r),d))if(K)c[u]=a;else if(a)switch(d){case 3:return!0;case 5:return i;case 6:return u;case 2:c.push(i)}else if(Q)return!1;return ee?-1:J||Q?Q:c}),at=(t(t.P+t.F*(ae=!0,!(!!(ie=[].map)&&l(function(){ae?ie.call(null,function(){},1):ie.call(null)}))),"Array",{map:function(e){return it(this,e,arguments[1])}}),Math.max),rt=Math.min,ot=Math.floor,st=/\$([$&`']|\d\d?|<[^>]*>)/g,lt=/\$([$&`']|\d\d?)/g,a=(Y("replace",2,function(a,r,b,k){return[function(e,t){var n=a(this),i=null==e?void 0:e[r];return void 0!==i?i.call(e,n,t):b.call(String(n),e,t)},function(e,t){var n=k(b,e,this,t);if(n.done)return n.value;for(var i,a=S(e),r=String(this),o="function"==typeof t,s=(o||(t=String(t)),a.global),l=(s&&(i=a.unicode,a.lastIndex=0),[]);null!==(h=W(a,r))&&(l.push(h),s);)""===String(h[0])&&(a.lastIndex=B(r,w(a.lastIndex),i));for(var u,c="",d=0,f=0;f<l.length;f++){for(var h=l[f],p=String(h[0]),m=at(rt(Se(h.index),r.length),0),g=[],v=1;v<h.length;v++)g.push(void 0===(u=h[v])?u:String(u));var _=h.groups,y=o?(y=[p].concat(g,m,r),void 0!==_&&y.push(_),String(t.apply(void 0,y))):function(r,o,s,l,u,e){var c=s+r.length,d=l.length,t=lt;void 0!==u&&(u=j(u),t=st);return b.call(e,t,function(e,t){var n;switch(t.charAt(0)){case"$":return"$";case"&":return r;case"`":return o.slice(0,s);case"'":return o.slice(c);case"<":n=u[t.slice(1,-1)];break;default:var i,a=+t;if(0==a)return e;if(d<a)return 0!==(i=ot(a/10))&&i<=d?void 0===l[i-1]?t.charAt(1):l[i-1]+t.charAt(1):e;n=l[a-1]}return void 0===n?"":n})}(p,r,m,g,_,t);d<=m&&(c+=r.slice(d,m)+y,d=m+p.length)}return c+r.slice(d)}]}
1),e(function($,e){Object.defineProperty(e,"__esModule",{value:!0});var d="key";var g=!1,n=!1,H=!1;function l(e){if(e)return e;throw new Error("Expected value to be defined")}function i(e){if(!H)throw new Error("Cannot call "+e+"() unless in patch.")}function u(e){if(g)throw new Error(e+"() can not be called between elementOpenStart() and elementOpenEnd().")}function F(e){if(n)throw new Error(e+"() may not be called inside an element that has called skip().")}function N(e){if(!g)throw new Error(e+"() can only be called after calling elementOpenStart().")}function j(e){H=null!=e}function v(e){var t=g;return g=e,t}function _(e){var t=n;return n=e,t}var V=Object.prototype.hasOwnProperty;function B(){}function t(){return new B}function p(e,t){for(;e.length>t;)e.pop()}B.prototype=Object.create(null);var a={default:"__default"};function U(e,t,n){var i;null==n?e.removeAttribute(t):(i=0===(i=t).lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===i.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":null)?e.setAttributeNS(i,t,String(n)):e.setAttribute(t,String(n))}function W(e,t,n){e[t]=n}var r=t();function f(e,t,n){(r[t]||r[a.default])(e,t,n)}r[a.default]=function(e,t,n){var i=typeof n;
1("object"==i||"function"==i?W:U)(e,t,n)},r.style=function(e,t,n){l("style"in e);var i,a,r=e.style;if("string"==typeof n)r.cssText=n;else for(var o in r.cssText="",n)a=o,V.call(n,a)&&(a=r,i=n[o=o],0<=o.indexOf("-")?a.setProperty(o,i):a[o]=i)};var o={nodesCreated:null,nodesDeleted:null},Y=(Tn(s,[{key:"markCreated",value:function(e){this.created.push(e)}},{key:"markDeleted",value:function(e){this.deleted.push(e)}},{key:"notifyChanges",value:function(){o.nodesCreated&&0<this.created.length&&o.nodesCreated(this.created),o.nodesDeleted&&0<this.deleted.length&&o.nodesDeleted(this.deleted)}}]),s);function s(){En(this,s),this.created=[],this.deleted=[]}function h(e){return 1===e.nodeType}var z="undefined"!=typeof Node&&Node.prototype.getRootNode||function(){for(var e=this,t=e;e;)e=(t=e).parentNode;return t};function G(e,t){n=e,n=z.call(n);var n,i=11===(i=n).nodeType||9===i.nodeType?n.activeElement:null;if(i&&e.contains(i)){for(var a=t,r=[],o=i;o!==a;){var s=l(o);r.push(s),o=s.parentNode}return r}return[]}Tn(c,[{key:"hasEmptyAttrsArr",value:function(){var e=this._attrsArr;return!e||!e.length}},{key:"getAttrsArr",value:function(e){return this._attrsArr||(this._attrsArr=(e=e,p(e=new Array(e),0),e))}}]);var q=c;function c(e,t,n){En(this,c),this._attrsArr=null,this.staticsApplied=!1,this.nameOrCtor=e,this.key=t,this.text=n}function m(e,t,n,i){t=new q(t,n,i);return e.__incrementalDOMData=t}function X(e,t){if(e.__incrementalDOMData)return e.__incrementalDOMData;var n=h(e)?e.localName:e.nodeName,i=d,i=h(e)&&null!=i?e.getAttribute(i):null,i=h(e)?i||t:null,t=m(e,n,i);if(h(e)){var n=t,a=e.attributes,r=a.length;if(r)for(var o=n.getAttrsArr(r),s=0,l=0;s<r;s+=1,l+=2){var u=a[s],c=u.name,u=u.value;o[l]=c,o[l+1]=u}}return t}function y(e,t){return X(e,t)}function K(e,t,n,i){var a,r=void 0;return m(r="function"==typeof n?new n:(t=t,(a="svg"===(a=n)?"http://www.w3.org/2000/svg":"math"===a?"http://www.w3.org/1998/Math/MathML":null==t||"foreignObject"===y(t).nameOrCtor?null:t.namespaceURI)?e.createElementNS(a,n):e.createElement(n)),n,i),r}function Z(e,t,n,i,a){return t==n&&i==a}var b=null,k=null,w=null,S=null,x=[],C=Z,T=[],E=[];function J(e,t,n){if(e){var i,a,r,o,s=e;do{if(a=t,o=void 0,o=y(i=s,r=n),C(i,a,o.nameOrCtor,r,o.key))return s}while(n&&(s=s.nextSibling))}return null}function Q(e,t,n){for(var i=e,a=t;a!==n;){var r=a.nextSibling;i.removeChild(a),b.markDeleted(a),a=r}}function A(){return k?k.nextSibling:w.firstChild}function ee(){w=k,k=null}function te(){Q(w,A(),null),w=(k=w).parentNode}function ne(){k=A()}function ie(e,t){var n,i=void 0,i="#text"===e?(m(n=(n=S).createTextNode(""),"#text",null),n):K(S,w,e,t);return b.markCreated(i),i}function O(e,t){ne();e=J(k,e,t)||ie(e,t);if(e!==k){if(0<=x.indexOf(e))for(var n=w,i=e,t=k,a=i.nextSibling,r=t;null!==r&&r!==i;){var o=r.nextSibling;n.insertBefore(r,a),r=o}else w.insertBefore(e,k);k=e}}function ae(e,t){return O(e,t),ee(),w}function re(){return _(!1),te(),k}function M(){return i("currentElement"),u("currentElement"),w}function oe(p,e){var e=(1<arguments.length&&void 0!==e?e:{}).matches,m=void 0===e?Z:e;return function(e,t,n){var i,a,r=b,o=S,s=x,l=T,u=E,c=k,d=w,f=C;S=e.ownerDocument,b=new Y,C=m,T=[],E=[],k=null,w=e.parentNode,x=G(e,w),i=v(!1),a=_(!1),j(b);try{var h=p(e,t,n);if(g)throw new Error("elementOpenEnd() must be called after calling elementOpenStart().");return h}finally{b.notifyChanges(),S=o,C=f,T=l,E=u,k=c,w=d,x=s,v(i),_(a),j(b=r)}}}function se(e){return oe(function(e,t,n){k=e,ee(),t(n),te();var t=k,i=e;if(t===i)return e;for(var a=t,r=[];a&&a!==i;)r.push(a.nodeName.toLowerCase()),a=a.parentNode;throw new Error("One or more tags were not closed:\n"+r.join("\n"))},e)}function le(e){return oe(function(e,t,n){var i={nextSibling:e},a=e.nextSibling,r=e.previousSibling,t=(k=i,t(n),w||console.warn("patchOuter requires the node have a parent if there is a key."),i),n=k;if(t=l(t),n=l(n),a=n.nextSibling===a&&n.previousSibling===r,r=n.nextSibling===t.nextSibling&&n.previousSibling===r,a||r||n===t)return w&&Q(w,A(),e.nextSibling),i===k?null:k;throw new Error("There must be exactly one top level call corresponding to the patched element.")},e)}var ue=se(),ce=le(),L=[],I=0;function D(e,t,n,i){L.push(e),L.push(t),L.push(n),L.push(i)}var P=t();function de(e,t,n,i){for(var a=!e.length,r=0;r<t.length;r+=2){var o=t[r];if(a)e[r]=o;else if(e[r]!==o)break;var s=t[r+1];!a&&e[r+1]===s||D(i,n,o,e[r+1]=s)}if(r<t.length||r<e.length){for(var l,u=r,r=u;r<e.length;r+=2)P[e[r]]=e[r+1];for(r=u;r<t.length;r+=2){var c=t[r],d=t[r+1];P[c]!==d&&D(i,n,c,d),e[r]=c,e[r+1]=d,delete P[c]}for(l in p(e,t.length),P)D(i,n,l,void 0),delete P[l]}var u=I,f=L.length;I=f;for(var h=u;h<f;h+=4)(0,L[h])(L[h+1],L[h+2],L[h+3]);p(L,I=u)}var R=t();function fe(e,t){var n=E;de(t.getAttrsArr(n.length),n,e,f),p(n,0)}function he(e,t,n){if(!t.staticsApplied&&(t.staticsApplied=!0,n)&&n.length)if(t.hasEmptyAttrsArr())for(var i=0;i<n.length;i+=2)f(e,n[i],n[i+1]);else{for(var a=0;a<n.length;a+=2)R[n[a]]=a+1;for(var r,o=t.getAttrsArr(0),s=0,l=0;l<o.length;l+=2){var u=o[l],c=o[l+1],d=R[u];d?n[d]===c&&delete R[u]:(o[s]=u,o[s+1]=c,s+=2)}for(r in p(o,s),R)f(e,r,n[R[r]]),delete R[r]}}function pe(e,t,n){var i=T;u("elementOpenStart"),v(!0),i[0]=e,i[1]=t,i[2]=n}function me(e,t){var n=E;i("attr"),n.push(e),n.push(t)}function ge(){var e=T,t=(N("elementOpenEnd"),v(!1),ae(e[0],e[1])),n=y(t);return he(t,n,e[2]),fe(t,n),p(e,0),t}function ve(e,t,n){for(var i=arguments.length,a=Array(3<i?i-3:0),r=3;r<i;r++)a[r-3]=arguments[r];u("elementOpen"),F("elementOpen"),pe(e,t,n);for(var o=3;o<arguments.length;o+=2)me(arguments[o],arguments[o+1]);return ge()}function _e(e){u("elementClose");var t=re(),n=y(t).nameOrCtor;if(n!==e)throw new Error('Received a call to close "'+e+'" but "'+n+'" was open.');return t}e.applyAttr=U,e.applyProp=W,e.attributes=r,e.alignWithDOM=O,e.close=re,e.createPatchInner=se,e.createPatchOuter=le,e.currentElement=M,e.currentPointer=function(){return i("currentPointer"),u("currentPointer"),A()},e.open=ae,e.patch=ue,e.patchInner=ue,e.patchOuter=ce,e.skip=function(){var e="skip";if(null!==k)throw new Error(e+"() must come before any child declarations inside the current element.");_(!0),k=w.lastChild},e.skipNode=ne,e.setKeyAttributeName=function(e){d=e},e.clearCache=function e(t){t.__incrementalDOMData=null;for(var n=t.firstChild;n;n=n.nextSibling)e(n)},e.getKey=function(e){return l(e.__incrementalDOMData),y(e).key},e.importNode=function e(t){X(t);for(var n=t.firstChild;n;n=n.nextSibling)e(n)},e.isDataInitialized=function(e){return Boolean(e.__incrementalDOMData)},e.notifications=o,e.symbols=a,e.applyAttrs=function(){var e=M();fe(e,y(e))},e.applyStatics=function(e){var t=M();he(t,y(t),e)},e.attr=me,e.elementClose=_e,e.elementOpen=ve,e.elementOpenEnd=ge,e.elementOpenStart=pe,e.elementVoid=function(e,t,n){for(var i=arguments.length,a=Array(3<i?i-3:0),r=3;r<i;r++)a[r-3]=arguments[r];return ve.apply(null,arguments),_e(e)},e.key=function(e){var t=T;N("key"),l(t),t[1]=e},e.text=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];u("text"),F("text"),O("#text",null);var a=k,r=y(a);if(r.text!==e){for(var o=r.text=e,s=1;s<arguments.length;s+=1)o=(0,arguments[s])(o);a.data!==o&&(a.data=o)}return a}})),n=((i=a)&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")&&i.default,a.applyAttr,a.applyProp),x=a.attributes,ut=(a.alignWithDOM,a.close,a.createPatchInner,a.createPatchOuter,a.currentElement,a.currentPointer,a.open,a.patch),ct=(a.patchInner,a.patchOuter,a.skip,a.skipNode,a.setKeyAttributeName,a.clearCache,a.getKey,a.importNode,a.isDataInitialized,a.notifications,a.symbols,a.applyAttrs,a.applyStatics,a.attr,a.elementClose),dt=a.elementOpen,ft=(a.elementOpenEnd,a.elementOpenStart,a.elementVoid),ht=(a.key,a.text),pt=(x.caretpos=function(e,t,n){e.setSelectionRange(n,n)},x.value=n,function(e,t,n,i){ut(e,function(){z(t,n,i)})});function mt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==typeof e?e:String(e)}(i.key),i)}}function C(){var e,t=+this;E.hasOwnProperty(t)&&(e=E[t],delete E[t],e())}function gt(e){C.call(e.data)}i="keys",a=function(){return function(e){return Me(j(e))}},vt=(m.Object||{})[i]||Object[i],(x={})[i]=a(vt),t(t.S+t.F*l(function(){vt(1)}),"Object",x);var vt,T,n={},_t=(n[c("toStringTag")]="z",n+""!="[object z]"&&ge(Object.prototype,"toString",function(){return"[object "+U(this)+"]"},!0),{}),yt=c("iterator"),bt=Array.prototype,kt=c("iterator"),wt=m.getIteratorMethod=function(e){if(null!=e)return e[kt]||e["@@iterator"]||_t[U(e)]},St=e(function(e){var d={},f={}
1,e=e.exports=function(e,t,n,i,a){var r,o,s,l,a=a?function(){return e}:wt(e),u=_(n,i,t?2:1),c=0;if("function"!=typeof a)throw TypeError(e+" is not iterable!");if(void 0===(n=a)||_t.Array!==n&&bt[yt]!==n){for(s=a.call(e);!(o=s.next()).done;)if((l=function(t,e,n,i){try{return i?e(S(n)[0],n[1]):e(n)}catch(e){i=t.return;throw void 0!==i&&S(i.call(t)),e}}(s,u,o.value,t))===d||l===f)return l}else for(r=w(e.length);c<r;c++)if((l=t?u(S(o=e[c])[0],o[1]):u(e[c]))===d||l===f)return l};e.BREAK=d,e.RETURN=f}),i=p.document,xt=i&&i.documentElement,Ct=p.process,a=p.setImmediate,x=p.clearImmediate,n=p.MessageChannel,Tt=p.Dispatch,Et=0,E={},At="onreadystatechange",i=(a&&x||(a=function(a){for(var r=[],e=1;e<arguments.length;)r.push(arguments[e++]);return E[++Et]=function(){var e="function"==typeof a?a:Function(a),t=r,n=void 0,i=void 0===n;switch(t.length){case 0:return void(i?e():e.call(n));case 1:return void(i?e(t[0]):e.call(n,t[0]));case 2:return void(i?e(t[0],t[1]):e.call(n,t[0],t[1]));case 3:return void(i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]));case 4:return void(i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3]))}e.apply(n,t)},T(Et),Et},x=function(e){delete E[e]},"process"==y(Ct)?T=function(e){Ct.nextTick(_(C,e,1))}:Tt&&Tt.now?T=function(e){Tt.now(_(C,e,1))}:n?(n=(i=new n).port2,i.port1.onmessage=gt,T=_(n.postMessage,n,1)):p.addEventListener&&"function"==typeof postMessage&&!p.importScripts?(T=function(e){p.postMessage(e+"","*")},p.addEventListener("message",gt,!1)):T=At in F("script")?function(e){xt.appendChild(F("script"))[At]=function(){xt.removeChild(this),C.call(e)}}:function(e){setTimeout(_(C,e,1),0)}),{set:a,clear:x}),Ot=i.set,n=p.MutationObserver||p.WebKitMutationObserver,Mt=p.process,a=p.Promise,Lt="process"==y(Mt);function It(e){var n,i;this.promise=new e(function(e,t){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=e,i=t}),this.resolve=r(n),this.reject=r(i)}var Dt={f:function(e){return new It(e)}},Pt=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},x=p.navigator,Rt=x&&x.userAgent||"",x=ue.f,$t=c("toStringTag"),Ht=c("species"),Ft=c("iterator"),Nt=!1;try{var A=[7][Ft]();A.return=function(){Nt=!0},Array.from(A,function(){throw 2})}catch(e){}var O,M,jt,Vt,Bt,Ut,Wt=i.set,Yt=(Vt=Lt?function(){Mt.nextTick(zt)}:!n||p.navigator&&p.navigator.standalone?a&&a.resolve?(jt=a.resolve(void 0),function(){jt.then(zt)}):function(){Ot.call(p,zt)}:(Bt=!0,Ut=document.createTextNode(""),new n(zt).observe(Ut,{characterData:!0}),function(){Ut.data=Bt=!Bt}),function(e){e={fn:e,next:void 0};M&&(M.next=e),O||(O=e,Vt()),M=e});function zt(){var e,t;for(Lt&&(e=Mt.domain)&&e.exit();O;){t=O.fn,O=O.next;try{t()}catch(e){throw O?Vt():M=void 0,e}}M=void 0,e&&e.enter()}function Gt(){}function qt(a){Wt.call(p,function(){var e,t,n=a._v,i=sn(a);if(i&&(e=Pt(function(){P?I.emit("unhandledRejection",n,a):(t=p.onunhandledrejection)?t({promise:a,reason:n}):(t=p.console)&&t.error&&t.error("Unhandled promise rejection",n)}),a._h=P||sn(a)?2:1),a._a=void 0,i&&e.e)throw e.v})}function Xt(t){Wt.call(p,function(){var e;P?I.emit("rejectionHandled",t):(e=p.onrejectionhandled)&&e({promise:t,reason:t._v})})}function Kt(e){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw tn("Promise can't be resolved itself");(n=rn(e))?Yt(function(){var t={_w:i,_d:!1};try{n.call(e,_(Kt,t,1),_(R,t,1))}catch(e){R.call(t,e)}}):(i._v=e,i._s=1,on(i,!1))}catch(e){R.call({_w:i,_d:!1},e)}}}var Zt,Jt,Qt,en,L="Promise",tn=p.TypeError,I=p.process,A=I&&I.versions,nn=A&&A.v8||"",D=p[L],P="process"==U(I),an=Jt=Dt.f,i=!!function(){try{var e=D.resolve(1),t=(e.constructor={})[c("species")]=function(e){e(Gt,Gt)};return(P||"function"==typeof PromiseRejectionEvent)&&e.then(Gt)instanceof t&&0!==nn.indexOf("6.6")&&-1===Rt.indexOf("Chrome/66")}catch(e){}}(),rn=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},on=function(d,f){var h;d._n||(d._n=!0,h=d._c,Yt(function(){for(var e=d._v,t=1==d._s,n=0;h.length>n;){r=a=i=c=u=l=s=void 0;var i,a,r,o=h[n++],s=t?o.ok:o.fail,l=o.resolve,u=o.reject,c=o.domain;try{s?(t||(2==d._h&&Xt(d),d._h=1),!0===s?i=e:(c&&c.enter(),i=s(e),c&&(c.exit(),r=!0)),i===o.promise?u(tn("Promise-chain cycle")):(a=rn(i))?a.call(i,l,u):l(i)):u(e)}
1catch(e){c&&!r&&c.exit(),u(e)}}d._c=[],d._n=!1,f&&!d._h&&qt(d)}))},sn=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),on(t,!0))},A=(i||(D=function(e){var t=this,n=L,i="_h";if(!(t instanceof D)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");r(e),Zt.call(this);try{e(_(Kt,this,1),_(R,this,1))}catch(e){R.call(this,e)}},(Zt=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(e,t,n){for(var i in t)ge(e,i,t[i],n);return e}(D.prototype,{then:function(e,t){var n=an(V(this,D));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=P?I.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&on(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),Qt=function(){var e=new Zt;this.promise=e,this.resolve=_(Kt,e,1),this.reject=_(R,e,1)},Dt.f=an=function(e){return e===D||e===en?new Qt:Jt(e)}),t(t.G+t.W+t.F*!i,{Promise:D}),a=L,(n=D)&&!s(n=_n?n:n.prototype,$t)&&x(n,$t,{configurable:!0,value:a}),L);A=p[A],g&&A&&!A[Ht]&&ue.f(A,Ht,{configurable:!0,get:function(){return this}}),en=m[L],t(t.S+t.F*!i,L,{reject:function(e){var t=an(this);return(0,t.reject)(e),t.promise}}),t(t.S+t.F*!i,L,{resolve:function(e){return e=e,S(t=this),f(e)&&e.constructor===t?e:((0,(t=Dt.f(t)).resolve)(e),t.promise);var t}}),t(t.S+t.F*!(i&&function(e,t){if(!t&&!Nt)return!1;var n=!1;try{var i=[7],a=i[Ft]();a.next=function(){return{done:n=!0}},i[Ft]=function(){return a},e(i)}catch(e){}return n}(function(e){D.all(e).catch(Gt)})),L,{all:function(e){var o=this,t=an(o),s=t.resolve,l=t.reject,n=Pt(function(){var i=[],a=0,r=1;St(e,!1,function(e){var t=a++,n=!1;i.push(void 0),r++,o.resolve(e).then(function(e){n||(n=!0,i[t]=e,--r)||s(i)},l)}),--r||s(i)});return n.e&&l(n.v),t.promise},race:function(e){var t=this,n=an(t),i=n.reject,a=Pt(function(){St(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return a.e&&i(a.v),n.promise}});function ln(){return yn.Date.now()}var un={params:{},minLength:2,retryDelay:500,renderCallback:function(){console.error("No renderCallback supplied")},initialRenderCallback:function(){console.error("No initialRenderCallback supplied")},type:"adresse",baseUrl:"https://dawa.aws.dk",adgangsadresserOnly:!1,stormodtagerpostnumre:!0,supplerendebynavn:!0,fuzzy:!0,fetchImpl:function(e,t){return l="".concat(e,"?").concat((n=t,Object.keys(n).map(function(e){var t=n[e];return"".concat(e,"=").concat(encodeURIComponent(t))}).join("&"))),u=(u={mode:"cors"})||{},new Promise(function(e,t){function n(){return{ok:2==(a.status/100|0),statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){return Promise.resolve(a.responseText)},json:function(){return Promise.resolve(a.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([a.response]))},clone:n,headers:{keys:function(){return r},entries:function(){return o},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}}var i,a=new XMLHttpRequest,r=[],o=[],s={};for(i in a.open(u.method||"get",l,!0),a.onload=function(){a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){r.push(t=t.toLowerCase()),o.push([t,n]),s[t]=s[t]?s[t]+","+n:n}),e(n())},a.onerror=t,a.withCredentials="include"==u.credentials,u.headers)a.setRequestHeader(i,u.headers[i]);a.send(u.body||null)}).then(function(e){return e.json()});var l,u,n}},cn=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");e=Object.assign({},un,e||{}),this.options=e,this.state={currentRequest:null,pendingRequest:null},this.selected=null}var e,n,i;return e=t,(n=[{key:"_getAutocompleteResponse",value:function(e,t,n,i,a,r){e=Object.assign({},this.options.params,{q:e,type:this.options.type,caretpos:t,supplerendebynavn:a,stormodtagerpostnumre:r,multilinje:!0});return this.options.fuzzy&&(e.fuzzy=""),i&&(e.adgangsadresseid=i),n&&(e.startfra="adgangsadresse"),this.options.fetchImpl("".concat(this.options.baseUrl,"/autocomplete"),e)}},{key:"_scheduleRequest",value:function(e){null!==this.state.currentRequest?this.state.pendingRequest=e:(this.state.currentRequest=e,this._executeRequest())}},{key:"_executeRequest",value:function(){var e,t,n=this,i=this.state.currentRequest,a=null,r=!1;if(i.selected){var o=i.selected;if(o.type===this.options.type)return this.options.selectCallback(o),this.selected=o,void this._requestCompleted();a="adgangsadresse"===o.type?o.data.id:null,r="vejnavn"===o.type,e=o.tekst,o=o.caretpos}else e=i.text,o=i.caretpos;if(i.selectedId)return t={id:i.selectedId,type:this.options.type},this.options.fetchImpl("".concat(this.options.baseUrl,"/autocomplete"),t).then(function(e){return n._handleResponse(i,e)},function(e){return n._handleFailedRequest(i,e)});i.selected||i.text.length>=this.options.minLength?this._getAutocompleteResponse(e,o,r,a,this.options.supplerendebynavn,this.options.stormodtagerpostnumre).then(function(e){return n._handleResponse(i,e)},function(e){return n._handleFailedRequest(i,e)}):this._handleResponse(i,[])}},{key:"_handleFailedRequest",value:function(e,t){var n,i=this;return console.error("DAWA request failed",t),n=this.options.retryDelay,new Promise(function(e){return setTimeout(e,n)}).then(function(){i.state.pendingRequest||i._scheduleRequest(e),i._requestCompleted()})}},{key:"_handleResponse",value:function(e,t){var n;e.selected?1===t.length?(n=t[0]).type===this.options.type?this.options.selectCallback(n):this.state.pendingRequest||(this.state.pendingRequest={selected:n}):this.options.renderCallback&&this.options.renderCallback(t):e.selectedId?1===t.length&&(this.selected=t[0],this.options.initialRenderCallback(t[0].tekst)):this.options.renderCallback&&this.options.renderCallback(t),this._requestCompleted()}},{key:"_requestCompleted",value:function(){this.state.currentRequest=this.state.pendingRequest,this.state.pendingRequest=null,this.state.currentRequest&&this._executeRequest()}},{key:"setRenderCallback",value:function(e){this.options.renderCallback=e}},{key:"setInitialRenderCallback",value:function(e){this.options.initialRenderCallback=e}},{key:"setSelectCallback",value:function(e){this.options.selectCallback=e}},{key:"update",value:function(e,t){this._scheduleRequest({text:e,caretpos:t})}},{key:"select",value:function(e){this._scheduleRequest({selected:e})}},{key:"selectInitial",value:function(e){this._scheduleRequest({selectedId:e})}},{key:"destroy",value:function(){}}])&&mt(e.prototype,n),i&&mt(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),dn=NaN,fn="[object Symbol]",hn=/^\s+|\s+$/g,pn=/^[-+]0x[0-9a-f]+$/i,mn=/^0b[01]+$/i,gn=/^0o[0-7]+$/i,vn=parseInt,_n="object"==typeof H&&H&&H.Object===Object&&H,x="object"==typeof self&&self&&self.Object===Object&&self,yn=_n||x||Function("return this")(),bn=Object.prototype.toString,kn=Math.max,wn=Math.min;function Sn(e){var t=typeof e;return e&&("object"==t||"function"==t)}function xn(e){if("number"==typeof e)return e;if("symbol"==typeof(n=e)||!!(t=n)&&"object"==typeof t&&bn.call(n)==fn)return dn;var t;if("string"!=typeof(e=Sn(e)?Sn(t="function"==typeof e.valueOf?e.valueOf():e)?t+"":t:e))return 0===e?e:+e;e=e.replace(hn,"");var n=mn.test(e);return n||gn.test(e)?vn(e.slice(2),n?2:8):pn.test(e)?dn:+e}var Cn=function(i,n,e){var a,r,o,s,l,u,c=0,d=!1,f=!1,t=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function h(e){var t=a,n=r;return a=r=void 0,c=e,s=i.apply(n,t)}function p(e){var t=e-u;return void 0===u||n<=t||t<0||f&&o<=e-c}function m(){var e,t=ln();if(p(t))return g(t);l=setTimeout(m,(e=n-((t=t)-u),f?wn(e,o-(t-c)):e))}function g(e){return l=void 0,t&&a?h(e):(a=r=void 0,s)}function v(){var e=ln(),t=p(e);if(a=arguments,r=this,u=e,t){if(void 0===l)return c=e=u,l=setTimeout(m,n),d?h(e):s;if(f)return l=setTimeout(m,n),h(u)}return void 0===l&&(l=setTimeout(m,n)),s}return n=xn(n)||0,Sn(e)&&(d=!!e.leading,f="maxWait"in e,o=f?kn(xn(e.maxWait)||0,n):o,t="trailing"in e?!!e.trailing:t),v.cancel=function(){void 0!==l&&clearTimeout(l),a=u=r=l=void(c=0)},v.flush=function(){return void 0===l?s:g(ln())},v};
1$.dawaAutocomplete=function(e,n){n=Object.assign({select:function(){return null}},n);(t=["baseUrl","minLength","params","fuzzy","stormodtagerpostnumre","supplerendebynavn","type"].reduce(function(e,t){return n.hasOwnProperty(t)&&(e[t]=n[t]),e},{})).type||(n.adgangsadresserOnly?t.type="adgangsadresse":t.type="adresse");var i=new cn(t),t=function(e,t){return i.update(e,t)},t=n.debounce?Cn(t,n.debounce,{maxWait:500}):t,a=G(e,{onSelect:function(e){i.select(e)},onTextChange:t,render:n.render,multiline:n.multiline||!1});return i.setRenderCallback(function(e){return a.setSuggestions(e)}),i.setSelectCallback(function(e){a.selectAndClose(e.tekst),n.select(e)}),i.setInitialRenderCallback(function(e){return a.selectAndClose(e)}),n.id&&i.selectInitial(n.id),{id:function(e){return i.selectInitial(e)},destroy:function(){return a.destroy()},selected:function(){return i.selected}}},Object.defineProperty($,"__esModule",{value:!0})},"object"==typeof n&&void 0!==t?a(n):"function"==typeof define&&define.amd?define(["exports"],a):a((i=i||self).dawaAutocomplete={})},{}],54:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=e("../store/EnergyCalculatorStore"),i=(e=e)&&e.__esModule?e:{default:e};n.default=function(t,e){return Object.keys(e&&"object"==typeof e?e:{}).some(function(e){return e.indexOf(t)})&&e[t]&&i.default.state.baseUrl?""+i.default.state.baseUrl+e[t]:e[t]}},{"../store/EnergyCalculatorStore":58}],47:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={url:"/api/energycalculator/calculator/",endpoint:"initialcalculation",labels:"/api/energycalculator/calculator/labels",recalculateResultEndpoint:"recalculate",recalculateSuggestionEndpoint:"changeselectedproposals",getCalculationEndpoint:"getcalculation"}},{}],45:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=s(e("mithril")),o=s(e("../../store/EnergyCalculatorStore"));function s(e){return e&&e.__esModule?e:{default:e}}function l(){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function")}i(l,[{key:"onupdate",value:function(e){e.attrs.data?(this.modalIsOpen=!0,console.log(e.attrs.data.type)):this.modalIsOpen=!1}},{key:"view",value:function(e){var t;if(e.attrs.data)return(0,r.default)("div",{className:"tk-modal "+(!0===e.state.modalIsOpen?"tk-modal--is-active":"")},(0,r.default)("div",{class:"tk-modal__backdrop tk-energiberegner__modal__backdrop",onclick:function(){return o.default.actions.closeModalPopup(null)}}),(0,r.default)("div",{class:"tk-energiberegner__modal__content"},(0,r.default)("div",{class:"tk-energiberegner__modal__close",onclick:function(){return o.default.actions.closeModalPopup(null)}},(0,r.default)("svg",{viewBox:"0 0 48 48",width:"100%",height:"100%"},(0,r.default)("path",{stroke:"#696057","stroke-width":"3px",d:"M9.9 9.9l28.3 28.3m-.1-28.3L9.9 38.1"}))),(0,r.default)("div",{class:"tk-energiberegner__modal__content__inner"},(0,r.default)("h2",{class:"tk-typography--title-lg tk-beregner__title tk-energiberegner__modal__title"+(e.attrs.data.shrinkTitle?" tk-energiberegner__modal__title__shrink-title":"")+("1"===e.attrs.data.type?" color--green":"")},e.attrs.data.title),(0,r.default)("div",{class:"tk-energiberegner__modal__image-container"+(e.attrs.data.image?"":"--hidden")},(0,r.default)("img",{class:"tk-energiberegner__modal__image-container__image",src:(t=e.attrs.data.image,o.default.state.baseUrl?""+o.default.state.baseUrl+t:t),alt:"Popup illustration"})),(0,r.default)("div",{class:"tk-modal__text-container tk-energiberegner__modal__text-container"+(e.attrs.data.shrinkTitle?" tk-energiberegner__modal__text-container__shrink-title":"")},r.default.trust(e.attrs.data.text)))))}}]),n.default=l},{"../../store/EnergyCalculatorStore":58,mithril:410}],40:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{view:function(){var e=a.default.state.labels,t=a.default.state.statusCode;return a.default.state.XHRerror?(0,i.default)("section",{class:"tk-energiberegner__enter-info__error-msg"},(0,i.default)("article",{class:"tk-energiberegner--error-title"},function(e,t){e={1:i.default.trust((0,r.default)("ErrorMessages",e)),2:i.default.trust((0,r.default)("ErrorMessagesMissingData",e)),3:i.default.trust((0,r.default)("ErrorMessagesWrongHouseType",e)),4:i.default.trust((0,r.default)("ErrorMessagesNoProposals",e)),5:i.default.trust((0,r.default)("ErrorInvalidReport",e))};return console.log("Error statuscode "+t),e[t]||""}(e,t))):""}}};var i=o(e("mithril")),a=o(e("../../store/EnergyCalculatorStore")),r=o(e("../../methods/LabelController"));
1function o(e){return e&&e.__esModule?e:{default:e}}},{"../../methods/LabelController":49,"../../store/EnergyCalculatorStore":58,mithril:410}],49:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=e("../store/EnergyCalculatorStore"),a=(e=e)&&e.__esModule?e:{default:e};n.default=function(t,e,n){var n=n||a.default.state,i=Object.keys(e&&"object"==typeof e?e:{}).some(function(e){return e.indexOf(t)});return n.debugLabel||!e[t]?"["+t+"]":i&&e[t]?e[t]:t}},{"../store/EnergyCalculatorStore":58}],58:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var s=i(e("mithril")),l=i(e("../../energiberegner/methods/deepClone")),u=i(e("../../energiberegner/methods/getAddressFromQuery"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var c={state:{inputValue:"",labelsLoaded:!1,linksLoaded:!1,dawaAddressResult:"",dawaAddressID:"",dawaPostalCode:"",dawaMuncipalName:"",dawaStreetname:"",dawaAccessId:"",dawaHouseNumber:"",resultIsVisible:!1,spinnerIsActive:!1,getStartedCardData:[],LivingAreaInputIsTooHigh:!1,AreaOfWindowsInputIsTooHigh:!1,baseUrl:"",debugLabel:!1,modalPopupData:null,modalWithLinkPopupData:null,excelId:void 0,saveExcelInBE:!0,input:{Address:null,RoofInput:{TypeOfRoofList:["Opvarmet tagetage","Uopvarmet tagetage","Fladt tag"],TypeOfRoof:null,AreaOfHouse:0,AreaOfRoof:0,AreaOfHouseUnit:0,InsulationOfRoofList:[],SelectedInsulationOfRoof:null,InsulationOfHouse:0},AboutHouseInput:{BuildYear:1960,LivingArea:185,LivingAreaUnit:0,NumberOfFloorsList:[],SelectedNumberOfFloors:null},CellarInput:{HasCellar:!0,TypeOfCellarList:["Opvarmet kælder","Uopvarmet kælder","Ingen"],TypeOfCellar:null,TypeOfCellarChosen:null,AreaOfCellar:55,AreaOfCellarUnit:0,FloorInsulationThicknessList:[],SelectedFloorInsulationThickness:null,FloorInsulationThicknessUnit:0},HeatingInput:{TypeOfHeatingList:["Elektricitet.","Gasværksgas.","Flydende brændsel (olie, petroleum, flaskegas).","Fast brændsel (kul, koks,brænde m.m.).","Halm.","Naturgas.","Andet."],TypeOfHeating:null,AnnualConsumption:0,AnnualConsumptionUnit:0},EnvironmentalShellInput:{TypeOfWindowsList:["1 lag glas","1 lag glas + Forsatsrude","2-lags Termorude","3-lags Termorude","1 lag glas + 1 lag Energiglas","2-lags Energirude","3-lags Energirude"],TypeOfWindows:null,AreaOfWindows:0,OuterInsulationThicknessList:[],SelectedOuterInsulationThickness:null},BbrData:{Address:{Id:"0a3f50b0-8b00-32b8-e044-0003ba298018",adgangsadresse:{Id:"0a3f5086-154a-32b8-e044-0003ba298018",postnummer:{nr:"4700",navn:"Næstved"},husnr:"27",vejstykke:{navn:"Ingemannsvej"}}},Entity:{Enhed_id:"f25ee491-1f1a-4320-8c20-b716823333d3",ENH_ANVEND_KODE:"120",bygning:{Bygning_id:"6317a4a9-0b57-4296-a357-d9f6d31fce6d",OPFOERELSE_AAR:1960,BYG_BOLIG_ARL_SAML:185,BYG_BEBYG_ARL:185,BYG_ARL_SAML:185,UDESTUE_ARL:0,VARMEINSTAL_KODE:"1",OPVARMNING_KODE:null,VARME_SUPPL_KODE:"5",ESREjdNr:"015506",Bygningsnr:"1",KomKode:"0370",ENH_ANVEND_KODE:null}},Floors:[{Etage_id:"6a719a5b-ff61-4950-8ceb-1759c949d6a8",SamletAreal:55,TAGETAGE_ARL_UDNYT:0,Etagebetegn:"KL",EtageType:0},{Etage_id:"d52978e9-2d86-4f15-b3ce-875c3722f96b",SamletAreal:0,TAGETAGE_ARL_UDNYT:0,Etagebetegn:"ST",EtageType:"0"}]},EmoData:{},SparEnergiData:{},ValidationParameters:{NumberOfFloorsValidationOutput:0,HouseCircumferenceValidationOutput:0,HouseGeometriValidationOutput:0,FloorHeightValidationOutput:0,AreaOfWindowsValidationOutput:0}},output:{YourHouseSVGVariety:"",MiniEnergyIcon:"",YourHouseImage:"",IsWithEnergyMark:!0,EnergyMarkBasedOutput:{EnergyMarkProposals:[],YearlySavings:13800,Investment:119600,STBT:0,tCO2:3.659,Co2Calculation:{Co2InTon:3.659,FirstFactor:3.2,SecondFactor:4.5,ThirdFactor:5.7,LabelNoCo2InTons:null,Co2InTonOut:"3.123",CalculationOne:"122",CalculationTwo:"16",CalculationThree:"21"}},BbrBasedOutput:{IfNotPossibleHeatSource:!0,IfNotPossibleFJV:"Dit hus ligger uden for et fjernvarmeområde",IfNotPossibleFJVText:"Ifølge vores data fra Kort- og Matrikelstyrelsen ligger dit hus uden for et fjernvarmeområde. Data kan dog være usikre, så kontakt din kommune for mere information.",BbrProposals:[],YearlySavings:0,Investment:0,STBT:0,tCO2:0,Co2Calculation:{}}},links:{GetStartedIconAskFriendLinkUrl:"",GetStartedIconCraftsmanLinkUrl:"",GetStartedIconShareLinkLinkUrl:""},labels:(a(e={EnergyPriceModalTownhouseHeadline:"",EnergyPriceModalTownhouseText:"",EnergyPriceModalHeadline:"",EnergyPriceModalText:"",EnergyPriceModalEnabled:!1,YourHouseSubHeaderEnergyMark:"",EneryLabelValidFromLabel:"",ErrorMessages:"",ErrorMessagesMissingData:"",ErrorMessagesWrongHouseType:"",ErrorMessagesNoProposals:"",CalculatorHeadline:"",CalculatorSubheader:".",InputFieldHeadline:"",InputAddressFieldLabel:"",InputAddressFieldPlaceholder:"",CalculateButtonText:"",TermsAndConditionsLinkText:"",CalculationDisclaimerText:"",TermsAndConditionsHeadline:"",TermsAndConditionsText:"",RightSideText:"",RightSideLogoOne:"",RightSideLogoTwo:"",RightSideLogoThree:"",YourHouseHeadline:"",YourHouseSubHeader:"",RoofLabel:"",RoofTypeLabel:"",RoofAreaLabel:"",RoofInsulationLabel:"",AbouthouseLabel:"",AbouthouseBuildyearLabel:"",AbouthouseAreaLabel:"",AbouthouseFloorCountLabel:"",HeatingLabel:"",HeatingConsumptionLabel:"",BasementTypeLabel:"",BasementLabel:"",BasementSizeLabel:"",HeatingSourceLabel:"",WindowsAndFacadeLabel:"",WindowsAndFacadeTypeLabel:"",WindowsAndFacadeAreaLabel:"",WindowsAndFacadeInsulationLabel:"",FloorLabel:"",FloorInsulationLabel:"",CorrectInformationButtonLabel:"",SeeResultButtonLabel:"",SaveChangesButtonLabel:"",YourHouseImageNoEnergymarkPath:"",YourHouseImageA2020:"",YourHouseImageA2015:"",YourHouseImageA2010:"",YourHouseImageB:"",YourHouseImageC:"",YourHouseImageD:"",YourHouseImageE:"",YourHouseImageF:"",YourHouseImageG:"",RoofTypeLabelMobile:"",RoofSizeLabelMobile:"",RoofInsulationLabelMobile:"",BuildYearLabelMobile:"",LivingAreaLabelMobile:"",NumberOfFloorsLabelMobile:"",CellarTypeLabelMobile:"",CellarSizeLabelMobile:"",CellarFloorTypeLabelMobile:"",YearlyConsumptionLabelMobile:"",PrimaryHeatSourceLabelMobile:"",OuterWallInsulationLabelMobile:"",WindowInsulationLabelMobile:"",WindowAreaLabelMobile:"",CO2CalculatorHeadline:"",Co2CalculationFactorOne:3.2,Co2CalculationFactorTwo:4.5,Co2CalculationFactorThree:5.7,Currency:"",Co2C
1alculationTextOne:"",Co2CalculationTextTwo:"",Co2CalculationTextThree:"",Co2CalculationOneImg:"",Co2CalculationTwoImg:"",Co2CalculationThreeImg:"",MmUnitLabel:"",KvmUnitLabel:"",ProposalsHeadline:"",ProposalsSubHeadline:"",ChangeSelectedProposalsButton:"",WhatDoesItTakeLabel:"",ReadMoreLabel:"",YearlySavingsLabel:"",YearlyCo2SavingsLabel:"",InvestmentForProposalLabel:"",ProposalTotalHeadline:"",SavingsPrMonthLabel:"",ImprovementDescriptionStringOne:"",ImprovementDescriptionStringTwo:"",ImprovementDescriptionStringThree:"",ChangeSelectedHeadline:"",ChangeSelectedSubHeadline:"",SaveProposalChangesButton:"",HeatSourceProposalHeadline:"",BuildingProposalHeadline:""},"YourHouseImageNoEnergymarkPath",""),a(e,"YourHouseImageA2020Path",""),a(e,"YourHouseImageA2015Path",""),a(e,"YourHouseImageA2010Path",""),a(e,"YourHouseImageBPath",""),a(e,"YourHouseImageCPath",""),a(e,"YourHouseImageDPath",""),a(e,"YourHouseImageEPath",""),a(e,"YourHouseImageFPath",""),a(e,"YourHouseImageGPath",""),a(e,"RightSideLogoOnePath",""),a(e,"RightSideLogoTwoPath",""),a(e,"RightSideLogoThreePath",""),a(e,"Co2CalculationOneImgPath",""),a(e,"Co2CalculationTwoImgPath",""),a(e,"Co2CalculationThreeImgPath",""),a(e,"Co2CalculationFailedText",null),a(e,"ErrorMessages",""),a(e,"EmissionUnit",""),a(e,"CloseLabel",""),a(e,"ImagePlaceHolderText",null),a(e,"DefaultDropdownText",null),a(e,"ReadLessLabel",""),a(e,"BackToCalculationLabel",""),a(e,"NewCalculationLabel",""),a(e,"GetStartedButtonLabel",null),a(e,"GetstartedHeadline",""),a(e,"GetstartedIntrotext",null),a(e,"GetstartedAskFriendTitle",null),a(e,"GetstartedAskFriendText",null),a(e,"GetstartedSendMailButton",null),a(e,"GetstartedCraftsmanTitle",null),a(e,"GetstartedCraftsmanText",null),a(e,"getstartedLinkButton",null),a(e,"GetStartedCopyTitle",null),a(e,"GetStartedCopyDescription",null),a(e,"GetstartedBookMeetingButton",null),a(e,"GetStartedCopyModalTitle",null),a(e,"GetStartedCopyModalDescription",null),a(e,"GetStartedCopyModalButtonLabel",null),a(e,"SateliteHeatImage",""),a(e,"EarthHeatImage",""),a(e,"HeatPumpImage",""),a(e,"WoodPelletsHeatImage",null),a(e,"NewWindowsImage",null),a(e,"ExtraInsulationOuterImage",null),a(e,"ExtraInsulationRoofImage",null),a(e,"ExtraInsulationCellarImage",null),a(e,"ExtraInsulationFloorImage",null),a(e,"ExtraInsulationFloorToCellarImage",null),a(e,"ExtranInsulationSokkelImage",null),a(e,"SateliteHeatText",""),a(e,"EarthHeatText",""),a(e,"HeatPumpText",""),a(e,"WoodPelletsHeatText",""),a(e,"NewWindowsText",""),a(e,"ExtraInsulationOuterText",null),a(e,"ExtraInsulationRoofText",null),a(e,"ExtraInsulationCellarText",null),a(e,"ExtraInsulationFloorText",null),a(e,"ExtraInsulationFloorToCellarText",null),a(e,"ExtranInsulationSokkelText",null),a(e,"SateliteHeatImagePath",""),a(e,"EarthHeatImagePath",""),a(e,"HeatPumpImagePath",""),a(e,"WoodPelletsHeatImagePath",""),a(e,"NewWindowsImagePath",""),a(e,"ExtraInsulationOuterImagePath",""),a(e,"ExtraInsulationRoofImagePath",""),a(e,"ExtraInsulationCellarImagePath",""),a(e,"ExtraInsulationFloorImagePath",""),a(e,"ExtraInsulationFloorToCellarImagePath",""),a(e,"ExtranInsulationSokkelImagePath",""),a(e,"SwitchCalculatorModalHeadline",null),a(e,"SwitchCalculatorModalText",null),a(e,"SwitchCalculatorModalGoBackButton",null),a(e,"SwitchCalculatorModalNewCalculationButton",null),a(e,"ProgressbarTextOne",null),a(e,"ProgressbarTextTwo",null),a(e,"ProgressbarTextThree",null),a(e,"YourhouseChooseOnePlaceholder",null),a(e,"FloorToCellarLabel",null),a(e,"BackLabelMobile",null),a(e,"YourHouseUnknownInput",null),a(e,"ProposalModalReferralLinkText",null),a(e,"ProposalModalReferralLink",null),a(e,"InputAddressFieldTooltip",null),a(e,"YourHouseTooltipRoof",null),a(e,"YourHouseTooltipHeat",null),e),settings:null,labelErrorMessage:"",statusCode:0,XHRerror:"",editedState:{Id:"76980da4-b833-4ac8-8cd2-32c41409652f",Status:{Code:"ok",Messages:""},Input:{Address:null,RoofInput:{TypeOfRoofList:[],TypeOfRoof:null,AreaOfHouse:0,AreaOfRoof:0,AreaOfHouseUnit:0,InsulationOfRoofList:[],SelectedInsulationOfRoof:null,InsulationOfHouse:0},AboutHouseInput:{BuildYear:1960,LivingArea:185,LivingAreaUnit:0,NumberOfFloorsList:[],SelectedNumberOfFloors:null},CellarInput:{HasCellar:!0,TypeOfCellarList:[],TypeOfCellar:null,TypeOfCellarChosen:null,AreaOfCellar:55,AreaOfCellarUnit:0,FloorInsulationThicknessList:[],SelectedFloorInsulationThickness:null,FloorInsulationThicknessUnit:0},HeatingInput:{TypeOfHeatingList:[],TypeOfHeating:null,AnnualConsumption:0,AnnualConsumptionUnit:0},EnvironmentalShellInput:{TypeOfWindowsList:[],TypeOfWindows:null,AreaOfWindows:0,OuterInsulationThicknessList:[],SelectedOuterInsulationThickness:null},BbrData:{},EmoData:{},SparEnergiData:{},ValidationParameters:{NumberOfFloorsValidationOutput:0,HouseCircumferenceValidationOutput:0,HouseGeometriValidationOutput:0,FloorHeightValidationOutput:0,AreaOfWindowsValidationOutput:0}},Output:{MiniEnergyIcon:"",YourHouseImage:null,IsWithEnergyMark:!0,EnergyMarkBasedOutput:{EnergyMark:null,EnergyMarkProposals:[],YearlySavings:13800,Investment:119600,STBT:0,tCO2:3.659,Co2Calculation:{Co2InTon:3.659,FirstFactor:3.2,SecondFactor:4.5,ThirdFactor:5.7,LabelNoCo2InTons:null,Co2InTonOut:3.659,CalculationOne:12,CalculationTwo:16,CalculationThree:21}},BbrBasedOutput:{IfNotPossibleHeatSource:0,IfNotPossibleFJV:null,IfNotPossibleFJVText:null,BbrProposals:[],YearlySavings:18621,Investment:274344,STBT:0,tCO2:0,Co2Calculation:{Co2InTon:8.983,FirstFactor:3.2,SecondFactor:4.5,ThirdFactor:5.7,LabelNoCo2InTons:null,Co2InTonOut:8.983,CalculationOne:29,CalculationTwo:40,CalculationThree:51}}}}},mutations:{mergeLabels:function(e){var t=(0,l.default)(c.state.labels),t=Object.assign({},t,e);c.state.labels=t},mergeLinks:function(e){var t=(0,l.default)(c.state.links),t=Object.assign({},t,e);c.state.links=t}
1,setDebugLabel:function(e){c.state.debugLabel=e},setBaseUrl:function(e){c.state.baseUrl=e},updateLivingAreaInputIsTooHigh:function(e){c.state.LivingAreaInputIsTooHigh=e},updateAreaOfWindowsInputIsTooHigh:function(e){c.state.AreaOfWindowsInputIsTooHigh=e},updateDawaAddressID:function(e){c.state.dawaAddressID=e},updateDawaInfo:function(e){c.state.dawaPostalCode=e.postnr,c.state.dawaMuncipalName=e.postnrnavn,c.state.dawaStreetname=e.adresseringsvejnavn,c.state.dawaAccessId=e.adgangsadresseid,c.state.dawaHouseNumber=e.husnr},setExcelId:function(e){c.state.excelId=e},setSaveExcelinBE:function(e){c.state.saveExcelInBE=e},getStartedCardData:function(e){c.state.getStartedCardData=e},updateDawaAddressResult:function(e,t){c.state.inputValue=t,c.mutations.setDataError(!1),c.state.dawaAddressResult=e,s.default.redraw()},showHouseComponent:function(){c.state.resultIsVisible=!0},removeHouseComponent:function(){c.state.resultIsVisible=!1},showTotal:function(){c.state.ShowTotal=!0},hideTotal:function(){c.state.ShowTotal=!1},confirmLabelsLoaded:function(){c.state.labelsLoaded=!0},confirmLinksLoaded:function(){c.state.linksLoaded=!0},setLabels:function(e){c.state.labels=e},setLinks:function(e){c.state.links=e},setLabelsError:function(e){c.state.labelErrorMessage=e.code},setDawaResponseStatus:function(e){c.state.XHRerror=0!==e,c.state.statusCode=e,s.default.redraw()},setInputData:function(e){c.state.input=e.Input},setEditedInputData:function(e){c.state.editedState.Input=e.Input},setOutputData:function(e){c.state.output=e.Output},setEditedOutputData:function(e){e=(0,l.default)(e);c.state.editedState.Output=e},setDataError:function(e){c.state.XHRerror=e,s.default.redraw()},setSpinner:function(){c.state.spinnerIsActive=!0},removeSpinner:function(){c.state.spinnerIsActive=!1},toggleModalPopup:function(e){c.state.modalPopupData=e},toggleModalWithLinkPopup:function(e){c.state.modalWithLinkPopupData=e},setGetStartedCardState:function(e){c.state.getStartedCardState=e},setDataToBBR:function(){c.state.output.IsWithEnergyMark=!1,c.state.editedState.Output.IsWithEnergyMark=!1},setRoofType:function(e){c.state.editedState.Input.RoofInput.TypeOfRoof=e},setRoofInsulation:function(e){c.state.editedState.Input.RoofInput.SelectedInsulationOfRoof=e},setHouseFloorCount:function(e){c.state.editedState.Input.AboutHouseInput.SelectedNumberOfFloors=e},setHeatingSource:function(e){c.state.editedState.Input.HeatingInput.TypeOfHeating=e},setCellarType:function(e){c.state.editedState.Input.CellarInput.TypeOfCellar=e},setCellarFloorInsulation:function(e){c.state.editedState.Input.CellarInput.SelectedFloorInsulationThickness=e},setEnvironmentalShellType:function(e){c.state.editedState.Input.EnvironmentalShellInput.TypeOfWindows=e},setEnvironmentalShellOuterInsulation:function(e){c.state.editedState.Input.EnvironmentalShellInput.SelectedOuterInsulationThickness=e},setAreaOfRoof:function(e){c.state.editedState.Input.RoofInput.AreaOfRoof=parseInt(e)},setAreaOfHouse:function(e){c.state.editedState.Input.AboutHouseInput.LivingArea=parseInt(e)},setHeatingAnnualConsumption:function(e){c.state.editedState.Input.HeatingInput.AnnualConsumption=parseInt(e)},setAreaOfCellar:function(e){c.state.editedState.Input.CellarInput.AreaOfCellar=parseInt(e)},setAreaOfWindows:function(e){c.state.editedState.Input.EnvironmentalShellInput.AreaOfWindows=parseInt(e)},selectSuggestion:function(e,t){c.state.editedState.Output.BbrBasedOutput.BbrProposals[t].IsChosen=e},selectEnergySuggestion:function(e,t){c.state.editedState.Output.EnergyMarkBasedOutput.EnergyMarkProposals[t].IsChosen=e}},actions:{getLabels:function(e,t){e=c.state.baseUrl?c.state.baseUrl+e:e;s.default.request({method:"GET",url:""+e}).then(function(e){c.mutations.setLabels((0,l.default)(e.labels)),c.mutations.setLinks((0,l.default)(e.links)),c.mutations.confirmLabelsLoaded(),c.mutations.confirmLinksLoaded(),t&&t()}).catch(function(e){c.mutations.setLabelsError(e)})},getAddressData:function(e,t,a){var r="function"==typeof a,e=(c.mutations.setDataError(!1),c.mutations.setSpinner(),c.mutations.removeHouseComponent(),r&&a(),""+c.state.baseUrl+e+t+"?save="+c.state.saveExcelInBE+"&postalCode="+c.state.dawaPostalCode+"&municipalName="+c.state.dawaMuncipalName+"&streetname="+c.state.dawaStreetname+"&addressId="+c.state.dawaAccessId+"&house
1Number="+c.state.dawaHouseNumber);s.default.request({method:"GET",url:e}).then(function(e){var t,n,i;c.mutations.setDawaResponseStatus(e.Status.Code),c.mutations.removeSpinner(),r&&a(),0===e.Status.Code&&(c.mutations.setInputData(e),c.mutations.setExcelId(e.Id),c.mutations.setEditedInputData((0,l.default)(e)),c.mutations.setOutputData(e),c.mutations.setEditedOutputData(e.Output),c.mutations.showHouseComponent(),e=c.state.output.IsWithEnergyMark,t="130"===c.state.input.BbrData.Entity.ENH_ANVEND_KODE||"131"===c.state.input.BbrData.Entity.ENH_ANVEND_KODE,n=c.state.labels.EnergyPriceModalEnabled,t&&e&&n?(i={title:c.state.labels.EnergyPriceModalTownhouseHeadline,text:c.state.labels.EnergyPriceModalTownhouseText,type:"1"},c.actions.openModalPopup(i)):!t&&e&&n&&(i={title:c.state.labels.EnergyPriceModalHeadline,text:c.state.labels.EnergyPriceModalText,type:"1"},c.actions.openModalPopup(i))),window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"submit - energiberegner",eventLabel:"",eventValue:0,eventNoninteraction:!0}),s.default.redraw(),console.log(c.state)}).catch(function(e){c.mutations.removeSpinner(),c.mutations.setDataError(!0)})},requestCalculationByQueryParams:function(e,t,n,i){var a,r,o=(0,u.default)(n.slice("?".length),"displayaddress");null!=o&&"No valid address"!=o&&(null!=(r=s.default.parseQueryString(location.search).addressId)&&c.mutations.updateDawaAddressID(r),a="function"==typeof i,c.mutations.setDataError(!1),c.mutations.setSpinner(),c.mutations.removeHouseComponent(),c.mutations.updateDawaAddressResult(decodeURIComponent(o)),r=""+c.state.baseUrl+e+t+n,s.default.request({method:"GET",url:r}).then(function(e){c.mutations.removeSpinner(),c.mutations.setInputData(e),c.mutations.setExcelId(e.Id),c.mutations.setEditedInputData((0,l.default)(e)),c.mutations.setOutputData(e),c.mutations.setEditedOutputData(e.Output),c.mutations.showHouseComponent(),s.default.redraw(),a&&i()}).catch(function(e){c.mutations.removeSpinner(),c.mutations.setDataError(!0)}))},postEditedStateResults:function(e,t,n){var i="function"==typeof n,e=(c.mutations.setDataError(!1),c.mutations.setSpinner(),c.mutations.removeHouseComponent(),i&&n(),""+c.state.baseUrl+e+t),t=c.state.editedState.Id,a=c.state.editedState.Status,r=c.state.editedState.Input,o=c.state.editedState.Output;s.default.request({method:"POST",url:e,data:{Id:t,Status:a,Input:r,Output:o}}).then(function(e){c.mutations.removeSpinner(),c.mutations.setInputData(e),c.mutations.setExcelId(e.Id),c.mutations.setEditedInputData((0,l.default)(e)),c.mutations.setOutputData(e),c.mutations.setEditedOutputData(e.Output),c.mutations.showHouseComponent(),i&&n()}).catch(function(e){c.mutations.removeSpinner(),c.mutations.setDataError(!0)})},postEditedStateSuggestions:function(e,t,n){var i="function"==typeof n,e=(c.mutations.setDataError(!1),c.mutations.setSpinner(),c.mutations.removeHouseComponent(),i&&n(),""+c.state.baseUrl+e+t),t=c.state.editedState.Id,a=c.state.editedState.Status,r=c.state.editedState.Input,o=c.state.editedState.Output;s.default.request({method:"POST",url:e,data:{Id:t,Status:a,Input:r,Output:o}}).then(function(e){c.mutations.setInputData(e),c.mutations.setExcelId(e.Id),c.mutations.setEditedInputData((0,l.default)(e)),c.mutations.setOutputData(e),c.mutations.setEditedOutputData(e.Output),c.mutations.removeSpinner(),c.mutations.showHouseComponent(),i&&n()}).catch(function(e){c.mutations.removeSpinner(),c.mutations.setDataError(!0)})},openModalPopup:function(e){window.dataLayer=window.dataLayer||[],dataLayer.push({event:"track-event",eventCategory:"beregnere",eventAction:"ctaklik - energiberegner",eventLabel:"info læs mere",eventValue:0,eventNoninteraction:!0}),c.mutations.toggleModalPopup(e),s.default.redraw()},closeModalPopup:function(e){c.mutations.toggleModalPopup(e),s.default.redraw()},openModalWithLinkPopup:function(e){c.mutations.toggleModalWithLinkPopup(e),s.default.redraw()},closeModalWithLinkPopup:function(e){c.mutations.toggleModalWithLinkPopup(e),s.default.redraw()}}};n.default=c},{"../../energiberegner/methods/deepClone":51,"../../energiberegner/methods/getAddressFromQuery":52,mithril:410}],52:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){e=i(e);return decodeURIComponent(a(e,t)).replace(/[+]/gm," ")};var i=function(e){return e.split("&").map(function(e){return{key:e.split("=")[0],value:e.split("=")[1]}})},a=function(e,t){e=e.find(function(e){return e.key===t});return e?e.value:"No valid address"}},{}],51:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return JSON.parse(JSON.stringify(e))}},{}],20:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isNykreditSite=function(){return["www.nykredit.dk","dk-nyk-inte12.immeo.net","dk-nyk-
1prep12.immeo.net","dk-nyk-local.immeo.net"].includes(window.location.hostname)},n.isTotalKreditSite=function(){return["www.totalkredit.dk","dk-tot-inte12.immeo.net","dk-tot-prep12.immeo.net","dk-tot-local.immeo.net"].includes(window.location.hostname)}},{}],15:[function(e,t,n){"use strict";var i=a(e("highcharts-more-node"));a(e("escape-html"));function a(e){return e&&e.__esModule?e:{default:e}}i.default.theme={colors:["#0F1E82","#68d2df","#FB264E","#49bca3","#FFD568","#875BA3","#FEAD63","#ffd568"],credits:!1,chart:{backgroundColor:null,style:{fontFamily:"Open Sans, sans-serif"}},title:{align:"left",margin:40,style:{fontSize:"20px",fontWeight:"bold"}},subtitle:{align:"left"},tooltip:{enabled:!0,borderRadius:1,borderColor:"#979797",backgroundColor:"#fff",borderWidth:1,useHTML:!0,padding:14},legend:{enabled:!1},xAxis:{title:{align:"high",style:{color:"#696057"}},labels:{style:{fontSize:"12px",color:"#696057"}},tickWidth:0},yAxis:{title:{align:"high",style:{color:"#696057"}},labels:{style:{fontSize:"12px",color:"#696057"}},lineWidth:1,tickWidth:0},plotOptions:{series:{dataLabels:{enabled:!1},states:{hover:{halo:{size:0}}}},line:{marker:{enabled:!1,symbol:"circle",states:{hover:{lineWidthPlus:0}}}}}},i.default.setOptions(i.default.theme)},{"escape-html":406,"highcharts-more-node":407}],407:[function(e,t,n){"use strict";var i,a;i=void 0,a=function(e){function t(e,t){this.init(e,t)}var $,H,r,F,u,d,N,f,m,j,n,V,h,i,B,U,p,W,Y,a,l,z,g,v,_,o,s,w,G,q,c,y,X,K,Z,b,k,S,J,x,Q,ee,te,C,T,E,ne,ie,ae,A,O,M,re,L,I,D,P,R;function oe(e,t){var n,i=this.chart,a=this.options.animation,r=this.group,o=this.markerGroup,s=this.xAxis.center,l=i.plotLeft,u=i.plotTop;i.polar?i.renderer.isSVG&&(!0===a&&(a={}),t?(n={translateX:s[0]+l,translateY:s[1]+u,scaleX:.001,scaleY:.001},r.attr(n),o&&o.attr(n)):(r.animate(n={translateX:l,translateY:u,scaleX:1,scaleY:1},a),o&&o.animate(n,a),this.animate=null)):e.call(this,t)}
1return $=(I=e).CenteredSeriesMixin,H=I.each,P=I.extend,r=I.merge,F=I.splat,P(t.prototype,{coll:"pane",init:function(e,t){this.chart=t,this.background=[],t.pane.push(this),this.setOptions(e)},setOptions:function(e){this.options=e=r(this.defaultOptions,this.chart.angular?{background:{}}:void 0,e)},render:function(){var e,t,n=this.options,i=this.options.background,a=this.chart.renderer;if(this.group||(this.group=a.g("pane-group").attr({zIndex:n.zIndex||0}).add()),this.updateCenter(),i)for(i=F(i),e=Math.max(i.length,this.background.length||0),t=0;t<e;t++)i[t]&&this.axis?this.renderBackground(r(this.defaultBackgroundOptions,i[t]),t):this.background[t]&&(this.background[t]=this.background[t].destroy(),this.background.splice(t,1))},renderBackground:function(e,t){var n="animate";this.background[t]||(this.background[t]=this.chart.renderer.path().add(this.group),n="attr"),this.background[t][n]({d:this.axis.getPlotBandPath(e.from,e.to,e)}).attr({fill:e.backgroundColor,stroke:e.borderColor,"stroke-width":e.borderWidth,class:"highcharts-pane "+(e.className||"")})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},updateCenter:function(e){this.center=(e||this.axis||{}).center=$.getCenter.call(this)},update:function(e,t){r(!0,this.options,e),this.setOptions(this.options),this.render(),H(this.chart.axes,function(e){e.pane===this&&(e.pane=null,e.update({},t))},this)}}),I.Pane=t,P=e.Axis,u=e.each,d=e.extend,N=e.map,f=e.merge,I=e.noop,m=e.pick,j=e.pInt,D=e.Tick,L=e.wrap,n=P.prototype,P=D.prototype,h={defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null},maxPadding:0,minPadding:0,showLastLabel:!(V={getOffset:I,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:I,setCategories:I,setTitle:I}),tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(e){e=this.options=f(this.defaultOptions,this.defaultRadialOptions,e);e.plotBands||(e.plotBands=[])},getOffset:function(){n.getOffset.call(this),this.chart.axisOffset[this.side]=0},getLinePath:function(e,t){var n=this.center,i=this.chart,a=m(t,n[2]/2-this.offset),a=this.isCircular||void 0!==t?this.chart.renderer.symbols.arc(this.left+n[0],this.top+n[1],a,a,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}):(t=this.postTranslate(this.angleRad,a),["M",n[0]+i.plotLeft,n[1]+i.plotTop,"L",t.x,t.y]);return a},setAxisTranslation:function(){n.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=this.center[2]/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)},beforeSetTickPositions:function(){this.autoConnect=this.isCircular&&void 0===m(this.userMax,this.options.max)&&this.endAngleRad-this.startAngleRad==2*Math.PI,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)},setAxisSize:function(){n.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*m(this.sector,1)/2)},getPosition:function(e,t){return this.postTranslate(this.isCircular?this.translate(e):this.angleRad,m(this.isCircular?t:this.translate(e),this.center[2]/2)-this.offset)},postTranslate:function(e,t){var n=this.chart,i=this.center;return e=this.startAngleRad+e,{x:n.plotLeft+i[0]+Math.cos(e)*t,y:n.plotTop+i[1]+Math.sin(e)*t}},getPlotBandPath:function(e,t,n){var i,a,r,o=this.center,s=this.startAngleRad,l=o[2]/2,u=[m(n.outerRadius,"100%"),n.innerRadius,m(n.thickness,10)],c=Math.min(this.offset,0),d=/%$/,f=this.isCircular,n="polygon"===this.options.gridLineInterpolation?this.getPlotLinePath(e).concat(this.getPlotLinePath(t,!0)):(e=Math.max(e,this.min),t=Math.min(t,this.max),f||(u[0]=this.translate(e),u[1]=this.translate(t)),u=N(u,function(e){return e=d.test(e)?j(e,10)*l/100:e}),"circle"!==n.shape&&f?(i=s+this.translate(e),a=s+this.translate(t)):(i=-Math.PI/2,a=1.5*Math.PI,r=!0),u[0]-=c,u[2]-=c,this.chart.renderer.symbols.arc(this.left+o[0],this.top+o[1],u[0],u[0],{start:Math.min(i,a),end:Math.max(i,a),innerR:m(u[1],u[0]-u[2]),open:r}));return n},getPlotLinePath:function(n,e){var i,a,r,t=this,o=t.center,s=t.chart,l=t.getPosition(n);return t.isCircular?r=["M",o[0]+s.plotLeft,o[1]+s.plotTop,"L",l.x,l.y]:"circle"===t.options.gridLineInterpolation?(n=t.translate(n))&&(r=t.getLinePath(0,n)):(u(s.xAxis,function(e){e.pane===t.pane&&(i=e)}),r=[],n=t.translate(n),o=i.tickPositions,i.autoConnect&&(o=o.concat([o[0]])
1),e&&(o=[].concat(o).reverse()),u(o,function(e,t){a=i.getPosition(e,n),r.push(t?"L":"M",a.x,a.y)})),r},getTitlePosition:function(){var e=this.center,t=this.chart,n=this.options.title;return{x:t.plotLeft+e[0]+(n.x||0),y:t.plotTop+e[1]-{high:.5,middle:.25,low:0}[n.align]*e[2]+(n.y||0)}}},L(n,"init",function(e,t,n){var i,a=t.angular,r=t.polar,o=n.isX,s=a&&o,l=t.options,u=n.pane||0,u=this.pane=t.pane[u],c=u.options;a?(d(this,s?V:h),(i=!o)&&(this.defaultRadialOptions=this.defaultRadialGaugeOptions)):r&&(d(this,h),this.defaultRadialOptions=(i=o)?this.defaultRadialXOptions:f(this.defaultYAxisOptions,this.defaultRadialYOptions)),a||r?(this.isRadial=!0,t.inverted=!1,l.chart.zoomType=null):this.isRadial=!1,i&&(u.axis=this),e.call(this,t,n),s||!a&&!r||(o=this.options,this.angleRad=(o.angle||0)*Math.PI/180,this.startAngleRad=(c.startAngle-90)*Math.PI/180,this.endAngleRad=(m(c.endAngle,c.startAngle+360)-90)*Math.PI/180,this.offset=o.offset||0,this.isCircular=i)}),L(n,"autoLabelAlign",function(e){if(!this.isRadial)return e.apply(this,[].slice.call(arguments,1))}),L(P,"getPosition",function(e,t,n,i,a){var r=this.axis;return r.getPosition?r.getPosition(n):e.call(this,t,n,i,a)}),L(P,"getLabelPosition",function(e,t,n,i,a,r,o,s,l){var u,c=this.axis,d=r.y,f=20,h=r.align,p=(c.translate(this.pos)+c.startAngleRad+Math.PI/2)/Math.PI*180%360;return c.isRadial?(u=c.getPosition(this.pos,c.center[2]/2+m(r.distance,-25)),"auto"===r.rotation?i.attr({rotation:p}):null===d&&(d=c.chart.renderer.fontMetrics(i.styles.fontSize).b-i.getBBox().height/2),null===h&&(h=c.isCircular?(f=this.label.getBBox().width>c.len*c.tickInterval/(c.max-c.min)?0:f)<p&&p<180-f?"left":180+f<p&&p<360-f?"right":"center"
1:"center",i.attr({align:h})),u.x+=r.x,u.y+=d):u=e.call(this,t,n,i,a,r,o,s,l),u}),L(P,"getMarkPath",function(e,t,n,i,a,r,o){var s=this.axis,s=s.isRadial?["M",t,n,"L",(s=s.getPosition(this.pos,s.center[2]/2+i)).x,s.y]:e.call(this,t,n,i,a,r,o);return s}),i=e.each,D=e.noop,B=e.pick,U=e.Series,I=e.seriesType,p=e.seriesTypes,I("arearange","area",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">â</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}},{pointArrayMap:["low","high"],dataLabelCollections:["dataLabel","dataLabelUpper"],toYData:function(e){return[e.low,e.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(e){var t=this.chart,n=this.xAxis.postTranslate(e.rectPlotX,this.yAxis.len-e.plotHigh);e.plotHighX=n.x-t.plotLeft,e.plotHigh=n.y-t.plotTop},translate:function(){var a=this,r=a.yAxis,o=!!a.modifyValue;p.area.prototype.translate.apply(a),i(a.points,function(e){var t=e.low,n=e.high,i=e.plotY;null===n||null===t?e.isNull=!0:(e.plotLow=i,e.plotHigh=r.translate(o?a.modifyValue(n,e):n,0,1,0,1),o&&(e.yBottom=e.plotHigh))}),this.chart.polar&&i(this.points,function(e){a.highToXY(e)})},getGraphPath:function(e){var t,n,i,a,r=[],o=[],s=p.area.prototype.getGraphPath,l=this.options,u=this.chart.polar&&!1!==l.connectEnds,c=l.connectNulls,d=l.step,f=(e=e||this.points).length;for(f=e.length;f--;)(t=e[f]).isNull||u||c||e[f+1]&&!e[f+1].isNull||o.push({plotX:t.plotX,plotY:t.plotY,doCurve:!1}),n={polarPlotY:t.polarPlotY,rectPlotX:t.rectPlotX,yBottom:t.yBottom,plotX:B(t.plotHighX,t.plotX),plotY:t.plotHigh,isNull:t.isNull},o.push(n),r.push(n),t.isNull||u||c||e[f-1]&&!e[f-1].isNull||o.push({plotX:t.plotX,plotY:t.plotY,doCurve:!1});return i=s.call(this,e),d&&(l.step={left:"right",center:"center",right:"left"}[d=!0===d?"left":d]),a=s.call(this,r),s=s.call(this,o),l.step=d,l=[].concat(i,a),this.chart.polar||"M"!==s[0]||(s[0]="L"),this.graphPath=l,this.areaPath=this.areaPath.concat(i,s),l.isArea=!0,l.xMap=i.xMap,this.areaPath.xMap=i.xMap,l},drawDataLabels:function(){var e,t,n,i=this.data,a=i.length,r=[],o=U.prototype,s=this.options.dataLabels,l=s.align,u=s.verticalAlign,c=s.inside,d=this.chart.inverted;if(s.enabled||this._hasPointLabels){for(e=a;e--;)(t=i[e])&&(n=c?t.plotHigh<t.plotLow:t.plotHigh>t.plotLow,t.y=t.high,t._plotY=t.plotY,t.plotY=t.plotHigh,r[e]=t.dataLabel,t.dataLabel=t.dataLabelUpper,t.below=n,d?l||(s.align=n?"right":"left"):u||(s.verticalAlign=n?"top":"bottom"),s.x=s.xHigh,s.y=s.yHigh);for(o.drawDataLabels&&o.drawDataLabels.apply(this,arguments),e=a;e--;)(t=i[e])&&(n=c?t.plotHigh<t.plotLow:t.plotHigh>t.plotLow,t.dataLabelUpper=t.dataLabel,t.dataLabel=r[e],t.y=t.low,t.plotY=t._plotY,t.below=!n,d?l||(s.align=n?"left":"right"):u||(s.verticalAlign=n?"bottom":"top"),s.x=s.xLow,s.y=s.yLow);o.drawDataLabels&&o.drawDataLabels.apply(this,arguments)}s.align=l,s.verticalAlign=u},alignDataLabel:function(){p.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:D,getSymbol:D,drawPoints:D}),(0,e.seriesType)("areasplinerange","arearange",null,{getPointSpline:e.seriesTypes.spline.prototype.getPointSpline}),L=e.defaultPlotOptions,W=e.each,P=e.merge,I=e.noop,Y=e.pick,D=e.seriesType,a=e.seriesTypes.column.prototype,D("columnrange","arearange",P(L.column,L.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var r,o=this,s=o.yAxis,l=o.xAxis,u=l.startAngleRad,c=o.chart,d=o.xAxis.isRadial;a.translate.apply(o),W(o.points,function(e){var t,n,i=e.shapeArgs,a=o.options.minPointLength;e.plotHigh=r=s.translate(e.high,0,1,0,1),e.plotLow=e.plotY,n=r,t=Y(e.rectPlotY,e.plotY)-r,Math.abs(t)<a?(t+=a=a-t,n-=a/2):t<0&&(n-=t*=-1),d?(r=e.barX+u,e.shapeType="path",e.shapeArgs={d:o.polarArc(n+t,n,r,r+e.pointWidth)}):(i.height=t,i.y=n,e.tooltipPos=c.inverted?[s.len+s.pos-c.plotLeft-n-t/2,l.len+l.pos-c.plotTop-i.x-i.width/2,t]:[l.left-c.plotLeft+i.x+i.width/2,s.pos-c.plotTop+n+t/2,t])})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:I,crispCol:a.crispCol,drawPoints:a.drawPoints,drawTracker:a.drawTracker,getColumnMetrics:a.getColumnMetrics,animate:function(){return a.animate.apply(this,arguments)},polarArc:function(){return a.polarArc.apply(this,arguments)},pointAttribs:a.pointAttribs}),l=e.each,z=e.isNumber,g=e.merge,D=e.noop,v=e.pick,_=e.pInt,o=e.Series,P=e.seriesType,L=e.TrackerMixin,P("gauge","line",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2,borderWidth:1,borderColor:"#cccccc"},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:D,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var u=this.yAxis,c=this.options,d=u.center;this.generatePoints(),l(this.points,function(e){var t=g(c.dial,e.dial),n=_(v(t.radius,80))*d[2]/200,i=_(v(t.baseLength,70))*n/100,a=_(v(t.rearLength,10))*n/100,r=t.baseWi
1dth||3,o=t.topWidth||1,s=c.overshoot,l=u.startAngleRad+u.translate(e.y,null,null,null,!0);z(s)?(s=s/180*Math.PI,l=Math.max(u.startAngleRad-s,Math.min(u.endAngleRad+s,l))):!1===c.wrap&&(l=Math.max(u.startAngleRad,Math.min(u.endAngleRad,l))),l=180*l/Math.PI,e.shapeType="path",e.shapeArgs={d:t.path||["M",-a,-r/2,"L",i,-r/2,n,-o/2,n,o/2,i,r/2,-a,r/2,"z"],translateX:d[0],translateY:d[1],rotation:l},e.plotX=d[0],e.plotY=d[1]})},drawPoints:function(){var r=this,e=r.yAxis.center,t=r.pivot,o=r.options,n=o.pivot,s=r.chart.renderer;l(r.points,function(e){var t=e.graphic,n=e.shapeArgs,i=n.d,a=g(o.dial,e.dial);t?(t.animate(n),n.d=i):(e.graphic=s[e.shapeType](n).attr({rotation:n.rotation,zIndex:1}).addClass("highcharts-dial").add(r.group),e.graphic.attr({stroke:a.borderColor||"none","stroke-width":a.borderWidth||0,fill:a.backgroundColor||"#000000"}))}),t?t.animate({translateX:e[0],translateY:e[1]}):(r.pivot=s.circle(0,0,v(n.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(e[0],e[1]).add(r.group),r.pivot.attr({"stroke-width":n.borderWidth||0,stroke:n.borderColor||"#cccccc",fill:n.backgroundColor||"#000000"}))},animate:function(e){var n=this;e||(l(n.points,function(e){var t=e.graphic;t&&(t.attr({rotation:180*n.yAxis.startAngleRad/Math.PI}),t.animate({rotation:e.shapeArgs.rotation},n.options.animation))}),n.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup),o.prototype.render.call(this),this.group.clip(this.chart.clipRect)},setData:function(e,t){o.prototype.setData.call(this,e,!1),this.processData(),this.generatePoints(),v(t,!0)&&this.chart.redraw()},drawTracker:L&&L.drawTrackerPoint},{setState:function(e){this.state=e}}),s=e.each,I=e.noop,w=e.pick,P=e.seriesType,G=e.seriesTypes,P("boxplot","column",{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">â</span> <b> {series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(e){return[e.low,e.q1,e.median,e.q3,e.high]},pointValKey:"high",pointAttribs:function(e){var t=this.options,n=e&&e.color||this.color;return{fill:e.fillColor||t.fillColor||n,stroke:t.lineColor||n,"stroke-width":t.lineWidth||0}},drawDataLabels:I,translate:function(){var n=this.yAxis,e=this.pointArrayMap;G.column.prototype.translate.apply(this),s(this.points,function(t){s(e,function(e){null!==t[e]&&(t[e+"Plot"]=n.translate(t[e],0,1,0,1))})})},drawPoints:function(){var l,u,c,d,f,h,p,m,g,v=this,e=v.points,_=v.options,y=v.chart.renderer,b=!1!==v.doQuartiles,k=v.options.whiskerLength;s(e,function(e){var t=e.graphic,n=t?"animate":"attr",i=e.shapeArgs,a={},r={},o={},s=e.color||v.color;void 0!==e.plotY&&(m=i.width,h=Math.floor(i.x),p=h+m,m=Math.round(m/2),g=Math.floor(b?e.q1Plot:e.lowPlot),c=Math.floor(b?e.q3Plot:e.lowPlot),l=Math.floor(e.highPlot),u=Math.floor(e.lowPlot),t||(e.graphic=t=y.g("point").add(v.group),e.stem=y.path().addClass("highcharts-boxplot-stem").add(t),k&&(e.whiskers=y.path().addClass("highcharts-boxplot-whisker").add(t)),b&&(e.box=y.path(void 0).addClass("highcharts-boxplot-box").add(t)),e.medianShape=y.path(void 0).addClass("highcharts-boxplot-median").add(t)),a.stroke=e.stemColor||_.stemColor||s,a["stroke-width"]=w(e.stemWidth,_.stemWidth,_.lineWidth),a.dashstyle=e.stemDashStyle||_.stemDashStyle,e.stem.attr(a),k&&(r.stroke=e.whiskerColor||_.whiskerColor||s,r["stroke-width"]=w(e.whiskerWidth,_.whiskerWidth,_.lineWidth),e.whiskers.attr(r)),b&&(i=v.pointAttribs(e),e.box.attr(i)),o.stroke=e.medianColor||_.medianColor||s,o["stroke-width"]=w(e.medianWidth,_.medianWidth,_.lineWidth),e.medianShape.attr(o),d=e.stem.strokeWidth()%2/2,f=h+m+d,e.stem[n]({d:["M",f,c,"L",f,l,"M",f,g,"L",f,u]}),b&&(d=e.box.strokeWidth()%2/2,g=Math.floor(g)+d,c=Math.floor(c)+d,h+=d,p+=d,e.box[n]({d:["M",h,c,"L",h,g,"L",p,g,"L",p,c,"L",h,c,"z"]})),k&&(d=e.whiskers.strokeWidth()%2/2,l+=d,u+=d,g=/%$/.test(k)?m*parseFloat(k)/100:k/2,e.whiskers[n]({d:["M",f-g,l,"L",f+g,l,"M",f-g,u,"L",f+g,u]})),c=Math.round(e.medianPlot),d=e.medianShape.strokeWidth()%2/2,c+=d,e.medianShape[n]({d:["M",h,c,"L",p,c]}))})},setStackedPoints:I}),q=e.each,D=e.noop,L=e.seriesType,c=e.seriesTypes,L("errorbar","boxplot",{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">â</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(e){return[e.low,e.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:c.arearange?function(){var t=this.pointV
1alKey;c.arearange.prototype.drawDataLabels.call(this),q(this.data,function(e){e.y=e[t]})}:D,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||c.column.prototype.getColumnMetrics.call(this)}}),y=e.correctFloat,X=e.isNumber,K=e.pick,Z=e.Point,b=e.Series,P=e.seriesType,k=e.seriesTypes,P("waterfall","column",{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}},{pointValKey:"y",translate:function(){var e,t,n,i,a,r,o,s,l,u,c,d,f=this,h=f.options,p=f.yAxis,m=K(h.minPointLength,5),g=m/2,v=h.threshold,_=h.stacking;for(k.column.prototype.translate.apply(f),s=l=v,t=0,e=(n=f.points).length;t<e;t++)i=n[t],o=f.processedYData[t],a=i.shapeArgs,r=_&&p.stacks[(f.negStacks&&o<v?"-":"")+f.stackKey],c=f.getStackIndicator(c,i.x,f.index),u=r?r[i.x].points[c.key]:[0,o],i.isSum?i.y=y(o):i.isIntermediateSum&&(i.y=y(o-l)),d=Math.max(s,s+i.y)+u[0],a.y=p.translate(d,0,1,0,1),i.isSum?(a.y=p.translate(u[1],0,1,0,1),a.height=Math.min(p.translate(u[0],0,1,0,1),p.len)-a.y):i.isIntermediateSum?(a.y=p.translate(u[1],0,1,0,1),a.height=Math.min(p.translate(l,0,1,0,1),p.len)-a.y,l=u[1]):(a.height=0<o?p.translate(s,0,1,0,1)-a.y:p.translate(s,0,1,0,1)-p.translate(s-o,0,1,0,1),s+=r&&r[i.x]?r[i.x].total:o),a.height<0&&(a.y+=a.height,a.height*=-1),i.plotY=a.y=Math.round(a.y)-f.borderWidth%2/2,a.height=Math.max(Math.round(a.height),.001),i.yBottom=a.y+a.height,a.height<=m&&!i.isNull?(a.height=m,a.y-=g,i.plotY=a.y,i.y<0?i.minPointLengthOffset=-g:i.minPointLengthOffset=g):i.minPointLengthOffset=0,d=i.plotY+(i.negative?a.height:0),f.chart.inverted?i.tooltipPos[0]=p.len-d:i.tooltipPos[1]=d},processData:function(e){for(var t,n,i,a,r,o=this.options,s=this.yData,l=this.options.data,u=s.length,c=n=i=a=o.threshold||0,d=0;d<u;d++)r=s[d],t=l&&l[d]?l[d]:{},"sum"===r||t.isSum?s[d]=y(c):"intermediateSum"===r||t.isIntermediateSum?s[d]=y(n):(c+=r,n+=r),i=Math.min(c,i),a=Math.max(c,a);b.prototype.processData.call(this,e),this.options.stacking||(this.dataMin=i,this.dataMax=a)},toYData:function(e){return e.isSum?0===e.x?null:"sum":e.isIntermediateSum?0===e.x?null:"intermediateSum":e.y},pointAttribs:function(e,t){var n=this.options.upColor;return n&&!e.options.color&&(e.color=0<e.y?n:null),delete(n=k.column.prototype.pointAttribs.call(this,e,t)).dashstyle,n},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){for(var e,t,n=this.data,i=n.length,a=this.graph.strokeWidth()+this.borderWidth,r=Math.round(a)%2/2,o=this.yAxis.reversed,s=[],l=1;l<i;l++)t=n[l].shapeArgs,t=["M",(e=n[l-1].shapeArgs).x+e.width,e.y+n[l-1].minPointLengthOffset+r,"L",t.x,e.y+n[l-1].minPointLengthOffset+r],(n[l-1].y<0&&!o||0<n[l-1].y&&o)&&(t[2]+=e.height,t[5]+=e.height),s=s.concat(t);return s},drawGraph:function(){b.prototype.drawGraph.call(this),this.graph.attr({d:this.getCrispPath()})},setStackedPoints:function(){var e,t,n=this.options;for(b.prototype.setStackedPoints.apply(this,arguments),e=this.stackedYData?this.stackedYData.length:0,t=1;t<e;t++)n.data[t].isSum||n.data[t].isIntermediateSum||(this.stackedYData[t]+=this.stackedYData[t-1])},getExtremes:function(){if(this.options.stacking)return b.prototype.getExtremes.apply(this,arguments)}},{getClassName:function(){var e=Z.prototype.getClassName.call(this);return this.isSum?e+=" highcharts-sum":this.isIntermediateSum&&(e+=" highcharts-intermediate-sum"),e},isValid:function(){return X(this.y,!0)||this.isSum||this.isIntermediateSum}}),I=e.LegendSymbolMixin,L=e.noop,S=e.Series,D=e.seriesType,J=e.seriesTypes,D("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var e=S.prototype.getGraphPath.call(this),t=e.length+1;t--;)(t===e.length||"M"===e[t])&&0<t&&e.splice(t,0,"z");return this.areaPath=e},drawGraph:function(){this.options.fillColor=this.color,J.area.prototype.drawGraph.call(this)},drawLegendSymbol:I.drawRectangle,drawTracker:S.prototype.drawTracker,setStackedPoints:L}),Q=(x=e).arrayMax,ee=x.arrayMin,P=x.Axis,te=x.color,C=x.each,T=x.isNumber,D=x.noop,E=x.pick,ne=x.pInt,ie=x.Point,ae=x.Series,I=x.seriesType,A=x.seriesTypes,I("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"}
1,marker:{lineColor:null,lineWidth:1,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,pointAttribs:function(e,t){var n=this.options.marker,n=E(n.fillOpacity,.5),e=ae.prototype.pointAttribs.call(this,e,t);return 1!==n&&(e.fill=te(e.fill).setOpacity(n).get("rgba")),e},getRadii:function(e,t,n,i){for(var a,r=this.zData,o=[],s=this.options,l="width"!==s.sizeBy,u=s.zThreshold,c=t-e,d=0,f=r.length;d<f;d++)a=r[d],s.sizeByAbsoluteValue&&null!==a&&(a=Math.abs(a-u),t=Math.max(t-u,Math.abs(e-u)),e=0),a=null===a?null:a<e?n/2-1:(a=0<c?(a-e)/c:.5,l&&0<=a&&(a=Math.sqrt(a)),Math.ceil(n+a*(i-n))/2),o.push(a);this.radii=o},animate:function(e){var i=this.options.animation;e||(C(this.points,function(e){var t,n=e.graphic;n&&n.width&&(t={x:n.x,y:n.y,width:n.width,height:n.height},n.attr({x:e.plotX,y:e.plotY,width:1,height:1}),n.animate(t,i))}),this.animate=null)},translate:function(){var e,t,n,i=this.data,a=this.radii;for(A.scatter.prototype.translate.call(this),e=i.length;e--;)t=i[e],n=a?a[e]:0,T(n)&&n>=this.minPxSize/2?(t.marker=x.extend(t.marker,{radius:n,width:2*n,height:2*n}),t.dlBox={x:t.plotX-n,y:t.plotY-n,width:2*n,height:2*n}):t.shapeArgs=t.plotY=t.dlBox=void 0},alignDataLabel:A.column.prototype.alignDataLabel,buildKDTree:D,applyZones:D},{haloPath:function(e){return ie.prototype.haloPath.call(this,0===e?0:(this.marker&&this.marker.radius||0)+e)},ttBelow:!1}),P.prototype.beforePadding=function(){var a=this,e=this.len,t=this.chart,r=0,o=e,s=this.isXAxis,l=s?"xData":"yData",u=this.min,c={},d=Math.min(t.plotWidth,t.plotHeight),f=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=this.max-u,m=e/p,n=[];C(this.series,function(e){var i=e.options;!e.bubblePadding||!e.visible&&t.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,n.push(e),s&&(C(["minSize","maxSize"],function(e){var t=i[e],n=/%$/.test(t),t=ne(t);c[e]=n?d*t/100:t}),e.minPxSize=c.minSize,e.maxPxSize=Math.max(c.maxSize,c.minSize),(e=e.zData).length)&&(f=E(i.zMin,Math.min(f,Math.max(ee(e),!1===i.displayNegative?i.zThreshold:-Number.MAX_VALUE))),h=E(i.zMax,Math.max(h,Q(e)))))}),C(n,function(e){var t,n=e[l],i=n.length;if(s&&e.getRadii(f,h,e.minPxSize,e.maxPxSize),0<p)for(;i--;)T(n[i])&&a.dataMin<=n[i]&&n[i]<=a.dataMax&&(t=e.radii[i],r=Math.min((n[i]-u)*m-t,r),o=Math.max((n[i]-u)*m+t,o))}),n.length&&0<p&&!this.isLog&&(m*=(e+r-(o-=e))/e,C([["min","userMin",r],["max","userMax",o]],function(e){void 0===E(a.options[e[0]],a[e[1]])&&(a[e[0]]+=e[2]/m)}))},M=(O=e).each,re=O.pick,L=O.Pointer,I=O.Series,D=O.seriesTypes,P=O.wrap,R=I.prototype,I=L.prototype,R.searchPointByAngle=function(e){var t=this.chart,n=this.xAxis.pane.center,i=e.chartX-n[0]-t.plotLeft,e=e.chartY-n[1]-t.plotTop;return this.searchKDTree({clientX:180+Math.atan2(i,e)*(-180/Math.PI)})},R.getConnectors=function(e,t,n,i){var a=i?1:0,t=0<=t&&t<=e.length-1?t:t<0?e.length-1+t:0,r=t-1<0?e.length-(1+a):t-1,a=t+1>e.length-1?a:t+1,o=e[r],a=e[a],s=o.plotX,o=o.plotY,l=a.plotX,a=a.plotY,u=e[t].plotX,t=e[t].plotY,s=(1.5*u+s)/2.5,o=(1.5*t+o)/2.5,l=(1.5*u+l)/2.5,a=(1.5*t+a)/2.5,c=Math.sqrt(Math.pow(s-u,2)+Math.pow(o-t,2)),d=Math.sqrt(Math.pow(l-u,2)+Math.pow(a-t,2)),f=Math.atan2(o-t,s-u),a=Math.atan2(a-t,l-u),l=Math.PI/2+(f+a)/2;return Math.abs(f-l)>Math.PI/2&&(l-=Math.PI),s=u+Math.cos(l)*c,o=t+Math.sin(l)*c,a={rightContX:u+Math.cos(Math.PI+l)*d,rightContY:t+Math.sin(Math.PI+l)*d,leftContX:s,leftContY:o,plotX:u,plotY:t},n&&(a.prevPointCont=this.getConnectors(e,r,!1,i)),a},P(R,"buildKDTree",function(e){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy="xy"),e.apply(this)}),R.toXY=function(e){var t=this.chart,n=e.plotX,i=e.plotY;e.rectPlotX=n,e.rectPlotY=i,i=this.xAxis.postTranslate(e.plotX,this.yAxis.len-i),e.plotX=e.polarPlotX=i.x-t.plotLeft,e.plotY=e.polarPlotY=i.y-t.plotTop,this.kdByA
1ngle?((i=(n/Math.PI*180+this.xAxis.pane.options.startAngle)%360)<0&&(i+=360),e.clientX=i):e.clientX=e.plotX},D.spline&&(P(D.spline.prototype,"getPointSpline",function(e,t,n,i){var a=this.chart.polar?i?["C",(a=this.getConnectors(t,i,!0,this.connectEnds)).prevPointCont.rightContX,a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]:["M",n.plotX,n.plotY]:e.call(this,t,n,i);return a}),D.areasplinerange)&&(D.areasplinerange.prototype.getPointSpline=D.spline.prototype.getPointSpline),P(R,"translate",function(e){var t,n,i=this.chart;if(e.call(this),i.polar&&(this.kdByAngle=i.tooltip&&i.tooltip.shared,!this.preventPostTranslate))for(n=(t=this.points).length;n--;)this.toXY(t[n])}),P(R,"getGraphPath",function(e,t){var n,i,a,r=this;if(this.chart.polar){for(t=t||this.points,n=0;n<t.length;n++)if(!t[n].isNull){i=n;break}!1!==this.options.connectEnds&&void 0!==i&&(this.connectEnds=!0,t.splice(t.length,0,t[i]),a=!0),M(t,function(e){void 0===e.polarPlotY&&r.toXY(e)})}e=e.apply(this,[].slice.call(arguments,1));return a&&t.pop(),e}),P(R,"animate",oe),D.column&&((L=D.column.prototype).polarArc=function(e,t,n,i){var a=this.xAxis.center,r=this.yAxis.len;return this.chart.renderer.symbols.arc(a[0],a[1],r-t,null,{start:n,end:i,innerR:r-re(e,r)})},P(L,"animate",oe),P(L,"translate",function(e){var t,n,i,a,r=this.xAxis,o=r.startAngleRad;if(this.preventPostTranslate=!0,e.call(this),r.isRadial)for(a=(n=this.points).length;a--;)t=(i=n[a]).barX+o,i.shapeType="path",i.shapeArgs={d:this.polarArc(i.yBottom,i.plotY,t,t+i.pointWidth)},this.toXY(i),i.tooltipPos=[i.plotX,i.plotY],i.ttBelow=i.plotY>r.center[1]}),P(L,"alignDataLabel",function(e,t,n,i,a,r){var o;(this.chart.polar?(o=t.rectPlotX/Math.PI*180,null===i.align&&(i.align=20<o&&o<160?"left":200<o&&o<340?"right":"center"),null===i.verticalAlign&&(i.verticalAlign=o<45||315<o?"bottom":135<o&&o<225?"top":"middle"),R.alignDataLabel):e).call(this,t,n,i,a,r)})),P(I,"getCoordinates",function(e,a){var r=this.chart,o={xAxis:[],yAxis:[]};return r.polar?M(r.axes,function(e){var t=e.isXAxis,n=e.center,i=a.chartX-n[0]-r.plotLeft,n=a.chartY-n[1]-r.plotTop;o[t?"xAxis":"yAxis"].push({axis:e,value:e.translate(t?Math.PI-Math.atan2(i,n):Math.sqrt(Math.pow(i,2)+Math.pow(n,2)),!0)})}):o=e.call(this,a),o}),P(O.Chart.prototype,"getAxes",function(e){this.pane||(this.pane=[]),M(O.splat(this.options.pane),function(e){new O.Pane(e,this)},this),e.call(this)}),P(O.Chart.prototype,"drawChartBox",function(e){e.call(this),M(this.pane,function(e){e.render()})}),P(O.Chart.prototype,"get",function(e,t){return O.find(this.pane,function(e){return e.options.id===t})||e.call(this,t)}),e.Highcharts=e},"function"==typeof define&&define.amd?define(["highcharts"],a):"object"==typeof t&&t.exports?t.exports=a(e("highcharts")):i.Highcharts=a(i.Highcharts)},{highcharts:408}],408:[function(e,t,n){"use strict";var i,a;i="undefined"!=typeof window?window:void 0,a=function(e){var v,$,H,F,N,j,V,B,U,W,Y,z,G,I,q,X,T,K,Z,J,Q,D,ee,te,E,ne,ie,ae,re,oe,se,le,ue,ce,de,fe,he,pe,me,A,ge,ve,_e,ye,be,ke,we,P,Se,xe,Ce,Te,Ee,Ae,Oe,Me,Le,Ie,De,Pe,O,Re,$e,He,Fe,Ne,je,Ve,Be,Ue,We,Ye,ze,Ge,qe,Xe,Ke,Ze,i,Je,Qe,et,tt,nt,it,at,rt,ot,st,lt,ut;function ct(){var s,e=i.defaultOptions.global,l=e.useUTC,t=l?"getUTC":"get",n=l?"setUTC":"set";
1i.Date=s=e.Date||nt.Date,s.hcTimezoneOffset=l&&e.timezoneOffset,s.hcGetTimezoneOffset=function(){var t=i.defaultOptions.global,n=nt.moment;if(t.timezone){if(n)return function(e){return-n.tz(e,t.timezone).utcOffset()};i.error(25)}return t.useUTC&&t.getTimezoneOffset}(),s.hcMakeTime=function(e,t,n,i,a,r){var o;return l?(o=s.UTC.apply(0,arguments),o+=Qe(o)):o=new s(e,t,tt(n,1),tt(i,0),tt(a,0),tt(r,0)).getTime(),o},Je("Minutes Hours Day Date Month FullYear".split(" "),function(e){s["hcGet"+e]=t+e}),Je("Milliseconds Seconds Minutes Hours Date Month FullYear".split(" "),function(e){s["hcSet"+e]=n+e})}R=window,c=R.document,f=R.navigator&&R.navigator.userAgent||"",d=c&&c.createElementNS&&!!c.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,l=/(edge|msie|trident)/i.test(f)&&!window.opera,k=!d,o=/Firefox/.test(f),io=o&&parseInt(f.split("Firefox/")[1],10)<4,e=R.Highcharts?R.Highcharts.error(16,!0):{product:"Highcharts",version:"5.0.14",deg2rad:2*Math.PI/360,doc:c,hasBidiBug:io,hasTouch:c&&void 0!==c.documentElement.ontouchstart,isMS:l,isWebKit:/AppleWebKit/.test(f),isFirefox:o,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(f),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:d,vml:k,win:R,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]},F=[],N=(v=e).charts,j=v.doc,V=v.win,v.error=function(e,t){if(e=v.isNumber(e)?"Highcharts error #"+e+": www.highcharts.com/errors/"+e:e,t)throw Error(e);V.console&&console.log(e)},v.Fx=function(e,t,n){this.options=t,this.elem=e,this.prop=n},v.Fx.prototype={dSetter:function(){var e,t=this.paths[0],n=this.paths[1],i=[],a=this.now,r=t.length;if(1===a)i=this.toD;else if(r===n.length&&a<1)for(;r--;)e=parseFloat(t[r]),i[r]=isNaN(e)?t[r]:a*parseFloat(n[r]-e)+e;else i=n;this.elem.attr("d",i,null,!0)},update:function(){var e=this.elem,t=this.prop,n=this.now,i=this.options.step;this[t+"Setter"]?this[t+"Setter"]():e.attr?e.element&&e.attr(t,n,null,!0):e.style[t]=n+this.unit,i&&i.call(e,n,this)},run:function(e,t,n){function i(e){return!i.stopped&&r.step(e)}var a,r=this;this.startTime=+new Date,this.start=e,this.end=t,this.unit=n,this.now=this.start,this.pos=0,i.elem=this.elem,i.prop=this.prop,i()&&1===F.push(i)&&(i.timerId=setInterval(function(){for(a=0;a<F.length;a++)F[a]()||F.splice(a--,1);F.length||clearInterval(i.timerId)},13))},step:function(e){var t,n=+new Date,i=this.options,a=this.elem,r=i.complete,o=i.duration,s=i.curAnim;return e=!(a.attr&&!a.element||(e||n>=o+this.startTime?(this.now=this.end,this.pos=1,this.update(),t=s[this.prop]=!0,v.objectEach(s,function(e){!0!==e&&(t=!1)}),t&&r&&r.call(a),1):(this.pos=i.easing((n-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),0)))},initPath:function(e,t,n){function i(e){var t,n;for(u=e.length;u--;)t="M"===e[u]||"L"===e[u],n=/[a-zA-Z]/.test(e[u+3]),t&&n&&e.splice(u+1,0,e[u+1],e[u+2],e[u+1],e[u+2])}function a(e,t){for(;e.length<s;){e[0]=t[s-e.length];var n=e.slice(0,p);[].splice.apply(e,[0,0].concat(n)),m&&(n=e.slice(e.length-p),[].splice.apply(e,[e.length,0].concat(n)),u--)}e[0]="M"}function r(e,t){for(var n=(s-e.length)/p;0<n&&n--;)(l=e.slice().splice(e.length/g-p,p*g))[0]=t[s-p-n*p],h&&(l[p-6]=l[p-2],l[p-5]=l[p-1]),[].splice.apply(e,[e.length/g,0].concat(l)),m&&n--}var o,s,l,u,c,d=e.startX,f=e.endX,h=-1<(t=t||"").indexOf("C"),p=h?7:3,m=(t=t.split(" "),n=n.slice(),e.isArea),g=m?2:1;if(h&&(i(t),i(n)),d&&f){for(u=0;u<d.length;u++){if(d[u]===f[0]){o=u;break}if(d[0]===f[f.length-d.length+u]){o=u,c=!0;break}}void 0===o&&(t=[])}return t.length&&v.isNumber(o)&&(s=n.length+o*g*p,c?(a(t,n),r(n,t)):(a(n,t),r(t,n))),[t,n]}},v.Fx.prototype.fillSetter=v.Fx.prototype.strokeSetter=function(){this.elem.attr(this.prop,v.color(this.start).tweenTo(v.color(this.end),this.pos),null,!0)},v.extend=function(e,t){for(var n in e=e||{},t)e[n]=t[n];return e},v.merge=function(){function a(n,i){return"object"!=typeof n&&(n={}),v.objectEach(i,function(e,t){!v.isObject(e,!0)||v.isClass(e)||v.isDOMElement(e)?n[t]=i[t]:n[t]=a(n[t]||{},e)}),n}var e,t,n=arguments,i={};for(!0===n[0]&&(i=n[1],n=Array.prototype.slice.call(n,2)),t=n.length,e=0;e<t;e++)i=a(i,n[e]);return i},v.pInt=function(e,t){return parseInt(e,t||10)},v.isString=function(e){return"string"==typeof e},v.isArray=function(e){return"[object Array]"===(e=Object.prototype.toString.call(e))||"[object Array Iterator]"===e},v.isObject=function(e,t){return!(!e||"object"!=typeof e||t&&v.isArray(e))},v.isDOMElement=function(e){return v.isObject(e)&&"number"==typeof e.nodeType},v.isClass=function(e){var t=e&&e.constructor;return!(!v.isObject(e,!0)||v.isDOMElement(e)||!t||!t.name||"Object"===t.name)}
1,v.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},v.erase=function(e,t){for(var n=e.length;n--;)if(e[n]===t){e.splice(n,1);break}},v.defined=function(e){return null!=e},v.attr=function(n,e,t){var i;return v.isString(e)?v.defined(t)?n.setAttribute(e,t):n&&n.getAttribute&&(i=n.getAttribute(e)):v.defined(e)&&v.isObject(e)&&v.objectEach(e,function(e,t){n.setAttribute(t,e)}),i},v.splat=function(e){return v.isArray(e)?e:[e]},v.syncTimeout=function(e,t,n){if(t)return setTimeout(e,t,n);e.call(0,n)},v.pick=function(){for(var e,t=arguments,n=t.length,i=0;i<n;i++)if(null!=(e=t[i]))return e},v.css=function(e,t){v.isMS&&!v.svg&&t&&void 0!==t.opacity&&(t.filter="alpha(opacity="+100*t.opacity+")"),v.extend(e.style,t)},v.createElement=function(e,t,n,i,a){e=j.createElement(e);var r=v.css;return t&&v.extend(e,t),a&&r(e,{padding:0,border:"none",margin:0}),n&&r(e,n),i&&i.appendChild(e),e},v.extendClass=function(e,t){function n(){}return n.prototype=new e,v.extend(n.prototype,t),n},v.pad=function(e,t,n){return Array((t||2)+1-String(e).length).join(n||0)+e},v.relativeLength=function(e,t,n){return/%$/.test(e)?t*parseFloat(e)/100+(n||0):parseFloat(e)},v.wrap=function(e,t,i){var a=e[t];e[t]=function(){var e=Array.prototype.slice.call(arguments),t=arguments,n=this;return n.proceed=function(){a.apply(n,arguments.length?arguments:t)},e.unshift(a),e=i.apply(this,e),n.proceed=null,e}},v.getTZOffset=function(e){var t=v.Date;return 6e4*(t.hcGetTimezoneOffset&&t.hcGetTimezoneOffset(e)||t.hcTimezoneOffset||0)},v.dateFormat=function(n,i,e){if(!v.defined(i)||isNaN(i))return v.defaultOptions.lang.invalidDate||"";n=v.pick(n,"%Y-%m-%d %H:%M:%S");var t=new(h=v.Date)(i-v.getTZOffset(i)),a=t[h.hcGetHours](),r=t[h.hcGetDay](),o=t[h.hcGetDate](),s=t[h.hcGetMonth](),l=t[h.hcGetFullYear](),u=v.defaultOptions.lang,c=u.weekdays,d=u.shortWeekdays,f=v.pad,h=v.extend({a:d?d[r]:c[r].substr(0,3),A:c[r],d:f(o),e:f(o,2," "),w:r,b:u.shortMonths[s],B:u.months[s],m:f(s+1),y:l.toString().substr(2,2),Y:l,H:f(a),k:a,I:f(a%12||12),l:a%12||12,M:f(t[h.hcGetMinutes]()),p:a<12?"AM":"PM",P:a<12?"am":"pm",S:f(t.getSeconds()),L:f(Math.round(i%1e3),3)},v.dateFormats);return v.objectEach(h,function(e,t){for(;-1!==n.indexOf("%"+t);)n=n.replace("%"+t,"function"==typeof e?e(i):e)}),e?n.substr(0,1).toUpperCase()+n.substr(1):n},v.formatSingle=function(e,t){var n=/\.([0-9])/,i=v.defaultOptions.lang;return/f$/.test(e)?(n=(n=e.match(n))?n[1]:-1,null!==t&&(t=v.numberFormat(t,n,i.decimalPoint,-1<e.indexOf(",")?i.thousandsSep:""))):t=v.dateFormat(e,t),t},v.format=function(e,t){for(var n,i,a,r,o,s="{",l=!1,u=[];e&&-1!==(s=e.indexOf(s));){if(n=e.slice(0,s),l){for(r=(i=(n=n.split(":")).shift().split(".")).length,o=t,a=0;a<r;a++)o=o[i[a]];n.length&&(o=v.formatSingle(n.join(":"),o)),u.push(o)}else u.push(n);e=e.slice(s+1),s=(l=!l)?"}":"{"}return u.push(e),u.join("")},v.getMagnitude=function(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))},v.normalizeTickInterval=function(e,t,n,i,a){var r=e,o=e/(n=v.pick(n,1));for(t||(t=a?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===i&&(1===n?t=v.grep(t,function(e){return 0==e%1}):n<=.1&&(t=[1/n]))),i=0;i<t.length&&(r=t[i],!(a&&e<=r*n||!a&&o<=(t[i]+(t[i+1]||t[i]))/2));i++);return v.correctFloat(r*n,-Math.round(Math.log(.001)/Math.LN10))},v.stableSort=function(e,n){for(var i,t=e.length,a=0;a<t;a++)e[a].safeI=a;for(e.sort(function(e,t){return 0===(i=n(e,t))?e.safeI-t.safeI:i}),a=0;a<t;a++)delete e[a].safeI},v.arrayMin=function(e){for(var t=e.length,n=e[0];t--;)e[t]<n&&(n=e[t]);return n},v.arrayMax=function(e){for(var t=e.length,n=e[0];t--;)e[t]>n&&(n=e[t]);return n},v.destroyObjectProperties=function(n,i){v.objectEach(n,function(e,t){e&&e!==i&&e.destroy&&e.destroy(),delete n[t]})},v.discardElement=function(e){var t=(t=v.garbageBin)||v.createElement("div");e&&t.appendChild(e),t.innerHTML=""},v.correctFloat=function(e,t){return parseFloat(e.toPrecision(t||14))},v.setAnimation=function(e,t){t.renderer.globalAnimation=v.pick(e,t.options.chart.animation,!0)},v.animObject=function(e){return v.isObject(e)?v.merge(e):{duration:e?500:0}},v.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},v.numberFormat=function(e,t,n,i){t=+t;var a,r,o=v.defaultOptions.lang,s=((e=+e||0).toString().split(".")[1]||"").split("e")[0].length,l=e.toString().split("e");return-1===t?t=Math.min(s,20):v.isNumber(t)||(t=2),r=(Math.abs(l[1]?l[0]:e)+Math.pow(10,-Math.max(t,s)-1)).toFixed(t),a=3<(s=String(v.pInt(r))).length?s.length%3:0,n=v.pick(n,o.decimalPoint),i=v.pick(i,o.thousandsSep),e=(e<0?"-":"")+(a?s.substr(0,a)+i:""),e+=s.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+i),t&&(e+=n+r.slice(-t)),l[1]&&(e+="e"+l[1]),e},Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)},v.getStyle=function(e,t,n){return"width"===t?Math.min(e.offsetWidth,e.scrollWidth)-v.getStyle(e,"padding-left")-v.getStyle(e,"padding-right"):"height"===t?Math.min(e.offsetHeight,e.scrollHeight)-v.getStyle(e,"padding-top")-v.getStyle(e,"padding-bottom"):(e=V.getComputedStyle(e,void 0))&&(e=e.getPropertyValue(t),v.pick(n,!0))?v.pInt(e):e},v.inArray=function(e,t){return t.indexOf?t.indexOf(e):[].indexOf.call(t,e)},v.grep=function(e,t){return[].filter.call(e,t)},v.find=function(e,t){return[].find.call(e,t)},v.map=function(e,t){for(var n=[],i=0,a=e.length;i<a;i++)n[i]=t.call(e[i],e[i],i,e);return n},v.offset=function(e){var t=j.documentElement;return{top:(e=e.getBoundingClientRect()).top+(V.pageYOffset||t.scrollTop)-(t.clientTop||0),left
1:e.left+(V.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}},v.stop=function(e,t){for(var n=F.length;n--;)F[n].elem!==e||t&&t!==F[n].prop||(F[n].stopped=!0)},v.each=function(e,t,n){return Array.prototype.forEach.call(e,t,n)},v.objectEach=function(e,t,n){for(var i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)},v.addEvent=function(t,e,n){function i(e){e.target=e.srcElement||V,n.call(t,e)}var a=t.hcEvents=t.hcEvents||{};return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&(t.hcEventsIE||(t.hcEventsIE={}),n.hcGetKey||(n.hcGetKey=v.uniqueKey()),t.hcEventsIE[n.hcGetKey]=i,t.attachEvent("on"+e,i)),a[e]||(a[e]=[]),a[e].push(n),function(){v.removeEvent(t,e,n)}},v.removeEvent=function(i,t,e){function a(e,t){i.removeEventListener?i.removeEventListener(e,t,!1):i.attachEvent&&(t=i.hcEventsIE[t.hcGetKey],i.detachEvent("on"+e,t))}function n(){var e,n;i.nodeName&&(t?(e={})[t]=!0:e=s,v.objectEach(e,function(e,t){if(s[t])for(n=s[t].length;n--;)a(t,s[t][n])}))}var r,o,s=i.hcEvents;s&&(t?(r=s[t]||[],e?(-1<(o=v.inArray(e,r))&&(r.splice(o,1),s[t]=r),a(t,e)):(n(),s[t]=[])):(n(),i.hcEvents={}))},v.fireEvent=function(e,t,n,i){var a,r,o=e.hcEvents;if(n=n||{},j.createEvent&&(e.dispatchEvent||e.fireEvent))(o=j.createEvent("Events")).initEvent(t,!0,!0),v.extend(o,n),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent(t,o);else if(o)for(a=(o=o[t]||[]).length,n.target||v.extend(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:t}),t=0;t<a;t++)(r=o[t])&&!1===r.call(e,n)&&n.preventDefault();i&&!n.defaultPrevented&&i(n)},v.animate=function(n,i,a){var r,o,s,e,l="";v.isObject(a)||(a={duration:(e=arguments)[2],easing:e[3],complete:e[4]}),v.isNumber(a.duration)||(a.duration=400),a.easing="function"==typeof a.easing?a.easing:Math[a.easing]||Math.easeInOutSine,a.curAnim=v.merge(i),v.objectEach(i,function(e,t){v.stop(n,t),s=new v.Fx(n,a,t),o=null,"d"===t?(s.paths=s.initPath(n,n.d,i.d),s.toD=i.d,r=0,o=1):n.attr?r=n.attr(t):(r=parseFloat(v.getStyle(n,t))||0,"opacity"!==t&&(l="px")),(
1o=o||e)&&o.match&&o.match("px")&&(o=o.replace(/px/g,"")),s.run(r,o,l)})},v.seriesType=function(e,t,n,i,a){var r=v.getOptions(),o=v.seriesTypes;return r.plotOptions[e]=v.merge(r.plotOptions[t],n),o[e]=v.extendClass(o[t]||function(){},i),o[e].prototype.type=e,a&&(o[e].prototype.pointClass=v.extendClass(v.Point,a)),o[e]},v.uniqueKey=($=Math.random().toString(36).substring(2,9),H=0,function(){return"highcharts-"+$+"-"+H++}),V.jQuery&&(V.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new v[v.isString(e[0])?e.shift():"Chart"](this[0],e[0],e[1]),this):N[v.attr(this[0],"data-highcharts-chart")]}),j&&!j.defaultView&&(v.getStyle=function(e,t){var n={width:"clientWidth",height:"clientHeight"}[t];return e.style[t]?v.pInt(e.style[t]):("opacity"===t&&(t="filter"),n?(e.style.zoom=1,Math.max(e[n]-2*v.getStyle(e,"padding"),0)):(e=e.currentStyle[t.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()})],""===(e="filter"===t?e.replace(/alpha\(opacity=([0-9]+)\)/,function(e,t){return t/100}):e)?1:v.pInt(e)))}),Array.prototype.forEach||(v.each=function(e,t,n){for(var i=0,a=e.length;i<a;i++)if(!1===t.call(n,e[i],i,e))return i}),Array.prototype.indexOf||(v.inArray=function(e,t){var n,i=0;if(t)for(n=t.length;i<n;i++)if(t[i]===e)return i;return-1}),Array.prototype.filter||(v.grep=function(e,t){for(var n=[],i=0,a=e.length;i<a;i++)t(e[i],i)&&n.push(e[i]);return n}),Array.prototype.find||(v.find=function(e,t){for(var n=e.length,i=0;i<n;i++)if(t(e[i],i))return e[i]}),U=(B=e).each,W=B.isNumber,Y=B.map,z=B.merge,G=B.pInt,B.Color=function(e){if(!(this instanceof B.Color))return new B.Color(e);this.init(e)},B.Color.prototype={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(e){return[G(e[1]),G(e[2]),G(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(e){return[G(e[1]),G(e[2]),G(e[3]),1]}}],names:{none:"rgba(255,255,255,0)",white:"#ffffff",black:"#000000"},init:function(e){var t,n,i,a;if((this.input=e=this.names[e&&e.toLowerCase?e.toLowerCase():""]||e)&&e.stops)this.stops=Y(e.stops,function(e){return new B.Color(e[1])});else if(e&&"#"===e.charAt()&&(t=e.length,e=parseInt(e.substr(1),16),7===t?n=[(16711680&e)>>16,(65280&e)>>8,255&e,1]:4===t&&(n=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])),!n)for(i=this.parsers.length;i--&&!n;)(t=(a=this.parsers[i]).regex.exec(e))&&(n=a.parse(t));this.rgba=n||[]},get:function(n){var i,e=this.input,t=this.rgba;return this.stops?((i=z(e)).stops=[].concat(i.stops),U(this.stops,function(e,t){i.stops[t]=[i.stops[t][0],e.get(n)]})):i=t&&W(t[0])?"rgb"===n||!n&&1===t[3]?"rgb("+t[0]+","+t[1]+","+t[2]+")":"a"===n?t[3]:"rgba("+t.join(",")+")":e,i},brighten:function(t){var e,n=this.rgba;if(this.stops)U(this.stops,function(e){e.brighten(t)});else if(W(t)&&0!==t)for(e=0;e<3;e++)n[e]+=G(255*t),n[e]<0&&(n[e]=0),255<n[e]&&(n[e]=255);return this},setOpacity:function(e){return this.rgba[3]=e,this},tweenTo:function(e,t){var n,i;return e=e.rgba.length?(n=this.rgba,((i=1!==(e=e.rgba)[3]||1!==n[3])?"rgba(":"rgb(")+Math.round(e[0]+(n[0]-e[0])*(1-t))+","+Math.round(e[1]+(n[1]-e[1])*(1-t))+","+Math.round(e[2]+(n[2]-e[2])*(1-t))+(i?","+(e[3]+(n[3]-e[3])*(1-t)):"")+")"):e.input||"none"}},B.color=function(e){return new B.Color(e)},q=(I=e).addEvent,X=I.animate,T=I.attr,K=I.charts,Z=I.color,J=I.css,Q=I.createElement,D=I.defined,ee=I.deg2rad,te=I.destroyObjectProperties,E=I.doc,ne=I.each,ie=I.extend,ae=I.erase,re=I.grep,oe=I.hasTouch,se=I.inArray,le=I.isArray,ue=I.isFirefox,ce=I.isMS,de=I.isObject,fe=I.isString,he=I.isWebKit,pe=I.merge,io=I.noop,me=I.objectEach,A=I.pick,ge=I.pInt,ve=I.removeEvent,_e=I.stop,ye=I.svg,be=I.SVG_NS,ke=I.symbolSizes,we=I.win,P=I.SVGElement=function(){return this},ie(P.prototype,{opacity:1,SVG_NS:be,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "),init:function(e,t){this.element="span"===t?Q(t):E.createElementNS(this.SVG_NS,t),this.renderer=e},animate:function(e,t,n){return 0!==(t=I.animObject(A(t,this.renderer.globalAnimation,!0))).duration?(n&&(t.complete=n),X(this,e,t)):(this.attr(e,null,n),t.step&&t.step.call(this)),this},colorGradient:function(e,t,n){var i,a,r,o,s,l,u,c,d,f,h=this.renderer,p=[];e.radialGradient?i="radialGradient":e.linearGradient&&(i="linearGradient"),i&&(a=e[i],o=h.gradients,l=e.stops,d=n.radialReference,le(a)&&
1(e[i]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===i&&d&&!D(a.gradientUnits)&&(a=pe(r=a,h.getRadialAttr(d,r),{gradientUnits:"userSpaceOnUse"})),me(a,function(e,t){"id"!==t&&p.push(t,e)}),me(l,function(e){p.push(e)}),o[p=p.join(",")]?d=o[p].attr("id"):(a.id=d=I.uniqueKey(),o[p]=s=h.createElement(i).attr(a).add(h.defs),s.radAttr=r,s.stops=[],ne(l,function(e){c=0===e[1].indexOf("rgba")?(c=I.color(e[1]),u=c.get("rgb"),c.get("a")):(u=e[1],1),e=h.createElement("stop").attr({offset:e[0],"stop-color":u,"stop-opacity":c}).add(s),s.stops.push(e)})),f="url("+h.url+"#"+d+")",n.setAttribute(t,f),n.gradient=p,e.toString=function(){return f})},applyTextOutline:function(e){var t,n,i,a,r,o=this.element;if(e=(e=-1!==e.indexOf("contrast")?e.replace(/contrast/g,this.renderer.getContrast(o.style.fill)):e).split(" "),n=e[e.length-1],(i=e[0])&&"none"!==i&&I.svg){for(this.fakeTS=!0,e=[].slice.call(o.getElementsByTagName("tspan")),this.ySetter=this.xSetter,i=i.replace(/(^[\d\.]+)(.*?)$/g,function(e,t,n){return 2*t+n}),r=e.length;r--;)"highcharts-text-outline"===(t=e[r]).getAttribute("class")&&ae(e,o.removeChild(t));a=o.firstChild,ne(e,function(e,t){0===t&&(e.setAttribute("x",o.getAttribute("x")),t=o.getAttribute("y"),e.setAttribute("y",t||0),null===t)&&o.setAttribute("y",0),e=e.cloneNode(1),T(e,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":i,"stroke-linejoin":"round"}),o.insertBefore(e,a)})}},attr:function(n,e,t,i){var a,r,o,s=this.element,l=this;return"string"==typeof n&&void 0!==e&&(a=n,(n={})[a]=e),"string"==typeof n?l=(this[n+"Getter"]||this._defaultGetter).call(this,n,s):(me(n,function(e,t){o=!1,i||_e(this,t),this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(t)&&(r||(this.symbolAttr(n),r=!0),o=!0),!this.rotation||"x"!==t&&"y"!==t||(this.doTransform=!0),o||((o=this[t+"Setter"]||this._defaultSetter).call(this,e,t,s),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(t)&&this.updateShadows(t,e,o))},this),this.afterSetters()),t&&t(),l},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(e,t,n){for(var i=this.shadows,a=i.length;a--;)n.call(i[a],"height"===e?Math.max(t-(i[a].cutHeight||0),0):"d"===e?this.d:t,e,i[a])},addClass:function(e,t){var n=this.attr("class")||"";return-1===n.indexOf(e)&&(t||(e=(n+(n?" ":"")+e).replace(" "," ")),this.attr("class",e)),this},hasClass:function(e){return-1!==se(e,(this.attr("class")||"").split(" "))},removeClass:function(e){return this.attr("class",(this.attr("class")||"").replace(e,""))},symbolAttr:function(t){var n=this;ne("x y r start end width height innerR anchorX anchorY".split(" "),function(e){n[e]=A(t[e],n[e])}),n.attr({d:n.renderer.symbols[n.symbolName](n.x,n.y,n.width,n.height,n)})},clip:function(e){return this.attr("clip-path",e?"url("+this.renderer.url+"#"+e.id+")":"none")},crisp:function(e,t){var n,i=this,a={};return t=t||e.strokeWidth||0,n=Math.round(t)%2/2,e.x=Math.floor(e.x||i.x||0)+n,e.y=Math.floor(e.y||i.y||0)+n,e.width=Math.floor((e.width||i.width||0)-2*n),e.height=Math.floor((e.height||i.height||0)-2*n),D(e.strokeWidth)&&(e.strokeWidth=t),me(e,function(e,t){i[t]!==e&&(i[t]=a[t]=e)}),a},css:function(e){var t,n,i=this.styles,a={},r=this.element,o="",s=!i,l=["textOutline","textOverflow","width"];return e&&e.color&&(e.fill=e.color),i&&me(e,function(e,t){e!==i[t]&&(a[t]=e,s=!0)}),s&&(i&&(e=ie(i,a)),t=this.textWidth=e&&e.width&&"auto"!==e.width&&"text"===r.nodeName.toLowerCase()&&ge(e.width),this.styles=e,t&&!ye&&this.renderer.forExport&&delete e.width,ce&&!ye?J(this.element,e):(n=function(e,t){return"-"+t.toLowerCase()},me(e,function(e,t){-1===se(t,l)&&(o+=t.replace(/([A-Z])/g,n)+":"+e+";")}),o&&T(r,"style",o)),this.added)&&("text"===this.element.nodeName&&this.renderer.buildText(this),e)&&e.textOutline&&this.applyTextOutline(e.textOutline),this},strokeWidth:function(){return this["stroke-width"]||0},on:function(e,t){var n=this,i=n.element;return oe&&"click"===e?(i.ontouchstart=function(e){n.touchEventFired=Date.now(),e.preventDefault(),t.call(i,e)},i.onclick=function(e){(-1===we.navigator.userAgent.indexOf("Android")||1100<Date.now()-(n.touchEventFired||0))&&t.call(i,e)}):i["on"+e]=t,this},setRadialReference:function(e){var t=this.renderer.gradients[this.element.gradient];return this.element.radialReference=e,t&&t.radAttr&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this},translate:function(e,t){return this.attr({translateX:e,translateY:t})},invert:function(e){return this.inverted=e,this.updateTransform(),this},updateTransform:function(){var e=this.translateX||0,t=this.translateY||0,n=this.scaleX,i=this.scaleY,a=this.inverted,r=this.rotation,o=this.element;a&&(e+=this.width,t+=this.height),e=["translate("+e+","+t+")"],a?e.push("rotate(90) scale(-1,1)"):r&&e.push("rotate("+r+" "+(o.getAttribute("x")||0)+" "+(o.getAttribute("y")||0)+")"),(D(n)||D(i))&&e.push("scale("+A(n,1)+" "+A(i,1)+")"),e.length&&o.setAttribute("transform",e.join(" "))},toFront:function(){var e=this.element;return e.parentNode.appendChild(e),this},align:function(e,t,n){var i,a,r,o,s={},l=this.renderer,u=l.alignedObjects;return e?(this.alignOptions=e,this.alignByTranslate=t,n&&!fe(n)||(this.alignTo=i=n||"renderer",ae(u,this),u.push(this),n=null)):(e=this.alignOptions,t=this.alignByTranslate,i=this.alignTo),n=A(n,l[i],l),i=e.align,l=e.verticalAlign,u=(n.x||0)+(e.x||0),a=(n.y||0)+(e.y||0),"right"===i?r=1:"center"===i&&(r=2),r&&(u+=(n.width-(e.width||0))/r),s[t?"translateX":"x"]=Math.round(u),"bottom"===l?o=1:"middle"===l&&(o=2),o&&(a+=(n.height-(e.height||0))/o),s[t?"translateY":"y"]=Math.round(a),this[this.placed?"animate":"attr"](s),this.placed=!0,this.alignAttr=s,this},getBBox:function(e,t){var n,i,a,r=this.renderer,o=this.element,s=this.styles,l=this.textStr,u=r.cache,c=r.cacheKeys,d=(t=A(t,this.rotation))*ee,f=s&&s.fontSize;if(void 0!==l&&(-1===(a=l.toString()).indexOf("<")&&(a=a.replace(/[0-9]/g,"0")),a+=["",t||0,f,s&&s.width,s&&s.textOverflow].join()),!(n=a&&!e?u[a]:n)){if(o.namespaceURI===this.SVG_NS||r.forExport){try{(i=this.fakeTS&&function(t){ne(o.querySelectorAll(".highcharts-text-outline"),function(e){e.style.display=t})})&&i("none"),n=o.getBBox?ie({},o.getBBox()):{width:o.offsetWidth,height:o.offsetHeight},i&&i("")}catch(e){}(!n||n.width<0)&&(n={width:0,height:0})}else n=this.htmlGetBBox();if(r.isSVG&&(e=n.width,r=n.height,s&&"11px"===s.fontSize&&17===Math.round(r)&&(n.height=r=14),t)&&(n.width=Math.abs(r*Math.sin(d))+Math.abs(e*Math.cos(d)),n.height=Math.abs(r*Math.cos(d))+Math.abs(e*Math.sin(d))),a&&0<n.height){for(;250<c.length;)delete u[c.shift()];u[a]||c.push(a),u[a]=n}}return n},show:function(e){return this.attr({visibility:e?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(e){var t=this;t.animate({opacity:0}
1,{duration:e||150,complete:function(){t.attr({y:-9999})}})},add:function(e){var t,n=this.renderer,i=this.element;return e&&(this.parentGroup=e),this.parentInverted=e&&e.inverted,void 0!==this.textStr&&n.buildText(this),this.added=!0,(t=e&&!e.handleZ&&!this.zIndex?t:this.zIndexSetter())||(e?e.element:n.box).appendChild(i),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(e){var t=e.parentNode;t&&t.removeChild(e)},destroy:function(){var n=this,e=n.element||{},t=n.renderer.isSVG&&"SPAN"===e.nodeName&&n.parentGroup,i=e.ownerSVGElement;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,_e(n),n.clipPath&&i&&(ne(i.querySelectorAll("[clip-path]"),function(e){-1<e.getAttribute("clip-path").indexOf(n.clipPath.element.id+")")&&e.removeAttribute("clip-path")}),n.clipPath=n.clipPath.destroy()),n.stops){for(i=0;i<n.stops.length;i++)n.stops[i]=n.stops[i].destroy();n.stops=null}for(n.safeRemoveChild(e),n.destroyShadows();t&&t.div&&0===t.div.childNodes.length;)e=t.parentGroup,n.safeRemoveChild(t.div),delete t.div,t=e;return n.alignTo&&ae(n.renderer.alignedObjects,n),me(n,function(e,t){delete n[t]}),null},shadow:function(e,t,n){var i,a,r,o,s,l,u=[],c=this.element;if(e){if(!this.shadows){for(o=A(e.width,3),s=(e.opacity||.15)/o,l=this.parentInverted?"(-1,-1)":"("+A(e.offsetX,1)+", "+A(e.offsetY,1)+")",i=1;i<=o;i++)a=c.cloneNode(0),T(a,{isShadow:"true",stroke:e.color||"#000000","stroke-opacity":s*i,"stroke-width":r=2*o+1-2*i,transform:"translate"+l,fill:"none"}),n&&(T(a,"height",Math.max(T(a,"height")-r,0)),a.cutHeight=r),t?t.element.appendChild(a):c.parentNode.insertBefore(a,c),u.push(a);this.shadows=u}}else this.destroyShadows();return this},destroyShadows:function(){ne(this.shadows||[],function(e){this.safeRemoveChild(e)},this),this.shadows=void 0},xGetter:function(e){return"circle"===this.element.nodeName&&("x"===e?e="cx":"y"===e&&(e="cy")),this._defaultGetter(e)},_defaultGetter:function(e){return e=A(this[e],this.element?this.element.getAttribute(e):null,0),e=/^[\-0-9\.]+$/.test(e)?parseFloat(e):e},dSetter:function(e,t,n){e&&e.join&&(e=e.join(" ")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0"),this[t]!==e&&(n.setAttribute(t,e),this[t]=e)},dashstyleSetter:function(e){var t,n=this["stroke-width"];if("inherit"===n&&(n=1),e=e&&e.toLowerCase()){for(t=(e=e.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(",")).length;t--;)e[t]=ge(e[t])*n;e=e.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}},alignSetter:function(e){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[e])},opacitySetter:function(e,t,n){this[t]=e,n.setAttribute(t,e)},titleSetter:function(e){var t=this.element.getElementsByTagName("title")[0];t||(t=E.createElementNS(this.SVG_NS,"title"),this.element.appendChild(t)),t.firstChild&&t.removeChild(t.firstChild),t.appendChild(E.createTextNode(String(A(e),"").replace(/<[^>]*>/g,"")))},textSetter:function(e){e!==this.textStr&&(delete this.bBox,this.textStr=e,this.added)&&this.renderer.buildText(this)},fillSetter:function(e,t,n){"string"==typeof e?n.setAttribute(t,e):e&&this.colorGradient(e,t,n)},visibilitySetter:function(e,t,n){"inherit"===e?n.removeAttribute(t):this[t]!==e&&n.setAttribute(t,e),this[t]=e},zIndexSetter:function(e,t){var n,i,a=this.renderer,r=this.parentGroup,o=(r||a).element||a.box,s=this.element,l=this.added;if(D(e)&&(s.zIndex=e,this[t]===(e=+e)&&(l=!1),this[t]=e),l){for((e=this.zIndex)&&r&&(r.handleZ=!0),t=o.childNodes,i=0;i<t.length&&!n;i++)l=(r=t[i]).zIndex,r!==s&&(ge(l)>e||!D(e)&&D(l)||e<0&&!D(l)&&o!==a.box)&&(o.insertBefore(s,r),n=!0);n||o.appendChild(s)}return n},_defaultSetter:function(e,t,n){n.setAttribute(t,e)}}),P.prototype.yGetter=P.prototype.xGetter,P.prototype.translateXSetter=P.prototype.translateYSetter=P.prototype.rotationSetter=P.prototype.verticalAlignSetter=P.prototype.scaleXSetter=P.prototype.scaleYSetter=function(e,t){this[t]=e,this.doTransform=!0},P.prototype["stroke-widthSetter"]=P.prototype.strokeSetter=function(e,t,n){this[t]=e,this.stroke&&this["stroke-width"]?(P.prototype.fillSetter.call(this,this.stroke,"stroke",n),n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===t&&0===e&&this.hasStroke&&(n.removeAttribute("stroke"),this.hasStroke=!1)},c=I.SVGRenderer=function(){this.init.apply(this,arguments)},ie(c.prototype,{Element:P,SVG_NS:be,init:function(e,t,n,i,a,r){var o,s=(i=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}).css(this.getStyle(i))).element;e.appendChild(s),-1===e.innerHTML.indexOf("xmlns")&&T(s,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=s,this.boxWrapper=i,this.alignedObjects=[],this.url=(ue||he)&&E.getElementsByTagName("base").length?we.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(E.createTextNode("Created with Highcharts 5.0.14")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(t,n,!1),ue&&e.getBoundingClientRect&&((t=function(){J(e,{left
1:0,top:0}),o=e.getBoundingClientRect(),J(e,{left:Math.ceil(o.left)-o.left+"px",top:Math.ceil(o.top)-o.top+"px"})})(),this.unSubPixelFix=q(we,"resize",t))},getStyle:function(e){return this.style=ie({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},e)},setStyle:function(e){this.boxWrapper.css(this.getStyle(e))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),te(this.gradients||{}),this.gradients=null,e&&(this.defs=e.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(e){var t=new this.Element;return t.init(this,e),t},draw:io,getRadialAttr:function(e,t){return{cx:e[0]-e[2]/2+t.cx*e[2],cy:e[1]-e[2]/2+t.cy*e[2],r:t.r*e[2]}},getSpanWidth:function(e,t){var n=e.getBBox(!0).width;return n=!ye&&this.forExport?this.measureSpanWidth(t.firstChild.data,e.styles):n},applyEllipsis:function(e,t,n,i){function a(e){t.removeChild(t.firstChild),e&&t.appendChild(E.createTextNode(e))}var r,o,s,l=e.rotation,u=0,c=n.length;if(e.rotation=0,s=i<this.getSpanWidth(e,t)){for(;u<=c;)o=Math.ceil((u+c)/2),a(n.substring(0,o)+"â¦"),r=this.getSpanWidth(e,t),u===c?u=c+1:i<r?c=o-1:u=o;0===c&&a("")}return e.rotation=l,s},buildText:function(f){function h(e){var t=/(px|em)$/.test(e&&e.style.fontSize)?e.style.fontSize:o||b.style.fontSize||12;return a?ge(a):b.fontMetrics(t,e.getAttribute("style")?e:y).h}var p,m,g,v,_,y=f.element,b=this,k=b.forExport,e=A(f.textStr,"").toString(),t=-1!==e.indexOf("<"),n=y.childNodes,w=T(y,"x"),i=f.styles,S=f.textWidth,a=i&&i.lineHeight,r=i&&i.textOutline,x=i&&"ellipsis"===i.textOverflow,C=i&&"nowrap"===i.whiteSpace,o=i&&i.fontSize,s=n.length,i=S&&!f.added&&this.box,l=[e,x,C,a,r,o,S].join();if(l!==f.textCache){for(f.textCache=l;s--;)y.removeChild(n[s]);t||r||x||S||-1!==e.indexOf(" ")?(p=/<.*class="([^"]+)".*>/,m=/<.*style="([^"]+)".*>/,g=/<.*href="([^"]+)".*>/,i&&i.appendChild(y),e=t?e.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g):[e],e=re(e,function(e){return""!==e}),ne(e,function(e,u){var c,d=0;e=e.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||"),c=e.split("|||"),ne(c,function(e){if(""!==e||1===c.length){var t,n={},i=E.createElementNS(b.SVG_NS,"tspan");if(p.test(e)&&(r=e.match(p)[1],T(i,"class",r)),m.test(e)&&(t=e.match(m)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),T(i,"style",t)),g.test(e)&&!k&&(T(i,"onclick",'location.href="'+e.match(g)[1]+'"'),J(i,{cursor:"pointer"}))," "!==(e=(e.replace(/<(.|\n)*?>/g,"")||" ").replace(/</g,"<").replace(/>/g,">"))){if(i.appendChild(E.createTextNode(e)),d?n.dx=0:u&&null!==w&&(n.x=w),T(i,n),y.appendChild(i),!d&&_&&(!ye&&k&&J(i,{display:"block"}),T(i,"dy",h(i))),S){var a,n=e.replace(/([^\^])-/g,"$1- ").split(" "),r=1<c.length||u||1<n.length&&!C,o=[],s=h(i),l=f.rotation;for(x&&(v=b.applyEllipsis(f,i,e,S));!x&&r&&(n.length||o.length);)f.rotation=0,a=b.getSpanWidth(f,i),e=S<a,void 0===v&&(v=e),e&&1!==n.length?(i.removeChild(i.firstChild),o.unshift(n.pop())):(n=o,o=[],n.length&&!C&&(i=E.createElementNS(be,"tspan"),T(i,{dy:s,x:w}),t&&T(i,"style",t),y.appendChild(i)),S<a&&(S=a)),n.length&&i.appendChild(E.createTextNode(n.join(" ").replace(/- /g,"-")));f.rotation=l}d++}}}),_=_||y.childNodes.length}),v&&f.attr("title",f.textStr),i&&i.removeChild(y),r&&f.applyTextOutline&&f.applyTextOutline(r)):y.appendChild(E.createTextNode(e.replace(/</g,"<").replace(/>/g,">")))}},getContrast:function(e){return 510<(e=Z(e).rgba)[0]+e[1]+e[2]?"#000000":"#FFFFFF"},button:function(e,t,n,i,a,r,o,s,l){var u,c,d,f,h=this.label(e,t,n,l,null,null,null,null,"button"),p=0;return h.attr(pe({padding:8,r:2},a)),a=pe({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},a),u=a.style,delete a.style,r=pe(a,{fill:"#e6e6e6"},r),c=r.style,delete r.style,o=pe(a,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},o),d=o.style,delete o.style,s=pe(a,{style:{color:"#cccccc"}},s),f=s.style,delete s.style,q(h.element,ce?"mouseover":"mouseenter",function(){3!==p&&h.setState(1)}),q(h.element,ce?"mouseout":"mouseleave",function(){3!==p&&h.setState(p)}),h.setState=function(e){1!==e&&(h.state=p=e),h.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][e||0]),h.attr([a,r,o,s][e||0]).css([u,c,d,f][e||0])},h.attr(a).css(ie({cursor:"default"},u)),h.on("click",function(e){3!==p&&i.call(h,e)})},crispLine:function(e,t){return e[1]===e[4]&&(e[1]=e[4]=Math.round(e[1])-t%2/2),e[2]===e[5]&&(e[2]=e[5]=Math.round(e[2])+t%2/2),e},path:function(e){var t={fill:"none"};return le(e)?t.d=e:de(e)&&ie(t,e),this.createElement("path").attr(t)},circle:function(e,t,n){return e=de(e)?e:{x:e,y:t,r:n},(t=this.createElement("circle")).xSetter=t.ySetter=function(e,t,n){n.setAttribute("c"+t,e)},t.attr(e)},arc:function(e,t,n,i,a,r){return de(e)?(t=(i=e).y,n=i.r,e=i.x):i={innerR:i,start:a,end:r},(e=this.symbol("arc",e,t,n,n,i)).r=n,e},rect:function(e,t,n,i,a,r){a=de(e)?e.r:a;var o=this.createElement("rect");return e=de(e)?e:void 0===e?{}:{x:e,y:t,width:Math.max(n,0),height:Math.max(i,0)},void 0!==r&&(e.strokeWidth=r,e=o.crisp(e)),e.fill="none",a&&(e.r=a),o.rSetter=function(e,t,n){T(n,{rx:e,ry:e})},o.attr(e)},setSize:function(e,t,n){var i=this.alignedObjects,a=i.length;for(this.width=e,this.height=t,this.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:A(n,!0)?void 0:0});a--;)i[a].align()},g:function(e){var t=this.createElement("g");return e?t.attr({class:"highcharts-"+e}):t},image:function(e,t,n,i,a){var r={preserveAspectRatio:"none"};return 1<arguments.length&&ie(r,{x:t,y:n,width:i,height:a}),(r=this.createElement("image").attr(r)).element.setAttributeNS?r.element.setAttributeNS("http://www.w3.org/1999/xlink","href",e):r.element.setAttribute("hc-svg-href",e),r},symbol:function(e,t,n,i,a,r){var o,s,l,u=this,c=/^url\((.*?)\)$/,d=c.test(e),f=!d&&(this.symbols[e]?e:"circle"),h=f&&this.symbols[f],p=D(t)&&h&&h.call(this.symbols,Math.round(t),Math.round(n),i,a,r);return h?((o=this.path(p)).attr("fill","none"),ie(o,{symbolName:f,x:t,y:n,width:i,height:a}),r&&ie(o,r)):d&&(s=e.match(c)[1],(o=this.image(s)).imgwidth=A(ke[s]&&ke[s].width,r&&r.width),o.imgheight=A(ke[s]&&ke[s].height,r&&r.height),l=function(){o.attr({width:o.width,height:o.height})},ne(["width","height"],function(e){o[e+"Setter"]=function(e,t){var n={},i=this["img"+t],a="width"===t?"translateX":"translateY";this[t]=e,D(i)&&(this.element&&this.element.setAttribute(t,i),this.alignByTranslate||(n[a]=((this[t]||0)-i)/2,this.attr(n)))}}),D(t)&&o.attr({x:t,y:n}),o.isImg=!0,D(o.imgwidth)&&D(o.imgheight)?l():(o.attr({width:0,height:0}),Q("img",{onload:function(){var e=K[u.chartIndex];0===this.width&&(J(this,{position:"absolute",top:"-999em"}),E.body.appendChild(this)),ke[s]={width:this.width,height:this.height},o.imgwidth=this.width,o.imgheight=this.height,o.element&&l(),this.parentNode&&this.parentNode.removeChild(this),u.imgCount--,!u.imgCount&&e&&e.onload&&e.onload()},src:s}),this.imgCount++)),o},symbols:{circle:function(e,t,n,i){return this.arc(e+n/2,t+i/2,n/2,i/2,{start:0,end:2*Math.PI,open:!1})},square:function(e,t,n,i){return["M",e,t,"L",e+n,t,e+n,t+i,e,t+i,"Z"]},triangle:function(e,t,n,i){return["M",e+n/2,t,"L",e+n,t+i,e,t+i,"Z"]},"triangle-down":function(e,t,n,i){return["M",e,t,"L",e+n,t,e+n/2,t+i,"Z"]},diamond:function(e,t,n,i){return["M",e+n/2,t,"L",e+n,t+i/2,e+n/2,t+i,e,t+i/2,"Z"]},arc:function(e,t,n,i,a){var r=a.start,o=a.r||n,s=a.r||i||n,l=a.end-.001,u=(n=a.innerR,i=A(a.open,Math.abs(a.end-a.start-2*Math.PI)<.001),Math.cos(r)),c=Math.sin(r),d=Math.cos(l),l=Math.sin(l),o=["M",e+o*u,t+s*c,"A",o,s,0,a=a.end-r-Math.PI<.001?0:1,1,e+o*d,t+s*l];return D(n)&&o.push(i?"M":"L",e+n*d,t+n*l,"A",n,n,0,a,0,e+n*u,t+n*c),o.push(i?"":"Z"),o},callout:function(e,t,n,i,a){var r,o=Math.min(a&&a.r||0,n,i),s=o+6,l=a&&a.anchorX;return a=a&&a.anchorY,r=["M",e+o,t,"L",e+n-o,t,"C",e+n,t,e+n,t,e+n,t+o,"L",e+n,t+i-o,"C",e+n,t+i,e+n,t+i,e+n-o,t+i,"L",e+o,t+i,"C",e,t+i,e,t+i,e,t+i-o,"L",e,t+o,"C",e,t,e,t,e+o,t],l&&n<l?t+s<a&&a<t+i-s?r.splice(13,3,"L",e+n,a-6,e+n+6,a,e+n,a+6,e+n,t+i-o):r.splice(13,3,"L",e+n,i/2,l,a,e+n,i/2,e+n,t+i-o):l&&l<0?t+s<a&&a<t+i-s?r.splice(33,3,"L",e,a+6,e-6,a,e,a-6,e,t+o):r.splice(33,3,"L",e,i/2,l,a,e,i/2,e,t+o):a&&i<a&&e+s<l&&l<e+n-s?r.splice(23,3,"L",l+6,t+i,l,t+i+6,l-6,t+i,e+o,t+i):a&&a<0&&e+s<l&&l<e+n-s&&r.splice(3,3,"L",l-6,t,l,t-6,l+6,t,n-o,t),r}},clipRect:function(e,t,n,i){var a=I.uniqueKey(),r=this.createElement("clipPath").attr({id:a}).add(this.defs);return(e=this.rect(e,t,n,i,0).add(r)).id=a,e.clipPath=r,e.count=0,e},text:function(e,t,n,i){var a=!ye&&this.forExport,r={};return!i||!this.allowHTML&&this.forExport?(r.x=Math.round(t||0),n&&(r.y=Math.round(n)),!e&&0!==e||(r.text=e),e=this.createElement("text").attr(r),a&&e.css({position:"absolute"}),i||(e.xSetter=function(e,t,n){for(var i,a=n.getElementsByTagName("tspan"),r=n.getAttribute(t),o=0;o<a.length;o++)(i=a[o]).getAttribute(t)===r&&i.setAttribute(t,e);n.setAttribute(t,e)}),e):this.html(e,t,n)},fontMetrics:function(e,t){return e=e||t&&t.style&&t.style.fontSize||this.style&&this.style.fontSize,{h:t=(e=/px/.test(e)?ge(e):/em/.test(e)?parseFloat(e)*(t?this.fontMetrics(null,t.parentNode).f:16):12)<24?e+3:Math.round(1.2*e),b:Math.round(.8*t),f:e}},rotCorr:function(e,t,n){var i=e;return t&&n&&(i=Math.max(i*Math.cos(t*ee),4)),{x:-e/3*Math.sin(t*ee),y:i}},label:function(e,t,n,i,a,r,o,s,l){var u,c,d,f,h,p,m,g,v,_,y,b,k,w=this,S=w.g("button"!==l&&"label"),x=S.text=w.text("",0,0,o).attr({zIndex:1}),C=0,T=3,E=0,A={},O=/^url\((.*?)\)$/.test(i),M=O,L=(l&&S.addClass("highcharts-"+l),M=O,_=function(){return(g||0)%2/2},y=function(){var e=x.element.style,t={};c=(void 0===d||void 0===f||m)&&D(x.textStr)&&x.getBBox(),S.width=(d||c.width||0)+2*T+E,S.height=(f||c.height||0)+2*T,v=T+w.fontMetrics(e&&e.fontSize,x).b,M&&(u||(S.box=u
1=w.symbols[i]||O?w.symbol(i):w.rect(),u.addClass(("button"===l?"":"highcharts-label-box")+(l?" highcharts-"+l+"-box":"")),u.add(S),e=_(),t.x=e,t.y=(s?-v:0)+e),t.width=Math.round(S.width),t.height=Math.round(S.height),u.attr(ie(t,A)),A={})},b=function(){var e=E+T,t=s?0:v;D(d)&&c&&("center"===m||"right"===m)&&(e+={center:.5,right:1}[m]*(d-c.width)),e===x.x&&t===x.y||(x.attr("x",e),void 0!==t&&x.attr("y",t)),x.x=e,x.y=t},k=function(e,t){u?u.attr(e,t):A[e]=t},S.onAdd=function(){x.add(S),S.attr({text:e||0===e?e:"",x:t,y:n}),u&&D(a)&&S.attr({anchorX:a,anchorY:r})},S.widthSetter=function(e){d=I.isNumber(e)?e:null},S.heightSetter=function(e){f=e},S["text-alignSetter"]=function(e){m=e},S.paddingSetter=function(e){D(e)&&e!==T&&(T=S.padding=e,b())},S.paddingLeftSetter=function(e){D(e)&&e!==E&&(E=e,b())},S.alignSetter=function(e){(e={left:0,center:.5,right:1}[e])!==C&&(C=e,c)&&S.attr({x:h})},S.textSetter=function(e){void 0!==e&&x.textSetter(e),y(),b()},S["stroke-widthSetter"]=function(e,t){e&&(M=!0),g=this["stroke-width"]=e,k(t,e)},S.strokeSetter=S.fillSetter=S.rSetter=function(e,t){"r"!==t&&("fill"===t&&e&&(M=!0),S[t]=e),k(t,e)},S.anchorXSetter=function(e,t){a=S.anchorX=e,k(t,Math.round(e)-_()-h)},S.anchorYSetter=function(e,t){r=S.anchorY=e,k(t,e-p)},S.xSetter=function(e){S.x=e,C&&(e-=C*((d||c.width)+2*T)),h=Math.round(e),S.attr("translateX",h)},S.ySetter=function(e){p=S.y=Math.round(e),S.attr("translateY",p)},S.css);return ie(S,{css:function(t){var n;return t&&(n={},t=pe(t),ne(S.textProps,function(e){void 0!==t[e]&&(n[e]=t[e],delete t[e])}),x.css(n)),L.call(S,t)},getBBox:function(){return{width:c.width+2*T,height:c.height+2*T,x:c.x-T,y:c.y-T}},shadow:function(e){return e&&(y(),u)&&u.shadow(e),S},destroy:function(){ve(S.element,"mouseenter"),ve(S.element,"mouseleave"),x=x&&x.destroy(),u=u&&u.destroy(),P.prototype.destroy.call(S),S=w=y=b=k=null}})}}),I.Renderer=c,Se=e.attr,xe=e.createElement,Ce=e.css,Te=e.defined,Ee=e.each,Ae=e.extend,Oe=e.isFirefox,Me=e.isMS,Le=e.isWebKit,Ie=e.pInt,l=e.SVGRenderer,De=e.win,Pe=e.wrap,Ae(e.SVGElement.prototype,{htmlCss:function(e){var t=this.element;return(t=e&&"SPAN"===t.tagName&&e.width)&&(delete e.width,this.textWidth=t,this.updateTransform()),e&&"ellipsis"===e.textOverflow&&(e.whiteSpace="nowrap",e.overflow="hidden"),this.styles=Ae(this.styles,e),Ce(this.element,e),this},htmlGetBBox:function(){var e=this.element;return"text"===e.nodeName&&(e.style.position="absolute"),{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}},htmlUpdateTransform:function(){var t,n,i,a,e,r,o,s,l,u,c,d,f;this.added?(t=this.renderer,n=this.element,i=this.translateX||0,a=this.translateY||0,e=this.x||0,r=this.y||0,s={left:0,center:.5,right:1}[o=this.textAlign||"left"],l=this.styles,Ce(n,{marginLeft:i,marginTop:a}),this.shadows&&Ee(this.shadows,function(e){Ce(e,{marginLeft:i+1,marginTop:a+1})}),this.inverted&&Ee(n.childNodes,function(e){t.invertChild(e,n)}),"SPAN"===n.tagName&&(u=this.rotation,c=Ie(this.textWidth),d=l&&l.whiteSpace,(f=[u,o,n.innerHTML,this.textWidth,this.textAlign].join())!==this.cTT&&(l=t.fontMetrics(n.style.fontSize).b,Te(u)&&this.setSpanRotation(u,s,l),Ce(n,{width:"",whiteSpace:d||"nowrap"}),n.offsetWidth>c&&/[ \-]/.test(n.textContent||n.innerText)&&Ce(n,{width:c+"px",display:"block",whiteSpace:d||"normal"}
1),this.getSpanCorrection(n.offsetWidth,l,s,u,o)),Ce(n,{left:e+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),Le&&(l=n.offsetHeight),this.cTT=f)):this.alignOnAdd=!0},setSpanRotation:function(e,t,n){var i={},a=Me?"-ms-transform":Le?"-webkit-transform":Oe?"MozTransform":De.opera?"-o-transform":"";i[a]=i.transform="rotate("+e+"deg)",i[a+(Oe?"Origin":"-origin")]=i.transformOrigin=100*t+"% "+n+"px",Ce(this.element,i)},getSpanCorrection:function(e,t,n){this.xCorr=-e*n,this.yCorr=-t}}),Ae(l.prototype,{html:function(e,t,n){function o(t,a){Ee(["opacity","visibility"],function(e){Pe(t,e+"Setter",function(e,t,n,i){e.call(this,t,n,i),a[n]=t})})}var s=this.createElement("span"),i=s.element,l=s.renderer,a=l.isSVG;return s.textSetter=function(e){e!==i.innerHTML&&delete this.bBox,i.innerHTML=this.textStr=e,s.htmlUpdateTransform()},a&&o(s,s.element.style),s.xSetter=s.ySetter=s.alignSetter=s.rotationSetter=function(e,t){s[t="align"===t?"textAlign":t]=e,s.htmlUpdateTransform()},s.attr({text:e,x:Math.round(t),y:Math.round(n)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:"absolute"}),i.style.whiteSpace="nowrap",s.css=s.htmlCss,a&&(s.add=function(e){var t,a=l.box.parentNode,r=[];if(this.parentGroup=e){if(!(t=e.div)){for(;e;)r.push(e),e=e.parentGroup;Ee(r.reverse(),function(n){var i,e=(e=Se(n.element,"class"))&&{className:e};t=n.div=n.div||xe("div",e,{position:"absolute",left:(n.translateX||0)+"px",top:(n.translateY||0)+"px",display:n.display,opacity:n.opacity,pointerEvents:n.styles&&n.styles.pointerEvents},t||a),i=t.style,Ae(n,{classSetter:function(e){this.element.setAttribute("class",e),t.className=e},on:function(){return r[0].div&&s.on.apply({element:r[0].div},arguments),n},translateXSetter:function(e,t){i.left=e+"px",n[t]=e,n.doTransform=!0},translateYSetter:function(e,t){i.top=e+"px",n[t]=e,n.doTransform=!0}}),o(n,i)})}}else t=a;return t.appendChild(i),s.added=!0,s.alignOnAdd&&s.htmlUpdateTransform(),s}),s}}),Re=(O=e).createElement,$e=O.css,He=O.defined,Fe=O.deg2rad,Ne=O.discardElement,je=O.doc,Ve=O.each,Be=O.erase,Ue=O.extend,o=O.extendClass,We=O.isArray,Ye=O.isNumber,ze=O.isObject,f=O.merge,d=O.noop,Ge=O.pick,qe=O.pInt,Xe=O.SVGElement,Ke=O.SVGRenderer,Ze=O.win,O.svg||((d={docMode8:je&&8===je.documentMode,init:function(e,t){var n=["<",t,' filled="f" stroked="f"'],i=["position: ","absolute",";"],a="div"===t;"shape"!==t&&!a||i.push("left:0;top:0;width:1px;height:1px;"),i.push("visibility: ",a?"hidden":"visible"),n.push(' style="',i.join(""),'"/>'),t&&(n=a||"span"===t||"img"===t?n.join(""):e.prepVML(n),this.element=Re(n)),this.renderer=e},add:function(e){var t=this.renderer,n=this.element,i=t.box,a=e&&e.inverted,i=e?e.element||e:i;return e&&(this.parentGroup=e),a&&t.invertChild(n,i),i.appendChild(n),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this.className&&this.attr("class",this.className),this},updateTransform:Xe.prototype.htmlUpdateTransform,setSpanRotation:function(){var e=this.rotation,t=Math.cos(e*Fe),n=Math.sin(e*Fe);$e(this.element,{filter:e?["progid:DXImageTransform.Microsoft.Matrix(M11=",t,", M12=",-n,", M21=",n,", M22=",t,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(e,t,n,i,a){var r,o=i?Math.cos(i*Fe):1,s=i?Math.sin(i*Fe):0,l=Ge(this.elemHeight,this.element.offsetHeight);this.xCorr=o<0&&-e,this.yCorr=s<0&&-l,this.xCorr+=s*t*((r=o*s<0)?1-n:n),this.yCorr-=o*t*(i?r?n:1-n:1),a&&"left"!==a&&(this.xCorr-=e*n*(o<0?-1:1),i&&(this.yCorr-=l*n*(s<0?-1:1)),$e(this.element,{textAlign:a}))},pathToVML:function(e){for(var t=e.length,n=[];t--;)Ye(e[t])?n[t]=Math.round(10*e[t])-5:"Z"===e[t]?n[t]="x":(n[t]=e[t],!e.isArc||"wa"!==e[t]&&"at"!==e[t]||(n[t+5]===n[t+7]&&(n[t+7]+=e[t+7]>e[t+5]?1:-1),n[t+6]===n[t+8]&&(n[t+8]+=e[t+8]>e[t+6]?1:-1)));return n.join(" ")||"x"},clip:function(e){var t,n=this;return e=e?(t=e.members,Be(t,n),t.push(n),n.destroyClip=function(){Be(t,n)},e.getCSS(n)):(n.destroyClip&&n.destroyClip(),{clip:n.docMode8?"inherit":"rect(auto)"}),n.css(e)},css:Xe.prototype.htmlCss,safeRemoveChild:function(e){e.parentNode&&Ne(e)},destroy:function(){return this.destroyClip&&this.destroyClip(),Xe.prototype.destroy.apply(this)},on:function(e,t){return this.element["on"+e]=function(){var e=Ze.event;e.target=e.srcElement,t(e)},this},cutOffPath:function(e,t){var n;return 9!==(n=(e=e.split(/[ ,]/)).length)&&11!==n||(e[n-4]=e[n-2]=qe(e[n-2])-10*t),e.join(" ")},shadow:function(e,t,n){var i,a,r,o,s,l,u=[],c=this.element,d=this.renderer,f=c.style,h=c.path,p=h=h&&"string"!=typeof h.value?"x":h;if(e){for(s=Ge(e.width,3),l=(e.opacity||.15)/s,i=1;i<=3;i++)r=['<shape isShadow="true" strokeweight="',o=2*s+1-2*i,'" filled="false" path="',p=n?this.cutOffPath(h.value,.5+o):p,'" coordsize="10 10" style="',c.style.cssText,'" />'],a=Re(d.prepVML(r),null,{left:qe(f.left)+Ge(e.offsetX,1),top:qe(f.top)+Ge(e.offsetY,1)}
1),n&&(a.cutOff=1+o),r=['<stroke color="',e.color||"#000000",'" opacity="',l*i,'"/>'],Re(d.prepVML(r),null,null,a),t?t.element.appendChild(a):c.parentNode.insertBefore(a,c),u.push(a);this.shadows=u}return this},updateShadows:d,setAttr:function(e,t){this.docMode8?this.element[e]=t:this.element.setAttribute(e,t)},classSetter:function(e){(this.added?this.element:this).className=e},dashstyleSetter:function(e,t,n){(n.getElementsByTagName("stroke")[0]||Re(this.renderer.prepVML(["<stroke/>"]),null,null,n))[t]=e||"solid",this[t]=e},dSetter:function(e,t,n){var i=this.shadows;if(this.d=(e=e||[]).join&&e.join(" "),n.path=e=this.pathToVML(e),i)for(n=i.length;n--;)i[n].path=i[n].cutOff?this.cutOffPath(e,i[n].cutOff):e;this.setAttr(t,e)},fillSetter:function(e,t,n){var i=n.nodeName;"SPAN"===i?n.style.color=e:"IMG"!==i&&(n.filled="none"!==e,this.setAttr("fillcolor",this.renderer.color(e,n,t,this)))},"fill-opacitySetter":function(e,t,n){Re(this.renderer.prepVML(["<",t.split("-")[0],' opacity="',e,'"/>']),null,null,n)},opacitySetter:d,rotationSetter:function(e,t,n){n=n.style,this[t]=n[t]=e,n.left=-Math.round(Math.sin(e*Fe)+1)+"px",n.top=Math.round(Math.cos(e*Fe))+"px"},strokeSetter:function(e,t,n){this.setAttr("strokecolor",this.renderer.color(e,n,t,this))},"stroke-widthSetter":function(e,t,n){n.stroked=!!e,this[t]=e,Ye(e)&&(e+="px"),this.setAttr("strokeweight",e)},titleSetter:function(e,t){this.setAttr(t,e)},visibilitySetter:function(t,n,e){"inherit"===t&&(t="visible"),this.shadows&&Ve(this.shadows,function(e){e.style[n]=t}),"DIV"===e.nodeName&&(t="hidden"===t?"-999em":0,this.docMode8||(e.style[n]=t?"visible":"hidden"),n="top"),e.style[n]=t},xSetter:function(e,t,n){this[t]=e,"x"===t?t="left":"y"===t&&(t="top"),this.updateClipping?(this[t]=e,this.updateClipping()):n.style[t]=e},zIndexSetter:function(e,t,n){n.style[t]=e}})["stroke-opacitySetter"]=d["fill-opacitySetter"],O.VMLElement=d=o(Xe,d),d.prototype.ySetter=d.prototype.widthSetter=d.prototype.heightSetter=d.prototype.xSetter,d={Element:d,isIE8:-1<Ze.navigator.userAgent.indexOf("MSIE 8.0"),init:function(e,t,n){var i,a;if(this.alignedObjects=[],a=(i=this.createElement("div").css({position:"relative"})).element,e.appendChild(i.element),this.isVML=!0,this.box=a,this.boxWrapper=i,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(t,n,!1),!je.namespaces.hcv){je.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{je.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(e){je.styleSheets[0].cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(e,t,n,i){var a=this.createElement(),r=ze(e);return Ue(a,{members:[],count:0,left:(r?e.x:e)+1,top:(r?e.y:t)+1,width:(r?e.width:n)-1,height:(r?e.height:i)-1,getCSS:function(e){var t=(r=e.element).nodeName,n=e.inverted,i=this.top-("shape"===t?r.offsetTop:0),a=this.left,r=a+this.width,o=i+this.height,i={clip:"rect("+Math.round(n?a:i)+"px,"+Math.round(n?o:r)+"px,"+Math.round(n?r:o)+"px,"+Math.round(n?i:a)+"px)"};return!n&&e.docMode8&&"DIV"===t&&Ue(i,{width:r+"px",height:o+"px"}),i},updateClipping:function(){Ve(a.members,function(e){e.element&&e.css(a.getCSS(e))})}})},color:function(e,t,n,i){var a,r,o,s,l,u,c,d,f,h,p,m,g,v,_,y,b,k,w,S,x,C=this,T=/^rgba/,E="none";return e&&e.linearGradient?o="gradient":e&&e.radialGradient&&(o="pattern"),o?(u=e.linearGradient||e.radialGradient,p="",e=e.stops,m=[],g=function(){r=['<fill colors="'+m.join(",")+'" opacity="',d,'" o:opacity2="',c,'" type="',o,'" ',p,'focus="100%" method="any" />'],Re(C.prepVML(r),null,null,t)},S=e[0],x=e[e.length-1],0<S[0]&&e.unshift([0,S[1]]),x[0]<1&&e.push([1,x[1]]),Ve(e,function(e,t){l=T.test(e[1])?(a=O.color(e[1]),s=a.get("rgb"),a.get("a")):(s=e[1],1),m.push(100*e[0]+"% "+s),t?(d=l,f=s):(c=l,h=s)}),"fill"===n?"gradient"===o?(n=u.x1||u[0]||0,e=u.y1||u[1]||0,S=u.x2||u[2]||0,u=u.y2||u[3]||0,p='angle="'+(90-180*Math.atan((u-e)/(S-n))/Math.PI)+'"',g()):(v=2*(E=u.r),_=2*E,y=u.cx,b=u.cy,k=t.radialReference,E=function(){k&&(w=i.getBBox(),y+=(k[0]-w.x)/w.width-.5,b+=(k[1]-w.y)/w.height-.5,v*=k[2]/w.width,_*=k[2]/w.height),p='src="'+O.getOptions().global.VMLRadialGradientURL+'" size="'+v+","+_+'" origin="0.5,0.5" position="'+y+","+b+'" color2="'+h+'" ',g()},i.added?E():i.onAdd=E,E=f):E=s):E=T.test(e)&&"IMG"!==t.tagName?(a=O.color(e),i[n+"-opacitySetter"](a.get("a"),n,t),a.get("rgb")):((E=t.getElementsByTagName(n)).length&&(E[0].opacity=1,E[0].type="solid"),e),E},prepVML:function(e){var t=this.isIE8;return e=e.join(""),e=t?-1===(e=e.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />')).indexOf('style="')?e.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):e.replace('style="','style="display:inline-block;behavior:url(#default#VML);'):e.replace("<","<hcv:")},text:Ke.prototype.html,path:function(e){var t={coordsize:"10 10"};return We(e)?t.d=e:ze(e)&&Ue(t,e),this.createElement("shape").attr(t)},circle:function(e,t,n){var i=this.symbol("circle");return ze(e)&&(n=e.r,t=e.y,e=e.x),i.isCircle=!0,i.r=n,i.attr({x:e,y:t})},g:function(e){var t;return e&&(t={className:"highcharts-"+e,class:"highcharts-"+e}),this.createElement("div").attr(t)},image:function(e,t,n,i,a){e=this.createElement("img").attr({src:e});return 1<arguments.length&&e.attr({x:t,y:n,width:i,height:a}),e},createElement:function(e){return"rect"===e?this.symbol(e):Ke.prototype.createElement.call(this,e)},invertChild:function(t,e){var n=this,i=(e=e.style,"IMG"===t.tagName&&t.style);$e(t,{flip:"x",left:qe(e.width)-(i?qe(i.top):1),top:qe(e.height)-(i?qe(i.left):1),rotation:-90}),Ve(t.childNodes,function(e){n.invertChild(e,t)})},symbols:{arc:function(e,t,n,i,a){var r=a.start,o=a.end,s=a.r||n||i,l=(n=a.innerR,i=Math.cos(r),Math.sin(r)),u=Math.cos(o),c=Math.sin(o);return 0==o-r?["x"]:(r=["wa",e-s,t-s,e+s,t+s,e+s*i,t+s*l,e+s*u,t+s*c],a.open&&!n&&r.push("e","M",e,t),r.push("at",e-n,t-n,e+n,t+n,e+n*u,t+n*c,e+n*i,t+n*l,"x","e"),r.isArc=!0,r)},circle:function(e,t,n,i,a){return a&&He(a.r)&&(n=i=2*a.r),a&&a.isCircle&&(e-=n/2,t-=i/2),["wa",e,t,e+n,t+i,e+n,t+i/2,e+n,t+i/2,"e"]}
1,rect:function(e,t,n,i,a){return Ke.prototype.symbols[He(a)&&a.r?"callout":"square"].call(0,e,t,n,i,a)}}},O.VMLRenderer=o=function(){this.init.apply(this,arguments)},o.prototype=f(Ke.prototype,d),O.Renderer=o),Ke.prototype.measureSpanWidth=function(e,t){var n=je.createElement("span");return e=je.createTextNode(e),n.appendChild(e),$e(n,t),this.box.appendChild(n),t=n.offsetWidth,Ne(n),t},k=(i=e).color,Je=i.each,Qe=i.getTZOffset,et=i.merge,tt=i.pick,nt=i.win,i.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),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:{useUTC:!0,VMLRadialGradientURL:"http://code.highcharts.com/5.0.14/gfx/vml-radial-gradient.png"},chart:{borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",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:i.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:"",padding:8,snap:i.isTouchDevice?25:10,backgroundColor:k("#f7f7f7").setOpacity(.85).get(),borderWidth:1,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">â</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},i.setOptions=function(e){return i.defaultOptions=et(!0,i.defaultOptions,e),ct(),i.defaultOptions},i.getOptions=function(){return i.defaultOptions},i.defaultPlotOptions=i.defaultOptions.plotOptions,ct(),it=(R=e).correctFloat,at=R.defined,rt=R.destroyObjectProperties,ot=R.isNumber,st=R.merge,lt=R.pick,ut=R.deg2rad,R.Tick=function(e,t,n,i){this.axis=e,this.pos=t,this.type=n||"",this.isNewLabel=this.isNew=!0,n||i||this.addLabel()},R.Tick.prototype={addLabel:function(){var e,t=this.axis,n=t.options,i=t.chart,a=t.categories,r=t.names,o=this.pos,s=n.labels,l=o===(c=t.tickPositions)[0],u=o===c[c.length-1],r=a?lt(a[o],r[o],o):o,a=this.label,c=c.info;t.isDatetimeAxis&&c&&(e=n.dateTimeLabelFormats[c.higherRanks[o]||c.unitName]),this.isFirst=l,this.isLast=u,n=t.labelFormatter.call({axis:t,chart:i,isFirst:l,isLast:u,dateTimeLabelFormat:e,value:t.isLog?it(t.lin2log(r)):r,pos:o}),at(a)?a&&a.attr({text:n}):(this.labelLength=(this.label=a=at(n)&&s.enabled?i.renderer.text(n,
10,0,s.useHTML).css(st(s.style)).add(t.labelGroup):null)&&a.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(e){var t,n=this.axis,i=e.x,a=n.chart.chartWidth,r=n.chart.spacing,o=lt(n.labelLeft,Math.min(n.pos,r[3])),r=lt(n.labelRight,Math.max(n.pos+n.len,a-r[1])),s=this.label,l=this.rotation,u={left:0,center:.5,right:1}[n.labelAlign],c=s.getBBox().width,d=n.getSlotWidth(),f=d,h=1,p={};l?l<0&&i-u*c<o?t=Math.round(i/Math.cos(l*ut)-o):0<l&&r<i+u*c&&(t=Math.round((a-i)/Math.cos(l*ut))):(i-u*c<o?f=e.x+f*(1-u)-o:r<i+(1-u)*c&&(f=r-e.x+f*u,h=-1),(f=Math.min(d,f))<d&&"center"===n.labelAlign&&(e.x+=h*(d-f-u*(d-Math.min(c,f)))),(f<c||n.autoRotation&&(s.styles||{}).width)&&(t=f)),t&&(p.width=t,(n.options.labels.style||{}).textOverflow||(p.textOverflow="ellipsis"),s.css(p))},getPosition:function(e,t,n,i){var a=this.axis,r=a.chart,o=i&&r.oldChartHeight||r.chartHeight;return{x:e?a.translate(t+n,null,null,i)+a.transB:a.left+a.offset+(a.opposite?(i&&r.oldChartWidth||r.chartWidth)-a.right-a.left:0),y:e?o-a.bottom+a.offset-(a.opposite?a.height:0):o-a.translate(t+n,null,null,i)-a.transB}},getLabelPosition:function(e,t,n,i,a,r,o,s){var l=this.axis,u=l.transA,c=l.reversed,d=l.staggerLines,f=l.tickRotCorr||{x:0,y:0},h=a.y;return at(h)||(h=0===l.side?n.rotation?-8:-n.getBBox().height:2===l.side?f.y+8:Math.cos(n.rotation*ut)*(f.y-n.getBBox(!1,0).height/2)),e=e+a.x+f.x-(r&&i?r*u*(c?-1:1):0),t=t+h-(r&&!i?r*u*(c?1:-1):0),d&&(n=o/(s||1)%d,l.opposite&&(n=d-n-1),t+=l.labelOffset/d*n),{x:e,y:Math.round(t)}},getMarkPath:function(e,t,n,i,a,r){return r.crispLine(["M",e,t,"L",e+(a?0:-n),t+(a?n:0)],i)},renderGridLine:function(e,t,n){var i=this.axis,a=i.options,r=this.gridLine,o={},s=this.pos,l=this.type,u=i.tickmarkOffset,c=i.chart.renderer,d=l?l+"Grid":"grid",f=a[d+"LineWidth"],h=a[d+"LineColor"],a=a[d+"LineDashStyle"];r||(o.stroke=h,o["stroke-width"]=f,a&&(o.dashstyle=a),l||(o.zIndex=1),e&&(o.opacity=0),this.gridLine=r=c.path().attr(o).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(i.gridGroup)),!e&&r&&(e=i.getPlotLinePath(s+u,r.strokeWidth()*n,e,!0))&&r[this.isNew?"attr":"animate"]({d:e,opacity:t})},renderMark:function(e,t,n){var i=this.axis,a=i.options,r=i.chart.renderer,o=this.type,s=o?o+"Tick":"tick",l=i.tickSize(s),u=this.mark,c=!u,d=e.x,f=(e=e.y,lt(a[s+"Width"],!o&&i.isXAxis?1:0)),a=a[s+"Color"];l&&(i.opposite&&(l[0]=-l[0]),c&&(this.mark=u=r.path().addClass("highcharts-"+(o?o+"-":"")+"tick").add(i.axisGroup),u.attr({stroke:a,"stroke-width":f})),u[c?"attr":"animate"]({d:this.getMarkPath(d,e,l[0],u.strokeWidth()*n,i.horiz,r),opacity:t}))},renderLabel:function(e,t,n,i){var a=this.axis,r=a.horiz,o=a.options,s=this.label,l=o.labels,u=l.step,c=a.tickmarkOffset,d=!0,f=e.x;e=e.y,s&&ot(f)&&(s.xy=e=this.getLabelPosition(f,e,s,r,l,c,i,u),this.isFirst&&!this.isLast&&!lt(o.showFirstLabel,1)||this.isLast&&!this.isFirst&&!lt(o.showLastLabel,1)?d=!1:!r||a.isRadial||l.step||l.rotation||t||0===n||this.handleOverflow(e),(d=u&&i%u?!1:d)&&ot(e.y)?(e.opacity=n,s[this.isNewLabel?"attr":"animate"](e),this.isNewLabel=!1):(s.attr("y",-9999),this.isNewLabel=!0),this.isNew=!1)},render:function(e,t,n){var i=(s=this.axis).horiz,a=this.getPosition(i,this.pos,s.tickmarkOffset,t),r=a.x,o=a.y,s=i&&r===s.pos+s.len||!i&&o===s.pos?-1:1;n=lt(n,1),this.isActive=!0,this.renderGridLine(t,n,s),this.renderMark(a,n,s),this.renderLabel(a,t,n,e)},destroy:function(){rt(this,this.axis)}};dt=(b=e).addEvent,ft=b.animObject,ht=b.arrayMax,pt=b.arrayMin,mt=b.color,gt=b.correctFloat,vt=b.defaultOptions,w=b.defined,_t=b.deg2rad,yt=b.destroyObjectProperties,S=b.each,bt=b.extend,kt=b.fireEvent,wt=b.format,St=b.getMagnitude,xt=b.grep,Ct=b.inArray,Tt=b.isArray,Et=b.isNumber,At=b.isString,Ot=b.merge,Mt=b.normalizeTickInterval,Lt=b.objectEach,x=b.pick,It=b.removeEvent,Dt=b.splat,Pt=b.syncTimeout,Rt=b.Tick,b.extend(ao.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,style:{color:"#666666",cursor:"default",fontSize:"11px"},x:0},minPadding:.01,maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return b.numberFormat(this.total,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"#000000",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(e,t){var n=t.isX,i=this,a=(i.chart=e,i.horiz=e.inverted&&!i.isZAxis?!n:n,i.isXAxis=n,i.coll=i.coll||(n?"xAxis":"yAxis"),i.opposite=t.opposite,i.side=t.side||(i.horiz?i.opposite?0:2:i.opposite?1:3),i.setOptions(t),this.options),r=a.type;i.labelFormatter=a.labels.formatter||i.defaultLabelFormatter,i.userOptions=t,i.minPixelPadding=0,i.reversed=a.reversed,i.visible=!1!==a.visible,i.zoomEnabled=!1!==a.zoomEnabled,i.hasNames="category"===r||!0===a.categories,i.categories=a.categories||i.hasNames,i.names=i.names||[],i.plotLinesAndBandsGroups={},i.isLog="logarithmic"===r,i.isDatetimeAxis="datetime"===r,i.positiveValuesOnly=i.isLog&&!i.allowNegativeLog,i.isLinked=w(a.linkedTo),i.ticks={},i.labelEdge=[],i.minorTicks={},i.plotLinesAndBands=[],i.alternateBands={},i.len=0,i.minRange=i.userMinRange=a.minRange||a.maxZoom,i.range=a.range,i.offset=a.offset||0,i.stacks={},i.oldStacks={},i.stacksTouched=0,i.max=null,i.min=null,i.crosshair=x(a.crosshair,Dt(e.options.tooltip.crosshairs)[n?0:1],!1),t=i.options.events,-1===Ct(i,e.axes)&&(n?e.axes.splice(e.xAxis.length,0,i):e.axes.push(i),e[i.coll].push(i)),i.series=i.series||[],e.inverted&&!i.isZAxis&&n&&void 0===i.reversed&&(i.reversed=!0),Lt(t,function(e,t){dt(i,t,e)}),i.lin2log=a.linearToLogConverter||i.lin2log,i.isLog&&(i.val2lin=i.log2lin,i.lin2val=i.lin2log)},setOptions:function(e){this.options=Ot(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],Ot(vt[this.coll],e))},defaultLabelFormatter:function(){var e,t=this.axis,n=this.value,i=t.categories,a=this.dateTimeLabelFormat,r=(o=vt.lang).numericSymbol
1s,o=o.numericSymbolMagnitude||1e3,s=r&&r.length,l=t.options.labels.format,t=t.isLog?Math.abs(n):t.tickInterval;if(l)e=wt(l,this);else if(i)e=n;else if(a)e=b.dateFormat(a,n);else if(s&&1e3<=t)for(;s--&&void 0===e;)(i=Math.pow(o,s+1))<=t&&0==10*n%i&&null!==r[s]&&0!==n&&(e=b.numberFormat(n/i,-1)+r[s]);return e=void 0===e?1e4<=Math.abs(n)?b.numberFormat(n,-1):b.numberFormat(n,-1,void 0,""):e},getSeriesExtremes:function(){var a=this,r=a.chart;a.hasVisibleSeries=!1,a.dataMin=a.dataMax=a.threshold=null,a.softThreshold=!a.isXAxis,a.buildStacks&&a.buildStacks(),S(a.series,function(e){var t,n,i;!e.visible&&r.options.chart.ignoreHiddenSeries||(n=(t=e.options).threshold,a.hasVisibleSeries=!0,a.positiveValuesOnly&&n<=0&&(n=null),a.isXAxis?(t=e.xData).length&&(e=pt(t),Et(e)||e instanceof Date||(t=xt(t,function(e){return Et(e)}),e=pt(t)),a.dataMin=Math.min(x(a.dataMin,t[0]),e),a.dataMax=Math.max(x(a.dataMax,t[0]),ht(t))):(e.getExtremes(),i=e.dataMax,e=e.dataMin,w(e)&&w(i)&&(a.dataMin=Math.min(x(a.dataMin,e),e),a.dataMax=Math.max(x(a.dataMax,i),i)),w(n)&&(a.threshold=n),t.softThreshold&&!a.positiveValuesOnly||(a.softThreshold=!1)))})},translate:function(e,t,n,i,a,r){var o=this.linkedParent||this,s=1,l=0,u=i?o.oldTransA:o.transA,c=(i=i?o.oldMin:o.min,o.minPixelPadding);return a=(o.isOrdinal||o.isBroken||o.isLog&&a)&&o.lin2val,u=u||o.transA,n&&(s*=-1,l=o.len),o.reversed&&(l-=(s*=-1)*(o.sector||o.len)),t?(e=(e*s+l-c)/u+i,a&&(e=o.lin2val(e))):e=s*((e=a?o.val2lin(e):e)-i)*u+l+s*c+(Et(r)?u*r:0),e},toPixels:function(e,t){return this.translate(e,!1,!this.horiz,null,!0)+(t?0:this.pos)},toValue:function(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(e,t,n,i,a){function r(e,t,n){return(e<t||n<e)&&(i?e=Math.min(Math.max(t,e),n):s=!0),e}var o,s,l=this.chart,u=this.left,c=this.top,d=n&&l.oldChartHeight||l.chartHeight,f=n&&l.oldChartWidth||l.chartWidth,h=this.transB;return a=x(a,this.translate(e,null,null,n)),e=n=Math.round(a+h),h=o=Math.round(d-a-h),Et(a)?this.horiz?(h=c,o=d-this.bottom,e=n=r(e,u,u+this.width)):(e=u,n=f-this.right,h=o=r(h,c,c+this.height)):s=!0,s&&!i?null:l.renderer.crispLine(["M",e,h,"L",n,o],t||1)},getLinearTickPositions:function(e,t,n){var i,a=gt(Math.floor(t/e)*e),r=(n=gt(Math.ceil(n/e)*e),[]);if(this.single)return[t];for(t=a;t<=n&&(r.push(t),(t=gt(t+e))!==i);)i=t;return r},getMinorTickPositions:function(){var i=this,e=i.options,t=i.tickPositions,a=i.minorTickInterval,r=[],n=i.pointRangePadding||0,o=i.min-n,s=(n=i.max+n)-o;if(s&&s/a<i.len/3)if(i.isLog)S(this.paddedTicks,function(e,t,n){t&&r.push.apply(r,i.getLogTickPositions(a,n[t-1],n[t],!0))});else if(i.isDatetimeAxis&&"auto"===e.minorTickInterval)r=r.concat(i.getTimeTicks(i.normalizeTimeTickInterval(a),o,n,e.startOfWeek));else for(e=o+(t[0]-o)%a;e<=n&&e!==r[0];e+=a)r.push(e);return 0!==r.length&&i.trimTicks(r),r},adjustForMinRange:function(){var e,t,n,i,a,r,o,s=this.options,l=this.min,u=this.max;this.isXAxis&&void 0===this.minRange&&!this.isLog&&(w(s.min)||w(s.max)?this.minRange=null:(S(this.series,function(e){for(r=e.xData,i=e.xIncrement?1:r.length-1;0<i;i--)a=r[i]-r[i-1],(void 0===n||a<n)&&(n=a)}),this.minRange=Math.min(5*n,this.dataMax-this.dataMin))),u-l<this.minRange&&(t=this.dataMax-this.dataMin>=this.minRange,e=[l-(e=((o=this.minRange)-u+l)/2),x(s.min,l-e)],t&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),u=[(l=ht(e))+o,x(s.max,l+o)],t&&(u[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(u=pt(u))-l<o)&&(e[0]=u-o,e[1]=x(s.min,u-o),l=ht(e)),this.min=l,this.max=u},getClosest:function(){var i;return this.categories?i=1:S(this.series,function(e){var t=e.closestPointRange,n=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&w(t)&&n&&(i=w(i)?Math.min(i,t):t)}),i},nameToX:function(e){var t,n=Tt(this.categories),i=n?this.categories:this.names,a=e.options.x;return e.series.requireSorting=!1,-1===(a=w(a)?a:!1===this.options.uniqueNames?e.series.autoIncrement():Ct(e.name,i))?n||(t=i.length):t=a,void 0!==t&&(this.names[t]=e.name),t},updateNames:function(){var a=this;0<this.names.length&&(this.names.length=0,this.minRange=this.userMinRange,S(this.series||[],function(i){i.xIncrement=null,i.points&&!i.isDirtyData||(i.processData(),i.generatePoints()),S(i.points,function(e,t){var n;e.options&&void 0!==(n=a.nameToX(e))&&n!==e.x&&(e.x=n,i.xData[t]=n)})}))},setAxisTranslation:function(e){var n,i=this,t=i.max-i.min,a=i.axisPointRange||0,r=0,o=0,s=i.linkedParent,l=!!i.categories,u=i.transA,c=i.isXAxis;(c||l||a)&&(n=i.getClosest(),s?(r=s.minPointOffset,o=s.pointRangePadding):S(i.series,function(e){var t=l?1:c?x(e.options.pointRange,n,0):i.axisPointRange||0;e=e.options.pointPlacement,a=Math.max(a,t),i.single||(r=Math.max(r,At(e)?0:t/2),o=Math.max(o,"on"===e?0:t))}),s=i.ordinalSlope&&n?i.ordinalSlope/n:1,i.minPointOffset=r*=s,i.pointRangePadding=o*=s,i.pointRange=Math.min(a,t),c)&&(i.closestPointRange=n),e&&(i.oldTransA=u),i.translationSlope=i.transA=u=i.options.staticScale||i.len/(t+o||1),i.transB=i.horiz?i.left
1:i.bottom,i.minPixelPadding=u*r},minFromRange:function(){return this.max-this.range},setTickInterval:function(e){var t,n,i,a,r=this,o=r.chart,s=r.options,l=r.isLog,u=r.log2lin,c=r.isDatetimeAxis,d=r.isXAxis,f=r.isLinked,h=s.maxPadding,p=s.minPadding,m=s.tickInterval,g=s.tickPixelInterval,v=r.categories,_=r.threshold,y=r.softThreshold;c||v||f||this.getTickAmount(),i=x(r.userMin,s.min),a=x(r.userMax,s.max),f?(r.linkedParent=o[r.coll][s.linkedTo],o=r.linkedParent.getExtremes(),r.min=x(o.min,o.dataMin),r.max=x(o.max,o.dataMax),s.type!==r.linkedParent.options.type&&b.error(11,1)):(!y&&w(_)&&(r.dataMin>=_?(t=_,p=0):r.dataMax<=_&&(n=_,h=0)),r.min=x(i,t,r.dataMin),r.max=x(a,n,r.dataMax)),l&&(r.positiveValuesOnly&&!e&&Math.min(r.min,x(r.dataMin,r.min))<=0&&b.error(10,1),r.min=gt(u(r.min),15),r.max=gt(u(r.max),15)),r.range&&w(r.max)&&(r.userMin=r.min=i=Math.max(r.dataMin,r.minFromRange()),r.userMax=a=r.max,r.range=null),kt(r,"foundExtremes"),r.beforePadding&&r.beforePadding(),r.adjustForMinRange(),!(v||r.axisPointRange||r.usePercentage||f)&&w(r.min)&&w(r.max)&&(u=r.max-r.min)&&(!w(i)&&p&&(r.min-=u*p),!w(a))&&h&&(r.max+=u*h),Et(s.softMin)&&(r.min=Math.min(r.min,s.softMin)),Et(s.softMax)&&(r.max=Math.max(r.max,s.softMax)),Et(s.floor)&&(r.min=Math.max(r.min,s.floor)),Et(s.ceiling)&&(r.max=Math.min(r.max,s.ceiling)),y&&w(r.dataMin)&&(_=_||0,!w(i)&&r.min<_&&r.dataMin>=_?r.min=_:!w(a)&&r.max>_&&r.dataMax<=_&&(r.max=_)),r.tickInterval=r.min===r.max||void 0===r.min||void 0===r.max?1:f&&!m&&g===r.linkedParent.options.tickPixelInterval?m=r.linkedParent.tickInterval:x(m,this.tickAmount?(r.max-r.min)/Math.max(this.tickAmount-1,1):void 0,v?1:(r.max-r.min)*g/Math.max(r.len,g)),d&&!e&&S(r.series,function(e){e.processData(r.min!==r.oldMin||r.max!==r.oldMax)}),r.setAxisTranslation(!0),r.beforeSetTickPositions&&r.beforeSetTickPositions(),r.postProcessTickInterval&&(r.tickInterval=r.postProcessTickInterval(r.tickInterval)),r.pointRange&&!m&&(r.tickInterval=Math.max(r.pointRange,r.tickInterval)),e=x(s.minTickInterval,r.isDatetimeAxis&&r.closestPointRange),!m&&r.tickInterval<e&&(r.tickInterval=e),c||l||m||(r.tickInterval=Mt(r.tickInterval,null,St(r.tickInterval),x(s.allowDecimals,!(.5<r.tickInterval&&r.tickInterval<5&&1e3<r.max&&r.max<9999)),!!this.tickAmount)),this.tickAmount||(r.tickInterval=r.unsquish()),this.setTickPositions()},setTickPositions:function(){var e,t=this.options,n=t.tickPositions,i=t.tickPositioner,a=t.startOnTick,r=t.endOnTick;this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===t.minorTickInterval&&this.tickInterval?this.tickInterval/5:t.minorTickInterval,this.single=this.min===this.max&&w(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=e=n&&n.slice(),!e&&((e=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max)).length>this.len&&(e=[e[0],e.pop()]),this.tickPositions=e,i=i&&i.apply(this,[this.min,this.max]))&&(this.tickPositions=e=i),this.paddedTicks=e.slice(0),this.trimTicks(e,a,r),this.isLinked||(this.single&&e.length<2&&(this.min-=.5,this.max+=.5),n)||i||this.adjustTickAmount()},trimTicks:function(e,t,n){var i=e[0],a=e[e.length-1],r=this.minPointOffset||0;if(!this.isLinked){if(t&&-1/0!==i)this.min=i;else for(;this.min-r>e[0];)e.shift();if(n)this.max=a;else for(;this.max+r<e[e.length-1];)e.pop();0===e.length&&w(i)&&e.push((a+i)/2)}},alignToOthers:function(){var n,i={},e=this.options;return!1===this.chart.options.chart.alignTicks||!1===e.alignTicks||this.isLog||S(this.chart[this.coll],function(e){var t=e.options,t=[e.horiz?t.left:t.top,t.width,t.height,t.pane].join();e.series.length&&(i[t]?n=!0:i[t]=1)}),n},getTickAmount:function(){var e=this.options,t=e.tickAmount,n=e.tickPixelInterval;(t=!(t=!w(e.tickInterval)&&this.len<n&&!this.isRadial&&!this.isLog&&e.startOnTick&&e.endOnTick?2:t)&&this.alignToOthers()?Math.
1ceil(this.len/n)+1:t)<4&&(this.finalTickAmt=t,t=5),this.tickAmount=t},adjustTickAmount:function(){var e=this.tickInterval,t=this.tickPositions,n=this.tickAmount,i=this.finalTickAmt,a=t&&t.length;if(a<n){for(;t.length<n;)t.push(gt(t[t.length-1]+e));this.transA*=(a-1)/(n-1),this.max=t[t.length-1]}else n<a&&(this.tickInterval*=2,this.setTickPositions());if(w(i)){for(e=n=t.length;e--;)(3===i&&1==e%2||i<=2&&0<e&&e<n-1)&&t.splice(e,1);this.finalTickAmt=void 0}},setScale:function(){var t,e;this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),e=this.len!==this.oldAxisLength,S(this.series,function(e){(e.isDirtyData||e.isDirty||e.xAxis.isDirty)&&(t=!0)}),e||t||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=e||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks()},setExtremes:function(e,t,n,i,a){var r=this,o=r.chart;n=x(n,!0),S(r.series,function(e){delete e.kdTree}),a=bt(a,{min:e,max:t}),kt(r,"setExtremes",a,function(){r.userMin=e,r.userMax=t,r.eventArgs=a,n&&o.redraw(i)})},zoom:function(e,t){var n=this.dataMin,i=this.dataMax,a=this.options,r=Math.min(n,x(a.min,n)),a=Math.max(i,x(a.max,i));return e===this.min&&t===this.max||(this.allowZoomOutside||(w(n)&&a<(e=e<r?r:e)&&(e=a),w(i)&&a<(t=t<r?r:t)&&(t=a)),this.displayBtn=void 0!==e||void 0!==t,this.setExtremes(e,t,!1,void 0,{trigger:"zoom"})),!0},setAxisSize:function(){var e=this.chart,t=(o=this.options).offsets||[0,0,0,0],n=this.horiz,i=this.width=Math.round(b.relativeLength(x(o.width,e.plotWidth-t[3]+t[1]),e.plotWidth)),a=this.height=Math.round(b.relativeLength(x(o.height,e.plotHeight-t[0]+t[2]),e.plotHeight)),r=this.top=Math.round(b.relativeLength(x(o.top,e.plotTop+t[0]),e.plotHeight,e.plotTop)),o=this.left=Math.round(b.relativeLength(x(o.left,e.plotLeft+t[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-a-r,this.right=e.chartWidth-i-o,this.len=Math.max(n?i:a,0),this.pos=n?o:r},getExtremes:function(){var e=this.isLog,t=this.lin2log;return{min:e?gt(t(this.min)):this.min,max:e?gt(t(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(e){var t=this.isLog,n=this.lin2log,i=t?n(this.min):this.min,t=t?n(this.max):this.max;return null===e||e<i?e=i:t<e&&(e=t),this.translate(e,0,1,0,1)},autoLabelAlign:function(e){return 15<(e=(x(e,0)-90*this.side+720)%360)&&e<165?"right":195<e&&e<345?"left":"center"},tickSize:function(e){var t=this.options,n=t[e+"Length"],i=x(t[e+"Width"],"tick"===e&&this.isXAxis?1:0);if(i&&n)return[n="inside"===t[e+"Position"]?-n:n,i]},labelMetrics:function(){var e=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[e]&&this.ticks[e].label)},unsquish:function(){function n(e){return(e=1<(e/=l||1)?Math.ceil(e):1)*o}var i,a,e,t=this.options.labels,r=this.horiz,o=this.tickInterval,s=o,l=this.len/(((this.categories?1:0)+this.max-this.min)/o),u=t.rotation,c=this.labelMetrics(),d=Number.MAX_VALUE;return r?(e=!t.staggerLines&&!t.step&&(w(u)?[u]:l<x(t.autoRotationLimit,80)&&t.autoRotation))&&S(e,function(e){var t;(e===u||e&&-90<=e&&e<=90)&&(t=(a=n(Math.abs(c.h/Math.sin(_t*e))))+Math.abs(e/360))<d&&(d=t,i=e,s=a)}):t.step||(s=n(c.h)),this.autoRotation=e,this.labelRotation=x(i,u),s},getSlotWidth:function(){var e=this.chart,t=this.horiz,n=this.options.labels,i=Math.max(this.tickPositions.length-(this.categories?0:1),1),a=e.margin[3];return t&&(n.step||0)<2&&!n.rotation&&(this.staggerLines||1)*this.len/i||!t&&(a&&a-e.spacing[3]||.33*e.chartWidth)},renderUnsquish:function(){var n,e,t,i=this.chart,a=i.renderer,r=this.tickPositions,o=this.ticks,s=this.options.labels,l=this.horiz,u=this.getSlotWidth(),c=Math.max(1,Math.round(u-2*(s.padding||5))),d={},f=this.labelMetrics(),h=s.style&&s.style.textOverflow,p=0;if(At(s.rotation)||(d.rotation=s.rotation||0),S(r,function(e){(e=o[e])&&e.labelLength>p&&(p=e.labelLength)}),this.maxLabelLength=p,this.autoRotation)c<p&&p>f.h?d.rotation=this.labelRotation:this.labelRotation=0;else if(u&&(n={width:c+"px"},!h))for(n.textOverflow="clip",e=r.length;!l&&e--;
1)t=r[e],(c=o[t].label)&&(c.styles&&"ellipsis"===c.styles.textOverflow?c.css({textOverflow:"clip"}):o[t].labelLength>u&&c.css({width:u+"px"}),c.getBBox().height>this.len/r.length-(f.h-f.f))&&(c.specCss={textOverflow:"ellipsis"});d.rotation&&(n={width:(p>.5*i.chartHeight?.33*i.chartHeight:i.chartHeight)+"px"},h||(n.textOverflow="ellipsis")),(this.labelAlign=s.align||this.autoLabelAlign(this.labelRotation))&&(d.align=this.labelAlign),S(r,function(e){var t=(e=o[e])&&e.label;t&&(t.attr(d),n&&t.css(Ot(n,t.specCss)),delete t.specCss,e.rotation=d.rotation)}),this.tickRotCorr=a.rotCorr(f.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||w(this.min)&&w(this.max)&&!!this.tickPositions},addTitle:function(e){var t,n=this.chart.renderer,i=this.horiz,a=this.opposite,r=this.options.title;this.axisTitle||(t=(t=r.textAlign)||(i?{low:"left",middle:"center",high:"right"}:{low:a?"right":"left",middle:"center",high:a?"left":"right"})[r.align],this.axisTitle=n.text(r.text,0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation||0,align:t}).addClass("highcharts-axis-title").css(r.style).add(this.axisGroup),this.axisTitle.isNew=!0),r.style.width||this.isRadial||this.axisTitle.css({width:this.len}),this.axisTitle[e?"show":"hide"](!0)},generateTick:function(e){var t=this.ticks;t[e]?t[e].addLabel():t[e]=new Rt(this,e)},getOffset:function(){var e,t,n=this,i=(g=n.chart).renderer,a=n.options,r=n.tickPositions,o=n.ticks,s=n.horiz,l=n.side,u=g.inverted&&!n.isZAxis?[1,0,3,2][l]:l,c=0,d=0,f=a.title,h=a.labels,p=0,m=g.axisOffset,g=g.clipOffset,v=[-1,1,1,-1][l],_=a.className,y=n.axisParent,b=this.tickSize("tick"),k=n.hasData();n.showAxis=e=k||x(a.showEmpty,!0),n.staggerLines=n.horiz&&h.staggerLines,n.axisGroup||(n.gridGroup=i.g("grid").attr({zIndex:a.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(_||"")).add(y),n.axisGroup=i.g("axis").attr({zIndex:a.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(_||"")).add(y),n.labelGroup=i.g("axis-labels").attr({zIndex:h.zIndex||7}).addClass("highcharts-"+n.coll.toLowerCase()+"-labels "+(_||"")).add(y)),k||n.isLinked?(S(r,function(e,t){n.generateTick(e,t)}),n.renderUnsquish(),!1===h.reserveSpace||0!==l&&2!==l&&{1:"left",3:"right"}[l]!==n.labelAlign&&"center"!==n.labelAlign||S(r,function(e){p=Math.max(o[e].getLabelSize(),p)}),n.staggerLines&&(p*=n.staggerLines,n.labelOffset=p*(n.opposite?-1:1))):Lt(o,function(e,t){e.destroy(),delete o[t]}),f&&f.text&&!1!==f.enabled&&(n.addTitle(e),e)&&!1!==f.reserveSpace&&(n.titleOffset=c=n.axisTitle.getBBox()[s?"height":"width"],t=f.offset,d=w(t)?0:x(f.margin,s?5:10)),n.renderLine(),n.offset=v*x(a.offset,m[l]),n.tickRotCorr=n.tickRotCorr||{x:0,y:0},i=0===l?-n.labelMetrics().h:2===l?n.tickRotCorr.y:0,d=Math.abs(p)+d,p&&(d=d-i+v*(s?x(h.y,n.tickRotCorr.y+8*v):h.x)),n.axisTitleMargin=x(t,d),m[l]=Math.max(m[l],n.axisTitleMargin+c+v*n.offset,d,k&&r.length&&b?b[0]+v*n.offset:0),r=2*Math.floor(n.axisLine.strokeWidth()/2),0<a.offset&&(r-=2*a.offset),g[u]=Math.max(g[u]||r,r)},getLinePath:function(e){var t=this.chart,n=this.opposite,i=this.offset,a=this.horiz,r=this.left+(n?this.width:0)+i,i=t.chartHeight-this.bottom-(n?this.height:0)+i;return n&&(e*=-1),t.renderer.crispLine(["M",a?this.left:r,a?i:this.top,"L",a?t.chartWidth-this.right:r,a?i:t.chartHeight-this.bottom],e)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var e=this.horiz,t=this.left,n=this.top,i=this.len,a=this.options.title,r=e?t:n,o=this.opposite,s=this.offset,l=a.x||0,u=a.y||0,c=this.axisTitle,d=this.chart.renderer.fontMetrics(a.style&&a.style.fontSize,c),c=Math.max(c.getBBox(null,0).height-d.h-1,0),i={low:r+(e?0:i),middle:r+i/2,high:r+(e?i:0)}[a.align],t=(e?n+this.height:t)+(e?1:-1)*(o?-1:1)*this.axisTitleMargin+[-c,c,d.f,-c][this.side];return{x:e?i+l:t+(o?this.width:0)+s+l,y:e?t+u-(o?this.height:0)+s:i+u}},renderMinorTick:function(e){var t=this.chart.hasRendered&&Et(this.oldMin),n=this.minorTicks;n[e]||(n[e]=new Rt(this,e,"minor")),t&&n[e].isNew&&n[e].render(null,!0),n[e].render(null,!1,1)},renderTick:function(e,t){var n=this.isLinked,i=this.ticks,a=this.chart.hasRendered&&Et(this.oldMin);(!n||e>=this.min&&e<=this.max)&&(i[e]||(i[e]=new Rt(this,e)),a&&i[e].isNew&&i[e].render(t,!0,.1),i[e].render(t))},render:function(){var n,i,a=this,r=a.chart,e=a.options,o=a.isLog,s=a.lin2log,t=a.isLinked,l=a.tickPositions,u=a.axisTitle,c=a.ticks,d=a.minorTicks,f=a.alternateBands,h=e.stackLabels,p=e.alternateGridColor,m=a.tickmarkOffset,g=a.axisLine,v=a.showAxis,_=ft(r.renderer.globalAnimation);a.labelEdge.length=0,a.overlap=!1,S([c,d,f],function(e){Lt(e,function(e){e.isActive=!1})}),(a.hasData()||t)&&(a.minorTickInterval&&!a.categories&&S(a.getMinorTickPositions(),function(e){a.renderMinorTick(e)}),l.length&&(S(l,function(e,t){a.renderTick(e,t)}),m)&&(0===a.min||a.single)&&(c[-1]||(c[-1]=new Rt(a,-1,null,!0)),c[-1].render(-1)),p&&S(l,function(e,t){i=void 0!==l[t+1]?l[t+1]+m:a.max-m,0==t%2&&e<a.max&&i<=a.max+(r.polar?-m:m)&&(f[e]||(f[e]=new b.PlotLineOrBand(a)),n=e+m,f[e].options={from:o?s(n):n,to:o?s(i):i,color:p},f[e].render(),f[e].isActive=!0)}),a._addedPlotLB||(S((e.plotLines||[]).concat(e.plotBands||[]),function(e){a.addPlotBandOrLine(e)}),a._addedPlotLB=!0)),S([c,d,f],function(e){var t,n=[],i=_.duration;Lt(e,function(e,t){e.isActive||(e.render(t,!1,0),e.isActive=!1,n.push(t))}),Pt(function(){for(t=n.length;t--;
1)e[n[t]]&&!e[n[t]].isActive&&(e[n[t]].destroy(),delete e[n[t]])},e!==f&&r.hasRendered&&i?i:0)}),g&&(g[g.isPlaced?"animate":"attr"]({d:this.getLinePath(g.strokeWidth())}),g.isPlaced=!0,g[v?"show":"hide"](!0)),u&&v&&(e=a.getTitlePosition(),Et(e.y)?(u[u.isNew?"attr":"animate"](e),u.isNew=!1):(u.attr("y",-9999),u.isNew=!0)),h&&h.enabled&&a.renderStackTotals(),a.isDirty=!1},redraw:function(){this.visible&&(this.render(),S(this.plotLinesAndBands,function(e){e.render()})),S(this.series,function(e){e.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(e){var t,n=this,i=n.stacks,a=n.plotLinesAndBands;if(e||It(n),Lt(i,function(e,t){yt(e),i[t]=null}),S([n.ticks,n.minorTicks,n.alternateBands],function(e){yt(e)}),a)for(e=a.length;e--;)a[e].destroy();for(t in S("stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross".split(" "),function(e){n[e]&&(n[e]=n[e].destroy())}),n.plotLinesAndBandsGroups)n.plotLinesAndBandsGroups[t]=n.plotLinesAndBandsGroups[t].destroy();Lt(n,function(e,t){-1===Ct(t,n.keepProps)&&delete n[t]})},drawCrosshair:function(e,t){var n,i,a=this.crosshair,r=x(a.snap,!0),o=this.cross;e=e||this.cross&&this.cross.e,this.crosshair&&!1!==(w(t)||!r)&&(r?w(t)&&(i=this.isXAxis?t.plotX:this.len-t.plotY):i=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),w(i)&&(n=this.getPlotLinePath(t&&(this.isXAxis?t.x:x(t.stackY,t.y)),null,null,null,i)||null),w(n))?(t=this.categories&&!this.isRadial,o||(this.cross=o=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(t?"category ":"thin ")+a.className).attr({zIndex:x(a.zIndex,2)}).add(),o.attr({stroke:a.color||(t?mt("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":x(a.width,1)}),a.dashStyle&&o.attr({dashstyle:a.dashStyle})),o.show().attr({d:n}),t&&!a.width&&o.attr({"stroke-width":this.transA}),this.cross.e=e):this.hideCrosshair()},hideCrosshair:function(){this.cross&&this.cross.hide()}});var b,dt,ft,ht,pt,mt,gt,vt,w,_t,yt,S,bt,kt,wt,St,xt,Ct,Tt,Et,At,Ot,Mt,Lt,x,It,Dt,Pt,Rt,g,$t,Ht,Ft,Nt,jt,Vt,Bt,Ut,Wt,_,Yt,zt,Gt,qt,Xt,Kt,Zt,Jt,Qt,en,tn,nn,an,t,rn,on,sn,ln,un,cn,dn,fn,hn,pn,mn,u,gn,vn,_n,yn,bn,kn,wn,Sn,xn,Cn,Tn,En,An,On,Mn,Ln,In,Dn,Pn,Rn,$n,Hn,Fn,Nn,r,jn,Vn,Bn,Un,Wn,Yn,zn,Gn,qn,n,Xn,Kn,Zn,Jn,Qn,ei,ti,ni,ii,ai,p,ri,oi,si,li,ui,ci,di,fi,hi,pi,mi,gi,m,vi,_i,yi,bi,ki,wi,Si,xi,Ci,Ti,Ei,Ai,Oi,Mi,Li,Ii,Di,Pi,Ri,$i,Hi,Fi,Ni,ji,Vi,Bi,Ui,Wi,Yi,zi,Gi,qi,Xi,y,Ki,Zi,Ji,Qi,ea,ta,na,ia,aa,ra,oa,sa,la,ua,ca,da,fa,ha,pa,C,ma,ga,va,_a,ya,ba,ka,wa,Sa,xa,Ca,Ta,Ea,Aa,Oa,Ma,La,Ia,Da,Pa,Ra,$a,Ha,Fa,Na,ja,Va,Ba,Ua,Wa,Ya,za,Ga,qa,Xa,Ka,Za,Ja,Qa,er,tr,nr,ir,ar,rr,or,sr,lr,ur,cr,dr,fr,a,hr,pr,mr,gr,vr,_r,yr,br,kr,M,wr,Sr,xr,Cr,Tr,Er,Ar,Or,L,Mr,Lr,Ir,o,Dr,Pr,Rr,$r,s,Hr,l,Fr,Nr,jr,Vr,h,Br,Ur,Wr,Yr,zr,c,Gr,qr,d,f,Xr,k,Kr,R,Zr,Jr,Qr,eo,to,no,io=b.Axis=ao;function ao(){this.init.apply(this,arguments)}return c=e.Axis,g=e.Date,$t=e.dateFormat,Ht=e.defaultOptions,Ft=e.defined,Nt=e.each,jt=e.extend,Vt=e.getMagnitude,Bt=e.getTZOffset,Ut=e.normalizeTickInterval,Wt=e.pick,_=e.timeUnits,c.prototype.getTimeTicks=function(e,t,n,i){var a,r,o,s=[],l={},u=Ht.global.useUTC,c=new g(t-Math.max(Bt(t),Bt(n))),d=g.hcMakeTime,f=e.unitRange,h=e.count;if(Ft(t)){c[g.hcSetMilliseconds](f>=_.second?0:h*Math.floor(c.getMilliseconds()/h)),f>=_.second&&c[g.hcSetSeconds](f>=_.minute?0:h*Math.floor(c.getSeconds()/h)),f>=_.minute&&c[g.hcSetMinutes](f>=_.hour?0:h*Math.floor(c[g.hcGetMinutes]()/h)),f>=_.hour&&c[g.hcSetHours](f>=_.day?0:h*Math.floor(c[g.hcGetHours]()/h)),f>=_.day&&c[g.hcSetDate](f>=_.month?1:h*Math.floor(c[g.hcGetDate]()/h)),f>=_.month&&(c[g.hcSetMonth](f>=_.year?0:h*Math.floor(c[g.hcGetMonth]()/h)),a=c[g.hcGetFullYear]()),f>=_.year&&c[g.hcSetFullYear](a-a%h),f===_.week&&c[g.hcSetDate](c[g.hcGetDate]()-c[g.hcGetDay]()+Wt(i,1)),a=c[g.hcGetFullYear](),i=c[g.hcGetMonth]();var p=c[g.hcGetDate](),m=c[g.hcGetHours]();for((g.hcTimezoneOffset||g.hcGetTimezoneOffset)&&(o=(!u||!!g.hcGetTimezoneOffset)&&(n-t>4*_.month||Bt(t)!==Bt(n)),c=c.getTime(),r=Bt(c),c=new g(c+r)),u=c.getTime(),t=1;u<n;)s.push(u),u=f===_.year?d(a+t*h,0):f===_.month?d(a,i+t*h):!o||f!==_.day&&f!==_.week?o&&f===_.hour?d(a,i,p,m+t*h,0,0,r)-r:u+f*h:d(a,i,p+t*h*(f===_.day?1:7)),t++;s.push(u),f<=_.hour&&s.length<1e4&&Nt(s,function(e){0==e%18e5&&"000000000"===$t("%H%M%S%L",e)&&(l[e]="day")})}return s.info=jt(e,{higherRanks:l,totalRange:f*h}),s},c.prototype.normalizeTimeTickInterval=function(e,t){for(var n=t||[["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]],i=(t=n[n.length-1],_[t[0]]),a=t[1],r=0;r<n.length&&(t=n[r],i=_[t[0]],a=t[1],!(n[r+1]&&e<=(i*a[a.length-1]+_[n[r+1][0]])/2));r++);return i===_.year&&e<5*i&&(a=[1,2,5]),{unitRange:i,count:e=Ut(e/i,a,"year"===t[0]?Math.max(Vt(e/i),1):1),unitName:t[0]}},l=e.Axis,Yt=e.getMagnitude,zt=e.map,Gt=e.normalizeTickInterval,qt=e.pick,l.prototype.getLogTickPositions=function(e,t,n,i){var a=this.options,r=this.len,o=this.lin2log,s=this.log2lin,l=[];
1if(i||(this._minorAutoInterval=null),.5<=e)e=Math.round(e),l=this.getLinearTickPositions(e,t,n);else if(.08<=e)for(var u,c,d,f,h,r=Math.floor(t),a=.3<e?[1,2,4]:.15<e?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];r<n+1&&!h;r++)for(c=a.length,u=0;u<c&&!h;u++)t<(d=s(o(r)*a[u]))&&(!i||f<=n)&&void 0!==f&&l.push(f),n<f&&(h=!0),f=d;else t=o(t),n=o(n),e=a[i?"minorTickInterval":"tickInterval"],e=qt("auto"===e?null:e,this._minorAutoInterval,a.tickPixelInterval/(i?5:1)*(n-t)/((i?r/this.tickPositions.length:r)||1)),e=Gt(e,null,Yt(e)),l=zt(this.getLinearTickPositions(e,t,n),s),i||(this._minorAutoInterval=e/5);return i||(this.tickInterval=e),l},l.prototype.log2lin=function(e){return Math.log(e)/Math.LN10},l.prototype.lin2log=function(e){return Math.pow(10,e)},f=io,Kt=(Xt=e).arrayMax,Zt=Xt.arrayMin,Jt=Xt.defined,Qt=Xt.destroyObjectProperties,en=Xt.each,tn=Xt.erase,nn=Xt.merge,an=Xt.pick,Xt.PlotLineOrBand=function(e,t){this.axis=e,t&&(this.options=t,this.id=t.id)},Xt.PlotLineOrBand.prototype={render:function(){var n=this,e=n.axis,t=e.horiz,i=n.options,a=i.label,r=n.label,o=i.to,s=i.from,l=i.value,u=Jt(s)&&Jt(o),c=Jt(l),d=n.svgElem,f=!d,h=[],p=i.color,m=an(i.zIndex,0),g=i.events,h={class:"highcharts-plot-"+(u?"band ":"line ")+(i.className||"")},v={},_=e.chart.renderer,y=u?"bands":"lines",b=e.log2lin;if(e.isLog&&(s=b(s),o=b(o),l=b(l)),c?(h={stroke:p,"stroke-width":i.width},i.dashStyle&&(h.dashstyle=i.dashStyle)):u&&(p&&(h.fill=p),i.borderWidth)&&(h.stroke=i.borderColor,h["stroke-width"]=i.borderWidth),(p=e.plotLinesAndBandsGroups[y+="-"+(v.zIndex=m)])||(e.plotLinesAndBandsGroups[y]=p=_.g("plot-"+y).attr(v).add()),f&&(n.svgElem=d=_.path().attr(h).add(p)),c)h=e.getPlotLinePath(l,d.strokeWidth());else{if(!u)return;h=e.getPlotBandPath(s,o,i)}return f&&h&&h.length?(d.attr({d:h}),g&&Xt.objectEach(g,function(e,t){d.on(t,function(e){g[t].apply(n,[e])})})):d&&(h?(d.show(),d.animate({d:h})):(d.hide(),r&&(n.label=r=r.destroy()))),a&&Jt(a.text)&&h&&h.length&&0<e.width&&0<e.height&&!h.flat?(a=nn({align:t&&u&&"center",x:t?!u&&4:10,verticalAlign:!t&&u&&"middle",y:t?u?16:10:u?6:-4,rotation:t&&!u&&90},a),this.renderLabel(a,h,u,m)):r&&r.hide(),n},renderLabel:function(e,t,n,i){var a=this.label,r=this.axis.chart.renderer;a||((a={align:e.textAlign||e.align,rotation:e.rotation,class:"highcharts-plot-"+(n?"band":"line")+"-label "+(e.className||"")}).zIndex=i,this.label=a=r.text(e.text,0,0,e.useHTML).attr(a).add(),a.css(e.style)),i=[t[1],t[4],n?t[6]:t[1]],t=[t[2],t[5],n?t[7]:t[2]],n=Zt(i),r=Zt(t),a.align(e,!1,{x:n,y:r,width:Kt(i)-n,height:Kt(t)-r}),a.show()},destroy:function(){tn(this.axis.plotLinesAndBands,this),delete this.axis,Qt(this)}},Xt.extend(f.prototype,{getPlotBandPath:function(e,t){var n=this.getPlotLinePath(t,null,null,!0),i=this.getPlotLinePath(e,null,null,!0),a=this.horiz,r=1;return e=e<this.min&&t<this.min||e>this.max&&t>this.max,i&&n?(e&&(i.flat=i.toString()===n.toString(),r=0),i.push(a&&n[4]===i[4]?n[4]+r:n[4],a||n[5]!==i[5]?n[5]:n[5]+r,a&&n[1]===i[1]?n[1]+r:n[1],a||n[2]!==i[2]?n[2]:n[2]+r)):i=null,i},addPlotBand:function(e){return this.addPlotBandOrLine(e,"plotBands")},addPlotLine:function(e){return this.addPlotBandOrLine(e,"plotLines")},addPlotBandOrLine:function(e,t){var n=new Xt.PlotLineOrBand(this,e).render(),i=this.userOptions;return n&&(t&&(i[t]=i[t]||[],i[t].push(e)),this.plotLinesAndBands.push(n)),n},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,n=this.options,i=this.userOptions,a=e.length;a--;)e[a].id===t&&e[a].destroy();en([n.plotLines||[],i.plotLines||[],n.plotBands||[],i.plotBands||[]],function(e){for(a=e.length;a--;)e[a].id===t&&tn(e,e[a])})},removePlotBand:function(e){this.removePlotBandOrLine(e)},removePlotLine:function(e){this.removePlotBandOrLine(e)}}),rn=(t=e).dateFormat,on=t.each,sn=t.extend,ln=t.format,un=t.isNumber,cn=t.map,dn=t.merge,fn=t.pick,hn=t.splat,pn=t.syncTimeout,mn=t.timeUnits,t.Tooltip=function(){this.init.apply(this,arguments)},t.Tooltip.prototype={init:function(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=t.split&&!e.inverted,this.shared=t.shared||this.split},cleanSplit:function(n){on(this.chart.series,function(e){var t=e&&e.tt;t&&(!t.isActive||n?e.tt=t.destroy():t.isActive=!1)})},getLabel:function(){var e=this.chart.renderer,t=this.options;return this.label||(this.split?this.label=e.g("tooltip"):(this.label=e.label("",0,0,t.shape||"callout",null,null,t.useHTML,null,"tooltip").attr({padding:t.padding,r:t.borderRadius}),this.label.attr({fill:t.backgroundColor,"stroke-width":t.borderWidth}).css(t.style).shadow(t.shadow)),this.label.attr({zIndex:8}).add()),this.label},update:function(e){this.destroy(),dn(!0,this.chart.options.tooltip.userOptions,e),this.init(this.chart,dn(!0,this.options,e))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt
1=this.tt.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(e,t,n,i){var a=this,r=a.now,o=!1!==a.options.animation&&!a.isHidden&&(1<Math.abs(e-r.x)||1<Math.abs(t-r.y)),s=a.followPointer||1<a.len;sn(r,{x:o?(2*r.x+e)/3:e,y:o?(r.y+t)/2:t,anchorX:s?void 0:o?(2*r.anchorX+n)/3:n,anchorY:s?void 0:o?(r.anchorY+i)/2:i}),a.getLabel().attr(r),o&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){a&&a.move(e,t,n,i)},32))},hide:function(e){var t=this;clearTimeout(this.hideTimer),e=fn(e,this.options.hideDelay,500),this.isHidden||(this.hideTimer=pn(function(){t.getLabel()[e?"fadeOut":"hide"](),t.isHidden=!0},e))},getAnchor:function(e,t){var n,i,a=this.chart,r=a.inverted,o=a.plotTop,s=a.plotLeft,l=0,u=0,c=(e=hn(e))[0].tooltipPos;return(c=this.followPointer&&t?[(t=void 0===t.chartX?a.pointer.normalize(t):t).chartX-a.plotLeft,t.chartY-o]:c)||(on(e,function(e){n=e.series.yAxis,i=e.series.xAxis,l+=e.plotX+(!r&&i?i.left-s:0),u+=(e.plotLow?(e.plotLow+e.plotHigh)/2:e.plotY)+(!r&&n?n.top-o:0)}),l/=e.length,u/=e.length,c=[r?a.plotWidth-u:l,this.shared&&!r&&1<e.length&&t?t.chartY-o:r?a.plotHeight-l:u]),cn(c,Math.round)},getPosition:function(e,t,n){function i(){!1!==l.apply(0,o)?!1!==h.apply(0,s)||a||(p(!0),i()):a?c.x=c.y=0:(p(!0),i())}var a,r=this.chart,u=this.distance,c={},d=n.h||0,o=["y",r.chartHeight,t,n.plotY+r.plotTop,r.plotTop,r.plotTop+r.plotHeight],s=["x",r.chartWidth,e,n.plotX+r.plotLeft,r.plotLeft,r.plotLeft+r.plotWidth],f=!this.followPointer&&fn(n.ttBelow,!r.inverted==!!n.negative),l=function(e,t,n,i,a,r){var o=n<i-u,s=i+u+n<t,l=i-u-n;if(i+=u,f&&s)c[e]=i;else if(!f&&o)c[e]=l;else if(o)c[e]=Math.min(r-n,l-d<0?l:l-d);else{if(!s)return!1;c[e]=Math.max(a,t<i+d+n?i:i+d)}},h=function(e,t,n,i){var a;return i<u||t-u<i?a=!1:c[e]=i<n/2?1:t-n/2<i?t-n-2:i-n/2,a},p=function(e){var t=o;o=s,s=t,a=e};return(r.inverted||1<this.len)&&p(),i(),c},defaultFormatter:function(e){var t=this.points||hn(this),n=[e.tooltipFooterHeaderFormatter(t[0])];return(n=n.concat(e.bodyFormatter(t))).push(e.tooltipFooterHeaderFormatter(t[0],!0)),n},refresh:function(e,t){var n,i,a,r=this.options,o=e,s={},l=[],u=r.formatter||this.defaultFormatter,s=this.shared;r.enabled&&(clearTimeout(this.hideTimer),this.followPointer=hn(o)[0].series.tooltipOptions.followPointer,t=(i=this.getAnchor(o,t))[0],n=i[1],!s||o.series&&o.series.noSharedTooltip?s=o.getLabelConfig():(on(o,function(e){e.setState("hover"),l.push(e.getLabelConfig())}),(s={x:o[0].category,y:o[0].y}).points=l,o=o[0]),this.len=l.length,s=u.call(s,this),a=o.series,this.distance=fn(a.tooltipOptions.distance,16),!1===s?this.hide():(u=this.getLabel(),this.isHidden&&u.attr({opacity:1}).show(),this.split?this.renderSplit(s,e):(r.style.width||u.css({width:this.chart.spacingBox.width}),u.attr({text:s&&s.join?s.join(""):s}),u.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+fn(o.colorIndex,a.colorIndex)),u.attr({stroke:r.borderColor||o.color||a.color||"#666666"}),this.updatePosition({plotX:t,plotY:n,negative:o.negative,ttBelow:o.ttBelow,h:i[2]||0})),this.isHidden=!1))},renderSplit:function(e,o){var s=this,l=[],u=this.chart,c=u.renderer,d=!0,f=this.options,h=0,p=this.getLabel();on(e.slice(0,o.length+1),function(e,t){var n,i,a,r;!1!==e&&(i=(n=(t=o[t-1]||{isHeader:!0,plotX:o[0].plotX}).series||s).tt,a=t.series||{},r="highcharts-color-"+fn(t.colorIndex,a.colorIndex,"none"),i||(n.tt=i=c.label(null,null,null,"callout").addClass("highcharts-tooltip-box "+r).attr({padding:f.padding,r:f.borderRadius,fill:f.backgroundColor,stroke:f.borderColor||t.color||a.color||"#333333","stroke-width":f.borderWidth}).add(p)),i.isActive=!0,i.attr({text:e}),i.css(f.style).shadow(f.shadow),a=(e=i.getBBox()).width+i.strokeWidth(),(a=t.isHeader?(h=e.height,Math.max(0,Math.min(t.plotX+u.plotLeft-a/2,u.chartWidth-a))):t.plotX+u.plotLeft-fn(f.distance,16)-a)<0&&(d=!1),e=(t.series&&t.series.yAxis&&t.series.yAxis.pos)+(t.plotY||0),e-=u.plotTop,l.push({target:t.isHeader?u.plotHeight+h:e,rank:t.isHeader?1:0,size:n.tt.getBBox().height+1,point:t,x:a,tt:i}))}),this.cleanSplit(),t.distribute(l,u.plotHeight+h),on(l,function(e){var t=e.point,n=t.series;e.tt.attr({visibility:void 0===e.pos?"hidden":"inherit",x:d||t.isHeader?e.x:t.plotX+u.plotLeft+fn(f.distance,16),y:e.pos+u.plotTop,anchorX:t.isHeader?t.plotX+u.plotLeft:t.plotX+n.xAxis.pos,anchorY:t.isHeader?e.pos+u.plotTop-15:t.plotY+n.yAxis.pos})})},updatePosition:function(e){var t=this.chart,n=this.getLabel(),n=(this.options.positioner||this.getPosition).call(this,n.width,n.height,e);
1this.move(Math.round(n.x),Math.round(n.y||0),e.plotX+t.plotLeft,e.plotY+t.plotTop)},getDateFormat:function(e,t,n,i){var a,r,o=rn("%m-%d %H:%M:%S.%L",t),s={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond";for(r in mn){if(e===mn.week&&+rn("%w",t)===n&&"00:00:00.000"===o.substr(6)){r="week";break}if(mn[r]>e){r=l;break}if(s[r]&&o.substr(s[r])!=="01-01 00:00:00.000".substr(s[r]))break;"week"!==r&&(l=r)}return a=r?i[r]:a},getXDateFormat:function(e,t,n){t=t.dateTimeLabelFormats;var i=n&&n.closestPointRange;return(i?this.getDateFormat(i,e.x,n.options.startOfWeek,t):t.day)||t.year},tooltipFooterHeaderFormatter:function(e,t){var n=t?"footer":"header",i=(t=e.series).tooltipOptions,a=i.xDateFormat,r=t.xAxis,o=r&&"datetime"===r.options.type&&un(e.key),n=i[n+"Format"];return o&&!a&&(a=this.getXDateFormat(e,i,r)),o&&a&&(n=n.replace("{point.key}","{point.key:"+a+"}")),ln(n,{point:e,series:t})},bodyFormatter:function(e){return cn(e,function(e){var t=e.series.tooltipOptions;return(t.pointFormatter||e.point.tooltipFormatter).call(e.point,t.pointFormat)})}},gn=(u=e).addEvent,vn=u.attr,_n=u.charts,yn=u.color,bn=u.css,kn=u.defined,wn=u.each,Sn=u.extend,xn=u.find,Cn=u.fireEvent,Tn=u.isObject,En=u.offset,An=u.pick,On=u.removeEvent,Mn=u.splat,Ln=u.Tooltip,In=u.win,u.Pointer=function(e,t){this.init(e,t)},u.Pointer.prototype={init:function(e,t){this.options=t,this.chart=e,this.runChartClick=t.chart.events&&!!t.chart.events.click,this.pinchDown=[],this.lastValidTouch={},Ln&&(e.tooltip=new Ln(e,t.tooltip),this.followTouchMove=An(t.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(e){var t=(i=this.chart).options.chart,n=t.zoomType||"",i=i.inverted;/touch/.test(e.type)&&(n=An(t.pinchType,n)),this.zoomX=e=/x/.test(n),this.zoomY=n=/y/.test(n),this.zoomHor=e&&!i||n&&i,this.zoomVert=n&&!i||e&&i,this.hasZoom=e||n},normalize:function(e,t){var n,i;return(e=e||In.event).target||(e.target=e.srcElement),i=e.touches?e.touches.length?e.touches.item(0):e.changedTouches[0]:e,t||(this.chartPosition=t=En(this.chart.container)),t=void 0===i.pageX?(n=Math.max(e.x,e.clientX-t.left),e.y):(n=i.pageX-t.left,i.pageY-t.top),Sn(e,{chartX:Math.round(n),chartY:Math.round(t)})},getCoordinates:function(t){var n={xAxis:[],yAxis:[]};return wn(this.chart.axes,function(e){n[e.isXAxis?"xAxis":"yAxis"].push({axis:e,value:e.toValue(t[e.horiz?"chartX":"chartY"])})}),n},findNearestKDPoint:function(e,a,r){var o;return wn(e,function(e){var t,n,i=!(e.noSharedTooltip&&a)&&e.options.findNearestPointBy.indexOf("y")<0;e=e.searchPoint(r,i),(i=Tn(e,!0))&&!(i=!Tn(o,!0))&&(i=o.distX-e.distX,t=o.dist-e.dist,n=(e.series.group&&e.series.group.zIndex)-(o.series.group&&o.series.group.zIndex),i=0<(0!==i&&a?i:0!=t?t:0!=n?n:o.series.index>e.series.index?-1:1)),i&&(o=e)}),o},getPointFromEvent:function(e){e=e.target;for(var t;e&&!t;)t=e.point,e=e.parentNode;return t},getChartCoordinatesFromPoint:function(e,t){var n=(i=e.series).xAxis,i=i.yAxis;if(n&&i)return t?{chartX:n.len+n.pos-e.clientX,chartY:i.len+i.pos-e.plotY}:{chartX:e.clientX+n.pos,chartY:e.plotY+i.pos}},getHoverData:function(e,t,n,i,a,r){var o,s=[],l=(i=!(!i||!e),t&&!t.stickyTracking?[t]:u.grep(n,function(e){return e.visible&&!(!a&&e.directTouch)&&An(e.options.enableMouseTracking,!0)&&e.stickyTracking}));return t=(o=i?e:this.findNearestKDPoint(l,a,r))&&o.series,o&&(a&&!t.noSharedTooltip?(l=u.grep(n,function(e){return e.visible&&!(!a&&e.directTouch)&&An(e.options.enableMouseTracking,!0)&&!e.noSharedTooltip}),wn(l,function(e){e=xn(e.points,function(e){return e.x===o.x}),Tn(e)&&!e.isNull&&s.push(e)})):s.push(o)),{hoverPoint:o,hoverSeries:t,hoverPoints:s}},runPointActions:function(i,e){var t=this.chart,n=t.tooltip,a=!!n&&n.shared,r=(o=e||t.hoverPoint)&&o.series||t.hoverSeries,o=(r=this.getHoverData(o,r,t.series,!!e||r&&r.directTouch&&this.isDirectTouch,a,i)).hoverPoint,s=r.hoverPoints;e=(r=r.hoverSeries)&&r.tooltipOptions.followPointer,a=a&&r&&!r.noSharedTooltip,o&&(o!==t.hoverPoint||n&&n.isHidden)?(wn(t.hoverPoints||[],function(e){-1===u.inArray(e,s)&&e.setState()}),wn(s||[],function(e){e.setState("hover")}),t.hoverSeries!==r&&r.onMouseOver(),t.hoverPoint&&t.hoverPoint.firePointEvent("mouseOut"),o.firePointEvent("mouseOver"),t.hoverPoints=s,t.hoverPoint=o,n&&n.refresh(a?s:o,i)):e&&n&&!n.isHidden&&(o=n.getAnchor([{}],i),n.updatePosition({plotX:o[0],plotY:o[1]})),this.unDocMouseMove||(this.unDocMouseMove=gn(t.container.ownerDocument,"mousemove",function(e){var t=_n[u.hoverChartIndex];t&&t.pointer.onDocumentMouseMove(e)})),wn(t.axes,function(t){var e=An(t.crosshair.snap,!0),n=e?u.find(s,function(e){return e.series[t.coll]===t}):void 0;n||!e?t.drawCrosshair(i,n):t.hideCrosshair()})},reset:function(t,e){var n=this.chart,i=n.hoverSeries,a=n.hoverPoint,r=n.hoverPoints,o=n.tooltip,s=o&&o.shared?r:a;t&&s&&wn(Mn(s),function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?o&&s&&(o.refresh(s),a)&&(a.setState(a.state,!0),wn(n.axes,function(e){e.crosshair&&e.drawCrosshair(null,a)})):(a&&a.onMouseOut(),r&&wn(r,function(e){e.setState()}),i&&i.onMouseOut(),o&&o.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),wn(n.axes,function(e){e.hideCrosshair()}),this.hoverX=n.hoverPoints=n.hoverPoint=null)},scaleGroups:function(t,n){var i,a=this.chart;wn(a.series,function(e){i=t||e.getPlotBox(),e.xAxis&&e.xAxis.zoomEnabled&&e.group&&(e.group.attr(i),e.markerGroup&&(e.markerGroup.attr(i),e.markerGroup.clip(n?a.clipRect:null)),e.dataLabelsGroup)&&e.dataLabelsGroup.attr(i)}),a.clipRect.attr(n||a.clipBox)},dragStart:function(e){var t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=this.mouseDownX=e.chartX,t.mouseDownY=this.mouseDownY=e.chartY},drag:function(e){var t,n=this.chart,i=n.options.chart,a=e.chartX,r=e.chartY,o=this.zoomHor,s=this.zoomVert,l=n.plotLeft,u=n.plotTop,c=n.plotWidth,d=n.plotHeight,f=this.selectionMarker,h=this.mouseDownX,p=this.mouseDownY,m=i.panKey&&e[i.panKey+"Key"];f&&f.touch||(a<l?a=l:l+c<a&&(a=l+c),r<u?r=u:u+d<r&&(r=u+d),this.hasDragged=Math.sqrt(Math.pow(h-a,2)+Math.pow(p-r,2)),10<this.hasDragged&&(t=n.isInsidePlot(h-l,p-u),n.hasCartesianSeries&&(this.zoomX||this.zoomY)&&t&&!m&&!f&&(this.selectionMarker=f=n.renderer.rect(l,u,o?1:c,s?1:d,0).attr({fill:i.selectionMarkerFill||yn("#335cad").setOpacity(.25).get(),class:"highcharts-selection-marker",zIndex:7}).add()),f&&o&&(a-=h,f.attr({width:Math.abs(a),x:(0<a?0:a)+h})),f&&s&&(a=r-p,f.attr({height:Math.abs(a),y:(0<a?0:a)+p})),t)&&!f&&i.panning&&n.pan(e,i.panning))},drop:function(a){var r,e,o,s,l,u,c,d=this,t=this.chart,f=this.hasPinched;this.selectionMarker&&(r={originalEvent:a,xAxis:[],yAxis:[]},e=this.selectionMarker,o=e.attr?e.attr("x"):e.x,s=e.attr?e.attr("y"):e.y,l=e.attr?e.attr("width"):e.width,u=e.attr?e.attr("height"):e.height,(this.hasDragged||f)&&(wn(t.axes,function(e){var t,n,i;e.zoomEnabled&&kn(e.min)&&(f||d[{xAxis:"zoomX",yAxis:"zoomY"}[e.coll]])&&(i=e.horiz,t="touchend"===a.type?e.minPixelPadding:0,n=e.toValue((i?o:s)+t),i=e.toValue((i?o+l:s+u)-t),r[e.coll].push({axis:e,min:Math.min(n,i),max:Math.max(n,i)}),c=!0)}),c)&&Cn(t,"selection",r,function(e){t.zoom(Sn(e,f?{animation:!1}:null))}),this.selectionMarker=this.selectionMarker.destroy(),f)&&this.scaleGroups(),t&&(bn(t.container,{cursor:t._cursor}),t.cancelClick=10<this.hasDragged,t.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(e){e=this.normalize(e),this.zoomOption(e),e.preventDefault&&e.preventDefault(),this.dragStart(e)},onDocumentMouseUp:function(e){_n[u.hoverChartIndex]&&_n[u.hoverChartIndex].pointer.drop(e)},onDocumentMouseMove:function(e){var t=this.chart,n=this.chartPosition;e=this.normalize(e,n),!n||this.inClass(e.target,"highcharts-tracker")||t.isInsidePlot(e.chartX-t.plotLeft,e.chartY-t.plotTop)||this.reset()},onContainerMouseLeave:function(e){var t=_n[u.hoverChartIndex];t&&(e.relatedTarget||e.toElement)&&(t.pointer.reset(),t.pointer.chartPosition=null)},onContainerMouseMove:function(e){var t=this.chart;kn(u.hoverChartIndex)&&_n[u.hoverChartIndex]&&_n[u.hoverChartIndex].mouseIsDown||(u.hoverChartIndex=t.index),(e=this.normalize(e)).returnValue=!1,"mousedown"===t.mouseIsDown&&this.drag(e),!this.inClass(e.target,"highcharts-tracker")&&!t.isInsidePlot(e.chartX-t.plotLeft,e.chartY-t.plotTop)||t.openMenu||this.runPointActions(e)},inClass:function(e,t){for(var n;e;){if(n=vn(e,"class")){if(-1!==n.indexOf(t))return!0;
1if(-1!==n.indexOf("highcharts-container"))return!1}e=e.parentNode}},onTrackerMouseOut:function(e){var t=this.chart.hoverSeries;e=e.relatedTarget||e.toElement,this.isDirectTouch=!1,!t||!e||t.stickyTracking||this.inClass(e,"highcharts-tooltip")||this.inClass(e,"highcharts-series-"+t.index)&&this.inClass(e,"highcharts-tracker")||t.onMouseOut()},onContainerClick:function(e){var t=this.chart,n=t.hoverPoint,i=t.plotLeft,a=t.plotTop;e=this.normalize(e),t.cancelClick||(n&&this.inClass(e.target,"highcharts-tracker")?(Cn(n.series,"click",Sn(e,{point:n})),t.hoverPoint&&n.firePointEvent("click",e)):(Sn(e,this.getCoordinates(e)),t.isInsidePlot(e.chartX-i,e.chartY-a)&&Cn(t,"click",e)))},setDOMEvents:function(){var t=this,e=t.chart.container,n=e.ownerDocument;e.onmousedown=function(e){t.onContainerMouseDown(e)},e.onmousemove=function(e){t.onContainerMouseMove(e)},e.onclick=function(e){t.onContainerClick(e)},gn(e,"mouseleave",t.onContainerMouseLeave),1===u.chartCount&&gn(n,"mouseup",t.onDocumentMouseUp),u.hasTouch&&(e.ontouchstart=function(e){t.onContainerTouchStart(e)},e.ontouchmove=function(e){t.onContainerTouchMove(e)},1===u.chartCount)&&gn(n,"touchend",t.onDocumentTouchEnd)},destroy:function(){var n=this,e=this.chart.container.ownerDocument;n.unDocMouseMove&&n.unDocMouseMove(),On(n.chart.container,"mouseleave",n.onContainerMouseLeave),u.chartCount||(On(e,"mouseup",n.onDocumentMouseUp),u.hasTouch&&On(e,"touchend",n.onDocumentTouchEnd)),clearInterval(n.tooltipTimeout),u.objectEach(n,function(e,t){n[t]=null})}},Pn=(Dn=e).charts,Rn=Dn.each,$n=Dn.extend,Hn=Dn.map,Fn=Dn.noop,Nn=Dn.pick,$n(Dn.Pointer.prototype,{pinchTranslate:function(e,t,n,i,a,r){this.zoomHor&&this.pinchTranslateDirection(!0,e,t,n,i,a,r),this.zoomVert&&this.pinchTranslateDirection(!1,e,t,n,i,a,r)},pinchTranslateDirection:function(e,t,n,i,a,r,o,s){var l,u,c,d=this.chart,f=e?"x":"y",h=e?"X":"Y",p="chart"+h,m=e?"width":"height",g=d["plot"+(e?"Left":"Top")],v=s||1,_=d.inverted,y=d.bounds[e?"h":"v"],b=1===t.length,k=t[0][p],w=n[0][p],S=!b&&t[1][p],x=!b&&n[1][p];(n=function(){!b&&20<Math.abs(k-S)&&(v=s||Math.abs(w-x)/Math.abs(k-S)),u=(g-w)/v+k,l=d["plot"+(e?"Width":"Height")]/v})(),(t=u)<y.min?(t=y.min,c=!0):t+l>y.max&&(t=y.max-l,c=!0),c?(w-=.8*(w-o[f][0]),b||(x-=.8*(x-o[f][1])),n()):o[f]=[w,x],_||(r[f]=u-g,r[m]=l),r=_?1/v:v,a[m]=l,a[f]=t,i[_?e?"scaleY":"scaleX":"scale"+h]=v,i["translate"+h]=r*g+(w-r*k)},pinch:function(e){var t=this,o=t.chart,n=t.pinchDown,i=e.touches,a=i.length,r=t.lastValidTouch,s=t.hasZoom,l=t.selectionMarker,u={},c=1===a&&(t.inClass(e.target,"highcharts-tracker")&&o.runTrackerClick||t.runChartClick),d={};1<a&&(t.initiated=!0),s&&t.initiated&&!c&&e.preventDefault(),Hn(i,function(e){return t.normalize(e)}),"touchstart"===e.type?(Rn(i,function(e,t){n[t]={chartX:e.chartX,chartY:e.chartY}}),r.x=[n[0].chartX,n[1]&&n[1].chartX],r.y=[n[0].chartY,n[1]&&n[1].chartY],Rn(o.axes,function(e){var t,n,i,a,r;e.zoomEnabled&&(t=o.bounds[e.horiz?"h":"v"],n=e.minPixelPadding,i=e.toPixels(Nn(e.options.min,e.dataMin)),a=e.toPixels(Nn(e.options.max,e.dataMax)),r=Math.max(i,a),t.min=Math.min(e.pos,Math.min(i,a)-n),t.max=Math.max(e.pos+e.len,r+n))}),t.res=!0):t.followTouchMove&&1===a?this.runPointActions(t.normalize(e)):n.length&&(l||(t.selectionMarker=l=$n({destroy:Fn,touch:!0},o.plotBox)),t.pinchTranslate(n,i,u,l,d,r),t.hasPinched=s,t.scaleGroups(u,d),t.res)&&(t.res=!1,this.reset(!1,0))},touch:function(e,t){var n,i=this.chart;i.index!==Dn.hoverChartIndex&&this.onContainerMouseLeave({relatedTarget:!0}),Dn.hoverChartIndex=i.index,1===e.touches.length?(e=this.normalize(e),i.isInsidePlot(e.chartX-i.plotLeft,e.chartY-i.plotTop)&&!i.openMenu?(t&&this.runPointActions(e),"touchmove"===e.type&&(n=!!(t=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(t[0].chartX-e.chartX,2)+Math.pow(t[0].chartY-e.chartY,2))),Nn(n,!0)&&this.pinch(e)):t&&this.reset()):2===e.touches.length&&this.pinch(e)},onContainerTouchStart:function(e){this.zoomOption(e),this.touch(e,!0)},onContainerTouchMove:function(e){this.touch(e)},onDocumentTouchEnd:function(e){Pn[Dn.hoverChartIndex]&&Pn[Dn.hoverChartIndex].pointer.drop(e)}}),Un=(r=e).addEvent,Wn=r.charts,Yn=r.css,zn=r.doc,d=r.extend,Gn=r.noop,o=r.Pointer,qn=r.removeEvent,k=r.win,R=r.wrap,r.hasTouch||!k.PointerEvent&&!k.MSPointerEvent||(jn={},Vn=!!k.PointerEvent,Bn=function(e,t,n,i){var a;"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!Wn[r.hoverChartIndex]||(i(e),(i=Wn[r.hoverChartIndex].pointer)[t]({type:n,target:e.currentTarget,preventDefault:Gn,touches:((a=[]).item=function(e){return this[e]},r.objectEach(jn,function(e){a.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),a)}))},d(o.prototype,{onContainerPointerDown:function(e){Bn(e,"onContainerTouchStart","touchstart",function(e){jn[e.pointerId]={pageX:e.pageX,pageY:e.pageY,target:e.currentTarget}})},onContainerPointerMove:function(e){Bn(e,"onContainerTouchMove","touchmove",function(e){jn[e.pointerId]={pageX:e.pageX,pageY:e.pageY},jn[e.pointerId].target||(jn[e.pointerId].target=e.currentTarget)})},onDocumentPointerUp:function(e){Bn(e,"onDocumentTouchEnd","touchend",function(e){delete jn[e.pointerId]})},batchMSEvents:function(e){e(this.chart.container,Vn?"pointerdown":"MSPointerDown",this.onContainerPointerDown),e(this.chart.container,Vn?"pointermove":"MSPointerMove",this.onContainerPointerMove),e(zn,Vn?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),R(o.prototype,"init",function(e,t,n){e.call(this,t,n),this.hasZoom&&Yn(t.container,{"-ms-touch-action":"none","touch-action":"none"})}),R(o.prototype,"setDOMEvents",function(e){e.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(Un)}),R(o.prototype,"destroy",function(e){this.batchMSEvents(qn),e.call(this)})),Xn=(n=e).addEvent,Kn=n.css,Zn=n.discardElement,Jn=n.defined,Qn=n.each,c=n.isFirefox,ei=n.marginNames,ti=n.merge,ni=n.pick,ii=n.setAnimation,ai=n.stableSort,l=n.win,io=n.wrap,n.Legend=function(e,t){this.init(e,t)},n.Legend.prototype={init:function(e,t){this.chart=e,this.setOptions(t),t.enabled&&(this.render(),Xn(this.chart,"endResize",function(){this.legend.positionCheckboxes()}))},setOptions:function(e){var t=ni(e.padding,8);this.options=e,this.itemStyle=e.itemStyle,this.itemHiddenStyle=ti(this.itemStyle,e.itemHiddenStyle),this.itemMarginTop=e.itemMarginTop||0,this.padding=t,this.initialItemY=t-5,this.itemHeight=this.maxItemWidth=0,this.symbolWi
1dth=ni(e.symbolWidth,16),this.pages=[]},update:function(e,t){var n=this.chart;this.setOptions(ti(!0,this.options,e)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,ni(t,!0)&&n.redraw()},colorizeItem:function(e,t){e.legendGroup[t?"removeClass":"addClass"]("highcharts-legend-item-hidden");var n=this.options,i=e.legendItem,a=e.legendLine,r=e.legendSymbol,o=this.itemHiddenStyle.color,n=t?n.itemStyle.color:o,s=t&&e.color||o,l=e.options&&e.options.marker,u={fill:s};i&&i.css({fill:n,color:n}),a&&a.attr({stroke:s}),r&&(l&&r.isMarker&&(u=e.pointAttribs(),t||(u.stroke=u.fill=o)),r.attr(u))},positionItem:function(e){var t=(n=this.options).symbolPadding,n=!n.rtl,i=(a=e._legendItemPos)[0],a=a[1],r=e.checkbox;(e=e.legendGroup)&&e.element&&e.translate(n?i:this.legendWidth-i-2*t-4,a),r&&(r.x=i,r.y=a)},destroyItem:function(t){var e=t.checkbox;Qn(["legendItem","legendLine","legendSymbol","legendGroup"],function(e){t[e]&&(t[e]=t[e].destroy())}),e&&Zn(t.checkbox)},destroy:function(){function t(e){this[e]&&(this[e]=this[e].destroy())}Qn(this.getAllItems(),function(e){Qn(["legendItem","legendGroup"],t,e)}),Qn("clipRect up down pager nav box title group".split(" "),t,this),this.display=null},positionCheckboxes:function(i){var a,r=this.group&&this.group.alignAttr,o=this.clipHeight||this.legendHeight,s=this.titleHeight;r&&(a=r.translateY,Qn(this.allItems,function(e){var t,n=e.checkbox;n&&(t=a+s+n.y+(i||0)+3,Kn(n,{left:r.translateX+e.checkboxOffset+n.x-20+"px",top:t+"px",display:a-6<t&&t<a+o-6?"":"none"}))}))},renderTitle:function(){var e=this.options,t=this.padding,n=e.title,i=0;n.text&&(this.title||(this.title=this.chart.renderer.label(n.text,t-3,t-4,null,null,null,e.useHTML,null,"legend-title").attr({zIndex:1}).css(n.style).add(this.group)),i=(e=this.title.getBBox()).height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:i})),this.titleHeight=i},setText:function(e){var t=this.options;e.legendItem.attr({text:t.labelFormat?n.format(t.labelFormat,e):t.labelFormatter.call(e)})},renderItem:function(e){var t=this.chart,n=t.renderer,i=this.options,a="horizontal"===i.layout,r=this.symbolWidth,o=i.symbolPadding,s=this.itemStyle,l=this.itemHiddenStyle,u=this.padding,c=a?ni(i.itemDistance,20):0,d=!i.rtl,f=i.width,h=i.itemMarginBottom||0,p=this.itemMarginTop,m=e.legendItem,g=!e.series,v=!g&&e.series.drawLegendSymbol?e.series:e,_=v.options,y=this.createCheckboxForItem&&_&&_.showCheckbox,_=r+o+c+(y?20:0),b=i.useHTML,k=e.options.className;m||(e.legendGroup=n.g("legend-item").addClass("highcharts-"+v.type+"-series highcharts-color-"+e.colorIndex+(k?" "+k:"")+(g?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.legendItem=m=n.text("",d?r+o:-o,this.baseline||0,b).css(ti(e.visible?s:l)).attr({align:d?"left":"right",zIndex:2}).add(e.legendGroup),this.baseline||(r=s.fontSize,this.fontMetrics=n.fontMetrics(r,m),this.baseline=this.fontMetrics.f+3+p,m.attr("y",this.baseline)),this.symbolHeight=i.symbolHeight||this.fontMetrics.f,v.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,m,b),y&&this.createCheckboxForItem(e)),this.colorizeItem(e,e.visible),s.width||m.css({width:(i.itemWidth||i.width||t.spacingBox.width)-_}),this.setText(e),n=m.getBBox(),s=e.checkboxOffset=i.itemWidth||e.legendItemWidth||n.width+_,this.itemHeight=n=Math.round(e.legendItemHeight||n.height||this.symbolHeight),a&&this.itemX-u+s>(f||t.spacingBox.width-2*u-i.x)&&(this.itemX=u,this.itemY+=p+this.lastLineHeight+h,this.lastLineHeight=0),this.maxItemWidth=Math.max(this.maxItemWidth,s),this.lastItemY=p+this.itemY+h,this.lastLineHeight=Math.max(n,this.lastLineHeight),e._legendItemPos=[this.itemX,this.itemY],a?this.itemX+=s:(this.itemY+=p+n+h,this.lastLineHeight=n),this.offsetWidth=f||Math.max((a?this.itemX-u-(e.checkbox?0:c):s)+u,this.offsetWidth)},getAllItems:function(){var n=[];return Qn(this.chart.series,function(e){var t=e&&e.options;e&&ni(t.showInLegend,!Jn(t.linkedTo)&&void 0,!0)&&(n=n.concat(e.legendItems||("point"===t.legendType?e.data:e)))}),n},adjustMargins:function(n,i){var a=this.chart,r=this.options,o=r.align.charAt(0)+r.verticalAlign.charAt(0)+r.layout.charAt(0);r.floating||Qn([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,t){e.test(o)&&!Jn(n[t])&&(a[ei[t]]=Math.max(a[ei[t]],a.legend[(t+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][t]*r[t%2?"x":"y"]+ni(r.margin,12)+i[t]))})},render:function(){var e,t,n,i,a=this,r=a.chart,o=r.renderer,s=a.group,l=a.box,u=a.options,c=a.padding;a.itemX=c,a.itemY=a.initialItemY,a.offsetWidth=0,a.lastItemY=0,s||(a.group=s=o.g("legend").attr({zIndex:7}).add(),a.contentGroup=o.g().attr({zIndex:1}).add(s),a.scrollGroup=o.g().add(a.contentGroup)),a.renderTitle(),e=a.getAllItems(),ai(e,function(e,t){return(e.options&&e.options.legendIndex||0)-(t.options&&t.options.legendIndex||0)}),u.reversed&&e.reverse(),a.allItems=e,a.display=t=!!e.length,a.lastLineHeight=0,Qn(e,function(e){a.renderItem(e)}),n=(u.width||a.offsetWidth)+c,i=a.lastItemY+a.lastLineHeight+a.titleHeight,i=a.handleOverflow(i),i+=c,l||(a.box=l=o.rect().addClass("highcharts-legend-box").attr({r:u.borderRadius}).add(s),l.isNew=!0),l.attr({stroke:u.borderColor,"stroke-width":u.borderWidth||0,fill:u.backgroundColor||"none"}).shadow(u.shadow),0<n&&0<i&&(l[l.isNew?"attr":"animate"](l.crisp({x:0,y:0,width:n,height:i}
1,l.strokeWidth())),l.isNew=!1),l[t?"show":"hide"](),a.legendWidth=n,a.legendHeight=i,Qn(e,function(e){a.positionItem(e)}),t&&s.align(ti(u,{width:n,height:i}),!0,"spacingBox"),r.isResizing||this.positionCheckboxes()},handleOverflow:function(e){function t(e){"number"==typeof e?c.attr({height:e}):c&&(n.clipRect=c.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=e?"rect("+l+"px,9999px,"+(l+e)+"px,0)":"auto")}var a,r,n=this,i=(u=this.chart).renderer,o=this.options,s=o.y,l=this.padding,u=u.spacingBox.height+("top"===o.verticalAlign?-s:s)-l,s=o.maxHeight,c=this.clipRect,d=o.navigation,f=ni(d.animation,!0),h=d.arrowSize||12,p=this.nav,m=this.pages,g=this.allItems;return"horizontal"!==o.layout||"middle"===o.verticalAlign||o.floating||(u/=2),s&&(u=Math.min(u,s)),m.length=0,u<e&&!1!==d.enabled?(this.clipHeight=a=Math.max(u-20-this.titleHeight-l,0),this.currentPage=ni(this.currentPage,1),this.fullHeight=e,Qn(g,function(e,t){var n=e._legendItemPos[1],i=(e=Math.round(e.legendItem.getBBox().height),m.length);(!i||n-m[i-1]>a&&(r||n)!==m[i-1])&&(m.push(r||n),i++),t===g.length-1&&n+e-m[i-1]>a&&m.push(n),n!==r&&(r=n)}),c||(c=n.clipRect=i.clipRect(0,l,9999,0),n.contentGroup.clip(c)),t(a),p||(this.nav=p=i.g().attr({zIndex:1}).add(this.group),this.up=i.symbol("triangle",0,0,h,h).on("click",function(){n.scroll(-1,f)}).add(p),this.pager=i.text("",15,10).addClass("highcharts-legend-navigation").css(d.style).add(p),this.down=i.symbol("triangle-down",0,0,h,h).on("click",function(){n.scroll(1,f)}).add(p)),n.scroll(0),e=u):p&&(t(),this.nav=p.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},scroll:function(e,t){var n=this.pages,i=n.length,a=(e=this.currentPage+e,this.clipHeight),r=this.options.navigation,o=this.pager,s=this.padding;0<(e=i<e?i:e)&&(void 0!==t&&ii(t,this.chart),this.nav.attr({translateX:s,translateY:a+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({class:1===e?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),o.attr({text:e+"/"+i}),this.down.attr({x:18+this.pager.getBBox().width,class:e===i?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),this.up.attr({fill:1===e?r.inactiveColor:r.activeColor}).css({cursor:1===e?"default":"pointer"}),this.down.attr({fill:e===i?r.inactiveColor:r.activeColor}).css({cursor:e===i?"default":"pointer"}),t=-n[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:t}),this.currentPage=e,this.positionCheckboxes(t))}},n.LegendSymbolMixin={drawRectangle:function(e,t){var n=e.symbolHeight,i=e.options.squareSymbol;t.legendSymbol=this.chart.renderer.rect(i?(e.symbolWidth-n)/2:0,e.baseline-n+1,i?n:e.symbolWidth,n,ni(e.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(t.legendGroup)},drawLineMarker:function(e){var t,n=this.options,i=n.marker,a=e.symbolWidth,r=e.symbolHeight,o=r/2,s=this.chart.renderer,l=this.legendGroup;e=e.baseline-Math.round(.3*e.fontMetrics.b),t={"stroke-width":n.lineWidth||0},n.dashStyle&&(t.dashstyle=n.dashStyle),this.legendLine=s.path(["M",0,e,"L",a,e]).addClass("highcharts-graph").attr(t).add(l),i&&!1!==i.enabled&&(n=Math.min(ni(i.radius,o),o),0===this.symbol.indexOf("url")&&(i=ti(i,{width:r,height:r}),n=0),this.legendSymbol=i=s.symbol(this.symbol,a/2-n,e-n,2*n,2*n,i).addClass("highcharts-point").add(l),i.isMarker=!0)}},(/Trident\/7\.0/.test(l.navigator.userAgent)||c)&&io(n.Legend.prototype,"positionItem",function(e,t){function n(){t._legendItemPos&&e.call(i,t)}var i=this;n(),setTimeout(n)}),ri=(p=e).addEvent,oi=p.animate,si=p.animObject,li=p.attr,ui=p.doc,ci=p.Axis,di=p.createElement,fi=p.defaultOptions,hi=p.discardElement,pi=p.charts,mi=p.css,gi=p.defined,m=p.each,vi=p.extend,_i=p.find,yi=p.fireEvent,bi=p.getStyle,ki=p.grep,wi=p.isNumber,Si=p.isObject,xi=p.isString,Ci=p.Legend,Ti=p.marginNames,Ei=p.merge,Ai=p.objectEach,Oi=p.Pointer,Mi=p.pick,Li=p.pInt,Ii=p.removeEvent,Di=p.seriesTypes,Pi=p.splat,Ri=p.svg,$i=p.syncTimeout,Hi=p.win,Fi=p.Renderer,Ni=p.Chart=function(){this.getArgs.apply(this,arguments)},p.chart=function(e,t,n){return new Ni(e,t,n)},vi(Ni.prototype,{callbacks:[],getArgs:function(){var e=[].slice.call(arguments);(xi(e[0])||e[0].nodeName)&&(this.renderTo=e.shift()),this.init(e[0],e[1])},init:function(e,t){var n,i,a=e.series,r=e.plotOptions||{};for(i in e.series=null,(n=Ei(fi,e)).plotOptions)n.plotOptions[i].tooltip=r[i]&&Ei(r[i].tooltip)||void 0;n.tooltip.userOptions=e.chart&&e.chart.forExport&&e.tooltip.userOptions||e.tooltip,n.series=e.series=a,this.userOptions=e,i=(e=n.chart).events,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.callback=t,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.hasCartesianSeries=e.showAxes;var o=this;o.index=pi.length,pi.push(o),p.chartCount++,i&&Ai(i,function(e,t){ri(o,t,e)}),o.xAxis=[],o.yAxis=[],o.pointCount=o.colorCounter=o.symbolCounter=0,o.firstRen
1der()},initSeries:function(e){var t=this.options.chart;return(t=Di[e.type||t.type||t.defaultSeriesType])||p.error(17,!0),(t=new t).init(this,e),t},orderSeries:function(e){var t=this.series;for(e=e||0;e<t.length;e++)t[e]&&(t[e].index=e,t[e].name=t[e].name||"Series "+(t[e].index+1))},isInsidePlot:function(e,t,n){var i=n?t:e;return e=n?e:t,0<=i&&i<=this.plotWidth&&0<=e&&e<=this.plotHeight},redraw:function(e){var n,t,i,a=this.axes,r=this.series,o=this.pointer,s=this.legend,l=this.isDirtyLegend,u=this.hasCartesianSeries,c=this.isDirtyBox,d=this.renderer,f=d.isHidden(),h=[];for(this.setResponsive&&this.setResponsive(!1),p.setAnimation(e,this),f&&this.temporaryDisplay(),this.layOutTitles(),e=r.length;e--;)if((i=r[e]).options.stacking&&(n=!0,i.isDirty)){t=!0;break}if(t)for(e=r.length;e--;)(i=r[e]).options.stacking&&(i.isDirty=!0);m(r,function(e){e.isDirty&&"point"===e.options.legendType&&(e.updateTotals&&e.updateTotals(),l=!0),e.isDirtyData&&yi(e,"updatedData")}),l&&s.options.enabled&&(s.render(),this.isDirtyLegend=!1),n&&this.getStacks(),u&&m(a,function(e){e.updateNames(),e.setScale()}),this.getMargins(),u&&(m(a,function(e){e.isDirty&&(c=!0)}),m(a,function(e){var t=e.min+","+e.max;e.extKey!==t&&(e.extKey=t,h.push(function(){yi(e,"afterSetExtremes",vi(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(c||n)&&e.redraw()})),c&&this.drawChartBox(),yi(this,"predraw"),m(r,function(e){(c||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1}),o&&o.reset(!0),d.draw(),yi(this,"redraw"),yi(this,"render"),f&&this.temporaryDisplay(!0),m(h,function(e){e.call()})},get:function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var n=this.series,i=_i(this.axes,e)||_i(this.series,e),a=0;!i&&a<n.length;a++)i=_i(n[a].points||[],e);return i},getAxes:function(){var t=this,e=(n=this.options).xAxis=Pi(n.xAxis||{}),n=n.yAxis=Pi(n.yAxis||{});m(e,function(e,t){e.index=t,e.isX=!0}),m(n,function(e,t){e.index=t}),e=e.concat(n),m(e,function(e){new ci(t,e)})},getSelectedPoints:function(){var t=[];return m(this.series,function(e){t=t.concat(ki(e.data||[],function(e){return e.selected}))}),t}
1,getSelectedSeries:function(){return ki(this.series,function(e){return e.selected})},setTitle:function(e,t,n){var r=this,i=(a=r.options).title=Ei({style:{color:"#333333",fontSize:a.isStock?"16px":"18px"}},a.title,e),a=a.subtitle=Ei({style:{color:"#666666"}},a.subtitle,t);m([["title",e,i],["subtitle",t,a]],function(e,t){var n=e[0],i=r[n],a=e[1];e=e[2],i&&a&&(r[n]=i=i.destroy()),e&&e.text&&!i&&(r[n]=r.renderer.text(e.text,0,0,e.useHTML).attr({align:e.align,class:"highcharts-"+n,zIndex:e.zIndex||4}).add(),r[n].update=function(e){r.setTitle(!t&&e,t&&e)},r[n].css(e.style))}),r.layOutTitles(n)},layOutTitles:function(e){var t,a=0,r=this.renderer,o=this.spacingBox;m(["title","subtitle"],function(e){var t,n=this[e],i=this.options[e];e="title"===e?-3:i.verticalAlign?0:a+2,n&&(t=i.style.fontSize,t=r.fontMetrics(t,n).b,n.css({width:(i.width||o.width+i.widthAdjust)+"px"}).align(vi({y:e+t},i),!1,"spacingBox"),i.floating||i.verticalAlign||(a=Math.ceil(a+n.getBBox(i.useHTML).height)))},this),t=this.titleOffset!==a,this.titleOffset=a,!this.isDirtyBox&&t&&(this.isDirtyBox=t,this.hasRendered)&&Mi(e,!0)&&this.isDirtyBox&&this.redraw()},getChartSize:function(){var e=(t=this.options.chart).width,t=t.height,n=this.renderTo;gi(e)||(this.containerWidth=bi(n,"width")),gi(t)||(this.containerHeight=bi(n,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,p.relativeLength(t,this.chartWidth)||this.containerHeight||400)},temporaryDisplay:function(e){var t=this.renderTo;if(e)for(;t&&t.style;)t.hcOrigStyle&&(p.css(t,t.hcOrigStyle),delete t.hcOrigStyle),t.hcOrigDetached&&(ui.body.removeChild(t),t.hcOrigDetached=!1),t=t.parentNode;else for(;t&&t.style&&(ui.body.contains(t)||(t.hcOrigDetached=!0,ui.body.appendChild(t)),"none"!==bi(t,"display",!1)&&!t.hcOricDetached||(t.hcOrigStyle={display:t.style.display,height:t.style.height,overflow:t.style.overflow},e={display:"block",overflow:"hidden"},t!==this.renderTo&&(e.height=0),p.css(t,e),t.offsetWidth)||t.style.setProperty("display","block","important"),(t=t.parentNode)!==ui.body););},setClassName:function(e){this.container.className="highcharts-container "+(e||"")},getContainer:function(){var e,t,n,i=this.options,a=i.chart,r=this.renderTo,o=p.uniqueKey();r||(this.renderTo=r=a.renderTo),xi(r)&&(this.renderTo=r=ui.getElementById(r)),r||p.error(13,!0),e=Li(li(r,"data-highcharts-chart")),wi(e)&&pi[e]&&pi[e].hasRendered&&pi[e].destroy(),li(r,"data-highcharts-chart",this.index),r.innerHTML="",a.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize(),e=this.chartWidth,t=this.chartHeight,n=vi({position:"relative",overflow:"hidden",width:e+"px",height:t+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},a.style),this.container=r=di("div",{id:o},n,r),this._cursor=r.style.cursor,this.renderer=new(p[a.renderer]||Fi)(r,e,t,null,a.forExport,i.exporting&&i.exporting.allowHTML),this.setClassName(a.className),this.renderer.setStyle(a.style),this.renderer.chartIndex=this.index},getMargins:function(e){var t=this.spacing,n=this.margin,i=this.titleOffset;this.resetMargins(),i&&!gi(n[0])&&(this.plotTop=Math.max(this.plotTop,i+this.options.title.margin+t[0])),this.legend.display&&this.legend.adjustMargins(n,t),this.extraMargin&&(this[this.extraMargin.type]=(this[this.extraMargin.type]||0)+this.extraMargin.value),this.extraTopMargin&&(this.plotTop+=this.extraTopMargin),e||this.getAxisMargins()},getAxisMargins:function(){var n=this,i=n.axisOffset=[0,0,0,0],a=n.margin;n.hasCartesianSeries&&m(n.axes,function(e){e.visible&&e.getOffset()}),m(Ti,function(e,t){gi(a[t])||(n[e]+=i[t])}),n.setChartSize()},reflow:function(e){var t=this,n=t.options.chart,i=t.renderTo,a=gi(n.width)&&gi(n.height),r=n.width||bi(i,"width"),n=n.height||bi(i,"height"),i=e?e.target:Hi;a||t.isPrinting||!r||!n||i!==Hi&&i!==ui||(r===t.containerWidth&&n===t.containerHeight||(clearTimeout(t.reflowTimeout),t.reflowTimeout=$i(function(){t.container&&t.setSize(void 0,void 0,!1)},e?100:0)),t.containerWidth=r,t.containerHeight=n)},initReflow:function(){var t=this,e=ri(Hi,"resize",function(e){t.reflow(e)});ri(t,"destroy",e)},setSize:function(e,t,n){var i=this,a=i.renderer;
1i.isResizing+=1,p.setAnimation(n,i),i.oldChartHeight=i.chartHeight,i.oldChartWidth=i.chartWidth,void 0!==e&&(i.options.chart.width=e),void 0!==t&&(i.options.chart.height=t),i.getChartSize(),((e=a.globalAnimation)?oi:mi)(i.container,{width:i.chartWidth+"px",height:i.chartHeight+"px"},e),i.setChartSize(!0),a.setSize(i.chartWidth,i.chartHeight,n),m(i.axes,function(e){e.isDirty=!0,e.setScale()}),i.isDirtyLegend=!0,i.isDirtyBox=!0,i.layOutTitles(),i.getMargins(),i.redraw(n),i.oldChartHeight=null,yi(i,"resize"),$i(function(){i&&yi(i,"endResize",null,function(){--i.isResizing})},si(e).duration)},setChartSize:function(e){function t(e){return e=h[e]||0,Math.max(o||e,e)/2}var n,i,a,r,o,s=this.inverted,l=this.renderer,u=this.chartWidth,c=this.chartHeight,d=this.options.chart,f=this.spacing,h=this.clipOffset;this.plotLeft=n=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=a=Math.max(0,Math.round(u-n-this.marginRight)),this.plotHeight=r=Math.max(0,Math.round(c-i-this.marginBottom)),this.plotSizeX=s?r:a,this.plotSizeY=s?a:r,this.plotBorderWidth=d.plotBorderWidth||0,this.spacingBox=l.spacingBox={x:f[3],y:f[0],width:u-f[3]-f[1],height:c-f[0]-f[2]},this.plotBox=l.plotBox={x:n,y:i,width:a,height:r},o=2*Math.floor(this.plotBorderWidth/2),s=Math.ceil(t(3)),l=Math.ceil(t(0)),this.clipBox={x:s,y:l,width:Math.floor(this.plotSizeX-t(1)-s),height:Math.max(0,Math.floor(this.plotSizeY-t(2)-l))},e||m(this.axes,function(e){e.setAxisSize(),e.setAxisTranslation()})},resetMargins:function(){var a=this,r=a.options.chart;m(["margin","spacing"],function(n){var e=r[n],i=Si(e)?e:[e,e,e,e];m(["Top","Right","Bottom","Left"],function(e,t){a[n][t]=Mi(r[n+e],i[t])})}),m(Ti,function(e,t){a[e]=Mi(a.margin[t],a.spacing[t])}),a.axisOffset=[0,0,0,0],a.clipOffset=[]},drawChartBox:function(){var e,t,n=this.options.chart,i=this.renderer,a=this.chartWidth,r=this.chartHeight,o=this.chartBackground,s=this.plotBackgroun
1d,l=this.plotBorder,u=this.plotBGImage,c=n.backgroundColor,d=n.plotBackgroundColor,f=n.plotBackgroundImage,h=this.plotLeft,p=this.plotTop,m=this.plotWidth,g=this.plotHeight,v=this.plotBox,_=this.clipRect,y=this.clipBox,b="animate";o||(this.chartBackground=o=i.rect().addClass("highcharts-background").add(),b="attr"),t=(e=n.borderWidth||0)+(n.shadow?8:0),c={fill:c||"none"},(e||o["stroke-width"])&&(c.stroke=n.borderColor,c["stroke-width"]=e),o.attr(c).shadow(n.shadow),o[b]({x:t/2,y:t/2,width:a-t-e%2,height:r-t-e%2,r:n.borderRadius}),b="animate",s||(b="attr",this.plotBackground=s=i.rect().addClass("highcharts-plot-background").add()),s[b](v),s.attr({fill:d||"none"}).shadow(n.plotShadow),f&&(u?u.animate(v):this.plotBGImage=i.image(f,h,p,m,g).add()),_?_.animate({width:y.width,height:y.height}):this.clipRect=i.clipRect(y),b="animate",l||(b="attr",this.plotBorder=l=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),l.attr({stroke:n.plotBorderColor,"stroke-width":n.plotBorderWidth||0,fill:"none"}),l[b](l.crisp({x:h,y:p,width:m,height:g},-l.strokeWidth())),this.isDirtyBox=!1},propFromSeries:function(){var t,n,i,a=this,r=a.options.chart,o=a.options.series;m(["inverted","angular","polar"],function(e){for(t=Di[r.type||r.defaultSeriesType],i=r[e]||t&&t.prototype[e],n=o&&o.length;!i&&n--;)(t=Di[o[n].type])&&t.prototype[e]&&(i=!0);a[e]=i})},linkSeries:function(){var n=this,e=n.series;m(e,function(e){e.linkedSeries.length=0}),m(e,function(e){var t=e.options.linkedTo;xi(t)&&(t=":previous"===t?n.series[e.index-1]:n.get(t))&&t.linkedParent!==e&&(t.linkedSeries.push(e),e.linkedParent=t,e.visible=Mi(e.options.visible,t.options.visible,e.visible))})},renderSeries:function(){m(this.series,function(e){e.translate(),e.render()})},renderLabels:function(){var a=this,r=a.options.labels;r.items&&m(r.items,function(e){var t=vi(r.style,e.style),n=Li(t.left)+a.plotLeft,i=Li(t.top)+a.plotTop+12;delete t.left,delete t.top,a.renderer.text(e.html,n,i).attr({zIndex:2}).css(t).add()})},render:function(){var e,t,n,i=this.axes,a=this.renderer,r=this.options;this.setTitle(),this.legend=new Ci(this,r.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),r=this.plotWidth,e=this.plotHeight-=21,m(i,function(e){e.setScale()}),this.getAxisMargins(),t=1.1<r/this.plotWidth,n=1.05<e/this.plotHeight,(t||n)&&(m(i,function(e){(e.horiz&&t||!e.horiz&&n)&&e.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries&&m(i,function(e){e.visible&&e.render()}),this.seriesGroup||(this.seriesGroup=a.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},addCredits:function(e){var t=this;(e=Ei(!0,this.options.credits,e)).enabled&&!this.credits&&(this.credits=this.renderer.text(e.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){e.href&&(Hi.location.href=e.href)}).attr({align:e.position.align,zIndex:8}).css(e.style).add().align(e.position),this.credits.update=function(e){t.credits=t.credits.destroy(),t.addCredits(e)})},destroy:function(){var e,n=this,t=n.axes,i=n.series,a=n.container,r=a&&a.parentNode;for(yi(n,"destroy"),n.renderer.forExport?p.erase(pi,n):pi[n.index]=void 0,p.chartCount--,n.renderTo.removeAttribute("data-highcharts-chart"),Ii(n),e=t.length;e--;)t[e]=t[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=i.length;e--;)i[e]=i[e].destroy();
1m("title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" "),function(e){var t=n[e];t&&t.destroy&&(n[e]=t.destroy())}),a&&(a.innerHTML="",Ii(a),r)&&hi(a),Ai(n,function(e,t){delete n[t]})},isReadyToRender:function(){var e=this;return!(!Ri&&Hi==Hi.top&&"complete"!==ui.readyState&&(ui.attachEvent("onreadystatechange",function(){ui.detachEvent("onreadystatechange",e.firstRender),"complete"===ui.readyState&&e.firstRender()}),1))},firstRender:function(){var t=this,e=t.options;t.isReadyToRender()&&(t.getContainer(),yi(t,"init"),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),m(e.series||[],function(e){t.initSeries(e)}),t.linkSeries(),yi(t,"beforeRender"),Oi&&(t.pointer=new Oi(t,e)),t.render(),!t.renderer.imgCount&&t.onload&&t.onload(),t.temporaryDisplay(!0))},onload:function(){m([this.callback].concat(this.callbacks),function(e){e&&void 0!==this.index&&e.apply(this,[this])},this),yi(this,"load"),yi(this,"render"),gi(this.index)&&!1!==this.options.chart.reflow&&this.initReflow(),this.onload=null}}),Vi=(f=e).each,Bi=f.extend,Ui=f.erase,Wi=f.fireEvent,Yi=f.format,zi=f.isArray,Gi=f.isNumber,qi=f.pick,Xi=f.removeEvent,f.Point=ji=function(){},f.Point.prototype={init:function(e,t,n){return this.series=e,this.color=e.color,this.applyOptions(t,n),e.options.colorByPoint?(t=e.options.colors||e.chart.options.colors,this.color=this.color||t[e.colorCounter],t=t.length,n=e.colorCounter,e.colorCounter++,e.colorCounter===t&&(e.colorCounter=0)):n=e.colorIndex,this.colorIndex=qi(this.colorIndex,n),e.chart.pointCount++,this},applyOptions:function(e,t){var n=this.series,i=n.options.pointValKey||n.pointValKey;return e=ji.prototype.optionsToObject.call(this,e),Bi(this,e),this.options=this.options?Bi(this.options,e):e,e.group&&delete this.group,i&&(this.y=this[i]),this.isNull=qi(this.isValid&&!this.isValid(),null===this.x||!Gi(this.y,!0)),this.selected&&(this.state="select"),"name"in this&&void 0===t&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),void 0===this.x&&n&&(this.x=void 0===t?n.autoIncrement(this):t),this},optionsToObject:function(e){var t={},n=this.series,i=n.options.keys,a=i||n.pointArrayMap||["y"],r=a.length,o=0,s=0;if(Gi(e)||null===e)t[a[0]]=e;else if(zi(e))for(!i&&e.length>r&&("string"===(n=typeof e[0])?t.name=e[0]:"number"===n&&(t.x=e[0]),o++);s<r;)i&&void 0===e[o]||(t[a[s]]=e[o]),o++,s++;else"object"==typeof e&&((t=e).dataLabels&&(n._hasPointLabels=!0),e.marker)&&(n._hasPointMarkers=!0);return t},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",""):"")},getZone:function(){for(var e=(t=this.series).zones,t=t.zoneAxis||"y",n=0,i=e[n];this[t]>=i.value;)i=e[++n];return i&&i.color&&!this.options.color&&(this.color=i.color),i},destroy:function(){var e,t=this.series.chart,n=t.hoverPoints;for(e in t.pointCount--,n&&(this.setState(),Ui(n,this),n.length||(t.hoverPoints=null)),this===t.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(Xi(this),this.destroyElements()),this.legendItem&&t.legend.destroyItem(this),this)this[e]=null},destroyElements:function(){for(var e,t=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],n=6;n--;)this[e=t[n]]&&(this[e]=this[e].destroy())},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}},tooltipFormatter:function(t){var e=this.series,n=e.tooltipOptions,i=qi(n.valueDecimals,""),a=n.valuePrefix||"",r=n.valueSuffix||"";return Vi(e.pointArrayMap||["y"],function(e){e="{point."+e,t=(t=a||r?t.replace(e+"}",a+e+"}"+r):t).replace(e+"}",e+":,."+i+"f}")}),Yi(t,{point:this,series:this.series})},firePointEvent:function(e,t,n){var i=this,a=this.series.options;(a.point.events[e]||i.options&&i.options.events&&i.options.events[e])&&this.importEvents(),"click"===e&&a.allowPointSelect&&(n=function(e){i.select&&i.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),Wi(this,e,t,n)},visible:!0},Ki=(y=e).addEvent,Zi=y.animObject,Ji=y.arrayMax,Qi=y.arrayMin,ea=y.correctFloat,ta=y.Date,na=y.defaultOptions,ia=y.defaultPlotOptions,aa=y.defined,ra=y.each,oa=y.erase,sa=y.extend,la=y.fireEvent,ua=y.grep,ca=y.isArray,da=y.isNumber,fa=y.isString,ha=y.merge,pa=y.objectEach,C=y.pick,ma=y.removeEvent,ga=y.splat,va=y.SVGElement,_a=y.syncTimeout,ya=y.win,y.Series=y.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{}
1,marker:{lineWidth:0,lineColor:"#ffffff",radius:4,states:{hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":y.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:y.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(e,t){var n,i,a=this,r=e.series;a.chart=e,a.options=t=a.setOptions(t),a.linkedSeries=[],a.bindAxes(),sa(a,{name:t.name,state:"",visible:!1!==t.visible,selected:!0===t.selected}),n=t.events,pa(n,function(e,t){Ki(a,t,e)}),(n&&n.click||t.point&&t.point.events&&t.point.events.click||t.allowPointSelect)&&(e.runTrackerClick=!0),a.getColor(),a.getSymbol(),ra(a.parallelArrays,function(e){a[e+"Data"]=[]}),a.setData(t.data,!1),a.isCartesian&&(e.hasCartesianSeries=!0),r.length&&(i=r[r.length-1]),a._i=C(i&&i._i,-1)+1,e.orderSeries(this.insert(r))},insert:function(e){var t,n=this.options.index;if(da(n)){for(t=e.length;t--;)if(n>=C(e[t].options.index,e[t]._i)){e.splice(t+1,0,this);break}-1===t&&e.unshift(this),t+=1}else e.push(this);return C(t,e.length-1)},bindAxes:function(){var n,i=this,a=i.options,e=i.chart;ra(i.axisTypes||[],function(t){ra(e[t],function(e){n=e.options,(a[t]===n.index||void 0!==a[t]&&a[t]===n.id||void 0===a[t]&&0===n.index)&&(i.insert(e.series),(i[t]=e).isDirty=!0)}),i[t]||i.optionalAxis===t||y.error(18,!0)})},updateParallelArrays:function(n,i){var a=n.series,t=arguments,e=da(i)?function(e){var t="y"===e&&a.toYData?a.toYData(n):n[e];a[e+"Data"][i]=t}:function(e){Array.prototype[i].apply(a[e+"Data"],Array.prototype.slice.call(t,2))};ra(a.parallelArrays,e)},autoIncrement:function(){var e,t=this.options,n=this.xIncrement,i=t.pointIntervalUnit,n=C(n,t.pointStart,0);return this.pointInterval=e=C(this.pointInterval,t.pointInterval,1),i&&(t=new ta(n),"day"===i?t=+t[ta.hcSetDate](t[ta.hcGetDate]()+e):"month"===i?t=+t[ta.hcSetMonth](t[ta.hcGetMonth]()+e):"year"===i&&(t=+t[ta.hcSetFullYear](t[ta.hcGetFullYear]()+e)),e=t-n),this.xIncrement=n+e,n},setOptions:function(e){var t=this.chart,n=t.options,i=n.plotOptions,a=(t.userOptions||{}).plotOptions||{},r=i[this.type];return this.userOptions=e,t=ha(r,i.series,e),this.tooltipOptions=ha(na.tooltip,na.plotOptions.series&&na.plotOptions.series.tooltip,na.plotOptions[this.type].tooltip,n.tooltip.userOptions,i.series&&i.series.tooltip,i[this.type].tooltip,e.tooltip),this.stickyTracking=C(e.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||t.stickyTracking),null===r.marker&&delete t.marker,this.zoneAxis=t.zoneAxis,e=this.zones=(t.zones||[]).slice(),!t.negativeColor&&!t.negativeFillColor||t.zones||e.push({value:t[this.zoneAxis+"Threshold"]||t.threshold||0,className:"highcharts-negative",color:t.negativeColor,fillColor:t.negativeFillColor}),e.length&&aa(e[e.length-1].value)&&e.push({color:this.color,fillColor:this.fillColor}),t},getCyclic:function(e,t,n){var i,a=this.chart,r=this.userOptions,o=e+"Index",s=e+"Counter",l=n?n.length:C(a.options.chart[e+"Count"],a[e+"Count"]);t||(i=C(r[o],r["_"+o]),aa(i)||(a.series.length||(a[s]=0),r["_"+o]=i=a[s]%l,a[s]+=1),n&&(t=n[i])),void 0!==i&&(this[o]=i),this[e]=t},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||ia[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:y.LegendSymbolMixin.drawLineMarker,setData:function(e,t,n,i){var a=this,r=a.points,o=r&&r.length||0,s=a.options,l=a.chart,u=null,c=a.xAxis,d=s.turboThreshold,f=this.xData,h=this.yData,p=(m=a.pointArrayMap)&&m.length,m=(e=e||[]).length;if(t=C(t,!0),!1!==i&&m&&o===m&&!a.cropped&&!a.hasGroupedData&&a.visible)ra(e,function(e,t){r[t].update&&e!==s.data[t]&&r[t].update(e,!1,null,!1)});else{if(a.xIncrement=null,a.colorCounter=0,ra(this.parallelArrays,function(e){a[e+"Data"].length=0}),d&&d<m){for(n=0;null===u&&n<m;)u=e[n],n++;if(da(u))for(n=0;n<m;n++)f[n]=this.autoIncrement(),h[n]=e[n];else if(ca(u))if(p)for(n=0;n<m;n++)u=e[n],f[n]=u[0],h[n]=u.slice(1,p+1);else for(n=0;n<m;n++)u=e[n],f[n]=u[0],h[n]=u[1];else y.error(12)}else for(n=0;n<m;n++)void 0!==e[n]&&(a.pointClass.prototype.applyOptions.apply(u={
1series:a},[e[n]]),a.updateParallelArrays(u,n));for(fa(h[0])&&y.error(14,!0),a.data=[],a.options.data=a.userOptions.data=e,n=o;n--;)r[n]&&r[n].destroy&&r[n].destroy();c&&(c.minRange=c.userMinRange),a.isDirty=l.isDirtyBox=!0,a.isDirtyData=!!r,n=!1}"point"===s.legendType&&(this.processData(),this.generatePoints()),t&&l.redraw(n)},processData:function(e){var t,n,i,a,r=this.xData,o=this.yData,s=r.length,l=0,u=this.xAxis,c=(h=this.options).cropThreshold,d=this.getExtremesFromAll||h.getExtremesFromAll,f=this.isCartesian,h=u&&u.val2lin,p=u&&u.isLog;if(f&&!this.isDirty&&!u.isDirty&&!this.yAxis.isDirty&&!e)return!1;for(u&&(i=(e=u.getExtremes()).min,a=e.max),f&&this.sorted&&!d&&(!c||c<s||this.forceCrop)&&(r[s-1]<i||r[0]>a?(r=[],o=[]):(r[0]<i||r[s-1]>a)&&(r=(l=this.cropData(this.xData,this.yData,i,a)).xData,o=l.yData,l=l.start,t=!0)),c=r.length||1;--c;)0<(s=p?h(r[c])-h(r[c-1]):r[c]-r[c-1])&&(void 0===n||s<n)?n=s:s<0&&this.requireSorting&&y.error(15);this.cropped=t,this.cropStart=l,this.processedXData=r,this.processedYData=o,this.closestPointRange=n},cropData:function(e,t,n,i){for(var a=e.length,r=0,o=a,s=C(this.cropShoulder,1),l=0;l<a;l++)if(e[l]>=n){r=Math.max(0,l-s);break}for(n=l;n<a;n++)if(e[n]>i){o=n+s;break}return{xData:e.slice(r,o),yData:t.slice(r,o),start:r,end:o}},generatePoints:function(){var e,t,n,i,a=(f=this.options).data,r=this.data,o=this.processedXData,s=this.processedYData,l=this.pointClass,u=o.length,c=this.cropStart||0,d=this.hasGroupedData,f=f.keys,h=[];for(r||d||((r=[]).length=a.length,r=this.data=r),f&&d&&(this.options.keys=!1),i=0;i<u;i++)t=c+i,d?(n=(new l).init(this,[o[i]].concat(ga(s[i])))).dataGroup=this.groupMap[i]:(n=r[t])||void 0===a[t]||(r[t]=n=(new l).init(this,a[t],o[i])),n&&(n.index=t,h[i]=n);if(this.options.keys=f,r&&(u!==(e=r.length)||d))for(i=0;i<e;i++)i!==c||d||(i+=u),r[i]&&(r[i].destroyElements(),r[i].plotX=void 0);this.data=r,this.points=h},getExtremes:function(e){var t,n,i,a,r=this.yAxis,o=this.processedXData,s=[],l=0,u=this.xAxis.getExtremes(),c=u.min,d=u.max;for(u=(e=e||this.stackedYData||this.processedYData||[]).length,a=0;a<u;a++)if(n=o[a],i=e[a],t=(da(i,!0)||ca(i))&&(!r.positiveValuesOnly||i.length||0<i),n=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(o[a]||n)>=c&&(o[a]||n)<=d,t&&n)if(t=i.length)for(;t--;)null!==i[t]&&(s[l++]=i[t]);else s[l++]=i;this.dataMin=Qi(s),this.dataMax=Ji(s)},translate:function(){this.processedXData||this.processData(),this.generatePoints();var e,t,n,i=this.options,a=i.stacking,r=this.xAxis,o=r.categories,s=this.yAxis,l=this.points,u=l.length,c=!!this.modifyValue,d=i.pointPlacement,f="between"===d||da(d),h=i.threshold,p=i.startFromThreshold?h:0,m=Number.MAX_VALUE;for(da(d="between"===d?.5:d)&&(d*=C(i.pointRange||r.pointRange)),i=0;i<u;i++){var g,v=l[i],_=v.x,y=v.y,b=v.low,k=a&&s.stacks[(this.negStacks&&y<(p?0:h)?"-":"")+this.stackKey];s.positiveValuesOnly&&null!==y&&y<=0&&(v.isNull=!0),v.plotX=e=ea(Math.min(Math.max(-1e5,r.translate(_,0,0,0,1,d,"flags"===this.type)),1e5)),a&&this.visible&&!v.isNull&&k&&k[_]&&(n=this.getStackIndicator(n,_,this.index),b=(y=(g=k[_]).points[n.key])[0],y=y[1],b===p&&n.key===k[_].base&&(b=C(h,s.min)),s.positiveValuesOnly&&b<=0&&(b=null),v.total=v.stackTotal=g.total,v.percentage=g.total&&v.y/g.total*100,v.stackY=y,g.setOffset(this.pointXOffset||0,this.barW||0)),v.yBottom=aa(b)?s.translate(b,0,1,0,1):null,c&&(y=this.modifyValue(y,v)),v.plotY=b="number"==typeof y&&1/0!==y?Math.min(Math.max(-1e5,s.translate(y,0,1,0,1)),1e5):void 0,v.isInside=void 0!==b&&0<=b&&b<=s.len&&0<=e&&e<=r.len,v.clientX=f?ea(r.translate(_,0,0,0,1,d)):e,v.negative=v.y<(h||0),v.category=o&&void 0!==o[v.x]?o[v.x]:v.x,v.isNull||(void 0!==t&&(m=Math.min(m,Math.abs(e-t))),t=e),v.zone=this.zones.length&&v.getZone()}this.closestPointRangePx=m},getValidPoints:function(e,t){var n=this.chart;return ua(e||this.points||[],function(e){return!(t&&!n.isInsidePlot(e.plotX,e.plotY,n.inverted)||e.isNull)})},setClip:function(e){var t=this.chart,n=this.options,i=t.renderer,a=t.inverted,r=this.clipBox,o=r||t.clipBox,s=this.sharedClipKey||["_sharedClip",e&&e.duration,e&&e.easing,o.height,n.xAxis,n.yAxis].join(),l=t[s],u=t[s+"m"];l||(e&&(o.width=0,t[s+"m"]=u=i.clipRect(-99,a?-t.plotLeft:-t.plotTop,99,a?t.chartWidth:t.chartHeight)),t[s]=l=i.clipRect(o),l.count={length:0}),e&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),!1!==n.clip&&(this.group.clip(e||r?l:t.clipRect),this.markerGroup.clip(u),this.sharedCl
1ipKey=s),e||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&s&&t[s]&&(r||(t[s]=t[s].destroy()),t[s+"m"])&&(t[s+"m"]=t[s+"m"].destroy()))},animate:function(e){var t,n=this.chart,i=Zi(this.options.animation);e?this.setClip(i):((e=n[t=this.sharedClipKey])&&e.animate({width:n.plotSizeX},i),n[t+"m"]&&n[t+"m"].animate({width:n.plotSizeX+99},i),this.animate=null)},afterAnimate:function(){this.setClip(),la(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var e,t,n,i,a,r,o,s,l=this.points,u=this.chart,c=this.options.marker,d=this[this.specialGroup]||this.markerGroup,f=C(c.enabled,!!this.xAxis.isRadial||null,this.closestPointRangePx>=2*c.radius);if(!1!==c.enabled||this._hasPointMarkers)for(t=0;t<l.length;t++)e=(n=l[t]).plotY,i=n.graphic,a=n.marker||{},r=!!n.marker,o=f&&void 0===a.enabled||a.enabled,s=n.isInside,o&&da(e)&&null!==n.y?(e=C(a.symbol,this.symbol),n.hasImage=0===e.indexOf("url"),o=this.markerAttribs(n,n.selected&&"select"),i?i[s?"show":"hide"](!0).animate(o):s&&(0<o.width||n.hasImage)&&(n.graphic=i=u.renderer.symbol(e,o.x,o.y,o.width,o.height,r?a:c).add(d)),i&&i.attr(this.pointAttribs(n,n.selected&&"select")),i&&i.addClass(n.getClassName(),!0)):i&&(n.graphic=i.destroy())},markerAttribs:function(e,t){var n=this.options.marker,i=e.marker||{},a=C(i.radius,n.radius);return t&&(n=n.states[t],t=i.states&&i.states[t],a=C(t&&t.radius,n&&n.radius,a+(n&&n.radiusPlus||0))),e.hasImage&&(a=0),e={x:Math.floor(e.plotX)-a,y:e.plotY-a},a&&(e.width=e.height=2*a),e},pointAttribs:function(e,t){var n=this.options.marker,i=(s=e&&e.options)&&s.marker||{},a=this.color,r=s&&s.color,o=e&&e.color,s=C(i.lineWidth,n.lineWidth);return e=e&&e.zone&&e.zone.color,a=r||e||o||a,e=i.fillColor||n.fillColor||a,a=i.lineColor||n.lineColor||a,t&&(n=n.states[t],t=i.states&&i.states[t]||{},s=C(t.lineWidth,n.lineWidth,s+C(t.lineWidthPlus,n.lineWidthPlus,0)),e=t.fillColor||n.fillColor||e,a=t.lineColor||n.lineColor||a),{stroke:a,"stroke-width":s,fill:e}},destroy:function(){var e,t,n,i=this,a=i.chart,r=/AppleWebKit\/533/.test(ya.navigator.userAgent),o=i.data||[];for(la(i,"destroy"),ma(i),ra(i.axisTypes||[],function(e){(n=i[e])&&n.series&&(oa(n.series,i),n.isDirty=n.forceRedraw=!0)}),i.legendItem&&i.chart.legend.destroyItem(i),e=o.length;e--;)(t=o[e])&&t.destroy&&t.destroy();i.points=null,clearTimeout(i.animationTimeout),pa(i,function(e,t){e instanceof va&&!e.survive&&e[r&&"group"===t?"hide":"destroy"]()}),a.hoverSeries===i&&(a.hoverSeries=null),oa(a.series,i),a.orderSeries(),pa(i,function(e,t){delete i[t]})},getGraphPath:function(r,o,s){var e,l,u=this,c=u.options,d=c.step,f=[],h=[];return(e=(r=r||u.points).reversed)&&r.reverse(),(d={right:1,center:2}[d]||d&&3)&&e&&(d=4-d),!c.connectNulls||o||s||(r=this.getValidPoints(r)),ra(r,function(e,t){var n=e.plotX,i=e.plotY,a=r[t-1];(e.leftCliff||a&&a.rightCliff)&&!s&&(l=!0),l=e.isNull&&!aa(o)&&0<t?!c.connectNulls:!(!e.isNull||o)||(0===t||l?t=["M",e.plotX,e.plotY]:u.getPointSpline?t=u.getPointSpline(r,e,t):d?(t=1===d?["L",a.plotX,i]:2===d?["L",(a.plotX+n)/2,a.plotY,"L",(a.plotX+n)/2,i]:["L",n,a.plotY]).push("L",n,i):t=["L",n,i],h.push(e.x),d&&h.push(e.x),f.push.apply(f,t),!1)}),f.xMap=h,u.graphPath=f},drawGraph:function(){var a=this,r=this.options,o=(this.gappedPath||this.getGraphPath).call(this),n=[["graph","highcharts-graph",r.lineColor||this.color,r.dashStyle]];ra(this.zones,function(e,t){n.push(["zone-graph-"+t,"highcharts-graph highcharts-zone-graph-"+t+" "+(e.className||""),e.color||a.color,e.dashStyle||r.dashStyle])}),ra(n,function(e,t){var n=e[0],i=a[n];i?(i.endX=o.xMap,i.animate({d:o})):o.length&&(a[n]=a.chart.renderer.path(o).addClass(e[1]).attr({zIndex:1}).add(a.group),i={stroke:e[2],"stroke-width":r.lineWidth,fill:a.fillGraph&&a.color||"none"},e[3]?i.dashstyle=e[3]:"square"!==r.linecap&&(i["stroke-linecap"]=i["stroke-linejoin"]="round"),i=a[n].attr(i).shadow(t<2&&r.shadow)),i&&(i.startX=o.xMap,i.isArea=o.isArea)})},applyZones:function(){var n,i,a,r,o,s,l,u,c=this,d=this.chart,f=d.renderer,e=this.zones,h=this.clips||[],p=this.graph,m=this.area,g=Math.max(d.chartWidth,d.chartHe
1ight),v=this[(this.zoneAxis||"y")+"Axis"],_=d.inverted,y=!1;e.length&&(p||m)&&v&&void 0!==v.min&&(r=v.reversed,o=v.horiz,p&&p.hide(),m&&m.hide(),a=v.getExtremes(),ra(e,function(e,t){u=r?o?d.plotWidth:0:o?0:v.toPixels(a.min),u=Math.min(Math.max(C(n,u),0),g),n=Math.min(Math.max(Math.round(v.toPixels(C(e.value,a.max),!0)),0),g),y&&(u=n=v.toPixels(a.max)),s=Math.abs(u-n),l=Math.min(u,n),u=Math.max(u,n),v.isXAxis?(i={x:_?u:l,y:0,width:s,height:g},o||(i.x=d.plotHeight-i.x)):(i={x:0,y:_?u:l,width:g,height:s},o&&(i.y=d.plotWidth-i.y)),_&&f.isVML&&(i=v.isXAxis?{x:0,y:r?l:u,height:i.width,width:d.chartWidth}:{x:i.y-d.plotLeft-d.spacingBox.x,y:0,width:i.height,height:d.chartHeight}),h[t]?h[t].animate(i):(h[t]=f.clipRect(i),p&&c["zone-graph-"+t].clip(h[t]),m&&c["zone-area-"+t].clip(h[t])),y=e.value>a.max}),this.clips=h)},invertGroups:function(t){function e(){ra(["group","markerGroup"],function(e){i[e]&&(a.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(t))})}var n,i=this,a=i.chart;i.xAxis&&(n=Ki(a,"resize",e),Ki(i,"destroy",n),e(),i.invertGroups=e)},plotGroup:function(e,t,n,i,a){var r=this[e],o=!r;return o&&(this[e]=r=this.chart.renderer.g().attr({zIndex:i||.1}).add(a)),r.addClass("highcharts-"+t+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series highcharts-color-"+this.colorIndex+" "+(this.options.className||""),!0),r.attr({visibility:n})[o?"attr":"animate"](this.getPlotBox()),r},getPlotBox:function(){var e=this.chart,t=this.xAxis,n=this.yAxis;return e.inverted&&(t=n,n=this.xAxis),{translateX:t?t.left:e.plotLeft,translateY:n?n.top:e.plotTop,scaleX:1,scaleY:1}},render:function(){var e=this,t=e.chart,n=e.options,i=!!e.animate&&t.renderer.isSVG&&Zi(n.animation).duration,a=e.visible?"inherit":"hidden",r=n.zIndex,o=e.hasRendered,s=t.seriesGroup,l=t.inverted,u=e.plotGroup("group","series",a,r,s);e.markerGroup=e.plotGroup("markerGroup","markers",a,r,s),i&&e.animate(!0),u.inverted=!!e.isCartesian&&l,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(l),!1===n.clip||e.sharedClipKey||o||u.clip(t.clipRect),i&&e.animate(),o||(e.animationTimeout=_a(function(){e.afterAnimate()},i)),e.isDirty=!1,e.hasRendered=!0},redraw:function(){var e=this.chart,t=this.isDirty||this.isDirtyData,n=this.group,i=this.xAxis,a=this.yAxis;n&&(e.inverted&&n.attr({width:e.plotWidth,height:e.plotHeight}),n.animate({translateX:C(i&&i.left,e.plotLeft),translateY:C(a&&a.top,e.plotTop)})),this.translate(),this.render(),t&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(e,t){var n=this.xAxis,i=this.yAxis,a=this.chart.inverted;return this.searchKDTree({clientX:a?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:a?i.len-e.chartX+i.pos:e.chartY-i.pos},t)},buildKDTree:function(){this.buildingKdTree=!0;var o=this,e=-1<o.options.findNearestPointBy.indexOf("y")?2:1;delete o.kdTree,_a(function(){o.kdTree=function e(t,n,i){var a,r;if(r=t&&t.length)return a=o.kdAxisArray[n%i],t.sort(function(e,t){return e[a]-t[a]}),{point:t[r=Math.floor(r/2)],left:e(t.slice(0,r),n+1,i),right:e(t.slice(r+1),n+1,i)}}(o.getValidPoints(null,!o.directTouch),e,e),o.buildingKdTree=!1},o.options.kdNow?0:1)},searchKDTree:function(e,t){var c=this,d=this.kdAxisArray[0],f=this.kdAxisArray[1],h=t?"distX":"dist";if(t=-1<c.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(),this.kdTree)return function e(t,n,i,a){var r=n.point,o=c.kdAxisArray[i%a],s=r,l=aa(t[d])&&aa(r[d])?Math.pow(t[d]-r[d],2):null,u=aa(t[f])&&aa(r[f])?Math.pow(t[f]-r[f],2):null;return r.dist=aa(u=(l||0)+(u||0))?Math.sqrt(u):Number.MAX_VALUE,r.distX=aa(l)?Math.sqrt(l):Number.MAX_VALUE,l=(o=t[o]-r[o])<0?"right":"left",n[u=o<0?"left":"right"]&&(s=(u=e(t,n[u],i+1,a))[h]<s[h]?u:r),s=n[l]&&Math.sqrt(o*o)<s[h]&&(t=e(t,n[l],i+1,a))[h]<s[h]?t:s}(e,this.kdTree,t,t)}}),k=(ba=e).Axis,d=ba.Chart,ka=ba.correctFloat,wa=ba.defined,Sa=ba.destroyObjectProperties,xa=ba.each,Ca=ba.format,Ta=ba.objectEach,Ea=ba.pick,R=ba.Series,ba.StackItem=function(e,t,n,i,a){var r=e.chart.inverted;this.axis=e,this.isNegative=n,this.options=t,this.x=i,this.total=null,this.points={},this.stack=a,this.rightCliff=this.leftCliff=0,this.alignOptions={align:t.align||(r?n?"left":"right":"center"),verticalAlign:t.verticalAlign||(r?"middle":n?"bottom":"top"),y:Ea(t.y,r?4:n?14:-6),x:Ea(t.x,r?n?-6:6:0)},this.textAlign=t.textAlign||(r?n?"right":"left":"center")}
1,ba.StackItem.prototype={destroy:function(){Sa(this,this.axis)},render:function(e){var t=this.options,n=(n=t.format)?Ca(n,this):t.formatter.call(this);this.label?this.label.attr({text:n,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(n,null,null,t.useHTML).css(t.style).attr({align:this.textAlign,rotation:t.rotation,visibility:"hidden"}).add(e)},setOffset:function(e,t){var n=(a=this.axis).chart,i=a.translate(a.usePercentage?100:this.total,0,0,0,1),a=a.translate(0),a=Math.abs(i-a);e=n.xAxis[0].translate(this.x)+e,i=this.getStackBox(n,this,e,i,t,a),(t=this.label)&&(t.align(this.alignOptions,null,i),i=t.alignAttr,t[!1===this.options.crop||n.isInsidePlot(i.x,i.y)?"show":"hide"](!0))},getStackBox:function(e,t,n,i,a,r){var o=t.axis.reversed,s=e.inverted;return e=e.plotHeight,t=t.isNegative&&!o||!t.isNegative&&o,{x:s?t?i:i-r:n,y:s?e-n-a:t?e-i-r:e-i,width:s?r:a,height:s?a:r}}},d.prototype.getStacks=function(){var t=this;xa(t.yAxis,function(e){e.stacks&&e.hasVisibleSeries&&(e.oldStacks=e.stacks)}),xa(t.series,function(e){!e.options.stacking||!0!==e.visible&&!1!==t.options.chart.ignoreHiddenSeries||(e.stackKey=e.type+Ea(e.options.stack,""))})},k.prototype.buildStacks=function(){var e,t=this.series,n=Ea(this.options.reversedStacks,!0),i=t.length;if(!this.isXAxis){for(this.usePercentage=!1,e=i;e--;)t[n?e:i-e-1].setStackedPoints();if(this.usePercentage)for(e=0;e<i;e++)t[e].setPercentStacks()}},k.prototype.renderStackTotals=function(){var e=this.chart,t=e.renderer,n=this.stacks,i=this.stackTotalGroup;i||(this.stackTotalGroup=i=t.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),i.translate(e.plotLeft,e.plotTop),Ta(n,function(e){Ta(e,function(e){e.render(i)})})},k.prototype.resetStacks=function(){var i=this,e=i.stacks;i.isXAxis||Ta(e,function(n){Ta(n,function(e,t){e.touched<i.stacksTouched?(e.destroy(),delete n[t]):(e.total=null,e.cum=null)})})},k.prototype.cleanStacks=function(){var e;this.isXAxis||(this.oldStacks&&(e=this.stacks=this.oldStacks),Ta(e,function(e){Ta(e,function(e){e.cum=e.total})}))},R.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e,t,n,i,a,r,o,s=this.processedXData,l=this.processedYData,u=[],c=l.length,d=(p=this.options).threshold,f=p.startFromThreshold?d:0,h=p.stack,p=p.stacking,m=this.stackKey,g="-"+m,v=this.negStacks,_=this.yAxis,y=_.stacks,b=_.oldStacks;for(_.stacksTouched+=1,a=0;a<c;a++)r=s[a],o=l[a],i=(e=this.getStackIndicator(e,r,this.index)).key,y[n=(t=v&&o<(f?0:d))?g:m]||(y[n]={}),y[n][r]||(b[n]&&b[n][r]?(y[n][r]=b[n][r],y[n][r].total=null):y[n][r]=new ba.StackItem(_,_.options.stackLabels,t,r,h)),n=y[n][r],null!==o&&(n.points[i]=n.points[this.index]=[Ea(n.cum,f)],wa(n.cum)||(n.base=i),n.touched=_.stacksTouched,0<e.index)&&!1===this.singleStacks&&(n.points[i][0]=n.points[this.index+","+r+",0"][0]),"percent"===p?(t=t?m:g,v&&y[t]&&y[t][r]?(t=y[t][r],n.total=t.total=Math.max(t.total,n.total)+Math.abs(o)||0):n.total=ka(n.total+(Math.abs(o)||0))):n.total=ka(n.total+(o||0)),n.cum=Ea(n.cum,f)+(o||0),null!==o&&(n.points[i].push(n.cum),u[a]=n.cum);"percent"===p&&(_.usePercentage=!0),this.stackedYData=u,_.oldStacks={}}},R.prototype.setPercentStacks=function(){var a,r=this,e=r.stackKey,o=r.yAxis.stacks,s=r.processedXData;xa([e,"-"+e],function(e){for(var t,n,i=s.length;i--;)t=s[i],a=r.getStackIndicator(a,t,r.index,e),(t=(n=o[e]&&o[e][t])&&n.points[a.key])&&(n=n.total?100/n.total:0,t[0]=ka(t[0]*n),t[1]=ka(t[1]*n),r.stackedYData[i]=t[1])})},R.prototype.getStackIndicator=function(e,t,n,i){return!wa(e)||e.x!==t||i&&e.key!==i?e={x:t,index:0,key:i}:e.index++,e.key=[n,t,e.index].join(),e},Aa=e.addEvent,Oa=e.animate,Ma=e.Axis,La=e.createElement,Ia=e.css,Da=e.defined,Pa=e.each,Ra=e.erase,$a=e.extend,Ha=e.fireEvent,Fa=e.inArray,Na=e.isNumber,ja=e.isObject,Va=e.isArray,Ba=e.merge,Ua=e.objectEach,Wa=e.pick,o=e.Point,l=e.Series,Ya=e.seriesTypes,za=e.setAnimation,Ga=e.splat,$a(e.Chart.prototype,{addSeries:function(e,t,n){var i,a=this;return e&&(t=Wa(t,!0),Ha(a,"addSeries",{options:e},function(){i=a.initSeries(e),a.isDirtyLegend=!0,a.linkSeries(),t&&a.redraw(n)})),i},addAxis:function(e,t,n,i){var a=t?"xAxis":"yAxis",r=this.options;return e=Ba(e,{index:this[a].length,isX:t}),t=new Ma(this,e),r[a]=Ga(r[a]||{}),r[a].push(e),Wa(n,!0)&&this.redraw(i),t},showLoading:function(e){function t(){a&&Ia(a,{left:n.plotLeft+"px",to
1p:n.plotTop+"px",width:n.plotWidth+"px",height:n.plotHeight+"px"})}var n=this,i=n.options,a=n.loadingDiv,r=i.loading;a||(n.loadingDiv=a=La("div",{className:"highcharts-loading highcharts-loading-hidden"},null,n.container),n.loadingSpan=La("span",{className:"highcharts-loading-inner"},null,a),Aa(n,"redraw",t)),a.className="highcharts-loading",n.loadingSpan.innerHTML=e||i.lang.loading,Ia(a,$a(r.style,{zIndex:10})),Ia(n.loadingSpan,r.labelStyle),n.loadingShown||(Ia(a,{opacity:0,display:""}),Oa(a,{opacity:r.style.opacity||.5},{duration:r.showDuration||0})),n.loadingShown=!0,t()},hideLoading:function(){var e=this.options,t=this.loadingDiv;t&&(t.className="highcharts-loading highcharts-loading-hidden",Oa(t,{opacity:0},{duration:e.loading.hideDuration||100,complete:function(){Ia(t,{display:"none"})}})),this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft borderRadius plotBackgroundColor plotBackgroun
1dImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions tooltip".split(" "),update:function(e,t,i){var n,a,r=this,o={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle"},s=e.chart,l=[];s&&(Ba(!0,r.options.chart,s),"className"in s&&r.setClassName(s.className),("inverted"in s||"polar"in s)&&(r.propFromSeries(),n=!0),"alignTicks"in s&&(n=!0),Ua(s,function(e,t){-1!==Fa("chart."+t,r.propsRequireUpdateSeries)&&(a=!0),-1!==Fa(t,r.propsRequireDirtyBox)&&(r.isDirtyBox=!0)}),"style"in s)&&r.renderer.setStyle(s.style),e.colors&&(this.options.colors=e.colors),e.plotOptions&&Ba(!0,this.options.plotOptions,e.plotOptions),Ua(e,function(e,t){r[t]&&"function"==typeof r[t].update?r[t].update(e,!1):"function"==typeof r[o[t]]&&r[o[t]](e),"chart"!==t&&-1!==Fa(t,r.propsRequireUpdateSeries)&&(a=!0)}),Pa("xAxis yAxis zAxis series colorAxis pane".split(" "),function(n){e[n]&&(Pa(Ga(e[n]),function(e,t){(t=Da(e.id)&&r.get(e.id)||r[n][t])&&t.coll===n&&(t.update(e,!1),i)&&(t.touched=!0),!t&&i&&("series"===n?r.addSeries(e,!1).touched=!0:"xAxis"!==n&&"yAxis"!==n||(r.addAxis(e,"xAxis"===n,!1).touched=!0))}),i)&&Pa(r[n],function(e){e.touched?delete e.touched:l.push(e)})}),Pa(l,function(e){e.remove(!1)}),n&&Pa(r.axes,function(e){e.update({},!1)}),a&&Pa(r.series,function(e){e.update({},!1)}),e.loading&&Ba(!0,r.options.loading,e.loading),n=s&&s.width,s=s&&s.height,Na(n)&&n!==r.chartWidth||Na(s)&&s!==r.chartHeight?r.setSize(n,s):Wa(t,!0)&&r.redraw()},setSubtitle:function(e){this.setTitle(void 0,e)}}),$a(o.prototype,{update:function(e,t,n,i){function a(){o.applyOptions(e),null===o.y&&l&&(o.graphic=l.destroy()),ja(e,!0)&&(l&&l.element&&e&&e.marker&&void 0!==e.marker.symbol&&(o.graphic=l.destroy()),e)&&e.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy()),r=o.index,s.updateParallelArrays(o,r),c.data[r]=ja(c.data[r],!0)||ja(e,!0)?o.options:e,s.isDirty=s.isDirtyData=!0,!s.fixedBox&&s.hasCartesianSeries&&(u.isDirtyBox=!0),"point"===c.legendType&&(u.isDirtyLegend=!0),t&&u.redraw(n)}var r,o=this,s=o.series,l=o.graphic,u=s.chart,c=s.options;t=Wa(t,!0),!1===i?a():o.firePointEvent("update",{options:e},a)},remove:function(e,t){this.series.removePoint(Fa(this,this.series.data),e,t)}}),$a(l.prototype,{addPoint:function(e,t,n,i){var a,r,o,s,l=this.options,u=this.data,c=this.chart,d=(d=this.xAxis)&&d.hasNames&&d.names,f=l.data,h=this.xData;if(t=Wa(t,!0),this.pointClass.prototype.applyOptions.apply(a={series:this},[e]),s=a.x,o=h.length,this.requireSorting&&s<h[o-1])for(r=!0;o&&h[o-1]>s;)o--;this.updateParallelArrays(a,"splice",o,0,0),this.updateParallelArrays(a,o),d&&a.name&&(d[s]=a.name),f.splice(o,0,e),r&&(this.data.splice(o,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),n&&(u[0]&&u[0].remove?u[0].remove(!1):(u.shift(),this.updateParallelArrays(a,"shift"),f.shift())),this.isDirtyData=this.isDirty=!0,t&&c.redraw(i)},removePoint:function(e,t,n){function i(){s&&s.length===r.length&&s.splice(e,1),r.splice(e,1),a.options.data.splice(e,1),a.updateParallelArrays(o||{series:a},"splice",e,1),o&&o.destroy(),a.isDirty=!0,a.isDirtyData=!0,t&&l.redraw()}var a=this,r=a.data,o=r[e],s=a.points,l=a.chart;za(n,l),t=Wa(t,!0),o?o.firePointEvent("remove",null,i):i()},remove:function(e,t,n){function i(){a.destroy(),r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(),Wa(e,!0)&&r.redraw(t)}var a=this,r=a.chart;!1!==n?Ha(a,"remove",null,i):i()},update:function(e,t){var n,i=this,a=i.chart,r=i.userOptions,o=i.oldType||i.type,s=e.type||r.type||a.options.chart.type,l=Ya[o].prototype,u=["group","markerGroup","dataLabelsGroup","navigatorSeries","baseSeries"],c=i.finishedAnimating&&{animation:!1};if(Object.keys&&"data"===Object.keys(e).toString())return this.setData(e.data,t);for(n in(s&&s!==o||void 0!==e.zIndex)&&(u.length=0),Pa(u,function(e){u[e]=i[e],delete i[e]}),e=Ba(r,c,{index:i.index,pointStart:i.xData[0]},{data:i.options.data},e),i.remove(!1,null,!1),l)i[n]=void 0;$a(i,Ya[s||o].prototype),Pa(u,function(e){i[e]=u[e]}),i.init(a,e),i.oldType=o,a.linkSeries(),Wa(t,!0)&&a.redraw(!1)}}),$a(Ma.prototype,{update:function(e,t){var n=this.chart;e=n.options[this.coll][this.options.index]=Ba(this.userOptions,e),this.destroy(!0),this.init(n,$a(e,{events:void 0})),n.isDirtyBox=!0,Wa(t,!0)&&n.redraw()},remove:function(e){for(var t=this.chart,n=this.coll,i=this.series,a=i.length;a--;)i[a]&&i[a].remove(!1);Ra(t.axes,this),Ra(t[n],this),Va(t.options[n])?t.options[n].splice(this.options.index,1):delete t.options[n],Pa(t[n],function(e,t){e.options.index=t}),this.destroy(),t.isDirtyBox=!0,Wa(e,!0)&&t.redraw()},setTitle:function(e,t){this.update({title:e},t)},setCategories:function(e,t){this.update({categories:e},t)}}),Xa=(qa=e).color,Ka=qa.each,Za=qa.map,Ja=qa.pick,Qa=qa.Series,(0,qa.seriesType)("area","line",{softThreshold:!1,threshold:0}
1,{singleStacks:!1,getStackPoints:function(e){var l,u,t=[],c=[],n=this.xAxis,i=this.yAxis,d=i.stacks[this.stackKey],f={},h=this.index,a=i.series,p=a.length,m=Ja(i.options.reversedStacks,!0)?1:-1;if(e=e||this.points,this.options.stacking){for(u=0;u<e.length;u++)f[e[u].x]=e[u];qa.objectEach(d,function(e,t){null!==e.total&&c.push(t)}),c.sort(function(e,t){return e-t}),l=Za(a,function(){return this.visible}),Ka(c,function(a,r){var o,s,e=0;if(f[a]&&!f[a].isNull)t.push(f[a]),Ka([-1,1],function(e){var t=1===e?"rightNull":"leftNull",n=0,i=d[c[r+e]];if(i)for(u=h;0<=u&&u<p;)(o=i.points[u])||(u===h?f[a][t]=!0:l[u]&&(s=d[a].points[u])&&(n-=s[1]-s[0])),u+=m;f[a][1===e?"rightCliff":"leftCliff"]=n});else{for(u=h;0<=u&&u<p;){if(o=d[a].points[u]){e=o[1];break}u+=m}e=i.translate(e,0,1,0,1),t.push({isNull:!0,plotX:n.translate(a,0,0,0,1),x:a,plotY:e,yBottom:e})}})}return t},getGraphPath:function(s){function e(e,t,n){var i=s[e],a=(e=u&&p[i.x].points[h],i[n+"Null"]||0);n=i[n+"Cliff"]||0;var r,o,i=!0;n||a?(r=(a?e[0]:e[1])+n,o=e[0]+n,i=!!a):!u&&s[t]&&s[t].isNull&&(r=o=m),void 0!==r&&(f.push({plotX:l,plotY:null===r?g:c.getThreshold(r),isNull:i,isCliff:!0}),d.push({plotX:l,plotY:null===o?g:c.getThreshold(o),doCurve:!1}))}var t,n,l,i,a=Qa.prototype.getGraphPath,u=(r=this.options).stacking,c=this.yAxis,d=[],f=[],h=this.index,p=c.stacks[this.stackKey],m=r.threshold,g=c.getThreshold(r.threshold),r=r.connectNulls||"percent"===u;for(s=s||this.points,u&&(s=this.getStackPoints(s)),t=0;t<s.length;t++)n=s[t].isNull,l=Ja(s[t].rectPlotX,s[t].plotX),i=Ja(s[t].yBottom,g),n&&!r||(r||e(t,t-1,"left"),n&&!u&&r||(f.push(s[t]),d.push({x:t,plotX:l,plotY:i})),r)||e(t,t+1,"right");return t=a.call(this,f,!0,!0),d.reversed=!0,(n=a.call(this,d,!0,!0)).length&&(n[0]="L"),n=t.concat(n),a=a.call(this,f,!1,r),n.xMap=t.xMap,this.areaPath=n,a},drawGraph:function(){this.areaPath=[],Qa.prototype.drawGraph.apply(this);var i=this,a=this.areaPath,r=this.options,n=[["area","highcharts-area",this.color,r.fillColor]];Ka(this.zones,function(e,t){n.push(["zone-area-"+t,"highcharts-area highcharts-zone-area-"+t+" "+e.className,e.color||i.color,e.fillColor||r.fillColor])}),Ka(n,function(e){var t=e[0],n=i[t];n?(n.endX=a.xMap,n.animate({d:a})):(n=i[t]=i.chart.renderer.path(a).addClass(e[1]).attr({fill:Ja(e[3],Xa(e[2]).setOpacity(Ja(r.fillOpacity,.75)).get()),zIndex:0}).add(i.group)).isArea=!0,n.startX=a.xMap,n.shiftUnit=r.step?2:1})},drawLegendSymbol:qa.LegendSymbolMixin.drawRectangle}),er=e.pick,(0,e.seriesType)("spline","line",{},{getPointSpline:function(e,t,n){var i,a,r,o,s,l=t.plotX,u=t.plotY,c=e[n-1];return n=e[n+1],!c||c.isNull||!1===c.doCurve||t.isCliff||!n||n.isNull||!1===n.doCurve||t.isCliff||(e=c.plotY,o=n.plotX,i=0,r=(1.5*u+e)/2.5,s=(1.5*u+(n=n.plotY))/2.5,s+=i=(o=(1.5*l+o)/2.5)!==(a=(1.5*l+c.plotX)/2.5)?(s-r)*(o-l)/(o-a)+u-s:i,e<(r+=i)&&u<r?s=2*u-(r=Math.max(e,u)):r<e&&r<u&&(s=2*u-(r=Math.min(e,u))),n<s&&u<s?r=2*u-(s=Math.max(n,u)):s<n&&s<u&&(r=2*u-(s=Math.min(n,u))),t.rightContX=o,t.rightContY=s),t=["C",er(c.rightContX,c.plotX),er(c.rightContY,c.plotY),er(a,l),er(r,u),l,u],c.rightContX=c.rightContY=null,t}}),c=e.seriesTypes.area.prototype,(0,e.seriesType)("areaspline","spline",e.defaultPlotOptions.area,{getStackPoints:c.getStackPoints,getGraphPath:c.getGraphPath,drawGraph:c.drawGraph,drawLegendSymbol:e.LegendSymbolMixin.drawRectangle}),tr=e.animObject,nr=e.color,ir=e.each,ar=e.extend,rr=e.isNumber,or=e.merge,sr=e.pick,lr=e.Series,io=e.seriesType,ur=e.svg,io("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1,shadow:!1},select:{color:"#cccccc",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){lr.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&ir(e.series,function(e){e.type===t.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var a,r=this,e=r.options,t=r.xAxis,o=r.yAxis,n=t.reversed,s={},l=0,i=(!1===e.grouping?l=1:ir(r.chart.series,function(e){var t,n=e.options,i=e.yAxis;e.type!==r.type||!e.visible&&r.chart.options.chart.ignoreHiddenSeries||o.len!==i.len||o.pos!==i.pos||(n.stacking?(a=e.stackKey,void 0===s[a]&&(s[a]=l++),t=s[a]):!1!==n.grouping&&(t=l++),e.columnIndex=t)}),Math.min(Math.abs(t.transA)*(t.ordinalSlope||e.pointRange||t.closestPointRange||t.tickInterval||1),t.len)),u=i*e.groupPadding,c=(i-2*u)/(l||1),e=Math.min(e.maxPointWidth||t.len,sr(e.pointWidth,c*(1-2*e.pointPadding)));return r.columnMetrics={width:e,offset:(c-e)/2+(u+((r.columnIndex||0)+(n?1:0))*c-i/2)*(n?-1:1)},r.columnMetrics},crispCol:function(e,t,n,i){var a=this.chart,r=-((o=this.borderWidth)%2?.5:0),o=o%2?.5:1;return a.inverted&&a.renderer.isVML&&(o+=1),this.options.crisp&&(n=Math.round(e+n)+r,n-=e=Math.round(e)+r),i=Math.round(t+i)+o,r=Math.abs(t)<=.5&&.5<i,i-=t=Math.round(t)+o,r&&i&&(--t,i+=1),{x:e,y:t,width:n,height:i}},translate:function(){var l=this,u=l.chart,e=l.options,t=l.dense=l.closestPointRange*l.xAxis.transA<2,t=l.borderWidth=sr(e.borderWidth,t?
10:1),c=l.yAxis,d=l.translatedThreshold=c.getThreshold(e.threshold),f=sr(e.minPointLength,5),n=l.getColumnMetrics(),h=n.width,p=l.barW=Math.max(h,1+2*t),m=l.pointXOffset=n.offset;u.inverted&&(d-=.5),e.pointPadding&&(p=Math.ceil(p)),lr.prototype.translate.apply(l),ir(l.points,function(e){var t,n=sr(e.yBottom,d),i=999+Math.abs(n),i=Math.min(Math.max(-i,e.plotY),c.len+i),a=e.plotX+m,r=p,o=Math.min(i,n),s=Math.max(i,n)-o;Math.abs(s)<f&&f&&(s=f,t=!c.reversed&&!e.negative||c.reversed&&e.negative,o=Math.abs(o-d)>f?n-f:d-(t?f:0)),e.barX=a,e.pointWidth=h,e.tooltipPos=u.inverted?[c.len+c.pos-u.plotLeft-i,l.xAxis.len-a-r/2,s]:[a+r/2,i+c.pos-u.plotTop,s],e.shapeType="rect",e.shapeArgs=l.crispCol.apply(l,e.isNull?[a,d,r,0]:[a,o,r,s])})},getSymbol:e.noop,drawLegendSymbol:e.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(e,t){var n=this.options,i=(l=this.pointAttrToOptions||{}).stroke||"borderColor",a=l["stroke-width"]||"borderWidth",r=e&&e.color||this.color,o=e[i]||n[i]||this.color||r,s=e[a]||n[a]||this[a]||0,l=n.dashStyle;return e&&this.zones.length&&(r=e.getZone(),r=e.options.color||r&&r.color||this.color),t&&(t=(e=or(n.states[t],e.options.states&&e.options.states[t]||{})).brightness,r=e.color||void 0!==t&&nr(r).brighten(e.brightness).get()||r,o=e[i]||o,s=e[a]||s,l=e.dashStyle||l),i={fill:r,stroke:o,"stroke-width":s},l&&(i.dashstyle=l),i},drawPoints:function(){var n,i=this,a=this.chart,r=i.options,o=a.renderer,s=r.animationLimit||250;ir(i.points,function(e){var t=e.graphic;rr(e.plotY)&&null!==e.y?(n=e.shapeArgs,t?t[a.pointCount<s?"animate":"attr"](or(n)):e.graphic=t=o[e.shapeType](n).add(e.group||i.group),r.borderRadius&&t.attr({r:r.borderRadius}),t.attr(i.pointAttribs(e,e.selected&&"select")).shadow(r.shadow,null,r.stacking&&!r.borderRadius),t.addClass(e.getClassName(),!0)):t&&(e.graphic=t.destroy())})},animate:function(e){var n=this,t=this.yAxis,i=n.options,a=this.chart.inverted,r={};ur&&(e?(r.scaleY=.001,e=Math.min(t.pos+t.len,Math.max(t.pos,t.toPixels(i.threshold))),a?r.translateX=e-t.len:r.translateY=e,n.group.attr(r)):(r[a?"translateX":"translateY"]=t.pos,n.group.animate(r,ar(tr(n.options.animation),{step:function(e,t){n.group.attr({scaleY:Math.max(.001,t.pos)})}})),n.animate=null))},remove:function(){var t=this,e=t.chart;e.hasRendered&&ir(e.series,function(e){e.type===t.type&&(e.isDirty=!0)}),lr.prototype.remove.apply(t,arguments)}}),(0,e.seriesType)("bar","column",null,{inverted:!0}),cr=e.Series,(0,e.seriesType)("scatter","line",{lineWidth:0,findNearestPointBy:"xy",marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">â</span> <span style="font-size: 0.85em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&cr.prototype.drawGraph.call(this)}}),dr=e.pick,fr=e.relativeLength,e.CenteredSeriesMixin={getCenter:function(){for(var e,t=this.options,n=this.chart,i=2*(t.slicedOffset||0),a=n.plotWidth-2*i,n=n.plotHeight-2*i,r=t.center,r=[dr(r[0],"50%"),dr(r[1],"50%"),t.size||"100%",t.innerSize||0],o=Math.min(a,n),s=0;s<4;++s)e=r[s],t=s<2||2===s&&/%$/.test(e),r[s]=fr(e,[a,n,o,r[2]][s])+(t?i:0);return r[3]>r[2]&&(r[3]=r[2]),r}},hr=(a=e).addEvent,pr=a.defined,mr=a.each,gr=a.extend,vr=a.inArray,f=a.noop,_r=a.pick,yr=a.Point,br=a.Series,d=a.seriesType,kr=a.setAnimation,d("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1,shadow:!1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(e){var i=this,t=i.points,a=i.startAngleRad;e||(mr(t,function(e){var t=e.graphic,n=e.shapeArgs;t&&(t.attr({r:e.startR||i.center[3]/2,start:a,end:a}),t.animate({r:n.r,start:n.start,end:n.end},i.options.animation))}),i.animate=null)},updateTotals:function(){for(var e,t=0,n=this.points,i=n.length,a=this.options.ignoreHiddenPoint,r=0;r<i;r++)e=n[r],t+=a&&!e.visible||e.isNull?0:e.y;for(this.total=t,r=0;r<i;r++)(e=n[r]).percentage=0<t&&(e.visible||!a)?e.y/t*100:0,e.total=t},generatePoints:function(){br.prototype.generatePoints.call(this),this.updateTotals()},translate:function(i){this.generatePoints();var e,t,a,n,r,o,s=0,l=(p=this.options).slicedOffset,u=l+(p.borderWidth||0),c=p.startAngle||0,d=this.startAngleRad=Math.PI/180*(c-90),c=(this.endAngleRad=Math.PI/180*(_r(p.endAngle,c+360)-90))-d,f=this.points,h=p.dataLabels.distance,p=p.ignoreHiddenPoint,m=f.length;for(i||(this.center=i=this.getCenter()),this.getX=function(e,t,n){return a=Math.asin(Math.min((e-i[1])/(i[2]/2+n.labelDistance),1)),i[0]+(t?-1:1)*Math.cos(a)*(i[2]/2+n.labelDistance)},r=0;r<m;r++)(o=f[r]).labelDistance=_r(o.options.dataLabels&&o.options.dataLabels.distance,h),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,o.labelDistance),e=d+s*c,p&&!o.visible||(s+=o.percentage/100),t=d+s*c,o.shapeType="arc",o.shapeArgs={x:i[0],y:i[1],r:i[2]/2,innerR:i[3]/2,start:Math.round(1e3*e)/1e3,end:Math.round(1e3*t)/1e3},(a=(t+e)/2)>1.5*Math.PI?a-=2*Math.PI:a<-Math.PI/2&&(a+=2*Math.PI),o.slicedTranslation={translateX:Math.round(Math.cos(a)*l),translateY:Math.round(Math.sin(a)*l)},t=Math.cos(a)*i[2]/2,n=Math.sin(a)*i[2]/2,o.tooltipPos=[i[0]+.7*t,i[1]+.7*n],o.half=a<-Math.PI/2||a>
1Math.PI/2?1:0,o.angle=a,e=Math.min(u,o.labelDistance/5),o.labelPos=[i[0]+t+Math.cos(a)*o.labelDistance,i[1]+n+Math.sin(a)*o.labelDistance,i[0]+t+Math.cos(a)*e,i[1]+n+Math.sin(a)*e,i[0]+t,i[1]+n,o.labelDistance<0?"center":o.half?"right":"left",a]},drawGraph:null,drawPoints:function(){var n,i,a,r,o=this,s=o.chart.renderer,l=o.options.shadow;l&&!o.shadowGroup&&(o.shadowGroup=s.g("shadow").add(o.group)),mr(o.points,function(e){var t;e.isNull||(i=e.graphic,r=e.shapeArgs,n=e.getTranslate(),t=e.shadowGroup,(t=l&&!t?e.shadowGroup=s.g("shadow").add(o.shadowGroup):t)&&t.attr(n),a=o.pointAttribs(e,e.selected&&"select"),i?i.setRadialReference(o.center).attr(a).animate(gr(r,n)):(e.graphic=i=s[e.shapeType](r).setRadialReference(o.center).attr(n).add(o.group),e.visible||i.attr({visibility:"hidden"}),i.attr(a).attr({"stroke-linejoin":"round"}).shadow(l,t)),i.addClass(e.getClassName()))})},searchPoint:f,sortByAngle:function(e,n){e.sort(function(e,t){return void 0!==e.angle&&(t.angle-e.angle)*n})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:a.CenteredSeriesMixin.getCenter,getSymbol:f},{init:function(){yr.prototype.init.apply(this,arguments);var e,t=this;return t.name=_r(t.name,"Slice"),hr(t,"select",e=function(e){t.slice("select"===e.type)}),hr(t,"unselect",e),t},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(t,e){var n=this,i=n.series,a=i.chart,r=i.options.ignoreHiddenPoint;e=_r(e,r),t!==n.visible&&(n.visible=n.options.visible=t=void 0===t?!n.visible:t,i.options.data[vr(n,i.data)]=n.options,mr(["graphic","dataLabel","connector","shadowGroup"],function(e){n[e]&&n[e][t?"show":"hide"](!0)}),n.legendItem&&a.legend.colorizeItem(n,t),t||"hover"!==n.state||n.setState(""),r&&(i.isDirty=!0),e)&&a.redraw()},slice:function(e,t,n){var i=this.series;kr(n,i.chart),_r(t,!0),this.sliced=this.options.sliced=pr(e)?e:!this.sliced,i.options.data[vr(this,i.data)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(e){var t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:this.shapeArgs.r,start:t.start,end:t.end})}}),wr=(M=e).addEvent,Sr=M.arrayMax,xr=M.defined,Cr=M.each,Tr=M.extend,Er=M.format,Ar=M.map,Or=M.merge,k=M.noop,L=M.pick,Mr=M.relativeLength,Lr=M.Series,R=M.seriesTypes,Ir=M.stableSort,M.distribute=function(e,t){function n(e,t){return e.target-t.target}for(var i=!0,a=e,r=[],o=0,s=e.length;s--;)o+=e[s].size;if(t<o){for(Ir(e,function(e,t){return(t.rank||0)-(e.rank||0)}),o=s=0;o<=t;)o+=e[s].size,s++;r=e.splice(s-1,e.length)}for(Ir(e,n),e=Ar(e,function(e){return{size:e.size,targets:[e.target]}});i;){for(s=e.length;s--;)i=e[s],o=(Math.min.apply(0,i.targets)+Math.max.apply(0,i.targets))/2,i.pos=Math.min(Math.max(0,o-i.size/2),t-i.size);for(s=e.length,i=!1;s--;)0<s&&e[s-1].pos+e[s-1].size>e[s].pos&&(e[s-1].size+=e[s].size,e[s-1].targets=e[s-1].targets.concat(e[s].targets),e[s-1].pos+e[s-1].size>t&&(e[s-1].pos=t-e[s-1].size),e.splice(s,1),i=!0)}s=0,Cr(e,function(e){var t=0;Cr(e.targets,function(){a[s].pos=e.pos+t,t+=a[s].size,s++})}),a.push.apply(a,r),Ir(a,n)},Lr.prototype.drawDataLabels=function(){var l,u,c,d,f=this,h=f.options,p=h.dataLabels,e=f.points,t=f.hasRendered||0,n=L(p.defer,!!h.animation),m=f.chart.renderer;(p.enabled||f._hasPointLabels)&&(f.dlProcessOptions&&f.dlProcessOptions(p),d=f.plotGroup("dataLabelsGroup","data-labels",n&&!t?"hidden":"visible",p.zIndex||6),n&&(d.attr({opacity:+t}),t||wr(f,"afterAnimate",function(){f.visible&&d.show(!0),d[h.animation?"animate":"attr"]({opacity:1},{duration:200})})),u=p,Cr(e,function(e){var t,n,i,a,r=e.dataLabel,o=e.connector,s=!r;l=e.dlOptions||e.options&&e.options.dataLabels,(t=L(l&&l.enabled,u.enabled)&&null!==e.y)&&(p=Or(u,l),n=e.getLabelConfig(),c=p.format?Er(p.format,n):p.formatter.call(n,p),a=p.style,n=p.rotation,a.color=L(p.color,a.color,f.color,"#000000"),"contrast"===a.color&&(e.contrastColor=m.getContrast(e.color||f.color),a.color=p.inside||L(e.labelDistance,p.distance)<0||h.stacking?e.contrastColor:"#000000"),h.cursor&&(
1a.cursor=h.cursor),i={fill:p.backgroundColor,stroke:p.borderColor,"stroke-width":p.borderWidth,r:p.borderRadius||0,rotation:n,padding:p.padding,zIndex:1},M.objectEach(i,function(e,t){void 0===e&&delete i[t]})),!r||t&&xr(c)?t&&xr(c)&&(r?i.text=c:(r=e.dataLabel=m[n?"text":"label"](c,0,-9999,p.shape,null,null,p.useHTML,null,"data-label")).addClass("highcharts-data-label-color-"+e.colorIndex+" "+(p.className||"")+(p.useHTML?"highcharts-tracker":"")),r.attr(i),r.css(a).shadow(p.shadow),r.added||r.add(d),f.alignDataLabel(e,r,p,null,s)):(e.dataLabel=r=r.destroy(),o&&(e.connector=o.destroy()))}))},Lr.prototype.alignDataLabel=function(e,t,n,i,a){var r,o=this.chart,s=o.inverted,l=L(e.plotX,-9999),u=L(e.plotY,-9999),c=t.getBBox(),d=n.rotation,f=n.align,h=this.visible&&(e.series.forceDL||o.isInsidePlot(l,Math.round(u),s)||i&&o.isInsidePlot(l,s?i.x+1:i.y+i.height-1,s)),p="justify"===L(n.overflow,"justify");h&&(r=n.style.fontSize,r=o.renderer.fontMetrics(r,t).b,i=Tr({x:s?this.yAxis.len-u:l,y:Math.round(s?this.xAxis.len-l:u),width:0,height:0},i),Tr(n,{width:c.width,height:c.height}),d?(p=!1,l=o.renderer.rotCorr(r,d),l={x:i.x+n.x+i.width/2+l.x,y:i.y+n.y+{top:0,middle:.5,bottom:1}[n.verticalAlign]*i.height},t[a?"attr":"animate"](l).attr({align:f}),u=180<(u=(d+720)%360)&&u<360,"left"===f?l.y-=u?c.height:0:"center"===f?(l.x-=c.width/2,l.y-=c.height/2):"right"===f&&(l.x-=c.width,l.y-=u?0:c.height)):(t.align(n,null,i),l=t.alignAttr),p?e.isLabelJustified=this.justifyDataLabel(t,n,l,c,i,a):L(n.crop,!0)&&(h=o.isInsidePlot(l.x,l.y)&&o.isInsidePlot(l.x+c.width,l.y+c.height)),n.shape)&&!d&&t[a?"attr":"animate"]({anchorX:s?o.plotWidth-e.plotY:e.plotX,anchorY:s?o.plotHeight-e.plotX:e.plotY}),h||(t.attr({y:-9999}),t.placed=!1)},Lr.prototype.justifyDataLabel=function(e,t,n,i,a,r){var o,s=this.chart,l=t.align,u=t.verticalAlign,c=!e.box&&e.padding||0,d=n.x+c;return d<0&&("right"===l?t.align="left":t.x=-d,o=!0),(d=n.x+i.width-c)>s.plotWidth&&("left"===l?t.align="right":t.x=s.plotWidth-d,o=!0),(d=n.y+c)<0&&("bottom"===u?t.verticalAlign="top":t.y=-d,o=!0),(d=n.y+i.height-c)>s.plotHeight&&("top"===u?t.verticalAlign="bottom":t.y=s.plotHeight-d,o=!0),o&&(e.placed=!r,e.align(t,null,a)),o},R.pie&&(R.pie.prototype.drawDataLabels=function(){var n,s,l,u,c,d,f,h,p=this,e=p.data,m=p.chart,g=p.options.dataLabels,v=L(g.connectorPadding,10),i=L(g.connectorWidth,1),_=m.plotWidth,y=m.plotHeight,b=p.center,k=b[2]/2,w=b[1],t=[[],[]],S=[0,0,0,0];p.visible&&(g.enabled||p._hasPointLabels)&&(Cr(e,function(e){e.dataLabel&&e.visible&&e.dataLabel.shortened&&(e.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),e.dataLabel.shortened=!1)}),Lr.prototype.drawDataLabels.apply(p),Cr(e,function(e){e.dataLabel&&e.visible&&(t[e.half].push(e),e.dataLabel._pos=null)}),Cr(t,function(e,t){var n,i,a,r=e.length,o=[];if(r)for(p.sortByAngle(e,t-.5),0<p.maxLabelDistance&&(n=Math.max(0,w-k-p.maxLabelDistance),i=Math.min(w+k+p.maxLabelDistance,m.plotHeight),Cr(e,function(e){0<e.labelDistance&&e.dataLabel&&(e.top=Math.max(0,w-k-e.labelDistance),e.bottom=Math.min(w+k+e.labelDistance,m.plotHeight),a=e.dataLabel.getBBox().height||21,e.positionsIndex=o.push({target:e.labelPos[1]-e.top+a/2,size:a,rank:e.y})-1)}),M.distribute(o,i+a-n)),h=0;h<r;h++)i=(c=e[h]).positionsIndex,l=c.labelPos,s=c.dataLabel,f=!1===c.visible?"hidden":"inherit",n=l[1],o&&xr(o[i])?void 0===o[i].pos?f="hidden":(u=o[i].size,d=c.top+o[i].pos):d=n,delete c.positionIndex,c=g.justify?b[0]+(t?-1:1)*(k+c.labelDistance):p.getX(d<c.top+2||d>c.bottom-2?n:d,t,c),s._attr={visibility:f,align:l[6]},s._pos={x:c+g.x+({left:v,right:-v}[l[6]]||0),y:d+g.y-10},l.x=c,l.y=d,L(g.crop,!0)&&(l=s.getBBox().width,n=null,c-l<v?(n=Math.round(l-c+v),S[3]=Math.max(n,S[3])):_-v<c+l&&(n=Math.round(c+l-_+v),S[1]=Math.max(n,S[1])),d-u/2<0?S[0]=Math.max(Math.round(u/2-d),S[0]):y<d+u/2&&(S[2]=Math.max(Math.round(d+u/2-y),S[2])),s.sideOverflow=n)}),0===Sr(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),i&&Cr(this.points,function(e){var t;n=e.connector,(s=e.dataLabel)&&s._pos&&e.visible&&0<e.labelDistance?(f=s._attr.visibility,(t=!n)&&(e.connector=n=m.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex).add(p.dataLabelsGroup),n.attr({"stroke-width":i,stroke:g.connectorColor||e.color||"#666666"})),n[t?"attr":"animate"]({d:p.connectorPath(e.labelPos)}),n.attr("visibility",f)):n&&(e.connector=n.destroy())}))},R.pie.prototype.connectorPath=function(e){var t=e.x,n=e.y;return L(this.options.dataLabels.softConnector,!0)?["M",t+("left"===e[6]?5:-5),n,"C",t,n,2*e[2]-e[4],2*e[3]-e[5],e[2],e[3],"L",e[4],e[5]]:["M",t+("left"===e[6]?5:-5),n,"L",e[2],e[3],"L",e[4],e[5]]},R.pie.prototype.placeDataLabels=function(){Cr(this.points,function(e){var t=e.dataLabel;t&&e.visible&&((e=t._pos)?(t.sideOverflow&&(t._attr.width=t.getBBox().width-t.sideOverflow,t.css({width:t._attr.width+"px",textOverflow:"ellipsis"}),t.shortened=!0),t.attr(t._attr),t[t.moved?"animate":"attr"](e),t.moved=!0):t&&t.attr({y:-9999}))},this)},R.pie.prototype.alignDataLabel=k,R.pie.prototype.verifyDataLabelOverflow=function(e){var t,n=this.center,i=this.options,a=i.center,r=i.minSize||80,o=null!==i.size;return o||(null!==a[0]?t=Math.max(n[2]-Math.max(e[1],e[3]),r):(t=Math.max(n[2]-e[1]-e[3],r),n[0]+=(e[3]-e[1])/2),null!==a[1]?t=Math.max(Math.min(t,n[2]-Math.max(e[0],e[2])),r):(t=Math.max(Math.min(t,n[2]-e[0]-e[2]),r),n[1]+=(e[0]-e[2])/2),t<n[2]?(n[2]=t,n[3]=Math.min(Mr(i.innerSize||0,t),t),this.translate(n),this.drawDataLabels&&this.drawDataLabels()):o=!0),o}),R.column&&(R.column.prototype.alignDataLabel=function(e,t,n,i,a){var r=this.chart.inverted,o=e.series,s=e.dlBox||e.shapeArgs,l=L(e.below,e.plotY>L(this.translatedThreshold,o.yAxis.len)),u=L(n.inside,!!this.options.stacking);s&&((i=Or(s)).y<0&&(i.height+=i.y,i.y=0),0<(s=i.y+i.height-o.yAxis.len)&&(i.height-=s),r&&(i={x:o.yAxis.len-i.y-i.height,y:o.xAxis.len-i.x-i.width,width:i.height,height:i.width}),u||(r?(i.x+=l?0:i.width,i.width=0):(i.y+=l?i.height:0,i.height=0))),n.align=L(n.align,!r||u?"center":l?"right":"left"),n.verticalAlign=L(n.verticalAlign,r||u?"middle":l?"top":"bottom"),Lr.prototype.alignDataLabel.call(this,e,t,n,i,a),e.isLabelJustified&&e.contrastColor&&e.dataLabel.css({color:e.contrastColor})}),o=e.Chart,Dr=e.each,Pr=e.objectEach,Rr=e.pick,$r=e.addEvent,o.prototype.callbacks.push(function(e){function t(){var i=[];Dr(e.yAxis||[],function(e){e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&Pr(e.stacks,function(e){Pr(e,function(e){i.push(e.label)})})}),Dr(e.series||[],function(e){var t=e.options.dataLabels,n=e.dataLabelCollections||["dataLabel"];(t.enabled||e._hasPointLabels)&&!t.allowOverlap&&e.visible&&Dr(n,function(t){Dr(e.points,function(e){e[t]&&(e[t].labelrank=Rr(e.labelrank,e.shapeArgs&&e.shapeArgs.height),i.push(e[t]))})})}),e.hideOverlappingLabels(i)}t(),$r(e,"redraw",t)}),o.prototype.hideOverlappingLabels=function(e){for(var t,n,i,a,r,o,s,l,u,c,d,f=e.length,h=0;h<f;h++)(t=e[h])&&(t.oldOpacity=t.opacity,t.newOpacity=1,t.width||(n=t.getBBox(),t.width=n.width,t.height=n.height));for(e.sort(function(e,t){return(t.labelrank||0)-(e.labelrank||0)}),h=0;h<f;h++)for(n=e[h],t=h+1;t<f;++t)i=e[t],n&&i&&n!==i&&n.placed&&i.placed&&0!==n.newOpacity&&0!==i.newOpacity&&(r=n.alignAttr,u=i.alignAttr,o=n.parentGroup,c=i.parentGroup,d=2*(!n.box&&n.padding||0),a=r.x+o.translateX,r=r.y+o.translateY,o=n.width-d,s=n.height-d,l=u.x+c.translateX,u=u.y+c.translateY,c=i.width-d,d=i.height-d,!(a+o<l||l+c<a||r+s<u||u+d<r))&&((n.labelrank<i.labelrank?n:i).newOpacity=0);Dr(e,function(e){var t,n;e&&(n=e.newOpacity,e.oldOpacity!==n&&e.placed&&(n?e.show(!0):t=function(){e.hide()},e.alignAttr.opacity=n,e[e.isOld?"animate":"attr"](e.alignAttr,null,t)),e.isOld=!0)})},Hr=(s=e).addEvent,l=s.Chart,Fr=s.createElement,Nr=s.css,jr=s.defaultOptions,Vr=s.defaultPlotOptions,h=s.each,Br=s.extend,Ur=s.fireEvent,Wr=s.hasTouch,Yr=s.inArray,zr=s.isObject,c=s.Legend,Gr=s.merge,qr=s.pick,io=s.Point,d=s.Series,f=s.seriesTypes,Xr=s.svg,k=s.TrackerMixin={drawTrackerPoint:function(){function t(e){var t=i.getPointFromEvent(e);void 0!==t&&(i.isDirectTouch=!0,t.onMouseOver(e))}var n=this,i=n.chart.pointer;h(n.points,function(e){e.graphic&&(e.graphic.element.point=e),e.dataLabel&&(e.dataLabel.div?e.dataLabel.div.point=e:e.dataLabel.element.point=e)}),n._hasTracking||(h(n.trackerGroups,function(e){n[e]&&(n[e].addClass("highcharts-tracker").on("mouseover",t).on("mouseout",function(e){i.onTrackerMouseOut(e)}),Wr&&n[e].on("touchstart",t),n.options.cursor)&&n[e].css(Nr).css({cursor:n.options.cursor})}),n._hasTracking=!0)},drawTrackerGraph:function(){function t(){s.hoverSeries!==n&&n.onMouseOver()}var e,n=this,i=n.options,a=i.trackByArea,r=[].concat(a?n.areaPath:n.graphPath),o=r.length,s=n.chart,l=s.pointer,u=s.renderer,c=s.options.tooltip.snap,d=n.tracker,f="rgba(192,192,192,"+(Xr?1e-4:.002)+")";if(o&&!a)for(e=o+1;e--;)"M"===r[e]&&r.splice(e+1,0,r[e+1]-c,r[e+2],"L"),(e&&"M"===r[e]||e===o)&&r.splice(e,0,"L",r[e-2]+c,r[e-1]);d?d.attr({d:r}):n.graph&&(n.tracker=u.path(r).attr({"stroke-linejoin":"round",visibility:n.visible?"visible":"hidden",stroke:f,fill:a?f:"none","stroke-width":n.graph.strokeWidth()+(a?0:2*c),zIndex:2}).add(n.group),h([n.tracker,n.markerGroup],function(e){e.addClass("highcharts-tracker").on("mouseover",t).on("mouseout",function(e){l.onTrackerMouseOut(e)}),i.cursor&&e.css({cursor:i.cursor}),Wr&&e.on("touchstart",t)}))}},f.column&&(f.column.prototype.drawTracker=k.drawTrackerPoint),f.pie&&(f.pie.prototype.drawTracker=k.drawTrackerPoint),f.scatter&&(f.scatter.prototype.drawTracker=k.drawTrackerPoint),Br(c.prototype,{setItemEvents:function(n,e,t){var i=this,a=i.chart.renderer.boxWrapper,r="highcharts-legend-"+(n.series?"point":"series")+"-active";(t?e:n.legendGroup).on("mouseover",function(){n.setState("hover"),a.addClass(r),e.css(i.options.itemHoverStyle)}
1).on("mouseout",function(){e.css(Gr(n.visible?i.itemStyle:i.itemHiddenStyle)),a.removeClass(r),n.setState()}).on("click",function(e){function t(){n.setVisible&&n.setVisible()}e={browserEvent:e},n.firePointEvent?n.firePointEvent("legendItemClick",e,t):Ur(n,"legendItemClick",e,t)})},createCheckboxForItem:function(t){t.checkbox=Fr("input",{type:"checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),Hr(t.checkbox,"click",function(e){Ur(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})}}),jr.legend.itemStyle.cursor="pointer",Br(l.prototype,{showResetZoom:function(){var e=this,t=jr.lang,n=e.options.chart.resetZoomButton,i=n.theme,a=i.states,r="chart"===n.relativeTo?null:"plotBox";this.resetZoomButton=e.renderer.button(t.resetZoom,null,null,function(){e.zoomOut()},i,a&&a.hover).attr({align:n.position.align,title:t.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,r)},zoomOut:function(){var e=this;Ur(e,"selection",{resetSelection:!0}
1,function(){e.zoom()})},zoom:function(e){var n,t,i=this.pointer,a=!1;!e||e.resetSelection?(h(this.axes,function(e){n=e.zoom()}),i.initiated=!1):h(e.xAxis.concat(e.yAxis),function(e){var t=e.axis;i[t.isXAxis?"zoomX":"zoomY"]&&(n=t.zoom(e.min,e.max),t.displayBtn)&&(a=!0)}),t=this.resetZoomButton,a&&!t?this.showResetZoom():!a&&zr(t)&&(this.resetZoomButton=t.destroy()),n&&this.redraw(qr(this.options.chart.animation,e&&e.animation,this.pointCount<100))},pan:function(u,e){var c,d=this,t=d.hoverPoints;t&&h(t,function(e){e.setState()}),h("xy"===e?[1,0]:[1],function(e){var t=(e=d[e?"xAxis":"yAxis"][0]).horiz,n=u[t?"chartX":"chartY"],i=d[t=t?"mouseDownX":"mouseDownY"],a=(e.pointRange||0)/2,r=e.getExtremes(),o=e.toValue(i-n,!0)+a,s=(a=e.toValue(i+e.len-n,!0)-a)<o,i=s?a:o,o=s?o:a,l=(a=Math.min(r.dataMin,e.toValue(e.toPixels(r.min)-e.minPixelPadding)))-i;0<l&&(o+=l,i=a),0<(l=o-(s=Math.max(r.dataMax,e.toValue(e.toPixels(r.max)+e.minPixelPadding))))&&(o=s,i-=l),e.series.length&&i!==r.min&&o!==r.max&&(e.setExtremes(i,o,!1,!1,{trigger:"pan"}),c=!0),d[t]=n}),c&&d.redraw(!1),Nr(d.container,{cursor:"move"})}}),Br(io.prototype,{select:function(e,t){var n=this,i=n.series,a=i.chart;e=qr(e,!n.selected),n.firePointEvent(e?"select":"unselect",{accumulate:t},function(){n.selected=n.options.selected=e,i.options.data[Yr(n,i.data)]=n.options,n.setState(e&&"select"),t||h(a.getSelectedPoints(),function(e){e.selected&&e!==n&&(e.selected=e.options.selected=!1,i.options.data[Yr(e,i.data)]=e.options,e.setState(""),e.firePointEvent("unselect"))})})},onMouseOver:function(e){var t=this.series.chart,n=t.pointer;e=e?n.normalize(e):n.getChartCoordinatesFromPoint(this,t.inverted),n.runPointActions(e,this)},onMouseOut:function(){var e=this.series.chart;this.firePointEvent("mouseOut"),h(e.hoverPoints||[],function(e){e.setState()}),e.hoverPoints=e.hoverPoint=null},importEvents:function(){var n,e;this.hasImportedEvents||(e=Gr((n=this).series.options.point,n.options).events,n.events=e,s.objectEach(e,function(e,t){Hr(n,t,e)}),this.hasImportedEvents=!0)},setState:function(e,t){var n,i=Math.floor(this.plotX),a=this.plotY,r=this.series,o=r.options.states[e]||{},s=Vr[r.type].marker&&r.options.marker,l=s&&!1===s.enabled,u=s&&s.states&&s.states[e]||{},c=!1===u.enabled,d=r.stateMarkerGraphic,f=this.marker||{},h=r.chart,p=r.halo,m=s&&r.markerAttribs;(e=e||"")===this.state&&!t||this.selected&&"select"!==e||!1===o.enabled||e&&(c||l&&!1===u.enabled)||e&&f.states&&f.states[e]&&!1===f.states[e].enabled||(m&&(n=r.markerAttribs(this,e)),this.graphic?(this.state&&this.graphic.removeClass("highcharts-point-"+this.state),e&&this.graphic.addClass("highcharts-point-"+e),this.graphic.animate(r.pointAttribs(this,e),qr(h.options.chart.animation,o.animation)),n&&this.graphic.animate(n,qr(h.options.chart.animation,u.animation,s.animation)),d&&d.hide()):(e&&u&&(s=f.symbol||r.symbol,(d=d&&d.currentSymbol!==s?d.destroy():d)?d[t?"animate":"attr"]({x:n.x,y:n.y}):s&&(r.stateMarkerGraphic=d=h.renderer.symbol(s,n.x,n.y,n.width,n.height).add(r.markerGroup),d.currentSymbol=s),d)&&d.attr(r.pointAttribs(this,e)),d&&(d[e&&h.isInsidePlot(i,a,h.inverted)?"show":"hide"](),d.element.point=this)),(i=o.halo)&&i.size?(p||(r.halo=p=h.renderer.path().add((this.graphic||d).parentGroup)),p[t?"animate":"attr"]({d:this.haloPath(i.size)}),p.attr({class:"highcharts-halo highcharts-color-"+qr(this.colorIndex,r.colorIndex)}),p.point=this,p.attr(Br({fill:this.color||r.color,"fill-opacity":i.opacity,zIndex:-1},i.attributes))):p&&p.point&&p.point.haloPath&&p.animate({d:p.point.haloPath(0)}),this.state=e)},haloPath:function(e){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-e,this.plotY-e,2*e,2*e)}}),Br(d.prototype,{onMouseOver:function(){var e=this.chart,t=e.hoverSeries;t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&Ur(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this},onMouseOut:function(){var e=this.options,t=this.chart,n=t.tooltip,i=t.hoverPoint;t.hoverSeries=null,i&&i.onMouseOut(),this&&e.events.mouseOut&&Ur(this,"mouseOut"),!n||this.stickyTracking||n.shared&&!this.noSharedTooltip||n.hide(),this.setState()},setState:function(t){var n=this,e=n.options,i=n.graph,a=e.states,r=e.lineWidth,e=0;if(t=t||"",n.state!==t&&(h([n.group,n.markerGroup,n.dataLabelsGroup],function(e){e&&(n.state&&e.removeClass("highcharts-series-"+n.state),t)&&e.addClass("highcharts-series-"+t)}),!a[n.state=t]||!1!==a[t].enabled)&&(t&&(r=a[t].lineWidth||r+(a[t].lineWidthPlus||0)),i&&!i.dashstyle))for(i.animate(r={"stroke-width":r},qr(n.chart.options.chart.animation,a[t]&&a[t].animation));n["zone-graph-"+e];)n["zone-graph-"+e].attr(r),e+=1},setVisible:function(t,e){var n=this,i=n.chart,a=n.legendItem,r=i.options.chart.ignoreHiddenSeries,o=n.visible,s=(n.visible=t=n.options.visible=n.userOptions.visible=void 0===t?!o:t)?"show":"hide";h(["group","dataLabelsGroup","markerGroup","tracker","tt"],function(e){n[e]&&n[e][s]()}),i.hoverSeries!==n&&(i.hoverPoint&&i.hoverPoint.series)!==n||n.onMouseOut(),a&&i.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&h(i.series,function(e){e.options.stacking&&e.visible&&(e.isDirty=!0)}),h(n.linkedSeries,function(e){e.setVisible(t,!1)}),r&&(i.isDirtyBox=!0),!1!==e&&i.redraw(),Ur(n,s)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(e){this.selected=e=void 0===e?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),Ur(this,e?"select":"unselect")},drawTracker:k.drawTrackerGraph}),R=(Kr=e).Chart,Zr=Kr.each,Jr=Kr.inArray,Qr=Kr.isArray,eo=Kr.isObject,to=Kr.pick,no=Kr.
1splat,R.prototype.setResponsive=function(t){var e=this.options.responsive,n=[],i=this.currentResponsive,a=(e&&e.rules&&Zr(e.rules,function(e){void 0===e._id&&(e._id=Kr.uniqueKey()),this.matchResponsiveRule(e,n,t)},this),Kr.merge.apply(0,Kr.map(n,function(t){return Kr.find(e.rules,function(e){return e._id===t}).chartOptions})));(n=n.toString()||void 0)!==(i&&i.ruleIds)&&(i&&this.update(i.undoOptions,t),n?(this.currentResponsive={ruleIds:n,mergedOptions:a,undoOptions:this.currentOptions(a)},this.update(a,t)):this.currentResponsive=void 0)},R.prototype.matchResponsiveRule=function(e,t){var n=e.condition;(n.callback||function(){return this.chartWidth<=to(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=to(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=to(n.minWidth,0)&&this.chartHeight>=to(n.minHeight,0)}).call(this)&&t.push(e._id)},R.prototype.currentOptions=function(e){var t={};return function n(i,a,r,o){var s;Kr.objectEach(i,function(e,t){if(!o&&-1<Jr(t,["series","xAxis","yAxis"]))for(i[t]=no(i[t]),r[t]=[],s=0;s<i[t].length;s++)a[t][s]&&(r[t][s]={},n(e[s],a[t][s],r[t][s],o+1));else eo(e)?(r[t]=Qr(e)?[]:{},n(e,a[t]||{},r[t],o+1)):r[t]=a[t]||null})}(e,this.options,t,0),t},e},"object"==typeof t&&t.exports?t.exports=i.document?a(i):a:i.Highcharts=a(i)},{}],406:[function(e,t,n){"use strict";var o=/["'&<>]/;t.exports=function(e){var t,n=""+e,e=o.exec(n);if(!e)return n;var i="",a=0,r=0;for(a=e.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}r!==a&&(i+=n.substring(r,a)),r=a+1,i+=t}return r!==a?i+n.substring(r,a):i}},{}],416:[function(e,t,n){"use strict";function m(e){return"function"==typeof e}function g(e){return e instanceof Array}function a(e){return m(e)||g(e)}function v(e){return e&&JSON.parse(JSON.stringify(e))}function _(e,t){return JSON.stringify(e)===JSON.stringify(t)}var y=e("validatex");function s(a,r,e,t,n,i){function o(e,t){if(0===arguments.length)return v(h);var n=!_(h,e),i=(f=v(h),h=a._config[r].modifier?a._config[r].modifier(v(e),f):v(e),a._config[r].projector);i&&n&&!1!==t&&(c?(clearTimeout(p),p=setTimeout(function(){return i(e,a.data(),a)},c)):i(e,a.data(),a)),!i&&u&&n&&!1!==t&&(c?(clearTimeout(p),p=setTimeout(function(){return u(a.data(),a)},c)):u(a.data(),a))}var s,e=2<arguments.length&&void 0!==e?e:null,l=t,u=n,c=5<arguments.length&&void 0!==i?i:0,d=void 0===e?null:e,f=null,h=a._config[r].modifier?a._config[r].modifier(v(d),f):v(d),p=void 0;return o.isDirty=function(){return!_(d,h)},o.setAndValidate=function(e){o(e),o.isValid()},o.isValid=function(e){var t=void 0,n=a._config[r],t=(t=n.cleaner)?t(o()):o(),n=m(n)||g(n)?n:n.validator,t=(0,y.validateSingle)(t,n,l,a.data(),r);return!1!==e&&o.error(t||void 0),void 0===t||l&&0===t.length},o.reset=function(e){!1===e?o(d,!1):o(d),o.error(void 0)},o.error=function(e){if(0===arguments.length)return s;s=!l&&g(e)&&0<e.length?e[0]:e},o.setInitialValue=function(e){d=v(e)},o}t.exports=function(r){var n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=arguments[2],i={_config:r,isValid:function(n){var i=this;return Object.keys(r).reduce(function(e,t){return e.push(i[t].isValid(n)),e},[]).every(function(e){return!0===e})},isDirty:function(){var t=this;return Object.keys(r).some(function(e){return t[e].isDirty()})},data:function(n,i){var a=this;if(!n)return Object.keys(r).reduce(function(e,t){var n=r[t].cleaner,i=a[t]();return e[t]=n?n(i):i,e},{});Object.keys(n).forEach(function(e){var t=n[e];r[e]&&((e=a[e])(t,!1),i)&&e.setInitialValue(t)}),o&&o(this.data())},setInitialValue:function(t){var n=this;Object.keys(r).forEach(function(e){n[e].setInitialValue(t[e])})},error:function(t){var n=this;if(0===arguments.length)return Object.keys(r).reduce(function(e,t){return e[t]=n[t].error(),e},{});Object.keys(r).forEach(function(e){n[e].error(t[e]||void 0)})},reset:function(){var t=this;Object.keys(r).forEach(function(e){t[e].reset(!1),t[e].error(void 0)}),o&&o(this.data())},getUpdates:function(){var a=this;return Object.keys(r).reduce(function(e,t){var n,i;return a[t].isDirty()&&(n=r[t].cleaner,i=a[t](),e[t]=n?n(i):i),e},{})}};return Object.keys(r).forEach(function(e){var t=r[e];if(!a(t)&&!a(t.validator))throw Error("'"+e+"' needs a validator.");i[e]=s(i,e,t.default,n,o,t.debounce)}),i}},{validatex:432}],432:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},l=n.SkipValidation=function(e){this.name="SkipValidation",this.message=e},u=n.validateSingle=function(e,t,n,i,a){var r=[];"function"==typeof t&&(t=[t]);for(var o=0;o<t.length;o++)try{var s=t[o](e,i);"string"==typeof s&&r.push(s.replace("{value}",e).replace("{key}",a))}catch(e){if(e instanceof l)break}return!0===n?r:0<r.length?r[0]:void 0};n.validate=function(e,t,n){if(t){var i,a,r={},o=!0;if("object"!==(void 0===t?"undefined":s(t))||t.length)return r=u(e,t,n);for(a in t)t.hasOwnProperty(a)&&(void 0!==(i=u(e[a],t[a],n,e,a))&&(o=!1),r[a]=i);return o?void 0:r}},n.required=function(t,n){function i(e){return void 0===e||""===e||null===e}return function(e){if(t&&i(e))return n||"This field is required.";if(!t&&i(e))throw new l}},n.isNumber=function(t){return function(e){if("number"!=typeof e||isNaN(e))return t||"'{value}' is not a valid number."}},n.isString=function(t){return function(e){if("string"!=typeof e)return t||"'{value}' is not a valid string."}},n.isFunction=function(t){return function(e){if("function"!=typeof e)return t||"Expected a function."}},n.isObject=function(t){return function(e){if(e!==Object(e))return t||"Expected an object."}},n.isArray=function(t){return function(e){if("[object Array]"!==Object.prototype.toString.call(e))return t||"Expected an array."}},n.length=function(t,n){return function(e){if((e+"").length!==t)return n||"It must be "+t+" characters long."}},n.isEmail=function(t){return function(e){if(!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e))return t||"Invalid email id."}},n.equalsTo=function(n,i){return function(e,t){if(e!==t[n])return i||"'{key}' and '"+n+"' do not match."}},n.minLength=function(t,n){return function(e){if((e+"").length<t)return n||"It must be at least "+t+" characters long."}},n.maxLength=function(t,n){return function(e){if(t<(e+"").length)return n||"It must be at most "+t+" characters long."}},n.isBoolean=function(t){return function(e){if(!0!==e&&!1!==e)return t||"Invalid boolean value."}},n.within=function(i,a){return function(e){e instanceof Array||(e=[e]);for(var t=[],n=0;n<e.length;
1n++)-1===i.indexOf(e[n])&&t.push(e[n]);if(0<t.length)return a||"["+t+"] do not fall under the allowed list."}},n.excludes=function(i,a){return function(e){e instanceof Array||(e=[e]);for(var t=[],n=0;n<e.length;n++)-1!==i.indexOf(e[n])&&t.push(e[n]);if(0<t.length)return a||"["+t+"] fall under restricted values."}},n.pattern=function(t,n){return function(e){if(!t.test(e))return n||"'{value}' does not match with the pattern."}}},{}],19:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.trackingInitiatorEvent=void 0,n.registerTotalkredit=function(e,t,n,i,a){var r="";n&&(r=n.toLowerCase());n={};n="find rådgiver"==e?{eventCategory:e,eventAction:t,eventLabel:r,eventValue:0,eventNoninteraction:!0,collaborationState:i,piName:a,event:"track-event"}:{eventCategory:e,eventAction:t,eventLabel:r,eventValue:0,eventNoninteraction:!0,collaborationState:i,event:"track-event"};(0,o.registerGtmDataLayer)(n)},n.googleAnalyticsResolutionMediaPixel=function(e,t,n,i){var a=window.location.hostname,r=window.location.href,e="https://stm.totalkredit.dk/extembed?v=1&t=event&tid=UA-38857911-3&ec="+e+"&ea="+t+"&el="+n+"&dl="+r+"&dh="+a+"&uip=194.89.129.68&cid=mp202101191233&dt=beregnere&ds=embed&sc=end";document.getElementById(i).src="",document.getElementById(i).src=e};var o=e("../../../../javascript/components/gtmDataLayerService");n.trackingInitiatorEvent=Object.freeze({undefined:void 0,buttonPressed:1,other:128})},{"../../../../javascript/components/gtmDataLayerService":245}],245:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.registerGtmDataLayer=function(e){window.dataLayer=void 0!==window.dataLayer&&window.dataLayer instanceof Array?window.dataLayer:[],window.dataLayer.push(e)}},{}],18:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.scrollToResult=void 0;var e=e("smoothscroll-polyfill"),i=(e=e)&&e.__esModule?e:{default:e};function r(e){var i,e=document.querySelector(e);null!=e&&("none"==e.style.display?(i=e,new MutationObserver(function(e,t){for(var n=0;n<e.length;n++)"style"==e[n].attributeName&&a(i)}).observe(i,{characterData:!0,attributes:!0,attributeFilter:["style"],childList:!0,subtree:!1})):a(e))}function a(e){i.default.polyfill(),e.scrollIntoView({behavior:"smooth",block:"start"})}n.scrollToResult=function(e,t){var n=window,i=(a=document).documentElement,a=a.getElementsByTagName("body")[0],n=n.innerWidth||i.clientWidth||a.clientWidth;document.querySelector(".nk-beregner-result-area")?840<=n||r(e):document.querySelector(".tk-beregner--force-mobile-styling")?r(e):t&&r(".tk-result-details")}},{"smoothscroll-polyfill":429}],429:[function(e,t,n){"use strict";function i(){var e,i,s,l,n,t,u=window,c=document;function d(e,t){this.scrollLeft=e,this.scrollTop=t}function a(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function r(e,t){return"Y"===t?e.clientHeight+n<e.scrollHeight:"X"===t?e.clientWidth+n<e.scrollWidth:void 0}function o(e,t){e=u.getComputedStyle(e,null)["overflow"+t];return"auto"===e||"scroll"===e}function f(e){for(;e!==c.body&&!1===(n=void 0,n=r(t=e,"Y")&&o(t,"Y"),t=r(t,"X")&&o(t,"X"),n||t);)e=e.parentNode||e.host;var t,n;return e}function h(e){var t=l(),t=1<(t=(t-e.startTime)/i)?1:t,t=.5*(1-Math.cos(Math.PI*t)),n=e.startX+(e.x-e.startX)*t,t=e.startY+(e.y-e.startY)*t;e.method.call(e.scrollable,n,t),n===e.x&&t===e.y||u.requestAnimationFrame(h.bind(u,e))}function p(e,t,n){var i,a,r,o=l(),e=e===c.body?(a=(i=u).scrollX||u.pageXOffset,r=u.scrollY||u.pageYOffset,s.scroll):(a=(i=e).scrollLeft,r=e.scrollTop,d);h({scrollable:i,method:e,startTime:o,startX:a,startY:r,x:t,y:n})}"scrollBehavior"in c.documentElement.style&&!0!==u.__forceSmoothScrollPolyfill__||(e=u.HTMLElement||u.Element,i=468,s={scroll:u.scroll||u.scrollTo,scrollBy:u.scrollBy,elementScroll:e.prototype.scroll||d,scrollIntoView:e.prototype.scrollIntoView},l=u.performance&&u.performance.now?u.performance.now.bind(u.performance):Date.now,t=u.navigator.userAgent,n=new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(t)?1:0,u.scroll=u.scrollTo=function(){void 0!==arguments[0]&&(!0===a(arguments[0])?s.scroll.call(u,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:u.scrollX||u.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:u.scrollY||u.pageYOffset):p.call(u,c.body,void 0!==arguments[0].left?~~arguments[0].left:u.scrollX||u.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:u.scrollY||u.pageYOffset))},u.scrollBy=function(){void 0!==arguments[0]&&(a(arguments[0])?s.scrollBy.call(u,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):p.call(u,c.body,~~arguments[0].left+(u.scrollX||u.pageXOffset),~~arguments[0].top+(u.scrollY||u.pageYOffset)))},e.prototype.scroll=e.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0===a(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");s.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}else{var e=arguments[0].left,t=arguments[0].top;p.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}},e.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0===a(arguments[0])?s.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop):this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}))},e.prototype.scrollIntoView=function(){var e,t,n;!0===a(arguments[0])?s.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]):(t=(e=f(this)).getBoundingClientRect(),n=this.getBoundingClientRect(),e!==c.body?(p.call(this,e,e.scrollLeft+n.left-t.left,e.scrollTop+n.top-t.top),"fixed"!==u.getComputedStyle(e).position&&u.scrollBy({left:t.left,top:t.top,behavior:"smooth"})):u.scrollBy({left:n.left,top:n.top,behavior:"smooth"}))})}"object"==typeof n&&void 0!==t?t.exports={polyfill:i}:i()},{}],16:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var e=e("mithril"),o=(e=e)&&e.__esModule?e:{default:e};function r(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this._labels={},this._settings={},this._ready=!1,this._debug=!1,this._endpoint="/api/initializeCalculator?type=",this._useType=!0,this._debug=e}i(r,[{key:"setEndpoint",value:function(e,t){this._endpoint=e,this._useType=t}},{key:"download",value:function(e,n,i,a){var r=this,e=(n.baseUrl&&null!=n.baseUrl&&null!=n.baseUrl?n.baseUrl:"")+r._endpoint+(r._useType?e:"");o.default.request({method:"GET",url:e}).then(function(e){if(null!=e&&"object"==typeof e){if(null!=e.labels&&(r._labels=e.labels),null!=e.settings&&(r._settings=e.settings),null!=e.labels&&null!=n.customLabels)for(var t in n.customLabels)r._labels[t]=n.customLabels[t];r._ready=!0,i()}else console.log("Malformed labels and settings from Calculator API:"),console.log(e),a()},function(e){console.log("Could not get labels and settings from Calculator API:"),console.log(e),a()})}},{key:"setDebug",value:function(e){this._debug=e}},{key:"isReady",value:function(){return _ready}},{key:"get",value:function(e){return this._debug||!this._labels[e]?"["+e+"]":this._labels[e]}},{key:"getOrNull",value:function(e){return this._labels[e]||null}},{key:"setting",value:function(e){return this._settings[e]}},{key:"settingOrNull",value:function(e){return this._settings[e]||null}},{key:"getHtml",value:function(e){return o.default.trust(this.get(e))}},{key:"getHtmlOrNull",value:function(e){return this._labels[e]?o.default.trust(this.get(e)):null}}]),n.default=r},{mithril:410}],14:[function(e,t,n){"use strict";function a(){return["nykredit.dk","totalkredit.dk","dk-tot-prep.immeo.net","dk-nyk-prep.immeo.net","dk-nyk-inte.immeo.net","dk-tot-inte.immeo.net","dk-nyk-local.immeo.net","dk-tot-local.immeo.net"].map(function(e){return e=e,window.location.hostname.toLowerCase().indexOf(e.toLowerCase())<0}).reduce(function(e,t){return e&&t},!0)}Object.defineProperty(n,"__esModule",{value:!0}),n.useThirdPartyGaPixel=a,n.gaPixel=function(e,t,n,i){a()&&(document.getElementById(i).src="",document.getElementById(i).src="https://www.google-analytics.com/collect?ds=mp&cd9=mp&v=1&t=event&tid=UA-38857911-3&ec="+e+"&ea="+t+"&el="+n+"&dl="+window.location.href+"&dh="+window.location.hostname.replace("www.","")+"&uip=194.89.129.68&cid=mp202101191233&dt=tester&sc=end")}},{}],13:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkContainerSize=function(e,t){var n=document.getElementsByTagName(t),n=(document.getElementById(t),(0<n.length?n[0]:document.getElementById(t)).parentElement.clientWidth);e.colDesktopClass="",e.forceMobileStylingClass="",800<n?e.colDesktopClass="tk-col-lg-6":e.forceMobileStylingClass="tk-beregner--force-mobile-styling"}},{}],12:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function")}i(o,[{key:"get",value:function(){if(!(-1<document.location.hostname.indexOf("totalkredit")||-1<document.location.hostname.indexOf("dk-tot-prep")||-1<document.location.hostname.indexOf("dk-tot-inte")||-1<document.location.hostname.indexOf("dk-tot-local")||-1<document.location.hostname.indexOf("localhost")))return(0,r.default)("div",{class:"tk-col-xs-12 tk-typography--body-xs-alt"},(0,r.default)("p",{class:"tk-partnership__text"},(0,r.default)("span",null,"I samarbejde med"),(0,r.default)("svg",{id:"tk-cross",class:"icon icon--md",viewBox:"0 0 32.6 32.6",width:"100%",height:"100%"},(0,r.default)("path",{fill:"#FF4D00",d:"M11.3 16.4L0 27.6l5 5 11.3-11.2 11.3 11.2s5-4.9 5-5L21.3 16.4l-5-5-5 5z"}),(0,r.default)("path",{fill:"#FF8300",d:"M11.6 15.9L0 4.9 5.1 0l11.6 11-5.1 4.9z"}),(0,r.default)("path",{fill:"#FF8300",d:"M15.9 11L27.5 0l5.1 4.9-11.6 11-5.1-4.9z"})),(0,r.default)("span",null,"Totalkredit")))}}]),n.default=o},{mithril:410}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var r=e("mithril"),c=(r=r)&&r.__esModule?r:{default:r},d=e("../util/numberFormat");i(o,[{key:"getFormSetup",value:function(n,i,a){return{default:a(),validator:[function(e){}],modifier:function(e,t){return e=Number(e),(e=isNaN(e)?a():e)<n()?n():e>i()?i():e}}}},{key:"getHtml",value:function(t,n,e,i,a,r,o,s){function l(){u.ranges[n].doCalc&&(u.ranges[n].doCalc=!1,r())}var u=this;null==o&&(o=function(){});return null==u.ranges[n]&&(u.ranges[n]={doCalc:!1,scheduler:null},u.ranges[n].scheduler=setInterval(l,u.updateInterval)),(0,c.default)("div",{class:"range"},(0,c.default)("div",{class:"range__label"},(0,c.default)("input",{class:"range__textinput",type:"tel",disabled:s,value:Math.max(t[n](),e),onchange:c.default.withAttr("value",function(e){t[n]((0,d.removeNonDigitChars)(e)),u.ranges[n].doCalc=!0})})," "+a),(0,c.default)("div",{class:"range__container"},(0,c.default)("div",{class:"range__fill",style:"width:"+(t[n]()-e)/(i-e)*100+"%"}),(0,c.default)("input",{class:"range__volume-slider",type:"range",value:t[n](),min:e,max:i,name:"rangeslider",oninput:c.default.withAttr("value",function(e){t[n](e),o(),clearInterval(u.ranges[n].scheduler),u.ranges[n].scheduler=setInterval(l,u.updateInterval)}),onchange:c.default.withAttr("value",function(e){t[n](e),clearInterval(u.ranges[n].scheduler),u.ranges[n].scheduler=setInterval(l,u.updateInterval),u.ranges[n].doCalc=!0})})))}}]);r=o;function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.updateInterval=300,this.ranges={}}n.default=r},{"../util/numberFormat":17,mithril:410}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function")}i(o,[{key:"oninit",value:function(e){this.modalIsOpen=!1,this.open=function(e){this.modalIsOpen=!0},this.close=function(){this.modalIsOpen=!1}}},{key:"view",value:function(e){return this.title=e.attrs.title,this.body=e.attrs.body,(0,r.default)("div",{className:"tk-modal "+(!0===e.state.modalIsOpen?"tk-modal--is-active":"")},(0,r.default)("div",{class:"tk-modal__backdrop",onclick:function(){e.state.close()}}),(0,r.default)("div",{class:"tk-modal__content"},(0,r.default)("div",{class:"tk-modal__close",onclick:function(){e.state.close()}},(0,r.default)("svg",{viewBox:"0 0 48 48",width:"100%",height:"100%"},(0,r.default)("path",{stroke:"#696057","stroke-width":"2px",d:"M9.9 9.9l28.3 28.3m-.1-28.3L9.9 38.1"}))),(0,r.default)("div",{class:"tk-modal__content__inner"},(0,r.default)("h2",{class:"tk-modal__title tk-typography--title"}
1,e.state.title),(0,r.default)("div",{class:"tk-modal__text-container tk-richtext"},e.state.body))))}}]),n.default=o},{mithril:410}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=u(e("mithril")),o=e("../util/numberFormat"),s=u(e("./ts-ResultRow")),l=u(e("./ts-SpinnerRow"));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function")}i(c,[{key:"oninit",value:function(e){this.showMore=!1,this.ifShowLess=function(e){if(!this.showMore)return e},this.ifShowMore=function(e){if(this.showMore)return e},this.theme=e.attrs.theme,this.labels=e.attrs.labels,this.disclaimerText=this.labels.getOrNull("disclaimerText"),this.hasValidDisclaimerText=null!==this.disclaimerText&&"string"==typeof this.disclaimerText&&""!==this.disclaimerText,this.state={col1:"error",col2:"error"},this.data=e.attrs.data}},{key:"view",value:function(e){this.data=e.attrs.data;function t(e){return e.toString()+" "+a.labels.get("years")}var n=e.attrs.disclaimer,i=e.attrs.disclaimerSide,a={labels:this.labels,data:this.data,state:this.state};return["col1","col2"].forEach(function(e){a.data[e].loading?a.state[e]="loading":a.data[e].result&&(a.state[e]="result")}),["col1","col2"].forEach(function(e){"result"!==a.state[e]||0!=a.data[e].result.result.MortgageLoan.KeyIndicators.InterestOnlyPeriod.value&&"FKortPlus"!=a.data[e].result.result.ProductType&&"RenteMax10YPlus"!=a.data[e].result.result.ProductType&&"RenteMax5YPlus"!=a.data[e].result.result.ProductType||(a.data[e].result.result.MortgageLoan.KeyIndicators.PaymentNetAfterInterestOnlyFirstMonth=null,a.data[e].result.result.MortgageLoan.KeyIndicators.PaymentGrossAfterInterestOnlyMonthly=null)}),(0,r.default)("div",{class:"tk-col-xs-12"},(0,r.default)(l.default,{state:this.state}),(0,r.default)("div",{class:"tk-hr tk-laan-hr2"}),(0,r.default)("h3",{class:"tk-typography--title-xs"},this.labels.get("sektionYdelser")),(0,r.default)("div",{class:"tk-table tk-table--striped"},(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.PaymentGrossMonthly",formatter:o.danishCurrency,label:"tableMdlYdelseFoerSkat",size:"large"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.KundeKronerMonthly",formatter:o.danishCurrency,label:"kundekronerLabel",tooltip:"kundekronerTooltip",size:"large"}),e.state.ifShowMore((0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.PaymentNetMonthly",formatter:o.danishCurrency,label:"tableMdlYdelseEfterSkat",size:"large"})),e.state.ifShowMore((0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.DebtReductionMonthly",formatter:o.danishCurrency,label:"tableResultatMdlAfdrag",size:"large"})),e.state.ifShowMore((0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.PaymentNetAfterInterestOnlyFirstMonth",formatter:o.danishCurrency,label:"tableMdlAfdragFoersteMaaned",size:"large"})),e.state.ifShowMore((0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.PaymentGrossAfterInterestOnlyMonthly",formatter:o.danishCurrency,label:"tableYdelsePrMaaned",size:"large"}))),(0,r.default)("div",{class:"tk-table tk-table"},(0,r.default)("div",{class:"tk-tr tk-tr"},(0,r.default)("div",{class:"tk-td"},e.state.ifShowLess((0,r.default)("div",{class:"tk-expand-btn",onclick:function(){e.state.showMore=!e.state.showMore}}
1,this.labels.get("newMoreLoans"),"Nykredit"==this.theme?(0,r.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"12",height:"8",viewBox:"0 0 12 8"},(0,r.default)("g",null,(0,r.default)("path",{fill:"#68D2DF",d:"M7.8,6.1L12,1.9L10.2,0L6,4.2L1.8,0L0,1.9l4.2,4.2L6,8L7.8,6.1z"}))):(0,r.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"12",height:"8",viewBox:"0 0 12 8"},(0,r.default)("g",null,(0,r.default)("path",{fill:"#ff4d00",d:"M7.8,6.1L12,1.9L10.2,0L6,4.2L1.8,0L0,1.9l4.2,4.2L6,8L7.8,6.1z"}))))),e.state.ifShowMore((0,r.default)("div",{class:"tk-expand-btn",onclick:function(){e.state.showMore=!e.state.showMore}},this.labels.get("newLessLoans"),"Nykredit"==this.theme?(0,r.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"12",height:"8",viewBox:"0 0 12 8"},(0,r.default)("g",null,(0,r.default)("path",{fill:"#68D2DF",d:"M4.2,1.9L0,6.1L1.8,8L6,3.8L10.2,8L12,6.1L7.8,1.9L6,0L4.2,1.9z"}))):(0,r.default)("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"12",height:"8",viewBox:"0 0 12 8"},(0,r.default)("g",null,(0,r.default)("path",{fill:"#ff4d00",d:"M4.2,1.9L0,6.1L1.8,8L6,3.8L10.2,8L12,6.1L7.8,1.9L6,0L4.2,1.9z"})))))))),(0,r.default)("h3",{class:"tk-typography--title-xs"},this.labels.get("sektionDetaljer")),(0,r.default)("div",{class:"tk-table tk-table--striped"},(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.OutstandingDebt",formatter:o.danishCurrency,label:"tableHovedstol"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.TenureLengthYears",formatter:t,label:"tableLoebetid"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.TenureLengthTerms",label:"tableTerminer"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.InterestOnlyPeriod",formatter:t,label:"tableAfdragsfrihed"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.BondPrice",formatter:o.danishValue,label:"tableKurs"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.LoanType",label:"tableRente",disclaimer:n,disclaimerSide:i}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.InnerInterestGross",formatter:o.percentage,label:"tableDebitorRente"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.CurrentInterestLimit",label:"tableKiCurrentInterestLimitLabel"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.InterestLimitPeriod",label:"tableKiInterestLimitPeriodLabel"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.ComissionPercentage",formatter:o.percentage,label:"tableBidragssats"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.EffectiveInterestGross",formatter:o.percentage,label:"tableAop"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.TotalInterestAndCommisionSum",formatter:o.danishCurrency,label:"omkostningerRenteBidrag"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.TotalLoanSum",formatter:o.danishCurrency,label:"tableSamletBeloeb"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.RateAdjustment",label:"tableRenteregulering"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.KeyIndicators.RefinancingPeriod",formatter:t,label:"tableRefinansieringsperiode"})),(0,r.default)("h3",{class:"tk-typography--title-xs"},this.labels.get("omkostningerOverskrift")),(0,r.default)("div",{class:"tk-table tk-table--striped"},(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.Costs.LoanFee",formatter:o.danishCurrency,label:"omkostningerLaaneoptagelse"}),(0,r.default)(s.default,{control:a,key:"result.Costs.CaseHandlingFee",formatter:o.danishCurrency,label:"omkostningerSagsekspedition"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.Costs.SumKurtage",formatter:o.danishCurrency,label:"omkostningerKurtage"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.Costs.BondReductionOnPayout",formatter:o.danishCurrency,label:"omkostningerKursfradrag"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.Costs.RegistrationFee",formatter:o.danishCurrency,label:"omkostningerTinglysningsafgift"}),(0,r.default)(s.default,{control:a,key:"result.MortgageLoan.Costs.TotalLoanSumFee",formatter:o.danishCurrency,label:"omkostningerSamledeOmkostningerOptagelse"})),n?(0,r.default)("p",{class:"tk-table-disclaimer-text"},"* ",this.disclaimerText):(0,r.default)("p",null))}}]),n.default=c},{"../util/numberFormat":17,"./ts-ResultRow":4,"./ts-SpinnerRow":5,mithril:410}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var r=s(e("mithril")),o=s(e("../spinner/ts-spinner"));function s(e){return e&&e.__esModule?e:{default:e}}function l(){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function")}i(l,[{key:"view",value:function(e){e=e.attrs.state;return"loading"===e.col1||"loading"===e.col2?(0,r.default)("div",{class:"tk-table tk-table__spinner"},(0,r.default)("div",{class:"tk-tr"},(0,r.default)("div",{class:"tk-td tk-td--col-1"}),(0,r.default)("div",{class:"tk-td tk-td--col-2"},(0,r.default)("span",null,"loading"===e.col1?(0,r.default)(o.default,null):"")),(0,r.default)("div",{class:"tk-td tk-td--col-3"},(0,r.default)("span",null,"loading"===e.col2?(0,r.default)(o.default,null):"")))):void 0}}]),n.default=l},{"../spinner/ts-spinner":10,mithril:410}],10:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function")}i(o,[{key:"oninit",value:function(){}},{key:"view",value:function(e){return(0,r.default)("div",{class:"tk-loader"},(0,r.default)("svg",{width:"65px",height:"65px",viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg"},(0,r.default)("circle",{class:"path",fill:"none","stroke-width":"6","stroke-linecap":"round",cx:"33",cy:"33",r:"30"})))}}]),n.default=o},{mithril:410}],4:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var m=r(e("mithril")),g=r(e("../tooltip/ts-tooltip"));function r(e){return e&&e.__esModule?e:{default:e}}i(o,[{key:"resolve",value:function(e,t){t=t.split(".");for(var n=e;t.length;){if("object"!=typeof n)return;n=n[t.shift()]}return n}},{key:"view",value:function(e){var t,n,i,a=e.attrs.control.labels,r=e.attrs.control.data,o=e.attrs.control.state,s=e.attrs.disclaimer,l=e.attrs.disclaimerSide,u=this.resolve,c=e.attrs.key,d=e.attrs.formatter,f=e.attrs.label,h=(null==d&&(d=function(e){return e}),e.attrs.size),e=e.attrs.tooltip,h="large"==h?"tk-td--large-font":"",f=a.get(f),p={col1:"",col2:""};if((["col1","col2"].forEach(function(e){var t;"result"===o[e]&&r[e].result.success&&(t=u(r[e].result,c),p[e]=null!=t&&null!=t.value?d(t.value):"-")}),"-"!=p.col1||"-"!=p.col2)&&(""!=p.col1||"-"!=p.col2))return n=t="",!r.col1.result&&r.col2.result?n="tk-td tk-td--col-2":r.col1.result&&!r.col2.result?t="tk-td tk-td--col-2":r.col1.result&&r.col2.result&&(t="tk-td tk-td--col-2",n="tk-td tk-td--col-3"),i=p.col1&&"Variabel"==p.col1&&s&&("both"==l||"type1"==l)?"*":"",s=p.col2&&"Variabel"==p.col2&&s&&("both"==l||"type2"==l)?"*":"",(0,m.default)("div",{class:"tk-tr"},(0,m.default)("div",{class:"tk-td tk-td--col-1"},f,null!=e?(0,m.default)(g.default,{text:a.get(e)}):""),r.col1.result&&(0,m.default)("div",{class:t+" "+h},p.col1,i),r.col2.result&&(0,m.default)("div",{class:n+" "+h},p.col2,s))}}]);e=o;function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function")}n.default=e},{"../tooltip/ts-tooltip":11,mithril:410}],11:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),u=(e=e)&&e.__esModule?e:{default:e};i(r,[{key:"oninit",value:function(){this.isVisible=!1,this.isFalling=!1,this.shoveRight=!1,this.shoveLeft=!1,this.openedByClick=!1}},{key:"view",value:function(e){var i,a,t,n,r,o,s=e.attrs,l=e.state;if(s.text)return e=!!s.label,n=!!s.showLabelWithIcon,t=!!s.customIcon,i=function(e){e=e.target.getBoundingClientRect();l.isFalling=s.fallingBreakpoint&&(e.y||e.top)<s.fallingBreakpoint,l.shoveRight=s.shoveBreakpoint&&e.left<s.shoveBreakpoint,l.shoveLeft=s.shoveBreakpoint&&e.right>window.innerWidth-s.shoveBreakpoint},a=function e(t){l.openedByClick=!1;var n=t.target.closest(".tk-tooltip"),t=t.target.classList.value.includes("tk-tooltip");n||t||(l.isVisible=!1,document.removeEventListener("click",e,!0))},(0,u.default)("button",{className:(e||t?"tk-tooltip--no-or-custom-icon":"")+" tk-tooltip "+(l.isVisible?"tk-tooltip--open":"")+" "+(l.isFalling?"tk-tooltip--falling":"")+" "+(l.shoveLeft?"tk-tooltip--shove-left":"")+" "+(l.shoveRight?"tk-tooltip--shove-right":""),"aria-haspopup":"true","data-opened-by-click":l.openedByClick?"true":"false","aria-expanded":l.isVisible?"true":"false","aria-describedby":(e=function(){return"tooltip-id-"+Math.random().toString(36).substr(2,9)})(),onmouseover:function(e){l.isVisible=!0;var t=e.target.classList.value.includes("tk-tooltip__content"),n=e.target.closest(".tk-tooltip__content");t||n||i(e)},onmouseleave:function(e){l.openedByClick||(l.isVisible=!1)},onclick:function(e){var t="true"===e.currentTarget.getAttribute("aria-expanded"),n="true"===e.currentTarget.getAttribute("data-opened-by-click");n?t&&(l.openedByClick=!1,l.isVisible=!1):(l.openedByClick=!0,l.isVisible=!0),document.addEventListener("click",a,!0),l.isVisible&&i(e)},onblur:function(){l.isVisible=!1},onkeydown:function(e){"Escape"===e.key&&(l.isVisible=!1)}},(t=s.label,n=n,r=s.customIcon,o=(0,u.default)("img",{src:r,alt:"Sustainability icon"}),t=(0,u.default)("svg",{role:"presentation","aria-label":t+" tooltip",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},(0,u.default)("g",{fill:"none","fill-rule":"evenodd"},(0,u.default)("g",{fill:"#D3D3D3"},(0,u.default)("path",{d:"M11.91 4.093a5.57 5.57 0 0 1 1.643 3.965 5.57 5.57 0 0 1-1.642 3.964 5.613 5.613 0 0 1-7.928 0A5.57 5.57 0 0 1 2.34 8.058a5.57 5.57 0 0 1 1.642-3.965 5.57 5.57 0 0 1 3.964-1.641 5.57 5.57 0 0 1 3.964 1.641m-9.583 9.583A7.92 7.92 0 0 0 7.947 16a7.92 7.92 0 0 0 5.618-2.324 7.893 7.893 0 0 0 2.328-5.618 7.893 7.893 0 0 0-2.328-5.62A7.895 7.895 0 0 0 7.948.112a7.893 7.893 0 0 0-5.62 2.328A7.893 7.893 0 0 0 0 8.058c0 2.122.827 4.118 2.327 5.618"}),(0,u.default)("path",{d:"M7 12h2V8H7zM7 7h2V5H7z"})))),n?(0,u.default)("div",{class:"tk-tooltip__item"},t):r?o:t),(0,u.default)("div",{role:"tooltip",class:"tk-tooltip__content"},(0,u.default)("span",{id:e(),class:"tk-tooltip__content-text"},s.text)))}}]);e=r;function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function")}n.default=e},{mithril:410}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}
1var r=e("mithril"),o=(r=r)&&r.__esModule?r:{default:r},s=e("../util/numberFormat");function l(){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function")}i(l,[{key:"view",value:function(e){var t=e.attrs.v1,n=e.attrs.v2,e=e.attrs.v3;return(0,o.default)("div",{class:"tk-resultbox__result-after"},(0,o.default)("div",{class:"tk-resultbox__container"},t.percentage||n.percentage||e.percentage?(0,o.default)("div",{class:"tk-beregner-house tk-resultbox__result-after__svg-container"},(0,o.default)("div",{class:"tk-beregner-house__svg-container",style:"height: 100%;"},(0,o.default)("svg",{width:"164px",height:"156px",viewBox:"0 0 164 164",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,o.default)("title",null,"v1"),(0,o.default)("g",{id:"tk-svg-v1-symbols",stroke:"none","stroke-width":"1",fill:"#ff8300","fill-rule":"evenodd"},(0,o.default)("g",{id:"tk-svg-v1",transform:"translate(-181.000000, -40.000000)"},(0,o.default)("g",{id:"tk-svg-v1-group",transform:"translate(181.000000, 40.000000)"},(0,o.default)("rect",{x:"34",y:"67",width:"101",height:"68"}),(0,o.default)("rect",{x:"85",y:"126",width:"50",height:"9"}),(0,o.default)("rect",{x:"58",y:"126",width:"27",height:"9"}),(0,o.default)("polygon",{points:"36 31.0010045 36 135 0.0350089596 135 0 67.7099235"}),(0,o.default)("rect",{fill:"#F6F6F6",x:"66",y:"85",width:"19",height:"41"}),(0,o.default)("rect",{fill:"#FFFFFF",x:"58",y:"85",width:"9",height:"41"}),(0,o.default)("rect",{x:"0",y:"126",width:"58",height:"9"}),(0,o.default)("polygon",{points:"135 68 67.5177719 0 -1.49880108e-14 68"}),(0,o.default)("polygon",{points:"94 14 113 14 113 45 94.0000486 27.2088512"}),(0,o.default)("polygon",{fill:"#FFFFFF",points:"94 27 113 45.1854696 113 68 94 68"})))))),(0,o.default)("div",{class:"tk-beregner-house__svg-container",style:"height: "+(e.percentage+n.percentage)+"%"},(0,o.default)("svg",{width:"164px",height:"156px",viewBox:"0 0 164 164",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,o.default)("title",null,"v2"),(0,o.default)("g",{id:"tk-svg-v2-symbols",stroke:"none","stroke-width":"1",fill:"#FABF3A","fill-rule":"evenodd"},(0,o.default)("g",{id:"tk-svg-v2",transform:"translate(-181.000000, -40.000000)"},(0,o.default)("g",{id:"tk-svg-v2-group",transform:"translate(181.000000, 40.000000)"},(0,o.default)("rect",{x:"34",y:"67",width:"101",height:"68"}),(0,o.default)("rect",{x:"85",y:"126",width:"50",height:"9"}),(0,o.default)("rect",{x:"58",y:"126",width:"27",height:"9"}),(0,o.default)("polygon",{points:"36 31.0010045 36 135 0.0350089596 135 0 67.7099235"}),(0,o.default)("rect",{fill:"#F6F6F6",x:"66",y:"85",width:"19",height:"41"}),(0,o.default)("rect",{fill:"#FFFFFF",x:"58",y:"85",width:"9",height:"41"}),(0,o.default)("rect",{x:"0",y:"126",width:"58",height:"9"}),(0,o.default)("polygon",{points:"135 68 67.5177719 0 -1.49880108e-14 68"}),(0,o.default)("polygon",{points:"94 14 113 14 113 45 94.0000486 27.2088512"}),(0,o.default)("polygon",{fill:"#FFFFFF",points:"94 27 113 45.1854696 113 68 94 68"})))))),(0,o.default)("div",{class:"tk-beregner-house__svg-container",style:"height: "+e.percentage+"%"},(0,o.default)("svg",{width:"164px",height:"156px",viewBox:"0 0 164 164",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,o.default)("title",null,"v3"),(0,o.default)("g",{id:"tk-svg-v3-symbols",stroke:"none","stroke-width":"1",fill:"#ff4d00","fill-rule":"evenodd"},(0,o.default)("g",{id:"tk-svg-v3",transform:"translate(-181.000000, -40.000000)"},(0,o.default)("g",{id:"tk-svg-v3-group",transform:"translate(181.000000, 40.000000)"},(0,o.default)("rect",{x:"34",y:"67",width:"101",height:"68"}),(0,o.default)("rect",{x:"85",y:"126",width:"50",height:"9"}),(0,o.default)("rect",{x:"58",y:"126",width:"27",height:"9"}),(0,o.default)("polygon",{points:"36 31.0010045 36 135 0.0350089596 135 0 67.7099235"}),(0,o.default)("rect",{fill:"#F6F6F6",x:"66",y:"85",width:"19",height:"41"}),(0,o.default)("rect",{fill:"#FFFFFF",x:"58",y:"85",width:"9",height:"41"}),(0,o.default)("rect",{x:"0",y:"126",width:"58",height:"9"}),(0,o.default)("polygon",{points:"135 68 67.5177719 0 -1.49880108e-14 68"}),(0,o.default)("polygon",{points:"94 14 113 14 113 45 94.0000486 27.2088512"}),(0,o.default)("polygon",{fill:"#FFFFFF",points:"94 27 113 45.1854696 113 68 94 68"}))))))):(0,o.default)("div",{class:"tk-beregner-house tk-resultbox__result-after__svg-container"},(0,o.default)("svg",{width:"164px",height:"156px",viewBox:"0 0 164 164",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,o.default)("title",null,"HouseGrey"),(0,o.default)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,o.default)("g",{transform:"translate(-181.000000, -40.000000)"},(0,o.default)("g",{transform:"translate(181.000000, 40.000000)"},(0,o.default)("rect",{fill:"#EDEDED",x:"34",y:"67",width:"101",height:"68"}),(0,o.default)("rect",{fill:"#F6F6F6",x:"85",y:"126",width:"50",height:"9"}),(0,o.default)("rect",{fill:"#EDEDED",x:"58",y:"126",width:"27",height:"9"}),(0,o.default)("polygon",{fill:"#EDEDED",points:"36 31.0010045 36 135 0.0350089596 135 0 67.7099235"}),(0,o.default)("rect",{fill:"#F6F6F6",x:"66",y:"85",width:"19",height:"41"}),(0,o.default)("rect",{fill:"#FFFFFF",x:"58",y:"85",width:"9",height:"41"}),(0,o.default)("rect",{fill:"#F6F6F6",x:"0",y:"126",width:"58",height:"9"}),(0,o.default)("polygon",{fill:"#EDEDED",points:"135 68 67.5177719 0 -1.49880108e-14 68"}),(0,o.default)("polygon",{fill:"#EDEDED",points:"94 14 113 14 113 45 94.0000486 27.2088512"}),(0,o.default)("polygon",{fill:"#FFFFFF",points:"94 27 113 45.1854696 113 68 94 68"})))))),(0,o.default)("div",{class:"tk-resultbox__laan-item"},(0,o.default)("span",{class:"tk-resultbox__laan-item__percent tk-resultbox__laan-item__percent--orange"},(0,s.percentage)(t.percentage,0)),(0,o.default)("span",{class:"tk-resultbox__laan-item__name"},t.label),(0,o.default)("span",{class:"tk-resultbox__laan-item__amount"},(0,s.applyThousandSeperator)(t.value))),(0,o.default)("div",{class:"tk-resultbox__laan-item"},(0,o.default)("span",{class:"tk-resultbox__laan-item__percent tk-resultbox__laan-item__percent--yellow"},(0,s.percentage)(n.percentage,0)),(0,o.default)("span",{class:"tk-resultbox__laan-item__name"},n.label),(0,o.default)("span",{class:"tk-resultbox__laan-item__amount"},(0,s.applyThousandSeperator)(n.value))),(0,o.default)("div",{class:"tk-resultbox__laan-item"},(0,o.default)("span",{class:"tk-resultbox__laan-item__percent tk-resultbox__laan-item__percent--red"}
1,(0,s.percentage)(e.percentage,0)),(0,o.default)("span",{class:"tk-resultbox__laan-item__name"},e.label),(0,o.default)("span",{class:"tk-resultbox__laan-item__amount"},(0,s.applyThousandSeperator)(e.value)))))}}]),n.default=l},{"../util/numberFormat":17,mithril:410}],17:[function(e,t,n){"use strict";function i(e){return null==e?"":(e=""!=(e=(e=e.toString()).replace(/[^0-9]/g,""))?Number(e).toString():e).replace(/\B(?=(\d{3})+(?!\d))/g,".")}Object.defineProperty(n,"__esModule",{value:!0}),n.percentageRefinance=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2;return null==e?"":(e=(e=Number(e)).toLocaleString("da-DK",{minimumFractionDigits:t,maximumFractionDigits:t}))+"%"},n.applyThousandSeperator=i,n.applyThousandSeperatorNullCheck=function(e){return null==e?e:i(e)},n.removeNonDigitChars=function(e){return null==e?"":(e=e.replace(/[^0-9]/g,""),Number(e))},n.percentage=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2;return e=(e=Number(e)).toLocaleString("da-DK",{minimumFractionDigits:t,maximumFractionDigits:t}),e+="%"},n.danishCurrency=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return e=(e=Number(e)).toLocaleString("da-DK",{style:"currency",currency:"DKK",minimumFractionDigits:t,maximumFractionDigits:t})},n.danishValue=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2;return e=(e=Number(e)).toLocaleString("da-DK",{minimumFractionDigits:t,maximumFractionDigits:t})},n.year=function(e){return null==e?"":(""!==(e=(e=e.toString()).replace(/[^0-9]/g,""))&&(e+=" år"),e)}},{}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var e=e("mithril"),r=(e=e)&&e.__esModule?e:{default:e};function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function")}i(o,[{key:"view",value:function(e){if(!0===e.attrs.visible)return(0,r.default)("p",{class:"tk-validation-error"},e.attrs.message)}}]),n.default=o},{mithril:410}],410:[function(R,e,$){"use strict";function q(e,t,n,i,a,r){return{tag:e,key:t,attrs:n,children:i,text:a,dom:r,domSize:void 0,state:void 0,_state:void 0,events:void 0,instance:void 0,skip:!1}}q.normalize=function(e){return Array.isArray(e)?q("[",void 0,void 0,q.normalizeChildren(e),void 0,void 0):null!=e&&"object"!=typeof e?q("#",void 0,void 0,!1===e?"":e,void 0,void 0):e},q.normalizeChildren=function(e){for(var t=0;t<e.length;t++)e[t]=q.normalize(e[t]);return e};var H=/(?:(^|#|\.)([^#\.\[\]]+))|(\[(.+?)(?:\s*=\s*("|'|)((?:\\["'\]]|.)*?)\5)?\])/g,h={},p={}.hasOwnProperty;function m(e){for(var t in e)if(p.call(e,t))return;return 1}function t(e){var t,n=arguments[1],i=2;if(null==e||"string"!=typeof e&&"function"!=typeof e&&"function"!=typeof e.view)throw Error("The selector must be either a string or a component.");if("string"==typeof e&&(c=h[e]||function(e){for(var t,n="div",i=[],a={};t=H.exec(e);){var r=t[1],o=t[2];""===r&&""!==o?n=o:"#"===r?a.id=o:"."===r?i.push(o):"["===t[3][0]&&(r=(r=t[6])&&r.replace(/\\(["'])/g,"$1").replace(/\\\\/g,"\\"),"class"===t[4]?i.push(r):a[t[4]]=""===r?r:r||!0)}return 0<i.length&&(a.className=i.join(" ")),h[e]={tag:n,attrs:a}}(e)),null==n?n={}:"object"==typeof n&&null==n.tag&&!Array.isArray(n)||(n={},i=1),arguments.length===i+1)t=arguments[i],Array.isArray(t)||(t=[t]);else for(t=[];i<arguments.length;)t.push(arguments[i++]);var a=q.normalizeChildren(t);if("string"!=typeof e)return q(e,n.key,n,a);var r,o,s=c,l=n,e=a,u=!1,c=l.className||l.class;if(!m(s.attrs)&&!m(l)){var d,f={};for(d in l)p.call(l,d)&&(f[d]=l[d]);l=f}for(d in s.attrs)p.call(s.attrs,d)&&(l[d]=s.attrs[d]);for(d in void 0!==c&&(void 0!==l.class&&(l.class=void 0,l.className=c),null!=s.attrs.className)&&(l.className=s.attrs.className+" "+c),l)if(p.call(l,d)&&"key"!==d){u=!0;break}return Array.isArray(e)&&1===e.length&&null!=e[0]&&"#"===e[0].tag?o=e[0].children:r=e,q(s.tag,l.key,u?l:void 0,r,o)}t.trust=function(e){return q("<",void 0,void 0,e=null==e?"":e,void 0,void 0)},t.fragment=function(e,t){return q("[",e.key,e,q.normalizeChildren(t),void 0,void 0)};var l,n,i,r,a=t,u=function e(t){if(!(this instanceof e))throw new Error("Promise must be called with `new`");if("function"!=typeof t)throw new TypeError("executor must be a function");var r=this,o=[],s=[],a=n(o,!0),l=n(s,!1),u=r._instance={resolvers:o,rejectors:s},c="function"==typeof setImmediate?setImmediate:setTimeout;function n(i,a){return function t(n){var e;try{if(!a||null==n||"object"!=typeof n&&"function"!=typeof n||"function"!=typeof(e=n.then))c(function(){a||0!==i.length||console.error("Possible unhandled promise rejection:",n);for(var e=0;e<i.length;e++)i[e](n);o.length=0,s.length=0,u.state=a,u.retry=function(){t(n)}});else{if(n===r)throw new TypeError("Promise can't be resolved w/ itself");d(e.bind(n))}}catch(e){l(e)}}}function d(e){var n=0;function t(t){return function(e){0<n++||t(e)}}var i=t(l);try{e(t(a),i)}catch(e){i(e)}}d(t)},s=(u.prototype.then=function(e,t){var a,r,o=this._instance;function n(t,e,n,i){e.push(function(e){if("function"!=typeof t)n(e);else try{a(t(e))}catch(e){r&&r(e)}}),"function"==typeof o.retry&&i===o.state&&o.retry()}var i=new u(function(e,t){a=e,r=t});return n(e,o.resolvers,a,!0),n(t,o.rejectors,r,!1),i},u.prototype.catch=function(e){return this.then(null,e)},u.resolve=function(t){return t instanceof u?t:new u(function(e){e(t)})},u.reject=function(n){return new u(function(e,t){t(n)})},u.all=function(s){return new u(function(n,i){var a=s.length,r=0,o=[];if(0===s.length)n([]);else for(var e=0;e<s.length;e++)!function(t){function e(e){r++,o[t]=e,r===a&&n(o)}null==s[t]||"object"!=typeof s[t]&&"function"!=typeof s[t]||"function"!=typeof s[t].then?e(s[t]):s[t].then(e,i)}(e)})},u.race=function(i){return new u(function(e,t){for(var n=0;n<i.length;n++)i[n].then(e,t)})},"undefined"!=typeof window?(void 0===window.Promise&&(window.Promise=u),u=window.Promise):"undefined"!=typeof global&&(void 0===global.Promise&&(global.Promise=u),u=global.Promise),function(e){if("[object Object]"!==Object.prototype.toString.call(e))return"";var t,a=[];for(t in e)!function e(t,n){if(Array.isArray(n))for(var i=0;i<n.length;i++)e(t+"["+i+"]",n[i]);else if("[object Object]"===Object.prototype.toString.call(n))for(var i in n)e(t+"["+i+"]",n[i]);else a.push(encodeURIComponent(t)+(null!=n&&""!==n?"="+encodeURIComponent(n):""))}(t,e[t]);return a.join("&")}),F=new RegExp("^file://","i"),o=(l=window,n=u,r=0,{request:function(s,e){var t=c(),e=(s=d(s,e),new n(function(i,a){null==s.method&&(s.method="GET"),s.method=s.method.toUpperCase();var e,t="GET"!==s.method&&"TRACE"!==s.method&&("boolean"!=typeof s.useBody||s.useBody),r=("function"!=typeof s.serialize&&(s.seri
1alize="undefined"!=typeof FormData&&s.data instanceof FormData?function(e){return e}:JSON.stringify),"function"!=typeof s.deserialize&&(s.deserialize=v),"function"!=typeof s.extract&&(s.extract=_),s.url=f(s.url,s.data),t?s.data=s.serialize(s.data):s.url=g(s.url,s.data),new l.XMLHttpRequest),o=!1,n=r.abort;for(e in r.abort=function(){o=!0,n.call(r)},r.open(s.method,s.url,"boolean"!=typeof s.async||s.async,"string"==typeof s.user?s.user:void 0,"string"==typeof s.password?s.password:void 0),s.serialize!==JSON.stringify||!t||s.headers&&s.headers.hasOwnProperty("Content-Type")||r.setRequestHeader("Content-Type","application/json; charset=utf-8"),s.deserialize!==v||s.headers&&s.headers.hasOwnProperty("Accept")||r.setRequestHeader("Accept","application/json, text/*"),s.withCredentials&&(r.withCredentials=s.withCredentials),s.headers)!{}.hasOwnProperty.call(s.headers,e)||r.setRequestHeader(e,s.headers[e]);(r="function"==typeof s.config?s.config(r,s)||r:r).onreadystatechange=function(){if(!o&&4===r.readyState)try{var e=s.extract!==_?s.extract(r,s):s.deserialize(s.extract(r,s));if(200<=r.status&&r.status<300||304===r.status||F.test(s.url))i(y(s.type,e));else{var t,n=new Error(r.responseText);for(t in e)n[t]=e[t];a(n)}}catch(e){a(e)}},t&&null!=s.data?r.send(s.data):r.send()}));return!0===s.background?e:t(e)},jsonp:function(a,e){var t=c(),e=(a=d(a,e),new n(function(t,e){var n=a.callbackName||"_mithril_"+Math.round(1e16*Math.random())+"_"+r++,i=l.document.createElement("script");l[n]=function(e){i.parentNode.removeChild(i),t(y(a.type,e)),delete l[n]},i.onerror=function(){i.parentNode.removeChild(i),e(new Error("JSONP request failed")),delete l[n]},null==a.data&&(a.data={}),a.url=f(a.url,a.data),a.data[a.callbackKey||"callback"]=n,i.src=g(a.url,a.data),l.document.documentElement.appendChild(i)}));return!0===a.background?e:t(e)},setCompletionCallback:function(e){i=e}});function c(){var a=0;function r(){0==--a&&"function"==typeof i&&i()}return function t(n){var i=n.then;return n.then=function(){a++;var e=i.apply(n,arguments);return e.then(r,function(e){if(r(),0===a)throw e}),t(e)},n}}function d(e,t){var n;return"string"==typeof e&&(n=e,null==(e=t||{}).url)&&(e.url=n),e}function f(e,t){if(null!=t)for(var n=e.match(/:[^\/]+/gi)||[],i=0;i<n.length;i++){var a=n[i].slice(1);null!=t[a]&&(e=e.replace(n[i],t[a]))}return e}function g(e,t){var n,t=s(t);return""!==t&&(n=e.indexOf("?")<0?"?":"&",e+=n+t),e}function v(t){try{return""!==t?JSON.parse(t):null}catch(e){throw new Error(t)}}function _(e){return e.responseText}function y(e,t){if("function"==typeof e){if(!Array.isArray(t))return new e(t);for(var n=0;n<t.length;n++)t[n]=new e(t[n])}return t}function b(e){var o,T=e.document,E=T.createDocumentFragment(),t={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"};function P(e){return e.attrs&&e.attrs.xmlns||t[e.tag]}function f(){try{return T.activeElement}catch(e){return null}}function A(e,t,n,i,a,r,o){for(var s=n;s<i;s++){var l=t[s];null!=l&&R(e,l,a,o,r)}}function R(e,t,n,i,a){var r,o,s,l,u,c=t.tag;if("string"!=typeof c)return r=e,l=i,u=a,H(o=t,s=n),null!=o.instance?(s=R(r,o.instance,s,l,u),o.dom=o.instance.dom,o.domSize=null!=o.dom?o.instance.domSize:0,O(r,s,u),s):(o.domSize=0,E);switch(t.state={},null!=t.attrs&&z(t.attrs,t,n),c){case"#":return d=e,f=a,(h=t).dom=T.createTextNode(h.children),O(d,h.dom,f),h.dom;case"<":return $(e,t,a);case"[":var d=e,f=t,h=n,p=i,m=a,g=T.createDocumentFragment();return null!=f.children&&(v=f.children,A(g,v,0,v.length,h,null,p)),f.dom=g.firstChild,f.domSize=g.childNodes.length,O(d,g,m),g;default:var v=e,p=t,m=n,g=i,_=a,y=p.tag,b=p.attrs,k=b&&b.is,k=(g=P(p)||g)?k?T.createElementNS(g,y,{is:k}):T.createElementNS(g,y):k?T.createElement(y,{is:k}):T.createElement(y);if(p.dom=k,null!=b){var w=p;var S=b;var x=g;for(var C in S)U(w,C,null,S[C],x)}if(O(v,k,_),null!=p.attrs&&null!=p.attrs.contenteditable)V(p);else{null!=p.text&&(""!==p.text?k.textContent=p.text:p.children=[q("#",void 0,void 0,p.text,void 0,void 0)]);if(null!=p.children){y=p.children,A(k,y,0,y.length,m,null,g);{b=p;_=b.attrs;"select"===b.tag&&null!=_&&("value"in _&&U(b,"value",null,_.value,void 0),"selectedIndex"in _)&&U(b,"selectedIndex",null,_.selectedIndex,void 0)}}}return k}}function $(e,t,n){for(var i,a={caption:"table",thead:"table",tbody:"table",tfoot:"table",tr:"tbody",th:"tr",td:"tr",colgroup:"table",col:"colgroup"}[(t.children.match(/^\s*?<(\w+)/im)||[])[1]]||"div",r=T.createElement(a),o=(r.innerHTML=t.children,t.dom=r.firstChild,t.domSize=r.childNodes.length,T.createDocumentFragment());i=r.firstChild;)o.appendChild(i);return O(e,o,n),o}function H(e,t){var n;if("function"==typeof e.tag.view){if(e.state=Object.create(e.tag),null!=(n=e.state.view).$$reentrantLock$$)return;n.$$reentrantLock$$=!0}else{if(e.state=void 0,null!=(n=e.tag).$$reentrantLock$$)return;n.$$reentrantLock$$=!0,e.state=null!=e.tag.prototype&&"function"==typeof e.tag.prototype.view?new e.tag(e):e.tag(e)}if(e._state=e.state,null!=e.attrs&&z(e.attrs,e,t),z(e._state,e,t),e.instance=q.normalize(e._state.view.call(e.state,e)),e.instance===e)throw Error("A view cannot return the vnode it received as argument");n.$$reentrantLock$$=null}function F(e,t,n,i,a,r,o){if(t!==n&&(null!=t||null!=n))if(null==t)A(e,n,0,n.length,a,r,o);else if(null==n)k(t,0,t.length,n);else{if(t.length===n.length){for(var s=!1,l=0;l<n.length;l++)if(null!=n[l]&&null!=t[l]){s=null==n[l].key&&null==t[l].key;break}if(s){for(l=0;l<t.length;l++)t[l]!==n[l]&&(null==t[l]&&null!=n[l]?R(e,n[l],a,o,b(t,l+1,r)):null==n[l]?k(t,l,l+1,n):N(e,t[l],n[l],a,b(t,l+1,r),i,o));return}}(i=i||function(e,t){if(null!=e.pool&&Math.abs(e.pool.length-t.length)<=Math.abs(e.length-t.length)){var n=e[0]&&e[0].children&&e[0].children.length||0,e=e.pool[0]&&e.pool[0].children&&e.pool[0].children.length||0,t=t[0]&&t[0].children&&t[0].children.length||0;if(Math.abs(e-t)<=Math.abs(n-t))return!0}return!1}(t,n))&&(u=t.pool,t=t.concat(t.pool));for(var u,c,d,f,h,p,m=0,g=0,v=t.length-1,_=n.length-1;m<=v&&g<=_;)if((c=t[m])!==(d=n[g])||i)if(null==c)m++;else if(null==d)g++;else if(c.key===d.key){var y=null!=u&&m>=t.length-u.length||null==u&&i;g++,N(e,c,d,a,b(t,++m,r),y,o),i&&c.tag===d.tag&&O(e,j(c),r)}else if((c=t[v])!==d||i)if(null==c)v--;else{if(null!=d){if(c.key!==d.key)break;var y=null!=u&&v>=t.length-u.length||null==u&&i;N(e,c,d,a,b(t,v+1,r),y,o),(i||g<_)&&O(e,j(c),b(t,m,r)),v--}g++}else v--,g++;else m++,g++;for(;m<=v&&g<=_;)if((c=t[v])!==(d=n[_])||i?null==c?v--:(null!=d&&(c.key===d.key?(y=null!=u&&v>=t.length-u.length||null==u&&i,N(e,c,d,a,b(t,v+1,r),y,o),i&&c.tag===d.tag&&O(e,j(c),r),null!=c.dom&&(r=c.dom),v--):(p=p||function(e,t){for(var n={},i=0,i=0;i<t;i++){var a=e[i];null!=a&&null!=(a=a.key)&&(n[a]=i)}return n}(t,v),null!=d&&(null!=(f=p[d.key])?(h=t[f],y=null!=u&&f>=t.length-u.length||null==u&&i,N(e,h,d,a,b(t,v+1,r),i,o),O(e,j(h),r),t[f].skip=!0,null!=h.dom&&(r=h.dom)):r=R(e,d,a,o,r)))),_--):(v--,_--),_<g)break;A(e,n,g,_+1,a,r,o),k(t,m,v+1,n)}}function N(e,t,n,i,a,r,o){var s=t.tag;if(s===n.tag){if(n.state=t.state,n._state=t._state,n.events=t.events,r||!function(e,t){var n,i;null!=e.attrs&&"function"==typeof e.attrs.onbeforeupdate&&(n=e.attrs.onbeforeupdate.call(e.state,e,t));"string"!=typeof e.tag&&"function"==typeof e._state.onbeforeupdate&&(i=e._state.onbeforeupdate.call(e.state,e,t));return!(void 0===n&&void 0===i||n||i||(e.dom=t.dom,e.domSize=t.domSize,e.instance=t.instance,0))}(n,t))if("string"==typeof s)switch(null!=n.attrs&&(r?(n.state={},z):G)(n.attrs,n,i),s){case"#":var l=t,u=n;l.children.toString()!==u.children.toString()&&(l.dom.nodeValue=u.children),u.dom=l.dom;break;case"<":u=e,l=n,d=a,(f=t).children!==l.children?(j(f),$(u,l,d)):(l.dom=f.dom,l.domSize=f.domSize);break;case"[":var c=n,d=r,f=i,h=a,p=o,m=(F(e,t.children,c.children,d,f,h,p),0),g=c.children;if((c.dom=null)!=g){for(var v=0;v<g.length;v++){var _=g[v];null!=_&&null!=_.dom&&(null==c.dom&&(c.dom=_.dom),m+=_.domSize||1)}1!==m&&(c.domSize=m)}break;default:var h=t,p=n,y=r,b=i,k=o,w=p.dom=h.dom,S=(k=P(p)||k,"textarea"===p.tag&&(null==p.attrs&&(p.attrs={}),null!=p.text)&&(p.attrs.value=p.text,p.text=void 0),p),x=h.attrs,C=p.attrs,T=k;if(null!=C)for(var E in C)U(S,E,x&&x[E],C[E],T);if(null!=x)for(var E in x)null!=C&&E in C||("o"!==(E="className"===E?"class":E)[0]||"n"!==E[1]||W(E)?"key"!==E&&S.dom.removeAttribute(E):Y(S,E,void 0));return void(null!=p.attrs&&null!=p.attrs.contenteditable?V(p):null!=h.text&&null!=p.text&&""!==p.text?h.text.toString()!==p.text.toString()&&(h.dom.firstChild.nodeValue=p.text):(null!=h.text&&(h.children=[q("#",void 0,void 0,h.text,void 0,h.dom.firstChild)]),null!=p.text&&(p.children=[q("#",void 0,void 0,p.text,void 0,void 0)]),F(w,h.children,p.children,y,b,null,k)))}else{var s=e,A=t,O=n,M=i,L=a,I=r,D=o;if(I)H(O,M);else{if(O.instance=q.normalize(O._state.view.call(O.state,O)),O.instance===O)throw Error("A view cannot return the vnode it received as argument");null!=O.attrs&&G(O.attrs,O,M),G(O._state,O,M)}null!=O.instance?(null==A.instance?R(s,O.instance,M,D,L):N(s,A.instance,O.instance,M,L,I,D),O.dom=O.instance.dom,O.domSize=O.instance.domSize):null!=A.instance?(B(A.instance,null),O.dom=void 0,O.domSize=0):(O.dom=A.dom,O.domSize=A.domSize)}}else B(t,null),R(e,n,i,o,a)}function j(e){var t=e.domSize;if(null==t&&null!=e.dom)return e.dom;var n=T.createDocumentFragment();if(0<t){for(var i=e.dom;--t;)n.appendChild(i.nextSibling);n.insertBefore(i,n.firstChild)}return n}function b(e,t,n){for(;t<e.length;t++)if(null!=e[t]&&null!=e[t].dom)return e[t].dom;return n}function O(e,t,n){n&&n.parentNode?e.insertBefore(t,n):e.appendChild(t)}function V(e){var t=e.children;if(null!=t&&1===t.length&&"<"===t[0].tag){var n=t[0].children;e.dom.innerHTML!==n&&(e.dom.innerHTML=n)}else if(null!=e.text||null!=t&&0!==t.length)throw new Error("Child node of a contenteditable must be trusted")}function k(e,t,n,i){for(var a=t;a<n;a++){var r=e[a];null!=r&&(r.skip?r.skip=!1:B(r,i))}}function B(i,a){var e,r=1,o=0;function t(){if(++o===r&&(function e(t){t.attrs&&"function"==typeof t.attrs.onremove&&t.attrs.onremove.call(t.state,t);if("string"!=typeof t.tag)"function"==typeof t._state.onremove&&t._state.onremove.call(t.state,t),null!=t.instance&&e(t.instance);else{var n=t.children;if(Array.isArray(n))for(var i=0;i<n.length;i++){var a=n[i];null!=a&&e(a)}}}(i),i.dom)){var e=i.domSize||1;if(1<e)for(var t=i.dom;--e;)s(t.nextSibling);s(i.dom),null==a||null!=i.domSize||null!=(n=i.attrs)&&(n.oncreate||n.onupdate||n.onbeforeremove||n.onremove)||"string"!=typeof i.tag||(a.pool?a.pool.push(i):a.pool=[i])}var n}i.attrs&&"function"==typeof i.attrs.onbeforeremove&&null!=(e=i.attrs.onbeforeremove.call(i.state,i))&&"function"==typeof e.then&&(r++,e.then(t,t)),"string"!=typeof i.tag&&"function"==typeof i._state.onbeforeremove&&null!=(e=i._state.onbeforeremove.call(i.state,i))&&"function"==typeof e.then&&(r++,e.then(t,t)),t()}function s(e){var t=e.parentNode;null!=t&&t.removeChild(e)}function U(e,t,n,i,a){var r=e.dom;if("key"!==t&&"is"!==t&&(n!==i||(u=e,"value"===(s=t))||"checked"===s||"selectedIndex"===s||"selected"===s&&u.dom===f()||"object"==typeof i)&&void 0!==i&&!W(t)){var o,s=t.indexOf(":");if(-1<s&&"xlink"===t.substr(0,s))r.setAttributeNS("http://www.w3.org/1999/xlink",t.slice(s+1),i);else if("o"===t[0]&&"n"===t[1]&&"function"==typeof i)Y(e,t,i);else if("style"===t){var l=r;var u=n;var c=i;u===c&&(l.style.cssText="",u=null);if(null==c)l.style.cssText="";else if("string"==typeof c)l.style.cssText=c;else{for(var d in"string"==typeof u&&(l.style.cssText=""),c)l.style[d]=c[d];if(null!=u&&"string"!=typeof u)for(var d in u)d in c||(l.style[d]="")}}else if(t in r&&"href"!==(o=t)&&"list"!==o&&"form"!==o&&"width"!==o&&"height"!==o&&void 0===a&&!((o=e).attrs.is||-1<o.tag.indexOf("-"))){if
1("value"===t){a=""+i;if(("input"===e.tag||"textarea"===e.tag)&&e.dom.value===a&&e.dom===f())return;if("select"===e.tag)if(null===i){if(-1===e.dom.selectedIndex&&e.dom===f())return}else if(null!==n&&e.dom.value===a&&e.dom===f())return;if("option"===e.tag&&null!=n&&e.dom.value===a)return}"input"===e.tag&&"type"===t?r.setAttribute(t,i):r[t]=i}else"boolean"==typeof i?i?r.setAttribute(t,""):r.removeAttribute(t):r.setAttribute("className"===t?"class":t,i)}}function W(e){return"oninit"===e||"oncreate"===e||"onupdate"===e||"onremove"===e||"onbeforeremove"===e||"onbeforeupdate"===e}function Y(e,t,n){var i,a=e.dom,r="function"!=typeof o?n:function(e){var t=n.call(a,e);return o.call(a,e),t};t in a?a[t]="function"==typeof n?r:null:(i=t.slice(2),void 0===e.events&&(e.events={}),e.events[t]!==r&&(null!=e.events[t]&&a.removeEventListener(i,e.events[t],!1),"function"==typeof n)&&(e.events[t]=r,a.addEventListener(i,e.events[t],!1)))}function z(e,t,n){"function"==typeof e.oninit&&e.oninit.call(t.state,t),"function"==typeof e.oncreate&&n.push(e.oncreate.bind(t.state,t))}function G(e,t,n){"function"==typeof e.onupdate&&n.push(e.onupdate.bind(t.state,t))}return{render:function(e,t){if(!e)throw new Error("Ensure the DOM element being passed to m.route/m.mount/m.render is not undefined.");var n=[],i=f(),a=e.namespaceURI;null==e.vnodes&&(e.textContent=""),Array.isArray(t)||(t=[t]),F(e,e.vnodes,q.normalizeChildren(t),!1,n,null,"http://www.w3.org/1999/xhtml"===a?void 0:a),e.vnodes=t,null!=i&&f()!==i&&i.focus();for(var r=0;r<n.length;r++)n[r]()},setEventCallback:function(e){return o=e}}}w=window,(w=b(w)).setEventCallback(function(e){!1===e.redraw?e.redraw=void 0:x()}),k=[];var k,w={subscribe:function(e,t){var n,i,a,r;S(e),k.push(e,(n=t,i=0,a=null,r="function"==typeof requestAnimationFrame?requestAnimationFrame:setTimeout,function(){var e=Date.now();0===i||16<=e-i?(i=e,n()):null===a&&(a=r(function(){a=null,n(),i=Date.now()},16-(e-i)))}))},unsubscribe:S,redraw:x,render:w.render};function S(e){e=k.indexOf(e);-1<e&&k.splice(e,2)}function x(){for(var e=1;e<k.length;e+=2)k[e]()}o.setCompletionCallback(w.redraw),a.mount=(C=w,function(e,t){if(null===t)C.render(e,[]),C.unsubscribe(e);else{if(null==t.view&&"function"!=typeof t)throw new Error("m.mount(element, component) expects a component, not a vnode");C.subscribe(e,function(){C.render(e,q(t))}),C.redraw()}});var C,T,E,A,O,N,M,L,j=u,I=function(e){if(""===e||null==e)return{};for(var t=(e="?"===e.charAt(0)?e.slice(1):e).split("&"),n={},i={},a=0;a<t.length;a++){var r=t[a].split("="),o=decodeURIComponent(r[0]),s=2===r.length?decodeURIComponent(r[1]):"",l=("true"===s?s=!0:"false"===s&&(s=!1),o.split(/\]\[?|\[/)),u=i;-1<o.indexOf("[")&&l.pop();for(var c=0;c<l.length;c++){var d,f=l[c],h=l[c+1],h=""==h||!isNaN(parseInt(h,10));if(""===f)null==n[o=l.slice(0,c).join()]&&(n[o]=Array.isArray(u)?u.length:0),f=n[o]++;else if("__proto__"===f)break;c===l.length-1?u[f]=s:(null==(d=null!=(d=Object.getOwnPropertyDescriptor(u,f))?d.value:d)&&(u[f]=d=h?[]:{}),u=d)}}return i};function V(e){return e}function D(e,t,n){if(null==e)throw new Error("Ensure the DOM element that was passed to `m.route` is not undefined");function r(){null!=E&&T.render(e,E(q(A,O.key,O)))}function o(e){if(e===t)throw new Error("Could not resolve default route "+t);L.setPath(t,null,{replace:!0})}L.defineRoutes(n,function(t,n,i){var a=M=function(e,t){a===M&&(A=null==t||"function"!=typeof t.view&&"function"!=typeof t?"div":t,O=n,N=i,M=null,E=(e.render||V).bind(e),r())};t.view||"function"==typeof t?a({},t):t.onmatch?j.resolve(t.onmatch(n,i)).then(function(e){a(t,e)},o):a(t,"div")},o),T.subscribe(e,r)}a.route=(P=window,T=w,L=function(c){var n,d="function"==typeof c.history.pushState,i="function"==typeof setImmediate?setImmediate:setTimeout;function e(e){var t=c.location[e].replace(/(?:%[a-f89][a-f0-9])+/gim,decodeURIComponent);return t="pathname"===e&&"/"!==t[0]?"/"+t:t}function f(e,t,n){var i=e.indexOf("?"),a=e.indexOf("#"),r=-1<i?i:-1<a?a:e.length;if(-1<i){var o=-1<a?a:e.length,s=I(e.slice(i+1,o));for(l in s)t[l]=s[l]}if(-1<a){var l,u=I(e.slice(a+1));for(l in u)n[l]=u[l]}return e.slice(0,r)}var h={prefix:"#!",getPath:function(){switch(h.prefix.charAt(0)){case"#":return e("hash").slice(h.prefix.length);case"?":return e("search").slice(h.prefix.length)+e("hash");default:return e("pathname").slice(h.prefix.length)+e("search")+e("hash")}},setPath:function(e,n,t){var i={},a={};if(e=f(e,i,a),null!=n){for(var r in n)i[r]=n[r];e=e.replace(/:([^\/]+)/g,function(e,t){return delete i[t],n[t]})}var o=s(i),o=(o&&(e+="?"+o),s(a));o&&(e+="#"+o),d?(a=t?t.state:null,o=t?t.title:null,c.onpopstate(),t&&t.replace?c.history.replaceState(a,o,h.prefix+e):c.history.pushState(a,o,h.prefix+e)):c.location.href=h.prefix+e}};return h.defineRoutes=function(s,l,u){function e(){var i,a=h.getPath(),r={},e=f(a,r,r),t=c.history.state;if(null!=t)for(var n in t)r[n]=t[n];for(i in s){var o=new RegExp("^"+i.replace(/:[^\/]+?\.{3}/g,"(.*?)").replace(/:[^\/]+/g,"([^\\/]+)")+"/?$");if(o.test(e))return void e.replace(o,function(){for(var e=i.match(/:[^\/]+/g)||[],t=[].slice.call(arguments,1,-2),n=0;n<e.length;n++)r[e[n].replace(/:|\./g,"")]=decodeURIComponent(t[n]);l(s[i],r,a,i)})}u(a,r)}var t;d?c.onpopstate=(t=e,function(){null==n&&(n=i(function(){n=null,t()}))}):"#"===h.prefix.charAt(0)&&(c.onhashchange=e),e()},h}(P),D.set=function(e,t,n){null!=M&&((n=n||{}
1).replace=!0),M=null,L.setPath(e,t,n)},D.get=function(){return N},D.prefix=function(e){L.prefix=e},D.link=function(e){e.dom.setAttribute("href",L.prefix+e.attrs.href),e.dom.onclick=function(e){e.ctrlKey||e.metaKey||e.shiftKey||2===e.which||(e.preventDefault(),e.redraw=!1,0===(e=this.getAttribute("href")).indexOf(L.prefix)&&(e=e.slice(L.prefix.length)),D.set(e,void 0,void 0))}},D.param=function(e){return void 0!==O&&void 0!==e?O[e]:O},D),a.withAttr=function(t,n,i){return function(e){n.call(i||this,t in e.currentTarget?e.currentTarget[t]:e.currentTarget.getAttribute(t))}};var P=b(window);a.render=P.render,a.redraw=w.redraw,a.request=o.request,a.jsonp=o.jsonp,a.parseQueryString=I,a.buildQueryString=s,a.version="1.1.7",a.vnode=q,void 0!==e?e.exports=a:window.m=a},{}]},{},[87,153,205,146,435,48,274,285]);
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.