wineater-bot 4.19.0 → 4.21.0

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.
@@ -1,4 +1,4 @@
1
- var wo=Object.defineProperty,Fr=e=>{throw TypeError(e)},mo=(e,t,n)=>t in e?wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xe=(e,t,n)=>mo(e,typeof t!="symbol"?t+"":t,n),lr=(e,t,n)=>t.has(e)||Fr("Cannot "+n),d=(e,t,n)=>(lr(e,t,"read from private field"),n?n.call(e):t.get(e)),j=(e,t,n)=>t.has(e)?Fr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),A=(e,t,n,r)=>(lr(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ee=(e,t,n)=>(lr(e,t,"access private method"),n);const bo="5";var Ur;typeof window<"u"&&((Ur=window.__svelte??(window.__svelte={})).v??(Ur.v=new Set)).add(bo);const Hr=1,Gr=2,Vr=4,yo=8,ko=16,xo=1,_o=2,So=4,Co=8,Po=16,Wo=1,To=2,pe=Symbol(),Eo="http://www.w3.org/1999/xhtml",Do=!1;var ur=Array.isArray,Ao=Array.prototype.indexOf,cr=Array.from,Io=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,Ro=Object.getOwnPropertyDescriptors,Mo=Object.prototype,Bo=Array.prototype,Kr=Object.getPrototypeOf,Zr=Object.isExtensible;function zo(e){for(var t=0;t<e.length;t++)e[t]()}function Qr(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const de=2,dr=4,pr=8,et=16,tt=32,Ct=64,jn=128,qe=512,he=1024,be=2048,nt=4096,Pe=8192,rt=16384,hr=32768,Pt=65536,Yr=1<<17,Jr=1<<18,Ht=1<<19,No=1<<20,Wt=32768,fr=1<<21,vr=1<<22,ht=1<<23,Tt=Symbol("$state"),Lo=Symbol("legacy props"),jo=Symbol(""),Gt=new class extends Error{constructor(){super(...arguments),Xe(this,"name","StaleReactionError"),Xe(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Oo(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function qo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function $o(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Fo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Uo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ho(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Go(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Vo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ko(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Zo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Qo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Yo(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Jo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Xr(e){return e===this.v}function Xo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ei(e){return!Xo(e,this.v)}let Vt=!1,ea=!1;function ta(){Vt=!0}let oe=null;function Kt(e){oe=e}function ft(e,t=!1,n){oe={p:oe,i:!1,c:null,e:null,s:e,x:null,l:Vt&&!t?{s:null,u:null,$:[]}:null}}function vt(e){var t=oe,n=t.e;if(n!==null){t.e=null;for(var r of n)xi(r)}return e!==void 0&&(t.x=e),t.i=!0,oe=t.p,e??{}}function fn(){return!Vt||oe!==null&&oe.l===null}let Et=[];function ti(){var e=Et;Et=[],zo(e)}function Zt(e){if(Et.length===0&&!vn){var t=Et;queueMicrotask(()=>{t===Et&&ti()})}Et.push(e)}function na(){for(;Et.length>0;)ti()}function ni(e){var t=G;if(t===null)return q.f|=ht,e;if(t.f&hr)Qt(e,t);else{if(!(t.f&jn))throw e;t.b.error(e)}}function Qt(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 On=new Set;let V=null,qn=null,fe=null,Re=[],$n=null,gr=!1,vn=!1;var gn,wn,gt,wt,mn,bn,yn,ye,wr,Dt,mr,ri,ii;const ra=class qr{constructor(){j(this,ye),Xe(this,"committed",!1),Xe(this,"current",new Map),Xe(this,"previous",new Map),j(this,gn,new Set),j(this,wn,new Set),j(this,gt,0),j(this,wt,0),j(this,mn,null),j(this,bn,[]),j(this,yn,[]),Xe(this,"skipped_effects",new Set),Xe(this,"is_fork",!1)}is_deferred(){return this.is_fork||d(this,wt)>0}process(t){var n;Re=[],qn=null,this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of t)ee(this,ye,wr).call(this,i,r);this.is_fork||ee(this,ye,ri).call(this),this.is_deferred()?(ee(this,ye,Dt).call(this,r.effects),ee(this,ye,Dt).call(this,r.render_effects),ee(this,ye,Dt).call(this,r.block_effects)):(qn=this,V=null,ai(r.render_effects),ai(r.effects),qn=null,(n=d(this,mn))==null||n.resolve()),fe=null}capture(t,n){this.previous.has(t)||this.previous.set(t,n),t.f&ht||(this.current.set(t,t.v),fe?.set(t,t.v))}activate(){V=this,this.apply()}deactivate(){V===this&&(V=null,fe=null)}flush(){if(this.activate(),Re.length>0){if(oi(),V!==null&&V!==this)return}else d(this,gt)===0&&this.process([]);this.deactivate()}discard(){for(const t of d(this,wn))t(this);d(this,wn).clear()}increment(t){A(this,gt,d(this,gt)+1),t&&A(this,wt,d(this,wt)+1)}decrement(t){A(this,gt,d(this,gt)-1),t&&A(this,wt,d(this,wt)-1),this.revive()}revive(){for(const t of d(this,bn))ge(t,be),It(t);for(const t of d(this,yn))ge(t,nt),It(t);A(this,bn,[]),A(this,yn,[]),this.flush()}oncommit(t){d(this,gn).add(t)}ondiscard(t){d(this,wn).add(t)}settled(){return(d(this,mn)??A(this,mn,Qr())).promise}static ensure(){if(V===null){const t=V=new qr;On.add(V),vn||qr.enqueue(()=>{V===t&&t.flush()})}return V}static enqueue(t){Zt(t)}apply(){}};gn=new WeakMap,wn=new WeakMap,gt=new WeakMap,wt=new WeakMap,mn=new WeakMap,bn=new WeakMap,yn=new WeakMap,ye=new WeakSet,wr=function(e,t){var n;e.f^=he;for(var r=e.first;r!==null;){var i=r.f,o=(i&(tt|Ct))!==0,a=o&&(i&he)!==0,l=a||(i&Pe)!==0||this.skipped_effects.has(r);if(r.f&jn&&(n=r.b)!=null&&n.is_pending()&&(t={parent:t,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){o?r.f^=he:i&dr?t.effects.push(r):Cn(r)&&(r.f&et&&t.block_effects.push(r),Pn(r));var s=r.first;if(s!==null){r=s;continue}}var c=r.parent;for(r=r.next;r===null&&c!==null;)c===t.effect&&(ee(this,ye,Dt).call(this,t.effects),ee(this,ye,Dt).call(this,t.render_effects),ee(this,ye,Dt).call(this,t.block_effects),t=t.parent),r=c.next,c=c.parent}},Dt=function(e){for(const t of e)(t.f&be?d(this,bn):d(this,yn)).push(t),ee(this,ye,mr).call(this,t.deps),ge(t,he)},mr=function(e){if(e!==null)for(const t of e)!(t.f&de)||!(t.f&Wt)||(t.f^=Wt,ee(this,ye,mr).call(this,t.deps))},ri=function(){if(d(this,wt)===0){for(const e of d(this,gn))e();d(this,gn).clear()}d(this,gt)===0&&ee(this,ye,ii).call(this)},ii=function(){var e;if(On.size>1){this.previous.clear();var t=fe,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const o of On){if(o===this){n=!1;continue}const a=[];for(const[s,c]of this.current){if(o.current.has(s))if(n&&c!==o.current.get(s))o.current.set(s,c);else continue;a.push(s)}if(a.length===0)continue;const l=[...o.current.keys()].filter(s=>!this.current.has(s));if(l.length>0){var i=Re;Re=[];const s=new Set,c=new Map;for(const f of a)si(f,l,s,c);if(Re.length>0){V=o,o.apply();for(const f of Re)ee(e=o,ye,wr).call(e,f,r);o.deactivate()}Re=i}}V=null,fe=t}this.committed=!0,On.delete(this)};let At=ra;function ia(e){var t=vn;vn=!0;try{for(var n;;){if(na(),Re.length===0&&(V?.flush(),Re.length===0))return $n=null,n;oi()}}finally{vn=t}}function oi(){var e=kt;gr=!0;var t=null;try{var n=0;for(Qn(!0);Re.length>0;){var r=At.ensure();if(n++>1e3){var i,o;oa()}r.process(Re),yt.clear()}}finally{gr=!1,Qn(e),$n=null}}function oa(){try{Ho()}catch(e){Qt(e,$n)}}let Ve=null;function ai(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(rt|Pe))&&Cn(r)&&(Ve=new Set,Pn(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Pi(r):r.fn=null),Ve?.size>0)){yt.clear();for(const i of Ve){if(i.f&(rt|Pe))continue;const o=[i];let a=i.parent;for(;a!==null;)Ve.has(a)&&(Ve.delete(a),o.push(a)),a=a.parent;for(let l=o.length-1;l>=0;l--){const s=o[l];s.f&(rt|Pe)||Pn(s)}}Ve.clear()}}Ve=null}}function si(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&de?si(i,t,n,r):o&(vr|et)&&!(o&be)&&li(i,t,r)&&(ge(i,be),It(i))}}function li(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&de&&li(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function It(e){for(var t=$n=e;t.parent!==null;){t=t.parent;var n=t.f;if(gr&&t===G&&n&et&&!(n&Jr))return;if(n&(Ct|tt)){if(!(n&he))return;t.f^=he}}Re.push(t)}function aa(e){let t=0,n=Nt(0),r;return()=>{Kn()&&(u(n),Wr(()=>(t===0&&(r=Wn(()=>e(()=>kn(n)))),t+=1,()=>{Zt(()=>{t-=1,t===0&&(r?.(),r=void 0,kn(n))})})))}}var sa=Pt|Ht|jn;function la(e,t,n){new da(e,t,n)}var $e,Fe,ui,it,Yt,ot,Ue,We,at,mt,Rt,Mt,bt,Jt,Bt,br,Me,ua,ca,yr,Fn,Un,kr;class da{constructor(t,n,r){j(this,Me),Xe(this,"parent"),j(this,$e,!1),j(this,Fe),j(this,ui,null),j(this,it),j(this,Yt),j(this,ot),j(this,Ue,null),j(this,We,null),j(this,at,null),j(this,mt,null),j(this,Rt,null),j(this,Mt,0),j(this,bt,0),j(this,Jt,!1),j(this,Bt,null),j(this,br,aa(()=>(A(this,Bt,Nt(d(this,Mt))),()=>{A(this,Bt,null)}))),A(this,Fe,t),A(this,it,n),A(this,Yt,r),this.parent=G.b,A(this,$e,!!d(this,it).pending),A(this,ot,Zn(()=>{G.b=this;{var i=ee(this,Me,yr).call(this);try{A(this,Ue,Be(()=>r(i)))}catch(o){this.error(o)}d(this,bt)>0?ee(this,Me,Un).call(this):A(this,$e,!1)}return()=>{var o;(o=d(this,Rt))==null||o.remove()}},sa))}is_pending(){return d(this,$e)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!d(this,it).pending}update_pending_count(t){ee(this,Me,kr).call(this,t),A(this,Mt,d(this,Mt)+t),d(this,Bt)&&en(d(this,Bt),d(this,Mt))}get_effect_pending(){return d(this,br).call(this),u(d(this,Bt))}error(t){var n=d(this,it).onerror;let r=d(this,it).failed;if(d(this,Jt)||!n&&!r)throw t;d(this,Ue)&&(ke(d(this,Ue)),A(this,Ue,null)),d(this,We)&&(ke(d(this,We)),A(this,We,null)),d(this,at)&&(ke(d(this,at)),A(this,at,null));var i=!1,o=!1;const a=()=>{if(i){Jo();return}i=!0,o&&Qo(),At.ensure(),A(this,Mt,0),d(this,at)!==null&&nn(d(this,at),()=>{A(this,at,null)}),A(this,$e,this.has_pending_snippet()),A(this,Ue,ee(this,Me,Fn).call(this,()=>(A(this,Jt,!1),Be(()=>d(this,Yt).call(this,d(this,Fe)))))),d(this,bt)>0?ee(this,Me,Un).call(this):A(this,$e,!1)};var l=q;try{xe(null),o=!0,n?.(t,a),o=!1}catch(s){Qt(s,d(this,ot)&&d(this,ot).parent)}finally{xe(l)}r&&Zt(()=>{A(this,at,ee(this,Me,Fn).call(this,()=>{At.ensure(),A(this,Jt,!0);try{return Be(()=>{r(d(this,Fe),()=>t,()=>a)})}catch(s){return Qt(s,d(this,ot).parent),null}finally{A(this,Jt,!1)}}))})}}$e=new WeakMap,Fe=new WeakMap,ui=new WeakMap,it=new WeakMap,Yt=new WeakMap,ot=new WeakMap,Ue=new WeakMap,We=new WeakMap,at=new WeakMap,mt=new WeakMap,Rt=new WeakMap,Mt=new WeakMap,bt=new WeakMap,Jt=new WeakMap,Bt=new WeakMap,br=new WeakMap,Me=new WeakSet,ua=function(){try{A(this,Ue,Be(()=>d(this,Yt).call(this,d(this,Fe))))}catch(e){this.error(e)}A(this,$e,!1)},ca=function(){const e=d(this,it).pending;e&&(A(this,We,Be(()=>e(d(this,Fe)))),At.enqueue(()=>{var t=ee(this,Me,yr).call(this);A(this,Ue,ee(this,Me,Fn).call(this,()=>(At.ensure(),Be(()=>d(this,Yt).call(this,t))))),d(this,bt)>0?ee(this,Me,Un).call(this):(nn(d(this,We),()=>{A(this,We,null)}),A(this,$e,!1))}))},yr=function(){var e=d(this,Fe);return d(this,$e)&&(A(this,Rt,st()),d(this,Fe).before(d(this,Rt)),e=d(this,Rt)),e},Fn=function(e){var t=G,n=q,r=oe;Qe(d(this,ot)),xe(d(this,ot)),Kt(d(this,ot).ctx);try{return e()}catch(i){return ni(i),null}finally{Qe(t),xe(n),Kt(r)}},Un=function(){const e=d(this,it).pending;d(this,Ue)!==null&&(A(this,mt,document.createDocumentFragment()),d(this,mt).append(d(this,Rt)),Ei(d(this,Ue),d(this,mt))),d(this,We)===null&&A(this,We,Be(()=>e(d(this,Fe))))},kr=function(e){var t;if(!this.has_pending_snippet()){this.parent&&ee(t=this.parent,Me,kr).call(t,e);return}A(this,bt,d(this,bt)+e),d(this,bt)===0&&(A(this,$e,!1),d(this,We)&&nn(d(this,We),()=>{A(this,We,null)}),d(this,mt)&&(d(this,Fe).before(d(this,mt)),A(this,mt,null)))};function Xt(e,t){return t}function pa(e,t,n){for(var r=[],i=t.length,o=0;o<i;o++)Tr(t[o].e,r,!0);Wi(r,()=>{var a=r.length===0&&n!==null;if(a){var l=n,s=l.parentNode;_a(s),s.append(l),e.items.clear(),Ke(e,t[0].prev,t[i-1].next)}for(var c=0;c<i;c++){var f=t[c];a||(e.items.delete(f.k),Ke(e,f.prev,f.next)),ke(f.e,!a)}e.first===t[0]&&(e.first=t[0].prev)})}function zt(e,t,n,r,i,o=null){var a=e,l=new Map,s=null,c=(t&Vr)!==0,f=(t&Hr)!==0,m=(t&Gr)!==0;if(c){var h=e;a=h.appendChild(st())}var p=null,g=_r(()=>{var v=n();return ur(v)?v:v==null?[]:cr(v)}),b,y=!0;function _(){ha(L,b,a,t,r),p!==null&&(b.length===0?(p.fragment?(a.before(p.fragment),p.fragment=null):Er(p.effect),D.first=p.effect):nn(p.effect,()=>{p=null}))}var D=Zn(()=>{b=u(g);for(var v=b.length,k=new Set,W=V,T=null,P=yi(),R=0;R<v;R+=1){var $=b[R],F=r($,R),H=y?null:l.get(F);H?(f&&en(H.v,$),m?en(H.i,R):H.i=R,P&&W.skipped_effects.delete(H.e)):(H=fa(y?a:null,T,$,F,R,i,t,n),y&&(H.o=!0,T===null?s=H:T.next=H,T=H),l.set(F,H)),k.add(F)}if(v===0&&o&&!p)if(y)p={fragment:null,effect:Be(()=>o(a))};else{var Z=document.createDocumentFragment(),se=st();Z.append(se),p={fragment:Z,effect:Be(()=>o(se))}}if(!y)if(P){for(const[te,Ie]of l)k.has(te)||W.skipped_effects.add(Ie.e);W.oncommit(_),W.ondiscard(()=>{})}else _();u(g)}),L={effect:D,items:l,first:s};y=!1}function ha(e,t,n,r,i){var o,a,l,s,c=(r&yo)!==0,f=t.length,m=e.items,h=e.first,p,g=null,b,y=[],_=[],D,L,v,k;if(c)for(k=0;k<f;k+=1)D=t[k],L=i(D,k),v=m.get(L),(o=v.a)==null||o.measure(),(b??(b=new Set)).add(v);for(k=0;k<f;k+=1){if(D=t[k],L=i(D,k),v=m.get(L),e.first??(e.first=v),!v.o){v.o=!0;var W=g?g.next:h;Ke(e,g,v),Ke(e,v,W),xr(v,W,n),g=v,y=[],_=[],h=g.next;continue}if(v.e.f&Pe&&(Er(v.e),c&&((a=v.a)==null||a.unfix(),(b??(b=new Set)).delete(v))),v!==h){if(p!==void 0&&p.has(v)){if(y.length<_.length){var T=_[0],P;g=T.prev;var R=y[0],$=y[y.length-1];for(P=0;P<y.length;P+=1)xr(y[P],T,n);for(P=0;P<_.length;P+=1)p.delete(_[P]);Ke(e,R.prev,$.next),Ke(e,g,R),Ke(e,$,T),h=T,g=$,k-=1,y=[],_=[]}else p.delete(v),xr(v,h,n),Ke(e,v.prev,v.next),Ke(e,v,g===null?e.first:g.next),Ke(e,g,v),g=v;continue}for(y=[],_=[];h!==null&&h.k!==L;)h.e.f&Pe||(p??(p=new Set)).add(h),_.push(h),h=h.next;if(h===null)continue;v=h}y.push(v),g=v,h=v.next}if(h!==null||p!==void 0){for(var F=p===void 0?[]:cr(p);h!==null;)h.e.f&Pe||F.push(h),h=h.next;var H=F.length;if(H>0){var Z=r&Vr&&f===0?n:null;if(c){for(k=0;k<H;k+=1)(l=F[k].a)==null||l.measure();for(k=0;k<H;k+=1)(s=F[k].a)==null||s.fix()}pa(e,F,Z)}}c&&Zt(()=>{var se;if(b!==void 0)for(v of b)(se=v.a)==null||se.apply()})}function fa(e,t,n,r,i,o,a,l){var s=(a&Hr)!==0,c=(a&ko)===0,f=s?c?ba(n,!1,!1):Nt(n):n,m=a&Gr?Nt(i):i,h={i:m,v:f,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var p=document.createDocumentFragment();p.append(e=st())}return h.e=Be(()=>o(e,f,m,l)),t!==null&&(t.next=h),h}finally{}}function xr(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 a=xn(o);i.before(o),o=a}}function Ke(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 va(e,t,n,r){const i=fn()?Gn:_r;if(n.length===0&&e.length===0){r(t.map(i));return}var o=V,a=G,l=ga();function s(){Promise.all(n.map(c=>wa(c))).then(c=>{l();try{r([...t.map(i),...c])}catch(f){a.f&rt||Qt(f,a)}o?.deactivate(),Hn()}).catch(c=>{Qt(c,a)})}e.length>0?Promise.all(e).then(()=>{l();try{return s()}finally{o?.deactivate(),Hn()}}):s()}function ga(){var e=G,t=q,n=oe,r=V;return function(i=!0){Qe(e),xe(t),Kt(n),i&&r?.activate()}}function Hn(){Qe(null),xe(null),Kt(null)}function Gn(e){var t=de|be,n=q!==null&&q.f&de?q:null;return G!==null&&(G.f|=Ht),{ctx:oe,deps:null,effects:null,equals:Xr,f:t,fn:e,reactions:null,rv:0,v:pe,wv:0,parent:n??G,ac:null}}function wa(e,t){let n=G;n===null&&qo();var r=n.b,i=void 0,o=Nt(pe),a=!q,l=new Map;return Ea(()=>{var s,c=Qr();i=c.promise;try{Promise.resolve(e()).then(c.resolve,c.reject).then(()=>{f===V&&f.committed&&f.deactivate(),Hn()})}catch(p){c.reject(p),Hn()}var f=V;if(a){var m=!r.is_pending();r.update_pending_count(1),f.increment(m),(s=l.get(f))==null||s.reject(Gt),l.delete(f),l.set(f,c)}const h=(p,g=void 0)=>{if(f.activate(),g)g!==Gt&&(o.f|=ht,en(o,g));else{o.f&ht&&(o.f^=ht),en(o,p);for(const[b,y]of l){if(l.delete(b),b===f)break;y.reject(Gt)}}a&&(r.update_pending_count(-1),f.decrement(m))};c.promise.then(h,p=>h(null,p||"unknown"))}),Pr(()=>{for(const s of l.values())s.reject(Gt)}),new Promise(s=>{function c(f){function m(){f===i?s(o):c(i)}f.then(m,m)}c(i)})}function X(e){const t=Gn(e);return Ai(t),t}function _r(e){const t=Gn(e);return t.equals=ei,t}function ci(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ke(t[n])}}function ma(e){for(var t=e.parent;t!==null;){if(!(t.f&de))return t.f&rt?null:t;t=t.parent}return null}function Sr(e){var t,n=G;Qe(ma(e));try{e.f&=~Wt,ci(e),t=zi(e)}finally{Qe(n)}return t}function di(e){var t=Sr(e);if(e.equals(t)||(V!=null&&V.is_fork||(e.v=t),e.wv=Mi()),!Lt)if(fe!==null)Kn()&&fe.set(e,t);else{var n=e.f&qe?he:nt;ge(e,n)}}let Cr=new Set;const yt=new Map;let pi=!1;function Nt(e,t){var n={f:0,v:e,reactions:null,equals:Xr,rv:0,wv:0};return n}function K(e,t){const n=Nt(e);return Ai(n),n}function ba(e,t=!1,n=!0){var r;const i=Nt(e);return t||(i.equals=ei),Vt&&n&&oe!==null&&oe.l!==null&&((r=oe.l).s??(r.s=[])).push(i),i}function w(e,t,n=!1){q!==null&&(!Ze||q.f&Yr)&&fn()&&q.f&(de|et|vr|Yr)&&!(ze!=null&&ze.includes(e))&&Zo();let r=n?He(t):t;return en(e,r)}function en(e,t){if(!e.equals(t)){var n=e.v;Lt?yt.set(e,t):yt.set(e,n),e.v=t;var r=At.ensure();r.capture(e,n),e.f&de&&(e.f&be&&Sr(e),ge(e,e.f&qe?he:nt)),e.wv=Mi(),fi(e,be),fn()&&G!==null&&G.f&he&&!(G.f&(tt|Ct))&&(Ne===null?Ia([e]):Ne.push(e)),!r.is_fork&&Cr.size>0&&!pi&&ya()}return t}function ya(){pi=!1;var e=kt;Qn(!0);const t=Array.from(Cr);try{for(const n of t)n.f&he&&ge(n,nt),Cn(n)&&Pn(n)}finally{Qn(e)}Cr.clear()}function hi(e,t=1){var n=u(e),r=t===1?n++:n--;return w(e,n),r}function kn(e){w(e,e.v+1)}function fi(e,t){var n=e.reactions;if(n!==null)for(var r=fn(),i=n.length,o=0;o<i;o++){var a=n[o],l=a.f;if(!(!r&&a===G)){var s=(l&be)===0;if(s&&ge(a,t),l&de){var c=a;fe?.delete(c),l&Wt||(l&qe&&(a.f|=Wt),fi(c,nt))}else s&&(l&et&&Ve!==null&&Ve.add(a),It(a))}}}function He(e){if(typeof e!="object"||e===null||Tt in e)return e;const t=Kr(e);if(t!==Mo&&t!==Bo)return e;var n=new Map,r=ur(e),i=K(0),o=jt,a=l=>{if(jt===o)return l();var s=q,c=jt;xe(null),Ri(o);var f=l();return xe(s),Ri(c),f};return r&&n.set("length",K(e.length)),new Proxy(e,{defineProperty(l,s,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Vo();var f=n.get(s);return f===void 0?f=a(()=>{var m=K(c.value);return n.set(s,m),m}):w(f,c.value,!0),!0},deleteProperty(l,s){var c=n.get(s);if(c===void 0){if(s in l){const f=a(()=>K(pe));n.set(s,f),kn(i)}}else w(c,pe),kn(i);return!0},get(l,s,c){var f;if(s===Tt)return e;var m=n.get(s),h=s in l;if(m===void 0&&(!h||(f=Ut(l,s))!=null&&f.writable)&&(m=a(()=>{var g=He(h?l[s]:pe),b=K(g);return b}),n.set(s,m)),m!==void 0){var p=u(m);return p===pe?void 0:p}return Reflect.get(l,s,c)},getOwnPropertyDescriptor(l,s){var c=Reflect.getOwnPropertyDescriptor(l,s);if(c&&"value"in c){var f=n.get(s);f&&(c.value=u(f))}else if(c===void 0){var m=n.get(s),h=m?.v;if(m!==void 0&&h!==pe)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return c},has(l,s){var c;if(s===Tt)return!0;var f=n.get(s),m=f!==void 0&&f.v!==pe||Reflect.has(l,s);if(f!==void 0||G!==null&&(!m||(c=Ut(l,s))!=null&&c.writable)){f===void 0&&(f=a(()=>{var p=m?He(l[s]):pe,g=K(p);return g}),n.set(s,f));var h=u(f);if(h===pe)return!1}return m},set(l,s,c,f){var m,h=n.get(s),p=s in l;if(r&&s==="length")for(var g=c;g<h.v;g+=1){var b=n.get(g+"");b!==void 0?w(b,pe):g in l&&(b=a(()=>K(pe)),n.set(g+"",b))}if(h===void 0)(!p||(m=Ut(l,s))!=null&&m.writable)&&(h=a(()=>K(void 0)),w(h,He(c)),n.set(s,h));else{p=h.v!==pe;var y=a(()=>He(c));w(h,y)}var _=Reflect.getOwnPropertyDescriptor(l,s);if(_!=null&&_.set&&_.set.call(f,c),!p){if(r&&typeof s=="string"){var D=n.get("length"),L=Number(s);Number.isInteger(L)&&L>=D.v&&w(D,L+1)}kn(i)}return!0},ownKeys(l){u(i);var s=Reflect.ownKeys(l).filter(m=>{var h=n.get(m);return h===void 0||h.v!==pe});for(var[c,f]of n)f.v!==pe&&!(c in l)&&s.push(c);return s},setPrototypeOf(){Ko()}})}function vi(e){try{if(e!==null&&typeof e=="object"&&Tt in e)return e[Tt]}catch{}return e}function ka(e,t){return Object.is(vi(e),vi(t))}var gi,wi,mi,bi;function xa(){if(gi===void 0){gi=window,wi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;mi=Ut(t,"firstChild").get,bi=Ut(t,"nextSibling").get,Zr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Zr(n)&&(n.__t=void 0)}}function st(e=""){return document.createTextNode(e)}function tn(e){return mi.call(e)}function xn(e){return bi.call(e)}function E(e,t){return tn(e)}function ve(e,t=!1){{var n=tn(e);return n instanceof Comment&&n.data===""?xn(n):n}}function B(e,t=1,n=!1){let r=e;for(;t--;)r=xn(r);return r}function _a(e){e.textContent=""}function yi(){return!1}let ki=!1;function Sa(){ki||(ki=!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 Vn(e){var t=q,n=G;xe(null),Qe(null);try{return e()}finally{xe(t),Qe(n)}}function Ca(e,t,n,r=n){e.addEventListener(t,()=>Vn(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),Sa()}function Pa(e){G===null&&(q===null&&Uo(),Fo()),Lt&&$o()}function Wa(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function lt(e,t,n){var r=G;r!==null&&r.f&Pe&&(e|=Pe);var i={ctx:oe,deps:null,nodes_start:null,nodes_end:null,f:e|be|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{Pn(i),i.f|=hr}catch(l){throw ke(i),l}else t!==null&&It(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&!(o.f&Ht)&&(o=o.first,e&et&&e&Pt&&o!==null&&(o.f|=Pt)),o!==null&&(o.parent=r,r!==null&&Wa(o,r),q!==null&&q.f&de&&!(e&Ct))){var a=q;(a.effects??(a.effects=[])).push(o)}return i}function Kn(){return q!==null&&!Ze}function Pr(e){const t=lt(pr,null,!1);return ge(t,he),t.teardown=e,t}function _n(e){Pa();var t=G.f,n=!q&&(t&tt)!==0&&(t&hr)===0;if(n){var r=oe;(r.e??(r.e=[])).push(e)}else return xi(e)}function xi(e){return lt(dr|No,e,!1)}function Ta(e){At.ensure();const t=lt(Ct|Ht,e,!0);return(n={})=>new Promise(r=>{n.outro?nn(t,()=>{ke(t),r(void 0)}):(ke(t),r(void 0))})}function _i(e){return lt(dr,e,!1)}function Ea(e){return lt(vr|Ht,e,!0)}function Wr(e,t=0){return lt(pr|t,e,!0)}function N(e,t=[],n=[],r=[]){va(r,t,n,i=>{lt(pr,()=>e(...i.map(u)),!0)})}function Zn(e,t=0){var n=lt(et|t,e,!0);return n}function Be(e){return lt(tt|Ht,e,!0)}function Si(e){var t=e.teardown;if(t!==null){const n=Lt,r=q;Di(!0),xe(null);try{t.call(null)}finally{Di(n),xe(r)}}}function Ci(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Vn(()=>{i.abort(Gt)});var r=n.next;n.f&Ct?n.parent=null:ke(n,t),n=r}}function Da(e){for(var t=e.first;t!==null;){var n=t.next;t.f&tt||ke(t),t=n}}function ke(e,t=!0){var n=!1;(t||e.f&Jr)&&e.nodes_start!==null&&e.nodes_end!==null&&(Aa(e.nodes_start,e.nodes_end),n=!0),Ci(e,t&&!n),Yn(e,0),ge(e,rt);var r=e.transitions;if(r!==null)for(const o of r)o.stop();Si(e);var i=e.parent;i!==null&&i.first!==null&&Pi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Aa(e,t){for(;e!==null;){var n=e===t?null:xn(e);e.remove(),e=n}}function Pi(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 nn(e,t,n=!0){var r=[];Tr(e,r,!0),Wi(r,()=>{n&&ke(e),t&&t()})}function Wi(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Tr(e,t,n){if(!(e.f&Pe)){if(e.f^=Pe,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&Pt)!==0||(r.f&tt)!==0&&(e.f&et)!==0;Tr(r,t,o?n:!1),r=i}}}function Er(e){Ti(e,!0)}function Ti(e,t){if(e.f&Pe){e.f^=Pe,e.f&he||(ge(e,be),It(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Pt)!==0||(n.f&tt)!==0;Ti(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}function Ei(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:xn(n);t.append(n),n=i}}let kt=!1;function Qn(e){kt=e}let Lt=!1;function Di(e){Lt=e}let q=null,Ze=!1;function xe(e){q=e}let G=null;function Qe(e){G=e}let ze=null;function Ai(e){q!==null&&(ze===null?ze=[e]:ze.push(e))}let me=null,Te=0,Ne=null;function Ia(e){Ne=e}let Ii=1,Sn=0,jt=Sn;function Ri(e){jt=e}function Mi(){return++Ii}function Cn(e){var t=e.f;if(t&be)return!0;if(t&de&&(e.f&=~Wt),t&nt){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if(Cn(o)&&di(o),o.wv>e.wv)return!0}t&qe&&fe===null&&ge(e,he)}return!1}function Bi(e,t,n=!0){var r=e.reactions;if(r!==null&&!(ze!=null&&ze.includes(e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&de?Bi(o,t,!1):t===o&&(n?ge(o,be):o.f&he&&ge(o,nt),It(o))}}function zi(e){var t,n=me,r=Te,i=Ne,o=q,a=ze,l=oe,s=Ze,c=jt,f=e.f;me=null,Te=0,Ne=null,q=f&(tt|Ct)?null:e,ze=null,Kt(e.ctx),Ze=!1,jt=++Sn,e.ac!==null&&(Vn(()=>{e.ac.abort(Gt)}),e.ac=null);try{e.f|=fr;var m=e.fn,h=m(),p=e.deps;if(me!==null){var g;if(Yn(e,Te),p!==null&&Te>0)for(p.length=Te+me.length,g=0;g<me.length;g++)p[Te+g]=me[g];else e.deps=p=me;if(kt&&Kn()&&e.f&qe)for(g=Te;g<p.length;g++)((t=p[g]).reactions??(t.reactions=[])).push(e)}else p!==null&&Te<p.length&&(Yn(e,Te),p.length=Te);if(fn()&&Ne!==null&&!Ze&&p!==null&&!(e.f&(de|nt|be)))for(g=0;g<Ne.length;g++)Bi(Ne[g],e);return o!==null&&o!==e&&(Sn++,Ne!==null&&(i===null?i=Ne:i.push(...Ne))),e.f&ht&&(e.f^=ht),h}catch(b){return ni(b)}finally{e.f^=fr,me=n,Te=r,Ne=i,q=o,ze=a,Kt(l),Ze=s,jt=c}}function Ra(e,t){let n=t.reactions;if(n!==null){var r=Ao.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&de&&(me===null||!me.includes(t))&&(ge(t,nt),t.f&qe&&(t.f^=qe,t.f&=~Wt),ci(t),Yn(t,0))}function Yn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ra(e,n[r])}function Pn(e){var t=e.f;if(!(t&rt)){ge(e,he);var n=G,r=kt;G=e,kt=!0;try{t&et?Da(e):Ci(e),Si(e);var i=zi(e);e.teardown=typeof i=="function"?i:null,e.wv=Ii;var o;Do&&ea&&e.f&be&&e.deps}finally{kt=r,G=n}}}async function Ma(){await Promise.resolve(),ia()}function u(e){var t=e.f,n=(t&de)!==0;if(q!==null&&!Ze){var r=G!==null&&(G.f&rt)!==0;if(!r&&!(ze!=null&&ze.includes(e))){var i=q.deps;if(q.f&fr)e.rv<Sn&&(e.rv=Sn,me===null&&i!==null&&i[Te]===e?Te++:me===null?me=[e]:me.includes(e)||me.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(Lt){if(yt.has(e))return yt.get(e);if(n){var a=e,l=a.v;return(!(a.f&he)&&a.reactions!==null||Li(a))&&(l=Sr(a)),yt.set(a,l),l}}else n&&!(fe!=null&&fe.has(e))&&(a=e,Cn(a)&&di(a),kt&&Kn()&&!(a.f&qe)&&Ni(a));if(fe!=null&&fe.has(e))return fe.get(e);if(e.f&ht)throw e.v;return e.v}function Ni(e){if(e.deps!==null){e.f^=qe;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&de&&!(t.f&qe)&&Ni(t)}}function Li(e){if(e.v===pe)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(yt.has(t)||t.f&de&&Li(t))return!0;return!1}function Wn(e){var t=Ze;try{return Ze=!0,e()}finally{Ze=t}}const Ba=-7169;function ge(e,t){e.f=e.f&Ba|t}const ji=new Set,Dr=new Set;function za(e,t,n,r={}){function i(o){if(r.capture||Tn.call(t,o),!o.cancelBubble)return Vn(()=>n?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Zt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ut(e,t,n,r,i){var o={capture:r,passive:i},a=za(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Pr(()=>{t.removeEventListener(e,a,o)})}function Jn(e){for(var t=0;t<e.length;t++)ji.add(e[t]);for(var n of Dr)n(e)}let Oi=null;function Tn(e){var t,n=this,r=n.ownerDocument,i=e.type,o=((t=e.composedPath)==null?void 0:t.call(e))||[],a=o[0]||e.target;Oi=e;var l=0,s=Oi===e&&e.__root;if(s){var c=o.indexOf(s);if(c!==-1&&(n===document||n===window)){e.__root=n;return}var f=o.indexOf(n);if(f===-1)return;c<=f&&(l=c)}if(a=o[l]||e.target,a!==n){Io(e,"currentTarget",{configurable:!0,get(){return a||r}});var m=q,h=G;xe(null),Qe(null);try{for(var p,g=[];a!==null;){var b=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+i];y!=null&&(!a.disabled||e.target===a)&&y.call(a,e)}catch(_){p?g.push(_):p=_}if(e.cancelBubble||b===n||b===null)break;a=b}if(p){for(let _ of g)queueMicrotask(()=>{throw _});throw p}}finally{e.__root=n,delete e.currentTarget,xe(m),Qe(h)}}}function qi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function En(e,t){var n=G;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function z(e,t){var n=(t&Wo)!==0,r=(t&To)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=qi(o?e:"<!>"+e),n||(i=tn(i)));var a=r||wi?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=tn(a),s=a.lastChild;En(l,s)}else En(a,a);return a}}function Na(e,t,n="svg"){var r=!e.startsWith("<!>"),i=`<${n}>${r?e:"<!>"+e}</${n}>`,o;return()=>{if(!o){var a=qi(i),l=tn(a);o=tn(l)}var s=o.cloneNode(!0);return En(s,s),s}}function Xn(e,t){return Na(e,t,"svg")}function rn(e=""){{var t=st(e+"");return En(t,t),t}}function Ge(){var e=document.createDocumentFragment(),t=document.createComment(""),n=st();return e.append(t,n),En(t,n),e}function C(e,t){e!==null&&e.before(t)}const La=["touchstart","touchmove"];function ja(e){return La.includes(e)}function O(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 Oa(e,t){return qa(e,t)}const on=new Map;function qa(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:a=!0}){xa();var l=new Set,s=m=>{for(var h=0;h<m.length;h++){var p=m[h];if(!l.has(p)){l.add(p);var g=ja(p);t.addEventListener(p,Tn,{passive:g});var b=on.get(p);b===void 0?(document.addEventListener(p,Tn,{passive:g}),on.set(p,1)):on.set(p,b+1)}}};s(cr(ji)),Dr.add(s);var c=void 0,f=Ta(()=>{var m=n??t.appendChild(st());return la(m,{pending:()=>{}},h=>{if(o){ft({});var p=oe;p.c=o}i&&(r.$$events=i),c=e(h,r)||{},o&&vt()}),()=>{var h;for(var p of l){t.removeEventListener(p,Tn);var g=on.get(p);--g===0?(document.removeEventListener(p,Tn),on.delete(p)):on.set(p,g)}Dr.delete(s),m!==n&&((h=m.parentNode)==null||h.removeChild(m))}});return $a.set(c,f),c}let $a=new WeakMap;var Ye,ct,Le,an,er,tr,Ar;class $i{constructor(t,n=!0){Xe(this,"anchor"),j(this,Ye,new Map),j(this,ct,new Map),j(this,Le,new Map),j(this,an,new Set),j(this,er,!0),j(this,tr,()=>{var r=V;if(d(this,Ye).has(r)){var i=d(this,Ye).get(r),o=d(this,ct).get(i);if(o)Er(o),d(this,an).delete(i);else{var a=d(this,Le).get(i);a&&(d(this,ct).set(i,a.effect),d(this,Le).delete(i),a.fragment.lastChild.remove(),this.anchor.before(a.fragment),o=a.effect)}for(const[l,s]of d(this,Ye)){if(d(this,Ye).delete(l),l===r)break;const c=d(this,Le).get(s);c&&(ke(c.effect),d(this,Le).delete(s))}for(const[l,s]of d(this,ct)){if(l===i||d(this,an).has(l))continue;const c=()=>{if(Array.from(d(this,Ye).values()).includes(l)){var f=document.createDocumentFragment();Ei(s,f),f.append(st()),d(this,Le).set(l,{effect:s,fragment:f})}else ke(s);d(this,an).delete(l),d(this,ct).delete(l)};d(this,er)||!o?(d(this,an).add(l),nn(s,c,!1)):c()}}}),j(this,Ar,r=>{d(this,Ye).delete(r);const i=Array.from(d(this,Ye).values());for(const[o,a]of d(this,Le))i.includes(o)||(ke(a.effect),d(this,Le).delete(o))}),this.anchor=t,A(this,er,n)}ensure(t,n){var r=V,i=yi();if(n&&!d(this,ct).has(t)&&!d(this,Le).has(t))if(i){var o=document.createDocumentFragment(),a=st();o.append(a),d(this,Le).set(t,{effect:Be(()=>n(a)),fragment:o})}else d(this,ct).set(t,Be(()=>n(this.anchor)));if(d(this,Ye).set(r,t),i){for(const[l,s]of d(this,ct))l===t?r.skipped_effects.delete(s):r.skipped_effects.add(s);for(const[l,s]of d(this,Le))l===t?r.skipped_effects.delete(s.effect):r.skipped_effects.add(s.effect);r.oncommit(d(this,tr)),r.ondiscard(d(this,Ar))}else d(this,tr).call(this)}}Ye=new WeakMap,ct=new WeakMap,Le=new WeakMap,an=new WeakMap,er=new WeakMap,tr=new WeakMap,Ar=new WeakMap;function Ir(e){oe===null&&Oo(),Vt&&oe.l!==null?Fa(oe).m.push(e):_n(()=>{const t=Wn(e);if(typeof t=="function")return t})}function Fa(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function U(e,t,n=!1){var r=new $i(e),i=n?Pt:0;function o(a,l){r.ensure(a,l)}Zn(()=>{var a=!1;t((l,s=!0)=>{a=!0,o(s,l)}),a||o(!1,null)},i)}function Fi(e,t,n,r,i){var o,a=(o=t.$$slots)==null?void 0:o[n],l=!1;a===!0&&(a=t.children,l=!0),a===void 0||a(e,l?()=>r:r)}function Ui(e,t,n){var r=new $i(e);Zn(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},Pt)}function xt(e,t){_i(()=>{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 Hi(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=Hi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ua(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Hi(e))&&(r&&(r+=" "),r+=t);return r}function sn(e){return typeof e=="object"?Ua(e):e??""}function Ha(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function _t(e,t,n,r,i,o){var a=e.__className;if(a!==n||a===void 0){var l=Ha(n,r);l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l),e.__className=n}return o}function Gi(e,t,n=!1){if(e.multiple){if(t==null)return;if(!ur(t))return Yo();for(var r of e.options)r.selected=t.includes(Vi(r));return}for(r of e.options){var i=Vi(r);if(ka(i,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Ga(e){var t=new MutationObserver(()=>{Gi(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Pr(()=>{t.disconnect()})}function Vi(e){return"__value"in e?e.__value:e.value}const Va=Symbol("is custom element"),Ka=Symbol("is html");function Za(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function ue(e,t,n,r){var i=Qa(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[jo]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Ya(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Qa(e){return e.__attributes??(e.__attributes={[Va]:e.nodeName.includes("-"),[Ka]:e.namespaceURI===Eo})}var Ki=new Map;function Ya(e){var t=e.getAttribute("is")||e.nodeName,n=Ki.get(t);if(n)return n;Ki.set(t,n=[]);for(var r,i=e,o=Element.prototype;o!==i;){r=Ro(i);for(var a in r)r[a].set&&n.push(a);i=Kr(i)}return n}function Ja(e,t,n=t){var r=new WeakSet;Ca(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(o=Rr(e)?Mr(o):o,n(o),V!==null&&r.add(V),await Ma(),o!==(o=t())){var a=e.selectionStart,l=e.selectionEnd,s=e.value.length;if(e.value=o??"",l!==null){var c=e.value.length;a===l&&l===s&&c>s?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=a,e.selectionEnd=Math.min(l,c))}}}),Wn(t)==null&&e.value&&(n(Rr(e)?Mr(e.value):e.value),V!==null&&r.add(V)),Wr(()=>{var i=t();if(e===document.activeElement){var o=qn??V;if(r.has(o))return}Rr(e)&&i===Mr(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function Rr(e){var t=e.type;return t==="number"||t==="range"}function Mr(e){return e===""?null:+e}function Zi(e,t){return e===t||e?.[Tt]===t}function Xa(e={},t,n,r){return _i(()=>{var i,o;return Wr(()=>{i=o,o=[],Wn(()=>{e!==n(...o)&&(t(e,...o),i&&Zi(n(...i),e)&&t(null,...i))})}),()=>{Zt(()=>{o&&Zi(n(...o),e)&&t(null,...o)})}}),e}let nr=!1;function es(e){var t=nr;try{return nr=!1,[e(),nr]}finally{nr=t}}function Ee(e,t,n,r){var i,o=!Vt||(n&_o)!==0,a=(n&Co)!==0,l=(n&Po)!==0,s=r,c=!0,f=()=>(c&&(c=!1,s=l?Wn(r):r),s),m;if(a){var h=Tt in e||Lo in e;m=((i=Ut(e,t))==null?void 0:i.set)??(h&&t in e?v=>e[t]=v:void 0)}var p,g=!1;a?[p,g]=es(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=f(),m&&(o&&Go(),m(p)));var b;if(o?b=()=>{var v=e[t];return v===void 0?f():(c=!0,v)}:b=()=>{var v=e[t];return v!==void 0&&(s=void 0),v===void 0?s:v},o&&!(n&So))return b;if(m){var y=e.$$legacy;return function(v,k){return arguments.length>0?((!o||!k||y||g)&&m(k?b():v),v):b()}}var _=!1,D=(n&xo?Gn:_r)(()=>(_=!1,b()));a&&u(D);var L=G;return function(v,k){if(arguments.length>0){const W=k?u(D):o&&a?He(v):v;return w(D,W),_=!0,s!==void 0&&(s=W),v}return Lt&&_||L.f&rt?D.v:u(D)}}function Qi(){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 Br(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 Yi(){const e="uniqueUserID";let t=zr(e);return t||(t=Qi(),Br(e,t,365)),t}function De(e,t,n={},r={}){const i="https://admin-api.wineater.com/api/widget-events";let o=zr("uniqueUserID");o||(o=Yi());const a={user_agent:navigator.userAgent,screen_width:window.screen.width,screen_height:window.screen.height,language:navigator.language,platform:navigator.platform},l=new Date().toISOString();let s=zr("sessionID");s||(s=Qi(),Br("sessionID",s,1));const c={event_type:e,store_id:t,session_id:s,event_time:l,data:n,meta:{...r,user_id:o},device_info:a,region:navigator.language.split("-")[1]||null,language:navigator.language.split("-")[0]||"en"};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(f=>f.ok?f.json():f.json().then(m=>{throw new Error(m.message||"Failed to track widget event")})).catch(f=>{throw console.error("Widget event tracking error:",f),f})}function ts(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 Nr(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 ns(e){return{recommendations:(e.recommendations||[]).filter(Boolean).map(Nr),hasMore:!!e.has_more}}var Ot,St,Dn;class rs{constructor(t,n="1"){j(this,Ot,"https://api.wineater.com/"),j(this,St),j(this,Dn),A(this,St,t),A(this,Dn,n)}async getInstantRecommendations(){try{const t=d(this,Dn)==="2"?"dish/recommendations/instant/v2":"dish/recommendations/instant",n=await fetch(`${d(this,Ot)}${t}`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d(this,St)}`}}),r=await n.json();if(!n.ok)throw new Error(`API call failed with status ${n.status}: ${r.message||"No additional error information"}`);return r.filter(Boolean).map(ts)}catch(t){throw new Error(`Error in getInstantRecommendations: ${t.message}`)}}async getWineRecommendationsSearch(t){try{const n=d(this,Dn)==="2"?"dish/recommendations/search/v2":"dish/recommendations/search",r=await fetch(`${d(this,Ot)}${n}`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d(this,St)}`},body:JSON.stringify({text:t})}),i=await r.json();if(!r.ok)throw new Error(`API call failed with status ${r.status}: ${i.message||"No additional error information"}`);return i.filter(Boolean).map(Nr)}catch(n){throw new Error(`Error in getWineRecommendations: ${n.message}`)}}async getMoreWineRecommendations(t,n){try{const r=await fetch(`${d(this,Ot)}dish/recommendations/search/v2/more`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d(this,St)}`},body:JSON.stringify({text:t,exclude_ids:n})}),i=await r.json();if(!r.ok)throw new Error(`API call failed with status ${r.status}: ${i.message||"No additional error information"}`);return ns(i)}catch(r){throw new Error(`Error in getMoreWineRecommendations: ${r.message}`)}}async getSimilarWines(t){try{const n=await fetch(`${d(this,Ot)}dish/recommendations/similar`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d(this,St)}`},body:JSON.stringify({id:t})}),r=await n.json();if(!n.ok)throw new Error(`API call failed with status ${n.status}: ${r.message||"No additional error information"}`);return r.filter(Boolean).map(Nr)}catch(n){throw new Error(`Error in getSimilarWines: ${n.message}`)}}async getStoreConfig(){try{const t=await fetch(`${d(this,Ot)}stores/store`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d(this,St)}`}});if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return await t.json()}catch(t){throw console.error("Error fetching store configuration:",t),t}}}Ot=new WeakMap,St=new WeakMap,Dn=new WeakMap;const is="HeUw6IXuhvz6tRuXdPEGEbj3SGQ3Q2YtEc1Z8jd41Kg9LtyPb4Epu0to31SYIadG";var Ji;const Xi=((Ji=window?.wineaterData)==null?void 0:Ji.CLIENT_TOKEN)||is;var eo;const Lr=String(((eo=window?.wineaterData)==null?void 0:eo.apiVersion)||"1"),An=new rs(Xi,Lr);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 to=`${os(Xi)}:${Lr}`,no="wineater:v1:";function ro(e,t){try{const n=window.localStorage.getItem(no+e);if(!n)return null;const r=JSON.parse(n);return Date.now()-r.savedAt>t?null:r.value}catch{return null}}function io(e,t){try{const n={savedAt:Date.now(),value:t};window.localStorage.setItem(no+e,JSON.stringify(n))}catch{}}const Ae={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"},as={lang:"fr",welcomeMessage:"Quel plat allez-vous d\xE9guster ? D\xE9crivez-le-moi et je vous proposerai le vin qui l'accompagnera parfaitement.",noResultsFound:"Aucun r\xE9sultat trouv\xE9.",somethingWentWrong:"D\xE9sol\xE9, quelque chose a mal tourn\xE9.",chatButton1:"Trouvez l'accord parfait",chatButton2:"Associez le vin",chatButton3:"Obtenez des conseils",chatTitle:"Accord Mets & Vins \u{1F377}",chatSubtitle:"D\xE9crivez votre plat et obtenez une recommandation en 30 secondes",inputPlaceholder:"ex., Salade de thon",sendButton:"Accorder",poweredBy:"Propuls\xE9 par",price:"Prix",region:"R\xE9gion",type:"Type",reason:"Suggestion",moreInfo:"Plus d'infos",tryAgain:"R\xE9essayer",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\xEAte\u2014votre repas, humeur, budget ou occasion\u2014et notre sommelier IA vous recommandera le vin parfait en quelques secondes",searchPlaceholder:"Entrez un mot-cl\xE9 ou une description","wineDetails.reason":"Raison","wineDetails.price":"Prix","wineDetails.region":"R\xE9gion","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\xE9",red:"Rouge",white:"Blanc",rose:"Ros\xE9",light:"L\xE9ger",medium:"Moyen",full:"Puissant",barTitle:"S\xE9lection du bar",barSubtitle:"Choisissez vos plats ci-dessous et cliquez sur \xABEnvoyer\xBB",barSendButton:"Envoyer",barResetButton:"R\xE9initialiser",barName:"Nom du bar",barNotesPlaceholder:"Entrez vos souhaits ici...",placeholderSuggestions:["Vin pour les p\xE2tes","Parfait avec du poisson","Recommand\xE9 pour une soir\xE9e"],headerLine1:"Partagez tout ce qui vous passe par la t\xEAte \u2014",headerLine2:"\u2014 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\xE9essayer plus tard.",noResultsMessage:"Aucun r\xE9sultat trouv\xE9 pour votre recherche. Veuillez essayer une autre requ\xEAte.",ai_sommelier:"AI sommelier"},ss={lang:"es",welcomeMessage:"\xBFQu\xE9 vas a comer? Cu\xE9ntame tu plato y te recomendar\xE9 el maridaje perfecto.",noResultsFound:"No se encontraron resultados.",somethingWentWrong:"Lo sentimos, algo sali\xF3 mal.",chatButton1:"Encuentra tu maridaje",chatButton2:"Combina vino ya",chatButton3:"Recibe asesor\xEDa ahora",chatTitle:"Maridaje de Vinos \u{1F377}",chatSubtitle:"Describe tu comida y obt\xE9n una recomendaci\xF3n en 30 segundos",inputPlaceholder:"ej., Ensalada de at\xFAn",sendButton:"Combinar",poweredBy:"Desarrollado por",price:"Precio",region:"Regi\xF3n",type:"Tipo",reason:"Sugerencia",moreInfo:"M\xE1s info",tryAgain:"Probar otra vez",similarWines:"Vinos similares",byTheGlass:"Por copa",winePairingIntro:"Para este vino, aqu\xED tienes algunas sugerencias de platos:",askForDinner:"\xBFQu\xE9 te gustar\xEDa cenar?",clearChatButton:"Limpiar el chat",widgetTitle:"ENCUENTRA TU VINO PERFECTO",widgetSubtitle:"Comparte cualquier cosa que tengas en mente\u2014tu comida, estado de \xE1nimo, presupuesto o evento\u2014y nuestro sommelier de IA te recomendar\xE1 el vino perfecto en segundos",searchPlaceholder:"Escribe una palabra clave o descripci\xF3n","wineDetails.reason":"Raz\xF3n","wineDetails.price":"Precio","wineDetails.region":"Regi\xF3n","wineDetails.type":"Tipo","wineDetails.code":"C\xF3digo","wineDetails.moreInfo":"M\xE1s informaci\xF3n","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 \xABEnviar\xBB",barSendButton:"Enviar",barResetButton:"Reiniciar",barName:"Nombre del bar",barNotesPlaceholder:"Agrega tus comentarios aqu\xED...",placeholderSuggestions:["Vino para pasta","Perfecto con pescado","Recomendado para una fiesta"],headerLine1:"Comparte cualquier cosa que tengas en mente \u2014",headerLine2:"\u2014 y obt\xE9n recomendaciones del vino perfecto en cuesti\xF3n de segundos",headerMeal:"comida",headerMood:"estado de \xE1nimo",headerBudget:"presupuesto",headerOccasion:"ocasi\xF3n",headerOr:"o",errorMessage:"Algo sali\xF3 mal. Por favor, int\xE9ntalo de nuevo m\xE1s tarde.",noResultsMessage:"No se encontraron resultados para tu b\xFAsqueda. Por favor, intenta con otra consulta.",ai_sommelier:"AI sommelier"},ls={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 \u{1F377}",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\u2014your meal, mood, budget, or occasion\u2014and 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\xE9",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 \u2014",headerLine2:"\u2014 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"},us={lang:"sr",welcomeMessage:"\u0160ta planirate da jedete? Podelite svoje jelo i preporu\u010Di\u0107u vam savr\u0161eno vino uz obrok.",noResultsFound:"Nema rezultata.",somethingWentWrong:"Izvinite, ne\u0161to je po\u0161lo po zlu.",chatButton1:"Prona\u0111i vino",chatButton2:"Upari vino sada",chatButton3:"Zatra\u017Ei preporuku",chatTitle:"Asistent za uparivanje vina \u{1F377}",chatSubtitle:"Opi\u0161ite svoj obrok i dobijte preporuku za 30 sekundi",inputPlaceholder:"npr. Tuna salata",sendButton:"Upari",poweredBy:"Pokre\u0107e",price:"Cena",region:"Regija",type:"Tip",reason:"Preporuka",moreInfo:"Vi\u0161e informacija",tryAgain:"Poku\u0161aj ponovo",similarWines:"Sli\u010Dna vina",byTheGlass:"Na \u010Da\u0161u",winePairingIntro:"Za ovo vino, preporu\u010Duju se slede\u0107a jela:",askForDinner:"\u0160ta biste \u017Eeleli za ve\u010Deru?",clearChatButton:"Obri\u0161i razgovor",widgetTitle:"PRONA\u0110ITE SAVR\u0160ENO VINO",widgetSubtitle:"Podelite bilo \u0161ta \u2014 obrok, raspolo\u017Eenje, bud\u017Eet ili priliku \u2014 i na\u0161 AI somelijer \u0107e vam za par sekundi preporu\u010Diti vino",searchPlaceholder:"Unesite klju\u010Dnu re\u010D ili opis","wineDetails.price":"Cena","wineDetails.region":"Regija","wineDetails.type":"Tip","wineDetails.moreInfo":"Vi\u0161e informacija","wineDetails.reason":"Razlog","wineDetails.code":"\u0160ifra","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\u0161alji'",barSendButton:"Po\u0161alji",barResetButton:"Resetuj",barName:"Naziv bara",barNotesPlaceholder:"Dodajte svoje \u017Eelje ovde...",placeholderSuggestions:["Vino uz pastu","Savr\u0161eno uz ribu","Preporuka za \u017Eurku"],headerLine1:"Podelite bilo \u0161ta \u0161to vam je na umu \u2014",headerLine2:"\u2014 i dobijte preporuke za savr\u0161eno vino za par sekundi",headerMeal:"obrok",headerMood:"raspolo\u017Eenje",headerBudget:"bud\u017Eet",headerOccasion:"prilika",headerOr:"ili",errorMessage:"Ne\u0161to je po\u0161lo po zlu. Molimo poku\u0161ajte ponovo kasnije.",noResultsMessage:"Nema rezultata za va\u0161u pretragu. Molimo poku\u0161ajte sa druga\u010Dijim upitom.",ai_sommelier:"AI sommelier"},cs={lang:"de",welcomeMessage:"Was m\xF6chten 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\xE4hlen",chatButton3:"Erhalte Weinberatung",chatTitle:"Wein & Speisen \u{1F377}",chatSubtitle:"Beschreiben Sie Ihr Gericht und erhalten Sie in 30 Sekunden eine Empfehlung",inputPlaceholder:"z.B., Thunfischsalat",sendButton:"Kombinieren",poweredBy:"Unterst\xFCtzt von",price:"Preis",region:"Region",type:"Typ",reason:"Anregung",moreInfo:"Mehr Info",tryAgain:"Nochmal versuchen",similarWines:"\xC4hnliche Weine",byTheGlass:"Glasweise",winePairingIntro:"F\xFCr diesen Wein gibt es folgende Essensvorschl\xE4ge:",askForDinner:"Was m\xF6chten Sie zum Abendessen essen?",clearChatButton:"Chat l\xF6schen",widgetTitle:"FINDEN SIE IHREN PERFEKTEN WEIN",widgetSubtitle:"Teilen Sie alles, was Ihnen in den Sinn kommt\u2014Ihre Mahlzeit, Stimmung, Ihr Budget oder Anlass\u2014und unser KI-Sommelier empfiehlt Ihnen in Sekunden den perfekten Wein",placeholderSuggestions:["Wein f\xFCr Pasta","Perfekt zu Fisch","Empfohlen f\xFCr 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\xE4t",red:"Rot",white:"Wei\xDF",rose:"Ros\xE9",light:"Leicht",medium:"Mittel",full:"Voll",barTitle:"Bar-Auswahl",barSubtitle:"W\xE4hlen Sie Ihre Gerichte und klicken Sie auf 'Senden'",barSendButton:"Senden",barResetButton:"Zur\xFCcksetzen",barName:"Name der Bar",headerLine1:"Teilen Sie alles, was Ihnen durch den Kopf geht \u2014",headerLine2:"\u2014 und erhalten Sie in Sekundenschnelle Empfehlungen f\xFCr den perfekten Wein",headerMeal:"Mahlzeit",headerMood:"Stimmung",headerBudget:"Budget",headerOccasion:"Anlass",headerOr:"oder",errorMessage:"Etwas ist schief gelaufen. Bitte versuchen Sie es sp\xE4ter erneut.",noResultsMessage:"Keine Ergebnisse f\xFCr Ihre Suche gefunden. Bitte versuchen Sie es mit einer anderen Anfrage.",ai_sommelier:"AI sommelier"},ds={lang:"ukr",welcomeMessage:"\u0429\u043E \u0432\u0438 \u0437\u0431\u0438\u0440\u0430\u0454\u0442\u0435\u0441\u044C \u0457\u0441\u0442\u0438? \u041E\u043F\u0438\u0448\u0456\u0442\u044C \u0441\u0432\u043E\u044E \u0441\u0442\u0440\u0430\u0432\u0443, \u0456 \u044F \u043F\u043E\u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u044E \u0432\u0430\u043C \u0456\u0434\u0435\u0430\u043B\u044C\u043D\u0435 \u0432\u0438\u043D\u043E.",noResultsFound:"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0456\u0432 \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E.",somethingWentWrong:"\u0412\u0438\u0431\u0430\u0447\u0442\u0435, \u0449\u043E\u0441\u044C \u043F\u0456\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",chatButton1:"\u0417\u043D\u0430\u0439\u0442\u0438 \u0456\u0434\u0435\u0430\u043B\u044C\u043D\u0435 \u043F\u043E\u0454\u0434\u043D\u0430\u043D\u043D\u044F",chatButton2:"\u041F\u0456\u0434\u0456\u0431\u0440\u0430\u0442\u0438 \u0432\u0438\u043D\u043E",chatButton3:"\u041E\u0442\u0440\u0438\u043C\u0430\u0442\u0438 \u043F\u043E\u0440\u0430\u0434\u0443",chatTitle:"\u0421\u043E\u043C\u0435\u043B\u044C\u0454-\u043F\u043E\u043C\u0456\u0447\u043D\u0438\u043A \u{1F377}",chatSubtitle:"\u041E\u043F\u0438\u0448\u0456\u0442\u044C \u0441\u0432\u043E\u044E \u0441\u0442\u0440\u0430\u0432\u0443 \u0456 \u043E\u0442\u0440\u0438\u043C\u0430\u0439\u0442\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0456\u044E \u0437\u0430 30 \u0441\u0435\u043A\u0443\u043D\u0434",inputPlaceholder:"\u043D\u0430\u043F\u0440\u0438\u043A\u043B\u0430\u0434, \u0422\u0443\u043D\u0435\u0446\u044C \u0456\u0437 \u0441\u0430\u043B\u0430\u0442\u043E\u043C",sendButton:"\u041F\u0456\u0434\u0456\u0431\u0440\u0430\u0442\u0438",poweredBy:"\u0420\u043E\u0437\u0440\u043E\u0431\u043B\u0435\u043D\u043E \u043D\u0430 \u043E\u0441\u043D\u043E\u0432\u0456",price:"\u0426\u0456\u043D\u0430",region:"\u0420\u0435\u0433\u0456\u043E\u043D",type:"\u0422\u0438\u043F",reason:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0456\u044F",moreInfo:"\u0414\u043E\u043A\u043B\u0430\u0434\u043D\u0456\u0448\u0435",tryAgain:"\u0421\u043F\u0440\u043E\u0431\u0443\u0432\u0430\u0442\u0438 \u0449\u0435",similarWines:"\u0421\u0445\u043E\u0436\u0456 \u0432\u0438\u043D\u0430",byTheGlass:"\u041D\u0430 \u043A\u0435\u043B\u0438\u0445",winePairingIntro:"\u0414\u043E \u0446\u044C\u043E\u0433\u043E \u0432\u0438\u043D\u0430 \u043F\u0456\u0434\u0445\u043E\u0434\u044F\u0442\u044C \u0442\u0430\u043A\u0456 \u0441\u0442\u0440\u0430\u0432\u0438:",askForDinner:"\u0429\u043E \u0432\u0438 \u0445\u043E\u0447\u0435\u0442\u0435 \u043D\u0430 \u0432\u0435\u0447\u0435\u0440\u044E?",clearChatButton:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0447\u0430\u0442",widgetTitle:"\u0417\u041D\u0410\u0419\u0414\u0406\u0422\u042C \u0406\u0414\u0415\u0410\u041B\u042C\u041D\u0415 \u0412\u0418\u041D\u041E",widgetSubtitle:"\u041F\u043E\u0434\u0456\u043B\u0456\u0442\u044C\u0441\u044F \u0442\u0438\u043C, \u0449\u043E \u0443 \u0432\u0430\u0441 \u043D\u0430 \u0434\u0443\u043C\u0446\u0456\u2014\u0457\u0436\u0430, \u043D\u0430\u0441\u0442\u0440\u0456\u0439, \u0431\u044E\u0434\u0436\u0435\u0442 \u0447\u0438 \u043F\u043E\u0434\u0456\u044F\u2014\u0456 \u043D\u0430\u0448 AI-\u0441\u043E\u043C\u0435\u043B\u044C\u0454 \u043F\u043E\u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0454 \u0432\u0430\u043C \u0456\u0434\u0435\u0430\u043B\u044C\u043D\u0435 \u0432\u0438\u043D\u043E \u0437\u0430 \u0441\u0435\u043A\u0443\u043D\u0434\u0438",searchPlaceholder:"\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u043A\u043B\u044E\u0447\u043E\u0432\u0435 \u0441\u043B\u043E\u0432\u043E \u0430\u0431\u043E \u043E\u043F\u0438\u0441","wineDetails.reason":"\u041F\u0440\u0438\u0447\u0438\u043D\u0430","wineDetails.price":"\u0426\u0456\u043D\u0430","wineDetails.region":"\u0420\u0435\u0433\u0456\u043E\u043D","wineDetails.type":"\u0422\u0438\u043F","wineDetails.moreInfo":"\u0414\u043E\u043A\u043B\u0430\u0434\u043D\u0456\u0448\u0435","wineDetails.code":"\u041A\u043E\u0434","wineDetails.buy":"\u041A\u0443\u043F\u0438\u0442\u0438",searchButton:"\u041F\u043E\u0448\u0443\u043A",priceRange:"\u0414\u0456\u0430\u043F\u0430\u0437\u043E\u043D \u0446\u0456\u043D",wineColor:"\u041A\u043E\u043B\u0456\u0440 \u0432\u0438\u043D\u0430",intensity:"\u0406\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u0456\u0441\u0442\u044C",red:"\u0427\u0435\u0440\u0432\u043E\u043D\u0435",white:"\u0411\u0456\u043B\u0435",rose:"\u0420\u043E\u0436\u0435\u0432\u0435",light:"\u041B\u0435\u0433\u043A\u0435",medium:"\u0421\u0435\u0440\u0435\u0434\u043D\u0454",full:"\u041F\u043E\u0432\u043D\u0435",barTitle:"\u0417\u0430\u043A\u0443\u0441\u043A\u0438 \u0434\u043E \u0432\u0438\u043D\u0430",barSubtitle:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0441\u0442\u0440\u0430\u0432\u0438 \u043D\u0438\u0436\u0447\u0435 \u0442\u0430 \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \xAB\u041D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438\xBB",barSendButton:"\u041D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438",barResetButton:"\u0421\u043A\u0438\u043D\u0443\u0442\u0438",barName:"\u041D\u0430\u0437\u0432\u0430 \u0431\u0430\u0440\u0443",barNotesPlaceholder:"\u0414\u043E\u0434\u0430\u0439\u0442\u0435 \u0432\u0430\u0448\u0456 \u043F\u043E\u0431\u0430\u0436\u0430\u043D\u043D\u044F \u0442\u0443\u0442...",placeholderSuggestions:["\u0412\u0438\u043D\u043E \u0434\u043E \u043F\u0430\u0441\u0442\u0438","\u0406\u0434\u0435\u0430\u043B\u044C\u043D\u043E \u0434\u043E \u0440\u0438\u0431\u0438","\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0454\u043C\u043E \u0434\u043B\u044F \u0432\u0435\u0447\u0456\u0440\u043A\u0438"],headerLine1:"\u041F\u043E\u0434\u0456\u043B\u0456\u0442\u044C\u0441\u044F \u0431\u0443\u0434\u044C-\u044F\u043A\u0438\u043C\u0438 \u0432\u0430\u0448\u0438\u043C\u0438 \u0434\u0443\u043C\u043A\u0430\u043C\u0438 \u2014",headerLine2:"\u2014 \u0456 \u043E\u0442\u0440\u0438\u043C\u0430\u0439\u0442\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0456\u0457 \u0449\u043E\u0434\u043E \u0456\u0434\u0435\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0432\u0438\u043D\u0430 \u0437\u0430 \u0441\u0435\u043A\u0443\u043D\u0434\u0438",headerMeal:"\u0441\u0442\u0440\u0430\u0432\u0430",headerMood:"\u043D\u0430\u0441\u0442\u0440\u0456\u0439",headerBudget:"\u0431\u044E\u0434\u0436\u0435\u0442",headerOccasion:"\u043F\u043E\u0434\u0456\u044F",headerOr:"\u0430\u0431\u043E",errorMessage:"\u0429\u043E\u0441\u044C \u043F\u0456\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A. \u0411\u0443\u0434\u044C \u043B\u0430\u0441\u043A\u0430, \u0441\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u0456\u0437\u043D\u0456\u0448\u0435.",noResultsMessage:"\u0417\u0430 \u0432\u0430\u0448\u0438\u043C \u0437\u0430\u043F\u0438\u0442\u043E\u043C \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0456\u0432. \u0421\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0456\u043D\u0448\u0438\u0439 \u0437\u0430\u043F\u0438\u0442.",ai_sommelier:"AI sommelier"},ps={lang:"ru",welcomeMessage:"\u0427\u0442\u043E \u0432\u044B \u043F\u043B\u0430\u043D\u0438\u0440\u0443\u0435\u0442\u0435 \u043F\u043E\u0435\u0441\u0442\u044C? \u041D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u0431\u043B\u044E\u0434\u043E, \u0438 \u044F \u043F\u043E\u0434\u0431\u0435\u0440\u0443 \u0438\u0434\u0435\u0430\u043B\u044C\u043D\u043E\u0435 \u0432\u0438\u043D\u043E \u043A \u043D\u0435\u043C\u0443.",noResultsFound:"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B.",somethingWentWrong:"\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0447\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",chatButton1:"\u041D\u0430\u0439\u0442\u0438 \u0441\u043E\u0447\u0435\u0442\u0430\u043D\u0438\u0435",chatButton2:"\u041F\u043E\u0434\u043E\u0431\u0440\u0430\u0442\u044C \u0432\u0438\u043D\u043E",chatButton3:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0441\u043E\u0432\u0435\u0442",chatTitle:"\u0410\u0441\u0441\u0438\u0441\u0442\u0435\u043D\u0442 \u043F\u043E \u043F\u043E\u0434\u0431\u043E\u0440\u0443 \u0432\u0438\u043D\u0430 \u{1F377}",chatSubtitle:"\u041E\u043F\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u0431\u043B\u044E\u0434\u043E \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u044E \u0437\u0430 30 \u0441\u0435\u043A\u0443\u043D\u0434",inputPlaceholder:"\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u0422\u0443\u043D\u0435\u0446 \u0441 \u0441\u0430\u043B\u0430\u0442\u043E\u043C",sendButton:"\u041F\u043E\u0434\u043E\u0431\u0440\u0430\u0442\u044C",poweredBy:"Powered by",price:"\u0426\u0435\u043D\u0430",region:"\u0420\u0435\u0433\u0438\u043E\u043D",type:"\u0422\u0438\u043F",reason:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u044F",moreInfo:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435",tryAgain:"\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0435\u0449\u0451",similarWines:"\u041F\u043E\u0445\u043E\u0436\u0438\u0435 \u0432\u0438\u043D\u0430",byTheGlass:"\u041F\u043E \u0431\u043E\u043A\u0430\u043B\u0430\u043C",winePairingIntro:"\u041A \u044D\u0442\u043E\u043C\u0443 \u0432\u0438\u043D\u0443 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0431\u043B\u044E\u0434\u0430:",askForDinner:"\u0427\u0442\u043E \u0431\u044B \u0432\u044B \u0445\u043E\u0442\u0435\u043B\u0438 \u043D\u0430 \u0443\u0436\u0438\u043D?",clearChatButton:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0447\u0430\u0442",widgetTitle:"\u041D\u0410\u0419\u0414\u0418\u0422\u042C \u0418\u0414\u0415\u0410\u041B\u042C\u041D\u041E\u0415 \u0412\u0418\u041D\u041E",widgetSubtitle:"\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u0435\u0441\u044C \u0432\u0430\u0448\u0438\u043C\u0438 \u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0442\u0435\u043D\u0438\u044F\u043C\u0438 \u2014 \u0431\u043B\u044E\u0434\u043E\u043C, \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435\u043C, \u0431\u044E\u0434\u0436\u0435\u0442\u043E\u043C \u0438\u043B\u0438 \u0441\u043B\u0443\u0447\u0430\u0435\u043C \u2014 \u0438 \u043D\u0430\u0448 AI-\u0441\u043E\u043C\u0435\u043B\u044C\u0435 \u043F\u043E\u0434\u0431\u0435\u0440\u0451\u0442 \u0438\u0434\u0435\u0430\u043B\u044C\u043D\u043E\u0435 \u0432\u0438\u043D\u043E \u0437\u0430 \u0441\u0435\u043A\u0443\u043D\u0434\u044B",searchPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043B\u044E\u0447\u0435\u0432\u043E\u0435 \u0441\u043B\u043E\u0432\u043E \u0438\u043B\u0438 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435","wineDetails.price":"\u0426\u0435\u043D\u0430","wineDetails.region":"\u0420\u0435\u0433\u0438\u043E\u043D","wineDetails.type":"\u0422\u0438\u043F","wineDetails.moreInfo":"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435","wineDetails.reason":"\u041F\u0440\u0438\u0447\u0438\u043D\u0430","wineDetails.code":"\u041A\u043E\u0434","wineDetails.buy":"\u041A\u0443\u043F\u0438\u0442\u044C",searchButton:"\u041F\u043E\u0438\u0441\u043A",priceRange:"\u0414\u0438\u0430\u043F\u0430\u0437\u043E\u043D \u0446\u0435\u043D",wineColor:"\u0426\u0432\u0435\u0442 \u0432\u0438\u043D\u0430",intensity:"\u0418\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u043E\u0441\u0442\u044C",red:"\u041A\u0440\u0430\u0441\u043D\u043E\u0435",white:"\u0411\u0435\u043B\u043E\u0435",rose:"\u0420\u043E\u0437\u043E\u0432\u043E\u0435",light:"\u041B\u0451\u0433\u043A\u043E\u0435",medium:"\u0421\u0440\u0435\u0434\u043D\u0435\u0435",full:"\u041F\u043E\u043B\u043D\u043E\u0435",barTitle:"\u0417\u0430\u043A\u0443\u0441\u043A\u0438 \u043A \u0432\u0438\u043D\u0443",barSubtitle:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0431\u043B\u044E\u0434\u0430 \u043D\u0438\u0436\u0435 \u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 '\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C'",barSendButton:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",barResetButton:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C",barName:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u0440\u0430",barNotesPlaceholder:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0432\u0430\u0448\u0438 \u043F\u043E\u0436\u0435\u043B\u0430\u043D\u0438\u044F \u0437\u0434\u0435\u0441\u044C...",placeholderSuggestions:["\u0412\u0438\u043D\u043E \u0434\u043B\u044F \u043F\u0430\u0441\u0442\u044B","\u0418\u0434\u0435\u0430\u043B\u044C\u043D\u043E \u043A \u0440\u044B\u0431\u0435","\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u0434\u043B\u044F \u0432\u0435\u0447\u0435\u0440\u0438\u043D\u043A\u0438"],headerLine1:"\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u0435\u0441\u044C \u043B\u044E\u0431\u044B\u043C\u0438 \u0432\u0430\u0448\u0438\u043C\u0438 \u043C\u044B\u0441\u043B\u044F\u043C\u0438 \u2014",headerLine2:"\u2014 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438 \u043F\u043E \u0438\u0434\u0435\u0430\u043B\u044C\u043D\u043E\u043C\u0443 \u0432\u0438\u043D\u0443 \u0437\u0430 \u0441\u0447\u0438\u0442\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u044B",headerMeal:"\u0431\u043B\u044E\u0434\u043E",headerMood:"\u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435",headerBudget:"\u0431\u044E\u0434\u0436\u0435\u0442",headerOccasion:"\u0441\u043B\u0443\u0447\u0430\u0439",headerOr:"\u0438\u043B\u0438",errorMessage:"\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0436\u0435.",noResultsMessage:"\u041F\u043E \u0432\u0430\u0448\u0435\u043C\u0443 \u0437\u0430\u043F\u0440\u043E\u0441\u0443 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0437\u0430\u043F\u0440\u043E\u0441.",ai_sommelier:"AI sommelier"},hs={lang:"kk",welcomeMessage:"\u0421\u0456\u0437 \u043D\u0435 \u0436\u0435\u0433\u0456\u04A3\u0456\u0437 \u043A\u0435\u043B\u0435\u0434\u0456? \u0422\u0430\u0493\u0430\u043C\u044B\u04A3\u044B\u0437\u0434\u044B \u0441\u0438\u043F\u0430\u0442\u0442\u0430\u04A3\u044B\u0437, \u043C\u0435\u043D \u043E\u0493\u0430\u043D \u043A\u0435\u0440\u0435\u043C\u0435\u0442 \u0448\u0430\u0440\u0430\u043F \u04B1\u0441\u044B\u043D\u0430\u043C\u044B\u043D.",noResultsFound:"\u041D\u04D9\u0442\u0438\u0436\u0435\u043B\u0435\u0440 \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B.",somethingWentWrong:"\u041A\u0435\u0448\u0456\u0440\u0456\u04A3\u0456\u0437, \u0431\u0456\u0440\u0434\u0435\u04A3\u0435 \u0434\u04B1\u0440\u044B\u0441 \u0431\u043E\u043B\u043C\u0430\u0434\u044B.",chatButton1:"\u0421\u04D9\u0439\u043A\u0435\u0441\u0442\u0456\u043A \u0442\u0430\u0431\u0443",chatButton2:"\u0428\u0430\u0440\u0430\u043F \u0442\u0430\u04A3\u0434\u0430\u0443",chatButton3:"\u041A\u0435\u04A3\u0435\u0441 \u0430\u043B\u0443",chatTitle:"\u0428\u0430\u0440\u0430\u043F \u0442\u0430\u04A3\u0434\u0430\u0443\u0448\u044B \u043A\u04E9\u043C\u0435\u043A\u0448\u0456 \u{1F377}",chatSubtitle:"\u0422\u0430\u0493\u0430\u043C\u044B\u04A3\u044B\u0437\u0434\u044B \u0441\u0438\u043F\u0430\u0442\u0442\u0430\u04A3\u044B\u0437 \u2014 30 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430 \u04B1\u0441\u044B\u043D\u044B\u0441 \u0430\u043B\u044B\u04A3\u044B\u0437",inputPlaceholder:"\u043C\u044B\u0441\u0430\u043B\u044B, \u0442\u0443\u043D\u0435\u0446 \u0441\u0430\u043B\u0430\u0442\u044B\u043C\u0435\u043D",sendButton:"\u0422\u0430\u04A3\u0434\u0430\u0443",poweredBy:"Powered by",price:"\u0411\u0430\u0493\u0430\u0441\u044B",region:"\u04E8\u04A3\u0456\u0440",type:"\u0422\u04AF\u0440\u0456",reason:"\u04B0\u0441\u044B\u043D\u044B\u0441",moreInfo:"\u0422\u043E\u043B\u044B\u0493\u044B\u0440\u0430\u049B",tryAgain:"\u049A\u0430\u0439\u0442\u0430 \u043A\u04E9\u0440\u0443",similarWines:"\u04B0\u049B\u0441\u0430\u0441 \u0448\u0430\u0440\u0430\u043F\u0442\u0430\u0440",byTheGlass:"\u0411\u043E\u043A\u0430\u043B\u043C\u0435\u043D",winePairingIntro:"\u0411\u04B1\u043B \u0448\u0430\u0440\u0430\u043F\u049B\u0430 \u043A\u0435\u043B\u0435\u0441\u0456 \u0442\u0430\u0493\u0430\u043C\u0434\u0430\u0440 \u0441\u04D9\u0439\u043A\u0435\u0441 \u043A\u0435\u043B\u0435\u0434\u0456:",askForDinner:"\u041A\u0435\u0448\u043A\u0456 \u0430\u0441\u049B\u0430 \u043D\u0435 \u049B\u0430\u043B\u0430\u0439\u0441\u044B\u0437?",clearChatButton:"\u0427\u0430\u0442\u0442\u044B \u0442\u0430\u0437\u0430\u043B\u0430\u0443",widgetTitle:"\u041A\u0415\u0420\u0415\u041C\u0415\u0422 \u0428\u0410\u0420\u0410\u041F\u0422\u042B \u0422\u0410\u0411\u042B\u04A2\u042B\u0417",widgetSubtitle:"\u0422\u0430\u04A3\u0434\u0430\u0443\u043B\u0430\u0440\u044B\u04A3\u044B\u0437\u0434\u044B \u0431\u04E9\u043B\u0456\u0441\u0456\u04A3\u0456\u0437 \u2014 \u0442\u0430\u0493\u0430\u043C, \u043A\u04E9\u04A3\u0456\u043B-\u043A\u04AF\u0439, \u0431\u044E\u0434\u0436\u0435\u0442 \u043D\u0435\u043C\u0435\u0441\u0435 \u0436\u0430\u0493\u0434\u0430\u0439 \u2014 \u0436\u04D9\u043D\u0435 \u0431\u0456\u0437\u0434\u0456\u04A3 AI-\u0441\u043E\u043C\u0435\u043B\u044C\u0435 \u0441\u0456\u0437\u0433\u0435 \u0431\u0456\u0440\u043D\u0435\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430 \u0448\u0430\u0440\u0430\u043F \u04B1\u0441\u044B\u043D\u0430\u0434\u044B",searchPlaceholder:"\u041A\u0456\u043B\u0442 \u0441\u04E9\u0437\u0434\u0456 \u043D\u0435\u043C\u0435\u0441\u0435 \u0441\u0438\u043F\u0430\u0442\u0442\u0430\u043C\u0430\u043D\u044B \u0435\u043D\u0433\u0456\u0437\u0456\u04A3\u0456\u0437","wineDetails.price":"\u0411\u0430\u0493\u0430\u0441\u044B","wineDetails.region":"\u04E8\u04A3\u0456\u0440","wineDetails.type":"\u0422\u04AF\u0440\u0456","wineDetails.moreInfo":"\u0422\u043E\u043B\u044B\u0493\u044B\u0440\u0430\u049B","wineDetails.reason":"\u0421\u0435\u0431\u0435\u0431\u0456","wineDetails.code":"\u041A\u043E\u0434","wineDetails.buy":"\u0421\u0430\u0442\u044B\u043F \u0430\u043B\u0443",searchButton:"\u0406\u0437\u0434\u0435\u0443",priceRange:"\u0411\u0430\u0493\u0430 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u044B",wineColor:"\u0428\u0430\u0440\u0430\u043F \u0442\u04AF\u0441\u0456",intensity:"\u049A\u0430\u043D\u044B\u049B\u0442\u044B\u043B\u044B\u049B",red:"\u049A\u044B\u0437\u044B\u043B",white:"\u0410\u049B",rose:"\u0420\u043E\u0437\u0430\u043B\u044B\u049B",light:"\u0416\u0435\u04A3\u0456\u043B",medium:"\u041E\u0440\u0442\u0430\u0448\u0430",full:"\u0422\u043E\u043B\u044B\u049B",barTitle:"\u0428\u0430\u0440\u0430\u043F\u049B\u0430 \u0430\u0440\u043D\u0430\u043B\u0493\u0430\u043D \u0442\u0456\u0441\u043A\u0435\u0431\u0430\u0441\u0430\u0440\u043B\u0430\u0440",barSubtitle:"\u0422\u04E9\u043C\u0435\u043D\u0434\u0435\u0433\u0456 \u0442\u0430\u0493\u0430\u043C\u0434\u0430\u0440\u0434\u044B \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437 \u0436\u04D9\u043D\u0435 '\u0416\u0456\u0431\u0435\u0440\u0443' \u0431\u0430\u0442\u044B\u0440\u043C\u0430\u0441\u044B\u043D \u0431\u0430\u0441\u044B\u04A3\u044B\u0437",barSendButton:"\u0416\u0456\u0431\u0435\u0440\u0443",barResetButton:"\u049A\u0430\u043B\u043F\u044B\u043D\u0430 \u043A\u0435\u043B\u0442\u0456\u0440\u0443",barName:"\u0411\u0430\u0440 \u0430\u0442\u0430\u0443\u044B",barNotesPlaceholder:"\u041C\u04B1\u043D\u0434\u0430 \u04E9\u0437 \u0442\u0456\u043B\u0435\u043A\u0442\u0435\u0440\u0456\u04A3\u0456\u0437\u0434\u0456 \u0436\u0430\u0437\u044B\u04A3\u044B\u0437...",placeholderSuggestions:["\u041F\u0430\u0441\u0442\u0430\u0493\u0430 \u0430\u0440\u043D\u0430\u043B\u0493\u0430\u043D \u0448\u0430\u0440\u0430\u043F","\u0411\u0430\u043B\u044B\u049B\u049B\u0430 \u0442\u0430\u043C\u0430\u0448\u0430 \u04AF\u0439\u043B\u0435\u0441\u0435\u0434\u0456","\u041A\u0435\u0448\u043A\u0435 \u04B1\u0441\u044B\u043D\u0443\u0493\u0430 \u0431\u043E\u043B\u0430\u0434\u044B"],headerLine1:"\u041E\u0439\u043B\u0430\u0440\u044B\u04A3\u044B\u0437\u0431\u0435\u043D \u0431\u04E9\u043B\u0456\u0441\u0456\u04A3\u0456\u0437 \u2014",headerLine2:"\u2014 \u0436\u04D9\u043D\u0435 \u0431\u0456\u0440\u043D\u0435\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430 \u043C\u0456\u043D\u0441\u0456\u0437 \u0448\u0430\u0440\u0430\u043F \u04B1\u0441\u044B\u043D\u044B\u0441\u044B\u043D \u0430\u043B\u044B\u04A3\u044B\u0437",headerMeal:"\u0442\u0430\u0493\u0430\u043C",headerMood:"\u043A\u04E9\u04A3\u0456\u043B-\u043A\u04AF\u0439",headerBudget:"\u0431\u044E\u0434\u0436\u0435\u0442",headerOccasion:"\u0436\u0430\u0493\u0434\u0430\u0439",headerOr:"\u043D\u0435\u043C\u0435\u0441\u0435",errorMessage:"\u0411\u0456\u0440\u0434\u0435\u04A3\u0435 \u0434\u04B1\u0440\u044B\u0441 \u0431\u043E\u043B\u043C\u0430\u0434\u044B. \u041A\u0435\u0439\u0456\u043D\u0456\u0440\u0435\u043A \u049B\u0430\u0439\u0442\u0430 \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.",noResultsMessage:"\u0406\u0437\u0434\u0435\u0443\u0456\u04A3\u0456\u0437\u0433\u0435 \u0441\u04D9\u0439\u043A\u0435\u0441 \u043D\u04D9\u0442\u0438\u0436\u0435 \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B. \u0411\u0430\u0441\u049B\u0430 \u0441\u04B1\u0440\u0430\u0443 \u049B\u043E\u043B\u0434\u0430\u043D\u044B\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.",ai_sommelier:"AI sommelier"},fs={lang:"pt",welcomeMessage:"O que voc\xEA planeja comer? Descreva seu prato e eu recomendarei a harmoniza\xE7\xE3o perfeita.",noResultsFound:"Nenhum resultado encontrado.",somethingWentWrong:"Desculpe, algo deu errado.",chatButton1:"Encontre sua harmoniza\xE7\xE3o",chatButton2:"Harmonizar vinho agora",chatButton3:"Receber conselho de vinho",chatTitle:"Assistente de Harmoniza\xE7\xE3o de Vinhos \u{1F377}",chatSubtitle:"Descreva sua refei\xE7\xE3o e receba uma recomenda\xE7\xE3o em 30 segundos",inputPlaceholder:"ex., Salada de atum",sendButton:"Harmonizar",poweredBy:"Desenvolvido por",price:"Pre\xE7o",region:"Regi\xE3o",type:"Tipo",reason:"Sugest\xE3o",moreInfo:"Mais informa\xE7\xF5es",tryAgain:"Tentar de novo",similarWines:"Vinhos semelhantes",byTheGlass:"Por ta\xE7a",winePairingIntro:"Para este vinho, aqui est\xE3o algumas sugest\xF5es de pratos:",askForDinner:"O que voc\xEA gostaria de jantar?",clearChatButton:"Limpar chat",widgetTitle:"ENCONTRE SEU VINHO PERFEITO",widgetSubtitle:"Compartilhe o que tiver em mente \u2014 sua refei\xE7\xE3o, humor, or\xE7amento ou ocasi\xE3o \u2014 e nosso sommelier de IA recomendar\xE1 o vinho perfeito em segundos",searchPlaceholder:"Digite uma palavra-chave ou descri\xE7\xE3o","wineDetails.reason":"Motivo","wineDetails.price":"Pre\xE7o","wineDetails.region":"Regi\xE3o","wineDetails.type":"Tipo","wineDetails.moreInfo":"Mais informa\xE7\xF5es","wineDetails.code":"C\xF3digo","wineDetails.buy":"Comprar",searchButton:"Pesquisar",priceRange:"Faixa de pre\xE7o",wineColor:"Cor do vinho",intensity:"Intensidade",red:"Tinto",white:"Branco",rose:"Ros\xE9",light:"Leve",medium:"M\xE9dio",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 \u2014",headerLine2:"\u2014 e receba recomenda\xE7\xF5es do vinho perfeito em segundos",headerMeal:"refei\xE7\xE3o",headerMood:"humor",headerBudget:"or\xE7amento",headerOccasion:"ocasi\xE3o",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"},vs={fr:as,es:ss,en:ls,sr:us,de:cs,ukr:ds,ru:ps,kk:hs,pt:fs};function gs(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}}const ws={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
+ var Go=Object.defineProperty,si=e=>{throw TypeError(e)},Vo=(e,t,n)=>t in e?Go(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xe=(e,t,n)=>Vo(e,typeof t!="symbol"?t+"":t,n),kr=(e,t,n)=>t.has(e)||si("Cannot "+n),h=(e,t,n)=>(kr(e,t,"read from private field"),n?n.call(e):t.get(e)),q=(e,t,n)=>t.has(e)?si("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),A=(e,t,n,r)=>(kr(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),J=(e,t,n)=>(kr(e,t,"access private method"),n);const Ko="5";var li;typeof window<"u"&&((li=window.__svelte??(window.__svelte={})).v??(li.v=new Set)).add(Ko);const ci=1,ui=2,di=4,Jo=8,Yo=16,Zo=1,Qo=2,Xo=4,ea=8,ta=16,na=1,ra=2,pe=Symbol(),ia="http://www.w3.org/1999/xhtml",oa=!1;var xr=Array.isArray,aa=Array.prototype.indexOf,_r=Array.from,sa=Object.defineProperty,Jt=Object.getOwnPropertyDescriptor,la=Object.getOwnPropertyDescriptors,ca=Object.prototype,ua=Array.prototype,pi=Object.getPrototypeOf,hi=Object.isExtensible;function da(e){for(var t=0;t<e.length;t++)e[t]()}function fi(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const ue=2,Sr=4,Cr=8,et=16,tt=32,Dt=64,Gn=128,Ue=512,he=1024,be=2048,nt=4096,Ce=8192,rt=16384,Pr=32768,Et=65536,vi=1<<17,gi=1<<18,Yt=1<<19,pa=1<<20,It=32768,Wr=1<<21,Tr=1<<22,mt=1<<23,At=Symbol("$state"),ha=Symbol("legacy props"),fa=Symbol(""),Zt=new class extends Error{constructor(){super(...arguments),Xe(this,"name","StaleReactionError"),Xe(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function va(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ga(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wa(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ma(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ba(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ya(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ka(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function xa(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function _a(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Sa(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ca(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Pa(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Wa(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function wi(e){return e===this.v}function Ta(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function mi(e){return!Ta(e,this.v)}let Qt=!1,Da=!1;function Ea(){Qt=!0}let oe=null;function Xt(e){oe=e}function it(e,t=!1,n){oe={p:oe,i:!1,c:null,e:null,s:e,x:null,l:Qt&&!t?{s:null,u:null,$:[]}:null}}function ot(e){var t=oe,n=t.e;if(n!==null){t.e=null;for(var r of n)qi(r)}return e!==void 0&&(t.x=e),t.i=!0,oe=t.p,e??{}}function yn(){return!Qt||oe!==null&&oe.l===null}let Rt=[];function bi(){var e=Rt;Rt=[],da(e)}function en(e){if(Rt.length===0&&!kn){var t=Rt;queueMicrotask(()=>{t===Rt&&bi()})}Rt.push(e)}function Ia(){for(;Rt.length>0;)bi()}function yi(e){var t=K;if(t===null)return H.f|=mt,e;if(t.f&Pr)tn(e,t);else{if(!(t.f&Gn))throw e;t.b.error(e)}}function tn(e,t){for(;t!==null;){if(t.f&Gn)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Vn=new Set;let Y=null,Kn=null,fe=null,Ae=[],Jn=null,Dr=!1,kn=!1;var xn,_n,bt,yt,Sn,Cn,Pn,ye,Er,Mt,Ir,ki,xi;const Aa=class ri{constructor(){q(this,ye),Xe(this,"committed",!1),Xe(this,"current",new Map),Xe(this,"previous",new Map),q(this,xn,new Set),q(this,_n,new Set),q(this,bt,0),q(this,yt,0),q(this,Sn,null),q(this,Cn,[]),q(this,Pn,[]),Xe(this,"skipped_effects",new Set),Xe(this,"is_fork",!1)}is_deferred(){return this.is_fork||h(this,yt)>0}process(t){var n;Ae=[],Kn=null,this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of t)J(this,ye,Er).call(this,i,r);this.is_fork||J(this,ye,ki).call(this),this.is_deferred()?(J(this,ye,Mt).call(this,r.effects),J(this,ye,Mt).call(this,r.render_effects),J(this,ye,Mt).call(this,r.block_effects)):(Kn=this,Y=null,Si(r.render_effects),Si(r.effects),Kn=null,(n=h(this,Sn))==null||n.resolve()),fe=null}capture(t,n){this.previous.has(t)||this.previous.set(t,n),t.f&mt||(this.current.set(t,t.v),fe?.set(t,t.v))}activate(){Y=this,this.apply()}deactivate(){Y===this&&(Y=null,fe=null)}flush(){if(this.activate(),Ae.length>0){if(_i(),Y!==null&&Y!==this)return}else h(this,bt)===0&&this.process([]);this.deactivate()}discard(){for(const t of h(this,_n))t(this);h(this,_n).clear()}increment(t){A(this,bt,h(this,bt)+1),t&&A(this,yt,h(this,yt)+1)}decrement(t){A(this,bt,h(this,bt)-1),t&&A(this,yt,h(this,yt)-1),this.revive()}revive(){for(const t of h(this,Cn))ge(t,be),Bt(t);for(const t of h(this,Pn))ge(t,nt),Bt(t);A(this,Cn,[]),A(this,Pn,[]),this.flush()}oncommit(t){h(this,xn).add(t)}ondiscard(t){h(this,_n).add(t)}settled(){return(h(this,Sn)??A(this,Sn,fi())).promise}static ensure(){if(Y===null){const t=Y=new ri;Vn.add(Y),kn||ri.enqueue(()=>{Y===t&&t.flush()})}return Y}static enqueue(t){en(t)}apply(){}};xn=new WeakMap,_n=new WeakMap,bt=new WeakMap,yt=new WeakMap,Sn=new WeakMap,Cn=new WeakMap,Pn=new WeakMap,ye=new WeakSet,Er=function(e,t){var n;e.f^=he;for(var r=e.first;r!==null;){var i=r.f,o=(i&(tt|Dt))!==0,a=o&&(i&he)!==0,c=a||(i&Ce)!==0||this.skipped_effects.has(r);if(r.f&Gn&&(n=r.b)!=null&&n.is_pending()&&(t={parent:t,effect:r,effects:[],render_effects:[],block_effects:[]}),!c&&r.fn!==null){o?r.f^=he:i&Sr?t.effects.push(r):In(r)&&(r.f&et&&t.block_effects.push(r),An(r));var s=r.first;if(s!==null){r=s;continue}}var d=r.parent;for(r=r.next;r===null&&d!==null;)d===t.effect&&(J(this,ye,Mt).call(this,t.effects),J(this,ye,Mt).call(this,t.render_effects),J(this,ye,Mt).call(this,t.block_effects),t=t.parent),r=d.next,d=d.parent}},Mt=function(e){for(const t of e)(t.f&be?h(this,Cn):h(this,Pn)).push(t),J(this,ye,Ir).call(this,t.deps),ge(t,he)},Ir=function(e){if(e!==null)for(const t of e)!(t.f&ue)||!(t.f&It)||(t.f^=It,J(this,ye,Ir).call(this,t.deps))},ki=function(){if(h(this,yt)===0){for(const e of h(this,xn))e();h(this,xn).clear()}h(this,bt)===0&&J(this,ye,xi).call(this)},xi=function(){var e;if(Vn.size>1){this.previous.clear();var t=fe,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const o of Vn){if(o===this){n=!1;continue}const a=[];for(const[s,d]of this.current){if(o.current.has(s))if(n&&d!==o.current.get(s))o.current.set(s,d);else continue;a.push(s)}if(a.length===0)continue;const c=[...o.current.keys()].filter(s=>!this.current.has(s));if(c.length>0){var i=Ae;Ae=[];const s=new Set,d=new Map;for(const f of a)Ci(f,c,s,d);if(Ae.length>0){Y=o,o.apply();for(const f of Ae)J(e=o,ye,Er).call(e,f,r);o.deactivate()}Ae=i}}Y=null,fe=t}this.committed=!0,Vn.delete(this)};let zt=Aa;function Ra(e){var t=kn;kn=!0;try{for(var n;;){if(Ia(),Ae.length===0&&(Y?.flush(),Ae.length===0))return Jn=null,n;_i()}}finally{kn=t}}function _i(){var e=St;Dr=!0;var t=null;try{var n=0;for(rr(!0);Ae.length>0;){var r=zt.ensure();if(n++>1e3){var i,o;Ma()}r.process(Ae),_t.clear()}}finally{Dr=!1,rr(e),Jn=null}}function Ma(){try{ya()}catch(e){tn(e,Jn)}}let Ve=null;function Si(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(rt|Ce))&&In(r)&&(Ve=new Set,An(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Fi(r):r.fn=null),Ve?.size>0)){_t.clear();for(const i of Ve){if(i.f&(rt|Ce))continue;const o=[i];let a=i.parent;for(;a!==null;)Ve.has(a)&&(Ve.delete(a),o.push(a)),a=a.parent;for(let c=o.length-1;c>=0;c--){const s=o[c];s.f&(rt|Ce)||An(s)}}Ve.clear()}}Ve=null}}function Ci(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&ue?Ci(i,t,n,r):o&(Tr|et)&&!(o&be)&&Pi(i,t,r)&&(ge(i,be),Bt(i))}}function Pi(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&ue&&Pi(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Bt(e){for(var t=Jn=e;t.parent!==null;){t=t.parent;var n=t.f;if(Dr&&t===K&&n&et&&!(n&gi))return;if(n&(Dt|tt)){if(!(n&he))return;t.f^=he}}Ae.push(t)}function za(e){let t=0,n=Ot(0),r;return()=>{tr()&&(l(n),qr(()=>(t===0&&(r=Rn(()=>e(()=>Wn(n)))),t+=1,()=>{en(()=>{t-=1,t===0&&(r?.(),r=void 0,Wn(n))})})))}}var Ba=Et|Yt|Gn;function Na(e,t,n){new qa(e,t,n)}var $e,Fe,Wi,at,nn,st,He,Pe,lt,kt,Nt,Lt,xt,rn,jt,Ar,Re,La,ja,Rr,Yn,Zn,Mr;class qa{constructor(t,n,r){q(this,Re),Xe(this,"parent"),q(this,$e,!1),q(this,Fe),q(this,Wi,null),q(this,at),q(this,nn),q(this,st),q(this,He,null),q(this,Pe,null),q(this,lt,null),q(this,kt,null),q(this,Nt,null),q(this,Lt,0),q(this,xt,0),q(this,rn,!1),q(this,jt,null),q(this,Ar,za(()=>(A(this,jt,Ot(h(this,Lt))),()=>{A(this,jt,null)}))),A(this,Fe,t),A(this,at,n),A(this,nn,r),this.parent=K.b,A(this,$e,!!h(this,at).pending),A(this,st,nr(()=>{K.b=this;{var i=J(this,Re,Rr).call(this);try{A(this,He,ze(()=>r(i)))}catch(o){this.error(o)}h(this,xt)>0?J(this,Re,Zn).call(this):A(this,$e,!1)}return()=>{var o;(o=h(this,Nt))==null||o.remove()}},Ba))}is_pending(){return h(this,$e)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!h(this,at).pending}update_pending_count(t){J(this,Re,Mr).call(this,t),A(this,Lt,h(this,Lt)+t),h(this,jt)&&an(h(this,jt),h(this,Lt))}get_effect_pending(){return h(this,Ar).call(this),l(h(this,jt))}error(t){var n=h(this,at).onerror;let r=h(this,at).failed;if(h(this,rn)||!n&&!r)throw t;h(this,He)&&(ke(h(this,He)),A(this,He,null)),h(this,Pe)&&(ke(h(this,Pe)),A(this,Pe,null)),h(this,lt)&&(ke(h(this,lt)),A(this,lt,null));var i=!1,o=!1;const a=()=>{if(i){Wa();return}i=!0,o&&Ca(),zt.ensure(),A(this,Lt,0),h(this,lt)!==null&&ln(h(this,lt),()=>{A(this,lt,null)}),A(this,$e,this.has_pending_snippet()),A(this,He,J(this,Re,Yn).call(this,()=>(A(this,rn,!1),ze(()=>h(this,nn).call(this,h(this,Fe)))))),h(this,xt)>0?J(this,Re,Zn).call(this):A(this,$e,!1)};var c=H;try{xe(null),o=!0,n?.(t,a),o=!1}catch(s){tn(s,h(this,st)&&h(this,st).parent)}finally{xe(c)}r&&en(()=>{A(this,lt,J(this,Re,Yn).call(this,()=>{zt.ensure(),A(this,rn,!0);try{return ze(()=>{r(h(this,Fe),()=>t,()=>a)})}catch(s){return tn(s,h(this,st).parent),null}finally{A(this,rn,!1)}}))})}}$e=new WeakMap,Fe=new WeakMap,Wi=new WeakMap,at=new WeakMap,nn=new WeakMap,st=new WeakMap,He=new WeakMap,Pe=new WeakMap,lt=new WeakMap,kt=new WeakMap,Nt=new WeakMap,Lt=new WeakMap,xt=new WeakMap,rn=new WeakMap,jt=new WeakMap,Ar=new WeakMap,Re=new WeakSet,La=function(){try{A(this,He,ze(()=>h(this,nn).call(this,h(this,Fe))))}catch(e){this.error(e)}A(this,$e,!1)},ja=function(){const e=h(this,at).pending;e&&(A(this,Pe,ze(()=>e(h(this,Fe)))),zt.enqueue(()=>{var t=J(this,Re,Rr).call(this);A(this,He,J(this,Re,Yn).call(this,()=>(zt.ensure(),ze(()=>h(this,nn).call(this,t))))),h(this,xt)>0?J(this,Re,Zn).call(this):(ln(h(this,Pe),()=>{A(this,Pe,null)}),A(this,$e,!1))}))},Rr=function(){var e=h(this,Fe);return h(this,$e)&&(A(this,Nt,ct()),h(this,Fe).before(h(this,Nt)),e=h(this,Nt)),e},Yn=function(e){var t=K,n=H,r=oe;Ye(h(this,st)),xe(h(this,st)),Xt(h(this,st).ctx);try{return e()}catch(i){return yi(i),null}finally{Ye(t),xe(n),Xt(r)}},Zn=function(){const e=h(this,at).pending;h(this,He)!==null&&(A(this,kt,document.createDocumentFragment()),h(this,kt).append(h(this,Nt)),Vi(h(this,He),h(this,kt))),h(this,Pe)===null&&A(this,Pe,ze(()=>e(h(this,Fe))))},Mr=function(e){var t;if(!this.has_pending_snippet()){this.parent&&J(t=this.parent,Re,Mr).call(t,e);return}A(this,xt,h(this,xt)+e),h(this,xt)===0&&(A(this,$e,!1),h(this,Pe)&&ln(h(this,Pe),()=>{A(this,Pe,null)}),h(this,kt)&&(h(this,Fe).before(h(this,kt)),A(this,kt,null)))};function on(e,t){return t}function Oa(e,t,n){for(var r=[],i=t.length,o=0;o<i;o++)Or(t[o].e,r,!0);Hi(r,()=>{var a=r.length===0&&n!==null;if(a){var c=n,s=c.parentNode;Qa(s),s.append(c),e.items.clear(),Ke(e,t[0].prev,t[i-1].next)}for(var d=0;d<i;d++){var f=t[d];a||(e.items.delete(f.k),Ke(e,f.prev,f.next)),ke(f.e,!a)}e.first===t[0]&&(e.first=t[0].prev)})}function qt(e,t,n,r,i,o=null){var a=e,c=new Map,s=null,d=(t&di)!==0,f=(t&ci)!==0,m=(t&ui)!==0;if(d){var p=e;a=p.appendChild(ct())}var u=null,g=Br(()=>{var v=n();return xr(v)?v:v==null?[]:_r(v)}),b,y=!0;function S(){Ua(O,b,a,t,r),u!==null&&(b.length===0?(u.fragment?(a.before(u.fragment),u.fragment=null):Ur(u.effect),E.first=u.effect):ln(u.effect,()=>{u=null}))}var E=nr(()=>{b=l(g);for(var v=b.length,x=new Set,D=Y,T=null,P=Li(),M=0;M<v;M+=1){var U=b[M],F=r(U,M),j=y?null:c.get(F);j?(f&&an(j.v,U),m?an(j.i,M):j.i=M,P&&D.skipped_effects.delete(j.e)):(j=$a(y?a:null,T,U,F,M,i,t,n),y&&(j.o=!0,T===null?s=j:T.next=j,T=j),c.set(F,j)),x.add(F)}if(v===0&&o&&!u)if(y)u={fragment:null,effect:ze(()=>o(a))};else{var ce=document.createDocumentFragment(),le=ct();ce.append(le),u={fragment:ce,effect:ze(()=>o(le))}}if(!y)if(P){for(const[Q,je]of c)x.has(Q)||D.skipped_effects.add(je.e);D.oncommit(S),D.ondiscard(()=>{})}else S();l(g)}),O={effect:E,items:c,first:s};y=!1}function Ua(e,t,n,r,i){var o,a,c,s,d=(r&Jo)!==0,f=t.length,m=e.items,p=e.first,u,g=null,b,y=[],S=[],E,O,v,x;if(d)for(x=0;x<f;x+=1)E=t[x],O=i(E,x),v=m.get(O),(o=v.a)==null||o.measure(),(b??(b=new Set)).add(v);for(x=0;x<f;x+=1){if(E=t[x],O=i(E,x),v=m.get(O),e.first??(e.first=v),!v.o){v.o=!0;var D=g?g.next:p;Ke(e,g,v),Ke(e,v,D),zr(v,D,n),g=v,y=[],S=[],p=g.next;continue}if(v.e.f&Ce&&(Ur(v.e),d&&((a=v.a)==null||a.unfix(),(b??(b=new Set)).delete(v))),v!==p){if(u!==void 0&&u.has(v)){if(y.length<S.length){var T=S[0],P;g=T.prev;var M=y[0],U=y[y.length-1];for(P=0;P<y.length;P+=1)zr(y[P],T,n);for(P=0;P<S.length;P+=1)u.delete(S[P]);Ke(e,M.prev,U.next),Ke(e,g,M),Ke(e,U,T),p=T,g=U,x-=1,y=[],S=[]}else u.delete(v),zr(v,p,n),Ke(e,v.prev,v.next),Ke(e,v,g===null?e.first:g.next),Ke(e,g,v),g=v;continue}for(y=[],S=[];p!==null&&p.k!==O;)p.e.f&Ce||(u??(u=new Set)).add(p),S.push(p),p=p.next;if(p===null)continue;v=p}y.push(v),g=v,p=v.next}if(p!==null||u!==void 0){for(var F=u===void 0?[]:_r(u);p!==null;)p.e.f&Ce||F.push(p),p=p.next;var j=F.length;if(j>0){var ce=r&di&&f===0?n:null;if(d){for(x=0;x<j;x+=1)(c=F[x].a)==null||c.measure();for(x=0;x<j;x+=1)(s=F[x].a)==null||s.fix()}Oa(e,F,ce)}}d&&en(()=>{var le;if(b!==void 0)for(v of b)(le=v.a)==null||le.apply()})}function $a(e,t,n,r,i,o,a,c){var s=(a&ci)!==0,d=(a&Yo)===0,f=s?d?Ka(n,!1,!1):Ot(n):n,m=a&ui?Ot(i):i,p={i:m,v:f,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var u=document.createDocumentFragment();u.append(e=ct())}return p.e=ze(()=>o(e,f,m,c)),t!==null&&(t.next=p),p}finally{}}function zr(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 a=Tn(o);i.before(o),o=a}}function Ke(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 Fa(e,t,n,r){const i=yn()?Xn:Br;if(n.length===0&&e.length===0){r(t.map(i));return}var o=Y,a=K,c=Ha();function s(){Promise.all(n.map(d=>Ga(d))).then(d=>{c();try{r([...t.map(i),...d])}catch(f){a.f&rt||tn(f,a)}o?.deactivate(),Qn()}).catch(d=>{tn(d,a)})}e.length>0?Promise.all(e).then(()=>{c();try{return s()}finally{o?.deactivate(),Qn()}}):s()}function Ha(){var e=K,t=H,n=oe,r=Y;return function(i=!0){Ye(e),xe(t),Xt(n),i&&r?.activate()}}function Qn(){Ye(null),xe(null),Xt(null)}function Xn(e){var t=ue|be,n=H!==null&&H.f&ue?H:null;return K!==null&&(K.f|=Yt),{ctx:oe,deps:null,effects:null,equals:wi,f:t,fn:e,reactions:null,rv:0,v:pe,wv:0,parent:n??K,ac:null}}function Ga(e,t){let n=K;n===null&&ga();var r=n.b,i=void 0,o=Ot(pe),a=!H,c=new Map;return is(()=>{var s,d=fi();i=d.promise;try{Promise.resolve(e()).then(d.resolve,d.reject).then(()=>{f===Y&&f.committed&&f.deactivate(),Qn()})}catch(u){d.reject(u),Qn()}var f=Y;if(a){var m=!r.is_pending();r.update_pending_count(1),f.increment(m),(s=c.get(f))==null||s.reject(Zt),c.delete(f),c.set(f,d)}const p=(u,g=void 0)=>{if(f.activate(),g)g!==Zt&&(o.f|=mt,an(o,g));else{o.f&mt&&(o.f^=mt),an(o,u);for(const[b,y]of c){if(c.delete(b),b===f)break;y.reject(Zt)}}a&&(r.update_pending_count(-1),f.decrement(m))};d.promise.then(p,u=>p(null,u||"unknown"))}),jr(()=>{for(const s of c.values())s.reject(Zt)}),new Promise(s=>{function d(f){function m(){f===i?s(o):d(i)}f.then(m,m)}d(i)})}function ee(e){const t=Xn(e);return Ji(t),t}function Br(e){const t=Xn(e);return t.equals=mi,t}function Ti(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ke(t[n])}}function Va(e){for(var t=e.parent;t!==null;){if(!(t.f&ue))return t.f&rt?null:t;t=t.parent}return null}function Nr(e){var t,n=K;Ye(Va(e));try{e.f&=~It,Ti(e),t=eo(e)}finally{Ye(n)}return t}function Di(e){var t=Nr(e);if(e.equals(t)||(Y!=null&&Y.is_fork||(e.v=t),e.wv=Qi()),!Ut)if(fe!==null)tr()&&fe.set(e,t);else{var n=e.f&Ue?he:nt;ge(e,n)}}let Lr=new Set;const _t=new Map;let Ei=!1;function Ot(e,t){var n={f:0,v:e,reactions:null,equals:wi,rv:0,wv:0};return n}function V(e,t){const n=Ot(e);return Ji(n),n}function Ka(e,t=!1,n=!0){var r;const i=Ot(e);return t||(i.equals=mi),Qt&&n&&oe!==null&&oe.l!==null&&((r=oe.l).s??(r.s=[])).push(i),i}function w(e,t,n=!1){H!==null&&(!Je||H.f&vi)&&yn()&&H.f&(ue|et|Tr|vi)&&!(Be!=null&&Be.includes(e))&&Sa();let r=n?Me(t):t;return an(e,r)}function an(e,t){if(!e.equals(t)){var n=e.v;Ut?_t.set(e,t):_t.set(e,n),e.v=t;var r=zt.ensure();r.capture(e,n),e.f&ue&&(e.f&be&&Nr(e),ge(e,e.f&Ue?he:nt)),e.wv=Qi(),Ai(e,be),yn()&&K!==null&&K.f&he&&!(K.f&(tt|Dt))&&(Ne===null?ss([e]):Ne.push(e)),!r.is_fork&&Lr.size>0&&!Ei&&Ja()}return t}function Ja(){Ei=!1;var e=St;rr(!0);const t=Array.from(Lr);try{for(const n of t)n.f&he&&ge(n,nt),In(n)&&An(n)}finally{rr(e)}Lr.clear()}function Ii(e,t=1){var n=l(e),r=t===1?n++:n--;return w(e,n),r}function Wn(e){w(e,e.v+1)}function Ai(e,t){var n=e.reactions;if(n!==null)for(var r=yn(),i=n.length,o=0;o<i;o++){var a=n[o],c=a.f;if(!(!r&&a===K)){var s=(c&be)===0;if(s&&ge(a,t),c&ue){var d=a;fe?.delete(d),c&It||(c&Ue&&(a.f|=It),Ai(d,nt))}else s&&(c&et&&Ve!==null&&Ve.add(a),Bt(a))}}}function Me(e){if(typeof e!="object"||e===null||At in e)return e;const t=pi(e);if(t!==ca&&t!==ua)return e;var n=new Map,r=xr(e),i=V(0),o=$t,a=c=>{if($t===o)return c();var s=H,d=$t;xe(null),Zi(o);var f=c();return xe(s),Zi(d),f};return r&&n.set("length",V(e.length)),new Proxy(e,{defineProperty(c,s,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&xa();var f=n.get(s);return f===void 0?f=a(()=>{var m=V(d.value);return n.set(s,m),m}):w(f,d.value,!0),!0},deleteProperty(c,s){var d=n.get(s);if(d===void 0){if(s in c){const f=a(()=>V(pe));n.set(s,f),Wn(i)}}else w(d,pe),Wn(i);return!0},get(c,s,d){var f;if(s===At)return e;var m=n.get(s),p=s in c;if(m===void 0&&(!p||(f=Jt(c,s))!=null&&f.writable)&&(m=a(()=>{var g=Me(p?c[s]:pe),b=V(g);return b}),n.set(s,m)),m!==void 0){var u=l(m);return u===pe?void 0:u}return Reflect.get(c,s,d)},getOwnPropertyDescriptor(c,s){var d=Reflect.getOwnPropertyDescriptor(c,s);if(d&&"value"in d){var f=n.get(s);f&&(d.value=l(f))}else if(d===void 0){var m=n.get(s),p=m?.v;if(m!==void 0&&p!==pe)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return d},has(c,s){var d;if(s===At)return!0;var f=n.get(s),m=f!==void 0&&f.v!==pe||Reflect.has(c,s);if(f!==void 0||K!==null&&(!m||(d=Jt(c,s))!=null&&d.writable)){f===void 0&&(f=a(()=>{var u=m?Me(c[s]):pe,g=V(u);return g}),n.set(s,f));var p=l(f);if(p===pe)return!1}return m},set(c,s,d,f){var m,p=n.get(s),u=s in c;if(r&&s==="length")for(var g=d;g<p.v;g+=1){var b=n.get(g+"");b!==void 0?w(b,pe):g in c&&(b=a(()=>V(pe)),n.set(g+"",b))}if(p===void 0)(!u||(m=Jt(c,s))!=null&&m.writable)&&(p=a(()=>V(void 0)),w(p,Me(d)),n.set(s,p));else{u=p.v!==pe;var y=a(()=>Me(d));w(p,y)}var S=Reflect.getOwnPropertyDescriptor(c,s);if(S!=null&&S.set&&S.set.call(f,d),!u){if(r&&typeof s=="string"){var E=n.get("length"),O=Number(s);Number.isInteger(O)&&O>=E.v&&w(E,O+1)}Wn(i)}return!0},ownKeys(c){l(i);var s=Reflect.ownKeys(c).filter(m=>{var p=n.get(m);return p===void 0||p.v!==pe});for(var[d,f]of n)f.v!==pe&&!(d in c)&&s.push(d);return s},setPrototypeOf(){_a()}})}function Ri(e){try{if(e!==null&&typeof e=="object"&&At in e)return e[At]}catch{}return e}function Ya(e,t){return Object.is(Ri(e),Ri(t))}var Mi,zi,Bi,Ni;function Za(){if(Mi===void 0){Mi=window,zi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Bi=Jt(t,"firstChild").get,Ni=Jt(t,"nextSibling").get,hi(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),hi(n)&&(n.__t=void 0)}}function ct(e=""){return document.createTextNode(e)}function sn(e){return Bi.call(e)}function Tn(e){return Ni.call(e)}function W(e,t){return sn(e)}function ve(e,t=!1){{var n=sn(e);return n instanceof Comment&&n.data===""?Tn(n):n}}function R(e,t=1,n=!1){let r=e;for(;t--;)r=Tn(r);return r}function Qa(e){e.textContent=""}function Li(){return!1}let ji=!1;function Xa(){ji||(ji=!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 er(e){var t=H,n=K;xe(null),Ye(null);try{return e()}finally{xe(t),Ye(n)}}function es(e,t,n,r=n){e.addEventListener(t,()=>er(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),Xa()}function ts(e){K===null&&(H===null&&ba(),ma()),Ut&&wa()}function ns(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ut(e,t,n){var r=K;r!==null&&r.f&Ce&&(e|=Ce);var i={ctx:oe,deps:null,nodes_start:null,nodes_end:null,f:e|be|Ue,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{An(i),i.f|=Pr}catch(c){throw ke(i),c}else t!==null&&Bt(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&!(o.f&Yt)&&(o=o.first,e&et&&e&Et&&o!==null&&(o.f|=Et)),o!==null&&(o.parent=r,r!==null&&ns(o,r),H!==null&&H.f&ue&&!(e&Dt))){var a=H;(a.effects??(a.effects=[])).push(o)}return i}function tr(){return H!==null&&!Je}function jr(e){const t=ut(Cr,null,!1);return ge(t,he),t.teardown=e,t}function Dn(e){ts();var t=K.f,n=!H&&(t&tt)!==0&&(t&Pr)===0;if(n){var r=oe;(r.e??(r.e=[])).push(e)}else return qi(e)}function qi(e){return ut(Sr|pa,e,!1)}function rs(e){zt.ensure();const t=ut(Dt|Yt,e,!0);return(n={})=>new Promise(r=>{n.outro?ln(t,()=>{ke(t),r(void 0)}):(ke(t),r(void 0))})}function Oi(e){return ut(Sr,e,!1)}function is(e){return ut(Tr|Yt,e,!0)}function qr(e,t=0){return ut(Cr|t,e,!0)}function B(e,t=[],n=[],r=[]){Fa(r,t,n,i=>{ut(Cr,()=>e(...i.map(l)),!0)})}function nr(e,t=0){var n=ut(et|t,e,!0);return n}function ze(e){return ut(tt|Yt,e,!0)}function Ui(e){var t=e.teardown;if(t!==null){const n=Ut,r=H;Ki(!0),xe(null);try{t.call(null)}finally{Ki(n),xe(r)}}}function $i(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&er(()=>{i.abort(Zt)});var r=n.next;n.f&Dt?n.parent=null:ke(n,t),n=r}}function os(e){for(var t=e.first;t!==null;){var n=t.next;t.f&tt||ke(t),t=n}}function ke(e,t=!0){var n=!1;(t||e.f&gi)&&e.nodes_start!==null&&e.nodes_end!==null&&(as(e.nodes_start,e.nodes_end),n=!0),$i(e,t&&!n),ir(e,0),ge(e,rt);var r=e.transitions;if(r!==null)for(const o of r)o.stop();Ui(e);var i=e.parent;i!==null&&i.first!==null&&Fi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function as(e,t){for(;e!==null;){var n=e===t?null:Tn(e);e.remove(),e=n}}function Fi(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 ln(e,t,n=!0){var r=[];Or(e,r,!0),Hi(r,()=>{n&&ke(e),t&&t()})}function Hi(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Or(e,t,n){if(!(e.f&Ce)){if(e.f^=Ce,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&Et)!==0||(r.f&tt)!==0&&(e.f&et)!==0;Or(r,t,o?n:!1),r=i}}}function Ur(e){Gi(e,!0)}function Gi(e,t){if(e.f&Ce){e.f^=Ce,e.f&he||(ge(e,be),Bt(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Et)!==0||(n.f&tt)!==0;Gi(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}function Vi(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:Tn(n);t.append(n),n=i}}let St=!1;function rr(e){St=e}let Ut=!1;function Ki(e){Ut=e}let H=null,Je=!1;function xe(e){H=e}let K=null;function Ye(e){K=e}let Be=null;function Ji(e){H!==null&&(Be===null?Be=[e]:Be.push(e))}let me=null,We=0,Ne=null;function ss(e){Ne=e}let Yi=1,En=0,$t=En;function Zi(e){$t=e}function Qi(){return++Yi}function In(e){var t=e.f;if(t&be)return!0;if(t&ue&&(e.f&=~It),t&nt){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if(In(o)&&Di(o),o.wv>e.wv)return!0}t&Ue&&fe===null&&ge(e,he)}return!1}function Xi(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Be!=null&&Be.includes(e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&ue?Xi(o,t,!1):t===o&&(n?ge(o,be):o.f&he&&ge(o,nt),Bt(o))}}function eo(e){var t,n=me,r=We,i=Ne,o=H,a=Be,c=oe,s=Je,d=$t,f=e.f;me=null,We=0,Ne=null,H=f&(tt|Dt)?null:e,Be=null,Xt(e.ctx),Je=!1,$t=++En,e.ac!==null&&(er(()=>{e.ac.abort(Zt)}),e.ac=null);try{e.f|=Wr;var m=e.fn,p=m(),u=e.deps;if(me!==null){var g;if(ir(e,We),u!==null&&We>0)for(u.length=We+me.length,g=0;g<me.length;g++)u[We+g]=me[g];else e.deps=u=me;if(St&&tr()&&e.f&Ue)for(g=We;g<u.length;g++)((t=u[g]).reactions??(t.reactions=[])).push(e)}else u!==null&&We<u.length&&(ir(e,We),u.length=We);if(yn()&&Ne!==null&&!Je&&u!==null&&!(e.f&(ue|nt|be)))for(g=0;g<Ne.length;g++)Xi(Ne[g],e);return o!==null&&o!==e&&(En++,Ne!==null&&(i===null?i=Ne:i.push(...Ne))),e.f&mt&&(e.f^=mt),p}catch(b){return yi(b)}finally{e.f^=Wr,me=n,We=r,Ne=i,H=o,Be=a,Xt(c),Je=s,$t=d}}function ls(e,t){let n=t.reactions;if(n!==null){var r=aa.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&ue&&(me===null||!me.includes(t))&&(ge(t,nt),t.f&Ue&&(t.f^=Ue,t.f&=~It),Ti(t),ir(t,0))}function ir(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ls(e,n[r])}function An(e){var t=e.f;if(!(t&rt)){ge(e,he);var n=K,r=St;K=e,St=!0;try{t&et?os(e):$i(e),Ui(e);var i=eo(e);e.teardown=typeof i=="function"?i:null,e.wv=Yi;var o;oa&&Da&&e.f&be&&e.deps}finally{St=r,K=n}}}async function cs(){await Promise.resolve(),Ra()}function l(e){var t=e.f,n=(t&ue)!==0;if(H!==null&&!Je){var r=K!==null&&(K.f&rt)!==0;if(!r&&!(Be!=null&&Be.includes(e))){var i=H.deps;if(H.f&Wr)e.rv<En&&(e.rv=En,me===null&&i!==null&&i[We]===e?We++:me===null?me=[e]:me.includes(e)||me.push(e));else{(H.deps??(H.deps=[])).push(e);var o=e.reactions;o===null?e.reactions=[H]:o.includes(H)||o.push(H)}}}if(Ut){if(_t.has(e))return _t.get(e);if(n){var a=e,c=a.v;return(!(a.f&he)&&a.reactions!==null||no(a))&&(c=Nr(a)),_t.set(a,c),c}}else n&&!(fe!=null&&fe.has(e))&&(a=e,In(a)&&Di(a),St&&tr()&&!(a.f&Ue)&&to(a));if(fe!=null&&fe.has(e))return fe.get(e);if(e.f&mt)throw e.v;return e.v}function to(e){if(e.deps!==null){e.f^=Ue;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&ue&&!(t.f&Ue)&&to(t)}}function no(e){if(e.v===pe)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(_t.has(t)||t.f&ue&&no(t))return!0;return!1}function Rn(e){var t=Je;try{return Je=!0,e()}finally{Je=t}}const us=-7169;function ge(e,t){e.f=e.f&us|t}const ro=new Set,$r=new Set;function ds(e,t,n,r={}){function i(o){if(r.capture||Mn.call(t,o),!o.cancelBubble)return er(()=>n?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?en(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function dt(e,t,n,r,i){var o={capture:r,passive:i},a=ds(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&jr(()=>{t.removeEventListener(e,a,o)})}function or(e){for(var t=0;t<e.length;t++)ro.add(e[t]);for(var n of $r)n(e)}let io=null;function Mn(e){var t,n=this,r=n.ownerDocument,i=e.type,o=((t=e.composedPath)==null?void 0:t.call(e))||[],a=o[0]||e.target;io=e;var c=0,s=io===e&&e.__root;if(s){var d=o.indexOf(s);if(d!==-1&&(n===document||n===window)){e.__root=n;return}var f=o.indexOf(n);if(f===-1)return;d<=f&&(c=d)}if(a=o[c]||e.target,a!==n){sa(e,"currentTarget",{configurable:!0,get(){return a||r}});var m=H,p=K;xe(null),Ye(null);try{for(var u,g=[];a!==null;){var b=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+i];y!=null&&(!a.disabled||e.target===a)&&y.call(a,e)}catch(S){u?g.push(S):u=S}if(e.cancelBubble||b===n||b===null)break;a=b}if(u){for(let S of g)queueMicrotask(()=>{throw S});throw u}}finally{e.__root=n,delete e.currentTarget,xe(m),Ye(p)}}}function oo(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function zn(e,t){var n=K;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function N(e,t){var n=(t&na)!==0,r=(t&ra)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=oo(o?e:"<!>"+e),n||(i=sn(i)));var a=r||zi?document.importNode(i,!0):i.cloneNode(!0);if(n){var c=sn(a),s=a.lastChild;zn(c,s)}else zn(a,a);return a}}function ps(e,t,n="svg"){var r=!e.startsWith("<!>"),i=`<${n}>${r?e:"<!>"+e}</${n}>`,o;return()=>{if(!o){var a=oo(i),c=sn(a);o=sn(c)}var s=o.cloneNode(!0);return zn(s,s),s}}function ar(e,t){return ps(e,t,"svg")}function Ct(e=""){{var t=ct(e+"");return zn(t,t),t}}function Ge(){var e=document.createDocumentFragment(),t=document.createComment(""),n=ct();return e.append(t,n),zn(t,n),e}function _(e,t){e!==null&&e.before(t)}const hs=["touchstart","touchmove"];function fs(e){return hs.includes(e)}function L(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 vs(e,t){return gs(e,t)}const cn=new Map;function gs(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:a=!0}){Za();var c=new Set,s=m=>{for(var p=0;p<m.length;p++){var u=m[p];if(!c.has(u)){c.add(u);var g=fs(u);t.addEventListener(u,Mn,{passive:g});var b=cn.get(u);b===void 0?(document.addEventListener(u,Mn,{passive:g}),cn.set(u,1)):cn.set(u,b+1)}}};s(_r(ro)),$r.add(s);var d=void 0,f=rs(()=>{var m=n??t.appendChild(ct());return Na(m,{pending:()=>{}},p=>{if(o){it({});var u=oe;u.c=o}i&&(r.$$events=i),d=e(p,r)||{},o&&ot()}),()=>{var p;for(var u of c){t.removeEventListener(u,Mn);var g=cn.get(u);--g===0?(document.removeEventListener(u,Mn),cn.delete(u)):cn.set(u,g)}$r.delete(s),m!==n&&((p=m.parentNode)==null||p.removeChild(m))}});return ws.set(d,f),d}let ws=new WeakMap;var Ze,pt,Le,un,sr,lr,Fr;class ao{constructor(t,n=!0){Xe(this,"anchor"),q(this,Ze,new Map),q(this,pt,new Map),q(this,Le,new Map),q(this,un,new Set),q(this,sr,!0),q(this,lr,()=>{var r=Y;if(h(this,Ze).has(r)){var i=h(this,Ze).get(r),o=h(this,pt).get(i);if(o)Ur(o),h(this,un).delete(i);else{var a=h(this,Le).get(i);a&&(h(this,pt).set(i,a.effect),h(this,Le).delete(i),a.fragment.lastChild.remove(),this.anchor.before(a.fragment),o=a.effect)}for(const[c,s]of h(this,Ze)){if(h(this,Ze).delete(c),c===r)break;const d=h(this,Le).get(s);d&&(ke(d.effect),h(this,Le).delete(s))}for(const[c,s]of h(this,pt)){if(c===i||h(this,un).has(c))continue;const d=()=>{if(Array.from(h(this,Ze).values()).includes(c)){var f=document.createDocumentFragment();Vi(s,f),f.append(ct()),h(this,Le).set(c,{effect:s,fragment:f})}else ke(s);h(this,un).delete(c),h(this,pt).delete(c)};h(this,sr)||!o?(h(this,un).add(c),ln(s,d,!1)):d()}}}),q(this,Fr,r=>{h(this,Ze).delete(r);const i=Array.from(h(this,Ze).values());for(const[o,a]of h(this,Le))i.includes(o)||(ke(a.effect),h(this,Le).delete(o))}),this.anchor=t,A(this,sr,n)}ensure(t,n){var r=Y,i=Li();if(n&&!h(this,pt).has(t)&&!h(this,Le).has(t))if(i){var o=document.createDocumentFragment(),a=ct();o.append(a),h(this,Le).set(t,{effect:ze(()=>n(a)),fragment:o})}else h(this,pt).set(t,ze(()=>n(this.anchor)));if(h(this,Ze).set(r,t),i){for(const[c,s]of h(this,pt))c===t?r.skipped_effects.delete(s):r.skipped_effects.add(s);for(const[c,s]of h(this,Le))c===t?r.skipped_effects.delete(s.effect):r.skipped_effects.add(s.effect);r.oncommit(h(this,lr)),r.ondiscard(h(this,Fr))}else h(this,lr).call(this)}}Ze=new WeakMap,pt=new WeakMap,Le=new WeakMap,un=new WeakMap,sr=new WeakMap,lr=new WeakMap,Fr=new WeakMap;function Hr(e){oe===null&&va(),Qt&&oe.l!==null?ms(oe).m.push(e):Dn(()=>{const t=Rn(e);if(typeof t=="function")return t})}function ms(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function $(e,t,n=!1){var r=new ao(e),i=n?Et:0;function o(a,c){r.ensure(a,c)}nr(()=>{var a=!1;t((c,s=!0)=>{a=!0,o(s,c)}),a||o(!1,null)},i)}function so(e,t,n,r,i){var o,a=(o=t.$$slots)==null?void 0:o[n],c=!1;a===!0&&(a=t.children,c=!0),a===void 0||a(e,c?()=>r:r)}function lo(e,t,n){var r=new ao(e);nr(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},Et)}function ht(e,t){Oi(()=>{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 co(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=co(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bs(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=co(e))&&(r&&(r+=" "),r+=t);return r}function dn(e){return typeof e=="object"?bs(e):e??""}function ys(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function Pt(e,t,n,r,i,o){var a=e.__className;if(a!==n||a===void 0){var c=ys(n,r);c==null?e.removeAttribute("class"):t?e.className=c:e.setAttribute("class",c),e.__className=n}return o}function uo(e,t,n=!1){if(e.multiple){if(t==null)return;if(!xr(t))return Pa();for(var r of e.options)r.selected=t.includes(po(r));return}for(r of e.options){var i=po(r);if(Ya(i,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ks(e){var t=new MutationObserver(()=>{uo(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),jr(()=>{t.disconnect()})}function po(e){return"__value"in e?e.__value:e.value}const xs=Symbol("is custom element"),_s=Symbol("is html");function Ss(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function ae(e,t,n,r){var i=Cs(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[fa]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Ps(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Cs(e){return e.__attributes??(e.__attributes={[xs]:e.nodeName.includes("-"),[_s]:e.namespaceURI===ia})}var ho=new Map;function Ps(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=la(i);for(var a in r)r[a].set&&n.push(a);i=pi(i)}return n}function Ws(e,t,n=t){var r=new WeakSet;es(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(o=Gr(e)?Vr(o):o,n(o),Y!==null&&r.add(Y),await cs(),o!==(o=t())){var a=e.selectionStart,c=e.selectionEnd,s=e.value.length;if(e.value=o??"",c!==null){var d=e.value.length;a===c&&c===s&&d>s?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=a,e.selectionEnd=Math.min(c,d))}}}),Rn(t)==null&&e.value&&(n(Gr(e)?Vr(e.value):e.value),Y!==null&&r.add(Y)),qr(()=>{var i=t();if(e===document.activeElement){var o=Kn??Y;if(r.has(o))return}Gr(e)&&i===Vr(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function Gr(e){var t=e.type;return t==="number"||t==="range"}function Vr(e){return e===""?null:+e}function fo(e,t){return e===t||e?.[At]===t}function Ts(e={},t,n,r){return Oi(()=>{var i,o;return qr(()=>{i=o,o=[],Rn(()=>{e!==n(...o)&&(t(e,...o),i&&fo(n(...i),e)&&t(null,...i))})}),()=>{en(()=>{o&&fo(n(...o),e)&&t(null,...o)})}}),e}let cr=!1;function Ds(e){var t=cr;try{return cr=!1,[e(),cr]}finally{cr=t}}function Te(e,t,n,r){var i,o=!Qt||(n&Qo)!==0,a=(n&ea)!==0,c=(n&ta)!==0,s=r,d=!0,f=()=>(d&&(d=!1,s=c?Rn(r):r),s),m;if(a){var p=At in e||ha in e;m=((i=Jt(e,t))==null?void 0:i.set)??(p&&t in e?v=>e[t]=v:void 0)}var u,g=!1;a?[u,g]=Ds(()=>e[t]):u=e[t],u===void 0&&r!==void 0&&(u=f(),m&&(o&&ka(),m(u)));var b;if(o?b=()=>{var v=e[t];return v===void 0?f():(d=!0,v)}:b=()=>{var v=e[t];return v!==void 0&&(s=void 0),v===void 0?s:v},o&&!(n&Xo))return b;if(m){var y=e.$$legacy;return function(v,x){return arguments.length>0?((!o||!x||y||g)&&m(x?b():v),v):b()}}var S=!1,E=(n&Zo?Xn:Br)(()=>(S=!1,b()));a&&l(E);var O=K;return function(v,x){if(arguments.length>0){const D=x?l(E):o&&a?Me(v):v;return w(E,D),S=!0,s!==void 0&&(s=D),v}return Ut&&S||O.f&rt?E.v:l(E)}}const vo="wineater_consent",Es=["wineater_uid","uniqueUserID","sessionID"];function Is(){try{const e=window.localStorage.getItem(vo);return e==="granted"||e==="denied"?e:null}catch{return null}}let Kr=V(Me(Is())),ur=V(null);function As(e){w(ur,e,!0)}function go(){var e;return((e=window?.wineaterData)==null?void 0:e.requireConsent)===!0?!0:l(ur)===!0}function Rs(){return l(ur)!==null&&go()&&l(Kr)===null}function wo(){var e;return((e=window?.wineaterData)==null?void 0:e.tracking)===!1||l(ur)===null?!1:go()?l(Kr)==="granted":!0}function Ms(){for(const e of Es){try{window.localStorage.removeItem(e)}catch{}try{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}catch{}}}const Jr=new Set;function zs(e){return Jr.add(e),()=>Jr.delete(e)}function mo(e){w(Kr,e,!0);try{window.localStorage.setItem(vo,e)}catch{}e==="denied"&&Ms();for(const t of Jr)t(e)}function bo(){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 Bs(){const e="uniqueUserID";let t=Zr(e);return t||(t=bo(),Yr(e,t,365)),t}function De(e,t,n={},r={}){const i="https://admin-api.wineater.com/api/widget-events",o=new Date().toISOString(),a=navigator.language.split("-")[1]||null,c=navigator.language.split("-")[0]||"en";if(!wo()){const p={event_type:e,store_id:t,event_time:o,data:n,meta:{...r,anonymous:!0},device_info:{device:window.innerWidth<768?"mobile":"desktop"},region:a,language:c};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p),keepalive:!0}).catch(u=>{console.debug("[wineater] anonymous event failed:",u?.message)})}let s=Zr("uniqueUserID");s||(s=Bs());const d={user_agent:navigator.userAgent,screen_width:window.screen.width,screen_height:window.screen.height,language:navigator.language,platform:navigator.platform};let f=Zr("sessionID");f||(f=bo(),Yr("sessionID",f,1));const m={event_type:e,store_id:t,session_id:f,event_time:o,data:n,meta:{...r,user_id:s},device_info:d,region:a,language:c};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)}).then(p=>p.ok?p.json():p.json().then(u=>{throw new Error(u.message||"Failed to track widget event")})).catch(p=>{throw console.error("Widget event tracking error:",p),p})}function Ns(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 Qr(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 Ls(e){return{recommendations:(e.recommendations||[]).filter(Boolean).map(Qr),hasMore:!!e.has_more}}const Bn="wineater_uid",js=365;let dr=null;function yo(){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 ko=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function xo(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 qs(e,t){try{const n=new Date(Date.now()+js*864e5).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; expires=${n}; path=/; SameSite=Lax; Secure`}catch{}}function _o(){return wo()}zs(e=>{e==="denied"&&(dr=null)});function Xr(){if(!_o())return null;if(dr)return dr;let e=null;try{e=window.localStorage.getItem(Bn)}catch{}(!e||!ko.test(e))&&(e=xo(Bn)),(!e||!ko.test(e))&&(e=yo());try{window.localStorage.setItem(Bn,e)}catch{}return xo(Bn)!==e&&qs(Bn,e),dr=e,e}function So(){return yo()}const Os=2e3,Co=100;let pr=null,pn=[],Nn=null,Po=!1;function Us(e){pr=e,!(Po||typeof document>"u")&&(Po=!0,document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ln()}),window.addEventListener("pagehide",()=>void Ln()))}function hn(e){var t;if(!(!_o()||!pr)&&!(!((t=e.sku_ids)!=null&&t.length)&&e.type!=="more")){if(pn.push(e),pn.length>=Co){Ln();return}Nn||(Nn=setTimeout(()=>void Ln(),Os))}}async function Ln(){if(Nn&&(clearTimeout(Nn),Nn=null),!pr||pn.length===0)return;const e=Xr();if(!e){pn=[];return}const t=pn.splice(0,Co);try{await pr({uid:e,events:t})}catch(n){console.debug("[wineater] feedback flush failed:",n?.message)}pn.length>0&&Ln()}const $s="X-Wineater-Uid";var hr,fr,jn,qn,ft,Wo,Ft;class Fs{constructor(t,n="1"){q(this,ft),q(this,hr,"https://api.wineater.com/"),q(this,fr),q(this,jn),q(this,qn,!1),A(this,fr,t),A(this,jn,n)}async getInstantRecommendations(){try{const t=h(this,jn)==="2"?"dish/recommendations/instant/v2":"dish/recommendations/instant";return(await J(this,ft,Ft).call(this,t,{})).filter(Boolean).map(Ns)}catch(t){throw new Error(`Error in getInstantRecommendations: ${t.message}`)}}async getWineRecommendationsSearch(t,n){try{const r=h(this,jn)==="2"?"dish/recommendations/search/v2":"dish/recommendations/search";return(await J(this,ft,Ft).call(this,r,n?{text:t,query_id:n}:{text:t})).filter(Boolean).map(Qr)}catch(r){throw new Error(`Error in getWineRecommendations: ${r.message}`)}}async getMoreWineRecommendations(t,n){try{const r=await J(this,ft,Ft).call(this,"dish/recommendations/search/v2/more",{text:t,exclude_ids:n});return Ls(r)}catch(r){throw new Error(`Error in getMoreWineRecommendations: ${r.message}`)}}async getSimilarWines(t){try{return(await J(this,ft,Ft).call(this,"dish/recommendations/similar",{id:t})).filter(Boolean).map(Qr)}catch(n){throw new Error(`Error in getSimilarWines: ${n.message}`)}}async postEvents(t){await J(this,ft,Ft).call(this,"events",t,{keepalive:!0})}async getStoreConfig(){try{return await J(this,ft,Ft).call(this,"stores/store",{})}catch(t){throw console.error("Error fetching store configuration:",t),t}}}hr=new WeakMap,fr=new WeakMap,jn=new WeakMap,qn=new WeakMap,ft=new WeakSet,Wo=function(){const e={"Content-Type":"application/json",Authorization:`Bearer ${h(this,fr)}`};if(!h(this,qn)){const t=Xr();t&&(e[$s]=t)}return e},Ft=async function(e,t,n={}){const r=()=>({method:n.method??"POST",headers:J(this,ft,Wo).call(this),body:t===void 0?void 0:JSON.stringify(t),keepalive:n.keepalive});let i;try{i=await fetch(`${h(this,hr)}${e}`,r())}catch(c){if(h(this,qn)||!Xr())throw c;A(this,qn,!0),i=await fetch(`${h(this,hr)}${e}`,r())}const o=await i.text(),a=o?JSON.parse(o):null;if(!i.ok)throw new Error(`API call failed with status ${i.status}: ${a?.message||"No additional error information"}`);return a};const Hs="HeUw6IXuhvz6tRuXdPEGEbj3SGQ3Q2YtEc1Z8jd41Kg9LtyPb4Epu0to31SYIadG";var To;const Do=((To=window?.wineaterData)==null?void 0:To.CLIENT_TOKEN)||Hs;var Eo;const ei=String(((Eo=window?.wineaterData)==null?void 0:Eo.apiVersion)||"1"),fn=new Fs(Do,ei);Us(e=>fn.postEvents(e));function Gs(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 Io=`${Gs(Do)}:${ei}`,Ao="wineater:v1:";function Ro(e,t){try{const n=window.localStorage.getItem(Ao+e);if(!n)return null;const r=JSON.parse(n);return Date.now()-r.savedAt>t?null:r.value}catch{return null}}function Mo(e,t){try{const n={savedAt:Date.now(),value:t};window.localStorage.setItem(Ao+e,JSON.stringify(n))}catch{}}const Ee={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"},Vs={lang:"fr",welcomeMessage:"Quel plat allez-vous d\xE9guster ? D\xE9crivez-le-moi et je vous proposerai le vin qui l'accompagnera parfaitement.",noResultsFound:"Aucun r\xE9sultat trouv\xE9.",somethingWentWrong:"D\xE9sol\xE9, quelque chose a mal tourn\xE9.",chatButton1:"Trouvez l'accord parfait",chatButton2:"Associez le vin",chatButton3:"Obtenez des conseils",chatTitle:"Accord Mets & Vins \u{1F377}",chatSubtitle:"D\xE9crivez votre plat et obtenez une recommandation en 30 secondes",inputPlaceholder:"ex., Salade de thon",sendButton:"Accorder",poweredBy:"Propuls\xE9 par",price:"Prix",region:"R\xE9gion",type:"Type",reason:"Suggestion",moreInfo:"Plus d'infos",tryAgain:"R\xE9essayer",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\xEAte\u2014votre repas, humeur, budget ou occasion\u2014et notre sommelier IA vous recommandera le vin parfait en quelques secondes",searchPlaceholder:"Entrez un mot-cl\xE9 ou une description","wineDetails.reason":"Raison","wineDetails.price":"Prix","wineDetails.region":"R\xE9gion","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\xE9",red:"Rouge",white:"Blanc",rose:"Ros\xE9",light:"L\xE9ger",medium:"Moyen",full:"Puissant",barTitle:"S\xE9lection du bar",barSubtitle:"Choisissez vos plats ci-dessous et cliquez sur \xABEnvoyer\xBB",barSendButton:"Envoyer",barResetButton:"R\xE9initialiser",barName:"Nom du bar",barNotesPlaceholder:"Entrez vos souhaits ici...",placeholderSuggestions:["Vin pour les p\xE2tes","Parfait avec du poisson","Recommand\xE9 pour une soir\xE9e"],headerLine1:"Partagez tout ce qui vous passe par la t\xEAte \u2014",headerLine2:"\u2014 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\xE9essayer plus tard.",noResultsMessage:"Aucun r\xE9sultat trouv\xE9 pour votre recherche. Veuillez essayer une autre requ\xEAte.",ai_sommelier:"AI sommelier",consentText:"L'assistant vin enregistre un identifiant anonyme sur cet appareil pour apprendre vos go\xFBts et am\xE9liorer ses recommandations. Vous pouvez l'utiliser sans accepter.",consentAccept:"Accepter",consentDecline:"Refuser",consentPrivacy:"Politique de confidentialit\xE9"},Ks={lang:"es",welcomeMessage:"\xBFQu\xE9 vas a comer? Cu\xE9ntame tu plato y te recomendar\xE9 el maridaje perfecto.",noResultsFound:"No se encontraron resultados.",somethingWentWrong:"Lo sentimos, algo sali\xF3 mal.",chatButton1:"Encuentra tu maridaje",chatButton2:"Combina vino ya",chatButton3:"Recibe asesor\xEDa ahora",chatTitle:"Maridaje de Vinos \u{1F377}",chatSubtitle:"Describe tu comida y obt\xE9n una recomendaci\xF3n en 30 segundos",inputPlaceholder:"ej., Ensalada de at\xFAn",sendButton:"Combinar",poweredBy:"Desarrollado por",price:"Precio",region:"Regi\xF3n",type:"Tipo",reason:"Sugerencia",moreInfo:"M\xE1s info",tryAgain:"Probar otra vez",similarWines:"Vinos similares",byTheGlass:"Por copa",winePairingIntro:"Para este vino, aqu\xED tienes algunas sugerencias de platos:",askForDinner:"\xBFQu\xE9 te gustar\xEDa cenar?",clearChatButton:"Limpiar el chat",widgetTitle:"ENCUENTRA TU VINO PERFECTO",widgetSubtitle:"Comparte cualquier cosa que tengas en mente\u2014tu comida, estado de \xE1nimo, presupuesto o evento\u2014y nuestro sommelier de IA te recomendar\xE1 el vino perfecto en segundos",searchPlaceholder:"Escribe una palabra clave o descripci\xF3n","wineDetails.reason":"Raz\xF3n","wineDetails.price":"Precio","wineDetails.region":"Regi\xF3n","wineDetails.type":"Tipo","wineDetails.code":"C\xF3digo","wineDetails.moreInfo":"M\xE1s informaci\xF3n","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 \xABEnviar\xBB",barSendButton:"Enviar",barResetButton:"Reiniciar",barName:"Nombre del bar",barNotesPlaceholder:"Agrega tus comentarios aqu\xED...",placeholderSuggestions:["Vino para pasta","Perfecto con pescado","Recomendado para una fiesta"],headerLine1:"Comparte cualquier cosa que tengas en mente \u2014",headerLine2:"\u2014 y obt\xE9n recomendaciones del vino perfecto en cuesti\xF3n de segundos",headerMeal:"comida",headerMood:"estado de \xE1nimo",headerBudget:"presupuesto",headerOccasion:"ocasi\xF3n",headerOr:"o",errorMessage:"Algo sali\xF3 mal. Por favor, int\xE9ntalo de nuevo m\xE1s tarde.",noResultsMessage:"No se encontraron resultados para tu b\xFAsqueda. Por favor, intenta con otra consulta.",ai_sommelier:"AI sommelier",consentText:"El asistente de vinos guarda un identificador an\xF3nimo en este dispositivo para conocer tus gustos y mejorar las recomendaciones. Puedes usarlo sin aceptar.",consentAccept:"Aceptar",consentDecline:"Rechazar",consentPrivacy:"Pol\xEDtica de privacidad"},Js={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 \u{1F377}",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\u2014your meal, mood, budget, or occasion\u2014and 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\xE9",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 \u2014",headerLine2:"\u2014 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"},Ys={lang:"sr",welcomeMessage:"\u0160ta planirate da jedete? Podelite svoje jelo i preporu\u010Di\u0107u vam savr\u0161eno vino uz obrok.",noResultsFound:"Nema rezultata.",somethingWentWrong:"Izvinite, ne\u0161to je po\u0161lo po zlu.",chatButton1:"Prona\u0111i vino",chatButton2:"Upari vino sada",chatButton3:"Zatra\u017Ei preporuku",chatTitle:"Asistent za uparivanje vina \u{1F377}",chatSubtitle:"Opi\u0161ite svoj obrok i dobijte preporuku za 30 sekundi",inputPlaceholder:"npr. Tuna salata",sendButton:"Upari",poweredBy:"Pokre\u0107e",price:"Cena",region:"Regija",type:"Tip",reason:"Preporuka",moreInfo:"Vi\u0161e informacija",tryAgain:"Poku\u0161aj ponovo",similarWines:"Sli\u010Dna vina",byTheGlass:"Na \u010Da\u0161u",winePairingIntro:"Za ovo vino, preporu\u010Duju se slede\u0107a jela:",askForDinner:"\u0160ta biste \u017Eeleli za ve\u010Deru?",clearChatButton:"Obri\u0161i razgovor",widgetTitle:"PRONA\u0110ITE SAVR\u0160ENO VINO",widgetSubtitle:"Podelite bilo \u0161ta \u2014 obrok, raspolo\u017Eenje, bud\u017Eet ili priliku \u2014 i na\u0161 AI somelijer \u0107e vam za par sekundi preporu\u010Diti vino",searchPlaceholder:"Unesite klju\u010Dnu re\u010D ili opis","wineDetails.price":"Cena","wineDetails.region":"Regija","wineDetails.type":"Tip","wineDetails.moreInfo":"Vi\u0161e informacija","wineDetails.reason":"Razlog","wineDetails.code":"\u0160ifra","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\u0161alji'",barSendButton:"Po\u0161alji",barResetButton:"Resetuj",barName:"Naziv bara",barNotesPlaceholder:"Dodajte svoje \u017Eelje ovde...",placeholderSuggestions:["Vino uz pastu","Savr\u0161eno uz ribu","Preporuka za \u017Eurku"],headerLine1:"Podelite bilo \u0161ta \u0161to vam je na umu \u2014",headerLine2:"\u2014 i dobijte preporuke za savr\u0161eno vino za par sekundi",headerMeal:"obrok",headerMood:"raspolo\u017Eenje",headerBudget:"bud\u017Eet",headerOccasion:"prilika",headerOr:"ili",errorMessage:"Ne\u0161to je po\u0161lo po zlu. Molimo poku\u0161ajte ponovo kasnije.",noResultsMessage:"Nema rezultata za va\u0161u pretragu. Molimo poku\u0161ajte sa druga\u010Dijim upitom.",ai_sommelier:"AI sommelier",consentText:"Vinski asistent \u010Duva anonimni identifikator na ovom ure\u0111aju kako bi upoznao va\u0161 ukus i pobolj\u0161ao preporuke. Mo\u017Eete ga koristiti i bez prihvatanja.",consentAccept:"Prihvati",consentDecline:"Odbij",consentPrivacy:"Politika privatnosti"},Zs={lang:"de",welcomeMessage:"Was m\xF6chten 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\xE4hlen",chatButton3:"Erhalte Weinberatung",chatTitle:"Wein & Speisen \u{1F377}",chatSubtitle:"Beschreiben Sie Ihr Gericht und erhalten Sie in 30 Sekunden eine Empfehlung",inputPlaceholder:"z.B., Thunfischsalat",sendButton:"Kombinieren",poweredBy:"Unterst\xFCtzt von",price:"Preis",region:"Region",type:"Typ",reason:"Anregung",moreInfo:"Mehr Info",tryAgain:"Nochmal versuchen",similarWines:"\xC4hnliche Weine",byTheGlass:"Glasweise",winePairingIntro:"F\xFCr diesen Wein gibt es folgende Essensvorschl\xE4ge:",askForDinner:"Was m\xF6chten Sie zum Abendessen essen?",clearChatButton:"Chat l\xF6schen",widgetTitle:"FINDEN SIE IHREN PERFEKTEN WEIN",widgetSubtitle:"Teilen Sie alles, was Ihnen in den Sinn kommt\u2014Ihre Mahlzeit, Stimmung, Ihr Budget oder Anlass\u2014und unser KI-Sommelier empfiehlt Ihnen in Sekunden den perfekten Wein",placeholderSuggestions:["Wein f\xFCr Pasta","Perfekt zu Fisch","Empfohlen f\xFCr 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\xE4t",red:"Rot",white:"Wei\xDF",rose:"Ros\xE9",light:"Leicht",medium:"Mittel",full:"Voll",barTitle:"Bar-Auswahl",barSubtitle:"W\xE4hlen Sie Ihre Gerichte und klicken Sie auf 'Senden'",barSendButton:"Senden",barResetButton:"Zur\xFCcksetzen",barName:"Name der Bar",headerLine1:"Teilen Sie alles, was Ihnen durch den Kopf geht \u2014",headerLine2:"\u2014 und erhalten Sie in Sekundenschnelle Empfehlungen f\xFCr den perfekten Wein",headerMeal:"Mahlzeit",headerMood:"Stimmung",headerBudget:"Budget",headerOccasion:"Anlass",headerOr:"oder",errorMessage:"Etwas ist schief gelaufen. Bitte versuchen Sie es sp\xE4ter erneut.",noResultsMessage:"Keine Ergebnisse f\xFCr 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\xE4t, um Ihren Geschmack kennenzulernen und Empfehlungen zu verbessern. Sie k\xF6nnen ihn auch ohne Zustimmung nutzen.",consentAccept:"Akzeptieren",consentDecline:"Ablehnen",consentPrivacy:"Datenschutzerkl\xE4rung"},Qs={lang:"ukr",welcomeMessage:"\u0429\u043E \u0432\u0438 \u0437\u0431\u0438\u0440\u0430\u0454\u0442\u0435\u0441\u044C \u0457\u0441\u0442\u0438? \u041E\u043F\u0438\u0448\u0456\u0442\u044C \u0441\u0432\u043E\u044E \u0441\u0442\u0440\u0430\u0432\u0443, \u0456 \u044F \u043F\u043E\u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u044E \u0432\u0430\u043C \u0456\u0434\u0435\u0430\u043B\u044C\u043D\u0435 \u0432\u0438\u043D\u043E.",noResultsFound:"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0456\u0432 \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E.",somethingWentWrong:"\u0412\u0438\u0431\u0430\u0447\u0442\u0435, \u0449\u043E\u0441\u044C \u043F\u0456\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",chatButton1:"\u0417\u043D\u0430\u0439\u0442\u0438 \u0456\u0434\u0435\u0430\u043B\u044C\u043D\u0435 \u043F\u043E\u0454\u0434\u043D\u0430\u043D\u043D\u044F",chatButton2:"\u041F\u0456\u0434\u0456\u0431\u0440\u0430\u0442\u0438 \u0432\u0438\u043D\u043E",chatButton3:"\u041E\u0442\u0440\u0438\u043C\u0430\u0442\u0438 \u043F\u043E\u0440\u0430\u0434\u0443",chatTitle:"\u0421\u043E\u043C\u0435\u043B\u044C\u0454-\u043F\u043E\u043C\u0456\u0447\u043D\u0438\u043A \u{1F377}",chatSubtitle:"\u041E\u043F\u0438\u0448\u0456\u0442\u044C \u0441\u0432\u043E\u044E \u0441\u0442\u0440\u0430\u0432\u0443 \u0456 \u043E\u0442\u0440\u0438\u043C\u0430\u0439\u0442\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0456\u044E \u0437\u0430 30 \u0441\u0435\u043A\u0443\u043D\u0434",inputPlaceholder:"\u043D\u0430\u043F\u0440\u0438\u043A\u043B\u0430\u0434, \u0422\u0443\u043D\u0435\u0446\u044C \u0456\u0437 \u0441\u0430\u043B\u0430\u0442\u043E\u043C",sendButton:"\u041F\u0456\u0434\u0456\u0431\u0440\u0430\u0442\u0438",poweredBy:"\u0420\u043E\u0437\u0440\u043E\u0431\u043B\u0435\u043D\u043E \u043D\u0430 \u043E\u0441\u043D\u043E\u0432\u0456",price:"\u0426\u0456\u043D\u0430",region:"\u0420\u0435\u0433\u0456\u043E\u043D",type:"\u0422\u0438\u043F",reason:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0456\u044F",moreInfo:"\u0414\u043E\u043A\u043B\u0430\u0434\u043D\u0456\u0448\u0435",tryAgain:"\u0421\u043F\u0440\u043E\u0431\u0443\u0432\u0430\u0442\u0438 \u0449\u0435",similarWines:"\u0421\u0445\u043E\u0436\u0456 \u0432\u0438\u043D\u0430",byTheGlass:"\u041D\u0430 \u043A\u0435\u043B\u0438\u0445",winePairingIntro:"\u0414\u043E \u0446\u044C\u043E\u0433\u043E \u0432\u0438\u043D\u0430 \u043F\u0456\u0434\u0445\u043E\u0434\u044F\u0442\u044C \u0442\u0430\u043A\u0456 \u0441\u0442\u0440\u0430\u0432\u0438:",askForDinner:"\u0429\u043E \u0432\u0438 \u0445\u043E\u0447\u0435\u0442\u0435 \u043D\u0430 \u0432\u0435\u0447\u0435\u0440\u044E?",clearChatButton:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0447\u0430\u0442",widgetTitle:"\u0417\u041D\u0410\u0419\u0414\u0406\u0422\u042C \u0406\u0414\u0415\u0410\u041B\u042C\u041D\u0415 \u0412\u0418\u041D\u041E",widgetSubtitle:"\u041F\u043E\u0434\u0456\u043B\u0456\u0442\u044C\u0441\u044F \u0442\u0438\u043C, \u0449\u043E \u0443 \u0432\u0430\u0441 \u043D\u0430 \u0434\u0443\u043C\u0446\u0456\u2014\u0457\u0436\u0430, \u043D\u0430\u0441\u0442\u0440\u0456\u0439, \u0431\u044E\u0434\u0436\u0435\u0442 \u0447\u0438 \u043F\u043E\u0434\u0456\u044F\u2014\u0456 \u043D\u0430\u0448 AI-\u0441\u043E\u043C\u0435\u043B\u044C\u0454 \u043F\u043E\u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0454 \u0432\u0430\u043C \u0456\u0434\u0435\u0430\u043B\u044C\u043D\u0435 \u0432\u0438\u043D\u043E \u0437\u0430 \u0441\u0435\u043A\u0443\u043D\u0434\u0438",searchPlaceholder:"\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u043A\u043B\u044E\u0447\u043E\u0432\u0435 \u0441\u043B\u043E\u0432\u043E \u0430\u0431\u043E \u043E\u043F\u0438\u0441","wineDetails.reason":"\u041F\u0440\u0438\u0447\u0438\u043D\u0430","wineDetails.price":"\u0426\u0456\u043D\u0430","wineDetails.region":"\u0420\u0435\u0433\u0456\u043E\u043D","wineDetails.type":"\u0422\u0438\u043F","wineDetails.moreInfo":"\u0414\u043E\u043A\u043B\u0430\u0434\u043D\u0456\u0448\u0435","wineDetails.code":"\u041A\u043E\u0434","wineDetails.buy":"\u041A\u0443\u043F\u0438\u0442\u0438",searchButton:"\u041F\u043E\u0448\u0443\u043A",priceRange:"\u0414\u0456\u0430\u043F\u0430\u0437\u043E\u043D \u0446\u0456\u043D",wineColor:"\u041A\u043E\u043B\u0456\u0440 \u0432\u0438\u043D\u0430",intensity:"\u0406\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u0456\u0441\u0442\u044C",red:"\u0427\u0435\u0440\u0432\u043E\u043D\u0435",white:"\u0411\u0456\u043B\u0435",rose:"\u0420\u043E\u0436\u0435\u0432\u0435",light:"\u041B\u0435\u0433\u043A\u0435",medium:"\u0421\u0435\u0440\u0435\u0434\u043D\u0454",full:"\u041F\u043E\u0432\u043D\u0435",barTitle:"\u0417\u0430\u043A\u0443\u0441\u043A\u0438 \u0434\u043E \u0432\u0438\u043D\u0430",barSubtitle:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0441\u0442\u0440\u0430\u0432\u0438 \u043D\u0438\u0436\u0447\u0435 \u0442\u0430 \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \xAB\u041D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438\xBB",barSendButton:"\u041D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438",barResetButton:"\u0421\u043A\u0438\u043D\u0443\u0442\u0438",barName:"\u041D\u0430\u0437\u0432\u0430 \u0431\u0430\u0440\u0443",barNotesPlaceholder:"\u0414\u043E\u0434\u0430\u0439\u0442\u0435 \u0432\u0430\u0448\u0456 \u043F\u043E\u0431\u0430\u0436\u0430\u043D\u043D\u044F \u0442\u0443\u0442...",placeholderSuggestions:["\u0412\u0438\u043D\u043E \u0434\u043E \u043F\u0430\u0441\u0442\u0438","\u0406\u0434\u0435\u0430\u043B\u044C\u043D\u043E \u0434\u043E \u0440\u0438\u0431\u0438","\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0454\u043C\u043E \u0434\u043B\u044F \u0432\u0435\u0447\u0456\u0440\u043A\u0438"],headerLine1:"\u041F\u043E\u0434\u0456\u043B\u0456\u0442\u044C\u0441\u044F \u0431\u0443\u0434\u044C-\u044F\u043A\u0438\u043C\u0438 \u0432\u0430\u0448\u0438\u043C\u0438 \u0434\u0443\u043C\u043A\u0430\u043C\u0438 \u2014",headerLine2:"\u2014 \u0456 \u043E\u0442\u0440\u0438\u043C\u0430\u0439\u0442\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0456\u0457 \u0449\u043E\u0434\u043E \u0456\u0434\u0435\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0432\u0438\u043D\u0430 \u0437\u0430 \u0441\u0435\u043A\u0443\u043D\u0434\u0438",headerMeal:"\u0441\u0442\u0440\u0430\u0432\u0430",headerMood:"\u043D\u0430\u0441\u0442\u0440\u0456\u0439",headerBudget:"\u0431\u044E\u0434\u0436\u0435\u0442",headerOccasion:"\u043F\u043E\u0434\u0456\u044F",headerOr:"\u0430\u0431\u043E",errorMessage:"\u0429\u043E\u0441\u044C \u043F\u0456\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A. \u0411\u0443\u0434\u044C \u043B\u0430\u0441\u043A\u0430, \u0441\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u0456\u0437\u043D\u0456\u0448\u0435.",noResultsMessage:"\u0417\u0430 \u0432\u0430\u0448\u0438\u043C \u0437\u0430\u043F\u0438\u0442\u043E\u043C \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0456\u0432. \u0421\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0456\u043D\u0448\u0438\u0439 \u0437\u0430\u043F\u0438\u0442.",ai_sommelier:"AI sommelier",consentText:"\u0412\u0438\u043D\u043D\u0438\u0439 \u043F\u043E\u043C\u0456\u0447\u043D\u0438\u043A \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0454 \u043D\u0430 \u0446\u044C\u043E\u043C\u0443 \u043F\u0440\u0438\u0441\u0442\u0440\u043E\u0457 \u0430\u043D\u043E\u043D\u0456\u043C\u043D\u0438\u0439 \u0456\u0434\u0435\u043D\u0442\u0438\u0444\u0456\u043A\u0430\u0442\u043E\u0440, \u0449\u043E\u0431 \u0432\u0440\u0430\u0445\u043E\u0432\u0443\u0432\u0430\u0442\u0438 \u0432\u0430\u0448 \u0441\u043C\u0430\u043A \u0456 \u043F\u043E\u043A\u0440\u0430\u0449\u0443\u0432\u0430\u0442\u0438 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0456\u0457. \u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043C\u043E\u0436\u043D\u0430 \u0439 \u0431\u0435\u0437 \u0437\u0433\u043E\u0434\u0438.",consentAccept:"\u041F\u0440\u0438\u0439\u043D\u044F\u0442\u0438",consentDecline:"\u0412\u0456\u0434\u0445\u0438\u043B\u0438\u0442\u0438",consentPrivacy:"\u041F\u043E\u043B\u0456\u0442\u0438\u043A\u0430 \u043A\u043E\u043D\u0444\u0456\u0434\u0435\u043D\u0446\u0456\u0439\u043D\u043E\u0441\u0442\u0456"},Xs={lang:"ru",welcomeMessage:"\u0427\u0442\u043E \u0432\u044B \u043F\u043B\u0430\u043D\u0438\u0440\u0443\u0435\u0442\u0435 \u043F\u043E\u0435\u0441\u0442\u044C? \u041D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u0431\u043B\u044E\u0434\u043E, \u0438 \u044F \u043F\u043E\u0434\u0431\u0435\u0440\u0443 \u0438\u0434\u0435\u0430\u043B\u044C\u043D\u043E\u0435 \u0432\u0438\u043D\u043E \u043A \u043D\u0435\u043C\u0443.",noResultsFound:"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B.",somethingWentWrong:"\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0447\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",chatButton1:"\u041D\u0430\u0439\u0442\u0438 \u0441\u043E\u0447\u0435\u0442\u0430\u043D\u0438\u0435",chatButton2:"\u041F\u043E\u0434\u043E\u0431\u0440\u0430\u0442\u044C \u0432\u0438\u043D\u043E",chatButton3:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0441\u043E\u0432\u0435\u0442",chatTitle:"\u0410\u0441\u0441\u0438\u0441\u0442\u0435\u043D\u0442 \u043F\u043E \u043F\u043E\u0434\u0431\u043E\u0440\u0443 \u0432\u0438\u043D\u0430 \u{1F377}",chatSubtitle:"\u041E\u043F\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u0431\u043B\u044E\u0434\u043E \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u044E \u0437\u0430 30 \u0441\u0435\u043A\u0443\u043D\u0434",inputPlaceholder:"\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u0422\u0443\u043D\u0435\u0446 \u0441 \u0441\u0430\u043B\u0430\u0442\u043E\u043C",sendButton:"\u041F\u043E\u0434\u043E\u0431\u0440\u0430\u0442\u044C",poweredBy:"Powered by",price:"\u0426\u0435\u043D\u0430",region:"\u0420\u0435\u0433\u0438\u043E\u043D",type:"\u0422\u0438\u043F",reason:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u044F",moreInfo:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435",tryAgain:"\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0435\u0449\u0451",similarWines:"\u041F\u043E\u0445\u043E\u0436\u0438\u0435 \u0432\u0438\u043D\u0430",byTheGlass:"\u041F\u043E \u0431\u043E\u043A\u0430\u043B\u0430\u043C",winePairingIntro:"\u041A \u044D\u0442\u043E\u043C\u0443 \u0432\u0438\u043D\u0443 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0431\u043B\u044E\u0434\u0430:",askForDinner:"\u0427\u0442\u043E \u0431\u044B \u0432\u044B \u0445\u043E\u0442\u0435\u043B\u0438 \u043D\u0430 \u0443\u0436\u0438\u043D?",clearChatButton:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0447\u0430\u0442",widgetTitle:"\u041D\u0410\u0419\u0414\u0418\u0422\u042C \u0418\u0414\u0415\u0410\u041B\u042C\u041D\u041E\u0415 \u0412\u0418\u041D\u041E",widgetSubtitle:"\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u0435\u0441\u044C \u0432\u0430\u0448\u0438\u043C\u0438 \u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0442\u0435\u043D\u0438\u044F\u043C\u0438 \u2014 \u0431\u043B\u044E\u0434\u043E\u043C, \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435\u043C, \u0431\u044E\u0434\u0436\u0435\u0442\u043E\u043C \u0438\u043B\u0438 \u0441\u043B\u0443\u0447\u0430\u0435\u043C \u2014 \u0438 \u043D\u0430\u0448 AI-\u0441\u043E\u043C\u0435\u043B\u044C\u0435 \u043F\u043E\u0434\u0431\u0435\u0440\u0451\u0442 \u0438\u0434\u0435\u0430\u043B\u044C\u043D\u043E\u0435 \u0432\u0438\u043D\u043E \u0437\u0430 \u0441\u0435\u043A\u0443\u043D\u0434\u044B",searchPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043B\u044E\u0447\u0435\u0432\u043E\u0435 \u0441\u043B\u043E\u0432\u043E \u0438\u043B\u0438 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435","wineDetails.price":"\u0426\u0435\u043D\u0430","wineDetails.region":"\u0420\u0435\u0433\u0438\u043E\u043D","wineDetails.type":"\u0422\u0438\u043F","wineDetails.moreInfo":"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435","wineDetails.reason":"\u041F\u0440\u0438\u0447\u0438\u043D\u0430","wineDetails.code":"\u041A\u043E\u0434","wineDetails.buy":"\u041A\u0443\u043F\u0438\u0442\u044C",searchButton:"\u041F\u043E\u0438\u0441\u043A",priceRange:"\u0414\u0438\u0430\u043F\u0430\u0437\u043E\u043D \u0446\u0435\u043D",wineColor:"\u0426\u0432\u0435\u0442 \u0432\u0438\u043D\u0430",intensity:"\u0418\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u043E\u0441\u0442\u044C",red:"\u041A\u0440\u0430\u0441\u043D\u043E\u0435",white:"\u0411\u0435\u043B\u043E\u0435",rose:"\u0420\u043E\u0437\u043E\u0432\u043E\u0435",light:"\u041B\u0451\u0433\u043A\u043E\u0435",medium:"\u0421\u0440\u0435\u0434\u043D\u0435\u0435",full:"\u041F\u043E\u043B\u043D\u043E\u0435",barTitle:"\u0417\u0430\u043A\u0443\u0441\u043A\u0438 \u043A \u0432\u0438\u043D\u0443",barSubtitle:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0431\u043B\u044E\u0434\u0430 \u043D\u0438\u0436\u0435 \u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 '\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C'",barSendButton:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",barResetButton:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C",barName:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u0440\u0430",barNotesPlaceholder:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0432\u0430\u0448\u0438 \u043F\u043E\u0436\u0435\u043B\u0430\u043D\u0438\u044F \u0437\u0434\u0435\u0441\u044C...",placeholderSuggestions:["\u0412\u0438\u043D\u043E \u0434\u043B\u044F \u043F\u0430\u0441\u0442\u044B","\u0418\u0434\u0435\u0430\u043B\u044C\u043D\u043E \u043A \u0440\u044B\u0431\u0435","\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u0434\u043B\u044F \u0432\u0435\u0447\u0435\u0440\u0438\u043D\u043A\u0438"],headerLine1:"\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u0435\u0441\u044C \u043B\u044E\u0431\u044B\u043C\u0438 \u0432\u0430\u0448\u0438\u043C\u0438 \u043C\u044B\u0441\u043B\u044F\u043C\u0438 \u2014",headerLine2:"\u2014 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438 \u043F\u043E \u0438\u0434\u0435\u0430\u043B\u044C\u043D\u043E\u043C\u0443 \u0432\u0438\u043D\u0443 \u0437\u0430 \u0441\u0447\u0438\u0442\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u044B",headerMeal:"\u0431\u043B\u044E\u0434\u043E",headerMood:"\u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435",headerBudget:"\u0431\u044E\u0434\u0436\u0435\u0442",headerOccasion:"\u0441\u043B\u0443\u0447\u0430\u0439",headerOr:"\u0438\u043B\u0438",errorMessage:"\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0436\u0435.",noResultsMessage:"\u041F\u043E \u0432\u0430\u0448\u0435\u043C\u0443 \u0437\u0430\u043F\u0440\u043E\u0441\u0443 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0437\u0430\u043F\u0440\u043E\u0441.",ai_sommelier:"AI sommelier",consentText:"\u0412\u0438\u043D\u043D\u044B\u0439 \u043F\u043E\u043C\u043E\u0449\u043D\u0438\u043A \u0441\u043E\u0445\u0440\u0430\u043D\u044F\u0435\u0442 \u043D\u0430 \u044D\u0442\u043E\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435 \u0430\u043D\u043E\u043D\u0438\u043C\u043D\u044B\u0439 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440, \u0447\u0442\u043E\u0431\u044B \u0443\u0447\u0438\u0442\u044B\u0432\u0430\u0442\u044C \u0432\u0430\u0448 \u0432\u043A\u0443\u0441 \u0438 \u0443\u043B\u0443\u0447\u0448\u0430\u0442\u044C \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438. \u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u043C\u043E\u0436\u043D\u043E \u0438 \u0431\u0435\u0437 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u044F.",consentAccept:"\u041F\u0440\u0438\u043D\u044F\u0442\u044C",consentDecline:"\u041E\u0442\u043A\u043B\u043E\u043D\u0438\u0442\u044C",consentPrivacy:"\u041F\u043E\u043B\u0438\u0442\u0438\u043A\u0430 \u043A\u043E\u043D\u0444\u0438\u0434\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u043E\u0441\u0442\u0438"},el={lang:"kk",welcomeMessage:"\u0421\u0456\u0437 \u043D\u0435 \u0436\u0435\u0433\u0456\u04A3\u0456\u0437 \u043A\u0435\u043B\u0435\u0434\u0456? \u0422\u0430\u0493\u0430\u043C\u044B\u04A3\u044B\u0437\u0434\u044B \u0441\u0438\u043F\u0430\u0442\u0442\u0430\u04A3\u044B\u0437, \u043C\u0435\u043D \u043E\u0493\u0430\u043D \u043A\u0435\u0440\u0435\u043C\u0435\u0442 \u0448\u0430\u0440\u0430\u043F \u04B1\u0441\u044B\u043D\u0430\u043C\u044B\u043D.",noResultsFound:"\u041D\u04D9\u0442\u0438\u0436\u0435\u043B\u0435\u0440 \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B.",somethingWentWrong:"\u041A\u0435\u0448\u0456\u0440\u0456\u04A3\u0456\u0437, \u0431\u0456\u0440\u0434\u0435\u04A3\u0435 \u0434\u04B1\u0440\u044B\u0441 \u0431\u043E\u043B\u043C\u0430\u0434\u044B.",chatButton1:"\u0421\u04D9\u0439\u043A\u0435\u0441\u0442\u0456\u043A \u0442\u0430\u0431\u0443",chatButton2:"\u0428\u0430\u0440\u0430\u043F \u0442\u0430\u04A3\u0434\u0430\u0443",chatButton3:"\u041A\u0435\u04A3\u0435\u0441 \u0430\u043B\u0443",chatTitle:"\u0428\u0430\u0440\u0430\u043F \u0442\u0430\u04A3\u0434\u0430\u0443\u0448\u044B \u043A\u04E9\u043C\u0435\u043A\u0448\u0456 \u{1F377}",chatSubtitle:"\u0422\u0430\u0493\u0430\u043C\u044B\u04A3\u044B\u0437\u0434\u044B \u0441\u0438\u043F\u0430\u0442\u0442\u0430\u04A3\u044B\u0437 \u2014 30 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430 \u04B1\u0441\u044B\u043D\u044B\u0441 \u0430\u043B\u044B\u04A3\u044B\u0437",inputPlaceholder:"\u043C\u044B\u0441\u0430\u043B\u044B, \u0442\u0443\u043D\u0435\u0446 \u0441\u0430\u043B\u0430\u0442\u044B\u043C\u0435\u043D",sendButton:"\u0422\u0430\u04A3\u0434\u0430\u0443",poweredBy:"Powered by",price:"\u0411\u0430\u0493\u0430\u0441\u044B",region:"\u04E8\u04A3\u0456\u0440",type:"\u0422\u04AF\u0440\u0456",reason:"\u04B0\u0441\u044B\u043D\u044B\u0441",moreInfo:"\u0422\u043E\u043B\u044B\u0493\u044B\u0440\u0430\u049B",tryAgain:"\u049A\u0430\u0439\u0442\u0430 \u043A\u04E9\u0440\u0443",similarWines:"\u04B0\u049B\u0441\u0430\u0441 \u0448\u0430\u0440\u0430\u043F\u0442\u0430\u0440",byTheGlass:"\u0411\u043E\u043A\u0430\u043B\u043C\u0435\u043D",winePairingIntro:"\u0411\u04B1\u043B \u0448\u0430\u0440\u0430\u043F\u049B\u0430 \u043A\u0435\u043B\u0435\u0441\u0456 \u0442\u0430\u0493\u0430\u043C\u0434\u0430\u0440 \u0441\u04D9\u0439\u043A\u0435\u0441 \u043A\u0435\u043B\u0435\u0434\u0456:",askForDinner:"\u041A\u0435\u0448\u043A\u0456 \u0430\u0441\u049B\u0430 \u043D\u0435 \u049B\u0430\u043B\u0430\u0439\u0441\u044B\u0437?",clearChatButton:"\u0427\u0430\u0442\u0442\u044B \u0442\u0430\u0437\u0430\u043B\u0430\u0443",widgetTitle:"\u041A\u0415\u0420\u0415\u041C\u0415\u0422 \u0428\u0410\u0420\u0410\u041F\u0422\u042B \u0422\u0410\u0411\u042B\u04A2\u042B\u0417",widgetSubtitle:"\u0422\u0430\u04A3\u0434\u0430\u0443\u043B\u0430\u0440\u044B\u04A3\u044B\u0437\u0434\u044B \u0431\u04E9\u043B\u0456\u0441\u0456\u04A3\u0456\u0437 \u2014 \u0442\u0430\u0493\u0430\u043C, \u043A\u04E9\u04A3\u0456\u043B-\u043A\u04AF\u0439, \u0431\u044E\u0434\u0436\u0435\u0442 \u043D\u0435\u043C\u0435\u0441\u0435 \u0436\u0430\u0493\u0434\u0430\u0439 \u2014 \u0436\u04D9\u043D\u0435 \u0431\u0456\u0437\u0434\u0456\u04A3 AI-\u0441\u043E\u043C\u0435\u043B\u044C\u0435 \u0441\u0456\u0437\u0433\u0435 \u0431\u0456\u0440\u043D\u0435\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430 \u0448\u0430\u0440\u0430\u043F \u04B1\u0441\u044B\u043D\u0430\u0434\u044B",searchPlaceholder:"\u041A\u0456\u043B\u0442 \u0441\u04E9\u0437\u0434\u0456 \u043D\u0435\u043C\u0435\u0441\u0435 \u0441\u0438\u043F\u0430\u0442\u0442\u0430\u043C\u0430\u043D\u044B \u0435\u043D\u0433\u0456\u0437\u0456\u04A3\u0456\u0437","wineDetails.price":"\u0411\u0430\u0493\u0430\u0441\u044B","wineDetails.region":"\u04E8\u04A3\u0456\u0440","wineDetails.type":"\u0422\u04AF\u0440\u0456","wineDetails.moreInfo":"\u0422\u043E\u043B\u044B\u0493\u044B\u0440\u0430\u049B","wineDetails.reason":"\u0421\u0435\u0431\u0435\u0431\u0456","wineDetails.code":"\u041A\u043E\u0434","wineDetails.buy":"\u0421\u0430\u0442\u044B\u043F \u0430\u043B\u0443",searchButton:"\u0406\u0437\u0434\u0435\u0443",priceRange:"\u0411\u0430\u0493\u0430 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u044B",wineColor:"\u0428\u0430\u0440\u0430\u043F \u0442\u04AF\u0441\u0456",intensity:"\u049A\u0430\u043D\u044B\u049B\u0442\u044B\u043B\u044B\u049B",red:"\u049A\u044B\u0437\u044B\u043B",white:"\u0410\u049B",rose:"\u0420\u043E\u0437\u0430\u043B\u044B\u049B",light:"\u0416\u0435\u04A3\u0456\u043B",medium:"\u041E\u0440\u0442\u0430\u0448\u0430",full:"\u0422\u043E\u043B\u044B\u049B",barTitle:"\u0428\u0430\u0440\u0430\u043F\u049B\u0430 \u0430\u0440\u043D\u0430\u043B\u0493\u0430\u043D \u0442\u0456\u0441\u043A\u0435\u0431\u0430\u0441\u0430\u0440\u043B\u0430\u0440",barSubtitle:"\u0422\u04E9\u043C\u0435\u043D\u0434\u0435\u0433\u0456 \u0442\u0430\u0493\u0430\u043C\u0434\u0430\u0440\u0434\u044B \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437 \u0436\u04D9\u043D\u0435 '\u0416\u0456\u0431\u0435\u0440\u0443' \u0431\u0430\u0442\u044B\u0440\u043C\u0430\u0441\u044B\u043D \u0431\u0430\u0441\u044B\u04A3\u044B\u0437",barSendButton:"\u0416\u0456\u0431\u0435\u0440\u0443",barResetButton:"\u049A\u0430\u043B\u043F\u044B\u043D\u0430 \u043A\u0435\u043B\u0442\u0456\u0440\u0443",barName:"\u0411\u0430\u0440 \u0430\u0442\u0430\u0443\u044B",barNotesPlaceholder:"\u041C\u04B1\u043D\u0434\u0430 \u04E9\u0437 \u0442\u0456\u043B\u0435\u043A\u0442\u0435\u0440\u0456\u04A3\u0456\u0437\u0434\u0456 \u0436\u0430\u0437\u044B\u04A3\u044B\u0437...",placeholderSuggestions:["\u041F\u0430\u0441\u0442\u0430\u0493\u0430 \u0430\u0440\u043D\u0430\u043B\u0493\u0430\u043D \u0448\u0430\u0440\u0430\u043F","\u0411\u0430\u043B\u044B\u049B\u049B\u0430 \u0442\u0430\u043C\u0430\u0448\u0430 \u04AF\u0439\u043B\u0435\u0441\u0435\u0434\u0456","\u041A\u0435\u0448\u043A\u0435 \u04B1\u0441\u044B\u043D\u0443\u0493\u0430 \u0431\u043E\u043B\u0430\u0434\u044B"],headerLine1:"\u041E\u0439\u043B\u0430\u0440\u044B\u04A3\u044B\u0437\u0431\u0435\u043D \u0431\u04E9\u043B\u0456\u0441\u0456\u04A3\u0456\u0437 \u2014",headerLine2:"\u2014 \u0436\u04D9\u043D\u0435 \u0431\u0456\u0440\u043D\u0435\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430 \u043C\u0456\u043D\u0441\u0456\u0437 \u0448\u0430\u0440\u0430\u043F \u04B1\u0441\u044B\u043D\u044B\u0441\u044B\u043D \u0430\u043B\u044B\u04A3\u044B\u0437",headerMeal:"\u0442\u0430\u0493\u0430\u043C",headerMood:"\u043A\u04E9\u04A3\u0456\u043B-\u043A\u04AF\u0439",headerBudget:"\u0431\u044E\u0434\u0436\u0435\u0442",headerOccasion:"\u0436\u0430\u0493\u0434\u0430\u0439",headerOr:"\u043D\u0435\u043C\u0435\u0441\u0435",errorMessage:"\u0411\u0456\u0440\u0434\u0435\u04A3\u0435 \u0434\u04B1\u0440\u044B\u0441 \u0431\u043E\u043B\u043C\u0430\u0434\u044B. \u041A\u0435\u0439\u0456\u043D\u0456\u0440\u0435\u043A \u049B\u0430\u0439\u0442\u0430 \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.",noResultsMessage:"\u0406\u0437\u0434\u0435\u0443\u0456\u04A3\u0456\u0437\u0433\u0435 \u0441\u04D9\u0439\u043A\u0435\u0441 \u043D\u04D9\u0442\u0438\u0436\u0435 \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B. \u0411\u0430\u0441\u049B\u0430 \u0441\u04B1\u0440\u0430\u0443 \u049B\u043E\u043B\u0434\u0430\u043D\u044B\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.",ai_sommelier:"AI sommelier",consentText:"\u0428\u0430\u0440\u0430\u043F \u043A\u04E9\u043C\u0435\u043A\u0448\u0456\u0441\u0456 \u0441\u0456\u0437\u0434\u0456\u04A3 \u0442\u0430\u043B\u0493\u0430\u043C\u044B\u04A3\u044B\u0437\u0434\u044B \u0435\u0441\u043A\u0435\u0440\u0456\u043F, \u04B1\u0441\u044B\u043D\u044B\u0441\u0442\u0430\u0440\u0434\u044B \u0436\u0430\u049B\u0441\u0430\u0440\u0442\u0443 \u04AF\u0448\u0456\u043D \u043E\u0441\u044B \u049B\u04B1\u0440\u044B\u043B\u0493\u044B\u0434\u0430 \u0430\u043D\u043E\u043D\u0438\u043C\u0434\u0456 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u0441\u0430\u049B\u0442\u0430\u0439\u0434\u044B. \u041A\u0435\u043B\u0456\u0441\u0456\u043C\u0441\u0456\u0437 \u0434\u0435 \u043F\u0430\u0439\u0434\u0430\u043B\u0430\u043D\u0430 \u0430\u043B\u0430\u0441\u044B\u0437.",consentAccept:"\u049A\u0430\u0431\u044B\u043B\u0434\u0430\u0443",consentDecline:"\u0411\u0430\u0441 \u0442\u0430\u0440\u0442\u0443",consentPrivacy:"\u049A\u04B1\u043F\u0438\u044F\u043B\u044B\u043B\u044B\u049B \u0441\u0430\u044F\u0441\u0430\u0442\u044B"},tl={lang:"pt",welcomeMessage:"O que voc\xEA planeja comer? Descreva seu prato e eu recomendarei a harmoniza\xE7\xE3o perfeita.",noResultsFound:"Nenhum resultado encontrado.",somethingWentWrong:"Desculpe, algo deu errado.",chatButton1:"Encontre sua harmoniza\xE7\xE3o",chatButton2:"Harmonizar vinho agora",chatButton3:"Receber conselho de vinho",chatTitle:"Assistente de Harmoniza\xE7\xE3o de Vinhos \u{1F377}",chatSubtitle:"Descreva sua refei\xE7\xE3o e receba uma recomenda\xE7\xE3o em 30 segundos",inputPlaceholder:"ex., Salada de atum",sendButton:"Harmonizar",poweredBy:"Desenvolvido por",price:"Pre\xE7o",region:"Regi\xE3o",type:"Tipo",reason:"Sugest\xE3o",moreInfo:"Mais informa\xE7\xF5es",tryAgain:"Tentar de novo",similarWines:"Vinhos semelhantes",byTheGlass:"Por ta\xE7a",winePairingIntro:"Para este vinho, aqui est\xE3o algumas sugest\xF5es de pratos:",askForDinner:"O que voc\xEA gostaria de jantar?",clearChatButton:"Limpar chat",widgetTitle:"ENCONTRE SEU VINHO PERFEITO",widgetSubtitle:"Compartilhe o que tiver em mente \u2014 sua refei\xE7\xE3o, humor, or\xE7amento ou ocasi\xE3o \u2014 e nosso sommelier de IA recomendar\xE1 o vinho perfeito em segundos",searchPlaceholder:"Digite uma palavra-chave ou descri\xE7\xE3o","wineDetails.reason":"Motivo","wineDetails.price":"Pre\xE7o","wineDetails.region":"Regi\xE3o","wineDetails.type":"Tipo","wineDetails.moreInfo":"Mais informa\xE7\xF5es","wineDetails.code":"C\xF3digo","wineDetails.buy":"Comprar",searchButton:"Pesquisar",priceRange:"Faixa de pre\xE7o",wineColor:"Cor do vinho",intensity:"Intensidade",red:"Tinto",white:"Branco",rose:"Ros\xE9",light:"Leve",medium:"M\xE9dio",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 \u2014",headerLine2:"\u2014 e receba recomenda\xE7\xF5es do vinho perfeito em segundos",headerMeal:"refei\xE7\xE3o",headerMood:"humor",headerBudget:"or\xE7amento",headerOccasion:"ocasi\xE3o",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\xF3nimo neste dispositivo para conhecer o seu gosto e melhorar as recomenda\xE7\xF5es. Pode us\xE1-lo sem aceitar.",consentAccept:"Aceitar",consentDecline:"Recusar",consentPrivacy:"Pol\xEDtica de privacidade"},nl={fr:Vs,es:Ks,en:Js,sr:Ys,de:Zs,ukr:Qs,ru:Xs,kk:el,pt:tl};function rl(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 il={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:`
2
2
  @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700&display=swap');
3
3
  :root { --wineater-font-primary: 'Roboto', sans-serif; }
4
4
  #wr-Custom {
@@ -99,10 +99,10 @@ var wo=Object.defineProperty,Fr=e=>{throw TypeError(e)},mo=(e,t,n)=>t in e?wo(e,
99
99
  background-color: #8bae98;
100
100
  }
101
101
  }
102
- `}};function ms(e){const t={logoUrl:null,brandColor:"#7B2BEB",wineaterColor:"#7B2BEB",customCss:`
102
+ `}};function ol(e){const t={logoUrl:null,brandColor:"#7B2BEB",wineaterColor:"#7B2BEB",customCss:`
103
103
  @import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');
104
104
  :root { --wineater-font-primary: 'Bricolage Grotesque', serif; }
105
- `},n=ws[e]||{};return{...t,...n}}const bs=24*60*60*1e3;let re=He({storeConfig:null,currentLanguage:"en",isConfigLoaded:!1,uiConfig:null});const ce={getLanguageFromURL(){return new URLSearchParams(window.location.search).get("lang")},getAppLanguage(){return re?.currentLanguage??"en"},getStoreLanguage(){var e;return((e=re.storeConfig)==null?void 0:e.lang)??null},getApiKey(){var e;return((e=re.storeConfig)==null?void 0:e.open_ai_key)??null},getStoreId(){var e;return((e=re.storeConfig)==null?void 0:e.id)??null},setStoreLanguage(e){if(re.storeConfig&&re.storeConfig.available_languages.includes(e)){re.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=re.storeConfig)==null?void 0:e.available_languages)??["en"]},getCurrency(){var e;return((e=re.storeConfig)==null?void 0:e.currency)??"USD"},applyStoreConfig(e){re.storeConfig=gs(e),re.currentLanguage=re.storeConfig.lang;const t=this.getLanguageFromURL();t&&re.storeConfig.available_languages.includes(t)?this.setStoreLanguage(t):this.setStoreLanguage(re.storeConfig.lang),this.setUiConfig(ms(re.storeConfig.id)),re.isConfigLoaded=!0},async initializeStore(){const e=`${to}:store-config`,t=async()=>{const n=await An.getStoreConfig();return io(e,n),n};try{const n=ro(e,bs);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),re.isConfigLoaded=!1}},isInitialized(){return re.isConfigLoaded},getUiConfig(){return re.uiConfig},setUiConfig(e){re.uiConfig=e}},ys={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 ks(e,t,n="en"){try{return new Intl.NumberFormat(ys[n]||"en-US",{style:"currency",currency:t,currencyDisplay:"narrowSymbol"}).format(e)}catch{return e.toString()}}function ae({key:e,lang:t}){const n=vs,r=ce.getUiConfig(),i=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 xs({sourceLang:e,targetLang:t,texts:n,apiKey:r}){var i,o,a,l;if(!r||!e||!t||e===t)return n;const s="https://api.openai.com/v1/chat/completions",c={"Content-Type":"application/json",Authorization:`Bearer ${r}`},f=Object.entries(n).map(([p,g])=>({key:p,text:g})),m=`
105
+ `},n=il[e]||{};return{...t,...n}}const al=24*60*60*1e3;let te=Me({storeConfig:null,currentLanguage:"en",isConfigLoaded:!1,uiConfig:null});const se={getLanguageFromURL(){return new URLSearchParams(window.location.search).get("lang")},getAppLanguage(){return te?.currentLanguage??"en"},getStoreLanguage(){var e;return((e=te.storeConfig)==null?void 0:e.lang)??null},getApiKey(){var e;return((e=te.storeConfig)==null?void 0:e.open_ai_key)??null},getStoreId(){var e;return((e=te.storeConfig)==null?void 0:e.id)??null},setStoreLanguage(e){if(te.storeConfig&&te.storeConfig.available_languages.includes(e)){te.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=te.storeConfig)==null?void 0:e.available_languages)??["en"]},getConsentRequired(){var e;return((e=te.storeConfig)==null?void 0:e.requires_cookie_consent)===!0},getCurrency(){var e;return((e=te.storeConfig)==null?void 0:e.currency)??"USD"},applyStoreConfig(e){te.storeConfig=rl(e),te.currentLanguage=te.storeConfig.lang;const t=this.getLanguageFromURL();t&&te.storeConfig.available_languages.includes(t)?this.setStoreLanguage(t):this.setStoreLanguage(te.storeConfig.lang),this.setUiConfig(ol(te.storeConfig.id)),As(te.storeConfig.requires_cookie_consent),te.isConfigLoaded=!0},async initializeStore(){const e=`${Io}:store-config:v2`,t=async()=>{const n=await fn.getStoreConfig();return Mo(e,n),n};try{const n=Ro(e,al);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),te.isConfigLoaded=!1}},isInitialized(){return te.isConfigLoaded},getUiConfig(){return te.uiConfig},setUiConfig(e){te.uiConfig=e}},sl={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 ll(e,t,n="en"){try{return new Intl.NumberFormat(sl[n]||"en-US",{style:"currency",currency:t,currencyDisplay:"narrowSymbol"}).format(e)}catch{return e.toString()}}function ie({key:e,lang:t}){const n=nl,r=se.getUiConfig(),i=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 cl({sourceLang:e,targetLang:t,texts:n,apiKey:r}){var i,o,a,c;if(!r||!e||!t||e===t)return n;const s="https://api.openai.com/v1/chat/completions",d={"Content-Type":"application/json",Authorization:`Bearer ${r}`},f=Object.entries(n).map(([u,g])=>({key:u,text:g})),m=`
106
106
  You are a professional translator.
107
107
 
108
108
  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,18 +127,18 @@ Output:
127
127
 
128
128
  Now translate the following input:
129
129
  ${JSON.stringify(f,null,2)}
130
- `,h=JSON.stringify({model:"gpt-3.5-turbo",messages:[{role:"system",content:"You are a professional translator."},{role:"user",content:m}],temperature:.2,max_tokens:1e3});try{const p=await(await fetch(s,{method:"POST",headers:c,body:h})).json(),g=(l=(a=(o=(i=p?.choices)==null?void 0:i[0])==null?void 0:o.message)==null?void 0:a.content)==null?void 0:l.trim();if(!g)throw new Error("No response from OpenAI");const b=JSON.parse(g),y={};return b.forEach(_=>{_.key&&_.text!==void 0&&(y[_.key]=_.text)}),{...n,...y}}catch(p){return console.error("Error translating texts:",p),n}}ta();var _s=Xn('<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 oo(e,t){let n=Ee(t,"className",8,""),r=Ee(t,"size",8,20);var i=_s();N(()=>{_t(i,0,sn(n())),ue(i,"width",r()),ue(i,"height",r())}),C(e,i)}var Ss=Xn('<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 ao(e,t){let n=Ee(t,"className",8,""),r=Ee(t,"size",8,20);var i=Ss();N(()=>{_t(i,0,sn(n())),ue(i,"width",r()),ue(i,"height",r())}),C(e,i)}var Cs=Xn('<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 jr(e,t){let n=Ee(t,"className",8,""),r=Ee(t,"size",8,20);var i=Cs();N(()=>{_t(i,0,sn(n())),ue(i,"width",r()),ue(i,"height",r())}),C(e,i)}var Ps=Xn('<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 so(e,t){let n=Ee(t,"className",8,""),r=Ee(t,"size",8,20);var i=Ps();N(()=>{_t(i,0,sn(n())),ue(i,"width",r()),ue(i,"height",r())}),C(e,i)}var Ws=z('<span><!></span><span class="wr-Header-label svelte-oiwvqb"> </span>',1),Ts=z('<!><span class="wr-Header-label svelte-oiwvqb"> </span>',1),Es=z('<!><span class="wr-Header-label svelte-oiwvqb"> </span>',1),Ds=z('<h1 class="wr-Header-title svelte-oiwvqb"></h1>'),As=z('<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>'),Is=z('<div class="wr-Header"><!></div>');const Rs={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;
130
+ `,p=JSON.stringify({model:"gpt-3.5-turbo",messages:[{role:"system",content:"You are a professional translator."},{role:"user",content:m}],temperature:.2,max_tokens:1e3});try{const u=await(await fetch(s,{method:"POST",headers:d,body:p})).json(),g=(c=(a=(o=(i=u?.choices)==null?void 0:i[0])==null?void 0:o.message)==null?void 0:a.content)==null?void 0:c.trim();if(!g)throw new Error("No response from OpenAI");const b=JSON.parse(g),y={};return b.forEach(S=>{S.key&&S.text!==void 0&&(y[S.key]=S.text)}),{...n,...y}}catch(u){return console.error("Error translating texts:",u),n}}Ea();var ul=ar('<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 zo(e,t){let n=Te(t,"className",8,""),r=Te(t,"size",8,20);var i=ul();B(()=>{Pt(i,0,dn(n())),ae(i,"width",r()),ae(i,"height",r())}),_(e,i)}var dl=ar('<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 Bo(e,t){let n=Te(t,"className",8,""),r=Te(t,"size",8,20);var i=dl();B(()=>{Pt(i,0,dn(n())),ae(i,"width",r()),ae(i,"height",r())}),_(e,i)}var pl=ar('<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=Te(t,"className",8,""),r=Te(t,"size",8,20);var i=pl();B(()=>{Pt(i,0,dn(n())),ae(i,"width",r()),ae(i,"height",r())}),_(e,i)}var hl=ar('<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 No(e,t){let n=Te(t,"className",8,""),r=Te(t,"size",8,20);var i=hl();B(()=>{Pt(i,0,dn(n())),ae(i,"width",r()),ae(i,"height",r())}),_(e,i)}var fl=N('<span><!></span><span class="wr-Header-label svelte-oiwvqb"> </span>',1),vl=N('<!><span class="wr-Header-label svelte-oiwvqb"> </span>',1),gl=N('<!><span class="wr-Header-label svelte-oiwvqb"> </span>',1),wl=N('<h1 class="wr-Header-title svelte-oiwvqb"></h1>'),ml=N('<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>'),bl=N('<div class="wr-Header"><!></div>');const yl={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;
131
131
 
132
132
  /* 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;}
133
133
 
134
134
  @media screen and (max-width: 768px) {.wr-Header-title.svelte-oiwvqb {display:none;}
135
- }`};function Ms(e,t){ft(t,!0),xt(e,Rs);let n=X(()=>ce.getAppLanguage()),r=X(()=>ce.getUiConfig()),i=X(()=>{var h,p;return((h=window?.wineaterData)==null?void 0:h.TITLE_TEXT)||((p=u(r))==null?void 0:p.titleText)||null}),o=K(He(jr));function a(h){return h.split(/(meal|mood|occasion)/gi).map(p=>({keyword:/^(meal|mood|occasion)$/i.test(p)?p.toLowerCase():null,text:p}))}let l=X(()=>u(i)?a(u(i)):null);var s=Is(),c=E(s);{var f=h=>{var p=Ds();zt(p,21,()=>u(l),Xt,(g,b)=>{var y=Ge(),_=ve(y);{var D=v=>{var k=Ws(),W=ve(k),T=E(W);Ui(T,()=>u(o),($,F)=>{F($,{className:"wr-Header-icon",size:"28"})});var P=B(W),R=E(P);N(()=>O(R,u(b).text)),ut("mouseenter",W,()=>w(o,so,!0)),ut("mouseleave",W,()=>w(o,jr,!0)),C(v,k)},L=v=>{var k=Ge(),W=ve(k);{var T=R=>{var $=Ts(),F=ve($);ao(F,{className:"wr-Header-icon",size:"28"});var H=B(F),Z=E(H);N(()=>O(Z,u(b).text)),C(R,$)},P=R=>{var $=Ge(),F=ve($);{var H=se=>{var te=Es(),Ie=ve(te);oo(Ie,{className:"wr-Header-icon",size:"28"});var qt=B(Ie),ln=E(qt);N(()=>O(ln,u(b).text)),C(se,te)},Z=se=>{var te=rn();N(()=>O(te,u(b).text)),C(se,te)};U(F,se=>{u(b).keyword==="occasion"?se(H):se(Z,!1)},!0)}C(R,$)};U(W,R=>{u(b).keyword==="mood"?R(T):R(P,!1)},!0)}C(v,k)};U(_,v=>{u(b).keyword==="meal"?v(D):v(L,!1)})}C(g,y)}),C(h,p)},m=h=>{var p=As(),g=E(p),b=B(g),y=E(b);Ui(y,()=>u(o),(F,H)=>{H(F,{className:"wr-Header-icon",size:"28"})});var _=B(b,2),D=E(_),L=B(_,2);ao(L,{className:"wr-Header-icon",size:"28"});var v=B(L,2),k=E(v),W=B(v,3),T=B(W);oo(T,{className:"wr-Header-icon",size:"28"});var P=B(T,2),R=E(P),$=B(P);N((F,H,Z,se,te,Ie)=>{O(g,`${F??""} `),O(D,H),O(k,Z),O(W,` ${se??""} `),O(R,te),O($,` ${Ie??""}`)},[()=>ae({key:"headerLine1",lang:u(n)}),()=>ae({key:"headerMeal",lang:u(n)}),()=>ae({key:"headerMood",lang:u(n)}),()=>ae({key:"headerOr",lang:u(n)}),()=>ae({key:"headerOccasion",lang:u(n)}),()=>ae({key:"headerLine2",lang:u(n)})]),ut("mouseenter",b,()=>w(o,so,!0)),ut("mouseleave",b,()=>w(o,jr,!0)),C(h,p)};U(c,h=>{u(l)?h(f):h(m,!1)})}C(e,s),vt()}var Bs=z('<option class="wr-Footer-lang"> </option>'),zs=z('<select class="wr-Footer-dropdown svelte-1sr6y3t"></select>'),Ns=z('<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 Ls={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;}
135
+ }`};function kl(e,t){it(t,!0),ht(e,yl);let n=ee(()=>se.getAppLanguage()),r=ee(()=>se.getUiConfig()),i=ee(()=>{var p,u;return((p=window?.wineaterData)==null?void 0:p.TITLE_TEXT)||((u=l(r))==null?void 0:u.titleText)||null}),o=V(Me(ti));function a(p){return p.split(/(meal|mood|occasion)/gi).map(u=>({keyword:/^(meal|mood|occasion)$/i.test(u)?u.toLowerCase():null,text:u}))}let c=ee(()=>l(i)?a(l(i)):null);var s=bl(),d=W(s);{var f=p=>{var u=wl();qt(u,21,()=>l(c),on,(g,b)=>{var y=Ge(),S=ve(y);{var E=v=>{var x=fl(),D=ve(x),T=W(D);lo(T,()=>l(o),(U,F)=>{F(U,{className:"wr-Header-icon",size:"28"})});var P=R(D),M=W(P);B(()=>L(M,l(b).text)),dt("mouseenter",D,()=>w(o,No,!0)),dt("mouseleave",D,()=>w(o,ti,!0)),_(v,x)},O=v=>{var x=Ge(),D=ve(x);{var T=M=>{var U=vl(),F=ve(U);Bo(F,{className:"wr-Header-icon",size:"28"});var j=R(F),ce=W(j);B(()=>L(ce,l(b).text)),_(M,U)},P=M=>{var U=Ge(),F=ve(U);{var j=le=>{var Q=gl(),je=ve(Q);zo(je,{className:"wr-Header-icon",size:"28"});var Ie=R(je),Wt=W(Ie);B(()=>L(Wt,l(b).text)),_(le,Q)},ce=le=>{var Q=Ct();B(()=>L(Q,l(b).text)),_(le,Q)};$(F,le=>{l(b).keyword==="occasion"?le(j):le(ce,!1)},!0)}_(M,U)};$(D,M=>{l(b).keyword==="mood"?M(T):M(P,!1)},!0)}_(v,x)};$(S,v=>{l(b).keyword==="meal"?v(E):v(O,!1)})}_(g,y)}),_(p,u)},m=p=>{var u=ml(),g=W(u),b=R(g),y=W(b);lo(y,()=>l(o),(F,j)=>{j(F,{className:"wr-Header-icon",size:"28"})});var S=R(b,2),E=W(S),O=R(S,2);Bo(O,{className:"wr-Header-icon",size:"28"});var v=R(O,2),x=W(v),D=R(v,3),T=R(D);zo(T,{className:"wr-Header-icon",size:"28"});var P=R(T,2),M=W(P),U=R(P);B((F,j,ce,le,Q,je)=>{L(g,`${F??""} `),L(E,j),L(x,ce),L(D,` ${le??""} `),L(M,Q),L(U,` ${je??""}`)},[()=>ie({key:"headerLine1",lang:l(n)}),()=>ie({key:"headerMeal",lang:l(n)}),()=>ie({key:"headerMood",lang:l(n)}),()=>ie({key:"headerOr",lang:l(n)}),()=>ie({key:"headerOccasion",lang:l(n)}),()=>ie({key:"headerLine2",lang:l(n)})]),dt("mouseenter",b,()=>w(o,No,!0)),dt("mouseleave",b,()=>w(o,ti,!0)),_(p,u)};$(d,p=>{l(c)?p(f):p(m,!1)})}_(e,s),ot()}var xl=N('<option class="wr-Footer-lang"> </option>'),_l=N('<select class="wr-Footer-dropdown svelte-1sr6y3t"></select>'),Sl=N('<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;}
136
136
 
137
137
  @media screen and (max-width: 768px) {.wr-Footer-text--sommelier.svelte-1sr6y3t {display:none;}
138
- }`};function js(e,t){ft(t,!0),xt(e,Ls);let n=Ee(t,"countryCode",3,null),r=X(()=>ce.getAppLanguage()),i=X(()=>ce.getSupportedLanguages()),o=X(()=>ce.getStoreId());function a(_){const D=_.target.value;De(Ae.LANGUAGE_CHANGED,u(o),{from_language:u(r),to_language:D}),ce.setStoreLanguage(D)}var l=Ns(),s=E(l),c=E(s),f=E(c),m=E(f),h=B(f,2),p=B(h,2),g=E(p),b=B(s,2);{var y=_=>{var D=zs();D.__change=a,zt(D,21,()=>u(i),Xt,(v,k)=>{var W=Bs(),T=E(W),P={};N(R=>{Za(W,u(k)===u(r)),O(T,R),P!==(P=u(k))&&(W.value=(W.__value=u(k))??"")},[()=>u(k).toUpperCase()]),C(v,W)});var L;Ga(D),N(()=>{L!==(L=u(r))&&(D.value=(D.__value=u(r))??"",Gi(D,u(r)))}),C(_,D)};U(b,_=>{u(i).length>1&&_(y)})}N((_,D)=>{O(m,_),ue(h,"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"),O(g,D)},[()=>ae({key:"poweredBy",lang:u(r)}),()=>ae({key:"ai_sommelier",lang:u(r)})]),C(e,l),vt()}Jn(["change"]);var Os=z('<a rel="noopener noreferrer"><!></a>'),qs=z("<button><!></button>");const $s={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,
138
+ }`};function Pl(e,t){it(t,!0),ht(e,Cl);let n=Te(t,"countryCode",3,null),r=ee(()=>se.getAppLanguage()),i=ee(()=>se.getSupportedLanguages()),o=ee(()=>se.getStoreId());function a(S){const E=S.target.value;De(Ee.LANGUAGE_CHANGED,l(o),{from_language:l(r),to_language:E}),se.setStoreLanguage(E)}var c=Sl(),s=W(c),d=W(s),f=W(d),m=W(f),p=R(f,2),u=R(p,2),g=W(u),b=R(s,2);{var y=S=>{var E=_l();E.__change=a,qt(E,21,()=>l(i),on,(v,x)=>{var D=xl(),T=W(D),P={};B(M=>{Ss(D,l(x)===l(r)),L(T,M),P!==(P=l(x))&&(D.value=(D.__value=l(x))??"")},[()=>l(x).toUpperCase()]),_(v,D)});var O;ks(E),B(()=>{O!==(O=l(r))&&(E.value=(E.__value=l(r))??"",uo(E,l(r)))}),_(S,E)};$(b,S=>{l(i).length>1&&S(y)})}B((S,E)=>{L(m,S),ae(p,"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"),L(g,E)},[()=>ie({key:"poweredBy",lang:l(r)}),()=>ie({key:"ai_sommelier",lang:l(r)})]),_(e,c),ot()}or(["change"]);var Wl=N('<a rel="noopener noreferrer"><!></a>'),Tl=N("<button><!></button>");const Dl={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,
139
139
  color 0.2s,
140
- 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 In(e,t){ft(t,!0),xt(e,$s);let n=Ee(t,"type",3,"button"),r=Ee(t,"variant",3,"primary"),i=Ee(t,"target",3,"_self"),o=ce.getUiConfig(),a=`wr-Action ${r()} ${t.className||""} ${o.buttonUppercase?"wr-Action--uppercase":""}`.trim();var l=Ge(),s=ve(l);{var c=m=>{var h=Os();h.__click=function(...g){var b;(b=t.handleClick)==null||b.apply(this,g)};var p=E(h);Fi(p,t,"default",{}),N(()=>{_t(h,1,sn(a),"svelte-8cxv3l"),ue(h,"href",t.href),ue(h,"id",t.id),ue(h,"target",i())}),C(m,h)},f=m=>{var h=qs();h.__click=function(...g){var b;(b=t.handleClick)==null||b.apply(this,g)};var p=E(h);Fi(p,t,"default",{}),N(()=>{_t(h,1,sn(a),"svelte-8cxv3l"),ue(h,"type",n()),ue(h,"id",t.id)}),C(m,h)};U(s,m=>{t.href?m(c):m(f,!1)})}C(e,l),vt()}Jn(["click"]);var Fs=z('<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 Us={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,
141
- 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 Hs(e,t){ft(t,!0),xt(e,Us);let n=Ee(t,"searchQuery",15),r,i=K(!1),o=K(0),a=K(0),l=K(!0),s=K(!1),c=X(()=>ce.getAppLanguage()),f=0;function m(){return r}function h(){const v=++f,k=ae({key:"placeholderSuggestions",lang:u(c)});if(!r||!k.length)return;w(s,!0);const W=()=>{if(v!==f||!r||!u(s)||u(i)||n().length)return;const T=k[u(o)];if(u(l)){if(r.placeholder=T.substring(0,hi(a)),u(a)>T.length){w(l,!1),setTimeout(W,1600);return}setTimeout(W,90)}else{if(r.placeholder=T.substring(0,hi(a,-1)),u(a)<0){w(l,!0),w(o,(u(o)+1)%k.length),setTimeout(W,450);return}setTimeout(W,45)}};W()}function p(){w(s,!1)}function g(){w(i,!0),p(),r&&(r.placeholder="")}function b(){w(i,!1),w(a,0),w(l,!0),w(s,!1)}_n(()=>{if(!r||n().length>0)return;f++,w(s,!1),w(o,0),w(a,0),w(l,!0);const v=ae({key:"placeholderSuggestions",lang:u(c)});v&&v.length?r.placeholder=v[0]:r.placeholder=ae({key:"searchPlaceholder",lang:u(c)})}),_n(()=>{r&&t.initialized&&!u(i)&&!n().length&&!u(s)&&h(),n().length>0&&u(s)&&(w(s,!1),f++)}),Ir(()=>{});var y={getSearchElement:m},_=Fs(),D=B(E(_),2);Xa(D,v=>r=v,()=>r);var L=B(D,2);return In(L,{className:"wr-Search-button",type:"submit",variant:"primary",children:(v,k)=>{var W=rn();N(T=>O(W,T),[()=>ae({key:"searchButton",lang:u(c)})]),C(v,W)},$$slots:{default:!0}}),ut("submit",_,function(...v){var k;(k=t.onSubmit)==null||k.apply(this,v)}),ut("focus",D,g),ut("blur",D,b),Ja(D,n),C(e,_),vt(y)}var Gs=z('<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>'),Vs=z('<div class="wr-Skeleton svelte-f6xbvk" aria-hidden="true"></div>');const Ks={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%;
140
+ 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 Ht(e,t){it(t,!0),ht(e,Dl);let n=Te(t,"type",3,"button"),r=Te(t,"variant",3,"primary"),i=Te(t,"target",3,"_self"),o=se.getUiConfig(),a=`wr-Action ${r()} ${t.className||""} ${o.buttonUppercase?"wr-Action--uppercase":""}`.trim();var c=Ge(),s=ve(c);{var d=m=>{var p=Wl();p.__click=function(...g){var b;(b=t.handleClick)==null||b.apply(this,g)};var u=W(p);so(u,t,"default",{}),B(()=>{Pt(p,1,dn(a),"svelte-8cxv3l"),ae(p,"href",t.href),ae(p,"id",t.id),ae(p,"target",i())}),_(m,p)},f=m=>{var p=Tl();p.__click=function(...g){var b;(b=t.handleClick)==null||b.apply(this,g)};var u=W(p);so(u,t,"default",{}),B(()=>{Pt(p,1,dn(a),"svelte-8cxv3l"),ae(p,"type",n()),ae(p,"id",t.id)}),_(m,p)};$(s,m=>{t.href?m(d):m(f,!1)})}_(e,c),ot()}or(["click"]);var El=N('<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 Il={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,
141
+ 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 Al(e,t){it(t,!0),ht(e,Il);let n=Te(t,"searchQuery",15),r,i=V(!1),o=V(0),a=V(0),c=V(!0),s=V(!1),d=ee(()=>se.getAppLanguage()),f=0;function m(){return r}function p(){const v=++f,x=ie({key:"placeholderSuggestions",lang:l(d)});if(!r||!x.length)return;w(s,!0);const D=()=>{if(v!==f||!r||!l(s)||l(i)||n().length)return;const T=x[l(o)];if(l(c)){if(r.placeholder=T.substring(0,Ii(a)),l(a)>T.length){w(c,!1),setTimeout(D,1600);return}setTimeout(D,90)}else{if(r.placeholder=T.substring(0,Ii(a,-1)),l(a)<0){w(c,!0),w(o,(l(o)+1)%x.length),setTimeout(D,450);return}setTimeout(D,45)}};D()}function u(){w(s,!1)}function g(){w(i,!0),u(),r&&(r.placeholder="")}function b(){w(i,!1),w(a,0),w(c,!0),w(s,!1)}Dn(()=>{if(!r||n().length>0)return;f++,w(s,!1),w(o,0),w(a,0),w(c,!0);const v=ie({key:"placeholderSuggestions",lang:l(d)});v&&v.length?r.placeholder=v[0]:r.placeholder=ie({key:"searchPlaceholder",lang:l(d)})}),Dn(()=>{r&&t.initialized&&!l(i)&&!n().length&&!l(s)&&p(),n().length>0&&l(s)&&(w(s,!1),f++)}),Hr(()=>{});var y={getSearchElement:m},S=El(),E=R(W(S),2);Ts(E,v=>r=v,()=>r);var O=R(E,2);return Ht(O,{className:"wr-Search-button",type:"submit",variant:"primary",children:(v,x)=>{var D=Ct();B(T=>L(D,T),[()=>ie({key:"searchButton",lang:l(d)})]),_(v,D)},$$slots:{default:!0}}),dt("submit",S,function(...v){var x;(x=t.onSubmit)==null||x.apply(this,v)}),dt("focus",E,g),dt("blur",E,b),Ws(E,n),_(e,S),ot(y)}var Rl=N('<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>'),Ml=N('<div class="wr-Skeleton svelte-f6xbvk" aria-hidden="true"></div>');const zl={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%;
142
142
  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;}
143
143
 
144
144
  @keyframes svelte-f6xbvk-wr-shimmer {
@@ -155,7 +155,7 @@ ${JSON.stringify(f,null,2)}
155
155
  }
156
156
 
157
157
  @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;}
158
- }`};function lo(e){xt(e,Ks);var t=Vs();zt(t,4,()=>[0,1,2,3],n=>n,(n,r)=>{var i=Gs();C(n,i)}),C(e,t)}var Zs=z('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'),Qs=z('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'),Ys=z('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'),Js=z('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'),Xs=z('<div class="wr-WinePopup-tags svelte-17gehox"></div>'),el=z('<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">&times;</button></div> <!> <!> <!></div></div></div>'),tl=z('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'),nl=z('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'),rl=z('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'),il=z('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'),ol=z('<div class="wr-WinePopup-tags svelte-17gehox"></div>'),al=z('<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">&times;</button></div> <!> <!> <!></div>');const sl={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 uo(e,t){ft(t,!0),xt(e,sl);const n=!!t.isMobile;var r=Ge(),i=ve(r);{var o=l=>{var s=el(),c=E(s);c.__click=function(...T){var P;(P=t.onClose)==null||P.apply(this,T)};var f=B(c,2),m=E(f),h=E(m),p=E(h),g=E(p),b=B(p,2);b.__click=function(...T){var P;(P=t.onClose)==null||P.apply(this,T)};var y=B(h,2);{var _=T=>{var P=Zs(),R=E(P);N(()=>O(R,t.shortDescription)),C(T,P)};U(y,T=>{t.shortDescription&&T(_)})}var D=B(y,2);{var L=T=>{var P=Qs(),R=E(P);N(()=>O(R,t.reason)),C(T,P)},v=T=>{var P=Ge(),R=ve(P);{var $=F=>{var H=Ys(),Z=E(H);N(()=>O(Z,t.pairing)),C(F,H)};U(R,F=>{t.pairing&&F($)},!0)}C(T,P)};U(D,T=>{t.reason?T(L):T(v,!1)})}var k=B(D,2);{var W=T=>{var P=Xs();zt(P,21,()=>t.tags,Xt,(R,$)=>{var F=Js(),H=E(F);N(()=>O(H,u($))),C(R,F)}),C(T,P)};U(k,T=>{t.tags&&t.tags.length&&T(W)})}N(()=>O(g,t.title)),C(l,s)},a=l=>{var s=al(),c=E(s),f=E(c),m=E(f),h=B(f,2);h.__click=function(...v){var k;(k=t.onClose)==null||k.apply(this,v)};var p=B(c,2);{var g=v=>{var k=tl(),W=E(k);N(()=>O(W,t.shortDescription)),C(v,k)};U(p,v=>{t.shortDescription&&v(g)})}var b=B(p,2);{var y=v=>{var k=nl(),W=E(k);N(()=>O(W,t.reason)),C(v,k)},_=v=>{var k=Ge(),W=ve(k);{var T=P=>{var R=rl(),$=E(R);N(()=>O($,t.pairing)),C(P,R)};U(W,P=>{t.pairing&&P(T)},!0)}C(v,k)};U(b,v=>{t.reason?v(y):v(_,!1)})}var D=B(b,2);{var L=v=>{var k=ol();zt(k,21,()=>t.tags,Xt,(W,T)=>{var P=il(),R=E(P);N(()=>O(R,u(T))),C(W,P)}),C(v,k)};U(D,v=>{t.tags&&t.tags.length&&v(L)})}N(()=>O(m,t.title)),C(l,s)};U(i,l=>{n?l(o):l(a,!1)})}C(e,r),vt()}Jn(["click"]);var ll=z('<img class="wr-WineTile-image svelte-yk3emv" decoding="async"/>'),ul=z('<div class="wr-WineTile-price svelte-yk3emv"> </div>'),cl=z('<div class="wr-WineTile-glass svelte-yk3emv"> </div>'),dl=z('<div class="wr-WineTile-params svelte-yk3emv"> </div>'),pl=z('<div class="wr-WineTilePopup-reason svelte-yk3emv"> </div>'),hl=z('<span class="wr-WineTilePopup-tag svelte-yk3emv"> </span>'),fl=z('<div class="wr-WineTilePopup-tags svelte-yk3emv"></div>'),vl=z("<div><!> <!></div>"),gl=z('<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 wl={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),
158
+ }`};function Lo(e){ht(e,zl);var t=Ml();qt(t,4,()=>[0,1,2,3],n=>n,(n,r)=>{var i=Rl();_(n,i)}),_(e,t)}var Bl=N('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'),Nl=N('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'),Ll=N('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'),jl=N('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'),ql=N('<div class="wr-WinePopup-tags svelte-17gehox"></div>'),Ol=N('<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">&times;</button></div> <!> <!> <!></div></div></div>'),Ul=N('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'),$l=N('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'),Fl=N('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'),Hl=N('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'),Gl=N('<div class="wr-WinePopup-tags svelte-17gehox"></div>'),Vl=N('<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">&times;</button></div> <!> <!> <!></div>');const Kl={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 jo(e,t){it(t,!0),ht(e,Kl);const n=!!t.isMobile;var r=Ge(),i=ve(r);{var o=c=>{var s=Ol(),d=W(s);d.__click=function(...T){var P;(P=t.onClose)==null||P.apply(this,T)};var f=R(d,2),m=W(f),p=W(m),u=W(p),g=W(u),b=R(u,2);b.__click=function(...T){var P;(P=t.onClose)==null||P.apply(this,T)};var y=R(p,2);{var S=T=>{var P=Bl(),M=W(P);B(()=>L(M,t.shortDescription)),_(T,P)};$(y,T=>{t.shortDescription&&T(S)})}var E=R(y,2);{var O=T=>{var P=Nl(),M=W(P);B(()=>L(M,t.reason)),_(T,P)},v=T=>{var P=Ge(),M=ve(P);{var U=F=>{var j=Ll(),ce=W(j);B(()=>L(ce,t.pairing)),_(F,j)};$(M,F=>{t.pairing&&F(U)},!0)}_(T,P)};$(E,T=>{t.reason?T(O):T(v,!1)})}var x=R(E,2);{var D=T=>{var P=ql();qt(P,21,()=>t.tags,on,(M,U)=>{var F=jl(),j=W(F);B(()=>L(j,l(U))),_(M,F)}),_(T,P)};$(x,T=>{t.tags&&t.tags.length&&T(D)})}B(()=>L(g,t.title)),_(c,s)},a=c=>{var s=Vl(),d=W(s),f=W(d),m=W(f),p=R(f,2);p.__click=function(...v){var x;(x=t.onClose)==null||x.apply(this,v)};var u=R(d,2);{var g=v=>{var x=Ul(),D=W(x);B(()=>L(D,t.shortDescription)),_(v,x)};$(u,v=>{t.shortDescription&&v(g)})}var b=R(u,2);{var y=v=>{var x=$l(),D=W(x);B(()=>L(D,t.reason)),_(v,x)},S=v=>{var x=Ge(),D=ve(x);{var T=P=>{var M=Fl(),U=W(M);B(()=>L(U,t.pairing)),_(P,M)};$(D,P=>{t.pairing&&P(T)},!0)}_(v,x)};$(b,v=>{t.reason?v(y):v(S,!1)})}var E=R(b,2);{var O=v=>{var x=Gl();qt(x,21,()=>t.tags,on,(D,T)=>{var P=Hl(),M=W(P);B(()=>L(M,l(T))),_(D,P)}),_(v,x)};$(E,v=>{t.tags&&t.tags.length&&v(O)})}B(()=>L(m,t.title)),_(c,s)};$(i,c=>{n?c(o):c(a,!1)})}_(e,r),ot()}or(["click"]);var Jl=N('<img class="wr-WineTile-image svelte-yk3emv" decoding="async"/>'),Yl=N('<div class="wr-WineTile-price svelte-yk3emv"> </div>'),Zl=N('<div class="wr-WineTile-glass svelte-yk3emv"> </div>'),Ql=N('<div class="wr-WineTile-params svelte-yk3emv"> </div>'),Xl=N('<div class="wr-WineTilePopup-reason svelte-yk3emv"> </div>'),ec=N('<span class="wr-WineTilePopup-tag svelte-yk3emv"> </span>'),tc=N('<div class="wr-WineTilePopup-tags svelte-yk3emv"></div>'),nc=N("<div><!> <!></div>"),rc=N('<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 ic={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),
159
159
  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;}
160
160
 
161
161
  /* :global \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u0435\u043D \u2014 \u043A\u043B\u0430\u0441\u0441 \u0443\u0435\u0437\u0436\u0430\u0435\u0442 \u0432\u043D\u0443\u0442\u0440\u044C <Action>, \u0430 \u0441\u043A\u043E\u0443\u043F Svelte
@@ -179,7 +179,9 @@ ${JSON.stringify(f,null,2)}
179
179
  }
180
180
 
181
181
  @media screen and (max-width: 768px) {.wr-WineTile.svelte-yk3emv {flex:0 0 auto;scroll-snap-align:center;width:240px;text-align:center;}
182
- }`};function ml(e,t){ft(t,!0),xt(e,wl);const n=4;let r=X(()=>ce.getAppLanguage());const i=(S,M)=>S[M]||S[M.charAt(0).toUpperCase()+M.slice(1)],o=(S,M)=>M.map(Q=>i(S,Q)).filter(Boolean).join(" \u2022 ");function a(S){var M;return ks(S,((M=ce.getCurrency)==null?void 0:M.call(ce))||"USD",u(r))}function l(S){return t.selectedWineId===S}function s(S){return!!(S.reason||S.shortDescription||S.tags)}function c(S,M){let Q=S?.tags||M.tags;return Q?(Array.isArray(Q)&&(Q=Q.join(",")),typeof Q!="string"?[]:Q.split(",").map(J=>J.trim()).filter(Boolean)):[]}let f=K(!1);Ir(()=>{const S=()=>{w(f,window.innerWidth<=768)};return S(),window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}});var m=gl(),h=ve(m);h.__click=S=>t.onTileClick(S,t.wine);var p=E(h),g=E(p);{var b=S=>{var M=ll();N(()=>{ue(M,"src",t.wine.image),ue(M,"alt",t.wine.title),ue(M,"loading",t.index<n?"eager":"lazy"),ue(M,"fetchpriority",t.index<n?"high":"auto")}),C(S,M)};U(g,S=>{t.wine.image&&S(b)})}var y=B(g,2);{var _=S=>{var M=ul(),Q=E(M);N(J=>O(Q,J),[()=>a(t.wine.total)]),C(S,M)};U(y,S=>{t.wine.total&&S(_)})}var D=B(y,2);{var L=S=>{var M=cl(),Q=E(M);N((J,we)=>O(Q,`${J??""}${we??""}`),[()=>ae({key:"byTheGlass",lang:u(r)}),()=>t.wine.glassPrice?` \u2014 ${a(t.wine.glassPrice)}`:""]),C(S,M)};U(D,S=>{t.wine.byTheGlass&&S(L)})}var v=B(D,2),k=E(v),W=B(p,2);{var T=S=>{var M=dl(),Q=E(M);N(J=>O(Q,J),[()=>o(t.wine,["type","country","region","grape"])]),C(S,M)};U(W,S=>{o(t.wine,["type","country","region","grape"])&&S(T)})}var P=B(W,2),R=E(P),$=E(R);{var F=S=>{In(S,{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:(M,Q)=>{var J=rn();N(we=>O(J,we),[()=>ae({key:"wineDetails.buy",lang:u(r)})]),C(M,J)},$$slots:{default:!0}})},H=S=>{In(S,{handleClick:()=>t.onBuyClick(t.wine,t.index),variant:"outlined",className:"wr-WineTile-action wr-WineTile-action--button js-WineTileAction",children:(M,Q)=>{var J=rn();N(we=>O(J,we),[()=>ae({key:"moreInfo",lang:u(r)})]),C(M,J)},$$slots:{default:!0}})};U($,S=>{t.wine.url?S(F):S(H,!1)})}var Z=B($,2);{var se=S=>{In(S,{handleClick:()=>t.onSimilarClick(t.wine),variant:"text",className:"wr-WineTile-action wr-WineTile-action--similar js-WineTileAction",children:(M,Q)=>{var J=rn();N(we=>O(J,we),[()=>ae({key:"similarWines",lang:u(r)})]),C(M,J)},$$slots:{default:!0}})};U(Z,S=>{t.onSimilarClick&&S(se)})}var te=B(P,2);{var Ie=S=>{{let M=X(()=>{var ne;return((ne=t.translatedPopup)==null?void 0:ne.shortDescription)||t.wine.shortDescription}),Q=X(()=>{var ne;return((ne=t.translatedPopup)==null?void 0:ne.reason)||t.wine.reason}),J=X(()=>{var ne;return((ne=t.translatedPopup)==null?void 0:ne.pairingRecommendation)||t.wine.pairingRecommendation}),we=X(()=>c(t.translatedPopup,t.wine));uo(S,{get title(){return t.wine.title},get shortDescription(){return u(M)},get reason(){return u(Q)},get pairing(){return u(J)},get tags(){return u(we)},get onClose(){return t.onPopupClose},isMobile:!1})}};U(te,S=>{l(t.wine.id)&&!u(f)&&S(Ie)})}var qt=B(te,2);{var ln=S=>{var M=vl(),Q=E(M);{var J=Je=>{var _e=pl(),je=E(_e);N(()=>{var $t,dt;return O(je,(($t=t.translatedPopup)==null?void 0:$t.reason)||((dt=t.translatedPopup)==null?void 0:dt.shortDescription)||t.wine.reason||t.wine.shortDescription)}),C(Je,_e)};U(Q,Je=>{var _e,je;((_e=t.translatedPopup)!=null&&_e.reason||(je=t.translatedPopup)!=null&&je.shortDescription||t.wine.reason||t.wine.shortDescription)&&Je(J)})}var we=B(Q,2);{var ne=Je=>{var _e=fl();zt(_e,21,()=>c(t.translatedPopup,t.wine),Xt,(je,$t)=>{var dt=hl(),Rn=E(dt);N(()=>O(Rn,u($t))),C(je,dt)}),C(Je,_e)};U(we,Je=>{var _e,je;((_e=t.translatedPopup)!=null&&_e.tags||(je=t.translatedPopup)!=null&&je.Tags||t.wine.tags)&&Je(ne)})}N(()=>_t(M,1,`wr-WineTilePopup ${t.hoveredWineId===t.wine.id?"slide-in visible":""}`,"svelte-yk3emv")),C(S,M)};U(qt,S=>{s(t.wine)&&S(ln)})}var rr=B(h,2);{var un=S=>{{let M=X(()=>{var ne;return((ne=t.translatedPopup)==null?void 0:ne.shortDescription)||t.wine.shortDescription}),Q=X(()=>{var ne;return((ne=t.translatedPopup)==null?void 0:ne.reason)||t.wine.reason}),J=X(()=>{var ne;return((ne=t.translatedPopup)==null?void 0:ne.pairingRecommendation)||t.wine.pairingRecommendation}),we=X(()=>c(t.translatedPopup,t.wine));uo(S,{get title(){return t.wine.title},get shortDescription(){return u(M)},get reason(){return u(Q)},get pairing(){return u(J)},get tags(){return u(we)},get onClose(){return t.onPopupClose},isMobile:!0})}};U(rr,S=>{l(t.wine.id)&&u(f)&&S(un)})}N(()=>{_t(h,1,`wr-WineTile ${t.isAnimating?"ww-slide-up":""}`,"svelte-yk3emv"),O(k,t.wine.title)}),ut("mouseenter",h,()=>t.onTileEnter(t.wine)),ut("mouseleave",h,()=>t.onTileLeave(t.wine)),C(e,m),vt()}Jn(["click"]);const bl=/@import\s+url\(\s*['"]?([^'")]+)['"]?\s*\)\s*;?/g;function Or(e,t,n=!1){const r=document.createElement("link");r.rel=e,r.href=t,n&&(r.crossOrigin="anonymous"),document.head.appendChild(r)}function yl(){document.querySelector('link[rel="preconnect"][href="https://fonts.googleapis.com"]')||(Or("preconnect","https://fonts.googleapis.com"),Or("preconnect","https://fonts.gstatic.com",!0))}function kl(e){if(!e)return"";const t="custom-ui-config-style";if(document.getElementById(t))return;const n=e.replace(bl,(i,o)=>(Or("stylesheet",o),"")),r=document.createElement("style");return r.id=t,r.innerHTML=n,document.head.appendChild(r),t}var xl=z('<div class="wr-App-picture svelte-1n46o8q"><img class="wr-App-logo svelte-1n46o8q" alt=""/></div>'),_l=z('<div class="wr-App-error svelte-1n46o8q"><p> </p></div>'),Sl=z('<div class="wr-App-showMore svelte-1n46o8q"><!></div>'),Cl=z('<div class="wr-App-placeholder svelte-1n46o8q"></div> <!>',1),Pl=z('<div id="wr-Custom" class="wr-App svelte-1n46o8q"><!> <!> <!> <div class="wr-App-content svelte-1n46o8q"><!></div> <!></div>'),Wl=z('<div class="wr-App wr-App--loading svelte-1n46o8q" aria-busy="true"><div class="wr-App-loadingTop svelte-1n46o8q"></div> <!></div>');const Tl={hash:"svelte-1n46o8q",code:`
182
+ }`};function oc(e,t){it(t,!0),ht(e,ic);const n=4;let r=ee(()=>se.getAppLanguage());const i=(C,z)=>C[z]||C[z.charAt(0).toUpperCase()+z.slice(1)],o=(C,z)=>z.map(Z=>i(C,Z)).filter(Boolean).join(" \u2022 ");function a(C){var z;return ll(C,((z=se.getCurrency)==null?void 0:z.call(se))||"USD",l(r))}function c(C){return t.selectedWineId===C}function s(C){return!!(C.reason||C.shortDescription||C.tags)}function d(C,z){let Z=C?.tags||z.tags;return Z?(Array.isArray(Z)&&(Z=Z.join(",")),typeof Z!="string"?[]:Z.split(",").map(X=>X.trim()).filter(Boolean)):[]}let f=V(!1);Hr(()=>{const C=()=>{w(f,window.innerWidth<=768)};return C(),window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)}});var m=rc(),p=ve(m);p.__click=C=>t.onTileClick(C,t.wine);var u=W(p),g=W(u);{var b=C=>{var z=Jl();B(()=>{ae(z,"src",t.wine.image),ae(z,"alt",t.wine.title),ae(z,"loading",t.index<n?"eager":"lazy"),ae(z,"fetchpriority",t.index<n?"high":"auto")}),_(C,z)};$(g,C=>{t.wine.image&&C(b)})}var y=R(g,2);{var S=C=>{var z=Yl(),Z=W(z);B(X=>L(Z,X),[()=>a(t.wine.total)]),_(C,z)};$(y,C=>{t.wine.total&&C(S)})}var E=R(y,2);{var O=C=>{var z=Zl(),Z=W(z);B((X,we)=>L(Z,`${X??""}${we??""}`),[()=>ie({key:"byTheGlass",lang:l(r)}),()=>t.wine.glassPrice?` \u2014 ${a(t.wine.glassPrice)}`:""]),_(C,z)};$(E,C=>{t.wine.byTheGlass&&C(O)})}var v=R(E,2),x=W(v),D=R(u,2);{var T=C=>{var z=Ql(),Z=W(z);B(X=>L(Z,X),[()=>o(t.wine,["type","country","region","grape"])]),_(C,z)};$(D,C=>{o(t.wine,["type","country","region","grape"])&&C(T)})}var P=R(D,2),M=W(P),U=W(M);{var F=C=>{Ht(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,Z)=>{var X=Ct();B(we=>L(X,we),[()=>ie({key:"wineDetails.buy",lang:l(r)})]),_(z,X)},$$slots:{default:!0}})},j=C=>{Ht(C,{handleClick:()=>t.onBuyClick(t.wine,t.index),variant:"outlined",className:"wr-WineTile-action wr-WineTile-action--button js-WineTileAction",children:(z,Z)=>{var X=Ct();B(we=>L(X,we),[()=>ie({key:"moreInfo",lang:l(r)})]),_(z,X)},$$slots:{default:!0}})};$(U,C=>{t.wine.url?C(F):C(j,!1)})}var ce=R(U,2);{var le=C=>{Ht(C,{handleClick:()=>t.onSimilarClick(t.wine),variant:"text",className:"wr-WineTile-action wr-WineTile-action--similar js-WineTileAction",children:(z,Z)=>{var X=Ct();B(we=>L(X,we),[()=>ie({key:"similarWines",lang:l(r)})]),_(z,X)},$$slots:{default:!0}})};$(ce,C=>{t.onSimilarClick&&C(le)})}var Q=R(P,2);{var je=C=>{{let z=ee(()=>{var ne;return((ne=t.translatedPopup)==null?void 0:ne.shortDescription)||t.wine.shortDescription}),Z=ee(()=>{var ne;return((ne=t.translatedPopup)==null?void 0:ne.reason)||t.wine.reason}),X=ee(()=>{var ne;return((ne=t.translatedPopup)==null?void 0:ne.pairingRecommendation)||t.wine.pairingRecommendation}),we=ee(()=>d(t.translatedPopup,t.wine));jo(C,{get title(){return t.wine.title},get shortDescription(){return l(z)},get reason(){return l(Z)},get pairing(){return l(X)},get tags(){return l(we)},get onClose(){return t.onPopupClose},isMobile:!1})}};$(Q,C=>{c(t.wine.id)&&!l(f)&&C(je)})}var Ie=R(Q,2);{var Wt=C=>{var z=nc(),Z=W(z);{var X=Qe=>{var _e=Xl(),qe=W(_e);B(()=>{var Gt,Tt;return L(qe,((Gt=t.translatedPopup)==null?void 0:Gt.reason)||((Tt=t.translatedPopup)==null?void 0:Tt.shortDescription)||t.wine.reason||t.wine.shortDescription)}),_(Qe,_e)};$(Z,Qe=>{var _e,qe;((_e=t.translatedPopup)!=null&&_e.reason||(qe=t.translatedPopup)!=null&&qe.shortDescription||t.wine.reason||t.wine.shortDescription)&&Qe(X)})}var we=R(Z,2);{var ne=Qe=>{var _e=tc();qt(_e,21,()=>d(t.translatedPopup,t.wine),on,(qe,Gt)=>{var Tt=ec(),gr=W(Tt);B(()=>L(gr,l(Gt))),_(qe,Tt)}),_(Qe,_e)};$(we,Qe=>{var _e,qe;((_e=t.translatedPopup)!=null&&_e.tags||(qe=t.translatedPopup)!=null&&qe.Tags||t.wine.tags)&&Qe(ne)})}B(()=>Pt(z,1,`wr-WineTilePopup ${t.hoveredWineId===t.wine.id?"slide-in visible":""}`,"svelte-yk3emv")),_(C,z)};$(Ie,C=>{s(t.wine)&&C(Wt)})}var On=R(p,2);{var vr=C=>{{let z=ee(()=>{var ne;return((ne=t.translatedPopup)==null?void 0:ne.shortDescription)||t.wine.shortDescription}),Z=ee(()=>{var ne;return((ne=t.translatedPopup)==null?void 0:ne.reason)||t.wine.reason}),X=ee(()=>{var ne;return((ne=t.translatedPopup)==null?void 0:ne.pairingRecommendation)||t.wine.pairingRecommendation}),we=ee(()=>d(t.translatedPopup,t.wine));jo(C,{get title(){return t.wine.title},get shortDescription(){return l(z)},get reason(){return l(Z)},get pairing(){return l(X)},get tags(){return l(we)},get onClose(){return t.onPopupClose},isMobile:!0})}};$(On,C=>{c(t.wine.id)&&l(f)&&C(vr)})}B(()=>{Pt(p,1,`wr-WineTile ${t.isAnimating?"ww-slide-up":""}`,"svelte-yk3emv"),L(x,t.wine.title)}),dt("mouseenter",p,()=>t.onTileEnter(t.wine)),dt("mouseleave",p,()=>t.onTileLeave(t.wine)),_(e,m),ot()}or(["click"]);var ac=N('<a class="wr-Consent-link svelte-dqnzo8" target="_blank" rel="noopener noreferrer"> </a>'),sc=N('<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 lc={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;}
183
+ @media (max-width: 640px) {.wr-Consent.svelte-dqnzo8 {flex-direction:column;align-items:stretch;}.wr-Consent-actions.svelte-dqnzo8 {justify-content:flex-end;}
184
+ }`};function cc(e,t){var n;it(t,!0),ht(e,lc);const r=(n=window?.wineaterData)==null?void 0:n.PRIVACY_URL,i=u=>ie({key:u,lang:t.lang});var o=sc(),a=W(o),c=W(a),s=R(c);{var d=u=>{var g=ac(),b=W(g);B(y=>{ae(g,"href",r),L(b,y)},[()=>i("consentPrivacy")]),_(u,g)};$(s,u=>{r&&u(d)})}var f=R(a,2),m=W(f);Ht(m,{variant:"outlined",handleClick:()=>mo("denied"),children:(u,g)=>{var b=Ct();B(y=>L(b,y),[()=>i("consentDecline")]),_(u,b)},$$slots:{default:!0}});var p=R(m,2);Ht(p,{variant:"primary",handleClick:()=>mo("granted"),children:(u,g)=>{var b=Ct();B(y=>L(b,y),[()=>i("consentAccept")]),_(u,b)},$$slots:{default:!0}}),B(u=>L(c,`${u??""} `),[()=>i("consentText")]),_(e,o),ot()}const uc=/@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 dc(){document.querySelector('link[rel="preconnect"][href="https://fonts.googleapis.com"]')||(ni("preconnect","https://fonts.googleapis.com"),ni("preconnect","https://fonts.gstatic.com",!0))}function pc(e){if(!e)return"";const t="custom-ui-config-style";if(document.getElementById(t))return;const n=e.replace(uc,(i,o)=>(ni("stylesheet",o),"")),r=document.createElement("style");return r.id=t,r.innerHTML=n,document.head.appendChild(r),t}var hc=N('<div class="wr-App-picture svelte-1n46o8q"><img class="wr-App-logo svelte-1n46o8q" alt=""/></div>'),fc=N('<div class="wr-App-error svelte-1n46o8q"><p> </p></div>'),vc=N('<div class="wr-App-showMore svelte-1n46o8q"><!></div>'),gc=N('<div class="wr-App-placeholder svelte-1n46o8q"></div> <!>',1),wc=N('<div id="wr-Custom" class="wr-App svelte-1n46o8q"><!> <!> <!> <div class="wr-App-content svelte-1n46o8q"><!></div> <!> <!></div>'),mc=N('<div class="wr-App wr-App--loading svelte-1n46o8q" aria-busy="true"><div class="wr-App-loadingTop svelte-1n46o8q"></div> <!></div>');const bc={hash:"svelte-1n46o8q",code:`
183
185
  /* ===================== 1) CSS Variables ===================== */:root {--wineater-corp-color: #0044ff;
184
186
  /* --wr-brand-color is set dynamically from uiConfig.brandColor */--wr-brand-color: #7b2beb; /* fallback value */}
185
187
 
@@ -192,4 +194,4 @@ ${JSON.stringify(f,null,2)}
192
194
 
193
195
  /* ===================== 13) Mobile Styles ===================== */
194
196
  @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);}
195
- }`};function El(e,t){var n,r,i;ft(t,!0),xt(e,Tl);function o(){var x;Br("chatbotToken",((x=window.wineaterData)==null?void 0:x.CLIENT_TOKEN)||a,365),Yi()}const a="HeUw6IXuhvz6tRuXdPEGEbj3SGQ3Q2YtEc1Z8jd41Kg9LtyPb4Epu0to31SYIadG";o(),yl();const l=6*60*60*1e3,s=`${to}:instant`,c=((n=window?.wineaterData)==null?void 0:n.WIDGET_TYPE)||"store",f=((r=window?.wineaterData)==null?void 0:r.COUNTRY_CODE)||null;(i=window?.wineaterData)!=null&&i.WIDGET_WRAPPER;let m=K(!1),h=K(!1),p=!1,g=K(!1),b=K(!1),y=K(He([])),_=K(null),D=K(""),L=K(null),v=K(!1),k=K(null),W=K(He([])),T=K(""),P=K(!1),R=K(He([])),$=X(()=>ce.getAppLanguage()),F=X(()=>ce.getStoreLanguage()),H=X(()=>ce.getApiKey()),Z=X(()=>ce.getStoreId()),se=X(()=>ce.isInitialized()),te=X(()=>ce.getUiConfig());function Ie(){w(L,ae({key:"errorMessage",lang:u($)}),!0)}const qt=()=>w(L,null);async function ln(x){if(u($)===u(F)||c!=="bar")return x.map(()=>({}));const I=["shortDescription","reason","pairingRecommendation","tags"],Y=x[0];if(!Y)return x.map(()=>({}));const ie=I.filter(Oe=>Oe in Y),Se=4,pt=[];for(let Oe=0;Oe<x.length;Oe+=Se){const ir=x.slice(Oe,Oe+Se).map(async Mn=>{const Bn=ie.map(le=>{const Ce=Mn[le]||Mn[le.toLowerCase()];return Ce?{key:le,text:Array.isArray(Ce)?Ce.join(", "):Ce}:null}).filter(Boolean);return Bn.length===0?{}:await xs({sourceLang:u(F),targetLang:u($),texts:Object.fromEntries(Bn.map(le=>[le.key,le.text])),apiKey:u(H)})}),or=await Promise.all(ir);pt.push(...or)}return pt}async function rr(x){const I=ro(s,l),Y=!!(I!=null&&I.length);Y?w(y,I,!0):w(g,!0);try{const ie=await An.getInstantRecommendations();ie.length>0&&io(s,ie),!Y&&!p&&w(y,ie,!0)}catch(ie){console.error("[wineater] instant recommendations error:",ie),!Y&&!p&&(await x,Ie())}finally{p||w(g,!1)}}function un(x=220){return!u(y)||u(y).length===0?Promise.resolve():(w(v,!0),new Promise(I=>{setTimeout(()=>{I()},x)}))}async function S(x){x.preventDefault(),p=!0;let I="";try{w(g,!0),qt(),I=u(D).trim()+";",w(T,I,!0);try{De(Ae.SEARCH_PERFORMED,u(Z),{query:I})}catch(Se){console.error("Error tracking search event:",Se)}const Y=An.getWineRecommendationsSearch(I);Y.catch(()=>{}),await un(220),w(y,[],!0),w(v,!1),w(P,!1),w(R,[],!0);const ie=await Y;!ie||ie.length===0?(w(y,[],!0),w(W,[],!0),w(L,ae({key:"noResultsMessage",lang:u($)}),!0),De(Ae.NO_RESULTS_FOUND,u(Z),{query:I})):(w(y,ie,!0),w(P,Lr==="2"&&ie.length>=4,!0),De(Ae.SEARCH_RESULTS_DISPLAYED,u(Z),{results_count:ie.length,results:ie,query:I}))}catch(Y){w(y,[],!0),console.error("[wineater] search error:",Y),De(Ae.ERROR_OCCURRED,u(Z),{error_message:Y?.message,query:I}),Ie()}finally{w(g,!1)}}async function M(){if(u(b)||!u(P))return;p=!0;const x=u(y);try{w(b,!0),w(g,!0),w(R,[...new Set([...u(R),...u(y).map(Se=>Se.id)])],!0);const I=An.getMoreWineRecommendations(u(T),u(R));I.catch(()=>{}),await un(220),w(y,[],!0),w(v,!1);const{recommendations:Y,hasMore:ie}=await I;De(Ae.SHOW_MORE_CLICKED,u(Z),{query:u(T),results_count:Y.length}),w(y,Y.length>0?Y:x,!0),w(P,ie,!0)}catch(I){console.error("[wineater] try again error:",I),w(y,x,!0),w(P,!1)}finally{w(b,!1),w(g,!1)}}async function Q(x){p=!0;try{w(g,!0),qt(),De(Ae.SIMILAR_WINES_CLICKED,u(Z),{wine_id:x.id,wine_title:x.title});const I=An.getSimilarWines(x.id);I.catch(()=>{}),await un(220),w(y,[],!0),w(v,!1),w(P,!1),w(_,null);const Y=await I;w(D,x.title,!0),w(T,""),!Y||Y.length===0?(w(y,[],!0),w(W,[],!0),w(L,ae({key:"noResultsMessage",lang:u($)}),!0)):w(y,Y,!0)}catch(I){w(y,[],!0),console.error("[wineater] similar wines error:",I),Ie()}finally{w(g,!1)}}_n(async()=>{if(!u(y)||u(y).length===0){w(W,[],!0);return}try{const x=await ln(u(y));u(y)&&u(y).length>0&&w(W,x,!0)}catch(x){console.error("translatePopupContent failed",x)}});function J(x,I){u(_)&&u(_)!==x.id&&w(_,null),w(_,x.id,!0),De(Ae.WINE_DETAILS_VIEWED,u(Z),{wine_id:x.id,wine_title:x.title,is_mobile:window.innerWidth<=768})}function we(x,I){De(Ae.BUY_BUTTON_CLICKED,u(Z),{wine_id:x.id,wine_title:x.title,wine_url:x.url,is_mobile:window.innerWidth<=768})}function ne(){const x=u(y).find(I=>I.id===u(_));De(Ae.WINE_DETAILS_CLOSED,u(Z),{wine_id:u(_),wine_title:x.title}),w(_,null)}function Je(x){return!!(x.reason||x.shortDescription||x.tags)}function _e(x){c==="store"&&Je(x)&&(w(k,x.id,!0),De(Ae.WINE_CARD_HOVER,u(Z),{wine_id:x.id,wine_title:x.title}))}function je(x){c==="store"&&u(k)===x.id&&w(k,null)}function $t(x,I){x.target.closest(".js-WineTileAction")||x.target.closest(".js-WinePopupClose")||De(Ae.WINE_CARD_CLICK,u(Z),{wine_id:I.id,wine_title:I.title})}function dt(x){const I=x.target;I.closest(".js-WinePopup")||I.closest(".js-WineTileAction")||w(_,null)}_n(()=>{var x,I;(x=u(te))!=null&&x.brandColor&&document.documentElement.style.setProperty("--wr-brand-color",u(te).brandColor),(I=u(te))!=null&&I.wineaterColor&&document.documentElement.style.setProperty("--wr-wineater-color",u(te).wineaterColor)}),Ir(()=>(document.addEventListener("click",dt),(async()=>{const x=ce.initializeStore();if(rr(x),await x,!u(se)){w(h,!0);return}u(te).customCss&&kl(u(te).customCss),w(m,!0),De(Ae.WIDGET_INITIALIZED,u(Z))})(),()=>{document.removeEventListener("click",dt)}));var Rn=Ge(),co=ve(Rn);{var po=x=>{var I=Pl(),Y=E(I);{var ie=le=>{var Ce=xl(),cn=E(Ce);N(()=>ue(cn,"src",u(te).logoUrl)),C(le,Ce)};U(Y,le=>{u(te).logoUrl&&le(ie)})}var Se=B(Y,2);Ms(Se,{});var pt=B(Se,2);Hs(pt,{onSubmit:S,get initialized(){return u(m)},get searchQuery(){return u(D)},set searchQuery(le){w(D,le,!0)}});var Oe=B(pt,2),ir=E(Oe);{var or=le=>{var Ce=_l(),cn=E(Ce),ar=E(cn);N(()=>O(ar,u(L))),C(le,Ce)},Mn=le=>{var Ce=Ge(),cn=ve(Ce);{var ar=Ft=>{var dn=Cl(),zn=ve(dn);zt(zn,21,()=>u(y),Xt,(hn,Nn,Ln)=>{ml(hn,{get wine(){return u(Nn)},index:Ln,get hoveredWineId(){return u(k)},get selectedWineId(){return u(_)},get isAnimating(){return u(v)},get translatedPopup(){return u(W)[Ln]},onBuyClick:J,onBuyLinkClick:we,onPopupClose:ne,onSimilarClick:Q,onTileEnter:_e,onTileLeave:je,onTileClick:$t})});var sr=B(zn,2);{var pn=hn=>{var Nn=Sl(),Ln=E(Nn);In(Ln,{handleClick:M,variant:"outlined",children:(vo,Al)=>{var $r=rn();N(go=>O($r,go),[()=>ae({key:"tryAgain",lang:u($)})]),C(vo,$r)},$$slots:{default:!0}}),C(hn,Nn)};U(sr,hn=>{u(P)&&hn(pn)})}C(Ft,dn)},fo=Ft=>{var dn=Ge(),zn=ve(dn);{var sr=pn=>{lo(pn)};U(zn,pn=>{u(g)&&pn(sr)},!0)}C(Ft,dn)};U(cn,Ft=>{u(y)&&u(y).length>0?Ft(ar):Ft(fo,!1)},!0)}C(le,Ce)};U(ir,le=>{u(L)?le(or):le(Mn,!1)})}var Bn=B(Oe,2);js(Bn,{get countryCode(){return f}}),C(x,I)},ho=x=>{var I=Ge(),Y=ve(I);{var ie=Se=>{var pt=Wl(),Oe=B(E(pt),2);lo(Oe),C(Se,pt)};U(Y,Se=>{u(h)||Se(ie)},!0)}C(x,I)};U(co,x=>{u(se)?x(po):x(ho,!1)})}C(e,Rn),vt()}const Dl=Oa(El,{target:document.getElementById("wineater-widget-conteiner")});export{Dl as default};
197
+ }`};function yc(e,t){var n,r,i;it(t,!0),ht(e,bc);function o(){var k;Yr("chatbotToken",((k=window.wineaterData)==null?void 0:k.CLIENT_TOKEN)||a,365)}const a="HeUw6IXuhvz6tRuXdPEGEbj3SGQ3Q2YtEc1Z8jd41Kg9LtyPb4Epu0to31SYIadG";o(),dc();const c=6*60*60*1e3,s=`${Io}:instant`,d=((n=window?.wineaterData)==null?void 0:n.WIDGET_TYPE)||"store",f=((r=window?.wineaterData)==null?void 0:r.COUNTRY_CODE)||null;(i=window?.wineaterData)!=null&&i.WIDGET_WRAPPER;let m=V(!1),p=V(!1),u=!1,g=V(!1),b=V(!1),y=V(Me([])),S=V(null),E=V(""),O=V(null),v=V(!1),x=V(null),D=V(Me([])),T=V(""),P=V(!1),M=V(Me([])),U=null;function F(k,I){k!=null&&k.length&&hn({type:"shown",query_id:U??void 0,sku_ids:k.map(G=>G.id),text:I||void 0})}let j=ee(()=>se.getAppLanguage()),ce=ee(()=>se.getStoreLanguage()),le=ee(()=>se.getApiKey()),Q=ee(()=>se.getStoreId()),je=ee(()=>se.isInitialized()),Ie=ee(()=>se.getUiConfig());function Wt(){w(O,ie({key:"errorMessage",lang:l(j)}),!0)}const On=()=>w(O,null);async function vr(k){if(l(j)===l(ce)||d!=="bar")return k.map(()=>({}));const I=["shortDescription","reason","pairingRecommendation","tags"],G=k[0];if(!G)return k.map(()=>({}));const re=I.filter(Oe=>Oe in G),Se=4,vt=[];for(let Oe=0;Oe<k.length;Oe+=Se){const wr=k.slice(Oe,Oe+Se).map(async Un=>{const vn=re.map(gt=>{const Vt=Un[gt]||Un[gt.toLowerCase()];return Vt?{key:gt,text:Array.isArray(Vt)?Vt.join(", "):Vt}:null}).filter(Boolean);return vn.length===0?{}:await cl({sourceLang:l(ce),targetLang:l(j),texts:Object.fromEntries(vn.map(gt=>[gt.key,gt.text])),apiKey:l(le)})}),mr=await Promise.all(wr);vt.push(...mr)}return vt}async function C(k){const I=Ro(s,c),G=!!(I!=null&&I.length);G?w(y,I,!0):w(g,!0);try{const re=await fn.getInstantRecommendations();re.length>0&&Mo(s,re),!G&&!u&&w(y,re,!0)}catch(re){console.error("[wineater] instant recommendations error:",re),!G&&!u&&(await k,Wt())}finally{u||w(g,!1)}}function z(k=220){return!l(y)||l(y).length===0?Promise.resolve():(w(v,!0),new Promise(I=>{setTimeout(()=>{I()},k)}))}async function Z(k){k.preventDefault(),u=!0;let I="";try{w(g,!0),On(),I=l(E).trim()+";",w(T,I,!0),U=So();try{De(Ee.SEARCH_PERFORMED,l(Q),{query:I})}catch(Se){console.error("Error tracking search event:",Se)}const G=fn.getWineRecommendationsSearch(I,U);G.catch(()=>{}),await z(220),w(y,[],!0),w(v,!1),w(P,!1),w(M,[],!0);const re=await G;!re||re.length===0?(w(y,[],!0),w(D,[],!0),w(O,ie({key:"noResultsMessage",lang:l(j)}),!0),De(Ee.NO_RESULTS_FOUND,l(Q),{query:I})):(w(y,re,!0),w(P,ei==="2"&&re.length>=4,!0),F(re,I),De(Ee.SEARCH_RESULTS_DISPLAYED,l(Q),{results_count:re.length,results:re,query:I}))}catch(G){w(y,[],!0),console.error("[wineater] search error:",G),De(Ee.ERROR_OCCURRED,l(Q),{error_message:G?.message,query:I}),Wt()}finally{w(g,!1)}}async function X(){if(l(b)||!l(P))return;u=!0;const k=l(y);try{w(b,!0),w(g,!0),w(M,[...new Set([...l(M),...l(y).map(Se=>Se.id)])],!0);const I=fn.getMoreWineRecommendations(l(T),l(M));I.catch(()=>{}),await z(220),w(y,[],!0),w(v,!1);const{recommendations:G,hasMore:re}=await I;hn({type:"more",query_id:U??void 0,text:l(T)||void 0}),F(G,l(T)),De(Ee.SHOW_MORE_CLICKED,l(Q),{query:l(T),results_count:G.length}),w(y,G.length>0?G:k,!0),w(P,re,!0)}catch(I){console.error("[wineater] try again error:",I),w(y,k,!0),w(P,!1)}finally{w(b,!1),w(g,!1)}}async function we(k){u=!0;try{w(g,!0),On(),De(Ee.SIMILAR_WINES_CLICKED,l(Q),{wine_id:k.id,wine_title:k.title}),hn({type:"similar",query_id:U??void 0,sku_ids:[k.id]}),U=So();const I=fn.getSimilarWines(k.id);I.catch(()=>{}),await z(220),w(y,[],!0),w(v,!1),w(P,!1),w(S,null);const G=await I;w(E,k.title,!0),w(T,""),!G||G.length===0?(w(y,[],!0),w(D,[],!0),w(O,ie({key:"noResultsMessage",lang:l(j)}),!0)):(w(y,G,!0),F(G,""))}catch(I){w(y,[],!0),console.error("[wineater] similar wines error:",I),Wt()}finally{w(g,!1)}}Dn(async()=>{if(!l(y)||l(y).length===0){w(D,[],!0);return}try{const k=await vr(l(y));l(y)&&l(y).length>0&&w(D,k,!0)}catch(k){console.error("translatePopupContent failed",k)}});function ne(k,I){l(S)&&l(S)!==k.id&&w(S,null),w(S,k.id,!0),hn({type:"click",query_id:U??void 0,sku_ids:[k.id],position:I}),De(Ee.WINE_DETAILS_VIEWED,l(Q),{wine_id:k.id,wine_title:k.title,is_mobile:window.innerWidth<=768})}function Qe(k,I){hn({type:"buy_click",query_id:U??void 0,sku_ids:[k.id],position:I}),De(Ee.BUY_BUTTON_CLICKED,l(Q),{wine_id:k.id,wine_title:k.title,wine_url:k.url,is_mobile:window.innerWidth<=768})}function _e(){const k=l(y).find(I=>I.id===l(S));De(Ee.WINE_DETAILS_CLOSED,l(Q),{wine_id:l(S),wine_title:k.title}),w(S,null)}function qe(k){return!!(k.reason||k.shortDescription||k.tags)}function Gt(k){d==="store"&&qe(k)&&(w(x,k.id,!0),De(Ee.WINE_CARD_HOVER,l(Q),{wine_id:k.id,wine_title:k.title}))}function Tt(k){d==="store"&&l(x)===k.id&&w(x,null)}function gr(k,I){k.target.closest(".js-WineTileAction")||k.target.closest(".js-WinePopupClose")||(hn({type:"click",query_id:U??void 0,sku_ids:[I.id],position:l(y).findIndex(G=>G.id===I.id)}),De(Ee.WINE_CARD_CLICK,l(Q),{wine_id:I.id,wine_title:I.title}))}function ii(k){const I=k.target;I.closest(".js-WinePopup")||I.closest(".js-WineTileAction")||w(S,null)}Dn(()=>{var k,I;(k=l(Ie))!=null&&k.brandColor&&document.documentElement.style.setProperty("--wr-brand-color",l(Ie).brandColor),(I=l(Ie))!=null&&I.wineaterColor&&document.documentElement.style.setProperty("--wr-wineater-color",l(Ie).wineaterColor)}),Hr(()=>(document.addEventListener("click",ii),(async()=>{const k=se.initializeStore();if(C(k),await k,!l(je)){w(p,!0);return}l(Ie).customCss&&pc(l(Ie).customCss),w(m,!0),De(Ee.WIDGET_INITIALIZED,l(Q))})(),()=>{document.removeEventListener("click",ii)}));var oi=Ge(),qo=ve(oi);{var Oo=k=>{var I=wc(),G=W(I);{var re=de=>{var wt=hc(),gn=W(wt);B(()=>ae(gn,"src",l(Ie).logoUrl)),_(de,wt)};$(G,de=>{l(Ie).logoUrl&&de(re)})}var Se=R(G,2);kl(Se,{});var vt=R(Se,2);Al(vt,{onSubmit:Z,get initialized(){return l(m)},get searchQuery(){return l(E)},set searchQuery(de){w(E,de,!0)}});var Oe=R(vt,2),wr=W(Oe);{var mr=de=>{var wt=fc(),gn=W(wt),br=W(gn);B(()=>L(br,l(O))),_(de,wt)},Un=de=>{var wt=Ge(),gn=ve(wt);{var br=Kt=>{var wn=gc(),$n=ve(wn);qt($n,21,()=>l(y),on,(bn,Fn,Hn)=>{oc(bn,{get wine(){return l(Fn)},index:Hn,get hoveredWineId(){return l(x)},get selectedWineId(){return l(S)},get isAnimating(){return l(v)},get translatedPopup(){return l(D)[Hn]},onBuyClick:ne,onBuyLinkClick:Qe,onPopupClose:_e,onSimilarClick:we,onTileEnter:Gt,onTileLeave:Tt,onTileClick:gr})});var yr=R($n,2);{var mn=bn=>{var Fn=vc(),Hn=W(Fn);Ht(Hn,{handleClick:X,variant:"outlined",children:(Fo,xc)=>{var ai=Ct();B(Ho=>L(ai,Ho),[()=>ie({key:"tryAgain",lang:l(j)})]),_(Fo,ai)},$$slots:{default:!0}}),_(bn,Fn)};$(yr,bn=>{l(P)&&bn(mn)})}_(Kt,wn)},$o=Kt=>{var wn=Ge(),$n=ve(wn);{var yr=mn=>{Lo(mn)};$($n,mn=>{l(g)&&mn(yr)},!0)}_(Kt,wn)};$(gn,Kt=>{l(y)&&l(y).length>0?Kt(br):Kt($o,!1)},!0)}_(de,wt)};$(wr,de=>{l(O)?de(mr):de(Un,!1)})}var vn=R(Oe,2);{var gt=de=>{cc(de,{get lang(){return l(j)}})};$(vn,de=>{Rs()&&de(gt)})}var Vt=R(vn,2);Pl(Vt,{get countryCode(){return f}}),_(k,I)},Uo=k=>{var I=Ge(),G=ve(I);{var re=Se=>{var vt=mc(),Oe=R(W(vt),2);Lo(Oe),_(Se,vt)};$(G,Se=>{l(p)||Se(re)},!0)}_(k,I)};$(qo,k=>{l(je)?k(Oo):k(Uo,!1)})}_(e,oi),ot()}const kc=vs(yc,{target:document.getElementById("wineater-widget-conteiner")});export{kc as default};