wineater-bot 4.23.0 → 4.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wineater-chatbot.mjs +14 -14
- package/dist/wineater-chatbot.umd.js +15 -15
- package/package.json +1 -1
- package/src/components/WineBottle.svelte +56 -0
- package/src/components/WineTile.svelte +16 -1
- package/src/services/bottle/bottle.spec.ts +32 -0
- package/src/services/bottle/bottle.ts +78 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(Q,J){typeof exports=="object"&&typeof module<"u"?module.exports=J():typeof define=="function"&&define.amd?define(J):(Q=typeof globalThis<"u"?globalThis:Q||self,Q.WineaterChatbot=J())})(this,function(){"use strict";var uu=Object.defineProperty;var Fo=Q=>{throw TypeError(Q)};var cu=(Q,J,ue)=>J in Q?uu(Q,J,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Q[J]=ue;var ut=(Q,J,ue)=>cu(Q,typeof J!="symbol"?J+"":J,ue),li=(Q,J,ue)=>J.has(Q)||Fo("Cannot "+ue);var h=(Q,J,ue)=>(li(Q,J,"read from private field"),ue?ue.call(Q):J.get(Q)),O=(Q,J,ue)=>J.has(Q)?Fo("Cannot add the same private member more than once"):J instanceof WeakSet?J.add(Q):J.set(Q,ue),W=(Q,J,ue,Pn)=>(li(Q,J,"write to private field"),Pn?Pn.call(Q,ue):J.set(Q,ue),ue),V=(Q,J,ue)=>(li(Q,J,"access private method"),ue);var No,gn,mn,Ut,Ht,Un,wn,_n,ve,ui,Xt,ci,Uo,Ho,Ke,Ye,ri,ot,Gt,at,Ze,We,st,yt,Pt,Vt,At,Kt,It,gr,ge,du,fu,di,xr,Sr,fi,$e,lt,je,Yt,Hn,Gn,mr,bn,Vn,Zt,yn,Ne,hi,Tn,vi,Bo,Mo;const Q="5";typeof window<"u"&&((No=window.__svelte??(window.__svelte={})).v??(No.v=new Set)).add(Q);const J=1,ue=2,Pn=4,Go=8,Vo=16,Ko=1,Yo=2,Zo=4,Qo=8,Jo=16,Xo=1,$o=2,be=Symbol(),ea="http://www.w3.org/1999/xhtml",Cr=!1;var Er=Array.isArray,ta=Array.prototype.indexOf,Tr=Array.from,na=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,ra=Object.getOwnPropertyDescriptors,ia=Object.prototype,oa=Array.prototype,pi=Object.getPrototypeOf,gi=Object.isExtensible;function aa(e){for(var t=0;t<e.length;t++)e[t]()}function mi(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const me=2,Pr=4,Ar=8,ct=16,dt=32,Rt=64,Jn=128,Qe=512,ye=1024,Ie=2048,ft=4096,Be=8192,ht=16384,Ir=32768,Wt=65536,wi=1<<17,_i=1<<18,en=1<<19,sa=1<<20,Nt=32768,Dr=1<<21,Rr=1<<22,xt=1<<23,Bt=Symbol("$state"),la=Symbol("legacy props"),ua=Symbol(""),tn=new class extends Error{constructor(){super(...arguments);ut(this,"name","StaleReactionError");ut(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function ca(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function da(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fa(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ha(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function va(e){throw new Error("https://svelte.dev/e/effect_orphan")}function pa(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ga(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ma(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function _a(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ba(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ya(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function ka(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function bi(e){return e===this.v}function xa(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function yi(e){return!xa(e,this.v)}let nn=!1,Sa=!1;function Ca(){nn=!0}let ce=null;function rn(e){ce=e}function vt(e,t=!1,n){ce={p:ce,i:!1,c:null,e:null,s:e,x:null,l:nn&&!t?{s:null,u:null,$:[]}:null}}function pt(e){var t=ce,n=t.e;if(n!==null){t.e=null;for(var r of n)ji(r)}return e!==void 0&&(t.x=e),t.i=!0,ce=t.p,e??{}}function An(){return!nn||ce!==null&&ce.l===null}let Mt=[];function ki(){var e=Mt;Mt=[],aa(e)}function on(e){if(Mt.length===0&&!In){var t=Mt;queueMicrotask(()=>{t===Mt&&ki()})}Mt.push(e)}function Ea(){for(;Mt.length>0;)ki()}function xi(e){var t=Z;if(t===null)return q.f|=xt,e;if(t.f&Ir)an(e,t);else{if(!(t.f&Jn))throw e;t.b.error(e)}}function an(e,t){for(;t!==null;){if(t.f&Jn)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Xn=new Set;let K=null,$n=null,de=null,Ue=[],er=null,Wr=!1,In=!1;const pr=class pr{constructor(){O(this,ve);ut(this,"committed",!1);ut(this,"current",new Map);ut(this,"previous",new Map);O(this,gn,new Set);O(this,mn,new Set);O(this,Ut,0);O(this,Ht,0);O(this,Un,null);O(this,wn,[]);O(this,_n,[]);ut(this,"skipped_effects",new Set);ut(this,"is_fork",!1)}is_deferred(){return this.is_fork||h(this,Ht)>0}process(t){var r;Ue=[],$n=null,this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of t)V(this,ve,ui).call(this,i,n);this.is_fork||V(this,ve,Uo).call(this),this.is_deferred()?(V(this,ve,Xt).call(this,n.effects),V(this,ve,Xt).call(this,n.render_effects),V(this,ve,Xt).call(this,n.block_effects)):($n=this,K=null,Ci(n.render_effects),Ci(n.effects),$n=null,(r=h(this,Un))==null||r.resolve()),de=null}capture(t,n){this.previous.has(t)||this.previous.set(t,n),t.f&xt||(this.current.set(t,t.v),de==null||de.set(t,t.v))}activate(){K=this,this.apply()}deactivate(){K===this&&(K=null,de=null)}flush(){if(this.activate(),Ue.length>0){if(Si(),K!==null&&K!==this)return}else h(this,Ut)===0&&this.process([]);this.deactivate()}discard(){for(const t of h(this,mn))t(this);h(this,mn).clear()}increment(t){W(this,Ut,h(this,Ut)+1),t&&W(this,Ht,h(this,Ht)+1)}decrement(t){W(this,Ut,h(this,Ut)-1),t&&W(this,Ht,h(this,Ht)-1),this.revive()}revive(){for(const t of h(this,wn))xe(t,Ie),Lt(t);for(const t of h(this,_n))xe(t,ft),Lt(t);W(this,wn,[]),W(this,_n,[]),this.flush()}oncommit(t){h(this,gn).add(t)}ondiscard(t){h(this,mn).add(t)}settled(){return(h(this,Un)??W(this,Un,mi())).promise}static ensure(){if(K===null){const t=K=new pr;Xn.add(K),In||pr.enqueue(()=>{K===t&&t.flush()})}return K}static enqueue(t){on(t)}apply(){}};gn=new WeakMap,mn=new WeakMap,Ut=new WeakMap,Ht=new WeakMap,Un=new WeakMap,wn=new WeakMap,_n=new WeakMap,ve=new WeakSet,ui=function(t,n){var v;t.f^=ye;for(var r=t.first;r!==null;){var i=r.f,o=(i&(dt|Rt))!==0,s=o&&(i&ye)!==0,u=s||(i&Be)!==0||this.skipped_effects.has(r);if(r.f&Jn&&((v=r.b)!=null&&v.is_pending())&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!u&&r.fn!==null){o?r.f^=ye:i&Pr?n.effects.push(r):Bn(r)&&(r.f&ct&&n.block_effects.push(r),Mn(r));var a=r.first;if(a!==null){r=a;continue}}var c=r.parent;for(r=r.next;r===null&&c!==null;)c===n.effect&&(V(this,ve,Xt).call(this,n.effects),V(this,ve,Xt).call(this,n.render_effects),V(this,ve,Xt).call(this,n.block_effects),n=n.parent),r=c.next,c=c.parent}},Xt=function(t){for(const n of t)(n.f&Ie?h(this,wn):h(this,_n)).push(n),V(this,ve,ci).call(this,n.deps),xe(n,ye)},ci=function(t){if(t!==null)for(const n of t)!(n.f&me)||!(n.f&Nt)||(n.f^=Nt,V(this,ve,ci).call(this,n.deps))},Uo=function(){if(h(this,Ht)===0){for(const t of h(this,gn))t();h(this,gn).clear()}h(this,Ut)===0&&V(this,ve,Ho).call(this)},Ho=function(){var o;if(Xn.size>1){this.previous.clear();var t=de,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Xn){if(s===this){n=!1;continue}const u=[];for(const[c,v]of this.current){if(s.current.has(c))if(n&&v!==s.current.get(c))s.current.set(c,v);else continue;u.push(c)}if(u.length===0)continue;const a=[...s.current.keys()].filter(c=>!this.current.has(c));if(a.length>0){var i=Ue;Ue=[];const c=new Set,v=new Map;for(const g of u)Ei(g,a,c,v);if(Ue.length>0){K=s,s.apply();for(const g of Ue)V(o=s,ve,ui).call(o,g,r);s.deactivate()}Ue=i}}K=null,de=t}this.committed=!0,Xn.delete(this)};let gt=pr;function Ta(e){var t=In;In=!0;try{for(var n;;){if(Ea(),Ue.length===0&&(K==null||K.flush(),Ue.length===0))return er=null,n;Si()}}finally{In=t}}function Si(){var e=Ct;Wr=!0;var t=null;try{var n=0;for(ar(!0);Ue.length>0;){var r=gt.ensure();if(n++>1e3){var i,o;Pa()}r.process(Ue),St.clear()}}finally{Wr=!1,ar(e),er=null}}function Pa(){try{pa()}catch(e){an(e,er)}}let Je=null;function Ci(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(ht|Be))&&Bn(r)&&(Je=new Set,Mn(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Hi(r):r.fn=null),(Je==null?void 0:Je.size)>0)){St.clear();for(const i of Je){if(i.f&(ht|Be))continue;const o=[i];let s=i.parent;for(;s!==null;)Je.has(s)&&(Je.delete(s),o.push(s)),s=s.parent;for(let u=o.length-1;u>=0;u--){const a=o[u];a.f&(ht|Be)||Mn(a)}}Je.clear()}}Je=null}}function Ei(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;o&me?Ei(i,t,n,r):o&(Rr|ct)&&!(o&Ie)&&Ti(i,t,r)&&(xe(i,Ie),Lt(i))}}function Ti(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&me&&Ti(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Lt(e){for(var t=er=e;t.parent!==null;){t=t.parent;var n=t.f;if(Wr&&t===Z&&n&ct&&!(n&_i))return;if(n&(Rt|dt)){if(!(n&ye))return;t.f^=ye}}Ue.push(t)}function Aa(e){let t=0,n=Ot(0),r;return()=>{ir()&&(l(n),Or(()=>(t===0&&(r=Ln(()=>e(()=>Dn(n)))),t+=1,()=>{on(()=>{t-=1,t===0&&(r==null||r(),r=void 0,Dn(n))})})))}}var Ia=Wt|en|Jn;function Da(e,t,n){new Ra(e,t,n)}class Ra{constructor(t,n,r){O(this,ge);ut(this,"parent");O(this,Ke,!1);O(this,Ye);O(this,ri,null);O(this,ot);O(this,Gt);O(this,at);O(this,Ze,null);O(this,We,null);O(this,st,null);O(this,yt,null);O(this,Pt,null);O(this,Vt,0);O(this,At,0);O(this,Kt,!1);O(this,It,null);O(this,gr,Aa(()=>(W(this,It,Ot(h(this,Vt))),()=>{W(this,It,null)})));W(this,Ye,t),W(this,ot,n),W(this,Gt,r),this.parent=Z.b,W(this,Ke,!!h(this,ot).pending),W(this,at,or(()=>{Z.b=this;{var i=V(this,ge,di).call(this);try{W(this,Ze,Ge(()=>r(i)))}catch(o){this.error(o)}h(this,At)>0?V(this,ge,Sr).call(this):W(this,Ke,!1)}return()=>{var o;(o=h(this,Pt))==null||o.remove()}},Ia))}is_pending(){return h(this,Ke)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!h(this,ot).pending}update_pending_count(t){V(this,ge,fi).call(this,t),W(this,Vt,h(this,Vt)+t),h(this,It)&&ln(h(this,It),h(this,Vt))}get_effect_pending(){return h(this,gr).call(this),l(h(this,It))}error(t){var n=h(this,ot).onerror;let r=h(this,ot).failed;if(h(this,Kt)||!n&&!r)throw t;h(this,Ze)&&(De(h(this,Ze)),W(this,Ze,null)),h(this,We)&&(De(h(this,We)),W(this,We,null)),h(this,st)&&(De(h(this,st)),W(this,st,null));var i=!1,o=!1;const s=()=>{if(i){ka();return}i=!0,o&&ba(),gt.ensure(),W(this,Vt,0),h(this,st)!==null&&cn(h(this,st),()=>{W(this,st,null)}),W(this,Ke,this.has_pending_snippet()),W(this,Ze,V(this,ge,xr).call(this,()=>(W(this,Kt,!1),Ge(()=>h(this,Gt).call(this,h(this,Ye)))))),h(this,At)>0?V(this,ge,Sr).call(this):W(this,Ke,!1)};var u=q;try{Re(null),o=!0,n==null||n(t,s),o=!1}catch(a){an(a,h(this,at)&&h(this,at).parent)}finally{Re(u)}r&&on(()=>{W(this,st,V(this,ge,xr).call(this,()=>{gt.ensure(),W(this,Kt,!0);try{return Ge(()=>{r(h(this,Ye),()=>t,()=>s)})}catch(a){return an(a,h(this,at).parent),null}finally{W(this,Kt,!1)}}))})}}Ke=new WeakMap,Ye=new WeakMap,ri=new WeakMap,ot=new WeakMap,Gt=new WeakMap,at=new WeakMap,Ze=new WeakMap,We=new WeakMap,st=new WeakMap,yt=new WeakMap,Pt=new WeakMap,Vt=new WeakMap,At=new WeakMap,Kt=new WeakMap,It=new WeakMap,gr=new WeakMap,ge=new WeakSet,du=function(){try{W(this,Ze,Ge(()=>h(this,Gt).call(this,h(this,Ye))))}catch(t){this.error(t)}W(this,Ke,!1)},fu=function(){const t=h(this,ot).pending;t&&(W(this,We,Ge(()=>t(h(this,Ye)))),gt.enqueue(()=>{var n=V(this,ge,di).call(this);W(this,Ze,V(this,ge,xr).call(this,()=>(gt.ensure(),Ge(()=>h(this,Gt).call(this,n))))),h(this,At)>0?V(this,ge,Sr).call(this):(cn(h(this,We),()=>{W(this,We,null)}),W(this,Ke,!1))}))},di=function(){var t=h(this,Ye);return h(this,Ke)&&(W(this,Pt,mt()),h(this,Ye).before(h(this,Pt)),t=h(this,Pt)),t},xr=function(t){var n=Z,r=q,i=ce;it(h(this,at)),Re(h(this,at)),rn(h(this,at).ctx);try{return t()}catch(o){return xi(o),null}finally{it(n),Re(r),rn(i)}},Sr=function(){const t=h(this,ot).pending;h(this,Ze)!==null&&(W(this,yt,document.createDocumentFragment()),h(this,yt).append(h(this,Pt)),Ki(h(this,Ze),h(this,yt))),h(this,We)===null&&W(this,We,Ge(()=>t(h(this,Ye))))},fi=function(t){var n;if(!this.has_pending_snippet()){this.parent&&V(n=this.parent,ge,fi).call(n,t);return}W(this,At,h(this,At)+t),h(this,At)===0&&(W(this,Ke,!1),h(this,We)&&cn(h(this,We),()=>{W(this,We,null)}),h(this,yt)&&(h(this,Ye).before(h(this,yt)),W(this,yt,null)))};function sn(e,t){return t}function Wa(e,t,n){for(var r=[],i=t.length,o=0;o<i;o++)jr(t[o].e,r,!0);Gi(r,()=>{var s=r.length===0&&n!==null;if(s){var u=n,a=u.parentNode;Ha(a),a.append(u),e.items.clear(),nt(e,t[0].prev,t[i-1].next)}for(var c=0;c<i;c++){var v=t[c];s||(e.items.delete(v.k),nt(e,v.prev,v.next)),De(v.e,!s)}e.first===t[0]&&(e.first=t[0].prev)})}function zt(e,t,n,r,i,o=null){var s=e,u=new Map,a=null,c=(t&Pn)!==0,v=(t&J)!==0,g=(t&ue)!==0;if(c){var f=e;s=f.appendChild(mt())}var d=null,b=Br(()=>{var _=n();return Er(_)?_:_==null?[]:Tr(_)}),p,m=!0;function k(){Na(j,p,s,t,r),d!==null&&(p.length===0?(d.fragment?(s.before(d.fragment),d.fragment=null):qr(d.effect),A.first=d.effect):cn(d.effect,()=>{d=null}))}var A=or(()=>{p=l(b);for(var _=p.length,T=new Set,P=K,C=null,R=zi(),I=0;I<_;I+=1){var X=p[I],U=r(X,I),G=m?null:u.get(U);G?(v&&ln(G.v,X),g?ln(G.i,I):G.i=I,R&&P.skipped_effects.delete(G.e)):(G=Ba(m?s:null,C,X,U,I,i,t,n),m&&(G.o=!0,C===null?a=G:C.next=G,C=G),u.set(U,G)),T.add(U)}if(_===0&&o&&!d)if(m)d={fragment:null,effect:Ge(()=>o(s))};else{var we=document.createDocumentFragment(),$=mt();we.append($),d={fragment:we,effect:Ge(()=>o($))}}if(!m)if(R){for(const[Ee,_e]of u)T.has(Ee)||P.skipped_effects.add(_e.e);P.oncommit(k),P.ondiscard(()=>{})}else k();l(b)}),j={effect:A,items:u,first:a};m=!1}function Na(e,t,n,r,i){var X,U,G,we;var o=(r&Go)!==0,s=t.length,u=e.items,a=e.first,c,v=null,g,f=[],d=[],b,p,m,k;if(o)for(k=0;k<s;k+=1)b=t[k],p=i(b,k),m=u.get(p),(X=m.a)==null||X.measure(),(g??(g=new Set)).add(m);for(k=0;k<s;k+=1){if(b=t[k],p=i(b,k),m=u.get(p),e.first??(e.first=m),!m.o){m.o=!0;var A=v?v.next:a;nt(e,v,m),nt(e,m,A),Nr(m,A,n),v=m,f=[],d=[],a=v.next;continue}if(m.e.f&Be&&(qr(m.e),o&&((U=m.a)==null||U.unfix(),(g??(g=new Set)).delete(m))),m!==a){if(c!==void 0&&c.has(m)){if(f.length<d.length){var j=d[0],_;v=j.prev;var T=f[0],P=f[f.length-1];for(_=0;_<f.length;_+=1)Nr(f[_],j,n);for(_=0;_<d.length;_+=1)c.delete(d[_]);nt(e,T.prev,P.next),nt(e,v,T),nt(e,P,j),a=j,v=P,k-=1,f=[],d=[]}else c.delete(m),Nr(m,a,n),nt(e,m.prev,m.next),nt(e,m,v===null?e.first:v.next),nt(e,v,m),v=m;continue}for(f=[],d=[];a!==null&&a.k!==p;)a.e.f&Be||(c??(c=new Set)).add(a),d.push(a),a=a.next;if(a===null)continue;m=a}f.push(m),v=m,a=m.next}if(a!==null||c!==void 0){for(var C=c===void 0?[]:Tr(c);a!==null;)a.e.f&Be||C.push(a),a=a.next;var R=C.length;if(R>0){var I=r&Pn&&s===0?n:null;if(o){for(k=0;k<R;k+=1)(G=C[k].a)==null||G.measure();for(k=0;k<R;k+=1)(we=C[k].a)==null||we.fix()}Wa(e,C,I)}}o&&on(()=>{var $;if(g!==void 0)for(m of g)($=m.a)==null||$.apply()})}function Ba(e,t,n,r,i,o,s,u){var a=(s&J)!==0,c=(s&Vo)===0,v=a?c?ja(n,!1,!1):Ot(n):n,g=s&ue?Ot(i):i,f={i:g,v,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var d=document.createDocumentFragment();d.append(e=mt())}return f.e=Ge(()=>o(e,v,g,u)),t!==null&&(t.next=f),f}finally{}}function Nr(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,o=e.e.nodes_start;o!==null&&o!==r;){var s=Rn(o);i.before(o),o=s}}function nt(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function Ma(e,t,n,r){const i=An()?nr:Br;if(n.length===0&&e.length===0){r(t.map(i));return}var o=K,s=Z,u=La();function a(){Promise.all(n.map(c=>za(c))).then(c=>{u();try{r([...t.map(i),...c])}catch(v){s.f&ht||an(v,s)}o==null||o.deactivate(),tr()}).catch(c=>{an(c,s)})}e.length>0?Promise.all(e).then(()=>{u();try{return a()}finally{o==null||o.deactivate(),tr()}}):a()}function La(){var e=Z,t=q,n=ce,r=K;return function(o=!0){it(e),Re(t),rn(n),o&&(r==null||r.activate())}}function tr(){it(null),Re(null),rn(null)}function nr(e){var t=me|Ie,n=q!==null&&q.f&me?q:null;return Z!==null&&(Z.f|=en),{ctx:ce,deps:null,effects:null,equals:bi,f:t,fn:e,reactions:null,rv:0,v:be,wv:0,parent:n??Z,ac:null}}function za(e,t){let n=Z;n===null&&da();var r=n.b,i=void 0,o=Ot(be),s=!q,u=new Map;return Qa(()=>{var f;var a=mi();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{c===K&&c.committed&&c.deactivate(),tr()})}catch(d){a.reject(d),tr()}var c=K;if(s){var v=!r.is_pending();r.update_pending_count(1),c.increment(v),(f=u.get(c))==null||f.reject(tn),u.delete(c),u.set(c,a)}const g=(d,b=void 0)=>{if(c.activate(),b)b!==tn&&(o.f|=xt,ln(o,b));else{o.f&xt&&(o.f^=xt),ln(o,d);for(const[p,m]of u){if(u.delete(p),p===c)break;m.reject(tn)}}s&&(r.update_pending_count(-1),c.decrement(v))};a.promise.then(g,d=>g(null,d||"unknown"))}),zr(()=>{for(const a of u.values())a.reject(tn)}),new Promise(a=>{function c(v){function g(){v===i?a(o):c(i)}v.then(g,g)}c(i)})}function ie(e){const t=nr(e);return Zi(t),t}function Br(e){const t=nr(e);return t.equals=yi,t}function Pi(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)De(t[n])}}function Oa(e){for(var t=e.parent;t!==null;){if(!(t.f&me))return t.f&ht?null:t;t=t.parent}return null}function Mr(e){var t,n=Z;it(Oa(e));try{e.f&=~Nt,Pi(e),t=eo(e)}finally{it(n)}return t}function Ai(e){var t=Mr(e);if(e.equals(t)||(K!=null&&K.is_fork||(e.v=t),e.wv=Xi()),!jt)if(de!==null)ir()&&de.set(e,t);else{var n=e.f&Qe?ye:ft;xe(e,n)}}let Lr=new Set;const St=new Map;let Ii=!1;function Ot(e,t){var n={f:0,v:e,reactions:null,equals:bi,rv:0,wv:0};return n}function Y(e,t){const n=Ot(e);return Zi(n),n}function ja(e,t=!1,n=!0){var i;const r=Ot(e);return t||(r.equals=yi),nn&&n&&ce!==null&&ce.l!==null&&((i=ce.l).s??(i.s=[])).push(r),r}function w(e,t,n=!1){q!==null&&(!rt||q.f&wi)&&An()&&q.f&(me|ct|Rr|wi)&&!(Se!=null&&Se.includes(e))&&_a();let r=n?He(t):t;return ln(e,r)}function ln(e,t){if(!e.equals(t)){var n=e.v;jt?St.set(e,t):St.set(e,n),e.v=t;var r=gt.ensure();r.capture(e,n),e.f&me&&(e.f&Ie&&Mr(e),xe(e,e.f&Qe?ye:ft)),e.wv=Xi(),Ri(e,Ie),An()&&Z!==null&&Z.f&ye&&!(Z.f&(dt|Rt))&&(Ve===null?$a([e]):Ve.push(e)),!r.is_fork&&Lr.size>0&&!Ii&&qa()}return t}function qa(){Ii=!1;var e=Ct;ar(!0);const t=Array.from(Lr);try{for(const n of t)n.f&ye&&xe(n,ft),Bn(n)&&Mn(n)}finally{ar(e)}Lr.clear()}function Di(e,t=1){var n=l(e),r=t===1?n++:n--;return w(e,n),r}function Dn(e){w(e,e.v+1)}function Ri(e,t){var n=e.reactions;if(n!==null)for(var r=An(),i=n.length,o=0;o<i;o++){var s=n[o],u=s.f;if(!(!r&&s===Z)){var a=(u&Ie)===0;if(a&&xe(s,t),u&me){var c=s;de==null||de.delete(c),u&Nt||(u&Qe&&(s.f|=Nt),Ri(c,ft))}else a&&(u&ct&&Je!==null&&Je.add(s),Lt(s))}}}function He(e){if(typeof e!="object"||e===null||Bt in e)return e;const t=pi(e);if(t!==ia&&t!==oa)return e;var n=new Map,r=Er(e),i=Y(0),o=qt,s=u=>{if(qt===o)return u();var a=q,c=qt;Re(null),Ji(o);var v=u();return Re(a),Ji(c),v};return r&&n.set("length",Y(e.length)),new Proxy(e,{defineProperty(u,a,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&ma();var v=n.get(a);return v===void 0?v=s(()=>{var g=Y(c.value);return n.set(a,g),g}):w(v,c.value,!0),!0},deleteProperty(u,a){var c=n.get(a);if(c===void 0){if(a in u){const v=s(()=>Y(be));n.set(a,v),Dn(i)}}else w(c,be),Dn(i);return!0},get(u,a,c){var d;if(a===Bt)return e;var v=n.get(a),g=a in u;if(v===void 0&&(!g||(d=$t(u,a))!=null&&d.writable)&&(v=s(()=>{var b=He(g?u[a]:be),p=Y(b);return p}),n.set(a,v)),v!==void 0){var f=l(v);return f===be?void 0:f}return Reflect.get(u,a,c)},getOwnPropertyDescriptor(u,a){var c=Reflect.getOwnPropertyDescriptor(u,a);if(c&&"value"in c){var v=n.get(a);v&&(c.value=l(v))}else if(c===void 0){var g=n.get(a),f=g==null?void 0:g.v;if(g!==void 0&&f!==be)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return c},has(u,a){var f;if(a===Bt)return!0;var c=n.get(a),v=c!==void 0&&c.v!==be||Reflect.has(u,a);if(c!==void 0||Z!==null&&(!v||(f=$t(u,a))!=null&&f.writable)){c===void 0&&(c=s(()=>{var d=v?He(u[a]):be,b=Y(d);return b}),n.set(a,c));var g=l(c);if(g===be)return!1}return v},set(u,a,c,v){var j;var g=n.get(a),f=a in u;if(r&&a==="length")for(var d=c;d<g.v;d+=1){var b=n.get(d+"");b!==void 0?w(b,be):d in u&&(b=s(()=>Y(be)),n.set(d+"",b))}if(g===void 0)(!f||(j=$t(u,a))!=null&&j.writable)&&(g=s(()=>Y(void 0)),w(g,He(c)),n.set(a,g));else{f=g.v!==be;var p=s(()=>He(c));w(g,p)}var m=Reflect.getOwnPropertyDescriptor(u,a);if(m!=null&&m.set&&m.set.call(v,c),!f){if(r&&typeof a=="string"){var k=n.get("length"),A=Number(a);Number.isInteger(A)&&A>=k.v&&w(k,A+1)}Dn(i)}return!0},ownKeys(u){l(i);var a=Reflect.ownKeys(u).filter(g=>{var f=n.get(g);return f===void 0||f.v!==be});for(var[c,v]of n)v.v!==be&&!(c in u)&&a.push(c);return a},setPrototypeOf(){wa()}})}function Wi(e){try{if(e!==null&&typeof e=="object"&&Bt in e)return e[Bt]}catch{}return e}function Fa(e,t){return Object.is(Wi(e),Wi(t))}var Ni,Bi,Mi,Li;function Ua(){if(Ni===void 0){Ni=window,Bi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Mi=$t(t,"firstChild").get,Li=$t(t,"nextSibling").get,gi(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),gi(n)&&(n.__t=void 0)}}function mt(e=""){return document.createTextNode(e)}function un(e){return Mi.call(e)}function Rn(e){return Li.call(e)}function E(e,t){return un(e)}function ke(e,t=!1){{var n=un(e);return n instanceof Comment&&n.data===""?Rn(n):n}}function N(e,t=1,n=!1){let r=e;for(;t--;)r=Rn(r);return r}function Ha(e){e.textContent=""}function zi(){return!1}let Oi=!1;function Ga(){Oi||(Oi=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function rr(e){var t=q,n=Z;Re(null),it(null);try{return e()}finally{Re(t),it(n)}}function Va(e,t,n,r=n){e.addEventListener(t,()=>rr(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),Ga()}function Ka(e){Z===null&&(q===null&&va(),ha()),jt&&fa()}function Ya(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function wt(e,t,n){var r=Z;r!==null&&r.f&Be&&(e|=Be);var i={ctx:ce,deps:null,nodes_start:null,nodes_end:null,f:e|Ie|Qe,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Mn(i),i.f|=Ir}catch(u){throw De(i),u}else t!==null&&Lt(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&!(o.f&en)&&(o=o.first,e&ct&&e&Wt&&o!==null&&(o.f|=Wt)),o!==null&&(o.parent=r,r!==null&&Ya(o,r),q!==null&&q.f&me&&!(e&Rt))){var s=q;(s.effects??(s.effects=[])).push(o)}return i}function ir(){return q!==null&&!rt}function zr(e){const t=wt(Ar,null,!1);return xe(t,ye),t.teardown=e,t}function Wn(e){Ka();var t=Z.f,n=!q&&(t&dt)!==0&&(t&Ir)===0;if(n){var r=ce;(r.e??(r.e=[])).push(e)}else return ji(e)}function ji(e){return wt(Pr|sa,e,!1)}function Za(e){gt.ensure();const t=wt(Rt|en,e,!0);return(n={})=>new Promise(r=>{n.outro?cn(t,()=>{De(t),r(void 0)}):(De(t),r(void 0))})}function qi(e){return wt(Pr,e,!1)}function Qa(e){return wt(Rr|en,e,!0)}function Or(e,t=0){return wt(Ar|t,e,!0)}function B(e,t=[],n=[],r=[]){Ma(r,t,n,i=>{wt(Ar,()=>e(...i.map(l)),!0)})}function or(e,t=0){var n=wt(ct|t,e,!0);return n}function Ge(e){return wt(dt|en,e,!0)}function Fi(e){var t=e.teardown;if(t!==null){const n=jt,r=q;Yi(!0),Re(null);try{t.call(null)}finally{Yi(n),Re(r)}}}function Ui(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&rr(()=>{i.abort(tn)});var r=n.next;n.f&Rt?n.parent=null:De(n,t),n=r}}function Ja(e){for(var t=e.first;t!==null;){var n=t.next;t.f&dt||De(t),t=n}}function De(e,t=!0){var n=!1;(t||e.f&_i)&&e.nodes_start!==null&&e.nodes_end!==null&&(Xa(e.nodes_start,e.nodes_end),n=!0),Ui(e,t&&!n),sr(e,0),xe(e,ht);var r=e.transitions;if(r!==null)for(const o of r)o.stop();Fi(e);var i=e.parent;i!==null&&i.first!==null&&Hi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Xa(e,t){for(;e!==null;){var n=e===t?null:Rn(e);e.remove(),e=n}}function Hi(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function cn(e,t,n=!0){var r=[];jr(e,r,!0),Gi(r,()=>{n&&De(e),t&&t()})}function Gi(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function jr(e,t,n){if(!(e.f&Be)){if(e.f^=Be,e.transitions!==null)for(const s of e.transitions)(s.is_global||n)&&t.push(s);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&Wt)!==0||(r.f&dt)!==0&&(e.f&ct)!==0;jr(r,t,o?n:!1),r=i}}}function qr(e){Vi(e,!0)}function Vi(e,t){if(e.f&Be){e.f^=Be,e.f&ye||(xe(e,Ie),Lt(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Wt)!==0||(n.f&dt)!==0;Vi(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}function Ki(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:Rn(n);t.append(n),n=i}}let Ct=!1;function ar(e){Ct=e}let jt=!1;function Yi(e){jt=e}let q=null,rt=!1;function Re(e){q=e}let Z=null;function it(e){Z=e}let Se=null;function Zi(e){q!==null&&(Se===null?Se=[e]:Se.push(e))}let Ce=null,Me=0,Ve=null;function $a(e){Ve=e}let Qi=1,Nn=0,qt=Nn;function Ji(e){qt=e}function Xi(){return++Qi}function Bn(e){var t=e.f;if(t&Ie)return!0;if(t&me&&(e.f&=~Nt),t&ft){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if(Bn(o)&&Ai(o),o.wv>e.wv)return!0}t&Qe&&de===null&&xe(e,ye)}return!1}function $i(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Se!=null&&Se.includes(e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&me?$i(o,t,!1):t===o&&(n?xe(o,Ie):o.f&ye&&xe(o,ft),Lt(o))}}function eo(e){var b;var t=Ce,n=Me,r=Ve,i=q,o=Se,s=ce,u=rt,a=qt,c=e.f;Ce=null,Me=0,Ve=null,q=c&(dt|Rt)?null:e,Se=null,rn(e.ctx),rt=!1,qt=++Nn,e.ac!==null&&(rr(()=>{e.ac.abort(tn)}),e.ac=null);try{e.f|=Dr;var v=e.fn,g=v(),f=e.deps;if(Ce!==null){var d;if(sr(e,Me),f!==null&&Me>0)for(f.length=Me+Ce.length,d=0;d<Ce.length;d++)f[Me+d]=Ce[d];else e.deps=f=Ce;if(Ct&&ir()&&e.f&Qe)for(d=Me;d<f.length;d++)((b=f[d]).reactions??(b.reactions=[])).push(e)}else f!==null&&Me<f.length&&(sr(e,Me),f.length=Me);if(An()&&Ve!==null&&!rt&&f!==null&&!(e.f&(me|ft|Ie)))for(d=0;d<Ve.length;d++)$i(Ve[d],e);return i!==null&&i!==e&&(Nn++,Ve!==null&&(r===null?r=Ve:r.push(...Ve))),e.f&xt&&(e.f^=xt),g}catch(p){return xi(p)}finally{e.f^=Dr,Ce=t,Me=n,Ve=r,q=i,Se=o,rn(s),rt=u,qt=a}}function es(e,t){let n=t.reactions;if(n!==null){var r=ta.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&t.f&me&&(Ce===null||!Ce.includes(t))&&(xe(t,ft),t.f&Qe&&(t.f^=Qe,t.f&=~Nt),Pi(t),sr(t,0))}function sr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)es(e,n[r])}function Mn(e){var t=e.f;if(!(t&ht)){xe(e,ye);var n=Z,r=Ct;Z=e,Ct=!0;try{t&ct?Ja(e):Ui(e),Fi(e);var i=eo(e);e.teardown=typeof i=="function"?i:null,e.wv=Qi;var o;Cr&&Sa&&e.f&Ie&&e.deps}finally{Ct=r,Z=n}}}async function ts(){await Promise.resolve(),Ta()}function l(e){var t=e.f,n=(t&me)!==0;if(q!==null&&!rt){var r=Z!==null&&(Z.f&ht)!==0;if(!r&&!(Se!=null&&Se.includes(e))){var i=q.deps;if(q.f&Dr)e.rv<Nn&&(e.rv=Nn,Ce===null&&i!==null&&i[Me]===e?Me++:Ce===null?Ce=[e]:Ce.includes(e)||Ce.push(e));else{(q.deps??(q.deps=[])).push(e);var o=e.reactions;o===null?e.reactions=[q]:o.includes(q)||o.push(q)}}}if(jt){if(St.has(e))return St.get(e);if(n){var s=e,u=s.v;return(!(s.f&ye)&&s.reactions!==null||no(s))&&(u=Mr(s)),St.set(s,u),u}}else n&&!(de!=null&&de.has(e))&&(s=e,Bn(s)&&Ai(s),Ct&&ir()&&!(s.f&Qe)&&to(s));if(de!=null&&de.has(e))return de.get(e);if(e.f&xt)throw e.v;return e.v}function to(e){if(e.deps!==null){e.f^=Qe;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&me&&!(t.f&Qe)&&to(t)}}function no(e){if(e.v===be)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(St.has(t)||t.f&me&&no(t))return!0;return!1}function Ln(e){var t=rt;try{return rt=!0,e()}finally{rt=t}}const ns=-7169;function xe(e,t){e.f=e.f&ns|t}const ro=new Set,Fr=new Set;function rs(e,t,n,r={}){function i(o){if(r.capture||zn.call(t,o),!o.cancelBubble)return rr(()=>n==null?void 0:n.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?on(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function _t(e,t,n,r,i){var o={capture:r,passive:i},s=rs(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&zr(()=>{t.removeEventListener(e,s,o)})}function lr(e){for(var t=0;t<e.length;t++)ro.add(e[t]);for(var n of Fr)n(e)}let io=null;function zn(e){var m;var t=this,n=t.ownerDocument,r=e.type,i=((m=e.composedPath)==null?void 0:m.call(e))||[],o=i[0]||e.target;io=e;var s=0,u=io===e&&e.__root;if(u){var a=i.indexOf(u);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var c=i.indexOf(t);if(c===-1)return;a<=c&&(s=a)}if(o=i[s]||e.target,o!==t){na(e,"currentTarget",{configurable:!0,get(){return o||n}});var v=q,g=Z;Re(null),it(null);try{for(var f,d=[];o!==null;){var b=o.assignedSlot||o.parentNode||o.host||null;try{var p=o["__"+r];p!=null&&(!o.disabled||e.target===o)&&p.call(o,e)}catch(k){f?d.push(k):f=k}if(e.cancelBubble||b===t||b===null)break;o=b}if(f){for(let k of d)queueMicrotask(()=>{throw k});throw f}}finally{e.__root=t,delete e.currentTarget,Re(v),it(g)}}}function oo(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function On(e,t){var n=Z;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function M(e,t){var n=(t&Xo)!==0,r=(t&$o)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=oo(o?e:"<!>"+e),n||(i=un(i)));var s=r||Bi?document.importNode(i,!0):i.cloneNode(!0);if(n){var u=un(s),a=s.lastChild;On(u,a)}else On(s,s);return s}}function is(e,t,n="svg"){var r=!e.startsWith("<!>"),i=`<${n}>${r?e:"<!>"+e}</${n}>`,o;return()=>{if(!o){var s=oo(i),u=un(s);o=un(u)}var a=o.cloneNode(!0);return On(a,a),a}}function ur(e,t){return is(e,t,"svg")}function Et(e=""){{var t=mt(e+"");return On(t,t),t}}function Xe(){var e=document.createDocumentFragment(),t=document.createComment(""),n=mt();return e.append(t,n),On(t,n),e}function x(e,t){e!==null&&e.before(t)}const os=["touchstart","touchmove"];function as(e){return os.includes(e)}function z(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function ss(e,t){return ls(e,t)}const dn=new Map;function ls(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:s=!0}){Ua();var u=new Set,a=g=>{for(var f=0;f<g.length;f++){var d=g[f];if(!u.has(d)){u.add(d);var b=as(d);t.addEventListener(d,zn,{passive:b});var p=dn.get(d);p===void 0?(document.addEventListener(d,zn,{passive:b}),dn.set(d,1)):dn.set(d,p+1)}}};a(Tr(ro)),Fr.add(a);var c=void 0,v=Za(()=>{var g=n??t.appendChild(mt());return Da(g,{pending:()=>{}},f=>{if(o){vt({});var d=ce;d.c=o}i&&(r.$$events=i),c=e(f,r)||{},o&&pt()}),()=>{var b;for(var f of u){t.removeEventListener(f,zn);var d=dn.get(f);--d===0?(document.removeEventListener(f,zn),dn.delete(f)):dn.set(f,d)}Fr.delete(a),g!==n&&((b=g.parentNode)==null||b.removeChild(g))}});return us.set(c,v),c}let us=new WeakMap;class ao{constructor(t,n=!0){ut(this,"anchor");O(this,$e,new Map);O(this,lt,new Map);O(this,je,new Map);O(this,Yt,new Set);O(this,Hn,!0);O(this,Gn,()=>{var t=K;if(h(this,$e).has(t)){var n=h(this,$e).get(t),r=h(this,lt).get(n);if(r)qr(r),h(this,Yt).delete(n);else{var i=h(this,je).get(n);i&&(h(this,lt).set(n,i.effect),h(this,je).delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[o,s]of h(this,$e)){if(h(this,$e).delete(o),o===t)break;const u=h(this,je).get(s);u&&(De(u.effect),h(this,je).delete(s))}for(const[o,s]of h(this,lt)){if(o===n||h(this,Yt).has(o))continue;const u=()=>{if(Array.from(h(this,$e).values()).includes(o)){var c=document.createDocumentFragment();Ki(s,c),c.append(mt()),h(this,je).set(o,{effect:s,fragment:c})}else De(s);h(this,Yt).delete(o),h(this,lt).delete(o)};h(this,Hn)||!r?(h(this,Yt).add(o),cn(s,u,!1)):u()}}});O(this,mr,t=>{h(this,$e).delete(t);const n=Array.from(h(this,$e).values());for(const[r,i]of h(this,je))n.includes(r)||(De(i.effect),h(this,je).delete(r))});this.anchor=t,W(this,Hn,n)}ensure(t,n){var r=K,i=zi();if(n&&!h(this,lt).has(t)&&!h(this,je).has(t))if(i){var o=document.createDocumentFragment(),s=mt();o.append(s),h(this,je).set(t,{effect:Ge(()=>n(s)),fragment:o})}else h(this,lt).set(t,Ge(()=>n(this.anchor)));if(h(this,$e).set(r,t),i){for(const[u,a]of h(this,lt))u===t?r.skipped_effects.delete(a):r.skipped_effects.add(a);for(const[u,a]of h(this,je))u===t?r.skipped_effects.delete(a.effect):r.skipped_effects.add(a.effect);r.oncommit(h(this,Gn)),r.ondiscard(h(this,mr))}else h(this,Gn).call(this)}}$e=new WeakMap,lt=new WeakMap,je=new WeakMap,Yt=new WeakMap,Hn=new WeakMap,Gn=new WeakMap,mr=new WeakMap;function Ur(e){ce===null&&ca(),nn&&ce.l!==null?cs(ce).m.push(e):Wn(()=>{const t=Ln(e);if(typeof t=="function")return t})}function cs(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function F(e,t,n=!1){var r=new ao(e),i=n?Wt:0;function o(s,u){r.ensure(s,u)}or(()=>{var s=!1;t((u,a=!0)=>{s=!0,o(a,u)}),s||o(!1,null)},i)}function so(e,t,n,r,i){var u;var o=(u=t.$$slots)==null?void 0:u[n],s=!1;o===!0&&(o=t.children,s=!0),o===void 0||o(e,s?()=>r:r)}function lo(e,t,n){var r=new ao(e);or(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},Wt)}function bt(e,t){qi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function uo(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=uo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ds(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=uo(e))&&(r&&(r+=" "),r+=t);return r}function fn(e){return typeof e=="object"?ds(e):e??""}function fs(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function Tt(e,t,n,r,i,o){var s=e.__className;if(s!==n||s===void 0){var u=fs(n,r);u==null?e.removeAttribute("class"):t?e.className=u:e.setAttribute("class",u),e.__className=n}return o}function co(e,t,n=!1){if(e.multiple){if(t==null)return;if(!Er(t))return ya();for(var r of e.options)r.selected=t.includes(fo(r));return}for(r of e.options){var i=fo(r);if(Fa(i,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function hs(e){var t=new MutationObserver(()=>{co(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),zr(()=>{t.disconnect()})}function fo(e){return"__value"in e?e.__value:e.value}const vs=Symbol("is custom element"),ps=Symbol("is html");function gs(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function fe(e,t,n,r){var i=ms(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[ua]=n),n==null?e.removeAttribute(t):typeof n!="string"&&ws(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ms(e){return e.__attributes??(e.__attributes={[vs]:e.nodeName.includes("-"),[ps]:e.namespaceURI===ea})}var ho=new Map;function ws(e){var t=e.getAttribute("is")||e.nodeName,n=ho.get(t);if(n)return n;ho.set(t,n=[]);for(var r,i=e,o=Element.prototype;o!==i;){r=ra(i);for(var s in r)r[s].set&&n.push(s);i=pi(i)}return n}function _s(e,t,n=t){var r=new WeakSet;Va(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(o=Hr(e)?Gr(o):o,n(o),K!==null&&r.add(K),await ts(),o!==(o=t())){var s=e.selectionStart,u=e.selectionEnd,a=e.value.length;if(e.value=o??"",u!==null){var c=e.value.length;s===u&&u===a&&c>a?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=s,e.selectionEnd=Math.min(u,c))}}}),Ln(t)==null&&e.value&&(n(Hr(e)?Gr(e.value):e.value),K!==null&&r.add(K)),Or(()=>{var i=t();if(e===document.activeElement){var o=$n??K;if(r.has(o))return}Hr(e)&&i===Gr(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function Hr(e){var t=e.type;return t==="number"||t==="range"}function Gr(e){return e===""?null:+e}function vo(e,t){return e===t||(e==null?void 0:e[Bt])===t}function bs(e={},t,n,r){return qi(()=>{var i,o;return Or(()=>{i=o,o=[],Ln(()=>{e!==n(...o)&&(t(e,...o),i&&vo(n(...i),e)&&t(null,...i))})}),()=>{on(()=>{o&&vo(n(...o),e)&&t(null,...o)})}}),e}let cr=!1;function ys(e){var t=cr;try{return cr=!1,[e(),cr]}finally{cr=t}}function Le(e,t,n,r){var j;var i=!nn||(n&Yo)!==0,o=(n&Qo)!==0,s=(n&Jo)!==0,u=r,a=!0,c=()=>(a&&(a=!1,u=s?Ln(r):r),u),v;if(o){var g=Bt in e||la in e;v=((j=$t(e,t))==null?void 0:j.set)??(g&&t in e?_=>e[t]=_:void 0)}var f,d=!1;o?[f,d]=ys(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=c(),v&&(i&&ga(),v(f)));var b;if(i?b=()=>{var _=e[t];return _===void 0?c():(a=!0,_)}:b=()=>{var _=e[t];return _!==void 0&&(u=void 0),_===void 0?u:_},i&&!(n&Zo))return b;if(v){var p=e.$$legacy;return function(_,T){return arguments.length>0?((!i||!T||p||d)&&v(T?b():_),_):b()}}var m=!1,k=(n&Ko?nr:Br)(()=>(m=!1,b()));o&&l(k);var A=Z;return function(_,T){if(arguments.length>0){const P=T?l(k):i&&o?He(_):_;return w(k,P),m=!0,u!==void 0&&(u=P),_}return jt&&m||A.f&ht?k.v:l(k)}}const po="wineater_consent",ks=["wineater_uid","uniqueUserID","sessionID"];function xs(){try{const e=window.localStorage.getItem(po);return e==="granted"||e==="denied"?e:null}catch{return null}}let Vr=Y(He(xs())),dr=Y(null);function Ss(e){w(dr,e,!0)}function go(){var e;return((e=window==null?void 0:window.wineaterData)==null?void 0:e.requireConsent)===!0?!0:l(dr)===!0}function Cs(){return l(dr)!==null&&go()&&l(Vr)===null}function mo(){var e;return((e=window==null?void 0:window.wineaterData)==null?void 0:e.tracking)===!1||l(dr)===null?!1:go()?l(Vr)==="granted":!0}function Es(){for(const e of ks){try{window.localStorage.removeItem(e)}catch{}try{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}catch{}}}const Kr=new Set;function Ts(e){return Kr.add(e),()=>Kr.delete(e)}function wo(e){w(Vr,e,!0);try{window.localStorage.setItem(po,e)}catch{}e==="denied"&&Es();for(const t of Kr)t(e)}function _o(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Yr(e,t,n){let r="";if(n){const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3),r="; expires="+i.toUTCString()}document.cookie=e+"="+(t||"")+r+"; path=/; secure; samesite=strict"}function Zr(e){const t=e+"=",n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null}function Ps(){const e="uniqueUserID";let t=Zr(e);return t||(t=_o(),Yr(e,t,365)),t}function ze(e,t,n={},r={}){const i="https://admin-api.wineater.com/api/widget-events",o=new Date().toISOString(),s=navigator.language.split("-")[1]||null,u=navigator.language.split("-")[0]||"en";if(!mo()){const f={event_type:e,store_id:t,event_time:o,data:n,meta:{...r,anonymous:!0},device_info:{device:window.innerWidth<768?"mobile":"desktop"},region:s,language:u};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f),keepalive:!0}).catch(d=>{console.debug("[wineater] anonymous event failed:",d==null?void 0:d.message)})}let a=Zr("uniqueUserID");a||(a=Ps());const c={user_agent:navigator.userAgent,screen_width:window.screen.width,screen_height:window.screen.height,language:navigator.language,platform:navigator.platform};let v=Zr("sessionID");v||(v=_o(),Yr("sessionID",v,1));const g={event_type:e,store_id:t,session_id:v,event_time:o,data:n,meta:{...r,user_id:a},device_info:c,region:s,language:u};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)}).then(f=>f.ok?f.json():f.json().then(d=>{throw new Error(d.message||"Failed to track widget event")})).catch(f=>{throw console.error("Widget event tracking error:",f),f})}function As(e){return{id:String(e.ID),appellation:e.Appellation||null,country:e.Country||null,grape:e.Grape,image:e.Image,price:Number(e.Price),producer:e.Producer||null,region:e.Region,score:e.Score?Number(e.Score):null,shortDescription:e["Short Description"]||null,store:e.Store,storeId:e.Store_id||null,tags:Array.isArray(e.Tags)?e.Tags.map(String):[],title:e.Title,type:e.Type,url:e.Url||null,vintage:e.Vintage?Number(e.Vintage):null,pairingRecommendation:e.pairing_recommendation||null,total:e.Total?Number(e.Total):null,itemId:e.item_id||null,isPromote:e.is_promote?!!e.is_promote:null,stock:e.stock?Number(e.stock):null,byTheGlass:!!e.by_the_glass,glassPrice:e.glass_price!=null?Number(e.glass_price):null}}function fr(e){return{id:String(e.id),title:String(e.title),description:String(e.description),region:String(e.region),price:Number(e.price),grape:String(e.grape),appellation:e.appellation?String(e.appellation):null,url:e.url?String(e.url):null,store:String(e.store),storeId:e.storeId?String(e.storeId):null,image:String(e.image),country:e.country?String(e.country):null,vintage:e.vintage?Number(e.vintage):null,tags:Array.isArray(e.tags)?e.tags.map(String):[],score:e.score?Number(e.score):null,total:e.total?Number(e.total):null,isPromote:e.is_promote?!!e.is_promote:null,stock:e.stock?Number(e.stock):null,distance:Number(e.distance),reason:String(e.reason),type:String(e.type),byTheGlass:!!e.by_the_glass,glassPrice:e.glass_price!=null?Number(e.glass_price):null}}function Is(e){return{recommendations:(e.recommendations||[]).filter(Boolean).map(fr),hasMore:!!e.has_more}}const jn="wineater_uid",Ds=365;let hr=null;function bo(){const e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();const t=new Uint8Array(16);if(e!=null&&e.getRandomValues)e.getRandomValues(t);else for(let r=0;r<16;r++)t[r]=Math.random()*256|0;t[6]=t[6]&15|64,t[8]=t[8]&63|128;const n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}const yo=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function ko(e){try{const t=e+"=";for(const n of document.cookie.split(";")){const r=n.trim();if(r.startsWith(t))return decodeURIComponent(r.slice(t.length))}}catch{}return null}function Rs(e,t){try{const n=new Date(Date.now()+Ds*864e5).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; expires=${n}; path=/; SameSite=Lax; Secure`}catch{}}function xo(){return mo()}Ts(e=>{e==="denied"&&(hr=null)});function Qr(){if(!xo())return null;if(hr)return hr;let e=null;try{e=window.localStorage.getItem(jn)}catch{}(!e||!yo.test(e))&&(e=ko(jn)),(!e||!yo.test(e))&&(e=bo());try{window.localStorage.setItem(jn,e)}catch{}return ko(jn)!==e&&Rs(jn,e),hr=e,e}function So(){return bo()}const Ws=2e3,Co=100;let vr=null,hn=[],qn=null,Eo=!1;function Ns(e){vr=e,!(Eo||typeof document>"u")&&(Eo=!0,document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Fn()}),window.addEventListener("pagehide",()=>void Fn()))}function vn(e){var t;if(!(!xo()||!vr)&&!(!((t=e.sku_ids)!=null&&t.length)&&e.type!=="more")){if(hn.push(e),hn.length>=Co){Fn();return}qn||(qn=setTimeout(()=>void Fn(),Ws))}}async function Fn(){if(qn&&(clearTimeout(qn),qn=null),!vr||hn.length===0)return;const e=Qr();if(!e){hn=[];return}const t=hn.splice(0,Co);try{await vr({uid:e,events:t})}catch(n){console.debug("[wineater] feedback flush failed:",n==null?void 0:n.message)}hn.length>0&&Fn()}const Bs="X-Wineater-Uid";class Ms{constructor(t,n="1"){O(this,Ne);O(this,bn,"https://api.wineater.com/");O(this,Vn);O(this,Zt);O(this,yn,!1);W(this,Vn,t),W(this,Zt,n)}async getInstantRecommendations(){try{const t=h(this,Zt)==="2"?"dish/recommendations/instant/v2":"dish/recommendations/instant",{data:n,headers:r}=await V(this,Ne,vi).call(this,t,{});return{wines:n.filter(Boolean).map(As),profileHash:r.get("X-Wineater-Profile")||null}}catch(t){throw new Error(`Error in getInstantRecommendations: ${t.message}`)}}async getWineRecommendationsSearch(t,n){try{const r=h(this,Zt)==="2"?"dish/recommendations/search/v2":"dish/recommendations/search";return(await V(this,Ne,Tn).call(this,r,n?{text:t,query_id:n}:{text:t})).filter(Boolean).map(fr)}catch(r){throw new Error(`Error in getWineRecommendations: ${r.message}`)}}async searchStream(t,n,r){const i=()=>this.getWineRecommendationsSearch(t,n);if(h(this,Zt)!=="2")return i();let o;try{o=await fetch(`${h(this,bn)}dish/recommendations/search/v2/stream`,{method:"POST",headers:V(this,Ne,hi).call(this),body:JSON.stringify(n?{text:t,query_id:n}:{text:t})})}catch{return i()}if(!o.ok||!o.body)return i();const s=o.body.getReader(),u=new TextDecoder;let a="",c=null;const v=g=>(g??[]).filter(Boolean).map(fr);try{for(;;){const{done:g,value:f}=await s.read();f&&(a+=u.decode(f,{stream:!0}));const d=a.split(`
|
|
2
|
-
`);a=g?"":d.pop()??"";for(const b of g?d.filter(Boolean):d){if(!b.trim())continue;const p=JSON.parse(b);if(p.type==="wines")c=v(p.recommendations).map(m=>({...m,reason:""})),r(c);else{if(p.type==="final")return v(p.recommendations);if(p.type==="error")return c||i()}}if(g)break}}catch{return c||i()}return c??i()}async getMoreWineRecommendations(t,n){try{const r=await V(this,Ne,Tn).call(this,"dish/recommendations/search/v2/more",{text:t,exclude_ids:n});return Is(r)}catch(r){throw new Error(`Error in getMoreWineRecommendations: ${r.message}`)}}async getSimilarWines(t){try{return(await V(this,Ne,Tn).call(this,"dish/recommendations/similar",{id:t})).filter(Boolean).map(fr)}catch(n){throw new Error(`Error in getSimilarWines: ${n.message}`)}}async postEvents(t){await V(this,Ne,Tn).call(this,"events",t,{keepalive:!0})}async getStoreConfig(){try{return await V(this,Ne,Tn).call(this,"stores/store",{})}catch(t){throw console.error("Error fetching store configuration:",t),t}}}bn=new WeakMap,Vn=new WeakMap,Zt=new WeakMap,yn=new WeakMap,Ne=new WeakSet,hi=function(){const t={"Content-Type":"application/json",Authorization:`Bearer ${h(this,Vn)}`};if(!h(this,yn)){const n=Qr();n&&(t[Bs]=n)}return t},Tn=async function(t,n,r={}){return(await V(this,Ne,vi).call(this,t,n,r)).data},vi=async function(t,n,r={}){const i=()=>({method:r.method??"POST",headers:V(this,Ne,hi).call(this),body:n===void 0?void 0:JSON.stringify(n),keepalive:r.keepalive});let o;try{o=await fetch(`${h(this,bn)}${t}`,i())}catch(a){if(h(this,yn)||!Qr())throw a;W(this,yn,!0),o=await fetch(`${h(this,bn)}${t}`,i())}const s=await o.text(),u=s?JSON.parse(s):null;if(!o.ok)throw new Error(`API call failed with status ${o.status}: ${(u==null?void 0:u.message)||"No additional error information"}`);return{data:u,headers:o.headers}};const To=((Bo=window==null?void 0:window.wineaterData)==null?void 0:Bo.CLIENT_TOKEN)||"HeUw6IXuhvz6tRuXdPEGEbj3SGQ3Q2YtEc1Z8jd41Kg9LtyPb4Epu0to31SYIadG",Jr=String(((Mo=window==null?void 0:window.wineaterData)==null?void 0:Mo.apiVersion)||"1"),pn=new Ms(To,Jr);Ns(e=>pn.postEvents(e));function Ls(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}const Xr=`${Ls(To)}:${Jr}`,Po="wineater:v1:";function $r(e,t){try{const n=window.localStorage.getItem(Po+e);if(!n)return null;const r=JSON.parse(n);return Date.now()-r.savedAt>t?null:r.value}catch{return null}}function ei(e,t){try{const n={savedAt:Date.now(),value:t};window.localStorage.setItem(Po+e,JSON.stringify(n))}catch{}}const Oe={WIDGET_INITIALIZED:"widget_initialized",WIDGET_LOADED:"widget_loaded",SEARCH_PERFORMED:"search_performed",SEARCH_RESULTS_DISPLAYED:"search_results_displayed",NO_RESULTS_FOUND:"no_results_found",WINE_CARD_HOVER:"wine_card_hover",WINE_CARD_CLICK:"wine_card_click",WINE_DETAILS_VIEWED:"wine_details_viewed",WINE_DETAILS_CLOSED:"wine_details_closed",BUY_BUTTON_CLICKED:"buy_button_clicked",SHOW_MORE_CLICKED:"show_more_clicked",SIMILAR_WINES_CLICKED:"similar_wines_clicked",FILTER_APPLIED:"filter_applied",LANGUAGE_CHANGED:"language_changed",ERROR_OCCURRED:"error_occurred",MOBILE_VIEW_ACTIVATED:"mobile_view_activated"},zs={fr:{lang:"fr",welcomeMessage:"Quel plat allez-vous déguster ? Décrivez-le-moi et je vous proposerai le vin qui l'accompagnera parfaitement.",noResultsFound:"Aucun résultat trouvé.",somethingWentWrong:"Désolé, quelque chose a mal tourné.",chatButton1:"Trouvez l'accord parfait",chatButton2:"Associez le vin",chatButton3:"Obtenez des conseils",chatTitle:"Accord Mets & Vins 🍷",chatSubtitle:"Décrivez votre plat et obtenez une recommandation en 30 secondes",inputPlaceholder:"ex., Salade de thon",sendButton:"Accorder",poweredBy:"Propulsé par",price:"Prix",region:"Région",type:"Type",reason:"Suggestion",moreInfo:"Plus d'infos",tryAgain:"Réessayer",similarWines:"Vins similaires",byTheGlass:"Au verre",winePairingIntro:"Pour ce vin, voici quelques suggestions de plats :",askForDinner:"Que voulez-vous manger ce soir?",clearChatButton:"Effacer le chat",widgetTitle:"TROUVEZ VOTRE VIN PARFAIT",widgetSubtitle:"Partagez tout ce que vous avez en tête—votre repas, humeur, budget ou occasion—et notre sommelier IA vous recommandera le vin parfait en quelques secondes",searchPlaceholder:"Entrez un mot-clé ou une description","wineDetails.reason":"Raison","wineDetails.price":"Prix","wineDetails.region":"Région","wineDetails.type":"Type","wineDetails.moreInfo":"Plus d'infos","wineDetails.code":"Code","wineDetails.buy":"Acheter",searchButton:"Rechercher",priceRange:"Gamme de prix",wineColor:"Couleur du vin",intensity:"Intensité",red:"Rouge",white:"Blanc",rose:"Rosé",light:"Léger",medium:"Moyen",full:"Puissant",barTitle:"Sélection du bar",barSubtitle:"Choisissez vos plats ci-dessous et cliquez sur «Envoyer»",barSendButton:"Envoyer",barResetButton:"Réinitialiser",barName:"Nom du bar",barNotesPlaceholder:"Entrez vos souhaits ici...",placeholderSuggestions:["Vin pour les pâtes","Parfait avec du poisson","Recommandé pour une soirée"],headerLine1:"Partagez tout ce qui vous passe par la tête —",headerLine2:"— et obtenez des recommandations de vin parfait en quelques secondes",headerMeal:"repas",headerMood:"humeur",headerBudget:"budget",headerOccasion:"occasion",headerOr:"ou",errorMessage:"Une erreur est survenue. Veuillez réessayer plus tard.",noResultsMessage:"Aucun résultat trouvé pour votre recherche. Veuillez essayer une autre requête.",ai_sommelier:"AI sommelier",consentText:"L'assistant vin enregistre un identifiant anonyme sur cet appareil pour apprendre vos goûts et améliorer ses recommandations. Vous pouvez l'utiliser sans accepter.",consentAccept:"Accepter",consentDecline:"Refuser",consentPrivacy:"Politique de confidentialité"},es:{lang:"es",welcomeMessage:"¿Qué vas a comer? Cuéntame tu plato y te recomendaré el maridaje perfecto.",noResultsFound:"No se encontraron resultados.",somethingWentWrong:"Lo sentimos, algo salió mal.",chatButton1:"Encuentra tu maridaje",chatButton2:"Combina vino ya",chatButton3:"Recibe asesoría ahora",chatTitle:"Maridaje de Vinos 🍷",chatSubtitle:"Describe tu comida y obtén una recomendación en 30 segundos",inputPlaceholder:"ej., Ensalada de atún",sendButton:"Combinar",poweredBy:"Desarrollado por",price:"Precio",region:"Región",type:"Tipo",reason:"Sugerencia",moreInfo:"Más info",tryAgain:"Probar otra vez",similarWines:"Vinos similares",byTheGlass:"Por copa",winePairingIntro:"Para este vino, aquí tienes algunas sugerencias de platos:",askForDinner:"¿Qué te gustaría cenar?",clearChatButton:"Limpiar el chat",widgetTitle:"ENCUENTRA TU VINO PERFECTO",widgetSubtitle:"Comparte cualquier cosa que tengas en mente—tu comida, estado de ánimo, presupuesto o evento—y nuestro sommelier de IA te recomendará el vino perfecto en segundos",searchPlaceholder:"Escribe una palabra clave o descripción","wineDetails.reason":"Razón","wineDetails.price":"Precio","wineDetails.region":"Región","wineDetails.type":"Tipo","wineDetails.code":"Código","wineDetails.moreInfo":"Más información","wineDetails.buy":"Comprar",searchButton:"Buscar",priceRange:"Rango de precios",wineColor:"Color del vino",intensity:"Intensidad",red:"Tinto",white:"Blanco",rose:"Rosado",light:"Ligero",medium:"Medio",full:"Intenso",barTitle:"Platos de Bar",barSubtitle:"Selecciona de la lista y presiona «Enviar»",barSendButton:"Enviar",barResetButton:"Reiniciar",barName:"Nombre del bar",barNotesPlaceholder:"Agrega tus comentarios aquí...",placeholderSuggestions:["Vino para pasta","Perfecto con pescado","Recomendado para una fiesta"],headerLine1:"Comparte cualquier cosa que tengas en mente —",headerLine2:"— y obtén recomendaciones del vino perfecto en cuestión de segundos",headerMeal:"comida",headerMood:"estado de ánimo",headerBudget:"presupuesto",headerOccasion:"ocasión",headerOr:"o",errorMessage:"Algo salió mal. Por favor, inténtalo de nuevo más tarde.",noResultsMessage:"No se encontraron resultados para tu búsqueda. Por favor, intenta con otra consulta.",ai_sommelier:"AI sommelier",consentText:"El asistente de vinos guarda un identificador anónimo en este dispositivo para conocer tus gustos y mejorar las recomendaciones. Puedes usarlo sin aceptar.",consentAccept:"Aceptar",consentDecline:"Rechazar",consentPrivacy:"Política de privacidad"},en:{lang:"en",welcomeMessage:"What are you planning to eat? Share your dish and I'll recommend the perfect wine pairing for your meal.",noResultsFound:"No results found.",somethingWentWrong:"Sorry, something went wrong.",chatButton1:"Find Your Pairing",chatButton2:"Pair Wine Now",chatButton3:"Get Wine Advice",chatTitle:"Wine Pairing Assistant 🍷",chatSubtitle:"Describe your meal and get a recommendation in 30 seconds",inputPlaceholder:"e.g., Tuna salad",sendButton:"Match",poweredBy:"Powered by",price:"Price",region:"Region",type:"Type",reason:"Suggestion",moreInfo:"More info",tryAgain:"Try again",similarWines:"Similar wines",byTheGlass:"By the glass",winePairingIntro:"For this wine, here are some suggested dishes:",askForDinner:"What would you like to have for dinner?",clearChatButton:"Clear Chat",widgetTitle:"FIND YOUR PERFECT WINE",widgetSubtitle:"Share anything on your mind—your meal, mood, budget, or occasion—and our AI sommelier will recommend the perfect wine in seconds",searchPlaceholder:"Enter a keyword or description","wineDetails.price":"Price","wineDetails.region":"Region","wineDetails.type":"Type","wineDetails.moreInfo":"More info","wineDetails.reason":"Reason","wineDetails.code":"Code","wineDetails.buy":"Buy",searchButton:"Search",priceRange:"Price Range",wineColor:"Wine Color",intensity:"Intensity",red:"Red",white:"White",rose:"Rosé",light:"Light",medium:"Medium",full:"Full",barTitle:"Bar Dishes",barSubtitle:"Select dishes below and click 'Send'",barSendButton:"Send",barResetButton:"Reset",barName:"Bar Name",barNotesPlaceholder:"Add your wishes here...",placeholderSuggestions:["Wine for pasta","Perfect with fish","Recommended for a party"],headerLine1:"Share anything on your mind —",headerLine2:"— and get recommendations of the perfect wine in seconds",headerMeal:"meal",headerMood:"mood",headerBudget:"budget",headerOccasion:"occasion",headerOr:"or",errorMessage:"Something went wrong. Please try again later.",noResultsMessage:"No results found for your search. Please try a different query.",ai_sommelier:"AI sommelier",consentText:"The wine assistant stores an anonymous identifier on this device to learn your taste and improve recommendations. You can use it without accepting.",consentAccept:"Accept",consentDecline:"Decline",consentPrivacy:"Privacy policy"},sr:{lang:"sr",welcomeMessage:"Šta planirate da jedete? Podelite svoje jelo i preporučiću vam savršeno vino uz obrok.",noResultsFound:"Nema rezultata.",somethingWentWrong:"Izvinite, nešto je pošlo po zlu.",chatButton1:"Pronađi vino",chatButton2:"Upari vino sada",chatButton3:"Zatraži preporuku",chatTitle:"Asistent za uparivanje vina 🍷",chatSubtitle:"Opišite svoj obrok i dobijte preporuku za 30 sekundi",inputPlaceholder:"npr. Tuna salata",sendButton:"Upari",poweredBy:"Pokreće",price:"Cena",region:"Regija",type:"Tip",reason:"Preporuka",moreInfo:"Više informacija",tryAgain:"Pokušaj ponovo",similarWines:"Slična vina",byTheGlass:"Na čašu",winePairingIntro:"Za ovo vino, preporučuju se sledeća jela:",askForDinner:"Šta biste želeli za večeru?",clearChatButton:"Obriši razgovor",widgetTitle:"PRONAĐITE SAVRŠENO VINO",widgetSubtitle:"Podelite bilo šta — obrok, raspoloženje, budžet ili priliku — i naš AI somelijer će vam za par sekundi preporučiti vino",searchPlaceholder:"Unesite ključnu reč ili opis","wineDetails.price":"Cena","wineDetails.region":"Regija","wineDetails.type":"Tip","wineDetails.moreInfo":"Više informacija","wineDetails.reason":"Razlog","wineDetails.code":"Šifra","wineDetails.buy":"Kupi",searchButton:"Pretraga",priceRange:"Cenovni raspon",wineColor:"Boja vina",intensity:"Intenzitet",red:"Crveno",white:"Belo",rose:"Roze",light:"Lako",medium:"Srednje",full:"Puno",barTitle:"Jela iz bara",barSubtitle:"Izaberite jela ispod i kliknite 'Pošalji'",barSendButton:"Pošalji",barResetButton:"Resetuj",barName:"Naziv bara",barNotesPlaceholder:"Dodajte svoje želje ovde...",placeholderSuggestions:["Vino uz pastu","Savršeno uz ribu","Preporuka za žurku"],headerLine1:"Podelite bilo šta što vam je na umu —",headerLine2:"— i dobijte preporuke za savršeno vino za par sekundi",headerMeal:"obrok",headerMood:"raspoloženje",headerBudget:"budžet",headerOccasion:"prilika",headerOr:"ili",errorMessage:"Nešto je pošlo po zlu. Molimo pokušajte ponovo kasnije.",noResultsMessage:"Nema rezultata za vašu pretragu. Molimo pokušajte sa drugačijim upitom.",ai_sommelier:"AI sommelier",consentText:"Vinski asistent čuva anonimni identifikator na ovom uređaju kako bi upoznao vaš ukus i poboljšao preporuke. Možete ga koristiti i bez prihvatanja.",consentAccept:"Prihvati",consentDecline:"Odbij",consentPrivacy:"Politika privatnosti"},de:{lang:"de",welcomeMessage:"Was möchten Sie essen? Beschreiben Sie Ihr Gericht und ich empfehle Ihnen den perfekten Wein dazu.",noResultsFound:"Keine Ergebnisse gefunden.",somethingWentWrong:"Entschuldigung, etwas ist schief gelaufen.",chatButton1:"Finde Dein Pairing",chatButton2:"Wein jetzt wählen",chatButton3:"Erhalte Weinberatung",chatTitle:"Wein & Speisen 🍷",chatSubtitle:"Beschreiben Sie Ihr Gericht und erhalten Sie in 30 Sekunden eine Empfehlung",inputPlaceholder:"z.B., Thunfischsalat",sendButton:"Kombinieren",poweredBy:"Unterstützt von",price:"Preis",region:"Region",type:"Typ",reason:"Anregung",moreInfo:"Mehr Info",tryAgain:"Nochmal versuchen",similarWines:"Ähnliche Weine",byTheGlass:"Glasweise",winePairingIntro:"Für diesen Wein gibt es folgende Essensvorschläge:",askForDinner:"Was möchten Sie zum Abendessen essen?",clearChatButton:"Chat löschen",widgetTitle:"FINDEN SIE IHREN PERFEKTEN WEIN",widgetSubtitle:"Teilen Sie alles, was Ihnen in den Sinn kommt—Ihre Mahlzeit, Stimmung, Ihr Budget oder Anlass—und unser KI-Sommelier empfiehlt Ihnen in Sekunden den perfekten Wein",placeholderSuggestions:["Wein für Pasta","Perfekt zu Fisch","Empfohlen für eine Party"],searchPlaceholder:"Geben Sie ein Stichwort oder eine Beschreibung ein","wineDetails.price":"Preis","wineDetails.region":"Region","wineDetails.type":"Typ","wineDetails.moreInfo":"Mehr Info","wineDetails.reason":"Grund","wineDetails.code":"Code","wineDetails.buy":"Kaufen",searchButton:"Suche",priceRange:"Preisspanne",wineColor:"Weinfarbe",intensity:"Intensität",red:"Rot",white:"Weiß",rose:"Rosé",light:"Leicht",medium:"Mittel",full:"Voll",barTitle:"Bar-Auswahl",barSubtitle:"Wählen Sie Ihre Gerichte und klicken Sie auf 'Senden'",barSendButton:"Senden",barResetButton:"Zurücksetzen",barName:"Name der Bar",headerLine1:"Teilen Sie alles, was Ihnen durch den Kopf geht —",headerLine2:"— und erhalten Sie in Sekundenschnelle Empfehlungen für den perfekten Wein",headerMeal:"Mahlzeit",headerMood:"Stimmung",headerBudget:"Budget",headerOccasion:"Anlass",headerOr:"oder",errorMessage:"Etwas ist schief gelaufen. Bitte versuchen Sie es später erneut.",noResultsMessage:"Keine Ergebnisse für Ihre Suche gefunden. Bitte versuchen Sie es mit einer anderen Anfrage.",ai_sommelier:"AI sommelier",consentText:"Der Weinassistent speichert eine anonyme Kennung auf diesem Gerät, um Ihren Geschmack kennenzulernen und Empfehlungen zu verbessern. Sie können ihn auch ohne Zustimmung nutzen.",consentAccept:"Akzeptieren",consentDecline:"Ablehnen",consentPrivacy:"Datenschutzerklärung"},ukr:{lang:"ukr",welcomeMessage:"Що ви збираєтесь їсти? Опишіть свою страву, і я порекомендую вам ідеальне вино.",noResultsFound:"Результатів не знайдено.",somethingWentWrong:"Вибачте, щось пішло не так.",chatButton1:"Знайти ідеальне поєднання",chatButton2:"Підібрати вино",chatButton3:"Отримати пораду",chatTitle:"Сомельє-помічник 🍷",chatSubtitle:"Опишіть свою страву і отримайте рекомендацію за 30 секунд",inputPlaceholder:"наприклад, Тунець із салатом",sendButton:"Підібрати",poweredBy:"Розроблено на основі",price:"Ціна",region:"Регіон",type:"Тип",reason:"Рекомендація",moreInfo:"Докладніше",tryAgain:"Спробувати ще",similarWines:"Схожі вина",byTheGlass:"На келих",winePairingIntro:"До цього вина підходять такі страви:",askForDinner:"Що ви хочете на вечерю?",clearChatButton:"Очистити чат",widgetTitle:"ЗНАЙДІТЬ ІДЕАЛЬНЕ ВИНО",widgetSubtitle:"Поділіться тим, що у вас на думці—їжа, настрій, бюджет чи подія—і наш AI-сомельє порекомендує вам ідеальне вино за секунди",searchPlaceholder:"Введіть ключове слово або опис","wineDetails.reason":"Причина","wineDetails.price":"Ціна","wineDetails.region":"Регіон","wineDetails.type":"Тип","wineDetails.moreInfo":"Докладніше","wineDetails.code":"Код","wineDetails.buy":"Купити",searchButton:"Пошук",priceRange:"Діапазон цін",wineColor:"Колір вина",intensity:"Інтенсивність",red:"Червоне",white:"Біле",rose:"Рожеве",light:"Легке",medium:"Середнє",full:"Повне",barTitle:"Закуски до вина",barSubtitle:"Виберіть страви нижче та натисніть «Надіслати»",barSendButton:"Надіслати",barResetButton:"Скинути",barName:"Назва бару",barNotesPlaceholder:"Додайте ваші побажання тут...",placeholderSuggestions:["Вино до пасти","Ідеально до риби","Рекомендуємо для вечірки"],headerLine1:"Поділіться будь-якими вашими думками —",headerLine2:"— і отримайте рекомендації щодо ідеального вина за секунди",headerMeal:"страва",headerMood:"настрій",headerBudget:"бюджет",headerOccasion:"подія",headerOr:"або",errorMessage:"Щось пішло не так. Будь ласка, спробуйте пізніше.",noResultsMessage:"За вашим запитом не знайдено результатів. Спробуйте інший запит.",ai_sommelier:"AI sommelier",consentText:"Винний помічник зберігає на цьому пристрої анонімний ідентифікатор, щоб враховувати ваш смак і покращувати рекомендації. Користуватися можна й без згоди.",consentAccept:"Прийняти",consentDecline:"Відхилити",consentPrivacy:"Політика конфіденційності"},ru:{lang:"ru",welcomeMessage:"Что вы планируете поесть? Напишите ваше блюдо, и я подберу идеальное вино к нему.",noResultsFound:"Результаты не найдены.",somethingWentWrong:"Извините, что-то пошло не так.",chatButton1:"Найти сочетание",chatButton2:"Подобрать вино",chatButton3:"Получить совет",chatTitle:"Ассистент по подбору вина 🍷",chatSubtitle:"Опишите ваше блюдо и получите рекомендацию за 30 секунд",inputPlaceholder:"например, Тунец с салатом",sendButton:"Подобрать",poweredBy:"Powered by",price:"Цена",region:"Регион",type:"Тип",reason:"Рекомендация",moreInfo:"Подробнее",tryAgain:"Попробовать ещё",similarWines:"Похожие вина",byTheGlass:"По бокалам",winePairingIntro:"К этому вину подходят следующие блюда:",askForDinner:"Что бы вы хотели на ужин?",clearChatButton:"Очистить чат",widgetTitle:"НАЙДИТЬ ИДЕАЛЬНОЕ ВИНО",widgetSubtitle:"Поделитесь вашими предпочтениями — блюдом, настроением, бюджетом или случаем — и наш AI-сомелье подберёт идеальное вино за секунды",searchPlaceholder:"Введите ключевое слово или описание","wineDetails.price":"Цена","wineDetails.region":"Регион","wineDetails.type":"Тип","wineDetails.moreInfo":"Подробнее","wineDetails.reason":"Причина","wineDetails.code":"Код","wineDetails.buy":"Купить",searchButton:"Поиск",priceRange:"Диапазон цен",wineColor:"Цвет вина",intensity:"Интенсивность",red:"Красное",white:"Белое",rose:"Розовое",light:"Лёгкое",medium:"Среднее",full:"Полное",barTitle:"Закуски к вину",barSubtitle:"Выберите блюда ниже и нажмите 'Отправить'",barSendButton:"Отправить",barResetButton:"Сбросить",barName:"Название бара",barNotesPlaceholder:"Добавьте ваши пожелания здесь...",placeholderSuggestions:["Вино для пасты","Идеально к рыбе","Рекомендуем для вечеринки"],headerLine1:"Поделитесь любыми вашими мыслями —",headerLine2:"— и получите рекомендации по идеальному вину за считанные секунды",headerMeal:"блюдо",headerMood:"настроение",headerBudget:"бюджет",headerOccasion:"случай",headerOr:"или",errorMessage:"Что-то пошло не так. Пожалуйста, попробуйте позже.",noResultsMessage:"По вашему запросу не найдено результатов. Попробуйте другой запрос.",ai_sommelier:"AI sommelier",consentText:"Винный помощник сохраняет на этом устройстве анонимный идентификатор, чтобы учитывать ваш вкус и улучшать рекомендации. Пользоваться можно и без согласия.",consentAccept:"Принять",consentDecline:"Отклонить",consentPrivacy:"Политика конфиденциальности"},kk:{lang:"kk",welcomeMessage:"Сіз не жегіңіз келеді? Тағамыңызды сипаттаңыз, мен оған керемет шарап ұсынамын.",noResultsFound:"Нәтижелер табылмады.",somethingWentWrong:"Кешіріңіз, бірдеңе дұрыс болмады.",chatButton1:"Сәйкестік табу",chatButton2:"Шарап таңдау",chatButton3:"Кеңес алу",chatTitle:"Шарап таңдаушы көмекші 🍷",chatSubtitle:"Тағамыңызды сипаттаңыз — 30 секундта ұсыныс алыңыз",inputPlaceholder:"мысалы, тунец салатымен",sendButton:"Таңдау",poweredBy:"Powered by",price:"Бағасы",region:"Өңір",type:"Түрі",reason:"Ұсыныс",moreInfo:"Толығырақ",tryAgain:"Қайта көру",similarWines:"Ұқсас шараптар",byTheGlass:"Бокалмен",winePairingIntro:"Бұл шарапқа келесі тағамдар сәйкес келеді:",askForDinner:"Кешкі асқа не қалайсыз?",clearChatButton:"Чатты тазалау",widgetTitle:"КЕРЕМЕТ ШАРАПТЫ ТАБЫҢЫЗ",widgetSubtitle:"Таңдауларыңызды бөлісіңіз — тағам, көңіл-күй, бюджет немесе жағдай — және біздің AI-сомелье сізге бірнеше секундта шарап ұсынады",searchPlaceholder:"Кілт сөзді немесе сипаттаманы енгізіңіз","wineDetails.price":"Бағасы","wineDetails.region":"Өңір","wineDetails.type":"Түрі","wineDetails.moreInfo":"Толығырақ","wineDetails.reason":"Себебі","wineDetails.code":"Код","wineDetails.buy":"Сатып алу",searchButton:"Іздеу",priceRange:"Баға диапазоны",wineColor:"Шарап түсі",intensity:"Қанықтылық",red:"Қызыл",white:"Ақ",rose:"Розалық",light:"Жеңіл",medium:"Орташа",full:"Толық",barTitle:"Шарапқа арналған тіскебасарлар",barSubtitle:"Төмендегі тағамдарды таңдаңыз және 'Жіберу' батырмасын басыңыз",barSendButton:"Жіберу",barResetButton:"Қалпына келтіру",barName:"Бар атауы",barNotesPlaceholder:"Мұнда өз тілектеріңізді жазыңыз...",placeholderSuggestions:["Пастаға арналған шарап","Балыққа тамаша үйлеседі","Кешке ұсынуға болады"],headerLine1:"Ойларыңызбен бөлісіңіз —",headerLine2:"— және бірнеше секундта мінсіз шарап ұсынысын алыңыз",headerMeal:"тағам",headerMood:"көңіл-күй",headerBudget:"бюджет",headerOccasion:"жағдай",headerOr:"немесе",errorMessage:"Бірдеңе дұрыс болмады. Кейінірек қайта көріңіз.",noResultsMessage:"Іздеуіңізге сәйкес нәтиже табылмады. Басқа сұрау қолданып көріңіз.",ai_sommelier:"AI sommelier",consentText:"Шарап көмекшісі сіздің талғамыңызды ескеріп, ұсыныстарды жақсарту үшін осы құрылғыда анонимді идентификатор сақтайды. Келісімсіз де пайдалана аласыз.",consentAccept:"Қабылдау",consentDecline:"Бас тарту",consentPrivacy:"Құпиялылық саясаты"},pt:{lang:"pt",welcomeMessage:"O que você planeja comer? Descreva seu prato e eu recomendarei a harmonização perfeita.",noResultsFound:"Nenhum resultado encontrado.",somethingWentWrong:"Desculpe, algo deu errado.",chatButton1:"Encontre sua harmonização",chatButton2:"Harmonizar vinho agora",chatButton3:"Receber conselho de vinho",chatTitle:"Assistente de Harmonização de Vinhos 🍷",chatSubtitle:"Descreva sua refeição e receba uma recomendação em 30 segundos",inputPlaceholder:"ex., Salada de atum",sendButton:"Harmonizar",poweredBy:"Desenvolvido por",price:"Preço",region:"Região",type:"Tipo",reason:"Sugestão",moreInfo:"Mais informações",tryAgain:"Tentar de novo",similarWines:"Vinhos semelhantes",byTheGlass:"Por taça",winePairingIntro:"Para este vinho, aqui estão algumas sugestões de pratos:",askForDinner:"O que você gostaria de jantar?",clearChatButton:"Limpar chat",widgetTitle:"ENCONTRE SEU VINHO PERFEITO",widgetSubtitle:"Compartilhe o que tiver em mente — sua refeição, humor, orçamento ou ocasião — e nosso sommelier de IA recomendará o vinho perfeito em segundos",searchPlaceholder:"Digite uma palavra-chave ou descrição","wineDetails.reason":"Motivo","wineDetails.price":"Preço","wineDetails.region":"Região","wineDetails.type":"Tipo","wineDetails.moreInfo":"Mais informações","wineDetails.code":"Código","wineDetails.buy":"Comprar",searchButton:"Pesquisar",priceRange:"Faixa de preço",wineColor:"Cor do vinho",intensity:"Intensidade",red:"Tinto",white:"Branco",rose:"Rosé",light:"Leve",medium:"Médio",full:"Encorpado",barTitle:"Pratos do bar",barSubtitle:"Selecione os pratos abaixo e clique em 'Enviar'",barSendButton:"Enviar",barResetButton:"Resetar",barName:"Nome do bar",barNotesPlaceholder:"Adicione seus desejos aqui...",placeholderSuggestions:["Vinho para massa","Perfeito com peixe","Recomendado para uma festa"],headerLine1:"Compartilhe o que tiver em mente —",headerLine2:"— e receba recomendações do vinho perfeito em segundos",headerMeal:"refeição",headerMood:"humor",headerBudget:"orçamento",headerOccasion:"ocasião",headerOr:"ou",errorMessage:"Algo deu errado. Por favor, tente novamente mais tarde.",noResultsMessage:"Nenhum resultado encontrado para sua pesquisa. Por favor, tente uma consulta diferente.",ai_sommelier:"AI sommelier",consentText:"O assistente de vinhos guarda um identificador anónimo neste dispositivo para conhecer o seu gosto e melhorar as recomendações. Pode usá-lo sem aceitar.",consentAccept:"Aceitar",consentDecline:"Recusar",consentPrivacy:"Política de privacidade"}};function Os(e){return{id:String(e.id),lang:e.lang,available_languages:e.available_languages?e.available_languages:[e.lang],open_ai_key:e.open_ai_key??null,currency:e.currency,title:e.title,requires_cookie_consent:e.requires_cookie_consent===!0}}const js={0:{logoUrl:null,brandColor:"#7B2BEB"},29:{logoUrl:"https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media/plou_logo.jpg",brandColor:"#e6c6bb"},25:{logoUrl:null,brandColor:"#000000",wineaterColor:"#000000",buttonUppercase:!0,customCss:`
|
|
1
|
+
(function($,ee){typeof exports=="object"&&typeof module<"u"?module.exports=ee():typeof define=="function"&&define.amd?define(ee):($=typeof globalThis<"u"?globalThis:$||self,$.WineaterChatbot=ee())})(this,function(){"use strict";var xc=Object.defineProperty;var Ho=$=>{throw TypeError($)};var kc=($,ee,de)=>ee in $?xc($,ee,{enumerable:!0,configurable:!0,writable:!0,value:de}):$[ee]=de;var ht=($,ee,de)=>kc($,typeof ee!="symbol"?ee+"":ee,de),ui=($,ee,de)=>ee.has($)||Ho("Cannot "+de);var h=($,ee,de)=>(ui($,ee,"read from private field"),de?de.call($):ee.get($)),U=($,ee,de)=>ee.has($)?Ho("Cannot add the same private member more than once"):ee instanceof WeakSet?ee.add($):ee.set($,de),N=($,ee,de,In)=>(ui($,ee,"write to private field"),In?In.call($,de):ee.set($,de),de),Z=($,ee,de)=>(ui($,ee,"access private method"),de);var zo,_n,yn,Kt,Yt,Hn,bn,xn,pe,di,tn,fi,Vo,Go,Ke,Ye,ri,ct,Zt,ut,Ze,We,dt,xt,Dt,Qt,Rt,Jt,Wt,mr,_e,Sc,Cc,hi,kr,Sr,vi,$e,ft,je,Xt,Vn,Gn,wr,kn,Kn,$t,Sn,Me,pi,An,gi,Lo,Oo;const $="5";typeof window<"u"&&((zo=window.__svelte??(window.__svelte={})).v??(zo.v=new Set)).add($);const ee=1,de=2,In=4,Ko=8,Yo=16,Zo=1,Qo=2,Jo=4,Xo=8,$o=16,mi=1,ea=2,be=Symbol(),ta="http://www.w3.org/1999/xhtml",Cr=!1;var Er=Array.isArray,na=Array.prototype.indexOf,Tr=Array.from,ra=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,ia=Object.getOwnPropertyDescriptors,oa=Object.prototype,aa=Array.prototype,wi=Object.getPrototypeOf,_i=Object.isExtensible;function sa(e){for(var t=0;t<e.length;t++)e[t]()}function yi(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function la(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const ye=2,Pr=4,Ar=8,vt=16,pt=32,zt=64,$n=128,Qe=512,xe=1024,Ie=2048,gt=4096,Be=8192,mt=16384,Ir=32768,Lt=65536,bi=1<<17,xi=1<<18,rn=1<<19,ca=1<<20,Ot=32768,Dr=1<<21,Rr=1<<22,St=1<<23,jt=Symbol("$state"),ua=Symbol("legacy props"),da=Symbol(""),on=new class extends Error{constructor(){super(...arguments);ht(this,"name","StaleReactionError");ht(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function fa(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ha(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function va(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function pa(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ga(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ma(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function wa(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function _a(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ya(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ba(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xa(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ka(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Sa(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function ki(e){return e===this.v}function Ca(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Si(e){return!Ca(e,this.v)}let an=!1,Ea=!1;function Ta(){an=!0}let fe=null;function sn(e){fe=e}function nt(e,t=!1,n){fe={p:fe,i:!1,c:null,e:null,s:e,x:null,l:an&&!t?{s:null,u:null,$:[]}:null}}function rt(e){var t=fe,n=t.e;if(n!==null){t.e=null;for(var r of n)Ui(r)}return e!==void 0&&(t.x=e),t.i=!0,fe=t.p,e??{}}function Dn(){return!an||fe!==null&&fe.l===null}let qt=[];function Ci(){var e=qt;qt=[],sa(e)}function ln(e){if(qt.length===0&&!Rn){var t=qt;queueMicrotask(()=>{t===qt&&Ci()})}qt.push(e)}function Pa(){for(;qt.length>0;)Ci()}function Ei(e){var t=X;if(t===null)return V.f|=St,e;if(t.f&Ir)cn(e,t);else{if(!(t.f&$n))throw e;t.b.error(e)}}function cn(e,t){for(;t!==null;){if(t.f&$n)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const er=new Set;let Q=null,tr=null,he=null,Ue=[],nr=null,Wr=!1,Rn=!1;const gr=class gr{constructor(){U(this,pe);ht(this,"committed",!1);ht(this,"current",new Map);ht(this,"previous",new Map);U(this,_n,new Set);U(this,yn,new Set);U(this,Kt,0);U(this,Yt,0);U(this,Hn,null);U(this,bn,[]);U(this,xn,[]);ht(this,"skipped_effects",new Set);ht(this,"is_fork",!1)}is_deferred(){return this.is_fork||h(this,Yt)>0}process(t){var r;Ue=[],tr=null,this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of t)Z(this,pe,di).call(this,i,n);this.is_fork||Z(this,pe,Vo).call(this),this.is_deferred()?(Z(this,pe,tn).call(this,n.effects),Z(this,pe,tn).call(this,n.render_effects),Z(this,pe,tn).call(this,n.block_effects)):(tr=this,Q=null,Pi(n.render_effects),Pi(n.effects),tr=null,(r=h(this,Hn))==null||r.resolve()),he=null}capture(t,n){this.previous.has(t)||this.previous.set(t,n),t.f&St||(this.current.set(t,t.v),he==null||he.set(t,t.v))}activate(){Q=this,this.apply()}deactivate(){Q===this&&(Q=null,he=null)}flush(){if(this.activate(),Ue.length>0){if(Ti(),Q!==null&&Q!==this)return}else h(this,Kt)===0&&this.process([]);this.deactivate()}discard(){for(const t of h(this,yn))t(this);h(this,yn).clear()}increment(t){N(this,Kt,h(this,Kt)+1),t&&N(this,Yt,h(this,Yt)+1)}decrement(t){N(this,Kt,h(this,Kt)-1),t&&N(this,Yt,h(this,Yt)-1),this.revive()}revive(){for(const t of h(this,bn))ke(t,Ie),Ft(t);for(const t of h(this,xn))ke(t,gt),Ft(t);N(this,bn,[]),N(this,xn,[]),this.flush()}oncommit(t){h(this,_n).add(t)}ondiscard(t){h(this,yn).add(t)}settled(){return(h(this,Hn)??N(this,Hn,yi())).promise}static ensure(){if(Q===null){const t=Q=new gr;er.add(Q),Rn||gr.enqueue(()=>{Q===t&&t.flush()})}return Q}static enqueue(t){ln(t)}apply(){}};_n=new WeakMap,yn=new WeakMap,Kt=new WeakMap,Yt=new WeakMap,Hn=new WeakMap,bn=new WeakMap,xn=new WeakMap,pe=new WeakSet,di=function(t,n){var v;t.f^=xe;for(var r=t.first;r!==null;){var i=r.f,o=(i&(pt|zt))!==0,l=o&&(i&xe)!==0,c=l||(i&Be)!==0||this.skipped_effects.has(r);if(r.f&$n&&((v=r.b)!=null&&v.is_pending())&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!c&&r.fn!==null){o?r.f^=xe:i&Pr?n.effects.push(r):zn(r)&&(r.f&vt&&n.block_effects.push(r),Ln(r));var s=r.first;if(s!==null){r=s;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)u===n.effect&&(Z(this,pe,tn).call(this,n.effects),Z(this,pe,tn).call(this,n.render_effects),Z(this,pe,tn).call(this,n.block_effects),n=n.parent),r=u.next,u=u.parent}},tn=function(t){for(const n of t)(n.f&Ie?h(this,bn):h(this,xn)).push(n),Z(this,pe,fi).call(this,n.deps),ke(n,xe)},fi=function(t){if(t!==null)for(const n of t)!(n.f&ye)||!(n.f&Ot)||(n.f^=Ot,Z(this,pe,fi).call(this,n.deps))},Vo=function(){if(h(this,Yt)===0){for(const t of h(this,_n))t();h(this,_n).clear()}h(this,Kt)===0&&Z(this,pe,Go).call(this)},Go=function(){var o;if(er.size>1){this.previous.clear();var t=he,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of er){if(l===this){n=!1;continue}const c=[];for(const[u,v]of this.current){if(l.current.has(u))if(n&&v!==l.current.get(u))l.current.set(u,v);else continue;c.push(u)}if(c.length===0)continue;const s=[...l.current.keys()].filter(u=>!this.current.has(u));if(s.length>0){var i=Ue;Ue=[];const u=new Set,v=new Map;for(const g of c)Ai(g,s,u,v);if(Ue.length>0){Q=l,l.apply();for(const g of Ue)Z(o=l,pe,di).call(o,g,r);l.deactivate()}Ue=i}}Q=null,he=t}this.committed=!0,er.delete(this)};let wt=gr;function Aa(e){var t=Rn;Rn=!0;try{for(var n;;){if(Pa(),Ue.length===0&&(Q==null||Q.flush(),Ue.length===0))return nr=null,n;Ti()}}finally{Rn=t}}function Ti(){var e=Tt;Wr=!0;var t=null;try{var n=0;for(lr(!0);Ue.length>0;){var r=wt.ensure();if(n++>1e3){var i,o;Ia()}r.process(Ue),Et.clear()}}finally{Wr=!1,lr(e),nr=null}}function Ia(){try{ma()}catch(e){cn(e,nr)}}let Je=null;function Pi(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(mt|Be))&&zn(r)&&(Je=new Set,Ln(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Ki(r):r.fn=null),(Je==null?void 0:Je.size)>0)){Et.clear();for(const i of Je){if(i.f&(mt|Be))continue;const o=[i];let l=i.parent;for(;l!==null;)Je.has(l)&&(Je.delete(l),o.push(l)),l=l.parent;for(let c=o.length-1;c>=0;c--){const s=o[c];s.f&(mt|Be)||Ln(s)}}Je.clear()}}Je=null}}function Ai(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;o&ye?Ai(i,t,n,r):o&(Rr|vt)&&!(o&Ie)&&Ii(i,t,r)&&(ke(i,Ie),Ft(i))}}function Ii(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&ye&&Ii(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Ft(e){for(var t=nr=e;t.parent!==null;){t=t.parent;var n=t.f;if(Wr&&t===X&&n&vt&&!(n&xi))return;if(n&(zt|pt)){if(!(n&xe))return;t.f^=xe}}Ue.push(t)}function Da(e){let t=0,n=Ut(0),r;return()=>{ar()&&(a(n),Or(()=>(t===0&&(r=On(()=>e(()=>Wn(n)))),t+=1,()=>{ln(()=>{t-=1,t===0&&(r==null||r(),r=void 0,Wn(n))})})))}}var Ra=Lt|rn|$n;function Wa(e,t,n){new Ma(e,t,n)}class Ma{constructor(t,n,r){U(this,_e);ht(this,"parent");U(this,Ke,!1);U(this,Ye);U(this,ri,null);U(this,ct);U(this,Zt);U(this,ut);U(this,Ze,null);U(this,We,null);U(this,dt,null);U(this,xt,null);U(this,Dt,null);U(this,Qt,0);U(this,Rt,0);U(this,Jt,!1);U(this,Wt,null);U(this,mr,Da(()=>(N(this,Wt,Ut(h(this,Qt))),()=>{N(this,Wt,null)})));N(this,Ye,t),N(this,ct,n),N(this,Zt,r),this.parent=X.b,N(this,Ke,!!h(this,ct).pending),N(this,ut,sr(()=>{X.b=this;{var i=Z(this,_e,hi).call(this);try{N(this,Ze,Ve(()=>r(i)))}catch(o){this.error(o)}h(this,Rt)>0?Z(this,_e,Sr).call(this):N(this,Ke,!1)}return()=>{var o;(o=h(this,Dt))==null||o.remove()}},Ra))}is_pending(){return h(this,Ke)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!h(this,ct).pending}update_pending_count(t){Z(this,_e,vi).call(this,t),N(this,Qt,h(this,Qt)+t),h(this,Wt)&&dn(h(this,Wt),h(this,Qt))}get_effect_pending(){return h(this,mr).call(this),a(h(this,Wt))}error(t){var n=h(this,ct).onerror;let r=h(this,ct).failed;if(h(this,Jt)||!n&&!r)throw t;h(this,Ze)&&(De(h(this,Ze)),N(this,Ze,null)),h(this,We)&&(De(h(this,We)),N(this,We,null)),h(this,dt)&&(De(h(this,dt)),N(this,dt,null));var i=!1,o=!1;const l=()=>{if(i){Sa();return}i=!0,o&&xa(),wt.ensure(),N(this,Qt,0),h(this,dt)!==null&&fn(h(this,dt),()=>{N(this,dt,null)}),N(this,Ke,this.has_pending_snippet()),N(this,Ze,Z(this,_e,kr).call(this,()=>(N(this,Jt,!1),Ve(()=>h(this,Zt).call(this,h(this,Ye)))))),h(this,Rt)>0?Z(this,_e,Sr).call(this):N(this,Ke,!1)};var c=V;try{Re(null),o=!0,n==null||n(t,l),o=!1}catch(s){cn(s,h(this,ut)&&h(this,ut).parent)}finally{Re(c)}r&&ln(()=>{N(this,dt,Z(this,_e,kr).call(this,()=>{wt.ensure(),N(this,Jt,!0);try{return Ve(()=>{r(h(this,Ye),()=>t,()=>l)})}catch(s){return cn(s,h(this,ut).parent),null}finally{N(this,Jt,!1)}}))})}}Ke=new WeakMap,Ye=new WeakMap,ri=new WeakMap,ct=new WeakMap,Zt=new WeakMap,ut=new WeakMap,Ze=new WeakMap,We=new WeakMap,dt=new WeakMap,xt=new WeakMap,Dt=new WeakMap,Qt=new WeakMap,Rt=new WeakMap,Jt=new WeakMap,Wt=new WeakMap,mr=new WeakMap,_e=new WeakSet,Sc=function(){try{N(this,Ze,Ve(()=>h(this,Zt).call(this,h(this,Ye))))}catch(t){this.error(t)}N(this,Ke,!1)},Cc=function(){const t=h(this,ct).pending;t&&(N(this,We,Ve(()=>t(h(this,Ye)))),wt.enqueue(()=>{var n=Z(this,_e,hi).call(this);N(this,Ze,Z(this,_e,kr).call(this,()=>(wt.ensure(),Ve(()=>h(this,Zt).call(this,n))))),h(this,Rt)>0?Z(this,_e,Sr).call(this):(fn(h(this,We),()=>{N(this,We,null)}),N(this,Ke,!1))}))},hi=function(){var t=h(this,Ye);return h(this,Ke)&&(N(this,Dt,_t()),h(this,Ye).before(h(this,Dt)),t=h(this,Dt)),t},kr=function(t){var n=X,r=V,i=fe;at(h(this,ut)),Re(h(this,ut)),sn(h(this,ut).ctx);try{return t()}catch(o){return Ei(o),null}finally{at(n),Re(r),sn(i)}},Sr=function(){const t=h(this,ct).pending;h(this,Ze)!==null&&(N(this,xt,document.createDocumentFragment()),h(this,xt).append(h(this,Dt)),Qi(h(this,Ze),h(this,xt))),h(this,We)===null&&N(this,We,Ve(()=>t(h(this,Ye))))},vi=function(t){var n;if(!this.has_pending_snippet()){this.parent&&Z(n=this.parent,_e,vi).call(n,t);return}N(this,Rt,h(this,Rt)+t),h(this,Rt)===0&&(N(this,Ke,!1),h(this,We)&&fn(h(this,We),()=>{N(this,We,null)}),h(this,xt)&&(h(this,Ye).before(h(this,xt)),N(this,xt,null)))};function un(e,t){return t}function Ba(e,t,n){for(var r=[],i=t.length,o=0;o<i;o++)jr(t[o].e,r,!0);Yi(r,()=>{var l=r.length===0&&n!==null;if(l){var c=n,s=c.parentNode;Ga(s),s.append(c),e.items.clear(),it(e,t[0].prev,t[i-1].next)}for(var u=0;u<i;u++){var v=t[u];l||(e.items.delete(v.k),it(e,v.prev,v.next)),De(v.e,!l)}e.first===t[0]&&(e.first=t[0].prev)})}function Ct(e,t,n,r,i,o=null){var l=e,c=new Map,s=null,u=(t&In)!==0,v=(t&ee)!==0,g=(t&de)!==0;if(u){var f=e;l=f.appendChild(_t())}var d=null,y=Br(()=>{var _=n();return Er(_)?_:_==null?[]:Tr(_)}),p,m=!0;function x(){Na(O,p,l,t,r),d!==null&&(p.length===0?(d.fragment?(l.before(d.fragment),d.fragment=null):qr(d.effect),A.first=d.effect):fn(d.effect,()=>{d=null}))}var A=sr(()=>{p=a(y);for(var _=p.length,E=new Set,P=Q,S=null,R=qi(),W=0;W<_;W+=1){var G=p[W],q=r(G,W),F=m?null:c.get(q);F?(v&&dn(F.v,G),g?dn(F.i,W):F.i=W,R&&P.skipped_effects.delete(F.e)):(F=za(m?l:null,S,G,q,W,i,t,n),m&&(F.o=!0,S===null?s=F:S.next=F,S=F),c.set(q,F)),E.add(q)}if(_===0&&o&&!d)if(m)d={fragment:null,effect:Ve(()=>o(l))};else{var ge=document.createDocumentFragment(),J=_t();ge.append(J),d={fragment:ge,effect:Ve(()=>o(J))}}if(!m)if(R){for(const[Se,ae]of c)E.has(Se)||P.skipped_effects.add(ae.e);P.oncommit(x),P.ondiscard(()=>{})}else x();a(y)}),O={effect:A,items:c,first:s};m=!1}function Na(e,t,n,r,i){var G,q,F,ge;var o=(r&Ko)!==0,l=t.length,c=e.items,s=e.first,u,v=null,g,f=[],d=[],y,p,m,x;if(o)for(x=0;x<l;x+=1)y=t[x],p=i(y,x),m=c.get(p),(G=m.a)==null||G.measure(),(g??(g=new Set)).add(m);for(x=0;x<l;x+=1){if(y=t[x],p=i(y,x),m=c.get(p),e.first??(e.first=m),!m.o){m.o=!0;var A=v?v.next:s;it(e,v,m),it(e,m,A),Mr(m,A,n),v=m,f=[],d=[],s=v.next;continue}if(m.e.f&Be&&(qr(m.e),o&&((q=m.a)==null||q.unfix(),(g??(g=new Set)).delete(m))),m!==s){if(u!==void 0&&u.has(m)){if(f.length<d.length){var O=d[0],_;v=O.prev;var E=f[0],P=f[f.length-1];for(_=0;_<f.length;_+=1)Mr(f[_],O,n);for(_=0;_<d.length;_+=1)u.delete(d[_]);it(e,E.prev,P.next),it(e,v,E),it(e,P,O),s=O,v=P,x-=1,f=[],d=[]}else u.delete(m),Mr(m,s,n),it(e,m.prev,m.next),it(e,m,v===null?e.first:v.next),it(e,v,m),v=m;continue}for(f=[],d=[];s!==null&&s.k!==p;)s.e.f&Be||(u??(u=new Set)).add(s),d.push(s),s=s.next;if(s===null)continue;m=s}f.push(m),v=m,s=m.next}if(s!==null||u!==void 0){for(var S=u===void 0?[]:Tr(u);s!==null;)s.e.f&Be||S.push(s),s=s.next;var R=S.length;if(R>0){var W=r&In&&l===0?n:null;if(o){for(x=0;x<R;x+=1)(F=S[x].a)==null||F.measure();for(x=0;x<R;x+=1)(ge=S[x].a)==null||ge.fix()}Ba(e,S,W)}}o&&ln(()=>{var J;if(g!==void 0)for(m of g)(J=m.a)==null||J.apply()})}function za(e,t,n,r,i,o,l,c){var s=(l&ee)!==0,u=(l&Yo)===0,v=s?u?Fa(n,!1,!1):Ut(n):n,g=l&de?Ut(i):i,f={i:g,v,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var d=document.createDocumentFragment();d.append(e=_t())}return f.e=Ve(()=>o(e,v,g,c)),t!==null&&(t.next=f),f}finally{}}function Mr(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,o=e.e.nodes_start;o!==null&&o!==r;){var l=Mn(o);i.before(o),o=l}}function it(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function La(e,t,n,r){const i=Dn()?ir:Br;if(n.length===0&&e.length===0){r(t.map(i));return}var o=Q,l=X,c=Oa();function s(){Promise.all(n.map(u=>ja(u))).then(u=>{c();try{r([...t.map(i),...u])}catch(v){l.f&mt||cn(v,l)}o==null||o.deactivate(),rr()}).catch(u=>{cn(u,l)})}e.length>0?Promise.all(e).then(()=>{c();try{return s()}finally{o==null||o.deactivate(),rr()}}):s()}function Oa(){var e=X,t=V,n=fe,r=Q;return function(o=!0){at(e),Re(t),sn(n),o&&(r==null||r.activate())}}function rr(){at(null),Re(null),sn(null)}function ir(e){var t=ye|Ie,n=V!==null&&V.f&ye?V:null;return X!==null&&(X.f|=rn),{ctx:fe,deps:null,effects:null,equals:ki,f:t,fn:e,reactions:null,rv:0,v:be,wv:0,parent:n??X,ac:null}}function ja(e,t){let n=X;n===null&&ha();var r=n.b,i=void 0,o=Ut(be),l=!V,c=new Map;return Xa(()=>{var f;var s=yi();i=s.promise;try{Promise.resolve(e()).then(s.resolve,s.reject).then(()=>{u===Q&&u.committed&&u.deactivate(),rr()})}catch(d){s.reject(d),rr()}var u=Q;if(l){var v=!r.is_pending();r.update_pending_count(1),u.increment(v),(f=c.get(u))==null||f.reject(on),c.delete(u),c.set(u,s)}const g=(d,y=void 0)=>{if(u.activate(),y)y!==on&&(o.f|=St,dn(o,y));else{o.f&St&&(o.f^=St),dn(o,d);for(const[p,m]of c){if(c.delete(p),p===u)break;m.reject(on)}}l&&(r.update_pending_count(-1),u.decrement(v))};s.promise.then(g,d=>g(null,d||"unknown"))}),Lr(()=>{for(const s of c.values())s.reject(on)}),new Promise(s=>{function u(v){function g(){v===i?s(o):u(i)}v.then(g,g)}u(i)})}function re(e){const t=ir(e);return Xi(t),t}function Br(e){const t=ir(e);return t.equals=Si,t}function Di(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)De(t[n])}}function qa(e){for(var t=e.parent;t!==null;){if(!(t.f&ye))return t.f&mt?null:t;t=t.parent}return null}function Nr(e){var t,n=X;at(qa(e));try{e.f&=~Ot,Di(e),t=ro(e)}finally{at(n)}return t}function Ri(e){var t=Nr(e);if(e.equals(t)||(Q!=null&&Q.is_fork||(e.v=t),e.wv=to()),!Ht)if(he!==null)ar()&&he.set(e,t);else{var n=e.f&Qe?xe:gt;ke(e,n)}}let zr=new Set;const Et=new Map;let Wi=!1;function Ut(e,t){var n={f:0,v:e,reactions:null,equals:ki,rv:0,wv:0};return n}function Y(e,t){const n=Ut(e);return Xi(n),n}function Fa(e,t=!1,n=!0){var i;const r=Ut(e);return t||(r.equals=Si),an&&n&&fe!==null&&fe.l!==null&&((i=fe.l).s??(i.s=[])).push(r),r}function w(e,t,n=!1){V!==null&&(!ot||V.f&bi)&&Dn()&&V.f&(ye|vt|Rr|bi)&&!(Ce!=null&&Ce.includes(e))&&ba();let r=n?He(t):t;return dn(e,r)}function dn(e,t){if(!e.equals(t)){var n=e.v;Ht?Et.set(e,t):Et.set(e,n),e.v=t;var r=wt.ensure();r.capture(e,n),e.f&ye&&(e.f&Ie&&Nr(e),ke(e,e.f&Qe?xe:gt)),e.wv=to(),Bi(e,Ie),Dn()&&X!==null&&X.f&xe&&!(X.f&(pt|zt))&&(Ge===null?ts([e]):Ge.push(e)),!r.is_fork&&zr.size>0&&!Wi&&Ua()}return t}function Ua(){Wi=!1;var e=Tt;lr(!0);const t=Array.from(zr);try{for(const n of t)n.f&xe&&ke(n,gt),zn(n)&&Ln(n)}finally{lr(e)}zr.clear()}function Mi(e,t=1){var n=a(e),r=t===1?n++:n--;return w(e,n),r}function Wn(e){w(e,e.v+1)}function Bi(e,t){var n=e.reactions;if(n!==null)for(var r=Dn(),i=n.length,o=0;o<i;o++){var l=n[o],c=l.f;if(!(!r&&l===X)){var s=(c&Ie)===0;if(s&&ke(l,t),c&ye){var u=l;he==null||he.delete(u),c&Ot||(c&Qe&&(l.f|=Ot),Bi(u,gt))}else s&&(c&vt&&Je!==null&&Je.add(l),Ft(l))}}}function He(e){if(typeof e!="object"||e===null||jt in e)return e;const t=wi(e);if(t!==oa&&t!==aa)return e;var n=new Map,r=Er(e),i=Y(0),o=Vt,l=c=>{if(Vt===o)return c();var s=V,u=Vt;Re(null),eo(o);var v=c();return Re(s),eo(u),v};return r&&n.set("length",Y(e.length)),new Proxy(e,{defineProperty(c,s,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&_a();var v=n.get(s);return v===void 0?v=l(()=>{var g=Y(u.value);return n.set(s,g),g}):w(v,u.value,!0),!0},deleteProperty(c,s){var u=n.get(s);if(u===void 0){if(s in c){const v=l(()=>Y(be));n.set(s,v),Wn(i)}}else w(u,be),Wn(i);return!0},get(c,s,u){var d;if(s===jt)return e;var v=n.get(s),g=s in c;if(v===void 0&&(!g||(d=nn(c,s))!=null&&d.writable)&&(v=l(()=>{var y=He(g?c[s]:be),p=Y(y);return p}),n.set(s,v)),v!==void 0){var f=a(v);return f===be?void 0:f}return Reflect.get(c,s,u)},getOwnPropertyDescriptor(c,s){var u=Reflect.getOwnPropertyDescriptor(c,s);if(u&&"value"in u){var v=n.get(s);v&&(u.value=a(v))}else if(u===void 0){var g=n.get(s),f=g==null?void 0:g.v;if(g!==void 0&&f!==be)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(c,s){var f;if(s===jt)return!0;var u=n.get(s),v=u!==void 0&&u.v!==be||Reflect.has(c,s);if(u!==void 0||X!==null&&(!v||(f=nn(c,s))!=null&&f.writable)){u===void 0&&(u=l(()=>{var d=v?He(c[s]):be,y=Y(d);return y}),n.set(s,u));var g=a(u);if(g===be)return!1}return v},set(c,s,u,v){var O;var g=n.get(s),f=s in c;if(r&&s==="length")for(var d=u;d<g.v;d+=1){var y=n.get(d+"");y!==void 0?w(y,be):d in c&&(y=l(()=>Y(be)),n.set(d+"",y))}if(g===void 0)(!f||(O=nn(c,s))!=null&&O.writable)&&(g=l(()=>Y(void 0)),w(g,He(u)),n.set(s,g));else{f=g.v!==be;var p=l(()=>He(u));w(g,p)}var m=Reflect.getOwnPropertyDescriptor(c,s);if(m!=null&&m.set&&m.set.call(v,u),!f){if(r&&typeof s=="string"){var x=n.get("length"),A=Number(s);Number.isInteger(A)&&A>=x.v&&w(x,A+1)}Wn(i)}return!0},ownKeys(c){a(i);var s=Reflect.ownKeys(c).filter(g=>{var f=n.get(g);return f===void 0||f.v!==be});for(var[u,v]of n)v.v!==be&&!(u in c)&&s.push(u);return s},setPrototypeOf(){ya()}})}function Ni(e){try{if(e!==null&&typeof e=="object"&&jt in e)return e[jt]}catch{}return e}function Ha(e,t){return Object.is(Ni(e),Ni(t))}var zi,Li,Oi,ji;function Va(){if(zi===void 0){zi=window,Li=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Oi=nn(t,"firstChild").get,ji=nn(t,"nextSibling").get,_i(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),_i(n)&&(n.__t=void 0)}}function _t(e=""){return document.createTextNode(e)}function yt(e){return Oi.call(e)}function Mn(e){return ji.call(e)}function T(e,t){return yt(e)}function we(e,t=!1){{var n=yt(e);return n instanceof Comment&&n.data===""?Mn(n):n}}function I(e,t=1,n=!1){let r=e;for(;t--;)r=Mn(r);return r}function Ga(e){e.textContent=""}function qi(){return!1}let Fi=!1;function Ka(){Fi||(Fi=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function or(e){var t=V,n=X;Re(null),at(null);try{return e()}finally{Re(t),at(n)}}function Ya(e,t,n,r=n){e.addEventListener(t,()=>or(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),Ka()}function Za(e){X===null&&(V===null&&ga(),pa()),Ht&&va()}function Qa(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function bt(e,t,n){var r=X;r!==null&&r.f&Be&&(e|=Be);var i={ctx:fe,deps:null,nodes_start:null,nodes_end:null,f:e|Ie|Qe,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Ln(i),i.f|=Ir}catch(c){throw De(i),c}else t!==null&&Ft(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&!(o.f&rn)&&(o=o.first,e&vt&&e&Lt&&o!==null&&(o.f|=Lt)),o!==null&&(o.parent=r,r!==null&&Qa(o,r),V!==null&&V.f&ye&&!(e&zt))){var l=V;(l.effects??(l.effects=[])).push(o)}return i}function ar(){return V!==null&&!ot}function Lr(e){const t=bt(Ar,null,!1);return ke(t,xe),t.teardown=e,t}function Bn(e){Za();var t=X.f,n=!V&&(t&pt)!==0&&(t&Ir)===0;if(n){var r=fe;(r.e??(r.e=[])).push(e)}else return Ui(e)}function Ui(e){return bt(Pr|ca,e,!1)}function Ja(e){wt.ensure();const t=bt(zt|rn,e,!0);return(n={})=>new Promise(r=>{n.outro?fn(t,()=>{De(t),r(void 0)}):(De(t),r(void 0))})}function Hi(e){return bt(Pr,e,!1)}function Xa(e){return bt(Rr|rn,e,!0)}function Or(e,t=0){return bt(Ar|t,e,!0)}function B(e,t=[],n=[],r=[]){La(r,t,n,i=>{bt(Ar,()=>e(...i.map(a)),!0)})}function sr(e,t=0){var n=bt(vt|t,e,!0);return n}function Ve(e){return bt(pt|rn,e,!0)}function Vi(e){var t=e.teardown;if(t!==null){const n=Ht,r=V;Ji(!0),Re(null);try{t.call(null)}finally{Ji(n),Re(r)}}}function Gi(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&or(()=>{i.abort(on)});var r=n.next;n.f&zt?n.parent=null:De(n,t),n=r}}function $a(e){for(var t=e.first;t!==null;){var n=t.next;t.f&pt||De(t),t=n}}function De(e,t=!0){var n=!1;(t||e.f&xi)&&e.nodes_start!==null&&e.nodes_end!==null&&(es(e.nodes_start,e.nodes_end),n=!0),Gi(e,t&&!n),cr(e,0),ke(e,mt);var r=e.transitions;if(r!==null)for(const o of r)o.stop();Vi(e);var i=e.parent;i!==null&&i.first!==null&&Ki(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function es(e,t){for(;e!==null;){var n=e===t?null:Mn(e);e.remove(),e=n}}function Ki(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function fn(e,t,n=!0){var r=[];jr(e,r,!0),Yi(r,()=>{n&&De(e),t&&t()})}function Yi(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function jr(e,t,n){if(!(e.f&Be)){if(e.f^=Be,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&Lt)!==0||(r.f&pt)!==0&&(e.f&vt)!==0;jr(r,t,o?n:!1),r=i}}}function qr(e){Zi(e,!0)}function Zi(e,t){if(e.f&Be){e.f^=Be,e.f&xe||(ke(e,Ie),Ft(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Lt)!==0||(n.f&pt)!==0;Zi(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}function Qi(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:Mn(n);t.append(n),n=i}}let Tt=!1;function lr(e){Tt=e}let Ht=!1;function Ji(e){Ht=e}let V=null,ot=!1;function Re(e){V=e}let X=null;function at(e){X=e}let Ce=null;function Xi(e){V!==null&&(Ce===null?Ce=[e]:Ce.push(e))}let Ee=null,Ne=0,Ge=null;function ts(e){Ge=e}let $i=1,Nn=0,Vt=Nn;function eo(e){Vt=e}function to(){return++$i}function zn(e){var t=e.f;if(t&Ie)return!0;if(t&ye&&(e.f&=~Ot),t>){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if(zn(o)&&Ri(o),o.wv>e.wv)return!0}t&Qe&&he===null&&ke(e,xe)}return!1}function no(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Ce!=null&&Ce.includes(e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&ye?no(o,t,!1):t===o&&(n?ke(o,Ie):o.f&xe&&ke(o,gt),Ft(o))}}function ro(e){var y;var t=Ee,n=Ne,r=Ge,i=V,o=Ce,l=fe,c=ot,s=Vt,u=e.f;Ee=null,Ne=0,Ge=null,V=u&(pt|zt)?null:e,Ce=null,sn(e.ctx),ot=!1,Vt=++Nn,e.ac!==null&&(or(()=>{e.ac.abort(on)}),e.ac=null);try{e.f|=Dr;var v=e.fn,g=v(),f=e.deps;if(Ee!==null){var d;if(cr(e,Ne),f!==null&&Ne>0)for(f.length=Ne+Ee.length,d=0;d<Ee.length;d++)f[Ne+d]=Ee[d];else e.deps=f=Ee;if(Tt&&ar()&&e.f&Qe)for(d=Ne;d<f.length;d++)((y=f[d]).reactions??(y.reactions=[])).push(e)}else f!==null&&Ne<f.length&&(cr(e,Ne),f.length=Ne);if(Dn()&&Ge!==null&&!ot&&f!==null&&!(e.f&(ye|gt|Ie)))for(d=0;d<Ge.length;d++)no(Ge[d],e);return i!==null&&i!==e&&(Nn++,Ge!==null&&(r===null?r=Ge:r.push(...Ge))),e.f&St&&(e.f^=St),g}catch(p){return Ei(p)}finally{e.f^=Dr,Ee=t,Ne=n,Ge=r,V=i,Ce=o,sn(l),ot=c,Vt=s}}function ns(e,t){let n=t.reactions;if(n!==null){var r=na.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&t.f&ye&&(Ee===null||!Ee.includes(t))&&(ke(t,gt),t.f&Qe&&(t.f^=Qe,t.f&=~Ot),Di(t),cr(t,0))}function cr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ns(e,n[r])}function Ln(e){var t=e.f;if(!(t&mt)){ke(e,xe);var n=X,r=Tt;X=e,Tt=!0;try{t&vt?$a(e):Gi(e),Vi(e);var i=ro(e);e.teardown=typeof i=="function"?i:null,e.wv=$i;var o;Cr&&Ea&&e.f&Ie&&e.deps}finally{Tt=r,X=n}}}async function rs(){await Promise.resolve(),Aa()}function a(e){var t=e.f,n=(t&ye)!==0;if(V!==null&&!ot){var r=X!==null&&(X.f&mt)!==0;if(!r&&!(Ce!=null&&Ce.includes(e))){var i=V.deps;if(V.f&Dr)e.rv<Nn&&(e.rv=Nn,Ee===null&&i!==null&&i[Ne]===e?Ne++:Ee===null?Ee=[e]:Ee.includes(e)||Ee.push(e));else{(V.deps??(V.deps=[])).push(e);var o=e.reactions;o===null?e.reactions=[V]:o.includes(V)||o.push(V)}}}if(Ht){if(Et.has(e))return Et.get(e);if(n){var l=e,c=l.v;return(!(l.f&xe)&&l.reactions!==null||oo(l))&&(c=Nr(l)),Et.set(l,c),c}}else n&&!(he!=null&&he.has(e))&&(l=e,zn(l)&&Ri(l),Tt&&ar()&&!(l.f&Qe)&&io(l));if(he!=null&&he.has(e))return he.get(e);if(e.f&St)throw e.v;return e.v}function io(e){if(e.deps!==null){e.f^=Qe;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&ye&&!(t.f&Qe)&&io(t)}}function oo(e){if(e.v===be)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Et.has(t)||t.f&ye&&oo(t))return!0;return!1}function On(e){var t=ot;try{return ot=!0,e()}finally{ot=t}}const is=-7169;function ke(e,t){e.f=e.f&is|t}const ao=new Set,Fr=new Set;function os(e,t,n,r={}){function i(o){if(r.capture||jn.call(t,o),!o.cancelBubble)return or(()=>n==null?void 0:n.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ln(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function st(e,t,n,r,i){var o={capture:r,passive:i},l=os(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Lr(()=>{t.removeEventListener(e,l,o)})}function ur(e){for(var t=0;t<e.length;t++)ao.add(e[t]);for(var n of Fr)n(e)}let so=null;function jn(e){var m;var t=this,n=t.ownerDocument,r=e.type,i=((m=e.composedPath)==null?void 0:m.call(e))||[],o=i[0]||e.target;so=e;var l=0,c=so===e&&e.__root;if(c){var s=i.indexOf(c);if(s!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;s<=u&&(l=s)}if(o=i[l]||e.target,o!==t){ra(e,"currentTarget",{configurable:!0,get(){return o||n}});var v=V,g=X;Re(null),at(null);try{for(var f,d=[];o!==null;){var y=o.assignedSlot||o.parentNode||o.host||null;try{var p=o["__"+r];p!=null&&(!o.disabled||e.target===o)&&p.call(o,e)}catch(x){f?d.push(x):f=x}if(e.cancelBubble||y===t||y===null)break;o=y}if(f){for(let x of d)queueMicrotask(()=>{throw x});throw f}}finally{e.__root=t,delete e.currentTarget,Re(v),at(g)}}}function lo(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function hn(e,t){var n=X;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function L(e,t){var n=(t&mi)!==0,r=(t&ea)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=lo(o?e:"<!>"+e),n||(i=yt(i)));var l=r||Li?document.importNode(i,!0):i.cloneNode(!0);if(n){var c=yt(l),s=l.lastChild;hn(c,s)}else hn(l,l);return l}}function as(e,t,n="svg"){var r=!e.startsWith("<!>"),i=(t&mi)!==0,o=`<${n}>${r?e:"<!>"+e}</${n}>`,l;return()=>{if(!l){var c=lo(o),s=yt(c);if(i)for(l=document.createDocumentFragment();yt(s);)l.appendChild(yt(s));else l=yt(s)}var u=l.cloneNode(!0);if(i){var v=yt(u),g=u.lastChild;hn(v,g)}else hn(u,u);return u}}function Pt(e,t){return as(e,t,"svg")}function At(e=""){{var t=_t(e+"");return hn(t,t),t}}function Xe(){var e=document.createDocumentFragment(),t=document.createComment(""),n=_t();return e.append(t,n),hn(t,n),e}function k(e,t){e!==null&&e.before(t)}const ss=["touchstart","touchmove"];function ls(e){return ss.includes(e)}function j(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function cs(e,t){return us(e,t)}const vn=new Map;function us(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:l=!0}){Va();var c=new Set,s=g=>{for(var f=0;f<g.length;f++){var d=g[f];if(!c.has(d)){c.add(d);var y=ls(d);t.addEventListener(d,jn,{passive:y});var p=vn.get(d);p===void 0?(document.addEventListener(d,jn,{passive:y}),vn.set(d,1)):vn.set(d,p+1)}}};s(Tr(ao)),Fr.add(s);var u=void 0,v=Ja(()=>{var g=n??t.appendChild(_t());return Wa(g,{pending:()=>{}},f=>{if(o){nt({});var d=fe;d.c=o}i&&(r.$$events=i),u=e(f,r)||{},o&&rt()}),()=>{var y;for(var f of c){t.removeEventListener(f,jn);var d=vn.get(f);--d===0?(document.removeEventListener(f,jn),vn.delete(f)):vn.set(f,d)}Fr.delete(s),g!==n&&((y=g.parentNode)==null||y.removeChild(g))}});return ds.set(u,v),u}let ds=new WeakMap;class co{constructor(t,n=!0){ht(this,"anchor");U(this,$e,new Map);U(this,ft,new Map);U(this,je,new Map);U(this,Xt,new Set);U(this,Vn,!0);U(this,Gn,()=>{var t=Q;if(h(this,$e).has(t)){var n=h(this,$e).get(t),r=h(this,ft).get(n);if(r)qr(r),h(this,Xt).delete(n);else{var i=h(this,je).get(n);i&&(h(this,ft).set(n,i.effect),h(this,je).delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[o,l]of h(this,$e)){if(h(this,$e).delete(o),o===t)break;const c=h(this,je).get(l);c&&(De(c.effect),h(this,je).delete(l))}for(const[o,l]of h(this,ft)){if(o===n||h(this,Xt).has(o))continue;const c=()=>{if(Array.from(h(this,$e).values()).includes(o)){var u=document.createDocumentFragment();Qi(l,u),u.append(_t()),h(this,je).set(o,{effect:l,fragment:u})}else De(l);h(this,Xt).delete(o),h(this,ft).delete(o)};h(this,Vn)||!r?(h(this,Xt).add(o),fn(l,c,!1)):c()}}});U(this,wr,t=>{h(this,$e).delete(t);const n=Array.from(h(this,$e).values());for(const[r,i]of h(this,je))n.includes(r)||(De(i.effect),h(this,je).delete(r))});this.anchor=t,N(this,Vn,n)}ensure(t,n){var r=Q,i=qi();if(n&&!h(this,ft).has(t)&&!h(this,je).has(t))if(i){var o=document.createDocumentFragment(),l=_t();o.append(l),h(this,je).set(t,{effect:Ve(()=>n(l)),fragment:o})}else h(this,ft).set(t,Ve(()=>n(this.anchor)));if(h(this,$e).set(r,t),i){for(const[c,s]of h(this,ft))c===t?r.skipped_effects.delete(s):r.skipped_effects.add(s);for(const[c,s]of h(this,je))c===t?r.skipped_effects.delete(s.effect):r.skipped_effects.add(s.effect);r.oncommit(h(this,Gn)),r.ondiscard(h(this,wr))}else h(this,Gn).call(this)}}$e=new WeakMap,ft=new WeakMap,je=new WeakMap,Xt=new WeakMap,Vn=new WeakMap,Gn=new WeakMap,wr=new WeakMap;function Ur(e){fe===null&&fa(),an&&fe.l!==null?fs(fe).m.push(e):Bn(()=>{const t=On(e);if(typeof t=="function")return t})}function fs(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function H(e,t,n=!1){var r=new co(e),i=n?Lt:0;function o(l,c){r.ensure(l,c)}sr(()=>{var l=!1;t((c,s=!0)=>{l=!0,o(s,c)}),l||o(!1,null)},i)}function uo(e,t,n,r,i){var c;var o=(c=t.$$slots)==null?void 0:c[n],l=!1;o===!0&&(o=t.children,l=!0),o===void 0||o(e,l?()=>r:r)}function fo(e,t,n){var r=new co(e);sr(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},Lt)}function lt(e,t){Hi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function ho(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ho(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function hs(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ho(e))&&(r&&(r+=" "),r+=t);return r}function pn(e){return typeof e=="object"?hs(e):e??""}function vs(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function It(e,t,n,r,i,o){var l=e.__className;if(l!==n||l===void 0){var c=vs(n,r);c==null?e.removeAttribute("class"):t?e.className=c:e.setAttribute("class",c),e.__className=n}return o}function vo(e,t,n=!1){if(e.multiple){if(t==null)return;if(!Er(t))return ka();for(var r of e.options)r.selected=t.includes(po(r));return}for(r of e.options){var i=po(r);if(Ha(i,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ps(e){var t=new MutationObserver(()=>{vo(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Lr(()=>{t.disconnect()})}function po(e){return"__value"in e?e.__value:e.value}const gs=Symbol("is custom element"),ms=Symbol("is html");function ws(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function D(e,t,n,r){var i=_s(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[da]=n),n==null?e.removeAttribute(t):typeof n!="string"&&ys(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function _s(e){return e.__attributes??(e.__attributes={[gs]:e.nodeName.includes("-"),[ms]:e.namespaceURI===ta})}var go=new Map;function ys(e){var t=e.getAttribute("is")||e.nodeName,n=go.get(t);if(n)return n;go.set(t,n=[]);for(var r,i=e,o=Element.prototype;o!==i;){r=ia(i);for(var l in r)r[l].set&&n.push(l);i=wi(i)}return n}function bs(e,t,n=t){var r=new WeakSet;Ya(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(o=Hr(e)?Vr(o):o,n(o),Q!==null&&r.add(Q),await rs(),o!==(o=t())){var l=e.selectionStart,c=e.selectionEnd,s=e.value.length;if(e.value=o??"",c!==null){var u=e.value.length;l===c&&c===s&&u>s?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=l,e.selectionEnd=Math.min(c,u))}}}),On(t)==null&&e.value&&(n(Hr(e)?Vr(e.value):e.value),Q!==null&&r.add(Q)),Or(()=>{var i=t();if(e===document.activeElement){var o=tr??Q;if(r.has(o))return}Hr(e)&&i===Vr(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function Hr(e){var t=e.type;return t==="number"||t==="range"}function Vr(e){return e===""?null:+e}function mo(e,t){return e===t||(e==null?void 0:e[jt])===t}function xs(e={},t,n,r){return Hi(()=>{var i,o;return Or(()=>{i=o,o=[],On(()=>{e!==n(...o)&&(t(e,...o),i&&mo(n(...i),e)&&t(null,...i))})}),()=>{ln(()=>{o&&mo(n(...o),e)&&t(null,...o)})}}),e}let dr=!1;function ks(e){var t=dr;try{return dr=!1,[e(),dr]}finally{dr=t}}function ze(e,t,n,r){var O;var i=!an||(n&Qo)!==0,o=(n&Xo)!==0,l=(n&$o)!==0,c=r,s=!0,u=()=>(s&&(s=!1,c=l?On(r):r),c),v;if(o){var g=jt in e||ua in e;v=((O=nn(e,t))==null?void 0:O.set)??(g&&t in e?_=>e[t]=_:void 0)}var f,d=!1;o?[f,d]=ks(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=u(),v&&(i&&wa(),v(f)));var y;if(i?y=()=>{var _=e[t];return _===void 0?u():(s=!0,_)}:y=()=>{var _=e[t];return _!==void 0&&(c=void 0),_===void 0?c:_},i&&!(n&Jo))return y;if(v){var p=e.$$legacy;return function(_,E){return arguments.length>0?((!i||!E||p||d)&&v(E?y():_),_):y()}}var m=!1,x=(n&Zo?ir:Br)(()=>(m=!1,y()));o&&a(x);var A=X;return function(_,E){if(arguments.length>0){const P=E?a(x):i&&o?He(_):_;return w(x,P),m=!0,c!==void 0&&(c=P),_}return Ht&&m||A.f&mt?x.v:a(x)}}const wo="wineater_consent",Ss=["wineater_uid","uniqueUserID","sessionID"];function Cs(){try{const e=window.localStorage.getItem(wo);return e==="granted"||e==="denied"?e:null}catch{return null}}let Gr=Y(He(Cs())),fr=Y(null);function Es(e){w(fr,e,!0)}function _o(){var e;return((e=window==null?void 0:window.wineaterData)==null?void 0:e.requireConsent)===!0?!0:a(fr)===!0}function Ts(){return a(fr)!==null&&_o()&&a(Gr)===null}function yo(){var e;return((e=window==null?void 0:window.wineaterData)==null?void 0:e.tracking)===!1||a(fr)===null?!1:_o()?a(Gr)==="granted":!0}function Ps(){for(const e of Ss){try{window.localStorage.removeItem(e)}catch{}try{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}catch{}}}const Kr=new Set;function As(e){return Kr.add(e),()=>Kr.delete(e)}function bo(e){w(Gr,e,!0);try{window.localStorage.setItem(wo,e)}catch{}e==="denied"&&Ps();for(const t of Kr)t(e)}function xo(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Yr(e,t,n){let r="";if(n){const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3),r="; expires="+i.toUTCString()}document.cookie=e+"="+(t||"")+r+"; path=/; secure; samesite=strict"}function Zr(e){const t=e+"=",n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null}function Is(){const e="uniqueUserID";let t=Zr(e);return t||(t=xo(),Yr(e,t,365)),t}function Le(e,t,n={},r={}){const i="https://admin-api.wineater.com/api/widget-events",o=new Date().toISOString(),l=navigator.language.split("-")[1]||null,c=navigator.language.split("-")[0]||"en";if(!yo()){const f={event_type:e,store_id:t,event_time:o,data:n,meta:{...r,anonymous:!0},device_info:{device:window.innerWidth<768?"mobile":"desktop"},region:l,language:c};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f),keepalive:!0}).catch(d=>{console.debug("[wineater] anonymous event failed:",d==null?void 0:d.message)})}let s=Zr("uniqueUserID");s||(s=Is());const u={user_agent:navigator.userAgent,screen_width:window.screen.width,screen_height:window.screen.height,language:navigator.language,platform:navigator.platform};let v=Zr("sessionID");v||(v=xo(),Yr("sessionID",v,1));const g={event_type:e,store_id:t,session_id:v,event_time:o,data:n,meta:{...r,user_id:s},device_info:u,region:l,language:c};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)}).then(f=>f.ok?f.json():f.json().then(d=>{throw new Error(d.message||"Failed to track widget event")})).catch(f=>{throw console.error("Widget event tracking error:",f),f})}function Ds(e){return{id:String(e.ID),appellation:e.Appellation||null,country:e.Country||null,grape:e.Grape,image:e.Image,price:Number(e.Price),producer:e.Producer||null,region:e.Region,score:e.Score?Number(e.Score):null,shortDescription:e["Short Description"]||null,store:e.Store,storeId:e.Store_id||null,tags:Array.isArray(e.Tags)?e.Tags.map(String):[],title:e.Title,type:e.Type,url:e.Url||null,vintage:e.Vintage?Number(e.Vintage):null,pairingRecommendation:e.pairing_recommendation||null,total:e.Total?Number(e.Total):null,itemId:e.item_id||null,isPromote:e.is_promote?!!e.is_promote:null,stock:e.stock?Number(e.stock):null,byTheGlass:!!e.by_the_glass,glassPrice:e.glass_price!=null?Number(e.glass_price):null}}function hr(e){return{id:String(e.id),title:String(e.title),description:String(e.description),region:String(e.region),price:Number(e.price),grape:String(e.grape),appellation:e.appellation?String(e.appellation):null,url:e.url?String(e.url):null,store:String(e.store),storeId:e.storeId?String(e.storeId):null,image:String(e.image),country:e.country?String(e.country):null,vintage:e.vintage?Number(e.vintage):null,tags:Array.isArray(e.tags)?e.tags.map(String):[],score:e.score?Number(e.score):null,total:e.total?Number(e.total):null,isPromote:e.is_promote?!!e.is_promote:null,stock:e.stock?Number(e.stock):null,distance:Number(e.distance),reason:String(e.reason),type:String(e.type),byTheGlass:!!e.by_the_glass,glassPrice:e.glass_price!=null?Number(e.glass_price):null}}function Rs(e){return{recommendations:(e.recommendations||[]).filter(Boolean).map(hr),hasMore:!!e.has_more}}const qn="wineater_uid",Ws=365;let vr=null;function ko(){const e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();const t=new Uint8Array(16);if(e!=null&&e.getRandomValues)e.getRandomValues(t);else for(let r=0;r<16;r++)t[r]=Math.random()*256|0;t[6]=t[6]&15|64,t[8]=t[8]&63|128;const n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}const So=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function Co(e){try{const t=e+"=";for(const n of document.cookie.split(";")){const r=n.trim();if(r.startsWith(t))return decodeURIComponent(r.slice(t.length))}}catch{}return null}function Ms(e,t){try{const n=new Date(Date.now()+Ws*864e5).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; expires=${n}; path=/; SameSite=Lax; Secure`}catch{}}function Eo(){return yo()}As(e=>{e==="denied"&&(vr=null)});function Qr(){if(!Eo())return null;if(vr)return vr;let e=null;try{e=window.localStorage.getItem(qn)}catch{}(!e||!So.test(e))&&(e=Co(qn)),(!e||!So.test(e))&&(e=ko());try{window.localStorage.setItem(qn,e)}catch{}return Co(qn)!==e&&Ms(qn,e),vr=e,e}function To(){return ko()}const Bs=2e3,Po=100;let pr=null,gn=[],Fn=null,Ao=!1;function Ns(e){pr=e,!(Ao||typeof document>"u")&&(Ao=!0,document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Un()}),window.addEventListener("pagehide",()=>void Un()))}function mn(e){var t;if(!(!Eo()||!pr)&&!(!((t=e.sku_ids)!=null&&t.length)&&e.type!=="more")){if(gn.push(e),gn.length>=Po){Un();return}Fn||(Fn=setTimeout(()=>void Un(),Bs))}}async function Un(){if(Fn&&(clearTimeout(Fn),Fn=null),!pr||gn.length===0)return;const e=Qr();if(!e){gn=[];return}const t=gn.splice(0,Po);try{await pr({uid:e,events:t})}catch(n){console.debug("[wineater] feedback flush failed:",n==null?void 0:n.message)}gn.length>0&&Un()}const zs="X-Wineater-Uid";class Ls{constructor(t,n="1"){U(this,Me);U(this,kn,"https://api.wineater.com/");U(this,Kn);U(this,$t);U(this,Sn,!1);N(this,Kn,t),N(this,$t,n)}async getInstantRecommendations(){try{const t=h(this,$t)==="2"?"dish/recommendations/instant/v2":"dish/recommendations/instant",{data:n,headers:r}=await Z(this,Me,gi).call(this,t,{});return{wines:n.filter(Boolean).map(Ds),profileHash:r.get("X-Wineater-Profile")||null}}catch(t){throw new Error(`Error in getInstantRecommendations: ${t.message}`)}}async getWineRecommendationsSearch(t,n){try{const r=h(this,$t)==="2"?"dish/recommendations/search/v2":"dish/recommendations/search";return(await Z(this,Me,An).call(this,r,n?{text:t,query_id:n}:{text:t})).filter(Boolean).map(hr)}catch(r){throw new Error(`Error in getWineRecommendations: ${r.message}`)}}async searchStream(t,n,r){const i=()=>this.getWineRecommendationsSearch(t,n);if(h(this,$t)!=="2")return i();let o;try{o=await fetch(`${h(this,kn)}dish/recommendations/search/v2/stream`,{method:"POST",headers:Z(this,Me,pi).call(this),body:JSON.stringify(n?{text:t,query_id:n}:{text:t})})}catch{return i()}if(!o.ok||!o.body)return i();const l=o.body.getReader(),c=new TextDecoder;let s="",u=null;const v=g=>(g??[]).filter(Boolean).map(hr);try{for(;;){const{done:g,value:f}=await l.read();f&&(s+=c.decode(f,{stream:!0}));const d=s.split(`
|
|
2
|
+
`);s=g?"":d.pop()??"";for(const y of g?d.filter(Boolean):d){if(!y.trim())continue;const p=JSON.parse(y);if(p.type==="wines")u=v(p.recommendations).map(m=>({...m,reason:""})),r(u);else{if(p.type==="final")return v(p.recommendations);if(p.type==="error")return u||i()}}if(g)break}}catch{return u||i()}return u??i()}async getMoreWineRecommendations(t,n){try{const r=await Z(this,Me,An).call(this,"dish/recommendations/search/v2/more",{text:t,exclude_ids:n});return Rs(r)}catch(r){throw new Error(`Error in getMoreWineRecommendations: ${r.message}`)}}async getSimilarWines(t){try{return(await Z(this,Me,An).call(this,"dish/recommendations/similar",{id:t})).filter(Boolean).map(hr)}catch(n){throw new Error(`Error in getSimilarWines: ${n.message}`)}}async postEvents(t){await Z(this,Me,An).call(this,"events",t,{keepalive:!0})}async getStoreConfig(){try{return await Z(this,Me,An).call(this,"stores/store",{})}catch(t){throw console.error("Error fetching store configuration:",t),t}}}kn=new WeakMap,Kn=new WeakMap,$t=new WeakMap,Sn=new WeakMap,Me=new WeakSet,pi=function(){const t={"Content-Type":"application/json",Authorization:`Bearer ${h(this,Kn)}`};if(!h(this,Sn)){const n=Qr();n&&(t[zs]=n)}return t},An=async function(t,n,r={}){return(await Z(this,Me,gi).call(this,t,n,r)).data},gi=async function(t,n,r={}){const i=()=>({method:r.method??"POST",headers:Z(this,Me,pi).call(this),body:n===void 0?void 0:JSON.stringify(n),keepalive:r.keepalive});let o;try{o=await fetch(`${h(this,kn)}${t}`,i())}catch(s){if(h(this,Sn)||!Qr())throw s;N(this,Sn,!0),o=await fetch(`${h(this,kn)}${t}`,i())}const l=await o.text(),c=l?JSON.parse(l):null;if(!o.ok)throw new Error(`API call failed with status ${o.status}: ${(c==null?void 0:c.message)||"No additional error information"}`);return{data:c,headers:o.headers}};const Io=((Lo=window==null?void 0:window.wineaterData)==null?void 0:Lo.CLIENT_TOKEN)||"HeUw6IXuhvz6tRuXdPEGEbj3SGQ3Q2YtEc1Z8jd41Kg9LtyPb4Epu0to31SYIadG",Jr=String(((Oo=window==null?void 0:window.wineaterData)==null?void 0:Oo.apiVersion)||"1"),wn=new Ls(Io,Jr);Ns(e=>wn.postEvents(e));function Os(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}const Xr=`${Os(Io)}:${Jr}`,Do="wineater:v1:";function $r(e,t){try{const n=window.localStorage.getItem(Do+e);if(!n)return null;const r=JSON.parse(n);return Date.now()-r.savedAt>t?null:r.value}catch{return null}}function ei(e,t){try{const n={savedAt:Date.now(),value:t};window.localStorage.setItem(Do+e,JSON.stringify(n))}catch{}}const Oe={WIDGET_INITIALIZED:"widget_initialized",WIDGET_LOADED:"widget_loaded",SEARCH_PERFORMED:"search_performed",SEARCH_RESULTS_DISPLAYED:"search_results_displayed",NO_RESULTS_FOUND:"no_results_found",WINE_CARD_HOVER:"wine_card_hover",WINE_CARD_CLICK:"wine_card_click",WINE_DETAILS_VIEWED:"wine_details_viewed",WINE_DETAILS_CLOSED:"wine_details_closed",BUY_BUTTON_CLICKED:"buy_button_clicked",SHOW_MORE_CLICKED:"show_more_clicked",SIMILAR_WINES_CLICKED:"similar_wines_clicked",FILTER_APPLIED:"filter_applied",LANGUAGE_CHANGED:"language_changed",ERROR_OCCURRED:"error_occurred",MOBILE_VIEW_ACTIVATED:"mobile_view_activated"},js={fr:{lang:"fr",welcomeMessage:"Quel plat allez-vous déguster ? Décrivez-le-moi et je vous proposerai le vin qui l'accompagnera parfaitement.",noResultsFound:"Aucun résultat trouvé.",somethingWentWrong:"Désolé, quelque chose a mal tourné.",chatButton1:"Trouvez l'accord parfait",chatButton2:"Associez le vin",chatButton3:"Obtenez des conseils",chatTitle:"Accord Mets & Vins 🍷",chatSubtitle:"Décrivez votre plat et obtenez une recommandation en 30 secondes",inputPlaceholder:"ex., Salade de thon",sendButton:"Accorder",poweredBy:"Propulsé par",price:"Prix",region:"Région",type:"Type",reason:"Suggestion",moreInfo:"Plus d'infos",tryAgain:"Réessayer",similarWines:"Vins similaires",byTheGlass:"Au verre",winePairingIntro:"Pour ce vin, voici quelques suggestions de plats :",askForDinner:"Que voulez-vous manger ce soir?",clearChatButton:"Effacer le chat",widgetTitle:"TROUVEZ VOTRE VIN PARFAIT",widgetSubtitle:"Partagez tout ce que vous avez en tête—votre repas, humeur, budget ou occasion—et notre sommelier IA vous recommandera le vin parfait en quelques secondes",searchPlaceholder:"Entrez un mot-clé ou une description","wineDetails.reason":"Raison","wineDetails.price":"Prix","wineDetails.region":"Région","wineDetails.type":"Type","wineDetails.moreInfo":"Plus d'infos","wineDetails.code":"Code","wineDetails.buy":"Acheter",searchButton:"Rechercher",priceRange:"Gamme de prix",wineColor:"Couleur du vin",intensity:"Intensité",red:"Rouge",white:"Blanc",rose:"Rosé",light:"Léger",medium:"Moyen",full:"Puissant",barTitle:"Sélection du bar",barSubtitle:"Choisissez vos plats ci-dessous et cliquez sur «Envoyer»",barSendButton:"Envoyer",barResetButton:"Réinitialiser",barName:"Nom du bar",barNotesPlaceholder:"Entrez vos souhaits ici...",placeholderSuggestions:["Vin pour les pâtes","Parfait avec du poisson","Recommandé pour une soirée"],headerLine1:"Partagez tout ce qui vous passe par la tête —",headerLine2:"— et obtenez des recommandations de vin parfait en quelques secondes",headerMeal:"repas",headerMood:"humeur",headerBudget:"budget",headerOccasion:"occasion",headerOr:"ou",errorMessage:"Une erreur est survenue. Veuillez réessayer plus tard.",noResultsMessage:"Aucun résultat trouvé pour votre recherche. Veuillez essayer une autre requête.",ai_sommelier:"AI sommelier",consentText:"L'assistant vin enregistre un identifiant anonyme sur cet appareil pour apprendre vos goûts et améliorer ses recommandations. Vous pouvez l'utiliser sans accepter.",consentAccept:"Accepter",consentDecline:"Refuser",consentPrivacy:"Politique de confidentialité"},es:{lang:"es",welcomeMessage:"¿Qué vas a comer? Cuéntame tu plato y te recomendaré el maridaje perfecto.",noResultsFound:"No se encontraron resultados.",somethingWentWrong:"Lo sentimos, algo salió mal.",chatButton1:"Encuentra tu maridaje",chatButton2:"Combina vino ya",chatButton3:"Recibe asesoría ahora",chatTitle:"Maridaje de Vinos 🍷",chatSubtitle:"Describe tu comida y obtén una recomendación en 30 segundos",inputPlaceholder:"ej., Ensalada de atún",sendButton:"Combinar",poweredBy:"Desarrollado por",price:"Precio",region:"Región",type:"Tipo",reason:"Sugerencia",moreInfo:"Más info",tryAgain:"Probar otra vez",similarWines:"Vinos similares",byTheGlass:"Por copa",winePairingIntro:"Para este vino, aquí tienes algunas sugerencias de platos:",askForDinner:"¿Qué te gustaría cenar?",clearChatButton:"Limpiar el chat",widgetTitle:"ENCUENTRA TU VINO PERFECTO",widgetSubtitle:"Comparte cualquier cosa que tengas en mente—tu comida, estado de ánimo, presupuesto o evento—y nuestro sommelier de IA te recomendará el vino perfecto en segundos",searchPlaceholder:"Escribe una palabra clave o descripción","wineDetails.reason":"Razón","wineDetails.price":"Precio","wineDetails.region":"Región","wineDetails.type":"Tipo","wineDetails.code":"Código","wineDetails.moreInfo":"Más información","wineDetails.buy":"Comprar",searchButton:"Buscar",priceRange:"Rango de precios",wineColor:"Color del vino",intensity:"Intensidad",red:"Tinto",white:"Blanco",rose:"Rosado",light:"Ligero",medium:"Medio",full:"Intenso",barTitle:"Platos de Bar",barSubtitle:"Selecciona de la lista y presiona «Enviar»",barSendButton:"Enviar",barResetButton:"Reiniciar",barName:"Nombre del bar",barNotesPlaceholder:"Agrega tus comentarios aquí...",placeholderSuggestions:["Vino para pasta","Perfecto con pescado","Recomendado para una fiesta"],headerLine1:"Comparte cualquier cosa que tengas en mente —",headerLine2:"— y obtén recomendaciones del vino perfecto en cuestión de segundos",headerMeal:"comida",headerMood:"estado de ánimo",headerBudget:"presupuesto",headerOccasion:"ocasión",headerOr:"o",errorMessage:"Algo salió mal. Por favor, inténtalo de nuevo más tarde.",noResultsMessage:"No se encontraron resultados para tu búsqueda. Por favor, intenta con otra consulta.",ai_sommelier:"AI sommelier",consentText:"El asistente de vinos guarda un identificador anónimo en este dispositivo para conocer tus gustos y mejorar las recomendaciones. Puedes usarlo sin aceptar.",consentAccept:"Aceptar",consentDecline:"Rechazar",consentPrivacy:"Política de privacidad"},en:{lang:"en",welcomeMessage:"What are you planning to eat? Share your dish and I'll recommend the perfect wine pairing for your meal.",noResultsFound:"No results found.",somethingWentWrong:"Sorry, something went wrong.",chatButton1:"Find Your Pairing",chatButton2:"Pair Wine Now",chatButton3:"Get Wine Advice",chatTitle:"Wine Pairing Assistant 🍷",chatSubtitle:"Describe your meal and get a recommendation in 30 seconds",inputPlaceholder:"e.g., Tuna salad",sendButton:"Match",poweredBy:"Powered by",price:"Price",region:"Region",type:"Type",reason:"Suggestion",moreInfo:"More info",tryAgain:"Try again",similarWines:"Similar wines",byTheGlass:"By the glass",winePairingIntro:"For this wine, here are some suggested dishes:",askForDinner:"What would you like to have for dinner?",clearChatButton:"Clear Chat",widgetTitle:"FIND YOUR PERFECT WINE",widgetSubtitle:"Share anything on your mind—your meal, mood, budget, or occasion—and our AI sommelier will recommend the perfect wine in seconds",searchPlaceholder:"Enter a keyword or description","wineDetails.price":"Price","wineDetails.region":"Region","wineDetails.type":"Type","wineDetails.moreInfo":"More info","wineDetails.reason":"Reason","wineDetails.code":"Code","wineDetails.buy":"Buy",searchButton:"Search",priceRange:"Price Range",wineColor:"Wine Color",intensity:"Intensity",red:"Red",white:"White",rose:"Rosé",light:"Light",medium:"Medium",full:"Full",barTitle:"Bar Dishes",barSubtitle:"Select dishes below and click 'Send'",barSendButton:"Send",barResetButton:"Reset",barName:"Bar Name",barNotesPlaceholder:"Add your wishes here...",placeholderSuggestions:["Wine for pasta","Perfect with fish","Recommended for a party"],headerLine1:"Share anything on your mind —",headerLine2:"— and get recommendations of the perfect wine in seconds",headerMeal:"meal",headerMood:"mood",headerBudget:"budget",headerOccasion:"occasion",headerOr:"or",errorMessage:"Something went wrong. Please try again later.",noResultsMessage:"No results found for your search. Please try a different query.",ai_sommelier:"AI sommelier",consentText:"The wine assistant stores an anonymous identifier on this device to learn your taste and improve recommendations. You can use it without accepting.",consentAccept:"Accept",consentDecline:"Decline",consentPrivacy:"Privacy policy"},sr:{lang:"sr",welcomeMessage:"Šta planirate da jedete? Podelite svoje jelo i preporučiću vam savršeno vino uz obrok.",noResultsFound:"Nema rezultata.",somethingWentWrong:"Izvinite, nešto je pošlo po zlu.",chatButton1:"Pronađi vino",chatButton2:"Upari vino sada",chatButton3:"Zatraži preporuku",chatTitle:"Asistent za uparivanje vina 🍷",chatSubtitle:"Opišite svoj obrok i dobijte preporuku za 30 sekundi",inputPlaceholder:"npr. Tuna salata",sendButton:"Upari",poweredBy:"Pokreće",price:"Cena",region:"Regija",type:"Tip",reason:"Preporuka",moreInfo:"Više informacija",tryAgain:"Pokušaj ponovo",similarWines:"Slična vina",byTheGlass:"Na čašu",winePairingIntro:"Za ovo vino, preporučuju se sledeća jela:",askForDinner:"Šta biste želeli za večeru?",clearChatButton:"Obriši razgovor",widgetTitle:"PRONAĐITE SAVRŠENO VINO",widgetSubtitle:"Podelite bilo šta — obrok, raspoloženje, budžet ili priliku — i naš AI somelijer će vam za par sekundi preporučiti vino",searchPlaceholder:"Unesite ključnu reč ili opis","wineDetails.price":"Cena","wineDetails.region":"Regija","wineDetails.type":"Tip","wineDetails.moreInfo":"Više informacija","wineDetails.reason":"Razlog","wineDetails.code":"Šifra","wineDetails.buy":"Kupi",searchButton:"Pretraga",priceRange:"Cenovni raspon",wineColor:"Boja vina",intensity:"Intenzitet",red:"Crveno",white:"Belo",rose:"Roze",light:"Lako",medium:"Srednje",full:"Puno",barTitle:"Jela iz bara",barSubtitle:"Izaberite jela ispod i kliknite 'Pošalji'",barSendButton:"Pošalji",barResetButton:"Resetuj",barName:"Naziv bara",barNotesPlaceholder:"Dodajte svoje želje ovde...",placeholderSuggestions:["Vino uz pastu","Savršeno uz ribu","Preporuka za žurku"],headerLine1:"Podelite bilo šta što vam je na umu —",headerLine2:"— i dobijte preporuke za savršeno vino za par sekundi",headerMeal:"obrok",headerMood:"raspoloženje",headerBudget:"budžet",headerOccasion:"prilika",headerOr:"ili",errorMessage:"Nešto je pošlo po zlu. Molimo pokušajte ponovo kasnije.",noResultsMessage:"Nema rezultata za vašu pretragu. Molimo pokušajte sa drugačijim upitom.",ai_sommelier:"AI sommelier",consentText:"Vinski asistent čuva anonimni identifikator na ovom uređaju kako bi upoznao vaš ukus i poboljšao preporuke. Možete ga koristiti i bez prihvatanja.",consentAccept:"Prihvati",consentDecline:"Odbij",consentPrivacy:"Politika privatnosti"},de:{lang:"de",welcomeMessage:"Was möchten Sie essen? Beschreiben Sie Ihr Gericht und ich empfehle Ihnen den perfekten Wein dazu.",noResultsFound:"Keine Ergebnisse gefunden.",somethingWentWrong:"Entschuldigung, etwas ist schief gelaufen.",chatButton1:"Finde Dein Pairing",chatButton2:"Wein jetzt wählen",chatButton3:"Erhalte Weinberatung",chatTitle:"Wein & Speisen 🍷",chatSubtitle:"Beschreiben Sie Ihr Gericht und erhalten Sie in 30 Sekunden eine Empfehlung",inputPlaceholder:"z.B., Thunfischsalat",sendButton:"Kombinieren",poweredBy:"Unterstützt von",price:"Preis",region:"Region",type:"Typ",reason:"Anregung",moreInfo:"Mehr Info",tryAgain:"Nochmal versuchen",similarWines:"Ähnliche Weine",byTheGlass:"Glasweise",winePairingIntro:"Für diesen Wein gibt es folgende Essensvorschläge:",askForDinner:"Was möchten Sie zum Abendessen essen?",clearChatButton:"Chat löschen",widgetTitle:"FINDEN SIE IHREN PERFEKTEN WEIN",widgetSubtitle:"Teilen Sie alles, was Ihnen in den Sinn kommt—Ihre Mahlzeit, Stimmung, Ihr Budget oder Anlass—und unser KI-Sommelier empfiehlt Ihnen in Sekunden den perfekten Wein",placeholderSuggestions:["Wein für Pasta","Perfekt zu Fisch","Empfohlen für eine Party"],searchPlaceholder:"Geben Sie ein Stichwort oder eine Beschreibung ein","wineDetails.price":"Preis","wineDetails.region":"Region","wineDetails.type":"Typ","wineDetails.moreInfo":"Mehr Info","wineDetails.reason":"Grund","wineDetails.code":"Code","wineDetails.buy":"Kaufen",searchButton:"Suche",priceRange:"Preisspanne",wineColor:"Weinfarbe",intensity:"Intensität",red:"Rot",white:"Weiß",rose:"Rosé",light:"Leicht",medium:"Mittel",full:"Voll",barTitle:"Bar-Auswahl",barSubtitle:"Wählen Sie Ihre Gerichte und klicken Sie auf 'Senden'",barSendButton:"Senden",barResetButton:"Zurücksetzen",barName:"Name der Bar",headerLine1:"Teilen Sie alles, was Ihnen durch den Kopf geht —",headerLine2:"— und erhalten Sie in Sekundenschnelle Empfehlungen für den perfekten Wein",headerMeal:"Mahlzeit",headerMood:"Stimmung",headerBudget:"Budget",headerOccasion:"Anlass",headerOr:"oder",errorMessage:"Etwas ist schief gelaufen. Bitte versuchen Sie es später erneut.",noResultsMessage:"Keine Ergebnisse für Ihre Suche gefunden. Bitte versuchen Sie es mit einer anderen Anfrage.",ai_sommelier:"AI sommelier",consentText:"Der Weinassistent speichert eine anonyme Kennung auf diesem Gerät, um Ihren Geschmack kennenzulernen und Empfehlungen zu verbessern. Sie können ihn auch ohne Zustimmung nutzen.",consentAccept:"Akzeptieren",consentDecline:"Ablehnen",consentPrivacy:"Datenschutzerklärung"},ukr:{lang:"ukr",welcomeMessage:"Що ви збираєтесь їсти? Опишіть свою страву, і я порекомендую вам ідеальне вино.",noResultsFound:"Результатів не знайдено.",somethingWentWrong:"Вибачте, щось пішло не так.",chatButton1:"Знайти ідеальне поєднання",chatButton2:"Підібрати вино",chatButton3:"Отримати пораду",chatTitle:"Сомельє-помічник 🍷",chatSubtitle:"Опишіть свою страву і отримайте рекомендацію за 30 секунд",inputPlaceholder:"наприклад, Тунець із салатом",sendButton:"Підібрати",poweredBy:"Розроблено на основі",price:"Ціна",region:"Регіон",type:"Тип",reason:"Рекомендація",moreInfo:"Докладніше",tryAgain:"Спробувати ще",similarWines:"Схожі вина",byTheGlass:"На келих",winePairingIntro:"До цього вина підходять такі страви:",askForDinner:"Що ви хочете на вечерю?",clearChatButton:"Очистити чат",widgetTitle:"ЗНАЙДІТЬ ІДЕАЛЬНЕ ВИНО",widgetSubtitle:"Поділіться тим, що у вас на думці—їжа, настрій, бюджет чи подія—і наш AI-сомельє порекомендує вам ідеальне вино за секунди",searchPlaceholder:"Введіть ключове слово або опис","wineDetails.reason":"Причина","wineDetails.price":"Ціна","wineDetails.region":"Регіон","wineDetails.type":"Тип","wineDetails.moreInfo":"Докладніше","wineDetails.code":"Код","wineDetails.buy":"Купити",searchButton:"Пошук",priceRange:"Діапазон цін",wineColor:"Колір вина",intensity:"Інтенсивність",red:"Червоне",white:"Біле",rose:"Рожеве",light:"Легке",medium:"Середнє",full:"Повне",barTitle:"Закуски до вина",barSubtitle:"Виберіть страви нижче та натисніть «Надіслати»",barSendButton:"Надіслати",barResetButton:"Скинути",barName:"Назва бару",barNotesPlaceholder:"Додайте ваші побажання тут...",placeholderSuggestions:["Вино до пасти","Ідеально до риби","Рекомендуємо для вечірки"],headerLine1:"Поділіться будь-якими вашими думками —",headerLine2:"— і отримайте рекомендації щодо ідеального вина за секунди",headerMeal:"страва",headerMood:"настрій",headerBudget:"бюджет",headerOccasion:"подія",headerOr:"або",errorMessage:"Щось пішло не так. Будь ласка, спробуйте пізніше.",noResultsMessage:"За вашим запитом не знайдено результатів. Спробуйте інший запит.",ai_sommelier:"AI sommelier",consentText:"Винний помічник зберігає на цьому пристрої анонімний ідентифікатор, щоб враховувати ваш смак і покращувати рекомендації. Користуватися можна й без згоди.",consentAccept:"Прийняти",consentDecline:"Відхилити",consentPrivacy:"Політика конфіденційності"},ru:{lang:"ru",welcomeMessage:"Что вы планируете поесть? Напишите ваше блюдо, и я подберу идеальное вино к нему.",noResultsFound:"Результаты не найдены.",somethingWentWrong:"Извините, что-то пошло не так.",chatButton1:"Найти сочетание",chatButton2:"Подобрать вино",chatButton3:"Получить совет",chatTitle:"Ассистент по подбору вина 🍷",chatSubtitle:"Опишите ваше блюдо и получите рекомендацию за 30 секунд",inputPlaceholder:"например, Тунец с салатом",sendButton:"Подобрать",poweredBy:"Powered by",price:"Цена",region:"Регион",type:"Тип",reason:"Рекомендация",moreInfo:"Подробнее",tryAgain:"Попробовать ещё",similarWines:"Похожие вина",byTheGlass:"По бокалам",winePairingIntro:"К этому вину подходят следующие блюда:",askForDinner:"Что бы вы хотели на ужин?",clearChatButton:"Очистить чат",widgetTitle:"НАЙДИТЬ ИДЕАЛЬНОЕ ВИНО",widgetSubtitle:"Поделитесь вашими предпочтениями — блюдом, настроением, бюджетом или случаем — и наш AI-сомелье подберёт идеальное вино за секунды",searchPlaceholder:"Введите ключевое слово или описание","wineDetails.price":"Цена","wineDetails.region":"Регион","wineDetails.type":"Тип","wineDetails.moreInfo":"Подробнее","wineDetails.reason":"Причина","wineDetails.code":"Код","wineDetails.buy":"Купить",searchButton:"Поиск",priceRange:"Диапазон цен",wineColor:"Цвет вина",intensity:"Интенсивность",red:"Красное",white:"Белое",rose:"Розовое",light:"Лёгкое",medium:"Среднее",full:"Полное",barTitle:"Закуски к вину",barSubtitle:"Выберите блюда ниже и нажмите 'Отправить'",barSendButton:"Отправить",barResetButton:"Сбросить",barName:"Название бара",barNotesPlaceholder:"Добавьте ваши пожелания здесь...",placeholderSuggestions:["Вино для пасты","Идеально к рыбе","Рекомендуем для вечеринки"],headerLine1:"Поделитесь любыми вашими мыслями —",headerLine2:"— и получите рекомендации по идеальному вину за считанные секунды",headerMeal:"блюдо",headerMood:"настроение",headerBudget:"бюджет",headerOccasion:"случай",headerOr:"или",errorMessage:"Что-то пошло не так. Пожалуйста, попробуйте позже.",noResultsMessage:"По вашему запросу не найдено результатов. Попробуйте другой запрос.",ai_sommelier:"AI sommelier",consentText:"Винный помощник сохраняет на этом устройстве анонимный идентификатор, чтобы учитывать ваш вкус и улучшать рекомендации. Пользоваться можно и без согласия.",consentAccept:"Принять",consentDecline:"Отклонить",consentPrivacy:"Политика конфиденциальности"},kk:{lang:"kk",welcomeMessage:"Сіз не жегіңіз келеді? Тағамыңызды сипаттаңыз, мен оған керемет шарап ұсынамын.",noResultsFound:"Нәтижелер табылмады.",somethingWentWrong:"Кешіріңіз, бірдеңе дұрыс болмады.",chatButton1:"Сәйкестік табу",chatButton2:"Шарап таңдау",chatButton3:"Кеңес алу",chatTitle:"Шарап таңдаушы көмекші 🍷",chatSubtitle:"Тағамыңызды сипаттаңыз — 30 секундта ұсыныс алыңыз",inputPlaceholder:"мысалы, тунец салатымен",sendButton:"Таңдау",poweredBy:"Powered by",price:"Бағасы",region:"Өңір",type:"Түрі",reason:"Ұсыныс",moreInfo:"Толығырақ",tryAgain:"Қайта көру",similarWines:"Ұқсас шараптар",byTheGlass:"Бокалмен",winePairingIntro:"Бұл шарапқа келесі тағамдар сәйкес келеді:",askForDinner:"Кешкі асқа не қалайсыз?",clearChatButton:"Чатты тазалау",widgetTitle:"КЕРЕМЕТ ШАРАПТЫ ТАБЫҢЫЗ",widgetSubtitle:"Таңдауларыңызды бөлісіңіз — тағам, көңіл-күй, бюджет немесе жағдай — және біздің AI-сомелье сізге бірнеше секундта шарап ұсынады",searchPlaceholder:"Кілт сөзді немесе сипаттаманы енгізіңіз","wineDetails.price":"Бағасы","wineDetails.region":"Өңір","wineDetails.type":"Түрі","wineDetails.moreInfo":"Толығырақ","wineDetails.reason":"Себебі","wineDetails.code":"Код","wineDetails.buy":"Сатып алу",searchButton:"Іздеу",priceRange:"Баға диапазоны",wineColor:"Шарап түсі",intensity:"Қанықтылық",red:"Қызыл",white:"Ақ",rose:"Розалық",light:"Жеңіл",medium:"Орташа",full:"Толық",barTitle:"Шарапқа арналған тіскебасарлар",barSubtitle:"Төмендегі тағамдарды таңдаңыз және 'Жіберу' батырмасын басыңыз",barSendButton:"Жіберу",barResetButton:"Қалпына келтіру",barName:"Бар атауы",barNotesPlaceholder:"Мұнда өз тілектеріңізді жазыңыз...",placeholderSuggestions:["Пастаға арналған шарап","Балыққа тамаша үйлеседі","Кешке ұсынуға болады"],headerLine1:"Ойларыңызбен бөлісіңіз —",headerLine2:"— және бірнеше секундта мінсіз шарап ұсынысын алыңыз",headerMeal:"тағам",headerMood:"көңіл-күй",headerBudget:"бюджет",headerOccasion:"жағдай",headerOr:"немесе",errorMessage:"Бірдеңе дұрыс болмады. Кейінірек қайта көріңіз.",noResultsMessage:"Іздеуіңізге сәйкес нәтиже табылмады. Басқа сұрау қолданып көріңіз.",ai_sommelier:"AI sommelier",consentText:"Шарап көмекшісі сіздің талғамыңызды ескеріп, ұсыныстарды жақсарту үшін осы құрылғыда анонимді идентификатор сақтайды. Келісімсіз де пайдалана аласыз.",consentAccept:"Қабылдау",consentDecline:"Бас тарту",consentPrivacy:"Құпиялылық саясаты"},pt:{lang:"pt",welcomeMessage:"O que você planeja comer? Descreva seu prato e eu recomendarei a harmonização perfeita.",noResultsFound:"Nenhum resultado encontrado.",somethingWentWrong:"Desculpe, algo deu errado.",chatButton1:"Encontre sua harmonização",chatButton2:"Harmonizar vinho agora",chatButton3:"Receber conselho de vinho",chatTitle:"Assistente de Harmonização de Vinhos 🍷",chatSubtitle:"Descreva sua refeição e receba uma recomendação em 30 segundos",inputPlaceholder:"ex., Salada de atum",sendButton:"Harmonizar",poweredBy:"Desenvolvido por",price:"Preço",region:"Região",type:"Tipo",reason:"Sugestão",moreInfo:"Mais informações",tryAgain:"Tentar de novo",similarWines:"Vinhos semelhantes",byTheGlass:"Por taça",winePairingIntro:"Para este vinho, aqui estão algumas sugestões de pratos:",askForDinner:"O que você gostaria de jantar?",clearChatButton:"Limpar chat",widgetTitle:"ENCONTRE SEU VINHO PERFEITO",widgetSubtitle:"Compartilhe o que tiver em mente — sua refeição, humor, orçamento ou ocasião — e nosso sommelier de IA recomendará o vinho perfeito em segundos",searchPlaceholder:"Digite uma palavra-chave ou descrição","wineDetails.reason":"Motivo","wineDetails.price":"Preço","wineDetails.region":"Região","wineDetails.type":"Tipo","wineDetails.moreInfo":"Mais informações","wineDetails.code":"Código","wineDetails.buy":"Comprar",searchButton:"Pesquisar",priceRange:"Faixa de preço",wineColor:"Cor do vinho",intensity:"Intensidade",red:"Tinto",white:"Branco",rose:"Rosé",light:"Leve",medium:"Médio",full:"Encorpado",barTitle:"Pratos do bar",barSubtitle:"Selecione os pratos abaixo e clique em 'Enviar'",barSendButton:"Enviar",barResetButton:"Resetar",barName:"Nome do bar",barNotesPlaceholder:"Adicione seus desejos aqui...",placeholderSuggestions:["Vinho para massa","Perfeito com peixe","Recomendado para uma festa"],headerLine1:"Compartilhe o que tiver em mente —",headerLine2:"— e receba recomendações do vinho perfeito em segundos",headerMeal:"refeição",headerMood:"humor",headerBudget:"orçamento",headerOccasion:"ocasião",headerOr:"ou",errorMessage:"Algo deu errado. Por favor, tente novamente mais tarde.",noResultsMessage:"Nenhum resultado encontrado para sua pesquisa. Por favor, tente uma consulta diferente.",ai_sommelier:"AI sommelier",consentText:"O assistente de vinhos guarda um identificador anónimo neste dispositivo para conhecer o seu gosto e melhorar as recomendações. Pode usá-lo sem aceitar.",consentAccept:"Aceitar",consentDecline:"Recusar",consentPrivacy:"Política de privacidade"}};function qs(e){return{id:String(e.id),lang:e.lang,available_languages:e.available_languages?e.available_languages:[e.lang],open_ai_key:e.open_ai_key??null,currency:e.currency,title:e.title,requires_cookie_consent:e.requires_cookie_consent===!0}}const Fs={0:{logoUrl:null,brandColor:"#7B2BEB"},29:{logoUrl:"https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media/plou_logo.jpg",brandColor:"#e6c6bb"},25:{logoUrl:null,brandColor:"#000000",wineaterColor:"#000000",buttonUppercase:!0,customCss:`
|
|
3
3
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700&display=swap');
|
|
4
4
|
:root { --wineater-font-primary: 'Roboto', sans-serif; }
|
|
5
5
|
#wr-Custom {
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
background-color: #8bae98;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
`}};function
|
|
103
|
+
`}};function Us(e){const t={logoUrl:null,brandColor:"#7B2BEB",wineaterColor:"#7B2BEB",customCss:`
|
|
104
104
|
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');
|
|
105
105
|
:root { --wineater-font-primary: 'Bricolage Grotesque', serif; }
|
|
106
|
-
`},n=
|
|
106
|
+
`},n=Fs[e]||{};return{...t,...n}}const Hs=24*60*60*1e3;let ie=He({storeConfig:null,currentLanguage:"en",isConfigLoaded:!1,uiConfig:null});const ve={getLanguageFromURL(){return new URLSearchParams(window.location.search).get("lang")},getAppLanguage(){return(ie==null?void 0:ie.currentLanguage)??"en"},getStoreLanguage(){var e;return((e=ie.storeConfig)==null?void 0:e.lang)??null},getApiKey(){var e;return((e=ie.storeConfig)==null?void 0:e.open_ai_key)??null},getStoreId(){var e;return((e=ie.storeConfig)==null?void 0:e.id)??null},setStoreLanguage(e){if(ie.storeConfig&&ie.storeConfig.available_languages.includes(e)){ie.currentLanguage=e;const t=new URLSearchParams(window.location.search);t.set("lang",e);const n=`${window.location.pathname}?${t.toString()}`;window.history.replaceState({},"",n)}else throw new Error(`Language ${e} is not available in store configuration.`)},getSupportedLanguages(){var e;return((e=ie.storeConfig)==null?void 0:e.available_languages)??["en"]},getConsentRequired(){var e;return((e=ie.storeConfig)==null?void 0:e.requires_cookie_consent)===!0},getCurrency(){var e;return((e=ie.storeConfig)==null?void 0:e.currency)??"USD"},applyStoreConfig(e){ie.storeConfig=qs(e),ie.currentLanguage=ie.storeConfig.lang;const t=this.getLanguageFromURL();t&&ie.storeConfig.available_languages.includes(t)?this.setStoreLanguage(t):this.setStoreLanguage(ie.storeConfig.lang),this.setUiConfig(Us(ie.storeConfig.id)),Es(ie.storeConfig.requires_cookie_consent),ie.isConfigLoaded=!0},async initializeStore(){const e=`${Xr}:store-config:v2`,t=async()=>{const n=await wn.getStoreConfig();return ei(e,n),n};try{const n=$r(e,Hs);if(n)try{this.applyStoreConfig(n),t().catch(()=>{});return}catch(r){console.warn("Ignoring invalid cached store config:",r)}this.applyStoreConfig(await t())}catch(n){console.error("Failed to initialize store:",n),ie.isConfigLoaded=!1}},isInitialized(){return ie.isConfigLoaded},getUiConfig(){return ie.uiConfig},setUiConfig(e){ie.uiConfig=e}},Vs={en:"en-US",de:"de-DE",fr:"fr-FR",es:"es-ES",it:"it-IT",ja:"ja-JP",zh:"zh-CN",ru:"ru-RU",kk:"kk-KZ",pt:"pt-PT"};function Gs(e,t,n="en"){try{return new Intl.NumberFormat(Vs[n]||"en-US",{style:"currency",currency:t,currencyDisplay:"narrowSymbol"}).format(e)}catch{return e.toString()}}function se({key:e,lang:t}){const n=js,r=ve.getUiConfig(),i=(r==null?void 0:r.translations)||{};if(i[t]&&i[t][e])return i[t][e];if(n[t]&&n[t][e])return n[t][e];throw new Error(`Translation for key "${e}" not found in language "${t}".`)}async function Ks({sourceLang:e,targetLang:t,texts:n,apiKey:r}){var u,v,g,f;if(!r||!e||!t||e===t)return n;const i="https://api.openai.com/v1/chat/completions",o={"Content-Type":"application/json",Authorization:`Bearer ${r}`},l=Object.entries(n).map(([d,y])=>({key:d,text:y})),c=`
|
|
107
107
|
You are a professional translator.
|
|
108
108
|
|
|
109
109
|
The input texts are written in language with code "${e}". Your task is to translate them strictly to the target language with code "${t}".
|
|
@@ -127,19 +127,19 @@ Output:
|
|
|
127
127
|
]
|
|
128
128
|
|
|
129
129
|
Now translate the following input:
|
|
130
|
-
${JSON.stringify(
|
|
131
|
-
`,
|
|
130
|
+
${JSON.stringify(l,null,2)}
|
|
131
|
+
`,s=JSON.stringify({model:"gpt-3.5-turbo",messages:[{role:"system",content:"You are a professional translator."},{role:"user",content:c}],temperature:.2,max_tokens:1e3});try{const y=await(await fetch(i,{method:"POST",headers:o,body:s})).json(),p=(f=(g=(v=(u=y==null?void 0:y.choices)==null?void 0:u[0])==null?void 0:v.message)==null?void 0:g.content)==null?void 0:f.trim();if(!p)throw new Error("No response from OpenAI");const m=JSON.parse(p),x={};return m.forEach(A=>{A.key&&A.text!==void 0&&(x[A.key]=A.text)}),{...n,...x}}catch(d){return console.error("Error translating texts:",d),n}}Ta();var Ys=Pt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38 38" fill="none"><path d="M10.036 4.96326H28.2826L34.3648 14.0865L19.1593 33.8537L3.95381 14.0865L10.036 4.96326Z" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.6388 4.96326L13.0771 14.0865L19.1593 33.8537L25.2415 14.0865L20.6799 4.96326" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.95381 14.0867H34.3648" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Ro(e,t){let n=ze(t,"className",8,""),r=ze(t,"size",8,20);var i=Ys();B(()=>{It(i,0,pn(n())),D(i,"width",r()),D(i,"height",r())}),k(e,i)}var Zs=Pt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38 38" fill="none"><path d="M29.533 21.4034C31.7986 19.1834 34.0946 16.5224 34.0946 13.0404C34.0946 10.8224 33.2135 8.69521 31.6451 7.12684C30.0768 5.55847 27.9496 4.67737 25.7316 4.67737C23.0554 4.67737 21.1699 5.43764 18.8891 7.71847C16.6083 5.43764 14.7228 4.67737 12.0467 4.67737C9.82865 4.67737 7.70148 5.55847 6.13311 7.12684C4.56474 8.69521 3.68364 10.8224 3.68364 13.0404C3.68364 16.5376 5.96446 19.1986 8.24528 21.4034L18.8891 32.0472L29.533 21.4034Z" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path><path d="M18.8891 19.8829L17.3686 18.3623L20.4097 15.3212L15.848 10.7596L18.8891 7.71851" stroke="currentColor" stroke-width="3.0411" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Wo(e,t){let n=ze(t,"className",8,""),r=ze(t,"size",8,20);var i=Zs();B(()=>{It(i,0,pn(n())),D(i,"width",r()),D(i,"height",r())}),k(e,i)}var Qs=Pt('<svg viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="M19.57 17.655a3.801 3.801 0 1 0 0-7.602 3.801 3.801 0 0 0 0 7.602Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="M19.57 3.97a9.884 9.884 0 0 0-9.458 6.995c-1.673 4.76-1.186 5.93-4.835 9.245a4.562 4.562 0 0 0 2.889 8.09c6.082 0 12.772-2.738 17.334-6.54a9.885 9.885 0 0 0-5.93-17.79Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.041" d="m28.693 10.053 3.33 6.842c.316.983.475 2.009.471 3.041a9.867 9.867 0 0 1-3.953 7.907c-4.562 3.801-11.252 6.538-17.334 6.538a4.562 4.562 0 0 1-4.075-2.524l-2.92-5.839"></path></svg>');function ti(e,t){let n=ze(t,"className",8,""),r=ze(t,"size",8,20);var i=Qs();B(()=>{It(i,0,pn(n())),D(i,"width",r()),D(i,"height",r())}),k(e,i)}var Js=Pt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34" fill="none"><path d="M9.03846 17.0001C10.3456 12.1888 15.9077 8.65686 20.858 8.65686C25.8083 8.65686 29.2846 12.1888 30.5917 17.0001C29.2846 21.8252 25.8083 25.3432 20.858 25.3432C15.9077 25.3432 10.3456 21.8252 9.03846 17.0001Z" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M25.0296 17V17.6953" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22.2485 25.2457C20.4397 22.8774 19.4599 19.98 19.4599 16.9999C19.4599 14.0198 20.4397 11.1224 22.2485 8.75403" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.73372 15.1506C9.73372 11.4379 7.75916 8.6151 3.79615 7.96155C2.40562 10.0473 2.40562 14.9142 4.11597 17C2.39171 19.0858 2.39171 23.9527 3.79615 26.0385C7.75916 25.3849 9.73372 22.5621 9.73372 18.8494" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.545 10.4089C14.1834 8.48998 12.7512 6.20951 11.1243 4.48525H19.1893C19.8491 4.4828 20.4883 4.71502 20.9927 5.14042C21.497 5.56582 21.8337 6.15668 21.9426 6.80744L22.2624 8.75418" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22.2624 25.2459L21.9426 27.1926C21.8337 27.8434 21.497 28.4342 20.9927 28.8596C20.4883 29.285 19.8491 29.5172 19.1893 29.5148H13.2101C14.5573 27.9873 15.2948 26.0172 15.2819 23.9805" stroke="currentColor" stroke-width="2.78106" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Mo(e,t){let n=ze(t,"className",8,""),r=ze(t,"size",8,20);var i=Js();B(()=>{It(i,0,pn(n())),D(i,"width",r()),D(i,"height",r())}),k(e,i)}var Xs=L('<span><!></span><span class="wr-Header-label svelte-oiwvqb"> </span>',1),$s=L('<!><span class="wr-Header-label svelte-oiwvqb"> </span>',1),el=L('<!><span class="wr-Header-label svelte-oiwvqb"> </span>',1),tl=L('<h1 class="wr-Header-title svelte-oiwvqb"></h1>'),nl=L('<h1 class="wr-Header-title svelte-oiwvqb"> <span><!></span> <span class="wr-Header-label svelte-oiwvqb"> </span>, <!> <span class="wr-Header-label svelte-oiwvqb"> </span> <br/> <!> <span class="wr-Header-label svelte-oiwvqb"> </span> </h1>'),rl=L('<div class="wr-Header"><!></div>');const il={hash:"svelte-oiwvqb",code:`.wr-Header-title.svelte-oiwvqb {font-weight:600;font-size:24px;margin:0 auto;line-height:1.3;color:#333;text-align:center;
|
|
132
132
|
|
|
133
133
|
/* TODO: add wineater-color to svg */}.wr-Header-icon {display:inline-block;vertical-align:middle;color:var(--wr-wineater-color);}.wr-Header-label.svelte-oiwvqb {color:var(--wr-wineater-color);font-weight:500;}
|
|
134
134
|
|
|
135
135
|
@media screen and (max-width: 768px) {.wr-Header-title.svelte-oiwvqb {display:none;}
|
|
136
|
-
}`};function
|
|
136
|
+
}`};function ol(e,t){nt(t,!0),lt(e,il);let n=re(()=>ve.getAppLanguage()),r=re(()=>ve.getUiConfig()),i=re(()=>{var f,d;return((f=window==null?void 0:window.wineaterData)==null?void 0:f.TITLE_TEXT)||((d=a(r))==null?void 0:d.titleText)||null}),o=Y(He(ti));function l(f){return f.split(/(meal|mood|occasion)/gi).map(d=>({keyword:/^(meal|mood|occasion)$/i.test(d)?d.toLowerCase():null,text:d}))}let c=re(()=>a(i)?l(a(i)):null);var s=rl(),u=T(s);{var v=f=>{var d=tl();Ct(d,21,()=>a(c),un,(y,p)=>{var m=Xe(),x=we(m);{var A=_=>{var E=Xs(),P=we(E),S=T(P);fo(S,()=>a(o),(G,q)=>{q(G,{className:"wr-Header-icon",size:"28"})});var R=I(P),W=T(R);B(()=>j(W,a(p).text)),st("mouseenter",P,()=>w(o,Mo,!0)),st("mouseleave",P,()=>w(o,ti,!0)),k(_,E)},O=_=>{var E=Xe(),P=we(E);{var S=W=>{var G=$s(),q=we(G);Wo(q,{className:"wr-Header-icon",size:"28"});var F=I(q),ge=T(F);B(()=>j(ge,a(p).text)),k(W,G)},R=W=>{var G=Xe(),q=we(G);{var F=J=>{var Se=el(),ae=we(Se);Ro(ae,{className:"wr-Header-icon",size:"28"});var Mt=I(ae),Cn=T(Mt);B(()=>j(Cn,a(p).text)),k(J,Se)},ge=J=>{var Se=At();B(()=>j(Se,a(p).text)),k(J,Se)};H(q,J=>{a(p).keyword==="occasion"?J(F):J(ge,!1)},!0)}k(W,G)};H(P,W=>{a(p).keyword==="mood"?W(S):W(R,!1)},!0)}k(_,E)};H(x,_=>{a(p).keyword==="meal"?_(A):_(O,!1)})}k(y,m)}),k(f,d)},g=f=>{var d=nl(),y=T(d),p=I(y),m=T(p);fo(m,()=>a(o),(q,F)=>{F(q,{className:"wr-Header-icon",size:"28"})});var x=I(p,2),A=T(x),O=I(x,2);Wo(O,{className:"wr-Header-icon",size:"28"});var _=I(O,2),E=T(_),P=I(_,3),S=I(P);Ro(S,{className:"wr-Header-icon",size:"28"});var R=I(S,2),W=T(R),G=I(R);B((q,F,ge,J,Se,ae)=>{j(y,`${q??""} `),j(A,F),j(E,ge),j(P,` ${J??""} `),j(W,Se),j(G,` ${ae??""}`)},[()=>se({key:"headerLine1",lang:a(n)}),()=>se({key:"headerMeal",lang:a(n)}),()=>se({key:"headerMood",lang:a(n)}),()=>se({key:"headerOr",lang:a(n)}),()=>se({key:"headerOccasion",lang:a(n)}),()=>se({key:"headerLine2",lang:a(n)})]),st("mouseenter",p,()=>w(o,Mo,!0)),st("mouseleave",p,()=>w(o,ti,!0)),k(f,d)};H(u,f=>{a(c)?f(v):f(g,!1)})}k(e,s),rt()}var al=L('<option class="wr-Footer-lang"> </option>'),sl=L('<select class="wr-Footer-dropdown svelte-1sr6y3t"></select>'),ll=L('<footer class="wr-Footer svelte-1sr6y3t"><div class="wr-Footer-center svelte-1sr6y3t"><a href="https://wineater.com" class="wr-Footer-link svelte-1sr6y3t" target="_blank"><span class="wr-Footer-text"> </span> <img class="wr-Footer-logo svelte-1sr6y3t" alt="Wineater Logo" loading="lazy" decoding="async"/> <span class="wr-Footer-text wr-Footer-text--sommelier svelte-1sr6y3t"> </span></a></div> <!></footer>');const cl={hash:"svelte-1sr6y3t",code:`.wr-Footer.svelte-1sr6y3t {position:relative;border-top:2px solid #f6f7fd;font-weight:200;padding:12px 24px;min-height:40px;}.wr-Footer-center.svelte-1sr6y3t {position:absolute;left:50%;transform:translateX(-50%);text-align:center;}.wr-Footer-dropdown.svelte-1sr6y3t {position:absolute;right:0px;top:50%;transform:translateY(-50%);padding:4px;border-radius:6px;border:2px solid var(--wr-brand-color);background-color:white;color:var(--wr-brand-color);font-weight:500;font-size:12px;cursor:pointer;transition:all 0.2s ease;}.wr-Footer-dropdown.svelte-1sr6y3t:hover {box-shadow:0 4px 8px rgba(123, 43, 235, 0.2);}.wr-Footer-link.svelte-1sr6y3t {text-decoration:none;display:flex;align-items:center;white-space:nowrap;gap:8px;color:#a8a8a8;font-size:12px;line-height:16px;transition:opacity 0.2s ease;}.wr-Footer-link.svelte-1sr6y3t:hover {opacity:0.8;}.wr-Footer-logo.svelte-1sr6y3t {height:16px;width:auto;color:#a8a8a8;}
|
|
137
137
|
|
|
138
138
|
@media screen and (max-width: 768px) {.wr-Footer-text--sommelier.svelte-1sr6y3t {display:none;}
|
|
139
|
-
}`};function
|
|
139
|
+
}`};function ul(e,t){nt(t,!0),lt(e,cl);let n=ze(t,"countryCode",3,null),r=re(()=>ve.getAppLanguage()),i=re(()=>ve.getSupportedLanguages()),o=re(()=>ve.getStoreId());function l(x){const O=x.target.value;Le(Oe.LANGUAGE_CHANGED,a(o),{from_language:a(r),to_language:O}),ve.setStoreLanguage(O)}var c=ll(),s=T(c),u=T(s),v=T(u),g=T(v),f=I(v,2),d=I(f,2),y=T(d),p=I(s,2);{var m=x=>{var A=sl();A.__change=l,Ct(A,21,()=>a(i),un,(_,E)=>{var P=al(),S=T(P),R={};B(W=>{ws(P,a(E)===a(r)),j(S,W),R!==(R=a(E))&&(P.value=(P.__value=a(E))??"")},[()=>a(E).toUpperCase()]),k(_,P)});var O;ps(A),B(()=>{O!==(O=a(r))&&(A.value=(A.__value=a(r))??"",vo(A,a(r)))}),k(x,A)};H(p,x=>{a(i).length>1&&x(m)})}B((x,A)=>{j(g,x),D(f,"src",n()==="ru"?"https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media/divino_logo.svg?x=5":"https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media/logo_medium_gray.svg"),j(y,A)},[()=>se({key:"poweredBy",lang:a(r)}),()=>se({key:"ai_sommelier",lang:a(r)})]),k(e,c),rt()}ur(["change"]);var dl=L('<a rel="noopener noreferrer"><!></a>'),fl=L("<button><!></button>");const hl={hash:"svelte-8cxv3l",code:`.wr-Action.svelte-8cxv3l {background:transparent;border:none;font-family:inherit;cursor:pointer;display:block;text-decoration:none;transition:background 0.2s,
|
|
140
140
|
color 0.2s,
|
|
141
|
-
box-shadow 0.2s;}.wr-Action.primary.svelte-8cxv3l {background:var(--wr-brand-color);color:#fff;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500;&:hover {opacity:0.8;}}.wr-Action.outlined.svelte-8cxv3l {background:transparent;color:var(--wr-brand-color);border:2px solid var(--wr-brand-color);border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500;&:hover {box-shadow:0 4px 8px rgba(123, 43, 235, 0.25);background-color:var(--wr-brand-color);color:#fff;}}.wr-Action--uppercase.svelte-8cxv3l {text-transform:uppercase;}`};function
|
|
142
|
-
opacity 0.3s ease-in-out;}.wr-Search-input.svelte-1wah7ro:focus {border-color:var(--wr-brand-color);}.wr-Search-input.svelte-1wah7ro:focus::placeholder {opacity:0.5;}`};function
|
|
141
|
+
box-shadow 0.2s;}.wr-Action.primary.svelte-8cxv3l {background:var(--wr-brand-color);color:#fff;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500;&:hover {opacity:0.8;}}.wr-Action.outlined.svelte-8cxv3l {background:transparent;color:var(--wr-brand-color);border:2px solid var(--wr-brand-color);border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500;&:hover {box-shadow:0 4px 8px rgba(123, 43, 235, 0.25);background-color:var(--wr-brand-color);color:#fff;}}.wr-Action--uppercase.svelte-8cxv3l {text-transform:uppercase;}`};function Gt(e,t){nt(t,!0),lt(e,hl);let n=ze(t,"type",3,"button"),r=ze(t,"variant",3,"primary"),i=ze(t,"target",3,"_self"),o=ve.getUiConfig(),l=`wr-Action ${r()} ${t.className||""} ${o.buttonUppercase?"wr-Action--uppercase":""}`.trim();var c=Xe(),s=we(c);{var u=g=>{var f=dl();f.__click=function(...y){var p;(p=t.handleClick)==null||p.apply(this,y)};var d=T(f);uo(d,t,"default",{}),B(()=>{It(f,1,pn(l),"svelte-8cxv3l"),D(f,"href",t.href),D(f,"id",t.id),D(f,"target",i())}),k(g,f)},v=g=>{var f=fl();f.__click=function(...y){var p;(p=t.handleClick)==null||p.apply(this,y)};var d=T(f);uo(d,t,"default",{}),B(()=>{It(f,1,pn(l),"svelte-8cxv3l"),D(f,"type",n()),D(f,"id",t.id)}),k(g,f)};H(s,g=>{t.href?g(u):g(v,!1)})}k(e,c),rt()}ur(["click"]);var vl=L('<form class="wr-Search svelte-1wah7ro"><span class="wr-Search-icon svelte-1wah7ro"></span> <input class="wr-Search-input svelte-1wah7ro" type="text"/> <!></form>');const pl={hash:"svelte-1wah7ro",code:`.wr-Search.svelte-1wah7ro {position:relative;margin:12px auto;padding:0 6px;display:flex;align-items:center;border:2px solid #d5d9ee;border-radius:10px;}.wr-Search-icon.svelte-1wah7ro {left:12px;width:24px;height:24px;flex:0 0 auto;background-image:url("data:image/svg+xml,%3Csvg%20width=%2224%22%20height=%2225%22%20viewBox=%220%200%2024%2025%22%20fill=%22none%22%20xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d=%22M11%2019.3884C15.4183%2019.3884%2019%2015.8067%2019%2011.3884C19%206.97015%2015.4183%203.38843%2011%203.38843C6.58172%203.38843%203%206.97015%203%2011.3884C3%2015.8067%206.58172%2019.3884%2011%2019.3884Z%22%20stroke=%22%238250D2%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/%3E%3Cpath%20d=%22M21%2021.3884L16.7%2017.0884%22%20stroke=%22%238250D2%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;z-index:2;}.wr-Search-input.svelte-1wah7ro {flex:1 1 0%;min-width:0;padding:12px;font-size:16px;border:none;border-radius:10px;outline:none;transition:border 0.2s ease;}.wr-Search-input.svelte-1wah7ro::placeholder {color:var(--wr-wineater-color);opacity:1;transition:color 0.3s ease,
|
|
142
|
+
opacity 0.3s ease-in-out;}.wr-Search-input.svelte-1wah7ro:focus {border-color:var(--wr-brand-color);}.wr-Search-input.svelte-1wah7ro:focus::placeholder {opacity:0.5;}`};function gl(e,t){nt(t,!0),lt(e,pl);let n=ze(t,"searchQuery",15),r,i=Y(!1),o=Y(0),l=Y(0),c=Y(!0),s=Y(!1),u=re(()=>ve.getAppLanguage()),v=0;function g(){return r}function f(){const _=++v,E=se({key:"placeholderSuggestions",lang:a(u)});if(!r||!E.length)return;w(s,!0);const P=()=>{if(_!==v||!r||!a(s)||a(i)||n().length)return;const S=E[a(o)];if(a(c)){if(r.placeholder=S.substring(0,Mi(l)),a(l)>S.length){w(c,!1),setTimeout(P,1600);return}setTimeout(P,90)}else{if(r.placeholder=S.substring(0,Mi(l,-1)),a(l)<0){w(c,!0),w(o,(a(o)+1)%E.length),setTimeout(P,450);return}setTimeout(P,45)}};P()}function d(){w(s,!1)}function y(){w(i,!0),d(),r&&(r.placeholder="")}function p(){w(i,!1),w(l,0),w(c,!0),w(s,!1)}Bn(()=>{if(!r||n().length>0)return;v++,w(s,!1),w(o,0),w(l,0),w(c,!0);const _=se({key:"placeholderSuggestions",lang:a(u)});_&&_.length?r.placeholder=_[0]:r.placeholder=se({key:"searchPlaceholder",lang:a(u)})}),Bn(()=>{r&&t.initialized&&!a(i)&&!n().length&&!a(s)&&f(),n().length>0&&a(s)&&(w(s,!1),v++)}),Ur(()=>{});var m={getSearchElement:g},x=vl(),A=I(T(x),2);xs(A,_=>r=_,()=>r);var O=I(A,2);return Gt(O,{className:"wr-Search-button",type:"submit",variant:"primary",children:(_,E)=>{var P=At();B(S=>j(P,S),[()=>se({key:"searchButton",lang:a(u)})]),k(_,P)},$$slots:{default:!0}}),st("submit",x,function(..._){var E;(E=t.onSubmit)==null||E.apply(this,_)}),st("focus",A,y),st("blur",A,p),bs(A,n),k(e,x),rt(m)}var ml=L('<div class="wr-Skeleton-tile svelte-f6xbvk"><div class="wr-Skeleton-block wr-Skeleton-image svelte-f6xbvk"></div> <div class="wr-Skeleton-block wr-Skeleton-price svelte-f6xbvk"></div> <div class="wr-Skeleton-block wr-Skeleton-title svelte-f6xbvk"></div> <div class="wr-Skeleton-block wr-Skeleton-title wr-Skeleton-title--short svelte-f6xbvk"></div> <div class="wr-Skeleton-block wr-Skeleton-button svelte-f6xbvk"></div></div>'),wl=L('<div class="wr-Skeleton svelte-f6xbvk" aria-hidden="true"></div>');const _l={hash:"svelte-f6xbvk",code:`.wr-Skeleton.svelte-f6xbvk {display:grid;grid-template-columns:repeat(4, 1fr);}.wr-Skeleton-tile.svelte-f6xbvk {display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 8px;border-right:2px solid #f6f7fd;}.wr-Skeleton-tile.svelte-f6xbvk:last-child {border-right:none;}.wr-Skeleton-block.svelte-f6xbvk {border-radius:6px;background:linear-gradient(90deg, #f1f2f8 25%, #f8f9fc 50%, #f1f2f8 75%);background-size:200% 100%;
|
|
143
143
|
animation: svelte-f6xbvk-wr-shimmer 1.2s linear infinite;}.wr-Skeleton-image.svelte-f6xbvk {width:60%;height:200px;margin-bottom:6px;}.wr-Skeleton-price.svelte-f6xbvk {width:40px;height:16px;}.wr-Skeleton-title.svelte-f6xbvk {width:80%;height:14px;}.wr-Skeleton-title--short.svelte-f6xbvk {width:55%;}.wr-Skeleton-button.svelte-f6xbvk {width:96px;height:36px;margin-top:14px;border-radius:10px;}
|
|
144
144
|
|
|
145
145
|
@keyframes svelte-f6xbvk-wr-shimmer {
|
|
@@ -156,8 +156,8 @@ ${JSON.stringify(s,null,2)}
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
@media screen and (max-width: 768px) {.wr-Skeleton.svelte-f6xbvk {display:flex;gap:8px;overflow:hidden;padding:8px 0;}.wr-Skeleton-tile.svelte-f6xbvk {flex:0 0 240px;}
|
|
159
|
-
}`};function Ro(e){bt(e,ml);var t=gl();zt(t,4,()=>[0,1,2,3],n=>n,(n,r)=>{var i=pl();x(n,i)}),x(e,t)}var wl=M('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'),_l=M('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'),bl=M('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'),yl=M('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'),kl=M('<div class="wr-WinePopup-tags svelte-17gehox"></div>'),xl=M('<div class="wr-WinePopupMobile svelte-17gehox"><div class="wr-WinePopupMobile-overlay svelte-17gehox"></div> <div class="wr-WinePopupMobile-wrapper svelte-17gehox"><div class="wr-WinePopup js-WinePopup svelte-17gehox"><div class="wr-WinePopup-header svelte-17gehox"><h2 class="wr-WinePopup-title svelte-17gehox"> </h2> <button class="wr-WinePopup-close js-WinePopupClose svelte-17gehox">×</button></div> <!> <!> <!></div></div></div>'),Sl=M('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'),Cl=M('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'),El=M('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'),Tl=M('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'),Pl=M('<div class="wr-WinePopup-tags svelte-17gehox"></div>'),Al=M('<div class="wr-WinePopup svelte-17gehox"><div class="wr-WinePopup-header svelte-17gehox"><h2 class="wr-WinePopup-title svelte-17gehox"> </h2> <button class="wr-WinePopup-close svelte-17gehox">×</button></div> <!> <!> <!></div>');const Il={hash:"svelte-17gehox",code:".wr-WinePopup.svelte-17gehox {position:absolute;width:100%;background-color:white;padding:16px;border-radius:16px;box-shadow:0 6px 30px rgba(0, 0, 0, 0.2);text-align:left;font-size:14px;box-sizing:border-box;display:flex;flex-direction:column;}.wr-WinePopup-text.svelte-17gehox {margin:5px 0;}.wr-WinePopup-header.svelte-17gehox {display:flex;justify-content:space-between;align-items:flex-start;gap:12px;}.wr-WinePopup-title.svelte-17gehox {font-size:16px;font-weight:600;margin:0;flex:1;line-height:1.3;}.wr-WinePopup-close.svelte-17gehox {font-size:20px;font-weight:bold;cursor:pointer;color:#999;border:none;background:transparent;line-height:1;}.wr-WinePopup-close.svelte-17gehox:hover {color:#000;}.wr-WinePopup-desc.svelte-17gehox {margin-top:8px;}.wr-WinePopup-reason.svelte-17gehox {font-size:14px;font-weight:400;color:#333;margin-top:8px;}.wr-WinePopup-pairing.svelte-17gehox {margin-top:8px;}.wr-WinePopup-tags.svelte-17gehox {display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;justify-content:center;}.wr-WinePopup-tag.svelte-17gehox {display:inline-block;padding:4px 8px;border-radius:12px;background-color:#f5f0ff;border:1px solid #ddd;font-size:13px;color:#333;text-transform:capitalize;}.wr-WinePopupMobile.svelte-17gehox {position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;}.wr-WinePopupMobile-overlay.svelte-17gehox {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.5);}.wr-WinePopupMobile-wrapper.svelte-17gehox {position:absolute;width:100%;height:100%;top:50%;left:50%;transform:translate(-50%, -50%);max-width:90%;max-height:80%;overflow-y:auto;background:transparent;}"};function Wo(e,t){vt(t,!0),bt(e,Il);const n=!!t.isMobile;var r=Xe(),i=ke(r);{var o=u=>{var a=xl(),c=E(a);c.__click=function(...C){var R;(R=t.onClose)==null||R.apply(this,C)};var v=N(c,2),g=E(v),f=E(g),d=E(f),b=E(d),p=N(d,2);p.__click=function(...C){var R;(R=t.onClose)==null||R.apply(this,C)};var m=N(f,2);{var k=C=>{var R=wl(),I=E(R);B(()=>z(I,t.shortDescription)),x(C,R)};F(m,C=>{t.shortDescription&&C(k)})}var A=N(m,2);{var j=C=>{var R=_l(),I=E(R);B(()=>z(I,t.reason)),x(C,R)},_=C=>{var R=Xe(),I=ke(R);{var X=U=>{var G=bl(),we=E(G);B(()=>z(we,t.pairing)),x(U,G)};F(I,U=>{t.pairing&&U(X)},!0)}x(C,R)};F(A,C=>{t.reason?C(j):C(_,!1)})}var T=N(A,2);{var P=C=>{var R=kl();zt(R,21,()=>t.tags,sn,(I,X)=>{var U=yl(),G=E(U);B(()=>z(G,l(X))),x(I,U)}),x(C,R)};F(T,C=>{t.tags&&t.tags.length&&C(P)})}B(()=>z(b,t.title)),x(u,a)},s=u=>{var a=Al(),c=E(a),v=E(c),g=E(v),f=N(v,2);f.__click=function(..._){var T;(T=t.onClose)==null||T.apply(this,_)};var d=N(c,2);{var b=_=>{var T=Sl(),P=E(T);B(()=>z(P,t.shortDescription)),x(_,T)};F(d,_=>{t.shortDescription&&_(b)})}var p=N(d,2);{var m=_=>{var T=Cl(),P=E(T);B(()=>z(P,t.reason)),x(_,T)},k=_=>{var T=Xe(),P=ke(T);{var C=R=>{var I=El(),X=E(I);B(()=>z(X,t.pairing)),x(R,I)};F(P,R=>{t.pairing&&R(C)},!0)}x(_,T)};F(p,_=>{t.reason?_(m):_(k,!1)})}var A=N(p,2);{var j=_=>{var T=Pl();zt(T,21,()=>t.tags,sn,(P,C)=>{var R=Tl(),I=E(R);B(()=>z(I,l(C))),x(P,R)}),x(_,T)};F(A,_=>{t.tags&&t.tags.length&&_(j)})}B(()=>z(g,t.title)),x(u,a)};F(i,u=>{n?u(o):u(s,!1)})}x(e,r),pt()}lr(["click"]);var Dl=M('<img class="wr-WineTile-image svelte-yk3emv" decoding="async"/>'),Rl=M('<div class="wr-WineTile-price svelte-yk3emv"> </div>'),Wl=M('<div class="wr-WineTile-glass svelte-yk3emv"> </div>'),Nl=M('<div class="wr-WineTile-params svelte-yk3emv"> </div>'),Bl=M('<div class="wr-WineTilePopup-reason svelte-yk3emv"> </div>'),Ml=M('<span class="wr-WineTilePopup-tag svelte-yk3emv"> </span>'),Ll=M('<div class="wr-WineTilePopup-tags svelte-yk3emv"></div>'),zl=M("<div><!> <!></div>"),Ol=M('<article><header class="wr-WineTile-header svelte-yk3emv"><!> <!> <!> <h3 class="wr-WineTile-title svelte-yk3emv"> </h3></header> <!> <footer class="wr-WineTile-footer svelte-yk3emv"><div class="wr-WineTile-actions svelte-yk3emv"><!> <!></div></footer> <!> <!></article> <!>',1);const jl={hash:"svelte-yk3emv",code:`.wr-WineTile.svelte-yk3emv {display:flex;flex-direction:column;align-items:center;text-align:center;box-sizing:border-box;padding:16px 8px;border-right:2px solid #f6f7fd;position:relative;transform:translateY(0);opacity:1;transition:transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1),
|
|
160
|
-
opacity 180ms cubic-bezier(0.22, 0.61, 0.36, 1);will-change:transform, opacity;}.wr-WineTile.svelte-yk3emv:last-child {border-right:none;}.wr-WineTile.ww-slide-up.svelte-yk3emv {transform:translateY(-28px);opacity:0;}.wr-WineTile-header.svelte-yk3emv {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;}.wr-WineTile-image.svelte-yk3emv {height:200px;width:100%;max-width:100%;object-fit:contain;margin:0 auto 16px;display:block;}.wr-WineTile-title.svelte-yk3emv {font-size:15px;font-weight:500;margin:0 0 8px;min-height:3rem;line-height:1.2;text-align:center;color:#000;}.wr-WineTile-params.svelte-yk3emv {font-size:14px;color:#666;white-space:normal;text-align:center;}.wr-WineTile-footer.svelte-yk3emv {margin-top:auto;display:flex;align-items:center;gap:12px;justify-content:center;}.wr-WineTile-price.svelte-yk3emv {font-size:16px;font-weight:400;margin-bottom:8px;color:#333;}.wr-WineTile-glass.svelte-yk3emv {font-size:12px;font-weight:500;color:var(--wr-brand-color, #7b2beb);margin-bottom:8px;}.wr-WineTile-actions.svelte-yk3emv {margin:16px auto 0;display:flex;flex-direction:column;align-items:center;gap:8px;}
|
|
159
|
+
}`};function Bo(e){lt(e,_l);var t=wl();Ct(t,4,()=>[0,1,2,3],n=>n,(n,r)=>{var i=ml();k(n,i)}),k(e,t)}var yl=L('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'),bl=L('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'),xl=L('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'),kl=L('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'),Sl=L('<div class="wr-WinePopup-tags svelte-17gehox"></div>'),Cl=L('<div class="wr-WinePopupMobile svelte-17gehox"><div class="wr-WinePopupMobile-overlay svelte-17gehox"></div> <div class="wr-WinePopupMobile-wrapper svelte-17gehox"><div class="wr-WinePopup js-WinePopup svelte-17gehox"><div class="wr-WinePopup-header svelte-17gehox"><h2 class="wr-WinePopup-title svelte-17gehox"> </h2> <button class="wr-WinePopup-close js-WinePopupClose svelte-17gehox">×</button></div> <!> <!> <!></div></div></div>'),El=L('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'),Tl=L('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'),Pl=L('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'),Al=L('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'),Il=L('<div class="wr-WinePopup-tags svelte-17gehox"></div>'),Dl=L('<div class="wr-WinePopup svelte-17gehox"><div class="wr-WinePopup-header svelte-17gehox"><h2 class="wr-WinePopup-title svelte-17gehox"> </h2> <button class="wr-WinePopup-close svelte-17gehox">×</button></div> <!> <!> <!></div>');const Rl={hash:"svelte-17gehox",code:".wr-WinePopup.svelte-17gehox {position:absolute;width:100%;background-color:white;padding:16px;border-radius:16px;box-shadow:0 6px 30px rgba(0, 0, 0, 0.2);text-align:left;font-size:14px;box-sizing:border-box;display:flex;flex-direction:column;}.wr-WinePopup-text.svelte-17gehox {margin:5px 0;}.wr-WinePopup-header.svelte-17gehox {display:flex;justify-content:space-between;align-items:flex-start;gap:12px;}.wr-WinePopup-title.svelte-17gehox {font-size:16px;font-weight:600;margin:0;flex:1;line-height:1.3;}.wr-WinePopup-close.svelte-17gehox {font-size:20px;font-weight:bold;cursor:pointer;color:#999;border:none;background:transparent;line-height:1;}.wr-WinePopup-close.svelte-17gehox:hover {color:#000;}.wr-WinePopup-desc.svelte-17gehox {margin-top:8px;}.wr-WinePopup-reason.svelte-17gehox {font-size:14px;font-weight:400;color:#333;margin-top:8px;}.wr-WinePopup-pairing.svelte-17gehox {margin-top:8px;}.wr-WinePopup-tags.svelte-17gehox {display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;justify-content:center;}.wr-WinePopup-tag.svelte-17gehox {display:inline-block;padding:4px 8px;border-radius:12px;background-color:#f5f0ff;border:1px solid #ddd;font-size:13px;color:#333;text-transform:capitalize;}.wr-WinePopupMobile.svelte-17gehox {position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;}.wr-WinePopupMobile-overlay.svelte-17gehox {position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.5);}.wr-WinePopupMobile-wrapper.svelte-17gehox {position:absolute;width:100%;height:100%;top:50%;left:50%;transform:translate(-50%, -50%);max-width:90%;max-height:80%;overflow-y:auto;background:transparent;}"};function No(e,t){nt(t,!0),lt(e,Rl);const n=!!t.isMobile;var r=Xe(),i=we(r);{var o=c=>{var s=Cl(),u=T(s);u.__click=function(...S){var R;(R=t.onClose)==null||R.apply(this,S)};var v=I(u,2),g=T(v),f=T(g),d=T(f),y=T(d),p=I(d,2);p.__click=function(...S){var R;(R=t.onClose)==null||R.apply(this,S)};var m=I(f,2);{var x=S=>{var R=yl(),W=T(R);B(()=>j(W,t.shortDescription)),k(S,R)};H(m,S=>{t.shortDescription&&S(x)})}var A=I(m,2);{var O=S=>{var R=bl(),W=T(R);B(()=>j(W,t.reason)),k(S,R)},_=S=>{var R=Xe(),W=we(R);{var G=q=>{var F=xl(),ge=T(F);B(()=>j(ge,t.pairing)),k(q,F)};H(W,q=>{t.pairing&&q(G)},!0)}k(S,R)};H(A,S=>{t.reason?S(O):S(_,!1)})}var E=I(A,2);{var P=S=>{var R=Sl();Ct(R,21,()=>t.tags,un,(W,G)=>{var q=kl(),F=T(q);B(()=>j(F,a(G))),k(W,q)}),k(S,R)};H(E,S=>{t.tags&&t.tags.length&&S(P)})}B(()=>j(y,t.title)),k(c,s)},l=c=>{var s=Dl(),u=T(s),v=T(u),g=T(v),f=I(v,2);f.__click=function(..._){var E;(E=t.onClose)==null||E.apply(this,_)};var d=I(u,2);{var y=_=>{var E=El(),P=T(E);B(()=>j(P,t.shortDescription)),k(_,E)};H(d,_=>{t.shortDescription&&_(y)})}var p=I(d,2);{var m=_=>{var E=Tl(),P=T(E);B(()=>j(P,t.reason)),k(_,E)},x=_=>{var E=Xe(),P=we(E);{var S=R=>{var W=Pl(),G=T(W);B(()=>j(G,t.pairing)),k(R,W)};H(P,R=>{t.pairing&&R(S)},!0)}k(_,E)};H(p,_=>{t.reason?_(m):_(x,!1)})}var A=I(p,2);{var O=_=>{var E=Il();Ct(E,21,()=>t.tags,un,(P,S)=>{var R=Al(),W=T(R);B(()=>j(W,a(S))),k(P,R)}),k(_,E)};H(A,_=>{t.tags&&t.tags.length&&_(O)})}B(()=>j(g,t.title)),k(c,s)};H(i,c=>{n?c(o):c(l,!1)})}k(e,r),rt()}ur(["click"]);const Wl={red:{glass:"#3b1230",foil:"#7a1f3d",accent:"#7a1f3d",shoulder:"bordeaux"},white:{glass:"#a9b568",foil:"#c9b458",accent:"#8a8f3c",shoulder:"flute"},rose:{glass:"#d98a9d",foil:"#e8a3b4",accent:"#b8566f",shoulder:"burgundy"},sparkling:{glass:"#5f6b3a",foil:"#d9c26a",accent:"#b89b2e",shoulder:"champagne"},sweet:{glass:"#b8862e",foil:"#d9a441",accent:"#9a6a1c",shoulder:"flute"},fortified:{glass:"#4a2a1a",foil:"#8a5a2b",accent:"#8a5a2b",shoulder:"port"}},Ml={flute:{body:"M17 4h10v34c0 6 8 10 8 24v56c0 3-2 5-5 5H14c-3 0-5-2-5-5V62c0-14 8-18 8-24z",cap:{x:16,y:2,w:12,h:20},label:{x:9,y:72,w:26,h:34},shine:"M12 66c0 18 0 40 0 52"},burgundy:{body:"M17 4h10v30c0 10 11 14 11 30v54c0 3-2 5-5 5H11c-3 0-5-2-5-5V64c0-16 11-20 11-30z",cap:{x:16,y:2,w:12,h:20},label:{x:8,y:72,w:28,h:34},shine:"M11 68c0 18 0 38 0 50"},bordeaux:{body:"M17 4h10v32c0 4 1 6 4 9 4 4 6 7 6 14v59c0 3-2 5-5 5H12c-3 0-5-2-5-5V59c0-7 2-10 6-14 3-3 4-5 4-9z",cap:{x:16,y:2,w:12,h:20},label:{x:9,y:72,w:26,h:34},shine:"M12 64c0 18 0 40 0 54"},champagne:{body:"M17 4h10v34c0 12 15 18 15 42v35c0 5-3 8-7 8H9c-4 0-7-3-7-8V80c0-24 15-30 15-42z",cap:{x:15,y:2,w:14,h:34},label:{x:6,y:78,w:32,h:36},shine:"M8 82c0 14 0 28 0 36"},port:{body:"M16 4h12v16c0 3-2 4-2 7s3 4 3 8c0 6 9 6 9 18v65c0 3-2 5-5 5H11c-3 0-5-2-5-5V53c0-12 9-12 9-18 0-4 3-5 3-8s-2-4-2-7z",cap:{x:15,y:2,w:14,h:15},label:{x:8,y:66,w:28,h:42},shine:"M11 60c0 20 0 40 0 56"}},Bl=[[20,58,1.5],[26,50,1.1],[23,44,.8],[14,66,1.2],[30,63,1.7],[9,86,1.1],[34,92,1.3],[8,106,1.6],[35,112,1],[25,70,.9],[17,73,.7]];function Nl(e){const t=(e??"").toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g,"");return/(spark|champ|cava|prosecco|cremant|brut|pet.?nat|espum|petillant)/.test(t)?"sparkling":/(rose|pink|rosado)/.test(t)?"rose":/(fortif|port|sherry|madeira|marsala)/.test(t)?"fortified":/(sweet|dessert|late|sauternes|ice|moelleux|dulce)/.test(t)?"sweet":/(red|rouge|tinto|rosso|krasn)/.test(t)?"red":"white"}function zl(e){const t=(e??"").trim();return!!t&&t!=="null"&&t!=="undefined"}var Ll=Pt("<circle></circle>"),Ol=Pt('<path d="M16.5 10h11l1.5 26h-14z"></path><rect x="14" y="2" width="16" height="9" rx="3.5"></rect><rect x="14" y="8" width="16" height="2.4" fill="#000" opacity="0.12"></rect><path d="M16 15h12M15.6 20h12.8M15.2 25h13.6M14.8 30h14.4M22 11v21" stroke="#8a6d12" stroke-opacity="0.55" stroke-width="0.9" fill="none"></path><circle cx="22" cy="33" r="1.6" fill="none" stroke="#8a6d12" stroke-opacity="0.55" stroke-width="0.9"></circle><g fill="#fff" opacity="0.4"></g>',1),jl=Pt('<rect rx="2.5"></rect><rect height="2.5" fill="#000" opacity="0.12"></rect>',1),ql=Pt('<svg class="wr-WineBottle svelte-1duzdpv" viewBox="0 0 44 130" aria-hidden="true" focusable="false"><defs><linearGradient x1="0" x2="1" y1="0" y2="0"><stop offset="0" stop-opacity="0.78"></stop><stop offset="0.45"></stop><stop offset="1" stop-opacity="0.88"></stop></linearGradient></defs><path></path><!><rect rx="2.5" fill="#fffdf8" opacity="0.94"></rect><rect height="2.4" rx="1.2"></rect><rect height="1.8" rx="0.9" opacity="0.5"></rect><rect height="1.8" rx="0.9" opacity="0.5"></rect><path stroke="#fff" stroke-opacity="0.22" stroke-width="2.2" stroke-linecap="round" fill="none"></path></svg>');const Fl={hash:"svelte-1duzdpv",code:".wr-WineBottle.svelte-1duzdpv {display:block;height:100%;width:auto;margin:0 auto;}"};function Ul(e,t){nt(t,!0),lt(e,Fl);const n=re(()=>Nl(t.type)),r=re(()=>Wl[a(n)]),i=re(()=>Ml[a(r).shoulder]),o=`wr-bottle-${Math.random().toString(36).slice(2,8)}`;var l=ql(),c=T(l),s=T(c),u=T(s),v=I(u),g=I(v),f=I(c),d=I(f);{var y=E=>{var P=Ol(),S=we(P),R=I(S),W=I(R,4);Ct(W,21,()=>Bl,([G,q,F])=>`${G}-${q}`,(G,q)=>{var F=re(()=>la(a(q),3));let ge=()=>a(F)[0],J=()=>a(F)[1],Se=()=>a(F)[2];var ae=Ll();B(()=>{D(ae,"cx",ge()),D(ae,"cy",J()),D(ae,"r",Se())}),k(G,ae)}),B(()=>{D(S,"fill",a(r).foil),D(R,"fill",a(r).foil)}),k(E,P)},p=E=>{var P=jl(),S=we(P),R=I(S);B(()=>{D(S,"x",a(i).cap.x),D(S,"y",a(i).cap.y),D(S,"width",a(i).cap.w),D(S,"height",a(i).cap.h),D(S,"fill",a(r).foil),D(R,"x",a(i).cap.x),D(R,"y",a(i).cap.y+a(i).cap.h-3),D(R,"width",a(i).cap.w)}),k(E,P)};H(d,E=>{a(n)==="sparkling"?E(y):E(p,!1)})}var m=I(d),x=I(m),A=I(x),O=I(A),_=I(O);B(()=>{D(s,"id",o),D(u,"stop-color",a(r).glass),D(v,"stop-color",a(r).glass),D(g,"stop-color",a(r).glass),D(f,"d",a(i).body),D(f,"fill",`url(#${o})`),D(m,"x",a(i).label.x),D(m,"y",a(i).label.y),D(m,"width",a(i).label.w),D(m,"height",a(i).label.h),D(x,"x",a(i).label.x+a(i).label.w*.2),D(x,"y",a(i).label.y+8),D(x,"width",a(i).label.w*.6),D(x,"fill",a(r).accent),D(A,"x",a(i).label.x+a(i).label.w*.3),D(A,"y",a(i).label.y+14),D(A,"width",a(i).label.w*.4),D(A,"fill",a(r).accent),D(O,"x",a(i).label.x+a(i).label.w*.3),D(O,"y",a(i).label.y+19),D(O,"width",a(i).label.w*.4),D(O,"fill",a(r).accent),D(_,"d",a(i).shine)}),k(e,l),rt()}var Hl=L('<img class="wr-WineTile-image svelte-yk3emv" decoding="async"/>'),Vl=L('<div class="wr-WineTile-image wr-WineTile-bottle svelte-yk3emv"><!></div>'),Gl=L('<div class="wr-WineTile-price svelte-yk3emv"> </div>'),Kl=L('<div class="wr-WineTile-glass svelte-yk3emv"> </div>'),Yl=L('<div class="wr-WineTile-params svelte-yk3emv"> </div>'),Zl=L('<div class="wr-WineTilePopup-reason svelte-yk3emv"> </div>'),Ql=L('<span class="wr-WineTilePopup-tag svelte-yk3emv"> </span>'),Jl=L('<div class="wr-WineTilePopup-tags svelte-yk3emv"></div>'),Xl=L("<div><!> <!></div>"),$l=L('<article><header class="wr-WineTile-header svelte-yk3emv"><!> <!> <!> <h3 class="wr-WineTile-title svelte-yk3emv"> </h3></header> <!> <footer class="wr-WineTile-footer svelte-yk3emv"><div class="wr-WineTile-actions svelte-yk3emv"><!> <!></div></footer> <!> <!></article> <!>',1);const ec={hash:"svelte-yk3emv",code:`.wr-WineTile.svelte-yk3emv {display:flex;flex-direction:column;align-items:center;text-align:center;box-sizing:border-box;padding:16px 8px;border-right:2px solid #f6f7fd;position:relative;transform:translateY(0);opacity:1;transition:transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1),
|
|
160
|
+
opacity 180ms cubic-bezier(0.22, 0.61, 0.36, 1);will-change:transform, opacity;}.wr-WineTile.svelte-yk3emv:last-child {border-right:none;}.wr-WineTile.ww-slide-up.svelte-yk3emv {transform:translateY(-28px);opacity:0;}.wr-WineTile-header.svelte-yk3emv {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;}.wr-WineTile-image.svelte-yk3emv {height:200px;width:100%;max-width:100%;object-fit:contain;margin:0 auto 16px;display:block;}.wr-WineTile-bottle.svelte-yk3emv {padding:4px 0;box-sizing:border-box;}.wr-WineTile-title.svelte-yk3emv {font-size:15px;font-weight:500;margin:0 0 8px;min-height:3rem;line-height:1.2;text-align:center;color:#000;}.wr-WineTile-params.svelte-yk3emv {font-size:14px;color:#666;white-space:normal;text-align:center;}.wr-WineTile-footer.svelte-yk3emv {margin-top:auto;display:flex;align-items:center;gap:12px;justify-content:center;}.wr-WineTile-price.svelte-yk3emv {font-size:16px;font-weight:400;margin-bottom:8px;color:#333;}.wr-WineTile-glass.svelte-yk3emv {font-size:12px;font-weight:500;color:var(--wr-brand-color, #7b2beb);margin-bottom:8px;}.wr-WineTile-actions.svelte-yk3emv {margin:16px auto 0;display:flex;flex-direction:column;align-items:center;gap:8px;}
|
|
161
161
|
|
|
162
162
|
/* :global обязателен — класс уезжает внутрь <Action>, а скоуп Svelte
|
|
163
163
|
действует только на разметку этого компонента, иначе правило отбрасывается
|
|
@@ -180,9 +180,9 @@ ${JSON.stringify(s,null,2)}
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
@media screen and (max-width: 768px) {.wr-WineTile.svelte-yk3emv {flex:0 0 auto;scroll-snap-align:center;width:240px;text-align:center;}
|
|
183
|
-
}`};function
|
|
183
|
+
}`};function tc(e,t){nt(t,!0),lt(e,ec);const n=4;let r=re(()=>ve.getAppLanguage()),i=Y(!1);const o=(C,z)=>C[z]||C[z.charAt(0).toUpperCase()+z.slice(1)],l=(C,z)=>z.map(ne=>o(C,ne)).filter(Boolean).join(" • ");function c(C){var z;return Gs(C,((z=ve.getCurrency)==null?void 0:z.call(ve))||"USD",a(r))}function s(C){return t.selectedWineId===C}function u(C){return!!(C.reason||C.shortDescription||C.tags)}function v(C,z){let ne=(C==null?void 0:C.tags)||z.tags;return ne?(Array.isArray(ne)&&(ne=ne.join(",")),typeof ne!="string"?[]:ne.split(",").map(oe=>oe.trim()).filter(Boolean)):[]}let g=Y(!1);Ur(()=>{const C=()=>{w(g,window.innerWidth<=768)};return C(),window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)}});var f=$l(),d=we(f);d.__click=C=>t.onTileClick(C,t.wine);var y=T(d),p=T(y);{var m=C=>{var z=Hl();B(()=>{D(z,"src",t.wine.image),D(z,"alt",t.wine.title),D(z,"loading",t.index<n?"eager":"lazy"),D(z,"fetchpriority",t.index<n?"high":"auto")}),st("error",z,()=>w(i,!0)),k(C,z)},x=C=>{var z=Vl(),ne=T(z);Ul(ne,{get type(){return t.wine.type}}),k(C,z)};H(p,C=>{zl(t.wine.image)&&!a(i)?C(m):C(x,!1)})}var A=I(p,2);{var O=C=>{var z=Gl(),ne=T(z);B(oe=>j(ne,oe),[()=>c(t.wine.total)]),k(C,z)};H(A,C=>{t.wine.total&&C(O)})}var _=I(A,2);{var E=C=>{var z=Kl(),ne=T(z);B((oe,Te)=>j(ne,`${oe??""}${Te??""}`),[()=>se({key:"byTheGlass",lang:a(r)}),()=>t.wine.glassPrice?` — ${c(t.wine.glassPrice)}`:""]),k(C,z)};H(_,C=>{t.wine.byTheGlass&&C(E)})}var P=I(_,2),S=T(P),R=I(y,2);{var W=C=>{var z=Yl(),ne=T(z);B(oe=>j(ne,oe),[()=>l(t.wine,["type","country","region","grape"])]),k(C,z)};H(R,C=>{l(t.wine,["type","country","region","grape"])&&C(W)})}var G=I(R,2),q=T(G),F=T(q);{var ge=C=>{Gt(C,{get href(){return t.wine.url},handleClick:()=>t.onBuyLinkClick(t.wine,t.index),className:"wr-WineTile-action wr-WineTile-action--link js-WineTileAction",target:"_blank",variant:"outlined",children:(z,ne)=>{var oe=At();B(Te=>j(oe,Te),[()=>se({key:"wineDetails.buy",lang:a(r)})]),k(z,oe)},$$slots:{default:!0}})},J=C=>{Gt(C,{handleClick:()=>t.onBuyClick(t.wine,t.index),variant:"outlined",className:"wr-WineTile-action wr-WineTile-action--button js-WineTileAction",children:(z,ne)=>{var oe=At();B(Te=>j(oe,Te),[()=>se({key:"moreInfo",lang:a(r)})]),k(z,oe)},$$slots:{default:!0}})};H(F,C=>{t.wine.url?C(ge):C(J,!1)})}var Se=I(F,2);{var ae=C=>{Gt(C,{handleClick:()=>t.onSimilarClick(t.wine),variant:"text",className:"wr-WineTile-action wr-WineTile-action--similar js-WineTileAction",children:(z,ne)=>{var oe=At();B(Te=>j(oe,Te),[()=>se({key:"similarWines",lang:a(r)})]),k(z,oe)},$$slots:{default:!0}})};H(Se,C=>{t.onSimilarClick&&C(ae)})}var Mt=I(G,2);{var Cn=C=>{{let z=re(()=>{var le;return((le=t.translatedPopup)==null?void 0:le.shortDescription)||t.wine.shortDescription}),ne=re(()=>{var le;return((le=t.translatedPopup)==null?void 0:le.reason)||t.wine.reason}),oe=re(()=>{var le;return((le=t.translatedPopup)==null?void 0:le.pairingRecommendation)||t.wine.pairingRecommendation}),Te=re(()=>v(t.translatedPopup,t.wine));No(C,{get title(){return t.wine.title},get shortDescription(){return a(z)},get reason(){return a(ne)},get pairing(){return a(oe)},get tags(){return a(Te)},get onClose(){return t.onPopupClose},isMobile:!1})}};H(Mt,C=>{s(t.wine.id)&&!a(g)&&C(Cn)})}var ii=I(Mt,2);{var oi=C=>{var z=Xl(),ne=T(z);{var oe=kt=>{var qe=Zl(),et=T(qe);B(()=>{var en,Bt;return j(et,((en=t.translatedPopup)==null?void 0:en.reason)||((Bt=t.translatedPopup)==null?void 0:Bt.shortDescription)||t.wine.reason||t.wine.shortDescription)}),k(kt,qe)};H(ne,kt=>{var qe,et;((qe=t.translatedPopup)!=null&&qe.reason||(et=t.translatedPopup)!=null&&et.shortDescription||t.wine.reason||t.wine.shortDescription)&&kt(oe)})}var Te=I(ne,2);{var le=kt=>{var qe=Jl();Ct(qe,21,()=>v(t.translatedPopup,t.wine),un,(et,en)=>{var Bt=Ql(),si=T(Bt);B(()=>j(si,a(en))),k(et,Bt)}),k(kt,qe)};H(Te,kt=>{var qe,et;((qe=t.translatedPopup)!=null&&qe.tags||(et=t.translatedPopup)!=null&&et.Tags||t.wine.tags)&&kt(le)})}B(()=>It(z,1,`wr-WineTilePopup ${t.hoveredWineId===t.wine.id?"slide-in visible":""}`,"svelte-yk3emv")),k(C,z)};H(ii,C=>{u(t.wine)&&C(oi)})}var Yn=I(d,2);{var ai=C=>{{let z=re(()=>{var le;return((le=t.translatedPopup)==null?void 0:le.shortDescription)||t.wine.shortDescription}),ne=re(()=>{var le;return((le=t.translatedPopup)==null?void 0:le.reason)||t.wine.reason}),oe=re(()=>{var le;return((le=t.translatedPopup)==null?void 0:le.pairingRecommendation)||t.wine.pairingRecommendation}),Te=re(()=>v(t.translatedPopup,t.wine));No(C,{get title(){return t.wine.title},get shortDescription(){return a(z)},get reason(){return a(ne)},get pairing(){return a(oe)},get tags(){return a(Te)},get onClose(){return t.onPopupClose},isMobile:!0})}};H(Yn,C=>{s(t.wine.id)&&a(g)&&C(ai)})}B(()=>{It(d,1,`wr-WineTile ${t.isAnimating?"ww-slide-up":""}`,"svelte-yk3emv"),j(S,t.wine.title)}),st("mouseenter",d,()=>t.onTileEnter(t.wine)),st("mouseleave",d,()=>t.onTileLeave(t.wine)),k(e,f),rt()}ur(["click"]);var nc=L('<a class="wr-Consent-link svelte-dqnzo8" target="_blank" rel="noopener noreferrer"> </a>'),rc=L('<div class="wr-Consent svelte-dqnzo8" role="region" aria-label="Cookies"><p class="wr-Consent-text svelte-dqnzo8"> <!></p> <div class="wr-Consent-actions svelte-dqnzo8"><!> <!></div></div>');const ic={hash:"svelte-dqnzo8",code:`.wr-Consent.svelte-dqnzo8 {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 0;padding:12px 16px;border-radius:12px;background:#f6f4f2;font-size:13px;line-height:1.4;color:#333;}.wr-Consent-text.svelte-dqnzo8 {margin:0;flex:1;}.wr-Consent-link.svelte-dqnzo8 {color:inherit;text-decoration:underline;margin-left:4px;}.wr-Consent-actions.svelte-dqnzo8 {display:flex;gap:8px;flex-shrink:0;}
|
|
184
184
|
@media (max-width: 640px) {.wr-Consent.svelte-dqnzo8 {flex-direction:column;align-items:stretch;}.wr-Consent-actions.svelte-dqnzo8 {justify-content:flex-end;}
|
|
185
|
-
}`};function
|
|
185
|
+
}`};function oc(e,t){var f;nt(t,!0),lt(e,ic);const n=(f=window==null?void 0:window.wineaterData)==null?void 0:f.PRIVACY_URL,r=d=>se({key:d,lang:t.lang});var i=rc(),o=T(i),l=T(o),c=I(l);{var s=d=>{var y=nc(),p=T(y);B(m=>{D(y,"href",n),j(p,m)},[()=>r("consentPrivacy")]),k(d,y)};H(c,d=>{n&&d(s)})}var u=I(o,2),v=T(u);Gt(v,{variant:"outlined",handleClick:()=>bo("denied"),children:(d,y)=>{var p=At();B(m=>j(p,m),[()=>r("consentDecline")]),k(d,p)},$$slots:{default:!0}});var g=I(v,2);Gt(g,{variant:"primary",handleClick:()=>bo("granted"),children:(d,y)=>{var p=At();B(m=>j(p,m),[()=>r("consentAccept")]),k(d,p)},$$slots:{default:!0}}),B(d=>j(l,`${d??""} `),[()=>r("consentText")]),k(e,i),rt()}const ac=/@import\s+url\(\s*['"]?([^'")]+)['"]?\s*\)\s*;?/g;function ni(e,t,n=!1){const r=document.createElement("link");r.rel=e,r.href=t,n&&(r.crossOrigin="anonymous"),document.head.appendChild(r)}function sc(){document.querySelector('link[rel="preconnect"][href="https://fonts.googleapis.com"]')||(ni("preconnect","https://fonts.googleapis.com"),ni("preconnect","https://fonts.gstatic.com",!0))}function lc(e){if(!e)return"";const t="custom-ui-config-style";if(document.getElementById(t))return;const n=e.replace(ac,(i,o)=>(ni("stylesheet",o),"")),r=document.createElement("style");return r.id=t,r.innerHTML=n,document.head.appendChild(r),t}var cc=L('<div class="wr-App-picture svelte-1n46o8q"><img class="wr-App-logo svelte-1n46o8q" alt=""/></div>'),uc=L('<div class="wr-App-error svelte-1n46o8q"><p> </p></div>'),dc=L('<div class="wr-App-showMore svelte-1n46o8q"><!></div>'),fc=L('<div class="wr-App-placeholder svelte-1n46o8q"></div> <!>',1),hc=L('<div id="wr-Custom" class="wr-App svelte-1n46o8q"><!> <!> <!> <div class="wr-App-content svelte-1n46o8q"><!></div> <!> <!></div>'),vc=L('<div class="wr-App wr-App--loading svelte-1n46o8q" aria-busy="true"><div class="wr-App-loadingTop svelte-1n46o8q"></div> <!></div>');const pc={hash:"svelte-1n46o8q",code:`
|
|
186
186
|
/* ===================== 1) CSS Variables ===================== */:root {--wineater-corp-color: #0044ff;
|
|
187
187
|
/* --wr-brand-color is set dynamically from uiConfig.brandColor */--wr-brand-color: #7b2beb; /* fallback value */}
|
|
188
188
|
|
|
@@ -195,4 +195,4 @@ ${JSON.stringify(s,null,2)}
|
|
|
195
195
|
|
|
196
196
|
/* ===================== 13) Mobile Styles ===================== */
|
|
197
197
|
@media screen and (max-width: 768px) {.wr-App.svelte-1n46o8q {flex-direction:column;padding:0px 16px;min-width:100vw;}.wr-App-placeholder.svelte-1n46o8q {display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 0;width:calc(100vw - 32px);min-width:calc(100vw - 32px);}
|
|
198
|
-
}`};function
|
|
198
|
+
}`};function gc(e,t){var jo,qo,Fo;nt(t,!0),lt(e,pc);function n(){var b;Yr("chatbotToken",((b=window.wineaterData)==null?void 0:b.CLIENT_TOKEN)||r,365)}const r="HeUw6IXuhvz6tRuXdPEGEbj3SGQ3Q2YtEc1Z8jd41Kg9LtyPb4Epu0to31SYIadG";n(),sc();const i=6*60*60*1e3,o=60*60*1e3,l=`${Xr}:instant-profile`,c=b=>`${Xr}:instant${b?`:${b}`:""}`,s=((jo=window==null?void 0:window.wineaterData)==null?void 0:jo.WIDGET_TYPE)||"store",u=((qo=window==null?void 0:window.wineaterData)==null?void 0:qo.COUNTRY_CODE)||null;(Fo=window==null?void 0:window.wineaterData)!=null&&Fo.WIDGET_WRAPPER;let v=Y(!1),g=Y(!1),f=!1,d=Y(!1),y=Y(!1),p=Y(He([])),m=Y(null),x=Y(""),A=Y(null),O=Y(!1),_=Y(null),E=Y(He([])),P=Y(""),S=Y(!1),R=Y(He([])),W=null;function G(b,M){b!=null&&b.length&&mn({type:"shown",query_id:W??void 0,sku_ids:b.map(K=>K.id),text:M||void 0})}let q=re(()=>ve.getAppLanguage()),F=re(()=>ve.getStoreLanguage()),ge=re(()=>ve.getApiKey()),J=re(()=>ve.getStoreId()),Se=re(()=>ve.isInitialized()),ae=re(()=>ve.getUiConfig());function Mt(){w(A,se({key:"errorMessage",lang:a(q)}),!0)}const Cn=()=>w(A,null);async function ii(b){if(a(q)===a(F)||s!=="bar")return b.map(()=>({}));const M=["shortDescription","reason","pairingRecommendation","tags"],K=b[0];if(!K)return b.map(()=>({}));const me=M.filter(Ae=>Ae in K),ce=4,Pe=[];for(let Ae=0;Ae<b.length;Ae+=ce){const En=b.slice(Ae,Ae+ce).map(async Tn=>{const ue=me.map(te=>{const Fe=Tn[te]||Tn[te.toLowerCase()];return Fe?{key:te,text:Array.isArray(Fe)?Fe.join(", "):Fe}:null}).filter(Boolean);return ue.length===0?{}:await Ks({sourceLang:a(F),targetLang:a(q),texts:Object.fromEntries(ue.map(te=>[te.key,te.text])),apiKey:a(ge)})}),Nt=await Promise.all(En);Pe.push(...Nt)}return Pe}async function oi(b){const M=$r(l,2592e6),K=$r(c(M),M?o:i),me=!!(K!=null&&K.length);me?w(p,K,!0):w(d,!0);try{const{wines:ce,profileHash:Pe}=await wn.getInstantRecommendations();ce.length>0&&(ei(c(Pe),ce),ei(l,Pe)),!me&&!f&&w(p,ce,!0)}catch(ce){console.error("[wineater] instant recommendations error:",ce),!me&&!f&&(await b,Mt())}finally{f||w(d,!1)}}function Yn(b=220){return!a(p)||a(p).length===0?Promise.resolve():(w(O,!0),new Promise(M=>{setTimeout(()=>{M()},b)}))}async function ai(b){b.preventDefault(),f=!0;let M="",K;try{w(d,!0),Cn(),M=a(x).trim()+";",w(P,M,!0),W=To(),K=W;try{Le(Oe.SEARCH_PERFORMED,a(J),{query:M})}catch(ue){console.error("Error tracking search event:",ue)}let me=!1,ce=!1,Pe=null;const Ae=ue=>{if(!ue||ue.length===0){w(p,[],!0),w(E,[],!0),w(A,se({key:"noResultsMessage",lang:a(q)}),!0),Le(Oe.NO_RESULTS_FOUND,a(J),{query:M});return}w(p,ue,!0),w(d,!1),!ce&&(ce=!0,w(S,Jr==="2"&&ue.length>=4,!0),G(ue,M),Le(Oe.SEARCH_RESULTS_DISPLAYED,a(J),{results_count:ue.length,results:ue,query:M}))},_r=ue=>{K===W&&(me?Ae(ue):Pe=ue)},En=wn.searchStream(M,W,_r);En.catch(()=>{}),await Yn(220),w(p,[],!0),w(O,!1),w(S,!1),w(R,[],!0),me=!0,Pe&&Ae(Pe);const Nt=await En;if(K!==W)return;if(ce&&Nt.length===a(p).length&&Nt.every((ue,tt)=>{var te;return ue.id===((te=a(p)[tt])==null?void 0:te.id)})){const ue=new Map(Nt.map(tt=>[tt.id,tt]));w(p,a(p).map(tt=>{var te;return{...tt,reason:((te=ue.get(tt.id))==null?void 0:te.reason)??tt.reason}}),!0)}else Ae(Nt)}catch(me){if(K!==W)return;w(p,[],!0),console.error("[wineater] search error:",me),Le(Oe.ERROR_OCCURRED,a(J),{error_message:me==null?void 0:me.message,query:M}),Mt()}finally{K===W&&w(d,!1)}}async function C(){if(a(y)||!a(S))return;f=!0;const b=a(p);try{w(y,!0),w(d,!0),w(R,[...new Set([...a(R),...a(p).map(ce=>ce.id)])],!0);const M=wn.getMoreWineRecommendations(a(P),a(R));M.catch(()=>{}),await Yn(220),w(p,[],!0),w(O,!1);const{recommendations:K,hasMore:me}=await M;mn({type:"more",query_id:W??void 0,text:a(P)||void 0}),G(K,a(P)),Le(Oe.SHOW_MORE_CLICKED,a(J),{query:a(P),results_count:K.length}),w(p,K.length>0?K:b,!0),w(S,me,!0)}catch(M){console.error("[wineater] try again error:",M),w(p,b,!0),w(S,!1)}finally{w(y,!1),w(d,!1)}}async function z(b){f=!0;try{w(d,!0),Cn(),Le(Oe.SIMILAR_WINES_CLICKED,a(J),{wine_id:b.id,wine_title:b.title}),mn({type:"similar",query_id:W??void 0,sku_ids:[b.id]}),W=To();const M=wn.getSimilarWines(b.id);M.catch(()=>{}),await Yn(220),w(p,[],!0),w(O,!1),w(S,!1),w(m,null);const K=await M;w(x,b.title,!0),w(P,""),!K||K.length===0?(w(p,[],!0),w(E,[],!0),w(A,se({key:"noResultsMessage",lang:a(q)}),!0)):(w(p,K,!0),G(K,""))}catch(M){w(p,[],!0),console.error("[wineater] similar wines error:",M),Mt()}finally{w(d,!1)}}Bn(async()=>{if(!a(p)||a(p).length===0){w(E,[],!0);return}try{const b=await ii(a(p));a(p)&&a(p).length>0&&w(E,b,!0)}catch(b){console.error("translatePopupContent failed",b)}});function ne(b,M){a(m)&&a(m)!==b.id&&w(m,null),w(m,b.id,!0),mn({type:"click",query_id:W??void 0,sku_ids:[b.id],position:M}),Le(Oe.WINE_DETAILS_VIEWED,a(J),{wine_id:b.id,wine_title:b.title,is_mobile:window.innerWidth<=768})}function oe(b,M){mn({type:"buy_click",query_id:W??void 0,sku_ids:[b.id],position:M}),Le(Oe.BUY_BUTTON_CLICKED,a(J),{wine_id:b.id,wine_title:b.title,wine_url:b.url,is_mobile:window.innerWidth<=768})}function Te(){const b=a(p).find(M=>M.id===a(m));Le(Oe.WINE_DETAILS_CLOSED,a(J),{wine_id:a(m),wine_title:b.title}),w(m,null)}function le(b){return!!(b.reason||b.shortDescription||b.tags)}function kt(b){s==="store"&&le(b)&&(w(_,b.id,!0),Le(Oe.WINE_CARD_HOVER,a(J),{wine_id:b.id,wine_title:b.title}))}function qe(b){s==="store"&&a(_)===b.id&&w(_,null)}function et(b,M){b.target.closest(".js-WineTileAction")||b.target.closest(".js-WinePopupClose")||(mn({type:"click",query_id:W??void 0,sku_ids:[M.id],position:a(p).findIndex(K=>K.id===M.id)}),Le(Oe.WINE_CARD_CLICK,a(J),{wine_id:M.id,wine_title:M.title}))}function en(b){const M=b.target;M.closest(".js-WinePopup")||M.closest(".js-WineTileAction")||w(m,null)}Bn(()=>{var b,M;(b=a(ae))!=null&&b.brandColor&&document.documentElement.style.setProperty("--wr-brand-color",a(ae).brandColor),(M=a(ae))!=null&&M.wineaterColor&&document.documentElement.style.setProperty("--wr-wineater-color",a(ae).wineaterColor)}),Ur(()=>(document.addEventListener("click",en),(async()=>{const b=ve.initializeStore();if(oi(b),await b,!a(Se)){w(g,!0);return}a(ae).customCss&&lc(a(ae).customCss),w(v,!0),Le(Oe.WIDGET_INITIALIZED,a(J))})(),()=>{document.removeEventListener("click",en)}));var Bt=Xe(),si=we(Bt);{var mc=b=>{var M=hc(),K=T(M);{var me=te=>{var Fe=cc(),Zn=T(Fe);B(()=>D(Zn,"src",a(ae).logoUrl)),k(te,Fe)};H(K,te=>{a(ae).logoUrl&&te(me)})}var ce=I(K,2);ol(ce,{});var Pe=I(ce,2);gl(Pe,{onSubmit:ai,get initialized(){return a(v)},get searchQuery(){return a(x)},set searchQuery(te){w(x,te,!0)}});var Ae=I(Pe,2),_r=T(Ae);{var En=te=>{var Fe=uc(),Zn=T(Fe),li=T(Zn);B(()=>j(li,a(A))),k(te,Fe)},Nt=te=>{var Fe=Xe(),Zn=we(Fe);{var li=Pn=>{var Qn=fc(),yr=we(Qn);Ct(yr,21,()=>a(p),un,(Xn,br,xr)=>{tc(Xn,{get wine(){return a(br)},index:xr,get hoveredWineId(){return a(_)},get selectedWineId(){return a(m)},get isAnimating(){return a(O)},get translatedPopup(){return a(E)[xr]},onBuyClick:ne,onBuyLinkClick:oe,onPopupClose:Te,onSimilarClick:z,onTileEnter:kt,onTileLeave:qe,onTileClick:et})});var ci=I(yr,2);{var Jn=Xn=>{var br=dc(),xr=T(br);Gt(xr,{handleClick:C,variant:"outlined",children:(yc,zc)=>{var Uo=At();B(bc=>j(Uo,bc),[()=>se({key:"tryAgain",lang:a(q)})]),k(yc,Uo)},$$slots:{default:!0}}),k(Xn,br)};H(ci,Xn=>{a(S)&&Xn(Jn)})}k(Pn,Qn)},_c=Pn=>{var Qn=Xe(),yr=we(Qn);{var ci=Jn=>{Bo(Jn)};H(yr,Jn=>{a(d)&&Jn(ci)},!0)}k(Pn,Qn)};H(Zn,Pn=>{a(p)&&a(p).length>0?Pn(li):Pn(_c,!1)},!0)}k(te,Fe)};H(_r,te=>{a(A)?te(En):te(Nt,!1)})}var Tn=I(Ae,2);{var ue=te=>{oc(te,{get lang(){return a(q)}})};H(Tn,te=>{Ts()&&te(ue)})}var tt=I(Tn,2);ul(tt,{get countryCode(){return u}}),k(b,M)},wc=b=>{var M=Xe(),K=we(M);{var me=ce=>{var Pe=vc(),Ae=I(T(Pe),2);Bo(Ae),k(ce,Pe)};H(K,ce=>{a(g)||ce(me)},!0)}k(b,M)};H(si,b=>{a(Se)?b(mc):b(wc,!1)})}k(e,Bt),rt()}return cs(gc,{target:document.getElementById("wineater-widget-conteiner")})});
|