function addStyleLink(t){const e=document.createElement("link");e.rel="stylesheet",e.href=t,e.media="print",e.onload=()=>{this.media="all"},document.head.appendChild(e);const n=document.createElement("link");n.rel="stylesheet",n.href=t;const i=document.createElement("noscript");i.appendChild(n),document.head.appendChild(i)}function addScript(t,e,n){const i=document.createElement("script");i.src=t,e&&(i.type=e),n&&(i.defer=!0),document.body.appendChild(i)}function readBaseUrl(){return Array.from(document.querySelectorAll("script")).map(t=>t.src).reduce((t,e)=>e.indexOf("embed-in-one-marketing.js")>=0?e.substring(0,e.indexOf("embed-in-one-marketing.js")):t,"")}function getUrlParameterFromScriptUrl(t){return Array.from(document.querySelectorAll("script")).map(e=>e.src).reduce((e,n)=>n.indexOf(t)>=0?n.substring(n.indexOf(t)+1+t.length):e,"")}function restyleAdobeOneMarketingStyles(t=""){const e=window.document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",`${t}style/assets/AdobeOneMarketingReset.css`),window.document.head.appendChild(e);const n=document.querySelector("kraft-app").parentElement;n.classList.add("adobeOneMarketingRestyling"),n.id="kraft-container"}function initializeScripts(t,e,n,i,d){const r=readBaseUrl();window.adobeOneMarketingEnabled=!0,window.srcPath=r,window.vehicletypepreselect=getUrlParameterFromScriptUrl("vehicletypepreselect"),restyleAdobeOneMarketingStyles(r),addStyleLink(r+"styles."+t+".css"),addScript(r+"runtime."+e+".js","module",void 0),addScript(r+"polyfills."+n+".js","module",void 0),addScript(r+"scripts."+i+".js",void 0,!0),addScript(r+"main."+d+".js","module",void 0)}function setJwtAndFrontendConfiguration(t,e){document.getElementsByTagName("kraft-app").item(0).setAttribute("jwt",t),document.getElementsByTagName("kraft-app").item(0).setAttribute("configuration",e)}function adjustDtConfigForCORS(t,e){return"cors=1|"+t?.replace("reportUrl=/","reportUrl="+e)?.replace("agentUri=/","agentUri="+e)}function setDynatraceConfiguration(t,e){const n=window.srcPath;if(t&&e){const i=adjustDtConfigForCORS(e,n),d=document.createElement("script");d.setAttribute("src",n+t),d.setAttribute("data-dtconfig",i),document.getElementById("kraft-container").appendChild(d)}} setJwtAndFrontendConfiguration('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiRU5EVVNFUiIsImNvcnJlbGF0aW9uSWQiOiI1NjM2N2JhMC1iMjgzLTQzNWYtYjFhYi00MTg5ZWRlNWY2NTAiLCJmbGFncyI6eyJ2ZXJ0cmFnc2FlbmRlcnVuZ2VuRW5hYmxlZCI6dHJ1ZSwibWF6UmVnaXN0cmF0aW9uRW5hYmxlZCI6ZmFsc2UsImNpYW1FbmFibGVkQVpNU1VzZXJzIjpmYWxzZSwiY2lhbUVuYWJsZWRBbWlzQWdlbnRzIjpmYWxzZSwiY2lhbUVuYWJsZWRDYWxsY2VudGVyRGlyZWt0IjpmYWxzZSwiY2lhbUVuYWJsZWRTRFdEVkVVc2VycyI6ZmFsc2UsImNpYW1FbmFibGVkQW5vbnltVXNlcnMiOmZhbHNlfX0.FhbyjObrjPgWGC3Y6aqYh9IoCbvUn9Q5QbpOHVcNIOA','{"telefonieKontaktformularUrl":"https://www.allianz.de/service/kontaktformular/?ika-channel=AZDE&ika-id=4201#/ika?ika-channel=AZDE&ika-id=4201","ikaModuleUrl":"https://ika.allianz.de","grnryUrl":"https://demo.alvary.grnry.io/api/com.snowplowanalytics.snowplow/tp2","agencySearchWidgetUrl":"https://ags-service.allianz.de","openTrustCookiesConsentNoticeScriptUrl":"f756bcd7-b2ff-4c1a-b4f8-dd0b98533f14","stage":"prod","versionkraft":"2.200.1163-bff-az-fcpbuild"}'); initializeScripts('5b3b2195d64c8e88', 'edc1c4074174ca1d', '1274e31a108e4e39', '8d05090055995243', '5dde57fa7b3871e5'); setDynatraceConfiguration('','');