!function(){var e,t=(e=window.location.search.substring(1))&&""!==e?JSON.parse('{"'+e.replace(/^(.*)\?/,"").split(/[&;]\s?/g).map((function(e){return e.replace(/=/,'":"')})).join('","')+'"}',(function(e,t){return""===e?t:decodeURIComponent(t)})):{},o={};document.cookie&&document.cookie.split(/\s*;\s*/).forEach((function(e){e=e.split(/\s*=\s*/),o[e[0]]=e.splice(1).join("=")})),t.StoreGuid&&(o._storeID=t.StoreGuid,document.cookie="_storeID="+t.StoreGuid+"; path=/;");var r="true"===o._showThemeAsDraft?"true":"false",n=window.location.href;n.endsWith("/")||(n+="/");var[,,s]=n.toLowerCase().includes("ustorethemes")?/(.*?\/ustorethemes\/.*?\/\d+)(\/[a-z]{2}-[a-z]+[?/]|$)/i.exec(n):/(.*?)(\/[a-z]{2}-[a-z]+[?/]|$)/i.exec(n);if(s=s.replace(/\//g,""),n&&s&&n.length>0){var c=s;window.onload=function(){fetch("/uStoreRestAPI/v1/store/resourceByUrl?url="+encodeURIComponent(n)+"&type=5&cultureCode="+c+"&isDraft=false").then((function(e){return e.text()})).then((function(e){const t=e.match(/UA-[0-9]*-[0-9]/),o=e.match(/<script(.*)<\/script>/s);if(t&&t.length>0)r=window,n=document,s="script",c="ga",r.GoogleAnalyticsObject=c,r[c]=r[c]||function(){(r[c].q=r[c].q||[]).push(arguments)},r[c].l=1*new Date,a=n.createElement(s),i=n.getElementsByTagName(s)[0],a.async=1,a.src="https://www.google-analytics.com/analytics.js",i.parentNode.insertBefore(a,i),window.ga("create",t[0],"auto"),window.ga("send","pageview",window.location.asPath);else if(o&&o.length>0){const e=(new DOMParser).parseFromString(o[0],"text/html").getElementsByTagName("script"),t=document.getElementsByTagName("script")[0];Array.from(e).forEach((e=>{const o=document.createElement("script");Array.from(e.attributes).forEach((e=>{o.setAttribute(e.name,e.value)})),o.textContent=e.textContent,t.parentNode.insertBefore(o,t)}))}var r,n,s,c,a,i}))},document.writeln('<script type="application/javascript" src="'+window.uStoreConfig.uStoreRemoteServerUrl+"/uStoreRestAPI/v1/store/resourceByUrl?url="+encodeURIComponent(n)+"&type=1&cultureCode="+c+'&isDraft=false"><\/script>'),document.writeln('<script type="application/javascript" src="'+window.uStoreConfig.uStoreRemoteServerUrl+"/uStoreRestAPI/v1/store/resourceByUrl?url="+encodeURIComponent(n)+"&type=6&cultureCode="+c+"&isDraft="+r+'"><\/script>')}}();