cloudcommerce 2.6.2 → 2.6.4
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.
- package/.github/workflows/test-apps.yml +1 -1
- package/CHANGELOG.md +21 -0
- package/README.md +2 -0
- package/ecomplus-stores/barradoce/functions/many/package.json +3 -3
- package/ecomplus-stores/barradoce/functions/ssr/content/reviews.json +71 -0
- package/ecomplus-stores/barradoce/functions/ssr/content/types.d.ts +5 -0
- package/ecomplus-stores/barradoce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barradoce/functions/ssr/src/components/ProductDetails.vue +2 -1
- package/ecomplus-stores/barradoce/functions/ssr/src/env.d.ts +1 -0
- package/ecomplus-stores/barradoce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barradoce/package.json +2 -2
- package/package.json +7 -7
- package/packages/api/package.json +1 -1
- package/packages/apps/affiliate-program/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +1 -1
- package/packages/apps/flash-courier/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/galaxpay/package.json +1 -1
- package/packages/apps/google-analytics/package.json +1 -1
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mandae/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +2 -2
- package/packages/apps/pagarme-v5/package.json +1 -1
- package/packages/apps/paghiper/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/apps/webhooks/package.json +1 -1
- package/packages/cli/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +2 -2
- package/packages/eslint/package.json +6 -6
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +2 -2
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/lib/cron-ssr-save-views.js +71 -66
- package/packages/ssr/lib/lib/cron-ssr-save-views.js.map +1 -1
- package/packages/ssr/package.json +6 -6
- package/packages/ssr/src/lib/cron-ssr-save-views.ts +84 -77
- package/packages/storefront/dist/client/_astro/AccountPage.B4WZaOzX.js +1 -0
- package/packages/storefront/dist/client/_astro/CartSidebar.DAGdpIcU.js +1 -0
- package/packages/storefront/dist/client/_astro/HeroSlider.Dq_9kcdU.js +1 -0
- package/packages/storefront/dist/client/_astro/PitchBar.BwLlIs6F.js +1 -0
- package/packages/storefront/dist/client/_astro/Prices.BgHTq5id.js +1 -0
- package/packages/storefront/dist/client/_astro/ProductDetails.CnYNdPl5.js +7 -0
- package/packages/storefront/dist/client/_astro/ProductShelf.kfADQTUO.js +1 -0
- package/packages/storefront/dist/client/_astro/SearchModal.DcmvABes.js +1 -0
- package/packages/storefront/dist/client/_astro/SearchShowcase.C9GWwOnF.js +1 -0
- package/packages/storefront/dist/client/_astro/ShippingCalculator.DE01D7dt.js +1 -0
- package/packages/storefront/dist/client/_astro/ShopHeader.Cf4t6O6z.js +7 -0
- package/packages/storefront/dist/client/_astro/_commonjsHelpers.Cpj98o6Y.js +1 -0
- package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.CBemkWnU.js +5 -0
- package/packages/storefront/dist/client/_astro/{_slug_.4W7qhV-L.css → _slug_.DX_OkMX7.css} +1 -1
- package/packages/storefront/dist/client/_astro/{afetch.OifQZgwR.js → afetch.DPLba2tr.js} +1 -1
- package/packages/storefront/dist/client/_astro/client.CdXC84C5.js +1 -0
- package/packages/storefront/dist/client/_astro/customer-session.CNe1heRH.js +7 -0
- package/packages/storefront/dist/client/_astro/{firebase-app.iLdzDVjL.js → firebase-app.CBckq0Sj.js} +1 -1
- package/packages/storefront/dist/client/_astro/{format-money.1_HtF5S2.js → format-money.DINpWB0x.js} +1 -1
- package/packages/storefront/dist/client/_astro/grid-title.D4m7-g3h.js +1 -0
- package/packages/storefront/dist/client/_astro/hoisted.B2rH1xwX.js +8 -0
- package/packages/storefront/dist/client/_astro/hoisted.DBPXHTEb.js +1 -0
- package/packages/storefront/dist/client/_astro/hoisted.EBqhuD5o.js +1 -0
- package/packages/storefront/dist/client/_astro/{hoisted.GaT7bmE3.js → hoisted.ut_nNM_H.js} +1 -1
- package/packages/storefront/dist/client/_astro/i18n.B3skIOFg.js +1 -0
- package/packages/storefront/dist/client/_astro/img-sizes.rFK7so02.js +1 -0
- package/packages/storefront/dist/client/_astro/img.D5a6GzeE.js +1 -0
- package/packages/storefront/dist/client/_astro/index.CFw6O-Kt.js +1 -0
- package/packages/storefront/dist/client/_astro/index.DBfgCyd-.js +1 -0
- package/packages/storefront/dist/client/_astro/{modules-info.HP6478mG.js → modules-info.BHKiT6oA.js} +1 -1
- package/packages/storefront/dist/client/_astro/name.BZA9xqh-.js +1 -0
- package/packages/storefront/dist/client/_astro/photoswipe.esm.C0FT-EY-.js +4 -0
- package/packages/storefront/dist/client/_astro/price.CHiL6Z1J.js +1 -0
- package/packages/storefront/dist/client/_astro/sf-utils.Cigv01cN.js +13 -0
- package/packages/storefront/dist/client/_astro/shopping-cart.D-w8Z-4p.js +1 -0
- package/packages/storefront/dist/client/_astro/use-analytics.CQDdNgwF.js +1 -0
- package/packages/storefront/dist/client/_astro/use-cms-preview.4Hq7LCmA.js +1 -0
- package/packages/storefront/dist/client/_astro/use-product-card.CQRlRsNX.js +1 -0
- package/packages/storefront/dist/client/_astro/use-text-value.UjCYLWjm.js +4 -0
- package/packages/storefront/dist/client/img/uploads/logo.png +0 -0
- package/packages/storefront/dist/server/chunks/{CartSidebar_3_1aFp67.mjs → CartSidebar_BmwcZuxv.mjs} +36 -4
- package/packages/storefront/dist/server/chunks/{SearchModal_2azP1u7P.mjs → SearchModal_BvEnUvAx.mjs} +4 -3
- package/packages/storefront/dist/server/chunks/_.._DORZHe_Z.mjs +5 -0
- package/packages/storefront/dist/server/chunks/{_page__qqIVxbal.mjs → _page__DU3kNewy.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{account_vK6pmJlz.mjs → account_CaTloREf.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/astro/{assets-service_631fRtTy.mjs → assets-service_B77Hm2ue.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/{astro_u-oSb215.mjs → astro_ISB6VLqs.mjs} +178 -59
- package/packages/storefront/dist/server/chunks/index_BTDpenpc.mjs +5 -0
- package/packages/storefront/dist/server/chunks/index_D0q4ab_n.mjs +5 -0
- package/packages/storefront/dist/server/chunks/{node_zqXXqc-u.mjs → node_C7sdLKL4.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{__ZucPYaOo.mjs → __B4CsSrck.mjs} +1751 -344
- package/packages/storefront/dist/server/chunks/pages/{_page__0sN9U0SD.mjs → _page__sb5Idhgp.mjs} +2 -3
- package/packages/storefront/dist/server/chunks/pages/{account_OQr_6KN1.mjs → account_iWjHfkwu.mjs} +2 -3
- package/packages/storefront/dist/server/chunks/pages/{index_3IjgOEIq.mjs → index_BZlpKBRL.mjs} +41 -4
- package/packages/storefront/dist/server/chunks/pages/node_GFu-CQ19.mjs +852 -0
- package/packages/storefront/dist/server/chunks/pages/{~fallback_133FK-CP.mjs → ~fallback_C07rzeay.mjs} +2 -3
- package/packages/storefront/dist/server/chunks/{index__05fnqFh.mjs → ~fallback_YpJa9BIL.mjs} +1 -1
- package/packages/storefront/dist/server/entry.mjs +751 -912
- package/packages/storefront/dist/server/manifest_KFjAaJaC.mjs +201 -0
- package/packages/storefront/dist/server/renderers.mjs +1 -1
- package/packages/storefront/package.json +8 -8
- package/packages/storefront/src/lib/composables/use-breadcrumbs.ts +2 -1
- package/packages/storefront/src/lib/composables/use-search-showcase.ts +2 -1
- package/packages/storefront/src/lib/content.d.ts +4 -1
- package/packages/storefront/src/lib/custom-content.d.ts +9 -0
- package/packages/storefront/src/lib/ssr-context.ts +6 -4
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/AccountPage.0M6_FdU6.js +0 -1
- package/packages/storefront/dist/client/_astro/CartSidebar.L0Vbhsdt.js +0 -1
- package/packages/storefront/dist/client/_astro/HeroSlider.ju9TsLrJ.js +0 -1
- package/packages/storefront/dist/client/_astro/PitchBar.yqD9ycx5.js +0 -1
- package/packages/storefront/dist/client/_astro/Prices.xI1rdM1e.js +0 -1
- package/packages/storefront/dist/client/_astro/ProductDetails.FQtM5kpd.js +0 -7
- package/packages/storefront/dist/client/_astro/ProductShelf.-4fsYkPB.js +0 -1
- package/packages/storefront/dist/client/_astro/ProductShelf.GAAhKdTN.js +0 -1
- package/packages/storefront/dist/client/_astro/QuantitySelector.v7L8EYOR.js +0 -1
- package/packages/storefront/dist/client/_astro/SearchModal.rasg5jV6.js +0 -1
- package/packages/storefront/dist/client/_astro/SearchShowcase.kA6jICYo.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.v_L96Y90.js +0 -7
- package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.xATGHWd9.js +0 -5
- package/packages/storefront/dist/client/_astro/client.YJ00ta5M.js +0 -1
- package/packages/storefront/dist/client/_astro/customer-session.ZD6tLDQJ.js +0 -7
- package/packages/storefront/dist/client/_astro/grid-title.pK2Nn3i-.js +0 -1
- package/packages/storefront/dist/client/_astro/hoisted.ICXGWNEA.js +0 -1
- package/packages/storefront/dist/client/_astro/hoisted.XOXTrHqn.js +0 -1
- package/packages/storefront/dist/client/_astro/i18n.zhlBzJt8.js +0 -1
- package/packages/storefront/dist/client/_astro/img-sizes.gxAI9JNh.js +0 -1
- package/packages/storefront/dist/client/_astro/img.AnjeGdy_.js +0 -1
- package/packages/storefront/dist/client/_astro/index.KfrHdfOH.js +0 -1
- package/packages/storefront/dist/client/_astro/index.ShNlAyu1.js +0 -1
- package/packages/storefront/dist/client/_astro/name.VA3MEpe0.js +0 -1
- package/packages/storefront/dist/client/_astro/photoswipe.esm.Ylh9TGkz.js +0 -4
- package/packages/storefront/dist/client/_astro/price.Easct8WC.js +0 -1
- package/packages/storefront/dist/client/_astro/sf-utils.c42cbZ9W.js +0 -13
- package/packages/storefront/dist/client/_astro/shopping-cart.nSNNOrp9.js +0 -1
- package/packages/storefront/dist/client/_astro/use-analytics.wTmoP8B1.js +0 -1
- package/packages/storefront/dist/client/_astro/use-product-card.UFr8SCuD.js +0 -1
- package/packages/storefront/dist/client/_astro/use-text-value.lKqoIagH.js +0 -4
- package/packages/storefront/dist/server/chunks/_.._19fCuQdO.mjs +0 -5
- package/packages/storefront/dist/server/chunks/pages/node_OmjWRf8D.mjs +0 -112
- package/packages/storefront/dist/server/chunks/~fallback_Wahcp9Wk.mjs +0 -5
- package/packages/storefront/dist/server/manifest_9FASPYUE.mjs +0 -202
- /package/packages/storefront/dist/client/_astro/{index-bea2a320.eWykogwr.js → index-bea2a320.CHELEM8n.js} +0 -0
- /package/packages/storefront/dist/client/_astro/{photoswipe-lightbox.esm.dZBqKD9u.js → photoswipe-lightbox.esm.BbYxSZIB.js} +0 -0
- /package/packages/storefront/dist/client/_astro/{photoswipe.0V7m2jWu.js → photoswipe.CNpEZKfy.js} +0 -0
- /package/packages/storefront/dist/client/_astro/{server-data.4C60Esyt.js → server-data.CUHTES8a.js} +0 -0
- /package/packages/storefront/dist/server/chunks/{photoswipe_IcWDJiwc.mjs → photoswipe_wusPJBJF.mjs} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var _s={};let Vt,yn;typeof window=="object"&&window?yn=Vt=window:typeof process=="object"&&_s?(yn=global,Vt=_s):yn=Vt=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 Vt[e.toUpperCase()]},Fn={};["lang","currency","currency_symbol","country_code","store_id","store_object_id"].forEach(e=>{Fn[e]=rl("ecom_"+e)});const mo={get(e){const t=Fn[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){Fn[e]=t}};/**
|
|
2
|
+
* @vue/shared v3.4.20
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function Dn(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,nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ds=e=>e.startsWith("onUpdate:"),fe=Object.assign,Kn=(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]",Ks=e=>Et(e)==="[object Set]",ys=e=>Et(e)==="[object Date]",$=e=>typeof e=="function",le=e=>typeof e=="string",Ke=e=>typeof e=="symbol",z=e=>e!==null&&typeof e=="object",Ws=e=>(z(e)||$(e))&&$(e.then)&&$(e.catch),qs=Object.prototype.toString,Et=e=>qs.call(e),ol=e=>Et(e).slice(8,-1),Gs=e=>Et(e)==="[object Object]",Wn=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rt=Dn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),sn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},cl=/-(\w)/g,Me=sn(e=>e.replace(cl,(t,n)=>n?n.toUpperCase():"")),fl=/\B([A-Z])/g,At=sn(e=>e.replace(fl,"-$1").toLowerCase()),qn=sn(e=>e.charAt(0).toUpperCase()+e.slice(1)),mn=sn(e=>e?`on${qn(e)}`:""),Pe=(e,t)=>!Object.is(e,t),bn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Gt=(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 ms;const Ys=()=>ms||(ms=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rn(e){if(U(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=le(s)?pl(s):rn(s);if(r)for(const l in r)t[l]=r[l]}return t}else if(le(e)||z(e))return e}const dl=/;(?![^(]*\))/g,hl=/:([^]+)/,gl=/\/\*[^]*?\*\//g;function pl(e){const t={};return e.replace(gl,"").split(dl).forEach(n=>{if(n){const s=n.split(hl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ln(e){let t="";if(le(e))t=e;else if(U(e))for(let n=0;n<e.length;n++){const s=ln(e[n]);s&&(t+=s+" ")}else if(z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function bo(e){if(!e)return null;let{class:t,style:n}=e;return t&&!le(t)&&(e.class=ln(t)),n&&(e.style=rn(n)),e}const _l="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",xo=Dn(_l);function Co(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=Js(e[s],t[s]);return n}function Js(e,t){if(e===t)return!0;let n=ys(e),s=ys(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ke(e),s=Ke(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),f=t.hasOwnProperty(i);if(o&&!f||!o&&f||!Js(e[i],t[i]))return!1}}return String(e)===String(t)}const To=e=>le(e)?e:e==null?"":U(e)||z(e)&&(e.toString===qs||!$(e.toString))?JSON.stringify(e,Zs,2):String(e),Zs=(e,t)=>t&&t.__v_isRef?Zs(e,t.value):st(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],l)=>(n[xn(s,l)+" =>"]=r,n),{})}:Ks(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>xn(n))}:Ke(t)?xn(t):z(t)&&!U(t)&&!Gs(t)?String(t):t,xn=(e,t="")=>{var n;return Ke(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.4.20
|
|
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 wo(e){me&&me.cleanups.push(e)}let Ze;class Gn{constructor(t,n,s,r){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,bl(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){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>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ze()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ve,n=Ze;try{return Ve=!0,Ze=this,this._runnings++,bs(this),this.fn()}finally{xs(this),this._runnings--,Ze=n,Ve=t}}stop(){var t;this.active&&(bs(this),xs(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Cl(e){return e.value}function bs(e){e._trackId++,e._depsLength=0}function xs(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Qs(e.deps[t],e);e.deps.length=e._depsLength}}function Qs(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ve=!0,Rn=0;const Xs=[];function Xe(){Xs.push(Ve),Ve=!1}function ze(){const e=Xs.pop();Ve=e===void 0?!0:e}function Yn(){Rn++}function Jn(){for(Rn--;!Rn&&In.length;)In.shift()()}function zs(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Qs(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const In=[];function er(e,t,n){Yn();for(const s of e.keys()){let r;s._dirtyLevel<t&&(r??(r=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(r??(r=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&In.push(s.scheduler)))}Jn()}const tr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Yt=new WeakMap,Qe=Symbol(""),On=Symbol("");function _e(e,t,n){if(Ve&&Ze){let s=Yt.get(e);s||Yt.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=tr(()=>s.delete(n))),zs(Ze,r)}}function ke(e,t,n,s,r,l){const i=Yt.get(e);if(!i)return;let o=[];if(t==="clear")o=[...i.values()];else if(n==="length"&&U(e)){const f=Number(s);i.forEach((d,h)=>{(h==="length"||!Ke(h)&&h>=f)&&o.push(d)})}else switch(n!==void 0&&o.push(i.get(n)),t){case"add":U(e)?Wn(n)&&o.push(i.get("length")):(o.push(i.get(Qe)),st(e)&&o.push(i.get(On)));break;case"delete":U(e)||(o.push(i.get(Qe)),st(e)&&o.push(i.get(On)));break;case"set":st(e)&&o.push(i.get(Qe));break}Yn();for(const f of o)f&&er(f,4);Jn()}function Tl(e,t){var n;return(n=Yt.get(e))==null?void 0:n.get(t)}const wl=Dn("__proto__,__v_isRef,__isVue"),nr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke)),Cs=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(),Yn();const s=Z(this)[t].apply(this,n);return Jn(),ze(),s}}),e}function El(e){const t=Z(this);return _e(t,"has",e),t.hasOwnProperty(e)}class sr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,l=this._isShallow;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?jl:or:l?ir:lr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=U(t);if(!r){if(i&&J(Cs,n))return Reflect.get(Cs,n,s);if(n==="hasOwnProperty")return El}const o=Reflect.get(t,n,s);return(Ke(n)?nr.has(n):wl(n))||(r||_e(t,"get",n),l)?o:ae(o)?i&&Wn(n)?o:o.value:z(o)?r?cr(o):Xn(o):o}}class rr extends sr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let l=t[n];if(!this._isShallow){const f=ft(l);if(!Jt(s)&&!ft(s)&&(l=Z(l),s=Z(s)),!U(t)&&ae(l)&&!ae(s))return f?!1:(l.value=s,!0)}const i=U(t)&&Wn(n)?Number(n)<t.length:J(t,n),o=Reflect.set(t,n,s,r);return t===Z(r)&&(i?Pe(s,l)&&ke(t,"set",n,s):ke(t,"add",n,s)),o}deleteProperty(t,n){const s=J(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&ke(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Ke(n)||!nr.has(n))&&_e(t,"has",n),s}ownKeys(t){return _e(t,"iterate",U(t)?"length":Qe),Reflect.ownKeys(t)}}class Al extends sr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Fl=new rr,Rl=new Al,Il=new rr(!0),Zn=e=>e,on=e=>Reflect.getPrototypeOf(e);function Pt(e,t,n=!1,s=!1){e=e.__v_raw;const r=Z(e),l=Z(t);n||(Pe(t,l)&&_e(r,"get",t),_e(r,"get",l));const{has:i}=on(r),o=s?Zn:n?es:xt;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 Lt(e,t=!1){const n=this.__v_raw,s=Z(n),r=Z(e);return t||(Pe(e,r)&&_e(s,"has",e),_e(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Bt(e,t=!1){return e=e.__v_raw,!t&&_e(Z(e),"iterate",Qe),Reflect.get(e,"size",e)}function Ts(e){e=Z(e);const t=Z(this);return on(t).has.call(t,e)||(t.add(e),ke(t,"add",e,e)),this}function ws(e,t){t=Z(t);const n=Z(this),{has:s,get:r}=on(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?Pe(t,i)&&ke(n,"set",e,t):ke(n,"add",e,t),this}function vs(e){const t=Z(this),{has:n,get:s}=on(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&&ke(t,"delete",e,void 0),l}function Es(){const e=Z(this),t=e.size!==0,n=e.clear();return t&&ke(e,"clear",void 0,void 0),n}function kt(e,t){return function(s,r){const l=this,i=l.__v_raw,o=Z(i),f=t?Zn:e?es:xt;return!e&&_e(o,"iterate",Qe),i.forEach((d,h)=>s.call(r,f(d),f(h),l))}}function Nt(e,t,n){return function(...s){const r=this.__v_raw,l=Z(r),i=st(l),o=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,d=r[e](...s),h=n?Zn:t?es:xt;return!t&&_e(l,"iterate",f?On:Qe),{next(){const{value:a,done:g}=d.next();return g?{value:a,done:g}:{value:o?[h(a[0]),h(a[1])]:h(a),done:g}},[Symbol.iterator](){return this}}}}function Se(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ol(){const e={get(l){return Pt(this,l)},get size(){return Bt(this)},has:Lt,add:Ts,set:ws,delete:vs,clear:Es,forEach:kt(!1,!1)},t={get(l){return Pt(this,l,!1,!0)},get size(){return Bt(this)},has:Lt,add:Ts,set:ws,delete:vs,clear:Es,forEach:kt(!1,!0)},n={get(l){return Pt(this,l,!0)},get size(){return Bt(this,!0)},has(l){return Lt.call(this,l,!0)},add:Se("add"),set:Se("set"),delete:Se("delete"),clear:Se("clear"),forEach:kt(!0,!1)},s={get(l){return Pt(this,l,!0,!0)},get size(){return Bt(this,!0)},has(l){return Lt.call(this,l,!0)},add:Se("add"),set:Se("set"),delete:Se("delete"),clear:Se("clear"),forEach:kt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Nt(l,!1,!1),n[l]=Nt(l,!0,!1),t[l]=Nt(l,!1,!0),s[l]=Nt(l,!0,!0)}),[e,n,t,s]}const[Ml,Pl,Ll,Bl]=Ol();function Qn(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:Qn(!1,!1)},Nl={get:Qn(!1,!0)},Sl={get:Qn(!0,!1)},lr=new WeakMap,ir=new WeakMap,or=new WeakMap,jl=new WeakMap;function Ul(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hl(e){return e.__v_skip||!Object.isExtensible(e)?0:Ul(ol(e))}function Xn(e){return ft(e)?e:zn(e,!1,Fl,kl,lr)}function $l(e){return zn(e,!1,Il,Nl,ir)}function cr(e){return zn(e,!0,Rl,Sl,or)}function zn(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=Hl(e);if(i===0)return e;const o=new Proxy(e,i===2?s:n);return r.set(e,o),o}function lt(e){return ft(e)?lt(e.__v_raw):!!(e&&e.__v_isReactive)}function ft(e){return!!(e&&e.__v_isReadonly)}function Jt(e){return!!(e&&e.__v_isShallow)}function fr(e){return lt(e)||ft(e)}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}function ur(e){return Object.isExtensible(e)&&Gt(e,"__v_skip",!0),e}const xt=e=>z(e)?Xn(e):e,es=e=>z(e)?cr(e):e;class ar{constructor(t,n,s,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Gn(()=>t(this._value),()=>pt(this,this.effect._dirtyLevel===2?2:3)),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)&&Pe(t._value,t._value=t.effect.run())&&pt(t,4),ts(t),t.effect._dirtyLevel>=2&&pt(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Vl(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 ts(e){var t;Ve&&Ze&&(e=Z(e),zs(Ze,(t=e.dep)!=null?t:e.dep=tr(()=>e.dep=void 0,e instanceof ar?e:void 0)))}function pt(e,t=4,n){e=Z(e);const s=e.dep;s&&er(s,t)}function ae(e){return!!(e&&e.__v_isRef===!0)}function Dt(e){return dr(e,!1)}function vo(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:xt(t)}get value(){return ts(this),this._value}set value(t){const n=this.__v_isShallow||Jt(t)||ft(t);t=n?t:Z(t),Pe(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:xt(t),pt(this,4))}}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 hr(e){return lt(e)?e:new Proxy(e,Wl)}class ql{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>ts(this),()=>pt(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function Gl(e){return new ql(e)}class Yl{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 Jl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Eo(e,t,n){return ae(e)?e:$(e)?new Jl(e):z(e)&&arguments.length>1?Zl(e,t,n):Dt(e)}function Zl(e,t,n){const s=e[t];return ae(s)?s:new Yl(e,t,n)}/**
|
|
10
|
+
* @vue/runtime-core v3.4.20
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function De(e,t,n,s){try{return s?e(...s):e()}catch(r){dt(r,t,n)}}function Ee(e,t,n,s){if($(e)){const l=De(e,t,n,s);return l&&Ws(l)&&l.catch(i=>{dt(i,t,n)}),l}const r=[];for(let l=0;l<e.length;l++)r.push(Ee(e[l],t,n,s));return r}function dt(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 d=l.ec;if(d){for(let h=0;h<d.length;h++)if(d[h](e,i,o)===!1)return}l=l.parent}const f=t.appContext.config.errorHandler;if(f){De(f,null,10,[e,i,o]);return}}Ql(e,n,r,s)}function Ql(e,t,n,s=!0){console.error(e)}let Ct=!1,Mn=!1;const ue=[];let Ie=0;const it=[];let Ue=null,Ye=0;const gr=Promise.resolve();let ns=null;function Xl(e){const t=ns||gr;return e?t.then(this?e.bind(this):e):t}function zl(e){let t=Ie+1,n=ue.length;for(;t<n;){const s=t+n>>>1,r=ue[s],l=Tt(r);l<e||l===e&&r.pre?t=s+1:n=s}return t}function cn(e){(!ue.length||!ue.includes(e,Ct&&e.allowRecurse?Ie+1:Ie))&&(e.id==null?ue.push(e):ue.splice(zl(e.id),0,e),pr())}function pr(){!Ct&&!Mn&&(Mn=!0,ns=gr.then(_r))}function ei(e){const t=ue.indexOf(e);t>Ie&&ue.splice(t,1)}function Pn(e){U(e)?it.push(...e):(!Ue||!Ue.includes(e,e.allowRecurse?Ye+1:Ye))&&it.push(e),pr()}function As(e,t,n=Ct?Ie+1:0){for(;n<ue.length;n++){const s=ue[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;ue.splice(n,1),n--,s()}}}function Zt(e){if(it.length){const t=[...new Set(it)].sort((n,s)=>Tt(n)-Tt(s));if(it.length=0,Ue){Ue.push(...t);return}for(Ue=t,Ye=0;Ye<Ue.length;Ye++)Ue[Ye]();Ue=null,Ye=0}}const Tt=e=>e.id==null?1/0:e.id,ti=(e,t)=>{const n=Tt(e)-Tt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function _r(e){Mn=!1,Ct=!0,ue.sort(ti);try{for(Ie=0;Ie<ue.length;Ie++){const t=ue[Ie];t&&t.active!==!1&&De(t,null,14)}}finally{Ie=0,ue.length=0,Zt(),Ct=!1,ns=null,(ue.length||it.length)&&_r()}}function ni(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 h=`${i==="modelValue"?"model":i}Modifiers`,{number:a,trim:g}=s[h]||ee;g&&(r=n.map(E=>le(E)?E.trim():E)),a&&(r=n.map(ul))}let o,f=s[o=mn(t)]||s[o=mn(Me(t))];!f&&l&&(f=s[o=mn(At(t))]),f&&Ee(f,e,6,r);const d=s[o+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Ee(d,e,6,r)}}function yr(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 f=d=>{const h=yr(d,t,!0);h&&(o=!0,fe(i,h))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!l&&!o?(z(e)&&s.set(e,null),null):(U(l)?l.forEach(f=>i[f]=null):fe(i,l),z(e)&&s.set(e,i),i)}function fn(e,t){return!e||!nn(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,At(t))||J(e,t))}let re=null,mr=null;function Qt(e){const t=re;return re=e,mr=e&&e.type.__scopeId||null,t}function si(e,t=re,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Hs(-1);const l=Qt(t);let i;try{i=e(...r)}finally{Qt(l),s._d&&Hs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Cn(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:l,propsOptions:[i],slots:o,attrs:f,emit:d,render:h,renderCache:a,data:g,setupState:E,ctx:I,inheritAttrs:B}=e;let D,q;const K=Qt(e);try{if(n.shapeFlag&4){const T=r||s,C=T;D=Ce(h.call(C,T,a,l,E,g,I)),q=f}else{const T=t;D=Ce(T.length>1?T(l,{attrs:f,slots:o,emit:d}):T(l,null)),q=t.props?f:li(f)}}catch(T){bt.length=0,dt(T,e,1),D=ne(he)}let _=D;if(q&&B!==!1){const T=Object.keys(q),{shapeFlag:C}=_;T.length&&C&7&&(i&&T.some(Ds)&&(q=ii(q,i)),_=We(_,q))}return n.dirs&&(_=We(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),D=_,Qt(K),D}function ri(e,t=!0){let n;for(let s=0;s<e.length;s++){const r=e[s];if(vt(r)){if(r.type!==he||r.children==="v-if"){if(n)return;n=r}}else return}return n}const li=e=>{let t;for(const n in e)(n==="class"||n==="style"||nn(n))&&((t||(t={}))[n]=e[n]);return t},ii=(e,t)=>{const n={};for(const s in e)(!Ds(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function oi(e,t,n){const{props:s,children:r,component:l}=e,{props:i,children:o,patchFlag:f}=t,d=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?Fs(s,i,d):!!i;if(f&8){const h=t.dynamicProps;for(let a=0;a<h.length;a++){const g=h[a];if(i[g]!==s[g]&&!fn(d,g))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:s===i?!1:s?i?Fs(s,i,d):!0:!!i;return!1}function Fs(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 ss({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 rs="components";function Ao(e,t){return xr(rs,e,!0,t)||e}const br=Symbol.for("v-ndc");function Fo(e){return le(e)?xr(rs,e,!1)||e:e||br}function xr(e,t,n=!0,s=!1){const r=re||oe;if(r){const l=r.type;if(e===rs){const o=uo(l,!1);if(o&&(o===t||o===Me(t)||o===qn(Me(t))))return l}const i=Rs(r[e]||l[e],t)||Rs(r.appContext[e],t);return!i&&s?l:i}}function Rs(e,t){return e&&(e[t]||e[Me(t)]||e[qn(Me(t))])}const ci=e=>e.__isSuspense;let Ln=0;const fi={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,l,i,o,f,d){if(e==null)ui(t,n,s,r,l,i,o,f,d);else{if(l&&l.deps>0){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}ai(e,t,n,s,r,i,o,f,d)}},hydrate:di,create:ls,normalize:hi},Ro=fi;function wt(e,t){const n=e.props&&e.props[t];$(n)&&n()}function ui(e,t,n,s,r,l,i,o,f){const{p:d,o:{createElement:h}}=f,a=h("div"),g=e.suspense=ls(e,r,s,t,a,n,l,i,o,f);d(null,g.pendingBranch=e.ssContent,a,null,s,g,l,i),g.deps>0?(wt(e,"onPending"),wt(e,"onFallback"),d(null,e.ssFallback,t,n,s,null,l,i),ot(g,e.ssFallback)):g.resolve(!1,!0)}function ai(e,t,n,s,r,l,i,o,{p:f,um:d,o:{createElement:h}}){const a=t.suspense=e.suspense;a.vnode=t,t.el=e.el;const g=t.ssContent,E=t.ssFallback,{activeBranch:I,pendingBranch:B,isInFallback:D,isHydrating:q}=a;if(B)a.pendingBranch=g,Oe(g,B)?(f(B,g,a.hiddenContainer,null,r,a,l,i,o),a.deps<=0?a.resolve():D&&(q||(f(I,E,n,s,r,null,l,i,o),ot(a,E)))):(a.pendingId=Ln++,q?(a.isHydrating=!1,a.activeBranch=B):d(B,r,a),a.deps=0,a.effects.length=0,a.hiddenContainer=h("div"),D?(f(null,g,a.hiddenContainer,null,r,a,l,i,o),a.deps<=0?a.resolve():(f(I,E,n,s,r,null,l,i,o),ot(a,E))):I&&Oe(g,I)?(f(I,g,n,s,r,a,l,i,o),a.resolve(!0)):(f(null,g,a.hiddenContainer,null,r,a,l,i,o),a.deps<=0&&a.resolve()));else if(I&&Oe(g,I))f(I,g,n,s,r,a,l,i,o),ot(a,g);else if(wt(t,"onPending"),a.pendingBranch=g,g.shapeFlag&512?a.pendingId=g.component.suspenseId:a.pendingId=Ln++,f(null,g,a.hiddenContainer,null,r,a,l,i,o),a.deps<=0)a.resolve();else{const{timeout:K,pendingId:_}=a;K>0?setTimeout(()=>{a.pendingId===_&&a.fallback(E)},K):K===0&&a.fallback(E)}}function ls(e,t,n,s,r,l,i,o,f,d,h=!1){const{p:a,m:g,um:E,n:I,o:{parentNode:B,remove:D}}=d;let q;const K=gi(e);K&&t?.pendingBranch&&(q=t.pendingId,t.deps++);const _=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:Ln++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(b=!1,L=!1){const{vnode:F,activeBranch:P,pendingBranch:O,pendingId:V,effects:Y,parentComponent:Q,container:ce}=C;let se=!1;C.isHydrating?C.isHydrating=!1:b||(se=P&&O.transition&&O.transition.mode==="out-in",se&&(P.transition.afterLeave=()=>{V===C.pendingId&&(g(O,ce,l===T?I(P):l,0),Pn(Y))}),P&&(B(P.el)!==C.hiddenContainer&&(l=I(P)),E(P,Q,C,!0)),se||g(O,ce,l,0)),ot(C,O),C.pendingBranch=null,C.isInFallback=!1;let k=C.parent,W=!1;for(;k;){if(k.pendingBranch){k.effects.push(...Y),W=!0;break}k=k.parent}!W&&!se&&Pn(Y),C.effects=[],K&&t&&t.pendingBranch&&q===t.pendingId&&(t.deps--,t.deps===0&&!L&&t.resolve()),wt(F,"onResolve")},fallback(b){if(!C.pendingBranch)return;const{vnode:L,activeBranch:F,parentComponent:P,container:O,namespace:V}=C;wt(L,"onFallback");const Y=I(F),Q=()=>{C.isInFallback&&(a(null,b,O,Y,P,null,V,o,f),ot(C,b))},ce=b.transition&&b.transition.mode==="out-in";ce&&(F.transition.afterLeave=Q),C.isInFallback=!0,E(F,P,null,!0),ce||Q()},move(b,L,F){C.activeBranch&&g(C.activeBranch,b,L,F),C.container=b},next(){return C.activeBranch&&I(C.activeBranch)},registerDep(b,L){const F=!!C.pendingBranch;F&&C.deps++;const P=b.vnode.el;b.asyncDep.catch(O=>{dt(O,b,0)}).then(O=>{if(b.isUnmounted||C.isUnmounted||C.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:V}=b;Vn(b,O,!1),P&&(V.el=P);const Y=!P&&b.subTree.el;L(b,V,B(P||b.subTree.el),P?null:I(b.subTree),C,i,f),Y&&D(Y),ss(b,V.el),F&&--C.deps===0&&C.resolve()})},unmount(b,L){C.isUnmounted=!0,C.activeBranch&&E(C.activeBranch,n,b,L),C.pendingBranch&&E(C.pendingBranch,n,b,L)}};return C}function di(e,t,n,s,r,l,i,o,f){const d=t.suspense=ls(t,s,n,e.parentNode,document.createElement("div"),null,r,l,i,o,!0),h=f(e,d.pendingBranch=t.ssContent,n,d,l,i);return d.deps===0&&d.resolve(!1,!0),h}function hi(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=Is(s?n.default:n),e.ssFallback=s?Is(n.fallback):ne(he)}function Is(e){let t;if($(e)){const n=at&&e._c;n&&(e._d=!1,fs()),e=e(),n&&(e._d=!0,t=we,$r())}return U(e)&&(e=ri(e)),e=Ce(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Cr(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):Pn(e)}function ot(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,ss(s,r))}function gi(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const pi=Symbol.for("v-scx"),_i=()=>Kt(pi);function Io(e,t){return un(e,null,t)}function yi(e,t){return un(e,null,{flush:"sync"})}const St={};function Tn(e,t,n){return un(e,t,n)}function un(e,t,{immediate:n,deep:s,flush:r,once:l,onTrack:i,onTrigger:o}=ee){if(t&&l){const b=t;t=(...L)=>{b(...L),C()}}const f=oe,d=b=>s===!0?b:Je(b,s===!1?1:void 0);let h,a=!1,g=!1;if(ae(e)?(h=()=>e.value,a=Jt(e)):lt(e)?(h=()=>d(e),a=!0):U(e)?(g=!0,a=e.some(b=>lt(b)||Jt(b)),h=()=>e.map(b=>{if(ae(b))return b.value;if(lt(b))return d(b);if($(b))return De(b,f,2)})):$(e)?t?h=()=>De(e,f,2):h=()=>(E&&E(),Ee(e,f,3,[I])):h=Te,t&&s){const b=h;h=()=>Je(b())}let E,I=b=>{E=_.onStop=()=>{De(b,f,4),E=_.onStop=void 0}},B;if(It)if(I=Te,t?n&&Ee(t,f,3,[h(),g?[]:void 0,I]):h(),r==="sync"){const b=_i();B=b.__watcherHandles||(b.__watcherHandles=[])}else return Te;let D=g?new Array(e.length).fill(St):St;const q=()=>{if(!(!_.active||!_.dirty))if(t){const b=_.run();(s||a||(g?b.some((L,F)=>Pe(L,D[F])):Pe(b,D)))&&(E&&E(),Ee(t,f,3,[b,D===St?void 0:g&&D[0]===St?[]:D,I]),D=b)}else _.run()};q.allowRecurse=!!t;let K;r==="sync"?K=q:r==="post"?K=()=>ge(q,f&&f.suspense):(q.pre=!0,f&&(q.id=f.uid),K=()=>cn(q));const _=new Gn(h,Te,K),T=xl(),C=()=>{_.stop(),T&&Kn(T.effects,_)};return t?n?q():D=_.run():r==="post"?ge(_.run.bind(_),f&&f.suspense):_.run(),B&&B.push(C),C}function mi(e,t,n){const s=this.proxy,r=le(e)?e.includes(".")?Tr(s,e):()=>s[e]:e.bind(s,s);let l;$(t)?l=t:(l=t.handler,n=t);const i=Rt(this),o=un(r,l.bind(s),n);return i(),o}function Tr(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(Ks(e)||st(e))e.forEach(r=>{Je(r,t,n,s)});else if(Gs(e))for(const r in e)Je(e[r],t,n,s);return e}function Oo(e,t){if(re===null)return e;const n=hn(re)||re.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[l,i,o,f=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:f}))}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 f=o.dir[s];f&&(Xe(),Ee(f,n,8,[e.el,o,e,t]),ze())}}const He=Symbol("_leaveCb"),jt=Symbol("_enterCb");function bi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ar(()=>{e.isMounted=!0}),Fr(()=>{e.isUnmounting=!0}),e}const be=[Function,Array],xi={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},Ci={name:"BaseTransition",props:xi,setup(e,{slots:t}){const n=Gr(),s=bi();return()=>{const r=t.default&&vr(t.default(),!0);if(!r||!r.length)return;let l=r[0];if(r.length>1){for(const g of r)if(g.type!==he){l=g;break}}const i=Z(e),{mode:o}=i;if(s.isLeaving)return wn(l);const f=Os(l);if(!f)return wn(l);const d=Bn(f,i,s,n);kn(f,d);const h=n.subTree,a=h&&Os(h);if(a&&a.type!==he&&!Oe(f,a)){const g=Bn(a,i,s,n);if(kn(a,g),o==="out-in")return s.isLeaving=!0,g.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},wn(l);o==="in-out"&&f.type!==he&&(g.delayLeave=(E,I,B)=>{const D=wr(s,a);D[String(a.key)]=a,E[He]=()=>{I(),E[He]=void 0,delete d.delayedLeave},d.delayedLeave=B})}return l}}},Mo=Ci;function wr(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 Bn(e,t,n,s){const{appear:r,mode:l,persisted:i=!1,onBeforeEnter:o,onEnter:f,onAfterEnter:d,onEnterCancelled:h,onBeforeLeave:a,onLeave:g,onAfterLeave:E,onLeaveCancelled:I,onBeforeAppear:B,onAppear:D,onAfterAppear:q,onAppearCancelled:K}=t,_=String(e.key),T=wr(n,e),C=(F,P)=>{F&&Ee(F,s,9,P)},b=(F,P)=>{const O=P[1];C(F,P),U(F)?F.every(V=>V.length<=1)&&O():F.length<=1&&O()},L={mode:l,persisted:i,beforeEnter(F){let P=o;if(!n.isMounted)if(r)P=B||o;else return;F[He]&&F[He](!0);const O=T[_];O&&Oe(e,O)&&O.el[He]&&O.el[He](),C(P,[F])},enter(F){let P=f,O=d,V=h;if(!n.isMounted)if(r)P=D||f,O=q||d,V=K||h;else return;let Y=!1;const Q=F[jt]=ce=>{Y||(Y=!0,ce?C(V,[F]):C(O,[F]),L.delayedLeave&&L.delayedLeave(),F[jt]=void 0)};P?b(P,[F,Q]):Q()},leave(F,P){const O=String(e.key);if(F[jt]&&F[jt](!0),n.isUnmounting)return P();C(a,[F]);let V=!1;const Y=F[He]=Q=>{V||(V=!0,P(),Q?C(I,[F]):C(E,[F]),F[He]=void 0,T[O]===e&&delete T[O])};T[O]=e,g?b(g,[F,Y]):Y()},clone(F){return Bn(F,t,n,s)}};return L}function wn(e){if(Ft(e))return e=We(e),e.children=null,e}function Os(e){return Ft(e)?e.children?e.children[0]:void 0:e}function kn(e,t){e.shapeFlag&6&&e.component?kn(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 vr(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(vr(i.children,t,o))):(t||i.type!==he)&&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 Ti(e,t){return $(e)?fe({name:e.name},t,{setup:e}):e}const ct=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Po(e){$(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:l,suspensible:i=!0,onError:o}=e;let f=null,d,h=0;const a=()=>(h++,f=null,g()),g=()=>{let E;return f||(E=f=t().catch(I=>{if(I=I instanceof Error?I:new Error(String(I)),o)return new Promise((B,D)=>{o(I,()=>B(a()),()=>D(I),h+1)});throw I}).then(I=>E!==f&&f?f:(I&&(I.__esModule||I[Symbol.toStringTag]==="Module")&&(I=I.default),d=I,I)))};return Ti({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return d},setup(){const E=oe;if(d)return()=>vn(d,E);const I=K=>{f=null,dt(K,E,13,!s)};if(i&&E.suspense||It)return g().then(K=>()=>vn(K,E)).catch(K=>(I(K),()=>s?ne(s,{error:K}):null));const B=Dt(!1),D=Dt(),q=Dt(!!r);return r&&setTimeout(()=>{q.value=!1},r),l!=null&&setTimeout(()=>{if(!B.value&&!D.value){const K=new Error(`Async component timed out after ${l}ms.`);I(K),D.value=K}},l),g().then(()=>{B.value=!0,E.parent&&Ft(E.parent.vnode)&&(E.parent.effect.dirty=!0,cn(E.parent.update))}).catch(K=>{I(K),D.value=K}),()=>{if(B.value&&d)return vn(d,E);if(D.value&&s)return ne(s,{error:D.value});if(n&&!q.value)return ne(n)}}})}function vn(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 Ft=e=>e.type.__isKeepAlive;function wi(e,t){Er(e,"a",t)}function vi(e,t){Er(e,"da",t)}function Er(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(an(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Ft(r.parent.vnode)&&Ei(s,t,n,r),r=r.parent}}function Ei(e,t,n,s){const r=an(t,e,s,!0);Rr(()=>{Kn(s[t],r)},n)}function an(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=Rt(n),f=Ee(t,n,e,i);return o(),ze(),f});return s?r.unshift(l):r.push(l),l}}const Ne=e=>(t,n=oe)=>(!It||e==="sp")&&an(e,(...s)=>t(...s),n),Ai=Ne("bm"),Ar=Ne("m"),Fi=Ne("bu"),Ri=Ne("u"),Fr=Ne("bum"),Rr=Ne("um"),Ii=Ne("sp"),Oi=Ne("rtg"),Mi=Ne("rtc");function Pi(e,t=oe){an("ec",e,t)}function Lo(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,f=i.length;o<f;o++){const d=i[o];r[o]=t(e[d],d,o,l&&l[o])}}else r=[];return n&&(n[s]=r),r}function Bo(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 ko(e,t,n={},s,r){if(re.isCE||re.parent&&ct(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),fs();const i=l&&Ir(l(n)),o=Dr(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=>vt(t)?!(t.type===he||t.type===pe&&!Ir(t.children)):!0)?e:null}const Nn=e=>e?Yr(e)?hn(e)||e.proxy:Nn(e.parent):null,_t=fe(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=>Nn(e.parent),$root:e=>Nn(e.root),$emit:e=>e.emit,$options:e=>is(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,cn(e.update)}),$nextTick:e=>e.n||(e.n=Xl.bind(e.proxy)),$watch:e=>mi.bind(e)}),En=(e,t)=>e!==ee&&!e.__isScriptSetup&&J(e,t),Li={get({_:e},t){const{ctx:n,setupState:s,data:r,props:l,accessCache:i,type:o,appContext:f}=e;let d;if(t[0]!=="$"){const E=i[t];if(E!==void 0)switch(E){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((d=e.propsOptions[0])&&J(d,t))return i[t]=3,l[t];if(n!==ee&&J(n,t))return i[t]=4,n[t];Sn&&(i[t]=0)}}const h=_t[t];let a,g;if(h)return t==="$attrs"&&_e(e,"get",t),h(e);if((a=o.__cssModules)&&(a=a[t]))return a;if(n!==ee&&J(n,t))return i[t]=4,n[t];if(g=f.config.globalProperties,J(g,t))return g[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(_t,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 Xt(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function No(e,t){return!e||!t?e||t:U(e)&&U(t)?e.concat(t):fe({},Xt(e),Xt(t))}let Sn=!0;function Bi(e){const t=is(e),n=e.proxy,s=e.ctx;Sn=!1,t.beforeCreate&&Ms(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:i,watch:o,provide:f,inject:d,created:h,beforeMount:a,mounted:g,beforeUpdate:E,updated:I,activated:B,deactivated:D,beforeDestroy:q,beforeUnmount:K,destroyed:_,unmounted:T,render:C,renderTracked:b,renderTriggered:L,errorCaptured:F,serverPrefetch:P,expose:O,inheritAttrs:V,components:Y,directives:Q,filters:ce}=t;if(d&&ki(d,s,null),i)for(const W in i){const S=i[W];$(S)&&(s[W]=S.bind(n))}if(r){const W=r.call(n,n);z(W)&&(e.data=Xn(W))}if(Sn=!0,l)for(const W in l){const S=l[W],Le=$(S)?S.bind(n,n):$(S.get)?S.get.bind(n,n):Te,Ot=!$(S)&&$(S.set)?S.set.bind(n):Te,qe=ho({get:Le,set:Ot});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>qe.value,set:Ae=>qe.value=Ae})}if(o)for(const W in o)Or(o[W],s,n,W);if(f){const W=$(f)?f.call(n):f;Reflect.ownKeys(W).forEach(S=>{$i(S,W[S])})}h&&Ms(h,e,"c");function k(W,S){U(S)?S.forEach(Le=>W(Le.bind(n))):S&&W(S.bind(n))}if(k(Ai,a),k(Ar,g),k(Fi,E),k(Ri,I),k(wi,B),k(vi,D),k(Pi,F),k(Mi,b),k(Oi,L),k(Fr,K),k(Rr,T),k(Ii,P),U(O))if(O.length){const W=e.exposed||(e.exposed={});O.forEach(S=>{Object.defineProperty(W,S,{get:()=>n[S],set:Le=>n[S]=Le})})}else e.exposed||(e.exposed={});C&&e.render===Te&&(e.render=C),V!=null&&(e.inheritAttrs=V),Y&&(e.components=Y),Q&&(e.directives=Q)}function ki(e,t,n=Te){U(e)&&(e=jn(e));for(const s in e){const r=e[s];let l;z(r)?"default"in r?l=Kt(r.from||s,r.default,!0):l=Kt(r.from||s):l=Kt(r),ae(l)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:i=>l.value=i}):t[s]=l}}function Ms(e,t,n){Ee(U(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Or(e,t,n,s){const r=s.includes(".")?Tr(n,s):()=>n[s];if(le(e)){const l=t[e];$(l)&&Tn(r,l)}else if($(e))Tn(r,e.bind(n));else if(z(e))if(U(e))e.forEach(l=>Or(l,t,n,s));else{const l=$(e.handler)?e.handler.bind(n):t[e.handler];$(l)&&Tn(r,l,e)}}function is(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:i}}=e.appContext,o=l.get(t);let f;return o?f=o:!r.length&&!n&&!s?f=t:(f={},r.length&&r.forEach(d=>zt(f,d,i,!0)),zt(f,t,i)),z(t)&&l.set(t,f),f}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=Ni[i]||n&&n[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const Ni={data:Ps,props:Ls,emits:Ls,methods:gt,computed:gt,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:gt,directives:gt,watch:ji,provide:Ps,inject:Si};function Ps(e,t){return t?e?function(){return fe($(e)?e.call(this,this):e,$(t)?t.call(this,this):t)}:t:e}function Si(e,t){return gt(jn(e),jn(t))}function jn(e){if(U(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function de(e,t){return e?[...new Set([].concat(e,t))]:t}function gt(e,t){return e?fe(Object.create(null),e,t):t}function Ls(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:fe(Object.create(null),Xt(e),Xt(t??{})):t}function ji(e,t){if(!e)return t;if(!t)return e;const n=fe(Object.create(null),e);for(const s in t)n[s]=de(e[s],t[s]);return n}function Mr(){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 Ui=0;function Hi(e,t){return function(s,r=null){$(s)||(s=fe({},s)),r!=null&&!z(r)&&(r=null);const l=Mr(),i=new WeakSet;let o=!1;const f=l.app={_uid:Ui++,_component:s,_props:r,_container:null,_context:l,_instance:null,version:go,get config(){return l.config},set config(d){},use(d,...h){return i.has(d)||(d&&$(d.install)?(i.add(d),d.install(f,...h)):$(d)&&(i.add(d),d(f,...h))),f},mixin(d){return l.mixins.includes(d)||l.mixins.push(d),f},component(d,h){return h?(l.components[d]=h,f):l.components[d]},directive(d,h){return h?(l.directives[d]=h,f):l.directives[d]},mount(d,h,a){if(!o){const g=ne(s,r);return g.appContext=l,a===!0?a="svg":a===!1&&(a=void 0),h&&t?t(g,d):e(g,d,a),o=!0,f._container=d,d.__vue_app__=f,hn(g.component)||g.component.proxy}},unmount(){o&&(e(null,f._container),delete f._container.__vue_app__)},provide(d,h){return l.provides[d]=h,f},runWithContext(d){const h=yt;yt=f;try{return d()}finally{yt=h}}};return f}}let yt=null;function $i(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 Kt(e,t,n=!1){const s=oe||re;if(s||yt){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:yt._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&$(t)?t.call(s&&s.proxy):t}}function Vi(e,t,n,s=!1){const r={},l={};Gt(l,dn,1),e.propsDefaults=Object.create(null),Pr(e,t,r,l);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:$l(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function Di(e,t,n,s){const{props:r,attrs:l,vnode:{patchFlag:i}}=e,o=Z(r),[f]=e.propsOptions;let d=!1;if((s||i>0)&&!(i&16)){if(i&8){const h=e.vnode.dynamicProps;for(let a=0;a<h.length;a++){let g=h[a];if(fn(e.emitsOptions,g))continue;const E=t[g];if(f)if(J(l,g))E!==l[g]&&(l[g]=E,d=!0);else{const I=Me(g);r[I]=Un(f,o,I,E,e,!1)}else E!==l[g]&&(l[g]=E,d=!0)}}}else{Pr(e,t,r,l)&&(d=!0);let h;for(const a in o)(!t||!J(t,a)&&((h=At(a))===a||!J(t,h)))&&(f?n&&(n[a]!==void 0||n[h]!==void 0)&&(r[a]=Un(f,o,a,void 0,e,!0)):delete r[a]);if(l!==o)for(const a in l)(!t||!J(t,a))&&(delete l[a],d=!0)}d&&ke(e,"set","$attrs")}function Pr(e,t,n,s){const[r,l]=e.propsOptions;let i=!1,o;if(t)for(let f in t){if(rt(f))continue;const d=t[f];let h;r&&J(r,h=Me(f))?!l||!l.includes(h)?n[h]=d:(o||(o={}))[h]=d:fn(e.emitsOptions,f)||(!(f in s)||d!==s[f])&&(s[f]=d,i=!0)}if(l){const f=Z(n),d=o||ee;for(let h=0;h<l.length;h++){const a=l[h];n[a]=Un(r,f,a,d[a],e,!J(d,a))}}return i}function Un(e,t,n,s,r,l){const i=e[n];if(i!=null){const o=J(i,"default");if(o&&s===void 0){const f=i.default;if(i.type!==Function&&!i.skipFactory&&$(f)){const{propsDefaults:d}=r;if(n in d)s=d[n];else{const h=Rt(r);s=d[n]=f.call(null,t),h()}}else s=f}i[0]&&(l&&!o?s=!1:i[1]&&(s===""||s===At(n))&&(s=!0))}return s}function Lr(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const l=e.props,i={},o=[];let f=!1;if(!$(e)){const h=a=>{f=!0;const[g,E]=Lr(a,t,!0);fe(i,g),E&&o.push(...E)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!l&&!f)return z(e)&&s.set(e,nt),nt;if(U(l))for(let h=0;h<l.length;h++){const a=Me(l[h]);Bs(a)&&(i[a]=ee)}else if(l)for(const h in l){const a=Me(h);if(Bs(a)){const g=l[h],E=i[a]=U(g)||$(g)?{type:g}:fe({},g);if(E){const I=Ss(Boolean,E.type),B=Ss(String,E.type);E[0]=I>-1,E[1]=B<0||I<B,(I>-1||J(E,"default"))&&o.push(a)}}}const d=[i,o];return z(e)&&s.set(e,d),d}function Bs(e){return e[0]!=="$"&&!rt(e)}function ks(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ns(e,t){return ks(e)===ks(t)}function Ss(e,t){return U(t)?t.findIndex(n=>Ns(n,e)):$(t)&&Ns(t,e)?0:-1}const Br=e=>e[0]==="_"||e==="$stable",os=e=>U(e)?e.map(Ce):[Ce(e)],Ki=(e,t,n)=>{if(t._n)return t;const s=si((...r)=>os(t(...r)),n);return s._c=!1,s},kr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Br(r))continue;const l=e[r];if($(l))t[r]=Ki(r,l,s);else if(l!=null){const i=os(l);t[r]=()=>i}}},Nr=(e,t)=>{const n=os(t);e.slots.default=()=>n},Wi=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Z(t),Gt(t,"_",n)):kr(t,e.slots={})}else e.slots={},t&&Nr(e,t);Gt(e.slots,dn,1)},qi=(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:(fe(r,t),!n&&o===1&&delete r._):(l=!t.$stable,kr(t,r)),i=t}else t&&(Nr(e,t),i={default:1});if(l)for(const o in r)!Br(o)&&i[o]==null&&delete r[o]};function en(e,t,n,s,r=!1){if(U(e)){e.forEach((g,E)=>en(g,t&&(U(t)?t[E]:t),n,s,r));return}if(ct(s)&&!r)return;const l=s.shapeFlag&4?hn(s.component)||s.component.proxy:s.el,i=r?null:l,{i:o,r:f}=e,d=t&&t.r,h=o.refs===ee?o.refs={}:o.refs,a=o.setupState;if(d!=null&&d!==f&&(le(d)?(h[d]=null,J(a,d)&&(a[d]=null)):ae(d)&&(d.value=null)),$(f))De(f,o,12,[i,h]);else{const g=le(f),E=ae(f);if(g||E){const I=()=>{if(e.f){const B=g?J(a,f)?a[f]:h[f]:f.value;r?U(B)&&Kn(B,l):U(B)?B.includes(l)||B.push(l):g?(h[f]=[l],J(a,f)&&(a[f]=h[f])):(f.value=[l],e.k&&(h[e.k]=f.value))}else g?(h[f]=i,J(a,f)&&(a[f]=i)):E&&(f.value=i,e.k&&(h[e.k]=i))};i?(I.id=-1,ge(I,n)):I()}}}let je=!1;const Gi=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Yi=e=>e.namespaceURI.includes("MathML"),Ut=e=>{if(Gi(e))return"svg";if(Yi(e))return"mathml"},Ht=e=>e.nodeType===8;function Ji(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:l,parentNode:i,remove:o,insert:f,createComment:d}}=e,h=(_,T)=>{if(!T.hasChildNodes()){n(null,_,T),Zt(),T._vnode=_;return}je=!1,a(T.firstChild,_,null,null,null),Zt(),T._vnode=_,je&&console.error("Hydration completed but contains mismatches.")},a=(_,T,C,b,L,F=!1)=>{const P=Ht(_)&&_.data==="[",O=()=>B(_,T,C,b,L,P),{type:V,ref:Y,shapeFlag:Q,patchFlag:ce}=T;let se=_.nodeType;T.el=_,ce===-2&&(F=!1,T.dynamicChildren=null);let k=null;switch(V){case ut:se!==3?T.children===""?(f(T.el=r(""),i(_),_),k=_):k=O():(_.data!==T.children&&(je=!0,_.data=T.children),k=l(_));break;case he:K(_)?(k=l(_),q(T.el=_.content.firstChild,_,C)):se!==8||P?k=O():k=l(_);break;case Wt:if(P&&(_=l(_),se=_.nodeType),se===1||se===3){k=_;const W=!T.children.length;for(let S=0;S<T.staticCount;S++)W&&(T.children+=k.nodeType===1?k.outerHTML:k.data),S===T.staticCount-1&&(T.anchor=k),k=l(k);return P?l(k):k}else O();break;case pe:P?k=I(_,T,C,b,L,F):k=O();break;default:if(Q&1)(se!==1||T.type.toLowerCase()!==_.tagName.toLowerCase())&&!K(_)?k=O():k=g(_,T,C,b,L,F);else if(Q&6){T.slotScopeIds=L;const W=i(_);if(P?k=D(_):Ht(_)&&_.data==="teleport start"?k=D(_,_.data,"teleport end"):k=l(_),t(T,W,null,C,b,Ut(W),F),ct(T)){let S;P?(S=ne(pe),S.anchor=k?k.previousSibling:W.lastChild):S=_.nodeType===3?qr(""):ne("div"),S.el=_,T.component.subTree=S}}else Q&64?se!==8?k=O():k=T.type.hydrate(_,T,C,b,L,F,e,E):Q&128&&(k=T.type.hydrate(_,T,C,b,Ut(i(_)),L,F,e,a))}return Y!=null&&en(Y,null,b,T),k},g=(_,T,C,b,L,F)=>{F=F||!!T.dynamicChildren;const{type:P,props:O,patchFlag:V,shapeFlag:Y,dirs:Q,transition:ce}=T,se=P==="input"||P==="option";if(se||V!==-1){Q&&Re(T,null,C,"created");let k=!1;if(K(_)){k=jr(b,ce)&&C&&C.vnode.props&&C.vnode.props.appear;const S=_.content.firstChild;k&&ce.beforeEnter(S),q(S,_,C),T.el=_=S}if(Y&16&&!(O&&(O.innerHTML||O.textContent))){let S=E(_.firstChild,T,_,C,b,L,F);for(;S;){je=!0;const Le=S;S=S.nextSibling,o(Le)}}else Y&8&&_.textContent!==T.children&&(je=!0,_.textContent=T.children);if(O)if(se||!F||V&48)for(const S in O)(se&&(S.endsWith("value")||S==="indeterminate")||nn(S)&&!rt(S)||S[0]===".")&&s(_,S,null,O[S],void 0,void 0,C);else O.onClick&&s(_,"onClick",null,O.onClick,void 0,void 0,C);let W;(W=O&&O.onVnodeBeforeMount)&&xe(W,C,T),Q&&Re(T,null,C,"beforeMount"),((W=O&&O.onVnodeMounted)||Q||k)&&Cr(()=>{W&&xe(W,C,T),k&&ce.enter(_),Q&&Re(T,null,C,"mounted")},b)}return _.nextSibling},E=(_,T,C,b,L,F,P)=>{P=P||!!T.dynamicChildren;const O=T.children,V=O.length;for(let Y=0;Y<V;Y++){const Q=P?O[Y]:O[Y]=Ce(O[Y]);if(_)_=a(_,Q,b,L,F,P);else{if(Q.type===ut&&!Q.children)continue;je=!0,n(null,Q,C,null,b,L,Ut(C),F)}}return _},I=(_,T,C,b,L,F)=>{const{slotScopeIds:P}=T;P&&(L=L?L.concat(P):P);const O=i(_),V=E(l(_),T,O,C,b,L,F);return V&&Ht(V)&&V.data==="]"?l(T.anchor=V):(je=!0,f(T.anchor=d("]"),O,V),V)},B=(_,T,C,b,L,F)=>{if(je=!0,T.el=null,F){const V=D(_);for(;;){const Y=l(_);if(Y&&Y!==V)o(Y);else break}}const P=l(_),O=i(_);return o(_),n(null,T,O,P,C,b,Ut(O),L),P},D=(_,T="[",C="]")=>{let b=0;for(;_;)if(_=l(_),_&&Ht(_)&&(_.data===T&&b++,_.data===C)){if(b===0)return l(_);b--}return _},q=(_,T,C)=>{const b=T.parentNode;b&&b.replaceChild(_,T);let L=C;for(;L;)L.vnode.el===T&&(L.vnode.el=L.subTree.el=_),L=L.parent},K=_=>_.nodeType===1&&_.tagName.toLowerCase()==="template";return[h,a]}const ge=Cr;function So(e){return Sr(e)}function jo(e){return Sr(e,Ji)}function Sr(e,t){const n=Ys();n.__VUE__=!0;const{insert:s,remove:r,patchProp:l,createElement:i,createText:o,createComment:f,setText:d,setElementText:h,parentNode:a,nextSibling:g,setScopeId:E=Te,insertStaticContent:I}=e,B=(c,u,p,y=null,m=null,v=null,R=void 0,w=null,A=!!u.dynamicChildren)=>{if(c===u)return;c&&!Oe(c,u)&&(y=Mt(c),Ae(c,m,v,!0),c=null),u.patchFlag===-2&&(A=!1,u.dynamicChildren=null);const{type:x,ref:M,shapeFlag:j}=u;switch(x){case ut:D(c,u,p,y);break;case he:q(c,u,p,y);break;case Wt:c==null&&K(u,p,y,R);break;case pe:Y(c,u,p,y,m,v,R,w,A);break;default:j&1?C(c,u,p,y,m,v,R,w,A):j&6?Q(c,u,p,y,m,v,R,w,A):(j&64||j&128)&&x.process(c,u,p,y,m,v,R,w,A,et)}M!=null&&m&&en(M,c&&c.ref,v,u||c,!u)},D=(c,u,p,y)=>{if(c==null)s(u.el=o(u.children),p,y);else{const m=u.el=c.el;u.children!==c.children&&d(m,u.children)}},q=(c,u,p,y)=>{c==null?s(u.el=f(u.children||""),p,y):u.el=c.el},K=(c,u,p,y)=>{[c.el,c.anchor]=I(c.children,u,p,y,c.el,c.anchor)},_=({el:c,anchor:u},p,y)=>{let m;for(;c&&c!==u;)m=g(c),s(c,p,y),c=m;s(u,p,y)},T=({el:c,anchor:u})=>{let p;for(;c&&c!==u;)p=g(c),r(c),c=p;r(u)},C=(c,u,p,y,m,v,R,w,A)=>{u.type==="svg"?R="svg":u.type==="math"&&(R="mathml"),c==null?b(u,p,y,m,v,R,w,A):P(c,u,m,v,R,w,A)},b=(c,u,p,y,m,v,R,w)=>{let A,x;const{props:M,shapeFlag:j,transition:N,dirs:H}=c;if(A=c.el=i(c.type,v,M&&M.is,M),j&8?h(A,c.children):j&16&&F(c.children,A,null,y,m,An(c,v),R,w),H&&Re(c,null,y,"created"),L(A,c,c.scopeId,R,y),M){for(const X in M)X!=="value"&&!rt(X)&&l(A,X,null,M[X],v,c.children,y,m,Be);"value"in M&&l(A,"value",null,M.value,v),(x=M.onVnodeBeforeMount)&&xe(x,y,c)}H&&Re(c,null,y,"beforeMount");const G=jr(m,N);G&&N.beforeEnter(A),s(A,u,p),((x=M&&M.onVnodeMounted)||G||H)&&ge(()=>{x&&xe(x,y,c),G&&N.enter(A),H&&Re(c,null,y,"mounted")},m)},L=(c,u,p,y,m)=>{if(p&&E(c,p),y)for(let v=0;v<y.length;v++)E(c,y[v]);if(m){let v=m.subTree;if(u===v){const R=m.vnode;L(c,R,R.scopeId,R.slotScopeIds,m.parent)}}},F=(c,u,p,y,m,v,R,w,A=0)=>{for(let x=A;x<c.length;x++){const M=c[x]=w?$e(c[x]):Ce(c[x]);B(null,M,u,p,y,m,v,R,w)}},P=(c,u,p,y,m,v,R)=>{const w=u.el=c.el;let{patchFlag:A,dynamicChildren:x,dirs:M}=u;A|=c.patchFlag&16;const j=c.props||ee,N=u.props||ee;let H;if(p&&Ge(p,!1),(H=N.onVnodeBeforeUpdate)&&xe(H,p,u,c),M&&Re(u,c,p,"beforeUpdate"),p&&Ge(p,!0),x?O(c.dynamicChildren,x,w,p,y,An(u,m),v):R||S(c,u,w,null,p,y,An(u,m),v,!1),A>0){if(A&16)V(w,u,j,N,p,y,m);else if(A&2&&j.class!==N.class&&l(w,"class",null,N.class,m),A&4&&l(w,"style",j.style,N.style,m),A&8){const G=u.dynamicProps;for(let X=0;X<G.length;X++){const te=G[X],ie=j[te],ve=N[te];(ve!==ie||te==="value")&&l(w,te,ie,ve,m,c.children,p,y,Be)}}A&1&&c.children!==u.children&&h(w,u.children)}else!R&&x==null&&V(w,u,j,N,p,y,m);((H=N.onVnodeUpdated)||M)&&ge(()=>{H&&xe(H,p,u,c),M&&Re(u,c,p,"updated")},y)},O=(c,u,p,y,m,v,R)=>{for(let w=0;w<u.length;w++){const A=c[w],x=u[w],M=A.el&&(A.type===pe||!Oe(A,x)||A.shapeFlag&70)?a(A.el):p;B(A,x,M,null,y,m,v,R,!0)}},V=(c,u,p,y,m,v,R)=>{if(p!==y){if(p!==ee)for(const w in p)!rt(w)&&!(w in y)&&l(c,w,p[w],null,R,u.children,m,v,Be);for(const w in y){if(rt(w))continue;const A=y[w],x=p[w];A!==x&&w!=="value"&&l(c,w,x,A,R,u.children,m,v,Be)}"value"in y&&l(c,"value",p.value,y.value,R)}},Y=(c,u,p,y,m,v,R,w,A)=>{const x=u.el=c?c.el:o(""),M=u.anchor=c?c.anchor:o("");let{patchFlag:j,dynamicChildren:N,slotScopeIds:H}=u;H&&(w=w?w.concat(H):H),c==null?(s(x,p,y),s(M,p,y),F(u.children||[],p,M,m,v,R,w,A)):j>0&&j&64&&N&&c.dynamicChildren?(O(c.dynamicChildren,N,p,m,v,R,w),(u.key!=null||m&&u===m.subTree)&&cs(c,u,!0)):S(c,u,p,M,m,v,R,w,A)},Q=(c,u,p,y,m,v,R,w,A)=>{u.slotScopeIds=w,c==null?u.shapeFlag&512?m.ctx.activate(u,p,y,R,A):ce(u,p,y,m,v,R,A):se(c,u,A)},ce=(c,u,p,y,m,v,R)=>{const w=c.component=lo(c,y,m);if(Ft(c)&&(w.ctx.renderer=et),io(w),w.asyncDep){if(m&&m.registerDep(w,k),!c.el){const A=w.subTree=ne(he);q(null,A,u,p)}}else k(w,c,u,p,m,v,R)},se=(c,u,p)=>{const y=u.component=c.component;if(oi(c,u,p))if(y.asyncDep&&!y.asyncResolved){W(y,u,p);return}else y.next=u,ei(y.update),y.effect.dirty=!0,y.update();else u.el=c.el,y.vnode=u},k=(c,u,p,y,m,v,R)=>{const w=()=>{if(c.isMounted){let{next:M,bu:j,u:N,parent:H,vnode:G}=c;{const tt=Ur(c);if(tt){M&&(M.el=G.el,W(c,M,R)),tt.asyncDep.then(()=>{c.isUnmounted||w()});return}}let X=M,te;Ge(c,!1),M?(M.el=G.el,W(c,M,R)):M=G,j&&bn(j),(te=M.props&&M.props.onVnodeBeforeUpdate)&&xe(te,H,M,G),Ge(c,!0);const ie=Cn(c),ve=c.subTree;c.subTree=ie,B(ve,ie,a(ve.el),Mt(ve),c,m,v),M.el=ie.el,X===null&&ss(c,ie.el),N&&ge(N,m),(te=M.props&&M.props.onVnodeUpdated)&&ge(()=>xe(te,H,M,G),m)}else{let M;const{el:j,props:N}=u,{bm:H,m:G,parent:X}=c,te=ct(u);if(Ge(c,!1),H&&bn(H),!te&&(M=N&&N.onVnodeBeforeMount)&&xe(M,X,u),Ge(c,!0),j&&_n){const ie=()=>{c.subTree=Cn(c),_n(j,c.subTree,c,m,null)};te?u.type.__asyncLoader().then(()=>!c.isUnmounted&&ie()):ie()}else{const ie=c.subTree=Cn(c);B(null,ie,p,y,c,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&&ct(X.vnode)&&X.vnode.shapeFlag&256)&&c.a&&ge(c.a,m),c.isMounted=!0,u=p=y=null}},A=c.effect=new Gn(w,Te,()=>cn(x),c.scope),x=c.update=()=>{A.dirty&&A.run()};x.id=c.uid,Ge(c,!0),x()},W=(c,u,p)=>{u.component=c;const y=c.vnode.props;c.vnode=u,c.next=null,Di(c,u.props,y,p),qi(c,u.children,p),Xe(),As(c),ze()},S=(c,u,p,y,m,v,R,w,A=!1)=>{const x=c&&c.children,M=c?c.shapeFlag:0,j=u.children,{patchFlag:N,shapeFlag:H}=u;if(N>0){if(N&128){Ot(x,j,p,y,m,v,R,w,A);return}else if(N&256){Le(x,j,p,y,m,v,R,w,A);return}}H&8?(M&16&&Be(x,m,v),j!==x&&h(p,j)):M&16?H&16?Ot(x,j,p,y,m,v,R,w,A):Be(x,m,v,!0):(M&8&&h(p,""),H&16&&F(j,p,y,m,v,R,w,A))},Le=(c,u,p,y,m,v,R,w,A)=>{c=c||nt,u=u||nt;const x=c.length,M=u.length,j=Math.min(x,M);let N;for(N=0;N<j;N++){const H=u[N]=A?$e(u[N]):Ce(u[N]);B(c[N],H,p,null,m,v,R,w,A)}x>M?Be(c,m,v,!0,!1,j):F(u,p,y,m,v,R,w,A,j)},Ot=(c,u,p,y,m,v,R,w,A)=>{let x=0;const M=u.length;let j=c.length-1,N=M-1;for(;x<=j&&x<=N;){const H=c[x],G=u[x]=A?$e(u[x]):Ce(u[x]);if(Oe(H,G))B(H,G,p,null,m,v,R,w,A);else break;x++}for(;x<=j&&x<=N;){const H=c[j],G=u[N]=A?$e(u[N]):Ce(u[N]);if(Oe(H,G))B(H,G,p,null,m,v,R,w,A);else break;j--,N--}if(x>j){if(x<=N){const H=N+1,G=H<M?u[H].el:y;for(;x<=N;)B(null,u[x]=A?$e(u[x]):Ce(u[x]),p,G,m,v,R,w,A),x++}}else if(x>N)for(;x<=j;)Ae(c[x],m,v,!0),x++;else{const H=x,G=x,X=new Map;for(x=G;x<=N;x++){const ye=u[x]=A?$e(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,hs=0;const ht=new Array(ve);for(x=0;x<ve;x++)ht[x]=0;for(x=H;x<=j;x++){const ye=c[x];if(ie>=ve){Ae(ye,m,v,!0);continue}let Fe;if(ye.key!=null)Fe=X.get(ye.key);else for(te=G;te<=N;te++)if(ht[te-G]===0&&Oe(ye,u[te])){Fe=te;break}Fe===void 0?Ae(ye,m,v,!0):(ht[Fe-G]=x+1,Fe>=hs?hs=Fe:tt=!0,B(ye,u[Fe],p,null,m,v,R,w,A),ie++)}const gs=tt?Zi(ht):nt;for(te=gs.length-1,x=ve-1;x>=0;x--){const ye=G+x,Fe=u[ye],ps=ye+1<M?u[ye+1].el:y;ht[x]===0?B(null,Fe,p,ps,m,v,R,w,A):tt&&(te<0||x!==gs[te]?qe(Fe,p,ps,2):te--)}}},qe=(c,u,p,y,m=null)=>{const{el:v,type:R,transition:w,children:A,shapeFlag:x}=c;if(x&6){qe(c.component.subTree,u,p,y);return}if(x&128){c.suspense.move(u,p,y);return}if(x&64){R.move(c,u,p,et);return}if(R===pe){s(v,u,p);for(let j=0;j<A.length;j++)qe(A[j],u,p,y);s(c.anchor,u,p);return}if(R===Wt){_(c,u,p);return}if(y!==2&&x&1&&w)if(y===0)w.beforeEnter(v),s(v,u,p),ge(()=>w.enter(v),m);else{const{leave:j,delayLeave:N,afterLeave:H}=w,G=()=>s(v,u,p),X=()=>{j(v,()=>{G(),H&&H()})};N?N(v,G,X):X()}else s(v,u,p)},Ae=(c,u,p,y=!1,m=!1)=>{const{type:v,props:R,ref:w,children:A,dynamicChildren:x,shapeFlag:M,patchFlag:j,dirs:N}=c;if(w!=null&&en(w,null,p,c,!0),M&256){u.ctx.deactivate(c);return}const H=M&1&&N,G=!ct(c);let X;if(G&&(X=R&&R.onVnodeBeforeUnmount)&&xe(X,u,c),M&6)Qr(c.component,p,y);else{if(M&128){c.suspense.unmount(p,y);return}H&&Re(c,null,u,"beforeUnmount"),M&64?c.type.remove(c,u,p,m,et,y):x&&(v!==pe||j>0&&j&64)?Be(x,u,p,!1,!0):(v===pe&&j&384||!m&&M&16)&&Be(A,u,p),y&&as(c)}(G&&(X=R&&R.onVnodeUnmounted)||H)&&ge(()=>{X&&xe(X,u,c),H&&Re(c,null,u,"unmounted")},p)},as=c=>{const{type:u,el:p,anchor:y,transition:m}=c;if(u===pe){Zr(p,y);return}if(u===Wt){T(c);return}const v=()=>{r(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:R,delayLeave:w}=m,A=()=>R(p,v);w?w(c.el,v,A):A()}else v()},Zr=(c,u)=>{let p;for(;c!==u;)p=g(c),r(c),c=p;r(u)},Qr=(c,u,p)=>{const{bum:y,scope:m,update:v,subTree:R,um:w}=c;y&&bn(y),m.stop(),v&&(v.active=!1,Ae(R,c,u,p)),w&&ge(w,u),ge(()=>{c.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Be=(c,u,p,y=!1,m=!1,v=0)=>{for(let R=v;R<c.length;R++)Ae(c[R],u,p,y,m)},Mt=c=>c.shapeFlag&6?Mt(c.component.subTree):c.shapeFlag&128?c.suspense.next():g(c.anchor||c.el);let gn=!1;const ds=(c,u,p)=>{c==null?u._vnode&&Ae(u._vnode,null,null,!0):B(u._vnode||null,c,u,null,null,null,p),gn||(gn=!0,As(),Zt(),gn=!1),u._vnode=c},et={p:B,um:Ae,m:qe,r:as,mt:ce,mc:F,pc:S,pbc:O,n:Mt,o:e};let pn,_n;return t&&([pn,_n]=t(et)),{render:ds,hydrate:pn,createApp:Hi(ds,pn)}}function An({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 jr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function cs(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]=$e(r[l]),o.el=i.el),n||cs(i,o)),o.type===ut&&(o.el=i.el)}}function Zi(e){const t=e.slice(),n=[0];let s,r,l,i,o;const f=e.length;for(s=0;s<f;s++){const d=e[s];if(d!==0){if(r=n[n.length-1],e[r]<d){t[s]=r,n.push(s);continue}for(l=0,i=n.length-1;l<i;)o=l+i>>1,e[n[o]]<d?l=o+1:i=o;d<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 Qi=e=>e.__isTeleport,mt=e=>e&&(e.disabled||e.disabled===""),js=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Us=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Hn=(e,t)=>{const n=e&&e.to;return le(n)?t?t(n):null:n},Xi={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,l,i,o,f,d){const{mc:h,pc:a,pbc:g,o:{insert:E,querySelector:I,createText:B,createComment:D}}=d,q=mt(t.props);let{shapeFlag:K,children:_,dynamicChildren:T}=t;if(e==null){const C=t.el=B(""),b=t.anchor=B("");E(C,n,s),E(b,n,s);const L=t.target=Hn(t.props,I),F=t.targetAnchor=B("");L&&(E(F,L),i==="svg"||js(L)?i="svg":(i==="mathml"||Us(L))&&(i="mathml"));const P=(O,V)=>{K&16&&h(_,O,V,r,l,i,o,f)};q?P(n,b):L&&P(L,F)}else{t.el=e.el;const C=t.anchor=e.anchor,b=t.target=e.target,L=t.targetAnchor=e.targetAnchor,F=mt(e.props),P=F?n:b,O=F?C:L;if(i==="svg"||js(b)?i="svg":(i==="mathml"||Us(b))&&(i="mathml"),T?(g(e.dynamicChildren,T,P,r,l,i,o),cs(e,t,!0)):f||a(e,t,P,O,r,l,i,o,!1),q)F?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):$t(t,n,C,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const V=t.target=Hn(t.props,I);V&&$t(t,V,null,d,0)}else F&&$t(t,b,L,d,1)}Hr(t)},remove(e,t,n,s,{um:r,o:{remove:l}},i){const{shapeFlag:o,children:f,anchor:d,targetAnchor:h,target:a,props:g}=e;if(a&&l(h),i&&l(d),o&16){const E=i||!mt(g);for(let I=0;I<f.length;I++){const B=f[I];r(B,t,n,E,!!B.dynamicChildren)}}},move:$t,hydrate:zi};function $t(e,t,n,{o:{insert:s},m:r},l=2){l===0&&s(e.targetAnchor,t,n);const{el:i,anchor:o,shapeFlag:f,children:d,props:h}=e,a=l===2;if(a&&s(i,t,n),(!a||mt(h))&&f&16)for(let g=0;g<d.length;g++)r(d[g],t,n,2);a&&s(o,t,n)}function zi(e,t,n,s,r,l,{o:{nextSibling:i,parentNode:o,querySelector:f}},d){const h=t.target=Hn(t.props,f);if(h){const a=h._lpa||h.firstChild;if(t.shapeFlag&16)if(mt(t.props))t.anchor=d(i(e),t,o(e),n,s,r,l),t.targetAnchor=a;else{t.anchor=i(e);let g=a;for(;g;)if(g=i(g),g&&g.nodeType===8&&g.data==="teleport anchor"){t.targetAnchor=g,h._lpa=t.targetAnchor&&i(t.targetAnchor);break}d(a,t,h,n,s,r,l)}Hr(t)}return t.anchor&&i(t.anchor)}const Uo=Xi;function Hr(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"),ut=Symbol.for("v-txt"),he=Symbol.for("v-cmt"),Wt=Symbol.for("v-stc"),bt=[];let we=null;function fs(e=!1){bt.push(we=e?null:[])}function $r(){bt.pop(),we=bt[bt.length-1]||null}let at=1;function Hs(e){at+=e}function Vr(e){return e.dynamicChildren=at>0?we||nt:null,$r(),at>0&&we&&we.push(e),e}function Ho(e,t,n,s,r,l){return Vr(Wr(e,t,n,s,r,l,!0))}function Dr(e,t,n,s,r){return Vr(ne(e,t,n,s,r,!0))}function vt(e){return e?e.__v_isVNode===!0:!1}function Oe(e,t){return e.type===t.type&&e.key===t.key}const dn="__vInternal",Kr=({key:e})=>e??null,qt=({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 Wr(e,t=null,n=null,s=0,r=null,l=e===pe?0:1,i=!1,o=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kr(t),ref:t&&qt(t),scopeId:mr,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?(us(f,n),l&128&&e.normalize(f)):n&&(f.shapeFlag|=le(n)?8:16),at>0&&!i&&we&&(f.patchFlag>0||l&6)&&f.patchFlag!==32&&we.push(f),f}const ne=eo;function eo(e,t=null,n=null,s=0,r=null,l=!1){if((!e||e===br)&&(e=he),vt(e)){const o=We(e,t,!0);return n&&us(o,n),at>0&&!l&&we&&(o.shapeFlag&6?we[we.indexOf(e)]=o:we.push(o)),o.patchFlag|=-2,o}if(ao(e)&&(e=e.__vccOpts),t){t=to(t);let{class:o,style:f}=t;o&&!le(o)&&(t.class=ln(o)),z(f)&&(fr(f)&&!U(f)&&(f=fe({},f)),t.style=rn(f))}const i=le(e)?1:ci(e)?128:Qi(e)?64:z(e)?4:$(e)?2:0;return Wr(e,t,n,s,r,i,l,!0)}function to(e){return e?fr(e)||dn in e?fe({},e):e:null}function We(e,t,n=!1){const{props:s,ref:r,patchFlag:l,children:i}=e,o=t?no(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Kr(o),ref:t&&t.ref?n&&r?U(r)?r.concat(qt(t)):[r,qt(t)]:qt(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 qr(e=" ",t=0){return ne(ut,null,e,t)}function $o(e="",t=!1){return t?(fs(),Dr(he,null,e)):ne(he,null,e)}function Ce(e){return e==null||typeof e=="boolean"?ne(he):U(e)?ne(pe,null,e.slice()):typeof e=="object"?$e(e):ne(ut,null,String(e))}function $e(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:We(e)}function us(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),us(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(dn 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=[qr(t)]):n=8);e.children=t,e.shapeFlag|=n}function no(...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=ln([t.class,s.class]));else if(r==="style")t.style=rn([t.style,s.style]);else if(nn(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){Ee(e,t,7,[n,s])}const so=Mr();let ro=0;function lo(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||so,l={uid:ro++,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:Lr(s,r),emitsOptions:yr(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=ni.bind(null,l),e.ce&&e.ce(l),l}let oe=null;const Gr=()=>oe||re;let tn,$n;{const e=Ys(),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)}};tn=t("__VUE_INSTANCE_SETTERS__",n=>oe=n),$n=t("__VUE_SSR_SETTERS__",n=>It=n)}const Rt=e=>{const t=oe;return tn(e),e.scope.on(),()=>{e.scope.off(),tn(t)}},$s=()=>{oe&&oe.scope.off(),tn(null)};function Yr(e){return e.vnode.shapeFlag&4}let It=!1;function io(e,t=!1){t&&$n(t);const{props:n,children:s}=e.vnode,r=Yr(e);Vi(e,n,r,t),Wi(e,s);const l=r?oo(e,t):void 0;return t&&$n(!1),l}function oo(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ur(new Proxy(e.ctx,Li));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?fo(e):null,l=Rt(e);Xe();const i=De(s,e,0,[e.props,r]);if(ze(),l(),Ws(i)){if(i.then($s,$s),t)return i.then(o=>{Vn(e,o,t)}).catch(o=>{dt(o,e,0)});e.asyncDep=i}else Vn(e,i,t)}else Jr(e,t)}function Vn(e,t,n){$(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=hr(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||is(e).template;if(r){const{isCustomElement:l,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:f}=s,d=fe(fe({isCustomElement:l,delimiters:o},i),f);s.render=Vs(r,d)}}e.render=s.render||Te}{const r=Rt(e);Xe();try{Bi(e)}finally{ze(),r()}}}function co(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return _e(e,"get","$attrs"),t[n]}}))}function fo(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return co(e)},slots:e.slots,emit:e.emit,expose:t}}function hn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(hr(ur(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in _t)return _t[n](e)},has(t,n){return n in t||n in _t}}))}function uo(e,t=!0){return $(e)?e.displayName||e.name:e.name||t&&e.__name}function ao(e){return $(e)&&"__vccOpts"in e}const ho=(e,t)=>Vl(e,t,It);function Vo(e,t,n=ee){const s=Gr(),r=Me(t),l=At(t),i=Gl((f,d)=>{let h;return yi(()=>{const a=e[t];Pe(h,a)&&(h=a,d())}),{get(){return f(),n.get?n.get(h):h},set(a){const g=s.vnode.props;!(g&&(t in g||r in g||l in g)&&(`onUpdate:${t}`in g||`onUpdate:${r}`in g||`onUpdate:${l}`in g))&&Pe(a,h)&&(h=a,d()),s.emit(`update:${t}`,n.set?n.set(a):a)}}}),o=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return i[Symbol.iterator]=()=>{let f=0;return{next(){return f<2?{value:f++?e[o]||{}:i,done:!1}:{done:!0}}}},i}function Do(e,t,n){const s=arguments.length;return s===2?z(t)&&!U(t)?vt(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&vt(n)&&(n=[n]),ne(e,t,n))}const go="3.4.20";globalThis.__sfIds||(globalThis.__sfIds={});const Ko=(e="_")=>(typeof globalThis.__sfIds[e]!="number"&&(globalThis.__sfIds[e]=-1),`${e}${++globalThis.__sfIds[e]}`),Wo=(e,t=300)=>{typeof window.requestIdleCallback=="function"?window.requestIdleCallback(e):setTimeout(e,t)},po=e=>e.replace(/[ÁáÃãÂâÀà]/g,"a").replace(/[ÉéÊê]/g,"e").replace(/[Íí]/g,"i").replace(/[ÕõÓóÔô]/g,"o").replace(/[Úú]/g,"u").replace(/[Çç]/g,"c"),qo=e=>po(e.trim()).toLowerCase().replace(/[\W\r\n]/gm,"-").replace(/-{2,}/g,"-").replace(/(^-)|(-$)/g,""),_o=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,"ç"),yo=e=>_o(e.trim()).replace(/[\r\n]/gm," ").replace(/[^\w-&%áãâàéêíõóôúç]/g," ").replace(/\s{2,}/g," "),Go=(e,t="/s/")=>`${t}${encodeURIComponent(yo(e))}`,Yo=(e,t=0)=>{for(;e.offsetParent;)t+=e.offsetTop,e=e.offsetParent;return window.scroll({top:t,behavior:"smooth"})};export{Dr as $,fe as A,Mo as B,xi as C,Xr as D,z as E,pe as F,al as G,nn as H,Ds as I,At as J,Me as K,qn as L,xo as M,Co as N,Ee as O,yn as P,Xl as Q,Kl as R,cr as S,Ar as T,ae as U,Gr as V,xl as W,wo as X,$l as Y,ko as Z,mo as _,Dt as a,qr as a0,To as a1,Fo as a2,no as a3,bo as a4,to as a5,qo as a6,po as a7,Eo as a8,Go as a9,Hs as aa,Ko as ab,rn as ac,$i as ad,Rr as ae,Io as af,Kt as ag,Z as ah,Yo as ai,No as aj,Vo as ak,Fr as al,Ro as am,Uo as an,Po as ao,We as ap,Bo as aq,Wo as b,ho as c,Ti as d,Ho as e,Wr as f,ne as g,si as h,Ao as i,Oo as j,Lo as k,$o as l,$ as m,ln as n,fs as o,le as p,ul as q,Xn as r,vo as s,So as t,jo as u,U as v,Tn as w,bn as x,Js as y,Do as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as _}from"./customer-session.CNe1heRH.js";import{e as l}from"./index.CFw6O-Kt.js";import{p as y}from"./price.CHiL6Z1J.js";import{c as m,w as q}from"./sf-utils.Cigv01cN.js";const g=()=>{let i=Math.floor(Math.random()*1e6).toString()+Date.now();for(;i.length<24;)i+="0";return i};function h(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 b=(i,{flags:t})=>!i.flags&&!t?!0:!i.flags||!t||i.flags.length!==t.length?!1:i.flags.every(r=>t.includes(r)),v=(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)&&b(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=g()),t.customizations){const n=[];t.customizations.forEach((a,c)=>{n[c]={...a}}),o.customizations=n}return r.push(o),o},C=(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},k="ecomShoppingCart",E={subtotal:0,items:[]},s=_(k,E),S=m(()=>s.items.reduce((i,t)=>i+t.quantity,0)),x=i=>{v(s,i)},j=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)=>x(C(i,t,r)),f=h(),p=()=>s.items.map(i=>({...i}));let e=p();const z=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);q(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),z(i)});const O={on:f.on,off:f.off};export{D as a,O as c,C as p,j as r,s,S as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as C,b as T,d as y,c as x}from"./customer-session.CNe1heRH.js";import{c as G}from"./shopping-cart.D-w8Z-4p.js";import{a as m,r as R,c as b,Y as I,w as E}from"./sf-utils.Cigv01cN.js";import{e as N,g as P}from"./index.CFw6O-Kt.js";import{u as A}from"./afetch.DPLba2tr.js";import{n as M}from"./name.BZA9xqh-.js";import{p as L}from"./price.CHiL6Z1J.js";const F="ecomSeachHistory",l=C(F,[]);for(let e=0;e<l.length;e++)typeof l[e]!="string"&&(l.splice(e,1),e-=1);const V=async({term:e,params:i,fields:o,url:t="search/v1"})=>{if(typeof e=="string"&&(e=e.trim(),e.length<2))return{data:{result:[],meta:null}};const a=await T.get(t,{fields:o,params:e?{...i,term:e}:i});if(e&&a.data.result.length){const r=e,n=l.findIndex(h=>h.includes(r)&&!h.replace(r,"").includes(" "));if(n>-1){const h=l[n];l.splice(n,1),l.unshift(h)}else{const h=l.findIndex(d=>r.startsWith(d));h>-1&&l.splice(h,1),l.unshift(e)}for(;l.length>20;)l.pop()}return a};class Y{fields;term=m(null);isWithCount=m(!0);isWithBuckets=m(!0);params=R({});pageSize=m(24);pageNumber=m(1);#s=[];#i=m(!1);isFetching=b(()=>this.#i.value);#e=m(!1);wasFetched=b(()=>this.#e.value);#a=m(null);#t;fetching=b(()=>this.#a.value);#n=m(null);fetchError=b(()=>this.#n.value);products=I([]);meta=I({offset:0,limit:0,fields:[],sort:[],query:{}});#o;constructor({fields:i,debounce:o=150}={}){this.fields=i,this.#o=N(t=>(this.#i.value=!0,V(t)),o),E([this.term,this.params,this.pageSize],()=>{this.wasFetched.value&&(this.pageNumber.value=1,this.#e.value=!1)}),E(this.pageNumber,()=>{this.#e.value=!1})}async fetch(i){i!==void 0&&i!==this.term.value&&(this.term.value=i,this.pageNumber.value=1);const o=this.pageSize.value,t=o*(this.pageNumber.value-1);this.#a.value||(this.#a.value=new Promise(n=>{this.#t=n}));let a;const r={term:this.term.value,params:{...this.params,limit:o,offset:t,count:this.isWithCount.value||void 0,buckets:this.isWithBuckets.value||void 0},fields:this.fields};try{for(let n=0;n<this.#s.length;n++)this.#s[n](r);a=await this.#o(r)}catch(n){throw this.#t&&(this.#n.value=n,this.#t()),n}if(a){this.#i.value=!1,this.#e.value=!0;const{data:n}=a;n.meta&&this.setResult(n),this.#t&&this.#t()}}addMiddleware(i){this.#s.push(i)}setResult(i){i.meta&&Object.assign(this.meta,i.meta),i.result&&(this.products.splice(0),i.result.forEach(o=>this.products.push(o))),i.meta&&i.result&&setTimeout(()=>{this.#e.value=!0},9)}}const c={},u={},S=()=>{u.resolve||(u.waiting=new Promise(e=>{u.resolve=e}))};S();const W=()=>({page_location:window.location.toString(),language:globalThis.$storefront.settings.lang||"pt_br",page_title:document.title,user_agent:navigator.userAgent}),q=()=>({...u.params||W(),...c,user_id:x.value._id,utm:A}),$="GtagEvent";let _={},g="";const p=async(e,i)=>{const o=i;if(e==="page_view"){_={};const{apiContext:t}=window.$storefront;if(g="",t){const{name:a}=t.doc;switch(t.resource){case"categories":g=`Category: ${a}`;break;case"brands":g=`Brand: ${a}`;break;case"collections":g=`Collection: ${a}`;break}}else{const{pathname:a}=window.location;a==="/"?g="Home":(/^\/s\/?/.test(a)||a==="/search"||a==="/busca")&&(g="Search results")}u.resolve&&(u.params=i,u.resolve(),u.resolve=null)}else u.waiting&&await u.waiting,e==="view_item"&&o.items?.forEach(t=>{if(t.index!==void 0)return;if(!t.item_list_id&&!t.item_list_name){const{apiContext:r}=window.$storefront;r?.doc._id===t.object_id&&(t.item_list_id="product-page",t.item_list_name="Product page")}const a=t.item_list_id||t.item_list_name||g;a&&(_[a]?_[a]+=1:_[a]=1,t.index=_[a],!t.item_list_id&&!t.item_list_name&&(t.item_list_name=a))}),typeof o.value=="number"&&!o.currency&&(o.currency=window.ECOM_CURRENCY||"BRL");try{const t={type:$,...q(),event:{name:e,params:o}};window.postMessage(t,window.origin)}catch(t){console.error(t)}},Q=e=>{window.addEventListener("message",({data:i})=>{i.type===$&&e(i)})},B=e=>{const[i,...o]=M(e).split(" / "),t={item_name:i,item_id:e.sku,price:Math.round(L(e)*100)/100,object_id:e._id};o&&o.length?t.item_variant=o.join(" / "):e.variation_id&&(t.item_name=i.replace(window.__customGTMVariantRegex||/\s[^\s]+$/,""),t.item_variant=i.replace(t.item_name,"").trim()),(e.quantity===0||e.quantity&&e.product_id)&&(t.quantity=e.quantity);const{brands:a,categories:r}=e;if(a?.length&&(t.item_brand=a[0].name),r?.length)for(let n=0;n<r.length;n++){const{name:h}=r[n];if(n===0)t.item_category=h;else if(t[`item_category${n+1}`]=h,n===4)break}return t},X=({experimentId:e=window.AB_EXPERIMENT_ID}={})=>{document.addEventListener("astro:beforeload",S);const{gtag:i,GTAG_TAG_ID:o,GA_TRACKING_ID:t,GIT_BRANCH:a}=window,r=o||t,n=a&&e?`${e}-${a}`:a?.startsWith("main-")&&a||null;typeof i=="function"&&(r&&["client_id","session_id","gclid"].forEach(s=>{i("get",r,s,f=>{c[s==="gclid"?s:`g_${s}`]=f})}),n&&i("event","experience_impression",{exp_variant_string:n}));const h=new URL(window.location.toString());["gclid","fbclid","ttclid"].forEach(s=>{const f=c[s]||h.searchParams.get(s);f?(c[s]=f,sessionStorage.setItem(`analytics_${s}`,f)):c[s]=sessionStorage.getItem(`analytics_${s}`)||void 0});const d=["_fbp"];return c.fbclid||d.push("_fbc"),c.g_client_id||d.push("_ga"),d.forEach(s=>{document.cookie.split(";").forEach(f=>{const[w,v]=f.split("=");if(w.trim()===s&&v)switch(s){case"_fbp":c.fbp=v;break;case"_fbc":c.fbclid=v;break;case"_ga":c.g_client_id=v.substring(6);break}})}),["client_id","session_id"].forEach(s=>{const f=s==="client_id"?localStorage:sessionStorage,w=f.getItem(`analytics_${s}`);w?c[s]=w:c[s]=c[`g_${s}`]||`${Math.ceil(Math.random()*1e6)}.${Math.ceil(Math.random()*1e6)}`,f.setItem(`analytics_${s}`,c[s])}),y.value?p("login",{}):P(y,()=>p("login",{})),G.on("*",(s,f)=>{p(s==="addCartItem"?"add_to_cart":"remove_from_cart",{items:[B(f)]})}),E(l,()=>{const s=l[0];s&&p("search",{search_term:s})}),window.location.pathname.startsWith("/s")&&setTimeout(()=>{let s=new URLSearchParams(window.location.search).get("q");s||(s=decodeURIComponent(window.location.pathname.split("/")[2])),s&&typeof s=="string"&&p("view_search_results",{search_term:s})},300),{expVariantString:n}};export{Y as S,W as a,q as b,p as e,B as g,l as s,c as t,X as u,Q as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as u,w as c}from"./sf-utils.Cigv01cN.js";function d(n){let i,s;Array.isArray(n)&&(i=n[1],s=n[2],n=n[0]);const r=u();if(window.$isCmsPreview){const a=btoa(JSON.stringify({filename:n})),o={type:"open",filename:n,field:i,subfield:s,id:a};window.parent.postMessage(o,window.location.origin),window.addEventListener("message",t=>{t.data.id===a&&(i?r.value=s?t.data.data[i][s]:t.data.data[i]:r.value=t.data.data)})}return{liveContent:r}}const l=({cmsPreview:n},i)=>{if(n){const{contentFilename:s,sectionIndex:r}=n,{liveContent:a}=d([s,"sections",r]);return i&&c(a,o=>{o&&Object.keys(i).forEach(t=>{if(i[t].value!==void 0){if(o[t]===void 0)return;i[t].value=o[t];return}if(o[t]){if(Array.isArray(i[t])){i[t].splice(0),o[t].forEach(e=>i[t].push(e));return}Object.assign(i[t],o[t])}})}),{liveContent:a}}return null};export{l as a,d as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b}from"./customer-session.CNe1heRH.js";import"./server-data.CUHTES8a.js";import{a as f,Y as P,c as a,a6 as w}from"./sf-utils.Cigv01cN.js";import{e as I,g as k}from"./use-analytics.CQDdNgwF.js";import{p as g,o as q}from"./price.CHiL6Z1J.js";import{n as E}from"./name.BZA9xqh-.js";import{i as N}from"./img.D5a6GzeE.js";import"./index.CFw6O-Kt.js";const $=t=>t&&t.min_quantity||1,G=t=>!t.hasOwnProperty("quantity")||t.quantity>=$(t),M=t=>{const n=f(!1);let s=null;const o=f(null),{productId:r}=t,i=P({...t.product,_id:t.product?._id||r,price:g(t.product||{})});!t.product&&r&&(n.value=!0,s=(async()=>{try{const{data:e}=await b.get(`products/${r}`);Object.assign(i,e)}catch(e){console.error(e),o.value=e}n.value=!1})());const d=a(()=>E(i)),v=a(()=>{const{slug:e}=i;return typeof e=="string"?`/${e}`:null}),h=a(()=>{const{pictures:e}=i,l=[];return e&&e.forEach(p=>{const m=N(p);m&&l.push(m)}),l}),c=a(()=>G(i)),u=a(()=>c.value&&i.available&&i.visible),_=a(()=>{if(q(i)){const e=i.base_price;return Math.round((e-g(i))*100/e)}return 0}),y=a(()=>i.has_variations?!0:!!i.variations?.length);return I("view_item",{value:u.value?i.price:0,items:[{...k(i),item_list_name:t.listName,item_list_id:t.listId||t.listName&&w(t.listName)}]}),{isFetching:n,fetching:s,fetchError:o,product:i,title:d,link:v,images:h,isInStock:c,isActive:u,discountPercentage:_,hasVariations:y}};export{G as i,M as u};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{_ as Q,w as Z,v as J}from"./_plugin-vue_export-helper.CBemkWnU.js";import{d as H,aj as ee,ak as te,a as h,w as P,c as b,Q as B,i as ne,o as g,$ as A,h as T,j as re,e as F,n as D,ac as le,f as W,Z as _,l as y,an as oe,g as ae,ag as R,af as k,T as ie,ap as se,z as ue,F as ce,ad as de}from"./sf-utils.Cigv01cN.js";const fe=H({__name:"Drawer",props:ee({isHidden:{type:Boolean,default:!1},placement:{default:"start"},position:{default:"fixed"},animation:{default:"slide"},hasCloseButton:{type:Boolean,default:!0},anchorEl:{},backdropTarget:{default:"#teleported-top"},canLockScroll:{type:Boolean,default:!0},maxWidth:{},class:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:n}){n();const t=e,r=te(e,"modelValue"),o=()=>{r.value=!1},l=h(null),a=s=>{if(!l.value?.contains(s.target)){if(t.anchorEl?.contains(s.target))return;o()}},i=s=>{s.key==="Escape"&&o()},f=h(0);P(r,async s=>{s?(t.canLockScroll&&(f.value=window.innerWidth-document.documentElement.clientWidth,document.body.style.overflow="hidden",document.body.style.paddingRight=`${f.value}px`),setTimeout(()=>{document.addEventListener("click",a,{passive:!0}),document.addEventListener("keydown",i,{passive:!0})},500)):(t.canLockScroll&&(document.body.style.overflow="",document.body.style.paddingRight=""),document.removeEventListener("click",a),document.removeEventListener("keydown",i))});const u=b(()=>{if(t.animation!=="slide")return null;switch(t.placement){case"start":return"left";case"end":return"right";case"top":return"down";default:return"up"}}),c=h(null);t.animation==="scale"&&P(r,s=>{s?B(()=>{setTimeout(()=>{c.value="transition",setTimeout(()=>{r.value&&(c.value="")},300)},50)}):c.value="transition scale-90"},{immediate:!0});const v=b(()=>Array.isArray(t.class)?t.class:[t.class]),p=b(()=>t.position==="fixed"),m=b(()=>t.placement==="start"||t.placement==="end"),d={props:t,model:r,close:o,drawer:l,outsideClickListener:a,escClickListener:i,scrollbarWidth:f,slideTo:u,animationClassName:c,customClassList:v,isFixed:p,isPlacementX:m};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),me=["open","data-drawer"],ve={class:"relative h-full"},pe=W("i",{class:"m-0 text-3xl text-base-400 i-close hover:text-base-600"},null,-1),he={key:0,class:"size-screen fixed left-0 top-0 z-30 bg-black/50","data-drawer-backdrop":""};function we(e,n,t,r,o,l){const a=ne("Fade");return g(),A(a,{slide:r.slideTo,speed:"slow","is-floating":""},{default:T(()=>[r.model?re((g(),F("dialog",{key:0,ref:"drawer",class:D(["z-40 w-screen p-0",[t.position,r.isPlacementX?"m-0":"mx-auto",r.isPlacementX&&!t.maxWidth?"max-w-sm":null,r.isFixed?`top-0 ${r.isPlacementX?"h-screen":"max-h-screen"}`:null,r.isFixed&&t.placement!=="end"?"left-0":null,r.isFixed&&t.placement==="end"?"left-auto right-0":null,r.animationClassName,...r.customClassList]]),style:le({maxWidth:t.maxWidth?`min(${t.maxWidth}, calc(100vw - ${r.scrollbarWidth}px))`:r.isPlacementX?void 0:`calc(100vw - ${r.scrollbarWidth}px)`}),open:r.model,"data-drawer":t.placement},[W("div",ve,[t.hasCloseButton?(g(),F("button",{key:0,type:"button","aria-label":"Fechar",onClick:Z(r.close,["prevent"]),class:D(["absolute top-2 z-30 rounded",t.placement==="end"?"left-2":"right-2"]),"data-drawer-close":""},[_(e.$slots,"close",{},()=>[pe])],2)):y("",!0),_(e.$slots,"default")]),t.backdropTarget?(g(),A(oe,{key:0,to:t.backdropTarget},[ae(a,null,{default:T(()=>[r.model&&!t.isHidden?(g(),F("div",he)):y("",!0)]),_:1})],8,["to"])):y("",!0)],14,me)),[[J,!t.isHidden]]):y("",!0)]),_:3},8,["slide"])}const qe=Q(fe,[["render",we]]);let ge=Symbol("headlessui.useid"),be=0;function Ye(){return R(ge,()=>`${++be}`)()}function w(e){var n;if(e==null||e.value==null)return null;let t=(n=e.value.$el)!=null?n:e.value;return t instanceof Node?t:null}function L(e,n,...t){if(e in n){let o=n[e];return typeof o=="function"?o(...t):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,L),r}var ye=Object.defineProperty,Ee=(e,n,t)=>n in e?ye(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,j=(e,n,t)=>(Ee(e,typeof n!="symbol"?n+"":n,t),t);let xe=class{constructor(){j(this,"current",this.detect()),j(this,"currentId",0)}set(n){this.current!==n&&(this.currentId=0,this.current=n)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},O=new xe;function U(e){if(O.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let n=w(e);if(n)return n.ownerDocument}return document}let N=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Fe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Fe||{}),Se=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Se||{}),Ne=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ne||{});function V(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(N)).sort((n,t)=>Math.sign((n.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var X=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(X||{});function z(e,n=0){var t;return e===((t=U(e))==null?void 0:t.body)?!1:L(n,{0(){return e.matches(N)},1(){let r=e;for(;r!==null;){if(r.matches(N))return!0;r=r.parentElement}return!1}})}function Ze(e){let n=U(e);B(()=>{n&&!z(n.activeElement,0)&&Le(e)})}var ke=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ke||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Le(e){e?.focus({preventScroll:!0})}let Oe=["textarea","input"].join(",");function Pe(e){var n,t;return(t=(n=e?.matches)==null?void 0:n.call(e,Oe))!=null?t:!1}function Ae(e,n=t=>t){return e.slice().sort((t,r)=>{let o=n(t),l=n(r);if(o===null||l===null)return 0;let a=o.compareDocumentPosition(l);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Je(e,n){return Te(V(),n,{relativeTo:e})}function Te(e,n,{sorted:t=!0,relativeTo:r=null,skipElements:o=[]}={}){var l;let a=(l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?l:document,i=Array.isArray(e)?t?Ae(e):e:V(e);o.length>0&&i.length>1&&(i=i.filter(d=>!o.includes(d))),r=r??a.activeElement;let f=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(n&1)return 0;if(n&2)return Math.max(0,i.indexOf(r))-1;if(n&4)return Math.max(0,i.indexOf(r))+1;if(n&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=n&32?{preventScroll:!0}:{},v=0,p=i.length,m;do{if(v>=p||v+p<=0)return 0;let d=u+v;if(n&16)d=(d+p)%p;else{if(d<0)return 3;if(d>=p)return 1}m=i[d],m?.focus(c),v+=f}while(m!==a.activeElement);return n&6&&Pe(m)&&m.select(),2}function De(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function _e(){return/Android/gi.test(window.navigator.userAgent)}function je(){return De()||_e()}function E(e,n,t){O.isServer||k(r=>{document.addEventListener(e,n,t),r(()=>document.removeEventListener(e,n,t))})}function Ce(e,n,t){O.isServer||k(r=>{window.addEventListener(e,n,t),r(()=>window.removeEventListener(e,n,t))})}function et(e,n,t=b(()=>!0)){function r(l,a){if(!t.value||l.defaultPrevented)return;let i=a(l);if(i===null||!i.getRootNode().contains(i))return;let f=function u(c){return typeof c=="function"?u(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let u of f){if(u===null)continue;let c=u instanceof HTMLElement?u:w(u);if(c!=null&&c.contains(i)||l.composed&&l.composedPath().includes(c))return}return!z(i,X.Loose)&&i.tabIndex!==-1&&l.preventDefault(),n(l,i)}let o=h(null);E("pointerdown",l=>{var a,i;t.value&&(o.value=((i=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:i[0])||l.target)},!0),E("mousedown",l=>{var a,i;t.value&&(o.value=((i=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:i[0])||l.target)},!0),E("click",l=>{je()||o.value&&(r(l,()=>o.value),o.value=null)},!0),E("touchend",l=>r(l,()=>l.target instanceof HTMLElement?l.target:null),!0),Ce("blur",l=>r(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function C(e,n){if(e)return e;let t=n??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function tt(e,n){let t=h(C(e.value.type,e.value.as));return ie(()=>{t.value=C(e.value.type,e.value.as)}),k(()=>{var r;t.value||w(n)&&w(n)instanceof HTMLButtonElement&&!((r=w(n))!=null&&r.hasAttribute("type"))&&(t.value="button")}),t}function M(e){return[e.screenX,e.screenY]}function nt(){let e=h([-1,-1]);return{wasMoved(n){let t=M(n);return e.value[0]===t[0]&&e.value[1]===t[1]?!1:(e.value=t,!0)},update(n){e.value=M(n)}}}var Me=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Me||{}),Ie=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ie||{});function $e({visible:e=!0,features:n=0,ourProps:t,theirProps:r,...o}){var l;let a=G(r,t),i=Object.assign(o,{props:a});if(e||n&2&&a.static)return S(i);if(n&1){let f=(l=a.unmount)==null||l?0:1;return L(f,{0(){return null},1(){return S({...o,props:{...a,hidden:!0,style:{display:"none"}}})}})}return S(i)}function S({props:e,attrs:n,slots:t,slot:r,name:o}){var l,a;let{as:i,...f}=He(e,["unmount","static"]),u=(l=t.default)==null?void 0:l.call(t,r),c={};if(r){let v=!1,p=[];for(let[m,d]of Object.entries(r))typeof d=="boolean"&&(v=!0),d===!0&&p.push(m);v&&(c["data-headlessui-state"]=p.join(" "))}if(i==="template"){if(u=K(u??[]),Object.keys(f).length>0||Object.keys(n).length>0){let[v,...p]=u??[];if(!Be(v)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(f).concat(Object.keys(n)).map(s=>s.trim()).filter((s,x,Y)=>Y.indexOf(s)===x).sort((s,x)=>s.localeCompare(x)).map(s=>` - ${s}`).join(`
|
|
2
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(s=>` - ${s}`).join(`
|
|
3
|
+
`)].join(`
|
|
4
|
+
`));let m=G((a=v.props)!=null?a:{},f,c),d=se(v,m,!0);for(let s in m)s.startsWith("on")&&(d.props||(d.props={}),d.props[s]=m[s]);return d}return Array.isArray(u)&&u.length===1?u[0]:u}return ue(i,Object.assign({},f,c),{default:()=>u})}function K(e){return e.flatMap(n=>n.type===ce?K(n.children):[n])}function G(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},t={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(t[o]!=null||(t[o]=[]),t[o].push(r[o])):n[o]=r[o];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(t).map(r=>[r,void 0])));for(let r in t)Object.assign(n,{[r](o,...l){let a=t[r];for(let i of a){if(o instanceof Event&&o.defaultPrevented)return;i(o,...l)}}});return n}function rt(e){let n=Object.assign({},e);for(let t in n)n[t]===void 0&&delete n[t];return n}function He(e,n=[]){let t=Object.assign({},e);for(let r of n)r in t&&delete t[r];return t}function Be(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var We=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(We||{});let lt=H({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:n,attrs:t}){return()=>{var r;let{features:o,...l}=e,a={"aria-hidden":(o&2)===2?!0:(r=l["aria-hidden"])!=null?r:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return $e({ourProps:a,theirProps:l,slot:{},attrs:t,slots:n,name:"Hidden"})}}}),q=Symbol("Context");var Re=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Re||{});function ot(){return R(q,null)}function at(e){de(q,e)}var Ue=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ue||{});function Ve(e){throw new Error("Unexpected object: "+e)}var Xe=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Xe||{});function it(e,n){let t=n.resolveItems();if(t.length<=0)return null;let r=n.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let l=0;l<t.length;++l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 1:{o===-1&&(o=t.length);for(let l=o-1;l>=0;--l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 2:{for(let l=o+1;l<t.length;++l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 3:{for(let l=t.length-1;l>=0;--l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 4:{for(let l=0;l<t.length;++l)if(n.resolveId(t[l],l,t)===e.id)return l;return r}case 5:return null;default:Ve(e)}}let I=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function $(e){var n,t;let r=(n=e.innerText)!=null?n:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let l=!1;for(let i of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))i.remove(),l=!0;let a=l?(t=o.innerText)!=null?t:"":r;return I.test(a)&&(a=a.replace(I,"")),a}function ze(e){let n=e.getAttribute("aria-label");if(typeof n=="string")return n.trim();let t=e.getAttribute("aria-labelledby");if(t){let r=t.split(" ").map(o=>{let l=document.getElementById(o);if(l){let a=l.getAttribute("aria-label");return typeof a=="string"?a.trim():$(l).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return $(e).trim()}function st(e){let n=h(""),t=h("");return()=>{let r=w(e);if(!r)return"";let o=r.innerText;if(n.value===o)return t.value;let l=ze(r).trim().toLowerCase();return n.value=o,t.value=l,l}}export{$e as A,qe as D,rt as E,Ye as I,Me as N,Ae as O,Te as P,He as T,Ze as _,z as a,lt as b,Xe as c,tt as d,nt as e,it as f,Ue as g,X as h,Re as i,U as j,O as k,ot as l,Ce as m,Fe as n,w as o,st as p,V as q,Se as r,We as s,at as t,L as u,Je as v,et as w};
|
|
Binary file
|
package/packages/storefront/dist/server/chunks/{CartSidebar_3_1aFp67.mjs → CartSidebar_BmwcZuxv.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as parseProduct, _ as _export_sfc, v as removeCartItem, Q as QuantitySelector, w as Prices, x as freeShippingFromValue, y as shoppingCart, z as totalItems, C as CheckoutLink } from './pages/
|
|
2
|
-
import { computed, useSSRContext, defineComponent, resolveComponent, mergeProps, withCtx, openBlock, createBlock, createCommentVNode, createVNode, toDisplayString, createTextVNode } from 'vue';
|
|
1
|
+
import { u as parseProduct, _ as _export_sfc, v as removeCartItem, Q as QuantitySelector, w as Prices, x as freeShippingFromValue, y as shoppingCart, z as totalItems, C as CheckoutLink, A as ShippingCalculator } from './pages/__B4CsSrck.mjs';
|
|
2
|
+
import { computed, useSSRContext, defineComponent, resolveComponent, mergeProps, withCtx, openBlock, createBlock, createCommentVNode, createVNode, toDisplayString, ref, createTextVNode } from 'vue';
|
|
3
3
|
import { name, img } from '@ecomplus/utils';
|
|
4
4
|
import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderAttr, ssrRenderList } from 'vue/server-renderer';
|
|
5
5
|
|
|
@@ -132,18 +132,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
132
132
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
133
133
|
__expose();
|
|
134
134
|
const emit = __emit;
|
|
135
|
-
const
|
|
135
|
+
const hasShippingCalculator = ref(false);
|
|
136
|
+
const __returned__ = { emit, hasShippingCalculator, get freeShippingFromValue() {
|
|
136
137
|
return freeShippingFromValue;
|
|
137
138
|
}, get shoppingCart() {
|
|
138
139
|
return shoppingCart;
|
|
139
140
|
}, get totalItems() {
|
|
140
141
|
return totalItems;
|
|
141
|
-
}, CheckoutLink, Prices, CartItem };
|
|
142
|
+
}, CheckoutLink, Prices, CartItem, ShippingCalculator };
|
|
142
143
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
143
144
|
return __returned__;
|
|
144
145
|
}
|
|
145
146
|
});
|
|
146
147
|
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
148
|
+
const _component_Fade = resolveComponent("Fade");
|
|
147
149
|
_push(`<aside${ssrRenderAttrs(mergeProps({ class: "flex h-screen flex-col bg-white" }, _attrs))}><header class="z-10 flex items-center justify-end gap-3 px-6 py-4 shadow ring-1 ring-black/5"><span class="text-base-600 text-right text-base font-medium">${ssrInterpolate("Meu carrinho de compras")}</span><span class="min-w-[3rem] text-right"><span class="ui-badge-pill-lg">${ssrInterpolate($setup.totalItems)}</span></span></header><article class="bg-base-50 grow overflow-y-auto">`);
|
|
148
150
|
if ($setup.freeShippingFromValue) {
|
|
149
151
|
_push(`<div class="text-center text-sm">`);
|
|
@@ -174,6 +176,36 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
|
|
|
174
176
|
class: "col-span-3 text-lg"
|
|
175
177
|
}, null, _parent));
|
|
176
178
|
_push(`</div>`);
|
|
179
|
+
if (!$setup.hasShippingCalculator) {
|
|
180
|
+
_push(`<div class="my-2.5 text-right"><a href="#" class="ui-link text-base-700 decoration-base-300">${ssrInterpolate("Calcular frete")} <i class="i-truck text-base-500 ml-1"></i></a></div>`);
|
|
181
|
+
} else {
|
|
182
|
+
_push(`<!---->`);
|
|
183
|
+
}
|
|
184
|
+
_push(ssrRenderComponent(_component_Fade, { slide: "down" }, {
|
|
185
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
186
|
+
if (_push2) {
|
|
187
|
+
if ($setup.hasShippingCalculator) {
|
|
188
|
+
_push2(ssrRenderComponent($setup["ShippingCalculator"], {
|
|
189
|
+
"shipped-items": $setup.shoppingCart.items,
|
|
190
|
+
class: "my-2.5 flex flex-wrap justify-end",
|
|
191
|
+
"can-auto-submit": ""
|
|
192
|
+
}, null, _parent2, _scopeId));
|
|
193
|
+
} else {
|
|
194
|
+
_push2(`<!---->`);
|
|
195
|
+
}
|
|
196
|
+
} else {
|
|
197
|
+
return [
|
|
198
|
+
$setup.hasShippingCalculator ? (openBlock(), createBlock($setup["ShippingCalculator"], {
|
|
199
|
+
key: 0,
|
|
200
|
+
"shipped-items": $setup.shoppingCart.items,
|
|
201
|
+
class: "my-2.5 flex flex-wrap justify-end",
|
|
202
|
+
"can-auto-submit": ""
|
|
203
|
+
}, null, 8, ["shipped-items"])) : createCommentVNode("", true)
|
|
204
|
+
];
|
|
205
|
+
}
|
|
206
|
+
}),
|
|
207
|
+
_: 1
|
|
208
|
+
}, _parent));
|
|
177
209
|
_push(ssrRenderComponent($setup["CheckoutLink"], {
|
|
178
210
|
to: "checkout",
|
|
179
211
|
class: "ui-btn-lg ui-btn-primary my-2.5 w-full text-right"
|
package/packages/storefront/dist/server/chunks/{SearchModal_2azP1u7P.mjs → SearchModal_BvEnUvAx.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as clearAccents, S as SearchEngine, s as searchHistory, _ as _export_sfc, r as getSearchUrl, t as ProductShelf } from './pages/
|
|
1
|
+
import { q as clearAccents, S as SearchEngine, s as searchHistory, _ as _export_sfc, r as getSearchUrl, t as ProductShelf } from './pages/__B4CsSrck.mjs';
|
|
2
2
|
import { ref, watch, toRef, defineComponent, resolveComponent, mergeProps, withCtx, createTextVNode, toDisplayString, openBlock, createBlock, Fragment, renderList, createVNode, createCommentVNode, useSSRContext } from 'vue';
|
|
3
3
|
import Wade from 'wade';
|
|
4
4
|
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderClass, ssrRenderList, ssrInterpolate, ssrRenderAttr } from 'vue/server-renderer';
|
|
@@ -27,7 +27,7 @@ if (wadeDocs.length) {
|
|
|
27
27
|
wadeSearch = Wade(wadeDocs.map(({ text }) => text));
|
|
28
28
|
}
|
|
29
29
|
const useSearchModal = (props) => {
|
|
30
|
-
const searchEngine = new SearchEngine({
|
|
30
|
+
const searchEngine = props.searchEngine || new SearchEngine({
|
|
31
31
|
debounce: props.fetchDebounce || 300
|
|
32
32
|
});
|
|
33
33
|
searchEngine.pageSize.value = props.productsLimit || 12;
|
|
@@ -71,7 +71,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
props: {
|
|
72
72
|
term: {},
|
|
73
73
|
fetchDebounce: {},
|
|
74
|
-
productsLimit: {}
|
|
74
|
+
productsLimit: {},
|
|
75
|
+
searchEngine: {}
|
|
75
76
|
},
|
|
76
77
|
setup(__props, { expose: __expose }) {
|
|
77
78
|
__expose();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isRemotePath, joinPaths } from '@astrojs/internal-helpers/path';
|
|
2
|
-
import { A as AstroError$1, E as ExpectedImage, L as LocalImageUsedWrongly, M as MissingImageDimension, U as UnsupportedImageFormat, I as IncompatibleDescriptorOptions, a as UnsupportedImageConversion, b as MissingSharp } from '../
|
|
2
|
+
import { A as AstroError$1, E as ExpectedImage, L as LocalImageUsedWrongly, M as MissingImageDimension, U as UnsupportedImageFormat, I as IncompatibleDescriptorOptions, a as UnsupportedImageConversion, b as MissingSharp } from '../astro_ISB6VLqs.mjs';
|
|
3
3
|
|
|
4
4
|
const InvalidImageService = {
|
|
5
5
|
name: "InvalidImageService",
|
|
@@ -467,4 +467,4 @@ const sharp$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
467
467
|
default: sharp_default
|
|
468
468
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
469
469
|
|
|
470
|
-
export { AstroError as A, DEFAULT_HASH_PROPS as D, InvalidImageService as I,
|
|
470
|
+
export { AstroError as A, DEFAULT_HASH_PROPS as D, InvalidImageService as I, isESMImportedImage as a, isLocalService as b, isRemoteAllowed$1 as c, isRemoteImage as i, sharp$1 as s };
|