wineater-bot 4.24.4-beta.1 → 4.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wineater-chatbot.mjs +20 -45
- package/dist/wineater-chatbot.umd.js +20 -45
- package/package.json +4 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var La=Object.defineProperty,Lo=e=>{throw TypeError(e)},ja=(e,t,n)=>t in e?La(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ze=(e,t,n)=>ja(e,typeof t!="symbol"?t+"":t,n),Or=(e,t,n)=>t.has(e)||Lo("Cannot "+n),d=(e,t,n)=>(Or(e,t,"read from private field"),n?n.call(e):t.get(e)),U=(e,t,n)=>t.has(e)?Lo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),$=(e,t,n,r)=>(Or(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),J=(e,t,n)=>(Or(e,t,"access private method"),n);const qa="5";var jo;typeof window<"u"&&((jo=window.__svelte??(window.__svelte={})).v??(jo.v=new Set)).add(qa);const Oa=1,$a=2,qo=4,Ua=8,Fa=16,Ha=1,Ga=2,Va=4,Ya=8,Ka=16,Oo=1,Za=2,me=Symbol(),$o="http://www.w3.org/1999/xhtml",Ja=!1;var $r=Array.isArray,Qa=Array.prototype.indexOf,fn=Array.prototype.includes,hr=Array.from,Xa=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,es=Object.getOwnPropertyDescriptors,ts=Object.prototype,ns=Array.prototype,Uo=Object.getPrototypeOf,Fo=Object.isExtensible;const rs=()=>{};function os(e){for(var t=0;t<e.length;t++)e[t]()}function Ho(){var e,t,n=new Promise((r,o)=>{e=r,t=o});return{promise:n,resolve:e,reject:t}}function is(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const ye=2,Bn=4,fr=8,Go=1<<24,wt=16,Je=32,Kt=64,Ur=128,qe=512,ve=1024,be=2048,Qe=4096,Re=8192,mt=16384,Zt=32768,Jt=65536,Vo=1<<17,Yo=1<<18,gn=1<<19,as=1<<20,yt=1<<25,Qt=65536,Fr=1<<21,Hr=1<<22,Mt=1<<23,Xt=Symbol("$state"),ss=Symbol("legacy props"),ls=Symbol(""),en=new class extends Error{constructor(){super(...arguments),Ze(this,"name","StaleReactionError"),Ze(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function cs(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function us(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ds(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function ps(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function hs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function fs(e){throw new Error("https://svelte.dev/e/effect_orphan")}function vs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function gs(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ws(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ms(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ys(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function bs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ks(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function xs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ko(e){return e===this.v}function Ss(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Zo(e){return!Ss(e,this.v)}let wn=!1,_s=!1;function Cs(){wn=!0}let pe=null;function mn(e){pe=e}function at(e,t=!1,n){pe={p:pe,i:!1,c:null,e:null,s:e,x:null,l:wn&&!t?{s:null,u:null,$:[]}:null}}function st(e){var t=pe,n=t.e;if(n!==null){t.e=null;for(var r of n)ki(r)}return e!==void 0&&(t.x=e),t.i=!0,pe=t.p,e??{}}function Nn(){return!wn||pe!==null&&pe.l===null}let tn=[];function Jo(){var e=tn;tn=[],os(e)}function bt(e){if(tn.length===0&&!Ln){var t=tn;queueMicrotask(()=>{t===tn&&Jo()})}tn.push(e)}function Ts(){for(;tn.length>0;)Jo()}function Qo(e){var t=K;if(t===null)return V.f|=Mt,e;if(!(t.f&Zt)&&!(t.f&Bn))throw e;Rt(e,t)}function Rt(e,t){for(;t!==null;){if(t.f&Ur){if(!(t.f&Zt))throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Ps=-7169;function ce(e,t){e.f=e.f&Ps|t}function Gr(e){e.f&qe||e.deps===null?ce(e,ve):ce(e,Qe)}function Xo(e){if(e!==null)for(const t of e)!(t.f&ye)||!(t.f&Qt)||(t.f^=Qt,Xo(t.deps))}function ei(e,t,n){e.f&be?t.add(e):e.f&Qe&&n.add(e),Xo(e.deps),ce(e,ve)}const vr=new Set;let Y=null,Vr=null,Ce=null,Te=[],gr=null,Yr=!1,Ln=!1;var jn,qn,zt,nn,On,$n,rn,kt,Un,xt,Kr,Zr,Jr,ti;const Ws=class Pa{constructor(){U(this,xt),Ze(this,"current",new Map),Ze(this,"previous",new Map),U(this,jn,new Set),U(this,qn,new Set),U(this,zt,0),U(this,nn,0),U(this,On,null),U(this,$n,new Set),U(this,rn,new Set),U(this,kt,new Map),Ze(this,"is_fork",!1),U(this,Un,!1)}skip_effect(t){d(this,kt).has(t)||d(this,kt).set(t,{d:[],m:[]})}unskip_effect(t){var n=d(this,kt).get(t);if(n){d(this,kt).delete(t);for(var r of n.d)ce(r,be),Xe(r);for(r of n.m)ce(r,Qe),Xe(r)}}process(t){var n;Te=[],this.apply();var r=[],o=[];for(const i of t)J(this,xt,Zr).call(this,i,r,o);if(J(this,xt,Kr).call(this)){J(this,xt,Jr).call(this,o),J(this,xt,Jr).call(this,r);for(const[i,s]of d(this,kt))ai(i,s)}else{for(const i of d(this,jn))i();d(this,jn).clear(),d(this,zt)===0&&J(this,xt,ti).call(this),Vr=this,Y=null,ri(o),ri(r),d(this,$n).clear(),d(this,rn).clear(),Vr=null,(n=d(this,On))==null||n.resolve()}Ce=null}capture(t,n){n!==me&&!this.previous.has(t)&&this.previous.set(t,n),t.f&Mt||(this.current.set(t,t.v),Ce?.set(t,t.v))}activate(){Y=this,this.apply()}deactivate(){Y===this&&(Y=null,Ce=null)}flush(){if(this.activate(),Te.length>0){if(ni(),Y!==null&&Y!==this)return}else d(this,zt)===0&&this.process([]);this.deactivate()}discard(){for(const t of d(this,qn))t(this);d(this,qn).clear()}increment(t){$(this,zt,d(this,zt)+1),t&&$(this,nn,d(this,nn)+1)}decrement(t){$(this,zt,d(this,zt)-1),t&&$(this,nn,d(this,nn)-1),!d(this,Un)&&($(this,Un,!0),bt(()=>{$(this,Un,!1),J(this,xt,Kr).call(this)?Te.length>0&&this.flush():this.revive()}))}revive(){for(const t of d(this,$n))d(this,rn).delete(t),ce(t,be),Xe(t);for(const t of d(this,rn))ce(t,Qe),Xe(t);this.flush()}oncommit(t){d(this,jn).add(t)}ondiscard(t){d(this,qn).add(t)}settled(){return(d(this,On)??$(this,On,Ho())).promise}static ensure(){if(Y===null){const t=Y=new Pa;vr.add(Y),Ln||bt(()=>{Y===t&&t.flush()})}return Y}apply(){}};jn=new WeakMap,qn=new WeakMap,zt=new WeakMap,nn=new WeakMap,On=new WeakMap,$n=new WeakMap,rn=new WeakMap,kt=new WeakMap,Un=new WeakMap,xt=new WeakSet,Kr=function(){return this.is_fork||d(this,nn)>0},Zr=function(e,t,n){e.f^=ve;for(var r=e.first;r!==null;){var o=r.f,i=(o&(Je|Kt))!==0,s=i&&(o&ve)!==0,l=s||(o&Re)!==0||d(this,kt).has(r);if(!l&&r.fn!==null){i?r.f^=ve:o&Bn?t.push(r):Zn(r)&&(o&wt&&d(this,rn).add(r),xn(r));var c=r.first;if(c!==null){r=c;continue}}for(;r!==null;){var u=r.next;if(u!==null){r=u;break}r=r.parent}}},Jr=function(e){for(var t=0;t<e.length;t+=1)ei(e[t],d(this,$n),d(this,rn))},ti=function(){var e;if(vr.size>1){this.previous.clear();var t=Ce,n=!0;for(const o of vr){if(o===this){n=!1;continue}const i=[];for(const[l,c]of this.current){if(o.current.has(l))if(n&&c!==o.current.get(l))o.current.set(l,c);else continue;i.push(l)}if(i.length===0)continue;const s=[...o.current.keys()].filter(l=>!this.current.has(l));if(s.length>0){var r=Te;Te=[];const l=new Set,c=new Map;for(const u of i)oi(u,s,l,c);if(Te.length>0){Y=o,o.apply();for(const u of Te)J(e=o,xt,Zr).call(e,u,[],[]);o.deactivate()}Te=r}}Y=null,Ce=t}d(this,kt).clear(),vr.delete(this)};let yn=Ws;function Es(e){var t=Ln;Ln=!0;try{for(var n;;){if(Ts(),Te.length===0&&(Y?.flush(),Te.length===0))return gr=null,n;ni()}}finally{Ln=t}}function ni(){Yr=!0;var e=null;try{for(var t=0;Te.length>0;){var n=yn.ensure();if(t++>1e3){var r,o;Ds()}n.process(Te),jt.clear()}}finally{Te=[],Yr=!1,gr=null}}function Ds(){try{vs()}catch(e){Rt(e,gr)}}let lt=null;function ri(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(mt|Re))&&Zn(r)&&(lt=new Set,xn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&_i(r),lt?.size>0)){jt.clear();for(const o of lt){if(o.f&(mt|Re))continue;const i=[o];let s=o.parent;for(;s!==null;)lt.has(s)&&(lt.delete(s),i.push(s)),s=s.parent;for(let l=i.length-1;l>=0;l--){const c=i[l];c.f&(mt|Re)||xn(c)}}lt.clear()}}lt=null}}function oi(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const o of e.reactions){const i=o.f;i&ye?oi(o,t,n,r):i&(Hr|wt)&&!(i&be)&&ii(o,t,r)&&(ce(o,be),Xe(o))}}function ii(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const o of e.deps){if(fn.call(t,o))return!0;if(o.f&ye&&ii(o,t,n))return n.set(o,!0),!0}return n.set(e,!1),!1}function Xe(e){var t=gr=e,n=t.b;if(n!=null&&n.is_pending&&e.f&(Bn|fr|Go)&&!(e.f&Zt)){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(Yr&&t===K&&r&wt&&!(r&Yo)&&r&Zt)return;if(r&(Kt|Je)){if(!(r&ve))return;t.f^=ve}}Te.push(t)}function ai(e,t){if(!(e.f&Je&&e.f&ve)){e.f&be?t.d.push(e):e.f&Qe&&t.m.push(e),ce(e,ve);for(var n=e.first;n!==null;)ai(n,t),n=n.next}}function As(e){let t=0,n=an(0),r;return()=>{io()&&(a(n),so(()=>(t===0&&(r=Qn(()=>e(()=>Vn(n)))),t+=1,()=>{bt(()=>{t-=1,t===0&&(r?.(),r=void 0,Vn(n))})})))}}var Is=Jt|gn;function Ms(e,t,n,r){new Ns(e,t,n,r)}var et,si,St,bn,ze,_t,Oe,ct,Bt,on,Nt,Fn,Hn,Gn,Lt,Qr,$e,Rs,zs,Bs,Xr,wr,mr,eo;class Ns{constructor(t,n,r,o){U(this,$e),Ze(this,"parent"),Ze(this,"is_pending",!1),Ze(this,"transform_error"),U(this,et),U(this,si,null),U(this,St),U(this,bn),U(this,ze),U(this,_t,null),U(this,Oe,null),U(this,ct,null),U(this,Bt,null),U(this,on,0),U(this,Nt,0),U(this,Fn,!1),U(this,Hn,new Set),U(this,Gn,new Set),U(this,Lt,null),U(this,Qr,As(()=>($(this,Lt,an(d(this,on))),()=>{$(this,Lt,null)})));var i;$(this,et,t),$(this,St,n),$(this,bn,s=>{var l=K;l.b=this,l.f|=Ur,r(s)}),this.parent=K.b,this.transform_error=o??((i=this.parent)==null?void 0:i.transform_error)??(s=>s),$(this,ze,kr(()=>{J(this,$e,Xr).call(this)},Is))}defer_effect(t){ei(t,d(this,Hn),d(this,Gn))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!d(this,St).pending}update_pending_count(t){J(this,$e,eo).call(this,t),$(this,on,d(this,on)+t),!(!d(this,Lt)||d(this,Fn))&&($(this,Fn,!0),bt(()=>{$(this,Fn,!1),d(this,Lt)&&kn(d(this,Lt),d(this,on))}))}get_effect_pending(){return d(this,Qr).call(this),a(d(this,Lt))}error(t){var n=d(this,St).onerror;let r=d(this,St).failed;if(!n&&!r)throw t;d(this,_t)&&(Pe(d(this,_t)),$(this,_t,null)),d(this,Oe)&&(Pe(d(this,Oe)),$(this,Oe,null)),d(this,ct)&&(Pe(d(this,ct)),$(this,ct,null));var o=!1,i=!1;const s=()=>{if(o){xs();return}o=!0,i&&bs(),d(this,ct)!==null&&sn(d(this,ct),()=>{$(this,ct,null)}),J(this,$e,mr).call(this,()=>{yn.ensure(),J(this,$e,Xr).call(this)})},l=c=>{try{i=!0,n?.(c,s),i=!1}catch(u){Rt(u,d(this,ze)&&d(this,ze).parent)}r&&$(this,ct,J(this,$e,mr).call(this,()=>{yn.ensure();try{return Ue(()=>{var u=K;u.b=this,u.f|=Ur,r(d(this,et),()=>c,()=>s)})}catch(u){return Rt(u,d(this,ze).parent),null}}))};bt(()=>{var c;try{c=this.transform_error(t)}catch(u){Rt(u,d(this,ze)&&d(this,ze).parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(l,u=>Rt(u,d(this,ze)&&d(this,ze).parent)):l(c)})}}et=new WeakMap,si=new WeakMap,St=new WeakMap,bn=new WeakMap,ze=new WeakMap,_t=new WeakMap,Oe=new WeakMap,ct=new WeakMap,Bt=new WeakMap,on=new WeakMap,Nt=new WeakMap,Fn=new WeakMap,Hn=new WeakMap,Gn=new WeakMap,Lt=new WeakMap,Qr=new WeakMap,$e=new WeakSet,Rs=function(){try{$(this,_t,Ue(()=>d(this,bn).call(this,d(this,et))))}catch(e){this.error(e)}},zs=function(e){const t=d(this,St).failed;t&&$(this,ct,Ue(()=>{t(d(this,et),()=>e,()=>()=>{})}))},Bs=function(){const e=d(this,St).pending;e&&(this.is_pending=!0,$(this,Oe,Ue(()=>e(d(this,et)))),bt(()=>{var t=$(this,Bt,document.createDocumentFragment()),n=Ct();t.append(n),$(this,_t,J(this,$e,mr).call(this,()=>(yn.ensure(),Ue(()=>d(this,bn).call(this,n))))),d(this,Nt)===0&&(d(this,et).before(t),$(this,Bt,null),sn(d(this,Oe),()=>{$(this,Oe,null)}),J(this,$e,wr).call(this))}))},Xr=function(){try{if(this.is_pending=this.has_pending_snippet(),$(this,Nt,0),$(this,on,0),$(this,_t,Ue(()=>{d(this,bn).call(this,d(this,et))})),d(this,Nt)>0){var e=$(this,Bt,document.createDocumentFragment());Pi(d(this,_t),e);const t=d(this,St).pending;$(this,Oe,Ue(()=>t(d(this,et))))}else J(this,$e,wr).call(this)}catch(t){this.error(t)}},wr=function(){this.is_pending=!1;for(const e of d(this,Hn))ce(e,be),Xe(e);for(const e of d(this,Gn))ce(e,Qe),Xe(e);d(this,Hn).clear(),d(this,Gn).clear()},mr=function(e){var t=K,n=V,r=pe;ut(d(this,ze)),Fe(d(this,ze)),mn(d(this,ze).ctx);try{return e()}catch(o){return Qo(o),null}finally{ut(t),Fe(n),mn(r)}},eo=function(e){var t;if(!this.has_pending_snippet()){this.parent&&J(t=this.parent,$e,eo).call(t,e);return}$(this,Nt,d(this,Nt)+e),d(this,Nt)===0&&(J(this,$e,wr).call(this),d(this,Oe)&&sn(d(this,Oe),()=>{$(this,Oe,null)}),d(this,Bt)&&(d(this,et).before(d(this,Bt)),$(this,Bt,null)))};function Ls(e,t,n,r){const o=Nn()?yr:no;var i=e.filter(g=>!g.settled);if(n.length===0&&i.length===0){r(t.map(o));return}var s=K,l=js(),c=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(g=>g.promise)):null;function u(g){l();try{r(g)}catch(v){s.f&mt||Rt(v,s)}to()}if(n.length===0){c.then(()=>u(t.map(o)));return}function f(){l(),Promise.all(n.map(g=>Os(g))).then(g=>u([...t.map(o),...g])).catch(g=>Rt(g,s))}c?c.then(f):f()}function js(){var e=K,t=V,n=pe,r=Y;return function(o=!0){ut(e),Fe(t),mn(n),o&&r?.activate()}}function to(e=!0){ut(null),Fe(null),mn(null),e&&Y?.deactivate()}function qs(){var e=K.b,t=Y,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function yr(e){var t=ye|be,n=V!==null&&V.f&ye?V:null;return K!==null&&(K.f|=gn),{ctx:pe,deps:null,effects:null,equals:Ko,f:t,fn:e,reactions:null,rv:0,v:me,wv:0,parent:n??K,ac:null}}function Os(e,t,n){K===null&&us();var r=void 0,o=an(me),i=!V,s=new Map;return tl(()=>{var l,c=Ho();r=c.promise;try{Promise.resolve(e()).then(c.resolve,c.reject).finally(to)}catch(v){c.reject(v),to()}var u=Y;if(i){var f=qs();(l=s.get(u))==null||l.reject(en),s.delete(u),s.set(u,c)}const g=(v,p=void 0)=>{if(u.activate(),p)p!==en&&(o.f|=Mt,kn(o,p));else{o.f&Mt&&(o.f^=Mt),kn(o,v);for(const[k,h]of s){if(s.delete(k),k===u)break;h.reject(en)}}f&&f()};c.promise.then(g,v=>g(null,v||"unknown"))}),ao(()=>{for(const l of s.values())l.reject(en)}),new Promise(l=>{function c(u){function f(){u===r?l(o):c(r)}u.then(f,f)}c(r)})}function F(e){const t=yr(e);return Ei(t),t}function no(e){const t=yr(e);return t.equals=Zo,t}function $s(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Pe(t[n])}}function Us(e){for(var t=e.parent;t!==null;){if(!(t.f&ye))return t.f&mt?null:t;t=t.parent}return null}function ro(e){var t,n=K;ut(Us(e));try{e.f&=~Qt,$s(e),t=Ri(e)}finally{ut(n)}return t}function li(e){var t=ro(e);if(!e.equals(t)&&(e.wv=Ii(),(!(Y!=null&&Y.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){ce(e,ve);return}qt||(Ce!==null?(io()||Y!=null&&Y.is_fork)&&Ce.set(e,t):Gr(e))}function Fs(e){var t,n;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),(n=r.ac)==null||n.abort(en),r.teardown=rs,r.ac=null,Jn(r,0),lo(r))}function ci(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&xn(t)}let oo=new Set;const jt=new Map;let ui=!1;function an(e,t){var n={f:0,v:e,reactions:null,equals:Ko,rv:0,wv:0};return n}function G(e,t){const n=an(e);return Ei(n),n}function Hs(e,t=!1,n=!0){var r;const o=an(e);return t||(o.equals=Zo),wn&&n&&pe!==null&&pe.l!==null&&((r=pe.l).s??(r.s=[])).push(o),o}function m(e,t,n=!1){V!==null&&(!nt||V.f&Vo)&&Nn()&&V.f&(ye|wt|Hr|Vo)&&(He===null||!fn.call(He,e))&&ys();let r=n?Be(t):t;return kn(e,r)}function kn(e,t){if(!e.equals(t)){var n=e.v;qt?jt.set(e,t):jt.set(e,n),e.v=t;var r=yn.ensure();if(r.capture(e,n),e.f&ye){const o=e;e.f&be&&ro(o),Gr(o)}e.wv=Ii(),pi(e,be),Nn()&&K!==null&&K.f&ve&&!(K.f&(Je|Kt))&&(Ge===null?ol([e]):Ge.push(e)),!r.is_fork&&oo.size>0&&!ui&&Gs()}return t}function Gs(){ui=!1;for(const e of oo)e.f&ve&&ce(e,Qe),Zn(e)&&xn(e);oo.clear()}function di(e,t=1){var n=a(e),r=t===1?n++:n--;return m(e,n),r}function Vn(e){m(e,e.v+1)}function pi(e,t){var n=e.reactions;if(n!==null)for(var r=Nn(),o=n.length,i=0;i<o;i++){var s=n[i],l=s.f;if(!(!r&&s===K)){var c=(l&be)===0;if(c&&ce(s,t),l&ye){var u=s;Ce?.delete(u),l&Qt||(l&qe&&(s.f|=Qt),pi(u,Qe))}else c&&(l&wt&<!==null&<.add(s),Xe(s))}}}function Be(e){if(typeof e!="object"||e===null||Xt in e)return e;const t=Uo(e);if(t!==ts&&t!==ns)return e;var n=new Map,r=$r(e),o=G(0),i=cn,s=l=>{if(cn===i)return l();var c=V,u=cn;Fe(null),Ai(i);var f=l();return Fe(c),Ai(u),f};return r&&n.set("length",G(e.length)),new Proxy(e,{defineProperty(l,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&ws();var f=n.get(c);return f===void 0?s(()=>{var g=G(u.value);return n.set(c,g),g}):m(f,u.value,!0),!0},deleteProperty(l,c){var u=n.get(c);if(u===void 0){if(c in l){const f=s(()=>G(me));n.set(c,f),Vn(o)}}else m(u,me),Vn(o);return!0},get(l,c,u){var f;if(c===Xt)return e;var g=n.get(c),v=c in l;if(g===void 0&&(!v||(f=vn(l,c))!=null&&f.writable)&&(g=s(()=>{var k=Be(v?l[c]:me),h=G(k);return h}),n.set(c,g)),g!==void 0){var p=a(g);return p===me?void 0:p}return Reflect.get(l,c,u)},getOwnPropertyDescriptor(l,c){var u=Reflect.getOwnPropertyDescriptor(l,c);if(u&&"value"in u){var f=n.get(c);f&&(u.value=a(f))}else if(u===void 0){var g=n.get(c),v=g?.v;if(g!==void 0&&v!==me)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(l,c){var u;if(c===Xt)return!0;var f=n.get(c),g=f!==void 0&&f.v!==me||Reflect.has(l,c);if(f!==void 0||K!==null&&(!g||(u=vn(l,c))!=null&&u.writable)){f===void 0&&(f=s(()=>{var p=g?Be(l[c]):me,k=G(p);return k}),n.set(c,f));var v=a(f);if(v===me)return!1}return g},set(l,c,u,f){var g,v=n.get(c),p=c in l;if(r&&c==="length")for(var k=u;k<v.v;k+=1){var h=n.get(k+"");h!==void 0?m(h,me):k in l&&(h=s(()=>G(me)),n.set(k+"",h))}if(v===void 0)(!p||(g=vn(l,c))!=null&&g.writable)&&(v=s(()=>G(void 0)),m(v,Be(u)),n.set(c,v));else{p=v.v!==me;var W=s(()=>Be(u));m(v,W)}var y=Reflect.getOwnPropertyDescriptor(l,c);if(y!=null&&y.set&&y.set.call(f,u),!p){if(r&&typeof c=="string"){var P=n.get("length"),R=Number(c);Number.isInteger(R)&&R>=P.v&&m(P,R+1)}Vn(o)}return!0},ownKeys(l){a(o);var c=Reflect.ownKeys(l).filter(g=>{var v=n.get(g);return v===void 0||v.v!==me});for(var[u,f]of n)f.v!==me&&!(u in l)&&c.push(u);return c},setPrototypeOf(){ms()}})}function hi(e){try{if(e!==null&&typeof e=="object"&&Xt in e)return e[Xt]}catch{}return e}function Vs(e,t){return Object.is(hi(e),hi(t))}var fi,vi,gi,wi;function Ys(){if(fi===void 0){fi=window,vi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;gi=vn(t,"firstChild").get,wi=vn(t,"nextSibling").get,Fo(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Fo(n)&&(n.__t=void 0)}}function Ct(e=""){return document.createTextNode(e)}function Tt(e){return gi.call(e)}function Yn(e){return wi.call(e)}function A(e,t){return Tt(e)}function tt(e,t=!1){{var n=Tt(e);return n instanceof Comment&&n.data===""?Yn(n):n}}function I(e,t=1,n=!1){let r=e;for(;t--;)r=Yn(r);return r}function Ks(e){e.textContent=""}function mi(){return!1}function yi(e,t,n){return document.createElementNS($o,e,void 0)}let bi=!1;function Zs(){bi||(bi=!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 br(e){var t=V,n=K;Fe(null),ut(null);try{return e()}finally{Fe(t),ut(n)}}function Js(e,t,n,r=n){e.addEventListener(t,()=>br(n));const o=e.__on_r;o?e.__on_r=()=>{o(),r(!0)}:e.__on_r=()=>r(!0),Zs()}function Qs(e){K===null&&(V===null&&fs(),hs()),qt&&ps()}function Xs(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Pt(e,t,n){var r=K;r!==null&&r.f&Re&&(e|=Re);var o={ctx:pe,deps:null,nodes:null,f:e|be|qe,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{xn(o)}catch(l){throw Pe(o),l}else t!==null&&Xe(o);var i=o;if(n&&i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&gn)&&(i=i.first,e&wt&&e&Jt&&i!==null&&(i.f|=Jt)),i!==null&&(i.parent=r,r!==null&&Xs(i,r),V!==null&&V.f&ye&&!(e&Kt))){var s=V;(s.effects??(s.effects=[])).push(i)}return o}function io(){return V!==null&&!nt}function ao(e){const t=Pt(fr,null,!1);return ce(t,ve),t.teardown=e,t}function Kn(e){Qs();var t=K.f,n=!V&&(t&Je)!==0&&(t&Zt)===0;if(n){var r=pe;(r.e??(r.e=[])).push(e)}else return ki(e)}function ki(e){return Pt(Bn|as,e,!1)}function el(e){yn.ensure();const t=Pt(Kt|gn,e,!0);return(n={})=>new Promise(r=>{n.outro?sn(t,()=>{Pe(t),r(void 0)}):(Pe(t),r(void 0))})}function xi(e){return Pt(Bn,e,!1)}function tl(e){return Pt(Hr|gn,e,!0)}function so(e,t=0){return Pt(fr|t,e,!0)}function N(e,t=[],n=[],r=[]){Ls(r,t,n,o=>{Pt(fr,()=>e(...o.map(a)),!0)})}function kr(e,t=0){var n=Pt(wt|t,e,!0);return n}function Ue(e){return Pt(Je|gn,e,!0)}function Si(e){var t=e.teardown;if(t!==null){const n=qt,r=V;Wi(!0),Fe(null);try{t.call(null)}finally{Wi(n),Fe(r)}}}function lo(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const o=n.ac;o!==null&&br(()=>{o.abort(en)});var r=n.next;n.f&Kt?n.parent=null:Pe(n,t),n=r}}function nl(e){for(var t=e.first;t!==null;){var n=t.next;t.f&Je||Pe(t),t=n}}function Pe(e,t=!0){var n=!1;(t||e.f&Yo)&&e.nodes!==null&&e.nodes.end!==null&&(rl(e.nodes.start,e.nodes.end),n=!0),lo(e,t&&!n),Jn(e,0),ce(e,mt);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();Si(e);var o=e.parent;o!==null&&o.first!==null&&_i(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function rl(e,t){for(;e!==null;){var n=e===t?null:Yn(e);e.remove(),e=n}}function _i(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 sn(e,t,n=!0){var r=[];Ci(e,r,!0);var o=()=>{n&&Pe(e),t&&t()},i=r.length;if(i>0){var s=()=>--i||o();for(var l of r)l.out(s)}else o()}function Ci(e,t,n){if(!(e.f&Re)){e.f^=Re;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var o=e.first;o!==null;){var i=o.next,s=(o.f&Jt)!==0||(o.f&Je)!==0&&(e.f&wt)!==0;Ci(o,t,s?n:!1),o=i}}}function co(e){Ti(e,!0)}function Ti(e,t){if(e.f&Re){e.f^=Re,e.f&ve||(ce(e,be),Xe(e));for(var n=e.first;n!==null;){var r=n.next,o=(n.f&Jt)!==0||(n.f&Je)!==0;Ti(n,o?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const s of i)(s.is_global||t)&&s.in()}}function Pi(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var o=n===r?null:Yn(n);t.append(n),n=o}}let xr=!1,qt=!1;function Wi(e){qt=e}let V=null,nt=!1;function Fe(e){V=e}let K=null;function ut(e){K=e}let He=null;function Ei(e){V!==null&&(He===null?He=[e]:He.push(e))}let We=null,Ne=0,Ge=null;function ol(e){Ge=e}let Di=1,ln=0,cn=ln;function Ai(e){cn=e}function Ii(){return++Di}function Zn(e){var t=e.f;if(t&be)return!0;if(t&ye&&(e.f&=~Qt),t&Qe){for(var n=e.deps,r=n.length,o=0;o<r;o++){var i=n[o];if(Zn(i)&&li(i),i.wv>e.wv)return!0}t&qe&&Ce===null&&ce(e,ve)}return!1}function Mi(e,t,n=!0){var r=e.reactions;if(r!==null&&!(He!==null&&fn.call(He,e)))for(var o=0;o<r.length;o++){var i=r[o];i.f&ye?Mi(i,t,!1):t===i&&(n?ce(i,be):i.f&ve&&ce(i,Qe),Xe(i))}}function Ri(e){var t,n=We,r=Ne,o=Ge,i=V,s=He,l=pe,c=nt,u=cn,f=e.f;We=null,Ne=0,Ge=null,V=f&(Je|Kt)?null:e,He=null,mn(e.ctx),nt=!1,cn=++ln,e.ac!==null&&(br(()=>{e.ac.abort(en)}),e.ac=null);try{e.f|=Fr;var g=e.fn,v=g();e.f|=Zt;var p=e.deps,k=Y?.is_fork;if(We!==null){var h;if(k||Jn(e,Ne),p!==null&&Ne>0)for(p.length=Ne+We.length,h=0;h<We.length;h++)p[Ne+h]=We[h];else e.deps=p=We;if(io()&&e.f&qe)for(h=Ne;h<p.length;h++)((t=p[h]).reactions??(t.reactions=[])).push(e)}else!k&&p!==null&&Ne<p.length&&(Jn(e,Ne),p.length=Ne);if(Nn()&&Ge!==null&&!nt&&p!==null&&!(e.f&(ye|Qe|be)))for(h=0;h<Ge.length;h++)Mi(Ge[h],e);if(i!==null&&i!==e){if(ln++,i.deps!==null)for(let W=0;W<r;W+=1)i.deps[W].rv=ln;if(n!==null)for(const W of n)W.rv=ln;Ge!==null&&(o===null?o=Ge:o.push(...Ge))}return e.f&Mt&&(e.f^=Mt),v}catch(W){return Qo(W)}finally{e.f^=Fr,We=n,Ne=r,Ge=o,V=i,He=s,mn(l),nt=c,cn=u}}function il(e,t){let n=t.reactions;if(n!==null){var r=Qa.call(n,e);if(r!==-1){var o=n.length-1;o===0?n=t.reactions=null:(n[r]=n[o],n.pop())}}if(n===null&&t.f&ye&&(We===null||!fn.call(We,t))){var i=t;i.f&qe&&(i.f^=qe,i.f&=~Qt),Gr(i),Fs(i),Jn(i,0)}}function Jn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)il(e,n[r])}function xn(e){var t=e.f;if(!(t&mt)){ce(e,ve);var n=K,r=xr;K=e,xr=!0;try{t&(wt|Go)?nl(e):lo(e),Si(e);var o=Ri(e);e.teardown=typeof o=="function"?o:null,e.wv=Di;var i;Ja&&_s&&e.f&be&&e.deps}finally{xr=r,K=n}}}async function al(){await Promise.resolve(),Es()}function a(e){var t=e.f,n=(t&ye)!==0;if(V!==null&&!nt){var r=K!==null&&(K.f&mt)!==0;if(!r&&(He===null||!fn.call(He,e))){var o=V.deps;if(V.f&Fr)e.rv<ln&&(e.rv=ln,We===null&&o!==null&&o[Ne]===e?Ne++:We===null?We=[e]:We.push(e));else{(V.deps??(V.deps=[])).push(e);var i=e.reactions;i===null?e.reactions=[V]:fn.call(i,V)||i.push(V)}}}if(qt&&jt.has(e))return jt.get(e);if(n){var s=e;if(qt){var l=s.v;return(!(s.f&ve)&&s.reactions!==null||Bi(s))&&(l=ro(s)),jt.set(s,l),l}var c=(s.f&qe)===0&&!nt&&V!==null&&(xr||(V.f&qe)!==0),u=(s.f&Zt)===0;Zn(s)&&(c&&(s.f|=qe),li(s)),c&&!u&&(ci(s),zi(s))}if(Ce!=null&&Ce.has(e))return Ce.get(e);if(e.f&Mt)throw e.v;return e.v}function zi(e){if(e.f|=qe,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&ye&&!(t.f&qe)&&(ci(t),zi(t))}function Bi(e){if(e.v===me)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(jt.has(t)||t.f&ye&&Bi(t))return!0;return!1}function Qn(e){var t=nt;try{return nt=!0,e()}finally{nt=t}}const Sn=Symbol("events"),Ni=new Set,uo=new Set;function sl(e,t,n,r={}){function o(i){if(r.capture||po.call(t,i),!i.cancelBubble)return br(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?bt(()=>{t.addEventListener(e,o,r)}):t.addEventListener(e,o,r),o}function dt(e,t,n,r,o){var i={capture:r,passive:o},s=sl(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ao(()=>{t.removeEventListener(e,s,i)})}function un(e,t,n){(t[Sn]??(t[Sn]={}))[e]=n}function Sr(e){for(var t=0;t<e.length;t++)Ni.add(e[t]);for(var n of uo)n(e)}let Li=null;function po(e){var t,n,r=this,o=r.ownerDocument,i=e.type,s=((t=e.composedPath)==null?void 0:t.call(e))||[],l=s[0]||e.target;Li=e;var c=0,u=Li===e&&e[Sn];if(u){var f=s.indexOf(u);if(f!==-1&&(r===document||r===window)){e[Sn]=r;return}var g=s.indexOf(r);if(g===-1)return;f<=g&&(c=f)}if(l=s[c]||e.target,l!==r){Xa(e,"currentTarget",{configurable:!0,get(){return l||o}});var v=V,p=K;Fe(null),ut(null);try{for(var k,h=[];l!==null;){var W=l.assignedSlot||l.parentNode||l.host||null;try{var y=(n=l[Sn])==null?void 0:n[i];y!=null&&(!l.disabled||e.target===l)&&y.call(l,e)}catch(P){k?h.push(P):k=P}if(e.cancelBubble||W===r||W===null)break;l=W}if(k){for(let P of h)queueMicrotask(()=>{throw P});throw k}}finally{e[Sn]=r,delete e.currentTarget,Fe(v),ut(p)}}}var ji;const qi=((ji=globalThis?.window)==null?void 0:ji.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ll(e){return qi?.createHTML(e)??e}function Oi(e){var t=yi("template");return t.innerHTML=ll(e.replaceAll("<!>","<!---->")),t.content}function _n(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function L(e,t){var n=(t&Oo)!==0,r=(t&Za)!==0,o,i=!e.startsWith("<!>");return()=>{o===void 0&&(o=Oi(i?e:"<!>"+e),n||(o=Tt(o)));var s=r||vi?document.importNode(o,!0):o.cloneNode(!0);if(n){var l=Tt(s),c=s.lastChild;_n(l,c)}else _n(s,s);return s}}function cl(e,t,n="svg"){var r=!e.startsWith("<!>"),o=(t&Oo)!==0,i=`<${n}>${r?e:"<!>"+e}</${n}>`,s;return()=>{if(!s){var l=Oi(i),c=Tt(l);if(o)for(s=document.createDocumentFragment();Tt(c);)s.appendChild(Tt(c));else s=Tt(c)}var u=s.cloneNode(!0);if(o){var f=Tt(u),g=u.lastChild;_n(f,g)}else _n(u,u);return u}}function Ot(e,t){return cl(e,t,"svg")}function Wt(e=""){{var t=Ct(e+"");return _n(t,t),t}}function _r(){var e=document.createDocumentFragment(),t=document.createComment(""),n=Ct();return e.append(t,n),_n(t,n),e}function D(e,t){e!==null&&e.before(t)}const ul=["touchstart","touchmove"];function dl(e){return ul.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 pl(e,t){return hl(e,t)}const Cr=new Map;function hl(e,{target:t,anchor:n,props:r={},events:o,context:i,intro:s=!0,transformError:l}){Ys();var c=void 0,u=el(()=>{var f=n??t.appendChild(Ct());Ms(f,{pending:()=>{}},p=>{at({});var k=pe;i&&(k.c=i),o&&(r.$$events=o),c=e(p,r)||{},st()},l);var g=new Set,v=p=>{for(var k=0;k<p.length;k++){var h=p[k];if(!g.has(h)){g.add(h);var W=dl(h);for(const R of[t,document]){var y=Cr.get(R);y===void 0&&(y=new Map,Cr.set(R,y));var P=y.get(h);P===void 0?(R.addEventListener(h,po,{passive:W}),y.set(h,1)):y.set(h,P+1)}}}};return v(hr(Ni)),uo.add(v),()=>{var p;for(var k of g)for(const y of[t,document]){var h=Cr.get(y),W=h.get(k);--W==0?(y.removeEventListener(k,po),h.delete(k),h.size===0&&Cr.delete(y)):h.set(k,W)}uo.delete(v),f!==n&&((p=f.parentNode)==null||p.removeChild(f))}});return fl.set(c,u),c}let fl=new WeakMap;var pt,Et,Ve,Cn,Tr,Pr,ho;class $i{constructor(t,n=!0){Ze(this,"anchor"),U(this,pt,new Map),U(this,Et,new Map),U(this,Ve,new Map),U(this,Cn,new Set),U(this,Tr,!0),U(this,Pr,()=>{var r=Y;if(d(this,pt).has(r)){var o=d(this,pt).get(r),i=d(this,Et).get(o);if(i)co(i),d(this,Cn).delete(o);else{var s=d(this,Ve).get(o);s&&(d(this,Et).set(o,s.effect),d(this,Ve).delete(o),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[l,c]of d(this,pt)){if(d(this,pt).delete(l),l===r)break;const u=d(this,Ve).get(c);u&&(Pe(u.effect),d(this,Ve).delete(c))}for(const[l,c]of d(this,Et)){if(l===o||d(this,Cn).has(l))continue;const u=()=>{if(Array.from(d(this,pt).values()).includes(l)){var f=document.createDocumentFragment();Pi(c,f),f.append(Ct()),d(this,Ve).set(l,{effect:c,fragment:f})}else Pe(c);d(this,Cn).delete(l),d(this,Et).delete(l)};d(this,Tr)||!i?(d(this,Cn).add(l),sn(c,u,!1)):u()}}}),U(this,ho,r=>{d(this,pt).delete(r);const o=Array.from(d(this,pt).values());for(const[i,s]of d(this,Ve))o.includes(i)||(Pe(s.effect),d(this,Ve).delete(i))}),this.anchor=t,$(this,Tr,n)}ensure(t,n){var r=Y,o=mi();if(n&&!d(this,Et).has(t)&&!d(this,Ve).has(t))if(o){var i=document.createDocumentFragment(),s=Ct();i.append(s),d(this,Ve).set(t,{effect:Ue(()=>n(s)),fragment:i})}else d(this,Et).set(t,Ue(()=>n(this.anchor)));if(d(this,pt).set(r,t),o){for(const[l,c]of d(this,Et))l===t?r.unskip_effect(c):r.skip_effect(c);for(const[l,c]of d(this,Ve))l===t?r.unskip_effect(c.effect):r.skip_effect(c.effect);r.oncommit(d(this,Pr)),r.ondiscard(d(this,ho))}else d(this,Pr).call(this)}}pt=new WeakMap,Et=new WeakMap,Ve=new WeakMap,Cn=new WeakMap,Tr=new WeakMap,Pr=new WeakMap,ho=new WeakMap;function fo(e){pe===null&&cs(),wn&&pe.l!==null?vl(pe).m.push(e):Kn(()=>{const t=Qn(e);if(typeof t=="function")return t})}function vl(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function Z(e,t,n=!1){var r=new $i(e),o=n?Jt:0;function i(s,l){r.ensure(s,l)}kr(()=>{var s=!1;t((l,c=0)=>{s=!0,i(c,l)}),s||i(!1,null)},o)}function Tn(e,t){return t}function gl(e,t,n){for(var r=[],o=t.length,i,s=t.length,l=0;l<o;l++){let g=t[l];sn(g,()=>{if(i){if(i.pending.delete(g),i.done.add(g),i.pending.size===0){var v=e.outrogroups;vo(hr(i.done)),v.delete(i),v.size===0&&(e.outrogroups=null)}}else s-=1},!1)}if(s===0){var c=r.length===0&&n!==null;if(c){var u=n,f=u.parentNode;Ks(f),f.append(u),e.items.clear()}vo(t,!c)}else i={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(i)}function vo(e,t=!0){for(var n=0;n<e.length;n++)Pe(e[n],t)}var Wr;function $t(e,t,n,r,o,i=null){var s=e,l=new Map,c=(t&qo)!==0;if(c){var u=e;s=u.appendChild(Ct())}var f=null,g=no(()=>{var y=n();return $r(y)?y:y==null?[]:hr(y)}),v,p=!0;function k(){W.fallback=f,wl(W,v,s,t,r),f!==null&&(v.length===0?f.f&yt?(f.f^=yt,er(f,null,s)):co(f):sn(f,()=>{f=null}))}var h=kr(()=>{v=a(g);for(var y=v.length,P=new Set,R=Y,C=mi(),_=0;_<y;_+=1){var E=v[_],w=r(E,_),T=p?null:l.get(w);T?(T.v&&kn(T.v,E),T.i&&kn(T.i,_),C&&R.unskip_effect(T.e)):(T=ml(l,p?s:Wr??(Wr=Ct()),E,w,_,o,t,n),p||(T.e.f|=yt),l.set(w,T)),P.add(w)}if(y===0&&i&&!f&&(p?f=Ue(()=>i(s)):(f=Ue(()=>i(Wr??(Wr=Ct()))),f.f|=yt)),y>P.size&&ds(),!p)if(C){for(const[x,j]of l)P.has(x)||R.skip_effect(j.e);R.oncommit(k),R.ondiscard(()=>{})}else k();a(g)}),W={effect:h,items:l,outrogroups:null,fallback:f};p=!1}function Xn(e){for(;e!==null&&!(e.f&Je);)e=e.next;return e}function wl(e,t,n,r,o){var i,s,l,c,u,f,g,v,p,k=(r&Ua)!==0,h=t.length,W=e.items,y=Xn(e.effect.first),P,R=null,C,_=[],E=[],w,T,x,j;if(k)for(j=0;j<h;j+=1)w=t[j],T=o(w,j),x=W.get(T).e,x.f&yt||((s=(i=x.nodes)==null?void 0:i.a)==null||s.measure(),(C??(C=new Set)).add(x));for(j=0;j<h;j+=1){if(w=t[j],T=o(w,j),x=W.get(T).e,e.outrogroups!==null)for(const ke of e.outrogroups)ke.pending.delete(x),ke.done.delete(x);if(x.f&yt)if(x.f^=yt,x===y)er(x,null,n);else{var ne=R?R.next:y;x===e.effect.last&&(e.effect.last=x.prev),x.prev&&(x.prev.next=x.next),x.next&&(x.next.prev=x.prev),Ut(e,R,x),Ut(e,x,ne),er(x,ne,n),R=x,_=[],E=[],y=Xn(R.next);continue}if(x.f&Re&&(co(x),k&&((c=(l=x.nodes)==null?void 0:l.a)==null||c.unfix(),(C??(C=new Set)).delete(x))),x!==y){if(P!==void 0&&P.has(x)){if(_.length<E.length){var te=E[0],re;R=te.prev;var ge=_[0],he=_[_.length-1];for(re=0;re<_.length;re+=1)er(_[re],te,n);for(re=0;re<E.length;re+=1)P.delete(E[re]);Ut(e,ge.prev,he.next),Ut(e,R,ge),Ut(e,he,te),y=te,R=he,j-=1,_=[],E=[]}else P.delete(x),er(x,y,n),Ut(e,x.prev,x.next),Ut(e,x,R===null?e.effect.first:R.next),Ut(e,R,x),R=x;continue}for(_=[],E=[];y!==null&&y!==x;)(P??(P=new Set)).add(y),E.push(y),y=Xn(y.next);if(y===null)continue}x.f&yt||_.push(x),R=x,y=Xn(x.next)}if(e.outrogroups!==null){for(const ke of e.outrogroups)ke.pending.size===0&&(vo(hr(ke.done)),(u=e.outrogroups)==null||u.delete(ke));e.outrogroups.size===0&&(e.outrogroups=null)}if(y!==null||P!==void 0){var de=[];if(P!==void 0)for(x of P)x.f&Re||de.push(x);for(;y!==null;)!(y.f&Re)&&y!==e.fallback&&de.push(y),y=Xn(y.next);var se=de.length;if(se>0){var Gt=r&qo&&h===0?n:null;if(k){for(j=0;j<se;j+=1)(g=(f=de[j].nodes)==null?void 0:f.a)==null||g.measure();for(j=0;j<se;j+=1)(p=(v=de[j].nodes)==null?void 0:v.a)==null||p.fix()}gl(e,de,Gt)}}k&&bt(()=>{var ke,At;if(C!==void 0)for(x of C)(At=(ke=x.nodes)==null?void 0:ke.a)==null||At.apply()})}function ml(e,t,n,r,o,i,s,l){var c=s&Oa?s&Fa?an(n):Hs(n,!1,!1):null,u=s&$a?an(o):null;return{v:c,i:u,e:Ue(()=>(i(t,c??n,u??o,l),()=>{e.delete(r)}))}}function er(e,t,n){if(e.nodes)for(var r=e.nodes.start,o=e.nodes.end,i=t&&!(t.f&yt)?t.nodes.start:n;r!==null;){var s=Yn(r);if(i.before(r),r===o)return;r=s}}function Ut(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ui(e,t,n,r,o){var i,s=(i=t.$$slots)==null?void 0:i[n],l=!1;s===!0&&(s=t.children,l=!0),s===void 0||s(e,l?()=>r:r)}function Fi(e,t,n){var r=new $i(e);kr(()=>{var o=t()??null;r.ensure(o,o&&(i=>n(i,o)))},Jt)}function ht(e,t){xi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const o=yi("style");o.id=t.hash,o.textContent=t.code,r.appendChild(o)}})}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 o=e.length;for(t=0;t<o;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 yl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Hi(e))&&(r&&(r+=" "),r+=t);return r}function Pn(e){return typeof e=="object"?yl(e):e??""}const Gi=[...`
|
|
2
|
-
\r\f\xA0\v\uFEFF`];function bl(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var o of Object.keys(n))if(n[o])r=r?r+" "+o:o;else if(r.length)for(var i=o.length,s=0;(s=r.indexOf(o,s))>=0;){var l=s+i;(s===0||Gi.includes(r[s-1]))&&(l===r.length||Gi.includes(r[l]))?r=(s===0?"":r.substring(0,s))+r.substring(l+1):s=l}}return r===""?null:r}function ft(e,t,n,r,o,i){var s=e.__className;if(s!==n||s===void 0){var l=bl(n,r,i);l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l),e.__className=n}else if(i&&o!==i)for(var c in i){var u=!!i[c];(o==null||u!==!!o[c])&&e.classList.toggle(c,u)}return i}function Vi(e,t,n=!1){if(e.multiple){if(t==null)return;if(!$r(t))return ks();for(var r of e.options)r.selected=t.includes(Yi(r));return}for(r of e.options){var o=Yi(r);if(Vs(o,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function kl(e){var t=new MutationObserver(()=>{Vi(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ao(()=>{t.disconnect()})}function Yi(e){return"__value"in e?e.__value:e.value}const xl=Symbol("is custom element"),Sl=Symbol("is html");function _l(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function M(e,t,n,r){var o=Cl(e);o[t]!==(o[t]=n)&&(t==="loading"&&(e[ls]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Tl(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Cl(e){return e.__attributes??(e.__attributes={[xl]:e.nodeName.includes("-"),[Sl]:e.namespaceURI===$o})}var Ki=new Map;function Tl(e){var t=e.getAttribute("is")||e.nodeName,n=Ki.get(t);if(n)return n;Ki.set(t,n=[]);for(var r,o=e,i=Element.prototype;i!==o;){r=es(o);for(var s in r)r[s].set&&n.push(s);o=Uo(o)}return n}function Pl(e,t,n=t){var r=new WeakSet;Js(e,"input",async o=>{var i=o?e.defaultValue:e.value;if(i=go(e)?wo(i):i,n(i),Y!==null&&r.add(Y),await al(),i!==(i=t())){var s=e.selectionStart,l=e.selectionEnd,c=e.value.length;if(e.value=i??"",l!==null){var u=e.value.length;s===l&&l===c&&u>c?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=s,e.selectionEnd=Math.min(l,u))}}}),Qn(t)==null&&e.value&&(n(go(e)?wo(e.value):e.value),Y!==null&&r.add(Y)),so(()=>{var o=t();if(e===document.activeElement){var i=Vr??Y;if(r.has(i))return}go(e)&&o===wo(e.value)||e.type==="date"&&!o&&!e.value||o!==e.value&&(e.value=o??"")})}function go(e){var t=e.type;return t==="number"||t==="range"}function wo(e){return e===""?null:+e}function Zi(e,t){return e===t||e?.[Xt]===t}function Wl(e={},t,n,r){return xi(()=>{var o,i;return so(()=>{o=i,i=[],Qn(()=>{e!==n(...i)&&(t(e,...i),o&&Zi(n(...o),e)&&t(null,...o))})}),()=>{bt(()=>{i&&Zi(n(...i),e)&&t(null,...i)})}}),e}let Er=!1;function El(e){var t=Er;try{return Er=!1,[e(),Er]}finally{Er=t}}function Ee(e,t,n,r){var o,i=!wn||(n&Ga)!==0,s=(n&Ya)!==0,l=(n&Ka)!==0,c=r,u=!0,f=()=>(u&&(u=!1,c=l?Qn(r):r),c),g;if(s){var v=Xt in e||ss in e;g=((o=vn(e,t))==null?void 0:o.set)??(v&&t in e?C=>e[t]=C:void 0)}var p,k=!1;s?[p,k]=El(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=f(),g&&(i&&gs(),g(p)));var h;if(i?h=()=>{var C=e[t];return C===void 0?f():(u=!0,C)}:h=()=>{var C=e[t];return C!==void 0&&(c=void 0),C===void 0?c:C},i&&!(n&Va))return h;if(g){var W=e.$$legacy;return function(C,_){return arguments.length>0?((!i||!_||W||k)&&g(_?h():C),C):h()}}var y=!1,P=(n&Ha?yr:no)(()=>(y=!1,h()));s&&a(P);var R=K;return function(C,_){if(arguments.length>0){const E=_?a(P):i&&s?Be(C):C;return m(P,E),y=!0,c!==void 0&&(c=E),C}return qt&&y||R.f&mt?P.v:a(P)}}const Ji="wineater_consent",Dl=["wineater_uid","uniqueUserID","sessionID"];function Al(){try{const e=window.localStorage.getItem(Ji);return e==="granted"||e==="denied"?e:null}catch{return null}}let mo=G(Be(Al())),Dr=G(null),Ar=null;function Il(e){Ar=e}function Ml(e){m(Dr,e,!0)}function Qi(){var e;return((e=window?.wineaterData)==null?void 0:e.requireConsent)===!0?!0:a(Dr)===!0}function Rl(){return Ar?!1:a(Dr)!==null&&Qi()&&a(mo)===null}function Xi(){var e;return((e=window?.wineaterData)==null?void 0:e.tracking)===!1?!1:Ar?Ar():a(Dr)===null?!1:Qi()?a(mo)==="granted":!0}function zl(){for(const e of Dl){try{window.localStorage.removeItem(e)}catch{}try{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}catch{}}}const yo=new Set;function Bl(e){return yo.add(e),()=>yo.delete(e)}function ea(e){m(mo,e,!0);try{window.localStorage.setItem(Ji,e)}catch{}e==="denied"&&zl();for(const t of yo)t(e)}const Nl=/^[a-z0-9][a-z0-9-]*\.myshopify\.com$/;function Ll(e){if(!e||typeof e!="object")return null;const t=e,n=String(t.shop??"").trim().toLowerCase();if(!Nl.test(n))return null;const r=typeof t.root=="string"&&t.root.startsWith("/")?t.root:"/";return{shop:n,locale:typeof t.locale=="string"&&t.locale?t.locale:null,currency:typeof t.currency=="string"&&t.currency?t.currency:null,root:r.endsWith("/")?r:`${r}/`,config:t.config&&typeof t.config=="object"?t.config:null,color:typeof t.color=="string"&&/^#[0-9a-f]{3,8}$/i.test(t.color)?t.color:null}}let bo;function rt(){var e;return bo===void 0&&(bo=typeof window>"u"?null:Ll((e=window.wineaterData)==null?void 0:e.shopify)),bo}function ta(e){var t;const n=(t=/[?&]variant=(\d+)/.exec(e.url??""))==null?void 0:t[1];if(n)return n;const r=String(e.itemId??"").trim();return/^\d+$/.test(r)?r:null}function jl(e,t,n){const r=o=>(o??"").toLowerCase().split("-")[0];for(const o of[r(e),r(t)])if(o&&n.includes(o))return o;return"en"}function ql(e,t){return e===429&&t?.code==="quota_exceeded"}class na extends Error{constructor(){super("quota_exceeded"),this.name="QuotaExceededError"}}let ko=null;function ra(){var e,t;if(ko)return ko;let n=null;try{n=window.sessionStorage.getItem("wineater_sf_session")}catch{}if(!n){n=((t=(e=globalThis.crypto)==null?void 0:e.randomUUID)==null?void 0:t.call(e))??`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;try{window.sessionStorage.setItem("wineater_sf_session",n)}catch{}}return ko=n,n}function Ol(){var e;try{const t=(e=window.Shopify)==null?void 0:e.customerPrivacy;if(t&&typeof t.analyticsProcessingAllowed=="function")return t.analyticsProcessingAllowed()===!0}catch{}return!1}function $l(){try{const e=window.Shopify;if(e!=null&&e.customerPrivacy||typeof e?.loadFeatures!="function")return;e.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],()=>{})}catch{}}function oa(){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 xo(e,t,n){let r="";if(n){const o=new Date;o.setTime(o.getTime()+n*24*60*60*1e3),r="; expires="+o.toUTCString()}document.cookie=e+"="+(t||"")+r+"; path=/; secure; samesite=strict"}function So(e){const t=e+"=",n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null}function Ul(){const e="uniqueUserID";let t=So(e);return t||(t=oa(),xo(e,t,365)),t}function De(e,t,n={},r={}){var o;const i=(o=rt())==null?void 0:o.shop,s=i?"https://api.wineater.com/shopify/storefront/events":"https://api.wineater.com/api/widget-events",l=i?{shop:i}:{},c=new Date().toISOString(),u=navigator.language.split("-")[1]||null,f=navigator.language.split("-")[0]||"en";if(!Xi()){const h={...l,event_type:e,store_id:t,event_time:c,data:n,meta:{...r,anonymous:!0},device_info:{device:window.innerWidth<768?"mobile":"desktop"},region:u,language:f};return fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h),keepalive:!0}).catch(W=>{console.debug("[wineater] anonymous event failed:",W?.message)})}let g=So("uniqueUserID");g||(g=Ul());const v={user_agent:navigator.userAgent,screen_width:window.screen.width,screen_height:window.screen.height,language:navigator.language,platform:navigator.platform};let p=So("sessionID");p||(p=oa(),xo("sessionID",p,1));const k={...l,event_type:e,store_id:t,session_id:p,event_time:c,data:n,meta:{...r,user_id:g},device_info:v,region:u,language:f};return fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(k),keepalive:!!i}).then(h=>h.ok?h.json():h.json().then(W=>{throw new Error(W.message||"Failed to track widget event")})).catch(h=>{throw console.error("Widget event tracking error:",h),h})}function Fl(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 tr(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 Hl(e){return{recommendations:(e.recommendations||[]).filter(Boolean).map(tr),hasMore:!!e.has_more}}const nr="wineater_uid",Gl=365;let Ir=null;function ia(){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 aa=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function sa(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 Vl(e,t){try{const n=new Date(Date.now()+Gl*864e5).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; expires=${n}; path=/; SameSite=Lax; Secure`}catch{}}function la(){return Xi()}Bl(e=>{e==="denied"&&(Ir=null)});function _o(){if(!la())return null;if(Ir)return Ir;let e=null;try{e=window.localStorage.getItem(nr)}catch{}(!e||!aa.test(e))&&(e=sa(nr)),(!e||!aa.test(e))&&(e=ia());try{window.localStorage.setItem(nr,e)}catch{}return sa(nr)!==e&&Vl(nr,e),Ir=e,e}function ca(){return ia()}const Yl=2e3,ua=100;let Mr=null,Wn=[],rr=null,da=!1;function Kl(e){Mr=e,!(da||typeof document>"u")&&(da=!0,document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&or()}),window.addEventListener("pagehide",()=>void or()))}function dn(e){var t;if(!(!la()||!Mr)&&!(!((t=e.sku_ids)!=null&&t.length)&&e.type!=="more")){if(Wn.push(e),Wn.length>=ua){or();return}rr||(rr=setTimeout(()=>void or(),Yl))}}async function or(){if(rr&&(clearTimeout(rr),rr=null),!Mr||Wn.length===0)return;const e=_o();if(!e){Wn=[];return}const t=Wn.splice(0,ua);try{await Mr({uid:e,events:t})}catch(n){console.debug("[wineater] feedback flush failed:",n?.message)}Wn.length>0&&or()}const Zl="X-Wineater-Uid";class pa extends Error{constructor(t,n){super(`API call failed with status ${t}: ${n?.message||"No additional error information"}`),Ze(this,"status"),Ze(this,"data"),this.status=t,this.data=n}}var ir,Rr,En,ar,sr,Se,Co,Ft,To,Po,ha;class Jl{constructor(t,n="1"){U(this,Se),U(this,ir,"https://api.wineater.com/"),U(this,Rr),U(this,En),U(this,ar,!1),U(this,sr,null),$(this,Rr,t),$(this,En,n)}async getInstantRecommendations(){var t;try{const n=(t=rt())==null?void 0:t.shop,r=n?"shopify/storefront/instant":d(this,En)==="2"?"dish/recommendations/instant/v2":"dish/recommendations/instant",{data:o,headers:i}=await J(this,Se,To).call(this,r,n?J(this,Se,Po).call(this,{}):{});return{wines:o.filter(Boolean).map(Fl),profileHash:i.get("X-Wineater-Profile")||null}}catch(n){throw new Error(`Error in getInstantRecommendations: ${n.message}`)}}async getWineRecommendationsSearch(t,n){if(rt())return J(this,Se,ha).call(this,t,n);try{const r=d(this,En)==="2"?"dish/recommendations/search/v2":"dish/recommendations/search";return(await J(this,Se,Ft).call(this,r,n?{text:t,query_id:n}:{text:t})).filter(Boolean).map(tr)}catch(r){throw new Error(`Error in getWineRecommendations: ${r.message}`)}}async searchStream(t,n,r){const o=()=>this.getWineRecommendationsSearch(t,n);if(d(this,En)!=="2"||rt())return o();let i;try{i=await fetch(`${d(this,ir)}dish/recommendations/search/v2/stream`,{method:"POST",headers:J(this,Se,Co).call(this),body:JSON.stringify(n?{text:t,query_id:n}:{text:t})})}catch{return o()}if(!i.ok||!i.body)return o();const s=i.body.getReader(),l=new TextDecoder;let c="",u=null;const f=g=>(g??[]).filter(Boolean).map(tr);try{for(;;){const{done:g,value:v}=await s.read();v&&(c+=l.decode(v,{stream:!0}));const p=c.split(`
|
|
3
|
-
`);c=g?"":p.pop()??"";for(const k of g?p.filter(Boolean):p){if(!k.trim())continue;const h=JSON.parse(k);if(h.type==="wines")u=f(h.recommendations).map(W=>({...W,reason:""})),r(u);else{if(h.type==="final")return f(h.recommendations);if(h.type==="error")return u||o()}}if(g)break}}catch{return u||o()}return u??o()}async getMoreWineRecommendations(t,n){try{const r=await J(this,Se,Ft).call(this,"dish/recommendations/search/v2/more",{text:t,exclude_ids:n});return Hl(r)}catch(r){throw new Error(`Error in getMoreWineRecommendations: ${r.message}`)}}async getSimilarWines(t){try{return(await J(this,Se,Ft).call(this,"dish/recommendations/similar",{id:t})).filter(Boolean).map(tr)}catch(n){throw new Error(`Error in getSimilarWines: ${n.message}`)}}async postEvents(t){await J(this,Se,Ft).call(this,"events",t,{keepalive:!0})}setLanguage(t){$(this,sr,t)}async getShopifyConfig(){const t=rt().shop;return J(this,Se,Ft).call(this,`shopify/storefront/config?shop=${encodeURIComponent(t)}`,void 0,{method:"GET"})}async getStoreConfig(){try{return await J(this,Se,Ft).call(this,"stores/store",{})}catch(t){throw console.error("Error fetching store configuration:",t),t}}}ir=new WeakMap,Rr=new WeakMap,En=new WeakMap,ar=new WeakMap,sr=new WeakMap,Se=new WeakSet,Co=function(){const e={"Content-Type":"application/json",Authorization:`Bearer ${d(this,Rr)}`};if(!d(this,ar)){const t=_o();t&&(e[Zl]=t)}return e},Ft=async function(e,t,n={}){return(await J(this,Se,To).call(this,e,t,n)).data},To=async function(e,t,n={}){const r=()=>({method:n.method??"POST",headers:J(this,Se,Co).call(this),body:t===void 0?void 0:JSON.stringify(t),keepalive:n.keepalive});let o;try{o=await fetch(`${d(this,ir)}${e}`,r())}catch(l){if(d(this,ar)||!_o())throw l;$(this,ar,!0),o=await fetch(`${d(this,ir)}${e}`,r())}const i=await o.text();let s=null;try{s=i?JSON.parse(i):null}catch{if(o.ok)throw new Error("API returned invalid JSON")}if(!o.ok)throw new pa(o.status,s);return{data:s,headers:o.headers}},Po=function(e){const t=rt().shop;return d(this,sr)?{...e,shop:t,language:d(this,sr)}:{...e,shop:t}},ha=async function(e,t){try{const n=J(this,Se,Po).call(this,{text:e,session_id:ra(),...t?{query_id:t}:{}});return(await J(this,Se,Ft).call(this,"shopify/storefront/search",n)??[]).filter(Boolean).map(tr)}catch(n){throw n instanceof pa&&ql(n.status,n.data)?new na:new Error(`Error in getWineRecommendations: ${n.message}`)}};const Ql="HeUw6IXuhvz6tRuXdPEGEbj3SGQ3Q2YtEc1Z8jd41Kg9LtyPb4Epu0to31SYIadG";var fa;const va=((fa=window?.wineaterData)==null?void 0:fa.CLIENT_TOKEN)||Ql;var ga;const Wo=String(((ga=window?.wineaterData)==null?void 0:ga.apiVersion)||"1"),Dt=new Jl(va,Wo);Kl(e=>Dt.postEvents(e));function Xl(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 Eo=`${Xl(va)}:${Wo}`,wa="wineater:v1:";function Do(e,t){try{const n=window.localStorage.getItem(wa+e);if(!n)return null;const r=JSON.parse(n);return Date.now()-r.savedAt>t?null:r.value}catch{return null}}function Ao(e,t){try{const n={savedAt:Date.now(),value:t};window.localStorage.setItem(wa+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"},ec={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",addToCart:"Ajouter au panier",addedToCart:"Ajout\xE9",sommelierResting:"Notre sommelier se repose. D\xE9couvrez notre s\xE9lection ci-dessous."},tc={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",addToCart:"A\xF1adir al carrito",addedToCart:"A\xF1adido",sommelierResting:"Nuestro sumiller est\xE1 descansando. Descubre nuestra selecci\xF3n."},nc={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",addToCart:"Add to cart",addedToCart:"Added",sommelierResting:"Our sommelier is resting. Browse our picks below."},rc={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",addToCart:"Dodaj u korpu",addedToCart:"Dodato",sommelierResting:"Na\u0161 somelijer se odmara. Pogledajte na\u0161 izbor ispod."},oc={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",addToCart:"In den Warenkorb",addedToCart:"Hinzugef\xFCgt",sommelierResting:"Unser Sommelier macht gerade Pause. Entdecken Sie unsere Auswahl."},ic={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",addToCart:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0432 \u043A\u043E\u0448\u0438\u043A",addedToCart:"\u0414\u043E\u0434\u0430\u043D\u043E",sommelierResting:"\u041D\u0430\u0448 \u0441\u043E\u043C\u0435\u043B\u044C\u0454 \u0432\u0456\u0434\u043F\u043E\u0447\u0438\u0432\u0430\u0454. \u041F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u044C\u0442\u0435 \u043D\u0430\u0448\u0443 \u0434\u043E\u0431\u0456\u0440\u043A\u0443 \u043D\u0438\u0436\u0447\u0435."},ac={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",addToCart:"\u0412 \u043A\u043E\u0440\u0437\u0438\u043D\u0443",addedToCart:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u043E",sommelierResting:"\u041D\u0430\u0448 \u0441\u043E\u043C\u0435\u043B\u044C\u0435 \u043E\u0442\u0434\u044B\u0445\u0430\u0435\u0442. \u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043D\u0430\u0448\u0443 \u043F\u043E\u0434\u0431\u043E\u0440\u043A\u0443 \u043D\u0438\u0436\u0435."},sc={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",addToCart:"\u0421\u0435\u0431\u0435\u0442\u043A\u0435 \u049B\u043E\u0441\u0443",addedToCart:"\u049A\u043E\u0441\u044B\u043B\u0434\u044B",sommelierResting:"\u0411\u0456\u0437\u0434\u0456\u04A3 \u0441\u043E\u043C\u0435\u043B\u044C\u0435 \u0434\u0435\u043C\u0430\u043B\u044B\u043F \u0436\u0430\u0442\u044B\u0440. \u0422\u04E9\u043C\u0435\u043D\u0434\u0435\u0433\u0456 \u0442\u0430\u04A3\u0434\u0430\u0443\u044B\u043C\u044B\u0437\u0434\u044B \u049B\u0430\u0440\u0430\u04A3\u044B\u0437."},lc={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",addToCart:"Adicionar ao carrinho",addedToCart:"Adicionado",sommelierResting:"Nosso sommelier est\xE1 descansando. Veja nossas sugest\xF5es abaixo."},ma={fr:ec,es:tc,en:nc,sr:rc,de:oc,ukr:ic,ru:ac,kk:sc,pt:lc};function cc(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 uc={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 Ua=Object.defineProperty,ji=e=>{throw TypeError(e)},Fa=(e,t,n)=>t in e?Ua(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ve=(e,t,n)=>Fa(e,typeof t!="symbol"?t+"":t,n),Ur=(e,t,n)=>t.has(e)||ji("Cannot "+n),d=(e,t,n)=>(Ur(e,t,"read from private field"),n?n.call(e):t.get(e)),U=(e,t,n)=>t.has(e)?ji("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,r)=>(Ur(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),K=(e,t,n)=>(Ur(e,t,"access private method"),n);const Ha="5";var qi;typeof window<"u"&&((qi=window.__svelte??(window.__svelte={})).v??(qi.v=new Set)).add(Ha);const Ga=1,Va=2,Oi=4,Ya=8,Ka=16,Ja=1,Za=2,Qa=4,Xa=8,es=16,$i=1,ts=2,we=Symbol(),Ui="http://www.w3.org/1999/xhtml",ns=!1;var Fr=Array.isArray,rs=Array.prototype.indexOf,fn=Array.prototype.includes,vr=Array.from,is=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,os=Object.getOwnPropertyDescriptors,as=Object.prototype,ss=Array.prototype,Fi=Object.getPrototypeOf,Hi=Object.isExtensible;const ls=()=>{};function cs(e){for(var t=0;t<e.length;t++)e[t]()}function Gi(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function us(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const me=2,Ln=4,gr=8,Vi=1<<24,gt=16,Ye=32,Vt=64,Hr=128,ze=512,ve=1024,ye=2048,Ke=4096,Ie=8192,wt=16384,Yt=32768,Kt=65536,Yi=1<<17,Ki=1<<18,gn=1<<19,ds=1<<20,mt=1<<25,Jt=65536,Gr=1<<21,Vr=1<<22,Mt=1<<23,Zt=Symbol("$state"),ps=Symbol("legacy props"),hs=Symbol(""),Qt=new class extends Error{constructor(){super(...arguments),Ve(this,"name","StaleReactionError"),Ve(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function fs(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function vs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function gs(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function ws(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ms(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ys(e){throw new Error("https://svelte.dev/e/effect_orphan")}function bs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ks(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function xs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ss(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function _s(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Cs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ts(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Ps(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ji(e){return e===this.v}function Ws(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Zi(e){return!Ws(e,this.v)}let wn=!1,Ds=!1;function Es(){wn=!0}let ue=null;function mn(e){ue=e}function it(e,t=!1,n){ue={p:ue,i:!1,c:null,e:null,s:e,x:null,l:wn&&!t?{s:null,u:null,$:[]}:null}}function ot(e){var t=ue,n=t.e;if(n!==null){t.e=null;for(var r of n)So(r)}return e!==void 0&&(t.x=e),t.i=!0,ue=t.p,e??{}}function Nn(){return!wn||ue!==null&&ue.l===null}let Xt=[];function Qi(){var e=Xt;Xt=[],cs(e)}function yt(e){if(Xt.length===0&&!jn){var t=Xt;queueMicrotask(()=>{t===Xt&&Qi()})}Xt.push(e)}function As(){for(;Xt.length>0;)Qi()}function Xi(e){var t=J;if(t===null)return V.f|=Mt,e;if(!(t.f&Yt)&&!(t.f&Ln))throw e;Rt(e,t)}function Rt(e,t){for(;t!==null;){if(t.f&Hr){if(!(t.f&Yt))throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Is=-7169;function le(e,t){e.f=e.f&Is|t}function Yr(e){e.f&ze||e.deps===null?le(e,ve):le(e,Ke)}function eo(e){if(e!==null)for(const t of e)!(t.f&me)||!(t.f&Jt)||(t.f^=Jt,eo(t.deps))}function to(e,t,n){e.f&ye?t.add(e):e.f&Ke&&n.add(e),eo(e.deps),le(e,ve)}const wr=new Set;let Y=null,Kr=null,Se=null,_e=[],mr=null,Jr=!1,jn=!1;var qn,On,Bt,en,$n,Un,tn,bt,Fn,kt,Zr,Qr,Xr,no;const Ms=class Ia{constructor(){U(this,kt),Ve(this,"current",new Map),Ve(this,"previous",new Map),U(this,qn,new Set),U(this,On,new Set),U(this,Bt,0),U(this,en,0),U(this,$n,null),U(this,Un,new Set),U(this,tn,new Set),U(this,bt,new Map),Ve(this,"is_fork",!1),U(this,Fn,!1)}skip_effect(t){d(this,bt).has(t)||d(this,bt).set(t,{d:[],m:[]})}unskip_effect(t){var n=d(this,bt).get(t);if(n){d(this,bt).delete(t);for(var r of n.d)le(r,ye),Je(r);for(r of n.m)le(r,Ke),Je(r)}}process(t){var n;_e=[],this.apply();var r=[],i=[];for(const o of t)K(this,kt,Qr).call(this,o,r,i);if(K(this,kt,Zr).call(this)){K(this,kt,Xr).call(this,i),K(this,kt,Xr).call(this,r);for(const[o,s]of d(this,bt))so(o,s)}else{for(const o of d(this,qn))o();d(this,qn).clear(),d(this,Bt)===0&&K(this,kt,no).call(this),Kr=this,Y=null,io(i),io(r),d(this,Un).clear(),d(this,tn).clear(),Kr=null,(n=d(this,$n))==null||n.resolve()}Se=null}capture(t,n){n!==we&&!this.previous.has(t)&&this.previous.set(t,n),t.f&Mt||(this.current.set(t,t.v),Se?.set(t,t.v))}activate(){Y=this,this.apply()}deactivate(){Y===this&&(Y=null,Se=null)}flush(){if(this.activate(),_e.length>0){if(ro(),Y!==null&&Y!==this)return}else d(this,Bt)===0&&this.process([]);this.deactivate()}discard(){for(const t of d(this,On))t(this);d(this,On).clear()}increment(t){q(this,Bt,d(this,Bt)+1),t&&q(this,en,d(this,en)+1)}decrement(t){q(this,Bt,d(this,Bt)-1),t&&q(this,en,d(this,en)-1),!d(this,Fn)&&(q(this,Fn,!0),yt(()=>{q(this,Fn,!1),K(this,kt,Zr).call(this)?_e.length>0&&this.flush():this.revive()}))}revive(){for(const t of d(this,Un))d(this,tn).delete(t),le(t,ye),Je(t);for(const t of d(this,tn))le(t,Ke),Je(t);this.flush()}oncommit(t){d(this,qn).add(t)}ondiscard(t){d(this,On).add(t)}settled(){return(d(this,$n)??q(this,$n,Gi())).promise}static ensure(){if(Y===null){const t=Y=new Ia;wr.add(Y),jn||yt(()=>{Y===t&&t.flush()})}return Y}apply(){}};qn=new WeakMap,On=new WeakMap,Bt=new WeakMap,en=new WeakMap,$n=new WeakMap,Un=new WeakMap,tn=new WeakMap,bt=new WeakMap,Fn=new WeakMap,kt=new WeakSet,Zr=function(){return this.is_fork||d(this,en)>0},Qr=function(e,t,n){e.f^=ve;for(var r=e.first;r!==null;){var i=r.f,o=(i&(Ye|Vt))!==0,s=o&&(i&ve)!==0,l=s||(i&Ie)!==0||d(this,bt).has(r);if(!l&&r.fn!==null){o?r.f^=ve:i&Ln?t.push(r):Jn(r)&&(i>&&d(this,tn).add(r),Sn(r));var c=r.first;if(c!==null){r=c;continue}}for(;r!==null;){var u=r.next;if(u!==null){r=u;break}r=r.parent}}},Xr=function(e){for(var t=0;t<e.length;t+=1)to(e[t],d(this,Un),d(this,tn))},no=function(){var e;if(wr.size>1){this.previous.clear();var t=Se,n=!0;for(const i of wr){if(i===this){n=!1;continue}const o=[];for(const[l,c]of this.current){if(i.current.has(l))if(n&&c!==i.current.get(l))i.current.set(l,c);else continue;o.push(l)}if(o.length===0)continue;const s=[...i.current.keys()].filter(l=>!this.current.has(l));if(s.length>0){var r=_e;_e=[];const l=new Set,c=new Map;for(const u of o)oo(u,s,l,c);if(_e.length>0){Y=i,i.apply();for(const u of _e)K(e=i,kt,Qr).call(e,u,[],[]);i.deactivate()}_e=r}}Y=null,Se=t}d(this,bt).clear(),wr.delete(this)};let yn=Ms;function Rs(e){var t=jn;jn=!0;try{for(var n;;){if(As(),_e.length===0&&(Y?.flush(),_e.length===0))return mr=null,n;ro()}}finally{jn=t}}function ro(){Jr=!0;var e=null;try{for(var t=0;_e.length>0;){var n=yn.ensure();if(t++>1e3){var r,i;Bs()}n.process(_e),jt.clear()}}finally{_e=[],Jr=!1,mr=null}}function Bs(){try{bs()}catch(e){Rt(e,mr)}}let at=null;function io(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(wt|Ie))&&Jn(r)&&(at=new Set,Sn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&To(r),at?.size>0)){jt.clear();for(const i of at){if(i.f&(wt|Ie))continue;const o=[i];let s=i.parent;for(;s!==null;)at.has(s)&&(at.delete(s),o.push(s)),s=s.parent;for(let l=o.length-1;l>=0;l--){const c=o[l];c.f&(wt|Ie)||Sn(c)}}at.clear()}}at=null}}function oo(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;o&me?oo(i,t,n,r):o&(Vr|gt)&&!(o&ye)&&ao(i,t,r)&&(le(i,ye),Je(i))}}function ao(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(fn.call(t,i))return!0;if(i.f&me&&ao(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Je(e){var t=mr=e,n=t.b;if(n!=null&&n.is_pending&&e.f&(Ln|gr|Vi)&&!(e.f&Yt)){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(Jr&&t===J&&r>&&!(r&Ki)&&r&Yt)return;if(r&(Vt|Ye)){if(!(r&ve))return;t.f^=ve}}_e.push(t)}function so(e,t){if(!(e.f&Ye&&e.f&ve)){e.f&ye?t.d.push(e):e.f&Ke&&t.m.push(e),le(e,ve);for(var n=e.first;n!==null;)so(n,t),n=n.next}}function zs(e){let t=0,n=rn(0),r;return()=>{si()&&(a(n),ci(()=>(t===0&&(r=Qn(()=>e(()=>Yn(n)))),t+=1,()=>{yt(()=>{t-=1,t===0&&(r?.(),r=void 0,Yn(n))})})))}}var Ls=Kt|gn;function Ns(e,t,n,r){new $s(e,t,n,r)}var Ze,lo,xt,bn,Me,St,Le,st,zt,nn,Lt,Hn,Gn,Vn,Nt,ei,Ne,js,qs,Os,ti,yr,br,ni;class $s{constructor(t,n,r,i){U(this,Ne),Ve(this,"parent"),Ve(this,"is_pending",!1),Ve(this,"transform_error"),U(this,Ze),U(this,lo,null),U(this,xt),U(this,bn),U(this,Me),U(this,St,null),U(this,Le,null),U(this,st,null),U(this,zt,null),U(this,nn,0),U(this,Lt,0),U(this,Hn,!1),U(this,Gn,new Set),U(this,Vn,new Set),U(this,Nt,null),U(this,ei,zs(()=>(q(this,Nt,rn(d(this,nn))),()=>{q(this,Nt,null)})));var o;q(this,Ze,t),q(this,xt,n),q(this,bn,s=>{var l=J;l.b=this,l.f|=Hr,r(s)}),this.parent=J.b,this.transform_error=i??((o=this.parent)==null?void 0:o.transform_error)??(s=>s),q(this,Me,Sr(()=>{K(this,Ne,ti).call(this)},Ls))}defer_effect(t){to(t,d(this,Gn),d(this,Vn))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!d(this,xt).pending}update_pending_count(t){K(this,Ne,ni).call(this,t),q(this,nn,d(this,nn)+t),!(!d(this,Nt)||d(this,Hn))&&(q(this,Hn,!0),yt(()=>{q(this,Hn,!1),d(this,Nt)&&kn(d(this,Nt),d(this,nn))}))}get_effect_pending(){return d(this,ei).call(this),a(d(this,Nt))}error(t){var n=d(this,xt).onerror;let r=d(this,xt).failed;if(!n&&!r)throw t;d(this,St)&&(Ce(d(this,St)),q(this,St,null)),d(this,Le)&&(Ce(d(this,Le)),q(this,Le,null)),d(this,st)&&(Ce(d(this,st)),q(this,st,null));var i=!1,o=!1;const s=()=>{if(i){Ps();return}i=!0,o&&Cs(),d(this,st)!==null&&on(d(this,st),()=>{q(this,st,null)}),K(this,Ne,br).call(this,()=>{yn.ensure(),K(this,Ne,ti).call(this)})},l=c=>{try{o=!0,n?.(c,s),o=!1}catch(u){Rt(u,d(this,Me)&&d(this,Me).parent)}r&&q(this,st,K(this,Ne,br).call(this,()=>{yn.ensure();try{return je(()=>{var u=J;u.b=this,u.f|=Hr,r(d(this,Ze),()=>c,()=>s)})}catch(u){return Rt(u,d(this,Me).parent),null}}))};yt(()=>{var c;try{c=this.transform_error(t)}catch(u){Rt(u,d(this,Me)&&d(this,Me).parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(l,u=>Rt(u,d(this,Me)&&d(this,Me).parent)):l(c)})}}Ze=new WeakMap,lo=new WeakMap,xt=new WeakMap,bn=new WeakMap,Me=new WeakMap,St=new WeakMap,Le=new WeakMap,st=new WeakMap,zt=new WeakMap,nn=new WeakMap,Lt=new WeakMap,Hn=new WeakMap,Gn=new WeakMap,Vn=new WeakMap,Nt=new WeakMap,ei=new WeakMap,Ne=new WeakSet,js=function(){try{q(this,St,je(()=>d(this,bn).call(this,d(this,Ze))))}catch(e){this.error(e)}},qs=function(e){const t=d(this,xt).failed;t&&q(this,st,je(()=>{t(d(this,Ze),()=>e,()=>()=>{})}))},Os=function(){const e=d(this,xt).pending;e&&(this.is_pending=!0,q(this,Le,je(()=>e(d(this,Ze)))),yt(()=>{var t=q(this,zt,document.createDocumentFragment()),n=_t();t.append(n),q(this,St,K(this,Ne,br).call(this,()=>(yn.ensure(),je(()=>d(this,bn).call(this,n))))),d(this,Lt)===0&&(d(this,Ze).before(t),q(this,zt,null),on(d(this,Le),()=>{q(this,Le,null)}),K(this,Ne,yr).call(this))}))},ti=function(){try{if(this.is_pending=this.has_pending_snippet(),q(this,Lt,0),q(this,nn,0),q(this,St,je(()=>{d(this,bn).call(this,d(this,Ze))})),d(this,Lt)>0){var e=q(this,zt,document.createDocumentFragment());Do(d(this,St),e);const t=d(this,xt).pending;q(this,Le,je(()=>t(d(this,Ze))))}else K(this,Ne,yr).call(this)}catch(t){this.error(t)}},yr=function(){this.is_pending=!1;for(const e of d(this,Gn))le(e,ye),Je(e);for(const e of d(this,Vn))le(e,Ke),Je(e);d(this,Gn).clear(),d(this,Vn).clear()},br=function(e){var t=J,n=V,r=ue;lt(d(this,Me)),qe(d(this,Me)),mn(d(this,Me).ctx);try{return e()}catch(i){return Xi(i),null}finally{lt(t),qe(n),mn(r)}},ni=function(e){var t;if(!this.has_pending_snippet()){this.parent&&K(t=this.parent,Ne,ni).call(t,e);return}q(this,Lt,d(this,Lt)+e),d(this,Lt)===0&&(K(this,Ne,yr).call(this),d(this,Le)&&on(d(this,Le),()=>{q(this,Le,null)}),d(this,zt)&&(d(this,Ze).before(d(this,zt)),q(this,zt,null)))};function Us(e,t,n,r){const i=Nn()?kr:ii;var o=e.filter(g=>!g.settled);if(n.length===0&&o.length===0){r(t.map(i));return}var s=J,l=Fs(),c=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(g=>g.promise)):null;function u(g){l();try{r(g)}catch(v){s.f&wt||Rt(v,s)}ri()}if(n.length===0){c.then(()=>u(t.map(i)));return}function h(){l(),Promise.all(n.map(g=>Gs(g))).then(g=>u([...t.map(i),...g])).catch(g=>Rt(g,s))}c?c.then(h):h()}function Fs(){var e=J,t=V,n=ue,r=Y;return function(i=!0){lt(e),qe(t),mn(n),i&&r?.activate()}}function ri(e=!0){lt(null),qe(null),mn(null),e&&Y?.deactivate()}function Hs(){var e=J.b,t=Y,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function kr(e){var t=me|ye,n=V!==null&&V.f&me?V:null;return J!==null&&(J.f|=gn),{ctx:ue,deps:null,effects:null,equals:Ji,f:t,fn:e,reactions:null,rv:0,v:we,wv:0,parent:n??J,ac:null}}function Gs(e,t,n){J===null&&vs();var r=void 0,i=rn(we),o=!V,s=new Map;return al(()=>{var l,c=Gi();r=c.promise;try{Promise.resolve(e()).then(c.resolve,c.reject).finally(ri)}catch(v){c.reject(v),ri()}var u=Y;if(o){var h=Hs();(l=s.get(u))==null||l.reject(Qt),s.delete(u),s.set(u,c)}const g=(v,f=void 0)=>{if(u.activate(),f)f!==Qt&&(i.f|=Mt,kn(i,f));else{i.f&Mt&&(i.f^=Mt),kn(i,v);for(const[k,p]of s){if(s.delete(k),k===u)break;p.reject(Qt)}}h&&h()};c.promise.then(g,v=>g(null,v||"unknown"))}),li(()=>{for(const l of s.values())l.reject(Qt)}),new Promise(l=>{function c(u){function h(){u===r?l(i):c(r)}u.then(h,h)}c(r)})}function F(e){const t=kr(e);return Ao(t),t}function ii(e){const t=kr(e);return t.equals=Zi,t}function Vs(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Ce(t[n])}}function Ys(e){for(var t=e.parent;t!==null;){if(!(t.f&me))return t.f&wt?null:t;t=t.parent}return null}function oi(e){var t,n=J;lt(Ys(e));try{e.f&=~Jt,Vs(e),t=zo(e)}finally{lt(n)}return t}function co(e){var t=oi(e);if(!e.equals(t)&&(e.wv=Ro(),(!(Y!=null&&Y.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){le(e,ve);return}qt||(Se!==null?(si()||Y!=null&&Y.is_fork)&&Se.set(e,t):Yr(e))}function Ks(e){var t,n;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),(n=r.ac)==null||n.abort(Qt),r.teardown=ls,r.ac=null,Zn(r,0),ui(r))}function uo(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Sn(t)}let ai=new Set;const jt=new Map;let po=!1;function rn(e,t){var n={f:0,v:e,reactions:null,equals:Ji,rv:0,wv:0};return n}function G(e,t){const n=rn(e);return Ao(n),n}function Js(e,t=!1,n=!0){var r;const i=rn(e);return t||(i.equals=Zi),wn&&n&&ue!==null&&ue.l!==null&&((r=ue.l).s??(r.s=[])).push(i),i}function m(e,t,n=!1){V!==null&&(!Xe||V.f&Yi)&&Nn()&&V.f&(me|gt|Vr|Yi)&&(Oe===null||!fn.call(Oe,e))&&_s();let r=n?Re(t):t;return kn(e,r)}function kn(e,t){if(!e.equals(t)){var n=e.v;qt?jt.set(e,t):jt.set(e,n),e.v=t;var r=yn.ensure();if(r.capture(e,n),e.f&me){const i=e;e.f&ye&&oi(i),Yr(i)}e.wv=Ro(),fo(e,ye),Nn()&&J!==null&&J.f&ve&&!(J.f&(Ye|Vt))&&($e===null?cl([e]):$e.push(e)),!r.is_fork&&ai.size>0&&!po&&Zs()}return t}function Zs(){po=!1;for(const e of ai)e.f&ve&&le(e,Ke),Jn(e)&&Sn(e);ai.clear()}function ho(e,t=1){var n=a(e),r=t===1?n++:n--;return m(e,n),r}function Yn(e){m(e,e.v+1)}function fo(e,t){var n=e.reactions;if(n!==null)for(var r=Nn(),i=n.length,o=0;o<i;o++){var s=n[o],l=s.f;if(!(!r&&s===J)){var c=(l&ye)===0;if(c&&le(s,t),l&me){var u=s;Se?.delete(u),l&Jt||(l&ze&&(s.f|=Jt),fo(u,Ke))}else c&&(l>&&at!==null&&at.add(s),Je(s))}}}function Re(e){if(typeof e!="object"||e===null||Zt in e)return e;const t=Fi(e);if(t!==as&&t!==ss)return e;var n=new Map,r=Fr(e),i=G(0),o=sn,s=l=>{if(sn===o)return l();var c=V,u=sn;qe(null),Mo(o);var h=l();return qe(c),Mo(u),h};return r&&n.set("length",G(e.length)),new Proxy(e,{defineProperty(l,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&xs();var h=n.get(c);return h===void 0?s(()=>{var g=G(u.value);return n.set(c,g),g}):m(h,u.value,!0),!0},deleteProperty(l,c){var u=n.get(c);if(u===void 0){if(c in l){const h=s(()=>G(we));n.set(c,h),Yn(i)}}else m(u,we),Yn(i);return!0},get(l,c,u){var h;if(c===Zt)return e;var g=n.get(c),v=c in l;if(g===void 0&&(!v||(h=vn(l,c))!=null&&h.writable)&&(g=s(()=>{var k=Re(v?l[c]:we),p=G(k);return p}),n.set(c,g)),g!==void 0){var f=a(g);return f===we?void 0:f}return Reflect.get(l,c,u)},getOwnPropertyDescriptor(l,c){var u=Reflect.getOwnPropertyDescriptor(l,c);if(u&&"value"in u){var h=n.get(c);h&&(u.value=a(h))}else if(u===void 0){var g=n.get(c),v=g?.v;if(g!==void 0&&v!==we)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(l,c){var u;if(c===Zt)return!0;var h=n.get(c),g=h!==void 0&&h.v!==we||Reflect.has(l,c);if(h!==void 0||J!==null&&(!g||(u=vn(l,c))!=null&&u.writable)){h===void 0&&(h=s(()=>{var f=g?Re(l[c]):we,k=G(f);return k}),n.set(c,h));var v=a(h);if(v===we)return!1}return g},set(l,c,u,h){var g,v=n.get(c),f=c in l;if(r&&c==="length")for(var k=u;k<v.v;k+=1){var p=n.get(k+"");p!==void 0?m(p,we):k in l&&(p=s(()=>G(we)),n.set(k+"",p))}if(v===void 0)(!f||(g=vn(l,c))!=null&&g.writable)&&(v=s(()=>G(void 0)),m(v,Re(u)),n.set(c,v));else{f=v.v!==we;var E=s(()=>Re(u));m(v,E)}var y=Reflect.getOwnPropertyDescriptor(l,c);if(y!=null&&y.set&&y.set.call(h,u),!f){if(r&&typeof c=="string"){var P=n.get("length"),B=Number(c);Number.isInteger(B)&&B>=P.v&&m(P,B+1)}Yn(i)}return!0},ownKeys(l){a(i);var c=Reflect.ownKeys(l).filter(g=>{var v=n.get(g);return v===void 0||v.v!==we});for(var[u,h]of n)h.v!==we&&!(u in l)&&c.push(u);return c},setPrototypeOf(){Ss()}})}function vo(e){try{if(e!==null&&typeof e=="object"&&Zt in e)return e[Zt]}catch{}return e}function Qs(e,t){return Object.is(vo(e),vo(t))}var go,wo,mo,yo;function Xs(){if(go===void 0){go=window,wo=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;mo=vn(t,"firstChild").get,yo=vn(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 _t(e=""){return document.createTextNode(e)}function Ct(e){return mo.call(e)}function Kn(e){return yo.call(e)}function A(e,t){return Ct(e)}function Qe(e,t=!1){{var n=Ct(e);return n instanceof Comment&&n.data===""?Kn(n):n}}function M(e,t=1,n=!1){let r=e;for(;t--;)r=Kn(r);return r}function el(e){e.textContent=""}function bo(){return!1}function ko(e,t,n){return document.createElementNS(Ui,e,void 0)}let xo=!1;function tl(){xo||(xo=!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 xr(e){var t=V,n=J;qe(null),lt(null);try{return e()}finally{qe(t),lt(n)}}function nl(e,t,n,r=n){e.addEventListener(t,()=>xr(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),tl()}function rl(e){J===null&&(V===null&&ys(),ms()),qt&&ws()}function il(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Tt(e,t,n){var r=J;r!==null&&r.f&Ie&&(e|=Ie);var i={ctx:ue,deps:null,nodes:null,f:e|ye|ze,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Sn(i)}catch(l){throw Ce(i),l}else t!==null&&Je(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&!(o.f&gn)&&(o=o.first,e>&&e&Kt&&o!==null&&(o.f|=Kt)),o!==null&&(o.parent=r,r!==null&&il(o,r),V!==null&&V.f&me&&!(e&Vt))){var s=V;(s.effects??(s.effects=[])).push(o)}return i}function si(){return V!==null&&!Xe}function li(e){const t=Tt(gr,null,!1);return le(t,ve),t.teardown=e,t}function xn(e){rl();var t=J.f,n=!V&&(t&Ye)!==0&&(t&Yt)===0;if(n){var r=ue;(r.e??(r.e=[])).push(e)}else return So(e)}function So(e){return Tt(Ln|ds,e,!1)}function ol(e){yn.ensure();const t=Tt(Vt|gn,e,!0);return(n={})=>new Promise(r=>{n.outro?on(t,()=>{Ce(t),r(void 0)}):(Ce(t),r(void 0))})}function _o(e){return Tt(Ln,e,!1)}function al(e){return Tt(Vr|gn,e,!0)}function ci(e,t=0){return Tt(gr|t,e,!0)}function L(e,t=[],n=[],r=[]){Us(r,t,n,i=>{Tt(gr,()=>e(...i.map(a)),!0)})}function Sr(e,t=0){var n=Tt(gt|t,e,!0);return n}function je(e){return Tt(Ye|gn,e,!0)}function Co(e){var t=e.teardown;if(t!==null){const n=qt,r=V;Eo(!0),qe(null);try{t.call(null)}finally{Eo(n),qe(r)}}}function ui(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&xr(()=>{i.abort(Qt)});var r=n.next;n.f&Vt?n.parent=null:Ce(n,t),n=r}}function sl(e){for(var t=e.first;t!==null;){var n=t.next;t.f&Ye||Ce(t),t=n}}function Ce(e,t=!0){var n=!1;(t||e.f&Ki)&&e.nodes!==null&&e.nodes.end!==null&&(ll(e.nodes.start,e.nodes.end),n=!0),ui(e,t&&!n),Zn(e,0),le(e,wt);var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)o.stop();Co(e);var i=e.parent;i!==null&&i.first!==null&&To(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ll(e,t){for(;e!==null;){var n=e===t?null:Kn(e);e.remove(),e=n}}function To(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 on(e,t,n=!0){var r=[];Po(e,r,!0);var i=()=>{n&&Ce(e),t&&t()},o=r.length;if(o>0){var s=()=>--o||i();for(var l of r)l.out(s)}else i()}function Po(e,t,n){if(!(e.f&Ie)){e.f^=Ie;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var o=i.next,s=(i.f&Kt)!==0||(i.f&Ye)!==0&&(e.f>)!==0;Po(i,t,s?n:!1),i=o}}}function di(e){Wo(e,!0)}function Wo(e,t){if(e.f&Ie){e.f^=Ie,e.f&ve||(le(e,ye),Je(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Kt)!==0||(n.f&Ye)!==0;Wo(n,i?t:!1),n=r}var o=e.nodes&&e.nodes.t;if(o!==null)for(const s of o)(s.is_global||t)&&s.in()}}function Do(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Kn(n);t.append(n),n=i}}let _r=!1,qt=!1;function Eo(e){qt=e}let V=null,Xe=!1;function qe(e){V=e}let J=null;function lt(e){J=e}let Oe=null;function Ao(e){V!==null&&(Oe===null?Oe=[e]:Oe.push(e))}let Te=null,Be=0,$e=null;function cl(e){$e=e}let Io=1,an=0,sn=an;function Mo(e){sn=e}function Ro(){return++Io}function Jn(e){var t=e.f;if(t&ye)return!0;if(t&me&&(e.f&=~Jt),t&Ke){for(var n=e.deps,r=n.length,i=0;i<r;i++){var o=n[i];if(Jn(o)&&co(o),o.wv>e.wv)return!0}t&ze&&Se===null&&le(e,ve)}return!1}function Bo(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Oe!==null&&fn.call(Oe,e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&me?Bo(o,t,!1):t===o&&(n?le(o,ye):o.f&ve&&le(o,Ke),Je(o))}}function zo(e){var t,n=Te,r=Be,i=$e,o=V,s=Oe,l=ue,c=Xe,u=sn,h=e.f;Te=null,Be=0,$e=null,V=h&(Ye|Vt)?null:e,Oe=null,mn(e.ctx),Xe=!1,sn=++an,e.ac!==null&&(xr(()=>{e.ac.abort(Qt)}),e.ac=null);try{e.f|=Gr;var g=e.fn,v=g();e.f|=Yt;var f=e.deps,k=Y?.is_fork;if(Te!==null){var p;if(k||Zn(e,Be),f!==null&&Be>0)for(f.length=Be+Te.length,p=0;p<Te.length;p++)f[Be+p]=Te[p];else e.deps=f=Te;if(si()&&e.f&ze)for(p=Be;p<f.length;p++)((t=f[p]).reactions??(t.reactions=[])).push(e)}else!k&&f!==null&&Be<f.length&&(Zn(e,Be),f.length=Be);if(Nn()&&$e!==null&&!Xe&&f!==null&&!(e.f&(me|Ke|ye)))for(p=0;p<$e.length;p++)Bo($e[p],e);if(o!==null&&o!==e){if(an++,o.deps!==null)for(let E=0;E<r;E+=1)o.deps[E].rv=an;if(n!==null)for(const E of n)E.rv=an;$e!==null&&(i===null?i=$e:i.push(...$e))}return e.f&Mt&&(e.f^=Mt),v}catch(E){return Xi(E)}finally{e.f^=Gr,Te=n,Be=r,$e=i,V=o,Oe=s,mn(l),Xe=c,sn=u}}function ul(e,t){let n=t.reactions;if(n!==null){var r=rs.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&me&&(Te===null||!fn.call(Te,t))){var o=t;o.f&ze&&(o.f^=ze,o.f&=~Jt),Yr(o),Ks(o),Zn(o,0)}}function Zn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ul(e,n[r])}function Sn(e){var t=e.f;if(!(t&wt)){le(e,ve);var n=J,r=_r;J=e,_r=!0;try{t&(gt|Vi)?sl(e):ui(e),Co(e);var i=zo(e);e.teardown=typeof i=="function"?i:null,e.wv=Io;var o;ns&&Ds&&e.f&ye&&e.deps}finally{_r=r,J=n}}}async function dl(){await Promise.resolve(),Rs()}function a(e){var t=e.f,n=(t&me)!==0;if(V!==null&&!Xe){var r=J!==null&&(J.f&wt)!==0;if(!r&&(Oe===null||!fn.call(Oe,e))){var i=V.deps;if(V.f&Gr)e.rv<an&&(e.rv=an,Te===null&&i!==null&&i[Be]===e?Be++:Te===null?Te=[e]:Te.push(e));else{(V.deps??(V.deps=[])).push(e);var o=e.reactions;o===null?e.reactions=[V]:fn.call(o,V)||o.push(V)}}}if(qt&&jt.has(e))return jt.get(e);if(n){var s=e;if(qt){var l=s.v;return(!(s.f&ve)&&s.reactions!==null||No(s))&&(l=oi(s)),jt.set(s,l),l}var c=(s.f&ze)===0&&!Xe&&V!==null&&(_r||(V.f&ze)!==0),u=(s.f&Yt)===0;Jn(s)&&(c&&(s.f|=ze),co(s)),c&&!u&&(uo(s),Lo(s))}if(Se!=null&&Se.has(e))return Se.get(e);if(e.f&Mt)throw e.v;return e.v}function Lo(e){if(e.f|=ze,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&me&&!(t.f&ze)&&(uo(t),Lo(t))}function No(e){if(e.v===we)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(jt.has(t)||t.f&me&&No(t))return!0;return!1}function Qn(e){var t=Xe;try{return Xe=!0,e()}finally{Xe=t}}const _n=Symbol("events"),jo=new Set,pi=new Set;function pl(e,t,n,r={}){function i(o){if(r.capture||hi.call(t,o),!o.cancelBubble)return xr(()=>n?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?yt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ct(e,t,n,r,i){var o={capture:r,passive:i},s=pl(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&li(()=>{t.removeEventListener(e,s,o)})}function ln(e,t,n){(t[_n]??(t[_n]={}))[e]=n}function Cr(e){for(var t=0;t<e.length;t++)jo.add(e[t]);for(var n of pi)n(e)}let qo=null;function hi(e){var t,n,r=this,i=r.ownerDocument,o=e.type,s=((t=e.composedPath)==null?void 0:t.call(e))||[],l=s[0]||e.target;qo=e;var c=0,u=qo===e&&e[_n];if(u){var h=s.indexOf(u);if(h!==-1&&(r===document||r===window)){e[_n]=r;return}var g=s.indexOf(r);if(g===-1)return;h<=g&&(c=h)}if(l=s[c]||e.target,l!==r){is(e,"currentTarget",{configurable:!0,get(){return l||i}});var v=V,f=J;qe(null),lt(null);try{for(var k,p=[];l!==null;){var E=l.assignedSlot||l.parentNode||l.host||null;try{var y=(n=l[_n])==null?void 0:n[o];y!=null&&(!l.disabled||e.target===l)&&y.call(l,e)}catch(P){k?p.push(P):k=P}if(e.cancelBubble||E===r||E===null)break;l=E}if(k){for(let P of p)queueMicrotask(()=>{throw P});throw k}}finally{e[_n]=r,delete e.currentTarget,qe(v),lt(f)}}}var Oo;const $o=((Oo=globalThis?.window)==null?void 0:Oo.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function hl(e){return $o?.createHTML(e)??e}function Uo(e){var t=ko("template");return t.innerHTML=hl(e.replaceAll("<!>","<!---->")),t.content}function Cn(e,t){var n=J;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function N(e,t){var n=(t&$i)!==0,r=(t&ts)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=Uo(o?e:"<!>"+e),n||(i=Ct(i)));var s=r||wo?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Ct(s),c=s.lastChild;Cn(l,c)}else Cn(s,s);return s}}function fl(e,t,n="svg"){var r=!e.startsWith("<!>"),i=(t&$i)!==0,o=`<${n}>${r?e:"<!>"+e}</${n}>`,s;return()=>{if(!s){var l=Uo(o),c=Ct(l);if(i)for(s=document.createDocumentFragment();Ct(c);)s.appendChild(Ct(c));else s=Ct(c)}var u=s.cloneNode(!0);if(i){var h=Ct(u),g=u.lastChild;Cn(h,g)}else Cn(u,u);return u}}function Ot(e,t){return fl(e,t,"svg")}function Pt(e=""){{var t=_t(e+"");return Cn(t,t),t}}function Tr(){var e=document.createDocumentFragment(),t=document.createComment(""),n=_t();return e.append(t,n),Cn(t,n),e}function D(e,t){e!==null&&e.before(t)}const vl=["touchstart","touchmove"];function gl(e){return vl.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 wl(e,t){return ml(e,t)}const Pr=new Map;function ml(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:s=!0,transformError:l}){Xs();var c=void 0,u=ol(()=>{var h=n??t.appendChild(_t());Ns(h,{pending:()=>{}},f=>{it({});var k=ue;o&&(k.c=o),i&&(r.$$events=i),c=e(f,r)||{},ot()},l);var g=new Set,v=f=>{for(var k=0;k<f.length;k++){var p=f[k];if(!g.has(p)){g.add(p);var E=gl(p);for(const B of[t,document]){var y=Pr.get(B);y===void 0&&(y=new Map,Pr.set(B,y));var P=y.get(p);P===void 0?(B.addEventListener(p,hi,{passive:E}),y.set(p,1)):y.set(p,P+1)}}}};return v(vr(jo)),pi.add(v),()=>{var f;for(var k of g)for(const y of[t,document]){var p=Pr.get(y),E=p.get(k);--E==0?(y.removeEventListener(k,hi),p.delete(k),p.size===0&&Pr.delete(y)):p.set(k,E)}pi.delete(v),h!==n&&((f=h.parentNode)==null||f.removeChild(h))}});return yl.set(c,u),c}let yl=new WeakMap;var ut,Wt,Ue,Tn,Wr,Dr,fi;class Fo{constructor(t,n=!0){Ve(this,"anchor"),U(this,ut,new Map),U(this,Wt,new Map),U(this,Ue,new Map),U(this,Tn,new Set),U(this,Wr,!0),U(this,Dr,()=>{var r=Y;if(d(this,ut).has(r)){var i=d(this,ut).get(r),o=d(this,Wt).get(i);if(o)di(o),d(this,Tn).delete(i);else{var s=d(this,Ue).get(i);s&&(d(this,Wt).set(i,s.effect),d(this,Ue).delete(i),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),o=s.effect)}for(const[l,c]of d(this,ut)){if(d(this,ut).delete(l),l===r)break;const u=d(this,Ue).get(c);u&&(Ce(u.effect),d(this,Ue).delete(c))}for(const[l,c]of d(this,Wt)){if(l===i||d(this,Tn).has(l))continue;const u=()=>{if(Array.from(d(this,ut).values()).includes(l)){var h=document.createDocumentFragment();Do(c,h),h.append(_t()),d(this,Ue).set(l,{effect:c,fragment:h})}else Ce(c);d(this,Tn).delete(l),d(this,Wt).delete(l)};d(this,Wr)||!o?(d(this,Tn).add(l),on(c,u,!1)):u()}}}),U(this,fi,r=>{d(this,ut).delete(r);const i=Array.from(d(this,ut).values());for(const[o,s]of d(this,Ue))i.includes(o)||(Ce(s.effect),d(this,Ue).delete(o))}),this.anchor=t,q(this,Wr,n)}ensure(t,n){var r=Y,i=bo();if(n&&!d(this,Wt).has(t)&&!d(this,Ue).has(t))if(i){var o=document.createDocumentFragment(),s=_t();o.append(s),d(this,Ue).set(t,{effect:je(()=>n(s)),fragment:o})}else d(this,Wt).set(t,je(()=>n(this.anchor)));if(d(this,ut).set(r,t),i){for(const[l,c]of d(this,Wt))l===t?r.unskip_effect(c):r.skip_effect(c);for(const[l,c]of d(this,Ue))l===t?r.unskip_effect(c.effect):r.skip_effect(c.effect);r.oncommit(d(this,Dr)),r.ondiscard(d(this,fi))}else d(this,Dr).call(this)}}ut=new WeakMap,Wt=new WeakMap,Ue=new WeakMap,Tn=new WeakMap,Wr=new WeakMap,Dr=new WeakMap,fi=new WeakMap;function vi(e){ue===null&&fs(),wn&&ue.l!==null?bl(ue).m.push(e):xn(()=>{const t=Qn(e);if(typeof t=="function")return t})}function bl(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function Z(e,t,n=!1){var r=new Fo(e),i=n?Kt:0;function o(s,l){r.ensure(s,l)}Sr(()=>{var s=!1;t((l,c=0)=>{s=!0,o(c,l)}),s||o(!1,null)},i)}function Pn(e,t){return t}function kl(e,t,n){for(var r=[],i=t.length,o,s=t.length,l=0;l<i;l++){let g=t[l];on(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var v=e.outrogroups;gi(vr(o.done)),v.delete(o),v.size===0&&(e.outrogroups=null)}}else s-=1},!1)}if(s===0){var c=r.length===0&&n!==null;if(c){var u=n,h=u.parentNode;el(h),h.append(u),e.items.clear()}gi(t,!c)}else o={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(o)}function gi(e,t=!0){for(var n=0;n<e.length;n++)Ce(e[n],t)}var Er;function $t(e,t,n,r,i,o=null){var s=e,l=new Map,c=(t&Oi)!==0;if(c){var u=e;s=u.appendChild(_t())}var h=null,g=ii(()=>{var y=n();return Fr(y)?y:y==null?[]:vr(y)}),v,f=!0;function k(){E.fallback=h,xl(E,v,s,t,r),h!==null&&(v.length===0?h.f&mt?(h.f^=mt,er(h,null,s)):di(h):on(h,()=>{h=null}))}var p=Sr(()=>{v=a(g);for(var y=v.length,P=new Set,B=Y,C=bo(),_=0;_<y;_+=1){var W=v[_],w=r(W,_),T=f?null:l.get(w);T?(T.v&&kn(T.v,W),T.i&&kn(T.i,_),C&&B.unskip_effect(T.e)):(T=Sl(l,f?s:Er??(Er=_t()),W,w,_,i,t,n),f||(T.e.f|=mt),l.set(w,T)),P.add(w)}if(y===0&&o&&!h&&(f?h=je(()=>o(s)):(h=je(()=>o(Er??(Er=_t()))),h.f|=mt)),y>P.size&&gs(),!f)if(C){for(const[x,j]of l)P.has(x)||B.skip_effect(j.e);B.oncommit(k),B.ondiscard(()=>{})}else k();a(g)}),E={effect:p,items:l,outrogroups:null,fallback:h};f=!1}function Xn(e){for(;e!==null&&!(e.f&Ye);)e=e.next;return e}function xl(e,t,n,r,i){var o,s,l,c,u,h,g,v,f,k=(r&Ya)!==0,p=t.length,E=e.items,y=Xn(e.effect.first),P,B=null,C,_=[],W=[],w,T,x,j;if(k)for(j=0;j<p;j+=1)w=t[j],T=i(w,j),x=E.get(T).e,x.f&mt||((s=(o=x.nodes)==null?void 0:o.a)==null||s.measure(),(C??(C=new Set)).add(x));for(j=0;j<p;j+=1){if(w=t[j],T=i(w,j),x=E.get(T).e,e.outrogroups!==null)for(const ke of e.outrogroups)ke.pending.delete(x),ke.done.delete(x);if(x.f&mt)if(x.f^=mt,x===y)er(x,null,n);else{var ne=B?B.next:y;x===e.effect.last&&(e.effect.last=x.prev),x.prev&&(x.prev.next=x.next),x.next&&(x.next.prev=x.prev),Ut(e,B,x),Ut(e,x,ne),er(x,ne,n),B=x,_=[],W=[],y=Xn(B.next);continue}if(x.f&Ie&&(di(x),k&&((c=(l=x.nodes)==null?void 0:l.a)==null||c.unfix(),(C??(C=new Set)).delete(x))),x!==y){if(P!==void 0&&P.has(x)){if(_.length<W.length){var te=W[0],re;B=te.prev;var ge=_[0],pe=_[_.length-1];for(re=0;re<_.length;re+=1)er(_[re],te,n);for(re=0;re<W.length;re+=1)P.delete(W[re]);Ut(e,ge.prev,pe.next),Ut(e,B,ge),Ut(e,pe,te),y=te,B=pe,j-=1,_=[],W=[]}else P.delete(x),er(x,y,n),Ut(e,x.prev,x.next),Ut(e,x,B===null?e.effect.first:B.next),Ut(e,B,x),B=x;continue}for(_=[],W=[];y!==null&&y!==x;)(P??(P=new Set)).add(y),W.push(y),y=Xn(y.next);if(y===null)continue}x.f&mt||_.push(x),B=x,y=Xn(x.next)}if(e.outrogroups!==null){for(const ke of e.outrogroups)ke.pending.size===0&&(gi(vr(ke.done)),(u=e.outrogroups)==null||u.delete(ke));e.outrogroups.size===0&&(e.outrogroups=null)}if(y!==null||P!==void 0){var ce=[];if(P!==void 0)for(x of P)x.f&Ie||ce.push(x);for(;y!==null;)!(y.f&Ie)&&y!==e.fallback&&ce.push(y),y=Xn(y.next);var se=ce.length;if(se>0){var Ht=r&Oi&&p===0?n:null;if(k){for(j=0;j<se;j+=1)(g=(h=ce[j].nodes)==null?void 0:h.a)==null||g.measure();for(j=0;j<se;j+=1)(f=(v=ce[j].nodes)==null?void 0:v.a)==null||f.fix()}kl(e,ce,Ht)}}k&&yt(()=>{var ke,Et;if(C!==void 0)for(x of C)(Et=(ke=x.nodes)==null?void 0:ke.a)==null||Et.apply()})}function Sl(e,t,n,r,i,o,s,l){var c=s&Ga?s&Ka?rn(n):Js(n,!1,!1):null,u=s&Va?rn(i):null;return{v:c,i:u,e:je(()=>(o(t,c??n,u??i,l),()=>{e.delete(r)}))}}function er(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,o=t&&!(t.f&mt)?t.nodes.start:n;r!==null;){var s=Kn(r);if(o.before(r),r===i)return;r=s}}function Ut(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ho(e,t,n,r,i){var o,s=(o=t.$$slots)==null?void 0:o[n],l=!1;s===!0&&(s=t.children,l=!0),s===void 0||s(e,l?()=>r:r)}function Go(e,t,n){var r=new Fo(e);Sr(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},Kt)}function dt(e,t){_o(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=ko("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Vo(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=Vo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function _l(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Vo(e))&&(r&&(r+=" "),r+=t);return r}function Wn(e){return typeof e=="object"?_l(e):e??""}const Yo=[...`
|
|
2
|
+
\r\f\xA0\v\uFEFF`];function Cl(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+" "+i:i;else if(r.length)for(var o=i.length,s=0;(s=r.indexOf(i,s))>=0;){var l=s+o;(s===0||Yo.includes(r[s-1]))&&(l===r.length||Yo.includes(r[l]))?r=(s===0?"":r.substring(0,s))+r.substring(l+1):s=l}}return r===""?null:r}function pt(e,t,n,r,i,o){var s=e.__className;if(s!==n||s===void 0){var l=Cl(n,r,o);l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l),e.__className=n}else if(o&&i!==o)for(var c in o){var u=!!o[c];(i==null||u!==!!i[c])&&e.classList.toggle(c,u)}return o}function Ko(e,t,n=!1){if(e.multiple){if(t==null)return;if(!Fr(t))return Ts();for(var r of e.options)r.selected=t.includes(Jo(r));return}for(r of e.options){var i=Jo(r);if(Qs(i,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Tl(e){var t=new MutationObserver(()=>{Ko(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),li(()=>{t.disconnect()})}function Jo(e){return"__value"in e?e.__value:e.value}const Pl=Symbol("is custom element"),Wl=Symbol("is html");function Dl(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function R(e,t,n,r){var i=El(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[hs]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Al(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function El(e){return e.__attributes??(e.__attributes={[Pl]:e.nodeName.includes("-"),[Wl]:e.namespaceURI===Ui})}var Zo=new Map;function Al(e){var t=e.getAttribute("is")||e.nodeName,n=Zo.get(t);if(n)return n;Zo.set(t,n=[]);for(var r,i=e,o=Element.prototype;o!==i;){r=os(i);for(var s in r)r[s].set&&n.push(s);i=Fi(i)}return n}function Il(e,t,n=t){var r=new WeakSet;nl(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(o=wi(e)?mi(o):o,n(o),Y!==null&&r.add(Y),await dl(),o!==(o=t())){var s=e.selectionStart,l=e.selectionEnd,c=e.value.length;if(e.value=o??"",l!==null){var u=e.value.length;s===l&&l===c&&u>c?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=s,e.selectionEnd=Math.min(l,u))}}}),Qn(t)==null&&e.value&&(n(wi(e)?mi(e.value):e.value),Y!==null&&r.add(Y)),ci(()=>{var i=t();if(e===document.activeElement){var o=Kr??Y;if(r.has(o))return}wi(e)&&i===mi(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function wi(e){var t=e.type;return t==="number"||t==="range"}function mi(e){return e===""?null:+e}function Qo(e,t){return e===t||e?.[Zt]===t}function Ml(e={},t,n,r){return _o(()=>{var i,o;return ci(()=>{i=o,o=[],Qn(()=>{e!==n(...o)&&(t(e,...o),i&&Qo(n(...i),e)&&t(null,...i))})}),()=>{yt(()=>{o&&Qo(n(...o),e)&&t(null,...o)})}}),e}let Ar=!1;function Rl(e){var t=Ar;try{return Ar=!1,[e(),Ar]}finally{Ar=t}}function Pe(e,t,n,r){var i,o=!wn||(n&Za)!==0,s=(n&Xa)!==0,l=(n&es)!==0,c=r,u=!0,h=()=>(u&&(u=!1,c=l?Qn(r):r),c),g;if(s){var v=Zt in e||ps in e;g=((i=vn(e,t))==null?void 0:i.set)??(v&&t in e?C=>e[t]=C:void 0)}var f,k=!1;s?[f,k]=Rl(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=h(),g&&(o&&ks(),g(f)));var p;if(o?p=()=>{var C=e[t];return C===void 0?h():(u=!0,C)}:p=()=>{var C=e[t];return C!==void 0&&(c=void 0),C===void 0?c:C},o&&!(n&Qa))return p;if(g){var E=e.$$legacy;return function(C,_){return arguments.length>0?((!o||!_||E||k)&&g(_?p():C),C):p()}}var y=!1,P=(n&Ja?kr:ii)(()=>(y=!1,p()));s&&a(P);var B=J;return function(C,_){if(arguments.length>0){const W=_?a(P):o&&s?Re(C):C;return m(P,W),y=!0,c!==void 0&&(c=W),C}return qt&&y||B.f&wt?P.v:a(P)}}const Xo="wineater_consent",Bl=["wineater_uid","uniqueUserID","sessionID"];function zl(){try{const e=window.localStorage.getItem(Xo);return e==="granted"||e==="denied"?e:null}catch{return null}}let yi=G(Re(zl())),Ir=G(null),Mr=null;function Ll(e){Mr=e}function Nl(e){m(Ir,e,!0)}function ea(){var e;return((e=window?.wineaterData)==null?void 0:e.requireConsent)===!0?!0:a(Ir)===!0}function jl(){return Mr?!1:a(Ir)!==null&&ea()&&a(yi)===null}function ta(){var e;return((e=window?.wineaterData)==null?void 0:e.tracking)===!1?!1:Mr?Mr():a(Ir)===null?!1:ea()?a(yi)==="granted":!0}function ql(){for(const e of Bl){try{window.localStorage.removeItem(e)}catch{}try{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}catch{}}}const bi=new Set;function Ol(e){return bi.add(e),()=>bi.delete(e)}function na(e){m(yi,e,!0);try{window.localStorage.setItem(Xo,e)}catch{}e==="denied"&&ql();for(const t of bi)t(e)}const $l=/^[a-z0-9][a-z0-9-]*\.myshopify\.com$/;function Ul(e){if(!e||typeof e!="object")return null;const t=e,n=String(t.shop??"").trim().toLowerCase();if(!$l.test(n))return null;const r=typeof t.root=="string"&&t.root.startsWith("/")?t.root:"/";return{shop:n,locale:typeof t.locale=="string"&&t.locale?t.locale:null,currency:typeof t.currency=="string"&&t.currency?t.currency:null,root:r.endsWith("/")?r:`${r}/`,config:t.config&&typeof t.config=="object"?t.config:null,color:typeof t.color=="string"&&/^#[0-9a-f]{3,8}$/i.test(t.color)?t.color:null}}let ki;function et(){var e;return ki===void 0&&(ki=typeof window>"u"?null:Ul((e=window.wineaterData)==null?void 0:e.shopify)),ki}function ra(e){var t;const n=(t=/[?&]variant=(\d+)/.exec(e.url??""))==null?void 0:t[1];if(n)return n;const r=String(e.itemId??"").trim();return/^\d+$/.test(r)?r:null}function Fl(e,t,n){const r=i=>(i??"").toLowerCase().split("-")[0];for(const i of[r(e),r(t)])if(i&&n.includes(i))return i;return"en"}function Hl(e,t){return e===429&&t?.code==="quota_exceeded"}class ia extends Error{constructor(){super("quota_exceeded"),this.name="QuotaExceededError"}}let xi=null;function oa(){var e,t;if(xi)return xi;let n=null;try{n=window.sessionStorage.getItem("wineater_sf_session")}catch{}if(!n){n=((t=(e=globalThis.crypto)==null?void 0:e.randomUUID)==null?void 0:t.call(e))??`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;try{window.sessionStorage.setItem("wineater_sf_session",n)}catch{}}return xi=n,n}function Gl(){var e;try{const t=(e=window.Shopify)==null?void 0:e.customerPrivacy;if(t&&typeof t.analyticsProcessingAllowed=="function")return t.analyticsProcessingAllowed()===!0}catch{}return!1}function Vl(){try{const e=window.Shopify;if(e!=null&&e.customerPrivacy||typeof e?.loadFeatures!="function")return;e.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],()=>{})}catch{}}const aa="4.25.1";function sa(){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 Si(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 _i(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 Yl(){const e="uniqueUserID";let t=_i(e);return t||(t=sa(),Si(e,t,365)),t}function We(e,t,n={},r={}){var i;const o=(i=et())==null?void 0:i.shop,s=o?"https://api.wineater.com/shopify/storefront/events":"https://api.wineater.com/api/widget-events",l=o?{shop:o}:{},c=new Date().toISOString(),u=navigator.language.split("-")[1]||null,h=navigator.language.split("-")[0]||"en";if(!ta()){const p={...l,event_type:e,store_id:t,event_time:c,data:n,meta:{...r,anonymous:!0,widget_version:aa},device_info:{device:window.innerWidth<768?"mobile":"desktop"},region:u,language:h};return fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p),keepalive:!0}).catch(E=>{console.debug("[wineater] anonymous event failed:",E?.message)})}let g=_i("uniqueUserID");g||(g=Yl());const v={user_agent:navigator.userAgent,screen_width:window.screen.width,screen_height:window.screen.height,language:navigator.language,platform:navigator.platform};let f=_i("sessionID");f||(f=sa(),Si("sessionID",f,1));const k={...l,event_type:e,store_id:t,session_id:f,event_time:c,data:n,meta:{...r,user_id:g,widget_version:aa},device_info:v,region:u,language:h};return fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(k),keepalive:!!o}).then(p=>p.ok?p.json():p.json().then(E=>{throw new Error(E.message||"Failed to track widget event")})).catch(p=>{throw console.error("Widget event tracking error:",p),p})}function Kl(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 tr(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 Jl(e){return{recommendations:(e.recommendations||[]).filter(Boolean).map(tr),hasMore:!!e.has_more}}const nr="wineater_uid",Zl=365;let Rr=null;function la(){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 ca=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function ua(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 Ql(e,t){try{const n=new Date(Date.now()+Zl*864e5).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; expires=${n}; path=/; SameSite=Lax; Secure`}catch{}}function da(){return ta()}Ol(e=>{e==="denied"&&(Rr=null)});function Ci(){if(!da())return null;if(Rr)return Rr;let e=null;try{e=window.localStorage.getItem(nr)}catch{}(!e||!ca.test(e))&&(e=ua(nr)),(!e||!ca.test(e))&&(e=la());try{window.localStorage.setItem(nr,e)}catch{}return ua(nr)!==e&&Ql(nr,e),Rr=e,e}function pa(){return la()}const Xl=2e3,ha=100;let Br=null,Dn=[],rr=null,fa=!1;function ec(e){Br=e,!(fa||typeof document>"u")&&(fa=!0,document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ir()}),window.addEventListener("pagehide",()=>void ir()))}function cn(e){var t;if(!(!da()||!Br)&&!(!((t=e.sku_ids)!=null&&t.length)&&e.type!=="more")){if(Dn.push(e),Dn.length>=ha){ir();return}rr||(rr=setTimeout(()=>void ir(),Xl))}}async function ir(){if(rr&&(clearTimeout(rr),rr=null),!Br||Dn.length===0)return;const e=Ci();if(!e){Dn=[];return}const t=Dn.splice(0,ha);try{await Br({uid:e,events:t})}catch(n){console.debug("[wineater] feedback flush failed:",n?.message)}Dn.length>0&&ir()}const va=24;function ga(e,t,n){return e!=="bar"||!t||!n||t===n?null:t}function Ti(e,t){return t?{...e,language:t}:e}function tc(e,t){const n=t?.translations;return e.map(r=>{const i=n&&typeof n=="object"?n[r.id]:null,o={};if(i&&typeof i.shortDescription=="string"&&i.shortDescription.trim()&&(o.shortDescription=i.shortDescription),i&&Array.isArray(i.tags)){const s=i.tags.filter(l=>typeof l=="string"&&l.trim());s.length&&(o.tags=s)}return o})}async function nc(e,t,n){const r=[...new Set(t.filter(Boolean))];if(!r.length||!n)return null;const i={};let o=!1;for(let s=0;s<r.length;s+=va)try{const l=await e({ids:r.slice(s,s+va),language:n});l&&typeof l.translations=="object"&&l.translations&&(Object.assign(i,l.translations),o=!0)}catch{}return o?{language:n,translations:i}:null}const rc="X-Wineater-Uid";class wa extends Error{constructor(t,n){super(`API call failed with status ${t}: ${n?.message||"No additional error information"}`),Ve(this,"status"),Ve(this,"data"),this.status=t,this.data=n}}var or,zr,un,ar,sr,En,be,Pi,Dt,Wi,Di,ma;class ic{constructor(t,n="1"){U(this,be),U(this,or,"https://api.wineater.com/"),U(this,zr),U(this,un),U(this,ar,!1),U(this,sr,null),U(this,En,null),q(this,zr,t),q(this,un,n)}async getInstantRecommendations(){var t;try{const n=(t=et())==null?void 0:t.shop,r=n?"shopify/storefront/instant":d(this,un)==="2"?"dish/recommendations/instant/v2":"dish/recommendations/instant",{data:i,headers:o}=await K(this,be,Wi).call(this,r,n?K(this,be,Di).call(this,{}):{});return{wines:i.filter(Boolean).map(Kl),profileHash:o.get("X-Wineater-Profile")||null}}catch(n){throw new Error(`Error in getInstantRecommendations: ${n.message}`)}}async getWineRecommendationsSearch(t,n){if(et())return K(this,be,ma).call(this,t,n);try{const r=d(this,un)==="2"?"dish/recommendations/search/v2":"dish/recommendations/search",i=n?{text:t,query_id:n}:{text:t};return(await K(this,be,Dt).call(this,r,d(this,un)==="2"?Ti(i,d(this,En)):i)).filter(Boolean).map(tr)}catch(r){throw new Error(`Error in getWineRecommendations: ${r.message}`)}}async searchStream(t,n,r){const i=()=>this.getWineRecommendationsSearch(t,n);if(d(this,un)!=="2"||et())return i();let o;try{o=await fetch(`${d(this,or)}dish/recommendations/search/v2/stream`,{method:"POST",headers:K(this,be,Pi).call(this),body:JSON.stringify(Ti(n?{text:t,query_id:n}:{text:t},d(this,En)))})}catch{return i()}if(!o.ok||!o.body)return i();const s=o.body.getReader(),l=new TextDecoder;let c="",u=null;const h=g=>(g??[]).filter(Boolean).map(tr);try{for(;;){const{done:g,value:v}=await s.read();v&&(c+=l.decode(v,{stream:!0}));const f=c.split(`
|
|
3
|
+
`);c=g?"":f.pop()??"";for(const k of g?f.filter(Boolean):f){if(!k.trim())continue;const p=JSON.parse(k);if(p.type==="wines")u=h(p.recommendations).map(E=>({...E,reason:""})),r(u);else{if(p.type==="final")return h(p.recommendations);if(p.type==="error")return u||i()}}if(g)break}}catch{return u||i()}return u??i()}async getMoreWineRecommendations(t,n){try{const r=await K(this,be,Dt).call(this,"dish/recommendations/search/v2/more",Ti({text:t,exclude_ids:n},d(this,En)));return Jl(r)}catch(r){throw new Error(`Error in getMoreWineRecommendations: ${r.message}`)}}async getSimilarWines(t){try{return(await K(this,be,Dt).call(this,"dish/recommendations/similar",{id:t})).filter(Boolean).map(tr)}catch(n){throw new Error(`Error in getSimilarWines: ${n.message}`)}}async postEvents(t){await K(this,be,Dt).call(this,"events",t,{keepalive:!0})}setVisitorLanguage(t){q(this,En,t)}async getWineTranslations(t,n){return nc(r=>K(this,be,Dt).call(this,"wines/translations",r).catch(()=>null),t,n)}setLanguage(t){q(this,sr,t)}async getShopifyConfig(){const t=et().shop;return K(this,be,Dt).call(this,`shopify/storefront/config?shop=${encodeURIComponent(t)}`,void 0,{method:"GET"})}async getStoreConfig(){try{return await K(this,be,Dt).call(this,"stores/store",{})}catch(t){throw console.error("Error fetching store configuration:",t),t}}}or=new WeakMap,zr=new WeakMap,un=new WeakMap,ar=new WeakMap,sr=new WeakMap,En=new WeakMap,be=new WeakSet,Pi=function(){const e={"Content-Type":"application/json",Authorization:`Bearer ${d(this,zr)}`};if(!d(this,ar)){const t=Ci();t&&(e[rc]=t)}return e},Dt=async function(e,t,n={}){return(await K(this,be,Wi).call(this,e,t,n)).data},Wi=async function(e,t,n={}){const r=()=>({method:n.method??"POST",headers:K(this,be,Pi).call(this),body:t===void 0?void 0:JSON.stringify(t),keepalive:n.keepalive});let i;try{i=await fetch(`${d(this,or)}${e}`,r())}catch(l){if(d(this,ar)||!Ci())throw l;q(this,ar,!0),i=await fetch(`${d(this,or)}${e}`,r())}const o=await i.text();let s=null;try{s=o?JSON.parse(o):null}catch{if(i.ok)throw new Error("API returned invalid JSON")}if(!i.ok)throw new wa(i.status,s);return{data:s,headers:i.headers}},Di=function(e){const t=et().shop;return d(this,sr)?{...e,shop:t,language:d(this,sr)}:{...e,shop:t}},ma=async function(e,t){try{const n=K(this,be,Di).call(this,{text:e,session_id:oa(),...t?{query_id:t}:{}});return(await K(this,be,Dt).call(this,"shopify/storefront/search",n)??[]).filter(Boolean).map(tr)}catch(n){throw n instanceof wa&&Hl(n.status,n.data)?new ia:new Error(`Error in getWineRecommendations: ${n.message}`)}};const oc="HeUw6IXuhvz6tRuXdPEGEbj3SGQ3Q2YtEc1Z8jd41Kg9LtyPb4Epu0to31SYIadG";var ya;const ba=((ya=window?.wineaterData)==null?void 0:ya.CLIENT_TOKEN)||oc;var ka;const Ei=String(((ka=window?.wineaterData)==null?void 0:ka.apiVersion)||"1"),tt=new ic(ba,Ei);ec(e=>tt.postEvents(e));function ac(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 Ai=`${ac(ba)}:${Ei}`,xa="wineater:v1:";function Ii(e,t){try{const n=window.localStorage.getItem(xa+e);if(!n)return null;const r=JSON.parse(n);return Date.now()-r.savedAt>t?null:r.value}catch{return null}}function Mi(e,t){try{const n={savedAt:Date.now(),value:t};window.localStorage.setItem(xa+e,JSON.stringify(n))}catch{}}const De={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"},sc={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",addToCart:"Ajouter au panier",addedToCart:"Ajout\xE9",sommelierResting:"Notre sommelier se repose. D\xE9couvrez notre s\xE9lection ci-dessous."},lc={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",addToCart:"A\xF1adir al carrito",addedToCart:"A\xF1adido",sommelierResting:"Nuestro sumiller est\xE1 descansando. Descubre nuestra selecci\xF3n."},cc={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",addToCart:"Add to cart",addedToCart:"Added",sommelierResting:"Our sommelier is resting. Browse our picks below."},uc={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",addToCart:"Dodaj u korpu",addedToCart:"Dodato",sommelierResting:"Na\u0161 somelijer se odmara. Pogledajte na\u0161 izbor ispod."},dc={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",addToCart:"In den Warenkorb",addedToCart:"Hinzugef\xFCgt",sommelierResting:"Unser Sommelier macht gerade Pause. Entdecken Sie unsere Auswahl."},pc={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",addToCart:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0432 \u043A\u043E\u0448\u0438\u043A",addedToCart:"\u0414\u043E\u0434\u0430\u043D\u043E",sommelierResting:"\u041D\u0430\u0448 \u0441\u043E\u043C\u0435\u043B\u044C\u0454 \u0432\u0456\u0434\u043F\u043E\u0447\u0438\u0432\u0430\u0454. \u041F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u044C\u0442\u0435 \u043D\u0430\u0448\u0443 \u0434\u043E\u0431\u0456\u0440\u043A\u0443 \u043D\u0438\u0436\u0447\u0435."},hc={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",addToCart:"\u0412 \u043A\u043E\u0440\u0437\u0438\u043D\u0443",addedToCart:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u043E",sommelierResting:"\u041D\u0430\u0448 \u0441\u043E\u043C\u0435\u043B\u044C\u0435 \u043E\u0442\u0434\u044B\u0445\u0430\u0435\u0442. \u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043D\u0430\u0448\u0443 \u043F\u043E\u0434\u0431\u043E\u0440\u043A\u0443 \u043D\u0438\u0436\u0435."},fc={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",addToCart:"\u0421\u0435\u0431\u0435\u0442\u043A\u0435 \u049B\u043E\u0441\u0443",addedToCart:"\u049A\u043E\u0441\u044B\u043B\u0434\u044B",sommelierResting:"\u0411\u0456\u0437\u0434\u0456\u04A3 \u0441\u043E\u043C\u0435\u043B\u044C\u0435 \u0434\u0435\u043C\u0430\u043B\u044B\u043F \u0436\u0430\u0442\u044B\u0440. \u0422\u04E9\u043C\u0435\u043D\u0434\u0435\u0433\u0456 \u0442\u0430\u04A3\u0434\u0430\u0443\u044B\u043C\u044B\u0437\u0434\u044B \u049B\u0430\u0440\u0430\u04A3\u044B\u0437."},vc={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",addToCart:"Adicionar ao carrinho",addedToCart:"Adicionado",sommelierResting:"Nosso sommelier est\xE1 descansando. Veja nossas sugest\xF5es abaixo."},Sa={fr:sc,es:lc,en:cc,sr:uc,de:dc,ukr:pc,ru:hc,kk:fc,pt:vc};function gc(e){return{id:String(e.id),lang:e.lang,available_languages:e.available_languages?e.available_languages:[e.lang],currency:e.currency,title:e.title,requires_cookie_consent:e.requires_cookie_consent===!0}}const wc="https://media.wineater.com",ht=`${wc}/static-media`,mc={0:{logoUrl:null,brandColor:"#7B2BEB"},29:{logoUrl:`${ht}/plou_logo.jpg`,brandColor:"#e6c6bb"},25:{logoUrl:null,brandColor:"#000000",wineaterColor:"#000000",buttonUppercase:!0,customCss:`
|
|
4
4
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700&display=swap');
|
|
5
5
|
:root { --wineater-font-primary: 'Roboto', sans-serif; }
|
|
6
6
|
#wr-Custom {
|
|
@@ -53,8 +53,8 @@ var La=Object.defineProperty,Lo=e=>{throw TypeError(e)},ja=(e,t,n)=>t in e?La(e,
|
|
|
53
53
|
#wr-Custom {
|
|
54
54
|
.wr-Search-icon {
|
|
55
55
|
background-image: none;
|
|
56
|
-
-webkit-mask-image: url('
|
|
57
|
-
mask-image: url('
|
|
56
|
+
-webkit-mask-image: url('${ht}/search.svg?x=1');
|
|
57
|
+
mask-image: url('${ht}/search.svg?x=1');
|
|
58
58
|
-webkit-mask-repeat: no-repeat;
|
|
59
59
|
mask-repeat: no-repeat;
|
|
60
60
|
-webkit-mask-size: contain;
|
|
@@ -62,12 +62,12 @@ var La=Object.defineProperty,Lo=e=>{throw TypeError(e)},ja=(e,t,n)=>t in e?La(e,
|
|
|
62
62
|
background-color: #B81242;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`,translations:{}},26:{logoUrl:"https://paladarlondon.com/wp-content/uploads/2021/05/cropped-cropped-Paladar-Logo-1473x464-min-768x219.png",brandColor:"#B81242",wineaterColor:"#7B2BEB",buttonUppercase:!0,customCss:"",translations:{}},28:{logoUrl
|
|
65
|
+
`,translations:{}},26:{logoUrl:"https://paladarlondon.com/wp-content/uploads/2021/05/cropped-cropped-Paladar-Logo-1473x464-min-768x219.png",brandColor:"#B81242",wineaterColor:"#7B2BEB",buttonUppercase:!0,customCss:"",translations:{}},28:{logoUrl:`${ht}/ryba_moya.png`,brandColor:"#de4e2a",wineaterColor:"#de4e2a",buttonUppercase:!0,customCss:`
|
|
66
66
|
#wr-Custom {
|
|
67
67
|
.wr-Search-icon {
|
|
68
68
|
background-image: none;
|
|
69
|
-
-webkit-mask-image: url('
|
|
70
|
-
mask-image: url('
|
|
69
|
+
-webkit-mask-image: url('${ht}/search.svg?x=1');
|
|
70
|
+
mask-image: url('${ht}/search.svg?x=1');
|
|
71
71
|
-webkit-mask-repeat: no-repeat;
|
|
72
72
|
mask-repeat: no-repeat;
|
|
73
73
|
-webkit-mask-size: contain;
|
|
@@ -92,8 +92,8 @@ var La=Object.defineProperty,Lo=e=>{throw TypeError(e)},ja=(e,t,n)=>t in e?La(e,
|
|
|
92
92
|
|
|
93
93
|
.wr-Search-icon {
|
|
94
94
|
background-image: none;
|
|
95
|
-
-webkit-mask-image: url('
|
|
96
|
-
mask-image: url('
|
|
95
|
+
-webkit-mask-image: url('${ht}/search.svg?x=1');
|
|
96
|
+
mask-image: url('${ht}/search.svg?x=1');
|
|
97
97
|
-webkit-mask-repeat: no-repeat;
|
|
98
98
|
mask-repeat: no-repeat;
|
|
99
99
|
-webkit-mask-size: contain;
|
|
@@ -101,46 +101,21 @@ var La=Object.defineProperty,Lo=e=>{throw TypeError(e)},ja=(e,t,n)=>t in e?La(e,
|
|
|
101
101
|
background-color: #8bae98;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
`}};function
|
|
104
|
+
`}};function _a(e){const t={logoUrl:null,brandColor:"#7B2BEB",wineaterColor:"#7B2BEB",customCss:`
|
|
105
105
|
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');
|
|
106
106
|
:root { --wineater-font-primary: 'Bricolage Grotesque', serif; }
|
|
107
|
-
`},n=
|
|
108
|
-
You are a professional translator.
|
|
109
|
-
|
|
110
|
-
The input texts are written in language with code "${e}". Your task is to translate them strictly to the target language with code "${t}".
|
|
111
|
-
|
|
112
|
-
\u26A0\uFE0F DO NOT leave the original text.
|
|
113
|
-
\u26A0\uFE0F DO NOT skip any entry.
|
|
114
|
-
\u26A0\uFE0F Preserve the original order and keys exactly.
|
|
115
|
-
|
|
116
|
-
Translate only the "text" fields of the JSON array. Return an array of the same length and structure, like this:
|
|
117
|
-
|
|
118
|
-
Input:
|
|
119
|
-
[
|
|
120
|
-
{ "key": "shortDescription", "text": "Red wine with rich cherry notes." },
|
|
121
|
-
{ "key": "tags", "text": "fruity, dry, elegant" }
|
|
122
|
-
]
|
|
123
|
-
|
|
124
|
-
Output:
|
|
125
|
-
[
|
|
126
|
-
{ "key": "shortDescription", "text": "..." },
|
|
127
|
-
{ "key": "tags", "text": "..." }
|
|
128
|
-
]
|
|
129
|
-
|
|
130
|
-
Now translate the following input:
|
|
131
|
-
${JSON.stringify(f,null,2)}
|
|
132
|
-
`,v=JSON.stringify({model:"gpt-3.5-turbo",messages:[{role:"system",content:"You are a professional translator."},{role:"user",content:g}],temperature:.2,max_tokens:1e3});try{const p=await(await fetch(c,{method:"POST",headers:u,body:v})).json(),k=(l=(s=(i=(o=p?.choices)==null?void 0:o[0])==null?void 0:i.message)==null?void 0:s.content)==null?void 0:l.trim();if(!k)throw new Error("No response from OpenAI");const h=JSON.parse(k),W={};return h.forEach(y=>{y.key&&y.text!==void 0&&(W[y.key]=y.text)}),{...n,...W}}catch(p){return console.error("Error translating texts:",p),n}}Cs();var gc=Ot('<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 ba(e,t){let n=Ee(t,"className",8,""),r=Ee(t,"size",8,20);var o=gc();N(()=>{ft(o,0,Pn(n())),M(o,"width",r()),M(o,"height",r())}),D(e,o)}var wc=Ot('<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 ka(e,t){let n=Ee(t,"className",8,""),r=Ee(t,"size",8,20);var o=wc();N(()=>{ft(o,0,Pn(n())),M(o,"width",r()),M(o,"height",r())}),D(e,o)}var mc=Ot('<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 Io(e,t){let n=Ee(t,"className",8,""),r=Ee(t,"size",8,20);var o=mc();N(()=>{ft(o,0,Pn(n())),M(o,"width",r()),M(o,"height",r())}),D(e,o)}var yc=Ot('<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 xa(e,t){let n=Ee(t,"className",8,""),r=Ee(t,"size",8,20);var o=yc();N(()=>{ft(o,0,Pn(n())),M(o,"width",r()),M(o,"height",r())}),D(e,o)}var bc=L('<span><!></span><span class="wr-Header-label svelte-oiwvqb"> </span>',1),kc=L('<!><span class="wr-Header-label svelte-oiwvqb"> </span>',1),xc=L('<!><span class="wr-Header-label svelte-oiwvqb"> </span>',1),Sc=L('<h1 class="wr-Header-title svelte-oiwvqb"></h1>'),_c=L('<h1 class="wr-Header-title svelte-oiwvqb"> <span><!></span> <span class="wr-Header-label svelte-oiwvqb"> </span>, <!> <span class="wr-Header-label svelte-oiwvqb"> </span> <br/> <!> <span class="wr-Header-label svelte-oiwvqb"> </span> </h1>'),Cc=L('<div class="wr-Header"><!></div>');const Tc={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;
|
|
107
|
+
`},n=mc[e]||{};return{...t,...n}}function yc(e){const t=e.color||"#7B2BEB";return{..._a(""),brandColor:t,wineaterColor:t,customCss:""}}const bc=24*60*60*1e3;let ee=Re({storeConfig:null,currentLanguage:"en",isConfigLoaded:!1,uiConfig:null,searchAvailable:!0});const de={getLanguageFromURL(){return et()?null:new URLSearchParams(window.location.search).get("lang")},getAppLanguage(){return ee?.currentLanguage??"en"},getStoreLanguage(){var e;return((e=ee.storeConfig)==null?void 0:e.lang)??null},getStoreId(){var e;return((e=ee.storeConfig)==null?void 0:e.id)??null},setStoreLanguage(e){if(ee.storeConfig&&ee.storeConfig.available_languages.includes(e)){if(ee.currentLanguage=e,et()){tt.setLanguage(e);return}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=ee.storeConfig)==null?void 0:e.available_languages)??["en"]},getConsentRequired(){var e;return((e=ee.storeConfig)==null?void 0:e.requires_cookie_consent)===!0},getCurrency(){var e;return((e=ee.storeConfig)==null?void 0:e.currency)??"USD"},applyStoreConfig(e){ee.storeConfig=gc(e),ee.currentLanguage=ee.storeConfig.lang;const t=this.getLanguageFromURL();t&&ee.storeConfig.available_languages.includes(t)?this.setStoreLanguage(t):this.setStoreLanguage(ee.storeConfig.lang);const n=et();this.setUiConfig(n?{...yc(n),titleText:ee.storeConfig.title||null}:_a(ee.storeConfig.id)),Nl(ee.storeConfig.requires_cookie_consent),ee.isConfigLoaded=!0},async initializeStore(){const e=et();if(e)return this.initializeShopify(e);const t=`${Ai}:store-config:v2`,n=async()=>{const r=await tt.getStoreConfig();return Mi(t,r),r};try{const r=Ii(t,bc);if(r)try{this.applyStoreConfig(r),n().catch(()=>{});return}catch(i){console.warn("Ignoring invalid cached store config:",i)}this.applyStoreConfig(await n())}catch(r){console.error("Failed to initialize store:",r),ee.isConfigLoaded=!1}},async initializeShopify(e){var t;Ll(Gl),Vl();try{const n=(t=e.config)!=null&&t.lang?e.config:await tt.getShopifyConfig(),r=Object.keys(Sa),i=Fl(e.locale,n?.lang,r);this.applyStoreConfig({id:`shopify:${e.shop}`,type:n?.widget_type??"store",lang:i,available_languages:[i],currency:e.currency||n?.currency||"USD",title:n?.title??"",requires_cookie_consent:!0}),ee.searchAvailable=n?.search_available!==!1}catch(n){console.error("Failed to initialize store:",n),ee.isConfigLoaded=!1}},isSearchAvailable(){return ee.searchAvailable},setSearchAvailable(e){ee.searchAvailable=e},isInitialized(){return ee.isConfigLoaded},getUiConfig(){return ee.uiConfig},setUiConfig(e){ee.uiConfig=e}},kc={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 xc(e,t,n="en"){try{return new Intl.NumberFormat(kc[n]||"en-US",{style:"currency",currency:t,currencyDisplay:"narrowSymbol"}).format(e)}catch{return e.toString()}}function ae({key:e,lang:t}){const n=Sa,r=de.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}".`)}Es();var Sc=Ot('<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 Ca(e,t){let n=Pe(t,"className",8,""),r=Pe(t,"size",8,20);var i=Sc();L(()=>{pt(i,0,Wn(n())),R(i,"width",r()),R(i,"height",r())}),D(e,i)}var _c=Ot('<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 Ta(e,t){let n=Pe(t,"className",8,""),r=Pe(t,"size",8,20);var i=_c();L(()=>{pt(i,0,Wn(n())),R(i,"width",r()),R(i,"height",r())}),D(e,i)}var Cc=Ot('<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 Ri(e,t){let n=Pe(t,"className",8,""),r=Pe(t,"size",8,20);var i=Cc();L(()=>{pt(i,0,Wn(n())),R(i,"width",r()),R(i,"height",r())}),D(e,i)}var Tc=Ot('<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 Pa(e,t){let n=Pe(t,"className",8,""),r=Pe(t,"size",8,20);var i=Tc();L(()=>{pt(i,0,Wn(n())),R(i,"width",r()),R(i,"height",r())}),D(e,i)}var Pc=N('<span><!></span><span class="wr-Header-label svelte-oiwvqb"> </span>',1),Wc=N('<!><span class="wr-Header-label svelte-oiwvqb"> </span>',1),Dc=N('<!><span class="wr-Header-label svelte-oiwvqb"> </span>',1),Ec=N('<h1 class="wr-Header-title svelte-oiwvqb"></h1>'),Ac=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>'),Ic=N('<div class="wr-Header"><!></div>');const Mc={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;
|
|
133
108
|
|
|
134
109
|
/* 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;}
|
|
135
110
|
|
|
136
111
|
@media screen and (max-width: 768px) {.wr-Header-title.svelte-oiwvqb {display:none;}
|
|
137
|
-
}`};function
|
|
112
|
+
}`};function Rc(e,t){it(t,!0),dt(e,Mc);let n=F(()=>de.getAppLanguage()),r=F(()=>de.getUiConfig()),i=F(()=>{var v,f;return((v=window?.wineaterData)==null?void 0:v.TITLE_TEXT)||((f=a(r))==null?void 0:f.titleText)||null}),o=G(Re(Ri));function s(v){return v.split(/(meal|mood|occasion)/gi).map(f=>({keyword:/^(meal|mood|occasion)$/i.test(f)?f.toLowerCase():null,text:f}))}let l=F(()=>a(i)?s(a(i)):null);var c=Ic(),u=A(c);{var h=v=>{var f=Ec();$t(f,21,()=>a(l),Pn,(k,p)=>{var E=Tr(),y=Qe(E);{var P=W=>{var w=Pc(),T=Qe(w),x=A(T);Go(x,()=>a(o),(te,re)=>{re(te,{className:"wr-Header-icon",size:"28"})});var j=M(T),ne=A(j);L(()=>O(ne,a(p).text)),ct("mouseenter",T,()=>m(o,Pa,!0)),ct("mouseleave",T,()=>m(o,Ri,!0)),D(W,w)},B=W=>{var w=Wc(),T=Qe(w);Ta(T,{className:"wr-Header-icon",size:"28"});var x=M(T),j=A(x);L(()=>O(j,a(p).text)),D(W,w)},C=W=>{var w=Dc(),T=Qe(w);Ca(T,{className:"wr-Header-icon",size:"28"});var x=M(T),j=A(x);L(()=>O(j,a(p).text)),D(W,w)},_=W=>{var w=Pt();L(()=>O(w,a(p).text)),D(W,w)};Z(y,W=>{a(p).keyword==="meal"?W(P):a(p).keyword==="mood"?W(B,1):a(p).keyword==="occasion"?W(C,2):W(_,!1)})}D(k,E)}),D(v,f)},g=v=>{var f=Ac(),k=A(f),p=M(k),E=A(p);Go(E,()=>a(o),(ne,te)=>{te(ne,{className:"wr-Header-icon",size:"28"})});var y=M(p,2),P=A(y),B=M(y,2);Ta(B,{className:"wr-Header-icon",size:"28"});var C=M(B,2),_=A(C),W=M(C,3),w=M(W);Ca(w,{className:"wr-Header-icon",size:"28"});var T=M(w,2),x=A(T),j=M(T);L((ne,te,re,ge,pe,ce)=>{O(k,`${ne??""} `),O(P,te),O(_,re),O(W,` ${ge??""} `),O(x,pe),O(j,` ${ce??""}`)},[()=>ae({key:"headerLine1",lang:a(n)}),()=>ae({key:"headerMeal",lang:a(n)}),()=>ae({key:"headerMood",lang:a(n)}),()=>ae({key:"headerOr",lang:a(n)}),()=>ae({key:"headerOccasion",lang:a(n)}),()=>ae({key:"headerLine2",lang:a(n)})]),ct("mouseenter",p,()=>m(o,Pa,!0)),ct("mouseleave",p,()=>m(o,Ri,!0)),D(v,f)};Z(u,v=>{a(l)?v(h):v(g,!1)})}D(e,c),ot()}var Bc=N('<option class="wr-Footer-lang"> </option>'),zc=N('<select class="wr-Footer-dropdown svelte-1sr6y3t"></select>'),Lc=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 Nc={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;}
|
|
138
113
|
|
|
139
114
|
@media screen and (max-width: 768px) {.wr-Footer-text--sommelier.svelte-1sr6y3t {display:none;}
|
|
140
|
-
}`};function
|
|
115
|
+
}`};function jc(e,t){it(t,!0),dt(e,Nc);let n=Pe(t,"countryCode",3,null),r=F(()=>de.getAppLanguage()),i=F(()=>de.getSupportedLanguages()),o=F(()=>de.getStoreId());function s(y){const P=y.target.value;We(De.LANGUAGE_CHANGED,a(o),{from_language:a(r),to_language:P}),de.setStoreLanguage(P)}var l=Lc(),c=A(l),u=A(c),h=A(u),g=A(h),v=M(h,2),f=M(v,2),k=A(f),p=M(c,2);{var E=y=>{var P=zc();$t(P,21,()=>a(i),Pn,(C,_)=>{var W=Bc(),w=A(W),T={};L(x=>{Dl(W,a(_)===a(r)),O(w,x),T!==(T=a(_))&&(W.value=(W.__value=a(_))??"")},[()=>a(_).toUpperCase()]),D(C,W)});var B;Tl(P),L(()=>{B!==(B=a(r))&&(P.value=(P.__value=a(r))??"",Ko(P,a(r)))}),ln("change",P,s),D(y,P)};Z(p,y=>{a(i).length>1&&y(E)})}L((y,P)=>{O(g,y),R(v,"src",n()==="ru"?`${ht}/divino_logo.svg?x=5`:`${ht}/logo_medium_gray.svg`),O(k,P)},[()=>ae({key:"poweredBy",lang:a(r)}),()=>ae({key:"ai_sommelier",lang:a(r)})]),D(e,l),ot()}Cr(["change"]);var qc=N('<a rel="noopener noreferrer"><!></a>'),Oc=N("<button><!></button>");const $c={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,
|
|
141
116
|
color 0.2s,
|
|
142
|
-
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
|
|
143
|
-
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
|
|
117
|
+
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 Ft(e,t){it(t,!0),dt(e,$c);let n=Pe(t,"type",3,"button"),r=Pe(t,"variant",3,"primary"),i=Pe(t,"target",3,"_self"),o=de.getUiConfig(),s=`wr-Action ${r()} ${t.className||""} ${o.buttonUppercase?"wr-Action--uppercase":""}`.trim();var l=Tr(),c=Qe(l);{var u=g=>{var v=qc(),f=A(v);Ho(f,t,"default",{}),L(()=>{pt(v,1,Wn(s),"svelte-8cxv3l"),R(v,"href",t.href),R(v,"id",t.id),R(v,"target",i())}),ln("click",v,function(...k){var p;(p=t.handleClick)==null||p.apply(this,k)}),D(g,v)},h=g=>{var v=Oc(),f=A(v);Ho(f,t,"default",{}),L(()=>{pt(v,1,Wn(s),"svelte-8cxv3l"),R(v,"type",n()),R(v,"id",t.id)}),ln("click",v,function(...k){var p;(p=t.handleClick)==null||p.apply(this,k)}),D(g,v)};Z(c,g=>{t.href?g(u):g(h,!1)})}D(e,l),ot()}Cr(["click"]);var Uc=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 Fc={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,
|
|
118
|
+
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 Hc(e,t){it(t,!0),dt(e,Fc);let n=Pe(t,"searchQuery",15),r,i=G(!1),o=G(0),s=G(0),l=G(!0),c=G(!1),u=F(()=>de.getAppLanguage()),h=0;function g(){return r}function v(){const C=++h,_=ae({key:"placeholderSuggestions",lang:a(u)});if(!r||!_.length)return;m(c,!0);const W=()=>{if(C!==h||!r||!a(c)||a(i)||n().length)return;const w=_[a(o)];if(a(l)){if(r.placeholder=w.substring(0,ho(s)),a(s)>w.length){m(l,!1),setTimeout(W,1600);return}setTimeout(W,90)}else{if(r.placeholder=w.substring(0,ho(s,-1)),a(s)<0){m(l,!0),m(o,(a(o)+1)%_.length),setTimeout(W,450);return}setTimeout(W,45)}};W()}function f(){m(c,!1)}function k(){m(i,!0),f(),r&&(r.placeholder="")}function p(){m(i,!1),m(s,0),m(l,!0),m(c,!1)}xn(()=>{if(!r||n().length>0)return;h++,m(c,!1),m(o,0),m(s,0),m(l,!0);const C=ae({key:"placeholderSuggestions",lang:a(u)});C&&C.length?r.placeholder=C[0]:r.placeholder=ae({key:"searchPlaceholder",lang:a(u)})}),xn(()=>{r&&t.initialized&&!a(i)&&!n().length&&!a(c)&&v(),n().length>0&&a(c)&&(m(c,!1),h++)}),vi(()=>{});var E={getSearchElement:g},y=Uc(),P=M(A(y),2);Ml(P,C=>r=C,()=>r);var B=M(P,2);return Ft(B,{className:"wr-Search-button",type:"submit",variant:"primary",children:(C,_)=>{var W=Pt();L(w=>O(W,w),[()=>ae({key:"searchButton",lang:a(u)})]),D(C,W)},$$slots:{default:!0}}),ct("submit",y,function(...C){var _;(_=t.onSubmit)==null||_.apply(this,C)}),ct("focus",P,k),ct("blur",P,p),Il(P,n),D(e,y),ot(E)}var Gc=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>'),Vc=N('<div class="wr-Skeleton svelte-f6xbvk" aria-hidden="true"></div>');const Yc={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%;
|
|
144
119
|
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;}
|
|
145
120
|
|
|
146
121
|
@keyframes svelte-f6xbvk-wr-shimmer {
|
|
@@ -157,7 +132,7 @@ ${JSON.stringify(f,null,2)}
|
|
|
157
132
|
}
|
|
158
133
|
|
|
159
134
|
@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;}
|
|
160
|
-
}`};function Sa(e){ht(e,Oc);var t=qc();$t(t,4,()=>[0,1,2,3],n=>n,(n,r)=>{var o=jc();D(n,o)}),D(e,t)}var $c=L('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'),Uc=L('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'),Fc=L('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'),Hc=L('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'),Gc=L('<div class="wr-WinePopup-tags svelte-17gehox"></div>'),Vc=L('<div class="wr-WinePopupMobile svelte-17gehox"><div class="wr-WinePopupMobile-overlay svelte-17gehox"></div> <div class="wr-WinePopupMobile-wrapper svelte-17gehox"><div class="wr-WinePopup js-WinePopup svelte-17gehox"><div class="wr-WinePopup-header svelte-17gehox"><h2 class="wr-WinePopup-title svelte-17gehox"> </h2> <button class="wr-WinePopup-close js-WinePopupClose svelte-17gehox">×</button></div> <!> <!> <!></div></div></div>'),Yc=L('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'),Kc=L('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'),Zc=L('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'),Jc=L('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'),Qc=L('<div class="wr-WinePopup-tags svelte-17gehox"></div>'),Xc=L('<div class="wr-WinePopup svelte-17gehox"><div class="wr-WinePopup-header svelte-17gehox"><h2 class="wr-WinePopup-title svelte-17gehox"> </h2> <button class="wr-WinePopup-close svelte-17gehox">×</button></div> <!> <!> <!></div>');const eu={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 _a(e,t){at(t,!0),ht(e,eu);const n=!!t.isMobile;var r=_r(),o=tt(r);{var i=l=>{var c=Vc(),u=A(c),f=I(u,2),g=A(f),v=A(g),p=A(v),k=A(p),h=I(p,2),W=I(v,2);{var y=w=>{var T=$c(),x=A(T);N(()=>O(x,t.shortDescription)),D(w,T)};Z(W,w=>{t.shortDescription&&w(y)})}var P=I(W,2);{var R=w=>{var T=Uc(),x=A(T);N(()=>O(x,t.reason)),D(w,T)},C=w=>{var T=Fc(),x=A(T);N(()=>O(x,t.pairing)),D(w,T)};Z(P,w=>{t.reason?w(R):t.pairing&&w(C,1)})}var _=I(P,2);{var E=w=>{var T=Gc();$t(T,21,()=>t.tags,Tn,(x,j)=>{var ne=Hc(),te=A(ne);N(()=>O(te,a(j))),D(x,ne)}),D(w,T)};Z(_,w=>{t.tags&&t.tags.length&&w(E)})}N(()=>O(k,t.title)),un("click",u,function(...w){var T;(T=t.onClose)==null||T.apply(this,w)}),un("click",h,function(...w){var T;(T=t.onClose)==null||T.apply(this,w)}),D(l,c)},s=l=>{var c=Xc(),u=A(c),f=A(u),g=A(f),v=I(f,2),p=I(u,2);{var k=C=>{var _=Yc(),E=A(_);N(()=>O(E,t.shortDescription)),D(C,_)};Z(p,C=>{t.shortDescription&&C(k)})}var h=I(p,2);{var W=C=>{var _=Kc(),E=A(_);N(()=>O(E,t.reason)),D(C,_)},y=C=>{var _=Zc(),E=A(_);N(()=>O(E,t.pairing)),D(C,_)};Z(h,C=>{t.reason?C(W):t.pairing&&C(y,1)})}var P=I(h,2);{var R=C=>{var _=Qc();$t(_,21,()=>t.tags,Tn,(E,w)=>{var T=Jc(),x=A(T);N(()=>O(x,a(w))),D(E,T)}),D(C,_)};Z(P,C=>{t.tags&&t.tags.length&&C(R)})}N(()=>O(g,t.title)),un("click",v,function(...C){var _;(_=t.onClose)==null||_.apply(this,C)}),D(l,c)};Z(o,l=>{n?l(i):l(s,!1)})}D(e,r),st()}Sr(["click"]);const tu={red:{glass:"#3b1230",foil:"#7a1f3d",accent:"#7a1f3d",shoulder:"bordeaux"},white:{glass:"#a9b568",foil:"#c9b458",accent:"#8a8f3c",shoulder:"flute"},rose:{glass:"#d98a9d",foil:"#e8a3b4",accent:"#b8566f",shoulder:"burgundy"},sparkling:{glass:"#5f6b3a",foil:"#d9c26a",accent:"#b89b2e",shoulder:"champagne"},sweet:{glass:"#b8862e",foil:"#d9a441",accent:"#9a6a1c",shoulder:"flute"},fortified:{glass:"#4a2a1a",foil:"#8a5a2b",accent:"#8a5a2b",shoulder:"port"}},nu={flute:{body:"M17 4h10v34c0 6 8 10 8 24v56c0 3-2 5-5 5H14c-3 0-5-2-5-5V62c0-14 8-18 8-24z",cap:{x:16,y:2,w:12,h:20},label:{x:9,y:72,w:26,h:34},shine:"M12 66c0 18 0 40 0 52"},burgundy:{body:"M17 4h10v30c0 10 11 14 11 30v54c0 3-2 5-5 5H11c-3 0-5-2-5-5V64c0-16 11-20 11-30z",cap:{x:16,y:2,w:12,h:20},label:{x:8,y:72,w:28,h:34},shine:"M11 68c0 18 0 38 0 50"},bordeaux:{body:"M17 4h10v32c0 4 1 6 4 9 4 4 6 7 6 14v59c0 3-2 5-5 5H12c-3 0-5-2-5-5V59c0-7 2-10 6-14 3-3 4-5 4-9z",cap:{x:16,y:2,w:12,h:20},label:{x:9,y:72,w:26,h:34},shine:"M12 64c0 18 0 40 0 54"},champagne:{body:"M17 4h10v34c0 12 15 18 15 42v35c0 5-3 8-7 8H9c-4 0-7-3-7-8V80c0-24 15-30 15-42z",cap:{x:15,y:2,w:14,h:34},label:{x:6,y:78,w:32,h:36},shine:"M8 82c0 14 0 28 0 36"},port:{body:"M16 4h12v16c0 3-2 4-2 7s3 4 3 8c0 6 9 6 9 18v65c0 3-2 5-5 5H11c-3 0-5-2-5-5V53c0-12 9-12 9-18 0-4 3-5 3-8s-2-4-2-7z",cap:{x:15,y:2,w:14,h:15},label:{x:8,y:66,w:28,h:42},shine:"M11 60c0 20 0 40 0 56"}},ru=[[20,58,1.5],[26,50,1.1],[23,44,.8],[14,66,1.2],[30,63,1.7],[9,86,1.1],[34,92,1.3],[8,106,1.6],[35,112,1],[25,70,.9],[17,73,.7]];function ou(e){const t=(e??"").toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g,"");return/(spark|champ|cava|prosecco|cremant|brut|pet.?nat|espum|petillant)/.test(t)?"sparkling":/(rose|pink|rosado)/.test(t)?"rose":/(fortif|port|sherry|madeira|marsala)/.test(t)?"fortified":/(sweet|dessert|late|sauternes|ice|moelleux|dulce)/.test(t)?"sweet":/(red|rouge|tinto|rosso|krasn)/.test(t)?"red":"white"}function iu(e){const t=(e??"").trim();return!!t&&t!=="null"&&t!=="undefined"}var au=Ot("<circle></circle>"),su=Ot('<path d="M16.5 10h11l1.5 26h-14z"></path><rect x="14" y="2" width="16" height="9" rx="3.5"></rect><rect x="14" y="8" width="16" height="2.4" fill="#000" opacity="0.12"></rect><path d="M16 15h12M15.6 20h12.8M15.2 25h13.6M14.8 30h14.4M22 11v21" stroke="#8a6d12" stroke-opacity="0.55" stroke-width="0.9" fill="none"></path><circle cx="22" cy="33" r="1.6" fill="none" stroke="#8a6d12" stroke-opacity="0.55" stroke-width="0.9"></circle><g fill="#fff" opacity="0.4"></g>',1),lu=Ot('<rect rx="2.5"></rect><rect height="2.5" fill="#000" opacity="0.12"></rect>',1),cu=Ot('<svg class="wr-WineBottle svelte-1duzdpv" viewBox="0 0 44 130" aria-hidden="true" focusable="false"><defs><linearGradient x1="0" x2="1" y1="0" y2="0"><stop offset="0" stop-opacity="0.78"></stop><stop offset="0.45"></stop><stop offset="1" stop-opacity="0.88"></stop></linearGradient></defs><path></path><!><rect rx="2.5" fill="#fffdf8" opacity="0.94"></rect><rect height="2.4" rx="1.2"></rect><rect height="1.8" rx="0.9" opacity="0.5"></rect><rect height="1.8" rx="0.9" opacity="0.5"></rect><path stroke="#fff" stroke-opacity="0.22" stroke-width="2.2" stroke-linecap="round" fill="none"></path></svg>');const uu={hash:"svelte-1duzdpv",code:".wr-WineBottle.svelte-1duzdpv {display:block;height:100%;width:auto;margin:0 auto;}"};function du(e,t){at(t,!0),ht(e,uu);const n=F(()=>ou(t.type)),r=F(()=>tu[a(n)]),o=F(()=>nu[a(r).shoulder]),i=`wr-bottle-${Math.random().toString(36).slice(2,8)}`;var s=cu(),l=A(s),c=A(l),u=A(c),f=I(u),g=I(f),v=I(l),p=I(v);{var k=_=>{var E=su(),w=tt(E),T=I(w),x=I(T,4);$t(x,21,()=>ru,([j,ne,te])=>`${j}-${ne}`,(j,ne)=>{var te=F(()=>is(a(ne),3));let re=()=>a(te)[0],ge=()=>a(te)[1],he=()=>a(te)[2];var de=au();N(()=>{M(de,"cx",re()),M(de,"cy",ge()),M(de,"r",he())}),D(j,de)}),N(()=>{M(w,"fill",a(r).foil),M(T,"fill",a(r).foil)}),D(_,E)},h=_=>{var E=lu(),w=tt(E),T=I(w);N(()=>{M(w,"x",a(o).cap.x),M(w,"y",a(o).cap.y),M(w,"width",a(o).cap.w),M(w,"height",a(o).cap.h),M(w,"fill",a(r).foil),M(T,"x",a(o).cap.x),M(T,"y",a(o).cap.y+a(o).cap.h-3),M(T,"width",a(o).cap.w)}),D(_,E)};Z(p,_=>{a(n)==="sparkling"?_(k):_(h,!1)})}var W=I(p),y=I(W),P=I(y),R=I(P),C=I(R);N(()=>{M(c,"id",i),M(u,"stop-color",a(r).glass),M(f,"stop-color",a(r).glass),M(g,"stop-color",a(r).glass),M(v,"d",a(o).body),M(v,"fill",`url(#${i})`),M(W,"x",a(o).label.x),M(W,"y",a(o).label.y),M(W,"width",a(o).label.w),M(W,"height",a(o).label.h),M(y,"x",a(o).label.x+a(o).label.w*.2),M(y,"y",a(o).label.y+8),M(y,"width",a(o).label.w*.6),M(y,"fill",a(r).accent),M(P,"x",a(o).label.x+a(o).label.w*.3),M(P,"y",a(o).label.y+14),M(P,"width",a(o).label.w*.4),M(P,"fill",a(r).accent),M(R,"x",a(o).label.x+a(o).label.w*.3),M(R,"y",a(o).label.y+19),M(R,"width",a(o).label.w*.4),M(R,"fill",a(r).accent),M(C,"d",a(o).shine)}),D(e,s),st()}var pu=L('<img class="wr-WineTile-image svelte-yk3emv" decoding="async"/>'),hu=L('<div class="wr-WineTile-image wr-WineTile-bottle svelte-yk3emv"><!></div>'),fu=L('<div class="wr-WineTile-price svelte-yk3emv"> </div>'),vu=L('<div class="wr-WineTile-glass svelte-yk3emv"> </div>'),gu=L('<h3 class="wr-WineTile-title svelte-yk3emv"><a class="wr-WineTile-titleLink js-WineTileAction svelte-yk3emv"> </a></h3>'),wu=L('<h3 class="wr-WineTile-title svelte-yk3emv"> </h3>'),mu=L('<div class="wr-WineTile-params svelte-yk3emv"> </div>'),yu=L('<div class="wr-WineTilePopup-reason svelte-yk3emv"> </div>'),bu=L('<span class="wr-WineTilePopup-tag svelte-yk3emv"> </span>'),ku=L('<div class="wr-WineTilePopup-tags svelte-yk3emv"></div>'),xu=L("<div><!> <!></div>"),Su=L('<article><header class="wr-WineTile-header svelte-yk3emv"><!> <!> <!> <!></header> <!> <footer class="wr-WineTile-footer svelte-yk3emv"><div class="wr-WineTile-actions svelte-yk3emv"><!> <!></div></footer> <!> <!></article> <!>',1);const _u={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),
|
|
135
|
+
}`};function Wa(e){dt(e,Yc);var t=Vc();$t(t,4,()=>[0,1,2,3],n=>n,(n,r)=>{var i=Gc();D(n,i)}),D(e,t)}var Kc=N('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'),Jc=N('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'),Zc=N('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'),Qc=N('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'),Xc=N('<div class="wr-WinePopup-tags svelte-17gehox"></div>'),eu=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">×</button></div> <!> <!> <!></div></div></div>'),tu=N('<p class="wr-WinePopup-desc wr-WinePopup-text svelte-17gehox"> </p>'),nu=N('<div class="wr-WinePopup-reason svelte-17gehox"> </div>'),ru=N('<p class="wr-WinePopup-pairing wr-WinePopup-text svelte-17gehox"> </p>'),iu=N('<span class="wr-WinePopup-tag svelte-17gehox"> </span>'),ou=N('<div class="wr-WinePopup-tags svelte-17gehox"></div>'),au=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">×</button></div> <!> <!> <!></div>');const su={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 Da(e,t){it(t,!0),dt(e,su);const n=!!t.isMobile;var r=Tr(),i=Qe(r);{var o=l=>{var c=eu(),u=A(c),h=M(u,2),g=A(h),v=A(g),f=A(v),k=A(f),p=M(f,2),E=M(v,2);{var y=w=>{var T=Kc(),x=A(T);L(()=>O(x,t.shortDescription)),D(w,T)};Z(E,w=>{t.shortDescription&&w(y)})}var P=M(E,2);{var B=w=>{var T=Jc(),x=A(T);L(()=>O(x,t.reason)),D(w,T)},C=w=>{var T=Zc(),x=A(T);L(()=>O(x,t.pairing)),D(w,T)};Z(P,w=>{t.reason?w(B):t.pairing&&w(C,1)})}var _=M(P,2);{var W=w=>{var T=Xc();$t(T,21,()=>t.tags,Pn,(x,j)=>{var ne=Qc(),te=A(ne);L(()=>O(te,a(j))),D(x,ne)}),D(w,T)};Z(_,w=>{t.tags&&t.tags.length&&w(W)})}L(()=>O(k,t.title)),ln("click",u,function(...w){var T;(T=t.onClose)==null||T.apply(this,w)}),ln("click",p,function(...w){var T;(T=t.onClose)==null||T.apply(this,w)}),D(l,c)},s=l=>{var c=au(),u=A(c),h=A(u),g=A(h),v=M(h,2),f=M(u,2);{var k=C=>{var _=tu(),W=A(_);L(()=>O(W,t.shortDescription)),D(C,_)};Z(f,C=>{t.shortDescription&&C(k)})}var p=M(f,2);{var E=C=>{var _=nu(),W=A(_);L(()=>O(W,t.reason)),D(C,_)},y=C=>{var _=ru(),W=A(_);L(()=>O(W,t.pairing)),D(C,_)};Z(p,C=>{t.reason?C(E):t.pairing&&C(y,1)})}var P=M(p,2);{var B=C=>{var _=ou();$t(_,21,()=>t.tags,Pn,(W,w)=>{var T=iu(),x=A(T);L(()=>O(x,a(w))),D(W,T)}),D(C,_)};Z(P,C=>{t.tags&&t.tags.length&&C(B)})}L(()=>O(g,t.title)),ln("click",v,function(...C){var _;(_=t.onClose)==null||_.apply(this,C)}),D(l,c)};Z(i,l=>{n?l(o):l(s,!1)})}D(e,r),ot()}Cr(["click"]);const lu={red:{glass:"#3b1230",foil:"#7a1f3d",accent:"#7a1f3d",shoulder:"bordeaux"},white:{glass:"#a9b568",foil:"#c9b458",accent:"#8a8f3c",shoulder:"flute"},rose:{glass:"#d98a9d",foil:"#e8a3b4",accent:"#b8566f",shoulder:"burgundy"},sparkling:{glass:"#5f6b3a",foil:"#d9c26a",accent:"#b89b2e",shoulder:"champagne"},sweet:{glass:"#b8862e",foil:"#d9a441",accent:"#9a6a1c",shoulder:"flute"},fortified:{glass:"#4a2a1a",foil:"#8a5a2b",accent:"#8a5a2b",shoulder:"port"}},cu={flute:{body:"M17 4h10v34c0 6 8 10 8 24v56c0 3-2 5-5 5H14c-3 0-5-2-5-5V62c0-14 8-18 8-24z",cap:{x:16,y:2,w:12,h:20},label:{x:9,y:72,w:26,h:34},shine:"M12 66c0 18 0 40 0 52"},burgundy:{body:"M17 4h10v30c0 10 11 14 11 30v54c0 3-2 5-5 5H11c-3 0-5-2-5-5V64c0-16 11-20 11-30z",cap:{x:16,y:2,w:12,h:20},label:{x:8,y:72,w:28,h:34},shine:"M11 68c0 18 0 38 0 50"},bordeaux:{body:"M17 4h10v32c0 4 1 6 4 9 4 4 6 7 6 14v59c0 3-2 5-5 5H12c-3 0-5-2-5-5V59c0-7 2-10 6-14 3-3 4-5 4-9z",cap:{x:16,y:2,w:12,h:20},label:{x:9,y:72,w:26,h:34},shine:"M12 64c0 18 0 40 0 54"},champagne:{body:"M17 4h10v34c0 12 15 18 15 42v35c0 5-3 8-7 8H9c-4 0-7-3-7-8V80c0-24 15-30 15-42z",cap:{x:15,y:2,w:14,h:34},label:{x:6,y:78,w:32,h:36},shine:"M8 82c0 14 0 28 0 36"},port:{body:"M16 4h12v16c0 3-2 4-2 7s3 4 3 8c0 6 9 6 9 18v65c0 3-2 5-5 5H11c-3 0-5-2-5-5V53c0-12 9-12 9-18 0-4 3-5 3-8s-2-4-2-7z",cap:{x:15,y:2,w:14,h:15},label:{x:8,y:66,w:28,h:42},shine:"M11 60c0 20 0 40 0 56"}},uu=[[20,58,1.5],[26,50,1.1],[23,44,.8],[14,66,1.2],[30,63,1.7],[9,86,1.1],[34,92,1.3],[8,106,1.6],[35,112,1],[25,70,.9],[17,73,.7]];function du(e){const t=(e??"").toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g,"");return/(spark|champ|cava|prosecco|cremant|brut|pet.?nat|espum|petillant)/.test(t)?"sparkling":/(rose|pink|rosado)/.test(t)?"rose":/(fortif|port|sherry|madeira|marsala)/.test(t)?"fortified":/(sweet|dessert|late|sauternes|ice|moelleux|dulce)/.test(t)?"sweet":/(red|rouge|tinto|rosso|krasn)/.test(t)?"red":"white"}function pu(e){const t=(e??"").trim();return!!t&&t!=="null"&&t!=="undefined"}var hu=Ot("<circle></circle>"),fu=Ot('<path d="M16.5 10h11l1.5 26h-14z"></path><rect x="14" y="2" width="16" height="9" rx="3.5"></rect><rect x="14" y="8" width="16" height="2.4" fill="#000" opacity="0.12"></rect><path d="M16 15h12M15.6 20h12.8M15.2 25h13.6M14.8 30h14.4M22 11v21" stroke="#8a6d12" stroke-opacity="0.55" stroke-width="0.9" fill="none"></path><circle cx="22" cy="33" r="1.6" fill="none" stroke="#8a6d12" stroke-opacity="0.55" stroke-width="0.9"></circle><g fill="#fff" opacity="0.4"></g>',1),vu=Ot('<rect rx="2.5"></rect><rect height="2.5" fill="#000" opacity="0.12"></rect>',1),gu=Ot('<svg class="wr-WineBottle svelte-1duzdpv" viewBox="0 0 44 130" aria-hidden="true" focusable="false"><defs><linearGradient x1="0" x2="1" y1="0" y2="0"><stop offset="0" stop-opacity="0.78"></stop><stop offset="0.45"></stop><stop offset="1" stop-opacity="0.88"></stop></linearGradient></defs><path></path><!><rect rx="2.5" fill="#fffdf8" opacity="0.94"></rect><rect height="2.4" rx="1.2"></rect><rect height="1.8" rx="0.9" opacity="0.5"></rect><rect height="1.8" rx="0.9" opacity="0.5"></rect><path stroke="#fff" stroke-opacity="0.22" stroke-width="2.2" stroke-linecap="round" fill="none"></path></svg>');const wu={hash:"svelte-1duzdpv",code:".wr-WineBottle.svelte-1duzdpv {display:block;height:100%;width:auto;margin:0 auto;}"};function mu(e,t){it(t,!0),dt(e,wu);const n=F(()=>du(t.type)),r=F(()=>lu[a(n)]),i=F(()=>cu[a(r).shoulder]),o=`wr-bottle-${Math.random().toString(36).slice(2,8)}`;var s=gu(),l=A(s),c=A(l),u=A(c),h=M(u),g=M(h),v=M(l),f=M(v);{var k=_=>{var W=fu(),w=Qe(W),T=M(w),x=M(T,4);$t(x,21,()=>uu,([j,ne,te])=>`${j}-${ne}`,(j,ne)=>{var te=F(()=>us(a(ne),3));let re=()=>a(te)[0],ge=()=>a(te)[1],pe=()=>a(te)[2];var ce=hu();L(()=>{R(ce,"cx",re()),R(ce,"cy",ge()),R(ce,"r",pe())}),D(j,ce)}),L(()=>{R(w,"fill",a(r).foil),R(T,"fill",a(r).foil)}),D(_,W)},p=_=>{var W=vu(),w=Qe(W),T=M(w);L(()=>{R(w,"x",a(i).cap.x),R(w,"y",a(i).cap.y),R(w,"width",a(i).cap.w),R(w,"height",a(i).cap.h),R(w,"fill",a(r).foil),R(T,"x",a(i).cap.x),R(T,"y",a(i).cap.y+a(i).cap.h-3),R(T,"width",a(i).cap.w)}),D(_,W)};Z(f,_=>{a(n)==="sparkling"?_(k):_(p,!1)})}var E=M(f),y=M(E),P=M(y),B=M(P),C=M(B);L(()=>{R(c,"id",o),R(u,"stop-color",a(r).glass),R(h,"stop-color",a(r).glass),R(g,"stop-color",a(r).glass),R(v,"d",a(i).body),R(v,"fill",`url(#${o})`),R(E,"x",a(i).label.x),R(E,"y",a(i).label.y),R(E,"width",a(i).label.w),R(E,"height",a(i).label.h),R(y,"x",a(i).label.x+a(i).label.w*.2),R(y,"y",a(i).label.y+8),R(y,"width",a(i).label.w*.6),R(y,"fill",a(r).accent),R(P,"x",a(i).label.x+a(i).label.w*.3),R(P,"y",a(i).label.y+14),R(P,"width",a(i).label.w*.4),R(P,"fill",a(r).accent),R(B,"x",a(i).label.x+a(i).label.w*.3),R(B,"y",a(i).label.y+19),R(B,"width",a(i).label.w*.4),R(B,"fill",a(r).accent),R(C,"d",a(i).shine)}),D(e,s),ot()}var yu=N('<img class="wr-WineTile-image svelte-yk3emv" decoding="async"/>'),bu=N('<div class="wr-WineTile-image wr-WineTile-bottle svelte-yk3emv"><!></div>'),ku=N('<div class="wr-WineTile-price svelte-yk3emv"> </div>'),xu=N('<div class="wr-WineTile-glass svelte-yk3emv"> </div>'),Su=N('<h3 class="wr-WineTile-title svelte-yk3emv"><a class="wr-WineTile-titleLink js-WineTileAction svelte-yk3emv"> </a></h3>'),_u=N('<h3 class="wr-WineTile-title svelte-yk3emv"> </h3>'),Cu=N('<div class="wr-WineTile-params svelte-yk3emv"> </div>'),Tu=N('<div class="wr-WineTilePopup-reason svelte-yk3emv"> </div>'),Pu=N('<span class="wr-WineTilePopup-tag svelte-yk3emv"> </span>'),Wu=N('<div class="wr-WineTilePopup-tags svelte-yk3emv"></div>'),Du=N("<div><!> <!></div>"),Eu=N('<article><header class="wr-WineTile-header svelte-yk3emv"><!> <!> <!> <!></header> <!> <footer class="wr-WineTile-footer svelte-yk3emv"><div class="wr-WineTile-actions svelte-yk3emv"><!> <!></div></footer> <!> <!></article> <!>',1);const Au={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),
|
|
161
136
|
opacity 180ms cubic-bezier(0.22, 0.61, 0.36, 1);will-change:transform, opacity;}.wr-WineTile.svelte-yk3emv:last-child {border-right:none;}.wr-WineTile.ww-slide-up.svelte-yk3emv {transform:translateY(-28px);opacity:0;}.wr-WineTile-header.svelte-yk3emv {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;}.wr-WineTile-image.svelte-yk3emv {height:200px;width:100%;max-width:100%;object-fit:contain;margin:0 auto 16px;display:block;}.wr-WineTile-bottle.svelte-yk3emv {padding:4px 0;box-sizing:border-box;}.wr-WineTile-title.svelte-yk3emv {font-size:15px;font-weight:500;margin:0 0 8px;min-height:3rem;line-height:1.2;text-align:center;color:#000;}.wr-WineTile-titleLink.svelte-yk3emv {color:inherit;text-decoration:none;}.wr-WineTile-titleLink.svelte-yk3emv:hover {text-decoration:underline;}.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;}
|
|
162
137
|
|
|
163
138
|
/* :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
|
|
@@ -181,9 +156,9 @@ ${JSON.stringify(f,null,2)}
|
|
|
181
156
|
}
|
|
182
157
|
|
|
183
158
|
@media screen and (max-width: 768px) {.wr-WineTile.svelte-yk3emv {flex:0 0 auto;scroll-snap-align:center;width:240px;text-align:center;}
|
|
184
|
-
}`};function
|
|
159
|
+
}`};function Iu(e,t){it(t,!0),dt(e,Au);const n=4;let r=F(()=>de.getAppLanguage()),i=G(!1),o=Pe(t,"addedToCart",3,!1);const s=(S,z)=>S[z]||S[z.charAt(0).toUpperCase()+z.slice(1)],l=(S,z)=>z.map(H=>s(S,H)).filter(Boolean).join(" \u2022 ");function c(S){var z;return xc(S,((z=de.getCurrency)==null?void 0:z.call(de))||"USD",a(r))}function u(S){return t.selectedWineId===S}function h(S){return!!(S.reason||S.shortDescription||S.tags)}function g(S,z){let H=S?.tags||z.tags;return H?(Array.isArray(H)&&(H=H.join(",")),typeof H!="string"?[]:H.split(",").map(Q=>Q.trim()).filter(Boolean)):[]}let v=G(!1),f=F(()=>!!t.onAddToCart&&!!ra(t.wine)),k=G(!1);async function p(){var S;if(!(a(k)||o())){m(k,!0);try{await((S=t.onAddToCart)==null?void 0:S.call(t,t.wine,t.index))}finally{m(k,!1)}}}vi(()=>{const S=()=>{m(v,window.innerWidth<=768)};return S(),window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}});var E=Eu(),y=Qe(E),P=A(y),B=A(P);{var C=S=>{var z=yu();L(()=>{R(z,"src",t.wine.image),R(z,"alt",t.wine.title),R(z,"loading",t.index<n?"eager":"lazy"),R(z,"fetchpriority",t.index<n?"high":"auto")}),ct("error",z,()=>m(i,!0)),D(S,z)},_=F(()=>pu(t.wine.image)&&!a(i)),W=S=>{var z=bu(),H=A(z);mu(H,{get type(){return t.wine.type}}),D(S,z)};Z(B,S=>{a(_)?S(C):S(W,!1)})}var w=M(B,2);{var T=S=>{var z=ku(),H=A(z);L(Q=>O(H,Q),[()=>c(t.wine.total)]),D(S,z)};Z(w,S=>{t.wine.total&&S(T)})}var x=M(w,2);{var j=S=>{var z=xu(),H=A(z);L((Q,he)=>O(H,`${Q??""}${he??""}`),[()=>ae({key:"byTheGlass",lang:a(r)}),()=>t.wine.glassPrice?` \u2014 ${c(t.wine.glassPrice)}`:""]),D(S,z)};Z(x,S=>{t.wine.byTheGlass&&S(j)})}var ne=M(x,2);{var te=S=>{var z=Su(),H=A(z),Q=A(H);L(()=>{R(H,"href",t.wine.url),O(Q,t.wine.title)}),D(S,z)},re=S=>{var z=_u(),H=A(z);L(()=>O(H,t.wine.title)),D(S,z)};Z(ne,S=>{a(f)&&t.wine.url?S(te):S(re,!1)})}var ge=M(P,2);{var pe=S=>{var z=Cu(),H=A(z);L(Q=>O(H,Q),[()=>l(t.wine,["type","country","region","grape"])]),D(S,z)},ce=F(()=>l(t.wine,["type","country","region","grape"]));Z(ge,S=>{a(ce)&&S(pe)})}var se=M(ge,2),Ht=A(se),ke=A(Ht);{var Et=S=>{{let z=F(()=>o()?"outlined":"primary");Ft(S,{handleClick:p,get variant(){return a(z)},className:"wr-WineTile-action wr-WineTile-action--cart js-WineTileAction",children:(H,Q)=>{var he=Pt();L(ie=>O(he,ie),[()=>ae({key:o()?"addedToCart":"addToCart",lang:a(r)})]),D(H,he)},$$slots:{default:!0}})}},nt=S=>{Ft(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:(z,H)=>{var Q=Pt();L(he=>O(Q,he),[()=>ae({key:"wineDetails.buy",lang:a(r)})]),D(z,Q)},$$slots:{default:!0}})},lr=S=>{Ft(S,{handleClick:()=>t.onBuyClick(t.wine,t.index),variant:"outlined",className:"wr-WineTile-action wr-WineTile-action--button js-WineTileAction",children:(z,H)=>{var Q=Pt();L(he=>O(Q,he),[()=>ae({key:"moreInfo",lang:a(r)})]),D(z,Q)},$$slots:{default:!0}})};Z(ke,S=>{a(f)?S(Et):t.wine.url?S(nt,1):S(lr,!1)})}var xe=M(ke,2);{var cr=S=>{Ft(S,{handleClick:()=>t.onSimilarClick(t.wine),variant:"text",className:"wr-WineTile-action wr-WineTile-action--similar js-WineTileAction",children:(z,H)=>{var Q=Pt();L(he=>O(Q,he),[()=>ae({key:"similarWines",lang:a(r)})]),D(z,Q)},$$slots:{default:!0}})};Z(xe,S=>{t.onSimilarClick&&S(cr)})}var Fe=M(se,2);{var Lr=S=>{{let z=F(()=>{var ie;return((ie=t.translatedPopup)==null?void 0:ie.shortDescription)||t.wine.shortDescription}),H=F(()=>{var ie;return((ie=t.translatedPopup)==null?void 0:ie.reason)||t.wine.reason}),Q=F(()=>{var ie;return((ie=t.translatedPopup)==null?void 0:ie.pairingRecommendation)||t.wine.pairingRecommendation}),he=F(()=>g(t.translatedPopup,t.wine));Da(S,{get title(){return t.wine.title},get shortDescription(){return a(z)},get reason(){return a(H)},get pairing(){return a(Q)},get tags(){return a(he)},get onClose(){return t.onPopupClose},isMobile:!1})}},An=F(()=>u(t.wine.id)&&!a(v));Z(Fe,S=>{a(An)&&S(Lr)})}var ur=M(Fe,2);{var Nr=S=>{var z=Du(),H=A(z);{var Q=ft=>{var Ee=Tu(),He=A(Ee);L(()=>{var dn,At;return O(He,((dn=t.translatedPopup)==null?void 0:dn.reason)||((At=t.translatedPopup)==null?void 0:At.shortDescription)||t.wine.reason||t.wine.shortDescription)}),D(ft,Ee)};Z(H,ft=>{var Ee,He;((Ee=t.translatedPopup)!=null&&Ee.reason||(He=t.translatedPopup)!=null&&He.shortDescription||t.wine.reason||t.wine.shortDescription)&&ft(Q)})}var he=M(H,2);{var ie=ft=>{var Ee=Wu();$t(Ee,21,()=>g(t.translatedPopup,t.wine),Pn,(He,dn)=>{var At=Pu(),dr=A(At);L(()=>O(dr,a(dn))),D(He,At)}),D(ft,Ee)};Z(he,ft=>{var Ee,He;((Ee=t.translatedPopup)!=null&&Ee.tags||(He=t.translatedPopup)!=null&&He.Tags||t.wine.tags)&&ft(ie)})}L(()=>pt(z,1,`wr-WineTilePopup ${t.hoveredWineId===t.wine.id?"slide-in visible":""}`,"svelte-yk3emv")),D(S,z)},jr=F(()=>h(t.wine));Z(ur,S=>{a(jr)&&S(Nr)})}var qr=M(y,2);{var In=S=>{{let z=F(()=>{var ie;return((ie=t.translatedPopup)==null?void 0:ie.shortDescription)||t.wine.shortDescription}),H=F(()=>{var ie;return((ie=t.translatedPopup)==null?void 0:ie.reason)||t.wine.reason}),Q=F(()=>{var ie;return((ie=t.translatedPopup)==null?void 0:ie.pairingRecommendation)||t.wine.pairingRecommendation}),he=F(()=>g(t.translatedPopup,t.wine));Da(S,{get title(){return t.wine.title},get shortDescription(){return a(z)},get reason(){return a(H)},get pairing(){return a(Q)},get tags(){return a(he)},get onClose(){return t.onPopupClose},isMobile:!0})}},Or=F(()=>u(t.wine.id)&&a(v));Z(qr,S=>{a(Or)&&S(In)})}L(()=>pt(y,1,`wr-WineTile ${t.isAnimating?"ww-slide-up":""}`,"svelte-yk3emv")),ct("mouseenter",y,()=>t.onTileEnter(t.wine)),ct("mouseleave",y,()=>t.onTileLeave(t.wine)),ln("click",y,S=>t.onTileClick(S,t.wine)),D(e,E),ot()}Cr(["click"]);var Mu=N('<a class="wr-Consent-link svelte-dqnzo8" target="_blank" rel="noopener noreferrer"> </a>'),Ru=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 Bu={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;}
|
|
185
160
|
@media (max-width: 640px) {.wr-Consent.svelte-dqnzo8 {flex-direction:column;align-items:stretch;}.wr-Consent-actions.svelte-dqnzo8 {justify-content:flex-end;}
|
|
186
|
-
}`};function
|
|
161
|
+
}`};function zu(e,t){var n;it(t,!0),dt(e,Bu);const r=(n=window?.wineaterData)==null?void 0:n.PRIVACY_URL,i=f=>ae({key:f,lang:t.lang});var o=Ru(),s=A(o),l=A(s),c=M(l);{var u=f=>{var k=Mu(),p=A(k);L(E=>{R(k,"href",r),O(p,E)},[()=>i("consentPrivacy")]),D(f,k)};Z(c,f=>{r&&f(u)})}var h=M(s,2),g=A(h);Ft(g,{variant:"outlined",handleClick:()=>na("denied"),children:(f,k)=>{var p=Pt();L(E=>O(p,E),[()=>i("consentDecline")]),D(f,p)},$$slots:{default:!0}});var v=M(g,2);Ft(v,{variant:"primary",handleClick:()=>na("granted"),children:(f,k)=>{var p=Pt();L(E=>O(p,E),[()=>i("consentAccept")]),D(f,p)},$$slots:{default:!0}}),L(f=>O(l,`${f??""} `),[()=>i("consentText")]),D(e,o),ot()}const Lu=/@import\s+url\(\s*['"]?([^'")]+)['"]?\s*\)\s*;?/g;function Bi(e,t,n=!1){const r=document.createElement("link");r.rel=e,r.href=t,n&&(r.crossOrigin="anonymous"),document.head.appendChild(r)}function Nu(){document.querySelector('link[rel="preconnect"][href="https://fonts.googleapis.com"]')||(Bi("preconnect","https://fonts.googleapis.com"),Bi("preconnect","https://fonts.gstatic.com",!0))}function ju(e){if(!e)return"";const t="custom-ui-config-style";if(document.getElementById(t))return;const n=e.replace(Lu,(i,o)=>(Bi("stylesheet",o),"")),r=document.createElement("style");return r.id=t,r.innerHTML=n,document.head.appendChild(r),t}const Ea="_wineater_session";function qu(e,t){fetch(`${e}cart/update.js`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({attributes:{[Ea]:t}}),keepalive:!0}).catch(()=>{})}function Ou(){return["cart-drawer","cart-icon-bubble","cart-notification-product","cart-notification-button","cart-live-region-text"].filter(e=>e==="cart-drawer"||e==="cart-icon-bubble"||document.getElementById(e))}function $u(e){var t;const n=document.querySelector("cart-drawer");if(n&&typeof n.renderContents=="function"){n.classList.remove("is-empty"),n.renderContents(e);return}const r=document.querySelector("cart-notification");if(r&&typeof r.renderContents=="function"){r.renderContents(e);return}const i=document.getElementById("cart-icon-bubble");if(i&&(t=e?.sections)!=null&&t["cart-icon-bubble"]){const o=new DOMParser().parseFromString(e.sections["cart-icon-bubble"],"text/html");i.innerHTML=(o.querySelector(".shopify-section")||o.body).innerHTML}document.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0})),document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0}))}async function Uu(e){var t,n,r;const i=(t=window.Shopify)==null?void 0:t.actions;if(!i||typeof i.updateCart!="function")return!1;const o=await i.updateCart({lines:[{merchandiseId:`gid://shopify/ProductVariant/${e}`,quantity:1}]});if((n=o?.userErrors)!=null&&n.length)throw new Error(((r=o.userErrors[0])==null?void 0:r.message)||"cart rejected the line");if(typeof i.openCart=="function")try{await i.openCart()}catch{}return!0}async function Fu(e,t){const n=await fetch(`${t}cart/add.js`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(e),quantity:1}],sections:Ou(),sections_url:window.location.pathname})});return n.ok?($u(await n.json().catch(()=>null)),!0):!1}function Hu(){const e=document.querySelector("cart-drawer, cart-notification");return!!e&&typeof e.renderContents=="function"}async function Gu(e,t){const n=[["actions",()=>Uu(e)],["ajax",()=>Fu(e,t.root)]];Hu()&&n.reverse();for(const[r,i]of n)try{if(await i())return qu(t.root,t.sessionId),{ok:!0,via:r}}catch(o){console.debug(`[wineater] cart ${r} failed:`,o?.message)}return window.location.href=`${t.root}cart/${e}:1?storefront=true&attributes[${Ea}]=${encodeURIComponent(t.sessionId)}`,{ok:!1,via:"permalink"}}var Vu=N('<div class="wr-App-picture svelte-1n46o8q"><img class="wr-App-logo svelte-1n46o8q" alt=""/></div>'),Yu=N('<p class="wr-App-resting svelte-1n46o8q" role="status"> </p>'),Ku=N('<div class="wr-App-error svelte-1n46o8q"><p> </p></div>'),Ju=N('<div class="wr-App-showMore svelte-1n46o8q"><!></div>'),Zu=N('<div class="wr-App-placeholder svelte-1n46o8q"></div> <!>',1),Qu=N('<div id="wr-Custom"><!> <!> <!> <div class="wr-App-content svelte-1n46o8q"><!> <!></div> <!> <!></div>'),Xu=N('<div aria-busy="true"><div class="wr-App-loadingTop svelte-1n46o8q"></div> <!></div>');const ed={hash:"svelte-1n46o8q",code:`
|
|
187
162
|
/* ===================== 1) CSS Variables ===================== */:root {--wineater-corp-color: #0044ff;
|
|
188
163
|
/* --wr-brand-color is set dynamically from uiConfig.brandColor */--wr-brand-color: #7b2beb; /* fallback value */}
|
|
189
164
|
|
|
@@ -198,4 +173,4 @@ ${JSON.stringify(f,null,2)}
|
|
|
198
173
|
|
|
199
174
|
/* ===================== 13) Mobile Styles ===================== */
|
|
200
175
|
@media screen and (max-width: 768px) {.wr-App.svelte-1n46o8q {flex-direction:column;padding:0px 16px;min-width:100vw;}.wr-App.wr-App--embedded.svelte-1n46o8q {min-width:0;padding:0 12px 12px;}.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);}
|
|
201
|
-
}`};function
|
|
176
|
+
}`};function td(e,t){var n,r,i,o,s,l,c;it(t,!0),dt(e,ed);const u=et();function h(){var b;Si("chatbotToken",((b=window.wineaterData)==null?void 0:b.CLIENT_TOKEN)||g,365)}const g="HeUw6IXuhvz6tRuXdPEGEbj3SGQ3Q2YtEc1Z8jd41Kg9LtyPb4Epu0to31SYIadG";u||(h(),Nu());const v=6*60*60*1e3,f=60*60*1e3,k=`${Ai}:instant-profile`,p=b=>`${Ai}:instant${b?`:${b}`:""}`,E=((n=window?.wineaterData)==null?void 0:n.WIDGET_TYPE)||"store",y=((r=window?.wineaterData)==null?void 0:r.COUNTRY_CODE)||null;(i=window?.wineaterData)!=null&&i.WIDGET_WRAPPER;let P=G(!1),B=G(!1),C=!1,_=G(!1),W=G(!1),w=G(Re([])),T=G(null),x=G(""),j=G(null),ne=G(!1),te=G(null),re=G(Re([])),ge=G(""),pe=G(!1),ce=G(Re([])),se=null,Ht=G(Re([])),ke=G(!1);function Et(b,I){b!=null&&b.length&&cn({type:"shown",query_id:se??void 0,sku_ids:b.map($=>$.id),text:I||void 0})}let nt=F(()=>de.getAppLanguage()),lr=F(()=>de.getStoreLanguage()),xe=F(()=>de.getStoreId()),cr=F(()=>de.isInitialized()),Fe=F(()=>de.getUiConfig()),Lr=F(()=>de.isSearchAvailable());function An(){m(j,ae({key:"errorMessage",lang:a(nt)}),!0)}const ur=()=>m(j,null);async function Nr(b){const I=ga(E,a(nt),a(lr));if(!I||!b.length)return b.map(()=>({}));const $=await tt.getWineTranslations(b.map(oe=>oe.id),I);return tc(b,$)}xn(()=>{tt.setVisitorLanguage(ga(E,a(nt),a(lr)))});async function jr(b){const I=Ii(k,2592e6),$=Ii(p(I),I?f:v),oe=!!($!=null&&$.length);oe?m(w,$,!0):m(_,!0);try{const{wines:Ae,profileHash:vt}=await tt.getInstantRecommendations();Ae.length>0&&(Mi(p(vt),Ae),Mi(k,vt)),!oe&&!C&&m(w,Ae,!0)}catch(Ae){console.error("[wineater] instant recommendations error:",Ae),!oe&&!C&&(await b,An())}finally{C||m(_,!1)}}async function qr(){m(ke,!0),de.setSearchAvailable(!1);try{const{wines:b}=await tt.getInstantRecommendations();m(w,b,!0),m(re,[],!0),m(pe,!1)}catch(b){console.error("[wineater] instant recommendations error:",b),m(w,[],!0)}}function In(b=220){return!a(w)||a(w).length===0?Promise.resolve():(m(ne,!0),new Promise(I=>{setTimeout(()=>{I()},b)}))}async function Or(b){b.preventDefault(),C=!0;let I="",$;try{m(_,!0),ur(),I=a(x).trim()+";",m(ge,I,!0),se=pa(),$=se;try{We(De.SEARCH_PERFORMED,a(xe),{query:I})}catch(fe){console.error("Error tracking search event:",fe)}let oe=!1,Ae=!1,vt=null;const pn=fe=>{if(!fe||fe.length===0){m(w,[],!0),m(re,[],!0),m(j,ae({key:"noResultsMessage",lang:a(nt)}),!0),We(De.NO_RESULTS_FOUND,a(xe),{query:I});return}m(w,fe,!0),m(_,!1),!Ae&&(Ae=!0,m(pe,Ei==="2"&&!u&&fe.length>=4,!0),Et(fe,I),We(De.SEARCH_RESULTS_DISPLAYED,a(xe),{results_count:fe.length,results:fe,query:I}))},pr=fe=>{$===se&&(oe?pn(fe):vt=fe)},Mn=tt.searchStream(I,se,pr);Mn.catch(()=>{}),await In(220),m(w,[],!0),m(ne,!1),m(pe,!1),m(ce,[],!0),oe=!0,vt&&pn(vt);const hn=await Mn;if($!==se)return;if(Ae&&hn.length===a(w).length&&hn.every((fe,rt)=>{var Gt;return fe.id===((Gt=a(w)[rt])==null?void 0:Gt.id)})){const fe=new Map(hn.map(rt=>[rt.id,rt]));m(w,a(w).map(rt=>{var Gt;return{...rt,reason:((Gt=fe.get(rt.id))==null?void 0:Gt.reason)??rt.reason}}),!0)}else pn(hn)}catch(oe){if($!==se)return;if(oe instanceof ia){await qr();return}m(w,[],!0),console.error("[wineater] search error:",oe),We(De.ERROR_OCCURRED,a(xe),{error_message:oe?.message,query:I}),An()}finally{$===se&&m(_,!1)}}async function S(){if(a(W)||!a(pe))return;C=!0;const b=a(w);try{m(W,!0),m(_,!0),m(ce,[...new Set([...a(ce),...a(w).map(Ae=>Ae.id)])],!0);const I=tt.getMoreWineRecommendations(a(ge),a(ce));I.catch(()=>{}),await In(220),m(w,[],!0),m(ne,!1);const{recommendations:$,hasMore:oe}=await I;cn({type:"more",query_id:se??void 0,text:a(ge)||void 0}),Et($,a(ge)),We(De.SHOW_MORE_CLICKED,a(xe),{query:a(ge),results_count:$.length}),m(w,$.length>0?$:b,!0),m(pe,oe,!0)}catch(I){console.error("[wineater] try again error:",I),m(w,b,!0),m(pe,!1)}finally{m(W,!1),m(_,!1)}}async function z(b){C=!0;try{m(_,!0),ur(),We(De.SIMILAR_WINES_CLICKED,a(xe),{wine_id:b.id,wine_title:b.title}),cn({type:"similar",query_id:se??void 0,sku_ids:[b.id]}),se=pa();const I=tt.getSimilarWines(b.id);I.catch(()=>{}),await In(220),m(w,[],!0),m(ne,!1),m(pe,!1),m(T,null);const $=await I;m(x,b.title,!0),m(ge,""),!$||$.length===0?(m(w,[],!0),m(re,[],!0),m(j,ae({key:"noResultsMessage",lang:a(nt)}),!0)):(m(w,$,!0),Et($,""))}catch(I){m(w,[],!0),console.error("[wineater] similar wines error:",I),An()}finally{m(_,!1)}}xn(async()=>{if(!a(w)||a(w).length===0){m(re,[],!0);return}const b=a(w);try{const I=await Nr(a(w));a(w)===b&&a(w).length>0&&m(re,I,!0)}catch(I){console.error("translatePopupContent failed",I)}});function H(b,I){a(T)&&a(T)!==b.id&&m(T,null),m(T,b.id,!0),cn({type:"click",query_id:se??void 0,sku_ids:[b.id],position:I}),We(De.WINE_DETAILS_VIEWED,a(xe),{wine_id:b.id,wine_title:b.title,is_mobile:window.innerWidth<=768})}function Q(b,I){cn({type:"buy_click",query_id:se??void 0,sku_ids:[b.id],position:I}),We(De.BUY_BUTTON_CLICKED,a(xe),{wine_id:b.id,wine_title:b.title,wine_url:b.url,is_mobile:window.innerWidth<=768})}async function he(b,I){const $=ra(b);if(!u||!$)return;cn({type:"add_to_cart",query_id:se??void 0,sku_ids:[b.id],position:I}),We(De.BUY_BUTTON_CLICKED,a(xe),{action:"add_to_cart",wine_id:b.id,wine_title:b.title,wine_url:b.url,variant_id:$,query:a(ge)||void 0,is_mobile:window.innerWidth<=768});const oe=await Gu($,{root:u.root,sessionId:oa()});oe.ok&&(m(Ht,[...a(Ht),b.id],!0),window.dispatchEvent(new CustomEvent("wineater:added-to-cart",{detail:{variantId:$,via:oe.via}})))}function ie(){const b=a(w).find(I=>I.id===a(T));We(De.WINE_DETAILS_CLOSED,a(xe),{wine_id:a(T),wine_title:b.title}),m(T,null)}function ft(b){return!!(b.reason||b.shortDescription||b.tags)}function Ee(b){E==="store"&&ft(b)&&(m(te,b.id,!0),We(De.WINE_CARD_HOVER,a(xe),{wine_id:b.id,wine_title:b.title}))}function He(b){E==="store"&&a(te)===b.id&&m(te,null)}function dn(b,I){b.target.closest(".js-WineTileAction")||b.target.closest(".js-WinePopupClose")||(cn({type:"click",query_id:se??void 0,sku_ids:[I.id],position:a(w).findIndex($=>$.id===I.id)}),We(De.WINE_CARD_CLICK,a(xe),{wine_id:I.id,wine_title:I.title}))}function At(b){var I;const $=((I=b.composedPath)==null?void 0:I.call(b)[0])??b.target;$!=null&&$.closest&&($.closest(".js-WinePopup")||$.closest(".js-WineTileAction")||m(T,null))}const dr=((c=(l=(s=(o=window?.wineaterData)==null?void 0:o.mountTarget)==null?void 0:s.getRootNode)==null?void 0:l.call(s))==null?void 0:c.host)||document.documentElement;xn(()=>{var b,I;(b=a(Fe))!=null&&b.brandColor&&dr.style.setProperty("--wr-brand-color",a(Fe).brandColor),(I=a(Fe))!=null&&I.wineaterColor&&dr.style.setProperty("--wr-wineater-color",a(Fe).wineaterColor)}),vi(()=>(document.addEventListener("click",At),(async()=>{const b=de.initializeStore();if(jr(b),await b,!a(cr)){m(B,!0);return}a(Fe).customCss&&ju(a(Fe).customCss),m(P,!0),u&&!a(Lr)&&m(ke,!0),We(De.WIDGET_INITIALIZED,a(xe))})(),()=>{document.removeEventListener("click",At)}));var zi=Tr(),Ma=Qe(zi);{var Ra=b=>{var I=Qu();let $;var oe=A(I);{var Ae=X=>{var Ge=Vu(),It=A(Ge);L(()=>R(It,"src",a(Fe).logoUrl)),D(X,Ge)};Z(oe,X=>{a(Fe).logoUrl&&X(Ae)})}var vt=M(oe,2);Rc(vt,{});var pn=M(vt,2);Hc(pn,{onSubmit:Or,get initialized(){return a(P)},get searchQuery(){return a(x)},set searchQuery(X){m(x,X,!0)}});var pr=M(pn,2),Mn=A(pr);{var hn=X=>{var Ge=Yu(),It=A(Ge);L(Rn=>O(It,Rn),[()=>ae({key:"sommelierResting",lang:a(nt)})]),D(X,Ge)};Z(Mn,X=>{a(ke)&&!a(j)&&X(hn)})}var fe=M(Mn,2);{var rt=X=>{var Ge=Ku(),It=A(Ge),Rn=A(It);L(()=>O(Rn,a(j))),D(X,Ge)},Gt=X=>{var Ge=Zu(),It=Qe(Ge);$t(It,21,()=>a(w),Pn,(Bn,zn,hr)=>{{let $r=F(()=>u?he:void 0),Ni=F(()=>a(Ht).includes(a(zn).id)),fr=F(()=>u?void 0:z);Iu(Bn,{get wine(){return a(zn)},index:hr,get hoveredWineId(){return a(te)},get selectedWineId(){return a(T)},get isAnimating(){return a(ne)},get translatedPopup(){return a(re)[hr]},onBuyClick:H,onBuyLinkClick:Q,get onAddToCart(){return a($r)},get addedToCart(){return a(Ni)},onPopupClose:ie,get onSimilarClick(){return a(fr)},onTileEnter:Ee,onTileLeave:He,onTileClick:dn})}});var Rn=M(It,2);{var Oa=Bn=>{var zn=Ju(),hr=A(zn);Ft(hr,{handleClick:S,variant:"outlined",children:($r,Ni)=>{var fr=Pt();L($a=>O(fr,$a),[()=>ae({key:"tryAgain",lang:a(nt)})]),D($r,fr)},$$slots:{default:!0}}),D(Bn,zn)};Z(Rn,Bn=>{a(pe)&&Bn(Oa)})}D(X,Ge)},za=X=>{Wa(X)};Z(fe,X=>{a(j)?X(rt):a(w)&&a(w).length>0?X(Gt,1):a(_)&&X(za,2)})}var Li=M(pr,2);{var La=X=>{zu(X,{get lang(){return a(nt)}})},Na=F(()=>jl());Z(Li,X=>{a(Na)&&X(La)})}var ja=M(Li,2);{var qa=X=>{jc(X,{get countryCode(){return y}})};Z(ja,X=>{u||X(qa)})}L(()=>$=pt(I,1,"wr-App svelte-1n46o8q",null,$,{"wr-App--embedded":!!u})),D(b,I)},Ba=b=>{var I=Xu();let $;var oe=M(A(I),2);Wa(oe),L(()=>$=pt(I,1,"wr-App wr-App--loading svelte-1n46o8q",null,$,{"wr-App--embedded":!!u})),D(b,I)};Z(Ma,b=>{a(cr)?b(Ra):a(B)||b(Ba,1)})}D(e,zi),ot()}var Aa;const nd=((Aa=window.wineaterData)==null?void 0:Aa.mountTarget)||document.getElementById("wineater-widget-conteiner"),rd=wl(td,{target:nd});export{rd as default};
|