(()=>{if(!(typeof window.ometria<"u"&&"function"==typeof ometria.init)){typeof window.ometria<"u"&&(window.ometria.init=function(){});var t=navigator.cookieEnabled||"cookie"in document&&(0>2,o=(3&e)<<4|(e=t.charCodeAt(s++))>>4,a=(15&e)<<2|(n=t.charCodeAt(s++))>>6,r=63&n,isNaN(e)?a=r=64:isNaN(n)&&(r=64),c=c+d._keyStr.charAt(i)+d._keyStr.charAt(o)+d._keyStr.charAt(a)+d._keyStr.charAt(r);return c},_utf8_encode:function(t){t=t.replace(/\r\n/g,` `);for(var e="",n=0;n{var t=S("OMud");try{return t?JSON.parse(t):null}catch{return null}})(),t&&(bt.existed=!0,t=t.split("|"),bt.set("cid",t[0]),bt.set("sid",t[1]),bt.set("slt",parseInt(t[2])),bt.set("nses",parseInt(t[3])),bt.set("src",(t[4]||"").replace(/\*/g,"|")),q("OMuser")),o&&(bt.existed=!0,bt.set("uiid",o.id),q("OMud")),bt.saveIfDirty(),kt.cor=b(16),bt.get("cid")||(s("NEW COOKIE ID"),J()),kt.cid=bt.get("cid"),kt.uiid=bt.get("uiid"),kt.uiid?s("Identified: "+kt.uiid):s("Not identified"),kt.dtouch="ontouchstart"in window||"onmsgesturechange"in window?1:0,kt.dsize=screen.width+"x"+screen.height,kt.enc=document.characterSet||document.charset;var O,n,t=It(),o=It(document.referrer),a=(o==t&&(o=null),St(t)),p=St(o),m=B(window.location.search),x=(m.contains("om_user")?window.setTimeout(function(){ometria.identify(m.get("om_user")),window.history&&window.history.replaceState&&window.history.replaceState({},"",location.href.replace(/om_user=[^&]+&?/,""))},100):m.contains("om_profile")?window.setTimeout(function(){ometria.identify("omid:"+m.get("om_profile")),window.history&&window.history.replaceState&&window.history.replaceState({},"",location.href.replace(/om_profile=[^&]+&?/,""))},100):m.contains("kmi")&&window.setTimeout(function(){ometria.identify(m.get("kmi"))},100),(t=>t.contains("om_campaign")?t.get("om_campaign"):"")(m)),A=Math.floor((new Date).getTime()/1e3),y=bt.getInt("slt",0),R=!1,g=!1,h=!1;if((y=A-y)>=vt.session_timeout&&(g=!0),o&&a!=p){R=!0,kt.rurl=o,600t&&7<=(t=t.split("|")).length?(t=parseInt(t[6]),G()-t):null)(bt.get("src"))?(s("SOURCE CHANGED: "+bt.get("sid")),bt.set("ecamp",x),bt.set("src",a),kt.cnew&&bt.set("osrc",a)):s("SOURCE CONTINUED: "+bt.get("sid"))),bt.set("slt",A),kt.tlast=y,kt.sid=bt.get("sid"),kt.nses=bt.getInt("nses"),kt.src=bt.get("src"),kt.osrc=bt.get("osrc"),kt.osts=bt.get("osts"),kt.ecamp=bt.get("ecamp",""),kt.tids=bt.get("tids"),kt.url=It(),bt.save();var P=!1,L=kt.nses&&kt.nses<=1,D=null,v={},_=[];_.push(function(){try{document.body.addEventListener("change",function(t){t=t.target;("email"==t.type||t.name&&t.name.match(/email/i))&&ometria&&ometria.identify(t.value)},!1)}catch(t){wt(t)}}),_.push(function(){wt("Marketing Consent plugin");try{var a,r,t,e,c,n,i,o,s=function(){var t=r.get("stored_identity",null),e=r.get("stored_profile",null);if(t){wt("Consent upgraded to marketing - sending stored identity: "+t);var n=null;if(e)try{n=JSON.parse(e)}catch(t){wt("Error parsing stored profile data: "+t)}return c.call(ometria,t,n),r.set("stored_identity",""),r.set("stored_profile",""),!0}return!1},d=function(){wt("Consent downgraded to analytics - moving identity to consent storage");var t=ometria.getIdentity&&ometria.getIdentity();if(t){var e=r.get("stored_identity",null);if(wt(e&&e!==t?"Warning: Overwriting existing stored identity ("+e+") with current identity ("+t+")":e===t?"Current identity already stored in consent cookie: "+t:"No existing stored identity - storing current identity: "+t),r.set("stored_identity",t),!r.get("stored_profile",null))try{var n=new T("ometria",365,vt.cookie_domain).get("profile_data");n&&(r.set("stored_profile",JSON.stringify(n)),wt("Profile data stored in consent cookie"))}catch(t){wt("Could not retrieve profile data during downgrade: "+t)}ometria.clearIdentity&&"function"==typeof ometria.clearIdentity?(ometria.clearIdentity(),wt("Identity cleared from main cookie during consent downgrade")):wt("Warning: Could not clear identity from main cookie")}};"u" PID: "+s.product_id+" (qty: "+r.quantity+")")}catch{}break}}}x=[]}var d=bt.get("shopify_bskt_url"),d=g(d);e.url=0{if(t&&1===t.nodeType){var e,n,i,o,a,r=(t.tagName||"").toLowerCase();if("input"===r||"textarea"===r)return r=(t.getAttribute("type")||"").toLowerCase(),e=(t.getAttribute("name")||"").toLowerCase(),n=(t.getAttribute("id")||"").toLowerCase(),i=(t.getAttribute("placeholder")||"").toLowerCase(),o=(t.getAttribute("aria-label")||"").toLowerCase(),a=(t.getAttribute("autocomplete")||"").toLowerCase(),t=(t.getAttribute("inputmode")||"").toLowerCase(),"email"===r||-1!==e.indexOf("email")||-1!==n.indexOf("email")||-1!==i.indexOf("email")||-1!==o.indexOf("email")||"email"===a||"email"===t}})(e)||i.has(e)||p(e)||(i.add(e),e.addEventListener("change",t=function(){if(f())o();else{var t=(e.value||"").trim();if(ot.test(t)&&window.ometria&&"function"==typeof ometria.identify){try{sessionStorage.setItem("__omer_anon_email",t.toLowerCase())}catch{}ometria.identify(t)}}},!0),n.push([e,t]))}if(f())o();else{for(var e=document.querySelectorAll("input,textarea"),a=0;a{for(var e="function"==typeof t.composedPath?t.composedPath():[t.target],n=0;n{for(var e=t&&"function"==typeof t.composedPath?t.composedPath():[t&&t.target],n=0;n{try{var t=await fetch(o,{method:"GET",headers:{"user-agent":e,"x-token":i,Accept:"application/json","Content-Type":"application/json"}});return t.ok?await t.json():(s("Error with response"),a)}catch{return s("Error fetching profile information"),a}})()}s("User is not identified")}else s("Fetch not supported");return a},v.setPageType=function(t){f=t},v.setPageData=function(t){l=t},v.linkSession=function(t){kt.lnk=t?"dsig":""},v.init=function(t,e,n){wt("Initialize phase 1 called"),n&&(kt.site=n),document.body?v.init2(t,e):setTimeout(function(){v.init(t,e)},25)},v.init2=function(t,e){wt("Initialize phase 2 called"),f=t||null,l=e||{};for(var n=0;n<_.length;n++)try{wt("Calling plugin: "+n),_[n](),wt("Done plugin: "+n)}catch(t){wt(t)}var i=It();if(vt.page_types)for(n=0;n{for(var n=[],i=0;i{var n,i={};for(n in t)t.hasOwnProperty(n)&&(i[n]=e(t[n],n));return i})(t,e)}function It(t){return"u"{var t=t.split("="),e=t[0],t=t[1];s[e]=t?decodeURIComponent(t):""}),s&&s.exdate);d&&(r=new Date(d),isNaN(r.getTime())||(o=r,n=null,a="; SameSite=Strict; Secure"))}catch{}c=t+"=2_"+encodeURIComponent(e);n?(o.setDate(o.getDate()+n),c+=";expires="+o.toUTCString()):o&&(c+=";expires="+o.toUTCString()),i&&(c+=";domain="+i),a&&(c+=a),c+=";path=/",document.cookie=c}function S(t){var e=document.cookie+"";if(0{for(var n="360.cn:q|duckduckgo:q|about:terms|alice:qs|aol:q|aol:query|ask:q|avg:q|babylon:q|baidu:wd|biglobe:q|bing:q|cnn:query|comcast:q|conduit:q|daum:q|eniro:search_word|go.mail.ru:q|goo.ne:MT|google:q|images.google:q|incredimail:q|kvasir:q|live:q|lycos:q|lycos:query|mamma:q|msn:q|najdi:q|naver:query|netscape:query|onet:qt|ozu:q|pchome:q|rakuten:qt|rambler:query|search-results:q|search.centrum.cz:q|seznam:q|startsiden:q|terra:query|virgilio:qs|voila:rdata|wp:szukaj|yahoo:p|yahoo:q|yam:k|yandex:text".split("|"),i=M(e),o="."+t+".",a=0;a