import{nx as Rt,jd as Tt,q,ou as se,bP as K,ap as W,ao as X,a as E,l as Ct,ah as pt,eh as Fe,c_ as te,nM as je,o1 as gn,jM as wn,oG as yn,oH as ve,oI as bn,oJ as vn,oK as xn,kU as z,oL as _n,oM as En,oN as kn,oO as Sn,oP as Rn,oQ as Tn,oR as xe,oS as Xt,oT as Nt}from"./app.BTSv6d-3.js";const Ue=Rt({dispatch:()=>{throw new Error("Invalid attempt to call dispatch outside of AuthorizeStateProvider")},loaded:!1,modalDismissible:!1,modalForceHidden:!1,modalVisible:!1,uiRendered:!1}),ce=()=>Tt(Ue),We=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(We);if(!t)throw new Error("Invalid attempt to use useBugsnag outside of BugsnagProvider.");return t},Cn={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.")}},$e=Rt(Cn),le=()=>Tt($e),An={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},Be=Rt(An),He=()=>Tt(Be),Pn={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"?Pn:window;function Mn(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=Mn(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 de=Ln(M.location),ee=de.coreAuthDomain,Mt=de.payAuthDomain,qe=de.payAuthDomainAlt,On={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"?On:document,In=M.HTMLElement,ue=t=>{const e=M.HTMLElement;M.HTMLElement=In;const n=t();return M.HTMLElement=e,n},Dn=t=>ue(()=>Z.createElement(t)),zn=(t,e)=>{ue(()=>{customElements.define(t,e)})},Nn=t=>ue(()=>Reflect.construct(HTMLElement,[],t)),Ye=Rt({devMode:!1,element:null,instanceId:""}),mt=()=>Tt(Ye);function fe(){const{notify:t}=vt(),{element:e}=mt();return q((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 Fn(t){return t.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`).replace(/^_/,"")}class wt extends Error{constructor(e,n,o=se()){super(e),this.name=n,this.analyticsTraceId=o;const r=Fn(n);this.analyticsTraceId=o,this.code=r,this.name=n}}function jn(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=>Wn(u)&&r({direction:"incoming",event:u});return i.add(f),()=>{i.delete(f)}},[r,i]);const a=q(f=>{i.forEach(u=>u(f))},[i]),l=q(f=>{const u=o.current instanceof HTMLIFrameElement?o.current.contentWindow:o.current;if(Un(f,u||null)){if(!t.some(p=>jn(p,f.origin))){console.error("Origin mismatch for message event",f);return}a(f.data)}},[t,a,o]),c=q(()=>{e.removeEventListener("message",l,!1)},[e,l]);W(()=>(e.addEventListener("message",l,!1),()=>{c()}),[e,c,l]);const d=q(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 Bn({includeCore:t,source:e,storefrontOrigin:n,...o}){const r=fe(),i=q(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:H,onProcessingStatusUpdated:V,onPromptChange:F,onPromptContinue:C,onResizeIframe:Y,onRestarted:I,onShopUserMatched:D,onShopUserNotMatched:j,onStripeLinkUserFound:A,onUnloaded:U,onUserVerified:N,onVerificationStepChanged:G}=o;switch(c.type){case"authorize_step_changed":d?.(c);break;case"close":case"close_requested":f?.();break;case"completed":{const{avatar:it,email:at,givenName:Q,loggedIn:tt,shouldFinalizeLogin:et}=c;u&&await u(c),r("completed",c),tt&&et&&r("storefront:signincompleted",{avatar:(()=>{const ot=Dn("shop-user-avatar"),J=Q?.[0]||at?.[0]||"";return ot.setAttribute("src",it||""),ot.setAttribute("initial",J),ot})()},!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":V?.();break;case"prequal_error":P?.();break;case"prequal_missing_information":L?.();break;case"prequal_ready":$?.();break;case"prequal_success":H?.();break;case"resize_iframe":Y?.(c);break;case"restarted":I?.(),r("restarted");break;case"shop_user_matched":D?.(c);break;case"shop_user_not_matched":j?.(c);break;case"user_verified":N?.(c);break;case"verification_step_changed":G?.(c);break;case"prompt_change":F?.();break;case"prompt_continue":C?.();break}},[r,o]),a=K(()=>[Mt,qe,...t?[ee]:[],...n?[n]:[]],[t,n]);return $n({allowedOrigins:a,handler:i,source:e})}const _e={code:"temporarily_unavailable",message:"Shop login is temporarily unavailable"},Hn=1e4;function qn(){const t=fe(),e=X(null),n=q(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]);return{initLoadTimeout:q(()=>{n(),e.current=setTimeout(()=>{t("error",{message:_e.message,code:_e.code}),n()},Hn)},[n,t]),clearLoadTimeout:n}}function Yn(t){const e=X(t);return W(()=>{e.current=t}),e.current}function Ge(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 Gn({contentWindow:t,event:e,onMessageSent:n}){if(!t)return;const o=[Mt,qe],r={...e,messageId:se()};o.forEach(i=>{t.postMessage(r,i)}),n?.(r)}const Ee=({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,Vt=Math.floor,lt=t=>({x:t,y:t}),Xn={left:"right",right:"left",bottom:"top",top:"bottom"},Kn={start:"end",end:"start"};function ne(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 Xe(t){return t==="x"?"y":"x"}function pe(t){return t==="y"?"height":"width"}function kt(t){return["top","bottom"].includes(yt(t))?"y":"x"}function he(t){return Xe(kt(t))}function Zn(t,e,n){n===void 0&&(n=!1);const o=Dt(t),r=he(t),i=pe(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 Jn(t){const e=$t(t);return[oe(t),e,oe(e)]}function oe(t){return t.replace(/start|end/g,e=>Kn[e])}function Qn(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 to(t,e,n,o){const r=Dt(t);let i=Qn(yt(t),n==="start",o);return r&&(i=i.map(a=>a+"-"+r),e&&(i=i.concat(i.map(oe)))),i}function $t(t){return t.replace(/left|right|bottom|top/g,e=>Xn[e])}function eo(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ke(t){return typeof t!="number"?eo(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 ke(t,e,n){let{reference:o,floating:r}=t;const i=kt(e),a=he(e),l=pe(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 no=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}=ke(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=Ke(f),p={x:n,y:o},s=he(r),h=pe(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,H=L/2-w[h]/2-1,V=Et(u[v],H),F=Et(u[x],H),C=V,Y=L-w[h]-F,I=L/2-w[h]/2+$,D=ne(C,I,Y),j=!c.arrow&&Dt(r)!=null&&I!==D&&i.reference[h]/2-(II<=0)){var F,C;const I=(((F=i.flip)==null?void 0:F.index)||0)+1,D=L[I];if(D)return{data:{index:I,overflows:V},reset:{placement:D}};let j=(C=V.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 Y;const A=(Y=V.filter(U=>{if(P){const N=kt(U.placement);return N===x||N==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(N=>N>0).reduce((N,G)=>N+G,0)]).sort((U,N)=>U[1]-N[1])[0])==null?void 0:Y[0];A&&(j=A);break}case"initialPlacement":j=l;break}if(r!==j)return{reset:{placement:j}}}return{}}}};async function io(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 ao=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 io(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}}}}},so=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 Ze(e,c),u=kt(yt(r)),p=Xe(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=ne(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=ne(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 Je(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=(Je(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Je(t){return Ht()?t instanceof Node||t instanceof nt(t).Node:!1}function st(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 Se(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}=ct(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function co(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 me(t){const e=ge(),n=st(t)?ct(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 lo(t){let e=ht(t);for(;ut(e)&&!St(e);){if(me(e))return e;if(qt(e))return null;e=ht(e)}return null}function ge(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function St(t){return["html","body","#document"].includes(At(t))}function ct(t){return nt(t).getComputedStyle(t)}function Yt(t){return st(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||Se(t)&&t.host||ft(t);return Se(e)?e.host:e}function Qe(t){const e=ht(t);return St(e)?t.ownerDocument?t.ownerDocument.body:t.body:ut(e)&&zt(e)?e:Qe(e)}function Lt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Qe(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),a=nt(r);if(i){const l=re(a);return e.concat(a,a.visualViewport||[],zt(r)?r:[],l&&n?Lt(l):[])}return e.concat(r,Lt(r,[],n))}function re(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function tn(t){const e=ct(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 we(t){return st(t)?t:t.contextElement}function _t(t){const e=we(t);if(!ut(e))return lt(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=tn(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 uo=lt(0);function en(t){const e=nt(t);return!ge()||!e.visualViewport?uo:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function fo(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=we(t);let a=lt(1);e&&(o?st(o)&&(a=_t(o)):a=_t(t));const l=fo(i,n,o)?en(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&&st(o)?nt(o):o;let h=p,w=re(h);for(;w&&o&&s!==h;){const g=_t(w),v=w.getBoundingClientRect(),x=ct(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=re(h)}}return Bt({width:f,height:u,x:c,y:d})}function ye(t,e){const n=Yt(t).scrollLeft;return e?e.left+n:bt(ft(t)).left+n}function nn(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),r=o.left+e.scrollLeft-(n?0:ye(t,o)),i=o.top+e.scrollTop;return{x:r,y:i}}function po(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?nn(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 ho(t){return Array.from(t.getClientRects())}function mo(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+ye(t);const l=-n.scrollTop;return ct(o).direction==="rtl"&&(a+=gt(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}function go(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=ge();(!d||d&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}function wo(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 Re(t,e,n){let o;if(e==="viewport")o=go(t,n);else if(e==="document")o=mo(ft(t));else if(st(e))o=wo(e,n);else{const r=en(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return Bt(o)}function on(t,e){const n=ht(t);return n===e||!st(n)||St(n)?!1:ct(n).position==="fixed"||on(n,e)}function yo(t,e){const n=e.get(t);if(n)return n;let o=Lt(t,[],!1).filter(l=>st(l)&&At(l)!=="body"),r=null;const i=ct(t).position==="fixed";let a=i?ht(t):t;for(;st(a)&&!St(a);){const l=ct(a),c=me(a);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||zt(a)&&!c&&on(t,a))?o=o.filter(f=>f!==a):r=l,a=ht(a)}return e.set(t,o),o}function bo(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const a=[...n==="clippingAncestors"?qt(e)?[]:yo(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((d,f)=>{const u=Re(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},Re(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function vo(t){const{width:e,height:n}=tn(t);return{width:e,height:n}}function xo(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=ye(r));const d=r&&!o&&!i?nn(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 Kt(t){return ct(t).position==="static"}function Te(t,e){if(!ut(t)||ct(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return ft(t)===n&&(n=n.ownerDocument.body),n}function rn(t,e){const n=nt(t);if(qt(t))return n;if(!ut(t)){let r=ht(t);for(;r&&!St(r);){if(st(r)&&!Kt(r))return r;r=ht(r)}return n}let o=Te(t,e);for(;o&&co(o)&&Kt(o);)o=Te(o,e);return o&&St(o)&&Kt(o)&&!me(o)?n:o||lo(t)||n}const _o=async function(t){const e=this.getOffsetParent||rn,n=this.getDimensions,o=await n(t.floating);return{reference:xo(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Eo(t){return ct(t).direction==="rtl"}const ko={convertOffsetParentRelativeRectToViewportRelativeRect:po,getDocumentElement:ft,getClippingRect:bo,getOffsetParent:rn,getElementRects:_o,getClientRects:ho,getDimensions:vo,getScale:_t,isElement:st,isRTL:Eo};function an(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function So(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=Vt(u),w=Vt(r.clientWidth-(f+p)),g=Vt(r.clientHeight-(u+s)),v=Vt(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&&!an(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 Ro(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=we(t),f=r||i?[...d?Lt(d):[],...Lt(e)]:[];f.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const u=d&&l?So(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&&!an(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 To=ao,Co=so,Ao=ro,Ce=oo,Po=(t,e,n)=>{const o=new Map,r={platform:ko,...n},i={...r.platform,_c:o};return no(t,e,{...r,platform:i})},Mo=["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},sn=Rt(Lo),be=()=>Tt(sn),Oo=["string",void 0],Io=()=>{const{locale:t,translations:e}=be();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&&!Oo.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 cn(t){return(t.ownerDocument.defaultView||M).devicePixelRatio||1}function Ae(t,e){const n=cn(t);return Math.round(e*n)/n}function Pe(t){const e=X(t);return W(()=>{e.current=t}),e}function Do(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=q(A=>{A!==P.current&&(P.current=A,w(A))},[]),k=q(A=>{A!==L.current&&(L.current=A,v(A))},[]),S=i||h,_=a||g,P=X(null),L=X(null),$=X(f),H=c!=null,V=Pe(c),F=Pe(r),C=q(()=>{if(!P.current||!L.current)return;const A={placement:e,strategy:n,middleware:p};F.current&&(A.platform=F.current),Po(P.current,L.current,A).then(U=>{const N={...U,isPositioned:!0};Y.current&&!Ot($.current,N)&&($.current=N,u(N))}).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 Y=X(!1);W(()=>(Y.current=!0,()=>{Y.current=!1}),[]),W(()=>{if(S&&(P.current=S),_&&(L.current=_),S&&_){if(V.current)return V.current(S,_,C);C()}},[S,_,C,V,H]);const I=K(()=>({reference:P,floating:L,setReference:x,setFloating:k}),[x,k]),D=K(()=>({reference:S,floating:_}),[S,_]),j=K(()=>{const A={position:n,left:0,top:0};if(!D.floating)return A;const U=Ae(D.floating,f.x),N=Ae(D.floating,f.y);return l?{...A,transform:`translate(${U}px, ${N}px)`,...cn(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:N}},[n,l,D.floating,f.x,f.y]);return K(()=>({...f,update:C,refs:I,elements:D,floatingStyles:j}),[f,C,I,D,j])}const zo=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?Ce({element:o.current,padding:r}).fn(n):{}:o?Ce({element:o,padding:r}).fn(n):{}}}},Me=448,Le={mobile:[`max-width: ${Me}px`],tablet:[`min-width: ${Me+1}px`,"max-width: 1000px","max-height: 920px"]};function No(){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 Fo(){return/Mozilla\/5.0 \([^)]*Android[^)]*; wv\).+Chrome\//.test(dt.userAgent)}function jo(){return dt.userAgent.toLowerCase().includes("instagram")}function Uo(){const t=dt.userAgent;return RegExp(Bo).test(t)||RegExp(Ho).test(t)}function Wo(){return dt.userAgent.toLowerCase().includes("messenger")}function $o(){const t=dt.userAgent.toLowerCase();return t.includes("fban/fbios")||t.includes("fb_iab/fb4a")}function ri(){return $o()||jo()||Wo()||Uo()||Fo()}function Oe(){return!!(typeof IntersectionObserver<"u"&&IntersectionObserver)}const Bo="(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\\d+)_(\\d+)(?:_(\\d+)|).* AppleNews",Ho="(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 qo({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 ln=` 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 Yo(t){return t.querySelector(ln)}function Go(t){const e=t.querySelectorAll(ln);return e[e.length-1]}const Xo=Fe(({as:t="div",children:e,disabled:n=!1,...o},r)=>{const i=X(null),a=X(null),l=X(null);te(()=>{n||i.current?.focus()},[n]);const c=p=>{const s=i.current;if(!s||n)return;((p?Yo(s):Go(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 H(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 V(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(V(this),typeof y=="string"){var T=this;x.get(T).textContent=l(y),_.set(T,[]),k.get(T).forEach(function(R){R.isConnected()&&H(T,L(T,R))})}},r(C,"cssRules",{configurable:!0,enumerable:!0,get:function(){return V(this),x.get(this).sheet.cssRules}}),r(C,"media",{configurable:!0,enumerable:!0,get:function(){return V(this),x.get(this).sheet.media}}),s.forEach(function(m){C[m]=function(){var y=this;V(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 Y={childList:!0,subtree:!0},I=new WeakMap;function D(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 D(this).sheets},set:function(y){D(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,N=new WeakMap,G=new WeakMap;function it(m,y){return y instanceof HTMLStyleElement&&N.get(m).some(function(T){return L(T,m)})}function at(m){var y=U.get(m);return y instanceof Document?y.body:y}function Q(m){var y=document.createDocumentFragment(),T=N.get(m),R=G.get(m),b=at(m);R.disconnect(),T.forEach(function(O){y.appendChild(L(O,m)||P(O,m))}),b.insertBefore(y,null),R.observe(b,Y),T.forEach(function(O){H(O,L(O,m))})}function tt(m){var y=this;y.sheets=[],U.set(y,m),N.set(y,[]),G.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(B){D(B).connect()})}),i.call(b.removedNodes,function(O){O instanceof Element&&(it(y,O)&&Q(y),t||A(O,function(B){D(B).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=at(this);G.get(this).observe(m,Y),N.get(this).length>0&&Q(this),A(m,function(y){D(y).connect()})},disconnect:function(){G.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=N.get(y),b=d(m),O=f(R,b);O.forEach(function(B){u(L(B,y)),$(B,y)}),N.set(y,b),y.isConnected()&&b.length>0&&Q(y)}},window.CSSStyleSheet=F,j(Document),"ShadowRoot"in window){j(ShadowRoot);var et=Element.prototype,ot=et.attachShadow;et.attachShadow=function(y){var T=ot.call(this,y);return y.mode==="closed"&&n.set(this,T),T}}var J=D(document);J.isConnected()?J.connect():document.addEventListener("DOMContentLoaded",J.connect.bind(J))})();var dn='*,::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-1{margin-right:4px}.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-4{height:16px;width:16px}.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}.appearance-none{appearance: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))}.bg-none{background-image:none}.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-d0\\/70:hover{color:#666666b3}.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}.hover_outline-none:hover{outline:2px solid #0000;outline-offset:2px}.focus_text-black:focus{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.focus_text-grayscale-d0\\/70:focus{color:#666666b3}.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))}.active_text-grayscale-d0\\/70:active{color:#666666b3}.active_outline-none:active{outline:2px solid #0000;outline-offset:2px}.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 Ko({children:t,instanceId:e,type:n,variant:o}){const r=X(null),[i,a]=pt(null),{notify:l}=vt();return te(()=>{a(r.current.attachShadow({mode:"open"}))},[]),te(()=>{if(i){const c=new CSSStyleSheet;c.replace(dn).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&&je(t,i)})}const Zt=["right","left","bottom","top"],Zo=({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}=ce(),{translate:g}=Io(),v=X(null),[x,k]=pt(null),S=X(null),_=X(null),P=X(null),[L,$]=pt(!1),{instanceId:H}=mt(),V=X(null),{floatingStyles:F,middlewareData:C,refs:Y,update:I}=Do({middleware:[Ao({crossAxis:!1,fallbackPlacements:Zt.slice(1)}),Co({padding:30}),To(30),zo({element:S,padding:28})],placement:Zt[0],whileElementsMounted:Ro});W(()=>{if(t){let R;typeof t=="string"?R=Z.querySelector(t):R=t.current,k(R),Y.setReference(R),I()}},[t,Y,I]),V.current===null&&(V.current=Z.documentElement.style.overflow),!_.current&&Oe()&&(_.current=new IntersectionObserver(R=>{for(const b of R)b.boundingClientRect.top<0&&M.scrollTo({top:0,left:0}),b.isIntersecting&&d?.()})),!v.current&&Oe()&&(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 B=x?.offsetHeight||0,hn=(P.current?.offsetHeight||0)/2,mn=B+hn+30;M.scrollTo({top:b.target.offsetTop-mn})}})),W(()=>()=>{_.current&&_.current.disconnect(),v.current&&v.current.disconnect()},[]);const{isDesktop:D}=No(),j=K(()=>x&&!f&&D?"dynamic":"center",[x,D,f]);W(()=>{const R=Z.documentElement,b=R?.style.overflow;return()=>{b&&R?R.style.overflow=b:R.style.removeProperty("overflow")}},[]);const A=q(R=>{w&&(c(R),Z.documentElement.style.overflow=V.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=V.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"),N=xt("fixed inset-0 z-max overflow-hidden",j==="center"&&"flex items-center justify-center",s?"visible":"pointer-events-none invisible"),G=u==="wide"?"min-w-100":"min-w-85";let it="";p==="checkoutModal"&&(it=u==="wide"?"max-w-100 sm_max-w-none":"max-w-85 sm_max-w-none");const at=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&&G,it,!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=Zt[C.flip?.overflows?.length||0],O=R[b],B=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:B,"data-testid":"authorize-modal-arrow",ref:S,style:O})},[C.arrow?.x,C.arrow?.y,C.flip?.overflows,j]),et=!!o,ot=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:ot,"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(qo,{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 je(E(Ko,{instanceId:H,type:"modal",variant:p,children:E("div",{className:N,"data-testid":"authorize-modal-container","data-variant":u,children:[E("div",{...T,className:U,"data-testid":"authorize-modal-overlay",onClick:()=>A("overlay")}),E(Xo,{as:"section",disabled:!L,"aria-modal":"true",...T,"aria-label":l,className:at,"data-testid":"authorize-modal","data-visible":s,part:"modal",ref:R=>{P.current=R,x&&(Y.setFloating(R),I())},role:"dialog",style:J,children:[E("div",{className:Q,children:[y,e]}),tt]})]})},a),Z.body)};function Jo({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 Qo({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 tr=()=>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"})]}),er=({children:t})=>{const{uiRendered:e}=ce();return E(Ct,{children:[!e&&E(tr,{}),E("div",{children:t})]})},nr=["api_unavailable","captcha_challenge","retriable_server_error"],or=[/existing customer \d+ on shop \d+ has a conflicting provider subject associated: existing '([^']+)' != incoming '([^']+)'/,/no_prequalification_amount_available/];function rr(t,e){return!(nr.includes(t)||or.some(n=>n.test(e)))}const ir=Fe(({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:H,loaded:V,modalVisible:F}=ce(),{leaveBreadcrumb:C,notify:Y}=vt(),I=fe(),{clearLoadTimeout:D,initLoadTimeout:j}=qn(),{trackPageImpression:A,trackPostMessageTransmission:U}=le(),{recordCounter:N}=He(),G=X(null),it=Yn(F),at=b=>{b&&(G.current=b,b.getAttribute("src")||b.setAttribute("src",S))},Q=q(b=>{H({type:"showModal",reason:b})},[H]),tt=q(({dismissMethod:b,reason:O})=>{F&&(H({type:"hideModal",reason:O,dismissMethod:b}),t?.current&&Ie(t)&&t.current.focus())},[t,H,F]);W(()=>{function b(){Q("user_button_clicked")}const O=Ge(b,150,!0),B=t;if(B?.current&&Ie(B))return B.current.addEventListener("click",O),()=>{B.current?.removeEventListener("click",O)}},[t,Q]);const et=q(()=>{Ee({iframe:G.current,src:S})},[S]),{destroy:ot,waitForMessage:J}=Bn({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:B}=b;rr(B,O)?(C("authorize error",{code:B,message:O},"state"),Y(new wt(O,"AuthorizeError"))):(N("shop_js_handle_silent_error",{attributes:{errorCode:B}}),C("silent error",{code:B},"state")),D(),u?.(b)},onLoaded:b=>{H({type:"loaded",payload:{autoOpen:!!o,sessionDetected:b.userFound}}),p?.(b),D()},onUnloaded:()=>{H({type:"reset"})},onResizeIframe:b=>{r||G.current&&(G.current.style.height=`${b.height}px`),b.height>0&&H({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:G,storefrontOrigin:_});W(()=>()=>{G.current&&ot()},[ot]);const m=q(async(b,{afterLoaded:O=!1}={})=>{O&&!V&&await J("loaded"),Gn({contentWindow:G.current?.contentWindow,event:b,onMessageSent:B=>U({direction:"outgoing",event:B})})},[V,U,J]);W(()=>{if(F!==it){if(F){try{m({type:"sheetmodalopened"},{afterLoaded:!0}),I("modalopened")}catch(b){Y(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,Y,s,m,it]),gn($,()=>({close:tt,iframeRef:G,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(()=>{Ee({iframe:G.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:at,tabIndex:0,scrolling:k,"data-testid":"authorize-iframe"}),R=l?E(Jo,{className:"size-8 text-purple-primary"}):E(Qo,{className:"h-4-5 text-purple-primary"});return i?E(Zo,{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(er,{children:T})}):T});ir.displayName="AuthorizeIframe";function Ie(t){return Object.prototype.hasOwnProperty.call(t,"current")}const ar=(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{...sr,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}},sr={loaded:!1,uiRendered:!1,modalDismissible:!1,modalForceHidden:!1,modalVisible:!1},cr=({children:t})=>{const{leaveBreadcrumb:e,notify:n}=vt(),{trackModalStateChange:o}=le(),r=q(({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=q((d,f)=>{const u=ar(d,f);return r({action:f,previousState:d,state:u}),u},[r]),[a,l]=wn(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(Ue.Provider,{value:c,children:t})};var lr={bugsnagApiKey:"e35d7136cee78d344ccffdbd5ca710fa"};class un extends yn{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 dr{#t;constructor(e){this.#t=e}async exportMetrics(e){try{await this.#t.exportMetrics(e)}catch(n){if(n instanceof ve){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 ve){const o=n.metadata?.retryAfter;if(o){await new Promise(r=>{setTimeout(()=>this.exportLogs(e).finally(r),o.seconds*1e3)});return}}throw n}}}const ur={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 fr(t){return Object.values(ur).find(([n,o])=>t.message.includes(o))?.[0]||"otherErrors"}const pr="https://otlp-http-production.shopifysvc.com/v1/metrics";function fn(){{const t=new bn(pr,"shop-js");return new dr(t)}}const hr="Backpressure applied",mr="A network failure may have prevented the request from completing",gr=["Load failed","Failed to fetch","when attempting to fetch resource"],wr=["NotFoundError","NotSupportedError","ReferenceError","SyntaxError","TypeError"],De=["development","spin"].includes("production"),yr=t=>!!(t?.includes(mr)||t?.includes(hr));function br({metadata:t,onNetworkError:e}){return{apiKey:lr.bugsnagApiKey,appId:"shop-js",appVersion:"1.0.34-2186-beta",onError:n=>{const o=n.exceptions[0];if(!o)return!1;const{errorClass:r,message:i}=o,a=r==="NetworkError"||gr.some(u=>i?.includes(u))||yr(i),l=o.stacktrace.some(u=>u.inProject);if(a)return e(),!1;if(!l||wr.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 pn{opentelClient=new un({exporter:fn()});constructor(e){const n=br({metadata:{custom:{feature:e}},onNetworkError:this.handleNetworkError.bind(this)});this.client=new vn(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(De){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(De){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 vr=({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 pn(e);return{client:o,leaveBreadcrumb:r,notify:i}},[e]);return E(We.Provider,{value:n,children:t})};function xr({children:t}){const[e]=xn(),{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 _r=t=>import(t),Er=t=>{try{return new M.URL(t)}catch{return null}};async function kr(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 _r(l||"")}catch(c){if(!(c instanceof Error)||o?.aborted)return;const d=Er(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 Sr(t){switch(t){case"./translations/bg-BG.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.b),[]);case"./translations/cs.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.c),[]);case"./translations/da.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.d),[]);case"./translations/de.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.a),[]);case"./translations/el.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.e),[]);case"./translations/en.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.f),[]);case"./translations/es.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.g),[]);case"./translations/fi.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.h),[]);case"./translations/fr.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.i),[]);case"./translations/hi.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.j),[]);case"./translations/hr-HR.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.k),[]);case"./translations/hu.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.l),[]);case"./translations/id.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.m),[]);case"./translations/it.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.n),[]);case"./translations/ja.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.o),[]);case"./translations/ko.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.p),[]);case"./translations/lt-LT.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.q),[]);case"./translations/ms.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.r),[]);case"./translations/nb.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.s),[]);case"./translations/nl.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.t),[]);case"./translations/pl.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.u),[]);case"./translations/pt-BR.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.v),[]);case"./translations/pt-PT.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.w),[]);case"./translations/ro-RO.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.x),[]);case"./translations/ru.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.y),[]);case"./translations/sk-SK.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.z),[]);case"./translations/sl-SI.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.A),[]);case"./translations/sv.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.B),[]);case"./translations/th.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.C),[]);case"./translations/tr.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.D),[]);case"./translations/vi.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.E),[]);case"./translations/zh-CN.json":return z(()=>import("./shopjs-locales.CsXI8-GQ.js").then(e=>e.F),[]);case"./translations/zh-TW.json":return z(()=>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 Jt(t){return Mo.includes(t)}const jt=[],Ut=[],Pt=new Map;function Rr(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 Tr=Ge(Rr,250);function Cr({children:t,getFeatureDictionary:e,overrideLocale:n}){const{notify:o}=vt(),[r,i]=pt(void 0),{featureName:a}=mt(),[l,c]=pt(),d=q(()=>{const p=Object.freeze([n,Z.documentElement.lang,M.Shopify?.locale,...dt.languages].filter(h=>h));let s;for(const h of p){if(Jt(h)){s=h;break}try{const w=new Intl.Locale(h);if(w.language&&Jt(w.language)){s=w.language;break}else console.error(`Unsupported locale: "${h}"`)}catch{console.error(`Invalid locale: "${h}"`)}}return s||"en"},[n]),f=q(async()=>{if(Jt(r)){if(!Pt.has(r)){c(!0);try{const p=await kr(async()=>await Sr(`./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)),Tr(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(sn.Provider,{value:u,children:l===!1&&t})}function Ar(t,e=200,n=!1){const o=X(),r=X(t);return r.current=t,q((...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 ze(){const t=Z.querySelector("script#shop-js-analytics")?.innerHTML;return t?JSON.parse(t):{}}async function Ne(){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 ie(...t){if(!M.ShopifyAnalytics&&!M.analytics)return{};let e;!!M.trekkie?.ready?e=Ne():(M.trekkie=M.trekkie||[],e=new Promise(r=>{M.trekkie.push(["ready",()=>{r(Ne())}])}));const o=await e;return t.reduce((r,i)=>{const a=o[i];return a!==void 0&&(r[i]=a),r},{})}function Pr(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 _n&&t.status===200;return!(t instanceof En)&&!(t instanceof kn)&&!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 Mr(){const t=new Sn({version:"v1"});return[new Rn({provider:t})]}const Ft="unspecified",Lr=Mr(),Or=["authorize_step_changed","createprequal","resize_iframe","setcomponentstyle","verification_step_changed"],Ir=Tn.createHttpProducer({production:!0,middleware:Lr});function Dr(t){return"email"in t}class zr{#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),Ir.produce(e).catch(r=>{if(n?.(r),Pr(r)){const i=r instanceof Error?r:new wt(String(r),"MonorailProducerError");if(this.notify?.(i),this.recordCounter){const a=fr(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=ze()?.pageType??"",u=await ie("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-2186-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=ze()?.pageType??"",u=await ie("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-2186-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-2186-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(Or.includes(o))return;const r=Date.now(),i=n.messageId,{analyticsTraceId:a,checkoutToken:l,shopPermanentDomain:c}=this.analyticsData,d=Dr(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 Nr=({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}=He(),{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 zr({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=Ar(()=>{g.trackFeatureInitialization()},100);W(()=>{v()},[v]);const x=K(()=>({analyticsData:g.analyticsData,getTrekkieAttributes:ie,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($e.Provider,{value:x,children:r})};function Vr({children:t}){const{featureName:e}=mt(),n=K(()=>new un({exporter:fn()}),[]),o=q(({body:c,attributes:d})=>{n.log({body:c,attributes:{beta:!0,feature:e,...d}})},[n,e]),r=q((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=q((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=q((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(Be.Provider,{value:l,children:t})}const Fr=` @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(Fr)),Z.head.appendChild(u)},[]);const d=K(()=>se(),[]);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(Ye.Provider,{value:f,children:E(jr,{enabled:a,monorailProps:l,children:E(Cr,{getFeatureDictionary:i,overrideLocale:c,children:E(Ur,{enabled:t,children:e})})})})};function jr({children:t,enabled:e=!0,monorailProps:n}){return e?E(vr,{children:E(xr,{children:E(Vr,{children:E(Nr,{...n,children:t})})})}):E(Ct,{children:t})}function Ur({children:t,enabled:e=!0}){return e?E(cr,{children:t}):t}const rt=t=>{if(t!==void 0)return t===!1?"false":"true"};function ae({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,embed:s,error:h,experiments:w,flow:g,flowVersion:v,hideCopy:x,isCompactLayout:k=!0,isFullView:S,locale:_,loginHint:P,modalCustomized:L,orderId:$,origin:H,personalizeAds:V,prompt:F,placement:C,popUpFeatures:Y,popUpName:I,redirectType:D,redirectUri:j,requireVerification:A,responseMode:U,responseType:N,returnUri:G,scope:it,shopId:at,shopifyEssential:Q,state:tt,storefrontDomain:et,transactionParams:ot,uxMode:J,uxRole:m,hideButtons:y,hideHeader:T,accentColor:R,darkMode:b}){const O=p===void 0?void 0:p===!1,B={analytics_context:t,analytics_trace_id:e,avoid_sdk_session:rt(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:rt(k),consent_challenge:rt(f),ctx:u,"customize-modal":rt(L),embed:s,...h&&{error:h},...w&&{experiments:w},flow:g?g.toString():void 0,flow_version:v,full_view:rt(S),hide_copy:rt(x),locale:_,...P&&{login_hint:P},order_id:$?$.toString():void 0,origin:H,personalize_ads:rt(V),hide_buttons:rt(y),hide_header:rt(T),accent_color:R,dark_mode:rt(b),placement:C,pop_up_features:D==="pop_up"?Y:void 0,pop_up_name:D==="pop_up"?I:void 0,preact:"true",prompt:F,redirect_type:D,redirect_uri:j||M.location.origin,require_verification:rt(A),response_mode:U||"web_message",response_type:N||"id_token",...G&&{return_uri:G},scope:it||"openid email profile",sign_up_enabled:rt(O),shop_id:at?at.toString():void 0,shopify_essential:Q,state:tt,storefront_domain:et,target_origin:M.location.origin,transaction_params:ot,ux_mode:J,ux_role:m};return Object.keys(B).forEach(Gt=>B[Gt]===void 0&&delete B[Gt]),new URLSearchParams(B)}function Wr(t){const e=ae(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 $r(){return!!M?.Shopify?.SignInWithShop?.coreIdp}function Br(t){return t.analyticsContext==="loginWithShopSelfServe"}function Hr(t){if(!t.proxy&&t?.clientId===void 0)return"";if(t.proxy)if($r()&&Br(t)){const o=Wr(t);return`${ee}/customer_authentication/login?${o}`}else{const o=ae(t);return`${ee}/services/login_with_shop/authorize?${o}`}const e=ae(t);if(qr(t))return`${Mt}/oauth/authorize?${e}`;const n=t.avoidPayAltDomain?"/pay/sdk-authorize":"/pay/sdk-session";return`${Mt}${n}?${e}`}function qr(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}=be(),{instanceId:w}=mt(),g=q(x=>{if(x?.uxRole==="prompt"&&!i&&a)return Xr({analyticsTraceId:w,clientId:a,flow:l,flowVersion:c,locale:h,storefrontDomain:p});const k=Yr(u,s.uxMode),S=Gr(t,s.uxMode);return Hr({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 Yr(t,e){return e==="redirect"?"query":e==="windoid"?"web_message":t}function Gr(t,e){return e==="redirect"&&t==="loginWithShop"?"loginWithShopClassicCustomerAccounts":t}function Xr({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`${Mt}/accounts/pre_auth?${a}`}function si(t){const{element:e}=mt(),{loading:n}=be();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 Kr={stringify:t=>t===""?"true":t?/^[ty1-9]/i.test(t).toString():"false",parse:(t,e,n)=>t===""?!0