PageSourceSearch

https://www.verisure.dk/sites/dk/files/js/js_w19vKHqFkD984oLYrdCv-…2Hls45n_i9-MkXqGDRqHNJjAG9SsQ-O1SC34ARBXDXg

js verisure.dk collected 2026-10-02 21:27:13 UTC 36,039 bytes, 15 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.quicklink={})}(this,function(e){function n(e){return new Promise(function(n,r,t){(t=new XMLHttpRequest).open("GET",e,t.withCredentials=!0),t.onload=function(){200===t.status?n():r()},t.send()})}var r,t=(r=document.createElement("link")).relList&&r.relList.supports&&r.relList.supports("prefetch")?function(e){return new Promise(function(n,r,t){(t=document.createElement("link")).rel="prefetch",t.href=e,t.onload=n,t.onerror=r,document.head.appendChild(t)})}:n,o=window.requestIdleCallback||function(e){var n=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-n))}})},1)},i=new Set,c=new Set,u=!1;function a(e){if(e){if(e.saveData)return new Error("Save-Data is enabled");if(/2g/.test(e.effectiveType))return new Error("network conditions are poor")}return!0}function s(e,r,o){var s=a(navigator.connection);return s instanceof Error?Promise.reject(new Error("Cannot prefetch, "+s.message)):(c.size>0&&!u&&console.warn("[Warning] You are using both prefetching and prerendering on the same document"),Promise.all([].concat(e).map(function(e){if(!i.has(e))return i.add(e),(r?function(e){return window.fetch?fetch(e,{credentials:"include"}):n(e)}:t)(new URL(e,location.href).toString())})))}function f(e,n){var r=a(navigator.connection);if(r instanceof Error)return Promise.reject(new Error("Cannot prerender, "+r.message));if(!HTMLScriptElement.supports("speculationrules"))return s(e),Promise.reject(new Error("This browser does not support the speculation rules API. Falling back to prefetch."));if(document.querySelector('script[type="speculationrules"]'))return Promise.reject(new Error("Speculation Rules is already defined and cannot be altered."));for(var t=0,o=[].concat(e);t<o.length;t+=1){var f=o[t];if(window.location.origin!==new URL(f,window.location.href).origin)return Promise.reject(new Error("Only same origin URLs are allowed: "+f));c.add(f)}i.size>0&&!u&&console.warn("[Warning] You are using both prefetching and prerendering on the same document");var l=function(e){var n=document.createElement("script");n.type="speculationrules",n.text='{"prerender":[{"source": "list","urls": ["'+Array.from(e).join('","')+'"]}]}';try{document.head.appendChild(n)}catch(e){return e}return!0}(c);return!0===l?Promise.resolve():Promise.reject(l)}e.listen=function(e){if(e||(e={}),window.IntersectionObserver){var n=function(e){e=e||1;var n=[],r=0;function t(){r<e&&n.length>0&&(n.shift()(),r++)}return[function(e){n.push(e)>1||t()},function(){r--,t()}]}(e.throttle||1/0),r=n[0],t=n[1],a=e.limit||1/0,l=e.origins||[location.hostname],d=e.ignores||[],h=e.delay||0,p=[],m=e.timeoutFn||o,w="function"==typeof e.hrefFn&&e.hrefFn,g=e.prerender||!1;u=e.prerenderAndPrefetch||!1;var v=new IntersectionObserver(function(n){n.forEach(function(n){if(n.isIntersecting)p.push((n=n.target).href),function(e,n){
2n?setTimeout(e,n):e()}(function(){-1!==p.indexOf(n.href)&&(v.unobserve(n),(u||g)&&c.size<1?f(w?w(n):n.href).catch(function(n){if(!e.onError)throw n;e.onError(n)}):i.size<a&&!g&&r(function(){s(w?w(n):n.href,e.priority).then(t).catch(function(n){t(),e.onError&&e.onError(n)})}))},h);else{var o=p.indexOf((n=n.target).href);o>-1&&p.splice(o)}})},{threshold:e.threshold||0});return m(function(){(e.el||document).querySelectorAll("a").forEach(function(e){l.length&&!l.includes(e.hostname)||function e(n,r){return Array.isArray(r)?r.some(function(r){return e(n,r)}):(r.test||r).call(r,n.href,n)}(e,d)||v.observe(e)})},{timeout:e.timeout||2e3}),function(){i.clear(),v.disconnect()}}},e.prefetch=s,e.prerender=f});
3;
4(function(){'use strict';Drupal.behaviors.quicklink={attach:function attachQuicklink(context,settings){var debug=settings.quicklink.debug;function hydrateQuicklinkConfig(){settings.quicklink.quicklinkConfig=settings.quicklink.quicklinkConfig||{};settings.quicklink.ignoredLinks=settings.quicklink.ignoredLinks||[];var quicklinkConfig=settings.quicklink.quicklinkConfig;quicklinkConfig.ignores=[];for(var i=0;i<settings.quicklink.url_patterns_to_ignore.length;i++){var pattern=settings.quicklink.url_patterns_to_ignore[i];(function(i,pattern){if(pattern.length)quicklinkConfig.ignores.push(function(uri,elem){var ruleName='Pattern found in href. See ignored URL patterns log.';var ruleFunc=uri.includes(pattern);outputDebugInfo(ruleFunc,ruleName,uri,elem,pattern);return ruleFunc;});})(i,pattern);}if(settings.quicklink.ignore_selectors)for(var i=0;i<settings.quicklink.ignore_selectors.length;i++){var pattern=settings.quicklink.ignore_selectors[i];(function(i,pattern){if(pattern.length)quicklinkConfig.ignores.push(function(uri,elem){var ruleName='Element matches custom selectors within "ignore selectors" array. See log.';var ruleFunc=elem.matches(pattern);outputDebugInfo(ruleFunc,ruleName,uri,elem,pattern);return ruleFunc;});})(i,pattern);}if(settings.quicklink.ignore_admin_paths){var adminLinkContainerPatterns=settings.quicklink.admin_link_container_patterns.join();quicklinkConfig.ignores.push(function(uri,elem){var ruleName='Exists in admin element container.';var ruleFunc=elem.matches(adminLinkContainerPatterns);outputDebugInfo(ruleFunc,ruleName,uri,elem);return ruleFunc;});}if(settings.quicklink.ignore_ajax_links){quicklinkConfig.ignores.push(function(uri,elem){var ruleName='Link has "use-ajax" CSS class.';var ruleFunc=elem.classList.contains('use-ajax');outputDebugInfo(ruleFunc,ruleName,uri,elem);return ruleFunc;});quicklinkConfig.ignores.push(function(uri,elem){var ruleName='Link has "/ajax" in url.';var ruleFunc=uri.includes('/ajax');outputDebugInfo(ruleFunc,ruleName,uri,elem);return ruleFunc;});}if(settings.quicklink.ignore_file_ext)quicklinkConfig.ignores.push(function(uri,elem){var ruleName='Contains file extension at end of href.';var ruleFunc=uri.match(/(\.[^\/]{1,5}\?)|(\.[^\/]{1,5}$)/);outputDebugInfo(ruleFunc,ruleName,uri,elem);return ruleFunc;});if(settings.quicklink.total_request_limit)quicklinkConfig.limit=parseInt(settings.quicklink.total_request_limit);if(settings.quicklink.concurrency_throttle_limit)quicklinkConfig.throttle=parseInt(settings.quicklink.concurrency_throttle_limit);if(settings.quicklink.idle_wait_timeout)quicklinkConfig.timeout=parseInt(settings.quicklink.idle_wait_timeout);if(settings.quicklink.viewport_delay)quicklinkConfig.delay=parseInt(settings.quicklink.viewport_delay);quicklinkConfig.ignores.push(function(uri,elem){var ruleName='Contains noprefetch attribute.';var ruleFunc=elem.hasAttribute('noprefetch');outputDebugInfo(ruleFunc,ruleName,uri,elem);return ruleFunc;});quicklinkConfig.ignores.push(function(uri,elem){var ruleName='Contains download attribute.';var ruleFunc=elem.hasAttribute('download');outputDebugInfo(ruleFunc,ruleName,uri,elem);return ruleFunc;});quicklinkConfig.origins=(settings.quicklink.allowed_domains)?settings.quicklink.allowed_domains:false;}function outputDebugInfo(ruleFunc,ruleName,uri,elem,pattern){if(debug&&ruleFunc){var debugMessage=ruleName+' Link ignored.';var thisLog={};var urlPattern=pattern||false;elem.classList.add('quicklink-ignore');elem.textContent+='🚫';elem.dataset.quicklinkMatch=debugMessage;thisLog.ruleName=ruleName;thisLog.uri=uri;thisLog.elem=elem;thisLog.message=debugMessage;if(urlPattern)thisLog.urlPattern=urlPattern;(function(thisLog){settings.quicklink.ignoredLinks.push(thisLog);})(thisLog);}}
4function loadQuicklink(){var urlParams=new URLSearchParams(window.location.search);var noprefetch=urlParams.get('noprefetch')!==null||window.location.hash==='#noprefetch';if(noprefetch&&debug)console.info('The "noprefetch" parameter or hash exists in the URL. Quicklink library not loaded.');return window.quicklink&&!noprefetch;}if(!settings.quicklink.quicklinkConfig)hydrateQuicklinkConfig();settings.quicklink.quicklinkConfig.el=(settings.quicklink.selector)?context.querySelector(settings.quicklink.selector):context;if(loadQuicklink())if(settings.quicklink.prefetch_only_paths)quicklink.prefetch(settings.quicklink.prefetch_only_paths);else try{quicklink.listen(settings.quicklink.quicklinkConfig);}catch(err){console.error('quicklink.listen is not found. Please verify you are running version 2 of the Quicklink library.',err);}if(debug){console.info('Quicklink config object',settings.quicklink.quicklinkConfig);console.info('Quicklink module debug log',settings.quicklink.debug_log);console.info('Quicklink ignored links',settings.quicklink.ignoredLinks);}}};})();;
5(function($,drupalSettings){'use strict';Drupal.behaviors.dateUpdate={attach:function(context,settings){let date=drupalSettings.date;let fullDate=drupalSettings.fullDate;let biweekly=drupalSettings.biweekly;let fullBiweekly=drupalSettings.fullBiweekly;$('.valid-date span').html(date);$('.valid-full-date span').html(fullDate);$('.valid-biweekly-date span').html(biweekly);$('.valid-full-biweekly-date span').html(fullBiweekly);}};})(jQuery,drupalSettings);;
6/* @license W3C https://raw.githubusercontent.com/w3c/IntersectionObserver/master/LICENSE.md */
7(function(){'use strict';if(typeof window!=='object')return;if('IntersectionObserver' in window&&'IntersectionObserverEntry' in window&&'intersectionRatio' in window.IntersectionObserverEntry.prototype){if(!('isIntersecting' in window.IntersectionObserverEntry.prototype))Object.defineProperty(window.IntersectionObserverEntry.prototype,'isIntersecting',{get:function(){return this.intersectionRatio>0;}});return;}function getFrameElement(doc){try{return doc.defaultView&&doc.defaultView.frameElement||null;}catch(e){return null;}}var document=(function(startDoc){var doc=startDoc;var frame=getFrameElement(doc);while(frame){doc=frame.ownerDocument;frame=getFrameElement(doc);}return doc;})(window.document);var registry=[];var crossOriginUpdater=null;var crossOriginRect=null;function IntersectionObserverEntry(entry){this.time=entry.time;this.target=entry.target;this.rootBounds=ensureDOMRect(entry.rootBounds);this.boundingClientRect=ensureDOMRect(entry.boundingClientRect);this.intersectionRect=ensureDOMRect(entry.intersectionRect||getEmptyRect());this.isIntersecting=!!entry.intersectionRect;var targetRect=this.boundingClientRect;var targetArea=targetRect.width*targetRect.height;var intersectionRect=this.intersectionRect;var intersectionArea=intersectionRect.width*intersectionRect.height;if(targetArea)this.intersectionRatio=Number((intersectionArea/targetArea).toFixed(4));else this.intersectionRatio=this.isIntersecting?1:0;}function IntersectionObserver(callback,opt_options){var options=opt_options||{};if(typeof callback!='function')throw new Error('callback must be a function');if(options.root&&options.root.nodeType!=1&&options.root.nodeType!=9)throw new Error('root must be a Document or Element');this._checkForIntersections=throttle(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT);this._callback=callback;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(options.rootMargin);this.thresholds=this._initThresholds(options.threshold);this.root=options.root||null;this.rootMargin=this._rootMarginValues.map(function(margin){return margin.value+margin.unit;}).join(' ');this._monitoringDocuments=[];this._monitoringUnsubscribes=[];}IntersectionObserver.prototype.THROTTLE_TIMEOUT=100;IntersectionObserver.prototype.POLL_INTERVAL=null;IntersectionObserver.prototype.USE_MUTATION_OBSERVER=true;IntersectionObserver._setupCrossOriginUpdater=function(){if(!crossOriginUpdater)crossOriginUpdater=function(bou
7ndingClientRect,intersectionRect){if(!boundingClientRect||!intersectionRect)crossOriginRect=getEmptyRect();else crossOriginRect=convertFromParentRect(boundingClientRect,intersectionRect);registry.forEach(function(observer){observer._checkForIntersections();});};return crossOriginUpdater;};IntersectionObserver._resetCrossOriginUpdater=function(){crossOriginUpdater=null;crossOriginRect=null;};IntersectionObserver.prototype.observe=function(target){var isTargetAlreadyObserved=this._observationTargets.some(function(item){return item.element==target;});if(isTargetAlreadyObserved)return;if(!(target&&target.nodeType==1))throw new Error('target must be an Element');this._registerInstance();this._observationTargets.push({element:target,entry:null});this._monitorIntersections(target.ownerDocument);this._checkForIntersections();};IntersectionObserver.prototype.unobserve=function(target){this._observationTargets=this._observationTargets.filter(function(item){return item.element!=target;});this._unmonitorIntersections(target.ownerDocument);if(this._observationTargets.length==0)this._unregisterInstance();};IntersectionObserver.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorAllIntersections();this._unregisterInstance();};IntersectionObserver.prototype.takeRecords=function(){var records=this._queuedEntries.slice();this._queuedEntries=[];return records;};IntersectionObserver.prototype._initThresholds=function(opt_threshold){var threshold=opt_threshold||[0];if(!Array.isArray(threshold))threshold=[threshold];return threshold.sort().filter(function(t,i,a){if(typeof t!='number'||isNaN(t)||t<0||t>1)throw new Error('threshold must be a number between 0 and 1 inclusively');return t!==a[i-1];});};IntersectionObserver.prototype._parseRootMargin=function(opt_rootMargin){var marginString=opt_rootMargin||'0px';var margins=marginString.split(/\s+/).map(function(margin){var parts=/^(-?\d*\.?\d+)(px|%)$/.exec(margin);if(!parts)throw new Error('rootMargin must be specified in pixels or percent');return {value:parseFloat(parts[1]),unit:parts[2]};});margins[1]=margins[1]||margins[0];margins[2]=margins[2]||margins[0];margins[3]=margins[3]||margins[1];return margins;};IntersectionObserver.prototype._monitorIntersections=function(doc){var win=doc.defaultView;if(!win)return;if(this._monitoringDocuments.indexOf(doc)!=-1)return;var callback=this._checkForIntersections;var monitoringInterval=null;var domObserver=null;if(this.POLL_INTERVAL)monitoringInterval=win.setInterval(callback,this.POLL_INTERVAL);else{addEvent(win,'resize',callback,true);addEvent(doc,'scroll',callback,true);if(this.USE_MUTATION_OBSERVER&&'MutationObserver' in win){domObserver=new win.MutationObserver(callback);domObserver.observe(doc,{attributes:true,childList:true,characterData:true,subtree:true});}}this._monitoringDocuments.push(doc);this._monitoringUnsubscribes.push(function(){var win=doc.defaultView;if(win){if(monitoringInterval)win.clearInterval(monitoringInterval);removeEvent(win,'resize',callback,true);}removeEvent(doc,'scroll',callback,true);if(domObserver)domObserver.disconnect();});var rootDoc=(this.root&&(this.root.ownerDocument||this.root))||document;if(doc!=rootDoc){var frame=getFrameElement(doc);if(frame)this._monitorIntersections(frame.ownerDocument);}};IntersectionObserver.prototype._unmonitorIntersections=function(doc){var index=this._monitoringDocuments.indexOf(doc);if(index==-1)return;var rootDoc=(this.root&&(this.root.ownerDocument||this.root))||document;var hasDependentTargets=this._observationTargets.some(function(item){var itemDoc=item.element.ownerDocument;if(itemDoc==doc)return true;while(itemDoc&&itemDoc!=rootDoc){var frame=getFrameElement(itemDoc);itemDoc=frame&&frame.ownerDocument;if(itemDoc==doc)return true;}return false;});if(hasDependentTargets)return;var unsubscribe=this._monitoringUnsubscribes[index];this._monitoringDocuments.splice(index,1);this._monitoringUnsubscribes.splice(index,1);unsubscribe();if(doc!=rootDoc){var frame=getFrameElement(doc);if(frame)this._unmonitorIntersections(frame.ownerDocument);}};IntersectionObserver.prototype._unmonitorAllIntersections=function(){var unsubscribes=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0;this._monitoringUnsubscribes.length=0;for(var i=0;i<unsubscribes.length;i++)unsubscribes[i]();};IntersectionObserver.prototype._checkForIntersections=function(){if(!this.root&&crossOriginUpdater&&!crossOriginRect)return;var rootIsInDom=this._rootIsInDom();var rootRect=rootIsInDom?this._getRootRect():getEmptyRect();
7this._observationTargets.forEach(function(item){var target=item.element;var targetRect=getBoundingClientRect(target);var rootContainsTarget=this._rootContainsTarget(target);var oldEntry=item.entry;var intersectionRect=rootIsInDom&&rootContainsTarget&&this._computeTargetAndRootIntersection(target,targetRect,rootRect);var rootBounds=null;if(!this._rootContainsTarget(target))rootBounds=getEmptyRect();else{if(!crossOriginUpdater||this.root)rootBounds=rootRect;}var newEntry=item.entry=new IntersectionObserverEntry({time:now(),target,boundingClientRect:targetRect,rootBounds,intersectionRect});if(!oldEntry)this._queuedEntries.push(newEntry);else if(rootIsInDom&&rootContainsTarget){if(this._hasCrossedThreshold(oldEntry,newEntry))this._queuedEntries.push(newEntry);}else{if(oldEntry&&oldEntry.isIntersecting)this._queuedEntries.push(newEntry);}},this);if(this._queuedEntries.length)this._callback(this.takeRecords(),this);};IntersectionObserver.prototype._computeTargetAndRootIntersection=function(target,targetRect,rootRect){if(window.getComputedStyle(target).display=='none')return;var intersectionRect=targetRect;var parent=getParentNode(target);var atRoot=false;while(!atRoot&&parent){var parentRect=null;var parentComputedStyle=parent.nodeType==1?window.getComputedStyle(parent):{};if(parentComputedStyle.display=='none')return null;if(parent==this.root||parent.nodeType==9){atRoot=true;if(parent==this.root||parent==document)if(crossOriginUpdater&&!this.root)if(!crossOriginRect||crossOriginRect.width==0&&crossOriginRect.height==0){parent=null;parentRect=null;intersectionRect=null;}else parentRect=crossOriginRect;else parentRect=rootRect;else{var frame=getParentNode(parent);var frameRect=frame&&getBoundingClientRect(frame);var frameIntersect=frame&&this._computeTargetAndRootIntersection(frame,frameRect,rootRect);if(frameRect&&frameIntersect){parent=frame;parentRect=convertFromParentRect(frameRect,frameIntersect);}else{parent=null;intersectionRect=null;}}}else{var doc=parent.ownerDocument;if(parent!=doc.body&&parent!=doc.documentElement&&parentComputedStyle.overflow!='visible')parentRect=getBoundingClientRect(parent);}if(parentRect)intersectionRect=computeRectIntersection(parentRect,intersectionRect);if(!intersectionRect)break;parent=parent&&getParentNode(parent);}return intersectionRect;};IntersectionObserver.prototype._getRootRect=function(){var rootRect;if(this.root&&!isDoc(this.root))rootRect=getBoundingClientRect(this.root);else{var doc=isDoc(this.root)?this.root:document;var html=doc.documentElement;var body=doc.body;rootRect={top:0,left:0,right:html.clientWidth||body.clientWidth,width:html.clientWidth||body.clientWidth,bottom:html.clientHeight||body.clientHeight,height:html.clientHeight||body.clientHeight};}return this._expandRectByRootMargin(rootRect);};IntersectionObserver.prototype._expandRectByRootMargin=function(rect){var margins=this._rootMarginValues.map(function(margin,i){return margin.unit=='px'?margin.value:margin.value*(i%2?rect.width:rect.height)/100;});var newRect={top:rect.top-margins[0],right:rect.right+margins[1],bottom:rect.bottom+margins[2],left:rect.left-margins[3]};newRect.width=newRect.right-newRect.left;newRect.height=newRect.bottom-newRect.top;return newRect;};IntersectionObserver.prototype._hasCrossedThreshold=function(oldEntry,newEntry){var oldRatio=oldEntry&&oldEntry.isIntersecting?oldEntry.intersectionRatio||0:-1;var newRatio=newEntry.isIntersecting?newEntry.intersectionRatio||0:-1;if(oldRatio===newRatio)return;for(var i=0;i<this.thresholds.length;i++){var threshold=this.thresholds[i];if(threshold==oldRatio||threshold==newRatio||threshold<oldRatio!==threshold<newRatio)return true;}};IntersectionObserver.prototype._rootIsInDom=function(){return !this.root||containsDeep(document,this.root);};IntersectionObserver.prototype._rootContainsTarget=function(target){var rootDoc=(this.root&&(this.root.ownerDocument||this.root))||document;return (containsDeep(rootDoc,target)&&(!this.root||rootDoc==target.ownerDocument));};IntersectionObserver.prototype._registerInstance=function(){if(registry.indexOf(this)<0)registry.push(this);};IntersectionObserver.prototype._unregisterInstance=function(){var index=registry.indexOf(this);if(index!=-1)registry.splice(index,1);};function now(){return window.performance&&performance.now&&performance.now();}function throttle(fn,timeout){var timer=null;return function(){if(!timer)timer=setTimeout(function(){fn();timer=null;},timeout);};}function addEvent(node,event,fn,opt_useCapture){if(typeof node.addEventListener=='function')node.addEventListener(event,fn,opt_useCapture||false);else{if(typeof node.attachEvent=='function')node.attachEvent('on'+event,fn);}}function removeEvent(node,event,fn,opt_useCapture){if(typeof node.removeEventListener=='function')node.removeEventListener(event,fn,opt_useCapture||false);else{if(typeof node.detachEvent=='function')node.detachEvent('on'+event,fn);}}function computeRectIntersection(rect1,rect2){var top=Math.max(rect1.top,rect2.top);var bottom=Math.min(rect1.bottom,rect2.bottom);var left=Math.max(rect1.left,rect2.left);var right=Math.min(rect1.right,rect2.right);var width=right-left;var height=bottom-top;return (width>=0&&height>=0)&&{top,bottom,left,right,width,height}||null;}function getBoundingClientRect(el){var rect;try{rect=el.getBoundingClientRect();}catch(err){}if(!rect)return getEmptyRect();
7if(!(rect.width&&rect.height))rect={top:rect.top,right:rect.right,bottom:rect.bottom,left:rect.left,width:rect.right-rect.left,height:rect.bottom-rect.top};return rect;}function getEmptyRect(){return {top:0,bottom:0,left:0,right:0,width:0,height:0};}function ensureDOMRect(rect){if(!rect||'x' in rect)return rect;return {top:rect.top,y:rect.top,bottom:rect.bottom,left:rect.left,x:rect.left,right:rect.right,width:rect.width,height:rect.height};}function convertFromParentRect(parentBoundingRect,parentIntersectionRect){var top=parentIntersectionRect.top-parentBoundingRect.top;var left=parentIntersectionRect.left-parentBoundingRect.left;return {top,left,height:parentIntersectionRect.height,width:parentIntersectionRect.width,bottom:top+parentIntersectionRect.height,right:left+parentIntersectionRect.width};}function containsDeep(parent,child){var node=child;while(node){if(node==parent)return true;node=getParentNode(node);}return false;}function getParentNode(node){var parent=node.parentNode;if(node.nodeType==9&&node!=document)return getFrameElement(node);if(parent&&parent.assignedSlot)parent=parent.assignedSlot.parentNode;if(parent&&parent.nodeType==11&&parent.host)return parent.host;return parent;}function isDoc(node){return node&&node.nodeType===9;}window.IntersectionObserver=IntersectionObserver;window.IntersectionObserverEntry=IntersectionObserverEntry;}());;
8/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
9(function(global,window,document,factory){if(typeof exports==='object'&&typeof module!=='undefined')module.exports=factory(window,document);else if(typeof define==='function'&&define.amd)define(function(){global.ProgressiveImageLoading=factory(window,document);return global.ProgressiveImageLoading;});else global=global||self,global.ProgressiveImageLoading=factory(window,document);}(this,window,document,function(window,document){var progressiveImageLoading={};var config={root:null,rootMargin:'200px',threshold:0,selector:'.progressive-image-loading',breakpoints:null};var observer=void 0;var currentBreakpoint=false;var breakpointListeners={};var mergeSettings=function(settings){var extended={};var prop;for(prop in config)if(Object.prototype.hasOwnProperty.call(config,prop))extended[prop]=config[prop];for(prop in settings)if(Object.prototype.hasOwnProperty.call(settings,prop))extended[prop]=settings[prop];return extended;};var setMediaQueryListeners=function(){if(Object.keys(config.breakpoints).length===0)return [];Object.keys(config.breakpoints).forEach(function(key){if(config.breakpoints[key].mediaQuery==='')config.breakpoints[key].mediaQuery='(min-width: 0)';var mql=window.matchMedia(config.breakpoints[key].mediaQuery);mql.addListener(breakpointChange);breakpointListeners[key]=mql;if(mql.matches)currentBreakpoint=key;});};var breakpointChange=function(){Object.keys(breakpointListeners).forEach(function(key){if(breakpointListeners[key].matches&&currentBreakpoint!==key){currentBreakpoint=key;var elementsToUpdate=getElements('[data-loaded="true"][data-background-image-'+key+']');for(var i=0;i<elementsToUpdate.length;
9i++)updateBackgroundElement(elementsToUpdate[i]);return false;}});};var observeElements=function(elements){for(var i=0;i<elements.length;i++){var isLoaded=progressiveImageLoading.isLoaded(elements[i]);if(!isLoaded&&observer)observer.observe(elements[i]);else if(!isLoaded)progressiveImageLoading.triggerLoad(elements[i]);else{if(observer)observer.unobserve(elements[i]);}}};var onIntersection=function(){return function(entries){entries.forEach(function(entry){if(entry.intersectionRatio>0||entry.isIntersecting)progressiveImageLoading.triggerLoad(entry.target);});};};var getElements=function(selector){if(selector instanceof Element)return [selector];if(selector instanceof NodeList)return selector;return config.root.querySelectorAll(selector);};var loadElement=function($element){var elementCase=$element.nodeName.toLowerCase();if(elementCase==='picture')if($element.children){var childs=$element.children;var childSrc=void 0;for(var i=0;i<=childs.length-1;i++){childSrc=childs[i].getAttribute('data-srcset');if(childSrc)childs[i].srcset=childSrc;}}if($element.getAttribute('data-src'))$element.src=$element.getAttribute('data-src');if($element.getAttribute('data-srcset'))$element.setAttribute('srcset',$element.getAttribute('data-srcset'));if($element.getAttribute('data-background-image'))updateBackgroun
9dElement($element);if($element.getAttribute('data-toggle-class')){var className=$element.getAttribute('data-toggle-class');if($element.getAttribute('class').indexOf(className)>-1)$element.setAttribute('class',$element.getAttribute('class').replace(className,''));else $element.setAttribute('class',$element.getAttribute('class')+' '+className);}};var updateBackgroundElement=function($element){var src=null;if(currentBreakpoint&&$element.hasAttribute('data-background-image-'+currentBreakpoint))src=$element.getAttribute('data-background-image-'+currentBreakpoint);else{if($element.hasAttribute('data-background-image'))src=$element.getAttribute('data-background-image');}if(src!==null)preloadImageSource('background',$element,src);};var preloadImageSource=function(mode,$element,src){var newImage=new Image();newImage.onload=function(){switch(mode){case 'background':$element.style.backgroundImage='url('+this.src+')';break;}};newImage.src=src;};progressiveImageLoading.observe=function(){var elements=getElements(config.selector,config.root);observeElements(elements);};progressiveImageLoading.triggerLoad=function($element){if(observer)observer.unobserve($element);if(progressiveImageLoading.isLoaded($element))return;if(progressiveImageLoading.hasOwnProperty('beforeLoad')&&progressiveImageLoading.beforeLoad instanceof Function)progressiveImageLoading.beforeLoad($element);loadElement($element);progressiveImageLoading.markAsLoaded($element);};progressiveImageLoading.isLoaded=function($element){return $element.getAttribute('data-loaded')==='true';};progressiveImageLoading.markAsLoaded=function($element){$element.setAttribute('data-loaded','true');};return function ProgressiveImageLoading(context,settings){if(typeof (settings.settings)==='object')config=mergeSettings(settings.settings);if(typeof (settings.breakpoints)==='object'){config.breakpoints=settings.breakpoints;setMediaQueryListeners();}if(!config.root&&context)config.root=context;if(window.IntersectionObserver)observer=new IntersectionObserver(onIntersection(),{root:document.querySelector(config.root.nodeName),rootMargin:config.rootMargin,threshold:config.threshold});progressiveImageLoading.observe();return progressiveImageLoading;};}));;
10(function($,Drupal){'use strict';Drupal.behaviors.progressiveImageLoading={attach:function(context,settings){var overriddenSettings={};if(typeof (settings.progressiveImageLoading)!=='undefined')overriddenSettings=settings.progressiveImageLoading;new ProgressiveImageLoading(context,overriddenSettings);}};})(jQuery,Drupal);;
11(function($,Drupal){'use strict';Drupal.behaviors.bubbleNotifications={attach:function attach(context,settings){const bubbleNotifications=document.querySelectorAll("#bubble-notifications");bubbleNotifications.forEach(function(bubble){const svg=bubble.querySelector('#moder-icon');svg.addEventListener('click',function(){const sibling=svg.nextElementSibling;const parent=svg.parentElement;svg.classList.toggle('open');if(parent)parent.classList.toggle('open');if(sibling)sibling.classList.toggle('open');});});}};})(jQuery,Drupal);;
12(function(Drupal,$){$(document).ready(function(){var form_modal_info=$('.block-content-type-sd_b002.block--view-mode-full .form-c2c-form').html();if($('.c2c-modal-info').length!=0)$(".c2c-modal-info").html(form_modal_info);var body=$('body'),header=$('.layout-container > header'),regionSecondaryMenu=$('.region-secondary-menu'),mainMenu=$('#block-topmenu'),mobileMainMenu=$("#block-verisure-br-mobile-main-menu, #block-verisure-it-mobile-main-menu"),burgerMenu=$('body:not(.path-administration-panel) #block-burger-menu'),buttonCalculateOnline=$('.layout-container > header .menu--main .menu-level-0 .menu-item:last-child');mainMenu.find('li.menu-item--expanded > a').after('<span class="menu-toggle-icon"></span>');if($(mobileMainMenu).length)mobileMainMenu.find('li.menu-item--expanded').append('<span class="menu-toggle-icon"></span>');var toggleSubMenu=$('#block-topmenu .menu-toggle-icon, #block-verisure-br-mobile-main-menu .menu-toggle-icon, #block-verisure-it-mobile-main-menu .menu-toggle-icon');burgerMenu.on('click',function(){$('.region-searcher').removeClass('visible');$('#block-search-icon').removeClass('active');$(this).showElement(regionSecondaryMenu);});
12toggleSubMenu.on('click',function(){var thisLevel=$(this).parent('li');if($(window).width()<=949){thisLevel.toggleClass('unfolded');thisLevel.find('> .menu').slideToggle();}});$('.menu--main > .menu > .menu-item--expanded').addClass('first-level');var fatherMainMenu=$('.menu--main a.is-active').parents('.first-level');if(!$(fatherMainMenu).hasClass('menu-item--active-trail'))$(fatherMainMenu).addClass('menu-item--active-trail');$(window).scroll(function(){if($(window).scrollTop()>=34)$('body').addClass('fixed-header');else $('body').removeClass('fixed-header');});if($('.wrapper-menu-anchor').length!=0)var px_menu_secondary=$('.wrapper-menu-anchor').offset().top+3;else{}$(window).bind('scroll',function(){if($(window).scrollTop()>px_menu_secondary){$('.wrapper-menu-anchor').addClass('fixed-menu-anchor');$(".fixed-header .layout-container > header").addClass("top-header-off");$('.menu-anchor .inner_section_title').hide();$('.menu-anchor a.top-anchor').show();if($(window).width()>767){$('.block-content-type-sd_b001 .stats_row').css('padding-top','144px');$('.menu-section').css('padding-top','144px');}else{$('.block-content-type-sd_b001 .stats_row').css('padding-top','45px');$('.menu-section').css('padding-top','0');}}else{$('.wrapper-menu-anchor').removeClass('fixed-menu-anchor');$(".fixed-header .layout-container > header").removeClass("top-header-off");$('.menu-anchor .inner_section_title').show();$('.menu-anchor a.top-anchor').hide();$('.block-content-type-sd_b001 .stats_row').css('padding-top','45px');$('.menu-section').css('padding-top','0');}});$(window).on("load resize",function(){if($(window).width()>990)$(window).scroll(function(){if($(window).scrollTop()>=34){if(!buttonCalculateOnline.hasClass('visibility'))buttonCalculateOnline.addClass('visibility');}else buttonCalculateOnline.removeClass('visibility');});});});})(Drupal,jQuery);;
13(function(Drupal,$){$(document).ready(function(){var ItemMenu=$('.region-sliding-panel > .navigation >.menu >.menu-item--expanded'),customerArea=$(".menu--top-menu .menu > .top-bar-client-area.menu--item-expanded"),mainMenu=$('.region-sliding-panel > .navigation'),workWithUs=$(".menu--top-menu .menu > .top-bar-client-area:not(.menu--item-expanded)");ItemMenu.append('<span class="icon-arrow"></span>');if(workWithUs.length>0){var workWithUsList=$('<ul class="work-with-us-menu"></ul>').append(workWithUs.clone());workWithUsList.appendTo(mainMenu);}if(customerArea.length>0){var customerAreaList=$('<ul class="customer-area-menu"></ul>').append(customerArea.clone());customerAreaList.appendTo(mainMenu);}$('.icon-arrow').on('click',function(){$(this).parent('.first-level').find('.menu-level-1').addClass('deployed');$(this).parent('.first-level').toggleClass('item-deployed');});$('.region-sliding-panel > .navigation >.menu >.menu-item--expanded .menu-level-1 .menu-item:first-child').on('click',function(e){menuFather=$(this).parent('.menu-level-1');if(menuFather.hasClass('deployed'))menuFather.removeClass('deployed');});});})(Drupal,jQuery);;
14(function(Drupal,$){$(document).ready(function(){$(window).resize(function(){if($(this).width()>767)if($('.sliding-panel-content').hasClass('is-visible')||$('body').hasClass('frozen-body')||$("layout-container").hasClass("isfrozen")){$('.sliding-panel-content').removeClass('is-visible');$('body').removeClass('frozen-body');$('.layout-container').removeClass('isfrozen');$('.layout-container > header .wrapper-header').removeClass('translate');$('.layout-container > main').removeClass('translate');$('.region-sliding-panel > .navigation .menu-level-1').removeClass("deployed");buttonChange();}});var menu_svg=document.getElementById('menu-svg');var menu_settings={container:menu_svg,renderer:'svg',loop:false,prerender:false,autoplay:false,autoloadSegments:false,path:'/themes/custom/da_vinci/js/utils/menu-svg.json'};var menu_svg_init;var menu_svg_x=false;menu_svg_init=bodymovin.loadAnimation(menu_settings);function throwComplete(){isThrowing=false;menu_svg_init.removeEventListener('loopComplete',throwComplete);}function buttonChange(){if(menu_svg_x){menu_svg_init.playSegments([26,39],true);menu_svg_x=false;}else{menu_svg_x=true;menu_svg_init.playSegments([0,14],true);}}$('#menu-svg').parents(".wrapper").on('click',function(e){buttonChange();$('.sliding-panel-content').toggleClass('is-visible');$('body').toggleClass('frozen-body');e.preventDefault();$('.layout-container > header .wrapper-header').toggleClass('translate');$('.layout-container > main').toggleClass('translate');if($('.sliding-panel-content').hasClass('is-visible')){$('body').removeClass('frozen-body');$('.layout-container').addClass('isfrozen');}else{$('body').removeClass('frozen-body');$('.layout-container').removeClass('isfrozen');}});});})(Drupal,jQuery);;
15(function($,Drupal){Drupal.behaviors.cta_tracking={attach:function(context,settings){var is404=settings.verisure_dk&&settings.verisure_dk.is_404;var nodeID=is404?settings.verisure_dk["404_node_id"]:"";if(!is404){var currentPath=settings.path.currentPath;nodeID=currentPath.startsWith("node/")?currentPath.split("node/")[1]:"";}var domain=window.location.origin;var blocks=$("[data-description]",context);blocks.each(function(){var description=$(this).attr("data-description")?$(this).attr("data-description"):"";var ctas=$('a[href*="/funnel/"]',this);ctas.each(function(){var href=$(this).attr("href");var url;
15try{url=new URL(href);}catch(error){url=new URL(href,domain);}if(nodeID)url.searchParams.append("otherinfo10","NID"+nodeID);if(description)url.searchParams.append("otherinfo11",description);$(this).attr("href",url.toString());$(this).click(function(event){event.preventDefault();window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"cta_click",otherinfo10:"NID"+nodeID,otherinfo11:description});window.location.href=url.toString();});});});}};})(jQuery,Drupal);;

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.