@divkitframework/divkit
Version:
DivKit for the web
8 lines • 439 kB
JavaScript
"use strict";var Hd=Object.defineProperty;var Wd=(t,r,e)=>r in t?Hd(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e;var fr=(t,r,e)=>Wd(t,typeof r!="symbol"?r+"":r,e);/*!
DivKit v31.12.0
https://github.com/divkit/divkit
@licence Apache-2.0
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function D(){}const Hs=t=>t;function lo(t,r){for(const e in r)t[e]=r[e];return t}function Af(t){return t()}function _a(){return Object.create(null)}function tn(t){t.forEach(Af)}function Nr(t){return typeof t=="function"}function Ud(t,r){return t!=t?r==r:t!==r||t&&typeof t=="object"||typeof t=="function"}let Qo;function Xn(t,r){return t===r?!0:(Qo||(Qo=document.createElement("a")),Qo.href=r,t===Qo.href)}function Fr(t,r){return t!=t?r==r:t!==r}function Gd(t){return Object.keys(t).length===0}function z(t,...r){if(t==null){for(const n of r)n(void 0);return D}const e=t.subscribe(...r);return e.unsubscribe?()=>e.unsubscribe():e}function qd(t){let r;return z(t,e=>r=e)(),r}function pn(t,r,e){t.$$.on_destroy.push(z(r,e))}function Ws(t,r,e,n){if(t){const i=jf(t,r,e,n);return t[0](i)}}function jf(t,r,e,n){return t[1]&&n?lo(e.ctx.slice(),t[1](n(r))):e.ctx}function Us(t,r,e,n){if(t[2]&&n){const i=t[2](n(e));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 Gs(t,r,e,n,i,o){if(i){const s=jf(r,e,n,o);t.p(s,i)}}function qs(t){if(t.ctx.length>32){const r=[],e=t.ctx.length/32;for(let n=0;n<e;n++)r[n]=-1;return r}return-1}function ll(t,r,e){return t.set(e),r}function Ys(t){return t&&Nr(t.destroy)?t.destroy:D}function ga(t){const r=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[t,"px"]}const Cf=typeof window<"u";let Wl=Cf?()=>window.performance.now():()=>Date.now(),Ul=Cf?t=>requestAnimationFrame(t):D;const vo=new Set;function Sf(t){vo.forEach(r=>{r.c(t)||(vo.delete(r),r.f())}),vo.size!==0&&Ul(Sf)}function Gl(t){let r;return vo.size===0&&Ul(Sf),{promise:new Promise(e=>{vo.add(r={c:t,f:e})}),abort(){vo.delete(r)}}}const Pi=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;let Js=!1;function Yd(){Js=!0}function Jd(){Js=!1}function Kd(t,r,e,n){for(;t<r;){const i=t+(r-t>>1);e(i)<=n?t=i+1:r=i}return t}function Xd(t){if(t.hydrate_init)return;t.hydrate_init=!0;let r=t.childNodes;if(t.nodeName==="HEAD"){const l=[];for(let c=0;c<r.length;c++){const u=r[c];u.claim_order!==void 0&&l.push(u)}r=l}const e=new Int32Array(r.length+1),n=new Int32Array(r.length);e[0]=-1;let i=0;for(let l=0;l<r.length;l++){const c=r[l].claim_order,u=(i>0&&r[e[i]].claim_order<=c?i+1:Kd(1,i,h=>r[e[h]].claim_order,c))-1;n[l]=e[u]+1;const f=u+1;e[f]=l,i=Math.max(f,i)}const o=[],s=[];let a=r.length-1;for(let l=e[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,c)=>l.claim_order-c.claim_order);for(let l=0,c=0;l<s.length;l++){for(;c<o.length&&s[l].claim_order>=o[c].claim_order;)c++;const u=c<o.length?o[c]:null;t.insertBefore(s[l],u)}}function Zd(t,r){t.appendChild(r)}function Vf(t){if(!t)return document;const r=t.getRootNode?t.getRootNode():t.ownerDocument;return r&&r.host?r:t.ownerDocument}function Qd(t){const r=Ve("style");return r.textContent="/* empty */",xd(Vf(t),r),r.sheet}function xd(t,r){return Zd(t.head||t,r),r.sheet}function Dt(t,r){if(Js){for(Xd(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;r!==t.actual_end_child?(r.claim_order!==void 0||r.parentNode!==t)&&t.insertBefore(r,t.actual_end_child):t.actual_end_child=r.nextSibling}else(r.parentNode!==t||r.nextSibling!==null)&&t.appendChild(r)}function $d(t,r,e){t.insertBefore(r,e||null)}function ee(t,r,e){Js&&!e?Dt(t,r):(r.parentNode!==t||r.nextSibling!=e)&&t.insertBefore(r,e||null)}function A(t){t.parentNode&&t.parentNode.removeChild(t)}function gn(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function Ve(t){return document.createElement(t)}function cn(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Zn(t){return document.createTextNode(t)}function wr(){return Zn(" ")}function Le(){return Zn("")}function qe(t,r,e,n){return t.addEventListener(r,e,n),()=>t.removeEventListener(r,e,n)}function m(t,r,e){e==null?t.removeAttribute(r):t.getAttribute(r)!==e&&t.setAttribute(r,e)}const eh=["width","height"];function fi(t,r){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const n in r)r[n]==null?t.removeAttribute(n):n==="style"?t.style.cssText=r[n]:n==="__value"?t.value=t[n]=r[n]:e[n]&&e[n].set&&eh.indexOf(n)===-1?t[n]=r[n]:m(t,n,r[n])}function th(t,r){Object.keys(r).forEach(e=>{rh(t,e,r[e])})}function rh(t,r,e){const n=r.toLowerCase();n in t?t[n]=typeof t[n]=="boolean"&&e===""?!0:e:r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:m(t,r,e)}function pa(t){return/-/.test(t)?th:fi}function ye(t){return Array.from(t.childNodes)}function If(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function Df(t,r,e,n,i=!1){If(t);const o=(()=>{for(let s=t.claim_info.last_index;s<t.length;s++){const a=t[s];if(r(a)){const l=e(a);return l===void 0?t.splice(s,1):t[s]=l,i||(t.claim_info.last_index=s),a}}for(let s=t.claim_info.last_index-1;s>=0;s--){const a=t[s];if(r(a)){const l=e(a);return l===void 0?t.splice(s,1):t[s]=l,i?l===void 0&&t.claim_info.last_index--:t.claim_info.last_index=s,a}}return n()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function Tf(t,r,e,n){return Df(t,i=>i.nodeName===r,i=>{const o=[];for(let s=0;s<i.attributes.length;s++){const a=i.attributes[s];e[a.name]||o.push(a.name)}o.forEach(s=>i.removeAttribute(s))},()=>n(r))}function Fe(t,r,e){return Tf(t,r,e,Ve)}function bn(t,r,e){return Tf(t,r,e,cn)}function hi(t,r){return Df(t,e=>e.nodeType===3,e=>{const n=""+r;if(e.data.startsWith(n)){if(e.data.length!==n.length)return e.splitText(n.length)}else e.data=n},()=>Zn(r),!0)}function kr(t){return hi(t," ")}function ma(t,r,e){for(let n=e;n<t.length;n+=1){const i=t[n];if(i.nodeType===8&&i.textContent.trim()===r)return n}return-1}function ql(t,r){const e=ma(t,"HTML_TAG_START",0),n=ma(t,"HTML_TAG_END",e+1);if(e===-1||n===-1)return new wo(r);If(t);const i=t.splice(e,n-e+1);A(i[0]),A(i[i.length-1]);const o=i.slice(1,i.length-1);if(o.length===0)return new wo(r);for(const s of o)s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new wo(r,o)}function Mi(t,r){r=""+r,t.data!==r&&(t.data=r)}function ba(t,r){t.value=r==null?"":r}function G(t,r,e,n){e==null?t.style.removeProperty(r):t.style.setProperty(r,e,"")}function ya(t,r,e){for(let n=0;n<t.options.length;n+=1){const i=t.options[n];if(i.__value===r){i.selected=!0;return}}(!e||r!==void 0)&&(t.selectedIndex=-1)}function nh(t){const r=t.querySelector(":checked");return r&&r.__value}function Ff(t,r,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(t,{detail:r,bubbles:e,cancelable:n})}class ih{constructor(r=!1){fr(this,"is_svg",!1);fr(this,"e");fr(this,"n");fr(this,"t");fr(this,"a");this.is_svg=r,this.e=this.n=null}c(r){this.h(r)}m(r,e,n=null){this.e||(this.is_svg?this.e=cn(e.nodeName):this.e=Ve(e.nodeType===11?"TEMPLATE":e.nodeName),this.t=e.tagName!=="TEMPLATE"?e:e.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 e=0;e<this.n.length;e+=1)$d(this.t,this.n[e],r)}p(r){this.d(),this.h(r),this.i(this.a)}d(){this.n.forEach(A)}}class wo extends ih{constructor(e=!1,n){super(e);fr(this,"l");this.e=this.n=null,this.l=n}c(e){this.l?this.n=this.l:super.c(e)}i(e){for(let n=0;n<this.n.length;n+=1)ee(this.t,this.n[n],e)}}function va(t,r){return new t(r)}const Vs=new Map;let Is=0;function oh(t){let r=5381,e=t.length;for(;e--;)r=(r<<5)-r^t.charCodeAt(e);return r>>>0}function sh(t,r){const e={stylesheet:Qd(r),rules:{}};return Vs.set(t,e),e}function Ds(t,r,e,n,i,o,s,a=0){const l=16.666/n;let c=`{
`;for(let E=0;E<=1;E+=l){const w=r+(e-r)*o(E);c+=E*100+`%{${s(w,1-w)}}
`}const u=c+`100% {${s(e,1-e)}}
}`,f=`__svelte_${oh(u)}_${a}`,h=Vf(t),{stylesheet:b,rules:y}=Vs.get(h)||sh(h,t);y[f]||(y[f]=!0,b.insertRule(`@keyframes ${f} ${u}`,b.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${n}ms linear ${i}ms 1 both`,Is+=1,f}function Ts(t,r){const e=(t.style.animation||"").split(", "),n=e.filter(r?o=>o.indexOf(r)<0:o=>o.indexOf("__svelte")===-1),i=e.length-n.length;i&&(t.style.animation=n.join(", "),Is-=i,Is||lh())}function lh(){Ul(()=>{Is||(Vs.forEach(t=>{const{ownerNode:r}=t.stylesheet;r&&A(r)}),Vs.clear())})}let Ho;function Bo(t){Ho=t}function So(){if(!Ho)throw new Error("Function called outside component initialization");return Ho}function qn(t){So().$$.on_mount.push(t)}function Ks(t){So().$$.after_update.push(t)}function mn(t){So().$$.on_destroy.push(t)}function ah(){const t=So();return(r,e,{cancelable:n=!1}={})=>{const i=t.$$.callbacks[r];if(i){const o=Ff(r,e,{cancelable:n});return i.slice().forEach(s=>{s.call(t,o)}),!o.defaultPrevented}return!0}}function Zi(t,r){return So().$$.context.set(t,r),r}function Jr(t){return So().$$.context.get(t)}function Vi(t,r){const e=t.$$.callbacks[r.type];e&&e.slice().forEach(n=>n.call(this,r))}const mo=[],Or=[];let ko=[];const wa=[],Pf=Promise.resolve();let yl=!1;function Mf(){yl||(yl=!0,Pf.then(Nf))}function Cn(){return Mf(),Pf}function Un(t){ko.push(t)}const al=new Set;let _o=0;function Nf(){if(_o!==0)return;const t=Ho;do{try{for(;_o<mo.length;){const r=mo[_o];_o++,Bo(r),ch(r.$$)}}catch(r){throw mo.length=0,_o=0,r}for(Bo(null),mo.length=0,_o=0;Or.length;)Or.pop()();for(let r=0;r<ko.length;r+=1){const e=ko[r];al.has(e)||(al.add(e),e())}ko.length=0}while(mo.length);for(;wa.length;)wa.pop()();yl=!1,al.clear(),Bo(t)}function ch(t){if(t.fragment!==null){t.update(),tn(t.before_update);const r=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,r),t.after_update.forEach(Un)}}function uh(t){const r=[],e=[];ko.forEach(n=>t.indexOf(n)===-1?r.push(n):e.push(n)),e.forEach(n=>n()),ko=r}let zo;function Yl(){return zo||(zo=Promise.resolve(),zo.then(()=>{zo=null})),zo}function $i(t,r,e){t.dispatchEvent(Ff(`${r?"intro":"outro"}${e}`))}const as=new Set;let yi;function gr(){yi={r:0,c:[],p:yi}}function pr(){yi.r||tn(yi.c),yi=yi.p}function Y(t,r){t&&t.i&&(as.delete(t),t.i(r))}function se(t,r,e,n){if(t&&t.o){if(as.has(t))return;as.add(t),yi.c.push(()=>{as.delete(t),n&&(e&&t.d(1),n())}),t.o(r)}else n&&n()}const Jl={duration:0};function Xs(t,r,e){const n={direction:"in"};let i=r(t,e,n),o=!1,s,a,l=0;function c(){s&&Ts(t,s)}function u(){const{delay:h=0,duration:b=300,easing:y=Hs,tick:_=D,css:E}=i||Jl;E&&(s=Ds(t,0,1,b,h,y,E,l++)),_(0,1);const w=Wl()+h,N=w+b;a&&a.abort(),o=!0,Un(()=>$i(t,!0,"start")),a=Gl(K=>{if(o){if(K>=N)return _(1,0),$i(t,!0,"end"),c(),o=!1;if(K>=w){const J=y((K-w)/b);_(J,1-J)}}return o})}let f=!1;return{start(){f||(f=!0,Ts(t),Nr(i)?(i=i(n),Yl().then(u)):u())},invalidate(){f=!1},end(){o&&(c(),o=!1)}}}function Of(t,r,e){const n={direction:"out"};let i=r(t,e,n),o=!0,s;const a=yi;a.r+=1;let l;function c(){const{delay:u=0,duration:f=300,easing:h=Hs,tick:b=D,css:y}=i||Jl;y&&(s=Ds(t,1,0,f,u,h,y));const _=Wl()+u,E=_+f;Un(()=>$i(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),Gl(w=>{if(o){if(w>=E)return b(0,1),$i(t,!1,"end"),--a.r||tn(a.c),!1;if(w>=_){const N=h((w-_)/f);b(1-N,N)}}return o})}return Nr(i)?Yl().then(()=>{i=i(n),c()}):c(),{end(u){u&&"inert"in t&&(t.inert=l),u&&i.tick&&i.tick(1,0),o&&(s&&Ts(t,s),o=!1)}}}function ka(t,r,e,n){let o=r(t,e,{direction:"both"}),s=n?0:1,a=null,l=null,c=null,u;function f(){c&&Ts(t,c)}function h(y,_){const E=y.b-s;return _*=Math.abs(E),{a:s,b:y.b,d:E,duration:_,start:y.start,end:y.start+_,group:y.group}}function b(y){const{delay:_=0,duration:E=300,easing:w=Hs,tick:N=D,css:K}=o||Jl,J={start:Wl()+_,b:y};y||(J.group=yi,yi.r+=1),"inert"in t&&(y?u!==void 0&&(t.inert=u):(u=t.inert,t.inert=!0)),a||l?l=J:(K&&(f(),c=Ds(t,s,y,E,_,w,K)),y&&N(0,1),a=h(J,E),Un(()=>$i(t,y,"start")),Gl(Z=>{if(l&&Z>l.start&&(a=h(l,E),l=null,$i(t,a.b,"start"),K&&(f(),c=Ds(t,s,a.b,a.duration,0,w,o.css))),a){if(Z>=a.end)N(s=a.b,1-s),$i(t,a.b,"end"),l||(a.b?f():--a.group.r||tn(a.group.c)),a=null;else if(Z>=a.start){const le=Z-a.start;s=a.a+a.d*w(le/a.duration),N(s,1-s)}}return!!(a||l)}))}return{run(y){Nr(o)?Yl().then(()=>{o=o({direction:y?"in":"out"}),b(y)}):b(y)},end(){f(),a=l=null}}}function ur(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function zf(t,r){se(t,1,1,()=>{r.delete(t.key)})}function Lf(t,r,e,n,i,o,s,a,l,c,u,f){let h=t.length,b=o.length,y=h;const _={};for(;y--;)_[t[y].key]=y;const E=[],w=new Map,N=new Map,K=[];for(y=b;y--;){const U=f(i,o,y),L=e(U);let H=s.get(L);H?K.push(()=>H.p(U,r)):(H=c(L,U),H.c()),w.set(L,E[y]=H),L in _&&N.set(L,Math.abs(y-_[L]))}const J=new Set,Z=new Set;function le(U){Y(U,1),U.m(a,u),s.set(U.key,U),u=U.first,b--}for(;h&&b;){const U=E[b-1],L=t[h-1],H=U.key,S=L.key;U===L?(u=U.first,h--,b--):w.has(S)?!s.has(H)||J.has(H)?le(U):Z.has(S)?h--:N.get(H)>N.get(S)?(Z.add(H),le(U)):(J.add(S),h--):(l(L,s),h--)}for(;h--;){const U=t[h];w.has(U.key)||l(U,s)}for(;b;)le(E[b-1]);return tn(K),E}function Vo(t,r){const e={},n={},i={$$scope:1};let o=t.length;for(;o--;){const s=t[o],a=r[o];if(a){for(const l in s)l in a||(n[l]=1);for(const l in a)i[l]||(e[l]=a[l],i[l]=1);t[o]=a}else for(const l in s)i[l]=1}for(const s in n)s in e||(e[s]=void 0);return e}function rr(t){t&&t.c()}function or(t,r){t&&t.l(r)}function Qt(t,r,e){const{fragment:n,after_update:i}=t.$$;n&&n.m(r,e),Un(()=>{const o=t.$$.on_mount.map(Af).filter(Nr);t.$$.on_destroy?t.$$.on_destroy.push(...o):tn(o),t.$$.on_mount=[]}),i.forEach(Un)}function xt(t,r){const e=t.$$;e.fragment!==null&&(uh(e.after_update),tn(e.on_destroy),e.fragment&&e.fragment.d(r),e.on_destroy=e.fragment=null,e.ctx=[])}function fh(t,r){t.$$.dirty[0]===-1&&(mo.push(t),Mf(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31}function Kr(t,r,e,n,i,o,s=null,a=[-1]){const l=Ho;Bo(t);const c=t.$$={fragment:null,ctx:[],props:o,update:D,not_equal:i,bound:_a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:_a(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};s&&s(c.root);let u=!1;if(c.ctx=e?e(t,r.props||{},(f,h,...b)=>{const y=b.length?b[0]:h;return c.ctx&&i(c.ctx[f],c.ctx[f]=y)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](y),u&&fh(t,f)),h}):[],c.update(),u=!0,tn(c.before_update),c.fragment=n?n(c.ctx):!1,r.target){if(r.hydrate){Yd();const f=ye(r.target);c.fragment&&c.fragment.l(f),f.forEach(A)}else c.fragment&&c.fragment.c();r.intro&&Y(t.$$.fragment),Qt(t,r.target,r.anchor),Jd(),Nf()}Bo(l)}class Xr{constructor(){fr(this,"$$");fr(this,"$$set")}$destroy(){xt(this,1),this.$destroy=D}$on(r,e){if(!Nr(e))return D;const n=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return n.push(e),()=>{const i=n.indexOf(e);i!==-1&&n.splice(i,1)}}$set(r){this.$$set&&!Gd(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const dh="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(dh);const go=[];function hh(t,r){return{subscribe:Ti(t,r).subscribe}}function Ti(t,r=D){let e;const n=new Set;function i(a){if(Ud(t,a)&&(t=a,e)){const l=!go.length;for(const c of n)c[1](),go.push(c,t);if(l){for(let c=0;c<go.length;c+=2)go[c][0](go[c+1]);go.length=0}}}function o(a){i(a(t))}function s(a,l=D){const c=[a,l];return n.add(c),n.size===1&&(e=r(i,o)||D),a(t),()=>{n.delete(c),n.size===0&&e&&(e(),e=null)}}return{set:i,update:o,subscribe:s}}function to(t,r,e){const n=!Array.isArray(t),i=n?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=r.length<2;return hh(e,(s,a)=>{let l=!1;const c=[];let u=0,f=D;const h=()=>{if(u)return;f();const y=r(n?c[0]:c,s,a);o?s(y):f=Nr(y)?y:D},b=i.map((y,_)=>z(y,E=>{c[_]=E,u&=~(1<<_),l&&h()},()=>{u|=1<<_}));return l=!0,h(),function(){tn(b),f(),l=!1}})}const _h="divkit-6d515",gh="divkit-27458",ph="divkit-82db1",mh="divkit-be734",bh="divkit-9a652",dr={root_platform_desktop:_h,root__clickable:gh,"root__clickable-no-transition":"divkit-3bb57","root__any-actions":"divkit-ba614",root:ph,root__selectable:mh,root__unselectable:bh,"root__only-desktop":"divkit-316e7","root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},un=Symbol("root");function Q(t,r={}){const e=t;return e.level=r.level||"error",r.additional&&(e.additional=r.additional),e}const yh="divkit-bf0ea",vh="divkit-27458",wh="divkit-05991",kh="divkit-80cac",Eh="divkit-90c49",Ah="divkit-b33bc",jh="divkit-f6ff9",Fs={outer:yh,root__clickable:vh,"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_content:wh,outer_height_content:kh,"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:Eh,outer_visibility_invisible:Ah,outer_visibility_gone:jh,"outer_has-action-animation":"divkit-4d4f3","outer_has-custom-focus":"divkit-b630e"};function Lt(t){if(!t)return;let r="";for(const e in t)if(t.hasOwnProperty(e)){if(!t[e]&&t[e]!==0)continue;r&&(r+=";"),r+=e+":"+String(t[e])}return r||void 0}function Se(t){if(typeof t!="number"&&typeof t!="string"||!t)return"0";const r=Number(t);return Number.isNaN(r)?"0":Math.ceil(r*1e3)/1e4+"em"}function dn(t){let r=Se(t);return r==="0"&&(r+="em"),r}function Rf(t,r){for(;t.length<r;)t="0"+t;return t}function Tr(t,r=1,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=vi(t);return n?(n.a*=r,Kl(n)):e}function Ch(t,r,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=vi(t);return n?(n.a=r,Kl(n)):e}function Kl(t){return t.a===255?`#${[t.r,t.g,t.b].map(r=>Rf(Math.round(r).toString(16),2)).join("")}`:`rgba(${t.r},${t.g},${t.b},${(t.a/255).toFixed(2)})`}function vi(t){const r=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(r){if(r.length===5){const[c,u,f,h,b]=r,y=f.length===2?f:f+f,_=h.length===2?h:h+h,E=b.length===2?b:b+b,w=u.length===2?u:u+u;return{a:parseInt(w,16),r:parseInt(y,16),g:parseInt(_,16),b:parseInt(E,16)}}const[e,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(t){let r=String(t);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 Ai=Boolean;function Zs(t){if(t.length===1&&t[0].type==="solid")return Vh({bg:t[0]});const r=t.map(e=>{if(e.type==="solid")return Sh({bg:e});if(e.type==="gradient")return Ih({bg:e});if(e.type==="image")return Fh({bg:e});if(e.type==="radial_gradient")return Th({bg:e})}).filter(Ai).reverse().reduce(function(e,n){return e.image.push(n.image),e.size.push(n.size||"auto"),e.position.push(n.pos||"50% 50%"),e},{image:[],size:[],position:[]});return{image:r.image.join(","),size:r.size.join(","),position:r.position.join(",")}}function Sh(t){const r=Tr(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function Vh(t){return{color:Tr(t.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function Bf(t){return t.every(n=>n.color&&typeof n.position=="number"&&n.position>=0&&n.position<=1)?t.sort((n,i)=>Math.abs(n.position-i.position)<1e-6?0:n.position-i.position).map(n=>`${Tr(n.color)} ${(n.position*100).toFixed(2)}%`).join(","):void 0}function Ih(t){var n,i,o,s;if(!Array.isArray((n=t.bg)==null?void 0:n.colors)&&!Array.isArray((i=t.bg)==null?void 0:i.color_map))return;const r=(o=t.bg.colors)==null?void 0:o.filter(Ai);if(!(r!=null&&r.length)&&!((s=t.bg)!=null&&s.color_map))return;let e;if(t.bg.color_map){const a=Bf(t.bg.color_map);if(!a)return;e="linear-gradient("+(90-Number(t.bg.angle||0)+"deg")+","+a+")"}else{if(!r)return;e="linear-gradient("+(90-Number(t.bg.angle||0)+"deg")+","+r.map(a=>Tr(a)).join(",")+")"}return{size:void 0,pos:void 0,image:e}}const Dh={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Ea(t){if(t&&typeof t=="object"&&"type"in t&&t.value!==void 0){if(t.type==="fixed")return dn(t.value);if(t.type==="relative")return`${Number(t.value)*100}%`}return"50%"}function Th(t){var a,l,c,u;if(!Array.isArray((a=t.bg)==null?void 0:a.colors)&&!Array.isArray((l=t.bg)==null?void 0:l.color_map))return;const r=(c=t.bg.colors)==null?void 0:c.filter(Ai);if(!(r!=null&&r.length)&&!((u=t.bg)!=null&&u.color_map))return;let e;if(t.bg.color_map?e=Bf(t.bg.color_map):r&&(e=r.map(f=>Tr(f)).join(",")),!e)return;const n=t.bg.radius;let i;n&&typeof n=="object"&&"type"in n&&n.value!==void 0&&(n.type==="fixed"?i=dn(n.value):n.type==="relative"&&(i=Dh[n.value]));const o=Ea(t.bg.center_x),s=Ea(t.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${i||"farthest-corner"} at ${o} ${s},`+e+")"}}function Fh(t){var e;const r=(e=t.bg)==null?void 0:e.image_url;if(r)return{size:Hf(t.bg.scale),pos:Wf(t.bg),image:'url("'+vl(r)+'")'}}function Hf(t){return t==="fit"?"contain":t==="stretch"?"fill":t==="no_scale"?"none":"cover"}function Wf(t){let r,e;return t.content_alignment_horizontal==="left"?r="0%":t.content_alignment_horizontal==="right"?r="100%":r="50%",t.content_alignment_vertical==="top"?e="0%":t.content_alignment_vertical==="bottom"?e="100%":e="50%",r+" "+e}function nn(t,r){const e=Number(t);return Number.isNaN(e)||e<0?r:e}function Aa(t,r,e){return typeof r=="number"&&(t&&r>0&&r<=100||!t&&r>=0&&r<100)?r:e}function Ph(t){return t.is_enabled!==0&&t.is_enabled!==!1&&t.index!==void 0}function Mh(t,{visibilityActions:r,disappearActions:e,rootCtx:n,componentContext:i}){const o=[];r&&r.forEach(b=>{o.push({type:"visibility",index:o.length,action:b,visible:!1,count:0,finished:!1})}),e&&e.forEach(b=>{o.push({type:"disappear",index:o.length,action:b,visible:!1,count:0,finished:!1})});const s=o.map((b,y)=>{const _=b.type==="visibility";return i.getDerivedFromVars({index:y,visibility_percentage:b.action.visibility_percentage,visibility_duration:_?b.action.visibility_duration:b.action.disappear_duration,log_limit:b.action.log_limit,is_enabled:b.action.is_enabled},void 0,!0)});let a;const l=()=>{a&&a.disconnect(),o.forEach(b=>{b.timer&&clearTimeout(b.timer)})},c=to(s,b=>b);let u;const f=b=>{const y=b.type==="visibility",_=i.getJsonWithVars(b.action);i.execAnyActions([_],{logType:y?"visible":"disappear",node:t,processUrls:!1})},h=c.subscribe(b=>{u=b.filter(Ph);const y={};u.forEach(w=>{y[w.index]=w}),l();const _=[...new Set(u.map(w=>{const N=o[w.index].type==="visibility";return Aa(N,w.visibility_percentage,N?50:0)/100}))];if(!_.length)return;const E=w=>{w.forEach(N=>{u.forEach(K=>{const J=o[K.index],Z=J.type==="visibility",le=Aa(Z,K.visibility_percentage,Z?50:0);let U;le===0?U=N.intersectionRatio>=1e-12:U=N.intersectionRatio>=le/100,(Z?!J.visible&&U:J.visible&&!U)?J.finished||(J.timer=setTimeout(()=>{++J.count;const S=K.log_limit===0?1/0:K.log_limit||1;J.count>=S&&(J.finished=!0),f(J)},nn(K.visibility_duration,800))):(Z?!U:U)&&J.timer&&clearTimeout(J.timer),J.visible=U})})};a=new IntersectionObserver(E,{threshold:_}),a.observe(t)});return{destroy(){u==null||u.forEach(b=>{const y=o[b.index];!y||y.type!=="disappear"||!y.visible||y.finished||n.registerTimeout(window.setTimeout(()=>{f(y)},b.visibility_duration))}),l(),h()}}}function ja(t,r){r&&t.push(r)}function yt(t,r,e){const n=[];ja(n,r[t]);for(const i in e)if(e.hasOwnProperty(i)){const o=e[i];if(o){const s=`${t}_${i}`+(typeof o=="string"?`_${o}`:"");ja(n,r[s])}}return n.join(" ")}const Xl=Symbol("state");function di(t,r){var s,a;const e=t.top||0,n=((s=r==="ltr"?t.end:t.start)!=null?s:t.right)||0,i=t.bottom||0,o=((a=r==="ltr"?t.start:t.end)!=null?a:t.left)||0;return e===0&&n===0&&i===0&&o===0?"":Se(e)+" "+Se(n)+" "+Se(i)+" "+Se(o)}function Qs(t){if(typeof t!="number"&&typeof t!="string")return!1;const r=Number(t);return!Number.isNaN(r)}function Tn(t){return Qs(t)&&t>=0}function Ps(t,r,e){var i,o;if(!t)return e;const n=[t.top,(i=r==="ltr"?t.end:t.start)!=null?i:t.right,t.bottom,(o=r==="ltr"?t.start:t.end)!=null?o:t.left];for(let s=0;s<n.length;++s)if(n[s]&&!Tn(n[s]))return e;return di(t,r)}function Nh(t,r){return!Tn(t)||t===void 0||t>1?r:Number(t)}const Oh=Object.prototype.hasOwnProperty;function Zl(t,r){if(Object.is(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return Object.is(t,r);const e=Object.keys(t),n=Object.keys(r);if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){const o=e[i];if(!Oh.call(r,o)||!Zl(t[o],r[o]))return!1}return!0}function Hi(t,r){return Zl(t,r)?r:t}function zh(t,r){return t==="visible"||t==="invisible"||t==="gone"?t:r}function Uf(t,r){return t==="linear"||t==="ease"||t==="ease_in_out"||t==="ease_in"||t==="ease_out"?t:r}function yo(t,r){const e=Number(t);return Number.isNaN(e)?r:e}function Ql(t){const r=[];return t.name==="set"?(t.items||[]).forEach(e=>{r.push(...Ql(e))}):r.push(t),r}function Io(t,r){if(!t||typeof t!="object")return r;const e=["top","right","bottom","left"];for(let n=0;n<e.length;++n)if(t[e[n]]&&!Tn(t[e[n]]))return r;return t}function Lh(t,r){if(!t&&!r)return{};if(!r)return t;if(!t)return r;const e={};return["top","right","bottom","left","start","end"].forEach(n=>{const i=t[n];i&&(e[n]=i);const o=r[n];o&&(e[n]=(e[n]||0)+o)}),e}function Rh(t,r){const e=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let n=0;n<e.length;++n)if(e[n]&&!Tn(e[n]))return r;return t}function cs(t,r=0,e=10){return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map(n=>Se((n||r)/e*10)).join(" ")}function Bh(t){var r,e,n,i,o,s;return Se(((e=(r=t.offset)==null?void 0:r.x)==null?void 0:e.value)||0)+" "+Se(((i=(n=t.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+Se((o=t.blur)!=null?o:2)+" "+Tr(t.color||"#000000",(s=t.alpha)!=null?s:.19)}function Hh(t,r){var e,n,i,o,s,a;return"drop-shadow("+Tr(t.color||"#000000",(e=t.alpha)!=null?e:.19)+" "+Se((((i=(n=t.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+Se((((s=(o=t.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+Se(((a=t.blur)!=null?a:2)*10/r)+")"}function Ln(t){return t.is_enabled!==0&&t.is_enabled!==!1}let cl;function xs(){return typeof matchMedia>"u"?!1:(cl||(cl=window.matchMedia("(prefers-reduced-motion)")),cl.matches)}const Wh=8,Uh=(t,r,e,n)=>{let i;return(e||n)&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(async()=>{let o=0;const s={},a=(c,u)=>{if(c){const f=r.getVariable(c,"integer");if(f){if(u=Math.round(u),s[c]||(s[c]=new Set),!s[c].has(u))return f.setValue(u),s[c].add(u),!0}else{const h=new Error("Missing variable");h.level="error",h.additional={variableName:c},r.logError(h)}}return!1},l=()=>{if(!t)return!1;const c=t.getBoundingClientRect(),u=a(e,c.width),f=a(n,c.height);return u||f};for(;l();){if(++o>Wh){const c=new Error("Recursive layout in size_provider");c.level="warn",c.additional={widthVariableName:e,heightVariableName:n},r.logError(c);break}await Cn()}}),i.observe(t)),i},xl=Symbol("enabled");function Dn(t,r){return t===1||t===0||t===!1||t===!0?!!t:r}function Ao(t){return[t.state_description,t.description,t.hint].filter(Boolean).join(", ")}const Gh="divkit-ee5cc",Ca={actionable__button:Gh};function qh(){}const ro=Symbol("action");function wl(t){if(t.startsWith("tel:"))return"tel";const r=/^([^/]+):\/\//.exec(t);return r&&r[1]||""}function kl(t,r){return r.has(t)}function Yh(t){var f;let r,e,n,i,o,s;const a=t[28].default,l=Ws(a,t,t[27],null);let c=[{class:e=t[1]+" "+((f=t[0])!=null&&f.length?dr["root_disabled-context-menu"]:"")+" "+(t[12]?dr["root__any-actions"]:"")},{style:t[2]},{role:t[9]},{"aria-checked":t[13]},{"aria-hidden":n=t[10]||void 0},t[3]],u={};for(let h=0;h<c.length;h+=1)u=lo(u,c[h]);return{c(){r=Ve("span"),l&&l.c(),this.h()},l(h){r=Fe(h,"SPAN",{class:!0,style:!0,role:!0,"aria-checked":!0,"aria-hidden":!0});var b=ye(r);l&&l.l(b),b.forEach(A),this.h()},h(){fi(r,u)},m(h,b){ee(h,r,b),l&&l.m(r,null),t[40](r),i=!0,o||(s=[Ys(t[4].call(null,r)),qe(r,"click",t[35]),qe(r,"keydown",t[14]),qe(r,"focus",t[36]),qe(r,"blur",t[37])],o=!0)},p(h,b){var y;l&&l.p&&(!i||b[0]&134217728)&&Gs(l,a,h,h[27],i?Us(a,h[27],b,null):qs(h[27]),null),fi(r,u=Vo(c,[(!i||b[0]&4099&&e!==(e=h[1]+" "+((y=h[0])!=null&&y.length?dr["root_disabled-context-menu"]:"")+" "+(h[12]?dr["root__any-actions"]:"")))&&{class:e},(!i||b[0]&4)&&{style:h[2]},(!i||b[0]&512)&&{role:h[9]},(!i||b[0]&8192)&&{"aria-checked":h[13]},(!i||b[0]&1024&&n!==(n=h[10]||void 0))&&{"aria-hidden":n},b[0]&8&&h[3]]))},i(h){i||(Y(l,h),i=!0)},o(h){se(l,h),i=!1},d(h){h&&A(r),l&&l.d(h),t[40](null),o=!1,tn(s)}}}function Jh(t){var u;let r,e,n,i,o;const s=t[28].default,a=Ws(s,t,t[27],null);let l=[{class:e=t[1]+" "+Ca.actionable__button+" "+dr["root__any-actions"]+` ${t[5]?dr.root__clickable:dr["root__clickable-no-transition"]} ${dr.root__unselectable} `+((u=t[0])!=null&&u.length?dr["root_disabled-context-menu"]:"")},{style:t[2]},{role:t[9]},{"aria-checked":t[13]},{type:"button"},t[3]],c={};for(let f=0;f<l.length;f+=1)c=lo(c,l[f]);return{c(){r=Ve("button"),a&&a.c(),this.h()},l(f){r=Fe(f,"BUTTON",{class:!0,style:!0,role:!0,"aria-checked":!0,type:!0});var h=ye(r);a&&a.l(h),h.forEach(A),this.h()},h(){fi(r,c)},m(f,h){ee(f,r,h),a&&a.m(r,null),r.autofocus&&r.focus(),t[39](r),n=!0,i||(o=[Ys(t[4].call(null,r)),qe(r,"click",t[32]),qe(r,"keydown",t[14]),qe(r,"focus",t[33]),qe(r,"blur",t[34])],i=!0)},p(f,h){var b;a&&a.p&&(!n||h[0]&134217728)&&Gs(a,s,f,f[27],n?Us(s,f[27],h,null):qs(f[27]),null),fi(r,c=Vo(l,[(!n||h[0]&35&&e!==(e=f[1]+" "+Ca.actionable__button+" "+dr["root__any-actions"]+` ${f[5]?dr.root__clickable:dr["root__clickable-no-transition"]} ${dr.root__unselectable} `+((b=f[0])!=null&&b.length?dr["root_disabled-context-menu"]:"")))&&{class:e},(!n||h[0]&4)&&{style:f[2]},(!n||h[0]&512)&&{role:f[9]},(!n||h[0]&8192)&&{"aria-checked":f[13]},{type:"button"},h[0]&8&&f[3]]))},i(f){n||(Y(a,f),n=!0)},o(f){se(a,f),n=!1},d(f){f&&A(r),a&&a.d(f),t[39](null),i=!1,tn(o)}}}function Kh(t){var u;let r,e,n,i,o;const s=t[28].default,a=Ws(s,t,t[27],null);let l=[{href:t[7]},{target:t[11]},{style:t[2]},{role:t[9]},{"aria-checked":t[13]},{class:e=t[1]+" "+dr["root__any-actions"]+" "+(t[5]?dr.root__clickable:dr["root__clickable-no-transition"])+" "+((u=t[0])!=null&&u.length?dr["root_disabled-context-menu"]:"")},t[3]],c={};for(let f=0;f<l.length;f+=1)c=lo(c,l[f]);return{c(){r=Ve("a"),a&&a.c(),this.h()},l(f){r=Fe(f,"A",{href:!0,target:!0,style:!0,role:!0,"aria-checked":!0,class:!0});var h=ye(r);a&&a.l(h),h.forEach(A),this.h()},h(){fi(r,c)},m(f,h){ee(f,r,h),a&&a.m(r,null),t[38](r),n=!0,i||(o=[Ys(t[4].call(null,r)),qe(r,"click",t[29]),qe(r,"keydown",t[14]),qe(r,"focus",t[30]),qe(r,"blur",t[31])],i=!0)},p(f,h){var b;a&&a.p&&(!n||h[0]&134217728)&&Gs(a,s,f,f[27],n?Us(s,f[27],h,null):qs(f[27]),null),fi(r,c=Vo(l,[(!n||h[0]&128)&&{href:f[7]},(!n||h[0]&2048)&&{target:f[11]},(!n||h[0]&4)&&{style:f[2]},(!n||h[0]&512)&&{role:f[9]},(!n||h[0]&8192)&&{"aria-checked":f[13]},(!n||h[0]&35&&e!==(e=f[1]+" "+dr["root__any-actions"]+" "+(f[5]?dr.root__clickable:dr["root__clickable-no-transition"])+" "+((b=f[0])!=null&&b.length?dr["root_disabled-context-menu"]:"")))&&{class:e},h[0]&8&&f[3]]))},i(f){n||(Y(a,f),n=!0)},o(f){se(a,f),n=!1},d(f){f&&A(r),a&&a.d(f),t[38](null),i=!1,tn(o)}}}function Xh(t){let r,e,n,i;const o=[Kh,Jh,Yh],s=[];function a(l,c){return l[7]?0:l[8]?1:2}return r=a(t),e=s[r]=o[r](t),{c(){e.c(),n=Le()},l(l){e.l(l),n=Le()},m(l,c){s[r].m(l,c),ee(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?s[r].p(l,c):(gr(),se(s[u],1,1,()=>{s[u]=null}),pr(),e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),Y(e,1),e.m(n.parentNode,n))},i(l){i||(Y(e),i=!0)},o(l){se(e),i=!1},d(l){l&&A(n),s[r].d(l)}}}const Sa=8,Va=400,ul=400,Zh=new Set(["button","image","checkbox","radio","header"]);function Ia(t){t.preventDefault()}function Qh(t,r,e){let{$$slots:n={},$$scope:i}=r,{componentContext:o}=r,{id:s=""}=r,{actions:a=void 0}=r,{doubleTapActions:l=void 0}=r,{longTapActions:c=void 0}=r,{pressStartActions:u=void 0}=r,{pressEndActions:f=void 0}=r,{hoverStartActions:h=void 0}=r,{hoverEndActions:b=void 0}=r,{cls:y=""}=r,{style:_=null}=r,{attrs:E=void 0}=r,{use:w=qh}=r,{customAction:N=null}=r,{isNativeActionAnimation:K=!0}=r,{hasInnerFocusable:J=!1}=r,{customAccessibility:Z=void 0}=r,{captureFocusOnAction:le=!0}=r;const U=Jr(un),L=Jr(ro);Zi(ro,{hasAction(){return!!(L.hasAction()||a!=null&&a.length||(Z==null?void 0:Z.mode)==="exclude")}});let H,S="",I,T=-1,O=-1,Ee=null,Ue=!1,x=!1,Oe=!1,Ne,Je,He,St,ve=!1;function Ie(){return(a==null?void 0:a.some(j=>{if(j!=null&&j.typed)return!0;const he=j==null?void 0:j.url;if(!he)return!1;const X=wl(he);return X&&!kl(X,U.getBuiltinProtocols())}))||!1}async function ne(j,he){a&&(j&&Ie()&&j.preventDefault(),o.execAnyActions(a,{node:H,processUrls:he}))}async function We(j){if(L.hasAction()||j.button!==void 0&&j.button!==0)return;const he=Date.now();if(T>0&&he>T+Va){j.preventDefault();return}if(l!=null&&l.length&&O>0&&he-O<ul){j.preventDefault(),o.execAnyActions(l,{processUrls:!0,node:H}),O=-1;return}if(O=he,l!=null&&l.length&&T>0&&he<T+ul){j.preventDefault(),clearTimeout(Je),Je=window.setTimeout(()=>{ne(void 0,!0)},ul);return}(N==null?void 0:N(j))===!1?j.preventDefault():ne(j,!1)}function pe(j){L.hasAction()||(Ee={x:j.clientX,y:j.clientY},Ue=!1,T=Date.now(),Ne&&clearTimeout(Ne),clearTimeout(Je),o.execAnyActions(u,{node:H}))}function we(j){Ee&&(Math.abs(Ee.x-j.clientX)>Sa||Math.abs(Ee.y-j.clientY)>Sa)&&(Ue=!0)}function De(j){L.hasAction()||!Ee||T<0||(!Ue&&Date.now()-T>=Va&&(j.stopImmediatePropagation(),o.execAnyActions(c,{processUrls:!0,node:H})),Ne&&clearTimeout(Ne),Ne=window.setTimeout(()=>{Ee=null,T=-1},100),o.execAnyActions(f,{node:H}))}function lt(){L.hasAction()||o.execAnyActions(h,{node:H})}function Mt(){L.hasAction()||o.execAnyActions(b,{node:H})}function ie(j){const he=j.target;he instanceof HTMLElement&&(he.tagName==="INPUT"||he.contentEditable==="true")||j.ctrlKey||j.metaKey||j.altKey||j.shiftKey||j.key==="Enter"&&Array.isArray(a)&&a.length&&(o.execAnyActions(a),j.preventDefault())}qn(()=>{s&&!J&&U.registerFocusable(s,{focus(){H&&(S||x)&&H.focus()}})}),mn(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",we),window.removeEventListener("pointerup",De),window.removeEventListener("pointercancel",De)),s&&!J&&U.unregisterFocusable(s),Ne&&clearTimeout(Ne),Je&&clearTimeout(Je)});function me(j){Vi.call(this,t,j)}function fe(j){Vi.call(this,t,j)}function re(j){Vi.call(this,t,j)}function it(j){Vi.call(this,t,j)}function at(j){Vi.call(this,t,j)}function Pe(j){Vi.call(this,t,j)}function rt(j){Vi.call(this,t,j)}function Vt(j){Vi.call(this,t,j)}function Ot(j){Vi.call(this,t,j)}function $e(j){Or[j?"unshift":"push"](()=>{H=j,e(6,H)})}function tt(j){Or[j?"unshift":"push"](()=>{H=j,e(6,H)})}function dt(j){Or[j?"unshift":"push"](()=>{H=j,e(6,H)})}return t.$$set=j=>{"componentContext"in j&&e(15,o=j.componentContext),"id"in j&&e(16,s=j.id),"actions"in j&&e(17,a=j.actions),"doubleTapActions"in j&&e(18,l=j.doubleTapActions),"longTapActions"in j&&e(0,c=j.longTapActions),"pressStartActions"in j&&e(19,u=j.pressStartActions),"pressEndActions"in j&&e(20,f=j.pressEndActions),"hoverStartActions"in j&&e(21,h=j.hoverStartActions),"hoverEndActions"in j&&e(22,b=j.hoverEndActions),"cls"in j&&e(1,y=j.cls),"style"in j&&e(2,_=j.style),"attrs"in j&&e(3,E=j.attrs),"use"in j&&e(4,w=j.use),"customAction"in j&&e(23,N=j.customAction),"isNativeActionAnimation"in j&&e(5,K=j.isNativeActionAnimation),"hasInnerFocusable"in j&&e(24,J=j.hasInnerFocusable),"customAccessibility"in j&&e(25,Z=j.customAccessibility),"captureFocusOnAction"in j&&e(26,le=j.captureFocusOnAction),"$$scope"in j&&e(27,i=j.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&33554432&&e(10,ve=(Z==null?void 0:Z.mode)==="exclude"),t.$$.dirty[0]&8553600){if(Array.isArray(a)&&(a!=null&&a.length))for(let j=0;j<a.length;++j){const he=a[j].url;if(he){e(7,S=he),e(11,I=a[j].target||void 0);break}}e(8,x=!!N),(S||Array.isArray(a)&&(a!=null&&a.length))&&(L.hasAction()||ve)?(e(7,S=""),o.logError(Q(new Error("Actionable element is forbidden inside other actionable element or inside accessibility mode=exlucde"),{level:"warn",additional:{actions:a}}))):S&&!kl(wl(S),U.getBuiltinProtocols())?(e(7,S=""),e(8,x=!0)):!S&&Array.isArray(a)&&(a!=null&&a.length)&&(e(8,x=!0),a.some(j=>j.url||j.typed||j.menu_items)||o.logError(Q(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:a}})))}t.$$.dirty[0]&33555328&&(Z!=null&&Z.type&&Zh.has(Z.type)?Z.type==="header"?e(9,He="heading"):e(9,He=Z.type):S?e(9,He=void 0):x&&e(9,He="button"),(He==="checkbox"||He==="radio")&&typeof(Z==null?void 0:Z.is_checked)=="boolean"?e(13,St=Z.is_checked):e(13,St=void 0)),t.$$.dirty[0]&75235777&&H&&(S||x||l!=null&&l.length?H.addEventListener("click",We):H.removeEventListener("click",We),l!=null&&l.length||c!=null&&c.length||u!=null&&u.length||f!=null&&f.length?(H.addEventListener("pointerdown",pe,{passive:!0}),window.addEventListener("pointermove",we,{passive:!0}),window.addEventListener("pointerup",De,{passive:!0}),window.addEventListener("pointercancel",De,{passive:!0})):(H.removeEventListener("pointerdown",pe),window.removeEventListener("pointerup",De),window.removeEventListener("pointermove",we),window.removeEventListener("pointercancel",De)),h!=null&&h.length?H.addEventListener("pointerenter",lt):H.removeEventListener("pointerenter",lt),b!=null&&b.length?H.addEventListener("pointerleave",Mt):H.removeEventListener("pointerleave",Mt),le===!1?H.addEventListener("mousedown",Ia):H.removeEventListener("mousedown",Ia),e(12,Oe=!!(S||x||l!=null&&l.length||c!=null&&c.length||u!=null&&u.length||f!=null&&f.length||h!=null&&h.length||b!=null&&b.length)))},[c,y,_,E,w,K,H,S,x,He,ve,I,Oe,St,ie,o,s,a,l,u,f,h,b,N,J,Z,le,i,n,me,fe,re,it,at,Pe,rt,Vt,Ot,$e,tt,dt]}class $s extends Xr{constructor(r){super(),Kr(this,r,Qh,Xh,Fr,{componentContext:15,id:16,actions:17,doubleTapActions:18,longTapActions:0,pressStartActions:19,pressEndActions:20,hoverStartActions:21,hoverEndActions:22,cls:1,style:2,attrs:3,use:4,customAction:23,isNativeActionAnimation:5,hasInnerFocusable:24,customAccessibility:25,captureFocusOnAction:26},null,[-1,-1])}}const Qi={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function Rn(t){return Qs(t)&&t>0}function Gf(t,r){return t.map(e=>{if(!e){r(Q(new Error("Incorrect filter"),{level:"warn"}));return}if(e.type==="blur"){if(Rn(e.radius))return`blur(${dn(e.radius/2)})`}else{if(e.type==="rtl_mirror")return;r(Q(new Error("Unknown filter"),{level:"warn",additional:{filter:e.type}}))}}).filter(Boolean).join(" ")}function Da(t,r,e){const n=t.slice();return n[6]=r[e],n}function xh(t){let r,e;return{c(){r=Ve("span"),this.h()},l(n){r=Fe(n,"SPAN",{class:!0,style:!0}),ye(r).forEach(A),this.h()},h(){m(r,"class",Qi["outer-background__item"]),m(r,"style",e=Lt(t[6].style))},m(n,i){ee(n,r,i)},p(n,i){i&2&&e!==(e=Lt(n[6].style))&&m(r,"style",e)},d(n){n&&A(r)}}}function $h(t){let r,e,n,i,o;return{c(){r=Ve("img"),this.h()},l(s){r=Fe(s,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){Xn(r.src,e=t[6].image_url)||m(r,"src",e),m(r,"alt",""),m(r,"aria-hidden","true"),m(r,"loading","lazy"),m(r,"decoding","async"),m(r,"class",Qi["outer-background__item"]),m(r,"style",n=Lt(t[6].style))},m(s,a){ee(s,r,a),i||(o=qe(r,"error",t[2]),i=!0)},p(s,a){a&2&&!Xn(r.src,e=s[6].image_url)&&m(r,"src",e),a&2&&n!==(n=Lt(s[6].style))&&m(r,"style",n)},d(s){s&&A(r),i=!1,o()}}}function Ta(t){let r;function e(o,s){return o[6].image_url?$h:xh}let n=e(t),i=n(t);return{c(){i.c(),r=Le()},l(o){i.l(o),r=Le()},m(o,s){i.m(o,s),ee(o,r,s)},p(o,s){n===(n=e(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(r.parentNode,r)))},d(o){o&&A(r),i.d(o)}}}function e_(t){let r,e,n=ur(t[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Ta(Da(t,n,o));return{c(){r=Ve("span");for(let o=0;o<i.length;o+=1)i[o].c();this.h()},l(o){r=Fe(o,"SPAN",{class:!0});var s=ye(r);for(let a=0;a<i.length;a+=1)i[a].l(s);s.forEach(A),this.h()},h(){m(r,"class",e=Qi["outer-background"]+(t[0]?" "+Qi["outer-background_clip"]:"")),G(r,"border-radius",t[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=ur(o[1]);let a;for(a=0;a<n.length;a+=1){const l=Da(o,n,a);i[a]?i[a].p(l,s):(i[a]=Ta(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&&e!==(e=Qi["outer-background"]+(o[0]?" "+Qi["outer-background_clip"]:""))&&m(r,"class",e),s&1&&G(r,"border-radius",o[0])},i:D,o:D,d(o){o&&A(r),gn(i,o)}}}function t_(t,r,e){let n,{direction:i}=r,{componentContext:o}=r,{background:s=[]}=r,{radius:a=""}=r;function l(c){c.target&&"classList"in c.target&&c.target.classList.add(Qi["outer-background__item_hidden"])}return t.$$set=c=>{"direction"in c&&e(3,i=c.direction),"componentContext"in c&&e(4,o=c.componentContext),"background"in c&&e(5,s=c.background),"radius"in c&&e(0,a=c.radius)},t.$$.update=()=>{t.$$.dirty&56&&e(1,n=s.map(c=>{const u={},f={style:u};if(c.type==="nine_patch_image"&&c.insets)u["border-image"]=`url("${c.image_url}") ${c.insets.top||0} ${c.insets.right||0} ${c.insets.bottom||0} ${c.insets.left||0} fill`,u["border-image-width"]="auto";else{const h=Zs([c]);c.type==="solid"&&(u["background-color"]=h.color),c.type==="gradient"&&(u["background-image"]=h.image),c.type==="image"&&(u.opacity=Number(c.alpha),f.image_url=c.image_url,u["object-fit"]=h.size,u["object-position"]=h.position,Array.isArray(c.filters)&&c.filters.length&&(u.filter=Gf(c.filters,o.logError),i==="rtl"&&c.filters.some(b=>b.type==="rtl_mirror")&&(u.transform="scale(-1,1)")))}return f}))},[a,n,l,i,o,s]}class r_ extends Xr{constructor(r){super(),Kr(this,r,t_,e_,Fr,{direction:3,componentContext:4,background:5,radius:0})}}const n_=t=>({hasCustomFocus:t[0]&4096}),Fa=t=>({focusHandler:t[51],blurHandler:t[52],hasCustomFocus:t[12]});function Pa(t){let r,e;return r=new $s({props:{componentContext:t[0],id:t[0].json.id,use:t[50],cls:t[1]+" "+yt("outer",Fs,t[24]),style:Lt(t[23]),actions:t[19],doubleTapActions:t[20],longTapActions:t[21],pressStartActions:t[7],pressEndActions:t[8],hoverStartActions:t[9],hoverEndActions:t[10],attrs:t[15],hasInnerFocusable:t[2],isNativeActionAnimation:!t[11].length||Oa(t[11]),customAccessibility:t[13],captureFocusOnAction:t[22],$$slots:{default:[i_]},$$scope:{ctx:t}}}),r.$on("focus",t[51]),r.$on("blur",t[52]),{c(){rr(r.$$.fragment)},l(n){or(r.$$.fragment,n)},m(n,i){Qt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&1&&(o.id=n[0].json.id),i[0]&16777218&&(o.cls=n[1]+" "+yt("outer",Fs,n[24])),i[0]&8388608&&(o.style=Lt(n[23])),i[0]&524288&&(o.actions=n[19]),i[0]&1048576&&(o.doubleTapActions=n[20]),i[0]&2097152&&(o.longTapActions=n[21]),i[0]&128&&(o.pressStartActions=n[7]),i[0]&256&&(o.pressEndActions=n[8]),i[0]&512&&(o.hoverStartActions=n[9]),i[0]&1024&&(o.hoverEndActions=n[10]),i[0]&32768&&(o.attrs=n[15]),i[0]&4&&(o.hasInnerFocusable=n[2]),i[0]&2048&&(o.isNativeActionAnimation=!n[11].length||Oa(n[11])),i[0]&8192&&(o.customAccessibility=n[13]),i[0]&4194304&&(o.captureFocusOnAction=n[22]),i[0]&86137|i[4]&8192&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(Y(r.$$.fragment,n),e=!0)},o(n){se(r.$$.fragment,n),e=!1},d(n){xt(r,n)}}}function Ma(t){let r,e;return r=new r_({props:{componentContext:t[0],direction:t[14],background:t[5],radius:t[4]}}),{c(){rr(r.$$.fragment)},l(n){or(r.$$.fragment,n)},m(n,i){Qt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&16384&&(o.direction=n[14]),i[0]&32&&(o.background=n[5]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){e||(Y(r.$$.fragment,n),e=!0)},o(n){se(r.$$.fragment,n),e=!1},d(n){xt(r,n)}}}function Na(t){let r,e;return{c(){r=Ve("span"),this.h()},l(n){r=Fe(n,"SPAN",{class:!0,style:!0}),ye(r).forEach(A),this.h()},h(){m(r,"class",Fs.outer__border),m(r,"style",e=Lt(t[3]))},m(n,i){ee(n,r,i)},p(n,i){i[0]&8&&e!==(e=Lt(n[3]))&&m(r,"style",e)},d(n){n&&A(r)}}}function i_(t){let r,e,n,i=t[6]&&Ma(t);const o=t[136].default,s=Ws(o,t,t[137],Fa);let a=t[16]&&Na(t);return{c(){i&&i.c(),r=Le(),s&&s.c(),a&&a.c(),e=Le()},l(l){i&&i.l(l),r=Le(),s&&s.l(l),a&&a.l(l),e=Le()},m(l,c){i&&i.m(l,c),ee(l,r,c),s&&s.m(l,c),a&&a.m(l,c),ee(l,e,c),n=!0},p(l,c){l[6]?i?(i.p(l,c),c[0]&64&&Y(i,1)):(i=Ma(l),i.c(),Y(i,1),i.m(r.parentNode,r)):i&&(gr(),se(i,1,1,()=>{i=null}),pr()),s&&s.p&&(!n||c[0]&4096|c[4]&8192)&&Gs(s,o,l,l[137],n?Us(o,l[137],c,n_):qs(l[137]),Fa),l[16]?a?a.p(l,c):(a=Na(l),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},i(l){n||(Y(i),Y(s,l),n=!0)},o(l){se(i),se(s,l),n=!1},d(l){l&&(A(r),A(e)),i&&i.d(l),s&&s.d(l),a&&a.d(l)}}}function o_(t){let r,e,n=!t[17]&&!t[18]&&Pa(t);return{c(){n&&n.c(),r=Le()},l(i){n&&n.l(i),r=Le()},m(i,o){n&&n.m(i,o),ee(i,r,o),e=!0},p(i,o){!i[17]&&!i[18]?n?(n.p(i,o),o[0]&393216&&Y(n,1)):(n=Pa(i),n.c(),Y(n,1),n.m(r.parentNode,r)):n&&(gr(),se(n,1,1,()=>{n=null}),pr())},i(i){e||(Y(n),e=!0)},o(i){se(n),e=!1},d(i){i&&A(r),n&&n.d(i)}}}const s_={left:"start",center:"center",right:"end",start:"start",end:"end"},l_={left:"end",center:"center",right:"start",start:"start",end:"end"},a_={top:"start",center:"center",bottom:"end",baseline:"baseline"},fl=t=>`The component id with the "${t}" property for state change is missing. Either specify the id, or specify the "transition_trigger" property without "state_change" value.`;function Oa(t){return t.some(r=>r.name==="native")}function c_(t,r,e){let n,i,o,s,a,l,c,u,f,h,b,y,_,E,w,N,K,J,Z,le,U,L,H,S,I,T,O,Ee,Ue,x,Oe,Ne=D,Je=()=>(Ne(),Ne=z(H,Ce=>e(113,Oe=Ce)),H),He,St=D,ve=()=>(St(),St=z(L,Ce=>e(114,He=Ce)),L),Ie,ne=D,We=()=>(ne(),ne=z(S,Ce=>e(115,Ie=Ce)),S),pe,we=D,De=()=>(we(),we=z(U,Ce=>e(116,pe=Ce)),U),lt,Mt=D,ie=()=>(Mt(),Mt=z(le,Ce=>e(117,lt=Ce)),le),me,fe=D,re=()=>(fe(),fe=z(Z,Ce=>e(118,me=Ce)),Z),it,at=D,Pe=()=>(at(),at=z(J,Ce=>e(119,it=Ce)),J),rt,Vt=D,Ot=()=>(Vt(),Vt=z(K,Ce=>e(120,rt=Ce)),K),$e,tt=D,dt=()=>(tt(),tt=z(i,Ce=>e(121,$e=Ce)),i),j,he=D,X=()=>(he(),he=z(N,Ce=>e(122,j=Ce)),N),ut,Te=D,Tt=()=>(Te(),Te=z(w,Ce=>e(123,ut=Ce)),w),nt,Ct=D,Jt=()=>(Ct(),Ct=z(_,Ce=>e(124,nt=Ce)),_),vt,Nt=D,Wt=()=>(Nt(),Nt=z(E,Ce=>e(125,vt=Ce)),E),Gt,Et=D,Ye=()=>(Et(),Et=z(y,Ce=>e(126,Gt=Ce)),y),ot,ze=D,ht=()=>(ze(),ze=z(b,Ce=>e(13,ot=Ce)),b),sr,Be=D,br=()=>(Be(),Be=z(h,Ce=>e(127,sr=Ce)),h),nr,vr=D,$=()=>(vr(),vr=z(f,Ce=>e(128,nr=Ce)),f),Ze,Kt=D,st=()=>(Kt(),Kt=z(u,Ce=>e(129,Ze=Ce)),u),ct,At=D,jt=()=>(At(),At=z(a,Ce=>e(130,ct=Ce)),a),Xt,de,et=D,qt=()=>(et(),et=z(c,Ce=>e(131,de=Ce)),c),$t,zt=D,Cr=()=>(zt(),zt=z(l,Ce=>e(132,$t=Ce)),l),Rt,ir=D,lr=()=>(ir(),ir=z(s,Ce=>e(133,Rt=Ce)),s),_t,Sr=D,Qe=()=>(Sr(),Sr=z(o,Ce=>e(134,_t=Ce)),o),er;t.$$.on_destroy.push(()=>Ne()),t.$$.on_destroy.push(()=>St()),t.$$.on_destroy.push(()=>ne()),t.$$.on_destroy.push(()=>we()),t.$$.on_destroy.push(()=>Mt()),t.$$.on_destroy.push(()=>fe()),t.$$.on_destroy.push(()=>at()),t.$$.on_destroy.push(()=>Vt()),t.$$.on_destroy.push(()=>tt()),t.$$.on_destroy.push(()=>he()),t.$$.on_destroy.push(()=>Te()),t.$$.on_destroy.push(()=>Ct()),t.$$.on_destroy.push(()=>Nt()),t.$$.on_destroy.push(()=>Et()),t.$$.on_destroy.push(()=>ze()),t.$$.on_destroy.push(()=>Be()),t.$$.on_destroy.push(()=>vr()),t.$$.on_destroy.push(()=>Kt()),t.$$.on_destroy.push(()=>At()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>zt()),t.$$.on_destroy.push(()=>ir()),t.$$.on_destroy.push(()=>Sr());let{$$slots:Er={},$$scope:Rr}=r,{componentContext:q}=r,{cls:Me=""}=r,{style:Pr=void 0}=r,{layoutParams:ae={}}=r,{customDescription:Bt=!1}=r,{customPaddings:hr=!1}=r,{customActions:_r=""}=r,{additionalPaddings:Vr=null}=r,{heightByAspect:Ur=!1}=r,{parentOf:be=void 0}=r,{parentOfSimpleMode:Ke=void 0}=r,{replaceItems:ce=void 0}=r,{hasInnerFocusable:Ae=!1}=r;const Ht=Jr(un),d=Jr(Xl),{isEnabled:wt}=Jr(xl);pn(t,wt,Ce=>e(135,er=Ce));const Zt=Ht.direction;pn(t,Zt,Ce=>e(14,Xt=Ce));let W,mt,k=null,Ge=[],Ft={},bt={},tr=!1,mr=1,zr="transparent",Ir=0,Zr={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},v="",g=null,F="",R={},B,ue,Re,It=0,ke=0,Xe=0,gt=!1,Pt=!1,yr={},Gr,Br,yn,En=0,Qn=0,Mn=0,ni=!1,ii=!1,Nn=1,gi,xn,vn,Oi,oi=[],kt=!1,p=!1,C,M,V,oe=[],te=[],pt=[],ft=[],qr=[],Ar=[],Lr=[],si=[],Yn=[],_e=[],Yt="",Qr,li,zi,fn,ji=!1,Bn="visible",ai=0,fo=0,Ko,Xo,Yi,ho=!1,ol=!0,Zo,On,Po,Ji;function Md(){e(70,g=null),e(71,F=""),e(88,Nn=1),e(100,ji=!1),e(101,Bn="visible"),e(102,ai=0),e(103,fo=0),e(104,Ko=void 0),e(105,Xo=void 0),e(22,ol=!0),oi=q.fakeElement?[]:q.json.transition_triggers||["state_change","visibility_change"],e(91,kt=oi.indexOf("state_change")!==-1),p=oi.indexOf("visibility_change")!==-1,W&&ha(W),On==null||On(),er&&e(107,On=Ht.processVariableTriggers(q,q.json.variable_triggers))}function Nd(Ce,Hr){if(!Array.isArray(be)||!ce||Ke&&(Array.isArray(Hr)?Hr.length:0)!==1)return;const wn=be.findIndex(xr=>(xr==null?void 0:xr.id)===Ce),Sn=be.slice();Sn.splice(wn,1,...(Hr||[]).map(xr=>({json:xr,id:xr==nu