@divkitframework/divkit 30.1.0 → 30.2.0-canary-fd805ccbf422cfcc881ae2caba9560eec8430cc9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};function n(){}t.d(e,{$5:()=>Fu,XQ:()=>Wc,rz:()=>Wi,U2:()=>Su,XX:()=>Nu});const r=t=>t;function o(t,e){for(const n in e)t[n]=e[n];return t}function i(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(i)}function l(t){return"function"==typeof t}let c;function u(t,e){return t===e||(c||(c=document.createElement("a")),c.href=e,t===c.href)}function d(t,e){return t!=t?e==e:t!==e}function p(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(null==t){for(const t of r)t(void 0);return n}const i=t.subscribe(...r);return i.unsubscribe?()=>i.unsubscribe():i}function f(t,e,n){t.$$.on_destroy.push(p(e,n))}function h(t,e,n,r){if(t){const o=g(t,e,n,r);return t[0](o)}}function g(t,e,n,r){return t[1]&&r?o(n.ctx.slice(),t[1](r(e))):n.ctx}function m(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function v(t,e,n,r,o,i){if(o){const a=g(e,n,r,i);t.p(a,o)}}function y(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function $(t,e,n){return t.set(n),e}function b(t){return t&&l(t.destroy)?t.destroy:n}function _(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const w="undefined"!=typeof window;let x=w?()=>window.performance.now():()=>Date.now(),k=w?t=>requestAnimationFrame(t):n;const C=new Set;function E(t){C.forEach((e=>{e.c(t)||(C.delete(e),e.f())})),0!==C.size&&k(E)}function A(t){let e;return 0===C.size&&k(E),{promise:new Promise((n=>{C.add(e={c:t,f:n})})),abort(){C.delete(e)}}}const j="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function V(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class F{constructor(t){V(this,"_listeners","WeakMap"in j?new WeakMap:void 0),V(this,"_observer",void 0),V(this,"options",void 0),this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return null!==(t=this._observer)&&void 0!==t?t:this._observer=new ResizeObserver((t=>{for(const n of t){var e;F.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}F.entries="WeakMap"in j?new WeakMap:void 0;let D=!1;function S(t,e){t.appendChild(e)}function P(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function N(t){const e=M("style");return e.textContent="/* empty */",function(t,e){S(t.head||t,e),e.sheet}(P(t),e),e.sheet}function O(t,e,n){t.insertBefore(e,n||null)}function I(t){t.parentNode&&t.parentNode.removeChild(t)}function T(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function M(t){return document.createElement(t)}function z(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function R(t){return document.createTextNode(t)}function B(){return R(" ")}function L(){return R("")}function U(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function W(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const H=["width","height"];function q(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set&&-1===H.indexOf(r)?t[r]=e[r]:W(t,r,e[r])}function J(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:W(t,e,n)}(t,n,e[n])}))}function G(t){return/-/.test(t)?J:q}function K(t,e){e=""+e,t.data!==e&&(t.data=e)}function X(t,e){t.value=null==e?"":e}function Y(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function Z(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}function Q(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}function tt(t,e){return new t(e)}const et=new Map;let nt,rt=0;function ot(t,e,n,r,o,i,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*i(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const u=c+"100% {".concat(a(n,1-n),"}\n}"),d="__svelte_".concat(function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u),"_").concat(s),p=P(t),{stylesheet:f,rules:h}=et.get(p)||function(t,e){const n={stylesheet:N(e),rules:{}};return et.set(t,n),n}(p,t);h[d]||(h[d]=!0,f.insertRule("@keyframes ".concat(d," ").concat(u),f.cssRules.length));const g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(d," ").concat(r,"ms linear ").concat(o,"ms 1 both"),rt+=1,d}function it(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),rt-=o,rt||k((()=>{rt||(et.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&I(e)})),et.clear())})))}function at(t){nt=t}function st(){if(!nt)throw new Error("Function called outside component initialization");return nt}function lt(t){st().$$.on_mount.push(t)}function ct(t){st().$$.after_update.push(t)}function ut(t){st().$$.on_destroy.push(t)}function dt(t,e){return st().$$.context.set(t,e),e}function pt(t){return st().$$.context.get(t)}function ft(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ht=[],gt=[];let mt=[];const vt=[],yt=Promise.resolve();let $t=!1;function bt(){$t||($t=!0,yt.then(Et))}function _t(){return bt(),yt}function wt(t){mt.push(t)}const xt=new Set;let kt,Ct=0;function Et(){if(0!==Ct)return;const t=nt;do{try{for(;Ct<ht.length;){const t=ht[Ct];Ct++,at(t),At(t.$$)}}catch(t){throw ht.length=0,Ct=0,t}for(at(null),ht.length=0,Ct=0;gt.length;)gt.pop()();for(let t=0;t<mt.length;t+=1){const e=mt[t];xt.has(e)||(xt.add(e),e())}mt.length=0}while(ht.length);for(;vt.length;)vt.pop()();$t=!1,xt.clear(),at(t)}function At(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(wt)}}function jt(){return kt||(kt=Promise.resolve(),kt.then((()=>{kt=null}))),kt}function Vt(t,e,n){t.dispatchEvent(Q("".concat(e?"intro":"outro").concat(n)))}const Ft=new Set;let Dt;function St(){Dt={r:0,c:[],p:Dt}}function Pt(){Dt.r||s(Dt.c),Dt=Dt.p}function Nt(t,e){t&&t.i&&(Ft.delete(t),t.i(e))}function Ot(t,e,n,r){if(t&&t.o){if(Ft.has(t))return;Ft.add(t),Dt.c.push((()=>{Ft.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const It={duration:0};function Tt(t,e,o){const i={direction:"in"};let a,s,c=e(t,o,i),u=!1,d=0;function p(){a&&it(t,a)}function f(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:f}=c||It;f&&(a=ot(t,0,1,o,e,i,f,d++)),l(0,1);const h=x()+e,g=h+o;s&&s.abort(),u=!0,wt((()=>Vt(t,!0,"start"))),s=A((e=>{if(u){if(e>=g)return l(1,0),Vt(t,!0,"end"),p(),u=!1;if(e>=h){const t=i((e-h)/o);l(t,1-t)}}return u}))}let h=!1;return{start(){h||(h=!0,it(t),l(c)?(c=c(i),jt().then(f)):f())},invalidate(){h=!1},end(){u&&(p(),u=!1)}}}function Mt(t,e,o,i){let a,c=e(t,o,{direction:"both"}),u=i?0:1,d=null,p=null,f=null;function h(){f&&it(t,f)}function g(t,e){const n=t.b-u;return e*=Math.abs(n),{a:u,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function m(e){const{delay:o=0,duration:i=300,easing:l=r,tick:m=n,css:v}=c||It,y={start:x()+o,b:e};e||(y.group=Dt,Dt.r+=1),"inert"in t&&(e?void 0!==a&&(t.inert=a):(a=t.inert,t.inert=!0)),d||p?p=y:(v&&(h(),f=ot(t,u,e,i,o,l,v)),e&&m(0,1),d=g(y,i),wt((()=>Vt(t,e,"start"))),A((e=>{if(p&&e>p.start&&(d=g(p,i),p=null,Vt(t,d.b,"start"),v&&(h(),f=ot(t,u,d.b,d.duration,0,l,c.css))),d)if(e>=d.end)m(u=d.b,1-u),Vt(t,d.b,"end"),p||(d.b?h():--d.group.r||s(d.group.c)),d=null;else if(e>=d.start){const t=e-d.start;u=d.a+d.d*l(t/d.duration),m(u,1-u)}return!(!d&&!p)})))}return{run(t){l(c)?jt().then((()=>{c=c({direction:t?"in":"out"}),m(t)})):m(t)},end(){h(),d=p=null}}}function zt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Rt(t,e){Ot(t,1,1,(()=>{e.delete(t.key)}))}function Bt(t,e,n,r,o,i,a,l,c,u,d,p){let f=t.length,h=i.length,g=f;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,b=[];for(g=h;g--;){const t=p(o,i,g),s=n(t);let l=a.get(s);l?r&&b.push((()=>l.p(t,e))):(l=u(s,t),l.c()),y.set(s,v[g]=l),s in m&&$.set(s,Math.abs(g-m[s]))}const _=new Set,w=new Set;function x(t){Nt(t,1),t.m(l,d),a.set(t.key,t),d=t.first,h--}for(;f&&h;){const e=v[h-1],n=t[f-1],r=e.key,o=n.key;e===n?(d=e.first,f--,h--):y.has(o)?!a.has(r)||_.has(r)?x(e):w.has(o)?f--:$.get(r)>$.get(o)?(w.add(r),x(e)):(_.add(o),f--):(c(n,a),f--)}for(;f--;){const e=t[f];y.has(e.key)||c(e,a)}for(;h;)x(v[h-1]);return s(b),v}function Lt(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],s=e[i];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)o[t]||(n[t]=s[t],o[t]=1);t[i]=s}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let Ut;function Wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(n),!0).forEach((function(e){qt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qt(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jt(t){t&&t.c()}function Gt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),wt((()=>{const e=t.$$.on_mount.map(i).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),o.forEach(wt)}function Kt(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];mt.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),mt=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Xt(t,e,r,o,i,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=nt;at(t);const p=t.$$={fragment:null,ctx:[],props:l,update:n,not_equal:i,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:a(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};c&&c(p.root);let f=!1;if(p.ctx=r?r(t,e.props||{},(function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return p.ctx&&i(p.ctx[e],p.ctx[e]=r)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](r),f&&function(t,e){-1===t.$$.dirty[0]&&(ht.push(t),bt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],p.update(),f=!0,s(p.before_update),p.fragment=!!o&&o(p.ctx),e.target){if(e.hydrate){D=!0;const t=(h=e.target,Array.from(h.childNodes));p.fragment&&p.fragment.l(t),t.forEach(I)}else p.fragment&&p.fragment.c();e.intro&&Nt(t.$$.fragment),Gt(t,e.target,e.anchor),D=!1,Et()}var h;at(d)}function Yt(t,e,n,r){var o;const i=null===(o=n[t])||void 0===o?void 0:o.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Ut=class extends HTMLElement{constructor(t,e,n){super(),qt(this,"$$ctor",void 0),qt(this,"$$s",void 0),qt(this,"$$c",void 0),qt(this,"$$cn",!1),qt(this,"$$d",{}),qt(this,"$$r",!1),qt(this,"$$p_d",{}),qt(this,"$$l",{}),qt(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function t(t){return()=>{let e;return{c:function(){e=M("slot"),"default"!==t&&W(e,"name",t)},m:function(t,n){O(t,e,n)},d:function(t){t&&I(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=Yt(a,i.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ht(Ht({},this.$$d),{},{$$slots:e,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=Yt(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const c=this.$$c.$on(s,l);this.$$l_u.set(l,c)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Yt(t,n,this.$$p_d,"toProp"),null===(r=this.$$c)||void 0===r||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class Zt{constructor(){qt(this,"$$",void 0),qt(this,"$$set",void 0)}$destroy(){Kt(this,1),this.$destroy=n}$on(t,e){if(!l(e))return n;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Qt=[];function te(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const o=new Set;function i(n){if(i=n,((r=t)!=r?i==i:r!==i||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!Qt.length;for(const e of o)e[1](),Qt.push(e,t);if(e){for(let t=0;t<Qt.length;t+=2)Qt[t][0](Qt[t+1]);Qt.length=0}}var r,i}function a(e){i(e(t))}return{set:i,update:a,subscribe:function(s){const l=[s,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return o.add(l),1===o.size&&(e=r(i,a)||n),s(t),()=>{o.delete(l),0===o.size&&e&&(e(),e=null)}}}}function ee(t,e,r){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return c=(t,r)=>{let c=!1;const u=[];let d=0,f=n;const h=()=>{if(d)return;f();const i=e(o?u[0]:u,t,r);a?t(i):f=l(i)?i:n},g=i.map(((t,e)=>p(t,(t=>{u[e]=t,d&=~(1<<e),c&&h()}),(()=>{d|=1<<e}))));return c=!0,h(),function(){s(g),f(),c=!1}},{subscribe:te(r,c).subscribe};var c}const ne={root:"divkit-b023c",root__clickable:"divkit-bd259","root__clickable-no-transition":"divkit-d9099",root__unselectable:"divkit-c016b",root_platform_desktop:"divkit-ee112","root__only-desktop":"divkit-fef1e","root_restrict-scroll":"divkit-aa145","root_disabled-context-menu":"divkit-f0cba"},re=Symbol("root");function oe(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t;return n.level=e.level||"error",e.additional&&(n.additional=e.additional),n}const ie={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_start:"divkit-e70de",text_halign_center:"divkit-e1659",text_halign_end:"divkit-e48b4",text_valign_start:"divkit-b7b70",text_valign_center:"divkit-ef58e",text_valign_end:"divkit-d4206",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},ae={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980","outer_has-custom-focus":"divkit-c7f14"};function se(t){if(!t)return;let e="";for(const n in t)if(t.hasOwnProperty(n)){if(!t[n]&&0!==t[n])continue;e&&(e+=";"),e+=n+":"+String(t[n])}return e||void 0}function le(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return Number.isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function ce(t){let e=le(t);return"0"===e&&(e+="em"),e}function ue(t,e){for(;t.length<e;)t="0"+t;return t}function de(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"transparent";if("#"!==(t=("string"==typeof t&&t||"").toLowerCase()).charAt(0))return n;const r=pe(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>ue(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}(r)):n}function pe(t){const e=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(e){if(5===e.length){const[t,n,r,o,i]=e,a=2===r.length?r:r+r,s=2===o.length?o:o+o,l=2===i.length?i:i+i,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(s,16),b:parseInt(l,16)}}const[t,n,r,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function fe(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&amp;")),e.indexOf("<")>-1&&(e=e.replace(/</g,"&lt;")),e.indexOf(">")>-1&&(e=e.replace(/>/g,"&gt;")),e.indexOf('"')>-1&&(e=e.replace(/"/g,"&quot;")),e}const he=Boolean;function ge(t){if(1===t.length&&"solid"===t[0].type)return{color:de(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=de(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:"linear-gradient(to bottom,".concat(e,",").concat(e,")")}}({bg:t}):"gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(he);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>de(t))).join(",")+")"}:void 0}({bg:t}):"image"===t.type?function(t){var e;const n=null===(e=t.bg)||void 0===e?void 0:e.image_url;if(n)return{size:ye(t.bg.scale),pos:$e(t.bg),image:'url("'+fe(n)+'")'}}({bg:t}):"radial_gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(he);if(!n.length)return;const r=t.bg.radius;let o;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?o=ce(r.value):"relative"===r.type&&(o=me[r.value]));const i=ve(t.bg.center_x),a=ve(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(o||"farthest-corner"," at ").concat(i," ").concat(a)+","+n.map((t=>de(t))).join(",")+")"}}({bg:t}):void 0)).filter(he).reverse().reduce((function(t,e){return t.image.push(e.image),t.size.push(e.size||"auto"),t.position.push(e.pos||"50% 50%"),t}),{image:[],size:[],position:[]});return{image:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}const me={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function ve(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return ce(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function ye(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function $e(t){let e,n;return e="left"===t.content_alignment_horizontal?"0%":"right"===t.content_alignment_horizontal?"100%":"50%",n="top"===t.content_alignment_vertical?"0%":"bottom"===t.content_alignment_vertical?"100%":"50%",e+" "+n}function be(t){if(t.startsWith("tel:"))return"tel";const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function _e(t,e){return e.has(t)}function we(t,e){const n=Number(t);return Number.isNaN(n)||n<0?e:n}function xe(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function ke(t){return 0!==t.is_enabled&&!1!==t.is_enabled&&void 0!==t.index}function Ce(t,e){e&&t.push(e)}function Ee(t,e,n){const r=[];Ce(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Ce(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const Ae=Symbol("state");function je(t,e){var n,r;const o=t.top||0,i=(null!==(n="ltr"===e?t.end:t.start)&&void 0!==n?n:t.right)||0,a=t.bottom||0,s=(null!==(r="ltr"===e?t.start:t.end)&&void 0!==r?r:t.left)||0;return 0===o&&0===i&&0===a&&0===s?"":le(o)+" "+le(i)+" "+le(a)+" "+le(s)}function Ve(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!Number.isNaN(e)}function Fe(t){return Ve(t)&&t>=0}function De(t,e,n){var r,o;if(!t)return n;const i=[t.top,null!==(r="ltr"===e?t.end:t.start)&&void 0!==r?r:t.right,t.bottom,null!==(o="ltr"===e?t.start:t.end)&&void 0!==o?o:t.left];for(let t=0;t<i.length;++t)if(i[t]&&!Fe(i[t]))return n;return je(t,e)}const Se=Object.prototype.hasOwnProperty;function Pe(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!Se.call(e,o)||!Pe(t[o],e[o]))return!1}return!0}function Ne(t,e){return Pe(t,e)?e:t}function Oe(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Ie(t,e){const n=Number(t);return Number.isNaN(n)?e:n}function Te(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Te(t))})):e.push(t),e}function Me(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!Fe(t[n[r]]))return e;return t}function ze(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map((t=>le((t||e)/n*10))).join(" ")}function Re(t){return 0!==t.is_enabled&&!1!==t.is_enabled}let Be;function Le(){return"undefined"!=typeof matchMedia&&(Be||(Be=window.matchMedia("(prefers-reduced-motion)")),Be.matches)}function Ue(){}const We=Symbol("action");function He(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function qe(t){var e;let n,r,i,a,l,c,u,d;const p=t[18].default,f=h(p,t,t[17],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?ne.root__clickable:ne["root__clickable-no-transition"]," ").concat(ne.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ne["root_disabled-context-menu"]:"")},{style:t[2]},{role:i=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=o($,g[t]);return{c(){n=M("span"),f&&f.c(),q(n,$)},m(e,r){O(e,n,r),f&&f.m(n,null),t[26](n),c=!0,u||(d=[b(l=t[4].call(null,n)),U(n,"click",t[22]),U(n,"keydown",t[10]),U(n,"focus",t[23]),U(n,"blur",t[24])],u=!0)},p(t,e){var o;f&&f.p&&(!c||131072&e[0])&&v(f,p,t,t[17],c?m(p,t[17],e,null):y(t[17]),null),q(n,$=Lt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?ne.root__clickable:ne["root__clickable-no-transition"]," ").concat(ne.root__unselectable):"")+" "+(null!==(o=t[0])&&void 0!==o&&o.length?ne["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&i!==(i=t[8]?"button":null))&&{role:i},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(Nt(f,t),c=!0)},o(t){Ot(f,t),c=!1},d(e){e&&I(n),f&&f.d(e),t[26](null),u=!1,s(d)}}}function Je(t){var e;let n,r,i,a,l,c;const u=t[18].default,d=h(u,t,t[17],null);let p=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?ne.root__clickable:ne["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ne["root_disabled-context-menu"]:"")},t[3]],f={};for(let t=0;t<p.length;t+=1)f=o(f,p[t]);return{c(){n=M("a"),d&&d.c(),q(n,f)},m(e,r){O(e,n,r),d&&d.m(n,null),t[25](n),a=!0,l||(c=[b(i=t[4].call(null,n)),U(n,"click",t[19]),U(n,"keydown",t[10]),U(n,"focus",t[20]),U(n,"blur",t[21])],l=!0)},p(t,e){var o;d&&d.p&&(!a||131072&e[0])&&v(d,u,t,t[17],a?m(u,t[17],e,null):y(t[17]),null),q(n,f=Lt(p,[(!a||128&e[0])&&{href:t[7]},(!a||512&e[0])&&{target:t[9]},(!a||4&e[0])&&{style:t[2]},(!a||35&e[0]&&r!==(r=t[1]+" "+(t[5]?ne.root__clickable:ne["root__clickable-no-transition"])+" "+(null!==(o=t[0])&&void 0!==o&&o.length?ne["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Nt(d,t),a=!0)},o(t){Ot(d,t),a=!1},d(e){e&&I(n),d&&d.d(e),t[25](null),l=!1,s(c)}}}function Ge(t){let e,n,r,o;const i=[Je,qe],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=i[e](t),{c(){n.c(),r=L()},m(t,n){a[e].m(t,n),O(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?a[e].p(t,o):(St(),Ot(a[l],1,1,(()=>{a[l]=null})),Pt(),n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Nt(n,1),n.m(r.parentNode,r))},i(t){o||(Nt(n),o=!0)},o(t){Ot(n),o=!1},d(t){t&&I(r),a[e].d(t)}}}function Ke(t,e,n){let{$$slots:r={},$$scope:o}=e,{componentContext:i}=e,{id:a=""}=e,{actions:s}=e,{doubleTapActions:l}=e,{longTapActions:c}=e,{cls:u=""}=e,{style:d=null}=e,{attrs:p}=e,{use:f=Ue}=e,{customAction:h=null}=e,{isNativeActionAnimation:g=!0}=e,{hasInnerFocusable:m=!1}=e;const v=pt(re),y=pt(We);let $;dt(We,{hasAction:()=>Boolean(y.hasAction()||(null==s?void 0:s.length))});let b,_,w="",x=-1,k=null,C=!1,E=!1;async function A(t){y.hasAction()||void 0!==t.button&&0!==t.button||(x>0&&Date.now()>x+400||!1===(null==h?void 0:h(t))?t.preventDefault():s&&(s.some((t=>{if(null==t?void 0:t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=be(e);return n&&!_e(n,v.getBuiltinProtocols())}))&&t.preventDefault(),i.execAnyActions(s,{node:$})))}function j(t){y.hasAction()||void 0!==t.button&&0!==t.button||i.execAnyActions(l,{processUrls:!0,node:$})}function V(t){t.touches.length>1||(k=He(t),C=!1,x=Date.now(),clearTimeout(_))}function F(t){if(!k)return;const e=He(t);(Math.abs(k.x-e.x)>8||Math.abs(k.y-e.y)>8)&&(C=!0)}function D(t){!k||x<0||(!C&&Date.now()-x>=400&&(t.stopPropagation(),i.execAnyActions(c,{processUrls:!0,node:$})),clearTimeout(_),_=window.setTimeout((()=>{k=null,x=-1}),100))}return lt((()=>{a&&!m&&v.registerFocusable(a,{focus(){$&&(w||E)&&$.focus()}})})),ut((()=>{a&&!m&&v.unregisterFocusable(a),clearTimeout(_)})),t.$$set=t=>{"componentContext"in t&&n(11,i=t.componentContext),"id"in t&&n(12,a=t.id),"actions"in t&&n(13,s=t.actions),"doubleTapActions"in t&&n(14,l=t.doubleTapActions),"longTapActions"in t&&n(0,c=t.longTapActions),"cls"in t&&n(1,u=t.cls),"style"in t&&n(2,d=t.style),"attrs"in t&&n(3,p=t.attrs),"use"in t&&n(4,f=t.use),"customAction"in t&&n(15,h=t.customAction),"isNativeActionAnimation"in t&&n(5,g=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(16,m=t.hasInnerFocusable),"$$scope"in t&&n(17,o=t.$$scope)},t.$$.update=()=>{if(43136&t.$$.dirty[0]){if(Array.isArray(s)&&(null==s?void 0:s.length))for(let t=0;t<s.length;++t){const e=s[t].url;if(e){n(7,w=e),n(9,b=s[t].target||void 0);break}}Array.isArray(s)&&(null==s?void 0:s.length)&&y.hasAction()&&(n(7,w=""),i.logError(oe(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:s}}))),n(8,E=Boolean(h)),w&&!_e(be(w),v.getBuiltinProtocols())?(n(7,w=""),n(8,E=!0)):!w&&Array.isArray(s)&&(null==s?void 0:s.length)&&(n(8,E=!0),s.some((t=>t.url||t.typed||t.menu_items))||i.logError(oe(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:s}})))}16833&t.$$.dirty[0]&&$&&(w||E?$.addEventListener("click",A):$.removeEventListener("click",A),(null==l?void 0:l.length)?$.addEventListener("dblclick",j):$.removeEventListener("dblclick",j),(null==c?void 0:c.length)?($.addEventListener("touchstart",V,{passive:!0}),$.addEventListener("touchmove",F,{passive:!0}),$.addEventListener("touchend",D,{passive:!0}),$.addEventListener("touchcancel",D,{passive:!0})):($.removeEventListener("touchstart",V),$.removeEventListener("touchmove",F),$.removeEventListener("touchend",D),$.removeEventListener("touchcancel",D)))},[c,u,d,p,f,g,$,w,E,b,function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(s)&&s.length&&(i.execAnyActions(s),t.preventDefault())},i,a,s,l,h,m,o,r,function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(t){gt[t?"unshift":"push"]((()=>{$=t,n(6,$)}))},function(t){gt[t?"unshift":"push"]((()=>{$=t,n(6,$)}))}]}const Xe=class extends Zt{constructor(t){super(),Xt(this,t,Ke,Ge,d,{componentContext:11,id:12,actions:13,doubleTapActions:14,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:15,isNativeActionAnimation:5,hasInnerFocusable:16},null,[-1,-1])}},Ye={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function Ze(t){return Ve(t)&&t>0}function Qe(t,e){return t.map((t=>{if(t)if("blur"===t.type){if(Ze(t.radius))return"blur(".concat(ce(t.radius/2),")")}else{if("rtl_mirror"===t.type)return;e(oe(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}else e(oe(new Error("Incorrect filter"),{level:"warn"}))})).filter(Boolean).join(" ")}function tn(t,e,n){const r=t.slice();return r[6]=e[n],r}function en(t){let e,n,r;return{c(){e=M("span"),W(e,"class",n=Ye["outer-background__item"]),W(e,"style",r=se(t[6].style))},m(t,n){O(t,e,n)},p(t,n){2&n&&r!==(r=se(t[6].style))&&W(e,"style",r)},d(t){t&&I(e)}}}function nn(t){let e,n,r,o,i,a;return{c(){e=M("img"),u(e.src,n=t[6].image_url)||W(e,"src",n),W(e,"alt",""),W(e,"aria-hidden","true"),W(e,"loading","lazy"),W(e,"decoding","async"),W(e,"class",r=Ye["outer-background__item"]),W(e,"style",o=se(t[6].style))},m(n,r){O(n,e,r),i||(a=U(e,"error",t[2]),i=!0)},p(t,r){2&r&&!u(e.src,n=t[6].image_url)&&W(e,"src",n),2&r&&o!==(o=se(t[6].style))&&W(e,"style",o)},d(t){t&&I(e),i=!1,a()}}}function rn(t){let e;function n(t,e){return t[6].image_url?nn:en}let r=n(t),o=r(t);return{c(){o.c(),e=L()},m(t,n){o.m(t,n),O(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&I(e),o.d(t)}}}function on(t){let e,r,o=zt(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=rn(tn(t,o,e));return{c(){e=M("span");for(let t=0;t<i.length;t+=1)i[t].c();W(e,"class",r=Ye["outer-background"]+(t[0]?" "+Ye["outer-background_clip"]:"")),Y(e,"border-radius",t[0])},m(t,n){O(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(o=zt(t[1]),n=0;n<o.length;n+=1){const r=tn(t,o,n);i[n]?i[n].p(r,a):(i[n]=rn(r),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=o.length}1&a&&r!==(r=Ye["outer-background"]+(t[0]?" "+Ye["outer-background_clip"]:""))&&W(e,"class",r),1&a&&Y(e,"border-radius",t[0])},i:n,o:n,d(t){t&&I(e),T(i,t)}}}function an(t,e,n){let r,{direction:o}=e,{componentContext:i}=e,{background:a=[]}=e,{radius:s=""}=e;return t.$$set=t=>{"direction"in t&&n(3,o=t.direction),"componentContext"in t&&n(4,i=t.componentContext),"background"in t&&n(5,a=t.background),"radius"in t&&n(0,s=t.radius)},t.$$.update=()=>{56&t.$$.dirty&&n(1,r=a.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=ge([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=Qe(t.filters,i.logError),"rtl"===o&&t.filters.some((t=>"rtl_mirror"===t.type))&&(e.transform="scale(-1,1)")))}return n})))},[s,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Ye["outer-background__item_hidden"])},o,i,a]}const sn=class extends Zt{constructor(t){super(),Xt(this,t,an,on,d,{direction:3,componentContext:4,background:5,radius:0})}},ln=t=>({hasCustomFocus:256&t[0]}),cn=t=>({focusHandler:t[39],blurHandler:t[40],hasCustomFocus:t[8]});function un(t){let e,n;return e=new Xe({props:{componentContext:t[0],id:t[0].json.id,use:t[38],cls:t[1]+" "+Ee("outer",ae,t[18]),style:se(t[17]),actions:t[14],doubleTapActions:t[15],longTapActions:t[16],attrs:t[10],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||yn(t[7]),$$slots:{default:[fn]},$$scope:{ctx:t}}}),e.$on("focus",t[39]),e.$on("blur",t[40]),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),1&n[0]&&(r.id=t[0].json.id),262146&n[0]&&(r.cls=t[1]+" "+Ee("outer",ae,t[18])),131072&n[0]&&(r.style=se(t[17])),16384&n[0]&&(r.actions=t[14]),32768&n[0]&&(r.doubleTapActions=t[15]),65536&n[0]&&(r.longTapActions=t[16]),1024&n[0]&&(r.attrs=t[10]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||yn(t[7])),2937&n[0]|134217728&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function dn(t){let e,n;return e=new sn({props:{componentContext:t[0],direction:t[9],background:t[5],radius:t[4]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),512&n[0]&&(r.direction=t[9]),32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function pn(t){let e,n,r;return{c(){e=M("span"),W(e,"class",n=ae.outer__border),W(e,"style",r=se(t[3]))},m(t,n){O(t,e,n)},p(t,n){8&n[0]&&r!==(r=se(t[3]))&&W(e,"style",r)},d(t){t&&I(e)}}}function fn(t){let e,n,r,o=t[6]&&dn(t);const i=t[119].default,a=h(i,t,t[120],cn);let s=t[11]&&pn(t);return{c(){o&&o.c(),e=L(),a&&a.c(),s&&s.c(),n=L()},m(t,i){o&&o.m(t,i),O(t,e,i),a&&a.m(t,i),s&&s.m(t,i),O(t,n,i),r=!0},p(t,l){t[6]?o?(o.p(t,l),64&l[0]&&Nt(o,1)):(o=dn(t),o.c(),Nt(o,1),o.m(e.parentNode,e)):o&&(St(),Ot(o,1,1,(()=>{o=null})),Pt()),a&&a.p&&(!r||256&l[0]|134217728&l[3])&&v(a,i,t,t[120],r?m(i,t[120],l,ln):y(t[120]),cn),t[11]?s?s.p(t,l):(s=pn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Nt(o),Nt(a,t),r=!0)},o(t){Ot(o),Ot(a,t),r=!1},d(t){t&&(I(e),I(n)),o&&o.d(t),a&&a.d(t),s&&s.d(t)}}}function hn(t){let e,n,r=!t[12]&&!t[13]&&un(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[12]||t[13]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),12288&n[0]&&Nt(r,1)):(r=un(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const gn={left:"start",center:"center",right:"end",start:"start",end:"end"},mn={left:"end",center:"center",right:"start",start:"start",end:"end"},vn={top:"start",center:"center",bottom:"end",baseline:"baseline"};function yn(t){return t.some((t=>"native"===t.name))}function $n(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,T,M,z,R,B,L,U,W,H,q,J,G,K,X,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n,at=n,st=n,lt=n,dt=n,ft=n,ht=n,gt=n,mt=n,vt=n;t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt()));let{$$slots:yt={},$$scope:$t}=e,{componentContext:bt}=e,{cls:wt=""}=e,{style:xt}=e,{layoutParams:kt={}}=e,{customDescription:Ct=!1}=e,{customPaddings:Et=!1}=e,{customActions:At=""}=e,{additionalPaddings:jt=null}=e,{heightByAspect:Vt=!1}=e,{parentOf:Ft}=e,{parentOfSimpleMode:Dt}=e,{replaceItems:St}=e,{hasInnerFocusable:Pt=!1}=e;const Nt=pt(re),Ot=pt(Ae),It=Nt.direction;let Tt,Mt;f(t,It,(t=>r(9,J=t)));let zt,Rt,Bt,Lt,Ut,Wt,Ht,qt,Jt,Gt,Kt,Xt,Yt,Zt,Qt,te,ne,ie,ae,se,ue,pe=null,fe=[],me={},ve={},ye=!1,$e=1,Ce="transparent",Ee=0,Ve={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Se="",Be=null,Ue="",We={},He=0,qe=0,Je=0,Ge=!1,Ke=!1,Xe={},Ye=0,Ze=0,Qe=0,tn=!1,en=!1,nn=1,rn=[],on=!1,an=!1,sn=[],ln=[],cn=[],un=[],dn=[],pn=[],fn="",hn=!1,yn="visible",$n=0,bn=0,_n=!1,wn=null;function xn(t,e){if(!Array.isArray(Ft)||!St)return;if(Dt&&1!==(Array.isArray(e)&&e.length||0))return;const n=Ft.findIndex((e=>(null==e?void 0:e.id)===t)),o=Ft.slice();o.splice(n,1,...e||[]),r(41,Ft=o),St(o)}function kn(t){const e=Ie(t.start_value,1),n=Ie(t.end_value,1),o=we(t.start_delay,0),i=Le()?0:we(t.duration,300),a=Oe(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(84,Zt=e),r(85,Qt=n),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return r(86,te=e),r(87,ne=n),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return bt.logError(oe(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function Cn(){if(pe&&Tt){const t=Nt.getExtensionContext();pe.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,Tt,t)})),pe=null}}function En(t){var e;null==ue||ue.destroy(),r(51,Tt=t),on&&bt.json.transition_in&&Ot.registerChildWithTransitionIn(bt.json,bt,bt.json.transition_in,t).then((()=>{r(80,Kt=!1)})).catch((t=>{throw r(80,Kt=!1),t})),on&&bt.json.transition_out&&Ot.registerChildWithTransitionOut(bt.json,bt,bt.json.transition_out,t),on&&bt.json.transition_change&&Ot.registerChildWithTransitionChange(bt.json,bt,bt.json.transition_change,t).then((()=>{r(82,Yt=!1)})).catch((t=>{throw r(82,Yt=!1),t}));const n=bt.fakeElement?[]:bt.json.visibility_actions||bt.json.visibility_action&&[bt.json.visibility_action],o=bt.fakeElement?[]:bt.json.disappear_actions;let i;(Array.isArray(n)&&n.length||Array.isArray(o)&&o.length)&&(i=function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:o,componentContext:i}=e;const a=[];n&&n.forEach((t=>{a.push({type:"visibility",index:a.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{a.push({type:"disappear",index:a.length,action:t,visible:!1,count:0,finished:!1})}));const s=a.map(((t,e)=>{const n="visibility"===t.type;return i.getDerivedFromVars({index:e,visibility_percentage:t.action.visibility_percentage,visibility_duration:n?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit,is_enabled:t.action.is_enabled})}));let l;const c=()=>{l&&l.disconnect(),a.forEach((t=>{t.timer&&clearTimeout(t.timer)}))},u=ee(s,(t=>t));let d;const p=t=>{const e="visibility"===t.type,n=i.getJsonWithVars(t.action),r=n.url,a=n.typed;if(r){const t=be(r);t&&!_e(t,o.getBuiltinProtocols())&&("div-action"===t?o.execAction(n):n.log_id&&o.execCustomAction(n))}else a&&o.execAction(n);o.logStat(e?"visible":"disappear",n)},f=u.subscribe((e=>{d=e.filter(ke);const n={};d.forEach((t=>{n[t.index]=t})),c();const r=[...new Set(d.map((t=>{const e="visibility"===a[t.index].type;return xe(e,t.visibility_percentage,e?50:0)/100})))];r.length&&(l=new IntersectionObserver((t=>{t.forEach((t=>{d.forEach((e=>{const n=a[e.index],r="visibility"===n.type,o=xe(r,e.visibility_percentage,r?50:0);let i;i=0===o?t.intersectionRatio>=1e-12:t.intersectionRatio>=o/100;const s=r?!i:i;(r?!n.visible&&i:n.visible&&!i)?n.finished||(n.timer=setTimeout((()=>{++n.count;const t=0===e.log_limit?1/0:e.log_limit||1;++n.count>=t&&(n.finished=!0),p(n)}),we(e.visibility_duration,800))):s&&n.timer&&clearTimeout(n.timer),n.visible=i}))}))}),{threshold:r}),l.observe(t))}));return{destroy(){var t;null===(t=d)||void 0===t||t.forEach((t=>{const e=a[t.index];e&&"disappear"===e.type&&e.visible&&!e.finished&&o.registerTimeout(window.setTimeout((()=>{p(e)}),t.visibility_duration))})),c(),f()}}}(t,{visibilityActions:n,disappearActions:o,rootCtx:Nt,componentContext:bt}));const a=bt.json.id;return a&&Ot.registerChild(a),null===(e=bt.json.tooltips)||void 0===e||e.forEach((e=>{Nt.registerTooltip(t,e)})),ue={destroy(){a&&Ot.unregisterChild(a),i&&i.destroy(),wn&&wn.destroy()}},ue}return ct((function(){wn&&wn.update(bt)})),ut((()=>{var t;fe.forEach((t=>{Nt.unregisterParentOf(t)})),r(52,fe=[]),null===(t=bt.json.tooltips)||void 0===t||t.forEach((t=>{Nt.unregisterTooltip(t)})),Cn()})),t.$$set=t=>{"componentContext"in t&&r(0,bt=t.componentContext),"cls"in t&&r(1,wt=t.cls),"style"in t&&r(42,xt=t.style),"layoutParams"in t&&r(43,kt=t.layoutParams),"customDescription"in t&&r(44,Ct=t.customDescription),"customPaddings"in t&&r(45,Et=t.customPaddings),"customActions"in t&&r(46,At=t.customActions),"additionalPaddings"in t&&r(47,jt=t.additionalPaddings),"heightByAspect"in t&&r(48,Vt=t.heightByAspect),"parentOf"in t&&r(41,Ft=t.parentOf),"parentOfSimpleMode"in t&&r(49,Dt=t.parentOfSimpleMode),"replaceItems"in t&&r(50,St=t.replaceItems),"hasInnerFocusable"in t&&r(2,Pt=t.hasInnerFocusable),"$$scope"in t&&r(120,$t=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(100,o=bt.origJson),128&t.$$.dirty[3]&&o&&(r(58,Be=null),r(59,Ue=""),r(76,nn=1),r(88,hn=!1),r(89,yn="visible"),r(90,$n=0),r(91,bn=0),r(92,ie=void 0),r(93,ae=void 0),rn=bt.fakeElement?[]:bt.json.transition_triggers||["state_change","visibility_change"],r(79,on=Boolean(-1!==rn.indexOf("state_change")&&bt.json.id)),an=Boolean(-1!==rn.indexOf("visibility_change")&&bt.json.id),Tt&&En(Tt)),1&t.$$.dirty[0]&&(r(36,i=bt.getDerivedFromVars(bt.json.focus)),tt(),tt=p(i,(t=>r(104,O=t)))),1&t.$$.dirty[0]&&(r(35,a=bt.getDerivedFromVars(bt.json.border)),vt(),vt=p(a,(t=>r(118,X=t)))),1&t.$$.dirty[0]&&(r(34,s=bt.getDerivedFromVars(bt.json.paddings)),mt(),mt=p(s,(t=>r(117,K=t)))),1&t.$$.dirty[0]&&(r(33,l=bt.getDerivedFromVars(bt.json.margins)),ht(),ht=p(l,(t=>r(115,q=t)))),1&t.$$.dirty[0]&&(r(32,c=bt.getDerivedFromVars(bt.json.width)),dt(),dt=p(c,(t=>r(113,W=t)))),1&t.$$.dirty[0]&&(r(31,u=bt.getDerivedFromVars(bt.json.alignment_horizontal)),gt(),gt=p(u,(t=>r(116,G=t)))),1&t.$$.dirty[0]&&(r(30,d=bt.getDerivedFromVars(bt.json.height)),lt(),lt=p(d,(t=>r(112,U=t)))),1&t.$$.dirty[0]&&(r(29,h=bt.getDerivedFromVars(bt.json.alignment_vertical)),ft(),ft=p(h,(t=>r(114,H=t)))),1&t.$$.dirty[0]&&(r(28,g=bt.getDerivedFromVars(bt.json.alpha)),st(),st=p(g,(t=>r(111,L=t)))),1&t.$$.dirty[0]&&(r(27,m=bt.getDerivedFromVars(bt.json.accessibility)),at(),at=p(m,(t=>r(110,B=t)))),1&t.$$.dirty[0]&&(r(26,v=bt.getDerivedFromVars(bt.json.background)),it(),it=p(v,(t=>r(109,R=t)))),1&t.$$.dirty[0]&&(r(25,y=bt.getDerivedFromVars(bt.json.action)),rt(),rt=p(y,(t=>r(107,M=t)))),1&t.$$.dirty[0]&&(r(24,$=bt.getDerivedFromVars(bt.json.actions)),ot(),ot=p($,(t=>r(108,z=t)))),1&t.$$.dirty[0]&&(r(23,b=bt.getDerivedFromVars(bt.json.doubletap_actions)),nt(),nt=p(b,(t=>r(106,T=t)))),1&t.$$.dirty[0]&&(r(22,_=bt.getDerivedFromVars(bt.json.longtap_actions)),et(),et=p(_,(t=>r(105,I=t)))),1&t.$$.dirty[0]&&(r(21,w=bt.getDerivedFromVars(bt.json.action_animation)),Q(),Q=p(w,(t=>r(103,N=t)))),1&t.$$.dirty[0]&&(r(20,x=bt.getDerivedFromVars(bt.json.visibility)),Z(),Z=p(x,(t=>r(102,P=t)))),1&t.$$.dirty[0]&&(r(19,k=bt.getDerivedFromVars(bt.json.transform)),Y(),Y=p(k,(t=>r(101,S=t)))),2360320&t.$$.dirty[1]&&(fe.forEach((t=>{Nt.unregisterParentOf(t)})),r(52,fe=[]),Ft&&Ft.forEach((t=>{(null==t?void 0:t.id)&&(fe.push(t.id),Nt.registerParentOf(t.id,{replaceWith:xn,isSingleMode:Boolean(Dt)}))}))),264&t.$$.dirty[0]|130023424&t.$$.dirty[1]|33556480&t.$$.dirty[3]){const t=_n&&(null==O?void 0:O.border)?O.border:X;let e={},n={},o=!1,i="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,o,i,a;return le((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+le((null===(r=t.offset)||void 0===r||null===(o=r.y)||void 0===o?void 0:o.value)||0)+" "+le(null!==(i=t.blur)&&void 0!==i?i:2)+" "+de(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(n):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(o=!0,r(54,$e=we(t.stroke.width,$e)),r(55,Ce=de(t.stroke.color,1,Ce)),n["--divkit-border"]="".concat(le($e+1)," solid ").concat(Ce)),t.corners_radius?(r(57,Ve=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!Fe(n[t]))return e;return t}(t.corners_radius,Ve)),e["border-radius"]=ze(Ve),["top-left","top-right","bottom-right","bottom-left"].forEach((t=>{r(57,Ve[t]=(Ve[t]||0)+1,Ve)})),n["--divkit-border-radius"]=ze(Ve)):t.corner_radius&&(r(56,Ee=we(t.corner_radius,Ee)),r(57,Ve={"top-left":Ee,"top-right":Ee,"bottom-right":Ee,"bottom-left":Ee}),e["border-radius"]=le(Ee),n["--divkit-border-radius"]=le(Ee+1)),o&&$e&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},Ve);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+$e/2})),i=ze(t)}}r(53,me=Ne(e,me)),r(3,ve=Ne(n,ve)),r(11,ye=o),r(4,Se=i)}if(134234112&t.$$.dirty[1]|16777216&t.$$.dirty[3]&&r(58,Be=Me(K&&!Et?K:void 0,Be)),512&t.$$.dirty[0]|134283264&t.$$.dirty[1]&&r(96,C=je(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left","start","end"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}(Be,jt),J)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]|4194304&t.$$.dirty[3]&&r(59,Ue=De(q,J,Ue)),513&t.$$.dirty[0]|536875008&t.$$.dirty[1]|4&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null==W?void 0:W.type;if("fixed"===u)r(64,He=we(null==W?void 0:W.value,He)),e=le(He);else if("wrap_content"===u||("match_parent"===u||!u)&&kt.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==W?void 0:W.constrained)||("match_parent"===u||!u)&&kt.parentHorizontalWrapContent)&&(i["width-constrained"]=!0,"horizontal"===kt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=W;t.min_size&&Fe(t.min_size.value)&&(n=le(t.min_size.value)),t.max_size&&Fe(t.max_size.value)&&(o=le(t.max_size.value))}"match_parent"!==u&&u||bt.logError(oe(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,bt.logError(oe(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===kt.parentLayoutOrientation?e="calc(100% - ".concat(ce(((null==q?void 0:q.left)||0)+((null==q?void 0:q.right)||0)),")"):"horizontal"===kt.parentContainerOrientation&&(a=W&&"weight"in W&&W.weight||1,kt.parentContainerWrap&&(l=!0));if("parent"===t)i["halign-self"]="stretch";else{const t=G;i["halign-self"]="left"===t||"center"===t||"right"===t||"start"===t||"end"===t?("ltr"===J?gn:mn)[t]:kt.parentHAlign||"start"}t&&(i.width=t),r(61,zt=e),r(62,Rt=n),r(63,Bt=o),r(65,qe=a),r(66,Je=s),r(60,We=Ne(i,We)),r(67,Ge=l),r(12,Ke=c)}if(1&t.$$.dirty[0]|135168&t.$$.dirty[1]|1088&t.$$.dirty[2]|6815744&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null==U?void 0:U.type;if(Vt);else if("fixed"===u)r(72,Ye=we(null==U?void 0:U.value,Ye)),e=le(Ye);else if("match_parent"!==u||kt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||"match_parent"===u&&kt.parentVerticalWrapContent)&&(i["height-constrained"]=!0,"vertical"===kt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=U;(null==t?void 0:t.min_size)&&Fe(t.min_size.value)&&(n=le(t.min_size.value)),(null==t?void 0:t.max_size)&&Fe(t.max_size.value)&&(o=le(t.max_size.value))}"match_parent"===u&&bt.logError(oe(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,bt.logError(oe(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===kt.parentLayoutOrientation?e="calc(100% - ".concat(ce(((null==q?void 0:q.top)||0)+((null==q?void 0:q.bottom)||0)),")"):"vertical"===kt.parentContainerOrientation&&(a=(null==U?void 0:U.weight)||1,kt.parentContainerWrap&&(l=!0));if("parent"===t)i["valign-self"]="stretch";else{const t=H;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===kt.parentContainerOrientation?i["valign-self"]=vn[t]:i["valign-self"]=kt.parentVAlign||"start"}t&&(i.height=t),r(69,Lt=e),r(70,Ut=n),r(71,Wt=o),r(73,Ze=a),r(74,Qe=s),r(68,Xe=Ne(i,Xe)),r(75,tn=l),r(13,en=c)}var e,n;if(4096&t.$$.dirty[1]&&r(99,E=!!kt.overlapParent||void 0),4096&t.$$.dirty[1]|1572864&t.$$.dirty[3]&&r(98,A=kt.overlapParent&&(!W||"match_parent"===W.type)&&!kt.parentHorizontalWrapContent&&"match_parent"===(null==U?void 0:U.type)&&!kt.parentVerticalWrapContent),4096&t.$$.dirty[1]&&r(97,j=kt.gridArea?"".concat(kt.gridArea.y+1,"/").concat(kt.gridArea.x+1,"/span ").concat(kt.gridArea.rowSpan,"/span ").concat(kt.gridArea.colSpan):void 0),16384&t.$$.dirty[2]|262144&t.$$.dirty[3]&&(r(76,(n=nn,nn=!Fe(e=L)||void 0===e||e>1?n:Number(e))),r(77,Ht=1===nn?void 0:nn)),8192&t.$$.dirty[1]|131072&t.$$.dirty[3]&&(r(10,Mt=void 0),B&&!Ct&&B.description&&(r(10,Mt={}),r(10,Mt["aria-label"]=B.description,Mt))),368&t.$$.dirty[0]|67584&t.$$.dirty[3]&&(r(5,qt=_n&&(null==O?void 0:O.background)?O.background:R),r(78,Jt={}),r(6,Gt=!1),Array.isArray(qt)&&(r(6,Gt=qt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(Se)),!Gt))){const t=ge(qt);r(78,Jt["background-color"]=t.color,Jt),r(78,Jt["background-image"]=t.image,Jt),r(78,Jt["background-size"]=t.size,Jt),r(78,Jt["background-position"]=t.position,Jt),r(78,Jt["background-repeat"]="no-repeat",Jt)}if(1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(80,Kt=void 0),on&&bt.json.transition_in&&Nt.isRunning("stateChange")&&r(80,Kt=!0)),1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(82,Yt=void 0),on&&bt.json.transition_change&&Nt.isRunning("stateChange")&&Ot.hasTransitionChange(bt.json.id)&&r(82,Yt=!0)),1&t.$$.dirty[0]|32768&t.$$.dirty[1]|63488&t.$$.dirty[3]){let t=z||M&&[M]||[],e=T||[],n=I||[],o=(null==O?void 0:O.on_focus)||[],i=(null==O?void 0:O.on_blur)||[];bt.fakeElement?(t=[],e=[],n=[],o=[],i=[]):(Array.isArray(t)||(t=[],bt.logError(oe(new Error("Actions should be array")))),Array.isArray(e)||(e=[],bt.logError(oe(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],bt.logError(oe(new Error("LongTapActions should be array")))),Array.isArray(o)||(o=[],bt.logError(oe(new Error("FocusActions should be array")))),Array.isArray(i)||(i=[],bt.logError(oe(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&At&&(t=[],e=[],n=[],bt.logError(oe(new Error('Cannot use action on component "'.concat(At,'"'))))),r(14,sn=t.filter(Re)),r(15,ln=e.filter(Re)),r(16,cn=n.filter(Re)),un=o.filter(Re),dn=i.filter(Re)}if(128&t.$$.dirty[0]|1024&t.$$.dirty[3]&&N&&(r(7,pn=Te(N)),r(83,fn=pn.map(kn).filter(Boolean).join(", "))),201326592&t.$$.dirty[2]|512&t.$$.dirty[3]){const t=yn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(P,yn);t!==e&&(!hn||"visible"!==yn&&"visible"!==e?r(89,yn=e):async function(t){r(89,yn=t);const e="visible"===t?"in":"out",n="in"===e?bt.json.transition_in:bt.json.transition_out;an&&n&&(await _t(),"in"===e&&r(81,Xt=!0),Ot.runVisibilityTransition(Object.assign(Object.assign({},bt.json),{visibility:"visible"}),bt,n,Tt,e).then((()=>{"in"===e&&r(81,Xt=!1)})).catch((t=>{throw"in"===e&&r(81,Xt=!1),t})))}(e)),hn||r(88,hn=!0)}if(1&t.$$.dirty[0]|1048576&t.$$.dirty[1]|2&t.$$.dirty[3]&&bt.json&&Tt&&!Pe(bt.json.extensions,se)){let t=r(94,se=bt.json.extensions);_t().then((()=>{if(t===se&&Tt&&(Cn(),Array.isArray(bt.json.extensions))){const t=Nt.getExtensionContext();pe=bt.json.extensions.map((e=>{var n;const r=e.id;if(!r)return;const o=Nt.getExtension(r,e.params);return o&&(null===(n=o.mountView)||void 0===n||n.call(o,Tt,t)),o})).filter(he)}}))}if(257&t.$$.dirty[0]|536875008&t.$$.dirty[1]|138149952&t.$$.dirty[2]|96&t.$$.dirty[3]&&r(18,V=Object.assign(Object.assign(Object.assign({},We),Xe),{"parent-overlap":E,"parent-overlap-absolute":A,"scroll-snap":kt.scrollSnap,"hide-on-transition-in":Kt||Xt||Yt,visibility:yn,"has-action-animation":Boolean(fn),"parent-flex":kt.parentContainerOrientation||void 0,"parent-grid":Boolean(kt.gridArea)||void 0,"has-custom-focus":Boolean(_n&&bt.json.focus)})),805306368&t.$$.dirty[2]|256&t.$$.dirty[3]&&S&&void 0!==S.rotation){const t=S.pivot_x||{type:"pivot-percentage",value:50};r(90,$n=Ie(t.value,$n));const e="pivot-fixed"===t.type?le($n):"".concat($n,"%"),n=S.pivot_y||{type:"pivot-percentage",value:50};r(91,bn=Ie(n.value,bn));const o="pivot-fixed"===n.type?le(bn):"".concat(bn,"%");r(92,ie="".concat(e," ").concat(o)),r(93,ae="rotate(".concat(S.rotation,"deg)"))}10280&t.$$.dirty[2]&&r(95,F=Ge||tn?"100%":qe||Ze?0:void 0),1346373632&t.$$.dirty[1]|1138858907&t.$$.dirty[2]|29&t.$$.dirty[3]&&r(17,D=Object.assign(Object.assign(Object.assign(Object.assign({},xt),Jt),me),{width:zt,"min-width":Rt,"max-width":Bt,height:Lt,"min-height":Ut,"max-height":Wt||(null==xt?void 0:xt["max-height"]),"grid-area":j,padding:C,margin:Ue,opacity:Ht,transition:fn,"transform-origin":ie,transform:ae,"flex-grow":qe||Ze||void 0,"flex-shrink":Je||Qe?1:void 0,"flex-basis":F,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ne}))},[bt,wt,Pt,ve,Se,qt,Gt,pn,_n,J,Mt,ye,Ke,en,sn,ln,cn,D,V,k,x,w,_,b,$,y,v,m,g,h,d,u,c,l,s,a,i,It,En,function(){bt.json.focus&&(function(t){let e;return p(t,(t=>e=t))(),e}(Nt.isPointerFocus)||r(8,_n=!0),bt.execAnyActions(un))},function(){bt.json.focus&&(r(8,_n=!1),bt.execAnyActions(dn))},Ft,xt,kt,Ct,Et,At,jt,Vt,Dt,St,Tt,fe,me,$e,Ce,Ee,Ve,Be,Ue,We,zt,Rt,Bt,He,qe,Je,Ge,Xe,Lt,Ut,Wt,Ye,Ze,Qe,tn,nn,Ht,Jt,on,Kt,Xt,Yt,fn,Zt,Qt,te,ne,hn,yn,$n,bn,ie,ae,se,F,C,j,A,E,o,S,P,N,O,I,T,M,z,R,B,L,U,W,H,q,G,K,X,yt,$t]}const bn=class extends Zt{constructor(t){super(),Xt(this,t,$n,hn,d,{componentContext:0,cls:1,style:42,layoutParams:43,customDescription:44,customPaddings:45,customActions:46,additionalPaddings:47,heightByAspect:48,parentOf:41,parentOfSimpleMode:49,replaceItems:50,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},_n={"text-range":"divkit-faf07","text-range_singleline":"divkit-ccb64","text-range__top-offset":"divkit-d9237","text-range_decoration_both":"divkit-d7e07","text-range_decoration_underline":"divkit-f3dde","text-range_decoration_strike":"divkit-d27b7","text-range_decoration_none":"divkit-c6b0f"};function wn(t,e){const n=Number(t);return Number.isNaN(n)||n<=0?e:n}function xn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function kn(t,e){return xn(t)||e}function Cn(t){let e,n;return{c(){e=M("span"),W(e,"class",n=_n["text-range__top-offset"]),Y(e,"margin-top",t[5])},m(t,n){O(t,e,n)},p(t,n){32&n&&Y(e,"margin-top",t[5])},d(t){t&&I(e)}}}function En(t){let e;return{c(){e=R(t[1])},m(t,n){O(t,e,n)},p(t,n){2&n&&K(e,t[1])},d(t){t&&I(e)}}}function An(t){let e,n,r,o=t[5]&&Cn(t);return n=new Xe({props:{componentContext:t[0],cls:Ee("text-range",_n,t[4]),actions:t[2],style:se(t[3]),$$slots:{default:[En]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=L(),Jt(n.$$.fragment)},m(t,i){o&&o.m(t,i),O(t,e,i),Gt(n,t,i),r=!0},p(t,r){let[i]=r;t[5]?o?o.p(t,i):(o=Cn(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};1&i&&(a.componentContext=t[0]),16&i&&(a.cls=Ee("text-range",_n,t[4])),4&i&&(a.actions=t[2]),8&i&&(a.style=se(t[3])),8388610&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Nt(n.$$.fragment,t),r=!0)},o(t){Ot(n.$$.fragment,t),r=!1},d(t){t&&I(e),o&&o.d(t),Kt(n,t)}}}function jn(t,e,n){let r,o,i,a,s,l;var c,u;let{componentContext:d}=e,{text:p}=e,{rootFontSize:f}=e,{textStyles:h={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=pt(re);let y,$="none",b=12,_=1.25,w="",x="",k="",C=null;return t.$$set=t=>{"componentContext"in t&&n(0,d=t.componentContext),"text"in t&&n(1,p=t.text),"rootFontSize"in t&&n(6,f=t.rootFontSize),"textStyles"in t&&n(7,h=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(2,m=t.actions)},t.$$.update=()=>{if(1&t.$$.dirty&&d.json&&(n(11,$="none"),n(12,b=12),n(13,_=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,k=""),n(18,C=null)),128&t.$$.dirty){let t="none";(h.underline||h.strike)&&("single"===h.underline&&"single"===h.strike?t="both":"single"===h.underline?t="underline":"single"===h.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,b=wn(h.font_size,b)),4224&t.$$.dirty&&Ze(h.line_height)&&n(13,_=Number(h.line_height)/b),128&t.$$.dirty&&Fe(h.letter_spacing)&&n(14,w=le(h.letter_spacing)),32896&t.$$.dirty&&(n(15,y=kn(h.font_weight,y)),"string"==typeof h.font_family&&h.font_family?n(16,x=v.typefaceProvider(h.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,k=de(h.text_color,1,k)),128&t.$$.dirty&&n(5,r=h.top_offset?le(h.top_offset):""),128&t.$$.dirty&&n(20,o=h.background?ge([h.background]):null),640&t.$$.dirty&&((null===n(9,c=h.border)||void 0===c?void 0:c.stroke)&&h.border.stroke.color&&"transparent"!==de(h.border.stroke.color)&&Ze(h.border.stroke.width)?n(18,C={color:h.border.stroke.color,width:h.border.stroke.width}):n(18,C=null)),1152&t.$$.dirty&&n(19,i=wn(null===n(10,u=h.border)||void 0===u?void 0:u.corner_radius,0)),4224&t.$$.dirty&&n(21,a=h.text_shadow?function(t,e){var n,r,o,i,a,s;return"drop-shadow("+de(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+le(10*((null===(r=t.offset)||void 0===r||null===(o=r.x)||void 0===o?void 0:o.value)||0)/e)+" "+le(10*((null===(i=t.offset)||void 0===i||null===(a=i.y)||void 0===a?void 0:a.value)||0)/e)+" "+le(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(h.text_shadow,b):void 0),2304&t.$$.dirty&&n(4,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(3,l={"font-size":le(10*b/f),"line-height":_,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:k,background:(null==o?void 0:o.color)||void 0,"box-shadow":C?"inset 0 0 0 ".concat(le(C.width)," ").concat(C.color):void 0,"border-radius":i?le(i):void 0})},[d,p,m,l,s,r,f,h,g,c,u,$,b,_,w,y,x,k,C,i,o,a]}const Vn=class extends Zt{constructor(t){super(),Xt(this,t,jn,An,d,{componentContext:0,text:1,rootFontSize:6,textStyles:7,singleline:8,actions:2})}};function Fn(t,e,n){return"left"===t||"center"===t||"right"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}function Dn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?"top"===t?"start":"bottom"===t?"end":t:e}function Sn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function Pn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}function Nn(t,e){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,o),n=null}),e)}}function On(t,e){let n=null;const r=()=>{const n=getComputedStyle(t),r=parseFloat(n.lineHeight);t.style.webkitLineClamp="",t.style.maxHeight="";const o=t.offsetHeight;if(t.scrollHeight<=o+1e-9)return;let i=Math.max(1,Math.floor(o/r));e.maxLines&&e.maxLines<i&&(i=e.maxLines),t.style.webkitLineClamp=String(i),t.style.maxHeight=r*i+"px"},o=Nn(r,50),i=()=>{n&&(n.disconnect(),n=null)},a=()=>{if(i(),e.enabled){if(r(),"undefined"!=typeof ResizeObserver){n=new ResizeObserver(o);const e=t.parentElement;e&&n.observe(e)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return a(),{update(t){e=t,a()},destroy(){i()}}}const{Boolean:In}=j;function Tn(t,e,n){const r=t.slice();return r[60]=e[n],r}function Mn(t){let e,n;return e=new Vn({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[7],singleline:t[6]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),4&n[0]&&(r.text=t[2]),8&n[0]&&(r.rootFontSize=t[3]),128&n[0]&&(r.textStyles=t[7]),64&n[0]&&(r.singleline=t[6]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function zn(t){let e,n,r=zt(t[11]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Un(Tn(t,r,e));const i=t=>Ot(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=L()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);O(t,e,r),n=!0},p(t,n){if(2633&n[0]|1&n[1]){let a;for(r=zt(t[11]),a=0;a<r.length;a+=1){const i=Tn(t,r,a);o[a]?(o[a].p(i,n),Nt(o[a],1)):(o[a]=Un(i),o[a].c(),Nt(o[a],1),o[a].m(e.parentNode,e))}for(St(),a=r.length;a<o.length;a+=1)i(a);Pt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Nt(o[t]);n=!0}},o(t){o=o.filter(In);for(let t=0;t<o.length;t+=1)Ot(o[t]);n=!1},d(t){t&&I(e),T(o,t)}}}function Rn(t){let e,r,o,i,a,s,l,c,d;return{c(){e=M("span"),r=M("img"),W(r,"class",o=ie.text__image),u(r.src,i=t[60].image.url)||W(r,"src",i),W(r,"loading",a=t[60].image.preloadRequired?"eager":"lazy"),W(r,"decoding","async"),W(r,"aria-hidden","true"),W(r,"alt",""),W(r,"style",s=se({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0})),W(e,"style",l=se(t[60].image.wrapperStyle))},m(n,o){O(n,e,o),S(e,r),c||(d=U(r,"error",t[31]),c=!0)},p(t,n){2048&n[0]&&!u(r.src,i=t[60].image.url)&&W(r,"src",i),2048&n[0]&&a!==(a=t[60].image.preloadRequired?"eager":"lazy")&&W(r,"loading",a),2560&n[0]&&s!==(s=se({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0}))&&W(r,"style",s),2048&n[0]&&l!==(l=se(t[60].image.wrapperStyle))&&W(e,"style",l)},i:n,o:n,d(t){t&&I(e),c=!1,d()}}}function Bn(t){let e,n,r=t[60].text&&Ln(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[60].text?r?(r.p(t,n),2048&n[0]&&Nt(r,1)):(r=Ln(t),r.c(),Nt(r,1),r.m(e.parentNode,e)):r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt())},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function Ln(t){let e,n;return e=new Vn({props:{componentContext:t[0],text:t[60].text,rootFontSize:t[3],textStyles:t[60].textStyles,singleline:t[6],actions:t[60].actions}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2048&n[0]&&(r.text=t[60].text),8&n[0]&&(r.rootFontSize=t[3]),2048&n[0]&&(r.textStyles=t[60].textStyles),64&n[0]&&(r.singleline=t[6]),2048&n[0]&&(r.actions=t[60].actions),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Un(t){let e,n,r,o;const i=[Bn,Rn],a=[];function s(t,e){return"text"in t[60]?0:t[60].image?1:-1}return~(e=s(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=L()},m(t,n){~e&&a[e].m(t,n),O(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?~e&&a[e].p(t,o):(n&&(St(),Ot(a[l],1,1,(()=>{a[l]=null})),Pt()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Nt(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Nt(n),o=!0)},o(t){Ot(n),o=!1},d(t){t&&I(r),~e&&a[e].d(t)}}}function Wn(t){let e,n,r,o,i,a,s,c,u;const d=[zn,Mn],p=[];function f(t,e){return t[11].length?0:1}return n=f(t),r=p[n]=d[n](t),{c(){e=M("span"),r.c(),W(e,"class",o=Ee("text__inner",ie,t[13])),W(e,"style",i=se(t[12]))},m(r,o){O(r,e,o),p[n].m(e,null),s=!0,c||(u=b(a=On.call(null,e,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})),c=!0)},p(t,c){let u=n;n=f(t),n===u?p[n].p(t,c):(St(),Ot(p[u],1,1,(()=>{p[u]=null})),Pt(),r=p[n],r?r.p(t,c):(r=p[n]=d[n](t),r.c()),Nt(r,1),r.m(e,null)),(!s||8192&c[0]&&o!==(o=Ee("text__inner",ie,t[13])))&&W(e,"class",o),(!s||4096&c[0]&&i!==(i=se(t[12])))&&W(e,"style",i),a&&l(a.update)&&1296&c[0]&&a.update.call(null,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})},i(t){s||(Nt(r),s=!0)},o(t){Ot(r),s=!1},d(t){t&&I(e),p[n].d(),c=!1,u()}}}function Hn(t){let e,n;return e=new bn({props:{cls:Ee("text",ie,t[14])+" "+(t[5]?"":ne.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Wn]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};16416&n[0]&&(r.cls=Ee("text",ie,t[14])+" "+(t[5]?"":ne.root__unselectable)),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),16349&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function qn(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,T,M,z,R,B,L,U,W=n,H=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n;t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot()));let{componentContext:it}=e,{layoutParams:at}=e;const st=pt(re),lt=st.direction;f(t,lt,(t=>r(52,M=t)));let ct,dt="",ft=12,ht=1.25,gt=!1,mt="",vt="",yt=!1,$t="start",bt="start",_t="",wt="",xt="",kt=!1,Ct=[],Et=[];return ut((()=>{Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)}))})),t.$$set=t=>{"componentContext"in t&&r(0,it=t.componentContext),"layoutParams"in t&&r(1,at=t.layoutParams)},t.$$.update=()=>{var e;if(1&t.$$.dirty[0]&&it.json&&(r(3,ft=12),r(32,ht=1.25),r(9,gt=!1),r(33,mt=""),r(10,ct=void 0),r(4,vt=""),r(34,yt=!1),r(35,$t="start"),r(36,bt="start"),r(37,_t=""),r(39,xt=""),r(5,kt=!1)),1&t.$$.dirty[0]&&(r(29,o=it.getDerivedFromVars(it.json.text)),ot(),ot=p(o,(t=>r(56,U=t)))),1&t.$$.dirty[0]&&(r(28,i=it.getDerivedFromVars(it.json.ranges)),q(),q=p(i,(t=>r(44,F=t)))),1&t.$$.dirty[0]&&(r(27,a=it.getDerivedFromVars(it.json.images)),H(),H=p(a,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(26,s=it.getDerivedFromVars({font_size:it.json.font_size,letter_spacing:it.json.letter_spacing,font_weight:it.json.font_weight,font_family:it.json.font_family,text_color:it.json.text_color,underline:it.json.underline,strike:it.json.strike,line_height:it.json.line_height,text_shadow:it.json.text_shadow})),W(),W=p(s,(t=>r(7,j=t)))),1&t.$$.dirty[0]&&(r(25,l=it.getDerivedFromVars(it.json.font_size)),rt(),rt=p(l,(t=>r(55,L=t)))),1&t.$$.dirty[0]&&(r(24,c=it.getDerivedFromVars(it.json.line_height)),nt(),nt=p(c,(t=>r(54,B=t)))),1&t.$$.dirty[0]&&(r(23,u=it.getDerivedFromVars(it.json.max_lines)),Z(),Z=p(u,(t=>r(50,I=t)))),1&t.$$.dirty[0]&&(r(22,d=it.getDerivedFromVars(it.json.text_alignment_horizontal)),tt(),tt=p(d,(t=>r(53,z=t)))),1&t.$$.dirty[0]&&(r(21,h=it.getDerivedFromVars(it.json.text_alignment_vertical)),Q(),Q=p(h,(t=>r(51,T=t)))),1&t.$$.dirty[0]&&(r(20,g=it.getDerivedFromVars(it.json.text_color)),Y(),Y=p(g,(t=>r(49,O=t)))),1&t.$$.dirty[0]&&(r(19,m=it.getDerivedFromVars(it.json.focused_text_color)),X(),X=p(m,(t=>r(48,N=t)))),1&t.$$.dirty[0]&&(r(18,v=it.getDerivedFromVars(it.json.truncate)),K(),K=p(v,(t=>r(47,P=t)))),1&t.$$.dirty[0]&&(r(17,y=it.getDerivedFromVars(it.json.text_gradient)),G(),G=p(y,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(16,$=it.getDerivedFromVars(it.json.selectable)),J(),J=p($,(t=>r(45,D=t)))),1&t.$$.dirty[0]&&(r(15,b=it.getDerivedFromVars(it.json.auto_ellipsize)),et(),et=p(b,(t=>r(8,R=t)))),33554432&t.$$.dirty[1]&&r(2,(e=U,dt=String(null!=e?e:""))),8&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(3,ft=wn(L,ft)),8&t.$$.dirty[0]|8388608&t.$$.dirty[1]){const t=B;Ze(t)?(r(32,ht=Number(t)/ft),r(9,gt=!0)):r(9,gt=!1)}if(524288&t.$$.dirty[1]&&r(6,_=1===I),256&t.$$.dirty[0]|524290&t.$$.dirty[1]){let t,e="",n="",o=!1;if(I&&I>1){const r=Number(I);e=r*ht+"em",t=r,n=r,o=!0}else R&&1!==I&&(o=!0);r(33,mt=e),r(10,ct=t),r(4,vt=n),r(34,yt=o)}if(6291472&t.$$.dirty[1]&&r(35,$t=Fn(z,M,$t)),1048608&t.$$.dirty[1]&&r(36,bt=Dn(T,bt)),4&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(42,w=!F||dt&&1===F.length&&F[0]&&0===F[0].start&&"number"==typeof F[0].end&&F[0].end>=dt.length),270336&t.$$.dirty[1]&&r(41,x=Boolean(O)!==Boolean(F&&F[0]&&F[0].text_color)),797760&t.$$.dirty[1]){let t="";I&&w&&x&&(t=de(O||F&&F[0]&&F[0].text_color,1,_t)),r(37,_t=t)}if(131200&t.$$.dirty[1]&&r(38,wt=de(N,1,wt)),65536&t.$$.dirty[1]&&r(40,k="none"===P?"none":""),32768&t.$$.dirty[1]){let t="";if(S){const e=ge([S]);e.image&&(t=e.image)}r(39,xt=t)}32&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(5,kt=Sn(D,kt)),132&t.$$.dirty[0]|12288&t.$$.dirty[1]&&function(t,e,n,o){let i=[];if(Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)})),Et=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(11,Ct=[]);const a=t;let s=e||[{start:0,end:a.length}],l=n||[],c=0,u=[],d=[];s.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(d.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),d.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=a.length&&d.push({index:t.start,image:t,type:"image",arrayIndex:e})})),d.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),d.forEach((t=>{var e,n;let r="image"===t.type?null:t.range,s=t.index;if(s>c){let r=Object.assign(Object.assign({},o),...u);i.push({text:a.substring(c,s),textStyles:r,actions:"rangeEnd"===t.type&&(null===(n=null===(e=t.range)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.filter(Re))||void 0})}if("rangeStart"===t.type&&r)u.push(r);else if("rangeEnd"===t.type)u=u.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},o),...u),n=le(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=le(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const a={"font-size":le(10*(Number(e.font_size)||12)/ft)};let s="";const l=t.image.tint_color,c=Pn(t.image.tint_mode,"source_in");if(l){const e=de(t.image.tint_color);s=st.addSvgFilter(e,c),Et.push([e,c])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:a,svgFilterId:s,preloadRequired:Boolean(t.image.preload_required)}})}c=s})),c<a.length&&i.push({text:a.substring(c),textStyles:Object.assign({},o)}),r(11,Ct=i)}(dt,F,V,j),64&t.$$.dirty[0]|696&t.$$.dirty[1]&&r(14,C={singleline:_,multiline:yt,halign:$t,valign:bt,truncate:k,"has-focus-color":Boolean(wt)}),256&t.$$.dirty[1]&&r(13,E={gradient:Boolean(xt)}),24&t.$$.dirty[0]|454&t.$$.dirty[1]&&r(12,A={"font-size":le(ft),"line-height":ht,"max-height":mt,"-webkit-line-clamp":vt,color:_t,"background-image":xt,"--divkit-text-focus-color":wt})},[it,at,dt,ft,vt,kt,_,j,R,gt,ct,Ct,A,E,C,b,$,y,v,m,g,h,d,u,c,l,s,a,i,o,lt,function(t){t.target&&"classList"in t.target&&t.target.classList.add(ie.text__image_hidden)},ht,mt,yt,$t,bt,_t,wt,xt,k,x,w,V,F,D,S,P,N,O,I,T,M,z,B,L,U]}const Jn={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_overflow_visible:"divkit-f315a",container_orientation_vertical:"divkit-ddc33",container_valign_start:"divkit-a31f0",container_valign_center:"divkit-aae61",container_valign_end:"divkit-eac00","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_start:"divkit-efaf5",container_halign_center:"divkit-bac9d",container_halign_end:"divkit-ca36b","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function Gn(t){return{top:Number(null==t?void 0:t.top)||0,right:Number(null==t?void 0:t.right)||0,bottom:Number(null==t?void 0:t.bottom)||0,left:Number(null==t?void 0:t.left)||0}}function Kn(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+o:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+o:t.right=e.style.width+r)}function Xn(t,e,n){let r;const o=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),s=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+s:0,null!=e&&e.show_between?e.style.width+o:0]:[null!=e&&e.show_between?e.style.height+i:0,null!=n&&n.show_between?n.style.width+a:0],r.map(le).join(" ")}function Yn(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function Zn(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function Qn(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:we(null===(i=(o=t.shape).item_width)||void 0===i?void 0:i.value,10),height:we(null===(a=o.item_height)||void 0===a?void 0:a.value,10),radius:we(null===(s=o.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*we(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var o,i,a,s;return function(t,e,n){var r;const o={},i=e.stroke||(null==n?void 0:n.stroke),a=null!=i&&i.color?de(i.color):"",s=null!=i&&i.width?Number(null!==(r=i.width)&&void 0!==r?r:1):"";o.width=t.width,o.height=t.height,o.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return o.background=de(l),a&&s&&(o.boxShadow="inset 0 0 0 ".concat(le(s)," ").concat(a)),o}(r,t.shape,{color:t.color,stroke:t.stroke})}let tr;function er(){if("undefined"==typeof document&&(tr=!0),void 0!==tr)return tr;const t=document.createElement("div");return t.style.position="absolute",t.style.display="flex",t.style.flexDirection="column",t.style.gap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),tr=1===t.scrollHeight,document.body.removeChild(t),tr}const nr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:rr}=j;function or(t,e,n){const r=t.slice();return r[16]=e[n],r}function ir(t){let e,n,r,o,i,a="".concat(t[16].style.width,"px"),s="".concat(t[16].style.height,"px"),l="".concat(t[16].style.borderRadius,"px"),c="".concat(t[16].left,"px"),u="".concat(t[16].top,"px"),d="".concat(t[16].width,"px"),p="".concat(t[16].height,"px");return{c(){e=M("div"),n=M("div"),o=B(),W(n,"class",r=nr["container-separator__shape"]),Y(n,"width",a),Y(n,"height",s),Y(n,"border-radius",l),Y(n,"background",t[16].style.background),Y(n,"box-shadow",t[16].style.boxShadow),W(e,"class",i=nr["container-separator__item"]),Y(e,"left",c),Y(e,"top",u),Y(e,"width",d),Y(e,"height",p)},m(t,r){O(t,e,r),S(e,n),S(e,o)},p(t,r){2&r&&a!==(a="".concat(t[16].style.width,"px"))&&Y(n,"width",a),2&r&&s!==(s="".concat(t[16].style.height,"px"))&&Y(n,"height",s),2&r&&l!==(l="".concat(t[16].style.borderRadius,"px"))&&Y(n,"border-radius",l),2&r&&Y(n,"background",t[16].style.background),2&r&&Y(n,"box-shadow",t[16].style.boxShadow),2&r&&c!==(c="".concat(t[16].left,"px"))&&Y(e,"left",c),2&r&&u!==(u="".concat(t[16].top,"px"))&&Y(e,"top",u),2&r&&d!==(d="".concat(t[16].width,"px"))&&Y(e,"width",d),2&r&&p!==(p="".concat(t[16].height,"px"))&&Y(e,"height",p)},d(t){t&&I(e)}}}function ar(t){let e,r,o,i,a=zt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=ir(or(t,a,e));return{c(){e=M("div");for(let t=0;t<s.length;t+=1)s[t].c();W(e,"class",r=nr["container-separator"])},m(n,r){O(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[13](e),o||(i=U(rr,"resize",t[2]),o=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=zt(t[1]),n=0;n<a.length;n+=1){const o=or(t,a,n);s[n]?s[n].p(o,r):(s[n]=ir(o),s[n].c(),s[n].m(e,null))}for(;n<s.length;n+=1)s[n].d(1);s.length=a.length}},i:n,o:n,d(n){n&&I(e),T(s,n),t[13](null),o=!1,i()}}}function sr(t,e,n,r,o,i){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;i?t.push({top:n.bottom+l,left:o.left+a,width:Math.max(0,o.right-o.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:o.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,o.bottom-o.top-l-c),style:e.style})}function lr(t,e,n,r,o,i){const a={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if(null==e?void 0:e.show_at_start){let s,l;"space-around"===o||"space-evenly"===o?(s=i.left-e.style.width,l=i.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),sr(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)sr(t,e,n[o],n[o+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===o||"space-evenly"===o?(l=i.bottom+e.style.height,c=i.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),sr(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function cr(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e,{direction:c}=e;const u=function(t,e){let n,r=0,o=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect(),e=window.getComputedStyle(r),u={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,p=[]);let f=[...r.children].filter((t=>t!==d&&!t.classList.contains(ae.outer__border))),h=[];for(;f.length;){const t=[],e=f.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.left,i=n.right,a=n.bottom;for(;f.length;){let e=f[0],n=e.getBoundingClientRect();if("vertical"===o){if(n.top<a)break}else if("ltr"===c?n.left<i:n.right>r)break;i=Math.max(i,n.right),r=Math.min(r,n.left),a=Math.max(a,n.bottom),t.push(e),f.shift()}h.push(t)}const g=[];h.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));"rtl"===c&&"horizontal"===o&&e.reverse(),i&&lr(p,i,e,"vertical"===o,"vertical"===o?l:s,u);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};g.push(n)})),"rtl"===c&&"vertical"===o&&g.reverse(),a&&lr(p,a,g,"horizontal"===o,"vertical"===o?s:l,u),p.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let d,p=[],f=!1,h=null,g=null;function m(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(nr["container-separator__shape"]))&&!(null==n?void 0:n.contains(nr["container-separator"]))}))&&u()}return lt((()=>{n(9,f=!0)})),ut((()=>{n(9,f=!1)})),t.$$set=t=>{"orientation"in t&&n(3,o=t.orientation),"separator"in t&&n(4,i=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign),"direction"in t&&n(8,c=t.direction)},t.$$.update=()=>{1&t.$$.dirty&&n(12,r=(null==d?void 0:d.parentElement)||null),7680&t.$$.dirty&&(f&&r||h||g)&&(h&&(h.disconnect(),n(10,h=null)),g&&(g.disconnect(),n(11,g=null)),f&&r&&("undefined"!=typeof MutationObserver&&(n(10,h=new MutationObserver(m)),h.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(11,g=new ResizeObserver(u)),g.observe(r)))),4608&t.$$.dirty&&f&&r&&u()},[d,p,u,o,i,a,s,l,c,f,h,g,r,function(t){gt[t?"unshift":"push"]((()=>{d=t,n(0,d)}))}]}const ur=class extends Zt{constructor(t){super(),Xt(this,t,cr,ar,d,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}},{Boolean:dr}=j;function pr(t,e,n){const r=t.slice();return r[54]=e[n],r}function fr(t){let e,n;return e=new gs({props:{componentContext:t[54],layoutParams:t[8]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.componentContext=t[54]),256&n[0]&&(r.layoutParams=t[8]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function hr(t){let e,n;return e=new ur({props:{direction:t[11],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.direction=t[11]),32&n[0]&&(r.separator=t[5]),64&n[0]&&(r.lineSeparator=t[6]),4&n[0]&&(r.orientation=t[2]),16&n[0]&&(r.contentHAlign=t[4]),8&n[0]&&(r.contentVAlign=t[3]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function gr(t){let e,n,r,o=zt(t[9]),i=[];for(let e=0;e<o.length;e+=1)i[e]=fr(pr(t,o,e));const a=t=>Ot(i[t],1,1,(()=>{i[t]=null}));let s=(t[5]||t[6])&&hr(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=B(),s&&s.c(),n=L()},m(t,o){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,o);O(t,e,o),s&&s.m(t,o),O(t,n,o),r=!0},p(t,r){if(768&r[0]){let n;for(o=zt(t[9]),n=0;n<o.length;n+=1){const a=pr(t,o,n);i[n]?(i[n].p(a,r),Nt(i[n],1)):(i[n]=fr(a),i[n].c(),Nt(i[n],1),i[n].m(e.parentNode,e))}for(St(),n=o.length;n<i.length;n+=1)a(n);Pt()}t[5]||t[6]?s?(s.p(t,r),96&r[0]&&Nt(s,1)):(s=hr(t),s.c(),Nt(s,1),s.m(n.parentNode,n)):s&&(St(),Ot(s,1,1,(()=>{s=null})),Pt())},i(t){if(!r){for(let t=0;t<o.length;t+=1)Nt(i[t]);Nt(s),r=!0}},o(t){i=i.filter(dr);for(let t=0;t<i.length;t+=1)Ot(i[t]);Ot(s),r=!1},d(t){t&&(I(e),I(n)),T(i,t),s&&s.d(t)}}}function mr(t){let e,n;return e=new bn({props:{cls:Ee("container",Jn,t[13]),componentContext:t[0],layoutParams:t[1],style:t[10],additionalPaddings:t[14],heightByAspect:Boolean(t[7]),parentOf:t[9].map(br),replaceItems:t[27],$$slots:{default:[gr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Ee("container",Jn,t[13])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1024&n[0]&&(r.style=t[10]),16384&n[0]&&(r.additionalPaddings=t[14]),128&n[0]&&(r.heightByAspect=Boolean(t[7])),512&n[0]&&(r.parentOf=t[9].map(br)),2940&n[0]|67108864&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}const vr={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},yr={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},$r=["rounded_rectangle","circle"],br=t=>t.json;function _r(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,T,M=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n,G=n,K=n;var X,Y,Z,Q,tt,et,nt;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{componentContext:rt}=e,{layoutParams:ot}=e;const it=pt(re),at=it.direction;let st;f(t,at,(t=>r(11,D=t)));let lt,ct="vertical",ut="start",dt="start",ft=null,ht=null,gt={},mt=[];return t.$$set=t=>{"componentContext"in t&&r(0,rt=t.componentContext),"layoutParams"in t&&r(1,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(39,o=rt.origJson),256&t.$$.dirty[1]&&o&&(r(2,ct="vertical"),r(3,ut="start"),r(4,dt="start"),r(7,lt=void 0)),1&t.$$.dirty[0]&&r(38,i=rt.json.items),268435457&t.$$.dirty[0]&&(r(25,a=rt.getDerivedFromVars(null===r(28,X=rt.json.item_builder)||void 0===X?void 0:X.data,void 0,!0)),K(),K=p(a,(t=>r(51,T=t)))),1&t.$$.dirty[0]&&(r(24,s=rt.getDerivedFromVars(rt.json.orientation)),G(),G=p(s,(t=>r(50,I=t)))),1&t.$$.dirty[0]&&(r(23,l=rt.getDerivedFromVars(rt.json.layout_mode)),J(),J=p(l,(t=>r(49,O=t)))),1&t.$$.dirty[0]&&(r(22,c=rt.getDerivedFromVars(rt.json.content_alignment_vertical)),H(),H=p(c,(t=>r(47,P=t)))),1&t.$$.dirty[0]&&(r(21,u=rt.getDerivedFromVars(rt.json.content_alignment_horizontal)),W(),W=p(u,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(20,d=rt.getDerivedFromVars(rt.json.separator)),U(),U=p(d,(t=>r(45,F=t)))),1&t.$$.dirty[0]&&(r(19,h=rt.getDerivedFromVars(rt.json.line_separator)),L(),L=p(h,(t=>r(44,V=t)))),1&t.$$.dirty[0]&&(r(18,g=rt.getDerivedFromVars(rt.json.aspect)),B(),B=p(g,(t=>r(43,j=t)))),1&t.$$.dirty[0]&&(r(17,m=rt.getDerivedFromVars(rt.json.width)),z(),z=p(m,(t=>r(41,E=t)))),1&t.$$.dirty[0]&&(r(16,v=rt.getDerivedFromVars(rt.json.height)),R(),R=p(v,(t=>r(42,A=t)))),1&t.$$.dirty[0]&&(r(15,y=rt.getDerivedFromVars(rt.json.clip_to_bounds)),M(),M=p(y,(t=>r(40,C=t)))),1&t.$$.dirty[0]|1048704&t.$$.dirty[1]){let t=[];if(rt.json.item_builder&&Array.isArray(T)&&Array.isArray(rt.json.item_builder.prototypes)){const e=rt.json.item_builder;t=[],T.forEach((n=>{if(null===n||"object"!=typeof n)return;const r=it.preparePrototypeVariables(e.data_element_name||"it",n);let o;for(let t=0;t<e.prototypes.length;++t){const n=e.prototypes[t];if(n.div){if(void 0===n.selector){o=n.div;break}if(rt.getJsonWithVars(n.selector,r)){o=n.div;break}}}o&&t.push({div:o,vars:r})}))}else t=(Array.isArray(i)&&i||[]).map((t=>({div:t})));r(9,mt=t.map(((t,e)=>rt.produceChildContext(t.div,{path:e,variables:t.vars}))))}if(513&t.$$.dirty[0]){let t=[];mt.forEach((e=>{t.push(rt.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(12,st=ee(t,(t=>[...t]))),q(),q=p(st,(t=>r(48,N=t)))}if(4&t.$$.dirty[0]|524288&t.$$.dirty[1]&&r(2,ct=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(I,ct)),262144&t.$$.dirty[1]&&r(35,$="wrap"===O),4&t.$$.dirty[0]|131088&t.$$.dirty[1]&&r(36,b="horizontal"!==ct&&!$&&N.some(Yn)),4&t.$$.dirty[0]|131088&t.$$.dirty[1]&&r(37,_="vertical"!==ct&&!$&&N.some(Zn)),8&t.$$.dirty[0]|65536&t.$$.dirty[1]&&r(3,ut=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?"top"===t?"start":"bottom"===t?"end":t:e}(P,ut)),2064&t.$$.dirty[0]|32768&t.$$.dirty[1]&&r(4,dt=function(t,e,n){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}(S,D,dt)),1610612772&t.$$.dirty[0]|16385&t.$$.dirty[1])if((null==F?void 0:F.style)&&"overlap"!==ct&&er()){const t=Qn(F.style,$r,(null==ft?void 0:ft.style)||null);r(5,ft=t?{show_at_start:Boolean(null!==r(29,Y=F.show_at_start)&&void 0!==Y&&Y),show_at_end:Boolean(null!==r(30,Z=F.show_at_end)&&void 0!==Z&&Z),show_between:Boolean(null===r(31,Q=F.show_between)||void 0===Q||Q),style:t,margins:Gn(F.margins)}:null)}else r(5,ft=null);if(68&t.$$.dirty[0]|8206&t.$$.dirty[1])if((null==V?void 0:V.style)&&"overlap"!==ct&&er()){const t=Qn(V.style,$r,(null==ht?void 0:ht.style)||null);r(6,ht=t?{show_at_start:Boolean(null!==r(32,tt=V.show_at_start)&&void 0!==tt&&tt),show_at_end:Boolean(null!==r(33,et=V.show_at_end)&&void 0!==et&&et),show_between:Boolean(null===r(34,nt=V.show_between)||void 0===nt||nt),style:t,margins:Gn(V.margins)}:null)}else r(6,ht=null);if(100&t.$$.dirty[0]&&r(14,w=ft||ht?function(t,e,n){const r={};return Kn(r,e,"vertical"===t),Kn(r,n,"horizontal"===t),r}(ct,ft,ht):null),4096&t.$$.dirty[1]){const t=null==j?void 0:j.ratio;t&&Ze(t)?r(7,lt=t):r(7,lt=void 0)}if(414&t.$$.dirty[0]|3184&t.$$.dirty[1]){let t={};"overlap"===ct&&(t.overlapParent=!0),"horizontal"!==ct&&(t.parentHAlign=$?"start":vr[dt]),"vertical"!==ct&&(t.parentVAlign=$?"start":yr[ut]),lt||_||A&&"wrap_content"!==A.type&&("match_parent"!==A.type||!(null==ot?void 0:ot.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!b&&("wrap_content"===(null==E?void 0:E.type)||"match_parent"===(null==E?void 0:E.type)&&(null==ot?void 0:ot.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===ct&&(t.parentContainerOrientation="horizontal"),"vertical"===ct&&(t.parentContainerOrientation="vertical"),$&&(t.parentContainerWrap=!0),r(8,gt=Ne(t,gt))}28&t.$$.dirty[0]|528&t.$$.dirty[1]&&r(13,x={orientation:ct,valign:ut,halign:dt,wrap:$,overflow:!1===C||0===C?"visible":void 0}),228&t.$$.dirty[0]&&r(10,k={gap:ft||ht?Xn(ct,ft,ht):void 0,"aspect-ratio":lt})},[rt,ot,ct,ut,dt,ft,ht,lt,gt,mt,k,D,st,x,w,y,v,m,g,h,d,u,c,l,s,a,at,function(t){r(0,rt=Object.assign(Object.assign({},rt),{json:Object.assign(Object.assign({},rt.json),{items:t.filter(he)})}))},X,Y,Z,Q,tt,et,nt,$,b,_,i,o,C,E,A,j,V,F,S,P,N,O,I,T]}const wr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function xr(t,e){return"vertical"===t||"horizontal"===t?t:e}function kr(t){let e,n,r;return{c(){e=M("span"),W(e,"class",n=wr.separator__inner),W(e,"style",r=se(t[3]))},m(t,n){O(t,e,n)},p(t,n){8&n&&r!==(r=se(t[3]))&&W(e,"style",r)},d(t){t&&I(e)}}}function Cr(t){let e,n=t[4]&&kr(t);return{c(){n&&n.c(),e=L()},m(t,r){n&&n.m(t,r),O(t,e,r)},p(t,r){t[4]?n?n.p(t,r):(n=kr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&I(e),n&&n.d(t)}}}function Er(t){let e,n;return e=new bn({props:{cls:Ee("separator",wr,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Cr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){let[r]=n;const o={};4&r&&(o.cls=Ee("separator",wr,t[2])),1&r&&(o.componentContext=t[0]),2&r&&(o.layoutParams=t[1]),8216&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Ar(t,e,r){let o,i,a,s,l,c,u,d,f=n;t.$$.on_destroy.push((()=>f()));let{componentContext:h}=e,{layoutParams:g}=e,m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"componentContext"in t&&r(0,h=t.componentContext),"layoutParams"in t&&r(1,g=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&r(10,o=h.origJson),1024&t.$$.dirty&&o&&(r(6,m="horizontal"),r(7,v="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(r(5,i=h.getDerivedFromVars(h.json.delimiter_style)),f(),f=p(i,(t=>r(11,d=t)))),2112&t.$$.dirty&&r(6,m=xr(null==d?void 0:d.orientation,m)),2048&t.$$.dirty&&r(4,a=!((null==d?void 0:d.color)&&("transparent"===d.color||9===d.color.length&&0===d.color.indexOf("#00")))),2176&t.$$.dirty&&r(7,v=de(null==d?void 0:d.color,1,v)),64&t.$$.dirty&&r(9,s="horizontal"===m?"100%":le(1)),64&t.$$.dirty&&r(8,l="horizontal"===m?le(1):"100%"),896&t.$$.dirty&&r(3,c={background:v,width:s,height:l}),64&t.$$.dirty&&r(2,u={orientation:m})},[h,g,u,c,a,i,m,v,l,s,o,d]}const jr={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image_is-rtl-mirror":"divkit-ae78c","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Vr(t){return t.startsWith("data:")?fe(t):"data:image/jpg;base64,".concat(fe(t))}function Fr(t){let e,n;return e=new bn({props:{cls:Ee("image",jr,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[Nr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=Ee("image",jr,t[9])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),67110780&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Dr(t){let e,n,r,o,i,a,l,c;return{c(){e=M("img"),W(e,"class",n=jr.image__image),u(e.src,r=t[3]===Tr?Ir:t[4])||W(e,"src",r),W(e,"loading",o=t[26]?"eager":"lazy"),W(e,"decoding","async"),W(e,"style",i=se(t[8])),W(e,"alt",t[10]),W(e,"aria-hidden",a=t[10]?null:"true")},m(n,r){O(n,e,r),t[63](e),l||(c=[U(e,"load",t[28]),U(e,"error",t[29])],l=!0)},p(t,n){24&n[0]&&!u(e.src,r=t[3]===Tr?Ir:t[4])&&W(e,"src",r),67108864&n[0]&&o!==(o=t[26]?"eager":"lazy")&&W(e,"loading",o),256&n[0]&&i!==(i=se(t[8]))&&W(e,"style",i),1024&n[0]&&W(e,"alt",t[10]),1024&n[0]&&a!==(a=t[10]?null:"true")&&W(e,"aria-hidden",a)},d(n){n&&I(e),t[63](null),l=!1,s(c)}}}function Sr(t){let e,n,r,o,i,a,l,c,d,p,f="".concat(t[5],"%");return{c(){e=M("span"),n=M("img"),W(n,"class",r=jr.image__image),u(n.src,o=t[3]===Tr?Ir:t[4])||W(n,"src",o),W(n,"loading",i=t[26]?"eager":"lazy"),W(n,"decoding","async"),W(n,"style",a=se(t[8])),W(n,"alt",t[10]),W(n,"aria-hidden",l=t[10]?null:"true"),W(e,"class",c=jr["image__aspect-wrapper"]),Y(e,"padding-bottom",f)},m(r,o){O(r,e,o),S(e,n),t[62](n),d||(p=[U(n,"load",t[28]),U(n,"error",t[29])],d=!0)},p(t,r){24&r[0]&&!u(n.src,o=t[3]===Tr?Ir:t[4])&&W(n,"src",o),67108864&r[0]&&i!==(i=t[26]?"eager":"lazy")&&W(n,"loading",i),256&r[0]&&a!==(a=se(t[8]))&&W(n,"style",a),1024&r[0]&&W(n,"alt",t[10]),1024&r[0]&&l!==(l=t[10]?null:"true")&&W(n,"aria-hidden",l),32&r[0]&&f!==(f="".concat(t[5],"%"))&&Y(e,"padding-bottom",f)},d(n){n&&I(e),t[62](null),d=!1,s(p)}}}function Pr(t){let e;function n(t,e){return t[9].aspect?Sr:Dr}let r=n(t),o=r(t);return{c(){o.c(),e=L()},m(t,n){o.m(t,n),O(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&I(e),o.d(t)}}}function Nr(t){let e,n=t[6],r=Pr(t);return{c(){r.c(),e=L()},m(t,n){r.m(t,n),O(t,e,n)},p(t,o){64&o[0]&&d(n,n=t[6])?(r.d(1),r=Pr(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&I(e),r.d(t)}}}function Or(t){let e,n,r=!t[7]&&Fr(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[7]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),128&n[0]&&Nt(r,1)):(r=Fr(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const Ir="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Tr=2;function Mr(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,T,M,z,R,B,L,U=n,W=n,H=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n;t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt()));let{componentContext:ot}=e,{layoutParams:it}=e;const at=pt(re),st=at.direction;let lt;f(t,st,(t=>r(48,j=t)));let ct,dt,ft=0,ht=!1,mt="rgba(0,0,0,0.08)",vt=!1,yt="",$t="none",bt="50% 50%",_t="0",wt="source_in",xt="",kt="",Ct=0,Et=0,At=0,jt="",Vt="",Ft=!1;return ut((()=>{at.removeSvgFilter(dt,wt)})),t.$$set=t=>{"componentContext"in t&&r(0,ot=t.componentContext),"layoutParams"in t&&r(1,it=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(46,o=ot.origJson),32768&t.$$.dirty[1]&&o&&(r(33,$t="none"),r(34,bt="50% 50%"),r(36,wt="source_in")),1&t.$$.dirty[0]&&(r(25,i=ot.getDerivedFromVars(ot.json.image_url)),et(),et=p(i,(t=>r(60,R=t)))),1&t.$$.dirty[0]&&(r(24,a=ot.getDerivedFromVars(ot.json.gif_url)),nt(),nt=p(a,(t=>r(61,B=t)))),1&t.$$.dirty[0]&&(r(23,s=ot.getDerivedFromVars(ot.json.width)),tt(),tt=p(s,(t=>r(59,z=t)))),1&t.$$.dirty[0]&&(r(22,l=ot.getDerivedFromVars(ot.json.height)),Q(),Q=p(l,(t=>r(58,M=t)))),1&t.$$.dirty[0]&&(r(21,c=ot.getDerivedFromVars(ot.json.preview)),Z(),Z=p(c,(t=>r(57,T=t)))),1&t.$$.dirty[0]&&(r(20,u=ot.getDerivedFromVars(ot.json.placeholder_color)),Y(),Y=p(u,(t=>r(56,I=t)))),1&t.$$.dirty[0]&&(r(19,d=ot.getDerivedFromVars(ot.json.scale)),X(),X=p(d,(t=>r(55,O=t)))),1&t.$$.dirty[0]&&(r(18,h=ot.getDerivedFromVars({content_alignment_horizontal:ot.json.content_alignment_horizontal,content_alignment_vertical:ot.json.content_alignment_vertical})),K(),K=p(h,(t=>r(54,N=t)))),1&t.$$.dirty[0]&&(r(17,g=ot.getDerivedFromVars(ot.json.accessibility)),G(),G=p(g,(t=>r(53,P=t)))),1&t.$$.dirty[0]&&(r(16,m=ot.getDerivedFromVars(ot.json.aspect)),J(),J=p(m,(t=>r(52,S=t)))),1&t.$$.dirty[0]&&(r(15,v=ot.getDerivedFromVars(ot.json.tint_color)),q(),q=p(v,(t=>r(51,D=t)))),1&t.$$.dirty[0]&&(r(14,y=ot.getDerivedFromVars(ot.json.tint_mode)),H(),H=p(y,(t=>r(50,F=t)))),1&t.$$.dirty[0]&&(r(13,$=ot.getDerivedFromVars(ot.json.appearance_animation)),W(),W=p($,(t=>r(49,V=t)))),1&t.$$.dirty[0]&&(r(12,b=ot.getDerivedFromVars(ot.json.filters)),U(),U=p(b,(t=>r(47,A=t)))),1&t.$$.dirty[0]&&(r(11,_=ot.getDerivedFromVars(ot.json.preload_required)),rt(),rt=p(_,(t=>r(26,L=t)))),1073741825&t.$$.dirty[0]|1610612736&t.$$.dirty[1]){let t="gif"===ot.json.type?B:R;r(30,ht="empty://"===t),ht&&(t=Ir),r(4,ct=t)}if(16&t.$$.dirty[0]&&r(3,ft=0),17&t.$$.dirty[0]&&(ct?r(7,vt=!1):(r(7,vt=!0),ot.logError(oe(new Error('Missing "'.concat("gif"===ot.json.type?"gif_url":"image_url",'" for "').concat(ot.json.type,'"')))))),268435456&t.$$.dirty[1]&&r(45,w="wrap_content"===(null==z?void 0:z.type)),134217728&t.$$.dirty[1]&&r(44,x="wrap_content"===(null==M?void 0:M.type)),1073741832&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(32,yt=(0===ft||ft===Tr||ht)&&T?'url("'.concat(Vr(T),'")'):""),1073741832&t.$$.dirty[0]|33554433&t.$$.dirty[1]&&r(31,mt=0===ft||ft===Tr||ht?de(I,1,mt):""),16777220&t.$$.dirty[1]&&r(33,$t=ye(O)||$t),8388608&t.$$.dirty[1]&&r(34,bt=function(t,e,n){let r=t.content_alignment_horizontal;const o=t.content_alignment_vertical;return"start"===r?r="ltr"===e?"left":"right":"end"===r&&(r="ltr"===e?"right":"left"),r&&"left"!==r&&"center"!==r&&"right"!==r||o&&"top"!==o&&"center"!==o&&"bottom"!==o?n:$e({content_alignment_horizontal:r,content_alignment_vertical:o})}(N,j,bt)),4194304&t.$$.dirty[1]&&r(10,k=(null==P?void 0:P.description)||""),2097152&t.$$.dirty[1]){const t=null==S?void 0:S.ratio;t&&Ze(t)?r(5,_t=(100/Number(t)).toFixed(2)):r(5,_t="0")}if(1572912&t.$$.dirty[1]){const t=D?de(D):void 0,e=Pn(F,wt);t===dt&&e===wt||(at.removeSvgFilter(dt,wt),r(6,xt=t?at.addSvgFilter(t,e):""),r(35,dt=t),r(36,wt=e))}if(262144&t.$$.dirty[1]&&V&&"fade"===V.type){const t=V;r(37,kt=Oe(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(40,At=we(t.duration,300)),r(39,Et=we(t.start_delay,0)),r(38,Ct=we(t.alpha,0))}if(1&t.$$.dirty[0]|196608&t.$$.dirty[1]){let t="",e="";Array.isArray(A)&&A.length&&(t=Qe(A,ot.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(41,jt=t),r(42,Vt=e),r(43,Ft="rtl"===j&&Array.isArray(A)&&A.some((t=>"rtl_mirror"===t.type)))}40&t.$$.dirty[0]|28736&t.$$.dirty[1]&&r(9,C={aspect:"0"!==_t,"is-width-content":w,"is-height-content":x,loaded:1===ft,"before-appearance":Boolean(kt)&&0===ft,"is-rtl-mirror":Ft}),72&t.$$.dirty[0]|4047&t.$$.dirty[1]&&r(8,E={"background-image":yt,"background-color":yt?void 0:mt,"background-size":$t,"clip-path":Vt||void 0,"object-fit":$t,"object-position":bt,filter:[1===ft&&xt?"url(#".concat(xt,")"):"",jt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":kt||void 0,"--divkit-appearance-fade-start":kt?Ct:void 0,"--divkit-appearance-delay":kt?"".concat(Et,"ms"):void 0,"--divkit-appearance-duration":kt?"".concat(At,"ms"):void 0})},[ot,it,lt,ft,ct,_t,xt,vt,E,C,k,_,b,$,y,v,m,g,h,d,u,c,l,s,a,i,L,st,function(){0===ft&&r(3,ft=1)},function(){0===ft&&r(3,ft=Tr)},ht,mt,yt,$t,bt,dt,wt,kt,Ct,Et,At,jt,Vt,Ft,x,w,o,A,j,V,F,D,S,P,N,O,I,T,M,z,R,B,function(t){gt[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))},function(t){gt[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))}]}const zr=class extends Zt{constructor(t){super(),Xt(this,t,Mr,Or,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Rr={grid:"divkit-d9080",grid_halign_start:"divkit-fc24d",grid_halign_center:"divkit-a14a6",grid_halign_end:"divkit-cfd04",grid_valign_start:"divkit-c3106",grid_valign_center:"divkit-d4310",grid_valign_end:"divkit-fa9cf"};function Br(t){return t>0&&t<1}function Lr(t){return String(Math.ceil(1e3*t)/1e3)}function Ur(t,e,n){if(t.some(Br)){const e=Math.max(...t.filter(Br).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,o=0;const i=[];if(t.every(Boolean)){o=t.reduce(((t,e)=>t+e),0);for(let i=0;i<n;++i){if(!e[i])continue;const n=e[i]/t[i]*o;n>r&&(r=n)}}for(let e=0;e<n;++e)r?i[e]="minmax(".concat(le(r*t[e]/o),",").concat(Lr(t[e]),"fr)"):t[e]?i[e]="".concat(Lr(t[e]),"fr"):i[e]="auto";return i.join(" ")}function Wr(t,e,n){const r=t.slice();return r[31]=e[n],r}function Hr(t){let e,n;return e=new bn({props:{cls:Ee("grid",Rr,t[7]),componentContext:t[0],style:t[6],layoutParams:t[1],parentOf:t[2].map(Kr),replaceItems:t[12],$$slots:{default:[Jr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.cls=Ee("grid",Rr,t[7])),1&n[0]&&(r.componentContext=t[0]),64&n[0]&&(r.style=t[6]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(Kr)),16&n[0]|8&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function qr(t){let e,n;return e=new gs({props:{componentContext:t[31].componentContext,layoutParams:t[31].layoutParams}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.componentContext=t[31].componentContext),16&n[0]&&(r.layoutParams=t[31].layoutParams),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Jr(t){let e,n,r=zt(t[4]),o=[];for(let e=0;e<r.length;e+=1)o[e]=qr(Wr(t,r,e));const i=t=>Ot(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=L()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);O(t,e,r),n=!0},p(t,n){if(16&n[0]){let a;for(r=zt(t[4]),a=0;a<r.length;a+=1){const i=Wr(t,r,a);o[a]?(o[a].p(i,n),Nt(o[a],1)):(o[a]=qr(i),o[a].c(),Nt(o[a],1),o[a].m(e.parentNode,e))}for(St(),a=r.length;a<o.length;a+=1)i(a);Pt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Nt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ot(o[t]);n=!1},d(t){t&&I(e),T(o,t)}}}function Gr(t){let e,n,r=!t[5]&&Hr(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[5]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),32&n[0]&&Nt(r,1)):(r=Hr(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const Kr=t=>t.json;function Xr(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b=n,_=n,w=n,x=n;t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{componentContext:k}=e,{layoutParams:C}=e;const E=pt(re).direction;f(t,E,(t=>r(24,g=t)));let A,j,V=1,F=[],D=[],S=[],P=[],N=0,O=!1,I="start",T="start";return t.$$set=t=>{"componentContext"in t&&r(0,k=t.componentContext),"layoutParams"in t&&r(1,C=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(23,o=k.origJson),8388608&t.$$.dirty[0]&&o&&(r(13,V=1),r(20,I="start"),r(21,T="start")),1&t.$$.dirty[0]&&r(22,i=Array.isArray(k.json.items)&&k.json.items||[]),1&t.$$.dirty[0]&&(r(10,a=k.getDerivedFromVars(k.json.column_count)),x(),x=p(a,(t=>r(28,$=t)))),1&t.$$.dirty[0]&&(r(9,s=k.getDerivedFromVars(k.json.content_alignment_vertical)),_(),_=p(s,(t=>r(26,v=t)))),1&t.$$.dirty[0]&&(r(8,l=k.getDerivedFromVars(k.json.content_alignment_horizontal)),b(),b=p(l,(t=>r(25,m=t)))),268443648&t.$$.dirty[0]&&r(13,V=wn($,V)),4194305&t.$$.dirty[0]&&r(2,c=i.map(((t,e)=>k.produceChildContext(t,{path:e})))),5&t.$$.dirty[0]){let t=[];c.forEach((e=>{t.push(k.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(3,A=ee(t,(t=>[...t]))),w(),w=p(A,(t=>r(27,y=t)))}if(134471685&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,F=[]),r(15,D=[]),r(16,S=[]),r(17,P=[]),r(19,O=!1),r(4,j=c.map(((o,i)=>{var a,s,l,c;const u=y[i],d=Number(u.columnSpan)||1,p=Number(u.rowSpan)||1,f={x:e,y:n,colSpan:d,rowSpan:p},h="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,g="match_parent"===(null===(s=u.height)||void 0===s?void 0:s.type)?Number(u.height.weight||1)/p:0,m=1===d&&"fixed"===(null===(l=u.width)||void 0===l?void 0:l.type)&&u.width.value?Number(u.width.value)/d:0,v=1===p&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/p:0;for(let o=e;o<e+d;++o)for(let e=n;e<n+p;++e)t[o+"_"+e]?(r(19,O=!0),k.logError(oe(new Error("No space for item at index ".concat(i))))):(t[o+"_"+e]=!0,(!F[o]||F[o]<h)&&r(14,F[o]=h,F),(!D[e]||D[e]<g)&&r(15,D[e]=g,D),(!S[o]||S[o]<m)&&r(16,S[o]=m,S),(!P[e]||P[e]<v)&&r(17,P[e]=v,P));do{++e,e>=V&&(e=0,++n)}while(t[e+"_"+n]);return{componentContext:o,layoutParams:{gridArea:f}}}))),r(18,N=n)}68157440&t.$$.dirty[0]&&r(20,I=Dn(v,I)),52428800&t.$$.dirty[0]&&r(21,T=Fn(m,g,T)),3145728&t.$$.dirty[0]&&r(7,u={valign:I,halign:T}),516096&t.$$.dirty[0]&&r(6,d={"grid-template-columns":Ur(F,S,V),"grid-template-rows":Ur(D,P,N)}),524288&t.$$.dirty[0]&&r(5,h=O)},[k,C,c,A,j,h,d,u,l,s,a,E,function(t){r(0,k=Object.assign(Object.assign({},k),{json:Object.assign(Object.assign({},k.json),{items:t.filter(he)})}))},V,F,D,S,P,N,O,I,T,i,o,g,m,v,y,$]}const Yr={gallery:"divkit-cbb0f",gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},Zr={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function Qr(t){const e=[];let n=t[0],r=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[o],r=1):r++;return e.join(" ")}function to(t,e){let n=t%e;return n<0&&(n+=e),n}const{Boolean:eo}=j;function no(t,e,n){const r=t.slice();return r[78]=e[n],r[79]=e,r[80]=n,r}function ro(t,e,n){const r=t.slice();return r[81]=e[n],r}function oo(t){let e,n;return e=new gs({props:{componentContext:t[81],layoutParams:t[6]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.componentContext=t[81]),64&n[0]&&(r.layoutParams=t[6]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function io(t){let e,n,r,o,i,a=t[80],s=zt(t[78]),l=[];for(let e=0;e<s.length;e+=1)l[e]=oo(ro(t,s,e));const c=t=>Ot(l[t],1,1,(()=>{l[t]=null})),u=()=>t[64](e,a),d=()=>t[64](null,a);return{c(){e=M("div");for(let t=0;t<l.length;t+=1)l[t].c();n=B(),W(e,"class",r=Yr.gallery__items),W(e,"style",o=se(t[14]))},m(t,r){O(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);S(e,n),u(),i=!0},p(r,p){if(t=r,65600&p[0]){let r;for(s=zt(t[78]),r=0;r<s.length;r+=1){const o=ro(t,s,r);l[r]?(l[r].p(o,p),Nt(l[r],1)):(l[r]=oo(o),l[r].c(),Nt(l[r],1),l[r].m(e,n))}for(St(),r=s.length;r<l.length;r+=1)c(r);Pt()}(!i||16384&p[0]&&o!==(o=se(t[14])))&&W(e,"style",o),a!==t[80]&&(d(),a=t[80],u())},i(t){if(!i){for(let t=0;t<s.length;t+=1)Nt(l[t]);i=!0}},o(t){l=l.filter(eo);for(let t=0;t<l.length;t+=1)Ot(l[t]);i=!1},d(t){t&&I(e),T(l,t),d()}}}function ao(t){let e,n,r=t[10]&&t[7]&&so(t),o=t[11]&&t[7]&&lo(t);return{c(){r&&r.c(),e=B(),o&&o.c(),n=L()},m(t,i){r&&r.m(t,i),O(t,e,i),o&&o.m(t,i),O(t,n,i)},p(t,i){t[10]&&t[7]?r?r.p(t,i):(r=so(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]&&t[7]?o?o.p(t,i):(o=lo(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){t&&(I(e),I(n)),r&&r.d(t),o&&o.d(t)}}}function so(t){let e,r,o,i,a=!t[29]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=Yr["gallery__arrow-icon-path"]),W(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),W(e,"class",o=Zr.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){O(t,e,r),S(e,n)},d(t){t&&I(e)}}}();return{c(){e=M("div"),a&&a.c(),W(e,"class",r=t[29]||"".concat(Yr.gallery__arrow," ").concat(Zr.arrow," ").concat(Zr.arrow_left))},m(n,r){O(n,e,r),a&&a.m(e,null),o||(i=U(e,"click",t[67]),o=!0)},p:n,d(t){t&&I(e),a&&a.d(),o=!1,i()}}}function lo(t){let e,r,o,i,a=!t[30]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=Yr["gallery__arrow-icon-path"]),W(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),W(e,"class",o=Zr.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){O(t,e,r),S(e,n)},d(t){t&&I(e)}}}();return{c(){e=M("div"),a&&a.c(),W(e,"class",r=t[30]||"".concat(Yr.gallery__arrow," ").concat(Zr.arrow," ").concat(Zr.arrow_right))},m(n,r){O(n,e,r),a&&a.m(e,null),o||(i=U(e,"click",t[68]),o=!0)},p:n,d(t){t&&I(e),a&&a.d(),o=!1,i()}}}function co(t){let e,n,r,o,i,a,s,c,u,d,p,f=zt(t[16]),h=[];for(let e=0;e<f.length;e+=1)h[e]=io(no(t,f,e));const g=t=>Ot(h[t],1,1,(()=>{h[t]=null}));let m="horizontal"===t[4]&&ao(t);return{c(){e=M("div"),n=M("div");for(let t=0;t<h.length;t+=1)h[t].c();s=B(),m&&m.c(),c=L(),W(n,"class",r=Yr["gallery__items-grid"]),W(n,"style",o=se(t[15])),W(e,"class",i=Yr.gallery__scroller+" "+(t[27]?ne["root_restrict-scroll"]:"")),W(e,"style",a=se(t[5]))},m(r,o){O(r,e,o),S(e,n);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(n,null);t[65](n),t[66](e),O(r,s,o),m&&m.m(r,o),O(r,c,o),u=!0,d||(p=U(e,"scroll",(function(){l(t[7]?t[33]:null)&&(t[7]?t[33]:null).apply(this,arguments)})),d=!0)},p(r,s){if(t=r,82496&s[0]){let e;for(f=zt(t[16]),e=0;e<f.length;e+=1){const r=no(t,f,e);h[e]?(h[e].p(r,s),Nt(h[e],1)):(h[e]=io(r),h[e].c(),Nt(h[e],1),h[e].m(n,null))}for(St(),e=f.length;e<h.length;e+=1)g(e);Pt()}(!u||32768&s[0]&&o!==(o=se(t[15])))&&W(n,"style",o),(!u||134217728&s[0]&&i!==(i=Yr.gallery__scroller+" "+(t[27]?ne["root_restrict-scroll"]:"")))&&W(e,"class",i),(!u||32&s[0]&&a!==(a=se(t[5])))&&W(e,"style",a),"horizontal"===t[4]?m?m.p(t,s):(m=ao(t),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i(t){if(!u){for(let t=0;t<f.length;t+=1)Nt(h[t]);u=!0}},o(t){h=h.filter(eo);for(let t=0;t<h.length;t+=1)Ot(h[t]);u=!1},d(n){n&&(I(e),I(s),I(c)),T(h,n),t[65](null),t[66](null),m&&m.d(n),d=!1,p()}}}function uo(t){let e,n,r,o;return e=new bn({props:{cls:Ee("gallery",Yr,t[13]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[8],replaceItems:t[31],$$slots:{default:[co]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(i,a){Gt(e,i,a),n=!0,r||(o=U(window,"resize",(function(){l(t[7]?t[34]:null)&&(t[7]?t[34]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const o={};8192&r[0]&&(o.cls=Ee("gallery",Yr,t[13])),1&r[0]&&(o.componentContext=t[0]),2&r[0]&&(o.layoutParams=t[1]),256&r[0]&&(o.parentOf=t[8]),134336252&r[0]|4194304&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t),r=!1,o()}}}function po(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,T,M=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n,G=n;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G()));let{componentContext:K}=e,{layoutParams:X}=e;const Y=pt(re),Z=Y.direction;let Q;f(t,Z,(t=>r(52,C=t)));let tt,et=[],nt=!1,rt=!1,ot=null,it=!1;const at=Y.getCustomization("galleryLeftClass"),st=Y.getCustomization("galleryRightClass");let ct,dt,ft,ht,mt,vt=1,yt="horizontal",$t="start",bt=8,_t="",wt=[],xt={},kt=!1,Ct={},Et=0;const At=Y.isDesktop;function jt(){if(!Q)return;let t=Q.scrollLeft;"rtl"===C&&(t*=-1);const e=Q.scrollWidth,n=Q.offsetWidth;"ltr"===C?(r(10,nt=t>2),r(11,rt=t+n<e-2)):(r(11,rt=t>2),r(10,nt=t+n<e-2))}f(t,At,(t=>r(63,I=t)));const Vt=Nn(jt,50);function Ft(t){Q.scroll({left:Q.scrollLeft+.75*Q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Dt(){let t=[],e=et[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<vt;++e){const r=et[e].children[n];r&&t.push(r)}return t}function St(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===yt?"left":"top";Q.scroll({[n]:t,behavior:e})}function Pt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===yt,o=r?"offsetLeft":"offsetTop",i=t[e];if(i){let t;if("ltr"!==C&&r){const e=Q.offsetWidth;t=i[o]+i.offsetWidth+.01-bt/2-e}else t=i[o]+.01-bt/2;St(t,n)}}function Nt(t){const e=Dt(),n=Q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===yt?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const o=e.map((t=>function(t,e){return"horizontal"===yt?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),i=o.findIndex(Boolean);return-1!==i?"prev"===t&&2===o.filter(Boolean).length?i+1:i:"prev"===t?1:e.length-2}return lt((()=>{r(37,it=!0),jt(),Et&&Pt(Dt(),Et,"auto")})),ut((()=>{r(37,it=!1),ct&&!K.fakeElement&&(Y.unregisterInstance(ct),r(38,ct=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,K=t.componentContext),"layoutParams"in t&&r(1,X=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(51,o=K.origJson),1048576&t.$$.dirty[1]&&o&&(r(39,vt=1),r(4,yt="horizontal"),r(40,$t="start"),r(42,bt=8),r(45,_t="")),1&t.$$.dirty[0]&&r(8,i=Array.isArray(K.json.items)&&K.json.items||[]),1&t.$$.dirty[0]&&(r(26,a=K.getDerivedFromVars(K.json.column_count)),J(),J=p(a,(t=>r(62,O=t)))),1&t.$$.dirty[0]&&(r(25,s=K.getDerivedFromVars(K.json.orientation)),q(),q=p(s,(t=>r(61,N=t)))),1&t.$$.dirty[0]&&(r(24,l=K.getDerivedFromVars(K.json.cross_content_alignment)),H(),H=p(l,(t=>r(60,P=t)))),1&t.$$.dirty[0]&&(r(23,c=K.getDerivedFromVars(K.json.item_spacing)),W(),W=p(c,(t=>r(59,S=t)))),1&t.$$.dirty[0]&&(r(22,u=K.getDerivedFromVars(K.json.cross_spacing)),U(),U=p(u,(t=>r(58,D=t)))),1&t.$$.dirty[0]&&(r(21,d=K.getDerivedFromVars(K.json.paddings)),L(),L=p(d,(t=>r(57,F=t)))),1&t.$$.dirty[0]&&(r(20,h=K.getDerivedFromVars(K.json.scroll_mode)),R(),R=p(h,(t=>r(55,j=t)))),1&t.$$.dirty[0]&&(r(19,g=K.getDerivedFromVars(K.json.restrict_parent_scroll)),G(),G=p(g,(t=>r(27,T=t)))),1&t.$$.dirty[0]&&(r(18,m=K.getDerivedFromVars(K.json.scrollbar)),z(),z=p(m,(t=>r(54,A=t)))),1&t.$$.dirty[0]&&(r(17,v=K.getDerivedFromVars(K.json.default_item)),M(),M=p(v,(t=>r(53,E=t)))),257&t.$$.dirty[0]&&r(50,y=i.map(((t,e)=>K.produceChildContext(t,{path:e})))),64&t.$$.dirty[1]|2&t.$$.dirty[2]&&r(7,$=I&&it),136&t.$$.dirty[0]|32&t.$$.dirty[1]&&($?"undefined"!=typeof ResizeObserver&&(r(36,ot=new ResizeObserver((()=>{Vt()}))),ot.observe(tt)):ot&&(ot.disconnect(),r(36,ot=null))),256&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(39,vt=wn(O,vt)),524544&t.$$.dirty[1]&&r(16,b=function(t,e){let n=0,r=[];for(let o=0;o<t.length;++o)r[n]||(r[n]=[]),r[n].push(t[o]),++n>=e&&(n=0);return r}(y,vt)),16&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(4,yt=xr(N,yt)),536871424&t.$$.dirty[1]&&r(40,$t=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(P,$t)),268437504&t.$$.dirty[1]&&(r(42,bt=we(S,bt)),r(41,dt=le(bt))),134227968&t.$$.dirty[1]&&(r(44,ht=we(D,bt)),r(43,ft=le(ht))),69222400&t.$$.dirty[1]&&r(45,_t=De(F,C,_t)),16&t.$$.dirty[0]&&r(49,_="horizontal"===yt?"grid-template-columns":"grid-template-rows"),17&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];y.forEach((e=>{const n="horizontal"===yt?"width":"height";t.push(K.getDerivedFromVars(e.json[n]))})),r(12,mt=ee(t,(t=>t))),B(),B=p(mt,(t=>r(56,V=t)))}if(16&t.$$.dirty[0]|33587456&t.$$.dirty[1]&&(r(46,wt=[]),vt>1?wt.push("auto"):V.forEach((t=>{!t&&"horizontal"===yt||"match_parent"===(null==t?void 0:t.type)?wt.push("100%"):wt.push("max-content")}))),112&t.$$.dirty[0]|16780032&t.$$.dirty[1]){const t={};let e={};r(47,kt=!1),"horizontal"===yt?e.parentVAlign=$t:e.parentHAlign=$t,"paging"===j&&(r(47,kt=!0),e.scrollSnap="start",t["horizontal"===yt?"scroll-padding-left":"scroll-padding-top"]=le(bt/2)),1===vt&&(e.parentLayoutOrientation=yt),r(5,xt=Ne(t,xt)),r(6,Ct=Ne(e,Ct))}20480&t.$$.dirty[1]&&r(15,w={padding:_t,"grid-gap":ft}),295936&t.$$.dirty[1]&&r(14,x={"grid-gap":dt,[_]:Qr(wt)}),16&t.$$.dirty[0]|8454144&t.$$.dirty[1]&&r(13,k={orientation:yt,"scroll-snap":kt,scrollbar:"auto"===A?"auto":"none"}),4325376&t.$$.dirty[1]&&r(48,Et=we(E,Et)),1&t.$$.dirty[0]&&K.json&&Vt(),21&t.$$.dirty[0]|2097280&t.$$.dirty[1]&&K.json&&(ct&&(Y.unregisterInstance(ct),r(38,ct=void 0)),K.json.id&&!K.fakeElement&&(r(38,ct=K.json.id),Y.registerInstance(ct,{setCurrentItem(t){const e=Dt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Pt(e,t)},setPreviousItem(t,e){const n=Nt("prev"),r=Dt();let o=n-t;o<0&&(o="ring"===e?to(o,r.length):0),Pt(r,o)},setNextItem(t,e){const n="horizontal"===yt,r="ltr"!==C&&n?-1:1,o=n?Q.scrollLeft*r+Q.offsetWidth===Q.scrollWidth:Q.scrollTop+Q.offsetHeight===Q.scrollHeight,i=Dt();if(o&&"ring"===e)return void Pt(i,0);let a=Nt("next")+t;a>i.length-1&&(a="ring"===e?to(a,i.length):i.length-1),Pt(i,a)},scrollToStart(){St(0)},scrollToEnd(){St("ltr"===C||"horizontal"!==yt?1e6:-1e6)},scrollBackward(t,e){const n="horizontal"===yt,r="ltr"!==C&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r-t;a<0&&("clamp"===e?a=0:"ring"===e&&(a=to(a,i))),St(a*r)},scrollForward(t,e){const n="horizontal"===yt,r="ltr"!==C&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r+t;a>i&&("clamp"===e?a=i:"ring"===e&&(a=to(a,i))),St(a*r)},scrollToPosition(t){St("ltr"===C||"horizontal"!==yt?t:-t)}})))},[K,X,Q,tt,yt,xt,Ct,$,i,et,nt,rt,mt,k,x,w,b,v,m,g,h,d,u,c,l,s,a,T,Z,at,st,function(t){r(0,K=Object.assign(Object.assign({},K),{json:Object.assign(Object.assign({},K.json),{items:t.filter(he)})}))},At,jt,Vt,Ft,ot,it,ct,vt,$t,dt,bt,ft,ht,_t,wt,kt,Et,_,y,o,C,E,A,j,V,F,D,S,P,N,O,I,function(t,e){gt[t?"unshift":"push"]((()=>{et[e]=t,r(9,et)}))},function(t){gt[t?"unshift":"push"]((()=>{tt=t,r(3,tt)}))},function(t){gt[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},()=>Ft("left"),()=>Ft("right")]}const fo={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306","tabs_height-parent_yes":"divkit-ae594",tabs__separator:"divkit-b85bf"},{Boolean:ho}=j;function go(t,e,n){const r=t.slice();r[93]=e[n];const o=r[93].index;r[94]=o;const i=r[29][r[94]];return r[95]=i,r}function mo(t,e,n){const r=t.slice();r[93]=e[n];const o=r[93].index;r[94]=o;const i=r[94]===r[15];return r[98]=i,r}function vo(t){let e,n;return e=new bn({props:{cls:Ee("tabs",fo,t[22]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[42],parentOfSimpleMode:!0,replaceItems:t[47],$$slots:{default:[xo]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};4194304&n[0]&&(r.cls=Ee("tabs",fo,t[22])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2048&n[1]&&(r.parentOf=t[42]),2143289337&n[0]|4099&n[1]|256&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function yo(t){let e,n=t[93].title+"";return{c(){e=R(n)},m(t,n){O(t,e,n)},p(t,r){65536&r[0]&&n!==(n=t[93].title+"")&&K(e,n)},d(t){t&&I(e)}}}function $o(t){let e,n;function r(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[69](t[94],...n)}return e=new Xe({props:{componentContext:t[0],cls:Ee("tabs__item",fo,{selected:t[98],actionable:Boolean(t[93].title_click_action)}),actions:t[93].title_click_action&&!t[0].fakeElement?[t[93].title_click_action].filter(Re):[],attrs:{id:"".concat(t[45],"-tab-").concat(t[94]),"aria-controls":"".concat(t[45],"-panel-").concat(t[94]),role:"tab",tabindex:t[98]&&!t[0].fakeElement?t[93].title_click_action?void 0:"0":"-1","aria-selected":t[98]?"true":"false"},customAction:t[0].fakeElement?null:r,$$slots:{default:[yo]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(n,o){t=n;const i={};1&o[0]&&(i.componentContext=t[0]),98304&o[0]&&(i.cls=Ee("tabs__item",fo,{selected:t[98],actionable:Boolean(t[93].title_click_action)})),65537&o[0]&&(i.actions=t[93].title_click_action&&!t[0].fakeElement?[t[93].title_click_action].filter(Re):[]),98305&o[0]&&(i.attrs={id:"".concat(t[45],"-tab-").concat(t[94]),"aria-controls":"".concat(t[45],"-panel-").concat(t[94]),role:"tab",tabindex:t[98]&&!t[0].fakeElement?t[93].title_click_action?void 0:"0":"-1","aria-selected":t[98]?"true":"false"}),65537&o[0]&&(i.customAction=t[0].fakeElement?null:r),65536&o[0]|256&o[3]&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function bo(t){let e,n,r;return{c(){e=M("div"),W(e,"class",n=fo.tabs__separator),W(e,"style",r=se(t[32]))},m(t,n){O(t,e,n)},p(t,n){2&n[1]&&r!==(r=se(t[32]))&&W(e,"style",r)},d(t){t&&I(e)}}}function _o(t){let e,n;return e=new gs({props:{componentContext:t[95],layoutParams:t[3]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};536936448&n[0]&&(r.componentContext=t[95]),8&n[0]&&(r.layoutParams=t[3]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function wo(t){let e,n,r,o,i,a,s=t[95]&&_o(t);return{c(){e=M("div"),s&&s.c(),n=B(),W(e,"class",r=Ee("tabs__panel",fo,{visible:t[30][t[94]]})),W(e,"role","tabpanel"),W(e,"id",o=t[45]+"-panel-"+t[94]),W(e,"aria-labelledby",i=t[45]+"-tab-"+t[94]),Y(e,"left",100*t[94]+"%")},m(t,r){O(t,e,r),s&&s.m(e,null),S(e,n),a=!0},p(t,l){t[95]?s?(s.p(t,l),536936448&l[0]&&Nt(s,1)):(s=_o(t),s.c(),Nt(s,1),s.m(e,n)):s&&(St(),Ot(s,1,1,(()=>{s=null})),Pt()),(!a||1073807360&l[0]&&r!==(r=Ee("tabs__panel",fo,{visible:t[30][t[94]]})))&&W(e,"class",r),(!a||65536&l[0]&&o!==(o=t[45]+"-panel-"+t[94]))&&W(e,"id",o),(!a||65536&l[0]&&i!==(i=t[45]+"-tab-"+t[94]))&&W(e,"aria-labelledby",i),(!a||65536&l[0])&&Y(e,"left",100*t[94]+"%")},i(t){a||(Nt(s),a=!0)},o(t){Ot(s),a=!1},d(t){t&&I(e),s&&s.d()}}}function xo(t){let e,n,r,o,i,a,c,u,d,p,f,h=zt(t[16]),g=[];for(let e=0;e<h.length;e+=1)g[e]=$o(mo(t,h,e));const m=t=>Ot(g[t],1,1,(()=>{g[t]=null}));let v=t[18]&&bo(t),y=zt(t[16]),$=[];for(let e=0;e<y.length;e+=1)$[e]=wo(go(t,y,e));const b=t=>Ot($[t],1,1,(()=>{$[t]=null}));return{c(){e=M("div");for(let t=0;t<g.length;t+=1)g[t].c();r=B(),v&&v.c(),o=B(),i=M("div"),a=M("div");for(let t=0;t<$.length;t+=1)$[t].c();W(e,"class",n=fo.tabs__list+" "+(t[43]?ne["root_restrict-scroll"]:"")),W(e,"role","tablist"),Y(e,"--divkit-tabs-title-padding",t[14]?je(t[14],t[17]):""),Y(e,"--divkit-tabs-font-size",le(t[4])),Y(e,"--divkit-tabs-paddings",t[5]),Y(e,"--divkit-tabs-line-height",t[23]),Y(e,"--divkit-tabs-letter-spacing",t[24]),Y(e,"--divkit-tabs-active-font-weight",t[7]||""),Y(e,"--divkit-tabs-inactive-font-weight",t[8]||""),Y(e,"--divkit-tabs-active-font-family",t[25]||""),Y(e,"--divkit-tabs-inactive-font-family",t[26]||""),Y(e,"--divkit-tabs-active-text-color",t[9]),Y(e,"--divkit-tabs-inactive-text-color",t[10]),Y(e,"--divkit-tabs-active-background-color",t[11]),Y(e,"--divkit-tabs-inactive-background-color",t[12]),Y(e,"--divkit-tabs-border-radius",t[6]),Y(e,"--divkit-tabs-items-spacing",t[13]?ce(10*t[13]/t[4]):""),W(a,"class",c=Ee("tabs__swiper",fo,{inited:t[27],animated:t[28]})),W(i,"class",u=fo.tabs__panels+" "+(t[43]?ne["root_restrict-scroll"]:""))},m(n,s){O(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[70](e),O(n,r,s),v&&v.m(n,s),O(n,o,s),O(n,i,s),S(i,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[71](a),t[72](i),d=!0,p||(f=[U(e,"keydown",t[49]),U(i,"touchstart",(function(){l(t[31]?t[50]:void 0)&&(t[31]?t[50]:void 0).apply(this,arguments)})),U(i,"touchmove",(function(){l(t[31]?t[51]:void 0)&&(t[31]?t[51]:void 0).apply(this,arguments)})),U(i,"touchend",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)})),U(i,"touchcancel",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)}))],p=!0)},p(r,s){if(t=r,98305&s[0]|147456&s[1]){let n;for(h=zt(t[16]),n=0;n<h.length;n+=1){const r=mo(t,h,n);g[n]?(g[n].p(r,s),Nt(g[n],1)):(g[n]=$o(r),g[n].c(),Nt(g[n],1),g[n].m(e,null))}for(St(),n=h.length;n<g.length;n+=1)m(n);Pt()}if((!d||4096&s[1]&&n!==(n=fo.tabs__list+" "+(t[43]?ne["root_restrict-scroll"]:"")))&&W(e,"class",n),147456&s[0]&&Y(e,"--divkit-tabs-title-padding",t[14]?je(t[14],t[17]):""),16&s[0]&&Y(e,"--divkit-tabs-font-size",le(t[4])),32&s[0]&&Y(e,"--divkit-tabs-paddings",t[5]),8388608&s[0]&&Y(e,"--divkit-tabs-line-height",t[23]),16777216&s[0]&&Y(e,"--divkit-tabs-letter-spacing",t[24]),128&s[0]&&Y(e,"--divkit-tabs-active-font-weight",t[7]||""),256&s[0]&&Y(e,"--divkit-tabs-inactive-font-weight",t[8]||""),33554432&s[0]&&Y(e,"--divkit-tabs-active-font-family",t[25]||""),67108864&s[0]&&Y(e,"--divkit-tabs-inactive-font-family",t[26]||""),512&s[0]&&Y(e,"--divkit-tabs-active-text-color",t[9]),1024&s[0]&&Y(e,"--divkit-tabs-inactive-text-color",t[10]),2048&s[0]&&Y(e,"--divkit-tabs-active-background-color",t[11]),4096&s[0]&&Y(e,"--divkit-tabs-inactive-background-color",t[12]),64&s[0]&&Y(e,"--divkit-tabs-border-radius",t[6]),8208&s[0]&&Y(e,"--divkit-tabs-items-spacing",t[13]?ce(10*t[13]/t[4]):""),t[18]?v?v.p(t,s):(v=bo(t),v.c(),v.m(o.parentNode,o)):v&&(v.d(1),v=null),1610678280&s[0]|16384&s[1]){let e;for(y=zt(t[16]),e=0;e<y.length;e+=1){const n=go(t,y,e);$[e]?($[e].p(n,s),Nt($[e],1)):($[e]=wo(n),$[e].c(),Nt($[e],1),$[e].m(a,null))}for(St(),e=y.length;e<$.length;e+=1)b(e);Pt()}(!d||402653184&s[0]&&c!==(c=Ee("tabs__swiper",fo,{inited:t[27],animated:t[28]})))&&W(a,"class",c),(!d||4096&s[1]&&u!==(u=fo.tabs__panels+" "+(t[43]?ne["root_restrict-scroll"]:"")))&&W(i,"class",u)},i(t){if(!d){for(let t=0;t<h.length;t+=1)Nt(g[t]);for(let t=0;t<y.length;t+=1)Nt($[t]);d=!0}},o(t){g=g.filter(ho);for(let t=0;t<g.length;t+=1)Ot(g[t]);$=$.filter(ho);for(let t=0;t<$.length;t+=1)Ot($[t]);d=!1},d(n){n&&(I(e),I(r),I(o),I(i)),T(g,n),t[70](null),v&&v.d(n),T($,n),t[71](null),t[72](null),p=!1,s(f)}}}function ko(t){let e,n,r=!t[2]&&vo(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[2]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),4&n[0]&&Nt(r,1)):(r=vo(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function Co(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N=n,O=n,I=n,T=n,M=n,z=n,R=n,B=n,L=n;var U,W;t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L()));let{componentContext:H}=e,{layoutParams:q}=e;const J=pt(re),G=J.direction;f(t,G,(t=>r(17,A=t)));const K=J.genId("tabs");let X,Y=!1,Z=te([]);f(t,Z,(t=>r(16,k=t)));let Q,tt,et,nt,rt,ot,it,at,st,lt={},ct={},dt=12,ft="",ht="",mt="",vt="",yt="",$t="",bt="",wt="",xt="",kt="",Ct=0,Et="",At="",jt=null,Vt=!1,Ft=!1,Dt=[],St=[],Pt=null,Nt=null,Ot=null,It=!1,Tt=!1;async function Mt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ot=$,r(15,$=t),Wt(),r(28,Ft=!0),Bt(100*-$),Lt(),async function(){if("match_parent"===(null==x?void 0:x.type))return;await _t();const t=document.getElementById("".concat(K,"-panel-").concat($));t&&r(20,tt.style.height=le(t.offsetHeight),tt)}(),Ut(),st=-$*tt.clientWidth,e){await _t();const t=Q.querySelector(".".concat(fo.tabs__item_selected));t&&t.focus()}}function zt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==k?void 0:k.length;if(!n)return;const r=k.map((t=>t.index));let o=r.indexOf($)+t;o>=n?o=0:o<0&&(o=n-1),Mt(r[o],e)}function Rt(t,e){return $===e||(Mt(e),!1)}async function Bt(t){await _t(),r(21,et.style.transform="translate3d(".concat(t,"%,0,0)"),et)}function Lt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,$-1):Math.min($,null!=ot?ot:$),n=t?Math.min(i.length-1,$+1):Math.max($,null!=ot?ot:$);r(29,Dt=Dt.map(((t,r)=>{var o;return t||(r>=e&&r<=n&&(null===(o=i[r])||void 0===o?void 0:o.div)?H.produceChildContext(i[r].div,{path:r}):void 0)}))),r(30,St=St.map(((t,r)=>r>=e&&r<=n)))}function Ut(){Pt&&clearTimeout(Pt),Pt=window.setTimeout((()=>{r(30,St=i.map(((t,e)=>e===$)))}),400)}function Wt(){Vt||(r(27,Vt=!0),r(20,tt.style.height=le(tt.clientHeight),tt),r(21,et.style.transform="translate3d(".concat(100*-(null!=ot?ot:$),"%,0,0)"),et))}return ut((()=>{X&&(J.unregisterInstance(X),r(55,X=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,H=t.componentContext),"layoutParams"in t&&r(1,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(61,o=H.origJson),1073741824&t.$$.dirty[1]&&o&&(r(4,dt=12),r(5,ft=""),r(6,vt=""),r(7,nt=void 0),r(25,yt=""),r(8,rt=void 0),r(26,$t=""),r(9,bt=""),r(10,wt=""),r(11,xt=""),r(12,kt=""),r(13,Ct=0),r(56,Et=""),r(57,At=""),r(14,jt=null)),1&t.$$.dirty[0]&&r(58,i=Array.isArray(H.json.items)&&H.json.items||[]),134217728&t.$$.dirty[1]&&r(42,a=i.map((t=>t.div))),1&t.$$.dirty[0]&&(r(41,s=H.getDerivedFromVars(H.json.width)),B(),B=p(s,(t=>r(68,S=t)))),1&t.$$.dirty[0]&&(r(40,l=H.getDerivedFromVars(H.json.height)),N(),N=p(l,(t=>r(62,x=t)))),1&t.$$.dirty[0]&&r(60,c=H.getJsonWithVars(H.json.selected_tab)),1&t.$$.dirty[0]&&(r(39,u=H.getDerivedFromVars(H.json.tab_title_style)),R(),R=p(u,(t=>r(67,D=t)))),1&t.$$.dirty[0]&&(r(38,d=H.getDerivedFromVars(H.json.has_separator)),z(),z=p(d,(t=>r(18,F=t)))),1&t.$$.dirty[0]&&(r(37,h=H.getDerivedFromVars(H.json.separator_color)),M(),M=p(h,(t=>r(66,V=t)))),1&t.$$.dirty[0]&&(r(36,g=H.getDerivedFromVars(H.json.separator_paddings)),T(),T=p(g,(t=>r(65,j=t)))),1&t.$$.dirty[0]&&(r(35,m=H.getDerivedFromVars(H.json.switch_tabs_by_content_swipe_enabled)),I(),I=p(m,(t=>r(64,E=t)))),1&t.$$.dirty[0]&&(r(34,v=H.getDerivedFromVars(H.json.restrict_parent_scroll)),L(),L=p(v,(t=>r(43,P=t)))),1&t.$$.dirty[0]&&(r(33,y=H.getDerivedFromVars(H.json.title_paddings)),O(),O=p(y,(t=>r(63,C=t)))),536870912&t.$$.dirty[1]&&r(15,$=c&&Number(c)||0),1&t.$$.dirty[0]|134217728&t.$$.dirty[1])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=H.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):H.logError(oe(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),Z.set(t)}else Z.set([]);if(65537&t.$$.dirty[0]&&((null==k?void 0:k.length)?r(2,Y=!1):(r(2,Y=!0),H.logError(oe(new Error('Incorrect or empty "items" prop for div "tabs"'))))),8&t.$$.dirty[0]|65&t.$$.dirty[2]){let t={parentContainerOrientation:"horizontal"};"wrap_content"===(null==S?void 0:S.type)&&(t.parentHorizontalWrapContent=!0),x&&"wrap_content"!==x.type||(t.parentVerticalWrapContent=!0),r(3,lt=Ne(t,lt))}if(32773&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&!Y&&($<0||$>=i.length)&&(H.logError(oe(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:H.json.selected_tab,length:i.length}})),r(15,$=$<0?0:i.length-1)),98309&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&(Y||k.some((t=>$===t.index))||(H.logError(oe(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:H.json.selected_tab}})),r(15,$=(null===r(53,U=k[0])||void 0===U?void 0:U.index)||0))),32&t.$$.dirty[2]&&r(59,b=D||{}),16&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(4,dt=wn(b.font_size,dt)),131120&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(b.font_size||b.paddings)){const t=b.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/dt*10,right:(Number("ltr"===A?t.end:t.start)||Number(t.right)||0)/dt*10,bottom:(Number(t.bottom)||0)/dt*10,left:(Number("ltr"===A?t.start:t.end)||Number(t.left)||0)/dt*10};r(5,ft=De(e,A,ft))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=b.line_height;void 0!==t&&Ze(t)&&r(23,ht=le(t/dt*10))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=b.letter_spacing;void 0!==t&&Fe(t)&&r(24,mt=le(t/dt*10))}if(80&t.$$.dirty[0]|276824064&t.$$.dirty[1]&&(b.corner_radius||b.corners_radius||b.font_size)){const t=null!==r(54,W=b.corner_radius)&&void 0!==W?W:1e3;b.corners_radius?r(6,vt=function(t,e,n,r){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<o.length;++t)if(o[t]&&!Fe(o[t]))return r;return ze(t,e,n)}(b.corners_radius,t,dt,vt)):Fe(t)&&r(6,vt=le(t/dt*10))}128&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(7,nt=kn(b.active_font_weight||b.font_weight,nt)),b.font_family&&"string"==typeof b.font_family?r(25,yt=J.typefaceProvider(b.font_family,{fontWeight:nt||400})):r(25,yt="")),256&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(8,rt=kn(b.inactive_font_weight||b.font_weight,rt)),b.font_family&&"string"==typeof b.font_family?r(26,$t=J.typefaceProvider(b.font_family,{fontWeight:rt||400})):r(26,$t="")),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(9,bt=de(b.active_text_color,1,bt)),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,wt=de(b.inactive_text_color,1,wt)),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,xt=de(b.active_background_color,1,xt)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(12,kt=de(b.inactive_background_color,1,kt)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(13,Ct=we(b.item_spacing,Ct)),393216&t.$$.dirty[0]|100663296&t.$$.dirty[1]|24&t.$$.dirty[2]&&F&&(V&&r(56,Et=de(V,1,Et)),j&&r(57,At=De(j,A,At))),100663296&t.$$.dirty[1]&&r(32,_={background:Et,margin:At}),4&t.$$.dirty[2]&&r(31,w=void 0===E||Boolean(E)),16384&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(14,jt=Me(C||void 0,jt)),134217728&t.$$.dirty[1]&&function(t){Y||(r(29,Dt=t.map(((t,e)=>{if(e===$&&(null==t?void 0:t.div))return H.produceChildContext(t.div,{path:e})}))),r(30,St=t.map(((t,e)=>e===$))))}(i),32773&t.$$.dirty[0]|150994944&t.$$.dirty[1]&&H.json&&(X&&(J.unregisterInstance(X),r(55,X=void 0)),!H.json.id||Y||H.fakeElement||(r(55,X=H.json.id),J.registerInstance(X,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Mt(t)},setPreviousItem(t,e){let n=$-t;n<0&&(n="ring"===e?to(n,i.length):0),Mt(n)},setNextItem(t,e){let n=$+t;n>i.length-1&&(n="ring"===e?to(n,i.length):i.length-1),Mt(n)},scrollToStart(){Mt(0)},scrollToEnd(){Mt(i.length-1)}}))),1&t.$$.dirty[2]&&r(22,ct={"height-parent":"match_parent"===(null==x?void 0:x.type)?"yes":""})},[H,q,Y,lt,dt,ft,vt,nt,rt,bt,wt,xt,kt,Ct,jt,$,k,A,F,Q,tt,et,ct,ht,mt,yt,$t,Vt,Ft,Dt,St,w,_,y,v,m,g,h,d,u,l,s,a,P,G,K,Z,function(t){H.json.items&&r(0,H=Object.assign(Object.assign({},H),{json:Object.assign(Object.assign({},H.json),{items:H.json.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))})}))},Rt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(37===t.which)zt(-1,!0);else if(39===t.which)zt(1,!0);else if(36===t.which)Mt(0,!0);else{if(35!==t.which)return;Mt(i.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,o=null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,".".concat(ne["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==tt||(It=!1,Tt=!1,Nt=He(t),Ot=null,it=Date.now(),at=st||-$*tt.clientWidth,r(28,Ft=!1),Pt&&clearTimeout(Pt))},function(t){const e=He(t);if(!Nt||Ot&&Ot.x===e.x&&Ot.y===e.y)return;Ot=e;const n=tt.clientWidth;if(It){st=e.x-Nt.x+at;const t=n*i.length;if(st>0)st=st*n/(st+3*n);else if(-st+n>t){let e=-st+n-t;e=e*n/(e+3*n),st=n-t-e}Bt(100*st/n)}else Math.abs(e.y-Nt.y)>10?Tt=!0:!Tt&&Math.abs(e.x-Nt.x)>8&&(Wt(),It=!0,Nt=e,Bt(100*-$),Lt(!0));It&&t.cancelable&&t.preventDefault()},function(){Tt=!1,Nt=null;let t=$;if(!It)return;It=!1;const e=Math.min(512,tt.clientWidth);Math.abs(at-st)>e/4*Math.min(1,(Date.now()-it)/750)&&(t+=at>st?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===$?(r(28,Ft=!0),st=-t*e,Bt(100*-t),Ut()):Mt(t)},U,W,X,Et,At,i,b,c,o,x,C,E,j,V,D,S,(t,e)=>Rt(0,t),function(t){gt[t?"unshift":"push"]((()=>{Q=t,r(19,Q)}))},function(t){gt[t?"unshift":"push"]((()=>{et=t,r(21,et)}))},function(t){gt[t?"unshift":"push"]((()=>{tt=t,r(20,tt)}))}]}const Eo={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Ao(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function jo(t){return t*t*t}function Vo(t){const e=t-1;return e*e*e+1}function Fo(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),o=n-r;return t[r]*o+t[r+1]*(1-o)}}const Do=Fo([.0021,.0045,.0071,.01,.0131,.0165,.0202,.0242,.0284,.033,.0378,.0429,.0483,.054,.0601,.0664,.0731,.08,.0872,.0948,.1026,.1108,.1192,.1279,.1369,.1461,.1556,.1653,.1753,.1855,.1958,.2064,.2171,.2279,.2389,.25,.2612,.2725,.2839,.2952,.3067,.3181,.3295,.341,.3524,.3637,.375,.3863,.3974,.4085,.4195,.4304,.4412,.4519,.4624,.4729,.4832,.4934,.5034,.5133,.5231,.5327,.5422,.5516,.5608,.5699,.5788,.5876,.5963,.6048,.6132,.6214,.6295,.6375,.6453,.653,.6606,.668,.6754,.6825,.6896,.6965,.7034,.7101,.7166,.7231,.7295,.7357,.7418,.7479,.7538,.7596,.7653,.7709,.7764,.7818,.7871,.7923,.7974,.8024,.8073,.8122,.8169,.8216,.8261,.8306,.835,.8394,.8436,.8478,.8518,.8558,.8598,.8636,.8674,.8711,.8747,.8783,.8818,.8852,.8886,.8919,.8951,.8983,.9014,.9044,.9074,.9103,.9131,.9159,.9187,.9213,.924,.9265,.929,.9315,.9339,.9362,.9385,.9408,.943,.9451,.9472,.9492,.9512,.9532,.9551,.9569,.9587,.9605,.9622,.9638,.9655,.967,.9686,.9701,.9715,.9729,.9743,.9756,.9769,.9782,.9794,.9805,.9817,.9828,.9838,.9848,.9858,.9868,.9877,.9886,.9894,.9902,.991,.9917,.9924,.9931,.9937,.9943,.9949,.9954,.9959,.9964,.9969,.9973,.9977,.998,.9983,.9986,.9989,.9991,.9993,.9995,.9997,.9998,.9999,.9999,1,1]),So=Fo([5e-4,.002,.0045,.0078,.0119,.0168,.0224,.0286,.0355,.0429,.0508,.0592,.0681,.0774,.087,.0969,.1072,.1177,.1285,.1395,.1507,.1621,.1736,.1853,.197,.2089,.2208,.2328,.2448,.2569,.2689,.281,.293,.305,.317,.3289,.3408,.3526,.3644,.376,.3876,.3991,.4105,.4218,.433,.444,.455,.4658,.4765,.4871,.4975,.5078,.518,.528,.5379,.5477,.5573,.5668,.5761,.5853,.5944,.6033,.612,.6206,.6291,.6374,.6456,.6537,.6616,.6693,.677,.6845,.6918,.699,.7061,.713,.7199,.7265,.7331,.7395,.7458,.752,.758,.764,.7698,.7755,.781,.7865,.7918,.7971,.8022,.8072,.8121,.8169,.8216,.8262,.8307,.8351,.8394,.8436,.8477,.8517,.8557,.8595,.8633,.8669,.8705,.874,.8775,.8808,.8841,.8873,.8904,.8934,.8964,.8993,.9022,.9049,.9076,.9103,.9129,.9154,.9178,.9202,.9226,.9249,.9271,.9293,.9314,.9335,.9355,.9375,.9394,.9413,.9431,.9449,.9466,.9483,.95,.9516,.9532,.9547,.9562,.9576,.9591,.9605,.9618,.9631,.9644,.9657,.9669,.9681,.9692,.9703,.9714,.9725,.9736,.9746,.9756,.9765,.9775,.9784,.9793,.9802,.981,.9818,.9826,.9834,.9842,.9849,.9856,.9863,.987,.9877,.9883,.989,.9896,.9902,.9908,.9913,.9919,.9924,.993,.9935,.994,.9944,.9949,.9954,.9958,.9963,.9967,.9971,.9975,.9979,.9983,.9986,.999,.9993,.9997,1]),Po={linear:r,ease:Do,ease_in:jo,ease_out:Vo,ease_in_out:Ao,spring:So},No=200,Oo=0,Io=0,To=0;function Mo(t){return Math.max(...t.map((t=>(Number(t.duration)||No)+(Number(t.start_delay)||Oo))))}function zo(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:Le()?0:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||Oo,a=Number(t.duration)||No,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-s:s,u=(Po[t.interpolator||"ease_in_out"]||Ao)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Io)};if("slide"===t.type){var d;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let i=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===i&&(i="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(o["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(o["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=i*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var p,f;const e=1-u+u*(t.scale||To),n=null!==(p=t.pivot_x)&&void 0!==p?p:.5,o=null!==(f=t.pivot_y)&&void 0!==f?f:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:u>0&&u<1,scale:"translate(".concat(i,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=s.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=s.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=s.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),p=s.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),f=[u,p.length?p[p.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(f||"none",";opacity:").concat(c)}}}function Ro(t,e,n){return t*(1-n)+e*n}const Bo={linear:r,ease:Do,ease_in:jo,ease_out:Vo,ease_in_out:Ao,spring:So},Lo=200,Uo=0;function Wo(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:Uo,duration:Le()?0:null!==(r=s.duration)&&void 0!==r?r:Lo,easing:s.interpolator&&s.interpolator in Bo?Bo[s.interpolator]:Ao,css:t=>["top:".concat(Ro(i.top,a.top,t)-o.top,"px"),"left:".concat(Ro(i.left,a.left,t)-o.left,"px"),"width:".concat(Ro(i.width,a.width,t),"px"),"height:".concat(Ro(i.height,a.height,t),"px")].join(";")}}function Ho(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Ho(t))})):e.push(t),e}const{Map:qo}=j;function Jo(t,e,n){const r=t.slice();return r[35]=e[n],r}function Go(t){let e,n;return e=new bn({props:{cls:Eo.state,componentContext:t[0],layoutParams:t[1],parentOf:t[7],parentOfSimpleMode:!0,replaceItems:t[8],$$slots:{default:[ti]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),128&n[0]&&(r.parentOf=t[7]),120&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Ko(t){let e,r,o=t[5],i=Xo(t);return{c(){i.c(),e=L()},m(t,n){i.m(t,n),O(t,e,n),r=!0},p(t,r){32&r[0]&&d(o,o=t[5])?(St(),Ot(i,1,1,n),Pt(),i=Xo(t),i.c(),Nt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Nt(i),r=!0)},o(t){Ot(i),r=!1},d(t){t&&I(e),i.d(t)}}}function Xo(t){let e,n;return e=new gs({props:{componentContext:t[6]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.componentContext=t[6]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Yo(t){let e,n,r,o,i,a,s,l,c,u;function d(){return t[17](t[35])}return r=new gs({props:{componentContext:t[35].componentContextCopy}}),{c(){e=M("div"),n=M("div"),Jt(r.$$.fragment),i=B(),W(n,"class",o=Eo["state__animation-child-inner"]),W(e,"class",a=Eo["state__animation-child"])},m(t,o){O(t,e,o),S(e,n),Gt(r,n,null),S(e,i),l=!0,c||(u=U(e,"introend",d),c=!0)},p(e,n){t=e;const o={};16&n[0]&&(o.componentContext=t[35].componentContextCopy),r.$set(o)},i(n){l||(Nt(r.$$.fragment,n),s||wt((()=>{s=Tt(e,Wo,t[35]),s.start()})),l=!0)},o(t){Ot(r.$$.fragment,t),l=!1},d(t){t&&I(e),Kt(r),c=!1,u()}}}function Zo(t){let e,n,r,o,i,a,s,l,c,u,d="".concat(t[35].offsetLeft,"px"),p="".concat(t[35].offsetTop,"px"),f="".concat(t[35].width,"px"),h="".concat(t[35].height,"px");function g(){return t[16](t[35])}return r=new gs({props:{componentContext:t[35].componentContextCopy}}),{c(){e=M("div"),n=M("div"),Jt(r.$$.fragment),i=B(),W(n,"class",o=Eo["state__animation-child-inner"]),W(e,"class",a=Eo["state__animation-child"]),Y(e,"left",d),Y(e,"top",p),Y(e,"width",f),Y(e,"height",h)},m(t,o){O(t,e,o),S(e,n),Gt(r,n,null),S(e,i),l=!0,c||(u=U(e,"introend",g),c=!0)},p(n,o){t=n;const i={};16&o[0]&&(i.componentContext=t[35].componentContextCopy),r.$set(i),16&o[0]&&d!==(d="".concat(t[35].offsetLeft,"px"))&&Y(e,"left",d),16&o[0]&&p!==(p="".concat(t[35].offsetTop,"px"))&&Y(e,"top",p),16&o[0]&&f!==(f="".concat(t[35].width,"px"))&&Y(e,"width",f),16&o[0]&&h!==(h="".concat(t[35].height,"px"))&&Y(e,"height",h)},i(n){l||(Nt(r.$$.fragment,n),s||wt((()=>{s=Tt(e,zo,t[35]),s.start()})),l=!0)},o(t){Ot(r.$$.fragment,t),l=!1},d(t){t&&I(e),Kt(r),c=!1,u()}}}function Qo(t,e){let n,r,o,i,a;const s=[Zo,Yo],l=[];function c(t,e){return"direction"in t[35]?0:1}return r=c(e),o=l[r]=s[r](e),{key:t,first:null,c(){n=L(),o.c(),i=L(),this.first=n},m(t,e){O(t,n,e),l[r].m(t,e),O(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(St(),Ot(l[a],1,1,(()=>{l[a]=null})),Pt(),o=l[r],o?o.p(e,n):(o=l[r]=s[r](e),o.c()),Nt(o,1),o.m(i.parentNode,i))},i(t){a||(Nt(o),a=!0)},o(t){Ot(o),a=!1},d(t){t&&(I(n),I(i)),l[r].d(t)}}}function ti(t){let e,n,r,o,i=[],a=new qo,s=t[6]&&Ko(t),l=zt(t[4]);const c=t=>t[35];for(let e=0;e<l.length;e+=1){let n=Jo(t,l,e),r=c(n);a.set(r,i[e]=Qo(r,n))}return{c(){s&&s.c(),e=B(),n=M("div");for(let t=0;t<i.length;t+=1)i[t].c();W(n,"class",r=Eo.state__animations),W(n,"aria-hidden","true")},m(r,a){s&&s.m(r,a),O(r,e,a),O(r,n,a);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null);t[18](n),o=!0},p(t,r){t[6]?s?(s.p(t,r),64&r[0]&&Nt(s,1)):(s=Ko(t),s.c(),Nt(s,1),s.m(e.parentNode,e)):s&&(St(),Ot(s,1,1,(()=>{s=null})),Pt()),528&r[0]&&(l=zt(t[4]),St(),i=Bt(i,r,c,1,t,l,a,n,Rt,Qo,null,Jo),Pt())},i(t){if(!o){Nt(s);for(let t=0;t<l.length;t+=1)Nt(i[t]);o=!0}},o(t){Ot(s);for(let t=0;t<i.length;t+=1)Ot(i[t]);o=!1},d(r){r&&(I(e),I(n)),s&&s.d(r);for(let t=0;t<i.length;t+=1)i[t].d();t[18](null)}}}function ei(t){let e,n,r=!t[2]&&Go(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[2]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),4&n[0]&&Nt(r,1)):(r=Go(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function ni(t){return"change_bounds"===t.type?t:"set"===t.type?ni(t.items[0]):null}function ri(t,e,n){let r,o,i,a,s,l,c,{componentContext:u}=e,{layoutParams:d}=e;const p=pt(re),f=pt(Ae);let h,g,m,v,y=!1,$=new Map,b=new Set,_=null,w=[],x=[],k=[],C=[],E=!1;function A(t){n(6,v=(null==t?void 0:t.div)?u.produceChildContext(t.div,{path:t.state_id||"<unknown>"}):void 0)}function j(t,e,n){let{json:r,parentComponentContext:o,transitions:i,node:a}=e;r=u.getJsonWithVars(r),i=u.getJsonWithVars(i);const s=Ho(i),l=a.getBoundingClientRect(),c=Object.assign(Object.assign({},r),{margins:void 0,alpha:(d=s,d.some((t=>"fade"===t.type))?void 0:r.alpha)});var d;return{json:c,componentContextCopy:o.produceChildContext(c,{fake:!0}),elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node}}async function V(t){if(m===t)return;p.setRunning("stateChange",!0);const e=new Set(b);w.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(4,w=[]);let r=[];if(h){const t=h.getBoundingClientRect();r=k.map((e=>j(t,e,"out")))}C.forEach((t=>{$.set(t.id,t.node.getBoundingClientRect())})),x=[],k=[],C=[];const o=l.find((e=>e.state_id===t))||null;if(o?(n(5,m=t),null==a||a.setValue(m),A(o)):u.logError(oe(new Error("Cannot find state with id"),{additional:{stateId:t}})),await _t(),!h)return;const i=h.getBoundingClientRect();let s=x.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>j(i,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||b.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=r.concat(s),d=c.reduce(((t,e)=>Math.max(t,Mo(e.transitions))),0),f=C.filter((t=>$.has(t.id))).map((t=>{const e=Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}});return{json:e,componentContextCopy:t.parentComponentContext.produceChildContext(e,{fake:!0}),rootBbox:i,beforeBbox:$.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:u.getJsonWithVars(ni(t.transitions)),resolvePromise:t.resolvePromise}}));n(4,w=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:d}))),...f]),$.clear(),p.setRunning("stateChange",!1)}function F(t){if(_&&_.has(t))return _.get(t);u.logError(oe(new Error("Missing state block with id"),{additional:{id:t}}))}function D(t){n(4,w=w.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return dt(Ae,{registerInstance(t,e){_||(_=new Map),_.has(t)?u.logError(oe(new Error("Duplicate state with id"),{additional:{id:t}})):_.set(t,e)},unregisterInstance(t){null==_||_.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!h)return Promise.resolve();const a=j(h.getBoundingClientRect(),{json:t,parentComponentContext:e,transitions:r,node:o},i),s=Mo(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(4,w=[...w.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return x.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return k.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const o=t.id;if(!o)return Promise.resolve();const i={id:o,json:t,parentComponentContext:e,transitions:n,node:r};return C.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&$.has(t),registerChild(t){b.add(t)},unregisterChild(t){b.delete(t)}}),ut((()=>{g&&f.unregisterInstance(g)})),t.$$set=t=>{"componentContext"in t&&n(0,u=t.componentContext),"layoutParams"in t&&n(1,d=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(13,r=u.json.div_id||u.json.id),1&t.$$.dirty[0]&&(o=u.getJsonWithVars(u.json.default_state_id)),1&t.$$.dirty[0]&&n(15,i=u.json.state_id_variable),32769&t.$$.dirty[0]&&(a=i?u.getVariable(i,"string"):null),1&t.$$.dirty[0]&&n(14,s=u.origJson),16384&t.$$.dirty[0]&&s&&n(11,E=!1),8193&t.$$.dirty[0]&&(r?n(2,y=!1):(n(2,y=!0),u.logError(oe(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&u.json&&(b=new Set),1&t.$$.dirty[0]&&n(12,l=Array.isArray(u.json.states)&&u.json.states||[]),4096&t.$$.dirty[0]&&n(7,c=l.map((t=>t.div))),4097&t.$$.dirty[0]&&((null==l?void 0:l.length)?n(2,y=!1):(n(2,y=!0),u.logError(oe(new Error('Empty "states" prop for div "state"'))))),9217&t.$$.dirty[0]&&u.json&&(g&&(f.unregisterInstance(g),n(10,g=void 0)),r&&!(null==u?void 0:u.fakeElement)&&(n(10,g=r),f.registerInstance(r,{setState:V,getChild:F}))),6144&t.$$.dirty[0]&&!E&&function(t){if(!E&&(n(11,E=!0),t.length)){const e=(null==a?void 0:a.getValue())||o;if(e){n(5,m=e);const r=t.find((t=>t.state_id===m))||null;A(r),r||u.logError(oe(new Error("Cannot find state for default_state_id"),{additional:{selectedId:m}}))}else{const e=t[0];n(5,m=e.state_id),A(e)}a&&(a.setValue(m),a.subscribe((t=>{V(t)})))}}(l)},[u,d,y,h,w,m,v,c,function(t){const e=u.json.states;e&&(n(12,l=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))),n(0,u.json=Object.assign(Object.assign({},u.json),{states:l}),u),m&&A(l.find((t=>t.state_id===m))||null))},D,g,E,l,r,s,i,t=>D(t),t=>D(t),function(t){gt[t?"unshift":"push"]((()=>{h=t,n(3,h)}))}]}const oi={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:ii}=j;function ai(t,e,n){const r=t.slice();return r[65]=e[n],r}function si(t){let e,n;return e=new bn({props:{cls:Ee("pager",oi,t[10]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[2].map(fi),replaceItems:t[23],$$slots:{default:[di]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Ee("pager",oi,t[10])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(fi)),134068&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function li(t){let e,n,r,o,i;return n=new gs({props:{componentContext:t[65]}}),{c(){e=M("div"),Jt(n.$$.fragment),r=B(),W(e,"class",o=oi.pager__item)},m(t,o){O(t,e,o),Gt(n,e,null),S(e,r),i=!0},p(t,e){const r={};4&e[0]&&(r.componentContext=t[65]),n.$set(r)},i(t){i||(Nt(n.$$.fragment,t),i=!0)},o(t){Ot(n.$$.fragment,t),i=!1},d(t){t&&I(e),Kt(n)}}}function ci(t){let e,r,o,i,a=!t[19]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=oi["pager__arrow-icon-path"]),W(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),W(e,"class",o=Zr.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){O(t,e,r),S(e,n)},d(t){t&&I(e)}}}();return{c(){e=M("div"),a&&a.c(),W(e,"class",r=t[19]||"".concat(oi.pager__arrow," ").concat(Zr.arrow," ").concat(Zr.arrow_left))},m(n,r){O(n,e,r),a&&a.m(e,null),o||(i=U(e,"click",t[52]),o=!0)},p:n,d(t){t&&I(e),a&&a.d(),o=!1,i()}}}function ui(t){let e,r,o,i,a=!t[20]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=oi["pager__arrow-icon-path"]),W(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),W(e,"class",o=Zr.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){O(t,e,r),S(e,n)},d(t){t&&I(e)}}}();return{c(){e=M("div"),a&&a.c(),W(e,"class",r=t[20]||"".concat(oi.pager__arrow," ").concat(Zr.arrow," ").concat(Zr.arrow_right))},m(n,r){O(n,e,r),a&&a.m(e,null),o||(i=U(e,"click",t[53]),o=!0)},p:n,d(t){t&&I(e),a&&a.d(),o=!1,i()}}}function di(t){let e,n,r,o,i,a,s,l,c,u=zt(t[2]),d=[];for(let e=0;e<u.length;e+=1)d[e]=li(ai(t,u,e));const p=t=>Ot(d[t],1,1,(()=>{d[t]=null}));let f=t[8]&&t[9]&&ci(t),h=t[7]&&t[9]&&ui(t);return{c(){e=M("div");for(let t=0;t<d.length;t+=1)d[t].c();o=B(),f&&f.c(),i=B(),h&&h.c(),a=L(),W(e,"class",n=oi.pager__items+" "+(t[17]?ne["root_restrict-scroll"]:"")),W(e,"style",r=se(t[11]))},m(n,r){O(n,e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);t[51](e),O(n,o,r),f&&f.m(n,r),O(n,i,r),h&&h.m(n,r),O(n,a,r),s=!0,l||(c=U(e,"scroll",t[22]),l=!0)},p(t,o){if(4&o[0]){let n;for(u=zt(t[2]),n=0;n<u.length;n+=1){const r=ai(t,u,n);d[n]?(d[n].p(r,o),Nt(d[n],1)):(d[n]=li(r),d[n].c(),Nt(d[n],1),d[n].m(e,null))}for(St(),n=u.length;n<d.length;n+=1)p(n);Pt()}(!s||131072&o[0]&&n!==(n=oi.pager__items+" "+(t[17]?ne["root_restrict-scroll"]:"")))&&W(e,"class",n),(!s||2048&o[0]&&r!==(r=se(t[11])))&&W(e,"style",r),t[8]&&t[9]?f?f.p(t,o):(f=ci(t),f.c(),f.m(i.parentNode,i)):f&&(f.d(1),f=null),t[7]&&t[9]?h?h.p(t,o):(h=ui(t),h.c(),h.m(a.parentNode,a)):h&&(h.d(1),h=null)},i(t){if(!s){for(let t=0;t<u.length;t+=1)Nt(d[t]);s=!0}},o(t){d=d.filter(ii);for(let t=0;t<d.length;t+=1)Ot(d[t]);s=!1},d(n){n&&(I(e),I(o),I(i),I(a)),T(d,n),t[51](null),f&&f.d(n),h&&h.d(n),l=!1,c()}}}function pi(t){let e,n,r=!t[3]&&si(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[3]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),8&n[0]&&Nt(r,1)):(r=si(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const fi=t=>t.json;function hi(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,b,_,w,x,k,C,E,A,j,V,F=n,D=n,S=n,P=n,N=n,O=n;var I,T,M,z,R,B,L,U,W,H;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O()));let{componentContext:q}=e,{layoutParams:J}=e;const G=pt(re),K=G.direction;f(t,K,(t=>r(4,x=t)));const X=G.genId("pager"),Y=G.getCustomization("pagerLeftClass"),Z=G.getCustomization("pagerRightClass"),Q=G.isDesktop;f(t,Q,(t=>r(46,k=t)));const tt=Nn((function(){if(!rt)return;const t=function(){const t=Array.from(nt.children),e=nt.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===st?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:ot}();t!==ot&&r(38,ot=t)}),50);let et,nt,rt=!1,ot=0,it=0,at=!1,st="horizontal",ct="",dt="",ft="";function ht(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===st,o=nt.children[t],i=n?"offsetLeft":"offsetTop",a=n?"left":"top";nt.scroll({[a]:o[i],behavior:e}),r(38,ot=t)}function mt(t,e){let n=ot-t;n<0&&(n="ring"===e?to(n,u.length):0),ht(n)}function vt(t,e){let n=ot+t;n>u.length-1&&(n="ring"===e?to(n,u.length):u.length-1),ht(n)}return lt((()=>{if(r(37,rt=!0),Boolean(document.getElementById("".concat(X,"-tab-0")))){const t=[...nt.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(X,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(X,"-tab-").concat(e))}})),ut((()=>{r(37,rt=!1),et&&(G.unregisterInstance(et),r(36,et=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,q=t.componentContext),"layoutParams"in t&&r(1,J=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(45,o=q.origJson),16384&t.$$.dirty[1]&&o&&r(42,dt=""),1&t.$$.dirty[0]&&(r(16,i=q.getDerivedFromVars(q.json.layout_mode)),D(),D=p(i,(t=>r(47,C=t)))),1&t.$$.dirty[0]&&(r(15,a=q.getDerivedFromVars(q.json.orientation)),N(),N=p(a,(t=>r(50,j=t)))),1&t.$$.dirty[0]&&(r(14,s=q.getDerivedFromVars(q.json.item_spacing)),P(),P=p(s,(t=>r(49,A=t)))),1&t.$$.dirty[0]&&(r(13,l=q.getDerivedFromVars(q.json.paddings)),S(),S=p(l,(t=>r(48,E=t)))),1&t.$$.dirty[0]&&(r(12,c=q.getDerivedFromVars(q.json.restrict_parent_scroll)),O(),O=p(c,(t=>r(17,V=t)))),1&t.$$.dirty[0]&&r(2,u=(Array.isArray(q.json.items)&&q.json.items||[]).map(((t,e)=>q.produceChildContext(t,{path:e})))),1&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(C?"percentage"!==C.type&&"fixed"!==C.type?(r(39,at=!0),q.logError(oe(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(39,at=!1):(r(39,at=!0),q.logError(oe(new Error('Empty "layout_mode" prop for div "pager"'))))),524800&t.$$.dirty[1]&&r(40,st=xr(j,st)),262144&t.$$.dirty[1]){const t=null==A?void 0:A.value;t&&Fe(t)&&r(41,ct=le(t||0))}if(16&t.$$.dirty[0]|133120&t.$$.dirty[1]&&r(42,dt=De(E,x,dt)),512&t.$$.dirty[1]&&r(44,d="horizontal"===st?"grid-auto-columns":"grid-auto-rows"),2080374801&t.$$.dirty[0]|67103&t.$$.dirty[1])if("fixed"===(null==C?void 0:C.type)){const t=ce("horizontal"===st?(("ltr"===x?null===r(26,I=q.json.paddings)||void 0===I?void 0:I.start:null===r(27,T=q.json.paddings)||void 0===T?void 0:T.end)||(null===r(28,M=q.json.paddings)||void 0===M?void 0:M.left)||0)+(("ltr"===x?null===r(29,z=q.json.paddings)||void 0===z?void 0:z.end:null===r(30,R=q.json.paddings)||void 0===R?void 0:R.start)||(null===r(31,B=q.json.paddings)||void 0===B?void 0:B.right)||0):((null===r(32,L=q.json.paddings)||void 0===L?void 0:L.top)||0)+((null===r(33,U=q.json.paddings)||void 0===U?void 0:U.bottom)||0)),e=null===r(34,W=C.neighbour_page_width)||void 0===W?void 0:W.value;r(43,ft=e?"calc(100% + ".concat(t," - 2 * ").concat(ce(e)," - 2 * ").concat(ct,")"):"100%")}else if("percentage"===(null==C?void 0:C.type)){const t=null===r(35,H=C.page_width)||void 0===H?void 0:H.value;r(43,ft="".concat(Number(t),"%"))}15360&t.$$.dirty[1]&&r(11,h={"grid-gap":ct,padding:dt,[d]:ft}),512&t.$$.dirty[1]&&r(10,g={orientation:st}),256&t.$$.dirty[1]&&r(3,m=at),8&t.$$.dirty[0]|32832&t.$$.dirty[1]&&r(9,v=k&&rt&&!m),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(8,y="ltr"===x?ot>0:ot+1<u.length),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(7,b="ltr"===x?ot+1<u.length:ot>0),4&t.$$.dirty[0]|128&t.$$.dirty[1]&&function(t,e){const n=q.json.id;if(n){const r=new Map(w);$(_,w=r.set(n,{instId:X,size:t,currentItem:e,scrollToPagerItem:ht}),w)}}(u.length,ot),128&t.$$.dirty[1]&&function(t){var e;if(t===it)return;it=t;const n=q.getJsonWithVars(null===(e=u[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&q.execAnyActions(n)}(ot),5&t.$$.dirty[0]|32&t.$$.dirty[1]&&q.json&&(et&&(G.unregisterInstance(et),r(36,et=void 0)),q.json.id&&!q.fakeElement&&(r(36,et=q.json.id),G.registerInstance(et,{setCurrentItem(t){if(t<0||t>u.length-1)throw new Error('Item is out of range in "set-current-item" action');ht(t)},setPreviousItem:mt,setNextItem:vt,scrollToStart(){ht(0)},scrollToEnd(){ht(u.length-1)}})))},r(6,_=G.getStore("pagers")),F(),F=p(_,(t=>r(55,w=t))),[q,J,u,m,x,nt,_,b,y,v,g,h,c,l,s,a,i,V,K,Y,Z,Q,tt,function(t){r(0,q=Object.assign(Object.assign({},q),{json:Object.assign(Object.assign({},q.json),{items:t.filter(he)})}))},mt,vt,I,T,M,z,R,B,L,U,W,H,et,rt,ot,at,st,ct,dt,ft,d,o,k,C,E,A,j,function(t){gt[t?"unshift":"push"]((()=>{nt=t,r(5,nt)}))},()=>("ltr"===x?mt:vt)(1,"clamp"),()=>("ltr"===x?vt:mt)(1,"clamp")]}const gi={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_direction_ltr:"divkit-a7473",indicator_direction_rtl:"divkit-a7d63",indicator_placement_stretch:"divkit-b6bd3"};function mi(t,e,n){const r=t.slice();r[44]=e[n],r[47]=n;const o=r[47]===r[10].currentItem;return r[45]=o,r}function vi(t){let e,n=zt(Array(t[10].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=yi(mi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=L()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);O(t,e,n)},p(t,o){if(12583936&o[0]){let i;for(n=zt(Array(t[10].size)),i=0;i<n.length;i+=1){const a=mi(t,n,i);r[i]?r[i].p(a,o):(r[i]=yi(a),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(t){t&&I(e),T(r,t)}}}function yi(t){let e,n,r,o,i,a,l,c;function u(){return t[37](t[47])}return{c(){e=M("div"),W(e,"class",n=Ee("indicator__item",gi,{active:t[45]})+" "+ne.root__clickable),W(e,"role","tab"),W(e,"id",r=t[10].instId+"-tab-"+t[47]),W(e,"aria-controls",o=t[10].instId+"-panel-"+t[47]),W(e,"aria-selected",i=t[45]?"true":"false"),W(e,"tabindex",a=t[45]?0:-1)},m(n,r){O(n,e,r),l||(c=[U(e,"click",u),U(e,"keydown",t[23])],l=!0)},p(s,l){t=s,1024&l[0]&&n!==(n=Ee("indicator__item",gi,{active:t[45]})+" "+ne.root__clickable)&&W(e,"class",n),1024&l[0]&&r!==(r=t[10].instId+"-tab-"+t[47])&&W(e,"id",r),1024&l[0]&&o!==(o=t[10].instId+"-panel-"+t[47])&&W(e,"aria-controls",o),1024&l[0]&&i!==(i=t[45]?"true":"false")&&W(e,"aria-selected",i),1024&l[0]&&a!==(a=t[45]?0:-1)&&W(e,"tabindex",a)},d(t){t&&I(e),l=!1,s(c)}}}function $i(t){let e,n,r,o,i=t[10]&&vi(t);return{c(){e=M("div"),n=M("div"),i&&i.c(),W(n,"class",r=gi.indicator__items),W(n,"role","tablist"),Y(n,"margin","default"===t[4]?"0 ".concat(le(Math.max(0,t[2].width-t[3].width)/2)):""),Y(n,"--divkit-indicator-inactive-width",le(t[3].width)),Y(n,"--divkit-indicator-inactive-height",le(t[3].height)),Y(n,"--divkit-indicator-inactive-border-radius",le(t[3].borderRadius)),Y(n,"--divkit-indicator-inactive-background",t[3].background||""),Y(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),Y(n,"--divkit-indicator-active-width",le(t[2].width)),Y(n,"--divkit-indicator-active-height",le(t[2].height)),Y(n,"--divkit-indicator-active-border-radius",le(t[2].borderRadius)),Y(n,"--divkit-indicator-active-background",t[2].background||""),Y(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),Y(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),Y(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(le((t[5]-t[3].width)/2)):""),Y(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?le(t[7]):""),Y(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),Y(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?le((t[6]-1)*t[7]):""),W(e,"class",o=gi.indicator__scroller)},m(r,o){O(r,e,o),S(e,n),i&&i.m(n,null),t[38](n),t[39](e)},p(t,e){t[10]?i?i.p(t,e):(i=vi(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null),28&e[0]&&Y(n,"margin","default"===t[4]?"0 ".concat(le(Math.max(0,t[2].width-t[3].width)/2)):""),8&e[0]&&Y(n,"--divkit-indicator-inactive-width",le(t[3].width)),8&e[0]&&Y(n,"--divkit-indicator-inactive-height",le(t[3].height)),8&e[0]&&Y(n,"--divkit-indicator-inactive-border-radius",le(t[3].borderRadius)),8&e[0]&&Y(n,"--divkit-indicator-inactive-background",t[3].background||""),8&e[0]&&Y(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),4&e[0]&&Y(n,"--divkit-indicator-active-width",le(t[2].width)),4&e[0]&&Y(n,"--divkit-indicator-active-height",le(t[2].height)),4&e[0]&&Y(n,"--divkit-indicator-active-border-radius",le(t[2].borderRadius)),4&e[0]&&Y(n,"--divkit-indicator-active-background",t[2].background||""),4&e[0]&&Y(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),12&e[0]&&Y(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),56&e[0]&&Y(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(le((t[5]-t[3].width)/2)):""),144&e[0]&&Y(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?le(t[7]):""),80&e[0]&&Y(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),208&e[0]&&Y(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?le((t[6]-1)*t[7]):"")},d(n){n&&I(e),i&&i.d(),t[38](null),t[39](null)}}}function bi(t){let e,n;return e=new bn({props:{cls:Ee("indicator",gi,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[$i]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Ee("indicator",gi,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2044&n[0]|131072&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}const _i=["rounded_rectangle","circle"];function wi(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A=n,j=n,V=n,F=n,D=n,S=n,P=n,N=n,O=n;var I,T;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O()));let{componentContext:M}=e,{layoutParams:z}=e;const R=pt(re),B=R.direction;f(t,B,(t=>r(27,v=t)));let L,U,W,H={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},q={width:10,height:10,borderRadius:5,background:"#33919cb5"},J="default",G=15,K=10,X=5;function Y(t){t!==W.currentItem&&W.scrollToPagerItem(t)}async function Z(t){W.scrollToPagerItem(t),await _t();const e=U.querySelector(".".concat(gi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"componentContext"in t&&r(0,M=t.componentContext),"layoutParams"in t&&r(1,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(26,o=M.origJson),67108864&t.$$.dirty[0]&&o&&(r(4,J="default"),r(5,G=15),r(6,K=10),r(7,X=5),r(2,H={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),r(3,q={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(r(20,i=M.getDerivedFromVars(M.json.shape)),S(),S=p(i,(t=>r(33,x=t)))),1&t.$$.dirty[0]&&(r(19,a=M.getDerivedFromVars(M.json.active_item_color)),F(),F=p(a,(t=>r(31,_=t)))),1&t.$$.dirty[0]&&(r(18,s=M.getDerivedFromVars(M.json.inactive_item_color)),D(),D=p(s,(t=>r(32,w=t)))),1&t.$$.dirty[0]&&(r(17,l=M.getDerivedFromVars(M.json.active_item_size)),P(),P=p(l,(t=>r(34,k=t)))),1&t.$$.dirty[0]&&(r(16,c=M.getDerivedFromVars(M.json.active_shape)),O(),O=p(c,(t=>r(36,E=t)))),1&t.$$.dirty[0]&&(r(15,u=M.getDerivedFromVars(M.json.inactive_shape)),N(),N=p(u,(t=>r(35,C=t)))),1&t.$$.dirty[0]&&(r(14,d=M.getDerivedFromVars(M.json.space_between_centers)),j(),j=p(d,(t=>r(29,$=t)))),1&t.$$.dirty[0]&&(r(13,h=M.getDerivedFromVars(M.json.items_placement)),V(),V=p(h,(t=>r(30,b=t)))),12&t.$$.dirty[0]|63&t.$$.dirty[1]&&(E&&r(2,H=Qn({type:"shape_drawable",shape:E},_i,H)),C&&r(3,q=Qn({type:"shape_drawable",shape:C},_i,q)),!E&&!C&&x)){const t=wn(k,1.3);r(3,q=Qn({type:"shape_drawable",shape:x,color:q.background},_i,q)),r(3,q.background=de(w,1,q.background),q),r(2,H=Object.assign(Object.assign({},q),{width:q.width*t,height:q.height*t,borderRadius:q.borderRadius*t,background:H.background})),r(2,H.background=de(_,1,H.background),H)}if(1660944624&t.$$.dirty[0])if(!b||"default"!==b.type&&"stretch"!==b.type)r(4,J="default"),$&&r(5,G=we($.value,G));else if(r(4,J=b.type),"default"===J)r(5,G=we(null===r(24,I=b.space_between_centers)||void 0===I?void 0:I.value,G));else if("stretch"===J){const t=b;r(6,K=wn(t.max_visible_items,K)),r(7,X=we(null===r(25,T=t.item_spacing)||void 0===T?void 0:T.value,X))}268435456&t.$$.dirty[0]&&async function(t){if(M.json.pager_id&&t.has(M.json.pager_id)&&(r(10,W=t.get(M.json.pager_id)),await _t(),U)){const t=U.children[W.currentItem];if(t){const e=t.offsetLeft;L.scroll({left:e-L.clientWidth/2,behavior:"smooth"})}}}(y),134217744&t.$$.dirty[0]&&r(11,m={placement:J,direction:v})},r(12,g=R.getStore("pagers")),A(),A=p(g,(t=>r(28,y=t))),[M,z,H,q,J,G,K,X,L,U,W,m,g,h,d,u,c,l,s,a,i,B,Y,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=W;if(37===t.which)Z(n-1<0?n:n-1);else if(39===t.which)Z(n+1>=e?n:n+1);else if(36===t.which)Z(0);else{if(35!==t.which)return;Z(e-1)}t.preventDefault()},I,T,o,v,y,$,b,_,w,x,k,C,E,t=>Y(t),function(t){gt[t?"unshift":"push"]((()=>{U=t,r(9,U)}))},function(t){gt[t?"unshift":"push"]((()=>{L=t,r(8,L)}))}]}const xi={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider_direction_rtl:"divkit-fb7b5",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function ki(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&de(t.text_color)||"#000",o=xn(t.font_weight);if(Ze(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:le(t.font_size),fontWeight:o,textColor:r};return"number"==typeof(null==n||null===(i=n.x)||void 0===i?void 0:i.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function Ci(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const Ei="function"==typeof BigInt;function Ai(t){return Ei?BigInt(t):Number(t)}const ji=Ai("9223372036854775807"),Vi=Ai("-9223372036854775808");function Fi(t){const e=Ai(t);if(e>ji||e<Vi)throw new Error("Integer overflow.");if("number"==typeof e&&(Number.isNaN(e)||e!==Math.round(e)))throw new Error("Incorrect integer value.");return e}const Di=Fi(0);function Si(t){let e=t;return e<0&&(e=-e),e}function Pi(t){let e=0;return t>0?e=1:t<0&&(e=-1),Fi(e)}class Ni{constructor(t,e){const n=this.convertValue(e);this.name=t,this.value=n}getName(){return this.name}subscribe(t){return this.store||(this.store=te(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}class Oi extends Ni{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}}class Ii extends Ni{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t)throw new Error("Incorrect variable value");try{return Fi(t)}catch(t){throw new Error("Incorrect variable value")}}fromString(t){try{return Fi(t)}catch(t){throw new Error("Incorrect variable value")}}getType(){return"integer"}}class Ti extends Ni{convertValue(t){if("number"!=typeof t||Number.isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}}class Mi extends Ni{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class zi extends Ni{convertValue(t){if("string"!=typeof t||!pe(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}}class Ri extends Ni{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}class Bi extends Ni{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class Li extends Ni{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const Ui={string:Oi,number:Ti,integer:Ii,boolean:Mi,color:zi,url:Ri,dict:Bi,array:Li};function Wi(t,e,n){if(!(e in Ui))throw new Error("Unsupported variable type");return new Ui[e](t,n)}function Hi(){}function qi(t){return t(this.value),Hi}function Ji(){throw new Error("Cannot change the value of this type of variable")}const Gi={string:class extends Oi{},number:class extends Ti{},integer:class extends Ii{},boolean:class extends Mi{},color:class extends zi{},url:class extends Ri{},dict:class extends Bi{},array:class extends Li{}};for(const t in Gi){const e=Gi[t];e.prototype.subscribe=qi,e.prototype.set=Ji,e.prototype.setValue=Ji}function Ki(t,e,n){const r=t.slice();return r[82]=e[n],r}function Xi(t,e,n){const r=t.slice();return r[82]=e[n],r}function Yi(t){let e,n;return e=new bn({props:{cls:Ee("slider",xi,t[24]),style:t[25],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[oa,t=>{let{focusHandler:e,blurHandler:n}=t;return{80:e,81:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?262144:0)|(n?524288:0)]}]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};16777216&n[0]&&(r.cls=Ee("slider",xi,t[24])),33554432&n[0]&&(r.style=t[25]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),205518844&n[0]|34340864&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Zi(t){let e,n;return{c(){e=M("div"),W(e,"class",n=xi.slider__tick+" "+xi.slider__tick_active),Y(e,"--divkit-slider-tick",t[82])},m(t,n){O(t,e,n)},p(t,n){262144&n[0]&&Y(e,"--divkit-slider-tick",t[82])},d(t){t&&I(e)}}}function Qi(t){let e,n;return{c(){e=M("div"),W(e,"class",n=xi.slider__tick+" "+xi.slider__tick_inactive),Y(e,"--divkit-slider-tick",t[82])},m(t,n){O(t,e,n)},p(t,n){524288&n[0]&&Y(e,"--divkit-slider-tick",t[82])},d(t){t&&I(e)}}}function ta(t){let e,n,r,o,i;return{c(){var a,s,l;e=M("div"),n=M("div"),r=R(t[12]),W(n,"class",o=xi["slider__thumb-text-inner"]),Y(n,"font-size",(null===(a=t[9])||void 0===a?void 0:a.fontSize)||"1em"),Y(n,"font-weight",(null===(s=t[9])||void 0===s?void 0:s.fontWeight)||""),Y(n,"color",(null===(l=t[9])||void 0===l?void 0:l.textColor)||"#000"),W(e,"class",i=xi["slider__thumb-text"])},m(t,o){O(t,e,o),S(e,n),S(n,r)},p(t,e){var o,i,a;4096&e[0]&&K(r,t[12]),512&e[0]&&Y(n,"font-size",(null===(o=t[9])||void 0===o?void 0:o.fontSize)||"1em"),512&e[0]&&Y(n,"font-weight",(null===(i=t[9])||void 0===i?void 0:i.fontWeight)||""),512&e[0]&&Y(n,"color",(null===(a=t[9])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&I(e)}}}function ea(t){let e,n,r=t[10]&&na(t);return{c(){e=M("div"),r&&r.c(),W(e,"class",n=xi.slider__thumb+" "+xi.slider__thumb_secondary),Y(e,"border-radius",le(t[6].borderRadius)),Y(e,"background",t[6].background),Y(e,"box-shadow",t[6].boxShadow||"")},m(t,n){O(t,e,n),r&&r.m(e,null)},p(t,n){t[10]?r?r.p(t,n):(r=na(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),64&n[0]&&Y(e,"border-radius",le(t[6].borderRadius)),64&n[0]&&Y(e,"background",t[6].background),64&n[0]&&Y(e,"box-shadow",t[6].boxShadow||"")},d(t){t&&I(e),r&&r.d()}}}function na(t){let e,n,r,o,i;return{c(){var a,s,l;e=M("div"),n=M("div"),r=R(t[13]),W(n,"class",o=xi["slider__thumb-text-inner"]),Y(n,"font-size",(null===(a=t[10])||void 0===a?void 0:a.fontSize)||"1em"),Y(n,"font-weight",(null===(s=t[10])||void 0===s?void 0:s.fontWeight)||""),Y(n,"color",(null===(l=t[10])||void 0===l?void 0:l.textColor)||"#000"),W(e,"class",i=xi["slider__thumb-text"]+" "+xi["slider__thumb-text_secondary"])},m(t,o){O(t,e,o),S(e,n),S(n,r)},p(t,e){var o,i,a;8192&e[0]&&K(r,t[13]),1024&e[0]&&Y(n,"font-size",(null===(o=t[10])||void 0===o?void 0:o.fontSize)||"1em"),1024&e[0]&&Y(n,"font-weight",(null===(i=t[10])||void 0===i?void 0:i.fontWeight)||""),1024&e[0]&&Y(n,"color",(null===(a=t[10])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&I(e)}}}function ra(t){let e,n,r,o,i;return{c(){e=M("input"),W(e,"type","range"),W(e,"class",n=t[17]?xi.slider__input:"".concat(xi.slider__input," ").concat(xi.slider__input_secondary)),W(e,"min",t[3]),W(e,"max",t[4]),W(e,"step","1"),e.value=r=t[17]?t[12]:t[13],W(e,"aria-label",t[21])},m(n,r){O(n,e,r),o||(i=[U(e,"input",t[73]),U(e,"mousedown",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),U(e,"touchstart",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),U(e,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),U(e,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],o=!0)},p(o,i){t=o,131072&i[0]&&n!==(n=t[17]?xi.slider__input:"".concat(xi.slider__input," ").concat(xi.slider__input_secondary))&&W(e,"class",n),8&i[0]&&W(e,"min",t[3]),16&i[0]&&W(e,"max",t[4]),143360&i[0]&&r!==(r=t[17]?t[12]:t[13])&&(e.value=r),2097152&i[0]&&W(e,"aria-label",t[21])},d(t){t&&I(e),o=!1,s(i)}}}function oa(t){let e,n,r,o,i,a,c,u,d,p,f,h,g,m,v,y,$,b,_,w,x,k,C=zt(t[18]),E=[];for(let e=0;e<C.length;e+=1)E[e]=Zi(Xi(t,C,e));let A=zt(t[19]),j=[];for(let e=0;e<A.length;e+=1)j[e]=Qi(Ki(t,A,e));let V=t[9]&&ta(t),F=t[14]&&ea(t),D=t[14]&&ra(t);return{c(){e=M("div"),n=M("div"),r=M("div"),i=B(),a=M("div"),u=B();for(let t=0;t<E.length;t+=1)E[t].c();d=B();for(let t=0;t<j.length;t+=1)j[t].c();p=B(),f=M("div"),V&&V.c(),g=B(),F&&F.c(),m=B(),v=M("input"),b=B(),D&&D.c(),W(r,"class",o=xi.slider__track),Y(r,"height",le(t[7].height)),Y(r,"border-radius",le(t[7].borderRadius)),Y(r,"background",t[7].background),Y(r,"box-shadow",t[7].boxShadow||""),W(a,"class",c=xi["slider__active-track"]),Y(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),Y(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),Y(a,"width",(100*t[27]).toFixed(2)+"%"),Y(a,"height",le(t[8].height)),Y(a,"border-radius",le(t[8].borderRadius)),Y(a,"background",t[8].background),Y(a,"box-shadow",t[8].boxShadow||""),W(f,"class",h=xi.slider__thumb),Y(f,"border-radius",le(t[5].borderRadius)),Y(f,"background",t[5].background),Y(f,"box-shadow",t[5].boxShadow||""),W(v,"type","range"),W(v,"class",y=t[17]?"".concat(xi.slider__input," ").concat(xi.slider__input_secondary):xi.slider__input),W(v,"min",t[3]),W(v,"max",t[4]),W(v,"step","1"),v.value=$=t[17]?t[13]:t[12],W(v,"aria-label",t[20]),W(n,"class",_=xi["slider__tracks-inner"]),W(e,"class",w=xi["slider__tracks-wrapper"])},m(o,s){O(o,e,s),S(e,n),S(n,r),S(n,i),S(n,a),S(n,u);for(let t=0;t<E.length;t+=1)E[t]&&E[t].m(n,null);S(n,d);for(let t=0;t<j.length;t+=1)j[t]&&j[t].m(n,null);S(n,p),S(n,f),V&&V.m(f,null),S(n,g),F&&F.m(n,null),S(n,m),S(n,v),t[72](v),S(n,b),D&&D.m(n,null),t[74](n),x||(k=[U(v,"input",t[71]),U(v,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),U(v,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],x=!0)},p(e,o){if(t=e,128&o[0]&&Y(r,"height",le(t[7].height)),128&o[0]&&Y(r,"border-radius",le(t[7].borderRadius)),128&o[0]&&Y(r,"background",t[7].background),128&o[0]&&Y(r,"box-shadow",t[7].boxShadow||""),67141632&o[0]&&Y(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),67141632&o[0]&&Y(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),134217728&o[0]&&Y(a,"width",(100*t[27]).toFixed(2)+"%"),256&o[0]&&Y(a,"height",le(t[8].height)),256&o[0]&&Y(a,"border-radius",le(t[8].borderRadius)),256&o[0]&&Y(a,"background",t[8].background),256&o[0]&&Y(a,"box-shadow",t[8].boxShadow||""),262144&o[0]){let e;for(C=zt(t[18]),e=0;e<C.length;e+=1){const r=Xi(t,C,e);E[e]?E[e].p(r,o):(E[e]=Zi(r),E[e].c(),E[e].m(n,d))}for(;e<E.length;e+=1)E[e].d(1);E.length=C.length}if(524288&o[0]){let e;for(A=zt(t[19]),e=0;e<A.length;e+=1){const r=Ki(t,A,e);j[e]?j[e].p(r,o):(j[e]=Qi(r),j[e].c(),j[e].m(n,p))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}t[9]?V?V.p(t,o):(V=ta(t),V.c(),V.m(f,null)):V&&(V.d(1),V=null),32&o[0]&&Y(f,"border-radius",le(t[5].borderRadius)),32&o[0]&&Y(f,"background",t[5].background),32&o[0]&&Y(f,"box-shadow",t[5].boxShadow||""),t[14]?F?F.p(t,o):(F=ea(t),F.c(),F.m(n,m)):F&&(F.d(1),F=null),131072&o[0]&&y!==(y=t[17]?"".concat(xi.slider__input," ").concat(xi.slider__input_secondary):xi.slider__input)&&W(v,"class",y),8&o[0]&&W(v,"min",t[3]),16&o[0]&&W(v,"max",t[4]),143360&o[0]&&$!==($=t[17]?t[13]:t[12])&&(v.value=$),1048576&o[0]&&W(v,"aria-label",t[20]),t[14]?D?D.p(t,o):(D=ra(t),D.c(),D.m(n,null)):D&&(D.d(1),D=null)},d(n){n&&I(e),T(E,n),T(j,n),V&&V.d(),F&&F.d(),t[72](null),D&&D.d(),t[74](null),x=!1,s(k)}}}function ia(t){let e,n,r,o,i=!t[11]&&Yi(t);return{c(){i&&i.c(),e=L()},m(a,s){i&&i.m(a,s),O(a,e,s),n=!0,r||(o=U(window,"resize",t[43]),r=!0)},p(t,n){t[11]?i&&(St(),Ot(i,1,1,(()=>{i=null})),Pt()):i?(i.p(t,n),2048&n[0]&&Nt(i,1)):(i=Yi(t),i.c(),Nt(i,1),i.m(e.parentNode,e))},i(t){n||(Nt(i),n=!0)},o(t){Ot(i),n=!1},d(t){t&&I(e),i&&i.d(t),r=!1,o()}}}const aa={width:10,height:10,borderRadius:5,background:"#000"},sa=["rounded_rectangle","circle"],la=["rounded_rectangle"];function ca(t,e,n,r,o){let i=[];if(o)for(let o=t;o<e;++o)i.push((o-n)/(r-n));else{for(let e=n;e<t;++e)i.push((e-n)/(r-n));for(let t=e;t<r+1;++t)i.push((t-n)/(r-n))}return i}function ua(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,T,M,z,R,B,L,U,W,H,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n;var at,st,ct,dt;t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it()));let{componentContext:ft}=e,{layoutParams:ht}=e;const mt=pt(re),vt=pt(We),yt=mt.direction;let $t,bt,_t;f(t,yt,(t=>r(15,D=t)));let wt,xt,kt,Ct=!1,Et=0,At=100,jt=aa,Vt=jt,Ft=aa,Dt=aa,St=null,Pt=null,Nt=kt,Ot="",It="",Tt=!1,Mt=Ci(U||0,Et,At),zt=Ci(L||0,Et,At);function Rt(t,e){const n=Number(t.target.value);Ct===("first"===e)?(r(13,zt=n),l.setValue(n)):(r(12,Mt=n),s.setValue(n))}let Bt=!1;function Lt(){if(!_t)return;const t=At-Et,e=(null==St?void 0:St.width)||0,n=(null==Pt?void 0:Pt.width)||0;Math.max(e,n)*t>=(null==_t?void 0:_t.clientWidth)?Bt||(ft.logError(oe(new Error("Slider ticks overlap each other"),{level:"warn"})),Bt=!0):Bt=!1}const Ut=Nn(Lt,50);return lt((()=>{Lt()})),ut((()=>{$t&&(mt.unregisterFocusable($t),r(48,$t=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,ft=t.componentContext),"layoutParams"in t&&r(1,ht=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(56,o=ft.origJson),33554432&t.$$.dirty[1]&&o&&(r(5,jt=aa),r(6,Vt=jt),r(7,Ft=aa),r(8,Dt=aa),r(49,St=null),r(50,Pt=null),r(9,kt=void 0),r(10,Nt=void 0),r(20,Ot=""),r(21,It="")),1&t.$$.dirty[0]&&r(55,i=ft.json.thumb_value_variable),1&t.$$.dirty[0]&&r(14,a=ft.json.thumb_secondary_value_variable),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(r(22,s=i&&ft.getVariable(i,"integer")||Wi("temp","integer",0)),rt(),rt=p(s,(t=>r(68,U=t)))),16385&t.$$.dirty[0]&&(r(23,l=a&&ft.getVariable(a,"integer")||Wi("temp","integer",0)),nt(),nt=p(l,(t=>r(67,L=t)))),1&t.$$.dirty[0]&&(r(39,c=ft.getDerivedFromVars(ft.json.min_value)),it(),it=p(c,(t=>r(70,H=t)))),1&t.$$.dirty[0]&&(r(38,u=ft.getDerivedFromVars(ft.json.max_value)),ot(),ot=p(u,(t=>r(69,W=t)))),1&t.$$.dirty[0]&&(r(37,d=ft.getDerivedFromVars(ft.json.thumb_style)),et(),et=p(d,(t=>r(66,B=t)))),1&t.$$.dirty[0]&&(r(36,h=ft.getDerivedFromVars(ft.json.thumb_secondary_style)),tt(),tt=p(h,(t=>r(65,R=t)))),1&t.$$.dirty[0]&&(r(35,g=ft.getDerivedFromVars(ft.json.track_inactive_style)),Q(),Q=p(g,(t=>r(64,z=t)))),1&t.$$.dirty[0]&&(r(34,m=ft.getDerivedFromVars(ft.json.track_active_style)),Z(),Z=p(m,(t=>r(63,M=t)))),1&t.$$.dirty[0]&&(r(33,v=ft.getDerivedFromVars(ft.json.tick_mark_active_style)),Y(),Y=p(v,(t=>r(62,T=t)))),1&t.$$.dirty[0]&&(r(32,y=ft.getDerivedFromVars(ft.json.tick_mark_inactive_style)),X(),X=p(y,(t=>r(61,I=t)))),1&t.$$.dirty[0]&&(r(31,$=ft.getDerivedFromVars(ft.json.thumb_text_style)),K(),K=p($,(t=>r(60,O=t)))),1&t.$$.dirty[0]&&(r(30,b=ft.getDerivedFromVars(ft.json.thumb_secondary_text_style)),G(),G=p(b,(t=>r(59,N=t)))),1&t.$$.dirty[0]&&(r(29,_=ft.getDerivedFromVars(ft.json.accessibility)),J(),J=p(_,(t=>r(58,P=t)))),1&t.$$.dirty[0]&&(r(28,w=ft.getDerivedFromVars(ft.json.secondary_value_accessibility)),q(),q=p(w,(t=>r(57,S=t)))),24&t.$$.dirty[0]|384&t.$$.dirty[2]&&(r(3,Et=Ie(H,Et)),r(4,At=Ie(W,At)),Lt()),4120&t.$$.dirty[0]|64&t.$$.dirty[2]){const t=Ci(U||0,Et,At);t!==Mt&&r(12,Mt=t)}if(8216&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=Ci(L||0,Et,At);t!==zt&&r(13,zt=t)}if(32&t.$$.dirty[0]|16&t.$$.dirty[2]&&r(5,jt=Qn(B,sa,jt)),32&t.$$.dirty[0]|8&t.$$.dirty[2]&&r(6,Vt=Qn(R,sa,jt)),128&t.$$.dirty[0]|4&t.$$.dirty[2]&&r(7,Ft=Qn(z,la,Ft)),256&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(8,Dt=Qn(M,la,Dt)),1&t.$$.dirty[2]){let t=Qn(T,sa,aa);t!==aa&&r(49,St=t)}if(28696&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(St?(r(18,wt=a?ca(Math.min(Mt,zt),Math.max(Mt,zt)+1,Et,At,!0):ca(Et,Mt,Et,At,!0)),Lt()):r(18,wt=[])),1073741824&t.$$.dirty[1]){let t=Qn(I,sa,aa);t!==aa&&r(50,Pt=t)}if(28696&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(Pt?(r(19,xt=a?ca(Math.min(Mt,zt),Math.max(Mt,zt)+1,Et,At,!1):ca(Mt+1,At+1,Et,At,!0)),Lt()):r(19,xt=[])),512&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(9,kt=ki(O,kt)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,Nt=ki(N,kt)),1&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&((null==P?void 0:P.description)?r(20,Ot=P.description):ft.logError(oe(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),16385&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&((null==S?void 0:S.description)?r(21,It=S.description):a&&ft.logError(oe(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),2465&t.$$.dirty[0]){let t=!1;vt.hasAction()?(ft.logError(oe(new Error('Cannot show "slider" inside component with action'))),t=!0):jt===aa?(ft.logError(oe(new Error('Missing "thumb_style" in slider'))),t=!0):Dt===aa?(ft.logError(oe(new Error('Missing "track_active_style" in slider'))),t=!0):Ft===aa&&(ft.logError(oe(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Tt&&r(11,Tt=t)}96&t.$$.dirty[0]&&r(54,x=le(Math.max(...[jt.width,Vt.width,0].filter(Fe)))),96&t.$$.dirty[0]&&r(53,k=le(Math.max(...[jt.height,Vt.height,0].filter(Fe)))),4120&t.$$.dirty[0]&&r(52,C=(Mt-Et)/(At-Et)),24600&t.$$.dirty[0]&&r(51,E=a?(zt-Et)/(At-Et):void 0),3145728&t.$$.dirty[1]&&r(27,A=void 0!==E?Math.abs(E-C):C),3145728&t.$$.dirty[1]&&r(26,j=void 0!==E?Math.min(E,C):0),1632&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&r(25,V={"--divkit-slider-thumb-width":le(jt.width),"--divkit-slider-thumb-height":le(jt.height),"--divkit-slider-thumb-secondary-width":le(Vt.width),"--divkit-slider-thumb-secondary-height":le(Vt.height),"--divkit-slider-text-offset-x":(null===r(44,at=null==kt?void 0:kt.offset)||void 0===at?void 0:at.x)?ce(kt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(45,st=null==kt?void 0:kt.offset)||void 0===st?void 0:st.y)?ce(kt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(46,ct=null==Nt?void 0:Nt.offset)||void 0===ct?void 0:ct.x)?ce(Nt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(47,dt=null==Nt?void 0:Nt.offset)||void 0===dt?void 0:dt.y)?ce(Nt.offset.y):void 0,"--divkit-slider-tick-active-width":St?le(St.width):void 0,"--divkit-slider-tick-active-height":St?le(St.height):void 0,"--divkit-slider-tick-active-border-radius":St?le(St.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Pt?le(Pt.width):void 0,"--divkit-slider-tick-inactive-height":Pt?le(Pt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Pt?le(Pt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Pt?void 0:Pt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Pt?void 0:Pt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":x,"--divkit-slider-max-thumb-height":k,"--divkit-slider-track-part":C,"--divkit-slider-track-secondary-part":E}),32768&t.$$.dirty[0]&&r(24,F={direction:D}),5&t.$$.dirty[0]|131072&t.$$.dirty[1]&&ft.json&&bt&&($t&&(mt.unregisterFocusable($t),r(48,$t=void 0)),ft.json.id&&!ft.fakeElement&&(r(48,$t=ft.json.id),mt.registerFocusable($t,{focus(){bt&&bt.focus()}})))},[ft,ht,bt,Et,At,jt,Vt,Ft,Dt,kt,Nt,Tt,Mt,zt,a,D,_t,Ct,wt,xt,Ot,It,s,l,F,V,j,A,w,_,b,$,y,v,m,g,h,d,u,c,yt,function(t){var e,n;const o="pageX"in t?t.pageX:null===(n=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageX;if(void 0===o)return;const i=_t.getBoundingClientRect();let a=(o-i.left)/i.width;"rtl"===D&&(a=1-a);const s=Et+(At-Et)*a,l=Math.round(Ci(s,Et,At));r(17,Ct=l<(Mt+zt)/2==Mt<zt)},Rt,Ut,at,st,ct,dt,$t,St,Pt,E,C,k,x,i,o,S,P,N,O,I,T,M,z,R,B,L,U,W,H,t=>Rt(t,"first"),function(t){gt[t?"unshift":"push"]((()=>{bt=t,r(2,bt)}))},t=>Rt(t,"second"),function(t){gt[t?"unshift":"push"]((()=>{_t=t,r(16,_t)}))}]}const da={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_end":"divkit-e9096",input__aligner:"divkit-e0491",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_start":"divkit-cd14f","input_alignment-vertical_end":"divkit-cd38f","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0","input__input_has-custom-focus":"divkit-e6b50"};function pa(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=pa(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const o=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-o>=n&&t[r-o]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-o}}function fa(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class ha{constructor(t){this.char=t}}class ga{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class ma{constructor(t){fa(this,"filters",new Map),fa(this,"destructedValue",[]),fa(this,"cursorPos",0),this.maskData=t,this.updateMaskData(t)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let t="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof ha)t+=n.char;else if(n instanceof ga)if(n.char)t+=n.char;else{if(!this.maskData.alwaysVisible)break;t+=n.placeholder}}return t}firstEmptyHolderIndex(){const t=this.destructedValue.findIndex((t=>t instanceof ga&&!t.char));return-1!==t?t:this.destructedValue.length}updateMaskData(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.maskData!==t&&e?this.rawValue:null;this.filters=new Map,this.maskData=t,this.maskData.decoding.forEach((t=>{if(t.filter)try{const e=new RegExp(t.filter);this.filters.set(t.key,e)}catch(e){this.onException(oe(e,{level:"error",additional:{key:t.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((t=>{const e=this.maskData.decoding.find((e=>e.key===t));return e?new ga(null,this.filters.get(e.key),e.placeholder):new ha(t)})),null!==n&&this.overrideRawValue(n)}overrideRawValue(t){this.clearRange(0,this.destructedValue.length),this.replaceChars(t,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(t,e){const n=pa(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),o=this.buildTailSubstring(n);this.cleanup(n);const i=this.firstEmptyHolderIndex(),a=o?this.calculateMaxShift(o,i):void 0;this.replaceChars(r,i,a);const s=this.firstEmptyHolderIndex();this.replaceChars(o,s),this.calculateCursorPosition(n,s)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof ga&&++n,++r;return Math.max(0,n-t.length)}const n=this.calculateInsertableSubstring(t,e);let r=0;for(;r<this.destructedValue.length&&n===this.calculateInsertableSubstring(t,e+r);)++r;return Math.max(0,r-1)}cleanup(t){if(0===t.added&&1===t.removed){let e=t.start;for(;e>=0;){const t=this.destructedValue[e];if(t instanceof ga&&null!==t.char){t.char=null;break}--e}}this.clearRange(t.start,this.destructedValue.length)}clearRange(t,e){let n=t;for(;n<e&&n<this.destructedValue.length;){const t=this.destructedValue[n];t instanceof ga&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const o=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof ga);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=o();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof ga&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let o=e,i=0;for(;o<this.destructedValue.length&&i<r.length;){const t=this.destructedValue[o],e=r[i];t instanceof ga&&(t.char=e,++i),++o}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof ga);)++e;return e}}class va extends ma{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function ya(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class $a extends ma{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1?arguments[1]:void 0;super({pattern:"",decoding:[],alwaysVisible:!1}),ya(this,"currencyFormatter",new Intl.NumberFormat),ya(this,"decimalSeparator","."),ya(this,"localeDigits",{}),ya(this,"trimZeroRegExp",new RegExp("")),this.logError=e,this.initFormatter(t)}updateCurrencyParams(t){const e=this.parseFormat(this.rawValue)||0;this.initFormatter(t);const n=e.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(n)}initFormatter(t){try{this.currencyFormatter=new Intl.NumberFormat(t,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce(((t,e,n)=>(t[n]=this.currencyFormatter.format(n)[0],t)),{}),this.trimZeroRegExp=new RegExp("^".concat(this.localeDigits[0],"+"))}catch(e){this.onException(oe(e,{level:"error",additional:{locale:t}}))}}invalidateMaskDataForFormatted(t){const e=this.currencyFormatter.format(t),n=this.formatPattern(e),r=[{key:"#",filter:"[".concat([...Object.values(this.localeDigits)].join(""),"]"),placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:"[".concat(this.decimalSeparator,"]"),placeholder:this.decimalSeparator}];this.updateMaskData({pattern:n,decoding:r,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(t){const e=this.parseFormat(t)||0;this.invalidateMaskDataForFormatted(e),super.overrideRawValue(t)}applyChangeFrom(t,e){const n=pa(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),o=t.lastIndexOf(this.decimalSeparator),i=r!==o||-1===r&&-1===o,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;i&&this.invalidateMaskDataForFormatted(s),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let o=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(o=e.start);const i=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=i;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const o=t[r];o===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(o)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==o,l=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=l.length<=i;this.isDigit(u)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(u),a--):l.push(u):d&&-1===n&&r===o?(l.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(l.push(this.decimalSeparator),c=!0,n=r),r--}return l.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,e){return t.start<=e&&e<t.start+t.added}isDigit(t){return Boolean(this.localeDigits[t])}onException(t){this.logError(t)}}const ba=3;function _a(t){const e=t.textContent;let n=0;return"string"==typeof e&&(n+=e.length,t instanceof HTMLElement&&("DIV"===t.tagName||"BR"===t.tagName)&&++n),n}function wa(t,e){if(t.nodeType!==ba)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,o=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,o),n.setEnd(r,o),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],o=_a(r);if(e<=o)return void wa(r,e);e-=o}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function xa(t){let e,n;return e=new bn({props:{cls:Ee("input",da,t[16]),style:t[15],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Va,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{95:e,96:n,97:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,0,(e?4:0)|(n?8:0)|(r?16:0)]}]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=Ee("input",da,t[16])),32768&n[0]&&(r.style=t[15]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),157564&n[0]|32&n[1]|60&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function ka(t){let e,n,r,o,i,a;return{c(){e=M("input"),W(e,"type",t[8]),W(e,"inputmode",t[9]),W(e,"class",n=Ee("input__input",da,{"has-custom-focus":t[97],singleline:!0})),W(e,"autocomplete","off"),W(e,"autocapitalize","off"),W(e,"aria-label",t[10]),W(e,"style",r=se(t[14])),e.disabled=o=!t[4],W(e,"placeholder",t[17]),e.value=t[3]},m(n,r){O(n,e,r),t[86](e),i||(a=[U(e,"input",t[38]),U(e,"mousedown",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),U(e,"click",(function(){l(t[36]?t[40]:void 0)&&(t[36]?t[40]:void 0).apply(this,arguments)})),U(e,"focus",(function(){l(t[95])&&t[95].apply(this,arguments)})),U(e,"blur",(function(){l(t[96])&&t[96].apply(this,arguments)}))],i=!0)},p(i,a){t=i,256&a[0]&&W(e,"type",t[8]),512&a[0]&&W(e,"inputmode",t[9]),16&a[3]&&n!==(n=Ee("input__input",da,{"has-custom-focus":t[97],singleline:!0}))&&W(e,"class",n),1024&a[0]&&W(e,"aria-label",t[10]),16384&a[0]&&r!==(r=se(t[14]))&&W(e,"style",r),16&a[0]&&o!==(o=!t[4])&&(e.disabled=o),131072&a[0]&&W(e,"placeholder",t[17]),8&a[0]&&e.value!==t[3]&&(e.value=t[3])},d(n){n&&I(e),t[86](null),i=!1,s(a)}}}function Ca(t){let e,n,r,o,i,a,s,l,c=!t[6]&&t[17]&&Ea(t);function u(t,e){return t[4]?ja:Aa}let d=u(t),p=d(t);return{c(){e=M("span"),c&&c.c(),n=B(),r=M("span"),o=R("​"),s=B(),p.c(),W(r,"class",i=da.input__aligner),W(r,"aria-hidden","true"),W(r,"style",a=se(t[13])),W(e,"class",l=da["input__scroll-wrapper"])},m(t,i){O(t,e,i),c&&c.m(e,null),S(e,n),S(e,r),S(r,o),S(e,s),p.m(e,null)},p(t,o){!t[6]&&t[17]?c?c.p(t,o):(c=Ea(t),c.c(),c.m(e,n)):c&&(c.d(1),c=null),8192&o[0]&&a!==(a=se(t[13]))&&W(r,"style",a),d===(d=u(t))&&p?p.p(t,o):(p.d(1),p=d(t),p&&(p.c(),p.m(e,null)))},d(t){t&&I(e),c&&c.d(),p.d()}}}function Ea(t){let e,n,r,o;return{c(){e=M("div"),n=R(t[17]),W(e,"class",r=da.input__placeholder),W(e,"aria-hidden","true"),W(e,"style",o=se(t[14]))},m(t,r){O(t,e,r),S(e,n)},p(t,r){131072&r[0]&&K(n,t[17]),16384&r[0]&&o!==(o=se(t[14]))&&W(e,"style",o)},d(t){t&&I(e)}}}function Aa(t){let e,n,r,o,i;return{c(){e=M("span"),W(e,"class",n=Ee("input__input",da,{multiline:!0})),W(e,"autocapitalize","off"),W(e,"contenteditable","false"),W(e,"role","textbox"),W(e,"aria-label",t[10]),W(e,"aria-disabled","true"),W(e,"aria-multiline","true"),W(e,"style",r=se(t[14])),void 0===t[6]&&wt((()=>t[85].call(e)))},m(n,r){O(n,e,r),t[84](e),void 0!==t[6]&&(e.innerText=t[6]),o||(i=U(e,"input",t[85]),o=!0)},p(t,n){1024&n[0]&&W(e,"aria-label",t[10]),16384&n[0]&&r!==(r=se(t[14]))&&W(e,"style",r),64&n[0]&&t[6]!==e.innerText&&(e.innerText=t[6])},d(n){n&&I(e),t[84](null),o=!1,i()}}}function ja(t){let e,n,r,o,i;return{c(){e=M("span"),W(e,"class",n=Ee("input__input",da,{"has-custom-focus":t[97],multiline:!0})),W(e,"autocapitalize","off"),W(e,"contenteditable","true"),W(e,"role","textbox"),W(e,"tabindex","0"),W(e,"aria-label",t[10]),W(e,"aria-multiline","true"),W(e,"style",r=se(t[14])),void 0===t[6]&&wt((()=>t[83].call(e)))},m(n,r){O(n,e,r),t[82](e),void 0!==t[6]&&(e.innerText=t[6]),o||(i=[U(e,"input",t[83]),U(e,"input",t[38]),U(e,"paste",Pa),U(e,"mousedown",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),U(e,"click",(function(){l(t[36]?t[40]:void 0)&&(t[36]?t[40]:void 0).apply(this,arguments)})),U(e,"focus",(function(){l(t[95])&&t[95].apply(this,arguments)})),U(e,"blur",(function(){l(t[96])&&t[96].apply(this,arguments)}))],o=!0)},p(o,i){t=o,16&i[3]&&n!==(n=Ee("input__input",da,{"has-custom-focus":t[97],multiline:!0}))&&W(e,"class",n),1024&i[0]&&W(e,"aria-label",t[10]),16384&i[0]&&r!==(r=se(t[14]))&&W(e,"style",r),64&i[0]&&t[6]!==e.innerText&&(e.innerText=t[6])},d(n){n&&I(e),t[82](null),o=!1,s(i)}}}function Va(t){let e;function n(t,e){return t[5]?Ca:ka}let r=n(t),o=r(t);return{c(){o.c(),e=L()},m(t,n){o.m(t,n),O(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&I(e),o.d(t)}}}function Fa(t){let e,n,r=!t[7]&&xa(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[7]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),128&n[0]&&Nt(r,1)):(r=xa(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}const Da="undefined"!=typeof document&&"inputMode"in document.createElement("input"),Sa={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"};function Pa(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Na(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,T,M,z,R,B,L,U,W,H,q,J,G,K,X,Y,Z,Q,tt,et,nt,rt=n,ot=n,it=n,at=n,st=n,ct=n,dt=n,ft=n,ht=n,mt=n,vt=n,yt=n,$t=n,bt=n,wt=n,xt=n,kt=n,Ct=n,Et=n,At=n;var jt;t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>yt())),t.$$.on_destroy.push((()=>$t())),t.$$.on_destroy.push((()=>bt())),t.$$.on_destroy.push((()=>wt())),t.$$.on_destroy.push((()=>xt())),t.$$.on_destroy.push((()=>kt())),t.$$.on_destroy.push((()=>Ct())),t.$$.on_destroy.push((()=>Et())),t.$$.on_destroy.push((()=>At()));let{componentContext:Vt}=e,{layoutParams:Ft}=e;const Dt=pt(re),St=Dt.direction;let Pt,Nt;f(t,St,(t=>r(65,z=t)));let Ot,It,Tt,Mt=!1,zt=null,Rt="",Bt="",Lt=!1,Ut="",Wt=12,Ht="",qt="",Jt="#000",Gt="",Kt="start",Xt="center",Yt="multi_line_text",Zt="text",Qt="",te=null,ee="",ne="",ie="",ae=!0;function se(t){Nt instanceof HTMLInputElement?r(2,Nt.selectionStart=r(2,Nt.selectionEnd=t,Nt),Nt):wa(Nt,t)}async function ue(){if(!Nt||!zt)return;zt.overrideRawValue(T),l.set(zt.rawValue),$(s,I=r(3,Rt=r(6,Bt=zt.value)),I);const t=zt.cursorPosition;await _t(),document.activeElement===Nt&&se(t)}return lt((()=>{Nt&&zt&&T&&(zt.overrideRawValue(T),$(s,I=r(3,Rt=r(6,Bt=zt.value)),I))})),ut((()=>{Pt&&(Dt.unregisterFocusable(Pt),r(42,Pt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,Vt=t.componentContext),"layoutParams"in t&&r(1,Ft=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(61,o=Vt.origJson),1073741824&t.$$.dirty[1]&&o&&(r(44,Ut=""),r(45,Wt=12),r(46,Ot=void 0),r(47,Ht=""),r(48,It=void 0),r(50,Jt="#000"),r(51,Gt=""),r(52,Kt="left"),r(53,Xt="center"),r(54,Yt="multi_line_text"),r(8,Zt="text"),r(9,Tt=void 0),r(4,ae=!0)),1&t.$$.dirty[0]&&r(59,i=Vt.json.text_variable),1&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(60,a=null===r(41,jt=Vt.json.mask)||void 0===jt?void 0:jt.raw_text_variable),1&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(12,s=i&&Vt.getVariable(i,"string")||Wi("temp","string","")),rt(),rt=p(s,(t=>r(62,I=t)))),1&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&(r(11,l=a&&Vt.getVariable(a,"string")||Wi("temp","string","")),ot(),ot=p(l,(t=>r(63,T=t)))),1&t.$$.dirty[0]&&(r(35,c=Vt.getDerivedFromVars(Vt.json.hint_text)),Et(),Et=p(c,(t=>r(81,et=t)))),1&t.$$.dirty[0]&&(r(34,u=Vt.getDerivedFromVars(Vt.json.hint_color)),Ct(),Ct=p(u,(t=>r(80,tt=t)))),1&t.$$.dirty[0]&&(r(33,d=Vt.getDerivedFromVars(Vt.json.font_size)),kt(),kt=p(d,(t=>r(79,Q=t)))),1&t.$$.dirty[0]&&(r(32,h=Vt.getDerivedFromVars(Vt.json.font_weight)),xt(),xt=p(h,(t=>r(78,Z=t)))),1&t.$$.dirty[0]&&(r(31,g=Vt.getDerivedFromVars(Vt.json.font_family)),wt(),wt=p(g,(t=>r(77,Y=t)))),1&t.$$.dirty[0]&&(r(30,m=Vt.getDerivedFromVars(Vt.json.line_height)),bt(),bt=p(m,(t=>r(76,X=t)))),1&t.$$.dirty[0]&&(r(29,v=Vt.getDerivedFromVars(Vt.json.letter_spacing)),$t(),$t=p(v,(t=>r(75,K=t)))),1&t.$$.dirty[0]&&(r(28,y=Vt.getDerivedFromVars(Vt.json.text_color)),yt(),yt=p(y,(t=>r(74,G=t)))),1&t.$$.dirty[0]&&(r(27,b=Vt.getDerivedFromVars(Vt.json.highlight_color)),vt(),vt=p(b,(t=>r(73,J=t)))),1&t.$$.dirty[0]&&(r(26,_=Vt.getDerivedFromVars(Vt.json.text_alignment_horizontal)),mt(),mt=p(_,(t=>r(72,q=t)))),1&t.$$.dirty[0]&&(r(25,w=Vt.getDerivedFromVars(Vt.json.text_alignment_vertical)),ht(),ht=p(w,(t=>r(71,H=t)))),1&t.$$.dirty[0]&&(r(24,x=Vt.getDerivedFromVars(Vt.json.keyboard_type)),dt(),dt=p(x,(t=>r(69,U=t)))),1&t.$$.dirty[0]&&(r(23,k=Vt.getDerivedFromVars(Vt.json.mask)),ct(),ct=p(k,(t=>r(68,L=t)))),1&t.$$.dirty[0]&&(r(22,C=Vt.getDerivedFromVars(Vt.json.max_visible_lines)),st(),st=p(C,(t=>r(67,B=t)))),1&t.$$.dirty[0]&&(r(21,E=Vt.getDerivedFromVars(Vt.json.paddings)),at(),at=p(E,(t=>r(66,R=t)))),1&t.$$.dirty[0]&&(r(20,A=Vt.getDerivedFromVars(Vt.json.accessibility)),it(),it=p(A,(t=>r(64,M=t)))),1&t.$$.dirty[0]&&(r(19,j=Vt.getDerivedFromVars(Vt.json.select_all_on_focus)),At(),At=p(j,(t=>r(36,nt=t)))),1&t.$$.dirty[0]&&(r(18,V=Vt.getDerivedFromVars(Vt.json.is_enabled)),ft(),ft=p(V,(t=>r(70,W=t)))),1&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(i?r(7,Lt=!1):(r(7,Lt=!0),Vt.logError(oe(new Error('Missing "text_variable" in "input"'))))),64&t.$$.dirty[2]&&("fixed_length"===(null==(e=L)?void 0:e.type)?r(43,zt=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new va(r,e)}return n||null}(e,Vt.logError,zt)):"currency"===(null==e?void 0:e.type)&&r(43,zt=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new $a(t.locale,e)}(e,Vt.logError,zt)),zt&&ue()),8&t.$$.dirty[0]|4096&t.$$.dirty[1]|1&t.$$.dirty[2]&&(zt||Rt===I||r(3,Rt=r(6,Bt=I))),4096&t.$$.dirty[1]|2&t.$$.dirty[2]&&zt&&zt.rawValue!==T&&ue(),524288&t.$$.dirty[2]&&r(17,F=et),8192&t.$$.dirty[1]|262144&t.$$.dirty[2]&&r(44,Ut=de(tt,1,Ut)),16384&t.$$.dirty[1]|131072&t.$$.dirty[2]&&r(45,Wt=wn(Q,Wt)),32768&t.$$.dirty[1]|98304&t.$$.dirty[2]&&(r(46,Ot=kn(Z,Ot)),r(47,Ht=Y&&"string"==typeof Y?Dt.typefaceProvider(Y,{fontWeight:Ot||400}):"")),16384&t.$$.dirty[1]|16384&t.$$.dirty[2]){const t=X;Ze(t)&&r(48,It=t/Wt)}var e;8192&t.$$.dirty[2]&&Ve(K)&&r(49,qt=le(K)),524288&t.$$.dirty[1]|4096&t.$$.dirty[2]&&r(50,Jt=de(G,1,Jt)),1048576&t.$$.dirty[1]|2048&t.$$.dirty[2]&&r(51,Gt=de(J,1,Gt)),2097152&t.$$.dirty[1]|1032&t.$$.dirty[2]&&r(52,Kt=Fn(q,z,Kt)),4194304&t.$$.dirty[1]|512&t.$$.dirty[2]&&r(53,Xt=Dn(H,Xt)),16&t.$$.dirty[0]|256&t.$$.dirty[2]&&r(4,ae=Sn(W,ae)),192&t.$$.dirty[2]&&(U&&U in Sa&&(r(8,Zt=Sa[U]),r(54,Yt=U)),"currency"===(null==L?void 0:L.type)&&(r(8,Zt=Da?"text":"tel"),r(9,Tt="decimal"))),8388608&t.$$.dirty[1]&&r(5,D="multi_line_text"===Yt),33701888&t.$$.dirty[1]|56&t.$$.dirty[2]&&(Ze(B)?r(55,Qt="calc(".concat(B*(It||1.25)*(Wt/10)+"em"," + ").concat(ce(we(null==R?void 0:R.top,0)+we(null==R?void 0:R.bottom,0)),")")):r(55,Qt=""),r(56,te=Me(R||void 0,te)),r(57,ee=te?je({top:(Number(te.top)||0)/Wt*10,right:(Number("ltr"===z?te.end:te.start)||Number(te.right)||0)/Wt*10,bottom:(Number(te.bottom)||0)/Wt*10,left:(Number("ltr"===z?te.start:te.end)||Number(te.left)||0)/Wt*10},z):""),r(58,ne=te?je({top:(Number(te.top)||0)/Wt*10,bottom:(Number(te.bottom)||0)/Wt*10},z):"")),1&t.$$.dirty[0]|4&t.$$.dirty[2]&&((null==M?void 0:M.description)?r(10,ie=M.description):Vt.logError(oe(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|7340032&t.$$.dirty[1]&&r(16,S={"highlight-color":Boolean(Gt),multiline:D,"alignment-horizontal":Kt,"alignment-vertical":Xt}),18849792&t.$$.dirty[1]&&r(15,P={"--divkit-input-hint-color":Ut,"--divkit-input-highlight-color":Gt,"--divkit-input-line-height":It,"font-weight":Ot,"font-family":Ht,"letter-spacing":qt,color:Jt,"max-height":Qt}),67125248&t.$$.dirty[1]&&r(14,N={"font-size":le(Wt),padding:ee}),134234112&t.$$.dirty[1]&&r(13,O={"font-size":le(Wt),padding:ne}),5&t.$$.dirty[0]|2048&t.$$.dirty[1]&&Nt&&Vt.json&&(Pt&&(Dt.unregisterFocusable(Pt),r(42,Pt=void 0)),Vt.json.id&&!Vt.fakeElement&&(r(42,Pt=Vt.json.id),Dt.registerFocusable(Pt,{focus(){Nt&&Nt.focus()}})))},[Vt,Ft,Nt,Rt,ae,D,Bt,Lt,Zt,Tt,ie,l,s,O,N,P,S,F,V,j,A,E,C,k,x,w,_,b,y,v,m,g,h,d,u,c,nt,St,function(t){let e=(D?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Rt!==e&&(r(3,Rt=r(6,Bt=e)),s.setValue(e),zt&&async function(){if(!Nt||!zt)return;zt.applyChangeFrom(Rt,Nt instanceof HTMLInputElement?null===Nt.selectionEnd?void 0:Nt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const o=r.getRangeAt(0);let i;if(o){if(!o.collapsed)return 0;n+=o.endOffset,i=o.endContainer}if(i instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,i.childNodes.length);e<r;++e)t+=_a(i.childNodes[e]);n=t}for(;i&&i!==t;){var e;const t=i.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(i);for(let e=0;e<r;++e)n+=_a(t.childNodes[e]);i instanceof HTMLElement&&("DIV"===i.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===ba||"BR"===i.tagName)&&++n,i=t}return n}catch(t){return 0}}(Nt)),l.set(zt.rawValue),$(s,I=r(3,Rt=r(6,Bt=zt.value)),I);const t=zt.cursorPosition;await _t(),document.activeElement===Nt&&se(t)}())},function(){Mt=!1,setTimeout((()=>{Mt=!0}),250)},function(){if(!Mt)if(Nt instanceof HTMLInputElement)Nt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(Nt),t&&(t.removeAllRanges(),t.addRange(e))}},jt,Pt,zt,Ut,Wt,Ot,Ht,It,qt,Jt,Gt,Kt,Xt,Yt,Qt,te,ee,ne,i,a,o,I,T,M,z,R,B,L,U,W,H,q,J,G,K,X,Y,Z,Q,tt,et,function(t){gt[t?"unshift":"push"]((()=>{Nt=t,r(2,Nt)}))},function(){Bt=this.innerText,r(6,Bt),r(43,zt),r(3,Rt),r(62,I)},function(t){gt[t?"unshift":"push"]((()=>{Nt=t,r(2,Nt)}))},function(){Bt=this.innerText,r(6,Bt),r(43,zt),r(3,Rt),r(62,I)},function(t){gt[t?"unshift":"push"]((()=>{Nt=t,r(2,Nt)}))}]}const Oa={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72","select__select_has-custom-focused":"divkit-a46ad","has-custom-focused":"divkit-fc5dc",select__option:"divkit-e774b"};function Ia(t,e,n){const r=t.slice();return r[55]=e[n],r}function Ta(t){let e,n;return e=new bn({props:{cls:Ee("select",Oa,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[za,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{52:e,53:n,54:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?2097152:0)|(n?4194304:0)|(r?8388608:0)]}]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Ee("select",Oa,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8389564&n[0]|148897792&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function Ma(t){let e,n,r,o,i=(t[55].text||t[55].value)+"";return{c(){e=M("option"),n=R(i),W(e,"class",r=Oa.select__option),e.__value=o=t[55].value,X(e,e.__value)},m(t,r){O(t,e,r),S(e,n)},p(t,r){16&r[0]&&i!==(i=(t[55].text||t[55].value)+"")&&K(n,i),16&r[0]&&o!==(o=t[55].value)&&(e.__value=o,X(e,e.__value))},d(t){t&&I(e)}}}function za(t){let e,n,r,o,i,a,c,u,d,p,f=(t[3]||t[23]||"​")+"",h=zt(t[4]),g=[];for(let e=0;e<h.length;e+=1)g[e]=Ma(Ia(t,h,e));return{c(){e=M("span"),n=R(f),i=B(),a=M("select");for(let t=0;t<g.length;t+=1)g[t].c();W(e,"class",r=Oa["select__select-text"]),W(e,"style",o=se(t[9])),W(e,"aria-hidden","true"),W(a,"class",c=Ee("select__select",Oa,{"has-custom-focus":t[52]})),W(a,"aria-label",t[7]),W(a,"style",u=se(t[8])),void 0===t[5]&&wt((()=>t[49].call(a)))},m(r,o){O(r,e,o),S(e,n),O(r,i,o),O(r,a,o);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);t[48](a),Z(a,t[5],!0),d||(p=[U(a,"change",t[49]),U(a,"focus",(function(){l(t[53])&&t[53].apply(this,arguments)})),U(a,"blur",(function(){l(t[54])&&t[54].apply(this,arguments)}))],d=!0)},p(r,i){if(t=r,8388616&i[0]&&f!==(f=(t[3]||t[23]||"​")+"")&&K(n,f),512&i[0]&&o!==(o=se(t[9]))&&W(e,"style",o),16&i[0]){let e;for(h=zt(t[4]),e=0;e<h.length;e+=1){const n=Ia(t,h,e);g[e]?g[e].p(n,i):(g[e]=Ma(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=h.length}2097152&i[1]&&c!==(c=Ee("select__select",Oa,{"has-custom-focus":t[52]}))&&W(a,"class",c),128&i[0]&&W(a,"aria-label",t[7]),256&i[0]&&u!==(u=se(t[8]))&&W(a,"style",u),48&i[0]&&Z(a,t[5])},d(n){n&&(I(e),I(i),I(a)),T(g,n),t[48](null),d=!1,s(p)}}}function Ra(t){let e,n,r=!t[6]&&Ta(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[6]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),64&n[0]&&Nt(r,1)):(r=Ta(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function Ba(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,A,j,V,F,D,S,P,N,O,I,T=n,M=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J()));let{componentContext:G}=e,{layoutParams:K}=e;const X=pt(re),Y=X.direction;let Z,Q;f(t,Y,(t=>r(46,P=t)));let tt,et,nt=!1,rt="",ot=null,it="",at="rgba(0,0,0,.45)",st=12,lt="",ct="",dt="#000",ft="";return ut((()=>{Z&&(X.unregisterFocusable(Z),r(25,Z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,G=t.componentContext),"layoutParams"in t&&r(1,K=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(37,o=G.origJson),64&t.$$.dirty[1]&&o&&(r(26,ot=null),r(28,at="rgba(0,0,0,.45)"),r(29,st=12),r(30,tt=void 0),r(31,lt=""),r(32,et=void 0),r(33,ct=""),r(34,dt="#000"),r(7,ft="")),1&t.$$.dirty[0]&&r(35,i=G.json.value_variable),1&t.$$.dirty[0]&&r(36,a=G.json.options),32&t.$$.dirty[1]&&r(4,s=Array.isArray(a)&&a.filter((t=>"string"==typeof t.value))||[]),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(r(22,l=i&&G.getVariable(i,"string")||Wi("temp","string","")),q(),q=p(l,(t=>r(5,O=t)))),1&t.$$.dirty[0]&&(r(21,c=G.getDerivedFromVars(G.json.paddings)),H(),H=p(c,(t=>r(47,N=t)))),1&t.$$.dirty[0]&&(r(20,u=G.getDerivedFromVars(G.json.hint_text)),J(),J=p(u,(t=>r(23,I=t)))),1&t.$$.dirty[0]&&(r(19,d=G.getDerivedFromVars(G.json.hint_color)),W(),W=p(d,(t=>r(45,S=t)))),1&t.$$.dirty[0]&&(r(18,h=G.getDerivedFromVars(G.json.font_size)),U(),U=p(h,(t=>r(44,D=t)))),1&t.$$.dirty[0]&&(r(17,g=G.getDerivedFromVars(G.json.font_weight)),L(),L=p(g,(t=>r(43,F=t)))),1&t.$$.dirty[0]&&(r(16,m=G.getDerivedFromVars(G.json.font_family)),B(),B=p(m,(t=>r(42,V=t)))),1&t.$$.dirty[0]&&(r(15,v=G.getDerivedFromVars(G.json.line_height)),R(),R=p(v,(t=>r(41,j=t)))),1&t.$$.dirty[0]&&(r(14,y=G.getDerivedFromVars(G.json.letter_spacing)),z(),z=p(y,(t=>r(40,A=t)))),1&t.$$.dirty[0]&&(r(13,$=G.getDerivedFromVars(G.json.text_color)),M(),M=p($,(t=>r(39,E=t)))),1&t.$$.dirty[0]&&(r(12,b=G.getDerivedFromVars(G.json.accessibility)),T(),T=p(b,(t=>r(38,C=t)))),17&t.$$.dirty[0]&&(Array.isArray(s)&&s.length||G.logError(oe(new Error('Empty selection "items" in "select"')))),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(i?r(6,nt=!1):(r(6,nt=!0),G.logError(oe(new Error('Missing "value_variable" in "select"'))))),49&t.$$.dirty[0]){const t=s.find((t=>t.value===O));t?r(3,rt=("string"==typeof t.text?t.text:t.value)||""):(r(3,rt=""),O&&G.logError(oe(new Error('Value from the variable was not found in the selection items for "select"'))))}if(536870912&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(29,st=wn(D,st)),603979776&t.$$.dirty[0]|98304&t.$$.dirty[1]&&(r(26,ot=Me(N||void 0,ot)),r(27,it=ot?je({top:(Number(ot.top)||0)/st*10,right:(Number("ltr"===P?ot.end:ot.start)||Number(ot.right)||0)/st*10,bottom:(Number(ot.bottom)||0)/st*10,left:(Number("ltr"===P?ot.start:ot.end)||Number(ot.left)||0)/st*10},P):"")),268435456&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(28,at=de(S,1,at)),1073741824&t.$$.dirty[0]|6144&t.$$.dirty[1]&&(r(30,tt=kn(F,tt)),r(31,lt=V&&"string"==typeof V?X.typefaceProvider(V,{fontWeight:tt||400}):"")),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]){const t=j;Ze(t)&&r(32,et=t/st)}536870912&t.$$.dirty[0]|512&t.$$.dirty[1]&&Ve(A)&&r(33,ct=le(A/st*10)),264&t.$$.dirty[1]&&r(34,dt=de(E,1,dt)),1&t.$$.dirty[0]|128&t.$$.dirty[1]&&((null==C?void 0:C.description)?r(7,ft=C.description):G.logError(oe(new Error('Missing accessibility "description" for select'),{level:"warn"}))),8&t.$$.dirty[0]&&r(11,_={hint:!rt}),1342177280&t.$$.dirty[0]|9&t.$$.dirty[1]&&r(10,w={"--divkit-input-hint-color":at,"font-weight":tt,"font-family":lt,color:dt}),671088640&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(9,x={padding:it,"font-size":le(st),"line-height":et,"letter-spacing":ct}),536870912&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(8,k={"font-size":le(st),"line-height":et,"letter-spacing":ct}),33554437&t.$$.dirty[0]&&G.json&&Q&&(Z&&(X.unregisterFocusable(Z),r(25,Z=void 0)),G.json.id&&!G.fakeElement&&(r(25,Z=G.json.id),X.registerFocusable(Z,{focus(){Q&&Q.focus()}})))},[G,K,Q,rt,s,O,nt,ft,k,x,w,_,b,$,y,v,m,g,h,d,u,c,l,I,Y,Z,ot,it,at,st,tt,lt,et,ct,dt,i,a,o,C,E,A,j,V,F,D,S,P,N,function(t){gt[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},function(){O=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),l.set(O),r(4,s),r(36,a),r(0,G)}]}const La={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function Ua(t,e,n){const r=t.slice();return r[47]=e[n],r}function Wa(t,e,n){const r=t.slice();return r[47]=e[n],r}function Ha(t){let e,n;return e=new bn({props:{cls:Ee("video",La,t[12]),customActions:"video",componentContext:t[0],layoutParams:t[1],$$slots:{default:[Za]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=Ee("video",La,t[12])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8184&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function qa(t){let e,n,r,o,i,a,l=zt(t[4]),c=[];for(let e=0;e<l.length;e+=1)c[e]=Ka(Ua(t,l,e));return{c(){e=M("video");for(let t=0;t<c.length;t+=1)c[t].c();W(e,"class",n=La.video__video),W(e,"style",r=se(t[11])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],W(e,"poster",t[9]),W(e,"preload",o=t[8]?"metadata":"auto")},m(n,r){O(n,e,r);for(let t=0;t<c.length;t+=1)c[t]&&c[t].m(e,null);t[41](e),i||(a=[U(e,"timeupdate",t[21]),U(e,"ended",t[22]),U(e,"playing",t[23]),U(e,"pause",t[24]),U(e,"waiting",t[25]),U(e,"error",t[26])],i=!0)},p(t,n){if(67108880&n[0]){let r;for(l=zt(t[4]),r=0;r<l.length;r+=1){const o=Ua(t,l,r);c[r]?c[r].p(o,n):(c[r]=Ka(o),c[r].c(),c[r].m(e,null))}for(;r<c.length;r+=1)c[r].d(1);c.length=l.length}2048&n[0]&&r!==(r=se(t[11]))&&W(e,"style",r),32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),512&n[0]&&W(e,"poster",t[9]),256&n[0]&&o!==(o=t[8]?"metadata":"auto")&&W(e,"preload",o)},d(n){n&&I(e),T(c,n),t[41](null),i=!1,s(a)}}}function Ja(t){let e,n,r,o,i,a,l,c,u="".concat(t[10],"%"),d=zt(t[4]),p=[];for(let e=0;e<d.length;e+=1)p[e]=Ya(Wa(t,d,e));return{c(){e=M("div"),n=M("video");for(let t=0;t<p.length;t+=1)p[t].c();W(n,"class",r=La.video__video),W(n,"style",o=se(t[11])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],W(n,"poster",t[9]),W(n,"preload",i=t[8]?"metadata":"auto"),W(e,"class",a=La["video__aspect-wrapper"]),Y(e,"padding-bottom",u)},m(r,o){O(r,e,o),S(e,n);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(n,null);t[40](n),l||(c=[U(n,"timeupdate",t[21]),U(n,"ended",t[22]),U(n,"playing",t[23]),U(n,"pause",t[24]),U(n,"waiting",t[25]),U(n,"error",t[26])],l=!0)},p(t,r){if(67108880&r[0]){let e;for(d=zt(t[4]),e=0;e<d.length;e+=1){const o=Wa(t,d,e);p[e]?p[e].p(o,r):(p[e]=Ya(o),p[e].c(),p[e].m(n,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=d.length}2048&r[0]&&o!==(o=se(t[11]))&&W(n,"style",o),32&r[0]&&(n.loop=t[5]),64&r[0]&&(n.autoplay=t[6]),128&r[0]&&(n.muted=t[7]),512&r[0]&&W(n,"poster",t[9]),256&r[0]&&i!==(i=t[8]?"metadata":"auto")&&W(n,"preload",i),1024&r[0]&&u!==(u="".concat(t[10],"%"))&&Y(e,"padding-bottom",u)},d(n){n&&I(e),T(p,n),t[40](null),l=!1,s(c)}}}function Ga(t){let e,n,r,o,i;return{c(){e=M("source"),u(e.src,n=t[47].src)||W(e,"src",n),W(e,"type",r=t[47].type)},m(n,r){O(n,e,r),o||(i=U(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[47].src)&&W(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&W(e,"type",r)},d(t){t&&I(e),o=!1,i()}}}function Ka(t){let e,n=t[47],r=Ga(t);return{c(){r.c(),e=L()},m(t,n){r.m(t,n),O(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[47])?(r.d(1),r=Ga(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&I(e),r.d(t)}}}function Xa(t){let e,n,r,o,i;return{c(){e=M("source"),u(e.src,n=t[47].src)||W(e,"src",n),W(e,"type",r=t[47].type)},m(n,r){O(n,e,r),o||(i=U(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[47].src)&&W(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&W(e,"type",r)},d(t){t&&I(e),o=!1,i()}}}function Ya(t){let e,n=t[47],r=Xa(t);return{c(){r.c(),e=L()},m(t,n){r.m(t,n),O(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[47])?(r.d(1),r=Xa(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&I(e),r.d(t)}}}function Za(t){let e;function n(t,e){return t[12].aspect?Ja:qa}let r=n(t),o=r(t);return{c(){o.c(),e=L()},m(t,n){o.m(t,n),O(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&I(e),o.d(t)}}}function Qa(t){let e,n,r=!t[2]&&Ha(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[2]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),4&n[0]&&Nt(r,1)):(r=Ha(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function ts(t,e,r){let o,i,a,s,l,c,u,d,f,h,g,m,v,y,$,b,_,w,x,k,C=n,E=n,A=n,j=n,V=n,F=n,D=n,S=n;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>S()));let{componentContext:P}=e,{layoutParams:N}=e;const O=pt(re);let I,T,M,z,R=!1,B=!1,L=[],U=!1,W=!1,H=!1,q=!1,J="fit",G="0";function K(t){B?B=!1:T&&r(3,T.currentTime=Number(t)/1e3,T)}function X(){null==T||T.pause()}function Y(){const t=null==T?void 0:T.play();t&&t.catch((t=>{P.logError(oe(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}return ut((()=>{I&&(O.unregisterInstance(I),r(27,I=void 0)),z&&(z(),r(29,z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,P=t.componentContext),"layoutParams"in t&&r(1,N=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&P.json&&(r(5,U=!1),r(6,W=!1),r(7,H=!1),r(8,q=!1),r(9,M=void 0),r(28,J="fit")),1&t.$$.dirty[0]&&r(31,o=P.json.elapsed_time_variable),1&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(30,i=o&&P.getVariable(o,"integer")||Wi("temp","integer",0)),1610612736&t.$$.dirty[0]&&i&&(z&&z(),r(29,z=i.subscribe(K))),1&t.$$.dirty[0]&&(r(20,a=P.getDerivedFromVars(P.json.video_sources)),S(),S=p(a,(t=>r(39,k=t)))),1&t.$$.dirty[0]&&(r(19,s=P.getDerivedFromVars(P.json.repeatable)),D(),D=p(s,(t=>r(38,x=t)))),1&t.$$.dirty[0]&&(r(18,l=P.getDerivedFromVars(P.json.autostart)),C(),C=p(l,(t=>r(32,v=t)))),1&t.$$.dirty[0]&&(r(17,c=P.getDerivedFromVars(P.json.muted)),F(),F=p(c,(t=>r(37,w=t)))),1&t.$$.dirty[0]&&(r(16,u=P.getDerivedFromVars(P.json.preload_required)),V(),V=p(u,(t=>r(36,_=t)))),1&t.$$.dirty[0]&&(r(15,d=P.getDerivedFromVars(P.json.preview)),j(),j=p(d,(t=>r(35,b=t)))),1&t.$$.dirty[0]&&(r(14,f=P.getDerivedFromVars(P.json.scale)),A(),A=p(f,(t=>r(34,$=t)))),1&t.$$.dirty[0]&&(r(13,h=P.getDerivedFromVars(P.json.aspect)),E(),E=p(h,(t=>r(33,y=t)))),17&t.$$.dirty[0]|256&t.$$.dirty[1]&&(r(4,(e=k,n=L,L=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):n)),L.length?r(2,R=!1):(r(2,R=!0),P.logError(oe(new Error('Missing "video_sources" in "video"'))))),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(5,U=Sn(x,U)),64&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(6,W=Sn(v,W)),128&t.$$.dirty[0]|64&t.$$.dirty[1]&&r(7,H=Sn(w,H)),256&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(8,q=Sn(_,q)),512&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(9,M="string"==typeof b?Vr(b):M),268435456&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(28,J=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}($)||J),4&t.$$.dirty[1]){const t=null==y?void 0:y.ratio;t&&Ze(t)?r(10,G=(100/Number(t)).toFixed(2)):r(10,G="0")}134217733&t.$$.dirty[0]&&P.json&&(I&&(O.unregisterInstance(I),r(27,I=void 0)),!P.json.id||R||P.fakeElement||(r(27,I=P.json.id),O.registerInstance(I,{pause:X,start:Y}))),9&t.$$.dirty[0]|2&t.$$.dirty[1]&&P.json&&v&&T&&Y(),1024&t.$$.dirty[0]&&r(12,g={aspect:"0"!==G}),268435456&t.$$.dirty[0]&&r(11,m={"object-fit":J})},[P,N,R,T,L,U,W,H,q,M,G,m,g,h,f,d,u,c,l,s,a,function(){T&&(B=!0,i.setValue(Math.floor(1e3*T.currentTime)))},function(){const t=P.getJsonWithVars(P.json.end_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.resume_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.pause_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.buffering_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.fatal_actions);P.execAnyActions(t)},I,J,z,i,o,v,y,$,b,_,w,x,k,function(t){gt[t?"unshift":"push"]((()=>{T=t,r(3,T)}))},function(t){gt[t?"unshift":"push"]((()=>{T=t,r(3,T)}))}]}function es(t,e,n){const r=t.slice();return r[12]=e[n],r}function ns(t){let e,n;return e=new bn({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[ls]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.componentContext=t[0]),2&n&&(r.layoutParams=t[1]),33277&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function rs(t){let e,n=[t[7]],r={};for(let t=0;t<n.length;t+=1)r=o(r,n[t]);return{c(){e=M("template"),q(e,r)},m(n,r){O(n,e,r),e.content.innerHTML=t[6]},p(t,o){64&o&&(e.content.innerHTML=t[6]),q(e,r=Lt(n,[128&o&&t[7]]))},d(t){t&&I(e)}}}function os(t){let e,r,o=t[4],i=as(t);return{c(){i.c(),e=L()},m(t,n){i.m(t,n),O(t,e,n),r=!0},p(t,r){16&r&&d(o,o=t[4])?(St(),Ot(i,1,1,n),Pt(),i=as(t),i.c(),Nt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Nt(i),r=!0)},o(t){Ot(i),r=!1},d(t){t&&I(e),i.d(t)}}}function is(t){let e,n;return e=new gs({props:{componentContext:t[12]}}),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};256&n&&(r.componentContext=t[12]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function as(t){let e,n,r=zt(t[8]),o=[];for(let e=0;e<r.length;e+=1)o[e]=is(es(t,r,e));const i=t=>Ot(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=L()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);O(t,e,r),n=!0},p(t,n){if(256&n){let a;for(r=zt(t[8]),a=0;a<r.length;a+=1){const i=es(t,r,a);o[a]?(o[a].p(i,n),Nt(o[a],1)):(o[a]=is(i),o[a].c(),Nt(o[a],1),o[a].m(e.parentNode,e))}for(St(),a=r.length;a<o.length;a+=1)i(a);Pt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Nt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ot(o[t]);n=!1},d(t){t&&I(e),T(o,t)}}}function ss(t){let e,n,r,i=t[6]&&rs(t),a=!t[3]&&t[4]&&os(t),s=[t[0].json.custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=o(l,s[t]);return{c(){e=M(t[2].element),i&&i.c(),n=B(),a&&a.c(),G(t[2].element)(e,l)},m(o,s){O(o,e,s),i&&i.m(e,null),S(e,n),a&&a.m(e,null),t[10](e),r=!0},p(t,r){t[6]?i?i.p(t,r):(i=rs(t),i.c(),i.m(e,n)):i&&(i.d(1),i=null),!t[3]&&t[4]?a?(a.p(t,r),24&r&&Nt(a,1)):(a=os(t),a.c(),Nt(a,1),a.m(e,null)):a&&(St(),Ot(a,1,1,(()=>{a=null})),Pt()),G(t[2].element)(e,l=Lt(s,[1&r&&(t[0].json.custom_props||{})]))},i(t){r||(Nt(a),r=!0)},o(t){Ot(a),r=!1},d(n){n&&I(e),i&&i.d(),a&&a.d(),t[10](null)}}}function ls(t){let e,r,o=t[2].element,i=t[2].element&&ss(t);return{c(){i&&i.c(),e=L()},m(t,n){i&&i.m(t,n),O(t,e,n)},p(t,n){t[2].element?o?d(o,t[2].element)?(i.d(1),i=ss(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):i.p(t,n):(i=ss(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):o&&(i.d(1),i=null,o=t[2].element)},i:n,o(t){Ot(i,t),r=!1},d(t){t&&I(e),i&&i.d(t)}}}function cs(t){let e,n,r=t[2]&&ns(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Nt(r,1)):(r=ns(t),r.c(),Nt(r,1),r.m(e.parentNode,e)):r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt())},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function us(t,e,n){let r,o;var i;let{componentContext:a}=e,{layoutParams:s}=e;const l=pt(re);let c,u=null,d="",p={},f=!1;return lt((()=>{if(c&&"divKitApiCallback"in c&&"function"==typeof c.divKitApiCallback){const t=l.getExtensionContext();c.divKitApiCallback(t)}})),t.$$set=t=>{"componentContext"in t&&n(0,a=t.componentContext),"layoutParams"in t&&n(1,s=t.layoutParams)},t.$$.update=()=>{if(517&t.$$.dirty)if("string"==typeof a.json.custom_type&&a.json.custom_type&&(null===n(9,i=l.customComponents)||void 0===i?void 0:i.has(a.json.custom_type))){if(n(2,u=l.customComponents.get(a.json.custom_type)),"function"==typeof u.template){const t=l.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(6,d=u.template({props:a.json.custom_props,variables:e}))}else u.template&&"string"==typeof u.template?n(6,d=u.template):n(6,d="");n(7,p={shadowrootmode:u.shadowRootMode||"open"})}else n(2,u=null),n(6,d=";"),a.logError(oe(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(4,r=a.json.items),17&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(3,f=!1):(n(3,f=!0),a.logError(oe(new Error('Incorrect "items" prop for div "custom"'))))),25&t.$$.dirty&&n(8,o=(!f&&r||[]).map(((t,e)=>a.produceChildContext(t,{path:e}))))},[a,s,u,f,r,c,d,p,o,i,function(t){gt[t?"unshift":"push"]((()=>{c=t,n(5,c)}))}]}const ds={};function ps(t){let e,n,r;var o=t[2];function i(t,e){return{props:{componentContext:t[0],layoutParams:t[1]}}}return o&&(e=tt(o,i(t))),{c(){e&&Jt(e.$$.fragment),n=L()},m(t,o){e&&Gt(e,t,o),O(t,n,o),r=!0},p(t,r){if(4&r&&o!==(o=t[2])){if(e){St();const t=e;Ot(t.$$.fragment,1,0,(()=>{Kt(t,1)})),Pt()}o?(e=tt(o,i(t)),Jt(e.$$.fragment),Nt(e.$$.fragment,1),Gt(e,n.parentNode,n)):e=null}else if(o){const n={};1&r&&(n.componentContext=t[0]),2&r&&(n.layoutParams=t[1]),e.$set(n)}},i(t){r||(e&&Nt(e.$$.fragment,t),r=!0)},o(t){e&&Ot(e.$$.fragment,t),r=!1},d(t){t&&I(n),e&&Kt(e,t)}}}function fs(t){let e,n,r=t[2]&&ps(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Nt(r,1)):(r=ps(t),r.c(),Nt(r,1),r.m(e.parentNode,e)):r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt())},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}function hs(t,e,n){let{componentContext:r}=e,{layoutParams:o}=e;const i=pt(re);let a;return t.$$set=t=>{"componentContext"in t&&n(0,r=t.componentContext),"layoutParams"in t&&n(1,o=t.layoutParams)},t.$$.update=()=>{if(5&t.$$.dirty){const t=r.json;if(n(2,a=(null==t?void 0:t.type)&&ds[t.type]||void 0),!a){let e;e=(null==t?void 0:t.type)&&i.hasTemplate(t.type)?"Recursive template":"Unknown component",r.logError(oe(new Error(e),{additional:{component:(null==t?void 0:t.type)||"<missing>"}}))}}},[r,o,a]}ds.text=class extends Zt{constructor(t){super(),Xt(this,t,qn,Hn,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ds.container=class extends Zt{constructor(t){super(),Xt(this,t,_r,mr,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.separator=class extends Zt{constructor(t){super(),Xt(this,t,Ar,Er,d,{componentContext:0,layoutParams:1})}},ds.image=zr,ds.gif=zr,ds.grid=class extends Zt{constructor(t){super(),Xt(this,t,Xr,Gr,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.gallery=class extends Zt{constructor(t){super(),Xt(this,t,po,uo,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ds.tabs=class extends Zt{constructor(t){super(),Xt(this,t,Co,ko,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},ds.state=class extends Zt{constructor(t){super(),Xt(this,t,ri,ei,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.pager=class extends Zt{constructor(t){super(),Xt(this,t,hi,pi,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ds.indicator=class extends Zt{constructor(t){super(),Xt(this,t,wi,bi,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.slider=class extends Zt{constructor(t){super(),Xt(this,t,ua,ia,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},ds.input=class extends Zt{constructor(t){super(),Xt(this,t,Na,Fa,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},ds.select=class extends Zt{constructor(t){super(),Xt(this,t,Ba,Ra,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.video=class extends Zt{constructor(t){super(),Xt(this,t,ts,Qa,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},ds.custom=class extends Zt{constructor(t){super(),Xt(this,t,us,cs,d,{componentContext:0,layoutParams:1})}};const gs=class extends Zt{constructor(t){super(),Xt(this,t,hs,fs,d,{componentContext:0,layoutParams:1})}},ms={"root-svg-filters":"divkit-dc22b"};function vs(t,e,n){const r=t.slice();r[1]=e[n];const o=r[1].split(":");return r[2]=o[0],r[3]=o[1],r}function ys(t){let e,n,r,o=zt([...Object.keys(t[0])]),i=[];for(let e=0;e<o.length;e+=1)i[e]=ws(vs(t,o,e));return{c(){e=z("svg"),n=z("defs");for(let t=0;t<i.length;t+=1)i[t].c();W(e,"class",r=ms["root-svg-filters"]),W(e,"aria-hidden","true")},m(t,r){O(t,e,r),S(e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=zt([...Object.keys(t[0])]),r=0;r<o.length;r+=1){const a=vs(t,o,r);i[r]?i[r].p(a,e):(i[r]=ws(a),i[r].c(),i[r].m(n,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&I(e),T(i,t)}}}function $s(t){let e,n;return{c(){e=z("feBlend"),W(e,"in2","SourceGraphic"),W(e,"mode",n=t[3])},m(t,n){O(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&W(e,"mode",n)},d(t){t&&I(e)}}}function bs(t){let e;return{c(){e=z("feComposite"),W(e,"in2","SourceGraphic"),W(e,"operator","arithmetic"),W(e,"k1","1"),W(e,"k2","0"),W(e,"k3","0"),W(e,"k4","0")},m(t,n){O(t,e,n)},p:n,d(t){t&&I(e)}}}function _s(t){let e,n;return{c(){e=z("feComposite"),W(e,"in2","SourceGraphic"),W(e,"operator",n=t[3].split("_")[1])},m(t,n){O(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&W(e,"operator",n)},d(t){t&&I(e)}}}function ws(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?_s:"multiply"===t[3]?bs:$s}let a=i(t),s=a(t);return{c(){e=z("filter"),n=z("feFlood"),s.c(),W(n,"flood-color",r=t[2]),W(e,"id",o=t[0][t[1]])},m(t,r){O(t,e,r),S(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&W(n,"flood-color",r),a===(a=i(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&o!==(o=t[0][t[1]])&&W(e,"id",o)},d(t){t&&I(e),s.d()}}}function xs(t){let e,r=Object.keys(t[0]).length,o=r&&ys(t);return{c(){o&&o.c(),e=L()},m(t,n){o&&o.m(t,n),O(t,e,n)},p(t,n){let[i]=n;1&i&&(r=Object.keys(t[0]).length),r?o?o.p(t,i):(o=ys(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:n,o:n,d(t){t&&I(e),o&&o.d(t)}}}function ks(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Cs=class extends Zt{constructor(t){super(),Xt(this,t,ks,xs,d,{svgFiltersMap:0})}};function Es(t,e,n,r){const o=n[t.type];if(!o)return r(oe(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let i;const a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(a[i]=t[i]);const s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),o=r.filter((t=>"$"!==t.charAt(0))),i=r.filter((t=>"$"===t.charAt(0)));return o.forEach((r=>{const o=n[r];"object"==typeof o&&null!==o?(e[r]=Array.isArray(o)?[]:{},t(e[r],o)):e[r]=o})),i.forEach((t=>{const r=n[t],o=a[r];if(void 0!==o){const n=t.substring(1);e[n]=o}})),e}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(s[i]=t[i]);return{json:s,templateContext:a}}function As(){}function js(t){return{subscribe:e=>(e(t),As)}}function Vs(t,e){return e.length?e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t):t}function Fs(t,e){return e.length?e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t):t}function Ds(t){if(t.every((t=>"string"==typeof t)))return{type:"StringLiteral",value:t.join("")};let e=t.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]).reduce(((t,e)=>("string"==typeof e?t.quasis.push({type:"StringLiteral",value:e}):(t.quasis.length===t.expressions.length&&t.quasis.push({type:"StringLiteral",value:""}),t.expressions.push(e)),t)),{type:"TemplateLiteral",quasis:[],expressions:[]});return e.quasis.length===e.expressions.length&&e.quasis.push({type:"StringLiteral",value:""}),e}function Ss(t){try{return Fi(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function Ps(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function Ns(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,Ns.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function Os(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Is(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:Ce,JsonStringContents:function(){var t,e,n;for(t=pe,e=[],n=Ee();n!==r;)e.push(n),n=Ee();return fe=t,e=At(e)}},a=Ce,s="@{",l="}",c="@{}",u="\\",d="?",p=":",f="!:",h="||",g="&&",m="==",v="!=",y=">=",$=">",b="<=",_="<",w="+",x="-",k="/",C="*",E="%",A="!",j=".",V="(",F=")",D=",",S="'",P="e",N="E",O=/^[^}]/,I=/^[^'}]/,T=/^[0-9]/,M=/^[a-zA-Z_]/,z=/^[a-zA-Z_0-9]/,R=/^[ \t\r\n]/,B=$e("@{",!1),L=$e("}",!1),U=$e("@{}",!1),W=$e("\\",!1),H={type:"any"},q=be(["}"],!0,!1),J=$e("?",!1),G=$e(":",!1),K=$e("!:",!1),X=$e("||",!1),Y=$e("&&",!1),Z=$e("==",!1),Q=$e("!=",!1),tt=$e(">=",!1),et=$e(">",!1),nt=$e("<=",!1),rt=$e("<",!1),ot=$e("+",!1),it=$e("-",!1),at=$e("/",!1),st=$e("*",!1),lt=$e("%",!1),ct=$e("!",!1),ut=$e(".",!1),dt=$e("(",!1),pt=$e(")",!1),ft=$e(",",!1),ht=_e("string"),gt=$e("'",!1),mt=be(["'","}"],!0,!1),vt=_e("integer"),yt=be([["0","9"]],!1,!1),$t=_e("number"),bt=$e("e",!1),_t=$e("E",!1),wt=be([["a","z"],["A","Z"],"_"],!1,!1),xt=be([["a","z"],["A","Z"],"_",["0","9"]],!1,!1),kt=_e("whitespace"),Ct=be([" ","\t","\r","\n"],!1,!1),Et=function(t){return t},At=function(t){return Ds(t)},jt=function(t){return t},Vt=function(){return""},Ft=function(){return ye()},Dt=function(){throw new Error("Error tokenizing '"+t+"'.")},St=function(){throw new Error("Error tokenizing '"+t+"'.")},Pt=function(t){return t},Nt=function(t){return Ps(t)},Ot=function(){throw new Error("Error tokenizing '"+t+"'.")},It=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Tt=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Mt=function(t,e){return Fs(t,e)},zt=function(t,e){return Fs(t,e)},Rt=function(t,e){return Vs(t,e)},Bt=function(t,e){return Vs(t,e)},Lt=function(t,e){return Vs(t,e)},Ut=function(t,e){return Vs(t,e)},Wt=function(t){return t},Ht=function(t){return t},qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Jt=function(t,e){return function(t,e){return e.length?e.reduce(((t,e)=>{if(!e[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:t,method:e[3],arguments:e[5][2]}}),t):t}(t,e)},Gt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Kt=function(t,e){return[t,...e]},Xt=function(t){return t},Yt=function(t){return t},Zt=function(t){return Ds(t)},Qt=function(t){return t},te=function(){return""},ee=function(){return ye()},ne=function(){throw new Error("Error tokenizing '"+t+"'.")},re=function(){throw new Error("Error tokenizing '"+t+"'.")},oe=function(t){return t},ie=function(t){return Ps(t)},ae=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){return{type:"IntegerLiteral",value:Ss(ye())}},le=function(){return{type:"NumberLiteral",value:parseFloat(ye())}},ce=function(){return{type:"NumberLiteral",value:parseFloat(ye())}},ue=function(){const t=ye();if(/\.\./.test(t)||/\.$/.test(t))throw new Error("Unexpected token: .");return function(t){return"true"===t||"false"===t?{type:"BooleanLiteral",value:"true"===t}:{type:"Variable",id:{type:"Identifier",name:t}}}(t)},de=function(){return{type:"Identifier",name:ye()}},pe=0,fe=0,he=[{line:1,column:1}],ge=0,me=[],ve=0;if("startRule"in e){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=i[e.startRule]}function ye(){return t.substring(fe,pe)}function $e(t,e){return{type:"literal",text:t,ignoreCase:e}}function be(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function _e(t){return{type:"other",description:t}}function we(e){var n,r=he[e];if(r)return r;for(n=e-1;!he[n];)n--;for(r={line:(r=he[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return he[e]=r,r}function xe(t,e,n){var r=we(t),i=we(e),a={source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}};return n&&o&&"function"==typeof o.offset&&(a.start=o.offset(a.start),a.end=o.offset(a.end)),a}function ke(t){pe<ge||(pe>ge&&(ge=pe,me=[]),me.push(t))}function Ce(){var t,e;return t=pe,Le(),(e=Ae())!==r?(Le(),fe=t,t=Et(e)):(pe=t,t=r),t}function Ee(){var e,n,o,i,a;if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r?(o=Le(),(i=Ae())!==r?(Le(),125===t.charCodeAt(pe)?(a=l,pe++):(a=r,0===ve&&ke(L)),a!==r?(fe=e,e=jt(i)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,t.substr(pe,3)===c?(n=c,pe+=3):(n=r,0===ve&&ke(U)),n!==r&&(fe=e,n=Vt()),(e=n)===r&&(e=pe,n=pe,ve++,92===t.charCodeAt(pe)?(o=u,pe++):(o=r,0===ve&&ke(W)),o===r&&(t.substr(pe,2)===s?(o=s,pe+=2):(o=r,0===ve&&ke(B))),ve--,o===r?n=void 0:(pe=n,n=r),n!==r?(t.length>pe?(o=t.charAt(pe),pe++):(o=r,0===ve&&ke(H)),o!==r?(fe=e,e=Ft()):(pe=e,e=r)):(pe=e,e=r),e===r))){if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r){if(o=[],O.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(q)),i!==r)for(;i!==r;)o.push(i),O.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(q));else o=r;o!==r?(125===t.charCodeAt(pe)?(i=l,pe++):(i=r,0===ve&&ke(L)),i!==r?(fe=e,e=Dt()):(pe=e,e=r)):(pe=e,e=r)}else pe=e,e=r;e===r&&(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r&&(fe=e,n=St()),(e=n)===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r?(t.substr(pe,2)===s?(o=s,pe+=2):(o=r,0===ve&&ke(B)),o!==r?(fe=e,e=Pt(o)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r?(t.length>pe?(o=t.charAt(pe),pe++):(o=r,0===ve&&ke(H)),o!==r?(fe=e,e=Nt(o)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r&&(fe=e,n=Ot()),e=n))))}return e}function Ae(){var e,n,o,i,a,s;return e=pe,(n=je())!==r?(Le(),63===t.charCodeAt(pe)?(o=d,pe++):(o=r,0===ve&&ke(J)),o!==r?(Le(),(i=Ae())!==r?(Le(),58===t.charCodeAt(pe)?(a=p,pe++):(a=r,0===ve&&ke(G)),a!==r?(Le(),(s=Ae())!==r?(fe=e,e=It(n,i,s)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=je()),e}function je(){var e,n,o,i;return e=pe,(n=Ve())!==r?(Le(),t.substr(pe,2)===f?(o=f,pe+=2):(o=r,0===ve&&ke(K)),o!==r?(Le(),(i=Ae())!==r?(fe=e,e=Tt(n,i)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=Ve()),e}function Ve(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Fe())!==r){for(o=[],i=pe,a=Le(),t.substr(pe,2)===h?(s=h,pe+=2):(s=r,0===ve&&ke(X)),s!==r?(l=Le(),(c=Fe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),t.substr(pe,2)===h?(s=h,pe+=2):(s=r,0===ve&&ke(X)),s!==r?(l=Le(),(c=Fe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Mt(n,o)}else pe=e,e=r;return e}function Fe(){var e,n,o,i,a,s,l,c;if(e=pe,(n=De())!==r){for(o=[],i=pe,a=Le(),t.substr(pe,2)===g?(s=g,pe+=2):(s=r,0===ve&&ke(Y)),s!==r?(l=Le(),(c=De())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),t.substr(pe,2)===g?(s=g,pe+=2):(s=r,0===ve&&ke(Y)),s!==r?(l=Le(),(c=De())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=zt(n,o)}else pe=e,e=r;return e}function De(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Se())!==r){for(o=[],i=pe,a=Le(),t.substr(pe,2)===m?(s=m,pe+=2):(s=r,0===ve&&ke(Z)),s===r&&(t.substr(pe,2)===v?(s=v,pe+=2):(s=r,0===ve&&ke(Q))),s!==r?(l=Le(),(c=Se())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),t.substr(pe,2)===m?(s=m,pe+=2):(s=r,0===ve&&ke(Z)),s===r&&(t.substr(pe,2)===v?(s=v,pe+=2):(s=r,0===ve&&ke(Q))),s!==r?(l=Le(),(c=Se())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Rt(n,o)}else pe=e,e=r;return e}function Se(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Pe())!==r){for(o=[],i=pe,a=Le(),t.substr(pe,2)===y?(s=y,pe+=2):(s=r,0===ve&&ke(tt)),s===r&&(62===t.charCodeAt(pe)?(s=$,pe++):(s=r,0===ve&&ke(et)),s===r&&(t.substr(pe,2)===b?(s=b,pe+=2):(s=r,0===ve&&ke(nt)),s===r&&(60===t.charCodeAt(pe)?(s=_,pe++):(s=r,0===ve&&ke(rt))))),s!==r?(l=Le(),(c=Pe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),t.substr(pe,2)===y?(s=y,pe+=2):(s=r,0===ve&&ke(tt)),s===r&&(62===t.charCodeAt(pe)?(s=$,pe++):(s=r,0===ve&&ke(et)),s===r&&(t.substr(pe,2)===b?(s=b,pe+=2):(s=r,0===ve&&ke(nt)),s===r&&(60===t.charCodeAt(pe)?(s=_,pe++):(s=r,0===ve&&ke(rt))))),s!==r?(l=Le(),(c=Pe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Bt(n,o)}else pe=e,e=r;return e}function Pe(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Ne())!==r){for(o=[],i=pe,a=Le(),43===t.charCodeAt(pe)?(s=w,pe++):(s=r,0===ve&&ke(ot)),s===r&&(45===t.charCodeAt(pe)?(s=x,pe++):(s=r,0===ve&&ke(it))),s!==r?(l=Le(),(c=Ne())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),43===t.charCodeAt(pe)?(s=w,pe++):(s=r,0===ve&&ke(ot)),s===r&&(45===t.charCodeAt(pe)?(s=x,pe++):(s=r,0===ve&&ke(it))),s!==r?(l=Le(),(c=Ne())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Lt(n,o)}else pe=e,e=r;return e}function Ne(){var e,n,o,i,a,s,l,c;if(e=pe,(n=Oe())!==r){for(o=[],i=pe,a=Le(),47===t.charCodeAt(pe)?(s=k,pe++):(s=r,0===ve&&ke(at)),s===r&&(42===t.charCodeAt(pe)?(s=C,pe++):(s=r,0===ve&&ke(st)),s===r&&(37===t.charCodeAt(pe)?(s=E,pe++):(s=r,0===ve&&ke(lt)))),s!==r?(l=Le(),(c=Oe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),47===t.charCodeAt(pe)?(s=k,pe++):(s=r,0===ve&&ke(at)),s===r&&(42===t.charCodeAt(pe)?(s=C,pe++):(s=r,0===ve&&ke(st)),s===r&&(37===t.charCodeAt(pe)?(s=E,pe++):(s=r,0===ve&&ke(lt)))),s!==r?(l=Le(),(c=Oe())!==r?i=a=[a,s,l,c]:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Ut(n,o)}else pe=e,e=r;return e}function Oe(){var e,n,o,i;return e=pe,n=pe,ve++,45===t.charCodeAt(pe)?(o=x,pe++):(o=r,0===ve&&ke(it)),ve--,o!==r?(pe=n,n=void 0):n=r,n!==r&&(o=Re())!==r?(fe=e,e=Wt(o)):(pe=e,e=r),e===r&&(e=pe,n=pe,ve++,45===t.charCodeAt(pe)?(o=x,pe++):(o=r,0===ve&&ke(it)),ve--,o!==r?(pe=n,n=void 0):n=r,n!==r&&(o=ze())!==r?(fe=e,e=Ht(o)):(pe=e,e=r),e===r&&(e=pe,33===t.charCodeAt(pe)?(n=A,pe++):(n=r,0===ve&&ke(ct)),n===r&&(43===t.charCodeAt(pe)?(n=w,pe++):(n=r,0===ve&&ke(ot)),n===r&&(45===t.charCodeAt(pe)?(n=x,pe++):(n=r,0===ve&&ke(it)))),n!==r?(o=Le(),(i=Ie())!==r?(fe=e,e=qt(n,i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=Ie()))),e}function Ie(){var e,n,o,i,a,s,l,c,u,d,p,f,h,g,m;if(e=pe,n=function(){var e,n,o,i,a;return e=pe,(n=Be())!==r?(Le(),40===t.charCodeAt(pe)?(o=V,pe++):(o=r,0===ve&&ke(dt)),o!==r?(Le(),(i=Te())!==r?(Le(),41===t.charCodeAt(pe)?(a=F,pe++):(a=r,0===ve&&ke(pt)),a!==r?(fe=e,e=Gt(n,i)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i,a,s,l,c,u,d,p;if(e=pe,M.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===ve&&ke(wt)),n!==r){if(o=[],i=[],z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===ve&&ke(xt)),a!==r)for(;a!==r;)i.push(a),z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===ve&&ke(xt));else i=r;for(i===r&&(i=pe,46===t.charCodeAt(pe)?(a=j,pe++):(a=r,0===ve&&ke(ut)),a!==r?(s=pe,ve++,l=pe,c=Le(),(u=Be())!==r?(d=Le(),40===t.charCodeAt(pe)?(p=V,pe++):(p=r,0===ve&&ke(dt)),p!==r?l=c=[c,u,d,p]:(pe=l,l=r)):(pe=l,l=r),ve--,l===r?s=void 0:(pe=s,s=r),s!==r?i=a=[a,s]:(pe=i,i=r)):(pe=i,i=r));i!==r;){if(o.push(i),i=[],z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===ve&&ke(xt)),a!==r)for(;a!==r;)i.push(a),z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===ve&&ke(xt));else i=r;i===r&&(i=pe,46===t.charCodeAt(pe)?(a=j,pe++):(a=r,0===ve&&ke(ut)),a!==r?(s=pe,ve++,l=pe,c=Le(),(u=Be())!==r?(d=Le(),40===t.charCodeAt(pe)?(p=V,pe++):(p=r,0===ve&&ke(dt)),p!==r?l=c=[c,u,d,p]:(pe=l,l=r)):(pe=l,l=r),ve--,l===r?s=void 0:(pe=s,s=r),s!==r?i=a=[a,s]:(pe=i,i=r)):(pe=i,i=r))}fe=e,e=ue()}else pe=e,e=r;return e}(),e===r&&(e=function(){var e,n,o,i;return ve++,e=pe,39===t.charCodeAt(pe)?(n=S,pe++):(n=r,0===ve&&ke(gt)),n!==r?(o=function(){var t,e,n;for(t=pe,e=[],n=Me();n!==r;)e.push(n),n=Me();return fe=t,t=e=Zt(e)}(),39===t.charCodeAt(pe)?(i=S,pe++):(i=r,0===ve&&ke(gt)),i!==r?(fe=e,e=Yt(o)):(pe=e,e=r)):(pe=e,e=r),ve--,e===r&&(n=r,0===ve&&ke(ht)),e}(),e===r&&(e=Re())===r&&(e=ze())===r&&(e=pe,40===t.charCodeAt(pe)?(n=V,pe++):(n=r,0===ve&&ke(dt)),n!==r?(Le(),(o=Ae())!==r?(Le(),41===t.charCodeAt(pe)?(i=F,pe++):(i=r,0===ve&&ke(pt)),i!==r?(fe=e,e=Xt(o)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r))),e}()),e}(),n!==r){for(o=[],i=pe,a=Le(),46===t.charCodeAt(pe)?(s=j,pe++):(s=r,0===ve&&ke(ut)),s!==r?(l=Le(),(c=Be())!==r?(u=Le(),d=pe,40===t.charCodeAt(pe)?(p=V,pe++):(p=r,0===ve&&ke(dt)),p!==r?(f=Le(),(h=Te())!==r?(g=Le(),41===t.charCodeAt(pe)?(m=F,pe++):(m=r,0===ve&&ke(pt)),m!==r?d=p=[p,f,h,g,m]:(pe=d,d=r)):(pe=d,d=r)):(pe=d,d=r),d===r&&(d=null),i=a=[a,s,l,c,u,d]):(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,a=Le(),46===t.charCodeAt(pe)?(s=j,pe++):(s=r,0===ve&&ke(ut)),s!==r?(l=Le(),(c=Be())!==r?(u=Le(),d=pe,40===t.charCodeAt(pe)?(p=V,pe++):(p=r,0===ve&&ke(dt)),p!==r?(f=Le(),(h=Te())!==r?(g=Le(),41===t.charCodeAt(pe)?(m=F,pe++):(m=r,0===ve&&ke(pt)),m!==r?d=p=[p,f,h,g,m]:(pe=d,d=r)):(pe=d,d=r)):(pe=d,d=r),d===r&&(d=null),i=a=[a,s,l,c,u,d]):(pe=i,i=r)):(pe=i,i=r);fe=e,e=Jt(n,o)}else pe=e,e=r;return e}function Te(){var e,n,o,i,a,s;if(e=pe,(n=Ae())!==r){for(o=[],i=pe,Le(),44===t.charCodeAt(pe)?(a=D,pe++):(a=r,0===ve&&ke(ft)),a!==r?(Le(),(s=Ae())!==r?i=s:(pe=i,i=r)):(pe=i,i=r);i!==r;)o.push(i),i=pe,Le(),44===t.charCodeAt(pe)?(a=D,pe++):(a=r,0===ve&&ke(ft)),a!==r?(Le(),(s=Ae())!==r?i=s:(pe=i,i=r)):(pe=i,i=r);fe=e,e=Kt(n,o)}else pe=e,e=r;return e===r&&(e=Le()),e}function Me(){var e,n,o,i,a;if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r?(o=Le(),(i=Ae())!==r?(Le(),125===t.charCodeAt(pe)?(a=l,pe++):(a=r,0===ve&&ke(L)),a!==r?(fe=e,e=Qt(i)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,t.substr(pe,3)===c?(n=c,pe+=3):(n=r,0===ve&&ke(U)),n!==r&&(fe=e,n=te()),(e=n)===r&&(e=pe,n=pe,ve++,92===t.charCodeAt(pe)?(o=u,pe++):(o=r,0===ve&&ke(W)),o===r&&(39===t.charCodeAt(pe)?(o=S,pe++):(o=r,0===ve&&ke(gt)),o===r&&(t.substr(pe,2)===s?(o=s,pe+=2):(o=r,0===ve&&ke(B)))),ve--,o===r?n=void 0:(pe=n,n=r),n!==r?(t.length>pe?(o=t.charAt(pe),pe++):(o=r,0===ve&&ke(H)),o!==r?(fe=e,e=ee()):(pe=e,e=r)):(pe=e,e=r),e===r))){if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r){if(o=[],I.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(mt)),i!==r)for(;i!==r;)o.push(i),I.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(mt));else o=r;o!==r?(125===t.charCodeAt(pe)?(i=l,pe++):(i=r,0===ve&&ke(L)),i!==r?(fe=e,e=ne()):(pe=e,e=r)):(pe=e,e=r)}else pe=e,e=r;e===r&&(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===ve&&ke(B)),n!==r&&(fe=e,n=re()),(e=n)===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r?(t.substr(pe,2)===s?(o=s,pe+=2):(o=r,0===ve&&ke(B)),o!==r?(fe=e,e=oe(o)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r?(t.length>pe?(o=t.charAt(pe),pe++):(o=r,0===ve&&ke(H)),o!==r?(fe=e,e=ie(o)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===ve&&ke(W)),n!==r&&(fe=e,n=ae()),e=n))))}return e}function ze(){var e,n,o,i;if(ve++,e=pe,45===t.charCodeAt(pe)?(n=x,pe++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],T.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt)),i!==r)for(;i!==r;)o.push(i),T.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt));else o=r;return o!==r?(fe=e,e=se()):(pe=e,e=r),ve--,e===r&&(n=r,0===ve&&ke(vt)),e}function Re(){var e,n,o,i,a,s,l,c,u,d;for(ve++,e=pe,45===t.charCodeAt(pe)?(n=x,pe++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],T.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt));i!==r;)o.push(i),T.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt));if(46===t.charCodeAt(pe)?(i=j,pe++):(i=r,0===ve&&ke(ut)),i!==r){if(a=[],T.test(t.charAt(pe))?(s=t.charAt(pe),pe++):(s=r,0===ve&&ke(yt)),s!==r)for(;s!==r;)a.push(s),T.test(t.charAt(pe))?(s=t.charAt(pe),pe++):(s=r,0===ve&&ke(yt));else a=r;if(a!==r){if(s=pe,101===t.charCodeAt(pe)?(l=P,pe++):(l=r,0===ve&&ke(bt)),l===r&&(69===t.charCodeAt(pe)?(l=N,pe++):(l=r,0===ve&&ke(_t))),l!==r){if(43===t.charCodeAt(pe)?(c=w,pe++):(c=r,0===ve&&ke(ot)),c===r&&(45===t.charCodeAt(pe)?(c=x,pe++):(c=r,0===ve&&ke(it))),c===r&&(c=null),u=[],T.test(t.charAt(pe))?(d=t.charAt(pe),pe++):(d=r,0===ve&&ke(yt)),d!==r)for(;d!==r;)u.push(d),T.test(t.charAt(pe))?(d=t.charAt(pe),pe++):(d=r,0===ve&&ke(yt));else u=r;u!==r?s=l=[l,c,u]:(pe=s,s=r)}else pe=s,s=r;s===r&&(s=null),fe=e,e=le()}else pe=e,e=r}else pe=e,e=r;if(e===r){if(e=pe,45===t.charCodeAt(pe)?(n=x,pe++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],T.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt)),i!==r)for(;i!==r;)o.push(i),T.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(yt));else o=r;if(o!==r)if(101===t.charCodeAt(pe)?(i=P,pe++):(i=r,0===ve&&ke(bt)),i===r&&(69===t.charCodeAt(pe)?(i=N,pe++):(i=r,0===ve&&ke(_t))),i!==r){if(43===t.charCodeAt(pe)?(a=w,pe++):(a=r,0===ve&&ke(ot)),a===r&&(45===t.charCodeAt(pe)?(a=x,pe++):(a=r,0===ve&&ke(it))),a===r&&(a=null),s=[],T.test(t.charAt(pe))?(l=t.charAt(pe),pe++):(l=r,0===ve&&ke(yt)),l!==r)for(;l!==r;)s.push(l),T.test(t.charAt(pe))?(l=t.charAt(pe),pe++):(l=r,0===ve&&ke(yt));else s=r;s!==r?(fe=e,e=ce()):(pe=e,e=r)}else pe=e,e=r;else pe=e,e=r}return ve--,e===r&&(n=r,0===ve&&ke($t)),e}function Be(){var e,n,o,i;if(e=pe,M.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===ve&&ke(wt)),n!==r){for(o=[],z.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(xt));i!==r;)o.push(i),z.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===ve&&ke(xt));fe=e,e=de()}else pe=e,e=r;return e}function Le(){var e,n;for(ve++,e=[],R.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===ve&&ke(Ct));n!==r;)e.push(n),R.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===ve&&ke(Ct));return ve--,n=r,0===ve&&ke(kt),e}if((n=a())!==r&&pe===t.length)return n;throw n!==r&&pe<t.length&&ke({type:"end"}),function(t,e,n){return new Ns(Ns.buildMessage(t,e),t,e,n)}(me,ge<t.length?t.charAt(ge):null,ge<t.length?xe(ge,ge+1):xe(ge,ge))}js(void 0),function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(Ns,Error),Ns.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+i.line+":"+i.column;if(r){var s=this.location.end,l=Os("",i.line.toString().length," "),c=r[o.line-1],u=(o.line===s.line?s.column:c.length+1)-o.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+i.line+" | "+c+"\n"+l+" | "+Os("",o.column-1," ")+Os("",u,"^")}else e+="\n at "+a}return e},Ns.buildMessage=function(t,e){var n={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."};const Ts=Number.MAX_VALUE,Ms=Number.MIN_VALUE,zs="string",Rs="integer",Bs="number",Ls="boolean",Us="color",Ws="url",Hs="datetime",qs="dict",Js="array";function Gs(t,e){var n;switch(null===(n=e[t.type])||void 0===n||n.call(e,t),t.type){case"TemplateLiteral":t.expressions.forEach((t=>{Gs(t,e)}));break;case"BinaryExpression":case"LogicalExpression":Gs(t.left,e),Gs(t.right,e);break;case"UnaryExpression":Gs(t.argument,e);break;case"ConditionalExpression":Gs(t.test,e),Gs(t.consequent,e),Gs(t.alternate,e);break;case"TryExpression":Gs(t.test,e),Gs(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{Gs(t,e)}))}}function Ks(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function Xs(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Ys(t){if("string"===t.type)return t.value;if("integer"===t.type)return String(t.value);if("number"===t.type){let e=String(t.value);return e.includes(".")||(e.includes("e")?e=e.replace("e",".0e"):e+=".0"),e=e.replace(/e\+?/i,"E"),e}if("boolean"===t.type)return t.value?"true":"false";if("datetime"===t.type)return Xs(t.value);if("color"===t.type)return il(ol(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";if("array"===t.type)return"<array>";throw new Error("Unexpected type ".concat(t.type))}function Zs(t){let e=Ys(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function Qs(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function tl(t,e){if(Ei)return Fi(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function el(t,e){if(e<Vi||e>ji)throw new Error("Integer overflow.");!Ei&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function nl(t){const e=[];return Gs(t,{Variable(t){e.push(t.id.name)}}),e}function rl(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function ol(t){const e=pe(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function il(t){return"#".concat([t.a,t.r,t.g,t.b].map((t=>{if(t<0||t>255)throw new Error("Value out of range 0..1.");return ue(Math.round(t).toString(16),2)})).join("").toUpperCase())}function al(t){return il(ol(t))}function sl(t){return{type:Bs,value:Number(t.value)}}const ll={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function cl(t,e,n){const r=ll[n];let o=typeof e;if("array"===r&&!Array.isArray(e)||"array"!==r&&o!==r||"object"===o&&null===e)throw"object"===o&&(o=Array.isArray(e)?"array":null===e?"null":"dict"),new Error('Incorrect value type: expected "'.concat(n,'", got "').concat(o,'".'));if("number"===r&&"integer"===n){el(t,e);try{e=Fi(e)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===r&&"color"===n&&(e=al(e)),{type:n,value:e}}const ul=new Map,dl=new Map,pl=new Map,fl=new Map;function hl(t,e,n){const r={args:e,cb:n},o=ul.get(t)||[];ul.has(t)||ul.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");dl.set(i,r)}function gl(t,e,n){const r={args:e,cb:n},o=pl.get(t)||[];pl.has(t)||pl.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");fl.set(i,r)}function ml(t,e){const n=t.args.length;let r=t.args.length,o=0;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==Bs||e[n].type!==Rs){if(r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}else++o}return{type:"match",conversions:o}}function vl(t,e,n){const r=("function"===t?ul:pl).get(e);if(!r)return{type:"missing"};let o=null,i=null;for(let t=0;t<r.length;++t){const e=ml(r[t],n);"match"!==e.type?o||(o=e):(!i||i.conversions>e.conversions)&&(i={func:r[t],conversions:e.conversions})}if(!i){if(o)return o;throw new Error("Missing function")}return i}function yl(t,e){return e.map(((e,n)=>{let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];return"object"!=typeof r&&(r={type:r}),r.type===Bs&&e.type===Rs?sl(e):e}))}function $l(t,e){return{type:zs,value:Ys(e)}}function bl(t,e){const n=Number(e.value);if(Number.isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:Bs,value:n}}function _l(t,e,n,r){const o=t.variables.get(e.value);let i;return i=o&&o.getType()===r?o.getValue():n.value,"color"===r&&(i=al(i)),{type:r,value:i}}function wl(t,e,n){return _l(t,e,n,n.type)}function xl(t,e,n){return _l(t,e,n,"color")}function kl(t,e,n){return _l(t,e,n,"url")}const Cl=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:Rs,value:Fi(r)}},El=Cl("getUTCFullYear"),Al=Cl("getUTCMonth"),jl=Cl("getUTCDate"),Vl=Cl("getUTCDay"),Fl=Cl("getUTCHours"),Dl=Cl("getUTCMinutes"),Sl=Cl("getUTCSeconds"),Pl=Cl("getUTCMilliseconds");function Nl(t,e,n,r){if(!r.value.length)return t.warnings.push(oe(new Error("String for padding is empty."),{level:"warn"})),"";let o="";const i=e.type===zs?e.value:Ys(e);for(;o.length+i.length<n.value;)o+=r.value;return o.length>0&&o.length+i.length>n.value&&(o=o.substring(0,Number(n.value)-Number(i.length))),o}function Ol(t,e,n,r){const o=Nl(t,e,n,r);return{type:zs,value:o+Ys(e)}}function Il(t,e,n,r){const o=Nl(t,e,n,r);return{type:zs,value:Ys(e)+o}}function Tl(t){return(e,n)=>{const r=ol(n.value);return{type:Bs,value:r[t]/255}}}function Ml(t){return(e,n,r)=>{const o=ol(n.value);return o[t]=255*r.value,{type:Us,value:il(o)}}}const zl=Tl("a"),Rl=Tl("r"),Bl=Tl("g"),Ll=Tl("b"),Ul=Ml("a"),Wl=Ml("r"),Hl=Ml("g"),ql=Ml("b");function Jl(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let o=Fi(e.value)/Fi(n);return el(t,o),"number"==typeof o&&(o=Math.floor(o)),r&&(o=Fi(o)%Fi(r)),{type:Rs,value:o}}const Gl=36e5;function Kl(t){return function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(0===o.length)throw new Error("Non empty argument list is required.");return cl(e,function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(n.value,o.map((t=>t.value))),t)}}function Xl(t,e){return function(n,r,o){try{for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return t(n,o,...a)}catch(t){let n=r.value;return"color"===e&&(n=al(n)),{type:e,value:n}}}}const Yl=Kl(zs),Zl=Kl(Bs),Ql=Kl(Rs),tc=Kl(Ls),ec=Kl(Us),nc=Kl(Ws),rc=Kl(Js),oc=Kl(qs),ic=Xl(Yl,zs),ac=Xl(Zl,Bs),sc=Xl(Ql,Rs),lc=Xl(tc,Ls),cc=Xl(ec,Us),uc=Xl(nc,Ws);function dc(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return rc(t,e,...r)}catch(t){return{type:Js,value:[]}}}function pc(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return oc(t,e,...r)}catch(t){return{type:qs,value:{}}}}function fc(t,e){return(n,r,o)=>{if(o.value<0||o.value>=r.value.length)throw new Error("Requested index (".concat(o.value,") out of bounds array size (").concat(r.value.length,")."));let i=r.value[Number(o.value)],a=typeof i;if("array"===t&&!Array.isArray(i)||"array"!==t&&a!==t||"object"===a&&null===i)throw"object"===a&&(a=Array.isArray(i)?"array":null===i?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(a,'".'));if("number"===t&&"integer"===e){el(n,i);try{i=Fi(i)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===t&&"color"===e&&(i=al(i)),{type:e,value:i}}}function hc(t,e){return(n,r,o,i)=>{try{return t(n,r,o)}catch(t){let n=i.value;return"color"===e&&(n=al(n)),{type:e,value:n}}}}const gc=fc("string","string"),mc=fc("number","number"),vc=fc("number","integer"),yc=fc("boolean","boolean"),$c=fc("string","color"),bc=fc("string","url"),_c=fc("array","array"),wc=fc("object","dict"),xc=hc(gc,"string"),kc=hc(mc,"number"),Cc=hc(vc,"integer"),Ec=hc(yc,"boolean"),Ac=hc($c,"color"),jc=hc(bc,"url");function Vc(t){return(e,n,r)=>{if(!e.store)return{type:t,value:r.value};let o;o="boolean"===t?"boolean":"number"===t||"integer"===t?"number":"string";const i=e.store.getValue(n.value,o);return void 0===i?{type:t,value:r.value}:cl(e,i,t)}}function Fc(t){return t.map(Zs).join(", ")}hl("toString",[Rs],$l),hl("toString",[Bs],$l),hl("toString",[Ls],$l),hl("toString",[Us],$l),hl("toString",[Ws],$l),hl("toString",[zs],$l),hl("toNumber",[Rs],bl),hl("toNumber",[zs],bl),hl("toInteger",[Bs],(function(t,e){if(e.value>ji||e.value<Vi)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:Rs,value:Fi(n)}})),hl("toInteger",[zs],(function(t,e){let n;try{n=Fi(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}return{type:Rs,value:n}})),hl("toInteger",[Ls],(function(t,e){return{type:Rs,value:Fi(e.value?1:0)}})),hl("toBoolean",[Rs],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:Ls,value:n}})),hl("toBoolean",[zs],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:Ls,value:"true"===e.value?1:0}})),hl("toColor",[zs],(function(t,e){return{type:Us,value:al(e.value)}})),hl("toUrl",[zs],(function(t,e){return{type:Ws,value:e.value}})),hl("encodeUri",[zs],(function(t,e){try{return{type:zs,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),hl("decodeUri",[zs],(function(t,e){try{return{type:zs,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),hl("getIntegerValue",[zs,Rs],wl),hl("getNumberValue",[zs,Bs],wl),hl("getBooleanValue",[zs,Ls],wl),hl("getStringValue",[zs,zs],wl),hl("getColorValue",[zs,Us],xl),hl("getColorValue",[zs,zs],xl),hl("getUrlValue",[zs,Ws],kl),hl("getUrlValue",[zs,zs],kl),gl("toString",[Rs],$l),gl("toString",[Bs],$l),gl("toString",[Ls],$l),gl("toString",[Us],$l),gl("toString",[Ws],$l),gl("toString",[zs],$l),hl("parseUnixTime",[Rs],(function(t,e){return{type:Hs,value:new Date(1e3*Number(e.value))}})),hl("nowLocal",[],(function(){return{type:Hs,value:new Date}})),hl("addMillis",[Hs,Rs],(function(t,e,n){return{type:Hs,value:new Date(e.value.getTime()+Number(n.value))}})),hl("setYear",[Hs,Rs],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:Hs,value:r}})),hl("setMonth",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMonth(r-1),{type:Hs,value:o}})),hl("setDay",[Hs,Rs],(function(t,e,n){const r=new Date(e.value),o=Number(n.value);if(o<=0&&-1!==o||o>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(o," for date ").concat(Ys(e),"."));return r.setUTCDate(-1===o?0:o),{type:Hs,value:r}})),hl("setHours",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCHours(r),{type:Hs,value:o}})),hl("setMinutes",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMinutes(r),{type:Hs,value:o}})),hl("setSeconds",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCSeconds(r),{type:Hs,value:o}})),hl("setMillis",[Hs,Rs],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMilliseconds(r),{type:Hs,value:o}})),hl("getYear",[Hs],El),hl("getMonth",[Hs],Al),hl("getDay",[Hs],jl),hl("getDayOfWeek",[Hs],Vl),hl("getHours",[Hs],Fl),hl("getMinutes",[Hs],Dl),hl("getSeconds",[Hs],Sl),hl("getMillis",[Hs],Pl),hl("getIntervalSeconds",[Rs],(function(t,e){return Jl(t,e,1e3,60)})),hl("getIntervalTotalSeconds",[Rs],(function(t,e){return Jl(t,e,1e3)})),hl("getIntervalMinutes",[Rs],(function(t,e){return Jl(t,e,6e4,60)})),hl("getIntervalTotalMinutes",[Rs],(function(t,e){return Jl(t,e,6e4)})),hl("getIntervalHours",[Rs],(function(t,e){return Jl(t,e,Gl,24)})),hl("getIntervalTotalHours",[Rs],(function(t,e){return Jl(t,e,Gl)})),hl("getIntervalTotalDays",[Rs],(function(t,e){return Jl(t,e,864e5)})),hl("getIntervalTotalWeeks",[Rs],(function(t,e){return Jl(t,e,6048e5)})),hl("len",[zs],(function(t,e){return{type:Rs,value:Fi(e.value.length)}})),hl("contains",[zs,zs],(function(t,e,n){return{type:Ls,value:e.value.includes(n.value)?1:0}})),hl("substring",[zs,Rs,Rs],(function(t,e,n,r){if(r.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||r.value<0||r.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:zs,value:e.value.substring(Number(n.value),Number(r.value))}})),hl("replaceAll",[zs,zs,zs],(function(t,e,n,r){let o;return o=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:zs,value:o}})),hl("index",[zs,zs],(function(t,e,n){return{type:Rs,value:Fi(e.value.indexOf(n.value))}})),hl("lastIndex",[zs,zs],(function(t,e,n){return{type:Rs,value:Fi(e.value.lastIndexOf(n.value))}})),hl("trim",[zs],(function(t,e){return{type:zs,value:e.value.trim()}})),hl("trimLeft",[zs],(function(t,e){return{type:zs,value:e.value.replace(/^\s+/,"")}})),hl("trimRight",[zs],(function(t,e){return{type:zs,value:e.value.replace(/\s+$/,"")}})),hl("toUpperCase",[zs],(function(t,e){return{type:zs,value:e.value.toUpperCase()}})),hl("toLowerCase",[zs],(function(t,e){return{type:zs,value:e.value.toLowerCase()}})),hl("padStart",[zs,Rs,zs],Ol),hl("padStart",[Rs,Rs,zs],Ol),hl("padEnd",[zs,Rs,zs],Il),hl("padEnd",[Rs,Rs,zs],Il),hl("testRegex",[zs,zs],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:Ls,value:r.test(e.value)?1:0}})),hl("div",[Rs,Rs],(function(t,e,n){if(n.value===Di)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=tl(0,r),el(t,r),{type:Rs,value:r}})),hl("div",[Bs,Bs],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value/n.value;return{type:Bs,value:r}})),hl("mod",[Rs,Rs],(function(t,e,n){if(n.value===Di)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=tl(0,r),el(t,r),{type:Rs,value:r}})),hl("mod",[Bs,Bs],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value%n.value;return{type:Bs,value:r}})),hl("mul",[{type:Rs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:Di;for(let e=1;e<n.length;++e)o*=n[e].value,o=tl(0,o),el(t,o);return{type:Rs,value:o}})),hl("mul",[{type:Bs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o*=n[t].value;return{type:Bs,value:o}})),hl("sub",[{type:Rs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:Di;for(let e=1;e<n.length;++e)o-=n[e].value,o=tl(0,o),el(t,o);return{type:Rs,value:o}})),hl("sub",[{type:Bs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o-=n[t].value;return{type:Bs,value:o}})),hl("sum",[{type:Rs,isVararg:!0}],(function(t){let e=Di;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<r.length;++n)e+=r[n].value,e=tl(0,e),el(t,e);return{type:Rs,value:e}})),hl("sum",[{type:Bs,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:Bs,value:e}})),hl("abs",[Rs],(function(t,e){const n=Si(e.value);return el(t,n),{type:e.type,value:n}})),hl("abs",[Bs],(function(t,e){const n=Math.abs(e.value);return{type:Bs,value:n}})),hl("max",[{type:Rs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value>o&&(o=n[t].value);return{type:Rs,value:o}})),hl("max",[{type:Bs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");return{type:Bs,value:Math.max(...n.map((t=>t.value)))}})),hl("min",[{type:Rs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value<o&&(o=n[t].value);return{type:Rs,value:o}})),hl("min",[{type:Bs,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");return{type:Bs,value:Math.min(...n.map((t=>t.value)))}})),hl("maxNumber",[],(function(){return{type:Bs,value:Ts}})),hl("minNumber",[],(function(){return{type:Bs,value:Ms}})),hl("maxInteger",[],(function(t){return el(t,ji),{type:Rs,value:ji}})),hl("minInteger",[],(function(t){return el(t,Vi),{type:Rs,value:Vi}})),hl("round",[Bs],(function(t,e){const n=Math.sign(e.value);return{type:Bs,value:n*Math.round(Math.abs(e.value))}})),hl("floor",[Bs],(function(t,e){return{type:Bs,value:Math.floor(e.value)}})),hl("ceil",[Bs],(function(t,e){return{type:Bs,value:Math.ceil(e.value)}})),hl("signum",[Rs],(function(t,e){return{type:Rs,value:Pi(e.value)}})),hl("signum",[Bs],(function(t,e){return{type:Bs,value:Math.sign(e.value)}})),hl("copySign",[Rs,Rs],(function(t,e,n){let r;if(n.value===Di)r=e.value;else if(e.value===Di)r=Fi(0);else{const t=Pi(n.value);r=Si(e.value)*t}return el(t,r),{type:Rs,value:r}})),hl("copySign",[Bs,Bs],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const o=Math.abs(e.value)*r;return{type:Bs,value:o}})),hl("getColorAlpha",[zs],zl),hl("getColorAlpha",[Us],zl),hl("getColorRed",[zs],Rl),hl("getColorRed",[Us],Rl),hl("getColorGreen",[zs],Bl),hl("getColorGreen",[Us],Bl),hl("getColorBlue",[zs],Ll),hl("getColorBlue",[Us],Ll),hl("setColorAlpha",[zs,Bs],Ul),hl("setColorAlpha",[Us,Bs],Ul),hl("setColorRed",[zs,Bs],Wl),hl("setColorRed",[Us,Bs],Wl),hl("setColorGreen",[zs,Bs],Hl),hl("setColorGreen",[Us,Bs],Hl),hl("setColorBlue",[zs,Bs],ql),hl("setColorBlue",[Us,Bs],ql),hl("rgb",[Bs,Bs,Bs],(function(t,e,n,r){const o={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:Us,value:il(o)}})),hl("argb",[Bs,Bs,Bs,Bs],(function(t,e,n,r,o){const i={a:255*e.value,r:255*n.value,g:255*r.value,b:255*o.value};return{type:Us,value:il(i)}})),function(){const t={type:zs,isVararg:!0};hl("getDictString",[qs,t],Yl),hl("getStringFromDict",[qs,t],Yl),hl("getDictNumber",[qs,t],Zl),hl("getNumberFromDict",[qs,t],Zl),hl("getDictInteger",[qs,t],Ql),hl("getIntegerFromDict",[qs,t],Ql),hl("getDictBoolean",[qs,t],tc),hl("getBooleanFromDict",[qs,t],tc),hl("getDictColor",[qs,t],ec),hl("getColorFromDict",[qs,t],ec),hl("getDictUrl",[qs,t],nc),hl("getUrlFromDict",[qs,t],nc),hl("getDictOptString",[zs,qs,t],ic),hl("getOptStringFromDict",[zs,qs,t],ic),hl("getDictOptNumber",[Bs,qs,t],ac),hl("getOptNumberFromDict",[Bs,qs,t],ac),hl("getDictOptInteger",[Rs,qs,t],sc),hl("getOptIntegerFromDict",[Rs,qs,t],sc),hl("getDictOptBoolean",[Ls,qs,t],lc),hl("getOptBooleanFromDict",[Ls,qs,t],lc),hl("getDictOptColor",[Us,qs,t],cc),hl("getOptColorFromDict",[Us,qs,t],cc),hl("getDictOptColor",[zs,qs,t],cc),hl("getOptColorFromDict",[zs,qs,t],cc),hl("getDictOptUrl",[zs,qs,t],uc),hl("getOptUrlFromDict",[zs,qs,t],uc),hl("getDictOptUrl",[Ws,qs,t],uc),hl("getOptUrlFromDict",[Ws,qs,t],uc),hl("getDictFromDict",[qs,t],oc),hl("getArrayFromDict",[qs,t],rc),hl("getOptArrayFromDict",[qs,t],dc),hl("getOptDictFromDict",[qs,t],pc),gl("getString",[qs,t],Yl),gl("getBoolean",[qs,t],tc),gl("getInteger",[qs,t],Ql),gl("getNumber",[qs,t],Zl),gl("getUrl",[qs,t],nc),gl("getColor",[qs,t],ec),gl("getArray",[qs,t],rc),gl("getDict",[qs,t],oc)}(),hl("getArrayString",[Js,Rs],gc),hl("getStringFromArray",[Js,Rs],gc),hl("getArrayNumber",[Js,Rs],mc),hl("getNumberFromArray",[Js,Rs],mc),hl("getArrayInteger",[Js,Rs],vc),hl("getIntegerFromArray",[Js,Rs],vc),hl("getArrayBoolean",[Js,Rs],yc),hl("getBooleanFromArray",[Js,Rs],yc),hl("getArrayColor",[Js,Rs],$c),hl("getColorFromArray",[Js,Rs],$c),hl("getArrayUrl",[Js,Rs],bc),hl("getUrlFromArray",[Js,Rs],bc),hl("getArrayFromArray",[Js,Rs],_c),hl("getDictFromArray",[Js,Rs],wc),hl("getArrayOptString",[Js,Rs,zs],xc),hl("getOptStringFromArray",[Js,Rs,zs],xc),hl("getArrayOptNumber",[Js,Rs,Bs],kc),hl("getOptNumberFromArray",[Js,Rs,Bs],kc),hl("getArrayOptInteger",[Js,Rs,Rs],Cc),hl("getOptIntegerFromArray",[Js,Rs,Rs],Cc),hl("getArrayOptBoolean",[Js,Rs,Ls],Ec),hl("getOptBooleanFromArray",[Js,Rs,Ls],Ec),hl("getArrayOptColor",[Js,Rs,Us],Ac),hl("getOptColorFromArray",[Js,Rs,Us],Ac),hl("getArrayOptColor",[Js,Rs,zs],Ac),hl("getOptColorFromArray",[Js,Rs,zs],Ac),hl("getArrayOptUrl",[Js,Rs,Ws],jc),hl("getOptUrlFromArray",[Js,Rs,Ws],jc),hl("getArrayOptUrl",[Js,Rs,zs],jc),hl("getOptUrlFromArray",[Js,Rs,zs],jc),hl("getOptArrayFromArray",[Js,Rs],(function(t,e,n){try{return _c(t,e,n)}catch(t){return{type:Js,value:[]}}})),hl("getOptDictFromArray",[Js,Rs],(function(t,e,n){try{return wc(t,e,n)}catch(t){return{type:qs,value:{}}}})),hl("len",[Js],(function(t,e){return{type:Rs,value:Fi(e.value.length)}})),gl("getString",[Js,Rs],gc),gl("getInteger",[Js,Rs],vc),gl("getNumber",[Js,Rs],mc),gl("getBoolean",[Js,Rs],yc),gl("getUrl",[Js,Rs],bc),gl("getColor",[Js,Rs],$c),gl("getArray",[Js,Rs],_c),gl("getDict",[Js,Rs],wc),hl("getStoredIntegerValue",[zs,Rs],Vc(Rs)),hl("getStoredNumberValue",[zs,Bs],Vc(Bs)),hl("getStoredStringValue",[zs,zs],Vc(zs)),hl("getStoredUrlValue",[zs,Ws],Vc(Ws)),hl("getStoredUrlValue",[zs,zs],Vc(Ws)),hl("getStoredColorValue",[zs,Us],Vc(Us)),hl("getStoredColorValue",[zs,zs],Vc(Us)),hl("getStoredBooleanValue",[zs,Ls],Vc(Ls));const Dc={StringLiteral:function(t,e){return{type:zs,value:e.value}},NumberLiteral:function(t,e){return{type:Bs,value:e.value}},IntegerLiteral:function(t,e){return el(t,e.value),{type:Rs,value:e.value}},BooleanLiteral:function(t,e){return{type:Ls,value:e.value?1:0}},UnaryExpression:function(t,e){const n=Ks(Sc(t,e.argument));switch(e.operator){case"!":if(n.type===Ls)return{type:Ls,value:n.value?0:1};rl("".concat(e.operator).concat(Zs(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===Rs){const e=n.value*Fi(r);return el(t,e),{type:Rs,value:e}}if(n.type===Bs)return{type:Bs,value:n.value*r};rl("".concat(e.operator).concat(Zs(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=Ks(Sc(t,e.test));if(n.type===Ls)return n.value?Sc(t,e.consequent):Sc(t,e.alternate);rl("".concat(Zs(n)," ? ").concat(Zs(Sc(t,e.consequent))," : ").concat(Zs(Sc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return Sc(t,e.test)}catch(n){return Sc(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Sc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=Ys(Sc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:zs,value:n}},LogicalExpression:function(t,e){const n=Ks(Sc(t,e.left));if(n.type!==Ls&&rl("".concat(Zs(n)," ").concat(e.operator," ..."),"'".concat(e.operator,"' must be called with boolean operands.")),"||"===e.operator&&n.value)return n;if("&&"===e.operator&&!n.value)return{type:Ls,value:0};const r=Ks(Sc(t,e.right));return r.type!==Ls&&rl("".concat(Zs(n)," ").concat(e.operator," ").concat(Zs(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(Qs(r.type),".")),{type:Ls,value:r.value}},BinaryExpression:function(t,e){const n=e.operator;let r=Sc(t,e.left),o=Sc(t,e.right);if(("number"===r.type&&"integer"===o.type||"integer"===r.type&&"number"===o.type)&&("integer"===r.type?r=sl(r):"integer"===o.type&&(o=sl(o))),r.type!==o.type&&rl("".concat(Zs(r)," ").concat(e.operator," ").concat(Zs(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(Qs(r.type)," and ").concat(Qs(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===Hs&&n.type===Hs?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:Ls,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==Bs&&e.type!==Rs&&e.type!==Hs&&rl("".concat(Zs(e)," ").concat(t," ").concat(Zs(n)),"Operator '".concat(t,"' cannot be applied to ").concat(Qs(e.type)," type."));const o=e.type===Hs?e.value.getTime():e.value,i=n.type===Hs?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:Ls,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==zs&&n.type!==Bs&&n.type!==Rs&&rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Qs(n.type)," type.")),n.type===zs)return"-"===e&&rl("".concat(Zs(n)," - ").concat(Zs(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Qs(n.type)," type.")),{type:zs,value:n.value+r.value};let o="+"===e?n.value+r.value:n.value-r.value;if(n.type===Rs)try{o=tl(0,o),el(t,o)}catch(t){rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let o;if(n.type!==Rs&&n.type!==Bs&&rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Qs(n.type)," type.")),"*"===e)o=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),"Division by zero is not supported."),o="/"===e?n.value/r.value:n.value%r.value}if(n.type===Rs)try{o=tl(0,o),el(t,o)}catch(t){rl("".concat(Zs(n)," ").concat(e," ").concat(Zs(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r,o=e.arguments.map((e=>Sc(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(dl.has(i))r=dl.get(i);else{const t=vl("function",n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.map((t=>Qs(t.type))).join(", "),r="".concat(n,"(").concat(Fc(o),")");"few"===t.type&&0===o.length?rl(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?rl(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):rl(r,"Unknown function name: ".concat(n,"."))}r=t.func,t.conversions&&(o=yl(r,o))}if(!r)throw new Error("Function not found");try{return r.cb(t,...o)}catch(t){rl("".concat(n,"(").concat(Fc(o),")"),t.message)}},MethodExpression:function(t,e){const n=e.method.name;let r;e.arguments.unshift(e.object);let o=e.arguments.map((e=>Sc(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(fl.has(i))r=fl.get(i);else{const t=vl("method",n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.slice(1).map((t=>Qs(t.type))).join(", "),r="".concat(n,"(").concat(Fc(o.slice(1)),")");"few"===t.type&&1===o.length?rl(r,"Non empty argument list is required for method '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?rl(r,"Method '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):rl(r,"Unknown method name: ".concat(n,"."))}r=t.func,t.conversions&&(o=yl(r,o))}if(!r)throw new Error("Method not found");try{return r.cb(t,...o)}catch(t){rl("".concat(n,"(").concat(Fc(o.slice(1)),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function Sc(t,e){if(e.type in Dc)return Dc[e.type](t,e);throw new Error("Unsupported expression")}function Pc(t,e,n){try{const r={variables:t,warnings:[],safeIntegerOverflow:!1,store:e},o=Sc(r,n);return r.safeIntegerOverflow&&r.warnings.push(oe(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:o,warnings:r.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}class Nc{constructor(t){this.ast=t}apply(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{const o=Pc(t,n,this.ast);o.warnings.forEach(e);const i=o.result;if("error"===i.type)return void e(oe(new Error("Expression execution error"),{additional:{message:i.value}}));const a=i.value;if(a instanceof Date)return Xs(a);if("boolean"===i.type)return Boolean(a);if("color"===i.type){const t=pe(String(a));if(t)return il(t);e(oe(new Error("Expression execution error")))}if("integer"===i.type)return a>2147483647||a<-2147483648?void e(oe(new Error("Expression result is out of 32-bit int range"))):Number(a);if(!r&&("array"===i.type||"dict"===i.type))try{return JSON.stringify(a)}catch(t){return e(oe(new Error("Failed to stringify ".concat(i.type)))),"<".concat(i.type,">")}return a}catch(t){return void e(oe(new Error("Expression execution error")))}}}function Oc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Is(t,{startRule:"JsonStringContents"}),r=nl(n);return e.vars.push(...r),new Nc(n)}catch(e){return void n(oe(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Oc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Oc(t[o],e,n);return r}}var r;return t}function Ic(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t){if(t instanceof Nc)return t.apply(e,n,r,o);if(Array.isArray(t))return t.map((t=>Ic(t,e,n,r)));if("object"==typeof t){const o={};for(const i in t)o[i]=Ic(t[i],e,n,r);return o}}return t}function Tc(t,e,n){const r={vars:[],hasExpression:!1},o=Oc(t,r,e);return{vars:[...new Set(r.vars)],hasExpression:r.hasExpression,applyVars:(t,r)=>Ic(o,t,e,n,r)}}const Mc={pagers:function(){return te(new Map)}},zc=new Map,Rc=new Map;function Bc(t){const e=zc.get(t)||te("");return zc.has(t)||zc.set(t,e),e}function Lc(t){const e=Rc.get(t)||new Map;return Rc.has(t)||Rc.set(t,e),e}class Uc{setVariable(t){const e=t.getName(),n=Lc(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Bc(this).set(e)}getVariable(t){return Lc(this).get(t)}list(){return Lc(this).values()}}function Wc(){return new Uc}function Hc(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const qc=new Set(["start","stop","pause","resume","cancel","reset"]);class Jc{constructor(t){Hc(this,"timers",new Map),Hc(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(oe(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(oe(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&qc.has(e)))return void this.logError(oe(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}async tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),await this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((async()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&await this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),o=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((async()=>{await this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-o)%n,"running"===t.state&&e()}),o)};e()}}start(t){if("running"===t.state)return void this.logError(oe(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(oe(new Error("The timer is paused")));const e=t.definition.value_variable;!e||this.hasVariableWithType(e,"integer")?(e&&this.setVariableValue(e,0),t.definition.duration&&(t.duration=this.applyVars(t.definition.duration)),t.definition.tick_interval&&(t.tick=this.applyVars(t.definition.tick_interval)),void 0!==t.duration&&t.duration<0||void 0!==t.tick&&t.tick<=0?this.logError(oe(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):(void 0!==t.duration&&void 0!==t.tick&&(t.tickCount=0,t.tickCountPredict=Math.floor(t.duration/t.tick)),this.startOrResume(t))):this.logError(oe(new Error("Cannot find variable"),{additional:{name:e}}))}stop(t){"stopped"!==t.state?(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t),this.callActions(t,"end")):this.logError(oe(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(oe(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(oe(new Error("The timer has already been paused")));t.state="paused",this.stopTimerTimeouts(t);const e=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+e-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+e-t.tickStarted);const n=t.definition.value_variable;n&&t.durationPassed&&this.setVariableValue(n,Math.round(t.durationPassed))}resume(t){"stopped"!==t.state?"running"!==t.state?this.startOrResume(t):this.logError(oe(new Error("The timer is already running"))):this.logError(oe(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}async callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);return this.execAnyActions(t,{processUrls:!1})}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}async unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&await this.tickOrUnholdAction(e),this.startOrResume(e)}}}function Gc(t,e,n,r){const{variable_name:o}=n;if(!o)return void e(oe(new Error("Incorrect ".concat(n.type," action")),{additional:{name:o}}));const i=t.get(o);if(!i)return void e(oe(new Error("Cannot find variable"),{additional:{name:o}}));const a=i.getType();"array"===a?r(i):e(oe(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:a}}))}const Kc={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},Xc={linear:r,ease:Do,ease_in:jo,ease_out:Vo,ease_in_out:Ao,spring:So},Yc=300,Zc=0;function Qc(t,e){let{animations:n,direction:r}=e;if(!n)return{};const o=Te(n),i=(a=o,Math.max(...a.map((t=>(Number(t.duration)||Yc)+(Number(t.start_delay)||Zc)))));var a;return o.some((t=>"no_animation"===t.name))?{}:{duration:Le()?0:i,css:t=>{const e=t*i,n=o.map((t=>{const n=Number(t.start_delay)||Zc,o=Number(t.duration)||Yc,i=Math.max(0,Math.min(1,(e-n)/o)),a=(Xc[t.interpolator||"ease_in_out"]||Ao)(i);var s,l;if("fade"===t.name)return{active:a>0&&a<1,opacity:(1-a)*("in"===r&&null!==(s=t.start_value)&&void 0!==s?s:0)+a*("in"===r?1:null!==(l=t.end_value)&&void 0!==l?l:1)};if("translate"===t.name){var c,u;const e=-("in"===r&&null!==(c=t.start_value)&&void 0!==c?c:10),n=-("in"===r?0:null!==(u=t.end_value)&&void 0!==u?u:0);return{active:a>0&&a<1,translate:"translateY(".concat((1-a)*e+a*n).concat("in"===r&&void 0!==t.start_value||"out"===r&&void 0!==t.end_value?"%":"px",")")}}if("scale"===t.name){var d,p;const e="in"===r&&null!==(d=t.start_value)&&void 0!==d?d:0,n="in"===r?1:null!==(p=t.end_value)&&void 0!==p?p:1;return{active:a>0&&a<1,scale:"scale(".concat((1-a)*e+a*n,")")}}return{}})),a=n.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),s=n.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),l=n.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),c=n.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),u=[s,c.length?c[c.length-1]:l].filter(Boolean).join(" ");return"transform:".concat(u||"none",";opacity:").concat(a)}}}const{window:tu}=j;function eu(t){let e,o,i,a,c,u,d,p;return o=new gs({props:{componentContext:t[11]}}),{c(){e=M("div"),Jt(o.$$.fragment),W(e,"class",i=Ee("tooltip",Kc,t[5])+" "+(t[12]?ne.root_platform_desktop:"")),Y(e,"top",t[2]),Y(e,"left",t[1]),Y(e,"width",t[3]),Y(e,"height",t[4])},m(n,r){O(n,e,r),Gt(o,e,null),t[27](e),u=!0,d||(p=[U(tu,"click",t[16]),U(tu,"resize",t[17])],d=!0)},p(n,r){t=n;const a={};2048&r[0]&&(a.componentContext=t[11]),o.$set(a),(!u||4128&r[0]&&i!==(i=Ee("tooltip",Kc,t[5])+" "+(t[12]?ne.root_platform_desktop:"")))&&W(e,"class",i),4&r[0]&&Y(e,"top",t[2]),2&r[0]&&Y(e,"left",t[1]),8&r[0]&&Y(e,"width",t[3]),16&r[0]&&Y(e,"height",t[4])},i(n){u||(Nt(o.$$.fragment,n),n&&wt((()=>{u&&(c&&c.end(1),a=Tt(e,Qc,{animations:t[13]||nu,direction:"in"}),a.start())})),u=!0)},o(i){Ot(o.$$.fragment,i),a&&a.invalidate(),i&&(c=function(t,e,o){const i={direction:"out"};let a,c=e(t,o,i),u=!0;const d=Dt;let p;function f(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:f}=c||It;f&&(a=ot(t,1,0,o,e,i,f));const h=x()+e,g=h+o;wt((()=>Vt(t,!1,"start"))),"inert"in t&&(p=t.inert,t.inert=!0),A((e=>{if(u){if(e>=g)return l(0,1),Vt(t,!1,"end"),--d.r||s(d.c),!1;if(e>=h){const t=i((e-h)/o);l(1-t,t)}}return u}))}return d.r+=1,l(c)?jt().then((()=>{c=c(i),f()})):f(),{end(e){e&&"inert"in t&&(t.inert=p),e&&c.tick&&c.tick(1,0),u&&(a&&it(t,a),u=!1)}}}(e,Qc,{animations:t[14]||nu,direction:"out"})),u=!1},d(n){n&&I(e),Kt(o),t[27](null),n&&c&&c.end(),d=!1,s(p)}}}const nu={name:"set",items:[{name:"translate"},{name:"fade"}]};function ru(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$=n,b=n,_=n,w=n,x=n;var k,C,E,A;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{ownerNode:j}=e,{data:V}=e,{internalId:F}=e,{parentComponentContext:D}=e;const S=pt(re),P=S.isDesktop;f(t,P,(t=>r(12,m=t)));const N=Date.now();let O,I=!1,T="",M="",z="",R="",B=null;function L(){var t,e;if(!O||!j)return;const n=O.parentElement;if(!n)return;const o=O.style.cssText;r(0,O.style.cssText+=";transform: none !important",O);const i=j.getBoundingClientRect(),a=O.getBoundingClientRect(),s=n.getBoundingClientRect();r(0,O.style.cssText=o,O);let l=0,c=0,u=null,p=null,f=0,m=0;const v=D.getJsonWithVars(null===(t=V.div)||void 0===t?void 0:t.width),y=D.getJsonWithVars(null===(e=V.div)||void 0===e?void 0:e.width);if(f=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?u=v.value:a.width:u=i.width,m="match_parent"===(null==y?void 0:y.type)?p=i.height:"fixed"===(null==y?void 0:y.type)&&y.value?p=y.value:a.height,"left"===g||"bottom-left"===g||"top-left"===g)l=i.left-f;else if("top"===g||"bottom"===g||"center"===g)l=(i.left+i.right)/2-f/2;else{if("right"!==g&&"bottom-right"!==g&&"top-right"!==g)return;l=i.right}if("top"===g||"top-left"===g||"top-right"===g)c=i.top-m;else if("left"===g||"right"===g||"center"===g)c=(i.top+i.bottom)/2-m/2;else{if("bottom-left"!==g&&"bottom"!==g&&"bottom-right"!==g)return;c=i.bottom}l-=s.left,c-=s.top,l+=h||0,c+=d||0,r(1,T="".concat(l,"px")),r(2,M="".concat(c,"px")),r(3,z=null!==u?"".concat(u,"px"):""),r(4,R=null!==p?"".concat(p,"px"):""),r(26,I=!0),null===u||null===p?"undefined"==typeof ResizeObserver||B||(B=new ResizeObserver((()=>{requestAnimationFrame(L)})),B.observe(O)):null==B||B.disconnect()}return lt((()=>{if(S.tooltipRoot){const t=window.getComputedStyle(O);r(0,O.style.fontSize=t.fontSize,O),r(0,O.style.fontFamily=t.fontFamily,O),r(0,O.style.lineHeight=t.lineHeight,O),S.tooltipRoot.appendChild(O)}})),ct((()=>{I||L()})),ut((()=>{null==B||B.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(18,j=t.ownerNode),"data"in t&&r(19,V=t.data),"internalId"in t&&r(20,F=t.internalId),"parentComponentContext"in t&&r(21,D=t.parentComponentContext)},t.$$.update=()=>{2621440&t.$$.dirty[0]&&r(11,o=D.produceChildContext(V.div)),2621440&t.$$.dirty[0]&&(r(10,i=D.getDerivedFromVars(V.position)),_(),_=p(i,(t=>r(31,g=t)))),15204352&t.$$.dirty[0]&&(r(9,a=D.getDerivedFromVars(null===r(23,C=null===r(22,k=V.offset)||void 0===k?void 0:k.x)||void 0===C?void 0:C.value)),b(),b=p(a,(t=>r(30,h=t)))),52953088&t.$$.dirty[0]&&(r(8,s=D.getDerivedFromVars(null===r(25,A=null===r(24,E=V.offset)||void 0===E?void 0:E.y)||void 0===A?void 0:A.value)),$(),$=p(s,(t=>r(29,d=t)))),2621440&t.$$.dirty[0]&&(r(7,l=D.getDerivedFromVars(V.animation_in)),w(),w=p(l,(t=>r(13,v=t)))),2621440&t.$$.dirty[0]&&(r(6,c=D.getDerivedFromVars(V.animation_out)),x(),x=p(c,(t=>r(14,y=t)))),67108864&t.$$.dirty[0]&&r(5,u={visible:I})},[O,T,M,z,R,u,c,l,s,a,i,o,m,v,y,P,function(t){Date.now()-N<100||t.composedPath().includes(O)||S.onTooltipClose(F)},function(){L()},j,V,F,D,k,C,E,A,I,function(t){gt[t?"unshift":"push"]((()=>{O=t,r(0,O)}))}]}const ou=class extends Zt{constructor(t){super(),Xt(this,t,ru,eu,d,{ownerNode:18,data:19,internalId:20,parentComponentContext:21},null,[-1,-1])}};function iu(t){let{delay:e=0,duration:n=400,easing:r=Vo,x:o=0,y:i=0,opacity:a=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=getComputedStyle(t),l=+s.opacity,c="none"===s.transform?"":s.transform,u=l*(1-a),[d,p]=_(o),[f,h]=_(i);return{delay:e,duration:n,easing:r,css:(t,e)=>"\n\t\t\ttransform: ".concat(c," translate(").concat((1-t)*d).concat(p,", ").concat((1-t)*f).concat(h,");\n\t\t\topacity: ").concat(l-u*e)}}const au={root_platform_desktop:"divkit-ee112",menu:"divkit-cedbe",menu_visible:"divkit-e4801",menu__list:"divkit-c8df2",menu__item:"divkit-ffd4a"},{window:su}=j;function lu(t,e,n){const r=t.slice();return r[23]=e[n],r}function cu(t){let e,n=t[23].text+"";return{c(){e=R(n)},m(t,n){O(t,e,n)},p(t,r){1&r&&n!==(n=t[23].text+"")&&K(e,n)},d(t){t&&I(e)}}}function uu(t){let e,n,r,o;return n=new Xe({props:{componentContext:t[1],actions:t[23].actions||t[23].action&&[t[23].action],cls:au.menu__item+" "+t[10],customAction:t[14],$$slots:{default:[cu]},$$scope:{ctx:t}}}),{c(){e=M("li"),Jt(n.$$.fragment),r=B()},m(t,i){O(t,e,i),Gt(n,e,null),S(e,r),o=!0},p(t,e){const r={};2&e&&(r.componentContext=t[1]),1&e&&(r.actions=t[23].actions||t[23].action&&[t[23].action]),67108865&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){o||(Nt(n.$$.fragment,t),o=!0)},o(t){Ot(n.$$.fragment,t),o=!1},d(t){t&&I(e),Kt(n)}}}function du(t){let e,n,r,o,i,a,l,c,u=zt(t[0]),d=[];for(let e=0;e<u.length;e+=1)d[e]=uu(lu(t,u,e));const p=t=>Ot(d[t],1,1,(()=>{d[t]=null}));return{c(){e=M("div"),n=M("ul");for(let t=0;t<d.length;t+=1)d[t].c();W(n,"class",r=au.menu__list),W(e,"class",o=Ee("menu",au,t[7])+" "+(t[8]?ne.root_platform_desktop:"")+" "+t[9]),Y(e,"top",t[4]),Y(e,"left",t[3]),Y(e,"width",t[5]),Y(e,"height",t[6])},m(r,o){O(r,e,o),S(e,n);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(n,null);t[17](e),a=!0,l||(c=[U(su,"click",t[12]),U(su,"resize",t[13])],l=!0)},p(t,r){let[i]=r;if(17411&i){let e;for(u=zt(t[0]),e=0;e<u.length;e+=1){const r=lu(t,u,e);d[e]?(d[e].p(r,i),Nt(d[e],1)):(d[e]=uu(r),d[e].c(),Nt(d[e],1),d[e].m(n,null))}for(St(),e=u.length;e<d.length;e+=1)p(e);Pt()}(!a||384&i&&o!==(o=Ee("menu",au,t[7])+" "+(t[8]?ne.root_platform_desktop:"")+" "+t[9]))&&W(e,"class",o),16&i&&Y(e,"top",t[4]),8&i&&Y(e,"left",t[3]),32&i&&Y(e,"width",t[5]),64&i&&Y(e,"height",t[6])},i(t){if(!a){for(let t=0;t<u.length;t+=1)Nt(d[t]);t&&wt((()=>{a&&(i||(i=Mt(e,iu,{y:20},!0)),i.run(1))})),a=!0}},o(t){d=d.filter(Boolean);for(let t=0;t<d.length;t+=1)Ot(d[t]);t&&(i||(i=Mt(e,iu,{y:20},!1)),i.run(0)),a=!1},d(n){n&&I(e),T(d,n),t[17](null),n&&i&&i.end(),l=!1,s(c)}}}function pu(t,e,n){let r,o,{ownerNode:i}=e,{items:a}=e,{parentComponentContext:s}=e;const l=pt(re),c=l.getCustomization("menuPopupClass")||"",u=l.getCustomization("menuItemClass")||"",d=l.isDesktop;f(t,d,(t=>n(8,o=t)));const p=Date.now(),h=function(){const t=st();return function(e,n){let{cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t.$$.callbacks[e];if(o){const i=Q(e,n,{cancelable:r});return o.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}();let g,m=!1,v="",y="",$="",b="",_=null;function w(){if(!g||!i)return;const t=g.parentElement;if(!t)return;const e=i.getBoundingClientRect(),r=g.getBoundingClientRect(),o=t.getBoundingClientRect(),a=window.innerWidth,s=window.innerHeight;let l=0,c=0,u=r.width,d=r.height;l=e.left-o.left,c=e.bottom-o.top,l+u>a&&(l=a-u),l<0&&(l=0),c+d>s&&(c=e.top-o.top-d>0?e.top-o.top-d:s-d),c<0&&(c=0),n(3,v="".concat(l,"px")),n(4,y="".concat(c,"px")),n(5,$=""),n(6,b=""),n(16,m=!0),"undefined"==typeof ResizeObserver||_||(_=new ResizeObserver((()=>{requestAnimationFrame(w)})),_.observe(g))}return lt((()=>{if(l.tooltipRoot){const t=window.getComputedStyle(g);n(2,g.style.fontSize=t.fontSize,g),n(2,g.style.fontFamily=t.fontFamily,g),n(2,g.style.lineHeight=t.lineHeight,g),l.tooltipRoot.appendChild(g)}})),ct((()=>{m||w()})),ut((()=>{null==_||_.disconnect()})),t.$$set=t=>{"ownerNode"in t&&n(15,i=t.ownerNode),"items"in t&&n(0,a=t.items),"parentComponentContext"in t&&n(1,s=t.parentComponentContext)},t.$$.update=()=>{65536&t.$$.dirty&&n(7,r={visible:m})},[a,s,g,v,y,$,b,r,o,c,u,d,function(t){Date.now()-p<100||t.composedPath().includes(g)||h("close")},function(){w()},function(){return h("close"),!0},i,m,function(t){gt[t?"unshift":"push"]((()=>{g=t,n(2,g)}))}]}const fu=class extends Zt{constructor(t){super(),Xt(this,t,pu,du,d,{ownerNode:15,items:0,parentComponentContext:1})}},{Map:hu}=j;function gu(t,e,n){const r=t.slice();return r[115]=e[n],r}function mu(t){let e,n,r,o,i,a,s,l,c,u;n=new Cs({props:{svgFiltersMap:t[5]}}),o=new gs({props:{componentContext:t[6]}});let d=t[3]&&vu(t),p=t[4]&&$u(t);return{c(){e=M("div"),Jt(n.$$.fragment),r=B(),Jt(o.$$.fragment),i=B(),d&&d.c(),a=B(),p&&p.c(),W(e,"class",s=""+(ne.root+(t[7]?" ".concat(ne.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))),W(e,"dir",t[8])},m(t,s){O(t,e,s),Gt(n,e,null),S(e,r),Gt(o,e,null),S(e,i),d&&d.m(e,null),S(e,a),p&&p.m(e,null),l=!0,c||(u=U(e,"touchstart",Au,{passive:!0}),c=!0)},p(t,r){const i={};32&r[0]&&(i.svgFiltersMap=t[5]),n.$set(i);const c={};64&r[0]&&(c.componentContext=t[6]),o.$set(c),t[3]?d?(d.p(t,r),8&r[0]&&Nt(d,1)):(d=vu(t),d.c(),Nt(d,1),d.m(e,a)):d&&(St(),Ot(d,1,1,(()=>{d=null})),Pt()),t[4]?p?(p.p(t,r),16&r[0]&&Nt(p,1)):(p=$u(t),p.c(),Nt(p,1),p.m(e,null)):p&&(St(),Ot(p,1,1,(()=>{p=null})),Pt()),(!l||129&r[0]&&s!==(s=""+(ne.root+(t[7]?" ".concat(ne.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&W(e,"class",s),(!l||256&r[0])&&W(e,"dir",t[8])},i(t){l||(Nt(n.$$.fragment,t),Nt(o.$$.fragment,t),Nt(d),Nt(p),l=!0)},o(t){Ot(n.$$.fragment,t),Ot(o.$$.fragment,t),Ot(d),Ot(p),l=!1},d(t){t&&I(e),Kt(n),Kt(o),d&&d.d(),p&&p.d(),c=!1,u()}}}function vu(t){let e,n,r=[],o=new hu,i=zt(t[3]);const a=t=>t[115].internalId;for(let e=0;e<i.length;e+=1){let n=gu(t,i,e),s=a(n);o.set(s,r[e]=yu(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=L()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);O(t,e,o),n=!0},p(t,n){72&n[0]&&(i=zt(t[3]),St(),r=Bt(r,n,a,1,t,i,o,e.parentNode,Rt,yu,e,gu),Pt())},i(t){if(!n){for(let t=0;t<i.length;t+=1)Nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)Ot(r[t]);n=!1},d(t){t&&I(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function yu(t,e){let n,r,o;return r=new ou({props:{ownerNode:e[115].ownerNode,data:e[115].desc,internalId:e[115].internalId,parentComponentContext:e[6]}}),{key:t,first:null,c(){n=L(),Jt(r.$$.fragment),this.first=n},m(t,e){O(t,n,e),Gt(r,t,e),o=!0},p(t,n){e=t;const o={};8&n[0]&&(o.ownerNode=e[115].ownerNode),8&n[0]&&(o.data=e[115].desc),8&n[0]&&(o.internalId=e[115].internalId),64&n[0]&&(o.parentComponentContext=e[6]),r.$set(o)},i(t){o||(Nt(r.$$.fragment,t),o=!0)},o(t){Ot(r.$$.fragment,t),o=!1},d(t){t&&I(n),Kt(r,t)}}}function $u(t){let e,n;return e=new fu({props:{ownerNode:t[4].node,items:t[4].items,parentComponentContext:t[6]}}),e.$on("close",t[39]),{c(){Jt(e.$$.fragment)},m(t,r){Gt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.ownerNode=t[4].node),16&n[0]&&(r.items=t[4].items),64&n[0]&&(r.parentComponentContext=t[6]),e.$set(r)},i(t){n||(Nt(e.$$.fragment,t),n=!0)},o(t){Ot(e.$$.fragment,t),n=!1},d(t){Kt(e,t)}}}function bu(t){let e,n,r=!t[1]&&!t[2]&&t[6]&&mu(t);return{c(){r&&r.c(),e=L()},m(t,o){r&&r.m(t,o),O(t,e,o),n=!0},p(t,n){t[1]||t[2]||!t[6]?r&&(St(),Ot(r,1,1,(()=>{r=null})),Pt()):r?(r.p(t,n),70&n[0]&&Nt(r,1)):(r=mu(t),r.c(),Nt(r,1),r.m(e.parentNode,e))},i(t){n||(Nt(r),n=!0)},o(t){Ot(r),n=!1},d(t){t&&I(e),r&&r.d(t)}}}let _u=te(!0),wu=0;function xu(){_u.set(!1)}function ku(){_u.set(!0)}const Cu=new Set(["string","integer","number","url","color","boolean"]);function Eu(t,e){return t&&e?new Map([...t,...e]):t||e||void 0}function Au(){}function ju(t,e,n){let r,o,i,a;var s,l,c,u;let{id:d}=e,{json:p={}}=e,{platform:h="auto"}=e,{theme:g="system"}=e,{globalVariablesController:m=new Uc}=e,{mix:v=""}=e,{customization:y={}}=e,{builtinProtocols:$=["http","https","tel","mailto","intent"]}=e,{extensions:b=new Map}=e,{onError:_}=e,{onStat:w}=e,{onCustomAction:x}=e,{onComponent:k}=e,{typefaceProvider:C=(t=>"")}=e,{fetchInit:E={}}=e,{tooltipRoot:A}=e,{customComponents:j}=e,{direction:V="ltr"}=e,{store:F}=e,D=te("desktop"===h);if(f(t,D,(t=>n(7,i=t))),"auto"===h&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");D.set(!t.matches),t.addListener((()=>{D.set(!t.matches)}))}let S="light",P=null;const N=te("rtl"===V?"rtl":"ltr");function O(){"system"===g&&P&&n(36,S=P.matches?"dark":"light")}f(t,N,(t=>n(8,a=t)));const I=new Set($);let T=!1,M=!1;d||(M=!0,Y(oe(new Error('"id" prop is required'))));const z={stateChange:!1},R=Bc(m),B=Lc(m),L=new Map,U=new Map,W=new Map;let H,q=null,J=0,G=[];const K=[];function X(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=Tc(e,t,F);if(!o.hasExpression)return e;const i=Eu(U,n);return o.applyVars(i,r)}function Y(t){_?_({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function Z(t,e){w&&w({type:t,action:e})}function Q(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type&&t.type in r;){if(({json:t,templateContext:e}=Es(t,e,r,Y)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}}let tt=0;function et(t){return"".concat(d,"-").concat(tt++)}let nt={},rt={};async function ot(t,e){const o=t.url?String(t.url):"",i=t.typed;if(!Re(t))return;const a=(null==e?void 0:e.logError)||Y;if(o)try{const i=o.replace(/div-action:\/\//,""),s=/([^?]+)\?(.+)/.exec(i);if(!s)return;const l=new URLSearchParams(s[2]);switch(s[1]){case"set_state":await async function(t){if(!t)throw new Error("Missing state id");let e=vt,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],o=n[t+1];let i=e.getChild(r);if(!i)return;await i.setState(o),e=i}}(l.get("state_id"));break;case"set_current_item":case"set_previous_item":case"set_next_item":case"scroll_to_start":case"scroll_to_end":case"scroll_backward":case"scroll_forward":case"scroll_to_position":!function(t,e,n){let{item:r,step:o,overflow:i}=n;var a,s,l,c,u;if(!e)throw new Error('Missing id for "'.concat(t,'" action'));const d=Number(r);if("set_current_item"===t&&Number.isNaN(d))throw new Error('Incorrect item for "'.concat(t,'" action'));let p=Number(o);if(o||"set_previous_item"!==t&&"set_next_item"!==t||(p=1),!o&&("scroll_backward"===t||"scroll_forward"===t||"scroll_to_position"===t)||Number.isNaN(p))throw new Error('Incorrect step value for "'.concat(t,'" action'));if(i&&"clamp"!==i&&"ring"!==i)throw new Error('Incorrect overflow value for "'.concat(t,'" action'));i=i||"clamp";const f=ht(e);if(f)switch(t){case"set_current_item":return void f.setCurrentItem(d);case"set_previous_item":return void f.setPreviousItem(p,i);case"set_next_item":return void f.setNextItem(p,i);case"scroll_to_start":return void(null===(a=f.scrollToStart)||void 0===a||a.call(f));case"scroll_to_end":return void(null===(s=f.scrollToEnd)||void 0===s||s.call(f));case"scroll_backward":return void(null===(l=f.scrollBackward)||void 0===l||l.call(f,p,i));case"scroll_forward":return void(null===(c=f.scrollForward)||void 0===c||c.call(f,p,i));case"scroll_to_position":null===(u=f.scrollToPosition)||void 0===u||u.call(f,p)}}(s[1],l.get("id"),{item:l.get("item"),step:l.get("step"),overflow:l.get("overflow")});break;case"set_variable":const c=l.get("name"),u=l.get("value");if(c&&null!==u){const t=U.get(c);if(t){const e=t.getType();"dict"===e||"array"===e?a(oe(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:c}})):t.set(u)}else a(oe(new Error("Cannot find variable"),{additional:{name:c}}))}else a(oe(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const d=l.get("action"),p=l.get("id");q?q.execTimerAction(p,d):a(oe(new Error("Incorrect timer action"),{additional:{id:p,action:d}}));break;case"video":!function(t,e,n){const r=(null==n?void 0:n.logError)||Y;if(t){const n=ht(t);n?"start"===e?n.start():"pause"===e?n.pause():r(oe(new Error("Unknown video action"),{additional:{id:t,action:e}})):r(oe(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else r(oe(new Error("Missing id in video action"),{additional:{action:e}}))}(l.get("id"),l.get("action"),e);break;case"download":!function(t,e,n){const o=(null==n?void 0:n.logError)||Y;if(t){let n;n="function"==typeof E?E(t):E,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,a,s;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=ct.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return o(oe(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void it(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_fail_actions)}n.patch.changes.forEach((t=>{const e=ct.get(t.id);e&&e.replaceWith(t.id,t.items)})),it(null===(s=e.download_callbacks)||void 0===s?void 0:s.on_success_actions)}}else o(oe(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;o(oe(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),it(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else o(oe(new Error("Missing url in download action"),{additional:{url:t}}))}(l.get("url"),t,e);break;case"show_tooltip":!function(t,e,r){var o;const i=(null==r?void 0:r.logError)||Y;if(!t)return void i(oe(new Error("Missing id in show_tooltip action")));const a=ft.get(t);if(!a)return void i(oe(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&G.some((e=>e.desc.id===t)))return;const s={internalId:++J,ownerNode:a.onwerNode,desc:a.tooltip,timeoutId:0};n(3,G=[...G,s]);const l=null!==(o=a.tooltip.duration)&&void 0!==o?o:5e3;l&&(s.timeoutId=window.setTimeout((()=>{s.timeoutId=0,n(3,G=G.filter((t=>t.internalId!==s.internalId)))}),l))}(l.get("id"),l.get("multiple"),e);break;case"hide_tooltip":!function(t,e){const r=(null==e?void 0:e.logError)||Y;t?n(3,G=G.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):r(oe(new Error("Missing id in hide_tooltip action")))}(l.get("id"),e);break;case"set_stored_value":!function(t,e,n,r,o){const i=(null==t?void 0:t.logError)||Y;if(!F)return void i(oe(new Error("Store is not configured")));let a=n;e&&a&&r&&o?Cu.has(r)?("integer"===r||"number"===r?a=Number(a):"boolean"===r&&(a="true"===a),F.setValue(e,r,a,Number(o))):i(oe(new Error("Incorrect stored type"))):i(oe(new Error("Missing required params for set_stored_value")))}(e,l.get("name"),l.get("value"),l.get("type"),l.get("lifetime"));break;default:a(oe(new Error("Unknown type of action"),{additional:{url:o}}))}}catch(t){a(oe(t,{additional:{url:o}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=U.get(t);n?n.getType()===e.type?n.setValue(e.value):a(oe(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):a(oe(new Error("Cannot find variable"),{additional:{name:t}}))}else a(oe(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:o,value:i}=n;!i||"number"!=typeof o&&void 0!==o?e(oe(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):Gc(t,e,n,(t=>{const a=t.getValue();if("number"==typeof o&&(o<0||o>a.length))e(oe(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:a.length}}));else{const e=a.slice();"number"==typeof o?e.splice(o,0,i.value):e.push(i.value),t.setValue(e)}}))}(U,a,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:o}=n;"number"==typeof o?Gc(t,e,n,(t=>{const i=t.getValue();if("number"==typeof o&&(o<0||o>=i.length))e(oe(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:i.length}}));else{const e=i.slice();e.splice(o,1),t.setValue(e)}})):e(oe(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(U,a,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(oe(new Error("Incorrect action"),{additional:{action:e}})):"undefined"!=typeof navigator&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e.content.value).catch((e=>{t(oe(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(oe(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(a,i);break;case"focus_element":{const t=i.element_id&&pt.get(i.element_id);t?t.focus():a(oe(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}case"clear_focus":try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch(t){}break;default:a(oe(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function it(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!Array.isArray(t))return;const r=t.filter(Re);for(let t=0;t<r.length;++t){let o=r[t];const i=o.url,a=o.typed;if(i){const t=be(i);if(t)if(_e(t,I)){if(e.processUrls)if("_blank"===o.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(await ot(o,e.componentContext),await _t()):o.log_id&&(at(o),await _t())}else a?await ot(o,e.componentContext):e.node&&Array.isArray(o.menu_items)&&o.menu_items.length&&n(4,H={items:o.menu_items,node:e.node})}r.forEach((t=>{t.log_id&&Z("click",t)}))}function at(t){null==x||x(t)}const st=new Map,ct=new Map,pt=new Map,ft=new Map;function ht(t){if(st.has(t))return st.get(t);Y(oe(new Error("Missing instance with id"),{additional:{id:t}}))}const gt=new Map;function mt(t){const e=W.get(t)||te(void 0);return W.has(t)||W.set(t,e),e}dt(re,{logStat:Z,hasTemplate:function(t){return t in r},processTemplate:Q,genId:et,genClass:function(t){return"divkit-".concat(et())},execAction:ot,execCustomAction:at,isRunning:function(t){return z[t]},setRunning:function(t,e){z[t]=e},registerInstance:function(t,e){st.has(t)?Y(oe(new Error("Duplicate instance id"),{additional:{id:t}})):st.set(t,e)},unregisterInstance:function(t){st.delete(t)},registerParentOf:function(t,e){ct.set(t,e)},unregisterParentOf:function(t){ct.delete(t)},registerTooltip:function(t,e){const n=e.id;n&&(ft.has(n)&&Y(oe(new Error("Duplicate tooltip id"),{additional:{id:n}})),ft.set(n,{onwerNode:t,tooltip:e}))},unregisterTooltip:function(t){const e=t.id;e&&(ft.delete(e),G.some((t=>t.desc.id===e))&&n(3,G=G.filter((t=>t.desc.id!==e))))},onTooltipClose:function(t){n(3,G=G.filter((e=>e.internalId!==t)))},tooltipRoot:A,registerFocusable:function(t,e){pt.set(t,e)},unregisterFocusable:function(t){pt.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(rt[r]=rt[r]||0,++rt[r],nt[r])return nt[r];const o="".concat(et(),"-svg-filter");return n(5,nt=Object.assign(Object.assign({},nt),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);rt[r]&&0==--rt[r]&&n(5,nt=Object.keys(nt).reduce(((t,e)=>(rt[e]&&(t[e]=nt[e]),t)),{}))},preparePrototypeVariables:function(t,e){const n=new Map,r=function(t,e,n){if(!(e in Gi))throw new Error("Unsupported variable type");return new Gi[e](t,n)}(t,"dict",e);return n.set(t,r),n},getStore:function(t){return gt.has(t)||function(t){gt.has(t)||gt.set(t,Mc[t]())}(t),gt.get(t)},getCustomization:function(t){return null==y?void 0:y[t]},getBuiltinProtocols:function(){return I},getExtension:function(t,e){const n=b.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:U,logError:Y}},registerTimeout:function(t){K.push(t)},typefaceProvider:C,isDesktop:D,isPointerFocus:_u,customComponents:j,direction:N,componentDevtool:void 0}),dt(We,{hasAction:()=>!1});const vt={setState(t){throw new Error("Not implemented")},getChild(t){if(yt&&yt.has(t))return yt.get(t);Y(oe(new Error("Missing state block with id"),{additional:{id:t}}))}};let yt=null;function $t(t){if(t.type in Ui){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&Y(oe(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=Wi(t.name,t.type,t.value);L.set(t.name,e),U.set(t.name,e)}catch(e){Y(oe(e,{additional:{name:t.name}}))}}}dt(Ae,{registerInstance(t,e){yt||(yt=new Map),yt.has(t)?Y(oe(new Error("Duplicate state with id"),{additional:{id:t}})):yt.set(t,e)},unregisterInstance(t){null==yt||yt.delete(t)},runVisibilityTransition:(t,e,n,r,o)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const bt=null===(s=null==p?void 0:p.card)||void 0===s?void 0:s.variables;Array.isArray(bt)&&bt.forEach((t=>{if(t&&t.name){if(L.has(t.name))return void Y(oe(new Error("Duplicate variable"),{additional:{name:t.name}}));$t(t)}}));const wt=p.palette;wt&&wt[S].forEach((t=>{if(L.has(t.name))Y(oe(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Wi(t.name,"color",t.color);L.set(t.name,e),U.set(t.name,e)}catch(e){Y(oe(e,{additional:{name:t.name}}))}}));for(const[t,e]of B)U.has(t)||U.set(t,e);R.subscribe((t=>{if(t&&!U.has(t)){const e=B.get(t);U.set(t,e);const n=W.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const xt=null===(c=null==p?void 0:p.card)||void 0===c?void 0:c.timers;if(xt&&"undefined"!=typeof document){const t=q=new Jc({logError:Y,applyVars:t=>X(Y,t),hasVariableWithType:function(t,e){const n=U.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=U.get(t);n?n.setValue(e):Y(oe(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:it});xt.forEach((e=>t.createTimer(e)))}const kt=function t(e){const n={json:{},path:[],templateContext:{},logError(t){t.additional=t.additional||{},t.additional.path=n.path.join("/"),Y(t)},execAnyActions(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return it(t,{componentContext:n,processUrls:e.processUrls,node:e.node})},getDerivedFromVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return js(e);const o=Eu(U,n),i=Tc(e,t,F);return i.vars.length?ee(i.vars.map((t=>o.get(t)||mt(t))).filter(he),(()=>i.applyVars(o,r))):i.hasExpression?js(i.applyVars(o)):js(e)}(n.logError,t,Eu(n.variables,e),r)},getJsonWithVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return X(n.logError,t,Eu(n.variables,e),r)},produceChildContext(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t(n);let i=e,a=n.templateContext;const{templateContext:s,json:l}=Q(i,a);return o.json=l,o.templateContext=s,o.origJson=e,void 0!==r.path&&o.path.push(String(r.path)),e.type&&!r.isRootState&&o.path.push(e.type),o.variables=Eu(n.variables,r.variables),r.fake&&(o.fakeElement=!0),r.isRootState&&(o.isRootState=!0),o},getVariable(t,e){const r=(n.variables||U).get(t);if(r){const o=r.getType();if(o!==e)return void n.logError(oe(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:o}}))}return r}};return e?(n.parent=e,n.path=e.path.slice(),e.fakeElement&&(n.fakeElement=!0)):(n.json={type:"root"},n.isRootState=!0),n}();let Ct;return lt((()=>{wu++,1===wu&&(window.addEventListener("keydown",xu),window.addEventListener("pointerdown",ku)),(()=>{var t;const e=null===(t=null==p?void 0:p.card)||void 0===t?void 0:t.variable_triggers;Array.isArray(e)&&e.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void Y(oe(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:t.condition}}));const n=t.mode||"on_condition";if("on_variable"===n||"on_condition"===n)try{const r=Is(t.condition,{startRule:"JsonStringContents"}),o=nl(r);if(!o.length)return void Y(oe(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));ee(o.map((t=>U.get(t)||mt(t))),(()=>{const t=Pc(U,F,r);return t.warnings.forEach(Y),t.result})).subscribe((async r=>{if("error"!==r.type){if(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)){const e=[];for(const n of t.actions){const t=X(Y,n);t.log_id&&(await ot(t),e.push(t))}for(const t of e)Z("trigger",t)}e=Boolean(r.value)}else Y(oe(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}catch(e){Y(oe(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else Y(oe(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}))})()})),ut((()=>{wu--,wu||(window.removeEventListener("keydown",xu),window.removeEventListener("pointerdown",ku)),q&&q.destroy(),G.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)})),K.forEach((t=>{clearTimeout(t)}))})),t.$$set=t=>{"id"in t&&n(13,d=t.id),"json"in t&&n(11,p=t.json),"platform"in t&&n(14,h=t.platform),"theme"in t&&n(12,g=t.theme),"globalVariablesController"in t&&n(15,m=t.globalVariablesController),"mix"in t&&n(0,v=t.mix),"customization"in t&&n(16,y=t.customization),"builtinProtocols"in t&&n(17,$=t.builtinProtocols),"extensions"in t&&n(18,b=t.extensions),"onError"in t&&n(19,_=t.onError),"onStat"in t&&n(20,w=t.onStat),"onCustomAction"in t&&n(21,x=t.onCustomAction),"onComponent"in t&&n(22,k=t.onComponent),"typefaceProvider"in t&&n(23,C=t.typefaceProvider),"fetchInit"in t&&n(24,E=t.fetchInit),"tooltipRoot"in t&&n(25,A=t.tooltipRoot),"customComponents"in t&&n(26,j=t.customComponents),"direction"in t&&n(27,V=t.direction),"store"in t&&n(28,F=t.store)},t.$$.update=()=>{if(4096&t.$$.dirty[0]|64&t.$$.dirty[1]&&("light"===g||"dark"===g?n(36,S=g):"system"===g?"undefined"!=typeof matchMedia?(P||(n(37,P=matchMedia("(prefers-color-scheme: dark)")),P.addListener(O)),n(36,S=P.matches?"dark":"light")):n(36,S="light"):Y(oe(new Error("Unsupported theme")))),32&t.$$.dirty[1]&&S&&(wt&&wt[S].forEach((t=>{const e=U.get(t.name);e&&e.setValue(t.color)}))),2048&t.$$.dirty[0]){n(1,T=!1);const t=function(t){if(!t)return oe(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return oe(new Error("Missing card"));if(!e.states||!e.states.length)return oe(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in ds)return oe(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return oe(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return oe(new Error("Missing state_id"),{additional:{index:t}})}return null}(p);t&&(n(1,T=!0),Y(t))}if(2048&t.$$.dirty[0]&&(r=p.templates||{}),2048&t.$$.dirty[0]|8&t.$$.dirty[1]&&(null===n(34,l=null==p?void 0:p.card)||void 0===l?void 0:l.variables)&&Array.isArray(p.card.variables)&&p.card.variables!==bt&&p.card.variables.forEach((t=>{t&&t.name&&!L.has(t.name)&&$t(t)})),2048&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(38,o=null===n(35,u=null==p?void 0:p.card)||void 0===u?void 0:u.states),6&t.$$.dirty[0]|128&t.$$.dirty[1]&&o&&!T&&!M){const t={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:o.map((t=>({state_id:t.state_id.toString(),div:t.div})))};n(6,Ct=kt.produceChildContext(t,{isRootState:!0}))}},[v,T,M,G,H,nt,Ct,i,a,D,N,p,g,d,h,m,y,$,b,_,w,x,k,C,E,A,j,V,F,function(t){n(12,g=t)},function(){return new Map},function(){return new Map},function(t){n(11,p=t)},function(t){ot(X(Y,t))},l,u,S,P,o,()=>n(4,H=void 0)]}const Vu=class extends Zt{constructor(t){super(),Xt(this,t,ju,bu,d,{id:13,json:11,platform:14,theme:12,globalVariablesController:15,mix:0,customization:16,builtinProtocols:17,extensions:18,onError:19,onStat:20,onCustomAction:21,onComponent:22,typefaceProvider:23,fetchInit:24,tooltipRoot:25,customComponents:26,direction:27,store:28,setTheme:29,getDebugVariables:30,getDebugAllVariables:31,setData:32,execAction:33},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[29]}get getDebugVariables(){return this.$$.ctx[30]}get getDebugAllVariables(){return this.$$.ctx[31]}get setData(){return this.$$.ctx[32]}get execAction(){return this.$$.ctx[33]}};class Fu{constructor(t){var e,n,r;e=this,r={},n=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(n="sizeHistory"),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this.widthVariableName=t.width_variable_name,this.heightVariableName=t.height_variable_name}setVariable(t,e){if(!this.context)return!1;if(t){const n=this.context.variables.get(t);if(n&&"integer"===n.getType()){if(e=Math.round(e),this.sizeHistory[t]||(this.sizeHistory[t]=new Set),!this.sizeHistory[t].has(e))return n.setValue(e),this.sizeHistory[t].add(e),!0}else{const e=new Error("Missing variable");e.level="error",e.additional={variableName:t},this.context.logError(e)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const t=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,t.width),n=this.setVariable(this.heightVariableName,t.height);return e||n}mountView(t,e){var n;this.node=t,this.context=e,this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((async()=>{let t=0;for(;this.recalcProps();){if(++t>8){const t=new Error("Recursive layout in size_provider");t.level="warn",t.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(t);break}await _t()}this.sizeHistory={}}))),null===(n=this.resizeObserver)||void 0===n||n.observe(t),this.recalcProps()}unmountView(t,e){var n;null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=void 0}}function Du(t){return t instanceof HTMLElement}function Su(t){return class{constructor(t){this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(Du);r.forEach((t=>{t.style.display="none"})),e.setAttribute("data-lottie","true");const o=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),a=()=>{var t,o;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(o=this.wrapper.parentNode)||void 0===o||o.removeChild(this.wrapper),this.wrapper=void 0);const i=new Error("Failed to load lottie animation");i.level="error",i.additional={url:this.params.lottie_url},n.logError(i)};this.loadData().then((e=>{const n=this.animItem=t({container:o,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const Pu=["target","hydrate"];function Nu(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Pu),o=new Vu({target:e,props:r,hydrate:n});return{$destroy(){o.$destroy()},execAction(t){o.execAction(t)},setTheme(t){o.setTheme(t)},setData(t){o.setData(t)}}}var Ou=e.$5,Iu=e.XQ,Tu=e.rz,Mu=e.U2,zu=e.XX;export{Ou as SizeProvider,Iu as createGlobalVariablesController,Tu as createVariable,Mu as lottieExtensionBuilder,zu as render};
1
+ var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};function n(){}t.d(e,{$5:()=>wd,XQ:()=>Su,rz:()=>$a,U2:()=>kd,XX:()=>Ed});const r=t=>t;function o(t,e){for(const n in e)t[n]=e[n];return t}function i(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(i)}function l(t){return"function"==typeof t}let c;function u(t,e){return t===e||(c||(c=document.createElement("a")),c.href=e,t===c.href)}function d(t,e){return t!=t?e==e:t!==e}function p(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(null==t){for(const t of r)t(void 0);return n}const i=t.subscribe(...r);return i.unsubscribe?()=>i.unsubscribe():i}function f(t,e,n){t.$$.on_destroy.push(p(e,n))}function h(t,e,n,r){if(t){const o=g(t,e,n,r);return t[0](o)}}function g(t,e,n,r){return t[1]&&r?o(n.ctx.slice(),t[1](r(e))):n.ctx}function m(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function v(t,e,n,r,o,i){if(o){const a=g(e,n,r,i);t.p(a,o)}}function y(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function $(t,e,n){return t.set(n),e}function b(t){return t&&l(t.destroy)?t.destroy:n}function _(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const w="undefined"!=typeof window;let x=w?()=>window.performance.now():()=>Date.now(),k=w?t=>requestAnimationFrame(t):n;const C=new Set;function E(t){C.forEach((e=>{e.c(t)||(C.delete(e),e.f())})),0!==C.size&&k(E)}function j(t){let e;return 0===C.size&&k(E),{promise:new Promise((n=>{C.add(e={c:t,f:n})})),abort(){C.delete(e)}}}const A="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function P(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class D{constructor(t){P(this,"_listeners","WeakMap"in A?new WeakMap:void 0),P(this,"_observer",void 0),P(this,"options",void 0),this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return null!==(t=this._observer)&&void 0!==t?t:this._observer=new ResizeObserver((t=>{for(const n of t){var e;D.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}D.entries="WeakMap"in A?new WeakMap:void 0;let O=!1;function S(t,e){t.appendChild(e)}function V(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function F(t){const e=I("style");return e.textContent="/* empty */",function(t,e){S(t.head||t,e),e.sheet}(V(t),e),e.sheet}function T(t,e,n){t.insertBefore(e,n||null)}function N(t){t.parentNode&&t.parentNode.removeChild(t)}function M(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function I(t){return document.createElement(t)}function z(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function R(t){return document.createTextNode(t)}function B(){return R(" ")}function U(){return R("")}function L(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function W(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const H=["width","height"];function q(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set&&-1===H.indexOf(r)?t[r]=e[r]:W(t,r,e[r])}function J(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:W(t,e,n)}(t,n,e[n])}))}function Y(t){return/-/.test(t)?J:q}function X(t,e){e=""+e,t.data!==e&&(t.data=e)}function G(t,e){t.value=null==e?"":e}function K(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function Z(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}function Q(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}function tt(t,e){return new t(e)}const et=new Map;let nt,rt=0;function ot(t,e,n,r,o,i,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*i(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const u=c+"100% {".concat(a(n,1-n),"}\n}"),d="__svelte_".concat(function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u),"_").concat(s),p=V(t),{stylesheet:f,rules:h}=et.get(p)||function(t,e){const n={stylesheet:F(e),rules:{}};return et.set(t,n),n}(p,t);h[d]||(h[d]=!0,f.insertRule("@keyframes ".concat(d," ").concat(u),f.cssRules.length));const g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(d," ").concat(r,"ms linear ").concat(o,"ms 1 both"),rt+=1,d}function it(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),rt-=o,rt||k((()=>{rt||(et.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&N(e)})),et.clear())})))}function at(t){nt=t}function st(){if(!nt)throw new Error("Function called outside component initialization");return nt}function lt(t){st().$$.on_mount.push(t)}function ct(t){st().$$.after_update.push(t)}function ut(t){st().$$.on_destroy.push(t)}function dt(t,e){return st().$$.context.set(t,e),e}function pt(t){return st().$$.context.get(t)}function ft(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ht=[],gt=[];let mt=[];const vt=[],yt=Promise.resolve();let $t=!1;function bt(){$t||($t=!0,yt.then(Et))}function _t(){return bt(),yt}function wt(t){mt.push(t)}const xt=new Set;let kt,Ct=0;function Et(){if(0!==Ct)return;const t=nt;do{try{for(;Ct<ht.length;){const t=ht[Ct];Ct++,at(t),jt(t.$$)}}catch(t){throw ht.length=0,Ct=0,t}for(at(null),ht.length=0,Ct=0;gt.length;)gt.pop()();for(let t=0;t<mt.length;t+=1){const e=mt[t];xt.has(e)||(xt.add(e),e())}mt.length=0}while(ht.length);for(;vt.length;)vt.pop()();$t=!1,xt.clear(),at(t)}function jt(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(wt)}}function At(){return kt||(kt=Promise.resolve(),kt.then((()=>{kt=null}))),kt}function Pt(t,e,n){t.dispatchEvent(Q("".concat(e?"intro":"outro").concat(n)))}const Dt=new Set;let Ot;function St(){Ot={r:0,c:[],p:Ot}}function Vt(){Ot.r||s(Ot.c),Ot=Ot.p}function Ft(t,e){t&&t.i&&(Dt.delete(t),t.i(e))}function Tt(t,e,n,r){if(t&&t.o){if(Dt.has(t))return;Dt.add(t),Ot.c.push((()=>{Dt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Nt={duration:0};function Mt(t,e,o){const i={direction:"in"};let a,s,c=e(t,o,i),u=!1,d=0;function p(){a&&it(t,a)}function f(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:f}=c||Nt;f&&(a=ot(t,0,1,o,e,i,f,d++)),l(0,1);const h=x()+e,g=h+o;s&&s.abort(),u=!0,wt((()=>Pt(t,!0,"start"))),s=j((e=>{if(u){if(e>=g)return l(1,0),Pt(t,!0,"end"),p(),u=!1;if(e>=h){const t=i((e-h)/o);l(t,1-t)}}return u}))}let h=!1;return{start(){h||(h=!0,it(t),l(c)?(c=c(i),At().then(f)):f())},invalidate(){h=!1},end(){u&&(p(),u=!1)}}}function It(t,e,o,i){let a,c=e(t,o,{direction:"both"}),u=i?0:1,d=null,p=null,f=null;function h(){f&&it(t,f)}function g(t,e){const n=t.b-u;return e*=Math.abs(n),{a:u,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function m(e){const{delay:o=0,duration:i=300,easing:l=r,tick:m=n,css:v}=c||Nt,y={start:x()+o,b:e};e||(y.group=Ot,Ot.r+=1),"inert"in t&&(e?void 0!==a&&(t.inert=a):(a=t.inert,t.inert=!0)),d||p?p=y:(v&&(h(),f=ot(t,u,e,i,o,l,v)),e&&m(0,1),d=g(y,i),wt((()=>Pt(t,e,"start"))),j((e=>{if(p&&e>p.start&&(d=g(p,i),p=null,Pt(t,d.b,"start"),v&&(h(),f=ot(t,u,d.b,d.duration,0,l,c.css))),d)if(e>=d.end)m(u=d.b,1-u),Pt(t,d.b,"end"),p||(d.b?h():--d.group.r||s(d.group.c)),d=null;else if(e>=d.start){const t=e-d.start;u=d.a+d.d*l(t/d.duration),m(u,1-u)}return!(!d&&!p)})))}return{run(t){l(c)?At().then((()=>{c=c({direction:t?"in":"out"}),m(t)})):m(t)},end(){h(),d=p=null}}}function zt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Rt(t,e){Tt(t,1,1,(()=>{e.delete(t.key)}))}function Bt(t,e,n,r,o,i,a,l,c,u,d,p){let f=t.length,h=i.length,g=f;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,b=[];for(g=h;g--;){const t=p(o,i,g),s=n(t);let l=a.get(s);l?r&&b.push((()=>l.p(t,e))):(l=u(s,t),l.c()),y.set(s,v[g]=l),s in m&&$.set(s,Math.abs(g-m[s]))}const _=new Set,w=new Set;function x(t){Ft(t,1),t.m(l,d),a.set(t.key,t),d=t.first,h--}for(;f&&h;){const e=v[h-1],n=t[f-1],r=e.key,o=n.key;e===n?(d=e.first,f--,h--):y.has(o)?!a.has(r)||_.has(r)?x(e):w.has(o)?f--:$.get(r)>$.get(o)?(w.add(r),x(e)):(_.add(o),f--):(c(n,a),f--)}for(;f--;){const e=t[f];y.has(e.key)||c(e,a)}for(;h;)x(v[h-1]);return s(b),v}function Ut(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],s=e[i];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)o[t]||(n[t]=s[t],o[t]=1);t[i]=s}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let Lt;function Wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wt(Object(n),!0).forEach((function(e){qt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qt(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jt(t){t&&t.c()}function Yt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),wt((()=>{const e=t.$$.on_mount.map(i).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),o.forEach(wt)}function Xt(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];mt.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),mt=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Gt(t,e,r,o,i,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=nt;at(t);const p=t.$$={fragment:null,ctx:[],props:l,update:n,not_equal:i,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:a(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};c&&c(p.root);let f=!1;if(p.ctx=r?r(t,e.props||{},(function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return p.ctx&&i(p.ctx[e],p.ctx[e]=r)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](r),f&&function(t,e){-1===t.$$.dirty[0]&&(ht.push(t),bt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],p.update(),f=!0,s(p.before_update),p.fragment=!!o&&o(p.ctx),e.target){if(e.hydrate){O=!0;const t=(h=e.target,Array.from(h.childNodes));p.fragment&&p.fragment.l(t),t.forEach(N)}else p.fragment&&p.fragment.c();e.intro&&Ft(t.$$.fragment),Yt(t,e.target,e.anchor),O=!1,Et()}var h;at(d)}function Kt(t,e,n,r){var o;const i=null===(o=n[t])||void 0===o?void 0:o.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Lt=class extends HTMLElement{constructor(t,e,n){super(),qt(this,"$$ctor",void 0),qt(this,"$$s",void 0),qt(this,"$$c",void 0),qt(this,"$$cn",!1),qt(this,"$$d",{}),qt(this,"$$r",!1),qt(this,"$$p_d",{}),qt(this,"$$l",{}),qt(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function t(t){return()=>{let e;return{c:function(){e=I("slot"),"default"!==t&&W(e,"name",t)},m:function(t,n){T(t,e,n)},d:function(t){t&&N(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=Kt(a,i.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ht(Ht({},this.$$d),{},{$$slots:e,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=Kt(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const c=this.$$c.$on(s,l);this.$$l_u.set(l,c)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Kt(t,n,this.$$p_d,"toProp"),null===(r=this.$$c)||void 0===r||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class Zt{constructor(){qt(this,"$$",void 0),qt(this,"$$set",void 0)}$destroy(){Xt(this,1),this.$destroy=n}$on(t,e){if(!l(e))return n;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Qt=[];function te(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const o=new Set;function i(n){if(i=n,((r=t)!=r?i==i:r!==i||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!Qt.length;for(const e of o)e[1](),Qt.push(e,t);if(e){for(let t=0;t<Qt.length;t+=2)Qt[t][0](Qt[t+1]);Qt.length=0}}var r,i}function a(e){i(e(t))}return{set:i,update:a,subscribe:function(s){const l=[s,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return o.add(l),1===o.size&&(e=r(i,a)||n),s(t),()=>{o.delete(l),0===o.size&&e&&(e(),e=null)}}}}function ee(t,e,r){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return c=(t,r)=>{let c=!1;const u=[];let d=0,f=n;const h=()=>{if(d)return;f();const i=e(o?u[0]:u,t,r);a?t(i):f=l(i)?i:n},g=i.map(((t,e)=>p(t,(t=>{u[e]=t,d&=~(1<<e),c&&h()}),(()=>{d|=1<<e}))));return c=!0,h(),function(){s(g),f(),c=!1}},{subscribe:te(r,c).subscribe};var c}const ne={root:"divkit-b023c",root__clickable:"divkit-bd259","root__clickable-no-transition":"divkit-d9099",root__unselectable:"divkit-c016b",root_platform_desktop:"divkit-ee112","root__only-desktop":"divkit-fef1e","root_restrict-scroll":"divkit-aa145","root_disabled-context-menu":"divkit-f0cba"},re=Symbol("root");function oe(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t;return n.level=e.level||"error",e.additional&&(n.additional=e.additional),n}const ie={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_start:"divkit-e70de",text_halign_center:"divkit-e1659",text_halign_end:"divkit-e48b4",text_valign_start:"divkit-b7b70",text_valign_center:"divkit-ef58e",text_valign_end:"divkit-d4206",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},ae={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980","outer_has-custom-focus":"divkit-c7f14"};function se(t){if(!t)return;let e="";for(const n in t)if(t.hasOwnProperty(n)){if(!t[n]&&0!==t[n])continue;e&&(e+=";"),e+=n+":"+String(t[n])}return e||void 0}function le(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return Number.isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function ce(t){let e=le(t);return"0"===e&&(e+="em"),e}function ue(t,e){for(;t.length<e;)t="0"+t;return t}function de(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"transparent";if("#"!==(t=("string"==typeof t&&t||"").toLowerCase()).charAt(0))return n;const r=pe(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>ue(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}(r)):n}function pe(t){const e=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(e){if(5===e.length){const[t,n,r,o,i]=e,a=2===r.length?r:r+r,s=2===o.length?o:o+o,l=2===i.length?i:i+i,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(s,16),b:parseInt(l,16)}}const[t,n,r,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function fe(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&amp;")),e.indexOf("<")>-1&&(e=e.replace(/</g,"&lt;")),e.indexOf(">")>-1&&(e=e.replace(/>/g,"&gt;")),e.indexOf('"')>-1&&(e=e.replace(/"/g,"&quot;")),e}const he=Boolean;function ge(t){if(1===t.length&&"solid"===t[0].type)return{color:de(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=de(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:"linear-gradient(to bottom,".concat(e,",").concat(e,")")}}({bg:t}):"gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(he);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>de(t))).join(",")+")"}:void 0}({bg:t}):"image"===t.type?function(t){var e;const n=null===(e=t.bg)||void 0===e?void 0:e.image_url;if(n)return{size:ye(t.bg.scale),pos:$e(t.bg),image:'url("'+fe(n)+'")'}}({bg:t}):"radial_gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(he);if(!n.length)return;const r=t.bg.radius;let o;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?o=ce(r.value):"relative"===r.type&&(o=me[r.value]));const i=ve(t.bg.center_x),a=ve(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(o||"farthest-corner"," at ").concat(i," ").concat(a)+","+n.map((t=>de(t))).join(",")+")"}}({bg:t}):void 0)).filter(he).reverse().reduce((function(t,e){return t.image.push(e.image),t.size.push(e.size||"auto"),t.position.push(e.pos||"50% 50%"),t}),{image:[],size:[],position:[]});return{image:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}const me={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function ve(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return ce(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function ye(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function $e(t){let e,n;return e="left"===t.content_alignment_horizontal?"0%":"right"===t.content_alignment_horizontal?"100%":"50%",n="top"===t.content_alignment_vertical?"0%":"bottom"===t.content_alignment_vertical?"100%":"50%",e+" "+n}function be(t){if(t.startsWith("tel:"))return"tel";const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function _e(t,e){return e.has(t)}function we(t,e){const n=Number(t);return Number.isNaN(n)||n<0?e:n}function xe(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function ke(t){return 0!==t.is_enabled&&!1!==t.is_enabled&&void 0!==t.index}function Ce(t,e){e&&t.push(e)}function Ee(t,e,n){const r=[];Ce(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Ce(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const je=Symbol("state");function Ae(t,e){var n,r;const o=t.top||0,i=(null!==(n="ltr"===e?t.end:t.start)&&void 0!==n?n:t.right)||0,a=t.bottom||0,s=(null!==(r="ltr"===e?t.start:t.end)&&void 0!==r?r:t.left)||0;return 0===o&&0===i&&0===a&&0===s?"":le(o)+" "+le(i)+" "+le(a)+" "+le(s)}function Pe(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!Number.isNaN(e)}function De(t){return Pe(t)&&t>=0}function Oe(t,e,n){var r,o;if(!t)return n;const i=[t.top,null!==(r="ltr"===e?t.end:t.start)&&void 0!==r?r:t.right,t.bottom,null!==(o="ltr"===e?t.start:t.end)&&void 0!==o?o:t.left];for(let t=0;t<i.length;++t)if(i[t]&&!De(i[t]))return n;return Ae(t,e)}const Se=Object.prototype.hasOwnProperty;function Ve(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!Se.call(e,o)||!Ve(t[o],e[o]))return!1}return!0}function Fe(t,e){return Ve(t,e)?e:t}function Te(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Ne(t,e){const n=Number(t);return Number.isNaN(n)?e:n}function Me(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Me(t))})):e.push(t),e}function Ie(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!De(t[n[r]]))return e;return t}function ze(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map((t=>le((t||e)/n*10))).join(" ")}function Re(t){return 0!==t.is_enabled&&!1!==t.is_enabled}let Be;function Ue(){return"undefined"!=typeof matchMedia&&(Be||(Be=window.matchMedia("(prefers-reduced-motion)")),Be.matches)}function Le(){}const We=Symbol("action");function He(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function qe(t){var e;let n,r,i,a,l,c,u,d;const p=t[18].default,f=h(p,t,t[17],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?ne.root__clickable:ne["root__clickable-no-transition"]," ").concat(ne.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ne["root_disabled-context-menu"]:"")},{style:t[2]},{role:i=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=o($,g[t]);return{c(){n=I("span"),f&&f.c(),q(n,$)},m(e,r){T(e,n,r),f&&f.m(n,null),t[26](n),c=!0,u||(d=[b(l=t[4].call(null,n)),L(n,"click",t[22]),L(n,"keydown",t[10]),L(n,"focus",t[23]),L(n,"blur",t[24])],u=!0)},p(t,e){var o;f&&f.p&&(!c||131072&e[0])&&v(f,p,t,t[17],c?m(p,t[17],e,null):y(t[17]),null),q(n,$=Ut(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?ne.root__clickable:ne["root__clickable-no-transition"]," ").concat(ne.root__unselectable):"")+" "+(null!==(o=t[0])&&void 0!==o&&o.length?ne["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&i!==(i=t[8]?"button":null))&&{role:i},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(Ft(f,t),c=!0)},o(t){Tt(f,t),c=!1},d(e){e&&N(n),f&&f.d(e),t[26](null),u=!1,s(d)}}}function Je(t){var e;let n,r,i,a,l,c;const u=t[18].default,d=h(u,t,t[17],null);let p=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?ne.root__clickable:ne["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ne["root_disabled-context-menu"]:"")},t[3]],f={};for(let t=0;t<p.length;t+=1)f=o(f,p[t]);return{c(){n=I("a"),d&&d.c(),q(n,f)},m(e,r){T(e,n,r),d&&d.m(n,null),t[25](n),a=!0,l||(c=[b(i=t[4].call(null,n)),L(n,"click",t[19]),L(n,"keydown",t[10]),L(n,"focus",t[20]),L(n,"blur",t[21])],l=!0)},p(t,e){var o;d&&d.p&&(!a||131072&e[0])&&v(d,u,t,t[17],a?m(u,t[17],e,null):y(t[17]),null),q(n,f=Ut(p,[(!a||128&e[0])&&{href:t[7]},(!a||512&e[0])&&{target:t[9]},(!a||4&e[0])&&{style:t[2]},(!a||35&e[0]&&r!==(r=t[1]+" "+(t[5]?ne.root__clickable:ne["root__clickable-no-transition"])+" "+(null!==(o=t[0])&&void 0!==o&&o.length?ne["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Ft(d,t),a=!0)},o(t){Tt(d,t),a=!1},d(e){e&&N(n),d&&d.d(e),t[25](null),l=!1,s(c)}}}function Ye(t){let e,n,r,o;const i=[Je,qe],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=i[e](t),{c(){n.c(),r=U()},m(t,n){a[e].m(t,n),T(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?a[e].p(t,o):(St(),Tt(a[l],1,1,(()=>{a[l]=null})),Vt(),n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Ft(n,1),n.m(r.parentNode,r))},i(t){o||(Ft(n),o=!0)},o(t){Tt(n),o=!1},d(t){t&&N(r),a[e].d(t)}}}function Xe(t,e,n){let{$$slots:r={},$$scope:o}=e,{componentContext:i}=e,{id:a=""}=e,{actions:s}=e,{doubleTapActions:l}=e,{longTapActions:c}=e,{cls:u=""}=e,{style:d=null}=e,{attrs:p}=e,{use:f=Le}=e,{customAction:h=null}=e,{isNativeActionAnimation:g=!0}=e,{hasInnerFocusable:m=!1}=e;const v=pt(re),y=pt(We);let $;dt(We,{hasAction(){var t;return Boolean(y.hasAction()||(null===(t=s)||void 0===t?void 0:t.length))}});let b,_,w="",x=-1,k=null,C=!1,E=!1;async function j(t){var e;y.hasAction()||void 0!==t.button&&0!==t.button||(x>0&&Date.now()>x+400||!1===(null===(e=h)||void 0===e?void 0:e(t))?t.preventDefault():s&&(s.some((t=>{if(null!=t&&t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=be(e);return n&&!_e(n,v.getBuiltinProtocols())}))&&t.preventDefault(),i.execAnyActions(s,{node:$})))}function A(t){y.hasAction()||void 0!==t.button&&0!==t.button||i.execAnyActions(l,{processUrls:!0,node:$})}function P(t){t.touches.length>1||(k=He(t),C=!1,x=Date.now(),clearTimeout(_))}function D(t){if(!k)return;const e=He(t);(Math.abs(k.x-e.x)>8||Math.abs(k.y-e.y)>8)&&(C=!0)}function O(t){!k||x<0||(!C&&Date.now()-x>=400&&(t.stopPropagation(),i.execAnyActions(c,{processUrls:!0,node:$})),clearTimeout(_),_=window.setTimeout((()=>{k=null,x=-1}),100))}return lt((()=>{a&&!m&&v.registerFocusable(a,{focus(){$&&(w||E)&&$.focus()}})})),ut((()=>{a&&!m&&v.unregisterFocusable(a),clearTimeout(_)})),t.$$set=t=>{"componentContext"in t&&n(11,i=t.componentContext),"id"in t&&n(12,a=t.id),"actions"in t&&n(13,s=t.actions),"doubleTapActions"in t&&n(14,l=t.doubleTapActions),"longTapActions"in t&&n(0,c=t.longTapActions),"cls"in t&&n(1,u=t.cls),"style"in t&&n(2,d=t.style),"attrs"in t&&n(3,p=t.attrs),"use"in t&&n(4,f=t.use),"customAction"in t&&n(15,h=t.customAction),"isNativeActionAnimation"in t&&n(5,g=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(16,m=t.hasInnerFocusable),"$$scope"in t&&n(17,o=t.$$scope)},t.$$.update=()=>{if(43136&t.$$.dirty[0]){var e,r,o;if(Array.isArray(s)&&null!==(e=s)&&void 0!==e&&e.length)for(let t=0;t<s.length;++t){const e=s[t].url;if(e){n(7,w=e),n(9,b=s[t].target||void 0);break}}Array.isArray(s)&&null!==(r=s)&&void 0!==r&&r.length&&y.hasAction()&&(n(7,w=""),i.logError(oe(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:s}}))),n(8,E=Boolean(h)),w&&!_e(be(w),v.getBuiltinProtocols())?(n(7,w=""),n(8,E=!0)):!w&&Array.isArray(s)&&null!==(o=s)&&void 0!==o&&o.length&&(n(8,E=!0),s.some((t=>t.url||t.typed||t.menu_items))||i.logError(oe(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:s}})))}var a,u;16833&t.$$.dirty[0]&&$&&(w||E?$.addEventListener("click",j):$.removeEventListener("click",j),null!==(a=l)&&void 0!==a&&a.length?$.addEventListener("dblclick",A):$.removeEventListener("dblclick",A),null!==(u=c)&&void 0!==u&&u.length?($.addEventListener("touchstart",P,{passive:!0}),$.addEventListener("touchmove",D,{passive:!0}),$.addEventListener("touchend",O,{passive:!0}),$.addEventListener("touchcancel",O,{passive:!0})):($.removeEventListener("touchstart",P),$.removeEventListener("touchmove",D),$.removeEventListener("touchend",O),$.removeEventListener("touchcancel",O)))},[c,u,d,p,f,g,$,w,E,b,function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(s)&&s.length&&(i.execAnyActions(s),t.preventDefault())},i,a,s,l,h,m,o,r,function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(e){ft.call(this,t,e)},function(t){gt[t?"unshift":"push"]((()=>{$=t,n(6,$)}))},function(t){gt[t?"unshift":"push"]((()=>{$=t,n(6,$)}))}]}const Ge=class extends Zt{constructor(t){super(),Gt(this,t,Xe,Ye,d,{componentContext:11,id:12,actions:13,doubleTapActions:14,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:15,isNativeActionAnimation:5,hasInnerFocusable:16},null,[-1,-1])}},Ke={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function Ze(t){return Pe(t)&&t>0}function Qe(t,e){return t.map((t=>{if(t)if("blur"===t.type){if(Ze(t.radius))return"blur(".concat(ce(t.radius/2),")")}else{if("rtl_mirror"===t.type)return;e(oe(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}else e(oe(new Error("Incorrect filter"),{level:"warn"}))})).filter(Boolean).join(" ")}function tn(t,e,n){const r=t.slice();return r[6]=e[n],r}function en(t){let e,n,r;return{c(){e=I("span"),W(e,"class",n=Ke["outer-background__item"]),W(e,"style",r=se(t[6].style))},m(t,n){T(t,e,n)},p(t,n){2&n&&r!==(r=se(t[6].style))&&W(e,"style",r)},d(t){t&&N(e)}}}function nn(t){let e,n,r,o,i,a;return{c(){e=I("img"),u(e.src,n=t[6].image_url)||W(e,"src",n),W(e,"alt",""),W(e,"aria-hidden","true"),W(e,"loading","lazy"),W(e,"decoding","async"),W(e,"class",r=Ke["outer-background__item"]),W(e,"style",o=se(t[6].style))},m(n,r){T(n,e,r),i||(a=L(e,"error",t[2]),i=!0)},p(t,r){2&r&&!u(e.src,n=t[6].image_url)&&W(e,"src",n),2&r&&o!==(o=se(t[6].style))&&W(e,"style",o)},d(t){t&&N(e),i=!1,a()}}}function rn(t){let e;function n(t,e){return t[6].image_url?nn:en}let r=n(t),o=r(t);return{c(){o.c(),e=U()},m(t,n){o.m(t,n),T(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&N(e),o.d(t)}}}function on(t){let e,r,o=zt(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=rn(tn(t,o,e));return{c(){e=I("span");for(let t=0;t<i.length;t+=1)i[t].c();W(e,"class",r=Ke["outer-background"]+(t[0]?" "+Ke["outer-background_clip"]:"")),K(e,"border-radius",t[0])},m(t,n){T(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(o=zt(t[1]),n=0;n<o.length;n+=1){const r=tn(t,o,n);i[n]?i[n].p(r,a):(i[n]=rn(r),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=o.length}1&a&&r!==(r=Ke["outer-background"]+(t[0]?" "+Ke["outer-background_clip"]:""))&&W(e,"class",r),1&a&&K(e,"border-radius",t[0])},i:n,o:n,d(t){t&&N(e),M(i,t)}}}function an(t,e,n){let r,{direction:o}=e,{componentContext:i}=e,{background:a=[]}=e,{radius:s=""}=e;return t.$$set=t=>{"direction"in t&&n(3,o=t.direction),"componentContext"in t&&n(4,i=t.componentContext),"background"in t&&n(5,a=t.background),"radius"in t&&n(0,s=t.radius)},t.$$.update=()=>{56&t.$$.dirty&&n(1,r=a.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=ge([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=Qe(t.filters,i.logError),"rtl"===o&&t.filters.some((t=>"rtl_mirror"===t.type))&&(e.transform="scale(-1,1)")))}return n})))},[s,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Ke["outer-background__item_hidden"])},o,i,a]}const sn=class extends Zt{constructor(t){super(),Gt(this,t,an,on,d,{direction:3,componentContext:4,background:5,radius:0})}};function ln(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function cn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ln(Object(n),!0).forEach((function(e){un(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function un(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const dn=t=>({hasCustomFocus:256&t[0]}),pn=t=>({focusHandler:t[39],blurHandler:t[40],hasCustomFocus:t[8]});function fn(t){let e,n;return e=new Ge({props:{componentContext:t[0],id:t[0].json.id,use:t[38],cls:t[1]+" "+Ee("outer",ae,t[18]),style:se(t[17]),actions:t[14],doubleTapActions:t[15],longTapActions:t[16],attrs:t[10],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||_n(t[7]),$$slots:{default:[mn]},$$scope:{ctx:t}}}),e.$on("focus",t[39]),e.$on("blur",t[40]),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),1&n[0]&&(r.id=t[0].json.id),262146&n[0]&&(r.cls=t[1]+" "+Ee("outer",ae,t[18])),131072&n[0]&&(r.style=se(t[17])),16384&n[0]&&(r.actions=t[14]),32768&n[0]&&(r.doubleTapActions=t[15]),65536&n[0]&&(r.longTapActions=t[16]),1024&n[0]&&(r.attrs=t[10]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||_n(t[7])),2937&n[0]|134217728&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function hn(t){let e,n;return e=new sn({props:{componentContext:t[0],direction:t[9],background:t[5],radius:t[4]}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),512&n[0]&&(r.direction=t[9]),32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function gn(t){let e,n,r;return{c(){e=I("span"),W(e,"class",n=ae.outer__border),W(e,"style",r=se(t[3]))},m(t,n){T(t,e,n)},p(t,n){8&n[0]&&r!==(r=se(t[3]))&&W(e,"style",r)},d(t){t&&N(e)}}}function mn(t){let e,n,r,o=t[6]&&hn(t);const i=t[119].default,a=h(i,t,t[120],pn);let s=t[11]&&gn(t);return{c(){o&&o.c(),e=U(),a&&a.c(),s&&s.c(),n=U()},m(t,i){o&&o.m(t,i),T(t,e,i),a&&a.m(t,i),s&&s.m(t,i),T(t,n,i),r=!0},p(t,l){t[6]?o?(o.p(t,l),64&l[0]&&Ft(o,1)):(o=hn(t),o.c(),Ft(o,1),o.m(e.parentNode,e)):o&&(St(),Tt(o,1,1,(()=>{o=null})),Vt()),a&&a.p&&(!r||256&l[0]|134217728&l[3])&&v(a,i,t,t[120],r?m(i,t[120],l,dn):y(t[120]),pn),t[11]?s?s.p(t,l):(s=gn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Ft(o),Ft(a,t),r=!0)},o(t){Tt(o),Tt(a,t),r=!1},d(t){t&&(N(e),N(n)),o&&o.d(t),a&&a.d(t),s&&s.d(t)}}}function vn(t){let e,n,r=!t[12]&&!t[13]&&fn(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[12]||t[13]?r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt()):r?(r.p(t,n),12288&n[0]&&Ft(r,1)):(r=fn(t),r.c(),Ft(r,1),r.m(e.parentNode,e))},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}const yn={left:"start",center:"center",right:"end",start:"start",end:"end"},$n={left:"end",center:"center",right:"start",start:"start",end:"end"},bn={top:"start",center:"center",bottom:"end",baseline:"baseline"};function _n(t){return t.some((t=>"native"===t.name))}function wn(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,j,A,P,D,O,S,V,F,T,N,M,I,z,R,B,U,L,W,H,q,J,Y,X,G,K=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n,at=n,st=n,lt=n,dt=n,ft=n,ht=n,gt=n,mt=n,vt=n;t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt()));let{$$slots:yt={},$$scope:$t}=e,{componentContext:bt}=e,{cls:wt=""}=e,{style:xt}=e,{layoutParams:kt={}}=e,{customDescription:Ct=!1}=e,{customPaddings:Et=!1}=e,{customActions:jt=""}=e,{additionalPaddings:At=null}=e,{heightByAspect:Pt=!1}=e,{parentOf:Dt}=e,{parentOfSimpleMode:Ot}=e,{replaceItems:St}=e,{hasInnerFocusable:Vt=!1}=e;const Ft=pt(re),Tt=pt(je),Nt=Ft.direction;let Mt,It;f(t,Nt,(t=>r(9,J=t)));let zt,Rt,Bt,Ut,Lt,Wt,Ht,qt,Jt,Yt,Xt,Gt,Kt,Zt,Qt,te,ne,ie,ae,se,ue,pe=null,fe=[],me={},ve={},ye=!1,$e=1,Ce="transparent",Ee=0,Pe={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Se="",Be=null,Le="",We={},He=0,qe=0,Je=0,Ye=!1,Xe=!1,Ge={},Ke=0,Ze=0,Qe=0,tn=!1,en=!1,nn=1,rn=[],on=!1,an=!1,sn=[],ln=[],un=[],dn=[],pn=[],fn=[],hn="",gn=!1,mn="visible",vn=0,_n=0,wn=!1,xn=null;function kn(t,e){if(!Array.isArray(Dt)||!St)return;if(Ot&&1!==(Array.isArray(e)&&e.length||0))return;const n=Dt.findIndex((e=>(null==e?void 0:e.id)===t)),o=Dt.slice();o.splice(n,1,...e||[]),r(41,Dt=o),St(o)}function Cn(t){const e=Ne(t.start_value,1),n=Ne(t.end_value,1),o=we(t.start_delay,0),i=Ue()?0:we(t.duration,300),a=Te(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(84,Zt=e),r(85,Qt=n),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return r(86,te=e),r(87,ne=n),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return bt.logError(oe(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function En(){if(pe&&Mt){const t=Ft.getExtensionContext();pe.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,Mt,t)})),pe=null}}function jn(t){var e,n;null===(e=ue)||void 0===e||e.destroy(),r(51,Mt=t),on&&bt.json.transition_in&&Tt.registerChildWithTransitionIn(bt.json,bt,bt.json.transition_in,t).then((()=>{r(80,Xt=!1)})).catch((t=>{throw r(80,Xt=!1),t})),on&&bt.json.transition_out&&Tt.registerChildWithTransitionOut(bt.json,bt,bt.json.transition_out,t),on&&bt.json.transition_change&&Tt.registerChildWithTransitionChange(bt.json,bt,bt.json.transition_change,t).then((()=>{r(82,Kt=!1)})).catch((t=>{throw r(82,Kt=!1),t}));const o=bt.fakeElement?[]:bt.json.visibility_actions||bt.json.visibility_action&&[bt.json.visibility_action],i=bt.fakeElement?[]:bt.json.disappear_actions;let a;(Array.isArray(o)&&o.length||Array.isArray(i)&&i.length)&&(a=function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:o,componentContext:i}=e;const a=[];n&&n.forEach((t=>{a.push({type:"visibility",index:a.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{a.push({type:"disappear",index:a.length,action:t,visible:!1,count:0,finished:!1})}));const s=a.map(((t,e)=>{const n="visibility"===t.type;return i.getDerivedFromVars({index:e,visibility_percentage:t.action.visibility_percentage,visibility_duration:n?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit,is_enabled:t.action.is_enabled})}));let l;const c=()=>{l&&l.disconnect(),a.forEach((t=>{t.timer&&clearTimeout(t.timer)}))},u=ee(s,(t=>t));let d;const p=t=>{const e="visibility"===t.type,n=i.getJsonWithVars(t.action),r=n.url,a=n.typed;if(r){const t=be(r);t&&!_e(t,o.getBuiltinProtocols())&&("div-action"===t?o.execAction(n):n.log_id&&o.execCustomAction(n))}else a&&o.execAction(n);o.logStat(e?"visible":"disappear",n)},f=u.subscribe((e=>{d=e.filter(ke);const n={};d.forEach((t=>{n[t.index]=t})),c();const r=[...new Set(d.map((t=>{const e="visibility"===a[t.index].type;return xe(e,t.visibility_percentage,e?50:0)/100})))];r.length&&(l=new IntersectionObserver((t=>{t.forEach((t=>{d.forEach((e=>{const n=a[e.index],r="visibility"===n.type,o=xe(r,e.visibility_percentage,r?50:0);let i;i=0===o?t.intersectionRatio>=1e-12:t.intersectionRatio>=o/100;const s=r?!i:i;(r?!n.visible&&i:n.visible&&!i)?n.finished||(n.timer=setTimeout((()=>{++n.count;const t=0===e.log_limit?1/0:e.log_limit||1;++n.count>=t&&(n.finished=!0),p(n)}),we(e.visibility_duration,800))):s&&n.timer&&clearTimeout(n.timer),n.visible=i}))}))}),{threshold:r}),l.observe(t))}));return{destroy(){var t;null===(t=d)||void 0===t||t.forEach((t=>{const e=a[t.index];e&&"disappear"===e.type&&e.visible&&!e.finished&&o.registerTimeout(window.setTimeout((()=>{p(e)}),t.visibility_duration))})),c(),f()}}}(t,{visibilityActions:o,disappearActions:i,rootCtx:Ft,componentContext:bt}));const s=bt.json.id;return s&&Tt.registerChild(s),null===(n=bt.json.tooltips)||void 0===n||n.forEach((e=>{Ft.registerTooltip(t,e)})),ue={destroy(){s&&Tt.unregisterChild(s),a&&a.destroy(),xn&&xn.destroy()}},ue}return ct((function(){xn&&xn.update(bt)})),ut((()=>{var t;fe.forEach((t=>{Ft.unregisterParentOf(t)})),r(52,fe=[]),null===(t=bt.json.tooltips)||void 0===t||t.forEach((t=>{Ft.unregisterTooltip(t)})),En()})),t.$$set=t=>{"componentContext"in t&&r(0,bt=t.componentContext),"cls"in t&&r(1,wt=t.cls),"style"in t&&r(42,xt=t.style),"layoutParams"in t&&r(43,kt=t.layoutParams),"customDescription"in t&&r(44,Ct=t.customDescription),"customPaddings"in t&&r(45,Et=t.customPaddings),"customActions"in t&&r(46,jt=t.customActions),"additionalPaddings"in t&&r(47,At=t.additionalPaddings),"heightByAspect"in t&&r(48,Pt=t.heightByAspect),"parentOf"in t&&r(41,Dt=t.parentOf),"parentOfSimpleMode"in t&&r(49,Ot=t.parentOfSimpleMode),"replaceItems"in t&&r(50,St=t.replaceItems),"hasInnerFocusable"in t&&r(2,Vt=t.hasInnerFocusable),"$$scope"in t&&r(120,$t=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(100,o=bt.origJson),128&t.$$.dirty[3]&&o&&(r(58,Be=null),r(59,Le=""),r(76,nn=1),r(88,gn=!1),r(89,mn="visible"),r(90,vn=0),r(91,_n=0),r(92,ie=void 0),r(93,ae=void 0),rn=bt.fakeElement?[]:bt.json.transition_triggers||["state_change","visibility_change"],r(79,on=Boolean(-1!==rn.indexOf("state_change")&&bt.json.id)),an=Boolean(-1!==rn.indexOf("visibility_change")&&bt.json.id),Mt&&jn(Mt)),1&t.$$.dirty[0]&&(r(36,i=bt.getDerivedFromVars(bt.json.focus)),tt(),tt=p(i,(t=>r(104,T=t)))),1&t.$$.dirty[0]&&(r(35,a=bt.getDerivedFromVars(bt.json.border)),vt(),vt=p(a,(t=>r(118,G=t)))),1&t.$$.dirty[0]&&(r(34,s=bt.getDerivedFromVars(bt.json.paddings)),mt(),mt=p(s,(t=>r(117,X=t)))),1&t.$$.dirty[0]&&(r(33,l=bt.getDerivedFromVars(bt.json.margins)),ht(),ht=p(l,(t=>r(115,q=t)))),1&t.$$.dirty[0]&&(r(32,c=bt.getDerivedFromVars(bt.json.width)),dt(),dt=p(c,(t=>r(113,W=t)))),1&t.$$.dirty[0]&&(r(31,u=bt.getDerivedFromVars(bt.json.alignment_horizontal)),gt(),gt=p(u,(t=>r(116,Y=t)))),1&t.$$.dirty[0]&&(r(30,d=bt.getDerivedFromVars(bt.json.height)),lt(),lt=p(d,(t=>r(112,L=t)))),1&t.$$.dirty[0]&&(r(29,h=bt.getDerivedFromVars(bt.json.alignment_vertical)),ft(),ft=p(h,(t=>r(114,H=t)))),1&t.$$.dirty[0]&&(r(28,g=bt.getDerivedFromVars(bt.json.alpha)),st(),st=p(g,(t=>r(111,U=t)))),1&t.$$.dirty[0]&&(r(27,m=bt.getDerivedFromVars(bt.json.accessibility)),at(),at=p(m,(t=>r(110,B=t)))),1&t.$$.dirty[0]&&(r(26,v=bt.getDerivedFromVars(bt.json.background)),it(),it=p(v,(t=>r(109,R=t)))),1&t.$$.dirty[0]&&(r(25,y=bt.getDerivedFromVars(bt.json.action)),rt(),rt=p(y,(t=>r(107,I=t)))),1&t.$$.dirty[0]&&(r(24,$=bt.getDerivedFromVars(bt.json.actions)),ot(),ot=p($,(t=>r(108,z=t)))),1&t.$$.dirty[0]&&(r(23,b=bt.getDerivedFromVars(bt.json.doubletap_actions)),nt(),nt=p(b,(t=>r(106,M=t)))),1&t.$$.dirty[0]&&(r(22,_=bt.getDerivedFromVars(bt.json.longtap_actions)),et(),et=p(_,(t=>r(105,N=t)))),1&t.$$.dirty[0]&&(r(21,w=bt.getDerivedFromVars(bt.json.action_animation)),Q(),Q=p(w,(t=>r(103,F=t)))),1&t.$$.dirty[0]&&(r(20,x=bt.getDerivedFromVars(bt.json.visibility)),Z(),Z=p(x,(t=>r(102,V=t)))),1&t.$$.dirty[0]&&(r(19,k=bt.getDerivedFromVars(bt.json.transform)),K(),K=p(k,(t=>r(101,S=t)))),2360320&t.$$.dirty[1]&&(fe.forEach((t=>{Ft.unregisterParentOf(t)})),r(52,fe=[]),Dt&&Dt.forEach((t=>{null!=t&&t.id&&(fe.push(t.id),Ft.registerParentOf(t.id,{replaceWith:kn,isSingleMode:Boolean(Ot)}))}))),264&t.$$.dirty[0]|130023424&t.$$.dirty[1]|33556480&t.$$.dirty[3]){var e;const t=wn&&null!==(e=T)&&void 0!==e&&e.border?T.border:G;let n={},o={},i=!1,a="";if(t){if(t.has_shadow){const e=t.shadow;n["box-shadow"]=e?function(t){var e,n,r,o,i,a;return le((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+le((null===(r=t.offset)||void 0===r||null===(o=r.y)||void 0===o?void 0:o.value)||0)+" "+le(null!==(i=t.blur)&&void 0!==i?i:2)+" "+de(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(e):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(i=!0,r(54,$e=we(t.stroke.width,$e)),r(55,Ce=de(t.stroke.color,1,Ce)),o["--divkit-border"]="".concat(le($e+1)," solid ").concat(Ce)),t.corners_radius?(r(57,Pe=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!De(n[t]))return e;return t}(t.corners_radius,Pe)),n["border-radius"]=ze(Pe),["top-left","top-right","bottom-right","bottom-left"].forEach((t=>{r(57,Pe[t]=(Pe[t]||0)+1,Pe)})),o["--divkit-border-radius"]=ze(Pe)):t.corner_radius&&(r(56,Ee=we(t.corner_radius,Ee)),r(57,Pe={"top-left":Ee,"top-right":Ee,"bottom-right":Ee,"bottom-left":Ee}),n["border-radius"]=le(Ee),o["--divkit-border-radius"]=le(Ee+1)),i&&$e&&(t.corners_radius||t.corner_radius)){let t=cn({},Pe);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+$e/2})),a=ze(t)}}r(53,me=Fe(n,me)),r(3,ve=Fe(o,ve)),r(11,ye=i),r(4,Se=a)}if(134234112&t.$$.dirty[1]|16777216&t.$$.dirty[3]&&r(58,Be=Ie(X&&!Et?X:void 0,Be)),512&t.$$.dirty[0]|134283264&t.$$.dirty[1]&&r(96,C=Ae(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left","start","end"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}(Be,At),J)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]|4194304&t.$$.dirty[3]&&r(59,Le=Oe(q,J,Le)),513&t.$$.dirty[0]|536875008&t.$$.dirty[1]|4&t.$$.dirty[2]|13631488&t.$$.dirty[3]){var n;let t,e,o,i,a={},s=0,l=0,c=!1,u=!1;const d=null===(n=W)||void 0===n?void 0:n.type;var f;if("fixed"===d)r(64,He=we(null===(f=W)||void 0===f?void 0:f.value,He)),e=le(He);else if("wrap_content"===d||("match_parent"===d||!d)&&kt.parentHorizontalWrapContent){var ct;if(t="content",("wrap_content"===d&&null!==(ct=W)&&void 0!==ct&&ct.constrained||("match_parent"===d||!d)&&kt.parentHorizontalWrapContent)&&(a["width-constrained"]=!0,"horizontal"===kt.parentContainerOrientation&&(l=1)),"wrap_content"===d){const t=W;t.min_size&&De(t.min_size.value)&&(o=le(t.min_size.value)),t.max_size&&De(t.max_size.value)&&(i=le(t.max_size.value))}"match_parent"!==d&&d||bt.logError(oe(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else{var ut,pt;t="parent","vertical"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(u=!0,bt.logError(oe(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===kt.parentLayoutOrientation?e="calc(100% - ".concat(ce(((null===(ut=q)||void 0===ut?void 0:ut.left)||0)+((null===(pt=q)||void 0===pt?void 0:pt.right)||0)),")"):"horizontal"===kt.parentContainerOrientation&&(s=W&&"weight"in W&&W.weight||1,kt.parentContainerWrap&&(c=!0))}if("parent"===t)a["halign-self"]="stretch";else{const t=Y;a["halign-self"]="left"===t||"center"===t||"right"===t||"start"===t||"end"===t?("ltr"===J?yn:$n)[t]:kt.parentHAlign||"start"}t&&(a.width=t),r(61,zt=e),r(62,Rt=o),r(63,Bt=i),r(65,qe=s),r(66,Je=l),r(60,We=Fe(a,We)),r(67,Ye=c),r(12,Xe=u)}if(1&t.$$.dirty[0]|135168&t.$$.dirty[1]|1088&t.$$.dirty[2]|6815744&t.$$.dirty[3]){var yt;let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null===(yt=L)||void 0===yt?void 0:yt.type;if(Pt);else if("fixed"===u){var $t;r(72,Ke=we(null===($t=L)||void 0===$t?void 0:$t.value,Ke)),e=le(Ke)}else if("match_parent"!==u||kt.parentVerticalWrapContent){var wt;if(t="content",("wrap_content"===u&&null!==(wt=L)&&void 0!==wt&&wt.constrained||"match_parent"===u&&kt.parentVerticalWrapContent)&&(i["height-constrained"]=!0,"vertical"===kt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=L;null!=t&&t.min_size&&De(t.min_size.value)&&(n=le(t.min_size.value)),null!=t&&t.max_size&&De(t.max_size.value)&&(o=le(t.max_size.value))}"match_parent"===u&&bt.logError(oe(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else{var St,Vt;if(t="parent","horizontal"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,bt.logError(oe(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===kt.parentLayoutOrientation)e="calc(100% - ".concat(ce(((null===(St=q)||void 0===St?void 0:St.top)||0)+((null===(Vt=q)||void 0===Vt?void 0:Vt.bottom)||0)),")");else if("vertical"===kt.parentContainerOrientation){var Nt;a=(null===(Nt=L)||void 0===Nt?void 0:Nt.weight)||1,kt.parentContainerWrap&&(l=!0)}}if("parent"===t)i["valign-self"]="stretch";else{const t=H;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===kt.parentContainerOrientation?i["valign-self"]=bn[t]:i["valign-self"]=kt.parentVAlign||"start"}t&&(i.height=t),r(69,Ut=e),r(70,Lt=n),r(71,Wt=o),r(73,Ze=a),r(74,Qe=s),r(68,Ge=Fe(i,Ge)),r(75,tn=l),r(13,en=c)}var ee,re,ue,be,_e;if(4096&t.$$.dirty[1]&&r(99,E=!!kt.overlapParent||void 0),4096&t.$$.dirty[1]|1572864&t.$$.dirty[3]&&r(98,j=kt.overlapParent&&(!W||"match_parent"===W.type)&&!kt.parentHorizontalWrapContent&&"match_parent"===(null===(ee=L)||void 0===ee?void 0:ee.type)&&!kt.parentVerticalWrapContent),4096&t.$$.dirty[1]&&r(97,A=kt.gridArea?"".concat(kt.gridArea.y+1,"/").concat(kt.gridArea.x+1,"/span ").concat(kt.gridArea.rowSpan,"/span ").concat(kt.gridArea.colSpan):void 0),16384&t.$$.dirty[2]|262144&t.$$.dirty[3]&&(r(76,(ue=nn,nn=!De(re=U)||void 0===re||re>1?ue:Number(re))),r(77,Ht=1===nn?void 0:nn)),8192&t.$$.dirty[1]|131072&t.$$.dirty[3]&&(r(10,It=void 0),B&&!Ct&&B.description&&(r(10,It={}),r(10,It["aria-label"]=B.description,It))),368&t.$$.dirty[0]|67584&t.$$.dirty[3]&&(r(5,qt=wn&&null!==(be=T)&&void 0!==be&&be.background?T.background:R),r(78,Jt={}),r(6,Yt=!1),Array.isArray(qt)&&(r(6,Yt=qt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(Se)),!Yt))){const t=ge(qt);r(78,Jt["background-color"]=t.color,Jt),r(78,Jt["background-image"]=t.image,Jt),r(78,Jt["background-size"]=t.size,Jt),r(78,Jt["background-position"]=t.position,Jt),r(78,Jt["background-repeat"]="no-repeat",Jt)}if(1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(80,Xt=void 0),on&&bt.json.transition_in&&Ft.isRunning("stateChange")&&r(80,Xt=!0)),1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(82,Kt=void 0),on&&bt.json.transition_change&&Ft.isRunning("stateChange")&&Tt.hasTransitionChange(bt.json.id)&&r(82,Kt=!0)),1&t.$$.dirty[0]|32768&t.$$.dirty[1]|63488&t.$$.dirty[3]){var xe,ke;let t=z||I&&[I]||[],e=M||[],n=N||[],o=(null===(xe=T)||void 0===xe?void 0:xe.on_focus)||[],i=(null===(ke=T)||void 0===ke?void 0:ke.on_blur)||[];bt.fakeElement?(t=[],e=[],n=[],o=[],i=[]):(Array.isArray(t)||(t=[],bt.logError(oe(new Error("Actions should be array")))),Array.isArray(e)||(e=[],bt.logError(oe(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],bt.logError(oe(new Error("LongTapActions should be array")))),Array.isArray(o)||(o=[],bt.logError(oe(new Error("FocusActions should be array")))),Array.isArray(i)||(i=[],bt.logError(oe(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&jt&&(t=[],e=[],n=[],bt.logError(oe(new Error('Cannot use action on component "'.concat(jt,'"'))))),r(14,sn=t.filter(Re)),r(15,ln=e.filter(Re)),r(16,un=n.filter(Re)),dn=o.filter(Re),pn=i.filter(Re)}if(128&t.$$.dirty[0]|1024&t.$$.dirty[3]&&F&&(r(7,fn=Me(F)),r(83,hn=fn.map(Cn).filter(Boolean).join(", "))),201326592&t.$$.dirty[2]|512&t.$$.dirty[3]){const t=mn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(V,mn);t!==e&&(!gn||"visible"!==mn&&"visible"!==e?r(89,mn=e):async function(t){r(89,mn=t);const e="visible"===t?"in":"out",n="in"===e?bt.json.transition_in:bt.json.transition_out;an&&n&&(await _t(),"in"===e&&r(81,Gt=!0),Tt.runVisibilityTransition(cn(cn({},bt.json),{},{visibility:"visible"}),bt,n,Mt,e).then((()=>{"in"===e&&r(81,Gt=!1)})).catch((t=>{throw"in"===e&&r(81,Gt=!1),t})))}(e)),gn||r(88,gn=!0)}if(1&t.$$.dirty[0]|1048576&t.$$.dirty[1]|2&t.$$.dirty[3]&&bt.json&&Mt&&!Ve(bt.json.extensions,se)){let t=r(94,se=bt.json.extensions);_t().then((()=>{if(t===se&&Mt&&(En(),Array.isArray(bt.json.extensions))){const t=Ft.getExtensionContext();pe=bt.json.extensions.map((e=>{const n=e.id;if(!n)return;const r=Ft.getExtension(n,e.params);var o;return r&&(null===(o=r.mountView)||void 0===o||o.call(r,Mt,t)),r})).filter(he)}}))}if(257&t.$$.dirty[0]|536875008&t.$$.dirty[1]|138149952&t.$$.dirty[2]|96&t.$$.dirty[3]&&r(18,P=cn(cn(cn({},We),Ge),{},{"parent-overlap":E,"parent-overlap-absolute":j,"scroll-snap":kt.scrollSnap,"hide-on-transition-in":Xt||Gt||Kt,visibility:mn,"has-action-animation":Boolean(hn),"parent-flex":kt.parentContainerOrientation||void 0,"parent-grid":Boolean(kt.gridArea)||void 0,"has-custom-focus":Boolean(wn&&bt.json.focus)})),805306368&t.$$.dirty[2]|256&t.$$.dirty[3]&&S&&void 0!==S.rotation){const t=S.pivot_x||{type:"pivot-percentage",value:50};r(90,vn=Ne(t.value,vn));const e="pivot-fixed"===t.type?le(vn):"".concat(vn,"%"),n=S.pivot_y||{type:"pivot-percentage",value:50};r(91,_n=Ne(n.value,_n));const o="pivot-fixed"===n.type?le(_n):"".concat(_n,"%");r(92,ie="".concat(e," ").concat(o)),r(93,ae="rotate(".concat(S.rotation,"deg)"))}10280&t.$$.dirty[2]&&r(95,D=Ye||tn?"100%":qe||Ze?0:void 0),1346373632&t.$$.dirty[1]|1138858907&t.$$.dirty[2]|29&t.$$.dirty[3]&&r(17,O=cn(cn(cn(cn({},xt),Jt),me),{},{width:zt,"min-width":Rt,"max-width":Bt,height:Ut,"min-height":Lt,"max-height":Wt||(null===(_e=xt)||void 0===_e?void 0:_e["max-height"]),"grid-area":A,padding:C,margin:Le,opacity:Ht,transition:hn,"transform-origin":ie,transform:ae,"flex-grow":qe||Ze||void 0,"flex-shrink":Je||Qe?1:void 0,"flex-basis":D,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ne}))},[bt,wt,Vt,ve,Se,qt,Yt,fn,wn,J,It,ye,Xe,en,sn,ln,un,O,P,k,x,w,_,b,$,y,v,m,g,h,d,u,c,l,s,a,i,Nt,jn,function(){bt.json.focus&&(function(t){let e;return p(t,(t=>e=t))(),e}(Ft.isPointerFocus)||r(8,wn=!0),bt.execAnyActions(dn))},function(){bt.json.focus&&(r(8,wn=!1),bt.execAnyActions(pn))},Dt,xt,kt,Ct,Et,jt,At,Pt,Ot,St,Mt,fe,me,$e,Ce,Ee,Pe,Be,Le,We,zt,Rt,Bt,He,qe,Je,Ye,Ge,Ut,Lt,Wt,Ke,Ze,Qe,tn,nn,Ht,Jt,on,Xt,Gt,Kt,hn,Zt,Qt,te,ne,gn,mn,vn,_n,ie,ae,se,D,C,A,j,E,o,S,V,F,T,N,M,I,z,R,B,U,L,W,H,q,Y,X,G,yt,$t]}const xn=class extends Zt{constructor(t){super(),Gt(this,t,wn,vn,d,{componentContext:0,cls:1,style:42,layoutParams:43,customDescription:44,customPaddings:45,customActions:46,additionalPaddings:47,heightByAspect:48,parentOf:41,parentOfSimpleMode:49,replaceItems:50,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},kn={"text-range":"divkit-faf07","text-range_singleline":"divkit-ccb64","text-range__top-offset":"divkit-d9237","text-range_decoration_both":"divkit-d7e07","text-range_decoration_underline":"divkit-f3dde","text-range_decoration_strike":"divkit-d27b7","text-range_decoration_none":"divkit-c6b0f"};function Cn(t,e){const n=Number(t);return Number.isNaN(n)||n<=0?e:n}function En(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function jn(t,e){return En(t)||e}function An(t){let e,n;return{c(){e=I("span"),W(e,"class",n=kn["text-range__top-offset"]),K(e,"margin-top",t[5])},m(t,n){T(t,e,n)},p(t,n){32&n&&K(e,"margin-top",t[5])},d(t){t&&N(e)}}}function Pn(t){let e;return{c(){e=R(t[1])},m(t,n){T(t,e,n)},p(t,n){2&n&&X(e,t[1])},d(t){t&&N(e)}}}function Dn(t){let e,n,r,o=t[5]&&An(t);return n=new Ge({props:{componentContext:t[0],cls:Ee("text-range",kn,t[4]),actions:t[2],style:se(t[3]),$$slots:{default:[Pn]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=U(),Jt(n.$$.fragment)},m(t,i){o&&o.m(t,i),T(t,e,i),Yt(n,t,i),r=!0},p(t,r){let[i]=r;t[5]?o?o.p(t,i):(o=An(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};1&i&&(a.componentContext=t[0]),16&i&&(a.cls=Ee("text-range",kn,t[4])),4&i&&(a.actions=t[2]),8&i&&(a.style=se(t[3])),2097154&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Ft(n.$$.fragment,t),r=!0)},o(t){Tt(n.$$.fragment,t),r=!1},d(t){t&&N(e),o&&o.d(t),Xt(n,t)}}}function On(t,e,n){let r,o,i,a,s,l,{componentContext:c}=e,{text:u}=e,{rootFontSize:d}=e,{textStyles:p={}}=e,{singleline:f=!1}=e,{actions:h}=e;const g=pt(re);let m,v="none",y=12,$=1.25,b="",_="",w="",x=null;return t.$$set=t=>{"componentContext"in t&&n(0,c=t.componentContext),"text"in t&&n(1,u=t.text),"rootFontSize"in t&&n(6,d=t.rootFontSize),"textStyles"in t&&n(7,p=t.textStyles),"singleline"in t&&n(8,f=t.singleline),"actions"in t&&n(2,h=t.actions)},t.$$.update=()=>{if(1&t.$$.dirty&&c.json&&(n(9,v="none"),n(10,y=12),n(11,$=1.25),n(12,b=""),n(13,m=void 0),n(14,_=""),n(15,w=""),n(16,x=null)),128&t.$$.dirty){let t="none";(p.underline||p.strike)&&("single"===p.underline&&"single"===p.strike?t="both":"single"===p.underline?t="underline":"single"===p.strike&&(t="strike")),n(9,v=t)}var e,u,h;1152&t.$$.dirty&&n(10,y=Cn(p.font_size,y)),1152&t.$$.dirty&&Ze(p.line_height)&&n(11,$=Number(p.line_height)/y),128&t.$$.dirty&&De(p.letter_spacing)&&n(12,b=le(p.letter_spacing)),8320&t.$$.dirty&&(n(13,m=jn(p.font_weight,m)),"string"==typeof p.font_family&&p.font_family?n(14,_=g.typefaceProvider(p.font_family,{fontWeight:m||400})):n(14,_="")),32896&t.$$.dirty&&n(15,w=de(p.text_color,1,w)),128&t.$$.dirty&&n(5,r=p.top_offset?le(p.top_offset):""),128&t.$$.dirty&&n(18,o=p.background?ge([p.background]):null),128&t.$$.dirty&&(null!==(e=p.border)&&void 0!==e&&e.stroke&&p.border.stroke.color&&"transparent"!==de(p.border.stroke.color)&&Ze(p.border.stroke.width)?n(16,x={color:p.border.stroke.color,width:p.border.stroke.width}):n(16,x=null)),128&t.$$.dirty&&n(17,i=Cn(null===(u=p.border)||void 0===u?void 0:u.corner_radius,0)),1152&t.$$.dirty&&n(19,a=p.text_shadow?function(t,e){var n,r,o,i,a,s;return"drop-shadow("+de(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+le(10*((null===(r=t.offset)||void 0===r||null===(o=r.x)||void 0===o?void 0:o.value)||0)/e)+" "+le(10*((null===(i=t.offset)||void 0===i||null===(a=i.y)||void 0===a?void 0:a.value)||0)/e)+" "+le(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(p.text_shadow,y):void 0),768&t.$$.dirty&&n(4,s={singleline:f,decoration:v}),1047616&t.$$.dirty&&n(3,l={"font-size":le(10*y/d),"line-height":$,"letter-spacing":b,"font-weight":m,"font-family":_,filter:a,color:w,background:(null===(h=o)||void 0===h?void 0:h.color)||void 0,"box-shadow":x?"inset 0 0 0 ".concat(le(x.width)," ").concat(x.color):void 0,"border-radius":i?le(i):void 0})},[c,u,h,l,s,r,d,p,f,v,y,$,b,m,_,w,x,i,o,a]}const Sn=class extends Zt{constructor(t){super(),Gt(this,t,On,Dn,d,{componentContext:0,text:1,rootFontSize:6,textStyles:7,singleline:8,actions:2})}};function Vn(t,e,n){return"left"===t||"center"===t||"right"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}function Fn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?"top"===t?"start":"bottom"===t?"end":t:e}function Tn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function Nn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}function Mn(t,e){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,o),n=null}),e)}}function In(t,e){let n=null;const r=()=>{const n=getComputedStyle(t),r=parseFloat(n.lineHeight);t.style.webkitLineClamp="",t.style.maxHeight="";const o=t.offsetHeight;if(t.scrollHeight<=o+1e-9)return;let i=Math.max(1,Math.floor(o/r));e.maxLines&&e.maxLines<i&&(i=e.maxLines),t.style.webkitLineClamp=String(i),t.style.maxHeight=r*i+"px"},o=Mn(r,50),i=()=>{n&&(n.disconnect(),n=null)},a=()=>{if(i(),e.enabled){if(r(),"undefined"!=typeof ResizeObserver){n=new ResizeObserver(o);const e=t.parentElement;e&&n.observe(e)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return a(),{update(t){e=t,a()},destroy(){i()}}}function zn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zn(Object(n),!0).forEach((function(e){Bn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bn(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const{Boolean:Un}=A;function Ln(t,e,n){const r=t.slice();return r[60]=e[n],r}function Wn(t){let e,n;return e=new Sn({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[7],singleline:t[6]}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),4&n[0]&&(r.text=t[2]),8&n[0]&&(r.rootFontSize=t[3]),128&n[0]&&(r.textStyles=t[7]),64&n[0]&&(r.singleline=t[6]),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Hn(t){let e,n,r=zt(t[11]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Xn(Ln(t,r,e));const i=t=>Tt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=U()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(2633&n[0]|1&n[1]){let a;for(r=zt(t[11]),a=0;a<r.length;a+=1){const i=Ln(t,r,a);o[a]?(o[a].p(i,n),Ft(o[a],1)):(o[a]=Xn(i),o[a].c(),Ft(o[a],1),o[a].m(e.parentNode,e))}for(St(),a=r.length;a<o.length;a+=1)i(a);Vt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ft(o[t]);n=!0}},o(t){o=o.filter(Un);for(let t=0;t<o.length;t+=1)Tt(o[t]);n=!1},d(t){t&&N(e),M(o,t)}}}function qn(t){let e,r,o,i,a,s,l,c,d;return{c(){e=I("span"),r=I("img"),W(r,"class",o=ie.text__image),u(r.src,i=t[60].image.url)||W(r,"src",i),W(r,"loading",a=t[60].image.preloadRequired?"eager":"lazy"),W(r,"decoding","async"),W(r,"aria-hidden","true"),W(r,"alt",""),W(r,"style",s=se({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0})),W(e,"style",l=se(t[60].image.wrapperStyle))},m(n,o){T(n,e,o),S(e,r),c||(d=L(r,"error",t[31]),c=!0)},p(t,n){2048&n[0]&&!u(r.src,i=t[60].image.url)&&W(r,"src",i),2048&n[0]&&a!==(a=t[60].image.preloadRequired?"eager":"lazy")&&W(r,"loading",a),2560&n[0]&&s!==(s=se({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0}))&&W(r,"style",s),2048&n[0]&&l!==(l=se(t[60].image.wrapperStyle))&&W(e,"style",l)},i:n,o:n,d(t){t&&N(e),c=!1,d()}}}function Jn(t){let e,n,r=t[60].text&&Yn(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[60].text?r?(r.p(t,n),2048&n[0]&&Ft(r,1)):(r=Yn(t),r.c(),Ft(r,1),r.m(e.parentNode,e)):r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt())},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}function Yn(t){let e,n;return e=new Sn({props:{componentContext:t[0],text:t[60].text,rootFontSize:t[3],textStyles:t[60].textStyles,singleline:t[6],actions:t[60].actions}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2048&n[0]&&(r.text=t[60].text),8&n[0]&&(r.rootFontSize=t[3]),2048&n[0]&&(r.textStyles=t[60].textStyles),64&n[0]&&(r.singleline=t[6]),2048&n[0]&&(r.actions=t[60].actions),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Xn(t){let e,n,r,o;const i=[Jn,qn],a=[];function s(t,e){return"text"in t[60]?0:t[60].image?1:-1}return~(e=s(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=U()},m(t,n){~e&&a[e].m(t,n),T(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?~e&&a[e].p(t,o):(n&&(St(),Tt(a[l],1,1,(()=>{a[l]=null})),Vt()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Ft(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Ft(n),o=!0)},o(t){Tt(n),o=!1},d(t){t&&N(r),~e&&a[e].d(t)}}}function Gn(t){let e,n,r,o,i,a,s,c,u;const d=[Hn,Wn],p=[];function f(t,e){return t[11].length?0:1}return n=f(t),r=p[n]=d[n](t),{c(){e=I("span"),r.c(),W(e,"class",o=Ee("text__inner",ie,t[13])),W(e,"style",i=se(t[12]))},m(r,o){T(r,e,o),p[n].m(e,null),s=!0,c||(u=b(a=In.call(null,e,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})),c=!0)},p(t,c){let u=n;n=f(t),n===u?p[n].p(t,c):(St(),Tt(p[u],1,1,(()=>{p[u]=null})),Vt(),r=p[n],r?r.p(t,c):(r=p[n]=d[n](t),r.c()),Ft(r,1),r.m(e,null)),(!s||8192&c[0]&&o!==(o=Ee("text__inner",ie,t[13])))&&W(e,"class",o),(!s||4096&c[0]&&i!==(i=se(t[12])))&&W(e,"style",i),a&&l(a.update)&&1296&c[0]&&a.update.call(null,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})},i(t){s||(Ft(r),s=!0)},o(t){Tt(r),s=!1},d(t){t&&N(e),p[n].d(),c=!1,u()}}}function Kn(t){let e,n;return e=new xn({props:{cls:Ee("text",ie,t[14])+" "+(t[5]?"":ne.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Gn]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};16416&n[0]&&(r.cls=Ee("text",ie,t[14])+" "+(t[5]?"":ne.root__unselectable)),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),16349&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Zn(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,j,A,P,D,O,S,V,F,T,N,M,I,z,R,B,U,L,W=n,H=n,q=n,J=n,Y=n,X=n,G=n,K=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n;t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot()));let{componentContext:it}=e,{layoutParams:at}=e;const st=pt(re),lt=st.direction;f(t,lt,(t=>r(52,I=t)));let ct,dt="",ft=12,ht=1.25,gt=!1,mt="",vt="",yt=!1,$t="start",bt="start",_t="",wt="",xt="",kt=!1,Ct=[],Et=[];return ut((()=>{Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)}))})),t.$$set=t=>{"componentContext"in t&&r(0,it=t.componentContext),"layoutParams"in t&&r(1,at=t.layoutParams)},t.$$.update=()=>{var e;if(1&t.$$.dirty[0]&&it.json&&(r(3,ft=12),r(32,ht=1.25),r(9,gt=!1),r(33,mt=""),r(10,ct=void 0),r(4,vt=""),r(34,yt=!1),r(35,$t="start"),r(36,bt="start"),r(37,_t=""),r(39,xt=""),r(5,kt=!1)),1&t.$$.dirty[0]&&(r(29,o=it.getDerivedFromVars(it.json.text)),ot(),ot=p(o,(t=>r(56,L=t)))),1&t.$$.dirty[0]&&(r(28,i=it.getDerivedFromVars(it.json.ranges)),q(),q=p(i,(t=>r(44,D=t)))),1&t.$$.dirty[0]&&(r(27,a=it.getDerivedFromVars(it.json.images)),H(),H=p(a,(t=>r(43,P=t)))),1&t.$$.dirty[0]&&(r(26,s=it.getDerivedFromVars({font_size:it.json.font_size,letter_spacing:it.json.letter_spacing,font_weight:it.json.font_weight,font_family:it.json.font_family,text_color:it.json.text_color,underline:it.json.underline,strike:it.json.strike,line_height:it.json.line_height,text_shadow:it.json.text_shadow})),W(),W=p(s,(t=>r(7,A=t)))),1&t.$$.dirty[0]&&(r(25,l=it.getDerivedFromVars(it.json.font_size)),rt(),rt=p(l,(t=>r(55,U=t)))),1&t.$$.dirty[0]&&(r(24,c=it.getDerivedFromVars(it.json.line_height)),nt(),nt=p(c,(t=>r(54,B=t)))),1&t.$$.dirty[0]&&(r(23,u=it.getDerivedFromVars(it.json.max_lines)),Z(),Z=p(u,(t=>r(50,N=t)))),1&t.$$.dirty[0]&&(r(22,d=it.getDerivedFromVars(it.json.text_alignment_horizontal)),tt(),tt=p(d,(t=>r(53,z=t)))),1&t.$$.dirty[0]&&(r(21,h=it.getDerivedFromVars(it.json.text_alignment_vertical)),Q(),Q=p(h,(t=>r(51,M=t)))),1&t.$$.dirty[0]&&(r(20,g=it.getDerivedFromVars(it.json.text_color)),K(),K=p(g,(t=>r(49,T=t)))),1&t.$$.dirty[0]&&(r(19,m=it.getDerivedFromVars(it.json.focused_text_color)),G(),G=p(m,(t=>r(48,F=t)))),1&t.$$.dirty[0]&&(r(18,v=it.getDerivedFromVars(it.json.truncate)),X(),X=p(v,(t=>r(47,V=t)))),1&t.$$.dirty[0]&&(r(17,y=it.getDerivedFromVars(it.json.text_gradient)),Y(),Y=p(y,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(16,$=it.getDerivedFromVars(it.json.selectable)),J(),J=p($,(t=>r(45,O=t)))),1&t.$$.dirty[0]&&(r(15,b=it.getDerivedFromVars(it.json.auto_ellipsize)),et(),et=p(b,(t=>r(8,R=t)))),33554432&t.$$.dirty[1]&&r(2,(e=L,dt=String(null!=e?e:""))),8&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(3,ft=Cn(U,ft)),8&t.$$.dirty[0]|8388608&t.$$.dirty[1]){const t=B;Ze(t)?(r(32,ht=Number(t)/ft),r(9,gt=!0)):r(9,gt=!1)}if(524288&t.$$.dirty[1]&&r(6,_=1===N),256&t.$$.dirty[0]|524290&t.$$.dirty[1]){let t,e="",n="",o=!1;if(N&&N>1){const r=Number(N);e=r*ht+"em",t=r,n=r,o=!0}else R&&1!==N&&(o=!0);r(33,mt=e),r(10,ct=t),r(4,vt=n),r(34,yt=o)}if(6291472&t.$$.dirty[1]&&r(35,$t=Vn(z,I,$t)),1048608&t.$$.dirty[1]&&r(36,bt=Fn(M,bt)),4&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(42,w=!D||dt&&1===D.length&&D[0]&&0===D[0].start&&"number"==typeof D[0].end&&D[0].end>=dt.length),270336&t.$$.dirty[1]&&r(41,x=Boolean(T)!==Boolean(D&&D[0]&&D[0].text_color)),797760&t.$$.dirty[1]){let t="";N&&w&&x&&(t=de(T||D&&D[0]&&D[0].text_color,1,_t)),r(37,_t=t)}if(131200&t.$$.dirty[1]&&r(38,wt=de(F,1,wt)),65536&t.$$.dirty[1]&&r(40,k="none"===V?"none":""),32768&t.$$.dirty[1]){let t="";if(S){const e=ge([S]);e.image&&(t=e.image)}r(39,xt=t)}32&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(5,kt=Tn(O,kt)),132&t.$$.dirty[0]|12288&t.$$.dirty[1]&&function(t,e,n,o){let i=[];if(Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)})),Et=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(11,Ct=[]);const a=t;let s=e||[{start:0,end:a.length}],l=n||[],c=0,u=[],d=[];s.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(d.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),d.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=a.length&&d.push({index:t.start,image:t,type:"image",arrayIndex:e})})),d.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),d.forEach((t=>{let e="image"===t.type?null:t.range,n=t.index;if(n>c){var r,s;let e=Object.assign(Rn({},o),...u);i.push({text:a.substring(c,n),textStyles:e,actions:"rangeEnd"===t.type&&(null===(r=t.range)||void 0===r||null===(s=r.actions)||void 0===s?void 0:s.filter(Re))||void 0})}if("rangeStart"===t.type&&e)u.push(e);else if("rangeEnd"===t.type)u=u.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Rn({},o),...u),n=le(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=le(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const a={"font-size":le(10*(Number(e.font_size)||12)/ft)};let s="";const l=t.image.tint_color,c=Nn(t.image.tint_mode,"source_in");if(l){const e=de(t.image.tint_color);s=st.addSvgFilter(e,c),Et.push([e,c])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:a,svgFilterId:s,preloadRequired:Boolean(t.image.preload_required)}})}c=n})),c<a.length&&i.push({text:a.substring(c),textStyles:Rn({},o)}),r(11,Ct=i)}(dt,D,P,A),64&t.$$.dirty[0]|696&t.$$.dirty[1]&&r(14,C={singleline:_,multiline:yt,halign:$t,valign:bt,truncate:k,"has-focus-color":Boolean(wt)}),256&t.$$.dirty[1]&&r(13,E={gradient:Boolean(xt)}),24&t.$$.dirty[0]|454&t.$$.dirty[1]&&r(12,j={"font-size":le(ft),"line-height":ht,"max-height":mt,"-webkit-line-clamp":vt,color:_t,"background-image":xt,"--divkit-text-focus-color":wt})},[it,at,dt,ft,vt,kt,_,A,R,gt,ct,Ct,j,E,C,b,$,y,v,m,g,h,d,u,c,l,s,a,i,o,lt,function(t){t.target&&"classList"in t.target&&t.target.classList.add(ie.text__image_hidden)},ht,mt,yt,$t,bt,_t,wt,xt,k,x,w,P,D,O,S,V,F,T,N,M,I,z,B,U,L]}const Qn={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_overflow_visible:"divkit-f315a",container_orientation_vertical:"divkit-ddc33",container_valign_start:"divkit-a31f0",container_valign_center:"divkit-aae61",container_valign_end:"divkit-eac00","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_start:"divkit-efaf5",container_halign_center:"divkit-bac9d",container_halign_end:"divkit-ca36b","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function tr(t){return{top:Number(null==t?void 0:t.top)||0,right:Number(null==t?void 0:t.right)||0,bottom:Number(null==t?void 0:t.bottom)||0,left:Number(null==t?void 0:t.left)||0}}function er(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+o:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+o:t.right=e.style.width+r)}function nr(t,e,n){let r;const o=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),s=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+s:0,null!=e&&e.show_between?e.style.width+o:0]:[null!=e&&e.show_between?e.style.height+i:0,null!=n&&n.show_between?n.style.width+a:0],r.map(le).join(" ")}function rr(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function or(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function ir(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:we(null===(i=(o=t.shape).item_width)||void 0===i?void 0:i.value,10),height:we(null===(a=o.item_height)||void 0===a?void 0:a.value,10),radius:we(null===(s=o.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*we(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var o,i,a,s;return function(t,e,n){var r;const o={},i=e.stroke||(null==n?void 0:n.stroke),a=null!=i&&i.color?de(i.color):"",s=null!=i&&i.width?Number(null!==(r=i.width)&&void 0!==r?r:1):"";o.width=t.width,o.height=t.height,o.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return o.background=de(l),a&&s&&(o.boxShadow="inset 0 0 0 ".concat(le(s)," ").concat(a)),o}(r,t.shape,{color:t.color,stroke:t.stroke})}let ar;function sr(){if("undefined"==typeof document&&(ar=!0),void 0!==ar)return ar;const t=document.createElement("div");return t.style.position="absolute",t.style.display="flex",t.style.flexDirection="column",t.style.gap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),ar=1===t.scrollHeight,document.body.removeChild(t),ar}const lr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:cr}=A;function ur(t,e,n){const r=t.slice();return r[16]=e[n],r}function dr(t){let e,n,r,o,i,a="".concat(t[16].style.width,"px"),s="".concat(t[16].style.height,"px"),l="".concat(t[16].style.borderRadius,"px"),c="".concat(t[16].left,"px"),u="".concat(t[16].top,"px"),d="".concat(t[16].width,"px"),p="".concat(t[16].height,"px");return{c(){e=I("div"),n=I("div"),o=B(),W(n,"class",r=lr["container-separator__shape"]),K(n,"width",a),K(n,"height",s),K(n,"border-radius",l),K(n,"background",t[16].style.background),K(n,"box-shadow",t[16].style.boxShadow),W(e,"class",i=lr["container-separator__item"]),K(e,"left",c),K(e,"top",u),K(e,"width",d),K(e,"height",p)},m(t,r){T(t,e,r),S(e,n),S(e,o)},p(t,r){2&r&&a!==(a="".concat(t[16].style.width,"px"))&&K(n,"width",a),2&r&&s!==(s="".concat(t[16].style.height,"px"))&&K(n,"height",s),2&r&&l!==(l="".concat(t[16].style.borderRadius,"px"))&&K(n,"border-radius",l),2&r&&K(n,"background",t[16].style.background),2&r&&K(n,"box-shadow",t[16].style.boxShadow),2&r&&c!==(c="".concat(t[16].left,"px"))&&K(e,"left",c),2&r&&u!==(u="".concat(t[16].top,"px"))&&K(e,"top",u),2&r&&d!==(d="".concat(t[16].width,"px"))&&K(e,"width",d),2&r&&p!==(p="".concat(t[16].height,"px"))&&K(e,"height",p)},d(t){t&&N(e)}}}function pr(t){let e,r,o,i,a=zt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=dr(ur(t,a,e));return{c(){e=I("div");for(let t=0;t<s.length;t+=1)s[t].c();W(e,"class",r=lr["container-separator"])},m(n,r){T(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[13](e),o||(i=L(cr,"resize",t[2]),o=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=zt(t[1]),n=0;n<a.length;n+=1){const o=ur(t,a,n);s[n]?s[n].p(o,r):(s[n]=dr(o),s[n].c(),s[n].m(e,null))}for(;n<s.length;n+=1)s[n].d(1);s.length=a.length}},i:n,o:n,d(n){n&&N(e),M(s,n),t[13](null),o=!1,i()}}}function fr(t,e,n,r,o,i){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;i?t.push({top:n.bottom+l,left:o.left+a,width:Math.max(0,o.right-o.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:o.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,o.bottom-o.top-l-c),style:e.style})}function hr(t,e,n,r,o,i){const a={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if(null!=e&&e.show_at_start){let s,l;"space-around"===o||"space-evenly"===o?(s=i.left-e.style.width,l=i.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),fr(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null!=e&&e.show_between)for(let o=0;o<n.length-1;++o)fr(t,e,n[o],n[o+1],a,r);if(null!=e&&e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===o||"space-evenly"===o?(l=i.bottom+e.style.height,c=i.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),fr(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function gr(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e,{direction:c}=e;const u=function(t,e){let n,r=0,o=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect(),e=window.getComputedStyle(r),u={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,p=[]);let f=[...r.children].filter((t=>t!==d&&!t.classList.contains(ae.outer__border))),h=[];for(;f.length;){const t=[],e=f.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.left,i=n.right,a=n.bottom;for(;f.length;){let e=f[0],n=e.getBoundingClientRect();if("vertical"===o){if(n.top<a)break}else if("ltr"===c?n.left<i:n.right>r)break;i=Math.max(i,n.right),r=Math.min(r,n.left),a=Math.max(a,n.bottom),t.push(e),f.shift()}h.push(t)}const g=[];h.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));"rtl"===c&&"horizontal"===o&&e.reverse(),i&&hr(p,i,e,"vertical"===o,"vertical"===o?l:s,u);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};g.push(n)})),"rtl"===c&&"vertical"===o&&g.reverse(),a&&hr(p,a,g,"horizontal"===o,"vertical"===o?s:l,u),p.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let d,p=[],f=!1,h=null,g=null;function m(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null!=n&&n.contains(lr["container-separator__shape"])||null!=n&&n.contains(lr["container-separator"]))}))&&u()}return lt((()=>{n(9,f=!0)})),ut((()=>{n(9,f=!1)})),t.$$set=t=>{"orientation"in t&&n(3,o=t.orientation),"separator"in t&&n(4,i=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign),"direction"in t&&n(8,c=t.direction)},t.$$.update=()=>{var e;1&t.$$.dirty&&n(12,r=(null===(e=d)||void 0===e?void 0:e.parentElement)||null),7680&t.$$.dirty&&(f&&r||h||g)&&(h&&(h.disconnect(),n(10,h=null)),g&&(g.disconnect(),n(11,g=null)),f&&r&&("undefined"!=typeof MutationObserver&&(n(10,h=new MutationObserver(m)),h.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(11,g=new ResizeObserver(u)),g.observe(r)))),4608&t.$$.dirty&&f&&r&&u()},[d,p,u,o,i,a,s,l,c,f,h,g,r,function(t){gt[t?"unshift":"push"]((()=>{d=t,n(0,d)}))}]}const mr=class extends Zt{constructor(t){super(),Gt(this,t,gr,pr,d,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}};function vr(){}function yr(t){return{subscribe:e=>(e(t),vr)}}function $r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function br(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$r(Object(n),!0).forEach((function(e){_r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _r(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}yr(void 0);const{Boolean:wr}=A;function xr(t,e,n){const r=t.slice();return r[47]=e[n],r}function kr(t){let e,n;return e=new Ws({props:{componentContext:t[47],layoutParams:t[8]}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.componentContext=t[47]),256&n[0]&&(r.layoutParams=t[8]),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Cr(t){let e,n;return e=new mr({props:{direction:t[11],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.direction=t[11]),32&n[0]&&(r.separator=t[5]),64&n[0]&&(r.lineSeparator=t[6]),4&n[0]&&(r.orientation=t[2]),16&n[0]&&(r.contentHAlign=t[4]),8&n[0]&&(r.contentVAlign=t[3]),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Er(t){let e,n,r,o=zt(t[9]),i=[];for(let e=0;e<o.length;e+=1)i[e]=kr(xr(t,o,e));const a=t=>Tt(i[t],1,1,(()=>{i[t]=null}));let s=(t[5]||t[6])&&Cr(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=B(),s&&s.c(),n=U()},m(t,o){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,o);T(t,e,o),s&&s.m(t,o),T(t,n,o),r=!0},p(t,r){if(768&r[0]){let n;for(o=zt(t[9]),n=0;n<o.length;n+=1){const a=xr(t,o,n);i[n]?(i[n].p(a,r),Ft(i[n],1)):(i[n]=kr(a),i[n].c(),Ft(i[n],1),i[n].m(e.parentNode,e))}for(St(),n=o.length;n<i.length;n+=1)a(n);Vt()}t[5]||t[6]?s?(s.p(t,r),96&r[0]&&Ft(s,1)):(s=Cr(t),s.c(),Ft(s,1),s.m(n.parentNode,n)):s&&(St(),Tt(s,1,1,(()=>{s=null})),Vt())},i(t){if(!r){for(let t=0;t<o.length;t+=1)Ft(i[t]);Ft(s),r=!0}},o(t){i=i.filter(wr);for(let t=0;t<i.length;t+=1)Tt(i[t]);Tt(s),r=!1},d(t){t&&(N(e),N(n)),M(i,t),s&&s.d(t)}}}function jr(t){let e,n;return e=new xn({props:{cls:Ee("container",Qn,t[13]),componentContext:t[0],layoutParams:t[1],style:t[10],additionalPaddings:t[14],heightByAspect:Boolean(t[7]),parentOf:t[9].map(Or),replaceItems:t[27],$$slots:{default:[Er]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Ee("container",Qn,t[13])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1024&n[0]&&(r.style=t[10]),16384&n[0]&&(r.additionalPaddings=t[14]),128&n[0]&&(r.heightByAspect=Boolean(t[7])),512&n[0]&&(r.parentOf=t[9].map(Or)),2940&n[0]|524288&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}const Ar={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},Pr={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Dr=["rounded_rectangle","circle"],Or=t=>t.json;function Sr(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,j,A,P,D,O,S,V,F,T,N,M,I=n,z=n,R=n,B=n,U=n,L=n,W=n,H=n,q=n,J=n,Y=n,X=n;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X()));let{componentContext:G}=e,{layoutParams:K}=e;const Z=pt(re),Q=Z.direction;let tt;f(t,Q,(t=>r(11,O=t)));let et,nt="vertical",rt="start",ot="start",it=null,at=null,st={},lt=[];return t.$$set=t=>{"componentContext"in t&&r(0,G=t.componentContext),"layoutParams"in t&&r(1,K=t.layoutParams)},t.$$.update=()=>{var e,n,f,Q,ct;if(1&t.$$.dirty[0]&&r(32,o=G.origJson),2&t.$$.dirty[1]&&o&&(r(2,nt="vertical"),r(3,rt="start"),r(4,ot="start"),r(7,et=void 0)),1&t.$$.dirty[0]&&r(31,i=G.json.items),1&t.$$.dirty[0]&&(r(25,a="string"==typeof(null===(e=G.json.item_builder)||void 0===e?void 0:e.data)?G.getDerivedFromVars(null===(n=G.json.item_builder)||void 0===n?void 0:n.data,void 0,!0):null!==(f=G.json.item_builder)&&void 0!==f&&f.data?yr(G.json.item_builder.data):void 0),X(),X=p(a,(t=>r(44,M=t)))),1&t.$$.dirty[0]&&(r(24,s=G.getDerivedFromVars(G.json.orientation)),Y(),Y=p(s,(t=>r(43,N=t)))),1&t.$$.dirty[0]&&(r(23,l=G.getDerivedFromVars(G.json.layout_mode)),J(),J=p(l,(t=>r(42,T=t)))),1&t.$$.dirty[0]&&(r(22,c=G.getDerivedFromVars(G.json.content_alignment_vertical)),H(),H=p(c,(t=>r(40,V=t)))),1&t.$$.dirty[0]&&(r(21,u=G.getDerivedFromVars(G.json.content_alignment_horizontal)),W(),W=p(u,(t=>r(39,S=t)))),1&t.$$.dirty[0]&&(r(20,d=G.getDerivedFromVars(G.json.separator)),L(),L=p(d,(t=>r(38,D=t)))),1&t.$$.dirty[0]&&(r(19,h=G.getDerivedFromVars(G.json.line_separator)),U(),U=p(h,(t=>r(37,P=t)))),1&t.$$.dirty[0]&&(r(18,g=G.getDerivedFromVars(G.json.aspect)),B(),B=p(g,(t=>r(36,A=t)))),1&t.$$.dirty[0]&&(r(17,m=G.getDerivedFromVars(G.json.width)),z(),z=p(m,(t=>r(34,E=t)))),1&t.$$.dirty[0]&&(r(16,v=G.getDerivedFromVars(G.json.height)),R(),R=p(v,(t=>r(35,j=t)))),1&t.$$.dirty[0]&&(r(15,y=G.getDerivedFromVars(G.json.clip_to_bounds)),I(),I=p(y,(t=>r(33,C=t)))),1&t.$$.dirty[0]|8193&t.$$.dirty[1]){let t=[];if(G.json.item_builder&&Array.isArray(M)&&Array.isArray(G.json.item_builder.prototypes)){const e=G.json.item_builder;t=[],M.forEach((n=>{if(null===n||"object"!=typeof n)return;const r=Z.preparePrototypeVariables(e.data_element_name||"it",n);let o;for(let t=0;t<e.prototypes.length;++t){const n=e.prototypes[t];if(n.div){if(void 0===n.selector){o=n.div;break}if(G.getJsonWithVars(n.selector,r)){o=n.div;break}}}o&&t.push({div:o,vars:r})}))}else t=(Array.isArray(i)&&i||[]).map((t=>({div:t})));r(9,lt=t.map(((t,e)=>G.produceChildContext(t.div,{path:e,variables:t.vars}))))}if(513&t.$$.dirty[0]){let t=[];lt.forEach((e=>{t.push(G.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(12,tt=ee(t,(t=>[...t]))),q(),q=p(tt,(t=>r(41,F=t)))}if(4&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(2,nt=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(N,nt)),2048&t.$$.dirty[1]&&r(28,$="wrap"===T),268435460&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(29,b="horizontal"!==nt&&!$&&F.some(rr)),268435460&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(30,_="vertical"!==nt&&!$&&F.some(or)),8&t.$$.dirty[0]|512&t.$$.dirty[1]&&r(3,rt=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?"top"===t?"start":"bottom"===t?"end":t:e}(V,rt)),2064&t.$$.dirty[0]|256&t.$$.dirty[1]&&r(4,ot=function(t,e,n){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}(S,O,ot)),36&t.$$.dirty[0]|128&t.$$.dirty[1])if(null!==(Q=D)&&void 0!==Q&&Q.style&&"overlap"!==nt&&sr()){var ut;const t=ir(D.style,Dr,(null===(ut=it)||void 0===ut?void 0:ut.style)||null);var dt,pt,ft;r(5,it=t?{show_at_start:Boolean(null!==(dt=D.show_at_start)&&void 0!==dt&&dt),show_at_end:Boolean(null!==(pt=D.show_at_end)&&void 0!==pt&&pt),show_between:Boolean(null===(ft=D.show_between)||void 0===ft||ft),style:t,margins:tr(D.margins)}:null)}else r(5,it=null);if(68&t.$$.dirty[0]|64&t.$$.dirty[1])if(null!==(ct=P)&&void 0!==ct&&ct.style&&"overlap"!==nt&&sr()){var ht;const t=ir(P.style,Dr,(null===(ht=at)||void 0===ht?void 0:ht.style)||null);var gt,mt,vt;r(6,at=t?{show_at_start:Boolean(null!==(gt=P.show_at_start)&&void 0!==gt&&gt),show_at_end:Boolean(null!==(mt=P.show_at_end)&&void 0!==mt&&mt),show_between:Boolean(null===(vt=P.show_between)||void 0===vt||vt),style:t,margins:tr(P.margins)}:null)}else r(6,at=null);if(100&t.$$.dirty[0]&&r(14,w=it||at?function(t,e,n){const r={};return er(r,e,"vertical"===t),er(r,n,"horizontal"===t),r}(nt,it,at):null),32&t.$$.dirty[1]){var yt;const t=null===(yt=A)||void 0===yt?void 0:yt.ratio;t&&Ze(t)?r(7,et=t):r(7,et=void 0)}if(1879048606&t.$$.dirty[0]|24&t.$$.dirty[1]){var $t,bt,_t,wt;let t={};"overlap"===nt&&(t.overlapParent=!0),"horizontal"!==nt&&(t.parentHAlign=$?"start":Ar[ot]),"vertical"!==nt&&(t.parentVAlign=$?"start":Pr[rt]),et||_||j&&"wrap_content"!==j.type&&("match_parent"!==j.type||null===($t=K)||void 0===$t||!$t.parentVerticalWrapContent)||(t.parentVerticalWrapContent=!0),!b&&("wrap_content"===(null===(bt=E)||void 0===bt?void 0:bt.type)||"match_parent"===(null===(_t=E)||void 0===_t?void 0:_t.type)&&null!==(wt=K)&&void 0!==wt&&wt.parentHorizontalWrapContent)&&(t.parentHorizontalWrapContent=!0),"horizontal"===nt&&(t.parentContainerOrientation="horizontal"),"vertical"===nt&&(t.parentContainerOrientation="vertical"),$&&(t.parentContainerWrap=!0),r(8,st=Fe(t,st))}268435484&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(13,x={orientation:nt,valign:rt,halign:ot,wrap:$,overflow:!1===C||0===C?"visible":void 0}),228&t.$$.dirty[0]&&r(10,k={gap:it||at?nr(nt,it,at):void 0,"aspect-ratio":et})},[G,K,nt,rt,ot,it,at,et,st,lt,k,O,tt,x,w,y,v,m,g,h,d,u,c,l,s,a,Q,function(t){r(0,G=br(br({},G),{},{json:br(br({},G.json),{},{items:t.filter(he)})}))},$,b,_,i,o,C,E,j,A,P,D,S,V,F,T,N,M]}const Vr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Fr(t,e){return"vertical"===t||"horizontal"===t?t:e}function Tr(t){let e,n,r;return{c(){e=I("span"),W(e,"class",n=Vr.separator__inner),W(e,"style",r=se(t[3]))},m(t,n){T(t,e,n)},p(t,n){8&n&&r!==(r=se(t[3]))&&W(e,"style",r)},d(t){t&&N(e)}}}function Nr(t){let e,n=t[4]&&Tr(t);return{c(){n&&n.c(),e=U()},m(t,r){n&&n.m(t,r),T(t,e,r)},p(t,r){t[4]?n?n.p(t,r):(n=Tr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&N(e),n&&n.d(t)}}}function Mr(t){let e,n;return e=new xn({props:{cls:Ee("separator",Vr,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Nr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){let[r]=n;const o={};4&r&&(o.cls=Ee("separator",Vr,t[2])),1&r&&(o.componentContext=t[0]),2&r&&(o.layoutParams=t[1]),8216&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Ir(t,e,r){let o,i,a,s,l,c,u,d,f=n;t.$$.on_destroy.push((()=>f()));let{componentContext:h}=e,{layoutParams:g}=e,m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"componentContext"in t&&r(0,h=t.componentContext),"layoutParams"in t&&r(1,g=t.layoutParams)},t.$$.update=()=>{var e,n,g;1&t.$$.dirty&&r(10,o=h.origJson),1024&t.$$.dirty&&o&&(r(6,m="horizontal"),r(7,v="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(r(5,i=h.getDerivedFromVars(h.json.delimiter_style)),f(),f=p(i,(t=>r(11,d=t)))),2112&t.$$.dirty&&r(6,m=Fr(null===(e=d)||void 0===e?void 0:e.orientation,m)),2048&t.$$.dirty&&r(4,a=!(null!==(n=d)&&void 0!==n&&n.color&&("transparent"===d.color||9===d.color.length&&0===d.color.indexOf("#00")))),2176&t.$$.dirty&&r(7,v=de(null===(g=d)||void 0===g?void 0:g.color,1,v)),64&t.$$.dirty&&r(9,s="horizontal"===m?"100%":le(1)),64&t.$$.dirty&&r(8,l="horizontal"===m?le(1):"100%"),896&t.$$.dirty&&r(3,c={background:v,width:s,height:l}),64&t.$$.dirty&&r(2,u={orientation:m})},[h,g,u,c,a,i,m,v,l,s,o,d]}const zr={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image_is-rtl-mirror":"divkit-ae78c","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Rr(t){return t.startsWith("data:")?fe(t):"data:image/jpg;base64,".concat(fe(t))}function Br(t){let e,n;return e=new xn({props:{cls:Ee("image",zr,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[Hr]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=Ee("image",zr,t[9])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),67110780&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Ur(t){let e,n,r,o,i,a,l,c;return{c(){e=I("img"),W(e,"class",n=zr.image__image),u(e.src,r=t[3]===Yr?Jr:t[4])||W(e,"src",r),W(e,"loading",o=t[26]?"eager":"lazy"),W(e,"decoding","async"),W(e,"style",i=se(t[8])),W(e,"alt",t[10]),W(e,"aria-hidden",a=t[10]?null:"true")},m(n,r){T(n,e,r),t[63](e),l||(c=[L(e,"load",t[28]),L(e,"error",t[29])],l=!0)},p(t,n){24&n[0]&&!u(e.src,r=t[3]===Yr?Jr:t[4])&&W(e,"src",r),67108864&n[0]&&o!==(o=t[26]?"eager":"lazy")&&W(e,"loading",o),256&n[0]&&i!==(i=se(t[8]))&&W(e,"style",i),1024&n[0]&&W(e,"alt",t[10]),1024&n[0]&&a!==(a=t[10]?null:"true")&&W(e,"aria-hidden",a)},d(n){n&&N(e),t[63](null),l=!1,s(c)}}}function Lr(t){let e,n,r,o,i,a,l,c,d,p,f="".concat(t[5],"%");return{c(){e=I("span"),n=I("img"),W(n,"class",r=zr.image__image),u(n.src,o=t[3]===Yr?Jr:t[4])||W(n,"src",o),W(n,"loading",i=t[26]?"eager":"lazy"),W(n,"decoding","async"),W(n,"style",a=se(t[8])),W(n,"alt",t[10]),W(n,"aria-hidden",l=t[10]?null:"true"),W(e,"class",c=zr["image__aspect-wrapper"]),K(e,"padding-bottom",f)},m(r,o){T(r,e,o),S(e,n),t[62](n),d||(p=[L(n,"load",t[28]),L(n,"error",t[29])],d=!0)},p(t,r){24&r[0]&&!u(n.src,o=t[3]===Yr?Jr:t[4])&&W(n,"src",o),67108864&r[0]&&i!==(i=t[26]?"eager":"lazy")&&W(n,"loading",i),256&r[0]&&a!==(a=se(t[8]))&&W(n,"style",a),1024&r[0]&&W(n,"alt",t[10]),1024&r[0]&&l!==(l=t[10]?null:"true")&&W(n,"aria-hidden",l),32&r[0]&&f!==(f="".concat(t[5],"%"))&&K(e,"padding-bottom",f)},d(n){n&&N(e),t[62](null),d=!1,s(p)}}}function Wr(t){let e;function n(t,e){return t[9].aspect?Lr:Ur}let r=n(t),o=r(t);return{c(){o.c(),e=U()},m(t,n){o.m(t,n),T(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&N(e),o.d(t)}}}function Hr(t){let e,n=t[6],r=Wr(t);return{c(){r.c(),e=U()},m(t,n){r.m(t,n),T(t,e,n)},p(t,o){64&o[0]&&d(n,n=t[6])?(r.d(1),r=Wr(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&N(e),r.d(t)}}}function qr(t){let e,n,r=!t[7]&&Br(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[7]?r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt()):r?(r.p(t,n),128&n[0]&&Ft(r,1)):(r=Br(t),r.c(),Ft(r,1),r.m(e.parentNode,e))},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}const Jr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Yr=2;function Xr(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,j,A,P,D,O,S,V,F,T,N,M,I,z,R,B,U,L=n,W=n,H=n,q=n,J=n,Y=n,X=n,G=n,K=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n;t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt()));let{componentContext:ot}=e,{layoutParams:it}=e;const at=pt(re),st=at.direction;let lt;f(t,st,(t=>r(48,A=t)));let ct,dt,ft=0,ht=!1,mt="rgba(0,0,0,0.08)",vt=!1,yt="",$t="none",bt="50% 50%",_t="0",wt="source_in",xt="",kt="",Ct=0,Et=0,jt=0,At="",Pt="",Dt=!1;return ut((()=>{at.removeSvgFilter(dt,wt)})),t.$$set=t=>{"componentContext"in t&&r(0,ot=t.componentContext),"layoutParams"in t&&r(1,it=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(46,o=ot.origJson),32768&t.$$.dirty[1]&&o&&(r(33,$t="none"),r(34,bt="50% 50%"),r(36,wt="source_in")),1&t.$$.dirty[0]&&(r(25,i=ot.getDerivedFromVars(ot.json.image_url)),et(),et=p(i,(t=>r(60,R=t)))),1&t.$$.dirty[0]&&(r(24,a=ot.getDerivedFromVars(ot.json.gif_url)),nt(),nt=p(a,(t=>r(61,B=t)))),1&t.$$.dirty[0]&&(r(23,s=ot.getDerivedFromVars(ot.json.width)),tt(),tt=p(s,(t=>r(59,z=t)))),1&t.$$.dirty[0]&&(r(22,l=ot.getDerivedFromVars(ot.json.height)),Q(),Q=p(l,(t=>r(58,I=t)))),1&t.$$.dirty[0]&&(r(21,c=ot.getDerivedFromVars(ot.json.preview)),Z(),Z=p(c,(t=>r(57,M=t)))),1&t.$$.dirty[0]&&(r(20,u=ot.getDerivedFromVars(ot.json.placeholder_color)),K(),K=p(u,(t=>r(56,N=t)))),1&t.$$.dirty[0]&&(r(19,d=ot.getDerivedFromVars(ot.json.scale)),G(),G=p(d,(t=>r(55,T=t)))),1&t.$$.dirty[0]&&(r(18,h=ot.getDerivedFromVars({content_alignment_horizontal:ot.json.content_alignment_horizontal,content_alignment_vertical:ot.json.content_alignment_vertical})),X(),X=p(h,(t=>r(54,F=t)))),1&t.$$.dirty[0]&&(r(17,g=ot.getDerivedFromVars(ot.json.accessibility)),Y(),Y=p(g,(t=>r(53,V=t)))),1&t.$$.dirty[0]&&(r(16,m=ot.getDerivedFromVars(ot.json.aspect)),J(),J=p(m,(t=>r(52,S=t)))),1&t.$$.dirty[0]&&(r(15,v=ot.getDerivedFromVars(ot.json.tint_color)),q(),q=p(v,(t=>r(51,O=t)))),1&t.$$.dirty[0]&&(r(14,y=ot.getDerivedFromVars(ot.json.tint_mode)),H(),H=p(y,(t=>r(50,D=t)))),1&t.$$.dirty[0]&&(r(13,$=ot.getDerivedFromVars(ot.json.appearance_animation)),W(),W=p($,(t=>r(49,P=t)))),1&t.$$.dirty[0]&&(r(12,b=ot.getDerivedFromVars(ot.json.filters)),L(),L=p(b,(t=>r(47,j=t)))),1&t.$$.dirty[0]&&(r(11,_=ot.getDerivedFromVars(ot.json.preload_required)),rt(),rt=p(_,(t=>r(26,U=t)))),1073741825&t.$$.dirty[0]|1610612736&t.$$.dirty[1]){let t="gif"===ot.json.type?B:R;r(30,ht="empty://"===t),ht&&(t=Jr),r(4,ct=t)}var e,n,f;if(16&t.$$.dirty[0]&&r(3,ft=0),17&t.$$.dirty[0]&&(ct?r(7,vt=!1):(r(7,vt=!0),ot.logError(oe(new Error('Missing "'.concat("gif"===ot.json.type?"gif_url":"image_url",'" for "').concat(ot.json.type,'"')))))),268435456&t.$$.dirty[1]&&r(45,w="wrap_content"===(null===(e=z)||void 0===e?void 0:e.type)),134217728&t.$$.dirty[1]&&r(44,x="wrap_content"===(null===(n=I)||void 0===n?void 0:n.type)),1073741832&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(32,yt=(0===ft||ft===Yr||ht)&&M?'url("'.concat(Rr(M),'")'):""),1073741832&t.$$.dirty[0]|33554433&t.$$.dirty[1]&&r(31,mt=0===ft||ft===Yr||ht?de(N,1,mt):""),16777220&t.$$.dirty[1]&&r(33,$t=ye(T)||$t),8388608&t.$$.dirty[1]&&r(34,bt=function(t,e,n){let r=t.content_alignment_horizontal;const o=t.content_alignment_vertical;return"start"===r?r="ltr"===e?"left":"right":"end"===r&&(r="ltr"===e?"right":"left"),r&&"left"!==r&&"center"!==r&&"right"!==r||o&&"top"!==o&&"center"!==o&&"bottom"!==o?n:$e({content_alignment_horizontal:r,content_alignment_vertical:o})}(F,A,bt)),4194304&t.$$.dirty[1]&&r(10,k=(null===(f=V)||void 0===f?void 0:f.description)||""),2097152&t.$$.dirty[1]){var it;const t=null===(it=S)||void 0===it?void 0:it.ratio;t&&Ze(t)?r(5,_t=(100/Number(t)).toFixed(2)):r(5,_t="0")}if(1572912&t.$$.dirty[1]){const t=O?de(O):void 0,e=Nn(D,wt);t===dt&&e===wt||(at.removeSvgFilter(dt,wt),r(6,xt=t?at.addSvgFilter(t,e):""),r(35,dt=t),r(36,wt=e))}if(262144&t.$$.dirty[1]&&P&&"fade"===P.type){const t=P;r(37,kt=Te(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(40,jt=we(t.duration,300)),r(39,Et=we(t.start_delay,0)),r(38,Ct=we(t.alpha,0))}if(1&t.$$.dirty[0]|196608&t.$$.dirty[1]){let t="",e="";Array.isArray(j)&&j.length&&(t=Qe(j,ot.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(41,At=t),r(42,Pt=e),r(43,Dt="rtl"===A&&Array.isArray(j)&&j.some((t=>"rtl_mirror"===t.type)))}40&t.$$.dirty[0]|28736&t.$$.dirty[1]&&r(9,C={aspect:"0"!==_t,"is-width-content":w,"is-height-content":x,loaded:1===ft,"before-appearance":Boolean(kt)&&0===ft,"is-rtl-mirror":Dt}),72&t.$$.dirty[0]|4047&t.$$.dirty[1]&&r(8,E={"background-image":yt,"background-color":yt?void 0:mt,"background-size":$t,"clip-path":Pt||void 0,"object-fit":$t,"object-position":bt,filter:[1===ft&&xt?"url(#".concat(xt,")"):"",At].filter(Boolean).join(" "),"--divkit-appearance-interpolator":kt||void 0,"--divkit-appearance-fade-start":kt?Ct:void 0,"--divkit-appearance-delay":kt?"".concat(Et,"ms"):void 0,"--divkit-appearance-duration":kt?"".concat(jt,"ms"):void 0})},[ot,it,lt,ft,ct,_t,xt,vt,E,C,k,_,b,$,y,v,m,g,h,d,u,c,l,s,a,i,U,st,function(){0===ft&&r(3,ft=1)},function(){0===ft&&r(3,ft=Yr)},ht,mt,yt,$t,bt,dt,wt,kt,Ct,Et,jt,At,Pt,Dt,x,w,o,j,A,P,D,O,S,V,F,T,N,M,I,z,R,B,function(t){gt[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))},function(t){gt[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))}]}const Gr=class extends Zt{constructor(t){super(),Gt(this,t,Xr,qr,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Kr={grid:"divkit-d9080",grid_halign_start:"divkit-fc24d",grid_halign_center:"divkit-a14a6",grid_halign_end:"divkit-cfd04",grid_valign_start:"divkit-c3106",grid_valign_center:"divkit-d4310",grid_valign_end:"divkit-fa9cf"};function Zr(t){return t>0&&t<1}function Qr(t){return String(Math.ceil(1e3*t)/1e3)}function to(t,e,n){if(t.some(Zr)){const e=Math.max(...t.filter(Zr).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,o=0;const i=[];if(t.every(Boolean)){o=t.reduce(((t,e)=>t+e),0);for(let i=0;i<n;++i){if(!e[i])continue;const n=e[i]/t[i]*o;n>r&&(r=n)}}for(let e=0;e<n;++e)r?i[e]="minmax(".concat(le(r*t[e]/o),",").concat(Qr(t[e]),"fr)"):t[e]?i[e]="".concat(Qr(t[e]),"fr"):i[e]="auto";return i.join(" ")}function eo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function no(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?eo(Object(n),!0).forEach((function(e){ro(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ro(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oo(t,e,n){const r=t.slice();return r[31]=e[n],r}function io(t){let e,n;return e=new xn({props:{cls:Ee("grid",Kr,t[7]),componentContext:t[0],style:t[6],layoutParams:t[1],parentOf:t[2].map(co),replaceItems:t[12],$$slots:{default:[so]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.cls=Ee("grid",Kr,t[7])),1&n[0]&&(r.componentContext=t[0]),64&n[0]&&(r.style=t[6]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(co)),16&n[0]|8&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function ao(t){let e,n;return e=new Ws({props:{componentContext:t[31].componentContext,layoutParams:t[31].layoutParams}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.componentContext=t[31].componentContext),16&n[0]&&(r.layoutParams=t[31].layoutParams),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function so(t){let e,n,r=zt(t[4]),o=[];for(let e=0;e<r.length;e+=1)o[e]=ao(oo(t,r,e));const i=t=>Tt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=U()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(16&n[0]){let a;for(r=zt(t[4]),a=0;a<r.length;a+=1){const i=oo(t,r,a);o[a]?(o[a].p(i,n),Ft(o[a],1)):(o[a]=ao(i),o[a].c(),Ft(o[a],1),o[a].m(e.parentNode,e))}for(St(),a=r.length;a<o.length;a+=1)i(a);Vt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ft(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Tt(o[t]);n=!1},d(t){t&&N(e),M(o,t)}}}function lo(t){let e,n,r=!t[5]&&io(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[5]?r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt()):r?(r.p(t,n),32&n[0]&&Ft(r,1)):(r=io(t),r.c(),Ft(r,1),r.m(e.parentNode,e))},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}const co=t=>t.json;function uo(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b=n,_=n,w=n,x=n;t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{componentContext:k}=e,{layoutParams:C}=e;const E=pt(re).direction;f(t,E,(t=>r(24,g=t)));let j,A,P=1,D=[],O=[],S=[],V=[],F=0,T=!1,N="start",M="start";return t.$$set=t=>{"componentContext"in t&&r(0,k=t.componentContext),"layoutParams"in t&&r(1,C=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(23,o=k.origJson),8388608&t.$$.dirty[0]&&o&&(r(13,P=1),r(20,N="start"),r(21,M="start")),1&t.$$.dirty[0]&&r(22,i=Array.isArray(k.json.items)&&k.json.items||[]),1&t.$$.dirty[0]&&(r(10,a=k.getDerivedFromVars(k.json.column_count)),x(),x=p(a,(t=>r(28,$=t)))),1&t.$$.dirty[0]&&(r(9,s=k.getDerivedFromVars(k.json.content_alignment_vertical)),_(),_=p(s,(t=>r(26,v=t)))),1&t.$$.dirty[0]&&(r(8,l=k.getDerivedFromVars(k.json.content_alignment_horizontal)),b(),b=p(l,(t=>r(25,m=t)))),268443648&t.$$.dirty[0]&&r(13,P=Cn($,P)),4194305&t.$$.dirty[0]&&r(2,c=i.map(((t,e)=>k.produceChildContext(t,{path:e})))),5&t.$$.dirty[0]){let t=[];c.forEach((e=>{t.push(k.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(3,j=ee(t,(t=>[...t]))),w(),w=p(j,(t=>r(27,y=t)))}if(134471685&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,D=[]),r(15,O=[]),r(16,S=[]),r(17,V=[]),r(19,T=!1),r(4,A=c.map(((o,i)=>{var a,s,l,c;const u=y[i],d=Number(u.columnSpan)||1,p=Number(u.rowSpan)||1,f={x:e,y:n,colSpan:d,rowSpan:p},h="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,g="match_parent"===(null===(s=u.height)||void 0===s?void 0:s.type)?Number(u.height.weight||1)/p:0,m=1===d&&"fixed"===(null===(l=u.width)||void 0===l?void 0:l.type)&&u.width.value?Number(u.width.value)/d:0,v=1===p&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/p:0;for(let o=e;o<e+d;++o)for(let e=n;e<n+p;++e)t[o+"_"+e]?(r(19,T=!0),k.logError(oe(new Error("No space for item at index ".concat(i))))):(t[o+"_"+e]=!0,(!D[o]||D[o]<h)&&r(14,D[o]=h,D),(!O[e]||O[e]<g)&&r(15,O[e]=g,O),(!S[o]||S[o]<m)&&r(16,S[o]=m,S),(!V[e]||V[e]<v)&&r(17,V[e]=v,V));do{++e,e>=P&&(e=0,++n)}while(t[e+"_"+n]);return{componentContext:o,layoutParams:{gridArea:f}}}))),r(18,F=n)}68157440&t.$$.dirty[0]&&r(20,N=Fn(v,N)),52428800&t.$$.dirty[0]&&r(21,M=Vn(m,g,M)),3145728&t.$$.dirty[0]&&r(7,u={valign:N,halign:M}),516096&t.$$.dirty[0]&&r(6,d={"grid-template-columns":to(D,S,P),"grid-template-rows":to(O,V,F)}),524288&t.$$.dirty[0]&&r(5,h=T)},[k,C,c,j,A,h,d,u,l,s,a,E,function(t){r(0,k=no(no({},k),{},{json:no(no({},k.json),{},{items:t.filter(he)})}))},P,D,O,S,V,F,T,N,M,i,o,g,m,v,y,$]}const po={gallery:"divkit-cbb0f",gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},fo={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function ho(t){const e=[];let n=t[0],r=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[o],r=1):r++;return e.join(" ")}function go(t,e){let n=t%e;return n<0&&(n+=e),n}function mo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mo(Object(n),!0).forEach((function(e){yo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yo(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const{Boolean:$o}=A;function bo(t,e,n){const r=t.slice();return r[78]=e[n],r[79]=e,r[80]=n,r}function _o(t,e,n){const r=t.slice();return r[81]=e[n],r}function wo(t){let e,n;return e=new Ws({props:{componentContext:t[81],layoutParams:t[6]}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.componentContext=t[81]),64&n[0]&&(r.layoutParams=t[6]),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function xo(t){let e,n,r,o,i,a=t[80],s=zt(t[78]),l=[];for(let e=0;e<s.length;e+=1)l[e]=wo(_o(t,s,e));const c=t=>Tt(l[t],1,1,(()=>{l[t]=null})),u=()=>t[64](e,a),d=()=>t[64](null,a);return{c(){e=I("div");for(let t=0;t<l.length;t+=1)l[t].c();n=B(),W(e,"class",r=po.gallery__items),W(e,"style",o=se(t[14]))},m(t,r){T(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);S(e,n),u(),i=!0},p(r,p){if(t=r,65600&p[0]){let r;for(s=zt(t[78]),r=0;r<s.length;r+=1){const o=_o(t,s,r);l[r]?(l[r].p(o,p),Ft(l[r],1)):(l[r]=wo(o),l[r].c(),Ft(l[r],1),l[r].m(e,n))}for(St(),r=s.length;r<l.length;r+=1)c(r);Vt()}(!i||16384&p[0]&&o!==(o=se(t[14])))&&W(e,"style",o),a!==t[80]&&(d(),a=t[80],u())},i(t){if(!i){for(let t=0;t<s.length;t+=1)Ft(l[t]);i=!0}},o(t){l=l.filter($o);for(let t=0;t<l.length;t+=1)Tt(l[t]);i=!1},d(t){t&&N(e),M(l,t),d()}}}function ko(t){let e,n,r=t[10]&&t[7]&&Co(t),o=t[11]&&t[7]&&Eo(t);return{c(){r&&r.c(),e=B(),o&&o.c(),n=U()},m(t,i){r&&r.m(t,i),T(t,e,i),o&&o.m(t,i),T(t,n,i)},p(t,i){t[10]&&t[7]?r?r.p(t,i):(r=Co(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]&&t[7]?o?o.p(t,i):(o=Eo(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){t&&(N(e),N(n)),r&&r.d(t),o&&o.d(t)}}}function Co(t){let e,r,o,i,a=!t[29]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=po["gallery__arrow-icon-path"]),W(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),W(e,"class",o=fo.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){T(t,e,r),S(e,n)},d(t){t&&N(e)}}}();return{c(){e=I("div"),a&&a.c(),W(e,"class",r=t[29]||"".concat(po.gallery__arrow," ").concat(fo.arrow," ").concat(fo.arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),o||(i=L(e,"click",t[67]),o=!0)},p:n,d(t){t&&N(e),a&&a.d(),o=!1,i()}}}function Eo(t){let e,r,o,i,a=!t[30]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=po["gallery__arrow-icon-path"]),W(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),W(e,"class",o=fo.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){T(t,e,r),S(e,n)},d(t){t&&N(e)}}}();return{c(){e=I("div"),a&&a.c(),W(e,"class",r=t[30]||"".concat(po.gallery__arrow," ").concat(fo.arrow," ").concat(fo.arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),o||(i=L(e,"click",t[68]),o=!0)},p:n,d(t){t&&N(e),a&&a.d(),o=!1,i()}}}function jo(t){let e,n,r,o,i,a,s,c,u,d,p,f=zt(t[16]),h=[];for(let e=0;e<f.length;e+=1)h[e]=xo(bo(t,f,e));const g=t=>Tt(h[t],1,1,(()=>{h[t]=null}));let m="horizontal"===t[4]&&ko(t);return{c(){e=I("div"),n=I("div");for(let t=0;t<h.length;t+=1)h[t].c();s=B(),m&&m.c(),c=U(),W(n,"class",r=po["gallery__items-grid"]),W(n,"style",o=se(t[15])),W(e,"class",i=po.gallery__scroller+" "+(t[27]?ne["root_restrict-scroll"]:"")),W(e,"style",a=se(t[5]))},m(r,o){T(r,e,o),S(e,n);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(n,null);t[65](n),t[66](e),T(r,s,o),m&&m.m(r,o),T(r,c,o),u=!0,d||(p=L(e,"scroll",(function(){l(t[7]?t[33]:null)&&(t[7]?t[33]:null).apply(this,arguments)})),d=!0)},p(r,s){if(t=r,82496&s[0]){let e;for(f=zt(t[16]),e=0;e<f.length;e+=1){const r=bo(t,f,e);h[e]?(h[e].p(r,s),Ft(h[e],1)):(h[e]=xo(r),h[e].c(),Ft(h[e],1),h[e].m(n,null))}for(St(),e=f.length;e<h.length;e+=1)g(e);Vt()}(!u||32768&s[0]&&o!==(o=se(t[15])))&&W(n,"style",o),(!u||134217728&s[0]&&i!==(i=po.gallery__scroller+" "+(t[27]?ne["root_restrict-scroll"]:"")))&&W(e,"class",i),(!u||32&s[0]&&a!==(a=se(t[5])))&&W(e,"style",a),"horizontal"===t[4]?m?m.p(t,s):(m=ko(t),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i(t){if(!u){for(let t=0;t<f.length;t+=1)Ft(h[t]);u=!0}},o(t){h=h.filter($o);for(let t=0;t<h.length;t+=1)Tt(h[t]);u=!1},d(n){n&&(N(e),N(s),N(c)),M(h,n),t[65](null),t[66](null),m&&m.d(n),d=!1,p()}}}function Ao(t){let e,n,r,o;return e=new xn({props:{cls:Ee("gallery",po,t[13]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[8],replaceItems:t[31],$$slots:{default:[jo]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(i,a){Yt(e,i,a),n=!0,r||(o=L(window,"resize",(function(){l(t[7]?t[34]:null)&&(t[7]?t[34]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const o={};8192&r[0]&&(o.cls=Ee("gallery",po,t[13])),1&r[0]&&(o.componentContext=t[0]),2&r[0]&&(o.layoutParams=t[1]),256&r[0]&&(o.parentOf=t[8]),134336252&r[0]|4194304&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t),r=!1,o()}}}function Po(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,j,A,P,D,O,S,V,F,T,N,M,I=n,z=n,R=n,B=n,U=n,L=n,W=n,H=n,q=n,J=n,Y=n;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>Y()));let{componentContext:X}=e,{layoutParams:G}=e;const K=pt(re),Z=K.direction;let Q;f(t,Z,(t=>r(52,C=t)));let tt,et=[],nt=!1,rt=!1,ot=null,it=!1;const at=K.getCustomization("galleryLeftClass"),st=K.getCustomization("galleryRightClass");let ct,dt,ft,ht,mt,vt=1,yt="horizontal",$t="start",bt=8,_t="",wt=[],xt={},kt=!1,Ct={},Et=0;const jt=K.isDesktop;function At(){if(!Q)return;let t=Q.scrollLeft;"rtl"===C&&(t*=-1);const e=Q.scrollWidth,n=Q.offsetWidth;"ltr"===C?(r(10,nt=t>2),r(11,rt=t+n<e-2)):(r(11,rt=t>2),r(10,nt=t+n<e-2))}f(t,jt,(t=>r(63,N=t)));const Pt=Mn(At,50);function Dt(t){Q.scroll({left:Q.scrollLeft+.75*Q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Ot(){let t=[],e=et[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<vt;++e){const r=et[e].children[n];r&&t.push(r)}return t}function St(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===yt?"left":"top";Q.scroll({[n]:t,behavior:e})}function Vt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===yt,o=r?"offsetLeft":"offsetTop",i=t[e];if(i){let t;if("ltr"!==C&&r){const e=Q.offsetWidth;t=i[o]+i.offsetWidth+.01-bt/2-e}else t=i[o]+.01-bt/2;St(t,n)}}function Ft(t){const e=Ot(),n=Q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===yt?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const o=e.map((t=>function(t,e){return"horizontal"===yt?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),i=o.findIndex(Boolean);return-1!==i?"prev"===t&&2===o.filter(Boolean).length?i+1:i:"prev"===t?1:e.length-2}return lt((()=>{r(37,it=!0),At(),Et&&Vt(Ot(),Et,"auto")})),ut((()=>{r(37,it=!1),ct&&!X.fakeElement&&(K.unregisterInstance(ct),r(38,ct=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,X=t.componentContext),"layoutParams"in t&&r(1,G=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(51,o=X.origJson),1048576&t.$$.dirty[1]&&o&&(r(39,vt=1),r(4,yt="horizontal"),r(40,$t="start"),r(42,bt=8),r(45,_t="")),1&t.$$.dirty[0]&&r(8,i=Array.isArray(X.json.items)&&X.json.items||[]),1&t.$$.dirty[0]&&(r(26,a=X.getDerivedFromVars(X.json.column_count)),J(),J=p(a,(t=>r(62,T=t)))),1&t.$$.dirty[0]&&(r(25,s=X.getDerivedFromVars(X.json.orientation)),q(),q=p(s,(t=>r(61,F=t)))),1&t.$$.dirty[0]&&(r(24,l=X.getDerivedFromVars(X.json.cross_content_alignment)),H(),H=p(l,(t=>r(60,V=t)))),1&t.$$.dirty[0]&&(r(23,c=X.getDerivedFromVars(X.json.item_spacing)),W(),W=p(c,(t=>r(59,S=t)))),1&t.$$.dirty[0]&&(r(22,u=X.getDerivedFromVars(X.json.cross_spacing)),L(),L=p(u,(t=>r(58,O=t)))),1&t.$$.dirty[0]&&(r(21,d=X.getDerivedFromVars(X.json.paddings)),U(),U=p(d,(t=>r(57,D=t)))),1&t.$$.dirty[0]&&(r(20,h=X.getDerivedFromVars(X.json.scroll_mode)),R(),R=p(h,(t=>r(55,A=t)))),1&t.$$.dirty[0]&&(r(19,g=X.getDerivedFromVars(X.json.restrict_parent_scroll)),Y(),Y=p(g,(t=>r(27,M=t)))),1&t.$$.dirty[0]&&(r(18,m=X.getDerivedFromVars(X.json.scrollbar)),z(),z=p(m,(t=>r(54,j=t)))),1&t.$$.dirty[0]&&(r(17,v=X.getDerivedFromVars(X.json.default_item)),I(),I=p(v,(t=>r(53,E=t)))),257&t.$$.dirty[0]&&r(50,y=i.map(((t,e)=>X.produceChildContext(t,{path:e})))),64&t.$$.dirty[1]|2&t.$$.dirty[2]&&r(7,$=N&&it),136&t.$$.dirty[0]|32&t.$$.dirty[1]&&($?"undefined"!=typeof ResizeObserver&&(r(36,ot=new ResizeObserver((()=>{Pt()}))),ot.observe(tt)):ot&&(ot.disconnect(),r(36,ot=null))),256&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(39,vt=Cn(T,vt)),524544&t.$$.dirty[1]&&r(16,b=function(t,e){let n=0,r=[];for(let o=0;o<t.length;++o)r[n]||(r[n]=[]),r[n].push(t[o]),++n>=e&&(n=0);return r}(y,vt)),16&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(4,yt=Fr(F,yt)),536871424&t.$$.dirty[1]&&r(40,$t=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(V,$t)),268437504&t.$$.dirty[1]&&(r(42,bt=we(S,bt)),r(41,dt=le(bt))),134227968&t.$$.dirty[1]&&(r(44,ht=we(O,bt)),r(43,ft=le(ht))),69222400&t.$$.dirty[1]&&r(45,_t=Oe(D,C,_t)),16&t.$$.dirty[0]&&r(49,_="horizontal"===yt?"grid-template-columns":"grid-template-rows"),17&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];y.forEach((e=>{const n="horizontal"===yt?"width":"height";t.push(X.getDerivedFromVars(e.json[n]))})),r(12,mt=ee(t,(t=>t))),B(),B=p(mt,(t=>r(56,P=t)))}if(16&t.$$.dirty[0]|33587456&t.$$.dirty[1]&&(r(46,wt=[]),vt>1?wt.push("auto"):P.forEach((t=>{!t&&"horizontal"===yt||"match_parent"===(null==t?void 0:t.type)?wt.push("100%"):wt.push("max-content")}))),112&t.$$.dirty[0]|16780032&t.$$.dirty[1]){const t={};let e={};r(47,kt=!1),"horizontal"===yt?e.parentVAlign=$t:e.parentHAlign=$t,"paging"===A&&(r(47,kt=!0),e.scrollSnap="start",t["horizontal"===yt?"scroll-padding-left":"scroll-padding-top"]=le(bt/2)),1===vt&&(e.parentLayoutOrientation=yt),r(5,xt=Fe(t,xt)),r(6,Ct=Fe(e,Ct))}20480&t.$$.dirty[1]&&r(15,w={padding:_t,"grid-gap":ft}),295936&t.$$.dirty[1]&&r(14,x={"grid-gap":dt,[_]:ho(wt)}),16&t.$$.dirty[0]|8454144&t.$$.dirty[1]&&r(13,k={orientation:yt,"scroll-snap":kt,scrollbar:"auto"===j?"auto":"none"}),4325376&t.$$.dirty[1]&&r(48,Et=we(E,Et)),1&t.$$.dirty[0]&&X.json&&Pt(),21&t.$$.dirty[0]|2097280&t.$$.dirty[1]&&X.json&&(ct&&(K.unregisterInstance(ct),r(38,ct=void 0)),X.json.id&&!X.fakeElement&&(r(38,ct=X.json.id),K.registerInstance(ct,{setCurrentItem(t){const e=Ot();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Vt(e,t)},setPreviousItem(t,e){const n=Ft("prev"),r=Ot();let o=n-t;o<0&&(o="ring"===e?go(o,r.length):0),Vt(r,o)},setNextItem(t,e){const n="horizontal"===yt,r="ltr"!==C&&n?-1:1,o=n?Q.scrollLeft*r+Q.offsetWidth===Q.scrollWidth:Q.scrollTop+Q.offsetHeight===Q.scrollHeight,i=Ot();if(o&&"ring"===e)return void Vt(i,0);let a=Ft("next")+t;a>i.length-1&&(a="ring"===e?go(a,i.length):i.length-1),Vt(i,a)},scrollToStart(){St(0)},scrollToEnd(){St("ltr"===C||"horizontal"!==yt?1e6:-1e6)},scrollBackward(t,e){const n="horizontal"===yt,r="ltr"!==C&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r-t;a<0&&("clamp"===e?a=0:"ring"===e&&(a=go(a,i))),St(a*r)},scrollForward(t,e){const n="horizontal"===yt,r="ltr"!==C&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r+t;a>i&&("clamp"===e?a=i:"ring"===e&&(a=go(a,i))),St(a*r)},scrollToPosition(t){St("ltr"===C||"horizontal"!==yt?t:-t)}})))},[X,G,Q,tt,yt,xt,Ct,$,i,et,nt,rt,mt,k,x,w,b,v,m,g,h,d,u,c,l,s,a,M,Z,at,st,function(t){r(0,X=vo(vo({},X),{},{json:vo(vo({},X.json),{},{items:t.filter(he)})}))},jt,At,Pt,Dt,ot,it,ct,vt,$t,dt,bt,ft,ht,_t,wt,kt,Et,_,y,o,C,E,j,A,P,D,O,S,V,F,T,N,function(t,e){gt[t?"unshift":"push"]((()=>{et[e]=t,r(9,et)}))},function(t){gt[t?"unshift":"push"]((()=>{tt=t,r(3,tt)}))},function(t){gt[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},()=>Dt("left"),()=>Dt("right")]}const Do={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306","tabs_height-parent_yes":"divkit-ae594",tabs__separator:"divkit-b85bf"};function Oo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function So(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oo(Object(n),!0).forEach((function(e){Vo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vo(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const{Boolean:Fo}=A;function To(t,e,n){const r=t.slice();r[91]=e[n];const o=r[91].index;r[92]=o;const i=r[29][r[92]];return r[93]=i,r}function No(t,e,n){const r=t.slice();r[91]=e[n];const o=r[91].index;r[92]=o;const i=r[92]===r[15];return r[96]=i,r}function Mo(t){let e,n;return e=new xn({props:{cls:Ee("tabs",Do,t[22]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[42],parentOfSimpleMode:!0,replaceItems:t[47],$$slots:{default:[Lo]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};4194304&n[0]&&(r.cls=Ee("tabs",Do,t[22])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2048&n[1]&&(r.parentOf=t[42]),2143289337&n[0]|4099&n[1]|64&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Io(t){let e,n=t[91].title+"";return{c(){e=R(n)},m(t,n){T(t,e,n)},p(t,r){65536&r[0]&&n!==(n=t[91].title+"")&&X(e,n)},d(t){t&&N(e)}}}function zo(t){let e,n;function r(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[67](t[92],...n)}return e=new Ge({props:{componentContext:t[0],cls:Ee("tabs__item",Do,{selected:t[96],actionable:Boolean(t[91].title_click_action)}),actions:t[91].title_click_action&&!t[0].fakeElement?[t[91].title_click_action].filter(Re):[],attrs:{id:"".concat(t[45],"-tab-").concat(t[92]),"aria-controls":"".concat(t[45],"-panel-").concat(t[92]),role:"tab",tabindex:t[96]&&!t[0].fakeElement?t[91].title_click_action?void 0:"0":"-1","aria-selected":t[96]?"true":"false"},customAction:t[0].fakeElement?null:r,$$slots:{default:[Io]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(n,o){t=n;const i={};1&o[0]&&(i.componentContext=t[0]),98304&o[0]&&(i.cls=Ee("tabs__item",Do,{selected:t[96],actionable:Boolean(t[91].title_click_action)})),65537&o[0]&&(i.actions=t[91].title_click_action&&!t[0].fakeElement?[t[91].title_click_action].filter(Re):[]),98305&o[0]&&(i.attrs={id:"".concat(t[45],"-tab-").concat(t[92]),"aria-controls":"".concat(t[45],"-panel-").concat(t[92]),role:"tab",tabindex:t[96]&&!t[0].fakeElement?t[91].title_click_action?void 0:"0":"-1","aria-selected":t[96]?"true":"false"}),65537&o[0]&&(i.customAction=t[0].fakeElement?null:r),65536&o[0]|64&o[3]&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Ro(t){let e,n,r;return{c(){e=I("div"),W(e,"class",n=Do.tabs__separator),W(e,"style",r=se(t[32]))},m(t,n){T(t,e,n)},p(t,n){2&n[1]&&r!==(r=se(t[32]))&&W(e,"style",r)},d(t){t&&N(e)}}}function Bo(t){let e,n;return e=new Ws({props:{componentContext:t[93],layoutParams:t[3]}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};536936448&n[0]&&(r.componentContext=t[93]),8&n[0]&&(r.layoutParams=t[3]),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Uo(t){let e,n,r,o,i,a,s=t[93]&&Bo(t);return{c(){e=I("div"),s&&s.c(),n=B(),W(e,"class",r=Ee("tabs__panel",Do,{visible:t[30][t[92]]})),W(e,"role","tabpanel"),W(e,"id",o=t[45]+"-panel-"+t[92]),W(e,"aria-labelledby",i=t[45]+"-tab-"+t[92]),K(e,"left",100*t[92]+"%")},m(t,r){T(t,e,r),s&&s.m(e,null),S(e,n),a=!0},p(t,l){t[93]?s?(s.p(t,l),536936448&l[0]&&Ft(s,1)):(s=Bo(t),s.c(),Ft(s,1),s.m(e,n)):s&&(St(),Tt(s,1,1,(()=>{s=null})),Vt()),(!a||1073807360&l[0]&&r!==(r=Ee("tabs__panel",Do,{visible:t[30][t[92]]})))&&W(e,"class",r),(!a||65536&l[0]&&o!==(o=t[45]+"-panel-"+t[92]))&&W(e,"id",o),(!a||65536&l[0]&&i!==(i=t[45]+"-tab-"+t[92]))&&W(e,"aria-labelledby",i),(!a||65536&l[0])&&K(e,"left",100*t[92]+"%")},i(t){a||(Ft(s),a=!0)},o(t){Tt(s),a=!1},d(t){t&&N(e),s&&s.d()}}}function Lo(t){let e,n,r,o,i,a,c,u,d,p,f,h=zt(t[16]),g=[];for(let e=0;e<h.length;e+=1)g[e]=zo(No(t,h,e));const m=t=>Tt(g[t],1,1,(()=>{g[t]=null}));let v=t[18]&&Ro(t),y=zt(t[16]),$=[];for(let e=0;e<y.length;e+=1)$[e]=Uo(To(t,y,e));const b=t=>Tt($[t],1,1,(()=>{$[t]=null}));return{c(){e=I("div");for(let t=0;t<g.length;t+=1)g[t].c();r=B(),v&&v.c(),o=B(),i=I("div"),a=I("div");for(let t=0;t<$.length;t+=1)$[t].c();W(e,"class",n=Do.tabs__list+" "+(t[43]?ne["root_restrict-scroll"]:"")),W(e,"role","tablist"),K(e,"--divkit-tabs-title-padding",t[14]?Ae(t[14],t[17]):""),K(e,"--divkit-tabs-font-size",le(t[4])),K(e,"--divkit-tabs-paddings",t[5]),K(e,"--divkit-tabs-line-height",t[23]),K(e,"--divkit-tabs-letter-spacing",t[24]),K(e,"--divkit-tabs-active-font-weight",t[7]||""),K(e,"--divkit-tabs-inactive-font-weight",t[8]||""),K(e,"--divkit-tabs-active-font-family",t[25]||""),K(e,"--divkit-tabs-inactive-font-family",t[26]||""),K(e,"--divkit-tabs-active-text-color",t[9]),K(e,"--divkit-tabs-inactive-text-color",t[10]),K(e,"--divkit-tabs-active-background-color",t[11]),K(e,"--divkit-tabs-inactive-background-color",t[12]),K(e,"--divkit-tabs-border-radius",t[6]),K(e,"--divkit-tabs-items-spacing",t[13]?ce(10*t[13]/t[4]):""),W(a,"class",c=Ee("tabs__swiper",Do,{inited:t[27],animated:t[28]})),W(i,"class",u=Do.tabs__panels+" "+(t[43]?ne["root_restrict-scroll"]:""))},m(n,s){T(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[68](e),T(n,r,s),v&&v.m(n,s),T(n,o,s),T(n,i,s),S(i,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[69](a),t[70](i),d=!0,p||(f=[L(e,"keydown",t[49]),L(i,"touchstart",(function(){l(t[31]?t[50]:void 0)&&(t[31]?t[50]:void 0).apply(this,arguments)})),L(i,"touchmove",(function(){l(t[31]?t[51]:void 0)&&(t[31]?t[51]:void 0).apply(this,arguments)})),L(i,"touchend",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)})),L(i,"touchcancel",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)}))],p=!0)},p(r,s){if(t=r,98305&s[0]|147456&s[1]){let n;for(h=zt(t[16]),n=0;n<h.length;n+=1){const r=No(t,h,n);g[n]?(g[n].p(r,s),Ft(g[n],1)):(g[n]=zo(r),g[n].c(),Ft(g[n],1),g[n].m(e,null))}for(St(),n=h.length;n<g.length;n+=1)m(n);Vt()}if((!d||4096&s[1]&&n!==(n=Do.tabs__list+" "+(t[43]?ne["root_restrict-scroll"]:"")))&&W(e,"class",n),147456&s[0]&&K(e,"--divkit-tabs-title-padding",t[14]?Ae(t[14],t[17]):""),16&s[0]&&K(e,"--divkit-tabs-font-size",le(t[4])),32&s[0]&&K(e,"--divkit-tabs-paddings",t[5]),8388608&s[0]&&K(e,"--divkit-tabs-line-height",t[23]),16777216&s[0]&&K(e,"--divkit-tabs-letter-spacing",t[24]),128&s[0]&&K(e,"--divkit-tabs-active-font-weight",t[7]||""),256&s[0]&&K(e,"--divkit-tabs-inactive-font-weight",t[8]||""),33554432&s[0]&&K(e,"--divkit-tabs-active-font-family",t[25]||""),67108864&s[0]&&K(e,"--divkit-tabs-inactive-font-family",t[26]||""),512&s[0]&&K(e,"--divkit-tabs-active-text-color",t[9]),1024&s[0]&&K(e,"--divkit-tabs-inactive-text-color",t[10]),2048&s[0]&&K(e,"--divkit-tabs-active-background-color",t[11]),4096&s[0]&&K(e,"--divkit-tabs-inactive-background-color",t[12]),64&s[0]&&K(e,"--divkit-tabs-border-radius",t[6]),8208&s[0]&&K(e,"--divkit-tabs-items-spacing",t[13]?ce(10*t[13]/t[4]):""),t[18]?v?v.p(t,s):(v=Ro(t),v.c(),v.m(o.parentNode,o)):v&&(v.d(1),v=null),1610678280&s[0]|16384&s[1]){let e;for(y=zt(t[16]),e=0;e<y.length;e+=1){const n=To(t,y,e);$[e]?($[e].p(n,s),Ft($[e],1)):($[e]=Uo(n),$[e].c(),Ft($[e],1),$[e].m(a,null))}for(St(),e=y.length;e<$.length;e+=1)b(e);Vt()}(!d||402653184&s[0]&&c!==(c=Ee("tabs__swiper",Do,{inited:t[27],animated:t[28]})))&&W(a,"class",c),(!d||4096&s[1]&&u!==(u=Do.tabs__panels+" "+(t[43]?ne["root_restrict-scroll"]:"")))&&W(i,"class",u)},i(t){if(!d){for(let t=0;t<h.length;t+=1)Ft(g[t]);for(let t=0;t<y.length;t+=1)Ft($[t]);d=!0}},o(t){g=g.filter(Fo);for(let t=0;t<g.length;t+=1)Tt(g[t]);$=$.filter(Fo);for(let t=0;t<$.length;t+=1)Tt($[t]);d=!1},d(n){n&&(N(e),N(r),N(o),N(i)),M(g,n),t[68](null),v&&v.d(n),M($,n),t[69](null),t[70](null),p=!1,s(f)}}}function Wo(t){let e,n,r=!t[2]&&Mo(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[2]?r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt()):r?(r.p(t,n),4&n[0]&&Ft(r,1)):(r=Mo(t),r.c(),Ft(r,1),r.m(e.parentNode,e))},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}function Ho(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,j,A,P,D,O,S,V,F=n,T=n,N=n,M=n,I=n,z=n,R=n,B=n,U=n;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>U()));let{componentContext:L}=e,{layoutParams:W}=e;const H=pt(re),q=H.direction;f(t,q,(t=>r(17,j=t)));const J=H.genId("tabs");let Y,X=!1,G=te([]);f(t,G,(t=>r(16,k=t)));let K,Z,Q,tt,et,nt,rt,ot,it,at={},st={},lt=12,ct="",dt="",ft="",ht="",mt="",vt="",yt="",$t="",bt="",wt="",xt=0,kt="",Ct="",Et=null,jt=!1,At=!1,Pt=[],Dt=[],Ot=null,St=null,Vt=null,Ft=!1,Tt=!1;async function Nt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(nt=$,r(15,$=t),Ut(),r(28,At=!0),zt(100*-$),Rt(),async function(){var t;if("match_parent"===(null===(t=x)||void 0===t?void 0:t.type))return;await _t();const e=document.getElementById("".concat(J,"-panel-").concat($));e&&r(20,Z.style.height=le(e.offsetHeight),Z)}(),Bt(),it=-$*Z.clientWidth,e){await _t();const t=K.querySelector(".".concat(Do.tabs__item_selected));t&&t.focus()}}function Mt(t){var e;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=null===(e=k)||void 0===e?void 0:e.length;if(!r)return;const o=k.map((t=>t.index));let i=o.indexOf($)+t;i>=r?i=0:i<0&&(i=r-1),Nt(o[i],n)}function It(t,e){return $===e||(Nt(e),!1)}async function zt(t){await _t(),r(21,Q.style.transform="translate3d(".concat(t,"%,0,0)"),Q)}function Rt(){var t,e;let n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const o=n?Math.max(0,$-1):Math.min($,null!==(t=nt)&&void 0!==t?t:$),a=n?Math.min(i.length-1,$+1):Math.max($,null!==(e=nt)&&void 0!==e?e:$);r(29,Pt=Pt.map(((t,e)=>{var n;return t||(e>=o&&e<=a&&null!==(n=i[e])&&void 0!==n&&n.div?L.produceChildContext(i[e].div,{path:e}):void 0)}))),r(30,Dt=Dt.map(((t,e)=>e>=o&&e<=a)))}function Bt(){Ot&&clearTimeout(Ot),Ot=window.setTimeout((()=>{r(30,Dt=i.map(((t,e)=>e===$)))}),400)}function Ut(){var t;jt||(r(27,jt=!0),r(20,Z.style.height=le(Z.clientHeight),Z),r(21,Q.style.transform="translate3d(".concat(100*-(null!==(t=nt)&&void 0!==t?t:$),"%,0,0)"),Q))}return ut((()=>{Y&&(H.unregisterInstance(Y),r(53,Y=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,L=t.componentContext),"layoutParams"in t&&r(1,W=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(59,o=L.origJson),268435456&t.$$.dirty[1]&&o&&(r(4,lt=12),r(5,ct=""),r(6,ht=""),r(7,tt=void 0),r(25,mt=""),r(8,et=void 0),r(26,vt=""),r(9,yt=""),r(10,$t=""),r(11,bt=""),r(12,wt=""),r(13,xt=0),r(54,kt=""),r(55,Ct=""),r(14,Et=null)),1&t.$$.dirty[0]&&r(56,i=Array.isArray(L.json.items)&&L.json.items||[]),33554432&t.$$.dirty[1]&&r(42,a=i.map((t=>t.div))),1&t.$$.dirty[0]&&(r(41,s=L.getDerivedFromVars(L.json.width)),B(),B=p(s,(t=>r(66,S=t)))),1&t.$$.dirty[0]&&(r(40,l=L.getDerivedFromVars(L.json.height)),F(),F=p(l,(t=>r(60,x=t)))),1&t.$$.dirty[0]&&r(58,c=L.getJsonWithVars(L.json.selected_tab)),1&t.$$.dirty[0]&&(r(39,u=L.getDerivedFromVars(L.json.tab_title_style)),R(),R=p(u,(t=>r(65,O=t)))),1&t.$$.dirty[0]&&(r(38,d=L.getDerivedFromVars(L.json.has_separator)),z(),z=p(d,(t=>r(18,D=t)))),1&t.$$.dirty[0]&&(r(37,h=L.getDerivedFromVars(L.json.separator_color)),I(),I=p(h,(t=>r(64,P=t)))),1&t.$$.dirty[0]&&(r(36,g=L.getDerivedFromVars(L.json.separator_paddings)),M(),M=p(g,(t=>r(63,A=t)))),1&t.$$.dirty[0]&&(r(35,m=L.getDerivedFromVars(L.json.switch_tabs_by_content_swipe_enabled)),N(),N=p(m,(t=>r(62,E=t)))),1&t.$$.dirty[0]&&(r(34,v=L.getDerivedFromVars(L.json.restrict_parent_scroll)),U(),U=p(v,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(33,y=L.getDerivedFromVars(L.json.title_paddings)),T(),T=p(y,(t=>r(61,C=t)))),134217728&t.$$.dirty[1]&&r(15,$=c&&Number(c)||0),1&t.$$.dirty[0]|33554432&t.$$.dirty[1])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=L.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):L.logError(oe(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),G.set(t)}else G.set([]);var e,n,f;if(65537&t.$$.dirty[0]&&(null!==(e=k)&&void 0!==e&&e.length?r(2,X=!1):(r(2,X=!0),L.logError(oe(new Error('Incorrect or empty "items" prop for div "tabs"'))))),8&t.$$.dirty[0]|536870912&t.$$.dirty[1]|16&t.$$.dirty[2]){var W;let t={parentContainerOrientation:"horizontal"};"wrap_content"===(null===(W=S)||void 0===W?void 0:W.type)&&(t.parentHorizontalWrapContent=!0),x&&"wrap_content"!==x.type||(t.parentVerticalWrapContent=!0),r(3,at=Fe(t,at))}if(32773&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&!X&&($<0||$>=i.length)&&(L.logError(oe(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:L.json.selected_tab,length:i.length}})),r(15,$=$<0?0:i.length-1)),98309&t.$$.dirty[0]&&(X||k.some((t=>$===t.index))||(L.logError(oe(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:L.json.selected_tab}})),r(15,$=(null===(n=k[0])||void 0===n?void 0:n.index)||0))),8&t.$$.dirty[2]&&r(57,b=O||{}),16&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(4,lt=Cn(b.font_size,lt)),131120&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&(b.font_size||b.paddings)){const t=b.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/lt*10,right:(Number("ltr"===j?t.end:t.start)||Number(t.right)||0)/lt*10,bottom:(Number(t.bottom)||0)/lt*10,left:(Number("ltr"===j?t.start:t.end)||Number(t.left)||0)/lt*10};r(5,ct=Oe(e,j,ct))}if(16&t.$$.dirty[0]|67108864&t.$$.dirty[1]){const t=b.line_height;void 0!==t&&Ze(t)&&r(23,dt=le(t/lt*10))}if(16&t.$$.dirty[0]|67108864&t.$$.dirty[1]){const t=b.letter_spacing;void 0!==t&&De(t)&&r(24,ft=le(t/lt*10))}if(80&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&(b.corner_radius||b.corners_radius||b.font_size)){var q;const t=null!==(q=b.corner_radius)&&void 0!==q?q:1e3;b.corners_radius?r(6,ht=function(t,e,n,r){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<o.length;++t)if(o[t]&&!De(o[t]))return r;return ze(t,e,n)}(b.corners_radius,t,lt,ht)):De(t)&&r(6,ht=le(t/lt*10))}128&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&(r(7,tt=jn(b.active_font_weight||b.font_weight,tt)),b.font_family&&"string"==typeof b.font_family?r(25,mt=H.typefaceProvider(b.font_family,{fontWeight:tt||400})):r(25,mt="")),256&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&(r(8,et=jn(b.inactive_font_weight||b.font_weight,et)),b.font_family&&"string"==typeof b.font_family?r(26,vt=H.typefaceProvider(b.font_family,{fontWeight:et||400})):r(26,vt="")),512&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(9,yt=de(b.active_text_color,1,yt)),1024&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(10,$t=de(b.inactive_text_color,1,$t)),2048&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(11,bt=de(b.active_background_color,1,bt)),4096&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(12,wt=de(b.inactive_background_color,1,wt)),8192&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(13,xt=we(b.item_spacing,xt)),393216&t.$$.dirty[0]|25165824&t.$$.dirty[1]|6&t.$$.dirty[2]&&D&&(P&&r(54,kt=de(P,1,kt)),A&&r(55,Ct=Oe(A,j,Ct))),25165824&t.$$.dirty[1]&&r(32,_={background:kt,margin:Ct}),1&t.$$.dirty[2]&&r(31,w=void 0===E||Boolean(E)),16384&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(14,Et=Ie(C||void 0,Et)),33554432&t.$$.dirty[1]&&function(t){X||(r(29,Pt=t.map(((t,e)=>{if(e===$&&null!=t&&t.div)return L.produceChildContext(t.div,{path:e})}))),r(30,Dt=t.map(((t,e)=>e===$))))}(i),32773&t.$$.dirty[0]|37748736&t.$$.dirty[1]&&L.json&&(Y&&(H.unregisterInstance(Y),r(53,Y=void 0)),!L.json.id||X||L.fakeElement||(r(53,Y=L.json.id),H.registerInstance(Y,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Nt(t)},setPreviousItem(t,e){let n=$-t;n<0&&(n="ring"===e?go(n,i.length):0),Nt(n)},setNextItem(t,e){let n=$+t;n>i.length-1&&(n="ring"===e?go(n,i.length):i.length-1),Nt(n)},scrollToStart(){Nt(0)},scrollToEnd(){Nt(i.length-1)}}))),536870912&t.$$.dirty[1]&&r(22,st={"height-parent":"match_parent"===(null===(f=x)||void 0===f?void 0:f.type)?"yes":""})},[L,W,X,at,lt,ct,ht,tt,et,yt,$t,bt,wt,xt,Et,$,k,j,D,K,Z,Q,st,dt,ft,mt,vt,jt,At,Pt,Dt,w,_,y,v,m,g,h,d,u,l,s,a,V,q,J,G,function(t){L.json.items&&r(0,L=So(So({},L),{},{json:So(So({},L.json),{},{items:L.json.items.map(((e,n)=>So(So({},e),{},{div:t[n]})))})}))},It,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(37===t.which)Mt(-1,!0);else if(39===t.which)Mt(1,!0);else if(36===t.which)Nt(0,!0);else{if(35!==t.which)return;Nt(i.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,o=null==n||null===(e=n.closest)||void 0===e?void 0:e.call(n,".".concat(ne["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==Z||(Ft=!1,Tt=!1,St=He(t),Vt=null,rt=Date.now(),ot=it||-$*Z.clientWidth,r(28,At=!1),Ot&&clearTimeout(Ot))},function(t){const e=He(t);if(!St||Vt&&Vt.x===e.x&&Vt.y===e.y)return;Vt=e;const n=Z.clientWidth;if(Ft){it=e.x-St.x+ot;const t=n*i.length;if(it>0)it=it*n/(it+3*n);else if(-it+n>t){let e=-it+n-t;e=e*n/(e+3*n),it=n-t-e}zt(100*it/n)}else Math.abs(e.y-St.y)>10?Tt=!0:!Tt&&Math.abs(e.x-St.x)>8&&(Ut(),Ft=!0,St=e,zt(100*-$),Rt(!0));Ft&&t.cancelable&&t.preventDefault()},function(){Tt=!1,St=null;let t=$;if(!Ft)return;Ft=!1;const e=Math.min(512,Z.clientWidth);Math.abs(ot-it)>e/4*Math.min(1,(Date.now()-rt)/750)&&(t+=ot>it?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===$?(r(28,At=!0),it=-t*e,zt(100*-t),Bt()):Nt(t)},Y,kt,Ct,i,b,c,o,x,C,E,A,P,O,S,(t,e)=>It(0,t),function(t){gt[t?"unshift":"push"]((()=>{K=t,r(19,K)}))},function(t){gt[t?"unshift":"push"]((()=>{Q=t,r(21,Q)}))},function(t){gt[t?"unshift":"push"]((()=>{Z=t,r(20,Z)}))}]}const qo={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Jo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Yo(t){return t*t*t}function Xo(t){const e=t-1;return e*e*e+1}function Go(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),o=n-r;return t[r]*o+t[r+1]*(1-o)}}const Ko=Go([.0021,.0045,.0071,.01,.0131,.0165,.0202,.0242,.0284,.033,.0378,.0429,.0483,.054,.0601,.0664,.0731,.08,.0872,.0948,.1026,.1108,.1192,.1279,.1369,.1461,.1556,.1653,.1753,.1855,.1958,.2064,.2171,.2279,.2389,.25,.2612,.2725,.2839,.2952,.3067,.3181,.3295,.341,.3524,.3637,.375,.3863,.3974,.4085,.4195,.4304,.4412,.4519,.4624,.4729,.4832,.4934,.5034,.5133,.5231,.5327,.5422,.5516,.5608,.5699,.5788,.5876,.5963,.6048,.6132,.6214,.6295,.6375,.6453,.653,.6606,.668,.6754,.6825,.6896,.6965,.7034,.7101,.7166,.7231,.7295,.7357,.7418,.7479,.7538,.7596,.7653,.7709,.7764,.7818,.7871,.7923,.7974,.8024,.8073,.8122,.8169,.8216,.8261,.8306,.835,.8394,.8436,.8478,.8518,.8558,.8598,.8636,.8674,.8711,.8747,.8783,.8818,.8852,.8886,.8919,.8951,.8983,.9014,.9044,.9074,.9103,.9131,.9159,.9187,.9213,.924,.9265,.929,.9315,.9339,.9362,.9385,.9408,.943,.9451,.9472,.9492,.9512,.9532,.9551,.9569,.9587,.9605,.9622,.9638,.9655,.967,.9686,.9701,.9715,.9729,.9743,.9756,.9769,.9782,.9794,.9805,.9817,.9828,.9838,.9848,.9858,.9868,.9877,.9886,.9894,.9902,.991,.9917,.9924,.9931,.9937,.9943,.9949,.9954,.9959,.9964,.9969,.9973,.9977,.998,.9983,.9986,.9989,.9991,.9993,.9995,.9997,.9998,.9999,.9999,1,1]),Zo=Go([5e-4,.002,.0045,.0078,.0119,.0168,.0224,.0286,.0355,.0429,.0508,.0592,.0681,.0774,.087,.0969,.1072,.1177,.1285,.1395,.1507,.1621,.1736,.1853,.197,.2089,.2208,.2328,.2448,.2569,.2689,.281,.293,.305,.317,.3289,.3408,.3526,.3644,.376,.3876,.3991,.4105,.4218,.433,.444,.455,.4658,.4765,.4871,.4975,.5078,.518,.528,.5379,.5477,.5573,.5668,.5761,.5853,.5944,.6033,.612,.6206,.6291,.6374,.6456,.6537,.6616,.6693,.677,.6845,.6918,.699,.7061,.713,.7199,.7265,.7331,.7395,.7458,.752,.758,.764,.7698,.7755,.781,.7865,.7918,.7971,.8022,.8072,.8121,.8169,.8216,.8262,.8307,.8351,.8394,.8436,.8477,.8517,.8557,.8595,.8633,.8669,.8705,.874,.8775,.8808,.8841,.8873,.8904,.8934,.8964,.8993,.9022,.9049,.9076,.9103,.9129,.9154,.9178,.9202,.9226,.9249,.9271,.9293,.9314,.9335,.9355,.9375,.9394,.9413,.9431,.9449,.9466,.9483,.95,.9516,.9532,.9547,.9562,.9576,.9591,.9605,.9618,.9631,.9644,.9657,.9669,.9681,.9692,.9703,.9714,.9725,.9736,.9746,.9756,.9765,.9775,.9784,.9793,.9802,.981,.9818,.9826,.9834,.9842,.9849,.9856,.9863,.987,.9877,.9883,.989,.9896,.9902,.9908,.9913,.9919,.9924,.993,.9935,.994,.9944,.9949,.9954,.9958,.9963,.9967,.9971,.9975,.9979,.9983,.9986,.999,.9993,.9997,1]),Qo={linear:r,ease:Ko,ease_in:Yo,ease_out:Xo,ease_in_out:Jo,spring:Zo},ti=200,ei=0,ni=0,ri=0;function oi(t){return Math.max(...t.map((t=>(Number(t.duration)||ti)+(Number(t.start_delay)||ei))))}function ii(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:Ue()?0:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||ei,a=Number(t.duration)||ti,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-s:s,u=(Qo[t.interpolator||"ease_in_out"]||Jo)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||ni)};if("slide"===t.type){var d;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let i=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===i&&(i="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(o["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(o["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=i*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var p,f;const e=1-u+u*(t.scale||ri),n=null!==(p=t.pivot_x)&&void 0!==p?p:.5,o=null!==(f=t.pivot_y)&&void 0!==f?f:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:u>0&&u<1,scale:"translate(".concat(i,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=s.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=s.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=s.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),p=s.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),f=[u,p.length?p[p.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(f||"none",";opacity:").concat(c)}}}function ai(t,e,n){return t*(1-n)+e*n}const si={linear:r,ease:Ko,ease_in:Yo,ease_out:Xo,ease_in_out:Jo,spring:Zo},li=200,ci=0;function ui(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:ci,duration:Ue()?0:null!==(r=s.duration)&&void 0!==r?r:li,easing:s.interpolator&&s.interpolator in si?si[s.interpolator]:Jo,css:t=>["top:".concat(ai(i.top,a.top,t)-o.top,"px"),"left:".concat(ai(i.left,a.left,t)-o.left,"px"),"width:".concat(ai(i.width,a.width,t),"px"),"height:".concat(ai(i.height,a.height,t),"px")].join(";")}}function di(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...di(t))})):e.push(t),e}function pi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pi(Object(n),!0).forEach((function(e){hi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hi(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const{Map:gi}=A;function mi(t,e,n){const r=t.slice();return r[35]=e[n],r}function vi(t){let e,n;return e=new xn({props:{cls:qo.state,componentContext:t[0],layoutParams:t[1],parentOf:t[7],parentOfSimpleMode:!0,replaceItems:t[8],$$slots:{default:[xi]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),128&n[0]&&(r.parentOf=t[7]),120&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function yi(t){let e,r,o=t[5],i=$i(t);return{c(){i.c(),e=U()},m(t,n){i.m(t,n),T(t,e,n),r=!0},p(t,r){32&r[0]&&d(o,o=t[5])?(St(),Tt(i,1,1,n),Vt(),i=$i(t),i.c(),Ft(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Ft(i),r=!0)},o(t){Tt(i),r=!1},d(t){t&&N(e),i.d(t)}}}function $i(t){let e,n;return e=new Ws({props:{componentContext:t[6]}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.componentContext=t[6]),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function bi(t){let e,n,r,o,i,a,s,l,c,u;function d(){return t[17](t[35])}return r=new Ws({props:{componentContext:t[35].componentContextCopy}}),{c(){e=I("div"),n=I("div"),Jt(r.$$.fragment),i=B(),W(n,"class",o=qo["state__animation-child-inner"]),W(e,"class",a=qo["state__animation-child"])},m(t,o){T(t,e,o),S(e,n),Yt(r,n,null),S(e,i),l=!0,c||(u=L(e,"introend",d),c=!0)},p(e,n){t=e;const o={};16&n[0]&&(o.componentContext=t[35].componentContextCopy),r.$set(o)},i(n){l||(Ft(r.$$.fragment,n),s||wt((()=>{s=Mt(e,ui,t[35]),s.start()})),l=!0)},o(t){Tt(r.$$.fragment,t),l=!1},d(t){t&&N(e),Xt(r),c=!1,u()}}}function _i(t){let e,n,r,o,i,a,s,l,c,u,d="".concat(t[35].offsetLeft,"px"),p="".concat(t[35].offsetTop,"px"),f="".concat(t[35].width,"px"),h="".concat(t[35].height,"px");function g(){return t[16](t[35])}return r=new Ws({props:{componentContext:t[35].componentContextCopy}}),{c(){e=I("div"),n=I("div"),Jt(r.$$.fragment),i=B(),W(n,"class",o=qo["state__animation-child-inner"]),W(e,"class",a=qo["state__animation-child"]),K(e,"left",d),K(e,"top",p),K(e,"width",f),K(e,"height",h)},m(t,o){T(t,e,o),S(e,n),Yt(r,n,null),S(e,i),l=!0,c||(u=L(e,"introend",g),c=!0)},p(n,o){t=n;const i={};16&o[0]&&(i.componentContext=t[35].componentContextCopy),r.$set(i),16&o[0]&&d!==(d="".concat(t[35].offsetLeft,"px"))&&K(e,"left",d),16&o[0]&&p!==(p="".concat(t[35].offsetTop,"px"))&&K(e,"top",p),16&o[0]&&f!==(f="".concat(t[35].width,"px"))&&K(e,"width",f),16&o[0]&&h!==(h="".concat(t[35].height,"px"))&&K(e,"height",h)},i(n){l||(Ft(r.$$.fragment,n),s||wt((()=>{s=Mt(e,ii,t[35]),s.start()})),l=!0)},o(t){Tt(r.$$.fragment,t),l=!1},d(t){t&&N(e),Xt(r),c=!1,u()}}}function wi(t,e){let n,r,o,i,a;const s=[_i,bi],l=[];function c(t,e){return"direction"in t[35]?0:1}return r=c(e),o=l[r]=s[r](e),{key:t,first:null,c(){n=U(),o.c(),i=U(),this.first=n},m(t,e){T(t,n,e),l[r].m(t,e),T(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(St(),Tt(l[a],1,1,(()=>{l[a]=null})),Vt(),o=l[r],o?o.p(e,n):(o=l[r]=s[r](e),o.c()),Ft(o,1),o.m(i.parentNode,i))},i(t){a||(Ft(o),a=!0)},o(t){Tt(o),a=!1},d(t){t&&(N(n),N(i)),l[r].d(t)}}}function xi(t){let e,n,r,o,i=[],a=new gi,s=t[6]&&yi(t),l=zt(t[4]);const c=t=>t[35];for(let e=0;e<l.length;e+=1){let n=mi(t,l,e),r=c(n);a.set(r,i[e]=wi(r,n))}return{c(){s&&s.c(),e=B(),n=I("div");for(let t=0;t<i.length;t+=1)i[t].c();W(n,"class",r=qo.state__animations),W(n,"aria-hidden","true")},m(r,a){s&&s.m(r,a),T(r,e,a),T(r,n,a);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null);t[18](n),o=!0},p(t,r){t[6]?s?(s.p(t,r),64&r[0]&&Ft(s,1)):(s=yi(t),s.c(),Ft(s,1),s.m(e.parentNode,e)):s&&(St(),Tt(s,1,1,(()=>{s=null})),Vt()),528&r[0]&&(l=zt(t[4]),St(),i=Bt(i,r,c,1,t,l,a,n,Rt,wi,null,mi),Vt())},i(t){if(!o){Ft(s);for(let t=0;t<l.length;t+=1)Ft(i[t]);o=!0}},o(t){Tt(s);for(let t=0;t<i.length;t+=1)Tt(i[t]);o=!1},d(r){r&&(N(e),N(n)),s&&s.d(r);for(let t=0;t<i.length;t+=1)i[t].d();t[18](null)}}}function ki(t){let e,n,r=!t[2]&&vi(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[2]?r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt()):r?(r.p(t,n),4&n[0]&&Ft(r,1)):(r=vi(t),r.c(),Ft(r,1),r.m(e.parentNode,e))},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}function Ci(t){return"change_bounds"===t.type?t:"set"===t.type?Ci(t.items[0]):null}function Ei(t,e,n){let r,o,i,a,s,l,c,{componentContext:u}=e,{layoutParams:d}=e;const p=pt(re),f=pt(je);let h,g,m,v,y=!1,$=new Map,b=new Set,_=null,w=[],x=[],k=[],C=[],E=!1;function j(t){n(6,v=null!=t&&t.div?u.produceChildContext(t.div,{path:t.state_id||"<unknown>"}):void 0)}function A(t,e,n){let{json:r,parentComponentContext:o,transitions:i,node:a}=e;r=u.getJsonWithVars(r),i=u.getJsonWithVars(i);const s=di(i),l=a.getBoundingClientRect(),c=fi(fi({},r),{},{margins:void 0,alpha:(d=s,d.some((t=>"fade"===t.type))?void 0:r.alpha)});var d;return{json:c,componentContextCopy:o.produceChildContext(c,{fake:!0}),elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node}}async function P(t){if(m===t)return;p.setRunning("stateChange",!0);const e=new Set(b);w.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(4,w=[]);let r=[];if(h){const t=h.getBoundingClientRect();r=k.map((e=>A(t,e,"out")))}C.forEach((t=>{$.set(t.id,t.node.getBoundingClientRect())})),x=[],k=[],C=[];const o=l.find((e=>e.state_id===t))||null;var i;if(o?(n(5,m=t),null===(i=a)||void 0===i||i.setValue(m),j(o)):u.logError(oe(new Error("Cannot find state with id"),{additional:{stateId:t}})),await _t(),!h)return;const s=h.getBoundingClientRect();let c=x.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>A(s,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||b.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const d=r.concat(c),f=d.reduce(((t,e)=>Math.max(t,oi(e.transitions))),0),g=C.filter((t=>$.has(t.id))).map((t=>{const e=fi(fi({},t.json),{},{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}});return{json:e,componentContextCopy:t.parentComponentContext.produceChildContext(e,{fake:!0}),rootBbox:s,beforeBbox:$.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:u.getJsonWithVars(Ci(t.transitions)),resolvePromise:t.resolvePromise}}));n(4,w=[...d.map((t=>fi(fi({},t),{},{maxDuration:f}))),...g]),$.clear(),p.setRunning("stateChange",!1)}function D(t){if(_&&_.has(t))return _.get(t);u.logError(oe(new Error("Missing state block with id"),{additional:{id:t}}))}function O(t){n(4,w=w.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return dt(je,{registerInstance(t,e){_||(_=new Map),_.has(t)?u.logError(oe(new Error("Duplicate state with id"),{additional:{id:t}})):_.set(t,e)},unregisterInstance(t){var e;null===(e=_)||void 0===e||e.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!h)return Promise.resolve();const a=A(h.getBoundingClientRect(),{json:t,parentComponentContext:e,transitions:r,node:o},i),s=oi(a.transitions),l=fi(fi({},a),{},{maxDuration:s});return n(4,w=[...w.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return x.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return k.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const o=t.id;if(!o)return Promise.resolve();const i={id:o,json:t,parentComponentContext:e,transitions:n,node:r};return C.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&$.has(t),registerChild(t){b.add(t)},unregisterChild(t){b.delete(t)}}),ut((()=>{g&&f.unregisterInstance(g)})),t.$$set=t=>{"componentContext"in t&&n(0,u=t.componentContext),"layoutParams"in t&&n(1,d=t.layoutParams)},t.$$.update=()=>{var e,d;1&t.$$.dirty[0]&&n(13,r=u.json.div_id||u.json.id),1&t.$$.dirty[0]&&(o=u.getJsonWithVars(u.json.default_state_id)),1&t.$$.dirty[0]&&n(15,i=u.json.state_id_variable),32769&t.$$.dirty[0]&&(a=i?u.getVariable(i,"string"):null),1&t.$$.dirty[0]&&n(14,s=u.origJson),16384&t.$$.dirty[0]&&s&&n(11,E=!1),8193&t.$$.dirty[0]&&(r?n(2,y=!1):(n(2,y=!0),u.logError(oe(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&u.json&&(b=new Set),1&t.$$.dirty[0]&&n(12,l=Array.isArray(u.json.states)&&u.json.states||[]),4096&t.$$.dirty[0]&&n(7,c=l.map((t=>t.div))),4097&t.$$.dirty[0]&&(null!==(e=l)&&void 0!==e&&e.length?n(2,y=!1):(n(2,y=!0),u.logError(oe(new Error('Empty "states" prop for div "state"'))))),9217&t.$$.dirty[0]&&u.json&&(g&&(f.unregisterInstance(g),n(10,g=void 0)),!r||null!==(d=u)&&void 0!==d&&d.fakeElement||(n(10,g=r),f.registerInstance(r,{setState:P,getChild:D}))),6144&t.$$.dirty[0]&&!E&&function(t){if(!E&&(n(11,E=!0),t.length)){var e;const r=(null===(e=a)||void 0===e?void 0:e.getValue())||o;if(r){n(5,m=r);const e=t.find((t=>t.state_id===m))||null;j(e),e||u.logError(oe(new Error("Cannot find state for default_state_id"),{additional:{selectedId:m}}))}else{const e=t[0];n(5,m=e.state_id),j(e)}a&&(a.setValue(m),a.subscribe((t=>{P(t)})))}}(l)},[u,d,y,h,w,m,v,c,function(t){const e=u.json.states;e&&(n(12,l=e.map(((e,n)=>fi(fi({},e),{},{div:t[n]})))),n(0,u.json=fi(fi({},u.json),{},{states:l}),u),m&&j(l.find((t=>t.state_id===m))||null))},O,g,E,l,r,s,i,t=>O(t),t=>O(t),function(t){gt[t?"unshift":"push"]((()=>{h=t,n(3,h)}))}]}const ji={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"};function Ai(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ai(Object(n),!0).forEach((function(e){Di(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Di(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const{Boolean:Oi}=A;function Si(t,e,n){const r=t.slice();return r[55]=e[n],r}function Vi(t){let e,n;return e=new xn({props:{cls:Ee("pager",ji,t[10]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[2].map(zi),replaceItems:t[23],$$slots:{default:[Mi]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Ee("pager",ji,t[10])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(zi)),134068&n[0]|134217728&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Fi(t){let e,n,r,o,i;return n=new Ws({props:{componentContext:t[55]}}),{c(){e=I("div"),Jt(n.$$.fragment),r=B(),W(e,"class",o=ji.pager__item)},m(t,o){T(t,e,o),Yt(n,e,null),S(e,r),i=!0},p(t,e){const r={};4&e[0]&&(r.componentContext=t[55]),n.$set(r)},i(t){i||(Ft(n.$$.fragment,t),i=!0)},o(t){Tt(n.$$.fragment,t),i=!1},d(t){t&&N(e),Xt(n)}}}function Ti(t){let e,r,o,i,a=!t[19]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=ji["pager__arrow-icon-path"]),W(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),W(e,"class",o=fo.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){T(t,e,r),S(e,n)},d(t){t&&N(e)}}}();return{c(){e=I("div"),a&&a.c(),W(e,"class",r=t[19]||"".concat(ji.pager__arrow," ").concat(fo.arrow," ").concat(fo.arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),o||(i=L(e,"click",t[42]),o=!0)},p:n,d(t){t&&N(e),a&&a.d(),o=!1,i()}}}function Ni(t){let e,r,o,i,a=!t[20]&&function(t){let e,n,r,o;return{c(){e=z("svg"),n=z("path"),W(n,"class",r=ji["pager__arrow-icon-path"]),W(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),W(e,"class",o=fo.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){T(t,e,r),S(e,n)},d(t){t&&N(e)}}}();return{c(){e=I("div"),a&&a.c(),W(e,"class",r=t[20]||"".concat(ji.pager__arrow," ").concat(fo.arrow," ").concat(fo.arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),o||(i=L(e,"click",t[43]),o=!0)},p:n,d(t){t&&N(e),a&&a.d(),o=!1,i()}}}function Mi(t){let e,n,r,o,i,a,s,l,c,u=zt(t[2]),d=[];for(let e=0;e<u.length;e+=1)d[e]=Fi(Si(t,u,e));const p=t=>Tt(d[t],1,1,(()=>{d[t]=null}));let f=t[8]&&t[9]&&Ti(t),h=t[7]&&t[9]&&Ni(t);return{c(){e=I("div");for(let t=0;t<d.length;t+=1)d[t].c();o=B(),f&&f.c(),i=B(),h&&h.c(),a=U(),W(e,"class",n=ji.pager__items+" "+(t[17]?ne["root_restrict-scroll"]:"")),W(e,"style",r=se(t[11]))},m(n,r){T(n,e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);t[41](e),T(n,o,r),f&&f.m(n,r),T(n,i,r),h&&h.m(n,r),T(n,a,r),s=!0,l||(c=L(e,"scroll",t[22]),l=!0)},p(t,o){if(4&o[0]){let n;for(u=zt(t[2]),n=0;n<u.length;n+=1){const r=Si(t,u,n);d[n]?(d[n].p(r,o),Ft(d[n],1)):(d[n]=Fi(r),d[n].c(),Ft(d[n],1),d[n].m(e,null))}for(St(),n=u.length;n<d.length;n+=1)p(n);Vt()}(!s||131072&o[0]&&n!==(n=ji.pager__items+" "+(t[17]?ne["root_restrict-scroll"]:"")))&&W(e,"class",n),(!s||2048&o[0]&&r!==(r=se(t[11])))&&W(e,"style",r),t[8]&&t[9]?f?f.p(t,o):(f=Ti(t),f.c(),f.m(i.parentNode,i)):f&&(f.d(1),f=null),t[7]&&t[9]?h?h.p(t,o):(h=Ni(t),h.c(),h.m(a.parentNode,a)):h&&(h.d(1),h=null)},i(t){if(!s){for(let t=0;t<u.length;t+=1)Ft(d[t]);s=!0}},o(t){d=d.filter(Oi);for(let t=0;t<d.length;t+=1)Tt(d[t]);s=!1},d(n){n&&(N(e),N(o),N(i),N(a)),M(d,n),t[41](null),f&&f.d(n),h&&h.d(n),l=!1,c()}}}function Ii(t){let e,n,r=!t[3]&&Vi(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[3]?r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt()):r?(r.p(t,n),8&n[0]&&Ft(r,1)):(r=Vi(t),r.c(),Ft(r,1),r.m(e.parentNode,e))},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}const zi=t=>t.json;function Ri(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,b,_,w,x,k,C,E,j,A,P,D=n,O=n,S=n,V=n,F=n,T=n;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>T()));let{componentContext:N}=e,{layoutParams:M}=e;const I=pt(re),z=I.direction;f(t,z,(t=>r(4,x=t)));const R=I.genId("pager"),B=I.getCustomization("pagerLeftClass"),U=I.getCustomization("pagerRightClass"),L=I.isDesktop;f(t,L,(t=>r(36,k=t)));const W=Mn((function(){if(!J)return;const t=function(){const t=Array.from(q.children),e=q.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===K?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:Y}();t!==Y&&r(28,Y=t)}),50);let H,q,J=!1,Y=0,X=0,G=!1,K="horizontal",Z="",Q="",tt="";function et(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===K,o=q.children[t],i=n?"offsetLeft":"offsetTop",a=n?"left":"top";q.scroll({[a]:o[i],behavior:e}),r(28,Y=t)}function nt(t,e){let n=Y-t;n<0&&(n="ring"===e?go(n,u.length):0),et(n)}function rt(t,e){let n=Y+t;n>u.length-1&&(n="ring"===e?go(n,u.length):u.length-1),et(n)}return lt((()=>{if(r(27,J=!0),Boolean(document.getElementById("".concat(R,"-tab-0")))){const t=[...q.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(R,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(R,"-tab-").concat(e))}})),ut((()=>{r(27,J=!1),H&&(I.unregisterInstance(H),r(26,H=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,N=t.componentContext),"layoutParams"in t&&r(1,M=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(35,o=N.origJson),16&t.$$.dirty[1]&&o&&r(32,Q=""),1&t.$$.dirty[0]&&(r(16,i=N.getDerivedFromVars(N.json.layout_mode)),O(),O=p(i,(t=>r(37,C=t)))),1&t.$$.dirty[0]&&(r(15,a=N.getDerivedFromVars(N.json.orientation)),F(),F=p(a,(t=>r(40,A=t)))),1&t.$$.dirty[0]&&(r(14,s=N.getDerivedFromVars(N.json.item_spacing)),V(),V=p(s,(t=>r(39,j=t)))),1&t.$$.dirty[0]&&(r(13,l=N.getDerivedFromVars(N.json.paddings)),S(),S=p(l,(t=>r(38,E=t)))),1&t.$$.dirty[0]&&(r(12,c=N.getDerivedFromVars(N.json.restrict_parent_scroll)),T(),T=p(c,(t=>r(17,P=t)))),1&t.$$.dirty[0]&&r(2,u=(Array.isArray(N.json.items)&&N.json.items||[]).map(((t,e)=>N.produceChildContext(t,{path:e})))),1&t.$$.dirty[0]|64&t.$$.dirty[1]&&(C?"percentage"!==C.type&&"fixed"!==C.type?(r(29,G=!0),N.logError(oe(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(29,G=!1):(r(29,G=!0),N.logError(oe(new Error('Empty "layout_mode" prop for div "pager"'))))),1073741824&t.$$.dirty[0]|512&t.$$.dirty[1]&&r(30,K=Fr(A,K)),256&t.$$.dirty[1]){var e;const t=null===(e=j)||void 0===e?void 0:e.value;t&&De(t)&&r(31,Z=le(t||0))}var n,f;if(16&t.$$.dirty[0]|130&t.$$.dirty[1]&&r(32,Q=Oe(E,x,Q)),1073741824&t.$$.dirty[0]&&r(34,d="horizontal"===K?"grid-auto-columns":"grid-auto-rows"),1073741841&t.$$.dirty[0]|65&t.$$.dirty[1])if("fixed"===(null===(n=C)||void 0===n?void 0:n.type)){var D,M,z,B,U,L,W,q,ot;const t=ce("horizontal"===K?(("ltr"===x?null===(D=N.json.paddings)||void 0===D?void 0:D.start:null===(M=N.json.paddings)||void 0===M?void 0:M.end)||(null===(z=N.json.paddings)||void 0===z?void 0:z.left)||0)+(("ltr"===x?null===(B=N.json.paddings)||void 0===B?void 0:B.end:null===(U=N.json.paddings)||void 0===U?void 0:U.start)||(null===(L=N.json.paddings)||void 0===L?void 0:L.right)||0):((null===(W=N.json.paddings)||void 0===W?void 0:W.top)||0)+((null===(q=N.json.paddings)||void 0===q?void 0:q.bottom)||0)),e=null===(ot=C.neighbour_page_width)||void 0===ot?void 0:ot.value;r(33,tt=e?"calc(100% + ".concat(t," - 2 * ").concat(ce(e)," - 2 * ").concat(Z,")"):"100%")}else if("percentage"===(null===(f=C)||void 0===f?void 0:f.type)){var it;const t=null===(it=C.page_width)||void 0===it?void 0:it.value;r(33,tt="".concat(Number(t),"%"))}15&t.$$.dirty[1]&&r(11,h={"grid-gap":Z,padding:Q,[d]:tt}),1073741824&t.$$.dirty[0]&&r(10,g={orientation:K}),536870912&t.$$.dirty[0]&&r(3,m=G),134217736&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(9,v=k&&J&&!m),268435476&t.$$.dirty[0]&&r(8,y="ltr"===x?Y>0:Y+1<u.length),268435476&t.$$.dirty[0]&&r(7,b="ltr"===x?Y+1<u.length:Y>0),268435460&t.$$.dirty[0]&&function(t,e){const n=N.json.id;if(n){const r=new Map(w);$(_,w=r.set(n,{instId:R,size:t,currentItem:e,scrollToPagerItem:et}),w)}}(u.length,Y),268435456&t.$$.dirty[0]&&function(t){var e;if(t===X)return;X=t;const n=N.getJsonWithVars(null===(e=u[t].json)||void 0===e?void 0:e.selected_actions);null!=n&&n.length&&N.execAnyActions(n)}(Y),67108869&t.$$.dirty[0]&&N.json&&(H&&(I.unregisterInstance(H),r(26,H=void 0)),N.json.id&&!N.fakeElement&&(r(26,H=N.json.id),I.registerInstance(H,{setCurrentItem(t){if(t<0||t>u.length-1)throw new Error('Item is out of range in "set-current-item" action');et(t)},setPreviousItem:nt,setNextItem:rt,scrollToStart(){et(0)},scrollToEnd(){et(u.length-1)}})))},r(6,_=I.getStore("pagers")),D(),D=p(_,(t=>r(45,w=t))),[N,M,u,m,x,q,_,b,y,v,g,h,c,l,s,a,i,P,z,B,U,L,W,function(t){r(0,N=Pi(Pi({},N),{},{json:Pi(Pi({},N.json),{},{items:t.filter(he)})}))},nt,rt,H,J,Y,G,K,Z,Q,tt,d,o,k,C,E,j,A,function(t){gt[t?"unshift":"push"]((()=>{q=t,r(5,q)}))},()=>("ltr"===x?nt:rt)(1,"clamp"),()=>("ltr"===x?rt:nt)(1,"clamp")]}const Bi={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_direction_ltr:"divkit-a7473",indicator_direction_rtl:"divkit-a7d63",indicator_placement_stretch:"divkit-b6bd3"};function Ui(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Li(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ui(Object(n),!0).forEach((function(e){Wi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Wi(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hi(t,e,n){const r=t.slice();r[42]=e[n],r[45]=n;const o=r[45]===r[10].currentItem;return r[43]=o,r}function qi(t){let e,n=zt(Array(t[10].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=Ji(Hi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=U()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);T(t,e,n)},p(t,o){if(12583936&o[0]){let i;for(n=zt(Array(t[10].size)),i=0;i<n.length;i+=1){const a=Hi(t,n,i);r[i]?r[i].p(a,o):(r[i]=Ji(a),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(t){t&&N(e),M(r,t)}}}function Ji(t){let e,n,r,o,i,a,l,c;function u(){return t[35](t[45])}return{c(){e=I("div"),W(e,"class",n=Ee("indicator__item",Bi,{active:t[43]})+" "+ne.root__clickable),W(e,"role","tab"),W(e,"id",r=t[10].instId+"-tab-"+t[45]),W(e,"aria-controls",o=t[10].instId+"-panel-"+t[45]),W(e,"aria-selected",i=t[43]?"true":"false"),W(e,"tabindex",a=t[43]?0:-1)},m(n,r){T(n,e,r),l||(c=[L(e,"click",u),L(e,"keydown",t[23])],l=!0)},p(s,l){t=s,1024&l[0]&&n!==(n=Ee("indicator__item",Bi,{active:t[43]})+" "+ne.root__clickable)&&W(e,"class",n),1024&l[0]&&r!==(r=t[10].instId+"-tab-"+t[45])&&W(e,"id",r),1024&l[0]&&o!==(o=t[10].instId+"-panel-"+t[45])&&W(e,"aria-controls",o),1024&l[0]&&i!==(i=t[43]?"true":"false")&&W(e,"aria-selected",i),1024&l[0]&&a!==(a=t[43]?0:-1)&&W(e,"tabindex",a)},d(t){t&&N(e),l=!1,s(c)}}}function Yi(t){let e,n,r,o,i=t[10]&&qi(t);return{c(){e=I("div"),n=I("div"),i&&i.c(),W(n,"class",r=Bi.indicator__items),W(n,"role","tablist"),K(n,"margin","default"===t[4]?"0 ".concat(le(Math.max(0,t[2].width-t[3].width)/2)):""),K(n,"--divkit-indicator-inactive-width",le(t[3].width)),K(n,"--divkit-indicator-inactive-height",le(t[3].height)),K(n,"--divkit-indicator-inactive-border-radius",le(t[3].borderRadius)),K(n,"--divkit-indicator-inactive-background",t[3].background||""),K(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),K(n,"--divkit-indicator-active-width",le(t[2].width)),K(n,"--divkit-indicator-active-height",le(t[2].height)),K(n,"--divkit-indicator-active-border-radius",le(t[2].borderRadius)),K(n,"--divkit-indicator-active-background",t[2].background||""),K(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),K(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),K(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(le((t[5]-t[3].width)/2)):""),K(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?le(t[7]):""),K(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),K(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?le((t[6]-1)*t[7]):""),W(e,"class",o=Bi.indicator__scroller)},m(r,o){T(r,e,o),S(e,n),i&&i.m(n,null),t[36](n),t[37](e)},p(t,e){t[10]?i?i.p(t,e):(i=qi(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null),28&e[0]&&K(n,"margin","default"===t[4]?"0 ".concat(le(Math.max(0,t[2].width-t[3].width)/2)):""),8&e[0]&&K(n,"--divkit-indicator-inactive-width",le(t[3].width)),8&e[0]&&K(n,"--divkit-indicator-inactive-height",le(t[3].height)),8&e[0]&&K(n,"--divkit-indicator-inactive-border-radius",le(t[3].borderRadius)),8&e[0]&&K(n,"--divkit-indicator-inactive-background",t[3].background||""),8&e[0]&&K(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),4&e[0]&&K(n,"--divkit-indicator-active-width",le(t[2].width)),4&e[0]&&K(n,"--divkit-indicator-active-height",le(t[2].height)),4&e[0]&&K(n,"--divkit-indicator-active-border-radius",le(t[2].borderRadius)),4&e[0]&&K(n,"--divkit-indicator-active-background",t[2].background||""),4&e[0]&&K(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),12&e[0]&&K(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),56&e[0]&&K(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(le((t[5]-t[3].width)/2)):""),144&e[0]&&K(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?le(t[7]):""),80&e[0]&&K(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),208&e[0]&&K(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?le((t[6]-1)*t[7]):"")},d(n){n&&N(e),i&&i.d(),t[36](null),t[37](null)}}}function Xi(t){let e,n;return e=new xn({props:{cls:Ee("indicator",Bi,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Yi]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Ee("indicator",Bi,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2044&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}const Gi=["rounded_rectangle","circle"];function Ki(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,j=n,A=n,P=n,D=n,O=n,S=n,V=n,F=n,T=n;t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>T()));let{componentContext:N}=e,{layoutParams:M}=e;const I=pt(re),z=I.direction;f(t,z,(t=>r(25,v=t)));let R,B,U,L={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},W={width:10,height:10,borderRadius:5,background:"#33919cb5"},H="default",q=15,J=10,Y=5;function X(t){t!==U.currentItem&&U.scrollToPagerItem(t)}async function G(t){U.scrollToPagerItem(t),await _t();const e=B.querySelector(".".concat(Bi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"componentContext"in t&&r(0,N=t.componentContext),"layoutParams"in t&&r(1,M=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(24,o=N.origJson),16777216&t.$$.dirty[0]&&o&&(r(4,H="default"),r(5,q=15),r(6,J=10),r(7,Y=5),r(2,L={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),r(3,W={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(r(20,i=N.getDerivedFromVars(N.json.shape)),S(),S=p(i,(t=>r(31,x=t)))),1&t.$$.dirty[0]&&(r(19,a=N.getDerivedFromVars(N.json.active_item_color)),D(),D=p(a,(t=>r(29,_=t)))),1&t.$$.dirty[0]&&(r(18,s=N.getDerivedFromVars(N.json.inactive_item_color)),O(),O=p(s,(t=>r(30,w=t)))),1&t.$$.dirty[0]&&(r(17,l=N.getDerivedFromVars(N.json.active_item_size)),V(),V=p(l,(t=>r(32,k=t)))),1&t.$$.dirty[0]&&(r(16,c=N.getDerivedFromVars(N.json.active_shape)),T(),T=p(c,(t=>r(34,E=t)))),1&t.$$.dirty[0]&&(r(15,u=N.getDerivedFromVars(N.json.inactive_shape)),F(),F=p(u,(t=>r(33,C=t)))),1&t.$$.dirty[0]&&(r(14,d=N.getDerivedFromVars(N.json.space_between_centers)),A(),A=p(d,(t=>r(27,$=t)))),1&t.$$.dirty[0]&&(r(13,h=N.getDerivedFromVars(N.json.items_placement)),P(),P=p(h,(t=>r(28,b=t)))),1610612748&t.$$.dirty[0]|15&t.$$.dirty[1]&&(E&&r(2,L=ir({type:"shape_drawable",shape:E},Gi,L)),C&&r(3,W=ir({type:"shape_drawable",shape:C},Gi,W)),!E&&!C&&x)){const t=Cn(k,1.3);r(3,W=ir({type:"shape_drawable",shape:x,color:W.background},Gi,W)),r(3,W.background=de(w,1,W.background),W),r(2,L=Li(Li({},W),{},{width:W.width*t,height:W.height*t,borderRadius:W.borderRadius*t,background:L.background})),r(2,L.background=de(_,1,L.background),L)}var e;if(402653424&t.$$.dirty[0])if(!b||"default"!==b.type&&"stretch"!==b.type)r(4,H="default"),$&&r(5,q=we($.value,q));else if(r(4,H=b.type),"default"===H)r(5,q=we(null===(e=b.space_between_centers)||void 0===e?void 0:e.value,q));else if("stretch"===H){var n;const t=b;r(6,J=Cn(t.max_visible_items,J)),r(7,Y=we(null===(n=t.item_spacing)||void 0===n?void 0:n.value,Y))}67108864&t.$$.dirty[0]&&async function(t){if(N.json.pager_id&&t.has(N.json.pager_id)&&(r(10,U=t.get(N.json.pager_id)),await _t(),B)){const t=B.children[U.currentItem];if(t){const e=t.offsetLeft;R.scroll({left:e-R.clientWidth/2,behavior:"smooth"})}}}(y),33554448&t.$$.dirty[0]&&r(11,m={placement:H,direction:v})},r(12,g=I.getStore("pagers")),j(),j=p(g,(t=>r(26,y=t))),[N,M,L,W,H,q,J,Y,R,B,U,m,g,h,d,u,c,l,s,a,i,z,X,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=U;if(37===t.which)G(n-1<0?n:n-1);else if(39===t.which)G(n+1>=e?n:n+1);else if(36===t.which)G(0);else{if(35!==t.which)return;G(e-1)}t.preventDefault()},o,v,y,$,b,_,w,x,k,C,E,t=>X(t),function(t){gt[t?"unshift":"push"]((()=>{B=t,r(9,B)}))},function(t){gt[t?"unshift":"push"]((()=>{R=t,r(8,R)}))}]}const Zi={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider_direction_rtl:"divkit-fb7b5",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function Qi(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&de(t.text_color)||"#000",o=En(t.font_weight);if(Ze(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:le(t.font_size),fontWeight:o,textColor:r};return"number"==typeof(null==n||null===(i=n.x)||void 0===i?void 0:i.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function ta(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const ea="function"==typeof BigInt;function na(t){return ea?BigInt(t):Number(t)}const ra=na("9223372036854775807"),oa=na("-9223372036854775808");function ia(t){const e=na(t);if(e>ra||e<oa)throw new Error("Integer overflow.");if("number"==typeof e&&(Number.isNaN(e)||e!==Math.round(e)))throw new Error("Incorrect integer value.");return e}const aa=ia(0);function sa(t){let e=t;return e<0&&(e=-e),e}function la(t){let e=0;return t>0?e=1:t<0&&(e=-1),ia(e)}class ca{constructor(t,e){const n=this.convertValue(e);this.name=t,this.value=n}getName(){return this.name}subscribe(t){return this.store||(this.store=te(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}class ua extends ca{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}}class da extends ca{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t)throw new Error("Incorrect variable value");try{return ia(t)}catch(t){throw new Error("Incorrect variable value")}}fromString(t){try{return ia(t)}catch(t){throw new Error("Incorrect variable value")}}getType(){return"integer"}}class pa extends ca{convertValue(t){if("number"!=typeof t||Number.isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}}class fa extends ca{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class ha extends ca{convertValue(t){if("string"!=typeof t||!pe(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}}class ga extends ca{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}class ma extends ca{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class va extends ca{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const ya={string:ua,number:pa,integer:da,boolean:fa,color:ha,url:ga,dict:ma,array:va};function $a(t,e,n){if(!(e in ya))throw new Error("Unsupported variable type");return new ya[e](t,n)}function ba(){}function _a(t){return t(this.value),ba}function wa(){throw new Error("Cannot change the value of this type of variable")}const xa={string:class extends ua{},number:class extends pa{},integer:class extends da{},boolean:class extends fa{},color:class extends ha{},url:class extends ga{},dict:class extends ma{},array:class extends va{}};for(const t in xa){const e=xa[t];e.prototype.subscribe=_a,e.prototype.set=wa,e.prototype.setValue=wa}function ka(t,e,n){const r=t.slice();return r[78]=e[n],r}function Ca(t,e,n){const r=t.slice();return r[78]=e[n],r}function Ea(t){let e,n;return e=new xn({props:{cls:Ee("slider",Zi,t[24]),style:t[25],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Va,t=>{let{focusHandler:e,blurHandler:n}=t;return{76:e,77:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?16384:0)|(n?32768:0)]}]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};16777216&n[0]&&(r.cls=Ee("slider",Zi,t[24])),33554432&n[0]&&(r.style=t[25]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),205518844&n[0]|2146304&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function ja(t){let e,n;return{c(){e=I("div"),W(e,"class",n=Zi.slider__tick+" "+Zi.slider__tick_active),K(e,"--divkit-slider-tick",t[78])},m(t,n){T(t,e,n)},p(t,n){262144&n[0]&&K(e,"--divkit-slider-tick",t[78])},d(t){t&&N(e)}}}function Aa(t){let e,n;return{c(){e=I("div"),W(e,"class",n=Zi.slider__tick+" "+Zi.slider__tick_inactive),K(e,"--divkit-slider-tick",t[78])},m(t,n){T(t,e,n)},p(t,n){524288&n[0]&&K(e,"--divkit-slider-tick",t[78])},d(t){t&&N(e)}}}function Pa(t){let e,n,r,o,i;return{c(){var a,s,l;e=I("div"),n=I("div"),r=R(t[12]),W(n,"class",o=Zi["slider__thumb-text-inner"]),K(n,"font-size",(null===(a=t[9])||void 0===a?void 0:a.fontSize)||"1em"),K(n,"font-weight",(null===(s=t[9])||void 0===s?void 0:s.fontWeight)||""),K(n,"color",(null===(l=t[9])||void 0===l?void 0:l.textColor)||"#000"),W(e,"class",i=Zi["slider__thumb-text"])},m(t,o){T(t,e,o),S(e,n),S(n,r)},p(t,e){var o,i,a;4096&e[0]&&X(r,t[12]),512&e[0]&&K(n,"font-size",(null===(o=t[9])||void 0===o?void 0:o.fontSize)||"1em"),512&e[0]&&K(n,"font-weight",(null===(i=t[9])||void 0===i?void 0:i.fontWeight)||""),512&e[0]&&K(n,"color",(null===(a=t[9])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&N(e)}}}function Da(t){let e,n,r=t[10]&&Oa(t);return{c(){e=I("div"),r&&r.c(),W(e,"class",n=Zi.slider__thumb+" "+Zi.slider__thumb_secondary),K(e,"border-radius",le(t[6].borderRadius)),K(e,"background",t[6].background),K(e,"box-shadow",t[6].boxShadow||"")},m(t,n){T(t,e,n),r&&r.m(e,null)},p(t,n){t[10]?r?r.p(t,n):(r=Oa(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),64&n[0]&&K(e,"border-radius",le(t[6].borderRadius)),64&n[0]&&K(e,"background",t[6].background),64&n[0]&&K(e,"box-shadow",t[6].boxShadow||"")},d(t){t&&N(e),r&&r.d()}}}function Oa(t){let e,n,r,o,i;return{c(){var a,s,l;e=I("div"),n=I("div"),r=R(t[13]),W(n,"class",o=Zi["slider__thumb-text-inner"]),K(n,"font-size",(null===(a=t[10])||void 0===a?void 0:a.fontSize)||"1em"),K(n,"font-weight",(null===(s=t[10])||void 0===s?void 0:s.fontWeight)||""),K(n,"color",(null===(l=t[10])||void 0===l?void 0:l.textColor)||"#000"),W(e,"class",i=Zi["slider__thumb-text"]+" "+Zi["slider__thumb-text_secondary"])},m(t,o){T(t,e,o),S(e,n),S(n,r)},p(t,e){var o,i,a;8192&e[0]&&X(r,t[13]),1024&e[0]&&K(n,"font-size",(null===(o=t[10])||void 0===o?void 0:o.fontSize)||"1em"),1024&e[0]&&K(n,"font-weight",(null===(i=t[10])||void 0===i?void 0:i.fontWeight)||""),1024&e[0]&&K(n,"color",(null===(a=t[10])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&N(e)}}}function Sa(t){let e,n,r,o,i;return{c(){e=I("input"),W(e,"type","range"),W(e,"class",n=t[17]?Zi.slider__input:"".concat(Zi.slider__input," ").concat(Zi.slider__input_secondary)),W(e,"min",t[3]),W(e,"max",t[4]),W(e,"step","1"),e.value=r=t[17]?t[12]:t[13],W(e,"aria-label",t[21])},m(n,r){T(n,e,r),o||(i=[L(e,"input",t[69]),L(e,"mousedown",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),L(e,"touchstart",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),L(e,"focus",(function(){l(t[76])&&t[76].apply(this,arguments)})),L(e,"blur",(function(){l(t[77])&&t[77].apply(this,arguments)}))],o=!0)},p(o,i){t=o,131072&i[0]&&n!==(n=t[17]?Zi.slider__input:"".concat(Zi.slider__input," ").concat(Zi.slider__input_secondary))&&W(e,"class",n),8&i[0]&&W(e,"min",t[3]),16&i[0]&&W(e,"max",t[4]),143360&i[0]&&r!==(r=t[17]?t[12]:t[13])&&(e.value=r),2097152&i[0]&&W(e,"aria-label",t[21])},d(t){t&&N(e),o=!1,s(i)}}}function Va(t){let e,n,r,o,i,a,c,u,d,p,f,h,g,m,v,y,$,b,_,w,x,k,C=zt(t[18]),E=[];for(let e=0;e<C.length;e+=1)E[e]=ja(Ca(t,C,e));let j=zt(t[19]),A=[];for(let e=0;e<j.length;e+=1)A[e]=Aa(ka(t,j,e));let P=t[9]&&Pa(t),D=t[14]&&Da(t),O=t[14]&&Sa(t);return{c(){e=I("div"),n=I("div"),r=I("div"),i=B(),a=I("div"),u=B();for(let t=0;t<E.length;t+=1)E[t].c();d=B();for(let t=0;t<A.length;t+=1)A[t].c();p=B(),f=I("div"),P&&P.c(),g=B(),D&&D.c(),m=B(),v=I("input"),b=B(),O&&O.c(),W(r,"class",o=Zi.slider__track),K(r,"height",le(t[7].height)),K(r,"border-radius",le(t[7].borderRadius)),K(r,"background",t[7].background),K(r,"box-shadow",t[7].boxShadow||""),W(a,"class",c=Zi["slider__active-track"]),K(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),K(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),K(a,"width",(100*t[27]).toFixed(2)+"%"),K(a,"height",le(t[8].height)),K(a,"border-radius",le(t[8].borderRadius)),K(a,"background",t[8].background),K(a,"box-shadow",t[8].boxShadow||""),W(f,"class",h=Zi.slider__thumb),K(f,"border-radius",le(t[5].borderRadius)),K(f,"background",t[5].background),K(f,"box-shadow",t[5].boxShadow||""),W(v,"type","range"),W(v,"class",y=t[17]?"".concat(Zi.slider__input," ").concat(Zi.slider__input_secondary):Zi.slider__input),W(v,"min",t[3]),W(v,"max",t[4]),W(v,"step","1"),v.value=$=t[17]?t[13]:t[12],W(v,"aria-label",t[20]),W(n,"class",_=Zi["slider__tracks-inner"]),W(e,"class",w=Zi["slider__tracks-wrapper"])},m(o,s){T(o,e,s),S(e,n),S(n,r),S(n,i),S(n,a),S(n,u);for(let t=0;t<E.length;t+=1)E[t]&&E[t].m(n,null);S(n,d);for(let t=0;t<A.length;t+=1)A[t]&&A[t].m(n,null);S(n,p),S(n,f),P&&P.m(f,null),S(n,g),D&&D.m(n,null),S(n,m),S(n,v),t[68](v),S(n,b),O&&O.m(n,null),t[70](n),x||(k=[L(v,"input",t[67]),L(v,"focus",(function(){l(t[76])&&t[76].apply(this,arguments)})),L(v,"blur",(function(){l(t[77])&&t[77].apply(this,arguments)}))],x=!0)},p(e,o){if(t=e,128&o[0]&&K(r,"height",le(t[7].height)),128&o[0]&&K(r,"border-radius",le(t[7].borderRadius)),128&o[0]&&K(r,"background",t[7].background),128&o[0]&&K(r,"box-shadow",t[7].boxShadow||""),67141632&o[0]&&K(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),67141632&o[0]&&K(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),134217728&o[0]&&K(a,"width",(100*t[27]).toFixed(2)+"%"),256&o[0]&&K(a,"height",le(t[8].height)),256&o[0]&&K(a,"border-radius",le(t[8].borderRadius)),256&o[0]&&K(a,"background",t[8].background),256&o[0]&&K(a,"box-shadow",t[8].boxShadow||""),262144&o[0]){let e;for(C=zt(t[18]),e=0;e<C.length;e+=1){const r=Ca(t,C,e);E[e]?E[e].p(r,o):(E[e]=ja(r),E[e].c(),E[e].m(n,d))}for(;e<E.length;e+=1)E[e].d(1);E.length=C.length}if(524288&o[0]){let e;for(j=zt(t[19]),e=0;e<j.length;e+=1){const r=ka(t,j,e);A[e]?A[e].p(r,o):(A[e]=Aa(r),A[e].c(),A[e].m(n,p))}for(;e<A.length;e+=1)A[e].d(1);A.length=j.length}t[9]?P?P.p(t,o):(P=Pa(t),P.c(),P.m(f,null)):P&&(P.d(1),P=null),32&o[0]&&K(f,"border-radius",le(t[5].borderRadius)),32&o[0]&&K(f,"background",t[5].background),32&o[0]&&K(f,"box-shadow",t[5].boxShadow||""),t[14]?D?D.p(t,o):(D=Da(t),D.c(),D.m(n,m)):D&&(D.d(1),D=null),131072&o[0]&&y!==(y=t[17]?"".concat(Zi.slider__input," ").concat(Zi.slider__input_secondary):Zi.slider__input)&&W(v,"class",y),8&o[0]&&W(v,"min",t[3]),16&o[0]&&W(v,"max",t[4]),143360&o[0]&&$!==($=t[17]?t[13]:t[12])&&(v.value=$),1048576&o[0]&&W(v,"aria-label",t[20]),t[14]?O?O.p(t,o):(O=Sa(t),O.c(),O.m(n,null)):O&&(O.d(1),O=null)},d(n){n&&N(e),M(E,n),M(A,n),P&&P.d(),D&&D.d(),t[68](null),O&&O.d(),t[70](null),x=!1,s(k)}}}function Fa(t){let e,n,r,o,i=!t[11]&&Ea(t);return{c(){i&&i.c(),e=U()},m(a,s){i&&i.m(a,s),T(a,e,s),n=!0,r||(o=L(window,"resize",t[43]),r=!0)},p(t,n){t[11]?i&&(St(),Tt(i,1,1,(()=>{i=null})),Vt()):i?(i.p(t,n),2048&n[0]&&Ft(i,1)):(i=Ea(t),i.c(),Ft(i,1),i.m(e.parentNode,e))},i(t){n||(Ft(i),n=!0)},o(t){Tt(i),n=!1},d(t){t&&N(e),i&&i.d(t),r=!1,o()}}}const Ta={width:10,height:10,borderRadius:5,background:"#000"},Na=["rounded_rectangle","circle"],Ma=["rounded_rectangle"];function Ia(t,e,n,r,o){let i=[];if(o)for(let o=t;o<e;++o)i.push((o-n)/(r-n));else{for(let e=n;e<t;++e)i.push((e-n)/(r-n));for(let t=e;t<r+1;++t)i.push((t-n)/(r-n))}return i}function za(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,j,A,P,D,O,S,V,F,T,N,M,I,z,R,B,U,L,W,H,q=n,J=n,Y=n,X=n,G=n,K=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n;t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it()));let{componentContext:at}=e,{layoutParams:st}=e;const ct=pt(re),dt=pt(We),ft=ct.direction;let ht,mt,vt;f(t,ft,(t=>r(15,O=t)));let yt,$t,bt,_t=!1,wt=0,xt=100,kt=Ta,Ct=kt,Et=Ta,jt=Ta,At=null,Pt=null,Dt=bt,Ot="",St="",Vt=!1,Ft=ta(L||0,wt,xt),Tt=ta(U||0,wt,xt);function Nt(t,e){const n=Number(t.target.value);_t===("first"===e)?(r(13,Tt=n),l.setValue(n)):(r(12,Ft=n),s.setValue(n))}let Mt=!1;function It(){var t,e,n;if(!vt)return;const r=xt-wt,o=(null===(t=At)||void 0===t?void 0:t.width)||0,i=(null===(e=Pt)||void 0===e?void 0:e.width)||0;Math.max(o,i)*r>=(null===(n=vt)||void 0===n?void 0:n.clientWidth)?Mt||(at.logError(oe(new Error("Slider ticks overlap each other"),{level:"warn"})),Mt=!0):Mt=!1}const zt=Mn(It,50);return lt((()=>{It()})),ut((()=>{ht&&(ct.unregisterFocusable(ht),r(44,ht=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,at=t.componentContext),"layoutParams"in t&&r(1,st=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(52,o=at.origJson),2097152&t.$$.dirty[1]&&o&&(r(5,kt=Ta),r(6,Ct=kt),r(7,Et=Ta),r(8,jt=Ta),r(45,At=null),r(46,Pt=null),r(9,bt=void 0),r(10,Dt=void 0),r(20,Ot=""),r(21,St="")),1&t.$$.dirty[0]&&r(51,i=at.json.thumb_value_variable),1&t.$$.dirty[0]&&r(14,a=at.json.thumb_secondary_value_variable),1&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(r(22,s=i&&at.getVariable(i,"integer")||$a("temp","integer",0)),rt(),rt=p(s,(t=>r(64,L=t)))),16385&t.$$.dirty[0]&&(r(23,l=a&&at.getVariable(a,"integer")||$a("temp","integer",0)),nt(),nt=p(l,(t=>r(63,U=t)))),1&t.$$.dirty[0]&&(r(39,c=at.getDerivedFromVars(at.json.min_value)),it(),it=p(c,(t=>r(66,H=t)))),1&t.$$.dirty[0]&&(r(38,u=at.getDerivedFromVars(at.json.max_value)),ot(),ot=p(u,(t=>r(65,W=t)))),1&t.$$.dirty[0]&&(r(37,d=at.getDerivedFromVars(at.json.thumb_style)),et(),et=p(d,(t=>r(62,B=t)))),1&t.$$.dirty[0]&&(r(36,h=at.getDerivedFromVars(at.json.thumb_secondary_style)),tt(),tt=p(h,(t=>r(61,R=t)))),1&t.$$.dirty[0]&&(r(35,g=at.getDerivedFromVars(at.json.track_inactive_style)),Q(),Q=p(g,(t=>r(60,z=t)))),1&t.$$.dirty[0]&&(r(34,m=at.getDerivedFromVars(at.json.track_active_style)),Z(),Z=p(m,(t=>r(59,I=t)))),1&t.$$.dirty[0]&&(r(33,v=at.getDerivedFromVars(at.json.tick_mark_active_style)),K(),K=p(v,(t=>r(58,M=t)))),1&t.$$.dirty[0]&&(r(32,y=at.getDerivedFromVars(at.json.tick_mark_inactive_style)),G(),G=p(y,(t=>r(57,N=t)))),1&t.$$.dirty[0]&&(r(31,$=at.getDerivedFromVars(at.json.thumb_text_style)),X(),X=p($,(t=>r(56,T=t)))),1&t.$$.dirty[0]&&(r(30,b=at.getDerivedFromVars(at.json.thumb_secondary_text_style)),Y(),Y=p(b,(t=>r(55,F=t)))),1&t.$$.dirty[0]&&(r(29,_=at.getDerivedFromVars(at.json.accessibility)),J(),J=p(_,(t=>r(54,V=t)))),1&t.$$.dirty[0]&&(r(28,w=at.getDerivedFromVars(at.json.secondary_value_accessibility)),q(),q=p(w,(t=>r(53,S=t)))),24&t.$$.dirty[0]|24&t.$$.dirty[2]&&(r(3,wt=Ne(H,wt)),r(4,xt=Ne(W,xt)),It()),4120&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=ta(L||0,wt,xt);t!==Ft&&r(12,Ft=t)}if(8216&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=ta(U||0,wt,xt);t!==Tt&&r(13,Tt=t)}if(32&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(5,kt=ir(B,Na,kt)),32&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(6,Ct=ir(R,Na,kt)),128&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(7,Et=ir(z,Ma,Et)),256&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(8,jt=ir(I,Ma,jt)),134217728&t.$$.dirty[1]){let t=ir(M,Na,Ta);t!==Ta&&r(45,At=t)}if(28696&t.$$.dirty[0]|16384&t.$$.dirty[1]&&(At?(r(18,yt=a?Ia(Math.min(Ft,Tt),Math.max(Ft,Tt)+1,wt,xt,!0):Ia(wt,Ft,wt,xt,!0)),It()):r(18,yt=[])),67108864&t.$$.dirty[1]){let t=ir(N,Na,Ta);t!==Ta&&r(46,Pt=t)}var e,n,f,st,lt,ut,pt,ft,gt,vt,_t,Nt,Mt,zt;if(28696&t.$$.dirty[0]|32768&t.$$.dirty[1]&&(Pt?(r(19,$t=a?Ia(Math.min(Ft,Tt),Math.max(Ft,Tt)+1,wt,xt,!1):Ia(Ft+1,xt+1,wt,xt,!0)),It()):r(19,$t=[])),512&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(9,bt=Qi(T,bt)),512&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(10,Dt=Qi(F,bt)),1&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&(null!==(e=V)&&void 0!==e&&e.description?r(20,Ot=V.description):at.logError(oe(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),16385&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&(null!==(n=S)&&void 0!==n&&n.description?r(21,St=S.description):a&&at.logError(oe(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),2465&t.$$.dirty[0]){let t=!1;dt.hasAction()?(at.logError(oe(new Error('Cannot show "slider" inside component with action'))),t=!0):kt===Ta?(at.logError(oe(new Error('Missing "thumb_style" in slider'))),t=!0):jt===Ta?(at.logError(oe(new Error('Missing "track_active_style" in slider'))),t=!0):Et===Ta&&(at.logError(oe(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Vt&&r(11,Vt=t)}96&t.$$.dirty[0]&&r(50,x=le(Math.max(...[kt.width,Ct.width,0].filter(De)))),96&t.$$.dirty[0]&&r(49,k=le(Math.max(...[kt.height,Ct.height,0].filter(De)))),4120&t.$$.dirty[0]&&r(48,C=(Ft-wt)/(xt-wt)),24600&t.$$.dirty[0]&&r(47,E=a?(Tt-wt)/(xt-wt):void 0),196608&t.$$.dirty[1]&&r(27,j=void 0!==E?Math.abs(E-C):C),196608&t.$$.dirty[1]&&r(26,A=void 0!==E?Math.min(E,C):0),1632&t.$$.dirty[0]|1032192&t.$$.dirty[1]&&r(25,P={"--divkit-slider-thumb-width":le(kt.width),"--divkit-slider-thumb-height":le(kt.height),"--divkit-slider-thumb-secondary-width":le(Ct.width),"--divkit-slider-thumb-secondary-height":le(Ct.height),"--divkit-slider-text-offset-x":null!==(f=bt)&&void 0!==f&&null!==(st=f.offset)&&void 0!==st&&st.x?ce(bt.offset.x):void 0,"--divkit-slider-text-offset-y":null!==(lt=bt)&&void 0!==lt&&null!==(ut=lt.offset)&&void 0!==ut&&ut.y?ce(bt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":null!==(pt=Dt)&&void 0!==pt&&null!==(ft=pt.offset)&&void 0!==ft&&ft.x?ce(Dt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":null!==(gt=Dt)&&void 0!==gt&&null!==(vt=gt.offset)&&void 0!==vt&&vt.y?ce(Dt.offset.y):void 0,"--divkit-slider-tick-active-width":At?le(At.width):void 0,"--divkit-slider-tick-active-height":At?le(At.height):void 0,"--divkit-slider-tick-active-border-radius":At?le(At.borderRadius):void 0,"--divkit-slider-tick-active-background":(null===(_t=At)||void 0===_t?void 0:_t.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null===(Nt=At)||void 0===Nt?void 0:Nt.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Pt?le(Pt.width):void 0,"--divkit-slider-tick-inactive-height":Pt?le(Pt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Pt?le(Pt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null===(Mt=Pt)||void 0===Mt?void 0:Mt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null===(zt=Pt)||void 0===zt?void 0:zt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":x,"--divkit-slider-max-thumb-height":k,"--divkit-slider-track-part":C,"--divkit-slider-track-secondary-part":E}),32768&t.$$.dirty[0]&&r(24,D={direction:O}),5&t.$$.dirty[0]|8192&t.$$.dirty[1]&&at.json&&mt&&(ht&&(ct.unregisterFocusable(ht),r(44,ht=void 0)),at.json.id&&!at.fakeElement&&(r(44,ht=at.json.id),ct.registerFocusable(ht,{focus(){mt&&mt.focus()}})))},[at,st,mt,wt,xt,kt,Ct,Et,jt,bt,Dt,Vt,Ft,Tt,a,O,vt,_t,yt,$t,Ot,St,s,l,D,P,A,j,w,_,b,$,y,v,m,g,h,d,u,c,ft,function(t){var e,n;const o="pageX"in t?t.pageX:null===(e=t.changedTouches)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.pageX;if(void 0===o)return;const i=vt.getBoundingClientRect();let a=(o-i.left)/i.width;"rtl"===O&&(a=1-a);const s=wt+(xt-wt)*a,l=Math.round(ta(s,wt,xt));r(17,_t=l<(Ft+Tt)/2==Ft<Tt)},Nt,zt,ht,At,Pt,E,C,k,x,i,o,S,V,F,T,N,M,I,z,R,B,U,L,W,H,t=>Nt(t,"first"),function(t){gt[t?"unshift":"push"]((()=>{mt=t,r(2,mt)}))},t=>Nt(t,"second"),function(t){gt[t?"unshift":"push"]((()=>{vt=t,r(16,vt)}))}]}const Ra={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_end":"divkit-e9096",input__aligner:"divkit-e0491",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_start":"divkit-cd14f","input_alignment-vertical_end":"divkit-cd38f","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0","input__input_has-custom-focus":"divkit-e6b50"};function Ba(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=Ba(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const o=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-o>=n&&t[r-o]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-o}}function Ua(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class La{constructor(t){this.char=t}}class Wa{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class Ha{constructor(t){Ua(this,"filters",new Map),Ua(this,"destructedValue",[]),Ua(this,"cursorPos",0),this.maskData=t,this.updateMaskData(t)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let t="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof La)t+=n.char;else if(n instanceof Wa)if(n.char)t+=n.char;else{if(!this.maskData.alwaysVisible)break;t+=n.placeholder}}return t}firstEmptyHolderIndex(){const t=this.destructedValue.findIndex((t=>t instanceof Wa&&!t.char));return-1!==t?t:this.destructedValue.length}updateMaskData(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.maskData!==t&&e?this.rawValue:null;this.filters=new Map,this.maskData=t,this.maskData.decoding.forEach((t=>{if(t.filter)try{const e=new RegExp(t.filter);this.filters.set(t.key,e)}catch(e){this.onException(oe(e,{level:"error",additional:{key:t.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((t=>{const e=this.maskData.decoding.find((e=>e.key===t));return e?new Wa(null,this.filters.get(e.key),e.placeholder):new La(t)})),null!==n&&this.overrideRawValue(n)}overrideRawValue(t){this.clearRange(0,this.destructedValue.length),this.replaceChars(t,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(t,e){const n=Ba(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),o=this.buildTailSubstring(n);this.cleanup(n);const i=this.firstEmptyHolderIndex(),a=o?this.calculateMaxShift(o,i):void 0;this.replaceChars(r,i,a);const s=this.firstEmptyHolderIndex();this.replaceChars(o,s),this.calculateCursorPosition(n,s)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof Wa&&++n,++r;return Math.max(0,n-t.length)}const n=this.calculateInsertableSubstring(t,e);let r=0;for(;r<this.destructedValue.length&&n===this.calculateInsertableSubstring(t,e+r);)++r;return Math.max(0,r-1)}cleanup(t){if(0===t.added&&1===t.removed){let e=t.start;for(;e>=0;){const t=this.destructedValue[e];if(t instanceof Wa&&null!==t.char){t.char=null;break}--e}}this.clearRange(t.start,this.destructedValue.length)}clearRange(t,e){let n=t;for(;n<e&&n<this.destructedValue.length;){const t=this.destructedValue[n];t instanceof Wa&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const o=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof Wa);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=o();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof Wa&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let o=e,i=0;for(;o<this.destructedValue.length&&i<r.length;){const t=this.destructedValue[o],e=r[i];t instanceof Wa&&(t.char=e,++i),++o}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof Wa);)++e;return e}}class qa extends Ha{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function Ja(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Ya extends Ha{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1?arguments[1]:void 0;super({pattern:"",decoding:[],alwaysVisible:!1}),Ja(this,"currencyFormatter",new Intl.NumberFormat),Ja(this,"decimalSeparator","."),Ja(this,"localeDigits",{}),Ja(this,"trimZeroRegExp",new RegExp("")),this.logError=e,this.initFormatter(t)}updateCurrencyParams(t){const e=this.parseFormat(this.rawValue)||0;this.initFormatter(t);const n=e.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(n)}initFormatter(t){try{this.currencyFormatter=new Intl.NumberFormat(t,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce(((t,e,n)=>(t[n]=this.currencyFormatter.format(n)[0],t)),{}),this.trimZeroRegExp=new RegExp("^".concat(this.localeDigits[0],"+"))}catch(e){this.onException(oe(e,{level:"error",additional:{locale:t}}))}}invalidateMaskDataForFormatted(t){const e=this.currencyFormatter.format(t),n=this.formatPattern(e),r=[{key:"#",filter:"[".concat([...Object.values(this.localeDigits)].join(""),"]"),placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:"[".concat(this.decimalSeparator,"]"),placeholder:this.decimalSeparator}];this.updateMaskData({pattern:n,decoding:r,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(t){const e=this.parseFormat(t)||0;this.invalidateMaskDataForFormatted(e),super.overrideRawValue(t)}applyChangeFrom(t,e){const n=Ba(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),o=t.lastIndexOf(this.decimalSeparator),i=r!==o||-1===r&&-1===o,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;i&&this.invalidateMaskDataForFormatted(s),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let o=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(o=e.start);const i=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=i;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const o=t[r];o===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(o)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==o,l=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=l.length<=i;this.isDigit(u)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(u),a--):l.push(u):d&&-1===n&&r===o?(l.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(l.push(this.decimalSeparator),c=!0,n=r),r--}return l.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,e){return t.start<=e&&e<t.start+t.added}isDigit(t){return Boolean(this.localeDigits[t])}onException(t){this.logError(t)}}const Xa=3;function Ga(t){const e=t.textContent;let n=0;return"string"==typeof e&&(n+=e.length,t instanceof HTMLElement&&("DIV"===t.tagName||"BR"===t.tagName)&&++n),n}function Ka(t,e){if(t.nodeType!==Xa)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,o=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,o),n.setEnd(r,o),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],o=Ga(r);if(e<=o)return void Ka(r,e);e-=o}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function Za(t){let e,n;return e=new xn({props:{cls:Ee("input",Ra,t[16]),style:t[15],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[os,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{94:e,95:n,96:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,0,(e?2:0)|(n?4:0)|(r?8:0)]}]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=Ee("input",Ra,t[16])),32768&n[0]&&(r.style=t[15]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),157564&n[0]|32&n[1]|30&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Qa(t){let e,n,r,o,i,a;return{c(){e=I("input"),W(e,"type",t[8]),W(e,"inputmode",t[9]),W(e,"class",n=Ee("input__input",Ra,{"has-custom-focus":t[96],singleline:!0})),W(e,"autocomplete","off"),W(e,"autocapitalize","off"),W(e,"aria-label",t[10]),W(e,"style",r=se(t[14])),e.disabled=o=!t[4],W(e,"placeholder",t[17]),e.value=t[3]},m(n,r){T(n,e,r),t[85](e),i||(a=[L(e,"input",t[38]),L(e,"mousedown",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),L(e,"click",(function(){l(t[36]?t[40]:void 0)&&(t[36]?t[40]:void 0).apply(this,arguments)})),L(e,"focus",(function(){l(t[94])&&t[94].apply(this,arguments)})),L(e,"blur",(function(){l(t[95])&&t[95].apply(this,arguments)}))],i=!0)},p(i,a){t=i,256&a[0]&&W(e,"type",t[8]),512&a[0]&&W(e,"inputmode",t[9]),8&a[3]&&n!==(n=Ee("input__input",Ra,{"has-custom-focus":t[96],singleline:!0}))&&W(e,"class",n),1024&a[0]&&W(e,"aria-label",t[10]),16384&a[0]&&r!==(r=se(t[14]))&&W(e,"style",r),16&a[0]&&o!==(o=!t[4])&&(e.disabled=o),131072&a[0]&&W(e,"placeholder",t[17]),8&a[0]&&e.value!==t[3]&&(e.value=t[3])},d(n){n&&N(e),t[85](null),i=!1,s(a)}}}function ts(t){let e,n,r,o,i,a,s,l,c=!t[6]&&t[17]&&es(t);function u(t,e){return t[4]?rs:ns}let d=u(t),p=d(t);return{c(){e=I("span"),c&&c.c(),n=B(),r=I("span"),o=R("​"),s=B(),p.c(),W(r,"class",i=Ra.input__aligner),W(r,"aria-hidden","true"),W(r,"style",a=se(t[13])),W(e,"class",l=Ra["input__scroll-wrapper"])},m(t,i){T(t,e,i),c&&c.m(e,null),S(e,n),S(e,r),S(r,o),S(e,s),p.m(e,null)},p(t,o){!t[6]&&t[17]?c?c.p(t,o):(c=es(t),c.c(),c.m(e,n)):c&&(c.d(1),c=null),8192&o[0]&&a!==(a=se(t[13]))&&W(r,"style",a),d===(d=u(t))&&p?p.p(t,o):(p.d(1),p=d(t),p&&(p.c(),p.m(e,null)))},d(t){t&&N(e),c&&c.d(),p.d()}}}function es(t){let e,n,r,o;return{c(){e=I("div"),n=R(t[17]),W(e,"class",r=Ra.input__placeholder),W(e,"aria-hidden","true"),W(e,"style",o=se(t[14]))},m(t,r){T(t,e,r),S(e,n)},p(t,r){131072&r[0]&&X(n,t[17]),16384&r[0]&&o!==(o=se(t[14]))&&W(e,"style",o)},d(t){t&&N(e)}}}function ns(t){let e,n,r,o,i;return{c(){e=I("span"),W(e,"class",n=Ee("input__input",Ra,{multiline:!0})),W(e,"autocapitalize","off"),W(e,"contenteditable","false"),W(e,"role","textbox"),W(e,"aria-label",t[10]),W(e,"aria-disabled","true"),W(e,"aria-multiline","true"),W(e,"style",r=se(t[14])),void 0===t[6]&&wt((()=>t[84].call(e)))},m(n,r){T(n,e,r),t[83](e),void 0!==t[6]&&(e.innerText=t[6]),o||(i=L(e,"input",t[84]),o=!0)},p(t,n){1024&n[0]&&W(e,"aria-label",t[10]),16384&n[0]&&r!==(r=se(t[14]))&&W(e,"style",r),64&n[0]&&t[6]!==e.innerText&&(e.innerText=t[6])},d(n){n&&N(e),t[83](null),o=!1,i()}}}function rs(t){let e,n,r,o,i;return{c(){e=I("span"),W(e,"class",n=Ee("input__input",Ra,{"has-custom-focus":t[96],multiline:!0})),W(e,"autocapitalize","off"),W(e,"contenteditable","true"),W(e,"role","textbox"),W(e,"tabindex","0"),W(e,"aria-label",t[10]),W(e,"aria-multiline","true"),W(e,"style",r=se(t[14])),void 0===t[6]&&wt((()=>t[82].call(e)))},m(n,r){T(n,e,r),t[81](e),void 0!==t[6]&&(e.innerText=t[6]),o||(i=[L(e,"input",t[82]),L(e,"input",t[38]),L(e,"paste",ls),L(e,"mousedown",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),L(e,"click",(function(){l(t[36]?t[40]:void 0)&&(t[36]?t[40]:void 0).apply(this,arguments)})),L(e,"focus",(function(){l(t[94])&&t[94].apply(this,arguments)})),L(e,"blur",(function(){l(t[95])&&t[95].apply(this,arguments)}))],o=!0)},p(o,i){t=o,8&i[3]&&n!==(n=Ee("input__input",Ra,{"has-custom-focus":t[96],multiline:!0}))&&W(e,"class",n),1024&i[0]&&W(e,"aria-label",t[10]),16384&i[0]&&r!==(r=se(t[14]))&&W(e,"style",r),64&i[0]&&t[6]!==e.innerText&&(e.innerText=t[6])},d(n){n&&N(e),t[81](null),o=!1,s(i)}}}function os(t){let e;function n(t,e){return t[5]?ts:Qa}let r=n(t),o=r(t);return{c(){o.c(),e=U()},m(t,n){o.m(t,n),T(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&N(e),o.d(t)}}}function is(t){let e,n,r=!t[7]&&Za(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[7]?r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt()):r?(r.p(t,n),128&n[0]&&Ft(r,1)):(r=Za(t),r.c(),Ft(r,1),r.m(e.parentNode,e))},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}const as="undefined"!=typeof document&&"inputMode"in document.createElement("input"),ss={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"};function ls(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function cs(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,b,_,w,x,k,C,E,j,A,P,D,O,S,V,F,T,N,M,I,z,R,B,U,L,W,H,q,J,Y,X,G,K,Z,Q,tt,et,nt,rt=n,ot=n,it=n,at=n,st=n,ct=n,dt=n,ft=n,ht=n,mt=n,vt=n,yt=n,$t=n,bt=n,wt=n,xt=n,kt=n,Ct=n,Et=n,jt=n;t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>yt())),t.$$.on_destroy.push((()=>$t())),t.$$.on_destroy.push((()=>bt())),t.$$.on_destroy.push((()=>wt())),t.$$.on_destroy.push((()=>xt())),t.$$.on_destroy.push((()=>kt())),t.$$.on_destroy.push((()=>Ct())),t.$$.on_destroy.push((()=>Et())),t.$$.on_destroy.push((()=>jt()));let{componentContext:At}=e,{layoutParams:Pt}=e;const Dt=pt(re),Ot=Dt.direction;let St,Vt;f(t,Ot,(t=>r(64,z=t)));let Ft,Tt,Nt,Mt=!1,It=null,zt="",Rt="",Bt=!1,Ut="",Lt=12,Wt="",Ht="",qt="#000",Jt="",Yt="start",Xt="center",Gt="multi_line_text",Kt="text",Zt="",Qt=null,te="",ee="",ne="",ie=!0;function ae(t){Vt instanceof HTMLInputElement?r(2,Vt.selectionStart=r(2,Vt.selectionEnd=t,Vt),Vt):Ka(Vt,t)}async function se(){if(!Vt||!It)return;It.overrideRawValue(M),l.set(It.rawValue),$(s,N=r(3,zt=r(6,Rt=It.value)),N);const t=It.cursorPosition;await _t(),document.activeElement===Vt&&ae(t)}return lt((()=>{Vt&&It&&M&&(It.overrideRawValue(M),$(s,N=r(3,zt=r(6,Rt=It.value)),N))})),ut((()=>{St&&(Dt.unregisterFocusable(St),r(41,St=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,At=t.componentContext),"layoutParams"in t&&r(1,Pt=t.layoutParams)},t.$$.update=()=>{var e,n,f,$,lt,ut;if(1&t.$$.dirty[0]&&r(60,o=At.origJson),536870912&t.$$.dirty[1]&&o&&(r(43,Ut=""),r(44,Lt=12),r(45,Ft=void 0),r(46,Wt=""),r(47,Tt=void 0),r(49,qt="#000"),r(50,Jt=""),r(51,Yt="left"),r(52,Xt="center"),r(53,Gt="multi_line_text"),r(8,Kt="text"),r(9,Nt=void 0),r(4,ie=!0)),1&t.$$.dirty[0]&&r(58,i=At.json.text_variable),1&t.$$.dirty[0]&&r(59,a=null===(e=At.json.mask)||void 0===e?void 0:e.raw_text_variable),1&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&(r(12,s=i&&At.getVariable(i,"string")||$a("temp","string","")),rt(),rt=p(s,(t=>r(61,N=t)))),1&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(11,l=a&&At.getVariable(a,"string")||$a("temp","string","")),ot(),ot=p(l,(t=>r(62,M=t)))),1&t.$$.dirty[0]&&(r(35,c=At.getDerivedFromVars(At.json.hint_text)),Et(),Et=p(c,(t=>r(80,et=t)))),1&t.$$.dirty[0]&&(r(34,u=At.getDerivedFromVars(At.json.hint_color)),Ct(),Ct=p(u,(t=>r(79,tt=t)))),1&t.$$.dirty[0]&&(r(33,d=At.getDerivedFromVars(At.json.font_size)),kt(),kt=p(d,(t=>r(78,Q=t)))),1&t.$$.dirty[0]&&(r(32,h=At.getDerivedFromVars(At.json.font_weight)),xt(),xt=p(h,(t=>r(77,Z=t)))),1&t.$$.dirty[0]&&(r(31,g=At.getDerivedFromVars(At.json.font_family)),wt(),wt=p(g,(t=>r(76,K=t)))),1&t.$$.dirty[0]&&(r(30,m=At.getDerivedFromVars(At.json.line_height)),bt(),bt=p(m,(t=>r(75,G=t)))),1&t.$$.dirty[0]&&(r(29,v=At.getDerivedFromVars(At.json.letter_spacing)),$t(),$t=p(v,(t=>r(74,X=t)))),1&t.$$.dirty[0]&&(r(28,y=At.getDerivedFromVars(At.json.text_color)),yt(),yt=p(y,(t=>r(73,Y=t)))),1&t.$$.dirty[0]&&(r(27,b=At.getDerivedFromVars(At.json.highlight_color)),vt(),vt=p(b,(t=>r(72,J=t)))),1&t.$$.dirty[0]&&(r(26,_=At.getDerivedFromVars(At.json.text_alignment_horizontal)),mt(),mt=p(_,(t=>r(71,q=t)))),1&t.$$.dirty[0]&&(r(25,w=At.getDerivedFromVars(At.json.text_alignment_vertical)),ht(),ht=p(w,(t=>r(70,H=t)))),1&t.$$.dirty[0]&&(r(24,x=At.getDerivedFromVars(At.json.keyboard_type)),dt(),dt=p(x,(t=>r(68,L=t)))),1&t.$$.dirty[0]&&(r(23,k=At.getDerivedFromVars(At.json.mask)),ct(),ct=p(k,(t=>r(67,U=t)))),1&t.$$.dirty[0]&&(r(22,C=At.getDerivedFromVars(At.json.max_visible_lines)),st(),st=p(C,(t=>r(66,B=t)))),1&t.$$.dirty[0]&&(r(21,E=At.getDerivedFromVars(At.json.paddings)),at(),at=p(E,(t=>r(65,R=t)))),1&t.$$.dirty[0]&&(r(20,j=At.getDerivedFromVars(At.json.accessibility)),it(),it=p(j,(t=>r(63,I=t)))),1&t.$$.dirty[0]&&(r(19,A=At.getDerivedFromVars(At.json.select_all_on_focus)),jt(),jt=p(A,(t=>r(36,nt=t)))),1&t.$$.dirty[0]&&(r(18,P=At.getDerivedFromVars(At.json.is_enabled)),ft(),ft=p(P,(t=>r(69,W=t)))),1&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&(i?r(7,Bt=!1):(r(7,Bt=!0),At.logError(oe(new Error('Missing "text_variable" in "input"'))))),32&t.$$.dirty[2]&&("fixed_length"===(null==($=U)?void 0:$.type)?r(42,It=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new qa(r,e)}return n||null}($,At.logError,It)):"currency"===(null==$?void 0:$.type)&&r(42,It=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new Ya(t.locale,e)}($,At.logError,It)),It&&se()),8&t.$$.dirty[0]|1073743872&t.$$.dirty[1]&&(It||zt===N||r(3,zt=r(6,Rt=N))),2048&t.$$.dirty[1]|1&t.$$.dirty[2]&&It&&It.rawValue!==M&&se(),262144&t.$$.dirty[2]&&r(17,D=et),4096&t.$$.dirty[1]|131072&t.$$.dirty[2]&&r(43,Ut=de(tt,1,Ut)),8192&t.$$.dirty[1]|65536&t.$$.dirty[2]&&r(44,Lt=Cn(Q,Lt)),16384&t.$$.dirty[1]|49152&t.$$.dirty[2]&&(r(45,Ft=jn(Z,Ft)),r(46,Wt=K&&"string"==typeof K?Dt.typefaceProvider(K,{fontWeight:Ft||400}):"")),8192&t.$$.dirty[1]|8192&t.$$.dirty[2]){const t=G;Ze(t)&&r(47,Tt=t/Lt)}(4096&t.$$.dirty[2]&&Pe(X)&&r(48,Ht=le(X)),262144&t.$$.dirty[1]|2048&t.$$.dirty[2]&&r(49,qt=de(Y,1,qt)),524288&t.$$.dirty[1]|1024&t.$$.dirty[2]&&r(50,Jt=de(J,1,Jt)),1048576&t.$$.dirty[1]|516&t.$$.dirty[2]&&r(51,Yt=Vn(q,z,Yt)),2097152&t.$$.dirty[1]|256&t.$$.dirty[2]&&r(52,Xt=Fn(H,Xt)),16&t.$$.dirty[0]|128&t.$$.dirty[2]&&r(4,ie=Tn(W,ie)),96&t.$$.dirty[2]&&(L&&L in ss&&(r(8,Kt=ss[L]),r(53,Gt=L)),"currency"===(null===(n=U)||void 0===n?void 0:n.type)&&(r(8,Kt=as?"text":"tel"),r(9,Nt="decimal"))),4194304&t.$$.dirty[1]&&r(5,O="multi_line_text"===Gt),16850944&t.$$.dirty[1]|28&t.$$.dirty[2])&&(Ze(B)?r(54,Zt="calc(".concat(B*(Tt||1.25)*(Lt/10)+"em"," + ").concat(ce(we(null===(lt=R)||void 0===lt?void 0:lt.top,0)+we(null===(ut=R)||void 0===ut?void 0:ut.bottom,0)),")")):r(54,Zt=""),r(55,Qt=Ie(R||void 0,Qt)),r(56,te=Qt?Ae({top:(Number(Qt.top)||0)/Lt*10,right:(Number("ltr"===z?Qt.end:Qt.start)||Number(Qt.right)||0)/Lt*10,bottom:(Number(Qt.bottom)||0)/Lt*10,left:(Number("ltr"===z?Qt.start:Qt.end)||Number(Qt.left)||0)/Lt*10},z):""),r(57,ee=Qt?Ae({top:(Number(Qt.top)||0)/Lt*10,bottom:(Number(Qt.bottom)||0)/Lt*10},z):""));1&t.$$.dirty[0]|2&t.$$.dirty[2]&&(null!==(f=I)&&void 0!==f&&f.description?r(10,ne=I.description):At.logError(oe(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|3670016&t.$$.dirty[1]&&r(16,S={"highlight-color":Boolean(Jt),multiline:O,"alignment-horizontal":Yt,"alignment-vertical":Xt}),9424896&t.$$.dirty[1]&&r(15,V={"--divkit-input-hint-color":Ut,"--divkit-input-highlight-color":Jt,"--divkit-input-line-height":Tt,"font-weight":Ft,"font-family":Wt,"letter-spacing":Ht,color:qt,"max-height":Zt}),33562624&t.$$.dirty[1]&&r(14,F={"font-size":le(Lt),padding:te}),67117056&t.$$.dirty[1]&&r(13,T={"font-size":le(Lt),padding:ee}),5&t.$$.dirty[0]|1024&t.$$.dirty[1]&&Vt&&At.json&&(St&&(Dt.unregisterFocusable(St),r(41,St=void 0)),At.json.id&&!At.fakeElement&&(r(41,St=At.json.id),Dt.registerFocusable(St,{focus(){Vt&&Vt.focus()}})))},[At,Pt,Vt,zt,ie,O,Rt,Bt,Kt,Nt,ne,l,s,T,F,V,S,D,P,A,j,E,C,k,x,w,_,b,y,v,m,g,h,d,u,c,nt,Ot,function(t){let e=(O?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),zt!==e&&(r(3,zt=r(6,Rt=e)),s.setValue(e),It&&async function(){if(!Vt||!It)return;It.applyChangeFrom(zt,Vt instanceof HTMLInputElement?null===Vt.selectionEnd?void 0:Vt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const o=r.getRangeAt(0);let i;if(o){if(!o.collapsed)return 0;n+=o.endOffset,i=o.endContainer}if(i instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,i.childNodes.length);e<r;++e)t+=Ga(i.childNodes[e]);n=t}for(;i&&i!==t;){var e;const t=i.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(i);for(let e=0;e<r;++e)n+=Ga(t.childNodes[e]);i instanceof HTMLElement&&("DIV"===i.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===Xa||"BR"===i.tagName)&&++n,i=t}return n}catch(t){return 0}}(Vt)),l.set(It.rawValue),$(s,N=r(3,zt=r(6,Rt=It.value)),N);const t=It.cursorPosition;await _t(),document.activeElement===Vt&&ae(t)}())},function(){Mt=!1,setTimeout((()=>{Mt=!0}),250)},function(){if(!Mt)if(Vt instanceof HTMLInputElement)Vt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(Vt),t&&(t.removeAllRanges(),t.addRange(e))}},St,It,Ut,Lt,Ft,Wt,Tt,Ht,qt,Jt,Yt,Xt,Gt,Zt,Qt,te,ee,i,a,o,N,M,I,z,R,B,U,L,W,H,q,J,Y,X,G,K,Z,Q,tt,et,function(t){gt[t?"unshift":"push"]((()=>{Vt=t,r(2,Vt)}))},function(){Rt=this.innerText,r(6,Rt),r(42,It),r(3,zt),r(61,N)},function(t){gt[t?"unshift":"push"]((()=>{Vt=t,r(2,Vt)}))},function(){Rt=this.innerText,r(6,Rt),r(42,It),r(3,zt),r(61,N)},function(t){gt[t?"unshift":"push"]((()=>{Vt=t,r(2,Vt)}))}]}const us={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72","select__select_has-custom-focused":"divkit-a46ad","has-custom-focused":"divkit-fc5dc",select__option:"divkit-e774b"};function ds(t,e,n){const r=t.slice();return r[55]=e[n],r}function ps(t){let e,n;return e=new xn({props:{cls:Ee("select",us,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[hs,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{52:e,53:n,54:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?2097152:0)|(n?4194304:0)|(r?8388608:0)]}]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Ee("select",us,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8389564&n[0]|148897792&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function fs(t){let e,n,r,o,i=(t[55].text||t[55].value)+"";return{c(){e=I("option"),n=R(i),W(e,"class",r=us.select__option),e.__value=o=t[55].value,G(e,e.__value)},m(t,r){T(t,e,r),S(e,n)},p(t,r){16&r[0]&&i!==(i=(t[55].text||t[55].value)+"")&&X(n,i),16&r[0]&&o!==(o=t[55].value)&&(e.__value=o,G(e,e.__value))},d(t){t&&N(e)}}}function hs(t){let e,n,r,o,i,a,c,u,d,p,f=(t[3]||t[23]||"​")+"",h=zt(t[4]),g=[];for(let e=0;e<h.length;e+=1)g[e]=fs(ds(t,h,e));return{c(){e=I("span"),n=R(f),i=B(),a=I("select");for(let t=0;t<g.length;t+=1)g[t].c();W(e,"class",r=us["select__select-text"]),W(e,"style",o=se(t[9])),W(e,"aria-hidden","true"),W(a,"class",c=Ee("select__select",us,{"has-custom-focus":t[52]})),W(a,"aria-label",t[7]),W(a,"style",u=se(t[8])),void 0===t[5]&&wt((()=>t[49].call(a)))},m(r,o){T(r,e,o),S(e,n),T(r,i,o),T(r,a,o);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);t[48](a),Z(a,t[5],!0),d||(p=[L(a,"change",t[49]),L(a,"focus",(function(){l(t[53])&&t[53].apply(this,arguments)})),L(a,"blur",(function(){l(t[54])&&t[54].apply(this,arguments)}))],d=!0)},p(r,i){if(t=r,8388616&i[0]&&f!==(f=(t[3]||t[23]||"​")+"")&&X(n,f),512&i[0]&&o!==(o=se(t[9]))&&W(e,"style",o),16&i[0]){let e;for(h=zt(t[4]),e=0;e<h.length;e+=1){const n=ds(t,h,e);g[e]?g[e].p(n,i):(g[e]=fs(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=h.length}2097152&i[1]&&c!==(c=Ee("select__select",us,{"has-custom-focus":t[52]}))&&W(a,"class",c),128&i[0]&&W(a,"aria-label",t[7]),256&i[0]&&u!==(u=se(t[8]))&&W(a,"style",u),48&i[0]&&Z(a,t[5])},d(n){n&&(N(e),N(i),N(a)),M(g,n),t[48](null),d=!1,s(p)}}}function gs(t){let e,n,r=!t[6]&&ps(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[6]?r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt()):r?(r.p(t,n),64&n[0]&&Ft(r,1)):(r=ps(t),r.c(),Ft(r,1),r.m(e.parentNode,e))},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}function ms(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$,b,_,w,x,k,C,E,j,A,P,D,O,S,V,F,T,N,M=n,I=n,z=n,R=n,B=n,U=n,L=n,W=n,H=n,q=n,J=n;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J()));let{componentContext:Y}=e,{layoutParams:X}=e;const G=pt(re),K=G.direction;let Z,Q;f(t,K,(t=>r(46,V=t)));let tt,et,nt=!1,rt="",ot=null,it="",at="rgba(0,0,0,.45)",st=12,lt="",ct="",dt="#000",ft="";return ut((()=>{Z&&(G.unregisterFocusable(Z),r(25,Z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,Y=t.componentContext),"layoutParams"in t&&r(1,X=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(37,o=Y.origJson),64&t.$$.dirty[1]&&o&&(r(26,ot=null),r(28,at="rgba(0,0,0,.45)"),r(29,st=12),r(30,tt=void 0),r(31,lt=""),r(32,et=void 0),r(33,ct=""),r(34,dt="#000"),r(7,ft="")),1&t.$$.dirty[0]&&r(35,i=Y.json.value_variable),1&t.$$.dirty[0]&&r(36,a=Y.json.options),32&t.$$.dirty[1]&&r(4,s=Array.isArray(a)&&a.filter((t=>"string"==typeof t.value))||[]),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(r(22,l=i&&Y.getVariable(i,"string")||$a("temp","string","")),q(),q=p(l,(t=>r(5,T=t)))),1&t.$$.dirty[0]&&(r(21,c=Y.getDerivedFromVars(Y.json.paddings)),H(),H=p(c,(t=>r(47,F=t)))),1&t.$$.dirty[0]&&(r(20,u=Y.getDerivedFromVars(Y.json.hint_text)),J(),J=p(u,(t=>r(23,N=t)))),1&t.$$.dirty[0]&&(r(19,d=Y.getDerivedFromVars(Y.json.hint_color)),W(),W=p(d,(t=>r(45,S=t)))),1&t.$$.dirty[0]&&(r(18,h=Y.getDerivedFromVars(Y.json.font_size)),L(),L=p(h,(t=>r(44,O=t)))),1&t.$$.dirty[0]&&(r(17,g=Y.getDerivedFromVars(Y.json.font_weight)),U(),U=p(g,(t=>r(43,D=t)))),1&t.$$.dirty[0]&&(r(16,m=Y.getDerivedFromVars(Y.json.font_family)),B(),B=p(m,(t=>r(42,P=t)))),1&t.$$.dirty[0]&&(r(15,v=Y.getDerivedFromVars(Y.json.line_height)),R(),R=p(v,(t=>r(41,A=t)))),1&t.$$.dirty[0]&&(r(14,y=Y.getDerivedFromVars(Y.json.letter_spacing)),z(),z=p(y,(t=>r(40,j=t)))),1&t.$$.dirty[0]&&(r(13,$=Y.getDerivedFromVars(Y.json.text_color)),I(),I=p($,(t=>r(39,E=t)))),1&t.$$.dirty[0]&&(r(12,b=Y.getDerivedFromVars(Y.json.accessibility)),M(),M=p(b,(t=>r(38,C=t)))),17&t.$$.dirty[0]&&(Array.isArray(s)&&s.length||Y.logError(oe(new Error('Empty selection "items" in "select"')))),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(i?r(6,nt=!1):(r(6,nt=!0),Y.logError(oe(new Error('Missing "value_variable" in "select"'))))),49&t.$$.dirty[0]){const t=s.find((t=>t.value===T));t?r(3,rt=("string"==typeof t.text?t.text:t.value)||""):(r(3,rt=""),T&&Y.logError(oe(new Error('Value from the variable was not found in the selection items for "select"'))))}if(536870912&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(29,st=Cn(O,st)),603979776&t.$$.dirty[0]|98304&t.$$.dirty[1]&&(r(26,ot=Ie(F||void 0,ot)),r(27,it=ot?Ae({top:(Number(ot.top)||0)/st*10,right:(Number("ltr"===V?ot.end:ot.start)||Number(ot.right)||0)/st*10,bottom:(Number(ot.bottom)||0)/st*10,left:(Number("ltr"===V?ot.start:ot.end)||Number(ot.left)||0)/st*10},V):"")),268435456&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(28,at=de(S,1,at)),1073741824&t.$$.dirty[0]|6144&t.$$.dirty[1]&&(r(30,tt=jn(D,tt)),r(31,lt=P&&"string"==typeof P?G.typefaceProvider(P,{fontWeight:tt||400}):"")),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]){const t=A;Ze(t)&&r(32,et=t/st)}var e;536870912&t.$$.dirty[0]|512&t.$$.dirty[1]&&Pe(j)&&r(33,ct=le(j/st*10)),264&t.$$.dirty[1]&&r(34,dt=de(E,1,dt)),1&t.$$.dirty[0]|128&t.$$.dirty[1]&&(null!==(e=C)&&void 0!==e&&e.description?r(7,ft=C.description):Y.logError(oe(new Error('Missing accessibility "description" for select'),{level:"warn"}))),8&t.$$.dirty[0]&&r(11,_={hint:!rt}),1342177280&t.$$.dirty[0]|9&t.$$.dirty[1]&&r(10,w={"--divkit-input-hint-color":at,"font-weight":tt,"font-family":lt,color:dt}),671088640&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(9,x={padding:it,"font-size":le(st),"line-height":et,"letter-spacing":ct}),536870912&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(8,k={"font-size":le(st),"line-height":et,"letter-spacing":ct}),33554437&t.$$.dirty[0]&&Y.json&&Q&&(Z&&(G.unregisterFocusable(Z),r(25,Z=void 0)),Y.json.id&&!Y.fakeElement&&(r(25,Z=Y.json.id),G.registerFocusable(Z,{focus(){Q&&Q.focus()}})))},[Y,X,Q,rt,s,T,nt,ft,k,x,w,_,b,$,y,v,m,g,h,d,u,c,l,N,K,Z,ot,it,at,st,tt,lt,et,ct,dt,i,a,o,C,E,j,A,P,D,O,S,V,F,function(t){gt[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},function(){T=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),l.set(T),r(4,s),r(36,a),r(0,Y)}]}const vs={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function ys(t,e,n){const r=t.slice();return r[47]=e[n],r}function $s(t,e,n){const r=t.slice();return r[47]=e[n],r}function bs(t){let e,n;return e=new xn({props:{cls:Ee("video",vs,t[12]),customActions:"video",componentContext:t[0],layoutParams:t[1],$$slots:{default:[js]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=Ee("video",vs,t[12])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8184&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function _s(t){let e,n,r,o,i,a,l=zt(t[4]),c=[];for(let e=0;e<l.length;e+=1)c[e]=ks(ys(t,l,e));return{c(){e=I("video");for(let t=0;t<c.length;t+=1)c[t].c();W(e,"class",n=vs.video__video),W(e,"style",r=se(t[11])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],W(e,"poster",t[9]),W(e,"preload",o=t[8]?"metadata":"auto")},m(n,r){T(n,e,r);for(let t=0;t<c.length;t+=1)c[t]&&c[t].m(e,null);t[41](e),i||(a=[L(e,"timeupdate",t[21]),L(e,"ended",t[22]),L(e,"playing",t[23]),L(e,"pause",t[24]),L(e,"waiting",t[25]),L(e,"error",t[26])],i=!0)},p(t,n){if(67108880&n[0]){let r;for(l=zt(t[4]),r=0;r<l.length;r+=1){const o=ys(t,l,r);c[r]?c[r].p(o,n):(c[r]=ks(o),c[r].c(),c[r].m(e,null))}for(;r<c.length;r+=1)c[r].d(1);c.length=l.length}2048&n[0]&&r!==(r=se(t[11]))&&W(e,"style",r),32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),512&n[0]&&W(e,"poster",t[9]),256&n[0]&&o!==(o=t[8]?"metadata":"auto")&&W(e,"preload",o)},d(n){n&&N(e),M(c,n),t[41](null),i=!1,s(a)}}}function ws(t){let e,n,r,o,i,a,l,c,u="".concat(t[10],"%"),d=zt(t[4]),p=[];for(let e=0;e<d.length;e+=1)p[e]=Es($s(t,d,e));return{c(){e=I("div"),n=I("video");for(let t=0;t<p.length;t+=1)p[t].c();W(n,"class",r=vs.video__video),W(n,"style",o=se(t[11])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],W(n,"poster",t[9]),W(n,"preload",i=t[8]?"metadata":"auto"),W(e,"class",a=vs["video__aspect-wrapper"]),K(e,"padding-bottom",u)},m(r,o){T(r,e,o),S(e,n);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(n,null);t[40](n),l||(c=[L(n,"timeupdate",t[21]),L(n,"ended",t[22]),L(n,"playing",t[23]),L(n,"pause",t[24]),L(n,"waiting",t[25]),L(n,"error",t[26])],l=!0)},p(t,r){if(67108880&r[0]){let e;for(d=zt(t[4]),e=0;e<d.length;e+=1){const o=$s(t,d,e);p[e]?p[e].p(o,r):(p[e]=Es(o),p[e].c(),p[e].m(n,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=d.length}2048&r[0]&&o!==(o=se(t[11]))&&W(n,"style",o),32&r[0]&&(n.loop=t[5]),64&r[0]&&(n.autoplay=t[6]),128&r[0]&&(n.muted=t[7]),512&r[0]&&W(n,"poster",t[9]),256&r[0]&&i!==(i=t[8]?"metadata":"auto")&&W(n,"preload",i),1024&r[0]&&u!==(u="".concat(t[10],"%"))&&K(e,"padding-bottom",u)},d(n){n&&N(e),M(p,n),t[40](null),l=!1,s(c)}}}function xs(t){let e,n,r,o,i;return{c(){e=I("source"),u(e.src,n=t[47].src)||W(e,"src",n),W(e,"type",r=t[47].type)},m(n,r){T(n,e,r),o||(i=L(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[47].src)&&W(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&W(e,"type",r)},d(t){t&&N(e),o=!1,i()}}}function ks(t){let e,n=t[47],r=xs(t);return{c(){r.c(),e=U()},m(t,n){r.m(t,n),T(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[47])?(r.d(1),r=xs(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&N(e),r.d(t)}}}function Cs(t){let e,n,r,o,i;return{c(){e=I("source"),u(e.src,n=t[47].src)||W(e,"src",n),W(e,"type",r=t[47].type)},m(n,r){T(n,e,r),o||(i=L(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[47].src)&&W(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&W(e,"type",r)},d(t){t&&N(e),o=!1,i()}}}function Es(t){let e,n=t[47],r=Cs(t);return{c(){r.c(),e=U()},m(t,n){r.m(t,n),T(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[47])?(r.d(1),r=Cs(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&N(e),r.d(t)}}}function js(t){let e;function n(t,e){return t[12].aspect?ws:_s}let r=n(t),o=r(t);return{c(){o.c(),e=U()},m(t,n){o.m(t,n),T(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&N(e),o.d(t)}}}function As(t){let e,n,r=!t[2]&&bs(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[2]?r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt()):r?(r.p(t,n),4&n[0]&&Ft(r,1)):(r=bs(t),r.c(),Ft(r,1),r.m(e.parentNode,e))},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}function Ps(t,e,r){let o,i,a,s,l,c,u,d,f,h,g,m,v,y,$,b,_,w,x,k,C=n,E=n,j=n,A=n,P=n,D=n,O=n,S=n;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>S()));let{componentContext:V}=e,{layoutParams:F}=e;const T=pt(re);let N,M,I,z,R=!1,B=!1,U=[],L=!1,W=!1,H=!1,q=!1,J="fit",Y="0";function X(t){B?B=!1:M&&r(3,M.currentTime=Number(t)/1e3,M)}function G(){var t;null===(t=M)||void 0===t||t.pause()}function K(){var t;const e=null===(t=M)||void 0===t?void 0:t.play();e&&e.catch((t=>{V.logError(oe(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}return ut((()=>{N&&(T.unregisterInstance(N),r(27,N=void 0)),z&&(z(),r(29,z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,V=t.componentContext),"layoutParams"in t&&r(1,F=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&V.json&&(r(5,L=!1),r(6,W=!1),r(7,H=!1),r(8,q=!1),r(9,I=void 0),r(28,J="fit")),1&t.$$.dirty[0]&&r(31,o=V.json.elapsed_time_variable),1&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(30,i=o&&V.getVariable(o,"integer")||$a("temp","integer",0)),1610612736&t.$$.dirty[0]&&i&&(z&&z(),r(29,z=i.subscribe(X))),1&t.$$.dirty[0]&&(r(20,a=V.getDerivedFromVars(V.json.video_sources)),S(),S=p(a,(t=>r(39,k=t)))),1&t.$$.dirty[0]&&(r(19,s=V.getDerivedFromVars(V.json.repeatable)),O(),O=p(s,(t=>r(38,x=t)))),1&t.$$.dirty[0]&&(r(18,l=V.getDerivedFromVars(V.json.autostart)),C(),C=p(l,(t=>r(32,v=t)))),1&t.$$.dirty[0]&&(r(17,c=V.getDerivedFromVars(V.json.muted)),D(),D=p(c,(t=>r(37,w=t)))),1&t.$$.dirty[0]&&(r(16,u=V.getDerivedFromVars(V.json.preload_required)),P(),P=p(u,(t=>r(36,_=t)))),1&t.$$.dirty[0]&&(r(15,d=V.getDerivedFromVars(V.json.preview)),A(),A=p(d,(t=>r(35,b=t)))),1&t.$$.dirty[0]&&(r(14,f=V.getDerivedFromVars(V.json.scale)),j(),j=p(f,(t=>r(34,$=t)))),1&t.$$.dirty[0]&&(r(13,h=V.getDerivedFromVars(V.json.aspect)),E(),E=p(h,(t=>r(33,y=t)))),17&t.$$.dirty[0]|256&t.$$.dirty[1]&&(r(4,(e=k,n=U,U=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):n)),U.length?r(2,R=!1):(r(2,R=!0),V.logError(oe(new Error('Missing "video_sources" in "video"'))))),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(5,L=Tn(x,L)),64&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(6,W=Tn(v,W)),128&t.$$.dirty[0]|64&t.$$.dirty[1]&&r(7,H=Tn(w,H)),256&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(8,q=Tn(_,q)),512&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(9,I="string"==typeof b?Rr(b):I),268435456&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(28,J=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}($)||J),4&t.$$.dirty[1]){var F;const t=null===(F=y)||void 0===F?void 0:F.ratio;t&&Ze(t)?r(10,Y=(100/Number(t)).toFixed(2)):r(10,Y="0")}134217733&t.$$.dirty[0]&&V.json&&(N&&(T.unregisterInstance(N),r(27,N=void 0)),!V.json.id||R||V.fakeElement||(r(27,N=V.json.id),T.registerInstance(N,{pause:G,start:K}))),9&t.$$.dirty[0]|2&t.$$.dirty[1]&&V.json&&v&&M&&K(),1024&t.$$.dirty[0]&&r(12,g={aspect:"0"!==Y}),268435456&t.$$.dirty[0]&&r(11,m={"object-fit":J})},[V,F,R,M,U,L,W,H,q,I,Y,m,g,h,f,d,u,c,l,s,a,function(){M&&(B=!0,i.setValue(Math.floor(1e3*M.currentTime)))},function(){const t=V.getJsonWithVars(V.json.end_actions);V.execAnyActions(t)},function(){const t=V.getJsonWithVars(V.json.resume_actions);V.execAnyActions(t)},function(){const t=V.getJsonWithVars(V.json.pause_actions);V.execAnyActions(t)},function(){const t=V.getJsonWithVars(V.json.buffering_actions);V.execAnyActions(t)},function(){const t=V.getJsonWithVars(V.json.fatal_actions);V.execAnyActions(t)},N,J,z,i,o,v,y,$,b,_,w,x,k,function(t){gt[t?"unshift":"push"]((()=>{M=t,r(3,M)}))},function(t){gt[t?"unshift":"push"]((()=>{M=t,r(3,M)}))}]}function Ds(t,e,n){const r=t.slice();return r[11]=e[n],r}function Os(t){let e,n;return e=new xn({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[Ms]},$$scope:{ctx:t}}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.componentContext=t[0]),2&n&&(r.layoutParams=t[1]),16893&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Ss(t){let e,n=[t[7]],r={};for(let t=0;t<n.length;t+=1)r=o(r,n[t]);return{c(){e=I("template"),q(e,r)},m(n,r){T(n,e,r),e.content.innerHTML=t[6]},p(t,o){64&o&&(e.content.innerHTML=t[6]),q(e,r=Ut(n,[128&o&&t[7]]))},d(t){t&&N(e)}}}function Vs(t){let e,r,o=t[4],i=Ts(t);return{c(){i.c(),e=U()},m(t,n){i.m(t,n),T(t,e,n),r=!0},p(t,r){16&r&&d(o,o=t[4])?(St(),Tt(i,1,1,n),Vt(),i=Ts(t),i.c(),Ft(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Ft(i),r=!0)},o(t){Tt(i),r=!1},d(t){t&&N(e),i.d(t)}}}function Fs(t){let e,n;return e=new Ws({props:{componentContext:t[11]}}),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};256&n&&(r.componentContext=t[11]),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Ts(t){let e,n,r=zt(t[8]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Fs(Ds(t,r,e));const i=t=>Tt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=U()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(256&n){let a;for(r=zt(t[8]),a=0;a<r.length;a+=1){const i=Ds(t,r,a);o[a]?(o[a].p(i,n),Ft(o[a],1)):(o[a]=Fs(i),o[a].c(),Ft(o[a],1),o[a].m(e.parentNode,e))}for(St(),a=r.length;a<o.length;a+=1)i(a);Vt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ft(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Tt(o[t]);n=!1},d(t){t&&N(e),M(o,t)}}}function Ns(t){let e,n,r,i=t[6]&&Ss(t),a=!t[3]&&t[4]&&Vs(t),s=[t[0].json.custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=o(l,s[t]);return{c(){e=I(t[2].element),i&&i.c(),n=B(),a&&a.c(),Y(t[2].element)(e,l)},m(o,s){T(o,e,s),i&&i.m(e,null),S(e,n),a&&a.m(e,null),t[9](e),r=!0},p(t,r){t[6]?i?i.p(t,r):(i=Ss(t),i.c(),i.m(e,n)):i&&(i.d(1),i=null),!t[3]&&t[4]?a?(a.p(t,r),24&r&&Ft(a,1)):(a=Vs(t),a.c(),Ft(a,1),a.m(e,null)):a&&(St(),Tt(a,1,1,(()=>{a=null})),Vt()),Y(t[2].element)(e,l=Ut(s,[1&r&&(t[0].json.custom_props||{})]))},i(t){r||(Ft(a),r=!0)},o(t){Tt(a),r=!1},d(n){n&&N(e),i&&i.d(),a&&a.d(),t[9](null)}}}function Ms(t){let e,r,o=t[2].element,i=t[2].element&&Ns(t);return{c(){i&&i.c(),e=U()},m(t,n){i&&i.m(t,n),T(t,e,n)},p(t,n){t[2].element?o?d(o,t[2].element)?(i.d(1),i=Ns(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):i.p(t,n):(i=Ns(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):o&&(i.d(1),i=null,o=t[2].element)},i:n,o(t){Tt(i,t),r=!1},d(t){t&&N(e),i&&i.d(t)}}}function Is(t){let e,n,r=t[2]&&Os(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Ft(r,1)):(r=Os(t),r.c(),Ft(r,1),r.m(e.parentNode,e)):r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt())},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}function zs(t,e,n){let r,o,{componentContext:i}=e,{layoutParams:a}=e;const s=pt(re);let l,c=null,u="",d={},p=!1;return lt((()=>{if(l&&"divKitApiCallback"in l&&"function"==typeof l.divKitApiCallback){const t=s.getExtensionContext();l.divKitApiCallback(t)}})),t.$$set=t=>{"componentContext"in t&&n(0,i=t.componentContext),"layoutParams"in t&&n(1,a=t.layoutParams)},t.$$.update=()=>{var e;if(5&t.$$.dirty)if("string"==typeof i.json.custom_type&&i.json.custom_type&&null!==(e=s.customComponents)&&void 0!==e&&e.has(i.json.custom_type)){if(n(2,c=s.customComponents.get(i.json.custom_type)),"function"==typeof c.template){const t=s.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(6,u=c.template({props:i.json.custom_props,variables:e}))}else c.template&&"string"==typeof c.template?n(6,u=c.template):n(6,u="");n(7,d={shadowrootmode:c.shadowRootMode||"open"})}else n(2,c=null),n(6,u=";"),i.logError(oe(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(4,r=i.json.items),17&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(3,p=!1):(n(3,p=!0),i.logError(oe(new Error('Incorrect "items" prop for div "custom"'))))),25&t.$$.dirty&&n(8,o=(!p&&r||[]).map(((t,e)=>i.produceChildContext(t,{path:e}))))},[i,a,c,p,r,l,u,d,o,function(t){gt[t?"unshift":"push"]((()=>{l=t,n(5,l)}))}]}const Rs={};function Bs(t){let e,n,r;var o=t[2];function i(t,e){return{props:{componentContext:t[0],layoutParams:t[1]}}}return o&&(e=tt(o,i(t))),{c(){e&&Jt(e.$$.fragment),n=U()},m(t,o){e&&Yt(e,t,o),T(t,n,o),r=!0},p(t,r){if(4&r&&o!==(o=t[2])){if(e){St();const t=e;Tt(t.$$.fragment,1,0,(()=>{Xt(t,1)})),Vt()}o?(e=tt(o,i(t)),Jt(e.$$.fragment),Ft(e.$$.fragment,1),Yt(e,n.parentNode,n)):e=null}else if(o){const n={};1&r&&(n.componentContext=t[0]),2&r&&(n.layoutParams=t[1]),e.$set(n)}},i(t){r||(e&&Ft(e.$$.fragment,t),r=!0)},o(t){e&&Tt(e.$$.fragment,t),r=!1},d(t){t&&N(n),e&&Xt(e,t)}}}function Us(t){let e,n,r=t[2]&&Bs(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Ft(r,1)):(r=Bs(t),r.c(),Ft(r,1),r.m(e.parentNode,e)):r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt())},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}function Ls(t,e,n){let{componentContext:r}=e,{layoutParams:o}=e;const i=pt(re);let a;return t.$$set=t=>{"componentContext"in t&&n(0,r=t.componentContext),"layoutParams"in t&&n(1,o=t.layoutParams)},t.$$.update=()=>{if(5&t.$$.dirty){const t=r.json;if(n(2,a=(null==t?void 0:t.type)&&Rs[t.type]||void 0),!a){let e;e=null!=t&&t.type&&i.hasTemplate(t.type)?"Recursive template":"Unknown component",r.logError(oe(new Error(e),{additional:{component:(null==t?void 0:t.type)||"<missing>"}}))}}},[r,o,a]}Rs.text=class extends Zt{constructor(t){super(),Gt(this,t,Zn,Kn,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Rs.container=class extends Zt{constructor(t){super(),Gt(this,t,Sr,jr,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Rs.separator=class extends Zt{constructor(t){super(),Gt(this,t,Ir,Mr,d,{componentContext:0,layoutParams:1})}},Rs.image=Gr,Rs.gif=Gr,Rs.grid=class extends Zt{constructor(t){super(),Gt(this,t,uo,lo,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Rs.gallery=class extends Zt{constructor(t){super(),Gt(this,t,Po,Ao,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Rs.tabs=class extends Zt{constructor(t){super(),Gt(this,t,Ho,Wo,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},Rs.state=class extends Zt{constructor(t){super(),Gt(this,t,Ei,ki,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Rs.pager=class extends Zt{constructor(t){super(),Gt(this,t,Ri,Ii,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Rs.indicator=class extends Zt{constructor(t){super(),Gt(this,t,Ki,Xi,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Rs.slider=class extends Zt{constructor(t){super(),Gt(this,t,za,Fa,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Rs.input=class extends Zt{constructor(t){super(),Gt(this,t,cs,is,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},Rs.select=class extends Zt{constructor(t){super(),Gt(this,t,ms,gs,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Rs.video=class extends Zt{constructor(t){super(),Gt(this,t,Ps,As,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Rs.custom=class extends Zt{constructor(t){super(),Gt(this,t,zs,Is,d,{componentContext:0,layoutParams:1})}};const Ws=class extends Zt{constructor(t){super(),Gt(this,t,Ls,Us,d,{componentContext:0,layoutParams:1})}},Hs={"root-svg-filters":"divkit-dc22b"};function qs(t,e,n){const r=t.slice();r[1]=e[n];const o=r[1].split(":");return r[2]=o[0],r[3]=o[1],r}function Js(t){let e,n,r,o=zt([...Object.keys(t[0])]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Ks(qs(t,o,e));return{c(){e=z("svg"),n=z("defs");for(let t=0;t<i.length;t+=1)i[t].c();W(e,"class",r=Hs["root-svg-filters"]),W(e,"aria-hidden","true")},m(t,r){T(t,e,r),S(e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=zt([...Object.keys(t[0])]),r=0;r<o.length;r+=1){const a=qs(t,o,r);i[r]?i[r].p(a,e):(i[r]=Ks(a),i[r].c(),i[r].m(n,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&N(e),M(i,t)}}}function Ys(t){let e,n;return{c(){e=z("feBlend"),W(e,"in2","SourceGraphic"),W(e,"mode",n=t[3])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&W(e,"mode",n)},d(t){t&&N(e)}}}function Xs(t){let e;return{c(){e=z("feComposite"),W(e,"in2","SourceGraphic"),W(e,"operator","arithmetic"),W(e,"k1","1"),W(e,"k2","0"),W(e,"k3","0"),W(e,"k4","0")},m(t,n){T(t,e,n)},p:n,d(t){t&&N(e)}}}function Gs(t){let e,n;return{c(){e=z("feComposite"),W(e,"in2","SourceGraphic"),W(e,"operator",n=t[3].split("_")[1])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&W(e,"operator",n)},d(t){t&&N(e)}}}function Ks(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Gs:"multiply"===t[3]?Xs:Ys}let a=i(t),s=a(t);return{c(){e=z("filter"),n=z("feFlood"),s.c(),W(n,"flood-color",r=t[2]),W(e,"id",o=t[0][t[1]])},m(t,r){T(t,e,r),S(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&W(n,"flood-color",r),a===(a=i(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&o!==(o=t[0][t[1]])&&W(e,"id",o)},d(t){t&&N(e),s.d()}}}function Zs(t){let e,r=Object.keys(t[0]).length,o=r&&Js(t);return{c(){o&&o.c(),e=U()},m(t,n){o&&o.m(t,n),T(t,e,n)},p(t,n){let[i]=n;1&i&&(r=Object.keys(t[0]).length),r?o?o.p(t,i):(o=Js(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:n,o:n,d(t){t&&N(e),o&&o.d(t)}}}function Qs(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const tl=class extends Zt{constructor(t){super(),Gt(this,t,Qs,Zs,d,{svgFiltersMap:0})}};function el(t,e,n,r){const o=n[t.type];if(!o)return r(oe(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let i;const a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(a[i]=t[i]);const s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),o=r.filter((t=>"$"!==t.charAt(0))),i=r.filter((t=>"$"===t.charAt(0)));return o.forEach((r=>{const o=n[r];"object"==typeof o&&null!==o?(e[r]=Array.isArray(o)?[]:{},t(e[r],o)):e[r]=o})),i.forEach((t=>{const r=n[t],o=a[r];if(void 0!==o){const n=t.substring(1);e[n]=o}})),e}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(s[i]=t[i]);return{json:s,templateContext:a}}function nl(t,e){return e.length?e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t):t}function rl(t,e){return e.length?e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t):t}function ol(t){if(t.every((t=>"string"==typeof t)))return{type:"StringLiteral",value:t.join("")};let e=t.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]).reduce(((t,e)=>("string"==typeof e?t.quasis.push({type:"StringLiteral",value:e}):(t.quasis.length===t.expressions.length&&t.quasis.push({type:"StringLiteral",value:""}),t.expressions.push(e)),t)),{type:"TemplateLiteral",quasis:[],expressions:[]});return e.quasis.length===e.expressions.length&&e.quasis.push({type:"StringLiteral",value:""}),e}function il(t){try{return ia(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function al(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function sl(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,sl.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function ll(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function cl(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:Ee,JsonStringContents:function(){var t,e,n;for(t=fe,e=[],n=je();n!==r;)e.push(n),n=je();return he=t,e=jt(e)}},a=Ee,s="@{",l="}",c="@{}",u="\\",d="?",p=":",f="!:",h="||",g="&&",m="==",v="!=",y=">=",$=">",b="<=",_="<",w="+",x="-",k="/",C="*",E="%",j="!",A=".",P="(",D=")",O=",",S="'",V="e",F="E",T=/^[^}]/,N=/^[^'}]/,M=/^[0-9]/,I=/^[a-zA-Z_]/,z=/^[a-zA-Z_0-9]/,R=/^[ \t\r\n]/,B=be("@{",!1),U=be("}",!1),L=be("@{}",!1),W=be("\\",!1),H={type:"any"},q=_e(["}"],!0,!1),J=be("?",!1),Y=be(":",!1),X=be("!:",!1),G=be("||",!1),K=be("&&",!1),Z=be("==",!1),Q=be("!=",!1),tt=be(">=",!1),et=be(">",!1),nt=be("<=",!1),rt=be("<",!1),ot=be("+",!1),it=be("-",!1),at=be("/",!1),st=be("*",!1),lt=be("%",!1),ct=be("!",!1),ut=be(".",!1),dt=be("(",!1),pt=be(")",!1),ft=be(",",!1),ht=we("string"),gt=be("'",!1),mt=_e(["'","}"],!0,!1),vt=we("integer"),yt=_e([["0","9"]],!1,!1),$t=we("number"),bt=be("e",!1),_t=be("E",!1),wt=_e([["a","z"],["A","Z"],"_"],!1,!1),xt=_e([["a","z"],["A","Z"],"_",["0","9"]],!1,!1),kt=we("whitespace"),Ct=_e([" ","\t","\r","\n"],!1,!1),Et=function(t){return t},jt=function(t){return ol(t)},At=function(t){return t},Pt=function(){return""},Dt=function(){return $e()},Ot=function(){throw new Error("Error tokenizing '"+t+"'.")},St=function(){throw new Error("Error tokenizing '"+t+"'.")},Vt=function(t){return t},Ft=function(t){return al(t)},Tt=function(){throw new Error("Error tokenizing '"+t+"'.")},Nt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Mt=function(t,e){return{type:"TryExpression",test:t,alternate:e}},It=function(t,e){return rl(t,e)},zt=function(t,e){return rl(t,e)},Rt=function(t,e){return nl(t,e)},Bt=function(t,e){return nl(t,e)},Ut=function(t,e){return nl(t,e)},Lt=function(t,e){return nl(t,e)},Wt=function(t){return t},Ht=function(t){return t},qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Jt=function(){throw new Error("Incorrect unary operator")},Yt=function(t,e){return function(t,e){return e.length?e.reduce(((t,e)=>{if(!e[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:t,method:e[3],arguments:e[5][2]}}),t):t}(t,e)},Xt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Gt=function(t,e){return[t,...e]},Kt=function(t){return t},Zt=function(t){return t},Qt=function(t){return ol(t)},te=function(t){return t},ee=function(){return""},ne=function(){return $e()},re=function(){throw new Error("Error tokenizing '"+t+"'.")},oe=function(){throw new Error("Error tokenizing '"+t+"'.")},ie=function(t){return t},ae=function(t){return al(t)},se=function(){throw new Error("Error tokenizing '"+t+"'.")},le=function(){return{type:"IntegerLiteral",value:il($e())}},ce=function(){return{type:"NumberLiteral",value:parseFloat($e())}},ue=function(){return{type:"NumberLiteral",value:parseFloat($e())}},de=function(){const t=$e();if(/\.\./.test(t)||/\.$/.test(t))throw new Error("Unexpected token: .");return function(t){return"true"===t||"false"===t?{type:"BooleanLiteral",value:"true"===t}:{type:"Variable",id:{type:"Identifier",name:t}}}(t)},pe=function(){return{type:"Identifier",name:$e()}},fe=0,he=0,ge=[{line:1,column:1}],me=0,ve=[],ye=0;if("startRule"in e){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=i[e.startRule]}function $e(){return t.substring(he,fe)}function be(t,e){return{type:"literal",text:t,ignoreCase:e}}function _e(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function we(t){return{type:"other",description:t}}function xe(e){var n,r=ge[e];if(r)return r;for(n=e-1;!ge[n];)n--;for(r={line:(r=ge[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return ge[e]=r,r}function ke(t,e,n){var r=xe(t),i=xe(e),a={source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}};return n&&o&&"function"==typeof o.offset&&(a.start=o.offset(a.start),a.end=o.offset(a.end)),a}function Ce(t){fe<me||(fe>me&&(me=fe,ve=[]),ve.push(t))}function Ee(){var t,e;return t=fe,Le(),(e=Ae())!==r?(Le(),he=t,t=Et(e)):(fe=t,t=r),t}function je(){var e,n,o,i,a;if(e=fe,t.substr(fe,2)===s?(n=s,fe+=2):(n=r,0===ye&&Ce(B)),n!==r?(o=Le(),(i=Ae())!==r?(Le(),125===t.charCodeAt(fe)?(a=l,fe++):(a=r,0===ye&&Ce(U)),a!==r?(he=e,e=At(i)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,t.substr(fe,3)===c?(n=c,fe+=3):(n=r,0===ye&&Ce(L)),n!==r&&(he=e,n=Pt()),(e=n)===r&&(e=fe,n=fe,ye++,92===t.charCodeAt(fe)?(o=u,fe++):(o=r,0===ye&&Ce(W)),o===r&&(t.substr(fe,2)===s?(o=s,fe+=2):(o=r,0===ye&&Ce(B))),ye--,o===r?n=void 0:(fe=n,n=r),n!==r?(t.length>fe?(o=t.charAt(fe),fe++):(o=r,0===ye&&Ce(H)),o!==r?(he=e,e=Dt()):(fe=e,e=r)):(fe=e,e=r),e===r))){if(e=fe,t.substr(fe,2)===s?(n=s,fe+=2):(n=r,0===ye&&Ce(B)),n!==r){if(o=[],T.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===ye&&Ce(q)),i!==r)for(;i!==r;)o.push(i),T.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===ye&&Ce(q));else o=r;o!==r?(125===t.charCodeAt(fe)?(i=l,fe++):(i=r,0===ye&&Ce(U)),i!==r?(he=e,e=Ot()):(fe=e,e=r)):(fe=e,e=r)}else fe=e,e=r;e===r&&(e=fe,t.substr(fe,2)===s?(n=s,fe+=2):(n=r,0===ye&&Ce(B)),n!==r&&(he=e,n=St()),(e=n)===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===ye&&Ce(W)),n!==r?(t.substr(fe,2)===s?(o=s,fe+=2):(o=r,0===ye&&Ce(B)),o!==r?(he=e,e=Vt(o)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===ye&&Ce(W)),n!==r?(t.length>fe?(o=t.charAt(fe),fe++):(o=r,0===ye&&Ce(H)),o!==r?(he=e,e=Ft(o)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===ye&&Ce(W)),n!==r&&(he=e,n=Tt()),e=n))))}return e}function Ae(){var e,n,o,i,a,s;return e=fe,(n=Pe())!==r?(Le(),63===t.charCodeAt(fe)?(o=d,fe++):(o=r,0===ye&&Ce(J)),o!==r?(Le(),(i=Ae())!==r?(Le(),58===t.charCodeAt(fe)?(a=p,fe++):(a=r,0===ye&&Ce(Y)),a!==r?(Le(),(s=Ae())!==r?(he=e,e=Nt(n,i,s)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=Pe()),e}function Pe(){var e,n,o,i;return e=fe,(n=De())!==r?(Le(),t.substr(fe,2)===f?(o=f,fe+=2):(o=r,0===ye&&Ce(X)),o!==r?(Le(),(i=Ae())!==r?(he=e,e=Mt(n,i)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=De()),e}function De(){var e,n,o,i,a,s,l,c;if(e=fe,(n=Oe())!==r){for(o=[],i=fe,a=Le(),t.substr(fe,2)===h?(s=h,fe+=2):(s=r,0===ye&&Ce(G)),s!==r?(l=Le(),(c=Oe())!==r?i=a=[a,s,l,c]:(fe=i,i=r)):(fe=i,i=r);i!==r;)o.push(i),i=fe,a=Le(),t.substr(fe,2)===h?(s=h,fe+=2):(s=r,0===ye&&Ce(G)),s!==r?(l=Le(),(c=Oe())!==r?i=a=[a,s,l,c]:(fe=i,i=r)):(fe=i,i=r);he=e,e=It(n,o)}else fe=e,e=r;return e}function Oe(){var e,n,o,i,a,s,l,c;if(e=fe,(n=Se())!==r){for(o=[],i=fe,a=Le(),t.substr(fe,2)===g?(s=g,fe+=2):(s=r,0===ye&&Ce(K)),s!==r?(l=Le(),(c=Se())!==r?i=a=[a,s,l,c]:(fe=i,i=r)):(fe=i,i=r);i!==r;)o.push(i),i=fe,a=Le(),t.substr(fe,2)===g?(s=g,fe+=2):(s=r,0===ye&&Ce(K)),s!==r?(l=Le(),(c=Se())!==r?i=a=[a,s,l,c]:(fe=i,i=r)):(fe=i,i=r);he=e,e=zt(n,o)}else fe=e,e=r;return e}function Se(){var e,n,o,i,a,s,l,c;if(e=fe,(n=Ve())!==r){for(o=[],i=fe,a=Le(),t.substr(fe,2)===m?(s=m,fe+=2):(s=r,0===ye&&Ce(Z)),s===r&&(t.substr(fe,2)===v?(s=v,fe+=2):(s=r,0===ye&&Ce(Q))),s!==r?(l=Le(),(c=Ve())!==r?i=a=[a,s,l,c]:(fe=i,i=r)):(fe=i,i=r);i!==r;)o.push(i),i=fe,a=Le(),t.substr(fe,2)===m?(s=m,fe+=2):(s=r,0===ye&&Ce(Z)),s===r&&(t.substr(fe,2)===v?(s=v,fe+=2):(s=r,0===ye&&Ce(Q))),s!==r?(l=Le(),(c=Ve())!==r?i=a=[a,s,l,c]:(fe=i,i=r)):(fe=i,i=r);he=e,e=Rt(n,o)}else fe=e,e=r;return e}function Ve(){var e,n,o,i,a,s,l,c;if(e=fe,(n=Fe())!==r){for(o=[],i=fe,a=Le(),t.substr(fe,2)===y?(s=y,fe+=2):(s=r,0===ye&&Ce(tt)),s===r&&(62===t.charCodeAt(fe)?(s=$,fe++):(s=r,0===ye&&Ce(et)),s===r&&(t.substr(fe,2)===b?(s=b,fe+=2):(s=r,0===ye&&Ce(nt)),s===r&&(60===t.charCodeAt(fe)?(s=_,fe++):(s=r,0===ye&&Ce(rt))))),s!==r?(l=Le(),(c=Fe())!==r?i=a=[a,s,l,c]:(fe=i,i=r)):(fe=i,i=r);i!==r;)o.push(i),i=fe,a=Le(),t.substr(fe,2)===y?(s=y,fe+=2):(s=r,0===ye&&Ce(tt)),s===r&&(62===t.charCodeAt(fe)?(s=$,fe++):(s=r,0===ye&&Ce(et)),s===r&&(t.substr(fe,2)===b?(s=b,fe+=2):(s=r,0===ye&&Ce(nt)),s===r&&(60===t.charCodeAt(fe)?(s=_,fe++):(s=r,0===ye&&Ce(rt))))),s!==r?(l=Le(),(c=Fe())!==r?i=a=[a,s,l,c]:(fe=i,i=r)):(fe=i,i=r);he=e,e=Bt(n,o)}else fe=e,e=r;return e}function Fe(){var e,n,o,i,a,s,l,c;if(e=fe,(n=Te())!==r){for(o=[],i=fe,a=Le(),43===t.charCodeAt(fe)?(s=w,fe++):(s=r,0===ye&&Ce(ot)),s===r&&(45===t.charCodeAt(fe)?(s=x,fe++):(s=r,0===ye&&Ce(it))),s!==r?(l=Le(),(c=Te())!==r?i=a=[a,s,l,c]:(fe=i,i=r)):(fe=i,i=r);i!==r;)o.push(i),i=fe,a=Le(),43===t.charCodeAt(fe)?(s=w,fe++):(s=r,0===ye&&Ce(ot)),s===r&&(45===t.charCodeAt(fe)?(s=x,fe++):(s=r,0===ye&&Ce(it))),s!==r?(l=Le(),(c=Te())!==r?i=a=[a,s,l,c]:(fe=i,i=r)):(fe=i,i=r);he=e,e=Ut(n,o)}else fe=e,e=r;return e}function Te(){var e,n,o,i,a,s,l,c;if(e=fe,(n=Ne())!==r){for(o=[],i=fe,a=Le(),47===t.charCodeAt(fe)?(s=k,fe++):(s=r,0===ye&&Ce(at)),s===r&&(42===t.charCodeAt(fe)?(s=C,fe++):(s=r,0===ye&&Ce(st)),s===r&&(37===t.charCodeAt(fe)?(s=E,fe++):(s=r,0===ye&&Ce(lt)))),s!==r?(l=Le(),(c=Ne())!==r?i=a=[a,s,l,c]:(fe=i,i=r)):(fe=i,i=r);i!==r;)o.push(i),i=fe,a=Le(),47===t.charCodeAt(fe)?(s=k,fe++):(s=r,0===ye&&Ce(at)),s===r&&(42===t.charCodeAt(fe)?(s=C,fe++):(s=r,0===ye&&Ce(st)),s===r&&(37===t.charCodeAt(fe)?(s=E,fe++):(s=r,0===ye&&Ce(lt)))),s!==r?(l=Le(),(c=Ne())!==r?i=a=[a,s,l,c]:(fe=i,i=r)):(fe=i,i=r);he=e,e=Lt(n,o)}else fe=e,e=r;return e}function Ne(){var e,n,o,i;return e=fe,n=fe,ye++,45===t.charCodeAt(fe)?(o=x,fe++):(o=r,0===ye&&Ce(it)),ye--,o!==r?(fe=n,n=void 0):n=r,n!==r&&(o=Be())!==r?(he=e,e=Wt(o)):(fe=e,e=r),e===r&&(e=fe,n=fe,ye++,45===t.charCodeAt(fe)?(o=x,fe++):(o=r,0===ye&&Ce(it)),ye--,o!==r?(fe=n,n=void 0):n=r,n!==r&&(o=Re())!==r?(he=e,e=Ht(o)):(fe=e,e=r),e===r&&(e=fe,33===t.charCodeAt(fe)?(n=j,fe++):(n=r,0===ye&&Ce(ct)),n===r&&(43===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===ye&&Ce(ot)),n===r&&(45===t.charCodeAt(fe)?(n=x,fe++):(n=r,0===ye&&Ce(it)))),n!==r?(o=Le(),i=function(){var e,n;return e=fe,43===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===ye&&Ce(ot)),n===r&&(45===t.charCodeAt(fe)?(n=x,fe++):(n=r,0===ye&&Ce(it))),n!==r&&(he=e,n=Jt()),e=n}(),i===r&&(i=Me()),i!==r?(he=e,e=qt(n,i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=Me()))),e}function Me(){var e,n,o,i,a,s,l,c,u,d,p,f,h,g,m;if(e=fe,n=function(){var e,n,o,i,a;return e=fe,(n=Ue())!==r?(Le(),40===t.charCodeAt(fe)?(o=P,fe++):(o=r,0===ye&&Ce(dt)),o!==r?(Le(),(i=Ie())!==r?(Le(),41===t.charCodeAt(fe)?(a=D,fe++):(a=r,0===ye&&Ce(pt)),a!==r?(he=e,e=Xt(n,i)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i,a,s,l,c,u,d,p;if(e=fe,I.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=r,0===ye&&Ce(wt)),n!==r){if(o=[],i=[],z.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=r,0===ye&&Ce(xt)),a!==r)for(;a!==r;)i.push(a),z.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=r,0===ye&&Ce(xt));else i=r;for(i===r&&(i=fe,46===t.charCodeAt(fe)?(a=A,fe++):(a=r,0===ye&&Ce(ut)),a!==r?(s=fe,ye++,l=fe,c=Le(),(u=Ue())!==r?(d=Le(),40===t.charCodeAt(fe)?(p=P,fe++):(p=r,0===ye&&Ce(dt)),p!==r?l=c=[c,u,d,p]:(fe=l,l=r)):(fe=l,l=r),ye--,l===r?s=void 0:(fe=s,s=r),s!==r?i=a=[a,s]:(fe=i,i=r)):(fe=i,i=r));i!==r;){if(o.push(i),i=[],z.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=r,0===ye&&Ce(xt)),a!==r)for(;a!==r;)i.push(a),z.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=r,0===ye&&Ce(xt));else i=r;i===r&&(i=fe,46===t.charCodeAt(fe)?(a=A,fe++):(a=r,0===ye&&Ce(ut)),a!==r?(s=fe,ye++,l=fe,c=Le(),(u=Ue())!==r?(d=Le(),40===t.charCodeAt(fe)?(p=P,fe++):(p=r,0===ye&&Ce(dt)),p!==r?l=c=[c,u,d,p]:(fe=l,l=r)):(fe=l,l=r),ye--,l===r?s=void 0:(fe=s,s=r),s!==r?i=a=[a,s]:(fe=i,i=r)):(fe=i,i=r))}he=e,e=de()}else fe=e,e=r;return e}(),e===r&&(e=function(){var e,n,o,i;return ye++,e=fe,39===t.charCodeAt(fe)?(n=S,fe++):(n=r,0===ye&&Ce(gt)),n!==r?(o=function(){var t,e,n;for(t=fe,e=[],n=ze();n!==r;)e.push(n),n=ze();return he=t,t=e=Qt(e)}(),39===t.charCodeAt(fe)?(i=S,fe++):(i=r,0===ye&&Ce(gt)),i!==r?(he=e,e=Zt(o)):(fe=e,e=r)):(fe=e,e=r),ye--,e===r&&(n=r,0===ye&&Ce(ht)),e}(),e===r&&(e=Be())===r&&(e=Re())===r&&(e=fe,40===t.charCodeAt(fe)?(n=P,fe++):(n=r,0===ye&&Ce(dt)),n!==r?(Le(),(o=Ae())!==r?(Le(),41===t.charCodeAt(fe)?(i=D,fe++):(i=r,0===ye&&Ce(pt)),i!==r?(he=e,e=Kt(o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r))),e}()),e}(),n!==r){for(o=[],i=fe,a=Le(),46===t.charCodeAt(fe)?(s=A,fe++):(s=r,0===ye&&Ce(ut)),s!==r?(l=Le(),(c=Ue())!==r?(u=Le(),d=fe,40===t.charCodeAt(fe)?(p=P,fe++):(p=r,0===ye&&Ce(dt)),p!==r?(f=Le(),(h=Ie())!==r?(g=Le(),41===t.charCodeAt(fe)?(m=D,fe++):(m=r,0===ye&&Ce(pt)),m!==r?d=p=[p,f,h,g,m]:(fe=d,d=r)):(fe=d,d=r)):(fe=d,d=r),d===r&&(d=null),i=a=[a,s,l,c,u,d]):(fe=i,i=r)):(fe=i,i=r);i!==r;)o.push(i),i=fe,a=Le(),46===t.charCodeAt(fe)?(s=A,fe++):(s=r,0===ye&&Ce(ut)),s!==r?(l=Le(),(c=Ue())!==r?(u=Le(),d=fe,40===t.charCodeAt(fe)?(p=P,fe++):(p=r,0===ye&&Ce(dt)),p!==r?(f=Le(),(h=Ie())!==r?(g=Le(),41===t.charCodeAt(fe)?(m=D,fe++):(m=r,0===ye&&Ce(pt)),m!==r?d=p=[p,f,h,g,m]:(fe=d,d=r)):(fe=d,d=r)):(fe=d,d=r),d===r&&(d=null),i=a=[a,s,l,c,u,d]):(fe=i,i=r)):(fe=i,i=r);he=e,e=Yt(n,o)}else fe=e,e=r;return e}function Ie(){var e,n,o,i,a,s;if(e=fe,(n=Ae())!==r){for(o=[],i=fe,Le(),44===t.charCodeAt(fe)?(a=O,fe++):(a=r,0===ye&&Ce(ft)),a!==r?(Le(),(s=Ae())!==r?i=s:(fe=i,i=r)):(fe=i,i=r);i!==r;)o.push(i),i=fe,Le(),44===t.charCodeAt(fe)?(a=O,fe++):(a=r,0===ye&&Ce(ft)),a!==r?(Le(),(s=Ae())!==r?i=s:(fe=i,i=r)):(fe=i,i=r);he=e,e=Gt(n,o)}else fe=e,e=r;return e===r&&(e=Le()),e}function ze(){var e,n,o,i,a;if(e=fe,t.substr(fe,2)===s?(n=s,fe+=2):(n=r,0===ye&&Ce(B)),n!==r?(o=Le(),(i=Ae())!==r?(Le(),125===t.charCodeAt(fe)?(a=l,fe++):(a=r,0===ye&&Ce(U)),a!==r?(he=e,e=te(i)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,t.substr(fe,3)===c?(n=c,fe+=3):(n=r,0===ye&&Ce(L)),n!==r&&(he=e,n=ee()),(e=n)===r&&(e=fe,n=fe,ye++,92===t.charCodeAt(fe)?(o=u,fe++):(o=r,0===ye&&Ce(W)),o===r&&(39===t.charCodeAt(fe)?(o=S,fe++):(o=r,0===ye&&Ce(gt)),o===r&&(t.substr(fe,2)===s?(o=s,fe+=2):(o=r,0===ye&&Ce(B)))),ye--,o===r?n=void 0:(fe=n,n=r),n!==r?(t.length>fe?(o=t.charAt(fe),fe++):(o=r,0===ye&&Ce(H)),o!==r?(he=e,e=ne()):(fe=e,e=r)):(fe=e,e=r),e===r))){if(e=fe,t.substr(fe,2)===s?(n=s,fe+=2):(n=r,0===ye&&Ce(B)),n!==r){if(o=[],N.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===ye&&Ce(mt)),i!==r)for(;i!==r;)o.push(i),N.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===ye&&Ce(mt));else o=r;o!==r?(125===t.charCodeAt(fe)?(i=l,fe++):(i=r,0===ye&&Ce(U)),i!==r?(he=e,e=re()):(fe=e,e=r)):(fe=e,e=r)}else fe=e,e=r;e===r&&(e=fe,t.substr(fe,2)===s?(n=s,fe+=2):(n=r,0===ye&&Ce(B)),n!==r&&(he=e,n=oe()),(e=n)===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===ye&&Ce(W)),n!==r?(t.substr(fe,2)===s?(o=s,fe+=2):(o=r,0===ye&&Ce(B)),o!==r?(he=e,e=ie(o)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===ye&&Ce(W)),n!==r?(t.length>fe?(o=t.charAt(fe),fe++):(o=r,0===ye&&Ce(H)),o!==r?(he=e,e=ae(o)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===ye&&Ce(W)),n!==r&&(he=e,n=se()),e=n))))}return e}function Re(){var e,n,o,i;if(ye++,e=fe,45===t.charCodeAt(fe)?(n=x,fe++):(n=r,0===ye&&Ce(it)),n===r&&(n=null),o=[],M.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===ye&&Ce(yt)),i!==r)for(;i!==r;)o.push(i),M.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===ye&&Ce(yt));else o=r;return o!==r?(he=e,e=le()):(fe=e,e=r),ye--,e===r&&(n=r,0===ye&&Ce(vt)),e}function Be(){var e,n,o,i,a,s,l,c,u,d;for(ye++,e=fe,45===t.charCodeAt(fe)?(n=x,fe++):(n=r,0===ye&&Ce(it)),n===r&&(n=null),o=[],M.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===ye&&Ce(yt));i!==r;)o.push(i),M.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===ye&&Ce(yt));if(46===t.charCodeAt(fe)?(i=A,fe++):(i=r,0===ye&&Ce(ut)),i!==r){if(a=[],M.test(t.charAt(fe))?(s=t.charAt(fe),fe++):(s=r,0===ye&&Ce(yt)),s!==r)for(;s!==r;)a.push(s),M.test(t.charAt(fe))?(s=t.charAt(fe),fe++):(s=r,0===ye&&Ce(yt));else a=r;if(a!==r){if(s=fe,101===t.charCodeAt(fe)?(l=V,fe++):(l=r,0===ye&&Ce(bt)),l===r&&(69===t.charCodeAt(fe)?(l=F,fe++):(l=r,0===ye&&Ce(_t))),l!==r){if(43===t.charCodeAt(fe)?(c=w,fe++):(c=r,0===ye&&Ce(ot)),c===r&&(45===t.charCodeAt(fe)?(c=x,fe++):(c=r,0===ye&&Ce(it))),c===r&&(c=null),u=[],M.test(t.charAt(fe))?(d=t.charAt(fe),fe++):(d=r,0===ye&&Ce(yt)),d!==r)for(;d!==r;)u.push(d),M.test(t.charAt(fe))?(d=t.charAt(fe),fe++):(d=r,0===ye&&Ce(yt));else u=r;u!==r?s=l=[l,c,u]:(fe=s,s=r)}else fe=s,s=r;s===r&&(s=null),he=e,e=ce()}else fe=e,e=r}else fe=e,e=r;if(e===r){if(e=fe,45===t.charCodeAt(fe)?(n=x,fe++):(n=r,0===ye&&Ce(it)),n===r&&(n=null),o=[],M.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===ye&&Ce(yt)),i!==r)for(;i!==r;)o.push(i),M.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===ye&&Ce(yt));else o=r;if(o!==r)if(101===t.charCodeAt(fe)?(i=V,fe++):(i=r,0===ye&&Ce(bt)),i===r&&(69===t.charCodeAt(fe)?(i=F,fe++):(i=r,0===ye&&Ce(_t))),i!==r){if(43===t.charCodeAt(fe)?(a=w,fe++):(a=r,0===ye&&Ce(ot)),a===r&&(45===t.charCodeAt(fe)?(a=x,fe++):(a=r,0===ye&&Ce(it))),a===r&&(a=null),s=[],M.test(t.charAt(fe))?(l=t.charAt(fe),fe++):(l=r,0===ye&&Ce(yt)),l!==r)for(;l!==r;)s.push(l),M.test(t.charAt(fe))?(l=t.charAt(fe),fe++):(l=r,0===ye&&Ce(yt));else s=r;s!==r?(he=e,e=ue()):(fe=e,e=r)}else fe=e,e=r;else fe=e,e=r}return ye--,e===r&&(n=r,0===ye&&Ce($t)),e}function Ue(){var e,n,o,i;if(e=fe,I.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=r,0===ye&&Ce(wt)),n!==r){for(o=[],z.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===ye&&Ce(xt));i!==r;)o.push(i),z.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===ye&&Ce(xt));he=e,e=pe()}else fe=e,e=r;return e}function Le(){var e,n;for(ye++,e=[],R.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=r,0===ye&&Ce(Ct));n!==r;)e.push(n),R.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=r,0===ye&&Ce(Ct));return ye--,n=r,0===ye&&Ce(kt),e}if((n=a())!==r&&fe===t.length)return n;throw n!==r&&fe<t.length&&Ce({type:"end"}),function(t,e,n){return new sl(sl.buildMessage(t,e),t,e,n)}(ve,me<t.length?t.charAt(me):null,me<t.length?ke(me,me+1):ke(me,me))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(sl,Error),sl.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+i.line+":"+i.column;if(r){var s=this.location.end,l=ll("",i.line.toString().length," "),c=r[o.line-1],u=(o.line===s.line?s.column:c.length+1)-o.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+i.line+" | "+c+"\n"+l+" | "+ll("",o.column-1," ")+ll("",u,"^")}else e+="\n at "+a}return e},sl.buildMessage=function(t,e){var n={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."};const ul=Number.MAX_VALUE,dl=Number.MIN_VALUE,pl="string",fl="integer",hl="number",gl="boolean",ml="color",vl="url",yl="datetime",$l="dict",bl="array";function _l(t,e){var n;switch(null===(n=e[t.type])||void 0===n||n.call(e,t),t.type){case"TemplateLiteral":t.expressions.forEach((t=>{_l(t,e)}));break;case"BinaryExpression":case"LogicalExpression":_l(t.left,e),_l(t.right,e);break;case"UnaryExpression":_l(t.argument,e);break;case"ConditionalExpression":_l(t.test,e),_l(t.consequent,e),_l(t.alternate,e);break;case"TryExpression":_l(t.test,e),_l(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{_l(t,e)}))}}function wl(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function xl(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function kl(t){if("string"===t.type)return t.value;if("integer"===t.type)return String(t.value);if("number"===t.type){let e=String(t.value);return e.includes(".")||(e.includes("e")?e=e.replace("e",".0e"):e+=".0"),e=e.replace(/e\+?/i,"E"),e}if("boolean"===t.type)return t.value?"true":"false";if("datetime"===t.type)return xl(t.value);if("color"===t.type)return Sl(Ol(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";if("array"===t.type)return"<array>";throw new Error("Unexpected type ".concat(t.type))}function Cl(t){let e=kl(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function El(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function jl(t,e){if(ea)return ia(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function Al(t,e){if(e<oa||e>ra)throw new Error("Integer overflow.");!ea&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function Pl(t){const e=[];return _l(t,{Variable(t){e.push(t.id.name)}}),e}function Dl(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function Ol(t){const e=pe(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function Sl(t){return"#".concat([t.a,t.r,t.g,t.b].map((t=>{if(t<0||t>255)throw new Error("Value out of range 0..1.");return ue(Math.round(t).toString(16),2)})).join("").toUpperCase())}function Vl(t){return Sl(Ol(t))}function Fl(t){return{type:hl,value:Number(t.value)}}const Tl={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function Nl(t,e,n){const r=Tl[n];let o=typeof e;if("array"===r&&!Array.isArray(e)||"array"!==r&&o!==r||"object"===o&&null===e)throw"object"===o&&(o=Array.isArray(e)?"array":null===e?"null":"dict"),new Error("Incorrect value type: expected ".concat(El(n),", got ").concat(El(o),"."));if("number"===r&&"integer"===n){Al(t,e);try{e=ia(e)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===r&&"color"===n&&(e=Vl(e)),{type:n,value:e}}const Ml=new Map,Il=new Map,zl=new Map,Rl=new Map;function Bl(t,e,n){const r={args:e,cb:n},o=Ml.get(t)||[];Ml.has(t)||Ml.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Il.set(i,r)}function Ul(t,e,n){const r={args:e,cb:n},o=zl.get(t)||[];zl.has(t)||zl.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Rl.set(i,r)}function Ll(t,e){const n=t.args.length;let r=t.args.length,o=0;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==hl||e[n].type!==fl){if(r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}else++o}return{type:"match",conversions:o}}function Wl(t,e,n){const r=("function"===t?Ml:zl).get(e);if(!r)return{type:"missing"};let o=null,i=null;for(let t=0;t<r.length;++t){const e=Ll(r[t],n);"match"!==e.type?o||(o=e):(!i||i.conversions>e.conversions)&&(i={func:r[t],conversions:e.conversions})}if(!i){if(o)return o;throw new Error("Missing function")}return i}function Hl(t,e){return e.map(((e,n)=>{let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];return"object"!=typeof r&&(r={type:r}),r.type===hl&&e.type===fl?Fl(e):e}))}function ql(t,e){return e.type===bl||e.type===$l?{type:pl,value:JSON.stringify(e.value)}:{type:pl,value:kl(e)}}function Jl(t,e){const n=Number(e.value);if(Number.isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:hl,value:n}}function Yl(t,e,n,r){const o=t.variables.get(e.value);let i;return i=o&&o.getType()===r?o.getValue():n.value,"color"===r&&(i=Vl(i)),{type:r,value:i}}function Xl(t,e,n){return Yl(t,e,n,n.type)}function Gl(t,e,n){return Yl(t,e,n,"color")}function Kl(t,e,n){return Yl(t,e,n,"url")}function Zl(t,e){return t&&e?t.padStart(e,"0"):t}const Ql={G(t,e){let n;return n=t<4?"short":5===t?"narrow":"long",e({era:n},"era")},d:(t,e)=>Zl(e({day:"numeric"},"day"),t>1?t:0),D:(t,e)=>Zl(e({},"dayofyear"),t>1?t:0),F:(t,e)=>Zl(e({},"dayofweekinmonth"),t>1?t:0),M(t,e){let n;return n=1===t?"numeric":2===t?"2-digit":3===t?"short":5===t?"narrow":"long",e({month:n,day:"numeric"},"month")},y:(t,e)=>Zl(e({year:2===t?"2-digit":"numeric"},"year"),t>2?t:void 0),Y:(t,e)=>Zl(e({year:2===t?"2-digit":"numeric"},"weekyear"),t>2?t:void 0),u:(t,e)=>Zl(e({year:"numeric"},"extendedyear"),t>1?t:void 0),E(t,e){let n;return n=t<=3?"short":5===t?"narrow":"long",e({weekday:n},"weekday")},e:(t,e)=>t>2?Ql.E(t,e):Zl(e({},"weekdaynumeric"),t>1?t:void 0),w:(t,e)=>Zl(e({},"week"),t>1?t:void 0),W:(t,e)=>Zl(e({},"weekofmonth"),t>1?t:void 0),H(t,e){const n=e({hour:"numeric",hour12:!1,hourCycle:"h23"},"hour");if(n)return Zl(String(Number(n)%24),t>1?t:void 0)},h:(t,e)=>Zl(e({hour:"numeric",hour12:!0,hourCycle:"h12"},"hour"),t>1?t:void 0),K(t,e){const n=e({hour:"numeric",hour12:!0,hourCycle:"h11"},"hour");if(n)return Zl(String(Number(n)%12),t>1?t:void 0)},k:(t,e)=>Zl(e({hour:"numeric",hour12:!1,hourCycle:"h24"},"hour"),t>2?t:void 0),a:(t,e)=>e({hour:"numeric",hour12:!0,hourCycle:"h11",dayPeriod:void 0},"dayPeriod"),m:(t,e)=>Zl(e({minute:"numeric"},"minute"),t>1?t:void 0),s:(t,e)=>Zl(e({second:"numeric"},"second"),t>1?t:void 0),S(t,e){const n=e({fractionalSecondDigits:Math.min(3,t)},"fractionalSecond");return n&&t>3?n.padEnd(t,"0"):n},z:(t,e)=>e({timeZoneName:4===t?"long":"short"},"timeZoneName"),Z(t,e){const n=-Number(e({},"timezoneoffset")),r=Math.abs(n/60),o=100*Math.floor(r)+60*(r-Math.floor(r));return(n>=0?"+":"-")+Zl(String(o),4)}},tc=/(\w)\1*|''|'(''|[^'])+('|$)|./g,ec=/^'([^]*?)'?$/,nc=/''/g,rc=/[a-zA-Z]/,oc=864e5;function ic(t,e,n){const r=t[e?"getUTCDay":"getDay"](),o=r<n?n-r-7:n-r;return new Date(t.getTime()+oc*o)}function ac(t,e,n){const r=new Date(t);return r[e?"setUTCDate":"setDate"](1),r[e?"setUTCMonth":"setMonth"](0),ic(r,e,n)}function sc(t,e){return Math.round((t.getTime()-e.getTime())/oc)}function lc(t,e,n){let r=0;const o=ac(t,e||!1,n),i=new Date(t);i[e?"setUTCFullYear":"setFullYear"](t[e?"getUTCFullYear":"getFullYear"]()+1);const a=ac(i,e||!1,n),s=t.getTime()<o.getTime(),l=t.getTime()>=a.getTime();let c=t[e?"getUTCFullYear":"getFullYear"]();if(s){--c,o[e?"setUTCFullYear":"setFullYear"](o[e?"getUTCFullYear":"getFullYear"]()-1);const i=sc(ic(t,e,n),o);r=Math.round(i/7)+1}else if(l)++c,r=1;else{const i=sc(ic(t,e,n),o);r=Math.round(i/7)+1}return{week:r,year:c}}function cc(t,e){let{locale:n,isUTC:r,weekStartDay:o=0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=(e,i)=>{if("week"===i){const{week:e}=lc(t,r||!1,o);return String(e)}if("weekofmonth"===i){const e=t[r?"getUTCDay":"getDay"](),n=new Date(t);n[r?"setUTCDate":"setDate"](1);const o=n[r?"getUTCDay":"getDay"](),i=t[r?"getUTCDate":"getDate"]();return String(Math.ceil(i/7)+(e<o?1:0))}if("dayofweekinmonth"===i){const e=t[r?"getUTCDate":"getDate"]();return String(Math.ceil(e/7))}if("weekdaynumeric"===i){let e=t[r?"getUTCDay":"getDay"]();return e<o&&(e+=7),String(e-o+1)}if("dayofyear"===i){const e=new Date(t);e[r?"setUTCMonth":"setMonth"](0),e[r?"setUTCDate":"setDate"](1),e[r?"setUTCHours":"setHours"](1),e[r?"setUTCMinutes":"setMinutes"](1),e[r?"setUTCSeconds":"setSeconds"](1);const n=Math.ceil((t.getTime()-e.getTime())/oc);return String(n)}if("weekyear"===i){let{year:n}=lc(t,r||!1,o);return n<1&&(n=1-n),"2-digit"===e.year?String(n%100):String(n)}if("extendedyear"===i){const n=t[r?"getUTCFullYear":"getFullYear"]();return"2-digit"===e.year?String(n%100):String(n)}if("timezoneoffset"===i)return r?"0":String(t.getTimezoneOffset());r&&(e.timeZone="UTC");const a=new Intl.DateTimeFormat(n,e).formatToParts(t);for(let t=0;t<a.length;++t)if(a[t].type===i)return a[t].value};return(e.match(tc)||[]).map((t=>{if("''"===t)return"'";const e=t[0];if("'"===e)return function(t){const e=t.match(ec);return e?e[1].replace(nc,"'"):t}(t);if(Ql[e])return Ql[e](t.length,i);if(e.match(rc))throw new Error('Format string contains an unescaped latin alphabet character "'.concat(e,'"'));return t})).join("")}const uc=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:fl,value:ia(r)}};function dc(t){return(e,n,r,o)=>({type:pl,value:cc(n.value,r.value,{locale:null==o?void 0:o.value,isUTC:t,weekStartDay:e.weekStartDay})})}const pc=uc("getUTCFullYear"),fc=uc("getUTCMonth"),hc=uc("getUTCDate"),gc=uc("getUTCDay"),mc=uc("getUTCHours"),vc=uc("getUTCMinutes"),yc=uc("getUTCSeconds"),$c=uc("getUTCMilliseconds"),bc=dc(!1),_c=dc(!0);function wc(t,e,n,r){if(!r.value.length)return t.warnings.push(oe(new Error("String for padding is empty."),{level:"warn"})),"";let o="";const i=e.type===pl?e.value:kl(e);for(;o.length+i.length<n.value;)o+=r.value;return o.length>0&&o.length+i.length>n.value&&(o=o.substring(0,Number(n.value)-Number(i.length))),o}function xc(t,e,n,r){const o=wc(t,e,n,r);return{type:pl,value:o+kl(e)}}function kc(t,e,n,r){const o=wc(t,e,n,r);return{type:pl,value:kl(e)+o}}function Cc(t){return(e,n)=>{const r=Ol(n.value);return{type:hl,value:r[t]/255}}}function Ec(t){return(e,n,r)=>{const o=Ol(n.value);return o[t]=255*r.value,{type:ml,value:Sl(o)}}}const jc=Cc("a"),Ac=Cc("r"),Pc=Cc("g"),Dc=Cc("b"),Oc=Ec("a"),Sc=Ec("r"),Vc=Ec("g"),Fc=Ec("b");function Tc(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let o=ia(e.value)/ia(n);return Al(t,o),"number"==typeof o&&(o=Math.floor(o)),r&&(o=ia(o)%ia(r)),{type:fl,value:o}}const Nc=36e5;function Mc(t){return function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(0===o.length)throw new Error("Non empty argument list is required.");return Nl(e,function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(n.value,o.map((t=>t.value))),t)}}function Ic(t,e){return function(n,r,o){try{for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return t(n,o,...a)}catch(t){let n=r.value;return"color"===e&&(n=Vl(n)),{type:e,value:n}}}}const zc=Mc(pl),Rc=Mc(hl),Bc=Mc(fl),Uc=Mc(gl),Lc=Mc(ml),Wc=Mc(vl),Hc=Mc(bl),qc=Mc($l),Jc=Ic(zc,pl),Yc=Ic(Rc,hl),Xc=Ic(Bc,fl),Gc=Ic(Uc,gl),Kc=Ic(Lc,ml),Zc=Ic(Wc,vl);function Qc(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Hc(t,e,...r)}catch(t){return{type:bl,value:[]}}}function tu(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return qc(t,e,...r)}catch(t){return{type:$l,value:{}}}}function eu(t,e){return(n,r,o)=>{if(o.value<0||o.value>=r.value.length)throw new Error("Requested index (".concat(o.value,") out of bounds array size (").concat(r.value.length,")."));let i=r.value[Number(o.value)],a=typeof i;if("array"===t&&!Array.isArray(i)||"array"!==t&&a!==t||"object"===a&&null===i)throw"object"===a&&(a=Array.isArray(i)?"Array":null===i?"Null":"Dict"),new Error("Incorrect value type: expected ".concat(El(e),", got ").concat(El(a),"."));if("number"===t&&"integer"===e){Al(n,i);try{i=ia(i)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===t&&"color"===e&&(i=Vl(i)),{type:e,value:i}}}function nu(t,e){return(n,r,o,i)=>{try{return t(n,r,o)}catch(t){let n=i.value;return"color"===e&&(n=Vl(n)),{type:e,value:n}}}}const ru=eu("string","string"),ou=eu("number","number"),iu=eu("number","integer"),au=eu("boolean","boolean"),su=eu("string","color"),lu=eu("string","url"),cu=eu("array","array"),uu=eu("object","dict"),du=nu(ru,"string"),pu=nu(ou,"number"),fu=nu(iu,"integer"),hu=nu(au,"boolean"),gu=nu(su,"color"),mu=nu(lu,"url");function vu(t){return(e,n,r)=>{if(!e.store)return{type:t,value:r.value};let o;o="boolean"===t?"boolean":"number"===t||"integer"===t?"number":"string";const i=e.store.getValue(n.value,o);return void 0===i?{type:t,value:r.value}:Nl(e,i,t)}}function yu(t){return t.map(Cl).join(", ")}Bl("toString",[fl],ql),Bl("toString",[hl],ql),Bl("toString",[gl],ql),Bl("toString",[ml],ql),Bl("toString",[vl],ql),Bl("toString",[pl],ql),Bl("toString",[bl],ql),Bl("toString",[$l],ql),Bl("toNumber",[fl],Jl),Bl("toNumber",[pl],Jl),Bl("toInteger",[hl],(function(t,e){if(e.value>ra||e.value<oa)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:fl,value:ia(n)}})),Bl("toInteger",[pl],(function(t,e){let n;try{n=ia(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}return{type:fl,value:n}})),Bl("toInteger",[gl],(function(t,e){return{type:fl,value:ia(e.value?1:0)}})),Bl("toBoolean",[fl],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:gl,value:n}})),Bl("toBoolean",[pl],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:gl,value:"true"===e.value?1:0}})),Bl("toColor",[pl],(function(t,e){return{type:ml,value:Vl(e.value)}})),Bl("toUrl",[pl],(function(t,e){return{type:vl,value:e.value}})),Bl("encodeUri",[pl],(function(t,e){try{return{type:pl,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Bl("decodeUri",[pl],(function(t,e){try{return{type:pl,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Bl("getIntegerValue",[pl,fl],Xl),Bl("getNumberValue",[pl,hl],Xl),Bl("getBooleanValue",[pl,gl],Xl),Bl("getStringValue",[pl,pl],Xl),Bl("getColorValue",[pl,ml],Gl),Bl("getColorValue",[pl,pl],Gl),Bl("getUrlValue",[pl,vl],Kl),Bl("getUrlValue",[pl,pl],Kl),Ul("toString",[fl],ql),Ul("toString",[hl],ql),Ul("toString",[gl],ql),Ul("toString",[ml],ql),Ul("toString",[vl],ql),Ul("toString",[pl],ql),Ul("toString",[bl],ql),Ul("toString",[$l],ql),Bl("parseUnixTime",[fl],(function(t,e){return{type:yl,value:new Date(1e3*Number(e.value))}})),Bl("parseUnixTimeAsLocal",[fl],(function(t,e){const n=new Date(1e3*Number(e.value)),r=n.getTimezoneOffset();return n.setMinutes(n.getMinutes()-r),{type:yl,value:n}})),Bl("nowLocal",[],(function(){return{type:yl,value:new Date}})),Bl("addMillis",[yl,fl],(function(t,e,n){return{type:yl,value:new Date(e.value.getTime()+Number(n.value))}})),Bl("setYear",[yl,fl],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:yl,value:r}})),Bl("setMonth",[yl,fl],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMonth(r-1),{type:yl,value:o}})),Bl("setDay",[yl,fl],(function(t,e,n){const r=new Date(e.value),o=Number(n.value);if(o<=0&&-1!==o||o>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(o," for date ").concat(kl(e),"."));return r.setUTCDate(-1===o?0:o),{type:yl,value:r}})),Bl("setHours",[yl,fl],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCHours(r),{type:yl,value:o}})),Bl("setMinutes",[yl,fl],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMinutes(r),{type:yl,value:o}})),Bl("setSeconds",[yl,fl],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCSeconds(r),{type:yl,value:o}})),Bl("setMillis",[yl,fl],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMilliseconds(r),{type:yl,value:o}})),Bl("getYear",[yl],pc),Bl("getMonth",[yl],fc),Bl("getDay",[yl],hc),Bl("getDayOfWeek",[yl],gc),Bl("getHours",[yl],mc),Bl("getMinutes",[yl],vc),Bl("getSeconds",[yl],yc),Bl("getMillis",[yl],$c),Bl("formatDateAsLocal",[yl,pl],bc),Bl("formatDateAsUTC",[yl,pl],_c),Bl("formatDateAsLocalWithLocale",[yl,pl,pl],bc),Bl("formatDateAsUTCWithLocale",[yl,pl,pl],_c),Bl("getIntervalSeconds",[fl],(function(t,e){return Tc(t,e,1e3,60)})),Bl("getIntervalTotalSeconds",[fl],(function(t,e){return Tc(t,e,1e3)})),Bl("getIntervalMinutes",[fl],(function(t,e){return Tc(t,e,6e4,60)})),Bl("getIntervalTotalMinutes",[fl],(function(t,e){return Tc(t,e,6e4)})),Bl("getIntervalHours",[fl],(function(t,e){return Tc(t,e,Nc,24)})),Bl("getIntervalTotalHours",[fl],(function(t,e){return Tc(t,e,Nc)})),Bl("getIntervalTotalDays",[fl],(function(t,e){return Tc(t,e,864e5)})),Bl("getIntervalTotalWeeks",[fl],(function(t,e){return Tc(t,e,6048e5)})),Bl("len",[pl],(function(t,e){return{type:fl,value:ia(e.value.length)}})),Bl("contains",[pl,pl],(function(t,e,n){return{type:gl,value:e.value.includes(n.value)?1:0}})),Bl("substring",[pl,fl,fl],(function(t,e,n,r){if(r.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||r.value<0||r.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:pl,value:e.value.substring(Number(n.value),Number(r.value))}})),Bl("replaceAll",[pl,pl,pl],(function(t,e,n,r){let o;return o=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:pl,value:o}})),Bl("index",[pl,pl],(function(t,e,n){return{type:fl,value:ia(e.value.indexOf(n.value))}})),Bl("lastIndex",[pl,pl],(function(t,e,n){return{type:fl,value:ia(e.value.lastIndexOf(n.value))}})),Bl("trim",[pl],(function(t,e){return{type:pl,value:e.value.trim()}})),Bl("trimLeft",[pl],(function(t,e){return{type:pl,value:e.value.replace(/^\s+/,"")}})),Bl("trimRight",[pl],(function(t,e){return{type:pl,value:e.value.replace(/\s+$/,"")}})),Bl("toUpperCase",[pl],(function(t,e){return{type:pl,value:e.value.toUpperCase()}})),Bl("toLowerCase",[pl],(function(t,e){return{type:pl,value:e.value.toLowerCase()}})),Bl("padStart",[pl,fl,pl],xc),Bl("padStart",[fl,fl,pl],xc),Bl("padEnd",[pl,fl,pl],kc),Bl("padEnd",[fl,fl,pl],kc),Bl("testRegex",[pl,pl],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:gl,value:r.test(e.value)?1:0}})),Bl("div",[fl,fl],(function(t,e,n){if(n.value===aa)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=jl(0,r),Al(t,r),{type:fl,value:r}})),Bl("div",[hl,hl],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value/n.value;return{type:hl,value:r}})),Bl("mod",[fl,fl],(function(t,e,n){if(n.value===aa)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=jl(0,r),Al(t,r),{type:fl,value:r}})),Bl("mod",[hl,hl],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value%n.value;return{type:hl,value:r}})),Bl("mul",[{type:fl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:aa;for(let e=1;e<n.length;++e)o*=n[e].value,o=jl(0,o),Al(t,o);return{type:fl,value:o}})),Bl("mul",[{type:hl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o*=n[t].value;return{type:hl,value:o}})),Bl("sub",[{type:fl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:aa;for(let e=1;e<n.length;++e)o-=n[e].value,o=jl(0,o),Al(t,o);return{type:fl,value:o}})),Bl("sub",[{type:hl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o-=n[t].value;return{type:hl,value:o}})),Bl("sum",[{type:fl,isVararg:!0}],(function(t){let e=aa;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<r.length;++n)e+=r[n].value,e=jl(0,e),Al(t,e);return{type:fl,value:e}})),Bl("sum",[{type:hl,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:hl,value:e}})),Bl("abs",[fl],(function(t,e){const n=sa(e.value);return Al(t,n),{type:e.type,value:n}})),Bl("abs",[hl],(function(t,e){const n=Math.abs(e.value);return{type:hl,value:n}})),Bl("max",[{type:fl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Function requires non empty argument list.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value>o&&(o=n[t].value);return{type:fl,value:o}})),Bl("max",[{type:hl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Function requires non empty argument list.");return{type:hl,value:Math.max(...n.map((t=>t.value)))}})),Bl("min",[{type:fl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Function requires non empty argument list.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value<o&&(o=n[t].value);return{type:fl,value:o}})),Bl("min",[{type:hl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Function requires non empty argument list.");return{type:hl,value:Math.min(...n.map((t=>t.value)))}})),Bl("maxNumber",[],(function(){return{type:hl,value:ul}})),Bl("minNumber",[],(function(){return{type:hl,value:dl}})),Bl("maxInteger",[],(function(t){return Al(t,ra),{type:fl,value:ra}})),Bl("minInteger",[],(function(t){return Al(t,oa),{type:fl,value:oa}})),Bl("round",[hl],(function(t,e){const n=Math.sign(e.value);return{type:hl,value:n*Math.round(Math.abs(e.value))}})),Bl("floor",[hl],(function(t,e){return{type:hl,value:Math.floor(e.value)}})),Bl("ceil",[hl],(function(t,e){return{type:hl,value:Math.ceil(e.value)}})),Bl("signum",[fl],(function(t,e){return{type:fl,value:la(e.value)}})),Bl("signum",[hl],(function(t,e){return{type:hl,value:Math.sign(e.value)}})),Bl("copySign",[fl,fl],(function(t,e,n){let r;if(n.value===aa)r=e.value;else if(e.value===aa)r=ia(0);else{const t=la(n.value);r=sa(e.value)*t}return Al(t,r),{type:fl,value:r}})),Bl("copySign",[hl,hl],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const o=Math.abs(e.value)*r;return{type:hl,value:o}})),Bl("getColorAlpha",[pl],jc),Bl("getColorAlpha",[ml],jc),Bl("getColorRed",[pl],Ac),Bl("getColorRed",[ml],Ac),Bl("getColorGreen",[pl],Pc),Bl("getColorGreen",[ml],Pc),Bl("getColorBlue",[pl],Dc),Bl("getColorBlue",[ml],Dc),Bl("setColorAlpha",[pl,hl],Oc),Bl("setColorAlpha",[ml,hl],Oc),Bl("setColorRed",[pl,hl],Sc),Bl("setColorRed",[ml,hl],Sc),Bl("setColorGreen",[pl,hl],Vc),Bl("setColorGreen",[ml,hl],Vc),Bl("setColorBlue",[pl,hl],Fc),Bl("setColorBlue",[ml,hl],Fc),Bl("rgb",[hl,hl,hl],(function(t,e,n,r){const o={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:ml,value:Sl(o)}})),Bl("argb",[hl,hl,hl,hl],(function(t,e,n,r,o){const i={a:255*e.value,r:255*n.value,g:255*r.value,b:255*o.value};return{type:ml,value:Sl(i)}})),function(){const t={type:pl,isVararg:!0};Bl("getDictString",[$l,t],zc),Bl("getStringFromDict",[$l,t],zc),Bl("getDictNumber",[$l,t],Rc),Bl("getNumberFromDict",[$l,t],Rc),Bl("getDictInteger",[$l,t],Bc),Bl("getIntegerFromDict",[$l,t],Bc),Bl("getDictBoolean",[$l,t],Uc),Bl("getBooleanFromDict",[$l,t],Uc),Bl("getDictColor",[$l,t],Lc),Bl("getColorFromDict",[$l,t],Lc),Bl("getDictUrl",[$l,t],Wc),Bl("getUrlFromDict",[$l,t],Wc),Bl("getDictOptString",[pl,$l,t],Jc),Bl("getOptStringFromDict",[pl,$l,t],Jc),Bl("getDictOptNumber",[hl,$l,t],Yc),Bl("getOptNumberFromDict",[hl,$l,t],Yc),Bl("getDictOptInteger",[fl,$l,t],Xc),Bl("getOptIntegerFromDict",[fl,$l,t],Xc),Bl("getDictOptBoolean",[gl,$l,t],Gc),Bl("getOptBooleanFromDict",[gl,$l,t],Gc),Bl("getDictOptColor",[ml,$l,t],Kc),Bl("getOptColorFromDict",[ml,$l,t],Kc),Bl("getDictOptColor",[pl,$l,t],Kc),Bl("getOptColorFromDict",[pl,$l,t],Kc),Bl("getDictOptUrl",[pl,$l,t],Zc),Bl("getOptUrlFromDict",[pl,$l,t],Zc),Bl("getDictOptUrl",[vl,$l,t],Zc),Bl("getOptUrlFromDict",[vl,$l,t],Zc),Bl("getDictFromDict",[$l,t],qc),Bl("getArrayFromDict",[$l,t],Hc),Bl("getOptArrayFromDict",[$l,t],Qc),Bl("getOptDictFromDict",[$l,t],tu),Ul("getString",[$l,t],zc),Ul("getBoolean",[$l,t],Uc),Ul("getInteger",[$l,t],Bc),Ul("getNumber",[$l,t],Rc),Ul("getUrl",[$l,t],Wc),Ul("getColor",[$l,t],Lc),Ul("getArray",[$l,t],Hc),Ul("getDict",[$l,t],qc)}(),Bl("getArrayString",[bl,fl],ru),Bl("getStringFromArray",[bl,fl],ru),Bl("getArrayNumber",[bl,fl],ou),Bl("getNumberFromArray",[bl,fl],ou),Bl("getArrayInteger",[bl,fl],iu),Bl("getIntegerFromArray",[bl,fl],iu),Bl("getArrayBoolean",[bl,fl],au),Bl("getBooleanFromArray",[bl,fl],au),Bl("getArrayColor",[bl,fl],su),Bl("getColorFromArray",[bl,fl],su),Bl("getArrayUrl",[bl,fl],lu),Bl("getUrlFromArray",[bl,fl],lu),Bl("getArrayFromArray",[bl,fl],cu),Bl("getDictFromArray",[bl,fl],uu),Bl("getArrayOptString",[bl,fl,pl],du),Bl("getOptStringFromArray",[bl,fl,pl],du),Bl("getArrayOptNumber",[bl,fl,hl],pu),Bl("getOptNumberFromArray",[bl,fl,hl],pu),Bl("getArrayOptInteger",[bl,fl,fl],fu),Bl("getOptIntegerFromArray",[bl,fl,fl],fu),Bl("getArrayOptBoolean",[bl,fl,gl],hu),Bl("getOptBooleanFromArray",[bl,fl,gl],hu),Bl("getArrayOptColor",[bl,fl,ml],gu),Bl("getOptColorFromArray",[bl,fl,ml],gu),Bl("getArrayOptColor",[bl,fl,pl],gu),Bl("getOptColorFromArray",[bl,fl,pl],gu),Bl("getArrayOptUrl",[bl,fl,vl],mu),Bl("getOptUrlFromArray",[bl,fl,vl],mu),Bl("getArrayOptUrl",[bl,fl,pl],mu),Bl("getOptUrlFromArray",[bl,fl,pl],mu),Bl("getOptArrayFromArray",[bl,fl],(function(t,e,n){try{return cu(t,e,n)}catch(t){return{type:bl,value:[]}}})),Bl("getOptDictFromArray",[bl,fl],(function(t,e,n){try{return uu(t,e,n)}catch(t){return{type:$l,value:{}}}})),Bl("len",[bl],(function(t,e){return{type:fl,value:ia(e.value.length)}})),Ul("getString",[bl,fl],ru),Ul("getInteger",[bl,fl],iu),Ul("getNumber",[bl,fl],ou),Ul("getBoolean",[bl,fl],au),Ul("getUrl",[bl,fl],lu),Ul("getColor",[bl,fl],su),Ul("getArray",[bl,fl],cu),Ul("getDict",[bl,fl],uu),Bl("getStoredIntegerValue",[pl,fl],vu(fl)),Bl("getStoredNumberValue",[pl,hl],vu(hl)),Bl("getStoredStringValue",[pl,pl],vu(pl)),Bl("getStoredUrlValue",[pl,vl],vu(vl)),Bl("getStoredUrlValue",[pl,pl],vu(vl)),Bl("getStoredColorValue",[pl,ml],vu(ml)),Bl("getStoredColorValue",[pl,pl],vu(ml)),Bl("getStoredBooleanValue",[pl,gl],vu(gl));const $u={StringLiteral:function(t,e){return{type:pl,value:e.value}},NumberLiteral:function(t,e){return{type:hl,value:e.value}},IntegerLiteral:function(t,e){return Al(t,e.value),{type:fl,value:e.value}},BooleanLiteral:function(t,e){return{type:gl,value:e.value?1:0}},UnaryExpression:function(t,e){const n=wl(bu(t,e.argument));switch(e.operator){case"!":if(n.type===gl)return{type:gl,value:n.value?0:1};Dl("".concat(e.operator).concat(Cl(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===fl){const e=n.value*ia(r);return Al(t,e),{type:fl,value:e}}if(n.type===hl)return{type:hl,value:n.value*r};Dl("".concat(e.operator).concat(Cl(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=wl(bu(t,e.test));if(n.type===gl)return n.value?bu(t,e.consequent):bu(t,e.alternate);Dl("".concat(Cl(n)," ? ").concat(Cl(bu(t,e.consequent))," : ").concat(Cl(bu(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return bu(t,e.test)}catch(n){return bu(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return bu(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=kl(bu(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:pl,value:n}},LogicalExpression:function(t,e){const n=wl(bu(t,e.left));if(n.type!==gl&&Dl("".concat(Cl(n)," ").concat(e.operator," ..."),"'".concat(e.operator,"' must be called with boolean operands.")),"||"===e.operator&&n.value)return n;if("&&"===e.operator&&!n.value)return{type:gl,value:0};const r=wl(bu(t,e.right));return r.type!==gl&&Dl("".concat(Cl(n)," ").concat(e.operator," ").concat(Cl(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(El(r.type),".")),{type:gl,value:r.value}},BinaryExpression:function(t,e){const n=e.operator;let r=bu(t,e.left),o=bu(t,e.right);if(("number"===r.type&&"integer"===o.type||"integer"===r.type&&"number"===o.type)&&("integer"===r.type?r=Fl(r):"integer"===o.type&&(o=Fl(o))),r.type!==o.type&&Dl("".concat(Cl(r)," ").concat(e.operator," ").concat(Cl(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(El(r.type)," and ").concat(El(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===yl&&n.type===yl?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:gl,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==hl&&e.type!==fl&&e.type!==yl&&Dl("".concat(Cl(e)," ").concat(t," ").concat(Cl(n)),"Operator '".concat(t,"' cannot be applied to ").concat(El(e.type)," type."));const o=e.type===yl?e.value.getTime():e.value,i=n.type===yl?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:gl,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==pl&&n.type!==hl&&n.type!==fl&&Dl("".concat(Cl(n)," ").concat(e," ").concat(Cl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(El(n.type)," type.")),n.type===pl)return"-"===e&&Dl("".concat(Cl(n)," - ").concat(Cl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(El(n.type)," type.")),{type:pl,value:n.value+r.value};let o="+"===e?n.value+r.value:n.value-r.value;if(n.type===fl)try{o=jl(0,o),Al(t,o)}catch(t){Dl("".concat(Cl(n)," ").concat(e," ").concat(Cl(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let o;if(n.type!==fl&&n.type!==hl&&Dl("".concat(Cl(n)," ").concat(e," ").concat(Cl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(El(n.type)," type.")),"*"===e)o=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&Dl("".concat(Cl(n)," ").concat(e," ").concat(Cl(r)),"Division by zero is not supported."),o="/"===e?n.value/r.value:n.value%r.value}if(n.type===fl)try{o=jl(0,o),Al(t,o)}catch(t){Dl("".concat(Cl(n)," ").concat(e," ").concat(Cl(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r,o=e.arguments.map((e=>bu(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(Il.has(i))r=Il.get(i);else{const t=Wl("function",n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.map((t=>El(t.type))).join(", "),r="".concat(n,"(").concat(yu(o),")");"few"===t.type&&0===o.length?Dl(r,"Function requires non empty argument list."):"many"===t.type||"few"===t.type||"mismatch"===t.type?Dl(r,"Function has no matching overload for given argument types: ".concat(e,".")):Dl(r,"Unknown function name: ".concat(n,"."))}r=t.func,t.conversions&&(o=Hl(r,o))}if(!r)throw new Error("Function not found");try{return r.cb(t,...o)}catch(t){Dl("".concat(n,"(").concat(yu(o),")"),t.message)}},MethodExpression:function(t,e){const n=e.method.name;let r;e.arguments.unshift(e.object);let o=e.arguments.map((e=>bu(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(Rl.has(i))r=Rl.get(i);else{const t=Wl("method",n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.slice(1).map((t=>El(t.type))).join(", "),r="".concat(n,"(").concat(yu(o.slice(1)),")");"few"===t.type&&1===o.length?Dl(r,"Method requires non empty argument list."):"many"===t.type||"few"===t.type||"mismatch"===t.type?Dl(r,"Method has no matching overload for given argument types: ".concat(e,".")):Dl(r,"Unknown method name: ".concat(n,"."))}r=t.func,t.conversions&&(o=Hl(r,o))}if(!r)throw new Error("Method not found");try{return r.cb(t,...o)}catch(t){Dl("".concat(n,"(").concat(yu(o.slice(1)),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function bu(t,e){if(e.type in $u)return $u[e.type](t,e);throw new Error("Unsupported expression")}function _u(t,e,n,r){try{const o={variables:t,warnings:[],safeIntegerOverflow:!1,store:e,weekStartDay:(null==r?void 0:r.weekStartDay)||0},i=bu(o,n);return o.safeIntegerOverflow&&o.warnings.push(oe(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:i,warnings:o.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}class wu{constructor(t){this.ast=t}apply(t){let{variables:e,logError:n,store:r,weekStartDay:o,keepComplex:i}=t;try{const t=_u(e,r,this.ast,{weekStartDay:o});t.warnings.forEach(n);const a=t.result;if("error"===a.type)return void n(oe(new Error("Expression execution error"),{additional:{message:a.value}}));const s=a.value;if(s instanceof Date)return xl(s);if("boolean"===a.type)return Boolean(s);if("color"===a.type){const t=pe(String(s));if(t)return Sl(t);n(oe(new Error("Expression execution error")))}if("integer"===a.type)return s>2147483647||s<-2147483648?void n(oe(new Error("Expression result is out of 32-bit int range"))):Number(s);if(!i&&("array"===a.type||"dict"===a.type))try{return JSON.stringify(s)}catch(t){return n(oe(new Error("Failed to stringify ".concat(a.type)))),"<".concat(a.type,">")}return s}catch(t){return void n(oe(new Error("Expression execution error")))}}}function xu(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=cl(t,{startRule:"JsonStringContents"}),r=Pl(n);return e.vars.push(...r),new wu(n)}catch(e){return void n(oe(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>xu(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=xu(t[o],e,n);return r}}var r;return t}function ku(t,e){if(t){if(t instanceof wu)return t.apply(e);if(Array.isArray(t))return t.map((t=>ku(t,e)));if("object"==typeof t){const n={};for(const r in t)n[r]=ku(t[r],e);return n}}return t}function Cu(t,e,n,r){const o={vars:[],hasExpression:!1},i=xu(t,o,e);return{vars:[...new Set(o.vars)],hasExpression:o.hasExpression,applyVars:(t,o)=>ku(i,{variables:t,logError:e,store:n,weekStartDay:r,keepComplex:o})}}const Eu={pagers:function(){return te(new Map)}},ju=new Map,Au=new Map;function Pu(t){const e=ju.get(t)||te("");return ju.has(t)||ju.set(t,e),e}function Du(t){const e=Au.get(t)||new Map;return Au.has(t)||Au.set(t,e),e}class Ou{setVariable(t){const e=t.getName(),n=Du(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Pu(this).set(e)}getVariable(t){return Du(this).get(t)}list(){return Du(this).values()}}function Su(){return new Ou}function Vu(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Fu=new Set(["start","stop","pause","resume","cancel","reset"]);class Tu{constructor(t){Vu(this,"timers",new Map),Vu(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(oe(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(oe(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&Fu.has(e)))return void this.logError(oe(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}async tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),await this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((async()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&await this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),o=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((async()=>{await this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-o)%n,"running"===t.state&&e()}),o)};e()}}start(t){if("running"===t.state)return void this.logError(oe(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(oe(new Error("The timer is paused")));const e=t.definition.value_variable;!e||this.hasVariableWithType(e,"integer")?(e&&this.setVariableValue(e,0),t.definition.duration&&(t.duration=this.applyVars(t.definition.duration)),t.definition.tick_interval&&(t.tick=this.applyVars(t.definition.tick_interval)),void 0!==t.duration&&t.duration<0||void 0!==t.tick&&t.tick<=0?this.logError(oe(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):(void 0!==t.duration&&void 0!==t.tick&&(t.tickCount=0,t.tickCountPredict=Math.floor(t.duration/t.tick)),this.startOrResume(t))):this.logError(oe(new Error("Cannot find variable"),{additional:{name:e}}))}stop(t){"stopped"!==t.state?(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t),this.callActions(t,"end")):this.logError(oe(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(oe(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(oe(new Error("The timer has already been paused")));t.state="paused",this.stopTimerTimeouts(t);const e=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+e-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+e-t.tickStarted);const n=t.definition.value_variable;n&&t.durationPassed&&this.setVariableValue(n,Math.round(t.durationPassed))}resume(t){"stopped"!==t.state?"running"!==t.state?this.startOrResume(t):this.logError(oe(new Error("The timer is already running"))):this.logError(oe(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}async callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);return this.execAnyActions(t,{processUrls:!1})}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}async unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&await this.tickOrUnholdAction(e),this.startOrResume(e)}}}function Nu(t,e,n,r){const{variable_name:o}=n;if(!o)return void e(oe(new Error("Incorrect ".concat(n.type," action")),{additional:{name:o}}));const i=t.get(o);if(!i)return void e(oe(new Error("Cannot find variable"),{additional:{name:o}}));const a=i.getType();"array"===a?r(i):e(oe(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:a}}))}const Mu={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},Iu={linear:r,ease:Ko,ease_in:Yo,ease_out:Xo,ease_in_out:Jo,spring:Zo},zu=300,Ru=0;function Bu(t,e){let{animations:n,direction:r}=e;if(!n)return{};const o=Me(n),i=(a=o,Math.max(...a.map((t=>(Number(t.duration)||zu)+(Number(t.start_delay)||Ru)))));var a;return o.some((t=>"no_animation"===t.name))?{}:{duration:Ue()?0:i,css:t=>{const e=t*i,n=o.map((t=>{const n=Number(t.start_delay)||Ru,o=Number(t.duration)||zu,i=Math.max(0,Math.min(1,(e-n)/o)),a=(Iu[t.interpolator||"ease_in_out"]||Jo)(i);var s,l;if("fade"===t.name)return{active:a>0&&a<1,opacity:(1-a)*("in"===r&&null!==(s=t.start_value)&&void 0!==s?s:0)+a*("in"===r?1:null!==(l=t.end_value)&&void 0!==l?l:1)};if("translate"===t.name){var c,u;const e=-("in"===r&&null!==(c=t.start_value)&&void 0!==c?c:10),n=-("in"===r?0:null!==(u=t.end_value)&&void 0!==u?u:0);return{active:a>0&&a<1,translate:"translateY(".concat((1-a)*e+a*n).concat("in"===r&&void 0!==t.start_value||"out"===r&&void 0!==t.end_value?"%":"px",")")}}if("scale"===t.name){var d,p;const e="in"===r&&null!==(d=t.start_value)&&void 0!==d?d:0,n="in"===r?1:null!==(p=t.end_value)&&void 0!==p?p:1;return{active:a>0&&a<1,scale:"scale(".concat((1-a)*e+a*n,")")}}return{}})),a=n.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),s=n.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),l=n.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),c=n.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),u=[s,c.length?c[c.length-1]:l].filter(Boolean).join(" ");return"transform:".concat(u||"none",";opacity:").concat(a)}}}const{window:Uu}=A;function Lu(t){let e,o,i,a,c,u,d,p;return o=new Ws({props:{componentContext:t[11]}}),{c(){e=I("div"),Jt(o.$$.fragment),W(e,"class",i=Ee("tooltip",Mu,t[5])+" "+(t[12]?ne.root_platform_desktop:"")),K(e,"top",t[2]),K(e,"left",t[1]),K(e,"width",t[3]),K(e,"height",t[4])},m(n,r){T(n,e,r),Yt(o,e,null),t[23](e),u=!0,d||(p=[L(Uu,"click",t[16]),L(Uu,"resize",t[17])],d=!0)},p(n,r){let[a]=r;t=n;const s={};2048&a&&(s.componentContext=t[11]),o.$set(s),(!u||4128&a&&i!==(i=Ee("tooltip",Mu,t[5])+" "+(t[12]?ne.root_platform_desktop:"")))&&W(e,"class",i),4&a&&K(e,"top",t[2]),2&a&&K(e,"left",t[1]),8&a&&K(e,"width",t[3]),16&a&&K(e,"height",t[4])},i(n){u||(Ft(o.$$.fragment,n),n&&wt((()=>{u&&(c&&c.end(1),a=Mt(e,Bu,{animations:t[13]||Wu,direction:"in"}),a.start())})),u=!0)},o(i){Tt(o.$$.fragment,i),a&&a.invalidate(),i&&(c=function(t,e,o){const i={direction:"out"};let a,c=e(t,o,i),u=!0;const d=Ot;let p;function f(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:f}=c||Nt;f&&(a=ot(t,1,0,o,e,i,f));const h=x()+e,g=h+o;wt((()=>Pt(t,!1,"start"))),"inert"in t&&(p=t.inert,t.inert=!0),j((e=>{if(u){if(e>=g)return l(0,1),Pt(t,!1,"end"),--d.r||s(d.c),!1;if(e>=h){const t=i((e-h)/o);l(1-t,t)}}return u}))}return d.r+=1,l(c)?At().then((()=>{c=c(i),f()})):f(),{end(e){e&&"inert"in t&&(t.inert=p),e&&c.tick&&c.tick(1,0),u&&(a&&it(t,a),u=!1)}}}(e,Bu,{animations:t[14]||Wu,direction:"out"})),u=!1},d(n){n&&N(e),Xt(o),t[23](null),n&&c&&c.end(),d=!1,s(p)}}}const Wu={name:"set",items:[{name:"translate"},{name:"fade"}]};function Hu(t,e,r){let o,i,a,s,l,c,u,d,h,g,m,v,y,$=n,b=n,_=n,w=n,x=n;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{ownerNode:k}=e,{data:C}=e,{internalId:E}=e,{parentComponentContext:j}=e;const A=pt(re),P=A.isDesktop;f(t,P,(t=>r(12,m=t)));const D=Date.now();let O,S=!1,V="",F="",T="",N="",M=null;function I(){var t,e;if(!O||!k)return;const n=O.parentElement;if(!n)return;const o=O.style.cssText;r(0,O.style.cssText+=";transform: none !important",O);const i=k.getBoundingClientRect(),a=O.getBoundingClientRect(),s=n.getBoundingClientRect();r(0,O.style.cssText=o,O);let l=0,c=0,u=null,p=null,f=0,m=0;const v=j.getJsonWithVars(null===(t=C.div)||void 0===t?void 0:t.width),y=j.getJsonWithVars(null===(e=C.div)||void 0===e?void 0:e.width);if(f=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?u=v.value:a.width:u=i.width,m="match_parent"===(null==y?void 0:y.type)?p=i.height:"fixed"===(null==y?void 0:y.type)&&y.value?p=y.value:a.height,"left"===g||"bottom-left"===g||"top-left"===g)l=i.left-f;else if("top"===g||"bottom"===g||"center"===g)l=(i.left+i.right)/2-f/2;else{if("right"!==g&&"bottom-right"!==g&&"top-right"!==g)return;l=i.right}if("top"===g||"top-left"===g||"top-right"===g)c=i.top-m;else if("left"===g||"right"===g||"center"===g)c=(i.top+i.bottom)/2-m/2;else{if("bottom-left"!==g&&"bottom"!==g&&"bottom-right"!==g)return;c=i.bottom}var $;l-=s.left,c-=s.top,l+=h||0,c+=d||0,r(1,V="".concat(l,"px")),r(2,F="".concat(c,"px")),r(3,T=null!==u?"".concat(u,"px"):""),r(4,N=null!==p?"".concat(p,"px"):""),r(22,S=!0),null===u||null===p?"undefined"==typeof ResizeObserver||M||(M=new ResizeObserver((()=>{requestAnimationFrame(I)})),M.observe(O)):null===($=M)||void 0===$||$.disconnect()}return lt((()=>{if(A.tooltipRoot){const t=window.getComputedStyle(O);r(0,O.style.fontSize=t.fontSize,O),r(0,O.style.fontFamily=t.fontFamily,O),r(0,O.style.lineHeight=t.lineHeight,O),A.tooltipRoot.appendChild(O)}})),ct((()=>{S||I()})),ut((()=>{var t;null===(t=M)||void 0===t||t.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(18,k=t.ownerNode),"data"in t&&r(19,C=t.data),"internalId"in t&&r(20,E=t.internalId),"parentComponentContext"in t&&r(21,j=t.parentComponentContext)},t.$$.update=()=>{var e,n,f,m;2621440&t.$$.dirty&&r(11,o=j.produceChildContext(C.div)),2621440&t.$$.dirty&&(r(10,i=j.getDerivedFromVars(C.position)),_(),_=p(i,(t=>r(27,g=t)))),2621440&t.$$.dirty&&(r(9,a=j.getDerivedFromVars(null===(e=C.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)),b(),b=p(a,(t=>r(26,h=t)))),2621440&t.$$.dirty&&(r(8,s=j.getDerivedFromVars(null===(f=C.offset)||void 0===f||null===(m=f.y)||void 0===m?void 0:m.value)),$(),$=p(s,(t=>r(25,d=t)))),2621440&t.$$.dirty&&(r(7,l=j.getDerivedFromVars(C.animation_in)),w(),w=p(l,(t=>r(13,v=t)))),2621440&t.$$.dirty&&(r(6,c=j.getDerivedFromVars(C.animation_out)),x(),x=p(c,(t=>r(14,y=t)))),4194304&t.$$.dirty&&r(5,u={visible:S})},[O,V,F,T,N,u,c,l,s,a,i,o,m,v,y,P,function(t){Date.now()-D<100||t.composedPath().includes(O)||A.onTooltipClose(E)},function(){I()},k,C,E,j,S,function(t){gt[t?"unshift":"push"]((()=>{O=t,r(0,O)}))}]}const qu=class extends Zt{constructor(t){super(),Gt(this,t,Hu,Lu,d,{ownerNode:18,data:19,internalId:20,parentComponentContext:21})}};function Ju(t){let{delay:e=0,duration:n=400,easing:r=Xo,x:o=0,y:i=0,opacity:a=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=getComputedStyle(t),l=+s.opacity,c="none"===s.transform?"":s.transform,u=l*(1-a),[d,p]=_(o),[f,h]=_(i);return{delay:e,duration:n,easing:r,css:(t,e)=>"\n\t\t\ttransform: ".concat(c," translate(").concat((1-t)*d).concat(p,", ").concat((1-t)*f).concat(h,");\n\t\t\topacity: ").concat(l-u*e)}}const Yu={root_platform_desktop:"divkit-ee112",menu:"divkit-cedbe",menu_visible:"divkit-e4801",menu__list:"divkit-c8df2",menu__item:"divkit-ffd4a"},{window:Xu}=A;function Gu(t,e,n){const r=t.slice();return r[23]=e[n],r}function Ku(t){let e,n=t[23].text+"";return{c(){e=R(n)},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[23].text+"")&&X(e,n)},d(t){t&&N(e)}}}function Zu(t){let e,n,r,o;return n=new Ge({props:{componentContext:t[1],actions:t[23].actions||t[23].action&&[t[23].action],cls:Yu.menu__item+" "+t[10],customAction:t[14],$$slots:{default:[Ku]},$$scope:{ctx:t}}}),{c(){e=I("li"),Jt(n.$$.fragment),r=B()},m(t,i){T(t,e,i),Yt(n,e,null),S(e,r),o=!0},p(t,e){const r={};2&e&&(r.componentContext=t[1]),1&e&&(r.actions=t[23].actions||t[23].action&&[t[23].action]),67108865&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){o||(Ft(n.$$.fragment,t),o=!0)},o(t){Tt(n.$$.fragment,t),o=!1},d(t){t&&N(e),Xt(n)}}}function Qu(t){let e,n,r,o,i,a,l,c,u=zt(t[0]),d=[];for(let e=0;e<u.length;e+=1)d[e]=Zu(Gu(t,u,e));const p=t=>Tt(d[t],1,1,(()=>{d[t]=null}));return{c(){e=I("div"),n=I("ul");for(let t=0;t<d.length;t+=1)d[t].c();W(n,"class",r=Yu.menu__list),W(e,"class",o=Ee("menu",Yu,t[7])+" "+(t[8]?ne.root_platform_desktop:"")+" "+t[9]),K(e,"top",t[4]),K(e,"left",t[3]),K(e,"width",t[5]),K(e,"height",t[6])},m(r,o){T(r,e,o),S(e,n);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(n,null);t[17](e),a=!0,l||(c=[L(Xu,"click",t[12]),L(Xu,"resize",t[13])],l=!0)},p(t,r){let[i]=r;if(17411&i){let e;for(u=zt(t[0]),e=0;e<u.length;e+=1){const r=Gu(t,u,e);d[e]?(d[e].p(r,i),Ft(d[e],1)):(d[e]=Zu(r),d[e].c(),Ft(d[e],1),d[e].m(n,null))}for(St(),e=u.length;e<d.length;e+=1)p(e);Vt()}(!a||384&i&&o!==(o=Ee("menu",Yu,t[7])+" "+(t[8]?ne.root_platform_desktop:"")+" "+t[9]))&&W(e,"class",o),16&i&&K(e,"top",t[4]),8&i&&K(e,"left",t[3]),32&i&&K(e,"width",t[5]),64&i&&K(e,"height",t[6])},i(t){if(!a){for(let t=0;t<u.length;t+=1)Ft(d[t]);t&&wt((()=>{a&&(i||(i=It(e,Ju,{y:20},!0)),i.run(1))})),a=!0}},o(t){d=d.filter(Boolean);for(let t=0;t<d.length;t+=1)Tt(d[t]);t&&(i||(i=It(e,Ju,{y:20},!1)),i.run(0)),a=!1},d(n){n&&N(e),M(d,n),t[17](null),n&&i&&i.end(),l=!1,s(c)}}}function td(t,e,n){let r,o,{ownerNode:i}=e,{items:a}=e,{parentComponentContext:s}=e;const l=pt(re),c=l.getCustomization("menuPopupClass")||"",u=l.getCustomization("menuItemClass")||"",d=l.isDesktop;f(t,d,(t=>n(8,o=t)));const p=Date.now(),h=function(){const t=st();return function(e,n){let{cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t.$$.callbacks[e];if(o){const i=Q(e,n,{cancelable:r});return o.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}();let g,m=!1,v="",y="",$="",b="",_=null;function w(){if(!g||!i)return;const t=g.parentElement;if(!t)return;const e=i.getBoundingClientRect(),r=g.getBoundingClientRect(),o=t.getBoundingClientRect(),a=window.innerWidth,s=window.innerHeight;let l=0,c=0,u=r.width,d=r.height;l=e.left-o.left,c=e.bottom-o.top,l+u>a&&(l=a-u),l<0&&(l=0),c+d>s&&(c=e.top-o.top-d>0?e.top-o.top-d:s-d),c<0&&(c=0),n(3,v="".concat(l,"px")),n(4,y="".concat(c,"px")),n(5,$=""),n(6,b=""),n(16,m=!0),"undefined"==typeof ResizeObserver||_||(_=new ResizeObserver((()=>{requestAnimationFrame(w)})),_.observe(g))}return lt((()=>{if(l.tooltipRoot){const t=window.getComputedStyle(g);n(2,g.style.fontSize=t.fontSize,g),n(2,g.style.fontFamily=t.fontFamily,g),n(2,g.style.lineHeight=t.lineHeight,g),l.tooltipRoot.appendChild(g)}})),ct((()=>{m||w()})),ut((()=>{var t;null===(t=_)||void 0===t||t.disconnect()})),t.$$set=t=>{"ownerNode"in t&&n(15,i=t.ownerNode),"items"in t&&n(0,a=t.items),"parentComponentContext"in t&&n(1,s=t.parentComponentContext)},t.$$.update=()=>{65536&t.$$.dirty&&n(7,r={visible:m})},[a,s,g,v,y,$,b,r,o,c,u,d,function(t){Date.now()-p<100||t.composedPath().includes(g)||h("close")},function(){w()},function(){return h("close"),!0},i,m,function(t){gt[t?"unshift":"push"]((()=>{g=t,n(2,g)}))}]}const ed=class extends Zt{constructor(t){super(),Gt(this,t,td,Qu,d,{ownerNode:15,items:0,parentComponentContext:1})}};class nd{constructor(t){this.params=t,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerUp=this.onPointerUp.bind(this)}processActions(t){const e=this.params[t];Array.isArray(e)&&e.length&&this.context&&this.context.processExpressions(e).forEach((t=>{var e;null===(e=this.context)||void 0===e||e.execAction(t)}))}onPointerDown(t){this.startCoords={pageX:t.pageX,pageY:t.pageY}}onPointerUp(t){if(!this.startCoords)return;const e=t.pageX-this.startCoords.pageX,n=t.pageY-this.startCoords.pageY;Math.abs(e)>Math.abs(n)?e>8?this.processActions("swipe_right"):e<-8&&this.processActions("swipe_left"):n>8?this.processActions("swipe_down"):n<-8&&this.processActions("swipe_up")}mountView(t,e){this.context=e,t.addEventListener("pointerdown",this.onPointerDown),t.addEventListener("pointerup",this.onPointerUp),t.addEventListener("pointercancel",this.onPointerUp)}unmountView(t,e){t.removeEventListener("pointerdown",this.onPointerDown),t.removeEventListener("pointerup",this.onPointerUp),t.removeEventListener("pointercancel",this.onPointerUp)}}function rd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function od(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rd(Object(n),!0).forEach((function(e){id(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function id(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const{Map:ad}=A;function sd(t,e,n){const r=t.slice();return r[113]=e[n],r}function ld(t){let e,n,r,o,i,a,s,l,c,u;n=new tl({props:{svgFiltersMap:t[5]}}),o=new Ws({props:{componentContext:t[6]}});let d=t[3]&&cd(t),p=t[4]&&dd(t);return{c(){e=I("div"),Jt(n.$$.fragment),r=B(),Jt(o.$$.fragment),i=B(),d&&d.c(),a=B(),p&&p.c(),W(e,"class",s=""+(ne.root+(t[7]?" ".concat(ne.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))),W(e,"dir",t[8])},m(t,s){T(t,e,s),Yt(n,e,null),S(e,r),Yt(o,e,null),S(e,i),d&&d.m(e,null),S(e,a),p&&p.m(e,null),l=!0,c||(u=L(e,"touchstart",$d,{passive:!0}),c=!0)},p(t,r){const i={};32&r[0]&&(i.svgFiltersMap=t[5]),n.$set(i);const c={};64&r[0]&&(c.componentContext=t[6]),o.$set(c),t[3]?d?(d.p(t,r),8&r[0]&&Ft(d,1)):(d=cd(t),d.c(),Ft(d,1),d.m(e,a)):d&&(St(),Tt(d,1,1,(()=>{d=null})),Vt()),t[4]?p?(p.p(t,r),16&r[0]&&Ft(p,1)):(p=dd(t),p.c(),Ft(p,1),p.m(e,null)):p&&(St(),Tt(p,1,1,(()=>{p=null})),Vt()),(!l||129&r[0]&&s!==(s=""+(ne.root+(t[7]?" ".concat(ne.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&W(e,"class",s),(!l||256&r[0])&&W(e,"dir",t[8])},i(t){l||(Ft(n.$$.fragment,t),Ft(o.$$.fragment,t),Ft(d),Ft(p),l=!0)},o(t){Tt(n.$$.fragment,t),Tt(o.$$.fragment,t),Tt(d),Tt(p),l=!1},d(t){t&&N(e),Xt(n),Xt(o),d&&d.d(),p&&p.d(),c=!1,u()}}}function cd(t){let e,n,r=[],o=new ad,i=zt(t[3]);const a=t=>t[113].internalId;for(let e=0;e<i.length;e+=1){let n=sd(t,i,e),s=a(n);o.set(s,r[e]=ud(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=U()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);T(t,e,o),n=!0},p(t,n){72&n[0]&&(i=zt(t[3]),St(),r=Bt(r,n,a,1,t,i,o,e.parentNode,Rt,ud,e,sd),Vt())},i(t){if(!n){for(let t=0;t<i.length;t+=1)Ft(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)Tt(r[t]);n=!1},d(t){t&&N(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function ud(t,e){let n,r,o;return r=new qu({props:{ownerNode:e[113].ownerNode,data:e[113].desc,internalId:e[113].internalId,parentComponentContext:e[6]}}),{key:t,first:null,c(){n=U(),Jt(r.$$.fragment),this.first=n},m(t,e){T(t,n,e),Yt(r,t,e),o=!0},p(t,n){e=t;const o={};8&n[0]&&(o.ownerNode=e[113].ownerNode),8&n[0]&&(o.data=e[113].desc),8&n[0]&&(o.internalId=e[113].internalId),64&n[0]&&(o.parentComponentContext=e[6]),r.$set(o)},i(t){o||(Ft(r.$$.fragment,t),o=!0)},o(t){Tt(r.$$.fragment,t),o=!1},d(t){t&&N(n),Xt(r,t)}}}function dd(t){let e,n;return e=new ed({props:{ownerNode:t[4].node,items:t[4].items,parentComponentContext:t[6]}}),e.$on("close",t[38]),{c(){Jt(e.$$.fragment)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.ownerNode=t[4].node),16&n[0]&&(r.items=t[4].items),64&n[0]&&(r.parentComponentContext=t[6]),e.$set(r)},i(t){n||(Ft(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function pd(t){let e,n,r=!t[1]&&!t[2]&&t[6]&&ld(t);return{c(){r&&r.c(),e=U()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[1]||t[2]||!t[6]?r&&(St(),Tt(r,1,1,(()=>{r=null})),Vt()):r?(r.p(t,n),70&n[0]&&Ft(r,1)):(r=ld(t),r.c(),Ft(r,1),r.m(e.parentNode,e))},i(t){n||(Ft(r),n=!0)},o(t){Tt(r),n=!1},d(t){t&&N(e),r&&r.d(t)}}}let fd=te(!0),hd=0;function gd(){fd.set(!1)}function md(){fd.set(!0)}const vd=new Set(["string","integer","number","url","color","boolean"]);function yd(t,e){return t&&e?new Map([...t,...e]):t||e||void 0}function $d(){}function bd(t,e,n){var r,o,i,a;let s,l,c,u,{id:d}=e,{json:p={}}=e,{platform:h="auto"}=e,{theme:g="system"}=e,{globalVariablesController:m=new Ou}=e,{mix:v=""}=e,{customization:y={}}=e,{builtinProtocols:$=["http","https","tel","mailto","intent"]}=e,{extensions:b=new Map}=e,{onError:_}=e,{onStat:w}=e,{onCustomAction:x}=e,{onComponent:k}=e,{typefaceProvider:C=(t=>"")}=e,{fetchInit:E={}}=e,{tooltipRoot:j}=e,{customComponents:A}=e,{direction:P="ltr"}=e,{store:D}=e,{weekStartDay:O=0}=e;b.set("gesture",nd);let S=!0,V=te("desktop"===h);if(f(t,V,(t=>n(7,c=t))),"auto"===h&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");V.set(!t.matches),t.addListener((()=>{V.set(!t.matches)}))}let F="light",T=null;const N=te("rtl"===P?"rtl":"ltr");function M(){"system"===g&&T&&n(35,F=T.matches?"dark":"light")}f(t,N,(t=>n(8,u=t)));const I=new Set($);let z=!1,R=!1;d||(R=!0,Q(oe(new Error('"id" prop is required'))));const B={stateChange:!1},U=Pu(m),L=Du(m),W=new Map,H=new Map,q=new Map;let J,Y=null,X=0,G=[];const K=[];function Z(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=Cu(e,t,D,O);if(!o.hasExpression)return e;const i=yd(H,n);return o.applyVars(i,r)}function Q(t){_?_({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function tt(t,e){w&&w({type:t,action:e})}function et(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type&&t.type in s;){if(({json:t,templateContext:e}=el(t,e,s,Q)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}}let nt=0;function rt(t){return"".concat(d,"-").concat(nt++)}let ot={},it={};function at(t){st(Z(Q,t))}async function st(t,e){const r=t.url?String(t.url):"",o=t.typed;if(!Re(t))return;const i=(null==e?void 0:e.logError)||Q;if(r)try{const o=r.replace(/div-action:\/\//,""),a=/([^?]+)\?(.+)/.exec(o);if(!a)return;const l=new URLSearchParams(a[2]);switch(a[1]){case"set_state":await async function(t){if(!t)throw new Error("Missing state id");let e=bt,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],o=n[t+1];let i=e.getChild(r);if(!i)return;await i.setState(o),e=i}}(l.get("state_id"));break;case"set_current_item":case"set_previous_item":case"set_next_item":case"scroll_to_start":case"scroll_to_end":case"scroll_backward":case"scroll_forward":case"scroll_to_position":!function(t,e,n){var r,o,i,a,s;let{item:l,step:c,overflow:u}=n;if(!e)throw new Error('Missing id for "'.concat(t,'" action'));const d=Number(l);if("set_current_item"===t&&Number.isNaN(d))throw new Error('Incorrect item for "'.concat(t,'" action'));let p=Number(c);if(c||"set_previous_item"!==t&&"set_next_item"!==t||(p=1),!c&&("scroll_backward"===t||"scroll_forward"===t||"scroll_to_position"===t)||Number.isNaN(p))throw new Error('Incorrect step value for "'.concat(t,'" action'));if(u&&"clamp"!==u&&"ring"!==u)throw new Error('Incorrect overflow value for "'.concat(t,'" action'));u=u||"clamp";const f=vt(e);if(f)switch(t){case"set_current_item":return void f.setCurrentItem(d);case"set_previous_item":return void f.setPreviousItem(p,u);case"set_next_item":return void f.setNextItem(p,u);case"scroll_to_start":return void(null===(r=f.scrollToStart)||void 0===r||r.call(f));case"scroll_to_end":return void(null===(o=f.scrollToEnd)||void 0===o||o.call(f));case"scroll_backward":return void(null===(i=f.scrollBackward)||void 0===i||i.call(f,p,u));case"scroll_forward":return void(null===(a=f.scrollForward)||void 0===a||a.call(f,p,u));case"scroll_to_position":null===(s=f.scrollToPosition)||void 0===s||s.call(f,p)}}(a[1],l.get("id"),{item:l.get("item"),step:l.get("step"),overflow:l.get("overflow")});break;case"set_variable":const c=l.get("name"),u=l.get("value");if(c&&null!==u){const t=H.get(c);if(t){const e=t.getType();"dict"===e||"array"===e?i(oe(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:c}})):t.set(u)}else i(oe(new Error("Cannot find variable"),{additional:{name:c}}))}else i(oe(new Error("Incorrect set_variable_action"),{additional:{url:o}}));break;case"timer":const d=l.get("action"),p=l.get("id");Y?Y.execTimerAction(p,d):i(oe(new Error("Incorrect timer action"),{additional:{id:p,action:d}}));break;case"video":!function(t,e,n){const r=(null==n?void 0:n.logError)||Q;if(t){const n=vt(t);n?"start"===e?n.start():"pause"===e?n.pause():r(oe(new Error("Unknown video action"),{additional:{id:t,action:e}})):r(oe(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else r(oe(new Error("Missing id in video action"),{additional:{action:e}}))}(l.get("id"),l.get("action"),e);break;case"download":!function(t,e,n){const r=(null==n?void 0:n.logError)||Q;if(t){let n;n="function"==typeof E?E(t):E,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var o;if(n){if(n.templates)for(const t in n.templates)s.hasOwnProperty(t)||(s[t]=n.templates[t]);if(Array.isArray(null===(o=n.patch)||void 0===o?void 0:o.changes)){var i;if("transactional"===n.patch.mode){const o=n.patch.changes.find((t=>{const e=ht.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));var a;if(o)return r(oe(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:o.id}})),void ct(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_fail_actions)}n.patch.changes.forEach((t=>{const e=ht.get(t.id);e&&e.replaceWith(t.id,t.items)})),ct(null===(i=e.download_callbacks)||void 0===i?void 0:i.on_success_actions)}}else r(oe(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var o;r(oe(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),ct(null===(o=e.download_callbacks)||void 0===o?void 0:o.on_fail_actions)}))}else r(oe(new Error("Missing url in download action"),{additional:{url:t}}))}(l.get("url"),t,e);break;case"show_tooltip":!function(t,e,r){var o;const i=(null==r?void 0:r.logError)||Q;if(!t)return void i(oe(new Error("Missing id in show_tooltip action")));const a=mt.get(t);if(!a)return void i(oe(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&G.some((e=>e.desc.id===t)))return;const s={internalId:++X,ownerNode:a.onwerNode,desc:a.tooltip,timeoutId:0};n(3,G=[...G,s]);const l=null!==(o=a.tooltip.duration)&&void 0!==o?o:5e3;l&&(s.timeoutId=window.setTimeout((()=>{s.timeoutId=0,n(3,G=G.filter((t=>t.internalId!==s.internalId)))}),l))}(l.get("id"),l.get("multiple"),e);break;case"hide_tooltip":!function(t,e){const r=(null==e?void 0:e.logError)||Q;t?n(3,G=G.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):r(oe(new Error("Missing id in hide_tooltip action")))}(l.get("id"),e);break;case"set_stored_value":!function(t,e,n,r,o){const i=(null==t?void 0:t.logError)||Q;if(!D)return void i(oe(new Error("Store is not configured")));let a=n;e&&a&&r&&o?vd.has(r)?("integer"===r||"number"===r?a=Number(a):"boolean"===r&&(a="true"===a),D.setValue(e,r,a,Number(o))):i(oe(new Error("Incorrect stored type"))):i(oe(new Error("Missing required params for set_stored_value")))}(e,l.get("name"),l.get("value"),l.get("type"),l.get("lifetime"));break;default:i(oe(new Error("Unknown type of action"),{additional:{url:r}}))}}catch(t){i(oe(t,{additional:{url:r}}))}else if(o)switch(o.type){case"set_variable":{const{variable_name:t,value:e}=o;if(t&&e){const n=H.get(t);n?n.getType()===e.type?n.setValue(e.value):i(oe(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):i(oe(new Error("Cannot find variable"),{additional:{name:t}}))}else i(oe(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:o,value:i}=n;!i||"number"!=typeof o&&void 0!==o?e(oe(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):Nu(t,e,n,(t=>{const a=t.getValue();if("number"==typeof o&&(o<0||o>a.length))e(oe(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:a.length}}));else{const e=a.slice();"number"==typeof o?e.splice(o,0,i.value):e.push(i.value),t.setValue(e)}}))}(H,i,o);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:o}=n;"number"==typeof o?Nu(t,e,n,(t=>{const i=t.getValue();if("number"==typeof o&&(o<0||o>=i.length))e(oe(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:i.length}}));else{const e=i.slice();e.splice(o,1),t.setValue(e)}})):e(oe(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(H,i,o);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(oe(new Error("Incorrect action"),{additional:{action:e}})):"undefined"!=typeof navigator&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e.content.value).catch((e=>{t(oe(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(oe(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(i,o);break;case"focus_element":{const t=o.element_id&&gt.get(o.element_id);t?t.focus():i(oe(new Error("Incorrect focus_element action"),{additional:{elementId:o.element_id}}));break}case"clear_focus":try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch(t){}break;default:i(oe(new Error("Unknown type of action"),{additional:{type:o.type}}))}}async function ct(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!Array.isArray(t))return;const r=t.filter(Re);for(let t=0;t<r.length;++t){let o=r[t];const i=o.url,a=o.typed;if(i){const t=be(i);if(t)if(_e(t,I)){if(e.processUrls)if("_blank"===o.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(await st(o,e.componentContext),await _t()):o.log_id&&(pt(o),await _t())}else a?await st(o,e.componentContext):e.node&&Array.isArray(o.menu_items)&&o.menu_items.length&&n(4,J={items:o.menu_items,node:e.node})}r.forEach((t=>{t.log_id&&tt("click",t)}))}function pt(t){var e;null===(e=x)||void 0===e||e(t)}const ft=new Map,ht=new Map,gt=new Map,mt=new Map;function vt(t){if(ft.has(t))return ft.get(t);Q(oe(new Error("Missing instance with id"),{additional:{id:t}}))}const yt=new Map;function $t(t){const e=q.get(t)||te(void 0);return q.has(t)||q.set(t,e),e}dt(re,{logStat:tt,hasTemplate:function(t){return t in s},processTemplate:et,genId:rt,genClass:function(t){return"divkit-".concat(rt())},execAction:st,execCustomAction:pt,isRunning:function(t){return B[t]},setRunning:function(t,e){B[t]=e},registerInstance:function(t,e){ft.has(t)?Q(oe(new Error("Duplicate instance id"),{additional:{id:t}})):ft.set(t,e)},unregisterInstance:function(t){ft.delete(t)},registerParentOf:function(t,e){ht.set(t,e)},unregisterParentOf:function(t){ht.delete(t)},registerTooltip:function(t,e){const n=e.id;n&&(mt.has(n)&&Q(oe(new Error("Duplicate tooltip id"),{additional:{id:n}})),mt.set(n,{onwerNode:t,tooltip:e}))},unregisterTooltip:function(t){const e=t.id;e&&(mt.delete(e),G.some((t=>t.desc.id===e))&&n(3,G=G.filter((t=>t.desc.id!==e))))},onTooltipClose:function(t){n(3,G=G.filter((e=>e.internalId!==t)))},tooltipRoot:j,registerFocusable:function(t,e){gt.set(t,e)},unregisterFocusable:function(t){gt.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(it[r]=it[r]||0,++it[r],ot[r])return ot[r];const o="".concat(rt(),"-svg-filter");return n(5,ot=od(od({},ot),{},{[r]:o})),o},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);it[r]&&0==--it[r]&&n(5,ot=Object.keys(ot).reduce(((t,e)=>(it[e]&&(t[e]=ot[e]),t)),{}))},preparePrototypeVariables:function(t,e){const n=new Map,r=function(t,e,n){if(!(e in xa))throw new Error("Unsupported variable type");return new xa[e](t,n)}(t,"dict",e);return n.set(t,r),n},getStore:function(t){return yt.has(t)||function(t){yt.has(t)||yt.set(t,Eu[t]())}(t),yt.get(t)},getCustomization:function(t){var e;return null===(e=y)||void 0===e?void 0:e[t]},getBuiltinProtocols:function(){return I},getExtension:function(t,e){const n=b.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:H,processExpressions:t=>Z(Q,t),execAction:at,logError:Q}},registerTimeout:function(t){S?K.push(t):clearTimeout(t)},typefaceProvider:C,isDesktop:V,isPointerFocus:fd,customComponents:A,direction:N,componentDevtool:void 0}),dt(We,{hasAction:()=>!1});const bt={setState(t){throw new Error("Not implemented")},getChild(t){if(wt&&wt.has(t))return wt.get(t);Q(oe(new Error("Missing state block with id"),{additional:{id:t}}))}};let wt=null;function xt(t){if(t.type in ya){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&Q(oe(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=$a(t.name,t.type,t.value);W.set(t.name,e),H.set(t.name,e)}catch(e){Q(oe(e,{additional:{name:t.name}}))}}}dt(je,{registerInstance(t,e){wt||(wt=new Map),wt.has(t)?Q(oe(new Error("Duplicate state with id"),{additional:{id:t}})):wt.set(t,e)},unregisterInstance(t){var e;null===(e=wt)||void 0===e||e.delete(t)},runVisibilityTransition:(t,e,n,r,o)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const kt=null===(r=p)||void 0===r||null===(o=r.card)||void 0===o?void 0:o.variables;Array.isArray(kt)&&kt.forEach((t=>{if(t&&t.name){if(W.has(t.name))return void Q(oe(new Error("Duplicate variable"),{additional:{name:t.name}}));xt(t)}}));const Ct=p.palette;Ct&&Ct[F].forEach((t=>{if(W.has(t.name))Q(oe(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=$a(t.name,"color",t.color);W.set(t.name,e),H.set(t.name,e)}catch(e){Q(oe(e,{additional:{name:t.name}}))}}));for(const[t,e]of L)H.has(t)||H.set(t,e);U.subscribe((t=>{if(t&&!H.has(t)){const e=L.get(t);H.set(t,e);const n=q.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const Et=null===(i=p)||void 0===i||null===(a=i.card)||void 0===a?void 0:a.timers;if(Et&&"undefined"!=typeof document){const t=Y=new Tu({logError:Q,applyVars:t=>Z(Q,t),hasVariableWithType:function(t,e){const n=H.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=H.get(t);n?n.setValue(e):Q(oe(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:ct});Et.forEach((e=>t.createTimer(e)))}const jt=function t(e){const n={json:{},path:[],templateContext:{},logError(t){t.additional=t.additional||{},t.additional.path=n.path.join("/"),Q(t)},execAnyActions(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ct(t,{componentContext:n,processUrls:e.processUrls,node:e.node})},getDerivedFromVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return yr(e);const o=yd(H,n),i=Cu(e,t,D,O);return i.vars.length?ee(i.vars.map((t=>o.get(t)||$t(t))).filter(he),(()=>i.applyVars(o,r))):i.hasExpression?yr(i.applyVars(o)):yr(e)}(n.logError,t,yd(n.variables,e),r)},getJsonWithVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Z(n.logError,t,yd(n.variables,e),r)},produceChildContext(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t(n);let i=e,a=n.templateContext;const{templateContext:s,json:l}=et(i,a);return o.json=l,o.templateContext=s,o.origJson=e,void 0!==r.path&&o.path.push(String(r.path)),e.type&&!r.isRootState&&o.path.push(e.type),o.variables=yd(n.variables,r.variables),r.fake&&(o.fakeElement=!0),r.isRootState&&(o.isRootState=!0),o},getVariable(t,e){const r=(n.variables||H).get(t);if(r){const o=r.getType();if(o!==e)return void n.logError(oe(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:o}}))}return r}};return e?(n.parent=e,n.path=e.path.slice(),e.fakeElement&&(n.fakeElement=!0)):(n.json={type:"root"},n.isRootState=!0),n}();let At;return lt((()=>{hd++,1===hd&&(window.addEventListener("keydown",gd),window.addEventListener("pointerdown",md)),(()=>{var t,e;const n=null===(t=p)||void 0===t||null===(e=t.card)||void 0===e?void 0:e.variable_triggers;Array.isArray(n)&&n.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void Q(oe(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:t.condition}}));const n=t.mode||"on_condition";if("on_variable"===n||"on_condition"===n)try{const r=cl(t.condition,{startRule:"JsonStringContents"}),o=Pl(r);if(!o.length)return void Q(oe(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));ee(o.map((t=>H.get(t)||$t(t))),(()=>{const t=_u(H,D,r,{weekStartDay:O});return t.warnings.forEach(Q),t.result})).subscribe((async r=>{if("error"!==r.type){if(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)){const e=[],n=t.actions.map((t=>Z(Q,t)));for(const t of n)t.log_id&&(await st(t),e.push(t));for(const t of e)tt("trigger",t)}e=Boolean(r.value)}else Q(oe(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}catch(e){Q(oe(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else Q(oe(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}))})()})),ut((()=>{S=!1,hd--,hd||(window.removeEventListener("keydown",gd),window.removeEventListener("pointerdown",md)),Y&&Y.destroy(),G.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)})),K.forEach((t=>{clearTimeout(t)}))})),t.$$set=t=>{"id"in t&&n(13,d=t.id),"json"in t&&n(11,p=t.json),"platform"in t&&n(14,h=t.platform),"theme"in t&&n(12,g=t.theme),"globalVariablesController"in t&&n(15,m=t.globalVariablesController),"mix"in t&&n(0,v=t.mix),"customization"in t&&n(16,y=t.customization),"builtinProtocols"in t&&n(17,$=t.builtinProtocols),"extensions"in t&&n(18,b=t.extensions),"onError"in t&&n(19,_=t.onError),"onStat"in t&&n(20,w=t.onStat),"onCustomAction"in t&&n(21,x=t.onCustomAction),"onComponent"in t&&n(22,k=t.onComponent),"typefaceProvider"in t&&n(23,C=t.typefaceProvider),"fetchInit"in t&&n(24,E=t.fetchInit),"tooltipRoot"in t&&n(25,j=t.tooltipRoot),"customComponents"in t&&n(26,A=t.customComponents),"direction"in t&&n(27,P=t.direction),"store"in t&&n(28,D=t.store),"weekStartDay"in t&&n(29,O=t.weekStartDay)},t.$$.update=()=>{if(4096&t.$$.dirty[0]|32&t.$$.dirty[1]&&("light"===g||"dark"===g?n(35,F=g):"system"===g?"undefined"!=typeof matchMedia?(T||(n(36,T=matchMedia("(prefers-color-scheme: dark)")),T.addListener(M)),n(35,F=T.matches?"dark":"light")):n(35,F="light"):Q(oe(new Error("Unsupported theme")))),16&t.$$.dirty[1]&&F&&(Ct&&Ct[F].forEach((t=>{const e=H.get(t.name);e&&e.setValue(t.color)}))),2048&t.$$.dirty[0]){n(1,z=!1);const t=function(t){if(!t)return oe(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return oe(new Error("Missing card"));if(!e.states||!e.states.length)return oe(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Rs)return oe(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return oe(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return oe(new Error("Missing state_id"),{additional:{index:t}})}return null}(p);t&&(n(1,z=!0),Q(t))}var e,r,o,i;if(2048&t.$$.dirty[0]&&(s=p.templates||{}),2048&t.$$.dirty[0]&&null!==(e=p)&&void 0!==e&&null!==(r=e.card)&&void 0!==r&&r.variables&&Array.isArray(p.card.variables)&&p.card.variables!==kt&&p.card.variables.forEach((t=>{t&&t.name&&!W.has(t.name)&&xt(t)})),2048&t.$$.dirty[0]&&n(37,l=null===(o=p)||void 0===o||null===(i=o.card)||void 0===i?void 0:i.states),6&t.$$.dirty[0]|64&t.$$.dirty[1]&&l&&!z&&!R){const t={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:l.map((t=>({state_id:t.state_id.toString(),div:t.div})))};n(6,At=jt.produceChildContext(t,{isRootState:!0}))}},[v,z,R,G,J,ot,At,c,u,V,N,p,g,d,h,m,y,$,b,_,w,x,k,C,E,j,A,P,D,O,function(t){n(12,g=t)},function(){return new Map},function(){return new Map},function(t){n(11,p=t)},at,F,T,l,()=>n(4,J=void 0)]}const _d=class extends Zt{constructor(t){super(),Gt(this,t,bd,pd,d,{id:13,json:11,platform:14,theme:12,globalVariablesController:15,mix:0,customization:16,builtinProtocols:17,extensions:18,onError:19,onStat:20,onCustomAction:21,onComponent:22,typefaceProvider:23,fetchInit:24,tooltipRoot:25,customComponents:26,direction:27,store:28,weekStartDay:29,setTheme:30,getDebugVariables:31,getDebugAllVariables:32,setData:33,execAction:34},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[30]}get getDebugVariables(){return this.$$.ctx[31]}get getDebugAllVariables(){return this.$$.ctx[32]}get setData(){return this.$$.ctx[33]}get execAction(){return this.$$.ctx[34]}};class wd{constructor(t){var e,n,r;e=this,r={},n=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(n="sizeHistory"),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this.widthVariableName=t.width_variable_name,this.heightVariableName=t.height_variable_name}setVariable(t,e){if(!this.context)return!1;if(t){const n=this.context.variables.get(t);if(n&&"integer"===n.getType()){if(e=Math.round(e),this.sizeHistory[t]||(this.sizeHistory[t]=new Set),!this.sizeHistory[t].has(e))return n.setValue(e),this.sizeHistory[t].add(e),!0}else{const e=new Error("Missing variable");e.level="error",e.additional={variableName:t},this.context.logError(e)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const t=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,t.width),n=this.setVariable(this.heightVariableName,t.height);return e||n}mountView(t,e){var n;this.node=t,this.context=e,this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((async()=>{let t=0;for(;this.recalcProps();){if(++t>8){const t=new Error("Recursive layout in size_provider");t.level="warn",t.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(t);break}await _t()}this.sizeHistory={}}))),null===(n=this.resizeObserver)||void 0===n||n.observe(t),this.recalcProps()}unmountView(t,e){var n;null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=void 0}}function xd(t){return t instanceof HTMLElement}function kd(t){return class{constructor(t){this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(xd);r.forEach((t=>{t.style.display="none"})),e.setAttribute("data-lottie","true");const o=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),a=()=>{var t,o;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(o=this.wrapper.parentNode)||void 0===o||o.removeChild(this.wrapper),this.wrapper=void 0);const i=new Error("Failed to load lottie animation");i.level="error",i.additional={url:this.params.lottie_url},n.logError(i)};this.loadData().then((e=>{const n=this.animItem=t({container:o,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const Cd=["target","hydrate"];function Ed(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Cd),o=new _d({target:e,props:r,hydrate:n});return{$destroy(){o.$destroy()},execAction(t){o.execAction(t)},setTheme(t){o.setTheme(t)},setData(t){o.setData(t)}}}var jd=e.$5,Ad=e.XQ,Pd=e.rz,Dd=e.U2,Od=e.XX;export{jd as SizeProvider,Ad as createGlobalVariablesController,Pd as createVariable,Dd as lottieExtensionBuilder,Od as render};
2
2
  //# sourceMappingURL=client.mjs.map