cloudcommerce 2.3.0 → 2.3.1

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 (162) hide show
  1. package/.github/workflows/test-apps.yml +3 -3
  2. package/CHANGELOG.md +12 -0
  3. package/action.yml +6 -6
  4. package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
  5. package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
  6. package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
  7. package/ecomplus-stores/barra-doce/package.json +2 -2
  8. package/package.json +2 -2
  9. package/packages/api/package.json +1 -1
  10. package/packages/apps/affiliate-program/package.json +1 -1
  11. package/packages/apps/correios/package.json +1 -1
  12. package/packages/apps/custom-payment/package.json +1 -1
  13. package/packages/apps/custom-shipping/package.json +1 -1
  14. package/packages/apps/datafrete/package.json +1 -1
  15. package/packages/apps/discounts/package.json +1 -1
  16. package/packages/apps/emails/package.json +1 -1
  17. package/packages/apps/fb-conversions/package.json +1 -1
  18. package/packages/apps/flash-courier/package.json +1 -1
  19. package/packages/apps/frenet/package.json +1 -1
  20. package/packages/apps/galaxpay/package.json +1 -1
  21. package/packages/apps/google-analytics/package.json +1 -1
  22. package/packages/apps/jadlog/package.json +1 -1
  23. package/packages/apps/loyalty-points/package.json +1 -1
  24. package/packages/apps/mandae/package.json +1 -1
  25. package/packages/apps/melhor-envio/package.json +1 -1
  26. package/packages/apps/mercadopago/package.json +1 -1
  27. package/packages/apps/pagarme/package.json +1 -1
  28. package/packages/apps/pagarme-v5/package.json +1 -1
  29. package/packages/apps/paghiper/package.json +1 -1
  30. package/packages/apps/pix/package.json +1 -1
  31. package/packages/apps/tiny-erp/package.json +1 -1
  32. package/packages/apps/webhooks/package.json +1 -1
  33. package/packages/cli/ci/bunny-config-base.sh +4 -2
  34. package/packages/cli/config/firestore.rules +3 -0
  35. package/packages/cli/package.json +1 -1
  36. package/packages/config/package.json +1 -1
  37. package/packages/emails/package.json +1 -1
  38. package/packages/eslint/package.json +1 -1
  39. package/packages/events/package.json +1 -1
  40. package/packages/feeds/package.json +1 -1
  41. package/packages/firebase/package.json +1 -1
  42. package/packages/i18n/package.json +1 -1
  43. package/packages/modules/package.json +1 -1
  44. package/packages/passport/package.json +1 -1
  45. package/packages/ssr/lib/lib/cron-ssr-save-views.js +11 -5
  46. package/packages/ssr/lib/lib/cron-ssr-save-views.js.map +1 -1
  47. package/packages/ssr/package.json +3 -3
  48. package/packages/ssr/src/lib/cron-ssr-save-views.ts +11 -8
  49. package/packages/storefront/dist/client/_astro/AccountPage.3-eqV6OR.js +1 -0
  50. package/packages/storefront/dist/client/_astro/CartSidebar.-Gy6eqIy.js +1 -0
  51. package/packages/storefront/dist/client/_astro/HeroSlider.ju9TsLrJ.js +1 -0
  52. package/packages/storefront/dist/client/_astro/PitchBar.yqD9ycx5.js +1 -0
  53. package/packages/storefront/dist/client/_astro/Prices.xI1rdM1e.js +1 -0
  54. package/packages/storefront/dist/client/_astro/ProductDetails.ATGXfGhG.js +7 -0
  55. package/packages/storefront/dist/client/_astro/ProductShelf.b77WjhZZ.js +1 -0
  56. package/packages/storefront/dist/client/_astro/ProductShelf.qbTNzuvn.js +1 -0
  57. package/packages/storefront/dist/client/_astro/QuantitySelector.v7L8EYOR.js +1 -0
  58. package/packages/storefront/dist/client/_astro/SearchModal.WzDMBjqi.js +1 -0
  59. package/packages/storefront/dist/client/_astro/SearchShowcase.9gIA4Cq0.js +1 -0
  60. package/packages/storefront/dist/client/_astro/ShopHeader.Ee4OJr3q.js +7 -0
  61. package/packages/storefront/dist/client/_astro/{_plugin-vue_export-helper.SO-0jCqa.js → _plugin-vue_export-helper.xATGHWd9.js} +2 -2
  62. package/packages/storefront/dist/client/_astro/{_slug_.4W7qhV-L.css → _slug_.WkuZ8tvp.css} +1 -1
  63. package/packages/storefront/dist/client/_astro/afetch.OifQZgwR.js +1 -0
  64. package/packages/storefront/dist/client/_astro/client.YJ00ta5M.js +1 -0
  65. package/packages/storefront/dist/client/_astro/customer-session.dSYHWdP4.js +7 -0
  66. package/packages/storefront/dist/client/_astro/format-money.1_HtF5S2.js +1 -0
  67. package/packages/storefront/dist/client/_astro/grid-title.pK2Nn3i-.js +1 -0
  68. package/packages/storefront/dist/client/_astro/hoisted.d2SGwVMl.js +1 -0
  69. package/packages/storefront/dist/client/_astro/hoisted.x1b7VHef.js +1 -0
  70. package/packages/storefront/dist/client/_astro/hoisted.xTPkED8g.js +1 -0
  71. package/packages/storefront/dist/client/_astro/i18n.zhlBzJt8.js +1 -0
  72. package/packages/storefront/dist/client/_astro/img.AnjeGdy_.js +1 -0
  73. package/packages/storefront/dist/client/_astro/index.KfrHdfOH.js +1 -0
  74. package/packages/storefront/dist/client/_astro/index.ShNlAyu1.js +1 -0
  75. package/packages/storefront/dist/client/_astro/modules-info.HP6478mG.js +1 -0
  76. package/packages/storefront/dist/client/_astro/name.VA3MEpe0.js +1 -0
  77. package/packages/storefront/dist/client/_astro/server-data.4C60Esyt.js +1 -0
  78. package/packages/storefront/dist/client/_astro/sf-utils.c42cbZ9W.js +13 -0
  79. package/packages/storefront/dist/client/_astro/shopping-cart.v-dB3kHB.js +1 -0
  80. package/packages/storefront/dist/client/_astro/use-analytics._ef6TM4P.js +1 -0
  81. package/packages/storefront/dist/client/_astro/use-product-card.nNtSJVtB.js +1 -0
  82. package/packages/storefront/dist/client/_astro/use-text-value.0OP9HCfP.js +4 -0
  83. package/packages/storefront/dist/client/{~fallback/index.html → ~fallback.html} +5 -5
  84. package/packages/storefront/dist/client/{index.html → ~index.html} +7 -7
  85. package/packages/storefront/dist/server/_noop-middleware.mjs +3 -0
  86. package/packages/storefront/dist/server/chunks/{CartSidebar_yYIzwp_R.mjs → CartSidebar_blvgfFa-.mjs} +1 -1
  87. package/packages/storefront/dist/server/chunks/{SearchModal_GvRUZ6ce.mjs → SearchModal_Sktaq643.mjs} +1 -1
  88. package/packages/storefront/dist/server/chunks/_.._yTK2xBRC.mjs +5 -0
  89. package/packages/storefront/dist/server/chunks/_page__9PfWVh79.mjs +5 -0
  90. package/packages/storefront/dist/server/chunks/account_R4bpY7O1.mjs +5 -0
  91. package/packages/storefront/dist/server/chunks/astro/{assets-service_yXRChsFH.mjs → assets-service_oQ4-9MNg.mjs} +1 -1
  92. package/packages/storefront/dist/server/chunks/{astro_F4pl3toV.mjs → astro_ECsNQeA2.mjs} +18 -14
  93. package/packages/storefront/dist/server/chunks/index__PeYBuja.mjs +5 -0
  94. package/packages/storefront/dist/server/chunks/node_njrZIjT6.mjs +5 -0
  95. package/packages/storefront/dist/server/chunks/pages/{__z8Igc_-f.mjs → __XOsz50la.mjs} +994 -922
  96. package/packages/storefront/dist/server/chunks/pages/{_page__-V1Q-Ymk.mjs → _page__cIw_KTpN.mjs} +14 -12
  97. package/packages/storefront/dist/server/chunks/pages/{account_frSUn7gD.mjs → account_l-FHyDJd.mjs} +3 -2
  98. package/packages/storefront/dist/server/chunks/pages/{index_QqJiJpFy.mjs → index_KP7Gn0ld.mjs} +3 -2
  99. package/packages/storefront/dist/server/chunks/pages/{node_FoDIj_f7.mjs → node_FoLtkdH1.mjs} +4 -4
  100. package/packages/storefront/dist/server/chunks/pages/{~fallback_t0lNhRm9.mjs → ~fallback_KPp6Nh_p.mjs} +3 -2
  101. package/packages/storefront/dist/server/chunks/~fallback_p7P7NIL5.mjs +5 -0
  102. package/packages/storefront/dist/server/entry.mjs +289 -166
  103. package/packages/storefront/dist/server/manifest_E6KbHQrT.mjs +202 -0
  104. package/packages/storefront/dist/server/renderers.mjs +1 -1
  105. package/packages/storefront/dist/server/static-builds.csv +34 -34
  106. package/packages/storefront/package.json +3 -3
  107. package/packages/storefront/src/lib/scripts/git-cms-auth.ts +3 -0
  108. package/packages/storefront/src/lib/scripts/push-analytics-events.ts +6 -1
  109. package/packages/storefront/src/lib/scripts/sso-ecom.ts +0 -0
  110. package/packages/storefront/src/lib/ssr-context.ts +3 -1
  111. package/packages/test-base/package.json +1 -1
  112. package/packages/types/package.json +1 -1
  113. package/packages/storefront/dist/client/_astro/AccountPage.HcKW6HTE.js +0 -1
  114. package/packages/storefront/dist/client/_astro/CartSidebar.osvr0MUo.js +0 -1
  115. package/packages/storefront/dist/client/_astro/HeroSlider.I5mC8JdX.js +0 -1
  116. package/packages/storefront/dist/client/_astro/PitchBar.xC4J7MDy.js +0 -1
  117. package/packages/storefront/dist/client/_astro/Prices.Jt09rVKv.js +0 -1
  118. package/packages/storefront/dist/client/_astro/ProductDetails.oouZY3cL.js +0 -7
  119. package/packages/storefront/dist/client/_astro/ProductShelf.dYlXuNId.js +0 -1
  120. package/packages/storefront/dist/client/_astro/ProductShelf.vGE0E3Qf.js +0 -1
  121. package/packages/storefront/dist/client/_astro/QuantitySelector.OL4MN-C_.js +0 -1
  122. package/packages/storefront/dist/client/_astro/SearchModal.d8lbvLay.js +0 -1
  123. package/packages/storefront/dist/client/_astro/SearchShowcase.ynowXX4j.js +0 -1
  124. package/packages/storefront/dist/client/_astro/ShopHeader.l4KJGvUd.js +0 -7
  125. package/packages/storefront/dist/client/_astro/afetch.5c8VmT0-.js +0 -1
  126. package/packages/storefront/dist/client/_astro/client.ZhEmw4hZ.js +0 -1
  127. package/packages/storefront/dist/client/_astro/customer-session.TRPGDX3c.js +0 -7
  128. package/packages/storefront/dist/client/_astro/format-money.iK5LGydz.js +0 -1
  129. package/packages/storefront/dist/client/_astro/grid-title.vGKBy72g.js +0 -1
  130. package/packages/storefront/dist/client/_astro/hoisted.8pwSenCN.js +0 -1
  131. package/packages/storefront/dist/client/_astro/hoisted.SLwcAI01.js +0 -1
  132. package/packages/storefront/dist/client/_astro/hoisted.gqV7f6f3.js +0 -1
  133. package/packages/storefront/dist/client/_astro/i18n.Lxnz1oF-.js +0 -1
  134. package/packages/storefront/dist/client/_astro/img.WnsidxCx.js +0 -1
  135. package/packages/storefront/dist/client/_astro/index.R7A-Pg5V.js +0 -1
  136. package/packages/storefront/dist/client/_astro/index.q6KIyKlJ.js +0 -1
  137. package/packages/storefront/dist/client/_astro/modules-info.WWsUqEPZ.js +0 -1
  138. package/packages/storefront/dist/client/_astro/name.urFqJ5yn.js +0 -1
  139. package/packages/storefront/dist/client/_astro/runtime-core.esm-bundler.XTSAdOlw.js +0 -13
  140. package/packages/storefront/dist/client/_astro/sf-utils.luvTU5uS.js +0 -1
  141. package/packages/storefront/dist/client/_astro/shopping-cart.ATTXCPd0.js +0 -1
  142. package/packages/storefront/dist/client/_astro/use-analytics.WpkjGsWi.js +0 -1
  143. package/packages/storefront/dist/client/_astro/use-product-card.BhUXhJIp.js +0 -1
  144. package/packages/storefront/dist/client/_astro/use-text-value.XE_A2nDM.js +0 -4
  145. package/packages/storefront/dist/client/app/account/index.html +0 -58
  146. package/packages/storefront/dist/client/app/index.html +0 -98
  147. package/packages/storefront/dist/client/blog/1/index.html +0 -86
  148. package/packages/storefront/dist/client/macbook-apple-pro-15.4-intel-core-i7-2.6ghz-ram-16gb-ssd-512gb-mr972ll/a-prata/index.html +0 -93
  149. package/packages/storefront/dist/client/monitores-gamer/index.html +0 -95
  150. package/packages/storefront/dist/client/mouse-gamer-corsair-optico-harpoon-rgb-ch-9301011-na/index.html +0 -93
  151. package/packages/storefront/dist/client/p/contato/index.html +0 -90
  152. package/packages/storefront/dist/client/p/terms/index.html +0 -101
  153. package/packages/storefront/dist/client/posts/3/index.html +0 -101
  154. package/packages/storefront/dist/client/posts/4/index.html +0 -101
  155. package/packages/storefront/dist/server/_empty-middleware.mjs +0 -3
  156. package/packages/storefront/dist/server/chunks/_.._Lq3r7hpv.mjs +0 -6
  157. package/packages/storefront/dist/server/chunks/_page__LqbeNfr1.mjs +0 -6
  158. package/packages/storefront/dist/server/chunks/account_4n4rpirV.mjs +0 -6
  159. package/packages/storefront/dist/server/chunks/index_SwXtE1IM.mjs +0 -6
  160. package/packages/storefront/dist/server/chunks/node_Nzz44v5l.mjs +0 -6
  161. package/packages/storefront/dist/server/chunks/~fallback_EWqi0UyU.mjs +0 -6
  162. package/packages/storefront/dist/server/manifest_ZHJUD8_m.mjs +0 -196
