").replace(/ {4}/g," ")}function run(){try{window.data={createTime:"Wed, 18 Oct 2023 19:29:53 +08:00",BaseURL:{menu:"https://service.dotcook.tw/m1.18",edm:""},Proxy:{order:"https://order1.dotcook.tw"}},console.log("[BUILD_TIME]",window.data.createTime);const o=parseSearch();if(o.t){const e=window.data.BaseURL.menu,t=window.data.BaseURL[o.product]||e,n=window.data.Proxy.order,[r,c]=location.pathname.split("/").slice(1),s=JSON.parse(window.atob(o.sso||"e30="));s.baseURL=`${n}/store/${c}`,s.token=o.token||s.token||"";const a=[`sso=${btoa(JSON.stringify(s))}`];Object.keys(o).forEach(e=>{["sso","product"].includes(e)||a.push(`${e}=${o[e]}`)});const i=`${t}/${r}/${c}?${a.join("&")}`;location.href=i}else{const{origin:e,pathname:t}=location,n=[`t=${(new Date).getTime()}`];Object.keys(o).forEach(e=>{n.push(`${e}=${o[e]}`)});const r=`${e}${t}?${n.join("&")}`;location.href=r}}catch(o){debug({error:o.toString(),data:{createTime:"Wed, 18 Oct 2023 19:29:53 +08:00",BaseURL:{menu:"https://service.dotcook.tw/m1.18",edm:""},Proxy:{order:"https://order1.dotcook.tw"}}})}}