PageSourceSearch

https://gentcreate.com/cdn/shop/t/208/assets/gcx-kit.js?v=83349340186092005521790965521

js gentcreate.com collected 2026-10-06 19:28:22 UTC 51,477 bytes, 2 lines download raw bytes

1(function(){"use strict";if(window.GCX&&window.GCX.__kit)return;var GCX=window.GCX=window.GCX||{};GCX.__kit="1.7.1";var doc=document,mqReduce=window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)"):null;function reduced(){return!!(mqReduce&&mqReduce.matches)}function toArr(list){return Array.prototype.slice.call(list||[])}function within(root,sel){root=root||doc;var out=root.querySelectorAll?toArr(root.querySelectorAll(sel)):[];return root.nodeType===1&&root.matches&&root.matches(sel)&&out.unshift(root),out}function num(v,d){var n=parseFloat(v);return isFinite(n)?n:d}function setText(el,t){el&&el.textContent!==t&&(el.textContent=t)}var uid=0,I18N_DEFAULT={prev:"Previous",next:"Next",from:"From [price]",addToCart:"Add to Cart",soldOut:"Sold Out"},i18nCache=null,i18nDone=!1;function loadI18n(){var out={};for(var k in I18N_DEFAULT)out[k]=I18N_DEFAULT[k];return toArr(doc.querySelectorAll('script[type="application/json"][data-gcx-i18n]')).forEach(function(el){try{var o=JSON.parse(el.textContent||"{}");for(var key in o)Object.prototype.hasOwnProperty.call(o,key)&&o[key]!=null&&o[key]!==""&&(out[key]=o[key])}catch(e){}}),out}Object.defineProperty(GCX,"i18n",{configurable:!0,get:function(){return(!i18nCache||!i18nDone)&&(i18nCache=loadI18n(),i18nDone=doc.readyState!=="loading"),i18nCache}}),GCX.t=function(key,fb){var v=GCX.i18n[key];return v!=null&&v!==""?v:fb!=null?fb:""},GCX.tpl=function(str,map){return str=str==null?"":String(str),map?str.replace(/\[([a-z0-9_]+)\]|\{([a-z0-9_]+)\}/gi,function(m,a,b){var k=a||b;return Object.prototype.hasOwnProperty.call(map,k)&&map[k]!=null?String(map[k]):m}):str},GCX.lang=function(){return(doc.documentElement.getAttribute("lang")||"en").trim()||"en"},GCX.dir=function(){return(doc.documentElement.getAttribute("dir")||"").toLowerCase()==="rtl"?"rtl":"ltr"};function intlLang(){var l=GCX.lang();return l.indexOf("-u-")===-1?l+"-u-nu-latn":l}GCX.num=function(n,opt){try{return new Intl.NumberFormat(intlLang(),opt||{maximumFractionDigits:1}).format(n)}catch(e){return String(n)}},GCX.pct=function(n,opt){var o={style:"percent",maximumFractionDigits:0};if(opt)for(var k in opt)o[k]=opt[k];try{return new Intl.NumberFormat(intlLang(),o).format(Number(n)/100)}catch(e){return n+"%"}},GCX.list=function(a,type){a=(a||[]).filter(function(x){return x!=null&&x!==""}).map(String);try{return new Intl.ListFormat(GCX.lang(),{style:"long",type:type||"conjunction"}).format(a)}catch(e){return a.join(", ")}},GCX.plural=function(n,forms){if(!forms)return String(n);if(typeof forms=="string")return GCX.tpl(forms,{n:GCX.num(n,{maximumFractionDigits:0}),count:GCX.num(n,{maximumFractionDigits:0})});var cat="other";if(n===0&&forms.zero!=null)cat="zero";else try{cat=new Intl.PluralRules(GCX.lang()).select(n)}catch(e){cat=n===1?"one":"other"}var f=forms[cat]!=null?forms[cat]:forms.other,nn=GCX.num(n,{maximumFractionDigits:0});return GCX.tpl(f==null?String(n):f,{n:nn,count:nn})},GCX.fromPrice=function(price,tpl){var t=tpl||GCX.t("from",I18N_DEFAULT.from);return t.indexOf("[price]")===-1&&t.indexOf("{price}")===-1&&(t=I18N_DEFAULT.from),GCX.tpl(t,{price:typeof price=="number"?money(price):String(price)})},GCX.slug=function(s){if(s==null)return null;var v=String(s);try{v=v.normalize("NFKD").replace(/[\u0300-\u036f]/g,"")}catch(e){}v=v.toLowerCase();try{v=v.replace(new RegExp("[^\\p{L}\\p{N}]+","gu"),"-")}catch(e){v=v.replace(/[^a-z0-9]+/g,"-")}return v=v.replace(/^-+|-+$/g,""),v||null};var CHEV={prev:'<svg viewBox="0 0 6 9" aria-hidden="true" focusable="false"><path d="M5 8.5l-4-4 4-4" stroke="currentColor" fill="none" stroke-linecap="square"/></svg>',next:'<svg viewBox="0 0 6 9" aria-hidden="true" focusable="false"><path d="M1 8.5l4-4-4-4" stroke="currentColor" fill="none" stroke-linecap="square"/></svg>'};function makeChev(dir,label,small){var b=doc.createElement("button");return b.type="button",b.className="gcx-chev gcx-chev--"+dir+(small?" gcx-chev--sm":""),b.setAttribute("aria-label",label),b.innerHTML=CHEV[dir],b}function directChild(parent,cls){for(var c=parent.firstElementChild;c;c=c.nextElementSibling)if(c.classList.contains(cls))return c;return null}function hermite(x0,x1,m0,k){var k2=k*k,k3=k2*k;return(2*k3-3*k2+1)*x0+(k3-2*k2+k)*m0+(3*k2-2*k3)*x1}function hermiteD(x0,x1,m0,k){var k2=k*k;return(6*k2-6*k)*x0+(3*k2-4*k+1)*m0+(6*k-6*k2)*x1}function chevMs(d){return Math.round(Math.min(520,380+30*Math.log(1+Math.abs(d)/100)/Math.LN2))}function nearestIn(list,x){var best=null;return list.forEach(function(p){(best===null||Math.abs(p-x)<Math.abs(best-x))&&(best=p)}),best}function motion(row,track){if(track.__gcxMotion)return track.__gcxMotion;var raf=0,cur=null,lastT=0,lastX=0,saved=null,snapType="none",wait=null,wrote=0;function isRtl(){return getComputedStyle(track).direction==="rtl"}function maxS(){return Math.max(0,track.scrollWidth-track.clientWidth)}function clampX(x){var m=maxS();return isRtl()?Math.min(0,Math.max(-m,x)):Math.min(m,Math.max(0,x))}function hold(){saved||(snapType=getComputedStyle(track).scrollSnapType||"none",saved=[track.style.getPropertyValue("scroll-snap-type"),track.style.getPropertyPriority("scroll-snap-type"),track.style.getPropertyValue("scroll-behavior"),track.style.getPropertyPriority("scroll-behavior")],track.style.setProperty("scroll-snap-type","none","important"),track.style.setProperty("scroll-behavior","auto","important"))}function letGo(){saved&&(saved[0]?track.style.setProperty("scroll-snap-type",saved[0],saved[1]):track.style.removeProperty("scroll-snap-type"),saved[2]?track.style.setProperty("scroll-behavior",saved[2],saved[3]):track.style.removeProperty("scroll-behavior"),saved=null)}function halt(){endWait(),raf&&(cancelAnimationFrame(raf),raf=0),cur=null,row.classList.remove("gcx-settling")}function stop(){halt(),letGo()}function jump(to){halt(),hold(),track.scrollLeft=clampX(to),letGo()}function frame(now){raf=0;var c=cur;if(c){if(c.t0!==null&&Math.abs(track.scrollLeft-wrote)>1.5){snapping()?catchRow(!1,0):stop();return}c.t0===null&&(c.t0=now);var k=Math.min(1,Math.max(0,(now-c.t0)/c.dur)),x=k<1?hermite(c.x0,c.x1,c.m0,k):c.x1;track.scrollLeft=x,wrote=track.scrollLeft,lastT=now,lastX=x,k<1?raf=requestAnimationFrame(frame):stop()}}
1function run(to,dur,v0){endWait(),to=clampX(to);var moving=!!(cur&&cur.t0!==null),x0=moving?lastX:track.scrollLeft;v0==null&&(v0=0,moving&&(v0=hermiteD(cur.x0,cur.x1,cur.m0,Math.min(1,Math.max(0,(lastT-cur.t0)/cur.dur)))/cur.dur));var d=to-x0;if(reduced()||Math.abs(d)<.5){jump(to);return}var m0=v0*dur,r=m0/d;if(r>3)dur=Math.max(120,3*d/v0),m0=3*d;else if(r<-1){for(var tb=Math.max(200,Math.min(dur,-3*d/v0)),fits=!1,n=0;n<4&&!fits;n++){var mb=v0*tb,xe=hermite(x0,to,mb,mb/(3*mb-6*d));Math.abs(clampX(xe)-xe)<.5?fits=!0:tb*=.8}fits?(dur=tb,m0=v0*tb):m0=-d}hold(),row.classList.add("gcx-settling"),cur={x0:x0,x1:to,m0:m0,dur:dur,t0:moving?lastT:null},raf||(raf=requestAnimationFrame(frame))}function snaps(){var cs=getComputedStyle(track),type=saved?snapType:cs.scrollSnapType||"none";if(type==="none"||type.indexOf("y")===0||type.indexOf("block")===0)return null;for(var tr=track.getBoundingClientRect(),bl=track.clientLeft,viewL=tr.left+bl+num(cs.scrollPaddingLeft,0),viewR=tr.left+bl+track.clientWidth-num(cs.scrollPaddingRight,0),sl=track.scrollLeft,r=isRtl(),pts=[],stop2=!1,c=track.firstElementChild;c;c=c.nextElementSibling)if(c.offsetWidth){var ccs=getComputedStyle(c),al=String(ccs.scrollSnapAlign||"none").split(" "),a=al[al.length-1];if(a!=="none"){var cr=c.getBoundingClientRect(),ml=num(ccs.scrollMarginLeft,0),mr=num(ccs.scrollMarginRight,0),p;a==="center"?p=sl+(cr.left-ml+cr.right+mr)/2-(viewL+viewR)/2:a==="start"!==r?p=sl+cr.left-ml-viewL:p=sl+cr.right+mr-viewR,pts.push(clampX(p)),ccs.scrollSnapStop==="always"&&(stop2=!0)}}if(!pts.length)return null;var mandatory=type.indexOf("mandatory")!==-1;if(!mandatory){var m=maxS();pts.push(r?-m:0,r?0:m)}return pts.sort(function(x,y){return x-y}),{pts:pts,mandatory:mandatory,stop:stop2}}function step(dir,px,mode){var r=isRtl(),sgn=r?-1:1,here=track.scrollLeft,ref=(cur?cur.x1:here)*sgn,one=mode==="item"||parseFloat(mode)>1,want=ref+(px>0?px:Math.max(track.clientWidth*.8,120))*dir,to=null,s=snaps();if(s){var pts=[];s.pts.forEach(function(p){p*=sgn,(dir>0?p>ref+1:p<ref-1)&&pts.push(p)}),pts.length?(pts.sort(function(a,b2){return(a-b2)*dir}),to=s.stop?pts[0]:nearestIn(pts,want),!one&&!s.mandatory&&Math.abs(to-want)>track.clientWidth*.4&&(to=want)):to=dir>0?maxS():0}else if(one){for(var cs=getComputedStyle(track),pad=num(r?cs.paddingRight:cs.paddingLeft,0),tr=track.getBoundingClientRect(),line=r?tr.right-pad:tr.left+pad,at0=here*sgn,it=track.firstElementChild;it;it=it.nextElementSibling)if(it.offsetWidth){var b=it.getBoundingClientRect(),at=at0+(r?line-b.right:b.left-line);(dir>0?at>ref+2&&(to===null||at<to):at<ref-2&&(to===null||at>to))&&(to=at)}to===null&&(to=dir>0?maxS():0)}else to=want;to=clampX(to*sgn);var from=cur&&cur.t0!==null?lastX:here;run(to,chevMs(to-from))}var QUIET=120,TOUCH_LOST=3e3;function snapping(){var t=saved?snapType:getComputedStyle(track).scrollSnapType||"none";return t!=="none"&&t.indexOf("y")!==0&&t.indexOf("block")!==0}function arm(){clearTimeout(wait.tm),wait.tm=setTimeout(settle,wait.touch?TOUCH_LOST:QUIET)}function onLift(e){!wait||e.touches&&e.touches.length||(wait.touch=!1,arm())}function endWait(){wait&&(clearTimeout(wait.tm),wait.touched&&(window.removeEventListener("touchend",onLift,!0),window.removeEventListener("touchcancel",onLift,!0)),wait=null)}function catchRow(touch,hint){if(!wait){var x=track.scrollLeft,moved=cur&&cur.t0!==null?x-wrote:0,d=Math.abs(moved)>1.5?moved:cur?cur.x1-x:0;halt(),wait={dir:d>.5?1:d<-.5?-1:0,ref:x,own:Math.abs(moved)>1.5,touch:!1,touched:!1,tm:0}}hint&&(wait.dir=hint),touch&&(wait.touched||(window.addEventListener("touchend",onLift,{capture:!0,passive:!0}),window.addEventListener("touchcancel",onLift,{capture:!0,passive:!0})),wait.touch=wait.touched=!0),arm()}function settle(){var w=wait;if(w&&(endWait(),!row.classList.contains("gcx-dragging"))){var s=snaps(),x=track.scrollLeft,to=null;if(s){var near=nearestIn(s.pts,x),cw=track.clientWidth,ahead=null,back=null;s.pts.forEach(function(p){w.dir&&((p-x)*w.dir>-.5?(ahead===null||Math.abs(p-x)<Math.abs(ahead-x))&&(ahead=p):(back===null||Math.abs(p-x)<Math.abs(back-x))&&(back=p))}),to=ahead!==null?ahead:near,w.own&&ahead!==null&&back!==null&&Math.abs(x-back)<=Math.min(40,Math.abs(ahead-back)/4)&&(to=back),!s.mandatory&&Math.abs(to-x)>cw*.4&&(to=Math.abs(near-x)<=cw*.4?near:null)}if(to===null){letGo();return}run(to,Math.min(720,Math.max(220,3.6*Math.abs(to-x))))}}return track.addEventListener("wheel",function(e){if(!(!raf&&!wait)){if(!snapping()){raf&&stop();return}var dx=e.deltaX||(e.shiftKey?e.deltaY:0);
1dx&&catchRow(!1,dx>0?1:-1)}},{passive:!0}),track.addEventListener("touchstart",function(){if(!(!raf&&!wait)){if(!snapping()){raf&&stop();return}catchRow(!0,0)}},{passive:!0}),track.addEventListener("scroll",function(){if(wait){var x=track.scrollLeft,dx=x-wait.ref;Math.abs(dx)>2&&(wait.dir=dx>0?1:-1,wait.ref=x,wait.own=!0),arm()}},{passive:!0}),track.addEventListener("scrollend",function(){wait&&wait.touched&&!wait.touch&&(clearTimeout(wait.tm),settle())},{passive:!0}),track.__gcxMotion={run:run,step:step,stop:stop,halt:halt,jump:jump,hold:hold,letGo:letGo,snaps:snaps,clampX:clampX,maxS:maxS,rtl:isRtl,busy:function(){return!!raf},held:function(){return!!saved},caught:function(){return!!wait},goal:function(){return cur?cur.x1:null}},track.__gcxMotion}var DRAG_MIN=5,DRAG_SKIP='input,textarea,select,option,[contenteditable]:not([contenteditable="false"]),model-viewer,[data-gcx-nodrag]',eatClick=null;window.addEventListener("click",function(e){var t=eatClick;!t||!e.isTrusted||(eatClick=null,e.target&&e.target.nodeType===1&&t.contains(e.target)&&(e.preventDefault(),e.stopImmediatePropagation()))},!0);function dragRow(row,track){if(track.__gcxDrag||row.getAttribute("data-gcx-drag")==="off"||track.getAttribute("data-gcx-drag")==="off")return;track.__gcxDrag=!0,row.classList.add("gcx-drag");var mo=motion(row,track),st=null;function target(proj,from){var s=mo.snaps();if(!s)return mo.clampX(proj);var best=nearestIn(s.pts,proj);if(s.stop){var home=nearestIn(s.pts,from),i=s.pts.indexOf(home),lo=s.pts[Math.max(0,i-1)],hi=s.pts[Math.min(s.pts.length-1,i+1)];best=Math.min(hi,Math.max(lo,best)),Math.abs(proj-from)>1&&best===home&&Math.abs(proj-home)>track.clientWidth*.2&&(best=proj>home?hi:lo)}return!s.mandatory&&Math.abs(best-proj)>track.clientWidth*.4?mo.clampX(proj):best}function glide(to){var d=to-track.scrollLeft;if(Math.abs(d)<1||reduced()){mo.jump(to);return}var dur=Math.min(560,Math.max(240,Math.abs(d)*1.1));mo.run(to,dur,3*d/dur)}function end(e){if(!(!st||e&&e.pointerId!==st.id)){var s=st;if(st=null,doc.removeEventListener("selectstart",noSelect,!0),(s.on||s.caught)&&(eatClick=track,setTimeout(function(){eatClick===track&&(eatClick=null)},0)),!s.on){mo.held()&&glide(target(track.scrollLeft,track.scrollLeft));return}row.classList.remove("gcx-dragging");try{track.hasPointerCapture&&track.hasPointerCapture(s.id)&&track.releasePointerCapture(s.id)}catch(err){}var v=e&&e.timeStamp-s.lt<90?Math.max(-2.5,Math.min(2.5,s.v)):0,cur=track.scrollLeft;glide(target(cur-v*200,s.left))}}function noSelect(e){st&&st.on&&e.preventDefault()}track.addEventListener("pointerdown",function(e){if(!(e.pointerType!=="mouse"||e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)&&!(e.target&&e.target.closest&&e.target.closest(DRAG_SKIP))&&!(track.scrollWidth-track.clientWidth<=2)){var caught=mo.busy();caught&&mo.halt(),st={id:e.pointerId,x:e.clientX,left:track.scrollLeft,on:!1,v:0,lx:e.clientX,lt:e.timeStamp,caught:caught},doc.addEventListener("selectstart",noSelect,!0)}}),track.addEventListener("pointermove",function(e){if(!(!st||e.pointerId!==st.id)){if(!(e.buttons&1)){end(e);return}var dx=e.clientX-st.x;if(!st.on){if(Math.abs(dx)<=DRAG_MIN)return;st.on=!0,mo.hold(),row.classList.add("gcx-dragging");try{track.setPointerCapture(st.id)}catch(err){}try{var sel=window.getSelection&&window.getSelection();sel&&sel.rangeCount&&sel.removeAllRanges()}catch(err){}}e.preventDefault();var dt=e.timeStamp-st.lt;if(dt>0){var inst=(e.clientX-st.lx)/dt;st.v=dt>80?inst:st.v*.5+inst*.5,st.lx=e.clientX,st.lt=e.timeStamp}track.scrollLeft=st.left-dx}}),track.addEventListener("pointerup",end),track.addEventListener("pointercancel",end),track.addEventListener("lostpointercapture",function(e){st&&st.on&&e.pointerId===st.id&&end(e)}),track.addEventListener("dragstart",function(e){st&&e.preventDefault()})}function glideRow(row,track){if(track.__gcxGlide)return track.__gcxGlide;var mo=motion(row,track),st=null;function coast(v){if(reduced()||Math.abs(v)<.05){mo.letGo();return}var from=track.scrollLeft,to=mo.clampX(from+v*300);if(Math.abs(to-from)<1){mo.letGo();return}mo.run(to,900,v)}row.classList.add("gcx-drag");function noSelect(e){st&&st.on&&e.preventDefault()}function end(e){if(!(!st||e&&e.pointerId!==st.id)){var s=st;if(st=null,doc.removeEventListener("selectstart",noSelect,!0),(s.on||s.caught)&&(eatClick=track,setTimeout(function(){eatClick===track&&(eatClick=null)},0)),!!s.on){row.classList.remove("gcx-dragging");try{track.hasPointerCapture&&track.hasPointerCapture(s.id)&&track.releasePointerCapture(s.id)}catch(err){}var p=s.pts,last=p[p.length-1],v=0;
1e&&e.type!=="pointercancel"&&e.timeStamp-last[0]<80&&p.length>1&&last[0]>p[0][0]&&(v=(last[1]-p[0][1])/(last[0]-p[0][0])),v=Math.max(-2.5,Math.min(2.5,v)),coast(-v)}}}return track.addEventListener("pointerdown",function(e){if(!(e.pointerType!=="mouse"||e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)&&!(e.target&&e.target.closest&&e.target.closest(DRAG_SKIP))&&!(mo.maxS()<=2)){var caught=mo.busy();mo.stop(),st={id:e.pointerId,x:e.clientX,left:track.scrollLeft,on:!1,caught:caught,pts:[[e.timeStamp,e.clientX]]},doc.addEventListener("selectstart",noSelect,!0)}}),track.addEventListener("pointermove",function(e){if(!(!st||e.pointerId!==st.id)){if(!(e.buttons&1)){end(e);return}var dx=e.clientX-st.x;if(!st.on){if(Math.abs(dx)<=DRAG_MIN)return;st.on=!0,mo.hold(),row.classList.add("gcx-dragging");try{track.setPointerCapture(st.id)}catch(err){}try{var sel=window.getSelection&&window.getSelection();sel&&sel.rangeCount&&sel.removeAllRanges()}catch(err){}}for(e.preventDefault(),track.scrollLeft=st.left-dx,st.pts.push([e.timeStamp,e.clientX]);st.pts.length>2&&e.timeStamp-st.pts[0][0]>100;)st.pts.shift()}}),track.addEventListener("pointerup",end),track.addEventListener("pointercancel",end),track.addEventListener("lostpointercapture",function(e){st&&st.on&&e.pointerId===st.id&&end(e)}),track.addEventListener("dragstart",function(e){st&&e.preventDefault()}),track.__gcxDrag=!0,track.__gcxGlide={tile:function(dir){mo.step(dir,0,"item")},to:function(x){mo.run(x,chevMs(x-track.scrollLeft))},stop:mo.stop},track.__gcxGlide}function setupRow(row){if(row.__gcxRow)return row.__gcxRow.update(),row.__gcxRow;var track=row.querySelector("[data-gcx-track]")||row.querySelector(".gcx-scroll__track");if(!track)return null;var small=row.classList.contains("gcx-scroll--sm")||row.hasAttribute("data-gcx-chev-sm"),prev=directChild(row,"gcx-chev--prev"),next=directChild(row,"gcx-chev--next");prev||(prev=makeChev("prev",row.getAttribute("data-gcx-prev-label")||GCX.t("prev","Previous"),small),row.insertBefore(prev,row.firstChild)),next||(next=makeChev("next",row.getAttribute("data-gcx-next-label")||GCX.t("next","Next"),small),row.appendChild(next)),track.id||(track.id="gcx-track-"+ ++uid),prev.setAttribute("aria-controls",track.id),next.setAttribute("aria-controls",track.id);var raf=0;function schedule(){raf||(raf=requestAnimationFrame(update))}function rtl(){return getComputedStyle(track).direction==="rtl"}function gap(){return num(getComputedStyle(track).columnGap,0)||num(getComputedStyle(track).gap,0)||0}function firstItem(){for(var c=track.firstElementChild;c;c=c.nextElementSibling)if(c.offsetWidth)return c;return null}function stepSize(){var mode=row.getAttribute("data-gcx-step")||"";if(mode==="item"){var it=firstItem();if(it)return it.getBoundingClientRect().width+gap()}var f=parseFloat(mode);return f>0&&f<=1?track.clientWidth*f:f>1?f:Math.max(track.clientWidth*.8,120)}var glide=row.getAttribute("data-gcx-motion")==="glide"?glideRow(row,track):null,mo=motion(row,track);function go(dir){if(glide){glide.tile(dir);return}mo.step(dir,stepSize(),row.getAttribute("data-gcx-step")||"")}function flag(btn,on){btn.classList.toggle("is-off",!on);var ti=on?0:-1;btn.tabIndex!==ti&&(btn.tabIndex=ti),on?btn.hasAttribute("aria-hidden")&&btn.removeAttribute("aria-hidden"):btn.getAttribute("aria-hidden")!=="true"&&btn.setAttribute("aria-hidden","true")}function update(){if(raf=0,!!row.isConnected){var max=track.scrollWidth-track.clientWidth,over=max>2,p=Math.abs(track.scrollLeft),canPrev=over&&p>2,canNext=over&&p<max-2;row.classList.toggle("gcx-rtl",rtl());var a=doc.activeElement;if(a===prev&&!canPrev||a===next&&!canNext){var other=a===prev?canNext?next:null:canPrev?prev:null;other?other.focus():(track.hasAttribute("tabindex")||(track.tabIndex=-1),track.focus({preventScroll:!0}))}ownStop&&track.tabIndex!==(over?0:-1)&&(track.tabIndex=over?0:-1),row.classList.toggle("gcx-overflow",over),row.classList.toggle("gcx-can-prev",canPrev),row.classList.toggle("gcx-can-next",canNext),flag(prev,canPrev),flag(next,canNext)}}prev.addEventListener("click",function(){go(-1)}),next.addEventListener("click",function(){go(1)}),track.addEventListener("scroll",schedule,{passive:!0});var ownStop=(!track.hasAttribute("tabindex")||track.getAttribute("tabindex")==="-1")&&!track.querySelector('a[href],button,input,select,textarea,[tabindex]:not
1([tabindex="-1"])');if("ResizeObserver"in window){var ro=new ResizeObserver(schedule);ro.observe(track),toArr(track.children).forEach(function(c){ro.observe(c)}),"MutationObserver"in window&&new MutationObserver(function(muts){muts.forEach(function(m){toArr(m.addedNodes).forEach(function(n){n.nodeType===1&&ro.observe(n)})}),schedule()}).observe(track,{childList:!0})}else window.addEventListener("resize",schedule,{passive:!0}),window.addEventListener("load",schedule);toArr(track.querySelectorAll("img")).forEach(function(img){img.complete||img.addEventListener("load",schedule,{once:!0})}),glide||dragRow(row,track),row.classList.add("gcx-ready");var api={update:schedule,track:track,prev:prev,next:next,go:go,glide:glide};return row.__gcxRow=api,update(),api}GCX.scrollRows=function(root){return within(root||doc,"[data-gcx-scroll]").map(setupRow)},GCX.scrollRow=setupRow,GCX.glideTo=function(track,x){var row=track&&track.closest?track.closest("[data-gcx-scroll]"):null;return!row||!row.__gcxRow||row.__gcxRow.track!==track||!isFinite(x)?!1:(motion(row,track).run(x,chevMs(x-track.scrollLeft)),!0)};var PAGER_SKIP='a[href],button,label,summary,[role="button"],[role="radio"],[role="tab"],[role="slider"],[data-gcx-scroll],'+DRAG_SKIP;GCX.dragPager=function(el,o){if(!el||el.nodeType!==1||!o||typeof o.go!="function")return null;if(el.__gcxPager)return el.__gcxPager;var min=o.min>0?o.min:40,st=null,spring=0;function on(){try{return o.when?!!o.when():!0}catch(err){return!1}}function update(){el.classList.toggle("gcx-pager-on",on())}function follower(){var f=typeof o.follow=="function"?o.follow():o.follow;return f&&f.nodeType===1&&f!==el&&el.contains(f)?f:null}function lean(s,x){s.f&&s.f.style.setProperty("translate",x?x.toFixed(1)+"px 0":"0px 0")}function restore(s){s.f&&(s.saved?s.f.style.setProperty("translate",s.saved[0],s.saved[1]):s.f.style.removeProperty("translate"))}function springBack(s,from){if(!s.f)return;spring&&cancelAnimationFrame(spring.id);var t0=0,rec={s:s,id:0};spring=rec;function step(now){t0||(t0=now);var k=Math.min(1,(now-t0)/220),e=1-Math.pow(1-k,3);k<1?(lean(s,from*(1-e)),rec.id=requestAnimationFrame(step)):(restore(s),spring===rec&&(spring=0))}rec.id=requestAnimationFrame(step)}function stopSpring(){spring&&(cancelAnimationFrame(spring.id),restore(spring.s),spring=0)}function noSelect(e){st&&st.on&&e.preventDefault()}function end(e){if(!(!st||e&&e.pointerId!==st.id)){var s=st;if(st=null,doc.removeEventListener("selectstart",noSelect,!0),!!s.on){el.classList.remove("gcx-pager-held");try{el.hasPointerCapture&&el.hasPointerCapture(s.id)&&el.releasePointerCapture(s.id)}catch(err){}eatClick=el,setTimeout(function(){eatClick===el&&(eatClick=null)},0);var dx=s.dx,dy=s.dy,turn=e&&e.type!=="pointercancel"&&Math.abs(dx)>min&&Math.abs(dx)>Math.abs(dy)*1.4;if(!turn){springBack(s,s.lean);return}restore(s);var dir=dx<0?1:-1;getComputedStyle(el).direction==="rtl"&&(dir=-dir);try{o.go(dir)}catch(err){window.console&&console.error(err)}update()}}}el.addEventListener("pointerdown",function(e){e.pointerType!=="mouse"||e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||e.target&&e.target.closest&&e.target.closest(PAGER_SKIP)||(update(),on()&&(stopSpring(),st={id:e.pointerId,x:e.clientX,y:e.clientY,dx:0,dy:0,on:!1,f:null,saved:null,lean:0},doc.addEventListener("selectstart",noSelect,!0)))}),el.addEventListener("pointermove",function(e){if(!st){e.pointerType==="mouse"&&!e.buttons&&update();return}if(e.pointerId===st.id){if(!(e.buttons&1)){end(e);return}if(st.dx=e.clientX-st.x,st.dy=e.clientY-st.y,!st.on){if(Math.abs(st.dx)<=DRAG_MIN)return;st.on=!0,el.classList.add("gcx-pager-held");try{el.setPointerCapture(st.id)}catch(err){}try{var sel=window.getSelection&&window.getSelection();sel&&sel.rangeCount&&sel.removeAllRanges()}catch(err){}if(st.f=reduced()?null:follower(),st.f){var v=st.f.style.getPropertyValue("translate");st.saved=v?[v,st.f.style.getPropertyPriority("translate")]:null}}e.preventDefault();var cap=el.clientWidth*.25;st.lean=Math.max(-cap,Math.min(cap,st.dx/3)),lean(st,st.lean)}}),el.addEventListener("pointerup",end),el.addEventListener("pointercancel",end),el.addEventListener("lostpointercapture",function(e){st&&st.on&&e.pointerId===st.id&&end(e)}),el.addEventListener("dragstart",function(e){st&&e.preventDefault()}),el.addEventListener("click",function(){setTimeout(update,0)}),el.classList.add("gcx-pager"),update();var api={update:update};return el.__gcxPager=api,api};var twAll=[],twStopped=!1;function stopAllTypewriters(){twStopped=!0,twAll.forEach(function(t){t.stop()})}
1if(GCX.typewriter=function(input,opts){if(!input)return null;if(input.__gcxTw)return input.__gcxTw;opts=opts||{};var list=opts.examples||(input.getAttribute("data-gcx-typewriter")||"").split(",");list=list.map(function(s){return String(s).trim().toUpperCase()}).filter(Boolean),list.length||(list=["AK","MRL","TJW","CDB"]);var base=input.getAttribute("data-gcx-placeholder");base==null&&(base=input.getAttribute("placeholder")||"");var typeMs=num(opts.typeMs||input.getAttribute("data-gcx-type-ms"),150),delMs=num(opts.deleteMs||input.getAttribute("data-gcx-delete-ms"),75),holdMs=num(opts.holdMs||input.getAttribute("data-gcx-hold-ms"),1400),gapMs=num(opts.gapMs||input.getAttribute("data-gcx-gap-ms"),420),txt=base.length<=16?base.toUpperCase():"",i=txt?-1:0,phase=txt?"del":"type",timer=0,paused=!1,dead=!1,api={stop:function(){finish()},get running(){return!dead}};input.__gcxTw=api,input.setAttribute("data-gcx-placeholder",base);function finish(){dead||(dead=!0,clearTimeout(timer),timer=0,input.setAttribute("placeholder",base),io&&io.disconnect())}function later(ms){clearTimeout(timer),timer=setTimeout(tick,ms)}function tick(){if(timer=0,!dead){if(!input.isConnected){finish();return}if(!paused){if(doc.hidden){later(800);return}var word=list[i%list.length];phase==="type"?(txt=word.slice(0,txt.length+1),input.setAttribute("placeholder",txt),txt===word?(phase="hold",later(holdMs)):later(typeMs+Math.round(Math.random()*60))):phase==="hold"?(phase="del",later(delMs)):(txt=txt.slice(0,-1),input.setAttribute("placeholder",txt),txt?later(delMs):(phase="type",i++,later(gapMs)))}}}function engage(){stopAllTypewriters()}["focus","input","pointerdown","keydown"].forEach(function(ev){input.addEventListener(ev,engage)});var io=null;return twStopped||reduced()||input.value?(finish(),api):(twAll.push(api),"IntersectionObserver"in window&&(io=new IntersectionObserver(function(entries){entries.forEach(function(e){paused=!e.isIntersecting||doc.hidden,!paused&&!timer&&!dead&&later(300)})}),io.observe(input)),later(900),api)},mqReduce){var onReduce=function(){mqReduce.matches&&stopAllTypewriters()};mqReduce.addEventListener?mqReduce.addEventListener("change",onReduce):mqReduce.addListener&&mqReduce.addListener(onReduce)}var DIGIT_ZERO=[1632,1776,2406,3046,65296];function asciiFold(v){return String(v==null?"":v).replace(/[\uFF21-\uFF3A\uFF41-\uFF5A]/g,function(c){return String.fromCharCode(c.charCodeAt(0)-65248)}).replace(/[\u0660-\u0669\u06F0-\u06F9\u0966-\u096F\u0BE6-\u0BEF\uFF10-\uFF19]/g,function(c){for(var code=c.charCodeAt(0),i=0;i<DIGIT_ZERO.length;i++)if(code>=DIGIT_ZERO[i]&&code<=DIGIT_ZERO[i]+9)return String(code-DIGIT_ZERO[i]);return c})}GCX.cleanInfo=function(v){var up=asciiFold(v).toUpperCase(),kept=up.replace(/[^A-Z0-9]/g,""),dropped=up.replace(/\s+/g,"").length!==kept.length;return{value:kept.slice(0,5),dropped:dropped,tooLong:kept.length>5}},GCX.clean=function(v){return GCX.cleanInfo(v).value};function parseAnchor(a){if(!a)return null;if(typeof a=="string"){var p=a.split(/[\s,;]+/).filter(Boolean).map(parseFloat);a={x:p[0],y:p[1],w:p[2],rot:p[3],skew:p[4]}}return a}GCX.anchor=function(el,anchor){var host=el&&(el.classList.contains("gcx-engrave")?el:el.closest(".gcx-engrave"))||el,a=parseAnchor(anchor);if(!(!host||!a)){var s=host.style;isFinite(a.x)&&s.setProperty("--gcx-x",a.x+"%"),isFinite(a.y)&&s.setProperty("--gcx-y",a.y+"%"),isFinite(a.w)&&s.setProperty("--gcx-w",a.w+"%"),s.setProperty("--gcx-rot",(isFinite(a.rot)?a.rot:0)+"deg"),s.setProperty("--gcx-skew",(isFinite(a.skew)?a.skew:0)+"deg"),typeof anchor=="string"&&host.setAttribute("data-gcx-anchor",anchor)}},GCX.engrave=function(el,text,anchor){if(!el)return"";var host=el.classList.contains("gcx-engrave")?el:el.closest(".gcx-engrave")||el,t=el.classList.contains("gcx-engrave__text")?el:host.querySelector(".gcx-engrave__text"),v=GCX.clean(text);return anchor&&GCX.anchor(host,anchor),t&&(setText(t,v),t.setAttribute("data-text",v)),host.classList.toggle("gcx-has-text",!!v),v};function bindEngraveInput(input){if(input.__gcxEng)return;input.__gcxEng=!0;var hintTimer=0;function latinHint(){var msg=input.getAttribute("data-gcx-latin-msg"),sel=input.getAttribute("data-gcx-latin-hint"),el=null;try{el=sel?doc.querySelector(sel):null}catch(e){}!msg||!el||(el.__gcxHintOrig==null&&(el.__gcxHintOrig=el.textContent),setText(el,msg),el.classList.add("gcx-hint-on"),clearTimeout(hintTimer),hintTimer=setTimeout(function(){setText(el,el.__gcxHintOrig),el.__gcxHintOrig=null,el.classList.remove("gcx-hint-on")},3e3))}function run(fire){var raw=input.value,info=GCX.cleanInfo(raw),v=info.value;if(info.dropped&&latinHint(),raw!==v){var pos=input.selectionStart;input.value=v;try{pos!=null&&input.setSelectionRange(Math.min(pos,v.length),Math.min(pos,v.length))}catch(e){}}var sel=input.getAttribute("data-gcx-engrave");
1if(sel)try{toArr(doc.querySelectorAll(sel)).forEach(function(el){GCX.engrave(el,v)})}catch(e){}fire&&input.dispatchEvent(new CustomEvent("gcx:initials",{bubbles:!0,detail:{value:v,length:v.length,dropped:info.dropped,price:v&&typeof window.GC_PRICE=="function"?window.GC_PRICE(v):null,variant:v&&typeof window.GC_VARIANT=="function"?window.GC_VARIANT(v):null}}))}input.addEventListener("input",function(){run(!0)}),input.value&&run(!1)}var DEBUG=/[?&]gcx_debug=1/.test(location.search);function debugEngrave(host){if(!(!DEBUG||host.__gcxDbg)){host.__gcxDbg=!0,host.classList.add("gcx-debug");var t=host.querySelector(".gcx-engrave__text");t&&!t.textContent&&setText(t,"ABC"),host.addEventListener("click",function(e){var r=host.getBoundingClientRect(),cs=getComputedStyle(host),x=((e.clientX-r.left)/r.width*100).toFixed(1),y=((e.clientY-r.top)/r.height*100).toFixed(1),w=parseFloat(cs.getPropertyValue("--gcx-w"))||38.8,rot=parseFloat(cs.getPropertyValue("--gcx-rot"))||0,a=x+","+y+","+w+","+rot;GCX.anchor(host,a),window.console&&console.log('[GCX] data-gcx-anchor="'+a+'"',host)})}}var mvRequested=!1;function loadModelViewer(src){if(!(mvRequested||!src)){if(window.customElements&&window.customElements.get("model-viewer")){mvRequested=!0;return}mvRequested=!0;var s=doc.createElement("script");s.type="module",s.src=src,doc.head.appendChild(s)}}function freeze(mv,box,user){if(mv){mv.removeAttribute("auto-rotate");try{mv.autoRotate=!1}catch(e){}mv.setAttribute("interaction-prompt","none"),box&&box.classList.add(user===!1?"gcx-box3d--calm":"gcx-box3d--still")}}function freezeAll(){GCX.__still=!0,toArr(doc.querySelectorAll("[data-gcx-box3d]")).forEach(function(b){freeze(b.querySelector("model-viewer"),b,!0)})}function orbitRadius(mv,attr){var v=mv.getAttribute(attr),r=v&&v.split(/\s+/)[2];return r&&r!=="auto"?parseFloat(r):null}function setupBox(box){if(box.__gcxBox)return;var mv=box.querySelector("model-viewer");if(!mv)return;box.__gcxBox=!0;var src=box.getAttribute("data-model-viewer-src");GCX.__still?freeze(mv,box,!0):reduced()&&freeze(mv,box,!1);var mqDesk=window.matchMedia("(min-width: 768px)");function cam(){var k=mqDesk.matches?"d":"m",fov=box.getAttribute("data-gcx-fov-"+k),orbit=box.getAttribute("data-gcx-orbit-"+k),min=box.getAttribute("data-gcx-min-"+k),max=box.getAttribute("data-gcx-max-"+k);fov&&mv.setAttribute("field-of-view",fov),orbit&&mv.setAttribute("camera-orbit",orbit),min&&mv.setAttribute("min-camera-orbit",min),max&&mv.setAttribute("max-camera-orbit",max)}cam(),mqDesk.addEventListener?mqDesk.addEventListener("change",cam):mqDesk.addListener&&mqDesk.addListener(cam);var pts={};if(mv.addEventListener("pointerdown",function(e){if(e.pointerType==="mouse"){e.button===0&&freezeAll();return}pts[e.pointerId]=[e.clientX,e.clientY],Object.keys(pts).length>1&&freezeAll()},{passive:!0}),mv.addEventListener("pointermove",function(e){var p=pts[e.pointerId];if(p){var dx=Math.abs(e.clientX-p[0]),dy=Math.abs(e.clientY-p[1]);dx>10&&dx>dy&&freezeAll()}},{passive:!0}),["pointerup","pointercancel","lostpointercapture"].forEach(function(ev){mv.addEventListener(ev,function(e){delete pts[e.pointerId]},{passive:!0})}),mv.addEventListener("wheel",freezeAll,{passive:!0}),mv.addEventListener("keydown",function(e){/^(Arrow(Left|Right|Up|Down)|PageUp|PageDown|Home|End|\+|-|=|_)$/.test(e.key)&&freezeAll()}),mv.addEventListener("load",function(){box.classList.add("is-loaded")}),toArr(box.querySelectorAll("[data-gcx-zoom]")).forEach(function(btn){btn.addEventListener("click",function(){if(freezeAll(),typeof mv.getCameraOrbit=="function"){var o=mv.getCameraOrbit(),step=num(box.getAttribute("data-gcx-zoom-step"),.12)*o.radius,r=o.radius+(btn.getAttribute("data-gcx-zoom")==="in"?-step:step),lo=orbitRadius(mv,"min-camera-orbit"),hi=orbitRadius(mv,"max-camera-orbit");lo!=null&&(r=Math.max(lo,r)),hi!=null&&(r=Math.min(hi,r)),mv.cameraOrbit=o.theta+"rad "+o.phi+"rad "+r.toFixed(4)+"m"}})}),"IntersectionObserver"in window){var io=new IntersectionObserver(function(entries){entries.forEach(function(e){e.isIntersecting&&(loadModelViewer(src),io.disconnect())})},{rootMargin:"300px 0px"});io.observe(box)}else loadModelViewer(src)}GCX.box3d=function(root){within(root||doc,"[data-gcx-box3d]").forEach(setupBox)},GCX.stop3d=freezeAll,(function(){function atcEl(){return doc.querySelector(".Product__Info .ProductForm__AddToCart")||doc.querySelector(".ProductForm__AddToCart")}function boot(){var ticking=!1;function apply(){ticking=!1;var wrap=doc.querySelector(".cust-sticky-btn-container"),atc=atcEl();!wrap||!atc||wrap.classList.toggle("gc-sticky-armed",atc.getBoundingClientRect().bottom<70)}function onScroll(){ticking||(ticking=!0,requestAnimationFrame(apply))}window.addEventListener("scroll",onScroll,{passive:!0}),window.addEventListener("resize",onScroll,{passive:!0}),GCX.__armSticky=onScroll,apply()}doc.readyState==="loading"?doc.addEventListener("DOMContentLoaded",boot):boot()})();function sizePills(){toArr(doc.querySelectorAll(".product-upsell__pill, .gc-addons__label, .gcx-slab__label")).forEac
1h(function(pill){var panel=pill.closest(".product-upsell--drawer, .gc-addons, .gcx-slab");if(panel){var w=Math.ceil(pill.getBoundingClientRect().width);w>0&&(panel.style.setProperty("--gc-pill-w",w+"px"),panel.style.setProperty("--gcx-pill-w",w+"px"))}})}GCX.sizePills=sizePills,window.addEventListener("load",sizePills),window.addEventListener("resize",sizePills,{passive:!0}),doc.fonts&&doc.fonts.ready&&doc.fonts.ready.then(sizePills);function money(cents){var fmt=window.theme&&(window.theme.currencyCodeEnabled?window.theme.moneyWithCurrencyFormat:window.theme.moneyFormat)||"${{amount}}";if(window.Shopify&&typeof window.Shopify.formatMoney=="function")try{return window.Shopify.formatMoney(cents,fmt)}catch(e){}return"$"+(Number(cents)/100).toFixed(2)}GCX.money=money,GCX.priceChip=function(chip,price,isFrom){if(chip){var tpl=chip.getAttribute("data-gcx-from-tpl")||GCX.t("from",I18N_DEFAULT.from),parts=tpl.split(/\[price\]|\{price\}/),pre=(parts[0]||"").trim(),post=(parts[1]||"").trim(),elPre=chip.querySelector("[data-gcx-chip-pre]"),elPost=chip.querySelector("[data-gcx-chip-post]"),elAmt=chip.querySelector("[data-gcx-chip-amt]");elAmt&&price!=null&&setText(elAmt,priceText(price)),elPre&&(setText(elPre,pre),elPre.hidden=!isFrom||!pre),elPost&&(setText(elPost,post),elPost.hidden=!isFrom||!post)}};function priceText(p){return typeof p=="number"?money(p):String(p)}function readI18n(el){try{return JSON.parse(el.getAttribute("data-i18n")||"{}")}catch(e){return{}}}var stickyState={};function applySticky(o){var bar=doc.getElementById("sticky-add-to-cart-bar"),mBtn=doc.querySelector(".cust-sticky-btn"),i18n=bar?readI18n(bar):{},fromTpl=o.fromTpl||bar&&bar.getAttribute("data-gcx-from-tpl")||"",addLabel=o.label||i18n.addToCart||GCX.t("addToCart","Add to Cart"),soldLabel=o.soldLabel||i18n.soldOut||GCX.t("soldOut","Sold Out"),priceStr=o.price!=null?o.from?GCX.fromPrice(priceText(o.price),fromTpl):priceText(o.price):null;if(bar){if(o.title!=null&&setText(bar.querySelector(".StickyAddToCart__Title"),String(o.title)),o.options!=null){var box=bar.querySelector("[data-sticky-options]");if(box){var vals=Array.isArray(o.options)?o.options:[o.options];vals=vals.filter(function(v){return v!=null&&String(v)!==""});var html=vals.map(function(v,k){var span=doc.createElement("span");return span.textContent=String(v),'<span class="StickyAddToCart__Option"><span class="StickyAddToCart__OptionValue">'+span.innerHTML+"</span></span>"+(k<vals.length-1?'<span class="StickyAddToCart__OptionDivider">/</span>':"")}).join("");box.innerHTML!==html&&(box.innerHTML=html);var sep=bar.querySelector(".StickyAddToCart__Separator");sep&&(sep.hidden=!vals.length)}}priceStr!=null&&setText(bar.querySelector("[data-sticky-price]"),priceStr);var cmp=bar.querySelector("[data-gcx-sticky-compare]");if(cmp&&"compareAt"in o){var showCmp=o.compareAt!=null&&o.compareAt!==!1&&o.compareAt!==0&&!(typeof o.compareAt=="number"&&typeof o.price=="number"&&o.compareAt<=o.price);cmp.hidden=!showCmp,showCmp&&setText(cmp,priceText(o.compareAt))}var bBtn=bar.querySelector("[data-sticky-add-to-cart]"),bTxt=bar.querySelector(".StickyAddToCart__ButtonText");if(bBtn&&("available"in o||o.label)){var off=o.available===!1;bBtn.disabled=off,setText(bTxt,off?soldLabel:addLabel),bBtn.setAttribute("aria-label",off?soldLabel:addLabel)}}if(mBtn){if(o.needsSelection!=null){mBtn.classList.toggle("needs-selection",!!o.needsSelection);var wrap=mBtn.closest(".cust-sticky-btn-container"),atc=doc.querySelector(".Product__Info .ProductForm__AddToCart")||doc.querySelector(".ProductForm__AddToCart");if(wrap&&atc){var r=atc.getBoundingClientRect(),onScreen=r.bottom>0&&r.top<window.innerHeight;wrap.classList.toggle("is-visible",!!o.needsSelection||!onScreen)}}o.selectLabel&&setText(mBtn.querySelector(".StickySelectText"),o.selectLabel);var mTxt=mBtn.querySelector(".AddToCartText span")||mBtn.querySelector(".AddToCartText");("available"in o||o.label)&&setText(mTxt,o.available===!1?soldLabel:addLabel),"available"in o&&mBtn.setAttribute("aria-disabled",o.available===!1?"true":"false")}"image"in o&&toArr(doc.querySelectorAll("[data-gcx-sticky-img]")).forEac
1h(function(img){var src=o.image&&(typeof o.image=="string"?o.image:o.image.src);src?(img.getAttribute("src")!==src&&img.setAttribute("src",src),img.alt=o.imageAlt||"",img.hidden=!1):img.hidden=!0}),GCX.__armSticky&&GCX.__armSticky()}GCX.setSticky=function(o){if(o)for(var k in o)Object.prototype.hasOwnProperty.call(o,k)&&(stickyState[k]=o[k]);var s=stickyState;return applySticky(s),requestAnimationFrame(function(){applySticky(s)}),s},GCX.personalizationPair=function(caseVariantId,initials,qty){var v=GCX.clean(initials),q=qty||1;if(!v)return[{id:caseVariantId,quantity:q}];var fee=typeof window.GC_VARIANT=="function"?window.GC_VARIANT(v):null,link="p_"+Date.now()+"_"+Math.random().toString(36).substr(2,9),items=[{id:caseVariantId,quantity:q,properties:{Personalization:v,_personalization_id:link}}];return fee&&items.push({id:fee,quantity:q,properties:{For:v,_personalization_link:link}}),items},GCX.cartAdd=function(items,opts){return opts=opts||{},window.currentPersonalization=null,new Promise(function(resolve,reject){var root=window.Shopify&&window.Shopify.routes&&window.Shopify.routes.root||"/",x=new XMLHttpRequest;x.open("POST",root+"cart/add.js"),x.setRequestHeader("Content-Type","application/json"),x.setRequestHeader("Accept","application/json"),x.onload=function(){var data=null;try{data=JSON.parse(x.responseText)}catch(e){}x.status>=200&&x.status<300?resolve(data):reject(data||{status:x.status})},x.onerror=function(){reject({status:0})},x.send(JSON.stringify({items:items}))}).then(function(data){var qty=0;return items.forEach(function(it){qty+=Number(it&&it.quantity)||1}),opts.quiet||doc.dispatchEvent(new CustomEvent("product:added",{bubbles:!0,detail:{variant:null,items:items,quantity:qty}})),doc.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0})),opts.openDrawer!==!1&&!opts.quiet&&(typeof window.refreshAndOpenCartDrawer=="function"?window.refreshAndOpenCartDrawer():typeof window.openCartDrawer=="function"?window.openCartDrawer():window.location.assign((window.Shopify&&window.Shopify.routes&&window.Shopify.routes.root||"/")+"cart")),data})},GCX.cartAdd.quiet=!0;function headerBottom(){var h=doc.querySelector('.Header, #shopify-section-header header, header[role="banner"]'),r=h?h.getBoundingClientRect():null;return r&&r.bottom>0&&r.bottom<200?r.bottom:parseInt(getComputedStyle(doc.documentElement).getPropertyValue("--header-height"),10)||64}GCX.jump=function(el){if(typeof el=="string"&&(el=doc.getElementById(el)),!el||!el.getClientRects().length)return!1;var sm=num(getComputedStyle(el).scrollMarginTop,0),y=el.getBoundingClientRect().top+window.pageYOffset-(sm>0?sm:headerBottom()+12);try{window.scrollTo({top:Math.max(0,y),behavior:reduced()?"auto":"smooth"})}catch(e){window.scrollTo(0,Math.max(0,y))}var f=el.matches("h1,h2,h3")?el:el.querySelector("h2,h3")||el;f.hasAttribute("tabindex")||f.setAttribute("tabindex","-1");try{f.focus({preventScroll:!0})}catch(e){}return!0},doc.addEventListener("click",function(e){var b=e.target.closest&&e.target.closest("[data-gcx-jump]");b&&GCX.jump(b.getAttribute("data-gcx-jump"))&&e.preventDefault()});function setupJump(b){if(!b.__gcxJump){b.__gcxJump=!0;var t=doc.getElementById(b.getAttribute("data-gcx-jump"));if(!t){b.hidden=!0;var p=b.parentElement;p&&p.children.length===1&&p.textContent.trim()===b.textContent.trim()&&(p.hidden=!0);return}if(b.classList.contains("gcx-rating")&&!b.hasAttribute("aria-describedby")){var h=t.matches("h1,h2,h3")?t:t.querySelector("h2,h3");
1h&&h.textContent.trim()&&(h.id||(h.id="gcx-jh-"+ ++uid),b.setAttribute("aria-describedby",h.id))}}}var calmIO=null;function endless(a){try{return a.effect.getComputedTiming().iterations===1/0}catch(e){return!1}}GCX.calm=function(){if(calmIO||typeof WeakMap!="function"||!doc.getAnimations||!("IntersectionObserver"in window))return!1;var byEl=new WeakMap;calmIO=new IntersectionObserver(function(entries){entries.forEach(function(en){(byEl.get(en.target)||[]).forEach(function(a){if(en.isIntersecting){if(a.__gcxCalm&&a.playState==="paused"){a.__gcxCalm=!1;try{a.play()}catch(e){}}}else if(a.playState==="running"){a.__gcxCalm=!0;try{a.pause()}catch(e){}}})})},{rootMargin:"150px 0px 150px 0px"});function scan(){var all;try{all=doc.getAnimations()}catch(e){return}all.forEach(function(a){if(!(a.__gcxSeen||!endless(a))){var t=a.effect&&a.effect.target;if(!(!t||t.nodeType!==1)){a.__gcxSeen=!0;var list=(byEl.get(t)||[]).filter(function(x){return x.playState!=="idle"&&x.playState!=="finished"});list.push(a),byEl.set(t,list),calmIO.unobserve(t),calmIO.observe(t)}}})}var queued=0;return doc.addEventListener("animationstart",function(){queued||(queued=setTimeout(function(){queued=0,scan()},50))},!0),scan(),!0};function jump3d(){var t=doc.querySelector("[data-gcx-box3d]")||doc.querySelector(".Section[data-section-type='3d-model-viewer']");t&&t.scrollIntoView({behavior:reduced()?"auto":"smooth",block:"center"})}doc.addEventListener("click",function(e){var row=e.target.closest&&e.target.closest(".gcx-assurance #Product3DButton, [data-gcx-3d-jump]");if(row){jump3d();return}var tile=e.target.closest&&e.target.closest(".gcx-assurance [data-gc-support]");if(tile&&typeof window.gcOpenChat!="function"){var href=tile.getAttribute("data-fallback");href&&(window.location.href=href)}}),doc.addEventListener("keydown",function(e){if(!(e.key!=="Enter"&&e.key!==" ")){var row=e.target.closest&&e.target.closest(".gcx-assurance #Product3DButton, [data-gcx-3d-jump]");row&&row.getAttribute("role")==="button"&&(e.preventDefault(),jump3d())}}),window.addEventListener("load",function(){typeof window.gcOpenChat!="function"&&toArr(doc.querySelectorAll(".gcx-assurance [data-gc-support-clip]")).forEach(function(clip){"IntersectionObserver"in window&&new IntersectionObserver(function(entries){entries.forEach(function(en){if(en.isIntersecting){var p=clip.play();p&&p.catch&&p.catch(function(){})}else clip.pause()})},{threshold:.25}).observe(clip)})}),GCX.batch=function(el,low){if(!el)return!1;low=!!low&&!!el.querySelector(".gcx-batch__low"),el.classList.contains("is-low")!==low&&el.classList.toggle("is-low",low);var hide=el.classList.contains("gcx-batch--lowonly")?!low:!1;return el.hidden!==hide&&(el.hidden=hide),low},GCX.batchOut=function(el,o){if(el){o=o||{};var show=!!o.show;if(el.hidden===show&&(el.hidden=!show),!!show){var t=el.querySelector("[data-gcx-batch-out-t]");t&&o.text!=null&&(t.textContent!==o.text&&(t.textContent=o.text),t.hidden=!o.text);var b=el.querySelector("[data-gcx-batch-pick]");if(b){var pk=o.pick||null;if(b.hidden=!pk,!pk){b.removeAttribute("data-key");return}b.setAttribute("data-key",pk.key);var bt=b.querySelector("[data-gcx-batch-pick-t]");bt&&bt.textContent!==pk.label&&(bt.textContent=pk.label),pk.aria?b.setAttribute("aria-label",pk.aria):b.removeAttribute("aria-label");var sw=b.querySelector("[data-gcx-batch-pick-img]");if(sw){var bg=pk.img?'url("'+String(pk.img).replace(/["\\]/g,"")+'")':"";sw.style.backgroundImage!==bg&&(sw.style.backgroundImage=bg),sw.hidden=!pk.img}}}}};var zoomNow=null;GCX.zoom=function(items,index,o){o=o||{};var el=doc.querySelector("[data-gcx-pswp]")||doc.querySelector(".pswp");if(!el||typeof window.PhotoSwipe!="function"||!items||!items.length)return null;if(zoomNow){try{zoomNow.close()}catch(e){}zoomNow=null}el.parentNode!==doc.body&&doc.body.appendChild(el);var phone=window.matchMedia("(max-width: 640px)").matches,cap=phone?1200:1800,list=items.map(function(it){var w=num(it.w,0)||2048,h=num(it.h,0)||w,k=Math.max((h<=w?w:h)/cap,1);return{src:it.src,msrc:it.msrc||"",w:Math.floor(w/k),h:Math.floor(h/k),initialZoomLevel:.65,gcx:it}}),from=o.from||doc.activeElement,ui=el.querySelector(".pswp__ui"),prevB=el.querySelector(".pswp__button--prev"),nextB=el.querySelector(".pswp__button--next"),count=el.querySelector("[data-gcx-pswp-count]"),lang=window.languages||{},ps=new window.PhotoSwipe(el,!1,list,{index:Math.max(0,Math.min(list.length-1,index|0)),showHideOpacity:!0,showAnimationDuration:500,loop:!1,history:!1,closeOnVerticalDrag:!1,allowPanToNext:!1,pinchToClose:!1,errorMsg:'<p class="pswp__error-msg">'+(lang.productImageLoadingError||"")+"</p>",scaleMode:"zoom",getDoubleTapZoom:function(isMouse,item){return isMouse?1.6:item.initialZoomLevel<.7?1:1.33},getThumbBoundsFn:function(i){var t=o.bounds?o.bounds(i):null;if(!(!t||!t.getBoundingClientRect)){var r=t.getBoundingClientRect(),y=window.pageYOffset||doc.documentElement.scrollTop;return{x:r.left,y:r.top+y,w:r.width}}}});zoomNow=ps;var upd=ps.updateSize,lastW=null;ps.updateSize=function(){(lastW===null||lastW!==window.innerWidth)&&upd.call(ps,!0),lastW=window.innerWidth};function sync(){var i=ps.getCurrentIndex(),n=list.length;prevB&&(i===0?prevB.setAttribute("disabled","disabled"):prevB.removeAttribute("disabled")),nextB&&(i+1>=n?nextB.setAttribute("disabled","disabled"):nextB.removeAttribute("disabled")),count&&(count.hidden=n<2,setText(count,i+1+" / "+n))}var ro="ResizeObserver"in window?new ResizeObserver(function(es){es.forEac
1h(function(e){var ov=e.target.__gcxEng;ov&&(ov.style.width=e.target.style.width,ov.style.height=e.target.style.height)})}):null;function engrave(){toArr(el.querySelectorAll(".pswp__zoom-wrap")).forEach(function(zw){var im=zw.querySelector(".pswp__img:not(.pswp__img--placeholder)")||zw.querySelector(".pswp__img");if(im){for(var it=null,i=0;i<list.length;i++)(list[i].container===zw||!it&&im.getAttribute("src")===list[i].src)&&(it=list[i]);var ov=zw.querySelector(".gcx-pswp__eng"),ini=it&&it.gcx.ini?GCX.clean(it.gcx.ini):"";if(!ini){ov&&ov.parentNode.removeChild(ov);return}ov||(ov=doc.createElement("div"),ov.className="gcx-engrave gcx-engrave--bare gcx-pswp__eng",ov.setAttribute("aria-hidden","true"),ov.innerHTML='<div class="gcx-engrave__mark"><span class="gcx-engrave__text"></span></div>',zw.appendChild(ov)),im.__gcxEng!==ov&&(im.__gcxEng=ov,ro&&ro.observe(im)),ov.style.width=im.style.width||it.w+"px",ov.style.height=im.style.height||it.h+"px",GCX.engrave(ov,ini,it.gcx.anchor||null)}})}var mo="MutationObserver"in window?new MutationObserver(function(){engrave()}):null;function act(b){b.classList.contains("pswp__button--close")?ps.close():b.classList.contains("pswp__button--prev")?ps.prev():b.classList.contains("pswp__button--next")&&ps.next()}function onTap(e){var d=e.detail||{},t=e.target,b=t&&t.closest?t.closest(".pswp__button"):null;if(b){act(b);return}var onImg=!!(t&&t.classList&&t.classList.contains("pswp__img"));if(d.pointerType==="mouse"){onImg?ps.toggleDesktopZoom(d.releasePoint):ps.close();return}var it=ps.currItem;(!it||ps.getZoomLevel()<=it.initialZoomLevel+.01)&&ps.close()}function onClick(e){if(e.detail===0){var b=e.target&&e.target.closest?e.target.closest(".pswp__button"):null;b&&(e.preventDefault(),act(b))}}return el.addEventListener("pswpTap",onTap),el.addEventListener("click",onClick),ps.listen("beforeChange",sync),ps.listen("afterChange",function(){sync(),engrave
1()}),ps.listen("imageLoadComplete",engrave),ps.listen("doubleTap",function(pt){var z=ps.currItem.initialZoomLevel;ps.getZoomLevel()!==z?ps.zoomTo(z,pt,333):ps.zoomTo(z<.7?1:1.33,pt,333)}),ps.listen("initialZoomIn",function(){ui&&ui.classList.remove("pswp__ui--hidden")}),ps.listen("initialZoomOut",function(){ui&&ui.classList.add("pswp__ui--hidden")}),ps.listen("close",function(){if(o.close)try{o.close(ps.getCurrentIndex())}catch(e){}}),ps.listen("destroy",function(){if(el.removeEventListener("pswpTap",onTap),el.removeEventListener("click",onClick),mo&&mo.disconnect(),ro&&ro.disconnect(),toArr(el.querySelectorAll(".gcx-pswp__eng")).forEach(function(n){n.parentNode.removeChild(n)}),zoomNow===ps&&(zoomNow=null),from&&from.focus&&doc.contains(from))try{from.focus({preventScroll:!0})}catch(e){}}),ps.init(),sync(),engrave(),mo&&mo.observe(el.querySelector(".pswp__container")||el,{childList:!0,subtree:!0}),ps},GCX.zoomOpen=function(){return zoomNow};var SEL="[data-gcx-scroll],[data-gcx-typewriter],[data-gcx-box3d],.gcx-engrave,[data-gcx-engrave],.gcx-slab__label,[data-gcx-jump]";GCX.init=function(root){root=root||doc,GCX.scrollRows(root),within(root,"[data-gcx-typewriter]").forEach(function(el){GCX.typewriter(el)}),within(root,"[data-gcx-box3d]").forEach(setupBox),within(root,".gcx-engrave").forEach(function(el){var a=el.getAttribute("data-gcx-anchor");a&&!el.__gcxAnchored&&(el.__gcxAnchored=!0,GCX.anchor(el,a)),debugEngrave(el)}),within(root,"[data-gcx-engrave]").forEach(bindEngraveInput),within(root,"[data-gcx-jump]").forEach(setupJump),sizePills()};function start(){if(GCX.init(doc),doc.addEventListener("shopify:section:load",function(e){GCX.init(e.target)}),"MutationObserver"in window){var pending=[],scheduled=!1;new MutationObserver(function(muts){muts.forEach(function(m){toArr(m.addedNodes).forEach(function(n){n.nodeType===1&&(n.matches&&n.matches(SEL)||n.querySelector&&n.querySelector(SEL))&&pending.push(n)})}),pending.length&&!scheduled&&(scheduled=!0,requestAnimationFrame(function(){scheduled=!1;var list=pending;pending=[],list.forEach(function(n){n.isConnected&&GCX.init(n)})}))}).observe(doc.body||doc.documentElement,{childList:!0,subtree:!0})}}doc.readyState==="loading"?doc.addEventListener("DOMContentLoaded",start):start()})();
2//# sourceMappingURL=/cdn/shop/t/208/assets/gcx-kit.js.map?v=83349340186092005521790965521

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.