@@ -1 +0,0 @@
1
- import{_ as Y,w as te,b as le,v as he}from"./_plugin-vue_export-helper.SO-0jCqa.js";import{u as ge}from"./index.R7A-Pg5V.js";import{a as xe,i as _e}from"./sf-utils.luvTU5uS.js";import{i as ye,a as Oe,b as oe,c as Pe,d as ke,e as Se,f as we,g as Le,h as Fe,j as Re,k as Ce,P as Ee}from"./ProductShelf.vGE0E3Qf.js";import{S as Te}from"./use-analytics.WpkjGsWi.js";import{a as F,c as _,d as z,a5 as Me,H as ae,w as D,k as ie,X as I,a9 as Ae,aa as Be,a4 as De,ab as j,E as N,L as je,a6 as Ue,M as se,N as k,O as w,R as h,U as T,V as E,T as q,Y as Q,P as L,S as V,Z as Ve,$ as G,W as ne,Q as U,a0 as Ie}from"./runtime-core.esm-bundler.XTSAdOlw.js";import{u as ue,g as $e}from"./index.q6KIyKlJ.js";import{g as ze}from"./grid-title.vGKBy72g.js";import{f as W}from"./format-money.iK5LGydz.js";import{u as $,f as Ne,c as M,w as Ke,a as We,h as qe,o as A,t as Qe,i as X,b as He,E as Ge,s as Xe,A as Z,T as Ye,d as re,e as Ze,l as Je,N as ce,p as et,g as tt,O as at,j as C,D as st}from"./use-text-value.XE_A2nDM.js";import"./customer-session.TRPGDX3c.js";import"./use-product-card.BhUXhJIp.js";import"./price.Easct8WC.js";import"./name.urFqJ5yn.js";import"./i18n.Lxnz1oF-.js";import"./img.WnsidxCx.js";import"./shopping-cart.ATTXCPd0.js";import"./Prices.Jt09rVKv.js";import"./modules-info.WWsUqEPZ.js";import"./afetch.5c8VmT0-.js";function nt(t,s,i){let a=F(i?.value),e=_(()=>t.value!==void 0);return[_(()=>e.value?t.value:a.value),function(r){return e.value||(a.value=r),s?.(r)}]}function de(t={},s=null,i=[]){for(let[a,e]of Object.entries(t))fe(i,pe(s,a),e);return i}function pe(t,s){return t?t+"["+s+"]":s}function fe(t,s,i){if(Array.isArray(i))for(let[a,e]of i.entries())fe(t,pe(s,a.toString()),e);else i instanceof Date?t.push([s,i.toISOString()]):typeof i=="boolean"?t.push([s,i?"1":"0"]):typeof i=="string"?t.push([s,i]):typeof i=="number"?t.push([s,`${i}`]):i==null?t.push([s,""]):de(i,s,t)}function rt(t,s){return t===s}var lt=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(lt||{}),ot=(t=>(t[t.Single=0]="Single",t[t.Multi=1]="Multi",t))(ot||{}),it=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(it||{});function ut(t){requestAnimationFrame(()=>requestAnimationFrame(t))}let ve=Symbol("ListboxContext");function J(t){let s=De(ve,null);if(s===null){let i=new Error(`<${t} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,J),i}return s}let ct=z({name:"Listbox",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>rt},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(t,{slots:s,attrs:i,emit:a}){let e=F(1),r=F(null),p=F(null),c=F(null),d=F([]),l=F(""),o=F(null),P=F(1);function f(m=n=>n){let n=o.value!==null?d.value[o.value]:null,u=at(m(d.value.slice()),O=>A(O.dataRef.domRef)),v=n?u.indexOf(n):null;return v===-1&&(v=null),{options:u,activeOptionIndex:v}}let y=_(()=>t.multiple?1:0),[b,g]=nt(_(()=>t.modelValue),m=>a("update:modelValue",m),_(()=>t.defaultValue)),S=_(()=>b.value===void 0?$(y.value,{1:[],0:void 0}):b.value),x={listboxState:e,value:S,mode:y,compare(m,n){if(typeof t.by=="string"){let u=t.by;return m?.[u]===n?.[u]}return t.by(m,n)},orientation:_(()=>t.horizontal?"horizontal":"vertical"),labelRef:r,buttonRef:p,optionsRef:c,disabled:_(()=>t.disabled),options:d,searchQuery:l,activeOptionIndex:o,activationTrigger:P,closeListbox(){t.disabled||e.value!==1&&(e.value=1,o.value=null)},openListbox(){t.disabled||e.value!==0&&(e.value=0)},goToOption(m,n,u){if(t.disabled||e.value===1)return;let v=f(),O=Ne(m===M.Specific?{focus:M.Specific,id:n}:{focus:m},{resolveItems:()=>v.options,resolveActiveIndex:()=>v.activeOptionIndex,resolveId:B=>B.id,resolveDisabled:B=>B.dataRef.disabled});l.value="",o.value=O,P.value=u??1,d.value=v.options},search(m){if(t.disabled||e.value===1)return;let n=l.value!==""?0:1;l.value+=m.toLowerCase();let u=(o.value!==null?d.value.slice(o.value+n).concat(d.value.slice(0,o.value+n)):d.value).find(O=>O.dataRef.textValue.startsWith(l.value)&&!O.dataRef.disabled),v=u?d.value.indexOf(u):-1;v===-1||v===o.value||(o.value=v,P.value=1)},clearSearch(){t.disabled||e.value!==1&&l.value!==""&&(l.value="")},registerOption(m,n){let u=f(v=>[...v,{id:m,dataRef:n}]);d.value=u.options,o.value=u.activeOptionIndex},unregisterOption(m){let n=f(u=>{let v=u.findIndex(O=>O.id===m);return v!==-1&&u.splice(v,1),u});d.value=n.options,o.value=n.activeOptionIndex,P.value=1},theirOnChange(m){t.disabled||g(m)},select(m){t.disabled||g($(y.value,{0:()=>m,1:()=>{let n=j(x.value.value).slice(),u=j(m),v=n.findIndex(O=>x.compare(u,j(O)));return v===-1?n.push(u):n.splice(v,1),n}}))}};Ke([p,c],(m,n)=>{var u;x.closeListbox(),We(n,qe.Loose)||(m.preventDefault(),(u=A(p))==null||u.focus())},_(()=>e.value===0)),Me(ve,x),Qe(_(()=>$(e.value,{0:X.Open,1:X.Closed})));let R=_(()=>{var m;return(m=A(p))==null?void 0:m.closest("form")});return ae(()=>{D([R],()=>{if(!R.value||t.defaultValue===void 0)return;function m(){x.theirOnChange(t.defaultValue)}return R.value.addEventListener("reset",m),()=>{var n;(n=R.value)==null||n.removeEventListener("reset",m)}},{immediate:!0})}),()=>{let{name:m,modelValue:n,disabled:u,form:v,...O}=t,B={open:e.value===0,disabled:u,value:S.value};return ie(I,[...m!=null&&S.value!=null?de({[m]:S.value}).map(([K,ee])=>ie(He,Ge({features:Xe.Hidden,key:K,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:v,name:K,value:ee}))):[],Z({ourProps:{},theirProps:{...i,...Ye(O,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:B,slots:s,attrs:i,name:"Listbox"})])}}}),dt=z({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-listbox-button-${re()}`}},setup(t,{attrs:s,slots:i,expose:a}){let e=J("ListboxButton");a({el:e.buttonRef,$el:e.buttonRef});function r(l){switch(l.key){case C.Space:case C.Enter:case C.ArrowDown:l.preventDefault(),e.openListbox(),N(()=>{var o;(o=A(e.optionsRef))==null||o.focus({preventScroll:!0}),e.value.value||e.goToOption(M.First)});break;case C.ArrowUp:l.preventDefault(),e.openListbox(),N(()=>{var o;(o=A(e.optionsRef))==null||o.focus({preventScroll:!0}),e.value.value||e.goToOption(M.Last)});break}}function p(l){switch(l.key){case C.Space:l.preventDefault();break}}function c(l){e.disabled.value||(e.listboxState.value===0?(e.closeListbox(),N(()=>{var o;return(o=A(e.buttonRef))==null?void 0:o.focus({preventScroll:!0})})):(l.preventDefault(),e.openListbox(),ut(()=>{var o;return(o=A(e.optionsRef))==null?void 0:o.focus({preventScroll:!0})})))}let d=Ze(_(()=>({as:t.as,type:s.type})),e.buttonRef);return()=>{var l,o;let P={open:e.listboxState.value===0,disabled:e.disabled.value,value:e.value.value},{id:f,...y}=t,b={ref:e.buttonRef,id:f,type:d.value,"aria-haspopup":"listbox","aria-controls":(l=A(e.optionsRef))==null?void 0:l.id,"aria-expanded":e.listboxState.value===0,"aria-labelledby":e.labelRef.value?[(o=A(e.labelRef))==null?void 0:o.id,f].join(" "):void 0,disabled:e.disabled.value===!0?!0:void 0,onKeydown:r,onKeyup:p,onClick:c};return Z({ourProps:b,theirProps:y,slot:P,attrs:s,slots:i,name:"ListboxButton"})}}}),pt=z({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-listbox-options-${re()}`}},setup(t,{attrs:s,slots:i,expose:a}){let e=J("ListboxOptions"),r=F(null);a({el:e.optionsRef,$el:e.optionsRef});function p(l){switch(r.value&&clearTimeout(r.value),l.key){case C.Space:if(e.searchQuery.value!=="")return l.preventDefault(),l.stopPropagation(),e.search(l.key);case C.Enter:if(l.preventDefault(),l.stopPropagation(),e.activeOptionIndex.value!==null){let o=e.options.value[e.activeOptionIndex.value];e.select(o.dataRef.value)}e.mode.value===0&&(e.closeListbox(),N(()=>{var o;return(o=A(e.buttonRef))==null?void 0:o.focus({preventScroll:!0})}));break;case $(e.orientation.value,{vertical:C.ArrowDown,horizontal:C.ArrowRight}):return l.preventDefault(),l.stopPropagation(),e.goToOption(M.Next);case $(e.orientation.value,{vertical:C.ArrowUp,horizontal:C.ArrowLeft}):return l.preventDefault(),l.stopPropagation(),e.goToOption(M.Previous);case C.Home:case C.PageUp:return l.preventDefault(),l.stopPropagation(),e.goToOption(M.First);case C.End:case C.PageDown:return l.preventDefault(),l.stopPropagation(),e.goToOption(M.Last);case C.Escape:l.preventDefault(),l.stopPropagation(),e.closeListbox(),N(()=>{var o;return(o=A(e.buttonRef))==null?void 0:o.focus({preventScroll:!0})});break;case C.Tab:l.preventDefault(),l.stopPropagation();break;default:l.key.length===1&&(e.search(l.key),r.value=setTimeout(()=>e.clearSearch(),350));break}}let c=Je(),d=_(()=>c!==null?(c.value&X.Open)===X.Open:e.listboxState.value===0);return()=>{var l,o;let P={open:e.listboxState.value===0},{id:f,...y}=t,b={"aria-activedescendant":e.activeOptionIndex.value===null||(l=e.options.value[e.activeOptionIndex.value])==null?void 0:l.id,"aria-multiselectable":e.mode.value===1?!0:void 0,"aria-labelledby":(o=A(e.buttonRef))==null?void 0:o.id,"aria-orientation":e.orientation.value,id:f,onKeydown:p,role:"listbox",tabIndex:0,ref:e.optionsRef};return Z({ourProps:b,theirProps:y,slot:P,attrs:s,slots:i,features:ce.RenderStrategy|ce.Static,visible:d.value,name:"ListboxOptions"})}}}),ft=z({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-listbox.option-${re()}`}},setup(t,{slots:s,attrs:i,expose:a}){let e=J("ListboxOption"),r=F(null);a({el:r,$el:r});let p=_(()=>e.activeOptionIndex.value!==null?e.options.value[e.activeOptionIndex.value].id===t.id:!1),c=_(()=>$(e.mode.value,{0:()=>e.compare(j(e.value.value),j(t.value)),1:()=>j(e.value.value).some(x=>e.compare(j(x),j(t.value)))})),d=_(()=>$(e.mode.value,{1:()=>{var x;let R=j(e.value.value);return((x=e.options.value.find(m=>R.some(n=>e.compare(j(n),j(m.dataRef.value)))))==null?void 0:x.id)===t.id},0:()=>c.value})),l=et(r),o=_(()=>({disabled:t.disabled,value:t.value,get textValue(){return l()},domRef:r}));ae(()=>e.registerOption(t.id,o)),Ae(()=>e.unregisterOption(t.id)),ae(()=>{D([e.listboxState,c],()=>{e.listboxState.value===0&&c.value&&$(e.mode.value,{1:()=>{d.value&&e.goToOption(M.Specific,t.id)},0:()=>{e.goToOption(M.Specific,t.id)}})},{immediate:!0})}),Be(()=>{e.listboxState.value===0&&p.value&&e.activationTrigger.value!==0&&N(()=>{var x,R;return(R=(x=A(r))==null?void 0:x.scrollIntoView)==null?void 0:R.call(x,{block:"nearest"})})});function P(x){if(t.disabled)return x.preventDefault();e.select(t.value),e.mode.value===0&&(e.closeListbox(),N(()=>{var R;return(R=A(e.buttonRef))==null?void 0:R.focus({preventScroll:!0})}))}function f(){if(t.disabled)return e.goToOption(M.Nothing);e.goToOption(M.Specific,t.id)}let y=tt();function b(x){y.update(x)}function g(x){y.wasMoved(x)&&(t.disabled||p.value||e.goToOption(M.Specific,t.id,0))}function S(x){y.wasMoved(x)&&(t.disabled||p.value&&e.goToOption(M.Nothing))}return()=>{let{disabled:x}=t,R={active:p.value,selected:c.value,disabled:x},{id:m,value:n,disabled:u,...v}=t,O={id:m,ref:r,role:"option",tabIndex:x===!0?void 0:-1,"aria-disabled":x===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onClick:P,onFocus:f,onPointerenter:b,onMouseenter:b,onPointermove:g,onMousemove:g,onPointerleave:S,onMouseleave:S};return Z({ourProps:O,theirProps:v,slot:R,attrs:i,slots:s,name:"ListboxOption"})}}});const me=({searchEngine:t,fixedParams:s})=>{const i=_(()=>{const e={};return Object.keys(t.params).forEach(r=>{if(s?.[r])return;const p=t.params[r];if(p!==void 0){switch(r){case"sort":case"term":case"limit":case"offset":case"count":case"buckets":case"fields":return}e[r]=p}}),e}),a=_(()=>{const e=Object.keys(i.value),r=[];return e.forEach(p=>{const c=p.replace(/[^\w.]/g,"");if(c==="specs"&&Array.isArray(i.value[p])){i.value[p].forEach(d=>{const[l]=d.split(":"),o=`specs.${l}`;r.includes(o)||r.push(o)});return}r.includes(c)||r.push(c)}),r.length});return{activeFilters:i,filtersCount:a}},vt=t=>{const{searchEngine:s,fixedParams:i}=t,a=_(()=>s.meta),e=_(()=>s.meta.buckets),{activeFilters:r,filtersCount:p}=me(t);D(s.params,()=>{s.fetch()});let c=null;const d=()=>{Object.keys(s.params).forEach(n=>{i?.[n]||delete s.params[n]}),c=null},l=({min:n,max:u})=>`${n||null}/${u||null}`,o=_(()=>{const{params:n}=s;return{min:Number(n["price>"]),max:Number(n["price<"])}}),P=F([]),f=ue(()=>{P.value.splice(0),e.value?.prices?.forEach(n=>{n.min&&(n.min=Math.round(n.min*100)/100),n.max&&(n.max=Math.round(n.max*100)/100),P.value.push({range:n,key:l(n)})}),Number.isNaN(o.value.min)||P.value.find(({range:u})=>u.min===o.value.min&&u.max===o.value.max)||P.value.unshift({range:{...o.value,count:a.value.count||0,avg:null},key:l(o.value)})},50);f();const y=F(l(o.value));D(y,()=>{c="price";const n=P.value.find(({range:u})=>l(u)===y.value);if(n){const{min:u,max:v}=n.range;u?s.params["price>"]=u:delete s.params["price>"],v?s.params["price<"]=v:delete s.params["price<"];return}delete s.params["price>"],delete s.params["price<"]});const b=({min:n,max:u})=>n&&u?u===n?W(u):`${W(n)} ${oe.toLowerCase()} ${W(u)}`:!n&&u?`${oe} ${W(u)}`:`${Pe} ${W(n||0)}`,g=F([]),S=ue(()=>{for(let u=0;u<g.value.length;u++){const{field:v}=g.value[u];v!==c&&(g.value.splice(u,1),u-=1)}const n=e.value;if(n&&([["brands",ye],["categories",Oe]].forEach(([u,v])=>{const O=`${u}.name`;n[O]&&c!==O&&g.value.push({title:v,options:n[O],field:O})}),n.specs)){const{grids:u}=globalThis.$storefront.data;Object.keys(n.specs).forEach(v=>{const[O,B]=v.split(":");if(B){const K=`specs.${O}`;if(c===K)return;const ee=ze(O,u||[]);let H=g.value.find(be=>be.field===K);H||(H={title:ee,options:{},field:K},g.value.push(H)),H.options[B]=n.specs[v]}})}},50);S();const x=(n,u)=>{const[,v]=n.split(".");return["specs,",`${v}:${u}`]},R=(n,u)=>{n.startsWith("specs.")&&([n,u]=x(n,u));const v=r.value[n];return!!(v===u||Array.isArray(v)&&v.includes(u))},m=(n,u)=>{c=n,console.log({_lastParamChanged:c}),n.startsWith("specs.")&&([n,u]=x(n,u));const v=!R(n,u);let O=s.params[n];if(Array.isArray(O)||(O=[],s.params[n]=O),v)O.push(u);else for(let B=0;B<O.length;B++)if(O[B]===u){O.splice(B,1);break}};return D(e,()=>{c!=="price"&&f(),S()}),{resultMeta:a,resultBuckets:e,activeFilters:r,filtersCount:p,clearFilters:d,getPriceRangeKey:l,priceRanges:P,priceRangeKey:y,getPriceRangeLabel:b,filterOptions:g,checkFilterOption:R,toggleFilterOption:m}},mt=t=>{let{term:s}=t;const a=t.canUseUrlParams!==!1?ge("history"):null;t.ssrError&&(console.error(new Error(`SSR search error: ${t.ssrError}`)),window.location.pathname.startsWith("/s/")&&(window.location.href=`/s?q=${encodeURIComponent(s||"")}`));const e=je(t.products||[]),r=new Te({debounce:50});s===void 0&&(s=new URLSearchParams(window.location.search).get("q")||null),s!==void 0&&(r.term.value=s),t.pageSize&&(r.pageSize.value=t.pageSize),Object.assign(r.params,t.fixedParams);let p=!1;a&&Object.keys(a).forEach(b=>{if(a[b]){if(b.startsWith("f\\")){const g=b.substring(2);r.params[g]=a[b],t.fixedParams?.[g]!==a[b]&&(p=!0);return}if(b==="sort"){if(r.params.sort=a.sort,typeof a.sort=="string"&&t.resultMeta?.sort?.length===1){const{field:g,order:S}=t.resultMeta.sort[0];if((S?g:`-${g}`)===a.sort)return}p=!0;return}if(b==="p"){const g=parseInt(String(a.p),10);if(g>=1){if(r.pageNumber.value=g,t.resultMeta?.limit){const{offset:S,limit:x}=t.resultMeta;if((S?Math.ceil(S/x):1)===g)return}p=!0}}}}),r.wasFetched.value||((t.products||t.resultMeta)&&!p&&r.setResult({result:t.products,meta:t.resultMeta}),(!t.products||p)&&r.fetch().catch(console.error)),r.isWithCount.value=!0,r.isWithBuckets.value=!0;const c=F({count:0,...t.resultMeta||r.meta});D(r.products,()=>{e.splice(0),r.products.forEach(b=>e.push(b)),c.value={count:0,...r.meta}});const d=_(()=>{const{count:b}=r.meta;return!b||e.length<2?1:Math.ceil(b/r.pageSize.value)});D(r.pageNumber,b=>{a&&(a.p=`${b}`),r.fetch()});const l=()=>{D(r.isFetching,b=>{const g=t.showcase?.value;!b&&g&&setTimeout(()=>{xe(g,_e?-25:0)},50)})};r.wasFetched.value?l():$e(r.wasFetched,l);const{activeFilters:o,filtersCount:P}=me({searchEngine:r,fixedParams:t.fixedParams});a&&D(o,b=>{a&&Object.keys(a).forEach(g=>{g.startsWith("f\\")&&delete a[g]}),Object.keys(b).forEach(g=>{const S=b[g];if(typeof S=="string"||typeof S=="number"){a[`f\\${g}`]=`${S}`;return}Array.isArray(S)&&typeof S[0]=="string"&&(a[`f\\${g}`]=S)})});const f=[{value:null,label:ke},{value:"-sales",label:Se},{value:"price",label:we},{value:"-price",label:Le},{value:"-price_discount",label:Fe},{value:"-created_at",label:Re},{value:"name",label:Ce}],y=F(null);return D(y,()=>{r.params.sort=y.value||void 0,r.fetch()}),a&&(typeof a.sort=="string"&&a.sort&&(y.value=a.sort),D(r.params,b=>{delete a.sort,b.sort&&(a.sort=String(b.sort))})),{searchEngine:r,fetching:r.fetching.value,isFetching:r.isFetching,products:e,resultMeta:c,totalPages:d,activeFilters:o,filtersCount:P,sortOptions:f,sortOption:y}},bt=t=>{const s=_(()=>t.totalPages?t.totalPages:t.totalItems&&t.pageSize?Math.ceil(t.totalItems/t.pageSize):1),i=_(()=>{const f=t.page||1;return f<1?1:f>s.value?s.value:f}),a=_(()=>t.maxPages||10),e=_(()=>{if(s.value<=a.value)return 1;const f=Math.floor(a.value/2),y=Math.ceil(a.value/2)-1;return i.value<=f?1:i.value+y>=s.value?s.value-a.value+1:i.value-f}),r=_(()=>{if(s.value<=a.value)return s.value;const f=Math.floor(a.value/2),y=Math.ceil(a.value/2)-1;return i.value<=f?a.value:i.value+y>=s.value?s.value:i.value+y}),p=_(()=>Array.from(Array(r.value+1-e.value).keys()).map(f=>e.value+f)),c=F("");D(Ue(t.isUrlPath),()=>{const f=new URL(window.location.toString());t.isUrlPath&&!f.pathname.endsWith("/")?f.pathname+="/":f.searchParams.delete("p"),c.value=`${f.pathname}${f.search}`},{immediate:!0});const d=f=>t.isUrlPath?`../${f}`:`?p=${f}`,l=_(()=>p.value.map(f=>c.value+d(f))),o=_(()=>i.value<=1?null:c.value+d(i.value-1)),P=_(()=>i.value>=s.value?null:c.value+d(i.value+1));return{totalPages:s,startPage:e,endPage:r,pages:p,pageLinks:l,prevPageLink:o,nextPageLink:P}},ht=z({__name:"Pagination",props:{totalItems:{},totalPages:{},page:{default:1},pageSize:{},maxPages:{default:7},isUrlPath:{type:Boolean,default:!1}},emits:["update:page"],setup(t,{expose:s,emit:i}){s();const a=t,e=i,{pages:r,pageLinks:p,prevPageLink:c,nextPageLink:d}=bt(a),l={props:a,emit:e,pages:r,pageLinks:p,prevPageLink:c,nextPageLink:d};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),gt={class:"text-base-900 flex justify-center gap-1.5 text-center text-sm font-medium leading-9"},xt=h("i",{class:"i-arrow-right rotate-180"},null,-1),_t=h("span",{class:"ml-1.5 hidden md:inline"},L("Anterior"),-1),yt=h("span",{class:"mr-1.5 hidden md:inline"},L("Próximo"),-1),Ot=h("i",{class:"i-arrow-right"},null,-1);function Pt(t,s,i,a,e,r){const p=se("ALink");return k(),w("ol",gt,[h("li",null,[T(p,{href:a.prevPageLink,onClick:s[0]||(s[0]=te(c=>a.prevPageLink&&a.emit("update:page",i.page-1),["prevent"])),class:q(["mr-1 block min-w-9 rounded border px-3",a.prevPageLink?"border-base-100 hover:bg-base-100":"border-transparent text-base-500"])},{default:E(()=>[xt,_t]),_:1},8,["href","class"])]),(k(!0),w(I,null,Q(a.pages,(c,d)=>(k(),w("li",{key:c},[T(p,{href:c!==i.page?a.pageLinks[d]:null,onClick:te(l=>a.emit("update:page",c),["prevent"]),class:q(["block w-9 rounded border ring-black/10",c===i.page?"bg-base-50 border-base-100 ring text-base-700":"border-transparent hover:bg-base-100"])},{default:E(()=>[V(L(c),1)]),_:2},1032,["href","onClick","class"])]))),128)),h("li",null,[T(p,{href:a.nextPageLink,onClick:s[1]||(s[1]=te(c=>a.nextPageLink&&a.emit("update:page",i.page+1),["prevent"])),class:q(["ml-1 block min-w-9 rounded border px-3",a.nextPageLink?"border-base-100 hover:bg-base-100":"border-transparent text-base-500"])},{default:E(()=>[yt,Ot]),_:1},8,["href","class"])])])}const kt=Y(ht,[["render",Pt]]),St=z({__name:"Collapse",props:{title:{}},setup(t,{expose:s}){s();const i={};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),wt={class:"group my-4 md:my-5 [&_i]:open:-rotate-90"},Lt={role:"button",class:"text-base-700 hover:text-base-800 [&>i]:hover:text-primary list-none text-2xl font-medium lowercase group-open:mb-3"},Ft=h("i",{class:"i-chevron-right mr-1 rotate-90"},null,-1);function Rt(t,s,i,a,e,r){return k(),w("details",wt,[h("summary",Lt,[Ft,h("span",null,L(i.title),1)]),Ve(t.$slots,"default")])}const Ct=Y(St,[["render",Rt]]),Et=z({__name:"SearchFilters",props:{searchEngine:{},fixedParams:{}},setup(t,{expose:s}){s();const i=t,{resultBuckets:a,activeFilters:e,filtersCount:r,clearFilters:p,priceRanges:c,priceRangeKey:d,getPriceRangeLabel:l,filterOptions:o,checkFilterOption:P,toggleFilterOption:f}=vt(i),y={props:i,resultBuckets:a,activeFilters:e,filtersCount:r,clearFilters:p,priceRanges:c,priceRangeKey:d,getPriceRangeLabel:l,filterOptions:o,checkFilterOption:P,toggleFilterOption:f,Collapse:Ct};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}}),Tt={class:"bg-base-50/40 h-screen overflow-y-auto"},Mt={class:"px-6 pb-3 pt-5 text-center"},At=h("i",{class:"i-trash ml-0.5"},null,-1),Bt={key:1,class:"text-base-500 border border-transparent pb-1 text-base font-semibold"},Dt={key:0,class:"px-6 pb-3"},jt={class:"space-y-1.5"},Ut=["id","value"],Vt=["for"],It={class:"text-base-500 font-medium"},$t={key:0,class:"flex items-center"},zt=h("label",{for:"priceRange-null",class:"cursor-pointer px-3 text-sm"},L("Qualquer preço"),-1),Nt={class:"space-y-1.5"},Kt=["id","value","checked","onChange"],Wt=["for"],qt={class:"text-base-500 font-medium"};function Qt(t,s,i,a,e,r){return k(),w("aside",Tt,[h("header",Mt,[a.filtersCount?(k(),w("button",{key:0,class:"ui-btn-sm ui-btn-danger py-1",onClick:s[0]||(s[0]=(...p)=>a.clearFilters&&a.clearFilters(...p))},[V(L("Limpar filtros")+" "),At])):(k(),w("p",Bt,L("Filtrar resultados")))]),a.resultBuckets?(k(),w("article",Dt,[a.priceRanges?(k(),G(a.Collapse,{key:0,title:"Preço",class:"[&>summary]:text-xl",open:""},{default:E(()=>[h("div",jt,[(k(!0),w(I,null,Q(a.priceRanges,({range:p,key:c})=>(k(),w("div",{key:`prices-${c}`,class:"flex items-center"},[ne(h("input",{type:"radio",id:`priceRange-${c}`,name:"priceRange",value:c,"onUpdate:modelValue":s[1]||(s[1]=d=>a.priceRangeKey=d)},null,8,Ut),[[le,a.priceRangeKey]]),h("label",{for:`priceRange-${c}`,class:"cursor-pointer px-3 text-sm"},[V(L(a.getPriceRangeLabel(p))+" ",1),h("small",It," ("+L(p.count)+") ",1)],8,Vt)]))),128)),a.activeFilters["price<"]||a.activeFilters["price>"]?(k(),w("div",$t,[ne(h("input",{type:"radio",id:"priceRange-null",name:"priceRange",value:null,"onUpdate:modelValue":s[2]||(s[2]=p=>a.priceRangeKey=p)},null,512),[[le,a.priceRangeKey]]),zt])):U("",!0)])]),_:1})):U("",!0),(k(!0),w(I,null,Q(a.filterOptions,({title:p,options:c,field:d})=>(k(),G(a.Collapse,{key:d,title:p,class:"[&>summary]:text-xl",open:!!a.activeFilters[d]},{default:E(()=>[h("div",Nt,[(k(!0),w(I,null,Q(c,(l,o,P)=>(k(),w("div",{key:`${d}-${P}`,class:"flex items-center"},[h("input",{type:"checkbox",id:`${d}-${o}`,value:o,checked:a.checkFilterOption(d,o),onChange:f=>a.toggleFilterOption(d,o)},null,40,Kt),h("label",{for:`${d}-${o}`,class:"cursor-pointer px-3 text-sm"},[V(L(o)+" ",1),h("small",qt," ("+L(l)+") ",1)],8,Wt)]))),128))])]),_:2},1032,["title","open"]))),128))])):U("",!0)])}const Ht=Y(Et,[["render",Qt]]),Gt=z({__name:"SearchShowcase",props:{term:{},pageSize:{},fixedParams:{},products:{},resultMeta:{},ssrError:{},canUseUrlParams:{type:Boolean,default:!0},showcase:{}},async setup(t,{expose:s}){s();const i=t,a=F(null),{searchEngine:e,fetching:r,isFetching:p,products:c,resultMeta:d,totalPages:l,filtersCount:o,sortOptions:P,sortOption:f}=mt({...i,showcase:a}),y=_(()=>e.wasFetched.value),b=_(()=>e.term.value),g=_(()=>y&&!!(d.value.count>4||o.value)),S=F(!1),x={props:i,showcase:a,searchEngine:e,fetching:r,isFetching:p,products:c,resultMeta:d,totalPages:l,filtersCount:o,sortOptions:P,sortOption:f,wasFetched:y,searchTerm:b,hasFiltersBar:g,isFiltersOpen:S,get Listbox(){return ct},get ListboxButton(){return dt},get ListboxOptions(){return pt},get ListboxOption(){return ft},Drawer:st,Pagination:kt,ProductShelf:Ee,SearchFilters:Ht};return Object.defineProperty(x,"__isScriptSetup",{enumerable:!1,value:!0}),x}}),Xt={class:"text-base-800 inline font-bold italic"},Yt={key:1,class:"ui-section relative min-h-[300px]"},Zt={ref:"showcase",class:"relative"},Jt={key:0,class:"to-base-100 ui-section-slim sticky-header:translate-y-16 lg:sticky-header:translate-y-14 sticky top-0 z-[12] flex items-center justify-between rounded-b bg-white/80 px-6 py-4 shadow-sm backdrop-blur-sm transition-transform"},ea={class:"text-base-700 font-medium lowercase"},ta=h("span",{class:"hidden lg:inline"},L("Itens encontrados"),-1),aa=h("span",{class:"lg:hidden"},L("Produtos"),-1),sa={class:"flex items-center gap-4"},na=h("span",{class:"hidden text-xl leading-none md:block"},[h("i",{class:"text-base-600 i-adjustments-horizontal m-0"})],-1),ra=h("span",{class:"hidden md:inline"},L("Filtrar produtos"),-1),la=h("span",{class:"md:hidden"},[h("i",{class:"i-adjustments-horizontal mr-1"}),V(" "+L("Filtrar"))],-1),oa={key:0,class:"outline-3 outline-secondary/80 ui-badge-pill-sm absolute -right-1.5 -top-1 outline"},ia={class:"w-5"},ua={class:"i-check"},ca={key:0,class:"mt-3 lg:mt-4"},da={key:0,class:"absolute left-0 top-0 z-[14] size-full bg-white/40"};function pa(t,s,i,a,e,r){const p=se("Skeleton"),c=se("Fade");return k(),w(I,null,[a.searchTerm?(k(),w("section",{key:0,class:q(["text-base-700 ui-section-slim px-6 text-center text-xl lowercase",a.hasFiltersBar?"relative z-[14] -mb-4":"mb-0"])},[V(L("Buscando por")+" "),h("h1",Xt,L(a.searchTerm),1)],2)):U("",!0),a.isFetching&&!a.products.length?(k(),w("div",Yt,[T(p,{class:"absolute top-0 w-full px-5","is-bold":"","is-large":""})])):U("",!0),h("article",Zt,[T(c,null,{default:E(()=>[a.hasFiltersBar?(k(),w("section",Jt,[h("strong",ea,[a.resultMeta.count>1?(k(),w(I,{key:0},[V(L(a.resultMeta.count)+" ",1),ta,aa],64)):U("",!0)]),h("div",sa,[na,h("button",{onClick:s[0]||(s[0]=d=>a.isFiltersOpen=!a.isFiltersOpen),class:"ui-btn-sm ui-btn-secondary relative"},[ra,la,a.filtersCount?(k(),w("span",oa,L(a.filtersCount),1)):U("",!0)]),T(a.Listbox,{modelValue:a.sortOption,"onUpdate:modelValue":s[1]||(s[1]=d=>a.sortOption=d),as:"div",class:"text-base-800 relative text-sm"},{default:E(()=>[T(a.ListboxButton,{class:"ui-btn-sm ui-btn-secondary"},{default:E(()=>[V(L("Ordenar"))]),_:1}),T(c,null,{default:E(()=>[T(a.ListboxOptions,{class:"divide-base-100 absolute right-0 mt-2 divide-y rounded bg-white shadow ring-1 ring-black/5 focus:outline-none"},{default:E(()=>[(k(!0),w(I,null,Q(a.sortOptions,({label:d,value:l})=>(k(),G(a.ListboxOption,{key:l||"sort",value:l,as:"template"},{default:E(({selected:o,active:P})=>[h("li",null,[(k(),G(Ie(o?"div":"button"),{class:q(["flex w-full py-2 pl-3 pr-6",!o&&P&&"bg-secondary-100 text-secondary"])},{default:E(()=>[h("div",ia,[ne(h("i",ua,null,512),[[he,o]])]),V(" "+L(d),1)]),_:2},1032,["class"]))])]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])])])):U("",!0)]),_:1}),T(a.ProductShelf,{products:a.products,"is-grid":""},{append:E(()=>[T(c,{slide:"down"},{default:E(()=>[!a.isFetching&&a.totalPages>1?(k(),w("nav",ca,[T(a.Pagination,{page:a.searchEngine.pageNumber.value,"onUpdate:page":s[2]||(s[2]=d=>a.searchEngine.pageNumber.value=d),"total-pages":a.totalPages},null,8,["page","total-pages"])])):U("",!0)]),_:1})]),_:1},8,["products"]),T(c,null,{default:E(()=>[a.isFetching?(k(),w("div",da)):U("",!0)]),_:1})],512),T(a.Drawer,{modelValue:a.isFiltersOpen,"onUpdate:modelValue":s[3]||(s[3]=d=>a.isFiltersOpen=d),placement:"end","backdrop-target":null,"can-lock-scroll":!1,class:"!z-[80] bg-white shadow [&_[data-drawer-close]]:bg-white/80"},{default:E(()=>[T(a.SearchFilters,{"search-engine":a.searchEngine},null,8,["search-engine"])]),_:1},8,["modelValue"])],64)}const Ma=Y(Gt,[["render",pa]]);export{Ma as default};
@@ -1,7 +0,0 @@
1
- import{e as Ee,a as Ae,d as Le,l as $e,_ as ke}from"./customer-session.TRPGDX3c.js";import{_ as G,w as he,v as Xe,a as Je}from"./_plugin-vue_export-helper.SO-0jCqa.js";import{b as se,d as et,g as tt,e as be}from"./sf-utils.luvTU5uS.js";import{t as nt}from"./shopping-cart.ATTXCPd0.js";import{a as at,o as ot}from"./index.R7A-Pg5V.js";import{j as rt,h as lt,p as st,u as it,g as we}from"./index.q6KIyKlJ.js";import{a as S,c as I,w as ae,H as re,d as D,E as ee,N as b,O as C,Z as oe,$ as R,T as $,a0 as ut,M as Y,V as T,U as E,R as d,Q as H,P as L,X as V,Y as K,S as Q,aa as le,k as W,a4 as ie,a5 as fe,a9 as _e,a3 as Ne,a2 as Re,a7 as Pe,a1 as Me,a8 as ct,ae as dt,W as Te,ad as Ie,af as Oe}from"./runtime-core.esm-bundler.XTSAdOlw.js";import{k as ue,m as pt,n as vt,s as de,b as pe,o as p,w as Fe,a as De,h as Be,t as He,u as te,i as X,A as ne,d as Z,e as Ue,l as Ve,N as ve,p as ft,g as mt,f as gt,c as U,j as A,v as ht,q as j,_ as je,O as bt,r as ye,P as J,x as ge,D as _t}from"./use-text-value.XE_A2nDM.js";import"./price.Easct8WC.js";const yt=n=>{const{header:a,canSetStyles:o,canCreateHeightDiv:e,isShownOnScrollDown:t,isShownOnMobile:r}={canSetStyles:!0,canCreateHeightDiv:!0,...n},{ready:s,start:u}=rt(100,{controls:!0,immediate:!1}),i=S(0),c=S(0);let l;const x=r||!se&&!et,{y:_}=x?at(document):{y:S(0)},m=S(0);lt(_,h=>{m.value=h},{debounce:se?100:50,maxWait:se?800:400});const k=I(()=>s.value&&m.value>c.value*1.2),v=S("none");ae(k,async h=>{o&&a.value&&(a.value.style.position=h?"fixed":"",a.value.style.width=h?"100vw":""),l&&(l.style.height=h?`${i.value}px`:""),h?(await st(300),v.value="opacity var(--transition-slow), transform var(--transition)"):(u(),v.value="none")});const y=S(!1);return ae(m,(h,P)=>{y.value=h>0&&h<P}),re(()=>{if(!a.value)throw new Error("<header> (props.header) not set");const h=()=>{const M=a.value;i.value=M.offsetHeight,c.value=i.value+window.scrollY+M.getBoundingClientRect().top,u()},P=a.value.getElementsByTagName("IMG");let g=!0;for(let M=0;M<P.length;M++){const f=P[M];(!f.complete||f.naturalHeight===0)&&(g=!1,f.onload=h)}g&&h(),window.addEventListener("resize",it(h,300)),o&&(a.value.style.willChange="transform",ae([k,y],([M,f])=>{let w="",O="";M&&(!f||t)&&(w="0",O="translateY(-100%)");const N=a.value;N.style.opacity=w,N.style.transform=O;const z=M&&!w?"add":"remove";document.body.classList[z]("StickyHeader")}),ae(v,M=>{a.value.style.transition=M})),e&&(l=document.createElement("div"),a.value.parentElement?.insertBefore(l,a.value))}),{staticHeight:i,staticY:c,isSticky:k,isScrollUp:y,transition:v}},St=(n,a)=>{const o=n.filter(({name:e,slug:t,parent:r})=>e&&t&&!r);return a?.length&&o.sort((e,t)=>{const r=a.indexOf(e.slug),s=a.indexOf(t.slug);return r>-1?s===-1||r<s?-1:1:s>-1?1:0}),o},xt=(n,a,o=!1)=>{const e=n.filter(({name:t,slug:r,parent:s})=>t&&r&&s?s._id&&s._id===a._id||s.slug&&s.slug===a.slug:!1);return o&&e.sort((t,r)=>t.name<r.name?-1:1),e},kt=n=>{const{header:a,searchInput:o,categories:e=globalThis.$storefront.data.categories||[],menuCategorySlugs:t,menuRandomCategories:r=7,isAlphabeticalSortSubmenu:s}=n,{isSticky:u,staticHeight:i,staticY:c}=yt({header:a}),l=I(()=>u.value?a.value?.offsetHeight:c.value),x=St(e,t),_=F=>xt(e,F,!!s),m=F=>({...F,subcategories:_(F).map(B=>m(B))}),k=x.map(m);let v=0;const y=k.filter(({slug:F})=>t?.includes(F)?!0:v<r?(v+=1,!0):!1),h=S(!1),P=S(!1);we(h,()=>{P.value=!0});const g=S(""),M=/^\/s\/?/.test(window.location.pathname);let f;if(M){const{pathname:F,search:B}=window.location;f=new URLSearchParams(B).get("q"),!f&&F.startsWith("/s/")&&(f=decodeURIComponent(F.split("/")[2]))}typeof f=="string"&&(g.value=f);const w=I(()=>g.value&&g.value.length>=2&&g.value!==f?g.value:""),O=F=>{if(F.preventDefault(),h.value&&g.value){window.location.href=tt(g.value);return}h.value=!h.value,h.value&&o&&setTimeout(()=>{if(!o.value)return;const{length:B}=g.value;o.value.setSelectionRange(B,B),o.value.focus()},50)},N=S(!1),z=S(!1);we(N,()=>{z.value=!0});const ce=S(0);return{isSticky:u,staticHeight:i,staticY:c,positionY:l,mainCategories:x,getSubcategories:_,getCategoryTree:m,categoryTrees:k,inlineMenuTrees:y,isSearchOpen:h,isSearchOpenOnce:P,searchTerm:g,quickSearchTerm:w,toggleSearch:O,isCartOpen:N,isCartOpenOnce:z,cartTotalItems:ce,handleOnMounted:()=>{ae(nt,(F,B)=>{typeof B=="number"&&(B<F?N.value=!0:B&&!F&&(N.value=!1)),ce.value=F},{immediate:!0})}}},wt=D({__name:"AccountLink",props:{to:{},accountUrl:{default:globalThis.$storefront?.settings.accountUrl||"/app/account"},returnUrl:{},isSignUp:{type:Boolean}},setup(n,{expose:a}){a();const o=n,e=S("");globalThis.location?.href&&ee(()=>{e.value=globalThis.location.href});const t=I(()=>{let s=o.accountUrl;const u=o.returnUrl||e.value;if(!o.to)return o.isSignUp?s+="?sign_up&":s+="?",u?`${s}return_url=${u}`:s;const{settings:i}=globalThis.$storefront;return o.to==="orders"&&i.ordersUrl?i.ordersUrl:o.to==="favorites"&&i.favoritesUrl?i.favoritesUrl:`${s}/${o.to}`}),r={props:o,locationUrl:e,href:t};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),Pt=["href"];function Mt(n,a,o,e,t,r){return b(),C("a",{href:e.href},[oe(n.$slots,"default")],8,Pt)}const ze=G(wt,[["render",Mt]]),Tt=D({__name:"SocialNetworkIcon",props:{as:{default:"i"},network:{}},setup(n,{expose:a}){a();const o=n,e=I(()=>{switch(o.network){case"facebook":return"i-facebook";case"instagram":return"i-instagram";case"whatsapp":return"i-whatsapp";case"youtube":return"i-youtube";case"pinterest":return"i-pinterest";case"tiktok":return"i-tiktok";case"twitter":return"i-twitter";case"threads":return"i-threads";default:return""}}),t={props:o,iconClassName:e};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}});function It(n,a,o,e,t,r){return b(),R(ut(o.as),{class:$(e.iconClassName)},null,8,["class"])}const Ot=G(Tt,[["render",It]]),Ct=D({__name:"SocialNetworkLink",props:{network:{},href:{},message:{}},setup(n,{expose:a}){a();const o=n,e=I(()=>{let r=o.href||be[o.network]||"";if(o.network==="whatsapp"){const s=r.replace(/[^+\d]/g,"");r=`https://${se?"api":"web"}.whatsapp.com/send?phone=`+encodeURIComponent(s.charAt(0)==="+"?s:`+55${s}`),o.message&&(r+=`&text=${encodeURIComponent(o.message)}`)}return r}),t={props:o,fixedHref:e,SocialNetworkIcon:Ot};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}});function Et(n,a,o,e,t,r){const s=Y("ALink");return b(),R(s,{href:e.fixedHref},{default:T(()=>[oe(n.$slots,"default",{},()=>[E(e.SocialNetworkIcon,{network:o.network},null,8,["network"]),oe(n.$slots,"append")])]),_:3},8,["href"])}const qe=G(Ct,[["render",Et]]),At=D({__name:"ShopSidenavCategory",props:{categoryTree:{}},setup(n,{expose:a}){a();const o=S(!1),e=S(!0);ae(o,r=>{r?setTimeout(()=>{e.value=!1},25):e.value=!0});const t={isOpen:o,isFaded:e};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}}),Lt={class:"text-base-800 text-lg"},$t=["href"],Nt=["href"],Rt={class:"inline"};function Ft(n,a,o,e,t,r){const s=Y("AImg"),u=Y("ShopSidenavCategory",!0);return b(),C("li",Lt,[o.categoryTree.subcategories.length?(b(),C("details",{key:0,class:"z-10 overflow-y-auto overflow-x-hidden bg-white open:absolute open:left-0 open:top-0 open:size-full",onToggle:a[0]||(a[0]=i=>e.isOpen=!e.isOpen)},[d("summary",{class:$(["active:bg-base-100 cursor-pointer list-none px-6 py-3 transition-colors",e.isOpen?"bg-base-100":null])},[d("i",{class:$(e.isOpen?"i-arrow-right rotate-180 text-lg":"i-arrow-right float-right mb-0 mt-1 text-xl text-base-500")},null,2),!e.isOpen&&o.categoryTree.icon?(b(),R(s,{key:0,picture:o.categoryTree.icon,alt:o.categoryTree.name,class:"mr-3 inline h-5 w-auto"},null,8,["picture","alt"])):H("",!0),d("h3",{class:$(["inline",e.isOpen?"ml-4 text-base":null])},L(o.categoryTree.name),3)],2),d("ul",{class:$(["mt-2 transition-opacity",e.isFaded?"opacity-20":"opacity-100"]),tabindex:"-1"},[(b(!0),C(V,null,K(o.categoryTree.subcategories,(i,c)=>(b(),R(u,{key:c,"category-tree":i},null,8,["category-tree"]))),128)),d("li",null,[d("a",{href:`/${o.categoryTree.slug}`,class:"active:bg-base-200 block px-6 py-3 text-base underline"},L("Ver toda a categoria $1".replace("$1",o.categoryTree.name)),9,$t)])],2)],32)):(b(),C("a",{key:1,href:`/${o.categoryTree.slug}`,class:"active:bg-base-200 block px-6 py-3"},[!e.isOpen&&o.categoryTree.icon?(b(),R(s,{key:0,picture:o.categoryTree.icon,alt:o.categoryTree.name,class:"mr-3 inline h-5 w-auto"},null,8,["picture","alt"])):H("",!0),d("h3",Rt,L(o.categoryTree.name),1)],8,Nt))])}const Dt=G(At,[["render",Ft]]),Bt=D({__name:"ShopSidenav",props:{categoryTrees:{}},setup(n,{expose:a}){a(),re(()=>Ee());const o={get customerName(){return Ae},get isLogged(){return Le},get logout(){return $e},get socialNetworks(){return be},AccountLink:ze,SocialNetworkLink:qe,ShopSidenavCategory:Dt};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),Ht={class:"flex h-full flex-col bg-white"},Ut={class:"grow py-4"},Vt={class:"relative h-full"},jt={class:"text-base"},zt={class:"bg-base-100 flex items-center px-2 py-4"},qt=d("i",{class:"text-base-500 i-user-circle m-0 text-4xl"},null,-1),Kt={class:"leading-tight"},Wt=d("small",{class:"text-primary block font-semibold lowercase"},L("Meus pedidos")+", "+L("Minha conta"),-1),Yt=d("span",{class:"text-base-600"},L("Sair"),-1),Gt=d("i",{class:"i-arrow-right-on-rectangle ml-1 text-lg"},null,-1),Qt=[Yt,Gt],Zt={class:"bg-base-200 text-base-700 flex gap-3 p-4 text-xl"};function Xt(n,a,o,e,t,r){return b(),C("aside",Ht,[d("nav",Ut,[d("ul",Vt,[(b(!0),C(V,null,K(o.categoryTrees,(s,u)=>(b(),R(e.ShopSidenavCategory,{key:u,"category-tree":s},null,8,["category-tree"]))),128))])]),d("footer",jt,[d("div",zt,[E(e.AccountLink,{class:"flex grow items-center gap-3 p-2"},{default:T(()=>[qt,d("span",Kt,[Q(L(`Olá ${e.customerName||"Visitante"}`)+" ",1),Wt])]),_:1}),e.isLogged?(b(),C("button",{key:0,onClick:a[0]||(a[0]=(...s)=>e.logout&&e.logout(...s)),class:"text-base-800 p-2 text-right"},Qt)):H("",!0)]),d("ul",Zt,[(b(!0),C(V,null,K(e.socialNetworks,(s,u)=>(b(),C("li",{key:u},[E(e.SocialNetworkLink,{network:u,class:"active:text-primary p-1"},null,8,["network"])]))),128))])])])}const Jt=G(Bt,[["render",Xt]]);function en({container:n,accept:a,walk:o,enabled:e}){le(()=>{let t=n.value;if(!t||e!==void 0&&!e.value)return;let r=ue(n);if(!r)return;let s=Object.assign(i=>a(i),{acceptNode:a}),u=r.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;u.nextNode();)o(u.currentNode)})}function tn(n,a,o,e){pt.isServer||le(t=>{n=n??window,n.addEventListener(a,o,e),t(()=>n.removeEventListener(a,o,e))})}var q=(n=>(n[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n))(q||{});function Ke(){let n=S(0);return vt("keydown",a=>{a.key==="Tab"&&(n.value=a.shiftKey?1:0)}),n}function nn({defaultContainers:n=[],portals:a,mainTreeNodeRef:o}={}){let e=S(null),t=ue(e);function r(){var s,u,i;let c=[];for(let l of n)l!==null&&(l instanceof HTMLElement?c.push(l):"value"in l&&l.value instanceof HTMLElement&&c.push(l.value));if(a!=null&&a.value)for(let l of a.value)c.push(l);for(let l of(s=t?.querySelectorAll("html > *, body > *"))!=null?s:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(l.contains(p(e))||l.contains((i=(u=p(e))==null?void 0:u.getRootNode())==null?void 0:i.host)||c.some(x=>l.contains(x))||c.push(l));return c}return{resolveContainers:r,contains(s){return r().some(u=>u.contains(s))},mainTreeNodeRef:e,MainTreeNode(){return o!=null?null:W(pe,{features:de.Hidden,ref:e})}}}let Ce=Symbol("PortalParentContext");function an(){let n=ie(Ce,null),a=S([]);function o(r){return a.value.push(r),n&&n.register(r),()=>e(r)}function e(r){let s=a.value.indexOf(r);s!==-1&&a.value.splice(s,1),n&&n.unregister(r)}let t={register:o,unregister:e,portals:a};return[a,D({name:"PortalWrapper",setup(r,{slots:s}){return fe(Ce,t),()=>{var u;return(u=s.default)==null?void 0:u.call(s)}}})]}var on=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(on||{}),rn=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(rn||{});function ln(n){requestAnimationFrame(()=>requestAnimationFrame(n))}let We=Symbol("MenuContext");function me(n){let a=ie(We,null);if(a===null){let o=new Error(`<${n} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,me),o}return a}let sn=D({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(n,{slots:a,attrs:o}){let e=S(1),t=S(null),r=S(null),s=S([]),u=S(""),i=S(null),c=S(1);function l(_=m=>m){let m=i.value!==null?s.value[i.value]:null,k=bt(_(s.value.slice()),y=>p(y.dataRef.domRef)),v=m?k.indexOf(m):null;return v===-1&&(v=null),{items:k,activeItemIndex:v}}let x={menuState:e,buttonRef:t,itemsRef:r,items:s,searchQuery:u,activeItemIndex:i,activationTrigger:c,closeMenu:()=>{e.value=1,i.value=null},openMenu:()=>e.value=0,goToItem(_,m,k){let v=l(),y=gt(_===U.Specific?{focus:U.Specific,id:m}:{focus:_},{resolveItems:()=>v.items,resolveActiveIndex:()=>v.activeItemIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.disabled});u.value="",i.value=y,c.value=k??1,s.value=v.items},search(_){let m=u.value!==""?0:1;u.value+=_.toLowerCase();let k=(i.value!==null?s.value.slice(i.value+m).concat(s.value.slice(0,i.value+m)):s.value).find(y=>y.dataRef.textValue.startsWith(u.value)&&!y.dataRef.disabled),v=k?s.value.indexOf(k):-1;v===-1||v===i.value||(i.value=v,c.value=1)},clearSearch(){u.value=""},registerItem(_,m){let k=l(v=>[...v,{id:_,dataRef:m}]);s.value=k.items,i.value=k.activeItemIndex,c.value=1},unregisterItem(_){let m=l(k=>{let v=k.findIndex(y=>y.id===_);return v!==-1&&k.splice(v,1),k});s.value=m.items,i.value=m.activeItemIndex,c.value=1}};return Fe([t,r],(_,m)=>{var k;x.closeMenu(),De(m,Be.Loose)||(_.preventDefault(),(k=p(t))==null||k.focus())},I(()=>e.value===0)),fe(We,x),He(I(()=>te(e.value,{0:X.Open,1:X.Closed}))),()=>{let _={open:e.value===0,close:x.closeMenu};return ne({ourProps:{},theirProps:n,slot:_,slots:a,attrs:o,name:"Menu"})}}}),un=D({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:()=>`headlessui-menu-button-${Z()}`}},setup(n,{attrs:a,slots:o,expose:e}){let t=me("MenuButton");e({el:t.buttonRef,$el:t.buttonRef});function r(c){switch(c.key){case A.Space:case A.Enter:case A.ArrowDown:c.preventDefault(),c.stopPropagation(),t.openMenu(),ee(()=>{var l;(l=p(t.itemsRef))==null||l.focus({preventScroll:!0}),t.goToItem(U.First)});break;case A.ArrowUp:c.preventDefault(),c.stopPropagation(),t.openMenu(),ee(()=>{var l;(l=p(t.itemsRef))==null||l.focus({preventScroll:!0}),t.goToItem(U.Last)});break}}function s(c){switch(c.key){case A.Space:c.preventDefault();break}}function u(c){n.disabled||(t.menuState.value===0?(t.closeMenu(),ee(()=>{var l;return(l=p(t.buttonRef))==null?void 0:l.focus({preventScroll:!0})})):(c.preventDefault(),t.openMenu(),ln(()=>{var l;return(l=p(t.itemsRef))==null?void 0:l.focus({preventScroll:!0})})))}let i=Ue(I(()=>({as:n.as,type:a.type})),t.buttonRef);return()=>{var c;let l={open:t.menuState.value===0},{id:x,..._}=n,m={ref:t.buttonRef,id:x,type:i.value,"aria-haspopup":"menu","aria-controls":(c=p(t.itemsRef))==null?void 0:c.id,"aria-expanded":t.menuState.value===0,onKeydown:r,onKeyup:s,onClick:u};return ne({ourProps:m,theirProps:_,slot:l,attrs:a,slots:o,name:"MenuButton"})}}}),cn=D({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-menu-items-${Z()}`}},setup(n,{attrs:a,slots:o,expose:e}){let t=me("MenuItems"),r=S(null);e({el:t.itemsRef,$el:t.itemsRef}),en({container:I(()=>p(t.itemsRef)),enabled:I(()=>t.menuState.value===0),accept(l){return l.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:l.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(l){l.setAttribute("role","none")}});function s(l){var x;switch(r.value&&clearTimeout(r.value),l.key){case A.Space:if(t.searchQuery.value!=="")return l.preventDefault(),l.stopPropagation(),t.search(l.key);case A.Enter:if(l.preventDefault(),l.stopPropagation(),t.activeItemIndex.value!==null){let _=t.items.value[t.activeItemIndex.value];(x=p(_.dataRef.domRef))==null||x.click()}t.closeMenu(),je(p(t.buttonRef));break;case A.ArrowDown:return l.preventDefault(),l.stopPropagation(),t.goToItem(U.Next);case A.ArrowUp:return l.preventDefault(),l.stopPropagation(),t.goToItem(U.Previous);case A.Home:case A.PageUp:return l.preventDefault(),l.stopPropagation(),t.goToItem(U.First);case A.End:case A.PageDown:return l.preventDefault(),l.stopPropagation(),t.goToItem(U.Last);case A.Escape:l.preventDefault(),l.stopPropagation(),t.closeMenu(),ee(()=>{var _;return(_=p(t.buttonRef))==null?void 0:_.focus({preventScroll:!0})});break;case A.Tab:l.preventDefault(),l.stopPropagation(),t.closeMenu(),ee(()=>ht(p(t.buttonRef),l.shiftKey?j.Previous:j.Next));break;default:l.key.length===1&&(t.search(l.key),r.value=setTimeout(()=>t.clearSearch(),350));break}}function u(l){switch(l.key){case A.Space:l.preventDefault();break}}let i=Ve(),c=I(()=>i!==null?(i.value&X.Open)===X.Open:t.menuState.value===0);return()=>{var l,x;let _={open:t.menuState.value===0},{id:m,...k}=n,v={"aria-activedescendant":t.activeItemIndex.value===null||(l=t.items.value[t.activeItemIndex.value])==null?void 0:l.id,"aria-labelledby":(x=p(t.buttonRef))==null?void 0:x.id,id:m,onKeydown:s,onKeyup:u,role:"menu",tabIndex:0,ref:t.itemsRef};return ne({ourProps:v,theirProps:k,slot:_,attrs:a,slots:o,features:ve.RenderStrategy|ve.Static,visible:c.value,name:"MenuItems"})}}}),dn=D({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-menu-item-${Z()}`}},setup(n,{slots:a,attrs:o,expose:e}){let t=me("MenuItem"),r=S(null);e({el:r,$el:r});let s=I(()=>t.activeItemIndex.value!==null?t.items.value[t.activeItemIndex.value].id===n.id:!1),u=ft(r),i=I(()=>({disabled:n.disabled,get textValue(){return u()},domRef:r}));re(()=>t.registerItem(n.id,i)),_e(()=>t.unregisterItem(n.id)),le(()=>{t.menuState.value===0&&s.value&&t.activationTrigger.value!==0&&ee(()=>{var v,y;return(y=(v=p(r))==null?void 0:v.scrollIntoView)==null?void 0:y.call(v,{block:"nearest"})})});function c(v){if(n.disabled)return v.preventDefault();t.closeMenu(),je(p(t.buttonRef))}function l(){if(n.disabled)return t.goToItem(U.Nothing);t.goToItem(U.Specific,n.id)}let x=mt();function _(v){x.update(v)}function m(v){x.wasMoved(v)&&(n.disabled||s.value||t.goToItem(U.Specific,n.id,0))}function k(v){x.wasMoved(v)&&(n.disabled||s.value&&t.goToItem(U.Nothing))}return()=>{let{disabled:v}=n,y={active:s.value,disabled:v,close:t.closeMenu},{id:h,...P}=n;return ne({ourProps:{id:h,ref:r,role:"menuitem",tabIndex:v===!0?void 0:-1,"aria-disabled":v===!0?!0:void 0,disabled:void 0,onClick:c,onFocus:l,onPointerenter:_,onMouseenter:_,onPointermove:m,onMousemove:m,onPointerleave:k,onMouseleave:k},theirProps:{...o,...P},slot:y,attrs:o,slots:a,name:"MenuItem"})}}});var pn=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(pn||{});let Ye=Symbol("PopoverContext");function Se(n){let a=ie(Ye,null);if(a===null){let o=new Error(`<${n} /> is missing a parent <${Ze.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Se),o}return a}let vn=Symbol("PopoverGroupContext");function Ge(){return ie(vn,null)}let Qe=Symbol("PopoverPanelContext");function fn(){return ie(Qe,null)}let Ze=D({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(n,{slots:a,attrs:o,expose:e}){var t;let r=S(null);e({el:r,$el:r});let s=S(1),u=S(null),i=S(null),c=S(null),l=S(null),x=I(()=>ue(r)),_=I(()=>{var f,w;if(!p(u)||!p(l))return!1;for(let B of document.querySelectorAll("body > *"))if(Number(B?.contains(p(u)))^Number(B?.contains(p(l))))return!0;let O=ye(),N=O.indexOf(p(u)),z=(N+O.length-1)%O.length,ce=(N+1)%O.length,xe=O[z],F=O[ce];return!((f=p(l))!=null&&f.contains(xe))&&!((w=p(l))!=null&&w.contains(F))}),m={popoverState:s,buttonId:S(null),panelId:S(null),panel:l,button:u,isPortalled:_,beforePanelSentinel:i,afterPanelSentinel:c,togglePopover(){s.value=te(s.value,{0:1,1:0})},closePopover(){s.value!==1&&(s.value=1)},close(f){m.closePopover();let w=f?f instanceof HTMLElement?f:f.value instanceof HTMLElement?p(f):p(m.button):p(m.button);w?.focus()}};fe(Ye,m),He(I(()=>te(s.value,{0:X.Open,1:X.Closed})));let k={buttonId:m.buttonId,panelId:m.panelId,close(){m.closePopover()}},v=Ge(),y=v?.registerPopover,[h,P]=an(),g=nn({mainTreeNodeRef:v?.mainTreeNodeRef,portals:h,defaultContainers:[u,l]});function M(){var f,w,O,N;return(N=v?.isFocusWithinPopoverGroup())!=null?N:((f=x.value)==null?void 0:f.activeElement)&&(((w=p(u))==null?void 0:w.contains(x.value.activeElement))||((O=p(l))==null?void 0:O.contains(x.value.activeElement)))}return le(()=>y?.(k)),tn((t=x.value)==null?void 0:t.defaultView,"focus",f=>{var w,O;f.target!==window&&f.target instanceof HTMLElement&&s.value===0&&(M()||u&&l&&(g.contains(f.target)||(w=p(m.beforePanelSentinel))!=null&&w.contains(f.target)||(O=p(m.afterPanelSentinel))!=null&&O.contains(f.target)||m.closePopover()))},!0),Fe(g.resolveContainers,(f,w)=>{var O;m.closePopover(),De(w,Be.Loose)||(f.preventDefault(),(O=p(u))==null||O.focus())},I(()=>s.value===0)),()=>{let f={open:s.value===0,close:m.close};return W(V,[W(P,{},()=>ne({theirProps:{...n,...o},ourProps:{ref:r},slot:f,slots:a,attrs:o,name:"Popover"})),W(g.MainTreeNode)])}}}),mn=D({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-popover-button-${Z()}`}},inheritAttrs:!1,setup(n,{attrs:a,slots:o,expose:e}){let t=Se("PopoverButton"),r=I(()=>ue(t.button));e({el:t.button,$el:t.button}),re(()=>{t.buttonId.value=n.id}),_e(()=>{t.buttonId.value=null});let s=Ge(),u=s?.closeOthers,i=fn(),c=I(()=>i===null?!1:i.value===t.panelId.value),l=S(null),x=`headlessui-focus-sentinel-${Z()}`;c.value||le(()=>{t.button.value=p(l)});let _=Ue(I(()=>({as:n.as,type:a.type})),l);function m(g){var M,f,w,O,N;if(c.value){if(t.popoverState.value===1)return;switch(g.key){case A.Space:case A.Enter:g.preventDefault(),(f=(M=g.target).click)==null||f.call(M),t.closePopover(),(w=p(t.button))==null||w.focus();break}}else switch(g.key){case A.Space:case A.Enter:g.preventDefault(),g.stopPropagation(),t.popoverState.value===1&&u?.(t.buttonId.value),t.togglePopover();break;case A.Escape:if(t.popoverState.value!==0)return u?.(t.buttonId.value);if(!p(t.button)||(O=r.value)!=null&&O.activeElement&&!((N=p(t.button))!=null&&N.contains(r.value.activeElement)))return;g.preventDefault(),g.stopPropagation(),t.closePopover();break}}function k(g){c.value||g.key===A.Space&&g.preventDefault()}function v(g){var M,f;n.disabled||(c.value?(t.closePopover(),(M=p(t.button))==null||M.focus()):(g.preventDefault(),g.stopPropagation(),t.popoverState.value===1&&u?.(t.buttonId.value),t.togglePopover(),(f=p(t.button))==null||f.focus()))}function y(g){g.preventDefault(),g.stopPropagation()}let h=Ke();function P(){let g=p(t.panel);if(!g)return;function M(){te(h.value,{[q.Forwards]:()=>J(g,j.First),[q.Backwards]:()=>J(g,j.Last)})===ge.Error&&J(ye().filter(f=>f.dataset.headlessuiFocusGuard!=="true"),te(h.value,{[q.Forwards]:j.Next,[q.Backwards]:j.Previous}),{relativeTo:p(t.button)})}M()}return()=>{let g=t.popoverState.value===0,M={open:g},{id:f,...w}=n,O=c.value?{ref:l,type:_.value,onKeydown:m,onClick:v}:{ref:l,id:f,type:_.value,"aria-expanded":t.popoverState.value===0,"aria-controls":p(t.panel)?t.panelId.value:void 0,disabled:n.disabled?!0:void 0,onKeydown:m,onKeyup:k,onClick:v,onMousedown:y};return W(V,[ne({ourProps:O,theirProps:{...a,...w},slot:M,attrs:a,slots:o,name:"PopoverButton"}),g&&!c.value&&t.isPortalled.value&&W(pe,{id:x,features:de.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:P})])}}}),gn=D({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:()=>`headlessui-popover-panel-${Z()}`}},inheritAttrs:!1,setup(n,{attrs:a,slots:o,expose:e}){let{focus:t}=n,r=Se("PopoverPanel"),s=I(()=>ue(r.panel)),u=`headlessui-focus-sentinel-before-${Z()}`,i=`headlessui-focus-sentinel-after-${Z()}`;e({el:r.panel,$el:r.panel}),re(()=>{r.panelId.value=n.id}),_e(()=>{r.panelId.value=null}),fe(Qe,r.panelId),le(()=>{var y,h;if(!t||r.popoverState.value!==0||!r.panel)return;let P=(y=s.value)==null?void 0:y.activeElement;(h=p(r.panel))!=null&&h.contains(P)||J(p(r.panel),j.First)});let c=Ve(),l=I(()=>c!==null?(c.value&X.Open)===X.Open:r.popoverState.value===0);function x(y){var h,P;switch(y.key){case A.Escape:if(r.popoverState.value!==0||!p(r.panel)||s.value&&!((h=p(r.panel))!=null&&h.contains(s.value.activeElement)))return;y.preventDefault(),y.stopPropagation(),r.closePopover(),(P=p(r.button))==null||P.focus();break}}function _(y){var h,P,g,M,f;let w=y.relatedTarget;w&&p(r.panel)&&((h=p(r.panel))!=null&&h.contains(w)||(r.closePopover(),((g=(P=p(r.beforePanelSentinel))==null?void 0:P.contains)!=null&&g.call(P,w)||(f=(M=p(r.afterPanelSentinel))==null?void 0:M.contains)!=null&&f.call(M,w))&&w.focus({preventScroll:!0})))}let m=Ke();function k(){let y=p(r.panel);if(!y)return;function h(){te(m.value,{[q.Forwards]:()=>{var P;J(y,j.First)===ge.Error&&((P=p(r.afterPanelSentinel))==null||P.focus())},[q.Backwards]:()=>{var P;(P=p(r.button))==null||P.focus({preventScroll:!0})}})}h()}function v(){let y=p(r.panel);if(!y)return;function h(){te(m.value,{[q.Forwards]:()=>{let P=p(r.button),g=p(r.panel);if(!P)return;let M=ye(),f=M.indexOf(P),w=M.slice(0,f+1),O=[...M.slice(f+1),...w];for(let N of O.slice())if(N.dataset.headlessuiFocusGuard==="true"||g!=null&&g.contains(N)){let z=O.indexOf(N);z!==-1&&O.splice(z,1)}J(O,j.First,{sorted:!1})},[q.Backwards]:()=>{var P;J(y,j.Previous)===ge.Error&&((P=p(r.button))==null||P.focus())}})}h()}return()=>{let y={open:r.popoverState.value===0,close:r.close},{id:h,focus:P,...g}=n,M={ref:r.panel,id:h,onKeydown:x,onFocusout:t&&r.popoverState.value===0?_:void 0,tabIndex:-1};return ne({ourProps:M,theirProps:{...a,...g},attrs:a,slot:y,slots:{...o,default:(...f)=>{var w;return[W(V,[l.value&&r.isPortalled.value&&W(pe,{id:u,ref:r.beforePanelSentinel,features:de.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:k}),(w=o.default)==null?void 0:w.call(o,...f),l.value&&r.isPortalled.value&&W(pe,{id:i,ref:r.afterPanelSentinel,features:de.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:v})])]}},features:ve.RenderStrategy|ve.Static,visible:l.value,name:"PopoverPanel"})}}});const hn=n=>{const a=I(()=>{const i=n.categoryTree.pictures?.[0];if(i&&!i.alt)return{alt:n.categoryTree.name,...i}}),o=I(()=>n.categoryTree.subcategories.filter(({subcategories:i})=>i.length)),e=I(()=>{let i=o.value.length;return a.value&&(i+=1),o.value.length<n.categoryTree.subcategories.length&&(i+=1),i}),t=I(()=>(n.megaMenuMaxCols||7)>=e.value),r=I(()=>t.value?n.categoryTree.subcategories.filter(({subcategories:i})=>!i.length):n.categoryTree.subcategories),s=I(()=>t.value?n.categoryTree.subcategories.filter(({subcategories:i})=>i.length):n.categoryTree.subcategories),u=I(()=>t.value?e.value:a.value?2:1);return{categoryPicture:a,isMegaMenu:t,subcategoryLinks:r,subcategoryCols:s,countMenuCols:u}},bn=D({__name:"ShopHeaderSubmenu",props:{categoryTree:{},megaMenuMaxCols:{}},setup(n,{expose:a}){a();const o=n,{categoryPicture:e,subcategoryLinks:t,subcategoryCols:r,countMenuCols:s}=hn(o),u=S(null),i=S(null);ot(u,()=>i.value?.click());const c={props:o,categoryPicture:e,subcategoryLinks:t,subcategoryCols:r,countMenuCols:s,panel:u,close:i,get Popover(){return Ze},get PopoverButton(){return mn},get PopoverPanel(){return gn}};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}}),_n=["href"],yn={class:"relative",ref:"panel"},Sn={class:"flex w-full gap-6"},xn={key:0,class:"flex-1"},kn=["href"],wn=["href"],Pn={class:"text-base-600 mb-1.5 mt-1 text-sm"},Mn=["href"],Tn=["href"],In=["onClick"];function On(n,a,o,e,t,r){const s=Y("AImg"),u=Y("Fade");return b(),R(e.Popover,null,{default:T(({open:i})=>[d("a",{href:`/${o.categoryTree.slug}`,role:"button"},[E(e.PopoverButton,{class:"outline-none"},{default:T(()=>[oe(n.$slots,"button",Re(Ne({open:i})))]),_:2},1024)],8,_n),d("div",yn,[E(u,null,{default:T(()=>[E(e.PopoverPanel,{class:$(["text-base-700 absolute left-1/2 top-3 z-50 -translate-x-1/2 !transform rounded bg-white px-6 py-4 text-base shadow",e.countMenuCols===1?"w-60":e.countMenuCols===2?`w-screen ${e.categoryPicture?"max-w-lg":"max-w-sm"}`:e.countMenuCols===3?`w-screen ${e.categoryPicture?"max-w-xl":"max-w-md"}`:e.countMenuCols<6?"w-screen max-w-3xl":"w-screen max-w-5xl"])},{default:T(({close:c})=>[d("div",Sn,[e.subcategoryLinks.length?(b(),C("ul",xn,[(b(!0),C(V,null,K(e.subcategoryLinks,(l,x)=>(b(),C("li",{key:`link-${x}`,class:$(e.subcategoryLinks.length>10?"text-sm mb-1":"mb-2")},[d("a",{href:`/${l.slug}`,class:"hover:text-primary"},[d("h3",null,L(l.name),1)],8,kn)],2))),128))])):H("",!0),(b(!0),C(V,null,K(e.subcategoryCols,(l,x)=>(b(),C("div",{key:x,class:"flex-1"},[d("a",{href:`/${l.slug}`,class:"hover:text-primary"},[d("h3",null,L(l.name),1)],8,wn),d("ul",Pn,[(b(!0),C(V,null,K(l.subcategories,(_,m)=>(b(),C("li",{key:`${x}-${m}`,class:"mb-0.5"},[d("a",{href:`/${_.slug}`,class:"hover:text-primary hover:underline"},[d("h3",null,L(_.name),1)],8,Mn)]))),128))])]))),128)),e.categoryPicture?(b(),C("div",{key:1,class:$(e.countMenuCols===2?"basis-1/2":e.countMenuCols<5?"basis-2/5":"basis-1/3")},[E(s,{picture:e.categoryPicture,class:"ml-auto rounded"},null,8,["picture"])],2)):H("",!0)]),d("a",{href:`/${o.categoryTree.slug}`,class:"text-base-600 mt-1 block text-xs leading-snug underline"},L("Ver toda a categoria $1".replace("$1",o.categoryTree.name)),9,Tn),d("button",{ref:"close",onClick:he(c,["stop"]),class:"hidden"},null,8,In)]),_:1},8,["class"])]),_:1})],512)]),_:3})}const Cn=G(bn,[["render",On]]),En=D({__name:"ShopHeaderMenu",props:{inlineMenuTrees:{}},setup(n,{expose:a}){a();const o=n,e=I(()=>!!o.inlineMenuTrees.find(({subcategories:r})=>!r.length)),t={props:o,hasOneLevelSubcategories:e,ShopHeaderSubmenu:Cn};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}}),An={class:"hover:text-primary group"},Ln=["href"],$n={class:"inline"};function Nn(n,a,o,e,t,r){return b(),C("nav",null,[d("ul",{class:$(["text-base-700 flex gap-4 xl:gap-5",o.inlineMenuTrees.length<7?"text-base":"text-sm"])},[(b(!0),C(V,null,K(o.inlineMenuTrees,(s,u)=>(b(),C("li",{key:u},[s.subcategories.length?(b(),R(e.ShopHeaderSubmenu,{key:0,"category-tree":s},{button:T(({open:i})=>[d("span",An,[d("h3",{class:$(["inline group-hover:underline",[o.inlineMenuTrees.length<7?"decoration-2":null,i?"underline":null]])},L(s.name),3),e.hasOneLevelSubcategories?(b(),C("i",{key:0,class:$(["text-base-400 i-chevron-right group-hover:text-primary-subtle ml-1 transition-transform",i?"-rotate-90":"rotate-90"])},null,2)):H("",!0)])]),_:2},1032,["category-tree"])):(b(),C("a",{key:1,href:`/${s.slug}`,class:$(["hover:text-primary hover:underline",o.inlineMenuTrees.length<7?"decoration-2":null])},[d("h3",$n,L(s.name),1)],10,Ln))]))),128))],2)])}const Rn=G(En,[["render",Nn]]),Fn=D({__name:"AccountMenu",setup(n,{expose:a}){a();const o={get Menu(){return sn},get MenuButton(){return un},get MenuItems(){return cn},get MenuItem(){return dn},get socialNetworks(){return be},get customerName(){return Ae},get initializeFirebaseAuth(){return Ee},get isLogged(){return Le},get logout(){return $e},AccountLink:ze,SocialNetworkLink:qe};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),Dn={key:0},Bn={class:"text-base-600 p-3"},Hn={class:"list-none"},Un=d("i",{class:"i-heart mr-1"},null,-1),Vn={class:"text-base-500 flex justify-center gap-2 p-2 text-base"},jn=d("span",{class:"text-base-600"},L("Sair"),-1),zn=d("i",{class:"i-arrow-right-on-rectangle ml-1 text-lg"},null,-1),qn=[jn,zn];function Kn(n,a,o,e,t,r){const s=Y("ALink"),u=Y("Fade");return b(),R(e.Menu,{as:"div",class:"text-base-800 relative text-center text-sm"},{default:T(({open:i})=>[i?(b(),C("div",Dn,[a[0]||(Pe(-1),a[0]=d("span",null,[Q(L(e.initializeFirebaseAuth()),1)]),Pe(1),a[0])])):H("",!0),E(e.AccountLink,{role:"button",onClick:a[1]||(a[1]=he(()=>{},["prevent"]))},{default:T(()=>[E(e.MenuButton,{class:"outline-none","aria-label":"Minha conta"},{default:T(()=>[oe(n.$slots,"button",Re(Ne({open:i})))]),_:2},1024)]),_:2},1024),E(u,null,{default:T(()=>[E(e.MenuItems,{class:"divide-base-100 absolute -right-8 mt-2 w-56 divide-y rounded bg-white shadow ring-1 ring-black/5 focus:outline-none"},{default:T(()=>[d("div",Bn,[Q(L(`Olá ${e.customerName||"Visitante"}`)+" ",1),E(e.AccountLink,{role:"button",class:"ui-btn-sm ui-btn-primary my-1 block"},{default:T(()=>[Q(L("Acessar minha conta"))]),_:1}),e.isLogged?H("",!0):(b(),R(e.AccountLink,{key:0,"is-sign-up":"",class:"ui-link block"},{default:T(()=>[Q(L("Criar uma conta"))]),_:1}))]),d("ul",Hn,[E(e.MenuItem,{as:"li"},{default:T(({active:c})=>[E(e.AccountLink,{to:"orders",class:$(["block p-2",c?"bg-primary-100 text-primary":null])},{default:T(()=>[Q(L("Meus pedidos"))]),_:2},1032,["class"])]),_:1}),E(e.MenuItem,{as:"li"},{default:T(({active:c})=>[E(e.AccountLink,{to:"favorites",class:$(["block p-2",c?"bg-primary-100 text-primary":null])},{default:T(()=>[Un,Q(" "+L("Meus favoritos"))]),_:2},1032,["class"])]),_:1}),(b(!0),C(V,null,K(n.$settings.serviceLinks,({title:c,href:l},x)=>(b(),R(e.MenuItem,{as:"li",key:`s-${x}`},{default:T(({active:_})=>[E(s,{href:l,class:$(["block p-2",_?"bg-primary-100 text-primary":null])},{default:T(()=>[Q(L(c),1)]),_:2},1032,["href","class"])]),_:2},1024))),128)),E(e.MenuItem,{as:"li"},{default:T(()=>[d("div",Vn,[(b(!0),C(V,null,K(e.socialNetworks,(c,l)=>(b(),C("span",{key:l},[E(e.SocialNetworkLink,{network:l,class:"hover:text-primary p-1"},null,8,["network"])]))),128))])]),_:1}),e.isLogged?(b(),R(e.MenuItem,{key:0,as:"li"},{default:T(()=>[d("button",{onClick:a[2]||(a[2]=(...c)=>e.logout&&e.logout(...c)),class:"text-base-800 p-2 text-right"},qn)]),_:1})):H("",!0)])]),_:1})]),_:1})]),_:3})}const Wn=G(Fn,[["render",Kn]]),Yn=D({__name:"ShopHeader",props:{searchInput:{},categories:{},menuCategorySlugs:{},menuRandomCategories:{},isAlphabeticalSortSubmenu:{type:Boolean}},setup(n,{expose:a}){a();const o=Oe(()=>ke(()=>import("./SearchModal.d8lbvLay.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]))),e=Oe(()=>ke(()=>import("./CartSidebar.osvr0MUo.js"),__vite__mapDeps([19,1,2,17,9,3,18,8,7,5,6,20,16,10,11,15]))),t=n,r=S(null),s=S(null),{isSticky:u,positionY:i,categoryTrees:c,inlineMenuTrees:l,isSearchOpen:x,isSearchOpenOnce:_,searchTerm:m,quickSearchTerm:k,toggleSearch:v,isCartOpen:y,isCartOpenOnce:h,cartTotalItems:P,handleOnMounted:g}=kt({...t,header:r,searchInput:s}),M=S(!1),f=S(!1);re(()=>{f.value=!0,g()});const w={SearchModal:o,CartSidebar:e,props:t,header:r,searchInput:s,isSticky:u,positionY:i,categoryTrees:c,inlineMenuTrees:l,isSearchOpen:x,isSearchOpenOnce:_,searchTerm:m,quickSearchTerm:k,toggleSearch:v,isCartOpen:y,isCartOpenOnce:h,cartTotalItems:P,handleOnMounted:g,isSidenavOpen:M,isMounted:f,get isMobile(){return se},Drawer:_t,ShopSidenav:Jt,ShopHeaderMenu:Rn,AccountMenu:Wn};return Object.defineProperty(w,"__isScriptSetup",{enumerable:!1,value:!0}),w}}),Gn={class:"mx-auto flex w-screen grid-flow-col grid-cols-3 items-center justify-between px-1 sm:pl-2 sm:pr-2.5 md:grid lg:w-[calc(100vw-1rem)] lg:auto-cols-max lg:grid-cols-none lg:px-1 xl:max-w-[82rem] 2xl:max-w-[85rem]"},Qn={class:"basis-1/4 lg:hidden"},Zn={class:"text-base-800 flex basis-1/4 items-center justify-end gap-3 px-2 lg:gap-4"},Xn={action:"/s",method:"get",class:"relative"},Jn=d("label",{for:"HeaderSearch",class:"sr-only"},L("Buscar produtos"),-1),ea={class:"absolute -right-0.5 -top-2.5 flex items-stretch"},ta=d("div",{class:"hidden w-12 bg-gradient-to-r from-transparent to-white sm:block"},null,-1),na=["placeholder"],aa=["href"],oa=d("i",{class:"i-shopping-bag group-hover:text-primary size-7 group-hover:scale-110 group-active:scale-125"},null,-1),ra={key:0,class:"ui-badge-pill-sm absolute -right-1.5 -top-1"},la={class:"container mx-auto"},sa={class:"h-full bg-white"};function ia(n,a,o,e,t,r){const s=Y("Fade"),u=Y("Skeleton");return b(),C("header",{ref:"header",class:$(["relative top-0 z-50 transition-colors",[e.isSticky&&!e.isSidenavOpen?"bg-white/80":"bg-white",e.isSticky?"py-2 shadow backdrop-blur-md md:py-3":"py-3 sm:py-4 md:py-5"]])},[d("div",Gn,[d("div",Qn,[d("button",{class:"my-1 px-2","aria-label":"Abrir/fechar menu",onClick:a[0]||(a[0]=i=>e.isSidenavOpen=!e.isSidenavOpen)},[d("i",{class:$(["text-3xl transition-colors",[e.isSidenavOpen?"i-close":"i-bars-3-bottom-left",e.isMounted?"text-base-500":"text-base-400 animate-pulse"]])},null,2)])]),oe(n.$slots,"logo"),e.isMobile?H("",!0):(b(),R(e.ShopHeaderMenu,Me({key:0},{inlineMenuTrees:e.inlineMenuTrees},{class:"hidden lg:block"}),null,16)),d("div",Zn,[d("form",Xn,[Jn,E(s,null,{default:T(()=>[Te(d("div",ea,[ta,Te(d("input",{ref:"searchInput",type:"search",id:"HeaderSearch",name:"q","onUpdate:modelValue":a[1]||(a[1]=i=>e.searchTerm=i),class:"border-1 border-primary/20 to-primary-50 w-72 max-w-md bg-gradient-to-r from-white py-3 pl-5 pr-12 text-base ring-0 md:w-screen",placeholder:"Buscar produtos ..."},null,8,na),[[Je,e.searchTerm,void 0,{trim:!0}]])],512),[[Xe,e.isSearchOpen]])]),_:1}),d("button",{type:"submit","aria-label":"Buscar produtos",onClick:a[2]||(a[2]=(...i)=>e.toggleSearch&&e.toggleSearch(...i))},[d("i",{class:$(["i-magnifying-glass hover:text-primary size-7 hover:scale-110 active:scale-125",e.isSearchOpen&&"text-primary-600 -translate-x-2"])},null,2)])]),e.isMobile?H("",!0):(b(),R(e.AccountMenu,{key:0,class:"hidden sm:block"},{button:T(({open:i})=>[d("i",{class:$(["i-user-circle hover:text-primary size-7 hover:scale-110 active:scale-125",i?"text-black scale-110":null])},null,2)]),_:1})),d("a",{href:n.$settings.cartUrl||"/app/","aria-label":"Abrir carrinho",onClick:a[3]||(a[3]=he(i=>e.isCartOpen=!e.isCartOpen,["prevent"])),class:"group relative",role:"button"},[oa,e.cartTotalItems?(b(),C("span",ra,L(e.cartTotalItems),1)):H("",!0)],8,aa)])]),E(e.Drawer,{modelValue:e.isSidenavOpen,"onUpdate:modelValue":a[4]||(a[4]=i=>e.isSidenavOpen=i),"has-close-button":!1,position:"absolute",class:$(e.isSticky?"mt-2 md:mt-3":"mt-3 sm:mt-4 md:mt-5"),style:ct({height:`calc(100vh - ${e.positionY}px + .5rem)`,maxHeight:`calc(100dvh - ${e.positionY}px + .5rem)`})},{default:T(()=>[E(e.ShopSidenav,Me({class:"pt-6"},{categoryTrees:e.categoryTrees}),null,16)]),_:1},8,["modelValue","class","style"]),E(e.Drawer,{modelValue:e.isSearchOpen,"onUpdate:modelValue":a[5]||(a[5]=i=>e.isSearchOpen=i),"is-hidden":!e.quickSearchTerm,"has-close-button":!1,"anchor-el":e.searchInput?.parentElement,position:"absolute",placement:"top",animation:"scale","max-width":"55rem",class:$(["bg-transparent lg:mt-12",e.isSticky?"mt-2 md:mt-3":"mt-3 sm:mt-4 md:mt-5"])},{default:T(()=>[(b(),R(Ie,null,{fallback:T(()=>[d("div",la,[E(u,{class:"p-6","is-large":"","is-bold":""})])]),default:T(()=>[e.isSearchOpenOnce?(b(),R(e.SearchModal,{key:0,term:e.quickSearchTerm},null,8,["term"])):H("",!0)]),_:1}))]),_:1},8,["modelValue","is-hidden","anchor-el","class"]),e.isMounted?(b(),R(dt,{key:0,to:"#teleported-overlap"},[E(e.Drawer,{modelValue:e.isCartOpen,"onUpdate:modelValue":a[7]||(a[7]=i=>e.isCartOpen=i),placement:"end","backdrop-target":"#teleported-overlap",class:"shadow"},{default:T(()=>[(b(),R(Ie,null,{fallback:T(()=>[d("div",sa,[E(u,{class:"px-6 pt-16","is-bold":""})])]),default:T(()=>[e.isCartOpenOnce?(b(),R(e.CartSidebar,{key:0,onClose:a[6]||(a[6]=i=>e.isCartOpen=!1)})):H("",!0)]),_:1}))]),_:1},8,["modelValue"])])):H("",!0)],2)}const ba=G(Yn,[["render",ia]]);export{ba as default};
2
- function __vite__mapDeps(indexes) {
3
- if (!__vite__mapDeps.viteFileDeps) {
4
- __vite__mapDeps.viteFileDeps = ["_astro/SearchModal.d8lbvLay.js","_astro/_plugin-vue_export-helper.SO-0jCqa.js","_astro/runtime-core.esm-bundler.XTSAdOlw.js","_astro/sf-utils.luvTU5uS.js","_astro/use-analytics.WpkjGsWi.js","_astro/customer-session.TRPGDX3c.js","_astro/index.q6KIyKlJ.js","_astro/shopping-cart.ATTXCPd0.js","_astro/price.Easct8WC.js","_astro/afetch.5c8VmT0-.js","_astro/name.urFqJ5yn.js","_astro/i18n.Lxnz1oF-.js","_astro/ProductShelf.vGE0E3Qf.js","_astro/index.R7A-Pg5V.js","_astro/use-product-card.BhUXhJIp.js","_astro/img.WnsidxCx.js","_astro/Prices.Jt09rVKv.js","_astro/modules-info.WWsUqEPZ.js","_astro/format-money.iK5LGydz.js","_astro/CartSidebar.osvr0MUo.js","_astro/QuantitySelector.OL4MN-C_.js"]
5
- }
6
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7
- }
@@ -1 +0,0 @@
1
- const p=s=>Object.values(s).filter(t=>t).length,f=(s=globalThis.$storefront.settings.modules)=>{const t={};if(s){const o=s.list_payments;if(o){const e=o.discount_option;e&&p(e)&&(t.list_payments={discount_option:e});const i=o.installments_option;i?.max_number&&(t.list_payments||(t.list_payments={}),t.list_payments.installments_option=i);const c=o.loyalty_points_programs||{};if(!Object.keys(c).length){const l={...o.loyalty_points_program};if(l?.id&&l.ratio){const{id:m}=l;delete l.id,c[m]=l}}Object.keys(c).length&&(t.list_payments||(t.list_payments={}),t.list_payments.loyalty_points_programs=c)}const n=s.calculate_shipping?.free_shipping_from_value;typeof n=="number"&&(t.calculate_shipping={free_shipping_from_value:n})}return t},g=new Promise(s=>{window.$storefront.modulesInfoPreset=f(),s(window.$storefront.modulesInfoPreset)});let r={};{const s="ecomUtm",t=localStorage.getItem(s),o=Date.now();try{const e=t&&JSON.parse(t)||{};new Date(e.at+1e3*60*60*24*7).getTime()>=o&&(r=e.utm||{})}catch{r={}}let a=!1;const n=new URLSearchParams(window.location.search);["source","medium","campaign","term","content"].forEach(e=>{const i=n.get(`utm_${e}`);i&&(r[e]=i,a=!0)}),a&&localStorage.setItem(s,JSON.stringify({at:o,utm:r}))}const u=r,y=(s,t,o=1e4)=>{let a,n;o&&(a=new AbortController,n=setTimeout(()=>{a.abort()},o));let e;t?.body&&(typeof t.body=="object"?(e=JSON.stringify(t.body),t.headers={...t.headers,"Content-Type":"application/json","Content-Length":e.length.toString()}):e=t.body);const i=fetch(s,{...t,body:e,signal:a?.signal});return i.finally(()=>{n&&clearTimeout(n)}),i};export{y as a,g as l,u};
@@ -1 +0,0 @@
1
- import{_ as B,T as ne,w as ae,c as oe,d as se}from"./_plugin-vue_export-helper.SO-0jCqa.js";import{d as C,c,N as y,$ as z,V as A,Z as b,a0 as G,O as R,a2 as J,a3 as ee,R as x,T as v,a4 as ie,a as L,w as k,a6 as K,H as le,E as ue,ac as ce,a5 as de,Q as Z,k as $,ad as fe}from"./runtime-core.esm-bundler.XTSAdOlw.js";import{g as me}from"./img.WnsidxCx.js";import{u as ve}from"./index.q6KIyKlJ.js";import{g as pe}from"./img-sizes.gxAI9JNh.js";import{i as ge}from"./i18n.Lxnz1oF-.js";import{f as he}from"./format-money.iK5LGydz.js";import{a as ye,b as _e}from"./index.R7A-Pg5V.js";import"./price.Easct8WC.js";const we=C({__name:"Fade",props:{speed:{default:"default"},slide:{},isFloating:{type:Boolean,default:!1},isLeaveTo:{type:Boolean,default:!0},isEnterFrom:{type:Boolean,default:!0}},setup(r,{expose:a}){a();const e=r,t=c(()=>e.speed==="default"?"var(--transition, .2s linear)":`var(--transition-${e.speed}, .4s linear)`),i=c(()=>{switch(e.slide){case"down":return"translate3d(0, -100%, 0)";case"left":return"translate3d(-100%, 0, 0)";case"right":return"translate3d(100%, 0, 0)";case"up":return"translate3d(0, 100%, 0)";default:return"none"}}),o=c(()=>i.value!=="none"?.1:0),l=c(()=>e.isEnterFrom?o.value:1),g=c(()=>e.isLeaveTo?o.value:1),P=c(()=>e.isEnterFrom?i.value:"none"),f=c(()=>e.isLeaveTo?i.value:"none"),u=c(()=>e.slide==="down"||e.slide==="up"),_=c(()=>e.isFloating?null:u.value?0:"auto"),T=c(()=>e.isFloating?null:e.slide&&!u.value?0:"auto"),m=c(()=>e.isEnterFrom?_.value:"auto"),S=c(()=>e.isEnterFrom?T.value:"auto"),w=c(()=>{let n="opacity";return i.value!=="none"&&(n+=", transform"),_.value===0&&(n+=", height"),T.value===0&&(n+=", width"),n}),p={props:e,duration:t,transform:i,opacity:o,enterFromOpacity:l,leaveToOpacity:g,enterFromTransform:P,leaveToTransform:f,isSlideY:u,height:_,width:T,enterFromHeight:m,enterFromWidth:S,willChange:w,setInitialStyles:n=>{n.style.setProperty("--fade-will-change",w.value),n.style.setProperty("--fade-duration",t.value),n.style.setProperty("--fade-enter-opacity",String(l.value)),n.style.setProperty("--fade-enter-transform",String(P.value)),n.style.setProperty("--fade-enter-height",String(m.value)),n.style.setProperty("--fade-enter-width",String(S.value)),n.style.setProperty("--fade-leave-opacity",String(g.value)),n.style.setProperty("--fade-leave-transform",String(f.value))},onEnter:n=>{if(e.slide&&!e.isFloating&&e.isEnterFrom){u.value?(n.style.width=getComputedStyle(n).width,n.style.height="auto"):(n.style.width="auto",n.style.height=getComputedStyle(n).height),n.style.position="absolute",n.style.visibility="hidden";const{width:h,height:N}=getComputedStyle(n);n.style.width=u.value?"":"0",n.style.height=u.value?"0":"",n.style.position="",n.style.visibility="",getComputedStyle(n)[u.value?"height":"width"],requestAnimationFrame(()=>{u.value?n.style.height=N:n.style.width=h})}},onAfterEnter:n=>{e.slide&&!e.isFloating&&e.isEnterFrom&&(n.style[u.value?"height":"width"]="")},onLeave:n=>{if(e.slide&&!e.isFloating&&e.isLeaveTo){u.value?n.style.height=getComputedStyle(n).height:n.style.width=getComputedStyle(n).width;const h=u.value?"height":"width";getComputedStyle(n)[h],requestAnimationFrame(()=>{n.style[h]="0"})}}};return Object.defineProperty(p,"__isScriptSetup",{enumerable:!1,value:!0}),p}});function xe(r,a,e,t,i,o){return y(),z(ne,{name:"sf-fade",onBeforeEnter:t.setInitialStyles,onEnter:t.onEnter,onBeforeLeave:t.setInitialStyles,onAfterEnter:t.onAfterEnter,onLeave:t.onLeave},{default:A(()=>[b(r.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onBeforeLeave","onAfterEnter","onLeave"])}const Se=B(we,[["render",xe]]),be=C({__name:"ALink",props:{href:{},target:{}},setup(r,{expose:a}){a();const e=r,t=c(()=>{if(e.href){if(e.target)return e.target;if(e.href.startsWith("http")){const o=globalThis.$storefront.settings.domain||window.location.host;return e.href.startsWith(`https://${o}`)?void 0:"_blank"}}}),i={props:e,linkTarget:t};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}});function Ce(r,a,e,t,i,o){return y(),z(G(e.href?"a":"span"),{href:e.href,target:t.linkTarget,rel:t.linkTarget==="_blank"?"noopener":void 0},{default:A(()=>[b(r.$slots,"default")]),_:3},8,["href","target","rel"])}const Pe=B(be,[["render",Ce]]),Te=C({__name:"AImg",props:{picture:{},loading:{default:"lazy"},decoding:{},alt:{},preferredSize:{}},setup(r,{expose:a}){a();const e=r,t=c(()=>e.picture.url?e.picture:me(e.picture,void 0,e.preferredSize)||{}),i=c(()=>pe(t.value)),o=c(()=>({src:t.value.url,alt:t.value.alt||e.alt,width:i.value.width||void 0,height:i.value.height||void 0,loading:e.loading,decoding:e.decoding||(i.value.height?"async":void 0)})),l={props:e,image:t,dimensions:i,attrs:o};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}});function Ee(r,a,e,t,i,o){return y(),R("img",J(ee(t.attrs)),null,16)}const Le=B(Te,[["render",Ee]]),q="bg-gray-200 rounded-md dark:bg-gray-700",Be=C({__name:"Skeleton",props:{isBold:{type:Boolean},isLarge:{type:Boolean}},setup(r,{expose:a}){a();const e=r,t=c(()=>`${q} ${e.isBold?"h-8 mb-6":"h-2.5 mb-4"}`),i=c(()=>`${q} ${e.isBold?"h-5 mb-4":"h-2 mb-2.5"}`),o={props:e,rowClassName:q,firstRowClassName:t,nextRowsClassName:i};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),Fe=x("span",{class:"sr-only"},"Loading...",-1);function ke(r,a,e,t,i,o){return y(),R("div",{role:"status",class:v(["animate-pulse",e.isLarge?"max-w-4xl":"max-w-sm"])},[x("div",{class:v([t.firstRowClassName,e.isLarge?"w-96":"w-48"])},null,2),x("div",{class:v([t.nextRowsClassName,e.isLarge?"max-w-[680px]":"max-w-[340px]"])},null,2),x("div",{class:v(t.nextRowsClassName)},null,2),x("div",{class:v([t.nextRowsClassName,e.isLarge?"max-w-[660px]":"max-w-[330px]"])},null,2),x("div",{class:v([t.nextRowsClassName,e.isLarge?"max-w-[600px]":"max-w-[300px]"])},null,2),x("div",{class:v([t.nextRowsClassName,e.isLarge?"max-w-[720px]":"max-w-[360px]"])},null,2),Fe],2)}const ze=B(Be,[["render",ke]]),Ae=(r,a=1)=>Number.isInteger(r)?`${r}%`:`${r.toFixed(a)}%`,Ie=r=>{r.use({install:(a,e)=>{a.config.globalProperties.$t=(o,l)=>ge(o,l||e?.lang),a.config.globalProperties.$money=he,a.config.globalProperties.$percentage=Ae;const{settings:t,apiContext:i}=globalThis.$storefront||{};a.config.globalProperties.$settings=t,a.config.globalProperties.$apiContext=i}}),r.component("Fade",Se),r.component("ALink",Pe),r.component("AImg",Le),r.component("Skeleton",ze)},Ne=C({__name:"CarouselControl",props:{isPrev:{type:Boolean,default:!1}},setup(r,{expose:a}){a();const{axis:e,changeSlide:t}=ie(D),o={axis:e,changeSlide:t,isX:e==="x"};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),Oe=["aria-label","data-carousel-control"];function $e(r,a,e,t,i,o){return y(),R("button",{type:"button","aria-label":e.isPrev?"Anterior":"Próximo",onClick:a[0]||(a[0]=ae(l=>t.changeSlide(e.isPrev?-1:1),["stop","prevent"])),class:v(["group absolute z-[11]",t.isX?`${e.isPrev?"left-0":"right-0"} top-0`:`${e.isPrev?"top-0":"bottom-0"} left-0`]),"data-carousel-control":e.isPrev?"previous":"next"},[b(r.$slots,"default",{},()=>[x("i",{class:v(["m-0 i-chevron-right",{"group-active:translate-x-1":t.isX&&!e.isPrev,"rotate-180 group-active:-translate-x-1":t.isX&&e.isPrev,"rotate-90 group-active:translate-y-1":!t.isX&&!e.isPrev,"-rotate-90 group-active:-translate-y-1":!t.isX&&e.isPrev}])},null,2)])],10,Oe)}const te=B(Ne,[["render",$e]]),D=Symbol("carousel"),Re=C({__name:"Carousel",props:{as:{default:"ul"},index:{default:0},autoplay:{},axis:{default:"x"},hasControls:{type:Boolean},wrapperKey:{}},emits:["update:index"],setup(r,{expose:a,emit:e}){a();const t=r,i=e,o=L(0);k(K(t,"index"),s=>{if(s!==o.value){const d=s-o.value;h(d,!1)}},{immediate:!0}),k(o,(s,d)=>{s!==d&&i("update:index",s)});const l=L(null),{[t.axis]:g,isScrolling:P,arrivedState:f}=ye(l),u=t.axis==="x",_=c(()=>u?f.left:f.top),T=c(()=>u?f.right:f.bottom),m=L([]),S=L(0),w=L(0),H=()=>{l.value&&(u?(S.value=l.value.scrollWidth,w.value=l.value.offsetWidth):(S.value=l.value.scrollHeight,w.value=l.value.offsetHeight))},j=()=>{if(!l.value)return;let s=[...l.value.children];s.length===1&&s[0].tagName.endsWith("SLOT")&&(s=[...s[0].children]),m.value=s.map(d=>({offset:u?d.offsetLeft:d.offsetTop,size:u?d.offsetWidth:d.offsetHeight}))},X=s=>{let d=o.value+s;if(d>=m.value.length)return 0;d<0&&(d=m.value.length+d);const{offset:F,size:E}=m.value[d]||{};return E?F:0},I=()=>{const s=m.value.findIndex(d=>Math.abs(d.offset-g.value)<=5);s>-1&&(o.value=s||0)};let p;const n=()=>{t.autoplay&&(clearTimeout(p),p=setTimeout(()=>{h(1)},t.autoplay))},h=(s,d=!0)=>{if(m.value.length<2)return;let F=-1;if(g.value+w.value>=S.value)F=0;else{if(d&&(s===1||s===-1)){let E=0,Y=0;for(let M=o.value;M<m.value.length;M++){const{size:V}=m.value[M]||{};if(V&&(E+=1,Y+=V,Y+V*.75>=w.value))break}E&&(s=s>0?E:-E)}F=X(s)}l.value?.scrollTo({[u?"left":"top"]:F,behavior:"smooth"}),n()};k(P,s=>{s?clearTimeout(p):(I(),n())});const N=L(null),Q=_e(N);k(Q,s=>{s?clearTimeout(p):n()});const O=()=>{l.value&&(H(),j(),I())},W=ve(()=>{l.value&&(u?l.value.scrollLeft=0:l.value.scrollTop=0,O())},400);le(()=>{O(),ue(()=>{l.value&&[...l.value.children].forEach(s=>{s.setAttribute("tabindex","0")})}),n(),window.addEventListener("resize",W)}),k(K(t,"wrapperKey"),O),ce(()=>{window.removeEventListener("resize",W),clearTimeout(p)}),de(D,{autoplay:K(t,"autoplay"),axis:t.axis,changeSlide:h,isBoundStart:_,isBoundEnd:T});const U={carouselKey:D,props:t,emit:i,activeIndex:o,wrapper:l,currentPos:g,isScrolling:P,arrivedState:f,isX:u,isBoundStart:_,isBoundEnd:T,slideSizes:m,wrapperScrollSize:S,wrapperVisibleSize:w,calcWrapperSize:H,calcSlidesSize:j,calcNextOffset:X,calcCurrentIndex:I,get autoplayTimer(){return p},set autoplayTimer(s){p=s},restartAutoplay:n,changeSlide:h,carousel:N,isHovered:Q,calcOnInit:O,onResize:W,CarouselControl:te};return Object.defineProperty(U,"__isScriptSetup",{enumerable:!1,value:!0}),U}});function He(r,a,e,t,i,o){return y(),R("div",{ref:"carousel",class:v(`relative ${t.isX?"":"overflow-hidden"}`),"data-carousel":""},[(y(),z(G(e.as),{ref:"wrapper",class:v(["m-0 flex snap-mandatory list-none scroll-smooth p-0 [&>*]:snap-start [&>*]:outline-none",t.isX?"snap-x overflow-y-hidden overflow-x-scroll":"h-full flex-col snap-y overflow-x-hidden overflow-y-scroll"]),style:{"scrollbar-width":"none","-webkit-overflow-scrolling":"touch","-ms-overflow-style":"none"},"data-carousel-wrapper":""},{default:A(()=>[b(r.$slots,"default")]),_:3},8,["class"])),b(r.$slots,"controls",J(ee({changeSlide:t.changeSlide,isBoundStart:t.isBoundStart,isBoundEnd:t.isBoundEnd,activeIndex:t.activeIndex})),()=>[t.slideSizes.length>1||e.hasControls?(y(),z(t.CarouselControl,{key:0,"is-prev":""},{default:A(()=>[b(r.$slots,"previous")]),_:3})):Z("",!0),t.slideSizes.length>1||e.hasControls?(y(),z(t.CarouselControl,{key:1},{default:A(()=>[b(r.$slots,"next")]),_:3})):Z("",!0)])],2)}const je=B(Re,[["render",He]]),re=r=>{Ie(r),r.component("Carousel",je),r.component("CarouselControl",te)},Xe=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"})),We=async r=>{"default"in Xe&&await re(r)},Me=C({props:{value:String,name:String,hydrate:{type:Boolean,default:!0}},setup({name:r,value:a,hydrate:e}){if(!a)return()=>null;let t=e?"astro-slot":"astro-static-slot";return()=>$(t,{name:r,innerHTML:a})}}),et=r=>async(a,e,t,{client:i})=>{if(!r.hasAttribute("ssr"))return;const o=a.name?`${a.name} Host`:void 0,l={};for(const[u,_]of Object.entries(t))l[u]=()=>$(Me,{value:_,name:u==="default"?void 0:u});const g=i!=="only",f=(g?oe:se)({name:o,render(){let u=$(a,e,l);return Ve(a.setup)&&(u=$(fe,null,u)),u}});await We(f),f.mount(r,g),r.addEventListener("astro:unmount",()=>f.unmount(),{once:!0})};function Ve(r){const a=r?.constructor;return a&&a.name==="AsyncFunction"}export{et as default};
@@ -1,7 +0,0 @@
1
- import{r as B}from"./sf-utils.luvTU5uS.js";import{h as x}from"./index.q6KIyKlJ.js";import{r as C,c as b}from"./runtime-core.esm-bundler.XTSAdOlw.js";const K=e=>{if(e){if(e.display_name)return e.display_name;if(e.name&&e.name.given_name)return e.name.given_name}return""},z=K,G="modulepreload",J=function(e){return"/"+e},I={},V=function(a,t,r){let i=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");i=Promise.all(t.map(s=>{if(s=J(s),s in I)return;I[s]=!0;const n=s.endsWith(".css"),f=n?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const g=o[p];if(g.href===s&&(!n||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${f}`))return;const l=document.createElement("link");if(l.rel=n?"stylesheet":G,n||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),n)return new Promise((p,g)=>{l.addEventListener("load",p),l.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>a()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},F=(e,a,t=globalThis.localStorage)=>{if(!t)return C(a);let r;const i=t.getItem(e);if(i)try{r=JSON.parse(i)}catch{r=null,t.removeItem(e)}const o=C(r||a);return x(o,()=>{t.setItem(e,JSON.stringify(o))},{debounce:50}),o};globalThis.__apiCache||(globalThis.__apiCache={});const _=typeof process=="object"&&process?.env||globalThis;class S extends Error{constructor(a,t,r,i=!1){t?(super(t.statusText),this.data=t.data,this.statusCode=t.status):super(r||"Request error"),this.config=a,this.response=t,this.isTimeout=i}}const H={middleware(e){const a={...e.headers};if(!e.isNoAuth)if(e.accessToken)a.Authorization=`Bearer ${e.accessToken}`;else{const o=e.authenticationId||_.ECOM_AUTHENTICATION_ID,s=e.apiKey||_.ECOM_API_KEY;if(o&&s){const n=`${o}:${s}`,f=typeof Buffer=="function"?Buffer.from(n).toString("base64"):btoa(n);a.Authorization=`Basic ${f}`}}let t=e.baseUrl||_.API_BASE_URL||"https://ecomplus.io/v2";const{endpoint:r,params:i}=e;if(r!=="login"&&r!=="authenticate"&&r!=="ask-auth-callback"&&r!=="check-username"){const o=e.storeId||_.ECOM_STORE_ID;if(!o)throw new Error("`storeId` must be set in config or `ECOM_STORE_ID` env var");t+=`/:${o}`;const s=e.lang||_.ECOM_LANG;s&&(t+=`,lang:${s}`)}if(t+=`/${r}`,typeof i=="string")t+=`?${i}`;else{const o=i||{};if(["fields","sort"].forEach(s=>{const n=e[s];n&&!o[s]&&(o[s]=n.join(","))}),["limit","offset","count","buckets","concise","verbose"].forEach(s=>{const n=e[s];n&&!o[s]&&(o[s]=n)}),Object.keys(o).length){const s=new URLSearchParams;Object.keys(o).forEach(n=>{const f=o[n];Array.isArray(f)?f.forEach(y=>{s.append(n,y)}):f!==void 0&&s.append(n,f)}),t+=`?${s.toString()}`}}return{url:t,headers:a}}},c=async(e,a=0)=>{const t=globalThis.$apiMergeConfig?{...globalThis.$apiMergeConfig,...e}:e,{url:r,headers:i}=H.middleware(t),o=t.method?.toUpperCase()||"GET",{timeout:s=2e4,maxRetries:n=3,cacheMaxAge:f=Number(_.API_CACHE_MAX_AGE)||12e4}=t,y=o==="GET"&&t.canCache;let l;if(y){l=`${r}${JSON.stringify(i)}`;const m=globalThis.__apiCache[l];if(m&&Date.now()-m.timestamp<=f)return{...m.res,config:t}}const p=t.body||t.data;let g;p&&(g=JSON.stringify(p),i["Content-Type"]="application/json");const T=new AbortController;let A=!1;const L=setTimeout(()=>{T.abort(),A=!0},s);let u;try{u=await(t.fetch||fetch)(r,{method:o,headers:i,body:g,signal:T.signal})}catch(m){let d=m.message;throw m.cause&&(d+=` - ${m.cause}`),new S(t,u,d,A)}if(clearTimeout(L),u){if(u.ok){const d=u;return d.data=u.status!==204?await u.json():null,y&&l&&(globalThis.__apiCache[l]={timestamp:Date.now(),res:d}),d.config=t,d}const{status:m}=u;if(n<a&&(m===429||m>=500)){const d=u.headers.get("retry-after");return new Promise((M,U)=>{setTimeout(()=>{c(e,a+1).then(M).catch(U)},d&&parseInt(d,10)*1e3||5e3)})}}try{u.data=await u?.json()}catch{}throw new S(t,u)},Y=(e,a)=>c({...a,endpoint:e}),q=(e,a,t)=>c({...t,method:"post",endpoint:e,body:a}),X=(e,a,t)=>c({...t,method:"put",endpoint:e,body:a}),Q=(e,a,t)=>c({...t,method:"patch",endpoint:e,body:a}),N=(e,a)=>c({...a,method:"delete",endpoint:e});c.get=Y;c.post=q;c.put=X;c.patch=Q;c.del=N;c.delete=N;const W="emailForSignIn",P="ecomSession",E={customer:{display_name:"",main_email:""},auth:null},h=F(P,E),v=b(()=>{const{auth:e}=h;return e&&new Date(e.expires).getTime()-Date.now()>1e3*10}),R=b(()=>h.customer),k=b(()=>z(R.value)),O=b({get(){return R.value.main_email},set(e){h.customer.main_email=e}});let w;const ne=b(()=>v.value||!!w?.currentUser?.emailVerified),Z=()=>{h.auth=E.auth,h.customer=E.customer,localStorage.removeItem(P),w.signOut()},j=(e="Not authenticated")=>{const a=new Error(e);throw a.isNoAuth=!0,a},D=async()=>{const e=await w.currentUser?.getIdToken();if(!e){j("Can't get Firebase user ID token");return}const{domain:a}=globalThis.$storefront.settings;try{const t=await fetch(`https://${a}/_api/passport/token`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});h.auth=await t.json()}catch(t){console.error(t)}},ee=async()=>(v.value||await D(),h.auth?h.auth.access_token:j()),te=async()=>{const e=await ee(),a=h.auth,{data:t}=await c.get(`customers/${a.customer_id}`,{accessToken:e});return h.customer=t,t};let $=!1;const re=e=>{if($)return;e===void 0&&(e=!window.location.pathname.startsWith("/app/")),$=!0;const a=()=>V(()=>import("./firebase-app.VduCDgof.js"),__vite__mapDeps([0,1])).then(({getAuth:t,onAuthStateChanged:r,isSignInWithEmailLink:i,signInWithEmailLink:o})=>{if(w=t(),r(w,async s=>{if(s){if(s.displayName&&!k.value&&(h.customer.display_name=s.displayName),s.email&&(!O.value||s.emailVerified)&&(h.customer.main_email=s.email),s.emailVerified){const n=s.email!==O.value;(n||!v.value)&&(await D(),(n||!k.value)&&await te())}}else Z()}),i(w,window.location.href)){const n=new URLSearchParams(window.location.search).get("email");n&&o(w,n,window.location.href).then(()=>window.localStorage.removeItem(W)).catch(console.error)}}).catch(console.error);e?B(a):a()};export{W as E,V as _,k as a,c as b,R as c,ne as d,re as e,O as f,v as i,Z as l,h as s,F as u};
2
- function __vite__mapDeps(indexes) {
3
- if (!__vite__mapDeps.viteFileDeps) {
4
- __vite__mapDeps.viteFileDeps = ["_astro/firebase-app.VduCDgof.js","_astro/index-dd468b12.fl8bpn8l.js"]
5
- }
6
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7
- }
@@ -1 +0,0 @@
1
- import{_ as t}from"./runtime-core.esm-bundler.XTSAdOlw.js";import{g as c}from"./price.Easct8WC.js";const s=(r,o=t.get("currency"),e=t.get("lang"))=>{if(typeof r=="object"?r!==null&&(r=c(r)):typeof r=="string"&&(r=parseFloat(r)),o)try{return r.toLocaleString(e.replace("_","-"),{style:"currency",currency:o})}catch(f){console.error(f)}const n=(o||t.get("currency_symbol"))+" ";return typeof r=="number"?n+r:""},g=s;export{g as f};
@@ -1 +0,0 @@
1
- import{_ as g}from"./runtime-core.esm-bundler.XTSAdOlw.js";import{g as a}from"./name.urFqJ5yn.js";const s=(t,e,i=g.get("lang"))=>{let r;return Array.isArray(e)?r=e.find(o=>o.grid_id===t):console.error("`grids` must be array to get grid title"),r?a(r,i):t},m=s;export{m as g};
@@ -1 +0,0 @@
1
- import{u as C,w as V,a as I,e as Y,b as $,t as v}from"./use-analytics.WpkjGsWi.js";import{a as H}from"./afetch.5c8VmT0-.js";import{u as R}from"./index.q6KIyKlJ.js";import"./customer-session.TRPGDX3c.js";import"./sf-utils.luvTU5uS.js";import"./runtime-core.esm-bundler.XTSAdOlw.js";import"./shopping-cart.ATTXCPd0.js";import"./price.Easct8WC.js";import"./name.urFqJ5yn.js";import"./i18n.Lxnz1oF-.js";const p={waiting:Promise.resolve(),params:{content_ids:[],content_name:""}},A=(t,e="BRL",n=!1)=>{const a={currency:e,content_category:t.item_category,content_name:t.item_name,value:t.price,content_type:"product"};return n?(a.contents=[{id:t.item_id,quantity:t.quantity}],Number(t.quantity)<0&&(a.value=0)):a.content_ids=[t.item_id],a},W=async({event:t})=>{if(t.name==="page_view")return p.waiting=new Promise(a=>{setTimeout(a,110)}),p.params.content_name=t.params.page_title,[{name:"PageView"}];const{items:e,currency:n}=t.params;if(t.name==="view_item"&&e){const a=e[0];if(a)return a.item_list_id==="product-page"?[{name:"ViewContent",params:A(a,n)}]:(e.forEach(({item_id:i})=>{p.params.content_ids.push(i)}),p.params.content_ids.length>e.length?[{name:null}]:(await p.waiting,[{name:"ViewContent",params:{...p.params,content_type:"product"}}]))}if((t.name==="add_to_cart"||t.name==="remove_from_cart")&&e){const a=t.name==="add_to_cart";return e.map(i=>({name:"AddToCart",params:A({...i,quantity:a?i.quantity||1:-(i.quantity||1)},n,!0)}))}return[{name:null}]},h={waiting:Promise.resolve(),params:{description:"",contents:[]}},w=(t,e=!1)=>{const n={content_id:t.item_id,content_name:t.item_name,price:t.price,content_category:t.item_category,brand:t.item_brand};return e&&(n.quantity=t.quantity),n},D=async({event:t})=>{if(t.name==="page_view")return h.waiting=new Promise(a=>{setTimeout(a,110)}),h.params.description=t.params.page_title,[{name:"PageView"}];const{items:e,currency:n}=t.params;if(t.name==="view_item"&&e){const a=e[0];if(a)return a.item_list_id==="product-page"?[{name:"ViewContent",params:{contents:[w(a)],content_type:"product",currency:n,value:a.price}}]:(e.forEach(i=>{h.params.contents.push(w(i))}),h.params.contents.length>e.length?[{name:null}]:(await h.waiting,[{name:"ViewContent",params:{...h.params,content_type:"product",currency:n}}]))}if((t.name==="add_to_cart"||t.name==="remove_from_cart")&&e){const a=t.name==="add_to_cart";return e.map(i=>{const l=i.quantity||1,{price:d}=i;return{name:"AddToCart",params:{contents:[w({...i,quantity:a?l:-l},!0)],content_type:"product",currency:n,value:a&&typeof d=="number"?l*d:0}}})}return[{name:null}]};let b=[];const F=R(()=>{H("/_analytics",{method:"post",body:{...I(),events:b}}),b=[]},200),_=t=>{b.push(t),F()};{C(),V(async n=>{const{name:a,params:i}=n.event;_({type:"gtag",name:a,params:i});const{gtag:l,dataLayer:d,fbq:s,ttq:c}=window;typeof l=="function"&&l("event",a,i),d&&typeof d.push=="function"&&d.push(["event",a,i]),(await W(n)).forEach(o=>{o.name&&(_({type:"fbq",...o}),typeof s=="function"&&s("track",o.name,o.params))}),(await D(n)).forEach(o=>{o.name&&(_({type:"ttk",...o}),typeof c?.page=="function"&&(o.name==="PageView"?c.page():c.track(o.name,o.params)))})});let t="";const e=()=>{const n=window.location.toString();n!==t&&(Y("page_view",{...$(),page_location:n,client_id:v.g_client_id||v.client_id}),t=n)};e(),window.addEventListener("storefront:apiContext",()=>{try{window.dataLayer.push(function(){this.reset(),e()})}catch{e()}})}const y=t=>history.replaceState(t,""),k=!!document.startViewTransition,g=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),q=t=>document.dispatchEvent(new Event(t)),P=()=>q("astro:load"),f="data-astro-transition-persist";let m=history.state?.index||0;!history.state&&g()&&y({index:m,scrollY:0});const G=(t,e)=>{let n=!1,a=!1;return(...i)=>{if(n){a=!0;return}t(...i),n=!0,setTimeout(()=>{a&&(a=!1,t(...i)),n=!1},e)}};async function M(t){const e=await fetch(t),n=await e.text();return{ok:e.ok,html:n}}function x(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function L(){for(const t of document.scripts)t.dataset.astroExec=""}function K(){let t=Promise.resolve();for(const e of Array.from(document.scripts)){if(e.dataset.astroExec==="")continue;const n=document.createElement("script");n.innerHTML=e.innerHTML;for(const a of e.attributes){if(a.name==="src"){const i=new Promise(l=>{n.onload=l});t=t.then(()=>i)}n.setAttribute(a.name,a.value)}n.dataset.astroExec="",e.replaceWith(n)}return t}const B=new DOMParser;async function T(t,e,n){const a=B.parseFromString(t,"text/html"),i=s=>{const c=s.getAttribute(f),u=c&&a.head.querySelector(`[${f}="${c}"]`);if(u)return u;if(s.matches("link[rel=stylesheet]")){const r=s.getAttribute("href");return a.head.querySelector(`link[rel=stylesheet][href="${r}"]`)}if(s.tagName==="SCRIPT"){let r=s;for(const o of a.scripts)if(r.textContent&&r.textContent===o.textContent||r.type===o.type&&r.src&&r.src===o.src)return o}return null},l=()=>{a.querySelectorAll("head noscript").forEach(r=>r.remove());const s=document.documentElement,c=[...s.attributes].filter(({name:r})=>(s.removeAttribute(r),r.startsWith("data-astro-")));[...a.documentElement.attributes,...c].forEach(({name:r,value:o})=>s.setAttribute(r,o));for(const r of Array.from(document.head.children)){const o=i(r);o?o.remove():r.remove()}document.head.append(...a.head.children);const u=document.body;document.body.replaceWith(a.body);for(const r of u.querySelectorAll(`[${f}]`)){const o=r.getAttribute(f),E=document.querySelector(`[${f}="${o}"]`);E&&E.replaceWith(r)}if(scrollTo({left:0,top:0,behavior:"instant"}),e?.scrollY===0&&location.hash){const r=decodeURIComponent(location.hash.slice(1)),o=document.getElementById(r);o&&(e.scrollY=o.offsetTop,y(e),o.scrollIntoView())}else e&&e.scrollY!==0&&scrollTo(0,e.scrollY);q("astro:beforeload")},d=[];for(const s of a.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${f}="${s.getAttribute(f)}"], link[rel=stylesheet]`)){const c=document.createElement("link");c.setAttribute("rel","preload"),c.setAttribute("as","style"),c.setAttribute("href",s.getAttribute("href")),d.push(new Promise(u=>{["load","error"].forEach(r=>c.addEventListener(r,u)),document.head.append(c)}))}if(d.length&&await Promise.all(d),n==="animate"){let s=!1;addEventListener("animationstart",()=>s=!0,{once:!0}),document.documentElement.dataset.astroTransitionFallback="old",await new Promise(c=>{const u=()=>{removeEventListener("animationend",u),clearTimeout(r),l(),c(!0),document.documentElement.dataset.astroTransitionFallback="new"};addEventListener("animationend",u,{once:!0});let r=setTimeout(()=>!s&&u())})}else l()}async function S(t,e,n){let a;const{html:i,ok:l}=await M(e);if(!l){location.href=e;return}document.documentElement.dataset.astroTransition=t,k?a=document.startViewTransition(()=>T(i,n)).finished:a=T(i,n,x());try{await a}finally{await K(),L(),P()}}function N(t){if(document.querySelector(`link[rel=prefetch][href="${t}"]`))return;if(navigator.connection){let n=navigator.connection;if(n.saveData||/(2|3)g/.test(n.effectiveType||""))return}let e=document.createElement("link");e.setAttribute("rel","prefetch"),e.setAttribute("href",t),document.head.append(e)}(k||x()!=="none")&&!location.pathname.startsWith("/app/")&&(L(),document.addEventListener("click",t=>{let e=t.target;if(e instanceof Element&&e.tagName!=="A"&&(e=e.closest("a")),!e||!(e instanceof HTMLAnchorElement)||e.dataset.astroReload!==void 0||e.hasAttribute("download")||!e.href||e.pathname.startsWith("/app/")||e.target&&e.target!=="_self"||e.origin!==location.origin||t.button!==0||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented||!g())return;if(location.pathname===e.pathname&&location.search===e.search){if(e.hash)return;if(t.preventDefault(),y({...history.state,scrollY}),scrollTo({left:0,top:0,behavior:"instant"}),location.hash){const a={index:++m,scrollY:0};history.pushState(a,"",e.href)}return}t.preventDefault(),S("forward",e.href,{index:++m,scrollY:0});const n={index:m,scrollY};y({index:m-1,scrollY}),history.pushState(n,"",e.href)}),addEventListener("popstate",t=>{if(!g()&&t.state){location.reload();return}if(t.state===null)return;const e=history.state,n=e?.index??m+1,a=n>m?"forward":"back";S(a,location.href,e),m=n}),["mouseenter","touchstart","focus"].forEach(t=>{document.addEventListener(t,e=>{if(e.target instanceof HTMLAnchorElement){let n=e.target;n.origin===location.origin&&n.pathname!==location.pathname&&!n.pathname.startsWith("/app/")&&n.dataset.astroReload===void 0&&!n.hasAttribute("download")&&n.role!=="button"&&g()&&N(n.pathname)}},{passive:!0,capture:!0})}),addEventListener("load",P),addEventListener("scroll",G(()=>{history.state&&y({...history.state,scrollY})},300),{passive:!0}));
@@ -1 +0,0 @@
1
- import"./hoisted.8pwSenCN.js";import"./afetch.5c8VmT0-.js";import"./use-analytics.WpkjGsWi.js";import"./customer-session.TRPGDX3c.js";import"./sf-utils.luvTU5uS.js";import"./index.q6KIyKlJ.js";import"./runtime-core.esm-bundler.XTSAdOlw.js";import"./shopping-cart.ATTXCPd0.js";import"./price.Easct8WC.js";import"./name.urFqJ5yn.js";import"./i18n.Lxnz1oF-.js";const t=window.location.search.includes("status=404")?"404Msg":"5xxMsg";document.getElementById(t).style.display="block";document.getElementById("loadingMsg").style.display="none";
@@ -1 +0,0 @@
1
- import{i as E,s as b,c as p,a as N}from"./customer-session.TRPGDX3c.js";import{s as w}from"./shopping-cart.ATTXCPd0.js";import{g as v,e as I}from"./use-analytics.WpkjGsWi.js";import{u as O}from"./afetch.5c8VmT0-.js";import"./index.q6KIyKlJ.js";import{w as T}from"./runtime-core.esm-bundler.XTSAdOlw.js";import"./hoisted.8pwSenCN.js";import"./sf-utils.luvTU5uS.js";import"./price.Easct8WC.js";import"./name.urFqJ5yn.js";import"./i18n.Lxnz1oF-.js";const R=o=>{let a="";if(typeof o=="object"&&o!==null){let i=Array.isArray(o.phones)?o.phones[0]:o;i&&i.number&&(i.country_code&&(a=`+${i.country_code} `),a+=i.number)}return a},k=R,M=()=>{const o=window.storefrontApp?.router;if(o){const a=()=>sessionStorage.getItem("st_discount_coupon")||void 0,i=s=>Math.round(s*100)/100,h=[],r=(s,t)=>{h.includes(s)||(h.push(s),t||(t={value:i(w.subtotal||0),items:w.items.map(v)}),s!=="view_cart"&&(t.coupon=a(),h.includes("begin_checkout")||r("begin_checkout")),I(s,t))};let g=!1;const m=(s,t)=>{if(!g){if(localStorage.getItem("gtag.orderIdSent")!==s){let _;if(t)try{_=JSON.parse(t)}catch{}const{amount:l}=_||window.storefrontApp,S={transaction_id:s,value:i(l?.total||w.subtotal||0),items:w.items.map(v),coupon:_?_.extra_discount?.discount_coupon:a()};l&&(l.freight!==void 0&&(S.shipping=i(l.freight)),l.tax!==void 0&&(S.tax=i(l.tax)));let A=1;const{dataLayer:y,__sendGTMExtraPurchaseData:P}=window;if(y&&P){const n={};let e;if(p){n.customerDisplayName=N.value;let c=p.value.name;if(!c?.given_name)try{const f=sessionStorage.getItem("ecomCustomerAccount");if(f){const C=JSON.parse(f);typeof C=="object"&&C&&(c=C.name)}}catch{}c&&(n.customerGivenName=c.given_name,n.customerFamilyName=c.family_name),n.customerEmail=p.value.main_email,n.customerPhone=k(p.value),e=p.value.addresses?.[0]}try{const c=sessionStorage.getItem("ecomCustomerAddress");if(c){const f=JSON.parse(c);typeof e=="object"&&e?Object.assign(e,f):e=f}}catch{}e&&e.zip&&(n.shippingAddrZip=e.zip,n.shippingAddrStreet=e.street,n.shippingAddrNumber=e.number,e.street&&e.number&&(n.shippingAddrStreet+=`, ${e.number}`),n.shippingAddrCity=e.city,n.shippingAddrProvinceCode=e.province_code),y.push({event:"purchaseExtraData",...n}),A=100}setTimeout(()=>I("purchase",S),A),localStorage.setItem("gtag.orderIdSent",s)}g=!0}};let u;const d=({name:s,params:t})=>{switch(s){case"cart":r("view_cart");break;case"checkout":t.step?Number(t.step)===1?r("add_shipping_info"):Number(t.step)===2&&r("add_payment_info"):r("begin_checkout");break;case"confirmation":clearTimeout(u),t.json?m(t.id,decodeURIComponent(t.json)):u=setTimeout(()=>{m(t.id)},1500);break}};o.currentRoute&&d(o.currentRoute),o.afterEach(d)}};{Object.keys(O).length&&sessionStorage.setItem("ecomUtm",JSON.stringify(O));let o=window.location.search;!o&&window.location.hash&&(o="?"+window.location.hash.split("?")[1]);const a=new URLSearchParams(o);a.get("product_id")&&a.get("quantity")==="1"&&(localStorage.setItem("ecomShoppingCart__tmp",JSON.stringify({items:[{product_id:a.get("product_id"),variation_id:a.get("variation_id")||void 0,quantity:1}]})),window.ECOM_CART_STORAGE_KEY="ecomShoppingCart__tmp");const{hostname:i}=window.location,{domain:h}=globalThis.$storefront.settings,r=`https://ecomplus.io/v2/:${window.ECOM_STORE_ID}/`;window.ECOMCLIENT_API_STORE=r,window.ECOMCLIENT_API_STORE_CACHE=r,window.ECOMCLIENT_API_PASSPORT=r,window.ECOMCLIENT_API_SEARCH=`${r}/search/_els/`,window.ECOMCLIENT_API_MODULES=["localhost","127.0.0.1"].includes(i)?`https://${h}/_api/modules/`:"/_api/modules/";const g=()=>{const{ecomPassport:u}=window;T(E,async()=>{E.value?u.setSession({auth:{...b.auth,id:b.auth?.customer_id,level:3},customer:p.value}):u.checkLogin()&&u.logout()},{immediate:!0}),T(p,d=>{(d.display_name||d.main_email)&&u.setCustomer(d)},{immediate:!0}),setTimeout(M,400)},m=document.createElement("script");m.src="https://cdn.jsdelivr.net/npm/@ecomplus/storefront-app@2.0.0-beta.190/dist/lib/js/app.js",m.onload=g,document.body.appendChild(m)}
@@ -1 +0,0 @@
1
- import{D as n,_ as o}from"./runtime-core.esm-bundler.XTSAdOlw.js";const t=(e,f=o.get("lang"))=>{if(typeof e=="object"&&e!==null){const p=Object.keys(e)[0];if(/^[a-z]{2}(_[a-z]{2})?$/.test(p))return e[f]||e[n]||e[p];{const r=Array.isArray(e)?[]:{};for(const s in e)e[s]!==void 0&&(r[s]=t(e[s],f));return r}}return e},u=t;export{u as i};
@@ -1 +0,0 @@
1
- import{_ as n}from"./runtime-core.esm-bundler.XTSAdOlw.js";const m=(l,f,o)=>{if(o||(o=n.get("default_img_size")||"normal"),l){let{pictures:a,picture:e}=l;e||a||(Array.isArray(l)?a=l:e=l),Array.isArray(a)&&(e=f&&a.filter(r=>r._id===f)[0]||a[0]);let s;if(typeof e=="object"&&e!==null){if(s=e[o],s&&s.url)return s;let r;switch(o){case"small":r=["normal","big"];break;case"normal":r=["big","zoom","small"];break;case"big":r=["zoom","normal"];break;case"zoom":r=["big"];break;default:r=["big","zoom","normal","small"]}for(let i=0;i<r.length;i++){const t=r[i];if(e[t]&&e[t].url)return e[t]}for(const i in e)if(e[i]&&e[i].url)return e[i]}}},b=m;export{b as g};
@@ -1 +0,0 @@
1
- import{m as N,w as X,i as q,n as $,a as z,t as _,c as B,u as Q,b as Y,d as G,e as J,f as Z}from"./index.q6KIyKlJ.js";import{s as ee,r as D,w as te,d as W,a as C,c as j}from"./runtime-core.esm-bundler.XTSAdOlw.js";function re(t={}){const{inheritAttrs:u=!0}=t,o=ee(),r=W({setup(p,{slots:e}){return()=>{o.value=e.default}}}),b=W({inheritAttrs:u,setup(p,{attrs:e,slots:i}){return()=>{var v;o.value;const f=(v=o.value)==null?void 0:v.call(o,{...oe(e),$slots:i});return u&&f?.length===1?f[0]:f}}});return N({define:r,reuse:b},[r,b])}function oe(t){const u={};for(const o in t)u[B(o)]=t[o];return u}function k(t){var u;const o=_(t);return(u=o?.$el)!=null?u:o}const R=q?window:void 0;function A(...t){let u,o,r,b;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,r,b]=t,u=R):[u,o,r,b]=t,!u)return $;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const p=[],e=()=>{p.forEach(h=>h()),p.length=0},i=(h,y,n,c)=>(h.addEventListener(y,n,c),()=>h.removeEventListener(y,n,c)),v=te(()=>[k(u),_(b)],([h,y])=>{if(e(),!h)return;const n=z(y)?{...y}:y;p.push(...o.flatMap(c=>r.map(m=>i(h,c,m,n))))},{immediate:!0,flush:"post"}),f=()=>{v(),e()};return Z(f),f}let U=!1;function le(t,u,o={}){const{window:r=R,ignore:b=[],capture:p=!0,detectIframe:e=!1}=o;if(!r)return $;J&&!U&&(U=!0,Array.from(r.document.body.children).forEach(n=>n.addEventListener("click",$)),r.document.documentElement.addEventListener("click",$));let i=!0;const v=n=>b.some(c=>{if(typeof c=="string")return Array.from(r.document.querySelectorAll(c)).some(m=>m===n.target||n.composedPath().includes(m));{const m=k(c);return m&&(n.target===m||n.composedPath().includes(m))}}),h=[A(r,"click",n=>{const c=k(t);if(!(!c||c===n.target||n.composedPath().includes(c))){if(n.detail===0&&(i=!v(n)),!i){i=!0;return}u(n)}},{passive:!0,capture:p}),A(r,"pointerdown",n=>{const c=k(t);i=!v(n)&&!!(c&&!n.composedPath().includes(c))},{passive:!0}),e&&A(r,"blur",n=>{setTimeout(()=>{var c;const m=k(t);((c=r.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!m?.contains(r.document.activeElement)&&u(n)},0)})].filter(Boolean);return()=>h.forEach(n=>n())}function ae(t,u={}){const{delayEnter:o=0,delayLeave:r=0,window:b=R}=u,p=C(!1);let e;const i=v=>{const f=v?o:r;e&&(clearTimeout(e),e=void 0),f?e=setTimeout(()=>p.value=v,f):p.value=v};return b&&(A(t,"mouseenter",()=>i(!0),{passive:!0}),A(t,"mouseleave",()=>i(!1),{passive:!0})),p}const K=1;function ie(t,u={}){const{throttle:o=0,idle:r=200,onStop:b=$,onScroll:p=$,offset:e={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:v="auto",window:f=R}=u,h=C(0),y=C(0),n=j({get(){return h.value},set(a){m(a,void 0)}}),c=j({get(){return y.value},set(a){m(void 0,a)}});function m(a,L){var E,x,P;if(!f)return;const S=_(t);S&&((P=S instanceof Document?f.document.body:S)==null||P.scrollTo({top:(E=_(L))!=null?E:c.value,left:(x=_(a))!=null?x:n.value,behavior:_(v)}))}const T=C(!1),w=D({left:!0,right:!1,top:!0,bottom:!1}),s=D({left:!1,right:!1,top:!1,bottom:!1}),l=a=>{T.value&&(T.value=!1,s.left=!1,s.right=!1,s.top=!1,s.bottom=!1,b(a))},d=Q(l,o+r),g=a=>{var L;if(!f)return;const E=a.document?a.document.documentElement:(L=a.documentElement)!=null?L:a,{display:x,flexDirection:P}=getComputedStyle(E),S=E.scrollLeft;s.left=S<h.value,s.right=S>h.value;const M=Math.abs(S)<=0+(e.left||0),F=Math.abs(S)+E.clientWidth>=E.scrollWidth-(e.right||0)-K;x==="flex"&&P==="row-reverse"?(w.left=F,w.right=M):(w.left=M,w.right=F),h.value=S;let O=E.scrollTop;a===f.document&&!O&&(O=f.document.body.scrollTop),s.top=O<y.value,s.bottom=O>y.value;const I=Math.abs(O)<=0+(e.top||0),V=Math.abs(O)+E.clientHeight>=E.scrollHeight-(e.bottom||0)-K;x==="flex"&&P==="column-reverse"?(w.top=V,w.bottom=I):(w.top=I,w.bottom=V),y.value=O},H=a=>{var L;if(!f)return;const E=(L=a.target.documentElement)!=null?L:a.target;g(E),T.value=!0,d(a),p(a)};return A(t,"scroll",o?Y(H,o,!0,!1):H,i),G(()=>{const a=_(t);a&&g(a)}),A(t,"scrollend",l,i),{x:n,y:c,isScrolling:T,arrivedState:w,directions:s,measure(){const a=_(t);f&&a&&g(a)}}}function ce(t="history",u={}){const{initialValue:o={},removeNullishValues:r=!0,removeFalsyValues:b=!1,write:p=!0,window:e=R}=u;if(!e)return D(o);const i=D({});function v(){if(t==="history")return e.location.search||"";if(t==="hash"){const s=e.location.hash||"",l=s.indexOf("?");return l>0?s.slice(l):""}else return(e.location.hash||"").replace(/^#/,"")}function f(s){const l=s.toString();if(t==="history")return`${l?`?${l}`:""}${e.location.hash||""}`;if(t==="hash-params")return`${e.location.search||""}${l?`#${l}`:""}`;const d=e.location.hash||"#",g=d.indexOf("?");return g>0?`${d.slice(0,g)}${l?`?${l}`:""}`:`${d}${l?`?${l}`:""}`}function h(){return new URLSearchParams(v())}function y(s){const l=new Set(Object.keys(i));for(const d of s.keys()){const g=s.getAll(d);i[d]=g.length>1?g:s.get(d)||"",l.delete(d)}Array.from(l).forEach(d=>delete i[d])}const{pause:n,resume:c}=X(i,()=>{const s=new URLSearchParams("");Object.keys(i).forEach(l=>{const d=i[l];Array.isArray(d)?d.forEach(g=>s.append(l,g)):r&&d==null||b&&!d?s.delete(l):s.set(l,d)}),m(s)},{deep:!0});function m(s,l){n(),l&&y(s),e.history.replaceState(e.history.state,e.document.title,e.location.pathname+f(s)),c()}function T(){p&&m(h(),!0)}A(e,"popstate",T,!1),t!=="history"&&A(e,"hashchange",T,!1);const w=h();return w.keys().next().value?y(w):Object.assign(i,o),i}export{ie as a,ae as b,re as c,le as o,ce as u};
@@ -1 +0,0 @@
1
- import{C as D,_ as C,w as b,E as T,F as A,a as y,G as F,c as W,H as _,I,J as k,K as M}from"./runtime-core.esm-bundler.XTSAdOlw.js";D.$ecomConfig||C;function E(e){return k()?(M(e),!0):!1}function $(e,t){if(typeof Symbol<"u"){const n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let o=0;return{next:()=>({value:t[o++],done:o>t.length})}}}),n}else return Object.assign([...t],e)}function m(e){return typeof e=="function"?e():A(e)}const O=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const G=Object.prototype.toString,q=e=>G.call(e)==="[object Object]",l=()=>{},B=R();function R(){var e,t;return O&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function v(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const P=e=>e();function x(e,t={}){let n,o,i=l;const r=s=>{clearTimeout(s),i(),i=l};return s=>{const u=m(e),c=m(t.maxWait);return n&&r(n),u<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(s())):new Promise((f,p)=>{i=t.rejectOnCancel?p:f,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,f(s())},c)),n=setTimeout(()=>{o&&r(o),o=null,f(s())},u)})}}function z(e,t=!0,n=!0,o=!1){let i=0,r,a=!0,s=l,u;const c=()=>{r&&(clearTimeout(r),r=void 0,s(),s=l)};return p=>{const d=m(e),h=Date.now()-i,w=()=>u=p();return c(),d<=0?(i=Date.now(),w()):(h>d&&(n||!a)?(i=Date.now(),w()):t&&(u=new Promise((g,j)=>{s=o?j:g,r=setTimeout(()=>{i=Date.now(),a=!0,g(w()),c()},Math.max(0,d-h))})),!n&&!r&&(r=setTimeout(()=>a=!0,d)),a=!1,u)}}function L(e=P){const t=y(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:F(t),pause:n,resume:o,eventFilter:i}}function V(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}const H=/-(\w)/g,N=V(e=>e.replace(H,(t,n)=>n?n.toUpperCase():""));function Q(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function J(e){return e||I()}function X(e,t=200,n={}){return v(x(t,n),e)}function Y(e,t=200,n=!1,o=!0,i=!1){return v(z(t,n,o,i),e)}function S(e,t,n={}){const{eventFilter:o=P,...i}=n;return b(e,v(o,t),i)}function Z(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:a,resume:s,isActive:u}=L(o);return{stop:S(e,t,{...i,eventFilter:r}),pause:a,resume:s,isActive:u}}function ee(e,t=!0,n){J()?_(e,n):t?e():T(e)}function K(e,t,n={}){const{immediate:o=!0}=n,i=y(!1);let r=null;function a(){r&&(clearTimeout(r),r=null)}function s(){i.value=!1,a()}function u(...c){a(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...c)},m(t))}return o&&(i.value=!0,O&&u()),E(s),{isPending:F(i),start:u,stop:s}}function te(e=1e3,t={}){const{controls:n=!1,callback:o}=t,i=K(o??l,e,t),r=W(()=>!i.isPending.value);return n?{ready:r,...i}:r}function ne(e,t,n={}){const{debounce:o=0,maxWait:i=void 0,...r}=n;return S(e,t,{...r,eventFilter:x(o,{maxWait:i})})}function oe(e,t,n){const o=b(e,(...i)=>(T(()=>o()),t(...i)),n);return o}export{q as a,Y as b,N as c,ee as d,B as e,E as f,oe as g,ne as h,O as i,te as j,$ as m,l as n,Q as p,m as t,X as u,Z as w};
@@ -1 +0,0 @@
1
- import{l as v,u as g,a as I}from"./afetch.5c8VmT0-.js";import{r as O}from"./sf-utils.luvTU5uS.js";import{r as S,c as l}from"./runtime-core.esm-bundler.XTSAdOlw.js";import{f as x}from"./format-money.iK5LGydz.js";const w={list_payments:{},calculate_shipping:{},apply_discount:{}},n=S(w);v.then(o=>{Object.assign(n,o)});{const o="MODULES_INFO",m=sessionStorage.getItem(o);if(m)try{const a=JSON.parse(m);a.__timestamp>=Date.now()-1e3*60*5?(delete a.__timestamp,Object.assign(n,a)):sessionStorage.removeItem(o)}catch{sessionStorage.removeItem(o)}O(()=>{const a=[];["list_payments","calculate_shipping"].forEach(i=>{Object.keys(n[i]).length||a.push({modName:i})}),Object.keys(g).length&&a.push({modName:"apply_discount",reqOptions:{method:"post",body:{utm:g}}}),a.forEach(({modName:i,reqOptions:p})=>{const{hostname:c}=window.location,{domain:f}=globalThis.$storefront.settings,d=c!=="localhost"&&c!=="127.0.0.1"?`https://${f}/_api/modules/`:"/_api/modules/";I(`${d}${i}`,p).then(async h=>{if(h.ok){const s={};n[i]=s;const{result:y}=await h.json();Array.isArray(y)&&y.forEach(({error:b,response:r})=>{if(!b){let t,e;switch(i){case"calculate_shipping":t="free_shipping_from_value",e=r[t],typeof e=="number"&&(s[t]===void 0||e<s[t])&&(s[t]=e);break;case"list_payments":t="installments_option",e=r[t],e&&(!s[t]||e.monthly_interest<s[t].monthly_interest||e.max_number>s[t].max_number)&&(s[t]=e),t="discount_option",e=r[t],e&&(!s[t]||e.value>s[t].value)&&r.payment_gateways.forEach(({discount:_})=>{_&&_.apply_at!=="freight"&&_.value===e.value&&(s[t]={apply_at:_.apply_at,...e})}),t="loyalty_points_programs",e=r[t],e&&(s[t]={...s[t],...e});break;default:t="available_extra_discount",e=r[t],e&&(!s[t]||e.value>s[t].value)&&(s[t]=e)}}}),sessionStorage.setItem(o,JSON.stringify({...n,__timestamp:Date.now()}))}}).catch(console.error)})})}const D=l(()=>n.calculate_shipping.free_shipping_from_value),F=l(()=>n.list_payments.installments_option),J=l(()=>n.list_payments.discount_option),V=l(()=>n.list_payments.loyalty_points_programs),q=l(()=>n.apply_discount.available_extra_discount),k=(o,m,u,a=x)=>l(()=>{const i=`{${u}}`,p=o.indexOf(i);if(p>-1){const c=n[m][u];if(c){const f=a(c);return o.substring(0,p)+f+o.substring(p+i.length)}return""}return o}),A=o=>k(o,"calculate_shipping","free_shipping_from_value");export{q as a,J as d,D as f,F as i,V as l,A as p};
@@ -1 +0,0 @@
1
- import{_ as t}from"./runtime-core.esm-bundler.XTSAdOlw.js";import{i as n}from"./i18n.Lxnz1oF-.js";const r=(e,i=t.get("lang"))=>i&&e.i18n&&e.i18n[i]?e.i18n[i]:e.name||e.title||n(e.i18n,i)||"",a=r;export{a as g};
@@ -1,13 +0,0 @@
1
- var gs={};let St,pn;typeof window=="object"&&window?pn=St=window:typeof process=="object"&&gs?(pn=global,St=gs):pn=St=typeof self=="object"&&self||{};const Xr="en_us",zr="USD",el="$",tl="US",nl=1011,sl="5b1abe30a4d4531b8fe40725",rl=e=>{if(typeof document=="object"&&document){const t=document.getElementsByTagName("meta");for(let n=0;n<t.length;n++)if(t[n].getAttribute("name")===e.replace(/_/g,"-")){const s=t[n].getAttribute("content");return e==="ecom_store_id"?parseInt(s,10):s}}return St[e.toUpperCase()]},wn={};["lang","currency","currency_symbol","country_code","store_id","store_object_id"].forEach(e=>{wn[e]=rl("ecom_"+e)});const ho={get(e){const t=wn[e];if(t!=null&&t!=="")return t;switch(e){case"lang":return Xr;case"currency":return zr;case"currency_symbol":return el;case"country_code":return tl;case"store_id":return nl;case"store_object_id":return sl}return null},set(e,t){wn[e]=t}};/**
2
- * @vue/shared v3.4.15
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/function Vn(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const ee={},nt=[],Te=()=>{},ll=()=>!1,en=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$s=e=>e.startsWith("onUpdate:"),ue=Object.assign,$n=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},il=Object.prototype.hasOwnProperty,J=(e,t)=>il.call(e,t),U=Array.isArray,st=e=>Et(e)==="[object Map]",Ds=e=>Et(e)==="[object Set]",ps=e=>Et(e)==="[object Date]",$=e=>typeof e=="function",le=e=>typeof e=="string",De=e=>typeof e=="symbol",z=e=>e!==null&&typeof e=="object",Ks=e=>(z(e)||$(e))&&$(e.then)&&$(e.catch),Ws=Object.prototype.toString,Et=e=>Ws.call(e),ol=e=>Et(e).slice(8,-1),qs=e=>Et(e)==="[object Object]",Dn=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gt=Vn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),tn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},fl=/-(\w)/g,Be=tn(e=>e.replace(fl,(t,n)=>n?n.toUpperCase():"")),cl=/\B([A-Z])/g,nn=tn(e=>e.replace(cl,"-$1").toLowerCase()),Kn=tn(e=>e.charAt(0).toUpperCase()+e.slice(1)),_n=tn(e=>e?`on${Kn(e)}`:""),Ke=(e,t)=>!Object.is(e,t),yn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Wt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ul=e=>{const t=parseFloat(e);return isNaN(t)?e:t},al=e=>{const t=le(e)?Number(e):NaN;return isNaN(t)?e:t};let _s;const Gs=()=>_s||(_s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function sn(e){if(U(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=le(s)?pl(s):sn(s);if(r)for(const l in r)t[l]=r[l]}return t}else if(le(e)||z(e))return e}const hl=/;(?![^(]*\))/g,dl=/:([^]+)/,gl=/\/\*[^]*?\*\//g;function pl(e){const t={};return e.replace(gl,"").split(hl).forEach(n=>{if(n){const s=n.split(dl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function rn(e){let t="";if(le(e))t=e;else if(U(e))for(let n=0;n<e.length;n++){const s=rn(e[n]);s&&(t+=s+" ")}else if(z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function go(e){if(!e)return null;let{class:t,style:n}=e;return t&&!le(t)&&(e.class=rn(t)),n&&(e.style=sn(n)),e}const _l="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",po=Vn(_l);function _o(e){return!!e||e===""}function yl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Ys(e[s],t[s]);return n}function Ys(e,t){if(e===t)return!0;let n=ps(e),s=ps(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=De(e),s=De(t),n||s)return e===t;if(n=U(e),s=U(t),n||s)return n&&s?yl(e,t):!1;if(n=z(e),s=z(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,l=Object.keys(t).length;if(r!==l)return!1;for(const i in e){const o=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(o&&!c||!o&&c||!Ys(e[i],t[i]))return!1}}return String(e)===String(t)}const yo=e=>le(e)?e:e==null?"":U(e)||z(e)&&(e.toString===Ws||!$(e.toString))?JSON.stringify(e,Js,2):String(e),Js=(e,t)=>t&&t.__v_isRef?Js(e,t.value):st(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],l)=>(n[mn(s,l)+" =>"]=r,n),{})}:Ds(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>mn(n))}:De(t)?mn(t):z(t)&&!U(t)&&!qs(t)?String(t):t,mn=(e,t="")=>{var n;return De(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
- * @vue/reactivity v3.4.15
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let me;class ml{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=me,!t&&me&&(this.index=(me.scopes||(me.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=me;try{return me=this,t()}finally{me=n}}}on(){me=this}off(){me=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function bl(e,t=me){t&&t.active&&t.effects.push(e)}function xl(){return me}function mo(e){me&&me.cleanups.push(e)}let Ze;class Wn{constructor(t,n,s,r){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,bl(this,r)}get dirty(){if(this._dirtyLevel===1){Xe();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Cl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),ze()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ve,n=Ze;try{return Ve=!0,Ze=this,this._runnings++,ys(this),this.fn()}finally{ms(this),this._runnings--,Ze=n,Ve=t}}stop(){var t;this.active&&(ys(this),ms(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Cl(e){return e.value}function ys(e){e._trackId++,e._depsLength=0}function ms(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Zs(e.deps[t],e);e.deps.length=e._depsLength}}function Zs(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ve=!0,Fn=0;const Qs=[];function Xe(){Qs.push(Ve),Ve=!1}function ze(){const e=Qs.pop();Ve=e===void 0?!0:e}function qn(){Fn++}function Gn(){for(Fn--;!Fn&&An.length;)An.shift()()}function Xs(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Zs(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const An=[];function zs(e,t,n){qn();for(const s of e.keys())if(s._dirtyLevel<t&&e.get(s)===s._trackId){const r=s._dirtyLevel;s._dirtyLevel=t,r===0&&(s._shouldSchedule=!0,s.trigger())}er(e),Gn()}function er(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,An.push(t.scheduler))}const tr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},qt=new WeakMap,Qe=Symbol(""),Rn=Symbol("");function _e(e,t,n){if(Ve&&Ze){let s=qt.get(e);s||qt.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=tr(()=>s.delete(n))),Xs(Ze,r)}}function Le(e,t,n,s,r,l){const i=qt.get(e);if(!i)return;let o=[];if(t==="clear")o=[...i.values()];else if(n==="length"&&U(e)){const c=Number(s);i.forEach((a,d)=>{(d==="length"||!De(d)&&d>=c)&&o.push(a)})}else switch(n!==void 0&&o.push(i.get(n)),t){case"add":U(e)?Dn(n)&&o.push(i.get("length")):(o.push(i.get(Qe)),st(e)&&o.push(i.get(Rn)));break;case"delete":U(e)||(o.push(i.get(Qe)),st(e)&&o.push(i.get(Rn)));break;case"set":st(e)&&o.push(i.get(Qe));break}qn();for(const c of o)c&&zs(c,2);Gn()}function Tl(e,t){var n;return(n=qt.get(e))==null?void 0:n.get(t)}const El=Vn("__proto__,__v_isRef,__isVue"),nr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(De)),bs=vl();function vl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Z(this);for(let l=0,i=this.length;l<i;l++)_e(s,"get",l+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(Z)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Xe(),qn();const s=Z(this)[t].apply(this,n);return Gn(),ze(),s}}),e}function wl(e){const t=Z(this);return _e(t,"has",e),t.hasOwnProperty(e)}class sr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const r=this._isReadonly,l=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return l;if(n==="__v_raw")return s===(r?l?Hl:or:l?ir:lr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=U(t);if(!r){if(i&&J(bs,n))return Reflect.get(bs,n,s);if(n==="hasOwnProperty")return wl}const o=Reflect.get(t,n,s);return(De(n)?nr.has(n):El(n))||(r||_e(t,"get",n),l)?o:ae(o)?i&&Dn(n)?o:o.value:z(o)?r?fr(o):Zn(o):o}}class rr extends sr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let l=t[n];if(!this._shallow){const c=ft(l);if(!Gt(s)&&!ft(s)&&(l=Z(l),s=Z(s)),!U(t)&&ae(l)&&!ae(s))return c?!1:(l.value=s,!0)}const i=U(t)&&Dn(n)?Number(n)<t.length:J(t,n),o=Reflect.set(t,n,s,r);return t===Z(r)&&(i?Ke(s,l)&&Le(t,"set",n,s):Le(t,"add",n,s)),o}deleteProperty(t,n){const s=J(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Le(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!De(n)||!nr.has(n))&&_e(t,"has",n),s}ownKeys(t){return _e(t,"iterate",U(t)?"length":Qe),Reflect.ownKeys(t)}}class Fl extends sr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Al=new rr,Rl=new Fl,Ol=new rr(!0),Yn=e=>e,ln=e=>Reflect.getPrototypeOf(e);function Ot(e,t,n=!1,s=!1){e=e.__v_raw;const r=Z(e),l=Z(t);n||(Ke(t,l)&&_e(r,"get",t),_e(r,"get",l));const{has:i}=ln(r),o=s?Yn:n?Xn:mt;if(i.call(r,t))return o(e.get(t));if(i.call(r,l))return o(e.get(l));e!==r&&e.get(t)}function It(e,t=!1){const n=this.__v_raw,s=Z(n),r=Z(e);return t||(Ke(e,r)&&_e(s,"has",e),_e(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Mt(e,t=!1){return e=e.__v_raw,!t&&_e(Z(e),"iterate",Qe),Reflect.get(e,"size",e)}function xs(e){e=Z(e);const t=Z(this);return ln(t).has.call(t,e)||(t.add(e),Le(t,"add",e,e)),this}function Cs(e,t){t=Z(t);const n=Z(this),{has:s,get:r}=ln(n);let l=s.call(n,e);l||(e=Z(e),l=s.call(n,e));const i=r.call(n,e);return n.set(e,t),l?Ke(t,i)&&Le(n,"set",e,t):Le(n,"add",e,t),this}function Ts(e){const t=Z(this),{has:n,get:s}=ln(t);let r=n.call(t,e);r||(e=Z(e),r=n.call(t,e)),s&&s.call(t,e);const l=t.delete(e);return r&&Le(t,"delete",e,void 0),l}function Es(){const e=Z(this),t=e.size!==0,n=e.clear();return t&&Le(e,"clear",void 0,void 0),n}function Pt(e,t){return function(s,r){const l=this,i=l.__v_raw,o=Z(i),c=t?Yn:e?Xn:mt;return!e&&_e(o,"iterate",Qe),i.forEach((a,d)=>s.call(r,c(a),c(d),l))}}function Lt(e,t,n){return function(...s){const r=this.__v_raw,l=Z(r),i=st(l),o=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,a=r[e](...s),d=n?Yn:t?Xn:mt;return!t&&_e(l,"iterate",c?Rn:Qe),{next(){const{value:h,done:_}=a.next();return _?{value:h,done:_}:{value:o?[d(h[0]),d(h[1])]:d(h),done:_}},[Symbol.iterator](){return this}}}}function Ne(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Il(){const e={get(l){return Ot(this,l)},get size(){return Mt(this)},has:It,add:xs,set:Cs,delete:Ts,clear:Es,forEach:Pt(!1,!1)},t={get(l){return Ot(this,l,!1,!0)},get size(){return Mt(this)},has:It,add:xs,set:Cs,delete:Ts,clear:Es,forEach:Pt(!1,!0)},n={get(l){return Ot(this,l,!0)},get size(){return Mt(this,!0)},has(l){return It.call(this,l,!0)},add:Ne("add"),set:Ne("set"),delete:Ne("delete"),clear:Ne("clear"),forEach:Pt(!0,!1)},s={get(l){return Ot(this,l,!0,!0)},get size(){return Mt(this,!0)},has(l){return It.call(this,l,!0)},add:Ne("add"),set:Ne("set"),delete:Ne("delete"),clear:Ne("clear"),forEach:Pt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Lt(l,!1,!1),n[l]=Lt(l,!0,!1),t[l]=Lt(l,!1,!0),s[l]=Lt(l,!0,!0)}),[e,n,t,s]}const[Ml,Pl,Ll,Bl]=Il();function Jn(e,t){const n=t?e?Bl:Ll:e?Pl:Ml;return(s,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(J(n,r)&&r in s?n:s,r,l)}const kl={get:Jn(!1,!1)},Nl={get:Jn(!1,!0)},jl={get:Jn(!0,!1)},lr=new WeakMap,ir=new WeakMap,or=new WeakMap,Hl=new WeakMap;function Sl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ul(e){return e.__v_skip||!Object.isExtensible(e)?0:Sl(ol(e))}function Zn(e){return ft(e)?e:Qn(e,!1,Al,kl,lr)}function Vl(e){return Qn(e,!1,Ol,Nl,ir)}function fr(e){return Qn(e,!0,Rl,jl,or)}function Qn(e,t,n,s,r){if(!z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=r.get(e);if(l)return l;const i=Ul(e);if(i===0)return e;const o=new Proxy(e,i===2?s:n);return r.set(e,o),o}function rt(e){return ft(e)?rt(e.__v_raw):!!(e&&e.__v_isReactive)}function ft(e){return!!(e&&e.__v_isReadonly)}function Gt(e){return!!(e&&e.__v_isShallow)}function cr(e){return rt(e)||ft(e)}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}function ur(e){return Wt(e,"__v_skip",!0),e}const mt=e=>z(e)?Zn(e):e,Xn=e=>z(e)?fr(e):e;class ar{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Wn(()=>t(this._value),()=>Ut(this,1),()=>this.dep&&er(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Z(this);return(!t._cacheable||t.effect.dirty)&&Ke(t._value,t._value=t.effect.run())&&Ut(t,2),hr(t),t.effect._dirtyLevel>=1&&Ut(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function $l(e,t,n=!1){let s,r;const l=$(e);return l?(s=e,r=Te):(s=e.get,r=e.set),new ar(s,r,l||!r,n)}function hr(e){Ve&&Ze&&(e=Z(e),Xs(Ze,e.dep||(e.dep=tr(()=>e.dep=void 0,e instanceof ar?e:void 0))))}function Ut(e,t=2,n){e=Z(e);const s=e.dep;s&&zs(s,t)}function ae(e){return!!(e&&e.__v_isRef===!0)}function Vt(e){return dr(e,!1)}function bo(e){return dr(e,!0)}function dr(e,t){return ae(e)?e:new Dl(e,t)}class Dl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Z(t),this._value=n?t:mt(t)}get value(){return hr(this),this._value}set value(t){const n=this.__v_isShallow||Gt(t)||ft(t);t=n?t:Z(t),Ke(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:mt(t),Ut(this,2))}}function Kl(e){return ae(e)?e.value:e}const Wl={get:(e,t,n)=>Kl(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ae(r)&&!ae(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function gr(e){return rt(e)?e:new Proxy(e,Wl)}class ql{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Tl(Z(this._object),this._key)}}class Gl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function xo(e,t,n){return ae(e)?e:$(e)?new Gl(e):z(e)&&arguments.length>1?Yl(e,t,n):Vt(e)}function Yl(e,t,n){const s=e[t];return ae(s)?s:new ql(e,t,n)}/**
10
- * @vue/runtime-core v3.4.15
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function $e(e,t,n,s){let r;try{r=s?e(...s):e()}catch(l){at(l,t,n)}return r}function we(e,t,n,s){if($(e)){const l=$e(e,t,n,s);return l&&Ks(l)&&l.catch(i=>{at(i,t,n)}),l}const r=[];for(let l=0;l<e.length;l++)r.push(we(e[l],t,n,s));return r}function at(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let l=t.parent;const i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const a=l.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,i,o)===!1)return}l=l.parent}const c=t.appContext.config.errorHandler;if(c){$e(c,null,10,[e,i,o]);return}}Jl(e,n,r,s)}function Jl(e,t,n,s=!0){console.error(e)}let bt=!1,On=!1;const ce=[];let Oe=0;const lt=[];let He=null,Ye=0;const pr=Promise.resolve();let zn=null;function Zl(e){const t=zn||pr;return e?t.then(this?e.bind(this):e):t}function Ql(e){let t=Oe+1,n=ce.length;for(;t<n;){const s=t+n>>>1,r=ce[s],l=xt(r);l<e||l===e&&r.pre?t=s+1:n=s}return t}function on(e){(!ce.length||!ce.includes(e,bt&&e.allowRecurse?Oe+1:Oe))&&(e.id==null?ce.push(e):ce.splice(Ql(e.id),0,e),_r())}function _r(){!bt&&!On&&(On=!0,zn=pr.then(yr))}function Xl(e){const t=ce.indexOf(e);t>Oe&&ce.splice(t,1)}function In(e){U(e)?lt.push(...e):(!He||!He.includes(e,e.allowRecurse?Ye+1:Ye))&&lt.push(e),_r()}function vs(e,t,n=bt?Oe+1:0){for(;n<ce.length;n++){const s=ce[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;ce.splice(n,1),n--,s()}}}function Yt(e){if(lt.length){const t=[...new Set(lt)].sort((n,s)=>xt(n)-xt(s));if(lt.length=0,He){He.push(...t);return}for(He=t,Ye=0;Ye<He.length;Ye++)He[Ye]();He=null,Ye=0}}const xt=e=>e.id==null?1/0:e.id,zl=(e,t)=>{const n=xt(e)-xt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function yr(e){On=!1,bt=!0,ce.sort(zl);try{for(Oe=0;Oe<ce.length;Oe++){const t=ce[Oe];t&&t.active!==!1&&$e(t,null,14)}}finally{Oe=0,ce.length=0,Yt(),bt=!1,zn=null,(ce.length||lt.length)&&yr()}}function ei(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ee;let r=n;const l=t.startsWith("update:"),i=l&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:h,trim:_}=s[d]||ee;_&&(r=n.map(w=>le(w)?w.trim():w)),h&&(r=n.map(ul))}let o,c=s[o=_n(t)]||s[o=_n(Be(t))];!c&&l&&(c=s[o=_n(nn(t))]),c&&we(c,e,6,r);const a=s[o+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,we(a,e,6,r)}}function mr(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const l=e.emits;let i={},o=!1;if(!$(e)){const c=a=>{const d=mr(a,t,!0);d&&(o=!0,ue(i,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!l&&!o?(z(e)&&s.set(e,null),null):(U(l)?l.forEach(c=>i[c]=null):ue(i,l),z(e)&&s.set(e,i),i)}function fn(e,t){return!e||!en(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,nn(t))||J(e,t))}let re=null,br=null;function Jt(e){const t=re;return re=e,br=e&&e.type.__scopeId||null,t}function ti(e,t=re,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Ss(-1);const l=Jt(t);let i;try{i=e(...r)}finally{Jt(l),s._d&&Ss(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function bn(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:l,propsOptions:[i],slots:o,attrs:c,emit:a,render:d,renderCache:h,data:_,setupState:w,ctx:O,inheritAttrs:P}=e;let S,W;const K=Jt(e);try{if(n.shapeFlag&4){const T=r||s,C=T;S=Ce(d.call(C,T,h,l,w,_,O)),W=c}else{const T=t;S=Ce(T.length>1?T(l,{attrs:c,slots:o,emit:a}):T(l,null)),W=t.props?c:si(c)}}catch(T){yt.length=0,at(T,e,1),S=ne(de)}let g=S;if(W&&P!==!1){const T=Object.keys(W),{shapeFlag:C}=g;T.length&&C&7&&(i&&T.some($s)&&(W=ri(W,i)),g=We(g,W))}return n.dirs&&(g=We(g),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&(g.transition=n.transition),S=g,Jt(K),S}function ni(e,t=!0){let n;for(let s=0;s<e.length;s++){const r=e[s];if(Tt(r)){if(r.type!==de||r.children==="v-if"){if(n)return;n=r}}else return}return n}const si=e=>{let t;for(const n in e)(n==="class"||n==="style"||en(n))&&((t||(t={}))[n]=e[n]);return t},ri=(e,t)=>{const n={};for(const s in e)(!$s(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function li(e,t,n){const{props:s,children:r,component:l}=e,{props:i,children:o,patchFlag:c}=t,a=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?ws(s,i,a):!!i;if(c&8){const d=t.dynamicProps;for(let h=0;h<d.length;h++){const _=d[h];if(i[_]!==s[_]&&!fn(a,_))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:s===i?!1:s?i?ws(s,i,a):!0:!!i;return!1}function ws(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const l=s[r];if(t[l]!==e[l]&&!fn(n,l))return!0}return!1}function es({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const ts="components";function Co(e,t){return Cr(ts,e,!0,t)||e}const xr=Symbol.for("v-ndc");function To(e){return le(e)?Cr(ts,e,!1)||e:e||xr}function Cr(e,t,n=!0,s=!1){const r=re||oe;if(r){const l=r.type;if(e===ts){const o=fo(l,!1);if(o&&(o===t||o===Be(t)||o===Kn(Be(t))))return l}const i=Fs(r[e]||l[e],t)||Fs(r.appContext[e],t);return!i&&s?l:i}}function Fs(e,t){return e&&(e[t]||e[Be(t)]||e[Kn(Be(t))])}const ii=e=>e.__isSuspense;let Mn=0;const oi={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,l,i,o,c,a){if(e==null)fi(t,n,s,r,l,i,o,c,a);else{if(l&&l.deps>0){t.suspense=e.suspense;return}ci(e,t,n,s,r,i,o,c,a)}},hydrate:ui,create:ns,normalize:ai},Eo=oi;function Ct(e,t){const n=e.props&&e.props[t];$(n)&&n()}function fi(e,t,n,s,r,l,i,o,c){const{p:a,o:{createElement:d}}=c,h=d("div"),_=e.suspense=ns(e,r,s,t,h,n,l,i,o,c);a(null,_.pendingBranch=e.ssContent,h,null,s,_,l,i),_.deps>0?(Ct(e,"onPending"),Ct(e,"onFallback"),a(null,e.ssFallback,t,n,s,null,l,i),it(_,e.ssFallback)):_.resolve(!1,!0)}function ci(e,t,n,s,r,l,i,o,{p:c,um:a,o:{createElement:d}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const _=t.ssContent,w=t.ssFallback,{activeBranch:O,pendingBranch:P,isInFallback:S,isHydrating:W}=h;if(P)h.pendingBranch=_,Ie(_,P)?(c(P,_,h.hiddenContainer,null,r,h,l,i,o),h.deps<=0?h.resolve():S&&(W||(c(O,w,n,s,r,null,l,i,o),it(h,w)))):(h.pendingId=Mn++,W?(h.isHydrating=!1,h.activeBranch=P):a(P,r,h),h.deps=0,h.effects.length=0,h.hiddenContainer=d("div"),S?(c(null,_,h.hiddenContainer,null,r,h,l,i,o),h.deps<=0?h.resolve():(c(O,w,n,s,r,null,l,i,o),it(h,w))):O&&Ie(_,O)?(c(O,_,n,s,r,h,l,i,o),h.resolve(!0)):(c(null,_,h.hiddenContainer,null,r,h,l,i,o),h.deps<=0&&h.resolve()));else if(O&&Ie(_,O))c(O,_,n,s,r,h,l,i,o),it(h,_);else if(Ct(t,"onPending"),h.pendingBranch=_,_.shapeFlag&512?h.pendingId=_.component.suspenseId:h.pendingId=Mn++,c(null,_,h.hiddenContainer,null,r,h,l,i,o),h.deps<=0)h.resolve();else{const{timeout:K,pendingId:g}=h;K>0?setTimeout(()=>{h.pendingId===g&&h.fallback(w)},K):K===0&&h.fallback(w)}}function ns(e,t,n,s,r,l,i,o,c,a,d=!1){const{p:h,m:_,um:w,n:O,o:{parentNode:P,remove:S}}=a;let W;const K=hi(e);K&&t?.pendingBranch&&(W=t.pendingId,t.deps++);const g=e.props?al(e.props.timeout):void 0,T=l,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:s,hiddenContainer:r,deps:0,pendingId:Mn++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(b=!1,B=!1){const{vnode:A,activeBranch:L,pendingBranch:I,pendingId:D,effects:Y,parentComponent:Q,container:fe}=C;let se=!1;C.isHydrating?C.isHydrating=!1:b||(se=L&&I.transition&&I.transition.mode==="out-in",se&&(L.transition.afterLeave=()=>{D===C.pendingId&&(_(I,fe,l===T?O(L):l,0),In(Y))}),L&&(P(L.el)!==C.hiddenContainer&&(l=O(L)),w(L,Q,C,!0)),se||_(I,fe,l,0)),it(C,I),C.pendingBranch=null,C.isInFallback=!1;let k=C.parent,q=!1;for(;k;){if(k.pendingBranch){k.effects.push(...Y),q=!0;break}k=k.parent}!q&&!se&&In(Y),C.effects=[],K&&t&&t.pendingBranch&&W===t.pendingId&&(t.deps--,t.deps===0&&!B&&t.resolve()),Ct(A,"onResolve")},fallback(b){if(!C.pendingBranch)return;const{vnode:B,activeBranch:A,parentComponent:L,container:I,namespace:D}=C;Ct(B,"onFallback");const Y=O(A),Q=()=>{C.isInFallback&&(h(null,b,I,Y,L,null,D,o,c),it(C,b))},fe=b.transition&&b.transition.mode==="out-in";fe&&(A.transition.afterLeave=Q),C.isInFallback=!0,w(A,L,null,!0),fe||Q()},move(b,B,A){C.activeBranch&&_(C.activeBranch,b,B,A),C.container=b},next(){return C.activeBranch&&O(C.activeBranch)},registerDep(b,B){const A=!!C.pendingBranch;A&&C.deps++;const L=b.vnode.el;b.asyncDep.catch(I=>{at(I,b,0)}).then(I=>{if(b.isUnmounted||C.isUnmounted||C.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:D}=b;Un(b,I,!1),L&&(D.el=L);const Y=!L&&b.subTree.el;B(b,D,P(L||b.subTree.el),L?null:O(b.subTree),C,i,c),Y&&S(Y),es(b,D.el),A&&--C.deps===0&&C.resolve()})},unmount(b,B){C.isUnmounted=!0,C.activeBranch&&w(C.activeBranch,n,b,B),C.pendingBranch&&w(C.pendingBranch,n,b,B)}};return C}function ui(e,t,n,s,r,l,i,o,c){const a=t.suspense=ns(t,s,n,e.parentNode,document.createElement("div"),null,r,l,i,o,!0),d=c(e,a.pendingBranch=t.ssContent,n,a,l,i);return a.deps===0&&a.resolve(!1,!0),d}function ai(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=As(s?n.default:n),e.ssFallback=s?As(n.fallback):ne(de)}function As(e){let t;if($(e)){const n=ut&&e._c;n&&(e._d=!1,os()),e=e(),n&&(e._d=!0,t=Ee,$r())}return U(e)&&(e=ni(e)),e=Ce(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Tr(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):In(e)}function it(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;n.el=r,s&&s.subTree===n&&(s.vnode.el=r,es(s,r))}function hi(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const di=Symbol.for("v-scx"),gi=()=>$t(di);function vo(e,t){return ss(e,null,t)}const Bt={};function xn(e,t,n){return ss(e,t,n)}function ss(e,t,{immediate:n,deep:s,flush:r,once:l,onTrack:i,onTrigger:o}=ee){if(t&&l){const b=t;t=(...B)=>{b(...B),C()}}const c=oe,a=b=>s===!0?b:Je(b,s===!1?1:void 0);let d,h=!1,_=!1;if(ae(e)?(d=()=>e.value,h=Gt(e)):rt(e)?(d=()=>a(e),h=!0):U(e)?(_=!0,h=e.some(b=>rt(b)||Gt(b)),d=()=>e.map(b=>{if(ae(b))return b.value;if(rt(b))return a(b);if($(b))return $e(b,c,2)})):$(e)?t?d=()=>$e(e,c,2):d=()=>(w&&w(),we(e,c,3,[O])):d=Te,t&&s){const b=d;d=()=>Je(b())}let w,O=b=>{w=g.onStop=()=>{$e(b,c,4),w=g.onStop=void 0}},P;if(Ft)if(O=Te,t?n&&we(t,c,3,[d(),_?[]:void 0,O]):d(),r==="sync"){const b=gi();P=b.__watcherHandles||(b.__watcherHandles=[])}else return Te;let S=_?new Array(e.length).fill(Bt):Bt;const W=()=>{if(!(!g.active||!g.dirty))if(t){const b=g.run();(s||h||(_?b.some((B,A)=>Ke(B,S[A])):Ke(b,S)))&&(w&&w(),we(t,c,3,[b,S===Bt?void 0:_&&S[0]===Bt?[]:S,O]),S=b)}else g.run()};W.allowRecurse=!!t;let K;r==="sync"?K=W:r==="post"?K=()=>ge(W,c&&c.suspense):(W.pre=!0,c&&(W.id=c.uid),K=()=>on(W));const g=new Wn(d,Te,K),T=xl(),C=()=>{g.stop(),T&&$n(T.effects,g)};return t?n?W():S=g.run():r==="post"?ge(g.run.bind(g),c&&c.suspense):g.run(),P&&P.push(C),C}function pi(e,t,n){const s=this.proxy,r=le(e)?e.includes(".")?Er(s,e):()=>s[e]:e.bind(s,s);let l;$(t)?l=t:(l=t.handler,n=t);const i=wt(this),o=ss(r,l.bind(s),n);return i(),o}function Er(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function Je(e,t,n=0,s){if(!z(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),ae(e))Je(e.value,t,n,s);else if(U(e))for(let r=0;r<e.length;r++)Je(e[r],t,n,s);else if(Ds(e)||st(e))e.forEach(r=>{Je(r,t,n,s)});else if(qs(e))for(const r in e)Je(e[r],t,n,s);return e}function wo(e,t){if(re===null)return e;const n=an(re)||re.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[l,i,o,c=ee]=t[r];l&&($(l)&&(l={mounted:l,updated:l}),l.deep&&Je(i),s.push({dir:l,instance:n,value:i,oldValue:void 0,arg:o,modifiers:c}))}return e}function Re(e,t,n,s){const r=e.dirs,l=t&&t.dirs;for(let i=0;i<r.length;i++){const o=r[i];l&&(o.oldValue=l[i].value);let c=o.dir[s];c&&(Xe(),we(c,n,8,[e.el,o,e,t]),ze())}}const Se=Symbol("_leaveCb"),kt=Symbol("_enterCb");function _i(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ar(()=>{e.isMounted=!0}),Rr(()=>{e.isUnmounting=!0}),e}const be=[Function,Array],yi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:be,onEnter:be,onAfterEnter:be,onEnterCancelled:be,onBeforeLeave:be,onLeave:be,onAfterLeave:be,onLeaveCancelled:be,onBeforeAppear:be,onAppear:be,onAfterAppear:be,onAppearCancelled:be},mi={name:"BaseTransition",props:yi,setup(e,{slots:t}){const n=so(),s=_i();let r;return()=>{const l=t.default&&wr(t.default(),!0);if(!l||!l.length)return;let i=l[0];if(l.length>1){for(const P of l)if(P.type!==de){i=P;break}}const o=Z(e),{mode:c}=o;if(s.isLeaving)return Cn(i);const a=Rs(i);if(!a)return Cn(i);const d=Pn(a,o,s,n);Ln(a,d);const h=n.subTree,_=h&&Rs(h);let w=!1;const{getTransitionKey:O}=a.type;if(O){const P=O();r===void 0?r=P:P!==r&&(r=P,w=!0)}if(_&&_.type!==de&&(!Ie(a,_)||w)){const P=Pn(_,o,s,n);if(Ln(_,P),c==="out-in")return s.isLeaving=!0,P.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Cn(i);c==="in-out"&&a.type!==de&&(P.delayLeave=(S,W,K)=>{const g=vr(s,_);g[String(_.key)]=_,S[Se]=()=>{W(),S[Se]=void 0,delete d.delayedLeave},d.delayedLeave=K})}return i}}},Fo=mi;function vr(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Pn(e,t,n,s){const{appear:r,mode:l,persisted:i=!1,onBeforeEnter:o,onEnter:c,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:h,onLeave:_,onAfterLeave:w,onLeaveCancelled:O,onBeforeAppear:P,onAppear:S,onAfterAppear:W,onAppearCancelled:K}=t,g=String(e.key),T=vr(n,e),C=(A,L)=>{A&&we(A,s,9,L)},b=(A,L)=>{const I=L[1];C(A,L),U(A)?A.every(D=>D.length<=1)&&I():A.length<=1&&I()},B={mode:l,persisted:i,beforeEnter(A){let L=o;if(!n.isMounted)if(r)L=P||o;else return;A[Se]&&A[Se](!0);const I=T[g];I&&Ie(e,I)&&I.el[Se]&&I.el[Se](),C(L,[A])},enter(A){let L=c,I=a,D=d;if(!n.isMounted)if(r)L=S||c,I=W||a,D=K||d;else return;let Y=!1;const Q=A[kt]=fe=>{Y||(Y=!0,fe?C(D,[A]):C(I,[A]),B.delayedLeave&&B.delayedLeave(),A[kt]=void 0)};L?b(L,[A,Q]):Q()},leave(A,L){const I=String(e.key);if(A[kt]&&A[kt](!0),n.isUnmounting)return L();C(h,[A]);let D=!1;const Y=A[Se]=Q=>{D||(D=!0,L(),Q?C(O,[A]):C(w,[A]),A[Se]=void 0,T[I]===e&&delete T[I])};T[I]=e,_?b(_,[A,Y]):Y()},clone(A){return Pn(A,t,n,s)}};return B}function Cn(e){if(vt(e))return e=We(e),e.children=null,e}function Rs(e){return vt(e)?e.children?e.children[0]:void 0:e}function Ln(e,t){e.shapeFlag&6&&e.component?Ln(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function wr(e,t=!1,n){let s=[],r=0;for(let l=0;l<e.length;l++){let i=e[l];const o=n==null?i.key:String(n)+String(i.key!=null?i.key:l);i.type===pe?(i.patchFlag&128&&r++,s=s.concat(wr(i.children,t,o))):(t||i.type!==de)&&s.push(o!=null?We(i,{key:o}):i)}if(r>1)for(let l=0;l<s.length;l++)s[l].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function bi(e,t){return $(e)?ue({name:e.name},t,{setup:e}):e}const ot=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Ao(e){$(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:l,suspensible:i=!0,onError:o}=e;let c=null,a,d=0;const h=()=>(d++,c=null,_()),_=()=>{let w;return c||(w=c=t().catch(O=>{if(O=O instanceof Error?O:new Error(String(O)),o)return new Promise((P,S)=>{o(O,()=>P(h()),()=>S(O),d+1)});throw O}).then(O=>w!==c&&c?c:(O&&(O.__esModule||O[Symbol.toStringTag]==="Module")&&(O=O.default),a=O,O)))};return bi({name:"AsyncComponentWrapper",__asyncLoader:_,get __asyncResolved(){return a},setup(){const w=oe;if(a)return()=>Tn(a,w);const O=K=>{c=null,at(K,w,13,!s)};if(i&&w.suspense||Ft)return _().then(K=>()=>Tn(K,w)).catch(K=>(O(K),()=>s?ne(s,{error:K}):null));const P=Vt(!1),S=Vt(),W=Vt(!!r);return r&&setTimeout(()=>{W.value=!1},r),l!=null&&setTimeout(()=>{if(!P.value&&!S.value){const K=new Error(`Async component timed out after ${l}ms.`);O(K),S.value=K}},l),_().then(()=>{P.value=!0,w.parent&&vt(w.parent.vnode)&&(w.parent.effect.dirty=!0,on(w.parent.update))}).catch(K=>{O(K),S.value=K}),()=>{if(P.value&&a)return Tn(a,w);if(S.value&&s)return ne(s,{error:S.value});if(n&&!W.value)return ne(n)}}})}function Tn(e,t){const{ref:n,props:s,children:r,ce:l}=t.vnode,i=ne(e,s,r);return i.ref=n,i.ce=l,delete t.vnode.ce,i}const vt=e=>e.type.__isKeepAlive;function xi(e,t){Fr(e,"a",t)}function Ci(e,t){Fr(e,"da",t)}function Fr(e,t,n=oe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(cn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)vt(r.parent.vnode)&&Ti(s,t,n,r),r=r.parent}}function Ti(e,t,n,s){const r=cn(t,e,s,!0);Or(()=>{$n(s[t],r)},n)}function cn(e,t,n=oe,s=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Xe();const o=wt(n),c=we(t,n,e,i);return o(),ze(),c});return s?r.unshift(l):r.push(l),l}}const ke=e=>(t,n=oe)=>(!Ft||e==="sp")&&cn(e,(...s)=>t(...s),n),Ei=ke("bm"),Ar=ke("m"),vi=ke("bu"),wi=ke("u"),Rr=ke("bum"),Or=ke("um"),Fi=ke("sp"),Ai=ke("rtg"),Ri=ke("rtc");function Oi(e,t=oe){cn("ec",e,t)}function Ro(e,t,n,s){let r;const l=n&&n[s];if(U(e)||le(e)){r=new Array(e.length);for(let i=0,o=e.length;i<o;i++)r[i]=t(e[i],i,void 0,l&&l[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,l&&l[i])}else if(z(e))if(e[Symbol.iterator])r=Array.from(e,(i,o)=>t(i,o,void 0,l&&l[o]));else{const i=Object.keys(e);r=new Array(i.length);for(let o=0,c=i.length;o<c;o++){const a=i[o];r[o]=t(e[a],a,o,l&&l[o])}}else r=[];return n&&(n[s]=r),r}function Oo(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(U(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const l=s.fn(...r);return l&&(l.key=s.key),l}:s.fn)}return e}function Io(e,t,n={},s,r){if(re.isCE||re.parent&&ot(re.parent)&&re.parent.isCE)return t!=="default"&&(n.name=t),ne("slot",n,s&&s());let l=e[t];l&&l._c&&(l._d=!1),os();const i=l&&Ir(l(n)),o=Kr(pe,{key:n.key||i&&i.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return!r&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),l&&l._c&&(l._d=!0),o}function Ir(e){return e.some(t=>Tt(t)?!(t.type===de||t.type===pe&&!Ir(t.children)):!0)?e:null}const Bn=e=>e?Yr(e)?an(e)||e.proxy:Bn(e.parent):null,pt=ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bn(e.parent),$root:e=>Bn(e.root),$emit:e=>e.emit,$options:e=>rs(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,on(e.update)}),$nextTick:e=>e.n||(e.n=Zl.bind(e.proxy)),$watch:e=>pi.bind(e)}),En=(e,t)=>e!==ee&&!e.__isScriptSetup&&J(e,t),Ii={get({_:e},t){const{ctx:n,setupState:s,data:r,props:l,accessCache:i,type:o,appContext:c}=e;let a;if(t[0]!=="$"){const w=i[t];if(w!==void 0)switch(w){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return l[t]}else{if(En(s,t))return i[t]=1,s[t];if(r!==ee&&J(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&J(a,t))return i[t]=3,l[t];if(n!==ee&&J(n,t))return i[t]=4,n[t];kn&&(i[t]=0)}}const d=pt[t];let h,_;if(d)return t==="$attrs"&&_e(e,"get",t),d(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==ee&&J(n,t))return i[t]=4,n[t];if(_=c.config.globalProperties,J(_,t))return _[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:l}=e;return En(r,t)?(r[t]=n,!0):s!==ee&&J(s,t)?(s[t]=n,!0):J(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:l}},i){let o;return!!n[i]||e!==ee&&J(e,i)||En(t,i)||(o=l[0])&&J(o,i)||J(s,i)||J(pt,i)||J(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:J(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Os(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let kn=!0;function Mi(e){const t=rs(e),n=e.proxy,s=e.ctx;kn=!1,t.beforeCreate&&Is(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:i,watch:o,provide:c,inject:a,created:d,beforeMount:h,mounted:_,beforeUpdate:w,updated:O,activated:P,deactivated:S,beforeDestroy:W,beforeUnmount:K,destroyed:g,unmounted:T,render:C,renderTracked:b,renderTriggered:B,errorCaptured:A,serverPrefetch:L,expose:I,inheritAttrs:D,components:Y,directives:Q,filters:fe}=t;if(a&&Pi(a,s,null),i)for(const q in i){const j=i[q];$(j)&&(s[q]=j.bind(n))}if(r){const q=r.call(n,n);z(q)&&(e.data=Zn(q))}if(kn=!0,l)for(const q in l){const j=l[q],Me=$(j)?j.bind(n,n):$(j.get)?j.get.bind(n,n):Te,At=!$(j)&&$(j.set)?j.set.bind(n):Te,qe=uo({get:Me,set:At});Object.defineProperty(s,q,{enumerable:!0,configurable:!0,get:()=>qe.value,set:Fe=>qe.value=Fe})}if(o)for(const q in o)Mr(o[q],s,n,q);if(c){const q=$(c)?c.call(n):c;Reflect.ownKeys(q).forEach(j=>{Hi(j,q[j])})}d&&Is(d,e,"c");function k(q,j){U(j)?j.forEach(Me=>q(Me.bind(n))):j&&q(j.bind(n))}if(k(Ei,h),k(Ar,_),k(vi,w),k(wi,O),k(xi,P),k(Ci,S),k(Oi,A),k(Ri,b),k(Ai,B),k(Rr,K),k(Or,T),k(Fi,L),U(I))if(I.length){const q=e.exposed||(e.exposed={});I.forEach(j=>{Object.defineProperty(q,j,{get:()=>n[j],set:Me=>n[j]=Me})})}else e.exposed||(e.exposed={});C&&e.render===Te&&(e.render=C),D!=null&&(e.inheritAttrs=D),Y&&(e.components=Y),Q&&(e.directives=Q)}function Pi(e,t,n=Te){U(e)&&(e=Nn(e));for(const s in e){const r=e[s];let l;z(r)?"default"in r?l=$t(r.from||s,r.default,!0):l=$t(r.from||s):l=$t(r),ae(l)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:i=>l.value=i}):t[s]=l}}function Is(e,t,n){we(U(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Mr(e,t,n,s){const r=s.includes(".")?Er(n,s):()=>n[s];if(le(e)){const l=t[e];$(l)&&xn(r,l)}else if($(e))xn(r,e.bind(n));else if(z(e))if(U(e))e.forEach(l=>Mr(l,t,n,s));else{const l=$(e.handler)?e.handler.bind(n):t[e.handler];$(l)&&xn(r,l,e)}}function rs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:i}}=e.appContext,o=l.get(t);let c;return o?c=o:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>Zt(c,a,i,!0)),Zt(c,t,i)),z(t)&&l.set(t,c),c}function Zt(e,t,n,s=!1){const{mixins:r,extends:l}=t;l&&Zt(e,l,n,!0),r&&r.forEach(i=>Zt(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const o=Li[i]||n&&n[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const Li={data:Ms,props:Ps,emits:Ps,methods:dt,computed:dt,beforeCreate:he,created:he,beforeMount:he,mounted:he,beforeUpdate:he,updated:he,beforeDestroy:he,beforeUnmount:he,destroyed:he,unmounted:he,activated:he,deactivated:he,errorCaptured:he,serverPrefetch:he,components:dt,directives:dt,watch:ki,provide:Ms,inject:Bi};function Ms(e,t){return t?e?function(){return ue($(e)?e.call(this,this):e,$(t)?t.call(this,this):t)}:t:e}function Bi(e,t){return dt(Nn(e),Nn(t))}function Nn(e){if(U(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function he(e,t){return e?[...new Set([].concat(e,t))]:t}function dt(e,t){return e?ue(Object.create(null),e,t):t}function Ps(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:ue(Object.create(null),Os(e),Os(t??{})):t}function ki(e,t){if(!e)return t;if(!t)return e;const n=ue(Object.create(null),e);for(const s in t)n[s]=he(e[s],t[s]);return n}function Pr(){return{app:null,config:{isNativeTag:ll,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ni=0;function ji(e,t){return function(s,r=null){$(s)||(s=ue({},s)),r!=null&&!z(r)&&(r=null);const l=Pr(),i=new WeakSet;let o=!1;const c=l.app={_uid:Ni++,_component:s,_props:r,_container:null,_context:l,_instance:null,version:ao,get config(){return l.config},set config(a){},use(a,...d){return i.has(a)||(a&&$(a.install)?(i.add(a),a.install(c,...d)):$(a)&&(i.add(a),a(c,...d))),c},mixin(a){return l.mixins.includes(a)||l.mixins.push(a),c},component(a,d){return d?(l.components[a]=d,c):l.components[a]},directive(a,d){return d?(l.directives[a]=d,c):l.directives[a]},mount(a,d,h){if(!o){const _=ne(s,r);return _.appContext=l,h===!0?h="svg":h===!1&&(h=void 0),d&&t?t(_,a):e(_,a,h),o=!0,c._container=a,a.__vue_app__=c,an(_.component)||_.component.proxy}},unmount(){o&&(e(null,c._container),delete c._container.__vue_app__)},provide(a,d){return l.provides[a]=d,c},runWithContext(a){Qt=c;try{return a()}finally{Qt=null}}};return c}}let Qt=null;function Hi(e,t){if(oe){let n=oe.provides;const s=oe.parent&&oe.parent.provides;s===n&&(n=oe.provides=Object.create(s)),n[e]=t}}function $t(e,t,n=!1){const s=oe||re;if(s||Qt){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Qt._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&$(t)?t.call(s&&s.proxy):t}}function Si(e,t,n,s=!1){const r={},l={};Wt(l,un,1),e.propsDefaults=Object.create(null),Lr(e,t,r,l);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:Vl(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function Ui(e,t,n,s){const{props:r,attrs:l,vnode:{patchFlag:i}}=e,o=Z(r),[c]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let h=0;h<d.length;h++){let _=d[h];if(fn(e.emitsOptions,_))continue;const w=t[_];if(c)if(J(l,_))w!==l[_]&&(l[_]=w,a=!0);else{const O=Be(_);r[O]=jn(c,o,O,w,e,!1)}else w!==l[_]&&(l[_]=w,a=!0)}}}else{Lr(e,t,r,l)&&(a=!0);let d;for(const h in o)(!t||!J(t,h)&&((d=nn(h))===h||!J(t,d)))&&(c?n&&(n[h]!==void 0||n[d]!==void 0)&&(r[h]=jn(c,o,h,void 0,e,!0)):delete r[h]);if(l!==o)for(const h in l)(!t||!J(t,h))&&(delete l[h],a=!0)}a&&Le(e,"set","$attrs")}function Lr(e,t,n,s){const[r,l]=e.propsOptions;let i=!1,o;if(t)for(let c in t){if(gt(c))continue;const a=t[c];let d;r&&J(r,d=Be(c))?!l||!l.includes(d)?n[d]=a:(o||(o={}))[d]=a:fn(e.emitsOptions,c)||(!(c in s)||a!==s[c])&&(s[c]=a,i=!0)}if(l){const c=Z(n),a=o||ee;for(let d=0;d<l.length;d++){const h=l[d];n[h]=jn(r,c,h,a[h],e,!J(a,h))}}return i}function jn(e,t,n,s,r,l){const i=e[n];if(i!=null){const o=J(i,"default");if(o&&s===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&$(c)){const{propsDefaults:a}=r;if(n in a)s=a[n];else{const d=wt(r);s=a[n]=c.call(null,t),d()}}else s=c}i[0]&&(l&&!o?s=!1:i[1]&&(s===""||s===nn(n))&&(s=!0))}return s}function Br(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const l=e.props,i={},o=[];let c=!1;if(!$(e)){const d=h=>{c=!0;const[_,w]=Br(h,t,!0);ue(i,_),w&&o.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!c)return z(e)&&s.set(e,nt),nt;if(U(l))for(let d=0;d<l.length;d++){const h=Be(l[d]);Ls(h)&&(i[h]=ee)}else if(l)for(const d in l){const h=Be(d);if(Ls(h)){const _=l[d],w=i[h]=U(_)||$(_)?{type:_}:ue({},_);if(w){const O=Ns(Boolean,w.type),P=Ns(String,w.type);w[0]=O>-1,w[1]=P<0||O<P,(O>-1||J(w,"default"))&&o.push(h)}}}const a=[i,o];return z(e)&&s.set(e,a),a}function Ls(e){return e[0]!=="$"}function Bs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ks(e,t){return Bs(e)===Bs(t)}function Ns(e,t){return U(t)?t.findIndex(n=>ks(n,e)):$(t)&&ks(t,e)?0:-1}const kr=e=>e[0]==="_"||e==="$stable",ls=e=>U(e)?e.map(Ce):[Ce(e)],Vi=(e,t,n)=>{if(t._n)return t;const s=ti((...r)=>ls(t(...r)),n);return s._c=!1,s},Nr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(kr(r))continue;const l=e[r];if($(l))t[r]=Vi(r,l,s);else if(l!=null){const i=ls(l);t[r]=()=>i}}},jr=(e,t)=>{const n=ls(t);e.slots.default=()=>n},$i=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Z(t),Wt(t,"_",n)):Nr(t,e.slots={})}else e.slots={},t&&jr(e,t);Wt(e.slots,un,1)},Di=(e,t,n)=>{const{vnode:s,slots:r}=e;let l=!0,i=ee;if(s.shapeFlag&32){const o=t._;o?n&&o===1?l=!1:(ue(r,t),!n&&o===1&&delete r._):(l=!t.$stable,Nr(t,r)),i=t}else t&&(jr(e,t),i={default:1});if(l)for(const o in r)!kr(o)&&i[o]==null&&delete r[o]};function Xt(e,t,n,s,r=!1){if(U(e)){e.forEach((_,w)=>Xt(_,t&&(U(t)?t[w]:t),n,s,r));return}if(ot(s)&&!r)return;const l=s.shapeFlag&4?an(s.component)||s.component.proxy:s.el,i=r?null:l,{i:o,r:c}=e,a=t&&t.r,d=o.refs===ee?o.refs={}:o.refs,h=o.setupState;if(a!=null&&a!==c&&(le(a)?(d[a]=null,J(h,a)&&(h[a]=null)):ae(a)&&(a.value=null)),$(c))$e(c,o,12,[i,d]);else{const _=le(c),w=ae(c),O=e.f;if(_||w){const P=()=>{if(O){const S=_?J(h,c)?h[c]:d[c]:c.value;r?U(S)&&$n(S,l):U(S)?S.includes(l)||S.push(l):_?(d[c]=[l],J(h,c)&&(h[c]=d[c])):(c.value=[l],e.k&&(d[e.k]=c.value))}else _?(d[c]=i,J(h,c)&&(h[c]=i)):w&&(c.value=i,e.k&&(d[e.k]=i))};r||O?P():(P.id=-1,ge(P,n))}}}let je=!1;const Ki=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Wi=e=>e.namespaceURI.includes("MathML"),Nt=e=>{if(Ki(e))return"svg";if(Wi(e))return"mathml"},jt=e=>e.nodeType===8;function qi(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:l,parentNode:i,remove:o,insert:c,createComment:a}}=e,d=(g,T)=>{if(!T.hasChildNodes()){n(null,g,T),Yt(),T._vnode=g;return}je=!1,h(T.firstChild,g,null,null,null),Yt(),T._vnode=g,je&&console.error("Hydration completed but contains mismatches.")},h=(g,T,C,b,B,A=!1)=>{const L=jt(g)&&g.data==="[",I=()=>P(g,T,C,b,B,L),{type:D,ref:Y,shapeFlag:Q,patchFlag:fe}=T;let se=g.nodeType;T.el=g,fe===-2&&(A=!1,T.dynamicChildren=null);let k=null;switch(D){case ct:se!==3?T.children===""?(c(T.el=r(""),i(g),g),k=g):k=I():(g.data!==T.children&&(je=!0,g.data=T.children),k=l(g));break;case de:K(g)?(k=l(g),W(T.el=g.content.firstChild,g,C)):se!==8||L?k=I():k=l(g);break;case Dt:if(L&&(g=l(g),se=g.nodeType),se===1||se===3){k=g;const q=!T.children.length;for(let j=0;j<T.staticCount;j++)q&&(T.children+=k.nodeType===1?k.outerHTML:k.data),j===T.staticCount-1&&(T.anchor=k),k=l(k);return L?l(k):k}else I();break;case pe:L?k=O(g,T,C,b,B,A):k=I();break;default:if(Q&1)(se!==1||T.type.toLowerCase()!==g.tagName.toLowerCase())&&!K(g)?k=I():k=_(g,T,C,b,B,A);else if(Q&6){T.slotScopeIds=B;const q=i(g);if(L?k=S(g):jt(g)&&g.data==="teleport start"?k=S(g,g.data,"teleport end"):k=l(g),t(T,q,null,C,b,Nt(q),A),ot(T)){let j;L?(j=ne(pe),j.anchor=k?k.previousSibling:q.lastChild):j=g.nodeType===3?Gr(""):ne("div"),j.el=g,T.component.subTree=j}}else Q&64?se!==8?k=I():k=T.type.hydrate(g,T,C,b,B,A,e,w):Q&128&&(k=T.type.hydrate(g,T,C,b,Nt(i(g)),B,A,e,h))}return Y!=null&&Xt(Y,null,b,T),k},_=(g,T,C,b,B,A)=>{A=A||!!T.dynamicChildren;const{type:L,props:I,patchFlag:D,shapeFlag:Y,dirs:Q,transition:fe}=T,se=L==="input"||L==="option";if(se||D!==-1){Q&&Re(T,null,C,"created");let k=!1;if(K(g)){k=Sr(b,fe)&&C&&C.vnode.props&&C.vnode.props.appear;const j=g.content.firstChild;k&&fe.beforeEnter(j),W(j,g,C),T.el=g=j}if(Y&16&&!(I&&(I.innerHTML||I.textContent))){let j=w(g.firstChild,T,g,C,b,B,A);for(;j;){je=!0;const Me=j;j=j.nextSibling,o(Me)}}else Y&8&&g.textContent!==T.children&&(je=!0,g.textContent=T.children);if(I)if(se||!A||D&48)for(const j in I)(se&&(j.endsWith("value")||j==="indeterminate")||en(j)&&!gt(j)||j[0]===".")&&s(g,j,null,I[j],void 0,void 0,C);else I.onClick&&s(g,"onClick",null,I.onClick,void 0,void 0,C);let q;(q=I&&I.onVnodeBeforeMount)&&xe(q,C,T),Q&&Re(T,null,C,"beforeMount"),((q=I&&I.onVnodeMounted)||Q||k)&&Tr(()=>{q&&xe(q,C,T),k&&fe.enter(g),Q&&Re(T,null,C,"mounted")},b)}return g.nextSibling},w=(g,T,C,b,B,A,L)=>{L=L||!!T.dynamicChildren;const I=T.children,D=I.length;for(let Y=0;Y<D;Y++){const Q=L?I[Y]:I[Y]=Ce(I[Y]);if(g)g=h(g,Q,b,B,A,L);else{if(Q.type===ct&&!Q.children)continue;je=!0,n(null,Q,C,null,b,B,Nt(C),A)}}return g},O=(g,T,C,b,B,A)=>{const{slotScopeIds:L}=T;L&&(B=B?B.concat(L):L);const I=i(g),D=w(l(g),T,I,C,b,B,A);return D&&jt(D)&&D.data==="]"?l(T.anchor=D):(je=!0,c(T.anchor=a("]"),I,D),D)},P=(g,T,C,b,B,A)=>{if(je=!0,T.el=null,A){const D=S(g);for(;;){const Y=l(g);if(Y&&Y!==D)o(Y);else break}}const L=l(g),I=i(g);return o(g),n(null,T,I,L,C,b,Nt(I),B),L},S=(g,T="[",C="]")=>{let b=0;for(;g;)if(g=l(g),g&&jt(g)&&(g.data===T&&b++,g.data===C)){if(b===0)return l(g);b--}return g},W=(g,T,C)=>{const b=T.parentNode;b&&b.replaceChild(g,T);let B=C;for(;B;)B.vnode.el===T&&(B.vnode.el=B.subTree.el=g),B=B.parent},K=g=>g.nodeType===1&&g.tagName.toLowerCase()==="template";return[d,h]}const ge=Tr;function Mo(e){return Hr(e)}function Po(e){return Hr(e,qi)}function Hr(e,t){const n=Gs();n.__VUE__=!0;const{insert:s,remove:r,patchProp:l,createElement:i,createText:o,createComment:c,setText:a,setElementText:d,parentNode:h,nextSibling:_,setScopeId:w=Te,insertStaticContent:O}=e,P=(f,u,p,y=null,m=null,v=null,R=void 0,E=null,F=!!u.dynamicChildren)=>{if(f===u)return;f&&!Ie(f,u)&&(y=Rt(f),Fe(f,m,v,!0),f=null),u.patchFlag===-2&&(F=!1,u.dynamicChildren=null);const{type:x,ref:M,shapeFlag:H}=u;switch(x){case ct:S(f,u,p,y);break;case de:W(f,u,p,y);break;case Dt:f==null&&K(u,p,y,R);break;case pe:Y(f,u,p,y,m,v,R,E,F);break;default:H&1?C(f,u,p,y,m,v,R,E,F):H&6?Q(f,u,p,y,m,v,R,E,F):(H&64||H&128)&&x.process(f,u,p,y,m,v,R,E,F,et)}M!=null&&m&&Xt(M,f&&f.ref,v,u||f,!u)},S=(f,u,p,y)=>{if(f==null)s(u.el=o(u.children),p,y);else{const m=u.el=f.el;u.children!==f.children&&a(m,u.children)}},W=(f,u,p,y)=>{f==null?s(u.el=c(u.children||""),p,y):u.el=f.el},K=(f,u,p,y)=>{[f.el,f.anchor]=O(f.children,u,p,y,f.el,f.anchor)},g=({el:f,anchor:u},p,y)=>{let m;for(;f&&f!==u;)m=_(f),s(f,p,y),f=m;s(u,p,y)},T=({el:f,anchor:u})=>{let p;for(;f&&f!==u;)p=_(f),r(f),f=p;r(u)},C=(f,u,p,y,m,v,R,E,F)=>{u.type==="svg"?R="svg":u.type==="math"&&(R="mathml"),f==null?b(u,p,y,m,v,R,E,F):L(f,u,m,v,R,E,F)},b=(f,u,p,y,m,v,R,E)=>{let F,x;const{props:M,shapeFlag:H,transition:N,dirs:V}=f;if(F=f.el=i(f.type,v,M&&M.is,M),H&8?d(F,f.children):H&16&&A(f.children,F,null,y,m,vn(f,v),R,E),V&&Re(f,null,y,"created"),B(F,f,f.scopeId,R,y),M){for(const X in M)X!=="value"&&!gt(X)&&l(F,X,null,M[X],v,f.children,y,m,Pe);"value"in M&&l(F,"value",null,M.value,v),(x=M.onVnodeBeforeMount)&&xe(x,y,f)}V&&Re(f,null,y,"beforeMount");const G=Sr(m,N);G&&N.beforeEnter(F),s(F,u,p),((x=M&&M.onVnodeMounted)||G||V)&&ge(()=>{x&&xe(x,y,f),G&&N.enter(F),V&&Re(f,null,y,"mounted")},m)},B=(f,u,p,y,m)=>{if(p&&w(f,p),y)for(let v=0;v<y.length;v++)w(f,y[v]);if(m){let v=m.subTree;if(u===v){const R=m.vnode;B(f,R,R.scopeId,R.slotScopeIds,m.parent)}}},A=(f,u,p,y,m,v,R,E,F=0)=>{for(let x=F;x<f.length;x++){const M=f[x]=E?Ue(f[x]):Ce(f[x]);P(null,M,u,p,y,m,v,R,E)}},L=(f,u,p,y,m,v,R)=>{const E=u.el=f.el;let{patchFlag:F,dynamicChildren:x,dirs:M}=u;F|=f.patchFlag&16;const H=f.props||ee,N=u.props||ee;let V;if(p&&Ge(p,!1),(V=N.onVnodeBeforeUpdate)&&xe(V,p,u,f),M&&Re(u,f,p,"beforeUpdate"),p&&Ge(p,!0),x?I(f.dynamicChildren,x,E,p,y,vn(u,m),v):R||j(f,u,E,null,p,y,vn(u,m),v,!1),F>0){if(F&16)D(E,u,H,N,p,y,m);else if(F&2&&H.class!==N.class&&l(E,"class",null,N.class,m),F&4&&l(E,"style",H.style,N.style,m),F&8){const G=u.dynamicProps;for(let X=0;X<G.length;X++){const te=G[X],ie=H[te],ve=N[te];(ve!==ie||te==="value")&&l(E,te,ie,ve,m,f.children,p,y,Pe)}}F&1&&f.children!==u.children&&d(E,u.children)}else!R&&x==null&&D(E,u,H,N,p,y,m);((V=N.onVnodeUpdated)||M)&&ge(()=>{V&&xe(V,p,u,f),M&&Re(u,f,p,"updated")},y)},I=(f,u,p,y,m,v,R)=>{for(let E=0;E<u.length;E++){const F=f[E],x=u[E],M=F.el&&(F.type===pe||!Ie(F,x)||F.shapeFlag&70)?h(F.el):p;P(F,x,M,null,y,m,v,R,!0)}},D=(f,u,p,y,m,v,R)=>{if(p!==y){if(p!==ee)for(const E in p)!gt(E)&&!(E in y)&&l(f,E,p[E],null,R,u.children,m,v,Pe);for(const E in y){if(gt(E))continue;const F=y[E],x=p[E];F!==x&&E!=="value"&&l(f,E,x,F,R,u.children,m,v,Pe)}"value"in y&&l(f,"value",p.value,y.value,R)}},Y=(f,u,p,y,m,v,R,E,F)=>{const x=u.el=f?f.el:o(""),M=u.anchor=f?f.anchor:o("");let{patchFlag:H,dynamicChildren:N,slotScopeIds:V}=u;V&&(E=E?E.concat(V):V),f==null?(s(x,p,y),s(M,p,y),A(u.children||[],p,M,m,v,R,E,F)):H>0&&H&64&&N&&f.dynamicChildren?(I(f.dynamicChildren,N,p,m,v,R,E),(u.key!=null||m&&u===m.subTree)&&is(f,u,!0)):j(f,u,p,M,m,v,R,E,F)},Q=(f,u,p,y,m,v,R,E,F)=>{u.slotScopeIds=E,f==null?u.shapeFlag&512?m.ctx.activate(u,p,y,R,F):fe(u,p,y,m,v,R,F):se(f,u,F)},fe=(f,u,p,y,m,v,R)=>{const E=f.component=no(f,y,m);if(vt(f)&&(E.ctx.renderer=et),ro(E),E.asyncDep){if(m&&m.registerDep(E,k),!f.el){const F=E.subTree=ne(de);W(null,F,u,p)}}else k(E,f,u,p,m,v,R)},se=(f,u,p)=>{const y=u.component=f.component;if(li(f,u,p))if(y.asyncDep&&!y.asyncResolved){q(y,u,p);return}else y.next=u,Xl(y.update),y.effect.dirty=!0,y.update();else u.el=f.el,y.vnode=u},k=(f,u,p,y,m,v,R)=>{const E=()=>{if(f.isMounted){let{next:M,bu:H,u:N,parent:V,vnode:G}=f;{const tt=Ur(f);if(tt){M&&(M.el=G.el,q(f,M,R)),tt.asyncDep.then(()=>{f.isUnmounted||E()});return}}let X=M,te;Ge(f,!1),M?(M.el=G.el,q(f,M,R)):M=G,H&&yn(H),(te=M.props&&M.props.onVnodeBeforeUpdate)&&xe(te,V,M,G),Ge(f,!0);const ie=bn(f),ve=f.subTree;f.subTree=ie,P(ve,ie,h(ve.el),Rt(ve),f,m,v),M.el=ie.el,X===null&&es(f,ie.el),N&&ge(N,m),(te=M.props&&M.props.onVnodeUpdated)&&ge(()=>xe(te,V,M,G),m)}else{let M;const{el:H,props:N}=u,{bm:V,m:G,parent:X}=f,te=ot(u);if(Ge(f,!1),V&&yn(V),!te&&(M=N&&N.onVnodeBeforeMount)&&xe(M,X,u),Ge(f,!0),H&&gn){const ie=()=>{f.subTree=bn(f),gn(H,f.subTree,f,m,null)};te?u.type.__asyncLoader().then(()=>!f.isUnmounted&&ie()):ie()}else{const ie=f.subTree=bn(f);P(null,ie,p,y,f,m,v),u.el=ie.el}if(G&&ge(G,m),!te&&(M=N&&N.onVnodeMounted)){const ie=u;ge(()=>xe(M,X,ie),m)}(u.shapeFlag&256||X&&ot(X.vnode)&&X.vnode.shapeFlag&256)&&f.a&&ge(f.a,m),f.isMounted=!0,u=p=y=null}},F=f.effect=new Wn(E,Te,()=>on(x),f.scope),x=f.update=()=>{F.dirty&&F.run()};x.id=f.uid,Ge(f,!0),x()},q=(f,u,p)=>{u.component=f;const y=f.vnode.props;f.vnode=u,f.next=null,Ui(f,u.props,y,p),Di(f,u.children,p),Xe(),vs(f),ze()},j=(f,u,p,y,m,v,R,E,F=!1)=>{const x=f&&f.children,M=f?f.shapeFlag:0,H=u.children,{patchFlag:N,shapeFlag:V}=u;if(N>0){if(N&128){At(x,H,p,y,m,v,R,E,F);return}else if(N&256){Me(x,H,p,y,m,v,R,E,F);return}}V&8?(M&16&&Pe(x,m,v),H!==x&&d(p,H)):M&16?V&16?At(x,H,p,y,m,v,R,E,F):Pe(x,m,v,!0):(M&8&&d(p,""),V&16&&A(H,p,y,m,v,R,E,F))},Me=(f,u,p,y,m,v,R,E,F)=>{f=f||nt,u=u||nt;const x=f.length,M=u.length,H=Math.min(x,M);let N;for(N=0;N<H;N++){const V=u[N]=F?Ue(u[N]):Ce(u[N]);P(f[N],V,p,null,m,v,R,E,F)}x>M?Pe(f,m,v,!0,!1,H):A(u,p,y,m,v,R,E,F,H)},At=(f,u,p,y,m,v,R,E,F)=>{let x=0;const M=u.length;let H=f.length-1,N=M-1;for(;x<=H&&x<=N;){const V=f[x],G=u[x]=F?Ue(u[x]):Ce(u[x]);if(Ie(V,G))P(V,G,p,null,m,v,R,E,F);else break;x++}for(;x<=H&&x<=N;){const V=f[H],G=u[N]=F?Ue(u[N]):Ce(u[N]);if(Ie(V,G))P(V,G,p,null,m,v,R,E,F);else break;H--,N--}if(x>H){if(x<=N){const V=N+1,G=V<M?u[V].el:y;for(;x<=N;)P(null,u[x]=F?Ue(u[x]):Ce(u[x]),p,G,m,v,R,E,F),x++}}else if(x>N)for(;x<=H;)Fe(f[x],m,v,!0),x++;else{const V=x,G=x,X=new Map;for(x=G;x<=N;x++){const ye=u[x]=F?Ue(u[x]):Ce(u[x]);ye.key!=null&&X.set(ye.key,x)}let te,ie=0;const ve=N-G+1;let tt=!1,as=0;const ht=new Array(ve);for(x=0;x<ve;x++)ht[x]=0;for(x=V;x<=H;x++){const ye=f[x];if(ie>=ve){Fe(ye,m,v,!0);continue}let Ae;if(ye.key!=null)Ae=X.get(ye.key);else for(te=G;te<=N;te++)if(ht[te-G]===0&&Ie(ye,u[te])){Ae=te;break}Ae===void 0?Fe(ye,m,v,!0):(ht[Ae-G]=x+1,Ae>=as?as=Ae:tt=!0,P(ye,u[Ae],p,null,m,v,R,E,F),ie++)}const hs=tt?Gi(ht):nt;for(te=hs.length-1,x=ve-1;x>=0;x--){const ye=G+x,Ae=u[ye],ds=ye+1<M?u[ye+1].el:y;ht[x]===0?P(null,Ae,p,ds,m,v,R,E,F):tt&&(te<0||x!==hs[te]?qe(Ae,p,ds,2):te--)}}},qe=(f,u,p,y,m=null)=>{const{el:v,type:R,transition:E,children:F,shapeFlag:x}=f;if(x&6){qe(f.component.subTree,u,p,y);return}if(x&128){f.suspense.move(u,p,y);return}if(x&64){R.move(f,u,p,et);return}if(R===pe){s(v,u,p);for(let H=0;H<F.length;H++)qe(F[H],u,p,y);s(f.anchor,u,p);return}if(R===Dt){g(f,u,p);return}if(y!==2&&x&1&&E)if(y===0)E.beforeEnter(v),s(v,u,p),ge(()=>E.enter(v),m);else{const{leave:H,delayLeave:N,afterLeave:V}=E,G=()=>s(v,u,p),X=()=>{H(v,()=>{G(),V&&V()})};N?N(v,G,X):X()}else s(v,u,p)},Fe=(f,u,p,y=!1,m=!1)=>{const{type:v,props:R,ref:E,children:F,dynamicChildren:x,shapeFlag:M,patchFlag:H,dirs:N}=f;if(E!=null&&Xt(E,null,p,f,!0),M&256){u.ctx.deactivate(f);return}const V=M&1&&N,G=!ot(f);let X;if(G&&(X=R&&R.onVnodeBeforeUnmount)&&xe(X,u,f),M&6)Qr(f.component,p,y);else{if(M&128){f.suspense.unmount(p,y);return}V&&Re(f,null,u,"beforeUnmount"),M&64?f.type.remove(f,u,p,m,et,y):x&&(v!==pe||H>0&&H&64)?Pe(x,u,p,!1,!0):(v===pe&&H&384||!m&&M&16)&&Pe(F,u,p),y&&cs(f)}(G&&(X=R&&R.onVnodeUnmounted)||V)&&ge(()=>{X&&xe(X,u,f),V&&Re(f,null,u,"unmounted")},p)},cs=f=>{const{type:u,el:p,anchor:y,transition:m}=f;if(u===pe){Zr(p,y);return}if(u===Dt){T(f);return}const v=()=>{r(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(f.shapeFlag&1&&m&&!m.persisted){const{leave:R,delayLeave:E}=m,F=()=>R(p,v);E?E(f.el,v,F):F()}else v()},Zr=(f,u)=>{let p;for(;f!==u;)p=_(f),r(f),f=p;r(u)},Qr=(f,u,p)=>{const{bum:y,scope:m,update:v,subTree:R,um:E}=f;y&&yn(y),m.stop(),v&&(v.active=!1,Fe(R,f,u,p)),E&&ge(E,u),ge(()=>{f.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Pe=(f,u,p,y=!1,m=!1,v=0)=>{for(let R=v;R<f.length;R++)Fe(f[R],u,p,y,m)},Rt=f=>f.shapeFlag&6?Rt(f.component.subTree):f.shapeFlag&128?f.suspense.next():_(f.anchor||f.el);let hn=!1;const us=(f,u,p)=>{f==null?u._vnode&&Fe(u._vnode,null,null,!0):P(u._vnode||null,f,u,null,null,null,p),hn||(hn=!0,vs(),Yt(),hn=!1),u._vnode=f},et={p:P,um:Fe,m:qe,r:cs,mt:fe,mc:A,pc:j,pbc:I,n:Rt,o:e};let dn,gn;return t&&([dn,gn]=t(et)),{render:us,hydrate:dn,createApp:ji(us,dn)}}function vn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ge({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Sr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function is(e,t,n=!1){const s=e.children,r=t.children;if(U(s)&&U(r))for(let l=0;l<s.length;l++){const i=s[l];let o=r[l];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[l]=Ue(r[l]),o.el=i.el),n||is(i,o)),o.type===ct&&(o.el=i.el)}}function Gi(e){const t=e.slice(),n=[0];let s,r,l,i,o;const c=e.length;for(s=0;s<c;s++){const a=e[s];if(a!==0){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(l=0,i=n.length-1;l<i;)o=l+i>>1,e[n[o]]<a?l=o+1:i=o;a<e[n[l]]&&(l>0&&(t[s]=n[l-1]),n[l]=s)}}for(l=n.length,i=n[l-1];l-- >0;)n[l]=i,i=t[i];return n}function Ur(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ur(t)}const Yi=e=>e.__isTeleport,_t=e=>e&&(e.disabled||e.disabled===""),js=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Hs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Hn=(e,t)=>{const n=e&&e.to;return le(n)?t?t(n):null:n},Ji={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,l,i,o,c,a){const{mc:d,pc:h,pbc:_,o:{insert:w,querySelector:O,createText:P,createComment:S}}=a,W=_t(t.props);let{shapeFlag:K,children:g,dynamicChildren:T}=t;if(e==null){const C=t.el=P(""),b=t.anchor=P("");w(C,n,s),w(b,n,s);const B=t.target=Hn(t.props,O),A=t.targetAnchor=P("");B&&(w(A,B),i==="svg"||js(B)?i="svg":(i==="mathml"||Hs(B))&&(i="mathml"));const L=(I,D)=>{K&16&&d(g,I,D,r,l,i,o,c)};W?L(n,b):B&&L(B,A)}else{t.el=e.el;const C=t.anchor=e.anchor,b=t.target=e.target,B=t.targetAnchor=e.targetAnchor,A=_t(e.props),L=A?n:b,I=A?C:B;if(i==="svg"||js(b)?i="svg":(i==="mathml"||Hs(b))&&(i="mathml"),T?(_(e.dynamicChildren,T,L,r,l,i,o),is(e,t,!0)):c||h(e,t,L,I,r,l,i,o,!1),W)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ht(t,n,C,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=Hn(t.props,O);D&&Ht(t,D,null,a,0)}else A&&Ht(t,b,B,a,1)}Vr(t)},remove(e,t,n,s,{um:r,o:{remove:l}},i){const{shapeFlag:o,children:c,anchor:a,targetAnchor:d,target:h,props:_}=e;if(h&&l(d),i&&l(a),o&16){const w=i||!_t(_);for(let O=0;O<c.length;O++){const P=c[O];r(P,t,n,w,!!P.dynamicChildren)}}},move:Ht,hydrate:Zi};function Ht(e,t,n,{o:{insert:s},m:r},l=2){l===0&&s(e.targetAnchor,t,n);const{el:i,anchor:o,shapeFlag:c,children:a,props:d}=e,h=l===2;if(h&&s(i,t,n),(!h||_t(d))&&c&16)for(let _=0;_<a.length;_++)r(a[_],t,n,2);h&&s(o,t,n)}function Zi(e,t,n,s,r,l,{o:{nextSibling:i,parentNode:o,querySelector:c}},a){const d=t.target=Hn(t.props,c);if(d){const h=d._lpa||d.firstChild;if(t.shapeFlag&16)if(_t(t.props))t.anchor=a(i(e),t,o(e),n,s,r,l),t.targetAnchor=h;else{t.anchor=i(e);let _=h;for(;_;)if(_=i(_),_&&_.nodeType===8&&_.data==="teleport anchor"){t.targetAnchor=_,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}a(h,t,d,n,s,r,l)}Vr(t)}return t.anchor&&i(t.anchor)}const Lo=Ji;function Vr(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const pe=Symbol.for("v-fgt"),ct=Symbol.for("v-txt"),de=Symbol.for("v-cmt"),Dt=Symbol.for("v-stc"),yt=[];let Ee=null;function os(e=!1){yt.push(Ee=e?null:[])}function $r(){yt.pop(),Ee=yt[yt.length-1]||null}let ut=1;function Ss(e){ut+=e}function Dr(e){return e.dynamicChildren=ut>0?Ee||nt:null,$r(),ut>0&&Ee&&Ee.push(e),e}function Bo(e,t,n,s,r,l){return Dr(qr(e,t,n,s,r,l,!0))}function Kr(e,t,n,s,r){return Dr(ne(e,t,n,s,r,!0))}function Tt(e){return e?e.__v_isVNode===!0:!1}function Ie(e,t){return e.type===t.type&&e.key===t.key}const un="__vInternal",Wr=({key:e})=>e??null,Kt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?le(e)||ae(e)||$(e)?{i:re,r:e,k:t,f:!!n}:e:null);function qr(e,t=null,n=null,s=0,r=null,l=e===pe?0:1,i=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wr(t),ref:t&&Kt(t),scopeId:br,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:re};return o?(fs(c,n),l&128&&e.normalize(c)):n&&(c.shapeFlag|=le(n)?8:16),ut>0&&!i&&Ee&&(c.patchFlag>0||l&6)&&c.patchFlag!==32&&Ee.push(c),c}const ne=Qi;function Qi(e,t=null,n=null,s=0,r=null,l=!1){if((!e||e===xr)&&(e=de),Tt(e)){const o=We(e,t,!0);return n&&fs(o,n),ut>0&&!l&&Ee&&(o.shapeFlag&6?Ee[Ee.indexOf(e)]=o:Ee.push(o)),o.patchFlag|=-2,o}if(co(e)&&(e=e.__vccOpts),t){t=Xi(t);let{class:o,style:c}=t;o&&!le(o)&&(t.class=rn(o)),z(c)&&(cr(c)&&!U(c)&&(c=ue({},c)),t.style=sn(c))}const i=le(e)?1:ii(e)?128:Yi(e)?64:z(e)?4:$(e)?2:0;return qr(e,t,n,s,r,i,l,!0)}function Xi(e){return e?cr(e)||un in e?ue({},e):e:null}function We(e,t,n=!1){const{props:s,ref:r,patchFlag:l,children:i}=e,o=t?zi(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Wr(o),ref:t&&t.ref?n&&r?U(r)?r.concat(Kt(t)):[r,Kt(t)]:Kt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&We(e.ssContent),ssFallback:e.ssFallback&&We(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Gr(e=" ",t=0){return ne(ct,null,e,t)}function ko(e="",t=!1){return t?(os(),Kr(de,null,e)):ne(de,null,e)}function Ce(e){return e==null||typeof e=="boolean"?ne(de):U(e)?ne(pe,null,e.slice()):typeof e=="object"?Ue(e):ne(ct,null,String(e))}function Ue(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:We(e)}function fs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),fs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(un in t)?t._ctx=re:r===3&&re&&(re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else $(t)?(t={default:t,_ctx:re},n=32):(t=String(t),s&64?(n=16,t=[Gr(t)]):n=8);e.children=t,e.shapeFlag|=n}function zi(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=rn([t.class,s.class]));else if(r==="style")t.style=sn([t.style,s.style]);else if(en(r)){const l=t[r],i=s[r];i&&l!==i&&!(U(l)&&l.includes(i))&&(t[r]=l?[].concat(l,i):i)}else r!==""&&(t[r]=s[r])}return t}function xe(e,t,n,s=null){we(e,t,7,[n,s])}const eo=Pr();let to=0;function no(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||eo,l={uid:to++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ml(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Br(s,r),emitsOptions:mr(s,r),emit:null,emitted:null,propsDefaults:ee,inheritAttrs:s.inheritAttrs,ctx:ee,data:ee,props:ee,attrs:ee,slots:ee,refs:ee,setupState:ee,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=ei.bind(null,l),e.ce&&e.ce(l),l}let oe=null;const so=()=>oe||re;let zt,Sn;{const e=Gs(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),l=>{r.length>1?r.forEach(i=>i(l)):r[0](l)}};zt=t("__VUE_INSTANCE_SETTERS__",n=>oe=n),Sn=t("__VUE_SSR_SETTERS__",n=>Ft=n)}const wt=e=>{const t=oe;return zt(e),e.scope.on(),()=>{e.scope.off(),zt(t)}},Us=()=>{oe&&oe.scope.off(),zt(null)};function Yr(e){return e.vnode.shapeFlag&4}let Ft=!1;function ro(e,t=!1){t&&Sn(t);const{props:n,children:s}=e.vnode,r=Yr(e);Si(e,n,r,t),$i(e,s);const l=r?lo(e,t):void 0;return t&&Sn(!1),l}function lo(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ur(new Proxy(e.ctx,Ii));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?oo(e):null,l=wt(e);Xe();const i=$e(s,e,0,[e.props,r]);if(ze(),l(),Ks(i)){if(i.then(Us,Us),t)return i.then(o=>{Un(e,o,t)}).catch(o=>{at(o,e,0)});e.asyncDep=i}else Un(e,i,t)}else Jr(e,t)}function Un(e,t,n){$(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=gr(t)),Jr(e,n)}let Vs;function Jr(e,t,n){const s=e.type;if(!e.render){if(!t&&Vs&&!s.render){const r=s.template||rs(e).template;if(r){const{isCustomElement:l,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:c}=s,a=ue(ue({isCustomElement:l,delimiters:o},i),c);s.render=Vs(r,a)}}e.render=s.render||Te}{const r=wt(e);Xe();try{Mi(e)}finally{ze(),r()}}}function io(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return _e(e,"get","$attrs"),t[n]}}))}function oo(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return io(e)},slots:e.slots,emit:e.emit,expose:t}}function an(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gr(ur(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pt)return pt[n](e)},has(t,n){return n in t||n in pt}}))}function fo(e,t=!0){return $(e)?e.displayName||e.name:e.name||t&&e.__name}function co(e){return $(e)&&"__vccOpts"in e}const uo=(e,t)=>$l(e,t,Ft);function No(e,t,n){const s=arguments.length;return s===2?z(t)&&!U(t)?Tt(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Tt(n)&&(n=[n]),ne(e,t,n))}const ao="3.4.15";export{Kr as $,we as A,Fo as B,pn as C,Xr as D,Zl as E,Kl as F,fr as G,Ar as H,so as I,xl as J,mo as K,Vl as L,Co as M,os as N,Bo as O,yo as P,ko as Q,qr as R,Gr as S,rn as T,ne as U,ti as V,wo as W,pe as X,Ro as Y,Io as Z,ho as _,Vt as a,To as a0,zi as a1,go as a2,Xi as a3,$t as a4,Hi as a5,xo as a6,Ss as a7,sn as a8,Or as a9,vo as aa,Z as ab,Rr as ac,Eo as ad,Lo as ae,Ao as af,We as ag,Oo as ah,le as b,uo as c,bi as d,Mo as e,Po as f,U as g,yn as h,$ as i,Ys as j,No as k,ul as l,ue as m,yi as n,z as o,en as p,$s as q,Zn as r,bo as s,al as t,nn as u,Be as v,xn as w,Kn as x,po as y,_o as z};
@@ -1 +0,0 @@
1
- let t,s;t=navigator.userAgent,s=document.body?document.body.offsetWidth:window.screen.width;const g=/Android|iPhone|iPad|iPod|webOS/i.test(t),p=s<640,d=s>=1024,o=["whatsapp","instagram","facebook","twitter","youtube","tiktok","pinterest","threads"],a={},c=()=>{if(!globalThis.$storefront)return;const{settings:e}=globalThis.$storefront;o.forEach(r=>{e[r]&&(a[r]=e[r])})};c();globalThis.__sfId=typeof globalThis.__sfId=="number"?globalThis.__sfId:-1;const f=()=>String(++globalThis.__sfId),u=(e,r=300)=>{typeof window.requestIdleCallback=="function"?window.requestIdleCallback(e):setTimeout(e,r)},l=e=>e.replace(/[ÁáÃãÂâÀà]/g,"a").replace(/[ÉéÊê]/g,"e").replace(/[Íí]/g,"i").replace(/[ÕõÓóÔô]/g,"o").replace(/[Úú]/g,"u").replace(/[Çç]/g,"c"),b=e=>l(e.trim()).toLowerCase().replace(/[\W\r\n]/gm,"-").replace(/-{2,}/g,"-").replace(/(^-)|(-$)/g,""),n=e=>e.toLowerCase().replace(/Á/g,"á").replace(/Ã/g,"ã").replace(/Â/g,"â").replace(/À/g,"à").replace(/É/g,"é").replace(/Ê/g,"ê").replace(/Í/g,"í").replace(/Õ/g,"õ").replace(/Ó/g,"ó").replace(/Ô/g,"ô").replace(/Ú/g,"ú").replace(/Ç/g,"ç"),i=e=>n(e.trim()).replace(/[\r\n]/gm," ").replace(/[^\w-&%áãâàéêíõóôúç]/g," ").replace(/\s{2,}/g," "),w=(e,r="/s/")=>`${r}${encodeURIComponent(i(e))}`,h=(e,r=0)=>{for(;e.offsetParent;)r+=e.offsetTop,e=e.offsetParent;return window.scroll({top:r,behavior:"smooth"})};export{h as a,g as b,l as c,p as d,a as e,w as g,d as i,u as r,b as s,f as u};
@@ -1 +0,0 @@
1
- import{u as _}from"./customer-session.TRPGDX3c.js";import{u as l}from"./index.q6KIyKlJ.js";import{g as y}from"./price.Easct8WC.js";import{c as m,w as g}from"./runtime-core.esm-bundler.XTSAdOlw.js";const q=()=>{let i=Math.floor(Math.random()*1e6).toString()+Date.now();for(;i.length<24;)i+="0";return i},h=q;function b(i){return{all:i=i||new Map,on:function(t,r){var o=i.get(t);o?o.push(r):i.set(t,[r])},off:function(t,r){var o=i.get(t);o&&(r?o.splice(o.indexOf(r)>>>0,1):i.set(t,[]))},emit:function(t,r){var o=i.get(t);o&&o.slice().map(function(n){n(r)}),(o=i.get("*"))&&o.slice().map(function(n){n(t,r)})}}}const v=(i,{flags:t})=>!i.flags&&!t?!0:!i.flags||!t||i.flags.length!==t.length?!1:i.flags.every(r=>t.includes(r)),C=(i,t)=>{if(typeof t.product_id!="string"||typeof t.quantity!="number"||!(t.quantity>=0)||typeof t.price!="number"||!(t.price>=0))return null;const{items:r}=i;if(!t.kit_product)for(let n=0;n<r.length;n++){const a=r[n];if(!a.kit_product&&a.product_id===t.product_id&&a.variation_id===t.variation_id&&(!a.customizations||!a.customizations.length)&&v(a,t))return a.quantity+=t.quantity,t.price&&(a.price=t.price),t.final_price&&(a.final_price=t.final_price),a}const o={...t};if((!t._id||t._id===t.variation_id||r.find(({_id:n})=>n===t._id))&&(o._id=h()),t.customizations){const n=[];t.customizations.forEach((a,c)=>{n[c]={...a}}),o.customizations=n}return r.push(o),o},k=(i,t,r)=>{(typeof r!="number"||Number.isNaN(r))&&(r=i.min_quantity||1);const o=i.min_quantity||0,n=t&&i.variations?i.variations.find(({_id:c})=>c===t):void 0,a={product_id:i._id,variation_id:t,sku:n?.sku||i.sku,name:n?.name||i.name,slug:i.slug,production_time:n?.production_time||i.production_time,currency_id:i.currency_id,currency_symbol:i.currency_symbol,base_price:n?.base_price||i.base_price,max_quantity:i.quantity,quantity:o>0?Math.max(o,r):r,price:y(i)};return n?.picture_id&&i.pictures&&(a.picture=i.pictures.find(c=>c._id===n.picture_id)),!a.picture&&i.pictures&&([a.picture]=i.pictures),a},E="ecomShoppingCart",x={subtotal:0,items:[]},s=_(E,x),O=m(()=>s.items.reduce((i,t)=>i+t.quantity,0)),z=i=>{C(s,i)},S=i=>{for(let t=0;t<s.items.length;t++)if(s.items[t]._id===i){s.items.splice(t,1);break}},D=(i,t,r)=>z(k(i,t,r)),f=b(),p=()=>s.items.map(i=>({...i}));let e=p();const N=l(i=>{["addCartItem","removeCartItem"].forEach(t=>{const r=t==="addCartItem",o=r?i:e,n=r?e:i;o.forEach(a=>{if(!a.quantity)return;const u=n.find(({_id:d})=>d===a._id)?.quantity||0;a.quantity>u&&f.emit(t,{...a,quantity:a.quantity-u})})}),e=p()},200);g(s.items,i=>{i.forEach(t=>{let r=t.kit_product?.price&&t.kit_product.pack_quantity?t.kit_product.price/t.kit_product.pack_quantity:t.price;Array.isArray(t.customizations)&&t.customizations.forEach(a=>{if(a.add_to_price){const{type:c,addition:u}=a.add_to_price;r+=c==="fixed"?u:t.price*(u/100)}}),t.final_price=r;const o=t.min_quantity||1,n=t.max_quantity;typeof t.quantity!="number"||Number.isNaN(t.quantity)||t.quantity<o?t.quantity=o:n&&t.quantity>n&&(t.quantity=n)}),s.subtotal=i.reduce((t,r)=>t+r.quantity*(r.final_price||r.price),0),N(i)});const Q={on:f.on,off:f.off};export{D as a,Q as c,k as p,S as r,s,O as t};