UNPKG

@divkitframework/divkit

Version:
8 lines 467 kB
/*! DivKit v32.51.0 https://github.com/divkit/divkit @licence Apache-2.0 */(function(){"use strict";var Fy=Object.defineProperty;var My=(D,li,$n)=>li in D?Fy(D,li,{enumerable:!0,configurable:!0,writable:!0,value:$n}):D[li]=$n;var gr=(D,li,$n)=>My(D,typeof li!="symbol"?li+"":li,$n);function D(){}const li=t=>t;function $n(t,r){for(const e in r)t[e]=r[e];return t}function aa(t){return t()}function ua(){return Object.create(null)}function rn(t){t.forEach(aa)}function Yr(t){return typeof t=="function"}function qd(t,r){return t!=t?r==r:t!==r||t&&typeof t=="object"||typeof t=="function"}let Go;function gi(t,r){return t===r?!0:(Go||(Go=document.createElement("a")),Go.href=r,t===Go.href)}function Hr(t,r){return t!=t?r==r:t!==r}function Kd(t){return Object.keys(t).length===0}function H(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 Qs(t){let r;return H(t,e=>r=e)(),r}function pn(t,r,e){t.$$.on_destroy.push(H(r,e))}function Yo(t,r,e,n){if(t){const i=ca(t,r,e,n);return t[0](i)}}function ca(t,r,e,n){return t[1]&&n?$n(e.ctx.slice(),t[1](n(r))):e.ctx}function qo(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 Ko(t,r,e,n,i,o){if(i){const s=ca(r,e,n,o);t.p(s,i)}}function Jo(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 xs(t,r,e){return t.set(e),r}function Xo(t){return t&&Yr(t.destroy)?t.destroy:D}function fa(t){const r=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[t,"px"]}const da=typeof window<"u";let $s=da?()=>window.performance.now():()=>Date.now(),el=da?t=>requestAnimationFrame(t):D;const co=new Set;function ha(t){co.forEach(r=>{r.c(t)||(co.delete(r),r.f())}),co.size!==0&&el(ha)}function tl(t){let r;return co.size===0&&el(ha),{promise:new Promise(e=>{co.add(r={c:t,f:e})}),abort(){co.delete(r)}}}const Ai=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;let Zo=!1;function Jd(){Zo=!0}function Xd(){Zo=!1}function Zd(t,r,e,n){for(;t<r;){const i=t+(r-t>>1);e(i)<=n?t=i+1:r=i}return t}function Qd(t){if(t.hydrate_init)return;t.hydrate_init=!0;let r=t.childNodes;if(t.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 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 u=r[l].claim_order,c=(i>0&&r[e[i]].claim_order<=u?i+1:Zd(1,i,_=>r[e[_]].claim_order,u))-1;n[l]=e[c]+1;const f=c+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,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;t.insertBefore(s[l],c)}}function xd(t,r){t.appendChild(r)}function _a(t){if(!t)return document;const r=t.getRootNode?t.getRootNode():t.ownerDocument;return r&&r.host?r:t.ownerDocument}function $d(t){const r=Pe("style");return r.textContent="/* empty */",eh(_a(t),r),r.sheet}function eh(t,r){return xd(t.head||t,r),r.sheet}function Bt(t,r){if(Zo){for(Qd(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 th(t,r,e){t.insertBefore(r,e||null)}function x(t,r,e){Zo&&!e?Bt(t,r):(r.parentNode!==t||r.nextSibling!=e)&&t.insertBefore(r,e||null)}function k(t){t.parentNode&&t.parentNode.removeChild(t)}function vn(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function Pe(t){return document.createElement(t)}function mn(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ni(t){return document.createTextNode(t)}function jr(){return ni(" ")}function tt(){return ni("")}function Oe(t,r,e,n){return t.addEventListener(r,e,n),()=>t.removeEventListener(r,e,n)}function b(t,r,e){e==null?t.removeAttribute(r):t.getAttribute(r)!==e&&t.setAttribute(r,e)}const rh=["width","height"];function pi(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&&rh.indexOf(n)===-1?t[n]=r[n]:b(t,n,r[n])}function nh(t,r){Object.keys(r).forEach(e=>{ih(t,e,r[e])})}function ih(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:b(t,r,e)}function ga(t){return/-/.test(t)?nh:pi}function Se(t){return Array.from(t.childNodes)}function pa(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function ma(t,r,e,n,i=!1){pa(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 ba(t,r,e,n){return ma(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 Le(t,r,e){return ba(t,r,e,Pe)}function jn(t,r,e){return ba(t,r,e,mn)}function mi(t,r){return ma(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},()=>ni(r),!0)}function Sr(t){return mi(t," ")}function ya(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 rl(t,r){const e=ya(t,"HTML_TAG_START",0),n=ya(t,"HTML_TAG_END",e+1);if(e===-1||n===-1)return new fo(r);pa(t);const i=t.splice(e,n-e+1);k(i[0]),k(i[i.length-1]);const o=i.slice(1,i.length-1);if(o.length===0)return new fo(r);for(const s of o)s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new fo(r,o)}function Mi(t,r){r=""+r,t.data!==r&&(t.data=r)}function va(t,r){t.value=r==null?"":r}function W(t,r,e,n){e==null?t.style.removeProperty(r):t.style.setProperty(r,e,"")}function wa(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 oh(t){const r=t.querySelector(":checked");return r&&r.__value}function ka(t,r,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(t,{detail:r,bubbles:e,cancelable:n})}class sh{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,e,n=null){this.e||(this.is_svg?this.e=mn(e.nodeName):this.e=Pe(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)th(this.t,this.n[e],r)}p(r){this.d(),this.h(r),this.i(this.a)}d(){this.n.forEach(k)}}class fo extends sh{constructor(e=!1,n){super(e);gr(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)x(this.t,this.n[n],e)}}function Ea(t,r){return new t(r)}const Qo=new Map;let xo=0;function lh(t){let r=5381,e=t.length;for(;e--;)r=(r<<5)-r^t.charCodeAt(e);return r>>>0}function ah(t,r){const e={stylesheet:$d(r),rules:{}};return Qo.set(t,e),e}function $o(t,r,e,n,i,o,s,a=0){const l=16.666/n;let u=`{ `;for(let v=0;v<=1;v+=l){const w=r+(e-r)*o(v);u+=v*100+`%{${s(w,1-w)}} `}const c=u+`100% {${s(e,1-e)}} }`,f=`__svelte_${lh(c)}_${a}`,_=_a(t),{stylesheet:g,rules:p}=Qo.get(_)||ah(_,t);p[f]||(p[f]=!0,g.insertRule(`@keyframes ${f} ${c}`,g.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${f} ${n}ms linear ${i}ms 1 both`,xo+=1,f}function es(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(", "),xo-=i,xo||uh())}function uh(){el(()=>{xo||(Qo.forEach(t=>{const{ownerNode:r}=t.stylesheet;r&&k(r)}),Qo.clear())})}let Mo;function Po(t){Mo=t}function ho(){if(!Mo)throw new Error("Function called outside component initialization");return Mo}function ii(t){ho().$$.on_mount.push(t)}function ts(t){ho().$$.after_update.push(t)}function wn(t){ho().$$.on_destroy.push(t)}function ch(){const t=ho();return(r,e,{cancelable:n=!1}={})=>{const i=t.$$.callbacks[r];if(i){const o=ka(r,e,{cancelable:n});return i.slice().forEach(s=>{s.call(t,o)}),!o.defaultPrevented}return!0}}function Pi(t,r){return ho().$$.context.set(t,r),r}function Jr(t){return ho().$$.context.get(t)}function Ln(t,r){const e=t.$$.callbacks[r.type];e&&e.slice().forEach(n=>n.call(this,r))}const _o=[],Nr=[];let go=[];const Aa=[],Ca=Promise.resolve();let nl=!1;function ja(){nl||(nl=!0,Ca.then(Sa))}function Vn(){return ja(),Ca}function ei(t){go.push(t)}const il=new Set;let po=0;function Sa(){if(po!==0)return;const t=Mo;do{try{for(;po<_o.length;){const r=_o[po];po++,Po(r),fh(r.$$)}}catch(r){throw _o.length=0,po=0,r}for(Po(null),_o.length=0,po=0;Nr.length;)Nr.pop()();for(let r=0;r<go.length;r+=1){const e=go[r];il.has(e)||(il.add(e),e())}go.length=0}while(_o.length);for(;Aa.length;)Aa.pop()();nl=!1,il.clear(),Po(t)}function fh(t){if(t.fragment!==null){t.update(),rn(t.before_update);const r=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,r),t.after_update.forEach(ei)}}function dh(t){const r=[],e=[];go.forEach(n=>t.indexOf(n)===-1?r.push(n):e.push(n)),e.forEach(n=>n()),go=r}let No;function ol(){return No||(No=Promise.resolve(),No.then(()=>{No=null})),No}function xi(t,r,e){t.dispatchEvent(ka(`${r?"intro":"outro"}${e}`))}const rs=new Set;let Ci;function wr(){Ci={r:0,c:[],p:Ci}}function kr(){Ci.r||rn(Ci.c),Ci=Ci.p}function J(t,r){t&&t.i&&(rs.delete(t),t.i(r))}function se(t,r,e,n){if(t&&t.o){if(rs.has(t))return;rs.add(t),Ci.c.push(()=>{rs.delete(t),n&&(e&&t.d(1),n())}),t.o(r)}else n&&n()}const sl={duration:0};function ns(t,r,e){const n={direction:"in"};let i=r(t,e,n),o=!1,s,a,l=0;function u(){s&&es(t,s)}function c(){const{delay:_=0,duration:g=300,easing:p=li,tick:h=D,css:v}=i||sl;v&&(s=$o(t,0,1,g,_,p,v,l++)),h(0,1);const w=$s()+_,G=w+g;a&&a.abort(),o=!0,ei(()=>xi(t,!0,"start")),a=tl(X=>{if(o){if(X>=G)return h(1,0),xi(t,!0,"end"),u(),o=!1;if(X>=w){const B=p((X-w)/g);h(B,1-B)}}return o})}let f=!1;return{start(){f||(f=!0,es(t),Yr(i)?(i=i(n),ol().then(c)):c())},invalidate(){f=!1},end(){o&&(u(),o=!1)}}}function Va(t,r,e){const n={direction:"out"};let i=r(t,e,n),o=!0,s;const a=Ci;a.r+=1;let l;function u(){const{delay:c=0,duration:f=300,easing:_=li,tick:g=D,css:p}=i||sl;p&&(s=$o(t,1,0,f,c,_,p));const h=$s()+c,v=h+f;ei(()=>xi(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),tl(w=>{if(o){if(w>=v)return g(0,1),xi(t,!1,"end"),--a.r||rn(a.c),!1;if(w>=h){const G=_((w-h)/f);g(1-G,G)}}return o})}return Yr(i)?ol().then(()=>{i=i(n),u()}):u(),{end(c){c&&"inert"in t&&(t.inert=l),c&&i.tick&&i.tick(1,0),o&&(s&&es(t,s),o=!1)}}}function Ia(t,r,e,n){let o=r(t,e,{direction:"both"}),s=n?0:1,a=null,l=null,u=null,c;function f(){u&&es(t,u)}function _(p,h){const v=p.b-s;return h*=Math.abs(v),{a:s,b:p.b,d:v,duration:h,start:p.start,end:p.start+h,group:p.group}}function g(p){const{delay:h=0,duration:v=300,easing:w=li,tick:G=D,css:X}=o||sl,B={start:$s()+h,b:p};p||(B.group=Ci,Ci.r+=1),"inert"in t&&(p?c!==void 0&&(t.inert=c):(c=t.inert,t.inert=!0)),a||l?l=B:(X&&(f(),u=$o(t,s,p,v,h,w,X)),p&&G(0,1),a=_(B,v),ei(()=>xi(t,p,"start")),tl($=>{if(l&&$>l.start&&(a=_(l,v),l=null,xi(t,a.b,"start"),X&&(f(),u=$o(t,s,a.b,a.duration,0,w,o.css))),a){if($>=a.end)G(s=a.b,1-s),xi(t,a.b,"end"),l||(a.b?f():--a.group.r||rn(a.group.c)),a=null;else if($>=a.start){const _e=$-a.start;s=a.a+a.d*w(_e/a.duration),G(s,1-s)}}return!!(a||l)}))}return{run(p){Yr(o)?ol().then(()=>{o=o({direction:p?"in":"out"}),g(p)}):g(p)},end(){f(),a=l=null}}}function mr(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Da(t,r){se(t,1,1,()=>{r.delete(t.key)})}function Ta(t,r,e,n,i,o,s,a,l,u,c,f){let _=t.length,g=o.length,p=_;const h={};for(;p--;)h[t[p].key]=p;const v=[],w=new Map,G=new Map,X=[];for(p=g;p--;){const Y=f(i,o,p),Q=e(Y);let ie=s.get(Q);ie?X.push(()=>ie.p(Y,r)):(ie=u(Q,Y),ie.c()),w.set(Q,v[p]=ie),Q in h&&G.set(Q,Math.abs(p-h[Q]))}const B=new Set,$=new Set;function _e(Y){J(Y,1),Y.m(a,c),s.set(Y.key,Y),c=Y.first,g--}for(;_&&g;){const Y=v[g-1],Q=t[_-1],ie=Y.key,T=Q.key;Y===Q?(c=Y.first,_--,g--):w.has(T)?!s.has(ie)||B.has(ie)?_e(Y):$.has(T)?_--:G.get(ie)>G.get(T)?($.add(ie),_e(Y)):(B.add(T),_--):(l(Q,s),_--)}for(;_--;){const Y=t[_];w.has(Y.key)||l(Y,s)}for(;g;)_e(v[g-1]);return rn(X),v}function Wi(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 Fa(t){return typeof t=="object"&&t!==null?t:{}}function ar(t){t&&t.c()}function fr(t,r){t&&t.l(r)}function or(t,r,e){const{fragment:n,after_update:i}=t.$$;n&&n.m(r,e),ei(()=>{const o=t.$$.on_mount.map(aa).filter(Yr);t.$$.on_destroy?t.$$.on_destroy.push(...o):rn(o),t.$$.on_mount=[]}),i.forEach(ei)}function sr(t,r){const e=t.$$;e.fragment!==null&&(dh(e.after_update),rn(e.on_destroy),e.fragment&&e.fragment.d(r),e.on_destroy=e.fragment=null,e.ctx=[])}function hh(t,r){t.$$.dirty[0]===-1&&(_o.push(t),ja(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31}function nn(t,r,e,n,i,o,s=null,a=[-1]){const l=Mo;Po(t);const u=t.$$={fragment:null,ctx:[],props:o,update:D,not_equal:i,bound:ua(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:ua(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=e?e(t,r.props||{},(f,_,...g)=>{const p=g.length?g[0]:_;return u.ctx&&i(u.ctx[f],u.ctx[f]=p)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](p),c&&hh(t,f)),_}):[],u.update(),c=!0,rn(u.before_update),u.fragment=n?n(u.ctx):!1,r.target){if(r.hydrate){Jd();const f=Se(r.target);u.fragment&&u.fragment.l(f),f.forEach(k)}else u.fragment&&u.fragment.c();r.intro&&J(t.$$.fragment),or(t,r.target,r.anchor),Xd(),Sa()}Po(l)}class on{constructor(){gr(this,"$$");gr(this,"$$set")}$destroy(){sr(this,1),this.$destroy=D}$on(r,e){if(!Yr(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&&!Kd(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const _h="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_h);const mo=[];function gh(t,r){return{subscribe:bi(t,r).subscribe}}function bi(t,r=D){let e;const n=new Set;function i(a){if(qd(t,a)&&(t=a,e)){const l=!mo.length;for(const u of n)u[1](),mo.push(u,t);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(t))}function s(a,l=D){const u=[a,l];return n.add(u),n.size===1&&(e=r(i,o)||D),a(t),()=>{n.delete(u),n.size===0&&e&&(e(),e=null)}}return{set:i,update:o,subscribe:s}}function bo(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 gh(e,(s,a)=>{let l=!1;const u=[];let c=0,f=D;const _=()=>{if(c)return;f();const p=r(n?u[0]:u,s,a);o?s(p):f=Yr(p)?p:D},g=i.map((p,h)=>H(p,v=>{u[h]=v,c&=~(1<<h),l&&_()},()=>{c|=1<<h}));return l=!0,_(),function(){rn(g),f(),l=!1}})}const br={root_platform_desktop:"divkit-6d515",root__clickable:"divkit-27458","root__clickable-no-transition":"divkit-3bb57","root__any-actions":"divkit-ba614",root:"divkit-82db1",root__selectable:"divkit-be734",root__unselectable:"divkit-9a652","root__only-desktop":"divkit-316e7","root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},bn=Symbol("root");function R(t,r={}){const e=t;return e.level=r.level||"error",r.additional&&(e.additional=r.additional),e}const is={outer:"divkit-bf0ea",outer_width_content:"divkit-bab07",outer_height_content:"divkit-07f20",root__clickable:"divkit-27458","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:"divkit-90c49",outer_visibility_invisible:"divkit-b33bc",outer_visibility_gone:"divkit-f6ff9","outer_has-action-animation":"divkit-4d4f3","outer_has-custom-focus":"divkit-b630e"};function $t(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 Ue(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 hn(t){let r=Ue(t);return r==="0"&&(r+="em"),r}function Ma(t,r){for(;t.length<r;)t="0"+t;return t}function Wr(t,r=1,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=ai(t);return n?(n.a*=r,ll(n)):e}function ph(t,r,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=ai(t);return n?(n.a=r,ll(n)):e}function ll(t){return t.a===255?`#${[t.r,t.g,t.b].map(r=>Ma(Math.round(r).toString(16),2)).join("")}`:`rgba(${t.r},${t.g},${t.b},${(t.a/255).toFixed(2)})`}function ai(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[u,c,f,_,g]=r,p=f.length===2?f:f+f,h=_.length===2?_:_+_,v=g.length===2?g:g+g,w=c.length===2?c:c+c;return{a:parseInt(w,16),r:parseInt(p,16),g:parseInt(h,16),b:parseInt(v,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 al(t){let r=String(t);return r.indexOf("&")>-1&&(r=r.replace(/&/g,"&amp;")),r.indexOf("<")>-1&&(r=r.replace(/</g,"&lt;")),r.indexOf(">")>-1&&(r=r.replace(/>/g,"&gt;")),r.indexOf('"')>-1&&(r=r.replace(/"/g,"&quot;")),r}const ji=Boolean;function os(t,r){if(t.length===1&&t[0].type==="solid")return bh({bg:t[0]});const e=t.map(n=>{if(n.type==="solid")return mh({bg:n});if(n.type==="gradient")return yh({bg:n});if(n.type==="image")return kh({bg:n,direction:r});if(n.type==="radial_gradient")return wh({bg:n})}).filter(ji).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:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}function mh(t){const r=Wr(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function bh(t){return{color:Wr(t.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function Pa(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=>`${Wr(n.color)} ${(n.position*100).toFixed(2)}%`).join(","):void 0}function yh(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(ji);if(!(r!=null&&r.length)&&!((s=t.bg)!=null&&s.color_map))return;let e;if(t.bg.color_map){const a=Pa(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=>Wr(a)).join(",")+")"}return{size:void 0,pos:void 0,image:e}}const vh={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Na(t){if(t&&typeof t=="object"&&"type"in t&&t.value!==void 0){if(t.type==="fixed")return hn(t.value);if(t.type==="relative")return`${Number(t.value)*100}%`}return"50%"}function wh(t){var a,l,u,c;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=(u=t.bg.colors)==null?void 0:u.filter(ji);if(!(r!=null&&r.length)&&!((c=t.bg)!=null&&c.color_map))return;let e;if(t.bg.color_map?e=Pa(t.bg.color_map):r&&(e=r.map(f=>Wr(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=hn(n.value):n.type==="relative"&&(i=vh[n.value]));const o=Na(t.bg.center_x),s=Na(t.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${i||"farthest-corner"} at ${o} ${s},`+e+")"}}function kh(t){var e;const r=(e=t.bg)==null?void 0:e.image_url;if(r)return{size:za(t.bg.scale),pos:Oa(t.bg,t.direction),image:'url("'+al(r)+'")'}}function za(t){return t==="fit"?"contain":t==="stretch"?"fill":t==="no_scale"?"none":"cover"}function Eh(t){return t==="none"?"auto":t==="fill"?"100% 100%":t}function Oa(t,r){let e,n;return t.content_alignment_horizontal==="left"||r==="ltr"&&t.content_alignment_horizontal==="start"||r==="rtl"&&t.content_alignment_horizontal==="end"?e="0%":t.content_alignment_horizontal==="right"||r==="ltr"&&t.content_alignment_horizontal==="end"||r==="rtl"&&t.content_alignment_horizontal==="start"?e="100%":e="50%",t.content_alignment_vertical==="top"?n="0%":t.content_alignment_vertical==="bottom"?n="100%":n="50%",e+" "+n}function an(t,r){const e=Number(t);return Number.isNaN(e)||e<0?r:e}function La(t,r,e){return typeof r=="number"&&(t&&r>0&&r<=100||!t&&r>=0&&r<100)?r:e}function Ah(t){return t.is_enabled!==0&&t.is_enabled!==!1&&t.index!==void 0}function Ch(t,{visibilityActions:r,disappearActions:e,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})}),e&&e.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=bo(s,g=>g);let c;const f=g=>{const p=g.type==="visibility";i.execAnyActions([g.action],{logType:p?"visible":"disappear",node:t,processUrls:!1})},_=u.subscribe(g=>{c=g.filter(Ah);const p={};c.forEach(w=>{p[w.index]=w}),l();const h=[...new Set(c.map(w=>{const G=o[w.index].type==="visibility";return La(G,w.visibility_percentage,G?50:0)/100}))];if(!h.length)return;const v=w=>{w.forEach(G=>{c.forEach(X=>{const B=o[X.index],$=B.type==="visibility",_e=La($,X.visibility_percentage,$?50:0);let Y;_e===0?Y=G.intersectionRatio>=1e-12:Y=G.intersectionRatio>=_e/100,($?!B.visible&&Y:B.visible&&!Y)?B.finished||(B.timer=setTimeout(()=>{++B.count;const T=X.log_limit===0?1/0:X.log_limit||1;B.count>=T&&(B.finished=!0),f(B)},an(X.visibility_duration,800))):($?!Y:Y)&&B.timer&&clearTimeout(B.timer),B.visible=Y})})};a=new IntersectionObserver(v,{threshold:h}),a.observe(t)});return{destroy(){c==null||c.forEach(g=>{const p=o[g.index];!p||p.type!=="disappear"||!p.visible||p.finished||n.registerTimeout(window.setTimeout(()=>{f(p)},g.visibility_duration))}),l(),_()}}}function Ra(t,r){r&&t.push(r)}function Tt(t,r,e){const n=[];Ra(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}`:"");Ra(n,r[s])}}return n.join(" ")}const ul=Symbol("state");function yi(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?"":Ue(e)+" "+Ue(n)+" "+Ue(i)+" "+Ue(o)}function yo(t){if(typeof t!="number"&&typeof t!="string")return!1;const r=Number(t);return!Number.isNaN(r)}function Un(t){return yo(t)&&t>=0}function ss(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]&&!Un(n[s]))return e;return yi(t,r)}function jh(t,r){return!Un(t)||t===void 0||t>1?r:Number(t)}const Sh=Object.prototype.hasOwnProperty;function vo(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(!Sh.call(r,o)||!vo(t[o],r[o]))return!1}return!0}function Ui(t,r){return vo(t,r)?r:t}function Vh(t,r){return t==="visible"||t==="invisible"||t==="gone"?t:r}function Ba(t,r){return t==="linear"||t==="ease"||t==="ease_in_out"||t==="ease_in"||t==="ease_out"?t:r}function ls(t,r){const e=Number(t);return Number.isNaN(e)?r:e}function zo(t){const r=[];return t.name==="set"?(t.items||[]).forEach(e=>{r.push(...zo(e))}):r.push(t),r}function wo(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]]&&!Un(t[e[n]]))return r;return t}function Ih(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 Dh(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]&&!Un(e[n]))return r;return t}function as(t,r=0,e=10){return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map(n=>Ue((n||r)/e*10)).join(" ")}function Th(t){var r,e,n,i,o,s;return Ue(((e=(r=t.offset)==null?void 0:r.x)==null?void 0:e.value)||0)+" "+Ue(((i=(n=t.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+Ue((o=t.blur)!=null?o:2)+" "+Wr(t.color||"#000000",(s=t.alpha)!=null?s:.19)}function Fh(t,r){var e,n,i,o,s,a;return"drop-shadow("+Wr(t.color||"#000000",(e=t.alpha)!=null?e:.19)+" "+Ue((((i=(n=t.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+Ue((((s=(o=t.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+Ue(((a=t.blur)!=null?a:2)*10/r)+")"}let cl;function ko(){return typeof matchMedia>"u"?!1:(cl||(cl=window.matchMedia("(prefers-reduced-motion)")),cl.matches)}const Mh=8,Ph=(t,r,e,n)=>{let i;return(e||n)&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(async()=>{let o=0;const s={},a=(u,c)=>{if(u){const f=r.getVariable(u,"integer");if(f){if(c=Math.round(c),s[u]||(s[u]=new Set),!s[u].has(c))return f.setValue(c),s[u].add(c),!0}else{const _=new Error("Missing variable");_.level="error",_.additional={variableName:u},r.logError(_)}}return!1},l=()=>{if(!t)return!1;const u=t.getBoundingClientRect(),c=a(e,u.width),f=a(n,u.height);return c||f};for(;l();){if(++o>Mh){const u=new Error("Recursive layout in size_provider");u.level="warn",u.additional={widthVariableName:e,heightVariableName:n},r.logError(u);break}await Vn()}}),i.observe(t)),i},fl=Symbol("enabled");function Rn(t,r){return t===1||t===0||t===!1||t===!0?!!t:r}function Eo(t){return[t.state_description,t.description,t.hint].filter(Boolean).join(", ")}const Ha=1,Gi=2;function Wa(t,r=1){if(!(!t||typeof t.value!="number")){if(t.type==="translation-fixed")return Ue(t.value*r);if(t.type==="translation-percentage")return`${t.value*r}%`}}function us(t,r=1){if(!(!t||typeof t.value!="number")){if(t.type==="pivot-fixed")return Ue(t.value*r);if(t.type==="pivot-percentage")return`${t.value*r}%`}}function Nh(t){return t.map(r=>{if(r.type==="rotation"){if(typeof r.angle=="number"){const e=us(r.pivot_x)||"50%",n=us(r.pivot_y)||"50%",i=us(r.pivot_x,-1)||"-50%",o=us(r.pivot_y,-1)||"-50%";return`translate(${e}, ${n}) rotate(${r.angle}deg) translate(${i}, ${o})`}}else if(r.type==="translation"){const e=Wa(r.x)||0,n=Wa(r.y)||0;return`translate(${e}, ${n})`}}).filter(Boolean).join(" ")}const dl=Symbol("visibility"),Ua={actionable__button:"divkit-ee5cc"};function zh(){}const $i=Symbol("action");function hl(t){if(t.startsWith("tel:"))return"tel";if(t.startsWith("/"))return"https";const r=/^([^/]+):\/\//.exec(t);return r&&r[1]||""}function _l(t,r){return r.has(t)}function Oh(t){var f;let r,e,n,i,o,s;const a=t[30].default,l=Yo(a,t,t[29],null);let u=[{class:e=t[2]+" "+((f=t[1])!=null&&f.length?br["root_disabled-context-menu"]:"")+" "+(t[13]?br["root__any-actions"]:"")},{style:t[3]},{role:t[10]},{"aria-checked":t[14]},{"aria-hidden":n=t[11]||void 0},t[4]],c={};for(let _=0;_<u.length;_+=1)c=$n(c,u[_]);return{c(){r=Pe("span"),l&&l.c(),this.h()},l(_){r=Le(_,"SPAN",{class:!0,style:!0,role:!0,"aria-checked":!0,"aria-hidden":!0});var g=Se(r);l&&l.l(g),g.forEach(k),this.h()},h(){pi(r,c)},m(_,g){x(_,r,g),l&&l.m(r,null),t[48](r),i=!0,o||(s=[Xo(t[5].call(null,r)),Oe(r,"click",t[41]),Oe(r,"keydown",t[16]),Oe(r,"focus",t[42]),Oe(r,"blur",t[43]),Oe(r,"pointerdown",t[44]),Oe(r,"wheel",t[45])],o=!0)},p(_,g){var p;l&&l.p&&(!i||g[0]&536870912)&&Ko(l,a,_,_[29],i?qo(a,_[29],g,null):Jo(_[29]),null),pi(r,c=Wi(u,[(!i||g[0]&8198&&e!==(e=_[2]+" "+((p=_[1])!=null&&p.length?br["root_disabled-context-menu"]:"")+" "+(_[13]?br["root__any-actions"]:"")))&&{class:e},(!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||(J(l,_),i=!0)},o(_){se(l,_),i=!1},d(_){_&&k(r),l&&l.d(_),t[48](null),o=!1,rn(s)}}}function Lh(t){var f;let r,e,n,i,o,s;const a=t[30].default,l=Yo(a,t,t[29],null);let u=[{class:e=t[2]+" "+Ua.actionable__button+" "+br["root__any-actions"]+` ${t[6]?br.root__clickable:br["root__clickable-no-transition"]} ${br.root__unselectable} `+((f=t[1])!=null&&f.length?br["root_disabled-context-menu"]:"")},{style:t[3]},{role:t[10]},{"aria-checked":t[14]},{type:"button"},{tabindex:n=t[0].fakeElement===Gi?-1:null},t[4]],c={};for(let _=0;_<u.length;_+=1)c=$n(c,u[_]);return{c(){r=Pe("button"),l&&l.c(),this.h()},l(_){r=Le(_,"BUTTON",{class:!0,style:!0,role:!0,"aria-checked":!0,type:!0,tabindex:!0});var g=Se(r);l&&l.l(g),g.forEach(k),this.h()},h(){pi(r,c)},m(_,g){x(_,r,g),l&&l.m(r,null),r.autofocus&&r.focus(),t[47](r),i=!0,o||(s=[Xo(t[5].call(null,r)),Oe(r,"click",t[36]),Oe(r,"keydown",t[16]),Oe(r,"focus",t[37]),Oe(r,"blur",t[38]),Oe(r,"pointerdown",t[39]),Oe(r,"wheel",t[40])],o=!0)},p(_,g){var p;l&&l.p&&(!i||g[0]&536870912)&&Ko(l,a,_,_[29],i?qo(a,_[29],g,null):Jo(_[29]),null),pi(r,c=Wi(u,[(!i||g[0]&70&&e!==(e=_[2]+" "+Ua.actionable__button+" "+br["root__any-actions"]+` ${_[6]?br.root__clickable:br["root__clickable-no-transition"]} ${br.root__unselectable} `+((p=_[1])!=null&&p.length?br["root_disabled-context-menu"]:"")))&&{class:e},(!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===Gi?-1:null))&&{tabindex:n},g[0]&16&&_[4]]))},i(_){i||(J(l,_),i=!0)},o(_){se(l,_),i=!1},d(_){_&&k(r),l&&l.d(_),t[47](null),o=!1,rn(s)}}}function Rh(t){var f;let r,e,n,i,o,s;const a=t[30].default,l=Yo(a,t,t[29],null);let u=[{href:t[8]},{target:t[12]},{style:t[3]},{role:t[10]},{"aria-checked":t[14]},{class:e=t[2]+" "+br["root__any-actions"]+" "+(t[6]?br.root__clickable:br["root__clickable-no-transition"])+" "+((f=t[1])!=null&&f.length?br["root_disabled-context-menu"]:"")},{tabindex:n=t[0].fakeElement===Gi?-1:null},t[4]],c={};for(let _=0;_<u.length;_+=1)c=$n(c,u[_]);return{c(){r=Pe("a"),l&&l.c(),this.h()},l(_){r=Le(_,"A",{href:!0,target:!0,style:!0,role:!0,"aria-checked":!0,class:!0,tabindex:!0});var g=Se(r);l&&l.l(g),g.forEach(k),this.h()},h(){pi(r,c)},m(_,g){x(_,r,g),l&&l.m(r,null),t[46](r),i=!0,o||(s=[Xo(t[5].call(null,r)),Oe(r,"click",t[31]),Oe(r,"keydown",t[16]),Oe(r,"focus",t[32]),Oe(r,"blur",t[33]),Oe(r,"pointerdown",t[34]),Oe(r,"wheel",t[35])],o=!0)},p(_,g){var p;l&&l.p&&(!i||g[0]&536870912)&&Ko(l,a,_,_[29],i?qo(a,_[29],g,null):Jo(_[29]),null),pi(r,c=Wi(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&&e!==(e=_[2]+" "+br["root__any-actions"]+" "+(_[6]?br.root__clickable:br["root__clickable-no-transition"])+" "+((p=_[1])!=null&&p.length?br["root_disabled-context-menu"]:"")))&&{class:e},(!i||g[0]&1&&n!==(n=_[0].fakeElement===Gi?-1:null))&&{tabindex:n},g[0]&16&&_[4]]))},i(_){i||(J(l,_),i=!0)},o(_){se(l,_),i=!1},d(_){_&&k(r),l&&l.d(_),t[46](null),o=!1,rn(s)}}}function Bh(t){let r,e,n,i;const o=[Rh,Lh,Oh],s=[];function a(l,u){return l[8]?0:l[9]?1:2}return r=a(t),e=s[r]=o[r](t),{c(){e.c(),n=tt()},l(l){e.l(l),n=tt()},m(l,u){s[r].m(l,u),x(l,n,u),i=!0},p(l,u){let c=r;r=a(l),r===c?s[r].p(l,u):(wr(),se(s[c],1,1,()=>{s[c]=null}),kr(),e=s[r],e?e.p(l,u):(e=s[r]=o[r](l),e.c()),J(e,1),e.m(n.parentNode,n))},i(l){i||(J(e),i=!0)},o(l){se(e),i=!1},d(l){l&&k(n),s[r].d(l)}}}const Ga=8,Ya=400,gl=400,Hh=new Set(["button","image","checkbox","radio","header"]);function qa(t){t.preventDefault()}function Wh(t,r,e){let n,i,o=D,s=()=>(o(),o=H(n,F=>e(28,i=F)),n);t.$$.on_destroy.push(()=>o());let{$$slots:a={},$$scope:l}=r,{componentContext:u}=r,{id:c=""}=r,{actions:f=void 0}=r,{doubleTapActions:_=void 0}=r,{longTapActions:g=void 0}=r,{pressStartActions:p=void 0}=r,{pressEndActions:h=void 0}=r,{hoverStartActions:v=void 0}=r,{hoverEndActions:w=void 0}=r,{cls:G=""}=r,{style:X=null}=r,{attrs:B=void 0}=r,{use:$=zh}=r,{customAction:_e=null}=r,{isNativeActionAnimation:Y=!0}=r,{hasInnerFocusable:Q=!1}=r,{customAccessibility:ie=void 0}=r,{captureFocusOnAction:T=!0}=r;const V=Jr(bn),M=Jr($i);Pi($i,{hasAction(){return!!(M.hasAction()||f!=null&&f.length||(ie==null?void 0:ie.mode)==="exclude")}});let N,pe="",$e,Ae=-1,Ne=-1,le=null,Je=!1,Be=!1,bt=!1,et,at,ye,zt,ke=!1;function De(){return(i==null?void 0:i.some(F=>{if(F!=null&&F.typed)return!0;const qe=F==null?void 0:F.url;if(!qe)return!1;const Zt=hl(qe);return Zt&&!_l(Zt,V.getBuiltinProtocols())}))||!1}async function we(F,qe){f&&(F&&De()&&F.preventDefault(),u.execAnyActions(f,{node:N,processUrls:qe}))}async function re(F){if(M.hasAction()||F.button!==void 0&&F.button!==0)return;const qe=Date.now();if(Ae>0&&qe>Ae+Ya){F.preventDefault();return}if(_!=null&&_.length&&Ne>0&&qe-Ne<gl){F.preventDefault(),u.execAnyActions(_,{processUrls:!0,node:N}),Ne=-1;return}if(Ne=qe,_!=null&&_.length&&Ae>0&&qe<Ae+gl){F.preventDefault(),clearTimeout(at),at=window.setTimeout(()=>{we(void 0,!0)},gl);return}(_e==null?void 0:_e(F))===!1?F.preventDefault():we(F,!1)}function Qe(F){M.hasAction()||(le={x:F.clientX,y:F.clientY},Je=!1,Ae=Date.now(),et&&clearTimeout(et),clearTimeout(at),u.execAnyActions(p,{node:N}))}function it(F){le&&(Math.abs(le.x-F.clientX)>Ga||Math.abs(le.y-F.clientY)>Ga)&&(Je=!0)}function He(F){M.hasAction()||!le||Ae<0||(!Je&&Date.now()-Ae>=Ya&&(F.stopImmediatePropagation(),u.execAnyActions(g,{processUrls:!0,node:N})),et&&clearTimeout(et),et=window.setTimeout(()=>{le=null,Ae=-1},100),u.execAnyActions(h,{node:N}))}function Mt(){M.hasAction()||u.execAnyActions(v,{node:N})}function st(){M.hasAction()||u.execAnyActions(w,{node:N})}function Z(F){const qe=F.target;qe instanceof HTMLElement&&(qe.tagName==="INPUT"||qe.contentEditable==="true")||F.ctrlKey||F.metaKey||F.altKey||F.shiftKey||F.key==="Enter"&&Array.isArray(f)&&f.length&&(u.execAnyActions(f),F.preventDefault())}ii(()=>{c&&!Q&&V.registerFocusable(c,{focus(){N&&(pe||Be)&&N.focus()}})}),wn(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",it),window.removeEventListener("pointerup",He),window.removeEventListener("pointercancel",He)),c&&!Q&&V.unregisterFocusable(c),et&&clearTimeout(et),at&&clearTimeout(at)});function ut(F){Ln.call(this,t,F)}function Me(F){Ln.call(this,t,F)}function dt(F){Ln.call(this,t,F)}function ht(F){Ln.call(this,t,F)}function nr(F){Ln.call(this,t,F)}function mt(F){Ln.call(this,t,F)}function ge(F){Ln.call(this,t,F)}function Gt(F){Ln.call(this,t,F)}function Pt(F){Ln.call(this,t,F)}function Kt(F){Ln.call(this,t,F)}function q(F){Ln.call(this,t,F)}function pt(F){Ln.call(this,t,F)}function Ie(F){Ln.call(this,t,F)}function ce(F){Ln.call(this,t,F)}function vt(F){Ln.call(this,t,F)}function Ht(F){Nr[F?"unshift":"push"](()=>{N=F,e(7,N)})}function Te(F){Nr[F?"unshift":"push"](()=>{N=F,e(7,N)})}function ze(F){Nr[F?"unshift":"push"](()=>{N=F,e(7,N)})}return t.$$set=F=>{"componentContext"in F&&e(0,u=F.componentContext),"id"in F&&e(17,c=F.id),"actions"in F&&e(18,f=F.actions),"doubleTapActions"in F&&e(19,_=F.doubleTapActions),"longTapActions"in F&&e(1,g=F.longTapActions),"pressStartActions"in F&&e(20,p=F.pressStartActions),"pressEndActions"in F&&e(21,h=F.pressEndActions),"hoverStartActions"in F&&e(22,v=F.hoverStartActions),"hoverEndActions"in F&&e(23,w=F.hoverEndActions),"cls"in F&&e(2,G=F.cls),"style"in F&&e(3,X=F.style),"attrs"in F&&e(4,B=F.attrs),"use"in F&&e(5,$=F.use),"customAction"in F&&e(24,_e=F.customAction),"isNativeActionAnimation"in F&&e(6,Y=F.isNativeActionAnimation),"hasInnerFocusable"in F&&e(25,Q=F.hasInnerFocusable),"customAccessibility"in F&&e(26,ie=F.customAccessibility),"captureFocusOnAction"in F&&e(27,T=F.captureFocusOnAction),"$$scope"in F&&e(29,l=F.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&67108864&&e(11,ke=(ie==null?void 0:ie.mode)==="exclude"),t.$$.dirty[0]&262145&&s(e(15,n=u.getDerivedFromVars(f,void 0,!0))),t.$$.dirty[0]&285214977){if(Array.isArray(i)&&(i!=null&&i.length))for(let F=0;F<i.length;++F){const qe=i[F].url;if(qe){e(8,pe=qe),e(12,$e=i[F].target||void 0);break}}e(9,Be=!!_e),(pe||Array.isArray(i)&&(i!=null&&i.length))&&(M.hasAction()||ke)?(e(8,pe=""),u.logError(R(new Error("Actionable element is forbidden inside other actionable element or inside accessibility mode=exlucde"),{level:"warn",additional:{actions:i}}))):pe&&!_l(hl(pe),V.getBuiltinProtocols())?(e(8,pe=""),e(9,Be=!0)):!pe&&Array.isArray(i)&&(i!=null&&i.length)&&(e(9,Be=!0),i.some(F=>F.url||F.typed||F.menu_items)||u.logError(R(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:i}})))}t.$$.dirty[0]&67110656&&(ie!=null&&ie.type&&Hh.has(ie.type)?ie.type==="header"?e(10,ye="heading"):ie.type==="image"?e(10,ye="img"):e(10,ye=ie.type):pe?e(10,ye=void 0):Be&&e(10,ye="button"),(ye==="checkbox"||ye==="radio")&&typeof(ie==null?void 0:ie.is_checked)=="boolean"?e(14,zt=ie.is_checked):e(14,zt=void 0)),t.$$.dirty[0]&150471554&&N&&(pe||Be||_!=null&&_.length?N.addEventListener("click",re):N.removeEventListener("click",re),_!=null&&_.length||g!=null&&g.length||p!=null&&p.length||h!=null&&h.length?(N.addEventListener("pointerdown",Qe,{passive:!0}),window.addEventListener("pointermove",it,{passive:!0}),window.addEventListener("pointerup",He,{passive:!0}),window.addEventListener("pointercancel",He,{passive:!0})):(N.removeEventListener("pointerdown",Qe),window.removeEventListener("pointerup",He),window.removeEventListener("pointermove",it),window.removeEventListener("pointercancel",He)),v!=null&&v.length?N.addEventListener("pointerenter",Mt):N.removeEventListener("pointerenter",Mt),w!=null&&w.length?N.addEventListener("pointerleave",st):N.removeEventListener("pointerleave",st),T===!1?N.addEventListener("mousedown",qa):N.removeEventListener("mousedown",qa),e(13,bt=!!(pe||Be||_!=null&&_.length||g!=null&&g.length||p!=null&&p.length||h!=null&&h.length||v!=null&&v.length||w!=null&&w.length)))},[u,g,G,X,B,$,Y,N,pe,Be,ye,ke,$e,bt,zt,n,Z,c,f,_,p,h,v,w,_e,Q,ie,T,i,l,a,ut,Me,dt,ht,nr,mt,ge,Gt,Pt,Kt,q,pt,Ie,ce,vt,Ht,Te,ze]}class cs extends on{constructor(r){super(),nn(this,r,Wh,Bh,Hr,{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 eo={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function Jn(t){return yo(t)&&t>0}function Ka(t,r){return t.map(e=>{if(!e){r(R(new Error("Incorrect filter"),{level:"warn"}));return}if(e.type==="blur"){if(Jn(e.radius))return`blur(${hn(e.radius/2)})`}else{if(e.type==="rtl_mirror")return;r(R(new Error("Unknown filter"),{level:"warn",additional:{filter:e.type}}))}}).filter(Boolean).join(" ")}function Ja(t,r,e){const n=t.slice();return n[6]=r[e],n}function Uh(t){let r,e;return{c(){r=Pe("span"),this.h()},l(n){r=Le(n,"SPAN",{class:!0,style:!0}),Se(r).forEach(k),this.h()},h(){b(r,"class",eo["outer-background__item"]),b(r,"style",e=$t(t[6].style))},m(n,i){x(n,r,i)},p(n,i){i&2&&e!==(e=$t(n[6].style))&&b(r,"style",e)},d(n){n&&k(r)}}}function Gh(t){let r,e,n,i,o;return{c(){r=Pe("img"),this.h()},l(s){r=Le(s,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){gi(r.src,e=t[6].image_url)||b(r,"src",e),b(r,"alt",""),b(r,"aria-hidden","true"),b(r,"loading","lazy"),b(r,"decoding","async"),b(r,"class",eo["outer-background__item"]),b(r,"style",n=$t(t[6].style))},m(s,a){x(s,r,a),i||(o=Oe(r,"error",t[2]),i=!0)},p(s,a){a&2&&!gi(r.src,e=s[6].image_url)&&b(r,"src",e),a&2&&n!==(n=$t(s[6].style))&&b(r,"style",n)},d(s){s&&k(r),i=!1,o()}}}function Xa(t){let r;function e(o,s){return o[6].image_url?Gh:Uh}let n=e(t),i=n(t);return{c(){i.c(),r=tt()},l(o){i.l(o),r=tt()},m(o,s){i.m(o,s),x(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&&k(r),i.d(o)}}}function Yh(t){let r,e,n=mr(t[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Xa(Ja(t,n,o));return{c(){r=Pe("span");for(let o=0;o<i.length;o+=1)i[o].c();this.h()},l(o){r=Le(o,"SPAN",{class:!0});var s=Se(r);for(let a=0;a<i.length;a+=1)i[a].l(s);s.forEach(k),this.h()},h(){b(r,"class",e=eo["outer-background"]+(t[0]?" "+eo["outer-background_clip"]:"")),W(r,"border-radius",t[0])},m(o,s){x(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=mr(o[1]);let a;for(a=0;a<n.length;a+=1){const l=Ja(o,n,a);i[a]?i[a].p(l,s):(i[a]=Xa(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=eo["outer-background"]+(o[0]?" "+eo["outer-background_clip"]:""))&&b(r,"class",e),s&1&&W(r,"border-radius",o[0])},i:D,o:D,d(o){o&&k(r),vn(i,o)}}}function qh(t,r,e){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(eo["outer-background__item_hidden"])}return t.$$set=u=>{"direction"in u&&e(3,i=u.direction),"componentContext"in u&&e(4,o=u.componentContext),"background"in u&&e(5,s=u.background),"radius"in u&&e(0,a=u.radius)},t.$$.update=()=>{t.$$.dirty&56&&e(1,n=s.map(u=>{const c={},f={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 _=os([u],i);u.type==="solid"&&(c["background-color"]=_.color),u.type==="gradient"&&(c["background-image"]=_.image),u.type==="image"&&(c.opacity=Number(u.alpha),f.image_url=u.image_url,c["object-fit"]=_.size,c["object-position"]=_.position,Array.isArray(u.filters)&&u.filters.length&&(c.filter=Ka(u.filters,o.logError),i==="rtl"&&u.filters.some(g=>g.type==="rtl_mirror")&&(c.transform="scale(-1,1)")))}return f}))},[a,n,l,i,o,s]}class Kh extends on{constructor(r){super(),nn(this,r,qh,Yh,Hr,{direction:3,componentContext:4,background:5,radius:0})}}const Jh=t=>({hasCustomFocus:t[0]&65536,widthMin:t[0]&32,widthMax:t[0]&64,heightMin:t[0]&128,heightMax:t[0]&256}),Za=t=>({focusHandler:t[49],blurHandler:t[50],hasCustomFocus:t[16],widthMin:t[5],widthMax:t[6],heightMin:t[7],heightMax:t[8]});function Qa(t){let r,e;return r=new cs({props:{componentContext:t[0],id:t[0].json.id,use:t[48],cls:t[1]+" "+Tt("outer",is,t[28]),style:$t(t[27]),actions:t[23],doubleTapActions:t[24],longTapActions:t[25],pressStartActions:t[11],pressEndActions:t[12],hoverStartActions:t[13],hoverEndActions:t[14],attrs:t[19],hasInnerFocusable:t[2],isNativeActionAnimation:!t[15].length||eu(t[15]),customAccessibility:t[18],captureFocusOnAction:t[26],$$slots:{default:[Xh]},$$scope:{ctx:t}}}),r.$on("focus",t[49]),r.$on("blur",t[50]),r.$on("pointerdown",t[126]),r.$on("wheel",t[127]),{c(){ar(r.$$.fragment)},l(n){fr(r.$$.fragment,n)},m(n,i){or(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]&268435458&&(o.cls=n[1]+" "+Tt("outer",is,n[28])),i[0]&134217728&&(o.style=$t(n[27])),i[0]&8388608&&(o.actions=n[23]),i[0]&16777216&&(o.doubleTapActions=n[24]),i[0]&33554432&&(o.longTapActions=n[25]),i[0]&2048&&(o.pressStartActions=n[11]),i[0]&4096&&(o.pressEndActions=n[12]),i[0]&8192&&(o.hoverStartActions=n[13]),i[0]&16384&&(o.hoverEndActions=n[14]),i[0]&524288&&(o.attrs=n[19]),i[0]&4&&(o.hasInnerFocusable=n[2]),i[0]&32768&&(o.isNativeActionAnimation=!n[15].length||eu(n[15])),i[0]&262144&&(o.customAccessibility=n[18]),i[0]&67108864&&(o.captureFocusOnAction=n[26]),i[0]&1247225|i[4]&16&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(J(r.$$.fragment,n),e=!0)},o(n){se(r.$$.fragment,n),e=!1},d(n){sr(r,n)}}}function xa(t){let r,e;return r=new Kh({props:{componentContext:t[0],direction:t[17],background:t[9],radius:t[4]}}),{c(){ar(r.$$.fragment)},l(n){fr(r.$$.fragment,n)},m(n,i){or(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&131072&&(o.direction=n[17]),i[0]&512&&(o.background=n[9]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){e||(J(r.$$.fragment,n),e=!0)},o(n){se(r.$$.fragment,n),e=!1},d(n){sr(r,n)}}}function $a(t){let r,e;return{c(){r=Pe("span"),this.h()},l(n){r=Le(n,"SPAN",{class:!0,style:!0}),Se(r).forEach(k),this.h()},h(){b(r,"class",is.outer__border),b(r,"style",e=$t(t[3]))},m(n,i){x(n,r,i)},p(n,i){i[0]&8&&e!==(e=$t(n[3]))&&b(r,"style",e)},d(n){n&&k(r)}}}function Xh(t){let r,e,n,i=t[10]&&xa(t);const o=t[125].default,s=Yo(o,t,t[128],Za);let a=t[20]&&$a(t);return{c(){i&&i.c(),r=tt(),s&&s.c(),a&&a.c(),e=tt()},l(l){i&&i.l(l),r=tt(),s&&s.l(l),a&&a.l(l),e=tt()},m(l,u){i&&i.m(l,u),x(l,r,u),s&&s.m(l,u),a&&a.m(l,u),x(l,e,u),n=!0},p(l,u){l[10]?i?(i.p(l,u),u[0]&1024&&J(i,1)):(i=xa(l),i.c(),J(i,1),i.m(r.parentNode,r)):i&&(wr(),se(i,1,1,()=>{i=null}),kr()),s&&s.p&&(!n||u[0]&66016|u[4]&16)&&Ko(s,o,l,l[128],n?qo(o,l[128],u,Jh):Jo(l[128]),Za),l[20]?a?a.p(l,u):(a=$a(l),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},i(l){n||(J(i),J(s,l),n=!0)},o(l){se(i),se(s,l),n=!1},d(l){l&&(k(r),k(e)),i&&i.d(l),s&&s.d(l),a&&a.d(l)}}}function Zh(t){let r,e,n=!t[21]&&!t[22]&&Qa(t);return{c(){n&&n.c(),r=tt()},l(i){n&&n.l(i),r=tt()},m(i,o){n&&n.m(i,o),x(i,r,o),e=!0},p(i,o){!i[21]&&!i[22]?n?(n.p(i,o),o[0]&6291456&&J(n,1)):(n=Qa(i),n.c(),J(n,1),n.m(r.parentNode,r)):n&&(wr(),se(n,1,1,()=>{n=null}),kr())},i(i){e||(J(n),e=!0)},o(i){se(n),e=!1},d(i){i&&k(r),n&&n.d(i)}}}const Qh={left:"start",center:"center",right:"end",start:"start",end:"end"},xh={left:"end",center:"center",right:"start",start:"start",end:"end"},$h={top:"start",center:"center",bottom:"end",baseline:"baseline"},pl=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 eu(t){return t.some(r=>r.name==="native")}function e_(t,r,e){let n,i,o,s,a,l,u,c,f,_,g,p,h,v,w,G,X,B,$,_e,Y,Q,ie,T,V,M=D,N=()=>(M(),M=H(w,Fe=>e(108,V=Fe)),w),pe,$e=D,Ae=()=>($e(),$e=H(G,Fe=>e(109,pe=Fe)),G),Ne,le,Je=D,Be=()=>(Je(),Je=H(v,Fe=>e(111,le=Fe)),v),bt,et=D,at=()=>(et(),et=H(X,Fe=>e(112,bt=Fe)),X),ye,zt=D,ke=()=>(zt(),zt=H(h,Fe=>e(113,ye=Fe)),h),De,we,re=D,Qe=()=>(re(),re=H(p,Fe=>e(114,we=Fe)),p),it,He=D,Mt=()=>(He(),He=H(i,Fe=>e(115,it=Fe)),i),st,Z=D,ut=()=>(Z(),Z=H(g,Fe=>e(18,st=Fe)),g),Me,dt=D,ht=()=>(dt(),dt=H(_,Fe=>e(116,Me=Fe)),_),nr,mt=D,ge=()=>(mt(),mt=H(f,Fe=>e(117,nr=Fe)),f),Gt,Pt=D,Kt=()=>(Pt(),Pt=H(c,Fe=>e(118,Gt=Fe)),c),q,pt=D,Ie=()=>(pt(),pt=H(a,Fe=>e(119,q=Fe)),a),ce,vt=D,Ht=()=>(vt(),vt=H(u,Fe=>e(120,ce=Fe)),u),Te,ze=D,F=()=>(ze(),ze=H(l,Fe=>e(121,Te=Fe)),l),qe,Zt=D,ct=()=>(Zt(),Zt=H(s,Fe=>e(122,qe=Fe)),s),Dt,Jt=D,ve=()=>(Jt(),Jt=H(o,Fe=>e(123,Dt=Fe)),o),At;t.$$.on_destroy.push(()=>M()),t.$$.on_destroy.push(()=>$e()),t.$$.on_destroy.push(()=>Je()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>zt()),t.$$.on_destroy.push(()=>re()),t.$$.on_destroy.push(()=>He()),t.$$.on_destroy.push(()=>Z()),t.$$.on_destroy.push(()=>dt()),t.$$.on_destroy.push(()=>mt()),t.$$.on_destroy.push(()=>Pt()),t.$$.on_destroy.push(()=>pt()),t.$$.on_destroy.push(()=>vt()),t.$$.on_destroy.push(()=>ze()),t.$$.on_destroy.push(()=>Zt()),t.$$.on_destroy.push(()=>Jt());let{$$slots:Ye={},$$scope:Ce}=r,{componentContext:K}=r,{cls:kt=""}=r,{style:Qt=void 0}=r