@everfur/sdk 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/care/index.cjs +2 -2
  2. package/dist/care/index.js +2 -2
  3. package/dist/chat/index.cjs +235 -234
  4. package/dist/chat/index.js +311 -310
  5. package/dist/chat/lite/index.cjs +339 -338
  6. package/dist/chat/lite/index.js +314 -313
  7. package/dist/{chunk-NBAOR5TJ.js → chunk-2T5CB5MW.js} +21 -21
  8. package/dist/{chunk-RD6ZGYEJ.js → chunk-ASE36WGP.js} +7 -7
  9. package/dist/{chunk-IO4CGYHT.js → chunk-CMDCBYUH.js} +1 -1
  10. package/dist/{chunk-ZYHPCQVM.js → chunk-K7YHXFPQ.js} +1 -1
  11. package/dist/client/index.cjs +1 -1
  12. package/dist/client/index.d.cts +1 -1
  13. package/dist/client/index.d.ts +1 -1
  14. package/dist/client/index.js +1 -1
  15. package/dist/core/index.cjs +31 -31
  16. package/dist/core/index.js +31 -31
  17. package/dist/health-plan/index.cjs +266 -266
  18. package/dist/health-plan/index.js +443 -443
  19. package/dist/{inbox.d-DJ9xgU1Z.d.ts → inbox.d-B2JXK0uI.d.ts} +1 -1
  20. package/dist/{inbox.d-CPcMMz-Y.d.cts → inbox.d-CwA1ogzV.d.cts} +1 -1
  21. package/dist/index.cjs +257 -256
  22. package/dist/index.js +364 -363
  23. package/dist/notifications/inbox/index.cjs +28 -28
  24. package/dist/notifications/inbox/index.d.cts +5 -5
  25. package/dist/notifications/inbox/index.d.ts +5 -5
  26. package/dist/notifications/inbox/index.js +53 -53
  27. package/dist/notifications/index.cjs +1 -1
  28. package/dist/notifications/index.d.cts +3 -3
  29. package/dist/notifications/index.d.ts +3 -3
  30. package/dist/notifications/index.js +1 -1
  31. package/dist/{parse.d-Cj3fURer.d.ts → parse.d-QjB2LJCd.d.ts} +19 -10
  32. package/dist/{parse.d-cH7ZmMeo.d.cts → parse.d-_Ttu2h5g.d.cts} +19 -10
  33. package/dist/records/depth/index.cjs +80 -80
  34. package/dist/records/depth/index.js +115 -115
  35. package/dist/records/index.cjs +653 -653
  36. package/dist/records/index.js +1074 -1074
  37. package/dist/{route.d-DSYEd2MR.d.ts → route.d-DtuKY5dM.d.ts} +1 -1
  38. package/dist/{route.d-DCzQh4ix.d.cts → route.d-Nt-r-7IO.d.cts} +1 -1
  39. package/dist/server/events/index.cjs +1 -1
  40. package/dist/server/events/index.js +1 -1
  41. package/dist/server/index.cjs +1 -1
  42. package/dist/server/index.js +1 -1
  43. package/dist/shop/index.cjs +188 -188
  44. package/dist/shop/index.js +386 -386
  45. package/dist/shop/orders-v2/index.cjs +72 -72
  46. package/dist/shop/orders-v2/index.js +126 -126
  47. package/dist/tabs/index.cjs +114 -111
  48. package/dist/tabs/index.d.cts +18 -5
  49. package/dist/tabs/index.d.ts +18 -5
  50. package/dist/tabs/index.js +191 -188
  51. package/dist/televet/booking/index.cjs +214 -211
  52. package/dist/televet/booking/index.js +344 -341
  53. package/dist/televet/call/index.cjs +53 -53
  54. package/dist/televet/call/index.js +67 -67
  55. package/dist/{useInboxUnread.d-CXiaR3BZ.d.ts → useInboxUnread.d-0DrQPn7J.d.ts} +1 -1
  56. package/dist/{useInboxUnread.d-DERpMelw.d.cts → useInboxUnread.d-CRcOTkmu.d.cts} +1 -1
  57. package/dist/web/health-plan/index.cjs +1 -1
  58. package/dist/web/health-plan/index.js +1 -1
  59. package/dist/web/inbox/index.cjs +1 -1
  60. package/dist/web/inbox/index.d.cts +6 -6
  61. package/dist/web/inbox/index.d.ts +6 -6
  62. package/dist/web/inbox/index.js +1 -1
  63. package/dist/web/index.cjs +184 -184
  64. package/dist/web/index.js +181 -181
  65. package/dist/web/notifications/index.cjs +1 -1
  66. package/dist/web/notifications/index.d.cts +2 -2
  67. package/dist/web/notifications/index.d.ts +2 -2
  68. package/dist/web/notifications/index.js +1 -1
  69. package/dist/web/records-sheet/index.cjs +1 -1
  70. package/dist/web/records-sheet/index.js +1 -1
  71. package/dist/web/shop/index.cjs +1 -1
  72. package/dist/web/shop/index.js +2 -2
  73. package/dist/web/televet/booking/index.cjs +1 -1
  74. package/dist/web/televet/booking/index.js +1 -1
  75. package/dist/web/televet/call/index.cjs +1 -1
  76. package/dist/web/televet/call/index.js +1 -1
  77. package/dist/web/ui/index.cjs +1 -1
  78. package/dist/web/ui/index.js +16 -16
  79. package/package.json +1 -1
@@ -1,447 +1,447 @@
1
1
  /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
- import{createContext,forwardRef as e,createElement as t,useContext as r,useEffect as n,useMemo as i,useRef as o,useState as l,useCallback as a,useSyncExternalStore as s,Fragment as d,Children as c,isValidElement as u}from"react";import{StyleSheet as p,TextInput as h,View as g,ScrollView as f,RefreshControl as m,Text as b,Pressable as y,Platform as k,Image as w,Modal as v,KeyboardAvoidingView as x,AppState as S,Animated as I,Easing as C,AccessibilityInfo as L}from"react-native";import{jsxs as z,jsx as A,Fragment as W}from"react/jsx-runtime";var R=class _EverfurConfigError extends Error{constructor(e,t){super(t),this.name="EverfurConfigError",this.kind=e,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var F=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),H=globalThis,P=H[F]??(H[F]=createContext(null));P.displayName??="EverfurContext";var B=/* @__PURE__ */new WeakMap,O=[];function D(e){let t=B.get(e);return t||(t={items:O,flash:null,storage:null,binding:null,lastKey:null,listeners:/* @__PURE__ */new Set},B.set(e,t)),t}function E(e,t){let r=D(e);if(r.items=t,r.storage)try{r.storage.write(JSON.stringify(t))}catch{}for(let e of[...r.listeners])e()}function N(e){return Math.max(1,Math.min(5,Math.round(e)))}function V(e){return`${e.offerId}|${e.petId??""}|${e.rxId??""}`}var q=e=>typeof e=="string"&&e!=="";function U(e){return typeof e=="string"&&/^https:\/\/[^\s]+$/i.test(e)?e:null}function G(e){if(!e)return O;let t;try{t=JSON.parse(e)}catch{return O}if(!Array.isArray(t))return O;let r=[];for(let e of t){if(!e||typeof e!="object")continue;let t=e;if(!q(t.offerId)||typeof t.title!="string"||typeof t.quantity!="number"||!Number.isFinite(t.quantity))continue;let n=typeof t.unitPrice=="number"&&Number.isFinite(t.unitPrice)?t.unitPrice:null,i=q(t.petId)?t.petId:void 0,o=q(t.rxId)?t.rxId:void 0,l=U(t.imageUrl),a={offerId:t.offerId,...i?{petId:i}:{},...o?{rxId:o}:{}},s=V(a);r.some(e=>e.key===s)||r.push({...a,key:s,title:t.title,unitPrice:n,requiresRx:t.requiresRx===true,quantity:o?Math.max(1,Math.round(t.quantity)):N(t.quantity),...l?{imageUrl:l}:{}})}return r.length>0?r:O}function M(e,t){let r=new Map(t.map(e=>[e.key,e])),n=e.map(e=>r.get(e.key)??e);for(let r of t)e.some(e=>e.key===r.key)||n.push(r);return n.length>0?n:O}var NOOP=()=>{};function j(e,t,r){let n=D(e);if(!t||n.binding!==null)return NOOP;if(n.lastKey!==null&&n.lastKey!==r&&n.items.length>0){n.items=O;for(let e of[...n.listeners])e()}n.lastKey=r;let i={};n.binding={key:r,token:i};let o={read:()=>null,write:e=>{t.setItem(r,e).catch(()=>{})}},l=(t,r)=>{if(n.binding?.token!==i)return;n.storage=o;let l=G(t);l.length>0?E(e,M(l,n.items)):r&&n.items.length>0&&E(e,n.items)};try{t.getItem(r).then(e=>l(e,!0),()=>l(null,!1))}catch{l(null,false)}return()=>{n.binding?.token===i&&(n.binding=null,n.storage=null)}}function Z(e){return D(e).items}function Y(e,t){let r=V(t),n=Z(e),i=n.find(e=>e.key===r),o=t.rxId?Math.max(1,Math.round(t.quantity)):N((i?.quantity??0)+t.quantity),l={...t,key:r,quantity:o};return E(e,i?n.map(e=>e.key===r?l:e):[...n,l]),l}function J(e,t,r){let n=Z(e);E(e,n.map(e=>e.key===t&&!e.rxId?{...e,quantity:N(r)}:e))}function X(e,t){let r=Z(e),n=r.find(e=>e.key===t)??null;return n&&E(e,r.filter(e=>e.key!==t)),n}function Q(e,t){let r=new Set(t),n=Z(e);n.some(e=>r.has(e.key))&&E(e,n.filter(e=>!r.has(e.key)))}function _(e,t){D(e).flash=t}function $(e){let t=D(e),r=t.flash;return t.flash=null,r}function ee(e){return e.map(e=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.rxId?{rxId:e.rxId}:{}}))}function te(e){let t=0;for(let r of e){if(r.unitPrice===null)return null;t+=r.unitPrice*r.quantity}return t}function re(e){return e.reduce((e,t)=>e+t.quantity,0)}function ne(e){let t=D(e);return s(e=>(t.listeners.add(e),()=>{t.listeners.delete(e)}),()=>t.items,()=>t.items)}var ie={title:e=>`${e}’s orders`,onAuto:e=>`${e} on auto-refill`,nothingOnAuto:"Nothing on auto-refill",onTheWay:e=>e===0?"Nothing on the way":e===1?"1 package on the way":`${e} packages on the way`,today:"Today",hasLeft:(e,t,r)=>`${e} has ${t} ${r} left`,enoughUntil:e=>`Enough until ${e}`,boxArrives:"Her box arrives",rxArrives:e=>`Her ${e} arrives`,items:e=>e===1?"1 item":`${e} items`,units:(e,t)=>`${e} ${e===1?t:`${t}s`}`,shipsTomorrow:"Ships tomorrow",needsVetOk:e=>`Needs ${e}’s OK`,trackingDown:"Tracking isn’t loading. Pull down to try again.",wontRunOut:"She won’t run out",oldBottleEnds:e=>`Her old bottle ends today. The new one is due ${e}.`,runsOut:e=>`Her ${e} runs out`,orderToday:e=>`Order today, it arrives ${e}.`,refill:"Refill",inCart:"In cart",autoTitle:"On auto-refill",autoSub:"Timed to her supply",rxTag:"Rx",ships:"Ships",autoRefill:"Auto-refill",paused:"Paused",planMeta:(e,t,r)=>t===null?e:`${e} · ${t}${r?" when filled":""}`,everyDays:e=>e===1?"every day":`every ${e} days`,everyDaysAlone:e=>e===1?"Every day":`Every ${e} days`,everyMonthsAfter:e=>e===1?"every month":`every ${e} months`,everyMonths:e=>e===1?"Every month":`Every ${e} months`,amountEvery:(e,t)=>`${e}, ${t}`,vetOks:e=>`${e} OKs each refill`,leftOnRx:e=>`${e} left on her prescription`,offOnAuto:e=>`${e}% off on auto`,skipped:e=>`Skipped ${e}.`,undo:"Undo",skip:"Skip",change:"Change",pause:"Pause",resume:e=>e?`Resume · next ships ${e}`:"Resume",sheetTitle:"Manage auto-refill",skipTitle:e=>`Skip ${e}?`,changeTitle:"How often",pauseTitle:"Pause auto-refill?",sheetMeta:(e,t)=>t?`${e} · next ships ${t}`:e,skipSay:e=>`The next one ships a cycle later, ${e}.`,skipGo:e=>`Skip, next ships ${e}`,changeRxSay:e=>`${e} OKs a new amount before the next one ships.`,save:"Save",pauseRxSay:(e,t)=>`Nothing ships until you resume. ${e}’s prescription stays on file, with its ${t===1?"1 refill":`${t} refills`}.`,pauseSay:"Nothing ships until you resume. Resume any time, here.",pauseGo:"Pause it",keep:"Keep it as it is",close:"Close",saveFailed:"That didn’t save. Try again.",saidSkipped:(e,t)=>`Skipped. ${e} next ships ${t}.`,saidSaved:(e,t)=>`Saved. ${e} from ${t}.`,saidPaused:"Paused. Nothing ships until you resume.",buyAgainTitle:"Buy again",buyAgainSub:"From her past orders",likelyOut:"Likely out by now",ordered:e=>`Ordered ${e}`,addOne:e=>`Add ${e}`,oneLess:e=>`One less ${e}`,everythingElse:e=>`Everything else for ${e}`,pastTitle:"Past orders",pastSub:"Last 3 months",delivered:"Delivered",everfurBox:"Everfur box",addAll:e=>e===2?"Add both to cart":`Add all ${e} to cart`,inTheCart:"In the cart",receipt:"Receipt",help:"Help with an order",legal:"Prescription refills need the prescribing vet’s OK each time, and are charged once filled.",itemCount:e=>e===1?"1 item":`${e} items`,shipsFree:e=>`${e} · ships free`,freeOver:(e,t)=>`${e} · free shipping over ${t}`,todayPlusRx:e=>`today, + ${e} Rx when filled`,whenFilled:e=>e?`when it’s filled, ${e} off`:"when it’s filled",checkout:"Checkout"};function shopOrdersV2Copy(e){return e?{...ie,...e}:ie}function oe(e){/* @__PURE__ */
3
- return Object.freeze({ok:true,value:e})}function le(e){/* @__PURE__ */
4
- return Object.freeze({ok:false,error:/* @__PURE__ */Object.freeze(e)})}function isOmsRefusal(e,t){return e.kind==="refused"&&(t===void 0||e.reasonCode===t)}function isOmsUnavailable(e){return e.kind==="unavailable"}function isOmsRetryable(e){return e.kind==="network"||e.kind==="timeout"||e.kind==="serviceUnavailable"||e.kind==="refused"&&e.reasonCode==="order_state_conflict"}var ae=/^[a-z][a-z0-9_]{0,63}$/,se=300;function de(e){if(typeof e!="string")return null;let t=e.replace(/[\u0000-\u001f\u007f]+/g," ").trim();return t.length===0||t.length>se?null:t}function ce(e){if(!e)return null;let t=Number(e);return Number.isFinite(t)&&t>=0?Math.min(Math.round(t),3600):null}function ue(e,t,r){let n=r.requestId,i=n?{requestId:n}:{};if(e===404)return{kind:"unavailable",...i};if(e===401)return{kind:"signedOut"};if(e===402||e===409||e===422){let r=t&&typeof t=="object"?t:{},n=typeof r.reason_code=="string"&&ae.test(r.reason_code)?r.reason_code:null;return{kind:"refused",status:e,reasonCode:n,message:de(r.message),...i}}return e===400?{kind:"invalidRequest",...i}:e===429?{kind:"rateLimited",retryAfterSeconds:ce(r.retryAfter??null),...i}:e===503?{kind:"serviceUnavailable",...i}:e===403?{kind:"unavailable",...i}:{kind:"serverError",status:e,...i}}function newIdempotencyKey(){let e=globalThis.crypto;if(e&&typeof e.randomUUID=="function")return e.randomUUID();if(e&&typeof e.getRandomValues=="function"){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=Array.from(t,e=>e.toString(16).padStart(2,"0")).join("");return`${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20)}`}throw new R("missing-peer-dependency","No secure random source: cannot make an idempotency key")}var pe=3,he=["client_name_missing"];function ge(e){return!!e&&e.kind==="refused"&&!!e.reasonCode&&he.includes(e.reasonCode)}var fe=class{constructor(e=newIdempotencyKey){this.make=e;this.keys=/* @__PURE__ */new Map}key(e){let t=this.keys.get(e);return t||(t=this.make(),this.keys.set(e,t)),t}next(e){let t=this.make();return this.keys.set(e,t),t}};async function me(e,t,r,n={reconfirm:true}){let i=t.key("confirm"),o=[];for(let l=0;l<pe;l+=1){let a=await e(i);if(!a.ok)return{kind:"failed",error:a.error};o=a.value.resale.map(e=>e.orderId);let s=a.value.resale.filter(e=>e.outcome==="action_required"&&e.payerAction);if(s.length===0)return{kind:"confirmed",orderIds:o};if(!r)return{kind:"needsPayerAction",orderIds:o};if(l===0&&n.beforePayerAction)try{n.beforePayerAction(o)}catch{}for(let e of s){let t=await r.handleNextAction(e.payerAction,{orderId:e.orderId});if(!t.ok)return t.closed?{kind:"payerActionClosed",orderIds:o}:{kind:"payerActionFailed",orderIds:o,message:t.message}}if(!n.reconfirm)return{kind:"confirmed",orderIds:o};i=t.next("confirm")}return{kind:"needsPayerAction",orderIds:o}}var be=/* @__PURE__ */Object.freeze({load:()=>Promise.resolve(le({kind:"unavailable"})),removeLine:()=>Promise.resolve(le({kind:"unavailable"})),skip:()=>Promise.resolve(le({kind:"unavailable"})),approve:()=>Promise.resolve({kind:"failed",error:{kind:"unavailable"}})});async function ye(e,t){let r=[...new Set(t)],n=await Promise.all(r.map(t=>e.offer(t)));return new Map(r.map((e,t)=>[e,n[t].ok?n[t].value:null]))}function createOmsPackageSource(e){async function t(t,r){let n=await ye(e,r.lines.map(e=>e.offerId)),i=r.lines.map(e=>({...e,offer:n.get(e.offerId)??null})),o=null;if(r.state==="open"&&i.length>0){let n=await e.draftCycle(t.planId,r.cycle);if(n.ok)o=n.value;else if(n.error.kind!=="refused")return le(n.error)}return oe({plan:t,review:r,lines:i,draft:o})}return{async load(){let r=await e.plans();if(!r.ok)return le(r.error);let n=r.value.plans.find(e=>e.state==="active")??r.value.plans.find(e=>e.state!=="cancelled");if(!n)return oe(null);let i=await e.cycleReview(n.planId);return i.ok?t(n,i.value):le(i.error)},async removeLine(r,n,i){let o=r.lines.filter((e,t)=>t!==n).map(e=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{}})),l=await e.editCycle(r.plan.planId,r.review.cycle,{idempotencyKey:i.key(`remove:${n}`),lines:o});return l.ok?t(r.plan,l.value):le(l.error)},async skip(t,r){let n=await e.skipCycle(t.plan.planId,t.review.cycle,{idempotencyKey:r.key("skip")});return n.ok?oe(void 0):le(n.error)},approve(t,r,n){let i=t.draft;return i?me(r=>e.approveCycle(t.plan.planId,t.review.cycle,{idempotencyKey:r,checkoutId:i.checkoutId,expectedTotal:i.total}),r,n,{reconfirm:false}):Promise.resolve({kind:"failed",error:{kind:"invalidRequest"}})}}}function ke(e){let t=e<0?"-":"",r=Math.abs(Math.round(e));return`${t}$${Math.floor(r/100).toLocaleString("en-US")}.${String(r%100).padStart(2,"0")}`}function we(e){return`[copy:shop.${e}]`}var ve=["January","February","March","April","May","June","July","August","September","October","November","December"];function Te(e){return`${e}’s`}function xe(e){return e.length<=1?e[0]??"":`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function Se(e){if(!e)return null;let t=new Date(/^\d{4}-\d{2}-\d{2}$/.test(e)?`${e}T00:00:00Z`:e);return Number.isNaN(t.getTime())?null:t}function Ie(e,t={}){let r=Se(e);if(!r)return null;if(t.when&&r.getUTCFullYear()!==(t.now??/* @__PURE__ */new Date).getUTCFullYear())return r.toLocaleDateString("en-US",{timeZone:"UTC",month:"short",day:"numeric",year:"numeric"});let n=t.weekday===true||t.when===true;return r.toLocaleDateString("en-US",{timeZone:"UTC",...n?{weekday:"short"}:{},month:"short",day:"numeric"})}function formatWhen(e){let t=Se(e);if(!t)return null;let r=t.toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"}),n=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});return`${r} · ${n}`}function Ce(e){let t=Se(e);return t?ve[t.getUTCMonth()]:null}function Le(e,t){return`${e?e.charAt(0).toUpperCase()+e.slice(1):""} ending ${t}`}var ze="We can’t send this prescription to the pharmacy yet. Contact us.",Ae=["prescription_missing","prescription_reference_missing","prescription_unreadable","prescriptions_disagree","first_fill_mixed_with_refill","duplicate_prescription_line","prescription_in_flight","client_email_missing","client_phone_missing","client_phone_not_us","practice_email_missing","practice_phone_missing","practice_phone_not_us","patient_birth_date_missing","patient_weight_missing","weight_below_partner_unit","species_not_supported","sex_not_supported","refills_over_partner_limit","indications_missing","indication_not_mapped","compounding_missing","compounding_reason_not_mapped","compounding_unexplained","delivery_speed_unavailable","address_missing","address_not_deliverable"],We={tabsLabel:"Care",tabPackage:"Package",tabShop:"Shop",tabOrders:"Orders",tabPlan:"Plan",legal:"Prescription items need a valid prescription from a licensed vet, and are filled by a licensed partner pharmacy.",legalTracking:"Prescription items are filled by a licensed partner pharmacy.",loadFailed:e=>`We couldn’t load ${e}. Check your connection and try again.`,tryAgain:"Try again",actionFailed:"That didn’t go through. Try again.",saving:"Saving…",keepIt:"Keep it",close:"Close",thingPackage:we("thing.package"),thingShop:we("thing.shop"),thingProduct:we("thing.product"),thingPlan:we("thing.plan"),thingOrders:"your orders",thingOrder:"this order",packageTitle:e=>`${e} package`,packageSub:(e,t,r)=>{let n=[];return e.length>0&&n.push(`For ${xe(e)}.`),t&&r&&n.push(`Approve by ${t} and it arrives ${r}.`),n.length?n.join(" "):null},inThisPackage:"In this package",reviewBy:e=>`Review by ${e}`,forPet:e=>`For ${e}`,details:"Details",remove:"Remove",removed:"Removed.",total:"Total",items:"Items",shipping:"Shipping",tax:"Tax",free:"Free",approveAndShip:"Approve and ship",itemCount:e=>e===1?we("package.item_count_one"):`${e} items`,withTotal:(e,t)=>`${e} · ${t}`,approveRegion:"Approve",packageDetailsRegion:"Package details",deliveryPaymentRegion:"Delivery and payment",questionsRegion:"Questions",approving:"Approving…",skipThisMonth:"Skip this month",chargedWhenShips:e=>`Charged to ${e} when it ships.`,rxCheckedFirst:"Prescriptions are checked with the vet who wrote them first.",delivery:"Delivery",arrives:e=>`Arrives ${e}`,change:"Change",outOfStock:"Out of stock",packageOutOfStock:"Out of stock right now, so it won’t ship this month.",packageEmpty:e=>`Nothing in ${Te(e)} package yet. Add something from the shop, or skip this month.`,itemNoLongerSold:we("package.item_no_longer_sold"),reviewClosed:we("package.review_closed"),approvalInProgress:we("package.approval_in_progress"),priceChanged:we("package.price_changed"),cardStepFailed:we("package.card_step_failed"),cardStepClosed:we("package.card_step_closed"),noCardOnFile:we("package.no_card_on_file"),shopTitle:"Shop",searchLabel:"Search the shop",searchPlaceholder:"Search the shop…",filtersLabel:"Filter",filterAll:"All",refillSoon:"Refill soon",prescribedFor:e=>`Prescribed for ${xe(e)}`,inMonthsPackage:e=>`In ${Te(e)} package →`,forPets:e=>`For ${xe(e)}`,allProducts:we("shop.all_products_title"),rx:"Rx",hasPrescription:e=>`${e} has a prescription`,needsPrescription:"Needs a prescription",noMatches:e=>`Nothing in the shop matches ‘${e}’.`,nothingHereYet:"Nothing here yet.",photoToCome:"Photo to come",backToShop:"Shop",howOften:"How often",everyMonthIn:e=>`Every month, in ${Te(e)} package`,skipOrStop:"Skip or stop any month",justOnce:"Just once",shipsWith:e=>`Ships with ${Te(e)} package`,justOnceShipsNow:we("product.just_once_meta"),oneFewer:"One fewer",oneMore:"One more",quantity:"Quantity",addToPackage:e=>`Add to ${Te(e)} package`,refillInPackage:e=>`Refill in ${Te(e)} package`,buyNow:we("product.buy_now"),startPlan:we("product.start_plan"),adding:"Adding…",outOfStockNow:"Out of stock right now.",prescription:"Prescription",noPrescriptionFor:e=>`No prescription for ${e} on file.`,bookVideoVisit:"Book a video visit",refillsLeft:e=>`${e} ${e===1?"refill":"refills"} left`,rxBeingPrepared:"This prescription is being prepared. You can order it soon.",rxTooSoon:we("rx.too_soon"),rxRenew:we("rx.needs_renewal"),rxPick:we("rx.pick_pet"),educational:"Educational, not a diagnosis.",planTitle:"Your plan",whatRepeats:"What repeats",repeatsLabel:e=>`${e} repeats`,cadenceMonths:e=>e===1?"Every month":`Every ${e} months`,cadenceDays:we("plan.cadence_days"),repeatsEmpty:"Nothing repeats yet. Pick Every month when you add something, and it shows up here.",nextPackage:"Next package",reviewByLabel:"Review by",ships:"Ships",reviewMonthsPackage:e=>`Review ${Te(e)} package →`,deliveryAndPayment:"Delivery and payment",shipTo:"Ship to",payWith:"Pay with",needABreak:"Need a break?",skipMonth:e=>`Skip ${e}`,skipMonthAsk:e=>`Skip ${e}?`,skipMonthBody:"Nothing ships this month.",pausePlan:"Pause the plan",pausePlanAsk:"Pause the plan?",pausePlanBody:"Nothing ships until you turn it back on.",declined:e=>e?`Declined. Update your card so ${Te(e)} package can ship.`:"Declined.",resumePlan:we("plan.resume"),stopReason:e=>we(`plan.stop_reason.${e}`),consentTitle:we("plan.consent_title"),consentBody:we("plan.consent_body"),consentTermsLink:we("plan.consent_terms_link"),consentAgree:we("plan.consent_agree"),ordersTitle:"Orders",ordersSub:e=>`Packages and one-off orders for ${xe(e)}.`,allOrders:"All orders",placed:e=>`Placed ${e}`,ordersEmpty:"No orders yet. Your first package shows up here once you approve it.",paymentFailed:"Payment failed",backToCare:"Care",onItsWay:e=>`${e}, on its way`,shouldArrive:e=>`It should arrive ${e}.`,whereItStands:"Where it stands",stepApproved:"Approved",stepChecking:"Checking prescriptions…",stepFilled:"Filled by the pharmacy",stepShipped:"Shipped",stepDelivered:"Delivered",now:"Now",expected:e=>`Expected ${e}.`,inTheBox:"In the box",payment:"Payment",cancelOrder:we("order.cancel"),payOrder:we("order.pay"),trackPackage:we("order.track"),orderStatus:{pending_placement:"Confirmed, sending to the pharmacy",placement_unknown:"Confirmed",placed:"With the pharmacy, in review",accepted:"Approved by the pharmacist",release_sent:"Approved, being prepared",release_unknown:"Approved, being prepared",released:"Being prepared",shipped:"Shipped",delivered:"Delivered",needs_support:"We’re looking into this order",rejected:we("order.status.rejected"),cancelled:"Cancelled",pending_handoff:we("order.status.pending_handoff")},addressTitle:we("address.title"),addressLabel:we("address.label"),addressRecipient:we("address.recipient_name"),addressLine1:we("address.line1"),addressLine2:we("address.line2"),addressCity:we("address.city"),addressRegion:we("address.region"),addressPostal:we("address.postal_code"),addressSave:we("address.save"),addressNeeded:we("address.needed"),cardTitle:we("card.title"),cardBody:we("card.body"),cardStart:we("card.start"),cardUnavailable:we("card.unavailable"),confirmTitle:we("buy.confirm_title"),confirmPay:we("buy.confirm_pay"),nameMissing:we("checkout.name_missing"),addName:we("checkout.add_name"),firstName:we("checkout.first_name"),lastName:we("checkout.last_name"),saveName:we("checkout.save_name"),refusal:{operation_not_supported:"This action isn’t available for this order.",order_not_sellable:"We can’t ship this order as it is. Add items or contact us.",rx_being_prepared:"This prescription is being prepared. You can order it soon.",rx_not_dispensable:ze,...Object.fromEntries(Ae.map(e=>[e,ze])),order_state_conflict:"This order changed. Refresh and try again.",payment_method_in_use:"A subscription or an order uses this card."},rateLimited:we("error.rate_limited")},Re=(()=>{let e=/* @__PURE__ */new Set,t=r=>{if(typeof r=="string"){let t=/^\[copy:(shop\.[a-z0-9_.]+)\]$/.exec(r);t&&e.add(t[1])}else if(typeof r=="function")try{t(r("x","x","x"))}catch{}else if(r&&typeof r=="object")for(let e of Object.values(r))t(e)};return t(We),[...e].sort()})();function shopCopy(e){return e?{...We,...e}:We}function Fe(e,t){if(t.kind==="rateLimited")return e.rateLimited;if(t.kind==="refused"){if(ge(t))return e.nameMissing;let r=t.reasonCode?e.refusal[t.reasonCode]:void 0;if(r)return r;if(t.message)return t.message}return e.actionFailed}var He={cartTitle:"Cart",cartLabel:e=>e>0?`Cart, ${e} item${e>1?"s":""}`:"Cart, empty",cartEmptyTitle:"Your cart is empty",cartEmptyBody:null,addToCart:"Add to cart",viewCart:"View cart",addedToCart:e=>`${e} is in your cart.`,removedFromCart:e=>`${e} is out of your cart.`,quantityLabel:e=>`How many: ${e}`,fewer:"One fewer",more:"One more",remove:"Remove",subtotal:"Subtotal",shipping:"Shipping",tax:"Tax",free:"Free",total:"Total",checkoutCart:e=>`Checkout · ${e}`,checkoutKicker:"Checkout",itemQuantity:e=>`Qty ${e}`,shipsTo:"Ships to",payWith:"Pay with",placeOrder:e=>`Place order · ${e}`,chooseAddress:we("checkout.choose_address"),chooseCard:we("checkout.choose_card"),addAddress:we("checkout.add_address"),addCard:we("card.start"),makeDefault:we("address.make_default"),editAddress:we("address.edit"),noAddressYet:we("address.needed"),noCardYet:we("package.no_card_on_file"),placedHeader:"Order placed",placedTitle:"Order placed.",placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",ordersTitle:"Orders",ordersEmptyTitle:"No orders yet",ordersEmptyBody:null,moreOrders:we("orders.more"),subscriptionBox:"Subscription box",orderTitle:e=>e===null?"Order":`Order ${e}`,arrivesBy:e=>`Arrives by ${e}`,deliveredOn:e=>`Delivered ${e}`,expected:e=>`Expected ${e}`,orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],tracking:"Tracking",trackOn:e=>`Track on ${e}`,inThisOrder:"In this order",orderItemLine:e=>`Qty ${e}`,buyAgain:"Buy again",orderHelp:"Get help with this order",paidWith:"Paid with",refund:we("order.refund"),discount:we("order.discount"),cancelAsk:we("order.cancel_ask"),cancelBody:null,cancelRequested:we("order.cancel_requested"),close:"Close",manageKicker:"Your subscription",manageTitle:e=>`Manage ${e}`,manage:"Manage",shipsEvery:"Ships every",daysChip:e=>`${e} days`,skipNext:"Skip the next box",cancelSubscription:"Cancel subscription",nextBox:e=>`Next box ${e}`,everyDays:e=>`Every ${e} days`,subscribedLine:(e,t)=>t===null?`Every ${e} days`:`Every ${e} days · next box ${t}`,skipped:"Skipped.",cancelSubscriptionAsk:we("plan.cancel_ask"),cancelSubscriptionBody:we("plan.cancel_body")},Pe=Object.values(He).filter(e=>typeof e=="string"&&e.startsWith("[copy:"));function shopV3Copy(e){if(!e)return He;let t={};for(let[r,n]of Object.entries(e))r in He&&n!==void 0&&(t[r]=n);return{...He,...t}}var Be=createContext(null);function ShopProvider(e){let{client:r,pets:n,payments:l,packageSource:a,copy:s,v3Copy:d,saveProfileName:c,onProfileNameRequired:u,children:p}=e,h=o(c);h.current=c;let g=o(u);g.current=u;let f=!!c,m=!!u,b=i(()=>{let e=n??[],t=new Map(e.map(e=>[e.petId,e.name]));return{client:r,pets:e,petName:e=>e?t.get(e)??null:null,payments:l??null,packageSource:a??createOmsPackageSource(r),copy:shopCopy(s),v3:shopV3Copy(d),saveProfileName:f?e=>h.current?h.current(e):Promise.resolve(false):null,onProfileNameRequired:m?()=>g.current?.():null}},[r,n,l,a,s,d,f,m]);return t(Be.Provider,{value:b},p)}function Oe(){let e=r(Be);if(!e)throw new R("not-initialized","useShop: wrap the shop in <ShopProvider>");return e}function De(e,t){let[r,i]=l({key:null,phase:"loading",value:null,error:null}),s=o(0),d=o(null),c=o(t);c.current=t;let u=a(t=>{let r=++s.current;if(e===null)return Promise.resolve();t||i({key:e,phase:"loading",value:null,error:null});let n=c.current().then(n=>{if(r!==s.current)return;if(n.ok){i({key:e,phase:"ready",value:n.value,error:null});return}let o={key:e,phase:n.error.kind==="unavailable"?"unavailable":"failed",value:null,error:n.error};t&&o.phase==="failed"?i(t=>t.key===e&&t.phase==="ready"?t:o):i(o)},()=>{});return d.current={epoch:r,done:n},n.then(()=>{d.current?.epoch===r&&(d.current=null)}),n},[e]);n(()=>(u(false),()=>{s.current+=1}),[u]);let p=a(()=>{u(false)},[u]),h=a(()=>{let e=d.current;return e&&e.epoch===s.current?e.done:u(true)},[u]);return r.key!==e?{phase:"loading",value:null,error:null,refresh:p,reread:h}:{phase:r.phase,value:r.value,error:r.error,refresh:p,reread:h}}function Ee(){let{client:e}=Oe();return De("shop-config",()=>e.shopConfig())}function Ne(e={}){let{client:t}=Oe(),r=e.text?.trim()??"",n=`offers:${r}:${e.requiresRx??""}`;return De(n,()=>t.offers({...r?{text:r}:{},...e.requiresRx!==void 0?{requiresRx:e.requiresRx}:{},limit:100}))}function Ve(e){let{client:t}=Oe();return De(e?`offer:${e}`:null,()=>t.offer(e))}function qe(){let{client:e}=Oe();return De("prescriptions",()=>e.prescriptions())}function Ue(){let{client:e}=Oe();return De("addresses",()=>e.addresses())}function Ge(e){let{client:t}=Oe();return De(e?`address:${e}`:null,()=>t.address(e))}function Me(){let{client:e}=Oe();return De("payment-methods",()=>e.paymentMethods())}function Ke(e){let{client:t}=Oe();return De(e?`order:${e}`:null,()=>t.order(e))}function je(){let{client:e}=Oe();return De("plans",()=>e.plans({limit:100}))}function Ze(){let{packageSource:e}=Oe();return De("package",()=>e.load())}function Ye(e){let[t,r]=l(false),[i,s]=l(null),d=o(null),c=o(false),u=o(e);u.current=e;let p=o(true);n(()=>(p.current=true,()=>{p.current=false}),[]);let h=a(async(...e)=>{if(c.current)return null;c.current=true,d.current??=new fe,r(true),s(null);try{let t=await u.current(d.current,...e);return t.ok?d.current=null:Je(t.error)||(d.current=null),p.current&&s(t.ok?null:t.error),t}finally{c.current=false,p.current&&r(false)}},[]),g=a(()=>{d.current=null,s(null)},[]);return{busy:t,error:i,run:h,reset:g}}function Je(e){return e.kind==="network"||e.kind==="timeout"||e.kind==="serviceUnavailable"||e.kind==="serverError"}function Xe(e){let t=[];for(let r of e)r!==null&&!t.includes(r)&&t.push(r);return t}var Qe=[[/\b(inject(ion|able)?|vial|syringe|pen)s?\b/i,"syringe"],[/\b(chew(able)?|soft ?chew|treat)s?\b/i,"bowl"],[/\b(shampoo|spray|ointment|cream|gel|lotion|topical|spot[- ]on|otic|ophthalmic|wipe|foam|mousse|collar)s?\b/i,"shield"],[/\b(solution|suspension|liquid|syrup|elixir|drops?|oral ?paste|paste)s?\b/i,"flask"],[/\b(tablet|caplet|capsule|tab|cap|pill)s?\b/i,"pill"]];function _e(e,t){for(let r of[e,t]){if(!r)continue;let e=Qe.find(([e])=>e.test(r));if(e)return e[1]}return"pill"}function $e(e,t,r){return e?{tone:"pink",icon:_e(t,r)}:{tone:"yellow",icon:"leaf"}}var et=[[Qe[0][0],"injection"],[Qe[1][0],"chew"],[Qe[2][0],"topical"],[Qe[3][0],"liquid"],[/\b(capsule|cap)s?\b/i,"capsule"],[/\b(tablet|caplet|tab|pill)s?\b/i,"tablet"]];function tt(e,t,r){if(!e)return null;for(let e of[t,r]){if(!e)continue;let t=et.find(([t])=>t.test(e));if(t)return t[1]}return"unknown"}var rt={tablet:{tone:"pink",icon:"pill"},capsule:{tone:"sage",icon:"pill"},liquid:{tone:"base",icon:"flask"},injection:{tone:"base",icon:"syringe"},chew:{tone:"yellow",icon:"bowl"},topical:{tone:"sage",icon:"shield"},unknown:{tone:"pink",icon:"pill"}};function nt(e){return e?rt[e]:{tone:"yellow",icon:"leaf"}}function it(e){return`${e.line2?`${e.line1}, ${e.line2}`:e.line1}, ${e.city}, ${e.region?`${e.region} `:""}${e.postalCode}`}function ot(e){return{label:e.rx,tone:"rx"}}function lt(e){return e.fillsTotal!==null&&e.fillsUsed!==null?Math.max(0,e.fillsTotal-Math.max(e.fillsUsed,1)):null}function at(e){let{pkg:t,copy:r,petName:n}=e,i=t.review,o=Ce(i.shipsOn),l=Xe(t.lines.map(e=>n(e.petId))),a=i.state==="open",s=new Map(i.quoteLines.map(e=>[`${e.offerId}:${e.petId??""}`,e])),d=t.lines.map((t,n)=>{let i=t.offer,o=s.get(`${t.offerId}:${t.petId??""}`),l=i?.requiresRx??false,d=[];return i||d.push({label:r.outOfStock,tone:"later"}),{petId:t.petId,view:{key:`${t.offerId}:${t.petId??""}:${n}`,name:i?.title??r.itemNoLongerSold,rx:l,meta:null,alert:i?null:r.packageOutOfStock,pills:d,price:o&&i?ke(o.unitPrice*o.quantity-o.discount):null,...$e(l,i?.title),details:i?{label:r.details,to:{name:"product",offerId:i.offerId,...t.petId?{petId:t.petId}:{}}}:null,remove:a?{label:r.remove,busy:e.removing===n,disabled:e.removing!==null,onPress:()=>e.onRemove(n)}:null}}}),c=[];for(let e of d){let t=n(e.petId),i=t?r.forPet(t):null,o=c.find(e=>e.label===i);o?o.items.push(e.view):c.push({label:i,items:[e.view]})}let u=[],p=t.draft;p?(u.push({k:r.items,v:ke(p.total-p.shipping-p.tax)}),u.push({k:r.shipping,v:p.shipping===0?r.free:ke(p.shipping)}),u.push({k:r.tax,v:ke(p.tax)}),u.push({k:r.total,v:ke(p.total)})):i.quoteLines.length>0&&u.push({k:r.items,v:ke(i.quoteLines.reduce((e,t)=>e+t.unitPrice*t.quantity-t.discount,0))});let h=e.card?Le(e.card.brand,e.card.last4):null,g=t.lines.some(e=>e.offer?.requiresRx),f=h?[r.chargedWhenShips(h),g?r.rxCheckedFirst:null].filter(Boolean).join(" "):null,m=e.error;!m&&i.state==="approving"?m=r.approvalInProgress:!m&&i.state!=="open"&&i.state!==null?m=r.reviewClosed:!m&&a&&!e.card&&(m=r.noCardOnFile);let b=a&&p&&e.card?{label:r.approveAndShip,busyLabel:r.approving,busy:e.approving,disabled:e.approving||e.placed===true||e.removing!==null,onPress:e.onApprove}:null;return{title:o?r.packageTitle(o):r.tabPackage,sub:r.packageSub(l,Ie(i.approveBy,{weekday:true}),null),reviewPill:i.approveBy&&a?r.reviewBy(Ie(i.approveBy)):null,countPill:t.lines.length>0?r.itemCount(t.lines.length):null,fine:null,groups:t.lines.length>0?c:[],empty:t.lines.length===0?{line:o?r.packageEmpty(o):r.nothingHereYet,shop:{label:r.tabShop,to:{name:"shop"}},skip:null}:null,add:null,sum:u,approve:b,skip:a?{label:r.skipThisMonth,to:{name:"plan"}}:null,note:f,error:m,delivery:e.address?[{k:r.shipTo,v:it(e.address),change:{label:r.change,to:{name:"address",then:{name:"package"}}}}]:[],legal:r.legal}}function st(e,t){return t.filter(t=>t.status==="ready"&&t.offerId===e)}function dt(e,t,r,n,i=null){let o=[],l=null,a=i,s;return e.requiresRx&&(o.push(ot(r)),s=st(e.offerId,t).find(e=>n(e.petId)),a=s?.petId??i,l=s?r.hasPrescription(n(s.petId)):r.needsPrescription),{key:e.offerId,to:{name:"product",offerId:e.offerId,...a?{petId:a}:{}},name:e.title,meta:l,price:e.price!==null?ke(e.price):null,pills:o,...$e(e.requiresRx,e.title,s?.form),form:tt(e.requiresRx,e.title,s?.form),imageUrl:e.imageUrl??null}}function ct(e){return e.fillsUsed===null||e.fillsUsed===0}function ut(e){let{copy:t}=e,r=r=>dt(r,e.prescriptions,t,e.petName,e.petId??null),n=[],i=/* @__PURE__ */new Map;for(let t of[...e.offers,...e.prescribed??[]])i.set(t.offerId,t);let o=[],l=[],a=[];if(!e.searching){let t=e.prescriptions.filter(t=>t.status==="ready"&&t.offerId!==null&&e.petName(t.petId));for(let r of Xe(t.map(e=>e.offerId))){let n=i.get(r);if(!n||!n.requiresRx)continue;let s=t.filter(e=>e.offerId===r);if(s.every(ct)){o.push(n);for(let t of s)a.includes(e.petName(t.petId))||a.push(e.petName(t.petId))}else l.push(n)}}o.length>0&&n.push({key:"prescribed",title:t.prescribedFor(a),link:null,tiles:o.map(r)}),l.length>0&&n.push({key:"refill",title:t.refillSoon,link:e.packageMonth?{label:t.inMonthsPackage(e.packageMonth),to:{name:"package"}}:null,tiles:l.map(r)});let s=new Set([...o,...l].map(e=>e.offerId));return n.push({key:"all",title:e.petNames.length>0?t.forPets(e.petNames):t.allProducts,link:null,tiles:e.offers.filter(e=>!s.has(e.offerId)).map(r)}),n}function pt(e){let{copy:t,offer:r}=e,n=e.plansOn&&e.petName!==null,i=n?e.choice:"once",o=i==="monthly"?e.packageMonth?t.addToPackage(e.packageMonth):t.startPlan:t.buyNow,l=r.price!==null;return{back:{label:t.backToShop,to:{name:"shop"}},title:r.title,sub:null,price:l?ke(r.price):null,priceUnit:null,...$e(false),form:null,imageUrl:r.imageUrl??null,source:null,stockLine:l?null:t.outOfStockNow,choices:n?[{value:"monthly",title:t.everyMonthIn(e.petName),meta:t.skipOrStop},{value:"once",title:t.justOnce,meta:t.justOnceShipsNow}]:null,choice:n?i:null,onChoice:t=>e.onChoice(t==="once"?"once":"monthly"),quantity:e.quantity,onQuantity:t=>e.onQuantity(Math.min(99,Math.max(1,t))),submit:l?{label:o,busyLabel:t.adding,busy:e.busy,disabled:e.busy,onPress:e.onSubmit}:{label:t.outOfStock,disabled:true,onPress:()=>{}},error:e.error,facts:null,cards:[],aside:null,legal:t.legal}}function ht(e){let{copy:t,offer:r}=e,n=st(r.offerId,e.prescriptions).filter(t=>e.petName(t.petId)),i=(e.petId?n.find(t=>t.petId===e.petId):void 0)??n[0]??null,o=r.price!==null,l=null,a=null,s=i?.form??null;if(i){let r=lt(i);l={name:t.hasPrescription(e.petName(i.petId)),meta:r!==null&&r>0?t.refillsLeft(r):null,directions:null},a=o?{label:e.packageMonth?t.refillInPackage(e.packageMonth):t.buyNow,busyLabel:t.adding,busy:e.busy,disabled:e.busy,onPress:()=>e.onSubmit(i)}:{label:t.outOfStock,disabled:true,onPress:()=>{}}}else{let n=e.prescriptions.filter(t=>t.offerId===r.offerId&&(t.status==="being_prepared"||t.status==="too_soon")&&e.petName(t.petId)),i=(e.petId?n.find(t=>t.petId===e.petId):void 0)??n[0]??null;if(i)l={name:t.hasPrescription(e.petName(i.petId)),meta:i.status==="being_prepared"?t.rxBeingPrepared:t.rxTooSoon,directions:null},a=null,s=i.form;else{let r=(e.petId?e.petName(e.petId):null)??e.firstPetName;l=r?{name:t.noPrescriptionFor(r),meta:null,directions:null}:null,a=e.bookVisitHref?{label:t.bookVideoVisit,href:e.bookVisitHref}:null}}return{back:{label:t.backToShop,to:{name:"shop"}},stepLabel:t.prescription,title:r.title,sub:null,price:o?ke(r.price):null,priceUnit:null,...$e(true,r.title,s),form:tt(true,r.title,s),imageUrl:r.imageUrl??null,script:l,stockLine:o?null:t.outOfStockNow,submit:a,note:null,error:e.error,cards:[],aside:null,legal:t.legal}}function gt(e,t){let r=Math.round(e/30.4);return r>=1&&Math.abs(e-r*30.4)<=2?t.cadenceMonths(r):t.cadenceDays}function ft(e){let{copy:t}=e,r=e.plans.filter(e=>e.state!=="cancelled"),n=[];for(let i of r)i.lines.forEach((r,o)=>{let l=e.offers.get(r.offerId)??null,a=e.petName(r.petId),s=[l?.title??t.itemNoLongerSold,a].filter(Boolean).join(" · "),d=i.stopReason,c=d==="payment_declined"?t.declined(e.packageMonth):d&&d!=="customer"?t.stopReason(d):gt(i.cadenceDays,t);n.push({key:`${i.planId}:${o}`,title:s,meta:c,alert:!!(d&&d!=="customer"),on:i.state==="active",busy:e.busyPlan===i.planId,onToggle:t=>e.onToggle(i,t),error:e.rowError&&e.rowError.planId===i.planId&&o===0?e.rowError.line:null})});let i=r.find(e=>e.state==="active")??null,o=[],l=Ie(e.reviewBy,{weekday:true});l&&o.push({k:t.reviewByLabel,v:l});let a=Ie(i?.nextRun??null,{weekday:true});a&&o.push({k:t.ships,v:a});let s=r.some(e=>e.stopReason==="payment_declined"),d=[];e.address&&d.push({k:t.shipTo,v:it(e.address),change:{label:t.change,to:{name:"address",then:{name:"plan"}}}}),e.card&&d.push({k:t.payWith,v:Le(e.card.brand,e.card.last4),alert:s?t.declined(e.packageMonth):null,change:{label:t.change,to:{name:"card",then:{name:"plan"}}}});let c=e.packageMonth??Ce(i?.nextRun??null);return{sub:null,rows:n,emptyLine:n.length===0?t.repeatsEmpty:null,next:i&&o.length>0?{sum:o,link:e.packageMonth?{label:t.reviewMonthsPackage(e.packageMonth),to:{name:"package"}}:null}:null,delivery:d,breakCard:i?{skip:c?{label:t.skipMonth(c),ask:t.skipMonthAsk(c),body:t.skipMonthBody}:null,pause:{label:t.pausePlan,ask:t.pausePlanAsk,body:t.pausePlanBody},busy:e.breakBusy,error:e.breakError,onConfirm:e.onBreak}:null,legal:t.legal}}var mt={pending_placement:1,placement_unknown:1,placed:1,accepted:2,release_sent:2,release_unknown:2,released:2,shipped:3,delivered:5};var bt=createContext(null),yt=bt.Provider;function kt(){let e=r(bt);if(!e)throw new R("not-initialized","shop screens render inside EverfurShop");return e}function wt(e){return e.phase==="ready"&&e.value?Ce(e.value.review.shipsOn):null}function vt(e,t){return e.phase==="ready"&&e.value!==null?{phase:"ready",value:t(e.value)}:e.phase==="loading"?{phase:"loading"}:{phase:"failed",retry:e.refresh}}function Tt(e,t){return!e||e.length===0?null:(t?e.find(e=>e.paymentMethodId===t):void 0)??e[0]??null}function xt(e){let{client:t}=Oe(),r=[...new Set(e)].sort();return De(`offers-by-id:${r.join(",")}`,async()=>{let e=await Promise.all(r.map(e=>t.offer(e)));return oe(new Map(r.map((t,r)=>[t,e[r].ok?e[r].value:null])))})}function St(e,t){return t.kind==="confirmed"?null:t.kind==="needsPayerAction"?e.cardStepFailed:t.kind==="payerActionFailed"?t.message??e.cardStepFailed:t.kind==="payerActionClosed"?e.cardStepClosed:t.error.kind==="refused"&&t.error.reasonCode==="price_changed"?e.priceChanged:Fe(e,t.error)}var It=/* @__PURE__ */new WeakMap;function Ct(e,t,r){let n=It.get(e);n||(n=/* @__PURE__ */new Map,It.set(e,n)),r?n.set(t,r):n.delete(t)}function Lt(e,t){return It.get(e)?.get(t)??null}function zt(e,t){It.get(e)?.delete(t)}var At="\0card";function Wt(e){let{copy:t,petName:r,packageSource:n,payments:i,client:o}=Oe(),{tabs:a,pkg:s}=kt(),d=s.phase==="ready"?s.value?.plan??null:null,c=Me(),u=Ge(d?.destination??null),[p,h]=l(null),[g,f]=l(null),[m,b]=l(false),[y,k]=l(false),w=Ye((e,t,r)=>n.removeLine(t,r,e));if(s.phase==="ready"&&s.value===null)return{tabs:a,view:{phase:"failed",retry:s.refresh}};let v=vt(s,l=>at({pkg:l,card:Tt(c.value,l.plan.paymentMethodId),address:u.value?.address??null,copy:t,petName:r,removing:p,approving:m,placed:y,error:g,onRemove:e=>{h(e),f(null),w.run(l,e).then(e=>{h(null),e&&e.ok?s.refresh():e&&f(Fe(t,e.error))})},onApprove:()=>{m||y||(b(true),f(null),(async()=>{let r=await Ft(n,l,i);b(false);let a=St(t,r),d=r.kind!=="failed"?r.orderIds[0]:void 0;d?(k(true),Ct(o,d,a),e({name:"order",orderId:d})):(f(a),r.kind==="failed"&&r.error.kind==="refused"&&s.refresh())})())}}));return{tabs:a,view:v}}var Rt=/* @__PURE__ */new WeakMap;async function Ft(e,t,r){let n=Rt.get(t);n||(n=new fe,Rt.set(t,n));let i=await e.approve(t,n,r);return(i.kind!=="failed"||i.error.kind==="refused")&&Rt.delete(t),i}function Ht(e,t){let[r,i]=l(e);return n(()=>{let r=setTimeout(()=>i(e),t);return()=>clearTimeout(r)},[e,t]),r}function Pt(e){let{client:t,copy:r,petName:n,pets:i}=Oe(),{tabs:s,pkg:d}=kt(),[c,u]=l(e??""),p=Ht(c,250),h=Ne({text:p}),g=qe(),f=g.value??[],m=i.map(e=>e.name),b=wt(d),y=f.filter(e=>e.status==="ready"&&e.offerId!==null&&n(e.petId)).map(e=>e.offerId),k=xt(y),w=h.phase==="ready"?h.value??null:null,[v,x]=l(null),S=v&&w&&v.first===w?v:null,I=S?S.cursor:w?.nextCursor??null,C=o(false),L=a(()=>{if(!w||!I||C.current)return;C.current=true,x(e=>({first:w,offers:e&&e.first===w?e.offers:[],cursor:I,loading:true,failed:false}));let e=p.trim();t.offers({...e?{text:e}:{},cursor:I,limit:100}).then(e=>{C.current=false,x(t=>!t||t.first!==w?t:e.ok?{first:w,offers:[...t.offers,...e.value.offers],cursor:e.value.nextCursor,loading:false,failed:false}:{...t,loading:false,failed:true})})},[t,w,I,p]),z,A=g.phase==="loading"||y.length>0&&k.phase==="loading";if(w&&!A){let e=/* @__PURE__ */new Set,t=[];for(let r of[...w.offers,...S?.offers??[]])e.has(r.offerId)||(e.add(r.offerId),t.push(r));z={phase:"ready",value:ut({offers:t,prescribed:[...k.value?.values()??[]].filter(e=>e!==null),prescriptions:f,copy:r,petName:n,petNames:m,packageMonth:b,searching:p.trim()!=="",petId:i.length===1?i[0].petId:null})}}else h.phase==="loading"||A?z={phase:"loading"}:h.phase==="unavailable"?z={phase:"ready",value:[]}:z={phase:"failed",retry:h.refresh};let W=z.phase==="ready"?z.value.reduce((e,t)=>e+t.tiles.length,0):1,R=z.phase==="ready"&&W===0?p.trim()?r.noMatches(p.trim()):r.nothingHereYet:null,F=w&&I?{onMore:L,loading:S?.loading??false,failed:S?.failed??false}:null;return{tabs:s,view:{sub:null,query:c,onQuery:u,filters:[],shelves:z,empty:R,legal:r.legal,more:F}}}function Bt(e,t,r,n){return{offerId:e.offerId,quantity:n?.packCount??t,...n?.petId??r?{petId:n?.petId??r}:{},...n?{rxId:n.rxId}:{}}}function Ot(e,t){return{name:e,offerId:t.offerId,quantity:t.quantity,...t.petId?{petId:t.petId}:{},...t.rxId?{rxId:t.rxId}:{}}}function Dt(e,t,r){let{copy:n,petName:i,pets:o,client:a}=Oe(),{config:s,pkg:d,bookVisitHref:c}=kt(),u=Ve(e),p=qe(),[h,g]=l("monthly"),[f,m]=l(1),[b,y]=l(null),k=wt(d),w=je(),v=(d.phase==="ready"?d.value?.plan??null:null)??w.value?.plans.find(e=>e.state==="active")??null,x=Ye((e,t,r)=>a.updatePlan(t.planId,{idempotencyKey:e.key("add"),lines:[...t.lines.map(e=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{}})),r]})),S=(e,t)=>{if(y(null),!t)return r(Ot("buy",e));if(!v)return r(Ot("consent",e));x.run(v,e).then(e=>{e&&e.ok?(d.refresh(),r({name:"package"})):e&&y(Fe(n,e.error))})};if(u.phase==="ready"&&u.value?.requiresRx){let e=u.value,r={offer:e,copy:n,petId:t??null,petName:i,firstPetName:o[0]?.name??null,packageMonth:k,error:b,bookVisitHref:c};return p.phase==="unavailable"?{kind:"rx",view:{phase:"ready",value:ht({...r,prescriptions:[],busy:false,onSubmit:()=>{}})}}:{kind:"rx",view:vt(p,t=>ht({...r,prescriptions:t,busy:x.busy,onSubmit:t=>S(Bt(e,1,null,t),v!==null)}))}}let I=(t?i(t):null)??o[0]?.name??null;return{kind:"product",view:vt(u,e=>pt({offer:e,copy:n,petName:I,packageMonth:k,plansOn:s.recurringTermsVersion!==null,choice:h,onChoice:g,quantity:f,onQuantity:m,busy:x.busy,error:b,onSubmit:()=>S(Bt(e,f,t??o[0]?.petId??null,null),h==="monthly"&&s.recurringTermsVersion!==null&&I!==null)}))}}function Et(){let{copy:e,petName:t,client:r}=Oe(),{tabs:n,pkg:i}=kt(),o=je(),a=Me(),s=(o.value?.plans??[]).filter(e=>e.state!=="cancelled"),d=s.find(e=>e.state==="active")??s[0]??null,c=Ge(d?.destination??null),u=xt(s.flatMap(e=>e.lines.map(e=>e.offerId))),[p,h]=l(null),[g,f]=l(null),[m,b]=l(null),y=Ye((e,t,n)=>r.planAction(t.planId,{idempotencyKey:e.key(n?"resume":"pause"),operation:n?"resume":"pause"})),k=Ye((e,t,n)=>r.planAction(t.planId,{idempotencyKey:e.key(n),operation:n})),w=wt(i);if(o.phase==="unavailable")return{tabs:n,view:{phase:"failed",retry:o.refresh}};let v=vt(o,()=>ft({plans:s,offers:u.value??/* @__PURE__ */new Map,copy:e,petName:t,card:Tt(a.value,d?.paymentMethodId??null),address:c.value?.address??null,reviewBy:i.phase==="ready"?i.value?.review.approveBy??null:null,packageMonth:w,busyPlan:p,rowError:g,onToggle:(t,r)=>{h(t.planId),f(null),y.run(t,r).then(r=>{h(null),y.reset(),r&&r.ok?o.refresh():r&&f({planId:t.planId,line:Fe(e,r.error)})})},breakBusy:k.busy,breakError:m,onBreak:async t=>{if(!d)return false;b(null);let r=await k.run(d,t);return r&&r.ok?(k.reset(),o.refresh(),i.refresh(),true):(r&&b(Fe(e,r.error)),false)}}));return{tabs:n,view:v}}var Nt=/* @__PURE__ */new WeakMap;function Vt(e){return Nt.get(e)??null}function qt(e){Nt.delete(e)}function Ut(e,t){let{copy:r,client:n}=Oe(),{pkg:i}=kt(),l=e??{name:"package"},a=o(null),s=Ye(async(t,r)=>{let o=JSON.stringify(r),l=a.current?.sent===o?a.current.ref:null;if(l===null){let e=await n.addAddress(r);if(!e.ok)return le(e.error);l=e.value.ref,a.current={sent:o,ref:l}}if(e?.name==="package"||e?.name==="plan"){let r=await n.plans({limit:100});if(!r.ok)return le(r.error);let o=r.value.plans.filter(e=>e.state!=="cancelled"),a=e.name==="package"?o.find(e=>e.planId===(i.value?.plan.planId??null))??null:o.find(e=>e.state==="active")??o[0]??null,s=a?o.filter(e=>e.planId===a.planId||a.destination!==null&&e.destination===a.destination):[];for(let e of s){if(e.destination===l)continue;let r=await n.updatePlan(e.planId,{idempotencyKey:t.key(`destination:${e.planId}`),destination:l});if(!r.ok)return le(r.error)}}return oe(l)});return{back:{label:r.backToCare,to:l},busy:s.busy,error:s.error?Fe(r,s.error):null,onSave:r=>{s.run(r).then(r=>{!r||!r.ok||(e?.name==="package"||e?.name==="plan"?i.refresh():Nt.set(n,r.value),t(l))})}}}function Gt(e,t,r){let{copy:i,client:o,payments:a}=Oe(),{config:s}=kt(),d=e??{name:"plan"},[c,u]=l(()=>Lt(o,At));n(()=>zt(o,At),[o]);let p=Ye(async()=>{if(r){let e=await r();return e.ok?oe(true):(u(e.closed?i.cardStepClosed:e.message??i.cardStepFailed),oe(false))}let e=await o.setupPaymentMethod();if(!e.ok||!a)return e.ok?le({kind:"invalidRequest"}):le(e.error);let t=await a.confirmCardSetup(e.value.payerAction);return t.ok?oe(true):(u(t.closed?i.cardStepClosed:t.message??i.cardStepFailed),oe(false))}),h=r?true:a!==null&&s.stripePublishableKey!==null;return{back:{label:i.backToCare,to:d},error:c??(p.error?Fe(i,p.error):null),start:h?{label:i.cardStart,busyLabel:i.saving,busy:p.busy,disabled:p.busy,onPress:()=>{u(null),p.run().then(e=>{e&&e.ok&&e.value&&t(d)})}}:null}}function Mt(e){let{copy:t,saveProfileName:r,onProfileNameRequired:i}=Oe(),[a,s]=l(false),[d,c]=l(false),[u,p]=l(null),h=o(e);h.current=e;let g=o(false),f=o(true);return n(()=>(f.current=true,()=>{f.current=false}),[]),{view:a?{line:t.nameMissing,form:r?{firstLabel:t.firstName,lastLabel:t.lastName,saveLabel:t.saveName,busy:d,error:u,onSave:e=>{let n=e.firstName.trim(),i=e.lastName.trim();g.current||!n||!i||(g.current=true,c(true),p(null),r({firstName:n,lastName:i}).then(e=>e,()=>false).then(e=>{if(g.current=false,!!f.current){if(c(false),!e){p(t.actionFailed);return}s(false),h.current()}}))}}:null,handoff:!r&&i?{label:t.addName,onPress:i}:null}:null,raise:e=>ge(e)?(p(null),s(true),true):false,clear:()=>s(false)}}function Kt(){let e=Ue(),t=Me(),r=e.value?.find(e=>e.isDefault&&e.isComplete)??e.value?.find(e=>e.isComplete)??null,n=Tt(t.value,null);return{addresses:e,cards:t,address:r,card:n}}function jt(e,t){return t.phase==="unavailable"?e.actionFailed:t.phase==="failed"&&t.error?Fe(e,t.error):null}function Zt(e,t){let{copy:r,client:n,payments:a,petName:s}=Oe(),d=Ve(e.offerId),{address:c,card:u}=Kt(),p=i(()=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.rxId?{rxId:e.rxId}:{}}),[e.offerId,e.quantity,e.petId,e.rxId]),h=De(c?`quote:${c.ref}:${JSON.stringify(p)}`:null,()=>n.quote({lines:[p],shipTo:c.ref})),[g,f]=l(null),[m,b]=l(null),[y,k]=l(false),w=Ye(async e=>{let t=await n.createCheckout({idempotencyKey:e.key("draft"),lines:[p],shipTo:c.ref});if(!t.ok)return le(t.error);if((g??h.value?.total??null)!==t.value.total)return f(t.value.total),le({kind:"refused",status:409,reasonCode:"price_changed",message:null});let r=await me(e=>n.confirmCheckout(t.value.checkoutId,{idempotencyKey:e,expectedTotal:t.value.total,paymentMethodId:u.paymentMethodId}),e,a);return r.kind==="failed"?le(r.error):oe(r)}),v=[...c?[]:[{label:r.addressNeeded,to:{name:"address",then:e}}],...u?[]:[{label:r.cardTitle,to:{name:"card",then:e}}]],x=h.value,S=g??x?.total??null,I=o(()=>{}),C=Mt(()=>I.current()),L=()=>{y||(b(null),C.clear(),w.run().then(e=>{if(!e)return;let i=e.ok?e.value:{kind:"failed",error:e.error},o=i.kind!=="failed"?i.orderIds[0]:void 0;o?(k(true),Ct(n,o,St(r,i)),t({name:"order",orderId:o})):i.kind==="failed"&&C.raise(i.error)||b(St(r,i))}))};return I.current=L,{back:{label:r.backToShop,to:{name:"product",offerId:e.offerId}},title:r.confirmTitle,lines:d.value?[{key:p.offerId,name:d.value.title,meta:s(p.petId),price:d.value.price!==null?ke(d.value.price*p.quantity):null,form:tt(d.value.requiresRx,d.value.title)}]:[],sum:x&&S!==null?[{k:r.shipping,v:x.shipping===0?r.free:ke(x.shipping)},{k:r.tax,v:ke(x.tax)},{k:r.total,v:ke(S)}]:null,needs:v,pay:c&&u&&x?{label:r.confirmPay,busyLabel:r.saving,busy:w.busy,disabled:w.busy||y,onPress:L}:null,note:u?r.chargedWhenShips(Le(u.brand,u.last4)):null,error:m??jt(r,h),nameStep:C.view}}function Yt(e,t){let{copy:r,client:n}=Oe(),{config:i,pkg:o}=kt(),{address:l,card:a}=Kt(),s=Ye(t=>n.createPlan({idempotencyKey:t.key("create"),cadenceDays:30,destination:l.ref,paymentMethodId:a.paymentMethodId,consentTermsVersion:i.recurringTermsVersion,lines:[{offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.rxId?{rxId:e.rxId}:{}}]})),d=[...l?[]:[{label:r.addressNeeded,to:{name:"address",then:e}}],...a?[]:[{label:r.cardTitle,to:{name:"card",then:e}}]];return{back:{label:r.backToShop,to:{name:"product",offerId:e.offerId}},terms:i.recurringTermsUrl?{label:r.consentTermsLink,href:i.recurringTermsUrl}:null,needs:d,error:s.error?Fe(r,s.error):null,agree:l&&a&&i.recurringTermsVersion?{label:r.consentAgree,busyLabel:r.saving,busy:s.busy,disabled:s.busy,onPress:()=>{s.run().then(e=>{e&&e.ok&&(o.refresh(),t({name:"plan"}))})}}:null}}var Jt=["ordered","shipped","out_for_delivery","delivered"];function Xt(e){return e.paymentStatus==="failed"||e.canPay&&e.paymentStatus==="requires_action"}function Qt(e){return!e.canPay&&(e.paymentStatus==="authorized"||e.paymentStatus==="captured")}function _t(e){return e.paymentStatus==="authorized"||e.paymentStatus==="captured"}function $t(e,t,r,n=false){if(n)return{label:t.paymentFailed,tone:"risk"};let i=t.orderStatus[e]??r.orderSteps[0];return e==="delivered"?{label:i,tone:"done"}:e==="cancelled"||e==="rejected"?{label:i,tone:"quiet"}:e==="needs_support"?{label:i,tone:"risk"}:{label:i,tone:"wait"}}function er(e){if(e.tracking)return e.tracking;let t=null;for(let r of e.shipments)for(let e of r.tracking)(!t||(e.occurredAt??"")>(t.occurredAt??""))&&(t=e);return t}function tr(e){return e.arrivesBy??er(e)?.deliveryBy??null}function rr(e){let t=e.steps?.find(e=>e.key==="delivered");if(t?.at)return t.at;for(let t of e.shipments){let e=t.tracking.find(e=>e.status==="delivered");if(e?.occurredAt)return e.occurredAt}return null}function nr(e){return e==="cancelled"||e==="rejected"||e==="needs_support"}function ir(e,t,r){let n=e.summary.status;return Xt(e)?t.paymentFailed:n==="delivered"?r.orderSteps[3]:nr(n)?t.orderStatus[n]??r.orderSteps[0]:n==="shipped"?r.orderSteps[1]:r.orderSteps[0]}function or(e,t,r){let n=e.summary.status;if(nr(n)||Xt(e))return null;if(n==="delivered"){let t=Ie(rr(e),{when:true});return t?r.deliveredOn(t):null}let i=Ie(tr(e),{weekday:true});if(i)return r.arrivesBy(i);let o=t.orderStatus[n]??null;return o===ir(e,t,r)?null:o}function lr(e){return e==="delivered"||nr(e)}function ar(e,t){let r=e.summary.status;if(r==="cancelled"||r==="rejected")return null;let n=e.steps&&e.steps.length>0?e.steps:null,i=er(e),o=e.shipments.flatMap(e=>e.tracking).map(e=>e.occurredAt).filter(e=>!!e).sort()[0]??null,l={ordered:{done:true,at:e.summary.placedAt},shipped:{done:r==="shipped"||r==="delivered"||!!i,at:o},out_for_delivery:{done:r==="delivered",at:null},delivered:{done:r==="delivered",at:rr(e)}},a=Ie(tr(e),{weekday:true}),s=Jt.map((e,r)=>{let i=n?.find(t=>t.key===e),o=i?i.done:l[e].done,s=i?i.at:l[e].at,d=o?Ie(s,{when:true}):e==="delivered"&&a?t.expected(a):null;return{key:e,title:t.orderSteps[r],line:d,done:o}}),d=s.reduce((e,t,r)=>t.done?r:e,-1);return s.map(({done:e,...t},r)=>({...t,state:e?r===d&&r<s.length-1?"now":"done":"next"}))}function sr(e){return e.map(e=>e.title).join(", ")}function dr(e,t,r=ke(e.total)){let n=Ie(e.placedAt);return n?`${t.placed(n)} · ${r}`:r}var cr={body:{paddingTop:8,paddingRight:16,paddingLeft:16},pushBody:{paddingRight:16,paddingLeft:16},subtabs:{backgroundColor:"#ffffff"},subtab:{minHeight:44,rowGap:6,columnGap:6},subtabCurrent:{minHeight:44,rowGap:6,columnGap:6},titleBlock:{paddingTop:4,rowGap:2,columnGap:2},screenTitle:{},screenMeta:{},stack:{marginTop:12,rowGap:12,columnGap:12},card:{paddingTop:16,paddingRight:16,paddingBottom:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},cardHead:{marginBottom:12,rowGap:8,columnGap:16},cardTitle:{marginBottom:12},cardTitleInHead:{},cardLink:{},cardLinkAfterNote:{marginTop:12,marginBottom:2.34},forLabel:{marginTop:4,marginBottom:8},forLabelNext:{marginTop:16,marginBottom:8},itemsLiFirst:{paddingBottom:16,rowGap:12,columnGap:12},itemsLiMid:{paddingTop:16,paddingBottom:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},itemsLiLast:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},thumb:{borderRadius:10,backgroundColor:"#eaeef6",width:48,height:48},thumbIcon:{width:22,height:22},thumbPink:{borderRadius:10,backgroundColor:"#ffeae8"},thumbYellow:{borderRadius:10,backgroundColor:"#fcf0d6"},thumbSage:{borderRadius:10,backgroundColor:"#e6ece8"},itemsName:{rowGap:4,columnGap:8},itemsMeta:{marginTop:2},itemsActs:{marginTop:6,rowGap:16,columnGap:16},itemsActLink:{},itemsActButton:{},itemsEnd:{rowGap:4,columnGap:4},itemsPrice:{},pill:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#eaeef6",minHeight:24},pillSoon:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},btnRow:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:36,rowGap:8,columnGap:8},btnRowIcon:{width:17,height:17},btnRowLabel:{},sumTotal:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},sumRowFirst:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumRowLast:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumDt:{},sumDd:{},sumDdTotal:{},noteAfterSum:{marginTop:12},rowsLiFirst:{paddingBottom:16,rowGap:8,columnGap:16},rowsLiNext:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:8,columnGap:16},rowsK:{},rowsV:{marginTop:2},rowsMeta:{marginTop:2},legal:{marginTop:32},legalText:{},traybar:{paddingTop:12,paddingRight:16,paddingBottom:8,paddingLeft:16,backgroundColor:"#ffffff",rowGap:6,columnGap:6},btnInk:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#10462e",borderRadius:999,backgroundColor:"#10462e",minHeight:50,rowGap:8,columnGap:8},traybarFine:{},input:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",minHeight:52,rowGap:10,columnGap:10},inputIcon:{width:20,height:20},inputText:{paddingTop:1,paddingRight:2,paddingBottom:1,paddingLeft:2},inputPlaceholder:{},filters:{paddingBottom:2,rowGap:8,columnGap:8},filter:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#e4e4e4",borderRadius:999,minHeight:36},filterCurrent:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#10462e",borderRadius:999,backgroundColor:"#ffeae8",minHeight:36},sectionHead:{marginTop:8,rowGap:8,columnGap:12},prods:{rowGap:16,columnGap:12},prod:{rowGap:12,columnGap:12},prodImg:{borderRadius:10,backgroundColor:"#ffeae8",aspectRatio:1},prodIcon:{width:36,height:36},prodTags:{rowGap:6,columnGap:6,position:"absolute",top:8,left:8},prodBody:{rowGap:4,columnGap:4},prodName:{},prodMeta:{},prodPrice:{marginTop:4,rowGap:8,columnGap:8},pillClear:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},pillPlain:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},pillOverdue:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},hero:{borderRadius:20,backgroundColor:"#fcf0d6",aspectRatio:1.6},heroIcon:{width:56,height:56},source:{rowGap:8,columnGap:8},sourceIcon:{marginTop:2,width:16,height:16},sourceBold:{},sourceLink:{},choices:{rowGap:8,columnGap:8},choiceCurrent:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffeae8",rowGap:12,columnGap:12},choice:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",rowGap:12,columnGap:12},radioOn:{borderWidth:6,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20},radioOff:{borderWidth:1,borderColor:"#819d90",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20},choiceText:{},choiceTitle:{},choiceMeta:{marginTop:2},facts:{marginTop:12,rowGap:8,columnGap:8},factsLi:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,borderRadius:10,backgroundColor:"#e6ece8",rowGap:4,columnGap:4},factsLiHer:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,borderRadius:10,backgroundColor:"#fcf0d6",rowGap:4,columnGap:4},factsK:{},factsN:{},factsUnit:{},noteAfterFacts:{marginTop:12},cardLead:{marginBottom:12},person:{rowGap:12,columnGap:16},avatar:{borderRadius:18,backgroundColor:"#ffffff",width:36,height:36},personName:{},personMeta:{},sourceInCard:{marginTop:12,rowGap:8,columnGap:8},sourceInCardIcon:{marginTop:2,width:16,height:16},noteAfterSource:{marginTop:8},rxLead:{marginBottom:12},btnOutlineSm:{marginTop:12,paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:46,rowGap:8,columnGap:8},btnOutlineSmIcon:{width:20,height:20},noteStandalone:{},noteLink:{},sumPlain:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},sumPlainRowFirst:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumPlainRowLast:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumPlainDd:{},planRowsLiFirst:{paddingTop:12,paddingBottom:12,rowGap:8,columnGap:16},planRowsLiNext:{paddingTop:12,paddingBottom:12,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:8,columnGap:16},switch:{width:48,height:28},switchTrack:{borderRadius:999,backgroundColor:"#10462e",width:48,height:28},switchKnob:{borderRadius:11,backgroundColor:"#ffffff",position:"absolute",top:3,left:3,transform:[{translateX:20}],width:22,height:22},switchTrackOff:{borderRadius:999,backgroundColor:"#d0d6d3",width:48,height:28},switchKnobOff:{borderRadius:11,backgroundColor:"#ffffff",position:"absolute",top:3,left:3,width:22,height:22},breaks:{marginTop:12,rowGap:12,columnGap:24},btnSm:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:46,rowGap:8,columnGap:8},linkDanger:{},sheet:{borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:"#ffffff"},sheetBackdrop:{backgroundColor:"rgba(0, 0, 0, 0.32)",position:"absolute"},sheetGrab:{height:20},sheetGrabBar:{borderRadius:3,backgroundColor:"#c9c9c9",width:36,height:5},sheetHead:{paddingTop:4,paddingRight:16,paddingBottom:12,paddingLeft:16,rowGap:12,columnGap:12},sheetClose:{paddingTop:1,paddingRight:6,paddingBottom:1,paddingLeft:6,borderRadius:18,backgroundColor:"#e6ece8",width:36,height:36},sheetCloseIcon:{width:20,height:20},sheetBody:{paddingRight:16,paddingBottom:24,paddingLeft:16,rowGap:12,columnGap:12},sheetText:{},sheetActions:{marginTop:16,rowGap:8,columnGap:8},btnDanger:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#c03410",borderRadius:999,backgroundColor:"#ffffff",minHeight:46,rowGap:8,columnGap:8},btnOutline:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:52,rowGap:8,columnGap:8},rec:{marginRight:-8,marginLeft:-8,rowGap:4,columnGap:4},recRow:{paddingTop:10,paddingRight:8,paddingBottom:10,paddingLeft:8,borderRadius:10,rowGap:12,columnGap:12},recIcon:{width:20,height:20},recText:{rowGap:2,columnGap:2},recTitle:{},recMeta:{},recEnd:{rowGap:8,columnGap:8},trackerLi:{paddingBottom:24,rowGap:16,columnGap:16},trackerLiLast:{rowGap:16,columnGap:16},trackerLineDone:{borderRadius:1,backgroundColor:"#10462e",position:"absolute",top:30,left:13,bottom:2,width:2},trackerLine:{borderRadius:1,backgroundColor:"#e4e4e4",position:"absolute",top:30,left:13,bottom:2,width:2},dotDone:{borderWidth:2,borderColor:"#10462e",borderRadius:14,backgroundColor:"#10462e",width:28,height:28},dotDoneIcon:{width:16,height:16},dotNow:{borderWidth:2,borderColor:"#10462e",borderRadius:14,backgroundColor:"#ffffff",width:28,height:28},dotNowCore:{borderRadius:5,backgroundColor:"#07c168",width:10,height:10},dotNext:{borderWidth:2,borderColor:"#e4e4e4",borderRadius:14,backgroundColor:"#ffffff",width:28,height:28},trackerTitle:{paddingTop:3,rowGap:4,columnGap:8},trackerTitleNext:{paddingTop:3,rowGap:4,columnGap:8},trackerWhen:{marginTop:2},trackerText:{marginTop:2},pillStable:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#dcf6ea",minHeight:24},trackItemsEnd:{rowGap:4,columnGap:4},trackItemsLiFirst:{paddingBottom:16,rowGap:12,columnGap:12},trackItemsLiLast:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},noteAfterTotal:{marginTop:8},rowLink:{paddingTop:16,paddingRight:24,paddingBottom:16,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff",rowGap:12,columnGap:12},rowLinkIcon:{width:22,height:22},rowLinkChevron:{width:20,height:20},ghost:{marginTop:16,rowGap:10,columnGap:10},ghostBar:{borderRadius:999,backgroundColor:"#e6ece8",height:12},field:{rowGap:6,columnGap:6},fieldLabel:{},fieldInput:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",minHeight:52,rowGap:10,columnGap:10},fieldInputText:{paddingTop:1,paddingRight:2,paddingBottom:1,paddingLeft:2}},ur={body:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},pushBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtabs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtab:{color:"#6b6b6b",fontSize:15,fontWeight:"500",lineHeight:23.25},subtabCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25},titleBlock:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},screenTitle:{color:"#10462e",fontSize:22,fontWeight:"500",lineHeight:26.390625,letterSpacing:-.33},screenMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},stack:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},card:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},cardHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},cardTitle:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},cardTitleInHead:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},cardLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},cardLinkAfterNote:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},forLabel:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:16.796875,letterSpacing:.72,textTransform:"uppercase"},forLabelNext:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:16.796875,letterSpacing:.72,textTransform:"uppercase"},itemsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsLiMid:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumb:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbPink:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbYellow:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbSage:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsName:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},itemsMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},itemsActs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsActLink:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:20.140625,textDecorationLine:"underline"},itemsActButton:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:20.140625,textDecorationLine:"underline",textAlign:"center"},itemsEnd:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,fontVariant:["tabular-nums"]},itemsPrice:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:26.34375,fontVariant:["tabular-nums"]},pill:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillSoon:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},btnRow:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},btnRowIcon:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},btnRowLabel:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},sumTotal:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumRowFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumRowLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumDt:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:23.25},sumDd:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21,textAlign:"right"},sumDdTotal:{color:"#10462e",fontSize:20,fontWeight:"700",lineHeight:28,textAlign:"right"},noteAfterSum:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rowsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},rowsLiNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},rowsK:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},rowsV:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:21.75},rowsMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},legal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},legalText:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},traybar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnInk:{color:"#ffffff",fontSize:17,fontWeight:"700",lineHeight:17,textAlign:"center"},traybarFine:{color:"#6b6b6b",fontSize:12,fontWeight:"400",lineHeight:15.59375,textAlign:"center"},input:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputIcon:{color:"#6b6b6b",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputPlaceholder:{color:"#757575",fontSize:17,fontWeight:"400"},filters:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},filter:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:18},filterCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:18},sectionHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prods:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prod:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodImg:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodTags:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodName:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:19.5},prodMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},prodPrice:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25,fontVariant:["tabular-nums"]},pillClear:{color:"#07c168",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillPlain:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillOverdue:{color:"#c03410",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},hero:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},heroIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},source:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceIcon:{color:"#819d90",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceBold:{color:"#6b6b6b",fontSize:13,fontWeight:"700",lineHeight:19.5},sourceLink:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:19.5,textDecorationLine:"underline"},choices:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceCurrent:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choice:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},radioOn:{color:"#000000",fontSize:13.333,fontWeight:"400"},radioOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},choiceText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},choiceMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},facts:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsLi:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsLiHer:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsK:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},factsN:{color:"#10462e",fontSize:20,fontWeight:"700",lineHeight:22,letterSpacing:-.4,fontVariant:["tabular-nums"]},factsUnit:{color:"#6b6b6b",fontSize:13,fontWeight:"500",lineHeight:14.296875,letterSpacing:-.4,fontVariant:["tabular-nums"]},noteAfterFacts:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},cardLead:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},person:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},avatar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},personName:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},personMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},sourceInCard:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceInCardIcon:{color:"#819d90",fontSize:13,fontWeight:"400",lineHeight:19.5},noteAfterSource:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rxLead:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},btnOutlineSm:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},btnOutlineSmIcon:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},noteStandalone:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},noteLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},sumPlain:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainRowFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainRowLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainDd:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21,textAlign:"right"},planRowsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},planRowsLiNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switch:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switchTrack:{color:"#000000",fontSize:13.333,fontWeight:"400"},switchKnob:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switchTrackOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},switchKnobOff:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},breaks:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnSm:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},linkDanger:{color:"#c03410",fontSize:15,fontWeight:"700",lineHeight:23.25,textDecorationLine:"underline",textAlign:"center"},sheet:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetBackdrop:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrab:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrabBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetClose:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetCloseIcon:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:25.5},sheetActions:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnDanger:{color:"#c03410",fontSize:15,fontWeight:"700",lineHeight:23.25,textAlign:"center"},btnOutline:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:17,textAlign:"center"},rec:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recRow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recIcon:{color:"#6b6b6b",fontSize:17,fontWeight:"400",lineHeight:26.34375},recText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},recMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},recEnd:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:23.25},trackerLi:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLineDone:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLine:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotDone:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotDoneIcon:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNowCore:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},trackerTitleNext:{color:"#6b6b6b",fontSize:17,fontWeight:"700",lineHeight:22.09375},trackerWhen:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},trackerText:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},pillStable:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},trackItemsEnd:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,fontVariant:["tabular-nums"]},trackItemsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackItemsLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},noteAfterTotal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rowLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},rowLinkIcon:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},rowLinkChevron:{color:"#819d90",fontSize:15,fontWeight:"700",lineHeight:20.25},ghost:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},ghostBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},field:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},fieldLabel:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},fieldInput:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},fieldInputText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375}},pr={body:{font:"sans"},pushBody:{font:"sans"},subtabs:{font:"sans",lineBottom:{width:1,color:"#e4e4e4"}},subtab:{font:"sans"},subtabCurrent:{font:"sans",insetBottom:{width:3,color:"#07c168"}},titleBlock:{font:"sans"},screenTitle:{font:"sans",wrap:"balance"},screenMeta:{font:"mono",wrap:"pretty"},stack:{font:"sans"},card:{font:"sans"},cardHead:{font:"sans"},cardTitle:{font:"sans"},cardTitleInHead:{font:"sans"},cardLink:{font:"sans"},cardLinkAfterNote:{font:"sans"},forLabel:{font:"mono"},forLabelNext:{font:"mono"},itemsLiFirst:{font:"sans"},itemsLiMid:{font:"sans"},itemsLiLast:{font:"sans"},thumb:{font:"sans"},thumbIcon:{font:"sans"},thumbPink:{font:"sans"},thumbYellow:{font:"sans"},thumbSage:{font:"sans"},itemsName:{font:"sans"},itemsMeta:{font:"sans"},itemsActs:{font:"sans"},itemsActLink:{font:"sans",underlineOffset:3},itemsActButton:{font:"sans",underlineOffset:3},itemsEnd:{font:"sans"},itemsPrice:{font:"sans"},pill:{font:"mono"},pillSoon:{font:"mono",ring:{width:1.25,color:"#f6d892"}},btnRow:{font:"sans"},btnRowIcon:{font:"sans"},btnRowLabel:{font:"sans"},sumTotal:{font:"sans"},sumRowFirst:{font:"sans"},sumRowLast:{font:"sans"},sumDt:{font:"sans"},sumDd:{font:"sans"},sumDdTotal:{font:"sans"},noteAfterSum:{font:"sans"},rowsLiFirst:{font:"sans"},rowsLiNext:{font:"sans"},rowsK:{font:"sans"},rowsV:{font:"sans"},rowsMeta:{font:"sans"},legal:{font:"sans"},legalText:{font:"sans"},traybar:{font:"sans",lineTop:{width:1,color:"#e4e4e4"}},btnInk:{font:"sans"},traybarFine:{font:"sans"},input:{font:"sans"},inputIcon:{font:"sans"},inputText:{font:"sans"},inputPlaceholder:{font:"sans"},filters:{font:"sans"},filter:{font:"sans"},filterCurrent:{font:"sans"},sectionHead:{font:"sans"},prods:{font:"sans"},prod:{font:"sans"},prodImg:{font:"sans"},prodIcon:{font:"sans"},prodTags:{font:"sans"},prodBody:{font:"sans"},prodName:{font:"sans"},prodMeta:{font:"sans"},prodPrice:{font:"sans"},pillClear:{font:"mono",ring:{width:1.5,color:"#07c168"}},pillPlain:{font:"mono",ring:{width:1.5,color:"rgba(16, 70, 46, 0.2)"}},pillOverdue:{font:"mono",ring:{width:1.25,color:"#c03410"}},hero:{font:"sans"},heroIcon:{font:"sans"},source:{font:"sans"},sourceIcon:{font:"sans"},sourceBold:{font:"sans"},sourceLink:{font:"sans",underlineOffset:3},choices:{font:"sans"},choiceCurrent:{font:"sans"},choice:{font:"sans"},radioOn:{font:"sans"},radioOff:{font:"sans"},choiceText:{font:"sans"},choiceTitle:{font:"sans"},choiceMeta:{font:"sans"},facts:{font:"sans"},factsLi:{font:"sans"},factsLiHer:{font:"sans"},factsK:{font:"sans"},factsN:{font:"sans"},factsUnit:{font:"sans"},noteAfterFacts:{font:"sans"},cardLead:{font:"sans"},person:{font:"sans"},avatar:{font:"sans",ring:{width:1,color:"#e4e4e4"}},personName:{font:"sans"},personMeta:{font:"sans"},sourceInCard:{font:"sans"},sourceInCardIcon:{font:"sans"},noteAfterSource:{font:"sans"},rxLead:{font:"sans"},btnOutlineSm:{font:"sans"},btnOutlineSmIcon:{font:"sans"},noteStandalone:{font:"sans"},noteLink:{font:"sans"},sumPlain:{font:"sans"},sumPlainRowFirst:{font:"sans"},sumPlainRowLast:{font:"sans"},sumPlainDd:{font:"sans"},planRowsLiFirst:{font:"sans"},planRowsLiNext:{font:"sans"},switch:{font:"sans"},switchTrack:{font:"sans"},switchKnob:{font:"sans",drop:{x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}},switchTrackOff:{font:"sans"},switchKnobOff:{font:"sans",drop:{x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}},breaks:{font:"sans"},btnSm:{font:"sans"},linkDanger:{font:"sans",underlineOffset:3},sheet:{font:"sans"},sheetBackdrop:{font:"sans"},sheetGrab:{font:"sans"},sheetGrabBar:{font:"sans"},sheetHead:{font:"sans"},sheetClose:{font:"sans"},sheetCloseIcon:{font:"sans"},sheetBody:{font:"sans"},sheetText:{font:"sans"},sheetActions:{font:"sans"},btnDanger:{font:"sans"},btnOutline:{font:"sans"},rec:{font:"sans"},recRow:{font:"sans"},recIcon:{font:"sans"},recText:{font:"sans"},recTitle:{font:"sans"},recMeta:{font:"sans"},recEnd:{font:"sans"},trackerLi:{font:"sans"},trackerLiLast:{font:"sans"},trackerLineDone:{font:"sans"},trackerLine:{font:"sans"},dotDone:{font:"sans"},dotDoneIcon:{font:"sans"},dotNow:{font:"sans"},dotNowCore:{font:"sans"},dotNext:{font:"sans"},trackerTitle:{font:"sans"},trackerTitleNext:{font:"sans"},trackerWhen:{font:"sans"},trackerText:{font:"sans"},pillStable:{font:"mono"},trackItemsEnd:{font:"sans"},trackItemsLiFirst:{font:"sans"},trackItemsLiLast:{font:"sans"},noteAfterTotal:{font:"sans"},rowLink:{font:"sans"},rowLinkIcon:{font:"sans"},rowLinkChevron:{font:"sans"},ghost:{font:"sans"},ghostBar:{font:"sans"},field:{font:"sans"},fieldLabel:{font:"sans"},fieldInput:{font:"sans"},fieldInputText:{font:"sans"}},hr={shield:{size:56,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAACoCAQAAADeQm0/AAAK6klEQVR4Ae3BCbBVhWEA0HPveyDyBSGWzR2GuOMSo6VVo3XBoo5RxAJGDG6ALT/5T2syMdFGo0mclP4X/49bVBStSxBS9QOJURGraINRsxRRcWNxQVwG+YAs0uk4nZjKff/e9+7bnHeOhoaGhoaGhoaGOAK17XAjHWEnA/GW5R4z1wI1LFCrBppkoh191jLXu9EqNSlQm85wk21F63SWWWpQRi36mR/rppDuxtjWQ2pORq3p52GniuNwX3G/9WpKRm05wOP2Ftdg48z1rhqSUUvGmK2PJPo42x+8qGZk1IrtXOcqWUl1N04f82xWEwK14RAz7KZ4zxvjj2pARvVlXe5WfZWin3N0+i9VF6i2L7rHQdLxmDHeUlWBaurpEhfpIT2rXeEaG1VNoFoC4/3IjtL3kpzZqiRQHQe7wcHK52FTLFYFgco73jeNlMR/O9NGtztIEjNd4zEVFqik7s6Us59kOozViR6mO10yz/ipu21QMYFK2c0FztZfUt9zlT/7lqsltco013tFRQTKL2uUiY4WSKrTWB3+0gnu0lty89xglo3KLFBO3Y1wmpN9QTFedqIXfNZQcw1VjPfd714P2qBsAuUxxEH+wYmaF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TyWTyz/oDUB1ZN9kNGUEAAAAASUVORK5CYII="},file:{size:16,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAABtElEQVR4Ad3Bv2rUcAAA4K+/ZndUXARBIp3cxEkQHYq4aOmiHQTvQH0GIw30DYTK3WhdgqBu/sHdQe2mzQNY6wM4V0oI5rze7+5yZNDv889bMm7DTZecNN03W56LWjLqlOeumMcD2yKWjXrjsvlct++LiZY13fPQ/G746ZMJEk23VF54ZM9kh0Zt46ljBU2XVB7bM4u+2raeYwVNJ1S+ms1QX22g5xjBYob6agM9Y4JFDfXVBnr+EixuqK820DMiaONAZUVl6IHawG0NQRu7KpvOqWy7r7alIdHGwKoja9aMO6MhaOOVD2aUiFmXS1VKmULtjmeumkEQk0vVUrk/Dlyz4aV9UyTa27Fj1KExQUymVCtlWkjEFAoLCjoWdCzoWCJmXS4VV8oUJgpicqlpUrmIoGNBTKY0TSkTkYgpFBYUdCzoWNCxRMy6XCqulClMFMTkUtOkchFBx4KYTGmaUiYiEVMoLCjoWNCxoGNB04HKijZWVH5oCJp2VTadM6/zNlU+a0g0Da06smZNe080BE0vfbCo195qWDbqnQvOau+9u35pWDLujpsuOm0+3330yo7/zm9pA1VwIYzMRQAAAABJRU5ErkJggg=="},message:{size:20,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAAD+UlEQVR4Ae3Bf4iW9QEA8M/7vVfIS67uamWlcZW1cE7SrD8qNK2z2hzbXJ60QtoUrP5IiiiSKJIiCIoo65/KiDIz1jbJ+WtalDXH8kedyVwL71REa8w8Uy/jrDievu/zvK/v/X76z8/HCSf8WAr65wzXmORnGtSpU2efXfbZY7s1tuuHgr76rWtdbbTutVltueX6pKAvrrHQxfpmk7k26VVBby72pBv0x3dedZ+9elTQkwYLzFXUfwc1W60HBd1rtN4IlfZYYa1W++33pQb16l3kJtNUesgC3SrozgjrNcra4Qlrfaq6er93j0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Xab7TGmaTDLZLpJZ51RPKrNIJbSYZYCkNnhHu3navadbYZE9NBur2Z4yklrpeC8qu0hl7O95w5RqjYUWWmihT6y00krL0KRRo0Yj7WF3u9ldf6X6r+/oUAGRStneow5Um+Y73r9UREaldLnXQM1qTbcbnW6FCsmonI2e85Zj9FM7upzodhtVTKTStvdH+6kN833XEhUVqbwGl7raQNXV5adutkGFRdIxwi+dLVId3e5zpWVSEEnPWPfYU/reNsl8KYmkKXaSqcZIT7vrPalbaiLpO8xUR6i8512vVcoi1THKec62rcpY4gHTLVIFkeqJtZjoZAOUzypPuN8c3aokUm39NGsxwVibKd1a87RpNc9aVRWpFf2NM8Eh9jVE8ZZZ4BWt5vpSTYjUnhF2t6c97GawzQ2wuc01YoXVVltttc+97z3vesdngiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgoL+D/kco6VOaO7DAAAAAElFTkSuQmCC"}};function gr(e,t){return e?typeof e=="string"?{fontFamily:e,fontWeight:t}:{fontFamily:t==="700"?e.bold??e.regular:t==="500"?e.medium??e.regular:e.regular}:{fontWeight:t}}function fr(e){let t=/* @__PURE__ */new Map,r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,i=t=>{let r=n.get(t);if(!r){let{fontWeight:i,...o}=ur[t];r={...o,...gr(pr[t].font==="mono"?e.fonts?.mono:e.fonts?.sans,i)},n.set(t,r)}return r};return{options:e,v(e){let r=t.get(e);return r||(r={...cr[e]},t.set(e,r)),r},t(e){let t=r.get(e);return t||(t={...cr[e],...i(e)},r.set(e,t)),t},tx:i}}var mr=/* @__PURE__ */fr({}),br=/* @__PURE__ */createContext(mr);function ShopKitProvider({fonts:e,renderIcon:r,children:n}){let o=i(()=>fr({...e?{fonts:e}:{},...r?{renderIcon:r}:{}}),[e,r]);return t(br.Provider,{value:o},n)}function yr(){return r(br)}function kr(e){return ur[e].color??"#000000"}function Decor({k:e}){let r=pr[e],n=cr[e].borderRadius??0,i=[];if(r.ring){let e=k.OS==="web"?{boxShadow:`inset 0 0 0 ${r.ring.width}px ${r.ring.color}`}:{borderWidth:r.ring.width,borderColor:r.ring.color};i.push(t(g,{key:"ring",pointerEvents:"none",style:[{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:n},e]}))}return r.insetBottom&&i.push(t(g,{key:"bar",pointerEvents:"none",style:{position:"absolute",right:0,bottom:0,left:0,height:r.insetBottom.width,backgroundColor:r.insetBottom.color}})),r.lineTop&&i.push(t(g,{key:"top",pointerEvents:"none",style:{position:"absolute",right:0,top:-r.lineTop.width,left:0,height:r.lineTop.width,backgroundColor:r.lineTop.color}})),r.lineBottom&&i.push(t(g,{key:"bottom",pointerEvents:"none",style:{position:"absolute",right:0,bottom:-r.lineBottom.width,left:0,height:r.lineBottom.width,backgroundColor:r.lineBottom.color}})),i.length?i:null}function wr(e){let t=pr[e].drop;return t?k.OS==="web"?{boxShadow:`${t.x}px ${t.y}px ${t.blur}px ${t.spread}px ${t.color}`}:{shadowColor:t.color,shadowOpacity:1,shadowRadius:t.blur/2,shadowOffset:{width:t.x,height:t.y}}:null}function Icon({name:e,size:r,color:n,style:i}){let o=yr().options.renderIcon?.({name:e,size:r,color:n});if(o!=null)return t(g,{style:[{width:r,height:r},i],pointerEvents:"none"},o);let l=[{width:r,height:r,tintColor:n},i];return t(w,{source:{uri:hr[e].uri},style:l,accessible:false,importantForAccessibility:"no",resizeMode:"contain"})}function PartIcon({name:e,k:r,inkKey:n,style:i}){let o=cr[r];return t(Icon,{name:e,size:o.width??24,color:kr(n??r),style:[o.marginTop?{marginTop:o.marginTop}:null,i]})}function T({k:e,style:r,children:n,lines:i,role:o,bare:l}){let a=yr();return t(b,{style:[l?a.tx(e):a.t(e),Tr(e),r],...vr(e),...i?{numberOfLines:i}:{},...o?{accessibilityRole:o}:{}},n)}function vr(e){return pr[e].wrap?k.OS==="web"?{}:k.OS==="ios"?{lineBreakStrategyIOS:"standard"}:{textBreakStrategy:"balanced"}:{}}function Tr(e){let t=pr[e].wrap;return t&&k.OS==="web"?{textWrap:t}:null}function xr(e){let t=pr[e].underlineOffset;return t?{textUnderlineOffset:t}:{}}function Press({onPress:e,disabled:r,label:n,style:i,children:o,role:l="button",selected:a,hitSlop:s}){return t(y,{...s?{hitSlop:s}:{},onPress:r?void 0:e,disabled:r===true,accessibilityRole:l,...n?{accessibilityLabel:n}:{},accessibilityState:{disabled:r===true,...a!==void 0?{selected:a,checked:a}:{}},style:i},o)}function Sr(e){return e.replace(/\s*→$/,"")}var Ir=createContext({go:()=>{},openExternal:()=>{}});function ShopNativeNavProvider({value:e,children:r}){return t(Ir.Provider,{value:e},r)}function Cr(){return r(Ir)}var Lr=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var zr={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},Ar={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},Wr=e=>({...zr,...e}),Rr=e=>({...Ar,...e}),Fr={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},offbar:{box:{shown:true,w:361,h:56,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:44,radius:[0,0],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:48,dy:0},text:{shown:true,size:15,weight:500,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},action:{shown:true,w:69.859,h:44,padding:[0,2,0,2],marginTop:0,marginBottom:0,gap:[6,6],minHeight:44,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},actionText:{shown:true,size:15,weight:700,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},online:{bg:"ink",color:"onInk"},fade:200},progress:{track:{shown:true,w:361,h:4,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"line",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},fill:"go",move:300},divider:{width:1,color:"line",label:{shown:true,size:12,weight:400,lineHeight:18.6,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},labelGap:12,labelLine:{width:1,color:"line"}},errorInline:{text:{shown:true,size:15,weight:400,lineHeight:21,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:361,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},linkPressedOpacity:.6},variants:{drawer:{frame:{shown:true,w:393,h:226.594,padding:[10,20,40,20],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[28,0],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:293.406,dy:0},maxHeight:.8,grab:{shown:true,w:40,h:5,padding:[0,0,0,0],marginTop:0,marginBottom:10,gap:[0,0],minHeight:0,radius:[2.5,2.5],bg:"#DAD7D1",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},top:{shown:true,w:353,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:11,weight:400,lineHeight:16.5,color:"muted",tracking:.88,face:"mono",upper:true,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},close:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},closeEnd:-8,closeIcon:22,title:{shown:true,size:24,weight:800,lineHeight:27.6,color:"ink",tracking:-.24,face:"serif",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,w:353,h:82,padding:[0,0,0,0],marginTop:12,marginBottom:0,gap:[10,10],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:16,weight:400,lineHeight:24,color:"text",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scrim:"ink/0.38",motion:{enterMs:320,enterEasing:[.32,.72,0,1],exitMs:220,exitEasing:[.23,1,.32,1],scrimEnterMs:240,scrimExitMs:200,scrimEasing:[.25,.1,.25,1]}},button:{ink:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:0,ring:false,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},outline:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:1.5,ring:true,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},sm:{fill:false,minHeight:40,paddingX:16,gap:8,borderWidth:1.5,ring:true,fontSize:15,fontWeight:700,lineHeight:1.5,iconSize:20},lg:{fill:false,minHeight:56,paddingX:28,gap:8,borderWidth:0,ring:false,fontSize:17,fontWeight:700,lineHeight:1.5,iconSize:20},disabledOpacity:.32,press:.97,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease"},segmented:{track:{shown:true,w:361,h:44,padding:[4,4,4,4],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[22,22],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},option:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},label:{shown:true,size:14,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},chosen:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:0,y:0,dy:0},chosenLabel:{shown:true,size:14,weight:700,lineHeight:21,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},press:.96,transition:"background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},stepper:{track:{shown:true,w:110,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},button:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},icon:16,value:{shown:true,size:15.5,weight:800,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},valueWidth:30,disabledOpacity:.3,press:.9,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},summary:{box:{shown:true,w:361,h:144,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},row:{shown:true,w:329,h:34,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:34,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},term:{shown:true,size:15,weight:400,lineHeight:22.5,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},value:{shown:true,size:15,weight:400,lineHeight:22.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},totalRow:{shown:true,w:329,h:42,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:42,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},totalTerm:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renewRow:{shown:true,w:329,h:28,padding:[0,0,0,0],marginTop:-6,marginBottom:0,gap:[12,12],minHeight:28,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},renewTerm:{shown:true,size:14,weight:400,lineHeight:21,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renew:{shown:true,size:14,weight:400,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},inset:{shown:true,w:361,h:88,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"bg",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0}},toast:{box:{shown:true,w:361,h:64.594,padding:[12,15,12,15],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:16,y:62,dy:0},text:{shown:true,size:14.5,weight:400,lineHeight:20.3,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:12},motion:{enterMs:220,exitMs:160,easing:[.23,1,.32,1],rise:-8}},focus:{width:2,offset:2,color:"ink"}},press:{button:.97,iconButton:.94,card:.98},colors:{grab:"#C9C9C9",scrim:"rgba(0, 0, 0, 0.32)",watch:"#F9E6B9",planInk:"#262523",planOnInk:"#FFFFFF",planAccent:"#FFCE34",planLink:"#00707C",planAccentWash:"#FFF7DC",planAccentChip:"#FFE7A1",planLinkWash:"#E0FDFF",planLinkChip:"#C8F4F8"}};var Hr={line:/* @__PURE__ */Wr({w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */Wr({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:/* @__PURE__ */Rr({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */Rr({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:/* @__PURE__ */Rr({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:/* @__PURE__ */Rr({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:/* @__PURE__ */Wr({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:/* @__PURE__ */Rr({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:/* @__PURE__ */Wr({w:53.016,h:20.141,color:"ink"}),end:/* @__PURE__ */Wr({w:289,h:26.344,gap:[4,4]})},Pr={line:/* @__PURE__ */Wr({w:361,h:95.094,gap:[12,12]}),sm:/* @__PURE__ */Wr({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:/* @__PURE__ */Wr({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:/* @__PURE__ */Wr({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */Wr({w:239.109,h:20,gap:[6,4],center:true}),nameText:/* @__PURE__ */Rr({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */Rr({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:/* @__PURE__ */Wr({w:29.344,h:20,padding:[0,7,0,7],radius:[999,999],bg:"#E0E6F2",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */Rr({size:12,weight:700,lineHeight:12}),meta:/* @__PURE__ */Rr({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:/* @__PURE__ */Wr({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:/* @__PURE__ */Rr({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:/* @__PURE__ */Wr({w:84.531,h:32,minHeight:32,color:"ink"}),price:/* @__PURE__ */Rr({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */Rr({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},Br={line:/* @__PURE__ */Wr({w:404,h:88,gap:[16,0],center:true}),sq:/* @__PURE__ */Wr({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */Wr({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:/* @__PURE__ */Rr({size:19,weight:700,lineHeight:24.7}),link:/* @__PURE__ */Rr({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:/* @__PURE__ */Wr({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:/* @__PURE__ */Rr({size:13,weight:700,lineHeight:13}),meta:/* @__PURE__ */Rr({size:15,weight:400,lineHeight:21,marginTop:2}),price:/* @__PURE__ */Rr({size:19,weight:700,lineHeight:29.45,tabular:true}),was:/* @__PURE__ */Rr({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:/* @__PURE__ */Wr({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */Wr({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */Rr({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */Rr({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:/* @__PURE__ */Wr({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */Wr({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */Rr({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */Rr({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:/* @__PURE__ */Wr({w:303,h:81.25,gap:[12,0],center:true}),sq:/* @__PURE__ */Wr({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:/* @__PURE__ */Wr({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:/* @__PURE__ */Rr({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */Rr({size:15,weight:700,lineHeight:19.5}),meta:/* @__PURE__ */Rr({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:/* @__PURE__ */Rr({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */Rr({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},Or={line:/* @__PURE__ */Wr({w:360,h:147.094,gap:[14,0]}),img:/* @__PURE__ */Wr({w:64,h:64,radius:[14,14],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),imgInset:6,imgFit:"contain",name:/* @__PURE__ */Wr({w:216,h:22.094,gap:[8,4],center:true}),nameText:/* @__PURE__ */Rr({size:17,weight:700,lineHeight:22.1,wrap:"auto"}),badge:/* @__PURE__ */Wr({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */Rr({size:13,weight:700,lineHeight:13,wrap:"auto"}),meta:/* @__PURE__ */Rr({size:15,weight:400,lineHeight:21,marginTop:2}),note:/* @__PURE__ */Rr({size:15,weight:700,lineHeight:21,color:"ink",marginTop:2}),acts:/* @__PURE__ */Wr({w:282,h:92,marginTop:10,gap:[12,8],center:true}),plan:/* @__PURE__ */Wr({w:193.703,h:44,padding:[3,3,3,3],radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),planBtn:/* @__PURE__ */Wr({w:63.859,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999]}),planText:/* @__PURE__ */Rr({size:15,weight:500,lineHeight:23.25,wrap:"auto"}),planOn:/* @__PURE__ */Wr({w:123.844,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999],bg:"ink",color:"surface"}),planOnText:/* @__PURE__ */Rr({size:15,weight:700,lineHeight:23.25,color:"surface",wrap:"auto"}),qty:/* @__PURE__ */Wr({w:104,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true}),countMin:24,qtyBtn:/* @__PURE__ */Wr({w:40,h:40,radius:[20,20],center:true}),qtyIcon:/* @__PURE__ */Wr({w:16,h:16}),count:/* @__PURE__ */Rr({size:15,weight:700,lineHeight:23.25,wrap:"auto",tabular:true}),remove:/* @__PURE__ */Wr({w:58.359,h:40,minHeight:40,color:"ink"}),removeText:/* @__PURE__ */Rr({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3}),price:/* @__PURE__ */Rr({size:17,weight:700,lineHeight:22.1,wrap:"auto",tabular:true}),was:/* @__PURE__ */Rr({size:15,weight:400,lineHeight:19.5,wrap:"auto",tabular:true,deco:"strike"}),pressScale:.9,hover:{color:"ink",share:.06,over:"surface"},motion:{press:140,fill:150,planFill:150}};var Dr={line:/* @__PURE__ */Wr({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:/* @__PURE__ */Wr({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:/* @__PURE__ */Wr({w:28,h:28,color:"planLink"}),name:/* @__PURE__ */Rr({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:/* @__PURE__ */Wr({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:/* @__PURE__ */Rr({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:/* @__PURE__ */Rr({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:/* @__PURE__ */Rr({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:/* @__PURE__ */Wr({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:/* @__PURE__ */Wr({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:/* @__PURE__ */Wr({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:/* @__PURE__ */Rr({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})};function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e))for(let t of Object.values(e))deepFreeze(t);return e}var Er=Lr,Nr=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function Vr(e){return Object.defineProperty(e,Nr,{value:e,enumerable:true}),deepFreeze(e)}var qr={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},Ur=Vr({name:"everfur",colors:{bg:Er.color.bg,surface:Er.color.efWhite,text:Er.color.text,ink:Er.role.color.ink,onInk:Er.color.efWhite,muted:Er.role.color.muted,line:Er.role.color.line,go:Er.role.color.go,onGo:Er.role.color.ink,pink:Er.color.efDustyPink,onPink:Er.role.color.ink,alert:Er.color.alert,alertDeep:Er.color.alertDeep,icoSage:Er.role.color.icoSage,bgMist:Er.color.bgMist,tintSage:Er.role.color.tintSage,tintBlue:Er.role.color.tintBlue,tintGo:Er.role.color.tintGo,tintPink:Er.role.color.tintPink,tintYellowEdge:Er.role.color.tintYellowEdge,tintWatch:Fr.colors.watch,tintRed:Er.role.color.tintRed,scrim:Fr.colors.scrim,grab:Fr.colors.grab,focus:Er.role.color.ink,planInk:Fr.colors.planInk,planOnInk:Fr.colors.planOnInk,planAccent:Fr.colors.planAccent,planLink:Fr.colors.planLink,planAccentWash:Fr.colors.planAccentWash,planAccentChip:Fr.colors.planAccentChip,planLinkWash:Fr.colors.planLinkWash,planLinkChip:Fr.colors.planLinkChip},radius:{...Er.radius},space:{...Er.space},type:{family:Er.font.family.base,mono:Er.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:Er.font.size.xs,sm:Er.font.size.sm,md:Er.font.size.md,lg:Er.font.size.lg,xl:Er.font.size.xl},weight:{...Er.font.weight},lineHeight:{...Er.font.lineHeight},scaleCaps:qr},motion:{duration:{press:Er.motion.duration.press,fade:Er.motion.duration.fade,enter:Er.motion.duration.enter,sheet:Er.motion.duration.sheet,sheetOut:Er.motion.duration.sheetOut},easing:{out:Er.motion.easing.out,drawer:Er.motion.easing.drawer},pop:{duration:Er.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:Fr});function Gr(e){return e[Nr]??Ur}function Mr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Kr(e,t){if(!Mr(e)||!Mr(t))return t===void 0?e:t;let r={...e};for(let[n,i]of Object.entries(t))i!==void 0&&(r[n]=Kr(e[n],i));return r}function resolveTheme(e,t=Ur){if(!e)return t;let r=Kr(t,e),n=e.colors;if(n){let e=r.colors;for(let[t,r,i]of jr){let o=n[r];o!==void 0&&n[t]===void 0&&(e[t]=Zr(o,i,e.surface)??e[t]??o)}}return deepFreeze(r)}var jr=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function Zr(e,t,r){let n=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e??"");return t?[t[1],t[2],t[3]].map(e=>parseInt(e,16)):void 0},[i,o]=[n(e),n(r)];if(!(!i||!o))return`#${i.map((e,r)=>Math.round(e*t+(o[r]??0)*(1-t)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var Yr=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),t=globalThis,r=t[e]??(t[e]=createContext(null));return r.displayName??(r.displayName="EverfurThemeContext"),r})();function ThemeProvider({theme:e,children:r}){let n=tn(),o=e===void 0||Xr(e)?e:Jr(e),l=i(()=>Xr(e)?en(e):resolveTheme(e,n),[o,n]);return t(Yr.Provider,{value:l},r)}function Jr(e){return JSON.stringify(e,(e,t)=>Mr(t)&&!Array.isArray(t)?Object.fromEntries(Object.keys(t).sort().map(e=>[e,t[e]])):t)}function Xr(e){return e!==void 0&&Object.isFrozen(e)&&Qr.every(t=>t in e)}var Qr=["name","colors","radius","space","type","motion","metrics"];function _r(e,t){if(e===void 0)return true;if(!Mr(e))return t!==void 0;if(!Mr(t))return false;for(let r of Object.keys(e))if(!_r(e[r],t[r]))return false;return true}var $r=/* @__PURE__ */new WeakMap;function en(e){let t=$r.get(e);if(t)return t;if(_r(Ur,e))return $r.set(e,e),e;let r=Gr(e),n=Kr(Ur,r===Ur?e:Kr(r,e));n[Nr]=r;let i=deepFreeze(n);return $r.set(e,i),i}function tn(){let e=r(Yr);return e?en(e):Ur}var rn=e=>Math.round(e*1e3)/1e3;function nn(e,t=false){return t?e>450?"monoBold":"mono":e>500?"bold":e>450?"medium":"regular"}function on(e,t){let r=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(!r)return e;let[n,i,o]=[r[1],r[2],r[3]].map(e=>parseInt(e,16));return`rgba(${n}, ${i}, ${o}, ${t})`}function ln(e){let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(t)return[t[1],t[2],t[3]].map(e=>parseInt(e,16));let r=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(e);return r?[r[1],r[2],r[3]].map(Number):void 0}function an(e,t,r,n){let[i,o]=[ln(e),ln(r)];return!i||!o?n:`rgb(${i.map((e,r)=>Math.round(e*t+(o[r]??0)*(1-t))).join(", ")})`}function sn(e,t){let r=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(t),n=r?.[1];if(!r||n===void 0||!(n in e.colors))return t;let i=e.colors[n];return r[2]===void 0?i:on(i,Number(r[2]))}function dn(e,t){return t==="none"?"transparent":sn(e,t)}var cn=.45;function un(e,t){let r=e.metrics.pill,n=r.tones[t],i=t==="clear"?e.colors.ink:sn(e,n.fg);return{minHeight:r.minHeight,paddingX:r.paddingX,radius:e.radius.pill,background:sn(e,n.bg),ring:n.ring>0?{width:n.ring,color:sn(e,n.ringColor)}:null,dot:t==="new"?{size:r.dot,gap:r.dotGap,color:e.colors.go}:t==="allergy"?{size:r.allergyDot.size,gap:r.allergyDot.gap,color:sn(e,r.allergyDot.color)}:null,text:{size:r.fontSize,weight:r.fontWeight,lineHeight:rn(r.fontSize*r.lineHeight),color:i,mono:r.mono,tracking:r.letterSpacing,upper:r.upper}}}function pn(e,t){let r=e.metrics.sheet,n=r.titleSize,i=r.titleLineHeight??e.metrics.card.titleLineHeight;return{size:n,weight:r.titleWeight??e.metrics.card.titleWeight,lineHeight:rn(n*i),color:sn(e,r.titleColor??"ink"),tracking:r.titleTracking??e.metrics.card.titleTracking}}function hn(e){let t=e.metrics,r=e.colors;return{cardTitle:{size:t.card.titleSize,weight:t.card.titleWeight,lineHeight:rn(t.card.titleSize*t.card.titleLineHeight),color:r.ink,tracking:t.card.titleTracking},cardLead:{size:t.card.leadSize,weight:e.type.weight.regular,lineHeight:rn(t.card.leadSize*t.card.leadLineHeight),color:r.text},body:{size:t.card.bodySize,weight:e.type.weight.regular,lineHeight:rn(t.card.bodySize*t.card.bodyLineHeight),color:r.text},kicker:{size:t.kicker.fontSize,weight:t.kicker.fontWeight,lineHeight:rn(t.kicker.fontSize*t.kicker.lineHeight),color:r.muted,mono:true,tracking:t.kicker.letterSpacing,upper:true},sheetTitle:pn(e),stepperValue:{size:t.quantityStepper.valueSize,weight:t.quantityStepper.valueWeight,lineHeight:rn(t.quantityStepper.valueSize*t.quantityStepper.valueLineHeight),color:sn(e,t.quantityStepper.valueColor??"text")},tab:{size:t.tabs.fontSize,weight:t.tabs.fontWeight,lineHeight:rn(t.tabs.fontSize*t.tabs.lineHeight),color:r.muted},tabCurrent:{size:t.tabs.fontSize,weight:t.tabs.currentWeight,lineHeight:rn(t.tabs.fontSize*t.tabs.lineHeight),color:r.ink},emptyTitle:{size:t.empty.titleSize,weight:t.empty.titleWeight,lineHeight:rn(t.empty.titleSize*t.empty.titleLineHeight),color:r.ink,tracking:t.empty.titleTracking},emptyLead:{size:t.empty.leadSize,weight:e.type.weight.regular,lineHeight:rn(t.empty.leadSize*t.empty.leadLineHeight),color:r.text},emptyLink:{size:t.empty.linkSize,weight:t.empty.linkWeight,lineHeight:rn(t.empty.linkSize*t.card.bodyLineHeight),color:r.ink},sumTerm:{size:t.summary.termSize,weight:e.type.weight.regular,lineHeight:rn(t.summary.termSize*t.summary.termLineHeight),color:r.muted},sumValue:{size:t.summary.valueSize,weight:t.summary.valueWeight,lineHeight:rn(t.summary.valueSize*t.summary.valueLineHeight),color:r.ink},sumTotal:{size:t.summary.totalSize,weight:t.summary.valueWeight,lineHeight:rn(t.summary.totalSize*t.summary.totalLineHeight),color:r.ink}}}function gn(e){let t=e.metrics.quantityStepper;return{edge:{width:t.borderWidth,color:sn(e,t.borderColor),inset:t.ring},button:t.button,icon:t.icon,valueMinWidth:t.valueMinWidth,fill:dn(e,t.fill??"none"),glyph:sn(e,t.glyph??"ink"),off:{color:sn(e,t.offColor),opacity:t.offOpacity}}}function fn(e,t){return{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:sn(e,t.color),...t.face==="mono"?{mono:true}:{},...t.face==="serif"?{serif:true}:{},...t.tracking?{tracking:t.tracking}:{},...t.upper?{upper:true}:{},...t.deco==="none"?{}:{deco:t.deco==="strike"?"strike":"underline",decoOffset:t.decoOffset,decoThickness:t.decoThickness},...t.tabular?{tabular:true}:{},...t.wrap==="auto"?{}:{wrap:t.wrap==="balance"?"balance":"pretty"}}}function mn(e,t){return t==="none"?void 0:sn(e,t)}function bn(e){let t=e.metrics.summary,r=(e,t)=>rn(e*t);return{paddingX:t.paddingX,paddingY:t.paddingY,radius:t.radius,borderWidth:t.borderWidth,borderColor:e.colors.line,background:sn(e,t.background),shadow:t.shadow,row:{paddingY:t.rowPaddingY,minHeight:t.rowMinHeight,gapX:t.rowGapX,gapY:t.rowGapY,divider:t.rowDivider,center:t.rowCenter},totalRowMinHeight:t.totalRowMinHeight,gap:t.gap??0,totalMarginTop:t.totalMarginTop??0,tabular:t.tabular,term:{size:t.termSize,weight:e.type.weight.regular,lineHeight:r(t.termSize,t.termLineHeight),color:sn(e,t.termColor)},value:{size:t.valueSize,weight:t.valueWeight,lineHeight:r(t.valueSize,t.valueLineHeight),color:sn(e,t.valueColor)},totalTerm:{size:t.totalTermSize,weight:t.totalTermWeight,lineHeight:r(t.totalTermSize,t.termLineHeight),color:sn(e,t.totalTermColor)},total:{size:t.totalSize,weight:t.totalWeight,lineHeight:r(t.totalSize,t.totalLineHeight),color:sn(e,t.valueColor)},off:fn(e,e.metrics.summary.off)}}function yn(e,t){let r=e.metrics.skeleton.widths;return`${r[t%r.length]}%`}function kn(e,t,r){return Math.max(t,r===void 0?e:Math.min(r,e))}function wn(e,t,r){return r!==void 0?r:e===void 0?void 0:`${e}-${t}`}function vn(e){return e.trim().split(/\s+/).filter(Boolean).slice(0,2).map(e=>Tn(e).toLocaleUpperCase()).join("")}function Tn(e){let t=Intl.Segmenter;if(t)for(let r of new t(void 0,{granularity:"grapheme"}).segment(e))return r.segment;return Array.from(e)[0]??""}function xn(e,t,r="default"){let n=e.metrics.lists.avatar,i=typeof t=="number"?t:n.sizes[t],o=fn(e,i<=n.sizes.xs?n.initialsXs:n.initials),l=t==="xl"?n.ringXl:n.ring;return{side:i,initials:o,tint:sn(e,n.tints[r]),photoBg:sn(e,n.bg),edge:{width:n.edge.width,color:sn(e,n.edge.color)},ring:{width:l.width,offset:l.offset,color:sn(e,l.color)},dot:{size:n.dot.size,edge:n.dot.edge,edgeColor:sn(e,n.dot.edgeColor),color:e.colors.go}}}function Sn(e,t,r=false){let n=e.metrics.lists,i=t==="tiles",o=fn(e,i?n.tiles.title:n.rows.title),l=fn(e,i?n.tiles.subtitle:n.rows.subtitle),a=n.tiles.alert;return{row:i?n.tiles.row:n.rows.row,title:r?{...o,color:sn(e,a.title)}:o,subtitle:r?{...l,color:sn(e,a.subtitle)}:l,value:fn(e,n.end.text),icon:{size:n.tiles.icon.w,column:n.tiles.leading,color:sn(e,r?a.icon:n.tiles.icon.color)},chevron:{size:n.end.chevron.w,color:sn(e,n.end.chevron.color)},fill:r&&i?sn(e,a.bg):mn(e,i?n.tiles.row.bg:"none"),pressedFill:sn(e,n.tiles.pressed),gap:n.tiles.row.gap[0]??0,endGap:n.end.gap,disabledOpacity:cn}}var In=e=>e,Cn=e=>"edge"in e&&"shadow"in e&&"fit"in e,Ln=e=>"deco"in e&&"face"in e&&"tabular"in e;function zn(e){let t=/* @__PURE__ */new Map;for(let[r,n]of Object.entries(e))t.has(n)||t.set(n,r);return t}var An,Wn=/* @__PURE__ */new WeakMap;function Rn(e,t,r){let n=e.get(r),i=n===void 0?void 0:t[n];return typeof i=="number"?i:r}function Fn(e){let t=Ur;return e.space===t.space&&e.radius===t.radius&&e.type.size===t.type.size&&e.type.weight===t.type.weight}function Hn(e,t){let r=Ur;An??(An={space:zn(In(r.space)),radius:zn(In(r.radius)),size:zn(In(r.type.size)),weight:zn(In(r.type.weight))});let n=An,i=t=>Rn(n.space,In(e.space),t),o=t=>Rn(n.radius,In(e.radius),t),l=t=>Array.isArray(t)?t.map(l):t===null||typeof t!="object"?t:Cn(t)?{...t,padding:t.padding.map(i),gap:t.gap.map(i),marginTop:i(t.marginTop),marginBottom:i(t.marginBottom),radius:t.radius.map(o)}:Ln(t)?{...t,size:Rn(n.size,In(e.type.size),t.size),weight:Rn(n.weight,In(e.type.weight),t.weight),marginTop:i(t.marginTop),paddingTop:i(t.paddingTop)}:Object.fromEntries(Object.entries(t).map(([e,t])=>[e,l(t)]));return l(t)}function Pn(e,t){if(Fn(e))return t;let r=Wn.get(t);r||Wn.set(t,r=/* @__PURE__ */new WeakMap);let n=r.get(e);if(n)return n;let i=Hn(e,t);return r.set(e,i),i}var Bn={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function On(e,t){let r=e.colors;switch(t){case"ink":return r.ink;case"text":return r.text;case"muted":return r.muted;case"danger":return r.alertDeep;case"inverse":return r.onInk;default:return}}function Dn(e,t,r,n){let i=fn(e,e.metrics.text[t]),o=On(e,r);return{...i,...o?{color:o}:{},...n?{weight:e.type.weight[n]}:{}}}var En=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),t=globalThis,r=t[e]??(t[e]=createContext(null));return r.displayName??(r.displayName="EverfurPressFeedbackContext"),r})();function Nn(){return r(En)}function Vn(e,t,r,n={}){if(!e||n.disabled)return{onPress:r,onPressIn:void 0};let{onPressIn:i,onPress:o,haptic:l}=e,a=n.haptics!==false&&t.haptic&&l?l:void 0;return{onPress:r&&(o||a)?()=>{a?.(t),o?.(t),r()}:r,onPressIn:i?()=>i(t):void 0}}function qn(e,t,r=1){return e?.pressScale?.[t]??r}var Un={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function Gn(e,t){return e.type.variantTiers?.[t]??Bn[t]}var Mn=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),t=globalThis,r=t[e]??(t[e]=createContext(null));return r.displayName??(r.displayName="EverfurReducedMotionContext"),r})();function Kn(){return r(Mn)}function jn(e,t){let r=nn(t.weight,t.mono===true);return{fontFamily:t.serif?e.type.faces.serif??e.type.faces.bold:e.type.faces[r],...e.type.namedFaces?{}:{fontWeight:String(t.weight)},fontSize:t.size,lineHeight:t.lineHeight,color:t.color,...t.tracking?{letterSpacing:t.tracking}:{},...t.upper?{textTransform:"uppercase"}:{},...t.deco?Zn(t):{},...t.tabular?{fontVariant:["tabular-nums"]}:{},...t.wrap&&k.OS==="web"?{textWrap:t.wrap}:{}}}function Zn(e){let t={textDecorationLine:e.deco==="strike"?"line-through":"underline"};return k.OS!=="web"?t:{...t,...e.decoOffset?{textUnderlineOffset:e.decoOffset}:{},...e.decoThickness?{textDecorationThickness:e.decoThickness}:{}}}function Yn(e,t){let[r=0,n=0,i=0,o=0]=t.padding,[l=0,a=0]=t.radius,s=mn(e,t.bg);return{paddingTop:r,paddingRight:n,paddingBottom:i,paddingLeft:o,...t.marginTop?{marginTop:t.marginTop}:{},...t.gap[0]?{columnGap:t.gap[0]}:{},...t.gap[1]?{rowGap:t.gap[1]}:{},...l===a?l?{borderRadius:l}:{}:{borderTopLeftRadius:l,borderTopRightRadius:l,borderBottomLeftRadius:a,borderBottomRightRadius:a},...s?{backgroundColor:s}:{},...t.edge.width>0&&!t.edge.ring?{borderWidth:t.edge.width,borderColor:sn(e,t.edge.color)}:{},...t.minHeight?{minHeight:t.minHeight}:{},...ei(t.shadow)}}function Jn(e,t){return t.edge.width>0&&t.edge.ring?ti(t.edge.width,sn(e,t.edge.color),t.radius[0]??0):null}function Xn(){if(k.OS!=="web")return false;let e=globalThis;return typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)").matches}function Qn(e){let[t,r]=l(()=>e===null&&Xn());return n(()=>{if(e!==null)return;let t=true,n=L?.isReduceMotionEnabled;if(typeof n=="function"){let e=n.call(L);e!=null&&typeof e.then=="function"&&e.then(e=>{t&&r(e===true)},()=>{})}let i=L?.addEventListener?.("reduceMotionChanged",e=>r(e===true));return()=>{t=false,i?.remove?.()}},[e]),e??t}function _n(e){let t=Qn(Kn());return e.motion.reduced||t}function $n(e){let t=Math.max(0,Math.ceil((44-e)/2));return t===0?void 0:{top:t,bottom:t,left:t,right:t}}function ei(e){return e.blur===0&&e.y===0&&e.x===0?null:{shadowColor:e.color,shadowOffset:{width:e.x,height:e.y},shadowOpacity:1,shadowRadius:e.blur,elevation:1}}function ti(e,t,r){let n={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:r};return k.OS==="web"?{...n,boxShadow:`inset 0 0 0 ${e}px ${t}`}:{...n,borderWidth:e,borderColor:t}}function ri(e){return Math.round(e*100)/100}function ni(e,t){let r=Number(t.weight),n=t.letterSpacing??0;return{...jn(e,{size:t.size,weight:r,lineHeight:ri(t.size*t.lineHeight),color:e.colors.text,tracking:n?ri(t.size*n):0,mono:t.face==="mono",upper:t.uppercase===true}),flexShrink:1}}function ii(e){return e==="auto"?null:k.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:k.OS==="android"&&e==="balance"?{textBreakStrategy:"balanced"}:null}function oi(e,t){let r=e.type.weight[t];return e.type.namedFaces?{fontFamily:e.type.faces[nn(r)]}:{fontWeight:String(r)}}function Text2({tier:e,variant:r,tone:n,weight:i,level:o,lineBreak:l,typeRole:a,...s}){let d=tn();if(a){let r=d.type.scaleCaps[e??a.tier??"content"],n=l?ii(l):null;return t(b,{...r>0?{maxFontSizeMultiplier:r}:{},...n,...s,style:[ni(d,a),s.style]})}let c=d.type.scaleCaps[e??(r?Gn(d,r):"content")],u=ii(l??(r?Un[r]:"auto"));if(r===void 0&&n===void 0&&i===void 0&&o===void 0)return u?t(b,{...c>0?{maxFontSizeMultiplier:c}:{},...u,...s}):t(b,c>0?{maxFontSizeMultiplier:c,...s}:s);let p=On(d,n),h=r?jn(d,Dn(d,r,n,i)):{...p?{color:p}:{},...i?oi(d,i):{}},g=o===void 0?{}:{accessibilityRole:"header",...k.OS==="web"?{"aria-level":o}:{}};return t(b,{...c>0?{maxFontSizeMultiplier:c}:{},...u,...g,...s,style:[h,s.style]})}var li=24,ai=16,si=.8,di=e=>Math.round(e*ai);function ci(e,t,r,n,i,o){let l=e-r/2,a=t-n/2,s=Math.round(l),d=Math.round(a);return{position:"absolute",left:s,top:d,width:r,height:n,transform:[{translateX:l-s},{translateY:a-d},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/ai}]}}function ui(e,t,r){for(let n of e.strokes){let e=n.width*t,i=n.points,o=i.length/2,l=n.closed?o:o-1;for(let a=0;a<l;a+=1){let l=(a+1)%o,s=(i[a*2]??0)*t,d=(i[a*2+1]??0)*t,c=(i[l*2]??0)*t-s,u=(i[l*2+1]??0)*t-d,p=Math.hypot(c,u);if(p===0&&!(o===2&&n.cap))continue;let h=p===0?1:c/p,g=p===0?0:u/p,f=n.closed||a>0||n.cap?e/2:0,m=n.closed||l!==o-1||n.cap?e/2:0,b=(p+m-f)/2;r.push({paint:"backgroundColor",style:{...ci(s+h*b,d+g*b,di(p+f+m),di(e),h,g),borderTopLeftRadius:f>0?di(e)/2:0,borderBottomLeftRadius:f>0?di(e)/2:0,borderTopRightRadius:m>0?di(e)/2:0,borderBottomRightRadius:m>0?di(e)/2:0,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}}function pi(e,t,r){for(let n of e.boxes){let e=(n.w+n.width)*t,i=(n.h+n.width)*t;r.push({paint:"borderColor",style:{...ci((n.x-n.width/2)*t+e/2,(n.y-n.width/2)*t+i/2,di(e),di(i),1,0),borderWidth:di(n.width*t),borderRadius:(n.radius+n.width/2)*t*ai,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}function hi(e,t,r){for(let n of e.triangles){let e=[0,1,2].map(e=>[(n[e*2]??0)*t,(n[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let r=e[t]??[0,0],n=e[(t+1)%3]??[0,0],l=Math.hypot(n[0]-r[0],n[1]-r[1]);l>o&&(o=l,i=t)}if(o<=0)continue;let l=e[i]??[0,0],a=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],d=(a[0]-l[0])/o,c=(a[1]-l[1])/o,u=(s[0]-l[0])*d+(s[1]-l[1])*c,p=(s[0]-l[0])*-c+(s[1]-l[1])*d,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=di(u),b=di(o)-m,y=di(h);r.push({paint:g?"borderBottomColor":"borderTopColor",style:{...ci(l[0]+d*(o/2)-c*f,l[1]+c*(o/2)+d*f,m+b,y,d,c),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:y}:{borderTopWidth:y}}})}for(let n of e.seams){let e=(n[0]??0)*t,i=(n[1]??0)*t,o=(n[2]??0)*t-e,l=(n[3]??0)*t-i,a=Math.hypot(o,l),s=si*(n[4]??0),d=si*(n[5]??0),c=a-s-d;if(a===0||c<=0)continue;let u=s+c/2;r.push({paint:"backgroundColor",style:ci(e+o/a*u,i+l/a*u,di(c),di(si),o/a,l/a)})}}var gi=/* @__PURE__ */new WeakMap;function fi(e,t){let r=gi.get(e);r===void 0&&(r=/* @__PURE__ */new Map,gi.set(e,r));let n=r.get(t);if(n!==void 0)return n;let i=[],o=t/li;return pi(e,o,i),ui(e,o,i),hi(e,o,i),r.set(t,i),i}function Glyph({icon:e,size:t,color:r,label:n,testID:i,style:o}){let l=tn(),a=t??l.metrics.icon.size,s=r??l.colors.ink;/* @__PURE__ */
5
- return A(g,{testID:i,pointerEvents:"none",style:[{width:a,height:a},o],...n?{accessible:true,accessibilityRole:"image",accessibilityLabel:n}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:fi(e,a).map((e,t)=>/* @__PURE__ */A(g,{style:[e.style,{[e.paint]:s}]},t))})}var mi=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),t=globalThis;return t[e]??(t[e]={icons:{},warned:/* @__PURE__ */new Set})})();function bi(e){let t=mi.icons[e];return t===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!mi.warned.has(e)&&(mi.warned.add(e),console.warn(`@everfur-health/ui-native: no icon "${e}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),t}function Icon2({name:e,...t}){let r=bi(e);return r?/* @__PURE__ */A(Glyph,{icon:r,...t}):null}function yi(e,t,r,n=1){return ki(Nn(),e,t,r,n)}function ki(e,t,r,n,i=1){let o=Vn(e,{component:t,testID:r.testID,...r.item===void 0?{}:{item:r.item},label:r.label,trackId:r.trackId,haptic:r.haptic===true},n,{disabled:r.disabled});return{props:o.onPressIn?{onPress:o.onPress,onPressIn:o.onPressIn}:{onPress:o.onPress},scale:qn(e,t,i)}}var wi=e=>`cubic-bezier(${e.join(", ")})`,vi=(e,t)=>typeof e=="function"?e({pressed:t}):e,Ti;function xi(){return Ti??(Ti=I.createAnimatedComponent(y))}function Si(e,t,r){let[n,i,o,l]=e.motion.easing.out;return I.timing(t,{toValue:r,duration:e.motion.duration.press,easing:C.bezier(n,i,o,l),useNativeDriver:true})}function PressBox({style:e,scale:r,still:n,pop:i,onPressIn:a,onPressOut:s,...d}){let c=tn(),u=o(null),[p,h]=l(false),g=!n&&r!==1,f=!n&&i?.scale!=null;if(k.OS==="web"){let n=g?{transitionProperty:"transform",transitionDuration:`${c.motion.duration.press}ms`,transitionTimingFunction:wi(c.motion.easing.out)}:null;return t(y,{...d,...i?{ref:i.ref}:null,onPressIn:a,onPressOut:s,style:({pressed:t})=>[vi(e,t),n,g&&t?{transform:[{scale:r}]}:null]})}if(!g&&!f)return t(y,{...d,onPressIn:a,onPressOut:s,style:e});let m=u.current??(u.current=new I.Value(0)),b=g?m.interpolate({inputRange:[0,1],outputRange:[1,r]}):null,w=b&&f?I.multiply(b,i?.scale):b??i?.scale;return t(xi(),{...d,onPressIn:e=>{d.disabled||(h(true),g&&Si(c,m,1).start(),a?.(e))},onPressOut:e=>{h(false),g&&Si(c,m,0).start(),s?.(e)},style:[vi(e,p),{transform:[{scale:w}]}]})}p.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});var Ii={bg:"#FDFBF8",radius:10,padding:15,borderWidth:1,borderColor:"rgba(0, 0, 0, 0.15)"},Ci={gap:10,title:{size:14,weight:700,lineHeight:18,tracking:-.42,color:"ink"},bigTitle:{size:18,weight:700,lineHeight:22,tracking:-.54,color:"ink"},edit:{icon:12,iconColor:"#3D3D3D",gap:4,text:{size:8,weight:400,lineHeight:10,tracking:-.24,color:"#3D3D3D",mono:true,upper:true},minHeight:44,hitSlop:12}},Li={block:{height:16,radius:8},shimmer:{duration:1150,bandShare:.6,bandMin:28,band:"rgba(255, 255, 255, 0.42)",skew:-14}};function Card({title:e,action:t,lead:r,children:n,tone:i="default",headGap:o,onPress:l,accessibilityLabel:a,trackId:s,haptic:d,variant:c="standard",tint:u,borderColor:p,testID:h,style:f}){let m=tn(),b=_n(m),y=m.metrics.card,k=hn(m),w=a??e,v=yi("Card",{testID:h,label:w,trackId:s,haptic:d},l,m.metrics.press.card),x=e?/* @__PURE__ */A(Text2,{accessibilityRole:"header",tier:"heading",lineBreak:"balance",style:[jn(m,k.cardTitle),zi.shrink],children:e}):null,S=i==="ghost",I=c==="plain"?Ii:null,C=I?{padding:I.padding,borderWidth:I.borderWidth,borderColor:p??(S?sn(m,y.ghost.borderColor):I.borderColor),...S?{borderStyle:y.ghost.borderStyle}:null,borderRadius:I.radius,borderCurve:"continuous",backgroundColor:u??I.bg}:{padding:y.padding,borderWidth:y.borderWidth,borderColor:p??(S?sn(m,y.ghost.borderColor):m.colors.line),...S?{borderStyle:y.ghost.borderStyle}:null,borderRadius:y.radius,backgroundColor:u??m.colors.surface},L=/* @__PURE__ */z(W,{children:[t?/* @__PURE__ */z(g,{style:[zi.head,x?null:zi.end,{columnGap:y.headGapX,rowGap:y.headGapY,marginBottom:o??y.headGap}],children:[x,t]}):x?/* @__PURE__ */A(g,{style:{marginBottom:r||n?o??y.titleGap:0},children:x}):null,r?/* @__PURE__ */A(Text2,{style:[jn(m,k.cardLead),{marginBottom:n?y.leadGap:0}],children:r}):null,n]});return l?/* @__PURE__ */A(PressBox,{testID:h,...v.props,scale:v.scale,still:b,accessibilityRole:"button",accessibilityLabel:w,style:[C,f],children:L}):/* @__PURE__ */A(g,{testID:h,style:[C,f],children:L})}var zi=p.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});p.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});function Ai(e,t){return jn(e,{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:sn(e,t.color),tracking:t.tracking,mono:t.mono===true,upper:t.upper===true})}p.create({st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},acts:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"},compact:{alignItems:"center"},iconBox:{alignItems:"center",justifyContent:"center"},pill:{alignItems:"center",justifyContent:"center"}});p.create({acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"},st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},stActs:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});function Pill({label:e,tone:t="plain",testID:r,style:n,maxFontSizeMultiplier:i,grouped:o=true}){let l=tn(),a=un(l,t);/* @__PURE__ */
6
- return z(g,{testID:r,...o?{accessible:true,accessibilityLabel:e}:null,style:[Wi.pill,{minHeight:a.minHeight,paddingHorizontal:a.paddingX,borderRadius:a.radius,backgroundColor:a.background,...a.dot?{columnGap:a.dot.gap}:{}},n],children:[a.ring?/* @__PURE__ */A(g,{pointerEvents:"none",style:ti(a.ring.width,a.ring.color,a.radius)}):null,a.dot?/* @__PURE__ */A(g,{style:{width:a.dot.size,height:a.dot.size,borderRadius:a.dot.size/2,backgroundColor:a.dot.color}}):null,
7
- /* @__PURE__ */A(Text2,{tier:"control",numberOfLines:1,...i===void 0?{}:{maxFontSizeMultiplier:i},style:[jn(l,a.text),Wi.label],children:e})]})}var Wi=p.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}});var Ri={strokes:[{width:2,cap:true,closed:true,points:[11,21.73,12,21.998,13,21.73,20,17.73,20.732,16.999,21,16,21,8,20.732,7.001,20,6.27,13,2.27,12,2.002,11,2.27,4,6.27,3.268,7.001,3,8,3,16,3.268,16.999,4,17.73]},{width:2,cap:true,closed:false,points:[12,22,12,12]},{width:2,cap:true,closed:false,points:[3.29,7,12,12,20.71,7]},{width:2,cap:true,closed:false,points:[7.5,4.27,16.5,9.42]}],boxes:[],triangles:[],seams:[]};var Fi={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]};var Hi={strokes:[{width:2,cap:true,closed:false,points:[12,3,5,3,4,3.268,3.268,4,3,5,3,19,3.268,20,4,20.732,5,21,19,21,20,20.732,20.732,20,21,19,21,12]},{width:2,cap:true,closed:true,points:[18.375,2.625,19.326,2.076,20.424,2.076,21.375,2.625,21.924,3.576,21.924,4.674,21.375,5.625,12.362,14.639,11.509,15.144,8.636,15.984,8.142,15.858,8.016,15.364,8.856,12.491,9.362,11.639]}],boxes:[],triangles:[],seams:[]};var Pi={strokes:[{width:2,cap:true,closed:false,points:[5,12,19,12]}],boxes:[],triangles:[],seams:[]};var Bi={strokes:[{width:2,cap:true,closed:false,points:[5,12,19.001,12]},{width:2,cap:true,closed:false,points:[12,5,12,19.001]}],boxes:[],triangles:[],seams:[]};function QuantityStepper(e){return Oi(e,void 0)}function InkedQuantityStepper({ink:e,...t}){return Oi(t,e)}function Oi({value:e,min:t=1,max:r,label:i,fewerLabel:l,moreLabel:a,disabled:s=false,variant:d="standard",onChange:c,trackId:u,haptic:p,testID:h,style:f},m){let b=tn(),y=_n(b),w=gn(b),v=b.metrics.variants.stepper,x=d==="compact",S=s||e<=t,I=s||r!==void 0&&e>=r,C=x?v.press:b.metrics.press.iconButton,W=yi("QuantityStepper",{testID:h?`${h}-fewer`:void 0,item:"fewer",label:l,trackId:u,haptic:p,disabled:S},()=>c(kn(e-1,t,r)),C),R=yi("QuantityStepper",{testID:h?`${h}-more`:void 0,item:"more",label:a,trackId:u,haptic:p,disabled:I},()=>c(kn(e+1,t,r)),C),F=o(e);n(()=>{F.current!==e&&(F.current=e,k.OS==="ios"&&L.announceForAccessibility(`${i}, ${e}`))},[i,e]);let H=(e,t,r,n,i)=>/* @__PURE__ */A(PressBox,{...n.props,scale:n.scale,still:y,disabled:e,hitSlop:$n(v.button.h),accessibilityRole:"button",accessibilityLabel:r,accessibilityState:{disabled:e},testID:h?`${h}-${i}`:void 0,style:[Di.button,{width:v.button.w,height:v.button.h,borderRadius:v.button.radius[0]??0},e?{opacity:v.disabledOpacity}:null],children:/* @__PURE__ */A(Glyph,{icon:t==="plus"?Bi:Pi,size:v.icon,color:m??sn(b,v.button.color)})}),P=(e,t,r,n,i)=>x?H(e,t,r,n,i):/* @__PURE__ */A(PressBox,{...n.props,scale:n.scale,still:y,disabled:e,hitSlop:$n(w.button),accessibilityRole:"button",accessibilityLabel:r,accessibilityState:{disabled:e},testID:h?`${h}-${i}`:void 0,style:[Di.button,{width:w.button,height:w.button,borderRadius:w.button/2},e&&w.off.opacity!==1?{opacity:w.off.opacity}:null],children:/* @__PURE__ */A(Glyph,{icon:t==="plus"?Bi:Pi,size:w.icon,color:e?w.off.color:b.colors.ink})}),B=x?Jn(b,v.track):null;/* @__PURE__ */
8
- return z(g,{testID:h,style:[Di.qty,x?[Yn(b,v.track),{height:v.track.h}]:{borderWidth:w.edge.inset?0:w.edge.width,borderColor:w.edge.color,borderRadius:b.radius.pill},f],children:[x?B?/* @__PURE__ */A(g,{pointerEvents:"none",style:B}):null:w.edge.inset?/* @__PURE__ */A(g,{pointerEvents:"none",style:ti(w.edge.width,w.edge.color,b.radius.pill)}):null,P(S,"minus",l,W,"fewer"),
9
- /* @__PURE__ */A(Text2,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:i,accessibilityValue:{now:e,min:t,...r!==void 0?{max:r}:{},text:String(e)},"aria-valuenow":e,"aria-valuemin":t,"aria-valuemax":r,accessibilityState:{disabled:s},"aria-disabled":s||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:n=>{n.nativeEvent.actionName==="increment"&&!I&&c(kn(e+1,t,r)),n.nativeEvent.actionName==="decrement"&&!S&&c(kn(e-1,t,r))},accessibilityLiveRegion:"polite",style:x?[jn(b,fn(b,v.value)),{width:v.valueWidth,textAlign:"center"},m?{color:m}:null]:[jn(b,hn(b).stepperValue),{minWidth:w.valueMinWidth,textAlign:"center",fontVariant:["tabular-nums"]}],children:String(e)}),P(I,"plus",a,R,"more")]})}var Di=p.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});function SectionHeader({title:e,kicker:t,action:r,variant:n="standard",titleSize:i="regular",edit:o,testID:l,style:a}){let s=tn(),d=hn(s);if(n==="compact"){let n=Ci,c=n.edit,u=r??(o?/* @__PURE__ */z(y,{testID:l?`${l}-accessory`:void 0,onPress:o.onPress,accessibilityRole:"button",accessibilityLabel:o.accessibilityLabel??o.text,hitSlop:c.hitSlop,style:({pressed:e})=>[Ei.edit,{minHeight:c.minHeight,columnGap:c.gap},e?Ei.pressed:null],children:[
10
- /* @__PURE__ */A(Glyph,{icon:Hi,size:c.icon,color:sn(s,c.iconColor)}),
2
+ import{createContext,forwardRef as e,createElement as t,useContext as r,useEffect as n,useMemo as i,useRef as o,useState as l,useCallback as a,useSyncExternalStore as s,Fragment as d,Children as c,isValidElement as u}from"react";import*as p from"react-native";import{StyleSheet as h,TextInput as g,View as f,ScrollView as m,RefreshControl as b,Text as y,Pressable as k,Platform as w,Image as v,Modal as x,KeyboardAvoidingView as S,AppState as I,Animated as C,Easing as L,AccessibilityInfo as z}from"react-native";import{jsxs as W,jsx as A,Fragment as R}from"react/jsx-runtime";var F=class _EverfurConfigError extends Error{constructor(e,t){super(t),this.name="EverfurConfigError",this.kind=e,Object.setPrototypeOf(this,_EverfurConfigError.prototype)}};var H=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurContext@v1"),P=globalThis,B=P[H]??(P[H]=createContext(null));B.displayName??="EverfurContext";var O=/* @__PURE__ */new WeakMap,D=[];function E(e){let t=O.get(e);return t||(t={items:D,flash:null,storage:null,binding:null,lastKey:null,listeners:/* @__PURE__ */new Set},O.set(e,t)),t}function N(e,t){let r=E(e);if(r.items=t,r.storage)try{r.storage.write(JSON.stringify(t))}catch{}for(let e of[...r.listeners])e()}function V(e){return Math.max(1,Math.min(5,Math.round(e)))}function q(e){return`${e.offerId}|${e.petId??""}|${e.rxId??""}`}var U=e=>typeof e=="string"&&e!=="";function G(e){return typeof e=="string"&&/^https:\/\/[^\s]+$/i.test(e)?e:null}function M(e){if(!e)return D;let t;try{t=JSON.parse(e)}catch{return D}if(!Array.isArray(t))return D;let r=[];for(let e of t){if(!e||typeof e!="object")continue;let t=e;if(!U(t.offerId)||typeof t.title!="string"||typeof t.quantity!="number"||!Number.isFinite(t.quantity))continue;let n=typeof t.unitPrice=="number"&&Number.isFinite(t.unitPrice)?t.unitPrice:null,i=U(t.petId)?t.petId:void 0,o=U(t.rxId)?t.rxId:void 0,l=G(t.imageUrl),a={offerId:t.offerId,...i?{petId:i}:{},...o?{rxId:o}:{}},s=q(a);r.some(e=>e.key===s)||r.push({...a,key:s,title:t.title,unitPrice:n,requiresRx:t.requiresRx===true,quantity:o?Math.max(1,Math.round(t.quantity)):V(t.quantity),...l?{imageUrl:l}:{}})}return r.length>0?r:D}function j(e,t){let r=new Map(t.map(e=>[e.key,e])),n=e.map(e=>r.get(e.key)??e);for(let r of t)e.some(e=>e.key===r.key)||n.push(r);return n.length>0?n:D}var NOOP=()=>{};function Z(e,t,r){let n=E(e);if(!t||n.binding!==null)return NOOP;if(n.lastKey!==null&&n.lastKey!==r&&n.items.length>0){n.items=D;for(let e of[...n.listeners])e()}n.lastKey=r;let i={};n.binding={key:r,token:i};let o={read:()=>null,write:e=>{t.setItem(r,e).catch(()=>{})}},l=(t,r)=>{if(n.binding?.token!==i)return;n.storage=o;let l=M(t);l.length>0?N(e,j(l,n.items)):r&&n.items.length>0&&N(e,n.items)};try{t.getItem(r).then(e=>l(e,!0),()=>l(null,!1))}catch{l(null,false)}return()=>{n.binding?.token===i&&(n.binding=null,n.storage=null)}}function Y(e){return E(e).items}function J(e,t){let r=q(t),n=Y(e),i=n.find(e=>e.key===r),o=t.rxId?Math.max(1,Math.round(t.quantity)):V((i?.quantity??0)+t.quantity),l={...t,key:r,quantity:o};return N(e,i?n.map(e=>e.key===r?l:e):[...n,l]),l}function X(e,t,r){let n=Y(e);N(e,n.map(e=>e.key===t&&!e.rxId?{...e,quantity:V(r)}:e))}function Q(e,t){let r=Y(e),n=r.find(e=>e.key===t)??null;return n&&N(e,r.filter(e=>e.key!==t)),n}function _(e,t){let r=new Set(t),n=Y(e);n.some(e=>r.has(e.key))&&N(e,n.filter(e=>!r.has(e.key)))}function $(e,t){E(e).flash=t}function ee(e){let t=E(e),r=t.flash;return t.flash=null,r}function te(e){return e.map(e=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.rxId?{rxId:e.rxId}:{}}))}function re(e){let t=0;for(let r of e){if(r.unitPrice===null)return null;t+=r.unitPrice*r.quantity}return t}function ne(e){return e.reduce((e,t)=>e+t.quantity,0)}function ie(e){let t=E(e);return s(e=>(t.listeners.add(e),()=>{t.listeners.delete(e)}),()=>t.items,()=>t.items)}var oe={title:e=>`${e}’s orders`,onAuto:e=>`${e} on auto-refill`,nothingOnAuto:"Nothing on auto-refill",onTheWay:e=>e===0?"Nothing on the way":e===1?"1 package on the way":`${e} packages on the way`,today:"Today",hasLeft:(e,t,r)=>`${e} has ${t} ${r} left`,enoughUntil:e=>`Enough until ${e}`,boxArrives:"Her box arrives",rxArrives:e=>`Her ${e} arrives`,items:e=>e===1?"1 item":`${e} items`,units:(e,t)=>`${e} ${e===1?t:`${t}s`}`,shipsTomorrow:"Ships tomorrow",needsVetOk:e=>`Needs ${e}’s OK`,trackingDown:"Tracking isn’t loading. Pull down to try again.",wontRunOut:"She won’t run out",oldBottleEnds:e=>`Her old bottle ends today. The new one is due ${e}.`,runsOut:e=>`Her ${e} runs out`,orderToday:e=>`Order today, it arrives ${e}.`,refill:"Refill",inCart:"In cart",autoTitle:"On auto-refill",autoSub:"Timed to her supply",rxTag:"Rx",ships:"Ships",autoRefill:"Auto-refill",paused:"Paused",planMeta:(e,t,r)=>t===null?e:`${e} · ${t}${r?" when filled":""}`,everyDays:e=>e===1?"every day":`every ${e} days`,everyDaysAlone:e=>e===1?"Every day":`Every ${e} days`,everyMonthsAfter:e=>e===1?"every month":`every ${e} months`,everyMonths:e=>e===1?"Every month":`Every ${e} months`,amountEvery:(e,t)=>`${e}, ${t}`,vetOks:e=>`${e} OKs each refill`,leftOnRx:e=>`${e} left on her prescription`,offOnAuto:e=>`${e}% off on auto`,skipped:e=>`Skipped ${e}.`,undo:"Undo",skip:"Skip",change:"Change",pause:"Pause",resume:e=>e?`Resume · next ships ${e}`:"Resume",sheetTitle:"Manage auto-refill",skipTitle:e=>`Skip ${e}?`,changeTitle:"How often",pauseTitle:"Pause auto-refill?",sheetMeta:(e,t)=>t?`${e} · next ships ${t}`:e,skipSay:e=>`The next one ships a cycle later, ${e}.`,skipGo:e=>`Skip, next ships ${e}`,changeRxSay:e=>`${e} OKs a new amount before the next one ships.`,save:"Save",pauseRxSay:(e,t)=>`Nothing ships until you resume. ${e}’s prescription stays on file, with its ${t===1?"1 refill":`${t} refills`}.`,pauseSay:"Nothing ships until you resume. Resume any time, here.",pauseGo:"Pause it",keep:"Keep it as it is",close:"Close",saveFailed:"That didn’t save. Try again.",saidSkipped:(e,t)=>`Skipped. ${e} next ships ${t}.`,saidSaved:(e,t)=>`Saved. ${e} from ${t}.`,saidPaused:"Paused. Nothing ships until you resume.",buyAgainTitle:"Buy again",buyAgainSub:"From her past orders",likelyOut:"Likely out by now",ordered:e=>`Ordered ${e}`,addOne:e=>`Add ${e}`,oneLess:e=>`One less ${e}`,everythingElse:e=>`Everything else for ${e}`,pastTitle:"Past orders",pastSub:"Last 3 months",delivered:"Delivered",everfurBox:"Everfur box",addAll:e=>e===2?"Add both to cart":`Add all ${e} to cart`,inTheCart:"In the cart",receipt:"Receipt",help:"Help with an order",legal:"Prescription refills need the prescribing vet’s OK each time, and are charged once filled.",itemCount:e=>e===1?"1 item":`${e} items`,shipsFree:e=>`${e} · ships free`,freeOver:(e,t)=>`${e} · free shipping over ${t}`,todayPlusRx:e=>`today, + ${e} Rx when filled`,whenFilled:e=>e?`when it’s filled, ${e} off`:"when it’s filled",checkout:"Checkout"};function shopOrdersV2Copy(e){return e?{...oe,...e}:oe}function le(e){/* @__PURE__ */
3
+ return Object.freeze({ok:true,value:e})}function ae(e){/* @__PURE__ */
4
+ return Object.freeze({ok:false,error:/* @__PURE__ */Object.freeze(e)})}function isOmsRefusal(e,t){return e.kind==="refused"&&(t===void 0||e.reasonCode===t)}function isOmsUnavailable(e){return e.kind==="unavailable"}function isOmsRetryable(e){return e.kind==="network"||e.kind==="timeout"||e.kind==="serviceUnavailable"||e.kind==="refused"&&e.reasonCode==="order_state_conflict"}var se=/^[a-z][a-z0-9_]{0,63}$/,de=300;function ce(e){if(typeof e!="string")return null;let t=e.replace(/[\u0000-\u001f\u007f]+/g," ").trim();return t.length===0||t.length>de?null:t}function ue(e){if(!e)return null;let t=Number(e);return Number.isFinite(t)&&t>=0?Math.min(Math.round(t),3600):null}function pe(e,t,r){let n=r.requestId,i=n?{requestId:n}:{};if(e===404)return{kind:"unavailable",...i};if(e===401)return{kind:"signedOut"};if(e===402||e===409||e===422){let r=t&&typeof t=="object"?t:{},n=typeof r.reason_code=="string"&&se.test(r.reason_code)?r.reason_code:null;return{kind:"refused",status:e,reasonCode:n,message:ce(r.message),...i}}return e===400?{kind:"invalidRequest",...i}:e===429?{kind:"rateLimited",retryAfterSeconds:ue(r.retryAfter??null),...i}:e===503?{kind:"serviceUnavailable",...i}:e===403?{kind:"unavailable",...i}:{kind:"serverError",status:e,...i}}function newIdempotencyKey(){let e=globalThis.crypto;if(e&&typeof e.randomUUID=="function")return e.randomUUID();if(e&&typeof e.getRandomValues=="function"){let t=e.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=Array.from(t,e=>e.toString(16).padStart(2,"0")).join("");return`${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20)}`}throw new F("missing-peer-dependency","No secure random source: cannot make an idempotency key")}var he=3,ge=["client_name_missing"];function fe(e){return!!e&&e.kind==="refused"&&!!e.reasonCode&&ge.includes(e.reasonCode)}var me=class{constructor(e=newIdempotencyKey){this.make=e;this.keys=/* @__PURE__ */new Map}key(e){let t=this.keys.get(e);return t||(t=this.make(),this.keys.set(e,t)),t}next(e){let t=this.make();return this.keys.set(e,t),t}};async function be(e,t,r,n={reconfirm:true}){let i=t.key("confirm"),o=[];for(let l=0;l<he;l+=1){let a=await e(i);if(!a.ok)return{kind:"failed",error:a.error};o=a.value.resale.map(e=>e.orderId);let s=a.value.resale.filter(e=>e.outcome==="action_required"&&e.payerAction);if(s.length===0)return{kind:"confirmed",orderIds:o};if(!r)return{kind:"needsPayerAction",orderIds:o};if(l===0&&n.beforePayerAction)try{n.beforePayerAction(o)}catch{}for(let e of s){let t=await r.handleNextAction(e.payerAction,{orderId:e.orderId});if(!t.ok)return t.closed?{kind:"payerActionClosed",orderIds:o}:{kind:"payerActionFailed",orderIds:o,message:t.message}}if(!n.reconfirm)return{kind:"confirmed",orderIds:o};i=t.next("confirm")}return{kind:"needsPayerAction",orderIds:o}}var ye=/* @__PURE__ */Object.freeze({load:()=>Promise.resolve(ae({kind:"unavailable"})),removeLine:()=>Promise.resolve(ae({kind:"unavailable"})),skip:()=>Promise.resolve(ae({kind:"unavailable"})),approve:()=>Promise.resolve({kind:"failed",error:{kind:"unavailable"}})});async function ke(e,t){let r=[...new Set(t)],n=await Promise.all(r.map(t=>e.offer(t)));return new Map(r.map((e,t)=>[e,n[t].ok?n[t].value:null]))}function createOmsPackageSource(e){async function t(t,r){let n=await ke(e,r.lines.map(e=>e.offerId)),i=r.lines.map(e=>({...e,offer:n.get(e.offerId)??null})),o=null;if(r.state==="open"&&i.length>0){let n=await e.draftCycle(t.planId,r.cycle);if(n.ok)o=n.value;else if(n.error.kind!=="refused")return ae(n.error)}return le({plan:t,review:r,lines:i,draft:o})}return{async load(){let r=await e.plans();if(!r.ok)return ae(r.error);let n=r.value.plans.find(e=>e.state==="active")??r.value.plans.find(e=>e.state!=="cancelled");if(!n)return le(null);let i=await e.cycleReview(n.planId);return i.ok?t(n,i.value):ae(i.error)},async removeLine(r,n,i){let o=r.lines.filter((e,t)=>t!==n).map(e=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{}})),l=await e.editCycle(r.plan.planId,r.review.cycle,{idempotencyKey:i.key(`remove:${n}`),lines:o});return l.ok?t(r.plan,l.value):ae(l.error)},async skip(t,r){let n=await e.skipCycle(t.plan.planId,t.review.cycle,{idempotencyKey:r.key("skip")});return n.ok?le(void 0):ae(n.error)},approve(t,r,n){let i=t.draft;return i?be(r=>e.approveCycle(t.plan.planId,t.review.cycle,{idempotencyKey:r,checkoutId:i.checkoutId,expectedTotal:i.total}),r,n,{reconfirm:false}):Promise.resolve({kind:"failed",error:{kind:"invalidRequest"}})}}}function we(e){let t=e<0?"-":"",r=Math.abs(Math.round(e));return`${t}$${Math.floor(r/100).toLocaleString("en-US")}.${String(r%100).padStart(2,"0")}`}function ve(e){return`[copy:shop.${e}]`}var Te=["January","February","March","April","May","June","July","August","September","October","November","December"];function xe(e){return`${e}’s`}function Se(e){return e.length<=1?e[0]??"":`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function Ie(e){if(!e)return null;let t=new Date(/^\d{4}-\d{2}-\d{2}$/.test(e)?`${e}T00:00:00Z`:e);return Number.isNaN(t.getTime())?null:t}function Ce(e,t={}){let r=Ie(e);if(!r)return null;if(t.when&&r.getUTCFullYear()!==(t.now??/* @__PURE__ */new Date).getUTCFullYear())return r.toLocaleDateString("en-US",{timeZone:"UTC",month:"short",day:"numeric",year:"numeric"});let n=t.weekday===true||t.when===true;return r.toLocaleDateString("en-US",{timeZone:"UTC",...n?{weekday:"short"}:{},month:"short",day:"numeric"})}function formatWhen(e){let t=Ie(e);if(!t)return null;let r=t.toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"}),n=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});return`${r} · ${n}`}function Le(e){let t=Ie(e);return t?Te[t.getUTCMonth()]:null}function ze(e,t){return`${e?e.charAt(0).toUpperCase()+e.slice(1):""} ending ${t}`}var We="We can’t send this prescription to the pharmacy yet. Contact us.",Ae=["prescription_missing","prescription_reference_missing","prescription_unreadable","prescriptions_disagree","first_fill_mixed_with_refill","duplicate_prescription_line","prescription_in_flight","client_email_missing","client_phone_missing","client_phone_not_us","practice_email_missing","practice_phone_missing","practice_phone_not_us","patient_birth_date_missing","patient_weight_missing","weight_below_partner_unit","species_not_supported","sex_not_supported","refills_over_partner_limit","indications_missing","indication_not_mapped","compounding_missing","compounding_reason_not_mapped","compounding_unexplained","delivery_speed_unavailable","address_missing","address_not_deliverable"],Re={tabsLabel:"Care",tabPackage:"Package",tabShop:"Shop",tabOrders:"Orders",tabPlan:"Plan",legal:"Prescription items need a valid prescription from a licensed vet, and are filled by a licensed partner pharmacy.",legalTracking:"Prescription items are filled by a licensed partner pharmacy.",loadFailed:e=>`We couldn’t load ${e}. Check your connection and try again.`,tryAgain:"Try again",actionFailed:"That didn’t go through. Try again.",saving:"Saving…",keepIt:"Keep it",close:"Close",thingPackage:ve("thing.package"),thingShop:ve("thing.shop"),thingProduct:ve("thing.product"),thingPlan:ve("thing.plan"),thingOrders:"your orders",thingOrder:"this order",packageTitle:e=>`${e} package`,packageSub:(e,t,r)=>{let n=[];return e.length>0&&n.push(`For ${Se(e)}.`),t&&r&&n.push(`Approve by ${t} and it arrives ${r}.`),n.length?n.join(" "):null},inThisPackage:"In this package",reviewBy:e=>`Review by ${e}`,forPet:e=>`For ${e}`,details:"Details",remove:"Remove",removed:"Removed.",total:"Total",items:"Items",shipping:"Shipping",tax:"Tax",free:"Free",approveAndShip:"Approve and ship",itemCount:e=>e===1?ve("package.item_count_one"):`${e} items`,withTotal:(e,t)=>`${e} · ${t}`,approveRegion:"Approve",packageDetailsRegion:"Package details",deliveryPaymentRegion:"Delivery and payment",questionsRegion:"Questions",approving:"Approving…",skipThisMonth:"Skip this month",chargedWhenShips:e=>`Charged to ${e} when it ships.`,rxCheckedFirst:"Prescriptions are checked with the vet who wrote them first.",delivery:"Delivery",arrives:e=>`Arrives ${e}`,change:"Change",outOfStock:"Out of stock",packageOutOfStock:"Out of stock right now, so it won’t ship this month.",packageEmpty:e=>`Nothing in ${xe(e)} package yet. Add something from the shop, or skip this month.`,itemNoLongerSold:ve("package.item_no_longer_sold"),reviewClosed:ve("package.review_closed"),approvalInProgress:ve("package.approval_in_progress"),priceChanged:ve("package.price_changed"),cardStepFailed:ve("package.card_step_failed"),cardStepClosed:ve("package.card_step_closed"),noCardOnFile:ve("package.no_card_on_file"),shopTitle:"Shop",searchLabel:"Search the shop",searchPlaceholder:"Search the shop…",filtersLabel:"Filter",filterAll:"All",refillSoon:"Refill soon",prescribedFor:e=>`Prescribed for ${Se(e)}`,inMonthsPackage:e=>`In ${xe(e)} package →`,forPets:e=>`For ${Se(e)}`,allProducts:ve("shop.all_products_title"),rx:"Rx",hasPrescription:e=>`${e} has a prescription`,needsPrescription:"Needs a prescription",noMatches:e=>`Nothing in the shop matches ‘${e}’.`,nothingHereYet:"Nothing here yet.",photoToCome:"Photo to come",backToShop:"Shop",howOften:"How often",everyMonthIn:e=>`Every month, in ${xe(e)} package`,skipOrStop:"Skip or stop any month",justOnce:"Just once",shipsWith:e=>`Ships with ${xe(e)} package`,justOnceShipsNow:ve("product.just_once_meta"),oneFewer:"One fewer",oneMore:"One more",quantity:"Quantity",addToPackage:e=>`Add to ${xe(e)} package`,refillInPackage:e=>`Refill in ${xe(e)} package`,buyNow:ve("product.buy_now"),startPlan:ve("product.start_plan"),adding:"Adding…",outOfStockNow:"Out of stock right now.",prescription:"Prescription",noPrescriptionFor:e=>`No prescription for ${e} on file.`,bookVideoVisit:"Book a video visit",refillsLeft:e=>`${e} ${e===1?"refill":"refills"} left`,rxBeingPrepared:"This prescription is being prepared. You can order it soon.",rxTooSoon:ve("rx.too_soon"),rxRenew:ve("rx.needs_renewal"),rxPick:ve("rx.pick_pet"),educational:"Educational, not a diagnosis.",planTitle:"Your plan",whatRepeats:"What repeats",repeatsLabel:e=>`${e} repeats`,cadenceMonths:e=>e===1?"Every month":`Every ${e} months`,cadenceDays:ve("plan.cadence_days"),repeatsEmpty:"Nothing repeats yet. Pick Every month when you add something, and it shows up here.",nextPackage:"Next package",reviewByLabel:"Review by",ships:"Ships",reviewMonthsPackage:e=>`Review ${xe(e)} package →`,deliveryAndPayment:"Delivery and payment",shipTo:"Ship to",payWith:"Pay with",needABreak:"Need a break?",skipMonth:e=>`Skip ${e}`,skipMonthAsk:e=>`Skip ${e}?`,skipMonthBody:"Nothing ships this month.",pausePlan:"Pause the plan",pausePlanAsk:"Pause the plan?",pausePlanBody:"Nothing ships until you turn it back on.",declined:e=>e?`Declined. Update your card so ${xe(e)} package can ship.`:"Declined.",resumePlan:ve("plan.resume"),stopReason:e=>ve(`plan.stop_reason.${e}`),consentTitle:ve("plan.consent_title"),consentBody:ve("plan.consent_body"),consentTermsLink:ve("plan.consent_terms_link"),consentAgree:ve("plan.consent_agree"),ordersTitle:"Orders",ordersSub:e=>`Packages and one-off orders for ${Se(e)}.`,allOrders:"All orders",placed:e=>`Placed ${e}`,ordersEmpty:"No orders yet. Your first package shows up here once you approve it.",paymentFailed:"Payment failed",backToCare:"Care",onItsWay:e=>`${e}, on its way`,shouldArrive:e=>`It should arrive ${e}.`,whereItStands:"Where it stands",stepApproved:"Approved",stepChecking:"Checking prescriptions…",stepFilled:"Filled by the pharmacy",stepShipped:"Shipped",stepDelivered:"Delivered",now:"Now",expected:e=>`Expected ${e}.`,inTheBox:"In the box",payment:"Payment",cancelOrder:ve("order.cancel"),payOrder:ve("order.pay"),trackPackage:ve("order.track"),orderStatus:{pending_placement:"Confirmed, sending to the pharmacy",placement_unknown:"Confirmed",placed:"With the pharmacy, in review",accepted:"Approved by the pharmacist",release_sent:"Approved, being prepared",release_unknown:"Approved, being prepared",released:"Being prepared",shipped:"Shipped",delivered:"Delivered",needs_support:"We’re looking into this order",rejected:ve("order.status.rejected"),cancelled:"Cancelled",pending_handoff:ve("order.status.pending_handoff")},addressTitle:ve("address.title"),addressLabel:ve("address.label"),addressRecipient:ve("address.recipient_name"),addressLine1:ve("address.line1"),addressLine2:ve("address.line2"),addressCity:ve("address.city"),addressRegion:ve("address.region"),addressPostal:ve("address.postal_code"),addressSave:ve("address.save"),addressNeeded:ve("address.needed"),cardTitle:ve("card.title"),cardBody:ve("card.body"),cardStart:ve("card.start"),cardUnavailable:ve("card.unavailable"),confirmTitle:ve("buy.confirm_title"),confirmPay:ve("buy.confirm_pay"),nameMissing:ve("checkout.name_missing"),addName:ve("checkout.add_name"),firstName:ve("checkout.first_name"),lastName:ve("checkout.last_name"),saveName:ve("checkout.save_name"),refusal:{operation_not_supported:"This action isn’t available for this order.",order_not_sellable:"We can’t ship this order as it is. Add items or contact us.",rx_being_prepared:"This prescription is being prepared. You can order it soon.",rx_not_dispensable:We,...Object.fromEntries(Ae.map(e=>[e,We])),order_state_conflict:"This order changed. Refresh and try again.",payment_method_in_use:"A subscription or an order uses this card."},rateLimited:ve("error.rate_limited")},Fe=(()=>{let e=/* @__PURE__ */new Set,t=r=>{if(typeof r=="string"){let t=/^\[copy:(shop\.[a-z0-9_.]+)\]$/.exec(r);t&&e.add(t[1])}else if(typeof r=="function")try{t(r("x","x","x"))}catch{}else if(r&&typeof r=="object")for(let e of Object.values(r))t(e)};return t(Re),[...e].sort()})();function shopCopy(e){return e?{...Re,...e}:Re}function He(e,t){if(t.kind==="rateLimited")return e.rateLimited;if(t.kind==="refused"){if(fe(t))return e.nameMissing;let r=t.reasonCode?e.refusal[t.reasonCode]:void 0;if(r)return r;if(t.message)return t.message}return e.actionFailed}var Pe={cartTitle:"Cart",cartLabel:e=>e>0?`Cart, ${e} item${e>1?"s":""}`:"Cart, empty",cartEmptyTitle:"Your cart is empty",cartEmptyBody:null,addToCart:"Add to cart",viewCart:"View cart",addedToCart:e=>`${e} is in your cart.`,removedFromCart:e=>`${e} is out of your cart.`,quantityLabel:e=>`How many: ${e}`,fewer:"One fewer",more:"One more",remove:"Remove",subtotal:"Subtotal",shipping:"Shipping",tax:"Tax",free:"Free",total:"Total",checkoutCart:e=>`Checkout · ${e}`,checkoutKicker:"Checkout",itemQuantity:e=>`Qty ${e}`,shipsTo:"Ships to",payWith:"Pay with",placeOrder:e=>`Place order · ${e}`,chooseAddress:ve("checkout.choose_address"),chooseCard:ve("checkout.choose_card"),addAddress:ve("checkout.add_address"),addCard:ve("card.start"),makeDefault:ve("address.make_default"),editAddress:ve("address.edit"),noAddressYet:ve("address.needed"),noCardYet:ve("package.no_card_on_file"),placedHeader:"Order placed",placedTitle:"Order placed.",placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",ordersTitle:"Orders",ordersEmptyTitle:"No orders yet",ordersEmptyBody:null,moreOrders:ve("orders.more"),subscriptionBox:"Subscription box",orderTitle:e=>e===null?"Order":`Order ${e}`,arrivesBy:e=>`Arrives by ${e}`,deliveredOn:e=>`Delivered ${e}`,expected:e=>`Expected ${e}`,orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],tracking:"Tracking",trackOn:e=>`Track on ${e}`,inThisOrder:"In this order",orderItemLine:e=>`Qty ${e}`,buyAgain:"Buy again",orderHelp:"Get help with this order",paidWith:"Paid with",refund:ve("order.refund"),discount:ve("order.discount"),cancelAsk:ve("order.cancel_ask"),cancelBody:null,cancelRequested:ve("order.cancel_requested"),close:"Close",manageKicker:"Your subscription",manageTitle:e=>`Manage ${e}`,manage:"Manage",shipsEvery:"Ships every",daysChip:e=>`${e} days`,skipNext:"Skip the next box",cancelSubscription:"Cancel subscription",nextBox:e=>`Next box ${e}`,everyDays:e=>`Every ${e} days`,subscribedLine:(e,t)=>t===null?`Every ${e} days`:`Every ${e} days · next box ${t}`,skipped:"Skipped.",cancelSubscriptionAsk:ve("plan.cancel_ask"),cancelSubscriptionBody:ve("plan.cancel_body")},Be=Object.values(Pe).filter(e=>typeof e=="string"&&e.startsWith("[copy:"));function shopV3Copy(e){if(!e)return Pe;let t={};for(let[r,n]of Object.entries(e))r in Pe&&n!==void 0&&(t[r]=n);return{...Pe,...t}}var Oe=createContext(null);function ShopProvider(e){let{client:r,pets:n,payments:l,packageSource:a,copy:s,v3Copy:d,saveProfileName:c,onProfileNameRequired:u,children:p}=e,h=o(c);h.current=c;let g=o(u);g.current=u;let f=!!c,m=!!u,b=i(()=>{let e=n??[],t=new Map(e.map(e=>[e.petId,e.name]));return{client:r,pets:e,petName:e=>e?t.get(e)??null:null,payments:l??null,packageSource:a??createOmsPackageSource(r),copy:shopCopy(s),v3:shopV3Copy(d),saveProfileName:f?e=>h.current?h.current(e):Promise.resolve(false):null,onProfileNameRequired:m?()=>g.current?.():null}},[r,n,l,a,s,d,f,m]);return t(Oe.Provider,{value:b},p)}function De(){let e=r(Oe);if(!e)throw new F("not-initialized","useShop: wrap the shop in <ShopProvider>");return e}function Ee(e,t){let[r,i]=l({key:null,phase:"loading",value:null,error:null}),s=o(0),d=o(null),c=o(t);c.current=t;let u=a(t=>{let r=++s.current;if(e===null)return Promise.resolve();t||i({key:e,phase:"loading",value:null,error:null});let n=c.current().then(n=>{if(r!==s.current)return;if(n.ok){i({key:e,phase:"ready",value:n.value,error:null});return}let o={key:e,phase:n.error.kind==="unavailable"?"unavailable":"failed",value:null,error:n.error};t&&o.phase==="failed"?i(t=>t.key===e&&t.phase==="ready"?t:o):i(o)},()=>{});return d.current={epoch:r,done:n},n.then(()=>{d.current?.epoch===r&&(d.current=null)}),n},[e]);n(()=>(u(false),()=>{s.current+=1}),[u]);let p=a(()=>{u(false)},[u]),h=a(()=>{let e=d.current;return e&&e.epoch===s.current?e.done:u(true)},[u]);return r.key!==e?{phase:"loading",value:null,error:null,refresh:p,reread:h}:{phase:r.phase,value:r.value,error:r.error,refresh:p,reread:h}}function Ne(){let{client:e}=De();return Ee("shop-config",()=>e.shopConfig())}function Ve(e={}){let{client:t}=De(),r=e.text?.trim()??"",n=`offers:${r}:${e.requiresRx??""}`;return Ee(n,()=>t.offers({...r?{text:r}:{},...e.requiresRx!==void 0?{requiresRx:e.requiresRx}:{},limit:100}))}function qe(e){let{client:t}=De();return Ee(e?`offer:${e}`:null,()=>t.offer(e))}function Ue(){let{client:e}=De();return Ee("prescriptions",()=>e.prescriptions())}function Ge(){let{client:e}=De();return Ee("addresses",()=>e.addresses())}function Me(e){let{client:t}=De();return Ee(e?`address:${e}`:null,()=>t.address(e))}function Ke(){let{client:e}=De();return Ee("payment-methods",()=>e.paymentMethods())}function je(e){let{client:t}=De();return Ee(e?`order:${e}`:null,()=>t.order(e))}function Ze(){let{client:e}=De();return Ee("plans",()=>e.plans({limit:100}))}function Ye(){let{packageSource:e}=De();return Ee("package",()=>e.load())}function Je(e){let[t,r]=l(false),[i,s]=l(null),d=o(null),c=o(false),u=o(e);u.current=e;let p=o(true);n(()=>(p.current=true,()=>{p.current=false}),[]);let h=a(async(...e)=>{if(c.current)return null;c.current=true,d.current??=new me,r(true),s(null);try{let t=await u.current(d.current,...e);return t.ok?d.current=null:Xe(t.error)||(d.current=null),p.current&&s(t.ok?null:t.error),t}finally{c.current=false,p.current&&r(false)}},[]),g=a(()=>{d.current=null,s(null)},[]);return{busy:t,error:i,run:h,reset:g}}function Xe(e){return e.kind==="network"||e.kind==="timeout"||e.kind==="serviceUnavailable"||e.kind==="serverError"}function Qe(e){let t=[];for(let r of e)r!==null&&!t.includes(r)&&t.push(r);return t}var _e=[[/\b(inject(ion|able)?|vial|syringe|pen)s?\b/i,"syringe"],[/\b(chew(able)?|soft ?chew|treat)s?\b/i,"bowl"],[/\b(shampoo|spray|ointment|cream|gel|lotion|topical|spot[- ]on|otic|ophthalmic|wipe|foam|mousse|collar)s?\b/i,"shield"],[/\b(solution|suspension|liquid|syrup|elixir|drops?|oral ?paste|paste)s?\b/i,"flask"],[/\b(tablet|caplet|capsule|tab|cap|pill)s?\b/i,"pill"]];function $e(e,t){for(let r of[e,t]){if(!r)continue;let e=_e.find(([e])=>e.test(r));if(e)return e[1]}return"pill"}function et(e,t,r){return e?{tone:"pink",icon:$e(t,r)}:{tone:"yellow",icon:"leaf"}}var tt=[[_e[0][0],"injection"],[_e[1][0],"chew"],[_e[2][0],"topical"],[_e[3][0],"liquid"],[/\b(capsule|cap)s?\b/i,"capsule"],[/\b(tablet|caplet|tab|pill)s?\b/i,"tablet"]];function rt(e,t,r){if(!e)return null;for(let e of[t,r]){if(!e)continue;let t=tt.find(([t])=>t.test(e));if(t)return t[1]}return"unknown"}var nt={tablet:{tone:"pink",icon:"pill"},capsule:{tone:"sage",icon:"pill"},liquid:{tone:"base",icon:"flask"},injection:{tone:"base",icon:"syringe"},chew:{tone:"yellow",icon:"bowl"},topical:{tone:"sage",icon:"shield"},unknown:{tone:"pink",icon:"pill"}};function it(e){return e?nt[e]:{tone:"yellow",icon:"leaf"}}function ot(e){return`${e.line2?`${e.line1}, ${e.line2}`:e.line1}, ${e.city}, ${e.region?`${e.region} `:""}${e.postalCode}`}function lt(e){return{label:e.rx,tone:"rx"}}function at(e){return e.fillsTotal!==null&&e.fillsUsed!==null?Math.max(0,e.fillsTotal-Math.max(e.fillsUsed,1)):null}function st(e){let{pkg:t,copy:r,petName:n}=e,i=t.review,o=Le(i.shipsOn),l=Qe(t.lines.map(e=>n(e.petId))),a=i.state==="open",s=new Map(i.quoteLines.map(e=>[`${e.offerId}:${e.petId??""}`,e])),d=t.lines.map((t,n)=>{let i=t.offer,o=s.get(`${t.offerId}:${t.petId??""}`),l=i?.requiresRx??false,d=[];return i||d.push({label:r.outOfStock,tone:"later"}),{petId:t.petId,view:{key:`${t.offerId}:${t.petId??""}:${n}`,name:i?.title??r.itemNoLongerSold,rx:l,meta:null,alert:i?null:r.packageOutOfStock,pills:d,price:o&&i?we(o.unitPrice*o.quantity-o.discount):null,...et(l,i?.title),details:i?{label:r.details,to:{name:"product",offerId:i.offerId,...t.petId?{petId:t.petId}:{}}}:null,remove:a?{label:r.remove,busy:e.removing===n,disabled:e.removing!==null,onPress:()=>e.onRemove(n)}:null}}}),c=[];for(let e of d){let t=n(e.petId),i=t?r.forPet(t):null,o=c.find(e=>e.label===i);o?o.items.push(e.view):c.push({label:i,items:[e.view]})}let u=[],p=t.draft;p?(u.push({k:r.items,v:we(p.total-p.shipping-p.tax)}),u.push({k:r.shipping,v:p.shipping===0?r.free:we(p.shipping)}),u.push({k:r.tax,v:we(p.tax)}),u.push({k:r.total,v:we(p.total)})):i.quoteLines.length>0&&u.push({k:r.items,v:we(i.quoteLines.reduce((e,t)=>e+t.unitPrice*t.quantity-t.discount,0))});let h=e.card?ze(e.card.brand,e.card.last4):null,g=t.lines.some(e=>e.offer?.requiresRx),f=h?[r.chargedWhenShips(h),g?r.rxCheckedFirst:null].filter(Boolean).join(" "):null,m=e.error;!m&&i.state==="approving"?m=r.approvalInProgress:!m&&i.state!=="open"&&i.state!==null?m=r.reviewClosed:!m&&a&&!e.card&&(m=r.noCardOnFile);let b=a&&p&&e.card?{label:r.approveAndShip,busyLabel:r.approving,busy:e.approving,disabled:e.approving||e.placed===true||e.removing!==null,onPress:e.onApprove}:null;return{title:o?r.packageTitle(o):r.tabPackage,sub:r.packageSub(l,Ce(i.approveBy,{weekday:true}),null),reviewPill:i.approveBy&&a?r.reviewBy(Ce(i.approveBy)):null,countPill:t.lines.length>0?r.itemCount(t.lines.length):null,fine:null,groups:t.lines.length>0?c:[],empty:t.lines.length===0?{line:o?r.packageEmpty(o):r.nothingHereYet,shop:{label:r.tabShop,to:{name:"shop"}},skip:null}:null,add:null,sum:u,approve:b,skip:a?{label:r.skipThisMonth,to:{name:"plan"}}:null,note:f,error:m,delivery:e.address?[{k:r.shipTo,v:ot(e.address),change:{label:r.change,to:{name:"address",then:{name:"package"}}}}]:[],legal:r.legal}}function dt(e,t){return t.filter(t=>t.status==="ready"&&t.offerId===e)}function ct(e,t,r,n,i=null){let o=[],l=null,a=i,s;return e.requiresRx&&(o.push(lt(r)),s=dt(e.offerId,t).find(e=>n(e.petId)),a=s?.petId??i,l=s?r.hasPrescription(n(s.petId)):r.needsPrescription),{key:e.offerId,to:{name:"product",offerId:e.offerId,...a?{petId:a}:{}},name:e.title,meta:l,price:e.price!==null?we(e.price):null,pills:o,...et(e.requiresRx,e.title,s?.form),form:rt(e.requiresRx,e.title,s?.form),imageUrl:e.imageUrl??null}}function ut(e){return e.fillsUsed===null||e.fillsUsed===0}function pt(e){let{copy:t}=e,r=r=>ct(r,e.prescriptions,t,e.petName,e.petId??null),n=[],i=/* @__PURE__ */new Map;for(let t of[...e.offers,...e.prescribed??[]])i.set(t.offerId,t);let o=[],l=[],a=[];if(!e.searching){let t=e.prescriptions.filter(t=>t.status==="ready"&&t.offerId!==null&&e.petName(t.petId));for(let r of Qe(t.map(e=>e.offerId))){let n=i.get(r);if(!n||!n.requiresRx)continue;let s=t.filter(e=>e.offerId===r);if(s.every(ut)){o.push(n);for(let t of s)a.includes(e.petName(t.petId))||a.push(e.petName(t.petId))}else l.push(n)}}o.length>0&&n.push({key:"prescribed",title:t.prescribedFor(a),link:null,tiles:o.map(r)}),l.length>0&&n.push({key:"refill",title:t.refillSoon,link:e.packageMonth?{label:t.inMonthsPackage(e.packageMonth),to:{name:"package"}}:null,tiles:l.map(r)});let s=new Set([...o,...l].map(e=>e.offerId));return n.push({key:"all",title:e.petNames.length>0?t.forPets(e.petNames):t.allProducts,link:null,tiles:e.offers.filter(e=>!s.has(e.offerId)).map(r)}),n}function ht(e){let{copy:t,offer:r}=e,n=e.plansOn&&e.petName!==null,i=n?e.choice:"once",o=i==="monthly"?e.packageMonth?t.addToPackage(e.packageMonth):t.startPlan:t.buyNow,l=r.price!==null;return{back:{label:t.backToShop,to:{name:"shop"}},title:r.title,sub:null,price:l?we(r.price):null,priceUnit:null,...et(false),form:null,imageUrl:r.imageUrl??null,source:null,stockLine:l?null:t.outOfStockNow,choices:n?[{value:"monthly",title:t.everyMonthIn(e.petName),meta:t.skipOrStop},{value:"once",title:t.justOnce,meta:t.justOnceShipsNow}]:null,choice:n?i:null,onChoice:t=>e.onChoice(t==="once"?"once":"monthly"),quantity:e.quantity,onQuantity:t=>e.onQuantity(Math.min(99,Math.max(1,t))),submit:l?{label:o,busyLabel:t.adding,busy:e.busy,disabled:e.busy,onPress:e.onSubmit}:{label:t.outOfStock,disabled:true,onPress:()=>{}},error:e.error,facts:null,cards:[],aside:null,legal:t.legal}}function gt(e){let{copy:t,offer:r}=e,n=dt(r.offerId,e.prescriptions).filter(t=>e.petName(t.petId)),i=(e.petId?n.find(t=>t.petId===e.petId):void 0)??n[0]??null,o=r.price!==null,l=null,a=null,s=i?.form??null;if(i){let r=at(i);l={name:t.hasPrescription(e.petName(i.petId)),meta:r!==null&&r>0?t.refillsLeft(r):null,directions:null},a=o?{label:e.packageMonth?t.refillInPackage(e.packageMonth):t.buyNow,busyLabel:t.adding,busy:e.busy,disabled:e.busy,onPress:()=>e.onSubmit(i)}:{label:t.outOfStock,disabled:true,onPress:()=>{}}}else{let n=e.prescriptions.filter(t=>t.offerId===r.offerId&&(t.status==="being_prepared"||t.status==="too_soon")&&e.petName(t.petId)),i=(e.petId?n.find(t=>t.petId===e.petId):void 0)??n[0]??null;if(i)l={name:t.hasPrescription(e.petName(i.petId)),meta:i.status==="being_prepared"?t.rxBeingPrepared:t.rxTooSoon,directions:null},a=null,s=i.form;else{let r=(e.petId?e.petName(e.petId):null)??e.firstPetName;l=r?{name:t.noPrescriptionFor(r),meta:null,directions:null}:null,a=e.bookVisitHref?{label:t.bookVideoVisit,href:e.bookVisitHref}:null}}return{back:{label:t.backToShop,to:{name:"shop"}},stepLabel:t.prescription,title:r.title,sub:null,price:o?we(r.price):null,priceUnit:null,...et(true,r.title,s),form:rt(true,r.title,s),imageUrl:r.imageUrl??null,script:l,stockLine:o?null:t.outOfStockNow,submit:a,note:null,error:e.error,cards:[],aside:null,legal:t.legal}}function ft(e,t){let r=Math.round(e/30.4);return r>=1&&Math.abs(e-r*30.4)<=2?t.cadenceMonths(r):t.cadenceDays}function mt(e){let{copy:t}=e,r=e.plans.filter(e=>e.state!=="cancelled"),n=[];for(let i of r)i.lines.forEach((r,o)=>{let l=e.offers.get(r.offerId)??null,a=e.petName(r.petId),s=[l?.title??t.itemNoLongerSold,a].filter(Boolean).join(" · "),d=i.stopReason,c=d==="payment_declined"?t.declined(e.packageMonth):d&&d!=="customer"?t.stopReason(d):ft(i.cadenceDays,t);n.push({key:`${i.planId}:${o}`,title:s,meta:c,alert:!!(d&&d!=="customer"),on:i.state==="active",busy:e.busyPlan===i.planId,onToggle:t=>e.onToggle(i,t),error:e.rowError&&e.rowError.planId===i.planId&&o===0?e.rowError.line:null})});let i=r.find(e=>e.state==="active")??null,o=[],l=Ce(e.reviewBy,{weekday:true});l&&o.push({k:t.reviewByLabel,v:l});let a=Ce(i?.nextRun??null,{weekday:true});a&&o.push({k:t.ships,v:a});let s=r.some(e=>e.stopReason==="payment_declined"),d=[];e.address&&d.push({k:t.shipTo,v:ot(e.address),change:{label:t.change,to:{name:"address",then:{name:"plan"}}}}),e.card&&d.push({k:t.payWith,v:ze(e.card.brand,e.card.last4),alert:s?t.declined(e.packageMonth):null,change:{label:t.change,to:{name:"card",then:{name:"plan"}}}});let c=e.packageMonth??Le(i?.nextRun??null);return{sub:null,rows:n,emptyLine:n.length===0?t.repeatsEmpty:null,next:i&&o.length>0?{sum:o,link:e.packageMonth?{label:t.reviewMonthsPackage(e.packageMonth),to:{name:"package"}}:null}:null,delivery:d,breakCard:i?{skip:c?{label:t.skipMonth(c),ask:t.skipMonthAsk(c),body:t.skipMonthBody}:null,pause:{label:t.pausePlan,ask:t.pausePlanAsk,body:t.pausePlanBody},busy:e.breakBusy,error:e.breakError,onConfirm:e.onBreak}:null,legal:t.legal}}var bt={pending_placement:1,placement_unknown:1,placed:1,accepted:2,release_sent:2,release_unknown:2,released:2,shipped:3,delivered:5};var yt=createContext(null),kt=yt.Provider;function wt(){let e=r(yt);if(!e)throw new F("not-initialized","shop screens render inside EverfurShop");return e}function vt(e){return e.phase==="ready"&&e.value?Le(e.value.review.shipsOn):null}function Tt(e,t){return e.phase==="ready"&&e.value!==null?{phase:"ready",value:t(e.value)}:e.phase==="loading"?{phase:"loading"}:{phase:"failed",retry:e.refresh}}function xt(e,t){return!e||e.length===0?null:(t?e.find(e=>e.paymentMethodId===t):void 0)??e[0]??null}function St(e){let{client:t}=De(),r=[...new Set(e)].sort();return Ee(`offers-by-id:${r.join(",")}`,async()=>{let e=await Promise.all(r.map(e=>t.offer(e)));return le(new Map(r.map((t,r)=>[t,e[r].ok?e[r].value:null])))})}function It(e,t){return t.kind==="confirmed"?null:t.kind==="needsPayerAction"?e.cardStepFailed:t.kind==="payerActionFailed"?t.message??e.cardStepFailed:t.kind==="payerActionClosed"?e.cardStepClosed:t.error.kind==="refused"&&t.error.reasonCode==="price_changed"?e.priceChanged:He(e,t.error)}var Ct=/* @__PURE__ */new WeakMap;function Lt(e,t,r){let n=Ct.get(e);n||(n=/* @__PURE__ */new Map,Ct.set(e,n)),r?n.set(t,r):n.delete(t)}function zt(e,t){return Ct.get(e)?.get(t)??null}function Wt(e,t){Ct.get(e)?.delete(t)}var At="\0card";function Rt(e){let{copy:t,petName:r,packageSource:n,payments:i,client:o}=De(),{tabs:a,pkg:s}=wt(),d=s.phase==="ready"?s.value?.plan??null:null,c=Ke(),u=Me(d?.destination??null),[p,h]=l(null),[g,f]=l(null),[m,b]=l(false),[y,k]=l(false),w=Je((e,t,r)=>n.removeLine(t,r,e));if(s.phase==="ready"&&s.value===null)return{tabs:a,view:{phase:"failed",retry:s.refresh}};let v=Tt(s,l=>st({pkg:l,card:xt(c.value,l.plan.paymentMethodId),address:u.value?.address??null,copy:t,petName:r,removing:p,approving:m,placed:y,error:g,onRemove:e=>{h(e),f(null),w.run(l,e).then(e=>{h(null),e&&e.ok?s.refresh():e&&f(He(t,e.error))})},onApprove:()=>{m||y||(b(true),f(null),(async()=>{let r=await Ht(n,l,i);b(false);let a=It(t,r),d=r.kind!=="failed"?r.orderIds[0]:void 0;d?(k(true),Lt(o,d,a),e({name:"order",orderId:d})):(f(a),r.kind==="failed"&&r.error.kind==="refused"&&s.refresh())})())}}));return{tabs:a,view:v}}var Ft=/* @__PURE__ */new WeakMap;async function Ht(e,t,r){let n=Ft.get(t);n||(n=new me,Ft.set(t,n));let i=await e.approve(t,n,r);return(i.kind!=="failed"||i.error.kind==="refused")&&Ft.delete(t),i}function Pt(e,t){let[r,i]=l(e);return n(()=>{let r=setTimeout(()=>i(e),t);return()=>clearTimeout(r)},[e,t]),r}function Bt(e){let{client:t,copy:r,petName:n,pets:i}=De(),{tabs:s,pkg:d}=wt(),[c,u]=l(e??""),p=Pt(c,250),h=Ve({text:p}),g=Ue(),f=g.value??[],m=i.map(e=>e.name),b=vt(d),y=f.filter(e=>e.status==="ready"&&e.offerId!==null&&n(e.petId)).map(e=>e.offerId),k=St(y),w=h.phase==="ready"?h.value??null:null,[v,x]=l(null),S=v&&w&&v.first===w?v:null,I=S?S.cursor:w?.nextCursor??null,C=o(false),L=a(()=>{if(!w||!I||C.current)return;C.current=true,x(e=>({first:w,offers:e&&e.first===w?e.offers:[],cursor:I,loading:true,failed:false}));let e=p.trim();t.offers({...e?{text:e}:{},cursor:I,limit:100}).then(e=>{C.current=false,x(t=>!t||t.first!==w?t:e.ok?{first:w,offers:[...t.offers,...e.value.offers],cursor:e.value.nextCursor,loading:false,failed:false}:{...t,loading:false,failed:true})})},[t,w,I,p]),z,W=g.phase==="loading"||y.length>0&&k.phase==="loading";if(w&&!W){let e=/* @__PURE__ */new Set,t=[];for(let r of[...w.offers,...S?.offers??[]])e.has(r.offerId)||(e.add(r.offerId),t.push(r));z={phase:"ready",value:pt({offers:t,prescribed:[...k.value?.values()??[]].filter(e=>e!==null),prescriptions:f,copy:r,petName:n,petNames:m,packageMonth:b,searching:p.trim()!=="",petId:i.length===1?i[0].petId:null})}}else h.phase==="loading"||W?z={phase:"loading"}:h.phase==="unavailable"?z={phase:"ready",value:[]}:z={phase:"failed",retry:h.refresh};let A=z.phase==="ready"?z.value.reduce((e,t)=>e+t.tiles.length,0):1,R=z.phase==="ready"&&A===0?p.trim()?r.noMatches(p.trim()):r.nothingHereYet:null,F=w&&I?{onMore:L,loading:S?.loading??false,failed:S?.failed??false}:null;return{tabs:s,view:{sub:null,query:c,onQuery:u,filters:[],shelves:z,empty:R,legal:r.legal,more:F}}}function Ot(e,t,r,n){return{offerId:e.offerId,quantity:n?.packCount??t,...n?.petId??r?{petId:n?.petId??r}:{},...n?{rxId:n.rxId}:{}}}function Dt(e,t){return{name:e,offerId:t.offerId,quantity:t.quantity,...t.petId?{petId:t.petId}:{},...t.rxId?{rxId:t.rxId}:{}}}function Et(e,t,r){let{copy:n,petName:i,pets:o,client:a}=De(),{config:s,pkg:d,bookVisitHref:c}=wt(),u=qe(e),p=Ue(),[h,g]=l("monthly"),[f,m]=l(1),[b,y]=l(null),k=vt(d),w=Ze(),v=(d.phase==="ready"?d.value?.plan??null:null)??w.value?.plans.find(e=>e.state==="active")??null,x=Je((e,t,r)=>a.updatePlan(t.planId,{idempotencyKey:e.key("add"),lines:[...t.lines.map(e=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{}})),r]})),S=(e,t)=>{if(y(null),!t)return r(Dt("buy",e));if(!v)return r(Dt("consent",e));x.run(v,e).then(e=>{e&&e.ok?(d.refresh(),r({name:"package"})):e&&y(He(n,e.error))})};if(u.phase==="ready"&&u.value?.requiresRx){let e=u.value,r={offer:e,copy:n,petId:t??null,petName:i,firstPetName:o[0]?.name??null,packageMonth:k,error:b,bookVisitHref:c};return p.phase==="unavailable"?{kind:"rx",view:{phase:"ready",value:gt({...r,prescriptions:[],busy:false,onSubmit:()=>{}})}}:{kind:"rx",view:Tt(p,t=>gt({...r,prescriptions:t,busy:x.busy,onSubmit:t=>S(Ot(e,1,null,t),v!==null)}))}}let I=(t?i(t):null)??o[0]?.name??null;return{kind:"product",view:Tt(u,e=>ht({offer:e,copy:n,petName:I,packageMonth:k,plansOn:s.recurringTermsVersion!==null,choice:h,onChoice:g,quantity:f,onQuantity:m,busy:x.busy,error:b,onSubmit:()=>S(Ot(e,f,t??o[0]?.petId??null,null),h==="monthly"&&s.recurringTermsVersion!==null&&I!==null)}))}}function Nt(){let{copy:e,petName:t,client:r}=De(),{tabs:n,pkg:i}=wt(),o=Ze(),a=Ke(),s=(o.value?.plans??[]).filter(e=>e.state!=="cancelled"),d=s.find(e=>e.state==="active")??s[0]??null,c=Me(d?.destination??null),u=St(s.flatMap(e=>e.lines.map(e=>e.offerId))),[p,h]=l(null),[g,f]=l(null),[m,b]=l(null),y=Je((e,t,n)=>r.planAction(t.planId,{idempotencyKey:e.key(n?"resume":"pause"),operation:n?"resume":"pause"})),k=Je((e,t,n)=>r.planAction(t.planId,{idempotencyKey:e.key(n),operation:n})),w=vt(i);if(o.phase==="unavailable")return{tabs:n,view:{phase:"failed",retry:o.refresh}};let v=Tt(o,()=>mt({plans:s,offers:u.value??/* @__PURE__ */new Map,copy:e,petName:t,card:xt(a.value,d?.paymentMethodId??null),address:c.value?.address??null,reviewBy:i.phase==="ready"?i.value?.review.approveBy??null:null,packageMonth:w,busyPlan:p,rowError:g,onToggle:(t,r)=>{h(t.planId),f(null),y.run(t,r).then(r=>{h(null),y.reset(),r&&r.ok?o.refresh():r&&f({planId:t.planId,line:He(e,r.error)})})},breakBusy:k.busy,breakError:m,onBreak:async t=>{if(!d)return false;b(null);let r=await k.run(d,t);return r&&r.ok?(k.reset(),o.refresh(),i.refresh(),true):(r&&b(He(e,r.error)),false)}}));return{tabs:n,view:v}}var Vt=/* @__PURE__ */new WeakMap;function qt(e){return Vt.get(e)??null}function Ut(e){Vt.delete(e)}function Gt(e,t){let{copy:r,client:n}=De(),{pkg:i}=wt(),l=e??{name:"package"},a=o(null),s=Je(async(t,r)=>{let o=JSON.stringify(r),l=a.current?.sent===o?a.current.ref:null;if(l===null){let e=await n.addAddress(r);if(!e.ok)return ae(e.error);l=e.value.ref,a.current={sent:o,ref:l}}if(e?.name==="package"||e?.name==="plan"){let r=await n.plans({limit:100});if(!r.ok)return ae(r.error);let o=r.value.plans.filter(e=>e.state!=="cancelled"),a=e.name==="package"?o.find(e=>e.planId===(i.value?.plan.planId??null))??null:o.find(e=>e.state==="active")??o[0]??null,s=a?o.filter(e=>e.planId===a.planId||a.destination!==null&&e.destination===a.destination):[];for(let e of s){if(e.destination===l)continue;let r=await n.updatePlan(e.planId,{idempotencyKey:t.key(`destination:${e.planId}`),destination:l});if(!r.ok)return ae(r.error)}}return le(l)});return{back:{label:r.backToCare,to:l},busy:s.busy,error:s.error?He(r,s.error):null,onSave:r=>{s.run(r).then(r=>{!r||!r.ok||(e?.name==="package"||e?.name==="plan"?i.refresh():Vt.set(n,r.value),t(l))})}}}function Mt(e,t,r){let{copy:i,client:o,payments:a}=De(),{config:s}=wt(),d=e??{name:"plan"},[c,u]=l(()=>zt(o,At));n(()=>Wt(o,At),[o]);let p=Je(async()=>{if(r){let e=await r();return e.ok?le(true):(u(e.closed?i.cardStepClosed:e.message??i.cardStepFailed),le(false))}let e=await o.setupPaymentMethod();if(!e.ok||!a)return e.ok?ae({kind:"invalidRequest"}):ae(e.error);let t=await a.confirmCardSetup(e.value.payerAction);return t.ok?le(true):(u(t.closed?i.cardStepClosed:t.message??i.cardStepFailed),le(false))}),h=r?true:a!==null&&s.stripePublishableKey!==null;return{back:{label:i.backToCare,to:d},error:c??(p.error?He(i,p.error):null),start:h?{label:i.cardStart,busyLabel:i.saving,busy:p.busy,disabled:p.busy,onPress:()=>{u(null),p.run().then(e=>{e&&e.ok&&e.value&&t(d)})}}:null}}function Kt(e){let{copy:t,saveProfileName:r,onProfileNameRequired:i}=De(),[a,s]=l(false),[d,c]=l(false),[u,p]=l(null),h=o(e);h.current=e;let g=o(false),f=o(true);return n(()=>(f.current=true,()=>{f.current=false}),[]),{view:a?{line:t.nameMissing,form:r?{firstLabel:t.firstName,lastLabel:t.lastName,saveLabel:t.saveName,busy:d,error:u,onSave:e=>{let n=e.firstName.trim(),i=e.lastName.trim();g.current||!n||!i||(g.current=true,c(true),p(null),r({firstName:n,lastName:i}).then(e=>e,()=>false).then(e=>{if(g.current=false,!!f.current){if(c(false),!e){p(t.actionFailed);return}s(false),h.current()}}))}}:null,handoff:!r&&i?{label:t.addName,onPress:i}:null}:null,raise:e=>fe(e)?(p(null),s(true),true):false,clear:()=>s(false)}}function jt(){let e=Ge(),t=Ke(),r=e.value?.find(e=>e.isDefault&&e.isComplete)??e.value?.find(e=>e.isComplete)??null,n=xt(t.value,null);return{addresses:e,cards:t,address:r,card:n}}function Zt(e,t){return t.phase==="unavailable"?e.actionFailed:t.phase==="failed"&&t.error?He(e,t.error):null}function Yt(e,t){let{copy:r,client:n,payments:a,petName:s}=De(),d=qe(e.offerId),{address:c,card:u}=jt(),p=i(()=>({offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.rxId?{rxId:e.rxId}:{}}),[e.offerId,e.quantity,e.petId,e.rxId]),h=Ee(c?`quote:${c.ref}:${JSON.stringify(p)}`:null,()=>n.quote({lines:[p],shipTo:c.ref})),[g,f]=l(null),[m,b]=l(null),[y,k]=l(false),w=Je(async e=>{let t=await n.createCheckout({idempotencyKey:e.key("draft"),lines:[p],shipTo:c.ref});if(!t.ok)return ae(t.error);if((g??h.value?.total??null)!==t.value.total)return f(t.value.total),ae({kind:"refused",status:409,reasonCode:"price_changed",message:null});let r=await be(e=>n.confirmCheckout(t.value.checkoutId,{idempotencyKey:e,expectedTotal:t.value.total,paymentMethodId:u.paymentMethodId}),e,a);return r.kind==="failed"?ae(r.error):le(r)}),v=[...c?[]:[{label:r.addressNeeded,to:{name:"address",then:e}}],...u?[]:[{label:r.cardTitle,to:{name:"card",then:e}}]],x=h.value,S=g??x?.total??null,I=o(()=>{}),C=Kt(()=>I.current()),L=()=>{y||(b(null),C.clear(),w.run().then(e=>{if(!e)return;let i=e.ok?e.value:{kind:"failed",error:e.error},o=i.kind!=="failed"?i.orderIds[0]:void 0;o?(k(true),Lt(n,o,It(r,i)),t({name:"order",orderId:o})):i.kind==="failed"&&C.raise(i.error)||b(It(r,i))}))};return I.current=L,{back:{label:r.backToShop,to:{name:"product",offerId:e.offerId}},title:r.confirmTitle,lines:d.value?[{key:p.offerId,name:d.value.title,meta:s(p.petId),price:d.value.price!==null?we(d.value.price*p.quantity):null,form:rt(d.value.requiresRx,d.value.title)}]:[],sum:x&&S!==null?[{k:r.shipping,v:x.shipping===0?r.free:we(x.shipping)},{k:r.tax,v:we(x.tax)},{k:r.total,v:we(S)}]:null,needs:v,pay:c&&u&&x?{label:r.confirmPay,busyLabel:r.saving,busy:w.busy,disabled:w.busy||y,onPress:L}:null,note:u?r.chargedWhenShips(ze(u.brand,u.last4)):null,error:m??Zt(r,h),nameStep:C.view}}function Jt(e,t){let{copy:r,client:n}=De(),{config:i,pkg:o}=wt(),{address:l,card:a}=jt(),s=Je(t=>n.createPlan({idempotencyKey:t.key("create"),cadenceDays:30,destination:l.ref,paymentMethodId:a.paymentMethodId,consentTermsVersion:i.recurringTermsVersion,lines:[{offerId:e.offerId,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.rxId?{rxId:e.rxId}:{}}]})),d=[...l?[]:[{label:r.addressNeeded,to:{name:"address",then:e}}],...a?[]:[{label:r.cardTitle,to:{name:"card",then:e}}]];return{back:{label:r.backToShop,to:{name:"product",offerId:e.offerId}},terms:i.recurringTermsUrl?{label:r.consentTermsLink,href:i.recurringTermsUrl}:null,needs:d,error:s.error?He(r,s.error):null,agree:l&&a&&i.recurringTermsVersion?{label:r.consentAgree,busyLabel:r.saving,busy:s.busy,disabled:s.busy,onPress:()=>{s.run().then(e=>{e&&e.ok&&(o.refresh(),t({name:"plan"}))})}}:null}}var Xt=["ordered","shipped","out_for_delivery","delivered"];function Qt(e){return e.paymentStatus==="failed"||e.canPay&&e.paymentStatus==="requires_action"}function _t(e){return!e.canPay&&(e.paymentStatus==="authorized"||e.paymentStatus==="captured")}function $t(e){return e.paymentStatus==="authorized"||e.paymentStatus==="captured"}function er(e,t,r,n=false){if(n)return{label:t.paymentFailed,tone:"risk"};let i=t.orderStatus[e]??r.orderSteps[0];return e==="delivered"?{label:i,tone:"done"}:e==="cancelled"||e==="rejected"?{label:i,tone:"quiet"}:e==="needs_support"?{label:i,tone:"risk"}:{label:i,tone:"wait"}}function tr(e){if(e.tracking)return e.tracking;let t=null;for(let r of e.shipments)for(let e of r.tracking)(!t||(e.occurredAt??"")>(t.occurredAt??""))&&(t=e);return t}function rr(e){return e.arrivesBy??tr(e)?.deliveryBy??null}function nr(e){let t=e.steps?.find(e=>e.key==="delivered");if(t?.at)return t.at;for(let t of e.shipments){let e=t.tracking.find(e=>e.status==="delivered");if(e?.occurredAt)return e.occurredAt}return null}function ir(e){return e==="cancelled"||e==="rejected"||e==="needs_support"}function or(e,t,r){let n=e.summary.status;return Qt(e)?t.paymentFailed:n==="delivered"?r.orderSteps[3]:ir(n)?t.orderStatus[n]??r.orderSteps[0]:n==="shipped"?r.orderSteps[1]:r.orderSteps[0]}function lr(e,t,r){let n=e.summary.status;if(ir(n)||Qt(e))return null;if(n==="delivered"){let t=Ce(nr(e),{when:true});return t?r.deliveredOn(t):null}let i=Ce(rr(e),{weekday:true});if(i)return r.arrivesBy(i);let o=t.orderStatus[n]??null;return o===or(e,t,r)?null:o}function ar(e){return e==="delivered"||ir(e)}function sr(e,t){let r=e.summary.status;if(r==="cancelled"||r==="rejected")return null;let n=e.steps&&e.steps.length>0?e.steps:null,i=tr(e),o=e.shipments.flatMap(e=>e.tracking).map(e=>e.occurredAt).filter(e=>!!e).sort()[0]??null,l={ordered:{done:true,at:e.summary.placedAt},shipped:{done:r==="shipped"||r==="delivered"||!!i,at:o},out_for_delivery:{done:r==="delivered",at:null},delivered:{done:r==="delivered",at:nr(e)}},a=Ce(rr(e),{weekday:true}),s=Xt.map((e,r)=>{let i=n?.find(t=>t.key===e),o=i?i.done:l[e].done,s=i?i.at:l[e].at,d=o?Ce(s,{when:true}):e==="delivered"&&a?t.expected(a):null;return{key:e,title:t.orderSteps[r],line:d,done:o}}),d=s.reduce((e,t,r)=>t.done?r:e,-1);return s.map(({done:e,...t},r)=>({...t,state:e?r===d&&r<s.length-1?"now":"done":"next"}))}function dr(e){return e.map(e=>e.title).join(", ")}function cr(e,t,r=we(e.total)){let n=Ce(e.placedAt);return n?`${t.placed(n)} · ${r}`:r}var ur={body:{paddingTop:8,paddingRight:16,paddingLeft:16},pushBody:{paddingRight:16,paddingLeft:16},subtabs:{backgroundColor:"#ffffff"},subtab:{minHeight:44,rowGap:6,columnGap:6},subtabCurrent:{minHeight:44,rowGap:6,columnGap:6},titleBlock:{paddingTop:4,rowGap:2,columnGap:2},screenTitle:{},screenMeta:{},stack:{marginTop:12,rowGap:12,columnGap:12},card:{paddingTop:16,paddingRight:16,paddingBottom:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},cardHead:{marginBottom:12,rowGap:8,columnGap:16},cardTitle:{marginBottom:12},cardTitleInHead:{},cardLink:{},cardLinkAfterNote:{marginTop:12,marginBottom:2.34},forLabel:{marginTop:4,marginBottom:8},forLabelNext:{marginTop:16,marginBottom:8},itemsLiFirst:{paddingBottom:16,rowGap:12,columnGap:12},itemsLiMid:{paddingTop:16,paddingBottom:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},itemsLiLast:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},thumb:{borderRadius:10,backgroundColor:"#eaeef6",width:48,height:48},thumbIcon:{width:22,height:22},thumbPink:{borderRadius:10,backgroundColor:"#ffeae8"},thumbYellow:{borderRadius:10,backgroundColor:"#fcf0d6"},thumbSage:{borderRadius:10,backgroundColor:"#e6ece8"},itemsName:{rowGap:4,columnGap:8},itemsMeta:{marginTop:2},itemsActs:{marginTop:6,rowGap:16,columnGap:16},itemsActLink:{},itemsActButton:{},itemsEnd:{rowGap:4,columnGap:4},itemsPrice:{},pill:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#eaeef6",minHeight:24},pillSoon:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},btnRow:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:36,rowGap:8,columnGap:8},btnRowIcon:{width:17,height:17},btnRowLabel:{},sumTotal:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},sumRowFirst:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumRowLast:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumDt:{},sumDd:{},sumDdTotal:{},noteAfterSum:{marginTop:12},rowsLiFirst:{paddingBottom:16,rowGap:8,columnGap:16},rowsLiNext:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:8,columnGap:16},rowsK:{},rowsV:{marginTop:2},rowsMeta:{marginTop:2},legal:{marginTop:32},legalText:{},traybar:{paddingTop:12,paddingRight:16,paddingBottom:8,paddingLeft:16,backgroundColor:"#ffffff",rowGap:6,columnGap:6},btnInk:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#10462e",borderRadius:999,backgroundColor:"#10462e",minHeight:50,rowGap:8,columnGap:8},traybarFine:{},input:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",minHeight:52,rowGap:10,columnGap:10},inputIcon:{width:20,height:20},inputText:{paddingTop:1,paddingRight:2,paddingBottom:1,paddingLeft:2},inputPlaceholder:{},filters:{paddingBottom:2,rowGap:8,columnGap:8},filter:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#e4e4e4",borderRadius:999,minHeight:36},filterCurrent:{paddingRight:14,paddingLeft:14,borderWidth:1,borderColor:"#10462e",borderRadius:999,backgroundColor:"#ffeae8",minHeight:36},sectionHead:{marginTop:8,rowGap:8,columnGap:12},prods:{rowGap:16,columnGap:12},prod:{rowGap:12,columnGap:12},prodImg:{borderRadius:10,backgroundColor:"#ffeae8",aspectRatio:1},prodIcon:{width:36,height:36},prodTags:{rowGap:6,columnGap:6,position:"absolute",top:8,left:8},prodBody:{rowGap:4,columnGap:4},prodName:{},prodMeta:{},prodPrice:{marginTop:4,rowGap:8,columnGap:8},pillClear:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},pillPlain:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},pillOverdue:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#ffffff",minHeight:24},hero:{borderRadius:20,backgroundColor:"#fcf0d6",aspectRatio:1.6},heroIcon:{width:56,height:56},source:{rowGap:8,columnGap:8},sourceIcon:{marginTop:2,width:16,height:16},sourceBold:{},sourceLink:{},choices:{rowGap:8,columnGap:8},choiceCurrent:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffeae8",rowGap:12,columnGap:12},choice:{paddingTop:14,paddingRight:16,paddingBottom:14,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",rowGap:12,columnGap:12},radioOn:{borderWidth:6,borderColor:"#10462e",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20},radioOff:{borderWidth:1,borderColor:"#819d90",borderRadius:10,backgroundColor:"#ffffff",width:20,height:20},choiceText:{},choiceTitle:{},choiceMeta:{marginTop:2},facts:{marginTop:12,rowGap:8,columnGap:8},factsLi:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,borderRadius:10,backgroundColor:"#e6ece8",rowGap:4,columnGap:4},factsLiHer:{paddingTop:12,paddingRight:12,paddingBottom:12,paddingLeft:12,borderRadius:10,backgroundColor:"#fcf0d6",rowGap:4,columnGap:4},factsK:{},factsN:{},factsUnit:{},noteAfterFacts:{marginTop:12},cardLead:{marginBottom:12},person:{rowGap:12,columnGap:16},avatar:{borderRadius:18,backgroundColor:"#ffffff",width:36,height:36},personName:{},personMeta:{},sourceInCard:{marginTop:12,rowGap:8,columnGap:8},sourceInCardIcon:{marginTop:2,width:16,height:16},noteAfterSource:{marginTop:8},rxLead:{marginBottom:12},btnOutlineSm:{marginTop:12,paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:46,rowGap:8,columnGap:8},btnOutlineSmIcon:{width:20,height:20},noteStandalone:{},noteLink:{},sumPlain:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff"},sumPlainRowFirst:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumPlainRowLast:{paddingTop:14,paddingBottom:14,rowGap:2,columnGap:16},sumPlainDd:{},planRowsLiFirst:{paddingTop:12,paddingBottom:12,rowGap:8,columnGap:16},planRowsLiNext:{paddingTop:12,paddingBottom:12,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:8,columnGap:16},switch:{width:48,height:28},switchTrack:{borderRadius:999,backgroundColor:"#10462e",width:48,height:28},switchKnob:{borderRadius:11,backgroundColor:"#ffffff",position:"absolute",top:3,left:3,transform:[{translateX:20}],width:22,height:22},switchTrackOff:{borderRadius:999,backgroundColor:"#d0d6d3",width:48,height:28},switchKnobOff:{borderRadius:11,backgroundColor:"#ffffff",position:"absolute",top:3,left:3,width:22,height:22},breaks:{marginTop:12,rowGap:12,columnGap:24},btnSm:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:46,rowGap:8,columnGap:8},linkDanger:{},sheet:{borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:"#ffffff"},sheetBackdrop:{backgroundColor:"rgba(0, 0, 0, 0.32)",position:"absolute"},sheetGrab:{height:20},sheetGrabBar:{borderRadius:3,backgroundColor:"#c9c9c9",width:36,height:5},sheetHead:{paddingTop:4,paddingRight:16,paddingBottom:12,paddingLeft:16,rowGap:12,columnGap:12},sheetClose:{paddingTop:1,paddingRight:6,paddingBottom:1,paddingLeft:6,borderRadius:18,backgroundColor:"#e6ece8",width:36,height:36},sheetCloseIcon:{width:20,height:20},sheetBody:{paddingRight:16,paddingBottom:24,paddingLeft:16,rowGap:12,columnGap:12},sheetText:{},sheetActions:{marginTop:16,rowGap:8,columnGap:8},btnDanger:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#c03410",borderRadius:999,backgroundColor:"#ffffff",minHeight:46,rowGap:8,columnGap:8},btnOutline:{paddingRight:24,paddingLeft:24,borderWidth:1,borderColor:"#10462e",borderRadius:999,minHeight:52,rowGap:8,columnGap:8},rec:{marginRight:-8,marginLeft:-8,rowGap:4,columnGap:4},recRow:{paddingTop:10,paddingRight:8,paddingBottom:10,paddingLeft:8,borderRadius:10,rowGap:12,columnGap:12},recIcon:{width:20,height:20},recText:{rowGap:2,columnGap:2},recTitle:{},recMeta:{},recEnd:{rowGap:8,columnGap:8},trackerLi:{paddingBottom:24,rowGap:16,columnGap:16},trackerLiLast:{rowGap:16,columnGap:16},trackerLineDone:{borderRadius:1,backgroundColor:"#10462e",position:"absolute",top:30,left:13,bottom:2,width:2},trackerLine:{borderRadius:1,backgroundColor:"#e4e4e4",position:"absolute",top:30,left:13,bottom:2,width:2},dotDone:{borderWidth:2,borderColor:"#10462e",borderRadius:14,backgroundColor:"#10462e",width:28,height:28},dotDoneIcon:{width:16,height:16},dotNow:{borderWidth:2,borderColor:"#10462e",borderRadius:14,backgroundColor:"#ffffff",width:28,height:28},dotNowCore:{borderRadius:5,backgroundColor:"#07c168",width:10,height:10},dotNext:{borderWidth:2,borderColor:"#e4e4e4",borderRadius:14,backgroundColor:"#ffffff",width:28,height:28},trackerTitle:{paddingTop:3,rowGap:4,columnGap:8},trackerTitleNext:{paddingTop:3,rowGap:4,columnGap:8},trackerWhen:{marginTop:2},trackerText:{marginTop:2},pillStable:{paddingRight:10,paddingLeft:10,borderRadius:999,backgroundColor:"#dcf6ea",minHeight:24},trackItemsEnd:{rowGap:4,columnGap:4},trackItemsLiFirst:{paddingBottom:16,rowGap:12,columnGap:12},trackItemsLiLast:{paddingTop:16,borderTopWidth:1,borderTopColor:"#e4e4e4",rowGap:12,columnGap:12},noteAfterTotal:{marginTop:8},rowLink:{paddingTop:16,paddingRight:24,paddingBottom:16,paddingLeft:24,borderWidth:1,borderColor:"#e4e4e4",borderRadius:20,backgroundColor:"#ffffff",rowGap:12,columnGap:12},rowLinkIcon:{width:22,height:22},rowLinkChevron:{width:20,height:20},ghost:{marginTop:16,rowGap:10,columnGap:10},ghostBar:{borderRadius:999,backgroundColor:"#e6ece8",height:12},field:{rowGap:6,columnGap:6},fieldLabel:{},fieldInput:{paddingRight:16,paddingLeft:16,borderWidth:1,borderColor:"#e4e4e4",borderRadius:10,backgroundColor:"#ffffff",minHeight:52,rowGap:10,columnGap:10},fieldInputText:{paddingTop:1,paddingRight:2,paddingBottom:1,paddingLeft:2}},pr={body:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},pushBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtabs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},subtab:{color:"#6b6b6b",fontSize:15,fontWeight:"500",lineHeight:23.25},subtabCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25},titleBlock:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},screenTitle:{color:"#10462e",fontSize:22,fontWeight:"500",lineHeight:26.390625,letterSpacing:-.33},screenMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},stack:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},card:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},cardHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},cardTitle:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},cardTitleInHead:{color:"#10462e",fontSize:18,fontWeight:"700",lineHeight:22.5,letterSpacing:-.36},cardLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},cardLinkAfterNote:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},forLabel:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:16.796875,letterSpacing:.72,textTransform:"uppercase"},forLabelNext:{color:"#6b6b6b",fontSize:12,fontWeight:"700",lineHeight:16.796875,letterSpacing:.72,textTransform:"uppercase"},itemsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsLiMid:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumb:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbPink:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbYellow:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},thumbSage:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsName:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},itemsMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},itemsActs:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},itemsActLink:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:20.140625,textDecorationLine:"underline"},itemsActButton:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:20.140625,textDecorationLine:"underline",textAlign:"center"},itemsEnd:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,fontVariant:["tabular-nums"]},itemsPrice:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:26.34375,fontVariant:["tabular-nums"]},pill:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillSoon:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},btnRow:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},btnRowIcon:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},btnRowLabel:{color:"#10462e",fontSize:14,fontWeight:"400",lineHeight:14,textAlign:"center",fontVariant:["tabular-nums"]},sumTotal:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumRowFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumRowLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumDt:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:23.25},sumDd:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21,textAlign:"right"},sumDdTotal:{color:"#10462e",fontSize:20,fontWeight:"700",lineHeight:28,textAlign:"right"},noteAfterSum:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rowsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},rowsLiNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},rowsK:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},rowsV:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:21.75},rowsMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},legal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},legalText:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:20.796875,textAlign:"center"},traybar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnInk:{color:"#ffffff",fontSize:17,fontWeight:"700",lineHeight:17,textAlign:"center"},traybarFine:{color:"#6b6b6b",fontSize:12,fontWeight:"400",lineHeight:15.59375,textAlign:"center"},input:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputIcon:{color:"#6b6b6b",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},inputPlaceholder:{color:"#757575",fontSize:17,fontWeight:"400"},filters:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},filter:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:18},filterCurrent:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:18},sectionHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prods:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prod:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodImg:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodTags:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},prodName:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:19.5},prodMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},prodPrice:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:23.25,fontVariant:["tabular-nums"]},pillClear:{color:"#07c168",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillPlain:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},pillOverdue:{color:"#c03410",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},hero:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},heroIcon:{color:"#10462e",fontSize:17,fontWeight:"400",lineHeight:26.34375},source:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceIcon:{color:"#819d90",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceBold:{color:"#6b6b6b",fontSize:13,fontWeight:"700",lineHeight:19.5},sourceLink:{color:"#10462e",fontSize:13,fontWeight:"700",lineHeight:19.5,textDecorationLine:"underline"},choices:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceCurrent:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choice:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},radioOn:{color:"#000000",fontSize:13.333,fontWeight:"400"},radioOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},choiceText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},choiceTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},choiceMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},facts:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsLi:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsLiHer:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},factsK:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},factsN:{color:"#10462e",fontSize:20,fontWeight:"700",lineHeight:22,letterSpacing:-.4,fontVariant:["tabular-nums"]},factsUnit:{color:"#6b6b6b",fontSize:13,fontWeight:"500",lineHeight:14.296875,letterSpacing:-.4,fontVariant:["tabular-nums"]},noteAfterFacts:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},cardLead:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},person:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},avatar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},personName:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},personMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.84375},sourceInCard:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},sourceInCardIcon:{color:"#819d90",fontSize:13,fontWeight:"400",lineHeight:19.5},noteAfterSource:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rxLead:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},btnOutlineSm:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},btnOutlineSmIcon:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},noteStandalone:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},noteLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},sumPlain:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainRowFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainRowLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sumPlainDd:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21,textAlign:"right"},planRowsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},planRowsLiNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switch:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switchTrack:{color:"#000000",fontSize:13.333,fontWeight:"400"},switchKnob:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},switchTrackOff:{color:"#000000",fontSize:13.333,fontWeight:"400"},switchKnobOff:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},breaks:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnSm:{color:"#10462e",fontSize:15,fontWeight:"400",lineHeight:15,textAlign:"center"},linkDanger:{color:"#c03410",fontSize:15,fontWeight:"700",lineHeight:23.25,textDecorationLine:"underline",textAlign:"center"},sheet:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetBackdrop:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrab:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetGrabBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetHead:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetClose:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetCloseIcon:{color:"#10462e",fontSize:13.333,fontWeight:"400",textAlign:"center"},sheetBody:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},sheetText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:25.5},sheetActions:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},btnDanger:{color:"#c03410",fontSize:15,fontWeight:"700",lineHeight:23.25,textAlign:"center"},btnOutline:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:17,textAlign:"center"},rec:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recRow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recIcon:{color:"#6b6b6b",fontSize:17,fontWeight:"400",lineHeight:26.34375},recText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},recTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},recMeta:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},recEnd:{color:"#6b6b6b",fontSize:15,fontWeight:"400",lineHeight:23.25},trackerLi:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLineDone:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerLine:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotDone:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotDoneIcon:{color:"#ffffff",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNow:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNowCore:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},dotNext:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackerTitle:{color:"#10462e",fontSize:17,fontWeight:"700",lineHeight:22.09375},trackerTitleNext:{color:"#6b6b6b",fontSize:17,fontWeight:"700",lineHeight:22.09375},trackerWhen:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:18.1875},trackerText:{color:"#000000",fontSize:15,fontWeight:"400",lineHeight:22.5},pillStable:{color:"#10462e",fontSize:12,fontWeight:"700",lineHeight:12,letterSpacing:.72,textTransform:"uppercase"},trackItemsEnd:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375,fontVariant:["tabular-nums"]},trackItemsLiFirst:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},trackItemsLiLast:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},noteAfterTotal:{color:"#6b6b6b",fontSize:13,fontWeight:"400",lineHeight:19.5},rowLink:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},rowLinkIcon:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:20.25},rowLinkChevron:{color:"#819d90",fontSize:15,fontWeight:"700",lineHeight:20.25},ghost:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},ghostBar:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},field:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},fieldLabel:{color:"#10462e",fontSize:15,fontWeight:"700",lineHeight:21},fieldInput:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375},fieldInputText:{color:"#000000",fontSize:17,fontWeight:"400",lineHeight:26.34375}},hr={body:{font:"sans"},pushBody:{font:"sans"},subtabs:{font:"sans",lineBottom:{width:1,color:"#e4e4e4"}},subtab:{font:"sans"},subtabCurrent:{font:"sans",insetBottom:{width:3,color:"#07c168"}},titleBlock:{font:"sans"},screenTitle:{font:"sans",wrap:"balance"},screenMeta:{font:"mono",wrap:"pretty"},stack:{font:"sans"},card:{font:"sans"},cardHead:{font:"sans"},cardTitle:{font:"sans"},cardTitleInHead:{font:"sans"},cardLink:{font:"sans"},cardLinkAfterNote:{font:"sans"},forLabel:{font:"mono"},forLabelNext:{font:"mono"},itemsLiFirst:{font:"sans"},itemsLiMid:{font:"sans"},itemsLiLast:{font:"sans"},thumb:{font:"sans"},thumbIcon:{font:"sans"},thumbPink:{font:"sans"},thumbYellow:{font:"sans"},thumbSage:{font:"sans"},itemsName:{font:"sans"},itemsMeta:{font:"sans"},itemsActs:{font:"sans"},itemsActLink:{font:"sans",underlineOffset:3},itemsActButton:{font:"sans",underlineOffset:3},itemsEnd:{font:"sans"},itemsPrice:{font:"sans"},pill:{font:"mono"},pillSoon:{font:"mono",ring:{width:1.25,color:"#f6d892"}},btnRow:{font:"sans"},btnRowIcon:{font:"sans"},btnRowLabel:{font:"sans"},sumTotal:{font:"sans"},sumRowFirst:{font:"sans"},sumRowLast:{font:"sans"},sumDt:{font:"sans"},sumDd:{font:"sans"},sumDdTotal:{font:"sans"},noteAfterSum:{font:"sans"},rowsLiFirst:{font:"sans"},rowsLiNext:{font:"sans"},rowsK:{font:"sans"},rowsV:{font:"sans"},rowsMeta:{font:"sans"},legal:{font:"sans"},legalText:{font:"sans"},traybar:{font:"sans",lineTop:{width:1,color:"#e4e4e4"}},btnInk:{font:"sans"},traybarFine:{font:"sans"},input:{font:"sans"},inputIcon:{font:"sans"},inputText:{font:"sans"},inputPlaceholder:{font:"sans"},filters:{font:"sans"},filter:{font:"sans"},filterCurrent:{font:"sans"},sectionHead:{font:"sans"},prods:{font:"sans"},prod:{font:"sans"},prodImg:{font:"sans"},prodIcon:{font:"sans"},prodTags:{font:"sans"},prodBody:{font:"sans"},prodName:{font:"sans"},prodMeta:{font:"sans"},prodPrice:{font:"sans"},pillClear:{font:"mono",ring:{width:1.5,color:"#07c168"}},pillPlain:{font:"mono",ring:{width:1.5,color:"rgba(16, 70, 46, 0.2)"}},pillOverdue:{font:"mono",ring:{width:1.25,color:"#c03410"}},hero:{font:"sans"},heroIcon:{font:"sans"},source:{font:"sans"},sourceIcon:{font:"sans"},sourceBold:{font:"sans"},sourceLink:{font:"sans",underlineOffset:3},choices:{font:"sans"},choiceCurrent:{font:"sans"},choice:{font:"sans"},radioOn:{font:"sans"},radioOff:{font:"sans"},choiceText:{font:"sans"},choiceTitle:{font:"sans"},choiceMeta:{font:"sans"},facts:{font:"sans"},factsLi:{font:"sans"},factsLiHer:{font:"sans"},factsK:{font:"sans"},factsN:{font:"sans"},factsUnit:{font:"sans"},noteAfterFacts:{font:"sans"},cardLead:{font:"sans"},person:{font:"sans"},avatar:{font:"sans",ring:{width:1,color:"#e4e4e4"}},personName:{font:"sans"},personMeta:{font:"sans"},sourceInCard:{font:"sans"},sourceInCardIcon:{font:"sans"},noteAfterSource:{font:"sans"},rxLead:{font:"sans"},btnOutlineSm:{font:"sans"},btnOutlineSmIcon:{font:"sans"},noteStandalone:{font:"sans"},noteLink:{font:"sans"},sumPlain:{font:"sans"},sumPlainRowFirst:{font:"sans"},sumPlainRowLast:{font:"sans"},sumPlainDd:{font:"sans"},planRowsLiFirst:{font:"sans"},planRowsLiNext:{font:"sans"},switch:{font:"sans"},switchTrack:{font:"sans"},switchKnob:{font:"sans",drop:{x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}},switchTrackOff:{font:"sans"},switchKnobOff:{font:"sans",drop:{x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}},breaks:{font:"sans"},btnSm:{font:"sans"},linkDanger:{font:"sans",underlineOffset:3},sheet:{font:"sans"},sheetBackdrop:{font:"sans"},sheetGrab:{font:"sans"},sheetGrabBar:{font:"sans"},sheetHead:{font:"sans"},sheetClose:{font:"sans"},sheetCloseIcon:{font:"sans"},sheetBody:{font:"sans"},sheetText:{font:"sans"},sheetActions:{font:"sans"},btnDanger:{font:"sans"},btnOutline:{font:"sans"},rec:{font:"sans"},recRow:{font:"sans"},recIcon:{font:"sans"},recText:{font:"sans"},recTitle:{font:"sans"},recMeta:{font:"sans"},recEnd:{font:"sans"},trackerLi:{font:"sans"},trackerLiLast:{font:"sans"},trackerLineDone:{font:"sans"},trackerLine:{font:"sans"},dotDone:{font:"sans"},dotDoneIcon:{font:"sans"},dotNow:{font:"sans"},dotNowCore:{font:"sans"},dotNext:{font:"sans"},trackerTitle:{font:"sans"},trackerTitleNext:{font:"sans"},trackerWhen:{font:"sans"},trackerText:{font:"sans"},pillStable:{font:"mono"},trackItemsEnd:{font:"sans"},trackItemsLiFirst:{font:"sans"},trackItemsLiLast:{font:"sans"},noteAfterTotal:{font:"sans"},rowLink:{font:"sans"},rowLinkIcon:{font:"sans"},rowLinkChevron:{font:"sans"},ghost:{font:"sans"},ghostBar:{font:"sans"},field:{font:"sans"},fieldLabel:{font:"sans"},fieldInput:{font:"sans"},fieldInputText:{font:"sans"}},gr={shield:{size:56,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAACoCAQAAADeQm0/AAAK6klEQVR4Ae3BCbBVhWEA0HPveyDyBSGWzR2GuOMSo6VVo3XBoo5RxAJGDG6ALT/5T2syMdFGo0mclP4X/49bVBStSxBS9QOJURGraINRsxRRcWNxQVwG+YAs0uk4nZjKff/e9+7bnHeOhoaGhoaGhoaGOAK17XAjHWEnA/GW5R4z1wI1LFCrBppkoh191jLXu9EqNSlQm85wk21F63SWWWpQRi36mR/rppDuxtjWQ2pORq3p52GniuNwX3G/9WpKRm05wOP2Ftdg48z1rhqSUUvGmK2PJPo42x+8qGZk1IrtXOcqWUl1N04f82xWEwK14RAz7KZ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kjFitIoHBnWmSGlJ61WanKAQUKFGeM5SboXr15dilCoHjXqjFSfg0q1SlSoDf6uUOVgeKaLbREq6IFeutM95mnn3bvW+5RTXolcDKGKnMe3vGGAz520v4HN6Zvz27hkx4AAAAASUVORK5CYII="},bag:{size:22,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAQAAABJXchjAAAC/UlEQVR4Ae3BXWiVZQAA4Od792m0UJhSQy+GdZHrSBDLrF0kDbuwELstUgmDfjToIgw0MRW7kSAQEiJJbwJBjcDALgx/yDCK/F8QFKbEmmKazZuQFqLf+c62c7b3bGeH78LncdcdidFN86ipJuZfpw0YRWI0r9qhMVbaqaYWtfXYK9EYSx11Xg1BLbPslWiUxF6z1BBUF+wxQyPNsEdQVYvqNlqu0TokDqsiVc0iG+QO22T8Nlkos8FR3xghMVK7c2bKXDFPv/Frd85MmSvm6TdMi+GCr82VGbTEWRNxww9WSNzWqtsug4ZoMdxmy+Q+8JmJOm+KhTIdgkOGCIbq8Z7cMe9rhA2Oya3XY4hEpXY/a5O57hVXNUabXabLXPWIfmWJSpfcrzkue0BZi9yHntUs92l10B1BrkszzVcW5P7STFeVBbmzmumsslR1PSbHIVWkqjusiYICCAogKIAgXqdOsTp1ipaK0+GAEnotdtHoOhxQQq/FLooQxFmr5JaSdcayVsktJetECeI8KFMylpLMHFGCONdk5hvLEzLXRAni9Mu0mmM0D7lXpk+UIM4puceMpkvupChBnK/k1kvVMsVauQOiBHEuOSfzuI/Usk2XzCmXRQlibZN7y1ZTDXePrd6Q2yZSEOtTvXJrnPakSvP1WiN30k6RUrEGvei4Vpm5jut1xLemesrTSird8LJBkVLxzlhun0olJW+qZple0YJ6fGG1QWP5zypfqkOqPtv9Yp/partuqSPqkqrXQQ/bbKXUSDftsFG/OqXq1+91W71kiQUStw363n67/WYcUuPzqy22SM3Wjj/1uWncUhNx0wUXTFhQAEEBBAUQFEBQAEEBBAUQFEBQAEEBBAUQFECQ65NrMxna5PqUBbkTcs+ZDM/L/aQslTsj97kFDhrQONMs8rbcGWWJSp94TXNst1pZUOkdf2iG372rQlBpwHLNsMINFVoMdd5u3WabPD96xglDJKpZ5QXdpmmsf3xnv4+NkKity3SN87cT7hrD/w1CmKiWHePxAAAAAElFTkSuQmCC"},plus:{size:17,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAQAAACQqPihAAAAz0lEQVR4Ae3BIVLDUBiF0S+XDrZLqE3dYwcgqzAVkSyARXQtVSBRlbADcLwtICur2slE8ZKKfzK96p1DVVVhd0Qltpz4I6Qh5pFPek98ESBiXhh0hIiYM4N7QoSFsBAWwkJYCAthISyEhbAQFgvGWjYsmZYYPLBj2pEDmUJDqeWXudZk/hGljvk6CqL0xlxn9hQaxlo2LJn2TKL3wwfTjhzIFBaMZTLXrEj0vtkRICyEhbAQFsJCWAgLYSEshIWwEBYi5p3BnhtLvJKoqurmLoEZGakNbs0TAAAAAElFTkSuQmCC"},search:{size:20,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAAD2UlEQVR4Ae3Ba2hVdQAA8N85N4uVbbdNp1ExI3siZBaVICwqTPOxJkX0dFAQRkEfioqooIIeBNH7TU8xorqFKT0QsQ/21KQoKkt3Mc3RXG5mq0zrw/HfvXeeM+92WV/y97PPPiMlUr16c03W4giHO8xGG/yo0ypL9RmySDXGu9gsZ8qyzNsW6TIEkb0Z42YL1Nmbfo+4T7cqRQbT6AbXOki1fvWg+21VhUi2k71jjKHabKY19iqSZY5XHKjSuwrW6NFjiyaNmpxijukq/eoC79iLSLoOzyn3i1s9b7s0o3W4U165y7xsUDlpWr0uFuzylDYf2CHdnz7xtEYniQRtltlgEDl7OtpydYI+Mzyq3+D6LbbSPPtLxNq9aqtMOQPVW2mcoNM0n6vOOgVtGiTqzPSiP2TIGehhZwnWOs1G1ev2knkaJZo0WCpDrNIxrhD0mW6Loek2S5/gKkfKEKt0t1hip7k6Dd13zrN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K1pHCtIqii7p3GcIKmibEPjGEFSRdkDGocLkirKHtQ4VJBUUTaicZggqaJsVGvVhc+C377ZLkqqKNuitXTuqydmXip644KkirKtzqxaGNy4NCZIqih7RGvpVvHKoPPT3KYoqa5kj2qt+q7oDJ4reuuCpIqyHbTW9YrOoFP0loKkirKdtO7rFZ1Bp+gNgqSKsh21NvWKzqBT9AiSKsp21npIr+gMOsVTSRVle2iMeSPbFGV7aY2Z++XCuivZnlrj5orOUpTtrbVNr+gMouwAre16P7zApRuTyWTyz/oDUB1ZN9kNGUEAAAAASUVORK5CYII="},file:{size:16,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAABtElEQVR4Ad3Bv2rUcAAA4K+/ZndUXARBIp3cxEkQHYq4aOmiHQTvQH0GIw30DYTK3WhdgqBu/sHdQe2mzQNY6wM4V0oI5rze7+5yZNDv889bMm7DTZecNN03W56LWjLqlOeumMcD2yKWjXrjsvlct++LiZY13fPQ/G746ZMJEk23VF54ZM9kh0Zt46ljBU2XVB7bM4u+2raeYwVNJ1S+ms1QX22g5xjBYob6agM9Y4JFDfXVBnr+EixuqK820DMiaONAZUVl6IHawG0NQRu7KpvOqWy7r7alIdHGwKoja9aMO6MhaOOVD2aUiFmXS1VKmULtjmeumkEQk0vVUrk/Dlyz4aV9UyTa27Fj1KExQUymVCtlWkjEFAoLCjoWdCzoWCJmXS4VV8oUJgpicqlpUrmIoGNBTKY0TSkTkYgpFBYUdCzoWNCxRMy6XCqulClMFMTkUtOkchFBx4KYTGmaUiYiEVMoLCjoWNCxoGNB04HKijZWVH5oCJp2VTadM6/zNlU+a0g0Da06smZNe080BE0vfbCo195qWDbqnQvOau+9u35pWDLujpsuOm0+3330yo7/zm9pA1VwIYzMRQAAAABJRU5ErkJggg=="},message:{size:20,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAAD+UlEQVR4Ae3Bf4iW9QEA8M/7v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Gxqd7Vznu8W5Ki1yjy91oyhxpomiVWZrNlV153lA7/5rtvV6UJCY5yn5WeAhvShKNOvJAR+71DC9+7/FnvGZXhV1GekK1R3wV0v93TFD/c5skxRU12mll7ylU58UdLndcyod8aal/qZcnXHGG2OMyyU22GqbTTbr0A9FXc6W1WGZ1y1TzUHveldiLFoMUFGXP3tAl6+t8IZlvtYXLQahIHGa63xjpcNO+JF8D+9X6jVU+QFxAAAAAElFTkSuQmCC"},chevron:{size:20,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAABfklEQVR4Ae3BPWoWQQAA0LeZz9gMeA1rywFzBsVSELzDbpEUgj9osVuJN8gF7Af1ChIsxRsIgm1iJMWw7cxsCsF9z2632+3+eUG9p14bfHMrglrPnLvviYMvbkFQ59hH99w4EWWbHal1rRjNNgvqXPnlkSK547NNglpfRUlxIso2COplUVIkUdYtaJFFSZFEWaegTRYlRRJlXYJWWZQUSZR1CNplUVIkUdYs6JFFSZFEWaOgTxYlRRJlTYJeWZQUSZQ1CPplUVIkUVYt2CKLkiKJskrBNtldDxXJDxeqBFt9EiXFAx/8UeHIdr9dKq5VOtjqrVOrFy5VOdhmNlotzlUabDEbrRaTaoN+s9FqMWkw6DUbrRaTJoM+s9FqMWk06DEbrRaTZoN2s9FqMekwaDUbrRaTLoM2s9FqMek0aDEbrRaTboN6s9FqMdngoNZzo9U7ZzY5UufYS6vFmY2O1LpWLCabBXWu/PTYjTdO3YKg1oXvDl55b7fb7Xb/ib+2W04he97hEgAAAABJRU5ErkJggg=="},close:{size:24,uri:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAQAAAD/5HvMAAAC6UlEQVR4Ae3BQYoVRwAA0DdV4saF4jplEOYAVsClV8ghijYgQiArB/fJDcRFz7QHcJPYvfcIuYvgwo0VBhm6Ysb+3T3u8t9zdHR0dHR0dOTUqe/h1KmDTiw78cozvPZctd+JV57hteeqBdGyP/zm0mPJaK/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rZS+7fxJi8LmOku3XsrovY2eMdHmChnpXAsskq5j/dlOCltuvFV6LaMcVmpztgaF9HemAVptlI4Gv3aTfgpb7QgfKIOM8vjEfKeLFRI52Ck6LFF54z3teMVY7yivKYuMcllkoVNEChtukl3MtUrlbOUuvzJcMTY6zWxlklE+71rmGMXZ10UG67Ba+Q03ze/tr1jnmaFsMsrpDesdpjh9HexKA73tC+WzpWs97iB9FOtKtymjSLlNdqdI8f7nCXdq01uRw012kr6K1+1805VVpPxO9pA+kvnQXab7TGmaTDLZLpJZ51RPKrNIJbSYZYCkNnhHu3navadbYZE9NBur2Z4yklrpeC8qu0hl7O95w5RqjYUWWmihT6y00krL0KRRo0Yj7WF3u9ldf6X6r+/oUAGRStneow5Um+Y73r9UREaldLnXQM1qTbcbnW6FCsmonI2e85Zj9FM7upzodhtVTKTStvdH+6kN833XEhUVqbwGl7raQNXV5adutkGFRdIxwi+dLVId3e5zpWVSEEnPWPfYU/reNsl8KYmkKXaSqcZIT7vrPalbaiLpO8xUR6i8512vVcoi1THKec62rcpY4gHTLVIFkeqJtZjoZAOUzypPuN8c3aokUm39NGsxwVibKd1a87RpNc9aVRWpFf2NM8Eh9jVE8ZZZ4BWt5vpSTYjUnhF2t6c97GawzQ2wuc01YoXVVltttc+97z3vesdngiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgoL+D/kco6VOaO7DAAAAAElFTkSuQmCC"}};function fr(e,t){return e?typeof e=="string"?{fontFamily:e,fontWeight:t}:{fontFamily:t==="700"?e.bold??e.regular:t==="500"?e.medium??e.regular:e.regular}:{fontWeight:t}}function mr(e){let t=/* @__PURE__ */new Map,r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,i=t=>{let r=n.get(t);if(!r){let{fontWeight:i,...o}=pr[t];r={...o,...fr(hr[t].font==="mono"?e.fonts?.mono:e.fonts?.sans,i)},n.set(t,r)}return r};return{options:e,v(e){let r=t.get(e);return r||(r={...ur[e]},t.set(e,r)),r},t(e){let t=r.get(e);return t||(t={...ur[e],...i(e)},r.set(e,t)),t},tx:i}}var br=/* @__PURE__ */mr({}),yr=/* @__PURE__ */createContext(br);function ShopKitProvider({fonts:e,renderIcon:r,children:n}){let o=i(()=>mr({...e?{fonts:e}:{},...r?{renderIcon:r}:{}}),[e,r]);return t(yr.Provider,{value:o},n)}function kr(){return r(yr)}function wr(e){return pr[e].color??"#000000"}function Decor({k:e}){let r=hr[e],n=ur[e].borderRadius??0,i=[];if(r.ring){let e=w.OS==="web"?{boxShadow:`inset 0 0 0 ${r.ring.width}px ${r.ring.color}`}:{borderWidth:r.ring.width,borderColor:r.ring.color};i.push(t(f,{key:"ring",pointerEvents:"none",style:[{position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:n},e]}))}return r.insetBottom&&i.push(t(f,{key:"bar",pointerEvents:"none",style:{position:"absolute",right:0,bottom:0,left:0,height:r.insetBottom.width,backgroundColor:r.insetBottom.color}})),r.lineTop&&i.push(t(f,{key:"top",pointerEvents:"none",style:{position:"absolute",right:0,top:-r.lineTop.width,left:0,height:r.lineTop.width,backgroundColor:r.lineTop.color}})),r.lineBottom&&i.push(t(f,{key:"bottom",pointerEvents:"none",style:{position:"absolute",right:0,bottom:-r.lineBottom.width,left:0,height:r.lineBottom.width,backgroundColor:r.lineBottom.color}})),i.length?i:null}function vr(e){let t=hr[e].drop;return t?w.OS==="web"?{boxShadow:`${t.x}px ${t.y}px ${t.blur}px ${t.spread}px ${t.color}`}:{shadowColor:t.color,shadowOpacity:1,shadowRadius:t.blur/2,shadowOffset:{width:t.x,height:t.y}}:null}function Icon({name:e,size:r,color:n,style:i}){let o=kr().options.renderIcon?.({name:e,size:r,color:n});if(o!=null)return t(f,{style:[{width:r,height:r},i],pointerEvents:"none"},o);let l=[{width:r,height:r,tintColor:n},i];return t(v,{source:{uri:gr[e].uri},style:l,accessible:false,importantForAccessibility:"no",resizeMode:"contain"})}function PartIcon({name:e,k:r,inkKey:n,style:i}){let o=ur[r];return t(Icon,{name:e,size:o.width??24,color:wr(n??r),style:[o.marginTop?{marginTop:o.marginTop}:null,i]})}function T({k:e,style:r,children:n,lines:i,role:o,bare:l}){let a=kr();return t(y,{style:[l?a.tx(e):a.t(e),xr(e),r],...Tr(e),...i?{numberOfLines:i}:{},...o?{accessibilityRole:o}:{}},n)}function Tr(e){return hr[e].wrap?w.OS==="web"?{}:w.OS==="ios"?{lineBreakStrategyIOS:"standard"}:{textBreakStrategy:"balanced"}:{}}function xr(e){let t=hr[e].wrap;return t&&w.OS==="web"?{textWrap:t}:null}function Sr(e){let t=hr[e].underlineOffset;return t?{textUnderlineOffset:t}:{}}function Press({onPress:e,disabled:r,label:n,style:i,children:o,role:l="button",selected:a,hitSlop:s}){return t(k,{...s?{hitSlop:s}:{},onPress:r?void 0:e,disabled:r===true,accessibilityRole:l,...n?{accessibilityLabel:n}:{},accessibilityState:{disabled:r===true,...a!==void 0?{selected:a,checked:a}:{}},style:i},o)}function Ir(e){return e.replace(/\s*→$/,"")}var Cr=createContext({go:()=>{},openExternal:()=>{}});function ShopNativeNavProvider({value:e,children:r}){return t(Cr.Provider,{value:e},r)}function Lr(){return r(Cr)}var zr=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var Wr={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},Ar={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},Rr=e=>({...Wr,...e}),Fr=e=>({...Ar,...e}),Hr={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},offbar:{box:{shown:true,w:361,h:56,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:44,radius:[0,0],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:48,dy:0},text:{shown:true,size:15,weight:500,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},action:{shown:true,w:69.859,h:44,padding:[0,2,0,2],marginTop:0,marginBottom:0,gap:[6,6],minHeight:44,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},actionText:{shown:true,size:15,weight:700,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},online:{bg:"ink",color:"onInk"},fade:200},progress:{track:{shown:true,w:361,h:4,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"line",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},fill:"go",move:300},divider:{width:1,color:"line",label:{shown:true,size:12,weight:400,lineHeight:18.6,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},labelGap:12,labelLine:{width:1,color:"line"}},errorInline:{text:{shown:true,size:15,weight:400,lineHeight:21,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:361,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},linkPressedOpacity:.6},variants:{drawer:{frame:{shown:true,w:393,h:226.594,padding:[10,20,40,20],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[28,0],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:293.406,dy:0},maxHeight:.8,grab:{shown:true,w:40,h:5,padding:[0,0,0,0],marginTop:0,marginBottom:10,gap:[0,0],minHeight:0,radius:[2.5,2.5],bg:"#DAD7D1",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},top:{shown:true,w:353,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:11,weight:400,lineHeight:16.5,color:"muted",tracking:.88,face:"mono",upper:true,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},close:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},closeEnd:-8,closeIcon:22,title:{shown:true,size:24,weight:800,lineHeight:27.6,color:"ink",tracking:-.24,face:"serif",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,w:353,h:82,padding:[0,0,0,0],marginTop:12,marginBottom:0,gap:[10,10],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:16,weight:400,lineHeight:24,color:"text",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scrim:"ink/0.38",motion:{enterMs:320,enterEasing:[.32,.72,0,1],exitMs:220,exitEasing:[.23,1,.32,1],scrimEnterMs:240,scrimExitMs:200,scrimEasing:[.25,.1,.25,1]}},button:{ink:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:0,ring:false,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},outline:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:1.5,ring:true,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},sm:{fill:false,minHeight:40,paddingX:16,gap:8,borderWidth:1.5,ring:true,fontSize:15,fontWeight:700,lineHeight:1.5,iconSize:20},lg:{fill:false,minHeight:56,paddingX:28,gap:8,borderWidth:0,ring:false,fontSize:17,fontWeight:700,lineHeight:1.5,iconSize:20},disabledOpacity:.32,press:.97,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease"},segmented:{track:{shown:true,w:361,h:44,padding:[4,4,4,4],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[22,22],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},option:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},label:{shown:true,size:14,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},chosen:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:0,y:0,dy:0},chosenLabel:{shown:true,size:14,weight:700,lineHeight:21,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},press:.96,transition:"background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},stepper:{track:{shown:true,w:110,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},button:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},icon:16,value:{shown:true,size:15.5,weight:800,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},valueWidth:30,disabledOpacity:.3,press:.9,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},summary:{box:{shown:true,w:361,h:144,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},row:{shown:true,w:329,h:34,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:34,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},term:{shown:true,size:15,weight:400,lineHeight:22.5,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},value:{shown:true,size:15,weight:400,lineHeight:22.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},totalRow:{shown:true,w:329,h:42,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:42,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},totalTerm:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renewRow:{shown:true,w:329,h:28,padding:[0,0,0,0],marginTop:-6,marginBottom:0,gap:[12,12],minHeight:28,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},renewTerm:{shown:true,size:14,weight:400,lineHeight:21,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renew:{shown:true,size:14,weight:400,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},inset:{shown:true,w:361,h:88,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"bg",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0}},toast:{box:{shown:true,w:361,h:64.594,padding:[12,15,12,15],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:16,y:62,dy:0},text:{shown:true,size:14.5,weight:400,lineHeight:20.3,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:12},motion:{enterMs:220,exitMs:160,easing:[.23,1,.32,1],rise:-8}},focus:{width:2,offset:2,color:"ink"}},press:{button:.97,iconButton:.94,card:.98},colors:{grab:"#C9C9C9",scrim:"rgba(0, 0, 0, 0.32)",watch:"#F9E6B9",planInk:"#262523",planOnInk:"#FFFFFF",planAccent:"#FFCE34",planLink:"#00707C",planAccentWash:"#FFF7DC",planAccentChip:"#FFE7A1",planLinkWash:"#E0FDFF",planLinkChip:"#C8F4F8"}};var Pr={line:/* @__PURE__ */Rr({w:361,h:109.328,gap:[12,12],center:true}),name:/* @__PURE__ */Rr({w:289,h:24,gap:[8,4],center:true,color:"ink"}),nameText:/* @__PURE__ */Fr({size:17,weight:700,lineHeight:22.1,color:"ink"}),meta:/* @__PURE__ */Fr({size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),price:/* @__PURE__ */Fr({size:17,weight:700,lineHeight:26.35,color:"ink",tabular:true}),was:/* @__PURE__ */Fr({shown:false,size:13,weight:400,lineHeight:18.85,color:"muted",marginTop:2}),acts:/* @__PURE__ */Rr({w:289,h:20.141,marginTop:6,gap:[16,16]}),remove:/* @__PURE__ */Fr({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),removeBox:/* @__PURE__ */Rr({w:53.016,h:20.141,color:"ink"}),end:/* @__PURE__ */Rr({w:289,h:26.344,gap:[4,4]})},Br={line:/* @__PURE__ */Rr({w:361,h:95.094,gap:[12,12]}),sm:/* @__PURE__ */Rr({w:48,h:48,radius:[12,12],bg:"#F3F3F3"}),md:/* @__PURE__ */Rr({w:52,h:52,radius:[12,12],bg:"#F3F3F3"}),lg:/* @__PURE__ */Rr({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */Rr({w:239.109,h:20,gap:[6,4],center:true}),nameText:/* @__PURE__ */Fr({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */Fr({size:15,weight:700,lineHeight:19.5}),linkReach:4,badge:/* @__PURE__ */Rr({w:29.344,h:20,padding:[0,7,0,7],radius:[999,999],bg:"#E0E6F2",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */Fr({size:12,weight:700,lineHeight:12}),meta:/* @__PURE__ */Fr({size:13,weight:400,lineHeight:17.55,color:"muted",marginTop:2}),acts:/* @__PURE__ */Rr({w:239.109,h:32,marginTop:6,gap:[16,16]}),act:/* @__PURE__ */Fr({size:13,weight:700,lineHeight:20.15,color:"ink",deco:"underline",decoOffset:3}),actBox:/* @__PURE__ */Rr({w:84.531,h:32,minHeight:32,color:"ink"}),price:/* @__PURE__ */Fr({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */Fr({size:13,weight:400,lineHeight:20.15,color:"muted",tabular:true,deco:"strike"})},Or={line:/* @__PURE__ */Rr({w:404,h:88,gap:[16,0],center:true}),sq:/* @__PURE__ */Rr({w:88,h:88,radius:[14,14],bg:"#F3F3F3"}),imgInset:.1,imgFit:"contain",imgBlend:"multiply",name:/* @__PURE__ */Rr({w:225.875,h:24.688,gap:[8,4],center:true}),nameText:/* @__PURE__ */Fr({size:19,weight:700,lineHeight:24.7}),link:/* @__PURE__ */Fr({size:19,weight:700,lineHeight:24.7}),linkReach:4,badge:/* @__PURE__ */Rr({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",center:true}),badgeText:/* @__PURE__ */Fr({size:13,weight:700,lineHeight:13}),meta:/* @__PURE__ */Fr({size:15,weight:400,lineHeight:21,marginTop:2}),price:/* @__PURE__ */Fr({size:19,weight:700,lineHeight:29.45,tabular:true}),was:/* @__PURE__ */Fr({size:15,weight:400,lineHeight:23.25,tabular:true,deco:"strike"}),narrow:{upTo:599,sq:/* @__PURE__ */Rr({w:64,h:64,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */Rr({w:432,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */Fr({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */Fr({size:17,weight:700,lineHeight:22.1})},narrower:{upTo:330,sq:/* @__PURE__ */Rr({w:56,h:56,radius:[14,14],bg:"#F3F3F3"}),cost:/* @__PURE__ */Rr({w:216,h:29.438,marginTop:4,gap:[8,8]}),nameText:/* @__PURE__ */Fr({size:17,weight:700,lineHeight:22.1}),link:/* @__PURE__ */Fr({size:17,weight:700,lineHeight:22.1})},phone:{upTo:639,line:/* @__PURE__ */Rr({w:303,h:81.25,gap:[12,0],center:true}),sq:/* @__PURE__ */Rr({w:56,h:56,radius:[12,12],bg:"#F3F3F3"}),cost:/* @__PURE__ */Rr({w:235,h:23.25,marginTop:2,gap:[8,8]}),nameText:/* @__PURE__ */Fr({size:15,weight:700,lineHeight:19.5}),link:/* @__PURE__ */Fr({size:15,weight:700,lineHeight:19.5}),meta:/* @__PURE__ */Fr({size:13,weight:400,lineHeight:17.55,marginTop:2}),price:/* @__PURE__ */Fr({size:15,weight:700,lineHeight:23.25,tabular:true}),was:/* @__PURE__ */Fr({size:13,weight:400,lineHeight:20.15,tabular:true,deco:"strike"}),smallUpTo:359,smallSq:48}},Dr={line:/* @__PURE__ */Rr({w:360,h:147.094,gap:[14,0]}),img:/* @__PURE__ */Rr({w:64,h:64,radius:[14,14],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),imgInset:6,imgFit:"contain",name:/* @__PURE__ */Rr({w:216,h:22.094,gap:[8,4],center:true}),nameText:/* @__PURE__ */Fr({size:17,weight:700,lineHeight:22.1,wrap:"auto"}),badge:/* @__PURE__ */Rr({w:32.625,h:22,padding:[0,8,0,8],radius:[999,999],bg:"#DEE4F1",edge:{width:1.5,color:"rgba(90, 96, 135, 0.45)",ring:true},center:true}),badgeText:/* @__PURE__ */Fr({size:13,weight:700,lineHeight:13,wrap:"auto"}),meta:/* @__PURE__ */Fr({size:15,weight:400,lineHeight:21,marginTop:2}),note:/* @__PURE__ */Fr({size:15,weight:700,lineHeight:21,color:"ink",marginTop:2}),acts:/* @__PURE__ */Rr({w:282,h:92,marginTop:10,gap:[12,8],center:true}),plan:/* @__PURE__ */Rr({w:193.703,h:44,padding:[3,3,3,3],radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true}}),planBtn:/* @__PURE__ */Rr({w:63.859,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999]}),planText:/* @__PURE__ */Fr({size:15,weight:500,lineHeight:23.25,wrap:"auto"}),planOn:/* @__PURE__ */Rr({w:123.844,h:38,padding:[0,14,0,14],minHeight:38,radius:[999,999],bg:"ink",color:"surface"}),planOnText:/* @__PURE__ */Fr({size:15,weight:700,lineHeight:23.25,color:"surface",wrap:"auto"}),qty:/* @__PURE__ */Rr({w:104,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#C6D3CD",ring:true},center:true}),countMin:24,qtyBtn:/* @__PURE__ */Rr({w:40,h:40,radius:[20,20],center:true}),qtyIcon:/* @__PURE__ */Rr({w:16,h:16}),count:/* @__PURE__ */Fr({size:15,weight:700,lineHeight:23.25,wrap:"auto",tabular:true}),remove:/* @__PURE__ */Rr({w:58.359,h:40,minHeight:40,color:"ink"}),removeText:/* @__PURE__ */Fr({size:15,weight:700,lineHeight:23.25,color:"ink",wrap:"auto",deco:"underline",decoOffset:3}),price:/* @__PURE__ */Fr({size:17,weight:700,lineHeight:22.1,wrap:"auto",tabular:true}),was:/* @__PURE__ */Fr({size:15,weight:400,lineHeight:19.5,wrap:"auto",tabular:true,deco:"strike"}),pressScale:.9,hover:{color:"ink",share:.06,over:"surface"},motion:{press:140,fill:150,planFill:150}};var Er={line:/* @__PURE__ */Rr({w:297,h:95.625,gap:[12,12],color:"#262523"}),img:/* @__PURE__ */Rr({w:64,h:64,radius:[14,14],bg:"planLinkWash",center:true,color:"planLink"}),icon:/* @__PURE__ */Rr({w:28,h:28,color:"planLink"}),name:/* @__PURE__ */Fr({size:16.5,weight:800,lineHeight:20.625,color:"#262523",wrap:"balance"}),prices:/* @__PURE__ */Rr({w:221,h:24,marginTop:3,gap:[8,2],center:true,color:"#262523"}),price:/* @__PURE__ */Fr({size:16,weight:800,lineHeight:24,color:"#262523",tabular:true}),was:/* @__PURE__ */Fr({size:14,weight:600,lineHeight:21,color:"#6B6863",deco:"strike"}),small:/* @__PURE__ */Fr({size:14,weight:400,lineHeight:21,color:"#6B6863"}),acts:/* @__PURE__ */Rr({w:221,h:40,marginTop:8,gap:[16,16],center:true,color:"#262523"}),step:/* @__PURE__ */Rr({w:110,h:40,radius:[999,999],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},center:true,color:"#262523"}),remove:/* @__PURE__ */Rr({w:56.422,h:40,minHeight:40,color:"#4A4845"}),removeText:/* @__PURE__ */Fr({size:14.5,weight:700,lineHeight:21.75,color:"#4A4845",deco:"underline",decoOffset:3,decoThickness:1.5})};function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e))for(let t of Object.values(e))deepFreeze(t);return e}var Nr=zr,Vr=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function qr(e){return Object.defineProperty(e,Vr,{value:e,enumerable:true}),deepFreeze(e)}var Ur={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},Gr=qr({name:"everfur",colors:{bg:Nr.color.bg,surface:Nr.color.efWhite,text:Nr.color.text,ink:Nr.role.color.ink,onInk:Nr.color.efWhite,muted:Nr.role.color.muted,line:Nr.role.color.line,go:Nr.role.color.go,onGo:Nr.role.color.ink,pink:Nr.color.efDustyPink,onPink:Nr.role.color.ink,alert:Nr.color.alert,alertDeep:Nr.color.alertDeep,icoSage:Nr.role.color.icoSage,bgMist:Nr.color.bgMist,tintSage:Nr.role.color.tintSage,tintBlue:Nr.role.color.tintBlue,tintGo:Nr.role.color.tintGo,tintPink:Nr.role.color.tintPink,tintYellowEdge:Nr.role.color.tintYellowEdge,tintWatch:Hr.colors.watch,tintRed:Nr.role.color.tintRed,scrim:Hr.colors.scrim,grab:Hr.colors.grab,focus:Nr.role.color.ink,planInk:Hr.colors.planInk,planOnInk:Hr.colors.planOnInk,planAccent:Hr.colors.planAccent,planLink:Hr.colors.planLink,planAccentWash:Hr.colors.planAccentWash,planAccentChip:Hr.colors.planAccentChip,planLinkWash:Hr.colors.planLinkWash,planLinkChip:Hr.colors.planLinkChip},radius:{...Nr.radius},space:{...Nr.space},type:{family:Nr.font.family.base,mono:Nr.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:Nr.font.size.xs,sm:Nr.font.size.sm,md:Nr.font.size.md,lg:Nr.font.size.lg,xl:Nr.font.size.xl},weight:{...Nr.font.weight},lineHeight:{...Nr.font.lineHeight},scaleCaps:Ur},motion:{duration:{press:Nr.motion.duration.press,fade:Nr.motion.duration.fade,enter:Nr.motion.duration.enter,sheet:Nr.motion.duration.sheet,sheetOut:Nr.motion.duration.sheetOut},easing:{out:Nr.motion.easing.out,drawer:Nr.motion.easing.drawer},pop:{duration:Nr.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:Hr});function Mr(e){return e[Vr]??Gr}function Kr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function jr(e,t){if(!Kr(e)||!Kr(t))return t===void 0?e:t;let r={...e};for(let[n,i]of Object.entries(t))i!==void 0&&(r[n]=jr(e[n],i));return r}function resolveTheme(e,t=Gr){if(!e)return t;let r=jr(t,e),n=e.colors;if(n){let e=r.colors;for(let[t,r,i]of Zr){let o=n[r];o!==void 0&&n[t]===void 0&&(e[t]=Yr(o,i,e.surface)??e[t]??o)}}return deepFreeze(r)}var Zr=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function Yr(e,t,r){let n=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e??"");return t?[t[1],t[2],t[3]].map(e=>parseInt(e,16)):void 0},[i,o]=[n(e),n(r)];if(!(!i||!o))return`#${i.map((e,r)=>Math.round(e*t+(o[r]??0)*(1-t)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var Jr=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),t=globalThis,r=t[e]??(t[e]=createContext(null));return r.displayName??(r.displayName="EverfurThemeContext"),r})();function ThemeProvider({theme:e,children:r}){let n=rn(),o=e===void 0||Qr(e)?e:Xr(e),l=i(()=>Qr(e)?tn(e):resolveTheme(e,n),[o,n]);return t(Jr.Provider,{value:l},r)}function Xr(e){return JSON.stringify(e,(e,t)=>Kr(t)&&!Array.isArray(t)?Object.fromEntries(Object.keys(t).sort().map(e=>[e,t[e]])):t)}function Qr(e){return e!==void 0&&Object.isFrozen(e)&&_r.every(t=>t in e)}var _r=["name","colors","radius","space","type","motion","metrics"];function $r(e,t){if(e===void 0)return true;if(!Kr(e))return t!==void 0;if(!Kr(t))return false;for(let r of Object.keys(e))if(!$r(e[r],t[r]))return false;return true}var en=/* @__PURE__ */new WeakMap;function tn(e){let t=en.get(e);if(t)return t;if($r(Gr,e))return en.set(e,e),e;let r=Mr(e),n=jr(Gr,r===Gr?e:jr(r,e));n[Vr]=r;let i=deepFreeze(n);return en.set(e,i),i}function rn(){let e=r(Jr);return e?tn(e):Gr}var nn=e=>Math.round(e*1e3)/1e3;function on(e,t=false){return t?e>450?"monoBold":"mono":e>500?"bold":e>450?"medium":"regular"}function ln(e,t){let r=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(!r)return e;let[n,i,o]=[r[1],r[2],r[3]].map(e=>parseInt(e,16));return`rgba(${n}, ${i}, ${o}, ${t})`}function an(e){let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(t)return[t[1],t[2],t[3]].map(e=>parseInt(e,16));let r=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(e);return r?[r[1],r[2],r[3]].map(Number):void 0}function sn(e,t,r,n){let[i,o]=[an(e),an(r)];return!i||!o?n:`rgb(${i.map((e,r)=>Math.round(e*t+(o[r]??0)*(1-t))).join(", ")})`}function dn(e,t){let r=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(t),n=r?.[1];if(!r||n===void 0||!(n in e.colors))return t;let i=e.colors[n];return r[2]===void 0?i:ln(i,Number(r[2]))}function cn(e,t){return t==="none"?"transparent":dn(e,t)}var un=.45;function pn(e,t){let r=e.metrics.pill,n=r.tones[t],i=t==="clear"?e.colors.ink:dn(e,n.fg);return{minHeight:r.minHeight,paddingX:r.paddingX,radius:e.radius.pill,background:dn(e,n.bg),ring:n.ring>0?{width:n.ring,color:dn(e,n.ringColor)}:null,dot:t==="new"?{size:r.dot,gap:r.dotGap,color:e.colors.go}:t==="allergy"?{size:r.allergyDot.size,gap:r.allergyDot.gap,color:dn(e,r.allergyDot.color)}:null,text:{size:r.fontSize,weight:r.fontWeight,lineHeight:nn(r.fontSize*r.lineHeight),color:i,mono:r.mono,tracking:r.letterSpacing,upper:r.upper}}}function hn(e,t){let r=e.metrics.sheet,n=r.titleSize,i=r.titleLineHeight??e.metrics.card.titleLineHeight;return{size:n,weight:r.titleWeight??e.metrics.card.titleWeight,lineHeight:nn(n*i),color:dn(e,r.titleColor??"ink"),tracking:r.titleTracking??e.metrics.card.titleTracking}}function gn(e){let t=e.metrics,r=e.colors;return{cardTitle:{size:t.card.titleSize,weight:t.card.titleWeight,lineHeight:nn(t.card.titleSize*t.card.titleLineHeight),color:r.ink,tracking:t.card.titleTracking},cardLead:{size:t.card.leadSize,weight:e.type.weight.regular,lineHeight:nn(t.card.leadSize*t.card.leadLineHeight),color:r.text},body:{size:t.card.bodySize,weight:e.type.weight.regular,lineHeight:nn(t.card.bodySize*t.card.bodyLineHeight),color:r.text},kicker:{size:t.kicker.fontSize,weight:t.kicker.fontWeight,lineHeight:nn(t.kicker.fontSize*t.kicker.lineHeight),color:r.muted,mono:true,tracking:t.kicker.letterSpacing,upper:true},sheetTitle:hn(e),stepperValue:{size:t.quantityStepper.valueSize,weight:t.quantityStepper.valueWeight,lineHeight:nn(t.quantityStepper.valueSize*t.quantityStepper.valueLineHeight),color:dn(e,t.quantityStepper.valueColor??"text")},tab:{size:t.tabs.fontSize,weight:t.tabs.fontWeight,lineHeight:nn(t.tabs.fontSize*t.tabs.lineHeight),color:r.muted},tabCurrent:{size:t.tabs.fontSize,weight:t.tabs.currentWeight,lineHeight:nn(t.tabs.fontSize*t.tabs.lineHeight),color:r.ink},emptyTitle:{size:t.empty.titleSize,weight:t.empty.titleWeight,lineHeight:nn(t.empty.titleSize*t.empty.titleLineHeight),color:r.ink,tracking:t.empty.titleTracking},emptyLead:{size:t.empty.leadSize,weight:e.type.weight.regular,lineHeight:nn(t.empty.leadSize*t.empty.leadLineHeight),color:r.text},emptyLink:{size:t.empty.linkSize,weight:t.empty.linkWeight,lineHeight:nn(t.empty.linkSize*t.card.bodyLineHeight),color:r.ink},sumTerm:{size:t.summary.termSize,weight:e.type.weight.regular,lineHeight:nn(t.summary.termSize*t.summary.termLineHeight),color:r.muted},sumValue:{size:t.summary.valueSize,weight:t.summary.valueWeight,lineHeight:nn(t.summary.valueSize*t.summary.valueLineHeight),color:r.ink},sumTotal:{size:t.summary.totalSize,weight:t.summary.valueWeight,lineHeight:nn(t.summary.totalSize*t.summary.totalLineHeight),color:r.ink}}}function fn(e){let t=e.metrics.quantityStepper;return{edge:{width:t.borderWidth,color:dn(e,t.borderColor),inset:t.ring},button:t.button,icon:t.icon,valueMinWidth:t.valueMinWidth,fill:cn(e,t.fill??"none"),glyph:dn(e,t.glyph??"ink"),off:{color:dn(e,t.offColor),opacity:t.offOpacity}}}function mn(e,t){return{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:dn(e,t.color),...t.face==="mono"?{mono:true}:{},...t.face==="serif"?{serif:true}:{},...t.tracking?{tracking:t.tracking}:{},...t.upper?{upper:true}:{},...t.deco==="none"?{}:{deco:t.deco==="strike"?"strike":"underline",decoOffset:t.decoOffset,decoThickness:t.decoThickness},...t.tabular?{tabular:true}:{},...t.wrap==="auto"?{}:{wrap:t.wrap==="balance"?"balance":"pretty"}}}function bn(e,t){return t==="none"?void 0:dn(e,t)}function yn(e){let t=e.metrics.summary,r=(e,t)=>nn(e*t);return{paddingX:t.paddingX,paddingY:t.paddingY,radius:t.radius,borderWidth:t.borderWidth,borderColor:e.colors.line,background:dn(e,t.background),shadow:t.shadow,row:{paddingY:t.rowPaddingY,minHeight:t.rowMinHeight,gapX:t.rowGapX,gapY:t.rowGapY,divider:t.rowDivider,center:t.rowCenter},totalRowMinHeight:t.totalRowMinHeight,gap:t.gap??0,totalMarginTop:t.totalMarginTop??0,tabular:t.tabular,term:{size:t.termSize,weight:e.type.weight.regular,lineHeight:r(t.termSize,t.termLineHeight),color:dn(e,t.termColor)},value:{size:t.valueSize,weight:t.valueWeight,lineHeight:r(t.valueSize,t.valueLineHeight),color:dn(e,t.valueColor)},totalTerm:{size:t.totalTermSize,weight:t.totalTermWeight,lineHeight:r(t.totalTermSize,t.termLineHeight),color:dn(e,t.totalTermColor)},total:{size:t.totalSize,weight:t.totalWeight,lineHeight:r(t.totalSize,t.totalLineHeight),color:dn(e,t.valueColor)},off:mn(e,e.metrics.summary.off)}}function kn(e,t){let r=e.metrics.skeleton.widths;return`${r[t%r.length]}%`}function wn(e,t,r){return Math.max(t,r===void 0?e:Math.min(r,e))}function vn(e,t,r){return r!==void 0?r:e===void 0?void 0:`${e}-${t}`}function Tn(e){return e.trim().split(/\s+/).filter(Boolean).slice(0,2).map(e=>xn(e).toLocaleUpperCase()).join("")}function xn(e){let t=Intl.Segmenter;if(t)for(let r of new t(void 0,{granularity:"grapheme"}).segment(e))return r.segment;return Array.from(e)[0]??""}function Sn(e,t,r="default"){let n=e.metrics.lists.avatar,i=typeof t=="number"?t:n.sizes[t],o=mn(e,i<=n.sizes.xs?n.initialsXs:n.initials),l=t==="xl"?n.ringXl:n.ring;return{side:i,initials:o,tint:dn(e,n.tints[r]),photoBg:dn(e,n.bg),edge:{width:n.edge.width,color:dn(e,n.edge.color)},ring:{width:l.width,offset:l.offset,color:dn(e,l.color)},dot:{size:n.dot.size,edge:n.dot.edge,edgeColor:dn(e,n.dot.edgeColor),color:e.colors.go}}}function In(e,t,r=false){let n=e.metrics.lists,i=t==="tiles",o=mn(e,i?n.tiles.title:n.rows.title),l=mn(e,i?n.tiles.subtitle:n.rows.subtitle),a=n.tiles.alert;return{row:i?n.tiles.row:n.rows.row,title:r?{...o,color:dn(e,a.title)}:o,subtitle:r?{...l,color:dn(e,a.subtitle)}:l,value:mn(e,n.end.text),icon:{size:n.tiles.icon.w,column:n.tiles.leading,color:dn(e,r?a.icon:n.tiles.icon.color)},chevron:{size:n.end.chevron.w,color:dn(e,n.end.chevron.color)},fill:r&&i?dn(e,a.bg):bn(e,i?n.tiles.row.bg:"none"),pressedFill:dn(e,n.tiles.pressed),gap:n.tiles.row.gap[0]??0,endGap:n.end.gap,disabledOpacity:un}}var Cn=e=>e,Ln=e=>"edge"in e&&"shadow"in e&&"fit"in e,zn=e=>"deco"in e&&"face"in e&&"tabular"in e;function Wn(e){let t=/* @__PURE__ */new Map;for(let[r,n]of Object.entries(e))t.has(n)||t.set(n,r);return t}var An,Rn=/* @__PURE__ */new WeakMap;function Fn(e,t,r){let n=e.get(r),i=n===void 0?void 0:t[n];return typeof i=="number"?i:r}function Hn(e){let t=Gr;return e.space===t.space&&e.radius===t.radius&&e.type.size===t.type.size&&e.type.weight===t.type.weight}function Pn(e,t){let r=Gr;An??(An={space:Wn(Cn(r.space)),radius:Wn(Cn(r.radius)),size:Wn(Cn(r.type.size)),weight:Wn(Cn(r.type.weight))});let n=An,i=t=>Fn(n.space,Cn(e.space),t),o=t=>Fn(n.radius,Cn(e.radius),t),l=t=>Array.isArray(t)?t.map(l):t===null||typeof t!="object"?t:Ln(t)?{...t,padding:t.padding.map(i),gap:t.gap.map(i),marginTop:i(t.marginTop),marginBottom:i(t.marginBottom),radius:t.radius.map(o)}:zn(t)?{...t,size:Fn(n.size,Cn(e.type.size),t.size),weight:Fn(n.weight,Cn(e.type.weight),t.weight),marginTop:i(t.marginTop),paddingTop:i(t.paddingTop)}:Object.fromEntries(Object.entries(t).map(([e,t])=>[e,l(t)]));return l(t)}function Bn(e,t){if(Hn(e))return t;let r=Rn.get(t);r||Rn.set(t,r=/* @__PURE__ */new WeakMap);let n=r.get(e);if(n)return n;let i=Pn(e,t);return r.set(e,i),i}var On={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function Dn(e,t){let r=e.colors;switch(t){case"ink":return r.ink;case"text":return r.text;case"muted":return r.muted;case"danger":return r.alertDeep;case"inverse":return r.onInk;default:return}}function En(e,t,r,n){let i=mn(e,e.metrics.text[t]),o=Dn(e,r);return{...i,...o?{color:o}:{},...n?{weight:e.type.weight[n]}:{}}}var Nn=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#PressFeedbackContext@v1"),t=globalThis,r=t[e]??(t[e]=createContext(null));return r.displayName??(r.displayName="EverfurPressFeedbackContext"),r})();function Vn(){return r(Nn)}function qn(e,t,r,n={}){if(!e||n.disabled)return{onPress:r,onPressIn:void 0};let{onPressIn:i,onPress:o,haptic:l}=e,a=n.haptics!==false&&t.haptic&&l?l:void 0;return{onPress:r&&(o||a)?()=>{a?.(t),o?.(t),r()}:r,onPressIn:i?()=>i(t):void 0}}function Un(e,t,r=1){return e?.pressScale?.[t]??r}var Gn={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function Mn(e,t){return e.type.variantTiers?.[t]??On[t]}var Kn=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),t=globalThis,r=t[e]??(t[e]=createContext(null));return r.displayName??(r.displayName="EverfurReducedMotionContext"),r})();function jn(){return r(Kn)}function Zn(e,t){let r=on(t.weight,t.mono===true);return{fontFamily:t.serif?e.type.faces.serif??e.type.faces.bold:e.type.faces[r],...e.type.namedFaces?{}:{fontWeight:String(t.weight)},fontSize:t.size,lineHeight:t.lineHeight,color:t.color,...t.tracking?{letterSpacing:t.tracking}:{},...t.upper?{textTransform:"uppercase"}:{},...t.deco?Yn(t):{},...t.tabular?{fontVariant:["tabular-nums"]}:{},...t.wrap&&w.OS==="web"?{textWrap:t.wrap}:{}}}function Yn(e){let t={textDecorationLine:e.deco==="strike"?"line-through":"underline"};return w.OS!=="web"?t:{...t,...e.decoOffset?{textUnderlineOffset:e.decoOffset}:{},...e.decoThickness?{textDecorationThickness:e.decoThickness}:{}}}function Jn(e,t){let[r=0,n=0,i=0,o=0]=t.padding,[l=0,a=0]=t.radius,s=bn(e,t.bg);return{paddingTop:r,paddingRight:n,paddingBottom:i,paddingLeft:o,...t.marginTop?{marginTop:t.marginTop}:{},...t.gap[0]?{columnGap:t.gap[0]}:{},...t.gap[1]?{rowGap:t.gap[1]}:{},...l===a?l?{borderRadius:l}:{}:{borderTopLeftRadius:l,borderTopRightRadius:l,borderBottomLeftRadius:a,borderBottomRightRadius:a},...s?{backgroundColor:s}:{},...t.edge.width>0&&!t.edge.ring?{borderWidth:t.edge.width,borderColor:dn(e,t.edge.color)}:{},...t.minHeight?{minHeight:t.minHeight}:{},...ti(t.shadow)}}function Xn(e,t){return t.edge.width>0&&t.edge.ring?ri(t.edge.width,dn(e,t.edge.color),t.radius[0]??0):null}function Qn(){if(w.OS!=="web")return false;let e=globalThis;return typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)").matches}function _n(e){let[t,r]=l(()=>e===null&&Qn());return n(()=>{if(e!==null)return;let t=true,n=z?.isReduceMotionEnabled;if(typeof n=="function"){let e=n.call(z);e!=null&&typeof e.then=="function"&&e.then(e=>{t&&r(e===true)},()=>{})}let i=z?.addEventListener?.("reduceMotionChanged",e=>r(e===true));return()=>{t=false,i?.remove?.()}},[e]),e??t}function $n(e){let t=_n(jn());return e.motion.reduced||t}function ei(e){let t=Math.max(0,Math.ceil((44-e)/2));return t===0?void 0:{top:t,bottom:t,left:t,right:t}}function ti(e){return e.blur===0&&e.y===0&&e.x===0?null:{shadowColor:e.color,shadowOffset:{width:e.x,height:e.y},shadowOpacity:1,shadowRadius:e.blur,elevation:1}}function ri(e,t,r){let n={position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:r};return w.OS==="web"?{...n,boxShadow:`inset 0 0 0 ${e}px ${t}`}:{...n,borderWidth:e,borderColor:t}}function ni(e){return Math.round(e*100)/100}function ii(e,t){let r=Number(t.weight),n=t.letterSpacing??0;return{...Zn(e,{size:t.size,weight:r,lineHeight:ni(t.size*t.lineHeight),color:e.colors.text,tracking:n?ni(t.size*n):0,mono:t.face==="mono",upper:t.uppercase===true}),flexShrink:1}}function oi(e){return e==="auto"?null:w.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:w.OS==="android"&&e==="balance"?{textBreakStrategy:"balanced"}:null}function li(e,t){let r=e.type.weight[t];return e.type.namedFaces?{fontFamily:e.type.faces[on(r)]}:{fontWeight:String(r)}}function Text2({tier:e,variant:r,tone:n,weight:i,level:o,lineBreak:l,typeRole:a,...s}){let d=rn();if(a){let r=d.type.scaleCaps[e??a.tier??"content"],n=l?oi(l):null;return t(y,{...r>0?{maxFontSizeMultiplier:r}:{},...n,...s,style:[ii(d,a),s.style]})}let c=d.type.scaleCaps[e??(r?Mn(d,r):"content")],u=oi(l??(r?Gn[r]:"auto"));if(r===void 0&&n===void 0&&i===void 0&&o===void 0)return u?t(y,{...c>0?{maxFontSizeMultiplier:c}:{},...u,...s}):t(y,c>0?{maxFontSizeMultiplier:c,...s}:s);let p=Dn(d,n),h=r?Zn(d,En(d,r,n,i)):{...p?{color:p}:{},...i?li(d,i):{}},g=o===void 0?{}:{accessibilityRole:"header",...w.OS==="web"?{"aria-level":o}:{}};return t(y,{...c>0?{maxFontSizeMultiplier:c}:{},...u,...g,...s,style:[h,s.style]})}var ai=24,si=16,di=.8,ci=e=>Math.round(e*si);function ui(e,t,r,n,i,o){let l=e-r/2,a=t-n/2,s=Math.round(l),d=Math.round(a);return{position:"absolute",left:s,top:d,width:r,height:n,transform:[{translateX:l-s},{translateY:a-d},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/si}]}}function pi(e,t,r){for(let n of e.strokes){let e=n.width*t,i=n.points,o=i.length/2,l=n.closed?o:o-1;for(let a=0;a<l;a+=1){let l=(a+1)%o,s=(i[a*2]??0)*t,d=(i[a*2+1]??0)*t,c=(i[l*2]??0)*t-s,u=(i[l*2+1]??0)*t-d,p=Math.hypot(c,u);if(p===0&&!(o===2&&n.cap))continue;let h=p===0?1:c/p,g=p===0?0:u/p,f=n.closed||a>0||n.cap?e/2:0,m=n.closed||l!==o-1||n.cap?e/2:0,b=(p+m-f)/2;r.push({paint:"backgroundColor",style:{...ui(s+h*b,d+g*b,ci(p+f+m),ci(e),h,g),borderTopLeftRadius:f>0?ci(e)/2:0,borderBottomLeftRadius:f>0?ci(e)/2:0,borderTopRightRadius:m>0?ci(e)/2:0,borderBottomRightRadius:m>0?ci(e)/2:0,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}}function hi(e,t,r){for(let n of e.boxes){let e=(n.w+n.width)*t,i=(n.h+n.width)*t;r.push({paint:"borderColor",style:{...ui((n.x-n.width/2)*t+e/2,(n.y-n.width/2)*t+i/2,ci(e),ci(i),1,0),borderWidth:ci(n.width*t),borderRadius:(n.radius+n.width/2)*t*si,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}function gi(e,t,r){for(let n of e.triangles){let e=[0,1,2].map(e=>[(n[e*2]??0)*t,(n[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let r=e[t]??[0,0],n=e[(t+1)%3]??[0,0],l=Math.hypot(n[0]-r[0],n[1]-r[1]);l>o&&(o=l,i=t)}if(o<=0)continue;let l=e[i]??[0,0],a=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],d=(a[0]-l[0])/o,c=(a[1]-l[1])/o,u=(s[0]-l[0])*d+(s[1]-l[1])*c,p=(s[0]-l[0])*-c+(s[1]-l[1])*d,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=ci(u),b=ci(o)-m,y=ci(h);r.push({paint:g?"borderBottomColor":"borderTopColor",style:{...ui(l[0]+d*(o/2)-c*f,l[1]+c*(o/2)+d*f,m+b,y,d,c),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:y}:{borderTopWidth:y}}})}for(let n of e.seams){let e=(n[0]??0)*t,i=(n[1]??0)*t,o=(n[2]??0)*t-e,l=(n[3]??0)*t-i,a=Math.hypot(o,l),s=di*(n[4]??0),d=di*(n[5]??0),c=a-s-d;if(a===0||c<=0)continue;let u=s+c/2;r.push({paint:"backgroundColor",style:ui(e+o/a*u,i+l/a*u,ci(c),ci(di),o/a,l/a)})}}var fi=/* @__PURE__ */new WeakMap;function mi(e,t){let r=fi.get(e);r===void 0&&(r=/* @__PURE__ */new Map,fi.set(e,r));let n=r.get(t);if(n!==void 0)return n;let i=[],o=t/ai;return hi(e,o,i),pi(e,o,i),gi(e,o,i),r.set(t,i),i}function Glyph({icon:e,size:t,color:r,label:n,testID:i,style:o}){let l=rn(),a=t??l.metrics.icon.size,s=r??l.colors.ink;/* @__PURE__ */
5
+ return A(f,{testID:i,pointerEvents:"none",style:[{width:a,height:a},o],...n?{accessible:true,accessibilityRole:"image",accessibilityLabel:n}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:mi(e,a).map((e,t)=>/* @__PURE__ */A(f,{style:[e.style,{[e.paint]:s}]},t))})}var bi=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),t=globalThis;return t[e]??(t[e]={icons:{},warned:/* @__PURE__ */new Set})})();function yi(e){let t=bi.icons[e];return t===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!bi.warned.has(e)&&(bi.warned.add(e),console.warn(`@everfur-health/ui-native: no icon "${e}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),t}function Icon2({name:e,...t}){let r=yi(e);return r?/* @__PURE__ */A(Glyph,{icon:r,...t}):null}function ki(e,t,r,n=1){return wi(Vn(),e,t,r,n)}function wi(e,t,r,n,i=1){let o=qn(e,{component:t,testID:r.testID,...r.item===void 0?{}:{item:r.item},label:r.label,trackId:r.trackId,haptic:r.haptic===true},n,{disabled:r.disabled});return{props:o.onPressIn?{onPress:o.onPress,onPressIn:o.onPressIn}:{onPress:o.onPress},scale:Un(e,t,i)}}var vi=e=>`cubic-bezier(${e.join(", ")})`,Ti=(e,t)=>typeof e=="function"?e({pressed:t}):e,xi;function Si(){return xi??(xi=C.createAnimatedComponent(k))}function Ii(e,t,r){let[n,i,o,l]=e.motion.easing.out;return C.timing(t,{toValue:r,duration:e.motion.duration.press,easing:L.bezier(n,i,o,l),useNativeDriver:true})}function PressBox({style:e,scale:r,still:n,pop:i,onPressIn:a,onPressOut:s,...d}){let c=rn(),u=o(null),[p,h]=l(false),g=!n&&r!==1,f=!n&&i?.scale!=null;if(w.OS==="web"){let n=g?{transitionProperty:"transform",transitionDuration:`${c.motion.duration.press}ms`,transitionTimingFunction:vi(c.motion.easing.out)}:null;return t(k,{...d,...i?{ref:i.ref}:null,onPressIn:a,onPressOut:s,style:({pressed:t})=>[Ti(e,t),n,g&&t?{transform:[{scale:r}]}:null]})}if(!g&&!f)return t(k,{...d,onPressIn:a,onPressOut:s,style:e});let m=u.current??(u.current=new C.Value(0)),b=g?m.interpolate({inputRange:[0,1],outputRange:[1,r]}):null,y=b&&f?C.multiply(b,i?.scale):b??i?.scale;return t(Si(),{...d,onPressIn:e=>{d.disabled||(h(true),g&&Ii(c,m,1).start(),a?.(e))},onPressOut:e=>{h(false),g&&Ii(c,m,0).start(),s?.(e)},style:[Ti(e,p),{transform:[{scale:y}]}]})}h.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});var Ci={bg:"#FDFBF8",radius:10,padding:15,borderWidth:1,borderColor:"rgba(0, 0, 0, 0.15)"},Li={gap:10,title:{size:14,weight:700,lineHeight:18,tracking:-.42,color:"ink"},bigTitle:{size:18,weight:700,lineHeight:22,tracking:-.54,color:"ink"},edit:{icon:12,iconColor:"#3D3D3D",gap:4,text:{size:8,weight:400,lineHeight:10,tracking:-.24,color:"#3D3D3D",mono:true,upper:true},minHeight:44,hitSlop:12}},zi={block:{height:16,radius:8},shimmer:{duration:1150,bandShare:.6,bandMin:28,band:"rgba(255, 255, 255, 0.42)",skew:-14}};function Card({title:e,action:t,lead:r,children:n,tone:i="default",headGap:o,onPress:l,accessibilityLabel:a,trackId:s,haptic:d,variant:c="standard",tint:u,borderColor:p,testID:h,style:g}){let m=rn(),b=$n(m),y=m.metrics.card,k=gn(m),w=a??e,v=ki("Card",{testID:h,label:w,trackId:s,haptic:d},l,m.metrics.press.card),x=e?/* @__PURE__ */A(Text2,{accessibilityRole:"header",tier:"heading",lineBreak:"balance",style:[Zn(m,k.cardTitle),Wi.shrink],children:e}):null,S=i==="ghost",I=c==="plain"?Ci:null,C=I?{padding:I.padding,borderWidth:I.borderWidth,borderColor:p??(S?dn(m,y.ghost.borderColor):I.borderColor),...S?{borderStyle:y.ghost.borderStyle}:null,borderRadius:I.radius,borderCurve:"continuous",backgroundColor:u??I.bg}:{padding:y.padding,borderWidth:y.borderWidth,borderColor:p??(S?dn(m,y.ghost.borderColor):m.colors.line),...S?{borderStyle:y.ghost.borderStyle}:null,borderRadius:y.radius,backgroundColor:u??m.colors.surface},L=/* @__PURE__ */W(R,{children:[t?/* @__PURE__ */W(f,{style:[Wi.head,x?null:Wi.end,{columnGap:y.headGapX,rowGap:y.headGapY,marginBottom:o??y.headGap}],children:[x,t]}):x?/* @__PURE__ */A(f,{style:{marginBottom:r||n?o??y.titleGap:0},children:x}):null,r?/* @__PURE__ */A(Text2,{style:[Zn(m,k.cardLead),{marginBottom:n?y.leadGap:0}],children:r}):null,n]});return l?/* @__PURE__ */A(PressBox,{testID:h,...v.props,scale:v.scale,still:b,accessibilityRole:"button",accessibilityLabel:w,style:[C,g],children:L}):/* @__PURE__ */A(f,{testID:h,style:[C,g],children:L})}var Wi=h.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});h.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});function Ai(e,t){return Zn(e,{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:dn(e,t.color),tracking:t.tracking,mono:t.mono===true,upper:t.upper===true})}h.create({st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},acts:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"},compact:{alignItems:"center"},iconBox:{alignItems:"center",justifyContent:"center"},pill:{alignItems:"center",justifyContent:"center"}});h.create({acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"},st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},stActs:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});function Pill({label:e,tone:t="plain",testID:r,style:n,maxFontSizeMultiplier:i,grouped:o=true}){let l=rn(),a=pn(l,t);/* @__PURE__ */
6
+ return W(f,{testID:r,...o?{accessible:true,accessibilityLabel:e}:null,style:[Ri.pill,{minHeight:a.minHeight,paddingHorizontal:a.paddingX,borderRadius:a.radius,backgroundColor:a.background,...a.dot?{columnGap:a.dot.gap}:{}},n],children:[a.ring?/* @__PURE__ */A(f,{pointerEvents:"none",style:ri(a.ring.width,a.ring.color,a.radius)}):null,a.dot?/* @__PURE__ */A(f,{style:{width:a.dot.size,height:a.dot.size,borderRadius:a.dot.size/2,backgroundColor:a.dot.color}}):null,
7
+ /* @__PURE__ */A(Text2,{tier:"control",numberOfLines:1,...i===void 0?{}:{maxFontSizeMultiplier:i},style:[Zn(l,a.text),Ri.label],children:e})]})}var Ri=h.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}});var Fi={strokes:[{width:2,cap:true,closed:true,points:[11,21.73,12,21.998,13,21.73,20,17.73,20.732,16.999,21,16,21,8,20.732,7.001,20,6.27,13,2.27,12,2.002,11,2.27,4,6.27,3.268,7.001,3,8,3,16,3.268,16.999,4,17.73]},{width:2,cap:true,closed:false,points:[12,22,12,12]},{width:2,cap:true,closed:false,points:[3.29,7,12,12,20.71,7]},{width:2,cap:true,closed:false,points:[7.5,4.27,16.5,9.42]}],boxes:[],triangles:[],seams:[]};var Hi={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]};var Pi={strokes:[{width:2,cap:true,closed:false,points:[12,3,5,3,4,3.268,3.268,4,3,5,3,19,3.268,20,4,20.732,5,21,19,21,20,20.732,20.732,20,21,19,21,12]},{width:2,cap:true,closed:true,points:[18.375,2.625,19.326,2.076,20.424,2.076,21.375,2.625,21.924,3.576,21.924,4.674,21.375,5.625,12.362,14.639,11.509,15.144,8.636,15.984,8.142,15.858,8.016,15.364,8.856,12.491,9.362,11.639]}],boxes:[],triangles:[],seams:[]};var Bi={strokes:[{width:2,cap:true,closed:false,points:[5,12,19,12]}],boxes:[],triangles:[],seams:[]};var Oi={strokes:[{width:2,cap:true,closed:false,points:[5,12,19.001,12]},{width:2,cap:true,closed:false,points:[12,5,12,19.001]}],boxes:[],triangles:[],seams:[]};function QuantityStepper(e){return Di(e,void 0)}function InkedQuantityStepper({ink:e,...t}){return Di(t,e)}function Di({value:e,min:t=1,max:r,label:i,fewerLabel:l,moreLabel:a,disabled:s=false,variant:d="standard",onChange:c,trackId:u,haptic:p,testID:h,style:g},m){let b=rn(),y=$n(b),k=fn(b),v=b.metrics.variants.stepper,x=d==="compact",S=s||e<=t,I=s||r!==void 0&&e>=r,C=x?v.press:b.metrics.press.iconButton,L=ki("QuantityStepper",{testID:h?`${h}-fewer`:void 0,item:"fewer",label:l,trackId:u,haptic:p,disabled:S},()=>c(wn(e-1,t,r)),C),R=ki("QuantityStepper",{testID:h?`${h}-more`:void 0,item:"more",label:a,trackId:u,haptic:p,disabled:I},()=>c(wn(e+1,t,r)),C),F=o(e);n(()=>{F.current!==e&&(F.current=e,w.OS==="ios"&&z.announceForAccessibility(`${i}, ${e}`))},[i,e]);let H=(e,t,r,n,i)=>/* @__PURE__ */A(PressBox,{...n.props,scale:n.scale,still:y,disabled:e,hitSlop:ei(v.button.h),accessibilityRole:"button",accessibilityLabel:r,accessibilityState:{disabled:e},testID:h?`${h}-${i}`:void 0,style:[Ei.button,{width:v.button.w,height:v.button.h,borderRadius:v.button.radius[0]??0},e?{opacity:v.disabledOpacity}:null],children:/* @__PURE__ */A(Glyph,{icon:t==="plus"?Oi:Bi,size:v.icon,color:m??dn(b,v.button.color)})}),P=(e,t,r,n,i)=>x?H(e,t,r,n,i):/* @__PURE__ */A(PressBox,{...n.props,scale:n.scale,still:y,disabled:e,hitSlop:ei(k.button),accessibilityRole:"button",accessibilityLabel:r,accessibilityState:{disabled:e},testID:h?`${h}-${i}`:void 0,style:[Ei.button,{width:k.button,height:k.button,borderRadius:k.button/2},e&&k.off.opacity!==1?{opacity:k.off.opacity}:null],children:/* @__PURE__ */A(Glyph,{icon:t==="plus"?Oi:Bi,size:k.icon,color:e?k.off.color:b.colors.ink})}),B=x?Xn(b,v.track):null;/* @__PURE__ */
8
+ return W(f,{testID:h,style:[Ei.qty,x?[Jn(b,v.track),{height:v.track.h}]:{borderWidth:k.edge.inset?0:k.edge.width,borderColor:k.edge.color,borderRadius:b.radius.pill},g],children:[x?B?/* @__PURE__ */A(f,{pointerEvents:"none",style:B}):null:k.edge.inset?/* @__PURE__ */A(f,{pointerEvents:"none",style:ri(k.edge.width,k.edge.color,b.radius.pill)}):null,P(S,"minus",l,L,"fewer"),
9
+ /* @__PURE__ */A(Text2,{tier:"control",accessible:true,accessibilityRole:"adjustable",accessibilityLabel:i,accessibilityValue:{now:e,min:t,...r!==void 0?{max:r}:{},text:String(e)},"aria-valuenow":e,"aria-valuemin":t,"aria-valuemax":r,accessibilityState:{disabled:s},"aria-disabled":s||void 0,accessibilityActions:[{name:"increment"},{name:"decrement"}],onAccessibilityAction:n=>{n.nativeEvent.actionName==="increment"&&!I&&c(wn(e+1,t,r)),n.nativeEvent.actionName==="decrement"&&!S&&c(wn(e-1,t,r))},accessibilityLiveRegion:"polite",style:x?[Zn(b,mn(b,v.value)),{width:v.valueWidth,textAlign:"center"},m?{color:m}:null]:[Zn(b,gn(b).stepperValue),{minWidth:k.valueMinWidth,textAlign:"center",fontVariant:["tabular-nums"]}],children:String(e)}),P(I,"plus",a,R,"more")]})}var Ei=h.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});function SectionHeader({title:e,kicker:t,action:r,variant:n="standard",titleSize:i="regular",edit:o,testID:l,style:a}){let s=rn(),d=gn(s);if(n==="compact"){let n=Li,c=n.edit,u=r??(o?/* @__PURE__ */W(k,{testID:l?`${l}-accessory`:void 0,onPress:o.onPress,accessibilityRole:"button",accessibilityLabel:o.accessibilityLabel??o.text,hitSlop:c.hitSlop,style:({pressed:e})=>[Ni.edit,{minHeight:c.minHeight,columnGap:c.gap},e?Ni.pressed:null],children:[
10
+ /* @__PURE__ */A(Glyph,{icon:Pi,size:c.icon,color:dn(s,c.iconColor)}),
11
11
  /* @__PURE__ */A(Text2,{tier:"compact",style:Ai(s,c.text),children:o.text})]}):null);/* @__PURE__ */
12
- return z(g,{testID:l,style:[Ei.compact,{columnGap:n.gap},a],children:[
13
- /* @__PURE__ */z(g,{style:Ei.titles,children:[t?/* @__PURE__ */A(Text2,{tier:"compact",style:jn(s,d.kicker),children:t}):null,
12
+ return W(f,{testID:l,style:[Ni.compact,{columnGap:n.gap},a],children:[
13
+ /* @__PURE__ */W(f,{style:Ni.titles,children:[t?/* @__PURE__ */A(Text2,{tier:"compact",style:Zn(s,d.kicker),children:t}):null,
14
14
  /* @__PURE__ */A(Text2,{accessibilityRole:"header",tier:"heading",style:Ai(s,i==="big"?n.bigTitle:n.title),children:e})]}),u]})}let c=s.metrics.sectionHeader;/* @__PURE__ */
15
- return z(g,{testID:l,style:[Ei.row,{columnGap:c.gapX,rowGap:c.gapY,marginTop:c.marginTop},a],children:[
16
- /* @__PURE__ */z(g,{style:Ei.titles,children:[t?/* @__PURE__ */A(Text2,{tier:"compact",style:jn(s,d.kicker),children:t}):null,
17
- /* @__PURE__ */A(Text2,{accessibilityRole:"header",style:jn(s,d.cardTitle),children:e})]}),r]})}var Ei=p.create({row:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},compact:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1},edit:{flexDirection:"row",alignItems:"center",justifyContent:"center"},pressed:{opacity:.6}});p.create({row:{flexDirection:"row",alignSelf:"stretch"},hairline:{position:"absolute",left:0,right:0},tab:{flex:1,flexBasis:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},center:{flexShrink:1,textAlign:"center"}});var Ni=/* @__PURE__ */Object.freeze({position:"absolute",top:0,right:0,bottom:0,left:0});p.create({scrim:{flex:1,justifyContent:"flex-end"},sheet:{maxHeight:"100%"},grab:{alignItems:"center",justifyContent:"center"},head:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1,flexGrow:1},close:{alignItems:"center",justifyContent:"center"},closeEnd:{marginLeft:"auto"},scroll:{flexGrow:0},top:{flexDirection:"row",alignItems:"center"}});function Skeleton({lines:e=3,shape:t,label:r,testID:n,style:i,block:o,color:l}){let a=tn(),s=a.metrics.skeleton,d=l??s.color??a.colors.tintSage,c=r?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:r,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};return o?/* @__PURE__ */A(SkeletonBox,{block:o,fill:d,testID:n,style:i,named:c}):t?/* @__PURE__ */A(g,{testID:n,style:[Vi(a,t,d),i],...c}):/* @__PURE__ */A(g,{testID:n,style:[{rowGap:s.gap,alignSelf:"stretch"},i],...c,children:Array.from({length:Math.max(1,e)},(e,t)=>/* @__PURE__ */A(g,{style:{height:s.lineHeight,width:yn(a,t),borderRadius:a.radius.pill,backgroundColor:d}},t))})}function SkeletonBox({block:e,fill:t,testID:r,style:i,named:a}){let s=tn(),d=_n(s),c=Li,u=c.shimmer,p=e.shimmer===true&&!d,[h,f]=l(0),m=o(new I.Value(0)).current;n(()=>{if(!p||h<=0)return;m.setValue(0);let e=I.loop(I.timing(m,{toValue:1,duration:u.duration,easing:C.inOut(C.ease),useNativeDriver:k.OS!=="web"}));return e.start(),()=>e.stop()},[p,h,m,u.duration]);let b=Math.max(u.bandMin,h*u.bandShare);/* @__PURE__ */
18
- return A(g,{testID:r,onLayout:p?e=>f(Math.round(e.nativeEvent.layout.width)):void 0,style:[{width:e.width??"100%",height:e.height??c.block.height,borderRadius:e.radius??c.block.radius,borderCurve:"continuous",backgroundColor:t,overflow:"hidden"},i],...a,children:p&&h>0?/* @__PURE__ */A(I.View,{pointerEvents:"none",style:{position:"absolute",top:-6,bottom:-6,left:0,width:b,backgroundColor:u.band,transform:[{translateX:m.interpolate({inputRange:[0,1],outputRange:[-b,h+b]})},{skewX:`${u.skew}deg`}]}}):null})}function Vi(e,t,r){let n=t.radius==="circle",i=t.width??(n?t.height:void 0),o=qi(e,t,i);return{height:t.height,...i===void 0?{alignSelf:"stretch"}:{width:i},borderRadius:o,backgroundColor:r}}function qi(e,t,r){let n=t.radius??"pill";return n==="none"?0:n==="circle"?(typeof r=="number"?Math.min(r,t.height):t.height)/2:e.radius[n]}function SummaryList({rows:e,total:t=false,trailingRows:r=[],loading:n=false,loadingLabel:i,variant:o="standard",note:l,grouped:a=true,lineBreak:s,testID:d,style:c}){let u=tn(),p=bn(u);if(n)/* @__PURE__ */
19
- return A(g,{testID:d,style:[{padding:p.paddingX,borderRadius:p.radius,backgroundColor:u.colors.surface},c],children:/* @__PURE__ */A(Skeleton,{lines:4,label:i})});let h=typeof t=="object"?[...e,{...t,key:t.key??"total"}]:e,f=t!==false;if(h.length===0)return null;let m=e=>a?{accessible:true,accessibilityLabel:`${e.term}, ${e.value}`}:null,b=s===void 0?null:{lineBreak:s},y=l?{...l,key:l.key??"note"}:void 0,k=[...h,...r,...y?[y]:[]];if(o!=="standard"&&o!=="flush"){let e=u.metrics.variants.summary;/* @__PURE__ */
20
- return A(g,{testID:d,style:[Yn(u,o==="inset"?e.inset:e.box),c],children:k.map((t,r)=>{let n=t===y?"note":f&&r===h.length-1?"total":"row",i=n==="note"?e.renewRow:n==="total"?e.totalRow:e.row,o=n==="note"?e.renewTerm:n==="total"?e.totalTerm:e.term,l=n==="note"?e.renew:n==="total"?e.total:e.value;/* @__PURE__ */
21
- return z(g,{testID:wn(d,t.key??r,t.testID),...m(t),style:[Ui.cardRow,{columnGap:i.gap[0]??0,minHeight:i.minHeight||void 0,marginTop:i.marginTop||void 0}],children:[
22
- /* @__PURE__ */A(Text2,{...b,style:jn(u,fn(u,o)),children:t.term}),
23
- /* @__PURE__ */A(Text2,{...b,style:jn(u,fn(u,l)),children:t.value})]},t.key??`${r}`)})})}let w=o==="flush";/* @__PURE__ */
24
- return A(g,{testID:d,style:[{paddingHorizontal:w?0:p.paddingX,paddingVertical:w?0:p.paddingY,borderWidth:w?0:p.borderWidth,borderColor:p.borderColor,borderRadius:p.radius,backgroundColor:p.background},ei(p.shadow),c],children:k.map((e,t)=>{let r=t===k.length-1,n=f&&t===h.length-1,i=n?p.totalRowMinHeight:p.row.minHeight;/* @__PURE__ */
25
- return z(g,{testID:wn(d,e.key??t,e.testID),...m(e),style:[Ui.row,{alignItems:p.row.center?"center":"baseline",paddingVertical:p.row.paddingY,columnGap:p.row.gapX,rowGap:p.row.gapY},i?{minHeight:i}:null,r||p.row.divider===0?null:{borderBottomWidth:p.row.divider,borderBottomColor:p.borderColor}],children:[
26
- /* @__PURE__ */A(Text2,{...b,style:jn(u,n?p.totalTerm:p.term),children:e.term}),
27
- /* @__PURE__ */A(Text2,{...b,style:[jn(u,n?p.total:e.tone==="off"?p.off:p.value),Ui.value,p.tabular?Ui.tabular:null],children:e.value})]},e.key??`${t}`)})})}var Ui=p.create({row:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"},cardRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},value:{marginLeft:"auto",textAlign:"right"},tabular:{fontVariant:["tabular-nums"]}});function BlockIcon({icon:e,size:t,color:r,style:n}){let i=tn();return typeof e=="function"?e({size:t,color:r??i.colors.ink}):typeof e!="string"?/* @__PURE__ */A(Glyph,{icon:e,size:t,color:r,style:n}):/* @__PURE__ */A(Icon2,{name:e,size:t,color:r,style:n})}function Gi(e,t){t>e.value&&e.onMore?e.onMore():t<e.value&&e.onFewer?e.onFewer():e.onChange?.(t)}function Mi(e){let[t,r]=l(null);return{shown:e!==null&&t===e,onShown:()=>r(e)}}function FadeImage({onShown:e,onLoad:t,style:r,...n}){let i=tn(),l=_n(i),a=o(new I.Value(0)).current;/* @__PURE__ */
28
- return A(I.Image,{...n,fadeDuration:0,onLoad:r=>{t?.(r);let n=i.motion.duration.fade;if(l||n<=0){a.setValue(1),e?.();return}I.timing(a,{toValue:1,duration:n,easing:C.out(C.cubic),useNativeDriver:k.OS!=="web"}).start(()=>e?.())},style:[r,{opacity:a}]})}function Thumbnail(e){/* @__PURE__ */
29
- return A(BlockThumbnail,{...e})}function BlockThumbnail({src:e,alt:t,size:r="xs",icon:i=Ri,iconSize:o,tint:a,iconColor:s,onError:d,testID:c,style:u}){let p=tn(),h=p.metrics.thumbnail[r],[f,m]=l(null),[b,y]=l(null),k=e&&f!==e?e:null,v=h.top;n(()=>{if(!v||!k)return;let e=true;return w.getSize(k,(t,r)=>{e&&t>0&&r>0&&y(t/r)},()=>{}),()=>{e=false}},[v,k]);let x=k?h.frame:h.empty,[S=0,I=0,C=0,L=0]=x.padding,[W=0,R=0,F=0,H=0]=h.img.padding,P=Jn(p,x),B=h.top&&b!==null;/* @__PURE__ */
30
- return z(g,{testID:c,style:[Yn(p,x),r==="md"||r==="lg"?{width:"100%",aspectRatio:1}:{width:x.w,height:x.h},{alignItems:"center",justifyContent:"center",overflow:"hidden"},!k&&a!==void 0?{backgroundColor:a}:null,u],...k?{}:t?{accessible:true,accessibilityRole:"image",accessibilityLabel:t}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:[k?/* @__PURE__ */A(FadeImage,{source:{uri:k},accessibilityLabel:t,accessible:!!t,onError:()=>{m(k),d?.(k)},resizeMode:B?"stretch":h.img.fit==="contain"?"contain":"cover",style:B?{position:"absolute",top:S,left:L,width:x.w-L-I,height:(x.w-L-I)/b}:{position:"absolute",top:S+W,right:I+R,bottom:C+F,left:L+H}},k):/* @__PURE__ */A(BlockIcon,{icon:i,size:o??h.icon.w,color:s??sn(p,h.icon.color)}),P?/* @__PURE__ */A(g,{pointerEvents:"none",style:P}):null]})}p.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});p.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});p.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});p.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});p.create({base:{alignSelf:"flex-start"}});p.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});p.create({box:{flexDirection:"row"},line:{alignItems:"center"},area:{alignItems:"stretch"},input:{flex:1,minWidth:0,margin:0,borderWidth:0,backgroundColor:"transparent"},hidden:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0}});function Ki(e){return typeof e=="string"?{uri:e}:e}function ji(e){return e==null?null:typeof e=="object"?e.uri:String(e)}function Face({name:e,src:t,side:r,tint:n,initials:i,initialsSize:o}){let a=tn(),s=xn(a,r,n),[d,c]=l(null),u=ji(t),p=t!=null&&d!==u?t:null,h={width:r,height:r,borderRadius:r/2};if(p!==null)/* @__PURE__ */
31
- return z(g,{style:[h,Zi.clip,{backgroundColor:s.photoBg}],children:[s.edge.width>0?/* @__PURE__ */A(g,{style:ti(s.edge.width,s.edge.color,r/2)}):null,
32
- /* @__PURE__ */A(w,{source:Ki(p),resizeMode:"cover",onError:()=>c(u),style:Ni})]});let f=o?{...s.initials,size:o,lineHeight:Math.round(o*(s.initials.lineHeight/s.initials.size)*1e3)/1e3}:s.initials;/* @__PURE__ */
33
- return A(g,{style:[h,Zi.center,{backgroundColor:s.tint}],children:/* @__PURE__ */A(Text2,{tier:"badge",style:jn(a,f),numberOfLines:1,children:i??vn(e)})})}function Avatar({name:e,src:t,size:r="md",tint:n="default",initials:i,ring:o=false,dot:l=false,dotLabel:a,decorative:s=false,testID:d,style:c}){let u=tn(),p=xn(u,r,n),h=p.ring.offset+p.ring.width,f=l&&a?`${e}, ${a}`:e;/* @__PURE__ */
34
- return z(g,{testID:d,style:[{width:p.side,height:p.side},c],...s?{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"}:{accessible:true,accessibilityRole:"image",accessibilityLabel:f},children:[
35
- /* @__PURE__ */A(Face,{name:e,src:t,side:p.side,tint:n,initials:i}),o?/* @__PURE__ */A(g,{pointerEvents:"none",style:{position:"absolute",top:-h,left:-h,width:p.side+2*h,height:p.side+2*h,borderRadius:p.side/2+h,borderWidth:p.ring.width,borderColor:p.ring.color}}):null,l?/* @__PURE__ */A(g,{pointerEvents:"none",testID:d?`${d}-dot`:void 0,style:{position:"absolute",right:0,bottom:0,width:p.dot.size,height:p.dot.size,borderRadius:p.dot.size/2,borderWidth:p.dot.edge,borderColor:p.dot.edgeColor,backgroundColor:p.dot.color}}):null]})}var Zi=p.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}}),Yi=/* @__PURE__ */createContext(null);function Ji(e){return e.replace(/\//g,"/​")}var Xi=12;function Qi(e){return e.split(/[\s/]+/).some(e=>e.length>Xi)}function ListRow({title:e,subtitle:t,titleLines:n,subtitleLines:i,value:o,icon:l,avatar:a,thumbnail:s,leading:d,trailing:c,chevron:u,onPress:p,destructive:h=false,disabled:f=false,selected:m,variant:b,accessibilityLabel:y,accessibilityHint:k,accessibilityRole:w="button",trackId:v,haptic:x,testID:S,style:I}){let C=tn(),L=_n(C),R=r(Yi),F=b??R?.variant??"rows",H=R?.first??true,P=R?.last??true,B=Sn(C,F,h),O=C.metrics.lists,D=F==="tiles",[E=0,N=0,V=0,q=0]=B.row.padding,U=u??!!p,G=c!=null&&Qi(e),M=d?/* @__PURE__ */A(g,{style:_i.leadAuto,children:d}):a?/* @__PURE__ */A(g,{style:{width:O.tiles.leadingFace},children:/* @__PURE__ */A(Avatar,{...a,size:O.avatar.face,decorative:true})}):s?/* @__PURE__ */A(Thumbnail,{...s,size:"xs"}):l?/* @__PURE__ */A(g,{style:{width:B.icon.column},children:/* @__PURE__ */A(BlockIcon,{icon:l,size:B.icon.size,color:B.icon.color})}):null,j=/* @__PURE__ */z(g,{style:[_i.words,D?{rowGap:O.tiles.text.gap[1]}:null],children:[
36
- /* @__PURE__ */A(Text2,{style:jn(C,B.title),numberOfLines:n,children:Ji(e)}),t?/* @__PURE__ */A(Text2,{style:[jn(C,B.subtitle),D?null:{marginTop:O.rows.subtitle.marginTop}],numberOfLines:i,children:t}):null,c!=null&&G?/* @__PURE__ */A(g,{style:[_i.below,{marginTop:O.tiles.text.gap[1]}],children:c}):null]}),Z=!!o||c!=null&&!G||U?/* @__PURE__ */z(g,{style:[_i.end,{columnGap:B.endGap}],children:[o?/* @__PURE__ */A(Text2,{style:jn(C,B.value),numberOfLines:1,children:o}):null,c!=null&&!G?c:null,U?/* @__PURE__ */A(Glyph,{icon:Fi,size:B.chevron.size,color:B.chevron.color}):null]}):null,Y={flexDirection:"row",alignItems:B.row.center?"center":"flex-start",columnGap:B.row.gap[0]??0,paddingTop:D||!H?E:0,paddingBottom:D||!P?V:0,paddingLeft:q,paddingRight:N,...D?{borderRadius:B.row.radius[0]??0}:{},...!D&&!H?{borderTopWidth:B.row.edge.width,borderTopColor:C.colors.line}:{},...f?{opacity:B.disabledOpacity}:{}},J=y??[e,t,o].filter(Boolean).join(", "),X=yi("ListRow",{testID:S,label:J,trackId:v,haptic:x,disabled:f},p),Q=/* @__PURE__ */z(W,{children:[M,j,Z]});return p?/* @__PURE__ */A(PressBox,{testID:S,...X.props,scale:X.scale,still:L,disabled:f,accessibilityRole:w,accessibilityLabel:J,accessibilityHint:k,accessibilityState:{disabled:f,...m===void 0?{}:{selected:m}},style:({pressed:e})=>[Y,e&&!f?{backgroundColor:B.pressedFill}:B.fill?{backgroundColor:B.fill}:null,I],children:Q}):/* @__PURE__ */A(g,{testID:S,style:[Y,B.fill?{backgroundColor:B.fill}:null,I],...c==null?{accessible:true,accessibilityLabel:J}:{},children:Q})}function ListSection({title:e,footer:t,inset:r=true,variant:n="rows",label:i,children:o,testID:l,style:a}){let s=tn(),d=s.metrics.lists,p=c.toArray(o).filter(u),h=/* @__PURE__ */A(g,{accessibilityRole:"list",accessibilityLabel:i??e,style:n==="tiles"?{rowGap:d.tiles.list.gap[1],marginHorizontal:-d.tiles.outdent}:null,children:p.map((e,t)=>
37
- /* @__PURE__ */A(g,{role:"listitem",children:/* @__PURE__ */A(Yi.Provider,{value:{variant:n,first:t===0,last:t===p.length-1},children:e})},e.key??t))}),f=t?/* @__PURE__ */A(Text2,{style:[jn(s,fn(s,d.section.note)),{marginTop:d.section.note.marginTop}],children:t}):null;return r?/* @__PURE__ */z(Card,{testID:l,title:e,style:a,children:[h,f]}):/* @__PURE__ */z(g,{testID:l,style:[e?{marginTop:d.section.head.marginTop}:null,a],children:[e?/* @__PURE__ */A(SectionHeader,{title:e,style:_i.flush}):null,h,f]})}var _i=p.create({leadAuto:{flexShrink:0},words:{flex:1,minWidth:0},below:{alignSelf:"flex-start"},end:{flexDirection:"row",alignItems:"center",flexShrink:1,maxWidth:"45%",justifyContent:"flex-end"},flush:{marginTop:0}});p.create({offRow:{flexDirection:"row",alignItems:"center",alignSelf:"stretch"},offText:{flexShrink:1,minWidth:0},offAction:{flexDirection:"row",alignItems:"center",marginLeft:"auto",flexShrink:0},row:{flexDirection:"row",alignItems:"flex-start"},copy:{flex:1,minWidth:0},acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}});p.create({fill:{flex:1},host:{position:"absolute",left:0,right:0,alignItems:"center"},cardHost:{position:"absolute"},card:{alignSelf:"stretch"},start:{textAlign:"left"},pill:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",alignSelf:"center",maxWidth:"100%"},center:{textAlign:"center"},shrink:{flexShrink:1},topHost:{position:"absolute",alignItems:"center",zIndex:1e3},top:{flexDirection:"row",alignItems:"center"},copy:{flex:1}});p.create({row:{flexDirection:"row",alignItems:"center"}});function Square({size:e,web:t,src:r,alt:n,fallback:i,onError:o,testID:a}){let s=tn(),d=t?Pn(s,Br):Pn(s,Pr),c=t?Pn(s,Br).sq:Pn(s,Pr)[e],u=s.metrics.thumbnail.xs.icon,[p,h]=l(null),f=r&&p!==r?r:null,{shown:m,onShown:b}=Mi(f),y=c.w*d.imgInset,k=d.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
38
- return z(g,{testID:a,accessible:!f&&!!n,accessibilityRole:!f&&n?"image":void 0,accessibilityLabel:f?void 0:n,style:[Yn(s,c),{width:c.w,height:c.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!m&&i?.tint!==void 0?{backgroundColor:i.tint}:null],children:[m?null:/* @__PURE__ */A(BlockIcon,{icon:i?.icon??Ri,size:i?.iconSize??u.w,color:i?.iconColor??sn(s,u.color)}),f?/* @__PURE__ */A(FadeImage,{source:{uri:f},accessibilityLabel:n,accessible:!!n,onShown:b,onError:()=>{h(f),o?.(f)},resizeMode:d.imgFit,style:[{position:"absolute",top:y,right:y,bottom:y,left:y},k]},f):null]})}function PlanLine({name:e,image:t,imageAlt:r,price:n,wasPrice:i,smalls:o,quantity:a,removeLabel:s,onRemove:d,actions:c,fallback:u,onImageError:p,error:h,testID:f,style:m}){let b=tn(),k=Pn(b,Dr),w=e=>jn(b,fn(b,e)),[v,x]=l(null),S=t&&v!==t?t:null,{shown:I,onShown:C}=Mi(S),L=e=>f===void 0?void 0:`${f}-${e}`,[W=0]=k.line.gap,R=c!==void 0?c.map(e=>({...e,testID:wn(f,e.key,e.testID)})):s&&d?[{key:"remove",label:s,onPress:d,testID:L("remove"),disabled:void 0,accessibilityLabel:void 0}]:[];/* @__PURE__ */
39
- return z(g,{testID:f,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:W},m],children:[
40
- /* @__PURE__ */z(g,{testID:L("image"),accessible:!S&&!!r,accessibilityRole:!S&&r?"image":void 0,accessibilityLabel:S?void 0:r,style:[Yn(b,k.img),{width:k.img.w,height:k.img.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!I&&u?.tint!==void 0?{backgroundColor:u.tint}:null],children:[I?null:/* @__PURE__ */A(BlockIcon,{icon:u?.icon??Ri,size:u?.iconSize??k.icon.w,color:u?.iconColor??sn(b,k.icon.color)}),S?/* @__PURE__ */A(FadeImage,{source:{uri:S},accessibilityLabel:r,accessible:!!r,onShown:C,onError:()=>{x(S),p?.(S)},resizeMode:"cover",style:{position:"absolute",top:0,right:0,bottom:0,left:0}},S):null]}),
41
- /* @__PURE__ */z(g,{style:{flex:1,minWidth:0},children:[
42
- /* @__PURE__ */A(Text2,{testID:L("name"),style:w(k.name),children:e}),n||i||o&&o.length>0?/* @__PURE__ */z(g,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:k.prices.gap[0],rowGap:k.prices.gap[1],marginTop:k.prices.marginTop},children:[n?/* @__PURE__ */A(Text2,{testID:L("price"),style:w(k.price),children:n}):null,i?/* @__PURE__ */A(Text2,{style:w(k.was),children:i}):null,o?.map((e,t)=>/* @__PURE__ */A(Text2,{style:w(k.small),children:e},`${t}-${e}`))]}):null,a||R.length>0?/* @__PURE__ */z(g,{style:{flexDirection:"row",alignItems:"center",columnGap:k.acts.gap[0],marginTop:k.acts.marginTop},children:[a?/* @__PURE__ */A(InkedQuantityStepper,{ink:sn(b,k.step.color),variant:"compact",value:a.value,min:a.min,max:a.max,label:a.label,fewerLabel:a.fewerLabel,moreLabel:a.moreLabel,onChange:e=>Gi(a,e)}):null,R.map(e=>/* @__PURE__ */A(y,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:$n(k.remove.h),style:[{minHeight:k.remove.minHeight||void 0,justifyContent:"center"},e.disabled?{opacity:cn}:null],children:/* @__PURE__ */A(Text2,{tier:"control",style:w(k.removeText),children:e.label})},e.key))]}):null,h?/* @__PURE__ */A(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[w(k.small),{marginTop:k.acts.marginTop,color:b.colors.alert}],children:h}):null]})]})}function DrawerPlan({plan:e,testID:t}){let r=tn(),n=Pn(r,Or),i=e.testID??t,o=Jn(r,n.plan);/* @__PURE__ */
43
- return z(g,{testID:i,role:"group",accessibilityLabel:e.label,style:[Yn(r,n.plan),{flexDirection:"row",alignSelf:"flex-start"}],children:[e.options.map(t=>{let o=t.value===e.value,l=o?n.planOn:n.planBtn;/* @__PURE__ */
44
- return A(y,{testID:i===void 0?void 0:`${i}-${t.value}`,onPress:o?void 0:()=>e.onChange?.(t.value),accessibilityRole:"button",accessibilityLabel:t.label,accessibilityState:{checked:o},"aria-pressed":o,hitSlop:$n(l.minHeight||l.h),style:[Yn(r,l),{minHeight:l.minHeight||void 0,justifyContent:"center"}],children:/* @__PURE__ */A(Text2,{tier:"control",style:jn(r,fn(r,o?n.planOnText:n.planText)),children:t.label})},t.value)}),o?/* @__PURE__ */A(g,{pointerEvents:"none",style:o}):null]})}function DrawerStepper({q:e,testID:t}){let r=tn(),n=Pn(r,Or),i=_n(r),o=e.min??1,l=e.max??Number.POSITIVE_INFINITY,a=e=>t===void 0?void 0:`${t}-${e}`,s=Jn(r,n.qty),d=(t,o,l,s,d)=>/* @__PURE__ */A(y,{testID:a(d),onPress:l?void 0:()=>Gi(e,s),accessibilityRole:"button",accessibilityLabel:t,disabled:l,accessibilityState:l?{disabled:true}:void 0,hitSlop:$n(n.qtyBtn.w),style:({pressed:e})=>[Yn(r,n.qtyBtn),{width:n.qtyBtn.w,height:n.qtyBtn.h,alignItems:"center",justifyContent:"center"},e&&!i&&!l?{transform:[{scale:n.pressScale}]}:null],children:/* @__PURE__ */A(Glyph,{icon:o==="minus"?Pi:Bi,size:n.qtyIcon.w,color:r.colors.text})});/* @__PURE__ */
45
- return z(g,{testID:t,role:"group",accessibilityLabel:e.label,style:[Yn(r,n.qty),{flexDirection:"row",alignItems:"center",height:n.qty.h}],children:[d(e.fewerLabel,"minus",e.value<=o,Math.max(o,e.value-1),"fewer"),
46
- /* @__PURE__ */A(Text2,{testID:a("count"),accessibilityLiveRegion:"polite",style:[jn(r,fn(r,n.count)),{minWidth:n.countMin,textAlign:"center"}],children:e.value}),d(e.moreLabel,"plus",e.value>=l,Math.min(l,e.value+1),"more"),s?/* @__PURE__ */A(g,{pointerEvents:"none",style:s}):null]})}function DrawerLine({name:e,image:t,imageAlt:r,badge:n,meta:i,note:o,plan:a,price:s,wasPrice:d,quantity:c,removeLabel:u,onRemove:p,actions:h,fallback:f,onImageError:m,error:b,loading:k=false,loadingLabel:w,testID:v,style:x}){let S=tn(),I=Pn(S,Or),C=e=>jn(S,fn(S,e)),[L,W]=l(null),R=t&&L!==t?t:null,{shown:F,onShown:H}=Mi(R),P=e=>v===void 0?void 0:`${v}-${e}`,[B=0]=I.line.gap,O=Jn(S,I.img),D=Jn(S,I.badge),E=S.metrics.thumbnail.xs.icon;if(k)/* @__PURE__ */
47
- return z(g,{testID:v,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:B},x],children:[
48
- /* @__PURE__ */A(g,{style:[Yn(S,I.img),{width:I.img.w,height:I.img.h}],children:O?/* @__PURE__ */A(g,{pointerEvents:"none",style:O}):null}),
49
- /* @__PURE__ */A(g,{style:{flex:1,minWidth:0},children:/* @__PURE__ */A(Skeleton,{lines:2,label:w})})]});let N=h!==void 0?h.map(e=>({...e,testID:wn(v,e.key,e.testID)})):u&&p?[{key:"remove",label:u,onPress:p,testID:P("remove"),disabled:void 0,accessibilityLabel:`${u} ${e}`}]:[];/* @__PURE__ */
50
- return z(g,{testID:v,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:B},x],children:[
51
- /* @__PURE__ */z(g,{testID:P("image"),accessible:!R&&!!r,accessibilityRole:!R&&r?"image":void 0,accessibilityLabel:R?void 0:r,style:[Yn(S,I.img),{width:I.img.w,height:I.img.h,alignItems:"center",justifyContent:"center"},!F&&f?.tint!==void 0?{backgroundColor:f.tint}:null],children:[F?null:/* @__PURE__ */A(BlockIcon,{icon:f?.icon??Ri,size:f?.iconSize??E.w,color:f?.iconColor??sn(S,E.color)}),R?/* @__PURE__ */A(FadeImage,{source:{uri:R},accessibilityLabel:r,accessible:!!r,onShown:H,onError:()=>{W(R),m?.(R)},resizeMode:I.imgFit,style:{position:"absolute",top:I.imgInset,right:I.imgInset,bottom:I.imgInset,left:I.imgInset}},R):null,O?/* @__PURE__ */A(g,{pointerEvents:"none",style:O}):null]}),
52
- /* @__PURE__ */z(g,{style:{flex:1,minWidth:0},children:[
53
- /* @__PURE__ */z(g,{style:{flexDirection:"row",alignItems:"flex-start",columnGap:B},children:[
54
- /* @__PURE__ */z(g,{testID:P("name"),style:{flex:1,minWidth:0,flexDirection:"row",flexWrap:"wrap",alignItems:I.name.center?"center":"baseline",columnGap:I.name.gap[0],rowGap:I.name.gap[1]},children:[
55
- /* @__PURE__ */A(Text2,{style:C(I.nameText),children:e}),n?/* @__PURE__ */z(g,{style:[Yn(S,I.badge),{height:I.badge.h,justifyContent:"center"}],children:[
56
- /* @__PURE__ */A(Text2,{style:C(I.badgeText),children:n.label}),D?/* @__PURE__ */A(g,{pointerEvents:"none",style:D}):null]}):null]}),s||d?/* @__PURE__ */z(g,{children:[s?/* @__PURE__ */A(Text2,{testID:P("price"),style:[C(I.price),{alignSelf:"flex-start"}],children:s}):null,d?/* @__PURE__ */A(Text2,{style:[C(I.was),{alignSelf:"flex-end",textAlign:"right"}],children:d}):null]}):null]}),i?/* @__PURE__ */A(Text2,{style:[C(I.meta),{marginTop:I.meta.marginTop}],children:i}):null,o?/* @__PURE__ */A(Text2,{style:[C(I.note),{marginTop:I.note.marginTop}],children:o}):null,a||c||N.length>0?/* @__PURE__ */z(g,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:I.acts.gap[0],rowGap:I.acts.gap[1],marginTop:I.acts.marginTop},children:[a?/* @__PURE__ */A(DrawerPlan,{plan:a,testID:P("plan")}):null,c?/* @__PURE__ */A(DrawerStepper,{q:c,testID:P("stepper")}):null,N.map(e=>/* @__PURE__ */A(y,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:$n(I.remove.minHeight||I.remove.h),style:[{minHeight:I.remove.minHeight||void 0,justifyContent:"center"},e.disabled?{opacity:cn}:null],children:/* @__PURE__ */A(Text2,{tier:"control",style:C(I.removeText),children:e.label})},e.key))]}):null,b?/* @__PURE__ */A(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[C(I.meta),{marginTop:I.acts.marginTop,color:S.colors.alert}],children:b}):null]})]})}function CartLine(e){let{name:t,image:r,imageAlt:n,badge:i,meta:o,metas:l,price:a,wasPrice:s,quantity:d,removeLabel:c,onRemove:u,actions:p,fallback:h,onImageError:f,variant:m="standard",thumbSize:b="md",align:k="top",namePress:w,error:v,loading:x=false,loadingLabel:S,testID:I,style:C}=e,L=tn(),W=Pn(L,Hr),R=L.metrics.thumbnail.xs,F=e=>jn(L,fn(L,e)),H=r?R.frame.w:R.empty.w,[P=0,B=0]=W.line.gap,O={flexDirection:"row",alignItems:W.line.center?"center":"flex-start",columnGap:P};if(m==="drawer")/* @__PURE__ */return A(DrawerLine,{...e});if(x)/* @__PURE__ */
57
- return z(g,{testID:I,style:[Yn(L,W.line),O,C],children:[
58
- /* @__PURE__ */A(g,{style:{width:H,height:H,borderRadius:R.frame.radius[0],backgroundColor:L.colors.tintSage}}),
59
- /* @__PURE__ */A(g,{style:{flex:1},children:/* @__PURE__ */A(Skeleton,{lines:2,label:S})})]});let D=l&&l.length>0?l.map((e,t)=>/* @__PURE__ */A(Text2,{style:[F(W.meta),{marginTop:W.meta.marginTop}],children:e},`${t}-${e}`)):o?/* @__PURE__ */A(Text2,{style:[F(W.meta),{marginTop:W.meta.marginTop}],children:o}):null,E=e=>I===void 0?void 0:`${I}-${e}`,N=(e,t,r,n)=>/* @__PURE__ */A(y,{testID:n?.testID,onPress:n?.disabled?void 0:r,disabled:n?.disabled,accessibilityRole:"button",accessibilityLabel:n?.accessibilityLabel??t,accessibilityState:n?.disabled?{disabled:true}:void 0,hitSlop:$n(W.removeBox.minHeight||W.remove.lineHeight),style:[{minHeight:W.removeBox.minHeight||void 0,justifyContent:"center"},n?.disabled?{opacity:cn}:null],children:/* @__PURE__ */A(Text2,{tier:"control",style:F(W.remove),children:t})},e),V=p!==void 0?p.length>0?p.map(e=>N(e.key,e.label,e.onPress,{disabled:e.disabled,accessibilityLabel:e.accessibilityLabel,testID:wn(I,e.key,e.testID)})):null:c&&u?N("remove",c,u):null;if(m==="square"||m==="web"){let e=m==="web",l=e?{...Pn(L,Pr),...Pn(L,Br)}:Pn(L,Pr),d=Jn(L,l.badge),x=(e,t,r,n)=>/* @__PURE__ */A(y,{testID:n?.testID,onPress:n?.disabled?void 0:r,disabled:n?.disabled,accessibilityRole:"button",accessibilityLabel:n?.accessibilityLabel??t,accessibilityState:n?.disabled?{disabled:true}:void 0,hitSlop:$n(l.actBox.minHeight||l.act.lineHeight),style:[{minHeight:l.actBox.minHeight||void 0,justifyContent:"center"},n?.disabled?{opacity:cn}:null],children:/* @__PURE__ */A(Text2,{tier:"control",style:F(l.act),children:t})},e),S=e?[]:p!==void 0?p.map(e=>x(e.key,e.label,e.onPress,{disabled:e.disabled,accessibilityLabel:e.accessibilityLabel,testID:wn(I,e.key,e.testID)})):c&&u?[x("remove",c,u)]:[],W=w!==void 0&&S.length>0;/* @__PURE__ */
60
- return z(g,{testID:I,style:[{flexDirection:"row",alignItems:k==="center"||l.line.center?"center":"flex-start",columnGap:l.line.gap[0]},C],children:[
61
- /* @__PURE__ */A(Square,{size:b,web:e,src:r,alt:n,fallback:h,onError:f,testID:E("image")}),
62
- /* @__PURE__ */z(g,{style:[{flex:1,minWidth:0},W?{zIndex:1}:null],children:[
63
- /* @__PURE__ */z(g,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:l.name.center?"center":"baseline",columnGap:l.name.gap[0],rowGap:l.name.gap[1]},children:[
64
- /* @__PURE__ */A(Text2,{style:F(w?l.link:l.nameText),onPress:W?w.onPress:void 0,children:t}),i?/* @__PURE__ */z(g,{style:[Yn(L,l.badge),{height:l.badge.h,justifyContent:"center"}],children:[
65
- /* @__PURE__ */A(Text2,{style:F(l.badgeText),children:i.label}),d?/* @__PURE__ */A(g,{pointerEvents:"none",style:d}):null]}):null]}),o?/* @__PURE__ */A(Text2,{style:[F(l.meta),{marginTop:l.meta.marginTop}],children:o}):null,S.length>0?/* @__PURE__ */A(g,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:l.acts.gap[0],rowGap:l.acts.gap[1],marginTop:l.acts.marginTop},children:S}):null,v?/* @__PURE__ */A(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[F(l.meta),{marginTop:l.acts.marginTop,color:L.colors.alert}],children:v}):null]}),a||s?/* @__PURE__ */z(g,{style:{alignItems:"flex-end"},children:[a?/* @__PURE__ */A(Text2,{testID:E("price"),style:F(l.price),children:a}):null,s?/* @__PURE__ */A(Text2,{style:F(l.was),children:s}):null]}):null,w?/* @__PURE__ */A(y,{testID:w.testID??E("name"),onPress:w.onPress,accessibilityRole:"button",accessibilityLabel:w.accessibilityLabel??t,style:{position:"absolute",top:-l.linkReach,right:0,bottom:-l.linkReach,left:0}}):null]})}if(m==="plan")/* @__PURE__ */return A(PlanLine,{...e});let q=d?/* @__PURE__ */A(QuantityStepper,{value:d.value,min:d.min,max:d.max,label:d.label,fewerLabel:d.fewerLabel,moreLabel:d.moreLabel,onChange:e=>Gi(d,e)}):null;/* @__PURE__ */
66
- return z(g,{testID:I,style:[Yn(L,W.line),{rowGap:B,columnGap:0},C],children:[
67
- /* @__PURE__ */z(g,{style:O,children:[
68
- /* @__PURE__ */A(BlockThumbnail,{size:"xs",src:r,alt:n,icon:h?.icon,iconSize:h?.iconSize,tint:h?.tint,iconColor:h?.iconColor,onError:f,testID:E("image")}),
69
- /* @__PURE__ */z(g,{style:{flex:1,minWidth:0},children:[
70
- /* @__PURE__ */z(g,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:W.name.gap[0],rowGap:W.name.gap[1]},children:[
71
- /* @__PURE__ */A(Text2,{style:F(W.nameText),children:t}),i?/* @__PURE__ */A(Pill,{label:i.label,tone:i.tone??"rx"}):null]}),D,q||V?/* @__PURE__ */z(g,{style:{flexDirection:"row",alignItems:"center",...p&&p.length>1?{flexWrap:"wrap",rowGap:W.acts.gap[1]}:{},columnGap:W.acts.gap[0],marginTop:W.acts.marginTop},children:[q,V]}):null,v?/* @__PURE__ */A(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[F(W.meta),{marginTop:W.acts.marginTop,color:L.colors.alert}],children:v}):null]})]}),a||s?/* @__PURE__ */z(g,{style:{marginLeft:H+P,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:W.end.gap[0],rowGap:W.end.gap[1]},children:[a?/* @__PURE__ */A(Text2,{testID:E("price"),style:F(W.price),children:a}):null,s?/* @__PURE__ */A(Text2,{style:F(W.was),children:s}):null]}):null]})}var $i="partner",eo=createContext($i),to=eo.Provider;function ro(){return r(eo)}function no(){return ro()==="everfur-app"}var io=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var oo=Object.freeze;function lo(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){oo(e);for(let t of Object.keys(e))lo(e[t])}return e}var ao=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var so={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},co={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},uo={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},po={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},ho={regular:"400",medium:"500",bold:"700"},go={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},fo=0,mo="System",bo="monospace",yo=["content","heading","control","compact","badge"];function ko(e){let t={};for(let r of yo)t[r]=e;return t}var wo=[];function vo(){return{family:mo,mono:bo,fontUrl:null,families:{regular:mo,medium:mo,bold:mo,mono:bo,monoMedium:bo,monoBold:bo},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:uo,tierSizes:ko(uo),lineHeight:po,weight:ho,letterSpacing:go,scale:1,maxScale:fo,scaleCaps:ao,headingFamily:null,headingWeight:null,fontSources:wo,roles:io,typeScale:1}}var To={},xo=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(e){return`cubic-bezier(${e.join(", ")})`}var So={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(xo.standard),emphasized:cssCubicBezier(xo.emphasized),exit:cssCubicBezier(xo.exit)},reducedMotion:false},Io={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},Co=lo({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:Io,space:so,radius:co,type:vo(),motion:So,slots:To}),Lo={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},zo=lo({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:Lo,space:so,radius:co,type:vo(),motion:So,slots:To});var Ao=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(e,t){let r=e.type,n=r.families[t];return t==="mono"||r.namedFaces[t]?{fontFamily:n}:{fontFamily:n,fontWeight:r.weight[Ao[t]]}}function headingFace(e,t="bold"){let{headingFamily:r,headingWeight:n}=e.type;if(r===null&&n===null)return face(e,t);if(r!==null)return{fontFamily:r,fontWeight:n??e.type.weight[Ao[t]]};let i=face(e,t);return i.fontWeight===void 0||n===null?i:{fontFamily:i.fontFamily,fontWeight:n}}function Wo(e){return e<=450?"regular":e<=650?"medium":"bold"}var Ro={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(e,t){let r=Fo.get(e);r===void 0&&(r=/* @__PURE__ */new Map,Fo.set(e,r));let n=r.get(t);if(n!==void 0)return n;let i=Ho(e,t);return r.set(t,i),i}var Fo=/* @__PURE__ */new WeakMap;function Ho(e,t){let r=e.type.roles[t],n=r.weight==="400"&&r.face!=="mono"?e.type.weight.regular:r.weight,i=Wo(Number(n)),o=r.face==="mono"?face(e,Ro[i]):r.face==="heading"?headingFace(e,i):face(e,i),l=r.face==="heading"?e.type.headingWeight??n:n,a=o.fontWeight===void 0?o:{fontFamily:o.fontFamily,fontWeight:l},s=r.size,d={...a,fontSize:s,lineHeight:Math.round(s*r.lineHeight*100)/100};return r.letterSpacing!==0&&(d.letterSpacing=Math.round(s*r.letterSpacing*100)/100),r.uppercase&&(d.textTransform="uppercase"),/* @__PURE__ */Object.freeze(d)}function Po(e){if(typeof e=="number")return Do(e);if(typeof e!="string")return null;let t=e.trim();if(t.length===0)return null;if(t.startsWith("#"))return Bo(t.slice(1));if(t.toLowerCase().startsWith("0x"))return Bo(t.slice(2));if(t.toLowerCase().startsWith("rgb"))return Oo(t);if(/^[0-9a-fA-F]+$/.test(t)){let e=Bo(t);if(e!==null)return e}return/^\d+$/.test(t)?Do(Number.parseInt(t,10)):null}function Bo(e){let t=e.trim();if(!/^[0-9a-fA-F]+$/.test(t))return null;if(t.length===3)return{r:No(t[0]),g:No(t[1]),b:No(t[2]),a:1};if(t.length===6)return{r:Eo(t,0),g:Eo(t,2),b:Eo(t,4),a:1};if(t.length===8){let e=Eo(t,0);return{r:Eo(t,2),g:Eo(t,4),b:Eo(t,6),a:e/255}}return null}function Oo(e){let t=e.indexOf("("),r=e.indexOf(")");if(t<0||r<0||r<t)return null;let n=e.slice(t+1,r).split(",").map(e=>e.trim());if(n.length<3)return null;let i=Vo(Number(n[0])),o=Vo(Number(n[1])),l=Vo(Number(n[2]));if(i===null||o===null||l===null)return null;let a=1;if(n.length>=4){let e=Number(n[3]);if(!Number.isFinite(e))return null;a=Math.min(1,Math.max(0,e))}return{r:i,g:o,b:l,a:a}}function Do(e){if(!Number.isFinite(e))return null;let t=Math.trunc(e)>>>0,r=t>>>24&255;return{r:t>>>16&255,g:t>>>8&255,b:t&255,a:r===0?1:r/255}}function Eo(e,t){return Number.parseInt(e.slice(t,t+2),16)}function No(e){return Number.parseInt(`${e??"0"}${e??"0"}`,16)}function Vo(e){return Number.isFinite(e)?Math.min(255,Math.max(0,Math.round(e))):null}function qo(e,t,r){return`#${Uo(e)}${Uo(t)}${Uo(r)}`.toUpperCase()}function Uo(e){return e.toString(16).padStart(2,"0")}var Go="#111111",Mo="#FFFFFF",Ko="#000000";function readableOn(e){let t=Po(e);if(t===null)return Mo;let r=Yo(t),n=Yo({r:17,g:17,b:17}),i=Yo({r:255,g:255,b:255});return Xo(r,i)>=Xo(r,n)?Mo:Go}function jo(e,t){let r=readableOn(e);return contrastRatio(r,e)>=t?r:contrastRatio(Mo,e)>=contrastRatio(Ko,e)?Mo:Ko}function Zo(e){let t=t=>e.reduce((e,r)=>Math.min(e,contrastRatio(t,r)),Number.POSITIVE_INFINITY);return t(Mo)>=t(Ko)?Mo:Ko}function Yo(e){let t=Jo(e.r/255),r=Jo(e.g/255),n=Jo(e.b/255);return.2126*t+.7152*r+.0722*n}function Jo(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Xo(e,t){let r=Math.max(e,t),n=Math.min(e,t);return(r+.05)/(n+.05)}function contrastRatio(e,t){let r=Po(e),n=Po(t);if(r===null||n===null)return 1;let i=n.a>=1?n:{...n},o=r.a>=1?r:Qo(r,i);return Xo(Yo(o),Yo(i))}function Qo(e,t){let r=e.a,n=(e,t)=>Math.round(e*r+t*(1-r));return{r:n(e.r,t.r),g:n(e.g,t.g),b:n(e.b,t.b),a:1}}function _o(e,t){let r=Po(e),n=Po(t);if(r===null||n===null)return null;let i=r.a>=1?r:Qo(r,{...n});return qo(i.r,i.g,i.b)}var $o=.05;function el(e,t,r,n){let i=t[0];if(i===void 0)return r;let o=e=>t.every(t=>contrastRatio(e,t)>=n);if(Po(e)===null)return r;if(o(e))return e;let l=_o(e,i),a=l===null?null:Po(l),s=Po(r);if(a===null||s===null)return r;for(let e=1;e<1/$o;e+=1){let t=e*$o,r=(e,r)=>Math.round(e+(r-e)*t),n=qo(r(a.r,s.r),r(a.g,s.g),r(a.b,s.b));if(o(n))return n}return r}var tl=/* @__PURE__ */Object.freeze({ink:"#262523",ink2:"#4A4845",ink3:"#6B6863",paper:"#F8F7F4",card:"#FFFFFF",line:"#E7E6E2",tile:"#F2F1EE",shadow:"rgba(38, 37, 35, .07)",riskBg:"#FFE3E1",riskInk:"#B0231B",riskDot:"#E5372B",clearBg:"#E6F4D3",clearInk:"#2F6A12",clearDot:"#5FA82B",watchDot:"#E5A000"}),rl=/* @__PURE__ */new WeakMap;function nl(e){let t=rl.get(e);if(t!==void 0)return t;let r=e.color,n=e.brightness==="dark",i=n?{dark:n,ink:r.text.primary,ink2:r.text.secondary,ink3:r.text.muted,paper:r.background,card:r.surface,line:r.borderRingCream,tile:r.surfaceSubtle,shadow:r.shadow,riskBg:r.badgeBgCritical,riskInk:r.danger,riskDot:r.danger,clearBg:r.badgeBgPositive,clearInk:r.success,clearDot:r.success,watchDot:r.warningStrong}:{dark:n,...tl},o=(e,t)=>el(e,t,Zo(t),il),l=(e,t)=>contrastRatio(e,t)>=il?e:jo(t,il),a=[i.card,i.paper].map(e=>_o(r.brandSoft,e)??e),s={primary:r.primary,onPrimary:l(r.onPrimary,r.primary),accent:r.accent,onAccent:l(r.onAccent,r.accent),link:o(r.linkInk,[i.card,i.paper,i.tile]),badge:r.brandSoft,onBadge:o(r.brandInk,a)},d=/* @__PURE__ */Object.freeze({...i,...s});return rl.set(e,d),d}var il=4.5;var ol=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),ll=globalThis,al=ll[ol]??(ll[ol]=createContext(Co));al.displayName??="EverfurThemeContext";function useEverfurTheme(){return r(al)}var sl=e=>{let t=e.type.namedFaces,r=t=>face(e,t).fontFamily;return{family:r("regular"),mono:r("mono"),faces:{regular:r("regular"),medium:r("medium"),bold:r("bold"),mono:r("mono"),monoBold:r("monoBold"),serif:headingFace(e,"bold").fontFamily},namedFaces:t.regular&&t.medium&&t.bold}},dl=/* @__PURE__ */new WeakMap;function cl(e,t,r=Ur){if(r!==Ur)return ul(e,t,r);let n=dl.get(t);n===void 0&&dl.set(t,n=/* @__PURE__ */new WeakMap);let i=n.get(e);return i===void 0&&n.set(e,i=ul(e,t,r)),i}function ul(e,t,r){let n=e.color,i=Co.color,o=e.brightness==="dark",l=o?zo:Co,a=e=>n[e]!==i[e],s={};if(a("primary")?(Object.assign(s,{ink:n.primary,onInk:n.onPrimary,focus:n.primary}),a("accent")||Object.assign(s,{go:n.primary,onGo:n.onPrimary})):a("onPrimary")&&(s.onInk=n.onPrimary),a("accent")&&Object.assign(s,{go:n.accent,onGo:n.onAccent}),a("brandSoft")&&(s.tintSage=n.brandSoft),a("danger")&&Object.assign(s,{alert:n.danger,alertDeep:n.danger}),o)Object.assign(s,{bg:n.background,surface:n.surface,text:n.text.primary,muted:n.text.muted,line:n.borderRingCream});else{let e=l.color;n.background!==e.background&&(s.bg=n.background),n.surface!==e.surface&&(s.surface=n.surface),n.text.primary!==e.text.primary&&(s.text=n.text.primary),n.text.muted!==e.text.muted&&(s.muted=n.text.muted)}let d={};Object.keys(s).length>0&&(d.colors={...s});let c=e.radius,u=l.radius;if(c.xs!==u.xs||c.sm!==u.sm||c.lg!==u.lg||c.xl!==u.xl||c.pill!==u.pill){let e={};c.xs!==u.xs&&(e.sm=c.xs),c.sm!==u.sm&&(e.md=c.sm),c.lg!==u.lg&&(e.lg=c.lg),c.xl!==u.xl&&(e.xl=c.xl),c.pill!==u.pill&&(e.pill=c.pill),d.radius=e,(c.lg!==u.lg||c.xl!==u.xl)&&(d.metrics={...c.lg!==u.lg?{card:{radius:c.lg},summary:{radius:c.lg}}:{},...c.xl!==u.xl?{sheet:{radius:c.xl}}:{}})}if(e.space.xs!==l.space.xs){let t=e.space.xs/l.space.xs,n=r.space,i=e=>Math.round(e*t);d.space={1:i(n[1]),2:i(n[2]),3:i(n[3]),4:i(n[4]),5:i(n[5]),6:i(n[6]),7:i(n[7]),8:i(n[8]),9:i(n[9])}}let p=e.type.size,h=l.type.size,g=p.caption!==h.caption||p.bodyTight!==h.bodyTight||p.body!==h.body||p.subtitle!==h.subtitle||p.verdict!==h.verdict,f=e.type.lineHeight,m=l.type.lineHeight,b=f.relaxed!==m.relaxed||f.tight!==m.tight,y=e.type.scaleCaps,k=l.type.scaleCaps,w=y.content!==k.content||y.heading!==k.heading||y.control!==k.control||y.compact!==k.compact||y.badge!==k.badge,v=g||b||w;d.type={...g?{size:{xs:p.caption,sm:p.bodyTight,md:p.body,lg:p.subtitle,xl:p.verdict}}:{},...b?{lineHeight:{body:f.relaxed,display:f.tight}}:{},...w?{scaleCaps:{content:y.content,heading:y.heading,control:y.control,compact:y.compact,badge:y.badge}}:{},...t(e)},e.motion.reducedMotion&&!r.motion.reduced&&(d.motion={reduced:true});let x=v||Object.keys(s).length>0||Object.keys(d).some(e=>e!=="type"&&e!=="colors")||e.type.families.regular!==Co.type.families.regular,S=gl(e,l,s.surface??r.colors.surface),I=Object.entries(S).filter(([e,t])=>t!==r.colors[e]);return I.length>0&&(d.colors={...s,...Object.fromEntries(I)}),x?{name:"partner",...d}:d}var pl={planAccent:Ur.colors.planAccent,planLink:Ur.colors.planLink},hl={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function gl(e,t,r){let n=nl(e),i=nl(t),o=e.color,l={};(o.primary!==t.color.primary||o.onPrimary!==t.color.onPrimary)&&Object.assign(l,{planInk:o.primary,planOnInk:n.onPrimary}),o.accent!==t.color.accent&&(l.planAccent=o.accent),n.link!==i.link&&(l.planLink=n.link);let a={accent:l.planAccent??pl.planAccent,link:l.planLink??pl.planLink},s={planLinkWash:n.dark?void 0:e.slots.planWash?.backgroundColor,planLinkChip:n.dark?void 0:e.slots.planChip?.backgroundColor},d=r.toLowerCase()!==n.card.toLowerCase();for(let[e,[t,r]]of Object.entries(hl)){let i=s[e];i!==void 0?l[e]=i:d&&(l[e]=an(a[t],r,n.card,n.card))}return l}function fl(e){let t=useEverfurTheme();return i(()=>cl(t,e),[t,e])}function BlockScope({children:e}){let r=fl(sl);return t(ThemeProvider,{theme:r},e)}var ml={package:{name:"package"},shop:{name:"shop"},orders:{name:"orders"},plan:{name:"plan"}};function bl(e,t){return t==="package"?e.tabPackage:t==="shop"?e.tabShop:t==="orders"?e.tabOrders:e.tabPlan}function CareTabs({copy:e,current:t,tabs:r}){let n=yr(),i=Cr();/* @__PURE__ */
72
- return z(g,{style:[n.v("subtabs"),{flexDirection:"row",zIndex:1}],accessibilityRole:"tablist",accessibilityLabel:e.tabsLabel,testID:"shop-subtabs",children:[r.map(r=>{let o=r===t,l=o?"subtabCurrent":"subtab";/* @__PURE__ */
73
- return z(Press,{role:"tab",selected:o,onPress:()=>i.go(ml[r]),style:[n.v(l),{flex:1,alignItems:"center",justifyContent:"center"}],children:[
74
- /* @__PURE__ */A(T,{k:l,bare:true,children:bl(e,r)}),
15
+ return W(f,{testID:l,style:[Ni.row,{columnGap:c.gapX,rowGap:c.gapY,marginTop:c.marginTop},a],children:[
16
+ /* @__PURE__ */W(f,{style:Ni.titles,children:[t?/* @__PURE__ */A(Text2,{tier:"compact",style:Zn(s,d.kicker),children:t}):null,
17
+ /* @__PURE__ */A(Text2,{accessibilityRole:"header",style:Zn(s,d.cardTitle),children:e})]}),r]})}var Ni=h.create({row:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},compact:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1},edit:{flexDirection:"row",alignItems:"center",justifyContent:"center"},pressed:{opacity:.6}});h.create({row:{flexDirection:"row",alignSelf:"stretch"},hairline:{position:"absolute",left:0,right:0},tab:{flex:1,flexBasis:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},center:{flexShrink:1,textAlign:"center"}});var Vi=/* @__PURE__ */Object.freeze({position:"absolute",top:0,right:0,bottom:0,left:0});h.create({scrim:{flex:1,justifyContent:"flex-end"},sheet:{maxHeight:"100%"},grab:{alignItems:"center",justifyContent:"center"},head:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1,flexGrow:1},close:{alignItems:"center",justifyContent:"center"},closeEnd:{marginLeft:"auto"},scroll:{flexGrow:0},top:{flexDirection:"row",alignItems:"center"}});function Skeleton({lines:e=3,shape:t,label:r,testID:n,style:i,block:o,color:l}){let a=rn(),s=a.metrics.skeleton,d=l??s.color??a.colors.tintSage,c=r?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:r,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};return o?/* @__PURE__ */A(SkeletonBox,{block:o,fill:d,testID:n,style:i,named:c}):t?/* @__PURE__ */A(f,{testID:n,style:[qi(a,t,d),i],...c}):/* @__PURE__ */A(f,{testID:n,style:[{rowGap:s.gap,alignSelf:"stretch"},i],...c,children:Array.from({length:Math.max(1,e)},(e,t)=>/* @__PURE__ */A(f,{style:{height:s.lineHeight,width:kn(a,t),borderRadius:a.radius.pill,backgroundColor:d}},t))})}function SkeletonBox({block:e,fill:t,testID:r,style:i,named:a}){let s=rn(),d=$n(s),c=zi,u=c.shimmer,p=e.shimmer===true&&!d,[h,g]=l(0),m=o(new C.Value(0)).current;n(()=>{if(!p||h<=0)return;m.setValue(0);let e=C.loop(C.timing(m,{toValue:1,duration:u.duration,easing:L.inOut(L.ease),useNativeDriver:w.OS!=="web"}));return e.start(),()=>e.stop()},[p,h,m,u.duration]);let b=Math.max(u.bandMin,h*u.bandShare);/* @__PURE__ */
18
+ return A(f,{testID:r,onLayout:p?e=>g(Math.round(e.nativeEvent.layout.width)):void 0,style:[{width:e.width??"100%",height:e.height??c.block.height,borderRadius:e.radius??c.block.radius,borderCurve:"continuous",backgroundColor:t,overflow:"hidden"},i],...a,children:p&&h>0?/* @__PURE__ */A(C.View,{pointerEvents:"none",style:{position:"absolute",top:-6,bottom:-6,left:0,width:b,backgroundColor:u.band,transform:[{translateX:m.interpolate({inputRange:[0,1],outputRange:[-b,h+b]})},{skewX:`${u.skew}deg`}]}}):null})}function qi(e,t,r){let n=t.radius==="circle",i=t.width??(n?t.height:void 0),o=Ui(e,t,i);return{height:t.height,...i===void 0?{alignSelf:"stretch"}:{width:i},borderRadius:o,backgroundColor:r}}function Ui(e,t,r){let n=t.radius??"pill";return n==="none"?0:n==="circle"?(typeof r=="number"?Math.min(r,t.height):t.height)/2:e.radius[n]}function SummaryList({rows:e,total:t=false,trailingRows:r=[],loading:n=false,loadingLabel:i,variant:o="standard",note:l,grouped:a=true,lineBreak:s,testID:d,style:c}){let u=rn(),p=yn(u);if(n)/* @__PURE__ */
19
+ return A(f,{testID:d,style:[{padding:p.paddingX,borderRadius:p.radius,backgroundColor:u.colors.surface},c],children:/* @__PURE__ */A(Skeleton,{lines:4,label:i})});let h=typeof t=="object"?[...e,{...t,key:t.key??"total"}]:e,g=t!==false;if(h.length===0)return null;let m=e=>a?{accessible:true,accessibilityLabel:`${e.term}, ${e.value}`}:null,b=s===void 0?null:{lineBreak:s},y=l?{...l,key:l.key??"note"}:void 0,k=[...h,...r,...y?[y]:[]];if(o!=="standard"&&o!=="flush"){let e=u.metrics.variants.summary;/* @__PURE__ */
20
+ return A(f,{testID:d,style:[Jn(u,o==="inset"?e.inset:e.box),c],children:k.map((t,r)=>{let n=t===y?"note":g&&r===h.length-1?"total":"row",i=n==="note"?e.renewRow:n==="total"?e.totalRow:e.row,o=n==="note"?e.renewTerm:n==="total"?e.totalTerm:e.term,l=n==="note"?e.renew:n==="total"?e.total:e.value;/* @__PURE__ */
21
+ return W(f,{testID:vn(d,t.key??r,t.testID),...m(t),style:[Gi.cardRow,{columnGap:i.gap[0]??0,minHeight:i.minHeight||void 0,marginTop:i.marginTop||void 0}],children:[
22
+ /* @__PURE__ */A(Text2,{...b,style:Zn(u,mn(u,o)),children:t.term}),
23
+ /* @__PURE__ */A(Text2,{...b,style:Zn(u,mn(u,l)),children:t.value})]},t.key??`${r}`)})})}let w=o==="flush";/* @__PURE__ */
24
+ return A(f,{testID:d,style:[{paddingHorizontal:w?0:p.paddingX,paddingVertical:w?0:p.paddingY,borderWidth:w?0:p.borderWidth,borderColor:p.borderColor,borderRadius:p.radius,backgroundColor:p.background},ti(p.shadow),c],children:k.map((e,t)=>{let r=t===k.length-1,n=g&&t===h.length-1,i=n?p.totalRowMinHeight:p.row.minHeight;/* @__PURE__ */
25
+ return W(f,{testID:vn(d,e.key??t,e.testID),...m(e),style:[Gi.row,{alignItems:p.row.center?"center":"baseline",paddingVertical:p.row.paddingY,columnGap:p.row.gapX,rowGap:p.row.gapY},i?{minHeight:i}:null,r||p.row.divider===0?null:{borderBottomWidth:p.row.divider,borderBottomColor:p.borderColor}],children:[
26
+ /* @__PURE__ */A(Text2,{...b,style:Zn(u,n?p.totalTerm:p.term),children:e.term}),
27
+ /* @__PURE__ */A(Text2,{...b,style:[Zn(u,n?p.total:e.tone==="off"?p.off:p.value),Gi.value,p.tabular?Gi.tabular:null],children:e.value})]},e.key??`${t}`)})})}var Gi=h.create({row:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"},cardRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},value:{marginLeft:"auto",textAlign:"right"},tabular:{fontVariant:["tabular-nums"]}});function BlockIcon({icon:e,size:t,color:r,style:n}){let i=rn();return typeof e=="function"?e({size:t,color:r??i.colors.ink}):typeof e!="string"?/* @__PURE__ */A(Glyph,{icon:e,size:t,color:r,style:n}):/* @__PURE__ */A(Icon2,{name:e,size:t,color:r,style:n})}function Mi(e,t){t>e.value&&e.onMore?e.onMore():t<e.value&&e.onFewer?e.onFewer():e.onChange?.(t)}function Ki(e){let[t,r]=l(null);return{shown:e!==null&&t===e,onShown:()=>r(e)}}function FadeImage({onShown:e,onLoad:t,style:r,...n}){let i=rn(),l=$n(i),a=o(new C.Value(0)).current;/* @__PURE__ */
28
+ return A(C.Image,{...n,fadeDuration:0,onLoad:r=>{t?.(r);let n=i.motion.duration.fade;if(l||n<=0){a.setValue(1),e?.();return}C.timing(a,{toValue:1,duration:n,easing:L.out(L.cubic),useNativeDriver:w.OS!=="web"}).start(()=>e?.())},style:[r,{opacity:a}]})}function Thumbnail(e){/* @__PURE__ */
29
+ return A(BlockThumbnail,{...e})}function BlockThumbnail({src:e,alt:t,size:r="xs",icon:i=Fi,iconSize:o,tint:a,iconColor:s,onError:d,testID:c,style:u}){let p=rn(),h=p.metrics.thumbnail[r],[g,m]=l(null),[b,y]=l(null),k=e&&g!==e?e:null,w=h.top;n(()=>{if(!w||!k)return;let e=true;return v.getSize(k,(t,r)=>{e&&t>0&&r>0&&y(t/r)},()=>{}),()=>{e=false}},[w,k]);let x=k?h.frame:h.empty,[S=0,I=0,C=0,L=0]=x.padding,[z=0,R=0,F=0,H=0]=h.img.padding,P=Xn(p,x),B=h.top&&b!==null;/* @__PURE__ */
30
+ return W(f,{testID:c,style:[Jn(p,x),r==="md"||r==="lg"?{width:"100%",aspectRatio:1}:{width:x.w,height:x.h},{alignItems:"center",justifyContent:"center",overflow:"hidden"},!k&&a!==void 0?{backgroundColor:a}:null,u],...k?{}:t?{accessible:true,accessibilityRole:"image",accessibilityLabel:t}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:[k?/* @__PURE__ */A(FadeImage,{source:{uri:k},accessibilityLabel:t,accessible:!!t,onError:()=>{m(k),d?.(k)},resizeMode:B?"stretch":h.img.fit==="contain"?"contain":"cover",style:B?{position:"absolute",top:S,left:L,width:x.w-L-I,height:(x.w-L-I)/b}:{position:"absolute",top:S+z,right:I+R,bottom:C+F,left:L+H}},k):/* @__PURE__ */A(BlockIcon,{icon:i,size:o??h.icon.w,color:s??dn(p,h.icon.color)}),P?/* @__PURE__ */A(f,{pointerEvents:"none",style:P}):null]})}h.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});h.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});h.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});h.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});h.create({base:{alignSelf:"flex-start"}});h.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});h.create({box:{flexDirection:"row"},line:{alignItems:"center"},area:{alignItems:"stretch"},input:{flex:1,minWidth:0,margin:0,borderWidth:0,backgroundColor:"transparent"},hidden:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0}});function ji(e){return typeof e=="string"?{uri:e}:e}function Zi(e){return e==null?null:typeof e=="object"?e.uri:String(e)}function Face({name:e,src:t,side:r,tint:n,initials:i,initialsSize:o}){let a=rn(),s=Sn(a,r,n),[d,c]=l(null),u=Zi(t),p=t!=null&&d!==u?t:null,h={width:r,height:r,borderRadius:r/2};if(p!==null)/* @__PURE__ */
31
+ return W(f,{style:[h,Yi.clip,{backgroundColor:s.photoBg}],children:[s.edge.width>0?/* @__PURE__ */A(f,{style:ri(s.edge.width,s.edge.color,r/2)}):null,
32
+ /* @__PURE__ */A(v,{source:ji(p),resizeMode:"cover",onError:()=>c(u),style:Vi})]});let g=o?{...s.initials,size:o,lineHeight:Math.round(o*(s.initials.lineHeight/s.initials.size)*1e3)/1e3}:s.initials;/* @__PURE__ */
33
+ return A(f,{style:[h,Yi.center,{backgroundColor:s.tint}],children:/* @__PURE__ */A(Text2,{tier:"badge",style:Zn(a,g),numberOfLines:1,children:i??Tn(e)})})}function Avatar({name:e,src:t,size:r="md",tint:n="default",initials:i,ring:o=false,dot:l=false,dotLabel:a,decorative:s=false,testID:d,style:c}){let u=rn(),p=Sn(u,r,n),h=p.ring.offset+p.ring.width,g=l&&a?`${e}, ${a}`:e;/* @__PURE__ */
34
+ return W(f,{testID:d,style:[{width:p.side,height:p.side},c],...s?{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"}:{accessible:true,accessibilityRole:"image",accessibilityLabel:g},children:[
35
+ /* @__PURE__ */A(Face,{name:e,src:t,side:p.side,tint:n,initials:i}),o?/* @__PURE__ */A(f,{pointerEvents:"none",style:{position:"absolute",top:-h,left:-h,width:p.side+2*h,height:p.side+2*h,borderRadius:p.side/2+h,borderWidth:p.ring.width,borderColor:p.ring.color}}):null,l?/* @__PURE__ */A(f,{pointerEvents:"none",testID:d?`${d}-dot`:void 0,style:{position:"absolute",right:0,bottom:0,width:p.dot.size,height:p.dot.size,borderRadius:p.dot.size/2,borderWidth:p.dot.edge,borderColor:p.dot.edgeColor,backgroundColor:p.dot.color}}):null]})}var Yi=h.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}}),Ji=/* @__PURE__ */createContext(null);function Xi(e){return e.replace(/\//g,"/​")}var Qi=12;function _i(e){return e.split(/[\s/]+/).some(e=>e.length>Qi)}function ListRow({title:e,subtitle:t,titleLines:n,subtitleLines:i,value:o,icon:l,avatar:a,thumbnail:s,leading:d,trailing:c,chevron:u,onPress:p,destructive:h=false,disabled:g=false,selected:m,variant:b,accessibilityLabel:y,accessibilityHint:k,accessibilityRole:w="button",trackId:v,haptic:x,testID:S,style:I}){let C=rn(),L=$n(C),z=r(Ji),F=b??z?.variant??"rows",H=z?.first??true,P=z?.last??true,B=In(C,F,h),O=C.metrics.lists,D=F==="tiles",[E=0,N=0,V=0,q=0]=B.row.padding,U=u??!!p,G=c!=null&&_i(e),M=d?/* @__PURE__ */A(f,{style:$i.leadAuto,children:d}):a?/* @__PURE__ */A(f,{style:{width:O.tiles.leadingFace},children:/* @__PURE__ */A(Avatar,{...a,size:O.avatar.face,decorative:true})}):s?/* @__PURE__ */A(Thumbnail,{...s,size:"xs"}):l?/* @__PURE__ */A(f,{style:{width:B.icon.column},children:/* @__PURE__ */A(BlockIcon,{icon:l,size:B.icon.size,color:B.icon.color})}):null,j=/* @__PURE__ */W(f,{style:[$i.words,D?{rowGap:O.tiles.text.gap[1]}:null],children:[
36
+ /* @__PURE__ */A(Text2,{style:Zn(C,B.title),numberOfLines:n,children:Xi(e)}),t?/* @__PURE__ */A(Text2,{style:[Zn(C,B.subtitle),D?null:{marginTop:O.rows.subtitle.marginTop}],numberOfLines:i,children:t}):null,c!=null&&G?/* @__PURE__ */A(f,{style:[$i.below,{marginTop:O.tiles.text.gap[1]}],children:c}):null]}),Z=!!o||c!=null&&!G||U?/* @__PURE__ */W(f,{style:[$i.end,{columnGap:B.endGap}],children:[o?/* @__PURE__ */A(Text2,{style:Zn(C,B.value),numberOfLines:1,children:o}):null,c!=null&&!G?c:null,U?/* @__PURE__ */A(Glyph,{icon:Hi,size:B.chevron.size,color:B.chevron.color}):null]}):null,Y={flexDirection:"row",alignItems:B.row.center?"center":"flex-start",columnGap:B.row.gap[0]??0,paddingTop:D||!H?E:0,paddingBottom:D||!P?V:0,paddingLeft:q,paddingRight:N,...D?{borderRadius:B.row.radius[0]??0}:{},...!D&&!H?{borderTopWidth:B.row.edge.width,borderTopColor:C.colors.line}:{},...g?{opacity:B.disabledOpacity}:{}},J=y??[e,t,o].filter(Boolean).join(", "),X=ki("ListRow",{testID:S,label:J,trackId:v,haptic:x,disabled:g},p),Q=/* @__PURE__ */W(R,{children:[M,j,Z]});return p?/* @__PURE__ */A(PressBox,{testID:S,...X.props,scale:X.scale,still:L,disabled:g,accessibilityRole:w,accessibilityLabel:J,accessibilityHint:k,accessibilityState:{disabled:g,...m===void 0?{}:{selected:m}},style:({pressed:e})=>[Y,e&&!g?{backgroundColor:B.pressedFill}:B.fill?{backgroundColor:B.fill}:null,I],children:Q}):/* @__PURE__ */A(f,{testID:S,style:[Y,B.fill?{backgroundColor:B.fill}:null,I],...c==null?{accessible:true,accessibilityLabel:J}:{},children:Q})}function ListSection({title:e,footer:t,inset:r=true,variant:n="rows",label:i,children:o,testID:l,style:a}){let s=rn(),d=s.metrics.lists,p=c.toArray(o).filter(u),h=/* @__PURE__ */A(f,{accessibilityRole:"list",accessibilityLabel:i??e,style:n==="tiles"?{rowGap:d.tiles.list.gap[1],marginHorizontal:-d.tiles.outdent}:null,children:p.map((e,t)=>
37
+ /* @__PURE__ */A(f,{role:"listitem",children:/* @__PURE__ */A(Ji.Provider,{value:{variant:n,first:t===0,last:t===p.length-1},children:e})},e.key??t))}),g=t?/* @__PURE__ */A(Text2,{style:[Zn(s,mn(s,d.section.note)),{marginTop:d.section.note.marginTop}],children:t}):null;return r?/* @__PURE__ */W(Card,{testID:l,title:e,style:a,children:[h,g]}):/* @__PURE__ */W(f,{testID:l,style:[e?{marginTop:d.section.head.marginTop}:null,a],children:[e?/* @__PURE__ */A(SectionHeader,{title:e,style:$i.flush}):null,h,g]})}var $i=h.create({leadAuto:{flexShrink:0},words:{flex:1,minWidth:0},below:{alignSelf:"flex-start"},end:{flexDirection:"row",alignItems:"center",flexShrink:1,maxWidth:"45%",justifyContent:"flex-end"},flush:{marginTop:0}});h.create({offRow:{flexDirection:"row",alignItems:"center",alignSelf:"stretch"},offText:{flexShrink:1,minWidth:0},offAction:{flexDirection:"row",alignItems:"center",marginLeft:"auto",flexShrink:0},row:{flexDirection:"row",alignItems:"flex-start"},copy:{flex:1,minWidth:0},acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}});h.create({fill:{flex:1},host:{position:"absolute",left:0,right:0,alignItems:"center"},cardHost:{position:"absolute"},card:{alignSelf:"stretch"},start:{textAlign:"left"},pill:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",alignSelf:"center",maxWidth:"100%"},center:{textAlign:"center"},shrink:{flexShrink:1},topHost:{position:"absolute",alignItems:"center",zIndex:1e3},top:{flexDirection:"row",alignItems:"center"},copy:{flex:1}});h.create({row:{flexDirection:"row",alignItems:"center"}});function Square({size:e,web:t,src:r,alt:n,fallback:i,onError:o,testID:a}){let s=rn(),d=t?Bn(s,Or):Bn(s,Br),c=t?Bn(s,Or).sq:Bn(s,Br)[e],u=s.metrics.thumbnail.xs.icon,[p,h]=l(null),g=r&&p!==r?r:null,{shown:m,onShown:b}=Ki(g),y=c.w*d.imgInset,k=d.imgBlend==="multiply"?{mixBlendMode:"multiply"}:null;/* @__PURE__ */
38
+ return W(f,{testID:a,accessible:!g&&!!n,accessibilityRole:!g&&n?"image":void 0,accessibilityLabel:g?void 0:n,style:[Jn(s,c),{width:c.w,height:c.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!m&&i?.tint!==void 0?{backgroundColor:i.tint}:null],children:[m?null:/* @__PURE__ */A(BlockIcon,{icon:i?.icon??Fi,size:i?.iconSize??u.w,color:i?.iconColor??dn(s,u.color)}),g?/* @__PURE__ */A(FadeImage,{source:{uri:g},accessibilityLabel:n,accessible:!!n,onShown:b,onError:()=>{h(g),o?.(g)},resizeMode:d.imgFit,style:[{position:"absolute",top:y,right:y,bottom:y,left:y},k]},g):null]})}function PlanLine({name:e,image:t,imageAlt:r,price:n,wasPrice:i,smalls:o,quantity:a,removeLabel:s,onRemove:d,actions:c,fallback:u,onImageError:p,error:h,testID:g,style:m}){let b=rn(),y=Bn(b,Er),w=e=>Zn(b,mn(b,e)),[v,x]=l(null),S=t&&v!==t?t:null,{shown:I,onShown:C}=Ki(S),L=e=>g===void 0?void 0:`${g}-${e}`,[z=0]=y.line.gap,R=c!==void 0?c.map(e=>({...e,testID:vn(g,e.key,e.testID)})):s&&d?[{key:"remove",label:s,onPress:d,testID:L("remove"),disabled:void 0,accessibilityLabel:void 0}]:[];/* @__PURE__ */
39
+ return W(f,{testID:g,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:z},m],children:[
40
+ /* @__PURE__ */W(f,{testID:L("image"),accessible:!S&&!!r,accessibilityRole:!S&&r?"image":void 0,accessibilityLabel:S?void 0:r,style:[Jn(b,y.img),{width:y.img.w,height:y.img.h,overflow:"hidden",alignItems:"center",justifyContent:"center"},!I&&u?.tint!==void 0?{backgroundColor:u.tint}:null],children:[I?null:/* @__PURE__ */A(BlockIcon,{icon:u?.icon??Fi,size:u?.iconSize??y.icon.w,color:u?.iconColor??dn(b,y.icon.color)}),S?/* @__PURE__ */A(FadeImage,{source:{uri:S},accessibilityLabel:r,accessible:!!r,onShown:C,onError:()=>{x(S),p?.(S)},resizeMode:"cover",style:{position:"absolute",top:0,right:0,bottom:0,left:0}},S):null]}),
41
+ /* @__PURE__ */W(f,{style:{flex:1,minWidth:0},children:[
42
+ /* @__PURE__ */A(Text2,{testID:L("name"),style:w(y.name),children:e}),n||i||o&&o.length>0?/* @__PURE__ */W(f,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:y.prices.gap[0],rowGap:y.prices.gap[1],marginTop:y.prices.marginTop},children:[n?/* @__PURE__ */A(Text2,{testID:L("price"),style:w(y.price),children:n}):null,i?/* @__PURE__ */A(Text2,{style:w(y.was),children:i}):null,o?.map((e,t)=>/* @__PURE__ */A(Text2,{style:w(y.small),children:e},`${t}-${e}`))]}):null,a||R.length>0?/* @__PURE__ */W(f,{style:{flexDirection:"row",alignItems:"center",columnGap:y.acts.gap[0],marginTop:y.acts.marginTop},children:[a?/* @__PURE__ */A(InkedQuantityStepper,{ink:dn(b,y.step.color),variant:"compact",value:a.value,min:a.min,max:a.max,label:a.label,fewerLabel:a.fewerLabel,moreLabel:a.moreLabel,onChange:e=>Mi(a,e)}):null,R.map(e=>/* @__PURE__ */A(k,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:ei(y.remove.h),style:[{minHeight:y.remove.minHeight||void 0,justifyContent:"center"},e.disabled?{opacity:un}:null],children:/* @__PURE__ */A(Text2,{tier:"control",style:w(y.removeText),children:e.label})},e.key))]}):null,h?/* @__PURE__ */A(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[w(y.small),{marginTop:y.acts.marginTop,color:b.colors.alert}],children:h}):null]})]})}function DrawerPlan({plan:e,testID:t}){let r=rn(),n=Bn(r,Dr),i=e.testID??t,o=Xn(r,n.plan);/* @__PURE__ */
43
+ return W(f,{testID:i,role:"group",accessibilityLabel:e.label,style:[Jn(r,n.plan),{flexDirection:"row",alignSelf:"flex-start"}],children:[e.options.map(t=>{let o=t.value===e.value,l=o?n.planOn:n.planBtn;/* @__PURE__ */
44
+ return A(k,{testID:i===void 0?void 0:`${i}-${t.value}`,onPress:o?void 0:()=>e.onChange?.(t.value),accessibilityRole:"button",accessibilityLabel:t.label,accessibilityState:{checked:o},"aria-pressed":o,hitSlop:ei(l.minHeight||l.h),style:[Jn(r,l),{minHeight:l.minHeight||void 0,justifyContent:"center"}],children:/* @__PURE__ */A(Text2,{tier:"control",style:Zn(r,mn(r,o?n.planOnText:n.planText)),children:t.label})},t.value)}),o?/* @__PURE__ */A(f,{pointerEvents:"none",style:o}):null]})}function DrawerStepper({q:e,testID:t}){let r=rn(),n=Bn(r,Dr),i=$n(r),o=e.min??1,l=e.max??Number.POSITIVE_INFINITY,a=e=>t===void 0?void 0:`${t}-${e}`,s=Xn(r,n.qty),d=(t,o,l,s,d)=>/* @__PURE__ */A(k,{testID:a(d),onPress:l?void 0:()=>Mi(e,s),accessibilityRole:"button",accessibilityLabel:t,disabled:l,accessibilityState:l?{disabled:true}:void 0,hitSlop:ei(n.qtyBtn.w),style:({pressed:e})=>[Jn(r,n.qtyBtn),{width:n.qtyBtn.w,height:n.qtyBtn.h,alignItems:"center",justifyContent:"center"},e&&!i&&!l?{transform:[{scale:n.pressScale}]}:null],children:/* @__PURE__ */A(Glyph,{icon:o==="minus"?Bi:Oi,size:n.qtyIcon.w,color:r.colors.text})});/* @__PURE__ */
45
+ return W(f,{testID:t,role:"group",accessibilityLabel:e.label,style:[Jn(r,n.qty),{flexDirection:"row",alignItems:"center",height:n.qty.h}],children:[d(e.fewerLabel,"minus",e.value<=o,Math.max(o,e.value-1),"fewer"),
46
+ /* @__PURE__ */A(Text2,{testID:a("count"),accessibilityLiveRegion:"polite",style:[Zn(r,mn(r,n.count)),{minWidth:n.countMin,textAlign:"center"}],children:e.value}),d(e.moreLabel,"plus",e.value>=l,Math.min(l,e.value+1),"more"),s?/* @__PURE__ */A(f,{pointerEvents:"none",style:s}):null]})}function DrawerLine({name:e,image:t,imageAlt:r,badge:n,meta:i,note:o,plan:a,price:s,wasPrice:d,quantity:c,removeLabel:u,onRemove:p,actions:h,fallback:g,onImageError:m,error:b,loading:y=false,loadingLabel:w,testID:v,style:x}){let S=rn(),I=Bn(S,Dr),C=e=>Zn(S,mn(S,e)),[L,z]=l(null),R=t&&L!==t?t:null,{shown:F,onShown:H}=Ki(R),P=e=>v===void 0?void 0:`${v}-${e}`,[B=0]=I.line.gap,O=Xn(S,I.img),D=Xn(S,I.badge),E=S.metrics.thumbnail.xs.icon;if(y)/* @__PURE__ */
47
+ return W(f,{testID:v,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:B},x],children:[
48
+ /* @__PURE__ */A(f,{style:[Jn(S,I.img),{width:I.img.w,height:I.img.h}],children:O?/* @__PURE__ */A(f,{pointerEvents:"none",style:O}):null}),
49
+ /* @__PURE__ */A(f,{style:{flex:1,minWidth:0},children:/* @__PURE__ */A(Skeleton,{lines:2,label:w})})]});let N=h!==void 0?h.map(e=>({...e,testID:vn(v,e.key,e.testID)})):u&&p?[{key:"remove",label:u,onPress:p,testID:P("remove"),disabled:void 0,accessibilityLabel:`${u} ${e}`}]:[];/* @__PURE__ */
50
+ return W(f,{testID:v,style:[{flexDirection:"row",alignItems:"flex-start",columnGap:B},x],children:[
51
+ /* @__PURE__ */W(f,{testID:P("image"),accessible:!R&&!!r,accessibilityRole:!R&&r?"image":void 0,accessibilityLabel:R?void 0:r,style:[Jn(S,I.img),{width:I.img.w,height:I.img.h,alignItems:"center",justifyContent:"center"},!F&&g?.tint!==void 0?{backgroundColor:g.tint}:null],children:[F?null:/* @__PURE__ */A(BlockIcon,{icon:g?.icon??Fi,size:g?.iconSize??E.w,color:g?.iconColor??dn(S,E.color)}),R?/* @__PURE__ */A(FadeImage,{source:{uri:R},accessibilityLabel:r,accessible:!!r,onShown:H,onError:()=>{z(R),m?.(R)},resizeMode:I.imgFit,style:{position:"absolute",top:I.imgInset,right:I.imgInset,bottom:I.imgInset,left:I.imgInset}},R):null,O?/* @__PURE__ */A(f,{pointerEvents:"none",style:O}):null]}),
52
+ /* @__PURE__ */W(f,{style:{flex:1,minWidth:0},children:[
53
+ /* @__PURE__ */W(f,{style:{flexDirection:"row",alignItems:"flex-start",columnGap:B},children:[
54
+ /* @__PURE__ */W(f,{testID:P("name"),style:{flex:1,minWidth:0,flexDirection:"row",flexWrap:"wrap",alignItems:I.name.center?"center":"baseline",columnGap:I.name.gap[0],rowGap:I.name.gap[1]},children:[
55
+ /* @__PURE__ */A(Text2,{style:C(I.nameText),children:e}),n?/* @__PURE__ */W(f,{style:[Jn(S,I.badge),{height:I.badge.h,justifyContent:"center"}],children:[
56
+ /* @__PURE__ */A(Text2,{style:C(I.badgeText),children:n.label}),D?/* @__PURE__ */A(f,{pointerEvents:"none",style:D}):null]}):null]}),s||d?/* @__PURE__ */W(f,{children:[s?/* @__PURE__ */A(Text2,{testID:P("price"),style:[C(I.price),{alignSelf:"flex-start"}],children:s}):null,d?/* @__PURE__ */A(Text2,{style:[C(I.was),{alignSelf:"flex-end",textAlign:"right"}],children:d}):null]}):null]}),i?/* @__PURE__ */A(Text2,{style:[C(I.meta),{marginTop:I.meta.marginTop}],children:i}):null,o?/* @__PURE__ */A(Text2,{style:[C(I.note),{marginTop:I.note.marginTop}],children:o}):null,a||c||N.length>0?/* @__PURE__ */W(f,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:I.acts.gap[0],rowGap:I.acts.gap[1],marginTop:I.acts.marginTop},children:[a?/* @__PURE__ */A(DrawerPlan,{plan:a,testID:P("plan")}):null,c?/* @__PURE__ */A(DrawerStepper,{q:c,testID:P("stepper")}):null,N.map(e=>/* @__PURE__ */A(k,{testID:e.testID,onPress:e.disabled?void 0:e.onPress,disabled:e.disabled,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,accessibilityState:e.disabled?{disabled:true}:void 0,hitSlop:ei(I.remove.minHeight||I.remove.h),style:[{minHeight:I.remove.minHeight||void 0,justifyContent:"center"},e.disabled?{opacity:un}:null],children:/* @__PURE__ */A(Text2,{tier:"control",style:C(I.removeText),children:e.label})},e.key))]}):null,b?/* @__PURE__ */A(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[C(I.meta),{marginTop:I.acts.marginTop,color:S.colors.alert}],children:b}):null]})]})}function CartLine(e){let{name:t,image:r,imageAlt:n,badge:i,meta:o,metas:l,price:a,wasPrice:s,quantity:d,removeLabel:c,onRemove:u,actions:p,fallback:h,onImageError:g,variant:m="standard",thumbSize:b="md",align:y="top",namePress:w,error:v,loading:x=false,loadingLabel:S,testID:I,style:C}=e,L=rn(),z=Bn(L,Pr),R=L.metrics.thumbnail.xs,F=e=>Zn(L,mn(L,e)),H=r?R.frame.w:R.empty.w,[P=0,B=0]=z.line.gap,O={flexDirection:"row",alignItems:z.line.center?"center":"flex-start",columnGap:P};if(m==="drawer")/* @__PURE__ */return A(DrawerLine,{...e});if(x)/* @__PURE__ */
57
+ return W(f,{testID:I,style:[Jn(L,z.line),O,C],children:[
58
+ /* @__PURE__ */A(f,{style:{width:H,height:H,borderRadius:R.frame.radius[0],backgroundColor:L.colors.tintSage}}),
59
+ /* @__PURE__ */A(f,{style:{flex:1},children:/* @__PURE__ */A(Skeleton,{lines:2,label:S})})]});let D=l&&l.length>0?l.map((e,t)=>/* @__PURE__ */A(Text2,{style:[F(z.meta),{marginTop:z.meta.marginTop}],children:e},`${t}-${e}`)):o?/* @__PURE__ */A(Text2,{style:[F(z.meta),{marginTop:z.meta.marginTop}],children:o}):null,E=e=>I===void 0?void 0:`${I}-${e}`,N=(e,t,r,n)=>/* @__PURE__ */A(k,{testID:n?.testID,onPress:n?.disabled?void 0:r,disabled:n?.disabled,accessibilityRole:"button",accessibilityLabel:n?.accessibilityLabel??t,accessibilityState:n?.disabled?{disabled:true}:void 0,hitSlop:ei(z.removeBox.minHeight||z.remove.lineHeight),style:[{minHeight:z.removeBox.minHeight||void 0,justifyContent:"center"},n?.disabled?{opacity:un}:null],children:/* @__PURE__ */A(Text2,{tier:"control",style:F(z.remove),children:t})},e),V=p!==void 0?p.length>0?p.map(e=>N(e.key,e.label,e.onPress,{disabled:e.disabled,accessibilityLabel:e.accessibilityLabel,testID:vn(I,e.key,e.testID)})):null:c&&u?N("remove",c,u):null;if(m==="square"||m==="web"){let e=m==="web",l=e?{...Bn(L,Br),...Bn(L,Or)}:Bn(L,Br),d=Xn(L,l.badge),x=(e,t,r,n)=>/* @__PURE__ */A(k,{testID:n?.testID,onPress:n?.disabled?void 0:r,disabled:n?.disabled,accessibilityRole:"button",accessibilityLabel:n?.accessibilityLabel??t,accessibilityState:n?.disabled?{disabled:true}:void 0,hitSlop:ei(l.actBox.minHeight||l.act.lineHeight),style:[{minHeight:l.actBox.minHeight||void 0,justifyContent:"center"},n?.disabled?{opacity:un}:null],children:/* @__PURE__ */A(Text2,{tier:"control",style:F(l.act),children:t})},e),S=e?[]:p!==void 0?p.map(e=>x(e.key,e.label,e.onPress,{disabled:e.disabled,accessibilityLabel:e.accessibilityLabel,testID:vn(I,e.key,e.testID)})):c&&u?[x("remove",c,u)]:[],z=w!==void 0&&S.length>0;/* @__PURE__ */
60
+ return W(f,{testID:I,style:[{flexDirection:"row",alignItems:y==="center"||l.line.center?"center":"flex-start",columnGap:l.line.gap[0]},C],children:[
61
+ /* @__PURE__ */A(Square,{size:b,web:e,src:r,alt:n,fallback:h,onError:g,testID:E("image")}),
62
+ /* @__PURE__ */W(f,{style:[{flex:1,minWidth:0},z?{zIndex:1}:null],children:[
63
+ /* @__PURE__ */W(f,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:l.name.center?"center":"baseline",columnGap:l.name.gap[0],rowGap:l.name.gap[1]},children:[
64
+ /* @__PURE__ */A(Text2,{style:F(w?l.link:l.nameText),onPress:z?w.onPress:void 0,children:t}),i?/* @__PURE__ */W(f,{style:[Jn(L,l.badge),{height:l.badge.h,justifyContent:"center"}],children:[
65
+ /* @__PURE__ */A(Text2,{style:F(l.badgeText),children:i.label}),d?/* @__PURE__ */A(f,{pointerEvents:"none",style:d}):null]}):null]}),o?/* @__PURE__ */A(Text2,{style:[F(l.meta),{marginTop:l.meta.marginTop}],children:o}):null,S.length>0?/* @__PURE__ */A(f,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:l.acts.gap[0],rowGap:l.acts.gap[1],marginTop:l.acts.marginTop},children:S}):null,v?/* @__PURE__ */A(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[F(l.meta),{marginTop:l.acts.marginTop,color:L.colors.alert}],children:v}):null]}),a||s?/* @__PURE__ */W(f,{style:{alignItems:"flex-end"},children:[a?/* @__PURE__ */A(Text2,{testID:E("price"),style:F(l.price),children:a}):null,s?/* @__PURE__ */A(Text2,{style:F(l.was),children:s}):null]}):null,w?/* @__PURE__ */A(k,{testID:w.testID??E("name"),onPress:w.onPress,accessibilityRole:"button",accessibilityLabel:w.accessibilityLabel??t,style:{position:"absolute",top:-l.linkReach,right:0,bottom:-l.linkReach,left:0}}):null]})}if(m==="plan")/* @__PURE__ */return A(PlanLine,{...e});let q=d?/* @__PURE__ */A(QuantityStepper,{value:d.value,min:d.min,max:d.max,label:d.label,fewerLabel:d.fewerLabel,moreLabel:d.moreLabel,onChange:e=>Mi(d,e)}):null;/* @__PURE__ */
66
+ return W(f,{testID:I,style:[Jn(L,z.line),{rowGap:B,columnGap:0},C],children:[
67
+ /* @__PURE__ */W(f,{style:O,children:[
68
+ /* @__PURE__ */A(BlockThumbnail,{size:"xs",src:r,alt:n,icon:h?.icon,iconSize:h?.iconSize,tint:h?.tint,iconColor:h?.iconColor,onError:g,testID:E("image")}),
69
+ /* @__PURE__ */W(f,{style:{flex:1,minWidth:0},children:[
70
+ /* @__PURE__ */W(f,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:z.name.gap[0],rowGap:z.name.gap[1]},children:[
71
+ /* @__PURE__ */A(Text2,{style:F(z.nameText),children:t}),i?/* @__PURE__ */A(Pill,{label:i.label,tone:i.tone??"rx"}):null]}),D,q||V?/* @__PURE__ */W(f,{style:{flexDirection:"row",alignItems:"center",...p&&p.length>1?{flexWrap:"wrap",rowGap:z.acts.gap[1]}:{},columnGap:z.acts.gap[0],marginTop:z.acts.marginTop},children:[q,V]}):null,v?/* @__PURE__ */A(Text2,{accessibilityRole:"alert",accessibilityLiveRegion:"polite",style:[F(z.meta),{marginTop:z.acts.marginTop,color:L.colors.alert}],children:v}):null]})]}),a||s?/* @__PURE__ */W(f,{style:{marginLeft:H+P,flexDirection:"row",flexWrap:"wrap",alignItems:"baseline",columnGap:z.end.gap[0],rowGap:z.end.gap[1]},children:[a?/* @__PURE__ */A(Text2,{testID:E("price"),style:F(z.price),children:a}):null,s?/* @__PURE__ */A(Text2,{style:F(z.was),children:s}):null]}):null]})}var eo="partner",to=createContext(eo),ro=to.Provider;function no(){return r(to)}function io(){return no()==="everfur-app"}var oo=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var lo=Object.freeze;function ao(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){lo(e);for(let t of Object.keys(e))ao(e[t])}return e}var so=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var co={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},uo={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},po={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},ho={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},go={regular:"400",medium:"500",bold:"700"},fo={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},mo=0,bo="System",yo="monospace",ko=["content","heading","control","compact","badge"];function wo(e){let t={};for(let r of ko)t[r]=e;return t}var vo=[];function To(){return{family:bo,mono:yo,fontUrl:null,families:{regular:bo,medium:bo,bold:bo,mono:yo,monoMedium:yo,monoBold:yo},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:po,tierSizes:wo(po),lineHeight:ho,weight:go,letterSpacing:fo,scale:1,maxScale:mo,scaleCaps:so,headingFamily:null,headingWeight:null,fontSources:vo,roles:oo,typeScale:1}}var xo={},So=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(e){return`cubic-bezier(${e.join(", ")})`}var Io={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(So.standard),emphasized:cssCubicBezier(So.emphasized),exit:cssCubicBezier(So.exit)},reducedMotion:false},Co={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},Lo=ao({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:Co,space:co,radius:uo,type:To(),motion:Io,slots:xo}),zo={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},Wo=ao({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:zo,space:co,radius:uo,type:To(),motion:Io,slots:xo});var Ao=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(e,t){let r=e.type,n=r.families[t];return t==="mono"||r.namedFaces[t]?{fontFamily:n}:{fontFamily:n,fontWeight:r.weight[Ao[t]]}}function headingFace(e,t="bold"){let{headingFamily:r,headingWeight:n}=e.type;if(r===null&&n===null)return face(e,t);if(r!==null)return{fontFamily:r,fontWeight:n??e.type.weight[Ao[t]]};let i=face(e,t);return i.fontWeight===void 0||n===null?i:{fontFamily:i.fontFamily,fontWeight:n}}function Ro(e){return e<=450?"regular":e<=650?"medium":"bold"}var Fo={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(e,t){let r=Ho.get(e);r===void 0&&(r=/* @__PURE__ */new Map,Ho.set(e,r));let n=r.get(t);if(n!==void 0)return n;let i=Po(e,t);return r.set(t,i),i}var Ho=/* @__PURE__ */new WeakMap;function Po(e,t){let r=e.type.roles[t],n=r.weight==="400"&&r.face!=="mono"?e.type.weight.regular:r.weight,i=Ro(Number(n)),o=r.face==="mono"?face(e,Fo[i]):r.face==="heading"?headingFace(e,i):face(e,i),l=r.face==="heading"?e.type.headingWeight??n:n,a=o.fontWeight===void 0?o:{fontFamily:o.fontFamily,fontWeight:l},s=r.size,d={...a,fontSize:s,lineHeight:Math.round(s*r.lineHeight*100)/100};return r.letterSpacing!==0&&(d.letterSpacing=Math.round(s*r.letterSpacing*100)/100),r.uppercase&&(d.textTransform="uppercase"),/* @__PURE__ */Object.freeze(d)}function Bo(e){if(typeof e=="number")return Eo(e);if(typeof e!="string")return null;let t=e.trim();if(t.length===0)return null;if(t.startsWith("#"))return Oo(t.slice(1));if(t.toLowerCase().startsWith("0x"))return Oo(t.slice(2));if(t.toLowerCase().startsWith("rgb"))return Do(t);if(/^[0-9a-fA-F]+$/.test(t)){let e=Oo(t);if(e!==null)return e}return/^\d+$/.test(t)?Eo(Number.parseInt(t,10)):null}function Oo(e){let t=e.trim();if(!/^[0-9a-fA-F]+$/.test(t))return null;if(t.length===3)return{r:Vo(t[0]),g:Vo(t[1]),b:Vo(t[2]),a:1};if(t.length===6)return{r:No(t,0),g:No(t,2),b:No(t,4),a:1};if(t.length===8){let e=No(t,0);return{r:No(t,2),g:No(t,4),b:No(t,6),a:e/255}}return null}function Do(e){let t=e.indexOf("("),r=e.indexOf(")");if(t<0||r<0||r<t)return null;let n=e.slice(t+1,r).split(",").map(e=>e.trim());if(n.length<3)return null;let i=qo(Number(n[0])),o=qo(Number(n[1])),l=qo(Number(n[2]));if(i===null||o===null||l===null)return null;let a=1;if(n.length>=4){let e=Number(n[3]);if(!Number.isFinite(e))return null;a=Math.min(1,Math.max(0,e))}return{r:i,g:o,b:l,a:a}}function Eo(e){if(!Number.isFinite(e))return null;let t=Math.trunc(e)>>>0,r=t>>>24&255;return{r:t>>>16&255,g:t>>>8&255,b:t&255,a:r===0?1:r/255}}function No(e,t){return Number.parseInt(e.slice(t,t+2),16)}function Vo(e){return Number.parseInt(`${e??"0"}${e??"0"}`,16)}function qo(e){return Number.isFinite(e)?Math.min(255,Math.max(0,Math.round(e))):null}function Uo(e,t,r){return`#${Go(e)}${Go(t)}${Go(r)}`.toUpperCase()}function Go(e){return e.toString(16).padStart(2,"0")}var Mo="#111111",Ko="#FFFFFF",jo="#000000";function readableOn(e){let t=Bo(e);if(t===null)return Ko;let r=Jo(t),n=Jo({r:17,g:17,b:17}),i=Jo({r:255,g:255,b:255});return Qo(r,i)>=Qo(r,n)?Ko:Mo}function Zo(e,t){let r=readableOn(e);return contrastRatio(r,e)>=t?r:contrastRatio(Ko,e)>=contrastRatio(jo,e)?Ko:jo}function Yo(e){let t=t=>e.reduce((e,r)=>Math.min(e,contrastRatio(t,r)),Number.POSITIVE_INFINITY);return t(Ko)>=t(jo)?Ko:jo}function Jo(e){let t=Xo(e.r/255),r=Xo(e.g/255),n=Xo(e.b/255);return.2126*t+.7152*r+.0722*n}function Xo(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Qo(e,t){let r=Math.max(e,t),n=Math.min(e,t);return(r+.05)/(n+.05)}function contrastRatio(e,t){let r=Bo(e),n=Bo(t);if(r===null||n===null)return 1;let i=n.a>=1?n:{...n},o=r.a>=1?r:_o(r,i);return Qo(Jo(o),Jo(i))}function _o(e,t){let r=e.a,n=(e,t)=>Math.round(e*r+t*(1-r));return{r:n(e.r,t.r),g:n(e.g,t.g),b:n(e.b,t.b),a:1}}function $o(e,t){let r=Bo(e),n=Bo(t);if(r===null||n===null)return null;let i=r.a>=1?r:_o(r,{...n});return Uo(i.r,i.g,i.b)}var el=.05;function tl(e,t,r,n){let i=t[0];if(i===void 0)return r;let o=e=>t.every(t=>contrastRatio(e,t)>=n);if(Bo(e)===null)return r;if(o(e))return e;let l=$o(e,i),a=l===null?null:Bo(l),s=Bo(r);if(a===null||s===null)return r;for(let e=1;e<1/el;e+=1){let t=e*el,r=(e,r)=>Math.round(e+(r-e)*t),n=Uo(r(a.r,s.r),r(a.g,s.g),r(a.b,s.b));if(o(n))return n}return r}var rl=/* @__PURE__ */Object.freeze({ink:"#262523",ink2:"#4A4845",ink3:"#6B6863",paper:"#F8F7F4",card:"#FFFFFF",line:"#E7E6E2",tile:"#F2F1EE",shadow:"rgba(38, 37, 35, .07)",riskBg:"#FFE3E1",riskInk:"#B0231B",riskDot:"#E5372B",clearBg:"#E6F4D3",clearInk:"#2F6A12",clearDot:"#5FA82B",watchDot:"#E5A000"}),nl=/* @__PURE__ */new WeakMap;function il(e){let t=nl.get(e);if(t!==void 0)return t;let r=e.color,n=e.brightness==="dark",i=n?{dark:n,ink:r.text.primary,ink2:r.text.secondary,ink3:r.text.muted,paper:r.background,card:r.surface,line:r.borderRingCream,tile:r.surfaceSubtle,shadow:r.shadow,riskBg:r.badgeBgCritical,riskInk:r.danger,riskDot:r.danger,clearBg:r.badgeBgPositive,clearInk:r.success,clearDot:r.success,watchDot:r.warningStrong}:{dark:n,...rl},o=(e,t)=>tl(e,t,Yo(t),ol),l=(e,t)=>contrastRatio(e,t)>=ol?e:Zo(t,ol),a=[i.card,i.paper].map(e=>$o(r.brandSoft,e)??e),s={primary:r.primary,onPrimary:l(r.onPrimary,r.primary),accent:r.accent,onAccent:l(r.onAccent,r.accent),link:o(r.linkInk,[i.card,i.paper,i.tile]),badge:r.brandSoft,onBadge:o(r.brandInk,a)},d=/* @__PURE__ */Object.freeze({...i,...s});return nl.set(e,d),d}var ol=4.5;var ll=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),al=globalThis,sl=al[ll]??(al[ll]=createContext(Lo));sl.displayName??="EverfurThemeContext";function useEverfurTheme(){return r(sl)}var dl=e=>{let t=e.type.namedFaces,r=t=>face(e,t).fontFamily;return{family:r("regular"),mono:r("mono"),faces:{regular:r("regular"),medium:r("medium"),bold:r("bold"),mono:r("mono"),monoBold:r("monoBold"),serif:headingFace(e,"bold").fontFamily},namedFaces:t.regular&&t.medium&&t.bold}},cl=/* @__PURE__ */new WeakMap;function ul(e,t,r=Gr){if(r!==Gr)return pl(e,t,r);let n=cl.get(t);n===void 0&&cl.set(t,n=/* @__PURE__ */new WeakMap);let i=n.get(e);return i===void 0&&n.set(e,i=pl(e,t,r)),i}function pl(e,t,r){let n=e.color,i=Lo.color,o=e.brightness==="dark",l=o?Wo:Lo,a=e=>n[e]!==i[e],s={};if(a("primary")?(Object.assign(s,{ink:n.primary,onInk:n.onPrimary,focus:n.primary}),a("accent")||Object.assign(s,{go:n.primary,onGo:n.onPrimary})):a("onPrimary")&&(s.onInk=n.onPrimary),a("accent")&&Object.assign(s,{go:n.accent,onGo:n.onAccent}),a("brandSoft")&&(s.tintSage=n.brandSoft),a("danger")&&Object.assign(s,{alert:n.danger,alertDeep:n.danger}),o)Object.assign(s,{bg:n.background,surface:n.surface,text:n.text.primary,muted:n.text.muted,line:n.borderRingCream});else{let e=l.color;n.background!==e.background&&(s.bg=n.background),n.surface!==e.surface&&(s.surface=n.surface),n.text.primary!==e.text.primary&&(s.text=n.text.primary),n.text.muted!==e.text.muted&&(s.muted=n.text.muted)}let d={};Object.keys(s).length>0&&(d.colors={...s});let c=e.radius,u=l.radius;if(c.xs!==u.xs||c.sm!==u.sm||c.lg!==u.lg||c.xl!==u.xl||c.pill!==u.pill){let e={};c.xs!==u.xs&&(e.sm=c.xs),c.sm!==u.sm&&(e.md=c.sm),c.lg!==u.lg&&(e.lg=c.lg),c.xl!==u.xl&&(e.xl=c.xl),c.pill!==u.pill&&(e.pill=c.pill),d.radius=e,(c.lg!==u.lg||c.xl!==u.xl)&&(d.metrics={...c.lg!==u.lg?{card:{radius:c.lg},summary:{radius:c.lg}}:{},...c.xl!==u.xl?{sheet:{radius:c.xl}}:{}})}if(e.space.xs!==l.space.xs){let t=e.space.xs/l.space.xs,n=r.space,i=e=>Math.round(e*t);d.space={1:i(n[1]),2:i(n[2]),3:i(n[3]),4:i(n[4]),5:i(n[5]),6:i(n[6]),7:i(n[7]),8:i(n[8]),9:i(n[9])}}let p=e.type.size,h=l.type.size,g=p.caption!==h.caption||p.bodyTight!==h.bodyTight||p.body!==h.body||p.subtitle!==h.subtitle||p.verdict!==h.verdict,f=e.type.lineHeight,m=l.type.lineHeight,b=f.relaxed!==m.relaxed||f.tight!==m.tight,y=e.type.scaleCaps,k=l.type.scaleCaps,w=y.content!==k.content||y.heading!==k.heading||y.control!==k.control||y.compact!==k.compact||y.badge!==k.badge,v=g||b||w;d.type={...g?{size:{xs:p.caption,sm:p.bodyTight,md:p.body,lg:p.subtitle,xl:p.verdict}}:{},...b?{lineHeight:{body:f.relaxed,display:f.tight}}:{},...w?{scaleCaps:{content:y.content,heading:y.heading,control:y.control,compact:y.compact,badge:y.badge}}:{},...t(e)},e.motion.reducedMotion&&!r.motion.reduced&&(d.motion={reduced:true});let x=v||Object.keys(s).length>0||Object.keys(d).some(e=>e!=="type"&&e!=="colors")||e.type.families.regular!==Lo.type.families.regular,S=fl(e,l,s.surface??r.colors.surface),I=Object.entries(S).filter(([e,t])=>t!==r.colors[e]);return I.length>0&&(d.colors={...s,...Object.fromEntries(I)}),x?{name:"partner",...d}:d}var hl={planAccent:Gr.colors.planAccent,planLink:Gr.colors.planLink},gl={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function fl(e,t,r){let n=il(e),i=il(t),o=e.color,l={};(o.primary!==t.color.primary||o.onPrimary!==t.color.onPrimary)&&Object.assign(l,{planInk:o.primary,planOnInk:n.onPrimary}),o.accent!==t.color.accent&&(l.planAccent=o.accent),n.link!==i.link&&(l.planLink=n.link);let a={accent:l.planAccent??hl.planAccent,link:l.planLink??hl.planLink},s={planLinkWash:n.dark?void 0:e.slots.planWash?.backgroundColor,planLinkChip:n.dark?void 0:e.slots.planChip?.backgroundColor},d=r.toLowerCase()!==n.card.toLowerCase();for(let[e,[t,r]]of Object.entries(gl)){let i=s[e];i!==void 0?l[e]=i:d&&(l[e]=sn(a[t],r,n.card,n.card))}return l}function ml(e){let t=useEverfurTheme();return i(()=>ul(t,e),[t,e])}function BlockScope({children:e}){let r=ml(dl);return t(ThemeProvider,{theme:r},e)}var bl=640,yl=600,kl=/* @__PURE__ */Object.freeze({width:0,height:0}),wl="useWindowDimensions"in p&&typeof p.useWindowDimensions=="function"?p.useWindowDimensions:()=>kl,vl=/* @__PURE__ */Object.freeze({width:"100%",maxWidth:bl,alignSelf:"center"});/* @__PURE__ */Object.freeze({...vl,flex:1});var Tl=/* @__PURE__ */Object.freeze({...vl,flexGrow:1,flexShrink:1});function xl(){return wl().width>=yl}function Sl(e="flow"){let{width:t}=wl();if(t<yl)return null;if(e==="flow")return vl;let r=Math.max(0,Math.round((t-bl)/2));return{left:r,right:r}}function Il(e,t){return t===null?e:[e,t]}var Cl=/* @__PURE__ */Symbol.for("@everfur/sdk#InSdkColumn@v1"),Ll=globalThis,zl=Ll[Cl]??(Ll[Cl]=createContext(false));zl.displayName??="EverfurInSdkColumn";function SdkTabletColumn({children:e,style:t,testID:n}){let i=xl(),o=r(zl);return!i||o?e:/* @__PURE__ */A(f,{style:t===void 0?Tl:[Tl,t],testID:n??"everfur-tablet-column",children:/* @__PURE__ */A(zl.Provider,{value:true,children:e})})}var Wl={package:{name:"package"},shop:{name:"shop"},orders:{name:"orders"},plan:{name:"plan"}};function Al(e,t){return t==="package"?e.tabPackage:t==="shop"?e.tabShop:t==="orders"?e.tabOrders:e.tabPlan}function CareTabs({copy:e,current:t,tabs:r}){let n=kr(),i=Lr();/* @__PURE__ */
72
+ return W(f,{style:[n.v("subtabs"),{flexDirection:"row",zIndex:1}],accessibilityRole:"tablist",accessibilityLabel:e.tabsLabel,testID:"shop-subtabs",children:[r.map(r=>{let o=r===t,l=o?"subtabCurrent":"subtab";/* @__PURE__ */
73
+ return W(Press,{role:"tab",selected:o,onPress:()=>i.go(Wl[r]),style:[n.v(l),{flex:1,alignItems:"center",justifyContent:"center"}],children:[
74
+ /* @__PURE__ */A(T,{k:l,bare:true,children:Al(e,r)}),
75
75
  /* @__PURE__ */A(Decor,{k:l})]},r)}),
76
- /* @__PURE__ */A(Decor,{k:"subtabs"})]})}function Frame({tabs:e,tray:t,onNearEnd:r,onRefresh:n,children:i}){let a=yr(),[s,d]=l(false),c=o(r);c.current=r;let u=o({offset:0,view:0,content:0}),p=()=>{let e=u.current;c.current&&e.view>0&&e.content>0&&e.offset+e.view*2>=e.content&&c.current()},h=r===void 0?{}:{scrollEventThrottle:100,onLayout:e=>{u.current.view=e.nativeEvent.layout.height,p()},onContentSizeChange:(e,t)=>{u.current.content=t,p()},onScroll:e=>{let t=e.nativeEvent;u.current={offset:t.contentOffset.y,view:t.layoutMeasurement.height,content:t.contentSize.height},p()}};/* @__PURE__ */
77
- return z(g,{style:{flex:1,backgroundColor:cr.subtabs.backgroundColor},children:[e?/* @__PURE__ */A(CareTabs,{copy:e.copy,current:e.current,tabs:e.tabs}):null,
78
- /* @__PURE__ */A(f,{style:{flex:1},contentContainerStyle:[a.v(e?"body":"pushBody"),yl],keyboardShouldPersistTaps:"handled",...h,...n?{refreshControl:/* @__PURE__ */A(m,{refreshing:s,tintColor:kr("screenMeta"),colors:[kr("screenMeta")],onRefresh:()=>{d(true),n().finally(()=>d(false))}})}:{},children:/* @__PURE__ */A(g,{testID:"shop-body",children:i})}),t??null]})}var yl={paddingBottom:cr.breaks.columnGap};function TitleBlock({title:e,meta:t}){let r=yr();/* @__PURE__ */
79
- return z(g,{style:r.v("titleBlock"),children:[
80
- /* @__PURE__ */A(T,{k:"screenTitle",role:"header",children:e}),t?/* @__PURE__ */A(T,{k:"screenMeta",children:t}):null]})}function Stack({children:e}){let t=yr();/* @__PURE__ */
81
- return A(g,{style:t.v("stack"),children:e})}function Card2({children:e,label:t,style:r}){let n=yr();/* @__PURE__ */
82
- return A(g,{style:[n.v("card"),r],...t?{accessibilityLabel:t}:{},children:e})}function CardTitle({children:e}){/* @__PURE__ */
83
- return A(T,{k:"cardTitle",role:"header",children:e})}function CardHead({title:e,end:t}){let r=yr();/* @__PURE__ */
84
- return z(g,{style:[r.v("cardHead"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"}],children:[
85
- /* @__PURE__ */A(T,{k:"cardTitleInHead",role:"header",children:e}),t??null]})}function ShopLinkText({link:e,k:t="cardLink",style:r}){let n=yr(),i=Cr();/* @__PURE__ */
86
- return A(Press,{role:"link",onPress:()=>i.go(e.to),style:[n.v(t),r],children:/* @__PURE__ */A(T,{k:t,bare:true,children:Sr(e.label)})})}var kl={rx:"pill",soon:"pillSoon",clear:"pillClear",plain:"pillPlain",overdue:"pillOverdue",later:"pillPlain",stable:"pillStable"};function Pill2({pill:e}){let t=yr(),r=kl[e.tone];/* @__PURE__ */
87
- return z(g,{style:[t.v(r),{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",flexShrink:1}],children:[
76
+ /* @__PURE__ */A(Decor,{k:"subtabs"})]})}function Frame({tabs:e,tray:t,onNearEnd:r,onRefresh:n,children:i}){let a=kr(),[s,d]=l(false),c=o(r);c.current=r;let u=o({offset:0,view:0,content:0}),p=()=>{let e=u.current;c.current&&e.view>0&&e.content>0&&e.offset+e.view*2>=e.content&&c.current()},h=r===void 0?{}:{scrollEventThrottle:100,onLayout:e=>{u.current.view=e.nativeEvent.layout.height,p()},onContentSizeChange:(e,t)=>{u.current.content=t,p()},onScroll:e=>{let t=e.nativeEvent;u.current={offset:t.contentOffset.y,view:t.layoutMeasurement.height,content:t.contentSize.height},p()}};/* @__PURE__ */
77
+ return A(f,{style:{flex:1,backgroundColor:ur.subtabs.backgroundColor},children:/* @__PURE__ */W(SdkTabletColumn,{children:[e?/* @__PURE__ */A(CareTabs,{copy:e.copy,current:e.current,tabs:e.tabs}):null,
78
+ /* @__PURE__ */A(m,{style:{flex:1},contentContainerStyle:[a.v(e?"body":"pushBody"),Rl],keyboardShouldPersistTaps:"handled",...h,...n?{refreshControl:/* @__PURE__ */A(b,{refreshing:s,tintColor:wr("screenMeta"),colors:[wr("screenMeta")],onRefresh:()=>{d(true),n().finally(()=>d(false))}})}:{},children:/* @__PURE__ */A(f,{testID:"shop-body",children:i})}),t??null]})})}var Rl={paddingBottom:ur.breaks.columnGap};function TitleBlock({title:e,meta:t}){let r=kr();/* @__PURE__ */
79
+ return W(f,{style:r.v("titleBlock"),children:[
80
+ /* @__PURE__ */A(T,{k:"screenTitle",role:"header",children:e}),t?/* @__PURE__ */A(T,{k:"screenMeta",children:t}):null]})}function Stack({children:e}){let t=kr();/* @__PURE__ */
81
+ return A(f,{style:t.v("stack"),children:e})}function Card2({children:e,label:t,style:r}){let n=kr();/* @__PURE__ */
82
+ return A(f,{style:[n.v("card"),r],...t?{accessibilityLabel:t}:{},children:e})}function CardTitle({children:e}){/* @__PURE__ */
83
+ return A(T,{k:"cardTitle",role:"header",children:e})}function CardHead({title:e,end:t}){let r=kr();/* @__PURE__ */
84
+ return W(f,{style:[r.v("cardHead"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"}],children:[
85
+ /* @__PURE__ */A(T,{k:"cardTitleInHead",role:"header",children:e}),t??null]})}function ShopLinkText({link:e,k:t="cardLink",style:r}){let n=kr(),i=Lr();/* @__PURE__ */
86
+ return A(Press,{role:"link",onPress:()=>i.go(e.to),style:[n.v(t),r],children:/* @__PURE__ */A(T,{k:t,bare:true,children:Ir(e.label)})})}var Fl={rx:"pill",soon:"pillSoon",clear:"pillClear",plain:"pillPlain",overdue:"pillOverdue",later:"pillPlain",stable:"pillStable"};function Pill2({pill:e}){let t=kr(),r=Fl[e.tone];/* @__PURE__ */
87
+ return W(f,{style:[t.v(r),{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",flexShrink:1}],children:[
88
88
  /* @__PURE__ */A(T,{k:r,bare:true,style:{flexShrink:1},children:e.label}),
89
- /* @__PURE__ */A(Decor,{k:r})]})}var wl={base:null,pink:"thumbPink",yellow:"thumbYellow",sage:"thumbSage"};function vl(e){let t=wl[e];return(t?cr[t]:cr.thumb).backgroundColor}function Tl(e){return no()&&e.form!==void 0?nt(e.form):{tone:e.tone,icon:e.icon}}function TilePhoto({uri:e,onFailed:t}){let[r,n]=l("loading");return r==="failed"?null:/* @__PURE__ */A(w,{source:{uri:e},resizeMode:"cover",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",onLoad:()=>n("loaded"),onError:()=>{n("failed"),t?.()},style:{position:"absolute",top:0,left:0,right:0,bottom:0,opacity:r==="loaded"?1:0}})}function Thumb({tone:e,icon:t,imageUrl:r}){let n=yr();/* @__PURE__ */
90
- return z(g,{style:[n.v("thumb"),{backgroundColor:vl(e),alignItems:"center",justifyContent:"center"},r?{overflow:"hidden"}:null],children:[
91
- /* @__PURE__ */A(PartIcon,{name:t,k:"thumbIcon",inkKey:"thumb"}),r?/* @__PURE__ */A(TilePhoto,{uri:r},r):null]})}function ItemRow({index:e,count:t,thumb:r,children:n,end:i,first:o="itemsLiFirst",mid:l="itemsLiMid",last:a="itemsLiLast"}){let s=yr(),d=[];t===1?d.push({paddingTop:0,paddingBottom:0}):e===0?d.push(s.v(o)):e===t-1?d.push(s.v(a)):d.push(s.v(l));let c=cr.itemsLiFirst.columnGap;return d.push({rowGap:0,columnGap:0}),/* @__PURE__ */z(g,{style:d,children:[
92
- /* @__PURE__ */z(g,{style:{flexDirection:"row",alignItems:"center",columnGap:c},children:[r,
93
- /* @__PURE__ */A(g,{style:{flex:1,minWidth:0,marginRight:c},children:n})]}),i?/* @__PURE__ */A(g,{style:{marginTop:cr.itemsLiFirst.rowGap,marginLeft:cr.thumb.width+c,marginRight:c,alignItems:"flex-start"},children:i}):null]})}function ItemName({name:e,rx:t,copy:r,pills:n}){let i=yr();/* @__PURE__ */
94
- return z(g,{style:[i.v("itemsName"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:[
95
- /* @__PURE__ */A(T,{k:"itemsName",bare:true,children:e}),t?/* @__PURE__ */A(Pill2,{pill:{label:r.rx,tone:"rx"}}):null,(n??[]).map(e=>/* @__PURE__ */A(Pill2,{pill:e},e.label))]})}var xl={colors:{ink:Ur.colors.ink}};function Sum({rows:e,total:t}){let r=e.map((e,t)=>({key:`${e.k}-${t}`,term:e.k,value:e.v})),n=t?r[r.length-1]:void 0;/* @__PURE__ */
96
- return A(BlockScope,{children:/* @__PURE__ */A(ThemeProvider,{theme:xl,children:/* @__PURE__ */A(SummaryList,{rows:n?r.slice(0,-1):r,total:n})})})}function RecRows({label:e,rows:t,testID:r}){/* @__PURE__ */
97
- return A(BlockScope,{children:/* @__PURE__ */A(ThemeProvider,{theme:xl,children:/* @__PURE__ */A(ListSection,{variant:"tiles",inset:false,label:e,testID:r,children:t.map(e=>/* @__PURE__ */A(ListRow,{icon:({size:t})=>/* @__PURE__ */A(Icon,{name:e.icon,size:t,color:kr("recIcon")}),title:e.title,subtitle:e.meta,trailing:e.pill?/* @__PURE__ */A(Pill2,{pill:e.pill}):void 0,chevron:false,accessibilityRole:"link",accessibilityLabel:[e.title,e.meta,e.pill?.label].filter(Boolean).join(", "),onPress:e.onPress},e.key))})})})}function Rows({rows:e,plan:t}){let r=yr();/* @__PURE__ */
98
- return A(g,{children:e.map((n,i)=>{let o;return t?o=r.v(i===0?"planRowsLiFirst":"planRowsLiNext"):e.length===1?o={}:i===0?o=r.v("rowsLiFirst"):i===e.length-1?o=r.v("rowsLiNext"):o={...r.v("rowsLiNext"),paddingBottom:cr.rowsLiFirst.paddingBottom},/* @__PURE__ */z(g,{style:[o,{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
99
- /* @__PURE__ */z(g,{style:{flex:1,minWidth:0},children:[
100
- /* @__PURE__ */A(T,{k:"rowsK",children:n.k}),n.v?/* @__PURE__ */A(T,{k:"rowsV",children:n.v}):null,n.meta?/* @__PURE__ */A(T,{k:"rowsMeta",style:n.metaAlert?{color:kr("pillOverdue")}:null,children:n.meta}):null,n.alert?/* @__PURE__ */A(InlineError,{line:n.alert}):null]}),n.end?/* @__PURE__ */A(g,{style:{marginLeft:cr.rowsLiFirst.columnGap},children:n.end}):null]},n.key)})})}function Legal({line:e}){/* @__PURE__ */
101
- return A(g,{testID:"shop-legal",children:/* @__PURE__ */A(T,{k:"legal",children:e})})}function Sl(e){return e.busy&&e.busyLabel?e.busyLabel:e.label}function InkButton({action:e}){let t=yr();/* @__PURE__ */
102
- return A(Press,{onPress:e.onPress,disabled:e.disabled===true,style:[t.v("btnInk"),{flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */A(T,{k:"btnInk",bare:true,children:Sl(e)})})}function OutlineButton({action:e,k:t,icon:r,iconKey:n}){let i=yr();/* @__PURE__ */
103
- return z(Press,{onPress:e.onPress,disabled:e.disabled===true,style:[i.v(t),{flexDirection:"row",alignItems:"center",justifyContent:"center",alignSelf:t==="btnOutline"||t==="btnDanger"?"stretch":"flex-start"}],children:[r&&n?/* @__PURE__ */A(PartIcon,{name:r,k:n,inkKey:t}):null,
104
- /* @__PURE__ */A(T,{k:t==="btnRow"?"btnRowLabel":t,bare:true,children:Sl(e)})]})}function ActText({label:e,onPress:t,disabled:r}){/* @__PURE__ */
105
- return A(Press,{onPress:t,disabled:r===true,children:/* @__PURE__ */A(T,{k:"itemsActButton",bare:true,style:[xr("itemsActButton"),{textAlign:"left"}],children:e})})}function TrayBar({action:e,fine:t,error:r}){let n=yr();return!e&&!t&&!r?null:/* @__PURE__ */z(g,{style:n.v("traybar"),testID:"shop-traybar",children:[
89
+ /* @__PURE__ */A(Decor,{k:r})]})}var Hl={base:null,pink:"thumbPink",yellow:"thumbYellow",sage:"thumbSage"};function Pl(e){let t=Hl[e];return(t?ur[t]:ur.thumb).backgroundColor}function Bl(e){return io()&&e.form!==void 0?it(e.form):{tone:e.tone,icon:e.icon}}function TilePhoto({uri:e,onFailed:t}){let[r,n]=l("loading");return r==="failed"?null:/* @__PURE__ */A(v,{source:{uri:e},resizeMode:"cover",accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",onLoad:()=>n("loaded"),onError:()=>{n("failed"),t?.()},style:{position:"absolute",top:0,left:0,right:0,bottom:0,opacity:r==="loaded"?1:0}})}function Thumb({tone:e,icon:t,imageUrl:r}){let n=kr();/* @__PURE__ */
90
+ return W(f,{style:[n.v("thumb"),{backgroundColor:Pl(e),alignItems:"center",justifyContent:"center"},r?{overflow:"hidden"}:null],children:[
91
+ /* @__PURE__ */A(PartIcon,{name:t,k:"thumbIcon",inkKey:"thumb"}),r?/* @__PURE__ */A(TilePhoto,{uri:r},r):null]})}function ItemRow({index:e,count:t,thumb:r,children:n,end:i,first:o="itemsLiFirst",mid:l="itemsLiMid",last:a="itemsLiLast"}){let s=kr(),d=[];t===1?d.push({paddingTop:0,paddingBottom:0}):e===0?d.push(s.v(o)):e===t-1?d.push(s.v(a)):d.push(s.v(l));let c=ur.itemsLiFirst.columnGap;return d.push({rowGap:0,columnGap:0}),/* @__PURE__ */W(f,{style:d,children:[
92
+ /* @__PURE__ */W(f,{style:{flexDirection:"row",alignItems:"center",columnGap:c},children:[r,
93
+ /* @__PURE__ */A(f,{style:{flex:1,minWidth:0,marginRight:c},children:n})]}),i?/* @__PURE__ */A(f,{style:{marginTop:ur.itemsLiFirst.rowGap,marginLeft:ur.thumb.width+c,marginRight:c,alignItems:"flex-start"},children:i}):null]})}function ItemName({name:e,rx:t,copy:r,pills:n}){let i=kr();/* @__PURE__ */
94
+ return W(f,{style:[i.v("itemsName"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:[
95
+ /* @__PURE__ */A(T,{k:"itemsName",bare:true,children:e}),t?/* @__PURE__ */A(Pill2,{pill:{label:r.rx,tone:"rx"}}):null,(n??[]).map(e=>/* @__PURE__ */A(Pill2,{pill:e},e.label))]})}var Ol={colors:{ink:Gr.colors.ink}};function Sum({rows:e,total:t}){let r=e.map((e,t)=>({key:`${e.k}-${t}`,term:e.k,value:e.v})),n=t?r[r.length-1]:void 0;/* @__PURE__ */
96
+ return A(BlockScope,{children:/* @__PURE__ */A(ThemeProvider,{theme:Ol,children:/* @__PURE__ */A(SummaryList,{rows:n?r.slice(0,-1):r,total:n})})})}function RecRows({label:e,rows:t,testID:r}){/* @__PURE__ */
97
+ return A(BlockScope,{children:/* @__PURE__ */A(ThemeProvider,{theme:Ol,children:/* @__PURE__ */A(ListSection,{variant:"tiles",inset:false,label:e,testID:r,children:t.map(e=>/* @__PURE__ */A(ListRow,{icon:({size:t})=>/* @__PURE__ */A(Icon,{name:e.icon,size:t,color:wr("recIcon")}),title:e.title,subtitle:e.meta,trailing:e.pill?/* @__PURE__ */A(Pill2,{pill:e.pill}):void 0,chevron:false,accessibilityRole:"link",accessibilityLabel:[e.title,e.meta,e.pill?.label].filter(Boolean).join(", "),onPress:e.onPress},e.key))})})})}function Rows({rows:e,plan:t}){let r=kr();/* @__PURE__ */
98
+ return A(f,{children:e.map((n,i)=>{let o;return t?o=r.v(i===0?"planRowsLiFirst":"planRowsLiNext"):e.length===1?o={}:i===0?o=r.v("rowsLiFirst"):i===e.length-1?o=r.v("rowsLiNext"):o={...r.v("rowsLiNext"),paddingBottom:ur.rowsLiFirst.paddingBottom},/* @__PURE__ */W(f,{style:[o,{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
99
+ /* @__PURE__ */W(f,{style:{flex:1,minWidth:0},children:[
100
+ /* @__PURE__ */A(T,{k:"rowsK",children:n.k}),n.v?/* @__PURE__ */A(T,{k:"rowsV",children:n.v}):null,n.meta?/* @__PURE__ */A(T,{k:"rowsMeta",style:n.metaAlert?{color:wr("pillOverdue")}:null,children:n.meta}):null,n.alert?/* @__PURE__ */A(InlineError,{line:n.alert}):null]}),n.end?/* @__PURE__ */A(f,{style:{marginLeft:ur.rowsLiFirst.columnGap},children:n.end}):null]},n.key)})})}function Legal({line:e}){/* @__PURE__ */
101
+ return A(f,{testID:"shop-legal",children:/* @__PURE__ */A(T,{k:"legal",children:e})})}function Dl(e){return e.busy&&e.busyLabel?e.busyLabel:e.label}function InkButton({action:e}){let t=kr();/* @__PURE__ */
102
+ return A(Press,{onPress:e.onPress,disabled:e.disabled===true,style:[t.v("btnInk"),{flexDirection:"row",alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */A(T,{k:"btnInk",bare:true,children:Dl(e)})})}function OutlineButton({action:e,k:t,icon:r,iconKey:n}){let i=kr();/* @__PURE__ */
103
+ return W(Press,{onPress:e.onPress,disabled:e.disabled===true,style:[i.v(t),{flexDirection:"row",alignItems:"center",justifyContent:"center",alignSelf:t==="btnOutline"||t==="btnDanger"?"stretch":"flex-start"}],children:[r&&n?/* @__PURE__ */A(PartIcon,{name:r,k:n,inkKey:t}):null,
104
+ /* @__PURE__ */A(T,{k:t==="btnRow"?"btnRowLabel":t,bare:true,children:Dl(e)})]})}function ActText({label:e,onPress:t,disabled:r}){/* @__PURE__ */
105
+ return A(Press,{onPress:t,disabled:r===true,children:/* @__PURE__ */A(T,{k:"itemsActButton",bare:true,style:[Sr("itemsActButton"),{textAlign:"left"}],children:e})})}function TrayBar({action:e,fine:t,error:r}){let n=kr();return!e&&!t&&!r?null:/* @__PURE__ */W(f,{style:n.v("traybar"),testID:"shop-traybar",children:[
106
106
  /* @__PURE__ */A(InlineError,{line:r??null}),e?/* @__PURE__ */A(InkButton,{action:e}):null,t?/* @__PURE__ */A(T,{k:"traybarFine",children:t}):null,
107
- /* @__PURE__ */A(Decor,{k:"traybar"})]})}function Ghost({rows:e=3}){let t=yr(),r=["100%","82%","64%"];/* @__PURE__ */
108
- return A(g,{style:t.v("ghost"),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:Array.from({length:e},(e,n)=>/* @__PURE__ */A(g,{style:[t.v("ghostBar"),{width:r[n%3]}]},n))})}function LoadFailed({copy:e,thing:t,retry:r}){/* @__PURE__ */
109
- return z(Card2,{children:[
107
+ /* @__PURE__ */A(Decor,{k:"traybar"})]})}function Ghost({rows:e=3}){let t=kr(),r=["100%","82%","64%"];/* @__PURE__ */
108
+ return A(f,{style:t.v("ghost"),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:Array.from({length:e},(e,n)=>/* @__PURE__ */A(f,{style:[t.v("ghostBar"),{width:r[n%3]}]},n))})}function LoadFailed({copy:e,thing:t,retry:r}){/* @__PURE__ */
109
+ return W(Card2,{children:[
110
110
  /* @__PURE__ */A(T,{k:"cardLead",children:e.loadFailed(t)}),
111
- /* @__PURE__ */A(OutlineButton,{k:"btnSm",action:{label:e.tryAgain,onPress:r}})]})}function InlineError({line:e}){return e?/* @__PURE__ */A(g,{accessibilityLiveRegion:"polite",accessibilityRole:"alert",children:/* @__PURE__ */A(T,{k:"noteAfterSum",style:{color:kr("pillOverdue")},children:e})}):null}function ShopSwitch({on:e,label:t,disabled:r,onChange:n}){let i=yr();/* @__PURE__ */
112
- return z(Press,{role:"switch",label:t,selected:e,disabled:r===true,onPress:()=>n(!e),style:i.v("switch"),children:[
113
- /* @__PURE__ */A(g,{style:i.v(e?"switchTrack":"switchTrackOff")}),
114
- /* @__PURE__ */A(g,{pointerEvents:"none",style:[i.v(e?"switchKnob":"switchKnobOff"),wr(e?"switchKnob":"switchKnobOff")]})]})}function ConfirmSheet({open:e,title:t,body:r,confirm:n,keep:i,closeLabel:o,busyLabel:l,busy:a,error:s,onConfirm:d,onClose:c}){let u=yr();/* @__PURE__ */
115
- return A(v,{visible:e,transparent:true,animationType:"slide",onRequestClose:c,statusBarTranslucent:true,children:/* @__PURE__ */z(g,{style:{flex:1,justifyContent:"flex-end"},children:[
116
- /* @__PURE__ */A(y,{style:[{position:"absolute",top:0,right:0,bottom:0,left:0},{backgroundColor:cr.sheetBackdrop.backgroundColor}],onPress:c,accessibilityRole:"button",accessibilityLabel:o}),
117
- /* @__PURE__ */z(g,{style:u.v("sheet"),accessibilityViewIsModal:true,testID:"shop-sheet",children:[
118
- /* @__PURE__ */A(g,{style:[u.v("sheetGrab"),{alignItems:"center",justifyContent:"center"}],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */A(g,{style:u.v("sheetGrabBar")})}),
119
- /* @__PURE__ */z(g,{style:[u.v("sheetHead"),{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}],children:[
111
+ /* @__PURE__ */A(OutlineButton,{k:"btnSm",action:{label:e.tryAgain,onPress:r}})]})}function InlineError({line:e}){return e?/* @__PURE__ */A(f,{accessibilityLiveRegion:"polite",accessibilityRole:"alert",children:/* @__PURE__ */A(T,{k:"noteAfterSum",style:{color:wr("pillOverdue")},children:e})}):null}function ShopSwitch({on:e,label:t,disabled:r,onChange:n}){let i=kr();/* @__PURE__ */
112
+ return W(Press,{role:"switch",label:t,selected:e,disabled:r===true,onPress:()=>n(!e),style:i.v("switch"),children:[
113
+ /* @__PURE__ */A(f,{style:i.v(e?"switchTrack":"switchTrackOff")}),
114
+ /* @__PURE__ */A(f,{pointerEvents:"none",style:[i.v(e?"switchKnob":"switchKnobOff"),vr(e?"switchKnob":"switchKnobOff")]})]})}function ConfirmSheet({open:e,title:t,body:r,confirm:n,keep:i,closeLabel:o,busyLabel:l,busy:a,error:s,onConfirm:d,onClose:c}){let u=kr(),p=Sl();/* @__PURE__ */
115
+ return A(x,{visible:e,transparent:true,animationType:"slide",onRequestClose:c,statusBarTranslucent:true,children:/* @__PURE__ */W(f,{style:{flex:1,justifyContent:"flex-end"},children:[
116
+ /* @__PURE__ */A(k,{style:[{position:"absolute",top:0,right:0,bottom:0,left:0},{backgroundColor:ur.sheetBackdrop.backgroundColor}],onPress:c,accessibilityRole:"button",accessibilityLabel:o}),
117
+ /* @__PURE__ */W(f,{style:Il(u.v("sheet"),p),accessibilityViewIsModal:true,testID:"shop-sheet",children:[
118
+ /* @__PURE__ */A(f,{style:[u.v("sheetGrab"),{alignItems:"center",justifyContent:"center"}],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */A(f,{style:u.v("sheetGrabBar")})}),
119
+ /* @__PURE__ */W(f,{style:[u.v("sheetHead"),{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}],children:[
120
120
  /* @__PURE__ */A(T,{k:"cardTitleInHead",role:"header",style:{flex:1,minWidth:0},children:t}),
121
121
  /* @__PURE__ */A(Press,{label:o,onPress:c,style:[u.v("sheetClose"),{alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */A(PartIcon,{name:"close",k:"sheetCloseIcon",inkKey:"sheetClose"})})]}),
122
- /* @__PURE__ */z(g,{style:u.v("sheetBody"),children:[r?/* @__PURE__ */A(T,{k:"sheetText",children:r}):null,
122
+ /* @__PURE__ */W(f,{style:u.v("sheetBody"),children:[r?/* @__PURE__ */A(T,{k:"sheetText",children:r}):null,
123
123
  /* @__PURE__ */A(InlineError,{line:s}),
124
- /* @__PURE__ */z(g,{style:u.v("sheetActions"),children:[
124
+ /* @__PURE__ */W(f,{style:u.v("sheetActions"),children:[
125
125
  /* @__PURE__ */A(OutlineButton,{k:"btnDanger",action:{label:n,busyLabel:l,busy:a,disabled:a,onPress:d}}),
126
- /* @__PURE__ */A(OutlineButton,{k:"btnOutline",action:{label:i,onPress:c}})]})]})]})]})})}var Il=28;function Dot({state:e}){let t=yr();return e==="done"?/* @__PURE__ */A(g,{style:[t.v("dotDone"),{alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */A(PartIcon,{name:"check",k:"dotDoneIcon",inkKey:"dotDone"})}):e==="now"?/* @__PURE__ */A(g,{style:[t.v("dotNow"),{alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */A(g,{style:t.v("dotNowCore")})}):/* @__PURE__ */A(g,{style:t.v("dotNext")})}function Tracker({copy:e,steps:t}){let r=yr();/* @__PURE__ */
127
- return A(g,{children:t.map((n,i)=>{let o=i===t.length-1,l=r.v(o?"trackerLiLast":"trackerLi"),a=n.state==="next"?"trackerTitleNext":"trackerTitle";/* @__PURE__ */
128
- return z(g,{style:[l,{flexDirection:"row",alignItems:"flex-start",rowGap:0,columnGap:0}],accessible:true,accessibilityLabel:[n.title,n.state==="now"?e.now:null,n.when,n.text].filter(Boolean).join(", "),children:[o?null:/* @__PURE__ */A(g,{style:r.v(n.state==="done"?"trackerLineDone":"trackerLine")}),
129
- /* @__PURE__ */A(g,{style:{width:Il,marginRight:l.columnGap},children:/* @__PURE__ */A(Dot,{state:n.state})}),
130
- /* @__PURE__ */z(g,{style:{flex:1,minWidth:0},children:[
131
- /* @__PURE__ */z(g,{style:[r.v(a),{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:[
132
- /* @__PURE__ */A(T,{k:a,bare:true,children:n.title}),n.state==="now"?/* @__PURE__ */A(Pill2,{pill:{label:e.now,tone:"stable"}}):null]}),n.when?/* @__PURE__ */A(T,{k:"trackerWhen",children:n.when}):null,n.text?/* @__PURE__ */A(T,{k:"trackerText",children:n.text}):null]})]},n.key)})})}var Cl=2e3;function Ll(e,t,r=true){let i=o({reread:t,enabled:r});i.current={reread:t,enabled:r},n(()=>{let t=Number.NEGATIVE_INFINITY;return e(()=>{if(!i.current.enabled)return;let e=Date.now();e-t<Cl||(t=e,i.current.reread())})},[e])}var zl=e=>{let t=S.currentState==="background",r=S.addEventListener("change",r=>{r==="background"?t=true:r==="active"&&t&&(t=false,e())});return()=>r.remove()};var Al=20;function Wl(){let{client:e,copy:t}=Oe(),r=De("v3-orders",()=>e.orders({limit:Al})),[i,s]=l(null),[d,c]=l(false),[u,p]=l(null),h=r.value;n(()=>s(null),[h]),Ll(zl,r.reread,i===null);let g=[...h?.orders??[],...i?.orders??[]],f=i?i.cursor:h?.nextCursor??null,m=g.filter(e=>!e.items).map(e=>e.orderId),b=De(m.length>0?`v3-order-items:${m.join(",")}`:null,async()=>{let t=await Promise.all(m.map(t=>e.order(t)));return oe(new Map(m.map((e,r)=>[e,t[r].ok?t[r].value.lines.map(e=>({title:e.title,quantity:e.quantity,rx:e.requiresRx,imageUrl:e.imageUrl??null})):[]])))}),y=e=>e.items?e.items.map(e=>({title:e.title,quantity:e.quantity,rx:false,imageUrl:e.imageUrl??null})):b.value?.get(e.orderId)??null,k=o(false),w=a(()=>{!f||k.current||(k.current=true,c(true),p(null),e.orders({limit:Al,cursor:f}).then(e=>{k.current=false,c(false),e.ok?s(t=>({orders:[...t?.orders??[],...e.value.orders],cursor:e.value.nextCursor})):p(Fe(t,e.error))}))},[e,t,f]);return{first:r,orders:g,named:y,hasMore:f!==null,loadMore:w,moreBusy:d,moreError:u}}function Rl(e,t){let{client:r,copy:i,v3:o,payments:a}=Oe(),s=Ke(e);Ll(zl,s.reread);let d=Me(),[c,u]=l(()=>Lt(r,e));n(()=>zt(r,e),[r,e]);let[p,h]=l(false),g=Ye(t=>r.cancelOrder(e,{idempotencyKey:t.key("cancel"),reasonCode:"customer_request"})),f=Ye(async t=>{let n=t.key("pay");for(let i=0;i<3;i+=1){let i=await r.payOrder(e,{idempotencyKey:n});if(!i.ok)return le(i.error);if(i.value.outcome==="authorized")return oe({kind:"confirmed",orderIds:[e]});if(!a||!i.value.payerAction)return oe({kind:"needsPayerAction",orderIds:[e]});let o=await a.handleNextAction(i.value.payerAction,{orderId:e});if(!o.ok)return oe(o.closed?{kind:"payerActionClosed",orderIds:[e]}:{kind:"payerActionFailed",orderIds:[e],message:o.message});n=t.next("pay")}return oe({kind:"needsPayerAction",orderIds:[e]})}),m=s.phase==="ready"&&s.value?s.value:null,b=f.busy||g.busy,y=()=>{u(null),f.run().then(e=>{e&&(u(e.ok?St(i,e.value):Fe(i,e.error)),s.refresh())})},k=()=>{g.run().then(e=>{if(!e)return;if(!e.ok){u(Fe(i,e.error)),h(false),s.reread();return}h(false),g.reset();let t=e.value.outcome;u(t==="requested"?o.cancelRequested:t==="not_cancellable"?i.refusal.operation_not_supported??i.actionFailed:null),s.refresh()})},w=[],v=null,x,S=null,I=c;if(m){let e=m.subtotal??m.lines.reduce((e,t)=>e+t.unitPrice*t.quantity,0),n=m.discount??m.lines.reduce((e,t)=>e+t.discount,0),l=m.tax??m.lines.reduce((e,t)=>e+t.tax,0)+m.shippingTax,a=m.refunds.reduce((e,t)=>t.state==="succeeded"?e+t.amount:e,0);w=[{k:o.subtotal,v:ke(e)},...n>0?[{k:o.discount,v:ke(-n)}]:[],{k:i.shipping,v:m.shipping===0?i.free:ke(m.shipping)},{k:i.tax,v:ke(l)},{k:i.total,v:ke(m.summary.total),total:true}],v=a>0?{k:o.refund,v:ke(a)}:null,x=m.paymentMethodId&&_t(m)?(d.value??[]).find(e=>e.paymentMethodId===m.paymentMethodId):void 0;let s=m.lines.filter(e=>!e.requiresRx),u=m.lines.find(e=>e.requiresRx)??null;S=lr(m.summary.status)?s.length>0?()=>{for(let e of s)Y(r,{offerId:e.offerId,title:e.title,unitPrice:e.unitPrice,requiresRx:false,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.imageUrl?{imageUrl:e.imageUrl}:{}});t({name:"cart"})}:u?()=>t({name:"product",offerId:u.offerId,...u.petId?{petId:u.petId}:{}}):null:null,(c===i.cardStepClosed||c===i.cardStepFailed)&&Qt(m)&&(I=null)}return{order:s,o:m,ref:m?.summary.referenceNumber??null,line:I,asking:p,setAsking:h,pay:f,cancel:g,busy:b,onPay:y,onCancel:k,sum:w,refundRow:v,paidCard:x,buyAgain:S}}function Fl(e,t){let r=e.scaleCaps[t];return r>0?r:void 0}function Text3({tier:e,variant:r,...n}){let i=useEverfurTheme(),o=r===void 0?void 0:i.type.roles[r],l=Fl(i.type,e??o?.tier??"content"),a=r===void 0?n:{...n,style:[{...textRole(i,r),color:i.color.text.primary,flexShrink:1},n.style]};return t(b,l===void 0?a:{maxFontSizeMultiplier:l,...a})}var Hl=e(function(e,r){return t(h,{...e,...r===null?{}:{ref:r}})});var Pl=/* @__PURE__ */Object.freeze({shield:{strokes:[{width:1.8,cap:true,closed:true,points:[12,3,19,6,19,12,18.759,14.125,18.074,16,17,17.625,15.593,19,13.907,20.125,12,21,10.093,20.125,8.407,19,7,17.625,5.926,16,5.241,14.125,5,12,5,6]},{width:1.8,cap:true,closed:false,points:[9,12,11,14,15,10]}],boxes:[],triangles:[],seams:[]},arrow:{strokes:[{width:2,cap:true,closed:false,points:[4.5,12,19,12]},{width:2,cap:true,closed:false,points:[13.5,6.5,19,12,13.5,17.5]}],boxes:[],triangles:[],seams:[]},check:{strokes:[{width:2.4,cap:true,closed:false,points:[5,12.6,9.4,17,19,7.4]}],boxes:[],triangles:[],seams:[]},star:{strokes:[],boxes:[],triangles:[[12,16.9,6.8,19.6,7.8,13.8],[16.2,13.8,17.2,19.6,12,16.9],[7.8,13.8,3.5,9.7,9.4,8.8],[14.6,8.8,20.5,9.7,16.2,13.8],[9.4,8.8,12,3.5,14.6,8.8],[16.2,13.8,12,16.9,7.8,13.8],[14.6,8.8,16.2,13.8,7.8,13.8],[14.6,8.8,7.8,13.8,9.4,8.8]],seams:[[12,16.9,7.8,13.8,.245,.677],[12,16.9,16.2,13.8,.245,.677],[7.8,13.8,9.4,8.8,.69,.248],[14.6,8.8,16.2,13.8,.248,.243],[14.6,8.8,9.4,8.8,.68,.245],[16.2,13.8,7.8,13.8,.677,.68],[14.6,8.8,7.8,13.8,.68,.69]]},truck:{strokes:[{width:1.7,cap:false,closed:true,points:[2.8,6.5,14.2,6.5,14.2,16,2.8,16]},{width:1.7,cap:false,closed:false,points:[14.2,9.5,17.8,9.5,21.2,12.9,21.2,16,14.2,16]}],boxes:[{x:5,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7},{x:15.4,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7}],triangles:[],seams:[]},refresh:{strokes:[{width:1.7,cap:true,closed:false,points:[4,12,4.343,14.363,5.368,16.52,6.985,18.278,9.048,19.48,11.374,20.021,13.756,19.85,15.981,18.984,17.852,17.5,19.201,15.53,19.909,13.249,19.912,10.861,19.21,8.578,17.865,6.605,15.998,5.116,13.775,4.245,11.393,4.068,9.066,4.602,7,5.8]},{width:1.7,cap:true,closed:false,points:[4,4,4,8,8,8]}],boxes:[],triangles:[],seams:[]},card:{strokes:[{width:1.7,cap:true,closed:false,points:[3,9.5,21,9.5]},{width:1.7,cap:true,closed:false,points:[6.5,15,10.5,15]}],boxes:[{x:3,y:5.5,w:18,h:13,radius:2.2,width:1.7}],triangles:[],seams:[]},alert:{strokes:[{width:1.9,cap:true,closed:true,points:[12,3.5,21.5,20,2.5,20]},{width:1.9,cap:true,closed:false,points:[12,10,12,14.5]},{width:1.9,cap:true,closed:false,points:[12,17.2,12.01,17.2]}],boxes:[],triangles:[],seams:[]},x:{strokes:[{width:2,cap:true,closed:false,points:[6.5,6.5,17.5,17.5]},{width:2,cap:true,closed:false,points:[17.5,6.5,6.5,17.5]}],boxes:[],triangles:[],seams:[]},chat:{strokes:[{width:1.7,cap:false,closed:true,points:[5,5.2,19,5.2,19.8,5.414,20.386,6,20.6,6.8,20.6,15.4,20.386,16.2,19.8,16.786,19,17,10.3,17,5.5,20.6,5.5,17,5,17,4.2,16.786,3.614,16.2,3.4,15.4,3.4,6.8,3.614,6,4.2,5.414,5,5.2]}],boxes:[],triangles:[],seams:[]},repeat:{strokes:[{width:1.8,cap:true,closed:false,points:[4.5,11,4.824,8.824,5.766,6.837,7.244,5.208,9.131,4.077,11.264,3.543,13.461,3.65,15.533,4.391,17.3,5.7,19.5,8]},{width:1.8,cap:true,closed:false,points:[19.5,3.5,19.5,8,15,8]},{width:1.8,cap:true,closed:false,points:[19.5,13,19.176,15.176,18.234,17.163,16.756,18.792,14.869,19.923,12.736,20.457,10.539,20.35,8.467,19.609,6.7,18.3,4.5,16]},{width:1.8,cap:true,closed:false,points:[4.5,20.5,4.5,16,9,16]}],boxes:[],triangles:[],seams:[]},calendar:{strokes:[{width:1.8,cap:true,closed:false,points:[4,10,20,10]},{width:1.8,cap:true,closed:false,points:[8.5,3.5,8.5,7.5]},{width:1.8,cap:true,closed:false,points:[15.5,3.5,15.5,7.5]}],boxes:[{x:4,y:5.5,w:16,h:15,radius:2.5,width:1.8}],triangles:[],seams:[]},flame:{strokes:[],boxes:[],triangles:[[12.15,14.513,13.1,15.2,13.1,13.7],[11.5,13.3,12.15,14.513,13.1,13.7],[16.874,10.907,15.7,9.3,15.381,10.659],[14.7,16.7,16.838,18.516,17.693,16.84],[14.7,16.7,14.489,17.681,16.838,18.516],[18,14.9,14.507,15.633,17.693,16.84],[16.874,10.907,15.381,10.659,14.685,11.707],[17.693,12.759,16.874,10.907,14.685,11.707],[15.538,19.832,16.838,18.516,14.489,17.681],[14.685,11.707,13.959,14.633,17.693,12.759],[17.693,12.759,13.959,14.633,18,14.9],[13.891,20.692,13.055,19.006,12,21],[12,21,12,19.2,10.109,20.692],[8.462,19.832,10.109,20.692,10.659,18.863],[10.659,18.863,9.741,17.97,8.462,19.832],[6.307,16.84,9.602,15.677,6,14.9],[6.273,13.033,6,14.9,9.602,15.677],[9.602,15.677,10.113,14.812,6.273,13.033],[6.988,11.438,6.273,13.033,10.113,14.812],[13.525,7.088,12.856,5.017,12,3.5],[13.856,9.589,13.525,7.088,12,3.5],[13.7,12.4,13.856,9.589,12,3.5],[10.113,14.812,10.792,14.042,6.988,11.438],[14.7,16.7,17.693,16.84,14.507,15.633],[13.7,12.4,13.959,14.633,14.685,11.707],[14.507,15.633,18,14.9,13.959,14.633],[13.1,13.7,13.959,14.633,13.7,12.4],[11.5,13.3,13.1,13.7,13.7,12.4],[7.983,10.048,6.988,11.438,10.792,14.042],[10.792,14.042,11.5,13.3,7.983,10.048],[14.489,17.681,13.913,18.475,15.538,19.832],[13.891,20.692,15.538,19.832,13.913,18.475],[13.891,20.692,13.913,18.475,13.055,19.006],[12,19.2,12,21,13.055,19.006],[10.659,18.863,10.109,20.692,12,19.2],[7.162,18.516,8.462,19.832,9.741,17.97],[9.741,17.97,9.4,16.7,7.162,18.516],[6.307,16.84,7.162,18.516,9.4,16.7],[6.307,16.84,9.4,16.7,9.602,15.677],[9.1,8.8,7.983,10.048,11.5,13.3],[11.5,13.3,13.7,12.4,9.1,8.8],[10.054,7.77,9.1,8.8,13.7,12.4],[10.927,6.683,10.054,7.77,13.7,12.4],[11.613,5.481,10.927,6.683,13.7,12.4],[12.006,4.106,11.613,5.481,13.7,12.4],[12,2.5,12.006,4.106,13.7,12.4],[12,2.5,13.7,12.4,12,3.5]],seams:[[12.15,14.513,13.1,13.7,.121,.428],[11.5,13.3,13.1,13.7,.681,.356],[15.381,10.659,16.874,10.907,.033,.883],[14.7,16.7,16.838,18.516,.648,1.318],[14.7,16.7,17.693,16.84,.648,1.533],[14.489,17.681,16.838,18.516,.51,1.318],[14.507,15.633,18,14.9,.782,1.787],[14.507,15.633,17.693,16.84,.782,1.533],[14.685,11.707,16.874,10.907,.68,.883],[14.685,11.707,17.693,12.759,.61,.484],[14.489,17.681,15.538,19.832,.51,1.115],[13.959,14.633,14.685,11.707,1.333,.576],[13.959,14.633,17.693,12.759,.851,.484],[13.959,14.633,18,14.9,.851,1.787],[13.055,19.006,13.891,20.692,.36,.984],[12,21,13.055,19.006,.945,.395],[12,19.2,12,21,.394,.945],[10.109,20.692,12,19.2,.715,.394],[10.109,20.692,10.659,18.863,.715,.428],[10.659,18.863,8.462,19.832,.428,.809],[8.462,19.832,9.741,17.97,.809,.525],[6.307,16.84,9.602,15.677,1.65,.812],[6,14.9,9.602,15.677,.194,1.012],[6.273,13.033,9.602,15.677,2.068,1.012],[10.113,14.812,6.273,13.033,1.217,2.068],[10.113,14.812,6.988,11.438,1.217,2.2],[12,3.5,13.525,7.088,4.697,5.571],[12,3.5,13.856,9.589,4.697,3.017],[12,3.5,13.7,12.4,4.648,26.765],[10.792,14.042,6.988,11.438,1.339,2.2],[13.7,12.4,13.959,14.633,.819,1.333],[13.1,13.7,13.7,12.4,0,.819],[11.5,13.3,13.7,12.4,.681,.537],[10.792,14.042,7.983,10.048,1.339,2.328],[11.5,13.3,7.983,10.048,1.438,2.328],[13.913,18.475,15.538,19.832,.409,1.115],[13.891,20.692,13.913,18.475,.984,.409],[7.162,18.516,9.741,17.97,.977,.525],[7.162,18.516,9.4,16.7,.977,.677],[6.307,16.84,9.4,16.7,1.65,.677],[11.5,13.3,9.1,8.8,1.438,1.129],[13.7,12.4,9.1,8.8,2.046,1.129],[10.054,7.77,13.7,12.4,.079,2.285],[10.927,6.683,13.7,12.4,.237,3.126],[11.613,5.481,13.7,12.4,.475,5.451],[12.006,4.106,13.7,12.4,.961,15.892],[12,2.5,13.7,12.4,2.974,26.765]]},box:{strokes:[{width:1.7,cap:false,closed:true,points:[3.8,7.8,12,4,20.2,7.8,20.2,16.4,12,20,3.8,16.4]},{width:1.7,cap:false,closed:false,points:[3.8,7.8,12,11.6,20.2,7.8]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20]}],boxes:[],triangles:[],seams:[]},cart:{strokes:[{width:1.8,cap:true,closed:false,points:[2.8,4,5.4,4,7.7,14.6,8.203,15.401,9.1,15.7,17.3,15.7,18.197,15.401,18.7,14.6,20.4,7.6,6.3,7.6]}],boxes:[{x:8.3,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8},{x:15.8,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8}],triangles:[],seams:[]},minus:{strokes:[{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},plus:{strokes:[{width:2.2,cap:true,closed:false,points:[12,6,12,18]},{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},chev:{strokes:[{width:2,cap:true,closed:false,points:[9,5.5,15.5,12,9,18.5]}],boxes:[],triangles:[],seams:[]},pulse:{strokes:[{width:1.8,cap:true,closed:false,points:[3,12.5,6.8,12.5,9.2,6.9,13.4,17.5,15.8,12.5,21,12.5]}],boxes:[],triangles:[],seams:[]},file:{strokes:[{width:1.7,cap:true,closed:true,points:[7,3.5,14.2,3.5,18.5,7.8,18.5,20,18.324,20.424,17.9,20.6,7,20.6,6.576,20.424,6.4,20,6.4,4.1,6.576,3.676,7,3.5]},{width:1.7,cap:true,closed:false,points:[14,3.6,14,8,18.4,8]},{width:1.7,cap:true,closed:false,points:[9.4,12.4,14.6,12.4]},{width:1.7,cap:true,closed:false,points:[9.4,15.8,14.6,15.8]}],boxes:[],triangles:[],seams:[]},kit:{strokes:[{width:1.7,cap:false,closed:true,points:[4,7.6,12,3.6,20,7.6,20,16.4,12,20.4,4,16.4]},{width:1.7,cap:false,closed:false,points:[4,7.6,12,11.6,20,7.6]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20.4]}],boxes:[],triangles:[],seams:[]},dna:{strokes:[{width:1.7,cap:true,closed:false,points:[7,3.5,7.28,4.645,8.04,5.594,9.16,6.394,10.52,7.097,12,7.75,13.48,8.403,14.84,9.106,15.96,9.906,16.72,10.855,17,12,16.72,13.145,15.96,14.094,14.84,14.894,13.48,15.597,12,16.25,10.52,16.903,9.16,17.606,8.04,18.406,7.28,19.355,7,20.5]},{width:1.7,cap:true,closed:false,points:[17,3.5,16.72,4.645,15.96,5.594,14.84,6.394,13.48,7.097,12,7.75,10.52,8.403,9.16,9.106,8.04,9.906,7.28,10.855,7,12,7.28,13.145,8.04,14.094,9.16,14.894,10.52,15.597,12,16.25,13.48,16.903,14.84,17.606,15.96,18.406,16.72,19.355,17,20.5]},{width:1.7,cap:true,closed:false,points:[8.6,6.3,15.4,6.3]},{width:1.7,cap:true,closed:false,points:[8.6,17.7,15.4,17.7]},{width:1.7,cap:true,closed:false,points:[10.4,9.6,13.6,9.6]},{width:1.7,cap:true,closed:false,points:[10.4,14.4,13.6,14.4]}],boxes:[],triangles:[],seams:[]},heart:{strokes:[{width:1.8,cap:false,closed:true,points:[12,20.2,11.739,20.035,11.041,19.559,10.03,18.804,8.831,17.799,7.569,16.575,6.37,15.163,5.359,13.593,4.661,11.895,4.4,10.1,4.833,8.454,5.87,7.105,7.349,6.264,9.039,6.062,10.675,6.532,12,7.6,13.325,6.532,14.961,6.062,16.651,6.264,18.13,7.105,19.167,8.454,19.6,10.1,19.339,11.895,18.641,13.593,17.63,15.163,16.431,16.575,15.169,17.799,13.97,18.804,12.959,19.559,12.261,20.035,12,20.2]}],boxes:[],triangles:[],seams:[]},bottle:{strokes:[{width:1.7,cap:false,closed:true,points:[7.2,6.2,16.8,6.2,17.507,6.493,17.8,7.2,17.8,19.5,17.572,20.35,16.95,20.972,16.1,21.2,7.9,21.2,7.05,20.972,6.428,20.35,6.2,19.5,6.2,7.2,6.493,6.493,7.2,6.2]},{width:1.7,cap:false,closed:true,points:[9,11,15,11,15,16,9,16]}],boxes:[{x:8,y:2.8,w:8,h:3.4,radius:1,width:1.7}],triangles:[],seams:[]},harness:{strokes:[{width:1.5,cap:true,closed:false,points:[7.5,4.5,7.728,6.82,8.364,8.708,9.336,10.116,10.572,10.996,12,11.3,13.428,10.996,14.664,10.116,15.636,8.708,16.272,6.82,16.5,4.5]},{width:1.5,cap:true,closed:true,points:[5,12.6,19,12.6,19,17.2,18.692,18.35,17.85,19.192,16.7,19.5,7.3,19.5,6.15,19.192,5.308,18.35,5,17.2]},{width:1.5,cap:true,closed:false,points:[8.2,15.3,15.8,15.3]}],boxes:[{x:10.7,y:8.9,w:2.6,h:2.6,radius:1.3,width:1.5}],triangles:[],seams:[]},ramp:{strokes:[{width:1.5,cap:true,closed:false,points:[2.5,19.5,21.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,19.5,3.5,16.5,8,16.5,8,13.5,12.5,13.5,12.5,10.5,17,10.5,17,7.5,20.5,7.5,20.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,16.5,20.5,7.5],opacity:.35}],boxes:[],triangles:[],seams:[]}});var Bl=24,Ol=16,Dl=.8,El=e=>Math.round(e*Ol);function Nl(e,t,r,n,i,o){let l=e-r/2,a=t-n/2,s=Math.round(l),d=Math.round(a);return{position:"absolute",left:s,top:d,width:r,height:n,transform:[{translateX:l-s},{translateY:a-d},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/Ol}]}}function Vl(e,t,r){for(let n of e.strokes){let e=n.width*t,i=n.points,o=i.length/2,l=n.closed?o:o-1;for(let a=0;a<l;a+=1){let l=(a+1)%o,s=(i[a*2]??0)*t,d=(i[a*2+1]??0)*t,c=(i[l*2]??0)*t-s,u=(i[l*2+1]??0)*t-d,p=Math.hypot(c,u);if(p===0&&!(o===2&&n.cap))continue;let h=p===0?1:c/p,g=p===0?0:u/p,f=n.closed||a>0||n.cap?e/2:0,m=n.closed||l!==o-1||n.cap?e/2:0,b=(p+m-f)/2;r.push({paint:"backgroundColor",style:{...Nl(s+h*b,d+g*b,El(p+f+m),El(e),h,g),borderTopLeftRadius:f>0?El(e)/2:0,borderBottomLeftRadius:f>0?El(e)/2:0,borderTopRightRadius:m>0?El(e)/2:0,borderBottomRightRadius:m>0?El(e)/2:0,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}}function ql(e,t,r){for(let n of e.boxes){let e=(n.w+n.width)*t,i=(n.h+n.width)*t;r.push({paint:"borderColor",style:{...Nl((n.x-n.width/2)*t+e/2,(n.y-n.width/2)*t+i/2,El(e),El(i),1,0),borderWidth:El(n.width*t),borderRadius:(n.radius+n.width/2)*t*Ol,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}function Ul(e,t,r){for(let n of e.triangles){let e=[0,1,2].map(e=>[(n[e*2]??0)*t,(n[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let r=e[t]??[0,0],n=e[(t+1)%3]??[0,0],l=Math.hypot(n[0]-r[0],n[1]-r[1]);l>o&&(o=l,i=t)}if(o<=0)continue;let l=e[i]??[0,0],a=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],d=(a[0]-l[0])/o,c=(a[1]-l[1])/o,u=(s[0]-l[0])*d+(s[1]-l[1])*c,p=(s[0]-l[0])*-c+(s[1]-l[1])*d,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=El(u),b=El(o)-m,y=El(h);r.push({paint:g?"borderBottomColor":"borderTopColor",style:{...Nl(l[0]+d*(o/2)-c*f,l[1]+c*(o/2)+d*f,m+b,y,d,c),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:y}:{borderTopWidth:y}}})}for(let n of e.seams){let e=(n[0]??0)*t,i=(n[1]??0)*t,o=(n[2]??0)*t-e,l=(n[3]??0)*t-i,a=Math.hypot(o,l),s=Dl*(n[4]??0),d=Dl*(n[5]??0),c=a-s-d;if(a===0||c<=0)continue;let u=s+c/2;r.push({paint:"backgroundColor",style:Nl(e+o/a*u,i+l/a*u,El(c),El(Dl),o/a,l/a)})}}var Gl=/* @__PURE__ */new Map;function Ml(e,t){let r=`${e}:${t}`,n=Gl.get(r);if(n!==void 0)return n;let i=Pl[e],o=[],l=t/Bl;return ql(i,l,o),Vl(i,l,o),Ul(i,l,o),Gl.set(r,o),o}function FocusIcon({name:e,size:t=18,color:r}){let n=Pl[e]===void 0?[]:Ml(e,t);/* @__PURE__ */
133
- return A(g,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:`health-plan-icon-${e}`,children:/* @__PURE__ */A(g,{style:{width:t,height:t},children:n.map((e,t)=>/* @__PURE__ */A(g,{style:[e.style,{[e.paint]:r}]},t))})})}var Kl={pointerEvents:"none",accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};function ShopV3Icon({name:e,size:t,color:r}){let n=Math.max(1.5,Math.round(t*1.8/24*2)/2),i=e=>Math.round(t*e);switch(e){case"check":case"plus":case"minus":case"cart":case"box":/* @__PURE__ */
126
+ /* @__PURE__ */A(OutlineButton,{k:"btnOutline",action:{label:i,onPress:c}})]})]})]})]})})}var El=28;function Dot({state:e}){let t=kr();return e==="done"?/* @__PURE__ */A(f,{style:[t.v("dotDone"),{alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */A(PartIcon,{name:"check",k:"dotDoneIcon",inkKey:"dotDone"})}):e==="now"?/* @__PURE__ */A(f,{style:[t.v("dotNow"),{alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */A(f,{style:t.v("dotNowCore")})}):/* @__PURE__ */A(f,{style:t.v("dotNext")})}function Tracker({copy:e,steps:t}){let r=kr();/* @__PURE__ */
127
+ return A(f,{children:t.map((n,i)=>{let o=i===t.length-1,l=r.v(o?"trackerLiLast":"trackerLi"),a=n.state==="next"?"trackerTitleNext":"trackerTitle";/* @__PURE__ */
128
+ return W(f,{style:[l,{flexDirection:"row",alignItems:"flex-start",rowGap:0,columnGap:0}],accessible:true,accessibilityLabel:[n.title,n.state==="now"?e.now:null,n.when,n.text].filter(Boolean).join(", "),children:[o?null:/* @__PURE__ */A(f,{style:r.v(n.state==="done"?"trackerLineDone":"trackerLine")}),
129
+ /* @__PURE__ */A(f,{style:{width:El,marginRight:l.columnGap},children:/* @__PURE__ */A(Dot,{state:n.state})}),
130
+ /* @__PURE__ */W(f,{style:{flex:1,minWidth:0},children:[
131
+ /* @__PURE__ */W(f,{style:[r.v(a),{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}],children:[
132
+ /* @__PURE__ */A(T,{k:a,bare:true,children:n.title}),n.state==="now"?/* @__PURE__ */A(Pill2,{pill:{label:e.now,tone:"stable"}}):null]}),n.when?/* @__PURE__ */A(T,{k:"trackerWhen",children:n.when}):null,n.text?/* @__PURE__ */A(T,{k:"trackerText",children:n.text}):null]})]},n.key)})})}var Nl=2e3;function Vl(e,t,r=true){let i=o({reread:t,enabled:r});i.current={reread:t,enabled:r},n(()=>{let t=Number.NEGATIVE_INFINITY;return e(()=>{if(!i.current.enabled)return;let e=Date.now();e-t<Nl||(t=e,i.current.reread())})},[e])}var ql=e=>{let t=I.currentState==="background",r=I.addEventListener("change",r=>{r==="background"?t=true:r==="active"&&t&&(t=false,e())});return()=>r.remove()};var Ul=20;function Gl(){let{client:e,copy:t}=De(),r=Ee("v3-orders",()=>e.orders({limit:Ul})),[i,s]=l(null),[d,c]=l(false),[u,p]=l(null),h=r.value;n(()=>s(null),[h]),Vl(ql,r.reread,i===null);let g=[...h?.orders??[],...i?.orders??[]],f=i?i.cursor:h?.nextCursor??null,m=g.filter(e=>!e.items).map(e=>e.orderId),b=Ee(m.length>0?`v3-order-items:${m.join(",")}`:null,async()=>{let t=await Promise.all(m.map(t=>e.order(t)));return le(new Map(m.map((e,r)=>[e,t[r].ok?t[r].value.lines.map(e=>({title:e.title,quantity:e.quantity,rx:e.requiresRx,imageUrl:e.imageUrl??null})):[]])))}),y=e=>e.items?e.items.map(e=>({title:e.title,quantity:e.quantity,rx:false,imageUrl:e.imageUrl??null})):b.value?.get(e.orderId)??null,k=o(false),w=a(()=>{!f||k.current||(k.current=true,c(true),p(null),e.orders({limit:Ul,cursor:f}).then(e=>{k.current=false,c(false),e.ok?s(t=>({orders:[...t?.orders??[],...e.value.orders],cursor:e.value.nextCursor})):p(He(t,e.error))}))},[e,t,f]);return{first:r,orders:g,named:y,hasMore:f!==null,loadMore:w,moreBusy:d,moreError:u}}function Ml(e,t){let{client:r,copy:i,v3:o,payments:a}=De(),s=je(e);Vl(ql,s.reread);let d=Ke(),[c,u]=l(()=>zt(r,e));n(()=>Wt(r,e),[r,e]);let[p,h]=l(false),g=Je(t=>r.cancelOrder(e,{idempotencyKey:t.key("cancel"),reasonCode:"customer_request"})),f=Je(async t=>{let n=t.key("pay");for(let i=0;i<3;i+=1){let i=await r.payOrder(e,{idempotencyKey:n});if(!i.ok)return ae(i.error);if(i.value.outcome==="authorized")return le({kind:"confirmed",orderIds:[e]});if(!a||!i.value.payerAction)return le({kind:"needsPayerAction",orderIds:[e]});let o=await a.handleNextAction(i.value.payerAction,{orderId:e});if(!o.ok)return le(o.closed?{kind:"payerActionClosed",orderIds:[e]}:{kind:"payerActionFailed",orderIds:[e],message:o.message});n=t.next("pay")}return le({kind:"needsPayerAction",orderIds:[e]})}),m=s.phase==="ready"&&s.value?s.value:null,b=f.busy||g.busy,y=()=>{u(null),f.run().then(e=>{e&&(u(e.ok?It(i,e.value):He(i,e.error)),s.refresh())})},k=()=>{g.run().then(e=>{if(!e)return;if(!e.ok){u(He(i,e.error)),h(false),s.reread();return}h(false),g.reset();let t=e.value.outcome;u(t==="requested"?o.cancelRequested:t==="not_cancellable"?i.refusal.operation_not_supported??i.actionFailed:null),s.refresh()})},w=[],v=null,x,S=null,I=c;if(m){let e=m.subtotal??m.lines.reduce((e,t)=>e+t.unitPrice*t.quantity,0),n=m.discount??m.lines.reduce((e,t)=>e+t.discount,0),l=m.tax??m.lines.reduce((e,t)=>e+t.tax,0)+m.shippingTax,a=m.refunds.reduce((e,t)=>t.state==="succeeded"?e+t.amount:e,0);w=[{k:o.subtotal,v:we(e)},...n>0?[{k:o.discount,v:we(-n)}]:[],{k:i.shipping,v:m.shipping===0?i.free:we(m.shipping)},{k:i.tax,v:we(l)},{k:i.total,v:we(m.summary.total),total:true}],v=a>0?{k:o.refund,v:we(a)}:null,x=m.paymentMethodId&&$t(m)?(d.value??[]).find(e=>e.paymentMethodId===m.paymentMethodId):void 0;let s=m.lines.filter(e=>!e.requiresRx),u=m.lines.find(e=>e.requiresRx)??null;S=ar(m.summary.status)?s.length>0?()=>{for(let e of s)J(r,{offerId:e.offerId,title:e.title,unitPrice:e.unitPrice,requiresRx:false,quantity:e.quantity,...e.petId?{petId:e.petId}:{},...e.imageUrl?{imageUrl:e.imageUrl}:{}});t({name:"cart"})}:u?()=>t({name:"product",offerId:u.offerId,...u.petId?{petId:u.petId}:{}}):null:null,(c===i.cardStepClosed||c===i.cardStepFailed)&&_t(m)&&(I=null)}return{order:s,o:m,ref:m?.summary.referenceNumber??null,line:I,asking:p,setAsking:h,pay:f,cancel:g,busy:b,onPay:y,onCancel:k,sum:w,refundRow:v,paidCard:x,buyAgain:S}}function Kl(e,t){let r=e.scaleCaps[t];return r>0?r:void 0}function Text3({tier:e,variant:r,...n}){let i=useEverfurTheme(),o=r===void 0?void 0:i.type.roles[r],l=Kl(i.type,e??o?.tier??"content"),a=r===void 0?n:{...n,style:[{...textRole(i,r),color:i.color.text.primary,flexShrink:1},n.style]};return t(y,l===void 0?a:{maxFontSizeMultiplier:l,...a})}var jl=e(function(e,r){return t(g,{...e,...r===null?{}:{ref:r}})});var Zl=/* @__PURE__ */Object.freeze({shield:{strokes:[{width:1.8,cap:true,closed:true,points:[12,3,19,6,19,12,18.759,14.125,18.074,16,17,17.625,15.593,19,13.907,20.125,12,21,10.093,20.125,8.407,19,7,17.625,5.926,16,5.241,14.125,5,12,5,6]},{width:1.8,cap:true,closed:false,points:[9,12,11,14,15,10]}],boxes:[],triangles:[],seams:[]},arrow:{strokes:[{width:2,cap:true,closed:false,points:[4.5,12,19,12]},{width:2,cap:true,closed:false,points:[13.5,6.5,19,12,13.5,17.5]}],boxes:[],triangles:[],seams:[]},check:{strokes:[{width:2.4,cap:true,closed:false,points:[5,12.6,9.4,17,19,7.4]}],boxes:[],triangles:[],seams:[]},star:{strokes:[],boxes:[],triangles:[[12,16.9,6.8,19.6,7.8,13.8],[16.2,13.8,17.2,19.6,12,16.9],[7.8,13.8,3.5,9.7,9.4,8.8],[14.6,8.8,20.5,9.7,16.2,13.8],[9.4,8.8,12,3.5,14.6,8.8],[16.2,13.8,12,16.9,7.8,13.8],[14.6,8.8,16.2,13.8,7.8,13.8],[14.6,8.8,7.8,13.8,9.4,8.8]],seams:[[12,16.9,7.8,13.8,.245,.677],[12,16.9,16.2,13.8,.245,.677],[7.8,13.8,9.4,8.8,.69,.248],[14.6,8.8,16.2,13.8,.248,.243],[14.6,8.8,9.4,8.8,.68,.245],[16.2,13.8,7.8,13.8,.677,.68],[14.6,8.8,7.8,13.8,.68,.69]]},truck:{strokes:[{width:1.7,cap:false,closed:true,points:[2.8,6.5,14.2,6.5,14.2,16,2.8,16]},{width:1.7,cap:false,closed:false,points:[14.2,9.5,17.8,9.5,21.2,12.9,21.2,16,14.2,16]}],boxes:[{x:5,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7},{x:15.4,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7}],triangles:[],seams:[]},refresh:{strokes:[{width:1.7,cap:true,closed:false,points:[4,12,4.343,14.363,5.368,16.52,6.985,18.278,9.048,19.48,11.374,20.021,13.756,19.85,15.981,18.984,17.852,17.5,19.201,15.53,19.909,13.249,19.912,10.861,19.21,8.578,17.865,6.605,15.998,5.116,13.775,4.245,11.393,4.068,9.066,4.602,7,5.8]},{width:1.7,cap:true,closed:false,points:[4,4,4,8,8,8]}],boxes:[],triangles:[],seams:[]},card:{strokes:[{width:1.7,cap:true,closed:false,points:[3,9.5,21,9.5]},{width:1.7,cap:true,closed:false,points:[6.5,15,10.5,15]}],boxes:[{x:3,y:5.5,w:18,h:13,radius:2.2,width:1.7}],triangles:[],seams:[]},alert:{strokes:[{width:1.9,cap:true,closed:true,points:[12,3.5,21.5,20,2.5,20]},{width:1.9,cap:true,closed:false,points:[12,10,12,14.5]},{width:1.9,cap:true,closed:false,points:[12,17.2,12.01,17.2]}],boxes:[],triangles:[],seams:[]},x:{strokes:[{width:2,cap:true,closed:false,points:[6.5,6.5,17.5,17.5]},{width:2,cap:true,closed:false,points:[17.5,6.5,6.5,17.5]}],boxes:[],triangles:[],seams:[]},chat:{strokes:[{width:1.7,cap:false,closed:true,points:[5,5.2,19,5.2,19.8,5.414,20.386,6,20.6,6.8,20.6,15.4,20.386,16.2,19.8,16.786,19,17,10.3,17,5.5,20.6,5.5,17,5,17,4.2,16.786,3.614,16.2,3.4,15.4,3.4,6.8,3.614,6,4.2,5.414,5,5.2]}],boxes:[],triangles:[],seams:[]},repeat:{strokes:[{width:1.8,cap:true,closed:false,points:[4.5,11,4.824,8.824,5.766,6.837,7.244,5.208,9.131,4.077,11.264,3.543,13.461,3.65,15.533,4.391,17.3,5.7,19.5,8]},{width:1.8,cap:true,closed:false,points:[19.5,3.5,19.5,8,15,8]},{width:1.8,cap:true,closed:false,points:[19.5,13,19.176,15.176,18.234,17.163,16.756,18.792,14.869,19.923,12.736,20.457,10.539,20.35,8.467,19.609,6.7,18.3,4.5,16]},{width:1.8,cap:true,closed:false,points:[4.5,20.5,4.5,16,9,16]}],boxes:[],triangles:[],seams:[]},calendar:{strokes:[{width:1.8,cap:true,closed:false,points:[4,10,20,10]},{width:1.8,cap:true,closed:false,points:[8.5,3.5,8.5,7.5]},{width:1.8,cap:true,closed:false,points:[15.5,3.5,15.5,7.5]}],boxes:[{x:4,y:5.5,w:16,h:15,radius:2.5,width:1.8}],triangles:[],seams:[]},flame:{strokes:[],boxes:[],triangles:[[12.15,14.513,13.1,15.2,13.1,13.7],[11.5,13.3,12.15,14.513,13.1,13.7],[16.874,10.907,15.7,9.3,15.381,10.659],[14.7,16.7,16.838,18.516,17.693,16.84],[14.7,16.7,14.489,17.681,16.838,18.516],[18,14.9,14.507,15.633,17.693,16.84],[16.874,10.907,15.381,10.659,14.685,11.707],[17.693,12.759,16.874,10.907,14.685,11.707],[15.538,19.832,16.838,18.516,14.489,17.681],[14.685,11.707,13.959,14.633,17.693,12.759],[17.693,12.759,13.959,14.633,18,14.9],[13.891,20.692,13.055,19.006,12,21],[12,21,12,19.2,10.109,20.692],[8.462,19.832,10.109,20.692,10.659,18.863],[10.659,18.863,9.741,17.97,8.462,19.832],[6.307,16.84,9.602,15.677,6,14.9],[6.273,13.033,6,14.9,9.602,15.677],[9.602,15.677,10.113,14.812,6.273,13.033],[6.988,11.438,6.273,13.033,10.113,14.812],[13.525,7.088,12.856,5.017,12,3.5],[13.856,9.589,13.525,7.088,12,3.5],[13.7,12.4,13.856,9.589,12,3.5],[10.113,14.812,10.792,14.042,6.988,11.438],[14.7,16.7,17.693,16.84,14.507,15.633],[13.7,12.4,13.959,14.633,14.685,11.707],[14.507,15.633,18,14.9,13.959,14.633],[13.1,13.7,13.959,14.633,13.7,12.4],[11.5,13.3,13.1,13.7,13.7,12.4],[7.983,10.048,6.988,11.438,10.792,14.042],[10.792,14.042,11.5,13.3,7.983,10.048],[14.489,17.681,13.913,18.475,15.538,19.832],[13.891,20.692,15.538,19.832,13.913,18.475],[13.891,20.692,13.913,18.475,13.055,19.006],[12,19.2,12,21,13.055,19.006],[10.659,18.863,10.109,20.692,12,19.2],[7.162,18.516,8.462,19.832,9.741,17.97],[9.741,17.97,9.4,16.7,7.162,18.516],[6.307,16.84,7.162,18.516,9.4,16.7],[6.307,16.84,9.4,16.7,9.602,15.677],[9.1,8.8,7.983,10.048,11.5,13.3],[11.5,13.3,13.7,12.4,9.1,8.8],[10.054,7.77,9.1,8.8,13.7,12.4],[10.927,6.683,10.054,7.77,13.7,12.4],[11.613,5.481,10.927,6.683,13.7,12.4],[12.006,4.106,11.613,5.481,13.7,12.4],[12,2.5,12.006,4.106,13.7,12.4],[12,2.5,13.7,12.4,12,3.5]],seams:[[12.15,14.513,13.1,13.7,.121,.428],[11.5,13.3,13.1,13.7,.681,.356],[15.381,10.659,16.874,10.907,.033,.883],[14.7,16.7,16.838,18.516,.648,1.318],[14.7,16.7,17.693,16.84,.648,1.533],[14.489,17.681,16.838,18.516,.51,1.318],[14.507,15.633,18,14.9,.782,1.787],[14.507,15.633,17.693,16.84,.782,1.533],[14.685,11.707,16.874,10.907,.68,.883],[14.685,11.707,17.693,12.759,.61,.484],[14.489,17.681,15.538,19.832,.51,1.115],[13.959,14.633,14.685,11.707,1.333,.576],[13.959,14.633,17.693,12.759,.851,.484],[13.959,14.633,18,14.9,.851,1.787],[13.055,19.006,13.891,20.692,.36,.984],[12,21,13.055,19.006,.945,.395],[12,19.2,12,21,.394,.945],[10.109,20.692,12,19.2,.715,.394],[10.109,20.692,10.659,18.863,.715,.428],[10.659,18.863,8.462,19.832,.428,.809],[8.462,19.832,9.741,17.97,.809,.525],[6.307,16.84,9.602,15.677,1.65,.812],[6,14.9,9.602,15.677,.194,1.012],[6.273,13.033,9.602,15.677,2.068,1.012],[10.113,14.812,6.273,13.033,1.217,2.068],[10.113,14.812,6.988,11.438,1.217,2.2],[12,3.5,13.525,7.088,4.697,5.571],[12,3.5,13.856,9.589,4.697,3.017],[12,3.5,13.7,12.4,4.648,26.765],[10.792,14.042,6.988,11.438,1.339,2.2],[13.7,12.4,13.959,14.633,.819,1.333],[13.1,13.7,13.7,12.4,0,.819],[11.5,13.3,13.7,12.4,.681,.537],[10.792,14.042,7.983,10.048,1.339,2.328],[11.5,13.3,7.983,10.048,1.438,2.328],[13.913,18.475,15.538,19.832,.409,1.115],[13.891,20.692,13.913,18.475,.984,.409],[7.162,18.516,9.741,17.97,.977,.525],[7.162,18.516,9.4,16.7,.977,.677],[6.307,16.84,9.4,16.7,1.65,.677],[11.5,13.3,9.1,8.8,1.438,1.129],[13.7,12.4,9.1,8.8,2.046,1.129],[10.054,7.77,13.7,12.4,.079,2.285],[10.927,6.683,13.7,12.4,.237,3.126],[11.613,5.481,13.7,12.4,.475,5.451],[12.006,4.106,13.7,12.4,.961,15.892],[12,2.5,13.7,12.4,2.974,26.765]]},box:{strokes:[{width:1.7,cap:false,closed:true,points:[3.8,7.8,12,4,20.2,7.8,20.2,16.4,12,20,3.8,16.4]},{width:1.7,cap:false,closed:false,points:[3.8,7.8,12,11.6,20.2,7.8]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20]}],boxes:[],triangles:[],seams:[]},cart:{strokes:[{width:1.8,cap:true,closed:false,points:[2.8,4,5.4,4,7.7,14.6,8.203,15.401,9.1,15.7,17.3,15.7,18.197,15.401,18.7,14.6,20.4,7.6,6.3,7.6]}],boxes:[{x:8.3,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8},{x:15.8,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8}],triangles:[],seams:[]},minus:{strokes:[{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},plus:{strokes:[{width:2.2,cap:true,closed:false,points:[12,6,12,18]},{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},chev:{strokes:[{width:2,cap:true,closed:false,points:[9,5.5,15.5,12,9,18.5]}],boxes:[],triangles:[],seams:[]},pulse:{strokes:[{width:1.8,cap:true,closed:false,points:[3,12.5,6.8,12.5,9.2,6.9,13.4,17.5,15.8,12.5,21,12.5]}],boxes:[],triangles:[],seams:[]},file:{strokes:[{width:1.7,cap:true,closed:true,points:[7,3.5,14.2,3.5,18.5,7.8,18.5,20,18.324,20.424,17.9,20.6,7,20.6,6.576,20.424,6.4,20,6.4,4.1,6.576,3.676,7,3.5]},{width:1.7,cap:true,closed:false,points:[14,3.6,14,8,18.4,8]},{width:1.7,cap:true,closed:false,points:[9.4,12.4,14.6,12.4]},{width:1.7,cap:true,closed:false,points:[9.4,15.8,14.6,15.8]}],boxes:[],triangles:[],seams:[]},kit:{strokes:[{width:1.7,cap:false,closed:true,points:[4,7.6,12,3.6,20,7.6,20,16.4,12,20.4,4,16.4]},{width:1.7,cap:false,closed:false,points:[4,7.6,12,11.6,20,7.6]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20.4]}],boxes:[],triangles:[],seams:[]},dna:{strokes:[{width:1.7,cap:true,closed:false,points:[7,3.5,7.28,4.645,8.04,5.594,9.16,6.394,10.52,7.097,12,7.75,13.48,8.403,14.84,9.106,15.96,9.906,16.72,10.855,17,12,16.72,13.145,15.96,14.094,14.84,14.894,13.48,15.597,12,16.25,10.52,16.903,9.16,17.606,8.04,18.406,7.28,19.355,7,20.5]},{width:1.7,cap:true,closed:false,points:[17,3.5,16.72,4.645,15.96,5.594,14.84,6.394,13.48,7.097,12,7.75,10.52,8.403,9.16,9.106,8.04,9.906,7.28,10.855,7,12,7.28,13.145,8.04,14.094,9.16,14.894,10.52,15.597,12,16.25,13.48,16.903,14.84,17.606,15.96,18.406,16.72,19.355,17,20.5]},{width:1.7,cap:true,closed:false,points:[8.6,6.3,15.4,6.3]},{width:1.7,cap:true,closed:false,points:[8.6,17.7,15.4,17.7]},{width:1.7,cap:true,closed:false,points:[10.4,9.6,13.6,9.6]},{width:1.7,cap:true,closed:false,points:[10.4,14.4,13.6,14.4]}],boxes:[],triangles:[],seams:[]},heart:{strokes:[{width:1.8,cap:false,closed:true,points:[12,20.2,11.739,20.035,11.041,19.559,10.03,18.804,8.831,17.799,7.569,16.575,6.37,15.163,5.359,13.593,4.661,11.895,4.4,10.1,4.833,8.454,5.87,7.105,7.349,6.264,9.039,6.062,10.675,6.532,12,7.6,13.325,6.532,14.961,6.062,16.651,6.264,18.13,7.105,19.167,8.454,19.6,10.1,19.339,11.895,18.641,13.593,17.63,15.163,16.431,16.575,15.169,17.799,13.97,18.804,12.959,19.559,12.261,20.035,12,20.2]}],boxes:[],triangles:[],seams:[]},bottle:{strokes:[{width:1.7,cap:false,closed:true,points:[7.2,6.2,16.8,6.2,17.507,6.493,17.8,7.2,17.8,19.5,17.572,20.35,16.95,20.972,16.1,21.2,7.9,21.2,7.05,20.972,6.428,20.35,6.2,19.5,6.2,7.2,6.493,6.493,7.2,6.2]},{width:1.7,cap:false,closed:true,points:[9,11,15,11,15,16,9,16]}],boxes:[{x:8,y:2.8,w:8,h:3.4,radius:1,width:1.7}],triangles:[],seams:[]},harness:{strokes:[{width:1.5,cap:true,closed:false,points:[7.5,4.5,7.728,6.82,8.364,8.708,9.336,10.116,10.572,10.996,12,11.3,13.428,10.996,14.664,10.116,15.636,8.708,16.272,6.82,16.5,4.5]},{width:1.5,cap:true,closed:true,points:[5,12.6,19,12.6,19,17.2,18.692,18.35,17.85,19.192,16.7,19.5,7.3,19.5,6.15,19.192,5.308,18.35,5,17.2]},{width:1.5,cap:true,closed:false,points:[8.2,15.3,15.8,15.3]}],boxes:[{x:10.7,y:8.9,w:2.6,h:2.6,radius:1.3,width:1.5}],triangles:[],seams:[]},ramp:{strokes:[{width:1.5,cap:true,closed:false,points:[2.5,19.5,21.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,19.5,3.5,16.5,8,16.5,8,13.5,12.5,13.5,12.5,10.5,17,10.5,17,7.5,20.5,7.5,20.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,16.5,20.5,7.5],opacity:.35}],boxes:[],triangles:[],seams:[]}});var Yl=24,Jl=16,Xl=.8,Ql=e=>Math.round(e*Jl);function _l(e,t,r,n,i,o){let l=e-r/2,a=t-n/2,s=Math.round(l),d=Math.round(a);return{position:"absolute",left:s,top:d,width:r,height:n,transform:[{translateX:l-s},{translateY:a-d},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/Jl}]}}function $l(e,t,r){for(let n of e.strokes){let e=n.width*t,i=n.points,o=i.length/2,l=n.closed?o:o-1;for(let a=0;a<l;a+=1){let l=(a+1)%o,s=(i[a*2]??0)*t,d=(i[a*2+1]??0)*t,c=(i[l*2]??0)*t-s,u=(i[l*2+1]??0)*t-d,p=Math.hypot(c,u);if(p===0&&!(o===2&&n.cap))continue;let h=p===0?1:c/p,g=p===0?0:u/p,f=n.closed||a>0||n.cap?e/2:0,m=n.closed||l!==o-1||n.cap?e/2:0,b=(p+m-f)/2;r.push({paint:"backgroundColor",style:{..._l(s+h*b,d+g*b,Ql(p+f+m),Ql(e),h,g),borderTopLeftRadius:f>0?Ql(e)/2:0,borderBottomLeftRadius:f>0?Ql(e)/2:0,borderTopRightRadius:m>0?Ql(e)/2:0,borderBottomRightRadius:m>0?Ql(e)/2:0,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}}function ea(e,t,r){for(let n of e.boxes){let e=(n.w+n.width)*t,i=(n.h+n.width)*t;r.push({paint:"borderColor",style:{..._l((n.x-n.width/2)*t+e/2,(n.y-n.width/2)*t+i/2,Ql(e),Ql(i),1,0),borderWidth:Ql(n.width*t),borderRadius:(n.radius+n.width/2)*t*Jl,...n.opacity===void 0?{}:{opacity:n.opacity}}})}}function ta(e,t,r){for(let n of e.triangles){let e=[0,1,2].map(e=>[(n[e*2]??0)*t,(n[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let r=e[t]??[0,0],n=e[(t+1)%3]??[0,0],l=Math.hypot(n[0]-r[0],n[1]-r[1]);l>o&&(o=l,i=t)}if(o<=0)continue;let l=e[i]??[0,0],a=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],d=(a[0]-l[0])/o,c=(a[1]-l[1])/o,u=(s[0]-l[0])*d+(s[1]-l[1])*c,p=(s[0]-l[0])*-c+(s[1]-l[1])*d,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=Ql(u),b=Ql(o)-m,y=Ql(h);r.push({paint:g?"borderBottomColor":"borderTopColor",style:{..._l(l[0]+d*(o/2)-c*f,l[1]+c*(o/2)+d*f,m+b,y,d,c),width:0,height:0,borderLeftWidth:m,borderRightWidth:b,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:y}:{borderTopWidth:y}}})}for(let n of e.seams){let e=(n[0]??0)*t,i=(n[1]??0)*t,o=(n[2]??0)*t-e,l=(n[3]??0)*t-i,a=Math.hypot(o,l),s=Xl*(n[4]??0),d=Xl*(n[5]??0),c=a-s-d;if(a===0||c<=0)continue;let u=s+c/2;r.push({paint:"backgroundColor",style:_l(e+o/a*u,i+l/a*u,Ql(c),Ql(Xl),o/a,l/a)})}}var ra=/* @__PURE__ */new Map;function na(e,t){let r=`${e}:${t}`,n=ra.get(r);if(n!==void 0)return n;let i=Zl[e],o=[],l=t/Yl;return ea(i,l,o),$l(i,l,o),ta(i,l,o),ra.set(r,o),o}function FocusIcon({name:e,size:t=18,color:r}){let n=Zl[e]===void 0?[]:na(e,t);/* @__PURE__ */
133
+ return A(f,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:`health-plan-icon-${e}`,children:/* @__PURE__ */A(f,{style:{width:t,height:t},children:n.map((e,t)=>/* @__PURE__ */A(f,{style:[e.style,{[e.paint]:r}]},t))})})}var ia={pointerEvents:"none",accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};function ShopV3Icon({name:e,size:t,color:r}){let n=Math.max(1.5,Math.round(t*1.8/24*2)/2),i=e=>Math.round(t*e);switch(e){case"check":case"plus":case"minus":case"cart":case"box":/* @__PURE__ */
134
134
  return A(FocusIcon,{name:e,size:t,color:r});case"close":/* @__PURE__ */
135
135
  return A(FocusIcon,{name:"x",size:t,color:r});case"chev":/* @__PURE__ */
136
136
  return A(FocusIcon,{name:"chev",size:t,color:r});case"rx":/* @__PURE__ */
137
137
  return A(Icon,{name:"pill",size:t,color:r});case"supplement":/* @__PURE__ */
138
138
  return A(Icon,{name:"leaf",size:t,color:r});case"truck":/* @__PURE__ */
139
- return z(g,{style:{width:t,height:t},...Kl,children:[
140
- /* @__PURE__ */A(g,{style:{position:"absolute",left:i(.06),top:i(.26),width:i(.56),height:i(.42),borderWidth:n,borderColor:r,borderRadius:i(.04)}}),
141
- /* @__PURE__ */A(g,{style:{position:"absolute",left:i(.6),top:i(.4),width:i(.32),height:i(.28),borderWidth:n,borderColor:r,borderTopRightRadius:i(.12),borderRadius:i(.04)}}),
142
- /* @__PURE__ */A(g,{style:{position:"absolute",left:i(.16),top:i(.66),width:i(.18),height:i(.18),borderWidth:n,borderColor:r,borderRadius:t,backgroundColor:"transparent"}}),
143
- /* @__PURE__ */A(g,{style:{position:"absolute",left:i(.64),top:i(.66),width:i(.18),height:i(.18),borderWidth:n,borderColor:r,borderRadius:t}})]});case"card":/* @__PURE__ */
144
- return z(g,{style:{width:t,height:t},...Kl,children:[
145
- /* @__PURE__ */A(g,{style:{position:"absolute",left:i(.1),top:i(.22),width:i(.8),height:i(.56),borderWidth:n,borderColor:r,borderRadius:i(.08)}}),
146
- /* @__PURE__ */A(g,{style:{position:"absolute",left:i(.1),top:i(.4),width:i(.8),height:n,backgroundColor:r}})]});case"calendar":/* @__PURE__ */
147
- return z(g,{style:{width:t,height:t},...Kl,children:[
148
- /* @__PURE__ */A(g,{style:{position:"absolute",left:i(.14),top:i(.2),width:i(.72),height:i(.66),borderWidth:n,borderColor:r,borderRadius:i(.08)}}),
149
- /* @__PURE__ */A(g,{style:{position:"absolute",left:i(.14),top:i(.4),width:i(.72),height:n,backgroundColor:r}}),
150
- /* @__PURE__ */A(g,{style:{position:"absolute",left:i(.32),top:i(.1),width:n,height:i(.18),borderRadius:n,backgroundColor:r}}),
151
- /* @__PURE__ */A(g,{style:{position:"absolute",left:i(.66),top:i(.1),width:n,height:i(.18),borderRadius:n,backgroundColor:r}})]});case"pin":/* @__PURE__ */
152
- return z(g,{style:{width:t,height:t},...Kl,children:[
153
- /* @__PURE__ */A(g,{style:{position:"absolute",left:i(.24),top:i(.1),width:i(.52),height:i(.52),borderWidth:n,borderColor:r,borderRadius:t}}),
154
- /* @__PURE__ */A(g,{style:{position:"absolute",left:i(.5)-n/2,top:i(.6),width:n,height:i(.28),borderRadius:n,backgroundColor:r}})]})}}function jl(e){return cr[e]}var Zl=ur.screenTitle.color,Yl=ur.cardLead.color,Jl=ur.screenMeta.color,Xl=jl("card").borderColor,Ql=jl("card").backgroundColor,_l=ur.pillOverdue.color;function $l(){return{ink:Zl,ink2:Yl,ink3:Jl,paper:Ql,tile:jl("ghostBar").backgroundColor,line:Xl,card:Ql,link:Zl,soft:jl("thumb").backgroundColor,onSoft:ur.thumb.color,accent:Zl,onAccent:ur.dotDone.color,wait:jl("pillSoon").backgroundColor,chosen:jl("choiceCurrent").backgroundColor,button:jl("btnInk").backgroundColor,onButton:ur.btnInk.color,riskBg:Ql,riskInk:_l,clearBg:Ql,clearInk:ur.pillClear.color,edge:Xl,rail:jl("trackerLine").backgroundColor,ring:Xl,scrim:jl("sheetBackdrop").backgroundColor,toastInk:ur.btnInk.color}}function ea(e,t,r){let n=t?e?.mono:e?.sans;return n?typeof n=="string"?{fontFamily:n,fontWeight:r}:{fontFamily:r==="700"?n.bold??n.regular:r==="500"?n.medium??n.regular:n.regular}:{fontWeight:r}}function ta(e,t){let{fontWeight:r,...n}=ur[t];return{...n,...ea(e,pr[t].font==="mono",r)}}var ra=e=>{let t=jl(e);return{paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom,paddingLeft:t.paddingLeft}},na=e=>{let t=jl(e);return{borderWidth:t.borderWidth,borderColor:t.borderColor,borderRadius:t.borderRadius}},ia=e=>({width:e,height:e,borderRadius:jl("thumb").borderRadius,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:jl("thumb").backgroundColor});function oa(e){let t=t=>ta(e,t),r={...ra("card"),...na("card"),backgroundColor:Ql},n=jl("thumb").width,i=jl("stack").rowGap;return p.create({page:{flex:1,backgroundColor:Ql},body:{...ra("body"),paddingBottom:jl("breaks").columnGap,gap:i},foot:{...ra("traybar"),gap:jl("traybar").rowGap,backgroundColor:Ql,borderTopWidth:pr.traybar.lineTop?.width??1,borderTopColor:pr.traybar.lineTop?.color??Xl},title:t("screenTitle"),sub2:{...t("screenMeta"),marginTop:jl("titleBlock").rowGap-i},k:{...t("forLabel"),marginTop:jl("forLabel").marginTop,marginBottom:0},card:r,items:{gap:jl("itemsLiMid").paddingTop},item:{flexDirection:"row",alignItems:"flex-start",gap:jl("itemsLiFirst").columnGap},itemImg:ia(n),itemName:t("itemsName"),itemP:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:2,marginTop:jl("itemsMeta").marginTop},itemPrice:t("itemsPrice"),itemSmall:t("itemsMeta"),itemActs:{flexDirection:"row",alignItems:"center",gap:jl("itemsActs").columnGap,marginTop:jl("itemsActs").marginTop},step:{flexDirection:"row",alignItems:"center",height:40,...na("btnRow"),backgroundColor:Ql},stepValue:{...t("btnRowLabel"),width:30,textAlign:"center"},rm:{minHeight:40,justifyContent:"center"},rmText:t("itemsActLink"),fine:t("noteStandalone"),fineC:{...t("legal"),marginTop:14},coFine:t("traybarFine"),empty:{alignItems:"center",gap:8,paddingTop:48,paddingHorizontal:12,paddingBottom:8},emptyTile:{...ia(72),borderRadius:jl("card").borderRadius,marginBottom:8},emptyTitle:{...t("screenTitle"),textAlign:"center"},emptyBody:{...t("cardLead"),textAlign:"center",maxWidth:270},linkText:{...t("cardLink"),textDecorationLine:"underline"},cancelText:t("linkDanger"),doneCheck:{width:76,height:76,borderRadius:38,alignItems:"center",justifyContent:"center",backgroundColor:jl("dotDone").backgroundColor},doneTitle:{...t("screenTitle"),marginTop:20,textAlign:"center"},doneWhen:{...t("cardLink"),marginTop:10,textAlign:"center"},doneWho:{...t("screenMeta"),marginTop:2,textAlign:"center"},next:{alignSelf:"stretch",marginTop:22,...r,paddingVertical:4},nextLi:{flexDirection:"row",alignItems:"center",gap:jl("recRow").columnGap,paddingVertical:jl("recRow").paddingTop},nextIc:ia(36),nextK:t("forLabel"),nextV:{...t("rowsV"),color:Zl,marginTop:1},btn:{minHeight:jl("btnInk").minHeight,paddingHorizontal:jl("btnInk").paddingLeft,...na("btnInk"),alignItems:"center",justifyContent:"center",flexDirection:"row",gap:8,backgroundColor:jl("btnInk").backgroundColor},btnLg:{minHeight:jl("btnInk").minHeight,paddingHorizontal:jl("btnInk").paddingLeft},btnSm:{minHeight:jl("btnSm").minHeight,paddingHorizontal:jl("btnSm").paddingLeft},btnGhost:{backgroundColor:"transparent",...na("btnOutline")},btnText:t("btnInk"),btnTextLg:{fontSize:ur.btnInk.fontSize,lineHeight:ur.btnInk.lineHeight},btnTextSm:{fontSize:ur.btnSm.fontSize,lineHeight:ur.btnSm.lineHeight},btnTextGhost:{color:ur.btnOutline.color},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:jl("sheetBackdrop").backgroundColor},sheet:{maxHeight:"88%",paddingTop:0,paddingHorizontal:jl("sheetBody").paddingLeft,borderTopLeftRadius:jl("sheet").borderTopLeftRadius,borderTopRightRadius:jl("sheet").borderTopRightRadius,backgroundColor:jl("sheet").backgroundColor},grab:{alignSelf:"center",width:jl("sheetGrabBar").width,height:jl("sheetGrabBar").height,borderRadius:jl("sheetGrabBar").borderRadius,backgroundColor:jl("sheetGrabBar").backgroundColor,marginTop:8,marginBottom:8},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingTop:jl("sheetHead").paddingTop,paddingBottom:4},kicker:{...t("forLabel"),flexShrink:1},x:{width:jl("sheetClose").width,height:jl("sheetClose").height,borderRadius:jl("sheetClose").borderRadius,alignItems:"center",justifyContent:"center",backgroundColor:jl("sheetClose").backgroundColor},sheetTitle:{...t("cardTitleInHead"),marginTop:4},co:{gap:i,marginTop:2},coItems:{gap:jl("itemsLiFirst").columnGap},coItem:{flexDirection:"row",alignItems:"center",gap:jl("itemsLiFirst").columnGap},coPic:ia(44),coName:t("itemsName"),coSmall:t("itemsMeta"),coPrice:t("itemsPrice"),coRows:{paddingVertical:2,paddingHorizontal:jl("card").paddingLeft,...na("card"),backgroundColor:Ql},coRowsOnPage:{backgroundColor:Ql},coKey:{...t("sumDt"),width:74},coValue:{...t("sumDd"),textAlign:"left",flex:1,minWidth:0},opts:{gap:jl("choices").rowGap},opt:{flexDirection:"row",alignItems:"center",gap:jl("choice").columnGap,minHeight:48,...ra("choice"),...na("choice"),backgroundColor:jl("choice").backgroundColor},optOn:{...na("choiceCurrent"),backgroundColor:jl("choiceCurrent").backgroundColor},optRadio:{width:jl("radioOff").width,height:jl("radioOff").height,...na("radioOff"),backgroundColor:jl("radioOff").backgroundColor},optRadioOn:{...na("radioOn")},optName:t("choiceTitle"),optSmall:{...t("choiceMeta"),marginTop:jl("choiceMeta").marginTop},every:{flexDirection:"row",gap:4,padding:4,borderRadius:999,borderWidth:1,borderColor:Xl,backgroundColor:Ql},everyOn:{backgroundColor:Zl},everyText:{...t("btnSm"),textAlign:"center"},everyTextOn:{color:Ql},coK:{...t("forLabel"),marginBottom:jl("forLabel").marginBottom},subc:{flexDirection:"row",alignItems:"center",gap:jl("itemsLiFirst").columnGap,...r},subcImg:ia(n),subcName:t("itemsName"),subcSmall:{...t("itemsMeta"),marginTop:2},subcAlert:{...t("itemsMeta"),color:_l,marginTop:2},subcBtn:{minHeight:40,paddingHorizontal:jl("btnSm").paddingLeft,...na("btnSm"),alignItems:"center",justifyContent:"center",backgroundColor:Ql},subcBtnText:t("btnSm"),coProd:{flexDirection:"row",alignItems:"center",gap:jl("itemsLiFirst").columnGap},coProdImg:ia(n),coProdT:t("itemsName"),coProdP:{...t("itemsMeta"),marginTop:2},error:{paddingVertical:0,paddingHorizontal:0,borderRadius:0,backgroundColor:"transparent"},errorText:{...t("noteAfterSum"),color:_l},toast:{paddingVertical:12,paddingHorizontal:16,borderRadius:jl("choice").borderRadius,backgroundColor:Zl},toastText:{...t("cardLead"),color:Ql},ghostLine:{height:jl("ghostBar").height,borderRadius:jl("ghostBar").borderRadius,backgroundColor:jl("ghostBar").backgroundColor},fieldLabel:{...t("fieldLabel"),marginBottom:jl("field").rowGap},field:{...t("fieldInputText"),minHeight:jl("fieldInput").minHeight,paddingHorizontal:jl("fieldInput").paddingLeft,...na("fieldInput"),backgroundColor:jl("fieldInput").backgroundColor},fieldErr:{...t("noteAfterSum"),color:_l,marginTop:6}})}function la(e){let t=nl(e),r=e.color,n=e.brightness==="dark";return{ink:t.ink,ink2:t.ink2,ink3:t.ink3,paper:t.paper,tile:t.tile,line:t.line,card:t.card,link:t.link,soft:r.brandSofter,onSoft:r.brandInk,accent:t.accent,onAccent:t.onAccent,wait:n?r.badgeBgCaution:"#FFF3C9",chosen:n?r.surfaceSubtle:"#FFF7DC",button:t.primary,onButton:t.onPrimary,riskBg:t.riskBg,riskInk:t.riskInk,clearBg:t.clearBg,clearInk:t.clearInk,edge:n?t.line:"#DAD7D1",rail:n?t.line:"#E2DFD9",ring:n?t.line:"#CFCBC4",scrim:n?"rgba(0,0,0,0.6)":"rgba(38,37,35,0.45)",toastInk:n?r.text.primary:"#FFFFFF"}}function aa(e,t){return typeof e=="string"?{fontFamily:e,fontWeight:t==="bold"?"700":t==="medium"?"500":"400"}:{fontFamily:t==="bold"?e.bold??e.regular:t==="medium"?e.medium??e.regular:e.regular}}function sa(e,t,r){let n=r==="mono"||r==="monoBold"?t?.mono:t?.sans;return n?aa(n,r==="mono"?"regular":r==="monoBold"?"bold":r):face(e,r)}function da(e,t,r="partner"){let n=la(e),i=e.brightness==="dark",o=(r,n,i="regular",o=1.35)=>({...sa(e,t,i),fontSize:r,lineHeight:Math.round(r*o),color:n}),l=(r,i)=>({...t?.sans?aa(t.sans,"bold"):headingFace(e,"bold"),fontSize:r,lineHeight:Math.round(r*i),color:n.ink}),a={shadowColor:"#262523",shadowOpacity:i?0:.06,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:i?0:1},s=p.create({page:{flex:1,backgroundColor:n.paper},body:{paddingHorizontal:18,paddingTop:8,paddingBottom:28,gap:12},foot:{paddingTop:12,paddingHorizontal:18,gap:10,backgroundColor:n.paper,borderTopWidth:1,borderTopColor:n.line},grow:{flex:1,minWidth:0},row:{flexDirection:"row",alignItems:"center"},title:l(29,1.08),sub2:{...o(15,n.ink2,"regular",1.45),marginTop:-6},k:{...o(16,n.ink,"bold",1.3),marginTop:6,marginHorizontal:2,marginBottom:-4},card:{paddingVertical:14,paddingHorizontal:16,borderRadius:22,backgroundColor:n.card,...a},items:{gap:18},item:{flexDirection:"row",alignItems:"flex-start",gap:12},itemImg:{width:64,height:64,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:n.soft},itemName:o(16.5,n.ink,"bold",1.25),itemP:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:2,marginTop:3},itemPrice:{...o(16,n.ink,"bold",1.3),fontVariant:["tabular-nums"]},itemWas:{...o(14,n.ink3,"medium",1.3),textDecorationLine:"line-through"},itemSmall:o(14,n.ink3,"regular",1.35),itemActs:{flexDirection:"row",alignItems:"center",gap:16,marginTop:8},step:{flexDirection:"row",alignItems:"center",height:40,borderRadius:999,borderWidth:1.5,borderColor:n.edge,backgroundColor:n.card},stepButton:{width:40,height:40,borderRadius:999,alignItems:"center",justifyContent:"center"},stepOff:{opacity:.3},stepValue:{...o(15.5,n.ink,"bold",1.2),width:30,textAlign:"center",fontVariant:["tabular-nums"]},rm:{minHeight:40,justifyContent:"center"},rmText:{...o(14.5,n.ink2,"bold",1.3),textDecorationLine:"underline"},fine:o(13,n.ink3,"regular",1.45),fineC:{...o(13,n.ink3,"regular",1.45),marginTop:14,textAlign:"center"},coFine:{...o(12.5,n.ink3,"regular",1.45),textAlign:"center"},empty:{alignItems:"center",gap:8,paddingTop:48,paddingHorizontal:12,paddingBottom:8},emptyTile:{width:72,height:72,borderRadius:20,marginBottom:8,alignItems:"center",justifyContent:"center",backgroundColor:n.soft},emptyTitle:{...l(28,1.1),textAlign:"center"},emptyBody:{...o(15.5,n.ink2,"regular",1.45),textAlign:"center",maxWidth:270},emptyAct:{marginTop:12},link:{minHeight:40,justifyContent:"center",alignSelf:"center"},linkText:{...o(15,n.link,"bold",1.3),textDecorationLine:"underline"},acts:{gap:4,alignItems:"stretch",marginTop:4},cancel:{minHeight:40,justifyContent:"center",alignSelf:"center"},cancelText:o(14.5,n.riskInk,"bold",1.3),orders:{gap:10},order:{flexDirection:"row",alignItems:"center",gap:10,paddingVertical:14,paddingLeft:16,paddingRight:14,borderRadius:22,backgroundColor:n.card,...a},orderTop:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:10,rowGap:4},orderNo:{...o(12,n.ink3,"mono",1.3),letterSpacing:.48},orderWhat:{...o(16,n.ink,"bold",1.3),marginTop:8},orderMeta:{...o(14,n.ink3,"regular",1.4),marginTop:2},pics:{flexDirection:"row",gap:6,marginTop:10},pic:{width:40,height:40,borderRadius:10,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:n.soft},pill:{flexDirection:"row",alignItems:"center",gap:6,minHeight:26,paddingHorizontal:10,borderRadius:999,backgroundColor:n.wait},pillText:o(13,n.ink,"bold",1.2),pillDone:{backgroundColor:n.clearBg},pillDoneText:{color:n.clearInk},pillSub:{backgroundColor:n.soft},pillSubText:{color:n.onSoft},pillRisk:{backgroundColor:n.riskBg},pillRiskText:{color:n.riskInk},pillQuiet:{backgroundColor:n.tile},pillQuietText:{color:n.ink2},carrier:{flexDirection:"row",alignItems:"center",gap:12},carrierIc:{width:40,height:40,borderRadius:11,alignItems:"center",justifyContent:"center",backgroundColor:n.soft},carrierName:o(16,n.ink,"bold",1.3),carrierNo:{...o(13,n.ink2,"mono",1.35),letterSpacing:.26,marginTop:1},carrierWait:o(14.5,n.ink2,"regular",1.4),carrierGo:{marginTop:10},trackLi:{flexDirection:"row",gap:12,paddingBottom:16},trackLast:{paddingBottom:0},trackRail:{position:"absolute",left:10,top:20,bottom:-2,width:2,borderRadius:1,backgroundColor:n.rail},trackRailDone:{backgroundColor:n.ink},trackDot:{width:22,height:22,borderRadius:11,alignItems:"center",justifyContent:"center",backgroundColor:n.card,borderWidth:2,borderColor:n.ring},trackDotDone:{backgroundColor:n.ink,borderWidth:0},trackDotNow:{backgroundColor:n.accent,borderColor:n.ink},trackT:o(15.5,n.ink,"bold",1.3),trackTNext:{color:n.ink3},trackD:{...o(14,n.ink3,"regular",1.35),marginTop:1},done:{paddingTop:40,paddingHorizontal:22,paddingBottom:20,alignItems:"center"},doneCheck:{width:76,height:76,borderRadius:38,alignItems:"center",justifyContent:"center",backgroundColor:n.accent},doneTitle:{...l(34,1.1),marginTop:20,textAlign:"center"},doneWhen:{...o(16,n.ink,"bold",1.35),marginTop:10,textAlign:"center"},doneWho:{...o(15,n.ink2,"regular",1.35),marginTop:2,textAlign:"center"},next:{alignSelf:"stretch",marginTop:22,paddingVertical:4,paddingHorizontal:16,borderRadius:18,backgroundColor:n.card,...a},nextLi:{flexDirection:"row",alignItems:"center",gap:12,paddingVertical:10},nextIc:{width:36,height:36,borderRadius:11,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:n.soft},nextK:{...o(10.5,n.ink3,"mono",1.3),letterSpacing:.53,textTransform:"uppercase"},nextV:{...o(15,n.ink,"medium",1.35),marginTop:1},btn:{minHeight:48,paddingHorizontal:22,borderRadius:999,alignItems:"center",justifyContent:"center",flexDirection:"row",gap:8,backgroundColor:n.button},btnLg:{minHeight:56,paddingHorizontal:28},btnSm:{minHeight:40,paddingHorizontal:16},btnGhost:{backgroundColor:"transparent",borderWidth:1.5,borderColor:n.ink},btnOff:{opacity:.32},btnText:{...o(16,n.onButton,"bold",1.25),textAlign:"center"},btnTextLg:{fontSize:17,lineHeight:21},btnTextSm:{fontSize:15,lineHeight:19},btnTextGhost:{color:n.ink},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:n.scrim},sheet:{maxHeight:"88%",paddingTop:10,paddingHorizontal:20,borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:n.card},grab:{alignSelf:"center",width:40,height:5,borderRadius:3,backgroundColor:n.edge,marginBottom:10},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},kicker:{...o(11,n.ink3,"mono",1.3),letterSpacing:.88,textTransform:"uppercase",flexShrink:1},x:{width:40,height:40,marginRight:-8,alignItems:"center",justifyContent:"center",borderRadius:20},sheetTitle:{...l(26,1.1),marginTop:4},co:{gap:10,marginTop:2},coItems:{gap:10},coItem:{flexDirection:"row",alignItems:"center",gap:12},coPic:{width:44,height:44,borderRadius:10,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:n.soft},coName:o(15.5,n.ink,"bold",1.25),coSmall:o(13.5,n.ink3,"regular",1.35),coPrice:{...o(15,n.ink,"bold",1.3),fontVariant:["tabular-nums"]},coRows:{paddingVertical:2,paddingHorizontal:14,borderRadius:16,backgroundColor:n.paper},coRowsOnPage:{backgroundColor:n.card,...a},coRow:{flexDirection:"row",alignItems:"center",gap:10,minHeight:44},coKey:{...o(14.5,n.ink3,"regular",1.3),width:74},coValue:{...o(14.5,n.ink,"bold",1.3),flex:1,minWidth:0},opts:{gap:8},opt:{flexDirection:"row",alignItems:"center",gap:12,minHeight:48,paddingVertical:12,paddingHorizontal:14,borderRadius:16,borderWidth:1.5,borderColor:n.edge},optOn:{backgroundColor:n.chosen,borderWidth:2,borderColor:n.ink},optRadio:{width:22,height:22,borderRadius:11,borderWidth:2,borderColor:n.edge,backgroundColor:n.card},optRadioOn:{borderWidth:7,borderColor:n.ink},optName:o(16,n.ink,"bold",1.35),optSmall:o(13,n.ink2,"regular",1.4),every:{flexDirection:"row",gap:4,padding:4,borderRadius:999,borderWidth:1.5,borderColor:n.edge,backgroundColor:n.card},everyBtn:{flex:1,minHeight:36,paddingHorizontal:6,borderRadius:999,alignItems:"center",justifyContent:"center"},everyOn:{backgroundColor:n.ink},everyText:{...o(14,n.ink,"bold",1.2),textAlign:"center"},everyTextOn:{color:n.card},coK:{...o(10.5,n.ink3,"mono",1.3),letterSpacing:.63,textTransform:"uppercase",marginBottom:6},subc:{flexDirection:"row",alignItems:"center",gap:12,paddingVertical:12,paddingLeft:12,paddingRight:14,borderRadius:22,backgroundColor:n.clearBg},subcImg:{width:56,height:56,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:n.card},subcName:o(16,n.ink,"bold",1.25),subcSmall:{...o(14,n.ink2,"regular",1.35),marginTop:2},subcAlert:{...o(14,n.riskInk,"bold",1.35),marginTop:2},subcBtn:{minHeight:40,paddingHorizontal:14,borderRadius:999,alignItems:"center",justifyContent:"center",borderWidth:1.5,borderColor:n.ink,backgroundColor:n.card},subcBtnText:o(14,n.ink,"bold",1.2),coProd:{flexDirection:"row",alignItems:"center",gap:12},coProdImg:{width:56,height:56,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:n.soft},coProdT:o(14,n.ink2,"bold",1.35),coProdP:{...o(14,n.ink2,"regular",1.35),marginTop:2},error:{paddingVertical:12,paddingHorizontal:14,borderRadius:14,backgroundColor:n.riskBg},errorText:o(14.5,n.riskInk,"medium",1.4),toast:{paddingVertical:12,paddingHorizontal:15,borderRadius:16,backgroundColor:n.ink},toastText:o(14.5,n.toastInk,"regular",1.4),ghostLine:{height:14,borderRadius:7,backgroundColor:n.tile},fieldLabel:{...o(15,n.ink,"bold",1.3),marginBottom:8},field:{...o(17,n.ink,"regular",1.25),minHeight:52,paddingHorizontal:16,borderRadius:16,borderWidth:1.5,borderColor:n.edge,backgroundColor:n.card},fieldErr:{...o(14,n.riskInk,"bold",1.35),marginTop:6}});return r==="everfur-app"?{...s,...oa(t),palette:$l()}:{...s,palette:n}}var ca=createContext({bottomInset:0,screenBottomInset:0,cardHandoff:null,onOrderHelp:null}),ua=ca.Provider;function pa(){return r(ca)}function ha(){let e=useEverfurTheme(),t=yr().options.fonts,r=ro();return i(()=>da(e,t,r),[e,t,r])}function Page({head:e,foot:t,children:r,testID:n,onRefresh:i}){let o=ha(),{bottomInset:a}=pa(),[s,d]=l(false),c=i?/* @__PURE__ */A(m,{refreshing:s,tintColor:o.palette.ink3,colors:[o.palette.ink3],onRefresh:()=>{d(true),i().finally(()=>d(false))}}):void 0;/* @__PURE__ */
155
- return z(g,{style:o.page,testID:n,children:[e??null,
156
- /* @__PURE__ */A(f,{style:{flex:1},contentContainerStyle:o.body,keyboardShouldPersistTaps:"handled",refreshControl:c,children:r}),t?/* @__PURE__ */A(g,{style:[o.foot,{paddingBottom:Math.max(12,a)}],children:t}):null]})}function Title({children:e,sub:t}){let r=ha();/* @__PURE__ */
157
- return z(W,{children:[
158
- /* @__PURE__ */A(Text3,{tier:"heading",style:r.title,accessibilityRole:"header",children:e}),t?/* @__PURE__ */A(Text3,{style:r.sub2,children:t}):null]})}function K({children:e}){let t=ha();/* @__PURE__ */
159
- return A(Text3,{tier:"heading",style:t.k,accessibilityRole:"header",children:e})}function Card3({children:e,style:t}){let r=ha();/* @__PURE__ */
160
- return A(g,{style:[r.card,t],children:e})}function Thumb2({rx:e,size:t=64,onCard:r,title:n,imageUrl:i}){let o=ha(),l=no(),a=t===64?o.itemImg:t===56?r?o.subcImg:o.coProdImg:t===44?o.coPic:t===40?o.pic:o.nextIc,s=i?/* @__PURE__ */A(TilePhoto,{uri:i},i):null,d=i?{overflow:"hidden"}:null;if(l){let t=nt(tt(e,n)),r=typeof a.width=="number"?a.width:48;/* @__PURE__ */
161
- return z(g,{style:[a,{backgroundColor:vl(t.tone)},d],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:[
162
- /* @__PURE__ */A(Icon,{name:t.icon,size:Math.round(r*.46),color:kr("thumb")}),s]})}/* @__PURE__ */
163
- return z(g,{style:[a,d],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:[
164
- /* @__PURE__ */A(ShopV3Icon,{name:e?"rx":"supplement",size:Math.round(t*.46),color:o.palette.onSoft}),s]})}function ga(e){let t=ha();return i(()=>({tint:t.palette.soft,iconSize:Math.round(64*.46),icon:({size:r})=>/* @__PURE__ */A(ShopV3Icon,{name:e?"rx":"supplement",size:r,color:t.palette.onSoft})}),[e,t.palette.soft,t.palette.onSoft])}function ItemLine({rx:e,title:t,imageUrl:r,price:n,smalls:i,quantity:o,removeLabel:l,onRemove:a,testID:s}){let d=ga(e);/* @__PURE__ */
165
- return A(BlockScope,{children:/* @__PURE__ */A(CartLine,{variant:"plan",testID:s,name:t,image:r??null,fallback:d,price:n,smalls:i,quantity:o,actions:[{key:"remove",label:l,accessibilityLabel:`${l}: ${t}`,onPress:a}]})})}function IconTile({name:e,size:t=36}){let r=ha(),n=t===72?r.emptyTile:t===40?r.carrierIc:r.nextIc;/* @__PURE__ */
166
- return A(g,{style:n,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */A(ShopV3Icon,{name:e,size:t===72?30:t===40?21:18,color:r.palette.onSoft})})}var fa={top:2,bottom:2,left:2,right:2};function Stepper({value:e,max:t,label:r,fewerLabel:n,moreLabel:i,disabled:o,onChange:l}){let a=ha(),s=o||e<=1,d=o||e>=t;/* @__PURE__ */
167
- return z(g,{style:a.step,accessibilityLabel:r,accessible:false,children:[
168
- /* @__PURE__ */A(y,{style:[a.stepButton,s?a.stepOff:null],accessibilityRole:"button",accessibilityLabel:n,accessibilityState:{disabled:s},disabled:s,hitSlop:fa,onPress:()=>l(e-1),children:/* @__PURE__ */A(ShopV3Icon,{name:"minus",size:16,color:a.palette.ink})}),
139
+ return W(f,{style:{width:t,height:t},...ia,children:[
140
+ /* @__PURE__ */A(f,{style:{position:"absolute",left:i(.06),top:i(.26),width:i(.56),height:i(.42),borderWidth:n,borderColor:r,borderRadius:i(.04)}}),
141
+ /* @__PURE__ */A(f,{style:{position:"absolute",left:i(.6),top:i(.4),width:i(.32),height:i(.28),borderWidth:n,borderColor:r,borderTopRightRadius:i(.12),borderRadius:i(.04)}}),
142
+ /* @__PURE__ */A(f,{style:{position:"absolute",left:i(.16),top:i(.66),width:i(.18),height:i(.18),borderWidth:n,borderColor:r,borderRadius:t,backgroundColor:"transparent"}}),
143
+ /* @__PURE__ */A(f,{style:{position:"absolute",left:i(.64),top:i(.66),width:i(.18),height:i(.18),borderWidth:n,borderColor:r,borderRadius:t}})]});case"card":/* @__PURE__ */
144
+ return W(f,{style:{width:t,height:t},...ia,children:[
145
+ /* @__PURE__ */A(f,{style:{position:"absolute",left:i(.1),top:i(.22),width:i(.8),height:i(.56),borderWidth:n,borderColor:r,borderRadius:i(.08)}}),
146
+ /* @__PURE__ */A(f,{style:{position:"absolute",left:i(.1),top:i(.4),width:i(.8),height:n,backgroundColor:r}})]});case"calendar":/* @__PURE__ */
147
+ return W(f,{style:{width:t,height:t},...ia,children:[
148
+ /* @__PURE__ */A(f,{style:{position:"absolute",left:i(.14),top:i(.2),width:i(.72),height:i(.66),borderWidth:n,borderColor:r,borderRadius:i(.08)}}),
149
+ /* @__PURE__ */A(f,{style:{position:"absolute",left:i(.14),top:i(.4),width:i(.72),height:n,backgroundColor:r}}),
150
+ /* @__PURE__ */A(f,{style:{position:"absolute",left:i(.32),top:i(.1),width:n,height:i(.18),borderRadius:n,backgroundColor:r}}),
151
+ /* @__PURE__ */A(f,{style:{position:"absolute",left:i(.66),top:i(.1),width:n,height:i(.18),borderRadius:n,backgroundColor:r}})]});case"pin":/* @__PURE__ */
152
+ return W(f,{style:{width:t,height:t},...ia,children:[
153
+ /* @__PURE__ */A(f,{style:{position:"absolute",left:i(.24),top:i(.1),width:i(.52),height:i(.52),borderWidth:n,borderColor:r,borderRadius:t}}),
154
+ /* @__PURE__ */A(f,{style:{position:"absolute",left:i(.5)-n/2,top:i(.6),width:n,height:i(.28),borderRadius:n,backgroundColor:r}})]})}}function oa(e){return ur[e]}var la=pr.screenTitle.color,aa=pr.cardLead.color,sa=pr.screenMeta.color,da=oa("card").borderColor,ca=oa("card").backgroundColor,ua=pr.pillOverdue.color;function pa(){return{ink:la,ink2:aa,ink3:sa,paper:ca,tile:oa("ghostBar").backgroundColor,line:da,card:ca,link:la,soft:oa("thumb").backgroundColor,onSoft:pr.thumb.color,accent:la,onAccent:pr.dotDone.color,wait:oa("pillSoon").backgroundColor,chosen:oa("choiceCurrent").backgroundColor,button:oa("btnInk").backgroundColor,onButton:pr.btnInk.color,riskBg:ca,riskInk:ua,clearBg:ca,clearInk:pr.pillClear.color,edge:da,rail:oa("trackerLine").backgroundColor,ring:da,scrim:oa("sheetBackdrop").backgroundColor,toastInk:pr.btnInk.color}}function ha(e,t,r){let n=t?e?.mono:e?.sans;return n?typeof n=="string"?{fontFamily:n,fontWeight:r}:{fontFamily:r==="700"?n.bold??n.regular:r==="500"?n.medium??n.regular:n.regular}:{fontWeight:r}}function ga(e,t){let{fontWeight:r,...n}=pr[t];return{...n,...ha(e,hr[t].font==="mono",r)}}var fa=e=>{let t=oa(e);return{paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom,paddingLeft:t.paddingLeft}},ma=e=>{let t=oa(e);return{borderWidth:t.borderWidth,borderColor:t.borderColor,borderRadius:t.borderRadius}},ba=e=>({width:e,height:e,borderRadius:oa("thumb").borderRadius,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:oa("thumb").backgroundColor});function ya(e){let t=t=>ga(e,t),r={...fa("card"),...ma("card"),backgroundColor:ca},n=oa("thumb").width,i=oa("stack").rowGap;return h.create({page:{flex:1,backgroundColor:ca},body:{...fa("body"),paddingBottom:oa("breaks").columnGap,gap:i},foot:{...fa("traybar"),gap:oa("traybar").rowGap,backgroundColor:ca,borderTopWidth:hr.traybar.lineTop?.width??1,borderTopColor:hr.traybar.lineTop?.color??da},title:t("screenTitle"),sub2:{...t("screenMeta"),marginTop:oa("titleBlock").rowGap-i},k:{...t("forLabel"),marginTop:oa("forLabel").marginTop,marginBottom:0},card:r,items:{gap:oa("itemsLiMid").paddingTop},item:{flexDirection:"row",alignItems:"flex-start",gap:oa("itemsLiFirst").columnGap},itemImg:ba(n),itemName:t("itemsName"),itemP:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:2,marginTop:oa("itemsMeta").marginTop},itemPrice:t("itemsPrice"),itemSmall:t("itemsMeta"),itemActs:{flexDirection:"row",alignItems:"center",gap:oa("itemsActs").columnGap,marginTop:oa("itemsActs").marginTop},step:{flexDirection:"row",alignItems:"center",height:40,...ma("btnRow"),backgroundColor:ca},stepValue:{...t("btnRowLabel"),width:30,textAlign:"center"},rm:{minHeight:40,justifyContent:"center"},rmText:t("itemsActLink"),fine:t("noteStandalone"),fineC:{...t("legal"),marginTop:14},coFine:t("traybarFine"),empty:{alignItems:"center",gap:8,paddingTop:48,paddingHorizontal:12,paddingBottom:8},emptyTile:{...ba(72),borderRadius:oa("card").borderRadius,marginBottom:8},emptyTitle:{...t("screenTitle"),textAlign:"center"},emptyBody:{...t("cardLead"),textAlign:"center",maxWidth:270},linkText:{...t("cardLink"),textDecorationLine:"underline"},cancelText:t("linkDanger"),doneCheck:{width:76,height:76,borderRadius:38,alignItems:"center",justifyContent:"center",backgroundColor:oa("dotDone").backgroundColor},doneTitle:{...t("screenTitle"),marginTop:20,textAlign:"center"},doneWhen:{...t("cardLink"),marginTop:10,textAlign:"center"},doneWho:{...t("screenMeta"),marginTop:2,textAlign:"center"},next:{alignSelf:"stretch",marginTop:22,...r,paddingVertical:4},nextLi:{flexDirection:"row",alignItems:"center",gap:oa("recRow").columnGap,paddingVertical:oa("recRow").paddingTop},nextIc:ba(36),nextK:t("forLabel"),nextV:{...t("rowsV"),color:la,marginTop:1},btn:{minHeight:oa("btnInk").minHeight,paddingHorizontal:oa("btnInk").paddingLeft,...ma("btnInk"),alignItems:"center",justifyContent:"center",flexDirection:"row",gap:8,backgroundColor:oa("btnInk").backgroundColor},btnLg:{minHeight:oa("btnInk").minHeight,paddingHorizontal:oa("btnInk").paddingLeft},btnSm:{minHeight:oa("btnSm").minHeight,paddingHorizontal:oa("btnSm").paddingLeft},btnGhost:{backgroundColor:"transparent",...ma("btnOutline")},btnText:t("btnInk"),btnTextLg:{fontSize:pr.btnInk.fontSize,lineHeight:pr.btnInk.lineHeight},btnTextSm:{fontSize:pr.btnSm.fontSize,lineHeight:pr.btnSm.lineHeight},btnTextGhost:{color:pr.btnOutline.color},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:oa("sheetBackdrop").backgroundColor},sheet:{maxHeight:"88%",paddingTop:0,paddingHorizontal:oa("sheetBody").paddingLeft,borderTopLeftRadius:oa("sheet").borderTopLeftRadius,borderTopRightRadius:oa("sheet").borderTopRightRadius,backgroundColor:oa("sheet").backgroundColor},grab:{alignSelf:"center",width:oa("sheetGrabBar").width,height:oa("sheetGrabBar").height,borderRadius:oa("sheetGrabBar").borderRadius,backgroundColor:oa("sheetGrabBar").backgroundColor,marginTop:8,marginBottom:8},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingTop:oa("sheetHead").paddingTop,paddingBottom:4},kicker:{...t("forLabel"),flexShrink:1},x:{width:oa("sheetClose").width,height:oa("sheetClose").height,borderRadius:oa("sheetClose").borderRadius,alignItems:"center",justifyContent:"center",backgroundColor:oa("sheetClose").backgroundColor},sheetTitle:{...t("cardTitleInHead"),marginTop:4},co:{gap:i,marginTop:2},coItems:{gap:oa("itemsLiFirst").columnGap},coItem:{flexDirection:"row",alignItems:"center",gap:oa("itemsLiFirst").columnGap},coPic:ba(44),coName:t("itemsName"),coSmall:t("itemsMeta"),coPrice:t("itemsPrice"),coRows:{paddingVertical:2,paddingHorizontal:oa("card").paddingLeft,...ma("card"),backgroundColor:ca},coRowsOnPage:{backgroundColor:ca},coKey:{...t("sumDt"),width:74},coValue:{...t("sumDd"),textAlign:"left",flex:1,minWidth:0},opts:{gap:oa("choices").rowGap},opt:{flexDirection:"row",alignItems:"center",gap:oa("choice").columnGap,minHeight:48,...fa("choice"),...ma("choice"),backgroundColor:oa("choice").backgroundColor},optOn:{...ma("choiceCurrent"),backgroundColor:oa("choiceCurrent").backgroundColor},optRadio:{width:oa("radioOff").width,height:oa("radioOff").height,...ma("radioOff"),backgroundColor:oa("radioOff").backgroundColor},optRadioOn:{...ma("radioOn")},optName:t("choiceTitle"),optSmall:{...t("choiceMeta"),marginTop:oa("choiceMeta").marginTop},every:{flexDirection:"row",gap:4,padding:4,borderRadius:999,borderWidth:1,borderColor:da,backgroundColor:ca},everyOn:{backgroundColor:la},everyText:{...t("btnSm"),textAlign:"center"},everyTextOn:{color:ca},coK:{...t("forLabel"),marginBottom:oa("forLabel").marginBottom},subc:{flexDirection:"row",alignItems:"center",gap:oa("itemsLiFirst").columnGap,...r},subcImg:ba(n),subcName:t("itemsName"),subcSmall:{...t("itemsMeta"),marginTop:2},subcAlert:{...t("itemsMeta"),color:ua,marginTop:2},subcBtn:{minHeight:40,paddingHorizontal:oa("btnSm").paddingLeft,...ma("btnSm"),alignItems:"center",justifyContent:"center",backgroundColor:ca},subcBtnText:t("btnSm"),coProd:{flexDirection:"row",alignItems:"center",gap:oa("itemsLiFirst").columnGap},coProdImg:ba(n),coProdT:t("itemsName"),coProdP:{...t("itemsMeta"),marginTop:2},error:{paddingVertical:0,paddingHorizontal:0,borderRadius:0,backgroundColor:"transparent"},errorText:{...t("noteAfterSum"),color:ua},toast:{paddingVertical:12,paddingHorizontal:16,borderRadius:oa("choice").borderRadius,backgroundColor:la},toastText:{...t("cardLead"),color:ca},ghostLine:{height:oa("ghostBar").height,borderRadius:oa("ghostBar").borderRadius,backgroundColor:oa("ghostBar").backgroundColor},fieldLabel:{...t("fieldLabel"),marginBottom:oa("field").rowGap},field:{...t("fieldInputText"),minHeight:oa("fieldInput").minHeight,paddingHorizontal:oa("fieldInput").paddingLeft,...ma("fieldInput"),backgroundColor:oa("fieldInput").backgroundColor},fieldErr:{...t("noteAfterSum"),color:ua,marginTop:6}})}function ka(e){let t=il(e),r=e.color,n=e.brightness==="dark";return{ink:t.ink,ink2:t.ink2,ink3:t.ink3,paper:t.paper,tile:t.tile,line:t.line,card:t.card,link:t.link,soft:r.brandSofter,onSoft:r.brandInk,accent:t.accent,onAccent:t.onAccent,wait:n?r.badgeBgCaution:"#FFF3C9",chosen:n?r.surfaceSubtle:"#FFF7DC",button:t.primary,onButton:t.onPrimary,riskBg:t.riskBg,riskInk:t.riskInk,clearBg:t.clearBg,clearInk:t.clearInk,edge:n?t.line:"#DAD7D1",rail:n?t.line:"#E2DFD9",ring:n?t.line:"#CFCBC4",scrim:n?"rgba(0,0,0,0.6)":"rgba(38,37,35,0.45)",toastInk:n?r.text.primary:"#FFFFFF"}}function wa(e,t){return typeof e=="string"?{fontFamily:e,fontWeight:t==="bold"?"700":t==="medium"?"500":"400"}:{fontFamily:t==="bold"?e.bold??e.regular:t==="medium"?e.medium??e.regular:e.regular}}function va(e,t,r){let n=r==="mono"||r==="monoBold"?t?.mono:t?.sans;return n?wa(n,r==="mono"?"regular":r==="monoBold"?"bold":r):face(e,r)}function Ta(e,t,r="partner"){let n=ka(e),i=e.brightness==="dark",o=(r,n,i="regular",o=1.35)=>({...va(e,t,i),fontSize:r,lineHeight:Math.round(r*o),color:n}),l=(r,i)=>({...t?.sans?wa(t.sans,"bold"):headingFace(e,"bold"),fontSize:r,lineHeight:Math.round(r*i),color:n.ink}),a={shadowColor:"#262523",shadowOpacity:i?0:.06,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:i?0:1},s=h.create({page:{flex:1,backgroundColor:n.paper},body:{paddingHorizontal:18,paddingTop:8,paddingBottom:28,gap:12},foot:{paddingTop:12,paddingHorizontal:18,gap:10,backgroundColor:n.paper,borderTopWidth:1,borderTopColor:n.line},grow:{flex:1,minWidth:0},row:{flexDirection:"row",alignItems:"center"},title:l(29,1.08),sub2:{...o(15,n.ink2,"regular",1.45),marginTop:-6},k:{...o(16,n.ink,"bold",1.3),marginTop:6,marginHorizontal:2,marginBottom:-4},card:{paddingVertical:14,paddingHorizontal:16,borderRadius:22,backgroundColor:n.card,...a},items:{gap:18},item:{flexDirection:"row",alignItems:"flex-start",gap:12},itemImg:{width:64,height:64,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:n.soft},itemName:o(16.5,n.ink,"bold",1.25),itemP:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:2,marginTop:3},itemPrice:{...o(16,n.ink,"bold",1.3),fontVariant:["tabular-nums"]},itemWas:{...o(14,n.ink3,"medium",1.3),textDecorationLine:"line-through"},itemSmall:o(14,n.ink3,"regular",1.35),itemActs:{flexDirection:"row",alignItems:"center",gap:16,marginTop:8},step:{flexDirection:"row",alignItems:"center",height:40,borderRadius:999,borderWidth:1.5,borderColor:n.edge,backgroundColor:n.card},stepButton:{width:40,height:40,borderRadius:999,alignItems:"center",justifyContent:"center"},stepOff:{opacity:.3},stepValue:{...o(15.5,n.ink,"bold",1.2),width:30,textAlign:"center",fontVariant:["tabular-nums"]},rm:{minHeight:40,justifyContent:"center"},rmText:{...o(14.5,n.ink2,"bold",1.3),textDecorationLine:"underline"},fine:o(13,n.ink3,"regular",1.45),fineC:{...o(13,n.ink3,"regular",1.45),marginTop:14,textAlign:"center"},coFine:{...o(12.5,n.ink3,"regular",1.45),textAlign:"center"},empty:{alignItems:"center",gap:8,paddingTop:48,paddingHorizontal:12,paddingBottom:8},emptyTile:{width:72,height:72,borderRadius:20,marginBottom:8,alignItems:"center",justifyContent:"center",backgroundColor:n.soft},emptyTitle:{...l(28,1.1),textAlign:"center"},emptyBody:{...o(15.5,n.ink2,"regular",1.45),textAlign:"center",maxWidth:270},emptyAct:{marginTop:12},link:{minHeight:40,justifyContent:"center",alignSelf:"center"},linkText:{...o(15,n.link,"bold",1.3),textDecorationLine:"underline"},acts:{gap:4,alignItems:"stretch",marginTop:4},cancel:{minHeight:40,justifyContent:"center",alignSelf:"center"},cancelText:o(14.5,n.riskInk,"bold",1.3),orders:{gap:10},order:{flexDirection:"row",alignItems:"center",gap:10,paddingVertical:14,paddingLeft:16,paddingRight:14,borderRadius:22,backgroundColor:n.card,...a},orderTop:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:10,rowGap:4},orderNo:{...o(12,n.ink3,"mono",1.3),letterSpacing:.48},orderWhat:{...o(16,n.ink,"bold",1.3),marginTop:8},orderMeta:{...o(14,n.ink3,"regular",1.4),marginTop:2},pics:{flexDirection:"row",gap:6,marginTop:10},pic:{width:40,height:40,borderRadius:10,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:n.soft},pill:{flexDirection:"row",alignItems:"center",gap:6,minHeight:26,paddingHorizontal:10,borderRadius:999,backgroundColor:n.wait},pillText:o(13,n.ink,"bold",1.2),pillDone:{backgroundColor:n.clearBg},pillDoneText:{color:n.clearInk},pillSub:{backgroundColor:n.soft},pillSubText:{color:n.onSoft},pillRisk:{backgroundColor:n.riskBg},pillRiskText:{color:n.riskInk},pillQuiet:{backgroundColor:n.tile},pillQuietText:{color:n.ink2},carrier:{flexDirection:"row",alignItems:"center",gap:12},carrierIc:{width:40,height:40,borderRadius:11,alignItems:"center",justifyContent:"center",backgroundColor:n.soft},carrierName:o(16,n.ink,"bold",1.3),carrierNo:{...o(13,n.ink2,"mono",1.35),letterSpacing:.26,marginTop:1},carrierWait:o(14.5,n.ink2,"regular",1.4),carrierGo:{marginTop:10},trackLi:{flexDirection:"row",gap:12,paddingBottom:16},trackLast:{paddingBottom:0},trackRail:{position:"absolute",left:10,top:20,bottom:-2,width:2,borderRadius:1,backgroundColor:n.rail},trackRailDone:{backgroundColor:n.ink},trackDot:{width:22,height:22,borderRadius:11,alignItems:"center",justifyContent:"center",backgroundColor:n.card,borderWidth:2,borderColor:n.ring},trackDotDone:{backgroundColor:n.ink,borderWidth:0},trackDotNow:{backgroundColor:n.accent,borderColor:n.ink},trackT:o(15.5,n.ink,"bold",1.3),trackTNext:{color:n.ink3},trackD:{...o(14,n.ink3,"regular",1.35),marginTop:1},done:{paddingTop:40,paddingHorizontal:22,paddingBottom:20,alignItems:"center"},doneCheck:{width:76,height:76,borderRadius:38,alignItems:"center",justifyContent:"center",backgroundColor:n.accent},doneTitle:{...l(34,1.1),marginTop:20,textAlign:"center"},doneWhen:{...o(16,n.ink,"bold",1.35),marginTop:10,textAlign:"center"},doneWho:{...o(15,n.ink2,"regular",1.35),marginTop:2,textAlign:"center"},next:{alignSelf:"stretch",marginTop:22,paddingVertical:4,paddingHorizontal:16,borderRadius:18,backgroundColor:n.card,...a},nextLi:{flexDirection:"row",alignItems:"center",gap:12,paddingVertical:10},nextIc:{width:36,height:36,borderRadius:11,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:n.soft},nextK:{...o(10.5,n.ink3,"mono",1.3),letterSpacing:.53,textTransform:"uppercase"},nextV:{...o(15,n.ink,"medium",1.35),marginTop:1},btn:{minHeight:48,paddingHorizontal:22,borderRadius:999,alignItems:"center",justifyContent:"center",flexDirection:"row",gap:8,backgroundColor:n.button},btnLg:{minHeight:56,paddingHorizontal:28},btnSm:{minHeight:40,paddingHorizontal:16},btnGhost:{backgroundColor:"transparent",borderWidth:1.5,borderColor:n.ink},btnOff:{opacity:.32},btnText:{...o(16,n.onButton,"bold",1.25),textAlign:"center"},btnTextLg:{fontSize:17,lineHeight:21},btnTextSm:{fontSize:15,lineHeight:19},btnTextGhost:{color:n.ink},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:n.scrim},sheet:{maxHeight:"88%",paddingTop:10,paddingHorizontal:20,borderTopLeftRadius:28,borderTopRightRadius:28,backgroundColor:n.card},grab:{alignSelf:"center",width:40,height:5,borderRadius:3,backgroundColor:n.edge,marginBottom:10},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},kicker:{...o(11,n.ink3,"mono",1.3),letterSpacing:.88,textTransform:"uppercase",flexShrink:1},x:{width:40,height:40,marginRight:-8,alignItems:"center",justifyContent:"center",borderRadius:20},sheetTitle:{...l(26,1.1),marginTop:4},co:{gap:10,marginTop:2},coItems:{gap:10},coItem:{flexDirection:"row",alignItems:"center",gap:12},coPic:{width:44,height:44,borderRadius:10,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:n.soft},coName:o(15.5,n.ink,"bold",1.25),coSmall:o(13.5,n.ink3,"regular",1.35),coPrice:{...o(15,n.ink,"bold",1.3),fontVariant:["tabular-nums"]},coRows:{paddingVertical:2,paddingHorizontal:14,borderRadius:16,backgroundColor:n.paper},coRowsOnPage:{backgroundColor:n.card,...a},coRow:{flexDirection:"row",alignItems:"center",gap:10,minHeight:44},coKey:{...o(14.5,n.ink3,"regular",1.3),width:74},coValue:{...o(14.5,n.ink,"bold",1.3),flex:1,minWidth:0},opts:{gap:8},opt:{flexDirection:"row",alignItems:"center",gap:12,minHeight:48,paddingVertical:12,paddingHorizontal:14,borderRadius:16,borderWidth:1.5,borderColor:n.edge},optOn:{backgroundColor:n.chosen,borderWidth:2,borderColor:n.ink},optRadio:{width:22,height:22,borderRadius:11,borderWidth:2,borderColor:n.edge,backgroundColor:n.card},optRadioOn:{borderWidth:7,borderColor:n.ink},optName:o(16,n.ink,"bold",1.35),optSmall:o(13,n.ink2,"regular",1.4),every:{flexDirection:"row",gap:4,padding:4,borderRadius:999,borderWidth:1.5,borderColor:n.edge,backgroundColor:n.card},everyBtn:{flex:1,minHeight:36,paddingHorizontal:6,borderRadius:999,alignItems:"center",justifyContent:"center"},everyOn:{backgroundColor:n.ink},everyText:{...o(14,n.ink,"bold",1.2),textAlign:"center"},everyTextOn:{color:n.card},coK:{...o(10.5,n.ink3,"mono",1.3),letterSpacing:.63,textTransform:"uppercase",marginBottom:6},subc:{flexDirection:"row",alignItems:"center",gap:12,paddingVertical:12,paddingLeft:12,paddingRight:14,borderRadius:22,backgroundColor:n.clearBg},subcImg:{width:56,height:56,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:n.card},subcName:o(16,n.ink,"bold",1.25),subcSmall:{...o(14,n.ink2,"regular",1.35),marginTop:2},subcAlert:{...o(14,n.riskInk,"bold",1.35),marginTop:2},subcBtn:{minHeight:40,paddingHorizontal:14,borderRadius:999,alignItems:"center",justifyContent:"center",borderWidth:1.5,borderColor:n.ink,backgroundColor:n.card},subcBtnText:o(14,n.ink,"bold",1.2),coProd:{flexDirection:"row",alignItems:"center",gap:12},coProdImg:{width:56,height:56,borderRadius:14,overflow:"hidden",alignItems:"center",justifyContent:"center",backgroundColor:n.soft},coProdT:o(14,n.ink2,"bold",1.35),coProdP:{...o(14,n.ink2,"regular",1.35),marginTop:2},error:{paddingVertical:12,paddingHorizontal:14,borderRadius:14,backgroundColor:n.riskBg},errorText:o(14.5,n.riskInk,"medium",1.4),toast:{paddingVertical:12,paddingHorizontal:15,borderRadius:16,backgroundColor:n.ink},toastText:o(14.5,n.toastInk,"regular",1.4),ghostLine:{height:14,borderRadius:7,backgroundColor:n.tile},fieldLabel:{...o(15,n.ink,"bold",1.3),marginBottom:8},field:{...o(17,n.ink,"regular",1.25),minHeight:52,paddingHorizontal:16,borderRadius:16,borderWidth:1.5,borderColor:n.edge,backgroundColor:n.card},fieldErr:{...o(14,n.riskInk,"bold",1.35),marginTop:6}});return r==="everfur-app"?{...s,...ya(t),palette:pa()}:{...s,palette:n}}var xa=createContext({bottomInset:0,screenBottomInset:0,cardHandoff:null,onOrderHelp:null}),Sa=xa.Provider;function Ia(){return r(xa)}function Ca(){let e=useEverfurTheme(),t=kr().options.fonts,r=no();return i(()=>Ta(e,t,r),[e,t,r])}function Page({head:e,foot:t,children:r,testID:n,onRefresh:i}){let o=Ca(),{bottomInset:a}=Ia(),[s,d]=l(false),c=i?/* @__PURE__ */A(b,{refreshing:s,tintColor:o.palette.ink3,colors:[o.palette.ink3],onRefresh:()=>{d(true),i().finally(()=>d(false))}}):void 0;/* @__PURE__ */
155
+ return A(f,{style:o.page,testID:n,children:/* @__PURE__ */W(SdkTabletColumn,{children:[e??null,
156
+ /* @__PURE__ */A(m,{style:{flex:1},contentContainerStyle:o.body,keyboardShouldPersistTaps:"handled",refreshControl:c,children:r}),t?/* @__PURE__ */A(f,{style:[o.foot,{paddingBottom:Math.max(12,a)}],children:t}):null]})})}function Title({children:e,sub:t}){let r=Ca();/* @__PURE__ */
157
+ return W(R,{children:[
158
+ /* @__PURE__ */A(Text3,{tier:"heading",style:r.title,accessibilityRole:"header",children:e}),t?/* @__PURE__ */A(Text3,{style:r.sub2,children:t}):null]})}function K({children:e}){let t=Ca();/* @__PURE__ */
159
+ return A(Text3,{tier:"heading",style:t.k,accessibilityRole:"header",children:e})}function Card3({children:e,style:t}){let r=Ca();/* @__PURE__ */
160
+ return A(f,{style:[r.card,t],children:e})}function Thumb2({rx:e,size:t=64,onCard:r,title:n,imageUrl:i}){let o=Ca(),l=io(),a=t===64?o.itemImg:t===56?r?o.subcImg:o.coProdImg:t===44?o.coPic:t===40?o.pic:o.nextIc,s=i?/* @__PURE__ */A(TilePhoto,{uri:i},i):null,d=i?{overflow:"hidden"}:null;if(l){let t=it(rt(e,n)),r=typeof a.width=="number"?a.width:48;/* @__PURE__ */
161
+ return W(f,{style:[a,{backgroundColor:Pl(t.tone)},d],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:[
162
+ /* @__PURE__ */A(Icon,{name:t.icon,size:Math.round(r*.46),color:wr("thumb")}),s]})}/* @__PURE__ */
163
+ return W(f,{style:[a,d],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:[
164
+ /* @__PURE__ */A(ShopV3Icon,{name:e?"rx":"supplement",size:Math.round(t*.46),color:o.palette.onSoft}),s]})}function La(e){let t=Ca();return i(()=>({tint:t.palette.soft,iconSize:Math.round(64*.46),icon:({size:r})=>/* @__PURE__ */A(ShopV3Icon,{name:e?"rx":"supplement",size:r,color:t.palette.onSoft})}),[e,t.palette.soft,t.palette.onSoft])}function ItemLine({rx:e,title:t,imageUrl:r,price:n,smalls:i,quantity:o,removeLabel:l,onRemove:a,testID:s}){let d=La(e);/* @__PURE__ */
165
+ return A(BlockScope,{children:/* @__PURE__ */A(CartLine,{variant:"plan",testID:s,name:t,image:r??null,fallback:d,price:n,smalls:i,quantity:o,actions:[{key:"remove",label:l,accessibilityLabel:`${l}: ${t}`,onPress:a}]})})}function IconTile({name:e,size:t=36}){let r=Ca(),n=t===72?r.emptyTile:t===40?r.carrierIc:r.nextIc;/* @__PURE__ */
166
+ return A(f,{style:n,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */A(ShopV3Icon,{name:e,size:t===72?30:t===40?21:18,color:r.palette.onSoft})})}var za={top:2,bottom:2,left:2,right:2};function Stepper({value:e,max:t,label:r,fewerLabel:n,moreLabel:i,disabled:o,onChange:l}){let a=Ca(),s=o||e<=1,d=o||e>=t;/* @__PURE__ */
167
+ return W(f,{style:a.step,accessibilityLabel:r,accessible:false,children:[
168
+ /* @__PURE__ */A(k,{style:[a.stepButton,s?a.stepOff:null],accessibilityRole:"button",accessibilityLabel:n,accessibilityState:{disabled:s},disabled:s,hitSlop:za,onPress:()=>l(e-1),children:/* @__PURE__ */A(ShopV3Icon,{name:"minus",size:16,color:a.palette.ink})}),
169
169
  /* @__PURE__ */A(Text3,{tier:"control",style:a.stepValue,accessibilityLabel:`${r}, ${e}`,children:String(e)}),
170
- /* @__PURE__ */A(y,{style:[a.stepButton,d?a.stepOff:null],accessibilityRole:"button",accessibilityLabel:i,accessibilityState:{disabled:d},disabled:d,hitSlop:fa,onPress:()=>l(e+1),children:/* @__PURE__ */A(ShopV3Icon,{name:"plus",size:16,color:a.palette.ink})})]})}function Btn({label:e,onPress:t,ghost:r,size:n="md",busy:i,busyLabel:o,disabled:l,testID:a}){let s=ha(),d=!!l||!!i,c=i&&o?o:e;/* @__PURE__ */
171
- return A(y,{style:[s.btn,n==="lg"?s.btnLg:n==="sm"?s.btnSm:null,r?s.btnGhost:null,d?s.btnOff:null],accessibilityRole:"button",accessibilityLabel:c,accessibilityState:{disabled:d,busy:!!i},disabled:d,hitSlop:n==="sm"?fa:void 0,onPress:t,testID:a,children:/* @__PURE__ */A(Text3,{tier:"control",style:[s.btnText,n==="lg"?s.btnTextLg:n==="sm"?s.btnTextSm:null,r?s.btnTextGhost:null],numberOfLines:2,children:c})})}function LinkBtn({label:e,onPress:t,tone:r="link",role:n="button",disabled:i,a11yLabel:o}){let l=ha(),a=r==="remove"?l.rm:r==="risk"?l.cancel:l.link,s=r==="remove"?l.rmText:r==="risk"?l.cancelText:l.linkText;/* @__PURE__ */
172
- return A(y,{style:[a,i?l.btnOff:null],accessibilityRole:n,accessibilityLabel:o??e,accessibilityState:{disabled:!!i},disabled:i,hitSlop:fa,onPress:t,children:/* @__PURE__ */A(Text3,{tier:"control",style:s,children:e})})}function Sum2({rows:e,flat:t}){let r=ha(),n=ro(),o=i(()=>({colors:t?{ink:r.palette.ink,bg:r.palette.paper}:{ink:r.palette.ink}}),[t,r.palette.ink,r.palette.paper]);if(e.length===0)return null;if(n==="everfur-app")/* @__PURE__ */return A(Sum,{rows:e,total:e[e.length-1]?.total===true});let l=e.findIndex(e=>e.total===true),a=e.map((e,t)=>({key:`${e.k}-${t}`,term:e.k,value:e.v})),s=l>=0?a.slice(0,l):a,d=l>=0?a[l]:void 0,c=l>=0&&l<a.length-1?a.slice(l+1):void 0;/* @__PURE__ */
173
- return A(BlockScope,{children:/* @__PURE__ */A(ThemeProvider,{theme:o,children:/* @__PURE__ */A(SummaryList,{variant:t?"inset":"card",rows:s,total:d,trailingRows:c})})})}function Track({steps:e,label:t}){let r=ha();/* @__PURE__ */
174
- return A(g,{accessibilityLabel:t,children:e.map((t,n)=>{let i=n===e.length-1,o=t.state==="done"&&e[n+1]?.state==="done";/* @__PURE__ */
175
- return z(g,{style:[r.trackLi,i?r.trackLast:null],accessible:true,accessibilityLabel:[t.title,t.line].filter(Boolean).join(", "),children:[i?null:/* @__PURE__ */A(g,{style:[r.trackRail,o?r.trackRailDone:null]}),
176
- /* @__PURE__ */A(g,{style:[r.trackDot,t.state==="done"?r.trackDotDone:t.state==="now"?r.trackDotNow:null],children:t.state==="done"?/* @__PURE__ */A(ShopV3Icon,{name:"check",size:13,color:r.palette.card}):null}),
177
- /* @__PURE__ */z(g,{style:r.grow,children:[
178
- /* @__PURE__ */A(Text3,{style:[r.trackT,t.state==="next"?r.trackTNext:null],children:t.title}),t.line?/* @__PURE__ */A(Text3,{style:r.trackD,children:t.line}):null]})]},t.key)})})}var ma={wait:"soon",done:"clear",risk:"overdue",quiet:"later",sub:"plain"};function ba(e){return{label:e.label,tone:ma[e.tone]}}function StatusPill({label:e,tone:t}){let r=ha();if(ro()==="everfur-app")/* @__PURE__ */return A(Pill2,{pill:ba({label:e,tone:t})});let n=t==="done"?r.pillDone:t==="sub"?r.pillSub:t==="risk"?r.pillRisk:t==="quiet"?r.pillQuiet:null,i=t==="done"?r.pillDoneText:t==="sub"?r.pillSubText:t==="risk"?r.pillRiskText:t==="quiet"?r.pillQuietText:null;/* @__PURE__ */
179
- return A(g,{style:[r.pill,n],children:/* @__PURE__ */A(Text3,{tier:"badge",style:[r.pillText,i],children:e})})}function Empty({icon:e,title:t,body:r,action:n}){let i=ha();/* @__PURE__ */
180
- return z(g,{style:i.empty,children:[
170
+ /* @__PURE__ */A(k,{style:[a.stepButton,d?a.stepOff:null],accessibilityRole:"button",accessibilityLabel:i,accessibilityState:{disabled:d},disabled:d,hitSlop:za,onPress:()=>l(e+1),children:/* @__PURE__ */A(ShopV3Icon,{name:"plus",size:16,color:a.palette.ink})})]})}function Btn({label:e,onPress:t,ghost:r,size:n="md",busy:i,busyLabel:o,disabled:l,testID:a}){let s=Ca(),d=!!l||!!i,c=i&&o?o:e;/* @__PURE__ */
171
+ return A(k,{style:[s.btn,n==="lg"?s.btnLg:n==="sm"?s.btnSm:null,r?s.btnGhost:null,d?s.btnOff:null],accessibilityRole:"button",accessibilityLabel:c,accessibilityState:{disabled:d,busy:!!i},disabled:d,hitSlop:n==="sm"?za:void 0,onPress:t,testID:a,children:/* @__PURE__ */A(Text3,{tier:"control",style:[s.btnText,n==="lg"?s.btnTextLg:n==="sm"?s.btnTextSm:null,r?s.btnTextGhost:null],numberOfLines:2,children:c})})}function LinkBtn({label:e,onPress:t,tone:r="link",role:n="button",disabled:i,a11yLabel:o}){let l=Ca(),a=r==="remove"?l.rm:r==="risk"?l.cancel:l.link,s=r==="remove"?l.rmText:r==="risk"?l.cancelText:l.linkText;/* @__PURE__ */
172
+ return A(k,{style:[a,i?l.btnOff:null],accessibilityRole:n,accessibilityLabel:o??e,accessibilityState:{disabled:!!i},disabled:i,hitSlop:za,onPress:t,children:/* @__PURE__ */A(Text3,{tier:"control",style:s,children:e})})}function Sum2({rows:e,flat:t}){let r=Ca(),n=no(),o=i(()=>({colors:t?{ink:r.palette.ink,bg:r.palette.paper}:{ink:r.palette.ink}}),[t,r.palette.ink,r.palette.paper]);if(e.length===0)return null;if(n==="everfur-app")/* @__PURE__ */return A(Sum,{rows:e,total:e[e.length-1]?.total===true});let l=e.findIndex(e=>e.total===true),a=e.map((e,t)=>({key:`${e.k}-${t}`,term:e.k,value:e.v})),s=l>=0?a.slice(0,l):a,d=l>=0?a[l]:void 0,c=l>=0&&l<a.length-1?a.slice(l+1):void 0;/* @__PURE__ */
173
+ return A(BlockScope,{children:/* @__PURE__ */A(ThemeProvider,{theme:o,children:/* @__PURE__ */A(SummaryList,{variant:t?"inset":"card",rows:s,total:d,trailingRows:c})})})}function Track({steps:e,label:t}){let r=Ca();/* @__PURE__ */
174
+ return A(f,{accessibilityLabel:t,children:e.map((t,n)=>{let i=n===e.length-1,o=t.state==="done"&&e[n+1]?.state==="done";/* @__PURE__ */
175
+ return W(f,{style:[r.trackLi,i?r.trackLast:null],accessible:true,accessibilityLabel:[t.title,t.line].filter(Boolean).join(", "),children:[i?null:/* @__PURE__ */A(f,{style:[r.trackRail,o?r.trackRailDone:null]}),
176
+ /* @__PURE__ */A(f,{style:[r.trackDot,t.state==="done"?r.trackDotDone:t.state==="now"?r.trackDotNow:null],children:t.state==="done"?/* @__PURE__ */A(ShopV3Icon,{name:"check",size:13,color:r.palette.card}):null}),
177
+ /* @__PURE__ */W(f,{style:r.grow,children:[
178
+ /* @__PURE__ */A(Text3,{style:[r.trackT,t.state==="next"?r.trackTNext:null],children:t.title}),t.line?/* @__PURE__ */A(Text3,{style:r.trackD,children:t.line}):null]})]},t.key)})})}var Wa={wait:"soon",done:"clear",risk:"overdue",quiet:"later",sub:"plain"};function Aa(e){return{label:e.label,tone:Wa[e.tone]}}function StatusPill({label:e,tone:t}){let r=Ca();if(no()==="everfur-app")/* @__PURE__ */return A(Pill2,{pill:Aa({label:e,tone:t})});let n=t==="done"?r.pillDone:t==="sub"?r.pillSub:t==="risk"?r.pillRisk:t==="quiet"?r.pillQuiet:null,i=t==="done"?r.pillDoneText:t==="sub"?r.pillSubText:t==="risk"?r.pillRiskText:t==="quiet"?r.pillQuietText:null;/* @__PURE__ */
179
+ return A(f,{style:[r.pill,n],children:/* @__PURE__ */A(Text3,{tier:"badge",style:[r.pillText,i],children:e})})}function Empty({icon:e,title:t,body:r,action:n}){let i=Ca();/* @__PURE__ */
180
+ return W(f,{style:i.empty,children:[
181
181
  /* @__PURE__ */A(IconTile,{name:e,size:72}),
182
- /* @__PURE__ */A(Text3,{tier:"heading",style:i.emptyTitle,accessibilityRole:"header",children:t}),r?/* @__PURE__ */A(Text3,{style:i.emptyBody,children:r}):null,n?/* @__PURE__ */A(g,{style:i.emptyAct,children:n}):null]})}function Ghosts({rows:e=3}){let t=ha(),r=["100%","82%","64%"];/* @__PURE__ */
183
- return A(g,{style:[t.card,{gap:12}],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:"shop-ghost",children:Array.from({length:e},(e,n)=>/* @__PURE__ */A(g,{style:[t.ghostLine,{width:r[n%3]}]},n))})}function ErrorLine({line:e,children:t}){let r=ha();return e?/* @__PURE__ */z(g,{style:[r.error,{gap:10}],accessibilityLiveRegion:"polite",testID:"shop-error",children:[
184
- /* @__PURE__ */A(Text3,{style:r.errorText,accessibilityRole:"alert",children:e}),t??null]}):null}function Toast2({line:e}){let t=ha();return e?/* @__PURE__ */A(g,{style:t.toast,accessibilityLiveRegion:"polite",testID:"shop-toast",children:/* @__PURE__ */A(Text3,{style:t.toastText,children:e})}):null}function Sheet2({open:e,kicker:t,closeLabel:r,onClose:n,children:i,foot:o,testID:l}){let a=ha(),{screenBottomInset:s}=pa();/* @__PURE__ */
185
- return A(v,{visible:e,transparent:true,animationType:"slide",onRequestClose:n,statusBarTranslucent:true,children:/* @__PURE__ */z(x,{style:a.scrim,behavior:k.OS==="ios"?"padding":void 0,children:[
186
- /* @__PURE__ */A(y,{style:{position:"absolute",top:0,right:0,bottom:0,left:0},onPress:n,accessibilityRole:"button",accessibilityLabel:r}),
187
- /* @__PURE__ */z(g,{style:[a.sheet,{paddingBottom:Math.max(24,s+6)}],accessibilityViewIsModal:true,testID:l??"shop-sheet",children:[
188
- /* @__PURE__ */A(g,{style:a.grab,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"}),
189
- /* @__PURE__ */z(g,{style:a.sheetTop,children:[
182
+ /* @__PURE__ */A(Text3,{tier:"heading",style:i.emptyTitle,accessibilityRole:"header",children:t}),r?/* @__PURE__ */A(Text3,{style:i.emptyBody,children:r}):null,n?/* @__PURE__ */A(f,{style:i.emptyAct,children:n}):null]})}function Ghosts({rows:e=3}){let t=Ca(),r=["100%","82%","64%"];/* @__PURE__ */
183
+ return A(f,{style:[t.card,{gap:12}],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:"shop-ghost",children:Array.from({length:e},(e,n)=>/* @__PURE__ */A(f,{style:[t.ghostLine,{width:r[n%3]}]},n))})}function ErrorLine({line:e,children:t}){let r=Ca();return e?/* @__PURE__ */W(f,{style:[r.error,{gap:10}],accessibilityLiveRegion:"polite",testID:"shop-error",children:[
184
+ /* @__PURE__ */A(Text3,{style:r.errorText,accessibilityRole:"alert",children:e}),t??null]}):null}function Toast2({line:e}){let t=Ca();return e?/* @__PURE__ */A(f,{style:t.toast,accessibilityLiveRegion:"polite",testID:"shop-toast",children:/* @__PURE__ */A(Text3,{style:t.toastText,children:e})}):null}function Sheet2({open:e,kicker:t,closeLabel:r,onClose:n,children:i,foot:o,testID:l}){let a=Ca(),{screenBottomInset:s}=Ia(),d=Sl();/* @__PURE__ */
185
+ return A(x,{visible:e,transparent:true,animationType:"slide",onRequestClose:n,statusBarTranslucent:true,children:/* @__PURE__ */W(S,{style:a.scrim,behavior:w.OS==="ios"?"padding":void 0,children:[
186
+ /* @__PURE__ */A(k,{style:{position:"absolute",top:0,right:0,bottom:0,left:0},onPress:n,accessibilityRole:"button",accessibilityLabel:r}),
187
+ /* @__PURE__ */W(f,{style:Il([a.sheet,{paddingBottom:Math.max(24,s+6)}],d),accessibilityViewIsModal:true,testID:l??"shop-sheet",children:[
188
+ /* @__PURE__ */A(f,{style:a.grab,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"}),
189
+ /* @__PURE__ */W(f,{style:a.sheetTop,children:[
190
190
  /* @__PURE__ */A(Text3,{tier:"compact",style:a.kicker,accessibilityRole:"header",children:t}),
191
- /* @__PURE__ */A(y,{style:a.x,onPress:n,accessibilityRole:"button",accessibilityLabel:r,hitSlop:fa,children:/* @__PURE__ */A(ShopV3Icon,{name:"close",size:18,color:a.palette.ink})})]}),
192
- /* @__PURE__ */A(f,{style:{flexGrow:0},contentContainerStyle:a.co,keyboardShouldPersistTaps:"handled",children:i}),o?/* @__PURE__ */A(g,{style:{marginTop:12,gap:10},children:o}):null]})]})})}function CoRow({icon:e,k:t,value:r,onPress:n,disabled:i}){let o=ha(),l=/* @__PURE__ */z(W,{children:[e?/* @__PURE__ */A(ShopV3Icon,{name:e,size:20,color:o.palette.ink2}):null,
191
+ /* @__PURE__ */A(k,{style:a.x,onPress:n,accessibilityRole:"button",accessibilityLabel:r,hitSlop:za,children:/* @__PURE__ */A(ShopV3Icon,{name:"close",size:18,color:a.palette.ink})})]}),
192
+ /* @__PURE__ */A(m,{style:{flexGrow:0},contentContainerStyle:a.co,keyboardShouldPersistTaps:"handled",children:i}),o?/* @__PURE__ */A(f,{style:{marginTop:12,gap:10},children:o}):null]})]})})}function CoRow({icon:e,k:t,value:r,onPress:n,disabled:i}){let o=Ca(),l=/* @__PURE__ */W(R,{children:[e?/* @__PURE__ */A(ShopV3Icon,{name:e,size:20,color:o.palette.ink2}):null,
193
193
  /* @__PURE__ */A(Text3,{style:o.coKey,children:t}),
194
- /* @__PURE__ */A(Text3,{style:o.coValue,numberOfLines:2,children:r}),n?/* @__PURE__ */A(ShopV3Icon,{name:"chev",size:16,color:o.palette.ink3}):null]});return n?/* @__PURE__ */A(y,{style:[o.coRow,i?o.btnOff:null],onPress:n,disabled:i,accessibilityRole:"button",accessibilityLabel:`${t}, ${r}`,children:l}):/* @__PURE__ */A(g,{style:o.coRow,accessible:true,accessibilityLabel:`${t}, ${r}`,children:l})}function Opt({on:e,name:t,small:r,onPress:n}){let i=ha();/* @__PURE__ */
195
- return z(y,{style:[i.opt,e?i.optOn:null],onPress:n,accessibilityRole:"radio",accessibilityState:{checked:e,selected:e},accessibilityLabel:[t,r].filter(Boolean).join(", "),children:[
196
- /* @__PURE__ */A(g,{style:[i.optRadio,e?i.optRadioOn:null]}),
197
- /* @__PURE__ */z(g,{style:i.grow,children:[
198
- /* @__PURE__ */A(Text3,{style:i.optName,children:t}),r?/* @__PURE__ */A(Text3,{style:i.optSmall,children:r}):null]})]})}function Field2({label:e,value:t,onChange:r,autoComplete:n,error:i,kind:o}){let l=ha();/* @__PURE__ */
199
- return z(g,{children:[
194
+ /* @__PURE__ */A(Text3,{style:o.coValue,numberOfLines:2,children:r}),n?/* @__PURE__ */A(ShopV3Icon,{name:"chev",size:16,color:o.palette.ink3}):null]});return n?/* @__PURE__ */A(k,{style:[o.coRow,i?o.btnOff:null],onPress:n,disabled:i,accessibilityRole:"button",accessibilityLabel:`${t}, ${r}`,children:l}):/* @__PURE__ */A(f,{style:o.coRow,accessible:true,accessibilityLabel:`${t}, ${r}`,children:l})}function Opt({on:e,name:t,small:r,onPress:n}){let i=Ca();/* @__PURE__ */
195
+ return W(k,{style:[i.opt,e?i.optOn:null],onPress:n,accessibilityRole:"radio",accessibilityState:{checked:e,selected:e},accessibilityLabel:[t,r].filter(Boolean).join(", "),children:[
196
+ /* @__PURE__ */A(f,{style:[i.optRadio,e?i.optRadioOn:null]}),
197
+ /* @__PURE__ */W(f,{style:i.grow,children:[
198
+ /* @__PURE__ */A(Text3,{style:i.optName,children:t}),r?/* @__PURE__ */A(Text3,{style:i.optSmall,children:r}):null]})]})}function Field2({label:e,value:t,onChange:r,autoComplete:n,error:i,kind:o}){let l=Ca();/* @__PURE__ */
199
+ return W(f,{children:[
200
200
  /* @__PURE__ */A(Text3,{tier:"control",style:l.fieldLabel,children:e}),
201
- /* @__PURE__ */A(Hl,{style:l.field,value:t,onChangeText:r,accessibilityLabel:e,autoComplete:n,placeholderTextColor:l.palette.ink3,...o==="state"?{autoCapitalize:"characters",autoCorrect:false,maxLength:2}:null,...o==="zip"?{keyboardType:"number-pad",maxLength:10}:null}),i?/* @__PURE__ */A(Text3,{style:l.fieldErr,children:i}):null]})}function ya(e,t){return e.steps?.find(e=>e.key===t)?.at??null}function ka(e,t){let r=mt[e.summary.status];if(r===void 0)return null;let n=e.shipments.flatMap(e=>e.tracking),i=e=>n.filter(t=>e(t.status)).map(e=>e.occurredAt).filter(e=>!!e).sort()[0]??null,o=er(e),l=o?.trackingNumber?[o.carrier,o.trackingNumber].filter(Boolean).join(" "):null,a=Ie(tr(e),{weekday:true}),s=r===5;return[{key:"approved",title:t.stepApproved,when:formatWhen(e.summary.placedAt),text:null},{key:"checking",title:t.stepChecking,when:null,text:null},{key:"filled",title:t.stepFilled,when:null,text:null},{key:"shipped",title:t.stepShipped,when:formatWhen(ya(e,"shipped")??i(()=>true)),text:l},{key:"delivered",title:t.stepDelivered,when:formatWhen(ya(e,"delivered")??i(e=>e==="delivered")),text:!s&&a?t.expected(a):null}].map((e,t)=>{let n=t<r||s?"done":t===r?"now":"next";return{...e,when:n==="next"?null:e.when,state:n}})}function AppOrderScreen({orderId:e,go:t}){let{copy:r,v3:n,petName:i}=Oe(),o=pa(),l=yr(),a=Cr(),{order:s,o:d,ref:c,line:u,asking:p,setAsking:h,pay:f,cancel:m,busy:b,onPay:y,onCancel:k,sum:w,refundRow:v,paidCard:x,buyAgain:S}=Rl(e,t);if(!d)/* @__PURE__ */
202
- return A(Frame,{onRefresh:s.reread,children:/* @__PURE__ */z(g,{testID:"shop-order",children:[s.phase==="loading"?/* @__PURE__ */A(Ghost,{rows:2}):null,
203
- /* @__PURE__ */A(Stack,{children:s.phase==="loading"?/* @__PURE__ */z(Card2,{children:[
201
+ /* @__PURE__ */A(jl,{style:l.field,value:t,onChangeText:r,accessibilityLabel:e,autoComplete:n,placeholderTextColor:l.palette.ink3,...o==="state"?{autoCapitalize:"characters",autoCorrect:false,maxLength:2}:null,...o==="zip"?{keyboardType:"number-pad",maxLength:10}:null}),i?/* @__PURE__ */A(Text3,{style:l.fieldErr,children:i}):null]})}function Ra(e,t){return e.steps?.find(e=>e.key===t)?.at??null}function Fa(e,t){let r=bt[e.summary.status];if(r===void 0)return null;let n=e.shipments.flatMap(e=>e.tracking),i=e=>n.filter(t=>e(t.status)).map(e=>e.occurredAt).filter(e=>!!e).sort()[0]??null,o=tr(e),l=o?.trackingNumber?[o.carrier,o.trackingNumber].filter(Boolean).join(" "):null,a=Ce(rr(e),{weekday:true}),s=r===5;return[{key:"approved",title:t.stepApproved,when:formatWhen(e.summary.placedAt),text:null},{key:"checking",title:t.stepChecking,when:null,text:null},{key:"filled",title:t.stepFilled,when:null,text:null},{key:"shipped",title:t.stepShipped,when:formatWhen(Ra(e,"shipped")??i(()=>true)),text:l},{key:"delivered",title:t.stepDelivered,when:formatWhen(Ra(e,"delivered")??i(e=>e==="delivered")),text:!s&&a?t.expected(a):null}].map((e,t)=>{let n=t<r||s?"done":t===r?"now":"next";return{...e,when:n==="next"?null:e.when,state:n}})}function AppOrderScreen({orderId:e,go:t}){let{copy:r,v3:n,petName:i}=De(),o=Ia(),l=kr(),a=Lr(),{order:s,o:d,ref:c,line:u,asking:p,setAsking:h,pay:g,cancel:m,busy:b,onPay:y,onCancel:k,sum:w,refundRow:v,paidCard:x,buyAgain:S}=Ml(e,t);if(!d)/* @__PURE__ */
202
+ return A(Frame,{onRefresh:s.reread,children:/* @__PURE__ */W(f,{testID:"shop-order",children:[s.phase==="loading"?/* @__PURE__ */A(Ghost,{rows:2}):null,
203
+ /* @__PURE__ */A(Stack,{children:s.phase==="loading"?/* @__PURE__ */W(Card2,{children:[
204
204
  /* @__PURE__ */A(CardTitle,{children:r.whereItStands}),
205
205
  /* @__PURE__ */A(Ghost,{})]}):/* @__PURE__ */A(LoadFailed,{copy:r,thing:r.thingOrder,retry:s.refresh})}),
206
- /* @__PURE__ */A(Legal,{line:r.legalTracking})]})});let I=[c?n.orderTitle(c):null,or(d,r,n)].filter(Boolean).join(" · "),C=ka(d,r),L=er(d),W=L?.carrier??null,R=l.v("rowLink"),F=cr.noteAfterTotal.marginTop;/* @__PURE__ */
207
- return z(Frame,{onRefresh:s.reread,children:[
208
- /* @__PURE__ */z(g,{testID:"shop-order",children:[
209
- /* @__PURE__ */A(TitleBlock,{title:ir(d,r,n),meta:I||null}),
206
+ /* @__PURE__ */A(Legal,{line:r.legalTracking})]})});let I=[c?n.orderTitle(c):null,lr(d,r,n)].filter(Boolean).join(" · "),C=Fa(d,r),L=tr(d),z=L?.carrier??null,R=l.v("rowLink"),F=ur.noteAfterTotal.marginTop;/* @__PURE__ */
207
+ return W(Frame,{onRefresh:s.reread,children:[
208
+ /* @__PURE__ */W(f,{testID:"shop-order",children:[
209
+ /* @__PURE__ */A(TitleBlock,{title:or(d,r,n),meta:I||null}),
210
210
  /* @__PURE__ */A(InlineError,{line:u}),
211
- /* @__PURE__ */z(Stack,{children:[C?/* @__PURE__ */z(Card2,{children:[
211
+ /* @__PURE__ */W(Stack,{children:[C?/* @__PURE__ */W(Card2,{children:[
212
212
  /* @__PURE__ */A(CardTitle,{children:r.whereItStands}),
213
- /* @__PURE__ */A(g,{accessibilityLabel:n.tracking,children:/* @__PURE__ */A(Tracker,{copy:r,steps:C})}),L?.trackingUrl?/* @__PURE__ */A(g,{style:{marginTop:F},children:/* @__PURE__ */A(Press,{role:"link",label:W?n.trackOn(W):r.trackPackage,onPress:()=>a.openExternal(L.trackingUrl),style:[l.v("cardLink"),{alignSelf:"flex-start"}],children:/* @__PURE__ */A(T,{k:"cardLink",bare:true,style:xr("cardLink"),children:W?n.trackOn(W):r.trackPackage})})}):null]}):null,
214
- /* @__PURE__ */z(Card2,{children:[
213
+ /* @__PURE__ */A(f,{accessibilityLabel:n.tracking,children:/* @__PURE__ */A(Tracker,{copy:r,steps:C})}),L?.trackingUrl?/* @__PURE__ */A(f,{style:{marginTop:F},children:/* @__PURE__ */A(Press,{role:"link",label:z?n.trackOn(z):r.trackPackage,onPress:()=>a.openExternal(L.trackingUrl),style:[l.v("cardLink"),{alignSelf:"flex-start"}],children:/* @__PURE__ */A(T,{k:"cardLink",bare:true,style:Sr("cardLink"),children:z?n.trackOn(z):r.trackPackage})})}):null]}):null,
214
+ /* @__PURE__ */W(Card2,{children:[
215
215
  /* @__PURE__ */A(CardTitle,{children:r.inTheBox}),
216
- /* @__PURE__ */A(g,{children:d.lines.map((e,t)=>{let o=nt(tt(e.requiresRx,e.title)),l=[i(e.petId),n.orderItemLine(e.quantity)].filter(Boolean).join(" · ");/* @__PURE__ */
217
- return z(ItemRow,{index:t,count:d.lines.length,first:"trackItemsLiFirst",last:"trackItemsLiLast",thumb:/* @__PURE__ */A(Thumb,{tone:o.tone,icon:o.icon,imageUrl:e.imageUrl??null}),children:[
216
+ /* @__PURE__ */A(f,{children:d.lines.map((e,t)=>{let o=it(rt(e.requiresRx,e.title)),l=[i(e.petId),n.orderItemLine(e.quantity)].filter(Boolean).join(" · ");/* @__PURE__ */
217
+ return W(ItemRow,{index:t,count:d.lines.length,first:"trackItemsLiFirst",last:"trackItemsLiLast",thumb:/* @__PURE__ */A(Thumb,{tone:o.tone,icon:o.icon,imageUrl:e.imageUrl??null}),children:[
218
218
  /* @__PURE__ */A(ItemName,{name:e.title,rx:e.requiresRx,copy:r}),l?/* @__PURE__ */A(T,{k:"itemsMeta",children:l}):null]},e.lineId)})})]}),
219
- /* @__PURE__ */z(Card2,{children:[
219
+ /* @__PURE__ */W(Card2,{children:[
220
220
  /* @__PURE__ */A(CardTitle,{children:r.payment}),
221
- /* @__PURE__ */A(Sum,{rows:w,total:true}),v?/* @__PURE__ */A(g,{style:{marginTop:F},children:/* @__PURE__ */A(Sum,{rows:[v],total:false})}):null,x?/* @__PURE__ */A(T,{k:"noteAfterTotal",children:`${n.paidWith} ${Le(x.brand,x.last4)}`}):null,d.canPay?/* @__PURE__ */A(g,{style:{marginTop:l.v("breaks").marginTop},testID:"shop-order-pay",children:/* @__PURE__ */A(InkButton,{action:{label:r.payOrder,busy:f.busy,busyLabel:r.saving,disabled:b,onPress:y}})}):null]}),S||o.onOrderHelp||d.canCancel?/* @__PURE__ */z(g,{style:{rowGap:l.v("sheetActions").rowGap},children:[S?/* @__PURE__ */A(OutlineButton,{k:"btnOutline",action:{label:n.buyAgain,onPress:S}}):null,o.onOrderHelp?/* @__PURE__ */A(CardLinkButton,{label:n.orderHelp,onPress:()=>o.onOrderHelp?.(e)}):null,d.canCancel?/* @__PURE__ */A(CardLinkButton,{label:r.cancelOrder,danger:true,disabled:b,onPress:()=>h(true)}):null]}):null,
222
- /* @__PURE__ */z(Press,{role:"link",label:r.allOrders,onPress:()=>t({name:"orders"}),style:[R,{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
221
+ /* @__PURE__ */A(Sum,{rows:w,total:true}),v?/* @__PURE__ */A(f,{style:{marginTop:F},children:/* @__PURE__ */A(Sum,{rows:[v],total:false})}):null,x?/* @__PURE__ */A(T,{k:"noteAfterTotal",children:`${n.paidWith} ${ze(x.brand,x.last4)}`}):null,d.canPay?/* @__PURE__ */A(f,{style:{marginTop:l.v("breaks").marginTop},testID:"shop-order-pay",children:/* @__PURE__ */A(InkButton,{action:{label:r.payOrder,busy:g.busy,busyLabel:r.saving,disabled:b,onPress:y}})}):null]}),S||o.onOrderHelp||d.canCancel?/* @__PURE__ */W(f,{style:{rowGap:l.v("sheetActions").rowGap},children:[S?/* @__PURE__ */A(OutlineButton,{k:"btnOutline",action:{label:n.buyAgain,onPress:S}}):null,o.onOrderHelp?/* @__PURE__ */A(CardLinkButton,{label:n.orderHelp,onPress:()=>o.onOrderHelp?.(e)}):null,d.canCancel?/* @__PURE__ */A(CardLinkButton,{label:r.cancelOrder,danger:true,disabled:b,onPress:()=>h(true)}):null]}):null,
222
+ /* @__PURE__ */W(Press,{role:"link",label:r.allOrders,onPress:()=>t({name:"orders"}),style:[R,{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
223
223
  /* @__PURE__ */A(PartIcon,{name:"box",k:"rowLinkIcon",inkKey:"rowLink",style:{marginRight:R.columnGap}}),
224
224
  /* @__PURE__ */A(T,{k:"rowLink",bare:true,style:{flex:1,minWidth:0},children:r.allOrders}),
225
225
  /* @__PURE__ */A(PartIcon,{name:"chevron",k:"rowLinkChevron",style:{marginLeft:R.columnGap}})]})]}),
226
226
  /* @__PURE__ */A(Legal,{line:r.legalTracking})]}),
227
227
  /* @__PURE__ */A(ConfirmSheet,{open:p,title:n.cancelAsk,body:n.cancelBody,confirm:r.cancelOrder,keep:r.keepIt,closeLabel:r.close,busyLabel:r.saving,busy:m.busy,error:null,onConfirm:k,onClose:()=>!m.busy&&h(false)})]})}function CardLinkButton({label:e,onPress:t,danger:r,disabled:n}){let i=r?"linkDanger":"cardLink";/* @__PURE__ */
228
- return A(Press,{label:e,onPress:t,disabled:n===true,style:{minHeight:44,justifyContent:"center",alignSelf:"center",opacity:n?.4:1},children:/* @__PURE__ */A(T,{k:i,bare:true,style:[xr(i),{textDecorationLine:"underline",textAlign:"center"}],children:e})})}var wa=[30,60,90];function va(e){return wa.includes(e)?wa:[...wa,e].sort((e,t)=>e-t)}function Ta(){let{client:e}=Oe(),t=je(),[r,o]=l(/* @__PURE__ */new Map),a=t.value;n(()=>o(/* @__PURE__ */new Map),[a]);let s=i(()=>(a?.plans??[]).map(e=>r.get(e.planId)??e).filter(e=>e.state!=="cancelled"),[a,r]),d=[...new Set(s.flatMap(e=>e.lines.map(e=>e.offerId)))].sort(),c=De(d.length>0?`v3-plan-offers:${d.join(",")}`:null,async()=>{let t=await Promise.all(d.map(t=>e.offer(t)));return oe(new Map(d.map((e,r)=>[e,t[r].ok?t[r].value:null])))});return{phase:t.phase==="unavailable"?"none":t.phase==="failed"?"failed":t.phase==="loading"||d.length>0&&c.phase==="loading"?"loading":"ready",plans:s,offers:c.value??/* @__PURE__ */new Map,refresh:t.refresh,put:e=>o(t=>new Map(t).set(e.planId,e))}}function xa(e,t,r){return sr(e.lines.map(e=>({title:t.get(e.offerId)?.title??r})))}var Sa=(e,t)=>e.lines.some(e=>t.get(e.offerId)?.requiresRx===true);function Subscriptions({subs:e,onOrders:t}){let{client:r,copy:n,v3:i}=Oe(),{pkg:o}=kt(),a=ha(),[s,d]=l(null),[c,u]=l("main"),[p,h]=l(null),[f,m]=l(null),b=Ye((e,t,n)=>r.updatePlan(t.planId,{idempotencyKey:e.key(`cadence:${t.planId}:${n}`),cadenceDays:n})),y=Ye((e,t,n)=>r.planAction(t.planId,{idempotencyKey:e.key(`${n}:${t.planId}`),operation:n})),k=Ye((e,t)=>r.cancelPlan(t.planId)),w=b.busy||y.busy||k.busy,v=wt(o);if(e.phase==="none"||e.phase==="ready"&&e.plans.length===0)return null;if(e.phase==="loading")/* @__PURE__ */return A(Ghosts,{rows:2});if(e.phase==="failed")/* @__PURE__ */
229
- return A(ErrorLine,{line:n.loadFailed(n.thingPlan),children:/* @__PURE__ */A(Btn,{ghost:true,size:"sm",label:n.tryAgain,onPress:e.refresh})});let x=s?e.plans.find(e=>e.planId===s)??null:null,S=e=>{d(e.planId),u("main"),h(null),m(null)},I=()=>{w||(d(null),u("main"),h(null),m(null))},C=(t,r,i)=>t?t.ok?(m(null),h(r),e.put(t.value),o.refresh(),true):(m(Fe(n,t.error)),false):false,L=(e,t)=>{w||t===e.cadenceDays||(h(null),b.run(e,t).then(e=>C(e,null)))},R=(e,t)=>{h(null),y.run(e,t).then(e=>{C(e,t==="skip"?i.skipped:null)&&u("main")})},F=e=>{k.run(e).then(e=>{C(e,null)&&(d(null),u("main"))})};/* @__PURE__ */
230
- return z(W,{children:[
231
- /* @__PURE__ */A(K,{children:i.manageKicker}),e.plans.map(t=>/* @__PURE__ */A(PlanCard,{plan:t,name:xa(t,e.offers,n.itemNoLongerSold),rx:Sa(t,e.offers),month:v,onManage:()=>S(t)},t.planId)),
232
- /* @__PURE__ */A(Sheet2,{open:x!==null,kicker:i.manageKicker,closeLabel:n.close,onClose:I,testID:"shop-manage",children:x?c==="main"?/* @__PURE__ */A(ManageMain,{plan:x,name:xa(x,e.offers,n.itemNoLongerSold),rx:Sa(x,e.offers),busy:w,line:p,error:f,onEvery:e=>L(x,e),onSkip:()=>R(x,"skip"),onPause:()=>{h(null),m(null),u("pause")},onResume:()=>R(x,"resume"),onCancel:()=>{h(null),m(null),u("cancel")},onOrders:()=>{I(),t()}}):/* @__PURE__ */z(g,{style:{gap:10},children:[
228
+ return A(Press,{label:e,onPress:t,disabled:n===true,style:{minHeight:44,justifyContent:"center",alignSelf:"center",opacity:n?.4:1},children:/* @__PURE__ */A(T,{k:i,bare:true,style:[Sr(i),{textDecorationLine:"underline",textAlign:"center"}],children:e})})}var Ha=[30,60,90];function Pa(e){return Ha.includes(e)?Ha:[...Ha,e].sort((e,t)=>e-t)}function Ba(){let{client:e}=De(),t=Ze(),[r,o]=l(/* @__PURE__ */new Map),a=t.value;n(()=>o(/* @__PURE__ */new Map),[a]);let s=i(()=>(a?.plans??[]).map(e=>r.get(e.planId)??e).filter(e=>e.state!=="cancelled"),[a,r]),d=[...new Set(s.flatMap(e=>e.lines.map(e=>e.offerId)))].sort(),c=Ee(d.length>0?`v3-plan-offers:${d.join(",")}`:null,async()=>{let t=await Promise.all(d.map(t=>e.offer(t)));return le(new Map(d.map((e,r)=>[e,t[r].ok?t[r].value:null])))});return{phase:t.phase==="unavailable"?"none":t.phase==="failed"?"failed":t.phase==="loading"||d.length>0&&c.phase==="loading"?"loading":"ready",plans:s,offers:c.value??/* @__PURE__ */new Map,refresh:t.refresh,put:e=>o(t=>new Map(t).set(e.planId,e))}}function Oa(e,t,r){return dr(e.lines.map(e=>({title:t.get(e.offerId)?.title??r})))}var Da=(e,t)=>e.lines.some(e=>t.get(e.offerId)?.requiresRx===true);function Subscriptions({subs:e,onOrders:t}){let{client:r,copy:n,v3:i}=De(),{pkg:o}=wt(),a=Ca(),[s,d]=l(null),[c,u]=l("main"),[p,h]=l(null),[g,m]=l(null),b=Je((e,t,n)=>r.updatePlan(t.planId,{idempotencyKey:e.key(`cadence:${t.planId}:${n}`),cadenceDays:n})),y=Je((e,t,n)=>r.planAction(t.planId,{idempotencyKey:e.key(`${n}:${t.planId}`),operation:n})),k=Je((e,t)=>r.cancelPlan(t.planId)),w=b.busy||y.busy||k.busy,v=vt(o);if(e.phase==="none"||e.phase==="ready"&&e.plans.length===0)return null;if(e.phase==="loading")/* @__PURE__ */return A(Ghosts,{rows:2});if(e.phase==="failed")/* @__PURE__ */
229
+ return A(ErrorLine,{line:n.loadFailed(n.thingPlan),children:/* @__PURE__ */A(Btn,{ghost:true,size:"sm",label:n.tryAgain,onPress:e.refresh})});let x=s?e.plans.find(e=>e.planId===s)??null:null,S=e=>{d(e.planId),u("main"),h(null),m(null)},I=()=>{w||(d(null),u("main"),h(null),m(null))},C=(t,r,i)=>t?t.ok?(m(null),h(r),e.put(t.value),o.refresh(),true):(m(He(n,t.error)),false):false,L=(e,t)=>{w||t===e.cadenceDays||(h(null),b.run(e,t).then(e=>C(e,null)))},z=(e,t)=>{h(null),y.run(e,t).then(e=>{C(e,t==="skip"?i.skipped:null)&&u("main")})},F=e=>{k.run(e).then(e=>{C(e,null)&&(d(null),u("main"))})};/* @__PURE__ */
230
+ return W(R,{children:[
231
+ /* @__PURE__ */A(K,{children:i.manageKicker}),e.plans.map(t=>/* @__PURE__ */A(PlanCard,{plan:t,name:Oa(t,e.offers,n.itemNoLongerSold),rx:Da(t,e.offers),month:v,onManage:()=>S(t)},t.planId)),
232
+ /* @__PURE__ */A(Sheet2,{open:x!==null,kicker:i.manageKicker,closeLabel:n.close,onClose:I,testID:"shop-manage",children:x?c==="main"?/* @__PURE__ */A(ManageMain,{plan:x,name:Oa(x,e.offers,n.itemNoLongerSold),rx:Da(x,e.offers),busy:w,line:p,error:g,onEvery:e=>L(x,e),onSkip:()=>z(x,"skip"),onPause:()=>{h(null),m(null),u("pause")},onResume:()=>z(x,"resume"),onCancel:()=>{h(null),m(null),u("cancel")},onOrders:()=>{I(),t()}}):/* @__PURE__ */W(f,{style:{gap:10},children:[
233
233
  /* @__PURE__ */A(Text3,{tier:"heading",style:a.sheetTitle,accessibilityRole:"header",children:c==="pause"?n.pausePlanAsk:i.cancelSubscriptionAsk}),
234
234
  /* @__PURE__ */A(Text3,{style:a.sub2,children:c==="pause"?n.pausePlanBody:i.cancelSubscriptionBody}),
235
- /* @__PURE__ */A(ErrorLine,{line:f}),
236
- /* @__PURE__ */z(g,{style:{gap:10,marginTop:8},children:[
237
- /* @__PURE__ */A(Btn,{label:c==="pause"?n.pausePlan:i.cancelSubscription,busy:w,busyLabel:n.saving,onPress:()=>c==="pause"?R(x,"pause"):F(x),testID:c==="pause"?"shop-plan-pause-confirm":"shop-plan-cancel-confirm"}),
238
- /* @__PURE__ */A(Btn,{ghost:true,label:n.keepIt,disabled:w,onPress:()=>{m(null),u("main")}})]})]}):null})]})}function PlanCard({plan:e,name:t,rx:r,month:n,onManage:i}){let{copy:o,v3:l}=Oe(),a=ha(),s=e.state==="active"?Ie(e.nextRun):null,d=Ia(e,o,n);/* @__PURE__ */
239
- return z(g,{style:a.subc,testID:"shop-plan-card",children:[
235
+ /* @__PURE__ */A(ErrorLine,{line:g}),
236
+ /* @__PURE__ */W(f,{style:{gap:10,marginTop:8},children:[
237
+ /* @__PURE__ */A(Btn,{label:c==="pause"?n.pausePlan:i.cancelSubscription,busy:w,busyLabel:n.saving,onPress:()=>c==="pause"?z(x,"pause"):F(x),testID:c==="pause"?"shop-plan-pause-confirm":"shop-plan-cancel-confirm"}),
238
+ /* @__PURE__ */A(Btn,{ghost:true,label:n.keepIt,disabled:w,onPress:()=>{m(null),u("main")}})]})]}):null})]})}function PlanCard({plan:e,name:t,rx:r,month:n,onManage:i}){let{copy:o,v3:l}=De(),a=Ca(),s=e.state==="active"?Ce(e.nextRun):null,d=Ea(e,o,n);/* @__PURE__ */
239
+ return W(f,{style:a.subc,testID:"shop-plan-card",children:[
240
240
  /* @__PURE__ */A(Thumb2,{rx:r,size:56,onCard:true,title:t}),
241
- /* @__PURE__ */z(g,{style:a.grow,accessible:true,accessibilityLabel:[t,s?l.nextBox(s):null,d??l.everyDays(e.cadenceDays)].filter(Boolean).join(", "),children:[
241
+ /* @__PURE__ */W(f,{style:a.grow,accessible:true,accessibilityLabel:[t,s?l.nextBox(s):null,d??l.everyDays(e.cadenceDays)].filter(Boolean).join(", "),children:[
242
242
  /* @__PURE__ */A(Text3,{style:a.subcName,children:t}),s?/* @__PURE__ */A(Text3,{style:a.subcSmall,children:l.nextBox(s)}):null,d?/* @__PURE__ */A(Text3,{style:e.state==="paused"&&(e.stopReason??"customer")==="customer"?a.subcSmall:a.subcAlert,children:d}):/* @__PURE__ */A(Text3,{style:a.subcSmall,children:l.everyDays(e.cadenceDays)})]}),
243
- /* @__PURE__ */A(y,{style:a.subcBtn,onPress:i,accessibilityRole:"button",accessibilityLabel:l.manageTitle(t),hitSlop:{top:2,bottom:2,left:2,right:2},children:/* @__PURE__ */A(Text3,{tier:"control",style:a.subcBtnText,children:l.manage})})]})}function Ia(e,t,r){let n=e.stopReason;return n==="payment_declined"?t.declined(r):n&&n!=="customer"?t.stopReason(n):e.state==="paused"?t.pausePlanBody:null}function ManageMain({plan:e,name:t,rx:r,busy:n,line:i,error:o,onEvery:l,onSkip:a,onPause:s,onResume:d,onCancel:c,onOrders:u}){let{copy:p,v3:h}=Oe(),f=ha(),m=e.state==="active",b=e.state==="paused",k=m?Ie(e.nextRun):null;/* @__PURE__ */
244
- return z(g,{style:f.co,children:[
245
- /* @__PURE__ */z(g,{style:f.coProd,accessible:true,accessibilityRole:"header",accessibilityLabel:`${h.manageTitle(t)}, ${h.subscribedLine(e.cadenceDays,k)}`,children:[
243
+ /* @__PURE__ */A(k,{style:a.subcBtn,onPress:i,accessibilityRole:"button",accessibilityLabel:l.manageTitle(t),hitSlop:{top:2,bottom:2,left:2,right:2},children:/* @__PURE__ */A(Text3,{tier:"control",style:a.subcBtnText,children:l.manage})})]})}function Ea(e,t,r){let n=e.stopReason;return n==="payment_declined"?t.declined(r):n&&n!=="customer"?t.stopReason(n):e.state==="paused"?t.pausePlanBody:null}function ManageMain({plan:e,name:t,rx:r,busy:n,line:i,error:o,onEvery:l,onSkip:a,onPause:s,onResume:d,onCancel:c,onOrders:u}){let{copy:p,v3:h}=De(),g=Ca(),m=e.state==="active",b=e.state==="paused",y=m?Ce(e.nextRun):null;/* @__PURE__ */
244
+ return W(f,{style:g.co,children:[
245
+ /* @__PURE__ */W(f,{style:g.coProd,accessible:true,accessibilityRole:"header",accessibilityLabel:`${h.manageTitle(t)}, ${h.subscribedLine(e.cadenceDays,y)}`,children:[
246
246
  /* @__PURE__ */A(Thumb2,{rx:r,size:56,title:t}),
247
- /* @__PURE__ */z(g,{style:f.grow,children:[
248
- /* @__PURE__ */A(Text3,{style:f.coProdT,children:t}),
249
- /* @__PURE__ */A(Text3,{style:f.coProdP,children:h.subscribedLine(e.cadenceDays,k)})]})]}),
250
- /* @__PURE__ */z(g,{children:[
251
- /* @__PURE__ */A(Text3,{tier:"compact",style:f.coK,children:h.shipsEvery}),
252
- /* @__PURE__ */A(g,{style:f.every,accessibilityRole:"radiogroup",accessibilityLabel:h.shipsEvery,children:va(e.cadenceDays).map(t=>{let r=t===e.cadenceDays;/* @__PURE__ */
253
- return A(y,{style:[f.everyBtn,r?f.everyOn:null],onPress:()=>l(t),disabled:n,accessibilityRole:"radio",accessibilityLabel:h.daysChip(t),accessibilityState:{checked:r,disabled:n},testID:`shop-plan-every-${t}`,children:/* @__PURE__ */A(Text3,{tier:"control",style:[f.everyText,r?f.everyTextOn:null],numberOfLines:1,children:h.daysChip(t)})},t)})})]}),
247
+ /* @__PURE__ */W(f,{style:g.grow,children:[
248
+ /* @__PURE__ */A(Text3,{style:g.coProdT,children:t}),
249
+ /* @__PURE__ */A(Text3,{style:g.coProdP,children:h.subscribedLine(e.cadenceDays,y)})]})]}),
250
+ /* @__PURE__ */W(f,{children:[
251
+ /* @__PURE__ */A(Text3,{tier:"compact",style:g.coK,children:h.shipsEvery}),
252
+ /* @__PURE__ */A(f,{style:g.every,accessibilityRole:"radiogroup",accessibilityLabel:h.shipsEvery,children:Pa(e.cadenceDays).map(t=>{let r=t===e.cadenceDays;/* @__PURE__ */
253
+ return A(k,{style:[g.everyBtn,r?g.everyOn:null],onPress:()=>l(t),disabled:n,accessibilityRole:"radio",accessibilityLabel:h.daysChip(t),accessibilityState:{checked:r,disabled:n},testID:`shop-plan-every-${t}`,children:/* @__PURE__ */A(Text3,{tier:"control",style:[g.everyText,r?g.everyTextOn:null],numberOfLines:1,children:h.daysChip(t)})},t)})})]}),
254
254
  /* @__PURE__ */A(Toast2,{line:i}),
255
255
  /* @__PURE__ */A(ErrorLine,{line:o}),m?/* @__PURE__ */A(Btn,{ghost:true,label:h.skipNext,disabled:n,onPress:a,testID:"shop-plan-skip"}):null,b?/* @__PURE__ */A(Btn,{label:p.resumePlan,busy:n,busyLabel:p.saving,onPress:d,testID:"shop-plan-resume"}):null,m?/* @__PURE__ */A(LinkBtn,{label:p.pausePlan,disabled:n,onPress:s}):null,
256
256
  /* @__PURE__ */A(LinkBtn,{label:h.cancelSubscription,tone:"risk",disabled:n,onPress:c}),
257
- /* @__PURE__ */A(LinkBtn,{label:p.allOrders,onPress:u})]})}function AppOrdersScreen({tabs:e}){let{copy:t,v3:r,pets:n}=Oe(),i=yr(),{first:o,orders:l,named:a,hasMore:s,loadMore:d,moreBusy:c,moreError:u}=Wl(),p=Ta(),h=n.map(e=>e.name),f=o.phase==="loading"||p.phase==="loading",m=p.phase==="failed"||p.phase==="ready"&&p.plans.length>0,b;return o.phase==="failed"?b=/* @__PURE__ */A(LoadFailed,{copy:t,thing:t.thingOrders,retry:o.refresh}):f?b=/* @__PURE__ */A(Card2,{label:t.allOrders,children:/* @__PURE__ */A(Ghost,{})}):l.length===0&&m?b=/* @__PURE__ */A(Subscriptions,{subs:p,onOrders:()=>{}}):b=/* @__PURE__ */z(W,{children:[m?/* @__PURE__ */z(W,{children:[
257
+ /* @__PURE__ */A(LinkBtn,{label:p.allOrders,onPress:u})]})}function AppOrdersScreen({tabs:e}){let{copy:t,v3:r,pets:n}=De(),i=kr(),{first:o,orders:l,named:a,hasMore:s,loadMore:d,moreBusy:c,moreError:u}=Gl(),p=Ba(),h=n.map(e=>e.name),g=o.phase==="loading"||p.phase==="loading",m=p.phase==="failed"||p.phase==="ready"&&p.plans.length>0,b;return o.phase==="failed"?b=/* @__PURE__ */A(LoadFailed,{copy:t,thing:t.thingOrders,retry:o.refresh}):g?b=/* @__PURE__ */A(Card2,{label:t.allOrders,children:/* @__PURE__ */A(Ghost,{})}):l.length===0&&m?b=/* @__PURE__ */A(Subscriptions,{subs:p,onOrders:()=>{}}):b=/* @__PURE__ */W(R,{children:[m?/* @__PURE__ */W(R,{children:[
258
258
  /* @__PURE__ */A(Subscriptions,{subs:p,onOrders:()=>{}}),
259
259
  /* @__PURE__ */A(K,{children:r.ordersTitle})]}):null,
260
- /* @__PURE__ */z(Card2,{label:t.allOrders,children:[l.length===0?/* @__PURE__ */A(T,{k:"cardLead",children:t.ordersEmpty}):null,l.length>0?/* @__PURE__ */A(OrderList,{orders:l,named:a}):null,
261
- /* @__PURE__ */A(InlineError,{line:u}),s?/* @__PURE__ */A(g,{style:{marginTop:i.v("breaks").marginTop},children:/* @__PURE__ */A(OutlineButton,{k:"btnSm",action:{label:r.moreOrders,busy:c,busyLabel:t.saving,disabled:c,onPress:d}})}):null]})]}),/* @__PURE__ */A(Frame,{tabs:{copy:t,current:"orders",tabs:e},onRefresh:o.reread,children:/* @__PURE__ */z(g,{testID:"shop-orders",children:[
260
+ /* @__PURE__ */W(Card2,{label:t.allOrders,children:[l.length===0?/* @__PURE__ */A(T,{k:"cardLead",children:t.ordersEmpty}):null,l.length>0?/* @__PURE__ */A(OrderList,{orders:l,named:a}):null,
261
+ /* @__PURE__ */A(InlineError,{line:u}),s?/* @__PURE__ */A(f,{style:{marginTop:i.v("breaks").marginTop},children:/* @__PURE__ */A(OutlineButton,{k:"btnSm",action:{label:r.moreOrders,busy:c,busyLabel:t.saving,disabled:c,onPress:d}})}):null]})]}),/* @__PURE__ */A(Frame,{tabs:{copy:t,current:"orders",tabs:e},onRefresh:o.reread,children:/* @__PURE__ */W(f,{testID:"shop-orders",children:[
262
262
  /* @__PURE__ */A(TitleBlock,{title:t.ordersTitle,meta:h.length>0?t.ordersSub(h):null}),
263
263
  /* @__PURE__ */A(Stack,{children:b}),
264
- /* @__PURE__ */A(Legal,{line:t.legal})]})})}function OrderList({orders:e,named:t}){let{copy:r,v3:n}=Oe(),i=Cr(),o=e.map(e=>{let o=t(e),l=o&&o.length>0?sr(o):e.referenceNumber??r.tabOrders,a=Ie(e.placedAt),s=e.itemCount??(o?o.reduce((e,t)=>e+t.quantity,0):null),d=[a?r.placed(a):null,s!==null&&s>1?r.itemCount(s):null,ke(e.total)].filter(Boolean).join(" · ");return{key:e.orderId,icon:"box",title:l,meta:d,pill:ba($t(e.status,r,n)),onPress:()=>i.go({name:"order",orderId:e.orderId})}});/* @__PURE__ */
265
- return A(RecRows,{label:r.allOrders,rows:o,testID:"shop-orders-list"})}var Ca=createContext({on:false,screen:null,copy:ie,onHelp:null,onCartBar:null}),La=Ca.Provider;function za(){return r(Ca)}var Aa={useShop:Oe,useShopShared:kt,useCart:ne,addToCart:Y,removeFromCart:X,setCartQuantity:J,cartMaxQuantity:5,usePrescriptions:qe,usePlans:je,useShopRead:De,useShopAction:Ye};var Wa={...Aa,useKit:yr,useShopNativeNav:Cr,useShopV3Host:pa,CareTabs:CareTabs,LoadFailed:LoadFailed};var Ra=["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY","AS","GU","MP","PR","VI","AA","AE","AP"],Fa=/^\d{5}(-\d{4})?$/;function Ha(e){return Ra.includes(e.trim().toUpperCase())}function Gap({children:e}){let t=yr();/* @__PURE__ */
266
- return A(g,{style:{rowGap:t.v("stack").rowGap,marginTop:t.v("stack").rowGap},children:e})}var Pa={label:60,recipientName:100,line1:100,line2:100,city:60,region:60,postalCode:16},Ba={label:{autoComplete:"off"},recipientName:{autoComplete:"name",textContentType:"name"},line1:{autoComplete:"address-line1",textContentType:"streetAddressLine1"},line2:{autoComplete:"address-line2",textContentType:"streetAddressLine2"},city:{autoComplete:"off",textContentType:"addressCity"},region:{autoComplete:"off",textContentType:"addressState"},postalCode:{autoComplete:"postal-code",textContentType:"postalCode"}};function Field3({label:e,value:t,name:r,onChange:n}){let i=yr(),o=Ba[r];/* @__PURE__ */
267
- return z(g,{style:i.v("field"),children:[
264
+ /* @__PURE__ */A(Legal,{line:t.legal})]})})}function OrderList({orders:e,named:t}){let{copy:r,v3:n}=De(),i=Lr(),o=e.map(e=>{let o=t(e),l=o&&o.length>0?dr(o):e.referenceNumber??r.tabOrders,a=Ce(e.placedAt),s=e.itemCount??(o?o.reduce((e,t)=>e+t.quantity,0):null),d=[a?r.placed(a):null,s!==null&&s>1?r.itemCount(s):null,we(e.total)].filter(Boolean).join(" · ");return{key:e.orderId,icon:"box",title:l,meta:d,pill:Aa(er(e.status,r,n)),onPress:()=>i.go({name:"order",orderId:e.orderId})}});/* @__PURE__ */
265
+ return A(RecRows,{label:r.allOrders,rows:o,testID:"shop-orders-list"})}var Na=createContext({on:false,screen:null,copy:oe,onHelp:null,onCartBar:null}),Va=Na.Provider;function qa(){return r(Na)}var Ua={useShop:De,useShopShared:wt,useCart:ie,addToCart:J,removeFromCart:Q,setCartQuantity:X,cartMaxQuantity:5,usePrescriptions:Ue,usePlans:Ze,useShopRead:Ee,useShopAction:Je};var Ga={...Ua,useKit:kr,useShopNativeNav:Lr,useShopV3Host:Ia,CareTabs:CareTabs,LoadFailed:LoadFailed};var Ma=["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY","AS","GU","MP","PR","VI","AA","AE","AP"],Ka=/^\d{5}(-\d{4})?$/;function ja(e){return Ma.includes(e.trim().toUpperCase())}function Gap({children:e}){let t=kr();/* @__PURE__ */
266
+ return A(f,{style:{rowGap:t.v("stack").rowGap,marginTop:t.v("stack").rowGap},children:e})}var Za={label:60,recipientName:100,line1:100,line2:100,city:60,region:60,postalCode:16},Ya={label:{autoComplete:"off"},recipientName:{autoComplete:"name",textContentType:"name"},line1:{autoComplete:"address-line1",textContentType:"streetAddressLine1"},line2:{autoComplete:"address-line2",textContentType:"streetAddressLine2"},city:{autoComplete:"off",textContentType:"addressCity"},region:{autoComplete:"off",textContentType:"addressState"},postalCode:{autoComplete:"postal-code",textContentType:"postalCode"}};function Field3({label:e,value:t,name:r,onChange:n}){let i=kr(),o=Ya[r];/* @__PURE__ */
267
+ return W(f,{style:i.v("field"),children:[
268
268
  /* @__PURE__ */A(T,{k:"fieldLabel",children:e}),
269
- /* @__PURE__ */A(g,{style:[i.v("fieldInput"),{flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */A(h,{style:[i.t("fieldInputText"),{flex:1,minWidth:0}],value:t,onChangeText:n,accessibilityLabel:e,autoComplete:o.autoComplete,...o.textContentType?{textContentType:o.textContentType}:{},autoCapitalize:r==="region"?"characters":"words",autoCorrect:false,maxLength:Pa[r],...r==="postalCode"?{keyboardType:"number-pad"}:{}})})]})}function AddressFormScreen({copy:e,busy:t,error:r,onSave:n}){let[i,o]=l({label:"",recipientName:"",line1:"",line2:"",city:"",region:"",postalCode:""}),a=e=>t=>o(r=>({...r,[e]:t.slice(0,Pa[e])})),s=!!(i.label.trim()&&i.recipientName.trim()&&i.line1.trim()&&i.city.trim()&&Ha(i.region)&&Fa.test(i.postalCode.trim())),d=()=>{!s||t||n({label:i.label.trim(),makeDefault:false,address:{recipientName:i.recipientName.trim(),line1:i.line1.trim(),line2:i.line2.trim()||null,city:i.city.trim(),region:i.region.trim().toUpperCase(),postalCode:i.postalCode.trim(),country:"US"}})},c=[["label",e.addressLabel],["recipientName",e.addressRecipient],["line1",e.addressLine1],["line2",e.addressLine2],["city",e.addressCity],["region",e.addressRegion],["postalCode",e.addressPostal]];/* @__PURE__ */
270
- return z(Frame,{children:[
271
- /* @__PURE__ */A(Stack,{children:/* @__PURE__ */z(Card2,{children:[
269
+ /* @__PURE__ */A(f,{style:[i.v("fieldInput"),{flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */A(g,{style:[i.t("fieldInputText"),{flex:1,minWidth:0}],value:t,onChangeText:n,accessibilityLabel:e,autoComplete:o.autoComplete,...o.textContentType?{textContentType:o.textContentType}:{},autoCapitalize:r==="region"?"characters":"words",autoCorrect:false,maxLength:Za[r],...r==="postalCode"?{keyboardType:"number-pad"}:{}})})]})}function AddressFormScreen({copy:e,busy:t,error:r,onSave:n}){let[i,o]=l({label:"",recipientName:"",line1:"",line2:"",city:"",region:"",postalCode:""}),a=e=>t=>o(r=>({...r,[e]:t.slice(0,Za[e])})),s=!!(i.label.trim()&&i.recipientName.trim()&&i.line1.trim()&&i.city.trim()&&ja(i.region)&&Ka.test(i.postalCode.trim())),d=()=>{!s||t||n({label:i.label.trim(),makeDefault:false,address:{recipientName:i.recipientName.trim(),line1:i.line1.trim(),line2:i.line2.trim()||null,city:i.city.trim(),region:i.region.trim().toUpperCase(),postalCode:i.postalCode.trim(),country:"US"}})},c=[["label",e.addressLabel],["recipientName",e.addressRecipient],["line1",e.addressLine1],["line2",e.addressLine2],["city",e.addressCity],["region",e.addressRegion],["postalCode",e.addressPostal]];/* @__PURE__ */
270
+ return W(Frame,{children:[
271
+ /* @__PURE__ */A(Stack,{children:/* @__PURE__ */W(Card2,{children:[
272
272
  /* @__PURE__ */A(CardTitle,{children:e.addressTitle}),
273
- /* @__PURE__ */z(Gap,{children:[c.map(([e,t])=>/* @__PURE__ */A(Field3,{name:e,label:t,value:i[e],onChange:a(e)},e)),
273
+ /* @__PURE__ */W(Gap,{children:[c.map(([e,t])=>/* @__PURE__ */A(Field3,{name:e,label:t,value:i[e],onChange:a(e)},e)),
274
274
  /* @__PURE__ */A(InlineError,{line:r}),
275
275
  /* @__PURE__ */A(InkButton,{action:{label:e.addressSave,busyLabel:e.saving,busy:t,disabled:!s||t,onPress:d}})]})]})}),
276
276
  /* @__PURE__ */A(Legal,{line:e.legal})]})}function CardSetupScreen({copy:e,start:t,error:r}){/* @__PURE__ */
277
- return z(Frame,{children:[
278
- /* @__PURE__ */A(Stack,{children:/* @__PURE__ */z(Card2,{children:[
277
+ return W(Frame,{children:[
278
+ /* @__PURE__ */A(Stack,{children:/* @__PURE__ */W(Card2,{children:[
279
279
  /* @__PURE__ */A(CardTitle,{children:e.cardTitle}),
280
280
  /* @__PURE__ */A(T,{k:"cardLead",children:t?e.cardBody:e.cardUnavailable}),
281
281
  /* @__PURE__ */A(InlineError,{line:r}),t?/* @__PURE__ */A(Gap,{children:/* @__PURE__ */A(InkButton,{action:t})}):null]})}),
282
282
  /* @__PURE__ */A(Legal,{line:e.legal})]})}function BuyConfirmScreen({copy:e,title:t,lines:r,sum:n,needs:i,pay:o,note:l,error:a}){/* @__PURE__ */
283
- return z(Frame,{children:[
284
- /* @__PURE__ */z(Stack,{children:[
285
- /* @__PURE__ */z(Card2,{children:[
283
+ return W(Frame,{children:[
284
+ /* @__PURE__ */W(Stack,{children:[
285
+ /* @__PURE__ */W(Card2,{children:[
286
286
  /* @__PURE__ */A(CardTitle,{children:t}),
287
- /* @__PURE__ */A(g,{children:r.map((e,t)=>/* @__PURE__ */z(ItemRow,{index:t,count:r.length,thumb:/* @__PURE__ */A(Thumb,{tone:"pink",icon:"pill"}),end:e.price?/* @__PURE__ */A(T,{k:"itemsPrice",children:e.price}):null,children:[
287
+ /* @__PURE__ */A(f,{children:r.map((e,t)=>/* @__PURE__ */W(ItemRow,{index:t,count:r.length,thumb:/* @__PURE__ */A(Thumb,{tone:"pink",icon:"pill"}),end:e.price?/* @__PURE__ */A(T,{k:"itemsPrice",children:e.price}):null,children:[
288
288
  /* @__PURE__ */A(T,{k:"itemsName",children:e.name}),e.meta?/* @__PURE__ */A(T,{k:"itemsMeta",children:e.meta}):null]},e.key))})]}),
289
- /* @__PURE__ */z(Card2,{children:[
289
+ /* @__PURE__ */W(Card2,{children:[
290
290
  /* @__PURE__ */A(CardTitle,{children:e.total}),n?/* @__PURE__ */A(Sum,{rows:n,total:true}):null,
291
- /* @__PURE__ */z(Gap,{children:[i.map(e=>/* @__PURE__ */A(ShopLinkText,{link:e,style:{alignSelf:"flex-start"}},e.label)),o?/* @__PURE__ */A(InkButton,{action:o}):null]}),
291
+ /* @__PURE__ */W(Gap,{children:[i.map(e=>/* @__PURE__ */A(ShopLinkText,{link:e,style:{alignSelf:"flex-start"}},e.label)),o?/* @__PURE__ */A(InkButton,{action:o}):null]}),
292
292
  /* @__PURE__ */A(InlineError,{line:a}),l?/* @__PURE__ */A(T,{k:"noteAfterTotal",children:l}):null]})]}),
293
- /* @__PURE__ */A(Legal,{line:e.legal})]})}function PlanConsentScreen({copy:e,terms:t,needs:r,agree:n,error:i}){let o=Cr(),l=yr();/* @__PURE__ */
294
- return z(Frame,{children:[
295
- /* @__PURE__ */A(Stack,{children:/* @__PURE__ */z(Card2,{children:[
293
+ /* @__PURE__ */A(Legal,{line:e.legal})]})}function PlanConsentScreen({copy:e,terms:t,needs:r,agree:n,error:i}){let o=Lr(),l=kr();/* @__PURE__ */
294
+ return W(Frame,{children:[
295
+ /* @__PURE__ */A(Stack,{children:/* @__PURE__ */W(Card2,{children:[
296
296
  /* @__PURE__ */A(CardTitle,{children:e.consentTitle}),
297
297
  /* @__PURE__ */A(T,{k:"cardLead",children:e.consentBody}),
298
- /* @__PURE__ */z(Gap,{children:[t?/* @__PURE__ */A(Press,{role:"link",label:t.label,onPress:()=>o.openExternal(t.href),style:[l.v("cardLink"),{alignSelf:"flex-start"}],children:/* @__PURE__ */A(T,{k:"cardLink",bare:true,style:xr("cardLink"),children:t.label})}):null,r.map(e=>/* @__PURE__ */A(ShopLinkText,{link:e,style:{alignSelf:"flex-start"}},e.label)),
298
+ /* @__PURE__ */W(Gap,{children:[t?/* @__PURE__ */A(Press,{role:"link",label:t.label,onPress:()=>o.openExternal(t.href),style:[l.v("cardLink"),{alignSelf:"flex-start"}],children:/* @__PURE__ */A(T,{k:"cardLink",bare:true,style:Sr("cardLink"),children:t.label})}):null,r.map(e=>/* @__PURE__ */A(ShopLinkText,{link:e,style:{alignSelf:"flex-start"}},e.label)),
299
299
  /* @__PURE__ */A(InlineError,{line:i}),n?/* @__PURE__ */A(InkButton,{action:n}):null]})]})}),
300
- /* @__PURE__ */A(Legal,{line:e.legal})]})}var Oa={marginTop:Math.max(0,cr.forLabel.marginTop-cr.cardHead.marginBottom)};function PackageScreen({copy:e,tabs:t,view:r}){let n=yr(),i=Cr(),o={copy:e,current:"package",tabs:t};if(r.phase!=="ready")/* @__PURE__ */
301
- return z(Frame,{tabs:o,children:[
300
+ /* @__PURE__ */A(Legal,{line:e.legal})]})}var Ja={marginTop:Math.max(0,ur.forLabel.marginTop-ur.cardHead.marginBottom)};function PackageScreen({copy:e,tabs:t,view:r}){let n=kr(),i=Lr(),o={copy:e,current:"package",tabs:t};if(r.phase!=="ready")/* @__PURE__ */
301
+ return W(Frame,{tabs:o,children:[
302
302
  /* @__PURE__ */A(TitleBlock,{title:e.tabPackage}),
303
- /* @__PURE__ */A(Stack,{children:r.phase==="failed"?/* @__PURE__ */A(LoadFailed,{copy:e,thing:e.thingPackage,retry:r.retry}):/* @__PURE__ */z(Card2,{children:[
303
+ /* @__PURE__ */A(Stack,{children:r.phase==="failed"?/* @__PURE__ */A(LoadFailed,{copy:e,thing:e.thingPackage,retry:r.retry}):/* @__PURE__ */W(Card2,{children:[
304
304
  /* @__PURE__ */A(CardHead,{title:e.inThisPackage}),
305
305
  /* @__PURE__ */A(Ghost,{})]})}),
306
306
  /* @__PURE__ */A(Legal,{line:e.legal})]});let l=r.value,a=l.sum.find(t=>t.k===e.total)?.v??null,s=l.approve?{...l.approve,label:a&&!l.approve.busy?e.withTotal(l.approve.label,a):l.approve.label}:null,c=l.countPill??l.reviewPill,u=true;/* @__PURE__ */
307
- return z(Frame,{tabs:o,tray:/* @__PURE__ */A(TrayBar,{action:s,fine:l.fine??null,error:l.approve?l.error:null}),children:[
307
+ return W(Frame,{tabs:o,tray:/* @__PURE__ */A(TrayBar,{action:s,fine:l.fine??null,error:l.approve?l.error:null}),children:[
308
308
  /* @__PURE__ */A(TitleBlock,{title:l.title,meta:l.sub}),
309
- /* @__PURE__ */z(Stack,{children:[
310
- /* @__PURE__ */z(Card2,{children:[
311
- /* @__PURE__ */A(CardHead,{title:e.inThisPackage,end:c?/* @__PURE__ */A(Pill2,{pill:{label:c,tone:"soon"}}):null}),l.empty?/* @__PURE__ */z(W,{children:[
309
+ /* @__PURE__ */W(Stack,{children:[
310
+ /* @__PURE__ */W(Card2,{children:[
311
+ /* @__PURE__ */A(CardHead,{title:e.inThisPackage,end:c?/* @__PURE__ */A(Pill2,{pill:{label:c,tone:"soon"}}):null}),l.empty?/* @__PURE__ */W(R,{children:[
312
312
  /* @__PURE__ */A(T,{k:"cardLead",children:l.empty.line}),
313
- /* @__PURE__ */A(OutlineButton,{k:"btnSm",action:{label:l.empty.shop.label,onPress:()=>i.go(l.empty.shop.to)}})]}):null,l.groups.map((t,r)=>{let o=t.label?/* @__PURE__ */A(T,{k:u?"forLabel":"forLabelNext",style:u?Oa:null,children:t.label}):null;return t.label&&(u=false),/* @__PURE__ */z(d,{children:[o,
314
- /* @__PURE__ */A(g,{children:t.items.map((r,o)=>/* @__PURE__ */z(ItemRow,{index:o,count:t.items.length,thumb:/* @__PURE__ */A(Thumb,{tone:r.tone,icon:r.icon}),end:r.price?/* @__PURE__ */A(T,{k:"itemsPrice",children:r.price}):null,children:[
315
- /* @__PURE__ */A(ItemName,{name:r.name,rx:r.rx,copy:e,pills:r.pills}),r.meta?/* @__PURE__ */A(T,{k:"itemsMeta",children:r.meta}):null,r.alert?/* @__PURE__ */A(g,{accessibilityLiveRegion:"polite",children:/* @__PURE__ */A(T,{k:"itemsMeta",children:r.alert})}):null,r.details||r.remove?/* @__PURE__ */z(g,{style:[n.v("itemsActs"),{flexDirection:"row"}],children:[r.details?/* @__PURE__ */A(ActText,{label:r.details.label,onPress:()=>i.go(r.details.to)}):null,r.remove?/* @__PURE__ */A(ActText,{label:r.remove.busy&&r.remove.busyLabel?r.remove.busyLabel:r.remove.label,onPress:r.remove.onPress,disabled:r.remove.disabled===true}):null]}):null]},r.key))})]},t.label??r)})]}),l.add?/* @__PURE__ */z(Card2,{children:[
313
+ /* @__PURE__ */A(OutlineButton,{k:"btnSm",action:{label:l.empty.shop.label,onPress:()=>i.go(l.empty.shop.to)}})]}):null,l.groups.map((t,r)=>{let o=t.label?/* @__PURE__ */A(T,{k:u?"forLabel":"forLabelNext",style:u?Ja:null,children:t.label}):null;return t.label&&(u=false),/* @__PURE__ */W(d,{children:[o,
314
+ /* @__PURE__ */A(f,{children:t.items.map((r,o)=>/* @__PURE__ */W(ItemRow,{index:o,count:t.items.length,thumb:/* @__PURE__ */A(Thumb,{tone:r.tone,icon:r.icon}),end:r.price?/* @__PURE__ */A(T,{k:"itemsPrice",children:r.price}):null,children:[
315
+ /* @__PURE__ */A(ItemName,{name:r.name,rx:r.rx,copy:e,pills:r.pills}),r.meta?/* @__PURE__ */A(T,{k:"itemsMeta",children:r.meta}):null,r.alert?/* @__PURE__ */A(f,{accessibilityLiveRegion:"polite",children:/* @__PURE__ */A(T,{k:"itemsMeta",children:r.alert})}):null,r.details||r.remove?/* @__PURE__ */W(f,{style:[n.v("itemsActs"),{flexDirection:"row"}],children:[r.details?/* @__PURE__ */A(ActText,{label:r.details.label,onPress:()=>i.go(r.details.to)}):null,r.remove?/* @__PURE__ */A(ActText,{label:r.remove.busy&&r.remove.busyLabel?r.remove.busyLabel:r.remove.label,onPress:r.remove.onPress,disabled:r.remove.disabled===true}):null]}):null]},r.key))})]},t.label??r)})]}),l.add?/* @__PURE__ */W(Card2,{children:[
316
316
  /* @__PURE__ */A(CardHead,{title:l.add.title,end:l.add.link?/* @__PURE__ */A(ShopLinkText,{link:l.add.link}):null}),
317
- /* @__PURE__ */A(g,{children:l.add.items.map((t,r)=>/* @__PURE__ */z(ItemRow,{index:r,count:l.add.items.length,thumb:/* @__PURE__ */A(Thumb,{tone:t.tone,icon:t.icon}),end:/* @__PURE__ */A(OutlineButton,{k:"btnRow",icon:"plus",iconKey:"btnRowIcon",action:t.add}),children:[
317
+ /* @__PURE__ */A(f,{children:l.add.items.map((t,r)=>/* @__PURE__ */W(ItemRow,{index:r,count:l.add.items.length,thumb:/* @__PURE__ */A(Thumb,{tone:t.tone,icon:t.icon}),end:/* @__PURE__ */A(OutlineButton,{k:"btnRow",icon:"plus",iconKey:"btnRowIcon",action:t.add}),children:[
318
318
  /* @__PURE__ */A(ItemName,{name:t.name,rx:false,copy:e}),t.meta||t.price?/* @__PURE__ */A(T,{k:"itemsMeta",children:[t.meta,t.price].filter(Boolean).join(" · ")}):null]},t.key))})]}):null,
319
- /* @__PURE__ */z(Card2,{children:[
320
- /* @__PURE__ */A(CardTitle,{children:e.total}),l.sum.length>0?/* @__PURE__ */A(Sum,{rows:l.sum,total:true}):null,l.note?/* @__PURE__ */A(T,{k:"noteAfterSum",children:l.note}):null,l.skip?"to"in l.skip?/* @__PURE__ */A(ShopLinkText,{link:l.skip,k:"cardLinkAfterNote",style:{alignSelf:"flex-start"}}):/* @__PURE__ */A(Press,{onPress:l.skip.onPress,disabled:l.skip.disabled===true,style:{alignSelf:"flex-start"},children:/* @__PURE__ */A(T,{k:"cardLinkAfterNote",children:l.skip.label})}):null,l.approve?null:/* @__PURE__ */A(InlineError,{line:l.error})]}),l.delivery.length>0?/* @__PURE__ */z(Card2,{children:[
319
+ /* @__PURE__ */W(Card2,{children:[
320
+ /* @__PURE__ */A(CardTitle,{children:e.total}),l.sum.length>0?/* @__PURE__ */A(Sum,{rows:l.sum,total:true}):null,l.note?/* @__PURE__ */A(T,{k:"noteAfterSum",children:l.note}):null,l.skip?"to"in l.skip?/* @__PURE__ */A(ShopLinkText,{link:l.skip,k:"cardLinkAfterNote",style:{alignSelf:"flex-start"}}):/* @__PURE__ */A(Press,{onPress:l.skip.onPress,disabled:l.skip.disabled===true,style:{alignSelf:"flex-start"},children:/* @__PURE__ */A(T,{k:"cardLinkAfterNote",children:l.skip.label})}):null,l.approve?null:/* @__PURE__ */A(InlineError,{line:l.error})]}),l.delivery.length>0?/* @__PURE__ */W(Card2,{children:[
321
321
  /* @__PURE__ */A(CardTitle,{children:e.delivery}),
322
322
  /* @__PURE__ */A(Rows,{rows:l.delivery.map(e=>({key:e.k,k:e.k,v:e.v??null,meta:e.meta??null,end:e.change?/* @__PURE__ */A(ShopLinkText,{link:e.change}):null}))})]}):null]}),
323
323
  /* @__PURE__ */A(Legal,{line:l.legal})]})}function ShopSwitchCard({title:e,rows:t}){/* @__PURE__ */
324
- return z(Card2,{children:[
324
+ return W(Card2,{children:[
325
325
  /* @__PURE__ */A(CardTitle,{children:e}),
326
- /* @__PURE__ */A(Rows,{plan:true,rows:t.map(e=>({key:e.key,k:e.title,meta:e.meta??null,end:/* @__PURE__ */A(ShopSwitch,{on:e.on,disabled:e.disabled===true,label:e.label,onChange:e.onChange})}))})]})}function BreakCard({copy:e,card:t}){let r=yr(),[n,i]=l(null),o=n?t[n]:null;/* @__PURE__ */
327
- return z(Card2,{children:[
326
+ /* @__PURE__ */A(Rows,{plan:true,rows:t.map(e=>({key:e.key,k:e.title,meta:e.meta??null,end:/* @__PURE__ */A(ShopSwitch,{on:e.on,disabled:e.disabled===true,label:e.label,onChange:e.onChange})}))})]})}function BreakCard({copy:e,card:t}){let r=kr(),[n,i]=l(null),o=n?t[n]:null;/* @__PURE__ */
327
+ return W(Card2,{children:[
328
328
  /* @__PURE__ */A(CardTitle,{children:e.needABreak}),
329
- /* @__PURE__ */z(g,{style:[r.v("breaks"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginTop:Math.max(0,cr.breaks.marginTop-cr.cardTitle.marginBottom)}],children:[t.skip?/* @__PURE__ */A(OutlineButton,{k:"btnSm",action:{label:t.skip.label,onPress:()=>i("skip")}}):null,t.pause?/* @__PURE__ */A(Press,{onPress:()=>i("pause"),children:/* @__PURE__ */A(T,{k:"linkDanger",bare:true,style:xr("linkDanger"),children:t.pause.label})}):null]}),o?null:/* @__PURE__ */A(InlineError,{line:t.error}),
329
+ /* @__PURE__ */W(f,{style:[r.v("breaks"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginTop:Math.max(0,ur.breaks.marginTop-ur.cardTitle.marginBottom)}],children:[t.skip?/* @__PURE__ */A(OutlineButton,{k:"btnSm",action:{label:t.skip.label,onPress:()=>i("skip")}}):null,t.pause?/* @__PURE__ */A(Press,{onPress:()=>i("pause"),children:/* @__PURE__ */A(T,{k:"linkDanger",bare:true,style:Sr("linkDanger"),children:t.pause.label})}):null]}),o?null:/* @__PURE__ */A(InlineError,{line:t.error}),
330
330
  /* @__PURE__ */A(ConfirmSheet,{open:o!==null,title:o?.ask??"",body:o?.body??"",confirm:o?.label??"",keep:e.keepIt,closeLabel:e.close,busyLabel:e.saving,busy:t.busy,error:o?t.error:null,onConfirm:()=>{n&&t.onConfirm(n).then(e=>{e&&i(null)})},onClose:()=>i(null)})]})}function PlanScreen({copy:e,tabs:t,view:r,reminders:n}){let i={copy:e,current:"plan",tabs:t};if(r.phase!=="ready")/* @__PURE__ */
331
- return z(Frame,{tabs:i,children:[
331
+ return W(Frame,{tabs:i,children:[
332
332
  /* @__PURE__ */A(TitleBlock,{title:e.planTitle}),
333
- /* @__PURE__ */A(Stack,{children:r.phase==="failed"?/* @__PURE__ */A(LoadFailed,{copy:e,thing:e.thingPlan,retry:r.retry}):/* @__PURE__ */z(Card2,{children:[
333
+ /* @__PURE__ */A(Stack,{children:r.phase==="failed"?/* @__PURE__ */A(LoadFailed,{copy:e,thing:e.thingPlan,retry:r.retry}):/* @__PURE__ */W(Card2,{children:[
334
334
  /* @__PURE__ */A(CardTitle,{children:e.whatRepeats}),
335
335
  /* @__PURE__ */A(Ghost,{})]})}),
336
336
  /* @__PURE__ */A(Legal,{line:e.legal})]});let o=r.value;/* @__PURE__ */
337
- return z(Frame,{tabs:i,children:[
337
+ return W(Frame,{tabs:i,children:[
338
338
  /* @__PURE__ */A(TitleBlock,{title:e.planTitle,meta:o.sub}),
339
- /* @__PURE__ */z(Stack,{children:[o.next?/* @__PURE__ */z(Card2,{children:[
339
+ /* @__PURE__ */W(Stack,{children:[o.next?/* @__PURE__ */W(Card2,{children:[
340
340
  /* @__PURE__ */A(CardHead,{title:e.nextPackage,end:o.next.link?/* @__PURE__ */A(ShopLinkText,{link:o.next.link}):null}),
341
341
  /* @__PURE__ */A(Sum,{rows:o.next.sum,total:false})]}):null,
342
- /* @__PURE__ */z(Card2,{children:[
343
- /* @__PURE__ */A(CardTitle,{children:e.whatRepeats}),o.emptyLine?/* @__PURE__ */A(T,{k:"cardLead",children:o.emptyLine}):null,o.rows.length>0?/* @__PURE__ */A(Rows,{plan:true,rows:o.rows.map(t=>({key:t.key,k:t.title,meta:t.meta,metaAlert:t.alert,alert:t.error,end:/* @__PURE__ */A(ShopSwitch,{on:t.on,disabled:t.busy,label:e.repeatsLabel(t.title),onChange:t.onToggle})}))}):null]}),n??null,o.delivery.length>0?/* @__PURE__ */z(Card2,{children:[
342
+ /* @__PURE__ */W(Card2,{children:[
343
+ /* @__PURE__ */A(CardTitle,{children:e.whatRepeats}),o.emptyLine?/* @__PURE__ */A(T,{k:"cardLead",children:o.emptyLine}):null,o.rows.length>0?/* @__PURE__ */A(Rows,{plan:true,rows:o.rows.map(t=>({key:t.key,k:t.title,meta:t.meta,metaAlert:t.alert,alert:t.error,end:/* @__PURE__ */A(ShopSwitch,{on:t.on,disabled:t.busy,label:e.repeatsLabel(t.title),onChange:t.onToggle})}))}):null]}),n??null,o.delivery.length>0?/* @__PURE__ */W(Card2,{children:[
344
344
  /* @__PURE__ */A(CardTitle,{children:e.deliveryAndPayment}),
345
345
  /* @__PURE__ */A(Rows,{plan:true,rows:o.delivery.map(e=>({key:e.k,k:e.k,v:e.v,alert:e.alert??null,end:e.change?/* @__PURE__ */A(ShopLinkText,{link:e.change}):null}))})]}):null,o.breakCard?/* @__PURE__ */A(BreakCard,{copy:e,card:o.breakCard}):null]}),
346
- /* @__PURE__ */A(Legal,{line:o.legal})]})}function Hero({copy:e,tone:t,icon:r,imageUrl:n}){let i=yr(),[o,a]=l(null),s=n&&o!==n?n:null;/* @__PURE__ */
347
- return z(g,{style:[i.v("hero"),{backgroundColor:vl(t),alignItems:"center",justifyContent:"center"},n?{overflow:"hidden"}:null],...s?{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"}:{accessible:true,accessibilityRole:"image",accessibilityLabel:e.photoToCome},children:[r?/* @__PURE__ */A(PartIcon,{name:r,k:"heroIcon",inkKey:"prodIcon"}):null,s?/* @__PURE__ */A(TilePhoto,{uri:s,onFailed:()=>a(s)},s):null]})}function ProductHero({copy:e,v:t}){let r=Tl(t);/* @__PURE__ */
348
- return A(Hero,{copy:e,tone:r.tone,icon:r.icon,imageUrl:t.imageUrl??null})}function Source({icon:e,bold:t,rest:r,link:n,inCard:i}){let o=yr(),l=Cr(),a=i?"sourceInCard":"source";/* @__PURE__ */
349
- return z(g,{style:[o.v(a),{flexDirection:"row",alignItems:"flex-start"}],children:[
346
+ /* @__PURE__ */A(Legal,{line:o.legal})]})}function Hero({copy:e,tone:t,icon:r,imageUrl:n}){let i=kr(),[o,a]=l(null),s=n&&o!==n?n:null;/* @__PURE__ */
347
+ return W(f,{style:[i.v("hero"),{backgroundColor:Pl(t),alignItems:"center",justifyContent:"center"},n?{overflow:"hidden"}:null],...s?{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"}:{accessible:true,accessibilityRole:"image",accessibilityLabel:e.photoToCome},children:[r?/* @__PURE__ */A(PartIcon,{name:r,k:"heroIcon",inkKey:"prodIcon"}):null,s?/* @__PURE__ */A(TilePhoto,{uri:s,onFailed:()=>a(s)},s):null]})}function ProductHero({copy:e,v:t}){let r=Bl(t);/* @__PURE__ */
348
+ return A(Hero,{copy:e,tone:r.tone,icon:r.icon,imageUrl:t.imageUrl??null})}function Source({icon:e,bold:t,rest:r,link:n,inCard:i}){let o=kr(),l=Lr(),a=i?"sourceInCard":"source";/* @__PURE__ */
349
+ return W(f,{style:[o.v(a),{flexDirection:"row",alignItems:"flex-start"}],children:[
350
350
  /* @__PURE__ */A(PartIcon,{name:e,k:i?"sourceInCardIcon":"sourceIcon"}),
351
- /* @__PURE__ */z(b,{style:[o.tx(a),{flex:1,minWidth:0}],children:[t?/* @__PURE__ */A(b,{style:o.tx("sourceBold"),children:t}):null,t?` ${r}`:r,n?" ":null,n?/* @__PURE__ */A(b,{style:[o.tx("sourceLink"),xr("sourceLink")],accessibilityRole:"link",onPress:()=>l.openExternal(n.href),children:n.label}):null]})]})}function ProductScreen({copy:e,view:t}){let r=yr();if(t.phase!=="ready")/* @__PURE__ */
352
- return z(Frame,{children:[
353
- /* @__PURE__ */z(Stack,{children:[
351
+ /* @__PURE__ */W(y,{style:[o.tx(a),{flex:1,minWidth:0}],children:[t?/* @__PURE__ */A(y,{style:o.tx("sourceBold"),children:t}):null,t?` ${r}`:r,n?" ":null,n?/* @__PURE__ */A(y,{style:[o.tx("sourceLink"),Sr("sourceLink")],accessibilityRole:"link",onPress:()=>l.openExternal(n.href),children:n.label}):null]})]})}function ProductScreen({copy:e,view:t}){let r=kr();if(t.phase!=="ready")/* @__PURE__ */
352
+ return W(Frame,{children:[
353
+ /* @__PURE__ */W(Stack,{children:[
354
354
  /* @__PURE__ */A(Hero,{copy:e,tone:"base",icon:null}),t.phase==="failed"?/* @__PURE__ */A(LoadFailed,{copy:e,thing:e.thingProduct,retry:t.retry}):/* @__PURE__ */A(Card2,{children:/* @__PURE__ */A(Ghost,{})})]}),
355
355
  /* @__PURE__ */A(Legal,{line:e.legal})]});let n=t.value,i=n.price?n.priceUnit?`${n.price} ${n.priceUnit}`:n.price:null,o=[n.sub,i].filter(Boolean).join(" · ")||null;/* @__PURE__ */
356
- return z(Frame,{tray:/* @__PURE__ */A(TrayBar,{action:n.submit,fine:n.fine??null,error:n.error}),children:[
356
+ return W(Frame,{tray:/* @__PURE__ */A(TrayBar,{action:n.submit,fine:n.fine??null,error:n.error}),children:[
357
357
  /* @__PURE__ */A(TitleBlock,{title:n.title,meta:o}),
358
- /* @__PURE__ */z(Stack,{children:[
359
- /* @__PURE__ */A(ProductHero,{copy:e,v:n}),n.source?/* @__PURE__ */A(Source,{icon:"check",bold:n.source.bold,rest:n.source.rest,link:n.source.link}):null,n.stockLine?/* @__PURE__ */A(T,{k:"noteStandalone",children:n.stockLine}):null,n.choices?/* @__PURE__ */A(Card2,{label:e.howOften,children:/* @__PURE__ */A(g,{style:r.v("choices"),accessibilityRole:"radiogroup",accessibilityLabel:e.howOften,children:n.choices.map(e=>{let t=n.choice===e.value,i=t?"choiceCurrent":"choice";/* @__PURE__ */
360
- return z(Press,{role:"radio",selected:t,label:[e.title,e.meta].filter(Boolean).join(", "),onPress:()=>n.onChoice(e.value),style:[r.v(i),{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
361
- /* @__PURE__ */A(g,{style:{width:Da,marginRight:r.v(i).columnGap},children:/* @__PURE__ */A(g,{style:r.v(t?"radioOn":"radioOff")})}),
362
- /* @__PURE__ */z(g,{style:{flex:1,minWidth:0,marginRight:r.v(i).columnGap},children:[
363
- /* @__PURE__ */A(T,{k:"choiceTitle",style:{lineHeight:r.tx("choiceText").lineHeight},children:e.title}),e.meta?/* @__PURE__ */A(T,{k:"choiceMeta",children:e.meta}):null]})]},e.value)})})}):null,n.facts?/* @__PURE__ */z(Card2,{children:[
358
+ /* @__PURE__ */W(Stack,{children:[
359
+ /* @__PURE__ */A(ProductHero,{copy:e,v:n}),n.source?/* @__PURE__ */A(Source,{icon:"check",bold:n.source.bold,rest:n.source.rest,link:n.source.link}):null,n.stockLine?/* @__PURE__ */A(T,{k:"noteStandalone",children:n.stockLine}):null,n.choices?/* @__PURE__ */A(Card2,{label:e.howOften,children:/* @__PURE__ */A(f,{style:r.v("choices"),accessibilityRole:"radiogroup",accessibilityLabel:e.howOften,children:n.choices.map(e=>{let t=n.choice===e.value,i=t?"choiceCurrent":"choice";/* @__PURE__ */
360
+ return W(Press,{role:"radio",selected:t,label:[e.title,e.meta].filter(Boolean).join(", "),onPress:()=>n.onChoice(e.value),style:[r.v(i),{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[
361
+ /* @__PURE__ */A(f,{style:{width:Xa,marginRight:r.v(i).columnGap},children:/* @__PURE__ */A(f,{style:r.v(t?"radioOn":"radioOff")})}),
362
+ /* @__PURE__ */W(f,{style:{flex:1,minWidth:0,marginRight:r.v(i).columnGap},children:[
363
+ /* @__PURE__ */A(T,{k:"choiceTitle",style:{lineHeight:r.tx("choiceText").lineHeight},children:e.title}),e.meta?/* @__PURE__ */A(T,{k:"choiceMeta",children:e.meta}):null]})]},e.value)})})}):null,n.facts?/* @__PURE__ */W(Card2,{children:[
364
364
  /* @__PURE__ */A(CardTitle,{children:n.facts.title}),
365
- /* @__PURE__ */A(Facts,{rows:n.facts.rows}),n.facts.note?/* @__PURE__ */A(T,{k:"noteAfterFacts",children:n.facts.note}):null]}):null,n.cards.map(e=>/* @__PURE__ */z(Card2,{children:[
365
+ /* @__PURE__ */A(Facts,{rows:n.facts.rows}),n.facts.note?/* @__PURE__ */A(T,{k:"noteAfterFacts",children:n.facts.note}):null]}):null,n.cards.map(e=>/* @__PURE__ */W(Card2,{children:[
366
366
  /* @__PURE__ */A(CardTitle,{children:e.title}),
367
367
  /* @__PURE__ */A(T,{k:"cardLead",children:e.lead})]},e.key))]}),
368
- /* @__PURE__ */A(Legal,{line:n.legal})]})}var Da=22;function Facts({rows:e}){let t=yr(),r=[];e.forEach((e,t)=>{t%2===0&&r.push([]),r[r.length-1].push(e)});let n=t.v("facts").columnGap;
368
+ /* @__PURE__ */A(Legal,{line:n.legal})]})}var Xa=22;function Facts({rows:e}){let t=kr(),r=[];e.forEach((e,t)=>{t%2===0&&r.push([]),r[r.length-1].push(e)});let n=t.v("facts").columnGap;
369
369
  /* @__PURE__ */
370
- return A(g,{style:[t.v("facts"),{columnGap:0,marginTop:Math.max(0,cr.facts.marginTop-cr.cardTitle.marginBottom)}],children:r.map((e,r)=>/* @__PURE__ */z(g,{style:{flexDirection:"row",columnGap:n,alignItems:"stretch"},children:[e.map(e=>/* @__PURE__ */z(g,{style:[t.v(e.her?"factsLiHer":"factsLi"),{flex:1,minWidth:0}],children:[
370
+ return A(f,{style:[t.v("facts"),{columnGap:0,marginTop:Math.max(0,ur.facts.marginTop-ur.cardTitle.marginBottom)}],children:r.map((e,r)=>/* @__PURE__ */W(f,{style:{flexDirection:"row",columnGap:n,alignItems:"stretch"},children:[e.map(e=>/* @__PURE__ */W(f,{style:[t.v(e.her?"factsLiHer":"factsLi"),{flex:1,minWidth:0}],children:[
371
371
  /* @__PURE__ */A(T,{k:"factsK",children:e.k}),
372
- /* @__PURE__ */z(T,{k:"factsN",lines:1,children:[`${e.n} `
373
- /* @__PURE__ */,A(b,{style:t.tx("factsUnit"),children:e.unit})]})]},e.k)),e.length===1?/* @__PURE__ */A(g,{style:{flex:1}}):null]},r))})}function RxProductScreen({copy:e,view:t,avatar:r}){let n=yr(),i=Cr();if(t.phase!=="ready")/* @__PURE__ */
374
- return z(Frame,{children:[
375
- /* @__PURE__ */z(Stack,{children:[
372
+ /* @__PURE__ */W(T,{k:"factsN",lines:1,children:[`${e.n} `
373
+ /* @__PURE__ */,A(y,{style:t.tx("factsUnit"),children:e.unit})]})]},e.k)),e.length===1?/* @__PURE__ */A(f,{style:{flex:1}}):null]},r))})}function RxProductScreen({copy:e,view:t,avatar:r}){let n=kr(),i=Lr();if(t.phase!=="ready")/* @__PURE__ */
374
+ return W(Frame,{children:[
375
+ /* @__PURE__ */W(Stack,{children:[
376
376
  /* @__PURE__ */A(Hero,{copy:e,tone:"pink",icon:null}),t.phase==="failed"?/* @__PURE__ */A(LoadFailed,{copy:e,thing:e.thingProduct,retry:t.retry}):/* @__PURE__ */A(Card2,{children:/* @__PURE__ */A(Ghost,{})})]}),
377
377
  /* @__PURE__ */A(Legal,{line:e.legal})]});let o=t.value,l=[o.stepLabel,o.sub].filter(Boolean).join(" · ")||null,a=o.submit?"href"in o.submit?{label:o.submit.label,onPress:()=>i.openExternal(o.submit.href)}:o.submit:null,s=o.aside?/* @__PURE__ */A(OutlineButton,{k:"btnOutlineSm",icon:"message",iconKey:"btnOutlineSmIcon",action:{label:o.aside.link.label,onPress:()=>i.openExternal(o.aside.link.href)}}):null,d=n.v("person").columnGap;/* @__PURE__ */
378
- return z(Frame,{tray:/* @__PURE__ */A(TrayBar,{action:a,fine:o.fine??null,error:o.error}),children:[
378
+ return W(Frame,{tray:/* @__PURE__ */A(TrayBar,{action:a,fine:o.fine??null,error:o.error}),children:[
379
379
  /* @__PURE__ */A(TitleBlock,{title:o.title,meta:l}),
380
- /* @__PURE__ */z(Stack,{children:[
381
- /* @__PURE__ */A(ProductHero,{copy:e,v:o}),o.stockLine?/* @__PURE__ */A(T,{k:"noteStandalone",children:o.stockLine}):null,o.script?/* @__PURE__ */z(Card2,{children:[
382
- /* @__PURE__ */z(g,{style:[n.v("person"),{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[r?/* @__PURE__ */z(g,{style:[n.v("avatar"),{marginRight:d,overflow:"hidden"}],children:[
383
- /* @__PURE__ */A(w,{source:r,style:{width:"100%",height:"100%"},accessible:false}),
380
+ /* @__PURE__ */W(Stack,{children:[
381
+ /* @__PURE__ */A(ProductHero,{copy:e,v:o}),o.stockLine?/* @__PURE__ */A(T,{k:"noteStandalone",children:o.stockLine}):null,o.script?/* @__PURE__ */W(Card2,{children:[
382
+ /* @__PURE__ */W(f,{style:[n.v("person"),{flexDirection:"row",alignItems:"center",rowGap:0,columnGap:0}],children:[r?/* @__PURE__ */W(f,{style:[n.v("avatar"),{marginRight:d,overflow:"hidden"}],children:[
383
+ /* @__PURE__ */A(v,{source:r,style:{width:"100%",height:"100%"},accessible:false}),
384
384
  /* @__PURE__ */A(Decor,{k:"avatar"})]}):null,
385
- /* @__PURE__ */z(g,{style:{flex:1,minWidth:0,marginRight:d},children:[
386
- /* @__PURE__ */A(T,{k:"personName",role:"header",children:o.script.name}),o.script.meta?/* @__PURE__ */A(T,{k:"personMeta",children:o.script.meta}):null]})]}),o.script.directions?/* @__PURE__ */A(Source,{icon:"file",rest:o.script.directions,inCard:true}):null,o.script.note?/* @__PURE__ */A(T,{k:"noteAfterSource",children:o.script.note}):null]}):null,o.cards.map((e,t)=>/* @__PURE__ */z(Card2,{children:[
385
+ /* @__PURE__ */W(f,{style:{flex:1,minWidth:0,marginRight:d},children:[
386
+ /* @__PURE__ */A(T,{k:"personName",role:"header",children:o.script.name}),o.script.meta?/* @__PURE__ */A(T,{k:"personMeta",children:o.script.meta}):null]})]}),o.script.directions?/* @__PURE__ */A(Source,{icon:"file",rest:o.script.directions,inCard:true}):null,o.script.note?/* @__PURE__ */A(T,{k:"noteAfterSource",children:o.script.note}):null]}):null,o.cards.map((e,t)=>/* @__PURE__ */W(Card2,{children:[
387
387
  /* @__PURE__ */A(CardTitle,{children:e.title}),
388
- /* @__PURE__ */A(T,{k:"rxLead",children:e.lead}),e.note?/* @__PURE__ */A(T,{k:"noteStandalone",children:e.note}):null,t===o.cards.length-1?s:null]},e.key)),o.cards.length===0&&o.aside?/* @__PURE__ */z(Card2,{children:[
388
+ /* @__PURE__ */A(T,{k:"rxLead",children:e.lead}),e.note?/* @__PURE__ */A(T,{k:"noteStandalone",children:e.note}):null,t===o.cards.length-1?s:null]},e.key)),o.cards.length===0&&o.aside?/* @__PURE__ */W(Card2,{children:[
389
389
  /* @__PURE__ */A(CardTitle,{children:o.aside.title}),
390
- /* @__PURE__ */A(T,{k:"rxLead",children:o.aside.lead}),s]}):null,typeof o.note=="string"?/* @__PURE__ */A(T,{k:"noteStandalone",children:o.note}):null,o.note&&typeof o.note!="string"?/* @__PURE__ */z(T,{k:"noteStandalone",children:[`${o.note.before} `
391
- /* @__PURE__ */,A(b,{style:n.tx("noteLink"),accessibilityRole:"link",onPress:()=>i.openExternal(o.note.link.href),children:o.note.link.label}),o.note.after]}):null]}),
392
- /* @__PURE__ */A(Legal,{line:o.legal})]})}function Prods({children:e}){let t=yr(),r=[];return e.forEach((e,t)=>{t%2===0&&r.push([]),r[r.length-1].push(e)}),/* @__PURE__ */A(g,{style:[t.v("prods"),{columnGap:0}],children:r.map((e,t)=>/* @__PURE__ */z(g,{style:{flexDirection:"row",columnGap:cr.prods.columnGap,alignItems:"stretch"},children:[e,e.length===1?/* @__PURE__ */A(g,{style:{flex:1}}):null]},t))})}function Tile({tile:e}){let t=yr(),r=Cr(),n=Tl(e),i=[e.name,...e.pills.map(e=>e.label),e.meta,e.price].filter(Boolean).join(", ");/* @__PURE__ */
393
- return z(Press,{role:"link",label:i,onPress:()=>r.go(e.to),style:[t.v("prod"),{flex:1,minWidth:0}],children:[
394
- /* @__PURE__ */z(g,{style:[t.v("prodImg"),{backgroundColor:vl(n.tone),alignItems:"center",justifyContent:"center"},e.imageUrl?{overflow:"hidden"}:null],children:[
395
- /* @__PURE__ */A(PartIcon,{name:n.icon,k:"prodIcon"}),e.imageUrl?/* @__PURE__ */A(TilePhoto,{uri:e.imageUrl},e.imageUrl):null]}),e.pills.length>0?/* @__PURE__ */A(g,{style:[t.v("prodTags"),{flexDirection:"row",flexWrap:"wrap"}],children:e.pills.map(e=>/* @__PURE__ */A(Pill2,{pill:e},e.label))}):null,
396
- /* @__PURE__ */z(g,{style:t.v("prodBody"),children:[
397
- /* @__PURE__ */A(T,{k:"prodName",children:e.name}),e.meta?/* @__PURE__ */A(T,{k:"prodMeta",children:e.meta}):null,e.price?/* @__PURE__ */A(T,{k:"prodPrice",children:e.price}):null]})]})}function GhostTiles({n:e}){let t=yr();/* @__PURE__ */
398
- return A(g,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */A(Prods,{children:Array.from({length:e},(e,r)=>/* @__PURE__ */z(g,{style:[t.v("prod"),{flex:1,minWidth:0}],children:[
399
- /* @__PURE__ */A(g,{style:[t.v("prodImg"),{backgroundColor:vl("base")}]}),
400
- /* @__PURE__ */A(g,{style:t.v("prodBody"),children:/* @__PURE__ */A(Ghost,{rows:2})})]},r))})})}function ShopScreen({copy:e,tabs:t,view:r}){let n=yr(),i=Cr(),o=r.shelves,l=o.phase==="ready"?r.more??null:null;/* @__PURE__ */
401
- return z(Frame,{tabs:{copy:e,current:"shop",tabs:t},onNearEnd:l&&!l.loading&&!l.failed?l.onMore:null,children:[
390
+ /* @__PURE__ */A(T,{k:"rxLead",children:o.aside.lead}),s]}):null,typeof o.note=="string"?/* @__PURE__ */A(T,{k:"noteStandalone",children:o.note}):null,o.note&&typeof o.note!="string"?/* @__PURE__ */W(T,{k:"noteStandalone",children:[`${o.note.before} `
391
+ /* @__PURE__ */,A(y,{style:n.tx("noteLink"),accessibilityRole:"link",onPress:()=>i.openExternal(o.note.link.href),children:o.note.link.label}),o.note.after]}):null]}),
392
+ /* @__PURE__ */A(Legal,{line:o.legal})]})}function Prods({children:e}){let t=kr(),r=[];return e.forEach((e,t)=>{t%2===0&&r.push([]),r[r.length-1].push(e)}),/* @__PURE__ */A(f,{style:[t.v("prods"),{columnGap:0}],children:r.map((e,t)=>/* @__PURE__ */W(f,{style:{flexDirection:"row",columnGap:ur.prods.columnGap,alignItems:"stretch"},children:[e,e.length===1?/* @__PURE__ */A(f,{style:{flex:1}}):null]},t))})}function Tile({tile:e}){let t=kr(),r=Lr(),n=Bl(e),i=[e.name,...e.pills.map(e=>e.label),e.meta,e.price].filter(Boolean).join(", ");/* @__PURE__ */
393
+ return W(Press,{role:"link",label:i,onPress:()=>r.go(e.to),style:[t.v("prod"),{flex:1,minWidth:0}],children:[
394
+ /* @__PURE__ */W(f,{style:[t.v("prodImg"),{backgroundColor:Pl(n.tone),alignItems:"center",justifyContent:"center"},e.imageUrl?{overflow:"hidden"}:null],children:[
395
+ /* @__PURE__ */A(PartIcon,{name:n.icon,k:"prodIcon"}),e.imageUrl?/* @__PURE__ */A(TilePhoto,{uri:e.imageUrl},e.imageUrl):null]}),e.pills.length>0?/* @__PURE__ */A(f,{style:[t.v("prodTags"),{flexDirection:"row",flexWrap:"wrap"}],children:e.pills.map(e=>/* @__PURE__ */A(Pill2,{pill:e},e.label))}):null,
396
+ /* @__PURE__ */W(f,{style:t.v("prodBody"),children:[
397
+ /* @__PURE__ */A(T,{k:"prodName",children:e.name}),e.meta?/* @__PURE__ */A(T,{k:"prodMeta",children:e.meta}):null,e.price?/* @__PURE__ */A(T,{k:"prodPrice",children:e.price}):null]})]})}function GhostTiles({n:e}){let t=kr();/* @__PURE__ */
398
+ return A(f,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */A(Prods,{children:Array.from({length:e},(e,r)=>/* @__PURE__ */W(f,{style:[t.v("prod"),{flex:1,minWidth:0}],children:[
399
+ /* @__PURE__ */A(f,{style:[t.v("prodImg"),{backgroundColor:Pl("base")}]}),
400
+ /* @__PURE__ */A(f,{style:t.v("prodBody"),children:/* @__PURE__ */A(Ghost,{rows:2})})]},r))})})}function ShopScreen({copy:e,tabs:t,view:r}){let n=kr(),i=Lr(),o=r.shelves,l=o.phase==="ready"?r.more??null:null;/* @__PURE__ */
401
+ return W(Frame,{tabs:{copy:e,current:"shop",tabs:t},onNearEnd:l&&!l.loading&&!l.failed?l.onMore:null,children:[
402
402
  /* @__PURE__ */A(TitleBlock,{title:e.shopTitle,meta:r.sub}),
403
- /* @__PURE__ */z(Stack,{children:[
404
- /* @__PURE__ */z(g,{style:[n.v("input"),{flexDirection:"row",alignItems:"center"}],children:[
403
+ /* @__PURE__ */W(Stack,{children:[
404
+ /* @__PURE__ */W(f,{style:[n.v("input"),{flexDirection:"row",alignItems:"center"}],children:[
405
405
  /* @__PURE__ */A(PartIcon,{name:"search",k:"inputIcon"}),
406
- /* @__PURE__ */A(h,{style:[n.t("inputText"),{flex:1,minWidth:0}],value:r.query,onChangeText:r.onQuery,placeholder:e.searchPlaceholder,placeholderTextColor:kr("inputPlaceholder"),accessibilityLabel:e.searchLabel,autoCapitalize:"none",autoCorrect:false,returnKeyType:"search"})]}),r.filters.length>0?/* @__PURE__ */A(f,{horizontal:true,showsHorizontalScrollIndicator:false,accessibilityLabel:e.filtersLabel,contentContainerStyle:[n.v("filters"),{flexDirection:"row"}],children:r.filters.map(e=>{let t=e.current?"filterCurrent":"filter";/* @__PURE__ */
407
- return A(Press,{role:"tab",selected:e.current,...e.to?{onPress:()=>i.go(e.to)}:{},style:[n.v(t),{flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */A(T,{k:t,bare:true,children:e.label})},e.label)})}):null,o.phase==="failed"?/* @__PURE__ */A(LoadFailed,{copy:e,thing:e.thingShop,retry:o.retry}):null,o.phase==="loading"?/* @__PURE__ */A(GhostTiles,{n:6}):null,o.phase==="ready"?o.value.filter(e=>e.tiles.length>0).map(e=>/* @__PURE__ */z(g,{children:[
408
- /* @__PURE__ */z(g,{style:[n.v("sectionHead"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"}],children:[
406
+ /* @__PURE__ */A(g,{style:[n.t("inputText"),{flex:1,minWidth:0}],value:r.query,onChangeText:r.onQuery,placeholder:e.searchPlaceholder,placeholderTextColor:wr("inputPlaceholder"),accessibilityLabel:e.searchLabel,autoCapitalize:"none",autoCorrect:false,returnKeyType:"search"})]}),r.filters.length>0?/* @__PURE__ */A(m,{horizontal:true,showsHorizontalScrollIndicator:false,accessibilityLabel:e.filtersLabel,contentContainerStyle:[n.v("filters"),{flexDirection:"row"}],children:r.filters.map(e=>{let t=e.current?"filterCurrent":"filter";/* @__PURE__ */
407
+ return A(Press,{role:"tab",selected:e.current,...e.to?{onPress:()=>i.go(e.to)}:{},style:[n.v(t),{flexDirection:"row",alignItems:"center"}],children:/* @__PURE__ */A(T,{k:t,bare:true,children:e.label})},e.label)})}):null,o.phase==="failed"?/* @__PURE__ */A(LoadFailed,{copy:e,thing:e.thingShop,retry:o.retry}):null,o.phase==="loading"?/* @__PURE__ */A(GhostTiles,{n:6}):null,o.phase==="ready"?o.value.filter(e=>e.tiles.length>0).map(e=>/* @__PURE__ */W(f,{children:[
408
+ /* @__PURE__ */W(f,{style:[n.v("sectionHead"),{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"}],children:[
409
409
  /* @__PURE__ */A(T,{k:"cardTitleInHead",role:"header",children:e.title}),e.link?/* @__PURE__ */A(ShopLinkText,{link:e.link}):null]}),
410
- /* @__PURE__ */A(Prods,{children:e.tiles.map(e=>/* @__PURE__ */A(Tile,{tile:e},e.key))})]},e.key)):null,l?.loading?/* @__PURE__ */A(GhostTiles,{n:2}):null,l?.failed?/* @__PURE__ */A(LoadFailed,{copy:e,thing:e.thingShop,retry:l.onMore}):null,o.phase==="ready"&&r.empty?/* @__PURE__ */A(g,{accessibilityLiveRegion:"polite",children:/* @__PURE__ */A(T,{k:"cardLead",children:r.empty})}):null]}),
411
- /* @__PURE__ */A(Legal,{line:r.legal})]})}function Ea(e,t,r=null){let{client:a,copy:s,v3:d,payments:c}=Oe(),u=Ue(),p=Me(),[h,g]=l(false),[f,m]=l("main"),[b,y]=l(()=>Vt(a));n(()=>qt(a),[a]);let[k,w]=l(null),[v,x]=l(null),S=(u.value??[]).filter(e=>e.isComplete),I=S.find(e=>e.ref===b)??S.find(e=>e.isDefault)??S[0]??null,C=p.value??[],L=C.find(e=>e.paymentMethodId===k)??C[0]??null,z=i(()=>ee(e),[e]),A=JSON.stringify(z),W=De(I&&z.length>0?`cart-quote:${I.ref}:${A}`:null,()=>a.quote({lines:z,shipTo:I.ref})),[R,F]=l(null),H=`${I?.ref??""}:${A}`,P=R&&R.key===H?R.total:null,B=o(()=>{}),O=Mt(()=>B.current()),D=e.map(e=>e.key),E=Ye(async e=>{let t=await a.createCheckout({idempotencyKey:e.key("draft"),lines:z,shipTo:I.ref});if(!t.ok)return le(t.error);if((P??W.value?.total??null)!==t.value.total)return F({key:H,total:t.value.total}),le({kind:"refused",status:409,reasonCode:"price_changed",message:null});let r=await me(e=>a.confirmCheckout(t.value.checkoutId,{idempotencyKey:e,expectedTotal:t.value.total,paymentMethodId:L.paymentMethodId}),e,c,{reconfirm:true,beforePayerAction:()=>Q(a,D)});return r.kind==="failed"?le(r.error):oe(r)}),N=()=>{!I||!L||!W.value||E.busy||(x(null),O.clear(),E.run().then(e=>{if(!e)return;let r=e.ok?e.value:{kind:"failed",error:e.error};if(r.kind==="failed"){if(O.raise(r.error))return;x(St(s,r));return}if(r.orderIds.length===0){x(s.actionFailed);return}if(Q(a,D),g(false),m("main"),r.kind==="confirmed"){t({name:"placed",orderIds:r.orderIds});return}Ct(a,r.orderIds[0],St(s,r)),t({name:"order",orderId:r.orderIds[0]})}))};B.current=N;let[V,q]=l(false),U=o(null);n(()=>{if(!U.current||p.phase!=="ready"||!p.value)return;let e=p.value.find(e=>!U.current.has(e.paymentMethodId));U.current=null,e&&w(e.paymentMethodId)},[p.phase,p.value]);let G=r?{busy:V,run:()=>{if(V)return;q(true),x(null);let e=new Set(C.map(e=>e.paymentMethodId));r().then(t=>{q(false),t.ok?(U.current=e,m("main"),p.refresh()):x(t.closed?s.cardStepClosed:t.message??s.cardStepFailed)},()=>{q(false),x(s.cardStepFailed)})}}:null,M=Ye((e,t)=>a.addAddress(t)),j={busy:M.busy,error:M.error?Fe(s,M.error):null,run:e=>{M.run(e).then(e=>{e&&e.ok&&(y(e.value.ref),m("main"),u.refresh())})}},Z=te(e),Y=W.value,J=P??Y?.total??null,X=[];Z!==null&&X.push({k:d.subtotal,v:ke(Z)}),Y&&J!==null&&(X.push({k:d.shipping,v:Y.shipping===0?d.free:ke(Y.shipping)}),X.push({k:d.tax,v:ke(Y.tax)}),X.push({k:d.total,v:ke(J),total:true}));let _=e.some(e=>e.requiresRx),$=[L?s.chargedWhenShips(Le(L.brand,L.last4)):null,_?s.rxCheckedFirst:null].filter(e=>!!e);return{open:h,pane:f,setPane:m,openSheet:()=>{x(null),m("main"),g(true)},closeSheet:()=>{E.busy||(g(false),m("main"))},addresses:[...S].sort((e,t)=>Number(t.isDefault)-Number(e.isDefault)),addressesLoading:u.phase==="loading",address:I,chooseAddress:e=>{y(e),m("main")},cards:C,cardsLoading:p.phase==="loading",card:L,chooseCard:e=>{w(e),m("main")},addCard:G,saveAddress:j,sum:X,subtotal:Z!==null?ke(Z):null,total:J!==null?ke(J):null,canPlace:!!I&&!!L&&!!Y&&e.length>0&&!E.busy,placing:E.busy,place:N,error:O.view!==null?null:v??jt(s,W),nameStep:O.view,fine:$.length>0?$.join(" "):null}}var Na=3200;function Va(e){let[t,r]=l(e);return n(()=>{if(!t)return;let e=setTimeout(()=>r(null),Na);return()=>clearTimeout(e)},[t]),[t,r]}function CartScreen({go:e}){let{client:t,copy:r,v3:n}=Oe(),{cardHandoff:i}=pa(),o=ne(t),l=Ea(o,e,i),[a,s]=Va(()=>$(t));if(o.length===0)/* @__PURE__ */
412
- return z(Page,{testID:"shop-cart",children:[
410
+ /* @__PURE__ */A(Prods,{children:e.tiles.map(e=>/* @__PURE__ */A(Tile,{tile:e},e.key))})]},e.key)):null,l?.loading?/* @__PURE__ */A(GhostTiles,{n:2}):null,l?.failed?/* @__PURE__ */A(LoadFailed,{copy:e,thing:e.thingShop,retry:l.onMore}):null,o.phase==="ready"&&r.empty?/* @__PURE__ */A(f,{accessibilityLiveRegion:"polite",children:/* @__PURE__ */A(T,{k:"cardLead",children:r.empty})}):null]}),
411
+ /* @__PURE__ */A(Legal,{line:r.legal})]})}function Qa(e,t,r=null){let{client:a,copy:s,v3:d,payments:c}=De(),u=Ge(),p=Ke(),[h,g]=l(false),[f,m]=l("main"),[b,y]=l(()=>qt(a));n(()=>Ut(a),[a]);let[k,w]=l(null),[v,x]=l(null),S=(u.value??[]).filter(e=>e.isComplete),I=S.find(e=>e.ref===b)??S.find(e=>e.isDefault)??S[0]??null,C=p.value??[],L=C.find(e=>e.paymentMethodId===k)??C[0]??null,z=i(()=>te(e),[e]),W=JSON.stringify(z),A=Ee(I&&z.length>0?`cart-quote:${I.ref}:${W}`:null,()=>a.quote({lines:z,shipTo:I.ref})),[R,F]=l(null),H=`${I?.ref??""}:${W}`,P=R&&R.key===H?R.total:null,B=o(()=>{}),O=Kt(()=>B.current()),D=e.map(e=>e.key),E=Je(async e=>{let t=await a.createCheckout({idempotencyKey:e.key("draft"),lines:z,shipTo:I.ref});if(!t.ok)return ae(t.error);if((P??A.value?.total??null)!==t.value.total)return F({key:H,total:t.value.total}),ae({kind:"refused",status:409,reasonCode:"price_changed",message:null});let r=await be(e=>a.confirmCheckout(t.value.checkoutId,{idempotencyKey:e,expectedTotal:t.value.total,paymentMethodId:L.paymentMethodId}),e,c,{reconfirm:true,beforePayerAction:()=>_(a,D)});return r.kind==="failed"?ae(r.error):le(r)}),N=()=>{!I||!L||!A.value||E.busy||(x(null),O.clear(),E.run().then(e=>{if(!e)return;let r=e.ok?e.value:{kind:"failed",error:e.error};if(r.kind==="failed"){if(O.raise(r.error))return;x(It(s,r));return}if(r.orderIds.length===0){x(s.actionFailed);return}if(_(a,D),g(false),m("main"),r.kind==="confirmed"){t({name:"placed",orderIds:r.orderIds});return}Lt(a,r.orderIds[0],It(s,r)),t({name:"order",orderId:r.orderIds[0]})}))};B.current=N;let[V,q]=l(false),U=o(null);n(()=>{if(!U.current||p.phase!=="ready"||!p.value)return;let e=p.value.find(e=>!U.current.has(e.paymentMethodId));U.current=null,e&&w(e.paymentMethodId)},[p.phase,p.value]);let G=r?{busy:V,run:()=>{if(V)return;q(true),x(null);let e=new Set(C.map(e=>e.paymentMethodId));r().then(t=>{q(false),t.ok?(U.current=e,m("main"),p.refresh()):x(t.closed?s.cardStepClosed:t.message??s.cardStepFailed)},()=>{q(false),x(s.cardStepFailed)})}}:null,M=Je((e,t)=>a.addAddress(t)),j={busy:M.busy,error:M.error?He(s,M.error):null,run:e=>{M.run(e).then(e=>{e&&e.ok&&(y(e.value.ref),m("main"),u.refresh())})}},Z=re(e),Y=A.value,J=P??Y?.total??null,X=[];Z!==null&&X.push({k:d.subtotal,v:we(Z)}),Y&&J!==null&&(X.push({k:d.shipping,v:Y.shipping===0?d.free:we(Y.shipping)}),X.push({k:d.tax,v:we(Y.tax)}),X.push({k:d.total,v:we(J),total:true}));let Q=e.some(e=>e.requiresRx),$=[L?s.chargedWhenShips(ze(L.brand,L.last4)):null,Q?s.rxCheckedFirst:null].filter(e=>!!e);return{open:h,pane:f,setPane:m,openSheet:()=>{x(null),m("main"),g(true)},closeSheet:()=>{E.busy||(g(false),m("main"))},addresses:[...S].sort((e,t)=>Number(t.isDefault)-Number(e.isDefault)),addressesLoading:u.phase==="loading",address:I,chooseAddress:e=>{y(e),m("main")},cards:C,cardsLoading:p.phase==="loading",card:L,chooseCard:e=>{w(e),m("main")},addCard:G,saveAddress:j,sum:X,subtotal:Z!==null?we(Z):null,total:J!==null?we(J):null,canPlace:!!I&&!!L&&!!Y&&e.length>0&&!E.busy,placing:E.busy,place:N,error:O.view!==null?null:v??Zt(s,A),nameStep:O.view,fine:$.length>0?$.join(" "):null}}var _a=3200;function $a(e){let[t,r]=l(e);return n(()=>{if(!t)return;let e=setTimeout(()=>r(null),_a);return()=>clearTimeout(e)},[t]),[t,r]}function CartScreen({go:e}){let{client:t,copy:r,v3:n}=De(),{cardHandoff:i}=Ia(),o=ie(t),l=Qa(o,e,i),[a,s]=$a(()=>ee(t));if(o.length===0)/* @__PURE__ */
412
+ return W(Page,{testID:"shop-cart",children:[
413
413
  /* @__PURE__ */A(Toast2,{line:a}),
414
414
  /* @__PURE__ */A(Empty,{icon:"cart",title:n.cartEmptyTitle,body:n.cartEmptyBody,action:/* @__PURE__ */A(Btn,{label:r.tabShop,onPress:()=>e({name:"shop"})})})]});let d=l.subtotal??l.total;/* @__PURE__ */
415
- return z(Page,{testID:"shop-cart",foot:/* @__PURE__ */A(Btn,{size:"lg",label:d?n.checkoutCart(d):n.checkoutKicker,onPress:l.openSheet,testID:"shop-cart-checkout"}),children:[
415
+ return W(Page,{testID:"shop-cart",foot:/* @__PURE__ */A(Btn,{size:"lg",label:d?n.checkoutCart(d):n.checkoutKicker,onPress:l.openSheet,testID:"shop-cart-checkout"}),children:[
416
416
  /* @__PURE__ */A(Title,{children:n.cartTitle}),
417
417
  /* @__PURE__ */A(Toast2,{line:a}),
418
- /* @__PURE__ */A(Card3,{children:/* @__PURE__ */A(g,{style:{gap:18},children:o.map(e=>/* @__PURE__ */A(CartItem,{item:e,onQuantity:r=>J(t,e.key,r),onRemove:()=>{let r=X(t,e.key);r&&s(n.removedFromCart(r.title))}},e.key))})}),
418
+ /* @__PURE__ */A(Card3,{children:/* @__PURE__ */A(f,{style:{gap:18},children:o.map(e=>/* @__PURE__ */A(CartItem,{item:e,onQuantity:r=>X(t,e.key,r),onRemove:()=>{let r=Q(t,e.key);r&&s(n.removedFromCart(r.title))}},e.key))})}),
419
419
  /* @__PURE__ */A(Sum2,{rows:l.sum}),
420
- /* @__PURE__ */A(CheckoutSheet,{co:l,items:o})]})}function CartItem({item:e,onQuantity:t,onRemove:r}){return no()?/* @__PURE__ */A(KitLine,{item:e,onQuantity:t,onRemove:r}):/* @__PURE__ */A(PlanLine2,{item:e,onQuantity:t,onRemove:r})}function PlanLine2({item:e,onQuantity:t,onRemove:r}){let{copy:n,v3:i,petName:o}=Oe(),l=o(e.petId),a=[...l?[n.forPet(l)]:[],...e.rxId?[i.itemQuantity(e.quantity)]:[]];/* @__PURE__ */
421
- return A(ItemLine,{testID:"shop-cart-line",rx:e.requiresRx,title:e.title,imageUrl:e.imageUrl,price:e.unitPrice!==null?ke(e.unitPrice*e.quantity):void 0,smalls:a,quantity:e.rxId?void 0:{value:e.quantity,min:1,max:5,label:i.quantityLabel(e.title),fewerLabel:i.fewer,moreLabel:i.more,onChange:t},removeLabel:i.remove,onRemove:r})}function KitLine({item:e,onQuantity:t,onRemove:r}){let{copy:n,v3:i,petName:o}=Oe(),l=ha(),a=o(e.petId);/* @__PURE__ */
422
- return z(g,{style:l.item,testID:"shop-cart-line",children:[
420
+ /* @__PURE__ */A(CheckoutSheet,{co:l,items:o})]})}function CartItem({item:e,onQuantity:t,onRemove:r}){return io()?/* @__PURE__ */A(KitLine,{item:e,onQuantity:t,onRemove:r}):/* @__PURE__ */A(PlanLine2,{item:e,onQuantity:t,onRemove:r})}function PlanLine2({item:e,onQuantity:t,onRemove:r}){let{copy:n,v3:i,petName:o}=De(),l=o(e.petId),a=[...l?[n.forPet(l)]:[],...e.rxId?[i.itemQuantity(e.quantity)]:[]];/* @__PURE__ */
421
+ return A(ItemLine,{testID:"shop-cart-line",rx:e.requiresRx,title:e.title,imageUrl:e.imageUrl,price:e.unitPrice!==null?we(e.unitPrice*e.quantity):void 0,smalls:a,quantity:e.rxId?void 0:{value:e.quantity,min:1,max:5,label:i.quantityLabel(e.title),fewerLabel:i.fewer,moreLabel:i.more,onChange:t},removeLabel:i.remove,onRemove:r})}function KitLine({item:e,onQuantity:t,onRemove:r}){let{copy:n,v3:i,petName:o}=De(),l=Ca(),a=o(e.petId);/* @__PURE__ */
422
+ return W(f,{style:l.item,testID:"shop-cart-line",children:[
423
423
  /* @__PURE__ */A(Thumb2,{rx:e.requiresRx,title:e.title,imageUrl:e.imageUrl}),
424
- /* @__PURE__ */z(g,{style:l.grow,children:[
424
+ /* @__PURE__ */W(f,{style:l.grow,children:[
425
425
  /* @__PURE__ */A(Text3,{style:l.itemName,children:e.title}),
426
- /* @__PURE__ */z(g,{style:l.itemP,children:[e.unitPrice!==null?/* @__PURE__ */A(Text3,{style:l.itemPrice,children:ke(e.unitPrice*e.quantity)}):null,a?/* @__PURE__ */A(Text3,{style:l.itemSmall,children:n.forPet(a)}):null,e.rxId?/* @__PURE__ */A(Text3,{style:l.itemSmall,children:i.itemQuantity(e.quantity)}):null]}),
427
- /* @__PURE__ */z(g,{style:l.itemActs,children:[e.rxId?null:/* @__PURE__ */A(LineStepper,{item:e,onQuantity:t}),
428
- /* @__PURE__ */A(LinkBtn,{label:i.remove,tone:"remove",onPress:r,a11yLabel:`${i.remove}: ${e.title}`})]})]})]})}function LineStepper({item:e,onQuantity:t}){let{v3:r}=Oe();/* @__PURE__ */
429
- return A(Stepper,{value:e.quantity,max:5,label:r.quantityLabel(e.title),fewerLabel:r.fewer,moreLabel:r.more,onChange:t})}function CheckoutSheet({co:e,items:t}){let{copy:r,v3:n}=Oe(),i=e.pane==="address"||e.pane==="addAddress"?n.shipsTo:e.pane==="card"?n.payWith:n.checkoutKicker,o=e.pane==="main"?/* @__PURE__ */A(Btn,{size:"lg",label:e.total?n.placeOrder(e.total):n.checkoutKicker,busy:e.placing,busyLabel:r.saving,disabled:!e.canPlace,onPress:e.place,testID:"shop-place-order"}):null;/* @__PURE__ */
430
- return z(Sheet2,{open:e.open,kicker:i,closeLabel:r.close,onClose:e.closeSheet,foot:o,testID:"shop-checkout",children:[e.pane==="main"?/* @__PURE__ */A(MainPane,{co:e,items:t}):null,e.pane==="address"?/* @__PURE__ */A(AddressPane,{co:e}):null,e.pane==="addAddress"?/* @__PURE__ */A(AddAddressPane,{co:e}):null,e.pane==="card"?/* @__PURE__ */A(CardPane,{co:e}):null]})}function MainPane({co:e,items:t}){let{v3:r}=Oe(),n=ha();/* @__PURE__ */
431
- return z(W,{children:[
432
- /* @__PURE__ */A(g,{style:n.coItems,children:t.map(e=>/* @__PURE__ */z(g,{style:n.coItem,accessible:true,accessibilityLabel:[e.title,r.itemQuantity(e.quantity),e.unitPrice!==null?ke(e.unitPrice*e.quantity):null].filter(Boolean).join(", "),children:[
426
+ /* @__PURE__ */W(f,{style:l.itemP,children:[e.unitPrice!==null?/* @__PURE__ */A(Text3,{style:l.itemPrice,children:we(e.unitPrice*e.quantity)}):null,a?/* @__PURE__ */A(Text3,{style:l.itemSmall,children:n.forPet(a)}):null,e.rxId?/* @__PURE__ */A(Text3,{style:l.itemSmall,children:i.itemQuantity(e.quantity)}):null]}),
427
+ /* @__PURE__ */W(f,{style:l.itemActs,children:[e.rxId?null:/* @__PURE__ */A(LineStepper,{item:e,onQuantity:t}),
428
+ /* @__PURE__ */A(LinkBtn,{label:i.remove,tone:"remove",onPress:r,a11yLabel:`${i.remove}: ${e.title}`})]})]})]})}function LineStepper({item:e,onQuantity:t}){let{v3:r}=De();/* @__PURE__ */
429
+ return A(Stepper,{value:e.quantity,max:5,label:r.quantityLabel(e.title),fewerLabel:r.fewer,moreLabel:r.more,onChange:t})}function CheckoutSheet({co:e,items:t}){let{copy:r,v3:n}=De(),i=e.pane==="address"||e.pane==="addAddress"?n.shipsTo:e.pane==="card"?n.payWith:n.checkoutKicker,o=e.pane==="main"?/* @__PURE__ */A(Btn,{size:"lg",label:e.total?n.placeOrder(e.total):n.checkoutKicker,busy:e.placing,busyLabel:r.saving,disabled:!e.canPlace,onPress:e.place,testID:"shop-place-order"}):null;/* @__PURE__ */
430
+ return W(Sheet2,{open:e.open,kicker:i,closeLabel:r.close,onClose:e.closeSheet,foot:o,testID:"shop-checkout",children:[e.pane==="main"?/* @__PURE__ */A(MainPane,{co:e,items:t}):null,e.pane==="address"?/* @__PURE__ */A(AddressPane,{co:e}):null,e.pane==="addAddress"?/* @__PURE__ */A(AddAddressPane,{co:e}):null,e.pane==="card"?/* @__PURE__ */A(CardPane,{co:e}):null]})}function MainPane({co:e,items:t}){let{v3:r}=De(),n=Ca();/* @__PURE__ */
431
+ return W(R,{children:[
432
+ /* @__PURE__ */A(f,{style:n.coItems,children:t.map(e=>/* @__PURE__ */W(f,{style:n.coItem,accessible:true,accessibilityLabel:[e.title,r.itemQuantity(e.quantity),e.unitPrice!==null?we(e.unitPrice*e.quantity):null].filter(Boolean).join(", "),children:[
433
433
  /* @__PURE__ */A(Thumb2,{rx:e.requiresRx,size:44,title:e.title,imageUrl:e.imageUrl}),
434
- /* @__PURE__ */z(g,{style:n.grow,children:[
434
+ /* @__PURE__ */W(f,{style:n.grow,children:[
435
435
  /* @__PURE__ */A(Text3,{style:n.coName,children:e.title}),
436
- /* @__PURE__ */A(Text3,{style:n.coSmall,children:r.itemQuantity(e.quantity)})]}),e.unitPrice!==null?/* @__PURE__ */A(Text3,{style:n.coPrice,children:ke(e.unitPrice*e.quantity)}):null]},e.key))}),
437
- /* @__PURE__ */z(g,{style:n.coRows,children:[
436
+ /* @__PURE__ */A(Text3,{style:n.coSmall,children:r.itemQuantity(e.quantity)})]}),e.unitPrice!==null?/* @__PURE__ */A(Text3,{style:n.coPrice,children:we(e.unitPrice*e.quantity)}):null]},e.key))}),
437
+ /* @__PURE__ */W(f,{style:n.coRows,children:[
438
438
  /* @__PURE__ */A(CoRow,{icon:"truck",k:r.shipsTo,value:e.address?e.address.label:e.addressesLoading?" ":r.noAddressYet,onPress:()=>e.setPane(e.addresses.some(e=>e.isComplete)?"address":"addAddress")}),
439
- /* @__PURE__ */A(CoRow,{icon:"card",k:r.payWith,value:e.card?Le(e.card.brand,e.card.last4):e.cardsLoading?" ":r.noCardYet,onPress:()=>e.setPane("card")})]}),
439
+ /* @__PURE__ */A(CoRow,{icon:"card",k:r.payWith,value:e.card?ze(e.card.brand,e.card.last4):e.cardsLoading?" ":r.noCardYet,onPress:()=>e.setPane("card")})]}),
440
440
  /* @__PURE__ */A(Sum2,{rows:e.sum,flat:true}),e.nameStep?/* @__PURE__ */A(NameStep,{step:e.nameStep}):null,
441
- /* @__PURE__ */A(ErrorLine,{line:e.error}),e.fine?/* @__PURE__ */A(Text3,{style:n.coFine,children:e.fine}):null]})}function AddressPane({co:e}){let{v3:t}=Oe(),r=ha();/* @__PURE__ */
442
- return z(g,{style:r.opts,children:[e.addresses.filter(e=>e.isComplete).map(t=>/* @__PURE__ */A(Opt,{on:e.address?.ref===t.ref,name:t.label,onPress:()=>e.chooseAddress(t.ref)},t.ref)),
443
- /* @__PURE__ */A(Btn,{ghost:true,label:t.addAddress,onPress:()=>e.setPane("addAddress")})]})}function AddAddressPane({co:e}){let{copy:t}=Oe(),[r,n]=l({label:"",recipient:"",line1:"",line2:"",city:"",region:"",postal:""}),i=e=>t=>n(r=>({...r,[e]:t})),o=r.label.trim()&&r.recipient.trim()&&r.line1.trim()&&r.city.trim()&&Ha(r.region)&&Fa.test(r.postal.trim()),a=()=>({label:r.label.trim().slice(0,60),makeDefault:e.addresses.length===0,address:{recipientName:r.recipient.trim(),line1:r.line1.trim(),line2:r.line2.trim()||null,city:r.city.trim(),region:r.region.trim().toUpperCase(),postalCode:r.postal.trim(),country:"US"}});/* @__PURE__ */
444
- return z(g,{style:{gap:14},children:[
441
+ /* @__PURE__ */A(ErrorLine,{line:e.error}),e.fine?/* @__PURE__ */A(Text3,{style:n.coFine,children:e.fine}):null]})}function AddressPane({co:e}){let{v3:t}=De(),r=Ca();/* @__PURE__ */
442
+ return W(f,{style:r.opts,children:[e.addresses.filter(e=>e.isComplete).map(t=>/* @__PURE__ */A(Opt,{on:e.address?.ref===t.ref,name:t.label,onPress:()=>e.chooseAddress(t.ref)},t.ref)),
443
+ /* @__PURE__ */A(Btn,{ghost:true,label:t.addAddress,onPress:()=>e.setPane("addAddress")})]})}function AddAddressPane({co:e}){let{copy:t}=De(),[r,n]=l({label:"",recipient:"",line1:"",line2:"",city:"",region:"",postal:""}),i=e=>t=>n(r=>({...r,[e]:t})),o=r.label.trim()&&r.recipient.trim()&&r.line1.trim()&&r.city.trim()&&ja(r.region)&&Ka.test(r.postal.trim()),a=()=>({label:r.label.trim().slice(0,60),makeDefault:e.addresses.length===0,address:{recipientName:r.recipient.trim(),line1:r.line1.trim(),line2:r.line2.trim()||null,city:r.city.trim(),region:r.region.trim().toUpperCase(),postalCode:r.postal.trim(),country:"US"}});/* @__PURE__ */
444
+ return W(f,{style:{gap:14},children:[
445
445
  /* @__PURE__ */A(Field2,{label:t.addressLabel,value:r.label,onChange:i("label"),autoComplete:"off"}),
446
446
  /* @__PURE__ */A(Field2,{label:t.addressRecipient,value:r.recipient,onChange:i("recipient"),autoComplete:"name"}),
447
447
  /* @__PURE__ */A(Field2,{label:t.addressLine1,value:r.line1,onChange:i("line1"),autoComplete:"address-line1"}),
@@ -450,82 +450,82 @@ return z(g,{style:{gap:14},children:[
450
450
  /* @__PURE__ */A(Field2,{label:t.addressRegion,value:r.region,onChange:i("region"),autoComplete:"off",kind:"state"}),
451
451
  /* @__PURE__ */A(Field2,{label:t.addressPostal,value:r.postal,onChange:i("postal"),autoComplete:"postal-code",kind:"zip"}),
452
452
  /* @__PURE__ */A(ErrorLine,{line:e.saveAddress.error}),
453
- /* @__PURE__ */A(Btn,{label:t.addressSave,busy:e.saveAddress.busy,busyLabel:t.saving,disabled:!o,onPress:()=>e.saveAddress.run(a())})]})}function CardPane({co:e}){let{copy:t,v3:r}=Oe(),n=ha();/* @__PURE__ */
454
- return z(g,{style:n.opts,children:[e.cards.map(t=>/* @__PURE__ */A(Opt,{on:e.card?.paymentMethodId===t.paymentMethodId,name:Le(t.brand,t.last4),onPress:()=>e.chooseCard(t.paymentMethodId)},t.paymentMethodId)),e.addCard?/* @__PURE__ */A(Btn,{ghost:true,label:r.addCard,busy:e.addCard.busy,busyLabel:t.saving,onPress:e.addCard.run}):null,
453
+ /* @__PURE__ */A(Btn,{label:t.addressSave,busy:e.saveAddress.busy,busyLabel:t.saving,disabled:!o,onPress:()=>e.saveAddress.run(a())})]})}function CardPane({co:e}){let{copy:t,v3:r}=De(),n=Ca();/* @__PURE__ */
454
+ return W(f,{style:n.opts,children:[e.cards.map(t=>/* @__PURE__ */A(Opt,{on:e.card?.paymentMethodId===t.paymentMethodId,name:ze(t.brand,t.last4),onPress:()=>e.chooseCard(t.paymentMethodId)},t.paymentMethodId)),e.addCard?/* @__PURE__ */A(Btn,{ghost:true,label:r.addCard,busy:e.addCard.busy,busyLabel:t.saving,onPress:e.addCard.run}):null,
455
455
  /* @__PURE__ */A(ErrorLine,{line:e.error})]})}function NameStep({step:e}){let[t,r]=l(""),[n,i]=l("");/* @__PURE__ */
456
- return z(ErrorLine,{line:e.line,children:[e.form?/* @__PURE__ */z(g,{style:{gap:12},children:[
456
+ return W(ErrorLine,{line:e.line,children:[e.form?/* @__PURE__ */W(f,{style:{gap:12},children:[
457
457
  /* @__PURE__ */A(Field2,{label:e.form.firstLabel,value:t,onChange:r,autoComplete:"given-name"}),
458
458
  /* @__PURE__ */A(Field2,{label:e.form.lastLabel,value:n,onChange:i,autoComplete:"family-name"}),e.form.error?/* @__PURE__ */A(Text3,{children:e.form.error}):null,
459
- /* @__PURE__ */A(Btn,{label:e.form.saveLabel,busy:e.form.busy,disabled:!t.trim()||!n.trim(),onPress:()=>e.form.onSave({firstName:t,lastName:n}),testID:"shop-save-name"})]}):null,e.handoff?/* @__PURE__ */A(Btn,{ghost:true,size:"sm",label:e.handoff.label,onPress:e.handoff.onPress,testID:"shop-add-name"}):null]})}function OrderScreen({orderId:e,go:t}){let{copy:r,v3:n,petName:i}=Oe(),o=pa(),l=Cr(),a=ha(),{order:s,o:d,ref:c,line:u,asking:p,setAsking:h,pay:f,cancel:m,busy:b,onPay:y,onCancel:k,sum:w,refundRow:v,paidCard:x,buyAgain:S}=Rl(e,t);if(s.phase==="loading")/* @__PURE__ */
460
- return z(Page,{testID:"shop-order",children:[
459
+ /* @__PURE__ */A(Btn,{label:e.form.saveLabel,busy:e.form.busy,disabled:!t.trim()||!n.trim(),onPress:()=>e.form.onSave({firstName:t,lastName:n}),testID:"shop-save-name"})]}):null,e.handoff?/* @__PURE__ */A(Btn,{ghost:true,size:"sm",label:e.handoff.label,onPress:e.handoff.onPress,testID:"shop-add-name"}):null]})}function OrderScreen({orderId:e,go:t}){let{copy:r,v3:n,petName:i}=De(),o=Ia(),l=Lr(),a=Ca(),{order:s,o:d,ref:c,line:u,asking:p,setAsking:h,pay:g,cancel:m,busy:b,onPay:y,onCancel:k,sum:w,refundRow:v,paidCard:x,buyAgain:S}=Ml(e,t);if(s.phase==="loading")/* @__PURE__ */
460
+ return W(Page,{testID:"shop-order",children:[
461
461
  /* @__PURE__ */A(Ghosts,{}),
462
462
  /* @__PURE__ */A(Ghosts,{rows:2})]});if(!d)/* @__PURE__ */
463
- return A(Page,{testID:"shop-order",onRefresh:s.reread,children:/* @__PURE__ */A(ErrorLine,{line:r.loadFailed(r.thingOrder),children:/* @__PURE__ */A(Btn,{ghost:true,size:"sm",label:r.tryAgain,onPress:s.refresh})})});let I=ar(d,n),C=er(d),L=C?.carrier??null,W=v?[...w,v]:w;/* @__PURE__ */
464
- return z(Page,{testID:"shop-order",onRefresh:s.reread,children:[c?/* @__PURE__ */A(Text3,{style:a.orderNo,children:n.orderTitle(c)}):null,
465
- /* @__PURE__ */A(Title,{sub:or(d,r,n),children:ir(d,r,n)}),
466
- /* @__PURE__ */A(ErrorLine,{line:u}),d.canPay?/* @__PURE__ */A(Btn,{label:r.payOrder,busy:f.busy,busyLabel:r.saving,disabled:b,onPress:y,testID:"shop-order-pay"}):null,I?/* @__PURE__ */A(Card3,{children:/* @__PURE__ */A(Track,{steps:I,label:n.tracking})}):null,C&&(L||C.trackingNumber)?/* @__PURE__ */z(Card3,{children:[
467
- /* @__PURE__ */z(g,{style:a.carrier,children:[
463
+ return A(Page,{testID:"shop-order",onRefresh:s.reread,children:/* @__PURE__ */A(ErrorLine,{line:r.loadFailed(r.thingOrder),children:/* @__PURE__ */A(Btn,{ghost:true,size:"sm",label:r.tryAgain,onPress:s.refresh})})});let I=sr(d,n),C=tr(d),L=C?.carrier??null,z=v?[...w,v]:w;/* @__PURE__ */
464
+ return W(Page,{testID:"shop-order",onRefresh:s.reread,children:[c?/* @__PURE__ */A(Text3,{style:a.orderNo,children:n.orderTitle(c)}):null,
465
+ /* @__PURE__ */A(Title,{sub:lr(d,r,n),children:or(d,r,n)}),
466
+ /* @__PURE__ */A(ErrorLine,{line:u}),d.canPay?/* @__PURE__ */A(Btn,{label:r.payOrder,busy:g.busy,busyLabel:r.saving,disabled:b,onPress:y,testID:"shop-order-pay"}):null,I?/* @__PURE__ */A(Card3,{children:/* @__PURE__ */A(Track,{steps:I,label:n.tracking})}):null,C&&(L||C.trackingNumber)?/* @__PURE__ */W(Card3,{children:[
467
+ /* @__PURE__ */W(f,{style:a.carrier,children:[
468
468
  /* @__PURE__ */A(IconTile,{name:"truck",size:40}),
469
- /* @__PURE__ */z(g,{style:a.grow,children:[
470
- /* @__PURE__ */A(Text3,{style:a.carrierName,children:L??n.tracking}),C.trackingNumber?/* @__PURE__ */A(Text3,{style:a.carrierNo,children:C.trackingNumber}):null]})]}),C.trackingUrl?/* @__PURE__ */A(g,{style:a.carrierGo,children:/* @__PURE__ */A(Btn,{ghost:true,size:"sm",label:L?n.trackOn(L):r.trackPackage,onPress:()=>l.openExternal(C.trackingUrl)})}):null]}):null,
469
+ /* @__PURE__ */W(f,{style:a.grow,children:[
470
+ /* @__PURE__ */A(Text3,{style:a.carrierName,children:L??n.tracking}),C.trackingNumber?/* @__PURE__ */A(Text3,{style:a.carrierNo,children:C.trackingNumber}):null]})]}),C.trackingUrl?/* @__PURE__ */A(f,{style:a.carrierGo,children:/* @__PURE__ */A(Btn,{ghost:true,size:"sm",label:L?n.trackOn(L):r.trackPackage,onPress:()=>l.openExternal(C.trackingUrl)})}):null]}):null,
471
471
  /* @__PURE__ */A(K,{children:n.inThisOrder}),
472
- /* @__PURE__ */A(Card3,{children:/* @__PURE__ */A(g,{style:a.items,children:d.lines.map(e=>{let t=i(e.petId);/* @__PURE__ */
473
- return z(g,{style:a.item,children:[
472
+ /* @__PURE__ */A(Card3,{children:/* @__PURE__ */A(f,{style:a.items,children:d.lines.map(e=>{let t=i(e.petId);/* @__PURE__ */
473
+ return W(f,{style:a.item,children:[
474
474
  /* @__PURE__ */A(Thumb2,{rx:e.requiresRx,imageUrl:e.imageUrl}),
475
- /* @__PURE__ */z(g,{style:a.grow,children:[
475
+ /* @__PURE__ */W(f,{style:a.grow,children:[
476
476
  /* @__PURE__ */A(Text3,{style:a.itemName,children:e.title}),
477
- /* @__PURE__ */z(g,{style:a.itemP,children:[
478
- /* @__PURE__ */A(Text3,{style:a.itemPrice,children:ke(e.unitPrice*e.quantity)}),
477
+ /* @__PURE__ */W(f,{style:a.itemP,children:[
478
+ /* @__PURE__ */A(Text3,{style:a.itemPrice,children:we(e.unitPrice*e.quantity)}),
479
479
  /* @__PURE__ */A(Text3,{style:a.itemSmall,children:n.orderItemLine(e.quantity)}),t?/* @__PURE__ */A(Text3,{style:a.itemSmall,children:r.forPet(t)}):null]})]})]},e.lineId)})})}),
480
- /* @__PURE__ */A(Sum2,{rows:W}),x?/* @__PURE__ */A(g,{style:[a.coRows,a.coRowsOnPage],children:/* @__PURE__ */A(CoRow,{icon:"card",k:n.paidWith,value:Le(x.brand,x.last4)})}):null,
481
- /* @__PURE__ */z(g,{style:a.acts,children:[S?/* @__PURE__ */A(Btn,{ghost:true,label:n.buyAgain,onPress:S}):null,o.onOrderHelp?/* @__PURE__ */A(LinkBtn,{label:n.orderHelp,onPress:()=>o.onOrderHelp?.(e)}):null,d.canCancel?/* @__PURE__ */A(LinkBtn,{label:r.cancelOrder,tone:"risk",disabled:b,onPress:()=>h(true)}):null]}),
482
- /* @__PURE__ */z(Sheet2,{open:p,kicker:n.orderTitle(c),closeLabel:r.close,onClose:()=>!m.busy&&h(false),children:[
480
+ /* @__PURE__ */A(Sum2,{rows:z}),x?/* @__PURE__ */A(f,{style:[a.coRows,a.coRowsOnPage],children:/* @__PURE__ */A(CoRow,{icon:"card",k:n.paidWith,value:ze(x.brand,x.last4)})}):null,
481
+ /* @__PURE__ */W(f,{style:a.acts,children:[S?/* @__PURE__ */A(Btn,{ghost:true,label:n.buyAgain,onPress:S}):null,o.onOrderHelp?/* @__PURE__ */A(LinkBtn,{label:n.orderHelp,onPress:()=>o.onOrderHelp?.(e)}):null,d.canCancel?/* @__PURE__ */A(LinkBtn,{label:r.cancelOrder,tone:"risk",disabled:b,onPress:()=>h(true)}):null]}),
482
+ /* @__PURE__ */W(Sheet2,{open:p,kicker:n.orderTitle(c),closeLabel:r.close,onClose:()=>!m.busy&&h(false),children:[
483
483
  /* @__PURE__ */A(Text3,{tier:"heading",style:a.sheetTitle,accessibilityRole:"header",children:n.cancelAsk}),n.cancelBody?/* @__PURE__ */A(Text3,{style:a.sub2,children:n.cancelBody}):null,
484
- /* @__PURE__ */z(g,{style:{gap:10,marginTop:8},children:[
484
+ /* @__PURE__ */W(f,{style:{gap:10,marginTop:8},children:[
485
485
  /* @__PURE__ */A(Btn,{label:r.cancelOrder,busy:m.busy,busyLabel:r.saving,onPress:k,testID:"shop-order-cancel-confirm"}),
486
- /* @__PURE__ */A(Btn,{ghost:true,label:r.keepIt,disabled:m.busy,onPress:()=>h(false)})]})]})]})}function OrdersScreen({tabs:e,go:t}){let{copy:r,v3:n}=Oe(),i=ha(),{first:o,orders:l,named:a,hasMore:s,loadMore:d,moreBusy:c,moreError:u}=Wl(),p=Ta(),h=/* @__PURE__ */A(CareTabs,{copy:r,current:"orders",tabs:e});if(o.phase==="loading"||p.phase==="loading")/* @__PURE__ */
487
- return z(Page,{head:h,testID:"shop-orders",children:[
486
+ /* @__PURE__ */A(Btn,{ghost:true,label:r.keepIt,disabled:m.busy,onPress:()=>h(false)})]})]})]})}function OrdersScreen({tabs:e,go:t}){let{copy:r,v3:n}=De(),i=Ca(),{first:o,orders:l,named:a,hasMore:s,loadMore:d,moreBusy:c,moreError:u}=Gl(),p=Ba(),h=/* @__PURE__ */A(CareTabs,{copy:r,current:"orders",tabs:e});if(o.phase==="loading"||p.phase==="loading")/* @__PURE__ */
487
+ return W(Page,{head:h,testID:"shop-orders",children:[
488
488
  /* @__PURE__ */A(Title,{children:n.ordersTitle}),
489
489
  /* @__PURE__ */A(Ghosts,{})]});if(o.phase==="failed")/* @__PURE__ */
490
- return z(Page,{head:h,testID:"shop-orders",onRefresh:o.reread,children:[
490
+ return W(Page,{head:h,testID:"shop-orders",onRefresh:o.reread,children:[
491
491
  /* @__PURE__ */A(Title,{children:n.ordersTitle}),
492
- /* @__PURE__ */A(ErrorLine,{line:r.loadFailed(r.thingOrders),children:/* @__PURE__ */A(Btn,{ghost:true,size:"sm",label:r.tryAgain,onPress:o.refresh})})]});let f=p.phase==="failed"||p.plans.length>0,m=/* @__PURE__ */A(Subscriptions,{subs:p,onOrders:()=>{}});return l.length===0&&f?/* @__PURE__ */z(Page,{head:h,testID:"shop-orders",onRefresh:o.reread,children:[
493
- /* @__PURE__ */A(Title,{children:n.ordersTitle}),m]}):l.length===0?/* @__PURE__ */A(Page,{head:h,testID:"shop-orders",onRefresh:o.reread,children:/* @__PURE__ */A(Empty,{icon:"box",title:n.ordersEmptyTitle,body:n.ordersEmptyBody,action:/* @__PURE__ */A(Btn,{label:r.tabShop,onPress:()=>t({name:"shop"})})})}):/* @__PURE__ */z(Page,{head:h,testID:"shop-orders",onRefresh:o.reread,children:[
494
- /* @__PURE__ */A(Title,{children:n.ordersTitle}),f?/* @__PURE__ */z(W,{children:[m,
492
+ /* @__PURE__ */A(ErrorLine,{line:r.loadFailed(r.thingOrders),children:/* @__PURE__ */A(Btn,{ghost:true,size:"sm",label:r.tryAgain,onPress:o.refresh})})]});let g=p.phase==="failed"||p.plans.length>0,m=/* @__PURE__ */A(Subscriptions,{subs:p,onOrders:()=>{}});return l.length===0&&g?/* @__PURE__ */W(Page,{head:h,testID:"shop-orders",onRefresh:o.reread,children:[
493
+ /* @__PURE__ */A(Title,{children:n.ordersTitle}),m]}):l.length===0?/* @__PURE__ */A(Page,{head:h,testID:"shop-orders",onRefresh:o.reread,children:/* @__PURE__ */A(Empty,{icon:"box",title:n.ordersEmptyTitle,body:n.ordersEmptyBody,action:/* @__PURE__ */A(Btn,{label:r.tabShop,onPress:()=>t({name:"shop"})})})}):/* @__PURE__ */W(Page,{head:h,testID:"shop-orders",onRefresh:o.reread,children:[
494
+ /* @__PURE__ */A(Title,{children:n.ordersTitle}),g?/* @__PURE__ */W(R,{children:[m,
495
495
  /* @__PURE__ */A(K,{children:n.ordersTitle})]}):null,
496
- /* @__PURE__ */A(g,{style:i.orders,children:l.map(e=>/* @__PURE__ */A(OrderCard,{order:e,items:a(e),onPress:()=>t({name:"order",orderId:e.orderId})},e.orderId))}),
497
- /* @__PURE__ */A(ErrorLine,{line:u}),s?/* @__PURE__ */A(Btn,{ghost:true,label:n.moreOrders,busy:c,busyLabel:r.saving,onPress:d}):null]})}function OrderCard({order:e,items:t,onPress:r}){let{copy:n,v3:i}=Oe(),o=ha(),l=$t(e.status,n,i),a=t&&t.length>0?sr(t):null,s=dr(e,n,ke(e.total));/* @__PURE__ */
498
- return z(y,{style:o.order,onPress:r,accessibilityRole:"button",accessibilityLabel:[l.label,e.referenceNumber,a,s].filter(Boolean).join(", "),testID:"shop-order-card",children:[
499
- /* @__PURE__ */z(g,{style:o.grow,children:[
500
- /* @__PURE__ */z(g,{style:o.orderTop,children:[
496
+ /* @__PURE__ */A(f,{style:i.orders,children:l.map(e=>/* @__PURE__ */A(OrderCard,{order:e,items:a(e),onPress:()=>t({name:"order",orderId:e.orderId})},e.orderId))}),
497
+ /* @__PURE__ */A(ErrorLine,{line:u}),s?/* @__PURE__ */A(Btn,{ghost:true,label:n.moreOrders,busy:c,busyLabel:r.saving,onPress:d}):null]})}function OrderCard({order:e,items:t,onPress:r}){let{copy:n,v3:i}=De(),o=Ca(),l=er(e.status,n,i),a=t&&t.length>0?dr(t):null,s=cr(e,n,we(e.total));/* @__PURE__ */
498
+ return W(k,{style:o.order,onPress:r,accessibilityRole:"button",accessibilityLabel:[l.label,e.referenceNumber,a,s].filter(Boolean).join(", "),testID:"shop-order-card",children:[
499
+ /* @__PURE__ */W(f,{style:o.grow,children:[
500
+ /* @__PURE__ */W(f,{style:o.orderTop,children:[
501
501
  /* @__PURE__ */A(StatusPill,{label:l.label,tone:l.tone}),e.referenceNumber?/* @__PURE__ */A(Text3,{style:o.orderNo,children:e.referenceNumber}):null]}),a?/* @__PURE__ */A(Text3,{style:o.orderWhat,children:a}):null,
502
- /* @__PURE__ */A(Text3,{style:a?o.orderMeta:[o.orderMeta,{marginTop:8}],children:s}),t&&t.length>0?/* @__PURE__ */A(g,{style:o.pics,children:t.slice(0,6).map((e,t)=>/* @__PURE__ */A(Thumb2,{rx:e.rx,size:40,imageUrl:e.imageUrl},`${e.title}-${t}`))}):null]}),
503
- /* @__PURE__ */A(ShopV3Icon,{name:"chev",size:18,color:o.palette.ink3})]})}function PlacedScreen({orderIds:e,go:t}){let{client:r,copy:n,v3:i}=Oe(),o=ha(),l=(De(`placed:${e.join(",")}`,async()=>oe(await Promise.all(e.map(e=>r.order(e))))).value??[]).flatMap(e=>e.ok?[e.value]:[]),a=l.map(e=>e.arrivesBy??e.tracking?.deliveryBy??null).filter(e=>!!e).sort().pop(),s=Ie(a??null,{weekday:true}),d=l.flatMap(e=>e.lines),c=e.length===1;/* @__PURE__ */
504
- return A(Page,{testID:"shop-placed",foot:/* @__PURE__ */A(Btn,{label:c?i.viewOrder:n.allOrders,onPress:()=>t(c?{name:"order",orderId:e[0]}:{name:"orders"}),testID:"shop-placed-view"}),children:/* @__PURE__ */z(g,{style:o.done,children:[
505
- /* @__PURE__ */A(g,{style:o.doneCheck,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */A(ShopV3Icon,{name:"check",size:34,color:o.palette.onAccent})}),
506
- /* @__PURE__ */A(Text3,{tier:"heading",style:o.doneTitle,accessibilityRole:"header",children:i.placedTitle}),s?/* @__PURE__ */A(Text3,{style:o.doneWhen,children:i.arrivesBy(s)}):null,l.map(e=>e.summary.referenceNumber?/* @__PURE__ */A(Text3,{style:o.doneWho,children:i.orderTitle(e.summary.referenceNumber)},e.summary.orderId):null),d.length>0?/* @__PURE__ */z(g,{style:o.next,accessibilityLabel:i.placedSteps,children:[d.map(e=>/* @__PURE__ */z(g,{style:o.nextLi,accessible:true,accessibilityLabel:`${e.title}, ${i.itemQuantity(e.quantity)}`,children:[
502
+ /* @__PURE__ */A(Text3,{style:a?o.orderMeta:[o.orderMeta,{marginTop:8}],children:s}),t&&t.length>0?/* @__PURE__ */A(f,{style:o.pics,children:t.slice(0,6).map((e,t)=>/* @__PURE__ */A(Thumb2,{rx:e.rx,size:40,imageUrl:e.imageUrl},`${e.title}-${t}`))}):null]}),
503
+ /* @__PURE__ */A(ShopV3Icon,{name:"chev",size:18,color:o.palette.ink3})]})}function PlacedScreen({orderIds:e,go:t}){let{client:r,copy:n,v3:i}=De(),o=Ca(),l=(Ee(`placed:${e.join(",")}`,async()=>le(await Promise.all(e.map(e=>r.order(e))))).value??[]).flatMap(e=>e.ok?[e.value]:[]),a=l.map(e=>e.arrivesBy??e.tracking?.deliveryBy??null).filter(e=>!!e).sort().pop(),s=Ce(a??null,{weekday:true}),d=l.flatMap(e=>e.lines),c=e.length===1;/* @__PURE__ */
504
+ return A(Page,{testID:"shop-placed",foot:/* @__PURE__ */A(Btn,{label:c?i.viewOrder:n.allOrders,onPress:()=>t(c?{name:"order",orderId:e[0]}:{name:"orders"}),testID:"shop-placed-view"}),children:/* @__PURE__ */W(f,{style:o.done,children:[
505
+ /* @__PURE__ */A(f,{style:o.doneCheck,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */A(ShopV3Icon,{name:"check",size:34,color:o.palette.onAccent})}),
506
+ /* @__PURE__ */A(Text3,{tier:"heading",style:o.doneTitle,accessibilityRole:"header",children:i.placedTitle}),s?/* @__PURE__ */A(Text3,{style:o.doneWhen,children:i.arrivesBy(s)}):null,l.map(e=>e.summary.referenceNumber?/* @__PURE__ */A(Text3,{style:o.doneWho,children:i.orderTitle(e.summary.referenceNumber)},e.summary.orderId):null),d.length>0?/* @__PURE__ */W(f,{style:o.next,accessibilityLabel:i.placedSteps,children:[d.map(e=>/* @__PURE__ */W(f,{style:o.nextLi,accessible:true,accessibilityLabel:`${e.title}, ${i.itemQuantity(e.quantity)}`,children:[
507
507
  /* @__PURE__ */A(Thumb2,{rx:e.requiresRx,size:36,title:e.title,imageUrl:e.imageUrl}),
508
- /* @__PURE__ */z(g,{style:o.grow,children:[
508
+ /* @__PURE__ */W(f,{style:o.grow,children:[
509
509
  /* @__PURE__ */A(Text3,{tier:"compact",style:o.nextK,children:i.itemQuantity(e.quantity)}),
510
- /* @__PURE__ */A(Text3,{style:o.nextV,children:e.title})]})]},e.lineId)),s?/* @__PURE__ */z(g,{style:o.nextLi,accessible:true,accessibilityLabel:`${s}, ${i.placedArrives}`,children:[
510
+ /* @__PURE__ */A(Text3,{style:o.nextV,children:e.title})]})]},e.lineId)),s?/* @__PURE__ */W(f,{style:o.nextLi,accessible:true,accessibilityLabel:`${s}, ${i.placedArrives}`,children:[
511
511
  /* @__PURE__ */A(IconTile,{name:"calendar"}),
512
- /* @__PURE__ */z(g,{style:o.grow,children:[
512
+ /* @__PURE__ */W(f,{style:o.grow,children:[
513
513
  /* @__PURE__ */A(Text3,{tier:"compact",style:o.nextK,children:s}),
514
- /* @__PURE__ */A(Text3,{style:o.nextV,children:i.placedArrives})]})]}):null]}):null]})})}function LivePackage(){let{copy:e}=Oe(),t=Cr(),{tabs:r,view:n}=Wt(t.go);/* @__PURE__ */
515
- return A(PackageScreen,{copy:e,tabs:r,view:n})}function LiveShop({initialQuery:e}){let{copy:t}=Oe(),{tabs:r,view:n}=Pt(e);/* @__PURE__ */
516
- return z(g,{style:{flex:1},children:[
514
+ /* @__PURE__ */A(Text3,{style:o.nextV,children:i.placedArrives})]})]}):null]}):null]})})}function LivePackage(){let{copy:e}=De(),t=Lr(),{tabs:r,view:n}=Rt(t.go);/* @__PURE__ */
515
+ return A(PackageScreen,{copy:e,tabs:r,view:n})}function LiveShop({initialQuery:e}){let{copy:t}=De(),{tabs:r,view:n}=Bt(e);/* @__PURE__ */
516
+ return W(f,{style:{flex:1},children:[
517
517
  /* @__PURE__ */A(ShopScreen,{copy:t,tabs:r,view:n}),
518
- /* @__PURE__ */A(CartBar2,{})]})}function CartBar2(){let{client:e,v3:t}=Oe(),r=pa(),n=Cr(),i=ha(),o=ne(e);return o.length===0?null:/* @__PURE__ */A(g,{style:[i.foot,{paddingBottom:Math.max(12,r.bottomInset)}],accessibilityLabel:t.cartLabel(re(o)),children:/* @__PURE__ */A(Btn,{label:t.viewCart,onPress:()=>n.go({name:"cart"}),testID:"shop-view-cart"})})}function LiveProduct({offerId:e,petId:t,avatar:r}){let{copy:n,v3:i,client:o}=Oe(),l=Cr(),s=Ve(e).value,d=a(e=>{if(e.name!=="buy")return l.go(e);let t=t=>{Y(o,{offerId:t.offerId,title:t.title,unitPrice:t.price,requiresRx:t.requiresRx,quantity:e.quantity,...t.imageUrl?{imageUrl:t.imageUrl}:{},...e.petId?{petId:e.petId}:{},...e.rxId?{rxId:e.rxId}:{}}),_(o,i.addedToCart(t.title)),l.go({name:"cart"})};if(s&&s.offerId===e.offerId)return t(s);o.offer(e.offerId).then(r=>r.ok?t(r.value):l.go(e))},[o,s,l,i]),c=Dt(e,t,d);return c.kind==="rx"?/* @__PURE__ */A(RxProductScreen,{copy:n,view:c.view,...r?{avatar:r}:{}}):/* @__PURE__ */A(ProductScreen,{copy:n,view:c.view})}function LivePlan({reminders:e}){let{copy:t}=Oe(),{tabs:r,view:n}=Et();/* @__PURE__ */
519
- return A(PlanScreen,{copy:t,tabs:r,view:n,reminders:e})}function LiveOrders({tabs:e}){let t=Cr(),r=no(),n=za();if(r&&n.on&&n.screen){let{Screen:t}=n.screen;/* @__PURE__ */
520
- return A(t,{seam:Wa,tabs:e,copy:n.copy,onHelp:n.onHelp,onCartBar:n.onCartBar})}return r?/* @__PURE__ */A(AppOrdersScreen,{tabs:e}):/* @__PURE__ */A(OrdersScreen,{tabs:e,go:t.go})}function LiveTracking({orderId:e}){let t=Cr();return no()?/* @__PURE__ */A(AppOrderScreen,{orderId:e,go:t.go}):/* @__PURE__ */A(OrderScreen,{orderId:e,go:t.go})}function LiveCart(){let e=Cr();/* @__PURE__ */
521
- return A(CartScreen,{go:e.go})}function LivePlaced({orderIds:e}){let t=Cr();/* @__PURE__ */
522
- return A(PlacedScreen,{orderIds:e,go:t.go})}function LiveAddress({then:e}){let{copy:t}=Oe(),r=Cr();/* @__PURE__ */
523
- return A(AddressFormScreen,{copy:t,...Ut(e,r.go)})}function LiveCard({then:e,handoff:t}){let{copy:r}=Oe(),n=Cr();/* @__PURE__ */
524
- return A(CardSetupScreen,{copy:r,...Gt(e,n.go,t)})}function LiveBuy({route:e}){let{copy:t}=Oe(),r=Cr();/* @__PURE__ */
525
- return A(BuyConfirmScreen,{copy:t,...Zt(e,r.go)})}function LiveConsent({route:e}){let{copy:t}=Oe(),r=Cr();/* @__PURE__ */
526
- return A(PlanConsentScreen,{copy:t,...Yt(e,r.go)})}function qa(e){return e&&e.kind==="everfur-shop-orders-v2"&&typeof e.Screen=="function"?e:null}function shopBackRoute(e){switch(e.name){case"package":case"shop":case"plan":case"orders":return null;case"product":return{name:"shop"};case"order":return{name:"orders"};case"cart":case"placed":return{name:"shop"};case"address":case"card":return e.then??{name:"plan"};case"buy":case"consent":return{name:"product",offerId:e.offerId,...e.petId?{petId:e.petId}:{}}}}function EverfurShop(e){let{client:t,pets:o,packageSource:l,copy:a,v3Copy:s,fonts:d,renderIcon:c,payments:u,bottomInset:p,screenBottomInset:h,onOrderHelp:g,saveProfileName:f,onProfileNameRequired:m,cartStorageKey:b,look:y,ordersDesign:k,ordersV2Screen:w,ordersCopy:v,onOrdersHelp:x,onOrdersCartBar:S,...I}=e,C=r(P)?.runtime.registry.services.kv;n(()=>{if(b)return j(t,C,`everfur.shop.cart.${b}`)},[t,C,b]);let L=s?.addToCart??He.addToCart,z=i(()=>({buyNow:L,...a??{}}),[L,a]),W=i(()=>({bottomInset:p??0,screenBottomInset:h??p??0,cardHandoff:I.cardHandoff??null,onOrderHelp:g??null}),[p,h,I.cardHandoff,g]),R=i(()=>({on:(y??$i)==="everfur-app"&&k==="v2",screen:qa(w),copy:shopOrdersV2Copy(v),onHelp:x??null,onCartBar:S??null}),[y,k,w,v,x,S]);/* @__PURE__ */
527
- return A(ShopProvider,{client:t,payments:u??null,copy:z,...s?{v3Copy:s}:{},...o?{pets:o}:{},...l?{packageSource:l}:{},...f?{saveProfileName:f}:{},...m?{onProfileNameRequired:m}:{},children:/* @__PURE__ */A(ShopKitProvider,{...d?{fonts:d}:{},...c?{renderIcon:c}:{},children:/* @__PURE__ */A(to,{value:y??$i,children:/* @__PURE__ */A(ua,{value:W,children:/* @__PURE__ */A(La,{value:R,children:/* @__PURE__ */A(ShopGate,{...I})})})})})})}function ShopGate({route:e,onRouteChange:t,openExternal:r,bookVisitHref:o,cardHandoff:l,avatar:a,reminders:s,onUnavailable:d}){let{copy:c}=Oe(),u=Ee(),p=i(()=>({go:t,openExternal:r}),[t,r]),h=u.phase==="unavailable"||u.error?.kind==="signedOut";return n(()=>{h&&d?.()},[h,d]),u.phase==="loading"||h?null:u.phase==="failed"||!u.value?/* @__PURE__ */A(ShopNativeNavProvider,{value:p,children:/* @__PURE__ */A(Frame,{children:/* @__PURE__ */A(Stack,{children:/* @__PURE__ */A(LoadFailed,{copy:c,thing:c.thingShop,retry:u.refresh})})})}):/* @__PURE__ */A(ShopNativeNavProvider,{value:p,children:/* @__PURE__ */A(ShopPages,{route:e,config:u.value,bookVisitHref:o??null,cardHandoff:l??null,avatar:a,reminders:s})})}function ShopPages({route:e,config:t,bookVisitHref:r,cardHandoff:n,avatar:o,reminders:l}){let a=Ze(),s=a.phase==="loading"||a.phase==="failed"||a.phase==="ready"&&a.value!==null,d=i(()=>s?["package","shop","orders","plan"]:["shop","orders","plan"],[s]),c=e.name==="package"&&!s?{name:"shop"}:e,u=i(()=>({config:t,tabs:d,pkg:a,bookVisitHref:r}),[t,d,a,r]);/* @__PURE__ */
528
- return A(yt,{value:u,children:Ua(c,d,n,o,l)})}function Ua(e,t,r,n,i){switch(e.name){case"package":/* @__PURE__ */
518
+ /* @__PURE__ */A(CartBar2,{})]})}function CartBar2(){let{client:e,v3:t}=De(),r=Ia(),n=Lr(),i=Ca(),o=ie(e);return o.length===0?null:/* @__PURE__ */A(f,{style:[i.foot,{paddingBottom:Math.max(12,r.bottomInset)}],accessibilityLabel:t.cartLabel(ne(o)),children:/* @__PURE__ */A(Btn,{label:t.viewCart,onPress:()=>n.go({name:"cart"}),testID:"shop-view-cart"})})}function LiveProduct({offerId:e,petId:t,avatar:r}){let{copy:n,v3:i,client:o}=De(),l=Lr(),s=qe(e).value,d=a(e=>{if(e.name!=="buy")return l.go(e);let t=t=>{J(o,{offerId:t.offerId,title:t.title,unitPrice:t.price,requiresRx:t.requiresRx,quantity:e.quantity,...t.imageUrl?{imageUrl:t.imageUrl}:{},...e.petId?{petId:e.petId}:{},...e.rxId?{rxId:e.rxId}:{}}),$(o,i.addedToCart(t.title)),l.go({name:"cart"})};if(s&&s.offerId===e.offerId)return t(s);o.offer(e.offerId).then(r=>r.ok?t(r.value):l.go(e))},[o,s,l,i]),c=Et(e,t,d);return c.kind==="rx"?/* @__PURE__ */A(RxProductScreen,{copy:n,view:c.view,...r?{avatar:r}:{}}):/* @__PURE__ */A(ProductScreen,{copy:n,view:c.view})}function LivePlan({reminders:e}){let{copy:t}=De(),{tabs:r,view:n}=Nt();/* @__PURE__ */
519
+ return A(PlanScreen,{copy:t,tabs:r,view:n,reminders:e})}function LiveOrders({tabs:e}){let t=Lr(),r=io(),n=qa();if(r&&n.on&&n.screen){let{Screen:t}=n.screen;/* @__PURE__ */
520
+ return A(t,{seam:Ga,tabs:e,copy:n.copy,onHelp:n.onHelp,onCartBar:n.onCartBar})}return r?/* @__PURE__ */A(AppOrdersScreen,{tabs:e}):/* @__PURE__ */A(OrdersScreen,{tabs:e,go:t.go})}function LiveTracking({orderId:e}){let t=Lr();return io()?/* @__PURE__ */A(AppOrderScreen,{orderId:e,go:t.go}):/* @__PURE__ */A(OrderScreen,{orderId:e,go:t.go})}function LiveCart(){let e=Lr();/* @__PURE__ */
521
+ return A(CartScreen,{go:e.go})}function LivePlaced({orderIds:e}){let t=Lr();/* @__PURE__ */
522
+ return A(PlacedScreen,{orderIds:e,go:t.go})}function LiveAddress({then:e}){let{copy:t}=De(),r=Lr();/* @__PURE__ */
523
+ return A(AddressFormScreen,{copy:t,...Gt(e,r.go)})}function LiveCard({then:e,handoff:t}){let{copy:r}=De(),n=Lr();/* @__PURE__ */
524
+ return A(CardSetupScreen,{copy:r,...Mt(e,n.go,t)})}function LiveBuy({route:e}){let{copy:t}=De(),r=Lr();/* @__PURE__ */
525
+ return A(BuyConfirmScreen,{copy:t,...Yt(e,r.go)})}function LiveConsent({route:e}){let{copy:t}=De(),r=Lr();/* @__PURE__ */
526
+ return A(PlanConsentScreen,{copy:t,...Jt(e,r.go)})}function es(e){return e&&e.kind==="everfur-shop-orders-v2"&&typeof e.Screen=="function"?e:null}function shopBackRoute(e){switch(e.name){case"package":case"shop":case"plan":case"orders":return null;case"product":return{name:"shop"};case"order":return{name:"orders"};case"cart":case"placed":return{name:"shop"};case"address":case"card":return e.then??{name:"plan"};case"buy":case"consent":return{name:"product",offerId:e.offerId,...e.petId?{petId:e.petId}:{}}}}function EverfurShop(e){let{client:t,pets:o,packageSource:l,copy:a,v3Copy:s,fonts:d,renderIcon:c,payments:u,bottomInset:p,screenBottomInset:h,onOrderHelp:g,saveProfileName:f,onProfileNameRequired:m,cartStorageKey:b,look:y,ordersDesign:k,ordersV2Screen:w,ordersCopy:v,onOrdersHelp:x,onOrdersCartBar:S,...I}=e,C=r(B)?.runtime.registry.services.kv;n(()=>{if(b)return Z(t,C,`everfur.shop.cart.${b}`)},[t,C,b]);let L=s?.addToCart??Pe.addToCart,z=i(()=>({buyNow:L,...a??{}}),[L,a]),W=i(()=>({bottomInset:p??0,screenBottomInset:h??p??0,cardHandoff:I.cardHandoff??null,onOrderHelp:g??null}),[p,h,I.cardHandoff,g]),R=i(()=>({on:(y??eo)==="everfur-app"&&k==="v2",screen:es(w),copy:shopOrdersV2Copy(v),onHelp:x??null,onCartBar:S??null}),[y,k,w,v,x,S]);/* @__PURE__ */
527
+ return A(ShopProvider,{client:t,payments:u??null,copy:z,...s?{v3Copy:s}:{},...o?{pets:o}:{},...l?{packageSource:l}:{},...f?{saveProfileName:f}:{},...m?{onProfileNameRequired:m}:{},children:/* @__PURE__ */A(ShopKitProvider,{...d?{fonts:d}:{},...c?{renderIcon:c}:{},children:/* @__PURE__ */A(ro,{value:y??eo,children:/* @__PURE__ */A(Sa,{value:W,children:/* @__PURE__ */A(Va,{value:R,children:/* @__PURE__ */A(ShopGate,{...I})})})})})})}function ShopGate({route:e,onRouteChange:t,openExternal:r,bookVisitHref:o,cardHandoff:l,avatar:a,reminders:s,onUnavailable:d}){let{copy:c}=De(),u=Ne(),p=i(()=>({go:t,openExternal:r}),[t,r]),h=u.phase==="unavailable"||u.error?.kind==="signedOut";return n(()=>{h&&d?.()},[h,d]),u.phase==="loading"||h?null:u.phase==="failed"||!u.value?/* @__PURE__ */A(ShopNativeNavProvider,{value:p,children:/* @__PURE__ */A(Frame,{children:/* @__PURE__ */A(Stack,{children:/* @__PURE__ */A(LoadFailed,{copy:c,thing:c.thingShop,retry:u.refresh})})})}):/* @__PURE__ */A(ShopNativeNavProvider,{value:p,children:/* @__PURE__ */A(ShopPages,{route:e,config:u.value,bookVisitHref:o??null,cardHandoff:l??null,avatar:a,reminders:s})})}function ShopPages({route:e,config:t,bookVisitHref:r,cardHandoff:n,avatar:o,reminders:l}){let a=Ye(),s=a.phase==="loading"||a.phase==="failed"||a.phase==="ready"&&a.value!==null,d=i(()=>s?["package","shop","orders","plan"]:["shop","orders","plan"],[s]),c=e.name==="package"&&!s?{name:"shop"}:e,u=i(()=>({config:t,tabs:d,pkg:a,bookVisitHref:r}),[t,d,a,r]);/* @__PURE__ */
528
+ return A(kt,{value:u,children:ts(c,d,n,o,l)})}function ts(e,t,r,n,i){switch(e.name){case"package":/* @__PURE__ */
529
529
  return A(LivePackage,{});case"shop":/* @__PURE__ */
530
530
  return A(LiveShop,{...e.query?{initialQuery:e.query}:{}});case"product":/* @__PURE__ */
531
531
  return A(LiveProduct,{offerId:e.offerId,...e.petId?{petId:e.petId}:{},...n?{avatar:n}:{}},e.offerId);case"plan":/* @__PURE__ */
@@ -537,4 +537,4 @@ return A(LiveCard,{handoff:r,...e.then?{then:e.then}:{}});case"buy":/* @__PURE__
537
537
  return A(LiveBuy,{route:e});case"consent":/* @__PURE__ */
538
538
  return A(LiveConsent,{route:e});case"cart":/* @__PURE__ */
539
539
  return A(LiveCart,{});case"placed":/* @__PURE__ */
540
- return A(LivePlaced,{orderIds:e.orderIds},e.orderIds.join(","))}}function Ga(e,t){let r=globalThis.URL;if(typeof r=="function"){let n;try{n=t===void 0?new r(e):new r(e,t)}catch{return null}try{if(n.protocol)return n}catch{}}return Za(e)}var Ma=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,Ka=/[\s\u0000-\u001f\u007f\\]/,ja={"http:":"80","https:":"443"};function Za(e,t){let r=e.trim();let n=Ka.test(r)?null:Ma.exec(r);if(n===null)return null;let[,i="",o="",l="",a="",s="",d="",c="",u=""]=n,p=`${i.toLowerCase()}:`,h=Number(s);if(h>65535)return null;let g=s===""||String(h)===ja[p]?"":String(h),f=ja[p]!==void 0,m=a.toLowerCase()+(g&&`:${g}`),b=d||(f?"/":""),y=o||l?`${o}${l&&`:${l}`}@`:"";return{href:`${p}//${y}${m}${b}${c}${u}`,protocol:p,username:o,password:l,hostname:a.toLowerCase(),port:g,origin:f?`${p}//${m}`:"null",pathname:b,search:c==="?"?"":c,hash:u==="#"?"":u}}var Ya=/(client_secret|_secret_|[?&#](sk|rk)_(live|test)_)/i,Ja={ok:false,message:null},Xa={ok:false,message:null,closed:true};function Qa(e){if(!e)return null;let t=Ga(e);return t===null||t.protocol!=="https:"||t.username||t.password||Ya.test(e)?null:t.href}function _a(e,t,r){if(e.type!=="success"||typeof e.url!="string"||!e.url.startsWith(t))return;let n=e.url.indexOf("?");if(n===-1)return null;let i=e.url.slice(n+1).split("#")[0]??"";for(let e of i.split("&")){let[t,n=""]=e.split("=");if(t===r)try{return decodeURIComponent(n)}catch{return null}}return null}async function $a(e,t,r,n){let i;try{i=await e(t,r)}catch{return Ja}return i.type!=="success"?Xa:n(i)}function createInAppBrowserCardSetup(e){let{openAuthSession:t,pageUrl:r,client:n,returnUrl:i}=e,o=async()=>{if(r)return r();if(!n)return null;let e=await n.startCardSetupSession({idempotencyKey:newIdempotencyKey(),returnUrl:i});return e.ok?e.value.url:null};return async()=>{let e;try{e=Qa(await o())}catch{e=null}return e?$a(t,e,i,e=>{let t=_a(e,i,"oms_card");return t===void 0?Ja:t==="canceled"?Xa:t===null||t==="done"?{ok:true}:Ja}):Ja}}function createInAppBrowserPayments(e){let{openAuthSession:t,client:r,returnUrl:n}=e;return{confirmCardSetup:()=>Promise.resolve(Ja),async handleNextAction(e,i){if(!i?.orderId)return Ja;let o;try{let e=await r.cardActionLink(i.orderId,{returnUrl:n});o=e.ok?Qa(e.value.url):null}catch{o=null}return o?$a(t,o,n,e=>{let t=_a(e,n,"oms_card_action");return t==="succeeded"?{ok:true}:t==="canceled"?Xa:Ja}):Ja}}}function createInAppBrowserCard(e){return{cardHandoff:createInAppBrowserCardSetup({openAuthSession:e.openAuthSession,client:e.client,returnUrl:e.returnUrl}),payments:createInAppBrowserPayments(e)}}var es=class _OmsWireError extends Error{constructor(e){super(`OMS answer could not be read: ${e}`);this.field=e;this.name="OmsWireError",Object.setPrototypeOf(this,_OmsWireError.prototype)}};function ts(e,t){if(e===null||typeof e!="object"||Array.isArray(e))throw new es(t);return e}function rs(e,t){if(e==null)return[];if(!Array.isArray(e))throw new es(t);return e}function ns(e,t,r=t){let n=e[t];if(typeof n!="string"||n.length===0)throw new es(r);return n}function is(e,t){let r=e[t];return typeof r=="string"&&r.length>0?r:null}function os(e,t,r=t){let n=e[t];if(typeof n!="number"||!Number.isFinite(n))throw new es(r);return Math.trunc(n)}function ls(e,t){let r=e[t];return typeof r=="number"&&Number.isFinite(r)?Math.trunc(r):null}function as(e,t){return e[t]===true}function ss(e){if(!e||typeof e!="object")return null;let t=e.pet_id;return typeof t=="string"&&t.length>0?t:null}var ds=["each","gram","milliliter"],cs=["ground","two_day","next_day"];function us(e){let t=e.pack_unit;return typeof t=="string"&&ds.includes(t)?t:null}function ps(e){return typeof e=="string"&&cs.includes(e)?e:null}function hs(e,t){let r=is(e,t);return r&&Ga(r)?.protocol==="https:"?r:null}function gs(e,t){let r=e[t];return typeof r=="number"&&Number.isFinite(r)?r:null}function fs(e,t){let r=is(e,t);return r&&/^\d{4}-\d{2}-\d{2}$/.test(r)?r:null}function ms(e,t){let r=e[t];return typeof r=="boolean"?r:null}var bs=["pharmacy","everfur_box"];function ys(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=ls(t,"units_left"),n=is(t,"unit_label"),i=gs(t,"daily_units"),o=fs(t,"runs_out_on");return r===null||r<0||!n||i===null||i<=0||!o?null:{unitsLeft:r,unitLabel:n,dailyUnits:i,runsOutOn:o,refillArrivesOn:fs(t,"refill_arrives_on")}}function ks(e){if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=is(t,"key");return r?[{key:r,doneAt:is(t,"done_at")}]:[]}function ws(e){let t=ts(e,"shop-config"),r=t.delivery&&typeof t.delivery=="object"?t.delivery:null,n=is(t,"stripe_publishable_key");return{recurringTermsVersion:is(t,"recurring_terms_version"),recurringTermsUrl:hs(t,"recurring_terms_url"),stripePublishableKey:n&&/^pk_(test|live)_[A-Za-z0-9]+$/.test(n)?n:null,delivery:r?{firstFill:ps(r.first_fill),refill:ps(r.refill)}:null,rxContactMissing:Array.isArray(t.rx_contact_missing)?t.rx_contact_missing.filter(e=>typeof e=="string"):null,freeShippingThresholdCents:ls(t,"free_shipping_threshold_cents"),firstRxDiscountCents:ls(t,"first_rx_discount_cents")}}function vs(e){let t=ts(e,"offer"),r=t.pack_quantity;return{offerId:ns(t,"offer_id"),sku:is(t,"sku")??"",title:ns(t,"title"),fulfillmentType:is(t,"fulfillment_type")??"physical",requiresRx:as(t,"requires_rx"),compounded:as(t,"compounded"),packQuantity:typeof r=="string"&&/^\d+(\.\d+)?$/.test(r)?r:null,packUnit:us(t),price:ls(t,"price"),imageUrl:hs(t,"image_url")}}function Ts(e){let t=ts(e,"offers");return{offers:rs(t.offers,"offers").map(vs),nextCursor:is(t,"next_cursor")}}function xs(e){let t=ts(e,"quote");return{lines:rs(t.lines,"lines").map(e=>{let t=ts(e,"line");return{offerId:ns(t,"offer_id"),quantity:os(t,"quantity"),petId:ss(t.pet),unitPrice:os(t,"unit_price"),discount:ls(t,"discount")??0,tax:ls(t,"tax")??0,whenFilledDiscountCents:ls(t,"when_filled_discount_cents"),isRx:ms(t,"is_rx"),chargedWhenFilled:ms(t,"charged_when_filled")}}),shipping:os(t,"shipping"),tax:ls(t,"tax")??0,total:os(t,"total"),expiresAt:ns(t,"expires_at"),whenFilledDiscountCents:ls(t,"when_filled_discount_cents"),dueTodayCents:ls(t,"due_today_cents"),dueWhenFilledCents:ls(t,"due_when_filled_cents"),shipsOn:fs(t,"ships_on"),arrivesOn:fs(t,"arrives_on")}}function Ss(e){let t=ts(e,"checkout");return{checkoutId:ns(t,"checkout_id"),state:is(t,"state")??"draft",orderIds:rs(t.order_ids,"order_ids").filter(e=>typeof e=="string"),createdAt:is(t,"created_at")??"",total:os(t,"total"),shipping:ls(t,"shipping")??0,tax:ls(t,"tax")??0}}function Is(e){let t=ts(e,"confirmation");return{checkoutId:ns(t,"checkout_id"),resale:rs(t.resale,"resale").map(e=>{let t=ts(e,"resale"),r=ns(t,"outcome");if(r!=="confirmed"&&r!=="action_required")throw new es("resale.outcome");let n=is(t,"payer_action");if(r==="action_required"&&!n)throw new es("resale.payer_action");return{outcome:r,orderId:ns(t,"order_id"),payerAction:r==="confirmed"?null:n}})}}function Cs(e){let t=ts(e,"order"),r=t.reference&&typeof t.reference=="object"?t.reference:null;return{orderId:ns(t,"order_id"),referenceNumber:r?is(r,"number"):null,status:ns(t,"status"),total:os(t,"total"),placedAt:is(t,"placed_at"),itemCount:ls(t,"item_count"),items:Array.isArray(t.items)?t.items.flatMap(Ls):null,fulfiller:bs.includes(is(t,"fulfiller")??"")?t.fulfiller:null,arrivesBy:fs(t,"arrives_by"),steps:Array.isArray(t.steps)?t.steps.flatMap(ks):null,currentStep:is(t,"current_step"),statusLineKey:is(t,"status_line_key"),prescriberName:is(t,"prescriber_name")}}function Ls(e){if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=is(t,"offer_id"),n=is(t,"title"),i=ls(t,"quantity");return r&&n&&i!==null?[{offerId:r,title:n,quantity:i,imageUrl:hs(t,"image_url")}]:[]}function zs(e){if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=is(t,"key");return r?[{key:r,done:t.done===true,at:is(t,"at")}]:[]}function As(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;try{return Fs(e)}catch{return null}}function Ws(e){let t=ts(e,"orders");return{orders:rs(t.orders,"orders").map(Cs),nextCursor:is(t,"next_cursor")}}function Rs(e){let t=ts(e,"line"),r=t.pack_quantity;return{lineId:ns(t,"line_id"),offerId:ns(t,"offer_id"),sku:is(t,"sku")??"",title:ns(t,"title"),requiresRx:as(t,"requires_rx"),compounded:as(t,"compounded"),packQuantity:typeof r=="string"&&/^\d+(\.\d+)?$/.test(r)?r:null,packUnit:us(t),quantity:os(t,"quantity"),unitPrice:os(t,"unit_price"),discount:ls(t,"discount")??0,tax:ls(t,"tax")??0,fulfillmentType:is(t,"fulfillment_type")??"physical",petId:ss(t.pet),imageUrl:hs(t,"image_url")}}function Fs(e){let t=ts(e,"tracking");return{carrier:is(t,"carrier"),trackingNumber:is(t,"tracking_number"),status:ns(t,"status"),occurredAt:is(t,"occurred_at"),trackingUrl:hs(t,"tracking_url"),deliveryBy:is(t,"delivery_by")}}function Hs(e){let t=ts(e,"shipment");return{shipmentId:ns(t,"shipment_id"),state:ns(t,"state"),lines:rs(t.lines,"shipment.lines").map(e=>{let t=ts(e,"shipment.line");return{lineId:ns(t,"line_id"),quantity:os(t,"quantity")}}),tracking:rs(t.tracking,"tracking").map(Fs)}}function Ps(e){let t=ts(e,"order");return{summary:Cs(t.summary),lines:rs(t.lines,"lines").map(Rs),shipping:ls(t,"shipping")??0,shippingTax:ls(t,"shipping_tax")??0,shipments:rs(t.shipments,"shipments").map(Hs),canCancel:as(t,"can_cancel"),canReturn:as(t,"can_return"),canPay:as(t,"can_pay"),paymentStatus:is(t,"payment_status"),refunds:rs(t.refunds,"refunds").map(e=>{let t=ts(e,"refund");return{refundId:ns(t,"refund_id"),amount:os(t,"amount"),state:ns(t,"state")}}),returnIds:rs(t.return_ids,"return_ids").filter(e=>typeof e=="string"),subtotal:ls(t,"subtotal"),discount:ls(t,"discount"),tax:ls(t,"tax"),arrivesBy:is(t,"arrives_by"),tracking:As(t.tracking),steps:Array.isArray(t.steps)?t.steps.flatMap(zs):null,paymentMethodId:is(t,"payment_method_id")}}function Bs(e){let t=ts(e,"cancel");return{outcome:ns(t,"outcome"),refunded:ls(t,"refunded"),reasonCode:is(t,"reason_code")}}function Os(e){let t=ts(e,"pay"),r=ns(t,"outcome");if(r!=="authorized"&&r!=="action_required")throw new es("pay.outcome");let n=is(t,"payer_action");if(r==="action_required"&&!n)throw new es("pay.payer_action");return{outcome:r,orderId:ns(t,"order_id"),payerAction:r==="authorized"?null:n}}function Ds(e){let t=ts(e,"return");return{returnId:ns(t,"return_id"),orderId:ns(t,"order_id"),lines:rs(t.lines,"return.lines").map(e=>{let t=ts(e,"return.line");return{lineId:ns(t,"line_id"),quantity:os(t,"quantity"),reasonCode:ns(t,"reason_code")}}),state:ns(t,"state"),rma:is(t,"rma"),labelUrl:hs(t,"label_url")}}function Es(e){let t=ts(e,"case");return{caseId:ns(t,"case_id"),orderId:ns(t,"order_id"),reasonCode:ns(t,"reason_code"),message:typeof t.message=="string"?t.message:"",openedAt:ns(t,"opened_at"),closedAt:is(t,"closed_at")}}function Ns(e){return rs(ts(e,"cases").cases,"cases").map(Es)}function Vs(e){return rs(ts(e,"prescriptions").prescriptions,"prescriptions").map(e=>{let t=ts(e,"prescription");return{rxId:ns(t,"rx_id"),petId:ns(t,"pet_id"),drug:is(t,"drug")??"",strength:is(t,"strength"),form:is(t,"form"),status:ns(t,"status"),offerId:is(t,"offer_id"),packCount:ls(t,"pack_count"),fillsUsed:ls(t,"fills_used"),fillsTotal:ls(t,"fills_total"),expiresOn:is(t,"expires_on"),nextFillOn:is(t,"next_fill_on"),supply:ys(t.supply),prescriberName:is(t,"prescriber_name"),refillsTotal:ls(t,"refills_total"),refillsLeft:ls(t,"refills_left")}})}function qs(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=is(t,"line1"),n=is(t,"city"),i=is(t,"postal_code"),o=is(t,"country");return!r||!n||!i||!o?null:{recipientName:is(t,"recipient_name"),line1:r,line2:is(t,"line2"),city:n,region:is(t,"region")??"",postalCode:i,country:o}}function Us(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=is(t,"brand"),n=is(t,"last4");return r&&n?{brand:r,last4:n}:null}function Gs(e){let t=ts(e,"receipt"),r=t.reference&&typeof t.reference=="object"?t.reference:null;return{orderId:ns(t,"order_id"),referenceNumber:r?is(r,"number"):null,placedAt:ns(t,"placed_at"),lines:rs(t.lines,"receipt.lines").map(e=>{let t=ts(e,"receipt.line");return{title:ns(t,"title","receipt.line.title"),quantity:os(t,"quantity","receipt.line.quantity"),unitPrice:os(t,"unit_price","receipt.line.unit_price"),discount:os(t,"discount","receipt.line.discount"),tax:os(t,"tax","receipt.line.tax"),total:os(t,"total","receipt.line.total")}}),subtotal:os(t,"subtotal"),shipping:os(t,"shipping"),tax:os(t,"tax"),discounts:os(t,"discounts"),total:os(t,"total"),paidAt:is(t,"paid_at"),card:Us(t.card),shipTo:qs(t.ship_to)}}function Ms(e){let t=ts(e,"address");return{ref:ns(t,"ref"),label:is(t,"label")??"",isDefault:as(t,"is_default"),isComplete:as(t,"is_complete")}}function Ks(e){return rs(ts(e,"addresses").addresses,"addresses").map(Ms)}function js(e){let t=ts(e,"address"),r=ts(t.address,"address.address"),n={recipientName:is(r,"recipient_name"),line1:ns(r,"line1","address.line1"),line2:is(r,"line2"),city:ns(r,"city","address.city"),region:is(r,"region")??"",postalCode:ns(r,"postal_code","address.postal_code"),country:ns(r,"country","address.country")};return{...Ms(t),address:n}}function Zs(e){return rs(ts(e,"payment_methods").payment_methods,"payment_methods").map(e=>{let t=ts(e,"payment_method");return{paymentMethodId:ns(t,"payment_method_id"),brand:is(t,"brand")??"",last4:is(t,"last4")??"",wallet:is(t,"wallet")}})}function Ys(e){let t=ts(e,"setup");return{setupId:ns(t,"setup_id"),payerAction:ns(t,"payer_action")}}function Js(e){let t=ts(e,"card_setup");return{url:ns(t,"url")}}function Xs(e){let t=ts(e,"card_action");return{url:ns(t,"url"),expiresAt:ns(t,"expires_at")}}function Qs(e){let t=ts(e,"plan");return{planId:ns(t,"plan_id"),lines:rs(t.lines,"plan.lines").map(e=>{let t=ts(e,"plan.line");return{offerId:ns(t,"offer_id"),quantity:os(t,"quantity"),petId:ss(t.pet)}}),cadenceDays:os(t,"cadence_days"),destination:is(t,"destination"),paymentMethodId:is(t,"payment_method_id"),discountBps:ls(t,"discount_bps")??0,nextRun:is(t,"next_run"),state:ns(t,"state"),stopReason:is(t,"stop_reason"),priceCentsPerCycle:ls(t,"price_cents_per_cycle"),chargedWhenFilled:ms(t,"charged_when_filled"),nextShipOn:fs(t,"next_ship_on"),skippedCycleOn:fs(t,"skipped_cycle_on"),prescriberName:is(t,"prescriber_name"),refillsLeft:ls(t,"refills_left"),refillsTotal:ls(t,"refills_total"),autoDiscountPct:ls(t,"auto_discount_pct"),changeOptions:$s(t.change_options),skipWarning:_s(t.skip_warning)}}function _s(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=is(t,"key");if(r!=="last_dose"&&r!=="bottle_gap")return null;let n=t.values!==null&&typeof t.values=="object"&&!Array.isArray(t.values)?t.values:{},i=is(n,"unit_label")?.trim();return{key:r,values:{unitLabel:i||null,doseOn:fs(n,"dose_on"),noneFor:fs(n,"none_for"),lastsTo:fs(n,"lasts_to"),weeks:ls(n,"weeks")}}}function $s(e){if(!Array.isArray(e))return null;let t=e.flatMap(e=>{if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=is(t,"offer_id"),n=is(t,"title"),i=ls(t,"quantity"),o=ls(t,"price_cents_per_cycle"),l=Array.isArray(t.cadence_days)?t.cadence_days.filter(e=>Number.isInteger(e)&&e>0):[];if(!r||!n||i===null||i<1||o===null||l.length===0)return[];let a=t.pack_quantity;return[{offerId:r,title:n,size:is(t,"size"),packQuantity:typeof a=="string"&&/^\d+(\.\d+)?$/.test(a)?a:null,packUnit:us(t),unitLabel:is(t,"unit_label"),quantity:i,priceCentsPerCycle:o,cadenceDays:l,current:t.current===true}]});return t.length>0?t:null}function ed(e){return rs(ts(e,"buy_again").items,"items").flatMap(e=>{if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=is(t,"offer_id"),n=is(t,"title");return!r||!n?[]:[{offerId:r,title:n,imageUrl:hs(t,"image_url"),priceCents:ls(t,"price_cents"),lastOrderedOn:fs(t,"last_ordered_on"),isRx:ms(t,"is_rx")??false,likelyOut:ms(t,"likely_out")??false}]})}function td(e){let t=ts(e,"plans");return{plans:rs(t.plans,"plans").map(Qs),nextCursor:is(t,"next_cursor")}}function rd(e){let t={offer_id:e.offerId,quantity:e.quantity};return e.petId&&(t.pet={namespace:"consumer",pet_id:e.petId}),e.rxId&&(t.rx_id=e.rxId),e.plan&&(t.plan=e.plan),t}function nd(e){let t=e.address;return{label:e.label,make_default:e.makeDefault===true,address:{recipient_name:t.recipientName,line1:t.line1,line2:t.line2,city:t.city,region:t.region,postal_code:t.postalCode,country:t.country}}}function id(e){let t=ts(e,"cycle"),r=t.review&&typeof t.review=="object"&&!Array.isArray(t.review)?t.review:null,n=e=>r&&r[e]!==void 0&&r[e]!==null?r[e]:t[e];return{planId:ns(t,"plan_id"),reviewId:is(t,"review_id")??(r?is(r,"review_id"):null),cycle:os(t,"cycle"),state:r?is(r,"state")??is(t,"state"):is(t,"state"),lines:rs(n("lines"),"cycle.lines").map(e=>{let t=ts(e,"cycle.line");return{offerId:ns(t,"offer_id"),quantity:os(t,"quantity"),petId:ss(t.pet)}}),shipsOn:r?is(r,"ships_on")??is(t,"ships_on"):is(t,"ships_on"),approveBy:r?is(r,"approve_by")??is(t,"approve_by"):is(t,"approve_by"),quoteLines:rs(t.quote&&typeof t.quote=="object"?t.quote.lines:null,"cycle.quote.lines").map(e=>{let t=ts(e,"cycle.quote.line");return{offerId:ns(t,"offer_id"),quantity:os(t,"quantity"),petId:ss(t.pet),unitPrice:os(t,"unit_price"),discount:ls(t,"discount")??0,tax:ls(t,"tax")??0}})}}function od(e){let t=ts(e,"cycle-draft");return{checkoutId:ns(t,"checkout_id"),shipping:ls(t,"shipping")??0,tax:ls(t,"tax")??0,total:os(t,"total"),expiresAt:is(t,"expires_at")}}var ld="/api/v1/oms",ad=3e4,sd=/^[A-Za-z0-9_]+$/,dd=/^[a-z][a-z0-9_]{0,63}$/;function cd(e){let t=Ga(e);if(t===null)throw new R("invalid-argument","createOmsClient: baseUrl is not a URL");let r=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol!=="https:"&&!(r&&t.protocol==="http:"))throw new R("invalid-argument","createOmsClient: baseUrl must be https");if(t.username||t.password||t.search||t.hash)throw new R("invalid-argument","createOmsClient: baseUrl must be a bare origin or path");return t.origin+t.pathname.replace(/\/+$/,"")}function ud(e){return encodeURIComponent(e)}function pd(e){return typeof e=="string"&&e.length>0&&e.length<=256}function createOmsClient(e){let t=cd(e.baseUrl)+(e.path??ld).replace(/\/+$/,""),r=e.fetch??(typeof globalThis.fetch=="function"?globalThis.fetch.bind(globalThis):void 0);if(!r)throw new R("missing-peer-dependency","createOmsClient: no fetch available; pass config.fetch");if(!e.auth||e.auth.kind!=="everfur_consumer"||typeof e.auth.getToken!="function")throw new R("invalid-argument",'createOmsClient: auth must be { kind: "everfur_consumer", getToken }');let n=e.auth.getToken,i=e.channel??"web",o=e.timeoutMs??ad;async function l(){try{let e=await n();return typeof e=="string"&&e.length>0?e:null}catch{return null}}async function a(e){let n=await l();if(!n)return le({kind:"signedOut"});let i=t+e.path;if(e.query){let t=new URLSearchParams;for(let[r,n]of Object.entries(e.query))n!==void 0&&t.set(r,String(n));let r=t.toString();r&&(i+=`?${r}`)}let a={accept:"application/json",authorization:`Bearer ${n}`},s={method:e.method,headers:a};e.body!==void 0&&(a["content-type"]="application/json",s.body=JSON.stringify(e.body));let d=typeof AbortController=="function"?new AbortController:null;d&&(s.signal=d.signal);let c=false,u=setTimeout(()=>{c=true,d?.abort()},o),p;try{p=await r(i,s)}catch{return clearTimeout(u),le({kind:c?"timeout":"network"})}try{let t=p.headers.get("x-request-id")??void 0,r=t?{requestId:t}:{};if(p.status<200||p.status>=300){let e=p.status===402||p.status===409||p.status===422?await p.json().catch(()=>null):null;return le(ue(p.status,e,{...r,retryAfter:p.headers.get("retry-after")}))}if(e.read===null||p.status===204)return oe(void 0);let n;try{n=await p.json()}catch{return le({kind:"badResponse",...r})}try{return oe(e.read(n))}catch{return le({kind:"badResponse",...r})}}catch{return le({kind:c?"timeout":"network"})}finally{clearTimeout(u)}}let s=()=>Promise.resolve(le({kind:"invalidRequest"}));function d(e,t){return pd(e)?t(ud(e)):s()}let c=e=>e.map(rd);return{shopConfig:()=>a({method:"GET",path:"/shop-config",read:ws}),offers:(e={})=>a({method:"GET",path:"/catalog/offers",query:{text:e.text,requires_rx:e.requiresRx,cursor:e.cursor,limit:e.limit},read:Ts}),offer:e=>d(e,e=>a({method:"GET",path:`/catalog/offers/${e}`,read:vs})),prescriptions:()=>a({method:"GET",path:"/prescriptions",read:Vs}),addresses:()=>a({method:"GET",path:"/addresses",read:Ks}),address:e=>d(e,e=>a({method:"GET",path:`/addresses/${e}`,read:js})),addAddress:e=>a({method:"POST",path:"/addresses",body:nd(e),read:Ms}),updateAddress:(e,t)=>d(e,e=>a({method:"PUT",path:`/addresses/${e}`,body:nd(t),read:Ms})),removeAddress:e=>d(e,e=>a({method:"DELETE",path:`/addresses/${e}`,read:null})),makeDefaultAddress:e=>d(e,e=>a({method:"POST",path:`/addresses/${e}/default`,read:Ms})),paymentMethods:()=>a({method:"GET",path:"/payment-methods",read:Zs}),setupPaymentMethod:()=>a({method:"POST",path:"/payment-methods/setup",read:Ys}),startCardSetupSession:e=>a({method:"POST",path:"/payment-methods/setup-session",body:{idempotency_key:e.idempotencyKey,return_url:e.returnUrl},read:Js}),removePaymentMethod:e=>sd.test(e)?a({method:"DELETE",path:`/payment-methods/${e}`,read:null}):s(),quote:e=>a({method:"POST",path:"/cart/quote",body:{lines:c(e.lines),ship_to:e.shipTo,promo_code:e.promoCode??null},read:xs}),createCheckout:e=>a({method:"POST",path:"/checkouts",body:{idempotency_key:e.idempotencyKey,channel:i,lines:c(e.lines),ship_to:e.shipTo,receipt_email:e.receiptEmail??null,promo_code:e.promoCode??null},read:Ss}),confirmCheckout:(e,t)=>sd.test(t.paymentMethodId)&&Number.isInteger(t.expectedTotal)?d(e,e=>a({method:"POST",path:`/checkouts/${e}/confirm`,body:{idempotency_key:t.idempotencyKey,expected_total:t.expectedTotal,payment_method_id:t.paymentMethodId},read:Is})):s(),orders:(e={})=>e.since!==void 0&&!/^\d{4}-\d{2}-\d{2}$/.test(e.since)?s():a({method:"GET",path:"/orders",query:{cursor:e.cursor,limit:e.limit,reference:e.reference,since:e.since},read:Ws}),order:e=>d(e,e=>a({method:"GET",path:`/orders/${e}`,read:Ps})),cancelOrder:(e,t)=>dd.test(t.reasonCode)?d(e,e=>a({method:"POST",path:`/orders/${e}/cancel`,body:{idempotency_key:t.idempotencyKey,reason_code:t.reasonCode},read:Bs})):s(),payOrder:(e,t)=>{if(t.paymentMethodId!==void 0&&!sd.test(t.paymentMethodId))return s();let r={idempotency_key:t.idempotencyKey};return t.paymentMethodId&&(r.payment_method_id=t.paymentMethodId),d(e,e=>a({method:"POST",path:`/orders/${e}/pay`,body:r,read:Os}))},cardActionLink:(e,t)=>d(e,e=>a({method:"POST",path:`/orders/${e}/card-action-link`,body:{return_url:t.returnUrl},read:Xs})),receipt:e=>d(e,e=>a({method:"GET",path:`/orders/${e}/receipt`,read:Gs})),requestReturn:(e,t)=>t.lines.every(e=>dd.test(e.reasonCode))?d(e,e=>a({method:"POST",path:`/orders/${e}/returns`,body:{idempotency_key:t.idempotencyKey,lines:t.lines.map(e=>({line_id:e.lineId,quantity:e.quantity,reason_code:e.reasonCode}))},read:Ds})):s(),getReturn:e=>d(e,e=>a({method:"GET",path:`/returns/${e}`,read:Ds})),cancelReturn:e=>d(e,e=>a({method:"POST",path:`/returns/${e}/cancel`,read:Ds})),openCase:(e,t)=>dd.test(t.reasonCode)&&t.message.length<=4e3?d(e,e=>a({method:"POST",path:`/orders/${e}/cases`,body:{idempotency_key:t.idempotencyKey,reason_code:t.reasonCode,message:t.message},read:Es})):s(),orderCases:e=>d(e,e=>a({method:"GET",path:`/orders/${e}/cases`,read:Ns})),plans:(e={})=>a({method:"GET",path:"/subscriptions",query:{cursor:e.cursor,limit:e.limit},read:td}),buyAgain:()=>a({method:"GET",path:"/buy-again",read:ed}),createPlan:e=>sd.test(e.paymentMethodId)?a({method:"POST",path:"/subscriptions",body:{idempotency_key:e.idempotencyKey,cadence_days:e.cadenceDays,destination:e.destination,payment_method_id:e.paymentMethodId,consent_terms_version:e.consentTermsVersion,lines:c(e.lines)},read:Qs}):s(),updatePlan:(e,t)=>{if(t.paymentMethodId!==void 0&&!sd.test(t.paymentMethodId))return s();let r={idempotency_key:t.idempotencyKey};if(t.lines&&(r.lines=c(t.lines)),t.cadenceDays!==void 0&&(r.cadence_days=t.cadenceDays),t.offerId!==void 0){if(!pd(t.offerId)||t.cadenceDays===void 0||t.lines)return s();r.offer_id=t.offerId}return t.destination!==void 0&&(r.destination=t.destination),t.paymentMethodId!==void 0&&(r.payment_method_id=t.paymentMethodId),d(e,e=>a({method:"PATCH",path:`/subscriptions/${e}`,body:r,read:Qs}))},planAction:(e,t)=>d(e,e=>a({method:"POST",path:`/subscriptions/${e}/actions`,body:{idempotency_key:t.idempotencyKey,operation:t.operation},read:Qs})),cancelPlan:e=>d(e,e=>a({method:"POST",path:`/subscriptions/${e}/cancel`,read:Qs})),cycleReview:e=>d(e,e=>a({method:"GET",path:`/subscriptions/${e}/cycle`,read:id})),editCycle:(e,t,r)=>Number.isInteger(t)&&t>0?d(e,e=>a({method:"PUT",path:`/subscriptions/${e}/cycles/${t}/lines`,body:{idempotency_key:r.idempotencyKey,lines:c(r.lines)},read:id})):s(),draftCycle:(e,t)=>Number.isInteger(t)&&t>0?d(e,e=>a({method:"POST",path:`/subscriptions/${e}/cycles/${t}/draft`,read:od})):s(),approveCycle:(e,t,r)=>Number.isInteger(t)&&t>0&&Number.isInteger(r.expectedTotal)?d(e,e=>a({method:"POST",path:`/subscriptions/${e}/cycles/${t}/approve`,body:{idempotency_key:r.idempotencyKey,checkout_id:r.checkoutId,expected_total:r.expectedTotal},read:Is})):s(),skipCycle:(e,t,r)=>Number.isInteger(t)&&t>0?d(e,e=>a({method:"POST",path:`/subscriptions/${e}/cycles/${t}/skip`,body:{idempotency_key:r.idempotencyKey},read:Qs})):s()}}export{EverfurShop,We as SHOP_COPY,Re as SHOP_COPY_PLACEHOLDERS,ie as SHOP_ORDERS_V2_COPY,He as SHOP_V3_COPY,Pe as SHOP_V3_COPY_PLACEHOLDERS,ShopSwitchCard,be as UNAVAILABLE_PACKAGE_SOURCE,createInAppBrowserCard,createInAppBrowserCardSetup,createInAppBrowserPayments,createOmsClient,createOmsPackageSource,isOmsRefusal,isOmsRetryable,isOmsUnavailable,newIdempotencyKey,shopBackRoute,shopCopy,shopOrdersV2Copy,shopV3Copy};
540
+ return A(LivePlaced,{orderIds:e.orderIds},e.orderIds.join(","))}}function rs(e,t){let r=globalThis.URL;if(typeof r=="function"){let n;try{n=t===void 0?new r(e):new r(e,t)}catch{return null}try{if(n.protocol)return n}catch{}}return ls(e)}var ns=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,is=/[\s\u0000-\u001f\u007f\\]/,os={"http:":"80","https:":"443"};function ls(e,t){let r=e.trim();let n=is.test(r)?null:ns.exec(r);if(n===null)return null;let[,i="",o="",l="",a="",s="",d="",c="",u=""]=n,p=`${i.toLowerCase()}:`,h=Number(s);if(h>65535)return null;let g=s===""||String(h)===os[p]?"":String(h),f=os[p]!==void 0,m=a.toLowerCase()+(g&&`:${g}`),b=d||(f?"/":""),y=o||l?`${o}${l&&`:${l}`}@`:"";return{href:`${p}//${y}${m}${b}${c}${u}`,protocol:p,username:o,password:l,hostname:a.toLowerCase(),port:g,origin:f?`${p}//${m}`:"null",pathname:b,search:c==="?"?"":c,hash:u==="#"?"":u}}var as=/(client_secret|_secret_|[?&#](sk|rk)_(live|test)_)/i,ss={ok:false,message:null},ds={ok:false,message:null,closed:true};function cs(e){if(!e)return null;let t=rs(e);return t===null||t.protocol!=="https:"||t.username||t.password||as.test(e)?null:t.href}function us(e,t,r){if(e.type!=="success"||typeof e.url!="string"||!e.url.startsWith(t))return;let n=e.url.indexOf("?");if(n===-1)return null;let i=e.url.slice(n+1).split("#")[0]??"";for(let e of i.split("&")){let[t,n=""]=e.split("=");if(t===r)try{return decodeURIComponent(n)}catch{return null}}return null}async function ps(e,t,r,n){let i;try{i=await e(t,r)}catch{return ss}return i.type!=="success"?ds:n(i)}function createInAppBrowserCardSetup(e){let{openAuthSession:t,pageUrl:r,client:n,returnUrl:i}=e,o=async()=>{if(r)return r();if(!n)return null;let e=await n.startCardSetupSession({idempotencyKey:newIdempotencyKey(),returnUrl:i});return e.ok?e.value.url:null};return async()=>{let e;try{e=cs(await o())}catch{e=null}return e?ps(t,e,i,e=>{let t=us(e,i,"oms_card");return t===void 0?ss:t==="canceled"?ds:t===null||t==="done"?{ok:true}:ss}):ss}}function createInAppBrowserPayments(e){let{openAuthSession:t,client:r,returnUrl:n}=e;return{confirmCardSetup:()=>Promise.resolve(ss),async handleNextAction(e,i){if(!i?.orderId)return ss;let o;try{let e=await r.cardActionLink(i.orderId,{returnUrl:n});o=e.ok?cs(e.value.url):null}catch{o=null}return o?ps(t,o,n,e=>{let t=us(e,n,"oms_card_action");return t==="succeeded"?{ok:true}:t==="canceled"?ds:ss}):ss}}}function createInAppBrowserCard(e){return{cardHandoff:createInAppBrowserCardSetup({openAuthSession:e.openAuthSession,client:e.client,returnUrl:e.returnUrl}),payments:createInAppBrowserPayments(e)}}var hs=class _OmsWireError extends Error{constructor(e){super(`OMS answer could not be read: ${e}`);this.field=e;this.name="OmsWireError",Object.setPrototypeOf(this,_OmsWireError.prototype)}};function gs(e,t){if(e===null||typeof e!="object"||Array.isArray(e))throw new hs(t);return e}function fs(e,t){if(e==null)return[];if(!Array.isArray(e))throw new hs(t);return e}function ms(e,t,r=t){let n=e[t];if(typeof n!="string"||n.length===0)throw new hs(r);return n}function bs(e,t){let r=e[t];return typeof r=="string"&&r.length>0?r:null}function ys(e,t,r=t){let n=e[t];if(typeof n!="number"||!Number.isFinite(n))throw new hs(r);return Math.trunc(n)}function ks(e,t){let r=e[t];return typeof r=="number"&&Number.isFinite(r)?Math.trunc(r):null}function ws(e,t){return e[t]===true}function vs(e){if(!e||typeof e!="object")return null;let t=e.pet_id;return typeof t=="string"&&t.length>0?t:null}var Ts=["each","gram","milliliter"],xs=["ground","two_day","next_day"];function Ss(e){let t=e.pack_unit;return typeof t=="string"&&Ts.includes(t)?t:null}function Is(e){return typeof e=="string"&&xs.includes(e)?e:null}function Cs(e,t){let r=bs(e,t);return r&&rs(r)?.protocol==="https:"?r:null}function Ls(e,t){let r=e[t];return typeof r=="number"&&Number.isFinite(r)?r:null}function zs(e,t){let r=bs(e,t);return r&&/^\d{4}-\d{2}-\d{2}$/.test(r)?r:null}function Ws(e,t){let r=e[t];return typeof r=="boolean"?r:null}var As=["pharmacy","everfur_box"];function Rs(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=ks(t,"units_left"),n=bs(t,"unit_label"),i=Ls(t,"daily_units"),o=zs(t,"runs_out_on");return r===null||r<0||!n||i===null||i<=0||!o?null:{unitsLeft:r,unitLabel:n,dailyUnits:i,runsOutOn:o,refillArrivesOn:zs(t,"refill_arrives_on")}}function Fs(e){if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=bs(t,"key");return r?[{key:r,doneAt:bs(t,"done_at")}]:[]}function Hs(e){let t=gs(e,"shop-config"),r=t.delivery&&typeof t.delivery=="object"?t.delivery:null,n=bs(t,"stripe_publishable_key");return{recurringTermsVersion:bs(t,"recurring_terms_version"),recurringTermsUrl:Cs(t,"recurring_terms_url"),stripePublishableKey:n&&/^pk_(test|live)_[A-Za-z0-9]+$/.test(n)?n:null,delivery:r?{firstFill:Is(r.first_fill),refill:Is(r.refill)}:null,rxContactMissing:Array.isArray(t.rx_contact_missing)?t.rx_contact_missing.filter(e=>typeof e=="string"):null,freeShippingThresholdCents:ks(t,"free_shipping_threshold_cents"),firstRxDiscountCents:ks(t,"first_rx_discount_cents")}}function Ps(e){let t=gs(e,"offer"),r=t.pack_quantity;return{offerId:ms(t,"offer_id"),sku:bs(t,"sku")??"",title:ms(t,"title"),fulfillmentType:bs(t,"fulfillment_type")??"physical",requiresRx:ws(t,"requires_rx"),compounded:ws(t,"compounded"),packQuantity:typeof r=="string"&&/^\d+(\.\d+)?$/.test(r)?r:null,packUnit:Ss(t),price:ks(t,"price"),imageUrl:Cs(t,"image_url")}}function Bs(e){let t=gs(e,"offers");return{offers:fs(t.offers,"offers").map(Ps),nextCursor:bs(t,"next_cursor")}}function Os(e){let t=gs(e,"quote");return{lines:fs(t.lines,"lines").map(e=>{let t=gs(e,"line");return{offerId:ms(t,"offer_id"),quantity:ys(t,"quantity"),petId:vs(t.pet),unitPrice:ys(t,"unit_price"),discount:ks(t,"discount")??0,tax:ks(t,"tax")??0,whenFilledDiscountCents:ks(t,"when_filled_discount_cents"),isRx:Ws(t,"is_rx"),chargedWhenFilled:Ws(t,"charged_when_filled")}}),shipping:ys(t,"shipping"),tax:ks(t,"tax")??0,total:ys(t,"total"),expiresAt:ms(t,"expires_at"),whenFilledDiscountCents:ks(t,"when_filled_discount_cents"),dueTodayCents:ks(t,"due_today_cents"),dueWhenFilledCents:ks(t,"due_when_filled_cents"),shipsOn:zs(t,"ships_on"),arrivesOn:zs(t,"arrives_on")}}function Ds(e){let t=gs(e,"checkout");return{checkoutId:ms(t,"checkout_id"),state:bs(t,"state")??"draft",orderIds:fs(t.order_ids,"order_ids").filter(e=>typeof e=="string"),createdAt:bs(t,"created_at")??"",total:ys(t,"total"),shipping:ks(t,"shipping")??0,tax:ks(t,"tax")??0}}function Es(e){let t=gs(e,"confirmation");return{checkoutId:ms(t,"checkout_id"),resale:fs(t.resale,"resale").map(e=>{let t=gs(e,"resale"),r=ms(t,"outcome");if(r!=="confirmed"&&r!=="action_required")throw new hs("resale.outcome");let n=bs(t,"payer_action");if(r==="action_required"&&!n)throw new hs("resale.payer_action");return{outcome:r,orderId:ms(t,"order_id"),payerAction:r==="confirmed"?null:n}})}}function Ns(e){let t=gs(e,"order"),r=t.reference&&typeof t.reference=="object"?t.reference:null;return{orderId:ms(t,"order_id"),referenceNumber:r?bs(r,"number"):null,status:ms(t,"status"),total:ys(t,"total"),placedAt:bs(t,"placed_at"),itemCount:ks(t,"item_count"),items:Array.isArray(t.items)?t.items.flatMap(Vs):null,fulfiller:As.includes(bs(t,"fulfiller")??"")?t.fulfiller:null,arrivesBy:zs(t,"arrives_by"),steps:Array.isArray(t.steps)?t.steps.flatMap(Fs):null,currentStep:bs(t,"current_step"),statusLineKey:bs(t,"status_line_key"),prescriberName:bs(t,"prescriber_name")}}function Vs(e){if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=bs(t,"offer_id"),n=bs(t,"title"),i=ks(t,"quantity");return r&&n&&i!==null?[{offerId:r,title:n,quantity:i,imageUrl:Cs(t,"image_url")}]:[]}function qs(e){if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=bs(t,"key");return r?[{key:r,done:t.done===true,at:bs(t,"at")}]:[]}function Us(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;try{return Ks(e)}catch{return null}}function Gs(e){let t=gs(e,"orders");return{orders:fs(t.orders,"orders").map(Ns),nextCursor:bs(t,"next_cursor")}}function Ms(e){let t=gs(e,"line"),r=t.pack_quantity;return{lineId:ms(t,"line_id"),offerId:ms(t,"offer_id"),sku:bs(t,"sku")??"",title:ms(t,"title"),requiresRx:ws(t,"requires_rx"),compounded:ws(t,"compounded"),packQuantity:typeof r=="string"&&/^\d+(\.\d+)?$/.test(r)?r:null,packUnit:Ss(t),quantity:ys(t,"quantity"),unitPrice:ys(t,"unit_price"),discount:ks(t,"discount")??0,tax:ks(t,"tax")??0,fulfillmentType:bs(t,"fulfillment_type")??"physical",petId:vs(t.pet),imageUrl:Cs(t,"image_url")}}function Ks(e){let t=gs(e,"tracking");return{carrier:bs(t,"carrier"),trackingNumber:bs(t,"tracking_number"),status:ms(t,"status"),occurredAt:bs(t,"occurred_at"),trackingUrl:Cs(t,"tracking_url"),deliveryBy:bs(t,"delivery_by")}}function js(e){let t=gs(e,"shipment");return{shipmentId:ms(t,"shipment_id"),state:ms(t,"state"),lines:fs(t.lines,"shipment.lines").map(e=>{let t=gs(e,"shipment.line");return{lineId:ms(t,"line_id"),quantity:ys(t,"quantity")}}),tracking:fs(t.tracking,"tracking").map(Ks)}}function Zs(e){let t=gs(e,"order");return{summary:Ns(t.summary),lines:fs(t.lines,"lines").map(Ms),shipping:ks(t,"shipping")??0,shippingTax:ks(t,"shipping_tax")??0,shipments:fs(t.shipments,"shipments").map(js),canCancel:ws(t,"can_cancel"),canReturn:ws(t,"can_return"),canPay:ws(t,"can_pay"),paymentStatus:bs(t,"payment_status"),refunds:fs(t.refunds,"refunds").map(e=>{let t=gs(e,"refund");return{refundId:ms(t,"refund_id"),amount:ys(t,"amount"),state:ms(t,"state")}}),returnIds:fs(t.return_ids,"return_ids").filter(e=>typeof e=="string"),subtotal:ks(t,"subtotal"),discount:ks(t,"discount"),tax:ks(t,"tax"),arrivesBy:bs(t,"arrives_by"),tracking:Us(t.tracking),steps:Array.isArray(t.steps)?t.steps.flatMap(qs):null,paymentMethodId:bs(t,"payment_method_id")}}function Ys(e){let t=gs(e,"cancel");return{outcome:ms(t,"outcome"),refunded:ks(t,"refunded"),reasonCode:bs(t,"reason_code")}}function Js(e){let t=gs(e,"pay"),r=ms(t,"outcome");if(r!=="authorized"&&r!=="action_required")throw new hs("pay.outcome");let n=bs(t,"payer_action");if(r==="action_required"&&!n)throw new hs("pay.payer_action");return{outcome:r,orderId:ms(t,"order_id"),payerAction:r==="authorized"?null:n}}function Xs(e){let t=gs(e,"return");return{returnId:ms(t,"return_id"),orderId:ms(t,"order_id"),lines:fs(t.lines,"return.lines").map(e=>{let t=gs(e,"return.line");return{lineId:ms(t,"line_id"),quantity:ys(t,"quantity"),reasonCode:ms(t,"reason_code")}}),state:ms(t,"state"),rma:bs(t,"rma"),labelUrl:Cs(t,"label_url")}}function Qs(e){let t=gs(e,"case");return{caseId:ms(t,"case_id"),orderId:ms(t,"order_id"),reasonCode:ms(t,"reason_code"),message:typeof t.message=="string"?t.message:"",openedAt:ms(t,"opened_at"),closedAt:bs(t,"closed_at")}}function _s(e){return fs(gs(e,"cases").cases,"cases").map(Qs)}function $s(e){return fs(gs(e,"prescriptions").prescriptions,"prescriptions").map(e=>{let t=gs(e,"prescription");return{rxId:ms(t,"rx_id"),petId:ms(t,"pet_id"),drug:bs(t,"drug")??"",strength:bs(t,"strength"),form:bs(t,"form"),status:ms(t,"status"),offerId:bs(t,"offer_id"),packCount:ks(t,"pack_count"),fillsUsed:ks(t,"fills_used"),fillsTotal:ks(t,"fills_total"),expiresOn:bs(t,"expires_on"),nextFillOn:bs(t,"next_fill_on"),supply:Rs(t.supply),prescriberName:bs(t,"prescriber_name"),refillsTotal:ks(t,"refills_total"),refillsLeft:ks(t,"refills_left")}})}function ed(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=bs(t,"line1"),n=bs(t,"city"),i=bs(t,"postal_code"),o=bs(t,"country");return!r||!n||!i||!o?null:{recipientName:bs(t,"recipient_name"),line1:r,line2:bs(t,"line2"),city:n,region:bs(t,"region")??"",postalCode:i,country:o}}function td(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=bs(t,"brand"),n=bs(t,"last4");return r&&n?{brand:r,last4:n}:null}function rd(e){let t=gs(e,"receipt"),r=t.reference&&typeof t.reference=="object"?t.reference:null;return{orderId:ms(t,"order_id"),referenceNumber:r?bs(r,"number"):null,placedAt:ms(t,"placed_at"),lines:fs(t.lines,"receipt.lines").map(e=>{let t=gs(e,"receipt.line");return{title:ms(t,"title","receipt.line.title"),quantity:ys(t,"quantity","receipt.line.quantity"),unitPrice:ys(t,"unit_price","receipt.line.unit_price"),discount:ys(t,"discount","receipt.line.discount"),tax:ys(t,"tax","receipt.line.tax"),total:ys(t,"total","receipt.line.total")}}),subtotal:ys(t,"subtotal"),shipping:ys(t,"shipping"),tax:ys(t,"tax"),discounts:ys(t,"discounts"),total:ys(t,"total"),paidAt:bs(t,"paid_at"),card:td(t.card),shipTo:ed(t.ship_to)}}function nd(e){let t=gs(e,"address");return{ref:ms(t,"ref"),label:bs(t,"label")??"",isDefault:ws(t,"is_default"),isComplete:ws(t,"is_complete")}}function id(e){return fs(gs(e,"addresses").addresses,"addresses").map(nd)}function od(e){let t=gs(e,"address"),r=gs(t.address,"address.address"),n={recipientName:bs(r,"recipient_name"),line1:ms(r,"line1","address.line1"),line2:bs(r,"line2"),city:ms(r,"city","address.city"),region:bs(r,"region")??"",postalCode:ms(r,"postal_code","address.postal_code"),country:ms(r,"country","address.country")};return{...nd(t),address:n}}function ld(e){return fs(gs(e,"payment_methods").payment_methods,"payment_methods").map(e=>{let t=gs(e,"payment_method");return{paymentMethodId:ms(t,"payment_method_id"),brand:bs(t,"brand")??"",last4:bs(t,"last4")??"",wallet:bs(t,"wallet")}})}function ad(e){let t=gs(e,"setup");return{setupId:ms(t,"setup_id"),payerAction:ms(t,"payer_action")}}function sd(e){let t=gs(e,"card_setup");return{url:ms(t,"url")}}function dd(e){let t=gs(e,"card_action");return{url:ms(t,"url"),expiresAt:ms(t,"expires_at")}}function cd(e){let t=gs(e,"plan");return{planId:ms(t,"plan_id"),lines:fs(t.lines,"plan.lines").map(e=>{let t=gs(e,"plan.line");return{offerId:ms(t,"offer_id"),quantity:ys(t,"quantity"),petId:vs(t.pet)}}),cadenceDays:ys(t,"cadence_days"),destination:bs(t,"destination"),paymentMethodId:bs(t,"payment_method_id"),discountBps:ks(t,"discount_bps")??0,nextRun:bs(t,"next_run"),state:ms(t,"state"),stopReason:bs(t,"stop_reason"),priceCentsPerCycle:ks(t,"price_cents_per_cycle"),chargedWhenFilled:Ws(t,"charged_when_filled"),nextShipOn:zs(t,"next_ship_on"),skippedCycleOn:zs(t,"skipped_cycle_on"),prescriberName:bs(t,"prescriber_name"),refillsLeft:ks(t,"refills_left"),refillsTotal:ks(t,"refills_total"),autoDiscountPct:ks(t,"auto_discount_pct"),changeOptions:pd(t.change_options),skipWarning:ud(t.skip_warning)}}function ud(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,r=bs(t,"key");if(r!=="last_dose"&&r!=="bottle_gap")return null;let n=t.values!==null&&typeof t.values=="object"&&!Array.isArray(t.values)?t.values:{},i=bs(n,"unit_label")?.trim();return{key:r,values:{unitLabel:i||null,doseOn:zs(n,"dose_on"),noneFor:zs(n,"none_for"),lastsTo:zs(n,"lasts_to"),weeks:ks(n,"weeks")}}}function pd(e){if(!Array.isArray(e))return null;let t=e.flatMap(e=>{if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=bs(t,"offer_id"),n=bs(t,"title"),i=ks(t,"quantity"),o=ks(t,"price_cents_per_cycle"),l=Array.isArray(t.cadence_days)?t.cadence_days.filter(e=>Number.isInteger(e)&&e>0):[];if(!r||!n||i===null||i<1||o===null||l.length===0)return[];let a=t.pack_quantity;return[{offerId:r,title:n,size:bs(t,"size"),packQuantity:typeof a=="string"&&/^\d+(\.\d+)?$/.test(a)?a:null,packUnit:Ss(t),unitLabel:bs(t,"unit_label"),quantity:i,priceCentsPerCycle:o,cadenceDays:l,current:t.current===true}]});return t.length>0?t:null}function hd(e){return fs(gs(e,"buy_again").items,"items").flatMap(e=>{if(e===null||typeof e!="object"||Array.isArray(e))return[];let t=e,r=bs(t,"offer_id"),n=bs(t,"title");return!r||!n?[]:[{offerId:r,title:n,imageUrl:Cs(t,"image_url"),priceCents:ks(t,"price_cents"),lastOrderedOn:zs(t,"last_ordered_on"),isRx:Ws(t,"is_rx")??false,likelyOut:Ws(t,"likely_out")??false}]})}function gd(e){let t=gs(e,"plans");return{plans:fs(t.plans,"plans").map(cd),nextCursor:bs(t,"next_cursor")}}function fd(e){let t={offer_id:e.offerId,quantity:e.quantity};return e.petId&&(t.pet={namespace:"consumer",pet_id:e.petId}),e.rxId&&(t.rx_id=e.rxId),e.plan&&(t.plan=e.plan),t}function md(e){let t=e.address;return{label:e.label,make_default:e.makeDefault===true,address:{recipient_name:t.recipientName,line1:t.line1,line2:t.line2,city:t.city,region:t.region,postal_code:t.postalCode,country:t.country}}}function bd(e){let t=gs(e,"cycle"),r=t.review&&typeof t.review=="object"&&!Array.isArray(t.review)?t.review:null,n=e=>r&&r[e]!==void 0&&r[e]!==null?r[e]:t[e];return{planId:ms(t,"plan_id"),reviewId:bs(t,"review_id")??(r?bs(r,"review_id"):null),cycle:ys(t,"cycle"),state:r?bs(r,"state")??bs(t,"state"):bs(t,"state"),lines:fs(n("lines"),"cycle.lines").map(e=>{let t=gs(e,"cycle.line");return{offerId:ms(t,"offer_id"),quantity:ys(t,"quantity"),petId:vs(t.pet)}}),shipsOn:r?bs(r,"ships_on")??bs(t,"ships_on"):bs(t,"ships_on"),approveBy:r?bs(r,"approve_by")??bs(t,"approve_by"):bs(t,"approve_by"),quoteLines:fs(t.quote&&typeof t.quote=="object"?t.quote.lines:null,"cycle.quote.lines").map(e=>{let t=gs(e,"cycle.quote.line");return{offerId:ms(t,"offer_id"),quantity:ys(t,"quantity"),petId:vs(t.pet),unitPrice:ys(t,"unit_price"),discount:ks(t,"discount")??0,tax:ks(t,"tax")??0}})}}function yd(e){let t=gs(e,"cycle-draft");return{checkoutId:ms(t,"checkout_id"),shipping:ks(t,"shipping")??0,tax:ks(t,"tax")??0,total:ys(t,"total"),expiresAt:bs(t,"expires_at")}}var kd="/api/v1/oms",wd=3e4,vd=/^[A-Za-z0-9_]+$/,Td=/^[a-z][a-z0-9_]{0,63}$/;function xd(e){let t=rs(e);if(t===null)throw new F("invalid-argument","createOmsClient: baseUrl is not a URL");let r=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol!=="https:"&&!(r&&t.protocol==="http:"))throw new F("invalid-argument","createOmsClient: baseUrl must be https");if(t.username||t.password||t.search||t.hash)throw new F("invalid-argument","createOmsClient: baseUrl must be a bare origin or path");return t.origin+t.pathname.replace(/\/+$/,"")}function Sd(e){return encodeURIComponent(e)}function Id(e){return typeof e=="string"&&e.length>0&&e.length<=256}function createOmsClient(e){let t=xd(e.baseUrl)+(e.path??kd).replace(/\/+$/,""),r=e.fetch??(typeof globalThis.fetch=="function"?globalThis.fetch.bind(globalThis):void 0);if(!r)throw new F("missing-peer-dependency","createOmsClient: no fetch available; pass config.fetch");if(!e.auth||e.auth.kind!=="everfur_consumer"||typeof e.auth.getToken!="function")throw new F("invalid-argument",'createOmsClient: auth must be { kind: "everfur_consumer", getToken }');let n=e.auth.getToken,i=e.channel??"web",o=e.timeoutMs??wd;async function l(){try{let e=await n();return typeof e=="string"&&e.length>0?e:null}catch{return null}}async function a(e){let n=await l();if(!n)return ae({kind:"signedOut"});let i=t+e.path;if(e.query){let t=Object.entries(e.query).filter(([,e])=>e!==void 0).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`).join("&");t&&(i+=`?${t}`)}let a={accept:"application/json",authorization:`Bearer ${n}`},s={method:e.method,headers:a};e.body!==void 0&&(a["content-type"]="application/json",s.body=JSON.stringify(e.body));let d=typeof AbortController=="function"?new AbortController:null;d&&(s.signal=d.signal);let c=false,u=setTimeout(()=>{c=true,d?.abort()},o),p;try{p=await r(i,s)}catch{return clearTimeout(u),ae({kind:c?"timeout":"network"})}try{let t=p.headers.get("x-request-id")??void 0,r=t?{requestId:t}:{};if(p.status<200||p.status>=300){let e=p.status===402||p.status===409||p.status===422?await p.json().catch(()=>null):null;return ae(pe(p.status,e,{...r,retryAfter:p.headers.get("retry-after")}))}if(e.read===null||p.status===204)return le(void 0);let n;try{n=await p.json()}catch{return ae({kind:"badResponse",...r})}try{return le(e.read(n))}catch{return ae({kind:"badResponse",...r})}}catch{return ae({kind:c?"timeout":"network"})}finally{clearTimeout(u)}}let s=()=>Promise.resolve(ae({kind:"invalidRequest"}));function d(e,t){return Id(e)?t(Sd(e)):s()}let c=e=>e.map(fd);return{shopConfig:()=>a({method:"GET",path:"/shop-config",read:Hs}),offers:(e={})=>a({method:"GET",path:"/catalog/offers",query:{text:e.text,requires_rx:e.requiresRx,cursor:e.cursor,limit:e.limit},read:Bs}),offer:e=>d(e,e=>a({method:"GET",path:`/catalog/offers/${e}`,read:Ps})),prescriptions:()=>a({method:"GET",path:"/prescriptions",read:$s}),addresses:()=>a({method:"GET",path:"/addresses",read:id}),address:e=>d(e,e=>a({method:"GET",path:`/addresses/${e}`,read:od})),addAddress:e=>a({method:"POST",path:"/addresses",body:md(e),read:nd}),updateAddress:(e,t)=>d(e,e=>a({method:"PUT",path:`/addresses/${e}`,body:md(t),read:nd})),removeAddress:e=>d(e,e=>a({method:"DELETE",path:`/addresses/${e}`,read:null})),makeDefaultAddress:e=>d(e,e=>a({method:"POST",path:`/addresses/${e}/default`,read:nd})),paymentMethods:()=>a({method:"GET",path:"/payment-methods",read:ld}),setupPaymentMethod:()=>a({method:"POST",path:"/payment-methods/setup",read:ad}),startCardSetupSession:e=>a({method:"POST",path:"/payment-methods/setup-session",body:{idempotency_key:e.idempotencyKey,return_url:e.returnUrl},read:sd}),removePaymentMethod:e=>vd.test(e)?a({method:"DELETE",path:`/payment-methods/${e}`,read:null}):s(),quote:e=>a({method:"POST",path:"/cart/quote",body:{lines:c(e.lines),ship_to:e.shipTo,promo_code:e.promoCode??null},read:Os}),createCheckout:e=>a({method:"POST",path:"/checkouts",body:{idempotency_key:e.idempotencyKey,channel:i,lines:c(e.lines),ship_to:e.shipTo,receipt_email:e.receiptEmail??null,promo_code:e.promoCode??null},read:Ds}),confirmCheckout:(e,t)=>vd.test(t.paymentMethodId)&&Number.isInteger(t.expectedTotal)?d(e,e=>a({method:"POST",path:`/checkouts/${e}/confirm`,body:{idempotency_key:t.idempotencyKey,expected_total:t.expectedTotal,payment_method_id:t.paymentMethodId},read:Es})):s(),orders:(e={})=>e.since!==void 0&&!/^\d{4}-\d{2}-\d{2}$/.test(e.since)?s():a({method:"GET",path:"/orders",query:{cursor:e.cursor,limit:e.limit,reference:e.reference,since:e.since},read:Gs}),order:e=>d(e,e=>a({method:"GET",path:`/orders/${e}`,read:Zs})),cancelOrder:(e,t)=>Td.test(t.reasonCode)?d(e,e=>a({method:"POST",path:`/orders/${e}/cancel`,body:{idempotency_key:t.idempotencyKey,reason_code:t.reasonCode},read:Ys})):s(),payOrder:(e,t)=>{if(t.paymentMethodId!==void 0&&!vd.test(t.paymentMethodId))return s();let r={idempotency_key:t.idempotencyKey};return t.paymentMethodId&&(r.payment_method_id=t.paymentMethodId),d(e,e=>a({method:"POST",path:`/orders/${e}/pay`,body:r,read:Js}))},cardActionLink:(e,t)=>d(e,e=>a({method:"POST",path:`/orders/${e}/card-action-link`,body:{return_url:t.returnUrl},read:dd})),receipt:e=>d(e,e=>a({method:"GET",path:`/orders/${e}/receipt`,read:rd})),requestReturn:(e,t)=>t.lines.every(e=>Td.test(e.reasonCode))?d(e,e=>a({method:"POST",path:`/orders/${e}/returns`,body:{idempotency_key:t.idempotencyKey,lines:t.lines.map(e=>({line_id:e.lineId,quantity:e.quantity,reason_code:e.reasonCode}))},read:Xs})):s(),getReturn:e=>d(e,e=>a({method:"GET",path:`/returns/${e}`,read:Xs})),cancelReturn:e=>d(e,e=>a({method:"POST",path:`/returns/${e}/cancel`,read:Xs})),openCase:(e,t)=>Td.test(t.reasonCode)&&t.message.length<=4e3?d(e,e=>a({method:"POST",path:`/orders/${e}/cases`,body:{idempotency_key:t.idempotencyKey,reason_code:t.reasonCode,message:t.message},read:Qs})):s(),orderCases:e=>d(e,e=>a({method:"GET",path:`/orders/${e}/cases`,read:_s})),plans:(e={})=>a({method:"GET",path:"/subscriptions",query:{cursor:e.cursor,limit:e.limit},read:gd}),buyAgain:()=>a({method:"GET",path:"/buy-again",read:hd}),createPlan:e=>vd.test(e.paymentMethodId)?a({method:"POST",path:"/subscriptions",body:{idempotency_key:e.idempotencyKey,cadence_days:e.cadenceDays,destination:e.destination,payment_method_id:e.paymentMethodId,consent_terms_version:e.consentTermsVersion,lines:c(e.lines)},read:cd}):s(),updatePlan:(e,t)=>{if(t.paymentMethodId!==void 0&&!vd.test(t.paymentMethodId))return s();let r={idempotency_key:t.idempotencyKey};if(t.lines&&(r.lines=c(t.lines)),t.cadenceDays!==void 0&&(r.cadence_days=t.cadenceDays),t.offerId!==void 0){if(!Id(t.offerId)||t.cadenceDays===void 0||t.lines)return s();r.offer_id=t.offerId}return t.destination!==void 0&&(r.destination=t.destination),t.paymentMethodId!==void 0&&(r.payment_method_id=t.paymentMethodId),d(e,e=>a({method:"PATCH",path:`/subscriptions/${e}`,body:r,read:cd}))},planAction:(e,t)=>d(e,e=>a({method:"POST",path:`/subscriptions/${e}/actions`,body:{idempotency_key:t.idempotencyKey,operation:t.operation},read:cd})),cancelPlan:e=>d(e,e=>a({method:"POST",path:`/subscriptions/${e}/cancel`,read:cd})),cycleReview:e=>d(e,e=>a({method:"GET",path:`/subscriptions/${e}/cycle`,read:bd})),editCycle:(e,t,r)=>Number.isInteger(t)&&t>0?d(e,e=>a({method:"PUT",path:`/subscriptions/${e}/cycles/${t}/lines`,body:{idempotency_key:r.idempotencyKey,lines:c(r.lines)},read:bd})):s(),draftCycle:(e,t)=>Number.isInteger(t)&&t>0?d(e,e=>a({method:"POST",path:`/subscriptions/${e}/cycles/${t}/draft`,read:yd})):s(),approveCycle:(e,t,r)=>Number.isInteger(t)&&t>0&&Number.isInteger(r.expectedTotal)?d(e,e=>a({method:"POST",path:`/subscriptions/${e}/cycles/${t}/approve`,body:{idempotency_key:r.idempotencyKey,checkout_id:r.checkoutId,expected_total:r.expectedTotal},read:Es})):s(),skipCycle:(e,t,r)=>Number.isInteger(t)&&t>0?d(e,e=>a({method:"POST",path:`/subscriptions/${e}/cycles/${t}/skip`,body:{idempotency_key:r.idempotencyKey},read:cd})):s()}}export{EverfurShop,Re as SHOP_COPY,Fe as SHOP_COPY_PLACEHOLDERS,oe as SHOP_ORDERS_V2_COPY,Pe as SHOP_V3_COPY,Be as SHOP_V3_COPY_PLACEHOLDERS,ShopSwitchCard,ye as UNAVAILABLE_PACKAGE_SOURCE,createInAppBrowserCard,createInAppBrowserCardSetup,createInAppBrowserPayments,createOmsClient,createOmsPackageSource,isOmsRefusal,isOmsRetryable,isOmsUnavailable,newIdempotencyKey,shopBackRoute,shopCopy,shopOrdersV2Copy,shopV3Copy};