@divkitframework/divkit
Version:
DivKit for the web
8 lines • 477 kB
JavaScript
"use strict";var th=Object.defineProperty;var rh=(e,r,t)=>r in e?th(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var gr=(e,r,t)=>rh(e,typeof r!="symbol"?r+"":r,t);/*!
DivKit v32.61.0
https://github.com/divkit/divkit
@licence Apache-2.0
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function P(){}const Ws=e=>e;function Li(e,r){for(const t in r)e[t]=r[t];return e}function Wf(e){return e()}function ya(){return Object.create(null)}function on(e){e.forEach(Wf)}function Jr(e){return typeof e=="function"}function nh(e,r){return e!=e?r==r:e!==r||e&&typeof e=="object"||typeof e=="function"}let xo;function vi(e,r){return e===r?!0:(xo||(xo=document.createElement("a")),xo.href=r,e===xo.href)}function Ur(e,r){return e!=e?r==r:e!==r}function ih(e){return Object.keys(e).length===0}function G(e,...r){if(e==null){for(const n of r)n(void 0);return P}const t=e.subscribe(...r);return t.unsubscribe?()=>t.unsubscribe():t}function bl(e){let r;return G(e,t=>r=t)(),r}function Cn(e,r,t){e.$$.on_destroy.push(G(r,t))}function Us(e,r,t,n){if(e){const i=Uf(e,r,t,n);return e[0](i)}}function Uf(e,r,t,n){return e[1]&&n?Li(t.ctx.slice(),e[1](n(r))):t.ctx}function Gs(e,r,t,n){if(e[2]&&n){const i=e[2](n(t));if(r.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(r.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=r.dirty[a]|i[a];return o}return r.dirty|i}return r.dirty}function Ys(e,r,t,n,i,o){if(i){const s=Uf(r,t,n,o);e.p(s,i)}}function qs(e){if(e.ctx.length>32){const r=[],t=e.ctx.length/32;for(let n=0;n<t;n++)r[n]=-1;return r}return-1}function il(e,r,t){return e.set(t),r}function Ks(e){return e&&Jr(e.destroy)?e.destroy:P}function va(e){const r=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[e,"px"]}const Gf=typeof window<"u";let Yl=Gf?()=>window.performance.now():()=>Date.now(),ql=Gf?e=>requestAnimationFrame(e):P;const wo=new Set;function Yf(e){wo.forEach(r=>{r.c(e)||(wo.delete(r),r.f())}),wo.size!==0&&ql(Yf)}function Kl(e){let r;return wo.size===0&&ql(Yf),{promise:new Promise(t=>{wo.add(r={c:e,f:t})}),abort(){wo.delete(r)}}}const Ti=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;let Js=!1;function oh(){Js=!0}function sh(){Js=!1}function lh(e,r,t,n){for(;e<r;){const i=e+(r-e>>1);t(i)<=n?e=i+1:r=i}return e}function ah(e){if(e.hydrate_init)return;e.hydrate_init=!0;let r=e.childNodes;if(e.nodeName==="HEAD"){const l=[];for(let u=0;u<r.length;u++){const c=r[u];c.claim_order!==void 0&&l.push(c)}r=l}const t=new Int32Array(r.length+1),n=new Int32Array(r.length);t[0]=-1;let i=0;for(let l=0;l<r.length;l++){const u=r[l].claim_order,c=(i>0&&r[t[i]].claim_order<=u?i+1:lh(1,i,_=>r[t[_]].claim_order,u))-1;n[l]=t[c]+1;const d=c+1;t[d]=l,i=Math.max(d,i)}const o=[],s=[];let a=r.length-1;for(let l=t[i]+1;l!=0;l=n[l-1]){for(o.push(r[l-1]);a>=l;a--)s.push(r[a]);a--}for(;a>=0;a--)s.push(r[a]);o.reverse(),s.sort((l,u)=>l.claim_order-u.claim_order);for(let l=0,u=0;l<s.length;l++){for(;u<o.length&&s[l].claim_order>=o[u].claim_order;)u++;const c=u<o.length?o[u]:null;e.insertBefore(s[l],c)}}function uh(e,r){e.appendChild(r)}function qf(e){if(!e)return document;const r=e.getRootNode?e.getRootNode():e.ownerDocument;return r&&r.host?r:e.ownerDocument}function ch(e){const r=Ne("style");return r.textContent="/* empty */",fh(qf(e),r),r.sheet}function fh(e,r){return uh(e.head||e,r),r.sheet}function zt(e,r){if(Js){for(ah(e),(e.actual_end_child===void 0||e.actual_end_child!==null&&e.actual_end_child.parentNode!==e)&&(e.actual_end_child=e.firstChild);e.actual_end_child!==null&&e.actual_end_child.claim_order===void 0;)e.actual_end_child=e.actual_end_child.nextSibling;r!==e.actual_end_child?(r.claim_order!==void 0||r.parentNode!==e)&&e.insertBefore(r,e.actual_end_child):e.actual_end_child=r.nextSibling}else(r.parentNode!==e||r.nextSibling!==null)&&e.appendChild(r)}function dh(e,r,t){e.insertBefore(r,t||null)}function ee(e,r,t){Js&&!t?zt(e,r):(r.parentNode!==e||r.nextSibling!=t)&&e.insertBefore(r,t||null)}function E(e){e.parentNode&&e.parentNode.removeChild(e)}function In(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function Ne(e){return document.createElement(e)}function An(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function si(e){return document.createTextNode(e)}function Cr(){return si(" ")}function tt(){return si("")}function Le(e,r,t,n){return e.addEventListener(r,t,n),()=>e.removeEventListener(r,t,n)}function y(e,r,t){t==null?e.removeAttribute(r):e.getAttribute(r)!==t&&e.setAttribute(r,t)}const hh=["width","height"];function wi(e,r){const t=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in r)r[n]==null?e.removeAttribute(n):n==="style"?e.style.cssText=r[n]:n==="__value"?e.value=e[n]=r[n]:t[n]&&t[n].set&&hh.indexOf(n)===-1?e[n]=r[n]:y(e,n,r[n])}function _h(e,r){Object.keys(r).forEach(t=>{gh(e,t,r[t])})}function gh(e,r,t){const n=r.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&t===""?!0:t:r in e?e[r]=typeof e[r]=="boolean"&&t===""?!0:t:y(e,r,t)}function wa(e){return/-/.test(e)?_h:wi}function Ve(e){return Array.from(e.childNodes)}function Kf(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function Jf(e,r,t,n,i=!1){Kf(e);const o=(()=>{for(let s=e.claim_info.last_index;s<e.length;s++){const a=e[s];if(r(a)){const l=t(a);return l===void 0?e.splice(s,1):e[s]=l,i||(e.claim_info.last_index=s),a}}for(let s=e.claim_info.last_index-1;s>=0;s--){const a=e[s];if(r(a)){const l=t(a);return l===void 0?e.splice(s,1):e[s]=l,i?l===void 0&&e.claim_info.last_index--:e.claim_info.last_index=s,a}}return n()})();return o.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,o}function Xf(e,r,t,n){return Jf(e,i=>i.nodeName===r,i=>{const o=[];for(let s=0;s<i.attributes.length;s++){const a=i.attributes[s];t[a.name]||o.push(a.name)}o.forEach(s=>i.removeAttribute(s))},()=>n(r))}function Re(e,r,t){return Xf(e,r,t,Ne)}function Fn(e,r,t){return Xf(e,r,t,An)}function ki(e,r){return Jf(e,t=>t.nodeType===3,t=>{const n=""+r;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n},()=>si(r),!0)}function jr(e){return ki(e," ")}function ka(e,r,t){for(let n=t;n<e.length;n+=1){const i=e[n];if(i.nodeType===8&&i.textContent.trim()===r)return n}return-1}function Jl(e,r){const t=ka(e,"HTML_TAG_START",0),n=ka(e,"HTML_TAG_END",t+1);if(t===-1||n===-1)return new ko(r);Kf(e);const i=e.splice(t,n-t+1);E(i[0]),E(i[i.length-1]);const o=i.slice(1,i.length-1);if(o.length===0)return new ko(r);for(const s of o)s.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1;return new ko(r,o)}function Ri(e,r){r=""+r,e.data!==r&&(e.data=r)}function Ea(e,r){e.value=r==null?"":r}function K(e,r,t,n){t==null?e.style.removeProperty(r):e.style.setProperty(r,t,"")}function Aa(e,r,t){for(let n=0;n<e.options.length;n+=1){const i=e.options[n];if(i.__value===r){i.selected=!0;return}}(!t||r!==void 0)&&(e.selectedIndex=-1)}function ph(e){const r=e.querySelector(":checked");return r&&r.__value}function Zf(e,r,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:r,bubbles:t,cancelable:n})}class mh{constructor(r=!1){gr(this,"is_svg",!1);gr(this,"e");gr(this,"n");gr(this,"t");gr(this,"a");this.is_svg=r,this.e=this.n=null}c(r){this.h(r)}m(r,t,n=null){this.e||(this.is_svg?this.e=An(t.nodeName):this.e=Ne(t.nodeType===11?"TEMPLATE":t.nodeName),this.t=t.tagName!=="TEMPLATE"?t:t.content,this.c(r)),this.i(n)}h(r){this.e.innerHTML=r,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(r){for(let t=0;t<this.n.length;t+=1)dh(this.t,this.n[t],r)}p(r){this.d(),this.h(r),this.i(this.a)}d(){this.n.forEach(E)}}class ko extends mh{constructor(t=!1,n){super(t);gr(this,"l");this.e=this.n=null,this.l=n}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let n=0;n<this.n.length;n+=1)ee(this.t,this.n[n],t)}}function Ca(e,r){return new e(r)}const Vs=new Map;let Is=0;function bh(e){let r=5381,t=e.length;for(;t--;)r=(r<<5)-r^e.charCodeAt(t);return r>>>0}function yh(e,r){const t={stylesheet:ch(r),rules:{}};return Vs.set(e,t),t}function Ds(e,r,t,n,i,o,s,a=0){const l=16.666/n;let u=`{
`;for(let w=0;w<=1;w+=l){const A=r+(t-r)*o(w);u+=w*100+`%{${s(A,1-A)}}
`}const c=u+`100% {${s(t,1-t)}}
}`,d=`__svelte_${bh(c)}_${a}`,_=qf(e),{stylesheet:g,rules:p}=Vs.get(_)||yh(_,e);p[d]||(p[d]=!0,g.insertRule(`@keyframes ${d} ${c}`,g.cssRules.length));const h=e.style.animation||"";return e.style.animation=`${h?`${h}, `:""}${d} ${n}ms linear ${i}ms 1 both`,Is+=1,d}function Ts(e,r){const t=(e.style.animation||"").split(", "),n=t.filter(r?o=>o.indexOf(r)<0:o=>o.indexOf("__svelte")===-1),i=t.length-n.length;i&&(e.style.animation=n.join(", "),Is-=i,Is||vh())}function vh(){ql(()=>{Is||(Vs.forEach(e=>{const{ownerNode:r}=e.stylesheet;r&&E(r)}),Vs.clear())})}let Uo;function Ho(e){Uo=e}function To(){if(!Uo)throw new Error("Function called outside component initialization");return Uo}function li(e){To().$$.on_mount.push(e)}function Xs(e){To().$$.after_update.push(e)}function Dn(e){To().$$.on_destroy.push(e)}function wh(){const e=To();return(r,t,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[r];if(i){const o=Zf(r,t,{cancelable:n});return i.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}function Ni(e,r){return To().$$.context.set(e,r),r}function tn(e){return To().$$.context.get(e)}function Hn(e,r){const t=e.$$.callbacks[r.type];t&&t.slice().forEach(n=>n.call(this,r))}const yo=[],Or=[];let Eo=[];const ja=[],Qf=Promise.resolve();let yl=!1;function xf(){yl||(yl=!0,Qf.then($f))}function zn(){return xf(),Qf}function ri(e){Eo.push(e)}const ol=new Set;let po=0;function $f(){if(po!==0)return;const e=Uo;do{try{for(;po<yo.length;){const r=yo[po];po++,Ho(r),kh(r.$$)}}catch(r){throw yo.length=0,po=0,r}for(Ho(null),yo.length=0,po=0;Or.length;)Or.pop()();for(let r=0;r<Eo.length;r+=1){const t=Eo[r];ol.has(t)||(ol.add(t),t())}Eo.length=0}while(yo.length);for(;ja.length;)ja.pop()();yl=!1,ol.clear(),Ho(e)}function kh(e){if(e.fragment!==null){e.update(),on(e.before_update);const r=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,r),e.after_update.forEach(ri)}}function Eh(e){const r=[],t=[];Eo.forEach(n=>e.indexOf(n)===-1?r.push(n):t.push(n)),t.forEach(n=>n()),Eo=r}let Lo;function Xl(){return Lo||(Lo=Promise.resolve(),Lo.then(()=>{Lo=null})),Lo}function no(e,r,t){e.dispatchEvent(Zf(`${r?"intro":"outro"}${t}`))}const cs=new Set;let Vi;function Sr(){Vi={r:0,c:[],p:Vi}}function Vr(){Vi.r||on(Vi.c),Vi=Vi.p}function x(e,r){e&&e.i&&(cs.delete(e),e.i(r))}function oe(e,r,t,n){if(e&&e.o){if(cs.has(e))return;cs.add(e),Vi.c.push(()=>{cs.delete(e),n&&(t&&e.d(1),n())}),e.o(r)}else n&&n()}const Zl={duration:0};function Zs(e,r,t){const n={direction:"in"};let i=r(e,t,n),o=!1,s,a,l=0;function u(){s&&Ts(e,s)}function c(){const{delay:_=0,duration:g=300,easing:p=Ws,tick:h=P,css:w}=i||Zl;w&&(s=Ds(e,0,1,g,_,p,w,l++)),h(0,1);const A=Yl()+_,Y=A+g;a&&a.abort(),o=!0,ri(()=>no(e,!0,"start")),a=Kl(Q=>{if(o){if(Q>=Y)return h(1,0),no(e,!0,"end"),u(),o=!1;if(Q>=A){const J=p((Q-A)/g);h(J,1-J)}}return o})}let d=!1;return{start(){d||(d=!0,Ts(e),Jr(i)?(i=i(n),Xl().then(c)):c())},invalidate(){d=!1},end(){o&&(u(),o=!1)}}}function ed(e,r,t){const n={direction:"out"};let i=r(e,t,n),o=!0,s;const a=Vi;a.r+=1;let l;function u(){const{delay:c=0,duration:d=300,easing:_=Ws,tick:g=P,css:p}=i||Zl;p&&(s=Ds(e,1,0,d,c,_,p));const h=Yl()+c,w=h+d;ri(()=>no(e,!1,"start")),"inert"in e&&(l=e.inert,e.inert=!0),Kl(A=>{if(o){if(A>=w)return g(0,1),no(e,!1,"end"),--a.r||on(a.c),!1;if(A>=h){const Y=_((A-h)/d);g(1-Y,Y)}}return o})}return Jr(i)?Xl().then(()=>{i=i(n),u()}):u(),{end(c){c&&"inert"in e&&(e.inert=l),c&&i.tick&&i.tick(1,0),o&&(s&&Ts(e,s),o=!1)}}}function Sa(e,r,t,n){let o=r(e,t,{direction:"both"}),s=n?0:1,a=null,l=null,u=null,c;function d(){u&&Ts(e,u)}function _(p,h){const w=p.b-s;return h*=Math.abs(w),{a:s,b:p.b,d:w,duration:h,start:p.start,end:p.start+h,group:p.group}}function g(p){const{delay:h=0,duration:w=300,easing:A=Ws,tick:Y=P,css:Q}=o||Zl,J={start:Yl()+h,b:p};p||(J.group=Vi,Vi.r+=1),"inert"in e&&(p?c!==void 0&&(e.inert=c):(c=e.inert,e.inert=!0)),a||l?l=J:(Q&&(d(),u=Ds(e,s,p,w,h,A,Q)),p&&Y(0,1),a=_(J,w),ri(()=>no(e,p,"start")),Kl(de=>{if(l&&de>l.start&&(a=_(l,w),l=null,no(e,a.b,"start"),Q&&(d(),u=Ds(e,s,a.b,a.duration,0,A,o.css))),a){if(de>=a.end)Y(s=a.b,1-s),no(e,a.b,"end"),l||(a.b?d():--a.group.r||on(a.group.c)),a=null;else if(de>=a.start){const ie=de-a.start;s=a.a+a.d*A(ie/a.duration),Y(s,1-s)}}return!!(a||l)}))}return{run(p){Jr(o)?Xl().then(()=>{o=o({direction:p?"in":"out"}),g(p)}):g(p)},end(){d(),a=l=null}}}function wr(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function td(e,r){oe(e,1,1,()=>{r.delete(e.key)})}function rd(e,r,t,n,i,o,s,a,l,u,c,d){let _=e.length,g=o.length,p=_;const h={};for(;p--;)h[e[p].key]=p;const w=[],A=new Map,Y=new Map,Q=[];for(p=g;p--;){const W=d(i,o,p),X=t(W);let se=s.get(X);se?Q.push(()=>se.p(W,r)):(se=u(X,W),se.c()),A.set(X,w[p]=se),X in h&&Y.set(X,Math.abs(p-h[X]))}const J=new Set,de=new Set;function ie(W){x(W,1),W.m(a,c),s.set(W.key,W),c=W.first,g--}for(;_&&g;){const W=w[g-1],X=e[_-1],se=W.key,L=X.key;W===X?(c=W.first,_--,g--):A.has(L)?!s.has(se)||J.has(se)?ie(W):de.has(L)?_--:Y.get(se)>Y.get(L)?(de.add(se),ie(W)):(J.add(L),_--):(l(X,s),_--)}for(;_--;){const W=e[_];A.has(W.key)||l(W,s)}for(;g;)ie(w[g-1]);return on(Q),w}function qi(e,r){const t={},n={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],a=r[o];if(a){for(const l in s)l in a||(n[l]=1);for(const l in a)i[l]||(t[l]=a[l],i[l]=1);e[o]=a}else for(const l in s)i[l]=1}for(const s in n)s in t||(t[s]=void 0);return t}function nd(e){return typeof e=="object"&&e!==null?e:{}}function ar(e){e&&e.c()}function cr(e,r){e&&e.l(r)}function ir(e,r,t){const{fragment:n,after_update:i}=e.$$;n&&n.m(r,t),ri(()=>{const o=e.$$.on_mount.map(Wf).filter(Jr);e.$$.on_destroy?e.$$.on_destroy.push(...o):on(o),e.$$.on_mount=[]}),i.forEach(ri)}function or(e,r){const t=e.$$;t.fragment!==null&&(Eh(t.after_update),on(t.on_destroy),t.fragment&&t.fragment.d(r),t.on_destroy=t.fragment=null,t.ctx=[])}function Ah(e,r){e.$$.dirty[0]===-1&&(yo.push(e),xf(),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31}function sn(e,r,t,n,i,o,s=null,a=[-1]){const l=Uo;Ho(e);const u=e.$$={fragment:null,ctx:[],props:o,update:P,not_equal:i,bound:ya(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:ya(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(e,r.props||{},(d,_,...g)=>{const p=g.length?g[0]:_;return u.ctx&&i(u.ctx[d],u.ctx[d]=p)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](p),c&&Ah(e,d)),_}):[],u.update(),c=!0,on(u.before_update),u.fragment=n?n(u.ctx):!1,r.target){if(r.hydrate){oh();const d=Ve(r.target);u.fragment&&u.fragment.l(d),d.forEach(E)}else u.fragment&&u.fragment.c();r.intro&&x(e.$$.fragment),ir(e,r.target,r.anchor),sh(),$f()}Ho(l)}class ln{constructor(){gr(this,"$$");gr(this,"$$set")}$destroy(){or(this,1),this.$destroy=P}$on(r,t){if(!Jr(t))return P;const n=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return n.push(t),()=>{const i=n.indexOf(t);i!==-1&&n.splice(i,1)}}$set(r){this.$$set&&!ih(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const Ch="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ch);const mo=[];function jh(e,r){return{subscribe:yi(e,r).subscribe}}function yi(e,r=P){let t;const n=new Set;function i(a){if(nh(e,a)&&(e=a,t)){const l=!mo.length;for(const u of n)u[1](),mo.push(u,e);if(l){for(let u=0;u<mo.length;u+=2)mo[u][0](mo[u+1]);mo.length=0}}}function o(a){i(a(e))}function s(a,l=P){const u=[a,l];return n.add(u),n.size===1&&(t=r(i,o)||P),a(e),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:i,update:o,subscribe:s}}function co(e,r,t){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=r.length<2;return jh(t,(s,a)=>{let l=!1;const u=[];let c=0,d=P;const _=()=>{if(c)return;d();const p=r(n?u[0]:u,s,a);o?s(p):d=Jr(p)?p:P},g=i.map((p,h)=>G(p,w=>{u[h]=w,c&=~(1<<h),l&&_()},()=>{c|=1<<h}));return l=!0,_(),function(){on(g),d(),l=!1}})}const Sh="divkit-6d515",Vh="divkit-27458",Ih="divkit-82db1",Dh="divkit-be734",Th="divkit-9a652",Er={root_platform_desktop:Sh,root__clickable:Vh,"root__clickable-no-transition":"divkit-3bb57","root__any-actions":"divkit-ba614",root:Ih,root__selectable:Dh,root__unselectable:Th,"root__only-desktop":"divkit-316e7","root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},jn=Symbol("root");function H(e,r={}){const t=e;return t.level=r.level||"error",r.additional&&(t.additional=r.additional),t}const Fh="divkit-bf0ea",Mh="divkit-bab07",Ph="divkit-07f20",Nh="divkit-27458",zh="divkit-90c49",Oh="divkit-b33bc",Lh="divkit-f6ff9",Fs={outer:Fh,outer_width_content:Mh,outer_height_content:Ph,root__clickable:Nh,"root__clickable-no-transition":"divkit-3bb57","outer_hide-on-transition-in":"divkit-c5f24","outer_halign-self_start":"divkit-002ec","outer_halign-self_center":"divkit-204f8","outer_halign-self_end":"divkit-bd7ba","outer_halign-self_stretch":"divkit-02d12","outer_valign-self_start":"divkit-fd8aa","outer_valign-self_center":"divkit-62df2","outer_valign-self_end":"divkit-819a0","outer_valign-self_stretch":"divkit-8a331","outer_parent-flex_vertical":"divkit-46b27","outer_parent-flex_horizontal":"divkit-be075","outer_valign-self_baseline":"divkit-2b876","outer_width-constrained":"divkit-5bdb7","outer_parent-grid":"divkit-47ef2","outer_height-constrained":"divkit-351c8","outer_parent-overlap":"divkit-747b0","outer_scroll-snap_start":"divkit-91fd4","outer_scroll-snap_center":"divkit-c525d","outer_scroll-snap_end":"divkit-67470",outer__border:zh,outer_visibility_invisible:Oh,outer_visibility_gone:Lh,"outer_has-action-animation":"divkit-4d4f3","outer_has-custom-focus":"divkit-b630e"};function xt(e){if(!e)return;let r="";for(const t in e)if(e.hasOwnProperty(t)){if(!e[t]&&e[t]!==0)continue;r&&(r+=";"),r+=t+":"+String(e[t])}return r||void 0}function We(e){if(typeof e!="number"&&typeof e!="string"||!e)return"0";const r=Number(e);return Number.isNaN(r)?"0":Math.ceil(r*1e3)/1e4+"em"}function rn(e){let r=We(e);return r==="0"&&(r+="em"),r}function id(e,r){for(;e.length<r;)e="0"+e;return e}function Wr(e,r=1,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=hi(e);return n?(n.a*=r,Ql(n)):t}function Rh(e,r,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=hi(e);return n?(n.a=r,Ql(n)):t}function Ql(e){return e.a===255?`#${[e.r,e.g,e.b].map(r=>id(Math.round(r).toString(16),2)).join("")}`:`rgba(${e.r},${e.g},${e.b},${(e.a/255).toFixed(2)})`}function hi(e){const r=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(r){if(r.length===5){const[u,c,d,_,g]=r,p=d.length===2?d:d+d,h=_.length===2?_:_+_,w=g.length===2?g:g+g,A=c.length===2?c:c+c;return{a:parseInt(A,16),r:parseInt(p,16),g:parseInt(h,16),b:parseInt(w,16)}}const[t,n,i,o]=r,s=n.length===2?n:n+n,a=i.length===2?i:i+i,l=o.length===2?o:o+o;return{a:255,r:parseInt(s,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function vl(e){let r=String(e);return r.indexOf("&")>-1&&(r=r.replace(/&/g,"&")),r.indexOf("<")>-1&&(r=r.replace(/</g,"<")),r.indexOf(">")>-1&&(r=r.replace(/>/g,">")),r.indexOf('"')>-1&&(r=r.replace(/"/g,""")),r}const Fi=Boolean;function Qs(e,r){if(e.length===1&&e[0].type==="solid")return Hh({bg:e[0]});const t=e.map(n=>{if(n.type==="solid")return Bh({bg:n});if(n.type==="gradient")return Wh({bg:n});if(n.type==="image")return Yh({bg:n,direction:r});if(n.type==="radial_gradient")return Gh({bg:n})}).filter(Fi).reverse().reduce(function(n,i){return n.image.push(i.image),n.size.push(i.size||"auto"),n.position.push(i.pos||"50% 50%"),n},{image:[],size:[],position:[]});return{image:t.image.join(","),size:t.size.join(","),position:t.position.join(",")}}function Bh(e){const r=Wr(e.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function Hh(e){return{color:Wr(e.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function od(e){return e.every(n=>n.color&&typeof n.position=="number"&&n.position>=0&&n.position<=1)?e.sort((n,i)=>Math.abs(n.position-i.position)<1e-6?0:n.position-i.position).map(n=>`${Wr(n.color)} ${(n.position*100).toFixed(2)}%`).join(","):void 0}function Wh(e){var n,i,o,s;if(!Array.isArray((n=e.bg)==null?void 0:n.colors)&&!Array.isArray((i=e.bg)==null?void 0:i.color_map))return;const r=(o=e.bg.colors)==null?void 0:o.filter(Fi);if(!(r!=null&&r.length)&&!((s=e.bg)!=null&&s.color_map))return;let t;if(e.bg.color_map){const a=od(e.bg.color_map);if(!a)return;t="linear-gradient("+(90-Number(e.bg.angle||0)+"deg")+","+a+")"}else{if(!r)return;t="linear-gradient("+(90-Number(e.bg.angle||0)+"deg")+","+r.map(a=>Wr(a)).join(",")+")"}return{size:void 0,pos:void 0,image:t}}const Uh={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Va(e){if(e&&typeof e=="object"&&"type"in e&&e.value!==void 0){if(e.type==="fixed")return rn(e.value);if(e.type==="relative")return`${Number(e.value)*100}%`}return"50%"}function Gh(e){var a,l,u,c;if(!Array.isArray((a=e.bg)==null?void 0:a.colors)&&!Array.isArray((l=e.bg)==null?void 0:l.color_map))return;const r=(u=e.bg.colors)==null?void 0:u.filter(Fi);if(!(r!=null&&r.length)&&!((c=e.bg)!=null&&c.color_map))return;let t;if(e.bg.color_map?t=od(e.bg.color_map):r&&(t=r.map(d=>Wr(d)).join(",")),!t)return;const n=e.bg.radius;let i;n&&typeof n=="object"&&"type"in n&&n.value!==void 0&&(n.type==="fixed"?i=rn(n.value):n.type==="relative"&&(i=Uh[n.value]));const o=Va(e.bg.center_x),s=Va(e.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${i||"farthest-corner"} at ${o} ${s},`+t+")"}}function Yh(e){var t;const r=(t=e.bg)==null?void 0:t.image_url;if(r)return{size:sd(e.bg.scale),pos:ld(e.bg,e.direction),image:'url("'+vl(r)+'")'}}function sd(e){return e==="fit"?"contain":e==="stretch"?"fill":e==="no_scale"?"none":"cover"}function qh(e){return e==="none"?"auto":e==="fill"?"100% 100%":e}function ld(e,r){let t,n;return e.content_alignment_horizontal==="left"||r==="ltr"&&e.content_alignment_horizontal==="start"||r==="rtl"&&e.content_alignment_horizontal==="end"?t="0%":e.content_alignment_horizontal==="right"||r==="ltr"&&e.content_alignment_horizontal==="end"||r==="rtl"&&e.content_alignment_horizontal==="start"?t="100%":t="50%",e.content_alignment_vertical==="top"?n="0%":e.content_alignment_vertical==="bottom"?n="100%":n="50%",t+" "+n}function un(e,r){const t=Number(e);return Number.isNaN(t)||t<0?r:t}function Ia(e,r,t){return typeof r=="number"&&(e&&r>0&&r<=100||!e&&r>=0&&r<100)?r:t}function Kh(e){return e.is_enabled!==0&&e.is_enabled!==!1&&e.index!==void 0}function Jh(e,{visibilityActions:r,disappearActions:t,rootCtx:n,componentContext:i}){const o=[];r&&r.forEach(g=>{o.push({type:"visibility",index:o.length,action:g,visible:!1,count:0,finished:!1})}),t&&t.forEach(g=>{o.push({type:"disappear",index:o.length,action:g,visible:!1,count:0,finished:!1})});const s=o.map((g,p)=>{const h=g.type==="visibility";return i.getDerivedFromVars({index:p,visibility_percentage:g.action.visibility_percentage,visibility_duration:h?g.action.visibility_duration:g.action.disappear_duration,log_limit:g.action.log_limit,is_enabled:g.action.is_enabled},void 0,!0)});let a;const l=()=>{a&&a.disconnect(),o.forEach(g=>{g.timer&&clearTimeout(g.timer)})},u=co(s,g=>g);let c;const d=g=>{const p=g.type==="visibility";i.execAnyActions([g.action],{logType:p?"visible":"disappear",node:e,processUrls:!1})},_=u.subscribe(g=>{c=g.filter(Kh);const p={};c.forEach(A=>{p[A.index]=A}),l();const h=[...new Set(c.map(A=>{const Y=o[A.index].type==="visibility";return Ia(Y,A.visibility_percentage,Y?50:0)/100}))];if(!h.length)return;const w=A=>{A.forEach(Y=>{c.forEach(Q=>{const J=o[Q.index],de=J.type==="visibility",ie=Ia(de,Q.visibility_percentage,de?50:0);let W;ie===0?W=Y.intersectionRatio>=1e-12:W=Y.intersectionRatio>=ie/100,(de?!J.visible&&W:J.visible&&!W)?J.finished||(J.timer=setTimeout(()=>{++J.count;const L=Q.log_limit===0?1/0:Q.log_limit||1;J.count>=L&&(J.finished=!0),d(J)},un(Q.visibility_duration,800))):(de?!W:W)&&J.timer&&clearTimeout(J.timer),J.visible=W})})};a=new IntersectionObserver(w,{threshold:h}),a.observe(e)});return{destroy(){c==null||c.forEach(g=>{const p=o[g.index];!p||p.type!=="disappear"||!p.visible||p.finished||n.registerTimeout(window.setTimeout(()=>{d(p)},g.visibility_duration))}),l(),_()}}}function Da(e,r){r&&e.push(r)}function Dt(e,r,t){const n=[];Da(n,r[e]);for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];if(o){const s=`${e}_${i}`+(typeof o=="string"?`_${o}`:"");Da(n,r[s])}}return n.join(" ")}const xl=Symbol("state");function _i(e,r){var s,a;const t=e.top||0,n=((s=r==="ltr"?e.end:e.start)!=null?s:e.right)||0,i=e.bottom||0,o=((a=r==="ltr"?e.start:e.end)!=null?a:e.left)||0;return t===0&&n===0&&i===0&&o===0?"":We(t)+" "+We(n)+" "+We(i)+" "+We(o)}function Fo(e){if(typeof e!="number"&&typeof e!="string")return!1;const r=Number(e);return!Number.isNaN(r)}function Kn(e){return Fo(e)&&e>=0}function Ms(e,r,t){var i,o;if(!e)return t;const n=[e.top,(i=r==="ltr"?e.end:e.start)!=null?i:e.right,e.bottom,(o=r==="ltr"?e.start:e.end)!=null?o:e.left];for(let s=0;s<n.length;++s)if(n[s]&&!Kn(n[s]))return t;return _i(e,r)}function Xh(e,r){return!Kn(e)||e===void 0||e>1?r:Number(e)}const Zh=Object.prototype.hasOwnProperty;function Mo(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return Object.is(e,r);const t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){const o=t[i];if(!Zh.call(r,o)||!Mo(e[o],r[o]))return!1}return!0}function Gi(e,r){return Mo(e,r)?r:e}function Qh(e,r){return e==="visible"||e==="invisible"||e==="gone"?e:r}function ad(e,r){return e==="linear"||e==="ease"||e==="ease_in_out"||e==="ease_in"||e==="ease_out"?e:r}function Ps(e,r){const t=Number(e);return Number.isNaN(t)?r:t}function Go(e){const r=[];return e.name==="set"?(e.items||[]).forEach(t=>{r.push(...Go(t))}):r.push(e),r}function fo(e,r){if(!e||typeof e!="object")return r;const t=["top","right","bottom","left"];for(let n=0;n<t.length;++n)if(e[t[n]]&&!Kn(e[t[n]]))return r;return e}function xh(e,r){if(!e&&!r)return{};if(!r)return e;if(!e)return r;const t={};return["top","right","bottom","left","start","end"].forEach(n=>{const i=e[n];i&&(t[n]=i);const o=r[n];o&&(t[n]=(t[n]||0)+o)}),t}function $h(e,r){const t=[e["top-left"],e["top-right"],e["bottom-right"],e["bottom-left"]];for(let n=0;n<t.length;++n)if(t[n]&&!Kn(t[n]))return r;return e}function fs(e,r=0,t=10){return[e["top-left"],e["top-right"],e["bottom-right"],e["bottom-left"]].map(n=>We((n||r)/t*10)).join(" ")}function e_(e){var r,t,n,i,o,s;return We(((t=(r=e.offset)==null?void 0:r.x)==null?void 0:t.value)||0)+" "+We(((i=(n=e.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+We((o=e.blur)!=null?o:2)+" "+Wr(e.color||"#000000",(s=e.alpha)!=null?s:.19)}function t_(e,r){var t,n,i,o,s,a;return"drop-shadow("+Wr(e.color||"#000000",(t=e.alpha)!=null?t:.19)+" "+We((((i=(n=e.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+We((((s=(o=e.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+We(((a=e.blur)!=null?a:2)*10/r)+")"}let sl;function io(){return typeof matchMedia>"u"?!1:(sl||(sl=window.matchMedia("(prefers-reduced-motion)")),sl.matches)}const r_=8,n_=(e,r,t,n)=>{let i;return(t||n)&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(async()=>{let o=0;const s={},a=(u,c)=>{if(u){const d=r.getVariable(u,"integer");if(d){if(c=Math.round(c),s[u]||(s[u]=new Set),!s[u].has(c))return d.setValue(c),s[u].add(c),!0}else{const _=new Error("Missing variable");_.level="error",_.additional={variableName:u},r.logError(_)}}return!1},l=()=>{if(!e)return!1;const u=e.getBoundingClientRect(),c=a(t,u.width),d=a(n,u.height);return c||d};for(;l();){if(++o>r_){const u=new Error("Recursive layout in size_provider");u.level="warn",u.additional={widthVariableName:t,heightVariableName:n},r.logError(u);break}await zn()}}),i.observe(e)),i},$l=Symbol("enabled");function Wn(e,r){return e===1||e===0||e===!1||e===!0?!!e:r}function Co(e){return[e.state_description,e.description,e.hint].filter(Boolean).join(", ")}const Ta=1,Yi=2;function Fa(e,r=1){if(!(!e||typeof e.value!="number")){if(e.type==="translation-fixed")return We(e.value*r);if(e.type==="translation-percentage")return`${e.value*r}%`}}function $o(e,r=1){if(!(!e||typeof e.value!="number")){if(e.type==="pivot-fixed")return We(e.value*r);if(e.type==="pivot-percentage")return`${e.value*r}%`}}function i_(e){return e.map(r=>{if(r.type==="rotation"){if(typeof r.angle=="number"){const t=$o(r.pivot_x)||"50%",n=$o(r.pivot_y)||"50%",i=$o(r.pivot_x,-1)||"-50%",o=$o(r.pivot_y,-1)||"-50%";return`translate(${t}, ${n}) rotate(${r.angle}deg) translate(${i}, ${o})`}}else if(r.type==="translation"){const t=Fa(r.x)||0,n=Fa(r.y)||0;return`translate(${t}, ${n})`}}).filter(Boolean).join(" ")}const wl=Symbol("visibility"),o_="divkit-ee5cc",Ma={actionable__button:o_};function s_(){}const oo=Symbol("action");function kl(e){if(e.startsWith("tel:"))return"tel";if(e.startsWith("/"))return"https";const r=/^([^/]+):\/\//.exec(e);return r&&r[1]||""}function El(e,r){return r.has(e)}function l_(e){var d;let r,t,n,i,o,s;const a=e[30].default,l=Us(a,e,e[29],null);let u=[{class:t=e[2]+" "+((d=e[1])!=null&&d.length?Er["root_disabled-context-menu"]:"")+" "+(e[13]?Er["root__any-actions"]:"")},{style:e[3]},{role:e[10]},{"aria-checked":e[14]},{"aria-hidden":n=e[11]||void 0},e[4]],c={};for(let _=0;_<u.length;_+=1)c=Li(c,u[_]);return{c(){r=Ne("span"),l&&l.c(),this.h()},l(_){r=Re(_,"SPAN",{class:!0,style:!0,role:!0,"aria-checked":!0,"aria-hidden":!0});var g=Ve(r);l&&l.l(g),g.forEach(E),this.h()},h(){wi(r,c)},m(_,g){ee(_,r,g),l&&l.m(r,null),e[48](r),i=!0,o||(s=[Ks(e[5].call(null,r)),Le(r,"click",e[41]),Le(r,"keydown",e[16]),Le(r,"focus",e[42]),Le(r,"blur",e[43]),Le(r,"pointerdown",e[44]),Le(r,"wheel",e[45])],o=!0)},p(_,g){var p;l&&l.p&&(!i||g[0]&536870912)&&Ys(l,a,_,_[29],i?Gs(a,_[29],g,null):qs(_[29]),null),wi(r,c=qi(u,[(!i||g[0]&8198&&t!==(t=_[2]+" "+((p=_[1])!=null&&p.length?Er["root_disabled-context-menu"]:"")+" "+(_[13]?Er["root__any-actions"]:"")))&&{class:t},(!i||g[0]&8)&&{style:_[3]},(!i||g[0]&1024)&&{role:_[10]},(!i||g[0]&16384)&&{"aria-checked":_[14]},(!i||g[0]&2048&&n!==(n=_[11]||void 0))&&{"aria-hidden":n},g[0]&16&&_[4]]))},i(_){i||(x(l,_),i=!0)},o(_){oe(l,_),i=!1},d(_){_&&E(r),l&&l.d(_),e[48](null),o=!1,on(s)}}}function a_(e){var d;let r,t,n,i,o,s;const a=e[30].default,l=Us(a,e,e[29],null);let u=[{class:t=e[2]+" "+Ma.actionable__button+" "+Er["root__any-actions"]+` ${e[6]?Er.root__clickable:Er["root__clickable-no-transition"]} ${Er.root__unselectable} `+((d=e[1])!=null&&d.length?Er["root_disabled-context-menu"]:"")},{style:e[3]},{role:e[10]},{"aria-checked":e[14]},{type:"button"},{tabindex:n=e[0].fakeElement===Yi?-1:null},e[4]],c={};for(let _=0;_<u.length;_+=1)c=Li(c,u[_]);return{c(){r=Ne("button"),l&&l.c(),this.h()},l(_){r=Re(_,"BUTTON",{class:!0,style:!0,role:!0,"aria-checked":!0,type:!0,tabindex:!0});var g=Ve(r);l&&l.l(g),g.forEach(E),this.h()},h(){wi(r,c)},m(_,g){ee(_,r,g),l&&l.m(r,null),r.autofocus&&r.focus(),e[47](r),i=!0,o||(s=[Ks(e[5].call(null,r)),Le(r,"click",e[36]),Le(r,"keydown",e[16]),Le(r,"focus",e[37]),Le(r,"blur",e[38]),Le(r,"pointerdown",e[39]),Le(r,"wheel",e[40])],o=!0)},p(_,g){var p;l&&l.p&&(!i||g[0]&536870912)&&Ys(l,a,_,_[29],i?Gs(a,_[29],g,null):qs(_[29]),null),wi(r,c=qi(u,[(!i||g[0]&70&&t!==(t=_[2]+" "+Ma.actionable__button+" "+Er["root__any-actions"]+` ${_[6]?Er.root__clickable:Er["root__clickable-no-transition"]} ${Er.root__unselectable} `+((p=_[1])!=null&&p.length?Er["root_disabled-context-menu"]:"")))&&{class:t},(!i||g[0]&8)&&{style:_[3]},(!i||g[0]&1024)&&{role:_[10]},(!i||g[0]&16384)&&{"aria-checked":_[14]},{type:"button"},(!i||g[0]&1&&n!==(n=_[0].fakeElement===Yi?-1:null))&&{tabindex:n},g[0]&16&&_[4]]))},i(_){i||(x(l,_),i=!0)},o(_){oe(l,_),i=!1},d(_){_&&E(r),l&&l.d(_),e[47](null),o=!1,on(s)}}}function u_(e){var d;let r,t,n,i,o,s;const a=e[30].default,l=Us(a,e,e[29],null);let u=[{href:e[8]},{target:e[12]},{style:e[3]},{role:e[10]},{"aria-checked":e[14]},{class:t=e[2]+" "+Er["root__any-actions"]+" "+(e[6]?Er.root__clickable:Er["root__clickable-no-transition"])+" "+((d=e[1])!=null&&d.length?Er["root_disabled-context-menu"]:"")},{tabindex:n=e[0].fakeElement===Yi?-1:null},e[4]],c={};for(let _=0;_<u.length;_+=1)c=Li(c,u[_]);return{c(){r=Ne("a"),l&&l.c(),this.h()},l(_){r=Re(_,"A",{href:!0,target:!0,style:!0,role:!0,"aria-checked":!0,class:!0,tabindex:!0});var g=Ve(r);l&&l.l(g),g.forEach(E),this.h()},h(){wi(r,c)},m(_,g){ee(_,r,g),l&&l.m(r,null),e[46](r),i=!0,o||(s=[Ks(e[5].call(null,r)),Le(r,"click",e[31]),Le(r,"keydown",e[16]),Le(r,"focus",e[32]),Le(r,"blur",e[33]),Le(r,"pointerdown",e[34]),Le(r,"wheel",e[35])],o=!0)},p(_,g){var p;l&&l.p&&(!i||g[0]&536870912)&&Ys(l,a,_,_[29],i?Gs(a,_[29],g,null):qs(_[29]),null),wi(r,c=qi(u,[(!i||g[0]&256)&&{href:_[8]},(!i||g[0]&4096)&&{target:_[12]},(!i||g[0]&8)&&{style:_[3]},(!i||g[0]&1024)&&{role:_[10]},(!i||g[0]&16384)&&{"aria-checked":_[14]},(!i||g[0]&70&&t!==(t=_[2]+" "+Er["root__any-actions"]+" "+(_[6]?Er.root__clickable:Er["root__clickable-no-transition"])+" "+((p=_[1])!=null&&p.length?Er["root_disabled-context-menu"]:"")))&&{class:t},(!i||g[0]&1&&n!==(n=_[0].fakeElement===Yi?-1:null))&&{tabindex:n},g[0]&16&&_[4]]))},i(_){i||(x(l,_),i=!0)},o(_){oe(l,_),i=!1},d(_){_&&E(r),l&&l.d(_),e[46](null),o=!1,on(s)}}}function c_(e){let r,t,n,i;const o=[u_,a_,l_],s=[];function a(l,u){return l[8]?0:l[9]?1:2}return r=a(e),t=s[r]=o[r](e),{c(){t.c(),n=tt()},l(l){t.l(l),n=tt()},m(l,u){s[r].m(l,u),ee(l,n,u),i=!0},p(l,u){let c=r;r=a(l),r===c?s[r].p(l,u):(Sr(),oe(s[c],1,1,()=>{s[c]=null}),Vr(),t=s[r],t?t.p(l,u):(t=s[r]=o[r](l),t.c()),x(t,1),t.m(n.parentNode,n))},i(l){i||(x(t),i=!0)},o(l){oe(t),i=!1},d(l){l&&E(n),s[r].d(l)}}}const Pa=8,Na=400,ll=400,f_=new Set(["button","image","checkbox","radio","header"]);function za(e){e.preventDefault()}function d_(e,r,t){let n,i,o=P,s=()=>(o(),o=G(n,R=>t(28,i=R)),n);e.$$.on_destroy.push(()=>o());let{$$slots:a={},$$scope:l}=r,{componentContext:u}=r,{id:c=""}=r,{actions:d=void 0}=r,{doubleTapActions:_=void 0}=r,{longTapActions:g=void 0}=r,{pressStartActions:p=void 0}=r,{pressEndActions:h=void 0}=r,{hoverStartActions:w=void 0}=r,{hoverEndActions:A=void 0}=r,{cls:Y=""}=r,{style:Q=null}=r,{attrs:J=void 0}=r,{use:de=s_}=r,{customAction:ie=null}=r,{isNativeActionAnimation:W=!0}=r,{hasInnerFocusable:X=!1}=r,{customAccessibility:se=void 0}=r,{captureFocusOnAction:L=!0}=r;const N=tn(jn),F=tn(oo);Ni(oo,{hasAction(){return!!(F.hasAction()||d!=null&&d.length||(se==null?void 0:se.mode)==="exclude")}});let z,be="",Ye,ke=-1,qe=-1,ye=null,je=!1,Ue=!1,mt=!1,rt,ve,xe,Ot,ge=!1;function Oe(){return(i==null?void 0:i.some(R=>{if(R!=null&&R.typed)return!0;const Be=R==null?void 0:R.url;if(!Be)return!1;const Et=kl(Be);return Et&&!El(Et,N.getBuiltinProtocols())}))||!1}async function Ee(R,Be){d&&(R&&Oe()&&R.preventDefault(),u.execAnyActions(d,{node:z,processUrls:Be}))}async function te(R){if(F.hasAction()||R.button!==void 0&&R.button!==0)return;const Be=Date.now();if(ke>0&&Be>ke+Na){R.preventDefault();return}if(_!=null&&_.length&&qe>0&&Be-qe<ll){R.preventDefault(),u.execAnyActions(_,{processUrls:!0,node:z}),qe=-1;return}if(qe=Be,_!=null&&_.length&&ke>0&&Be<ke+ll){R.preventDefault(),clearTimeout(ve),ve=window.setTimeout(()=>{Ee(void 0,!0)},ll);return}(ie==null?void 0:ie(R))===!1?R.preventDefault():Ee(R,!1)}function Ke(R){F.hasAction()||(ye={x:R.clientX,y:R.clientY},je=!1,ke=Date.now(),rt&&clearTimeout(rt),clearTimeout(ve),u.execAnyActions(p,{node:z}))}function ut(R){ye&&(Math.abs(ye.x-R.clientX)>Pa||Math.abs(ye.y-R.clientY)>Pa)&&(je=!0)}function Ie(R){F.hasAction()||!ye||ke<0||(!je&&Date.now()-ke>=Na&&(R.stopImmediatePropagation(),u.execAnyActions(g,{processUrls:!0,node:z})),rt&&clearTimeout(rt),rt=window.setTimeout(()=>{ye=null,ke=-1},100),u.execAnyActions(h,{node:z}))}function Vt(){F.hasAction()||u.execAnyActions(w,{node:z})}function lt(){F.hasAction()||u.execAnyActions(A,{node:z})}function q(R){const Be=R.target;Be instanceof HTMLElement&&(Be.tagName==="INPUT"||Be.contentEditable==="true")||R.ctrlKey||R.metaKey||R.altKey||R.shiftKey||R.key==="Enter"&&Array.isArray(d)&&d.length&&(u.execAnyActions(d),R.preventDefault())}li(()=>{c&&!X&&u.attachViewInfo("focus",()=>{z&&(be||Ue)&&z.focus()})}),Dn(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",ut),window.removeEventListener("pointerup",Ie),window.removeEventListener("pointercancel",Ie)),c&&!X&&u.detachViewInfo("focus"),rt&&clearTimeout(rt),ve&&clearTimeout(ve)});function ft(R){Hn.call(this,e,R)}function Kt(R){Hn.call(this,e,R)}function Qe(R){Hn.call(this,e,R)}function De(R){Hn.call(this,e,R)}function Bt(R){Hn.call(this,e,R)}function ot(R){Hn.call(this,e,R)}function ht(R){Hn.call(this,e,R)}function Ir(R){Hn.call(this,e,R)}function Nt(R){Hn.call(this,e,R)}function qt(R){Hn.call(this,e,R)}function Pe(R){Hn.call(this,e,R)}function le(R){Hn.call(this,e,R)}function Se(R){Hn.call(this,e,R)}function Yt(R){Hn.call(this,e,R)}function at(R){Hn.call(this,e,R)}function Fe(R){Or[R?"unshift":"push"](()=>{z=R,t(7,z)})}function hr(R){Or[R?"unshift":"push"](()=>{z=R,t(7,z)})}function ze(R){Or[R?"unshift":"push"](()=>{z=R,t(7,z)})}return e.$$set=R=>{"componentContext"in R&&t(0,u=R.componentContext),"id"in R&&t(17,c=R.id),"actions"in R&&t(18,d=R.actions),"doubleTapActions"in R&&t(19,_=R.doubleTapActions),"longTapActions"in R&&t(1,g=R.longTapActions),"pressStartActions"in R&&t(20,p=R.pressStartActions),"pressEndActions"in R&&t(21,h=R.pressEndActions),"hoverStartActions"in R&&t(22,w=R.hoverStartActions),"hoverEndActions"in R&&t(23,A=R.hoverEndActions),"cls"in R&&t(2,Y=R.cls),"style"in R&&t(3,Q=R.style),"attrs"in R&&t(4,J=R.attrs),"use"in R&&t(5,de=R.use),"customAction"in R&&t(24,ie=R.customAction),"isNativeActionAnimation"in R&&t(6,W=R.isNativeActionAnimation),"hasInnerFocusable"in R&&t(25,X=R.hasInnerFocusable),"customAccessibility"in R&&t(26,se=R.customAccessibility),"captureFocusOnAction"in R&&t(27,L=R.captureFocusOnAction),"$$scope"in R&&t(29,l=R.$$scope)},e.$$.update=()=>{if(e.$$.dirty[0]&67108864&&t(11,ge=(se==null?void 0:se.mode)==="exclude"),e.$$.dirty[0]&262145&&s(t(15,n=u.getDerivedFromVars(d,void 0,!0))),e.$$.dirty[0]&285214977){if(Array.isArray(i)&&(i!=null&&i.length))for(let R=0;R<i.length;++R){const Be=i[R].url;if(Be){t(8,be=Be),t(12,Ye=i[R].target||void 0);break}}t(9,Ue=!!ie),(be||Array.isArray(i)&&(i!=null&&i.length))&&(F.hasAction()||ge)?(t(8,be=""),u.logError(H(new Error("Actionable element is forbidden inside other actionable element or inside accessibility mode=exlucde"),{level:"warn",additional:{actions:i}}))):be&&!El(kl(be),N.getBuiltinProtocols())?(t(8,be=""),t(9,Ue=!0)):!be&&Array.isArray(i)&&(i!=null&&i.length)&&(t(9,Ue=!0),i.some(R=>R.url||R.typed||R.menu_items)||u.logError(H(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:i}})))}e.$$.dirty[0]&67110656&&(se!=null&&se.type&&f_.has(se.type)?se.type==="header"?t(10,xe="heading"):se.type==="image"?t(10,xe="img"):t(10,xe=se.type):be?t(10,xe=void 0):Ue&&t(10,xe="button"),(xe==="checkbox"||xe==="radio")&&typeof(se==null?void 0:se.is_checked)=="boolean"?t(14,Ot=se.is_checked):t(14,Ot=void 0)),e.$$.dirty[0]&150471554&&z&&(be||Ue||_!=null&&_.length?z.addEventListener("click",te):z.removeEventListener("click",te),_!=null&&_.length||g!=null&&g.length||p!=null&&p.length||h!=null&&h.length?(z.addEventListener("pointerdown",Ke,{passive:!0}),window.addEventListener("pointermove",ut,{passive:!0}),window.addEventListener("pointerup",Ie,{passive:!0}),window.addEventListener("pointercancel",Ie,{passive:!0})):(z.removeEventListener("pointerdown",Ke),window.removeEventListener("pointerup",Ie),window.removeEventListener("pointermove",ut),window.removeEventListener("pointercancel",Ie)),w!=null&&w.length?z.addEventListener("pointerenter",Vt):z.removeEventListener("pointerenter",Vt),A!=null&&A.length?z.addEventListener("pointerleave",lt):z.removeEventListener("pointerleave",lt),L===!1?z.addEventListener("mousedown",za):z.removeEventListener("mousedown",za),t(13,mt=!!(be||Ue||_!=null&&_.length||g!=null&&g.length||p!=null&&p.length||h!=null&&h.length||w!=null&&w.length||A!=null&&A.length)))},[u,g,Y,Q,J,de,W,z,be,Ue,xe,ge,Ye,mt,Ot,n,q,c,d,_,p,h,w,A,ie,X,se,L,i,l,a,ft,Kt,Qe,De,Bt,ot,ht,Ir,Nt,qt,Pe,le,Se,Yt,at,Fe,hr,ze]}class xs extends ln{constructor(r){super(),sn(this,r,d_,c_,Ur,{componentContext:0,id:17,actions:18,doubleTapActions:19,longTapActions:1,pressStartActions:20,pressEndActions:21,hoverStartActions:22,hoverEndActions:23,cls:2,style:3,attrs:4,use:5,customAction:24,isNativeActionAnimation:6,hasInnerFocusable:25,customAccessibility:26,captureFocusOnAction:27},null,[-1,-1,-1])}}const ro={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function xn(e){return Fo(e)&&e>0}function ud(e,r){return e.map(t=>{if(!t){r(H(new Error("Incorrect filter"),{level:"warn"}));return}if(t.type==="blur"){if(xn(t.radius))return`blur(${rn(t.radius/2)})`}else{if(t.type==="rtl_mirror")return;r(H(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}}).filter(Boolean).join(" ")}function Oa(e,r,t){const n=e.slice();return n[6]=r[t],n}function h_(e){let r,t;return{c(){r=Ne("span"),this.h()},l(n){r=Re(n,"SPAN",{class:!0,style:!0}),Ve(r).forEach(E),this.h()},h(){y(r,"class",ro["outer-background__item"]),y(r,"style",t=xt(e[6].style))},m(n,i){ee(n,r,i)},p(n,i){i&2&&t!==(t=xt(n[6].style))&&y(r,"style",t)},d(n){n&&E(r)}}}function __(e){let r,t,n,i,o;return{c(){r=Ne("img"),this.h()},l(s){r=Re(s,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){vi(r.src,t=e[6].image_url)||y(r,"src",t),y(r,"alt",""),y(r,"aria-hidden","true"),y(r,"loading","lazy"),y(r,"decoding","async"),y(r,"class",ro["outer-background__item"]),y(r,"style",n=xt(e[6].style))},m(s,a){ee(s,r,a),i||(o=Le(r,"error",e[2]),i=!0)},p(s,a){a&2&&!vi(r.src,t=s[6].image_url)&&y(r,"src",t),a&2&&n!==(n=xt(s[6].style))&&y(r,"style",n)},d(s){s&&E(r),i=!1,o()}}}function La(e){let r;function t(o,s){return o[6].image_url?__:h_}let n=t(e),i=n(e);return{c(){i.c(),r=tt()},l(o){i.l(o),r=tt()},m(o,s){i.m(o,s),ee(o,r,s)},p(o,s){n===(n=t(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(r.parentNode,r)))},d(o){o&&E(r),i.d(o)}}}function g_(e){let r,t,n=wr(e[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=La(Oa(e,n,o));return{c(){r=Ne("span");for(let o=0;o<i.length;o+=1)i[o].c();this.h()},l(o){r=Re(o,"SPAN",{class:!0});var s=Ve(r);for(let a=0;a<i.length;a+=1)i[a].l(s);s.forEach(E),this.h()},h(){y(r,"class",t=ro["outer-background"]+(e[0]?" "+ro["outer-background_clip"]:"")),K(r,"border-radius",e[0])},m(o,s){ee(o,r,s);for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(r,null)},p(o,[s]){if(s&6){n=wr(o[1]);let a;for(a=0;a<n.length;a+=1){const l=Oa(o,n,a);i[a]?i[a].p(l,s):(i[a]=La(l),i[a].c(),i[a].m(r,null))}for(;a<i.length;a+=1)i[a].d(1);i.length=n.length}s&1&&t!==(t=ro["outer-background"]+(o[0]?" "+ro["outer-background_clip"]:""))&&y(r,"class",t),s&1&&K(r,"border-radius",o[0])},i:P,o:P,d(o){o&&E(r),In(i,o)}}}function p_(e,r,t){let n,{direction:i}=r,{componentContext:o}=r,{background:s=[]}=r,{radius:a=""}=r;function l(u){u.target&&"classList"in u.target&&u.target.classList.add(ro["outer-background__item_hidden"])}return e.$$set=u=>{"direction"in u&&t(3,i=u.direction),"componentContext"in u&&t(4,o=u.componentContext),"background"in u&&t(5,s=u.background),"radius"in u&&t(0,a=u.radius)},e.$$.update=()=>{e.$$.dirty&56&&t(1,n=s.map(u=>{const c={},d={style:c};if(u.type==="nine_patch_image"&&u.insets)c["border-image"]=`url("${u.image_url}") ${u.insets.top||0} ${u.insets.right||0} ${u.insets.bottom||0} ${u.insets.left||0} fill`,c["border-image-width"]="auto";else{const _=Qs([u],i);u.type==="solid"&&(c["background-color"]=_.color),u.type==="gradient"&&(c["background-image"]=_.image),u.type==="image"&&(c.opacity=Number(u.alpha),d.image_url=u.image_url,c["object-fit"]=_.size,c["object-position"]=_.position,Array.isArray(u.filters)&&u.filters.length&&(c.filter=ud(u.filters,o.logError),i==="rtl"&&u.filters.some(g=>g.type==="rtl_mirror")&&(c.transform="scale(-1,1)")))}return d}))},[a,n,l,i,o,s]}class m_ extends ln{constructor(r){super(),sn(this,r,p_,g_,Ur,{direction:3,componentContext:4,background:5,radius:0})}}const b_=e=>({hasCustomFocus:e[0]&4096,widthMin:e[0]&32,widthMax:e[0]&64,heightMin:e[0]&128,heightMax:e[0]&256}),Ra=e=>({focusHandler:e[50],blurHandler:e[51],hasCustomFocus:e[12],widthMin:e[5],widthMax:e[6],heightMin:e[7],heightMax:e[8]});function Ba(e){let r,t;return r=new xs({props:{componentContext:e[0],id:e[0].json.id,use:e[49],cls:e[1]+" "+Dt("outer",Fs,e[29]),style:xt(e[28]),actions:e[20],doubleTapActions:e[21],longTapActions:e[22],pressStartActions:e[23],pressEndActions:e[24],hoverStartActions:e[25],hoverEndActions:e[26],attrs:e[15],hasInnerFocusable:e[2],isNativeActionAnimation:!e[11].length||Ua(e[11]),customAccessibility:e[14],captureFocusOnAction:e[27],$$slots:{default:[y_]},$$scope:{ctx:e}}}),r.$on("focus",e[50]),r.$on("blur",e[51]),r.$on("pointerdown",e[129]),r.$on("wheel",e[130]),{c(){ar(r.$$.fragment)},l(n){cr(r.$$.fragment,n)},m(n,i){ir(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&1&&(o.id=n[0].json.id),i[0]&536870914&&(o.cls=n[1]+" "+Dt("outer",Fs,n[29])),i[0]&268435456&&(o.style=xt(n[28])),i[0]&1048576&&(o.actions=n[20]),i[0]&2097152&&(o.doubleTapActions=n[21]),i[0]&4194304&&(o.longTapActions=n[22]),i[0]&8388608&&(o.pressStartActions=n[23]),i[0]&16777216&&(o.pressEndActions=n[24]),i[0]&33554432&&(o.hoverStartActions=n[25]),i[0]&67108864&&(o.hoverEndActions=n[26]),i[0]&32768&&(o.attrs=n[15]),i[0]&4&&(o.hasInnerFocusable=n[2]),i[0]&2048&&(o.isNativeActionAnimation=!n[11].length||Ua(n[11])),i[0]&16384&&(o.customAccessibility=n[14]),i[0]&134217728&&(o.captureFocusOnAction=n[27]),i[0]&145401|i[4]&128&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(x(r.$$.fragment,n),t=!0)},o(n){oe(r.$$.fragment,n),t=!1},d(n){or(r,n)}}}function Ha(e){let r,t;return r=new m_({props:{componentContext:e[0],direction:e[13],background:e[9],radius:e[4]}}),{c(){ar(r.$$.fragment)},l(n){cr(r.$$.fragment,n)},m(n,i){ir(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&8192&&(o.direction=n[13]),i[0]&512&&(o.background=n[9]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){t||(x(r.$$.fragment,n),t=!0)},o(n){oe(r.$$.fragment,n),t=!1},d(n){or(r,n)}}}function Wa(e){let r,t;return{c(){r=Ne("span"),this.h()},l(n){r=Re(n,"SPAN",{class:!0,style:!0}),Ve(r).forEach(E),this.h()},h(){y(r,"class",Fs.outer__border),y(r,"style",t=xt(e[3]))},m(n,i){ee(n,r,i)},p(n,i){i[0]&8&&t!==(t=xt(n[3]))&&y(r,"style",t)},d(n){n&&E(r)}}}function y_(e){let r,t,n,i=e[10]&&Ha(e);const o=e[128].default,s=Us(o,e,e[131],Ra);let a=e[17]&&Wa(e);return{c(){i&&i.c(),r=tt(),s&&s.c(),a&&a.c(),t=tt()},l(l){i&&i.l(l),r=tt(),s&&s.l(l),a&&a.l(l),t=tt()},m(l,u){i&&i.m(l,u),ee(l,r,u),s&&s.m(l,u),a&&a.m(l,u),ee(l,t,u),n=!0},p(l,u){l[10]?i?(i.p(l,u),u[0]&1024&&x(i,1)):(i=Ha(l),i.c(),x(i,1),i.m(r.parentNode,r)):i&&(Sr(),oe(i,1,1,()=>{i=null}),Vr()),s&&s.p&&(!n||u[0]&4576|u[4]&128)&&Ys(s,o,l,l[131],n?Gs(o,l[131],u,b_):qs(l[131]),Ra),l[17]?a?a.p(l,u):(a=Wa(l),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},i(l){n||(x(i),x(s,l),n=!0)},o(l){oe(i),oe(s,l),n=!1},d(l){l&&(E(r),E(t)),i&&i.d(l),s&&s.d(l),a&&a.d(l)}}}function v_(e){let r,t,n=!e[18]&&!e[19]&&Ba(e);return{c(){n&&n.c(),r=tt()},l(i){n&&n.l(i),r=tt()},m(i,o){n&&n.m(i,o),ee(i,r,o),t=!0},p(i,o){!i[18]&&!i[19]?n?(n.p(i,o),o[0]&786432&&x(n,1)):(n=Ba(i),n.c(),x(n,1),n.m(r.parentNode,r)):n&&(Sr(),oe(n,1,1,()=>{n=null}),Vr())},i(i){t||(x(n),t=!0)},o(i){oe(n),t=!1},d(i){i&&E(r),n&&n.d(i)}}}const w_={left:"start",center:"center",right:"end",start:"start",end:"end"},k_={left:"end",center:"center",right:"start",start:"start",end:"end"},E_={top:"start",center:"center",bottom:"end",baseline:"baseline"},al=e=>`The component id with the "${e}" property for state change is missing. Either specify the id, or specify the "transition_trigger" property without "state_change" value.`;function Ua(e){return e.some(r=>r.name==="native")}function A_(e,r,t){let n,i,o,s,a,l,u,c,d,_,g,p,h,w,A,Y,Q,J,de,ie,W,X,se,L,N,F,z=P,be=()=>(z(),z=G(A,He=>t(110,F=He)),A),Ye,ke=P,qe=()=>(ke(),ke=G(Y,He=>t(111,Ye=He)),Y),ye,je=P,Ue=()=>(je(),je=G($r,He=>t(112,ye=He)),$r),mt,rt,ve=P,xe=()=>(ve(),ve=G(w,He=>t(114,rt=He)),w),Ot,ge=P,Oe=()=>(ge(),ge=G(Q,He=>t(115,Ot=He)),Q),Ee,te=P,Ke=()=>(te(),te=G(h,He=>t(116,Ee=He)),h),ut,Ie,Vt=P,lt=()=>(Vt(),Vt=G(p,He=>t(117,Ie=He)),p),q,ft=P,Kt=()=>(ft(),ft=G(i,He=>t(118,q=He)),i),Qe,De=P,Bt=()=>(De(),De=G(g,He=>t(14,Qe=He)),g),ot,ht=P,Ir=()=>(ht(),ht=G(_,He=>t(119,ot=He)),_),Nt,qt=P,Pe=()=>(qt(),qt=G(d,He=>t(120,Nt=He)),d),le,Se=P,Yt=()=>(Se(),Se=G(c,He=>t(121,le=He)),c),at,Fe=P,hr=()=>(Fe(),Fe=G(a,He=>t(122,at=He)),a),ze,R=P,Be=()=>(R(),R=G(u,He=>t(123,ze=He)),u),Et,_e=P,dt=()=>(_e(),_e=G(l,He=>t(124,Et=He)),l),bt,Pt=P,_t=()=>(Pt(),Pt=G(s,He=>t(125,bt=He)),s),Ae,St=P,At=()=>(St(),St=G(o,He=>t(126,Ae=He)),o),Lt;e.$$.on_destroy.push(()=>z()),e.$$.on_destroy.push(()=>ke()),e.$$.on_destroy.push(()=>je()),e.$$.on_destroy.push(()=>ve()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>te()),e.$$.on_destroy.push(()=>Vt()),e.$$.on_destroy.push(()=>ft()),e.$$.on_destroy.push(()=>De()),e.$$.on_destroy.push(()=>ht()),e.$$.on_destroy.push(()=>qt()),e.$$.on_destroy.push(()=>Se()