1"use strict";(()=>{var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,s=(e,t)=>function(){return e&&(t=(0,e[r(e)[0]])(e=0)),t},o=(e,t)=>function(){return t||(0,e[r(e)[0]])((t={exports:{}}).exports,t),t.exports},l=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},c=(s,o,l)=>(l=null!=s?e(i(s)):{},((e,i,s,o)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let l of r(i))a.call(e,l)||l===s||t(e,l,{get:()=>i[l],enumerable:!(o=n(i,l))||o.enumerable});return e})(!o&&s&&s.__esModule?l:t(l,"default",{value:s,enumerable:!0}),s));function u(e,t,n,r,i,a,s){try{var o=e[a](s),l=o.value}catch(e){return void n(e)}o.done?t(l):Promise.resolve(l).then(r,i)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function s(e){u(a,r,i,s,o,"next",e)}function o(e){u(a,r,i,s,o,"throw",e)}s(void 0)}))}}var f,m=s({"node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"(){}}),v=o({"node_modules/@babel/runtime/helpers/typeof.js"(e,t){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),p=o({"node_modules/@babel/runtime/helpers/regeneratorRuntime.js"(e,t){var n=v().default;function r(){t.exports=r=function(){return i},t.exports.__esModule=!0,t.exports.default=t.exports;var e,i={},a=Object.prototype,s=a.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function m(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:B(e,n,s)}),a}function v(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}i.wrap=m;var p="suspendedStart",h="suspendedYield",g="executing",y="completed",w={};function b(){}function E(){}function _(){}var k={};f(k,c,(function(){return this}));var L=Object.getPrototypeOf,x=L&&L(L(I([])));x&&x!==a&&s.call(x,c)&&(k=x);var C=_.prototype=b.prototype=Object.create(k);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function r(i,a,o,l){var c=v(e[i],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==n(d)&&s.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(a,a):a()}})}function B(t,n,r){var i=p;return function(a,s){if(i===g)throw Error("Generator is already running");if(i===y){if("throw"===a)throw s;return{value:e,done:!0}}for(r.method=a,r.arg=s;;){var o=r.delegate;if(o){var l=T(o,r);if(l){if(l===w)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=g;var c=v(t,n,r);if("normal"===c.type){if(i=r.done?y:h,c.arg===w)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function T(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),w;var a=v(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,w;var s=a.arg;
1return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,w):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,w)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(s.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return E.prototype=_,o(C,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:E,configurable:!0}),E.displayName=f(_,d,"GeneratorFunction"),i.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},i.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,d,"GeneratorFunction")),e.prototype=Object.create(C),e},i.awrap=function(e){return{__await:e}},j(N.prototype),f(N.prototype,u,(function(){return this})),i.AsyncIterator=N,i.async=function(e,t,n,r,a){void 0===a&&(a=Promise);var s=new N(m(e,t,n,r),a);return i.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},j(C),f(C,d,"Generator"),f(C,c,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),i.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},i.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return o.type="throw",o.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=s.call(a,"catchLoc"),c=s.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,w):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),w},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),w}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),w}},i}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),h=o({"node_modules/@babel/runtime/regenerator/index.js"(e,t){var n=p()();t.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}});function g(){return!!f&&{passive:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}var y=s({"assets/scripts/helpers/passiveIfPossible.js"(){f=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});window.addEventListener("testpassive",null,t)}catch(e){return!1}return e}()}});function w(e,t,n){var r,i;return t=t||250,function(){var a=n||this,s=Date.now(),o=arguments;r&&s<r+t?(window.clearTimeout(i),i=window.setTimeout((function(){r=s,e.apply(a,o)}),t)):(r=s,e.apply(a,o))}}var b,E,_,k,L,x,C,j,N,B,T,S,A=s({"assets/scripts/helpers/throttle.js"(){}});function O(){for(var e,t,n,r,i=null!==(e=null===(t=window)||void 0===t?void 0:t.pageXOffset)&&void 0!==e?e:0,a=null!==(n=null===(r=window)||void 0===r?void 0:r.pageYOffset)&&void 0!==n?n:0,s=x.slice(),o=0,l=s.length;o<l;++o)s[o]({scrollX:i,lastScrollX:T,scrollY:a,lastScrollY:S});T=i,S=a}function I(e,t){window!==B&&(x.length=0,N=!1,B=window),function(e){return x.indexOf(e)>-1}(e)||(x.push(e),T=window.pageXOffset,S=window.pageYOffset,t&&e({scrollX:T,lastScrollX:T,scrollY:S,lastScrollY:S}),N||(N=!0,C=w(O,70),window.addEventListener("scroll",C,g())))}function P(e){var t=x.indexOf(e);t>-1&&x.splice(t,1),x.length||(window.removeEventListener("scroll",C),N=!1)}function D(){R()&&(document.documentElement.style.scrollBehavior="unset"),document.documentElement.classList.add("disable-scroll")}function M(){document.documentElement.classList.remove("disable-scroll"),R()&&(document.documentElement.style.scrollBehavior="")}function R(){return void 0===j&&(j="scrollBehavior"in document.documentElement.style),j}var H,F,V=s({"assets/scripts/helpers/scroll.js"(){y(),A(),L={add:I,remove:P,enableScroll:M,disableScroll:D},x=[],N=!1,B=window,T=null!==(b=null===(E=window)||void 0===E?void 0:E.pageXOffset)&&void 0!==b?b:0,S=null!==(_=null===(k=window)||void 0===k?void 0:k.pageYOffset)&&void 0!==_?_:0}});function q(){var e=document.getElementsByClassName("outsider-ad");if(e.length){var t=e.length-1,n={ad:e[t].firstElementChild,ctx:e[t],state:F.NONE};
1if(r=document.createElement("div"),!["","-webkit-","-moz-","-ms-"].some((function(e){var t;try{r.style.position="".concat(e,"sticky")}catch(e){}return!(null==r||null===(t=r.style)||void 0===t||!t.position)}))){for(var r,i=0,a=e.length;i<a;i++)W(e[i]);e[0].classList.add("outsider-ad-fallback--first"),L.add((function(){n.top=n.ctx.getBoundingClientRect().top,function(e,t){if(e.state===t)return;switch(t){case F.NONE:e.ad.classList.remove("outsider-ad__fixed"),e.ctx.classList.remove("outsider-ad-fallback--bottom-aligned");break;case F.FIXED:e.ad.classList.add("outsider-ad__fixed"),e.ctx.classList.remove("outsider-ad-fallback--bottom-aligned");break;case F.BOTTOM_ALIGNED:e.ad.classList.remove("outsider-ad__fixed"),e.ctx.classList.add("outsider-ad-fallback--bottom-aligned")}e.state=t}(n,function(){if(n.top<=H)return F.FIXED;return F.NONE}())}),!0)}}}function W(e){e.firstElementChild.classList.remove("outsider-ad__sticky"),e.classList.remove("outsider-ad--first","outsider-ad--second"),e.classList.add("outsider-ad-fallback")}var U=s({"assets/scripts/plugins/outsiderAds.js"(){V(),H=50,F={NONE:0,BOTTOM_ALIGNED:1,FIXED:2}}});var z=s({"node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"(){}});var Y=s({"node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"(){}});function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var G=s({"node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js"(){}});function Q(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}var $=s({"node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"(){G()}});var J=s({"node_modules/@babel/runtime/helpers/esm/nonIterableRest.js"(){}});function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,s,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}(e,t)||Q(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var K,ee,te=s({"node_modules/@babel/runtime/helpers/esm/slicedToArray.js"(){z(),Y(),$(),J()}});function ne(){Object.keys(K).forEach((function(e){return ae(K[e])}))}function re(e){var t,n=e.detail;if(n)if(function(e){return!e.slot}(n))!function(e){var t,n=null===(t=e.target)||void 0===t?void 0:t.id;if(!n)return;var r=document.getElementById(n);if(!r)return;var i=r.firstElementChild;if(!i)return;var a=i.firstElementChild;if(!a)return;a.style.width="100%"}(e);else{var r=null===(t=n.slot)||void 0===t?void 0:t.getSlotElementId();if(r&&function(e){if(!e)return!1;var t=!1;return ee.forEach((function(n){e.includes(n)&&(t=!0)})),t}(r))if(n.isEmpty)ie(e);else if(r.includes("mob")){var i=document.getElementById(r);if(!i)return;i.style.removeProperty("width"),i.style.removeProperty("height")}else r.includes("mob")||(K[r]=n,ae(n))}}function ie(e){var t,n=null===(t=e.target)||void 0===t?void 0:t.id;if(n){var r=document.getElementById(n);if(r){var i=r.closest(".ad");i.parentElement.removeChild(i)}}}function ae(e){var t,n=null===(t=e.slot)||void 0===t?void 0:t.getSlotElementId(),r=document.getElementById(n);if(r){var i=r.firstElementChild;if(i){r.style.removeProperty("width");var a=Z(e.size,2),s=a[0],o=a[1],l=r.parentElement.offsetWidth;if(!isNaN(l)){if(s<=l)return i.style.removeProperty("webkitTransform"),i.style.removeProperty("transform"),void(r.style.height="auto");var c=l/s,u=o*c;i.style.webkitTransformOrigin=i.style.transformOrigin="center top",i.style.webkitTransform=i.style.transform="scale(".concat(c,")"),r.style.height="".concat(u,"px"),r.style.minHeight="auto"}}}}var se=s({"assets/scripts/helpers/handleAds.js"(){te(),A(),K={},ee=["panorama_top","articlemodule","module","insider","outsider","mob"]}});function oe(e,t){e&&!window.Di.hasAdBlocker&&(window.addEventListener("bad:slotRenderEnded",re),window.addEventListener("bad:collapse",ie),window.addEventListener("resize",w(ne,50)),t||q())}var le,ce=s({"assets/scripts/plugins/ads.js"(){U(),se()}});function ue(){le=window.innerHeight,document.documentElement.clientWidth}var de=s({"assets/scripts/helpers/windowDimensions.js"(){A(),le=window.innerHeight,document.documentElement.clientWidth,window.addEventListener("resize",w(ue))}});function fe(e,t){if(null!=e&&e.length){for(var n=[],r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];for(var s=0,o=e.length;s<o;s++){var l=t.apply(void 0,[e[s]].concat(i));l&&"function"==typeof l.then&&n.push(l)}return Promise.all(n)}}var me,ve=s({"assets/scripts/helpers/forEach.js"(){}}),pe={};function he(){return ge.apply(this,arguments)}function ge(){return ge=d(me.default.mark((function e(){var t,n,r;return me.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(){return(r=d(me.default.mark((function e(t){var n,r,i,a;return me.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(r=null===(n=t.getElementsByTagName("img"))||void 0===n||null===(n=n[0])||void 0===n?void 0:n.getAttribute("src")){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,window.fetch(r);case 7:404===e.sent.status&&(t.classList.contains("teaser_super__analysis-image")||(a=null===(i=t.closest(".teaser__content"))||void 0===i||null===(i=i.getElementsByClassName("teaser__text-wrapper"))||void 0===i?void 0:i[0])&&(a.style.flex=1),t.remove());case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)},n=function(e){return r.apply(this,arguments)},(t=document.getElementsByClassName("js_profile-image")).length){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,fe(t,n);case 7:case"end":return e.stop()}}),e)}))),ge.apply(this,arguments)}l(pe,{default:()=>he});var ye=s({"assets/scripts/plugins/checkProfileImageSrcUrl.js"(){m(),me=c(h(),1),ve()}}),we={};function be(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
1if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _e(e,t){!function(e){var t;if(null!==(t=window.playerManager)&&void 0!==t&&t.length||!e.getElementsByClassName("video__player").length)return;var n=document.getElementsByClassName("video-player-resource");if(null!=n&&n.length)for(var r=0;r<n.length;++r){var i,a,s=n[r];null!==(i=s.dataset)&&void 0!==i&&i.src?s.src=s.dataset.src:null!==(a=s.dataset)&&void 0!==a&&a.href&&(s.href=s.dataset.href)}}(e),window.playerManager=window.playerManager||[];var n=document.getElementsByClassName("article__wrapper").length>0,r=window.location.pathname.match(/(ditv\/\w)/),i=new window.IntersectionObserver((function(e){e.forEach((function(e){var t=e.target;e.intersectionRatio>.1?t.setAttribute("data-visible",!0):t.removeAttribute("data-visible")}))}),{threshold:.1}),a=e.getElementsByClassName("video");if("mainDocument"===t){window.playerManager.push((function(e){var t={autoplayNext:!0,className:"evp",cmpEnabled:!!document.getElementById("cmp-script"),external:!0,partnerId:"di",useCdn:!0};n&&(t.canShrinkInDimensions=!0),r&&(t.autoplayWithSound=!0),e.init(t)}));var s,o=be(a);try{for(o.s();!(s=o.n()).done;){var l=s.value;ke(l),i.observe(l)}}catch(e){o.e(e)}finally{o.f()}}else if(window.playerManager.push((function(e){e.update()})),"lazyLoad"===t){var c,u=be(a);try{for(u.s();!(c=u.n()).done;){var d=c.value;i.observe(d)}}catch(e){u.e(e)}finally{u.f()}}}function ke(e){var t;e&&(window.kraken=null!==(t=window.kraken)&&void 0!==t?t:{},window.kraken.diTracking=function(){})}l(we,{default:()=>_e});var Le,xe=s({"assets/scripts/plugins/theoPlayer.js"(){}});function Ce(){var e=document.getElementsByClassName("lazy-load");if(null!=e&&e.length)for(var t=le,n=new window.IntersectionObserver((function(e){e.forEach((function(e){e.intersectionRatio>0&&(n.unobserve(e.target),function(e){var t,n=e.getElementsByTagName("noscript")[0];if(!n)return;n.parentElement.insertAdjacentHTML("beforeend",n.textContent),n.parentElement.removeChild(n),e.parentElement.classList.contains("js_profile-image")?Promise.resolve().then((()=>(ye(),pe))).then(function(){var e=d(Le.default.mark((function e(t){return Le.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.default();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):e.classList.contains("video")&&null!==(t=e.getElementsByClassName("theo-player"))&&void 0!==t&&t.length&&Promise.resolve().then((()=>(xe(),we))).then((function(t){return t.default(e.parentElement,"lazyLoad")}))}(e.target))}))}),{rootMargin:"".concat(t,"px 0px"),threshold:.01}),r=0,i=e.length;r<i;++r)n.observe(e[r])}var je=s({"assets/scripts/plugins/lazyLoad.js"(){m(),Le=c(h(),1),de()}});function Ne(e){if(e){var t=e.firstElementChild;return t.addEventListener("click",(function(e){e.stopPropagation()})),{open:function(){e.classList.remove("hidden"),L.disableScroll();var n=t.getElementsByClassName("modal__close"),r=[].concat([].slice.call(n),e);r.forEach((function(e){return e.addEventListener("click",i)})),window.addEventListener("keyup",a);function i(t){t&&t.stopPropagation(),r.forEach((function(e){return e.removeEventListener("click",i)})),window.removeEventListener("keyup",a),L.enableScroll(),e.classList.add("hidden")}function a(e){"Escape"===e.key&&i()}}}}}var Be=s({"assets/scripts/plugins/modal.js"(){V()}});function Te(e){window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e)}var Se=s({"assets/scripts/plugins/pushToDidomi.js"(){}});function Ae(e,t){var n,r=this;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var o=r;clearTimeout(n),n=setTimeout((function(){return e.apply(o,a)}),t)}}
1var Oe=s({"assets/scripts/helpers/debounce.js"(){}});function Ie(e){return e&&""!==e.trim()&&!1===/(<|>|\?|!)/.test(e)}var Pe=s({"assets/scripts/helpers/isValidSearchString.js"(){}});function De(e){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Me=s({"node_modules/@babel/runtime/helpers/esm/typeof.js"(){}});var Re=s({"node_modules/@babel/runtime/helpers/esm/toPrimitive.js"(){Me()}});function He(e){var t=function(e,t){if("object"!=De(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=De(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==De(t)?t:t+""}var Fe=s({"node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"(){Me(),Re()}});function Ve(e,t,n){return(t=He(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qe=s({"node_modules/@babel/runtime/helpers/esm/defineProperty.js"(){Fe()}});function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){Ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(e){var t=e.event,n=e.componentName,r=e.searchQuery,i=e.previewLinkEl,a={event:t,eventParams:{category:"search",searchQuery:r},filter:"stock search"===n?{categories:"Aktier, Fonder, Index, Valutor, Råvaror, Räntor"}:void 0,engagement:{type:e.type,component:{position:void 0,name:n,index:"1",range:void 0,id:void 0,type:void 0,element:void 0}}};window.dataLayer.push(Ue(Ue({},a),{},{engagement:Ue(Ue({},a.engagement),i&&{destination:{url:i.href,title:i.innerText,type:"internal",id:void 0}})}))}var Ye,Xe,Ge,Qe,$e,Je,Ze,Ke,et,tt,nt,rt,it,at,st,ot,lt,ct,ut,dt=s({"assets/scripts/helpers/pushSearchEventToDataLayer.js"(){qe()}}),ft={};function mt(){var e,t,n,r,i;if(Ye=document.getElementsByClassName("js_site-header__panorama")[0],Xe=document.getElementsByClassName("js_site-wrapper")[0],Ge=null===(e=Xe)||void 0===e?void 0:e.getElementsByClassName("site-body")[0],Qe=null===(t=Ge)||void 0===t?void 0:t.getElementsByClassName("outsider-ad__sticky")[0],$e=null===(n=Ge)||void 0===n?void 0:n.getElementsByClassName("native-article__banner")[0],Je=null===(r=Ge)||void 0===r?void 0:r.getElementsByClassName("article__main")[0],Ze=null===(i=Ge)||void 0===i?void 0:i.getElementsByClassName("native-article")[0],ct=!1,Ye&&Xe&&Ge){ut=!!Ge.classList.contains("site-body--start-page");var a=Z([et+(ut?Ke:0),tt,Ke+(ut?et:0)],3);st=a[0],ot=a[1],lt=a[2],window.setTimeout((function(){rt=window.pageYOffset,it=rt,0===rt?vt():window.addEventListener("scroll",pt)}),5e3)}}function vt(){Xe.classList.remove("panorama-scrolls-out"),Xe.classList.add("panorama-is-scrolled-out"),window.removeEventListener("scroll",pt),Ye.style.top="",Ge.style.margin="",Qe&&(Qe.style.top="".concat(st+12,"px"),Qe.style.position="sticky"),$e&&($e.style.top="".concat(et,"px"),$e.style.position="sticky",$e.style.padding="0",Ze.style.paddingTop="0",Je.style.paddingBottom="0")}function pt(){var e=window.pageYOffset,t=e<it;if(e>it)if(ct)(e-at>ot||Ye.getBoundingClientRect().bottom<=st)&&vt();else{at=e,ct=!0,Xe.classList.add("panorama-scrolls-out");var n=st+e;Ye.style.top="".concat(n,"px"),Ge.style.margin="".concat(ot,"px 0 0"),function(){if(Qe){var e=document.getElementsByClassName("outsider-ad--first")[0];if((null==e?void 0:e.getBoundingClientRect)>Ye.getBoundingClientRect().bottom)Qe.style.top="0px";else{var t=!!document.getElementsByClassName("section-page")[0],n=!!document.getElementsByClassName("vertical-page")[0];Qe.style.width=ut||t||n?"300px":"316px",Qe.style.top="".concat(Qe.offsetTop-12,"px"),Qe.style.position="absolute"}}$e&&($e.style.top="".concat($e.offsetTop-$e.offsetHeight+2*nt,"px"),$e.style.position="absolute",$e.style.width="".concat(Ze.offsetWidth,"px"),Ze.style.paddingTop="".concat(2*nt,"px"),Je.style.paddingBottom="".concat(2*nt,"px"))}()}else if(t){var r=1.5*(it-e);e<=lt&&vt(),ct&&e-r<=at&&(ct=!1,Xe.classList.remove("panorama-scrolls-out"),Ye.style.top="",Ge.style.margin="",function(){Qe&&(Qe.style.top=ut?"352px":"320px",Qe.style.position="sticky");$e&&($e.style.top="".concat(ot+et,"px"),$e.style.position="sticky",$e.style.padding="0",Ze.style.paddingTop="0",Je.style.paddingBottom="0")}())}it=e}l(ft,{default:()=>mt});var ht,gt=s({"assets/scripts/plugins/panoramaScrollAway.js"(){te(),Ke=32,et=48,tt=256,nt=16}}),yt={};function wt(e){var t=document.getElementsByClassName("js_site-header"),n=t[t.length-1];if(n){var r,i=!1;L.add((function(e){var t=e.scrollY;!i&&t>ht?a():i&&t<ht&&s()})),(r=n.getBoundingClientRect()).top>=0&&r.left>=0&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&r.right<=(window.innerWidth||document.documentElement.clientWidth)?a():s()}function a(){i=!0,n.classList.add("site-header--in-view"),e.classList.remove("site-header-big--in-view")}function s(){i=!1,n.classList.remove("site-header--in-view"),e.classList.add("site-header-big--in-view")}}l(yt,{default:()=>wt});var bt=s({"assets/scripts/plugins/siteHeaderDesktopStart.js"(){V(),ht=116}}),Et={};function _t(){var e=document.querySelectorAll(".js_adblock-placeholder");if(e&&e)for(var t=function(t){if(!r(e[t])){var n=new MutationObserver((function(){r(e[t])&&n.disconnect()}));n.observe(e[t],{childList:!0,subtree:!0})}},n=0;n<e.length;n++)t(n);function r(e){var t=e.querySelector(".adblock-warning");return!t&&(!window.getComputedStyle||!(e&&!["none","hidden","0"].includes(window.getComputedStyle(e).display)&&!["none","hidden","0"].includes(window.getComputedStyle(e).visibility)&&"0"!==window.getComputedStyle(e).opacity&&"0px"!==window.getComputedStyle(e).height&&"0px"!==window.getComputedStyle(e).width)&&(t=function(){var e=document.createElement("div");return e.classList.add("adblock-warning"),e.textContent="Det verkar som att du använder en annonsblockerare. Av den anledningen ser du inte all information på di.se.",e}(),e.insertAdjacentElement("beforebegin",t),!0))}}l(Et,{init:()=>_t});var kt=s({"assets/scripts/nativePlaceholder.js"(){}});function Lt(e){if(e){var t=e.getElementsByClassName("slideshow__items")[0],n=null==t?void 0:t.children;if(n){var r=n.length,i=0,a=t.getBoundingClientRect().width,s={slideToNext:function(){o(i+1)},slideToPrevious:function(){o(i-1)}};return function(){var e,n,s=g(!1);function c(t){var n=t.touches?t.touches[0]:t;e={x:n.pageX,y:n.pageY,position:l(i),time:Date.now()},window.addEventListener("touchmove",u,s)}function u(n){if(window.removeEventListener("touchmove",u,s),!(n.touches.length>1||n.scale&&1!==n.scale)){var r=n.touches[0];Math.abs(r.pageX-e.x)<Math.abs(r.pageY-e.y)||(n.preventDefault(),window.addEventListener("touchmove",d,s),window.addEventListener("touchend",f,s),t.style.webkitTransitionDuration=t.style.transitionDuration="0s")}}function d(r){r.preventDefault();var i=r.touches[0];n=i.pageX-e.x,p()&&(n/=Math.abs(n)/a+1);var s=e.position+n/a*100;t.style.webkitTransform=t.style.transform="translateX(".concat(s,"%)")}function f(){window.removeEventListener("touchmove",d,s),window.removeEventListener("touchend",f,s);var r=!v()||p()?0:m(n),a=Math.min(Date.now()-e.time,300);t.style.webkitTransitionDuration=t.style.transitionDuration="".concat(a,"ms"),o(i-r),e=void 0,n=void 0}function m(e){return 0===e?0:e>0?1:-1}function v(){if(!n)return!1;var t=Date.now()-e.time,r=parseInt(t,10)<250&&Math.abs(n)>40,i=Math.abs(n)>a/2;return r||i}function p(){return n>0&&0===i||n<0&&i===r-1}t.addEventListener("touchstart",c,s)}(),t.style.webkitTransitionDuration=t.style.transitionDuration="".concat(300,"ms"),s}}function o(e){var n=function(e){return e>=r?0:e<0?r-1:e}(e);!function(e){var n=l(e);t.style.webkitTransform=t.style.transform="translateX(".concat(n,"%)"),0===n&&(t.style.transform="none")}(n),i=n}function l(e){return-100*e}}var xt=s({"assets/scripts/plugins/slider.js"(){y()}}),Ct={};function jt(e){if(e){var t=e.getElementsByClassName("slideshow");if(t.length)for(var n=0,r=t.length;n<r;++n)Nt(t[n])}}function Nt(e){var t=Lt(e);if(t)return function(e,t){if(2!==e.length)return;e[0].addEventListener("click",(function(){t.slideToPrevious(),Bt()})),e[1].addEventListener("click",(function(){t.slideToNext(),Bt()}))}(e.getElementsByClassName("slideshow__arrow"),t),t}function Bt(){var e;null===(e=window.dataLayer)||void 0===e||e.push({event:"graphics interaction swipe",eventParam
1s:{category:"graphics"},engagement:{type:"swipe",component:{position:"article",name:"slideshow",index:void 0,range:"5",id:"32403fff-f51f-4dd6-b74c-41d34161f9fb",type:"carousel",element:void 0}}})}l(Ct,{setupSlideshow:()=>jt});var Tt,St,At,Ot=s({"assets/scripts/plugins/slideshow.js"(){xt()}});var It,Pt=s({"assets/scripts/helpers/scriptLoader.js"(){Tt=[],St=[],At=[]}}),Dt={};function Mt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Rt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"iframe";if(e){var n=e.getElementsByClassName("js-embed");if(null!=n&&n.length){var r,i=Mt(n);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=It.map((function(e){return".embed--".concat(e)})).join(", ");a.matches(s)&&Vt(a)}}catch(e){i.e(e)}finally{i.f()}var o=e.getElementsByClassName("js-social-embed");null!=o&&o.length&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=new Promise((function(e,t){n.resolve=e,n.reject=t})),i=At.find((function(t){return t.src===e}));return i?i.queue.push(n):At.push({src:e,queue:[n]}),St.indexOf(e)>-1?a():-1===Tt.indexOf(e)&&(Tt.push(e),new Promise((function(n,r){var i=document.createElement("script");i.src=e,i.onload=n,i.onerror=r,i.setAttribute("async","async"),Object.keys(t.attributes||[]).forEach((function(e){return i.setAttribute(e,t.attributes[e])})),document.body.appendChild(i)})).then((function(){St.push(e),a()})).catch((function(){Tt.splice(Tt.indexOf(e),1),n.reject()}))),r;function a(){for(var t=At.find((function(t){return t.src===e})).queue;t.length;)t.shift().resolve()}}("https://sme.expressen.se/js/social-media-embeds.min.js").then((function(){socialMediaEmbeds(e,{})})).catch();var l=e.querySelectorAll(t);if(null!=l&&l.length)for(var c=0;c<l.length;c++){var u,d=l[c];if(null!=d&&d.contentWindow){var f=(null!==(u=null==d?void 0:d.parentNode)&&void 0!==u?u:{}).classList;((null==f?void 0:f.contains("embed__pang"))||(null==f?void 0:f.contains("embed__arkku"))||(null==f?void 0:f.contains("embed__election")))&&Ft(d,c)}}}}}function Ft(e,t){var n={contentWindow:e.contentWindow,index:t,element:e,intersectionRatio:null};window.addEventListener("message",(function(t){if(e&&t.source===n.contentWindow){var r=t.data;if("IFrameLoaded"===r.type&&(e.id||(e.id="iframe".concat(Math.floor(4294967296*Math.random()).toString(16))),n.contentWindow.postMessage({type:"IFrameInit",id:e.id,visible:n.intersectionRatio>.6},"*")),"pang-resize"===r.type||"IFrameResize"===r.type){if(!r.height)return;var i=getComputedStyle(e).height,a="".concat(r.height,"px");if(a===i)return;e.style.height=a}if("iframe-resize:bn-election-graphics"===r.type){if(!r.ratio||r.ratio<=0)return;var s=Math.round(e.offsetWidth*r.ratio),o="".concat(s,"px");if(o===getComputedStyle(e).height)return;e.style.height=o}if("IFrameOpenLink"===r.type||"OpenLink"===r.type){if(!r.url||r.url.includes("://"))return;var l=["_self","_blank"].includes(r.target)?r.target:"_self";try{var c=new URL(r.url,"https://www.di.se").pathname;window.open(c,l)}catch(e){return}}"graphics tracking"===r.type&&function(e){var t=null==e?void 0:e.data;if(!t)return;Te((function(){window.dataLayer.push(t)}))}(r)}}));var r=[.6];n.observer=new window.IntersectionObserver((function(t){t.forEach((function(t){var r,i,a,s,o=t.intersectionRatio;n.intersectionRatio=o,null===(r=n.contentWindow)||void 0===r||null===(i=r.postMessage)||void 0===i||i.call(r,{type:"intersectionRatio",id:e.id,intersectionRatio:o},"*"),null===(a=n.contentWindow)||void 0===a||null===(s=a.postMessage)||void 0===s||s.call(a,{type:"IFrame
1Visible",id:e.id,visible:o>.6},"*")}))}),{rootMargin:"0px",threshold:r}),n.observer.observe(e)}function Vt(e){Te((function(){var t,n=window.Didomi,r=Mt(It);try{for(r.s();!(t=r.n()).done;){var i=t.value;!e.classList.contains("embed--".concat(i))||null!=n&&n.getUserConsentStatusForVendor("c:bn-".concat(i))||e.remove()}}catch(e){r.e(e)}finally{r.f()}}))}l(Dt,{default:()=>Ht});var qt=s({"assets/scripts/plugins/embed.js"(){Se(),Pt(),It=["vimeo","infogram","twitter","youtube"]}});function Wt(e){e&&window.dataLayer.push(e)}var Ut=s({"assets/scripts/helpers/dataLayerPush.js"(){}});function zt(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NÃ¥got gick fel",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=document.getElementsByClassName("js_site-header")[0];if(i){var a=document.createElement("article");a.setAttribute("class","toaster");var s=document.createElement("p");s.classList.add("toaster__text"),n&&(s.textContent="".concat(n));var o=document.createElement("b");o.textContent=t,s.insertAdjacentElement("afterbegin",o);var l="";if(null!==(e=Object.keys(r))&&void 0!==e&&e.length){var c,u=r.htmlEl,d=r.text,f=r.attributes;if(l=document.createElement(u),null!==(c=Object.keys(f))&&void 0!==c&&c.length)for(var m=0,v=Object.entries(f);m<v.length;
1m++){var p=Z(v[m],2),h=p[0],g=p[1];l.setAttribute(h,g)}l.textContent=d,s.insertAdjacentElement("beforeend",l)}var y=document.createElement("figure");y.classList.add("toaster__close"),y.innerHTML="<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' class='icon icon--feather-close icon-feather'><use xlink:href=#feather-close></use></svg>",y.addEventListener("click",(function(){return a.remove()})),a.appendChild(s),a.appendChild(y),i.appendChild(a),"test"!==window.Di.environment&&window.setTimeout((function(){a.classList.add("toaster--fade-out"),window.setTimeout((function(){return a.remove()}),500)}),5e3)}}var Yt,Xt=s({"assets/scripts/plugins/toaster.js"(){te()}}),Gt={};function Qt(e){var t,n;if(window.Di.loggedIn&&e){var r=e.getElementsByClassName("js_article__bookmark")[0];if(r){var i=r.getElementsByClassName("js_article__bookmark-button")[0];if(i){var a=(null===(t=e.getElementsByClassName("js_first-article"))||void 0===t||null===(t=t[0])||void 0===t?void 0:t.getAttribute("data-id"))||e.getAttribute("data-id");if(a){var s=(null===(n=e.getElementsByClassName("js_first-article"))||void 0===n||null===(n=n[0])||void 0===n?void 0:n.getAttribute("data-url"))||e.getAttribute("data-url");i.addEventListener("click",d(Yt.default.mark((function e(){return Yt.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$t(a,i,s);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))))}}}}}function $t(e,t,n){return Jt.apply(this,arguments)}function Jt(){return(Jt=d(Yt.default.mark((function e(t,n,r){var i,a,s;return Yt.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Delete"!==(i=Zt(n)?"Delete":"Add")){e.next=8;break}return e.next=4,window.fetch("/user-settings-unfollow/bookmark/".concat(t,"/"),{method:"POST",credentials:"include"});case 4:null!=(a=e.sent)&&a.ok&&(n.classList.remove("bookmarked"),n.children[1].innerText="Spara",Kt("Artikeln är borttagen.")),e.next=12;break;case 8:return e.next=10,window.fetch("/user-settings-follow/bookmark/".concat(t,"/"),{method:"POST",credentials:"include"});case 10:null!=(s=e.sent)&&s.ok&&(n.classList.add("bookmarked"),n.children[1].innerText="Sparad",Kt("Artikeln är sparad till ",{htmlEl:"a",text:"ditt konto.",attributes:{href:"/sparade-artiklar/",class:"js_link-bookmark link-bookmark"}}));case 12:en(i,r);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zt(e){return e.classList.contains("bookmarked")}function Kt(e,t){var n=document.getElementsByClassName("toaster")[0];n&&n.remove(),zt(e,"",t)}function en(e,t){Wt({event:"Account Settings",eventInfo:{position:"Bookmark interactions",label:"".concat(e," bookmark"),target:t}}),function(){var e=document.getElementsByClassName("js_link-bookmark")[0];if(!e)return;e.addEventListener("click",(function(){window.dataLayer.push({event:"bookmark interaction click",eventParams:{category:"bookmark"},engagement:{type:"click",component:{position:"top popup",name:"toaster"}}})}))}()}l(Gt,{default:()=>Qt});var tn=s({"assets/scripts/plugins/bookmarkArticle.js"(){m(),Yt=c(h(),1),Ut(),Xt()}}),nn={};function rn(e){var t;if(e){var n=e.getElementsByClassName("js_share-button")[0];if(n){var r=(null===(t=e.getElementsByClassName("js_first-article"))||void 0===t||null===(t=t[0])||void 0===t?void 0:t.getAttribute("data-id"))||e.getAttribute("data-id");r&&n.addEventListener("click",(function(){return function(e,t){window.navigator.share?window.navigator.share({title:document.title,url:t}).then((function(){an(e)})).catch((function(){})):window.navigator.clipboard.writeText(t).then((function(){zt("Länk kopierad till urklipp!"),an(e)})).catch((function(){}))}(r,window.location.href)}))}}}
1function an(e){Wt({event:"article share",eventParams:{category:"share"},engagement:{type:"click",component:{position:"article text",name:document.title,index:void 0,range:1,id:e,type:"article",element:{name:"Dela",id:void 0}}}})}l(nn,{default:()=>rn});var sn,on,ln=s({"assets/scripts/plugins/shareArticle.js"(){Ut(),Xt()}}),cn={};function un(e){var t=document.getElementsByClassName("plus-pro-swipe-container")[0];if(t){var n=t.getElementsByClassName("plus-pro-swipe")[0],r=t.getElementsByClassName("js_plus-pro-swipe__next-button")[0],i=t.getElementsByClassName("js_plus-pro-swipe__prev-button")[0];if(n&&r&&i){r.addEventListener("click",(function(){var e=n.scrollWidth-n.clientWidth-n.scrollLeft;n.scrollBy({left:e<2*sn?e:sn,behavior:"smooth"})})),i.addEventListener("click",(function(){n.scrollBy({left:-sn,behavior:"smooth"})})),c(),n.addEventListener("scroll",c,{passive:!0});var a=Array.from(t.getElementsByClassName("plus-pro-swipe__article"));if(a.length){var s=new Map,o=new window.IntersectionObserver((function(t){t.forEach((function(t){var n=t.target;t.isIntersecting&&Wt({event:"pluspro widget impression",eventParams:{category:"pluspro widget"},engagement:{type:"impression",component:{name:"Mina branschnyheter",index:String(s.get(n)),position:e}}})}))}),{threshold:on});a.forEach((function(t,n){s.set(t,n+1),o.observe(t);var r=t.getElementsByTagName("a")[0];r&&r.addEventListener("click",(function(){return function(t,n,r){var i,a=(null===(i=t.getElementsByClassName("plus-pro-swipe__heading")[0])||void 0===i?void 0:i.textContent)||"",s=new URL(n.href);s.searchParams.set("utm_medium","internal"),s.searchParams.set("utm_source","di_pluspro_articles"),Wt({event:"pluspro widget link click",eventParams:{category:"pluspro widget"},engagement:{type:"link click",component:{position:e,name:"Mina branschnyheter",index:void 0,range:void 0,id:void 0,type:"swipe block",element:{name:a,index:String(r+1),range:"4",id:void 0}},destination:{title:a,url:s.toString(),type:"internal"}}})}(t,r,n)}))}));var l=t.getElementsByClassName("js_plus-pro-swipe__cta-link")[0];l&&l.addEventListener("click",(function(){var t;(t=new URL(l.href)).searchParams.set("utm_medium","internal"),t.searchParams.set("utm_source","di_pluspro_articles"),Wt({event:"pluspro widget link click",eventParams:{category:"pluspro widget"},engagement:{type:"link click",component:{position:e,name:"Mina branschnyheter",index:void 0,range:void 0,id:void 0,type:"swipe block",element:{name:"Fler branschnyheter",index:void 0,range:void 0,id:void 0}},destination:{title:"Fler branschnyheter",url:t.toString(),type:"internal"}}})}))}}}function c(){i.disabled=n.scrollLeft<=0,r.disabled=n.scrollLeft+n.clientWidth>=n.scrollWidth-1}}l(cn,{default:()=>un});var dn=s({"assets/scripts/plugins/plusProSwipe.js"(){Ut(),sn=266,on=.3}});var fn=s({"node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"(){G()}});var mn=s({"node_modules/@babel/runtime/helpers/esm/iterableToArray.js"(){}});var vn=s({"node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js"(){}});function pn(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var hn=s({"node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"(){fn(),mn(),$(),vn()}});function gn(e){return e.split(" ").map((function(e){return e[0].toUpperCase()+e.slice(1).toLowerCase()})).join(" ")}var yn,wn,bn,En,_n=s({"assets/scripts/helpers/capitalize.js"(){}}),kn={};function Ln(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.getElementsByClassName("js_continuous-article");if("IntersectionObserver"in window){var r=document.getElementsByClassName("js_first-article")[0];if(r){var i=document.getElementsByClassName("native-article")[0];if(i||null!=n&&n.length){var a=r.getAttribute("data-id"),s=r.getAttribute("data-url");bn.includes(a)||bn.push(a),wn||(wn={id:a,url:s});var o=null!==(e=null===(t=document.getElementsByClassName("js_site-header")[0])||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,l=window.innerHeight-o,c=new window.IntersectionObserver((function(e){var t,n=d(e);if((null==n||null===(t=n.boundingClientRect)||void 0===t?void 0:t.y)<0)return;f(n)}),{rootMargin:"0px 0px -".concat(l,"px 0px")}),u=new window.IntersectionObserver((function(e){var t,n=d(e);if((null==n||null===(t=n.boundingClientRect)||void 0===t?void 0:t.y)>0)return;f(n)}),{rootMargin:"-".concat(l,"px 0px 0px 0px ")});fe(i?[r,i].concat(pn(n)):[r].concat(pn(n)),(function(e){var t;"true"!==(null==e?void 0:e.getAttribute("data-observed"))&&(t=e,c.observe(t),u.observe(t),t.setAttribute("data-observed","true"))}))}}}function d(e){var t=e.filter((function(e){return e.isIntersecting}));return t[t.length-1]}function f(e){var t,n=null==e?void 0:e.target;if(n){var i,s;if(_e(n),e){var o=function(e,t){var n,r=e.getAttribute("data-url"),i=e.getAttribute("data-title");!e.classList.contains("native-article")||null!==(n=i)&&void 0!==n&&n.startsWith("ANNONS:")||(i="ANNONS: ".concat(i));return window.history.replaceState(null,null,"".concat(r).concat(t?"":En)),document.title=i,{newUrl:r,newTitle:i}}(n,n===r);i=o.newUrl,s=o.newTitle}var l=n.getAttribute("data-id");if(e){var c,u=(c=document.body.getBoundingClientRect().top>yn?"up":"down",yn=document.body.getBoundingClientRect().top,c);(null===(t=wn)||void 0===t?void 0:t.id)===l||l===a&&"down"===u||function(e,t,n,r,i){var a,s=e.dataset,o=s.accessRestriction,l=s.product,c=s.publicationTime,u=s.section,d=s.tags,f=s.advertiserName,m=e.classList.contains("native-article"),v="digital"===l?"Digital":"Dagens Industri";bn.includes(t)||bn.push(t);var p=Object.assign({},window.Di.gtmData),h=p.org,g=p.content;h.subBrand=v,h.service="main content",g.contentAccessStatus=m?"open":function(e){var t;return null!==(t={locked:"locked",free_logged_in:"limited",free:"open",none:"open"}[e.toLowerCase()])&&void 0!==t?t:"open"}(o),g.id.value=t,g.location=window.location.href.replace(En,""),g.referrer=wn.id===t?document.referrer:"".concat(window.location.origin).concat(wn.url),g.type=m?"native ad":"article",g.title=r,g.section=function(e){return e?[gn(e.replace("di.section.",""))]:["Annons"]}(u),g.publicationDate=c.slice(0,10),g.tags=null!==(a=d.split(","))&&void 0!==a?a:[],g.trigger="up"===i?"virtual page load up":"virtual page load",g.articleIndex=1+bn.indexOf(t),m&&(g.advertiserName=f);window.dataLayer.push(p),wn={id:t,url:n}}(n,l,i,s,u)}}}}function xn(){if(window.location.hash===En){window.history.replaceState(null,null,window.location.pathname+window.location.search),"scrollRestoration"in history&&(history.scrollRestoration="manual");var e=window.addEventListener("load",(function(){window.scrollTo(0,0),this.window.removeEventListener("load",e)}))}}l(kn,{clearPreviousContinuousScroll:()=>xn,initContinuousScroll:()=>Ln});var Cn,jn=s({"assets/scripts/plugins/continuousScroll.js"(){hn(),_n(),ve(),xe(),yn=0,wn=null,bn=[],En="#cs"}});var Nn=s({"assets/scripts/helpers/setupLazyLoad.js"(){m(),Cn=c(h(),1)}}),Bn={};function Tn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
1if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Sn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function An(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(null!==(e=window.Di)&&void 0!==e&&e.hasLocalStorage&&null!==(t=window.Di)&&void 0!==t&&t.loggedIn){var i,a="/"===window.location.pathname,s=null!==(n=r.getElementsByClassName("js_watch-teaser"))&&void 0!==n?n:[],o=(window.localStorage.getItem("watchlist-visited-articles")||"").split(",").slice(0,100),l=Tn(s);try{for(l.s();!(i=l.n()).done;){var c=i.value,u=c.getAttribute("data-id");o.includes(u)&&!a?c.classList.add("visited"):u&&!o.includes(u)&&c.addEventListener("click",d)}}catch(e){l.e(e)}finally{l.f()}}function d(){o.unshift(this.getAttribute("data-id")),Te((function(){var e=window.Didomi;null!=e&&e.getUserConsentStatusForVendor("c:bonniernews")&&window.localStorage.setItem("watchlist-visited-articles",o)}))}}l(Bn,{default:()=>An});var On,In=s({"assets/scripts/plugins/handleUserWatchesVisitedArticles.js"(){Se()}}),Pn={};function Dn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Mn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rn(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).getElementsByClassName("js_follow-button");if(null!==(e=window.Di)&&void 0!==e&&e.loggedIn&&t.length){var n,r=Dn(t);try{var i=function(){var e=n.value;e.addEventListener("click",d(On.default.mark((function t(){return On.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Hn(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))))};for(r.s();!(n=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}}}function Hn(e){return Fn.apply(this,arguments)}function Fn(){return(Fn=d(On.default.mark((function e(t){var n,r,i,a,s,o,l,c,u,d,f,m,v;return On.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(r=t).getAttribute("data-tag-id"),a=r.getAttribute("data-tag-name"),s="true"===r.getAttribute("data-tag-is-followed"),o=r.getAttribute("data-style-default"),l=r.getAttribute("data-style-follow"),c=r.getElementsByClassName("follow-button__text")[0],u=r.getElementsByClassName("icon--feather-check")[0],d=r.getElementsByClassName("icon--feather-plus")[0],r.setAttribute("disabled","disabled"),f=null===(n=r.parentNode)||void 0===n?void 0:n.classList.contains("watchlist-modal__result-tag"),!s){e.next=18;break}return e.next=14,window.fetch("/user-settings-unfollow/tags/".concat(i,"/"),{method:"POST",credentials:"include"});case 14:return e.sent.ok&&(c.textContent="Bevaka",Un([r],[o,l]),r.setAttribute("data-tag-is-followed",!1),u&&d&&Un([u,d],["hidden"]),zn("Unsubscribe",a)),r.removeAttribute("disabled"),e.abrupt("return");case 18:return e.next=20,window.fetch("/user-settings-follow/tags/".concat(i,"/"),{method:"POST",credentials:"include"});case 20:if(!(m=e.sent).ok){e.next=27;break}return Vn(m,c,r,u,d,o,l),e.next=25,qn(f);case 25:e.next=34;break;case 27:return e.next=29,window.fetch("/user-settings-follow/tags/".concat(i,"/"),{method:"POST",credentials:"include"});case 29:if(Vn(v=e.sent,c,r,u,d,o,l),!v.ok){e.next=34;break}return e.next=34,qn(f);case 34:zn("Subscribe",a);case 35:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vn(e,t,n,r,i,a,s){e.ok&&(t.textContent="Bevakar",Un([n],[a,s]),n.setAttribute("data-tag-is-followed",!0),r&&i&&Un([r,i],["hidden"])),n.removeAttribute("disabled")}function qn(e){return Wn.apply(this,arguments)}function Wn(){return(Wn=d(On.default.mark((function e(t){var n,r,i,a,s,o;return On.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=14;break}return n=document.querySelector(".watchlist"),r=window.location.pathname,i=r.includes("/lista/")?"/user-settings-get/watchlist-articles/":"/user-settings-get/watchlist/",e.next=6,window.fetch(i,{method:"GET"});case 6:if(a=e.sent,!n||!a.ok){e.next=14;break}return e.next=10,a.text();case 10:n.innerHTML=e.sent,(s=n.getElementsByClassName("js_follow-button")[0])&&(o=s.cloneNode(!0),s.parentNode.replaceChild(o,s),o.addEventListener("click",(function(){return Hn(s)}))),An(n);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Un(e,t){t.forEach((function(t){return e.forEach((function(e){return e.classList.toggle(t)}))}
1))}function zn(e,t){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"watch interaction ".concat("Subscribe"===e?"subscribe":"unsubscribe"),eventParams:{category:"watch",engagement:{type:"toggle",component:{name:t.toLowerCase(),type:"button"}}}})}l(Pn,{default:()=>Rn});var Yn,Xn=s({"assets/scripts/plugins/watchButtons.js"(){m(),On=c(h(),1),In()}}),Gn={};function Qn(){var e=document.getElementById("intersection-target");!function(e,t,n){if(e&&t){var r=new window.IntersectionObserver((function(e){e.forEach(function(){var e=d(Cn.default.mark((function e(r){return Cn.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.isIntersecting){e.next=3;break}return e.next=3,t(n);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}),{rootMargin:"400px 0px"});r.observe(e)}}(e,Jn,e),xn(),Ln()}function $n(e){var t,n;return e?[e.getAttribute("data-section"),null!==(t=null!==(n=e.getAttribute("data-theme-tag"))&&void 0!==n?n:e.getAttribute("data-story-tag"))&&void 0!==t?t:null]:[]}function Jn(e){return Zn.apply(this,arguments)}function Zn(){return Zn=d(Yn.default.mark((function e(t){var n,r,i,a,s,o,l,c,u,d,f,m,v,p,h,g,y=arguments;return Yn.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=y.length>1&&void 0!==y[1]?y[1]:7,!((null==(i=document.getElementsByClassName("article__main"))?void 0:i.length)>r)){e.next=4;break}return e.abrupt("return");case 4:a="",s=0;case 6:if(!(s<(null==i?void 0:i.length))){e.next=14;break}if("null"!==(o=i[s].getAttribute("data-id"))&&"undefined"!==o){e.next=10;break}return e.abrupt("continue",11);case 10:a+="".concat(o).concat(s===i.length-1?"":",");case 11:s++,e.next=6;break;case 14:return l=$n(i[0]),c=Z(l,2),u=c[0],d=c[1],f=document.getElementsByClassName("article__wrapper")[0].getElementsByClassName("ad"),m="/continuous-article/?sectionId=".concat(u,"&articlesAlreadyInView=").concat(a).concat(null!=d&&d.length?"&tags=".concat(d):"","&adSlots=").concat(f.length),e.next=19,window.fetch(m);case 19:if((v=e.sent).ok){e.next=22;break}return e.abrupt("return");case 22:return e.next=24,null==v?void 0:v.text();case 24:if(null!=(p=e.sent)&&p.length){e.next=27;break}return e.abrupt("return");case 27:t.insertAdjacentHTML("beforebegin",p),h=document.getElementsByClassName("article__main"),g=h[h.length-1],Ln(document.getElementsByClassName("js_continuous-article")),Qt(g),rn(g),jt(g),Ht(g),oe(null===(n=window.Di)||void 0===n?void 0:n.bamData,g),Rn(g),Ce();case 38:case"end":return e.stop()}}),e)}))),Zn.apply(this,arguments)}l(Gn,{continuousArticles:()=>Jn,default:()=>Qn});var Kn=s({"assets/scripts/plugins/continuousArticles.js"(){te(),m(),Yn=c(h(),1),jn(),ce(),tn(),ln(),qt(),je(),Nn(),Ot(),Xn()}});function er(e,t){e.classList.add("form-input__error");var n=e.getElementsByClassName("js_form-input-wrapper__error-message")[0];n.innerText=t,n.classList.remove("hidden")}var tr,nr=s({"assets/scripts/plugins/formErrorMessage.js"(){}});var rr,ir=s({"assets/scripts/helpers/isEmailValid.js"(){tr=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[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])?)+$/}}),ar={};function sr(e){var t=e.getElementsByClassName("js_article-newsletter-widget")[0];if(t){var n=t.getElementsByClassName("js_article-newsletter-widget__form")[0],r=t.getElementsByClassName("js_newsletter-opt-in")[0];if(n&&r){var i=n.getAttribute("data-id");r.addEventListener("click",function(){var e=d(rr.default.mark((function e(t){return rr.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}function a(e){return s.apply(this,arguments)}function s(){return(s=d(rr.default.mark((function t(n){var r,a,s;return rr.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.getElementsByClassName("js_article-newsletter-widget__form")[0]){t.next=3;break}return t.abrupt("return");case 3:if(n.preventDefault(),a=r.getElementsByClassName("js_form-input-wrapper__email")[0],s=a.getElementsByClassName("js_form-input__email")[0],o=s.value,tr.test(null==o?void 0:o.toLowerCase())){t.next=10;break}return er(a,"Ange en giltig e-postadress, t.ex. [email protected]."),t.abrupt("return");case 10:return t.next=12,window.fetch("/newsletters/opt-in/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:i,email:s.value,source:"Artiklar"})});case 12:if(200===t.sent.status){t.next=15;break}return t.abrupt("return");case 15:r.classList.add("hidden"),r.insertAdjacentHTML("afterend","<div class='article-newsletter-widget__confirmation global-s-bold'><p>Tack för att du prenumerar!</p></div>");case 18:case"end":return t.stop()}var o}),t)}
1)))).apply(this,arguments)}}l(ar,{default:()=>sr});var or=s({"assets/scripts/plugins/newsletterOptIn.js"(){m(),rr=c(h(),1),nr(),ir()}});function lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var cr=s({"node_modules/@babel/runtime/helpers/esm/classCallCheck.js"(){}});function ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,He(r.key),r)}}function dr(e,t,n){return t&&ur(e.prototype,t),n&&ur(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var fr,mr=s({"node_modules/@babel/runtime/helpers/esm/createClass.js"(){Fe()}});function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){Ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hr,gr,yr,wr,br,Er,_r,kr=s({"assets/scripts/plugins/reveal.js"(){qe(),cr(),mr(),fr=function(){return dr((function e(t,n){lr(this,e),Element.prototype.closest&&"IntersectionObserver"in window&&(this.defaultOptions={duration:.2,transition:{transform:{start:"translateY(-100px)",end:"translateY(0px)",name:null}},transitionEffect:"ease-in-out",fadeIn:{start:.5,end:1},occurOnce:!0,root:null,rootMargin:""},this.options=pr(pr({},this.defaultOptions),n),this.userTransitions=null,this.HTMLElement=t,this.init(this.HTMLElement,this.options))}),[{key:"transitionPresets",value:function(){return{transform:{slideInFromLeft:{start:"translateX(-100px)",end:"translateX(0px)"},slideInFromRight:{start:"translateX(100px)",end:"translateX(0px)"},slideInFromTop:{start:"translateY(-100px)",end:"translateY(0px)"},slideInFromBottom:{start:"translateY(100px)",end:"translateY(0px)"}},width:{zeroToFull:{start:"0px",end:"initial"}}}}},{key:"setCustomTransitionStates",value:function(e){var t=this;this.userTransitions.forEach((function(n){"opacity"!==n&&(t.HTMLElement.style[n]=t.options.transition[n][e])}))}},{key:"buildThresholdList",value:function(){for(var e=this.HTMLElement.getBoundingClientRect().height,t=[],n=1;n<=e;n++){var r=n/e;t.push(r)}return t}},{key:"intersectionObserverCallback",value:function(e){var t=this;e.forEach((function(e){var n,r;e.isIntersecting?(t.HTMLElement.style.opacity=null!==(n=t.options.fadeIn)&&void 0!==n&&n.end?t.options.fadeIn.end:1,t.setCustomTransitionStates("end")):t.options.occurOnce||(t.HTMLElement.style.opacity=null!==(r=t.options.fadeIn)&&void 0!==r&&r.start?t.options.fadeIn.start:Number(!t.options.fadeIn),t.setCustomTransitionStates("start"))}))}},{key:"init",value:function(e,t){var n,r=this;this.userTransitions=Object.keys(t.transition),this.userTransitions.forEach((function(e){t.transition[e]=e in r.transitionPresets()?pr(pr({},t.transition[e]),r.transitionPresets()[e][t.transition[e].name]):t.transition[e]})),e.style.transition=this.userTransitions.map((function(e){return"".concat(e," ").concat(t.duration,"s ").concat(t.transitionEffect," ").concat(t.duration,"s")})).join(","),e.style.opacity=null!==(n=this.options.fadeIn)&&void 0!==n&&n.start?this.options.fadeIn.start:Number(!this.options.fadeIn),this.setCustomTransitionStates("start"),new IntersectionObserver(this.intersectionObserverCallback.bind(this),{threshold:this.buildThresholdList(),root:this.options.root,rootMargin:this.options.rootMargin}).observe(e)}}])}()}});function Lr(e){return NodeList.prototype.isPrototypeOf(e)||HTMLCollection.prototype.isPrototypeOf(e)?Array.from(e):"string"==typeof e||e instanceof String?document.querySelectorAll(e):[e]}function xr(){for(var e=["webkitTransform","mozTransform","oTransform","msTransform","transform"],t=0;t<e.length;t++){var n=void 0!==document.createElement("div").style[e[t]]?e[t]:null;if(n)return n}return null}var Cr,jr=s({"assets/scripts/plugins/parallax.js"(){te(),hn(),cr(),mr(),hr=!1,gr=[],br=new(function(){return dr((function e(){lr(this,e),this.positions={top:0,bottom:0,height:0}}
1),[{key:"setViewportTop",value:function(e){return this.positions.top=e?e.scrollTop:window.pageYOffset,this.positions}},{key:"setViewportBottom",value:function(){return this.positions.bottom=this.positions.top+this.positions.height,this.positions}},{key:"setViewportAll",value:function(e){return this.positions.top=e?e.scrollTop:window.pageYOffset,this.positions.height=e?e.clientHeight:document.documentElement.clientHeight,this.positions.bottom=this.positions.top+this.positions.height,this.positions}}])}()),Er=function(){return dr((function e(t,n){var r,i,a,s,o,l,c=this;lr(this,e),this.element=t,this.elementContainer=t,this.settings=n,this.isVisible=!0,this.isInit=!1,this.oldTranslateValue=0,this.init=this.init.bind(this),this.customWrapper=null!==(r=this.settings)&&void 0!==r&&r.customWrapper&&this.element.closest(null===(i=this.settings)||void 0===i?void 0:i.customWrapper)?this.element.closest(null===(a=this.settings)||void 0===a?void 0:a.customWrapper):null,"img"!==(null===(o=(s=t).tagName)||void 0===o?void 0:o.toLowerCase())&&"picture"!==(null===(l=s.tagName)||void 0===l?void 0:l.toLowerCase())||s&&null!=s&&s.complete&&(void 0===s.naturalWidth||0!==s.naturalWidth)?this.init():this.element.addEventListener("load",(function(){setTimeout((function(){c.init(!0)}),20)}))}),[{key:"init",value:function(e){var t=this;this.isInit||(e&&(this.maxRange=null),this.element.closest(".parallax")||(!1===this.settings.overflow&&this.wrapElement(this.element),this.setTransformCSS(),this.getElementOffset(),this.intersectionObserver(),this.getTranslateValue(),this.animate(),this.settings.delay>0?setTimeout((function(){t.setTransitionCSS(),t.elementContainer.classList.add("parallax-initialized")}),10):this.elementContainer.classList.add("parallax-initialized"),this.isInit=!0))}},{key:"wrapElement",value:function(){var e=this.element.closest("picture")||this.element,t=this.customWrapper||document.createElement("div");t.classList.add("parallax"),t.style.overflow="hidden",this.customWrapper||(e.parentNode.insertBefore(t,e),t.appendChild(e)),this.elementContainer=t}},{key:"unWrapElement",value:function(){var e=this.elementContainer;this.customWrapper?(e.classList.remove("parallax"),e.style.overflow=""):e.replaceWith.apply(e,pn(e.childNodes))}},{key:"setTransformCSS",value:function(){!1===this.settings.overflow&&(this.element.style[xr()]="scale(".concat(this.settings.scale,")")),this.element.style.willChange="transform"}},{key:"setTransitionCSS",value:function(){this.element.style.transition="transform ".concat(this.settings.delay,"s ").concat(this.settings.transition)}},{key:"unSetStyle",value:function(){this.element.style.willChange="",this.element.style[xr()]="",this.element.style.transition=""}},{key:"getElementOffset",value:function(){var e=this.elementContainer.getBoundingClientRect();if(this.elementHeight=e.height,this.elementTop=e.top+br.positions.top,this.settings.customContainer){var t=this.settings.customContainer.getBoundingClientRect();this.elementTop=e.top-t.top+br.positions.top}this.elementBottom=this.elementHeight+this.elementTop}},{key:"buildThresholdList",value:function(){for(var e=[],t=1;t<=this.elementHeight;t++){var n=t/this.elementHeight;e.push(n)}return e}},{key:"intersectionObserver",value:function(){var e={root:null,threshold:this.buildThresholdList()};this.observer=new IntersectionObserver(this.intersectionObserverCallback.bind(this),e),this.observer.observe(this.element)}},{key:"intersectionObserverCallback",value:function(e){var t=this;e.forEach((function(e){e.isIntersecting?t.isVisible=!0:t.isVisible=!1}))}},{key:"checkIfVisible",value:function(){return this.elementBottom>br.positions.top&&this.elementTop<br.positions.bottom}},{key:"getMaxRange",value:function(){var e=this.element.clientHeight;this.maxRange=e*(this.settings.scale<1.1?1.3:this.settings.scale)-e}},{key:"getTranslateValue",value:function(){var e=((br.positions.bottom-this.elementTop)/((br.positions.height+this.elementHeight)/100)).toFixed(2);return e=Math.min(100,Math.max(0,e)),this.settings.maxTransition&&e>this.settings.maxTransition&&(e=this.settings.maxTransition),this.settings.minTransition&&e<this.settings.minTransition&&(e=this.settings.minTransition),this.oldPercentage!==e&&(this.maxRange||this.getMaxRange(),this.translateValue=(e/100*this.maxRange-this.maxRange/2).toFixed(0),100===e&&(this.translateValue=0),this.oldTranslateValue!==this.translateValue&&(this.oldPercentage=e,this.oldTranslateValue=this.translateValue,!0))}},{key:"animate",value:function(){var e,t=0,n=0;(this.settings.orientation.includes("left")||this.settings.orientation.includes("right"))&&(n="".concat(this.settings.orientation.includes("left")?-1*this.translateValue:this.translateValue,"px")),(this.settings.orientation.includes("up")||this.settings.orientation.includes("down"))&&(t="".concat(this.settings.orientation.includes("up")?-1*this.translateValue:this.translateValue,"px")),e=!1===this.settings.overflow?"translate3d(".concat(n,", ").concat(t,", 0) scale(").concat(this.settings.scale,")"):"translate3d(".concat(n,", ").concat(t,", 0)"),this.element.style[xr()]=e}}])}(),_r=function(){return dr((function e(t,n){if(lr(this,e),t&&function(){try{return Element.prototype.closest&&"IntersectionObserver"in window}catch(e){return!1}}()){if(this.elements=Lr(t),this.defaults={delay:0,orientation:"up",scale:1.3,overflow:!1,transition:"cubic-bezier(0,0,0,1)",customContainer:"",customWrapper:"",maxTransition:0,minTransition:0},this.settings=Object.assign(this.defaults,n),this.settings.customContainer){var r=Z(Lr(this.settings.customContainer),1);this.customContainer=r[0]}this.lastPosition=-1,this.resizeIsDone=this.resizeIsDone.bind(this),this.refresh=this.refresh.bind(this),this.proceedRequestAnimationFrame=this.proceedRequestAnimationFrame.bind(this),this.init()}}),[{key:"init",value:function(){var e=this;br.setViewportAll(this.customContainer),gr=[].concat(pn(this.elements.map((function(t){return new Er(t,e.settings)}))),pn(gr)),hr||(this.proceedRequestAnimationFrame(),window.addEventListener("resize",this.resizeIsDone),hr=!0)}},{key:"resizeIsDone",value:function(){clearTimeout(wr),wr=setTimeout(this.refresh,200)}},{key:"proceedRequestAnimationFrame",value:function(){var e=this;br.setViewportTop(this.customContainer),this.lastPosition!==br.positions.top?(br.setViewportBottom(),gr.forEach((function(t){e.proceedElement(t)})),yr=window.requestAnimationFrame(this.proceedRequestAnimationFrame),this.lastPosition=br.positions.top):yr=window.requestAnimationFrame(this.proceedRequestAnimationFrame)}},{key:"proceedElement",value:function(e){(this.customContainer?e.checkIfVisible():e.isVisible)&&e.getTranslateValue()&&e.animate()}},{key:"refresh",value:function(){br.setViewportAll(this.customContainer),gr.forEach((function(e){e.getElementOffset(),e.getMaxRange()})),this.lastPosition=-1}},{key:"destroy",value:function(){var e=this,t=[];gr=gr.filter((function(n){return e.elements.includes(n.element)?(t.push(n),!1):n})),t.forEach((function(t){t.unSetStyle(),!1===e.settings.overflow&&t.unWra
1pElement()})),gr.length||(window.cancelAnimationFrame(yr),window.removeEventListener("resize",this.refresh),hr=!1)}}])}()}}),Nr={};function Br(){var e=document.getElementsByClassName("image__placeholder")[0];e&&new _r(e,{scale:1.4,orientation:"down",overflow:!0,maxTransition:0,minTransition:50}),function(e,t){if(e)for(var n=0;n<e.length;n++)new fr(e[n],t)}(document.getElementsByClassName("quote"),{duration:.35,transition:{opacity:!0},occurOnce:!0,fadeIn:!0});var t=document.getElementsByClassName("js_site-header__menu")[0];if(t){var n="site-header__menu--background-color",r=!1;window.scrollY>=Cr&&t.classList.add(n),L.add((function(e){var i=e.scrollY,a=e.lastScrollY;if(i<Cr)return r=!1,t.classList.remove(n),void(a=i);var s=i>a,o=i<=Cr&&i<a;!r&&s?(r=!0,t.classList.add(n),a=i):r&&o&&(r=!1,t.classList.remove(n))}));var i=document.getElementsByClassName("js_search-toggle")[0],a=document.getElementsByClassName("js_menu-toggle")[0],s=document.getElementsByClassName("js_user-toggle")[0],o=null;fe([i,a,s],(function(e){e&&e.addEventListener("click",(function(e){var c,u=e.target;(function(e){return r||e===s||e!==o&&null!==o?!r&&e!==s&&!t.classList.contains(n)&&(t.classList.add(n),!0):(t.classList.toggle(n),!0)})(c=u)?l():function(e){return!r&&[i,a,s].includes(e)}(c)?function(e){return e===s&&o===s}(c)&&t.classList.remove(n):l(),o=u}))}))}function l(){var e,l,c,u,d,f,m,v,p,h,g,y,w=(m=document.getElementsByClassName("mega-menu__content")[0],v=null==m?void 0:m.getElementsByClassName("mega-menu__group")[0],p=null==m?void 0:m.getElementsByClassName("mega-menu__group-header")[0],h=document.getElementsByClassName("search-form")[0],g=document.getElementsByClassName("header-actions")[0],y=document.getElementsByClassName("site-header__menu-inner")[0],[m,v,p,a,y,h,i,s].concat(pn(null!==(e=null==m?void 0:m.children)&&void 0!==e?e:{}),pn(null!==(l=null==v?void 0:v.children)&&void 0!==l?l:{}),pn(null!==(c=null==p?void 0:p.children)&&void 0!==c?c:{}),pn(null!==(u=null==h?void 0:h.children)&&void 0!==u?u:{}),pn(null!==(d=null==g?void 0:g.children)&&void 0!==d?d:{}),pn(null!==(f=null==y?void 0:y.children)&&void 0!==f?f:{})));window.document.addEventListener("click",(function(e){if(!r&&!w.includes(e.target)&&t.classList.contains(n)){t.classList.remove(n),o=null;var i=document.getElementsByClassName("js_user-menu")[0];null!=i&&i.classList.contains("hidden")||i.classList.add("hidden")}}))}}l(Nr,{default:()=>Br});var Tr,Sr,Ar,Or,Ir=s({"assets/scripts/plugins/storytelling.js"(){hn(),kr(),ve(),jr(),V(),Cr=48}}),Pr={};function Dr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!0===(null===(t=window.Di)||void 0===t||null===(t=t.userInfo)||void 0===t?void 0:t.hasSubscription)){var t,n=e.getElementById("article");if(n){var r=n.getElementsByClassName("video-player__wrapper")[0];if(r){var i=new window.IntersectionObserver((function(t){t.forEach((function(t){var i,a,s=t.boundingClientRect.top<0,o=t.target.getElementsByClassName("video")[0],l=r.getElementsByClassName("video-js")[0];if(l){var c=null==l||null===(i=l.classList)||void 0===i?void 0:i.contains(Sr),u=null==l||null===(a=l.classList)||void 0===a?void 0:a.contains(Ar);if(!s||o.classList.contains("sticky-video")){var d,f,m,v;t.boundingClientRect.bottom>=0&&o.classList.contains("sticky-video")&&(!Tr||Date.now()-Tr>150)&&Mr(o)}else{var p=function(e){for(var t=e.getElementsByClassName("video"),n=0,r=t.length;n<r;n++)if(t[n].classList.contains("sticky-video"))return t[n];return!1}(e);if(c||u){Tr=Date.now(),function(e){var t=e.getElementsByClassName("slideshow__items")[0];t&&(t.style.transform=null)}(n),o.classList.add("sticky-video"),o.getElementsByClassName("video__caption")[0]?Hr(o,!0):window.setTimeout((function(){Hr(o,!0)}),100);var h=o.getElementsByClassName("sticky-video__close-button")[0];if(h){h.addEventListener("click",(function(e){return function(e,t){var n=e.target.parentNode,r=n.classList.contains("video")?n:n.parentNode;Mr(r,t);var i=Fr(r),a=Or[i];if(!a)return;a.unobserve(r.parentNode)}(e,l)}));h.setAttribute("tabindex",1)}p&&(f=o,m=(d=p).getElementsByClassName("video__player")[0].getAttribute("data-media-id"),v=f.getElementsByClassName("video__player")[0].getAttribute("data-media-id"),m!==v&&(d.classList.remove("sticky-video"),Hr
1(d,!1)))}}}}))}),{threshold:.5});i.observe(r);var a=Fr(r);Or[a]=i}}}}function Mr(e,t){var n;e.classList.add("sticky-video--slide-up"),t&&(null===(n=window.playerManager)||void 0===n||null===(n=n.getPlayer(0))||void 0===n||n.video.pause()),window.setTimeout((function(){Hr(e,!1),e.classList.remove("sticky-video","sticky-video--slide-up")}),400)}function Rr(e,t){e&&(t?e.classList.add("hidden"):e.classList.remove("hidden"))}function Hr(e,t){Rr(e.getElementsByClassName("video__caption")[0],!!t),Rr(e.getElementsByClassName("sticky-video__description")[0],!t),Rr(e.getElementsByClassName("sticky-video__close-button")[0],!t)}function Fr(e){if(e){var t=e.getElementsByTagName("noscript")[0];if(t){var n=t.innerHTML.match(/(data-media-id="(\w|-)*")/);return null==n?void 0:n[0].replaceAll('data-media-id="',"").replaceAll('"',"")}return e.getElementsByClassName("video__player")[0]&&e.getElementsByClassName("video__player")[0].getAttribute("data-media-id")}}l(Pr,{default:()=>Dr});var Vr,qr,Wr,Ur,zr=s({"assets/scripts/plugins/stickyVideo.js"(){Tr=null,Sr="vjs-playing",Ar="vjs-ad-playing",Or=[]}});function Yr(e){var t=e.parentNode;t.classList.contains(Vr)&&function(e,t){e.scrollWidth>e.clientWidth&&i(qr);var n=w(r,50);function r(){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;i(0===t?qr:n===t+r?Ur:Wr)}function i(e){t.classList.contains(e)||(t.classList.remove(qr,Ur,Wr),t.classList.add(e))}e.addEventListener("scroll",n)}(e,t)}var Xr=s({"assets/scripts/plugins/market/instrumentTableScroll.js"(){A(),Vr="instrument-table-scroll",qr="instrument-table-scroll--start",Wr="instrument-table-scroll--middle",Ur="instrument-table-scroll--end"}});function Gr(e){if(e){var t=e.getElementsByClassName("js_instrument-table__fixed-part")[0],n=e.getElementsByClassName("js_instrument-table-scroll__scrollable-part")[0];t&&n&&function(e,t){for(var n=e.getElementsByClassName("static-table__row"),r=t.getElementsByClassName("static-table__row"),i=function(){var e=n[a],t=r[a];e.addEventListener("mouseover",(function(){e.classList.add("static-table__row--hover"),t.classList.add("static-table__row--hover")})),e.addEventListener("mouseleave",(function(){e.classList.remove("static-table__row--hover"),t.classList.remove("static-table__row--hover")})),t.addEventListener("mouseover",(function(){e.classList.add("static-table__row--hover"),t.classList.add("static-table__row--hover")})),t.addEventListener("mouseleave",(function(){e.classList.remove("static-table__row--hover"),t.classList.remove("static-table__row--hover")}))},a=0;a<n.length;a++)i()}(t,n)}}var Qr=s({"assets/scripts/plugins/market/instrumentTableStatic.js"(){}});function $r(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=new URLSearchParams(window.location.search);if(Object.entries(e).forEach((function(e){var t=Z(e,2),r=t[0],i=t[1];n.set(r,i)})),t)window.location.search=n.toString();else{var r="".concat(window.location.pathname,"?").concat(n.toString());window.history.pushState({path:r},"",r)}}var Jr=s({"assets/scripts/helpers/updateQueryParams.js"(){te()}});function Zr(e){var t=e.getElementsByClassName("js_tab-menu__tab"),n=e.getElementsByClassName("js_tab-menu__tab-target"),r=e.getElementsByClassName("js_tab-menu__sub-menu")[0],i=e.dataset.toggleClass,a="true"===e.dataset.showTabMenuStateInAddressBar;function s(){r&&(o(r.options[r.selectedIndex].value),r.classList.remove("hidden"))}function o(e){fe(n,(function(e,t){e.dataset.tab===t?e.classList.remove("hidden"):e.classList.add("hidden")}),e)}fe(t,(function(e){e.addEventListener("click",(function(e){var n=e.target;!function(e){var n=function(e,t){e.classList.remove(t)};fe(t,n,i),e.classList.add(i);var r=function(e){for(var t=0,n=document.getElementsByClassName(e)[0];n&&(n=n.previousSibling);)t++;return t}("instrument-table-tab-menu__tab--active");a&&$r({tab:r},!1)}(n),o(n.dataset.target),"sub_menu"===n.dataset.target&&s()}))})),function(){if(!r)return;r.addEventListener("change",s)}()}var Kr=s({"assets/scripts/plugins/market/tabMenu.js"(){ve(),Jr()}});function ei(e){var t=e.replace(/[ ]/g,"");return t=(t=t.replace(/[,]/g,".")).replace(/[%]/g,""),(t=parseFloat(t))||0}function ti(e){return e.toLowerCase()}
1var ni,ri,ii,ai,si,oi,li=s({"assets/scripts/helpers/deformat.js"(){}});function ci(e){return e?[].concat.apply([e],[].slice.call(e.parentElement.getElementsByClassName(ri)).filter((function(t){return t.dataset.tab===e.dataset.tab}))):[]}function ui(e){return null!=e&&e.length?[].concat.apply([],e.map((function(e){return[].slice.call(e.getElementsByClassName(ii))}))):[]}function di(e){return null!=e&&e.length?[].concat.apply([],e.map((function(e){var t=null==e?void 0:e.getElementsByTagName("tr");return t?[].slice.call(t):[]}))).filter((function(e){return!e.classList.contains(oi)&&!e.classList.contains(si)})):[]}function fi(e){null!=e&&e.length&&e.forEach((function(e,t){0===t?mi(e):window.setTimeout((function(){mi(e)}),0)}))}function mi(e){if(e){var t=[].concat.apply([],e.getElementsByClassName(ii)).filter((function(e){return"true"===e.dataset.markChange})),n=[].concat.apply([],e.getElementsByTagName("tr")).filter((function(e){return!e.classList.contains(oi)&&!e.classList.contains(si)}));null!=n&&n.length&&null!=t&&t.length&&n.forEach((function(e){var n=[].concat.apply([],e.getElementsByTagName("td"));t.forEach((function(e){var t=n[e.dataset.index];if(t){var r="-"===t.innerHTML?t.innerHTML:t.innerHTML.replace(/\+|-|%/g,"");""!==r&&"-"!==r&&"0,00"!==r&&"0"!==r&&t.classList.add("i-t__c--".concat(t.innerText.indexOf("-")>=0?"n":"p"))}}))}))}}function vi(e,t,n){Array.isArray(e)&&Array.isArray(t)&&n&&e.forEach((function(r){r.addEventListener("click",(function(){if(r.classList.contains(ai)||r.classList.contains(ni))r.classList.toggle(ai),r.classList.toggle(ni),t.reverse();else{e.forEach((function(e){e.classList.remove(ai,ni)}));var i="text"!==r.dataset.format;r.classList.add(i?ai:ni),function(e,t,n){if(null==e||!e.length)return;e.sort((function(e,r){var i=e[t]<r[t];return n===i?1:-1}))}(t,parseInt(r.dataset.index)+1,i)}n()}))}))}function pi(e){null==e||e.forEach((function(e){e.addEventListener("click",(function(){var t=e.dataset.field;$r({field:t,desc:e.classList.contains(ni)||e.classList.contains(ai)?e.classList.contains(ni):"name"!==t})}))}))}function hi(e,t){null!=e&&e.length&&e.forEach((function(e,n){var r=e.getElementsByTagName("TD")[0];(t?t[n]:e).addEventListener("click",(function(e){var t,n,i=null!==(t=null==r||null===(n=r.firstChild)||void 0===n?void 0:n.href)&&void 0!==t?t:null;i&&(e.metaKey?window.open(i,"_blank"):window.location=i,e.preventDefault())}))}))}function gi(e){if(null!=e&&e.length){var t={};return e.forEach((function(e,n){switch(e.dataset.format){case"integer":case"decimal":case"percentage":t[n]=ei;break;default:t[n]=ti}})),t}}function yi(e,t,n){return null!=e&&e.length?t>n||t>=e.length?e[e.length-1].getElementsByTagName("tbody")[0]:e[t].getElementsByTagName("tbody")[0]:[]}var wi=s({"assets/scripts/plugins/market/instrumentTableGeneral.js"(){li(),Jr(),ni="instrument-table__column--ascending",ri="js_instrument-table--child",ii="js_instrument-table__column",ai="instrument-table__column--descending",si="instrument-table__summary-row",oi="instrument-table__header"}}),bi={};function Ei(e){var t=e,n="true"===t.dataset.sortable,r="true"===t.dataset.backendSorted,i={},a={},s=[],o=ci(t),l=ui(o),c=o.map((function(e){return e.getElementsByClassName("js_instrument-table__fixed-part")[0]})),u=o.map((function(e){return e.getElementsByClassName("js_instrument-table-scroll__scrollable-part")[0]})),d=di(c),f=di(u);function m(){var e=t.dataset.adCount,n=t.dataset.maxDataRowsBetween,r=0,o=yi(c,r,e),l=yi(u,r,e);s.forEach((function(t,s){Math.floor(s/n)>r&&(r++,o=yi(c,r,e),l=yi(u,r,e)),o.appendChild(i[t[0]]),l.appendChild(a[t[0]])}))}fi(u),window.addEventListener("load",(function(){var e;hi(d,f),r?pi(l):n&&(vi(l,s,m),e=gi(l),d.forEach((function(t,n){var r=f[n],o=[].concat([].slice.call(t.getElementsByTagName("TD")),[].slice.call(r.getElementsByTagName("TD"))),l=t.id,c=[l];o.forEach((function(t,n){var r,i=(null===(r=t.firstChild)||void 0===r?void 0:r.innerHTML)||t.innerHTML;c.push(e[n]?e[n](i):i)})),s.push(c),i[l]=t,a[l]=r})))}))}l(bi,{default:()=>Ei});s({"assets/scripts/plugins/market/instrumentTableMobile.js"(){wi()}});var _i={};function ki(e){var t=e,n="true"===t.dataset.sortable,r="true"===t.dataset.backendSorted,i={},a=[],s=ci(t),o=ui(s),l=di(s);function c(){var e=t.dataset.adCount,n=t.dataset.maxDataRowsBetween,r=0,o=yi(s,r,e);a.forEach((function(t,a){Math.floor(a/n)>r&&(r++,o=yi(s,r,e)),o.appendChild(i[t[0]])}))}fi(s),window.addEventListener("load",(function(){var e;hi(l),r?pi(o):n&&(vi(o,a,c),e=gi(o),l.forEach((function(t){var n=[].slice.call(t.getElementsByTagName("TD")),r=[t.id];
1n.forEach((function(t,n){var i,a=(null===(i=t.firstChild)||void 0===i?void 0:i.innerHTML)||t.innerHTML;r.push(e[n]?e[n](a):a)})),a.push(r),i[t.id]=t})))}))}l(_i,{default:()=>ki});var Li=s({"assets/scripts/plugins/market/instrumentTableDesktop.js"(){wi()}}),xi={};function Ci(){var e=document.getElementById("realtime-modal");if(e){e.remove(),document.getElementsByTagName("body")[0].appendChild(e);var t=Ne(e);[].slice.call(document.getElementsByClassName("trigger-realtime-modal")).forEach((function(e){return e.addEventListener("click",n)}))}function n(e){e.preventDefault(),t.open()}}l(xi,{default:()=>Ci});var ji=s({"assets/scripts/plugins/market/realtimeModal.js"(){Be()}});function Ni(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(Ti(e))return"-";var r=parseFloat(e).toFixed(n),i="".concat(r).replace(/[.]/,",").replace(/\B(?=(\d{3})+(?!\d))/g," ");return t&&r>0?"+".concat(i):i}function Bi(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ti(e)?"-":"".concat(Ni(e,t),"%")}function Ti(e){return!e&&0!==e||isNaN(e)}var Si,Ai=s({"assets/scripts/helpers/marketDataFormatter.js"(){}});function Oi(e){return e<10?"0".concat(e):"".concat(e)}var Ii,Pi,Di,Mi,Ri,Hi,Fi,Vi,qi,Wi,Ui=s({"assets/scripts/helpers/dateTimeFormatter.js"(){({"1w":7*(Si=864e5),"1m":30*Si,"3m":91*Si,"1y":365*Si,"3y":1096*Si,"10y":3653*Si})}});function zi(e){if(null!=e&&e.insref){var t=document.getElementById("ins_".concat(e.insref));if(t){var n="/bors/vinnare-forlorare/"===window.location.pathname?Wi:qi,r=Object.keys(e).filter((function(e){return void 0!==(null==n?void 0:n[e])})),i=t.getElementsByTagName("td");r.forEach((function(t){var r,a,s,o=n[t],l=i[o];if(l){var c=e[t];
1switch(t){case Ii:!function(e,t){var n=ei(e.innerText),r=t>n?"positive":"negative";e.classList.add("i-t__c-update","i-t__c-update--".concat(r)),window.setTimeout((function(){e.classList.remove("i-t__c-update","i-t__c-update--".concat(r))}),500)}(l,c),l.innerHTML="<span>".concat(Ni(c),"</span>");break;case Pi:l.innerText=Ni(c,!0),Yi(l,c);break;case Di:l.innerText=Bi(c),Yi(l,c);break;case Mi:case Ri:l.innerText=Ni(c);break;case Hi:l.innerText=Ti(a=c)?"-":(s?parseInt(parseInt(a)/s):parseInt(a)).toString().replace(/\B(?=(\d{3})+(?!\d))/g," ");break;case Vi:l.innerText=e.swedishTime?e.swedishTime.substring(0,5):"".concat(Oi((r=new Date).getHours()),":").concat(Oi(r.getMinutes()));break;default:l.innerText=c}}}))}}}function Yi(e,t){e.classList.remove("i-t__c--p","i-t__c--n"),e.classList.add(t>=0?"i-t__c--p":"i-t__c--n")}var Xi,Gi,Qi,$i,Ji,Zi,Ki,ea,ta=s({"assets/scripts/plugins/market/instrumentTableRealtimeTransform.js"(){qe(),Ai(),li(),Ui(),Pi="diff1d",Di="diff1dprc",Mi="dayhighprice",Ri="daylowprice",Hi="quantity",Fi="marketCap",Vi="swedishTime",qi=Ve(Ve(Ve(Ve(Ve(Ve(Ve(Ve({},Ii="lastprice",1),Pi,2),Di,3),Mi,4),Ri,5),Hi,6),Fi,7),Vi,8),Wi=Ve(Ve(Ve({},Di,1),Ii,2),Vi,3)}}),na=s({"assets/scripts/plugins/market/realtimeSocket.js"(){cr(),mr(),ve(),window.Di=window.Di||{},Xi=function(){return dr((function e(t,n){lr(this,e),this.url=t,this.namespace=n,this.interval=!1,this.retries=0}),[{key:"stopRealTime",value:function(){this.socket.close(1e3,"deliberate close")}},{key:"startRealTime",value:function(e){var t=this;this.socket=new WebSocket(this.url),this.socket.onopen=function(){t.socket.send("40/".concat(t.namespace)),t.ping(),t.retries=0},this.socket.onmessage=function(t){var n=t.data.indexOf('["');if(n>-1){var r=JSON.parse(t.data.slice(n));"stock-update"===r[0]&&e(r[1])}},this.socket.onclose=function(n){t.interval&&clearInterval(t.interval),1e3===n.code||n.reason||setTimeout((function(){(t.retries++,t.retries<31)?t.startRealTime(e):(fe(document.getElementsByClassName("js_toggle-realtime"),(function(e){e.checked=!1})),window.Di.hasLocalStorage&&window.localStorage.setItem("realtimeEnabled","false"))}),1e3*t.retries||1e3)}}},{key:"ping",value:function(){var e=this;this.interval=setInterval((function(){e.socket.send("2")}),3e4)}}])}()}});function ra(e){if(e.insref===$i){var t=document.getElementsByClassName("js_instrument-details")[0],n=t.getElementsByClassName("js_instrument-details__price")[0],r=t.getElementsByClassName("js_instrument-details__diff")[0],i=t.getElementsByClassName("js_instrument-details__diffprc")[0],a=t.getElementsByClassName("js_instrument-details__time")[0];if(n&&r&&i&&a)return Object.keys(e).filter((function(e){return void 0!==ea[e]})).forEach((function(t){var s,o=e[t];switch(t){case Ji:!function(e,t,n,r){if(n===r)return;var i="".concat(t,"--").concat(r>parseFloat(n.replace(",","."))?"positive":"negative");e.classList.add(i),window.setTimeout((function(){return e.classList.remove(i)}),200)}(n,"instrument-details__realtime-lastprice",n.innerText,o),n.innerText=Ti(s=o)?"-":s<1e3?Ni(s):Ni(s,!1,s<1e4?1:0),ia(a,e.swedis
1hTime);break;case Zi:r.innerText=Ni(o,!0),ia(a,e.swedishTime);break;case Ki:i.innerText=Bi(o),ia(a,e.swedishTime)}})),e}}function ia(e,t){t&&(e.innerText="".concat(t.substring(0,t.lastIndexOf(":"))))}var aa,sa=s({"assets/scripts/plugins/market/stockPageRealtimeTransform.js"(){qe(),Ai(),Gi=window.location.href.split("/"),Qi=Gi[Gi.length-2],$i=parseInt(Qi.substring(Qi.lastIndexOf("-")+1)),Zi="diff1d",Ki="diff1dprc",ea=Ve(Ve(Ve({},Ji="lastprice",1),Zi,2),Ki,3)}}),oa={};function la(){return ca.apply(this,arguments)}function ca(){return ca=d(aa.default.mark((function e(){var t,n,r,i,a,s;return aa.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=function(){return(s=d(aa.default.mark((function e(n){var a,s,o,l,c;return aa.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.target.checked){e.next=18;break}return e.next=3,window.fetch("/realtime-jwt/");case 3:if(200===(a=e.sent).status){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,a.text();case 8:s=e.sent,o="".concat(window.Di.config.realtimeSocketUrl,"?jwt=").concat(s,"&from=web&EIO=3&transport=websocket"),l=window.location.pathname,"aktier"!==(c="stock-page"===t[0].dataset.target?"all":l.slice(6,-1))&&"vinnare-forlorare"!==c||(c="all"),(i=new Xi(o,c)).startRealTime(r),window.Di.hasLocalStorage&&window.localStorage.setItem("realtimeEnabled","true"),e.next=21;break;case 18:i&&i.stopRealTime(),window.Di.hasLocalStorage&&window.localStorage.setItem("realtimeEnabled","false"),fe(t,(function(e){e.disabled=!1,e.checked=!1}));case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)},a=function(e){return s.apply(this,arguments)},n=function(e,t){return fe(e,(function(e){return e.checked=t})),a({target:{checked:t}})},null!=(t=document.getElementsByClassName("js_toggle-realtime"))&&t.length){e.next=6;break}return e.abrupt("return");case 6:if(fe(t,(function(e){"instrument-table"===e.dataset.target&&(r=zi),"stock-page"===e.dataset.target&&(r=ra),r&&e.addEventListener("click",(function(r){var i=r.target.checked;return e.checked=i,n(t,i)}))})),r){e.next=9;break}return e.abrupt("return");case 9:if(i=null,!JSON.parse(window.Di.hasLocalStorage&&window.localStorage.getItem("realtimeEnabled"))){e.next=14;break}return e.next=14,n(t,!0);case 14:case"end":return e.stop()}}),e)}))),ca.apply(this,arguments)}l(oa,{default:()=>la});var ua,da=s({"assets/scripts/plugins/market/initRealtimeToggle.js"(){m(),aa=c(h(),1),ve(),ta(),na(),sa()}}),fa={};function ma(){return va.apply(this,arguments)}function va(){return(va=d(ua.default.mark((function e(){var t,n,r;return ua.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=document.getElementsByClassName("js_instrument-table"),n=function(e){return Promise.resolve().then((()=>(Li(),_i))).then((function(t){return t.default(e)}))},e.next=4,Promise.all(pn(t).map((function(e){return n(e)})));case 4:if(fe(document.getElementsByClassName("js_instrument-table-scroll"),Yr),fe(document.getElementsByClassName("js_static-table__wrapper"),Gr),!(r=document.getElementsByClassName("js_tab-menu"))){e.next=13;break}return e.next=12,Promise.all([Promise.resolve().then((()=>(ji(),xi))).then((function(e){return e.default()})),Promise.resolve().then((()=>(da(),oa))).then((function(e){return e.default()}))]);case 12:fe(r,Zr);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}l(fa,{default:()=>ma});var pa=s({"assets/scripts/plugins/instrumentTable.js"(){hn(),m(),ua=c(h(),1),ve(),Xr(),Qr(),Kr()}}),ha={};function ga(){var e=document.getElementsByClassName("js_search-article-hits")[0];if(e){var t=e.getElementsByClassName("js_show-more")[0],n=e.getElementsByClassName("intersection-target")[0];if(t&&n){t.addEventListener("click",(function(){return i(!0)}));var r=2}}function i(e){var a=window.sessionStorage.getItem("searchQuery")||null,s=window.sessionStorage.getItem("searchSort")||null;if(a&&s){var o=document.getElementsByClassName("news-item"),l=o.length?o[o.length-1].dataset.day:"";window.fetch("/search/show-more-articles/?query=".concat(a,"&page=").concat(r,"&sort=").concat(s,"&lastday=").concat(l)).then((function(e){return e.text()})).then((function(a){r+=1,n.insertAdjacentHTML("beforebegin",a),t.remove(),e&&function(e,t){e&&t&&new window.IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&t()}))}),{rootMargin:"400px 0px"}).observe(e)}(n,i)})).catch((function(){}))}}}l(ha,{default:()=>ga});var ya,wa=s({"assets/scripts/plugins/searchShowMoreArticles.js"(
1){Nn()}}),ba={};function Ea(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function _a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ka(){var e=document.getElementsByClassName("search__top-form")[0],t=null==e?void 0:e.getElementsByClassName("search-form")[0],n=null==t?void 0:t.getElementsByClassName("js_search-form__button")[0],r=null==t?void 0:t.getElementsByClassName("js_search-form-input")[0],i=0;if(n&&r){var a,s=document.getElementsByClassName("js_search-string")[0],o=Ea(document.getElementsByClassName("js_search-result-link"));try{for(o.s();!(a=o.n()).done;){a.value.addEventListener("click",(function(e){ze({event:"search result link click",searchQuery:null==s?void 0:s.innerHTML,componentName:"main search",previewLinkEl:e.target,type:"link click"})}))}}catch(e){o.e(e)}finally{o.f()}var l=document.getElementsByClassName("news-list__wrapper")[0];l&&l.addEventListener("click",(function(e){var t,n;if(e.target.closest("a")){var r=e.target.closest(".js_news-item");r&&window.dataLayer.push({event:"search result link click",eventParams:{category:"search",searchQuery:null==s?void 0:s.innerHTML},filter:void 0,engagement:{type:"link click",component:{position:void 0,name:"main search",index:"1",range:void 0,id:void 0,type:void 0,element:void 0},destination:{url:null===(t=r.querySelector("a"))||void 0===t?void 0:t.href,title:null===(n=r.querySelector("h2"))||void 0===n?void 0:n.innerHTML,type:"internal",id:void 0}}})}})),r.addEventListener("keyup",Ae(u,300)),r.addEventListener("blur",(function(){0!==i&&(i=0)})),t.addEventListener("input",c),n.addEventListener("click",(function(e){e.preventDefault(),c()&&(ze(ya("search submit","submit",r.value)),window.location.href=new URL("/search/?query=".concat(encodeURIComponent(r.value)),window.location.origin))}))}function c(){return!!(Ie(r.value)&&r.value.length>=1)}function u(){r.value&&0===i&&(ze(ya("search field interaction","interaction")),i++)}}l(ba,{default:()=>ka});var La=s({"assets/scripts/plugins/search.js"(){Oe(),Pe(),dt(),ya=function(e,t,n){return{event:e,searchQuery:n,componentName:"main search",type:t}}}}),xa={};function Ca(){var e;if("true"!==(null===(e=window.sessionStorage)||void 0===e?void 0:e.getItem("loginPopupShown"))){var t=document.getElementsByClassName("js_login-popup")[0];if(t){t.classList.remove("hidden"),Te((function(){var e=window.Didomi;window.sessionStorage&&null!=e&&e.getUserConsentStatusForVendor("c:bonniernews")&&window.sessionStorage.setItem("loginPopupShown","true")})),window.setTimeout((function(){t.classList.add("hidden")}),5e3);var n=t.getElementsByClassName("login-popup__close")[0];if(n){n.addEventListener("click",(function(){t.classList.add("hidden")}))}}}}l(xa,{default:()=>Ca});var ja=s({"assets/scripts/plugins/loginPopup.js"(){Se()}}),Na={};function Ba(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(null===(e=window.Di)||void 0===e||!e.hasAccessToken){var n,r=[];if(!n){var i=t.getElementsByClassName("modal--subscribe")[0];n=Ne(i)}for(var a=t.getElementsByClassName("trigger-subscribe-modal"),s=0,o=a.length;s<o;s++){var l=a[s];if(r.includes(l))return;l.addEventListener("click",c),r.push(l)}}function c(e){e.preventDefault(),n.open()}}l(Na,{default:()=>Ba});var Ta,Sa,Aa,Oa,Ia=s({"assets/scripts/plugins/subscribeModal.js"(){Be()}}),Pa={};function Da(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
1if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ma(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ma(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ra(){var e=document.getElementsByClassName("live-box")[0];if(e){var t=e.getElementsByClassName("live-box__index-button");if(t){window.setInterval(d(Ta.default.mark((function t(){var n,r,i,a,s;return Ta.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.getElementsByClassName("live-box__column")[0]){t.next=3;break}return t.abrupt("return");case 3:if(r=n.getElementsByTagName("time")[0]){t.next=6;break}return t.abrupt("return");case 6:if(i=r.getAttribute("data-published-in-millis")){t.next=9;break}return t.abrupt("return");case 9:return t.prev=9,t.next=12,window.fetch("/live-box-update/".concat(i,"/"));case 12:if((a=t.sent).ok){t.next=15;break}return t.abrupt("return");case 15:return t.next=17,null==a?void 0:a.json();case 17:if(s=t.sent){t.next=20;break}return t.abrupt("return");case 20:s.reverse().forEach((function(e){var t=document.createElement("article");t.innerHTML=e,n.insertBefore(t,n.firstChild),n.removeChild(n.lastElementChild)})),t.next=25;break;case 23:t.prev=23,t.t0=t.catch(9);case 25:case"end":return t.stop()}}),t,null,[[9,23]])}))),6e4);var n,r=Da(t);try{var i=function(){var r=n.value;r.addEventListener("click",d(Ta.default.mark((function n(){var i,a,s;return Ta.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r.classList.contains(Sa)){n.next=2;break}return n.abrupt("return");case 2:i=Da(t);try{for(i.s();!(a=i.n()).done;)(s=a.value)!==r&&s.classList.remove(Sa)}catch(e){i.e(e)}finally{i.f()}if(!r.dataset.insref){n.next=8;break}return n.next=8,Ha(r.dataset,e,r);case 8:case"end":return n.stop()}}),n)}))))};for(r.s();!(n=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}}}}function Ha(e,t,n){return Fa.apply(this,arguments)}function Fa(){return(Fa=d(Ta.default.mark((function e(t,n,r){var i,a,s,o,l,c,u,d,f,m,v,p,h,g,y;return Ta.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.insref,a=t.diff1dprc,s=t.diffytdprc,e.prev=1,e.next=4,window.fetch("/static-graph/".concat(i,"/"));case 4:if((c=e.sent).ok){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,null==c?void 0:c.text();case 9:if(u=e.sent){e.next=12;break}return e.abrupt("return");case 12:if(d=n.getElementsByClassName("js_live-box__index-graph")[0],f=n.getElementsByClassName("live-box__index")[0],(m=null==f?void 0:f.getElementsByClassName("live-box__index-diff")[0])&&d){e.next=17;break}return e.abrupt("return");case 17:m.classList.remove(Oa,Aa),r.classList.add(Sa),v=Bi(null!=a?a:0),p=Bi(s),(h=null===(o={"+":Oa,"-":Aa})||void 0===o?void 0:o[null==v?void 0:v[0]])&&m.classList.add(h),g=f.getElementsByClassName("live-box__index-daily")[0],y=f.getElementsByClassName("live-box__index-yearly")[0],g.innerHTML=v,y.innerHTML="".concat(p," i år"),d.innerHTML=null!==(l=null==u?void 0:u.replace(/<svg/g,"<svg viewBox='0 0 287 161'"))&&void 0!==l?l:"",e.next=32;break;case 30:e.prev=30,e.t0=e.catch(1);case 32:case"end":return e.stop()}}),e,null,[[1,30]])})))).apply(this,arguments)}l(Pa,{default:()=>Ra});var Va=s({"assets/scripts/plugins/liveBox.js"(){m(),Ta=c(h(),1),Ai(),Sa="live-box__index-button--active",Aa="live-box__index-diff--negative",Oa="live-box__index-diff--positive"}});function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"market-navigation-scroll-wrapper";if(e){var n=e.parentNode;n.classList.contains(t)&&function(e,t,n){var r="".concat(n,"--start"),i="".concat(n,"--middle"),a="".concat(n,"--end");e.scrollWidth>e.clientWidth&&l(r);var s=w(o,50);function o(){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;l(0===t?r:n===t+s?a:i)}function l(e){t.classList.contains(e)||(t.classList.remove(r,a,i),t.classList.add(e))}e.addEventListener("scroll",s)}(e,n,t)}}
1var Wa,Ua=s({"assets/scripts/plugins/scrollEffects.js"(){A()}}),za={};function Ya(){var e=document.getElementsByClassName("js_graphic-banner")[0];if(e){qa(e,"graphic-banner__wrapper");var t=e.getElementsByClassName("graphic-banner__inst");if(null!=t&&t.length){var n=e.getElementsByClassName("js_graphic-banner__btn-left")[0];null==n||n.addEventListener("click",(function(){return Xa(e,!0)}));var r=e.getElementsByClassName("js_graphic-banner__btn-right")[0];null==r||r.addEventListener("click",(function(){return Xa(e)}))}}}function Xa(e,t){Wa=t?Wa-1e3:Wa+1e3,e.scrollTo({left:Wa,behavior:"smooth"})}l(za,{default:()=>Ya});var Ga=s({"assets/scripts/plugins/graphicBanner.js"(){Ua(),Wa=0}});var Qa=s({"assets/scripts/helpers/setNewCookie.js"(){Ui()}}),$a={};function Ja(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Za(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Za(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Za(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ka(){var e=document.getElementsByClassName("js_plus-pro-promo-box")[0];if(e){var t=new window.IntersectionObserver((function(e){e.forEach((function(e){var n=e.target;e.isIntersecting&&(Wt({event:"graphics impression",eventParams:{category:"graphics"},engagement:{type:"impression",component:{position:"left column",name:"pluspro onboarding teaser",index:void 0,range:void 0,id:"32403fff-f51f-4dd6-b74c-41d34161f9fb",type:"teaser",element:void 0}}}),t.unobserve(n))}))}),{threshold:.3});t.observe(e);var n=e.getElementsByClassName("js_plus-pro-promo-box__close-button")[0];n&&n.addEventListener("click",(function(){Te((function(){var e=window.Didomi;null!=e&&e.getUserConsentStatusForVendor("c:bonniernews")&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=new Date(Date.now()+n*Si).toUTCString();document.cookie="".concat(e,"=").concat(t,"; Expires=").concat(r,"; Domain=.di.se; path=/")}("hidePromoBox","true",28)})),Wt({event:"graphics interaction click",eventParams:{category:"graphics"},engagement:{type:"close",component:{position:"left column",name:"pluspro onboarding teaser",index:void 0,range:"5",id:"32403fff-f51f-4dd6-b74c-41d34161f9fb",type:"teaser",element:void 0}}}),e.classList.add("plus-pro-promo-box--hidden")}));var r=e.getElementsByTagName("a");if(r.length){var i,a=Ja(r);try{for(a.s();!(i=a.n()).done;){i.value.addEventListener("click",s)}}catch(e){a.e(e)}finally{a.f()}}}function s(e){Wt({event:"link click",eventParams:{category:"pluspro onboarding"},engagement:{type:"link click",component:{position:"left column",name:"pluspro onboarding teaser",index:void 0,range:void 0,id:void 0,type:"teaser",element:{name:"Ligg steget före i din bransch och spara värdefull tid - kom igång med ditt Di +Pro!",index:"4",range:"5",id:void 0}},destination:{title:"Di +Pro onboarding",url:e.currentTarget.href,type:"internal"}}})}}l($a,{default:()=>Ka});var es=s({"assets/scripts/plugins/plusProPromoBox.js"(){Ut(),Qa(),Se()}}),ts={};function ns(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return rs(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rs(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}
1}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function rs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function is(){var e=document.getElementsByClassName("js_ask-plus-pro-box")[0];if(e){var t=e.classList.contains("js_ask-plus-pro-box__article-footer"),n=t?"article bottom":"left column",r=new window.IntersectionObserver((function(e){e.forEach((function(e){var t=e.target;e.isIntersecting&&(Wt({event:"graphics impression",eventParams:{category:"graphics"},engagement:{type:"impression",component:{position:n,name:"fråga pluspro teaser",index:void 0,range:void 0,id:"32403fff-f51f-4dd6-b74c-41d34161f9fb",type:"teaser",element:void 0}}}),r.unobserve(t))}))}),{threshold:.3});r.observe(e);var i=e.getElementsByClassName("js_trigger-question");if(i.length){var a,s=ns(i);try{for(s.s();!(a=s.n()).done;){a.value.addEventListener("click",m)}}catch(e){s.e(e)}finally{s.f()}}var o=e.getElementsByClassName("js_ask-plus-pro-box__top-link")[0];o&&o.addEventListener("click",(function(e){return p("Fråga Di +Pro",e.target.closest("a").href)}));var l=e.getElementsByClassName("js_ask-plus-pro-box__send-button")[0];if(l){l.addEventListener("click",v);var c=e.getElementsByClassName("js_ask-plus-pro-box__input")[0];c&&(l.disabled=!c.value.trim(),c.addEventListener("input",(function(){l.disabled=!c.value.trim()})),c.addEventListener("keyup",(function(e){"Enter"===e.key&&c.value.trim()&&(l.focus(),v())})))}var u=e.getElementsByClassName("js_ask-plus-pro-box__next-button")[0],d=e.getElementsByClassName("js_ask-plus-pro-box__previous-button")[0];u&&d&&(u.addEventListener("click",(function(){return h("next")})),d.addEventListener("click",(function(){return h("previous")})));var f=0}function m(e){p("trigger question",e.target.href)}function v(){var n=function(e,n){var r="".concat(window.location.origin,"/di-plus-pro/fraga-plus-pro/?question=").concat(encodeURIComponent(e),"&questionType=").concat(encodeURIComponent(n));return t?"".concat(r,"&path=").concat(encodeURIComponent("/di".concat(window.location.pathname))):r}(e.getElementsByClassName("js_ask-plus-pro-box__input")[0].value,"external free-text");p("send button",n),window.location.href=n}function p(e,t){Wt({event:"link click",eventParams:{category:"fråga pluspro"},engagement:{type:"link click",component:{position:n,name:"fråga pluspro teaser",index:void 0,range:void 0,id:void 0,type:"teaser",element:{name:e,index:void 0,range:void 0,id:void 0}},destination:{title:"Di +Pro chatbot",url:t,type:"internal"}}})}function h(t){var n=e.getElementsByClassName("js_ask-plus-pro-box__question-list")[0],r=Array.from(n.querySelectorAll("li")),i=r.length;if(!((f="next"===t?f+1:f-1)<0||f>=i)){r[f].scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});var a=e.getElementsByClassName("js_ask-plus-pro-box__next-button")[0];e.getElementsByClassName("js_ask-plus-pro-box__previous-button")[0].disabled=0===f,a.disabled=f===i-1}}}l(ts,{default:()=>is});var as=s({"assets/scripts/plugins/askPlusProBox.js"(){Ut()}});m();var ss=c(h(),1);function os(){var e=document.getElementById("js_byline-modal"),t=document.querySelector(".js_byline-authors"),n=document.querySelector(".js_site-overlay");if(e&&t&&n){var r=0,i=0,a=!1;t.addEventListener("click",(function(t){var r="function"==typeof t.target.closest?t.target:t.target.parentElement;null!=r&&r.closest("a")||(e.classList.add("show"),n.classList.remove("hidden"),n.classList.add("overlay"),L.disableScroll())})),n.addEventListener("click",s),e.addEventListener("touchstart",(function(t){r=t.touches[0].clientY,i=r,a=!0,e.style.transition="none"})),e.addEventListener("touchmove",(function(t){if(a){var n=(i=t.touches[0].clientY)-r;n>0&&(e.style.transform="translateY(".concat(n,"px)"))}})),e.addEventListener("touchend",(function(){a=!1,e.style.transition="transform 0.3s ease",i-r>e.offsetHeight/3?s():e.style.transform="translateY(0)"}))}function s(){e.classList.remove("show"),n.classList.add("hidden"),e.style.removeProperty("transform"),L.enableScroll()}}function ls(){window.Didomi&&window.Didomi.notice.show()}function cs(){window.fetch("https://bongeo.bonad.io").then((function(e){return e.json()})).then((function(e){window.dataLayer.push({event:"Geo",geoData:[e.bongeoCode,e.bongeoRegionCode]})}
1)).catch((function(){}))}function us(){var e=document.getElementsByClassName("js_jump-to-main")[0],t=document.getElementsByClassName("js_main-content")[0],n=null==t?void 0:t.getElementsByTagName("a")[0];e&&n&&(e.addEventListener("keyup",(function(e){"Enter"===e.key&&n.focus()})),e.addEventListener("click",(function(){n.focus()})))}function ds(e){if(!function(){try{return document.createElement("link").relList.supports("preload")}catch(e){return!1}}())for(var t=document.head.getElementsByClassName(e),n=0,r=t.length;n<r;++n){var i=t[n];i.setAttribute("onload",""),i.rel="stylesheet"}}function fs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.Di.loggedIn){var t=document.getElementById("js_login-modal");if(t){var n=Ne(t);fe(e.getElementsByClassName("trigger-login-modal"),(function(e){e.addEventListener("click",r)}))}}function r(e){e.preventDefault(),n.open()}}function ms(e,t){if(e&&t){var n=t.getElementsByClassName("js_user-menu")[0],r=t.getElementsByClassName("js_search-form")[0],i=t.getElementsByClassName("js_mega-menu")[0];if("user"!==e&&(null==n||!n.classList.contains("hidden"))){null==n||n.classList.add("hidden");var a=document.getElementsByClassName("js_site-overlay")[0];null==a||a.classList.add("hidden");var s=t.getElementsByClassName("js_site-header__user-menu-overlay")[0];s&&!s.classList.contains("hidden")&&(s.classList.add("hidden"),"menu"!==e&&L.enableScroll())}if("search"!==e&&(null==r||!r.classList.contains("hidden"))){null==r||r.classList.add("hidden");var o=t.getElementsByClassName("js_search-toggle")[0];null==o||o.classList.remove("search-toggle--active");var l=t.getElementsByClassName("search-form__overlay")[0];null==l||l.classList.add("hidden"),"menu"!==e&&L.enableScroll()}if("menu"!==e&&(null==i||!i.classList.contains("hidden"))){null==i||i.classList.add("hidden");var c=t.getElementsByClassName("js_menu-toggle")[0];null==c||c.classList.remove("menu-toggle--active"),"search"!==e&&L.enableScroll()}}}function vs(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?"js_site-header-big":"js_site-header";if(e=document.getElementsByClassName(t)[0]){var n,r="js_mega-menu";if(n=e.getElementsByClassName(r)[0]){var i=e.getElementsByClassName("js_menu-toggle");if(null!=i&&i.length){var a=n.getElementsByClassName("js_mega-menu__overlay")[0];fe(i,(function(t){function r(){t.classList.toggle("menu-toggle--active"),n.classList.toggle("hidden"),L.enableScroll(),a.removeEventListener("click",r)}t.addEventListener("click",(function(){n.classList.toggle("hidden"),n.classList.contains("hidden")?(t.classList.remove("menu-toggle--active"),e.classList.add("site-header--sticky"),L.enableScroll()):(L.disableScroll(),t.classList.add("menu-toggle--active"),e.classList.remove("site-header--sticky"),a.addEventListener("click",r),ms("menu",e))}))}));for(var s=n.getElementsByClassName("mega-menu__content"),o=0,l=s.length;o<l;o++)s[o].addEventListener("click",c)}}}function c(e){var t,n=e.target.closest("a");if(n){var r=null===(t=e.target.closest(".mega-menu__group"))||void 0===t?void 0:t.querySelector(".mega-menu__group-header"),i="_blank"===n.getAttribute("target"),a=n.getAttribute("href");window.dataLayer.push({event:"navigation link click",eventParams:{category:"navigation"},engagement:{type:"click",destination:{title:n.innerText.trim()||void 0,url:i?a:"".concat(window.location.protocol,"//").concat(window.location.host).concat(a),type:i?"external":"internal"},component:{position:"Popout Menu",name:"".concat((null==r?void 0:r.innerText.trim())||void 0," | ").concat(n.innerText.trim()||void 0),type:"hamburger menu"}}})}}}function ps(e){var t=e.target.getAttribute("href");window.dataLayer.push({event:"navigation link click",eventParams:{category:"navigation"},engagement:{type:"click",destination:{title:"Di Plus Pro",url:new URL(t,window.location.origin).toString(),type:"internal"},component:{position:"Top Menu",name:"Di Plus Pro",type:"top menu"}}})}ce(),V(),je(),ve(),Be(),V(),ve(),V(),Se(),m();var hs=c(h(),1);function gs(e){var t=Array.from((null==e?void 0:e.children)||[]).find((function(e){return"A"===e.tagName}));null==t||t.focus()}function ys(e){return e&&"string"==typeof e?function(e){var t=[],n=new Map,r=[];function i(t,r){for(var i=t;i<r;){if(!n.has(i))return e[i];i=n.get(i)+1}return null}for(var a=0;a<e.length;a++){var s=e[a];if("<"===s)t.push(a);else if(">"===s&&t.length>0){var o=t.pop(),l=i(o+1,a);if(null!==l&&ws.test(l)){for(n.set(o,a);r.length>0&&r[r.length-1][0]>=o;)r.pop();r.push([o,a])}}}for(var c="",u=0,d=0,f=r;d<f.length;d++){var m=Z(f[d],2),v=m[0],p=m[1];c+=e.slice(u,v),u=p+1}return c+=e.slice(u),c}(e.replace(/ /g," ").replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/—/g,"â").replace(/–/g,"â").replace(/“/g,"â").replace(/”/g,"â").replace(/‘/g,"â").replace(/&/g,"&")):null}Oe(),Pe(),Se(),dt(),V(),te();var ws=/[a-zA-Z/!]/;function bs(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
1if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Es(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Es(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Es(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _s,ks,Ls,xs="search-preview__item",Cs=function(e,t,n,r){return{event:e,searchQuery:n,componentName:"main search",previewLinkEl:r,type:t}};function js(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?"js_site-header-big":"js_site-header",t=document.getElementsByClassName(e)[0];if(t){var n=t.getElementsByClassName("js_search-toggle")[0];if(n){var r=t.getElementsByClassName("js_search-form")[0];if(r){var i,a=Ae((function(e){var t=document.getElementsByClassName(xs);switch(e.key){case"Escape":""===o.value.trim()?p():(o.value="",s.innerHTML="");break;case"ArrowUp":!function(e,t){if(!(e.length<=1))for(var n=1,r=e.length;n<r;n++){var i=e[n];if(i.className.indexOf("--marked")>=0){i.classList.remove("".concat(t,"--marked")),e[n-1].classList.add("".concat(t,"--marked")),gs(e[n-1]);break}}}(t,xs);break;case"ArrowDown":!function(e,t,n){var r=e.getElementsByClassName("".concat(n,"--marked"));if(null!=r&&r.length)for(var i=0,a=t.length;i<a-1;i++){var s=t[i];if(s.className.indexOf("--marked")>=0){s.classList.remove("".concat(n,"--marked")),t[i+1].classList.add("".concat(n,"--marked")),gs(t[i+1]);break}}else{if(!t[0])return;t[0].classList.add("".concat(n,"--marked"))}}(document,t,xs);break;case"Enter":if("A"===e.target.tagName||"A"===document.activeElement.tagName)return void b(o.value);h(e,o.value,!1);break;case"Tab":break;default:null==c||c.classList.add("input-field__reset--visible"),function(){g.apply(this,arguments)}()}}),300),s=t.getElementsByClassName("js_search-preview__wrapper")[0],o=r.getElementsByClassName("js_search-form-input")[0],l=t.getElementsByClassName("search-form__overlay")[0],c=t.getElementsByClassName("js_input-reset")[0],u=0;n.addEventListener("click",(function(){r.classList.contains("hidden")?(ms("search",t),r.classList.remove("hidden"),o.focus(),n.classList.add("search-toggle--active"),m(),w(),r.addEventListener("keydown",a)):(p(),n.blur())})),null==c||c.addEventListener("click",(function(){o.value="",m(),c.classList.remove("input-field__reset--visible"),o.focus()})),null==(i=r.getElementsByClassName("js_search-form__form")[0])||i.addEventListener("submit",h),o.addEventListener("keyup",Ae(v,300)),o.addEventListener("blur",(function(){0!==u&&(u=0)}))}}}function f(e,t){var n,r=e.getElementsByClassName(xs);if(r.length){var i,a=bs(r);try{for(a.s();!(i=a.n()).done;){i.value.addEventListener("click",(function(e){var n,r=null===(n=e.target)||void 0===n||null===(n=n.closest(".".concat(xs)))||void 0===n?void 0:n.querySelector(".js_search-preview__link");ze(Cs("search result link click","link click",t,r))}))}}catch(e){a.e(e)}finally{a.f()}}var s=null===(n=e.getElementsByClassName("js_search-preview__query")[0])||void 0===n?void 0:n.querySelector("a");s&&s.addEventListener("click",(function(e){h(e,new URL(s.href,window.location.origin).searchParams.get("query"))}))}function m(){if(!o.value){var e=JSON.parse(window.Di.hasLocalStorage&&window.localStorage.getItem("searchQueryHistory"));if(s.innerHTML="",r.classList.remove("search-form--active"),null!=e&&e.length){var t=document.createElement("ul");t.classList.add("search-preview"),s.appendChild(t),y("")}}}
1function v(){o.value&&0===u&&(ze(Cs("search field interaction","interaction")),u++)}function p(){n.classList.remove("search-toggle--active"),r.classList.add("hidden"),l.classList.add("hidden"),L.enableScroll(),l.removeEventListener("click",p),r.removeEventListener("keydown",a)}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e.preventDefault();var r=t||o.value;if(Ie(r)){b(r);try{n&&ze(Cs("search submit","submit",r)),window.location.href="/search/?query=".concat(encodeURIComponent(r))}catch(e){}}}function g(){return(g=d(hs.default.mark((function e(){var t,n;return hs.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.value,w(),Ie(t)){e.next=5;break}return m(),e.abrupt("return");case 5:if(r.classList.add("search-form--active"),s){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,window.fetch("/search-preview/?query=".concat(encodeURIComponent(t.trim())));case 10:if((n=e.sent).ok){e.next=13;break}return e.abrupt("return");case 13:return e.next=15,n.text();case 15:s.innerHTML=e.sent,f(s,t),y(t);case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){var t=JSON.parse(window.Di.hasLocalStorage&&window.localStorage.getItem("searchQueryHistory"));if(t){var n=t.filter((function(t){return t.includes(e)})).splice(0,3);if(n.length){var r=document.createElement("span");r.classList.add("search-preview__label","global-xxs-cond"),r.innerHTML="Tidigare sökningar";var i=document.createElement("li");i.classList.add("search-preview__label-row"),i.appendChild(r),s.children[0].appendChild(i),n.forEac
1h((function(e){var t=document.createElement("span");t.innerHTML=function(e,t){if(!t)return e;var n=new RegExp(t,"ig");return e.replace(n,(function(e){return"<strong>".concat(e,"</strong>")}))}(ys(e),ys(o.value));var n=document.createElement("a");n.setAttribute("href","/search/?query=".concat(encodeURIComponent(e))),n.appendChild(t);var r=document.createElement("li");r.classList.add("search-preview__item","search-preview__item--history"),r.appendChild(n);var i=document.createElement("button");i.classList.add("btn","btn--small","btn--outlined","js_search-preview__item-delete"),i.addEventListener("click",(function(){!function(e){if(!e||!window.Di.hasLocalStorage)return;Te((function(){var t,n=window.Didomi,r=(null!==(t=JSON.parse(window.localStorage.getItem("searchQueryHistory")))&&void 0!==t?t:[]).filter((function(t){return!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"base";return 0===e.localeCompare(t,"sv",{sensitivity:n})}(t,e)}));null!=n&&n.getUserConsentStatusForVendor("c:bonniernews")&&window.localStorage.setItem("searchQueryHistory",JSON.stringify(r))}))}(e),s.children[0].removeChild(r)})),i.innerHTML="Ta bort",r.appendChild(i),s.children[0].appendChild(r)}))}}}function w(){l.classList.remove("hidden"),L.disableScroll(),l.addEventListener("click",p)}function b(e){var t;if(Ie(e)&&window.Di.hasLocalStorage){var n=null!==(t=JSON.parse(window.localStorage.getItem("searchQueryHistory")))&&void 0!==t?t:[];n.map((function(e){return e.toLowerCase()})).includes(e.toLowerCase())||(n.push(e),n.sort(),window.localStorage.setItem("searchQueryHistory",JSON.stringify(n)))}}}function Ns(){ks=!!document.getElementsByClassName("ad-fullpage")[0],ks?window.innerHeight:0;var e,t=document.getElementsByClassName("js_site-header-big")[0];if(t)return Promise.resolve().then((()=>(bt(),yt))).then((function(e){return e.default(t)})),void Promise.resolve().then((()=>(gt(),ft))).then((function(e){return e.default()}));!(_s=document.getElementsByClassName("site-header")[0])||(e=_s.getElementsByClassName("js_search-form")[0])&&!e.classList.contains("hidden")||mt()}gt(),V(),ks&&(Ls=document.getElementsByClassName("ad-fullpage__header")[0])&&Ls.addEventListener("click",(function(){ks=!1}));var Bs,Ts;function Ss(){for(var e=document.getElementsByClassName("js_header-links"),t=0,n=e.length;t<n;t++){e[t].addEventListener("click",i)}var r=document.getElementsByClassName("js_button-subscribe")[0];function i(e){var t,n=null!==(t=e.target.getElementsByTagName("span")[0])&&void 0!==t?t:e.target.closest("a");if(n){var r="_blank"===n.getAttribute("target"),i=n.getAttribute("href");window.dataLayer.push({event:"navigation link click",eventParams:{category:"navigation"},engagement:{type:"click",destination:{title:n.innerText.trim()||void 0,url:r?i:"".concat(window.location.protocol,"//").concat(window.location.host).concat(i),type:r?"external":"internal"},component:{position:"Top Menu",name:"".concat(n.innerText.trim()||void 0),type:"top menu"}}})}}r&&r.addEventListener("click",(function(){window.dataLayer.push({event:"navigation link click",eventParams:{category:"navigation"},engagement:{type:"link click",component:{name:"site header",position:"header",type:"top menu",element:{name:"Prenumerera"}},destination:{url:r.getAttribute("href"),type:"external"}}})}))}function As(){!function(e,t,n){for(var r=0;r<e.length;r++){var i=document.getElementsByClassName(e[r])[0];if(!i)return;var a=i.getElementsByClassName(t)[0];if(!a)return;var s=i.getElementsByClassName(n)[0];if(!s)return;Os(a,s,i)}}("/"===window.location.pathname&&"sectionPage"===window.Di.contentType&&!0?["js_site-header-big","js_site-header"]:["js_site-header"],"js_user-toggle","js_user-menu")}function Os(e,t,n){e.addEventListener("click",(function(){Is(t,n)}));var r=t.getElementsByClassName("js_user-menu__close-button")[0];null==r||r.addEventListener("click",(function(){Is(t,n)})),window.addEventListener("keyup",(function(e){"Escape"!==e.key||t.classList.contains("hidden")||Is(t,n)}))}function Is(e,t){e.classList.toggle("hidden"),ms("user",t),function(e,t){var n=document.getElementsByClassName("js_site-overlay")[0],r=null==n?void 0:n.classList.contains("hidden");n&&(r?(n.classList.remove("hidden"),L.add(i,!0),n.dataset.listenerAdded||(n.addEventListener("click",(function(){Is(e,t)})),n.dataset.listenerAdded="true")):n.classList.add("hidden"));function i(t){t.scrollY!==t.lastScrollY&&(n.classList.add("hidden"),e.classList.add("hidden"),document.activeElement.blur(),L.remove(i))}}(e,t),e.classList.contains("hidden")?document.activeElement.blur():document.addEventListener("click",Ps)}function Ps(e){var t=e.target,n=document.querySelector(".js_user-menu:not(.hidden)");
1if(n&&!t.closest(".js_user-toggle")&&!n.contains(t)){var r,i=null===(r=n.closest(".js_site-header-big, .js_site-header"))||void 0===r?void 0:r.querySelector(".js_site-header__user-menu-overlay");n.classList.add("hidden"),null==i||i.classList.add("hidden"),L.enableScroll(),document.removeEventListener("click",Ps)}}function Ds(){if(!window.webVitals||!window.webVitals.onCLS){var e=document.getElementById("web-vitals-script");return e&&e.addEventListener("load",Ds)}window.webVitals.onCLS(Ms),window.webVitals.onFCP(Ms),window.webVitals.onINP(Ms),window.webVitals.onLCP(Ms),window.webVitals.onTTFB(Ms),window.addEventListener("visibilitychange",Rs),window.addEventListener("pagehide",Rs)}function Ms(e){var t=e.name,n=e.value,r=e.rating;Ts!==window&&(Ts=window,Bs=null),(Bs=Bs||{})[t]={name:t,value:n,rating:r}}function Rs(e){Bs&&("visibilitychange"===e.type&&"hidden"!==document.visibilityState||(window.removeEventListener("visibilitychange",Rs),window.removeEventListener("pagehide",Rs)))}function Hs(){return(Hs=d(ss.default.mark((function e(){var t,n,r,i,a,s,o;return ss.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return oe(null===(t=window.Di)||void 0===t?void 0:t.bamData),ds("lazy-stylesheet"),Ns(),Te((function(){var e=window.Didomi;if(null!=e&&e.getUserConsentStatusForVendor("c:bonniernews"))return new Promise(cs)})),Ce(),n=window.location.pathname,r=!!n.includes("/ditv/"),("article"===window.Di.contentType&&!r||"sectionPage"===window.Di.contentType)&&_e(document,"mainDocument"),vs(),c=void 0,(c=document.getElementsByClassName("js_button-plus-pro")[0])&&c.addEventListener("click",ps),Ss(),As(),js(),fs(),l=void 0,(l=document.getElementsByClassName("js_didomi-settings")[0])&&l.addEventListener("click",ls),us(),Ds(),(i=[]).push(qs(Fs)),"article"!==window.Di.contentType||r?"/"===n&&"sectionPage"===window.Di.contentType?(i.push(Promise.resolve().then((()=>(qt(),Dt))).then((function(e){return e.default(document.getElementsByTagName("main")[0])}))),i.push(Promise.resolve().then((()=>(ye(),pe))).then((function(e){return e.default()}))),i.push(Promise.resolve().then((()=>(In(),Bn))).then((function(e){return e.default()}))),i.push(Promise.resolve().then((()=>(dn(),cn))).then((function(e){return e.default("start page")}))),i.push(qs(Vs,2e3)),vs(!0),js(!0)):n.includes("/search/")&&(i.push(Promise.resolve().then((()=>(pa(),fa))).then((function(e){return e.default()}))),i.push(Promise.resolve().then((()=>(wa(),ha))).then((function(e){return e.default()}))),i.push(Promise.resolve().then((()=>(La(),ba))).then((function(e){return e.default()})))):(os(),n.includes("brandstudio")&&i.push(Promise.resolve().then((()=>(kt(),Et))).then((function(e){return e.init()}))),o=document.getElementById("article"),i.push(Promise.resolve().then((()=>(Ot(),Ct))).then((function(e){return e.setupSlideshow(o)}))),i.push(Promise.resolve().then((()=>(qt(),Dt))).then((function(e){return e.default(o,".js-embed__iframe")}))),i.push(Promise.resolve().then((()=>(tn(),Gt))).then((function(e){return e.default(o)}))),i.push(Promise.resolve().then((()=>(ln(),nn))).then((function(e){return e.default(o)}))),i.push(Promise.resolve().then((()=>(dn(),cn))).then((function(e){return e.default("article page")}))),null!==(a=window.Di.userInfo)&&void 0!==a&&a.hasSubscription?i.push(Promise.resolve().then((()=>(Kn(),Gn))).then((function(e){return e.default()}))):(i.push(Promise.resolve().then((()=>(jn(),kn))).then((function(e){return e.initContinuousScroll()}))),window.Di.loggedIn||i.push(Promise.resolve().then((()=>(or(),ar))).then((function(e){return e.default(o)})))),null!==(s=window.Di.tags)&&void 0!==s&&s.find((function(e){var t;return"storytelling"===(null===(t=e.name)||void 0===t?void 0:t.toLowerCase())}))?i.push(Promise.resolve().then((()=>(Ir(),Nr))).then((function(e){return e.default()}))):i.push(Promise.resolve().then((()=>(zr(),Pr))).then((function(e){return e.default()})))),e.next=22,Promise.all(i);case 22:case"end":return e.stop()}var l,c}),e)})))).apply(this,arguments)}function Fs(){var e=[];
1return e.push(Promise.resolve().then((()=>(ja(),xa))).then((function(e){return e.default()}))),e.push(Promise.resolve().then((()=>(Ia(),Na))).then((function(e){return e.default()}))),e.push(Promise.resolve().then((()=>(Xn(),Pn))).then((function(e){return e.default()}))),Promise.all(e)}function Vs(){var e=[];return e.push(Promise.resolve().then((()=>(Va(),Pa))).then((function(e){return e.default()}))),e.push(Promise.resolve().then((()=>(Ga(),za))).then((function(e){return e.default()}))),e.push(Promise.resolve().then((()=>(es(),$a))).then((function(e){return e.default()}))),e.push(Promise.resolve().then((()=>(as(),ts))).then((function(e){return e.default()}))),Promise.all(e)}function qs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;return"requestIdleCallback"in window?new Promise((function(n){window.requestIdleCallback(d(ss.default.mark((function t(){return ss.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e();case 2:n();case 3:case"end":return t.stop()}}),t)}))),{timeout:t})})):e()}xe(),V();!function(){Hs.apply(this,arguments)}()})(); 2/*! Bundled license information: 3 4@babel/runtime/helpers/regeneratorRuntime.js: 5 (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *) 6*/
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.