import{nf as Rt,jt as Tt,q as H,oe as ae,bO as K,ak as W,aj as X,a as E,n as Ct,ab as pt,eb as Ne,cV as Qt,nv as Fe,nM as mn,hT as gn,pR as wn,pS as be,pT as yn,pU as bn,pV as vn,_ as D,pW as xn,pX as _n,pY as En,pZ as kn,p_ as Sn,p$ as Rn,q0 as ve,q1 as Gt,q2 as Vt}from"./app.owqgWGYv.js";const je=Rt({dispatch:()=>{throw new Error("Invalid attempt to call dispatch outside of AuthorizeStateProvider")},loaded:!1,modalDismissible:!1,modalForceHidden:!1,modalVisible:!1,uiRendered:!1}),se=()=>Tt(je),Ue=Rt({client:void 0,leaveBreadcrumb:()=>{throw new Error("Invalid attempt to call leaveBreadcrumb outside of context.")},notify:()=>{throw new Error("Invalid attempt to call notify outside of context.")}}),vt=()=>{const t=Tt(Ue);if(!t)throw new Error("Invalid attempt to use useBugsnag outside of BugsnagProvider.");return t},Tn={analyticsData:{analyticsTraceId:""},getTrekkieAttributes:async()=>Promise.resolve({}),produceMonorailEvent:()=>{throw new Error("Invalid attempt to call produceMonorailEvent outside of context.")},trackModalStateChange:()=>{throw new Error("Invalid attempt to call trackModalStateChange outside of context.")},trackPageImpression:async()=>{throw new Error("Invalid attempt to call trackPageImpression outside of context.")},trackUserAction:()=>{throw new Error("Invalid attempt to call trackUserAction outside of context.")},trackPostMessageTransmission:()=>{throw new Error("Invalid attempt to call trackPostMessageTransmission outside of context.")}},We=Rt(Tn),ce=()=>Tt(We),Cn={log:()=>{throw new Error("Invalid attempt to call log outside of context.")},recordCounter:()=>{throw new Error("Invalid attempt to call recordCounter outside of context.")},recordGauge:()=>{throw new Error("Invalid attempt to call recordGauge outside of context.")},recordHistogram:()=>{throw new Error("Invalid attempt to call recordHistogram outside of context.")},client:void 0},$e=Rt(Cn),Be=()=>Tt($e),An={addEventListener:()=>{},analytics:{},btoa:()=>"",clearTimeout:()=>{},CSS:{supports:(t,e)=>!1},customElements:{},devicePixelRatio:1,getComputedStyle:t=>({}),HTMLElement:{},innerHeight:0,innerWidth:0,localStorage:{getItem(){throw new Error("localStorage is not available")},setItem(){throw new Error("localStorage is not available")},removeItem(){throw new Error("localStorage is not available")}},sessionStorage:{getItem(){throw new Error("sessionStorage is not available")},setItem(){throw new Error("sessionStorage is not available")},removeItem(){throw new Error("sessionStorage is not available")}},location:{assign:()=>{},hostname:"",href:"",origin:"",pathname:"",search:""},matchMedia:()=>({matches:!1}),open:()=>{},PublicKeyCredential:{isConditionalMediationAvailable(){return Promise.resolve(!1)}},removeEventListener:()=>{},ResizeObserver:void 0,screen:{availWidth:0,height:0,orientation:{type:""},width:0},screenLeft:0,screenTop:0,screenX:0,screenY:0,scrollTo:()=>{},setTimeout:()=>0,Shopify:{},ShopifyAnalytics:{},top:{addEventListener:()=>{},removeEventListener:()=>{}},trekkie:{},URL,visualViewport:{}},M=typeof window>"u"?An:window;function Pn(t){if(t.match(/\.shop\.dev$/)&&!(t==="web-shop-client.shop.dev"))return"shop.dev";const o=t.match(/([^.]*[.]){2}(eu|us|asia).spin.dev/);if(o&&o.length)return o[0]}function Ln(t){const e=Pn(t.hostname);return e?{coreAuthDomain:`https://shop1.my.${e}`,payAuthDomain:`https://shop-server.${e}`,payAuthDomainAlt:`https://pay-shopify-com.${e}`}:{coreAuthDomain:t.origin,payAuthDomain:"https://shop.app",payAuthDomainAlt:"https://pay.shopify.com"}}const le=Ln(M.location),te=le.coreAuthDomain,Lt=le.payAuthDomain,He=le.payAuthDomainAlt,Mn={activeElement:null,addEventListener:()=>{},appendChild:()=>{},body:{},cookie:"",createElement:()=>{},createTextNode:()=>{},documentElement:{clientHeight:0,clientWidth:0,lang:"",style:{overflow:"",removeProperty:()=>{}}},getElementById:()=>null,head:{appendChild:()=>{}},location:void 0,querySelector:()=>{},querySelectorAll:()=>[],removeEventListener:()=>{},styleSheets:{}},Z=typeof document>"u"?Mn:document,On=M.HTMLElement,de=t=>{const e=M.HTMLElement;M.HTMLElement=On;const n=t();return M.HTMLElement=e,n},In=t=>de(()=>Z.createElement(t)),Dn=(t,e)=>{de(()=>{customElements.define(t,e)})},zn=t=>de(()=>Reflect.construct(HTMLElement,[],t)),qe=Rt({devMode:!1,element:null,instanceId:""}),mt=()=>Tt(qe);function ue(){const{notify:t}=vt(),{element:e}=mt();return H((o,r,i=!1)=>{if(!e){t(new Error("dispatchEvent called without a reference to the custom element."));return}e.dispatchEvent(new CustomEvent(o,{bubbles:i,cancelable:!1,composed:!0,detail:r}))},[e,t])}function Vn(t){return t.replace(/([a-z0-9])([A-Z])/g,(e,n,o)=>`${n}-${o.toLowerCase()}`).replace(/[\s_]+/g,"-")}function Nn(t){return t.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`).replace(/^_/,"")}class wt extends Error{constructor(e,n,o=ae()){super(e),this.name=n,this.analyticsTraceId=o;const r=Nn(n);this.analyticsTraceId=o,this.code=r,this.name=n}}function Fn(t,e){try{const n=new M.URL(t).host.split(".").reverse(),o=new M.URL(e).host.split(".").reverse();for(let r=0;rnew Set,[]);W(()=>(i.add(n),()=>{i.delete(n)}),[n,i]),W(()=>{const f=u=>Un(u)&&r({direction:"incoming",event:u});return i.add(f),()=>{i.delete(f)}},[r,i]);const a=H(f=>{i.forEach(u=>u(f))},[i]),l=H(f=>{const u=o.current instanceof HTMLIFrameElement?o.current.contentWindow:o.current;if(jn(f,u||null)){if(!t.some(p=>Fn(p,f.origin))){console.error("Origin mismatch for message event",f);return}a(f.data)}},[t,a,o]),c=H(()=>{e.removeEventListener("message",l,!1)},[e,l]);W(()=>(e.addEventListener("message",l,!1),()=>{c()}),[e,c,l]);const d=H(async(f,u)=>{let p;return new Promise((h,w)=>{function g(){w(new wt("Abort signal received","AbortSignalReceivedError"))}u?.aborted&&g(),p=v=>{v.type===f&&(u?.removeEventListener("abort",g),h(v))},i.add(p),u?.addEventListener("abort",g)}).finally(()=>{i.delete(p)})},[i]);return{destroy:c,waitForMessage:d}}function $n({includeCore:t,source:e,storefrontOrigin:n,...o}){const r=ue(),i=H(async c=>{const{onAuthorizeStepChanged:d,onClose:f,onComplete:u,onConfirmSuccess:p,onContinueToCheckout:s,onCustomFlowSideEffect:h,onDiscountSaved:w,onEmailChangeRequested:g,onError:v,onLeadCaptureLoaded:x,onLoaded:k,onModalOpened:S,onPopUpOpened:_,onPrequalError:P,onPrequalMissingInformation:L,onPrequalReady:$,onPrequalSuccess:B,onProcessingStatusUpdated:N,onPromptChange:F,onPromptContinue:C,onResizeIframe:q,onRestarted:I,onShopUserMatched:z,onShopUserNotMatched:j,onStripeLinkUserFound:A,onUnloaded:U,onUserVerified:V,onVerificationStepChanged:Y}=o;switch(c.type){case"authorize_step_changed":d?.(c);break;case"close":case"close_requested":f?.();break;case"completed":{const{avatar:ot,email:ct,givenName:Q,loggedIn:tt,shouldFinalizeLogin:et}=c;u&&await u(c),r("completed",c),tt&&et&&r("storefront:signincompleted",{avatar:(()=>{const rt=In("shop-user-avatar"),J=Q?.[0]||ct?.[0]||"";return rt.setAttribute("src",ot||""),rt.setAttribute("initial",J),rt})()},!0);break}case"confirm_success":p?.();break;case"continue_to_checkout":s?.();break;case"custom_flow_side_effect":h?.(c);break;case"discount_saved":w?.();break;case"email_change_requested":g?.();break;case"error":v?.(c),r("error",{code:c.code,message:c.message,email:c.email});break;case"loaded":r("loaded",c),"loginTitle"in c?x?.(c):k?.(c);break;case"stripe_link_user_found":A?.(c);break;case"unloaded":U?.(c);break;case"modalopened":S?.();break;case"pop_up_opened":_?.(c),r("popuploading",c);break;case"processing_status_updated":N?.();break;case"prequal_error":P?.();break;case"prequal_missing_information":L?.();break;case"prequal_ready":$?.();break;case"prequal_success":B?.();break;case"resize_iframe":q?.(c);break;case"restarted":I?.(),r("restarted");break;case"shop_user_matched":z?.(c);break;case"shop_user_not_matched":j?.(c);break;case"user_verified":V?.(c);break;case"verification_step_changed":Y?.(c);break;case"prompt_change":F?.();break;case"prompt_continue":C?.();break}},[r,o]),a=K(()=>[Lt,He,...t?[te]:[],...n?[n]:[]],[t,n]);return Wn({allowedOrigins:a,handler:i,source:e})}const xe={code:"temporarily_unavailable",message:"Shop login is temporarily unavailable"},Bn=1e4;function Hn(){const t=ue(),e=X(null),n=H(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]);return{initLoadTimeout:H(()=>{n(),e.current=setTimeout(()=>{t("error",{message:xe.message,code:xe.code}),n()},Bn)},[n,t]),clearLoadTimeout:n}}function qn(t){const e=X(t);return W(()=>{e.current=t}),e.current}function Ye(t,e,n=!1){let o;return function(...r){const i=()=>{o=void 0,n||t.apply(this,r)},a=n&&!o;typeof o=="number"&&clearTimeout(o),o=setTimeout(i,e),a&&t.apply(this,r)}}function Yn({contentWindow:t,event:e,onMessageSent:n}){if(!t)return;const o=[Lt,He],r={...e,messageId:ae()};o.forEach(i=>{t.postMessage(r,i)}),n?.(r)}const _e=({iframe:t,src:e})=>{const n=t?.parentNode;!n||!t||(n.removeChild(t),t.setAttribute("src",""),t.setAttribute("src",e),n.appendChild(t))},Et=Math.min,gt=Math.max,Wt=Math.round,Nt=Math.floor,lt=t=>({x:t,y:t}),Gn={left:"right",right:"left",bottom:"top",top:"bottom"},Xn={start:"end",end:"start"};function ee(t,e,n){return gt(t,Et(e,n))}function It(t,e){return typeof t=="function"?t(e):t}function yt(t){return t.split("-")[0]}function Dt(t){return t.split("-")[1]}function Ge(t){return t==="x"?"y":"x"}function fe(t){return t==="y"?"height":"width"}function kt(t){return["top","bottom"].includes(yt(t))?"y":"x"}function pe(t){return Ge(kt(t))}function Kn(t,e,n){n===void 0&&(n=!1);const o=Dt(t),r=pe(t),i=fe(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=$t(a)),[a,$t(a)]}function Zn(t){const e=$t(t);return[ne(t),e,ne(e)]}function ne(t){return t.replace(/start|end/g,e=>Xn[e])}function Jn(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:a;default:return[]}}function Qn(t,e,n,o){const r=Dt(t);let i=Jn(yt(t),n==="start",o);return r&&(i=i.map(a=>a+"-"+r),e&&(i=i.concat(i.map(ne)))),i}function $t(t){return t.replace(/left|right|bottom|top/g,e=>Gn[e])}function to(t){return{top:0,right:0,bottom:0,left:0,...t}}function Xe(t){return typeof t!="number"?to(t):{top:t,right:t,bottom:t,left:t}}function Bt(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Ee(t,e,n){let{reference:o,floating:r}=t;const i=kt(e),a=pe(e),l=fe(a),c=yt(e),d=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let s;switch(c){case"top":s={x:f,y:o.y-r.height};break;case"bottom":s={x:f,y:o.y+o.height};break;case"right":s={x:o.x+o.width,y:u};break;case"left":s={x:o.x-r.width,y:u};break;default:s={x:o.x,y:o.y}}switch(Dt(e)){case"start":s[a]-=p*(n&&d?-1:1);break;case"end":s[a]+=p*(n&&d?-1:1);break}return s}const eo=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let d=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=Ee(d,o,c),p=o,s={},h=0;for(let w=0;w({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:a,elements:l,middlewareData:c}=e,{element:d,padding:f=0}=It(t,e)||{};if(d==null)return{};const u=Xe(f),p={x:n,y:o},s=pe(r),h=fe(s),w=await a.getDimensions(d),g=s==="y",v=g?"top":"left",x=g?"bottom":"right",k=g?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[s]-p[s]-i.floating[h],_=p[s]-i.reference[s],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let L=P?P[k]:0;(!L||!await(a.isElement==null?void 0:a.isElement(P)))&&(L=l.floating[k]||i.floating[h]);const $=S/2-_/2,B=L/2-w[h]/2-1,N=Et(u[v],B),F=Et(u[x],B),C=N,q=L-w[h]-F,I=L/2-w[h]/2+$,z=ee(C,I,q),j=!c.arrow&&Dt(r)!=null&&I!==z&&i.reference[h]/2-(II<=0)){var F,C;const I=(((F=i.flip)==null?void 0:F.index)||0)+1,z=L[I];if(z)return{data:{index:I,overflows:N},reset:{placement:z}};let j=(C=N.filter(A=>A.overflows[0]<=0).sort((A,U)=>A.overflows[1]-U.overflows[1])[0])==null?void 0:C.placement;if(!j)switch(s){case"bestFit":{var q;const A=(q=N.filter(U=>{if(P){const V=kt(U.placement);return V===x||V==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(V=>V>0).reduce((V,Y)=>V+Y,0)]).sort((U,V)=>U[1]-V[1])[0])==null?void 0:q[0];A&&(j=A);break}case"initialPlacement":j=l;break}if(r!==j)return{reset:{placement:j}}}return{}}}};async function ro(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=yt(n),l=Dt(n),c=kt(n)==="y",d=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,u=It(e,t);let{mainAxis:p,crossAxis:s,alignmentAxis:h}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof h=="number"&&(s=l==="end"?h*-1:h),c?{x:s*f,y:p*d}:{x:p*d,y:s*f}}const io=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:a,middlewareData:l}=e,c=await ro(e,t);return a===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}},ao=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:g=>{let{x:v,y:x}=g;return{x:v,y:x}}},...c}=It(t,e),d={x:n,y:o},f=await Ke(e,c),u=kt(yt(r)),p=Ge(u);let s=d[p],h=d[u];if(i){const g=p==="y"?"top":"left",v=p==="y"?"bottom":"right",x=s+f[g],k=s-f[v];s=ee(x,s,k)}if(a){const g=u==="y"?"top":"left",v=u==="y"?"bottom":"right",x=h+f[g],k=h-f[v];h=ee(x,h,k)}const w=l.fn({...e,[p]:s,[u]:h});return{...w,data:{x:w.x-n,y:w.y-o}}}}};function Ht(){return typeof window<"u"}function At(t){return Ze(t)?(t.nodeName||"").toLowerCase():"#document"}function nt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ft(t){var e;return(e=(Ze(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ze(t){return Ht()?t instanceof Node||t instanceof nt(t).Node:!1}function at(t){return Ht()?t instanceof Element||t instanceof nt(t).Element:!1}function ut(t){return Ht()?t instanceof HTMLElement||t instanceof nt(t).HTMLElement:!1}function ke(t){return!Ht()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof nt(t).ShadowRoot}function zt(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=st(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function so(t){return["table","td","th"].includes(At(t))}function qt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function he(t){const e=me(),n=at(t)?st(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function co(t){let e=ht(t);for(;ut(e)&&!St(e);){if(he(e))return e;if(qt(e))return null;e=ht(e)}return null}function me(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function St(t){return["html","body","#document"].includes(At(t))}function st(t){return nt(t).getComputedStyle(t)}function Yt(t){return at(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ht(t){if(At(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ke(t)&&t.host||ft(t);return ke(e)?e.host:e}function Je(t){const e=ht(t);return St(e)?t.ownerDocument?t.ownerDocument.body:t.body:ut(e)&&zt(e)?e:Je(e)}function Mt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Je(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),a=nt(r);if(i){const l=oe(a);return e.concat(a,a.visualViewport||[],zt(r)?r:[],l&&n?Mt(l):[])}return e.concat(r,Mt(r,[],n))}function oe(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Qe(t){const e=st(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=ut(t),i=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=Wt(n)!==i||Wt(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function ge(t){return at(t)?t:t.contextElement}function _t(t){const e=ge(t);if(!ut(e))return lt(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Qe(e);let a=(i?Wt(n.width):n.width)/o,l=(i?Wt(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const lo=lt(0);function tn(t){const e=nt(t);return!me()||!e.visualViewport?lo:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uo(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==nt(t)?!1:e}function bt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=ge(t);let a=lt(1);e&&(o?at(o)&&(a=_t(o)):a=_t(t));const l=uo(i,n,o)?tn(i):lt(0);let c=(r.left+l.x)/a.x,d=(r.top+l.y)/a.y,f=r.width/a.x,u=r.height/a.y;if(i){const p=nt(i),s=o&&at(o)?nt(o):o;let h=p,w=oe(h);for(;w&&o&&s!==h;){const g=_t(w),v=w.getBoundingClientRect(),x=st(w),k=v.left+(w.clientLeft+parseFloat(x.paddingLeft))*g.x,S=v.top+(w.clientTop+parseFloat(x.paddingTop))*g.y;c*=g.x,d*=g.y,f*=g.x,u*=g.y,c+=k,d+=S,h=nt(w),w=oe(h)}}return Bt({width:f,height:u,x:c,y:d})}function we(t,e){const n=Yt(t).scrollLeft;return e?e.left+n:bt(ft(t)).left+n}function en(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),r=o.left+e.scrollLeft-(n?0:we(t,o)),i=o.top+e.scrollTop;return{x:r,y:i}}function fo(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",a=ft(o),l=e?qt(e.floating):!1;if(o===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},d=lt(1);const f=lt(0),u=ut(o);if((u||!u&&!i)&&((At(o)!=="body"||zt(a))&&(c=Yt(o)),ut(o))){const s=bt(o);d=_t(o),f.x=s.x+o.clientLeft,f.y=s.y+o.clientTop}const p=a&&!u&&!i?en(a,c,!0):lt(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+p.x,y:n.y*d.y-c.scrollTop*d.y+f.y+p.y}}function po(t){return Array.from(t.getClientRects())}function ho(t){const e=ft(t),n=Yt(t),o=t.ownerDocument.body,r=gt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=gt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+we(t);const l=-n.scrollTop;return st(o).direction==="rtl"&&(a+=gt(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}function mo(t,e){const n=nt(t),o=ft(t),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const d=me();(!d||d&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}function go(t,e){const n=bt(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=ut(t)?_t(t):lt(1),a=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,d=o*i.y;return{width:a,height:l,x:c,y:d}}function Se(t,e,n){let o;if(e==="viewport")o=mo(t,n);else if(e==="document")o=ho(ft(t));else if(at(e))o=go(e,n);else{const r=tn(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return Bt(o)}function nn(t,e){const n=ht(t);return n===e||!at(n)||St(n)?!1:st(n).position==="fixed"||nn(n,e)}function wo(t,e){const n=e.get(t);if(n)return n;let o=Mt(t,[],!1).filter(l=>at(l)&&At(l)!=="body"),r=null;const i=st(t).position==="fixed";let a=i?ht(t):t;for(;at(a)&&!St(a);){const l=st(a),c=he(a);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||zt(a)&&!c&&nn(t,a))?o=o.filter(f=>f!==a):r=l,a=ht(a)}return e.set(t,o),o}function yo(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?qt(e)?[]:wo(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((d,f)=>{const u=Se(e,f,r);return d.top=gt(u.top,d.top),d.right=Et(u.right,d.right),d.bottom=Et(u.bottom,d.bottom),d.left=gt(u.left,d.left),d},Se(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function bo(t){const{width:e,height:n}=Qe(t);return{width:e,height:n}}function vo(t,e,n){const o=ut(e),r=ft(e),i=n==="fixed",a=bt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=lt(0);if(o||!o&&!i)if((At(e)!=="body"||zt(r))&&(l=Yt(e)),o){const p=bt(e,!0,i,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else r&&(c.x=we(r));const d=r&&!o&&!i?en(r,l):lt(0),f=a.left+l.scrollLeft-c.x-d.x,u=a.top+l.scrollTop-c.y-d.y;return{x:f,y:u,width:a.width,height:a.height}}function Xt(t){return st(t).position==="static"}function Re(t,e){if(!ut(t)||st(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return ft(t)===n&&(n=n.ownerDocument.body),n}function on(t,e){const n=nt(t);if(qt(t))return n;if(!ut(t)){let r=ht(t);for(;r&&!St(r);){if(at(r)&&!Xt(r))return r;r=ht(r)}return n}let o=Re(t,e);for(;o&&so(o)&&Xt(o);)o=Re(o,e);return o&&St(o)&&Xt(o)&&!he(o)?n:o||co(t)||n}const xo=async function(t){const e=this.getOffsetParent||on,n=this.getDimensions,o=await n(t.floating);return{reference:vo(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function _o(t){return st(t).direction==="rtl"}const Eo={convertOffsetParentRelativeRectToViewportRelativeRect:fo,getDocumentElement:ft,getClippingRect:yo,getOffsetParent:on,getElementRects:xo,getClientRects:po,getDimensions:bo,getScale:_t,isElement:at,isRTL:_o};function rn(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function ko(t,e){let n=null,o;const r=ft(t);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const d=t.getBoundingClientRect(),{left:f,top:u,width:p,height:s}=d;if(l||e(),!p||!s)return;const h=Nt(u),w=Nt(r.clientWidth-(f+p)),g=Nt(r.clientHeight-(u+s)),v=Nt(f),k={rootMargin:-h+"px "+-w+"px "+-g+"px "+-v+"px",threshold:gt(0,Et(1,c))||1};let S=!0;function _(P){const L=P[0].intersectionRatio;if(L!==c){if(!S)return a();L?a(!1,L):o=setTimeout(()=>{a(!1,1e-7)},1e3)}L===1&&!rn(d,t.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(_,{...k,root:r.ownerDocument})}catch{n=new IntersectionObserver(_,k)}n.observe(t)}return a(!0),i}function So(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,d=ge(t),f=r||i?[...d?Mt(d):[],...Mt(e)]:[];f.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const u=d&&l?ko(d,n):null;let p=-1,s=null;a&&(s=new ResizeObserver(v=>{let[x]=v;x&&x.target===d&&s&&(s.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var k;(k=s)==null||k.observe(e)})),n()}),d&&!c&&s.observe(d),s.observe(e));let h,w=c?bt(t):null;c&&g();function g(){const v=bt(t);w&&!rn(w,v)&&n(),w=v,h=requestAnimationFrame(g)}return n(),()=>{var v;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),u?.(),(v=s)==null||v.disconnect(),s=null,c&&cancelAnimationFrame(h)}}const Ro=io,To=ao,Co=oo,Te=no,Ao=(t,e,n)=>{const o=new Map,r={platform:Eo,...n},i={...r.platform,_c:o};return eo(t,e,{...r,platform:i})},Po=["en","bg","bg-BG","cs","da","de","el","es","fi","fr","hi","hr","hr-HR","hu","id","it","ja","ko","lt","lt-LT","ms","nb","nl","pl","pt-BR","pt-PT","ro","ro-RO","ru","sk","sk-SK","sl","sl-SI","sv","th","tr","vi","zh-CN","zh-TW"],Lo={loading:void 0,locale:"en",translations:void 0},an=Rt(Lo),ye=()=>Tt(an),Mo=["string",void 0],Oo=()=>{const{locale:t,translations:e}=ye();return{locale:t,translate:(o,r)=>{const i=o.split(".");if(!e||!t)throw new ReferenceError;const{count:a,defaultValue:l,...c}=r||{};let d=e.get(t);if(!d&&r?.defaultValue)return r.defaultValue;try{for(const s of i)switch(typeof d){case"object":d=d[s];break;case"string":case"undefined":throw new ReferenceError}if(typeof d>"u")throw new ReferenceError;if(typeof e!="string"&&a){let s=a===1?"one":"other";a===0&&typeof e!="string"&&"zero"in e&&(s="zero"),d=d[s]}if(typeof d!="string")throw new ReferenceError;let f=!1;const u=Object.keys(c),p=d.split(new RegExp(`({${u.join("}|{")}})`,"g"));return u.forEach(s=>{!f&&!Mo.includes(typeof c[s])&&(f=!0),p.forEach((h,w)=>{h===`{${s}}`&&(p[w]=c[s])})}),f?E(Ct,{children:p}):p.join("")}catch{return l||o}}}};function Ot(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString?.()!==void 0&&t.toString?.()===e.toString?.())return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let n,o;const r=Object.keys(t);if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!Ot(t[o],e[o]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!Ot(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function sn(t){return(t.ownerDocument.defaultView||M).devicePixelRatio||1}function Ce(t,e){const n=sn(t);return Math.round(e*n)/n}function Ae(t){const e=X(t);return W(()=>{e.current=t}),e}function Io(t={}){const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:c,open:d}=t,[f,u]=pt({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,s]=pt(o);Ot(p,o)||s(o);const[h,w]=pt(null),[g,v]=pt(null),x=H(A=>{A!==P.current&&(P.current=A,w(A))},[]),k=H(A=>{A!==L.current&&(L.current=A,v(A))},[]),S=i||h,_=a||g,P=X(null),L=X(null),$=X(f),B=c!=null,N=Ae(c),F=Ae(r),C=H(()=>{if(!P.current||!L.current)return;const A={placement:e,strategy:n,middleware:p};F.current&&(A.platform=F.current),Ao(P.current,L.current,A).then(U=>{const V={...U,isPositioned:!0};q.current&&!Ot($.current,V)&&($.current=V,u(V))}).catch(U=>{console.error("error caught during computePosition",U)})},[p,e,n,F]);W(()=>{d===!1&&$.current.isPositioned&&($.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[d]);const q=X(!1);W(()=>(q.current=!0,()=>{q.current=!1}),[]),W(()=>{if(S&&(P.current=S),_&&(L.current=_),S&&_){if(N.current)return N.current(S,_,C);C()}},[S,_,C,N,B]);const I=K(()=>({reference:P,floating:L,setReference:x,setFloating:k}),[x,k]),z=K(()=>({reference:S,floating:_}),[S,_]),j=K(()=>{const A={position:n,left:0,top:0};if(!z.floating)return A;const U=Ce(z.floating,f.x),V=Ce(z.floating,f.y);return l?{...A,transform:`translate(${U}px, ${V}px)`,...sn(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:V}},[n,l,z.floating,f.x,f.y]);return K(()=>({...f,update:C,refs:I,elements:z,floatingStyles:j}),[f,C,I,z,j])}const Do=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=t;return o&&e(o)?o.current!=null?Te({element:o.current,padding:r}).fn(n):{}:o?Te({element:o,padding:r}).fn(n):{}}}},Pe=448,Le={mobile:[`max-width: ${Pe}px`],tablet:[`min-width: ${Pe+1}px`,"max-width: 1000px","max-height: 920px"]};function zo(){const t=Le.mobile.every(o=>M.matchMedia(`(${o})`).matches),e=!t&&Le.tablet.every(o=>M.matchMedia(`(${o})`).matches);return{isMobile:t,isTablet:e,isDesktop:!t&&!e}}const Vo={languages:[],userAgent:"",userLanguage:""},dt=typeof navigator>"u"?Vo:navigator;function oi(){const t=dt.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);return e&&n&&!t.match(/CriOS/i)}function No(){return/Mozilla\/5.0 \([^)]*Android[^)]*; wv\).+Chrome\//.test(dt.userAgent)}function Fo(){return dt.userAgent.toLowerCase().includes("instagram")}function jo(){const t=dt.userAgent;return RegExp($o).test(t)||RegExp(Bo).test(t)}function Uo(){return dt.userAgent.toLowerCase().includes("messenger")}function Wo(){const t=dt.userAgent.toLowerCase();return t.includes("fban/fbios")||t.includes("fb_iab/fb4a")}function ri(){return Wo()||Fo()||Uo()||jo()||No()}function Me(){return!!(typeof IntersectionObserver<"u"&&IntersectionObserver)}const $o="(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\\d+)_(\\d+)(?:_(\\d+)|).* AppleNews",Bo="(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\\d+)_(\\d+)(?:_(\\d+)|)(?!.*Version).*Mobile(?!.*Safari)";function xt(...t){return t.map(e=>typeof e=="object"&&typeof e?.value=="string"?e.value:e).filter(e=>typeof e=="string").join(" ")}function Ho({className:t}){return E("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:E("path",{fill:"currentColor","fill-rule":"evenodd",d:"M0 10C0 4.477 4.477 0 10 0s10 4.477 10 10-4.477 10-10 10S0 15.523 0 10Zm7.707-3.707a1 1 0 0 0-1.414 1.414L8.586 10l-2.293 2.293a1 1 0 1 0 1.414 1.414L10 11.414l2.293 2.293a1 1 0 0 0 1.414-1.414L11.414 10l2.293-2.293a1 1 0 0 0-1.414-1.414L10 8.586 7.707 6.293Z","clip-rule":"evenodd"})})}const cn=` a[href], area[href], input:not([type="hidden"]):not([disabled]):not([tabindex="-1"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls]`;function qo(t){return t.querySelector(cn)}function Yo(t){const e=t.querySelectorAll(cn);return e[e.length-1]}const Go=Ne(({as:t="div",children:e,disabled:n=!1,...o},r)=>{const i=X(null),a=X(null),l=X(null);Qt(()=>{n||i.current?.focus()},[n]);const c=p=>{const s=i.current;if(!s||n)return;((p?qo(s):Yo(s))||s).focus()},d=p=>{i.current=p,typeof r=="function"?r(p):r&&(r.current=p)},f=n?-1:0,u="absolute -m-px h-px w-px overflow-hidden whitespace-nowrap p-0";return E(Ct,{children:[E("div",{className:u,ref:a,onFocus:()=>c(!1),tabIndex:f}),E(t,{...o,ref:d,tabIndex:-1,children:e}),E("div",{className:u,ref:l,onFocus:()=>c(!0),tabIndex:f})]})});(function(){if(typeof document>"u"||"adoptedStyleSheets"in document)return;var t="ShadyCSS"in window&&!ShadyCSS.nativeShadow,e=document.implementation.createHTMLDocument(""),n=new WeakMap,o=typeof DOMException=="object"?Error:DOMException,r=Object.defineProperty,i=Array.prototype.forEach,a=/@import.+?;?$/gm;function l(m){var y=m.replace(a,"");return y!==m&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),y.trim()}function c(m){return"isConnected"in m?m.isConnected:document.contains(m)}function d(m){return m.filter(function(y,T){return m.indexOf(y)===T})}function f(m,y){return m.filter(function(T){return y.indexOf(T)===-1})}function u(m){m.parentNode.removeChild(m)}function p(m){return m.shadowRoot||n.get(m)}var s=["addRule","deleteRule","insertRule","removeRule"],h=CSSStyleSheet,w=h.prototype;w.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},w.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};function g(m){return typeof m=="object"?C.isPrototypeOf(m)||w.isPrototypeOf(m):!1}function v(m){return typeof m=="object"?w.isPrototypeOf(m):!1}var x=new WeakMap,k=new WeakMap,S=new WeakMap,_=new WeakMap;function P(m,y){var T=document.createElement("style");return S.get(m).set(y,T),k.get(m).push(y),T}function L(m,y){return S.get(m).get(y)}function $(m,y){S.get(m).delete(y),k.set(m,k.get(m).filter(function(T){return T!==y}))}function B(m,y){requestAnimationFrame(function(){y.textContent=x.get(m).textContent,_.get(m).forEach(function(T){return y.sheet[T.method].apply(y.sheet,T.args)})})}function N(m){if(!x.has(m))throw new TypeError("Illegal invocation")}function F(){var m=this,y=document.createElement("style");e.body.appendChild(y),x.set(m,y),k.set(m,[]),S.set(m,new WeakMap),_.set(m,[])}var C=F.prototype;C.replace=function(y){try{return this.replaceSync(y),Promise.resolve(this)}catch(T){return Promise.reject(T)}},C.replaceSync=function(y){if(N(this),typeof y=="string"){var T=this;x.get(T).textContent=l(y),_.set(T,[]),k.get(T).forEach(function(R){R.isConnected()&&B(T,L(T,R))})}},r(C,"cssRules",{configurable:!0,enumerable:!0,get:function(){return N(this),x.get(this).sheet.cssRules}}),r(C,"media",{configurable:!0,enumerable:!0,get:function(){return N(this),x.get(this).sheet.media}}),s.forEach(function(m){C[m]=function(){var y=this;N(y);var T=arguments;_.get(y).push({method:m,args:T}),k.get(y).forEach(function(b){if(b.isConnected()){var O=L(y,b).sheet;O[m].apply(O,T)}});var R=x.get(y).sheet;return R[m].apply(R,T)}}),r(F,Symbol.hasInstance,{configurable:!0,value:g});var q={childList:!0,subtree:!0},I=new WeakMap;function z(m){var y=I.get(m);return y||(y=new tt(m),I.set(m,y)),y}function j(m){r(m.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return z(this).sheets},set:function(y){z(this).update(y)}})}function A(m,y){for(var T=document.createNodeIterator(m,NodeFilter.SHOW_ELEMENT,function(b){return p(b)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},null,!1),R=void 0;R=T.nextNode();)y(p(R))}var U=new WeakMap,V=new WeakMap,Y=new WeakMap;function ot(m,y){return y instanceof HTMLStyleElement&&V.get(m).some(function(T){return L(T,m)})}function ct(m){var y=U.get(m);return y instanceof Document?y.body:y}function Q(m){var y=document.createDocumentFragment(),T=V.get(m),R=Y.get(m),b=ct(m);R.disconnect(),T.forEach(function(O){y.appendChild(L(O,m)||P(O,m))}),b.insertBefore(y,null),R.observe(b,q),T.forEach(function(O){B(O,L(O,m))})}function tt(m){var y=this;y.sheets=[],U.set(y,m),V.set(y,[]),Y.set(y,new MutationObserver(function(T,R){if(!document){R.disconnect();return}T.forEach(function(b){t||i.call(b.addedNodes,function(O){O instanceof Element&&A(O,function(G){z(G).connect()})}),i.call(b.removedNodes,function(O){O instanceof Element&&(ot(y,O)&&Q(y),t||A(O,function(G){z(G).disconnect()}))})})}))}if(tt.prototype={isConnected:function(){var m=U.get(this);return m instanceof Document?m.readyState!=="loading":c(m.host)},connect:function(){var m=ct(this);Y.get(this).observe(m,q),V.get(this).length>0&&Q(this),A(m,function(y){z(y).connect()})},disconnect:function(){Y.get(this).disconnect()},update:function(m){var y=this,T=U.get(y)===document?"Document":"ShadowRoot";if(!Array.isArray(m))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+T+": Iterator getter is not callable.");if(!m.every(g))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+T+": Failed to convert value to 'CSSStyleSheet'");if(m.some(v))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+T+": Can't adopt non-constructed stylesheets");y.sheets=m;var R=V.get(y),b=d(m),O=f(R,b);O.forEach(function(G){u(L(G,y)),$(G,y)}),V.set(y,b),y.isConnected()&&b.length>0&&Q(y)}},window.CSSStyleSheet=F,j(Document),"ShadowRoot"in window){j(ShadowRoot);var et=Element.prototype,rt=et.attachShadow;et.attachShadow=function(y){var T=rt.call(this,y);return y.mode==="closed"&&n.set(this,T),T}}var J=z(document);J.isConnected()?J.connect():document.addEventListener("DOMContentLoaded",J.connect.bind(J))})();var ln='*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.14 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:GTStandard-M,sans-serif;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:host{font-family:GTStandard-M,sans-serif}:host([data-nametag=shop-portal-provider]){all:initial!important}:host(shopify-payment-terms){font-family:inherit}.\\!container{width:100%!important}.container{width:100%}@media (min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-05{inset:2px}.inset-x-0{left:0;right:0}.inset-y-0{bottom:0;top:0}.bottom-8{bottom:32px}.bottom-\\[15\\%\\]{bottom:15%}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\\[800\\]{z-index:800}.z-max{z-index:2147483647}.float-right{float:right}.-m-px{margin:-1px}.m-0{margin:0}.m-\\[1em\\]{margin:1em}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-0\\.5{margin-bottom:.125rem;margin-top:.125rem}.my-1{margin-bottom:4px;margin-top:4px}.my-5{margin-bottom:20px;margin-top:20px}.my-7{margin-bottom:28px;margin-top:28px}.my-px{margin-bottom:1px;margin-top:1px}.-ml-1{margin-left:-4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-5{margin-bottom:20px}.mb-7{margin-bottom:28px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.mr-0\\.5{margin-right:.125rem}.mr-20{margin-right:5rem}.mr-3{margin-right:12px}.mt-4{margin-top:16px}.mt-5{margin-top:20px}.mt-8{margin-top:32px}.box-content{box-sizing:initial}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-branded-button-icon{aspect-ratio:60/25}.aspect-shop-pay-icon{aspect-ratio:99/25}.size-0{height:0;width:0}.size-10{height:40px;width:40px}.size-5{height:20px;width:20px}.size-6{height:24px;width:24px}.size-8{height:32px;width:32px}.size-full{height:100%;width:100%}.h-10{height:40px}.h-3{height:12px}.h-4{height:16px}.h-4-5{height:18px}.h-5{height:20px}.h-8{height:32px}.h-9{height:36px}.h-\\[14px\\]{height:14px}.h-\\[22px\\]{height:22px}.h-auto{height:auto}.h-branded-button-icon{height:var(--font-paragraph--size,16px)}.h-full{height:100%}.h-px{height:1px}.max-h-8{max-height:32px}.max-h-\\[80vh\\]{max-height:80vh}.w-16{width:64px}.w-22{width:88px}.w-37{width:148px}.w-55{width:220px}.w-6{width:24px}.w-85{width:340px}.w-9{width:36px}.w-\\[432px\\]{width:432px}.w-\\[59px\\]{width:59px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-pay-button{width:var(--shop-pay-button-width,260px)}.w-px{width:1px}.min-w-100{min-width:400px}.min-w-85{min-width:340px}.min-w-max{min-width:max-content}.max-w-100{max-width:400px}.max-w-85{max-width:340px}.max-w-\\[40\\%\\]{max-width:40%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0{flex-shrink:0}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-94{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-94{--tw-translate-y:376px}.translate-y-\\[9\\.375\\%\\]{--tw-translate-y:9.375%}.translate-y-\\[9\\.375\\%\\],.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-45{--tw-rotate:45deg}.rotate-45,.scale-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fadeIn 1s}@keyframes fadeOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}.animate-fade-out{animation:fadeOut .3s ease-out}@keyframes follow{0%{transform:scaleY(1);width:100%}25%{transform:scaleY(1)}50%{transform:scaleY(1.2)}to{transform:scaleY(1);width:36px}}.animate-follow{animation:follow .3s cubic-bezier(.45,0,.15,1)}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes reveal{to{stroke-dashoffset:408}}.animate-reveal{animation:reveal 1.3s ease-in-out 0s infinite reverse}@keyframes slideUp{0%,20%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.animate-slide-up{animation:slideUp .3s ease-in}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1.3s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize{resize:both}.list-none{list-style-type:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.content-center{align-content:center}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\\.5{gap:.125rem}.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-text-icon{gap:.25em}.gap-x-1{column-gap:4px}.gap-x-1-5{column-gap:6px}.gap-x-3{column-gap:12px}.gap-x-4{column-gap:16px}.gap-y-3{row-gap:12px}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(12px*var(--tw-space-y-reverse));margin-top:calc(12px*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(16px*var(--tw-space-y-reverse));margin-top:calc(16px*(1 - var(--tw-space-y-reverse)))}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.rounded-login-button{border-radius:var(--buttons-radius,var(--x-primary-button-border-radius,var(--shop-pay-button-border-radius,12px)))}.rounded-login-card{border-radius:var(--x-border-radius-large,12px)}.rounded-max{border-radius:999px}.rounded-md{border-radius:12px}.rounded-sm{border-radius:8px}.rounded-sm100{border-radius:10px}.rounded-xl{border-radius:20px}.rounded-xs{border-radius:4px}.rounded-xxl{border-radius:28px}.border{border-width:1px}.border-0{border-width:0}.border-\\[0\\.5px\\]{border-width:.5px}.border-b{border-bottom-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-checkout-branded{border-color:var(--x-textfield-border-color,#00000014)}.border-grayscale-l2{--tw-border-opacity:1;border-color:rgb(203 203 202/var(--tw-border-opacity))}.border-grayscale-l2l{--tw-border-opacity:1;border-color:rgb(227 227 227/var(--tw-border-opacity))}.border-white\\/20{border-color:#fff3}.bg-core-idp-social-logins{background-color:var(--x-social-color-background,#fff)}.bg-grayscale-l2{--tw-bg-opacity:1;background-color:rgb(203 203 202/var(--tw-bg-opacity))}.bg-grayscale-l3{--tw-bg-opacity:1;background-color:rgb(240 240 240/var(--tw-bg-opacity))}.bg-grayscale-l4{--tw-bg-opacity:1;background-color:rgb(242 244 245/var(--tw-bg-opacity))}.bg-grayscale-primary-light{--tw-bg-opacity:1;background-color:rgb(112 112 112/var(--tw-bg-opacity))}.bg-overlay{background-color:#0006}.bg-poppy-d1{--tw-bg-opacity:1;background-color:rgb(217 42 15/var(--tw-bg-opacity))}.bg-poppy-l2{--tw-bg-opacity:1;background-color:rgb(255 236 233/var(--tw-bg-opacity))}.bg-purple-primary{--tw-bg-opacity:1;background-color:rgb(84 51 235/var(--tw-bg-opacity))}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-5{--tw-bg-opacity:0.05}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-black\\/95{--tw-gradient-from:#000000f2 var(--tw-gradient-from-position);--tw-gradient-to:#0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-black\\/60{--tw-gradient-to:#0009 var(--tw-gradient-to-position)}.fill-purple-primary{fill:#5433eb}.stroke-white{stroke:#fff}.p-0{padding:0}.p-3{padding:12px}.p-4{padding:16px}.p-5{padding:20px}.p-6{padding:24px}.p-8{padding:32px}.p-shop-button{padding:max(var(--button-padding-block,16px),8px) max(var(--button-padding-inline,44px),16px)}.p-shop-login{padding:var(--x-spacing-base,14px)}.px-0{padding-left:0;padding-right:0}.px-11{padding-left:44px;padding-right:44px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-5{padding-left:20px;padding-right:20px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2-5{padding-bottom:10px;padding-top:10px}.py-2\\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:12px;padding-top:12px}.py-4{padding-bottom:16px;padding-top:16px}.pb-0{padding-bottom:0}.pb-2{padding-bottom:8px}.pb-3{padding-bottom:12px}.pb-4{padding-bottom:16px}.pb-6{padding-bottom:24px}.pr-1\\.5{padding-right:.375rem}.pr-3{padding-right:12px}.pt-0{padding-top:0}.pt-4{padding-top:16px}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-inherit{font-family:inherit}.font-sans{font-family:GTStandard-M,sans-serif}.font-system{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-body-large{font-size:16px;font-weight:450;letter-spacing:-.5px;line-height:22px}.text-body-small{font-weight:450}.text-body-small,.text-body-title-small{font-size:14px;letter-spacing:-.2px;line-height:18px}.text-body-title-small{font-weight:500}.text-branded-button{font-size:var(--font-paragraph--size,16px);font-weight:500;letter-spacing:-.5px;line-height:var(--font-paragraph--line-height,22px)}.text-button-large{font-size:16px;font-weight:600;letter-spacing:-.5px;line-height:22px}.text-button-medium{font-size:14px;font-weight:600;letter-spacing:-.2px;line-height:18px}.text-caption{font-size:12px;font-weight:450;letter-spacing:-.2px;line-height:16px}.text-header-normal{font-size:24px;font-weight:450;letter-spacing:-1px;line-height:26px}.text-subtitle{font-size:18px;font-weight:500;letter-spacing:-1px;line-height:20px}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-6{line-height:1.5rem}.leading-\\[16px\\]{line-height:16px}.leading-\\[20px\\]{line-height:20px}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.tracking-wider{letter-spacing:.05em}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-grayscale-d0{--tw-text-opacity:1;color:rgb(102 102 102/var(--tw-text-opacity))}.text-grayscale-d1{--tw-text-opacity:1;color:rgb(64 64 64/var(--tw-text-opacity))}.text-grayscale-d2{--tw-text-opacity:1;color:rgb(18 18 18/var(--tw-text-opacity))}.text-grayscale-d2\\/70{color:#121212b3}.text-grayscale-l1{--tw-text-opacity:1;color:rgb(168 168 167/var(--tw-text-opacity))}.text-grayscale-l4{--tw-text-opacity:1;color:rgb(242 244 245/var(--tw-text-opacity))}.text-grayscale-primary-light{--tw-text-opacity:1;color:rgb(112 112 112/var(--tw-text-opacity))}.text-poppy-d1{--tw-text-opacity:1;color:rgb(217 42 15/var(--tw-text-opacity))}.text-purple-primary{--tw-text-opacity:1;color:rgb(84 51 235/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-card{--tw-shadow:0 4px 12px #0000000a;--tw-shadow-colored:0 4px 12px var(--tw-shadow-color)}.shadow-card,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0px 8px 30px 0px #0006;--tw-shadow-colored:0px 8px 30px 0px var(--tw-shadow-color)}.outline-none{outline:2px solid #0000;outline-offset:2px}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.ring-black\\/5{--tw-ring-color:#0000000d}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-xl{--tw-backdrop-blur:blur(24px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-400{transition-duration:.4s}.ease-cubic-modal{transition-timing-function:cubic-bezier(.32,.72,0,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-transform{will-change:transform}.forced-color-adjust-none{forced-color-adjust:none}.stroke-dasharray-reveal{stroke-dasharray:136}.stroke-dashoffset-reveal{stroke-dashoffset:136}.first_pt-0:first-child{padding-top:0}.last_border-b-0:last-child{border-bottom-width:0}.last_pb-0:last-child{padding-bottom:0}.hover_bg-purple-d0:hover{--tw-bg-opacity:1;background-color:rgb(69 36 219/var(--tw-bg-opacity))}.hover_text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover_text-grayscale-d1:hover{--tw-text-opacity:1;color:rgb(64 64 64/var(--tw-text-opacity))}.hover_text-grayscale-l2l:hover{--tw-text-opacity:1;color:rgb(227 227 227/var(--tw-text-opacity))}.hover_opacity-80:hover{opacity:.8}.focus_text-black:focus{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.focus_outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus_outline-0:focus{outline-width:0}.focus-visible_outline-none:focus-visible{outline:2px solid #0000;outline-offset:2px}.focus-visible_ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible_ring-purple-l1:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(156 131 248/var(--tw-ring-opacity))}.active_text-black:active{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover_enabled_bg-purple-d0:enabled:hover{--tw-bg-opacity:1;background-color:rgb(69 36 219/var(--tw-bg-opacity))}.hover_enabled_bg-transparent:enabled:hover{background-color:initial}.focus-visible_enabled_outline-none:enabled:focus-visible{outline:2px solid #0000;outline-offset:2px}.focus-visible_enabled_ring:enabled:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible_enabled_ring-purple-l1:enabled:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(156 131 248/var(--tw-ring-opacity))}.disabled_opacity-50:disabled{opacity:.5}.group:hover .group-hover_bg-purple-d0{--tw-bg-opacity:1;background-color:rgb(69 36 219/var(--tw-bg-opacity))}.group:hover .group-hover_text-grayscale-l2l{--tw-text-opacity:1;color:rgb(227 227 227/var(--tw-text-opacity))}.data-hidden_hidden[data-visible=false]{display:none}.data-hidden_opacity-0[data-visible=false]{opacity:0}@media (prefers-reduced-motion:reduce){.motion-reduce_animate-none{animation:none}.motion-reduce_duration-0{transition-duration:0s}}@media (max-width:448px){.sm_absolute{position:absolute}.sm_inset-x-0{left:0;right:0}.sm_bottom-0{bottom:0}.sm_top-auto{top:auto}.sm_hidden{display:none}.sm_max-w-none{max-width:none}.sm_translate-y-0{--tw-translate-y:0px}.sm_translate-y-0,.sm_translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm_translate-y-full{--tw-translate-y:100%}.sm_scale-100{--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm_rounded-none{border-radius:0}.sm_rounded-b-none{border-bottom-left-radius:0;border-bottom-right-radius:0}}';function Xo({children:t,instanceId:e,type:n,variant:o}){const r=X(null),[i,a]=pt(null),{notify:l}=vt();return Qt(()=>{a(r.current.attachShadow({mode:"open"}))},[]),Qt(()=>{if(i){const c=new CSSStyleSheet;c.replace(ln).then(()=>{i.adoptedStyleSheets=[c]}).catch(d=>{l(new Error(`Failed to adopt stylesheets for portal provider: ${d}`))})}},[i,l]),E("div",{"data-nametag":"shop-portal-provider","data-portal-instance-id":e,"data-type":n,"data-variant":o,ref:r,children:i&&Fe(t,i)})}const Kt=["right","left","bottom","top"],Ko=({anchorTo:t,children:e,headerLogo:n,headerTitle:o,hideHeader:r=!1,disableMinWidth:i=!1,key:a,modalTitle:l="Sign in with Shop",onDismiss:c,onModalInViewport:d,popupDisabled:f,type:u,variant:p,visible:s})=>{const{dispatch:h,modalDismissible:w}=se(),{translate:g}=Oo(),v=X(null),[x,k]=pt(null),S=X(null),_=X(null),P=X(null),[L,$]=pt(!1),{instanceId:B}=mt(),N=X(null),{floatingStyles:F,middlewareData:C,refs:q,update:I}=Io({middleware:[Co({crossAxis:!1,fallbackPlacements:Kt.slice(1)}),To({padding:30}),Ro(30),Do({element:S,padding:28})],placement:Kt[0],whileElementsMounted:So});W(()=>{if(t){let R;typeof t=="string"?R=Z.querySelector(t):R=t.current,k(R),q.setReference(R),I()}},[t,q,I]),N.current===null&&(N.current=Z.documentElement.style.overflow),!_.current&&Me()&&(_.current=new IntersectionObserver(R=>{for(const b of R)b.boundingClientRect.top<0&&M.scrollTo({top:0,left:0}),b.isIntersecting&&d?.()})),!v.current&&Me()&&(v.current=new IntersectionObserver(R=>{for(const b of R)if(b.boundingClientRect.top<0&&M.scrollTo({top:0,left:0}),!b.isIntersecting&&b.target.offsetTop){const G=x?.offsetHeight||0,pn=(P.current?.offsetHeight||0)/2,hn=G+pn+30;M.scrollTo({top:b.target.offsetTop-hn})}})),W(()=>()=>{_.current&&_.current.disconnect(),v.current&&v.current.disconnect()},[]);const{isDesktop:z}=zo(),j=K(()=>x&&!f&&z?"dynamic":"center",[x,z,f]);W(()=>{const R=Z.documentElement,b=R?.style.overflow;return()=>{b&&R?R.style.overflow=b:R.style.removeProperty("overflow")}},[]);const A=H(R=>{w&&(c(R),Z.documentElement.style.overflow=N.current||"")},[w,c]);W(()=>{function R({key:b}){(b==="Escape"||b==="Esc")&&A("keyboard")}return M.addEventListener("keydown",R),()=>{M.removeEventListener("keydown",R)}},[A]),W(()=>{s?(Z.documentElement.style.overflow="hidden",_.current&&P.current&&_.current.observe(P.current),v.current&&x&&v.current.observe(x)):(_.current&&P.current&&_.current.unobserve(P.current),v.current&&x&&v.current.unobserve(x),Z.documentElement.style.overflow=N.current||"")},[x,A,s]),W(()=>{if(!s){$(!1);return}const R=()=>{$(!0)};return P.current?.addEventListener("transitionend",R,{once:!0}),()=>{P.current?.removeEventListener("transitionend",R)}},[s]),W(()=>{if(s){const R=setTimeout(()=>{h({type:"modalDismissible"})},400);return()=>{clearTimeout(R)}}},[h,s]);const U=xt("fixed inset-0 z-10 bg-overlay transition-opacity duration-400 ease-cubic-modal motion-reduce_duration-0",s?"opacity-100":"opacity-0"),V=xt("fixed inset-0 z-max overflow-hidden",j==="center"&&"flex items-center justify-center",s?"visible":"pointer-events-none invisible"),Y=u==="wide"?"min-w-100":"min-w-85";let ot="";p==="checkoutModal"&&(ot=u==="wide"?"max-w-100 sm_max-w-none":"max-w-85 sm_max-w-none");const ct=xt("relative z-50 bg-white transition duration-400 ease-cubic-modal will-change-transform focus_outline-none focus_outline-0 motion-reduce_duration-0 sm_absolute sm_inset-x-0 sm_bottom-0 sm_top-auto sm_rounded-b-none",s?"opacity-100 sm_translate-y-0":"opacity-0 sm_translate-y-full",j==="dynamic"&&s?"scale-100":"",j==="dynamic"&&!s?"scale-0 sm_scale-100":"",!i&&Y,ot,!r&&"rounded-xxl"),Q=xt("relative overflow-hidden sm_rounded-b-none",!r&&"rounded-xxl"),tt=K(()=>{if(j==="center")return null;const R={right:{top:C.arrow?.y,left:C.arrow?.x||"-10px"},left:{top:C.arrow?.y,right:C.arrow?.x||"-10px"},bottom:{top:"-10px",left:C.arrow?.x||"-10px"},top:{bottom:"-10px",left:C.arrow?.x||"-10px"}},b=Kt[C.flip?.overflows?.length||0],O=R[b],G=xt("absolute z-30 block size-6 rotate-45 rounded-xs duration-400 ease-cubic-modal sm_hidden",b==="top"?"bg-grayscale-l4":"bg-white");return E("div",{className:G,"data-testid":"authorize-modal-arrow",ref:S,style:O})},[C.arrow?.x,C.arrow?.y,C.flip?.overflows,j]),et=!!o,rt=xt("flex w-full items-center p-4 pb-2",n?"justify-between":"justify-end",et&&"mb-5 gap-x-4 border-b border-solid border-grayscale-l2l px-5 pb-4"),J=j==="dynamic"?F:void 0,y=r?null:E("div",{className:rt,"data-testid":"authorize-modal-header","data-variant":et?"with-title":"default",children:[n,et&&E("div",{className:"flex-1 font-sans text-body-large",children:o}),E("button",{"aria-label":g("button.close",{defaultValue:"Close"}),className:"group relative z-50 flex size-6 cursor-pointer rounded-max","data-testid":"authorize-modal-close-button",onClick:()=>A("close_button"),type:"button",children:[E(Ho,{className:"size-6 text-grayscale-l4 transition-colors group-hover_text-grayscale-l2l"}),E("div",{className:"absolute inset-05 -z-10 rounded-max bg-grayscale-primary-light"})]})]}),T=s?{}:{"aria-hidden":!0};return Fe(E(Xo,{instanceId:B,type:"modal",variant:p,children:E("div",{className:V,"data-testid":"authorize-modal-container","data-variant":u,children:[E("div",{...T,className:U,"data-testid":"authorize-modal-overlay",onClick:()=>A("overlay")}),E(Go,{as:"section",disabled:!L,"aria-modal":"true",...T,"aria-label":l,className:ct,"data-testid":"authorize-modal","data-visible":s,part:"modal",ref:R=>{P.current=R,x&&(q.setFloating(R),I())},role:"dialog",style:J,children:[E("div",{className:Q,children:[y,e]}),tt]})]})},a),Z.body)};function Zo({className:t}){return E("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",children:[E("path",{fill:"currentColor",d:"M50 12.5C50 5.597 44.403 0 37.5 0h-25C5.597 0 0 5.597 0 12.5v25C0 44.403 5.597 50 12.5 50h25C44.403 50 50 44.403 50 37.5v-25z"}),E("path",{fill:"#fff",d:"M14.551 17.49v12.2a.09.09 0 0 0 .092.092h2.249a.091.091 0 0 0 .091-.091v-5.203c0-1.007.676-1.726 1.761-1.726 1.189 0 1.484.969 1.484 1.96v4.969a.09.09 0 0 0 .027.065.09.09 0 0 0 .066.026h2.24a.092.092 0 0 0 .09-.091v-5.266c0-.18-.007-.357-.022-.53a4.681 4.681 0 0 0-.416-1.628c-.52-1.084-1.505-1.785-2.989-1.785a2.989 2.989 0 0 0-2.336 1.195l-.056.066V17.49a.092.092 0 0 0-.091-.092h-2.098a.092.092 0 0 0-.092.092zm-3.441 6.862s-1.088-.256-1.489-.357c-.4-.102-1.101-.328-1.101-.848 0-.544.562-.696 1.138-.696.576 0 1.21.137 1.261.771a.09.09 0 0 0 .09.08l2.108-.008a.091.091 0 0 0 .086-.06.092.092 0 0 0 .005-.036c-.13-2.027-1.915-2.752-3.563-2.752-1.953 0-3.377 1.28-3.377 2.698 0 1.03.294 2 2.597 2.673.402.118.954.27 1.433.4.577.16.884.4.884.784 0 .443-.652.75-1.277.75-.916 0-1.567-.338-1.62-.946a.09.09 0 0 0-.09-.08l-2.104.01a.09.09 0 0 0-.066.028.092.092 0 0 0-.025.066c.096 1.914 1.951 2.945 3.68 2.945 2.57 0 3.74-1.45 3.74-2.796.003-.628-.143-2.075-2.31-2.627zm25.703-2.588V20.54a.088.088 0 0 0-.026-.064.09.09 0 0 0-.065-.027h-2.1a.09.09 0 0 0-.09.09v11.994a.088.088 0 0 0 .026.064.089.089 0 0 0 .065.026h2.249a.09.09 0 0 0 .09-.09v-3.937h.034c.356.542 1.334 1.192 2.608 1.192 2.401 0 4.397-1.98 4.397-4.66 0-2.569-1.984-4.651-4.51-4.651-1.125 0-2.069.62-2.677 1.369v-.082zm2.468 5.747c-1.292 0-2.32-1.072-2.32-2.38 0-1.308 1.027-2.368 2.32-2.368 1.294 0 2.33 1.06 2.33 2.368 0 1.308-1.036 2.38-2.33 2.38zm-11.406-7.554c-2.096 0-3.142.708-3.983 1.28l-.024.016a.205.205 0 0 0-.063.275l.867 1.487a.213.213 0 0 0 .322.056l.065-.054c.432-.36 1.086-.905 2.761-1.04.933-.074 1.74.176 2.33.72.653.601 1.044 1.57 1.044 2.594 0 1.88-1.114 3.064-2.902 3.088-1.474-.008-2.466-.774-2.466-1.906 0-.599.237-1.04.77-1.43a.207.207 0 0 0 .061-.263l-.744-1.402a.215.215 0 0 0-.297-.083c-.836.493-1.822 1.446-1.767 3.182.067 2.21 1.912 3.896 4.31 3.965h.273c2.85-.092 4.907-2.198 4.907-5.048 0-2.637-1.914-5.437-5.463-5.437z"})]})}function Jo({className:t}){return E("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 60 25",role:"img",children:[E("title",{children:"Shop"}),E("path",{fill:"currentColor",d:"M7.74 11.067c-2.35-.509-3.396-.708-3.396-1.612 0-.85.708-1.274 2.125-1.274 1.246 0 2.157.544 2.828 1.609.05.082.155.11.24.066l2.644-1.334a.186.186 0 0 0 .076-.259c-1.098-1.9-3.125-2.94-5.794-2.94-3.507 0-5.686 1.727-5.686 4.47 0 2.914 2.653 3.65 5.006 4.16 2.353.509 3.403.708 3.403 1.612 0 .904-.765 1.33-2.293 1.33-1.41 0-2.457-.644-3.09-1.896a.185.185 0 0 0-.25-.082L.916 16.222a.188.188 0 0 0-.082.253c1.046 2.102 3.194 3.284 6.062 3.284 3.653 0 5.86-1.697 5.86-4.526 0-2.83-2.666-3.65-5.015-4.16v-.006ZM21.909 5.324c-1.5 0-2.824.53-3.776 1.476a.093.093 0 0 1-.158-.067V.7a.185.185 0 0 0-.187-.186H14.48a.185.185 0 0 0-.187.186v18.728c0 .105.083.187.187.187h3.308a.185.185 0 0 0 .187-.187v-8.215c0-1.586 1.217-2.803 2.859-2.803 1.641 0 2.83 1.191 2.83 2.803v8.215c0 .105.082.187.187.187h3.308a.185.185 0 0 0 .186-.187v-8.215c0-3.451-2.264-5.888-5.436-5.888ZM34.056 4.786c-1.796 0-3.478.55-4.687 1.344a.187.187 0 0 0-.06.25l1.458 2.487c.054.089.168.12.256.066a5.812 5.812 0 0 1 3.04-.834c2.887 0 5.01 2.035 5.01 4.725 0 2.292-1.7 3.99-3.853 3.99-1.755 0-2.973-1.022-2.973-2.463 0-.825.351-1.501 1.265-1.979a.183.183 0 0 0 .073-.259L32.21 9.787a.186.186 0 0 0-.224-.08c-1.844.683-3.137 2.327-3.137 4.533 0 3.338 2.66 5.829 6.369 5.829 4.333 0 7.448-3 7.448-7.302 0-4.611-3.624-7.98-8.609-7.98ZM52.342 5.295c-1.673 0-3.169.62-4.26 1.707a.092.092 0 0 1-.158-.066V5.627a.185.185 0 0 0-.186-.186h-3.223a.185.185 0 0 0-.187.186v18.7c0 .104.082.186.187.186h3.308a.185.185 0 0 0 .187-.187v-6.131c0-.083.098-.124.158-.07 1.088 1.012 2.527 1.602 4.174 1.602 3.88 0 6.907-3.138 6.907-7.216 0-4.077-3.03-7.216-6.907-7.216Zm-.626 11.265c-2.207 0-3.88-1.754-3.88-4.074s1.67-4.074 3.88-4.074 3.877 1.726 3.877 4.074c0 2.349-1.644 4.074-3.88 4.074h.003Z"})]})}const Qo=()=>E(Ct,{children:[E("div",{class:"animate-pulse px-4 py-1 pb-6","data-testid":"loading-skeleton",children:[E("div",{class:"flex items-center pb-3",children:[E("div",{class:"mr-3 size-6 rounded-max bg-grayscale-l2"}),E("div",{class:"mr-20 h-3 flex-1 rounded-md bg-grayscale-l2"})]}),E("div",{class:"h-10 rounded-md bg-grayscale-l2"})]}),E("div",{class:"h-10 animate-pulse bg-grayscale-l3"})]}),tr=({children:t})=>{const{uiRendered:e}=se();return E(Ct,{children:[!e&&E(Qo,{}),E("div",{children:t})]})},er=["api_unavailable","captcha_challenge","retriable_server_error"],nr=[/existing customer \d+ on shop \d+ has a conflicting provider subject associated: existing '([^']+)' != incoming '([^']+)'/,/no_prequalification_amount_available/];function or(t,e){return!(er.includes(t)||nr.some(n=>n.test(e)))}const rr=Ne(({activator:t,allowAttribute:e,anchorTo:n,autoOpen:o,disableDefaultIframeResizing:r=!1,insideModal:i=!0,keepModalOpen:a=!1,modalHeaderTitle:l,modalHeaderVisible:c=!0,onComplete:d,onCustomFlowSideEffect:f,onError:u,onLoaded:p,onModalVisibleChange:s,onResizeIframe:h,onStripeLinkUserFound:w,onPromptChange:g,onPromptContinue:v,proxy:x,scrolling:k,src:S,storefrontOrigin:_,modalType:P,variant:L},$)=>{const{dispatch:B,loaded:N,modalVisible:F}=se(),{leaveBreadcrumb:C,notify:q}=vt(),I=ue(),{clearLoadTimeout:z,initLoadTimeout:j}=Hn(),{trackPageImpression:A,trackPostMessageTransmission:U}=ce(),{recordCounter:V}=Be(),Y=X(null),ot=qn(F),ct=b=>{b&&(Y.current=b,b.getAttribute("src")||b.setAttribute("src",S))},Q=H(b=>{B({type:"showModal",reason:b})},[B]),tt=H(({dismissMethod:b,reason:O})=>{F&&(B({type:"hideModal",reason:O,dismissMethod:b}),t?.current&&Oe(t)&&t.current.focus())},[t,B,F]);W(()=>{function b(){Q("user_button_clicked")}const O=Ye(b,150,!0),G=t;if(G?.current&&Oe(G))return G.current.addEventListener("click",O),()=>{G.current?.removeEventListener("click",O)}},[t,Q]);const et=H(()=>{_e({iframe:Y.current,src:S})},[S]),{destroy:rt,waitForMessage:J}=$n({includeCore:x,onClose:()=>tt({dismissMethod:"auto",reason:"event_close_requested"}),onComplete:async b=>{!a&&i&&tt({dismissMethod:"auto",reason:"event_completed"}),await d?.(b)},onCustomFlowSideEffect:f,onError:b=>{const{message:O,code:G}=b;or(G,O)?(C("authorize error",{code:G,message:O},"state"),q(new wt(O,"AuthorizeError"))):(V("shop_js_handle_silent_error",{attributes:{errorCode:G}}),C("silent error",{code:G},"state")),z(),u?.(b)},onLoaded:b=>{B({type:"loaded",payload:{autoOpen:!!o,sessionDetected:b.userFound}}),p?.(b),z()},onUnloaded:()=>{B({type:"reset"})},onResizeIframe:b=>{r||Y.current&&(Y.current.style.height=`${b.height}px`),b.height>0&&B({type:"uiRendered"}),h?.(b)},onShopUserMatched:()=>{I("shopusermatched"),C("shop user matched",{},"state")},onShopUserNotMatched:({apiError:b})=>{I("shopusernotmatched",b&&{apiError:b}),C("shop user not matched",{},"state")},onStripeLinkUserFound:b=>{C("stripe link user found - raw event",{event:b},"state");const O={email:b?.email,phone:b?.phone};O.email||C("stripe link user found - missing email",{event:b,detail:O},"error"),I("stripelinkuserfound",O),C("stripe link user found",{email:b?.email,phone:b?.phone},"state"),w?.(b)},onPromptChange:()=>{g?.()},onPromptContinue:()=>{v?.()},source:Y,storefrontOrigin:_});W(()=>()=>{Y.current&&rt()},[rt]);const m=H(async(b,{afterLoaded:O=!1}={})=>{O&&!N&&await J("loaded"),Yn({contentWindow:Y.current?.contentWindow,event:b,onMessageSent:G=>U({direction:"outgoing",event:G})})},[N,U,J]);W(()=>{if(F!==ot){if(F){try{m({type:"sheetmodalopened"},{afterLoaded:!0}),I("modalopened")}catch(b){q(new Error(`Error before calling onModalVisibleChange(true): ${b}`))}s?.(!0);return}m({type:"sheetmodalclosed"},{afterLoaded:!0}),I("modalclosed"),s?.(!1),Z.querySelector("com-1password-notification")?.remove()}},[I,F,q,s,m,ot]),mn($,()=>({close:tt,iframeRef:Y,open:Q,postMessage:m,reload:et,waitForMessage:J}),[tt,Q,m,et,J]),W(()=>{j(),C("Iframe url updated",{src:S},"state")},[j,C,S]),W(()=>{F&&A({page:"AUTHORIZE_MODAL"})},[F,A]),W(()=>{_e({iframe:Y.current,src:S})},[S]);const y=()=>{A({page:"AUTHORIZE_MODAL_IN_VIEWPORT",allowDuplicates:!0}),C("modal in viewport",{},"state")},T=E("iframe",{allow:e||"publickey-credentials-get *",className:"relative z-40 m-auto w-full border-none",ref:ct,tabIndex:0,scrolling:k,"data-testid":"authorize-iframe"}),R=l?E(Zo,{className:"size-8 text-purple-primary"}):E(Jo,{className:"h-4-5 text-purple-primary"});return i?E(Ko,{anchorTo:n,headerLogo:R,headerTitle:l,hideHeader:!c,onDismiss:b=>tt({dismissMethod:b,reason:"user_dismissed"}),onModalInViewport:y,type:P,variant:L,visible:F,children:E(tr,{children:T})}):T});rr.displayName="AuthorizeIframe";function Oe(t){return Object.prototype.hasOwnProperty.call(t,"current")}const ir=(t,e)=>{switch(e.type){case"hideModal":return{...t,modalVisible:!1};case"loaded":{const n=e.payload.autoOpen&&e.payload.sessionDetected&&!t.modalVisible;return{...t,loaded:!0,...n&&!t.modalForceHidden&&{modalDismissible:!1,modalVisible:!0}}}case"modalDismissible":return{...t,modalDismissible:!0};case"reset":return{...ar,modalForceHidden:t.modalForceHidden};case"uiRendered":return{...t,uiRendered:!0};case"showModal":return t.modalForceHidden&&e.reason!=="user_button_clicked"?t:{...t,modalDismissible:!1,modalForceHidden:!1,modalVisible:!0};case"windoidClosed":return{...t,modalForceHidden:!1};case"windoidOpened":return{...t,modalForceHidden:!0,modalVisible:!1};default:return t}},ar={loaded:!1,uiRendered:!1,modalDismissible:!1,modalForceHidden:!1,modalVisible:!1},sr=({children:t})=>{const{leaveBreadcrumb:e,notify:n}=vt(),{trackModalStateChange:o}=ce(),r=H(({action:d,previousState:f,state:u})=>{const p=f.modalVisible!==u.modalVisible,s=u.modalVisible?"shown":"hidden";if(d.type==="loaded"&&(o({currentState:"loaded",reason:"event_loaded"}),e("iframe loaded",{},"state")),p)switch(d.type){case"loaded":o({currentState:s,reason:"event_loaded_with_auto_open"});break;case"windoidOpened":o({currentState:s,dismissMethod:"windoid_continue",reason:"event_windoid_opened"});break;case"showModal":o({currentState:s,reason:d.reason});break;case"hideModal":o({currentState:s,dismissMethod:d.dismissMethod,reason:d.reason});break;case"reset":o({currentState:s,reason:"event_restarted"});break;default:n(new Error(`Could not determine state change reason for action: ${d}`))}},[e,n,o]),i=H((d,f)=>{const u=ir(d,f);return r({action:f,previousState:d,state:u}),u},[r]),[a,l]=gn(i,{loaded:!1,modalDismissible:!1,modalForceHidden:!1,modalVisible:!1,uiRendered:!1}),c=K(()=>{const{loaded:d,modalDismissible:f,modalForceHidden:u,modalVisible:p,uiRendered:s}=a;return{dispatch:l,loaded:d,modalDismissible:f,modalForceHidden:u,modalVisible:p,uiRendered:s}},[l,a]);return E(je.Provider,{value:c,children:t})};var cr={bugsnagApiKey:"e35d7136cee78d344ccffdbd5ca710fa"};class dn extends wn{counter(e){super.counter(e),this.exportMetrics()}gauge(e){super.gauge(e),this.exportMetrics()}histogram(e){super.histogram(e),this.exportMetrics()}log(e){super.log(e),this.exportLogs()}}class lr{#t;constructor(e){this.#t=e}async exportMetrics(e){try{await this.#t.exportMetrics(e)}catch(n){if(n instanceof be){const o=n.metadata?.retryAfter;if(o){await new Promise(r=>{setTimeout(()=>this.exportMetrics(e).finally(r),o.seconds*1e3)});return}}throw n}}async exportLogs(e){try{await this.#t.exportLogs(e)}catch(n){if(n instanceof be){const o=n.metadata?.retryAfter;if(o){await new Promise(r=>{setTimeout(()=>this.exportLogs(e).finally(r),o.seconds*1e3)});return}}throw n}}}const dr={blockedRequest:"Blocked Request",emptyeEventCreatedAtMs:"event_created_at_ms metadata field cannot be empty",errorParsingCreatedAtMs:"Error parsing: X-Monorail-Edge-Event-Created-At-Ms",failedToReadRequestBody:"Failed to read request body",incorrectContentType:"Incorrect Content-Type. Expected: application/json or text/plain",methodNotAllowed:"Method Not Allowed",noPermissionToGetURL:"Your client does not have permission to get URL",noResponseFromEdge:"No response from edge",schemaValidationError:"Schema validation error"};function ur(t){return Object.values(dr).find(([n,o])=>t.message.includes(o))?.[0]||"otherErrors"}const fr="https://otlp-http-production.shopifysvc.com/v1/metrics";function un(){{const t=new yn(fr,"shop-js");return new lr(t)}}const pr="Backpressure applied",hr="A network failure may have prevented the request from completing",mr=["Load failed","Failed to fetch","when attempting to fetch resource"],gr=["NotFoundError","NotSupportedError","ReferenceError","SyntaxError","TypeError"],Ie=["development","spin"].includes("production"),wr=t=>!!(t?.includes(hr)||t?.includes(pr));function yr({metadata:t,onNetworkError:e}){return{apiKey:cr.bugsnagApiKey,appId:"shop-js",appVersion:"1.0.34-2173-beta",onError:n=>{const o=n.exceptions[0];if(!o)return!1;const{errorClass:r,message:i}=o,a=r==="NetworkError"||mr.some(u=>i?.includes(u))||wr(i),l=o.stacktrace.some(u=>u.inProject);if(a)return e(),!1;if(!l||gr.includes(r))return!1;const c=M.Shopify?.featureAssets?.["shop-js"],d=!!(c&&Object.keys(c).length>0),f=Array.from(Z.querySelectorAll('script[src*="/shop-js/"]')).map(u=>u.src);n.device={locale:dt.userLanguage||dt.language,userAgent:dt.userAgent,orientation:M.screen?.orientation?.type,time:new Date().toISOString()},n.metaData={...n.metaData,...t,custom:{...n.metaData?.custom,...t.custom,beta:!0,bundleLocale:"",compactUX:!0,domain:M?.location?.hostname,shopJsUrls:f,shopJsFeatureAssetsExist:d}},n.request={url:M.location.href}},releaseStage:"production"}}class fn{opentelClient=new dn({exporter:un()});constructor(e){const n=yr({metadata:{custom:{feature:e}},onNetworkError:this.handleNetworkError.bind(this)});this.client=new bn(n),this.feature=e||"",this.leaveBreadcrumb=this.leaveBreadcrumb.bind(this),this.notify=this.notify.bind(this)}leaveBreadcrumb(e,n,o){if(!this.client){console.log("Bugsnag.leaveBreadcrumb() called before client creation.");return}if(Ie){console.log("[Bugsnag leaveBreadcrumb called]",e,n,o);return}this.client.leaveBreadcrumb(e,n,o)}async notify(e,n){if(!this.client){console.warn?.("Bugsnag.notify() called before client creation.");return}if(Ie){console.log("[Bugsnag notify called]",e);return}this.client.notify(e,n)}handleNetworkError(){this.opentelClient.counter({attributes:{beta:!0,feature:this.feature,error:"NetworkError"},name:"shop_js_network_error",value:1})}}const br=({children:t})=>{const{featureName:e}=mt(),n=K(()=>{e||["development","spin"].includes("production")&&console.warn?.("BugsnagProvider created without a feature name.");const{client:o,leaveBreadcrumb:r,notify:i}=new fn(e);return{client:o,leaveBreadcrumb:r,notify:i}},[e]);return E(Ue.Provider,{value:n,children:t})};function vr({children:t}){const[e]=vn(),{notify:n}=vt();return W(()=>{e&&n(e instanceof Error?e:new wt(e,"UnhandledError"),{context:"Error in Preact tree"})},[e,n]),E(Ct,{children:t})}const xr=t=>import(t),_r=t=>{try{return new M.URL(t)}catch{return null}};async function Er(t,{maxRetries:e=3,retryDelay:n=1e3,signal:o}={}){const r=async({retryCount:i=0,importPromise:a,retryImportPath:l})=>{if(!o?.aborted)try{return a?await a():await xr(l||"")}catch(c){if(!(c instanceof Error)||o?.aborted)return;const d=_r(c.message.replace("Failed to fetch dynamically imported module: ","").trim());if(!d)throw c;if(d.searchParams.set("t",`${Number(new Date)}`),isetTimeout(f,n)),o?.aborted?void 0:r({retryCount:i+1,retryImportPath:d.href});throw c}};return r({importPromise:t})}function kr(t){switch(t){case"./translations/bg-BG.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.b),[]);case"./translations/cs.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.c),[]);case"./translations/da.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.d),[]);case"./translations/de.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.a),[]);case"./translations/el.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.e),[]);case"./translations/en.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.f),[]);case"./translations/es.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.g),[]);case"./translations/fi.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.h),[]);case"./translations/fr.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.i),[]);case"./translations/hi.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.j),[]);case"./translations/hr-HR.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.k),[]);case"./translations/hu.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.l),[]);case"./translations/id.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.m),[]);case"./translations/it.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.n),[]);case"./translations/ja.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.o),[]);case"./translations/ko.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.p),[]);case"./translations/lt-LT.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.q),[]);case"./translations/ms.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.r),[]);case"./translations/nb.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.s),[]);case"./translations/nl.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.t),[]);case"./translations/pl.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.u),[]);case"./translations/pt-BR.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.v),[]);case"./translations/pt-PT.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.w),[]);case"./translations/ro-RO.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.x),[]);case"./translations/ru.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.y),[]);case"./translations/sk-SK.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.z),[]);case"./translations/sl-SI.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.A),[]);case"./translations/sv.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.B),[]);case"./translations/th.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.C),[]);case"./translations/tr.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.D),[]);case"./translations/vi.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.E),[]);case"./translations/zh-CN.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.F),[]);case"./translations/zh-TW.json":return D(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.G),[]);default:return new Promise(function(e,n){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t)))})}}function Zt(t){return Po.includes(t)}const jt=[],Ut=[],Pt=new Map;function Sr(t){let e={};const n=Pt.get(t);Ut.forEach(o=>{e={...e,...o}}),Pt.set(t,{...n,...e}),jt.forEach(o=>o()),jt.splice(0,jt.length),Ut.splice(0,Ut.length)}const Rr=Ye(Sr,250);function Tr({children:t,getFeatureDictionary:e,overrideLocale:n}){const{notify:o}=vt(),[r,i]=pt(void 0),{featureName:a}=mt(),[l,c]=pt(),d=H(()=>{const p=Object.freeze([n,Z.documentElement.lang,M.Shopify?.locale,...dt.languages].filter(h=>h));let s;for(const h of p){if(Zt(h)){s=h;break}try{const w=new Intl.Locale(h);if(w.language&&Zt(w.language)){s=w.language;break}else console.error(`Unsupported locale: "${h}"`)}catch{console.error(`Invalid locale: "${h}"`)}}return s||"en"},[n]),f=H(async()=>{if(Zt(r)){if(!Pt.has(r)){c(!0);try{const p=await Er(async()=>await kr(`./translations/${r}.json`),{maxRetries:5,retryDelay:1e3});Pt.set(r,p)}catch(p){o(new wt(`Failed to fetch translations for locale ${r}: ${p}`,"TranslationFetchError"))}}if(a&&e){c(!0);const p=e?await e(r):{};Ut.push(p)}jt.push(()=>c(!1)),Rr(r)}},[a,e,r,o]);W(()=>{const p=d();i(p)},[d]),W(()=>{try{f()}catch(p){p instanceof Error&&o(p)}},[f,r,o]);const u=K(()=>({loading:l,locale:r,translations:Pt}),[l,r]);return E(an.Provider,{value:u,children:l===!1&&t})}function Cr(t,e=200,n=!1){const o=X(),r=X(t);return r.current=t,H((...i)=>{const a=(...c)=>{o.current=void 0,n||r.current?.(...c)},l=n&&!o.current;typeof o.current=="number"&&clearTimeout(o.current),o.current=setTimeout(a,e,...i),l&&r.current?.(...i)},[e,n])}function De(){const t=Z.querySelector("script#shop-js-analytics")?.innerHTML;return t?JSON.parse(t):{}}async function ze(){let t;return Promise.race([new Promise(n=>t=setTimeout(()=>n({}),1e4)),new Promise(n=>{(M.ShopifyAnalytics?.lib?.ready||M.analytics?.ready)?.(()=>{const i=(M.ShopifyAnalytics?.lib?.trekkie||M.analytics?.trekkie)?.defaultAttributes??{};n(i)})})]).finally(()=>clearTimeout(t))}async function re(...t){if(!M.ShopifyAnalytics&&!M.analytics)return{};let e;!!M.trekkie?.ready?e=ze():(M.trekkie=M.trekkie||[],e=new Promise(r=>{M.trekkie.push(["ready",()=>{r(ze())}])}));const o=await e;return t.reduce((r,i)=>{const a=o[i];return a!==void 0&&(r[i]=a),r},{})}function Ar(t){const e=/Cannot read properties of (null|undefined) \(reading 'status'\)/,n=/(null|undefined) is not an object \(evaluating '[a-zA-Z]+\.status'\)/,o=/[a-zA-Z]+ is (null|undefined)/,r=t instanceof xn&&t.status===200;return!(t instanceof _n)&&!(t instanceof En)&&!t?.message?.includes("Invalid agent:")&&!t?.message?.includes(".text is not a function")&&!t?.message?.includes("event_sent_at_ms metadata field cannot be empty")&&!t?.message?.includes("event_created_at_ms metadata field cannot be empty.")&&!t?.message?.match(e)&&!t?.message?.match(n)&&!t?.message?.match(o)&&!r}function Pr(){const t=new kn({version:"v1"});return[new Sn({provider:t})]}const Ft="unspecified",Lr=Pr(),Mr=["authorize_step_changed","createprequal","resize_iframe","setcomponentstyle","verification_step_changed"],Or=Rn.createHttpProducer({production:!0,middleware:Lr});function Ir(t){return"email"in t}class Dr{#t;featureInitializationEventAlreadyEmitted=!1;trackedPageImpressions=new Set;constructor({analyticsData:e,devMode:n=!1,notify:o,recordCounter:r}){this.#t={...e,flowVersion:e.flowVersion??Ft},this.devMode=n,this.notify=o,this.recordCounter=r,this.clearTrackedPageImpressions=this.clearTrackedPageImpressions.bind(this),this.produceMonorailEvent=this.produceMonorailEvent.bind(this),this.trackFeatureInitialization=this.trackFeatureInitialization.bind(this),this.trackModalStateChange=this.trackModalStateChange.bind(this),this.trackPageImpression=this.trackPageImpression.bind(this),this.trackUserAction=this.trackUserAction.bind(this),this.trackPostMessageTransmission=this.trackPostMessageTransmission.bind(this)}get analyticsData(){return this.#t}set analyticsData(e){const n={...this.#t,...e};Ot(n,this.#t)||(this.#t=n)}clearTrackedPageImpressions(){this.trackedPageImpressions.clear()}produceMonorailEvent({event:e,onError:n,trekkieAttributes:o}){if(!this.devMode){if(o&&!Object.keys(o).length){n?.({message:"trekkie attributes are empty"});return}e.payload=Object.assign(e.payload,o),Or.produce(e).catch(r=>{if(n?.(r),Ar(r)){const i=r instanceof Error?r:new wt(String(r),"MonorailProducerError");if(this.notify?.(i),this.recordCounter){const a=ur(i);this.recordCounter("shop_js_monorail_producer_error",{attributes:{error:a}})}}})}}async trackFeatureInitialization(){const{analyticsTraceId:e,apiKey:n,checkoutToken:o,flow:r,flowVersion:i=Ft,shopId:a,source:l="unspecified",uxMode:c}=this.analyticsData;if(!r)return;this.featureInitializationEventAlreadyEmitted&&this.notify?.(new wt(`Feature Initialize Event already emitted once for the feature ${r}`,"MonorailLogicError",e));const f=De()?.pageType??"",u=await re("customerId","isPersistentCookie","path","uniqToken","visitToken"),p={...n&&{apiKey:n},...o&&{checkoutToken:o},...a&&{shopId:a},...u,analyticsTraceId:e,flow:r,flowVersion:i,sdkVersion:"1.0.34-2173-beta",shopPermanentDomain:M.Shopify?.shop??"",source:l,storefrontPageType:f,uxMode:c};this.featureInitializationEventAlreadyEmitted=!0,this.produceMonorailEvent({event:{schemaId:"shopify_pay_login_with_shop_sdk_feature_initialize/1.1",payload:p}})}trackModalStateChange({currentState:e,dismissMethod:n,reason:o}){const{analyticsTraceId:r,checkoutToken:i,flow:a,flowVersion:l="unspecified"}=this.analyticsData;a&&(this.produceMonorailEvent({event:{schemaId:"shop_identity_modal_state_change/1.4",payload:{analyticsTraceId:r,checkoutToken:i,currentState:e,dismissMethod:n,flow:a,flowVersion:l,previousState:this.previousModalState,reason:o,zoom:`${M.visualViewport?.scale}`}}}),this.previousModalState=e)}async trackPageImpression({allowDuplicates:e=!1,analyticsTraceId:n=this.analyticsData.analyticsTraceId,flow:o=this.analyticsData.flow,page:r,shopAccountUuid:i}){if(!e&&this.trackedPageImpressions.has(r))return;const{apiKey:a,checkoutToken:l,flowVersion:c=Ft}=this.analyticsData;if(!o)return;this.trackedPageImpressions.add(r);const f=De()?.pageType??"",u=await re("customerId","isPersistentCookie","path","uniqToken","visitToken"),p={...a&&{apiKey:a},...l&&{checkoutToken:l},...i&&{shopAccountUuid:i},...u,analyticsTraceId:n,flow:o,flowVersion:c,pageName:r,sdkVersion:"1.0.34-2173-beta",shopPermanentDomain:M.Shopify?.shop??"",storefrontPageType:f};this.produceMonorailEvent({event:{payload:p,schemaId:"shopify_pay_login_with_shop_sdk_page_impressions/3.3"},onError:()=>{this.trackedPageImpressions.delete(r)},trekkieAttributes:u})}trackUserAction({userAction:e}){const{analyticsTraceId:n,apiKey:o,checkoutToken:r,checkoutVersion:i,flow:a,flowVersion:l=Ft,shopId:c}=this.analyticsData;if(!a)return;const d={...o&&{apiKey:o},...r&&{checkoutToken:r},...i&&{checkoutVersion:i},...c&&{shopId:c},analyticsTraceId:n,flow:a,flowVersion:l,sdkVersion:"1.0.34-2173-beta",shopPermanentDomain:M.Shopify?.shop??"",userAction:e};this.produceMonorailEvent({event:{schemaId:"shopify_pay_login_with_shop_sdk_user_actions/2.2",payload:d}})}trackPostMessageTransmission({direction:e,event:n}){const o=n.type;if(Mr.includes(o))return;const r=Date.now(),i=n.messageId,{analyticsTraceId:a,checkoutToken:l,shopPermanentDomain:c}=this.analyticsData,d=Ir(n)?n.email:void 0,f={eventType:o,direction:e,actor:"shop-js"};this.recordCounter?.("shop_js_post_message_transmission",{attributes:f}),this.produceMonorailEvent({event:{schemaId:"shop_identity_post_message_transmission/1.0",payload:{messageId:i,messageDirection:e,actor:"shop-js",payloadType:o,clientTimestampMs:r,analyticsTraceId:a,checkoutToken:l,shopifyDomain:c,email:d}}})}}const zr=({analyticsContext:t="loginWithShop",apiKey:e,checkoutVersion:n,checkoutToken:o,children:r,flow:i,flowVersion:a,shopId:l=0,shopPermanentDomain:c,source:d,uxMode:f})=>{const{notify:u}=vt(),{recordCounter:p}=Be(),{devMode:s,instanceId:h}=mt(),w=X({analyticsContext:t,analyticsTraceId:h,apiKey:e,checkoutVersion:n,checkoutToken:o,flow:i,flowVersion:a,shopId:l,shopPermanentDomain:c,source:d,uxMode:f}),g=K(()=>new Dr({analyticsData:w.current,devMode:s,notify:u,recordCounter:p}),[s,u,p]);g.analyticsData={...w.current,analyticsTraceId:h,analyticsContext:t,apiKey:e,checkoutVersion:n,checkoutToken:o,flow:i,flowVersion:a,shopId:l,shopPermanentDomain:c,source:d,uxMode:f},W(()=>()=>{g.clearTrackedPageImpressions()},[g]);const v=Cr(()=>{g.trackFeatureInitialization()},100);W(()=>{v()},[v]);const x=K(()=>({analyticsData:g.analyticsData,getTrekkieAttributes:re,produceMonorailEvent:g.produceMonorailEvent,trackModalStateChange:g.trackModalStateChange,trackPageImpression:g.trackPageImpression,trackUserAction:g.trackUserAction,trackPostMessageTransmission:g.trackPostMessageTransmission}),[g.analyticsData,g.produceMonorailEvent,g.trackModalStateChange,g.trackPageImpression,g.trackUserAction,g.trackPostMessageTransmission]);return E(We.Provider,{value:x,children:r})};function Vr({children:t}){const{featureName:e}=mt(),n=K(()=>new dn({exporter:un()}),[]),o=H(({body:c,attributes:d})=>{n.log({body:c,attributes:{beta:!0,feature:e,...d}})},[n,e]),r=H((c,d={})=>{const{attributes:f,unit:u,value:p=1}=d;n.counter({attributes:{beta:!0,feature:e,...f},name:c,value:p,unit:u})},[n,e]),i=H((c,d={})=>{const{attributes:f,unit:u,value:p=1}=d;n.gauge({attributes:{beta:!0,feature:e,...f},name:c,value:p,unit:u})},[n,e]),a=H((c,d={})=>{const{attributes:f,unit:u,value:p=1,bounds:s}=d;n.histogram({attributes:{beta:!0,feature:e,...f},bounds:s,name:c,value:p,unit:u})},[n,e]),l=K(()=>({client:n,log:o,recordCounter:r,recordGauge:i,recordHistogram:a}),[n,o,r,i,a]);return E($e.Provider,{value:l,children:t})}const Nr=` @font-face { font-family: 'GTStandard-M'; src: url('https://cdn.shopify.com/shop-assets/static_uploads/shoplift/GTStandard-MRegular.woff2') format('woff2'); font-style: normal; font-weight: 450; font-display: swap; } @font-face { font-family: 'GTStandard-M'; src: url('https://cdn.shopify.com/shop-assets/static_uploads/shoplift/GTStandard-MMedium.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; } @font-face { font-family: 'GTStandard-M'; src: url('https://cdn.shopify.com/shop-assets/static_uploads/shoplift/GTStandard-MSemibold.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }`,Ve="gravity-font-faces",ii=({authorizeStateEnabled:t=!0,children:e,devMode:n=!1,element:o,featureName:r,getFeatureDictionary:i,metricsEnabled:a=!0,monorailProps:l,overrideLocale:c})=>{W(()=>{if(Z.querySelector(`style[data-description="${Ve}"]`))return;const u=Z.createElement("style");u.dataset.description=Ve,u.appendChild(Z.createTextNode(Nr)),Z.head.appendChild(u)},[]);const d=K(()=>ae(),[]);W(()=>{o&&o.setAttribute("data-instance-id",d)},[o,d]);const f=K(()=>({devMode:n,element:o,featureName:r,instanceId:d}),[n,o,r,d]);return E(qe.Provider,{value:f,children:E(Fr,{enabled:a,monorailProps:l,children:E(Tr,{getFeatureDictionary:i,overrideLocale:c,children:E(jr,{enabled:t,children:e})})})})};function Fr({children:t,enabled:e=!0,monorailProps:n}){return e?E(br,{children:E(vr,{children:E(Vr,{children:E(zr,{...n,children:t})})})}):E(Ct,{children:t})}function jr({children:t,enabled:e=!0}){return e?E(sr,{children:t}):t}const it=t=>{if(t!==void 0)return t===!1?"false":"true"};function ie({analyticsContext:t,analyticsTraceId:e,apiKey:n,avoidSdkSession:o,checkoutRedirectUrl:r,checkoutToken:i,checkoutVersion:a,clientId:l,codeChallenge:c,codeChallengeMethod:d,consentChallenge:f,ctx:u,disableSignUp:p,error:s,experiments:h,flow:w,flowVersion:g,hideCopy:v,isCompactLayout:x=!0,isFullView:k,locale:S,loginHint:_,modalCustomized:P,orderId:L,origin:$,personalizeAds:B,prompt:N,placement:F,popUpFeatures:C,popUpName:q,redirectType:I,redirectUri:z,requireVerification:j,responseMode:A,responseType:U,returnUri:V,scope:Y,shopId:ot,state:ct,storefrontDomain:Q,transactionParams:tt,uxMode:et,uxRole:rt,hideButtons:J,hideHeader:m,accentColor:y,darkMode:T}){const R=p===void 0?void 0:p===!1,b={analytics_context:t,analytics_trace_id:e,avoid_sdk_session:it(o),api_key:n,checkout_redirect_url:r,checkout_token:i,checkout_version:a,client_id:l,code_challenge:c,code_challenge_method:d,compact_layout:it(x),consent_challenge:it(f),ctx:u,"customize-modal":it(P),...s&&{error:s},...h&&{experiments:h},flow:w?w.toString():void 0,flow_version:g,full_view:it(k),hide_copy:it(v),locale:S,..._&&{login_hint:_},order_id:L?L.toString():void 0,origin:$,personalize_ads:it(B),hide_buttons:it(J),hide_header:it(m),accent_color:y,dark_mode:it(T),placement:F,pop_up_features:I==="pop_up"?C:void 0,pop_up_name:I==="pop_up"?q:void 0,preact:"true",prompt:N,redirect_type:I,redirect_uri:z||M.location.origin,require_verification:it(j),response_mode:A||"web_message",response_type:U||"id_token",...V&&{return_uri:V},scope:Y||"openid email profile",sign_up_enabled:it(R),shop_id:ot?ot.toString():void 0,state:ct,storefront_domain:Q,target_origin:M.location.origin,transaction_params:tt,ux_mode:et,ux_role:rt};return Object.keys(b).forEach(O=>b[O]===void 0&&delete b[O]),new URLSearchParams(b)}function Ur(t){const e=ie(t),n=new Set(["return_to","locale","login_hint","login_hint_mode"]),o={},r={};t.uxMode==="windoid"&&(o.display="popup");for(const[i,a]of e.entries())n.has(i)?o[i]=a:r[i]=a;return Object.keys(r).length>0&&(o.shop_params=new URLSearchParams(r).toString()),new URLSearchParams(o)}function Wr(){return!!M?.Shopify?.SignInWithShop?.coreIdp}function $r(t){return t.analyticsContext==="loginWithShopSelfServe"}function Br(t){if(!t.proxy&&t?.clientId===void 0)return"";if(t.proxy)if(Wr()&&$r(t)){const o=Ur(t);return`${te}/customer_authentication/login?${o}`}else{const o=ie(t);return`${te}/services/login_with_shop/authorize?${o}`}const e=ie(t);if(Hr(t))return`${Lt}/oauth/authorize?${e}`;const n=t.avoidPayAltDomain?"/pay/sdk-authorize":"/pay/sdk-session";return`${Lt}${n}?${e}`}function Hr(t){return t.analyticsContext==="loginWithShopSelfServe"&&t.uxMode!=="iframe"&&t.uxRole!=="prompt"}function ai({analyticsContext:t,avoidPayAltDomain:e=!1,avoidSdkSession:n=!1,disableSignUp:o=!1,experiments:r,proxy:i,clientId:a,flow:l="default",flowVersion:c="unspecified",error:d,prompt:f="login",responseMode:u,storefrontDomain:p,...s}){const{locale:h}=ye(),{instanceId:w}=mt(),g=H(x=>{if(x?.uxRole==="prompt"&&!i&&a)return Gr({analyticsTraceId:w,clientId:a,flow:l,flowVersion:c,locale:h,storefrontDomain:p});const k=qr(u,s.uxMode),S=Yr(t,s.uxMode);return Br({analyticsContext:S,analyticsTraceId:w,avoidPayAltDomain:e,avoidSdkSession:n,clientId:a,disableSignUp:o,error:d,flow:l,flowVersion:c,locale:h,prompt:f,proxy:i,storefrontDomain:p,...k&&{responseMode:k},...s,...x})},[t,e,n,a,o,d,l,c,w,h,f,s,i,u,p]);return{authorizeUrl:K(()=>g(),[g]),getAuthorizeUrl:g}}function qr(t,e){return e==="redirect"?"query":e==="windoid"?"web_message":t}function Yr(t,e){return e==="redirect"&&t==="loginWithShop"?"loginWithShopClassicCustomerAccounts":t}function Gr({analyticsTraceId:t,clientId:e,flow:n,flowVersion:o,locale:r,storefrontDomain:i}){const a=new URLSearchParams({analytics_trace_id:t,client_id:e,flow:n,flow_version:o,locale:r,target_origin:M.location.origin,storefront_domain:i});return`${Lt}/accounts/pre_auth?${a}`}function si(t){const{element:e}=mt(),{loading:n}=ye();W(()=>{if(!(!e||n!==!1))return Object.entries(t).forEach(([o,r])=>{e.addEventListener(o,r)}),e?._eventListenerReadyPromiseResolve(),()=>{Object.entries(t).forEach(([o,r])=>{e?.removeEventListener(o,r)})}},[e,n,t])}const Xr={stringify:t=>t===""?"true":t?/^[ty1-9]/i.test(t).toString():"false",parse:(t,e,n)=>t===""?!0:t?/^[ty1-9]/i.test(t):n.hasAttribute(e)&&t===null},Kr={stringify:t=>typeof t=="function"?t.name.replace("bound ",""):typeof t=="string"?t.replace("bound ",""):t,parse:(t,e,n)=>{if(!t)return null;const o=(()=>{if(typeof window<"u")return window[t];if(typeof global<"u")return global[t]})();return typeof o=="function"?o.bind(n):void 0}},Zr={stringify:t=>`${t}`,parse:t=>{if(t)return parseFloat(t)}},Jr={stringify:t=>t,parse:t=>{if(t)return t}},Jt={boolean:Xr,function:Kr,number:Zr,string:Jr};function ci(t,{methods:e,name:n,props:o,shadow:r}){if(typeof window>"u")return;const{notify:i}=new fn(n);function a(){const s=zn(a);s._eventListenerReadyPromise=new Promise(h=>{s._eventListenerReadyPromiseResolve=h}),s._vdomComponent=t,s._root=s.attachShadow({mode:r});{const h=new CSSStyleSheet;h.replaceSync(ln),s._root.adoptedStyleSheets=[h]}return s}const l=new Map;Object.entries(o||{}).forEach(([s,h])=>{const w=Vn(s);l.set(w,{attribute:w,preactProp:s,type:h})});const c=Array.from(l.values()).map(({attribute:s})=>s);a.prototype=Object.create(HTMLElement.prototype),a.prototype.constructor=a,a.observedAttributes=c,a.prototype.attributeChangedCallback=function(h,w,g){if(!this._vdom)return;const v=l.get(h);if(!v)return;const{preactProp:x,type:k}=v,S=Jt[k],_={};if(!g&&k==="boolean"){const P=S.parse(g,h,this);_[h]=P,_[x]=P}else if(k&&g){const P=S.parse(g,h,this);_[h]=P,_[x]=P}this._vdom=ve(this._vdom,_),Gt(this._vdom,this._root)},a.prototype.connectedCallback=function(){const h=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(h);const w=h.detail.context;this._vdom=Vt(d,{...this._props,context:w,element:this},u(this,this._vdomComponent)),Gt(this._vdom,this._root)},e?.forEach(s=>{a.prototype[s]=function(h){this._eventListenerReadyPromise.then(()=>{this.dispatchEvent(new CustomEvent(s,{detail:h}))}).catch(()=>{i(new wt(`Custom element ${n}: Error listening for methods`,"CustomElementMethodListenerError"))})}}),a.prototype.disconnectedCallback=function(){Gt(this._vdom=null,this._root)};function d(s){this.getChildContext=()=>s.context;const{context:h,children:w,...g}=s;return ve(w,g)}function f(s){return Vt("slot",{...s})}function u(s,h){if(s.nodeType===3)return s.data;if(s.nodeType!==1)return null;const w={},g=[],{childNodes:v}=s;l.forEach(({attribute:k,preactProp:S,type:_})=>{const P=Jt[_],L=s.getAttribute(k);let $=L;(_==="boolean"||L)&&($=P.parse(L,k,s)),$!==null&&(w[k]=$,w[S]=$)});for(const k of v){const S=u(k,null);g.push(S)}const x=h?Vt(f,null,g):g;return Vt(h,w,x)}if(l.forEach(({attribute:s,type:h})=>{const w=Jt[h];Object.defineProperty(a.prototype,s,{get(){return!this._vdom||!this._vdom.props?null:this._vdom.props[s]},set(g){let v=g;this._vdom?this.attributeChangedCallback(s,null,g):(h==="boolean"?v=w.parse(g,s,this):g&&(v=w.parse(g,s,this)),this._props||(this._props={}),this._props[s]=v,this.connectedCallback()),this.setAttribute(s,w.stringify(v))}})}),!customElements.get(n))return Reflect.defineProperty?.(a,"componentVersion",{value:"preact"}),Dn(n,a)}export{wt as A,Ko as M,Lt as P,ii as R,Zo as S,Z as a,vt as b,ce as c,Cr as d,ni as e,Oo as f,M as g,si as h,oi as i,ai as j,rr as k,Pn as l,ri as m,xt as n,mt as o,Be as p,Xo as q,ci as r,Br as s,se as u};