1import{x as oo,X as De,u as r,T as z,g as S,A as I,h as R,k as M,q as w,Q as Fe,S as U,V as Mn,_ as ho,a8 as Hr,a9 as qr,E as Le,j as zo,l as Ur,P as jr,C as _n,B as Nn,ax as Yr,W as m,D as Fo,$ as Vr,ai as Gr,N as Xr,au as Qr,a5 as Jr,ay as Kr,a6 as Zr,f as ea,az as oa,i as na}from"./esnext-vendor.DDpcaSqU.js";import{T as me,D as An,aY as $n,bI as zn,cs as ta,ag as ra,W as aa,cC as Qo,j6 as ia}from"./utilities-previous.Cnwy8G2v.js";import{$ as sa,B as ie,n as Jo,cW as ca,k as Ko,I as la,L as da,gp as ua,bC as ga,hu as pa,a4 as ha,ec as ma,hv as ba,hw as va,ee as Sa}from"./hydrate.BcfGVx0L.js";import{u as fa,S as Ba}from"./CalloutHeader.DC7jgv42.js";import{u as Wo}from"./components-RedirectionNotice.module.CrRh0Cus.js";import{p as Dn,c as ya,a as ka,b as Ta}from"./PostPurchaseShouldRender.B2nmgbDo.js";import{r as Ea,c as xa}from"./amazon-pay-useAmazonPayPaymentLine.X7jqQiq6.js";import{T as Ia,c as Pa}from"./stopwatch.B56VZk5r.js";import{b as La}from"./checkout-as-guest-amazon-pay.DVQDcxt_.js";import{P as Ca}from"./Popover.ZkMcWGfE.js";import{v as wa}from"./utilities-extension-execution-errors.BbHw1F9O.js";import{receiptForUI as Ra}from"./receipt-mappers.HZ4teqp5.js";import"./app.DdDscdWN.js";import"./graphql-PaymentSessionMutation.C-nDEOnn.js";import"./shared-permissions.B59tuyWB.js";import"./hooks-useShopPayExternalAppContext.R6pnDxYu.js";import"./extensions-rpc.RXK1z9Hb.js";import"./performance-index.mu6MOGR9.js";import"./shared-receipt-eager-mappers.DdCRtyXW.js";import"./shared-receipt-merchandise-lines.B8fdS25p.js";class pe extends Error{constructor(){super(...arguments),this.name="PostPurchaseUIError"}}const Fn=De(void 0);function Wn(){return oo(Fn)}function Ma({children:e,level:o}){const n=Wn();if(n!=null&&o!=null&&o>n)throw new pe(`You are trying to nest a heading group with level ${o} inside a context where the current heading level is ${n}. This will create a broken document outline.`);const t=o??(n??0)+1;return r(Fn.Provider,{value:t,children:e})}function mo({children:e}){return r(Ma,{children:e})}const On=De(null);function _a({children:e,translate:o,linkComponent:n,shop:t}){const a=z(()=>({translate:o,linkComponent:n,shop:t}),[t,o,n]);return r(On.Provider,{value:a,children:r(mo,{children:e})})}function Oo(){const e=oo(On);if(e==null)throw new pe("No app context available");return e}function no(){return Oo().translate}function Na(){return Oo().linkComponent}function Aa(){return Oo().shop}const $a="hJRmE",be={Button:$a,"Surface-colorCanvas":"j4rZ6","Surface-colorSurfacePrimary":"OyTlI","Surface-colorSurfaceSecondary":"Y5OXA","Surface-colorSurfaceTertiary":"popET","Utility-defaultBorderColor":"_9c3s7","Utility-defaultTextSubduedColor":"_9FcHx","Utility-defaultTextEmphasizedColor":"_74HAj","Utility-defaultAccentColor":"AdgkN"},lo=be.Button,Je=be["Surface-colorCanvas"],Oe=be["Surface-colorSurfacePrimary"],He=be["Surface-colorSurfaceSecondary"],qe=be["Surface-colorSurfaceTertiary"],ao=be["Utility-defaultBorderColor"],Ae=be["Utility-defaultTextSubduedColor"],Ce=be["Utility-defaultTextEmphasizedColor"],$e=be["Utility-defaultAccentColor"],za="WZ1ep",Da={Canvas:za};function Zo({children:e}){return r("div",{className:S(Da.Canvas,Je),children:e})}const en=1,Fa=.19783000664283,Wa=.46831999493879,uo=[[3.240969941904521,-1.537383177570093,-.498610760293],[-.96924363628087,1.87596750150772,.041555057407175],[.055630079696993,-.20397695888897,1.056971514242878]],Hn=903.2962962,Oa=.0088564516;class Ze{constructor(o,n,t){this.h=o,this.s=n,this.l=t}adjust({h:o,s:n,l:t}){return new Ze(o?.(this.h)??this.h,n?.(this.s)??this.s,t?.(this.l)??this.l)}toRgb(){return qn(this)}getYiqPerceivedBrightness(){return Ua(this)}}const Ha=/hsl\(\s*(?<h>\d+),\s*(?<s>\d+)%,\s(?<l>\d+)%\)/;function qa(e){const o=e.match(Ha);if(o==null)throw new pe(`Invalid HSL value: ${e}`);const{h:n,s:t,l:a}=o.groups,i=n?parseInt(n,10):NaN,s=t?parseInt(t,10):NaN,c=a?parseInt(a,10):NaN;if(Number.isNaN(i)||Number.isNaN(s)||Number.isNaN(c))throw new pe(`Invalid HSL value: ${e}`);return new Ze(i,s,c)}function qn({h:e,s:o,l:n}){return`rgb(${Un(...jn(e,o,n)).join(",")})`}function Ua({h:e,s:o,l:n}){const[t]=ja(e,o,n);return t}function ja(e,o,n){const[t,a,i]=Un(...jn(e,o,n));
1return[(t*.299+a*.587+i*.114)/255,(t*.596-a*.275-i*.321)/255,(t*.212-a*.523+i*.311)/255]}function Un(e,o,n){return Ya(...Ga(...Va(e,o,n)))}function Ya(...e){return[xo(Po(Io(uo[0],e))),xo(Po(Io(uo[1],e))),xo(Po(Io(uo[2],e)))]}function xo(e){return Math.round(e*255)}function Io(e,o){return e[0]*o[0]+e[1]*o[1]+e[2]*o[2]}function Po(e){return e<=.0031308?12.92*e:1.055*e**.4166666666666667-.055}function Va(e,o,n){const t=n/360*2*Math.PI;return[e,Math.cos(t)*o,Math.sin(t)*o]}function Ga(e,o,n){if(e===0)return[0,0,0];const t=o/(13*e)+Fa,a=n/(13*e)+Wa,i=Xa(e),s=0-9*i*t/((t-4)*a-t*a);return[s,i,(9*i-15*a*i-a*s)/(3*a)]}function Xa(e){return e<=8?en*e/Hn:en*((e+16)/116)**3}function jn(e,o,n){if(n>99.9999999)return[100,0,e];if(n<1e-8)return[0,0,e];const a=Qa(n,e)/100*o;return[n,a,e]}function Qa(e,o){const n=o/360*Math.PI*2,t=Ka(e);return Math.min(...t.map(a=>Ja(n,a)).filter(a=>a>0))}function Ja(e,o){return o.intercept/(Math.sin(e)-o.slope*Math.cos(e))}function Ka(e){const o=[],n=(e+16)**3/1560896,t=n>Oa?n:e/Hn;for(const[a,i,s]of uo)for(const c of[0,1]){const l=(284517*a-94839*s)*t,g=(838422*s+769860*i+731718*a)*e*t-769860*c*e,d=(632260*s-126452*i)*t+126452*c;o.push({slope:l/d,intercept:g/d})}return o}function H(e,o,n=1.285){const t=typeof o=="string"?parseFloat(o):o;return`${(typeof n=="string"?parseFloat(n):n)**e*(t/10)}rem`}const Yn=De(void 0);function Za({global:e={},buyerJourney:o={},typographyScale:n={},typographyPrimary:t={},typographySecondary:a={},headingLevel1:i={},headingLevel2:s={},headingLevel3:c={},link:l={},controls:g={},label:d={},textFields:u={},select:p={},checkbox:h={},radio:b={},optionList:v={},reviewBlock:f={},lineItems:B={},moneyLines:P={},moneySummary:_={},primaryButton:W={},secondaryButton:D={},formLayout:N={},tag:A={},tooltip:$={},popover:T={},banner:x={},thumbnail:k={},typographyStyle1:L={},typographyStyle2:q={},typographyStyle3:F={},typographyStyle4:se={},typographyStyle5:ne={},typographyStyle6:te={},typographyStyle7:ce={},typographyStyle8:le={},typographyStyle9:Ie={},colors:C}={}){return new ei({global:e,buyerJourney:o,typographyScale:n,typographyPrimary:t,typographySecondary:a,headingLevel1:i,headingLevel2:s,headingLevel3:c,link:l,controls:g,label:d,textFields:u,select:p,checkbox:h,radio:b,optionList:v,reviewBlock:f,lineItems:B,moneyLines:P,moneySummary:_,primaryButton:W,secondaryButton:D,formLayout:N,tag:A,tooltip:$,popover:T,banner:x,thumbnail:k,typographyStyle1:L,typographyStyle2:q,typographyStyle3:F,typographyStyle4:se,typographyStyle5:ne,typographyStyle6:te,typographyStyle7:ce,typographyStyle8:le,typographyStyle9:Ie,colors:C})}class ei{constructor(o){this.listeners={change:new Set,preview:new Set},this.configuration={...o,colors:Do(o.colors??{}),typographyScale:o.typographyScale??{}},this.customProperties=un(this.configuration)}preview(o,n){const t=Do(o),a=Gn(t);this.configuration={...this.configuration,colors:{...this.configuration.colors,...t}};const i=Xn(n);for(const s of this.listeners.preview)s({...a,...i})}set(o,n){this.configuration={...this.configuration,[o]:n};for(const a of this.listeners.change)a(this.configuration);const t=un(this.configuration);for(const a of this.listeners.preview)a(t)}on(o,n){return this.listeners[o].add(n),()=>{this.listeners[o].delete(n)}}}function fe(e){return e?.background?.adjust({l:o=>o>50?o-1.7:Math.max(o-5.2,0)})}function Pe(e){return e?.background?.adjust({l:o=>o>50?Math.min(o-2.5,97.5):Math.max(o+2.5,2.5)})}function Be(e){return e?.foreground??e?.background?.adjust({s:o=>o>50?Math.max(o-55,0):o,l:o=>he(e?.background)?Math.max(o-62.6,0):Math.min(o+82,98.3)})}function ye(e){return e?.foreground?e?.foreground?.adjust({l:o=>he(e?.foreground)?Math.min(o+15,100):o-10}):e?.background?.adjust({s:o=>o>50?o:Math.min(o+15,100),l:o=>he(e?.background)?Math.max(o-77.5,0):98.3})}function ke(e){return e?.foreground?e?.foreground?.adjust({l:o=>he(e?.foreground)?Math.max(o-35,0):o+43.2}):e?.background?.adjust({s:o=>o>50?Math.max(o-55,0):o,l:o=>he(e?.background)?Math.max(o-49.9,10):Math.min(o+63.2,90)})}function on(e){return e?.background?.adjust({l:o=>o-10})}function nn(e){return e?.background?.adjust({l:o=>o-10})}function Lo(e){return e?.foreground??e?.background?.adjust({l:()=>he(e?.background)?4:100})}function tn(e){return e?.background?.adjust({l:o=>o-10})}function rn(e){return e?.background?.adjust({l:o=>o-10})}function Do(e){return Object.keys(e).reduce((o,n)=>
1{const t=e[n];if(t==null)return o;const{background:a,foreground:i,accent:s}=t;return{...o,[n]:{background:a?Co(a):void 0,foreground:i?Co(i):void 0,accent:s?Co(s):void 0}}},{})}function Te(e){return e?.background?.adjust({s:o=>o>50?Math.max(o-15,0):o,l:o=>he(e?.background)?Math.max(o-8.8,0):Math.min(o+11.3,90)})}function Ee(e){return e?.background?.adjust({s:o=>o>50?o:Math.min(o+15,100),l:o=>he(e?.background)?Math.max(o-77.5,0):98.3})}function he(e){return typeof e>"u"?!1:e.getYiqPerceivedBrightness()>=.65}function Co(e){return e instanceof Ze?e:typeof e=="string"?qa(e):new Ze(...e)}const to=14,an={colorCanvas:({canvas:e})=>e?.background,colorCanvasSubdued:({canvas:e})=>fe(e),colorCanvasText:({canvas:e})=>Be(e),colorCanvasTextSubdued:({canvas:e})=>ke(e),colorCanvasTextEmphasized:({canvas:e})=>ye(e),colorCanvasBorder:({canvas:e})=>Te(e),colorCanvasBorderEmphasized:({canvas:e})=>Ee(e),colorCanvasAccent:({canvas:e})=>e?.accent,colorSurfacePrimary:({surfacePrimary:e})=>e?.background,colorSurfacePrimaryDisabled:({surfacePrimary:e})=>Pe(e),colorSurfacePrimarySubdued:({surfacePrimary:e})=>fe(e),colorSurfacePrimaryText:({surfacePrimary:e})=>Be(e),colorSurfacePrimaryTextSubdued:({surfacePrimary:e})=>ke(e),colorSurfacePrimaryTextEmphasized:({surfacePrimary:e})=>ye(e),colorSurfacePrimaryBorder:({surfacePrimary:e})=>Te(e),colorSurfacePrimaryBorderEmphasized:({surfacePrimary:e})=>Ee(e),colorSurfacePrimaryAccent:({surfacePrimary:e})=>e?.accent,colorSurfaceSecondary:({surfaceSecondary:e})=>e?.background,colorSurfaceSecondaryDisabled:({surfaceSecondary:e})=>Pe(e),colorSurfaceSecondarySubdued:({surfaceSecondary:e})=>fe(e),colorSurfaceSecondaryText:({surfaceSecondary:e})=>Be(e),colorSurfaceSecondaryTextSubdued:({surfaceSecondary:e})=>ke(e),colorSurfaceSecondaryTextEmphasized:({surfaceSecondary:e})=>ye(e),colorSurfaceSecondaryBorder:({surfaceSecondary:e})=>Te(e),colorSurfaceSecondaryBorderEmphasized:({surfaceSecondary:e})=>Ee(e),colorSurfaceSecondaryAccent:({surfaceSecondary:e})=>e?.accent,colorSurfaceTertiary:({surfaceTertiary:e})=>e?.background,colorSurfaceTertiaryDisabled:({surfaceTertiary:e})=>Pe(e),colorSurfaceTertiarySubdued:({surfaceTertiary:e})=>fe(e),colorSurfaceTertiaryText:({surfaceTertiary:e})=>Be(e),colorSurfaceTertiaryTextSubdued:({surfaceTertiary:e})=>ke(e),colorSurfaceTertiaryTextEmphasized:({surfaceTertiary:e})=>ye(e),colorSurfaceTertiaryBorder:({surfaceTertiary:e})=>Te(e),colorSurfaceTertiaryBorderEmphasized:({surfaceTertiary:e})=>Ee(e),colorSurfaceTertiaryAccent:({surfaceTertiary:e})=>e?.accent,color1:({color1:e})=>e?.background,color1Text:({color1:e})=>e?.foreground,color2:({color2:e})=>e?.background,color2Text:({color2:e})=>e?.foreground,colorPrimaryAction:({primaryAction:e})=>e?.background,colorPrimaryActionHovered:({primaryAction:e})=>on(e),colorPrimaryActionPressed:({primaryAction:e})=>nn(e),colorPrimaryActionText:({primaryAction:e})=>Lo(e),colorPrimaryActionTextHovered:({primaryAction:e})=>tn(e),colorPrimaryActionTextPressed:({primaryAction:e})=>rn(e),colorSecondaryAction:({secondaryAction:e})=>e?.background,colorSecondaryActionHovered:({secondaryAction:e})=>on(e),colorSecondaryActionPressed:({secondaryAction:e})=>nn(e),colorSecondaryActionText:({secondaryAction:e})=>Lo(e),colorSecondaryActionTextHovered:({secondaryAction:e})=>tn(e),colorSecondaryActionTextPressed:({secondaryAction:e})=>rn(e),colorTertiaryAction:({tertiaryAction:e})=>e?.background,colorTertiaryActionText:({tertiaryAction:e})=>Lo(e),colorTertiaryActionTextSubdued:({tertiaryAction:e})=>e?.foreground?e?.foreground?.adjust({l:o=>Math.min(o+20,100)}):e?.background?.adjust({s:o=>o>50?Math.max(o-55,0):o,l:o=>he(e?.background)?Math.max(o-49.9,10):Math.min(o+63.2,90)}),colorInteractive:({interactive:e})=>e?.background,colorInteractiveHovered:({interactive:e})=>e?.background?.adjust({l:o=>o+5}),colorInteractivePressed:({interactive:e})=>e?.background?.adjust({l:o=>o+5}),colorInteractiveText:({interactive:e})=>e?.foreground,colorInteractiveTextHovered:({interactive:e})=>e?.foreground?.adjust({l:o=>o+10}),colorInteractiveTextPressed:({interactive:e})=>e?.foreground?.adjust({l:o=>o+10}),colorInfo:({info:e})=>e?.background,colorInfoDisabled:({info:e})=>Pe(e),colorInfoSubdued:({info:e})=>fe(e),colorInfoText:({info:e})=>Be(e),colorInfoTextSubdued:({info:e})=>ke(e),colorInfoTextEmphasized:({info:e})=>ye(e),colorInfoBorder:({info:e})=>Te(e),colorInfoBorderEmphasized:({info:e})=>Ee(e),colorInfoAccent:({info:e})=>e?.accent,colorSuccess:({success:e})=>e?.background,colorSuccessDisabled:({success:e})=>Pe(e),colorSuccessSubdued:({success:e})=>fe(e),colorSuccessText:({success:e})=>Be(e),colorSuccessTextSubdued:({success:e})=>ke(e),colorSuccessTextEmphasized:({success:e})=>ye(e),colorSuccessBorder:({success:e})=>Te(e),colorSuccessBorderEmphasized:({success:e})=>Ee(e),colorSuccessAccent:({success:e})=>e?.accent,colorWarning:({warning:e})=>e?.background,colorWarningDisabled:({warning:e})=>Pe(e),colorWarningSubdued:({warning:e})=>fe(e),colorWarningText:({warning:e})=>Be(e),colorWarningTextSubdued:({warning:e})=>ke(e),colorWarningTextEmphasized:({warning:e})=>ye(e),colorWarningBorder:({warning:e})=>Te(e),colorWarningBorderEmphasized:({warning:e})=>Ee(e),colorWarningAccent:({warning:e})=>e?.accent,colorCritical:({critical:e})=>e?.background,colorCriticalDisabled:({critical:e})=>
1Pe(e),colorCriticalSubdued:({critical:e})=>fe(e),colorCriticalText:({critical:e})=>Be(e),colorCriticalTextSubdued:({critical:e})=>ke(e),colorCriticalTextEmphasized:({critical:e})=>ye(e),colorCriticalBorder:({critical:e})=>Te(e),colorCriticalBorderEmphasized:({critical:e})=>Ee(e),colorCriticalAccent:({critical:e})=>e?.accent},sn={typographySizeXSmall:({base:e,ratio:o})=>e?H(-1,e,o):void 0,typographySizeSmall:({base:e,ratio:o})=>e?H(-.5,e,o):void 0,typographySizeDefault:({base:e,ratio:o})=>e?H(0,e,o):void 0,typographySizeMedium:({base:e,ratio:o})=>e?H(.5,e,o):void 0,typographySizeLarge:({base:e,ratio:o})=>e?H(1,e,o):void 0,typographySizeXLarge:({base:e,ratio:o})=>e?H(2,e,o):void 0,typographySizeXXLarge:({base:e,ratio:o})=>e?H(3,e,o):void 0},oi={xsmall:"var(--x-pp-typography-size-xsmall)",small:"var(--x-pp-typography-size-small)",base:"var(--x-pp-typography-size-default)",medium:"var(--x-pp-typography-size-medium)",large:"var(--x-pp-typography-size-large)",xlarge:"var(--x-pp-typography-size-xlarge)",xxlarge:"var(--x-pp-typography-size-xxlarge)"},cn={none:"none",title:"capitalize",upper:"uppercase",lower:"lowercase"},ni={primary:"var(--x-pp-typography-primary-fonts)",secondary:"var(--x-pp-typography-secondary-fonts)"},ln={base:"normal",loose:"0.125em",xloose:"0.16em"},wo={base:"1.3",large:"1.5"},ti={base:"var(--x-pp-typography-primary-weight-base)",bold:"var(--x-pp-typography-primary-weight-bold)"},ri={base:"var(--x-pp-typography-secondary-weight-base)",bold:"var(--x-pp-typography-secondary-weight-bold)"},re=1.225,dn={spacingTight4x:({base:e})=>e?H(-5,e,re):void 0,spacingTight3x:({base:e})=>e?H(-4,e,re):void 0,spacingTight2x:({base:e})=>e?H(-3,e,re):void 0,spacingTight1x:({base:e})=>e?H(-2,e,re):void 0,spacingTight:({base:e})=>e?H(-1,e,re):void 0,spacingBase:({base:e})=>e?H(0,e,re):void 0,spacingLoose:({base:e})=>e?H(1,e,re):void 0,spacingLoose1x:({base:e})=>e?H(2,e,re):void 0,spacingLoose2x:({base:e})=>e?H(3,e,re):void 0,spacingLoose3x:({base:e})=>e?H(4,e,re):void 0,spacingLoose4x:({base:e})=>e?H(5,e,re):void 0},Vn={none:"var(--x-pp-border-radius-none)",base:"var(--x-pp-border-radius-base)"},Re={...Vn,tight:"var(--x-pp-border-radius-tight)",fullyRounded:"var(--x-pp-border-radius-fully-rounded)"},Ro={full:"var(--x-pp-border-full)",blockEnd:"var(--x-pp-border-block-end)",none:"var(--x-pp-border-none)"},ai={base:"var(--x-pp-spacing-base)",tight:"var(--x-pp-spacing-tight4x)",none:"0"},ii={base:"var(--x-pp-spacing-tight)",tight:"var(--x-pp-spacing-tight1x)",none:"0"},si={base:"var(--x-pp-spacing-loose1x)",tight:"var(--x-pp-spacing-base)",none:"0"},ci={base:"var(--x-pp-spacing-base)",tight:"var(--x-pp-spacing-tight4x)",none:"0"},li={base:"var(--x-pp-spacing-tight1x)",loose:"var(--x-pp-spacing-loose2x)"},de={none:"0",tight4x:"var(--x-pp-spacing-tight4x)",tight3x:"var(--x-pp-spacing-tight3x)",tight2x:"var(--x-pp-spacing-tight2x)",tight1x:"var(--x-pp-spacing-tight1x)",tight:"var(--x-pp-spacing-tight)",base:"var(--x-pp-spacing-base)",loose:"var(--x-pp-spacing-loose)",loose1x:"var(--x-pp-spacing-loose1x)",loose2x:"var(--x-pp-spacing-loose2x)",loose3x:"var(--x-pp-spacing-loose3x)",loose4x:"var(--x-pp-spacing-loose4x)"},di={none:"0",fast:"var(--x-pp-duration-fast)",base:"var(--x-pp-duration-base)",slow:"var(--x-pp-duration-slow)",slower:"var(--x-pp-duration-slower)",slowest:"var(--x-pp-duration-slowest)"},ui=18/to,gi=22/to,pi=18/to,hi=10/to,mi=18/to;function un({global:e,buyerJourney:o,colors:n,typographyScale:t,typographyPrimary:a,typographySecondary:i,controls:s,textFields:c,select:l,optionList:g,checkbox:d,moneyLines:u,moneySummary:p,reviewBlock:h,primaryButton:b,secondaryButton:v,tag:f,banner:B,thumbnail:P,link:_,typographyStyle1:W,typographyStyle2:D,typographyStyle3:N,typographyStyle4:A,typographyStyle5:$,typographyStyle6:T,typographyStyle7:x,typographyStyle8:k,typographyStyle9:L}){const q=y(cn)(e.typographyLetterCase),F=y(wo)(e.typographyLineSizeDefault),se=y(wo)(e.typographyLineSizeLarge),ne=y(ln)(e.typographyKerning),te=y(Re)(e.borderRadius),ce=y(Vn)(s.borderRadius),le=y(Re)(g.borderRadius),Ie=y(Re)(d.borderRadius),C=y(Re)(h.borderRadius),[E,G,ee]=[c.border,l.border,d.border].map(y(Ro)),j=a.fonts??void 0,ue=a.weightBase??void 0,We=a.weightBold??void 0,To=i.fonts??void 0,Eo=i.weightBase??void 0,Go=i.weightBold??void 0,oe=y(ai)(g.gap),Xo=y(ii)(u.gap),bt=y(si)(u.gap),vt=y(li)(o.gap),St=y(ci)(h.gap),ft=y(Ro)(h.border),[Bt,yt,kt,Tt,Et,xt,It,Pt,Lt,Ct,
1wt,Rt,Mt,_t,Nt,At,$t,zt,Dt,Ft,Wt,Ot,Ht,qt,Ut,jt,Yt,Vt,Gt,Xt,Qt,Jt,Kt,Zt,er,or,nr,tr,rr,ar,ir,sr,cr,lr,dr,ur,gr,pr,hr,mr,br,vr,Sr,fr]=[W,D,N,A,$,T,x,k,L].map(X=>[y(oi)(X.size),y(cn)(X.letterCase),y(ni)(X.fonts),X.weight?vi(X.fonts?X.fonts:"secondary",X.weight):void 0,y(wo)(X.lineSize),y(ln)(X.kerning)]).reduce((X,Or)=>[...X,...Or],[]),Br=y(de)(b.blockPadding),yr=y(de)(b.inlinePadding),kr=y(de)(v.blockPadding),Tr=y(de)(v.inlinePadding),Er=y(de)(u.blockPadding),xr=y(de)(u.inlinePadding),Ir=y(de)(p.blockPadding),Pr=y(de)(p.inlinePadding),Lr=y(de)(g.blockPadding),Cr=y(de)(g.inlinePadding),wr=y(Re)(f.borderRadius),Rr=t.base?`${Math.floor(parseFloat(t.base.toString())*ui)}px`:void 0,Mr=t.base?`${Math.floor(parseFloat(t.base.toString())*gi)}px`:void 0,_r=t.base?`${Math.floor(parseFloat(t.base.toString())*pi)}px`:void 0,Nr=y(Ro)(B.border),Ar=y(Re)(B.borderRadius),$r=t.base?`${Math.floor(parseFloat(t.base.toString())*hi)}px`:void 0,zr=t.base?`${t?.base?.toString()}px`:void 0,Dr=t.base?`${Math.floor(parseFloat(t.base.toString())*mi)}px`:void 0,Fr=P.aspectRatio?`${P.aspectRatio}`:void 0,Wr=y(di)(_.transitionDuration),ro={...Gn(Do(n)),...Xn(t),...bi(t),typographyPrimaryFonts:j,typographyPrimaryWeightBase:ue,typographyPrimaryWeightBold:We,typographySecondaryFonts:To,typographySecondaryWeightBase:Eo,typographySecondaryWeightBold:Go,globalTypographyLetterCase:q,globalTypographyLineSizeDefault:F,globalTypographyLineSizeLarge:se,globalTypographyKerning:ne,globalBorderRadius:te,controlBorderRadius:ce,checkboxBorder:ee,checkboxBorderRadius:Ie,textFieldBorder:E,selectBorder:G,optionListBorderRadius:le,optionListBlockGap:oe,reviewBlockBorderRadius:C,reviewBlockBlockGap:St,reviewBlockBorder:ft,moneyLinesBlockGap:Xo,moneyLinesSeparatorBlockGap:bt,buyerJourneyInlineGap:vt,style1TypographySize:Bt,style1TypographyCase:yt,style1TypographyFonts:kt,style1TypographyWeight:Tt,style1TypographyLineSize:Et,style1TypographyKerning:xt,style2TypographySize:It,style2TypographyCase:Pt,style2TypographyFonts:Lt,style2TypographyWeight:Ct,style2TypographyLineSize:wt,style2TypographyKerning:Rt,style3TypographySize:Mt,style3TypographyCase:_t,style3TypographyFonts:Nt,style3TypographyWeight:At,style3TypographyLineSize:$t,style3TypographyKerning:zt,style4TypographySize:Dt,style4TypographyCase:Ft,style4TypographyFonts:Wt,style4TypographyWeight:Ot,style4TypographyLineSize:Ht,style4TypographyKerning:qt,style5TypographySize:Ut,style5TypographyCase:jt,style5TypographyFonts:Yt,style5TypographyWeight:Vt,style5TypographyLineSize:Gt,style5TypographyKerning:Xt,style6TypographySize:Qt,style6TypographyCase:Jt,style6TypographyFonts:Kt,style6TypographyWeight:Zt,style6TypographyLineSize:er,style6TypographyKerning:or,style7TypographySize:nr,style7TypographyCase:tr,style7TypographyFonts:rr,style7TypographyWeight:ar,style7TypographyLineSize:ir,style7TypographyKerning:sr,style8TypographySize:cr,style8TypographyCase:lr,style8TypographyFonts:dr,style8TypographyWeight:ur,style8TypographyLineSize:gr,style8TypographyKerning:pr,style9TypographySize:hr,style9TypographyCase:mr,style9TypographyFonts:br,style9TypographyWeight:vr,style9TypographyLineSize:Sr,style9TypographyKerning:fr,primaryButtonBlockPadding:Br,primaryButtonInlinePadding:yr,secondaryButtonBlockPadding:kr,secondaryButtonInlinePadding:Tr,moneyLinesBlockPadding:Er,moneyLinesInlinePadding:xr,moneySummaryBlockPadding:Ir,moneySummaryInlinePadding:Pr,optionListBlockPadding:Lr,optionListInlinePadding:Cr,tagBorderRadius:wr,radioSizeBase:Rr,radioSizeLarge:Mr,thumbnailAspectRatio:Fr,linkTransitionDuration:Wr,checkboxSize:_r,bannerBorder:Nr,bannerBorderRadius:Ar,iconSizeSmall:$r,iconSizeDefault:zr,iconSizeLarge:Dr};for(const X of Object.keys(ro))ro[X]==null&&delete ro[X];return ro}function Gn(e){const o={};for(const n of Object.keys(an)){const t=an[n]?.(e);t!=null&&(o[n]=qn(t))}return o}function Xn(e){const o={};for(const n of Object.keys(sn)){const t=sn[n]?.(e);t!=null&&(o[n]=t)}return o}function bi(e){const o={};for(const n of Object.keys(dn)){const t=dn[n]?.(e);t!=null&&(o[n]=t)}return o}function vi(e,o){return e==="primary"?ti[o]:ri[o]}function y(e){return o=>o?e[o]:void 0}function Ho(){const e=oo(Yn);if(e==null)throw new pe("No theme found in context");return e}function Q(){const e=Ho(),o=Si(),n=I(e.configuration);n.current=e.configuration;const t=I();if(t.current==null){const a=new Set,i={};for(const s of Object.keys(e.configuration))Object.defineProperty(i,s,{enumerable:!0,get(){return a.add(s),n.current[s]}});t.current={watchedKeys:a,reactiveConfiguration:i}}return R(()=>{const{current:a}=n;
1return n.current=e.configuration,[...t.current.watchedKeys].some(i=>a[i]!==e.configuration[i])&&o(),e.on("change",()=>{const{current:i}=n;n.current=e.configuration,[...t.current.watchedKeys].some(s=>i[s]!==e.configuration[s])&&o()})},[o,e]),t.current.reactiveConfiguration}function Si(){const[,e]=M({});return w(()=>e(()=>({})),[])}const fi=Fe(function({children:o}){const n=Ho(),t=I(null),a=z(()=>gn(n.customProperties),[n]);return R(()=>n.on("preview",i=>{const{current:s}=t;if(s==null)return;const c=gn(i);for(const l of Object.keys(c))s.style.setProperty(l,c[l])}),[n]),r("div",{style:a,ref:t,children:o})});function gn(e){const o={};for(const n of Object.keys(e))o[`--x-pp-${n.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()}`]=e[n];return o}const Bi=Fe(function(){const o=Ho(),[n,t]=M(o.customProperties);R(()=>o.on("preview",i=>{t(s=>({...s,...i}))}),[o]);const a=z(()=>yi(n),[n]);return r("style",{dangerouslySetInnerHTML:{__html:a}})});function yi(e){return ki({[`.${lo}`]:{color:e.colorPrimaryActionText,background:e.colorPrimaryAction},[`.${lo}:hover`]:{background:e.colorPrimaryActionHovered},[`.${lo}:active`]:{background:e.colorPrimaryActionPressed},[`.${Je}`]:{color:e.colorCanvasText,"border-color":e.colorCanvasBorder,"background-color":e.colorCanvas},[`.${Je} .${ao}`]:{"border-color":e.colorCanvasBorder},[`.${Je} .${Ae}`]:{color:e.colorCanvasTextSubdued},[`.${Je} .${Ce}`]:{color:e.colorCanvasTextEmphasized},[`.${Oe}`]:{color:e.colorSurfacePrimaryText,"border-color":e.colorSurfacePrimaryBorder,"background-color":e.colorSurfacePrimary},[`.${Oe} .${ao}`]:{"border-color":e.colorSurfacePrimaryBorder},[`.${Oe} .${Ae}`]:{color:e.colorSurfacePrimaryTextSubdued},[`.${Oe} .${Ce}`]:{color:e.colorSurfacePrimaryTextEmphasized},[`.${Oe} .${$e}`]:{color:e.colorSurfacePrimaryAccent},[`.${He}`]:{color:e.colorSurfaceSecondaryText,"border-color":e.colorSurfaceSecondaryBorder,"background-color":e.colorSurfaceSecondary},[`.${He} .${ao}`]:{"border-color":e.colorSurfaceSecondaryBorder},[`.${He} .${Ae}`]:{color:e.colorSurfaceSecondaryTextSubdued},[`.${He} .${Ce}`]:{color:e.colorSurfaceSecondaryTextEmphasized},[`.${He} .${$e}`]:{color:e.colorSurfaceSecondaryAccent},[`.${qe}`]:{color:e.colorSurfaceTertiaryText,"border-color":e.colorSurfaceTertiaryBorder,"background-color":e.colorSurfaceTertiary},[`.${qe} .${ao}`]:{"border-color":e.colorSurfaceTertiaryBorder},[`.${qe} .${Ae}`]:{color:e.colorSurfaceTertiaryTextSubdued},[`.${qe} .${Ce}`]:{color:e.colorSurfaceTertiaryTextEmphasized},[`.${qe} .${$e}`]:{color:e.colorSurfaceTertiaryAccent}})}function ki(e){const o=[];for(const n of Object.keys(e)){const t=[];for(const a of Object.keys(e[n])){const i=e[n][a];i&&t.push(`${a}: ${i} !important;`)}t.length>0&&o.push(`${n} { 2 ${t.join(` 3 `)} 4}`)}return o.join(` 5`)}function Ti({children:e}){const{typographyPrimary:o,typographySecondary:n}=Q();return R(()=>{const t=[o,n].map(i=>[{fonts:i.fonts,source:i.sourceBase,weight:i.weightBase},{fonts:i.fonts,source:i.sourceBold,weight:i.weightBold}]).reduce((i,s)=>i.concat(s),[]).filter(i=>i.fonts!==void 0&&i.source!==void 0).map(({fonts:i,source:s,weight:c})=>new FontFace(i,s,{weight:c}));async function a(){await Promise.all(t).then(i=>{i.forEach(s=>{document.fonts.add(s)})})}a()},[o,n]),r(U,{children:e})}function Ei({children:e,condition:o}){return o?r(Ti,{children:e}):r(U,{children:e})}function xi({children:e,theme:o,shouldLoadFonts:n}){const t=Ii();return r(Yn.Provider,{value:o,children:r(Ei,{condition:!!n,children:t?r(fi,{children:r(Zo,{children:e})}):r(U,{children:[r(Bi,{}),r(Zo,{children:e})]})})})}function Ii(){return z(()=>typeof CSS<"u"&&CSS.supports("color","var(--test)"),[])}const Pi=1e4,pn=500,hn=3;function Li(e){return e.status==="partially_processed"&&e.errors.some(o=>o.code==="payment_authentication_required")}function Ci(e){return e.status==="partially_processed"&&e.errors.some(o=>o.code==="payment_processing")}function wi(e){return e<=1?0:e<=hn?pn:pn*(e-hn)}async function Ri(e){await Mn(wi(e))}class Ke extends Error{constructor(){super(...arguments),this.name="PostPurchaseError"}}class Mi extends Error{constructor(){super(...arguments),this.name="InitializePostPurchaseIframeError",this.message="Post Purchase tracking iframe failed to initialize"}}
5class Mo extends Error{constructor(){super(...arguments),this.name="PayPalFraudnetCollectError"}}class _i extends Error{constructor(o){super("Post Purchase tracking iframe failed to emit a tracking event",{cause:o}),this.name="EmitPostPurchaseTrackingEventError"}}function Ni(e){return!!(e?.status==="processed"&&e?.purchaseOrder?.paymentLines?.some(({method:o})=>o.type==="wallet"&&o.name==="PAYPAL_EXPRESS"))}function Ai(e){return/^(?!.*Chrome\/).*Safari\//.test(navigator.userAgent)?e instanceof SyntaxError&&e.message==="JSON Parse error: Unexpected EOF":!1}const Ue={errors:[{code:"server_error",message:"The server encountered an unknown issue while processing the request."}],status:"unprocessed"};class $i{constructor(o,n,t,a,i){this.changesetsUrl=o,this.observability=n,this.receiptToken=t,this.sessionToken=a,this.developmentMode=i,this.calculateChangeset=this.calculateChangeset.bind(this),this.applyChangeset=this.applyChangeset.bind(this),this.appliedChangeset=this.appliedChangeset.bind(this),this.sendChangesetsRequest=this.sendChangesetsRequest.bind(this)}async calculateChangeset(o){const n=typeof o=="string"?{changes:o}:o;return this.sendChangesetsRequest("calculate.json","calculateChangeset",n)}async applyChangeset(o,n){const t={changes:o,options:n};return this.sendChangesetsRequest("apply.json","applyChangeset",t)}async appliedChangeset(o){const n={changes:o};return this.sendChangesetsRequest("applied.json","appliedChangeset",n)}async sendChangesetsRequest(o,n,t){try{this.observability.leaveErrorBreadcrumb(`PostPurchase::${String(n)}`);const a=`${this.changesetsUrl}/${o}`,i={Accept:"application/json","Content-Type":"application/json","X-Shopify-Receipt-Token":this.receiptToken,"X-Shopify-Checkout-Session-Token":this.sessionToken};this.developmentMode&&(i["X-Shopify-Post-Purchase-Development-Mode"]="1");const s=await fetch(a,{method:"POST",body:JSON.stringify(t),headers:i,credentials:"omit"});if(s.status===404||s.status===502)return Ue;if(s.status===421||s.status===503){const d=s.headers.get("content-type");if(!d?.includes("application/json")){const u=s.headers.get("x-request-id");return this.observability.counter({name:"PostPurchase_unactionable_infra_error",value:1,attributes:{action:String(n),status:s.status,hasRequestId:u!=null}}),this.observability.log("PostPurchase::UnactionableInfraError",`Unactionable infra status ${s.status} for request id '${u}'`,{action:String(n),statusCode:s.status,requestId:u??void 0,contentType:d??void 0}),Ue}}if(!s.headers.get("x-request-id")&&s.status===403)return this.observability.log("PostPurchase::ExternalInterception",`Changeset request intercepted externally with status ${s.status}`,{action:String(n),statusCode:s.status,contentType:s.headers.get("content-type")??void 0}),Ue;if(s.status===429){const d=s.headers.get("x-request-id");return this.observability.log("PostPurchase::RateLimited",`Rate limited with status 429 for request id '${d}'`,{action:String(n),requestId:d??void 0}),{errors:[{code:"server_error",message:"The server responded with status 429, too many requests"}],status:"unprocessed"}}const l=s.headers.get("content-type");if(!l?.includes("application/json")){const d=s.headers.get("x-request-id"),u=await s.text(),p={};for(const[h,b]of Object.entries(i))p[h]=b.length;return this.observability.log("PostPurchase::InvalidContentType",`Unexpected content type '${l}' for request id '${d}'`,{action:String(n),statusCode:s.status,contentType:l??void 0,responseBody:u.substring(0,300),headerLengths:p}),this.notifyAndThrowGenericError(new Ke(`Unexpected content type '${l}' for request id '${d}' with status ${s.status}`),n)}const g=await s.text();try{return JSON.parse(g)}catch(d){const u=s.headers.get("x-request-id"),p=d instanceof Error?d.message:"No error.message",h=g.length>500?g.substring(0,300):g.substring(0,500),b=g.length>500?g.substring(g.length-200):"";this.observability.log("PostPurchase::JsonParseError",`JSON parse failed for request id '${u}'`,{action:String(n),status:s.status,bodyLength:g.length,bodyPreview:h,bodyTail:b,errorMessage:p});const v=s.status===200||s.status<500&&Ai(d)?"PostPurchase::ClientJsonParseError":`PostPurchase::Exception::${String(n)}`;return this.observability.error(new Ke(`Unexpected error parsing json response for request id '${u}'; error: ${p}`),{errorClass:v,severity:"error",metadata:{response:{action:String(n),status:s.status}}}),Ue}}catch(a){return this.notifyAndThrowGenericError(a,n)}}notifyAndThrowGenericError(o,n){return this.notifyError(o,n),Ue}notifyError(o,n){this.observability.error(o,{errorClass:`PostPurchase::Exception::${String(n)}`,severity:"error"})}}function zi(){const{client:e,checkout:o,observability:n}=me(),t=o.latestReceipt.value,a=e.unstable_getSerialization("sessionToken"),{developmentMode:i,changesetsUrl:s}=Wo();if(!s)throw new Ke("There was an error initializing the PostPurchaseApiClient: Changesets Url is blank.");
5if(!a)throw new Ke("There was an error initializing the PostPurchaseApiClient: Session Token is blank.");if(t?.status!=="processed")throw new Ke("There was an error initializing the PostPurchaseApiClient: Receipt Status must be processed.");return z(()=>new $i(s,n,t.token,a,i),[s,n,t.token,a,i])}function mn(){return An().replace(/-/g,"").slice(0,32)}const Qn="checkoutsCompleted";async function Di(e,o,n,t){if(!n.order)return;const a=location.href,i=Fi(n.order.checkoutToken,t);await e.call.initializeIFrame(o,{referrer:document.referrer,cookie:document.cookie,title:document.title,trackingData:n},a,i)}function Fi(e,o){if(!e)return!1;let n;try{n=sessionStorage.getItem(Qn)}catch{return!1}if(!n)return io(JSON.stringify([e]),o),!1;let t;try{t=JSON.parse(n)}catch{return io(JSON.stringify([e]),o),!1}return Array.isArray(t)?t.includes(e)?!0:(t.push(e),io(JSON.stringify(t),o),!1):(io(JSON.stringify([e]),o),!1)}function io(e,o){try{sessionStorage.setItem(Qn,e)}catch(n){n instanceof DOMException&&n.name==="SecurityError"||Wi(o)}}function Wi(e){try{const o={};for(const n in sessionStorage)if(sessionStorage.hasOwnProperty(n)){const t=sessionStorage.getItem(n);o[n]={size:new Blob([t??""]).size}}e.leaveErrorBreadcrumb("sessionStorage inventory",o)}catch{}}function Oi(e,o){const[n,t]=M(null),[a,i]=M("initial"),s=I(""),{observability:c}=me(),l=I(0),g=I(null),d=I(!1);return ho(()=>{let u=null;if(a==="initial"&&e?.analyticsIframeURL&&e.postPurchaseAdditionalTrackingScript){const{analyticsIframeURL:p}=e;Ea(p,c),l.current=Date.now(),u=xa({id:`merchant-script-${An()}`,url:p,privileges:["allow-scripts","allow-forms"],title:document.title??void 0}),g.current=u,c.leaveErrorBreadcrumb("Post-purchase tracking iframe: createSandboxedIframe called.");const h=Hr(qr(u),{callable:["ping","initializeIFrame","emitEvent"]});h.expose({mirrorCookie:Hi}),t(h)}return()=>{n?.terminate?.(),u?.remove(),g.current=null,i("initial")}},[]),R(()=>{(async()=>{if(a==="initial"&&n&&e?.trackingData&&e.postPurchaseAdditionalTrackingScript)try{i("initializing"),c.leaveErrorBreadcrumb("Post-purchase tracking iframe: polling iframe");const u=await Ui(n,c);if(c.leaveErrorBreadcrumb("Post-purchase tracking iframe: polling iframe completed",{isOk:u}),!u){c.counter({name:"PostPurchase_tracking_iframe_timeout",value:1});return}c.histogram({name:"PostPurchase_tracking_iframe_time_until_ok",value:Date.now()-l.current}),s.current=JSON.stringify(e.trackingData.order),g.current?.addEventListener("load",()=>{d.current=!0},{once:!0}),await Di(n,e.postPurchaseAdditionalTrackingScript,e.trackingData,c),i("initialized")}catch(u){i("failed"),(u instanceof Error||u instanceof Mi)&&c.error(u)}})()},[e,c,n,a]),R(()=>{a==="initialized"&&n&&o?.(u=>{if(!u||d.current)return;const p=JSON.stringify(u.order);s.current!==p&&(s.current=p,n.call.emitEvent("CheckoutAmended",u).then(h=>{h==="not_initialized"&&(d.current=!0)}).catch(h=>{c.error(new _i(h))}))})},[o,n,a,c]),n}function Hi(e){document.cookie=e}const bn=500,qi=15e3;async function Ui(e,o){for(let n=0;n<qi/bn;n++){const t=e.call.ping(),a=new Promise(s=>{setTimeout(()=>s(!1),bn)}),i=await Promise.race([t,a]);if(i)return o.counter({name:"PostPurchase_tracking_iframe_number_of_polls",value:n+1}),i}return!1}const ji=$n(({checkout:e,client:o,graphql:{coreGraphql:n},observability:t,shop:a},{lastChangeTimestamp:i})=>{const s=o.unstable_getSerialization("sessionToken"),c=Le(()=>e.latestReceipt.value?.id),l=Le(()=>!a.postPurchase.additionalTrackingScript||e.latestReceipt.value?.status!=="processed"||!s),g=n.query(Dn,{variables:()=>({input:{forRender:{receiptId:c.value,sessionToken:s}}}),skip:()=>l.value,cache:!1}),d=Le(()=>Yi(g.data.value??void 0));zo(()=>{l.value||t.counter({name:"PostPurchase_page_loading_analytics_sandbox",value:1})});let u=i.peek();return zo(()=>{const p=i.value;l.value||p===u||(u=p,g.refetch())}),{emittableTrackingData:Le(()=>l.value||g.loading.value||g.error.value?null:d.value),trackingData:d}});function Yi(e){if(!e||!e.postPurchaseData)return null;const o=e.postPurchaseData;return o.__typename!=="PostPurchaseDataSuccess"||!o.trackingData?null:JSON.parse(o.trackingData)}function Vi({lastChangeTimestamp:e}){const{shop:o,url:n}=me(),t=Ur(e),{emittableTrackingData:a,trackingData:i}=zn(ji,{lastChangeTimestamp:t}),s=c=>{if(a.value)return c(a.value)};return Oi({trackingData:i.value,analyticsIframeURL:n.sandboxAnalytics(),postPurchaseAdditionalTrackingScript:o.postPurchase.additionalTrackingScript},s),null}const Gi="https://c.paypal.com/da/r/fb.js",Xi="https://c.paypal.com/da/r/fbts.js",Qi="fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99";function Ji({checkoutSessionIdentifier:e,shopId:o,paymentGatewaySessionId:n,fraudnetMultioffersEnabled:t}){return r(U,{children:[r("script",{type:"application/json",fncls:Qi,dangerouslySetInnerHTML:{__html:JSON.stringify({f:t?n:e,s:t?"shopify_checkout_postPurchase":`shop-${o}`})}}),r("script",{src:t?Xi:Gi})]})}const Ki="_1gdkV",Zi="svk3O",Jn={SectionContent:Ki,HeaderLogo:Zi};function es({children:e,onHeaderClick:o}){const{main:n}=sa(),{i18n:t}=me();return r(ie,{background:"base",className:ta({colorScheme:n.colorScheme,colorLayer:"base"}),children:[r(Ia,{children:t.translate("post_purchase.title")}),r(os,{onClick:o}),r("div",{className:Jn.SectionContent,children:e}),r(ns,{})]})}function os({onClick:e}){const{checkout:o,i18n:n}=me(),t=o.latestReceipt.value,a=t?.status==="processed"?t.orderIdentity.buyerIdentifier:null;return r(U,{children:[r("header",{children:r(ie,{inlineAlignment:"center",children:r(ie,{inlineSize:"100%",maxInlineSize:"@media (inline-size >= medium) 1100px, 560px",padding:"@media (inline-size >= medium) none large-500, none",children:r(ie,{padding:"@media (inline-size >= medium) small-200 large-500, small-200 base small-400 base",children:r(Jo,{level:1,children:r("div",{className:Jn.HeaderLogo,children:r(ca,{})})})})})})}),r(ie,{inlineAlignment:"center",children:r(ie,{inlineSize:"100%",maxInlineSize:"@media (inline-size >= medium) 1176px, 560px",padding:"@media (inline-size >= medium) none large-500, none",children:r(ie,{padding:"@media (inline-size >= medium) none large-500 large-200 large-500, none base base base'",children:r(Ko,{gap:"base",direction:"inline",alignItems:"start",accessibilityRole:"header",children:[r(la,{type:"check-circle",tone:"accent",size:"large"}
5),r(ie,{children:r(Ko,{alignItems:"start",gap:"small-400",children:[a&&n.translate("order_summary.confirmation_number_label",{confirmation_number:`${a}`}),r(Jo,{level:2,children:n.translate("post_purchase.escape_confirmation")}),r(da,{onClick:e,children:n.translate("post_purchase.escape_action")})]})})]})})})})]})}function ns(){return r(ie,{accessibilityRole:"footer",inlineAlignment:"center",padding:"large-400",children:r(ie,{inlineSize:"100%",maxInlineSize:"@media (inline-size >= small) 560px, (inline-size >= medium) 946px, none",children:r(ie,{padding:"base none",borderWidth:"base none none none",children:r(ua,{})})})})}function bo(e,o){const[n,t]=M({receiver:e,id:o.id,version:o.version,value:o});let a=n.value;return(n.receiver!==e||n.id!==o.id)&&(a=e.attached.get(o),t({receiver:e,id:o.id,version:o.version,value:a})),jr(a),R(()=>{let i=!1;const s=()=>{i||t(l=>{const{id:g,version:d,receiver:u}=l,{id:p}=o;if(u!==e||g!==p)return l;const h=e.attached.get(o),b=h?.version;return d===b?l:{receiver:e,value:h,id:p,version:b}})},c=e.attached.subscribe(o,s);return s(),()=>{i=!0,c()}},[e,o]),a}const ts=Fe(function({controller:o,receiver:n}){const{root:t}=n.attached,{children:a}=bo(n,t),{renderComponent:i,renderText:s}=o.renderer;return r(U,{children:a.map(c=>{switch(c.kind){case Nn:return i({parent:t,component:c,receiver:n,controller:o,key:c.id});case _n:return s({parent:t,text:c,receiver:n,key:c.id});default:return null}})})}),rs={},as=Fe(function({receiver:o,component:n,controller:t}){const a=t.get(n.type),i=bo(o,n),s=z(()=>{const l=i?.props;if(!l)return rs;const g={};for(const d of Object.keys(l)){const u=l[d];g[d]=Yr(u)?r(is,{parent:n,receiver:o,fragment:u,controller:t}):u}return g},[o,t,i?.props,n.version]);if(i==null)return null;const{children:c}=i;return c.length===0?r(a,{...s}):r(a,{...s,children:Kn(n,c,o,t)})}),is=Fe(function({parent:o,receiver:n,fragment:t,controller:a}){var i;const{children:s}=(i=bo(n,t))!==null&&i!==void 0?i:{};return s?r(U,{children:Kn(o,s,n,a)}):null});function Kn(e,o,n,t){const{renderComponent:a,renderText:i}=t.renderer;return[...o].map(s=>{switch(s.kind){case Nn:return a({parent:e,component:s,receiver:n,controller:t,key:s.id});case _n:return i({parent:e,text:s,receiver:n,key:s.id});default:return null}})}const ss=Fe(function({text:o,receiver:n}){const t=bo(n,o);return t?r(U,{children:t.text}):null});function cs(e,{renderComponent:o,renderText:n}={}){const t=new Map(Object.entries(e)),a=({parent:l,component:g,controller:d,receiver:u,key:p})=>r(as,{parent:l,component:g,controller:d,receiver:u},p),i=o?l=>o(l,{renderDefault(){return a(l)}}):a,s=({key:l,receiver:g,text:d,parent:u})=>r(ss,{receiver:g,text:d,parent:u},l);return{get(l){const g=t.get(l);if(g==null)throw new Error(`Unknown component: ${l}`);return g},renderer:{renderComponent:i,renderText:n?l=>n(l,{renderDefault(){return s(l)}}):s}}}function ve(e){let o=0;return()=>`${e}${o++}`}function Se(e,o){const n=I(e);return n.current=e??n.current??o(),n.current}const ls="Pt5C9",ds="AHnvD",us="_0kHdH",gs="Mj39f",ps="mHRdF",hs="bgPkT",ms="QGqKQ",bs="C0fD2",vs="z2I8f",Ss="dg84n",fs="uLkzw",je={Bookend:ls,alignmentLeading:ds,alignmentCenter:us,alignmentTrailing:gs,alignmentBaseline:ps,spacingXtight:hs,spacingTight:ms,spacingLoose:bs,spacingXloose:vs,trailing:Ss,leading:fs};function Zn({children:e,spacing:o,alignment:n,leading:t,trailing:a}){return r("div",{className:S(je.Bookend,t&&je.leading,a&&je.trailing,o&&je[m("spacing",o)],n&&je[m("alignment",n)]),children:e})}const Bs="S6mQH",ys="Qxy5o",ks="Lebua",Ts="dJkfR",Es="_9L1yu",xs="_8EqjA",Is="_7cFDn",Ps="piSw3",Ls="q9HMK",Cs="DfCuC",ws="zF1vV",Rs="LC3a5",Ms="kd33n",_s="cGahq",Ns="JIXAj",As="YOogo",$s="kgOOJ",zs="rwvoZ",Z={style1:Bs,placeholderStyle1:ys,style2:ks,placeholderStyle2:Ts,style3:Es,placeholderStyle3:xs,style4:Is,placeholderStyle4:Ps,style5:Ls,placeholderStyle5:Cs,style6:ws,placeholderStyle6:Rs,style7:Ms,placeholderStyle7:_s,style8:Ns,placeholderStyle8:As,style9:$s,placeholderStyle9:zs},Ds="J7FWc",Fs="EBR0w",Ws="OyUup",Os="b3EhK",Hs="qPKsd",qs="Fv43w",Us="TxTLq",vn={Heading:Ds,h1:Fs,h2:Ws,h3:Os,h4:Hs,h5:qs,h6:Us};function vo({id:e,children:o,role:n,level:t}){const{headingLevel1:a,headingLevel2:i,headingLevel3:s}=Q(),c=Wn(),l=t??c??0,g=n==="presentation"||c==null?"p":`h${c}`,d=S(vn.Heading,l?vn[m("h",l)]:void 0,l>=2&&Ce,l===1&&a.typographyStyle&&Z[a.typographyStyle],l===2&&i.typographyStyle&&Z[i.typographyStyle],l===3&&s.typographyStyle&&Z[s.typographyStyle]);return r(g,{id:e,tabIndex:e?-1:void 0,className:d,children:o})}const js=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:r("path",{fillRule:"evenodd",d:"M8.87 3a.71.71 0 0 0-.605.337L6.353 6.469H1.412A1.4 1.4 0 0 0 0 7.856v11.793a1.4 1.4 0 0 0 1.412 1.387h21.176A1.4 1.4 0 0 0 24 19.65V7.856a1.4 1.4 0 0 0-1.412-1.387h-4.94l-1.913-3.132A.71.71 0 0 0 15.13 3zM12 18.088c2.826 0 5.118-2.252 5.118-5.03 0-2.777-2.292-5.029-5.118-5.029s-5.118 2.252-5.118 5.03 2.292 5.03 5.118 5.03m3.265-5.03c0 1.773-1.462 3.21-3.265 3.21s-3.265-1.437-3.265-3.21c0-1.771 1.462-3.208 3.265-3.208s3.265 1.437 3.265 3.209",clipRule:"evenodd"})}),Ys=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...e,children:[r("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),r("path",{d:"M39 12 12 39m0-27 27 27",style:{stroke:"currentColor"}})]}),Vs=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{d:"M0 5h20L10 15"})}),Gs=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{d:"M17.178 13.088H5.453c-.454 0-.91-.364-.91-.818L3.727 1.818H0V0h4.544c.455 0 .91.364.91.818l.09 1.272h13.45c.274 0 .547.09.73.364.18.182.27.454.18.727l-1.817 9.18c-.09.455-.455.728-.91.728zM6.27 11.27h10.09l1.454-7.362H5.634l.637 7.362zm.092 7.715a1.817 1.817 0 1 0 .002-3.634 1.817 1.817 0 0 0-.002 3.634m9.18 0a1.816 1.816 0 1 0-.001-3.635 1.818 1.818 0 0 0 0 3.635z"})}),Xs=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...e,children:[r("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),r("path",{strokeWidth:2,d:"m15 24.511 7.307 7.307L35.125 19",style:{stroke:"currentColor"}})]}),Qs=e=>r("svg",{viewBox:"0 0 20 20",...e,children:r("path",{d:"M20 5.347 7.647 17.462 0 9.962l2.393-2.347 5.254 5.154L17.607 3z"})}),Js=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:r("path",{d:"M12.6 3 14 4.4 8.4 10 7 11.4 5.6 10 0 4.4
51.4 3 7 8.6"})}),Ks=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",...e,children:r("path",{d:"M8 1 7 0 3 4 2 5l1 1 4 4 1-1-4-4"})}),Zs=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",...e,children:r("path",{d:"m2 1 1-1 4 4 1 1-1 1-4 4-1-1 4-4"})}),ec=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:r("path",{d:"M1.4 10.4 0 9l7-7 7 7-1.4 1.4L7 4.8z"})}),oc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:r("path",{d:"M15.1 2.3 13.7.9 8 6.6 2.3.9.9 2.3 6.6 8 .9 13.7l1.4 1.4L8 9.4l5.7 5.7 1.4-1.4L9.4 8"})}),nc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:r("path",{d:"M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12m0-2c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m0-16a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0V7a1 1 0 0 1 1-1m-1.5 10.5c0-.828.666-1.5 1.5-1.5.828 0 1.5.666 1.5 1.5 0 .828-.666 1.5-1.5 1.5-.828 0-1.5-.666-1.5-1.5"})}),tc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{d:"m9.46 4.305-6.129 5.11c-.28.24-.467.516-.467.885v8.864c0 .46.479.835.937.835h2.863a.837.837 0 0 0 .835-.835l-.048-4.449c0-.229.186-.414.415-.414h4.168c.229 0 .417.185.417.414l.048 4.45c0 .46.375.835.834.835h2.986c.46 0 .835-.374.835-.834v-8.482c0-.367-.245-.894-.528-1.131l-6.09-5.248a.834.834 0 0 0-1.077 0zm10.243 3.391L11.179.489A1.66 1.66 0 0 0 9.999 0c-.446 0-.866.176-1.129.443L.294 7.696a.834.834 0 0 0 1.077 1.273L9.5 2.045a.83.83 0 0 1 .996-.002c1.837 1.374 8.133 6.927 8.133 6.927a.835.835 0 0 0 1.077-1.274z"})}),rc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{fillRule:"evenodd",d:"M7.267 2.688 11.922 0l1.813 3.14-4.656 2.687zM0 3.264h3.296L9 13.187a3.39 3.39 0 1 0 2.406 4.186l.508.884 7.775-4.502-1.003-1.731-6.038 3.497L4.454 1.264H0zm9.529 13.203a1.39 1.39 0 1 1-2.782 0 1.39 1.39 0 0 1 2.782 0m6.7-13.328L9.516 7.014l3.771 6.533L20 9.672z",clipRule:"evenodd"})}),ac=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{fillRule:"evenodd",d:"M10 17.5a7.45 7.45 0 0 1-4.339-1.394L16.106 5.661A7.45 7.45 0 0 1 17.5 10c0 4.136-3.364 7.5-7.5 7.5m0-15c1.617 0 3.113.52 4.339 1.394L3.894 14.339A7.45 7.45 0 0 1 2.5 10c0-4.136 3.364-7.5 7.5-7.5M10 0C4.486 0 0 4.486 0 10s4.486 10 10 10 10-4.486 10-10S15.514 0 10 0",clipRule:"evenodd"})}),ic=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",...e,children:[r("path",{fillOpacity:.55,d:"M17.78 3.09A2 2 0 0 0 16 2h-5.165c-.535 0-1.046.214-1.422.593l-6.82 6.89q0 .003-.002.003a2.04 2.04 0 0 0-.5.874L.74 8.055a2 2 0 0 1 .712-2.737L9.823.425A2 2 0 0 1 11.35.22l4.99 1.337a2 2 0 0 1 1.44 1.533"}),r("path",{d:"M10.835 2H16a2 2 0 0 1 2 2v5.172c0 .53-.21 1.04-.586 1.414l-6.818 6.818a2 2 0 0 1-2.82.01l-5.166-5.1a2 2 0 0 1-.02-2.828q.003 0 .003-.002l6.82-6.89A2 2 0 0 1 10.835 2M13.5 8a1.5 1.5 0 1 0-.001-3.001A1.5 1.5 0 0 0 13.5 8"})]}),sc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m-3.292-5.38L10 11.328l3.257 3.257 1.328-1.328L11.328 10l3.292-3.292-1.328-1.328L10 8.672 6.743 5.415 5.415 6.743 8.672 10 5.38 13.292z",clipRule:"evenodd"})}),cc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",...e,children:r("g",{fillRule:"evenodd",children:[r("path",{fillOpacity:.55,fillRule:"nonzero",d:"M12.915 5q.084-.236.085-.5a1.5 1.5 0 0 0-3 0V11h6v2h-6v5H8v-5H2v-2h6V4.5a1.5 1.5 0 1 0-2.915.5h-2.05A3.5 3.5 0 0 1 9 2.05 3.5 3.5 0 0 1 14.965 5z"}),r("path",{d:"M16 13v2a3 3 0 0 1-3 3h-3v-5zm0-2h-6V5h6a2 2 0 1 1 0 4zM2 13h6v5H5a3 3 0 0 1-3-3zm0-2V9a2 2 0 1 1 0-4h6v6z"})]})}),lc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:r("path",{d:"M12 11h1v7h-2v-5a1 1 0 0 1 0-2zm0 13C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12m0-2c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10M10.5 7.5c0-.828.666-1.5 1.5-1.5.828 0 1.5.666 1.5 1.5 0 .828-.666 1.5-1.5 1.5-.828 0-1.5-.666-1.5-1.5"})}),dc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",...e,children:r("path",{d:"M12 6h-1V4c0-2.2-1.8-4-4-4S3 1.8 3 4v2H2c-.5 0-1 .5-1 1v6c0 .5.5 1 1 1h10c.5 0 1-.5 1-1V7c0-.5-.5-1-1-1M5 4c0-1.1.9-2 2-2s2 .9 2 2v2H5z"})}),uc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:r("path",{fillRule:"evenodd",d:"M5 2.99C5 1.34 6.342 0 8.003 0h7.994A3 3 0 0 1 19 2.99v18.02c0 1.65-1.342 2.99-3.003 2.99H8.003A3 3 0 0 1 5 21.01zM7 5c0-.552.456-1 .995-1h8.01c.55 0 .995.445.995 1v14c0 .552-.456 1-.995 1h-8.01A.995.995 0 0 1 7 19zm5 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}),gc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:r("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8m.7 13H6.8v-2h1.9zm2.6-7.1c0 1.8-1.3 2.6-2.8 2.8l-.1 1.1H7.3L7 7.5l.1-.1c1.8-.1 2.6-.6 2.6-1.6 0-.8-.6-1.3-1.6-1.3-.9 0-1.6.4-2.3 1.1L4.7 4.5c.8-.9 1.9-1.6 3.4-1.6 1.9.1 3.2 1.2 3.2 3"})}),pc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:[r("path",{d:"M5.156 17.75a2.75 2.75 0 1 0 0-5.5 2.75 2.75 0 0 0 0 5.5m9.969 0a2.75 2.75 0 1 0 0-5.5 2.75 2.75 0 0 0 0 5.5"}),r("path",{fillRule:"evenodd",d:"M0 14V3a1 1 0 0 1 1-1h7.756a1 1 0 0 1 1 1v1.469h.01V15h-.787q.006-.099.005-.199A3.75 3.75 0 1 0 1.49 15H1a1 1 0 0 1-1-1m10.656 1h.709a3.75 3.75 0 1 1 7.49 0H19a1 1 0 0 0 1-1v-3.853a1 1 0 0 0-.169-.556l-3.128-4.678a1 1 0 0 0-.83-.444h-5.217z",clipRule:"evenodd"})]}),hc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{d:"M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0v2a8 8 0 1 0 8 8z"})}),mc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e,children:r("path",{d:"M32 16c0 8.837-7.163 16-16 16S0 24.837 0 16 7.163 0 16 0v2C8.268 2 2 8.268 2 16s6.268 14 14 14 14-6.268 14-14z"})}),bc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:r("path",{d:"M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12m0-2c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m3.784-13.198a.999.999 0 1 1 1.432 1.396l-5.85 6a1 1 0 0 1-1.432 0l-3.15-3.23a1 1 0 1 1 1.432-1.397l2.434 2.5 5.134-5.267z"})}),vc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...e,children:[r("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),r("path",{strokeLinecap:"square",strokeWidth:2,d:"M25 11v19",style:{stroke:"currentColor"}}),r("path",{fillRule:"evenodd",d:"M25 39a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd",style:{fill:"currentColor"}})]}),Sc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:r("path",{fillRule:"evenodd",d:"m12.738 3.06 6.592 11.968C20.842 17.774 19.71 20 16.8 20H3.2C.29 20-.842 17.778.67 15.028L7.262 3.061c1.513-2.745 3.962-2.75 5.476 0m-3.571 9.761V6.668h1.666v6.153zM10 16.734c.69 0 1.25-.58 1.25-1.295 0-.716-.56-1.296-1.25-1.296s-1.25.58-1.25 1.296c0 .715.56 1.295 1.25 1.295",clipRule:"evenodd"})}),fc=e=>r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...e,children:[r("path",{fillRule:"evenodd",d:"M9.167 12.407V6.469h1.667v5.938z",clipRule:"evenodd"}),r("path",{d:"M10 16.183a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"}),r("path",{fillRule:"evenodd",d:"M19.33 14.536 12.738 2.99C11.223.334 8.774.34 7.261 2.989L.67 14.536C-.842 17.19.291 19.334 3.2 19.334h13.6c2.909 0 4.042-2.148 2.53-4.798M8.761 4.08c.839-1.467 1.637-1.468 2.476 0l6.316 11.066c.86 1.506.49 2.209-1.
5036 2.209H3.483c-1.525 0-1.894-.701-1.038-2.209z",clipRule:"evenodd"})]}),Bc="BMGnr",yc="EwEn7",kc="eT6oI",Tc="oDjiF",Ec="oGW7E",xc="eZ7zj",Ic="RYcxG",Pc="_6qD2C",Lc="_65MYf",Cc="WryPG",wc="wBGCW",Rc="woymO",Mc="ecTdl",_c="z9u48",Ye={Icon:Bc,sizeDefault:yc,sizeSmall:kc,sizeLarge:Tc,appearanceAccent:Ec,appearanceInteractive:xc,appearanceSubdued:Ic,appearanceInfo:Pc,appearanceSuccess:Lc,appearanceCritical:Cc,appearanceWarning:wc,Svg:Rc,Img:Mc,Placeholder:_c},Nc={camera:js,cancelCircle:Ys,caretDown:Vs,cart:Gs,checkmark:Qs,checkmarkCircle:Xs,chevronDown:Js,chevronUp:ec,chevronRight:Zs,chevronLeft:Ks,close:oc,critical:nc,discount:ic,delivered:tc,delivery:rc,disabled:ac,errorFill:sc,info:lc,lock:dc,mobile:uc,questionFill:gc,spinner:mc,spinnerSmall:hc,success:bc,ship:pc,warning:fc,warningCircle:vc,warningFill:Sc,giftFill:cc};function we({source:e,appearance:o,size:n,accessibilityLabel:t}){const a=S(Ye.Icon,o&&Ye[m("appearance",o)],o&&o==="accent"&&$e,n&&Ye[m("size",n)]);let i;if(e==="placeholder")i=r("div",{className:Ye.Placeholder});else{const s=Nc[e];i=r(s,{className:Ye.Svg,focusable:"false","aria-hidden":"true",role:"presentation"})}return r("span",{className:a,"aria-label":t,children:i})}const Ac="WBViK",$c="xgQYA",zc="a67HM",Dc="A50FK",Fc="Z00zw",Wc="wNtvT",Oc="JBd0G",_o={TextContainer:Ac,spacingNone:$c,spacingTight:zc,spacingLoose:Dc,alignmentLeading:Fc,alignmentCenter:Wc,alignmentTrailing:Oc};function So({alignment:e,spacing:o,children:n}){const t=S(_o.TextContainer,e&&_o[m("alignment",e)],o&&_o[m("spacing",o)]);return r("div",{className:t,children:n})}const Sn={padding:["paddingInlineStart","paddingInlineEnd","paddingBlockStart","paddingBlockEnd"],paddingInline:["paddingInlineStart","paddingInlineEnd"],paddingInlineStart:"paddingInlineStart",paddingInlineEnd:"paddingInlineEnd",paddingBlock:["paddingBlockStart","paddingBlockEnd"],paddingBlockStart:"paddingBlockStart",paddingBlockEnd:"paddingBlockEnd",background:"background",border:["borderInlineStart","borderInlineEnd","borderBlockStart","borderBlockEnd"],borderInline:["borderInlineStart","borderInlineEnd"],borderInlineStart:"borderInlineStart",borderInlineEnd:"borderInlineEnd",borderBlock:["borderBlockStart","borderBlockEnd"],borderBlockStart:"borderBlockStart",borderBlockEnd:"borderBlockEnd",borderWidth:["borderWidthInlineStart","borderWidthInlineEnd","borderWidthBlockStart","borderWidthBlockEnd"],borderWidthInline:["borderWidthInlineStart","borderWidthInlineEnd"],borderWidthInlineStart:"borderWidthInlineStart",borderWidthInlineEnd:"borderWidthInlineEnd",borderWidthBlock:["borderWidthBlockStart","borderWidthBlockEnd"],borderWidthBlockStart:"borderWidthBlockStart",borderWidthBlockEnd:"borderWidthBlockEnd",borderColor:["borderColorInlineStart","borderColorInlineEnd","borderColorBlockStart","borderColorBlockEnd"],borderRadius:["borderRadiusInlineStart","borderRadiusInlineEnd","borderRadiusBlockStart","borderRadiusBlockEnd"],borderRadiusInline:["borderRadiusInlineStart","borderRadiusInlineEnd"],borderRadiusInlineStart:"borderRadiusInlineStart",borderRadiusInlineEnd:"borderRadiusInlineEnd",borderRadiusBlock:["borderRadiusBlockStart","borderRadiusBlockEnd"],borderRadiusBlockStart:"borderRadiusBlockStart",borderRadiusBlockEnd:"borderRadiusBlockEnd",spacing:"spacing"};function fn(e,o){return Object.entries(e).filter(([n,t])=>Sn[n]&&t).reduce((n,[t,a])=>{const i=Sn[t];return Array.isArray(i)?[...n,...i.map(s=>o?m(m(o,s),a):m(s,a))]:[...n,o?m(m(o,i),a):m(i,a)]},[])}function Bn(e){return Object.assign({},...Object.entries(e).map(([o,n])=>{if(Array.isArray(n)){if(n.length===2){const[t,a]=n;return{[`${o}Block`]:t,[`${o}Inline`]:a}}else if(n.length===4){const[t,a,i,s]=n;return{[`${o}BlockStart`]:t,[`${o}InlineEnd`]:a,[`${o}BlockEnd`]:i,[`${o}InlineStart`]:s}}}return{[o]:n}}))}function Hc(e,o){return[...fn(Bn(e)),...o?o.map(({viewportSize:n,...t})=>fn(Bn(t),n)).reduce((n,t)=>n.concat(t),[]):[]]}const qc="_47zIR",Uc="fEqQ9",jc="ii27j",Yc="_1fK3S",Vc="mUB1b",Gc="q9YYb",Xc="_1HJFC",Qc="oV4Z2",Jc="uAMYP",Kc="menNc",Zc="NFMUD",el="JNQAO",ol="dWe54",nl="FsqcC",tl="foinD",rl="rfp8Y",al="iOrF3",il="Y3mIT",sl="PQE0l",cl="eP0RQ",ll="ZHBJy",dl="gohnJ",ul="r3Sce",gl="_9gRm7",pl="_2aFJq",hl="_91j9L",ml="aWdpf",bl="yZuyc",vl="CQ6UX",Sl="xBdlE",fl="MISHF",Bl="b0ylU",yl="cAZzk",kl="LjBbN",Tl="czEIY",El="u6ieL",xl="Q2Pcd",Il="NUIuJ",Pl="cH20N",Ll="xwvJT",Cl="NdQ5q",wl="S9nQ3",Rl="GkWv4",Ml="ctr2e",_l="VnGGl",Nl="Pstdl",Al="NXQcj",$l="tL3Qp",zl="nmLTV",Dl="Umil9",Fl="yUCBq",Wl="uNuk8",Ol="Ou9KA",Hl="fc28B",ql="WIefK",Ul="C7lzD",jl="B4qvI",Yl="kw9sh",Vl="M1V6g",Gl="_7zlaM",Xl="qqYT8",Ql="mYPZ9",Jl="HdQ9U",Kl="xy8tg",Zl="zhe2S",ed="nezfL",od="tyNx
5x",nd="hngp5",td="RZ4s7",rd="_5WUxN",ad="rzF4T",id="_20Bvh",sd="Y5pQs",cd="t4kF6",ld="yOH8O",dd="pLQEz",ud="_94rqG",gd="Fughu",pd="S1ctf",hd="eOuG5",md="GK4xe",bd="w2psg",vd="EjiAg",Sd="kfWbx",fd="_2N5qr",Bd="_5Q7fi",yd="tdUoq",kd="ggaPg",Td="tfE80",Ed="GJSUI",xd="zwoP1",Id="mTxb5",Pd="mpI9z",Ld="HTywT",Cd="_9ulY8",wd="s8qMf",Rd="_2CmEJ",Md="AboN6",_d="_49IGz",Nd="fNZ1l",Ad="M45Ob",$d="jp4c7",zd="xAA0R",Dd="fGY5f",Fd="_31Id7",Wd="bx2qN",Od="goLU0",Hd="rrwTq",qd="XIoWB",Ud="_8KbGZ",jd="Ix69q",Yd="AOjX1",Vd="ewG2X",Gd="v7w4I",Xd="ujYhI",Qd="ADHOF",Jd="vHX6M",Kd="DDfrF",Zd="VoCpG",eu="zUIvX",ou="nrS8q",nu="lqJd0",tu="_91azi",ru="jL2aC",au="tBmbv",iu="FK6vz",su="OOcxv",cu="_1vJ1r",lu="K3lQt",du="sX3hs",uu="uJ2FB",gu="J29re",pu="uYzG0",hu="unNTt",mu="_6OoQk",bu="QbmcA",vu="_1d436",Su="jpz96",fu="nZWdv",Bu="DRAbK",yu="stEtS",ku="K8QJ6",Tu="sn841",Eu="KM5LL",xu="GAkFo",Iu="y2TnV",Pu="SYRpa",Lu="_3fwPx",Cu="_2C2sx",wu="rtbaJ",Ru="ybFn0",Mu="Sa0EE",_u="jcIY2",Nu="D5uaS",Au="n3T6g",$u="r3OSj",zu="C6pla",Du="o3tmc",Fu="_1yxs5",Wu="_2c5K2",Ou="UJUYC",Hu="_1Wlgi",qu="_0xUxo",Uu="F8sYl",ju="_5AA7L",Yu="oxQ90",Vu="_0Qd1M",Gu="xJYUk",Xu="TrEq6",Qu="_0P8Q4",Ju="mvGSG",Ku="EuTFm",Zu="AeCtW",eg="sipVW",og="XGruh",ng="hFd2M",tg="z8BTV",rg="_2MGZK",ag="_1cOM9",ig="eUSnk",sg="cQL8O",cg="EbLsC",lg="kcnav",dg="_4QhrI",ug="ZZWpj",gg="_2BOrb",pg="_1ueKi",hg="Fax9T",mg="ydi6p",bg="fp8IC",vg="fsaBa",Sg="MkU19",fg="_3tdr9",Bg="TpEsF",yg="yft63",kg="VmImD",Tg="NM2yV",Eg="_1g20z",xg="WxBVR",Ig="LrIuq",Pg="K1XLm",Lg="_1bMw2",Cg="BUD9H",wg="R9RZt",Rg="JxfQV",Mg="_2T75z",_g="POiRg",Ng="_2DY0L",Ag="Epshn",$g="kcAiv",zg="zDiwA",Dg="_1uZFt",Fg="vnrZ2",Wg="riGjf",Og="QQYVl",Hg="ulJWL",qg="nDtP5",Ug="CL4rO",jg="l4pK0",Yg="OqXHc",Vg="AGTRa",Gg="V33M5",Xg="Fz5s9",Qg="_9xFaI",Jg="UNDlf",Kg="vkBQ7",Zg="sopqf",ep="BZTuX",op="_0VqWv",np="hQws7",tp="Ja6HK",rp="nns70",ap="zy4ps",ip="aYgpQ",sp="Fp15A",cp="gjVG8",lp="Tg842",dp="UhUwi",up="_6F4dd",gp="E6TZr",pp="tWLn5",hp="qYx1Q",mp="w7Uxz",bp="RO5sq",vp="fkjVf",Sp="K6n6y",fp="qguz7",Bp="TJs83",yp="_9Pw4q",kp="_71meE",Tp="a42rs",Ep="iWZkR",xp="NpZaQ",Ip="NHCvw",Pp="sujnm",Lp="nAzPb",Cp="tBVOS",wp="Mh4rq",Rp="ZDnKL",yn={paddingInlineStartTight4x:qc,paddingInlineStartTight1x:Uc,paddingInlineStartBase:jc,paddingInlineStartLoose1x:Yc,paddingInlineStartLoose4x:Vc,paddingInlineEndTight4x:Gc,paddingInlineEndTight1x:Xc,paddingInlineEndBase:Qc,paddingInlineEndLoose1x:Jc,paddingInlineEndLoose4x:Kc,paddingBlockStartTight4x:Zc,paddingBlockStartTight1x:el,paddingBlockStartBase:ol,paddingBlockStartLoose1x:nl,paddingBlockStartLoose4x:tl,paddingBlockEndTight4x:rl,paddingBlockEndTight1x:al,paddingBlockEndBase:il,paddingBlockEndLoose1x:sl,paddingBlockEndLoose4x:cl,backgroundSurfacePrimary:ll,backgroundSurfaceSecondary:dl,backgroundSurfaceTertiary:ul,borderInlineStartBase:gl,borderInlineStartDotted:pl,borderInlineEndBase:hl,borderInlineEndDotted:ml,borderBlockStartBase:bl,borderBlockStartDotted:vl,borderBlockEndBase:Sl,borderBlockEndDotted:fl,borderWidthInlineStartBase:Bl,borderWidthInlineStartThick:yl,borderWidthInlineEndBase:kl,borderWidthInlineEndThick:Tl,borderWidthBlockStartBase:El,borderWidthBlockStartThick:xl,borderWidthBlockEndBase:Il,borderWidthBlockEndThick:Pl,borderColorInlineStartBase:Ll,borderColorInlineStartEmphasized:Cl,borderColorInlineEndBase:wl,borderColorInlineEndEmphasized:Rl,borderColorBlockStartBase:Ml,borderColorBlockStartEmphasized:_l,borderColorBlockEndBase:Nl,borderColorBlockEndEmphasized:Al,borderRadiusBlockStartTight:$l,borderRadiusBlockStartBase:zl,borderRadiusInlineStartTight:Dl,borderRadiusInlineStartBase:Fl,borderRadiusInlineEndTight:Wl,borderRadiusInlineEndBase:Ol,borderRadiusBlockEndTight:Hl,borderRadiusBlockEndBase:ql,aboveSmallPaddingInlineStartTight4x:Ul,aboveSmallPaddingInlineStartTight1x:jl,aboveSmallPaddingInlineStartBase:Yl,aboveSmallPaddingInlineStartLoose1x:Vl,aboveSmallPaddingInlineStartLoose4x:Gl,aboveSmallPaddingInlineStartNone:Xl,aboveSmallPaddingInlineEndTight4x:Ql,aboveSmallPaddingInlineEndTight1x:Jl,aboveSmallPaddingInlineEndBase:Kl,aboveSmallPaddingInlineEndLoose1x:Zl,aboveSmallPaddingInlineEndLoose4x:ed,aboveSmallPaddingInlineEndNone:od,aboveSmallPaddingBlockStartTight4x:nd,aboveSmallPaddingBlockStartTight1x:td,aboveSmallPaddingBlockStartBase:rd,aboveSmallPaddingBlockStartLoose1x:ad,aboveSmallPaddingBlockStartLoose4x:id,aboveSmallPaddingBlockStartNone:sd,aboveSmallPaddingBlockEndTight4x:cd,aboveSmallPaddingBlockEndTight1x:ld,aboveSmallPaddingBlockEndBase:dd,aboveSmallPaddingBlockEndLoose1x:ud,aboveSmallPaddingBlockEndLoose4x:gd,aboveSmallPaddingBlockEndNone:pd,aboveSmallBackgroun
5dSurfacePrimary:hd,aboveSmallBackgroundSurfaceSecondary:md,aboveSmallBackgroundSurfaceTertiary:bd,aboveSmallBackgroundTransparent:vd,aboveSmallBorderInlineStartBase:Sd,aboveSmallBorderInlineStartDotted:fd,aboveSmallBorderInlineStartNone:Bd,aboveSmallBorderInlineEndBase:yd,aboveSmallBorderInlineEndDotted:kd,aboveSmallBorderInlineEndNone:Td,aboveSmallBorderBlockStartBase:Ed,aboveSmallBorderBlockStartDotted:xd,aboveSmallBorderBlockStartNone:Id,aboveSmallBorderBlockEndBase:Pd,aboveSmallBorderBlockEndDotted:Ld,aboveSmallBorderBlockEndNone:Cd,aboveSmallBorderWidthInlineStartBase:wd,aboveSmallBorderWidthInlineStartThick:Rd,aboveSmallBorderWidthInlineEndBase:Md,aboveSmallBorderWidthInlineEndThick:_d,aboveSmallBorderWidthBlockStartBase:Nd,aboveSmallBorderWidthBlockStartThick:Ad,aboveSmallBorderWidthBlockEndBase:$d,aboveSmallBorderWidthBlockEndThick:zd,aboveSmallBorderColorInlineStartBase:Dd,aboveSmallBorderColorInlineStartEmphasized:Fd,aboveSmallBorderColorInlineEndBase:Wd,aboveSmallBorderColorInlineEndEmphasized:Od,aboveSmallBorderColorBlockStartBase:Hd,aboveSmallBorderColorBlockStartEmphasized:qd,aboveSmallBorderColorBlockEndBase:Ud,aboveSmallBorderColorBlockEndEmphasized:jd,aboveSmallBorderRadiusBlockStartTight:Yd,aboveSmallBorderRadiusBlockStartBase:Vd,aboveSmallBorderRadiusBlockStartNone:Gd,aboveSmallBorderRadiusInlineStartTight:Xd,aboveSmallBorderRadiusInlineStartBase:Qd,aboveSmallBorderRadiusInlineStartNone:Jd,aboveSmallBorderRadiusInlineEndTight:Kd,aboveSmallBorderRadiusInlineEndBase:Zd,aboveSmallBorderRadiusInlineEndNone:eu,aboveSmallBorderRadiusBlockEndTight:ou,aboveSmallBorderRadiusBlockEndBase:nu,aboveSmallBorderRadiusBlockEndNone:tu,aboveMediumPaddingInlineStartTight4x:ru,aboveMediumPaddingInlineStartTight1x:au,aboveMediumPaddingInlineStartBase:iu,aboveMediumPaddingInlineStartLoose1x:su,aboveMediumPaddingInlineStartLoose4x:cu,aboveMediumPaddingInlineStartNone:lu,aboveMediumPaddingInlineEndTight4x:du,aboveMediumPaddingInlineEndTight1x:uu,aboveMediumPaddingInlineEndBase:gu,aboveMediumPaddingInlineEndLoose1x:pu,aboveMediumPaddingInlineEndLoose4x:hu,aboveMediumPaddingInlineEndNone:mu,aboveMediumPaddingBlockStartTight4x:bu,aboveMediumPaddingBlockStartTight1x:vu,aboveMediumPaddingBlockStartBase:Su,aboveMediumPaddingBlockStartLoose1x:fu,aboveMediumPaddingBlockStartLoose4x:Bu,aboveMediumPaddingBlockStartNone:yu,aboveMediumPaddingBlockEndTight4x:ku,aboveMediumPaddingBlockEndTight1x:Tu,aboveMediumPaddingBlockEndBase:Eu,aboveMediumPaddingBlockEndLoose1x:xu,aboveMediumPaddingBlockEndLoose4x:Iu,aboveMediumPaddingBlockEndNone:Pu,aboveMediumBackgroundSurfacePrimary:Lu,aboveMediumBackgroundSurfaceSecondary:Cu,aboveMediumBackgroundSurfaceTertiary:wu,aboveMediumBackgroundTransparent:Ru,aboveMediumBorderInlineStartBase:Mu,aboveMediumBorderInlineStartDotted:_u,aboveMediumBorderInlineStartNone:Nu,aboveMediumBorderInlineEndBase:Au,aboveMediumBorderInlineEndDotted:$u,aboveMediumBorderInlineEndNone:zu,aboveMediumBorderBlockStartBase:Du,aboveMediumBorderBlockStartDotted:Fu,aboveMediumBorderBlockStartNone:Wu,aboveMediumBorderBlockEndBase:Ou,aboveMediumBorderBlockEndDotted:Hu,aboveMediumBorderBlockEndNone:qu,aboveMediumBorderWidthInlineStartBase:Uu,aboveMediumBorderWidthInlineStartThick:ju,aboveMediumBorderWidthInlineEndBase:Yu,aboveMediumBorderWidthInlineEndThick:Vu,aboveMediumBorderWidthBlockStartBase:Gu,aboveMediumBorderWidthBlockStartThick:Xu,aboveMediumBorderWidthBlockEndBase:Qu,aboveMediumBorderWidthBlockEndThick:Ju,aboveMediumBorderColorInlineStartBase:Ku,aboveMediumBorderColorInlineStartEmphasized:Zu,aboveMediumBorderColorInlineEndBase:eg,aboveMediumBorderColorInlineEndEmphasized:og,aboveMediumBorderColorBlockStartBase:ng,aboveMediumBorderColorBlockStartEmphasized:tg,aboveMediumBorderColorBlockEndBase:rg,aboveMediumBorderColorBlockEndEmphasized:ag,aboveMediumBorderRadiusBlockStartTight:ig,aboveMediumBorderRadiusBlockStartBase:sg,aboveMediumBorderRadiusBlockStartNone:cg,aboveMediumBorderRadiusInlineStartTight:lg,aboveMediumBorderRadiusInlineStartBase:dg,aboveMediumBorderRadiusInlineStartNone:ug,aboveMediumBorderRadiusInlineEndTight:gg,aboveMediumBorderRadiusInlineEndBase:pg,aboveMediumBorderRadiusInlineEndNone:hg,aboveMediumBorderRadiusBlockEndTight:mg,aboveMediumBorderRadiusBlockEndBase:bg,aboveMediumBorderRadiusBlockEndNone:vg,aboveLargePaddingInlineStartTight4x:Sg,aboveLargePaddingInlineStartTight1x:fg,aboveLargePaddingInlineStartBase:Bg,aboveLargePaddingInlineStartLoose1x:yg,aboveLargePaddingInlineStartLoose4x:kg,aboveLargePaddingInlineStartNone:Tg,aboveLargePaddingInlineEndTight4x:Eg,aboveLargePaddingInlineEndTight1x:xg,aboveLargePaddingInlineEndBase:Ig,aboveLargePaddingInlineEndLoose1x:Pg,aboveLargePaddingInlineEndLoose4x:Lg,aboveLargePaddingInlineEndNone:Cg,aboveLargePaddingBlockStartTight4x:wg,aboveLargePaddingBlockStartTight1x:Rg,aboveLargePaddingBlockStartBase:Mg,aboveLargePaddingBlockStartLoose1x:_g,aboveLargePaddingBlockStartLoose4x:Ng,aboveLargePaddingBlockStartNone:Ag,aboveLargePaddingBlockEndTight4x:$g,aboveLargePaddingBlockEndTight1x:zg,aboveLargePaddingBlockEndBase:Dg,aboveLargePaddingBlockEndLoose1x:Fg,aboveLargePaddingBlockEndLoose4x:Wg,aboveLargePaddingBlockEndNone:Og,aboveLargeBackgroun
5dSurfacePrimary:Hg,aboveLargeBackgroundSurfaceSecondary:qg,aboveLargeBackgroundSurfaceTertiary:Ug,aboveLargeBackgroundTransparent:jg,aboveLargeBorderInlineStartBase:Yg,aboveLargeBorderInlineStartDotted:Vg,aboveLargeBorderInlineStartNone:Gg,aboveLargeBorderInlineEndBase:Xg,aboveLargeBorderInlineEndDotted:Qg,aboveLargeBorderInlineEndNone:Jg,aboveLargeBorderBlockStartBase:Kg,aboveLargeBorderBlockStartDotted:Zg,aboveLargeBorderBlockStartNone:ep,aboveLargeBorderBlockEndBase:op,aboveLargeBorderBlockEndDotted:np,aboveLargeBorderBlockEndNone:tp,aboveLargeBorderWidthInlineStartBase:rp,aboveLargeBorderWidthInlineStartThick:ap,aboveLargeBorderWidthInlineEndBase:ip,aboveLargeBorderWidthInlineEndThick:sp,aboveLargeBorderWidthBlockStartBase:cp,aboveLargeBorderWidthBlockStartThick:lp,aboveLargeBorderWidthBlockEndBase:dp,aboveLargeBorderWidthBlockEndThick:up,aboveLargeBorderColorInlineStartBase:gp,aboveLargeBorderColorInlineStartEmphasized:pp,aboveLargeBorderColorInlineEndBase:hp,aboveLargeBorderColorInlineEndEmphasized:mp,aboveLargeBorderColorBlockStartBase:bp,aboveLargeBorderColorBlockStartEmphasized:vp,aboveLargeBorderColorBlockEndBase:Sp,aboveLargeBorderColorBlockEndEmphasized:fp,aboveLargeBorderRadiusBlockStartTight:Bp,aboveLargeBorderRadiusBlockStartBase:yp,aboveLargeBorderRadiusBlockStartNone:kp,aboveLargeBorderRadiusInlineStartTight:Tp,aboveLargeBorderRadiusInlineStartBase:Ep,aboveLargeBorderRadiusInlineStartNone:xp,aboveLargeBorderRadiusInlineEndTight:Ip,aboveLargeBorderRadiusInlineEndBase:Pp,aboveLargeBorderRadiusInlineEndNone:Lp,aboveLargeBorderRadiusBlockEndTight:Cp,aboveLargeBorderRadiusBlockEndBase:wp,aboveLargeBorderRadiusBlockEndNone:Rp};function eo({blockPadding:e,inlinePadding:o,padding:n,children:t,media:a,...i}){const c=Hc({...i,padding:!n&&(e||o)?Mp(e,o):n},a);return r("div",{className:S(yn.View,c&&c.map(l=>yn[l])),children:t})}function Mp(e,o){const n=t=>{switch(t){case"base":return"base";case"tight":return"tight1x";case"extraTight":return"tight4x";case"loose":return"loose1x";case"extraLoose":return"loose4x";default:return"none"}};return[n(e),n(o)]}const _p="HwFtv",Np="gvEcX",Ap="_2OMMy",$p="WHH75",zp="LEzwg",Dp="u07YM",Fp="_4TfRQ",Ve={Banner:_p,Icon:Np,statusInfo:Ap,statusSuccess:$p,statusWarning:zp,statusCritical:Dp,Button:Fp},Wp=ve("Banner");function Op({children:e,collapsible:o=!1,iconHidden:n=!1,status:t="info",title:a,autoFocus:i=!1}){const s=no(),[c,l]=M(!0),g=I(null);R(()=>{i===!0&&g?.current?.focus()},[i]);const d=S(Ve.Banner,t&&Ve[m("status",t)]),u=Se(void 0,Wp),p=c?void 0:u,h=!o||o&&!c;return r("div",{className:d,role:t==="critical"?"alert":"status","aria-atomic":"true","aria-live":"polite",...i&&{tabIndex:-1},ref:g,children:r(Zn,{leading:!n,trailing:o,children:[!n&&r("div",{className:Ve.Icon,children:r(we,{source:t})}),r(So,{spacing:"tight",children:[a&&r(vo,{level:3,children:a}),e&&h&&r("div",{className:Ve.Content,id:p,children:r(mo,{children:r(eo,{children:e})})})]}),o&&r(eo,{children:r("button",{type:"button",className:Ve.Button,onClick:()=>l(b=>!b),"aria-pressed":!c,"aria-expanded":!c,"aria-controls":p,children:r(we,{size:"small",source:c?"chevronDown":"chevronUp",accessibilityLabel:s("expand")})})})]})})}const Hp="kIgpr",qp="bFWIE",Up="kkSSu",jp="rMvcE",Yp="m8fnu",Vp="gFMiI",Gp="KQ319",Xp="cThsa",Qp="FAXRQ",No={BlockStack:Hp,spacingNone:qp,spacingXtight:Up,spacingTight:jp,spacingLoose:Yp,spacingXloose:Vp,alignmentLeading:Gp,alignmentCenter:Xp,alignmentTrailing:Qp};function fo({alignment:e,spacing:o,children:n}){const t=S(No.BlockStack,e&&No[m("alignment",e)],o&&No[m("spacing",o)]);return r("div",{className:t,children:n})}function qo(){const[e,o]=M(!1);return ho(()=>{o(Jp())},[]),R(()=>{if(typeof window>"u")return;const n=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>{o(n.matches)};return n.addListener(t),()=>{n.removeListener(t)}},[]),e}function Jp(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}const kn=new Map([["none",0],["fast",100],["base",200],["slow",300],["slower",400],["slowest",500]]);function Uo(e,o="slow",n=!1){const[t,a]=M(n?!1:e),[i,s]=M(!1),c=I(n?!1:e),l=I(()=>{s(!1),a(c.current)}),g=qo();
5let d=typeof o=="string"?o:o.enter,u=typeof o=="string"?o:o.exit;return g&&(d="none",u="none"),R(()=>{e!==c.current&&s(!0),c.current=e;const p=setTimeout(l.current,e?kn.get(d??"none"):kn.get(u??"none"));return()=>{clearTimeout(p)}},[d,u,e]),i?e?"entering":"exiting":e===t?e?"entered":"exited":e?"enter":"exit"}function et({children:e,className:o,to:n,external:t,id:a,language:i,onPress:s}){const c=Na(),l=s&&(()=>s());return c?r(c,{to:n,onClick:l,external:t,id:a,className:o,lang:i,children:e}):r("a",{href:n,onClick:l,target:t?"_blank":void 0,rel:t?"noopener noreferrer":void 0,id:a,className:o,lang:i,children:e})}const Kp="Saysr",Zp="aAUgK",eh="jc1jU",oh="_4WBeo",Tn={Spinner:Kp,"fade-in":"Tsfjk",rotate:Zp,sizeLarge:eh,sizeSmall:oh};function ot({size:e,color:o,children:n}){const t=qo(),a=!!(n&&t),i=a?void 0:S(Tn.Spinner,e&&Tn[m("size",e)]);return r("div",{className:i,children:a?n:r(we,{source:e==="small"?"spinnerSmall":"spinner",appearance:o?void 0:"accent"})})}const nh="MImI3",th="c2MXY",rh="Lh31i",ah="AdR2j",ih="Ad3oQ",sh="Imf0g",ch="yXHHV",lh="ts108",dh="a5wxR",uh="pUDoY",gh="NQ2yj",ph="fYrWH",hh="_1Zk1y",mh="B2YDL",bh="nNNso",vh="AABVP",Sh="N8QRz",fh="GZggx",Y={Button:nh,Content:th,LoadingContent:rh,Spinner:ah,subdued:ih,plain:sh,underline:ch,fill:lh,disabled:dh,loading:uh,"loading-transitionEnter":"eKXZP","loading-transitionEntering":"kEwCl","loading-transitionEntered":"FFWrm",secondary:gh,tertiary:ph,progressBar:hh,progressbar:mh,colorHoveredColor1:bh,colorHoveredColor2:vh,colorPressedColor1:Sh,colorPressedColor2:fh},nt=Fo(function({children:o,submit:n=!1,disabled:t,onPress:a,to:i,subdued:s,plain:c,secondary:l,tertiary:g,loading:d=!1,fill:u=!1,loadingLabel:p,underline:h},b){const v=t?void 0:i,f=t||typeof a!="function"?void 0:()=>a?.(),B=w(le=>{typeof b=="function"?b(le):b&&(b.current=le)},[b]),P=no(),_=qo(),W=Uo(d,{enter:"slow"}),{primaryButton:{typographyStyle:D,loadingStyle:N="spinner"},secondaryButton:{typographyStyle:A,loadingStyle:$="spinner"},link:{colorHovered:T,colorPressed:x}}=Q(),k=l?$:N,L=S(Y.Button,lo,s&&Y.subdued,c&&Y.plain,c&&T&&Y[m("colorHovered",T)],c&&x&&Y[m("colorPressed",x)],c&&h&&Y.underline,t&&Y.disabled,d&&k==="spinner"&&Y.loading,u&&Y.fill,d&&k==="spinner"&&Y[m("loading-transition",W)],l&&Y.secondary,g&&Y.tertiary,d&&k==="progressBar"&&Y[k]),q=p||P("processing"),F=l?A&&Z[A]:D&&Z[D],se=S(Y.Content,!c&&F),ne=r("span",{className:se,children:d&&k==="progressBar"&&_?q:o}),te=n?"submit":"button",ce=r("span",{className:S(Y.LoadingContent,!_&&Y.Spinner),children:r(ot,{size:"small",color:"inherit",children:q})});return v?r(et,{to:v,className:L,onPress:a,"aria-busy":d,"aria-live":d?"assertive":"polite",children:[ne,d&&k==="spinner"&&ce]}):r("button",{type:te,className:L,disabled:t||d,onClick:f,"aria-busy":d,"aria-live":d?"assertive":"polite",ref:B,children:[ne,d&&k==="spinner"&&ce]})}),Bh="xbP8T",yh="MnY5j",kh="oweDI",Th="_9Wkb7",Eh="egIQs",xh="JBAUV",Ih="tEPo1",Ph="_8kU9E",Lh="_1d4vg",Ao={InlineStack:Bh,spacingXtight:yh,spacingTight:kh,spacingLoose:Th,spacingXloose:Eh,alignmentLeading:xh,alignmentCenter:Ih,alignmentTrailing:Ph,alignmentBaseline:Lh};function tt({spacing:e,alignment:o,children:n}){const t=S(Ao.InlineStack,e&&Ao[m("spacing",e)],o&&Ao[m("alignment",o)]);return r("div",{className:t,children:n})}function Ch({children:e}){return r(tt,{alignment:"center",children:e})}function Bo(e){return`error-for-${e}`}function yo({children:e}){return r("span",{"aria-hidden":"true",children:e})}const wh="IZGO7",Rh={InlineError:wh};function jo({children:e,controlID:o}){return r("p",{className:Rh.InlineError,id:o?Bo(o):void 0,children:e})}const Mh="q6PFP",_h={VisuallyHidden:Mh};function ze({children:e}){return r("span",{className:_h.VisuallyHidden,children:e})}const Nh="PDMGs",Ah="o7KtC",$h="XRqWc",zh="HyDWS",Dh="giGGc",Fh="DKMqn",Wh="Y0iFQ",K={Wrapper:Nh,hasError:Ah,errorIndentationToText:$h,Checkbox:zh,Input:Dh,Icon:Fh,"Input-hasError":"eADQA","Input-backgroundTransparent":"iFRwL","Input-backgroundSurfacePrimary":"kEW1r","Input-backgroundSurfaceSecondary":"biGeI","Input-backgroundSurfaceTertiary":"_2s0y0","Input-borderColorEmphasized":"nZlde","Input-isDisabled":"Py3dv",Label:Wh,"Label-isDisabled":"idTjj",Error:"_9XLCJ"},Oh=ve("Checkbox");function rt({id:e,name:o,accessibilityLabel:n,error:t,disabled:a,children:i,...s}){const c=Se(e,Oh),{checkbox:{errorIndentation:l,errorTypographyStyle:g}}=Q(),d=t?r("div",{className:S(K.Error,g&&Z[g]),children:r(jo,{controlID:c,children:t})}):null,u=S(K.Label,a&&K["Label-isDisabled"]),p=!!t;return r("div",{className:S(K.Wrapper,p&&K.hasError,p&&l&&K[m("errorIndentation",l)]),children:[r(Hh,{id:c,name:o,error:!!t,disabled:a,...s}),r("label",{htmlFor:c,className:u,children:n?r(U,{children:[r(ze,{children:n}),r(yo,{children:i})]}):i}),d]})}function Hh({id:e,name:o,value:n=!1,checked:t=n,disabled:a,error:i=!1,onChange:s}){const{controls:{background:c},checkbox:{background:l,borderColor:g="base"}}=Q(),d=l||c||"surfaceTertiary",u=S(K.Input,i&&K["Input-hasError"],a&&K["Input-isDisabled"],K[m("Input-background",d)],K[m("Input-borderColor",g)]);return r("div",{className:K.Checkbox,children:[r("input",{type:"checkbox",id:e,name:o,checked:t,disabled:a,onChange:({currentTarget:p})=>{s?.(p.checked)},className:u,"aria-describedby":i?Bo(e):void 0,"aria-invalid":i}),r("div",{className:K.Icon,children:r(we,{source:"checkmark",size:"small"})})]})}const qh="occN5",Uh="xonXO",jh="dZPXf",Yh="Gdq36",Vh="eqsiw",Gh="IwUJJ",so={Link:qh,underline:Uh,colorHoveredColor1:jh,colorHoveredColor2:Yh,colorPressedColor1:Vh,colorPressedColor2:Gh},Xh=new Set(["http","https"]),Qh=new Set([...Xh,"mailto","tel","sms"]);function at({to:e,language:o,children:n,onPress:t,underline:a,...i}){const{link:{colorHovered:s,colorPressed:c}}=Q();if(!e)return r(nt,{onPress:t,plain:!0,underline:!0,...i,children:n});const l=Jh(e);return r(et,{className:S(so.Link,a&&so.underline,s&&so[m("colorHovered",s)],c&&so[m("colorPressed",c)]),to:l,onPress:t,language:o,...i,children:n})}function Jh(e){try{const n=new URL(e,window.location.origin).protocol.replace(":","");return Qh.has(n)?e:"#"}catch{return e}}
5const it={base:0,small:750,medium:1e3,large:1200};function Kh({addMaxWidth:e}={addMaxWidth:!0}){return Object.entries(it).map(([o,n],t,a)=>{const i=a[t+1],[,s]=i||[],c=s&&e?`(min-width: ${n}px) and (max-width: ${s-1}px)`:`(min-width: ${n}px)`;return{breakpoint:o,query:c}})}function Zh(){const e=z(()=>Kh(),[]),o=w(()=>{const a=e.find(({query:i})=>window.matchMedia(i).matches);return a?a.breakpoint:void 0},[e]),[n,t]=M(o());return R(()=>{const a=()=>{const i=o();n!==i&&t(i)};return a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[n,o,e]),n}function em(e){const o=Zh();return om(e,o)}function om(e,o){if(!o)return;if(e[o]!==void 0)return e[o];const n=Object.keys(it),t=n.indexOf(o);for(let a=t;a>=0;a--){const i=n[a];if(e[i]!==void 0)return e[i]}}function Yo(e,o=10){return`${e/o}rem`}function Vo(e){return e>1?Yo(e):`${e*100}%`}const po=` 6 a[href], 7 area[href], 8 input:not([type="hidden"]):not([disabled]):not([tabindex="-1"]), 9 select:not([disabled]), 10 textarea:not([disabled]), 11 button:not([disabled]):not([tabindex="-1"]), 12 iframe, 13 object, 14 embed, 15 [tabindex="0"], 16 [contenteditable], 17 audio[controls], 18 video[controls]`;function nm(e,o=!0){return!o&&e.matches(po)?e:e.querySelector(po)}function tm(e,o=!0){if(!o&&e.matches(po))return e;const n=e.querySelectorAll(po);return n[n.length-1]}const rm="YqJKm",En={Bumper:rm},am=({children:e,onContainerFocus:o})=>{const n=I(null),t=I(null),a=I(null);ho(()=>{a.current?.focus({preventScroll:!0})},[]);const i=s=>{const c=a.current;if(c){const l=s?nm(c):tm(c);l?l.focus():c.focus()}};return r(U,{children:[r("button",{className:En.Bumper,ref:n,"aria-hidden":"true",onFocus:()=>i(!1),type:"button"}),Vr(e,{tabIndex:-1,ref:a,onFocus:o}),r("button",{className:En.Bumper,ref:t,"aria-hidden":"true",onFocus:()=>i(!0),type:"button"})]})},im="_31OOl",sm={Portal:im},cm="PortalHost",lm=ve("Portal");function st({children:e}){const[o,n]=M(null),t=Se(void 0,lm);return R(()=>{const a=document.getElementById(cm)??document.body,i=document.createElement("div");return i.setAttribute("id",t),i.setAttribute("class",sm.Portal),a.appendChild(i),n(i),()=>{a.removeChild(i)}},[t]),o&&Gr(e,o)}const dm="CzBEl",um="bUMzc",gm="PfnJm",pm="Zqwd3",hm="CjXfl",mm="Eep2v",bm="_9bDa6",vm="IfNYu",ge={Backdrop:dm,Dialog:um,transitionEntered:gm,Modal:pm,Content:hm,"Dialog-blockSizeFill":"JOey5",IFrame:mm,Header:bm,CloseButton:vm},Sm=ve("ModalHeading"),fm=-1;function Bm({maxInlineSize:e,blockSize:o,open:n,title:t,titleHidden:a,source:i,noMountTransition:s=!1,children:c,...l}){const g=l.blocking,d=l.blocking?void 0:l.onClose,u=no(),[p,h]=M(),b=I(null),v=I(null),f=Se(void 0,Sm),B=Uo(n,"fast",!s),P=ge[m("transition",B)],_=em({base:!0,medium:!1});R(()=>{B==="enter"&&(document.body.style.overflow="hidden",b.current=document.activeElement),B==="exited"&&(document.body.style.overflow="auto",b?.current instanceof HTMLElement&&b.current.focus(),h(void 0))},[B]),R(()=>()=>{document.body.style.overflow="auto"},[]);const W=()=>{setTimeout(()=>{v.current?.scrollTo(0,0)},0)};R(()=>{const k=L=>{(L.key==="Escape"||L.key==="Esc")&&!g&&d?.()};return document.addEventListener("keydown",k,!1),()=>{document.removeEventListener("keydown",k,!1)}},[g,d]);const D=w(k=>{const L=k.target;if(L&&L.contentWindow)try{h(L.contentWindow.document.body.scrollHeight)}catch{h(fm)}},[]);function N(){d?.()}if(B==="exited")return null;const A=a?{"aria-label":t}:{"aria-labelledby":f},$=a?r("span",{}):r(vo,{level:1,id:f,children:t}),T=(!a||!g)&&r("header",{className:ge.Header,children:[$,!g&&r("button",{type:"button",className:ge.CloseButton,onClick:d,"aria-label":u("close")||"Close",children:r(we,{source:"close",size:"large"})})]}),x=i?r("iframe",{src:i,title:t,className:ge.IFrame,...p&&p>0&&{style:{height:p}},...!o&&{onLoad:D}}):r("div",{className:ge.Content,...(o||_)&&{tabIndex:0},children:c});return r(st,{children:r("div",{className:ge.Modal,ref:v,children:[r("div",{className:S(ge.Backdrop,P),onClick:N}),r(am,{onContainerFocus:W,children:r("div",{className:S(ge.Dialog,P,{[ge["Dialog-blockSizeFill"]]:o==="fill"||p===-1}),role:"dialog","aria-modal":!0,style:{...e&&{maxWidth:Vo(e==="fill"?1:e)}},...A,children:[T,x]})})]})})}function ym({checked:e,onChange:o,error:n,policy:t}){return t==="subscriptions"?r(km,{checked:e,onChange:o,error:n}):null}function km({checked:e,onChange:o,error:n}){const[t,a]=M(!1),i=no(),{merchantPolicies:s}=Aa(),c=s?.find(d=>d.handle==="subscription-policy"),l=i("subscription.cancelled");return r(U,{children:[r(rt,{name:"subscription_agreement",checked:e,onChange:o,error:n,children:i("subscription.agreement",{cancelled:c?r(at,{onPress:()=>a(!0),children:l}):l})}
18),c&&r(Bm,{open:t,title:i("subscription.policy"),source:c.url,onClose:()=>a(!1)})]})}const Tm="SOPT0",Em="nKTUa",xm="fGe9g",Im="fhec3",$o={CalloutBanner:Tm,borderBlock:Em,backgroundSecondary:xm,backgroundTransparent:Im};function Pm({title:e,children:o,border:n="block",background:t="secondary",alignment:a="center",spacing:i="tight"}){const s=e&&r(vo,{level:3,children:e});return r("div",{className:S($o.CalloutBanner,n&&$o[m("border",n)],t&&$o[m("background",t)]),role:"status","aria-atomic":"true","aria-live":"polite",children:r(So,{alignment:a==="leading"?void 0:a,spacing:i,children:r(mo,{children:[s,r(eo,{children:o})]})})})}const Lm="_9o02B",Cm={Form:Lm};function wm({onSubmit:e,children:o,disabled:n=!1,implicitSubmit:t=!0}){const a=no(),i=t===!1?null:r(ze,{children:r("button",{type:"submit",disabled:n,tabIndex:-1,"aria-hidden":!0,children:typeof t=="string"?t:a("submit")})});return r("form",{action:"",method:"POST",noValidate:!0,onSubmit:s=>{n||(s.preventDefault(),e())},className:Cm.Form,children:[o,i]})}const Rm="_4uFg4",Mm="Zroh1",xn={Group:Rm,spacingTight:Mm};function _m({children:e}){const{formLayout:{spacing:o}}=Q();return r(fo,{spacing:o==="base"?void 0:o,children:e})}function Nm({children:e}){const{formLayout:{spacing:o}}=Q();return r("div",{className:S(xn.Group,o&&o!=="base"&&xn[m("spacing",o)]),children:e})}const Am="oiNTK",$m="ENwjc",zm="Kkl3o",Dm="_9HP9S",Fm="LHbWP",go={Image:Am,bordered:$m,aspectRatio:zm,fitContain:Dm,fitCover:Fm},Wm=new Map([["small","(max-width: 600px)"],["medium","(max-width: 1200px)"],["large","(min-width: 1201px)"]]);function Om({source:e,sources:o,description:n="",fit:t,bordered:a,loading:i,aspectRatio:s,decorative:c}
18){const l=[],g=o&&o.reduce((u,{source:p,viewportSize:h,resolution:b})=>{const v=h&&Wm.get(h),f=u.find(({media:P})=>v===P),B=[p,b&&`${b}x`].join(" ").trim();return f?(f.srcSet+=`, ${B}`,u):[...u,{media:v,srcSet:B}]},l).map(u=>r("source",{...u})),d=S(go.Image,a&&go.bordered,t&&go[m("fit",t)]);return r(Hm,{condition:c===!0,children:r(qm,{condition:s!=null,aspectRatio:s,children:r(Um,{condition:g!=null,children:[g,r("img",{src:e,alt:n,className:d,loading:i})]})})})}function Hm({children:e,condition:o}){return o?r(yo,{children:e}):r(U,{children:e})}function qm({children:e,condition:o,aspectRatio:n}){return o?r("div",{className:go.aspectRatio,style:{paddingBottom:`calc(100% / ${n})`},children:e}):r(U,{children:e})}function Um({children:e,condition:o}){return o?r("picture",{children:e}):r(U,{children:e})}const jm="HZoss",Ym="XarlU",Vm="YTxaJ",Gm="_9qVBD",Xm="F2fuL",Qm="VjRYe",Me={Layout:jm,blockAlignmentTrailing:Ym,blockAlignmentCenter:Vm,inlineAlignmentLeading:Gm,inlineAlignmentTrailing:Xm,LayoutInner:Qm,"LayoutInner-inlineAlignmentLeading":"_8Bkjq","LayoutInner-inlineAlignmentTrailing":"fITy1"},In=new Map([["small","@media all and (max-width: 749px)"],["medium","@media all and (min-width: 750px) and (max-width: 1199px)"],["large","@media all and (min-width: 1200px)"]]),Jm=ve("Layout");function Km({inlineAlignment:e,blockAlignment:o,maxInlineSize:n,sizes:t,media:a,children:i}){const s=Se(void 0,Jm),c=`.${s} > .${Me.LayoutInner}`,l=S(Me.Layout,s,o&&Me[m("blockAlignment",o)],e&&Me[m("inlineAlignment",e)]),g=S(Me.LayoutInner,e&&Me[m("LayoutInner-inlineAlignment",e)]),d={viewportSize:"default",sizes:t,maxInlineSize:n},u=a?Pn(c,[d,...a]):Pn(c,[d]);return r(U,{children:r("div",{className:l,children:[r("style",{children:u}),r("div",{className:g,children:i})]})})}function Zm(e,o){return o.reduce((n,t,a)=>{const i=t==="fill",s=typeof t!="number",c=typeof t=="number"?Vo(t):"auto",l=` 19 ${e} > :nth-child(${a+1}) { 20 flex: ${i?"1":"0"} ${s?"1":"0"} ${c}; 21 max-width: ${c}; 22 } 23 `;return[n,l].join(" ")},"")}function Pn(e,o){return o.reduce((n,{viewportSize:t,maxInlineSize:a,sizes:i})=>{const s=i&&Zm(e,i),c=i?.includes(1)?`${e} { flex-wrap: wrap; }`:"",l=a?`${e} { max-width: ${Vo(a)}; }`:"",g=[s,c,l],d=t==="default"||typeof In.get(t)>"u"?g:[In.get(t),"{",...g,"}"];return[n,...d].join(" ")},"")}const eb="tstNy",ob="c0kTe",nb="fOxEo",tb="_8G4jN",ae={Wrapper:eb,Radio:ob,Input:nb,"Input-sizeBase":"EY8QG","Input-sizeLarge":"TxORn","Input-checkedStyleRing":"_9tjNu","Input-checkedStyleDisc":"oQ4o1","Input-checkedColorInteractive":"WuWVP","Input-c
23heckedColorPrimary":"s0SXQ","Input-isDisabled":"aQaN9","Input-backgroundSurfacePrimary":"HG87V","Input-backgroundSurfaceSecondary":"MZDuc","Input-backgroundSurfaceTertiary":"rED7c","Input-backgroundTransparent":"ENiw1","Input-borderColorEmphasized":"Mexwm",Label:tb,"Label-isDisabled":"UJrFL"},rb=ve("Radio");function ab({id:e,accessibilityLabel:o,children:n,disabled:t,...a}){const i=Se(e,rb),s=S(ae.Label,t&&ae["Label-isDisabled"]);return r("div",{className:ae.Wrapper,children:[r(ib,{id:i,disabled:t,...a}),r("label",{htmlFor:i,className:s,children:o?r(U,{children:[r(ze,{children:o}),r(yo,{children:n})]}):n})]})}const ib=({id:e,name:o,value:n=!1,checked:t=n,disabled:a,onChange:i})=>{const{controls:{background:s},radio:{background:c,borderColor:l="base",checkedStyle:g="ring",checkedColor:d="interactive",size:u="base"}}=Q(),p=c||s||"surfaceTertiary",h=S(ae.Input,a&&ae["Input-isDisabled"],ae[m("Input-size",u)],ae[m("Input-background",p)],ae[m("Input-borderColor",l)],ae[m("Input-checkedStyle",g)],ae[m("Input-checkedColor",d)]);return r("div",{className:ae.Radio,children:r("input",{type:"radio",id:e,name:o,checked:t,disabled:a,onChange:({currentTarget:b})=>{i?.(b.checked)},className:h})})},sb=new Map([["telephone","tel"],["credit-card","cc"],["birthday","bday"],["expiry","exp"],["security-code","csc"],["instant-message","impp"]]);function ct(e){if(e==null)return;if(e===!1)return"none";if(e===!0)return"on";const{group:o,field:n}=e,t=n.replace(/(?:telephone|credit-card|expiry|security-code|instant-message)/g,a=>sb.get(a)??a);return o?`${o} ${t}`:t}const cb="wgIZT",lb="g0VDz",db="gIDtT",ub="R5x0Q",gb="_5twot",pb="zrFpd",hb="pGVcI",mb="GhrMi",bb="_8z3Vh",vb="yHciV",Sb="hEwEw",fb="ZfTam",Bb="wUae1",_e={Text:cb,subdued:lb,emphasized:db,appearanceAccent:ub,appearanceSuccess:gb,appearanceWarning:pb,appearanceCritical:hb,sizeXsmall:mb,sizeSmall:bb,sizeMedium:vb,sizeLarge:Sb,sizeXlarge:fb,Abbr:Bb};function ko({children:e,size:o,emphasized:n,subdued:t,appearance:a,role:i,style:s,id:c}){const l=S(_e.Text,n&&_e.emphasized,n&&Ce,t&&_e.subdued,t&&Ae,o&&_e[m("size",o)],a&&_e[m("appearance",a)],a&&a==="accent"&&$e,s&&Z[s]),g=n?r("strong",{children:e}):e,d={className:l,id:c};if(typeof i=="string")switch(i){case"address":return r("address",{...d,children:g});case"deletion":return r("del",{...d,children:g});default:throw new pe("Invalid Textâs role")}if(typeof i=="object")switch(i.type){case"abbreviation":return r("abbr",{defaultProps:d,className:S(l,_e.Abbr),title:i.for,children:g});case"directional-override":return r("bdo",{...d,dir:i.direction,children:g});case"datetime":return r("time",{...d,dateTime:i.machineReadable,children:g});default:throw new pe("Invalid Textâs role")}return r(n?"strong":"span",{...d,children:e})}const yb="UOOjT",kb="uXhbj",Ln={Truncate:yb,variationEllipsis:kb};function lt({children:e,variation:o="ellipsis"}){return r("span",{className:S(Ln.Truncate,o&&Ln[m("variation",o)]),children:e})}const Tb="zvnsh",Eb="XzyTi",xb="kt285",Ib="_8ky8x",Pb="fpvwY",O={Wrapper:Tb,Label:Eb,"Label-positionInside":"LTf4Q","Label-onBackgroundSurfacePrimary":"_4C7ll","Label-onBackgroundSurfaceSecondary":"ZbP0Y","Label-onBackgroundSurfaceTertiary":"eeIkA","Label-positionOutside":"ukV2A","Label-isPlaceholder":"EESHa",Select:xb,"Select-labelOutside":"jh8xU","Select-labelInline":"NSJFm","Select-backgroundTransparent":"a3I80","Select-backgroundSurfacePrimary":"ZAVmF",Selector:Ib,"Selector-borderColorEmphasized":"IBq5Q","Select-backgroundSurfaceSecondary":"IdVUz","Select-backgroundSurfaceTertiary":"kyrIc","Select-borderNone":"HsEAL","Select-focusBorderFull":"rDBCs",hasError:Pb,"Select-focusBorderBlockEnd":"_3OFrW","Select-borderFull":"TxjZ0","Select-borderBlockEnd":"UvvoM","Select-borderColorEmphasized":"_5ZuhZ","Select-isDisabled":"VWkGa","Select-isReadOnly":"OA8Hj","Selector-separated":"JxZDR","Error-errorIndentationToText":"RbVkf"},Ge="",Lb=ve("Select");function Cb({id:e,name:o,label:n,options:t,value:a=Ge,disabled:i,readonly:s,required:c,error:l,autocomplete:g,placeholder:d,onChange:u}){const{controls:{background:p},select:{labelPosition:h="inside",background:b,border:v="full",borderColor:f="base",focu
23sBorder:B="full",disclosureIcon:P="caretDown",disclosureIconSeparator:_=!0,typographyStyle:W,errorIndentation:D,errorTypographyStyle:N},label:{typographyStyle:A}}=Q(),$=Se(e,Lb),T=b||p||"surfaceTertiary",x=l&&r("span",{className:S(D&&O[m("Error-errorIndentation",D)],N&&Z[N]),children:r(jo,{controlID:$,children:l})}),k=S(O.Select,!!l&&O.hasError,i&&O["Select-isDisabled"],s&&O["Select-isReadOnly"],O[m("Select-label",h)],O[m("Select-background",T)],O[m("Select-border",v)],O[m("Select-borderColor",f)],O[m("Select-focusBorder",B)],W&&Z[W]),L=r("label",{className:S(O.Label,O[m("Label-position",h)],{[O["Label-isPlaceholder"]]:a===Ge&&d===n},O[m("Label-onBackground",T)]),htmlFor:$,children:r(ko,{size:!(a===Ge&&d===n)||h==="inside"?"small":void 0,subdued:!0,style:A,children:r(lt,{children:n})})}),q=r("div",{children:[h==="outside"?L:null,r("div",{className:O.Wrapper,children:[h==="inside"&&L,r("select",{name:o,id:$,disabled:i,onChange:F=>u?.(F.target.value),required:c,value:a,className:k,"aria-describedby":l?Bo($):void 0,"aria-invalid":!!l,autoComplete:ct(g),children:[d&&(a===Ge||d!==n)&&r("option",{value:Ge,hidden:d===n,disabled:!0,children:d===n?r(U,{children:"Â "}):d}),t.map(F=>r("option",{value:F.value,disabled:F.disabled||s,children:F.label},F.value))]}),r("div",{className:S(O.Selector,_&&O["Selector-separated"],_&&O[m("Selector-borderColor",f)]),children:r(we,{source:P,size:"small"})})]})]});return r(fo,{spacing:"tight",children:[q,x]})}const wb="AHJia",Rb="nHtsq",Mb="_2xVXH",Cn={Separator:wb,directionHorizontal:Rb,directionVertical:Mb},wn={thin:"1px",medium:"3px",thick:"5px",xthick:"10px"};function _b({width:e="thin",direction:o="horizontal"}){const n={horizontal:{borderBottomWidth:wn[e]},vertical:{borderRightWidth:wn[e]}};return r("div",{className:S(Cn.Separator,Cn[m("direction",o)]),style:n[o]})}const Nb=De(!1),Ab="jeX3G",$b="KIbI9",zb="_4T5X4",Db="V7LhS",Fb="ZWtpk",Wb="_87JsI",Ob="JjQZa",Hb="N95rF",qb="dI6aB",Ub="EvsJm",jb="D0Aw4",Xe={TextBlock:Ab,subdued:$b,emphasized:zb,appearanceAccent:Db,appearanceSuccess:Fb,appearanceWarning:Wb,appearanceCritical:Ob,sizeSmall:Hb,sizeMedium:qb,sizeLarge:Ub,sizeXlarge:jb};function dt({children:e,size:o,emphasized:n,subdued:t,appearance:a,style:i,id:s}){const c=S(Xe.TextBlock,o&&Xe[m("size",o)],n&&Xe.emphasized,n&&Ce,t&&Xe.subdued,t&&Ae,a&&Xe[m("appearance",a)],a&&a==="accent"&&$e,i&&Z[i]),l=n?r("strong",{children:e}):e;return r(Nb.Provider,{value:!0,children:r("p",{className:c,id:s,children:l})})}function ut(e){return!e||e===""}const gt=De(void 0);function Yb(){const e=oo(gt);if(e==null)throw new pe("No labelled in context");return e}function Vb(){const e=I(!1);return R(()=>(e.current=!0,()=>{e.current=!1}),[]),e}const Gb="SxYag",Xb="j5nyn",Qb="nVJMC",Ne={Wrapper:Gb,"Label-positionInside":"fhPbt","Label-onBackgroundSurfacePrimary":"YSlfF","Label-onBackgroundSurfaceSecondary":"zCv2y","Label-onBackgroundSurfaceTertiary":"f4qYp","Label-isSubdued":"jir88","Label-positionOutside":"fjuC5",isFloating:Xb,Label:Qb};function Jb({children:e,label:o,htmlFor:n,isEmpty:t=!0,position:a="inside",background:i="surfaceTertiary",subdued:s}){const c=Vb(),[l,g]=Xr((v,f)=>{if(!c.current)return v;switch(f.type){case"focus":return{...v,isFocused:!0};case"blur":return{...v,isFloating:!v.isEmpty,isFocused:!1};case"change":return{...v,isFloating:!0,isEmpty:f.isEmpty};case"init":return{...v,isFloating:!f.isEmpty,isEmpty:f.isEmpty}}},{isEmpty:t,isFloating:!t,isFocused:!1});R(()=>{!l.isFocused&&l.isEmpty!==t&&g({type:"init",isEmpty:t})},[t]);const d=w(()=>g({type:"focus"}),[]),u=w(()=>g({type:"blur"}),[]),p=w(v=>g({type:"change",isEmpty:v}),[]),h=z(()=>({...l,onBlur:u,onChange:p,onFocus:d}),[u,p,d,l]),{label:{typographyStyle:b}}=Q();return r(gt.Provider,{value:h,children:r("div",{className:Ne.Wrapper,children:r("div",{className:S({[Ne.isFloating]:l.isFloating&&a==="inside"}),children:[r("label",{htmlFor:n,className:S(Ne.Label,Ne[m("Label-position",a)],s&&Ne["Label-isSubdued"],i&&Ne[m("Label-onBackground",i)]),children:r(ko,{size:"small",subdued:!0,style:b,children:r(lt,{children:o})})}),e]})})})}const pt=De(null);
23function ht(){const e=oo(pt);if(e===null)throw new pe("No Popper in context");return e}function Kb(){const[e,o]=M(null),n=w(t=>{t!==null&&o(t.getBoundingClientRect())},[]);return[e,n]}function Zb(e){const[o,n]=M(null),t=w(()=>{e!==null&&n(e.getBoundingClientRect())},[e]);return ho(()=>(t(),window.addEventListener("resize",t),window.addEventListener("scroll",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",t)}),[t]),o}const Rn=10;function ev({x:e,y:o}){const n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(o*n)/n||0}}function ov(e,o,n,{offset:t=0,preventOverflow:a=!1,sameInlineSize:i=!1}={}){let s={x:0,y:0},c={left:0,right:0},l=0;if(!o||!n)return{offsets:s,clipping:c,spacing:l};const g=i?n.left:n.left+n.width/2-o.width/2,d=n.top+n.height/2-o.height/2;switch(e){case"blockStart":s={x:g,y:n.top-o.height-t};break;case"blockEnd":s={x:g,y:n.bottom+t};break;case"inlineStart":s={x:n.left-o.width-t,y:d};break;case"inlineEnd":s={x:n.right+t,y:d};break}return a&&(c=nv(s,o),c.right&&!c.left&&(s.x+=c.right,l=-Rn),!c.right&&c.left&&(s.x=0,l=Rn)),{offsets:s,clipping:c,spacing:l}}function nv(e,o){const n=document.documentElement.clientWidth,t=e.x+o.width;let a={left:0,right:0};return t>n&&(a={...a,right:n-t}),e.x<0&&(a={...a,left:-e.x}),a}const tv="_6ruy3",rv={Popper:tv};function av({children:e,offset:o,placement:n="blockStart",preventOverflow:t,activator:a,sameInlineSize:i,minInlineSize:s}){const c=Zb(a),[l,g]=Kb(),{clipping:d,offsets:u,spacing:p}=z(()=>ov(n,l,c,{offset:o,preventOverflow:t,sameInlineSize:i}),[o,n,l,t,c,i]),h=z(()=>({clipping:d,offsets:u,placement:n,popperRect:l,referenceRect:c,spacing:p}),[d,u,n,l,c,p]),{x:b,y:v}=ev({x:u.x+p+(window.scrollX||window.pageXOffset),y:u.y+(window.scrollY||window.pageYOffset)}),f=(window.devicePixelRatio||1)<2?`translate(${b}px, ${v}px)`:`translate3d(${b}px, ${v}px, 0)`;return r(pt.Provider,{value:h,children:r(st,{children:r("div",{className:rv.Popper,style:{...c&&{transform:f,MozTransform:f,WebkitTransform:f,...i&&{width:c.width},...s&&{minWidth:Yo(s)}}},ref:g,children:e})})})}const iv="IbPNg",sv="nDyVA",cv="awl9J",lv="el1S2",dv="pLPLd",uv="RnX2a",gv="pmIGY",xe={Wrapper:iv,Button:sv,Tooltip:cv,transitionEntered:lv,transitionExit:dv,transitionExiting:uv,Arrow:gv,"Tooltip-backgroundSurfacePrimary":"_3yAoT","Tooltip-backgroundSurfaceSecondary":"eY5YR","Tooltip-backgroundSurfaceTertiary":"e7NEz","Tooltip-opacityTranslucent":"_8ekQS","Tooltip-opacityOpaque":"i34YA","Tooltip-borderRadiusNone":"_2saX4","Tooltip-borderRadiusTight":"_9T8DA","Tooltip-borderRadiusBase":"x1Cux","Tooltip-borderRadiusFullyRounded":"PhMp8"},pv=ve("Tooltip");function hv({content:e,children:o}){const[n,t]=M(!1),a=I(null),i=I(!1),s=Uo(n,{exit:"base"});function c(d){switch(d.key){case"Enter":case"Space":d.preventDefault(),t(u=>!u);break;case"Escape":case"Esc":d.preventDefault(),t(!1);break}}const l=Se(void 0,pv),g=n?l:void 0;return r("div",{className:xe.Wrapper,children:[r("button",{type:"button",className:xe.Button,"aria-pressed":n,"aria-controls":g,"aria-describedby":g,onFocus:()=>{i.current||t(!0)},onBlur:()=>{i.current||t(!1)},onMouseEnter:()=>{i.current||t(!0)},onMouseLeave:()=>{t(!1)},onTouchStart:()=>{i.current=!0},onClick:()=>{t(d=>!d)},onKeyDown:c,ref:a,children:o}),s!=="exited"&&r(av,{activator:a.current,preventOverflow:!0,children:r(mv,{content:e,id:g,onMouseEnter:()=>{i.current||t(!0)},onMouseLeave:()=>{t(!1)},transition:s})})]})}function mv({content:e,id:o,onMouseEnter:n,onMouseLeave:t,transition:a}){const{clipping:i,spacing:s}=ht(),{tooltip:{background:c,opacity:l="translucent",borderRadius:g="base",textAlignment:d="center"}}=Q(),u=(i.right||i.left)&&`calc(50% - ${(i.right||i.left)+s}px)`,p=S(xe.Tooltip,xe[m("transition",a)],xe[m("Tooltip-opacity",l)],xe[m("Tooltip-borderRadius",g)],c&&xe[m("Tooltip-background",c)]),h=d==="start"?"leading":d;return r("div",{id:o,role:"tooltip",onMouseEnter:n,onMouseLeave:t,className:p,style:{...u&&{transformOrigin:`${u} 120%`}},children:[r(So,{alignment:h,children:r(dt,{size:"small",children:e})}),r(bv,{})]})}function bv(){const{clipping:e,spacing:o}=ht(),n=(e.right||e.left)&&`calc(${document.dir==="ltr"?"-50":"50"}% - ${(e.right||e.left)+o}px)`,t=(window.devicePixelRatio||1)<2?`translate(${n}, 0)`:`translate3d(${n}, 0, 0)`;return r("div",{className:xe.Arrow,style:{...n&&{transform:t,MozTransform:t,WebkitTransform:t}}})}const vv="DH3Lj",Sv="IwgL6",fv="TBKkQ",Bv="ks0iI",J={Wrapper:vv,Field:Sv,"Field-isFloating":"_24ZCV","Field-hasTooltip":"PSuwk","Field-backgroundTransparent":"VpMLh","Field-backgroundSurfacePrimary":"pzNEy",Tooltip:fv,"Field-backgroundSurfaceSecondary":"SN65D","Field-backgroundSurfaceTertiary":"rm2lq","Field-borderNone":"zp5Uq","Field-focusBorderFull":"ud1CI",hasError:Bv,"Field-focusBorderBlockEnd":"ONy0r","Field-borderFull":"IbPFL","Field-borderBlockEnd":"K1c22","Field-borderColorEmphasized":"L9KMr","Error-errorIndentationToText":"_2Ei4t","Field-isDisabled":"QMBIY","Field-isReadOnly":"f8i8Y"},yv=ve("TextField"),kv=Fo(function(o,n){const{controls:{background:t},textFields:{labelPosition:a,background:i,errorIndentation:s,errorTypographyStyle:c}}=Q(),l=i||t||"surfaceTertiary",{accessibilityDescription:g,error:d,id:u,label:p,tooltip:h,value:b}=o,v=Se(u,yv),f=g?`${v}-description`:void 0,B=f?r(ze,{children:r(ko,{id:f,children:g})}
23):null,P=d&&r("span",{className:S(s&&J[m("Error-errorIndentation",s)],c&&Z[c]),children:r(jo,{controlID:v,children:d})}),_=h?r("div",{className:J.Tooltip,children:r(hv,{content:h.content,children:[r(ze,{children:h.label}),r(we,{source:"questionFill",size:"large",appearance:"subdued"})]})}):null;return r(fo,{spacing:"tight",children:[r(Jb,{label:p,htmlFor:v,isEmpty:ut(b),position:a,background:l,subdued:o.readonly,children:r("div",{className:J.Wrapper,children:[B,r(Tv,{ref:n,...o,id:v,ariaDescribedBy:f}),_]})}),P]})}),Tv=Fo(function({id:o,min:n,max:t,step:a,name:i,label:s,value:c,controlledValue:l,type:g="text",role:d,required:u,error:p,tooltip:h,autocomplete:b,autoFocus:v,multiline:f,disabled:B,readonly:P,ariaActiveDescendant:_,ariaAutocomplete:W,ariaControls:D,ariaDescribedBy:N,ariaExpanded:A,onFocus:$,onBlur:T,onChange:x,onInput:k,onKeyDown:L},q){const F=I(),se=w(oe=>{typeof q=="function"?q(oe):q&&(q.current=oe),F.current=oe},[q]);R(()=>{v&&F.current?.focus()},[v]);const{controls:{background:ne},textFields:{labelPosition:te="inside",background:ce,border:le="full",borderColor:Ie="base",focusBorder:C="full",typographyStyle:E},label:{typographyStyle:G}}=Q(),ee=ce||ne||"surfaceTertiary",j=Yb(),[ue,We]=Ev(l??c),To=S(J.Field,!!p&&J.hasError,!!h&&J["Field-hasTooltip"],j.isFloating&&te!=="outside"&&J["Field-isFloating"],B&&J["Field-isDisabled"],P&&J["Field-isReadOnly"],J[m("Field-background",ee)],J[m("Field-border",le)],J[m("Field-borderColor",Ie)],J[m("Field-focusBorder",C)],E&&Z[E],G&&Z[m("placeholder",G)]),Eo=[N,p&&Bo(o)].filter(Boolean).join(" ");return Qr(f?"textarea":"input",{id:o,min:n,max:t,step:a,name:i,placeholder:j.isFloating||te==="outside"?void 0:s,className:To,required:u,type:xv(f?void 0:g),disabled:B,readOnly:P,"aria-activedescendant":_,"aria-autocomplete":W,"aria-controls":D,"aria-describedby":Eo,"aria-expanded":A,"aria-invalid":!!p,"aria-required":u,onBlur:({currentTarget:{value:oe}})=>{oe!==(c??"")&&x?.(oe),T?.(),j.onBlur()},onChange({currentTarget:{value:oe}}){We(oe),typeof k=="function"&&k(oe),j.onChange(ut(oe))},onFocus:()=>{$?.(),j.onFocus()},onKeyDown:L,ref:se,role:d,value:ue,autoComplete:ct(b),autoFocus:v})});function Ev(e){const[o,n]=M(e),t=I(e);let a=o;return t.current!==e&&(t.current=e,n(e),a=e),[a,n]}function xv(e){return e==="telephone"?"tel":e}const Iv="WD2BB",Pv="zBxYI",Lv="oZ7y8",Cv="BuLdd",wv="_6g6G1",Rv="mW6Tc",Mv="_29xdS",_v="tTD6D",Nv="VzRf2",Av="_5v7xp",$v="CQtfp",zv="_3Pf9z",Qe={Tiles:Iv,spacingNone:Pv,spacingXtight:Lv,spacingTight:Cv,spacingLoose:wv,spacingXloose:Rv,alignmentLeading:Mv,alignmentCenter:_v,alignmentTrailing:Nv,alignmentBaseline:Av,doesNotWrap:$v,doesNotBreak:zv};function Dv({children:e,maxPerLine:o,breakAt:n,alignment:t,spacing:a}){const i=S(Qe.Tiles,a&&Qe[m("spacing",a)],t&&Qe[m("alignment",t)],o?void 0:Qe.doesNotWrap,n?void 0:Qe.doesNotBreak),s=o?`${100/o}%`:"0",c=n?Yo(n):"0";return r(eo,{children:r("div",{className:i,style:{"--tile-width":s,"--tiles-breakpoint":c},children:e})})}function Fv(e,{publicProps:o,notifyError:n,extension:t}){const a=e.displayName??e.name,i=s=>{const c={},{children:l}=s;for(const d of o){const u=s[d];typeof u=="function"?c[d]=async function(...h){try{return await u.apply(this,h)}catch(b){n(new wa(`Error in ${a} component event handler: ${b}`,{cause:b}))}}:c[d]=u}const g=Ov(e,t,c);return r(e,{...g,children:l})};return i.displayName=`Extension(${a})`,i}const co=new WeakMap,Wv=new Set([ga,Ca]);function Ov(e,o,n){const{id:t}=n;if(t&&o&&Wv.has(e)){const{onOpen:a,onClose:i}=n;return{...n,onOpen:()=>{a?.(),co.has(o)||co.set(o,new Set),co.get(o)?.add(t)},onClose:()=>{i?.(),co.get(o)?.delete(t)}}}return n}function Hv({notifyError:e}){const o=(n,t)=>Fv(n,{publicProps:t,notifyError:e});return{Banner:o(Op,["collapsible","iconHidden","status","title"]),BlockStack:o(fo,["alignment","spacing"]),Bookend:o(Zn,["alignment","leading","spacing","trailing"]),Button:o(nt,["disabled","loading","loadingLabel","onPress","plain","subdued","submit","to"]),ButtonGroup:o(Ch,[]),BuyerConsent:o(ym,["checked","error","onChange","policy"]),CalloutBanner:o(Pm,["alignment","background","border","spacing","t
23itle"]),Checkbox:o(rt,["accessibilityLabel","checked","disabled","error","id","name","onChange","value"]),Form:o(wm,["disabled","implicitSubmit","onSubmit"]),FormLayout:o(_m,[]),FormLayoutGroup:o(Nm,[]),Heading:o(vo,["id","level","role"]),HeadingGroup:o(mo,[]),HiddenForAccessibility:o(yo,[]),Image:o(Om,["aspectRatio","bordered","decorative","description","fit","loading","source","sources"]),InlineStack:o(tt,["alignment","spacing"]),Layout:o(Km,["blockAlignment","inlineAlignment","maxInlineSize","media","sizes"]),Link:o(at,["external","id","onPress","to"]),Radio:o(ab,["accessibilityLabel","checked","disabled","id","name","onChange","value"]),Select:o(Cb,["autocomplete","disabled","error","id","label","name","onChange","options","placeholder","required","value"]),Separator:o(_b,["direction","width"]),Spinner:o(ot,["color","size"]),Text:o(ko,["appearance","emphasized","id","role","size","subdued"]),TextBlock:o(dt,["appearance","emphasized","id","size","subdued"]),TextContainer:o(So,["alignment","spacing"]),TextField:o(kv,["autocomplete","error","id","label","multiline","name","onBlur","onChange","onFocus","onInput","required","tooltip","type","value"]),Tiles:o(Dv,["alignment","breakAt","maxPerLine","spacing"]),View:o(eo,["blockPadding","inlinePadding"]),VisuallyHidden:o(ze,[])}}function qv({input:e,scriptUrl:o,onError:n,onStopwatchMark:t,developmentMode:a,liveReload:i}){const[s,c]=M(!1),l=z(()=>Pa(t),[t]);ra("post-purchase",{pageWasPainted:s});const{client:g,observability:d}=me(),u=z(()=>Hv({notifyError(f){d.error(f)}}),[d]),p=I(null),h=I(null),b=z(()=>cs(u),[u]),v=w(()=>{const f=Kr();let B=!1,P=!1,_=null;p.current=f;const W=f.on("mount",()=>{W(),c(!0),l.mark("firstContentfulRenderCompleted")}),D=()=>{P||(P=!0,Zr(_))},N=()=>{B||(B=!0,W(),D(),h.current===N&&(h.current=null))};return h.current=N,(async()=>{let A="load",$=Date.now();const T=x=>{d.log("post_purchase_extension_lifecycle",`[PostPurchase] Extension ${A} ${x}`,{phase:A,status:x,duration:x==="started"?void 0:Date.now()-$})};try{const x=ya({createMessenger:ka(g,d)});if(_=x,T("started"),await x.load(o),B||(T("completed"),l.mark("loaded"),A="render",$=Date.now(),T("started"),await x.render("Checkout::PostPurchase::Render",f.receive,Object.keys(u),e),B))return;T("completed"),l.mark("initialRenderCompleted"),A="setup",$=Date.now(),T("started");async function k(){a&&(N(),c(!1))}Jr(x,{reload:k}),a&&i&&La(i,k),T("completed")}catch{if(B)return;T("failed"),N(),n?.()}})(),W},[]);return R(()=>()=>{h.current?.()},[]),R(()=>{if(!s)return v()},[s,v]),!s||!p.current?null:r(ts,{controller:b,receiver:p.current})}const Uv={id:"56603286faf7c2fc6279ae9d974501bd8ada653472e6a1cb5f0cc17e51ce66f7",type:"mutation",name:"PostPurchaseDone",source:""};function mt(e){const{client:o,checkout:n,observability:t,graphql:{coreGraphql:a}}=me(),i=n.latestReceipt.value,s=o.unstable_getSerialization("sessionToken"),{postPurchaseInquiryStatus:c}=aa(),l=w(()=>{c.value="done"},[c]);return async g=>{const d=Date.now(),u=(p,h,b=d)=>{t.log("post_purchase_done_lifecycle",`[PostPurchase] Done ${p} ${h}`,{trigger:g,phase:p,status:h,duration:h==="started"?void 0:Date.now()-b})};if(u("started","started"),i?.status!=="processed"||!s){u("completed","skipped");return}if(i.redirectUrl)u("receipt_poll","skipped");else{const p=Date.now();u("receipt_poll","started",p);const{data:h,error:b}=await a.staticQuery(pa,{cache:!1,variables:{receiptId:i.id,sessionToken:s}});if(u("receipt_poll",b?"failed":"completed",p),!b&&h?.receipt?.__typename==="ProcessedReceipt"){const v=Ra(h.receipt,{});n.unstable_overwriteLatestReceipt(v)}}a.mutate(Uv,{variables:{receiptId:i.id,sessionToken:s}}),u("mutation_dispatched","completed"),e?.onComplete?.(),e?.wait&&await Mn(500),l(),u("completed","completed")}}function jv(){const e=ha(),o=e.configuration.colors,n=o.global,t=o.schemes?.scheme1,a=o.schemes?.scheme2,s=t?.control?.background!=null&&Qo(t.control.background)||a?.control?.background!=null&&Qo(a.control.background)?"transparent":"color3";return z(()=>Za({colors:{primaryAction:{background:V(n?.brand)},secondaryAction:{foreground:V(n?.brand)},tertiaryAction:{},interactive:{foreground:V(n?.accent)},info:{accent:V(n?.info)},success:{accent:V(n?.success)},warning:{accent:V(n?.warning)},critical:{accent:V(n?.critical)},canvas:{background:V(t?.base?.background),foreground:V(t?.base?.text),accent:V(t?.base?.accent)},surfacePrimary:{background:V(t?.base?.background),foreground:V(t?.base?.text),accent:V(t?.base?.accent)},surfaceSecondary:{background:V(a?.base?.background),foreground:V(a?.base?.text),accent:V(a?.base?.accent)},surfaceTertiary:{},color1:{},color2:{}},typographyPrimary:e.configuration.typographyPrimary??{},typographySecondary:e.configuration.typographySecondary??{},controls:{background:s},textFields:e.configuration.textField??{},select:e.configuration.select??{},optionList:{background:s},reviewBlock:{background:s}}),[s,e.configuration.select,e.configuration.textField,e.configuration.typographyPrimary,e.configuration.typographySecondary,n,t,a])}function V(e){if(!(typeof e>"u"))return[e.h,e.s,e.l]}
23class Yv extends Error{constructor(o){super(o??"Post purchase page failed to render due to missing receipt"),this.name="PostPurchaseMissingProcessedReceiptError"}}const Vv=$n(({checkout:e,client:o,graphql:{coreGraphql:n},observability:t},{developmentOptions:a})=>{const i=o.unstable_getSerialization("sessionToken"),s=Le(()=>e.latestReceipt.value?.id),c=Le(()=>e.latestReceipt.value?.status!=="processed"||!i),l=n.query(Dn,{variables:()=>({input:{forRender:{receiptId:s.value,sessionToken:i,developmentOptions:a}}}),skip:()=>c.value});let g=!1;return zo(()=>{const d=e.latestReceipt.value;if(!c.value||g)return;const u=setTimeout(()=>{t.error(new Yv,{severity:"error",metadata:{app:{receiptId:d?.id,receiptStatus:d?.status,typeofReceipt:typeof d,typeofSessionToken:typeof i}}}),g=!0},2e3);return()=>{clearTimeout(u)}}),{data:l.data,error:l.error,invalidResult:Le(()=>c.value||!!l.error.value||l.data.value?.postPurchaseData.__typename==="PostPurchaseDataFailed"),loading:l.loading}}),Gv={errors:[{code:"payment_required",message:"Timed out while processing the 3DS challenge modal."}],status:"partially_processed"},Xv={errors:[{code:"payment_required",message:"Timed out while processing the payment."}],status:"partially_processed"};function v1(){const{checkout:e,observability:o}=me(),n=e.latestReceipt.value,t=mt();fa({stage:Ba.Complete,id:"PostPurchase"});const{developmentOptions:a}=Wo(),{data:i,error:s,invalidResult:c,loading:l}=zn(Vv,{developmentOptions:a});if(R(()=>{c.value&&(s.value&&o.log("post_purchase_graphql_request_failed","Post purchase GraphQL request failed with error",{error:s.value.message,receiptId:n?.id,receiptStatus:n?.status}),i.value?.postPurchaseData.__typename==="PostPurchaseDataFailed"&&o.log("post_purchase_graphql_request_failed",`Post purchase GraphQL request failed with code: "${i.value.postPurchaseData.code}"`,{data:JSON.stringify(i.value.postPurchaseData),receiptId:n?.id,receiptStatus:n?.status}),t("invalid_data"))},[t,c.value,s.value,i.value,o,n]),l.value||!i.value||c.value)return null;const g=i.value.postPurchaseData;return r(Qv,{data:g})}function Qv({data:e}){const{checkout:o,shop:n,source:t,i18n:a,observability:i}=me(),s=jv(),c=zi(),{developmentMode:l,liveReload:g}=Wo(),d=ea(()=>Ni(o.latestReceipt.value)),u=z(()=>({app:e.appId}),[e.appId]),[p,h]=M(Date.now()),b=z(()=>new oa({locale:a.locale,currency:a.currency,timeZone:a.timeZone},{close:a.translate("post_purchase.components.close"),expand:a.translate("post_purchase.components.expand"),submit:a.translate("post_purchase.components.submit"),processing:a.translate("post_purchase.components.processing"),subscription:{cancelled:a.translate("payment.subscription_agreement_cancelled"),agreement:a.translate("payment.subscription_agreement_label"),policy:a.translate("shop_policies.subscription_policy")}}),[a]),v=z(()=>b.translate.bind(b),[b]),f=z(()=>Ta({extensionId:e.appId,sourceId:t.sourceId}),[e.appId,t.sourceId]),B=mt({onComplete:f.delete,wait:!!n.postPurchase.additionalTrackingScript}),P=w(()=>B("extension"),[B]),_=w(()=>B("header"),[B]),W=z(()=>f.read(),[f]),D=z(()=>JSON.parse(e.inputData),[e.inputData]),[N,A]=M(void 0),$=ma({source:N,logMessage:"[PostPurchase] Action required modal iframe loaded; this does not prove issuer challenge rendered",telemetryContext:{modalSourceType:"post_purchase_three_ds_modal_url"}}),[T,x]=M(void 0);R(()=>{if(T)return window.addEventListener("message",T),()=>window.removeEventListener("message",T)},[T]);const k=w(()=>{A(void 0),x(void 0)},[]),L=I(mn()),q=w(()=>{L.current=mn()},[]),F=n.hasFlagEnabled(ia),se=w(()=>{try{if(typeof window?.PAYPAL?.asyncData?.initAndCollect=="function")window.PAYPAL.asyncData.initAndCollect();else throw new Mo("PayPal global is not available")}catch(C){const E=C instanceof Error?C.message:`${C}`;i.error(new Mo(E,{cause:C}),{severity:"error",errorClass:Mo.name})}},[i]),ne=w((C,E)=>(A(C.redirectUrl),new Promise(G=>{const ee=setTimeout(()=>{k(),G({...Gv,changesetApplicationsRemaining:C.changesetApplicationsRemaining})},ba),j=async({data:ue})=>{if(ue.type===va){clearTimeout(ee),k();const We=await c.appliedChangeset(E);h(Date.now()),G(We)}};x(()=>j)})),[c,k]),te=w(async(C,E)=>{let G=Date.now(),ee=0,j=C,ue=!1;for(;!ue;){if(Li(j))j=await ne(j,E),ee=0,G=Date.now();else if(Ci(j))ee+=1,await Ri(ee),j=await c.appliedChangeset(E);else break;ue=Pi<=Date.now()-G}return ue?(i.counter({name:"PostPurchase_page_async_payment_polling_timeout",value:1,attributes:u}),{...Xv,changesetApplicationsRemaining:C.changesetApplicationsRemaining}):(ee>0&&i.histogram({name:"PostPurchase_page_async_payment_polling_duration",value:Date.now()-G,attributes:u}),h(Date.now()),j)},[c,ne,i,u]),ce=w(async(C,E)=>{let G=E;F&&d.value&&(se(),G={...E,paymentGatewaySessionId:L.current});const ee=await c.applyChangeset(C,G);return q(),te(ee,C)},[c,F,d,q,se,te]),le=w(({mark:C,timestamps:E={}})=>{switch(C){case"loaded":{C==="loaded"&&E.loaded&&i.histogram({name:"PostPurchase_page_sandbox_duration",value:E.loaded,attributes:u});break}case"initialRenderCompleted":{E.initialRenderCompleted&&E.loaded&&i.histogram({name:"PostPurchase_page_initial_render_duration",value:E.initialRenderCompleted-E.loaded,attributes:u});break}case"firstContentfulRenderCompleted":E.firstContentfulRenderCompleted&&E.loaded&&i.histogram({name:"PostPurchase_page_first_contentful_render",value:E.firstContentfulRenderCompleted-E.loaded,attributes:u}),window.performance&&i.histogram({name:"PostPurchase_page_time_to_first_render",value:performance.now(),attributes:u})}},[i,u]),Ie=w(()=>{i.counter({name:"PostPurchase_page_uncaught_client_error",value:1,attributes:u}),B("extension_error")},[B,i,u]);return r(es,{onHeaderClick:_,children:[r(Sa,{source:N,title:a.translate("processing.action_required"),onIframeLoad:$}),r(_a,{translate:v,shop:n,children:r(xi,{theme:s,children:r(qv,{developmentMode:l,onStopwatchMark:le,onError:Ie,scriptUrl:e.scriptUrl,liveReload:g,input:{done:P,locale:a.locale,inputData:D,applyChangeset:ce,calculateChangeset:c.calculateChangeset,extensionPoint:"Checkout::PostPurchase::Render",version:"unstable",storage:{initialData:W,update:f.write}}})})}
23),r(na,{when:d,children:r(Ji,{shopId:D.shop.id,checkoutSessionIdentifier:D.initialPurchase.referenceId,paymentGatewaySessionId:L.current,fraudnetMultioffersEnabled:F})}),r(Vi,{lastChangeTimestamp:p})]})}export{Qv as PostPurchaseInner,v1 as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.