!async function(){var e,t=window.location.search.substring(1),o=(e=t)&&""!==e?JSON.parse('{"'+e.replace(/^(.*)\?/,"").split(/[&;]\s?/g).map((function(e){return e.replace(/=/,'":"')})).join('","')+'"}',(function(e,t){return""===e?t:decodeURIComponent(t)})):{},r={};if(document.cookie&&document.cookie.split(/\s*;\s*/).forEach((function(e){e=e.split(/\s*=\s*/),r[e[0]]=e.splice(1).join("=")})),o.StoreGuid&&(r._storeID=o.StoreGuid,document.cookie="_storeID="+o.StoreGuid+"; path=/;"),o.SecurityToken&&o.hasOwnProperty("ShowThemeAsDraft")){const e=(!!o.ShowThemeAsDraft).toString();r._showThemeAsDraft=e,document.cookie="_showThemeAsDraft="+e+"; path=/;"}var s="true"===r._showThemeAsDraft?"true":"false",n=window.location.href;n.endsWith("/")||(n+="/");var[,,i]=n.toLowerCase().includes("ustorethemes")?/(.*?\/ustorethemes\/.*?\/\d+)(\/[a-z]{2}-[a-z]+[?/]|$)/i.exec(n):/(.*?)(\/[a-z]{2}-[a-z]+[?/]|$)/i.exec(n);i=i.replace(/\//g,""),document.writeln('<link type="text/css" rel="stylesheet" as="style" href="'+window.uStoreConfig.uStoreRemoteServerUrl+"/uStoreRestAPI/v1/store/resourceByUrl?url="+encodeURIComponent(n)+"&type=2&cultureCode="+i+"&isDraft="+s+'"/>'),document.writeln('<link type="text/css" rel="stylesheet" as="style" href="'+window.uStoreConfig.uStoreRemoteServerUrl+"/uStoreRestAPI/v1/store/resourceByUrl?url="+encodeURIComponent(n)+"&type=3&cultureCode="+i+"&isDraft="+s+'"/>'),document.writeln('<link type="text/css" rel="stylesheet" as="style" href="'+window.uStoreConfig.uStoreRemoteServerUrl+"/uStoreRestAPI/v1/store/resourceByUrl?url="+encodeURIComponent(n)+"&type=4&cultureCode="+i+"&isDraft="+s+'"/>')}();