@divkitframework/divkit 28.2.0 → 28.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/client-devtool.js +1 -1
- package/dist/browser/client-devtool.js.map +1 -1
- package/dist/browser/client-hydratable.js +1 -1
- package/dist/browser/client-hydratable.js.map +1 -1
- package/dist/browser/client.js +1 -1
- package/dist/browser/client.js.map +1 -1
- package/dist/client-devtool.js +1 -1
- package/dist/client-devtool.js.map +1 -1
- package/dist/client-hydratable.js +1 -1
- package/dist/client-hydratable.js.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/esm/client-devtool.mjs +1 -1
- package/dist/esm/client-devtool.mjs.map +1 -1
- package/dist/esm/client-hydratable.mjs +1 -1
- package/dist/esm/client-hydratable.mjs.map +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/client.mjs.map +1 -1
- package/dist/esm/server.mjs +1 -1
- package/dist/esm/server.mjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,{Hy:()=>Yl,M:()=>Ml,Os:()=>Jo,_0:()=>Zl,sY:()=>Ql});const r=t=>t;function i(t,e){for(const n in e)t[n]=e[n];return t}function o(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(o)}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 h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(null==t){for(const t of r)t(void 0);return n}const o=t.subscribe(...r);return o.unsubscribe?()=>o.unsubscribe():o}function f(t,e,n){t.$$.on_destroy.push(h(e,n))}function p(t,e,n,r){if(t){const i=g(t,e,n,r);return t[0](i)}}function g(t,e,n,r){return t[1]&&r?i(n.ctx.slice(),t[1](r(e))):n.ctx}function m(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|i[r];return t}return e.dirty|i}return e.dirty}function v(t,e,n,r,i,o){if(i){const a=g(e,n,r,o);t.p(a,i)}}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 _(t){return t&&l(t.destroy)?t.destroy:n}const b="undefined"!=typeof window;let w=b?()=>window.performance.now():()=>Date.now(),x=b?t=>requestAnimationFrame(t):n;const k=new Set;function E(t){k.forEach((e=>{e.c(t)||(k.delete(e),e.f())})),0!==k.size&&x(E)}function C(t){let e;return 0===k.size&&x(E),{promise:new Promise((n=>{k.add(e={c:t,f:n})})),abort(){k.delete(e)}}}const A="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 D{constructor(t){V(this,"_listeners","WeakMap"in A?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;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 P=!1;function j(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function S(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=T("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(S(t),e),e.sheet}function I(t,e){if(P){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let i=0;for(let t=0;t<e.length;t++){const o=e[t].claim_order,a=(i>0&&e[n[i]].claim_order<=o?i+1:j(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const s=a+1;n[s]=t,i=Math.max(s,i)}const o=[],a=[];let s=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);o.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<o.length&&a[e].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function F(t,e,n){P&&!n?I(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function O(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 T(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 J(){return R("")}function L(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function U(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const W=["width","height"];function H(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===W.indexOf(r)?t[r]=e[r]:U(t,r,e[r])}function q(t){return Array.from(t.childNodes)}function G(t,e,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const o=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function K(t,e,n,r){return G(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const i=t.attributes[r];n[i.name]||e.push(i.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function Y(t,e,n){return K(t,e,n,T)}function X(t,e,n){return K(t,e,n,z)}function Z(t,e){return G(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>R(e)),!0)}function Q(t){return Z(t," ")}function tt(t,e){e=""+e,t.data!==e&&(t.data=e)}function et(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function nt(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 rt(t,e){return new t(e)}const it=new Map;let ot,at=0;function st(t,e,n,r,i,o,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)*o(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),h=S(t),{stylesheet:f,rules:p}=it.get(h)||function(t,e){const n={stylesheet:N(e),rules:{}};return it.set(t,n),n}(h,t);p[d]||(p[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(i,"ms 1 both"),at+=1,d}function lt(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-r.length;i&&(t.style.animation=r.join(", "),at-=i,at||x((()=>{at||(it.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&O(e)})),it.clear())})))}function ct(t){ot=t}function ut(){if(!ot)throw new Error("Function called outside component initialization");return ot}function dt(t){ut().$$.on_mount.push(t)}function ht(t){ut().$$.on_destroy.push(t)}function ft(t,e){return ut().$$.context.set(t,e),e}function pt(t){return ut().$$.context.get(t)}function gt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const mt=[],vt=[];let yt=[];const $t=[],_t=Promise.resolve();let bt=!1;function wt(){bt||(bt=!0,_t.then(Vt))}function xt(){return wt(),_t}function kt(t){yt.push(t)}const Et=new Set;let Ct,At=0;function Vt(){if(0!==At)return;const t=ot;do{try{for(;At<mt.length;){const t=mt[At];At++,ct(t),Dt(t.$$)}}catch(t){throw mt.length=0,At=0,t}for(ct(null),mt.length=0,At=0;vt.length;)vt.pop()();for(let t=0;t<yt.length;t+=1){const e=yt[t];Et.has(e)||(Et.add(e),e())}yt.length=0}while(mt.length);for(;$t.length;)$t.pop()();bt=!1,Et.clear(),ct(t)}function Dt(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(kt)}}function Pt(){return Ct||(Ct=Promise.resolve(),Ct.then((()=>{Ct=null}))),Ct}function jt(t,e,n){t.dispatchEvent(function(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})}("".concat(e?"intro":"outro").concat(n)))}const St=new Set;let Nt;function It(){Nt={r:0,c:[],p:Nt}}function Ft(){Nt.r||s(Nt.c),Nt=Nt.p}function Ot(t,e){t&&t.i&&(St.delete(t),t.i(e))}function Mt(t,e,n,r){if(t&&t.o){if(St.has(t))return;St.add(t),Nt.c.push((()=>{St.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Tt={duration:0};function zt(t,e,i){const o={direction:"in"};let a,s,c=e(t,i,o),u=!1,d=0;function h(){a&<(t,a)}function f(){const{delay:e=0,duration:i=300,easing:o=r,tick:l=n,css:f}=c||Tt;f&&(a=st(t,0,1,i,e,o,f,d++)),l(0,1);const p=w()+e,g=p+i;s&&s.abort(),u=!0,kt((()=>jt(t,!0,"start"))),s=C((e=>{if(u){if(e>=g)return l(1,0),jt(t,!0,"end"),h(),u=!1;if(e>=p){const t=o((e-p)/i);l(t,1-t)}}return u}))}let p=!1;return{start(){p||(p=!0,lt(t),l(c)?(c=c(o),Pt().then(f)):f())},invalidate(){p=!1},end(){u&&(h(),u=!1)}}}function Rt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Bt(t,e){Mt(t,1,1,(()=>{e.delete(t.key)}))}function Jt(t,e,n,r,i,o,a,l,c,u,d,h){let f=t.length,p=o.length,g=f;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,_=[];for(g=p;g--;){const t=h(i,o,g),s=n(t);let l=a.get(s);l?r&&_.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 b=new Set,w=new Set;function x(t){Ot(t,1),t.m(l,d),a.set(t.key,t),d=t.first,p--}for(;f&&p;){const e=v[p-1],n=t[f-1],r=e.key,i=n.key;e===n?(d=e.first,f--,p--):y.has(i)?!a.has(r)||b.has(r)?x(e):w.has(i)?f--:$.get(r)>$.get(i)?(w.add(r),x(e)):(b.add(i),f--):(c(n,a),f--)}for(;f--;){const e=t[f];y.has(e.key)||c(e,a)}for(;p;)x(v[p-1]);return s(_),v}function Lt(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],s=e[o];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)i[t]||(n[t]=s[t],i[t]=1);t[o]=s}else for(const t in a)i[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 Gt(t){t&&t.c()}function Kt(t,e){t&&t.l(e)}function Yt(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),kt((()=>{const e=t.$$.on_mount.map(o).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),i.forEach(kt)}function Xt(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];yt.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),yt=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Zt(t,e,r,i,o,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=ot;ct(t);const h=t.$$={fragment:null,ctx:[],props:l,update:n,not_equal:o,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(h.root);let f=!1;if(h.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 h.ctx&&o(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),f&&function(t,e){-1===t.$$.dirty[0]&&(mt.push(t),wt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),f=!0,s(h.before_update),h.fragment=!!i&&i(h.ctx),e.target){if(e.hydrate){P=!0;const t=q(e.target);h.fragment&&h.fragment.l(t),t.forEach(O)}else h.fragment&&h.fragment.c();e.intro&&Ot(t.$$.fragment),Yt(t,e.target,e.anchor),P=!1,Vt()}ct(d)}function Qt(t,e,n,r){var i;const o=null===(i=n[t])||void 0===i?void 0:i.type;if(e="Boolean"===o&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(o){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(o){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=T("slot"),"default"!==t&&U(e,"name",t)},m:function(t,n){!function(t,e,n){t.insertBefore(e,n||null)}(t,e,n)},d:function(t){t&&O(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const i of this.$$s)i in n&&(e[i]=[t(i)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=Qt(a,o.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=Qt(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]=Qt(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 te{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 ee=[];function ne(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const i=new Set;function o(n){if(o=n,((r=t)!=r?o==o:r!==o||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!ee.length;for(const e of i)e[1](),ee.push(e,t);if(e){for(let t=0;t<ee.length;t+=2)ee[t][0](ee[t+1]);ee.length=0}}var r,o}function a(e){o(e(t))}return{set:o,update:a,subscribe:function(s){const l=[s,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return i.add(l),1===i.size&&(e=r(o,a)||n),s(t),()=>{i.delete(l),0===i.size&&e&&(e(),e=null)}}}}function re(t,e,r){const i=!Array.isArray(t),o=i?[t]:t;if(!o.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 p=()=>{if(d)return;f();const o=e(i?u[0]:u,t,r);a?t(o):f=l(o)?o:n},g=o.map(((t,e)=>h(t,(t=>{u[e]=t,d&=~(1<<e),c&&p()}),(()=>{d|=1<<e}))));return c=!0,p(),function(){s(g),f(),c=!1}},{subscribe:ne(r,c).subscribe};var c}const ie={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"},oe=Symbol("root");function ae(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 se={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},le={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 ce(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 ue(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function de(t){let e=ue(t);return"0"===e&&(e+="em"),e}function he(t,e){for(;t.length<e;)t="0"+t;return t}function fe(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=>he(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,i,o]=e,a=2===r.length?r:r+r,s=2===i.length?i:i+i,l=2===o.length?o:o+o,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,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function ge(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&")),e.indexOf("<")>-1&&(e=e.replace(/</g,"<")),e.indexOf(">")>-1&&(e=e.replace(/>/g,">")),e.indexOf('"')>-1&&(e=e.replace(/"/g,""")),e}const me=Boolean;function ve(t){if(1===t.length&&"solid"===t[0].type)return{color:fe(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=fe(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(me);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>fe(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:_e(t.bg.scale),pos:be(t.bg),image:'url("'+ge(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(me);if(!n.length)return;const r=t.bg.radius;let i;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?i=de(r.value):"relative"===r.type&&(i=ye[r.value]));const o=$e(t.bg.center_x),a=$e(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(i||"farthest-corner"," at ").concat(o," ").concat(a)+","+n.map((t=>fe(t))).join(",")+")"}}({bg:t}):void 0)).filter(me).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 ye={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function $e(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return de(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function _e(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function be(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 we(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function xe(t,e){return e.has(t)}function ke(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 Ee(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ke(Object(n),!0).forEach((function(e){Ce(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ce(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 Ae(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function Ve(t,e){e&&t.push(e)}function De(t,e,n){const r=[];Ve(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&Ve(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const Pe=Symbol("state");function je(t){return ue(t.top||0)+" "+ue(t.right||0)+" "+ue(t.bottom||0)+" "+ue(t.left||0)}function Se(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Ne(t){return Se(t)&&t>=0}function Ie(t,e){if(!t)return e;const n=[t.top,t.right,t.bottom,t.left];for(let t=0;t<n.length;++t)if(n[t]&&!Ne(n[t]))return e;return je(t)}function Fe(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Oe=Object.prototype.hasOwnProperty;function Me(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 i=n[r];if(!Oe.call(e,i)||!Me(t[i],e[i]))return!1}return!0}function Te(t,e){return Me(t,e)?e:t}function ze(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Re(t,e){const n=Number(t);return isNaN(n)?e:n}function Be(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Be(t))})):e.push(t),e}function Je(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]]&&!Ne(t[n[r]]))return e;return t}function Le(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=>ue((t||e)/n*10))).join(" ")}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,o,a,l,c,u,d;const h=t[15].default,f=p(h,t,t[14],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?ie.root__clickable:ie["root__clickable-no-transition"]," ").concat(ie.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ie["root_disabled-context-menu"]:"")},{style:t[2]},{role:o=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=i($,g[t]);return{c(){n=T("span"),f&&f.c(),this.h()},l(t){n=Y(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=q(n);f&&f.l(e),e.forEach(O),this.h()},h(){H(n,$)},m(e,r){F(e,n,r),f&&f.m(n,null),t[23](n),c=!0,u||(d=[_(l=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])],u=!0)},p(t,e){var i;f&&f.p&&(!c||16384&e[0])&&v(f,h,t,t[14],c?m(h,t[14],e,null):y(t[14]),null),H(n,$=Lt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?ie.root__clickable:ie["root__clickable-no-transition"]," ").concat(ie.root__unselectable):"")+" "+(null!==(i=t[0])&&void 0!==i&&i.length?ie["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&o!==(o=t[8]?"button":null))&&{role:o},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(Ot(f,t),c=!0)},o(t){Mt(f,t),c=!1},d(e){e&&O(n),f&&f.d(e),t[23](null),u=!1,s(d)}}}function Ge(t){var e;let n,r,o,a,l,c;const u=t[15].default,d=p(u,t,t[14],null);let h=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?ie.root__clickable:ie["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ie["root_disabled-context-menu"]:"")},t[3]],f={};for(let t=0;t<h.length;t+=1)f=i(f,h[t]);return{c(){n=T("a"),d&&d.c(),this.h()},l(t){n=Y(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=q(n);d&&d.l(e),e.forEach(O),this.h()},h(){H(n,f)},m(e,r){F(e,n,r),d&&d.m(n,null),t[22](n),a=!0,l||(c=[_(o=t[4].call(null,n)),L(n,"click",t[16]),L(n,"keydown",t[10]),L(n,"focus",t[17]),L(n,"blur",t[18])],l=!0)},p(t,e){var i;d&&d.p&&(!a||16384&e[0])&&v(d,u,t,t[14],a?m(u,t[14],e,null):y(t[14]),null),H(n,f=Lt(h,[(!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]?ie.root__clickable:ie["root__clickable-no-transition"])+" "+(null!==(i=t[0])&&void 0!==i&&i.length?ie["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Ot(d,t),a=!0)},o(t){Mt(d,t),a=!1},d(e){e&&O(n),d&&d.d(e),t[22](null),l=!1,s(c)}}}function Ke(t){let e,n,r,i;const o=[Ge,qe],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=o[e](t),{c(){n.c(),r=J()},l(t){n.l(t),r=J()},m(t,n){a[e].m(t,n),F(t,r,n),i=!0},p(t,i){let l=e;e=s(t),e===l?a[e].p(t,i):(It(),Mt(a[l],1,1,(()=>{a[l]=null})),Ft(),n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Ot(n,1),n.m(r.parentNode,r))},i(t){i||(Ot(n),i=!0)},o(t){Mt(n),i=!1},d(t){t&&O(r),a[e].d(t)}}}function Ye(t,e,n){let{$$slots:r={},$$scope:i}=e,{actions:o}=e,{doubleTapActions:a}=e,{longTapActions:s}=e,{cls:l=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=Ue}=e,{customAction:h=null}=e,{isNativeActionAnimation:f=!0}=e;const p=pt(oe),g=pt(We);let m;ft(We,{hasAction:()=>Boolean(g.hasAction()||(null==o?void 0:o.length))});let v,y="",$=-1,_=null,b=!1,w=!1;async function x(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():o&&(o.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=we(e);return n&&!xe(n,p.getBuiltinProtocols())}))&&t.preventDefault(),p.execAnyActions(o)))}function k(t){g.hasAction()||void 0!==t.button&&0!==t.button||p.execAnyActions(a,!0)}function E(t){t.touches.length>1||(_=He(t),b=!1,$=Date.now())}function C(t){if(!_)return;const e=He(t);(Math.abs(_.x-e.x)>8||Math.abs(_.y-e.y)>8)&&(b=!0)}function A(){!_||$<0||(!b&&Date.now()-$>=400&&p.execAnyActions(s,!0),_=null,$=-1)}return t.$$set=t=>{"actions"in t&&n(11,o=t.actions),"doubleTapActions"in t&&n(12,a=t.doubleTapActions),"longTapActions"in t&&n(0,s=t.longTapActions),"cls"in t&&n(1,l=t.cls),"style"in t&&n(2,c=t.style),"attrs"in t&&n(3,u=t.attrs),"use"in t&&n(4,d=t.use),"customAction"in t&&n(13,h=t.customAction),"isNativeActionAnimation"in t&&n(5,f=t.isNativeActionAnimation),"$$scope"in t&&n(14,i=t.$$scope)},t.$$.update=()=>{if(10368&t.$$.dirty[0]){if(Array.isArray(o)&&(null==o?void 0:o.length))for(let t=0;t<o.length;++t){const e=o[t].url;if(e){n(7,y=e),n(9,v=o[t].target||void 0);break}}Array.isArray(o)&&(null==o?void 0:o.length)&&g.hasAction()&&(n(7,y=""),p.logError(ae(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:o}}))),n(8,w=Boolean(h)),y&&!xe(we(y),p.getBuiltinProtocols())?(n(7,y=""),n(8,w=!0)):!y&&Array.isArray(o)&&(null==o?void 0:o.length)&&(n(8,w=!0),p.logError(ae(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:o}})))}4545&t.$$.dirty[0]&&m&&(y||w?m.addEventListener("click",x):m.removeEventListener("click",x),(null==a?void 0:a.length)?m.addEventListener("dblclick",k):m.removeEventListener("dblclick",k),(null==s?void 0:s.length)?(m.addEventListener("touchstart",E,{passive:!0}),m.addEventListener("touchmove",C,{passive:!0}),m.addEventListener("touchend",A,{passive:!0}),m.addEventListener("touchcancel",A,{passive:!0})):(m.removeEventListener("touchstart",E),m.removeEventListener("touchmove",C),m.removeEventListener("touchend",A),m.removeEventListener("touchcancel",A)))},[s,l,c,u,d,f,m,y,w,v,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(o)&&o.length&&(p.execAnyActions(o),t.preventDefault())},o,a,h,i,r,function(e){gt.call(this,t,e)},function(e){gt.call(this,t,e)},function(e){gt.call(this,t,e)},function(e){gt.call(this,t,e)},function(e){gt.call(this,t,e)},function(e){gt.call(this,t,e)},function(t){vt[t?"unshift":"push"]((()=>{m=t,n(6,m)}))},function(t){vt[t?"unshift":"push"]((()=>{m=t,n(6,m)}))}]}const Xe=class extends te{constructor(t){super(),Zt(this,t,Ye,Ke,d,{actions:11,doubleTapActions:12,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:13,isNativeActionAnimation:5},null,[-1,-1])}},Ze={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function Qe(t){return Se(t)&&t>0}function tn(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(Qe(t.radius))return"blur(".concat(de(t.radius/2),")")}else e(ae(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function en(t,e,n){const r=t.slice();return r[5]=e[n],r}function nn(t){let e,n,r;return{c(){e=T("span"),this.h()},l(t){e=Y(t,"SPAN",{class:!0,style:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=Ze["outer-background__item"]),U(e,"style",r=ce(t[5].style))},m(t,n){F(t,e,n)},p(t,n){2&n&&r!==(r=ce(t[5].style))&&U(e,"style",r)},d(t){t&&O(e)}}}function rn(t){let e,n,r,i,o,a;return{c(){e=T("img"),this.h()},l(t){e=Y(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){u(e.src,n=t[5].image_url)||U(e,"src",n),U(e,"alt",""),U(e,"aria-hidden","true"),U(e,"loading","lazy"),U(e,"decoding","async"),U(e,"class",r=Ze["outer-background__item"]),U(e,"style",i=ce(t[5].style))},m(n,r){F(n,e,r),o||(a=L(e,"error",t[2]),o=!0)},p(t,r){2&r&&!u(e.src,n=t[5].image_url)&&U(e,"src",n),2&r&&i!==(i=ce(t[5].style))&&U(e,"style",i)},d(t){t&&O(e),o=!1,a()}}}function on(t){let e;function n(t,e){return t[5].image_url?rn:nn}let r=n(t),i=r(t);return{c(){i.c(),e=J()},l(t){i.l(t),e=J()},m(t,n){i.m(t,n),F(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&O(e),i.d(t)}}}function an(t){let e,r,i=Rt(t[1]),o=[];for(let e=0;e<i.length;e+=1)o[e]=on(en(t,i,e));return{c(){e=T("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=Y(t,"SPAN",{class:!0});var n=q(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(O),this.h()},h(){U(e,"class",r=Ze["outer-background"]+(t[0]?" "+Ze["outer-background_clip"]:"")),et(e,"border-radius",t[0])},m(t,n){F(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(i=Rt(t[1]),n=0;n<i.length;n+=1){const r=en(t,i,n);o[n]?o[n].p(r,a):(o[n]=on(r),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=i.length}1&a&&r!==(r=Ze["outer-background"]+(t[0]?" "+Ze["outer-background_clip"]:""))&&U(e,"class",r),1&a&&et(e,"border-radius",t[0])},i:n,o:n,d(t){t&&O(e),M(o,t)}}}function sn(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=pt(oe);return t.$$set=t=>{"background"in t&&n(3,i=t.background),"radius"in t&&n(0,o=t.radius)},t.$$.update=()=>{8&t.$$.dirty&&n(1,r=i.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=ve([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=tn(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Ze["outer-background__item_hidden"])},i]}const ln=class extends te{constructor(t){super(),Zt(this,t,sn,an,d,{background:3,radius:0})}},cn=t=>({hasCustomFocus:64&t[0]}),un=t=>({focusHandler:t[36],blurHandler:t[37],hasCustomFocus:t[6]});function dn(t){let e,n;return e=new Xe({props:{use:t[35],cls:t[0]+" "+De("outer",le,t[17]),style:ce(t[15]),actions:t[11],doubleTapActions:t[12],longTapActions:t[13],attrs:t[7],isNativeActionAnimation:!t[5].length||mn(t[5]),$$slots:{default:[pn]},$$scope:{ctx:t}}}),e.$on("focus",t[36]),e.$on("blur",t[37]),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};131073&n[0]&&(r.cls=t[0]+" "+De("outer",le,t[17])),32768&n[0]&&(r.style=ce(t[15])),2048&n[0]&&(r.actions=t[11]),4096&n[0]&&(r.doubleTapActions=t[12]),8192&n[0]&&(r.longTapActions=t[13]),128&n[0]&&(r.attrs=t[7]),32&n[0]&&(r.isNativeActionAnimation=!t[5].length||mn(t[5])),350&n[0]|268435456&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function hn(t){let e,n;return e=new ln({props:{background:t[3],radius:t[2]}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};8&n[0]&&(r.background=t[3]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function fn(t){let e,n,r;return{c(){e=T("span"),this.h()},l(t){e=Y(t,"SPAN",{class:!0,style:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=le.outer__border),U(e,"style",r=ce(t[1]))},m(t,n){F(t,e,n)},p(t,n){2&n[0]&&r!==(r=ce(t[1]))&&U(e,"style",r)},d(t){t&&O(e)}}}function pn(t){let e,n,r,i=t[4]&&hn(t);const o=t[120].default,a=p(o,t,t[121],un);let s=t[8]&&fn(t);return{c(){i&&i.c(),e=J(),a&&a.c(),s&&s.c(),n=J()},l(t){i&&i.l(t),e=J(),a&&a.l(t),s&&s.l(t),n=J()},m(t,o){i&&i.m(t,o),F(t,e,o),a&&a.m(t,o),s&&s.m(t,o),F(t,n,o),r=!0},p(t,l){t[4]?i?(i.p(t,l),16&l[0]&&Ot(i,1)):(i=hn(t),i.c(),Ot(i,1),i.m(e.parentNode,e)):i&&(It(),Mt(i,1,1,(()=>{i=null})),Ft()),a&&a.p&&(!r||64&l[0]|268435456&l[3])&&v(a,o,t,t[121],r?m(o,t[121],l,cn):y(t[121]),un),t[8]?s?s.p(t,l):(s=fn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Ot(i),Ot(a,t),r=!0)},o(t){Mt(i),Mt(a,t),r=!1},d(t){t&&(O(e),O(n)),i&&i.d(t),a&&a.d(t),s&&s.d(t)}}}function gn(t){let e,n,r=!t[9]&&!t[10]&&dn(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[9]||t[10]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),1536&n[0]&&Ot(r,1)):(r=dn(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function mn(t){return t.some((t=>"native"===t.name))}function vn(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,N,I,F,O,M,T,z,R,B,J,L,U,W,H,q,G,K,Y=n,X=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,it=n,ot=n,at=n,st=n,lt=n,ct=n,ut=n,dt=n,ft=n,gt=n,mt=n;t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),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((()=>it())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt()));let{$$slots:vt={},$$scope:yt}=e;var $t,_t,bt,wt,kt,Et;let{json:Ct={}}=e,{origJson:At}=e,{templateContext:Vt}=e,{cls:Dt=""}=e,{style:Pt}=e,{layoutParams:jt={}}=e,{customDescription:St=!1}=e,{customPaddings:Nt=!1}=e,{customActions:It=""}=e,{additionalPaddings:Ft=null}=e,{heightByAspect:Ot=!1}=e,{parentOf:Mt}=e,{replaceItems:Tt}=e;const zt={left:"start",center:"center",right:"end"},Rt={top:"start",center:"center",bottom:"end",baseline:"baseline"},Bt=pt(oe),Jt=pt(Pe);let Lt,Ut,Wt=null,Ht=[];function qt(t,e){if(!Array.isArray(Mt)||!Tt)return;const n=Mt.findIndex((e=>(null==e?void 0:e.id)===t)),i=Mt.slice();i.splice(n,1,...e||[]),r(38,Mt=i),Tt(i)}let Gt,Kt,Yt,Xt,Zt,Qt,te,ee,ne,re,ie={},se={},le=!1,ce=1,he="transparent",pe=0,ge={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},ye="",$e=null,_e="",be={},ke=0,Ce=0,Ve=0,De=!1,Se=!1,Oe={},Me=0,Ue=0,We=0,He=!1,qe=!1,Ge=1;const Ke=jt.fakeElement?[]:Ct.transition_triggers||["state_change","visibility_change"],Ye=-1!==Ke.indexOf("state_change")&&Ct.id,Xe=-1!==Ke.indexOf("visibility_change")&&Ct.id;let Ze,Qe,tn,en,nn,rn,on,an=[],sn=[],ln=[],cn=[],un=[],dn=[],hn="";function fn(t){const e=Re(t.start_value,1),n=Re(t.end_value,1),i=Fe(t.start_delay,0),o=Fe(t.duration,300),a=ze(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(87,en=e),r(88,nn=n),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return r(89,rn=e),r(90,on=n),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return Bt.logError(ae(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let pn,gn,mn,vn=!1,yn="visible",$n=0,_n=0;return ht((()=>{var t;Ht.forEach((t=>{Bt.unregisterParentOf(t)})),r(56,Ht=[]),null===(t=Ct.tooltips)||void 0===t||t.forEach((t=>{Bt.unregisterTooltip(t)}))})),t.$$set=t=>{"json"in t&&r(39,Ct=t.json),"origJson"in t&&r(40,At=t.origJson),"templateContext"in t&&r(41,Vt=t.templateContext),"cls"in t&&r(0,Dt=t.cls),"style"in t&&r(42,Pt=t.style),"layoutParams"in t&&r(43,jt=t.layoutParams),"customDescription"in t&&r(44,St=t.customDescription),"customPaddings"in t&&r(45,Nt=t.customPaddings),"customActions"in t&&r(46,It=t.customActions),"additionalPaddings"in t&&r(47,Ft=t.additionalPaddings),"heightByAspect"in t&&r(48,Ot=t.heightByAspect),"parentOf"in t&&r(38,Mt=t.parentOf),"replaceItems"in t&&r(49,Tt=t.replaceItems),"$$scope"in t&&r(121,yt=t.$$scope)},t.$$.update=()=>{if(33554560&t.$$.dirty[1]&&(Ht.forEach((t=>{Bt.unregisterParentOf(t)})),r(56,Ht=[]),Mt&&Mt.forEach((t=>{t.id&&(Ht.push(t.id),Bt.registerParentOf(t.id,{replaceWith:qt}))}))),256&t.$$.dirty[1]&&(r(34,i=Bt.getDerivedFromVars(Ct.focus)),tt(),tt=h(i,(t=>r(105,F=t)))),256&t.$$.dirty[1]&&(r(33,o=Bt.getDerivedFromVars(Ct.border)),mt(),mt=h(o,(t=>r(119,K=t)))),66&t.$$.dirty[0]|2113404928&t.$$.dirty[1]|67112960&t.$$.dirty[3]){const t=mn&&(null==F?void 0:F.border)?F.border:K;let e={},n={},i=!1,o="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?ue((null===r(51,_t=null===r(50,$t=n.offset)||void 0===$t?void 0:$t.x)||void 0===_t?void 0:_t.value)||0)+" "+ue((null===r(53,wt=null===r(52,bt=n.offset)||void 0===bt?void 0:bt.y)||void 0===wt?void 0:wt.value)||0)+" "+ue(null!==r(54,kt=n.blur)&&void 0!==kt?kt:2)+" "+fe(n.color||"#000000",null!==r(55,Et=n.alpha)&&void 0!==Et?Et:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(i=!0,r(58,ce=Fe(t.stroke.width,ce)),r(59,he=fe(t.stroke.color,1,he)),n.border="".concat(ue(ce)," solid ").concat(he)),t.corners_radius?(r(61,ge=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]&&!Ne(n[t]))return e;return t}(t.corners_radius,ge)),n["border-radius"]=e["border-radius"]=Le(ge)):t.corner_radius&&(r(60,pe=Fe(t.corner_radius,pe)),r(61,ge={"top-left":pe,"top-right":pe,"bottom-right":pe,"bottom-left":pe}),n["border-radius"]=e["border-radius"]=ue(pe)),i&&ce&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},ge);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+ce/2})),o=Le(t)}}r(57,ie=Te(e,ie)),r(1,se=Te(n,se)),r(8,le=i),r(2,ye=o)}if(256&t.$$.dirty[1]&&(r(32,a=Bt.getDerivedFromVars(Ct.paddings)),gt(),gt=h(a,(t=>r(118,G=t)))),16384&t.$$.dirty[1]|1&t.$$.dirty[2]|33554432&t.$$.dirty[3]&&r(62,$e=Je(G&&!Nt?G:void 0,$e)),65536&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(98,s=je(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const i=t[r];i&&(n[r]=i);const o=e[r];o&&(n[r]=(n[r]||0)+o)})),n}($e,Ft))),256&t.$$.dirty[1]&&(r(31,l=Bt.getDerivedFromVars(Ct.margins)),dt(),dt=h(l,(t=>r(116,H=t)))),2&t.$$.dirty[2]|8388608&t.$$.dirty[3]&&r(63,_e=Ie(H,_e)),256&t.$$.dirty[1]&&(r(30,c=Bt.getDerivedFromVars(Ct.width)),ct(),ct=h(c,(t=>r(114,U=t)))),256&t.$$.dirty[1]&&(r(29,u=Bt.getDerivedFromVars(Ct.alignment_horizontal)),ft(),ft=h(u,(t=>r(117,q=t)))),4096&t.$$.dirty[1]|68&t.$$.dirty[2]|27262976&t.$$.dirty[3]){let t,e,n,i,o={},a=0,s=0,l=!1,c=!1;const u=null==U?void 0:U.type;if("fixed"===u)r(68,ke=Fe(null==U?void 0:U.value,ke)),e=ue(ke);else if("wrap_content"!==u&&(jt.overlapParent||"match_parent"!==u&&u||!jt.parentHorizontalWrapContent))t="parent","vertical"===jt.parentContainerOrientation&&jt.parentContainerWrap&&(c=!0,Bt.logError(ae(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===jt.parentLayoutOrientation?e="calc(100% - ".concat(de(((null==H?void 0:H.left)||0)+((null==H?void 0:H.right)||0)),")"):"horizontal"===jt.parentContainerOrientation&&(a=U&&"weight"in U&&U.weight||1,jt.parentContainerWrap&&(l=!0));else{if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||("match_parent"===u||!u)&&jt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===jt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=U;t.min_size&&Ne(t.min_size.value)&&(n=ue(t.min_size.value)),t.max_size&&Ne(t.max_size.value)&&(i=ue(t.max_size.value))}"match_parent"!==u&&u||Bt.logError(ae(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}if("parent"===t)o["halign-self"]="stretch";else{const t=q;o["halign-self"]="left"===t||"center"===t||"right"===t?zt[t]:jt.parentHAlign||"start"}t&&(o.width=t),r(65,Gt=e),r(66,Kt=n),r(67,Yt=i),r(69,Ce=a),r(70,Ve=s),r(64,be=Te(o,be)),r(71,De=l),r(9,Se=c)}if(256&t.$$.dirty[1]&&(r(28,d=Bt.getDerivedFromVars(Ct.height)),lt(),lt=h(d,(t=>r(113,L=t)))),256&t.$$.dirty[1]&&(r(27,f=Bt.getDerivedFromVars(Ct.alignment_vertical)),ut(),ut=h(f,(t=>r(115,W=t)))),135168&t.$$.dirty[1]|17408&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,n,i,o={},a=0,s=0,l=!1,c=!1;const u=null==L?void 0:L.type;if(Ot);else if("fixed"===u)r(76,Me=Fe(null==L?void 0:L.value,Me)),e=ue(Me);else if("match_parent"!==u||!jt.overlapParent&&jt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==L?void 0:L.constrained)||"match_parent"===u&&jt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===jt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=L;(null==t?void 0:t.min_size)&&Ne(t.min_size.value)&&(n=ue(t.min_size.value)),(null==t?void 0:t.max_size)&&Ne(t.max_size.value)&&(i=ue(t.max_size.value))}"match_parent"===u&&Bt.logError(ae(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===jt.parentContainerOrientation&&jt.parentContainerWrap&&(c=!0,Bt.logError(ae(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===jt.parentLayoutOrientation?e="calc(100% - ".concat(de(((null==H?void 0:H.top)||0)+((null==H?void 0:H.bottom)||0)),")"):"vertical"===jt.parentContainerOrientation&&(a=(null==L?void 0:L.weight)||1,jt.parentContainerWrap&&(l=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=W;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===jt.parentContainerOrientation?o["valign-self"]=Rt[t]:o["valign-self"]=jt.parentVAlign||"start"}t&&(o.height=t),r(73,Xt=e),r(74,Zt=n),r(75,Qt=i),r(77,Ue=a),r(78,We=s),r(72,Oe=Te(o,Oe)),r(79,He=l),r(10,qe=c)}var e,n;if(4096&t.$$.dirty[1]&&r(101,p=!!jt.overlapParent||void 0),4096&t.$$.dirty[1]|3145728&t.$$.dirty[3]&&r(100,g=jt.overlapParent&&(!U||"match_parent"===U.type)&&"match_parent"===(null==L?void 0:L.type)),4096&t.$$.dirty[1]&&r(99,m=jt.gridArea?"".concat(jt.gridArea.y+1,"/").concat(jt.gridArea.x+1,"/span ").concat(jt.gridArea.rowSpan,"/span ").concat(jt.gridArea.colSpan):void 0),256&t.$$.dirty[1]&&(r(26,v=Bt.getDerivedFromVars(Ct.alpha)),st(),st=h(v,(t=>r(112,J=t)))),262144&t.$$.dirty[2]|524288&t.$$.dirty[3]&&(r(80,(n=Ge,Ge=!Ne(e=J)||void 0===e||e>1?n:Number(e))),r(81,te=1===Ge?void 0:Ge)),256&t.$$.dirty[1]&&(r(25,y=Bt.getDerivedFromVars(Ct.accessibility)),at(),at=h(y,(t=>r(111,B=t)))),8192&t.$$.dirty[1]|262144&t.$$.dirty[3]&&(r(7,Ut=void 0),B&&!St&&B.description&&(r(7,Ut={}),r(7,Ut["aria-label"]=B.description,Ut))),256&t.$$.dirty[1]&&(r(24,$=Bt.getDerivedFromVars(Ct.background)),ot(),ot=h($,(t=>r(110,R=t)))),92&t.$$.dirty[0]|135168&t.$$.dirty[3]&&(r(3,ee=mn&&(null==F?void 0:F.background)?F.background:R),r(82,ne={}),r(4,re=!1),Array.isArray(ee)&&(r(4,re=ee.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(ye)),!re))){const t=ve(ee);r(82,ne["background-color"]=t.color,ne),r(82,ne["background-image"]=t.image,ne),r(82,ne["background-size"]=t.size,ne),r(82,ne["background-position"]=t.position,ne),r(82,ne["background-repeat"]="no-repeat",ne)}if(256&t.$$.dirty[1]&&(r(83,Ze=void 0),Ye&&Ct.transition_in&&Bt.isRunning("stateChange")&&r(83,Ze=!0)),256&t.$$.dirty[1]&&(r(85,tn=void 0),Ye&&Ct.transition_change&&Bt.isRunning("stateChange")&&Jt.hasTransitionChange(Ct.id)&&r(85,tn=!0)),256&t.$$.dirty[1]&&(r(23,_=Bt.getDerivedFromVars(Ct.action)),rt(),rt=h(_,(t=>r(108,T=t)))),256&t.$$.dirty[1]&&(r(22,b=Bt.getDerivedFromVars(Ct.actions)),it(),it=h(b,(t=>r(109,z=t)))),256&t.$$.dirty[1]&&(r(21,w=Bt.getDerivedFromVars(Ct.doubletap_actions)),nt(),nt=h(w,(t=>r(107,M=t)))),256&t.$$.dirty[1]&&(r(20,x=Bt.getDerivedFromVars(Ct.longtap_actions)),et(),et=h(x,(t=>r(106,O=t)))),36864&t.$$.dirty[1]|126976&t.$$.dirty[3]){let t=z||T&&[T]||[],e=M||[],n=O||[],i=(null==F?void 0:F.on_focus)||[],o=(null==F?void 0:F.on_blur)||[];jt.fakeElement?(t=[],e=[],n=[],i=[],o=[]):(Array.isArray(t)||(t=[],Bt.logError(ae(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Bt.logError(ae(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],Bt.logError(ae(new Error("LongTapActions should be array")))),Array.isArray(i)||(i=[],Bt.logError(ae(new Error("FocusActions should be array")))),Array.isArray(o)||(o=[],Bt.logError(ae(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&It&&(t=[],e=[],n=[],Bt.logError(ae(new Error('Cannot use action on component "'.concat(It,'"'))))),r(11,an=t),r(12,sn=e),r(13,ln=n),cn=i,un=o}if(256&t.$$.dirty[1]&&(r(19,k=Bt.getDerivedFromVars(Ct.action_animation)),Q(),Q=h(k,(t=>r(104,I=t)))),32&t.$$.dirty[0]|2048&t.$$.dirty[3]&&I&&(r(5,dn=Be(I)),r(86,hn=dn.map(fn).filter(Boolean).join(", "))),256&t.$$.dirty[1]&&(r(18,E=Bt.getDerivedFromVars(Ct.visibility)),Z(),Z=h(E,(t=>r(103,N=t)))),1610612736&t.$$.dirty[2]|1024&t.$$.dirty[3]){const t=yn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(N,yn);t!==e&&(!vn||"visible"!==yn&&"visible"!==e?r(92,yn=e):async function(t){r(92,yn=t);const e="visible"===t?"in":"out",n="in"===e?Ct.transition_in:Ct.transition_out;Xe&&n&&(await xt(),"in"===e&&r(84,Qe=!0),Jt.runVisibilityTransition(Object.assign(Object.assign({},Ct),{visibility:"visible"}),Vt,n,Lt,e).then((()=>{"in"===e&&r(84,Qe=!1)})).catch((t=>{throw"in"===e&&r(84,Qe=!1),t})))}(e)),vn||r(91,vn=!0)}if(64&t.$$.dirty[0]|4352&t.$$.dirty[1]|1105200132&t.$$.dirty[2]|384&t.$$.dirty[3]&&r(17,C=Object.assign(Object.assign(Object.assign({},be),Oe),{"parent-overlap":p,"parent-overlap-absolute":g,"scroll-snap":jt.scrollSnap,"hide-on-transition-in":Ze||Qe||tn,visibility:yn,"has-action-animation":Boolean(hn),"parent-flex":jt.parentContainerOrientation||void 0,"parent-grid":Boolean(jt.gridArea)||void 0,"has-custom-focus":Boolean(mn&&Ct.focus)})),256&t.$$.dirty[1]&&(r(16,A=Bt.getDerivedFromVars(Ct.transform)),X(),X=h(A,(t=>r(102,S=t)))),515&t.$$.dirty[3]&&S&&void 0!==S.rotation){const t=S.pivot_x||{type:"pivot-percentage",value:50};r(93,$n=Re(t.value,$n));const e="pivot-fixed"===t.type?ue($n):"".concat($n,"%"),n=S.pivot_y||{type:"pivot-percentage",value:50};r(94,_n=Re(n.value,_n));const i="pivot-fixed"===n.type?ue(_n):"".concat(_n,"%");r(95,pn="".concat(e," ").concat(i)),r(96,gn="rotate(".concat(S.rotation,"deg)"))}164480&t.$$.dirty[2]&&r(97,V=De||He?"100%":Ce||Ue?0:void 0),67110912&t.$$.dirty[1]|521779642&t.$$.dirty[2]|124&t.$$.dirty[3]&&r(15,D=Object.assign(Object.assign(Object.assign(Object.assign({},Pt),ne),ie),{width:Gt,"min-width":Kt,"max-width":Yt,height:Xt,"min-height":Zt,"max-height":Qt||(null==Pt?void 0:Pt["max-height"]),"grid-area":m,padding:s,margin:_e,opacity:te,transition:hn,"transform-origin":pn,transform:gn,"flex-grow":Ce||Ue||void 0,"flex-shrink":Ve||We?1:void 0,"flex-basis":V,"--divkit-animation-opacity-start":en,"--divkit-animation-opacity-end":nn,"--divkit-animation-scale-start":rn,"--divkit-animation-scale-end":on}))},r(14,P=Bt.isPointerFocus),Y(),Y=h(P,(t=>r(126,j=t))),[Dt,se,ye,ee,re,dn,mn,Ut,le,Se,qe,an,sn,ln,P,D,A,C,E,k,x,w,b,_,$,y,v,f,d,u,c,l,a,o,i,function(t){var e;Lt=t,Ye&&Ct.transition_in&&Jt.registerChildWithTransitionIn(Ct,Vt,Ct.transition_in,t).then((()=>{r(83,Ze=!1)})).catch((t=>{throw r(83,Ze=!1),t})),Ye&&Ct.transition_out&&Jt.registerChildWithTransitionOut(Ct,Vt,Ct.transition_out,t),Ye&&Ct.transition_change&&Jt.registerChildWithTransitionChange(Ct,Vt,Ct.transition_change,t).then((()=>{r(85,tn=!1)})).catch((t=>{throw r(85,tn=!1),t}));const n=jt.fakeElement?[]:Ct.visibility_actions||Ct.visibility_action&&[Ct.visibility_action],i=jt.fakeElement?[]:Ct.disappear_actions;(Array.isArray(n)&&n.length||Array.isArray(i)&&i.length)&&function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:i}=e;const o=[];n&&n.forEach((t=>{o.push({type:"visibility",index:o.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{o.push({type:"disappear",index:o.length,action:t,visible:!1,count:0,finished:!1})}));const a=o.map((t=>{const e="visibility"===t.type,n=i.getJsonWithVars({visibility_percentage:t.action.visibility_percentage,visibility_duration:e?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit});return Ee(Ee({},n),{},{visibility_percentage:Ae(e,n.visibility_percentage,e?50:0)})})),s=[...new Set(a.map((t=>t.visibility_percentage/100)))];new IntersectionObserver((t=>{t.forEach((t=>{o.forEach((e=>{const n=a[e.index],r="visibility"===e.type;let o;o=0===n.visibility_percentage?t.intersectionRatio>=1e-12:t.intersectionRatio>=n.visibility_percentage/100;const s=r?!e.visible&&o:e.visible&&!o,l=r?!o:o;s?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===n.log_limit?1/0:n.log_limit||1;++e.count>=t&&(e.finished=!0);const o=i.getJsonWithVars(e.action),a=o.url;if(a){const t=we(a);t&&!xe(t,i.getBuiltinProtocols())&&("div-action"===t?i.execAction(o):o.log_id&&i.execCustomAction(o))}i.logStat(r?"visible":"disappear",o)}),a[e.index].visibility_duration||800)):l&&e.timer&&clearTimeout(e.timer),e.visible=o}))}))}),{threshold:s}).observe(t)}(t,{visibilityActions:n,disappearActions:i,rootCtx:Bt});const o=Ct.id;o&&Jt.registerChild(o),null===(e=Ct.tooltips)||void 0===e||e.forEach((e=>{Bt.registerTooltip(t,e)}));let a=null;if(Array.isArray(Ct.extensions)){const e=Bt.getExtensionContext();Wt=Ct.extensions.map((n=>{var r;const i=Bt.getExtension(n.id,n.params);return i&&(null===(r=i.mountView)||void 0===r||r.call(i,t,e)),i})).filter(me)}return{destroy(){if(o&&Jt.unregisterChild(o),Wt){const e=Bt.getExtensionContext();Wt.forEach((n=>{var r;null===(r=n.unmountView)||void 0===r||r.call(n,t,e)})),Wt=null}a&&a.destroy()}}},function(){Ct.focus&&(j||r(6,mn=!0),Bt.execAnyActions(cn))},function(){Ct.focus&&(r(6,mn=!1),Bt.execAnyActions(un))},Mt,Ct,At,Vt,Pt,jt,St,Nt,It,Ft,Ot,Tt,$t,_t,bt,wt,kt,Et,Ht,ie,ce,he,pe,ge,$e,_e,be,Gt,Kt,Yt,ke,Ce,Ve,De,Oe,Xt,Zt,Qt,Me,Ue,We,He,Ge,te,ne,Ze,Qe,tn,hn,en,nn,rn,on,vn,yn,$n,_n,pn,gn,V,s,m,g,p,S,N,I,F,O,M,T,z,R,B,J,L,U,W,H,q,G,K,vt,yt]}const yn=class extends te{constructor(t){super(),Zt(this,t,vn,gn,d,{json:39,origJson:40,templateContext:41,cls:0,style:42,layoutParams:43,customDescription:44,customPaddings:45,customActions:46,additionalPaddings:47,heightByAspect:48,parentOf:38,replaceItems:49},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 _n(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function bn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function wn(t,e){return bn(t)||e}function xn(t){let e,n;return{c(){e=T("span"),this.h()},l(t){e=Y(t,"SPAN",{class:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=$n["text-range__top-offset"]),et(e,"margin-top",t[4])},m(t,n){F(t,e,n)},p(t,n){16&n&&et(e,"margin-top",t[4])},d(t){t&&O(e)}}}function kn(t){let e;return{c(){e=R(t[0])},l(n){e=Z(n,t[0])},m(t,n){F(t,e,n)},p(t,n){1&n&&tt(e,t[0])},d(t){t&&O(e)}}}function En(t){let e,n,r,i=t[4]&&xn(t);return n=new Xe({props:{cls:De("text-range",$n,t[3]),actions:t[1],style:ce(t[2]),$$slots:{default:[kn]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=J(),Gt(n.$$.fragment)},l(t){i&&i.l(t),e=J(),Kt(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),F(t,e,o),Yt(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=xn(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=De("text-range",$n,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=ce(t[2])),2097153&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(Ot(n.$$.fragment,t),r=!0)},o(t){Mt(n.$$.fragment,t),r=!1},d(t){t&&O(e),i&&i.d(t),Xt(n,t)}}}function Cn(t,e,n){let r,i,o,a,s;var l,c;let{text:u}=e,{rootFontSize:d}=e,{textStyles:h={}}=e,{singleline:f=!1}=e,{actions:p}=e;const g=pt(oe);let m,v="none",y=12,$=1.25,_="",b="",w="",x=null;return t.$$set=t=>{"text"in t&&n(0,u=t.text),"rootFontSize"in t&&n(5,d=t.rootFontSize),"textStyles"in t&&n(6,h=t.textStyles),"singleline"in t&&n(7,f=t.singleline),"actions"in t&&n(1,p=t.actions)},t.$$.update=()=>{if(64&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(10,v=t)}2112&t.$$.dirty&&n(11,y=_n(h.font_size,y)),2112&t.$$.dirty&&Qe(h.line_height)&&n(12,$=Number(h.line_height)/y),64&t.$$.dirty&&Ne(h.letter_spacing)&&n(13,_=ue(h.letter_spacing)),16448&t.$$.dirty&&(n(14,m=wn(h.font_weight,m)),"string"==typeof h.font_family&&h.font_family?n(15,b=g.typefaceProvider(h.font_family,{fontWeight:m||400})):n(15,b="")),65600&t.$$.dirty&&n(16,w=fe(h.text_color,1,w)),64&t.$$.dirty&&n(4,r=h.top_offset?ue(h.top_offset):""),64&t.$$.dirty&&n(19,i=h.background?ve([h.background]):null),320&t.$$.dirty&&((null===n(8,l=h.border)||void 0===l?void 0:l.stroke)&&"transparent"!==fe(h.border.stroke.color)&&Qe(h.border.stroke.width)?n(17,x={color:h.border.stroke.color,width:h.border.stroke.width}):n(17,x=null)),576&t.$$.dirty&&n(18,o=_n(null===n(9,c=h.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:f,decoration:v}),1046560&t.$$.dirty&&n(2,s={"font-size":ue(10*y/d),"line-height":$,"letter-spacing":_,"font-weight":m,"font-family":b,color:w,background:(null==i?void 0:i.color)||void 0,"box-shadow":x?"inset 0 0 0 ".concat(ue(x.width)," ").concat(x.color):void 0,"border-radius":o?ue(o):void 0})},[u,p,s,a,r,d,h,f,l,c,v,y,$,_,m,b,w,x,o,i]}const An=class extends te{constructor(t){super(),Zt(this,t,Cn,En,d,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function Vn(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Dn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Pn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function jn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:Sn}=A;function Nn(t,e,n){const r=t.slice();return r[58]=e[n],r[60]=n,r}function In(t){let e,n;return e=new yn({props:{cls:De("text",se,t[13])+" "+(t[6]?"":ie.root__unselectable),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Bn]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=De("text",se,t[13])+" "+(t[6]?"":ie.root__unselectable)),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),268443312&n[0]|1073741824&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Fn(t){let e,n;return e=new An({props:{text:t[4],rootFontSize:t[5],textStyles:t[28],singleline:t[7]}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),268435456&n[0]&&(r.textStyles=t[28]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function On(t){let e,n,r=Rt(t[10]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Rn(Nn(t,r,e));const o=t=>Mt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=J()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);F(t,e,r),n=!0},p(t,n){if(536872608&n[0]){let a;for(r=Rt(t[10]),a=0;a<r.length;a+=1){const o=Nn(t,r,a);i[a]?(i[a].p(o,n),Ot(i[a],1)):(i[a]=Rn(o),i[a].c(),Ot(i[a],1),i[a].m(e.parentNode,e))}for(It(),a=r.length;a<i.length;a+=1)o(a);Ft()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ot(i[t]);n=!0}},o(t){i=i.filter(Sn);for(let t=0;t<i.length;t+=1)Mt(i[t]);n=!1},d(t){t&&O(e),M(i,t)}}}function Mn(t){let e,r,i,o,a,s,l,c;return{c(){e=T("span"),r=T("img"),this.h()},l(t){e=Y(t,"SPAN",{style:!0});var n=q(e);r=Y(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(O),this.h()},h(){U(r,"class",i=se.text__image),u(r.src,o=t[58].image.url)||U(r,"src",o),U(r,"loading","lazy"),U(r,"decoding","async"),U(r,"aria-hidden","true"),U(r,"alt",""),U(r,"style",a=ce({width:t[58].image.width,height:t[58].image.height,"margin-top":t[9]?"-".concat(t[58].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[58].image.height):void 0,filter:t[58].image.svgFilterId?"url(#".concat(t[58].image.svgFilterId,")"):void 0})),U(e,"style",s=ce(t[58].image.wrapperStyle))},m(n,i){F(n,e,i),I(e,r),l||(c=L(r,"error",t[29]),l=!0)},p(t,n){1024&n[0]&&!u(r.src,o=t[58].image.url)&&U(r,"src",o),1536&n[0]&&a!==(a=ce({width:t[58].image.width,height:t[58].image.height,"margin-top":t[9]?"-".concat(t[58].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[58].image.height):void 0,filter:t[58].image.svgFilterId?"url(#".concat(t[58].image.svgFilterId,")"):void 0}))&&U(r,"style",a),1024&n[0]&&s!==(s=ce(t[58].image.wrapperStyle))&&U(e,"style",s)},i:n,o:n,d(t){t&&O(e),l=!1,c()}}}function Tn(t){let e,n,r=t[58].text&&zn(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[58].text?r?(r.p(t,n),1024&n[0]&&Ot(r,1)):(r=zn(t),r.c(),Ot(r,1),r.m(e.parentNode,e)):r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft())},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function zn(t){let e,n;return e=new An({props:{text:t[58].text,rootFontSize:t[5],textStyles:t[58].textStyles,singleline:t[7],actions:t[58].actions}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[58].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[58].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[58].actions),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Rn(t){let e,n,r,i;const o=[Tn,Mn],a=[];function s(t,e){return"text"in t[58]?0:t[58].image?1:-1}return~(e=s(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=J()},l(t){n&&n.l(t),r=J()},m(t,n){~e&&a[e].m(t,n),F(t,r,n),i=!0},p(t,i){let l=e;e=s(t),e===l?~e&&a[e].p(t,i):(n&&(It(),Mt(a[l],1,1,(()=>{a[l]=null})),Ft()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Ot(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(Ot(n),i=!0)},o(t){Mt(n),i=!1},d(t){t&&O(r),~e&&a[e].d(t)}}}function Bn(t){let e,n,r,i,o,a;const s=[On,Fn],l=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=l[n]=s[n](t),{c(){e=T("span"),r.c(),this.h()},l(t){e=Y(t,"SPAN",{class:!0,style:!0});var n=q(e);r.l(n),n.forEach(O),this.h()},h(){U(e,"class",i=De("text__inner",se,t[12])),U(e,"style",o=ce(t[11]))},m(t,r){F(t,e,r),l[n].m(e,null),a=!0},p(t,u){let d=n;n=c(t),n===d?l[n].p(t,u):(It(),Mt(l[d],1,1,(()=>{l[d]=null})),Ft(),r=l[n],r?r.p(t,u):(r=l[n]=s[n](t),r.c()),Ot(r,1),r.m(e,null)),(!a||4096&u[0]&&i!==(i=De("text__inner",se,t[12])))&&U(e,"class",i),(!a||2048&u[0]&&o!==(o=ce(t[11])))&&U(e,"style",o)},i(t){a||(Ot(r),a=!0)},o(t){Mt(r),a=!1},d(t){t&&O(e),l[n].d()}}}function Jn(t){let e,n,r=!t[8]&&In(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[8]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),256&n[0]&&Ot(r,1)):(r=In(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function Ln(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,N,I,F,O,M,T,z,R=n,B=n,J=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,Y=n,X=n,Z=n,Q=n;t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),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((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q()));let{json:tt={}}=e,{templateContext:et}=e,{origJson:nt}=e,{layoutParams:rt}=e;const it=pt(oe);let ot=!1,at="",st=12,lt=1.25,ct=!1,ut="",dt="",ft=!1,gt="left",mt="top",vt="",yt="",$t="",_t=!1,bt=[],wt=[];return ht((()=>{wt.forEach((t=>{let[e,n]=t;it.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&r(0,tt=t.json),"templateContext"in t&&r(1,et=t.templateContext),"origJson"in t&&r(2,nt=t.origJson),"layoutParams"in t&&r(3,rt=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&(r(27,i=it.getDerivedFromVars(tt.text)),Q(),Q=h(i,(t=>r(54,z=t)))),16&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&(r(4,(e=z,n=at,at=String(null!=e?e:"")||n)),at?r(8,ot=!1):(r(8,ot=!0),it.logError(ae(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(r(26,o=it.getDerivedFromVars(tt.ranges)),B(),B=h(o,(t=>r(43,A=t)))),1&t.$$.dirty[0]&&(r(25,a=it.getDerivedFromVars(tt.images)),R(),R=h(a,(t=>r(42,C=t)))),1&t.$$.dirty[0]&&(r(24,s=it.getDerivedFromVars({font_size:tt.font_size,letter_spacing:tt.letter_spacing,font_weight:tt.font_weight,font_family:tt.font_family,text_color:tt.text_color,underline:tt.underline,strike:tt.strike,line_height:tt.line_height})),J(),J=h(s,(t=>r(28,V=t)))),1&t.$$.dirty[0]&&(r(23,l=it.getDerivedFromVars(tt.font_size)),Z(),Z=h(l,(t=>r(53,T=t)))),32&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&r(5,st=_n(T,st)),1&t.$$.dirty[0]&&(r(22,c=it.getDerivedFromVars(tt.line_height)),X(),X=h(c,(t=>r(52,M=t)))),32&t.$$.dirty[0]|2097152&t.$$.dirty[1]){const t=M;Qe(t)?(r(30,lt=Number(t)/st),r(9,ct=!0)):r(9,ct=!1)}if(1&t.$$.dirty[0]&&(r(21,u=it.getDerivedFromVars(tt.max_lines)),G(),G=h(u,(t=>r(49,I=t)))),262144&t.$$.dirty[1]&&r(7,d=1===I),1073741824&t.$$.dirty[0]|268288&t.$$.dirty[1]){let t="",e="",n=!1;if(I&&I>1){let r=Number(I);t=r*lt+"em",A||C||(e=r,n=!0)}r(31,ut=t),r(32,dt=e),r(33,ft=n)}if(1&t.$$.dirty[0]&&(r(20,f=it.getDerivedFromVars(tt.text_alignment_horizontal)),Y(),Y=h(f,(t=>r(51,O=t)))),1048584&t.$$.dirty[1]&&r(34,gt=Vn(O,gt)),1&t.$$.dirty[0]&&(r(19,p=it.getDerivedFromVars(tt.text_alignment_vertical)),K(),K=h(p,(t=>r(50,F=t)))),524304&t.$$.dirty[1]&&r(35,mt=Dn(F,mt)),16&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(41,g=!A||at&&1===A.length&&A[0]&&0===A[0].start&&"number"==typeof A[0].end&&A[0].end>=at.length),1&t.$$.dirty[0]&&(r(18,m=it.getDerivedFromVars(tt.text_color)),q(),q=h(m,(t=>r(48,N=t)))),135168&t.$$.dirty[1]&&r(40,v=Boolean(N)!==Boolean(A&&A[0]&&A[0].text_color)),398880&t.$$.dirty[1]){let t="";I&&g&&v&&(t=fe(N||A&&A[0]&&A[0].text_color,1,vt)),r(36,vt=t)}if(1&t.$$.dirty[0]&&(r(17,y=it.getDerivedFromVars(tt.focused_text_color)),H(),H=h(y,(t=>r(47,S=t)))),65600&t.$$.dirty[1]&&r(37,yt=fe(S,1,yt)),1&t.$$.dirty[0]&&(r(16,$=it.getDerivedFromVars(tt.truncate)),W(),W=h($,(t=>r(46,j=t)))),32768&t.$$.dirty[1]&&r(39,_="none"===j?"none":""),1&t.$$.dirty[0]&&(r(15,b=it.getDerivedFromVars(tt.text_gradient)),U(),U=h(b,(t=>r(45,P=t)))),16384&t.$$.dirty[1]){let t="";if(P){const e=ve([P]);e.image&&(t=e.image)}r(38,$t=t)}1&t.$$.dirty[0]&&(r(14,w=it.getDerivedFromVars(tt.selectable)),L(),L=h(w,(t=>r(44,D=t)))),64&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(6,_t=Pn(D,_t)),16&t.$$.dirty[0]|6144&t.$$.dirty[1]&&function(t,e,n){let i=[];if(wt.forEach((t=>{let[e,n]=t;it.removeSvgFilter(e,n)})),wt=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(10,bt=[]);const o=t;let a=e||[{start:0,end:o.length}],s=n||[],l=0,c=[],u=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),s.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=o.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.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)),u.forEach((t=>{var e;let n="image"===t.type?null:t.range,r=t.index;if(r>l){let n=Object.assign(Object.assign({},V),...c);i.push({text:o.substring(l,r),textStyles:n,actions:"rangeEnd"===t.type&&(null===(e=t.range)||void 0===e?void 0:e.actions)||void 0})}if("rangeStart"===t.type&&n)c.push(n);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},V),...c),n=ue(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=ue(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":ue(10*(Number(e.font_size)||12)/st)};let a="";const s=t.image.tint_color,l=jn(t.image.tint_mode,"source_in");if(s){const e=fe(t.image.tint_color);a=it.addSvgFilter(e,l),wt.push([e,l])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}l=r})),l<o.length&&i.push({text:o.substring(l),textStyles:Object.assign({},V)}),r(10,bt=i)}(at,A,C),128&t.$$.dirty[0]|284&t.$$.dirty[1]&&r(13,x={singleline:d,multiline:ft,halign:gt,valign:mt,truncate:_}),128&t.$$.dirty[1]&&r(12,k={gradient:Boolean($t)}),1073741856&t.$$.dirty[0]|227&t.$$.dirty[1]&&r(11,E={"font-size":ue(st),"line-height":lt,"max-height":ut,"-webkit-line-clamp":dt,color:vt,"background-image":$t,"--divkit-text-focus-color":yt})},[tt,et,nt,rt,at,st,_t,d,ot,ct,bt,E,k,x,w,b,$,y,m,p,f,u,c,l,s,a,o,i,V,function(t){t.target&&"classList"in t.target&&t.target.classList.add(se.text__image_hidden)},lt,ut,dt,ft,gt,mt,vt,yt,$t,_,v,g,C,A,D,P,j,S,N,I,F,O,M,T,z]}const Un={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230","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 Wn(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 Hn(t,e,n){const r=((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);null!=e&&e.show_at_start&&(n?t.top=e.style.height+i:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+i:t.right=e.style.width+r)}function qn(t,e,n){let r;const i=((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),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+i:0]:[null!=e&&e.show_between?e.style.height+o:0,null!=n&&n.show_between?n.style.width+a:0],r.map(ue).join(" ")}function Gn(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)i=t.shape,r={width:Number((null===(o=i.item_width)||void 0===o?void 0:o.value)||10),height:Number((null===(a=i.item_height)||void 0===a?void 0:a.value)||10),radius:Number(null!==(s=null===(l=i.corner_radius)||void 0===l?void 0:l.value)&&void 0!==s?s:5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Number((null===(e=t.radius)||void 0===e?void 0:e.value)||10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,s,l;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?fe(o.color):"",s=null!=o&&o.width?Number(null!==(r=o.width)&&void 0!==r?r:1):"";i.width=t.width,i.height=t.height,i.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return i.background=fe(l),a&&s&&(i.boxShadow="inset 0 0 0 ".concat(ue(s)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}let Kn;function Yn(){if(void 0!==Kn)return Kn;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),Kn=1===t.scrollHeight,document.body.removeChild(t),Kn}const Xn={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"};function Zn(t,e,n){const r=t.slice();return r[13]=e[n],r}function Qn(t){let e,n,r,i,o,a="".concat(t[13].style.width,"px"),s="".concat(t[13].style.height,"px"),l="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=T("div"),n=T("div"),i=B(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var r=q(e);n=Y(r,"DIV",{class:!0}),q(n).forEach(O),i=Q(r),r.forEach(O),this.h()},h(){U(n,"class",r=Xn["container-separator__shape"]),et(n,"width",a),et(n,"height",s),et(n,"border-radius",l),et(n,"background",t[13].style.background),et(n,"box-shadow",t[13].style.boxShadow),U(e,"class",o=Xn["container-separator__item"]),et(e,"left",c),et(e,"top",u),et(e,"width",d),et(e,"height",h)},m(t,r){F(t,e,r),I(e,n),I(e,i)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&et(n,"width",a),2&r&&s!==(s="".concat(t[13].style.height,"px"))&&et(n,"height",s),2&r&&l!==(l="".concat(t[13].style.borderRadius,"px"))&&et(n,"border-radius",l),2&r&&et(n,"background",t[13].style.background),2&r&&et(n,"box-shadow",t[13].style.boxShadow),2&r&&c!==(c="".concat(t[13].left,"px"))&&et(e,"left",c),2&r&&u!==(u="".concat(t[13].top,"px"))&&et(e,"top",u),2&r&&d!==(d="".concat(t[13].width,"px"))&&et(e,"width",d),2&r&&h!==(h="".concat(t[13].height,"px"))&&et(e,"height",h)},d(t){t&&O(e)}}}function tr(t){let e,r,i,o,a=Rt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=Qn(Zn(t,a,e));return{c(){e=T("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=Y(t,"DIV",{class:!0});var n=q(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(O),this.h()},h(){U(e,"class",r=Xn["container-separator"])},m(n,r){F(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[10](e),i||(o=L(window,"resize",t[2]),i=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=Rt(t[1]),n=0;n<a.length;n+=1){const i=Zn(t,a,n);s[n]?s[n].p(i,r):(s[n]=Qn(i),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&&O(e),M(s,n),t[10](null),i=!1,o()}}}function er(t,e,n,r,i,o){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;o?t.push({top:n.bottom+l,left:i.left+a,width:Math.max(0,i.right-i.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:i.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,i.bottom-i.top-l-c),style:e.style})}function nr(t,e,n,r){const i={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)&&er(t,e,{top:0,right:n[0].left-e.style.width-e.margins.left-e.margins.right,bottom:n[0].top-e.style.height-e.margins.top-e.margins.bottom,left:0},n[0],i,r),null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)er(t,e,n[o],n[o+1],i,r);if(null==e?void 0:e.show_at_end){const o=n[n.length-1];er(t,e,o,{top:o.bottom+e.style.height+e.margins.top+e.margins.bottom,right:0,bottom:0,left:o.right+e.style.width+e.margins.left+e.margins.right},i,r)}}function rr(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e;const s=function(t,e){let n,r=0,i=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(i||(i=!0,setTimeout((()=>{i=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect();n(1,c=[]);let e=[...r.children].filter((t=>t!==l&&!t.classList.contains(le.outer__border))),s=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),o=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===i){if(r.top<a)break}else if(r.left<o)break;o=Math.max(o,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}s.push(t)}const u=[];s.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)));o&&nr(c,o,e,"vertical"===i);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)))};u.push(n)})),a&&nr(c,a,u,"horizontal"===i),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let l,c=[],u=!1,d=null,h=null;function f(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(Xn["container-separator__shape"]))&&!(null==n?void 0:n.contains(Xn["container-separator"]))}))&&s()}return dt((()=>{n(6,u=!0)})),ht((()=>{n(6,u=!1)})),t.$$set=t=>{"orientation"in t&&n(3,i=t.orientation),"separator"in t&&n(4,o=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==l?void 0:l.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(f)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(s)),h.observe(r)))),576&t.$$.dirty&&u&&r&&s()},[l,c,s,i,o,a,u,d,h,r,function(t){vt[t?"unshift":"push"]((()=>{l=t,n(0,l)}))}]}const ir=class extends te{constructor(t){super(),Zt(this,t,rr,tr,d,{orientation:3,separator:4,lineSeparator:5})}},{Boolean:or}=A;function ar(t,e,n){const r=t.slice();return r[47]=e[n],r}function sr(t){let e,n;return e=new yn({props:{cls:De("container",Un,t[12]),style:t[10],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[16],heightByAspect:Boolean(t[8]),parentOf:t[11],replaceItems:t[24],$$slots:{default:[dr]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=De("container",Un,t[12])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),65536&n[0]&&(r.additionalPaddings=t[16]),256&n[0]&&(r.heightByAspect=Boolean(t[8])),2048&n[0]&&(r.parentOf=t[11]),8391392&n[0]|524288&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function lr(t){let e,n;return e=new Ta({props:{layoutParams:t[9],div:t[47].json,templateContext:t[47].templateContext,origJson:t[47].origJson}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.layoutParams=t[9]),8388608&n[0]&&(r.div=t[47].json),8388608&n[0]&&(r.templateContext=t[47].templateContext),8388608&n[0]&&(r.origJson=t[47].origJson),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function cr(t){let e,n,r=Rt(t[23]),i=[];for(let e=0;e<r.length;e+=1)i[e]=lr(ar(t,r,e));const o=t=>Mt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=J()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);F(t,e,r),n=!0},p(t,n){if(8389120&n[0]){let a;for(r=Rt(t[23]),a=0;a<r.length;a+=1){const o=ar(t,r,a);i[a]?(i[a].p(o,n),Ot(i[a],1)):(i[a]=lr(o),i[a].c(),Ot(i[a],1),i[a].m(e.parentNode,e))}for(It(),a=r.length;a<i.length;a+=1)o(a);Ft()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ot(i[t]);n=!0}},o(t){i=i.filter(or);for(let t=0;t<i.length;t+=1)Mt(i[t]);n=!1},d(t){t&&O(e),M(i,t)}}}function ur(t){let e,n;return e=new ir({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function dr(t){let e,r,i,o=t[11],a=cr(t),s=(t[6]||t[7])&&ur(t);return{c(){a.c(),e=B(),s&&s.c(),r=J()},l(t){a.l(t),e=Q(t),s&&s.l(t),r=J()},m(t,n){a.m(t,n),F(t,e,n),s&&s.m(t,n),F(t,r,n),i=!0},p(t,i){2048&i[0]&&d(o,o=t[11])?(It(),Mt(a,1,1,n),Ft(),a=cr(t),a.c(),Ot(a,1),a.m(e.parentNode,e)):a.p(t,i),t[6]||t[7]?s?(s.p(t,i),192&i[0]&&Ot(s,1)):(s=ur(t),s.c(),Ot(s,1),s.m(r.parentNode,r)):s&&(It(),Mt(s,1,1,(()=>{s=null})),Ft())},i(t){i||(Ot(a),Ot(s),i=!0)},o(t){Mt(a),Mt(s),i=!1},d(t){t&&(O(e),O(r)),a.d(t),s&&s.d(t)}}}function hr(t){let e,n,r=!t[4]&&sr(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[4]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),16&n[0]&&Ot(r,1)):(r=sr(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function fr(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D=n,P=n,j=n,S=n,N=n,I=n,F=n,O=n,M=n;var T,z,R,B,J,L;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>M()));let{json:U={}}=e,{templateContext:W}=e,{origJson:H}=e,{layoutParams:q}=e;const G={left:"start",center:"center",right:"end","space-between":"start","space-around":"start","space-evenly":"start"},K={top:"start",center:"center",bottom:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Y=["rounded_rectangle","circle"],X=pt(oe);let Z,Q=!1,tt="vertical",et="top",nt="left",rt=null,it=null,ot={};return t.$$set=t=>{"json"in t&&r(0,U=t.json),"templateContext"in t&&r(1,W=t.templateContext),"origJson"in t&&r(2,H=t.origJson),"layoutParams"in t&&r(3,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(11,i=U.items),2048&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(4,Q=!1):(r(4,Q=!0),X.logError(ae(new Error('Incorrect or empty "items" prop for div "container"'))))),2066&t.$$.dirty[0]&&r(23,o=(!Q&&i||[]).map((t=>{let e=t,n=W;return({templateContext:n,json:e}=X.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(22,a=X.getDerivedFromVars(U.orientation)),M(),M=h(a,(t=>r(42,V=t)))),32&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(5,tt=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(V,tt)),1&t.$$.dirty[0]&&(r(21,s=X.getDerivedFromVars(U.content_alignment_vertical)),O(),O=h(s,(t=>r(41,A=t)))),1025&t.$$.dirty[1]&&r(31,et=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(A,et)),1&t.$$.dirty[0]&&(r(20,l=X.getDerivedFromVars(U.content_alignment_horizontal)),F(),F=h(l,(t=>r(40,C=t)))),514&t.$$.dirty[1]&&r(32,nt=function(t,e){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(C,nt)),1&t.$$.dirty[0]&&(r(19,c=X.getDerivedFromVars(U.layout_mode)),I(),I=h(c,(t=>r(39,E=t)))),256&t.$$.dirty[1]&&r(33,u="wrap"===E),1&t.$$.dirty[0]&&(r(18,d=X.getDerivedFromVars(U.separator)),N(),N=h(d,(t=>r(38,k=t)))),234881120&t.$$.dirty[0]|128&t.$$.dirty[1])if((null==k?void 0:k.style)&&"overlap"!==tt&&Yn()){const t=Gn(k.style,Y,(null==rt?void 0:rt.style)||null);r(6,rt=t?{show_at_start:Boolean(null!==r(25,T=k.show_at_start)&&void 0!==T&&T),show_at_end:Boolean(null!==r(26,z=k.show_at_end)&&void 0!==z&&z),show_between:Boolean(null===r(27,R=k.show_between)||void 0===R||R),style:t,margins:Wn(k.margins)}:null)}else r(6,rt=null);if(1&t.$$.dirty[0]&&(r(17,f=X.getDerivedFromVars(U.line_separator)),S(),S=h(f,(t=>r(37,x=t)))),1879048352&t.$$.dirty[0]|64&t.$$.dirty[1])if((null==x?void 0:x.style)&&"overlap"!==tt&&Yn()){const t=Gn(x.style,Y,(null==it?void 0:it.style)||null);r(7,it=t?{show_at_start:Boolean(null!==r(28,B=x.show_at_start)&&void 0!==B&&B),show_at_end:Boolean(null!==r(29,J=x.show_at_end)&&void 0!==J&&J),show_between:Boolean(null===r(30,L=x.show_between)||void 0===L||L),style:t,margins:Wn(x.margins)}:null)}else r(7,it=null);if(224&t.$$.dirty[0]&&r(16,p=rt||it?function(t,e,n){const r={};return Hn(r,e,"vertical"===t),Hn(r,n,"horizontal"===t),r}(tt,rt,it):null),1&t.$$.dirty[0]&&(r(15,g=X.getDerivedFromVars(U.aspect)),j(),j=h(g,(t=>r(36,w=t)))),32&t.$$.dirty[1]){const t=null==w?void 0:w.ratio;t&&Qe(t)?r(8,Z=t):r(8,Z=void 0)}if(1&t.$$.dirty[0]&&(r(14,m=X.getDerivedFromVars(U.width)),D(),D=h(m,(t=>r(34,_=t)))),1&t.$$.dirty[0]&&(r(13,v=X.getDerivedFromVars(U.height)),P(),P=h(v,(t=>r(35,b=t)))),808&t.$$.dirty[0]|31&t.$$.dirty[1]){let t={};(null==q?void 0:q.fakeElement)&&(t.fakeElement=!0),"overlap"===tt&&(t.overlapParent=!0),"horizontal"!==tt&&(t.parentHAlign=u?"start":G[nt],Z||b&&"wrap_content"!==b.type&&("match_parent"!==b.type||!(null==q?void 0:q.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0)),"vertical"!==tt&&(t.parentVAlign=u?"start":K[et],("wrap_content"===(null==_?void 0:_.type)||"match_parent"===(null==_?void 0:_.type)&&(null==q?void 0:q.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===tt&&(t.parentContainerOrientation="horizontal"),"vertical"===tt&&(t.parentContainerOrientation="vertical"),u&&(t.parentContainerWrap=!0),r(9,ot=Te(t,ot))}32&t.$$.dirty[0]|7&t.$$.dirty[1]&&r(12,y={orientation:tt,valign:et,halign:nt,wrap:u}),480&t.$$.dirty[0]&&r(10,$={gap:rt||it?qn(tt,rt,it):void 0,"aspect-ratio":Z})},[U,W,H,q,Q,tt,rt,it,Z,ot,$,i,y,v,m,g,p,f,d,c,l,s,a,o,function(t){r(0,U=Object.assign(Object.assign({},U),{items:t}))},T,z,R,B,J,L,et,nt,u,_,b,w,x,k,E,C,A,V]}const pr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function gr(t,e){return"vertical"===t||"horizontal"===t?t:e}function mr(t){let e,n,r;return{c(){e=T("span"),this.h()},l(t){e=Y(t,"SPAN",{class:!0,style:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=pr.separator__inner),U(e,"style",r=ce(t[5]))},m(t,n){F(t,e,n)},p(t,n){32&n&&r!==(r=ce(t[5]))&&U(e,"style",r)},d(t){t&&O(e)}}}function vr(t){let e,n=t[6]&&mr(t);return{c(){n&&n.c(),e=J()},l(t){n&&n.l(t),e=J()},m(t,r){n&&n.m(t,r),F(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=mr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&O(e),n&&n.d(t)}}}function yr(t){let e,n;return e=new yn({props:{cls:De("separator",pr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[vr]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=De("separator",pr,t[4])),1&r&&(i.json=t[0]),4&r&&(i.origJson=t[2]),2&r&&(i.templateContext=t[1]),8&r&&(i.layoutParams=t[3]),16480&r&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function $r(t,e,r){let i,o,a,s,l,c,u,d=n;t.$$.on_destroy.push((()=>d()));let{json:f={}}=e,{templateContext:p}=e,{origJson:g}=e,{layoutParams:m}=e;const v=pt(oe);let y="horizontal",$="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&r(0,f=t.json),"templateContext"in t&&r(1,p=t.templateContext),"origJson"in t&&r(2,g=t.origJson),"layoutParams"in t&&r(3,m=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(r(7,i=v.getDerivedFromVars(f.delimiter_style)),d(),d=h(i,(t=>r(12,u=t)))),4352&t.$$.dirty&&r(8,y=gr(null==u?void 0:u.orientation,y)),4096&t.$$.dirty&&r(6,o=!((null==u?void 0:u.color)&&("transparent"===u.color||9===u.color.length&&0===u.color.indexOf("#00")))),4608&t.$$.dirty&&r(9,$=fe(null==u?void 0:u.color,1,$)),256&t.$$.dirty&&r(11,a="horizontal"===y?"100%":ue(1)),256&t.$$.dirty&&r(10,s="horizontal"===y?ue(1):"100%"),3584&t.$$.dirty&&r(5,l={background:$,width:a,height:s}),256&t.$$.dirty&&r(4,c={orientation:y})},[f,p,g,m,c,l,o,i,y,$,s,a,u]}const _r={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function br(t){return t.startsWith("data:")?ge(t):"data:image/jpg;base64,".concat(ge(t))}function wr(t){let e,n;return e=new yn({props:{cls:De("image",_r,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Cr]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=De("image",_r,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),67312&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function xr(t){let e,n,r,i,o,a,l;return{c(){e=T("img"),this.h()},l(t){e=Y(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){U(e,"class",n=_r.image__image),u(e.src,r=t[4]===Dr?Vr:t[7])||U(e,"src",r),U(e,"loading","lazy"),U(e,"decoding","async"),U(e,"style",i=ce(t[9])),U(e,"alt",t[16]),U(e,"aria-hidden",o=t[16]?null:"true")},m(n,r){F(n,e,r),a||(l=[L(e,"load",t[26]),L(e,"error",t[27])],a=!0)},p(t,n){144&n[0]&&!u(e.src,r=t[4]===Dr?Vr:t[7])&&U(e,"src",r),512&n[0]&&i!==(i=ce(t[9]))&&U(e,"style",i),65536&n[0]&&U(e,"alt",t[16]),65536&n[0]&&o!==(o=t[16]?null:"true")&&U(e,"aria-hidden",o)},d(t){t&&O(e),a=!1,s(l)}}}function kr(t){let e,n,r,i,o,a,l,c,d,h="".concat(t[5],"%");return{c(){e=T("span"),n=T("img"),this.h()},l(t){e=Y(t,"SPAN",{class:!0});var r=q(e);n=Y(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(O),this.h()},h(){U(n,"class",r=_r.image__image),u(n.src,i=t[4]===Dr?Vr:t[7])||U(n,"src",i),U(n,"loading","lazy"),U(n,"decoding","async"),U(n,"style",o=ce(t[9])),U(n,"alt",t[16]),U(n,"aria-hidden",a=t[16]?null:"true"),U(e,"class",l=_r["image__aspect-wrapper"]),et(e,"padding-bottom",h)},m(r,i){F(r,e,i),I(e,n),c||(d=[L(n,"load",t[26]),L(n,"error",t[27])],c=!0)},p(t,r){144&r[0]&&!u(n.src,i=t[4]===Dr?Vr:t[7])&&U(n,"src",i),512&r[0]&&o!==(o=ce(t[9]))&&U(n,"style",o),65536&r[0]&&U(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&U(n,"aria-hidden",a),32&r[0]&&h!==(h="".concat(t[5],"%"))&&et(e,"padding-bottom",h)},d(t){t&&O(e),c=!1,s(d)}}}function Er(t){let e;function n(t,e){return t[10].aspect?kr:xr}let r=n(t),i=r(t);return{c(){i.c(),e=J()},l(t){i.l(t),e=J()},m(t,n){i.m(t,n),F(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&O(e),i.d(t)}}}function Cr(t){let e,n=t[6],r=Er(t);return{c(){r.c(),e=J()},l(t){r.l(t),e=J()},m(t,n){r.m(t,n),F(t,e,n)},p(t,i){64&i[0]&&d(n,n=t[6])?(r.d(1),r=Er(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&O(e),r.d(t)}}}function Ar(t){let e,n,r=!t[8]&&wr(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[8]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),256&n[0]&&Ot(r,1)):(r=wr(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}const Vr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Dr=2;function Pr(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,N,I,F,O,M,T,z=n,R=n,B=n,J=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,Y=n,X=n,Z=n;t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),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((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt=pt(oe);let it=0,ot="rgba(0,0,0,0.08)",at=!1,st="",lt="none",ct="50% 50%";let ut,dt="0",ft="source_in",gt="",mt="",vt=0,yt=0,$t=0,_t="",bt="";return ht((()=>{rt.removeSvgFilter(ut,ft)})),t.$$set=t=>{"json"in t&&r(0,Q=t.json),"templateContext"in t&&r(1,tt=t.templateContext),"origJson"in t&&r(2,et=t.origJson),"layoutParams"in t&&r(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(25,i=rt.getDerivedFromVars(Q.image_url)),Z(),Z=h(i,(t=>r(55,T=t)))),1&t.$$.dirty[0]&&(r(24,o=rt.getDerivedFromVars(Q.gif_url)),X(),X=h(o,(t=>r(54,M=t)))),25165824&t.$$.dirty[1]&&r(7,a=T||M),128&t.$$.dirty[0]&&r(4,it=0),128&t.$$.dirty[0]&&(a?r(8,at=!1):(r(8,at=!0),rt.logError(ae(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(r(23,s=rt.getDerivedFromVars(Q.width)),Y(),Y=h(s,(t=>r(53,O=t)))),4194304&t.$$.dirty[1]&&r(41,l="wrap_content"===(null==O?void 0:O.type)),1&t.$$.dirty[0]&&(r(22,c=rt.getDerivedFromVars(Q.height)),K(),K=h(c,(t=>r(52,F=t)))),2097152&t.$$.dirty[1]&&r(40,u="wrap_content"===(null==F?void 0:F.type)),1&t.$$.dirty[0]&&(r(21,d=rt.getDerivedFromVars(Q.preview)),G(),G=h(d,(t=>r(51,I=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&r(29,st=0!==it&&it!==Dr||!I?"":'url("'.concat(br(I),'")')),1&t.$$.dirty[0]&&(r(20,f=rt.getDerivedFromVars(Q.placeholder_color)),q(),q=h(f,(t=>r(50,N=t)))),16&t.$$.dirty[0]|524288&t.$$.dirty[1]&&function(t,e){r(28,ot=0===t||t===Dr?fe(e,1,ot):"")}(it,N),1&t.$$.dirty[0]&&(r(19,p=rt.getDerivedFromVars(Q.scale)),H(),H=h(p,(t=>r(49,S=t)))),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]&&r(30,lt=_e(S)||lt),1&t.$$.dirty[0]&&(r(18,g=rt.getDerivedFromVars({content_alignment_horizontal:Q.content_alignment_horizontal,content_alignment_vertical:Q.content_alignment_vertical})),W(),W=h(g,(t=>r(48,j=t)))),131072&t.$$.dirty[1]&&r(31,ct=function(t,e){const n=t.content_alignment_horizontal,r=t.content_alignment_vertical;return n&&"left"!==n&&"center"!==n&&"right"!==n||r&&"top"!==r&&"center"!==r&&"bottom"!==r?e:be(t)}(j,ct)),1&t.$$.dirty[0]&&(r(17,m=rt.getDerivedFromVars(Q.accessibility)),U(),U=h(m,(t=>r(47,P=t)))),65536&t.$$.dirty[1]&&r(16,v=(null==P?void 0:P.description)||""),1&t.$$.dirty[0]&&(r(15,y=rt.getDerivedFromVars(Q.aspect)),L(),L=h(y,(t=>r(46,D=t)))),32768&t.$$.dirty[1]){const t=null==D?void 0:D.ratio;t&&Qe(t)?r(5,dt=(100/Number(t)).toFixed(2)):r(5,dt="0")}if(1&t.$$.dirty[0]&&(r(14,$=rt.getDerivedFromVars(Q.tint_color)),J(),J=h($,(t=>r(45,V=t)))),1&t.$$.dirty[0]&&(r(13,_=rt.getDerivedFromVars(Q.tint_mode)),B(),B=h(_,(t=>r(44,A=t)))),24582&t.$$.dirty[1]){const t=V?fe(V):void 0,e=jn(A,ft);t===ut&&e===ft||(rt.removeSvgFilter(ut,ft),r(6,gt=t?rt.addSvgFilter(t,e):""),r(32,ut=t),r(33,ft=e))}if(1&t.$$.dirty[0]&&(r(12,b=rt.getDerivedFromVars(Q.appearance_animation)),R(),R=h(b,(t=>r(43,C=t)))),4096&t.$$.dirty[1]&&C&&"fade"===C.type){const t=C;r(34,mt=ze(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(37,$t=Fe(t.duration,300)),r(36,yt=Fe(t.start_delay,0)),r(35,vt=Fe(t.alpha,0))}if(1&t.$$.dirty[0]&&(r(11,w=rt.getDerivedFromVars(Q.filters)),z(),z=h(w,(t=>r(42,E=t)))),2048&t.$$.dirty[1]){let t="",e="";Array.isArray(E)&&E.length&&(t=tn(E,rt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(38,_t=t),r(39,bt=e)}48&t.$$.dirty[0]|1544&t.$$.dirty[1]&&r(10,x={aspect:"0"!==dt,"is-width-content":l,"is-height-content":u,loaded:1===it,"before-appearance":Boolean(mt)&&0===it}),1879048272&t.$$.dirty[0]|505&t.$$.dirty[1]&&r(9,k={"background-image":st,"background-color":st?void 0:ot,"background-size":lt,"clip-path":bt||void 0,"object-fit":lt,"object-position":ct,filter:[1===it&>?"url(#".concat(gt,")"):"",_t].filter(Boolean).join(" "),"--divkit-appearance-interpolator":mt||void 0,"--divkit-appearance-fade-start":mt?vt:void 0,"--divkit-appearance-delay":mt?"".concat(yt,"ms"):void 0,"--divkit-appearance-duration":mt?"".concat($t,"ms"):void 0})},[Q,tt,et,nt,it,dt,gt,a,at,k,x,w,b,_,$,y,v,m,g,p,f,d,c,s,o,i,function(){0===it&&r(4,it=1)},function(){0===it&&r(4,it=Dr)},ot,st,lt,ct,ut,ft,mt,vt,yt,$t,_t,bt,u,l,E,C,A,V,D,P,j,S,N,I,F,O,M,T]}const jr=class extends te{constructor(t){super(),Zt(this,t,Pr,Ar,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Sr={grid:"divkit-d9080",grid_halign_left:"divkit-f63b3",grid_halign_center:"divkit-a14a6",grid_halign_right:"divkit-b0717",grid_valign_top:"divkit-fbca8",grid_valign_center:"divkit-d4310",grid_valign_bottom:"divkit-e4205"};function Nr(t){return t>0&&t<1}function Ir(t){return String(Math.ceil(1e3*t)/1e3)}function Fr(t,e,n){if(t.some(Nr)){const e=Math.max(...t.filter(Nr).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,i=0;const o=[];if(t.every(Boolean)){i=t.reduce(((t,e)=>t+e),0);for(let o=0;o<n;++o){if(!e[o])continue;const n=e[o]/t[o]*i;n>r&&(r=n)}}for(let e=0;e<n;++e)r?o[e]="minmax(".concat(ue(r*t[e]/i),",").concat(Ir(t[e]),"fr)"):t[e]?o[e]="".concat(Ir(t[e]),"fr"):o[e]="auto";return o.join(" ")}function Or(t,e,n){const r=t.slice();return r[30]=e[n],r}function Mr(t){let e,n;return e=new yn({props:{cls:De("grid",Sr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],parentOf:t[0].items,replaceItems:t[12],$$slots:{default:[Rr]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=De("grid",Sr,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),128&n[0]&&(r.style=t[7]),8&n[0]&&(r.layoutParams=t[3]),1&n[0]&&(r.parentOf=t[0].items),32&n[0]|4&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Tr(t){let e,n;return e=new Ta({props:{layoutParams:t[30].layoutParams,div:t[30].json,templateContext:t[30].templateContext,origJson:t[30].origJson}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[30].layoutParams),32&n[0]&&(r.div=t[30].json),32&n[0]&&(r.templateContext=t[30].templateContext),32&n[0]&&(r.origJson=t[30].origJson),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function zr(t){let e,n,r=Rt(t[5]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Tr(Or(t,r,e));const o=t=>Mt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=J()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);F(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=Rt(t[5]),a=0;a<r.length;a+=1){const o=Or(t,r,a);i[a]?(i[a].p(o,n),Ot(i[a],1)):(i[a]=Tr(o),i[a].c(),Ot(i[a],1),i[a].m(e.parentNode,e))}for(It(),a=r.length;a<i.length;a+=1)o(a);Ft()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ot(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Mt(i[t]);n=!1},d(t){t&&O(e),M(i,t)}}}function Rr(t){let e,r,i=t[5],o=zr(t);return{c(){o.c(),e=J()},l(t){o.l(t),e=J()},m(t,n){o.m(t,n),F(t,e,n),r=!0},p(t,r){32&r[0]&&d(i,i=t[5])?(It(),Mt(o,1,1,n),Ft(),o=zr(t),o.c(),Ot(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Ot(o),r=!0)},o(t){Mt(o),r=!1},d(t){t&&O(e),o.d(t)}}}function Br(t){let e,n,r=!t[6]&&Mr(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[6]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),64&n[0]&&Ot(r,1)):(r=Mr(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function Jr(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v=n,y=n,$=n,_=n;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:w}=e,{origJson:x}=e,{layoutParams:k}=e;const E=pt(oe);let C,A,V=!1,D=1,P=[],j=[],S=[],N=[],I=0,F=!1,O="top",M="left";return t.$$set=t=>{"json"in t&&r(0,b=t.json),"templateContext"in t&&r(1,w=t.templateContext),"origJson"in t&&r(2,x=t.origJson),"layoutParams"in t&&r(3,k=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(24,i=b.items),16777216&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(13,V=!1):(r(13,V=!0),E.logError(ae(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(r(11,o=E.getDerivedFromVars(b.column_count)),_(),_=h(o,(t=>r(28,m=t)))),268451840&t.$$.dirty[0]&&r(14,D=_n(m,D)),16785410&t.$$.dirty[0]&&r(23,a=(!V&&i||[]).map((t=>{let e=t,n=w;return({templateContext:n,json:e}=E.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),8388608&t.$$.dirty[0]){let t=[];a.forEach((e=>{t.push(E.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(4,C=re(t,(t=>[...t]))),$(),$=h(C,(t=>r(27,g=t)))}if(144162824&t.$$.dirty[0]){const t={};let e=0,n=0;r(15,P=[]),r(16,j=[]),r(17,S=[]),r(18,N=[]),r(20,F=!1),r(5,A=a.map(((i,o)=>{var a,s,l,c;const u=g[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,f={x:e,y:n,colSpan:d,rowSpan:h},p="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(s=u.height)||void 0===s?void 0:s.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(l=u.width)||void 0===l?void 0:l.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let i=e;i<e+d;++i)for(let e=n;e<n+h;++e)t[i+"_"+e]?r(20,F=!0):(t[i+"_"+e]=!0,(!P[i]||P[i]<p)&&r(15,P[i]=p,P),(!j[e]||j[e]<m)&&r(16,j[e]=m,j),(!S[i]||S[i]<v)&&r(17,S[i]=v,S),(!N[e]||N[e]<y)&&r(18,N[e]=y,N));do{++e,e>=D&&(e=0,++n)}while(t[e+"_"+n]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:f,fakeElement:(null==k?void 0:k.fakeElement)||!1}})}))),0!==e&&r(20,F=!0),F&&E.logError(ae(new Error('Mismatching "grid" rows/columns'))),r(19,I=n)}1&t.$$.dirty[0]&&(r(10,s=E.getDerivedFromVars(b.content_alignment_vertical)),y(),y=h(s,(t=>r(26,p=t)))),69206016&t.$$.dirty[0]&&r(21,O=Dn(p,O)),1&t.$$.dirty[0]&&(r(9,l=E.getDerivedFromVars(b.content_alignment_horizontal)),v(),v=h(l,(t=>r(25,f=t)))),37748736&t.$$.dirty[0]&&r(22,M=Vn(f,M)),6291456&t.$$.dirty[0]&&r(8,c={valign:O,halign:M}),1032192&t.$$.dirty[0]&&r(7,u={"grid-template-columns":Fr(P,S,D),"grid-template-rows":Fr(j,N,I)}),1056768&t.$$.dirty[0]&&r(6,d=V||F)},[b,w,x,k,C,A,d,u,c,l,s,o,function(t){r(0,b=Object.assign(Object.assign({},b),{items:t}))},V,D,P,j,S,N,I,F,O,M,a,i,f,p,g,m]}const Lr={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function Ur(t){const e=[];let n=t[0],r=1;for(let i=1;i<=t.length;i++)t[i]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[i],r=1):r++;return e.join(" ")}function Wr(t,e){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}const{Boolean:Hr}=A;function qr(t,e,n){const r=t.slice();return r[73]=e[n],r[74]=e,r[75]=n,r}function Gr(t,e,n){const r=t.slice();return r[76]=e[n],r}function Kr(t){let e,n;return e=new yn({props:{cls:De("gallery",Lr,t[17]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",parentOf:t[10],replaceItems:t[32],$$slots:{default:[ni]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};131072&n[0]&&(r.cls=De("gallery",Lr,t[17])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1024&n[0]&&(r.parentOf=t[10]),671906768&n[0]|131072&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Yr(t){let e,n;return e=new Ta({props:{layoutParams:t[8],div:t[76].json,templateContext:t[76].templateContext,origJson:t[76].origJson}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),134217728&n[0]&&(r.div=t[76].json),134217728&n[0]&&(r.templateContext=t[76].templateContext),134217728&n[0]&&(r.origJson=t[76].origJson),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Xr(t){let e,n,r,i,o,a=t[75],s=Rt(t[73]),l=[];for(let e=0;e<s.length;e+=1)l[e]=Yr(Gr(t,s,e));const c=t=>Mt(l[t],1,1,(()=>{l[t]=null})),u=()=>t[61](e,a),d=()=>t[61](null,a);return{c(){e=T("div");for(let t=0;t<l.length;t+=1)l[t].c();n=B(),this.h()},l(t){e=Y(t,"DIV",{class:!0,style:!0});var r=q(e);for(let t=0;t<l.length;t+=1)l[t].l(r);n=Q(r),r.forEach(O),this.h()},h(){U(e,"class",r=Lr.gallery__items),U(e,"style",i=ce(t[18]))},m(t,r){F(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);I(e,n),u(),o=!0},p(r,h){if(t=r,134217984&h[0]){let r;for(s=Rt(t[73]),r=0;r<s.length;r+=1){const i=Gr(t,s,r);l[r]?(l[r].p(i,h),Ot(l[r],1)):(l[r]=Yr(i),l[r].c(),Ot(l[r],1),l[r].m(e,n))}for(It(),r=s.length;r<l.length;r+=1)c(r);Ft()}(!o||262144&h[0]&&i!==(i=ce(t[18])))&&U(e,"style",i),a!==t[75]&&(d(),a=t[75],u())},i(t){if(!o){for(let t=0;t<s.length;t+=1)Ot(l[t]);o=!0}},o(t){l=l.filter(Hr);for(let t=0;t<l.length;t+=1)Mt(l[t]);o=!1},d(t){t&&O(e),M(l,t),d()}}}function Zr(t){let e,n,r=Rt(t[27]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Xr(qr(t,r,e));const o=t=>Mt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=J()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);F(t,e,r),n=!0},p(t,n){if(134484224&n[0]){let a;for(r=Rt(t[27]),a=0;a<r.length;a+=1){const o=qr(t,r,a);i[a]?(i[a].p(o,n),Ot(i[a],1)):(i[a]=Xr(o),i[a].c(),Ot(i[a],1),i[a].m(e.parentNode,e))}for(It(),a=r.length;a<i.length;a+=1)o(a);Ft()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ot(i[t]);n=!0}},o(t){i=i.filter(Hr);for(let t=0;t<i.length;t+=1)Mt(i[t]);n=!1},d(t){t&&O(e),M(i,t)}}}function Qr(t){let e,n,r=t[13]&&t[9]&&ti(t),i=t[14]&&t[9]&&ei(t);return{c(){r&&r.c(),e=B(),i&&i.c(),n=J()},l(t){r&&r.l(t),e=Q(t),i&&i.l(t),n=J()},m(t,o){r&&r.m(t,o),F(t,e,o),i&&i.m(t,o),F(t,n,o)},p(t,o){t[13]&&t[9]?r?r.p(t,o):(r=ti(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[14]&&t[9]?i?i.p(t,o):(i=ei(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){t&&(O(e),O(n)),r&&r.d(t),i&&i.d(t)}}}function ti(t){let e,r,i,o,a=!t[30]&&function(t){let e,n,r,i;return{c(){e=z("svg"),n=z("path"),this.h()},l(t){e=X(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=q(e);n=X(r,"path",{class:!0,d:!0}),q(n).forEach(O),r.forEach(O),this.h()},h(){U(n,"class",r=Lr["gallery__arrow-icon-path"]),U(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),U(e,"class",i=Lr["gallery__arrow-icon"]),U(e,"xmlns","http://www.w3.org/2000/svg"),U(e,"width","32"),U(e,"height","32"),U(e,"viewBox","0 0 32 32"),U(e,"fill","none")},m(t,r){F(t,e,r),I(e,n)},d(t){t&&O(e)}}}();return{c(){e=T("div"),a&&a.c(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var n=q(e);a&&a.l(n),n.forEach(O),this.h()},h(){U(e,"class",r=t[30]||"".concat(Lr.gallery__arrow," ").concat(Lr.gallery__arrow_left))},m(n,r){F(n,e,r),a&&a.m(e,null),i||(o=L(e,"click",t[64]),i=!0)},p:n,d(t){t&&O(e),a&&a.d(),i=!1,o()}}}function ei(t){let e,r,i,o,a=!t[31]&&function(t){let e,n,r,i;return{c(){e=z("svg"),n=z("path"),this.h()},l(t){e=X(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=q(e);n=X(r,"path",{class:!0,d:!0}),q(n).forEach(O),r.forEach(O),this.h()},h(){U(n,"class",r=Lr["gallery__arrow-icon-path"]),U(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),U(e,"class",i=Lr["gallery__arrow-icon"]),U(e,"xmlns","http://www.w3.org/2000/svg"),U(e,"width","32"),U(e,"height","32"),U(e,"viewBox","0 0 32 32"),U(e,"fill","none")},m(t,r){F(t,e,r),I(e,n)},d(t){t&&O(e)}}}();return{c(){e=T("div"),a&&a.c(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var n=q(e);a&&a.l(n),n.forEach(O),this.h()},h(){U(e,"class",r=t[31]||"".concat(Lr.gallery__arrow," ").concat(Lr.gallery__arrow_right))},m(n,r){F(n,e,r),a&&a.m(e,null),i||(o=L(e,"click",t[65]),i=!0)},p:n,d(t){t&&O(e),a&&a.d(),i=!1,o()}}}function ni(t){let e,r,i,o,a,s,c,u,h,f,p,g=t[27],m=Zr(t),v="horizontal"===t[6]&&Qr(t);return{c(){e=T("div"),r=T("div"),m.c(),c=B(),v&&v.c(),u=J(),this.h()},l(t){e=Y(t,"DIV",{class:!0,style:!0});var n=q(e);r=Y(n,"DIV",{class:!0,style:!0});var i=q(r);m.l(i),i.forEach(O),n.forEach(O),c=Q(t),v&&v.l(t),u=J(),this.h()},h(){U(r,"class",i=Lr["gallery__items-grid"]),U(r,"style",o=ce(t[19])),U(e,"class",a=Lr.gallery__scroller+" "+(t[29]?ie["root_restrict-scroll"]:"")),U(e,"style",s=ce(t[7]))},m(n,i){F(n,e,i),I(e,r),m.m(r,null),t[62](r),t[63](e),F(n,c,i),v&&v.m(n,i),F(n,u,i),h=!0,f||(p=L(e,"scroll",(function(){l(t[9]?t[34]:null)&&(t[9]?t[34]:null).apply(this,arguments)})),f=!0)},p(i,l){t=i,134217728&l[0]&&d(g,g=t[27])?(It(),Mt(m,1,1,n),Ft(),m=Zr(t),m.c(),Ot(m,1),m.m(r,null)):m.p(t,l),(!h||524288&l[0]&&o!==(o=ce(t[19])))&&U(r,"style",o),(!h||536870912&l[0]&&a!==(a=Lr.gallery__scroller+" "+(t[29]?ie["root_restrict-scroll"]:"")))&&U(e,"class",a),(!h||128&l[0]&&s!==(s=ce(t[7])))&&U(e,"style",s),"horizontal"===t[6]?v?v.p(t,l):(v=Qr(t),v.c(),v.m(u.parentNode,u)):v&&(v.d(1),v=null)},i(t){h||(Ot(m),h=!0)},o(t){Mt(m),h=!1},d(n){n&&(O(e),O(c),O(u)),m.d(n),t[62](null),t[63](null),v&&v.d(n),f=!1,p()}}}function ri(t){let e,n,r,i,o=!t[5]&&Kr(t);return{c(){o&&o.c(),e=J()},l(t){o&&o.l(t),e=J()},m(a,s){o&&o.m(a,s),F(a,e,s),n=!0,r||(i=L(window,"resize",(function(){l(t[9]?t[35]:null)&&(t[9]?t[35]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?o&&(It(),Mt(o,1,1,(()=>{o=null})),Ft()):o?(o.p(t,r),32&r[0]&&Ot(o,1)):(o=Kr(t),o.c(),Ot(o,1),o.m(e.parentNode,e))},i(t){n||(Ot(o),n=!0)},o(t){Mt(o),n=!1},d(t){t&&O(e),o&&o.d(t),r=!1,i()}}}function ii(t,e,r){let i,o,a,s,l,c,u,d,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,N,I=n,F=n,O=n,M=n,T=n,z=n,R=n,B=n,J=n,L=n;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>L()));let{json:U={}}=e,{templateContext:W}=e,{origJson:H}=e,{layoutParams:q}=e;const G=pt(oe);let K,Y,X=[],Z=!1,Q=!1,tt=null,et=!1;const nt=G.getCustomization("galleryLeftClass"),rt=G.getCustomization("galleryRightClass");let it=!1;const ot=G.isDesktop;f(t,ot,(t=>r(60,S=t)));let at,st,lt,ct,ut=1,ft="horizontal",gt="start",mt=8,yt="",$t=[],_t={},bt=!1,wt={},xt=0;function kt(){if(!K)return;const t=K.scrollLeft,e=K.scrollWidth,n=K.offsetWidth;r(13,Z=t>2),r(14,Q=t+n<e-2)}const Et=Wr(kt,50);function Ct(t){K.scroll({left:K.scrollLeft+.75*K.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function At(){let t=[],e=X[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ut;++e){const r=X[e].children[n];r&&t.push(r)}return t}function Vt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===ft,i=r?"offsetLeft":"offsetTop",o=r?"left":"top",a=t[e];a&&K.scroll({[o]:Math.max(0,a[i]+.01-mt/2),behavior:n})}function Dt(t){const e=At(),n=K.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===ft?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 i=e.map((t=>function(t,e){return"horizontal"===ft?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),o=i.findIndex(Boolean);return-1!==o?"prev"===t&&2===i.filter(Boolean).length?o+1:o:"prev"===t?1:e.length-2}return!U.id||it||(null==q?void 0:q.fakeElement)||G.registerInstance(U.id,{setCurrentItem(t){const e=At();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){const e=Dt("prev"),n=At();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),Vt(n,r)},setNextItem(t){const e="horizontal"===ft?K.scrollLeft+K.offsetWidth===K.scrollWidth:K.scrollTop+K.offsetHeight===K.scrollHeight,n=At();if(e&&"ring"===t)return void Vt(n,0);const r=Dt("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),Vt(n,i)}}),dt((()=>{r(38,et=!0),!it&&(kt(),xt)&&Vt(At(),xt,"auto")})),ht((()=>{r(38,et=!1),U.id&&!(null==q?void 0:q.fakeElement)&&G.unregisterInstance(U.id)})),t.$$set=t=>{"json"in t&&r(0,U=t.json),"templateContext"in t&&r(1,W=t.templateContext),"origJson"in t&&r(2,H=t.origJson),"layoutParams"in t&&r(3,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(10,i=U.items),1024&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(5,it=!1):(r(5,it=!0),G.logError(ae(new Error('Incorrect or empty "items" prop for div "gallery"'))))),1058&t.$$.dirty[0]&&r(50,o=(!it&&i||[]).map((t=>{let e=t,n=W;return({templateContext:n,json:e}=G.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|536871040&t.$$.dirty[1]&&r(9,a=S&&et&&!it),528&t.$$.dirty[0]|64&t.$$.dirty[1]&&(a?"undefined"!=typeof ResizeObserver&&(r(37,tt=new ResizeObserver((()=>{Et()}))),tt.observe(Y)):tt&&(tt.disconnect(),r(37,tt=null))),1&t.$$.dirty[0]&&(r(28,s=G.getDerivedFromVars(U.column_count)),J(),J=h(s,(t=>r(59,j=t)))),268435712&t.$$.dirty[1]&&r(39,ut=_n(j,ut)),524544&t.$$.dirty[1]&&r(27,l=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(o,ut)),1&t.$$.dirty[0]&&(r(26,c=G.getDerivedFromVars(U.orientation)),B(),B=h(c,(t=>r(58,P=t)))),64&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&r(6,ft=gr(P,ft)),1&t.$$.dirty[0]&&(r(25,u=G.getDerivedFromVars(U.cross_content_alignment)),R(),R=h(u,(t=>r(57,D=t)))),67109376&t.$$.dirty[1]&&r(40,gt=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(D,gt)),1&t.$$.dirty[0]&&(r(24,d=G.getDerivedFromVars(U.item_spacing)),z(),z=h(d,(t=>r(56,V=t)))),33556480&t.$$.dirty[1]&&(r(42,mt=Fe(V,mt)),r(41,at=ue(mt))),1&t.$$.dirty[0]&&(r(23,p=G.getDerivedFromVars(U.cross_spacing)),T(),T=h(p,(t=>r(55,A=t)))),16787456&t.$$.dirty[1]&&(r(44,lt=Fe(A,mt)),r(43,st=ue(lt))),1&t.$$.dirty[0]&&(r(22,g=G.getDerivedFromVars(U.paddings)),M(),M=h(g,(t=>r(54,C=t)))),8404992&t.$$.dirty[1]&&r(45,yt=Ie(C,yt)),64&t.$$.dirty[0]&&r(49,m="horizontal"===ft?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===ft?"width":"height";t.push(G.getDerivedFromVars(e.json[n]))})),r(15,ct=re(t,(t=>t))),O(),O=h(ct,(t=>r(53,E=t)))}if(64&t.$$.dirty[0]|4227328&t.$$.dirty[1]&&(r(46,$t=[]),ut>1?$t.push("auto"):E.forEach((t=>{!t&&"horizontal"===ft||"match_parent"===(null==t?void 0:t.type)?$t.push("100%"):$t.push("max-content")}))),1&t.$$.dirty[0]&&(r(21,v=G.getDerivedFromVars(U.scroll_mode)),F(),F=h(v,(t=>r(52,k=t)))),456&t.$$.dirty[0]|2099968&t.$$.dirty[1]){const t={};let e={};r(47,bt=!1),(null==q?void 0:q.fakeElement)&&(e.fakeElement=!0),"horizontal"===ft?e.parentVAlign=gt:e.parentHAlign=gt,"paging"===k&&(r(47,bt=!0),e.scrollSnap="start",t["horizontal"===ft?"scroll-padding-left":"scroll-padding-top"]=ue(mt/2)),1===ut&&(e.parentLayoutOrientation=ft),r(7,_t=Te(t,_t)),r(8,wt=Te(e,wt))}1&t.$$.dirty[0]&&(r(20,y=G.getDerivedFromVars(U.restrict_parent_scroll)),L(),L=h(y,(t=>r(29,N=t)))),20480&t.$$.dirty[1]&&r(19,$={padding:yt,"grid-gap":st}),295936&t.$$.dirty[1]&&r(18,_={"grid-gap":at,[m]:Ur($t)}),64&t.$$.dirty[0]|65536&t.$$.dirty[1]&&r(17,b={orientation:ft,"scroll-snap":bt}),1&t.$$.dirty[0]&&(r(16,w=G.getDerivedFromVars(U.default_item)),I(),I=h(w,(t=>r(51,x=t)))),1179648&t.$$.dirty[1]&&r(48,xt=Fe(x,xt))},[U,W,H,q,Y,it,ft,_t,wt,a,i,K,X,Z,Q,ct,w,b,_,$,y,v,g,p,d,u,c,l,s,N,nt,rt,function(t){r(0,U=Object.assign(Object.assign({},U),{items:t}))},ot,kt,Et,Ct,tt,et,ut,gt,at,mt,st,lt,yt,$t,bt,xt,m,o,x,k,E,C,A,V,D,P,j,S,function(t,e){vt[t?"unshift":"push"]((()=>{X[e]=t,r(12,X)}))},function(t){vt[t?"unshift":"push"]((()=>{Y=t,r(4,Y)}))},function(t){vt[t?"unshift":"push"]((()=>{K=t,r(11,K)}))},()=>Ct("left"),()=>Ct("right")]}const oi={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__separator:"divkit-b85bf"},ai=37,si=39,li=36,ci=35,{Boolean:ui}=A;function di(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;return r[89]=i,r}function hi(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;r[89]=i;const o=r[89]===r[6];return r[92]=o,r}function fi(t){let e,n;return e=new yn({props:{cls:De("tabs",oi,t[46]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[$i]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),2147483626&n[0]|4137&n[1]|4&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function pi(t){let e,n,r=t[88].title+"";return{c(){e=R(r),n=B()},l(t){e=Z(t,r),n=Q(t)},m(t,r){F(t,e,r),F(t,n,r)},p(t,n){524288&n[0]&&r!==(r=t[88].title+"")&&tt(e,r)},d(t){t&&(O(e),O(n))}}}function gi(t){var e,n,r;let i,o;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[64](t[89],...n)}return i=new Xe({props:{cls:De("tabs__item",oi,{selected:t[92],actionable:Boolean(t[88].title_click_action)}),actions:!t[88].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[88].title_click_action],attrs:{id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[pi]},$$scope:{ctx:t}}}),{c(){Gt(i.$$.fragment)},l(t){Kt(i.$$.fragment,t)},m(t,e){Yt(i,t,e),o=!0},p(e,n){var r,o,s;t=e;const l={};524352&n[0]&&(l.cls=De("tabs__item",oi,{selected:t[92],actionable:Boolean(t[88].title_click_action)})),524296&n[0]&&(l.actions=!t[88].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[88].title_click_action]),524360&n[0]&&(l.attrs={id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"}),524296&n[0]&&(l.customAction=null!==(s=t[3])&&void 0!==s&&s.fakeElement?null:a),524288&n[0]|4&n[3]&&(l.$$scope={dirty:n,ctx:t}),i.$set(l)},i(t){o||(Ot(i.$$.fragment,t),o=!0)},o(t){Mt(i.$$.fragment,t),o=!1},d(t){Xt(i,t)}}}function mi(t){let e,n,r;return{c(){e=T("div"),this.h()},l(t){e=Y(t,"DIV",{class:!0,style:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=oi.tabs__separator),U(e,"style",r=ce(t[36]))},m(t,n){F(t,e,n)},p(t,n){32&n[1]&&r!==(r=ce(t[36]))&&U(e,"style",r)},d(t){t&&O(e)}}}function vi(t){let e,n;return e=new Ta({props:{div:t[18][t[89]].div,templateContext:t[1],layoutParams:t[5]}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};786432&n[0]&&(r.div=t[18][t[89]].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function yi(t){let e,n,r,i,o,a,s=t[30][t[89]]&&vi(t);return{c(){e=T("div"),s&&s.c(),n=B(),this.h()},l(t){e=Y(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=q(e);s&&s.l(r),n=Q(r),r.forEach(O),this.h()},h(){U(e,"class",r=De("tabs__panel",oi,{visible:t[31][t[89]]})),U(e,"role","tabpanel"),U(e,"id",i=t[44]+"-panel-"+t[89]),U(e,"aria-labelledby",o=t[44]+"-tab-"+t[89]),et(e,"left",100*t[89]+"%")},m(t,r){F(t,e,r),s&&s.m(e,null),I(e,n),a=!0},p(t,l){t[30][t[89]]?s?(s.p(t,l),1074266112&l[0]&&Ot(s,1)):(s=vi(t),s.c(),Ot(s,1),s.m(e,n)):s&&(It(),Mt(s,1,1,(()=>{s=null})),Ft()),(!a||524288&l[0]|1&l[1]&&r!==(r=De("tabs__panel",oi,{visible:t[31][t[89]]})))&&U(e,"class",r),(!a||524288&l[0]&&i!==(i=t[44]+"-panel-"+t[89]))&&U(e,"id",i),(!a||524288&l[0]&&o!==(o=t[44]+"-tab-"+t[89]))&&U(e,"aria-labelledby",o),(!a||524288&l[0])&&et(e,"left",100*t[89]+"%")},i(t){a||(Ot(s),a=!0)},o(t){Mt(s),a=!1},d(t){t&&O(e),s&&s.d()}}}function $i(t){let e,n,r,i,o,a,c,u,d,h,f,p=Rt(t[19]),g=[];for(let e=0;e<p.length;e+=1)g[e]=gi(hi(t,p,e));const m=t=>Mt(g[t],1,1,(()=>{g[t]=null}));let v=t[20]&&mi(t),y=Rt(t[19]),$=[];for(let e=0;e<y.length;e+=1)$[e]=yi(di(t,y,e));const _=t=>Mt($[t],1,1,(()=>{$[t]=null}));return{c(){e=T("div");for(let t=0;t<g.length;t+=1)g[t].c();r=B(),v&&v.c(),i=B(),o=T("div"),a=T("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=Y(t,"DIV",{class:!0,role:!0});var n=q(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(O),r=Q(t),v&&v.l(t),i=Q(t),o=Y(t,"DIV",{class:!0});var s=q(o);a=Y(s,"DIV",{class:!0});var l=q(a);for(let t=0;t<$.length;t+=1)$[t].l(l);l.forEach(O),s.forEach(O),this.h()},h(){U(e,"class",n=oi.tabs__list+" "+(t[43]?ie["root_restrict-scroll"]:"")),U(e,"role","tablist"),et(e,"--divkit-tabs-title-padding",t[17]?je(t[17]):""),et(e,"--divkit-tabs-font-size",ue(t[7])),et(e,"--divkit-tabs-paddings",t[8]),et(e,"--divkit-tabs-line-height",t[24]),et(e,"--divkit-tabs-letter-spacing",t[25]),et(e,"--divkit-tabs-active-font-weight",t[10]||""),et(e,"--divkit-tabs-inactive-font-weight",t[11]||""),et(e,"--divkit-tabs-active-font-family",t[26]||""),et(e,"--divkit-tabs-inactive-font-family",t[27]||""),et(e,"--divkit-tabs-active-text-color",t[12]),et(e,"--divkit-tabs-inactive-text-color",t[13]),et(e,"--divkit-tabs-active-background-color",t[14]),et(e,"--divkit-tabs-inactive-background-color",t[15]),et(e,"--divkit-tabs-border-radius",t[9]),et(e,"--divkit-tabs-items-spacing",t[16]?de(t[16]):""),U(a,"class",c=De("tabs__swiper",oi,{inited:t[28],animated:t[29]})),U(o,"class",u=oi.tabs__panels+" "+(t[43]?ie["root_restrict-scroll"]:""))},m(n,s){F(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[65](e),F(n,r,s),v&&v.m(n,s),F(n,i,s),F(n,o,s),I(o,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[66](a),t[67](o),d=!0,h||(f=[L(e,"keydown",t[48]),L(a,"touchstart",(function(){l(t[34]?t[49]:void 0)&&(t[34]?t[49]:void 0).apply(this,arguments)})),L(a,"touchmove",(function(){l(t[34]?t[50]:void 0)&&(t[34]?t[50]:void 0).apply(this,arguments)})),L(a,"touchend",(function(){l(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)})),L(a,"touchcancel",(function(){l(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)}))],h=!0)},p(r,s){if(t=r,524360&s[0]|73728&s[1]){let n;for(p=Rt(t[19]),n=0;n<p.length;n+=1){const r=hi(t,p,n);g[n]?(g[n].p(r,s),Ot(g[n],1)):(g[n]=gi(r),g[n].c(),Ot(g[n],1),g[n].m(e,null))}for(It(),n=p.length;n<g.length;n+=1)m(n);Ft()}if((!d||4096&s[1]&&n!==(n=oi.tabs__list+" "+(t[43]?ie["root_restrict-scroll"]:"")))&&U(e,"class",n),131072&s[0]&&et(e,"--divkit-tabs-title-padding",t[17]?je(t[17]):""),128&s[0]&&et(e,"--divkit-tabs-font-size",ue(t[7])),256&s[0]&&et(e,"--divkit-tabs-paddings",t[8]),16777216&s[0]&&et(e,"--divkit-tabs-line-height",t[24]),33554432&s[0]&&et(e,"--divkit-tabs-letter-spacing",t[25]),1024&s[0]&&et(e,"--divkit-tabs-active-font-weight",t[10]||""),2048&s[0]&&et(e,"--divkit-tabs-inactive-font-weight",t[11]||""),67108864&s[0]&&et(e,"--divkit-tabs-active-font-family",t[26]||""),134217728&s[0]&&et(e,"--divkit-tabs-inactive-font-family",t[27]||""),4096&s[0]&&et(e,"--divkit-tabs-active-text-color",t[12]),8192&s[0]&&et(e,"--divkit-tabs-inactive-text-color",t[13]),16384&s[0]&&et(e,"--divkit-tabs-active-background-color",t[14]),32768&s[0]&&et(e,"--divkit-tabs-inactive-background-color",t[15]),512&s[0]&&et(e,"--divkit-tabs-border-radius",t[9]),65536&s[0]&&et(e,"--divkit-tabs-items-spacing",t[16]?de(t[16]):""),t[20]?v?v.p(t,s):(v=mi(t),v.c(),v.m(i.parentNode,i)):v&&(v.d(1),v=null),1074528290&s[0]|8193&s[1]){let e;for(y=Rt(t[19]),e=0;e<y.length;e+=1){const n=di(t,y,e);$[e]?($[e].p(n,s),Ot($[e],1)):($[e]=yi(n),$[e].c(),Ot($[e],1),$[e].m(a,null))}for(It(),e=y.length;e<$.length;e+=1)_(e);Ft()}(!d||805306368&s[0]&&c!==(c=De("tabs__swiper",oi,{inited:t[28],animated:t[29]})))&&U(a,"class",c),(!d||4096&s[1]&&u!==(u=oi.tabs__panels+" "+(t[43]?ie["root_restrict-scroll"]:"")))&&U(o,"class",u)},i(t){if(!d){for(let t=0;t<p.length;t+=1)Ot(g[t]);for(let t=0;t<y.length;t+=1)Ot($[t]);d=!0}},o(t){g=g.filter(ui);for(let t=0;t<g.length;t+=1)Mt(g[t]);$=$.filter(ui);for(let t=0;t<$.length;t+=1)Mt($[t]);d=!1},d(n){n&&(O(e),O(r),O(i),O(o)),M(g,n),t[65](null),v&&v.d(n),M($,n),t[66](null),t[67](null),h=!1,s(f)}}}function _i(t){let e,n,r=!t[4]&&fi(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[4]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),16&n[0]&&Ot(r,1)):(r=fi(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function bi(t,e,r){let i,o,a,s,l,c,u,d,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D=n,P=n,j=n,S=n,N=n,I=n,F=n,O=n,M=n;var T,z;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>M()));let{json:R={}}=e,{templateContext:B}=e,{origJson:J}=e,{layoutParams:L}=e;const U=pt(oe),W=U.genId("tabs");let H=!1,q=ne([]);f(t,q,(t=>r(19,$=t)));let G,K,Y,X={};const Z=U.getJsonWithVars(R.selected_tab);let Q,tt,et=Z&&Number(Z)||0,nt=12,rt="",it="",ot="",at="",st="",lt="",ct="",ut="",dt="",ft="",gt=0,mt="",yt="",$t=null,_t=!1,bt=!1,wt=et,kt=[],Et=[];async function Ct(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(wt=et,r(6,et=t),Nt(),r(29,bt=!0),Dt(100*-et),Pt(),async function(){await xt();const t=document.getElementById("".concat(W,"-panel-").concat(et));t&&r(22,K.style.height=ue(t.offsetHeight),K)}(),St(),Ot=-et*K.clientWidth,e){await xt();const t=G.querySelector(".".concat(oi.tabs__item_selected));t&&t.focus()}}function At(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==$?void 0:$.length;if(!n)return;const r=$.map((t=>t.index));let i=r.indexOf(et)+t;i>=n?i=0:i<0&&(i=n-1),Ct(r[i],e)}function Vt(t,e){return et===e||(Ct(e),!1)}async function Dt(t){await xt(),r(23,Y.style.transform="translate3d(".concat(t,"%,0,0)"),Y)}function Pt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,et-1):Math.min(et,wt),n=t?Math.min(i.length-1,et+1):Math.max(et,wt);r(30,kt=kt.map(((t,r)=>t||r>=e&&r<=n))),r(31,Et=Et.map(((t,r)=>r>=e&&r<=n)))}let jt=null;function St(){jt&&clearTimeout(jt),jt=window.setTimeout((()=>{r(31,Et=i.map(((t,e)=>e===et)))}),400)}function Nt(){_t||(r(28,_t=!0),r(22,K.style.height=ue(K.clientHeight),K),r(23,Y.style.transform="translate3d(".concat(100*-wt,"%,0,0)"),Y))}let It,Ft,Ot,Mt=null,Tt=null,zt=!1,Rt=!1;return!R.id||H||(null==L?void 0:L.fakeElement)||U.registerInstance(R.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Ct(t)},setPreviousItem(t){let e=et-1;e<0&&(e="ring"===t?i.length-1:et),Ct(e)},setNextItem(t){let e=et+1;e>i.length-1&&(e="ring"===t?0:et),Ct(e)}}),ht((()=>{R.id&&!(null==L?void 0:L.fakeElement)&&U.unregisterInstance(R.id)})),t.$$set=t=>{"json"in t&&r(0,R=t.json),"templateContext"in t&&r(1,B=t.templateContext),"origJson"in t&&r(2,J=t.origJson),"layoutParams"in t&&r(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(18,i=R.items||[]),262144&t.$$.dirty[0])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=U.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):U.logError(ae(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),q.set(t)}else q.set([]);if(524288&t.$$.dirty[0]&&((null==$?void 0:$.length)?r(4,H=!1):(r(4,H=!0),U.logError(ae(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(r(42,o=U.getDerivedFromVars(R.width)),O(),O=h(o,(t=>r(63,A=t)))),1&t.$$.dirty[0]&&(r(41,a=U.getDerivedFromVars(R.height)),F(),F=h(a,(t=>r(62,C=t)))),40&t.$$.dirty[0]|3&t.$$.dirty[2]){let t={};(null==L?void 0:L.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==A?void 0:A.type)&&(t.parentHorizontalWrapContent=!0),C&&"wrap_content"!==C.type||(t.parentVerticalWrapContent=!0),r(5,X=Te(t,X))}if(262225&t.$$.dirty[0]&&!H&&(et<0||et>=i.length)&&(U.logError(ae(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:R.selected_tab,length:i.length}})),r(6,et=et<0?0:i.length-1)),524369&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&(H||$.some((t=>et===t.index))||(U.logError(ae(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:R.selected_tab}})),r(6,et=(null===r(52,T=$[0])||void 0===T?void 0:T.index)||0))),1&t.$$.dirty[0]&&(r(40,s=U.getDerivedFromVars(R.tab_title_style)),I(),I=h(s,(t=>r(61,E=t)))),1073741824&t.$$.dirty[1]&&r(56,l=E||{}),128&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(7,nt=_n(l.font_size,nt)),384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(l.font_size||l.paddings)){const t=l.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/nt*10,right:(Number(t.right)||0)/nt*10,bottom:(Number(t.bottom)||0)/nt*10,left:(Number(t.left)||0)/nt*10};r(8,rt=Ie(e,rt))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&Qe(t)&&r(24,it=ue(t/nt*10))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&Ne(t)&&r(25,ot=ue(t/nt*10))}if(640&t.$$.dirty[0]|37748736&t.$$.dirty[1]&&(l.corner_radius||l.corners_radius||l.font_size)){const t=null!==r(53,z=l.corner_radius)&&void 0!==z?z:1e3;l.corners_radius?r(9,at=function(t,e,n,r){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<i.length;++t)if(i[t]&&!Ne(i[t]))return r;return Le(t,e,n)}(l.corners_radius,t,nt,at)):Ne(t)&&r(9,at=ue(t/nt*10))}1024&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(r(10,Q=wn(l.active_font_weight||l.font_weight,Q)),l.font_family&&"string"==typeof l.font_family?r(26,st=U.typefaceProvider(l.font_family,{fontWeight:Q||400})):r(26,st="")),2048&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(r(11,tt=wn(l.inactive_font_weight||l.font_weight,tt)),l.font_family&&"string"==typeof l.font_family?r(27,lt=U.typefaceProvider(l.font_family,{fontWeight:tt||400})):r(27,lt="")),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,ct=fe(l.active_text_color,1,ct)),8192&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(13,ut=fe(l.inactive_text_color,1,ut)),16384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(14,dt=fe(l.active_background_color,1,dt)),32768&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(15,ft=fe(l.inactive_background_color,1,ft)),65536&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(16,gt=Fe(l.item_spacing,gt)),1&t.$$.dirty[0]&&(r(39,c=U.getDerivedFromVars(R.has_separator)),N(),N=h(c,(t=>r(20,k=t)))),1&t.$$.dirty[0]&&(r(38,u=U.getDerivedFromVars(R.separator_color)),S(),S=h(u,(t=>r(60,x=t)))),1&t.$$.dirty[0]&&(r(37,d=U.getDerivedFromVars(R.separator_paddings)),j(),j=h(d,(t=>r(59,w=t)))),1048576&t.$$.dirty[0]|830472192&t.$$.dirty[1]&&k&&(x&&r(54,mt=fe(x,1,mt)),w&&r(55,yt=Ie(w,yt))),25165824&t.$$.dirty[1]&&r(36,p={background:mt,margin:yt}),1&t.$$.dirty[0]&&(r(35,g=U.getDerivedFromVars(R.switch_tabs_by_content_swipe_enabled)),P(),P=h(g,(t=>r(58,b=t)))),134217728&t.$$.dirty[1]&&r(34,m=void 0===b||Boolean(b)),1&t.$$.dirty[0]&&(r(33,v=U.getDerivedFromVars(R.restrict_parent_scroll)),M(),M=h(v,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(32,y=U.getDerivedFromVars(R.title_paddings)),D(),D=h(y,(t=>r(57,_=t)))),131072&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(17,$t=Je(_||void 0,$t)),262144&t.$$.dirty[0]&&(H||(r(30,kt=i.map(((t,e)=>e===et))),r(31,Et=i.map(((t,e)=>e===et)))))},[R,B,J,L,H,X,et,nt,rt,at,Q,tt,ct,ut,dt,ft,gt,$t,i,$,k,G,K,Y,it,ot,st,lt,_t,bt,kt,Et,y,v,m,g,p,d,u,c,s,a,o,V,W,q,{},Vt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(t.which===ai)At(-1,!0);else if(t.which===si)At(1,!0);else if(t.which===li)Ct(0,!0);else{if(t.which!==ci)return;Ct(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(ie["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==K||(zt=!1,Rt=!1,Mt=He(t),Tt=null,It=Date.now(),Ft=Ot||-et*K.clientWidth,r(29,bt=!1),jt&&clearTimeout(jt))},function(t){const e=He(t);if(!Mt||Tt&&Tt.x===e.x&&Tt.y===e.y)return;Tt=e;const n=K.clientWidth;if(zt){Ot=e.x-Mt.x+Ft;const t=n*i.length;if(Ot>0)Ot=Ot*n/(Ot+3*n);else if(-Ot+n>t){let e=-Ot+n-t;e=e*n/(e+3*n),Ot=n-t-e}Dt(100*Ot/n)}else Math.abs(e.y-Mt.y)>10?Rt=!0:!Rt&&Math.abs(e.x-Mt.x)>8&&(Nt(),zt=!0,Mt=e,Dt(100*-et),Pt(!0));zt&&t.cancelable&&t.preventDefault()},function(){Rt=!1,Mt=null;let t=et;if(!zt)return;zt=!1;const e=Math.min(512,K.clientWidth);Math.abs(Ft-Ot)>e/4*Math.min(1,(Date.now()-It)/750)&&(t+=Ft>Ot?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===et?(Ot=-t*e,Dt(100*-t),St()):Ct(t)},T,z,mt,yt,l,_,b,w,x,E,C,A,(t,e)=>Vt(0,t),function(t){vt[t?"unshift":"push"]((()=>{G=t,r(21,G)}))},function(t){vt[t?"unshift":"push"]((()=>{Y=t,r(23,Y)}))},function(t){vt[t?"unshift":"push"]((()=>{K=t,r(22,K)}))}]}const wi={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function xi(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function ki(t){return t*t*t}function Ei(t){const e=t-1;return e*e*e+1}function Ci(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),i=n-r;return t[r]*i+t[r+1]*(1-i)}}const Ai=Ci([.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]),Vi=Ci([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]),Di={linear:r,ease:Ai,ease_in:ki,ease_out:Ei,ease_in_out:xi,spring:Vi},Pi=200,ji=0,Si=0,Ni=0;function Ii(t){return Math.max(...t.map((t=>(Number(t.duration)||Pi)+(Number(t.start_delay)||ji))))}function Fi(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||ji,a=Number(t.duration)||Pi,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-s:s,u=(Di[t.interpolator||"ease_in_out"]||xi)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Si)};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 o=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===o&&(o="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(i["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(i["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=o*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,f;const e=1-u+u*(t.scale||Ni),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(f=t.pivot_y)&&void 0!==f?f:.5,o=(1-e)*r.width*n,a=(1-e)*r.height*i;return{active:u>0&&u<1,scale:"translate(".concat(o,"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(" "),h=s.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),f=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(f||"none",";opacity:").concat(c)}}}function Oi(t,e,n){return t*(1-n)+e*n}const Mi={linear:r,ease:Ai,ease_in:ki,ease_out:Ei,ease_in_out:xi,spring:Vi},Ti=200,zi=0;function Ri(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:zi,duration:null!==(r=s.duration)&&void 0!==r?r:Ti,easing:s.interpolator&&s.interpolator in Mi?Mi[s.interpolator]:xi,css:t=>["top:".concat(Oi(o.top,a.top,t)-i.top,"px"),"left:".concat(Oi(o.left,a.left,t)-i.left,"px"),"width:".concat(Oi(o.width,a.width,t),"px"),"height:".concat(Oi(o.height,a.height,t),"px")].join(";")}}function Bi(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Bi(t))})):e.push(t),e}const Ji={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},Li={linear:r,ease:Ai,ease_in:ki,ease_out:Ei,ease_in_out:xi,spring:Vi},Ui=300,Wi=0;function Hi(t,e){let{animations:n,direction:r}=e;if(!n)return{};const i=Be(n),o=(a=i,Math.max(...a.map((t=>(Number(t.duration)||Ui)+(Number(t.start_delay)||Wi)))));var a;return i.some((t=>"no_animation"===t.name))?{}:{duration:o,css:t=>{const e=t*o,n=i.map((t=>{const n=Number(t.start_delay)||Wi,i=Number(t.duration)||Ui,o=Math.max(0,Math.min(1,(e-n)/i)),a=(Li[t.interpolator||"ease_in_out"]||xi)(o);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,h;const e="in"===r&&null!==(d=t.start_value)&&void 0!==d?d:0,n="in"===r?1:null!==(h=t.end_value)&&void 0!==h?h: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:qi}=A;function Gi(t){let e,i,o,a,c,u,d,h;return i=new Ta({props:{div:t[0].div,templateContext:t[1]}}),{c(){e=T("div"),Gt(i.$$.fragment),this.h()},l(t){e=Y(t,"DIV",{class:!0});var n=q(e);Kt(i.$$.fragment,n),n.forEach(O),this.h()},h(){U(e,"class",o=De("tooltip",Ji,t[7])+" "+(t[14]?ie.root_platform_desktop:"")),et(e,"top",t[4]),et(e,"left",t[3]),et(e,"width",t[5]),et(e,"height",t[6])},m(n,r){F(n,e,r),Yt(i,e,null),t[27](e),u=!0,d||(h=[L(qi,"click",t[18]),L(qi,"resize",t[19])],d=!0)},p(n,r){t=n;const a={};1&r[0]&&(a.div=t[0].div),2&r[0]&&(a.templateContext=t[1]),i.$set(a),(!u||16512&r[0]&&o!==(o=De("tooltip",Ji,t[7])+" "+(t[14]?ie.root_platform_desktop:"")))&&U(e,"class",o),16&r[0]&&et(e,"top",t[4]),8&r[0]&&et(e,"left",t[3]),32&r[0]&&et(e,"width",t[5]),64&r[0]&&et(e,"height",t[6])},i(n){u||(Ot(i.$$.fragment,n),n&&kt((()=>{u&&(c&&c.end(1),a=zt(e,Hi,{animations:t[15]||t[17],direction:"in"}),a.start())})),u=!0)},o(o){Mt(i.$$.fragment,o),a&&a.invalidate(),o&&(c=function(t,e,i){const o={direction:"out"};let a,c=e(t,i,o),u=!0;const d=Nt;let h;function f(){const{delay:e=0,duration:i=300,easing:o=r,tick:l=n,css:f}=c||Tt;f&&(a=st(t,1,0,i,e,o,f));const p=w()+e,g=p+i;kt((()=>jt(t,!1,"start"))),"inert"in t&&(h=t.inert,t.inert=!0),C((e=>{if(u){if(e>=g)return l(0,1),jt(t,!1,"end"),--d.r||s(d.c),!1;if(e>=p){const t=o((e-p)/i);l(1-t,t)}}return u}))}return d.r+=1,l(c)?Pt().then((()=>{c=c(o),f()})):f(),{end(e){e&&"inert"in t&&(t.inert=h),e&&c.tick&&c.tick(1,0),u&&(a&<(t,a),u=!1)}}}(e,Hi,{animations:t[16]||t[17],direction:"out"})),u=!1},d(n){n&&O(e),Xt(i),t[27](null),n&&c&&c.end(),d=!1,s(h)}}}function Ki(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y=n,$=n,_=n,b=n,w=n,x=n;var k,E,C,A;t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{ownerNode:V}=e,{data:D}=e,{internalId:P}=e,{templateContext:j}=e;const S=pt(oe),N=Date.now();let I,F=!1,O="",M="",T="",z="",R=null;function B(){var t,e;if(!I||!V)return;const n=I.parentElement;if(!n)return;const i=I.style.cssText;r(2,I.style.cssText+=";transform: none !important",I);const o=V.getBoundingClientRect(),a=I.getBoundingClientRect(),s=n.getBoundingClientRect();r(2,I.style.cssText=i,I);let l=0,c=0,u=null,h=null,g=0,m=0;const v=S.getJsonWithVars(null===(t=D.div)||void 0===t?void 0:t.width),y=S.getJsonWithVars(null===(e=D.div)||void 0===e?void 0:e.width);if(g=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?u=v.value:a.width:u=o.width,m="match_parent"===(null==y?void 0:y.type)?h=o.height:"fixed"===(null==y?void 0:y.type)&&y.value?h=y.value:a.height,"left"===p||"bottom-left"===p||"top-left"===p)l=o.left-g;else if("top"===p||"bottom"===p||"center"===p)l=(o.left+o.right)/2-g/2;else{if("right"!==p&&"bottom-right"!==p&&"top-right"!==p)return;l=o.right}if("top"===p||"top-left"===p||"top-right"===p)c=o.top-m;else if("left"===p||"right"===p||"center"===p)c=(o.top+o.bottom)/2-m/2;else{if("bottom-left"!==p&&"bottom"!==p&&"bottom-right"!==p)return;c=o.bottom}l-=s.left,c-=s.top,l+=f||0,c+=d||0,r(3,O="".concat(l,"px")),r(4,M="".concat(c,"px")),r(5,T=null!==u?"".concat(u,"px"):""),r(6,z=null!==h?"".concat(h,"px"):""),r(26,F=!0),null===u||null===h?"undefined"==typeof ResizeObserver||R||(R=new ResizeObserver((()=>{requestAnimationFrame(B)})),R.observe(I)):null==R||R.disconnect()}var J;return dt((()=>{if(S.tooltipRoot){const t=window.getComputedStyle(I);r(2,I.style.fontSize=t.fontSize,I),r(2,I.style.fontFamily=t.fontFamily,I),r(2,I.style.lineHeight=t.lineHeight,I),S.tooltipRoot.appendChild(I)}})),J=()=>{F||B()},ut().$$.after_update.push(J),ht((()=>{null==R||R.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(20,V=t.ownerNode),"data"in t&&r(0,D=t.data),"internalId"in t&&r(21,P=t.internalId),"templateContext"in t&&r(1,j=t.templateContext)},t.$$.update=()=>{1&t.$$.dirty[0]&&(r(12,o=S.getDerivedFromVars(D.position)),_(),_=h(o,(t=>r(31,p=t)))),12582913&t.$$.dirty[0]&&(r(11,a=S.getDerivedFromVars(null===r(23,E=null===r(22,k=D.offset)||void 0===k?void 0:k.x)||void 0===E?void 0:E.value)),$(),$=h(a,(t=>r(30,f=t)))),50331649&t.$$.dirty[0]&&(r(10,s=S.getDerivedFromVars(null===r(25,A=null===r(24,C=D.offset)||void 0===C?void 0:C.y)||void 0===A?void 0:A.value)),y(),y=h(s,(t=>r(29,d=t)))),1&t.$$.dirty[0]&&(r(9,l=S.getDerivedFromVars(D.animation_in)),w(),w=h(l,(t=>r(15,m=t)))),1&t.$$.dirty[0]&&(r(8,c=S.getDerivedFromVars(D.animation_out)),x(),x=h(c,(t=>r(16,v=t)))),67108864&t.$$.dirty[0]&&r(7,u={visible:F})},r(13,i=S.isDesktop),b(),b=h(i,(t=>r(14,g=t))),[D,j,I,O,M,T,z,u,c,l,s,a,o,i,g,m,v,{name:"set",items:[{name:"translate"},{name:"fade"}]},function(t){Date.now()-N<100||t.composedPath().includes(I)||S.onTooltipClose(P)},function(){B()},V,P,k,E,C,A,F,function(t){vt[t?"unshift":"push"]((()=>{I=t,r(2,I)}))}]}const Yi=class extends te{constructor(t){super(),Zt(this,t,Ki,Gi,d,{ownerNode:20,data:0,internalId:21,templateContext:1},null,[-1,-1])}},{Map:Xi}=A;function Zi(t,e,n){const r=t.slice();return r[27]=e[n],r}function Qi(t,e,n){const r=t.slice();return r[27]=e[n],r}function to(t){var e;let n,r,i,o;n=new yn({props:{cls:wi.state,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ao]},$$scope:{ctx:t}}});let a=(null===(e=t[3])||void 0===e?void 0:e.tooltips)&&so(t);return{c(){Gt(n.$$.fragment),r=B(),a&&a.c(),i=J()},l(t){Kt(n.$$.fragment,t),r=Q(t),a&&a.l(t),i=J()},m(t,e){Yt(n,t,e),F(t,r,e),a&&a.m(t,e),F(t,i,e),o=!0},p(t,e){var r;const o={};1&e[0]&&(o.json=t[0]),4&e[0]&&(o.origJson=t[2]),2&e[0]&&(o.templateContext=t[1]),8&e[0]&&(o.layoutParams=t[3]),210&e[0]|2&e[1]&&(o.$$scope={dirty:e,ctx:t}),n.$set(o),null!==(r=t[3])&&void 0!==r&&r.tooltips?a?(a.p(t,e),8&e[0]&&Ot(a,1)):(a=so(t),a.c(),Ot(a,1),a.m(i.parentNode,i)):a&&(It(),Mt(a,1,1,(()=>{a=null})),Ft())},i(t){o||(Ot(n.$$.fragment,t),Ot(a),o=!0)},o(t){Mt(n.$$.fragment,t),Mt(a),o=!1},d(t){t&&(O(r),O(i)),Xt(n,t),a&&a.d(t)}}}function eo(t){let e,r,i=t[7],o=no(t);return{c(){o.c(),e=J()},l(t){o.l(t),e=J()},m(t,n){o.m(t,n),F(t,e,n),r=!0},p(t,r){128&r[0]&&d(i,i=t[7])?(It(),Mt(o,1,1,n),Ft(),o=no(t),o.c(),Ot(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Ot(o),r=!0)},o(t){Mt(o),r=!1},d(t){t&&O(e),o.d(t)}}}function no(t){let e,n;return e=new Ta({props:{div:t[7].div,templateContext:t[1]}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.div=t[7].div),2&n[0]&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function ro(t){let e,n,r,i,o,a,s,l,c,u;function d(){return t[11](t[27])}return r=new Ta({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=T("div"),n=T("div"),Gt(r.$$.fragment),o=B(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var i=q(e);n=Y(i,"DIV",{class:!0});var a=q(n);Kt(r.$$.fragment,a),a.forEach(O),o=Q(i),i.forEach(O),this.h()},h(){U(n,"class",i=wi["state__animation-child-inner"]),U(e,"class",a=wi["state__animation-child"])},m(t,i){F(t,e,i),I(e,n),Yt(r,n,null),I(e,o),l=!0,c||(u=L(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n[0]&&(i.div=t[27].json),64&n[0]&&(i.templateContext=t[27].templateContext),r.$set(i)},i(n){l||(Ot(r.$$.fragment,n),s||kt((()=>{s=zt(e,Ri,t[27]),s.start()})),l=!0)},o(t){Mt(r.$$.fragment,t),l=!1},d(t){t&&O(e),Xt(r),c=!1,u()}}}function io(t){let e,n,r,i,o,a,s,l,c,u,d="".concat(t[27].offsetLeft,"px"),h="".concat(t[27].offsetTop,"px"),f="".concat(t[27].width,"px"),p="".concat(t[27].height,"px");function g(){return t[10](t[27])}return r=new Ta({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=T("div"),n=T("div"),Gt(r.$$.fragment),o=B(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var i=q(e);n=Y(i,"DIV",{class:!0});var a=q(n);Kt(r.$$.fragment,a),a.forEach(O),o=Q(i),i.forEach(O),this.h()},h(){U(n,"class",i=wi["state__animation-child-inner"]),U(e,"class",a=wi["state__animation-child"]),et(e,"left",d),et(e,"top",h),et(e,"width",f),et(e,"height",p)},m(t,i){F(t,e,i),I(e,n),Yt(r,n,null),I(e,o),l=!0,c||(u=L(e,"introend",g),c=!0)},p(n,i){t=n;const o={};64&i[0]&&(o.div=t[27].json),64&i[0]&&(o.templateContext=t[27].templateContext),r.$set(o),64&i[0]&&d!==(d="".concat(t[27].offsetLeft,"px"))&&et(e,"left",d),64&i[0]&&h!==(h="".concat(t[27].offsetTop,"px"))&&et(e,"top",h),64&i[0]&&f!==(f="".concat(t[27].width,"px"))&&et(e,"width",f),64&i[0]&&p!==(p="".concat(t[27].height,"px"))&&et(e,"height",p)},i(n){l||(Ot(r.$$.fragment,n),s||kt((()=>{s=zt(e,Fi,t[27]),s.start()})),l=!0)},o(t){Mt(r.$$.fragment,t),l=!1},d(t){t&&O(e),Xt(r),c=!1,u()}}}function oo(t,e){let n,r,i,o,a;const s=[io,ro],l=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),i=l[r]=s[r](e),{key:t,first:null,c(){n=J(),i.c(),o=J(),this.h()},l(t){n=J(),i.l(t),o=J(),this.h()},h(){this.first=n},m(t,e){F(t,n,e),l[r].m(t,e),F(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(It(),Mt(l[a],1,1,(()=>{l[a]=null})),Ft(),i=l[r],i?i.p(e,n):(i=l[r]=s[r](e),i.c()),Ot(i,1),i.m(o.parentNode,o))},i(t){a||(Ot(i),a=!0)},o(t){Mt(i),a=!1},d(t){t&&(O(n),O(o)),l[r].d(t)}}}function ao(t){var e;let n,r,i,o,a=[],s=new Xi,l=(null===(e=t[7])||void 0===e?void 0:e.div)&&eo(t),c=Rt(t[6]);const u=t=>t[27];for(let e=0;e<c.length;e+=1){let n=Qi(t,c,e),r=u(n);s.set(r,a[e]=oo(r,n))}return{c(){l&&l.c(),n=B(),r=T("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){l&&l.l(t),n=Q(t),r=Y(t,"DIV",{class:!0,"aria-hidden":!0});var e=q(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(O),this.h()},h(){U(r,"class",i=wi.state__animations),U(r,"aria-hidden","true")},m(e,i){l&&l.m(e,i),F(e,n,i),F(e,r,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(r,null);t[12](r),o=!0},p(t,e){var i;null!==(i=t[7])&&void 0!==i&&i.div?l?(l.p(t,e),128&e[0]&&Ot(l,1)):(l=eo(t),l.c(),Ot(l,1),l.m(n.parentNode,n)):l&&(It(),Mt(l,1,1,(()=>{l=null})),Ft()),320&e[0]&&(c=Rt(t[6]),It(),a=Jt(a,e,u,1,t,c,s,r,Bt,oo,null,Qi),Ft())},i(t){if(!o){Ot(l);for(let t=0;t<c.length;t+=1)Ot(a[t]);o=!0}},o(t){Mt(l);for(let t=0;t<a.length;t+=1)Mt(a[t]);o=!1},d(e){e&&(O(n),O(r)),l&&l.d(e);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function so(t){var e;let n,r,i=[],o=new Xi,a=Rt(null===(e=t[3])||void 0===e?void 0:e.tooltips);const s=t=>t[27].internalId;for(let e=0;e<a.length;e+=1){let n=Zi(t,a,e),r=s(n);o.set(r,i[e]=lo(r,n))}return{c(){for(let t=0;t<i.length;t+=1)i[t].c();n=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);n=J()},m(t,e){for(let n=0;n<i.length;n+=1)i[n]&&i[n].m(t,e);F(t,n,e),r=!0},p(t,e){var r;10&e[0]&&(a=Rt(null===(r=t[3])||void 0===r?void 0:r.tooltips),It(),i=Jt(i,e,s,1,t,a,o,n.parentNode,Bt,lo,n,Zi),Ft())},i(t){if(!r){for(let t=0;t<a.length;t+=1)Ot(i[t]);r=!0}},o(t){for(let t=0;t<i.length;t+=1)Mt(i[t]);r=!1},d(t){t&&O(n);for(let e=0;e<i.length;e+=1)i[e].d(t)}}}function lo(t,e){let n,r,i;return r=new Yi({props:{ownerNode:e[27].ownerNode,data:e[27].desc,internalId:e[27].internalId,templateContext:e[1]}}),{key:t,first:null,c(){n=J(),Gt(r.$$.fragment),this.h()},l(t){n=J(),Kt(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){F(t,n,e),Yt(r,t,e),i=!0},p(t,n){e=t;const i={};8&n[0]&&(i.ownerNode=e[27].ownerNode),8&n[0]&&(i.data=e[27].desc),8&n[0]&&(i.internalId=e[27].internalId),2&n[0]&&(i.templateContext=e[1]),r.$set(i)},i(t){i||(Ot(r.$$.fragment,t),i=!0)},o(t){Mt(r.$$.fragment,t),i=!1},d(t){t&&O(n),Xt(r,t)}}}function co(t){let e,n,r=!t[5]&&to(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[5]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),32&n[0]&&Ot(r,1)):(r=to(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function uo(t){return"change_bounds"===t.type?t:"set"===t.type?uo(t.items[0]):null}function ho(t,e,n){let r,{json:i={}}=e,{templateContext:o}=e,{origJson:a}=e,{layoutParams:s}=e;const l=pt(oe),c=pt(Pe);let u,d=new Map,h=new Set,f=!1,p=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=l.getJsonWithVars(r),o=l.getJsonWithVars(o);const s=Bi(o),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=s,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:c,rootBbox:t,transitions:s,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=i.div_id||i.id;let b;_?(null==s?void 0:s.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;l.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let i=[];if(u){const t=u.getBoundingClientRect();i=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const o=r.find((e=>e.state_id===t))||null;if(o?(b=t,n(7,w=o)):l.logError(ae(new Error("Cannot find state with id"),{additional:{stateId:t}})),await xt(),!u)return;const a=u.getBoundingClientRect();let s=m.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,t,"in")));i=i.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=i.concat(s),f=c.reduce(((t,e)=>Math.max(t,Ii(e.transitions))),0),p=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:uo(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:f}))),...p]),d.clear(),l.setRunning("stateChange",!1)},getChild(t){if(p&&p.has(t))return p.get(t);l.logError(ae(new Error("Missing state block with id"),{additional:{id:t}}))}}),ft(Pe,{registerInstance(t,e){p||(p=new Map),p.has(t)?l.logError(ae(new Error("Duplicate state with id"),{additional:{id:t}})):p.set(t,e)},unregisterInstance(t){null==p||p.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),s=Ii(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(6,g=[...g.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return y.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(f=!0,l.logError(ae(new Error('Missing "id" prop for div "state"'))));let w=null;const x=l.getJsonWithVars(i.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return ht((()=>{_&&!(null==s?void 0:s.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,i=t.json),"templateContext"in t&&n(1,o=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,s=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&i&&(h=new Set),1&t.$$.dirty[0]&&n(9,r=i.states||[]),512&t.$$.dirty[0]&&((null==r?void 0:r.length)?n(5,f=!1):(n(5,f=!0),l.logError(ae(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty[0]&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||l.logError(ae(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[i,o,a,s,u,f,g,w,E,r,t=>E(t),t=>E(t),function(t){vt[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const fo={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:po}=A;function go(t,e,n){const r=t.slice();return r[49]=e[n],r}function mo(t){let e,n;return e=new yn({props:{cls:De("pager",fo,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,parentOf:t[0].items,replaceItems:t[16],$$slots:{default:[$o]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=De("pager",fo,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1&n[0]&&(r.parentOf=t[0].items),33336&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function vo(t){var e;let n,r,i,o,a;return r=new Ta({props:{div:t[49].json,templateContext:t[49].templateContext,origJson:t[49].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=T("div"),Gt(r.$$.fragment),i=B(),this.h()},l(t){n=Y(t,"DIV",{class:!0});var e=q(n);Kt(r.$$.fragment,e),i=Q(e),e.forEach(O),this.h()},h(){U(n,"class",o=fo.pager__item)},m(t,e){F(t,n,e),Yt(r,n,null),I(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[49].json),16&e[0]&&(i.templateContext=t[49].templateContext),16&e[0]&&(i.origJson=t[49].origJson),8&e[0]&&(i.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(i)},i(t){a||(Ot(r.$$.fragment,t),a=!0)},o(t){Mt(r.$$.fragment,t),a=!1},d(t){t&&O(n),Xt(r)}}}function yo(t){let e,n,r=Rt(t[4]),i=[];for(let e=0;e<r.length;e+=1)i[e]=vo(go(t,r,e));const o=t=>Mt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=J()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);F(t,e,r),n=!0},p(t,n){if(24&n[0]){let a;for(r=Rt(t[4]),a=0;a<r.length;a+=1){const o=go(t,r,a);i[a]?(i[a].p(o,n),Ot(i[a],1)):(i[a]=vo(o),i[a].c(),Ot(i[a],1),i[a].m(e.parentNode,e))}for(It(),a=r.length;a<i.length;a+=1)o(a);Ft()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ot(i[t]);n=!0}},o(t){i=i.filter(po);for(let t=0;t<i.length;t+=1)Mt(i[t]);n=!1},d(t){t&&O(e),M(i,t)}}}function $o(t){let e,r,i,o,a,s,l=t[4],c=yo(t);return{c(){e=T("div"),c.c(),this.h()},l(t){e=Y(t,"DIV",{class:!0,style:!0});var n=q(e);c.l(n),n.forEach(O),this.h()},h(){U(e,"class",r=fo.pager__items+" "+(t[15]?ie["root_restrict-scroll"]:"")),U(e,"style",i=ce(t[9]))},m(n,r){F(n,e,r),c.m(e,null),t[37](e),o=!0,a||(s=L(e,"scroll",t[17]),a=!0)},p(t,a){16&a[0]&&d(l,l=t[4])?(It(),Mt(c,1,1,n),Ft(),c=yo(t),c.c(),Ot(c,1),c.m(e,null)):c.p(t,a),(!o||32768&a[0]&&r!==(r=fo.pager__items+" "+(t[15]?ie["root_restrict-scroll"]:"")))&&U(e,"class",r),(!o||512&a[0]&&i!==(i=ce(t[9])))&&U(e,"style",i)},i(t){o||(Ot(c),o=!0)},o(t){Mt(c),o=!1},d(n){n&&O(e),c.d(n),t[37](null),a=!1,s()}}}function _o(t){let e,n,r=!t[7]&&mo(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[7]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),128&n[0]&&Ot(r,1)):(r=mo(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function bo(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y,_,b,w,x=n,k=n,E=n,C=n,A=n,V=n;var D,P,j,S,N,I,F;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V()));let{json:O={}}=e,{templateContext:M}=e,{origJson:T}=e,{layoutParams:z}=e;const R=pt(oe),B=R.genId("pager");let J,L=!1,U=!1,W=0,H=0,q=!1,G="horizontal",K="",Y="",X="";const Z=Wr((function(){if(!L)return;const t=function(){const t=Array.from(J.children),e=J.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===G?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:W}();t!==W&&r(26,W=t)}),50);function Q(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===G,i=J.children[t],o=n?"offsetLeft":"offsetTop",a=n?"left":"top";J.scroll({[a]:i[o],behavior:e}),r(26,W=t)}return O.id&&!(null==z?void 0:z.fakeElement)&&R.registerInstance(O.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Q(t)},setPreviousItem(t){let e=W-1;e<0&&(e="ring"===t?i.length-1:W),Q(e)},setNextItem(t){let e=W+1;e>i.length-1&&(e="ring"===t?0:W),Q(e)}}),dt((()=>{if(L=!0,Boolean(document.getElementById("".concat(B,"-tab-0")))){const t=[...J.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(B,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(B,"-tab-").concat(e))}})),ht((()=>{L=!1,O.id&&!(null==z?void 0:z.fakeElement)&&R.unregisterInstance(O.id)})),t.$$set=t=>{"json"in t&&r(0,O=t.json),"templateContext"in t&&r(1,M=t.templateContext),"origJson"in t&&r(2,T=t.origJson),"layoutParams"in t&&r(3,z=t.layoutParams)},t.$$.update=()=>{if(262145&t.$$.dirty[0]&&((null===r(18,D=O.items)||void 0===D?void 0:D.length)&&Array.isArray(O.items)?r(25,U=!1):(r(25,U=!0),R.logError(ae(new Error('Incorrect or empty "items" prop for div "pager"'))))),33554435&t.$$.dirty[0]&&r(4,i=(!U&&O.items||[]).map((t=>{let e=t,n=M;return({templateContext:n,json:e}=R.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(14,o=R.getDerivedFromVars(O.layout_mode)),k(),k=h(o,(t=>r(33,v=t)))),4&t.$$.dirty[1]&&(v?"percentage"!==v.type&&"fixed"!==v.type?(r(27,q=!0),R.logError(ae(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(27,q=!1):(r(27,q=!0),R.logError(ae(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(r(13,a=R.getDerivedFromVars(O.orientation)),A(),A=h(a,(t=>r(36,b=t)))),268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(28,G=gr(b,G)),1&t.$$.dirty[0]&&(r(12,s=R.getDerivedFromVars(O.item_spacing)),C(),C=h(s,(t=>r(35,_=t)))),16&t.$$.dirty[1]){const t=null==_?void 0:_.value;t&&Ne(t)&&r(29,K=ue(t||0))}if(1&t.$$.dirty[0]&&(r(11,l=R.getDerivedFromVars(O.paddings)),E(),E=h(l,(t=>r(34,y=t)))),1073741824&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(30,Y=Ie(y,Y)),1&t.$$.dirty[0]&&(r(10,c=R.getDerivedFromVars(O.restrict_parent_scroll)),V(),V=h(c,(t=>r(15,w=t)))),268435456&t.$$.dirty[0]&&r(32,u="horizontal"===G?"grid-auto-columns":"grid-auto-rows"),838336513&t.$$.dirty[0]|4&t.$$.dirty[1])if("fixed"===(null==v?void 0:v.type)){const t=de("horizontal"===G?((null===r(19,P=O.paddings)||void 0===P?void 0:P.left)||0)+((null===r(20,j=O.paddings)||void 0===j?void 0:j.right)||0):((null===r(21,S=O.paddings)||void 0===S?void 0:S.top)||0)+((null===r(22,N=O.paddings)||void 0===N?void 0:N.bottom)||0)),e=null===r(23,I=v.neighbour_page_width)||void 0===I?void 0:I.value;r(31,X=e?"calc(100% + ".concat(t," - 2 * ").concat(de(e)," - 2 * ").concat(K,")"):"100%")}else if("percentage"===(null==v?void 0:v.type)){const t=null===r(24,F=v.page_width)||void 0===F?void 0:F.value;r(31,X="".concat(Number(t),"%"))}1610612736&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(9,d={"grid-gap":K,padding:Y,[u]:X}),268435456&t.$$.dirty[0]&&r(8,f={orientation:G}),167772160&t.$$.dirty[0]&&r(7,p=U||q),67108880&t.$$.dirty[0]&&function(t,e){const n=O.id;if(n){const r=new Map(m);$(g,m=r.set(n,{instId:B,size:t,currentItem:e,scrollToPagerItem:Q}),m)}}(i.length,W),67108864&t.$$.dirty[0]&&function(t){var e;if(t===H)return;H=t;const n=R.getJsonWithVars(null===(e=i[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&R.execAnyActions(n)}(W)},r(6,g=R.getStore("pagers")),x(),x=h(g,(t=>r(40,m=t))),[O,M,T,z,i,J,g,p,f,d,c,l,s,a,o,w,function(t){r(0,O=Object.assign(Object.assign({},O),{items:t}))},Z,D,P,j,S,N,I,F,U,W,q,G,K,Y,X,u,v,y,_,b,function(t){vt[t?"unshift":"push"]((()=>{J=t,r(5,J)}))}]}const wo={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_placement_stretch:"divkit-b6bd3"};function xo(t,e,n){const r=t.slice();r[43]=e[n],r[46]=n;const i=r[46]===r[12].currentItem;return r[44]=i,r}function ko(t){let e,n=Rt(Array(t[12].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=Eo(xo(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=J()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=J()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);F(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Rt(Array(t[12].size)),o=0;o<n.length;o+=1){const a=xo(t,n,o);r[o]?r[o].p(a,i):(r[o]=Eo(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&O(e),M(r,t)}}}function Eo(t){let e,n,r,i,o,a,l,c;function u(){return t[36](t[46])}return{c(){e=T("div"),this.h()},l(t){e=Y(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=De("indicator__item",wo,{active:t[44]})+" "+ie.root__clickable),U(e,"role","tab"),U(e,"id",r=t[12].instId+"-tab-"+t[46]),U(e,"aria-controls",i=t[12].instId+"-panel-"+t[46]),U(e,"aria-selected",o=t[44]?"true":"false"),U(e,"tabindex",a=t[44]?0:-1)},m(n,r){F(n,e,r),l||(c=[L(e,"click",u),L(e,"keydown",t[24])],l=!0)},p(s,l){t=s,4096&l[0]&&n!==(n=De("indicator__item",wo,{active:t[44]})+" "+ie.root__clickable)&&U(e,"class",n),4096&l[0]&&r!==(r=t[12].instId+"-tab-"+t[46])&&U(e,"id",r),4096&l[0]&&i!==(i=t[12].instId+"-panel-"+t[46])&&U(e,"aria-controls",i),4096&l[0]&&o!==(o=t[44]?"true":"false")&&U(e,"aria-selected",o),4096&l[0]&&a!==(a=t[44]?0:-1)&&U(e,"tabindex",a)},d(t){t&&O(e),l=!1,s(c)}}}function Co(t){let e,n,r,i,o=t[12]&&ko(t);return{c(){e=T("div"),n=T("div"),o&&o.c(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var r=q(e);n=Y(r,"DIV",{class:!0,role:!0});var i=q(n);o&&o.l(i),i.forEach(O),r.forEach(O),this.h()},h(){U(n,"class",r=wo.indicator__items),U(n,"role","tablist"),et(n,"margin","default"===t[6]?"0 ".concat(ue(Math.max(0,t[4].width-t[5].width)/2)):""),et(n,"--divkit-indicator-inactive-width",ue(t[5].width)),et(n,"--divkit-indicator-inactive-height",ue(t[5].height)),et(n,"--divkit-indicator-inactive-border-radius",ue(t[5].borderRadius)),et(n,"--divkit-indicator-inactive-background",t[5].background||""),et(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),et(n,"--divkit-indicator-active-width",ue(t[4].width)),et(n,"--divkit-indicator-active-height",ue(t[4].height)),et(n,"--divkit-indicator-active-border-radius",ue(t[4].borderRadius)),et(n,"--divkit-indicator-active-background",t[4].background||""),et(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),et(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),et(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(ue((t[7]-t[5].width)/2)):""),et(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?ue(t[9]):""),et(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),et(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?ue((t[8]-1)*t[9]):""),U(e,"class",i=wo.indicator__scroller)},m(r,i){F(r,e,i),I(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=ko(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&et(n,"margin","default"===t[6]?"0 ".concat(ue(Math.max(0,t[4].width-t[5].width)/2)):""),32&e[0]&&et(n,"--divkit-indicator-inactive-width",ue(t[5].width)),32&e[0]&&et(n,"--divkit-indicator-inactive-height",ue(t[5].height)),32&e[0]&&et(n,"--divkit-indicator-inactive-border-radius",ue(t[5].borderRadius)),32&e[0]&&et(n,"--divkit-indicator-inactive-background",t[5].background||""),32&e[0]&&et(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),16&e[0]&&et(n,"--divkit-indicator-active-width",ue(t[4].width)),16&e[0]&&et(n,"--divkit-indicator-active-height",ue(t[4].height)),16&e[0]&&et(n,"--divkit-indicator-active-border-radius",ue(t[4].borderRadius)),16&e[0]&&et(n,"--divkit-indicator-active-background",t[4].background||""),16&e[0]&&et(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),48&e[0]&&et(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),224&e[0]&&et(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(ue((t[7]-t[5].width)/2)):""),576&e[0]&&et(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?ue(t[9]):""),320&e[0]&&et(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),832&e[0]&&et(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?ue((t[8]-1)*t[9]):"")},d(n){n&&O(e),o&&o.d(),t[37](null),t[38](null)}}}function Ao(t){let e,n;return e=new yn({props:{cls:De("indicator",wo,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Co]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=De("indicator",wo,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Vo(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y,$,_,b,w,x,k=n,E=n,C=n,A=n,V=n,D=n,P=n,j=n,S=n;var N,I;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S()));let{json:F={}}=e,{templateContext:O}=e,{origJson:M}=e,{layoutParams:T}=e;const z=["rounded_rectangle","circle"],R=pt(oe);let B,J,L,U={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},W={width:10,height:10,borderRadius:5,background:"#33919cb5"},H="default",q=15,G=10,K=5;function Y(t){t!==L.currentItem&&L.scrollToPagerItem(t)}async function X(t){L.scrollToPagerItem(t),await xt();const e=J.querySelector(".".concat(wo.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&r(0,F=t.json),"templateContext"in t&&r(1,O=t.templateContext),"origJson"in t&&r(2,M=t.origJson),"layoutParams"in t&&r(3,T=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(22,i=R.getDerivedFromVars(F.shape)),D(),D=h(i,(t=>r(32,_=t)))),1&t.$$.dirty[0]&&(r(21,o=R.getDerivedFromVars(F.active_item_color)),A(),A=h(o,(t=>r(30,y=t)))),1&t.$$.dirty[0]&&(r(20,a=R.getDerivedFromVars(F.inactive_item_color)),V(),V=h(a,(t=>r(31,$=t)))),1&t.$$.dirty[0]&&(r(19,s=R.getDerivedFromVars(F.active_item_size)),P(),P=h(s,(t=>r(33,b=t)))),1&t.$$.dirty[0]&&(r(18,l=R.getDerivedFromVars(F.active_shape)),S(),S=h(l,(t=>r(35,x=t)))),1&t.$$.dirty[0]&&(r(17,c=R.getDerivedFromVars(F.inactive_shape)),j(),j=h(c,(t=>r(34,w=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(x&&r(4,U=Gn({type:"shape_drawable",shape:x},z,U)),w&&r(5,W=Gn({type:"shape_drawable",shape:w},z,W)),!x&&!w&&_)){const t=_n(b,1.3);r(5,W=Gn({type:"shape_drawable",shape:_,color:W.background},z,W)),r(5,W.background=fe($,1,W.background),W),r(4,U=Object.assign(Object.assign({},W),{width:W.width*t,height:W.height*t,borderRadius:W.borderRadius*t,background:U.background})),r(4,U.background=fe(y,1,U.background),U)}if(1&t.$$.dirty[0]&&(r(16,u=R.getDerivedFromVars(F.space_between_centers)),E(),E=h(u,(t=>r(28,m=t)))),1&t.$$.dirty[0]&&(r(15,d=R.getDerivedFromVars(F.items_placement)),C(),C=h(d,(t=>r(29,v=t)))),905970624&t.$$.dirty[0])if(!v||"default"!==v.type&&"stretch"!==v.type)r(6,H="default"),m&&r(7,q=Fe(m.value,q));else if(r(6,H=v.type),"default"===H)r(7,q=Fe(null===r(25,N=v.space_between_centers)||void 0===N?void 0:N.value,q));else if("stretch"===H){const t=v;r(8,G=_n(t.max_visible_items,G)),r(9,K=Fe(null===r(26,I=t.item_spacing)||void 0===I?void 0:I.value,K))}134217728&t.$$.dirty[0]&&async function(t){if(F.pager_id&&t.has(F.pager_id)&&(r(12,L=t.get(F.pager_id)),await xt(),J)){const t=J.children[L.currentItem].offsetLeft;B.scroll({left:t-B.clientWidth/2,behavior:"smooth"})}}(g),64&t.$$.dirty[0]&&r(13,p={placement:H})},r(14,f=R.getStore("pagers")),k(),k=h(f,(t=>r(27,g=t))),[F,O,M,T,U,W,H,q,G,K,B,J,L,p,f,d,u,c,l,s,a,o,i,Y,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=L;if(t.which===ai)X(n-1<0?n:n-1);else if(t.which===si)X(n+1>=e?n:n+1);else if(t.which===li)X(0);else{if(t.which!==ci)return;X(e-1)}t.preventDefault()},N,I,g,m,v,y,$,_,b,w,x,t=>Y(t),function(t){vt[t?"unshift":"push"]((()=>{J=t,r(11,J)}))},function(t){vt[t?"unshift":"push"]((()=>{B=t,r(10,B)}))}]}const Do={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",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 Po(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&fe(t.text_color)||"#000",i=bn(t.font_weight);if(Qe(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:ue(t.font_size),fontWeight:i,textColor:r};return"number"==typeof(null==n||null===(o=n.x)||void 0===o?void 0:o.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 jo(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const So="function"==typeof BigInt;function No(t){return So?BigInt(t):Number(t)}const Io=No("9223372036854775807"),Fo=No("-9223372036854775808");function Oo(t){const e=No(t);if(e>Io||e<Fo)throw new Error("Integer overflow.");return e}const Mo=Oo(0);function To(t){let e=t;return e<0&&(e=-e),e}function zo(t){let e=0;return t>0?e=1:t<0&&(e=-1),Oo(e)}class Ro{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=ne(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}}const Bo={string:class extends Ro{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends Ro{convertValue(t){if("number"!=typeof t||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"}},integer:class extends Ro{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>Io||t<Fo)throw new Error("Incorrect variable value");return Oo(t)}fromString(t){const e=Oo(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends Ro{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"}},color:class extends Ro{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"}},url:class extends Ro{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}},dict:class extends Ro{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"}}};function Jo(t,e,n){if(!(e in Bo))throw new Error("Unsupported variable type");return new Bo[e](t,n)}function Lo(t,e,n){const r=t.slice();return r[78]=e[n],r}function Uo(t,e,n){const r=t.slice();return r[78]=e[n],r}function Wo(t){let e,n;return e=new yn({props:{cls:De("slider",Do,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Yo]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=De("slider",Do,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Ho(t){let e,n;return{c(){e=T("div"),this.h()},l(t){e=Y(t,"DIV",{class:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=Do.slider__tick+" "+Do.slider__tick_active),et(e,"--divkit-slider-tick",t[78])},m(t,n){F(t,e,n)},p(t,n){131072&n[0]&&et(e,"--divkit-slider-tick",t[78])},d(t){t&&O(e)}}}function qo(t){let e,n;return{c(){e=T("div"),this.h()},l(t){e=Y(t,"DIV",{class:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=Do.slider__tick+" "+Do.slider__tick_inactive),et(e,"--divkit-slider-tick",t[78])},m(t,n){F(t,e,n)},p(t,n){262144&n[0]&&et(e,"--divkit-slider-tick",t[78])},d(t){t&&O(e)}}}function Go(t){let e,n,r,i,o;return{c(){e=T("div"),n=T("div"),r=R(t[6]),this.h()},l(i){e=Y(i,"DIV",{class:!0});var o=q(e);n=Y(o,"DIV",{class:!0});var a=q(n);r=Z(a,t[6]),a.forEach(O),o.forEach(O),this.h()},h(){var r,a,s;U(n,"class",i=Do["slider__thumb-text-inner"]),et(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em"),et(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||""),et(n,"color",(null===(s=t[12])||void 0===s?void 0:s.textColor)||"#000"),U(e,"class",o=Do["slider__thumb-text"])},m(t,i){F(t,e,i),I(e,n),I(n,r)},p(t,e){var i,o,a;64&e[0]&&tt(r,t[6]),4096&e[0]&&et(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em"),4096&e[0]&&et(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||""),4096&e[0]&&et(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&O(e)}}}function Ko(t){let e,n,r,i,o;return{c(){e=T("div"),n=T("div"),r=R(t[7]),this.h()},l(i){e=Y(i,"DIV",{class:!0});var o=q(e);n=Y(o,"DIV",{class:!0});var a=q(n);r=Z(a,t[7]),a.forEach(O),o.forEach(O),this.h()},h(){var r,a,s;U(n,"class",i=Do["slider__thumb-text-inner"]),et(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em"),et(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||""),et(n,"color",(null===(s=t[13])||void 0===s?void 0:s.textColor)||"#000"),U(e,"class",o=Do["slider__thumb-text"]+" "+Do["slider__thumb-text_secondary"])},m(t,i){F(t,e,i),I(e,n),I(n,r)},p(t,e){var i,o,a;128&e[0]&&tt(r,t[7]),8192&e[0]&&et(n,"font-size",(null===(i=t[13])||void 0===i?void 0:i.fontSize)||"1em"),8192&e[0]&&et(n,"font-weight",(null===(o=t[13])||void 0===o?void 0:o.fontWeight)||""),8192&e[0]&&et(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&O(e)}}}function Yo(t){let e,n,r,i,o,a,l,c,u,d,h,f,p,g,m,v,y,$,_,b,w,x,k=Rt(t[17]),E=[];for(let e=0;e<k.length;e+=1)E[e]=Ho(Uo(t,k,e));let C=Rt(t[18]),A=[];for(let e=0;e<C.length;e+=1)A[e]=qo(Lo(t,C,e));let V=t[12]&&Go(t),D=t[37]&&function(t){let e,n,r=t[13]&&Ko(t);return{c(){e=T("div"),r&&r.c(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var n=q(e);r&&r.l(n),n.forEach(O),this.h()},h(){U(e,"class",n=Do.slider__thumb+" "+Do.slider__thumb_secondary),et(e,"border-radius",ue(t[9].borderRadius)),et(e,"background",t[9].background),et(e,"box-shadow",t[9].boxShadow||"")},m(t,n){F(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=Ko(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&et(e,"border-radius",ue(t[9].borderRadius)),512&n[0]&&et(e,"background",t[9].background),512&n[0]&&et(e,"box-shadow",t[9].boxShadow||"")},d(t){t&&O(e),r&&r.d()}}}(t),P=t[37]&&function(t){let e,n,r,i,o;return{c(){e=T("input"),this.h()},l(t){e=Y(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){U(e,"type","range"),U(e,"class",n=t[16]?Do.slider__input:"".concat(Do.slider__input," ").concat(Do.slider__input_secondary)),U(e,"min",t[4]),U(e,"max",t[5]),U(e,"step","1"),e.value=r=t[16]?t[6]:t[7],U(e,"aria-label",t[20])},m(n,r){F(n,e,r),i||(o=[L(e,"input",t[68]),L(e,"mousedown",t[37]?t[40]:null),L(e,"touchstart",t[37]?t[40]:null)],i=!0)},p(t,i){65536&i[0]&&n!==(n=t[16]?Do.slider__input:"".concat(Do.slider__input," ").concat(Do.slider__input_secondary))&&U(e,"class",n),16&i[0]&&U(e,"min",t[4]),32&i[0]&&U(e,"max",t[5]),65728&i[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&i[0]&&U(e,"aria-label",t[20])},d(t){t&&O(e),i=!1,s(o)}}}(t);return{c(){e=T("div"),n=T("div"),r=T("div"),o=B(),a=T("div"),c=B();for(let t=0;t<E.length;t+=1)E[t].c();u=B();for(let t=0;t<A.length;t+=1)A[t].c();d=B(),h=T("div"),V&&V.c(),p=B(),D&&D.c(),g=B(),m=T("input"),$=B(),P&&P.c(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var i=q(e);n=Y(i,"DIV",{class:!0});var s=q(n);r=Y(s,"DIV",{class:!0}),q(r).forEach(O),o=Q(s),a=Y(s,"DIV",{class:!0}),q(a).forEach(O),c=Q(s);for(let t=0;t<E.length;t+=1)E[t].l(s);u=Q(s);for(let t=0;t<A.length;t+=1)A[t].l(s);d=Q(s),h=Y(s,"DIV",{class:!0});var l=q(h);V&&V.l(l),l.forEach(O),p=Q(s),D&&D.l(s),g=Q(s),m=Y(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),$=Q(s),P&&P.l(s),s.forEach(O),i.forEach(O),this.h()},h(){U(r,"class",i=Do.slider__track),et(r,"height",ue(t[10].height)),et(r,"border-radius",ue(t[10].borderRadius)),et(r,"background",t[10].background),et(r,"box-shadow",t[10].boxShadow||""),U(a,"class",l=Do["slider__active-track"]),et(a,"left",(100*t[23]).toFixed(2)+"%"),et(a,"width",(100*t[24]).toFixed(2)+"%"),et(a,"height",ue(t[11].height)),et(a,"border-radius",ue(t[11].borderRadius)),et(a,"background",t[11].background),et(a,"box-shadow",t[11].boxShadow||""),U(h,"class",f=Do.slider__thumb),et(h,"border-radius",ue(t[8].borderRadius)),et(h,"background",t[8].background),et(h,"box-shadow",t[8].boxShadow||""),U(m,"type","range"),U(m,"class",v=t[16]?"".concat(Do.slider__input," ").concat(Do.slider__input_secondary):Do.slider__input),U(m,"min",t[4]),U(m,"max",t[5]),U(m,"step","1"),m.value=y=t[16]?t[7]:t[6],U(m,"aria-label",t[19]),U(n,"class",_=Do["slider__tracks-inner"]),U(e,"class",b=Do["slider__tracks-wrapper"])},m(i,s){F(i,e,s),I(e,n),I(n,r),I(n,o),I(n,a),I(n,c);for(let t=0;t<E.length;t+=1)E[t]&&E[t].m(n,null);I(n,u);for(let t=0;t<A.length;t+=1)A[t]&&A[t].m(n,null);I(n,d),I(n,h),V&&V.m(h,null),I(n,p),D&&D.m(n,null),I(n,g),I(n,m),I(n,$),P&&P.m(n,null),t[69](n),w||(x=L(m,"input",t[67]),w=!0)},p(t,e){if(1024&e[0]&&et(r,"height",ue(t[10].height)),1024&e[0]&&et(r,"border-radius",ue(t[10].borderRadius)),1024&e[0]&&et(r,"background",t[10].background),1024&e[0]&&et(r,"box-shadow",t[10].boxShadow||""),8388608&e[0]&&et(a,"left",(100*t[23]).toFixed(2)+"%"),16777216&e[0]&&et(a,"width",(100*t[24]).toFixed(2)+"%"),2048&e[0]&&et(a,"height",ue(t[11].height)),2048&e[0]&&et(a,"border-radius",ue(t[11].borderRadius)),2048&e[0]&&et(a,"background",t[11].background),2048&e[0]&&et(a,"box-shadow",t[11].boxShadow||""),131072&e[0]){let r;for(k=Rt(t[17]),r=0;r<k.length;r+=1){const i=Uo(t,k,r);E[r]?E[r].p(i,e):(E[r]=Ho(i),E[r].c(),E[r].m(n,u))}for(;r<E.length;r+=1)E[r].d(1);E.length=k.length}if(262144&e[0]){let r;for(C=Rt(t[18]),r=0;r<C.length;r+=1){const i=Lo(t,C,r);A[r]?A[r].p(i,e):(A[r]=qo(i),A[r].c(),A[r].m(n,d))}for(;r<A.length;r+=1)A[r].d(1);A.length=C.length}t[12]?V?V.p(t,e):(V=Go(t),V.c(),V.m(h,null)):V&&(V.d(1),V=null),256&e[0]&&et(h,"border-radius",ue(t[8].borderRadius)),256&e[0]&&et(h,"background",t[8].background),256&e[0]&&et(h,"box-shadow",t[8].boxShadow||""),t[37]&&D.p(t,e),65536&e[0]&&v!==(v=t[16]?"".concat(Do.slider__input," ").concat(Do.slider__input_secondary):Do.slider__input)&&U(m,"class",v),16&e[0]&&U(m,"min",t[4]),32&e[0]&&U(m,"max",t[5]),65728&e[0]&&y!==(y=t[16]?t[7]:t[6])&&(m.value=y),524288&e[0]&&U(m,"aria-label",t[19]),t[37]&&P.p(t,e)},d(n){n&&O(e),M(E,n),M(A,n),V&&V.d(),D&&D.d(),P&&P.d(),t[69](null),w=!1,x()}}}function Xo(t){let e,n,r,i,o=!t[14]&&Wo(t);return{c(){o&&o.c(),e=J()},l(t){o&&o.l(t),e=J()},m(a,s){o&&o.m(a,s),F(a,e,s),n=!0,r||(i=L(window,"resize",t[42]),r=!0)},p(t,n){t[14]?o&&(It(),Mt(o,1,1,(()=>{o=null})),Ft()):o?(o.p(t,n),16384&n[0]&&Ot(o,1)):(o=Wo(t),o.c(),Ot(o,1),o.m(e.parentNode,e))},i(t){n||(Ot(o),n=!0)},o(t){Mt(o),n=!1},d(t){t&&O(e),o&&o.d(t),r=!1,i()}}}function Zo(t,e,n,r,i){let o=[];if(i)for(let i=t;i<e;++i)o.push((i-n)/(r-n));else{for(let e=n;e<t;++e)o.push((e-n)/(r-n));for(let t=e;t<r+1;++t)o.push((t-n)/(r-n))}return o}function Qo(t,e,r){let i,o,a,s,l,c,u,d,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,N,I,F,O,M,T,z,R=n,B=n,J=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,Y=n,X=n;var Z,Q,tt,et;t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),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((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X()));let{json:nt={}}=e,{templateContext:rt}=e,{origJson:it}=e,{layoutParams:ot}=e;const at={width:10,height:10,borderRadius:5,background:"#000"},st=["rounded_rectangle","circle"],lt=["rounded_rectangle"],ct=pt(oe),ut=pt(We);let ht,ft=!1,gt=0,mt=100;const yt=nt.thumb_value_variable,$t=nt.thumb_secondary_value_variable;let _t=yt&&ct.getVariable(yt,"integer")||Jo("temp","integer",0);f(t,_t,(t=>r(64,M=t)));let bt=$t&&ct.getVariable($t,"integer")||Jo("temp","integer",0);f(t,bt,(t=>r(63,O=t)));let wt,xt,kt,Et=jo(M||0,gt,mt),Ct=jo(O||0,gt,mt),At=at,Vt=At,Dt=at,Pt=at,jt=null,St=null,Nt=kt,It="",Ft="",Ot=!1;function Mt(t,e){const n=Number(t.target.value);ft===("first"===e)?(r(7,Ct=n),bt.setValue(n)):(r(6,Et=n),_t.setValue(n))}let Tt=!1;function zt(){if(!ht)return;const t=mt-gt,e=(null==jt?void 0:jt.width)||0,n=(null==St?void 0:St.width)||0;Math.max(e,n)*t>=(null==ht?void 0:ht.clientWidth)?Tt||(ct.logError(ae(new Error("Slider ticks overlap each other"),{level:"warn"})),Tt=!0):Tt=!1}const Rt=Wr(zt,50);return dt((()=>{zt()})),t.$$set=t=>{"json"in t&&r(0,nt=t.json),"templateContext"in t&&r(1,rt=t.templateContext),"origJson"in t&&r(2,it=t.origJson),"layoutParams"in t&&r(3,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(36,i=ct.getDerivedFromVars(nt.min_value)),X(),X=h(i,(t=>r(66,z=t)))),1&t.$$.dirty[0]&&(r(35,o=ct.getDerivedFromVars(nt.max_value)),Y(),Y=h(o,(t=>r(65,T=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(r(4,gt=Re(z,gt)),r(5,mt=Re(T,mt)),zt()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=jo(M||0,gt,mt);t!==Et&&r(6,Et=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=jo(O||0,gt,mt);t!==Ct&&r(7,Ct=t)}if(1&t.$$.dirty[0]&&(r(34,a=ct.getDerivedFromVars(nt.thumb_style)),K(),K=h(a,(t=>r(62,F=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(8,At=Gn(F,st,At)),1&t.$$.dirty[0]&&(r(33,s=ct.getDerivedFromVars(nt.thumb_secondary_style)),G(),G=h(s,(t=>r(61,I=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(9,Vt=Gn(I,st,At)),1&t.$$.dirty[0]&&(r(32,l=ct.getDerivedFromVars(nt.track_inactive_style)),q(),q=h(l,(t=>r(60,N=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(10,Dt=Gn(N,lt,Dt)),1&t.$$.dirty[0]&&(r(31,c=ct.getDerivedFromVars(nt.track_active_style)),H(),H=h(c,(t=>r(59,S=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,Pt=Gn(S,lt,Pt)),1&t.$$.dirty[0]&&(r(30,u=ct.getDerivedFromVars(nt.tick_mark_active_style)),W(),W=h(u,(t=>r(58,j=t)))),134217728&t.$$.dirty[1]){let t=Gn(j,st,at);t!==at&&r(47,jt=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(jt?(r(17,wt=$t?Zo(Math.min(Et,Ct),Math.max(Et,Ct)+1,gt,mt,!0):Zo(gt,Et,gt,mt,!0)),zt()):r(17,wt=[])),1&t.$$.dirty[0]&&(r(29,d=ct.getDerivedFromVars(nt.tick_mark_inactive_style)),U(),U=h(d,(t=>r(57,P=t)))),67108864&t.$$.dirty[1]){let t=Gn(P,st,at);t!==at&&r(48,St=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(St?(r(18,xt=$t?Zo(Math.min(Et,Ct),Math.max(Et,Ct)+1,gt,mt,!1):Zo(Et+1,mt+1,gt,mt,!0)),zt()):r(18,xt=[])),1&t.$$.dirty[0]&&(r(28,p=ct.getDerivedFromVars(nt.thumb_text_style)),L(),L=h(p,(t=>r(56,D=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,kt=Po(D,kt)),1&t.$$.dirty[0]&&(r(27,g=ct.getDerivedFromVars(nt.thumb_secondary_text_style)),J(),J=h(g,(t=>r(55,V=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(13,Nt=Po(V,kt)),1&t.$$.dirty[0]&&(r(26,m=ct.getDerivedFromVars(nt.accessibility)),B(),B=h(m,(t=>r(54,A=t)))),8388608&t.$$.dirty[1]&&((null==A?void 0:A.description)?r(19,It=A.description):ct.logError(ae(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(r(25,v=ct.getDerivedFromVars(nt.secondary_value_accessibility)),R(),R=h(v,(t=>r(53,C=t)))),4194304&t.$$.dirty[1]&&((null==C?void 0:C.description)?r(20,Ft=C.description):$t&&ct.logError(ae(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;ut.hasAction()?(ct.logError(ae(new Error('Cannot show "slider" inside component with action'))),t=!0):At===at?(ct.logError(ae(new Error('Missing "thumb_style" in slider'))),t=!0):Pt===at?(ct.logError(ae(new Error('Missing "track_active_style" in slider'))),t=!0):Dt===at&&(ct.logError(ae(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Ot&&r(14,Ot=t)}768&t.$$.dirty[0]&&r(52,y=ue(Math.max(...[At.width,Vt.width,0].filter(Ne)))),768&t.$$.dirty[0]&&r(51,$=ue(Math.max(...[At.height,Vt.height,0].filter(Ne)))),112&t.$$.dirty[0]&&r(50,_=(Et-gt)/(mt-gt)),176&t.$$.dirty[0]&&r(49,b=$t?(Ct-gt)/(mt-gt):void 0),786432&t.$$.dirty[1]&&r(24,w=void 0!==b?Math.abs(b-_):_),786432&t.$$.dirty[1]&&r(23,x=void 0!==b?Math.min(b,_):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&r(22,k={"--divkit-slider-thumb-width":ue(At.width),"--divkit-slider-thumb-height":ue(At.height),"--divkit-slider-thumb-secondary-width":ue(Vt.width),"--divkit-slider-thumb-secondary-height":ue(Vt.height),"--divkit-slider-text-offset-x":(null===r(43,Z=null==kt?void 0:kt.offset)||void 0===Z?void 0:Z.x)?de(kt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(44,Q=null==kt?void 0:kt.offset)||void 0===Q?void 0:Q.y)?de(kt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(45,tt=null==Nt?void 0:Nt.offset)||void 0===tt?void 0:tt.x)?de(Nt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(46,et=null==Nt?void 0:Nt.offset)||void 0===et?void 0:et.y)?de(Nt.offset.y):void 0,"--divkit-slider-tick-active-width":jt?ue(jt.width):void 0,"--divkit-slider-tick-active-height":jt?ue(jt.height):void 0,"--divkit-slider-tick-active-border-radius":jt?ue(jt.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==jt?void 0:jt.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==jt?void 0:jt.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":St?ue(St.width):void 0,"--divkit-slider-tick-inactive-height":St?ue(St.height):void 0,"--divkit-slider-tick-inactive-border-radius":St?ue(St.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-max-thumb-width":y,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":_,"--divkit-slider-track-secondary-part":b})},r(21,E={}),[nt,rt,it,ot,gt,mt,Et,Ct,At,Vt,Dt,Pt,kt,Nt,Ot,ht,ft,wt,xt,It,Ft,E,k,x,w,v,m,g,p,d,u,c,l,s,a,o,i,$t,_t,bt,function(t){var e,n;const i="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===i)return;const o=ht.getBoundingClientRect(),a=(i-o.left)/o.width,s=(mt-gt)*a,l=Math.round(jo(s,gt,mt));r(16,ft=l<(Et+Ct)/2==Et<Ct)},Mt,Rt,Z,Q,tt,et,jt,St,b,_,$,y,C,A,V,D,P,j,S,N,I,F,O,M,T,z,t=>Mt(t,"first"),t=>Mt(t,"second"),function(t){vt[t?"unshift":"push"]((()=>{ht=t,r(15,ht)}))}]}const ta={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_right":"divkit-e8038",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_top":"divkit-bdccd","input_alignment-vertical_bottom":"divkit-fc670","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 ea(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=ea(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const i=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-i>=n&&t[r-i]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-i}}function na(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 ra{constructor(t){this.char=t}}class ia{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class oa{constructor(t){na(this,"filters",new Map),na(this,"destructedValue",[]),na(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 ra)t+=n.char;else if(n instanceof ia)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 ia&&!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(ae(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 ia(null,this.filters.get(e.key),e.placeholder):new ra(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=ea(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),i=this.buildTailSubstring(n);this.cleanup(n);const o=this.firstEmptyHolderIndex(),a=this.calculateMaxShift(i,o);this.replaceChars(r,o,a);const s=this.firstEmptyHolderIndex();this.replaceChars(i,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 ia&&++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 ia&&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 ia&&(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 i=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof ia);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=i();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 ia&&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 i=e,o=0;for(;i<this.destructedValue.length&&o<r.length;){const t=this.destructedValue[i],e=r[o];t instanceof ia&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof ia);)++e;return e}}class aa extends oa{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function sa(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 extends oa{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}),sa(this,"currencyFormatter",new Intl.NumberFormat),sa(this,"decimalSeparator","."),sa(this,"localeDigits",{}),sa(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(ae(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=ea(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),i=t.lastIndexOf(this.decimalSeparator),o=r!==i||-1===r&&-1===i,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;o&&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 i=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(i=e.start);const o=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=o;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 i=t[r];i===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(i)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==i,l=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=l.length<=o;this.isDigit(u)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(u),a--):l.push(u):d&&-1===n&&r===i?(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 ca=3;function ua(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 da(t,e){if(t.nodeType!==ca)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,i=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,i),n.setEnd(r,i),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],i=ua(r);if(e<=i)return void da(r,e);e-=i}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 ha(t){let e,n;return e=new yn({props:{cls:De("input",ta,t[15]),style:t[14],customDescription:!0,customActions:"input",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ma,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{89:e,90:n,91:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?134217728:0)|(n?268435456:0)|(r?536870912:0)]}]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=De("input",ta,t[15])),16384&n[0]&&(r.style=t[14]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),802672&n[0]|2013265920&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function fa(t){let e,n,r,i,o;return{c(){e=T("input"),this.h()},l(t){e=Y(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){U(e,"type",t[9]),U(e,"inputmode",t[10]),U(e,"class",n=De("input__input",ta,{"has-custom-focus":t[91],singleline:!0})),U(e,"autocomplete","off"),U(e,"autocapitalize","off"),U(e,"aria-label",t[11]),U(e,"style",r=ce(t[13])),U(e,"placeholder",t[18]),e.value=t[4]},m(n,r){F(n,e,r),t[76](e),i||(o=[L(e,"input",t[37]),L(e,"mousedown",(function(){l(t[19]?t[38]:void 0)&&(t[19]?t[38]:void 0).apply(this,arguments)})),L(e,"click",(function(){l(t[19]?t[39]:void 0)&&(t[19]?t[39]:void 0).apply(this,arguments)})),L(e,"focus",(function(){l(t[89])&&t[89].apply(this,arguments)})),L(e,"blur",(function(){l(t[90])&&t[90].apply(this,arguments)}))],i=!0)},p(i,o){t=i,512&o[0]&&U(e,"type",t[9]),1024&o[0]&&U(e,"inputmode",t[10]),536870912&o[2]&&n!==(n=De("input__input",ta,{"has-custom-focus":t[91],singleline:!0}))&&U(e,"class",n),2048&o[0]&&U(e,"aria-label",t[11]),8192&o[0]&&r!==(r=ce(t[13]))&&U(e,"style",r),262144&o[0]&&U(e,"placeholder",t[18]),16&o[0]&&e.value!==t[4]&&(e.value=t[4])},d(n){n&&O(e),t[76](null),i=!1,s(o)}}}function pa(t){let e,n,r,i,o,a,c,u,d,h,f,p,g=!t[8]&&t[18]&&ga(t);return{c(){e=T("span"),g&&g.c(),n=B(),r=T("span"),i=R(""),a=B(),c=T("span"),this.h()},l(t){e=Y(t,"SPAN",{class:!0});var o=q(e);g&&g.l(o),n=Q(o),r=Y(o,"SPAN",{"aria-hidden":!0,style:!0});var s=q(r);i=Z(s,""),s.forEach(O),a=Q(o),c=Y(o,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),q(c).forEach(O),o.forEach(O),this.h()},h(){U(r,"aria-hidden","true"),U(r,"style",o=ce(t[12])),U(c,"class",u=De("input__input",ta,{"has-custom-focus":t[91],multiline:!0})),U(c,"autocapitalize","off"),U(c,"contenteditable","true"),U(c,"aria-label",t[11]),U(c,"style",d=ce(t[13])),void 0===t[8]&&kt((()=>t[75].call(c))),U(e,"class",h=ta["input__scroll-wrapper"])},m(o,s){F(o,e,s),g&&g.m(e,null),I(e,n),I(e,r),I(r,i),I(e,a),I(e,c),t[74](c),void 0!==t[8]&&(c.innerText=t[8]),f||(p=[L(c,"input",t[75]),L(c,"input",t[37]),L(c,"paste",ya),L(c,"mousedown",(function(){l(t[19]?t[38]:void 0)&&(t[19]?t[38]:void 0).apply(this,arguments)})),L(c,"click",(function(){l(t[19]?t[39]:void 0)&&(t[19]?t[39]:void 0).apply(this,arguments)})),L(c,"focus",(function(){l(t[89])&&t[89].apply(this,arguments)})),L(c,"blur",(function(){l(t[90])&&t[90].apply(this,arguments)}))],f=!0)},p(i,a){!(t=i)[8]&&t[18]?g?g.p(t,a):(g=ga(t),g.c(),g.m(e,n)):g&&(g.d(1),g=null),4096&a[0]&&o!==(o=ce(t[12]))&&U(r,"style",o),536870912&a[2]&&u!==(u=De("input__input",ta,{"has-custom-focus":t[91],multiline:!0}))&&U(c,"class",u),2048&a[0]&&U(c,"aria-label",t[11]),8192&a[0]&&d!==(d=ce(t[13]))&&U(c,"style",d),256&a[0]&&t[8]!==c.innerText&&(c.innerText=t[8])},d(n){n&&O(e),g&&g.d(),t[74](null),f=!1,s(p)}}}function ga(t){let e,n,r,i;return{c(){e=T("div"),n=R(t[18]),this.h()},l(r){e=Y(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var i=q(e);n=Z(i,t[18]),i.forEach(O),this.h()},h(){U(e,"class",r=ta.input__placeholder),U(e,"aria-hidden","true"),U(e,"style",i=ce(t[13]))},m(t,r){F(t,e,r),I(e,n)},p(t,r){262144&r[0]&&tt(n,t[18]),8192&r[0]&&i!==(i=ce(t[13]))&&U(e,"style",i)},d(t){t&&O(e)}}}function ma(t){let e;function n(t,e){return t[5]?pa:fa}let r=n(t),i=r(t);return{c(){i.c(),e=J()},l(t){i.l(t),e=J()},m(t,n){i.m(t,n),F(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&O(e),i.d(t)}}}function va(t){let e,n,r=!t[7]&&ha(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[7]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),128&n[0]&&Ot(r,1)):(r=ha(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function ya(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function $a(t,e,r){let i,o,a,s,l,c,u,d,p,g,m,v,y,_,b,w,x,k,E,C,A,V,D,P,j,S,N,I=n,F=n;var O;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F()));let{json:M={}}=e,{templateContext:T}=e,{origJson:z}=e,{layoutParams:R}=e;const B=pt(oe);let J,L=!1,U=null;const W=M.text_variable,H=null===(O=M.mask)||void 0===O?void 0:O.raw_text_variable;let q=!1;W||(q=!0,B.logError(ae(new Error('Missing "text_variable" in "input"'))));let G=W&&B.getVariable(W,"string")||Jo("temp","string","");f(t,G,(t=>r(56,p=t)));let K=H&&B.getVariable(H,"string")||Jo("temp","string","");f(t,K,(t=>r(57,g=t)));let Y="",X="";const Z=B.getDerivedFromVars(M.mask);f(t,Z,(t=>r(61,_=t)));const Q=B.getDerivedFromVars(M.hint_text);f(t,Q,(t=>r(73,S=t)));const tt=B.getDerivedFromVars(M.hint_color);f(t,tt,(t=>r(72,j=t)));let et="";const nt=B.getDerivedFromVars(M.font_size);f(t,nt,(t=>r(71,P=t)));let rt=12;const it=B.getDerivedFromVars(M.font_weight);f(t,it,(t=>r(70,D=t)));const ot=B.getDerivedFromVars(M.font_family);let at;f(t,ot,(t=>r(69,V=t)));let st="";const lt=B.getDerivedFromVars(M.line_height);let ct;f(t,lt,(t=>r(68,A=t)));const ut=B.getDerivedFromVars(M.letter_spacing);f(t,ut,(t=>r(67,C=t)));let ht="";const ft=B.getDerivedFromVars(M.text_color);f(t,ft,(t=>r(66,E=t)));let gt="#000";const mt=B.getDerivedFromVars(M.highlight_color);f(t,mt,(t=>r(65,k=t)));let yt="";const $t=B.getDerivedFromVars(M.text_alignment_horizontal);f(t,$t,(t=>r(64,x=t)));let _t="left";const bt=B.getDerivedFromVars(M.text_alignment_vertical);f(t,bt,(t=>r(63,w=t)));let wt="center";const kt=B.getDerivedFromVars(M.keyboard_type);f(t,kt,(t=>r(62,b=t)));const Et={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let Ct="multi_line_text",At="text";const Vt=document&&"inputMode"in document.createElement("input");let Dt;const Pt=B.getDerivedFromVars(M.max_visible_lines);f(t,Pt,(t=>r(60,y=t)));let jt="",St=null,Nt="",It="",Ft="";const Ot=B.getDerivedFromVars(M.select_all_on_focus);function Mt(t){J instanceof HTMLInputElement?r(6,J.selectionStart=r(6,J.selectionEnd=t,J),J):da(J,t)}async function Tt(){if(!J||!U)return;U.overrideRawValue(g),K.set(U.rawValue),$(G,p=r(4,Y=r(8,X=U.value)),p);const t=U.cursorPosition;await xt(),document.activeElement===J&&Mt(t)}return f(t,Ot,(t=>r(19,N=t))),dt((()=>{J&&U&&g&&(U.overrideRawValue(g),$(G,p=r(4,Y=r(8,X=U.value)),p))})),t.$$set=t=>{"json"in t&&r(0,M=t.json),"templateContext"in t&&r(1,T=t.templateContext),"origJson"in t&&r(2,z=t.origJson),"layoutParams"in t&&r(3,R=t.layoutParams)},t.$$.update=()=>{if(1073741824&t.$$.dirty[1]&&("fixed_length"===(null==(e=_)?void 0:e.type)?r(40,U=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 aa(r,e)}return n||null}(e,B.logError,U)):"currency"===(null==e?void 0:e.type)&&r(40,U=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new la(t.locale,e)}(e,B.logError,U)),U&&Tt()),16&t.$$.dirty[0]|33554944&t.$$.dirty[1]&&(U||Y===p||r(4,Y=r(8,X=p))),67109376&t.$$.dirty[1]&&U&&U.rawValue!==g&&Tt(),2048&t.$$.dirty[2]&&r(18,i=S),1024&t.$$.dirty[1]|1024&t.$$.dirty[2]&&r(41,et=fe(j,1,et)),2048&t.$$.dirty[1]|512&t.$$.dirty[2]&&r(42,rt=_n(P,rt)),4096&t.$$.dirty[1]|384&t.$$.dirty[2]&&(r(43,at=wn(D,at)),r(44,st=V&&"string"==typeof V?B.typefaceProvider(V,{fontWeight:at||400}):"")),2048&t.$$.dirty[1]|64&t.$$.dirty[2]){const t=A;Qe(t)&&r(45,ct=t/rt)}var e;32&t.$$.dirty[2]&&Se(C)&&r(46,ht=ue(C)),65536&t.$$.dirty[1]|16&t.$$.dirty[2]&&r(47,gt=fe(E,1,gt)),131072&t.$$.dirty[1]|8&t.$$.dirty[2]&&r(48,yt=fe(k,1,yt)),262144&t.$$.dirty[1]|4&t.$$.dirty[2]&&r(49,_t=Vn(x,_t)),524288&t.$$.dirty[1]|2&t.$$.dirty[2]&&r(50,wt=Dn(w,wt)),1073741824&t.$$.dirty[1]|1&t.$$.dirty[2]&&(b&&b in Et&&(r(9,At=Et[b]),r(51,Ct=b)),"currency"===(null==_?void 0:_.type)&&(r(9,At=Vt?"text":"tel"),r(10,Dt="decimal"))),1048576&t.$$.dirty[1]&&r(5,o="multi_line_text"===Ct),1&t.$$.dirty[0]&&(r(17,a=B.getDerivedFromVars(M.paddings)),F(),F=h(a,(t=>r(59,v=t)))),809519104&t.$$.dirty[1]&&(Qe(y)&&r(52,jt="calc(".concat(y*(ct||1.25)*(rt/10)+"em"," + ").concat(de(Fe(null==v?void 0:v.top,0)+Fe(null==v?void 0:v.bottom,0)),")")),r(53,St=Je(v||void 0,St)),r(54,Nt=St?je({top:(Number(St.top)||0)/rt*10,right:(Number(St.right)||0)/rt*10,bottom:(Number(St.bottom)||0)/rt*10,left:(Number(St.left)||0)/rt*10}):""),r(55,It=St?je({top:(Number(St.top)||0)/rt*10,bottom:(Number(St.bottom)||0)/rt*10}):"")),1&t.$$.dirty[0]&&(r(16,s=B.getDerivedFromVars(M.accessibility)),I(),I=h(s,(t=>r(58,m=t)))),134217728&t.$$.dirty[1]&&((null==m?void 0:m.description)?r(11,Ft=m.description):B.logError(ae(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|917504&t.$$.dirty[1]&&r(15,l={"highlight-color":Boolean(yt),multiline:o,"alignment-horizontal":_t,"alignment-vertical":wt}),2356224&t.$$.dirty[1]&&r(14,c={"--divkit-input-hint-color":et,"--divkit-input-highlight-color":yt,"--divkit-input-line-height":ct,"font-weight":at,"font-family":st,"letter-spacing":ht,color:gt,"max-height":jt}),8390656&t.$$.dirty[1]&&r(13,u={"font-size":ue(rt),padding:Nt}),16779264&t.$$.dirty[1]&&r(12,d={"font-size":ue(rt),padding:It})},[M,T,z,R,Y,o,J,q,X,At,Dt,Ft,d,u,c,l,s,a,i,N,G,K,Z,Q,tt,nt,it,ot,lt,ut,ft,mt,$t,bt,kt,Pt,Ot,function(t){let e=(o?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Y!==e&&(r(4,Y=r(8,X=e)),G.setValue(e),U&&async function(){if(!J||!U)return;U.applyChangeFrom(Y,J instanceof HTMLInputElement?null===J.selectionEnd?void 0:J.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const i=r.getRangeAt(0);let o;if(i){if(!i.collapsed)return 0;n+=i.endOffset,o=i.endContainer}if(o instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,o.childNodes.length);e<r;++e)t+=ua(o.childNodes[e]);n=t}for(;o&&o!==t;){var e;const t=o.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(o);for(let e=0;e<r;++e)n+=ua(t.childNodes[e]);o instanceof HTMLElement&&("DIV"===o.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===ca||"BR"===o.tagName)&&++n,o=t}return n}catch(t){return 0}}(J)),K.set(U.rawValue),$(G,p=r(4,Y=r(8,X=U.value)),p);const t=U.cursorPosition;await xt(),document.activeElement===J&&Mt(t)}())},function(){L=!1,setTimeout((()=>{L=!0}),250)},function(){if(!L)if(J instanceof HTMLInputElement)J.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(J),t&&(t.removeAllRanges(),t.addRange(e))}},U,et,rt,at,st,ct,ht,gt,yt,_t,wt,Ct,jt,St,Nt,It,p,g,m,v,y,_,b,w,x,k,E,C,A,V,D,P,j,S,function(t){vt[t?"unshift":"push"]((()=>{J=t,r(6,J)}))},function(){X=this.innerText,r(8,X),r(40,U),r(4,Y),r(56,p)},function(t){vt[t?"unshift":"push"]((()=>{J=t,r(6,J)}))}]}const _a={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 ba(t,e,n){const r=t.slice();return r[52]=e[n],r}function wa(t){let e,n;return e=new yn({props:{cls:De("select",_a,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ka,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{49:e,50:n,51:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?262144:0)|(n?524288:0)|(r?1048576:0)]}]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=De("select",_a,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),9136&n[0]|18612224&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function xa(t){let e,r,i,o,a=(t[52].text||t[52].value)+"";return{c(){e=T("option"),r=R(a),this.h()},l(t){e=Y(t,"OPTION",{class:!0});var n=q(e);r=Z(n,a),n.forEach(O),this.h()},h(){var n,r;U(e,"class",i=_a.select__option),e.__value=o=t[52].value,n=e,r=e.__value,n.value=null==r?"":r},m(t,n){F(t,e,n),I(e,r)},p:n,d(t){t&&O(e)}}}function ka(t){let e,n,r,i,o,a,c,u,d,h,f=(t[4]||t[13]||"")+"",p=Rt(t[16]),g=[];for(let e=0;e<p.length;e+=1)g[e]=xa(ba(t,p,e));return{c(){e=T("span"),n=R(f),o=B(),a=T("select");for(let t=0;t<g.length;t+=1)g[t].c();this.h()},l(t){e=Y(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=q(e);n=Z(r,f),r.forEach(O),o=Q(t),a=Y(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var i=q(a);for(let t=0;t<g.length;t+=1)g[t].l(i);i.forEach(O),this.h()},h(){U(e,"class",r=_a["select__select-text"]),U(e,"style",i=ce(t[9])),U(e,"aria-hidden","true"),U(a,"class",c=De("select__select",_a,{"has-custom-focus":t[49]})),U(a,"aria-label",t[7]),U(a,"style",u=ce(t[8])),void 0===t[5]&&kt((()=>t[44].call(a)))},m(r,i){F(r,e,i),I(e,n),F(r,o,i),F(r,a,i);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);nt(a,t[5],!0),d||(h=[L(a,"change",t[44]),L(a,"focus",(function(){l(t[50])&&t[50].apply(this,arguments)})),L(a,"blur",(function(){l(t[51])&&t[51].apply(this,arguments)}))],d=!0)},p(r,o){if(t=r,8208&o[0]&&f!==(f=(t[4]||t[13]||"")+"")&&tt(n,f),512&o[0]&&i!==(i=ce(t[9]))&&U(e,"style",i),65536&o[0]){let e;for(p=Rt(t[16]),e=0;e<p.length;e+=1){const n=ba(t,p,e);g[e]?g[e].p(n,o):(g[e]=xa(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=p.length}262144&o[1]&&c!==(c=De("select__select",_a,{"has-custom-focus":t[49]}))&&U(a,"class",c),128&o[0]&&U(a,"aria-label",t[7]),256&o[0]&&u!==(u=ce(t[8]))&&U(a,"style",u),65568&o[0]&&nt(a,t[5])},d(t){t&&(O(e),O(o),O(a)),M(g,t),d=!1,s(h)}}}function Ea(t){let e,n,r=!t[6]&&wa(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[6]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),64&n[0]&&Ot(r,1)):(r=wa(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function Ca(t,e,r){let i,o,a,s,l,c,u,d,p,g,m,v,y,$,_,b,w,x,k=n,E=n;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:C={}}=e,{templateContext:A}=e,{origJson:V}=e,{layoutParams:D}=e;const P=pt(oe),j=C.value_variable;let S=!1;j||(S=!0,P.logError(ae(new Error('Missing "value_variable" in "select"'))));let N=j&&P.getVariable(j,"string")||Jo("temp","string","");f(t,N,(t=>r(5,x=t)));let I="";const F=C.options,O=Array.isArray(F)&&F.filter((t=>"string"==typeof t.value))||[];Array.isArray(O)&&O.length||P.logError(ae(new Error('Empty selection "items" in "select"')));let M="",T=null,z="";const R=P.getDerivedFromVars(C.hint_text);f(t,R,(t=>r(42,b=t)));const B=P.getDerivedFromVars(C.hint_color);f(t,B,(t=>r(41,_=t)));let J="rgba(0,0,0,.45)";const L=P.getDerivedFromVars(C.font_size);f(t,L,(t=>r(40,$=t)));let U=12;const W=P.getDerivedFromVars(C.font_weight);f(t,W,(t=>r(39,y=t)));const H=P.getDerivedFromVars(C.font_family);let q;f(t,H,(t=>r(38,v=t)));let G="";const K=P.getDerivedFromVars(C.line_height);let Y;f(t,K,(t=>r(37,m=t)));const X=P.getDerivedFromVars(C.letter_spacing);f(t,X,(t=>r(36,g=t)));let Z="";const Q=P.getDerivedFromVars(C.text_color);f(t,Q,(t=>r(35,p=t)));let tt="#000",et="";return t.$$set=t=>{"json"in t&&r(0,C=t.json),"templateContext"in t&&r(1,A=t.templateContext),"origJson"in t&&r(2,V=t.origJson),"layoutParams"in t&&r(3,D=t.layoutParams)},t.$$.update=()=>{if(32&t.$$.dirty[0]&&(I=x),32&t.$$.dirty[0]){const t=O.find((t=>t.value===x));t?r(4,M="string"==typeof t.text?t.text:t.value):(r(4,M=""),x&&P.logError(ae(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1&t.$$.dirty[0]&&(r(14,i=P.getDerivedFromVars(C.paddings)),E(),E=h(i,(t=>r(43,w=t)))),268435456&t.$$.dirty[0]|512&t.$$.dirty[1]&&r(28,U=_n($,U)),301989888&t.$$.dirty[0]|4096&t.$$.dirty[1]&&(r(25,T=Je(w||void 0,T)),r(26,z=T?je({top:(Number(T.top)||0)/U*10,right:(Number(T.right)||0)/U*10,bottom:(Number(T.bottom)||0)/U*10,left:(Number(T.left)||0)/U*10}):"")),2048&t.$$.dirty[1]&&r(13,o=b),134217728&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(27,J=fe(_,1,J)),536870912&t.$$.dirty[0]|384&t.$$.dirty[1]&&(r(29,q=wn(y,q)),r(30,G=v&&"string"==typeof v?P.typefaceProvider(v,{fontWeight:q||400}):"")),268435456&t.$$.dirty[0]|64&t.$$.dirty[1]){const t=m;Qe(t)&&r(31,Y=t/U)}268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&Se(g)&&r(32,Z=ue(g/U*10)),20&t.$$.dirty[1]&&r(33,tt=fe(p,1,tt)),1&t.$$.dirty[0]&&(r(12,a=P.getDerivedFromVars(C.accessibility)),k(),k=h(a,(t=>r(34,d=t)))),8&t.$$.dirty[1]&&((null==d?void 0:d.description)?r(7,et=d.description):P.logError(ae(new Error('Missing accessibility "description" for select'),{level:"warn"}))),16&t.$$.dirty[0]&&r(11,s={hint:!M}),1744830464&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(10,l={"--divkit-input-hint-color":J,"font-weight":q,"font-family":G,color:tt}),335544320&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(9,c={padding:z,"font-size":ue(U),"line-height":Y,"letter-spacing":Z}),268435456&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(8,u={"font-size":ue(U),"line-height":Y,"letter-spacing":Z})},[C,A,V,D,M,x,S,et,u,c,l,s,a,o,i,N,O,R,B,L,W,H,K,X,Q,T,z,J,U,q,G,Y,Z,tt,d,p,g,m,v,y,$,_,b,w,function(){x=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),N.set(x),r(16,O)}]}const Aa={video__video:"divkit-c11f9"};function Va(t,e,n){const r=t.slice();return r[32]=e[n],r}function Da(t){let e,n;return e=new yn({props:{cls:Aa.video,customActions:"video",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ja]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1520&n[0]|16&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Pa(t){let e,n,r,i,o;return{c(){e=T("source"),this.h()},l(t){e=Y(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[32].src)||U(e,"src",n),U(e,"type",r=t[32].type)},m(n,r){F(n,e,r),i||(o=L(e,"error",t[21]),i=!0)},p(t,i){16&i[0]&&!u(e.src,n=t[32].src)&&U(e,"src",n),16&i[0]&&r!==(r=t[32].type)&&U(e,"type",r)},d(t){t&&O(e),i=!1,o()}}}function ja(t){let e,n,r,i,o=Rt(t[4]),a=[];for(let e=0;e<o.length;e+=1)a[e]=Pa(Va(t,o,e));return{c(){e=T("video");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=Y(t,"VIDEO",{class:!0,poster:!0});var n=q(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(O),this.h()},h(){U(e,"class",n=Aa.video__video),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],U(e,"poster",t[8])},m(n,o){F(n,e,o);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null);t[27](e),r||(i=[L(e,"timeupdate",t[16]),L(e,"ended",t[17]),L(e,"playing",t[18]),L(e,"pause",t[19]),L(e,"waiting",t[20]),L(e,"error",t[21])],r=!0)},p(t,n){if(2097168&n[0]){let r;for(o=Rt(t[4]),r=0;r<o.length;r+=1){const i=Va(t,o,r);a[r]?a[r].p(i,n):(a[r]=Pa(i),a[r].c(),a[r].m(e,null))}for(;r<a.length;r+=1)a[r].d(1);a.length=o.length}32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),256&n[0]&&U(e,"poster",t[8])},d(n){n&&O(e),M(a,n),t[27](null),r=!1,s(i)}}}function Sa(t){let e,n,r=!t[9]&&Da(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[9]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),512&n[0]&&Ot(r,1)):(r=Da(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function Na(t,e,n){let r,i,o,a,s,{json:l={}}=e,{templateContext:c}=e,{origJson:u}=e,{layoutParams:d}=e;const h=pt(oe);let p,g=!1,m=!1;const v=h.getDerivedFromVars(l.video_sources);f(t,v,(t=>n(26,s=t)));let y=[];const $=h.getDerivedFromVars(l.repeatable);f(t,$,(t=>n(25,a=t)));let _=!1;const b=h.getDerivedFromVars(l.autostart);f(t,b,(t=>n(24,o=t)));let w=!1;const x=h.getDerivedFromVars(l.muted);f(t,x,(t=>n(23,i=t)));let k=!1;const E=h.getDerivedFromVars(l.preview);let C;f(t,E,(t=>n(22,r=t)));const A=l.elapsed_time_variable;let V=A&&h.getVariable(A,"integer")||Jo("temp","integer",0);return V.subscribe((t=>{m?m=!1:p&&n(10,p.currentTime=Number(t)/1e3,p)})),!l.id||g||(null==d?void 0:d.fakeElement)||h.registerInstance(l.id,{pause(){null==p||p.pause()},start(){const t=null==p?void 0:p.play();t&&t.catch((t=>{h.logError(ae(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}}),ht((()=>{!l.id||g||(null==d?void 0:d.fakeElement)||h.unregisterInstance(l.id)})),t.$$set=t=>{"json"in t&&n(0,l=t.json),"templateContext"in t&&n(1,c=t.templateContext),"origJson"in t&&n(2,u=t.origJson),"layoutParams"in t&&n(3,d=t.layoutParams)},t.$$.update=()=>{var e,l;67108880&t.$$.dirty[0]&&(n(4,(e=s,l=y,y=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})):l)),y.length?n(9,g=!1):(n(9,g=!0),h.logError(ae(new Error('Missing "video_sources" in "video"'))))),33554464&t.$$.dirty[0]&&n(5,_=Pn(a,_)),16777280&t.$$.dirty[0]&&n(6,w=Pn(o,w)),8388736&t.$$.dirty[0]&&n(7,k=Pn(i,k)),4194560&t.$$.dirty[0]&&n(8,C="string"==typeof r?br(r):C)},[l,c,u,d,y,_,w,k,C,g,p,v,$,b,x,E,function(){p&&(m=!0,V.setValue(Math.floor(1e3*p.currentTime)))},function(){const t=h.getJsonWithVars(l.end_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(l.resume_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(l.pause_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(l.buffering_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(l.fatal_actions);h.execAnyActions(t)},r,i,o,a,s,function(t){vt[t?"unshift":"push"]((()=>{p=t,n(10,p)}))}]}const Ia={};function Fa(t){let e,n,r;var i=t[5];function o(t,e){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=rt(i,o(t))),{c(){e&&Gt(e.$$.fragment),n=J()},l(t){e&&Kt(e.$$.fragment,t),n=J()},m(t,i){e&&Yt(e,t,i),F(t,n,i),r=!0},p(t,r){if(32&r&&i!==(i=t[5])){if(e){It();const t=e;Mt(t.$$.fragment,1,0,(()=>{Xt(t,1)})),Ft()}i?(e=rt(i,o(t)),Gt(e.$$.fragment),Ot(e.$$.fragment,1),Yt(e,n.parentNode,n)):e=null}else if(i){const n={};8&r&&(n.json=t[3]),16&r&&(n.templateContext=t[4]),4&r&&(n.layoutParams=t[2]),3&r&&(n.origJson=t[1]||t[0]),e.$set(n)}},i(t){r||(e&&Ot(e.$$.fragment,t),r=!0)},o(t){e&&Mt(e.$$.fragment,t),r=!1},d(t){t&&O(n),e&&Xt(e,t)}}}function Oa(t){let e,n,r=t[5]&&Fa(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&Ot(r,1)):(r=Fa(t),r.c(),Ot(r,1),r.m(e.parentNode,e)):r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft())},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function Ma(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const s=pt(oe);let l,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,i=t.templateContext),"origJson"in t&&n(1,o=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,l=r),n(4,c=i),n(5,u=l&&Ia[l.type]||void 0),!u&&(n(4,({templateContext:c,json:l}=s.processTemplate(l,c)),c,(n(3,l),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=l&&Ia[l.type]||void 0),!u))){let t;t=(null==l?void 0:l.type)&&s.hasTemplate(l.type)?"Recursive template":"Unknown component",s.logError(ae(new Error(t),{additional:{component:(null==l?void 0:l.type)||"<missing>"}}))}},[r,o,a,l,c,u,i]}Ia.text=class extends te{constructor(t){super(),Zt(this,t,Ln,Jn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.container=class extends te{constructor(t){super(),Zt(this,t,fr,hr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.separator=class extends te{constructor(t){super(),Zt(this,t,$r,yr,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},Ia.image=jr,Ia.gif=jr,Ia.grid=class extends te{constructor(t){super(),Zt(this,t,Jr,Br,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.gallery=class extends te{constructor(t){super(),Zt(this,t,ii,ri,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Ia.tabs=class extends te{constructor(t){super(),Zt(this,t,bi,_i,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1,-1])}},Ia.state=class extends te{constructor(t){super(),Zt(this,t,ho,co,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.pager=class extends te{constructor(t){super(),Zt(this,t,bo,_o,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.indicator=class extends te{constructor(t){super(),Zt(this,t,Vo,Ao,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.slider=class extends te{constructor(t){super(),Zt(this,t,Qo,Xo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Ia.input=class extends te{constructor(t){super(),Zt(this,t,$a,va,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Ia.select=class extends te{constructor(t){super(),Zt(this,t,Ca,Ea,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.video=class extends te{constructor(t){super(),Zt(this,t,Na,Sa,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}};const Ta=class extends te{constructor(t){super(),Zt(this,t,Ma,Oa,d,{div:0,templateContext:6,origJson:1,layoutParams:2})}},za={"root-svg-filters":"divkit-dc22b"};function Ra(t,e,n){const r=t.slice();r[1]=e[n];const i=r[1].split(":");return r[2]=i[0],r[3]=i[1],r}function Ba(t){let e,n,r,i=Rt([...Object.keys(t[0])]),o=[];for(let e=0;e<i.length;e+=1)o[e]=Wa(Ra(t,i,e));return{c(){e=z("svg"),n=z("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=X(t,"svg",{class:!0,"aria-hidden":!0});var r=q(e);n=X(r,"defs",{});var i=q(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(O),r.forEach(O),this.h()},h(){U(e,"class",r=za["root-svg-filters"]),U(e,"aria-hidden","true")},m(t,r){F(t,e,r),I(e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(n,null)},p(t,e){if(1&e){let r;for(i=Rt([...Object.keys(t[0])]),r=0;r<i.length;r+=1){const a=Ra(t,i,r);o[r]?o[r].p(a,e):(o[r]=Wa(a),o[r].c(),o[r].m(n,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(t){t&&O(e),M(o,t)}}}function Ja(t){let e,n;return{c(){e=z("feBlend"),this.h()},l(t){e=X(t,"feBlend",{in2:!0,mode:!0}),q(e).forEach(O),this.h()},h(){U(e,"in2","SourceGraphic"),U(e,"mode",n=t[3])},m(t,n){F(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&U(e,"mode",n)},d(t){t&&O(e)}}}function La(t){let e;return{c(){e=z("feComposite"),this.h()},l(t){e=X(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),q(e).forEach(O),this.h()},h(){U(e,"in2","SourceGraphic"),U(e,"operator","arithmetic"),U(e,"k1","1"),U(e,"k2","0"),U(e,"k3","0"),U(e,"k4","0")},m(t,n){F(t,e,n)},p:n,d(t){t&&O(e)}}}function Ua(t){let e,n;return{c(){e=z("feComposite"),this.h()},l(t){e=X(t,"feComposite",{in2:!0,operator:!0}),q(e).forEach(O),this.h()},h(){U(e,"in2","SourceGraphic"),U(e,"operator",n=t[3].split("_")[1])},m(t,n){F(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&U(e,"operator",n)},d(t){t&&O(e)}}}function Wa(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Ua:"multiply"===t[3]?La:Ja}let a=o(t),s=a(t);return{c(){e=z("filter"),n=z("feFlood"),s.c(),this.h()},l(t){e=X(t,"filter",{id:!0});var r=q(e);n=X(r,"feFlood",{"flood-color":!0}),q(n).forEach(O),s.l(r),r.forEach(O),this.h()},h(){U(n,"flood-color",r=t[2]),U(e,"id",i=t[0][t[1]])},m(t,r){F(t,e,r),I(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&U(n,"flood-color",r),a===(a=o(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&i!==(i=t[0][t[1]])&&U(e,"id",i)},d(t){t&&O(e),s.d()}}}function Ha(t){let e,r=Object.keys(t[0]).length,i=r&&Ba(t);return{c(){i&&i.c(),e=J()},l(t){i&&i.l(t),e=J()},m(t,n){i&&i.m(t,n),F(t,e,n)},p(t,n){let[o]=n;1&o&&(r=Object.keys(t[0]).length),r?i?i.p(t,o):(i=Ba(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:n,o:n,d(t){t&&O(e),i&&i.d(t)}}}function qa(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Ga=class extends te{constructor(t){super(),Zt(this,t,qa,Ha,d,{svgFiltersMap:0})}};function Ka(t,e,n,r){const i=n[t.type];if(!i)return r(ae(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let o;const a={};for(o in e)e.hasOwnProperty(o)&&(a[o]=e[o]);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(a[o]=t[o]);const s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),i=r.filter((t=>"$"!==t.charAt(0))),o=r.filter((t=>"$"===t.charAt(0)));return i.forEach((r=>{const i=n[r];"object"==typeof i&&null!==i?(e[r]=Array.isArray(i)?[]:{},t(e[r],i)):e[r]=i})),o.forEach((t=>{const r=n[t],i=a[r];if(void 0!==i){const n=t.substring(1);e[n]=i}})),e}({},i);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(s[o]=t[o]);return{json:s,templateContext:a}}function Ya(){}function Xa(t){return{subscribe:e=>(e(t),Ya)}}function Za(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function Qa(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function ts(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 es(t){try{return Oo(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function ns(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function rs(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,rs.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function is(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function os(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:Ae,JsonStringContents:function(){var t,e,n;for(t=pe,e=[],n=Ve();n!==r;)e.push(n),n=Ve();return ge=t,e=jt(e)}},a=Ae,s="@{",l="}",c="@{}",u="\\",d="?",h=":",f="||",p="&&",g="==",m="!=",v=">=",y=">",$="<=",_="<",b="+",w="-",x="/",k="*",E="%",C="!",A="(",V=")",D=",",P="'",j=".",S="e",N="E",I="true",F="false",O=/^[^}]/,M=/^[^'}]/,T=/^[0-9]/,z=/^[a-zA-Z_0-9.]/,R=/^[a-zA-Z_]/,B=/^[ \t\r\n]/,J=be("@{",!1),L=be("}",!1),U=be("@{}",!1),W=be("\\",!1),H={type:"any"},q=we(["}"],!0,!1),G=be("?",!1),K=be(":",!1),Y=be("||",!1),X=be("&&",!1),Z=be("==",!1),Q=be("!=",!1),tt=be(">=",!1),et=be(">",!1),nt=be("<=",!1),rt=be("<",!1),it=be("+",!1),ot=be("-",!1),at=be("/",!1),st=be("*",!1),lt=be("%",!1),ct=be("!",!1),ut=be("(",!1),dt=be(")",!1),ht=be(",",!1),ft=xe("string"),pt=be("'",!1),gt=we(["'","}"],!0,!1),mt=xe("integer"),vt=we([["0","9"]],!1,!1),yt=xe("number"),$t=be(".",!1),_t=be("e",!1),bt=be("E",!1),wt=xe("boolean"),xt=be("true",!1),kt=be("false",!1),Et=we([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),Ct=xe("identifier"),At=we([["a","z"],["A","Z"],"_"],!1,!1),Vt=xe("whitespace"),Dt=we([" ","\t","\r","\n"],!1,!1),Pt=function(t){return t},jt=function(t){return ts(t)},St=function(t){return t},Nt=function(){return""},It=function(){return _e()},Ft=function(){throw new Error("Error tokenizing '"+t+"'.")},Ot=function(){throw new Error("Error tokenizing '"+t+"'.")},Mt=function(t){return t},Tt=function(t){return ns(t)},zt=function(){throw new Error("Error tokenizing '"+t+"'.")},Rt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Bt=function(t,e){return Qa(t,e)},Jt=function(t,e){return Qa(t,e)},Lt=function(t,e){return Za(t,e)},Ut=function(t,e){return Za(t,e)},Wt=function(t,e){return Za(t,e)},Ht=function(t,e){return Za(t,e)},qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Gt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Kt=function(t){return{type:"Variable",id:t}},Yt=function(t,e){return[t,...e]},Xt=function(t){return t},Zt=function(t){return t},Qt=function(t){return ts(t)},te=function(t){return t},ee=function(){return""},ne=function(){return _e()},re=function(){throw new Error("Error tokenizing '"+t+"'.")},ie=function(){throw new Error("Error tokenizing '"+t+"'.")},oe=function(t){return t},ae=function(t){return ns(t)},se=function(){throw new Error("Error tokenizing '"+t+"'.")},le=function(){return{type:"IntegerLiteral",value:es(_e())}},ce=function(){return{type:"NumberLiteral",value:parseFloat(_e())}},ue=function(){return{type:"NumberLiteral",value:parseFloat(_e())}},de=function(){return{type:"BooleanLiteral",value:!0}},he=function(){return{type:"BooleanLiteral",value:!1}},fe=function(){return{type:"Identifier",name:_e()}},pe=0,ge=0,me=[{line:1,column:1}],ve=0,ye=[],$e=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function _e(){return t.substring(ge,pe)}function be(t,e){return{type:"literal",text:t,ignoreCase:e}}function we(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function xe(t){return{type:"other",description:t}}function ke(e){var n,r=me[e];if(r)return r;for(n=e-1;!me[n];)n--;for(r={line:(r=me[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return me[e]=r,r}function Ee(t,e,n){var r=ke(t),o=ke(e),a={source:i,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:o.line,column:o.column}};return n&&i&&"function"==typeof i.offset&&(a.start=i.offset(a.start),a.end=i.offset(a.end)),a}function Ce(t){pe<ve||(pe>ve&&(ve=pe,ye=[]),ye.push(t))}function Ae(){var t,e;return t=pe,Be(),(e=De())!==r?(Be(),ge=t,t=Pt(e)):(pe=t,t=r),t}function Ve(){var e,n,i,o,a;if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===$e&&Ce(J)),n!==r?(i=Be(),(o=De())!==r?(Be(),125===t.charCodeAt(pe)?(a=l,pe++):(a=r,0===$e&&Ce(L)),a!==r?(ge=e,e=St(o)):(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===$e&&Ce(U)),n!==r&&(ge=e,n=Nt()),(e=n)===r&&(e=pe,n=pe,$e++,92===t.charCodeAt(pe)?(i=u,pe++):(i=r,0===$e&&Ce(W)),i===r&&(t.substr(pe,2)===s?(i=s,pe+=2):(i=r,0===$e&&Ce(J))),$e--,i===r?n=void 0:(pe=n,n=r),n!==r?(t.length>pe?(i=t.charAt(pe),pe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=It()):(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===$e&&Ce(J)),n!==r){if(i=[],O.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(q)),o!==r)for(;o!==r;)i.push(o),O.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(q));else i=r;i!==r?(125===t.charCodeAt(pe)?(o=l,pe++):(o=r,0===$e&&Ce(L)),o!==r?(ge=e,e=Ft()):(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===$e&&Ce(J)),n!==r&&(ge=e,n=Ot()),(e=n)===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===$e&&Ce(W)),n!==r?(t.substr(pe,2)===s?(i=s,pe+=2):(i=r,0===$e&&Ce(J)),i!==r?(ge=e,e=Mt(i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===$e&&Ce(W)),n!==r?(t.length>pe?(i=t.charAt(pe),pe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=Tt(i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===$e&&Ce(W)),n!==r&&(ge=e,n=zt()),e=n))))}return e}function De(){var e,n,i,o,a,s;return e=pe,(n=Pe())!==r?(Be(),63===t.charCodeAt(pe)?(i=d,pe++):(i=r,0===$e&&Ce(G)),i!==r?(Be(),(o=De())!==r?(Be(),58===t.charCodeAt(pe)?(a=h,pe++):(a=r,0===$e&&Ce(K)),a!==r?(Be(),(s=De())!==r?(ge=e,e=Rt(n,o,s)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=Pe()),e}function Pe(){var e,n,i,o,a,s,l,c;if(e=pe,(n=je())!==r){for(i=[],o=pe,a=Be(),t.substr(pe,2)===f?(s=f,pe+=2):(s=r,0===$e&&Ce(Y)),s!==r?(l=Be(),(c=je())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,a=Be(),t.substr(pe,2)===f?(s=f,pe+=2):(s=r,0===$e&&Ce(Y)),s!==r?(l=Be(),(c=je())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Bt(n,i)}else pe=e,e=r;return e}function je(){var e,n,i,o,a,s,l,c;if(e=pe,(n=Se())!==r){for(i=[],o=pe,a=Be(),t.substr(pe,2)===p?(s=p,pe+=2):(s=r,0===$e&&Ce(X)),s!==r?(l=Be(),(c=Se())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,a=Be(),t.substr(pe,2)===p?(s=p,pe+=2):(s=r,0===$e&&Ce(X)),s!==r?(l=Be(),(c=Se())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Jt(n,i)}else pe=e,e=r;return e}function Se(){var e,n,i,o,a,s,l,c;if(e=pe,(n=Ne())!==r){for(i=[],o=pe,a=Be(),t.substr(pe,2)===g?(s=g,pe+=2):(s=r,0===$e&&Ce(Z)),s===r&&(t.substr(pe,2)===m?(s=m,pe+=2):(s=r,0===$e&&Ce(Q))),s!==r?(l=Be(),(c=Ne())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,a=Be(),t.substr(pe,2)===g?(s=g,pe+=2):(s=r,0===$e&&Ce(Z)),s===r&&(t.substr(pe,2)===m?(s=m,pe+=2):(s=r,0===$e&&Ce(Q))),s!==r?(l=Be(),(c=Ne())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Lt(n,i)}else pe=e,e=r;return e}function Ne(){var e,n,i,o,a,s,l,c;if(e=pe,(n=Ie())!==r){for(i=[],o=pe,a=Be(),t.substr(pe,2)===v?(s=v,pe+=2):(s=r,0===$e&&Ce(tt)),s===r&&(62===t.charCodeAt(pe)?(s=y,pe++):(s=r,0===$e&&Ce(et)),s===r&&(t.substr(pe,2)===$?(s=$,pe+=2):(s=r,0===$e&&Ce(nt)),s===r&&(60===t.charCodeAt(pe)?(s=_,pe++):(s=r,0===$e&&Ce(rt))))),s!==r?(l=Be(),(c=Ie())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,a=Be(),t.substr(pe,2)===v?(s=v,pe+=2):(s=r,0===$e&&Ce(tt)),s===r&&(62===t.charCodeAt(pe)?(s=y,pe++):(s=r,0===$e&&Ce(et)),s===r&&(t.substr(pe,2)===$?(s=$,pe+=2):(s=r,0===$e&&Ce(nt)),s===r&&(60===t.charCodeAt(pe)?(s=_,pe++):(s=r,0===$e&&Ce(rt))))),s!==r?(l=Be(),(c=Ie())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Ut(n,i)}else pe=e,e=r;return e}function Ie(){var e,n,i,o,a,s,l,c;if(e=pe,(n=Fe())!==r){for(i=[],o=pe,a=Be(),43===t.charCodeAt(pe)?(s=b,pe++):(s=r,0===$e&&Ce(it)),s===r&&(45===t.charCodeAt(pe)?(s=w,pe++):(s=r,0===$e&&Ce(ot))),s!==r?(l=Be(),(c=Fe())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,a=Be(),43===t.charCodeAt(pe)?(s=b,pe++):(s=r,0===$e&&Ce(it)),s===r&&(45===t.charCodeAt(pe)?(s=w,pe++):(s=r,0===$e&&Ce(ot))),s!==r?(l=Be(),(c=Fe())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Wt(n,i)}else pe=e,e=r;return e}function Fe(){var e,n,i,o,a,s,l,c;if(e=pe,(n=Oe())!==r){for(i=[],o=pe,a=Be(),47===t.charCodeAt(pe)?(s=x,pe++):(s=r,0===$e&&Ce(at)),s===r&&(42===t.charCodeAt(pe)?(s=k,pe++):(s=r,0===$e&&Ce(st)),s===r&&(37===t.charCodeAt(pe)?(s=E,pe++):(s=r,0===$e&&Ce(lt)))),s!==r?(l=Be(),(c=Oe())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,a=Be(),47===t.charCodeAt(pe)?(s=x,pe++):(s=r,0===$e&&Ce(at)),s===r&&(42===t.charCodeAt(pe)?(s=k,pe++):(s=r,0===$e&&Ce(st)),s===r&&(37===t.charCodeAt(pe)?(s=E,pe++):(s=r,0===$e&&Ce(lt)))),s!==r?(l=Be(),(c=Oe())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Ht(n,i)}else pe=e,e=r;return e}function Oe(){var e,n,i;return(e=ze())===r&&(e=Te())===r&&(e=pe,33===t.charCodeAt(pe)?(n=C,pe++):(n=r,0===$e&&Ce(ct)),n===r&&(43===t.charCodeAt(pe)?(n=b,pe++):(n=r,0===$e&&Ce(it)),n===r&&(45===t.charCodeAt(pe)?(n=w,pe++):(n=r,0===$e&&Ce(ot)))),n!==r?(Be(),(i=Oe())!==r?(ge=e,e=qt(n,i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=pe,(n=Re())!==r?(Be(),40===t.charCodeAt(pe)?(i=A,pe++):(i=r,0===$e&&Ce(ut)),i!==r?(Be(),o=function(){var e,n,i,o,a,s;if(e=pe,(n=De())!==r){for(i=[],o=pe,Be(),44===t.charCodeAt(pe)?(a=D,pe++):(a=r,0===$e&&Ce(ht)),a!==r?(Be(),(s=De())!==r?o=s:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,Be(),44===t.charCodeAt(pe)?(a=D,pe++):(a=r,0===$e&&Ce(ht)),a!==r?(Be(),(s=De())!==r?o=s:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Yt(n,i)}else pe=e,e=r;return e===r&&(e=Be()),e}(),o!==r?(Be(),41===t.charCodeAt(pe)?(a=V,pe++):(a=r,0===$e&&Ce(dt)),a!==r?(ge=e,e=Gt(n,o)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,(n=Re())!==r&&(ge=e,n=Kt(n)),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return $e++,e=pe,39===t.charCodeAt(pe)?(n=P,pe++):(n=r,0===$e&&Ce(pt)),n!==r?(i=function(){var t,e,n;for(t=pe,e=[],n=Me();n!==r;)e.push(n),n=Me();return ge=t,t=e=Qt(e)}(),39===t.charCodeAt(pe)?(o=P,pe++):(o=r,0===$e&&Ce(pt)),o!==r?(ge=e,e=Zt(i)):(pe=e,e=r)):(pe=e,e=r),$e--,e===r&&(n=r,0===$e&&Ce(ft)),e}(),e===r&&(e=ze())===r&&(e=Te())===r&&(e=function(){var e,n;return $e++,e=pe,t.substr(pe,4)===I?(n=I,pe+=4):(n=r,0===$e&&Ce(xt)),n!==r&&(ge=e,n=de()),(e=n)===r&&(e=pe,t.substr(pe,5)===F?(n=F,pe+=5):(n=r,0===$e&&Ce(kt)),n!==r&&(ge=e,n=he()),e=n),$e--,e===r&&(n=r,0===$e&&Ce(wt)),e}(),e===r&&(e=pe,40===t.charCodeAt(pe)?(n=A,pe++):(n=r,0===$e&&Ce(ut)),n!==r&&(i=De())!==r?(41===t.charCodeAt(pe)?(o=V,pe++):(o=r,0===$e&&Ce(dt)),o!==r?(ge=e,e=Xt(i)):(pe=e,e=r)):(pe=e,e=r))),e}())),e}())),e}function Me(){var e,n,i,o,a;if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===$e&&Ce(J)),n!==r?(i=Be(),(o=De())!==r?(Be(),125===t.charCodeAt(pe)?(a=l,pe++):(a=r,0===$e&&Ce(L)),a!==r?(ge=e,e=te(o)):(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===$e&&Ce(U)),n!==r&&(ge=e,n=ee()),(e=n)===r&&(e=pe,n=pe,$e++,92===t.charCodeAt(pe)?(i=u,pe++):(i=r,0===$e&&Ce(W)),i===r&&(39===t.charCodeAt(pe)?(i=P,pe++):(i=r,0===$e&&Ce(pt)),i===r&&(t.substr(pe,2)===s?(i=s,pe+=2):(i=r,0===$e&&Ce(J)))),$e--,i===r?n=void 0:(pe=n,n=r),n!==r?(t.length>pe?(i=t.charAt(pe),pe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=ne()):(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===$e&&Ce(J)),n!==r){if(i=[],M.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(gt)),o!==r)for(;o!==r;)i.push(o),M.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(gt));else i=r;i!==r?(125===t.charCodeAt(pe)?(o=l,pe++):(o=r,0===$e&&Ce(L)),o!==r?(ge=e,e=re()):(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===$e&&Ce(J)),n!==r&&(ge=e,n=ie()),(e=n)===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===$e&&Ce(W)),n!==r?(t.substr(pe,2)===s?(i=s,pe+=2):(i=r,0===$e&&Ce(J)),i!==r?(ge=e,e=oe(i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===$e&&Ce(W)),n!==r?(t.length>pe?(i=t.charAt(pe),pe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=ae(i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===$e&&Ce(W)),n!==r&&(ge=e,n=se()),e=n))))}return e}function Te(){var e,n,i,o;if($e++,e=pe,45===t.charCodeAt(pe)?(n=w,pe++):(n=r,0===$e&&Ce(ot)),n===r&&(n=null),i=[],T.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(vt)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(vt));else i=r;return i!==r?(ge=e,e=le()):(pe=e,e=r),$e--,e===r&&(n=r,0===$e&&Ce(mt)),e}function ze(){var e,n,i,o,a,s,l,c,u,d;for($e++,e=pe,45===t.charCodeAt(pe)?(n=w,pe++):(n=r,0===$e&&Ce(ot)),n===r&&(n=null),i=[],T.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(vt));o!==r;)i.push(o),T.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(vt));if(46===t.charCodeAt(pe)?(o=j,pe++):(o=r,0===$e&&Ce($t)),o!==r){if(a=[],T.test(t.charAt(pe))?(s=t.charAt(pe),pe++):(s=r,0===$e&&Ce(vt)),s!==r)for(;s!==r;)a.push(s),T.test(t.charAt(pe))?(s=t.charAt(pe),pe++):(s=r,0===$e&&Ce(vt));else a=r;if(a!==r){if(s=pe,101===t.charCodeAt(pe)?(l=S,pe++):(l=r,0===$e&&Ce(_t)),l===r&&(69===t.charCodeAt(pe)?(l=N,pe++):(l=r,0===$e&&Ce(bt))),l!==r){if(43===t.charCodeAt(pe)?(c=b,pe++):(c=r,0===$e&&Ce(it)),c===r&&(45===t.charCodeAt(pe)?(c=w,pe++):(c=r,0===$e&&Ce(ot))),c===r&&(c=null),u=[],T.test(t.charAt(pe))?(d=t.charAt(pe),pe++):(d=r,0===$e&&Ce(vt)),d!==r)for(;d!==r;)u.push(d),T.test(t.charAt(pe))?(d=t.charAt(pe),pe++):(d=r,0===$e&&Ce(vt));else u=r;u!==r?s=l=[l,c,u]:(pe=s,s=r)}else pe=s,s=r;s===r&&(s=null),ge=e,e=ce()}else pe=e,e=r}else pe=e,e=r;if(e===r){if(e=pe,45===t.charCodeAt(pe)?(n=w,pe++):(n=r,0===$e&&Ce(ot)),n===r&&(n=null),i=[],T.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(vt)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(vt));else i=r;if(i!==r)if(101===t.charCodeAt(pe)?(o=S,pe++):(o=r,0===$e&&Ce(_t)),o===r&&(69===t.charCodeAt(pe)?(o=N,pe++):(o=r,0===$e&&Ce(bt))),o!==r){if(43===t.charCodeAt(pe)?(a=b,pe++):(a=r,0===$e&&Ce(it)),a===r&&(45===t.charCodeAt(pe)?(a=w,pe++):(a=r,0===$e&&Ce(ot))),a===r&&(a=null),s=[],T.test(t.charAt(pe))?(l=t.charAt(pe),pe++):(l=r,0===$e&&Ce(vt)),l!==r)for(;l!==r;)s.push(l),T.test(t.charAt(pe))?(l=t.charAt(pe),pe++):(l=r,0===$e&&Ce(vt));else s=r;s!==r?(ge=e,e=ue()):(pe=e,e=r)}else pe=e,e=r;else pe=e,e=r}return $e--,e===r&&(n=r,0===$e&&Ce(yt)),e}function Re(){var e,n,i,o,a;if($e++,e=pe,n=pe,$e++,i=function(){var e,n,i,o;return e=pe,t.substr(pe,4)===I?(n=I,pe+=4):(n=r,0===$e&&Ce(xt)),n===r&&(t.substr(pe,5)===F?(n=F,pe+=5):(n=r,0===$e&&Ce(kt))),n!==r?(i=pe,$e++,z.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(Et)),$e--,o===r?i=void 0:(pe=i,i=r),i!==r?e=n=[n,i]:(pe=e,e=r)):(pe=e,e=r),e}(),$e--,i===r?n=void 0:(pe=n,n=r),n!==r)if(R.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===$e&&Ce(At)),i!==r){for(o=[],z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===$e&&Ce(Et));a!==r;)o.push(a),z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===$e&&Ce(Et));ge=e,e=fe()}else pe=e,e=r;else pe=e,e=r;return $e--,e===r&&(n=r,0===$e&&Ce(Ct)),e}function Be(){var e,n;for($e++,e=[],B.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===$e&&Ce(Dt));n!==r;)e.push(n),B.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===$e&&Ce(Dt));return $e--,n=r,0===$e&&Ce(Vt),e}if((n=a())!==r&&pe===t.length)return n;throw n!==r&&pe<t.length&&Ce({type:"end"}),function(t,e,n){return new rs(rs.buildMessage(t,e),t,e,n)}(ye,ve<t.length?t.charAt(ve):null,ve<t.length?Ee(ve,ve+1):Ee(ve,ve))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(rs,Error),rs.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 i=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,a=this.location.source+":"+o.line+":"+o.column;if(r){var s=this.location.end,l=is("",o.line.toString().length," "),c=r[i.line-1],u=(i.line===s.line?s.column:c.length+1)-i.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+o.line+" | "+c+"\n"+l+" | "+is("",i.column-1," ")+is("",u,"^")}else e+="\n at "+a}return e},rs.buildMessage=function(t,e){var n={literal:function(t){return'"'+i(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(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 i(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 o(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?'"'+i(t)+'"':"end of input"}(e)+" found."};const as=new Map,ss=new Map;function ls(t,e,n){const r={args:e,cb:n},i=as.get(t)||[];as.has(t)||as.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");ss.set(o,r)}function cs(t,e){let n=t.args.length,r=t.args.length;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(--n,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!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function us(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=>{us(t,e)}));break;case"BinaryExpression":case"LogicalExpression":us(t.left,e),us(t.right,e);break;case"UnaryExpression":us(t.argument,e);break;case"ConditionalExpression":us(t.test,e),us(t.consequent,e),us(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{us(t,e)}))}}function ds(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function hs(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function fs(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 hs(t.value);if("color"===t.type)return bs(_s(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";throw new Error("Unexpected type ".concat(t.type))}function ps(t){let e=fs(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function gs(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function ms(t,e){if(So)return Oo(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function vs(t,e){if(e<Fo||e>Io)throw new Error("Integer overflow.");!So&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function ys(t){const e=[];return us(t,{Variable(t){e.push(t.id.name)}}),e}function $s(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function _s(t){const e=pe(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function bs(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 he(Math.round(t).toString(16),2)})).join("").toUpperCase())}function ws(t){return bs(_s(t))}const xs=Number.MAX_VALUE,ks=Number.MIN_VALUE,Es="string",Cs="integer",As="number",Vs="boolean",Ds="color",Ps="url",js="datetime",Ss="dict";function Ns(t,e){return{type:Es,value:fs(e)}}function Is(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:As,value:n}}function Fs(t,e,n,r){const i=t.variables.get(e.value);let o;return o=i&&i.getType()===r?i.getValue():n.value,"color"===r&&(o=ws(o)),{type:r,value:o}}function Os(t,e,n){return Fs(t,e,n,n.type)}function Ms(t,e,n){return Fs(t,e,n,"color")}function Ts(t,e,n){return Fs(t,e,n,"url")}const zs=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:Cs,value:Oo(r)}},Rs=zs("getUTCFullYear"),Bs=zs("getUTCMonth"),Js=zs("getUTCDate"),Ls=zs("getUTCDay"),Us=zs("getUTCHours"),Ws=zs("getUTCMinutes"),Hs=zs("getUTCSeconds"),qs=zs("getUTCMilliseconds");function Gs(t,e,n,r){if(!r.value.length)return t.warnings.push(ae(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===Es?e.value:fs(e);for(;i.length+o.length<n.value;)i+=r.value;return i.length>0&&i.length+o.length>n.value&&(i=i.substring(0,Number(n.value)-Number(o.length))),i}function Ks(t,e,n,r){const i=Gs(t,e,n,r);return{type:Es,value:i+fs(e)}}function Ys(t,e,n,r){const i=Gs(t,e,n,r);return{type:Es,value:fs(e)+i}}function Xs(t){return(e,n)=>{const r=_s(n.value);return{type:As,value:r[t]/255}}}function Zs(t){return(e,n,r)=>{const i=_s(n.value);return i[t]=255*r.value,{type:Ds,value:bs(i)}}}const Qs=Xs("a"),tl=Xs("r"),el=Xs("g"),nl=Xs("b"),rl=Zs("a"),il=Zs("r"),ol=Zs("g"),al=Zs("b");function sl(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=Oo(e.value)/Oo(n);return vs(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=Oo(i)%Oo(r)),{type:Cs,value:i}}const ll=36e5;function cl(t,e){return function(n,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];let s=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}(r.value,o.map((t=>t.value))),l=typeof s;if(l!==t)throw"object"===l&&(l=Array.isArray(s)?"array":null===s?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(l,'".'));if("number"===t&&"integer"===e){if(s!==Math.round(s))throw new Error("Cannot convert value to integer.");vs(n,s)}return"string"===t&&"color"===e&&(s=ws(s)),{type:e,value:s}}}function ul(t,e){return function(n,r,i){try{for(var o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return t(n,i,...a)}catch(t){let n=r.value;return"color"===e&&(n=ws(n)),{type:e,value:n}}}}const dl=cl("string","string"),hl=cl("number","number"),fl=cl("number","integer"),pl=cl("boolean","boolean"),gl=cl("string","color"),ml=cl("string","url"),vl=ul(dl,"string"),yl=ul(hl,"number"),$l=ul(fl,"integer"),_l=ul(pl,"boolean"),bl=ul(gl,"color"),wl=ul(ml,"url");function xl(t){return t.map(ps).join(", ")}ls("toString",[Cs],Ns),ls("toString",[As],Ns),ls("toString",[Vs],Ns),ls("toString",[Ds],Ns),ls("toString",[Ps],Ns),ls("toNumber",[Cs],Is),ls("toNumber",[Es],Is),ls("toInteger",[As],(function(t,e){if(e.value>Io||e.value<Fo)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:Cs,value:Oo(n)}})),ls("toInteger",[Es],(function(t,e){let n;try{n=Oo(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>Io||n<Fo)throw new Error("Unable to convert value to Integer.");return{type:Cs,value:n}})),ls("toInteger",[Vs],(function(t,e){return{type:Cs,value:Oo(e.value?1:0)}})),ls("toBoolean",[Cs],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:Vs,value:n}})),ls("toBoolean",[Es],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:Vs,value:"true"===e.value?1:0}})),ls("toColor",[Es],(function(t,e){return{type:Ds,value:ws(e.value)}})),ls("toUrl",[Es],(function(t,e){return{type:Ps,value:e.value}})),ls("encodeUri",[Es],(function(t,e){try{return{type:Es,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),ls("decodeUri",[Es],(function(t,e){try{return{type:Es,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),ls("getIntegerValue",[Es,Cs],Os),ls("getNumberValue",[Es,As],Os),ls("getBooleanValue",[Es,Vs],Os),ls("getStringValue",[Es,Es],Os),ls("getColorValue",[Es,Ds],Ms),ls("getColorValue",[Es,Es],Ms),ls("getUrlValue",[Es,Ps],Ts),ls("getUrlValue",[Es,Es],Ts),ls("parseUnixTime",[Cs],(function(t,e){return{type:js,value:new Date(1e3*Number(e.value))}})),ls("nowLocal",[],(function(){return{type:js,value:new Date}})),ls("addMillis",[js,Cs],(function(t,e,n){return{type:js,value:new Date(e.value.getTime()+Number(n.value))}})),ls("setYear",[js,Cs],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:js,value:r}})),ls("setMonth",[js,Cs],(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 i=new Date(e.value);return i.setUTCMonth(r-1),{type:js,value:i}})),ls("setDay",[js,Cs],(function(t,e,n){const r=new Date(e.value),i=Number(n.value);if(i<=0&&-1!==i||i>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(i," for date ").concat(fs(e),"."));return r.setUTCDate(-1===i?0:i),{type:js,value:r}})),ls("setHours",[js,Cs],(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 i=new Date(e.value);return i.setUTCHours(r),{type:js,value:i}})),ls("setMinutes",[js,Cs],(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 i=new Date(e.value);return i.setUTCMinutes(r),{type:js,value:i}})),ls("setSeconds",[js,Cs],(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 i=new Date(e.value);return i.setUTCSeconds(r),{type:js,value:i}})),ls("setMillis",[js,Cs],(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 i=new Date(e.value);return i.setUTCMilliseconds(r),{type:js,value:i}})),ls("getYear",[js],Rs),ls("getMonth",[js],Bs),ls("getDay",[js],Js),ls("getDayOfWeek",[js],Ls),ls("getHours",[js],Us),ls("getMinutes",[js],Ws),ls("getSeconds",[js],Hs),ls("getMillis",[js],qs),ls("getIntervalSeconds",[Cs],(function(t,e){return sl(t,e,1e3,60)})),ls("getIntervalTotalSeconds",[Cs],(function(t,e){return sl(t,e,1e3)})),ls("getIntervalMinutes",[Cs],(function(t,e){return sl(t,e,6e4,60)})),ls("getIntervalTotalMinutes",[Cs],(function(t,e){return sl(t,e,6e4)})),ls("getIntervalHours",[Cs],(function(t,e){return sl(t,e,ll,24)})),ls("getIntervalTotalHours",[Cs],(function(t,e){return sl(t,e,ll)})),ls("getIntervalTotalDays",[Cs],(function(t,e){return sl(t,e,864e5)})),ls("getIntervalTotalWeeks",[Cs],(function(t,e){return sl(t,e,6048e5)})),ls("len",[Es],(function(t,e){return{type:Cs,value:Oo(e.value.length)}})),ls("contains",[Es,Es],(function(t,e,n){return{type:Vs,value:e.value.includes(n.value)?1:0}})),ls("substring",[Es,Cs,Cs],(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:Es,value:e.value.substring(Number(n.value),Number(r.value))}})),ls("replaceAll",[Es,Es,Es],(function(t,e,n,r){let i;return i=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:Es,value:i}})),ls("index",[Es,Es],(function(t,e,n){return{type:Cs,value:Oo(e.value.indexOf(n.value))}})),ls("lastIndex",[Es,Es],(function(t,e,n){return{type:Cs,value:Oo(e.value.lastIndexOf(n.value))}})),ls("trim",[Es],(function(t,e){return{type:Es,value:e.value.trim()}})),ls("trimLeft",[Es],(function(t,e){return{type:Es,value:e.value.replace(/^\s+/,"")}})),ls("trimRight",[Es],(function(t,e){return{type:Es,value:e.value.replace(/\s+$/,"")}})),ls("toUpperCase",[Es],(function(t,e){return{type:Es,value:e.value.toUpperCase()}})),ls("toLowerCase",[Es],(function(t,e){return{type:Es,value:e.value.toLowerCase()}})),ls("padStart",[Es,Cs,Es],Ks),ls("padStart",[Cs,Cs,Es],Ks),ls("padEnd",[Es,Cs,Es],Ys),ls("padEnd",[Cs,Cs,Es],Ys),ls("testRegex",[Es,Es],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:Vs,value:r.test(e.value)?1:0}})),ls("div",[Cs,Cs],(function(t,e,n){if(n.value===Mo)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=ms(0,r),vs(t,r),{type:Cs,value:r}})),ls("div",[As,As],(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:As,value:r}})),ls("mod",[Cs,Cs],(function(t,e,n){if(n.value===Mo)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=ms(0,r),vs(t,r),{type:Cs,value:r}})),ls("mod",[As,As],(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:As,value:r}})),ls("mul",[{type:Cs,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 i=n.length?n[0].value:Mo;for(let e=1;e<n.length;++e)i*=n[e].value,i=ms(0,i),vs(t,i);return{type:Cs,value:i}})),ls("mul",[{type:As,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 i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i*=n[t].value;return{type:As,value:i}})),ls("sub",[{type:Cs,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 i=n.length?n[0].value:Mo;for(let e=1;e<n.length;++e)i-=n[e].value,i=ms(0,i),vs(t,i);return{type:Cs,value:i}})),ls("sub",[{type:As,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 i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i-=n[t].value;return{type:As,value:i}})),ls("sum",[{type:Cs,isVararg:!0}],(function(t){let e=Mo;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n=0;n<r.length;++n)e+=r[n].value,e=ms(0,e),vs(t,e);return{type:Cs,value:e}})),ls("sum",[{type:As,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:As,value:e}})),ls("abs",[Cs],(function(t,e){const n=To(e.value);return vs(t,n),{type:e.type,value:n}})),ls("abs",[As],(function(t,e){const n=Math.abs(e.value);return{type:As,value:n}})),ls("max",[{type:Cs,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 i=n[0].value;for(let t=1;t<n.length;++t)n[t].value>i&&(i=n[t].value);return{type:Cs,value:i}})),ls("max",[{type:As,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:As,value:Math.max(...n.map((t=>t.value)))}})),ls("min",[{type:Cs,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 i=n[0].value;for(let t=1;t<n.length;++t)n[t].value<i&&(i=n[t].value);return{type:Cs,value:i}})),ls("min",[{type:As,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:As,value:Math.min(...n.map((t=>t.value)))}})),ls("maxNumber",[],(function(){return{type:As,value:xs}})),ls("minNumber",[],(function(){return{type:As,value:ks}})),ls("maxInteger",[],(function(t){return vs(t,Io),{type:Cs,value:Io}})),ls("minInteger",[],(function(t){return vs(t,Fo),{type:Cs,value:Fo}})),ls("round",[As],(function(t,e){const n=Math.sign(e.value);return{type:As,value:n*Math.round(Math.abs(e.value))}})),ls("floor",[As],(function(t,e){return{type:As,value:Math.floor(e.value)}})),ls("ceil",[As],(function(t,e){return{type:As,value:Math.ceil(e.value)}})),ls("signum",[Cs],(function(t,e){return{type:Cs,value:zo(e.value)}})),ls("signum",[As],(function(t,e){return{type:As,value:Math.sign(e.value)}})),ls("copySign",[Cs,Cs],(function(t,e,n){let r;if(n.value===Mo)r=e.value;else if(e.value===Mo)r=0;else{const t=zo(n.value);r=To(e.value)*t}return vs(t,r),{type:Cs,value:r}})),ls("copySign",[As,As],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const i=Math.abs(e.value)*r;return{type:As,value:i}})),ls("getColorAlpha",[Es],Qs),ls("getColorAlpha",[Ds],Qs),ls("getColorRed",[Es],tl),ls("getColorRed",[Ds],tl),ls("getColorGreen",[Es],el),ls("getColorGreen",[Ds],el),ls("getColorBlue",[Es],nl),ls("getColorBlue",[Ds],nl),ls("setColorAlpha",[Es,As],rl),ls("setColorAlpha",[Ds,As],rl),ls("setColorRed",[Es,As],il),ls("setColorRed",[Ds,As],il),ls("setColorGreen",[Es,As],ol),ls("setColorGreen",[Ds,As],ol),ls("setColorBlue",[Es,As],al),ls("setColorBlue",[Ds,As],al),ls("rgb",[As,As,As],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:Ds,value:bs(i)}})),ls("argb",[As,As,As,As],(function(t,e,n,r,i){const o={a:255*e.value,r:255*n.value,g:255*r.value,b:255*i.value};return{type:Ds,value:bs(o)}})),ls("getDictString",[Ss,{type:Es,isVararg:!0}],dl),ls("getDictNumber",[Ss,{type:Es,isVararg:!0}],hl),ls("getDictInteger",[Ss,{type:Es,isVararg:!0}],fl),ls("getDictBoolean",[Ss,{type:Es,isVararg:!0}],pl),ls("getDictColor",[Ss,{type:Es,isVararg:!0}],gl),ls("getDictUrl",[Ss,{type:Es,isVararg:!0}],ml),ls("getDictOptString",[Es,Ss,{type:Es,isVararg:!0}],vl),ls("getDictOptNumber",[As,Ss,{type:Es,isVararg:!0}],yl),ls("getDictOptInteger",[Cs,Ss,{type:Es,isVararg:!0}],$l),ls("getDictOptBoolean",[Vs,Ss,{type:Es,isVararg:!0}],_l),ls("getDictOptColor",[Ds,Ss,{type:Es,isVararg:!0}],bl),ls("getDictOptColor",[Es,Ss,{type:Es,isVararg:!0}],bl),ls("getDictOptUrl",[Es,Ss,{type:Es,isVararg:!0}],wl),ls("getDictOptUrl",[Ps,Ss,{type:Es,isVararg:!0}],wl);const kl={StringLiteral:function(t,e){return{type:Es,value:e.value}},NumberLiteral:function(t,e){return{type:As,value:e.value}},IntegerLiteral:function(t,e){return vs(t,e.value),{type:Cs,value:e.value}},BooleanLiteral:function(t,e){return{type:Vs,value:e.value?1:0}},UnaryExpression:function(t,e){const n=ds(El(t,e.argument));switch(e.operator){case"!":if(n.type===Vs)return{type:Vs,value:n.value?0:1};$s("".concat(e.operator).concat(ps(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===Cs){const e=n.value*Oo(r);return vs(t,e),{type:Cs,value:e}}if(n.type===As)return{type:As,value:n.value*r};$s("".concat(e.operator).concat(ps(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=ds(El(t,e.test));if(n.type===Vs)return n.value?El(t,e.consequent):El(t,e.alternate);$s("".concat(ps(n)," ? ").concat(ps(El(t,e.consequent))," : ").concat(ps(El(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return El(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=fs(El(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:Es,value:n}},LogicalExpression:function(t,e){const n=ds(El(t,e.left));if(n.type!==Vs&&$s("".concat(ps(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:Vs,value:0};const r=ds(El(t,e.right));return r.type!==Vs&&$s("".concat(ps(n)," ").concat(e.operator," ").concat(ps(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(gs(r.type),".")),{type:Vs,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=El(t,e.left),i=El(t,e.right);if(r.type!==i.type&&$s("".concat(ps(r)," ").concat(e.operator," ").concat(ps(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(gs(r.type)," and ").concat(gs(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===js&&n.type===js?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:Vs,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==As&&e.type!==Cs&&e.type!==js&&$s("".concat(ps(e)," ").concat(t," ").concat(ps(n)),"Operator '".concat(t,"' cannot be applied to ").concat(gs(e.type)," type."));const i=e.type===js?e.value.getTime():e.value,o=n.type===js?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:Vs,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==Es&&n.type!==As&&n.type!==Cs&&$s("".concat(ps(n)," ").concat(e," ").concat(ps(r)),"Operator '".concat(e,"' cannot be applied to ").concat(gs(n.type)," type.")),n.type===Es)return"-"===e&&$s("".concat(ps(n)," - ").concat(ps(r)),"Operator '".concat(e,"' cannot be applied to ").concat(gs(n.type)," type.")),{type:Es,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===Cs)try{i=ms(0,i),vs(t,i)}catch(t){$s("".concat(ps(n)," ").concat(e," ").concat(ps(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let i;if(n.type!==Cs&&n.type!==As&&$s("".concat(ps(n)," ").concat(e," ").concat(ps(r)),"Operator '".concat(e,"' cannot be applied to ").concat(gs(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&$s("".concat(ps(n)," ").concat(e," ").concat(ps(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===Cs)try{i=ms(0,i),vs(t,i)}catch(t){$s("".concat(ps(n)," ").concat(e," ").concat(ps(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r;const i=e.arguments.map((e=>El(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if(ss.has(o))r=ss.get(o);else{const t=function(t,e){const n=as.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=cs(n[t],e);if("match"===i.type)return n[t];r||(r=i)}if(!r)throw new Error("Missing function");return r}(n,i);if("expected"in t||"type"in t&&"missing"===t.type){const e=i.map((t=>gs(t.type))).join(", "),r="".concat(n,"(").concat(xl(i),")");"few"===t.type&&0===i.length?$s(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?$s(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):$s(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){$s("".concat(n,"(").concat(xl(i),")"),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 El(t,e){if(e.type in kl)return kl[e.type](t,e);throw new Error("Unsupported expression")}function Cl(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1};!function(t,e){let n="";if(us(e,{Variable(e){n||t.variables.has(e.id.name)||(n=e.id.name)}}),n)throw new Error("Variable '".concat(n,"' is missing."))}(n,e);const r=El(n,e);return n.safeIntegerOverflow&&n.warnings.push(ae(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:r,warnings:n.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}class Al{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return us(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=Cl(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(ae(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return hs(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=pe(String(i));if(t)return bs(t);e(ae(new Error("Expression execution error")))}return"integer"===r.type?i>2147483647||i<-2147483648?void e(ae(new Error("Expression result is out of 32-bit int range"))):Number(i):i}catch(t){return void e(ae(new Error("Expression execution error")))}}}function Vl(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=os(t,{startRule:"JsonStringContents"}),r=ys(n);return e.vars.push(...r),new Al(n)}catch(e){return void n(ae(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Vl(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Vl(t[i],e,n);return r}}var r;return t}function Dl(t,e,n){if(t){if(t instanceof Al)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>Dl(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Dl(t[i],e,n);return r}}return t}function Pl(t,e){const n={vars:[],hasExpression:!1},r=Vl(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>Dl(r,t,e)}}const jl={pagers:function(){return ne(new Map)}},Sl=new Map,Nl=new Map;function Il(t){const e=Sl.get(t)||ne("");return Sl.has(t)||Sl.set(t,e),e}function Fl(t){const e=Nl.get(t)||new Map;return Nl.has(t)||Nl.set(t,e),e}class Ol{setVariable(t){const e=t.getName(),n=Fl(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Il(this).set(e)}getVariable(t){return Fl(this).get(t)}}function Ml(){return new Ol}function Tl(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 zl=new Set(["start","stop","pause","resume","cancel","reset"]);class Rl{constructor(t){Tl(this,"timers",new Map),Tl(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(ae(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(ae(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&zl.has(e)))return void this.logError(ae(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)}tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),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((()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&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(),i=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-i)%n,e()}),i)};e()}}start(t){if("running"===t.state)return void this.logError(ae(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(ae(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(ae(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(ae(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(ae(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(ae(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(ae(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(ae(new Error("The timer is already running"))):this.logError(ae(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))}callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);this.execAnyActions(t,!1)}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}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&&this.tickOrUnholdAction(e),this.startOrResume(e)}}}function Bl(t){let e,n,r,i,o,a,s,l;return n=new Ga({props:{svgFiltersMap:t[3]}}),i=new Ta({props:{div:t[4],templateContext:t[7],layoutParams:{tooltips:t[2]}}}),{c(){e=T("div"),Gt(n.$$.fragment),r=B(),Gt(i.$$.fragment),this.h()},l(t){e=Y(t,"DIV",{class:!0});var o=q(e);Kt(n.$$.fragment,o),r=Q(o),Kt(i.$$.fragment,o),o.forEach(O),this.h()},h(){U(e,"class",o=""+(ie.root+(t[5]?" ".concat(ie.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){F(t,e,o),Yt(n,e,null),I(e,r),Yt(i,e,null),a=!0,s||(l=L(e,"touchstart",ql,{passive:!0}),s=!0)},p(t,r){const s={};8&r[0]&&(s.svgFiltersMap=t[3]),n.$set(s);const l={};16&r[0]&&(l.div=t[4]),4&r[0]&&(l.layoutParams={tooltips:t[2]}),i.$set(l),(!a||33&r[0]&&o!==(o=""+(ie.root+(t[5]?" ".concat(ie.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&U(e,"class",o)},i(t){a||(Ot(n.$$.fragment,t),Ot(i.$$.fragment,t),a=!0)},o(t){Mt(n.$$.fragment,t),Mt(i.$$.fragment,t),a=!1},d(t){t&&O(e),Xt(n),Xt(i),s=!1,l()}}}function Jl(t){let e,n,r=!t[1]&&t[4]&&Bl(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){!t[1]&&t[4]?r?(r.p(t,n),18&n[0]&&Ot(r,1)):(r=Bl(t),r.c(),Ot(r,1),r.m(e.parentNode,e)):r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft())},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}let Ll=ne(!0),Ul=0;function Wl(){Ll.set(!1)}function Hl(){Ll.set(!0)}function ql(){}function Gl(t,e,n){let r;var i,o,a,s;let{id:l}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new Ol}=e,{mix:p=""}=e,{customization:g={}}=e,{builtinProtocols:m=["http","https","tel","mailto","intent"]}=e,{extensions:v=new Map}=e,{onError:y}=e,{onStat:$}=e,{onCustomAction:_}=e,{onComponent:b}=e,{typefaceProvider:w=(t=>"")}=e,{fetchInit:x={}}=e,{tooltipRoot:k}=e,E=ne("desktop"===u);if(f(t,E,(t=>n(5,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");E.set(!t.matches),t.addListener((()=>{E.set(!t.matches)}))}let C="light",A=null;function V(){"system"===d&&A&&n(26,C=A.matches?"dark":"light")}const D=new Set(m);let P=!1;c||(P=!0,L(ae(new Error('"json" prop is required')))),l||(P=!0,L(ae(new Error('"id" prop is required'))));let j=function(t){if(!t)return ae(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return ae(new Error("Missing card"));if(!e.states||!e.states.length)return ae(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Ia)return ae(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return ae(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return ae(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const S=c.templates||{};j&&(P=!0,L(j));const N={stateChange:!1},I=Il(h),F=Fl(h),O=new Map,M=new Map,T=new Map;let z=null,R=0,B=[];function J(t){const e=Pl(t,L);return e.hasExpression?e.applyVars(M):t}function L(t){y?y({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function U(t,e){$&&$({type:t,action:e})}let W=0;function H(t){return"".concat(l,"-").concat(W++)}let q={},G={};function K(t){const e=t.url?String(t.url):"";if(e)try{const r=e.replace(/div-action:\/\//,""),i=/([^?]+)\?(.+)/.exec(r);if(!i)return;const o=new URLSearchParams(i[2]);switch(i[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=it,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],i=n[t+1];let o=e.getChild(r);if(!o)return;o.setState(i),e=o}}(o.get("state_id"));break;case"set_current_item":!function(t,e){if(!t||!e)throw new Error('Missing data for "set-current-item" action');if(isNaN(Number(e)))throw new Error('Incorrect item for "set-current-item" action');const n=et(t);n&&n.setCurrentItem(Number(e))}(o.get("id"),o.get("item"));break;case"set_previous_item":!function(t,e){if(!t)throw new Error('Missing id for "set-previous-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-previous-item" action');e=e||"clamp";const n=et(t);n&&n.setPreviousItem(e)}(o.get("id"),o.get("overflow"));break;case"set_next_item":!function(t,e){if(!t)throw new Error('Missing id for "set-next-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-next-item" action');e=e||"clamp";const n=et(t);n&&n.setNextItem(e)}(o.get("id"),o.get("overflow"));break;case"set_variable":const i=o.get("name"),a=o.get("value");if(i&&null!==a){const t=M.get(i);t?"dict"===t.getType()?L(ae(new Error("Setting dict variables is not supported"),{additional:{name:i}})):t.set(a):L(ae(new Error("Cannot find variable"),{additional:{name:i}}))}else L(ae(new Error("Incorrect set_variable_action"),{additional:{url:r}}));break;case"timer":const s=o.get("action"),l=o.get("id");z?z.execTimerAction(l,s):L(ae(new Error("Incorrect timer action"),{additional:{id:l,action:s}}));break;case"video":!function(t,e){if(t){const n=et(t);n?"start"===e?n.start():"pause"===e?n.pause():L(ae(new Error("Unknown video action"),{additional:{id:t,action:e}})):L(ae(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else L(ae(new Error("Missing id in video action"),{additional:{action:e}}))}(o.get("id"),o.get("action"));break;case"download":!function(t,e){if(t){let n;n="function"==typeof x?x(t):x,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var r,i,o;if(n){if(n.templates)for(const t in n.templates)S.hasOwnProperty(t)||(S[t]=n.templates[t]);if(Array.isArray(null===(r=n.patch)||void 0===r?void 0:r.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>!Q.has(t.id)));if(r)return L(ae(new Error("Skipping transactional, child is not found"),{additional:{url:t,id:r.id}})),void Y(null===(i=e.download_callbacks)||void 0===i?void 0:i.on_fail_actions)}n.patch.changes.forEach((t=>{const e=Q.get(t.id);e&&e.replaceWith(t.id,t.items)})),Y(null===(o=e.download_callbacks)||void 0===o?void 0:o.on_success_actions)}}else L(ae(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;L(ae(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),Y(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else L(ae(new Error("Missing url in download action"),{additional:{url:t}}))}(o.get("url"),t);break;case"show_tooltip":!function(t,e){var r;if(!t)return void L(ae(new Error("Missing id in show_tooltip action")));const i=tt.get(t);if(!i)return void L(ae(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&B.some((e=>e.desc.id===t)))return;const o={internalId:++R,ownerNode:i.onwerNode,desc:i.tooltip,timeoutId:0};n(2,B=[...B,o]);const a=null!==(r=i.tooltip.duration)&&void 0!==r?r:5e3;a&&(o.timeoutId=window.setTimeout((()=>{o.timeoutId=0,n(2,B=B.filter((t=>t.internalId!==o.internalId)))}),a))}(o.get("id"),o.get("multiple"));break;case"hide_tooltip":!function(t){t?n(2,B=B.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):L(ae(new Error("Missing id in hide_tooltip action")))}(o.get("id"));break;default:L(ae(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){L(ae(t,{additional:{url:e}}))}}async function Y(t,e){if(t&&Array.isArray(t)){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url;if(i){const t=we(i);if(t)if(xe(t,D)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(K(r),await xt()):r.log_id&&(X(r),await xt())}}t.forEach((t=>{t.log_id&&U("click",t)}))}}function X(t){null==_||_(t)}const Z=new Map,Q=new Map,tt=new Map;function et(t){if(Z.has(t))return Z.get(t);L(ae(new Error("Missing instance with id"),{additional:{id:t}}))}const nt=new Map;function rt(t){for(const e of t)M.has(e)&&t.delete(e);return t}ft(oe,{logError:L,logStat:U,hasTemplate:function(t){return t in S},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in S;){if(({json:t,templateContext:e}=Ka(t,e,S,L)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:H,genClass:function(t){return"divkit-".concat(H())},execAction:K,execAnyActions:Y,execCustomAction:X,isRunning:function(t){return N[t]},setRunning:function(t,e){N[t]=e},registerInstance:function(t,e){Z.has(t)?L(ae(new Error("Duplicate instance id"),{additional:{id:t}})):Z.set(t,e)},unregisterInstance:function(t){Z.delete(t)},registerParentOf:function(t,e){Q.set(t,e)},unregisterParentOf:function(t){Q.delete(t)},registerTooltip:function(t,e){tt.has(e.id)&&L(ae(new Error("Duplicate tooltip id"),{additional:{id:e.id}})),tt.set(e.id,{onwerNode:t,tooltip:e})},unregisterTooltip:function(t){tt.delete(t.id),B.some((e=>e.desc.id===t.id))&&n(2,B=B.filter((e=>e.desc.id!==t.id)))},onTooltipClose:function(t){n(2,B=B.filter((e=>e.internalId!==t)))},tooltipRoot:k,addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(G[r]=G[r]||0,++G[r],q[r])return q[r];const i="".concat(H(),"-svg-filter");return n(3,q=Object.assign(Object.assign({},q),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);G[r]&&0==--G[r]&&n(3,q=Object.keys(q).reduce(((t,e)=>(G[e]&&(t[e]=q[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Xa(t);const e=Pl(t,L);return e.vars.length?re(e.vars.map((t=>M.get(t)||function(t){const e=T.get(t)||ne(void 0);return T.has(t)||T.set(t,e),e}(t))).filter(me),(()=>e.applyVars(M))):e.hasExpression?Xa(e.applyVars(M)):Xa(t)},getJsonWithVars:J,getStore:function(t){return nt.has(t)||function(t){nt.has(t)||nt.set(t,jl[t]())}(t),nt.get(t)},getVariable:function(t,e){const n=M.get(t);if(n){const r=n.getType();if(r!==e)return void L(ae(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==g?void 0:g[t]},getBuiltinProtocols:function(){return D},getExtension:function(t,e){const n=v.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:M,logError:L}},typefaceProvider:w,isDesktop:E,isPointerFocus:Ll,registerComponent:void 0,unregisterComponent:void 0}),ft(We,{hasAction:()=>!1});const it={setState(t){throw new Error("Not implemented")},getChild(t){if(ot&&ot.has(t))return ot.get(t);L(ae(new Error("Missing state block with id"),{additional:{id:t}}))}};let ot=null;ft(Pe,{registerInstance(t,e){ot||(ot=new Map),ot.has(t)?L(ae(new Error("Duplicate state with id"),{additional:{id:t}})):ot.set(t,e)},unregisterInstance(t){null==ot||ot.delete(t)},runVisibilityTransition:(t,e,n,r,i)=>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 at=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variables;Array.isArray(at)&&at.forEach((t=>{if(t&&t.type in Bo&&t.name){if(O.has(t.name))return void L(ae(new Error("Duplicate variable"),{additional:{name:t.name}}));"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&L(ae(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=Jo(t.name,t.type,t.value);O.set(t.name,e),M.set(t.name,e)}catch(e){L(ae(e,{additional:{name:t.name}}))}}}));const st=c.palette;st&&st[C].forEach((t=>{if(O.has(t.name))L(ae(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Jo(t.name,"color",t.color);O.set(t.name,e),M.set(t.name,e)}catch(e){L(ae(e,{additional:{name:t.name}}))}}));for(const[t,e]of F)M.has(t)||M.set(t,e);I.subscribe((t=>{if(t&&!M.has(t)){const e=F.get(t);M.set(t,e);const n=T.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const lt=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(lt)&<.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void L(ae(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=os(t.condition,{startRule:"JsonStringContents"}),i=ys(r);if(!i.length)return void L(ae(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return rt(e),e.size?new Promise((t=>{const n=I.subscribe((()=>{rt(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{re(i.map((t=>M.get(t))).filter(me),(()=>{const t=Cl(M,r);return t.warnings.forEach(L),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=J(t);e.log_id&&K(e)})),e=Boolean(r.value)):L(ae(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){L(ae(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else L(ae(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const ct=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(ct){const t=z=new Rl({logError:L,applyVars:J,hasVariableWithType:function(t,e){const n=M.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=M.get(t);n?n.setValue(e):L(ae(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:Y});ct.forEach((e=>t.createTimer(e)))}const ut=null===(s=null==c?void 0:c.card)||void 0===s?void 0:s.states;let pt;return ut&&!P&&(pt={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:ut.map((t=>({state_id:t.state_id.toString(),div:t.div})))}),dt((()=>{Ul++,1===Ul&&(window.addEventListener("keydown",Wl),window.addEventListener("pointerdown",Hl))})),ht((()=>{Ul--,Ul||(window.removeEventListener("keydown",Wl),window.removeEventListener("pointerdown",Hl)),z&&z.destroy(),B.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)}))})),t.$$set=t=>{"id"in t&&n(9,l=t.id),"json"in t&&n(10,c=t.json),"platform"in t&&n(11,u=t.platform),"theme"in t&&n(8,d=t.theme),"globalVariablesController"in t&&n(12,h=t.globalVariablesController),"mix"in t&&n(0,p=t.mix),"customization"in t&&n(13,g=t.customization),"builtinProtocols"in t&&n(14,m=t.builtinProtocols),"extensions"in t&&n(15,v=t.extensions),"onError"in t&&n(16,y=t.onError),"onStat"in t&&n(17,$=t.onStat),"onCustomAction"in t&&n(18,_=t.onCustomAction),"onComponent"in t&&n(19,b=t.onComponent),"typefaceProvider"in t&&n(20,w=t.typefaceProvider),"fetchInit"in t&&n(21,x=t.fetchInit),"tooltipRoot"in t&&n(22,k=t.tooltipRoot)},t.$$.update=()=>{134217984&t.$$.dirty[0]&&("light"===d||"dark"===d?n(26,C=d):"system"===d?"undefined"!=typeof matchMedia?(A||(n(27,A=matchMedia("(prefers-color-scheme: dark)")),A.addListener(V)),n(26,C=A.matches?"dark":"light")):n(26,C="light"):L(ae(new Error("Unsupported theme")))),67108864&t.$$.dirty[0]&&C&&st&&st[C].forEach((t=>{const e=M.get(t.name);e&&e.setValue(t.color)}))},[p,P,B,q,pt,r,E,{},d,l,c,u,h,g,m,v,y,$,_,b,w,x,k,function(t){n(8,d=t)},function(){},K,C,A]}const Kl=class extends te{constructor(t){super(),Zt(this,t,Gl,Jl,d,{id:9,json:10,platform:11,theme:8,globalVariablesController:12,mix:0,customization:13,builtinProtocols:14,extensions:15,onError:16,onStat:17,onCustomAction:18,onComponent:19,typefaceProvider:20,fetchInit:21,tooltipRoot:22,setTheme:23,getDebugVariables:24,execAction:25},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[23]}get getDebugVariables(){return this.$$.ctx[24]}get execAction(){return this.$$.ctx[25]}};class Yl{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 xt()}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 Xl(t){return t instanceof HTMLElement}function Zl(t){return class{constructor(t){this.params=t}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(Xl);r.forEach((t=>{t.style.display="none"})),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),o=this.animItem=t({container:this.wrapper,path:this.params.lottie_url,animationData:this.params.lottie_json,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",(()=>{var t;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""}));const e=new Error("Failed to load lottie animation");e.level="error",e.additional={url:this.params.lottie_url},n.logError(e)})),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;o.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(o.stop(),o.goToAndStop(o.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,o.setDirection(t)),o.goToAndPlay(1===t?0:o.totalFrames,!0))}))}}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)}}}function Ql(t){return new Kl({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,mix:t.mix,customization:t.customization,builtinProtocols:t.builtinProtocols,extensions:t.extensions,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,typefaceProvider:t.typefaceProvider,platform:t.platform,theme:t.theme,fetchInit:t.fetchInit,tooltipRoot:t.tooltipRoot},hydrate:t.hydrate})}var tc=e.Hy,ec=e.M,nc=e.Os,rc=e._0,ic=e.sY;export{tc as SizeProvider,ec as createGlobalVariablesController,nc as createVariable,rc as lottieExtensionBuilder,ic 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,{Hy:()=>Yl,M:()=>Ml,Os:()=>Jo,_0:()=>Zl,sY:()=>Ql});const r=t=>t;function i(t,e){for(const n in e)t[n]=e[n];return t}function o(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(o)}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 h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(null==t){for(const t of r)t(void 0);return n}const o=t.subscribe(...r);return o.unsubscribe?()=>o.unsubscribe():o}function f(t,e,n){t.$$.on_destroy.push(h(e,n))}function p(t,e,n,r){if(t){const i=g(t,e,n,r);return t[0](i)}}function g(t,e,n,r){return t[1]&&r?i(n.ctx.slice(),t[1](r(e))):n.ctx}function m(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|i[r];return t}return e.dirty|i}return e.dirty}function v(t,e,n,r,i,o){if(i){const a=g(e,n,r,o);t.p(a,i)}}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 _(t){return t&&l(t.destroy)?t.destroy:n}const b="undefined"!=typeof window;let w=b?()=>window.performance.now():()=>Date.now(),x=b?t=>requestAnimationFrame(t):n;const k=new Set;function E(t){k.forEach((e=>{e.c(t)||(k.delete(e),e.f())})),0!==k.size&&x(E)}function C(t){let e;return 0===k.size&&x(E),{promise:new Promise((n=>{k.add(e={c:t,f:n})})),abort(){k.delete(e)}}}const A="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 D{constructor(t){V(this,"_listeners","WeakMap"in A?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;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 P=!1;function j(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function S(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=T("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(S(t),e),e.sheet}function I(t,e){if(P){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let i=0;for(let t=0;t<e.length;t++){const o=e[t].claim_order,a=(i>0&&e[n[i]].claim_order<=o?i+1:j(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const s=a+1;n[s]=t,i=Math.max(s,i)}const o=[],a=[];let s=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);o.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<o.length&&a[e].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function F(t,e,n){P&&!n?I(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function O(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 T(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 J(){return R("")}function L(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function U(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const W=["width","height"];function H(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===W.indexOf(r)?t[r]=e[r]:U(t,r,e[r])}function q(t){return Array.from(t.childNodes)}function G(t,e,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const o=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function K(t,e,n,r){return G(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const i=t.attributes[r];n[i.name]||e.push(i.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function Y(t,e,n){return K(t,e,n,T)}function X(t,e,n){return K(t,e,n,z)}function Z(t,e){return G(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>R(e)),!0)}function Q(t){return Z(t," ")}function tt(t,e){e=""+e,t.data!==e&&(t.data=e)}function et(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function nt(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 rt(t,e){return new t(e)}const it=new Map;let ot,at=0;function st(t,e,n,r,i,o,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)*o(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),h=S(t),{stylesheet:f,rules:p}=it.get(h)||function(t,e){const n={stylesheet:N(e),rules:{}};return it.set(t,n),n}(h,t);p[d]||(p[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(i,"ms 1 both"),at+=1,d}function lt(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-r.length;i&&(t.style.animation=r.join(", "),at-=i,at||x((()=>{at||(it.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&O(e)})),it.clear())})))}function ct(t){ot=t}function ut(){if(!ot)throw new Error("Function called outside component initialization");return ot}function dt(t){ut().$$.on_mount.push(t)}function ht(t){ut().$$.on_destroy.push(t)}function ft(t,e){return ut().$$.context.set(t,e),e}function pt(t){return ut().$$.context.get(t)}function gt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const mt=[],vt=[];let yt=[];const $t=[],_t=Promise.resolve();let bt=!1;function wt(){bt||(bt=!0,_t.then(Vt))}function xt(){return wt(),_t}function kt(t){yt.push(t)}const Et=new Set;let Ct,At=0;function Vt(){if(0!==At)return;const t=ot;do{try{for(;At<mt.length;){const t=mt[At];At++,ct(t),Dt(t.$$)}}catch(t){throw mt.length=0,At=0,t}for(ct(null),mt.length=0,At=0;vt.length;)vt.pop()();for(let t=0;t<yt.length;t+=1){const e=yt[t];Et.has(e)||(Et.add(e),e())}yt.length=0}while(mt.length);for(;$t.length;)$t.pop()();bt=!1,Et.clear(),ct(t)}function Dt(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(kt)}}function Pt(){return Ct||(Ct=Promise.resolve(),Ct.then((()=>{Ct=null}))),Ct}function jt(t,e,n){t.dispatchEvent(function(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})}("".concat(e?"intro":"outro").concat(n)))}const St=new Set;let Nt;function It(){Nt={r:0,c:[],p:Nt}}function Ft(){Nt.r||s(Nt.c),Nt=Nt.p}function Ot(t,e){t&&t.i&&(St.delete(t),t.i(e))}function Mt(t,e,n,r){if(t&&t.o){if(St.has(t))return;St.add(t),Nt.c.push((()=>{St.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Tt={duration:0};function zt(t,e,i){const o={direction:"in"};let a,s,c=e(t,i,o),u=!1,d=0;function h(){a&<(t,a)}function f(){const{delay:e=0,duration:i=300,easing:o=r,tick:l=n,css:f}=c||Tt;f&&(a=st(t,0,1,i,e,o,f,d++)),l(0,1);const p=w()+e,g=p+i;s&&s.abort(),u=!0,kt((()=>jt(t,!0,"start"))),s=C((e=>{if(u){if(e>=g)return l(1,0),jt(t,!0,"end"),h(),u=!1;if(e>=p){const t=o((e-p)/i);l(t,1-t)}}return u}))}let p=!1;return{start(){p||(p=!0,lt(t),l(c)?(c=c(o),Pt().then(f)):f())},invalidate(){p=!1},end(){u&&(h(),u=!1)}}}function Rt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Bt(t,e){Mt(t,1,1,(()=>{e.delete(t.key)}))}function Jt(t,e,n,r,i,o,a,l,c,u,d,h){let f=t.length,p=o.length,g=f;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,_=[];for(g=p;g--;){const t=h(i,o,g),s=n(t);let l=a.get(s);l?r&&_.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 b=new Set,w=new Set;function x(t){Ot(t,1),t.m(l,d),a.set(t.key,t),d=t.first,p--}for(;f&&p;){const e=v[p-1],n=t[f-1],r=e.key,i=n.key;e===n?(d=e.first,f--,p--):y.has(i)?!a.has(r)||b.has(r)?x(e):w.has(i)?f--:$.get(r)>$.get(i)?(w.add(r),x(e)):(b.add(i),f--):(c(n,a),f--)}for(;f--;){const e=t[f];y.has(e.key)||c(e,a)}for(;p;)x(v[p-1]);return s(_),v}function Lt(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],s=e[o];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)i[t]||(n[t]=s[t],i[t]=1);t[o]=s}else for(const t in a)i[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 Gt(t){t&&t.c()}function Kt(t,e){t&&t.l(e)}function Yt(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),kt((()=>{const e=t.$$.on_mount.map(o).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),i.forEach(kt)}function Xt(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];yt.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),yt=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Zt(t,e,r,i,o,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=ot;ct(t);const h=t.$$={fragment:null,ctx:[],props:l,update:n,not_equal:o,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(h.root);let f=!1;if(h.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 h.ctx&&o(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),f&&function(t,e){-1===t.$$.dirty[0]&&(mt.push(t),wt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),f=!0,s(h.before_update),h.fragment=!!i&&i(h.ctx),e.target){if(e.hydrate){P=!0;const t=q(e.target);h.fragment&&h.fragment.l(t),t.forEach(O)}else h.fragment&&h.fragment.c();e.intro&&Ot(t.$$.fragment),Yt(t,e.target,e.anchor),P=!1,Vt()}ct(d)}function Qt(t,e,n,r){var i;const o=null===(i=n[t])||void 0===i?void 0:i.type;if(e="Boolean"===o&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(o){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(o){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=T("slot"),"default"!==t&&U(e,"name",t)},m:function(t,n){!function(t,e,n){t.insertBefore(e,n||null)}(t,e,n)},d:function(t){t&&O(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const i of this.$$s)i in n&&(e[i]=[t(i)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=Qt(a,o.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=Qt(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]=Qt(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 te{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 ee=[];function ne(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const i=new Set;function o(n){if(o=n,((r=t)!=r?o==o:r!==o||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!ee.length;for(const e of i)e[1](),ee.push(e,t);if(e){for(let t=0;t<ee.length;t+=2)ee[t][0](ee[t+1]);ee.length=0}}var r,o}function a(e){o(e(t))}return{set:o,update:a,subscribe:function(s){const l=[s,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return i.add(l),1===i.size&&(e=r(o,a)||n),s(t),()=>{i.delete(l),0===i.size&&e&&(e(),e=null)}}}}function re(t,e,r){const i=!Array.isArray(t),o=i?[t]:t;if(!o.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 p=()=>{if(d)return;f();const o=e(i?u[0]:u,t,r);a?t(o):f=l(o)?o:n},g=o.map(((t,e)=>h(t,(t=>{u[e]=t,d&=~(1<<e),c&&p()}),(()=>{d|=1<<e}))));return c=!0,p(),function(){s(g),f(),c=!1}},{subscribe:ne(r,c).subscribe};var c}const ie={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"},oe=Symbol("root");function ae(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 se={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},le={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 ce(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 ue(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function de(t){let e=ue(t);return"0"===e&&(e+="em"),e}function he(t,e){for(;t.length<e;)t="0"+t;return t}function fe(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=>he(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,i,o]=e,a=2===r.length?r:r+r,s=2===i.length?i:i+i,l=2===o.length?o:o+o,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,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function ge(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&")),e.indexOf("<")>-1&&(e=e.replace(/</g,"<")),e.indexOf(">")>-1&&(e=e.replace(/>/g,">")),e.indexOf('"')>-1&&(e=e.replace(/"/g,""")),e}const me=Boolean;function ve(t){if(1===t.length&&"solid"===t[0].type)return{color:fe(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=fe(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(me);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>fe(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:_e(t.bg.scale),pos:be(t.bg),image:'url("'+ge(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(me);if(!n.length)return;const r=t.bg.radius;let i;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?i=de(r.value):"relative"===r.type&&(i=ye[r.value]));const o=$e(t.bg.center_x),a=$e(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(i||"farthest-corner"," at ").concat(o," ").concat(a)+","+n.map((t=>fe(t))).join(",")+")"}}({bg:t}):void 0)).filter(me).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 ye={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function $e(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return de(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function _e(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function be(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 we(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function xe(t,e){return e.has(t)}function ke(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 Ee(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ke(Object(n),!0).forEach((function(e){Ce(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ce(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 Ae(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function Ve(t,e){e&&t.push(e)}function De(t,e,n){const r=[];Ve(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&Ve(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const Pe=Symbol("state");function je(t){return ue(t.top||0)+" "+ue(t.right||0)+" "+ue(t.bottom||0)+" "+ue(t.left||0)}function Se(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Ne(t){return Se(t)&&t>=0}function Ie(t,e){if(!t)return e;const n=[t.top,t.right,t.bottom,t.left];for(let t=0;t<n.length;++t)if(n[t]&&!Ne(n[t]))return e;return je(t)}function Fe(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Oe=Object.prototype.hasOwnProperty;function Me(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 i=n[r];if(!Oe.call(e,i)||!Me(t[i],e[i]))return!1}return!0}function Te(t,e){return Me(t,e)?e:t}function ze(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Re(t,e){const n=Number(t);return isNaN(n)?e:n}function Be(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Be(t))})):e.push(t),e}function Je(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]]&&!Ne(t[n[r]]))return e;return t}function Le(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=>ue((t||e)/n*10))).join(" ")}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,o,a,l,c,u,d;const h=t[15].default,f=p(h,t,t[14],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?ie.root__clickable:ie["root__clickable-no-transition"]," ").concat(ie.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ie["root_disabled-context-menu"]:"")},{style:t[2]},{role:o=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=i($,g[t]);return{c(){n=T("span"),f&&f.c(),this.h()},l(t){n=Y(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=q(n);f&&f.l(e),e.forEach(O),this.h()},h(){H(n,$)},m(e,r){F(e,n,r),f&&f.m(n,null),t[23](n),c=!0,u||(d=[_(l=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])],u=!0)},p(t,e){var i;f&&f.p&&(!c||16384&e[0])&&v(f,h,t,t[14],c?m(h,t[14],e,null):y(t[14]),null),H(n,$=Lt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?ie.root__clickable:ie["root__clickable-no-transition"]," ").concat(ie.root__unselectable):"")+" "+(null!==(i=t[0])&&void 0!==i&&i.length?ie["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&o!==(o=t[8]?"button":null))&&{role:o},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(Ot(f,t),c=!0)},o(t){Mt(f,t),c=!1},d(e){e&&O(n),f&&f.d(e),t[23](null),u=!1,s(d)}}}function Ge(t){var e;let n,r,o,a,l,c;const u=t[15].default,d=p(u,t,t[14],null);let h=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?ie.root__clickable:ie["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ie["root_disabled-context-menu"]:"")},t[3]],f={};for(let t=0;t<h.length;t+=1)f=i(f,h[t]);return{c(){n=T("a"),d&&d.c(),this.h()},l(t){n=Y(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=q(n);d&&d.l(e),e.forEach(O),this.h()},h(){H(n,f)},m(e,r){F(e,n,r),d&&d.m(n,null),t[22](n),a=!0,l||(c=[_(o=t[4].call(null,n)),L(n,"click",t[16]),L(n,"keydown",t[10]),L(n,"focus",t[17]),L(n,"blur",t[18])],l=!0)},p(t,e){var i;d&&d.p&&(!a||16384&e[0])&&v(d,u,t,t[14],a?m(u,t[14],e,null):y(t[14]),null),H(n,f=Lt(h,[(!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]?ie.root__clickable:ie["root__clickable-no-transition"])+" "+(null!==(i=t[0])&&void 0!==i&&i.length?ie["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Ot(d,t),a=!0)},o(t){Mt(d,t),a=!1},d(e){e&&O(n),d&&d.d(e),t[22](null),l=!1,s(c)}}}function Ke(t){let e,n,r,i;const o=[Ge,qe],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=o[e](t),{c(){n.c(),r=J()},l(t){n.l(t),r=J()},m(t,n){a[e].m(t,n),F(t,r,n),i=!0},p(t,i){let l=e;e=s(t),e===l?a[e].p(t,i):(It(),Mt(a[l],1,1,(()=>{a[l]=null})),Ft(),n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Ot(n,1),n.m(r.parentNode,r))},i(t){i||(Ot(n),i=!0)},o(t){Mt(n),i=!1},d(t){t&&O(r),a[e].d(t)}}}function Ye(t,e,n){let{$$slots:r={},$$scope:i}=e,{actions:o}=e,{doubleTapActions:a}=e,{longTapActions:s}=e,{cls:l=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=Ue}=e,{customAction:h=null}=e,{isNativeActionAnimation:f=!0}=e;const p=pt(oe),g=pt(We);let m;ft(We,{hasAction:()=>Boolean(g.hasAction()||(null==o?void 0:o.length))});let v,y="",$=-1,_=null,b=!1,w=!1;async function x(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():o&&(o.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=we(e);return n&&!xe(n,p.getBuiltinProtocols())}))&&t.preventDefault(),p.execAnyActions(o)))}function k(t){g.hasAction()||void 0!==t.button&&0!==t.button||p.execAnyActions(a,!0)}function E(t){t.touches.length>1||(_=He(t),b=!1,$=Date.now())}function C(t){if(!_)return;const e=He(t);(Math.abs(_.x-e.x)>8||Math.abs(_.y-e.y)>8)&&(b=!0)}function A(){!_||$<0||(!b&&Date.now()-$>=400&&p.execAnyActions(s,!0),_=null,$=-1)}return t.$$set=t=>{"actions"in t&&n(11,o=t.actions),"doubleTapActions"in t&&n(12,a=t.doubleTapActions),"longTapActions"in t&&n(0,s=t.longTapActions),"cls"in t&&n(1,l=t.cls),"style"in t&&n(2,c=t.style),"attrs"in t&&n(3,u=t.attrs),"use"in t&&n(4,d=t.use),"customAction"in t&&n(13,h=t.customAction),"isNativeActionAnimation"in t&&n(5,f=t.isNativeActionAnimation),"$$scope"in t&&n(14,i=t.$$scope)},t.$$.update=()=>{if(10368&t.$$.dirty[0]){if(Array.isArray(o)&&(null==o?void 0:o.length))for(let t=0;t<o.length;++t){const e=o[t].url;if(e){n(7,y=e),n(9,v=o[t].target||void 0);break}}Array.isArray(o)&&(null==o?void 0:o.length)&&g.hasAction()&&(n(7,y=""),p.logError(ae(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:o}}))),n(8,w=Boolean(h)),y&&!xe(we(y),p.getBuiltinProtocols())?(n(7,y=""),n(8,w=!0)):!y&&Array.isArray(o)&&(null==o?void 0:o.length)&&(n(8,w=!0),p.logError(ae(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:o}})))}4545&t.$$.dirty[0]&&m&&(y||w?m.addEventListener("click",x):m.removeEventListener("click",x),(null==a?void 0:a.length)?m.addEventListener("dblclick",k):m.removeEventListener("dblclick",k),(null==s?void 0:s.length)?(m.addEventListener("touchstart",E,{passive:!0}),m.addEventListener("touchmove",C,{passive:!0}),m.addEventListener("touchend",A,{passive:!0}),m.addEventListener("touchcancel",A,{passive:!0})):(m.removeEventListener("touchstart",E),m.removeEventListener("touchmove",C),m.removeEventListener("touchend",A),m.removeEventListener("touchcancel",A)))},[s,l,c,u,d,f,m,y,w,v,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(o)&&o.length&&(p.execAnyActions(o),t.preventDefault())},o,a,h,i,r,function(e){gt.call(this,t,e)},function(e){gt.call(this,t,e)},function(e){gt.call(this,t,e)},function(e){gt.call(this,t,e)},function(e){gt.call(this,t,e)},function(e){gt.call(this,t,e)},function(t){vt[t?"unshift":"push"]((()=>{m=t,n(6,m)}))},function(t){vt[t?"unshift":"push"]((()=>{m=t,n(6,m)}))}]}const Xe=class extends te{constructor(t){super(),Zt(this,t,Ye,Ke,d,{actions:11,doubleTapActions:12,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:13,isNativeActionAnimation:5},null,[-1,-1])}},Ze={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function Qe(t){return Se(t)&&t>0}function tn(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(Qe(t.radius))return"blur(".concat(de(t.radius/2),")")}else e(ae(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function en(t,e,n){const r=t.slice();return r[5]=e[n],r}function nn(t){let e,n,r;return{c(){e=T("span"),this.h()},l(t){e=Y(t,"SPAN",{class:!0,style:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=Ze["outer-background__item"]),U(e,"style",r=ce(t[5].style))},m(t,n){F(t,e,n)},p(t,n){2&n&&r!==(r=ce(t[5].style))&&U(e,"style",r)},d(t){t&&O(e)}}}function rn(t){let e,n,r,i,o,a;return{c(){e=T("img"),this.h()},l(t){e=Y(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){u(e.src,n=t[5].image_url)||U(e,"src",n),U(e,"alt",""),U(e,"aria-hidden","true"),U(e,"loading","lazy"),U(e,"decoding","async"),U(e,"class",r=Ze["outer-background__item"]),U(e,"style",i=ce(t[5].style))},m(n,r){F(n,e,r),o||(a=L(e,"error",t[2]),o=!0)},p(t,r){2&r&&!u(e.src,n=t[5].image_url)&&U(e,"src",n),2&r&&i!==(i=ce(t[5].style))&&U(e,"style",i)},d(t){t&&O(e),o=!1,a()}}}function on(t){let e;function n(t,e){return t[5].image_url?rn:nn}let r=n(t),i=r(t);return{c(){i.c(),e=J()},l(t){i.l(t),e=J()},m(t,n){i.m(t,n),F(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&O(e),i.d(t)}}}function an(t){let e,r,i=Rt(t[1]),o=[];for(let e=0;e<i.length;e+=1)o[e]=on(en(t,i,e));return{c(){e=T("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=Y(t,"SPAN",{class:!0});var n=q(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(O),this.h()},h(){U(e,"class",r=Ze["outer-background"]+(t[0]?" "+Ze["outer-background_clip"]:"")),et(e,"border-radius",t[0])},m(t,n){F(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(i=Rt(t[1]),n=0;n<i.length;n+=1){const r=en(t,i,n);o[n]?o[n].p(r,a):(o[n]=on(r),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=i.length}1&a&&r!==(r=Ze["outer-background"]+(t[0]?" "+Ze["outer-background_clip"]:""))&&U(e,"class",r),1&a&&et(e,"border-radius",t[0])},i:n,o:n,d(t){t&&O(e),M(o,t)}}}function sn(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=pt(oe);return t.$$set=t=>{"background"in t&&n(3,i=t.background),"radius"in t&&n(0,o=t.radius)},t.$$.update=()=>{8&t.$$.dirty&&n(1,r=i.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=ve([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=tn(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Ze["outer-background__item_hidden"])},i]}const ln=class extends te{constructor(t){super(),Zt(this,t,sn,an,d,{background:3,radius:0})}},cn=t=>({hasCustomFocus:64&t[0]}),un=t=>({focusHandler:t[36],blurHandler:t[37],hasCustomFocus:t[6]});function dn(t){let e,n;return e=new Xe({props:{use:t[35],cls:t[0]+" "+De("outer",le,t[17]),style:ce(t[15]),actions:t[11],doubleTapActions:t[12],longTapActions:t[13],attrs:t[7],isNativeActionAnimation:!t[5].length||mn(t[5]),$$slots:{default:[pn]},$$scope:{ctx:t}}}),e.$on("focus",t[36]),e.$on("blur",t[37]),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};131073&n[0]&&(r.cls=t[0]+" "+De("outer",le,t[17])),32768&n[0]&&(r.style=ce(t[15])),2048&n[0]&&(r.actions=t[11]),4096&n[0]&&(r.doubleTapActions=t[12]),8192&n[0]&&(r.longTapActions=t[13]),128&n[0]&&(r.attrs=t[7]),32&n[0]&&(r.isNativeActionAnimation=!t[5].length||mn(t[5])),350&n[0]|268435456&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function hn(t){let e,n;return e=new ln({props:{background:t[3],radius:t[2]}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};8&n[0]&&(r.background=t[3]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function fn(t){let e,n,r;return{c(){e=T("span"),this.h()},l(t){e=Y(t,"SPAN",{class:!0,style:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=le.outer__border),U(e,"style",r=ce(t[1]))},m(t,n){F(t,e,n)},p(t,n){2&n[0]&&r!==(r=ce(t[1]))&&U(e,"style",r)},d(t){t&&O(e)}}}function pn(t){let e,n,r,i=t[4]&&hn(t);const o=t[120].default,a=p(o,t,t[121],un);let s=t[8]&&fn(t);return{c(){i&&i.c(),e=J(),a&&a.c(),s&&s.c(),n=J()},l(t){i&&i.l(t),e=J(),a&&a.l(t),s&&s.l(t),n=J()},m(t,o){i&&i.m(t,o),F(t,e,o),a&&a.m(t,o),s&&s.m(t,o),F(t,n,o),r=!0},p(t,l){t[4]?i?(i.p(t,l),16&l[0]&&Ot(i,1)):(i=hn(t),i.c(),Ot(i,1),i.m(e.parentNode,e)):i&&(It(),Mt(i,1,1,(()=>{i=null})),Ft()),a&&a.p&&(!r||64&l[0]|268435456&l[3])&&v(a,o,t,t[121],r?m(o,t[121],l,cn):y(t[121]),un),t[8]?s?s.p(t,l):(s=fn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Ot(i),Ot(a,t),r=!0)},o(t){Mt(i),Mt(a,t),r=!1},d(t){t&&(O(e),O(n)),i&&i.d(t),a&&a.d(t),s&&s.d(t)}}}function gn(t){let e,n,r=!t[9]&&!t[10]&&dn(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[9]||t[10]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),1536&n[0]&&Ot(r,1)):(r=dn(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function mn(t){return t.some((t=>"native"===t.name))}function vn(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,N,I,F,O,M,T,z,R,B,J,L,U,W,H,q,G,K,Y=n,X=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,it=n,ot=n,at=n,st=n,lt=n,ct=n,ut=n,dt=n,ft=n,gt=n,mt=n;t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),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((()=>it())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt()));let{$$slots:vt={},$$scope:yt}=e;var $t,_t,bt,wt,kt,Et;let{json:Ct={}}=e,{origJson:At}=e,{templateContext:Vt}=e,{cls:Dt=""}=e,{style:Pt}=e,{layoutParams:jt={}}=e,{customDescription:St=!1}=e,{customPaddings:Nt=!1}=e,{customActions:It=""}=e,{additionalPaddings:Ft=null}=e,{heightByAspect:Ot=!1}=e,{parentOf:Mt}=e,{replaceItems:Tt}=e;const zt={left:"start",center:"center",right:"end"},Rt={top:"start",center:"center",bottom:"end",baseline:"baseline"},Bt=pt(oe),Jt=pt(Pe);let Lt,Ut,Wt=null,Ht=[];function qt(t,e){if(!Array.isArray(Mt)||!Tt)return;const n=Mt.findIndex((e=>(null==e?void 0:e.id)===t)),i=Mt.slice();i.splice(n,1,...e||[]),r(38,Mt=i),Tt(i)}let Gt,Kt,Yt,Xt,Zt,Qt,te,ee,ne,re,ie={},se={},le=!1,ce=1,he="transparent",pe=0,ge={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},ye="",$e=null,_e="",be={},ke=0,Ce=0,Ve=0,De=!1,Se=!1,Oe={},Me=0,Ue=0,We=0,He=!1,qe=!1,Ge=1;const Ke=jt.fakeElement?[]:Ct.transition_triggers||["state_change","visibility_change"],Ye=-1!==Ke.indexOf("state_change")&&Ct.id,Xe=-1!==Ke.indexOf("visibility_change")&&Ct.id;let Ze,Qe,tn,en,nn,rn,on,an=[],sn=[],ln=[],cn=[],un=[],dn=[],hn="";function fn(t){const e=Re(t.start_value,1),n=Re(t.end_value,1),i=Fe(t.start_delay,0),o=Fe(t.duration,300),a=ze(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(87,en=e),r(88,nn=n),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return r(89,rn=e),r(90,on=n),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return Bt.logError(ae(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let pn,gn,mn,vn=!1,yn="visible",$n=0,_n=0;return ht((()=>{var t;Ht.forEach((t=>{Bt.unregisterParentOf(t)})),r(56,Ht=[]),null===(t=Ct.tooltips)||void 0===t||t.forEach((t=>{Bt.unregisterTooltip(t)}))})),t.$$set=t=>{"json"in t&&r(39,Ct=t.json),"origJson"in t&&r(40,At=t.origJson),"templateContext"in t&&r(41,Vt=t.templateContext),"cls"in t&&r(0,Dt=t.cls),"style"in t&&r(42,Pt=t.style),"layoutParams"in t&&r(43,jt=t.layoutParams),"customDescription"in t&&r(44,St=t.customDescription),"customPaddings"in t&&r(45,Nt=t.customPaddings),"customActions"in t&&r(46,It=t.customActions),"additionalPaddings"in t&&r(47,Ft=t.additionalPaddings),"heightByAspect"in t&&r(48,Ot=t.heightByAspect),"parentOf"in t&&r(38,Mt=t.parentOf),"replaceItems"in t&&r(49,Tt=t.replaceItems),"$$scope"in t&&r(121,yt=t.$$scope)},t.$$.update=()=>{if(33554560&t.$$.dirty[1]&&(Ht.forEach((t=>{Bt.unregisterParentOf(t)})),r(56,Ht=[]),Mt&&Mt.forEach((t=>{t.id&&(Ht.push(t.id),Bt.registerParentOf(t.id,{replaceWith:qt}))}))),256&t.$$.dirty[1]&&(r(34,i=Bt.getDerivedFromVars(Ct.focus)),tt(),tt=h(i,(t=>r(105,F=t)))),256&t.$$.dirty[1]&&(r(33,o=Bt.getDerivedFromVars(Ct.border)),mt(),mt=h(o,(t=>r(119,K=t)))),66&t.$$.dirty[0]|2113404928&t.$$.dirty[1]|67112960&t.$$.dirty[3]){const t=mn&&(null==F?void 0:F.border)?F.border:K;let e={},n={},i=!1,o="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?ue((null===r(51,_t=null===r(50,$t=n.offset)||void 0===$t?void 0:$t.x)||void 0===_t?void 0:_t.value)||0)+" "+ue((null===r(53,wt=null===r(52,bt=n.offset)||void 0===bt?void 0:bt.y)||void 0===wt?void 0:wt.value)||0)+" "+ue(null!==r(54,kt=n.blur)&&void 0!==kt?kt:2)+" "+fe(n.color||"#000000",null!==r(55,Et=n.alpha)&&void 0!==Et?Et:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(i=!0,r(58,ce=Fe(t.stroke.width,ce)),r(59,he=fe(t.stroke.color,1,he)),n.border="".concat(ue(ce)," solid ").concat(he)),t.corners_radius?(r(61,ge=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]&&!Ne(n[t]))return e;return t}(t.corners_radius,ge)),n["border-radius"]=e["border-radius"]=Le(ge)):t.corner_radius&&(r(60,pe=Fe(t.corner_radius,pe)),r(61,ge={"top-left":pe,"top-right":pe,"bottom-right":pe,"bottom-left":pe}),n["border-radius"]=e["border-radius"]=ue(pe)),i&&ce&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},ge);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+ce/2})),o=Le(t)}}r(57,ie=Te(e,ie)),r(1,se=Te(n,se)),r(8,le=i),r(2,ye=o)}if(256&t.$$.dirty[1]&&(r(32,a=Bt.getDerivedFromVars(Ct.paddings)),gt(),gt=h(a,(t=>r(118,G=t)))),16384&t.$$.dirty[1]|1&t.$$.dirty[2]|33554432&t.$$.dirty[3]&&r(62,$e=Je(G&&!Nt?G:void 0,$e)),65536&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(98,s=je(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const i=t[r];i&&(n[r]=i);const o=e[r];o&&(n[r]=(n[r]||0)+o)})),n}($e,Ft))),256&t.$$.dirty[1]&&(r(31,l=Bt.getDerivedFromVars(Ct.margins)),dt(),dt=h(l,(t=>r(116,H=t)))),2&t.$$.dirty[2]|8388608&t.$$.dirty[3]&&r(63,_e=Ie(H,_e)),256&t.$$.dirty[1]&&(r(30,c=Bt.getDerivedFromVars(Ct.width)),ct(),ct=h(c,(t=>r(114,U=t)))),256&t.$$.dirty[1]&&(r(29,u=Bt.getDerivedFromVars(Ct.alignment_horizontal)),ft(),ft=h(u,(t=>r(117,q=t)))),4096&t.$$.dirty[1]|68&t.$$.dirty[2]|27262976&t.$$.dirty[3]){let t,e,n,i,o={},a=0,s=0,l=!1,c=!1;const u=null==U?void 0:U.type;if("fixed"===u)r(68,ke=Fe(null==U?void 0:U.value,ke)),e=ue(ke);else if("wrap_content"!==u&&(jt.overlapParent||"match_parent"!==u&&u||!jt.parentHorizontalWrapContent))t="parent","vertical"===jt.parentContainerOrientation&&jt.parentContainerWrap&&(c=!0,Bt.logError(ae(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===jt.parentLayoutOrientation?e="calc(100% - ".concat(de(((null==H?void 0:H.left)||0)+((null==H?void 0:H.right)||0)),")"):"horizontal"===jt.parentContainerOrientation&&(a=U&&"weight"in U&&U.weight||1,jt.parentContainerWrap&&(l=!0));else{if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||("match_parent"===u||!u)&&jt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===jt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=U;t.min_size&&Ne(t.min_size.value)&&(n=ue(t.min_size.value)),t.max_size&&Ne(t.max_size.value)&&(i=ue(t.max_size.value))}"match_parent"!==u&&u||Bt.logError(ae(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}if("parent"===t)o["halign-self"]="stretch";else{const t=q;o["halign-self"]="left"===t||"center"===t||"right"===t?zt[t]:jt.parentHAlign||"start"}t&&(o.width=t),r(65,Gt=e),r(66,Kt=n),r(67,Yt=i),r(69,Ce=a),r(70,Ve=s),r(64,be=Te(o,be)),r(71,De=l),r(9,Se=c)}if(256&t.$$.dirty[1]&&(r(28,d=Bt.getDerivedFromVars(Ct.height)),lt(),lt=h(d,(t=>r(113,L=t)))),256&t.$$.dirty[1]&&(r(27,f=Bt.getDerivedFromVars(Ct.alignment_vertical)),ut(),ut=h(f,(t=>r(115,W=t)))),135168&t.$$.dirty[1]|17408&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,n,i,o={},a=0,s=0,l=!1,c=!1;const u=null==L?void 0:L.type;if(Ot);else if("fixed"===u)r(76,Me=Fe(null==L?void 0:L.value,Me)),e=ue(Me);else if("match_parent"!==u||!jt.overlapParent&&jt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==L?void 0:L.constrained)||"match_parent"===u&&jt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===jt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=L;(null==t?void 0:t.min_size)&&Ne(t.min_size.value)&&(n=ue(t.min_size.value)),(null==t?void 0:t.max_size)&&Ne(t.max_size.value)&&(i=ue(t.max_size.value))}"match_parent"===u&&Bt.logError(ae(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===jt.parentContainerOrientation&&jt.parentContainerWrap&&(c=!0,Bt.logError(ae(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===jt.parentLayoutOrientation?e="calc(100% - ".concat(de(((null==H?void 0:H.top)||0)+((null==H?void 0:H.bottom)||0)),")"):"vertical"===jt.parentContainerOrientation&&(a=(null==L?void 0:L.weight)||1,jt.parentContainerWrap&&(l=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=W;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===jt.parentContainerOrientation?o["valign-self"]=Rt[t]:o["valign-self"]=jt.parentVAlign||"start"}t&&(o.height=t),r(73,Xt=e),r(74,Zt=n),r(75,Qt=i),r(77,Ue=a),r(78,We=s),r(72,Oe=Te(o,Oe)),r(79,He=l),r(10,qe=c)}var e,n;if(4096&t.$$.dirty[1]&&r(101,p=!!jt.overlapParent||void 0),4096&t.$$.dirty[1]|3145728&t.$$.dirty[3]&&r(100,g=jt.overlapParent&&(!U||"match_parent"===U.type)&&"match_parent"===(null==L?void 0:L.type)),4096&t.$$.dirty[1]&&r(99,m=jt.gridArea?"".concat(jt.gridArea.y+1,"/").concat(jt.gridArea.x+1,"/span ").concat(jt.gridArea.rowSpan,"/span ").concat(jt.gridArea.colSpan):void 0),256&t.$$.dirty[1]&&(r(26,v=Bt.getDerivedFromVars(Ct.alpha)),st(),st=h(v,(t=>r(112,J=t)))),262144&t.$$.dirty[2]|524288&t.$$.dirty[3]&&(r(80,(n=Ge,Ge=!Ne(e=J)||void 0===e||e>1?n:Number(e))),r(81,te=1===Ge?void 0:Ge)),256&t.$$.dirty[1]&&(r(25,y=Bt.getDerivedFromVars(Ct.accessibility)),at(),at=h(y,(t=>r(111,B=t)))),8192&t.$$.dirty[1]|262144&t.$$.dirty[3]&&(r(7,Ut=void 0),B&&!St&&B.description&&(r(7,Ut={}),r(7,Ut["aria-label"]=B.description,Ut))),256&t.$$.dirty[1]&&(r(24,$=Bt.getDerivedFromVars(Ct.background)),ot(),ot=h($,(t=>r(110,R=t)))),92&t.$$.dirty[0]|135168&t.$$.dirty[3]&&(r(3,ee=mn&&(null==F?void 0:F.background)?F.background:R),r(82,ne={}),r(4,re=!1),Array.isArray(ee)&&(r(4,re=ee.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(ye)),!re))){const t=ve(ee);r(82,ne["background-color"]=t.color,ne),r(82,ne["background-image"]=t.image,ne),r(82,ne["background-size"]=t.size,ne),r(82,ne["background-position"]=t.position,ne),r(82,ne["background-repeat"]="no-repeat",ne)}if(256&t.$$.dirty[1]&&(r(83,Ze=void 0),Ye&&Ct.transition_in&&Bt.isRunning("stateChange")&&r(83,Ze=!0)),256&t.$$.dirty[1]&&(r(85,tn=void 0),Ye&&Ct.transition_change&&Bt.isRunning("stateChange")&&Jt.hasTransitionChange(Ct.id)&&r(85,tn=!0)),256&t.$$.dirty[1]&&(r(23,_=Bt.getDerivedFromVars(Ct.action)),rt(),rt=h(_,(t=>r(108,T=t)))),256&t.$$.dirty[1]&&(r(22,b=Bt.getDerivedFromVars(Ct.actions)),it(),it=h(b,(t=>r(109,z=t)))),256&t.$$.dirty[1]&&(r(21,w=Bt.getDerivedFromVars(Ct.doubletap_actions)),nt(),nt=h(w,(t=>r(107,M=t)))),256&t.$$.dirty[1]&&(r(20,x=Bt.getDerivedFromVars(Ct.longtap_actions)),et(),et=h(x,(t=>r(106,O=t)))),36864&t.$$.dirty[1]|126976&t.$$.dirty[3]){let t=z||T&&[T]||[],e=M||[],n=O||[],i=(null==F?void 0:F.on_focus)||[],o=(null==F?void 0:F.on_blur)||[];jt.fakeElement?(t=[],e=[],n=[],i=[],o=[]):(Array.isArray(t)||(t=[],Bt.logError(ae(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Bt.logError(ae(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],Bt.logError(ae(new Error("LongTapActions should be array")))),Array.isArray(i)||(i=[],Bt.logError(ae(new Error("FocusActions should be array")))),Array.isArray(o)||(o=[],Bt.logError(ae(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&It&&(t=[],e=[],n=[],Bt.logError(ae(new Error('Cannot use action on component "'.concat(It,'"'))))),r(11,an=t),r(12,sn=e),r(13,ln=n),cn=i,un=o}if(256&t.$$.dirty[1]&&(r(19,k=Bt.getDerivedFromVars(Ct.action_animation)),Q(),Q=h(k,(t=>r(104,I=t)))),32&t.$$.dirty[0]|2048&t.$$.dirty[3]&&I&&(r(5,dn=Be(I)),r(86,hn=dn.map(fn).filter(Boolean).join(", "))),256&t.$$.dirty[1]&&(r(18,E=Bt.getDerivedFromVars(Ct.visibility)),Z(),Z=h(E,(t=>r(103,N=t)))),1610612736&t.$$.dirty[2]|1024&t.$$.dirty[3]){const t=yn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(N,yn);t!==e&&(!vn||"visible"!==yn&&"visible"!==e?r(92,yn=e):async function(t){r(92,yn=t);const e="visible"===t?"in":"out",n="in"===e?Ct.transition_in:Ct.transition_out;Xe&&n&&(await xt(),"in"===e&&r(84,Qe=!0),Jt.runVisibilityTransition(Object.assign(Object.assign({},Ct),{visibility:"visible"}),Vt,n,Lt,e).then((()=>{"in"===e&&r(84,Qe=!1)})).catch((t=>{throw"in"===e&&r(84,Qe=!1),t})))}(e)),vn||r(91,vn=!0)}if(64&t.$$.dirty[0]|4352&t.$$.dirty[1]|1105200132&t.$$.dirty[2]|384&t.$$.dirty[3]&&r(17,C=Object.assign(Object.assign(Object.assign({},be),Oe),{"parent-overlap":p,"parent-overlap-absolute":g,"scroll-snap":jt.scrollSnap,"hide-on-transition-in":Ze||Qe||tn,visibility:yn,"has-action-animation":Boolean(hn),"parent-flex":jt.parentContainerOrientation||void 0,"parent-grid":Boolean(jt.gridArea)||void 0,"has-custom-focus":Boolean(mn&&Ct.focus)})),256&t.$$.dirty[1]&&(r(16,A=Bt.getDerivedFromVars(Ct.transform)),X(),X=h(A,(t=>r(102,S=t)))),515&t.$$.dirty[3]&&S&&void 0!==S.rotation){const t=S.pivot_x||{type:"pivot-percentage",value:50};r(93,$n=Re(t.value,$n));const e="pivot-fixed"===t.type?ue($n):"".concat($n,"%"),n=S.pivot_y||{type:"pivot-percentage",value:50};r(94,_n=Re(n.value,_n));const i="pivot-fixed"===n.type?ue(_n):"".concat(_n,"%");r(95,pn="".concat(e," ").concat(i)),r(96,gn="rotate(".concat(S.rotation,"deg)"))}164480&t.$$.dirty[2]&&r(97,V=De||He?"100%":Ce||Ue?0:void 0),67110912&t.$$.dirty[1]|521779642&t.$$.dirty[2]|124&t.$$.dirty[3]&&r(15,D=Object.assign(Object.assign(Object.assign(Object.assign({},Pt),ne),ie),{width:Gt,"min-width":Kt,"max-width":Yt,height:Xt,"min-height":Zt,"max-height":Qt||(null==Pt?void 0:Pt["max-height"]),"grid-area":m,padding:s,margin:_e,opacity:te,transition:hn,"transform-origin":pn,transform:gn,"flex-grow":Ce||Ue||void 0,"flex-shrink":Ve||We?1:void 0,"flex-basis":V,"--divkit-animation-opacity-start":en,"--divkit-animation-opacity-end":nn,"--divkit-animation-scale-start":rn,"--divkit-animation-scale-end":on}))},r(14,P=Bt.isPointerFocus),Y(),Y=h(P,(t=>r(126,j=t))),[Dt,se,ye,ee,re,dn,mn,Ut,le,Se,qe,an,sn,ln,P,D,A,C,E,k,x,w,b,_,$,y,v,f,d,u,c,l,a,o,i,function(t){var e;Lt=t,Ye&&Ct.transition_in&&Jt.registerChildWithTransitionIn(Ct,Vt,Ct.transition_in,t).then((()=>{r(83,Ze=!1)})).catch((t=>{throw r(83,Ze=!1),t})),Ye&&Ct.transition_out&&Jt.registerChildWithTransitionOut(Ct,Vt,Ct.transition_out,t),Ye&&Ct.transition_change&&Jt.registerChildWithTransitionChange(Ct,Vt,Ct.transition_change,t).then((()=>{r(85,tn=!1)})).catch((t=>{throw r(85,tn=!1),t}));const n=jt.fakeElement?[]:Ct.visibility_actions||Ct.visibility_action&&[Ct.visibility_action],i=jt.fakeElement?[]:Ct.disappear_actions;(Array.isArray(n)&&n.length||Array.isArray(i)&&i.length)&&function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:i}=e;const o=[];n&&n.forEach((t=>{o.push({type:"visibility",index:o.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{o.push({type:"disappear",index:o.length,action:t,visible:!1,count:0,finished:!1})}));const a=o.map((t=>{const e="visibility"===t.type,n=i.getJsonWithVars({visibility_percentage:t.action.visibility_percentage,visibility_duration:e?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit});return Ee(Ee({},n),{},{visibility_percentage:Ae(e,n.visibility_percentage,e?50:0)})})),s=[...new Set(a.map((t=>t.visibility_percentage/100)))];new IntersectionObserver((t=>{t.forEach((t=>{o.forEach((e=>{const n=a[e.index],r="visibility"===e.type;let o;o=0===n.visibility_percentage?t.intersectionRatio>=1e-12:t.intersectionRatio>=n.visibility_percentage/100;const s=r?!e.visible&&o:e.visible&&!o,l=r?!o:o;s?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===n.log_limit?1/0:n.log_limit||1;++e.count>=t&&(e.finished=!0);const o=i.getJsonWithVars(e.action),a=o.url;if(a){const t=we(a);t&&!xe(t,i.getBuiltinProtocols())&&("div-action"===t?i.execAction(o):o.log_id&&i.execCustomAction(o))}i.logStat(r?"visible":"disappear",o)}),a[e.index].visibility_duration||800)):l&&e.timer&&clearTimeout(e.timer),e.visible=o}))}))}),{threshold:s}).observe(t)}(t,{visibilityActions:n,disappearActions:i,rootCtx:Bt});const o=Ct.id;o&&Jt.registerChild(o),null===(e=Ct.tooltips)||void 0===e||e.forEach((e=>{Bt.registerTooltip(t,e)}));let a=null;if(Array.isArray(Ct.extensions)){const e=Bt.getExtensionContext();Wt=Ct.extensions.map((n=>{var r;const i=Bt.getExtension(n.id,n.params);return i&&(null===(r=i.mountView)||void 0===r||r.call(i,t,e)),i})).filter(me)}return{destroy(){if(o&&Jt.unregisterChild(o),Wt){const e=Bt.getExtensionContext();Wt.forEach((n=>{var r;null===(r=n.unmountView)||void 0===r||r.call(n,t,e)})),Wt=null}a&&a.destroy()}}},function(){Ct.focus&&(j||r(6,mn=!0),Bt.execAnyActions(cn))},function(){Ct.focus&&(r(6,mn=!1),Bt.execAnyActions(un))},Mt,Ct,At,Vt,Pt,jt,St,Nt,It,Ft,Ot,Tt,$t,_t,bt,wt,kt,Et,Ht,ie,ce,he,pe,ge,$e,_e,be,Gt,Kt,Yt,ke,Ce,Ve,De,Oe,Xt,Zt,Qt,Me,Ue,We,He,Ge,te,ne,Ze,Qe,tn,hn,en,nn,rn,on,vn,yn,$n,_n,pn,gn,V,s,m,g,p,S,N,I,F,O,M,T,z,R,B,J,L,U,W,H,q,G,K,vt,yt]}const yn=class extends te{constructor(t){super(),Zt(this,t,vn,gn,d,{json:39,origJson:40,templateContext:41,cls:0,style:42,layoutParams:43,customDescription:44,customPaddings:45,customActions:46,additionalPaddings:47,heightByAspect:48,parentOf:38,replaceItems:49},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 _n(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function bn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function wn(t,e){return bn(t)||e}function xn(t){let e,n;return{c(){e=T("span"),this.h()},l(t){e=Y(t,"SPAN",{class:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=$n["text-range__top-offset"]),et(e,"margin-top",t[4])},m(t,n){F(t,e,n)},p(t,n){16&n&&et(e,"margin-top",t[4])},d(t){t&&O(e)}}}function kn(t){let e;return{c(){e=R(t[0])},l(n){e=Z(n,t[0])},m(t,n){F(t,e,n)},p(t,n){1&n&&tt(e,t[0])},d(t){t&&O(e)}}}function En(t){let e,n,r,i=t[4]&&xn(t);return n=new Xe({props:{cls:De("text-range",$n,t[3]),actions:t[1],style:ce(t[2]),$$slots:{default:[kn]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=J(),Gt(n.$$.fragment)},l(t){i&&i.l(t),e=J(),Kt(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),F(t,e,o),Yt(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=xn(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=De("text-range",$n,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=ce(t[2])),2097153&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(Ot(n.$$.fragment,t),r=!0)},o(t){Mt(n.$$.fragment,t),r=!1},d(t){t&&O(e),i&&i.d(t),Xt(n,t)}}}function Cn(t,e,n){let r,i,o,a,s;var l,c;let{text:u}=e,{rootFontSize:d}=e,{textStyles:h={}}=e,{singleline:f=!1}=e,{actions:p}=e;const g=pt(oe);let m,v="none",y=12,$=1.25,_="",b="",w="",x=null;return t.$$set=t=>{"text"in t&&n(0,u=t.text),"rootFontSize"in t&&n(5,d=t.rootFontSize),"textStyles"in t&&n(6,h=t.textStyles),"singleline"in t&&n(7,f=t.singleline),"actions"in t&&n(1,p=t.actions)},t.$$.update=()=>{if(64&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(10,v=t)}2112&t.$$.dirty&&n(11,y=_n(h.font_size,y)),2112&t.$$.dirty&&Qe(h.line_height)&&n(12,$=Number(h.line_height)/y),64&t.$$.dirty&&Ne(h.letter_spacing)&&n(13,_=ue(h.letter_spacing)),16448&t.$$.dirty&&(n(14,m=wn(h.font_weight,m)),"string"==typeof h.font_family&&h.font_family?n(15,b=g.typefaceProvider(h.font_family,{fontWeight:m||400})):n(15,b="")),65600&t.$$.dirty&&n(16,w=fe(h.text_color,1,w)),64&t.$$.dirty&&n(4,r=h.top_offset?ue(h.top_offset):""),64&t.$$.dirty&&n(19,i=h.background?ve([h.background]):null),320&t.$$.dirty&&((null===n(8,l=h.border)||void 0===l?void 0:l.stroke)&&"transparent"!==fe(h.border.stroke.color)&&Qe(h.border.stroke.width)?n(17,x={color:h.border.stroke.color,width:h.border.stroke.width}):n(17,x=null)),576&t.$$.dirty&&n(18,o=_n(null===n(9,c=h.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:f,decoration:v}),1046560&t.$$.dirty&&n(2,s={"font-size":ue(10*y/d),"line-height":$,"letter-spacing":_,"font-weight":m,"font-family":b,color:w,background:(null==i?void 0:i.color)||void 0,"box-shadow":x?"inset 0 0 0 ".concat(ue(x.width)," ").concat(x.color):void 0,"border-radius":o?ue(o):void 0})},[u,p,s,a,r,d,h,f,l,c,v,y,$,_,m,b,w,x,o,i]}const An=class extends te{constructor(t){super(),Zt(this,t,Cn,En,d,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function Vn(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Dn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Pn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function jn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:Sn}=A;function Nn(t,e,n){const r=t.slice();return r[58]=e[n],r[60]=n,r}function In(t){let e,n;return e=new yn({props:{cls:De("text",se,t[13])+" "+(t[6]?"":ie.root__unselectable),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Bn]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=De("text",se,t[13])+" "+(t[6]?"":ie.root__unselectable)),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),268443312&n[0]|1073741824&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Fn(t){let e,n;return e=new An({props:{text:t[4],rootFontSize:t[5],textStyles:t[28],singleline:t[7]}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),268435456&n[0]&&(r.textStyles=t[28]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function On(t){let e,n,r=Rt(t[10]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Rn(Nn(t,r,e));const o=t=>Mt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=J()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);F(t,e,r),n=!0},p(t,n){if(536872608&n[0]){let a;for(r=Rt(t[10]),a=0;a<r.length;a+=1){const o=Nn(t,r,a);i[a]?(i[a].p(o,n),Ot(i[a],1)):(i[a]=Rn(o),i[a].c(),Ot(i[a],1),i[a].m(e.parentNode,e))}for(It(),a=r.length;a<i.length;a+=1)o(a);Ft()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ot(i[t]);n=!0}},o(t){i=i.filter(Sn);for(let t=0;t<i.length;t+=1)Mt(i[t]);n=!1},d(t){t&&O(e),M(i,t)}}}function Mn(t){let e,r,i,o,a,s,l,c;return{c(){e=T("span"),r=T("img"),this.h()},l(t){e=Y(t,"SPAN",{style:!0});var n=q(e);r=Y(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(O),this.h()},h(){U(r,"class",i=se.text__image),u(r.src,o=t[58].image.url)||U(r,"src",o),U(r,"loading","lazy"),U(r,"decoding","async"),U(r,"aria-hidden","true"),U(r,"alt",""),U(r,"style",a=ce({width:t[58].image.width,height:t[58].image.height,"margin-top":t[9]?"-".concat(t[58].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[58].image.height):void 0,filter:t[58].image.svgFilterId?"url(#".concat(t[58].image.svgFilterId,")"):void 0})),U(e,"style",s=ce(t[58].image.wrapperStyle))},m(n,i){F(n,e,i),I(e,r),l||(c=L(r,"error",t[29]),l=!0)},p(t,n){1024&n[0]&&!u(r.src,o=t[58].image.url)&&U(r,"src",o),1536&n[0]&&a!==(a=ce({width:t[58].image.width,height:t[58].image.height,"margin-top":t[9]?"-".concat(t[58].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[58].image.height):void 0,filter:t[58].image.svgFilterId?"url(#".concat(t[58].image.svgFilterId,")"):void 0}))&&U(r,"style",a),1024&n[0]&&s!==(s=ce(t[58].image.wrapperStyle))&&U(e,"style",s)},i:n,o:n,d(t){t&&O(e),l=!1,c()}}}function Tn(t){let e,n,r=t[58].text&&zn(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[58].text?r?(r.p(t,n),1024&n[0]&&Ot(r,1)):(r=zn(t),r.c(),Ot(r,1),r.m(e.parentNode,e)):r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft())},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function zn(t){let e,n;return e=new An({props:{text:t[58].text,rootFontSize:t[5],textStyles:t[58].textStyles,singleline:t[7],actions:t[58].actions}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[58].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[58].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[58].actions),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Rn(t){let e,n,r,i;const o=[Tn,Mn],a=[];function s(t,e){return"text"in t[58]?0:t[58].image?1:-1}return~(e=s(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=J()},l(t){n&&n.l(t),r=J()},m(t,n){~e&&a[e].m(t,n),F(t,r,n),i=!0},p(t,i){let l=e;e=s(t),e===l?~e&&a[e].p(t,i):(n&&(It(),Mt(a[l],1,1,(()=>{a[l]=null})),Ft()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Ot(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(Ot(n),i=!0)},o(t){Mt(n),i=!1},d(t){t&&O(r),~e&&a[e].d(t)}}}function Bn(t){let e,n,r,i,o,a;const s=[On,Fn],l=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=l[n]=s[n](t),{c(){e=T("span"),r.c(),this.h()},l(t){e=Y(t,"SPAN",{class:!0,style:!0});var n=q(e);r.l(n),n.forEach(O),this.h()},h(){U(e,"class",i=De("text__inner",se,t[12])),U(e,"style",o=ce(t[11]))},m(t,r){F(t,e,r),l[n].m(e,null),a=!0},p(t,u){let d=n;n=c(t),n===d?l[n].p(t,u):(It(),Mt(l[d],1,1,(()=>{l[d]=null})),Ft(),r=l[n],r?r.p(t,u):(r=l[n]=s[n](t),r.c()),Ot(r,1),r.m(e,null)),(!a||4096&u[0]&&i!==(i=De("text__inner",se,t[12])))&&U(e,"class",i),(!a||2048&u[0]&&o!==(o=ce(t[11])))&&U(e,"style",o)},i(t){a||(Ot(r),a=!0)},o(t){Mt(r),a=!1},d(t){t&&O(e),l[n].d()}}}function Jn(t){let e,n,r=!t[8]&&In(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[8]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),256&n[0]&&Ot(r,1)):(r=In(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function Ln(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,N,I,F,O,M,T,z,R=n,B=n,J=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,Y=n,X=n,Z=n,Q=n;t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),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((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q()));let{json:tt={}}=e,{templateContext:et}=e,{origJson:nt}=e,{layoutParams:rt}=e;const it=pt(oe);let ot=!1,at="",st=12,lt=1.25,ct=!1,ut="",dt="",ft=!1,gt="left",mt="top",vt="",yt="",$t="",_t=!1,bt=[],wt=[];return ht((()=>{wt.forEach((t=>{let[e,n]=t;it.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&r(0,tt=t.json),"templateContext"in t&&r(1,et=t.templateContext),"origJson"in t&&r(2,nt=t.origJson),"layoutParams"in t&&r(3,rt=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&(r(27,i=it.getDerivedFromVars(tt.text)),Q(),Q=h(i,(t=>r(54,z=t)))),16&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&(r(4,(e=z,n=at,at=String(null!=e?e:"")||n)),at?r(8,ot=!1):(r(8,ot=!0),it.logError(ae(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(r(26,o=it.getDerivedFromVars(tt.ranges)),B(),B=h(o,(t=>r(43,A=t)))),1&t.$$.dirty[0]&&(r(25,a=it.getDerivedFromVars(tt.images)),R(),R=h(a,(t=>r(42,C=t)))),1&t.$$.dirty[0]&&(r(24,s=it.getDerivedFromVars({font_size:tt.font_size,letter_spacing:tt.letter_spacing,font_weight:tt.font_weight,font_family:tt.font_family,text_color:tt.text_color,underline:tt.underline,strike:tt.strike,line_height:tt.line_height})),J(),J=h(s,(t=>r(28,V=t)))),1&t.$$.dirty[0]&&(r(23,l=it.getDerivedFromVars(tt.font_size)),Z(),Z=h(l,(t=>r(53,T=t)))),32&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&r(5,st=_n(T,st)),1&t.$$.dirty[0]&&(r(22,c=it.getDerivedFromVars(tt.line_height)),X(),X=h(c,(t=>r(52,M=t)))),32&t.$$.dirty[0]|2097152&t.$$.dirty[1]){const t=M;Qe(t)?(r(30,lt=Number(t)/st),r(9,ct=!0)):r(9,ct=!1)}if(1&t.$$.dirty[0]&&(r(21,u=it.getDerivedFromVars(tt.max_lines)),G(),G=h(u,(t=>r(49,I=t)))),262144&t.$$.dirty[1]&&r(7,d=1===I),1073741824&t.$$.dirty[0]|268288&t.$$.dirty[1]){let t="",e="",n=!1;if(I&&I>1){let r=Number(I);t=r*lt+"em",A||C||(e=r,n=!0)}r(31,ut=t),r(32,dt=e),r(33,ft=n)}if(1&t.$$.dirty[0]&&(r(20,f=it.getDerivedFromVars(tt.text_alignment_horizontal)),Y(),Y=h(f,(t=>r(51,O=t)))),1048584&t.$$.dirty[1]&&r(34,gt=Vn(O,gt)),1&t.$$.dirty[0]&&(r(19,p=it.getDerivedFromVars(tt.text_alignment_vertical)),K(),K=h(p,(t=>r(50,F=t)))),524304&t.$$.dirty[1]&&r(35,mt=Dn(F,mt)),16&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(41,g=!A||at&&1===A.length&&A[0]&&0===A[0].start&&"number"==typeof A[0].end&&A[0].end>=at.length),1&t.$$.dirty[0]&&(r(18,m=it.getDerivedFromVars(tt.text_color)),q(),q=h(m,(t=>r(48,N=t)))),135168&t.$$.dirty[1]&&r(40,v=Boolean(N)!==Boolean(A&&A[0]&&A[0].text_color)),398880&t.$$.dirty[1]){let t="";I&&g&&v&&(t=fe(N||A&&A[0]&&A[0].text_color,1,vt)),r(36,vt=t)}if(1&t.$$.dirty[0]&&(r(17,y=it.getDerivedFromVars(tt.focused_text_color)),H(),H=h(y,(t=>r(47,S=t)))),65600&t.$$.dirty[1]&&r(37,yt=fe(S,1,yt)),1&t.$$.dirty[0]&&(r(16,$=it.getDerivedFromVars(tt.truncate)),W(),W=h($,(t=>r(46,j=t)))),32768&t.$$.dirty[1]&&r(39,_="none"===j?"none":""),1&t.$$.dirty[0]&&(r(15,b=it.getDerivedFromVars(tt.text_gradient)),U(),U=h(b,(t=>r(45,P=t)))),16384&t.$$.dirty[1]){let t="";if(P){const e=ve([P]);e.image&&(t=e.image)}r(38,$t=t)}1&t.$$.dirty[0]&&(r(14,w=it.getDerivedFromVars(tt.selectable)),L(),L=h(w,(t=>r(44,D=t)))),64&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(6,_t=Pn(D,_t)),16&t.$$.dirty[0]|6144&t.$$.dirty[1]&&function(t,e,n){let i=[];if(wt.forEach((t=>{let[e,n]=t;it.removeSvgFilter(e,n)})),wt=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(10,bt=[]);const o=t;let a=e||[{start:0,end:o.length}],s=n||[],l=0,c=[],u=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),s.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=o.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.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)),u.forEach((t=>{var e;let n="image"===t.type?null:t.range,r=t.index;if(r>l){let n=Object.assign(Object.assign({},V),...c);i.push({text:o.substring(l,r),textStyles:n,actions:"rangeEnd"===t.type&&(null===(e=t.range)||void 0===e?void 0:e.actions)||void 0})}if("rangeStart"===t.type&&n)c.push(n);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},V),...c),n=ue(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=ue(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":ue(10*(Number(e.font_size)||12)/st)};let a="";const s=t.image.tint_color,l=jn(t.image.tint_mode,"source_in");if(s){const e=fe(t.image.tint_color);a=it.addSvgFilter(e,l),wt.push([e,l])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}l=r})),l<o.length&&i.push({text:o.substring(l),textStyles:Object.assign({},V)}),r(10,bt=i)}(at,A,C),128&t.$$.dirty[0]|284&t.$$.dirty[1]&&r(13,x={singleline:d,multiline:ft,halign:gt,valign:mt,truncate:_}),128&t.$$.dirty[1]&&r(12,k={gradient:Boolean($t)}),1073741856&t.$$.dirty[0]|227&t.$$.dirty[1]&&r(11,E={"font-size":ue(st),"line-height":lt,"max-height":ut,"-webkit-line-clamp":dt,color:vt,"background-image":$t,"--divkit-text-focus-color":yt})},[tt,et,nt,rt,at,st,_t,d,ot,ct,bt,E,k,x,w,b,$,y,m,p,f,u,c,l,s,a,o,i,V,function(t){t.target&&"classList"in t.target&&t.target.classList.add(se.text__image_hidden)},lt,ut,dt,ft,gt,mt,vt,yt,$t,_,v,g,C,A,D,P,j,S,N,I,F,O,M,T,z]}const Un={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230","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 Wn(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 Hn(t,e,n){const r=((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);null!=e&&e.show_at_start&&(n?t.top=e.style.height+i:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+i:t.right=e.style.width+r)}function qn(t,e,n){let r;const i=((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),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+i:0]:[null!=e&&e.show_between?e.style.height+o:0,null!=n&&n.show_between?n.style.width+a:0],r.map(ue).join(" ")}function Gn(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)i=t.shape,r={width:Number((null===(o=i.item_width)||void 0===o?void 0:o.value)||10),height:Number((null===(a=i.item_height)||void 0===a?void 0:a.value)||10),radius:Number(null!==(s=null===(l=i.corner_radius)||void 0===l?void 0:l.value)&&void 0!==s?s:5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Number((null===(e=t.radius)||void 0===e?void 0:e.value)||10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,s,l;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?fe(o.color):"",s=null!=o&&o.width?Number(null!==(r=o.width)&&void 0!==r?r:1):"";i.width=t.width,i.height=t.height,i.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return i.background=fe(l),a&&s&&(i.boxShadow="inset 0 0 0 ".concat(ue(s)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}let Kn;function Yn(){if(void 0!==Kn)return Kn;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),Kn=1===t.scrollHeight,document.body.removeChild(t),Kn}const Xn={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"};function Zn(t,e,n){const r=t.slice();return r[13]=e[n],r}function Qn(t){let e,n,r,i,o,a="".concat(t[13].style.width,"px"),s="".concat(t[13].style.height,"px"),l="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=T("div"),n=T("div"),i=B(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var r=q(e);n=Y(r,"DIV",{class:!0}),q(n).forEach(O),i=Q(r),r.forEach(O),this.h()},h(){U(n,"class",r=Xn["container-separator__shape"]),et(n,"width",a),et(n,"height",s),et(n,"border-radius",l),et(n,"background",t[13].style.background),et(n,"box-shadow",t[13].style.boxShadow),U(e,"class",o=Xn["container-separator__item"]),et(e,"left",c),et(e,"top",u),et(e,"width",d),et(e,"height",h)},m(t,r){F(t,e,r),I(e,n),I(e,i)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&et(n,"width",a),2&r&&s!==(s="".concat(t[13].style.height,"px"))&&et(n,"height",s),2&r&&l!==(l="".concat(t[13].style.borderRadius,"px"))&&et(n,"border-radius",l),2&r&&et(n,"background",t[13].style.background),2&r&&et(n,"box-shadow",t[13].style.boxShadow),2&r&&c!==(c="".concat(t[13].left,"px"))&&et(e,"left",c),2&r&&u!==(u="".concat(t[13].top,"px"))&&et(e,"top",u),2&r&&d!==(d="".concat(t[13].width,"px"))&&et(e,"width",d),2&r&&h!==(h="".concat(t[13].height,"px"))&&et(e,"height",h)},d(t){t&&O(e)}}}function tr(t){let e,r,i,o,a=Rt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=Qn(Zn(t,a,e));return{c(){e=T("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=Y(t,"DIV",{class:!0});var n=q(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(O),this.h()},h(){U(e,"class",r=Xn["container-separator"])},m(n,r){F(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[10](e),i||(o=L(window,"resize",t[2]),i=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=Rt(t[1]),n=0;n<a.length;n+=1){const i=Zn(t,a,n);s[n]?s[n].p(i,r):(s[n]=Qn(i),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&&O(e),M(s,n),t[10](null),i=!1,o()}}}function er(t,e,n,r,i,o){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;o?t.push({top:n.bottom+l,left:i.left+a,width:Math.max(0,i.right-i.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:i.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,i.bottom-i.top-l-c),style:e.style})}function nr(t,e,n,r){const i={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)&&er(t,e,{top:0,right:n[0].left-e.style.width-e.margins.left-e.margins.right,bottom:n[0].top-e.style.height-e.margins.top-e.margins.bottom,left:0},n[0],i,r),null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)er(t,e,n[o],n[o+1],i,r);if(null==e?void 0:e.show_at_end){const o=n[n.length-1];er(t,e,o,{top:o.bottom+e.style.height+e.margins.top+e.margins.bottom,right:0,bottom:0,left:o.right+e.style.width+e.margins.left+e.margins.right},i,r)}}function rr(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e;const s=function(t,e){let n,r=0,i=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(i||(i=!0,setTimeout((()=>{i=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect();n(1,c=[]);let e=[...r.children].filter((t=>t!==l&&!t.classList.contains(le.outer__border))),s=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),o=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===i){if(r.top<a)break}else if(r.left<o)break;o=Math.max(o,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}s.push(t)}const u=[];s.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)));o&&nr(c,o,e,"vertical"===i);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)))};u.push(n)})),a&&nr(c,a,u,"horizontal"===i),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let l,c=[],u=!1,d=null,h=null;function f(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(Xn["container-separator__shape"]))&&!(null==n?void 0:n.contains(Xn["container-separator"]))}))&&s()}return dt((()=>{n(6,u=!0)})),ht((()=>{n(6,u=!1)})),t.$$set=t=>{"orientation"in t&&n(3,i=t.orientation),"separator"in t&&n(4,o=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==l?void 0:l.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(f)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(s)),h.observe(r)))),576&t.$$.dirty&&u&&r&&s()},[l,c,s,i,o,a,u,d,h,r,function(t){vt[t?"unshift":"push"]((()=>{l=t,n(0,l)}))}]}const ir=class extends te{constructor(t){super(),Zt(this,t,rr,tr,d,{orientation:3,separator:4,lineSeparator:5})}},{Boolean:or}=A;function ar(t,e,n){const r=t.slice();return r[47]=e[n],r}function sr(t){let e,n;return e=new yn({props:{cls:De("container",Un,t[12]),style:t[10],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[16],heightByAspect:Boolean(t[8]),parentOf:t[11],replaceItems:t[24],$$slots:{default:[dr]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=De("container",Un,t[12])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),65536&n[0]&&(r.additionalPaddings=t[16]),256&n[0]&&(r.heightByAspect=Boolean(t[8])),2048&n[0]&&(r.parentOf=t[11]),8391392&n[0]|524288&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function lr(t){let e,n;return e=new Ta({props:{layoutParams:t[9],div:t[47].json,templateContext:t[47].templateContext,origJson:t[47].origJson}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.layoutParams=t[9]),8388608&n[0]&&(r.div=t[47].json),8388608&n[0]&&(r.templateContext=t[47].templateContext),8388608&n[0]&&(r.origJson=t[47].origJson),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function cr(t){let e,n,r=Rt(t[23]),i=[];for(let e=0;e<r.length;e+=1)i[e]=lr(ar(t,r,e));const o=t=>Mt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=J()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);F(t,e,r),n=!0},p(t,n){if(8389120&n[0]){let a;for(r=Rt(t[23]),a=0;a<r.length;a+=1){const o=ar(t,r,a);i[a]?(i[a].p(o,n),Ot(i[a],1)):(i[a]=lr(o),i[a].c(),Ot(i[a],1),i[a].m(e.parentNode,e))}for(It(),a=r.length;a<i.length;a+=1)o(a);Ft()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ot(i[t]);n=!0}},o(t){i=i.filter(or);for(let t=0;t<i.length;t+=1)Mt(i[t]);n=!1},d(t){t&&O(e),M(i,t)}}}function ur(t){let e,n;return e=new ir({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function dr(t){let e,r,i,o=t[11],a=cr(t),s=(t[6]||t[7])&&ur(t);return{c(){a.c(),e=B(),s&&s.c(),r=J()},l(t){a.l(t),e=Q(t),s&&s.l(t),r=J()},m(t,n){a.m(t,n),F(t,e,n),s&&s.m(t,n),F(t,r,n),i=!0},p(t,i){2048&i[0]&&d(o,o=t[11])?(It(),Mt(a,1,1,n),Ft(),a=cr(t),a.c(),Ot(a,1),a.m(e.parentNode,e)):a.p(t,i),t[6]||t[7]?s?(s.p(t,i),192&i[0]&&Ot(s,1)):(s=ur(t),s.c(),Ot(s,1),s.m(r.parentNode,r)):s&&(It(),Mt(s,1,1,(()=>{s=null})),Ft())},i(t){i||(Ot(a),Ot(s),i=!0)},o(t){Mt(a),Mt(s),i=!1},d(t){t&&(O(e),O(r)),a.d(t),s&&s.d(t)}}}function hr(t){let e,n,r=!t[4]&&sr(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[4]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),16&n[0]&&Ot(r,1)):(r=sr(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function fr(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D=n,P=n,j=n,S=n,N=n,I=n,F=n,O=n,M=n;var T,z,R,B,J,L;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>M()));let{json:U={}}=e,{templateContext:W}=e,{origJson:H}=e,{layoutParams:q}=e;const G={left:"start",center:"center",right:"end","space-between":"start","space-around":"start","space-evenly":"start"},K={top:"start",center:"center",bottom:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Y=["rounded_rectangle","circle"],X=pt(oe);let Z,Q=!1,tt="vertical",et="top",nt="left",rt=null,it=null,ot={};return t.$$set=t=>{"json"in t&&r(0,U=t.json),"templateContext"in t&&r(1,W=t.templateContext),"origJson"in t&&r(2,H=t.origJson),"layoutParams"in t&&r(3,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(11,i=U.items),2048&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(4,Q=!1):(r(4,Q=!0),X.logError(ae(new Error('Incorrect or empty "items" prop for div "container"'))))),2066&t.$$.dirty[0]&&r(23,o=(!Q&&i||[]).map((t=>{let e=t,n=W;return({templateContext:n,json:e}=X.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(22,a=X.getDerivedFromVars(U.orientation)),M(),M=h(a,(t=>r(42,V=t)))),32&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(5,tt=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(V,tt)),1&t.$$.dirty[0]&&(r(21,s=X.getDerivedFromVars(U.content_alignment_vertical)),O(),O=h(s,(t=>r(41,A=t)))),1025&t.$$.dirty[1]&&r(31,et=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(A,et)),1&t.$$.dirty[0]&&(r(20,l=X.getDerivedFromVars(U.content_alignment_horizontal)),F(),F=h(l,(t=>r(40,C=t)))),514&t.$$.dirty[1]&&r(32,nt=function(t,e){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(C,nt)),1&t.$$.dirty[0]&&(r(19,c=X.getDerivedFromVars(U.layout_mode)),I(),I=h(c,(t=>r(39,E=t)))),256&t.$$.dirty[1]&&r(33,u="wrap"===E),1&t.$$.dirty[0]&&(r(18,d=X.getDerivedFromVars(U.separator)),N(),N=h(d,(t=>r(38,k=t)))),234881120&t.$$.dirty[0]|128&t.$$.dirty[1])if((null==k?void 0:k.style)&&"overlap"!==tt&&Yn()){const t=Gn(k.style,Y,(null==rt?void 0:rt.style)||null);r(6,rt=t?{show_at_start:Boolean(null!==r(25,T=k.show_at_start)&&void 0!==T&&T),show_at_end:Boolean(null!==r(26,z=k.show_at_end)&&void 0!==z&&z),show_between:Boolean(null===r(27,R=k.show_between)||void 0===R||R),style:t,margins:Wn(k.margins)}:null)}else r(6,rt=null);if(1&t.$$.dirty[0]&&(r(17,f=X.getDerivedFromVars(U.line_separator)),S(),S=h(f,(t=>r(37,x=t)))),1879048352&t.$$.dirty[0]|64&t.$$.dirty[1])if((null==x?void 0:x.style)&&"overlap"!==tt&&Yn()){const t=Gn(x.style,Y,(null==it?void 0:it.style)||null);r(7,it=t?{show_at_start:Boolean(null!==r(28,B=x.show_at_start)&&void 0!==B&&B),show_at_end:Boolean(null!==r(29,J=x.show_at_end)&&void 0!==J&&J),show_between:Boolean(null===r(30,L=x.show_between)||void 0===L||L),style:t,margins:Wn(x.margins)}:null)}else r(7,it=null);if(224&t.$$.dirty[0]&&r(16,p=rt||it?function(t,e,n){const r={};return Hn(r,e,"vertical"===t),Hn(r,n,"horizontal"===t),r}(tt,rt,it):null),1&t.$$.dirty[0]&&(r(15,g=X.getDerivedFromVars(U.aspect)),j(),j=h(g,(t=>r(36,w=t)))),32&t.$$.dirty[1]){const t=null==w?void 0:w.ratio;t&&Qe(t)?r(8,Z=t):r(8,Z=void 0)}if(1&t.$$.dirty[0]&&(r(14,m=X.getDerivedFromVars(U.width)),D(),D=h(m,(t=>r(34,_=t)))),1&t.$$.dirty[0]&&(r(13,v=X.getDerivedFromVars(U.height)),P(),P=h(v,(t=>r(35,b=t)))),808&t.$$.dirty[0]|31&t.$$.dirty[1]){let t={};(null==q?void 0:q.fakeElement)&&(t.fakeElement=!0),"overlap"===tt&&(t.overlapParent=!0),"horizontal"!==tt&&(t.parentHAlign=u?"start":G[nt],Z||b&&"wrap_content"!==b.type&&("match_parent"!==b.type||!(null==q?void 0:q.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0)),"vertical"!==tt&&(t.parentVAlign=u?"start":K[et],("wrap_content"===(null==_?void 0:_.type)||"match_parent"===(null==_?void 0:_.type)&&(null==q?void 0:q.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===tt&&(t.parentContainerOrientation="horizontal"),"vertical"===tt&&(t.parentContainerOrientation="vertical"),u&&(t.parentContainerWrap=!0),r(9,ot=Te(t,ot))}32&t.$$.dirty[0]|7&t.$$.dirty[1]&&r(12,y={orientation:tt,valign:et,halign:nt,wrap:u}),480&t.$$.dirty[0]&&r(10,$={gap:rt||it?qn(tt,rt,it):void 0,"aspect-ratio":Z})},[U,W,H,q,Q,tt,rt,it,Z,ot,$,i,y,v,m,g,p,f,d,c,l,s,a,o,function(t){r(0,U=Object.assign(Object.assign({},U),{items:t}))},T,z,R,B,J,L,et,nt,u,_,b,w,x,k,E,C,A,V]}const pr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function gr(t,e){return"vertical"===t||"horizontal"===t?t:e}function mr(t){let e,n,r;return{c(){e=T("span"),this.h()},l(t){e=Y(t,"SPAN",{class:!0,style:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=pr.separator__inner),U(e,"style",r=ce(t[5]))},m(t,n){F(t,e,n)},p(t,n){32&n&&r!==(r=ce(t[5]))&&U(e,"style",r)},d(t){t&&O(e)}}}function vr(t){let e,n=t[6]&&mr(t);return{c(){n&&n.c(),e=J()},l(t){n&&n.l(t),e=J()},m(t,r){n&&n.m(t,r),F(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=mr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&O(e),n&&n.d(t)}}}function yr(t){let e,n;return e=new yn({props:{cls:De("separator",pr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[vr]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=De("separator",pr,t[4])),1&r&&(i.json=t[0]),4&r&&(i.origJson=t[2]),2&r&&(i.templateContext=t[1]),8&r&&(i.layoutParams=t[3]),16480&r&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function $r(t,e,r){let i,o,a,s,l,c,u,d=n;t.$$.on_destroy.push((()=>d()));let{json:f={}}=e,{templateContext:p}=e,{origJson:g}=e,{layoutParams:m}=e;const v=pt(oe);let y="horizontal",$="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&r(0,f=t.json),"templateContext"in t&&r(1,p=t.templateContext),"origJson"in t&&r(2,g=t.origJson),"layoutParams"in t&&r(3,m=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(r(7,i=v.getDerivedFromVars(f.delimiter_style)),d(),d=h(i,(t=>r(12,u=t)))),4352&t.$$.dirty&&r(8,y=gr(null==u?void 0:u.orientation,y)),4096&t.$$.dirty&&r(6,o=!((null==u?void 0:u.color)&&("transparent"===u.color||9===u.color.length&&0===u.color.indexOf("#00")))),4608&t.$$.dirty&&r(9,$=fe(null==u?void 0:u.color,1,$)),256&t.$$.dirty&&r(11,a="horizontal"===y?"100%":ue(1)),256&t.$$.dirty&&r(10,s="horizontal"===y?ue(1):"100%"),3584&t.$$.dirty&&r(5,l={background:$,width:a,height:s}),256&t.$$.dirty&&r(4,c={orientation:y})},[f,p,g,m,c,l,o,i,y,$,s,a,u]}const _r={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function br(t){return t.startsWith("data:")?ge(t):"data:image/jpg;base64,".concat(ge(t))}function wr(t){let e,n;return e=new yn({props:{cls:De("image",_r,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Cr]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=De("image",_r,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),67312&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function xr(t){let e,n,r,i,o,a,l;return{c(){e=T("img"),this.h()},l(t){e=Y(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){U(e,"class",n=_r.image__image),u(e.src,r=t[4]===Dr?Vr:t[7])||U(e,"src",r),U(e,"loading","lazy"),U(e,"decoding","async"),U(e,"style",i=ce(t[9])),U(e,"alt",t[16]),U(e,"aria-hidden",o=t[16]?null:"true")},m(n,r){F(n,e,r),a||(l=[L(e,"load",t[26]),L(e,"error",t[27])],a=!0)},p(t,n){144&n[0]&&!u(e.src,r=t[4]===Dr?Vr:t[7])&&U(e,"src",r),512&n[0]&&i!==(i=ce(t[9]))&&U(e,"style",i),65536&n[0]&&U(e,"alt",t[16]),65536&n[0]&&o!==(o=t[16]?null:"true")&&U(e,"aria-hidden",o)},d(t){t&&O(e),a=!1,s(l)}}}function kr(t){let e,n,r,i,o,a,l,c,d,h="".concat(t[5],"%");return{c(){e=T("span"),n=T("img"),this.h()},l(t){e=Y(t,"SPAN",{class:!0});var r=q(e);n=Y(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(O),this.h()},h(){U(n,"class",r=_r.image__image),u(n.src,i=t[4]===Dr?Vr:t[7])||U(n,"src",i),U(n,"loading","lazy"),U(n,"decoding","async"),U(n,"style",o=ce(t[9])),U(n,"alt",t[16]),U(n,"aria-hidden",a=t[16]?null:"true"),U(e,"class",l=_r["image__aspect-wrapper"]),et(e,"padding-bottom",h)},m(r,i){F(r,e,i),I(e,n),c||(d=[L(n,"load",t[26]),L(n,"error",t[27])],c=!0)},p(t,r){144&r[0]&&!u(n.src,i=t[4]===Dr?Vr:t[7])&&U(n,"src",i),512&r[0]&&o!==(o=ce(t[9]))&&U(n,"style",o),65536&r[0]&&U(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&U(n,"aria-hidden",a),32&r[0]&&h!==(h="".concat(t[5],"%"))&&et(e,"padding-bottom",h)},d(t){t&&O(e),c=!1,s(d)}}}function Er(t){let e;function n(t,e){return t[10].aspect?kr:xr}let r=n(t),i=r(t);return{c(){i.c(),e=J()},l(t){i.l(t),e=J()},m(t,n){i.m(t,n),F(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&O(e),i.d(t)}}}function Cr(t){let e,n=t[6],r=Er(t);return{c(){r.c(),e=J()},l(t){r.l(t),e=J()},m(t,n){r.m(t,n),F(t,e,n)},p(t,i){64&i[0]&&d(n,n=t[6])?(r.d(1),r=Er(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&O(e),r.d(t)}}}function Ar(t){let e,n,r=!t[8]&&wr(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[8]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),256&n[0]&&Ot(r,1)):(r=wr(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}const Vr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Dr=2;function Pr(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,N,I,F,O,M,T,z=n,R=n,B=n,J=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,Y=n,X=n,Z=n;t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),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((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt=pt(oe);let it=0,ot="rgba(0,0,0,0.08)",at=!1,st="",lt="none",ct="50% 50%";let ut,dt="0",ft="source_in",gt="",mt="",vt=0,yt=0,$t=0,_t="",bt="";return ht((()=>{rt.removeSvgFilter(ut,ft)})),t.$$set=t=>{"json"in t&&r(0,Q=t.json),"templateContext"in t&&r(1,tt=t.templateContext),"origJson"in t&&r(2,et=t.origJson),"layoutParams"in t&&r(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(25,i=rt.getDerivedFromVars(Q.image_url)),Z(),Z=h(i,(t=>r(55,T=t)))),1&t.$$.dirty[0]&&(r(24,o=rt.getDerivedFromVars(Q.gif_url)),X(),X=h(o,(t=>r(54,M=t)))),25165824&t.$$.dirty[1]&&r(7,a=T||M),128&t.$$.dirty[0]&&r(4,it=0),128&t.$$.dirty[0]&&(a?r(8,at=!1):(r(8,at=!0),rt.logError(ae(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(r(23,s=rt.getDerivedFromVars(Q.width)),Y(),Y=h(s,(t=>r(53,O=t)))),4194304&t.$$.dirty[1]&&r(41,l="wrap_content"===(null==O?void 0:O.type)),1&t.$$.dirty[0]&&(r(22,c=rt.getDerivedFromVars(Q.height)),K(),K=h(c,(t=>r(52,F=t)))),2097152&t.$$.dirty[1]&&r(40,u="wrap_content"===(null==F?void 0:F.type)),1&t.$$.dirty[0]&&(r(21,d=rt.getDerivedFromVars(Q.preview)),G(),G=h(d,(t=>r(51,I=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&r(29,st=0!==it&&it!==Dr||!I?"":'url("'.concat(br(I),'")')),1&t.$$.dirty[0]&&(r(20,f=rt.getDerivedFromVars(Q.placeholder_color)),q(),q=h(f,(t=>r(50,N=t)))),16&t.$$.dirty[0]|524288&t.$$.dirty[1]&&function(t,e){r(28,ot=0===t||t===Dr?fe(e,1,ot):"")}(it,N),1&t.$$.dirty[0]&&(r(19,p=rt.getDerivedFromVars(Q.scale)),H(),H=h(p,(t=>r(49,S=t)))),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]&&r(30,lt=_e(S)||lt),1&t.$$.dirty[0]&&(r(18,g=rt.getDerivedFromVars({content_alignment_horizontal:Q.content_alignment_horizontal,content_alignment_vertical:Q.content_alignment_vertical})),W(),W=h(g,(t=>r(48,j=t)))),131072&t.$$.dirty[1]&&r(31,ct=function(t,e){const n=t.content_alignment_horizontal,r=t.content_alignment_vertical;return n&&"left"!==n&&"center"!==n&&"right"!==n||r&&"top"!==r&&"center"!==r&&"bottom"!==r?e:be(t)}(j,ct)),1&t.$$.dirty[0]&&(r(17,m=rt.getDerivedFromVars(Q.accessibility)),U(),U=h(m,(t=>r(47,P=t)))),65536&t.$$.dirty[1]&&r(16,v=(null==P?void 0:P.description)||""),1&t.$$.dirty[0]&&(r(15,y=rt.getDerivedFromVars(Q.aspect)),L(),L=h(y,(t=>r(46,D=t)))),32768&t.$$.dirty[1]){const t=null==D?void 0:D.ratio;t&&Qe(t)?r(5,dt=(100/Number(t)).toFixed(2)):r(5,dt="0")}if(1&t.$$.dirty[0]&&(r(14,$=rt.getDerivedFromVars(Q.tint_color)),J(),J=h($,(t=>r(45,V=t)))),1&t.$$.dirty[0]&&(r(13,_=rt.getDerivedFromVars(Q.tint_mode)),B(),B=h(_,(t=>r(44,A=t)))),24582&t.$$.dirty[1]){const t=V?fe(V):void 0,e=jn(A,ft);t===ut&&e===ft||(rt.removeSvgFilter(ut,ft),r(6,gt=t?rt.addSvgFilter(t,e):""),r(32,ut=t),r(33,ft=e))}if(1&t.$$.dirty[0]&&(r(12,b=rt.getDerivedFromVars(Q.appearance_animation)),R(),R=h(b,(t=>r(43,C=t)))),4096&t.$$.dirty[1]&&C&&"fade"===C.type){const t=C;r(34,mt=ze(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(37,$t=Fe(t.duration,300)),r(36,yt=Fe(t.start_delay,0)),r(35,vt=Fe(t.alpha,0))}if(1&t.$$.dirty[0]&&(r(11,w=rt.getDerivedFromVars(Q.filters)),z(),z=h(w,(t=>r(42,E=t)))),2048&t.$$.dirty[1]){let t="",e="";Array.isArray(E)&&E.length&&(t=tn(E,rt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(38,_t=t),r(39,bt=e)}48&t.$$.dirty[0]|1544&t.$$.dirty[1]&&r(10,x={aspect:"0"!==dt,"is-width-content":l,"is-height-content":u,loaded:1===it,"before-appearance":Boolean(mt)&&0===it}),1879048272&t.$$.dirty[0]|505&t.$$.dirty[1]&&r(9,k={"background-image":st,"background-color":st?void 0:ot,"background-size":lt,"clip-path":bt||void 0,"object-fit":lt,"object-position":ct,filter:[1===it&>?"url(#".concat(gt,")"):"",_t].filter(Boolean).join(" "),"--divkit-appearance-interpolator":mt||void 0,"--divkit-appearance-fade-start":mt?vt:void 0,"--divkit-appearance-delay":mt?"".concat(yt,"ms"):void 0,"--divkit-appearance-duration":mt?"".concat($t,"ms"):void 0})},[Q,tt,et,nt,it,dt,gt,a,at,k,x,w,b,_,$,y,v,m,g,p,f,d,c,s,o,i,function(){0===it&&r(4,it=1)},function(){0===it&&r(4,it=Dr)},ot,st,lt,ct,ut,ft,mt,vt,yt,$t,_t,bt,u,l,E,C,A,V,D,P,j,S,N,I,F,O,M,T]}const jr=class extends te{constructor(t){super(),Zt(this,t,Pr,Ar,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Sr={grid:"divkit-d9080",grid_halign_left:"divkit-f63b3",grid_halign_center:"divkit-a14a6",grid_halign_right:"divkit-b0717",grid_valign_top:"divkit-fbca8",grid_valign_center:"divkit-d4310",grid_valign_bottom:"divkit-e4205"};function Nr(t){return t>0&&t<1}function Ir(t){return String(Math.ceil(1e3*t)/1e3)}function Fr(t,e,n){if(t.some(Nr)){const e=Math.max(...t.filter(Nr).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,i=0;const o=[];if(t.every(Boolean)){i=t.reduce(((t,e)=>t+e),0);for(let o=0;o<n;++o){if(!e[o])continue;const n=e[o]/t[o]*i;n>r&&(r=n)}}for(let e=0;e<n;++e)r?o[e]="minmax(".concat(ue(r*t[e]/i),",").concat(Ir(t[e]),"fr)"):t[e]?o[e]="".concat(Ir(t[e]),"fr"):o[e]="auto";return o.join(" ")}function Or(t,e,n){const r=t.slice();return r[30]=e[n],r}function Mr(t){let e,n;return e=new yn({props:{cls:De("grid",Sr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],parentOf:t[0].items,replaceItems:t[12],$$slots:{default:[Rr]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=De("grid",Sr,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),128&n[0]&&(r.style=t[7]),8&n[0]&&(r.layoutParams=t[3]),1&n[0]&&(r.parentOf=t[0].items),32&n[0]|4&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Tr(t){let e,n;return e=new Ta({props:{layoutParams:t[30].layoutParams,div:t[30].json,templateContext:t[30].templateContext,origJson:t[30].origJson}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[30].layoutParams),32&n[0]&&(r.div=t[30].json),32&n[0]&&(r.templateContext=t[30].templateContext),32&n[0]&&(r.origJson=t[30].origJson),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function zr(t){let e,n,r=Rt(t[5]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Tr(Or(t,r,e));const o=t=>Mt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=J()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);F(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=Rt(t[5]),a=0;a<r.length;a+=1){const o=Or(t,r,a);i[a]?(i[a].p(o,n),Ot(i[a],1)):(i[a]=Tr(o),i[a].c(),Ot(i[a],1),i[a].m(e.parentNode,e))}for(It(),a=r.length;a<i.length;a+=1)o(a);Ft()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ot(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Mt(i[t]);n=!1},d(t){t&&O(e),M(i,t)}}}function Rr(t){let e,r,i=t[5],o=zr(t);return{c(){o.c(),e=J()},l(t){o.l(t),e=J()},m(t,n){o.m(t,n),F(t,e,n),r=!0},p(t,r){32&r[0]&&d(i,i=t[5])?(It(),Mt(o,1,1,n),Ft(),o=zr(t),o.c(),Ot(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Ot(o),r=!0)},o(t){Mt(o),r=!1},d(t){t&&O(e),o.d(t)}}}function Br(t){let e,n,r=!t[6]&&Mr(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[6]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),64&n[0]&&Ot(r,1)):(r=Mr(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function Jr(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v=n,y=n,$=n,_=n;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:w}=e,{origJson:x}=e,{layoutParams:k}=e;const E=pt(oe);let C,A,V=!1,D=1,P=[],j=[],S=[],N=[],I=0,F=!1,O="top",M="left";return t.$$set=t=>{"json"in t&&r(0,b=t.json),"templateContext"in t&&r(1,w=t.templateContext),"origJson"in t&&r(2,x=t.origJson),"layoutParams"in t&&r(3,k=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(24,i=b.items),16777216&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(13,V=!1):(r(13,V=!0),E.logError(ae(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(r(11,o=E.getDerivedFromVars(b.column_count)),_(),_=h(o,(t=>r(28,m=t)))),268451840&t.$$.dirty[0]&&r(14,D=_n(m,D)),16785410&t.$$.dirty[0]&&r(23,a=(!V&&i||[]).map((t=>{let e=t,n=w;return({templateContext:n,json:e}=E.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),8388608&t.$$.dirty[0]){let t=[];a.forEach((e=>{t.push(E.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(4,C=re(t,(t=>[...t]))),$(),$=h(C,(t=>r(27,g=t)))}if(144162824&t.$$.dirty[0]){const t={};let e=0,n=0;r(15,P=[]),r(16,j=[]),r(17,S=[]),r(18,N=[]),r(20,F=!1),r(5,A=a.map(((i,o)=>{var a,s,l,c;const u=g[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,f={x:e,y:n,colSpan:d,rowSpan:h},p="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(s=u.height)||void 0===s?void 0:s.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(l=u.width)||void 0===l?void 0:l.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let i=e;i<e+d;++i)for(let e=n;e<n+h;++e)t[i+"_"+e]?r(20,F=!0):(t[i+"_"+e]=!0,(!P[i]||P[i]<p)&&r(15,P[i]=p,P),(!j[e]||j[e]<m)&&r(16,j[e]=m,j),(!S[i]||S[i]<v)&&r(17,S[i]=v,S),(!N[e]||N[e]<y)&&r(18,N[e]=y,N));do{++e,e>=D&&(e=0,++n)}while(t[e+"_"+n]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:f,fakeElement:(null==k?void 0:k.fakeElement)||!1}})}))),0!==e&&r(20,F=!0),F&&E.logError(ae(new Error('Mismatching "grid" rows/columns'))),r(19,I=n)}1&t.$$.dirty[0]&&(r(10,s=E.getDerivedFromVars(b.content_alignment_vertical)),y(),y=h(s,(t=>r(26,p=t)))),69206016&t.$$.dirty[0]&&r(21,O=Dn(p,O)),1&t.$$.dirty[0]&&(r(9,l=E.getDerivedFromVars(b.content_alignment_horizontal)),v(),v=h(l,(t=>r(25,f=t)))),37748736&t.$$.dirty[0]&&r(22,M=Vn(f,M)),6291456&t.$$.dirty[0]&&r(8,c={valign:O,halign:M}),1032192&t.$$.dirty[0]&&r(7,u={"grid-template-columns":Fr(P,S,D),"grid-template-rows":Fr(j,N,I)}),1056768&t.$$.dirty[0]&&r(6,d=V||F)},[b,w,x,k,C,A,d,u,c,l,s,o,function(t){r(0,b=Object.assign(Object.assign({},b),{items:t}))},V,D,P,j,S,N,I,F,O,M,a,i,f,p,g,m]}const Lr={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function Ur(t){const e=[];let n=t[0],r=1;for(let i=1;i<=t.length;i++)t[i]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[i],r=1):r++;return e.join(" ")}function Wr(t,e){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}const{Boolean:Hr}=A;function qr(t,e,n){const r=t.slice();return r[73]=e[n],r[74]=e,r[75]=n,r}function Gr(t,e,n){const r=t.slice();return r[76]=e[n],r}function Kr(t){let e,n;return e=new yn({props:{cls:De("gallery",Lr,t[17]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",parentOf:t[10],replaceItems:t[32],$$slots:{default:[ni]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};131072&n[0]&&(r.cls=De("gallery",Lr,t[17])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1024&n[0]&&(r.parentOf=t[10]),671906768&n[0]|131072&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Yr(t){let e,n;return e=new Ta({props:{layoutParams:t[8],div:t[76].json,templateContext:t[76].templateContext,origJson:t[76].origJson}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),134217728&n[0]&&(r.div=t[76].json),134217728&n[0]&&(r.templateContext=t[76].templateContext),134217728&n[0]&&(r.origJson=t[76].origJson),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Xr(t){let e,n,r,i,o,a=t[75],s=Rt(t[73]),l=[];for(let e=0;e<s.length;e+=1)l[e]=Yr(Gr(t,s,e));const c=t=>Mt(l[t],1,1,(()=>{l[t]=null})),u=()=>t[61](e,a),d=()=>t[61](null,a);return{c(){e=T("div");for(let t=0;t<l.length;t+=1)l[t].c();n=B(),this.h()},l(t){e=Y(t,"DIV",{class:!0,style:!0});var r=q(e);for(let t=0;t<l.length;t+=1)l[t].l(r);n=Q(r),r.forEach(O),this.h()},h(){U(e,"class",r=Lr.gallery__items),U(e,"style",i=ce(t[18]))},m(t,r){F(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);I(e,n),u(),o=!0},p(r,h){if(t=r,134217984&h[0]){let r;for(s=Rt(t[73]),r=0;r<s.length;r+=1){const i=Gr(t,s,r);l[r]?(l[r].p(i,h),Ot(l[r],1)):(l[r]=Yr(i),l[r].c(),Ot(l[r],1),l[r].m(e,n))}for(It(),r=s.length;r<l.length;r+=1)c(r);Ft()}(!o||262144&h[0]&&i!==(i=ce(t[18])))&&U(e,"style",i),a!==t[75]&&(d(),a=t[75],u())},i(t){if(!o){for(let t=0;t<s.length;t+=1)Ot(l[t]);o=!0}},o(t){l=l.filter(Hr);for(let t=0;t<l.length;t+=1)Mt(l[t]);o=!1},d(t){t&&O(e),M(l,t),d()}}}function Zr(t){let e,n,r=Rt(t[27]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Xr(qr(t,r,e));const o=t=>Mt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=J()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);F(t,e,r),n=!0},p(t,n){if(134484224&n[0]){let a;for(r=Rt(t[27]),a=0;a<r.length;a+=1){const o=qr(t,r,a);i[a]?(i[a].p(o,n),Ot(i[a],1)):(i[a]=Xr(o),i[a].c(),Ot(i[a],1),i[a].m(e.parentNode,e))}for(It(),a=r.length;a<i.length;a+=1)o(a);Ft()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ot(i[t]);n=!0}},o(t){i=i.filter(Hr);for(let t=0;t<i.length;t+=1)Mt(i[t]);n=!1},d(t){t&&O(e),M(i,t)}}}function Qr(t){let e,n,r=t[13]&&t[9]&&ti(t),i=t[14]&&t[9]&&ei(t);return{c(){r&&r.c(),e=B(),i&&i.c(),n=J()},l(t){r&&r.l(t),e=Q(t),i&&i.l(t),n=J()},m(t,o){r&&r.m(t,o),F(t,e,o),i&&i.m(t,o),F(t,n,o)},p(t,o){t[13]&&t[9]?r?r.p(t,o):(r=ti(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[14]&&t[9]?i?i.p(t,o):(i=ei(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){t&&(O(e),O(n)),r&&r.d(t),i&&i.d(t)}}}function ti(t){let e,r,i,o,a=!t[30]&&function(t){let e,n,r,i;return{c(){e=z("svg"),n=z("path"),this.h()},l(t){e=X(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=q(e);n=X(r,"path",{class:!0,d:!0}),q(n).forEach(O),r.forEach(O),this.h()},h(){U(n,"class",r=Lr["gallery__arrow-icon-path"]),U(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),U(e,"class",i=Lr["gallery__arrow-icon"]),U(e,"xmlns","http://www.w3.org/2000/svg"),U(e,"width","32"),U(e,"height","32"),U(e,"viewBox","0 0 32 32"),U(e,"fill","none")},m(t,r){F(t,e,r),I(e,n)},d(t){t&&O(e)}}}();return{c(){e=T("div"),a&&a.c(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var n=q(e);a&&a.l(n),n.forEach(O),this.h()},h(){U(e,"class",r=t[30]||"".concat(Lr.gallery__arrow," ").concat(Lr.gallery__arrow_left))},m(n,r){F(n,e,r),a&&a.m(e,null),i||(o=L(e,"click",t[64]),i=!0)},p:n,d(t){t&&O(e),a&&a.d(),i=!1,o()}}}function ei(t){let e,r,i,o,a=!t[31]&&function(t){let e,n,r,i;return{c(){e=z("svg"),n=z("path"),this.h()},l(t){e=X(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=q(e);n=X(r,"path",{class:!0,d:!0}),q(n).forEach(O),r.forEach(O),this.h()},h(){U(n,"class",r=Lr["gallery__arrow-icon-path"]),U(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),U(e,"class",i=Lr["gallery__arrow-icon"]),U(e,"xmlns","http://www.w3.org/2000/svg"),U(e,"width","32"),U(e,"height","32"),U(e,"viewBox","0 0 32 32"),U(e,"fill","none")},m(t,r){F(t,e,r),I(e,n)},d(t){t&&O(e)}}}();return{c(){e=T("div"),a&&a.c(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var n=q(e);a&&a.l(n),n.forEach(O),this.h()},h(){U(e,"class",r=t[31]||"".concat(Lr.gallery__arrow," ").concat(Lr.gallery__arrow_right))},m(n,r){F(n,e,r),a&&a.m(e,null),i||(o=L(e,"click",t[65]),i=!0)},p:n,d(t){t&&O(e),a&&a.d(),i=!1,o()}}}function ni(t){let e,r,i,o,a,s,c,u,h,f,p,g=t[27],m=Zr(t),v="horizontal"===t[6]&&Qr(t);return{c(){e=T("div"),r=T("div"),m.c(),c=B(),v&&v.c(),u=J(),this.h()},l(t){e=Y(t,"DIV",{class:!0,style:!0});var n=q(e);r=Y(n,"DIV",{class:!0,style:!0});var i=q(r);m.l(i),i.forEach(O),n.forEach(O),c=Q(t),v&&v.l(t),u=J(),this.h()},h(){U(r,"class",i=Lr["gallery__items-grid"]),U(r,"style",o=ce(t[19])),U(e,"class",a=Lr.gallery__scroller+" "+(t[29]?ie["root_restrict-scroll"]:"")),U(e,"style",s=ce(t[7]))},m(n,i){F(n,e,i),I(e,r),m.m(r,null),t[62](r),t[63](e),F(n,c,i),v&&v.m(n,i),F(n,u,i),h=!0,f||(p=L(e,"scroll",(function(){l(t[9]?t[34]:null)&&(t[9]?t[34]:null).apply(this,arguments)})),f=!0)},p(i,l){t=i,134217728&l[0]&&d(g,g=t[27])?(It(),Mt(m,1,1,n),Ft(),m=Zr(t),m.c(),Ot(m,1),m.m(r,null)):m.p(t,l),(!h||524288&l[0]&&o!==(o=ce(t[19])))&&U(r,"style",o),(!h||536870912&l[0]&&a!==(a=Lr.gallery__scroller+" "+(t[29]?ie["root_restrict-scroll"]:"")))&&U(e,"class",a),(!h||128&l[0]&&s!==(s=ce(t[7])))&&U(e,"style",s),"horizontal"===t[6]?v?v.p(t,l):(v=Qr(t),v.c(),v.m(u.parentNode,u)):v&&(v.d(1),v=null)},i(t){h||(Ot(m),h=!0)},o(t){Mt(m),h=!1},d(n){n&&(O(e),O(c),O(u)),m.d(n),t[62](null),t[63](null),v&&v.d(n),f=!1,p()}}}function ri(t){let e,n,r,i,o=!t[5]&&Kr(t);return{c(){o&&o.c(),e=J()},l(t){o&&o.l(t),e=J()},m(a,s){o&&o.m(a,s),F(a,e,s),n=!0,r||(i=L(window,"resize",(function(){l(t[9]?t[35]:null)&&(t[9]?t[35]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?o&&(It(),Mt(o,1,1,(()=>{o=null})),Ft()):o?(o.p(t,r),32&r[0]&&Ot(o,1)):(o=Kr(t),o.c(),Ot(o,1),o.m(e.parentNode,e))},i(t){n||(Ot(o),n=!0)},o(t){Mt(o),n=!1},d(t){t&&O(e),o&&o.d(t),r=!1,i()}}}function ii(t,e,r){let i,o,a,s,l,c,u,d,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,N,I=n,F=n,O=n,M=n,T=n,z=n,R=n,B=n,J=n,L=n;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>L()));let{json:U={}}=e,{templateContext:W}=e,{origJson:H}=e,{layoutParams:q}=e;const G=pt(oe);let K,Y,X=[],Z=!1,Q=!1,tt=null,et=!1;const nt=G.getCustomization("galleryLeftClass"),rt=G.getCustomization("galleryRightClass");let it=!1;const ot=G.isDesktop;f(t,ot,(t=>r(60,S=t)));let at,st,lt,ct,ut=1,ft="horizontal",gt="start",mt=8,yt="",$t=[],_t={},bt=!1,wt={},xt=0;function kt(){if(!K)return;const t=K.scrollLeft,e=K.scrollWidth,n=K.offsetWidth;r(13,Z=t>2),r(14,Q=t+n<e-2)}const Et=Wr(kt,50);function Ct(t){K.scroll({left:K.scrollLeft+.75*K.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function At(){let t=[],e=X[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ut;++e){const r=X[e].children[n];r&&t.push(r)}return t}function Vt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===ft,i=r?"offsetLeft":"offsetTop",o=r?"left":"top",a=t[e];a&&K.scroll({[o]:Math.max(0,a[i]+.01-mt/2),behavior:n})}function Dt(t){const e=At(),n=K.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===ft?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 i=e.map((t=>function(t,e){return"horizontal"===ft?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),o=i.findIndex(Boolean);return-1!==o?"prev"===t&&2===i.filter(Boolean).length?o+1:o:"prev"===t?1:e.length-2}return!U.id||it||(null==q?void 0:q.fakeElement)||G.registerInstance(U.id,{setCurrentItem(t){const e=At();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){const e=Dt("prev"),n=At();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),Vt(n,r)},setNextItem(t){const e="horizontal"===ft?K.scrollLeft+K.offsetWidth===K.scrollWidth:K.scrollTop+K.offsetHeight===K.scrollHeight,n=At();if(e&&"ring"===t)return void Vt(n,0);const r=Dt("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),Vt(n,i)}}),dt((()=>{r(38,et=!0),!it&&(kt(),xt)&&Vt(At(),xt,"auto")})),ht((()=>{r(38,et=!1),U.id&&!(null==q?void 0:q.fakeElement)&&G.unregisterInstance(U.id)})),t.$$set=t=>{"json"in t&&r(0,U=t.json),"templateContext"in t&&r(1,W=t.templateContext),"origJson"in t&&r(2,H=t.origJson),"layoutParams"in t&&r(3,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(10,i=U.items),1024&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(5,it=!1):(r(5,it=!0),G.logError(ae(new Error('Incorrect or empty "items" prop for div "gallery"'))))),1058&t.$$.dirty[0]&&r(50,o=(!it&&i||[]).map((t=>{let e=t,n=W;return({templateContext:n,json:e}=G.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|536871040&t.$$.dirty[1]&&r(9,a=S&&et&&!it),528&t.$$.dirty[0]|64&t.$$.dirty[1]&&(a?"undefined"!=typeof ResizeObserver&&(r(37,tt=new ResizeObserver((()=>{Et()}))),tt.observe(Y)):tt&&(tt.disconnect(),r(37,tt=null))),1&t.$$.dirty[0]&&(r(28,s=G.getDerivedFromVars(U.column_count)),J(),J=h(s,(t=>r(59,j=t)))),268435712&t.$$.dirty[1]&&r(39,ut=_n(j,ut)),524544&t.$$.dirty[1]&&r(27,l=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(o,ut)),1&t.$$.dirty[0]&&(r(26,c=G.getDerivedFromVars(U.orientation)),B(),B=h(c,(t=>r(58,P=t)))),64&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&r(6,ft=gr(P,ft)),1&t.$$.dirty[0]&&(r(25,u=G.getDerivedFromVars(U.cross_content_alignment)),R(),R=h(u,(t=>r(57,D=t)))),67109376&t.$$.dirty[1]&&r(40,gt=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(D,gt)),1&t.$$.dirty[0]&&(r(24,d=G.getDerivedFromVars(U.item_spacing)),z(),z=h(d,(t=>r(56,V=t)))),33556480&t.$$.dirty[1]&&(r(42,mt=Fe(V,mt)),r(41,at=ue(mt))),1&t.$$.dirty[0]&&(r(23,p=G.getDerivedFromVars(U.cross_spacing)),T(),T=h(p,(t=>r(55,A=t)))),16787456&t.$$.dirty[1]&&(r(44,lt=Fe(A,mt)),r(43,st=ue(lt))),1&t.$$.dirty[0]&&(r(22,g=G.getDerivedFromVars(U.paddings)),M(),M=h(g,(t=>r(54,C=t)))),8404992&t.$$.dirty[1]&&r(45,yt=Ie(C,yt)),64&t.$$.dirty[0]&&r(49,m="horizontal"===ft?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===ft?"width":"height";t.push(G.getDerivedFromVars(e.json[n]))})),r(15,ct=re(t,(t=>t))),O(),O=h(ct,(t=>r(53,E=t)))}if(64&t.$$.dirty[0]|4227328&t.$$.dirty[1]&&(r(46,$t=[]),ut>1?$t.push("auto"):E.forEach((t=>{!t&&"horizontal"===ft||"match_parent"===(null==t?void 0:t.type)?$t.push("100%"):$t.push("max-content")}))),1&t.$$.dirty[0]&&(r(21,v=G.getDerivedFromVars(U.scroll_mode)),F(),F=h(v,(t=>r(52,k=t)))),456&t.$$.dirty[0]|2099968&t.$$.dirty[1]){const t={};let e={};r(47,bt=!1),(null==q?void 0:q.fakeElement)&&(e.fakeElement=!0),"horizontal"===ft?e.parentVAlign=gt:e.parentHAlign=gt,"paging"===k&&(r(47,bt=!0),e.scrollSnap="start",t["horizontal"===ft?"scroll-padding-left":"scroll-padding-top"]=ue(mt/2)),1===ut&&(e.parentLayoutOrientation=ft),r(7,_t=Te(t,_t)),r(8,wt=Te(e,wt))}1&t.$$.dirty[0]&&(r(20,y=G.getDerivedFromVars(U.restrict_parent_scroll)),L(),L=h(y,(t=>r(29,N=t)))),20480&t.$$.dirty[1]&&r(19,$={padding:yt,"grid-gap":st}),295936&t.$$.dirty[1]&&r(18,_={"grid-gap":at,[m]:Ur($t)}),64&t.$$.dirty[0]|65536&t.$$.dirty[1]&&r(17,b={orientation:ft,"scroll-snap":bt}),1&t.$$.dirty[0]&&(r(16,w=G.getDerivedFromVars(U.default_item)),I(),I=h(w,(t=>r(51,x=t)))),1179648&t.$$.dirty[1]&&r(48,xt=Fe(x,xt))},[U,W,H,q,Y,it,ft,_t,wt,a,i,K,X,Z,Q,ct,w,b,_,$,y,v,g,p,d,u,c,l,s,N,nt,rt,function(t){r(0,U=Object.assign(Object.assign({},U),{items:t}))},ot,kt,Et,Ct,tt,et,ut,gt,at,mt,st,lt,yt,$t,bt,xt,m,o,x,k,E,C,A,V,D,P,j,S,function(t,e){vt[t?"unshift":"push"]((()=>{X[e]=t,r(12,X)}))},function(t){vt[t?"unshift":"push"]((()=>{Y=t,r(4,Y)}))},function(t){vt[t?"unshift":"push"]((()=>{K=t,r(11,K)}))},()=>Ct("left"),()=>Ct("right")]}const oi={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__separator:"divkit-b85bf"},ai=37,si=39,li=36,ci=35,{Boolean:ui}=A;function di(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;return r[89]=i,r}function hi(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;r[89]=i;const o=r[89]===r[6];return r[92]=o,r}function fi(t){let e,n;return e=new yn({props:{cls:De("tabs",oi,t[46]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[$i]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),2147483626&n[0]|4137&n[1]|4&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function pi(t){let e,n,r=t[88].title+"";return{c(){e=R(r),n=B()},l(t){e=Z(t,r),n=Q(t)},m(t,r){F(t,e,r),F(t,n,r)},p(t,n){524288&n[0]&&r!==(r=t[88].title+"")&&tt(e,r)},d(t){t&&(O(e),O(n))}}}function gi(t){var e,n,r;let i,o;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[64](t[89],...n)}return i=new Xe({props:{cls:De("tabs__item",oi,{selected:t[92],actionable:Boolean(t[88].title_click_action)}),actions:!t[88].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[88].title_click_action],attrs:{id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[pi]},$$scope:{ctx:t}}}),{c(){Gt(i.$$.fragment)},l(t){Kt(i.$$.fragment,t)},m(t,e){Yt(i,t,e),o=!0},p(e,n){var r,o,s;t=e;const l={};524352&n[0]&&(l.cls=De("tabs__item",oi,{selected:t[92],actionable:Boolean(t[88].title_click_action)})),524296&n[0]&&(l.actions=!t[88].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[88].title_click_action]),524360&n[0]&&(l.attrs={id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"}),524296&n[0]&&(l.customAction=null!==(s=t[3])&&void 0!==s&&s.fakeElement?null:a),524288&n[0]|4&n[3]&&(l.$$scope={dirty:n,ctx:t}),i.$set(l)},i(t){o||(Ot(i.$$.fragment,t),o=!0)},o(t){Mt(i.$$.fragment,t),o=!1},d(t){Xt(i,t)}}}function mi(t){let e,n,r;return{c(){e=T("div"),this.h()},l(t){e=Y(t,"DIV",{class:!0,style:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=oi.tabs__separator),U(e,"style",r=ce(t[36]))},m(t,n){F(t,e,n)},p(t,n){32&n[1]&&r!==(r=ce(t[36]))&&U(e,"style",r)},d(t){t&&O(e)}}}function vi(t){let e,n;return e=new Ta({props:{div:t[18][t[89]].div,templateContext:t[1],layoutParams:t[5]}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};786432&n[0]&&(r.div=t[18][t[89]].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function yi(t){let e,n,r,i,o,a,s=t[30][t[89]]&&vi(t);return{c(){e=T("div"),s&&s.c(),n=B(),this.h()},l(t){e=Y(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=q(e);s&&s.l(r),n=Q(r),r.forEach(O),this.h()},h(){U(e,"class",r=De("tabs__panel",oi,{visible:t[31][t[89]]})),U(e,"role","tabpanel"),U(e,"id",i=t[44]+"-panel-"+t[89]),U(e,"aria-labelledby",o=t[44]+"-tab-"+t[89]),et(e,"left",100*t[89]+"%")},m(t,r){F(t,e,r),s&&s.m(e,null),I(e,n),a=!0},p(t,l){t[30][t[89]]?s?(s.p(t,l),1074266112&l[0]&&Ot(s,1)):(s=vi(t),s.c(),Ot(s,1),s.m(e,n)):s&&(It(),Mt(s,1,1,(()=>{s=null})),Ft()),(!a||524288&l[0]|1&l[1]&&r!==(r=De("tabs__panel",oi,{visible:t[31][t[89]]})))&&U(e,"class",r),(!a||524288&l[0]&&i!==(i=t[44]+"-panel-"+t[89]))&&U(e,"id",i),(!a||524288&l[0]&&o!==(o=t[44]+"-tab-"+t[89]))&&U(e,"aria-labelledby",o),(!a||524288&l[0])&&et(e,"left",100*t[89]+"%")},i(t){a||(Ot(s),a=!0)},o(t){Mt(s),a=!1},d(t){t&&O(e),s&&s.d()}}}function $i(t){let e,n,r,i,o,a,c,u,d,h,f,p=Rt(t[19]),g=[];for(let e=0;e<p.length;e+=1)g[e]=gi(hi(t,p,e));const m=t=>Mt(g[t],1,1,(()=>{g[t]=null}));let v=t[20]&&mi(t),y=Rt(t[19]),$=[];for(let e=0;e<y.length;e+=1)$[e]=yi(di(t,y,e));const _=t=>Mt($[t],1,1,(()=>{$[t]=null}));return{c(){e=T("div");for(let t=0;t<g.length;t+=1)g[t].c();r=B(),v&&v.c(),i=B(),o=T("div"),a=T("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=Y(t,"DIV",{class:!0,role:!0});var n=q(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(O),r=Q(t),v&&v.l(t),i=Q(t),o=Y(t,"DIV",{class:!0});var s=q(o);a=Y(s,"DIV",{class:!0});var l=q(a);for(let t=0;t<$.length;t+=1)$[t].l(l);l.forEach(O),s.forEach(O),this.h()},h(){U(e,"class",n=oi.tabs__list+" "+(t[43]?ie["root_restrict-scroll"]:"")),U(e,"role","tablist"),et(e,"--divkit-tabs-title-padding",t[17]?je(t[17]):""),et(e,"--divkit-tabs-font-size",ue(t[7])),et(e,"--divkit-tabs-paddings",t[8]),et(e,"--divkit-tabs-line-height",t[24]),et(e,"--divkit-tabs-letter-spacing",t[25]),et(e,"--divkit-tabs-active-font-weight",t[10]||""),et(e,"--divkit-tabs-inactive-font-weight",t[11]||""),et(e,"--divkit-tabs-active-font-family",t[26]||""),et(e,"--divkit-tabs-inactive-font-family",t[27]||""),et(e,"--divkit-tabs-active-text-color",t[12]),et(e,"--divkit-tabs-inactive-text-color",t[13]),et(e,"--divkit-tabs-active-background-color",t[14]),et(e,"--divkit-tabs-inactive-background-color",t[15]),et(e,"--divkit-tabs-border-radius",t[9]),et(e,"--divkit-tabs-items-spacing",t[16]?de(t[16]):""),U(a,"class",c=De("tabs__swiper",oi,{inited:t[28],animated:t[29]})),U(o,"class",u=oi.tabs__panels+" "+(t[43]?ie["root_restrict-scroll"]:""))},m(n,s){F(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[65](e),F(n,r,s),v&&v.m(n,s),F(n,i,s),F(n,o,s),I(o,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[66](a),t[67](o),d=!0,h||(f=[L(e,"keydown",t[48]),L(a,"touchstart",(function(){l(t[34]?t[49]:void 0)&&(t[34]?t[49]:void 0).apply(this,arguments)})),L(a,"touchmove",(function(){l(t[34]?t[50]:void 0)&&(t[34]?t[50]:void 0).apply(this,arguments)})),L(a,"touchend",(function(){l(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)})),L(a,"touchcancel",(function(){l(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)}))],h=!0)},p(r,s){if(t=r,524360&s[0]|73728&s[1]){let n;for(p=Rt(t[19]),n=0;n<p.length;n+=1){const r=hi(t,p,n);g[n]?(g[n].p(r,s),Ot(g[n],1)):(g[n]=gi(r),g[n].c(),Ot(g[n],1),g[n].m(e,null))}for(It(),n=p.length;n<g.length;n+=1)m(n);Ft()}if((!d||4096&s[1]&&n!==(n=oi.tabs__list+" "+(t[43]?ie["root_restrict-scroll"]:"")))&&U(e,"class",n),131072&s[0]&&et(e,"--divkit-tabs-title-padding",t[17]?je(t[17]):""),128&s[0]&&et(e,"--divkit-tabs-font-size",ue(t[7])),256&s[0]&&et(e,"--divkit-tabs-paddings",t[8]),16777216&s[0]&&et(e,"--divkit-tabs-line-height",t[24]),33554432&s[0]&&et(e,"--divkit-tabs-letter-spacing",t[25]),1024&s[0]&&et(e,"--divkit-tabs-active-font-weight",t[10]||""),2048&s[0]&&et(e,"--divkit-tabs-inactive-font-weight",t[11]||""),67108864&s[0]&&et(e,"--divkit-tabs-active-font-family",t[26]||""),134217728&s[0]&&et(e,"--divkit-tabs-inactive-font-family",t[27]||""),4096&s[0]&&et(e,"--divkit-tabs-active-text-color",t[12]),8192&s[0]&&et(e,"--divkit-tabs-inactive-text-color",t[13]),16384&s[0]&&et(e,"--divkit-tabs-active-background-color",t[14]),32768&s[0]&&et(e,"--divkit-tabs-inactive-background-color",t[15]),512&s[0]&&et(e,"--divkit-tabs-border-radius",t[9]),65536&s[0]&&et(e,"--divkit-tabs-items-spacing",t[16]?de(t[16]):""),t[20]?v?v.p(t,s):(v=mi(t),v.c(),v.m(i.parentNode,i)):v&&(v.d(1),v=null),1074528290&s[0]|8193&s[1]){let e;for(y=Rt(t[19]),e=0;e<y.length;e+=1){const n=di(t,y,e);$[e]?($[e].p(n,s),Ot($[e],1)):($[e]=yi(n),$[e].c(),Ot($[e],1),$[e].m(a,null))}for(It(),e=y.length;e<$.length;e+=1)_(e);Ft()}(!d||805306368&s[0]&&c!==(c=De("tabs__swiper",oi,{inited:t[28],animated:t[29]})))&&U(a,"class",c),(!d||4096&s[1]&&u!==(u=oi.tabs__panels+" "+(t[43]?ie["root_restrict-scroll"]:"")))&&U(o,"class",u)},i(t){if(!d){for(let t=0;t<p.length;t+=1)Ot(g[t]);for(let t=0;t<y.length;t+=1)Ot($[t]);d=!0}},o(t){g=g.filter(ui);for(let t=0;t<g.length;t+=1)Mt(g[t]);$=$.filter(ui);for(let t=0;t<$.length;t+=1)Mt($[t]);d=!1},d(n){n&&(O(e),O(r),O(i),O(o)),M(g,n),t[65](null),v&&v.d(n),M($,n),t[66](null),t[67](null),h=!1,s(f)}}}function _i(t){let e,n,r=!t[4]&&fi(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[4]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),16&n[0]&&Ot(r,1)):(r=fi(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function bi(t,e,r){let i,o,a,s,l,c,u,d,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D=n,P=n,j=n,S=n,N=n,I=n,F=n,O=n,M=n;var T,z;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>M()));let{json:R={}}=e,{templateContext:B}=e,{origJson:J}=e,{layoutParams:L}=e;const U=pt(oe),W=U.genId("tabs");let H=!1,q=ne([]);f(t,q,(t=>r(19,$=t)));let G,K,Y,X={};const Z=U.getJsonWithVars(R.selected_tab);let Q,tt,et=Z&&Number(Z)||0,nt=12,rt="",it="",ot="",at="",st="",lt="",ct="",ut="",dt="",ft="",gt=0,mt="",yt="",$t=null,_t=!1,bt=!1,wt=et,kt=[],Et=[];async function Ct(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(wt=et,r(6,et=t),Nt(),r(29,bt=!0),Dt(100*-et),Pt(),async function(){await xt();const t=document.getElementById("".concat(W,"-panel-").concat(et));t&&r(22,K.style.height=ue(t.offsetHeight),K)}(),St(),Ot=-et*K.clientWidth,e){await xt();const t=G.querySelector(".".concat(oi.tabs__item_selected));t&&t.focus()}}function At(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==$?void 0:$.length;if(!n)return;const r=$.map((t=>t.index));let i=r.indexOf(et)+t;i>=n?i=0:i<0&&(i=n-1),Ct(r[i],e)}function Vt(t,e){return et===e||(Ct(e),!1)}async function Dt(t){await xt(),r(23,Y.style.transform="translate3d(".concat(t,"%,0,0)"),Y)}function Pt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,et-1):Math.min(et,wt),n=t?Math.min(i.length-1,et+1):Math.max(et,wt);r(30,kt=kt.map(((t,r)=>t||r>=e&&r<=n))),r(31,Et=Et.map(((t,r)=>r>=e&&r<=n)))}let jt=null;function St(){jt&&clearTimeout(jt),jt=window.setTimeout((()=>{r(31,Et=i.map(((t,e)=>e===et)))}),400)}function Nt(){_t||(r(28,_t=!0),r(22,K.style.height=ue(K.clientHeight),K),r(23,Y.style.transform="translate3d(".concat(100*-wt,"%,0,0)"),Y))}let It,Ft,Ot,Mt=null,Tt=null,zt=!1,Rt=!1;return!R.id||H||(null==L?void 0:L.fakeElement)||U.registerInstance(R.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Ct(t)},setPreviousItem(t){let e=et-1;e<0&&(e="ring"===t?i.length-1:et),Ct(e)},setNextItem(t){let e=et+1;e>i.length-1&&(e="ring"===t?0:et),Ct(e)}}),ht((()=>{R.id&&!(null==L?void 0:L.fakeElement)&&U.unregisterInstance(R.id)})),t.$$set=t=>{"json"in t&&r(0,R=t.json),"templateContext"in t&&r(1,B=t.templateContext),"origJson"in t&&r(2,J=t.origJson),"layoutParams"in t&&r(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(18,i=R.items||[]),262144&t.$$.dirty[0])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=U.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):U.logError(ae(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),q.set(t)}else q.set([]);if(524288&t.$$.dirty[0]&&((null==$?void 0:$.length)?r(4,H=!1):(r(4,H=!0),U.logError(ae(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(r(42,o=U.getDerivedFromVars(R.width)),O(),O=h(o,(t=>r(63,A=t)))),1&t.$$.dirty[0]&&(r(41,a=U.getDerivedFromVars(R.height)),F(),F=h(a,(t=>r(62,C=t)))),40&t.$$.dirty[0]|3&t.$$.dirty[2]){let t={};(null==L?void 0:L.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==A?void 0:A.type)&&(t.parentHorizontalWrapContent=!0),C&&"wrap_content"!==C.type||(t.parentVerticalWrapContent=!0),r(5,X=Te(t,X))}if(262225&t.$$.dirty[0]&&!H&&(et<0||et>=i.length)&&(U.logError(ae(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:R.selected_tab,length:i.length}})),r(6,et=et<0?0:i.length-1)),524369&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&(H||$.some((t=>et===t.index))||(U.logError(ae(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:R.selected_tab}})),r(6,et=(null===r(52,T=$[0])||void 0===T?void 0:T.index)||0))),1&t.$$.dirty[0]&&(r(40,s=U.getDerivedFromVars(R.tab_title_style)),I(),I=h(s,(t=>r(61,E=t)))),1073741824&t.$$.dirty[1]&&r(56,l=E||{}),128&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(7,nt=_n(l.font_size,nt)),384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(l.font_size||l.paddings)){const t=l.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/nt*10,right:(Number(t.right)||0)/nt*10,bottom:(Number(t.bottom)||0)/nt*10,left:(Number(t.left)||0)/nt*10};r(8,rt=Ie(e,rt))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&Qe(t)&&r(24,it=ue(t/nt*10))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&Ne(t)&&r(25,ot=ue(t/nt*10))}if(640&t.$$.dirty[0]|37748736&t.$$.dirty[1]&&(l.corner_radius||l.corners_radius||l.font_size)){const t=null!==r(53,z=l.corner_radius)&&void 0!==z?z:1e3;l.corners_radius?r(9,at=function(t,e,n,r){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<i.length;++t)if(i[t]&&!Ne(i[t]))return r;return Le(t,e,n)}(l.corners_radius,t,nt,at)):Ne(t)&&r(9,at=ue(t/nt*10))}1024&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(r(10,Q=wn(l.active_font_weight||l.font_weight,Q)),l.font_family&&"string"==typeof l.font_family?r(26,st=U.typefaceProvider(l.font_family,{fontWeight:Q||400})):r(26,st="")),2048&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(r(11,tt=wn(l.inactive_font_weight||l.font_weight,tt)),l.font_family&&"string"==typeof l.font_family?r(27,lt=U.typefaceProvider(l.font_family,{fontWeight:tt||400})):r(27,lt="")),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,ct=fe(l.active_text_color,1,ct)),8192&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(13,ut=fe(l.inactive_text_color,1,ut)),16384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(14,dt=fe(l.active_background_color,1,dt)),32768&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(15,ft=fe(l.inactive_background_color,1,ft)),65536&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(16,gt=Fe(l.item_spacing,gt)),1&t.$$.dirty[0]&&(r(39,c=U.getDerivedFromVars(R.has_separator)),N(),N=h(c,(t=>r(20,k=t)))),1&t.$$.dirty[0]&&(r(38,u=U.getDerivedFromVars(R.separator_color)),S(),S=h(u,(t=>r(60,x=t)))),1&t.$$.dirty[0]&&(r(37,d=U.getDerivedFromVars(R.separator_paddings)),j(),j=h(d,(t=>r(59,w=t)))),1048576&t.$$.dirty[0]|830472192&t.$$.dirty[1]&&k&&(x&&r(54,mt=fe(x,1,mt)),w&&r(55,yt=Ie(w,yt))),25165824&t.$$.dirty[1]&&r(36,p={background:mt,margin:yt}),1&t.$$.dirty[0]&&(r(35,g=U.getDerivedFromVars(R.switch_tabs_by_content_swipe_enabled)),P(),P=h(g,(t=>r(58,b=t)))),134217728&t.$$.dirty[1]&&r(34,m=void 0===b||Boolean(b)),1&t.$$.dirty[0]&&(r(33,v=U.getDerivedFromVars(R.restrict_parent_scroll)),M(),M=h(v,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(32,y=U.getDerivedFromVars(R.title_paddings)),D(),D=h(y,(t=>r(57,_=t)))),131072&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(17,$t=Je(_||void 0,$t)),262144&t.$$.dirty[0]&&(H||(r(30,kt=i.map(((t,e)=>e===et))),r(31,Et=i.map(((t,e)=>e===et)))))},[R,B,J,L,H,X,et,nt,rt,at,Q,tt,ct,ut,dt,ft,gt,$t,i,$,k,G,K,Y,it,ot,st,lt,_t,bt,kt,Et,y,v,m,g,p,d,u,c,s,a,o,V,W,q,{},Vt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(t.which===ai)At(-1,!0);else if(t.which===si)At(1,!0);else if(t.which===li)Ct(0,!0);else{if(t.which!==ci)return;Ct(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(ie["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==K||(zt=!1,Rt=!1,Mt=He(t),Tt=null,It=Date.now(),Ft=Ot||-et*K.clientWidth,r(29,bt=!1),jt&&clearTimeout(jt))},function(t){const e=He(t);if(!Mt||Tt&&Tt.x===e.x&&Tt.y===e.y)return;Tt=e;const n=K.clientWidth;if(zt){Ot=e.x-Mt.x+Ft;const t=n*i.length;if(Ot>0)Ot=Ot*n/(Ot+3*n);else if(-Ot+n>t){let e=-Ot+n-t;e=e*n/(e+3*n),Ot=n-t-e}Dt(100*Ot/n)}else Math.abs(e.y-Mt.y)>10?Rt=!0:!Rt&&Math.abs(e.x-Mt.x)>8&&(Nt(),zt=!0,Mt=e,Dt(100*-et),Pt(!0));zt&&t.cancelable&&t.preventDefault()},function(){Rt=!1,Mt=null;let t=et;if(!zt)return;zt=!1;const e=Math.min(512,K.clientWidth);Math.abs(Ft-Ot)>e/4*Math.min(1,(Date.now()-It)/750)&&(t+=Ft>Ot?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===et?(Ot=-t*e,Dt(100*-t),St()):Ct(t)},T,z,mt,yt,l,_,b,w,x,E,C,A,(t,e)=>Vt(0,t),function(t){vt[t?"unshift":"push"]((()=>{G=t,r(21,G)}))},function(t){vt[t?"unshift":"push"]((()=>{Y=t,r(23,Y)}))},function(t){vt[t?"unshift":"push"]((()=>{K=t,r(22,K)}))}]}const wi={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function xi(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function ki(t){return t*t*t}function Ei(t){const e=t-1;return e*e*e+1}function Ci(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),i=n-r;return t[r]*i+t[r+1]*(1-i)}}const Ai=Ci([.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]),Vi=Ci([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]),Di={linear:r,ease:Ai,ease_in:ki,ease_out:Ei,ease_in_out:xi,spring:Vi},Pi=200,ji=0,Si=0,Ni=0;function Ii(t){return Math.max(...t.map((t=>(Number(t.duration)||Pi)+(Number(t.start_delay)||ji))))}function Fi(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||ji,a=Number(t.duration)||Pi,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-s:s,u=(Di[t.interpolator||"ease_in_out"]||xi)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Si)};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 o=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===o&&(o="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(i["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(i["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=o*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,f;const e=1-u+u*(t.scale||Ni),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(f=t.pivot_y)&&void 0!==f?f:.5,o=(1-e)*r.width*n,a=(1-e)*r.height*i;return{active:u>0&&u<1,scale:"translate(".concat(o,"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(" "),h=s.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),f=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(f||"none",";opacity:").concat(c)}}}function Oi(t,e,n){return t*(1-n)+e*n}const Mi={linear:r,ease:Ai,ease_in:ki,ease_out:Ei,ease_in_out:xi,spring:Vi},Ti=200,zi=0;function Ri(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:zi,duration:null!==(r=s.duration)&&void 0!==r?r:Ti,easing:s.interpolator&&s.interpolator in Mi?Mi[s.interpolator]:xi,css:t=>["top:".concat(Oi(o.top,a.top,t)-i.top,"px"),"left:".concat(Oi(o.left,a.left,t)-i.left,"px"),"width:".concat(Oi(o.width,a.width,t),"px"),"height:".concat(Oi(o.height,a.height,t),"px")].join(";")}}function Bi(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Bi(t))})):e.push(t),e}const Ji={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},Li={linear:r,ease:Ai,ease_in:ki,ease_out:Ei,ease_in_out:xi,spring:Vi},Ui=300,Wi=0;function Hi(t,e){let{animations:n,direction:r}=e;if(!n)return{};const i=Be(n),o=(a=i,Math.max(...a.map((t=>(Number(t.duration)||Ui)+(Number(t.start_delay)||Wi)))));var a;return i.some((t=>"no_animation"===t.name))?{}:{duration:o,css:t=>{const e=t*o,n=i.map((t=>{const n=Number(t.start_delay)||Wi,i=Number(t.duration)||Ui,o=Math.max(0,Math.min(1,(e-n)/i)),a=(Li[t.interpolator||"ease_in_out"]||xi)(o);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,h;const e="in"===r&&null!==(d=t.start_value)&&void 0!==d?d:0,n="in"===r?1:null!==(h=t.end_value)&&void 0!==h?h: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:qi}=A;function Gi(t){let e,i,o,a,c,u,d,h;return i=new Ta({props:{div:t[0].div,templateContext:t[1]}}),{c(){e=T("div"),Gt(i.$$.fragment),this.h()},l(t){e=Y(t,"DIV",{class:!0});var n=q(e);Kt(i.$$.fragment,n),n.forEach(O),this.h()},h(){U(e,"class",o=De("tooltip",Ji,t[7])+" "+(t[14]?ie.root_platform_desktop:"")),et(e,"top",t[4]),et(e,"left",t[3]),et(e,"width",t[5]),et(e,"height",t[6])},m(n,r){F(n,e,r),Yt(i,e,null),t[27](e),u=!0,d||(h=[L(qi,"click",t[18]),L(qi,"resize",t[19])],d=!0)},p(n,r){t=n;const a={};1&r[0]&&(a.div=t[0].div),2&r[0]&&(a.templateContext=t[1]),i.$set(a),(!u||16512&r[0]&&o!==(o=De("tooltip",Ji,t[7])+" "+(t[14]?ie.root_platform_desktop:"")))&&U(e,"class",o),16&r[0]&&et(e,"top",t[4]),8&r[0]&&et(e,"left",t[3]),32&r[0]&&et(e,"width",t[5]),64&r[0]&&et(e,"height",t[6])},i(n){u||(Ot(i.$$.fragment,n),n&&kt((()=>{u&&(c&&c.end(1),a=zt(e,Hi,{animations:t[15]||t[17],direction:"in"}),a.start())})),u=!0)},o(o){Mt(i.$$.fragment,o),a&&a.invalidate(),o&&(c=function(t,e,i){const o={direction:"out"};let a,c=e(t,i,o),u=!0;const d=Nt;let h;function f(){const{delay:e=0,duration:i=300,easing:o=r,tick:l=n,css:f}=c||Tt;f&&(a=st(t,1,0,i,e,o,f));const p=w()+e,g=p+i;kt((()=>jt(t,!1,"start"))),"inert"in t&&(h=t.inert,t.inert=!0),C((e=>{if(u){if(e>=g)return l(0,1),jt(t,!1,"end"),--d.r||s(d.c),!1;if(e>=p){const t=o((e-p)/i);l(1-t,t)}}return u}))}return d.r+=1,l(c)?Pt().then((()=>{c=c(o),f()})):f(),{end(e){e&&"inert"in t&&(t.inert=h),e&&c.tick&&c.tick(1,0),u&&(a&<(t,a),u=!1)}}}(e,Hi,{animations:t[16]||t[17],direction:"out"})),u=!1},d(n){n&&O(e),Xt(i),t[27](null),n&&c&&c.end(),d=!1,s(h)}}}function Ki(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y=n,$=n,_=n,b=n,w=n,x=n;var k,E,C,A;t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{ownerNode:V}=e,{data:D}=e,{internalId:P}=e,{templateContext:j}=e;const S=pt(oe),N=Date.now();let I,F=!1,O="",M="",T="",z="",R=null;function B(){var t,e;if(!I||!V)return;const n=I.parentElement;if(!n)return;const i=I.style.cssText;r(2,I.style.cssText+=";transform: none !important",I);const o=V.getBoundingClientRect(),a=I.getBoundingClientRect(),s=n.getBoundingClientRect();r(2,I.style.cssText=i,I);let l=0,c=0,u=null,h=null,g=0,m=0;const v=S.getJsonWithVars(null===(t=D.div)||void 0===t?void 0:t.width),y=S.getJsonWithVars(null===(e=D.div)||void 0===e?void 0:e.width);if(g=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?u=v.value:a.width:u=o.width,m="match_parent"===(null==y?void 0:y.type)?h=o.height:"fixed"===(null==y?void 0:y.type)&&y.value?h=y.value:a.height,"left"===p||"bottom-left"===p||"top-left"===p)l=o.left-g;else if("top"===p||"bottom"===p||"center"===p)l=(o.left+o.right)/2-g/2;else{if("right"!==p&&"bottom-right"!==p&&"top-right"!==p)return;l=o.right}if("top"===p||"top-left"===p||"top-right"===p)c=o.top-m;else if("left"===p||"right"===p||"center"===p)c=(o.top+o.bottom)/2-m/2;else{if("bottom-left"!==p&&"bottom"!==p&&"bottom-right"!==p)return;c=o.bottom}l-=s.left,c-=s.top,l+=f||0,c+=d||0,r(3,O="".concat(l,"px")),r(4,M="".concat(c,"px")),r(5,T=null!==u?"".concat(u,"px"):""),r(6,z=null!==h?"".concat(h,"px"):""),r(26,F=!0),null===u||null===h?"undefined"==typeof ResizeObserver||R||(R=new ResizeObserver((()=>{requestAnimationFrame(B)})),R.observe(I)):null==R||R.disconnect()}var J;return dt((()=>{if(S.tooltipRoot){const t=window.getComputedStyle(I);r(2,I.style.fontSize=t.fontSize,I),r(2,I.style.fontFamily=t.fontFamily,I),r(2,I.style.lineHeight=t.lineHeight,I),S.tooltipRoot.appendChild(I)}})),J=()=>{F||B()},ut().$$.after_update.push(J),ht((()=>{null==R||R.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(20,V=t.ownerNode),"data"in t&&r(0,D=t.data),"internalId"in t&&r(21,P=t.internalId),"templateContext"in t&&r(1,j=t.templateContext)},t.$$.update=()=>{1&t.$$.dirty[0]&&(r(12,o=S.getDerivedFromVars(D.position)),_(),_=h(o,(t=>r(31,p=t)))),12582913&t.$$.dirty[0]&&(r(11,a=S.getDerivedFromVars(null===r(23,E=null===r(22,k=D.offset)||void 0===k?void 0:k.x)||void 0===E?void 0:E.value)),$(),$=h(a,(t=>r(30,f=t)))),50331649&t.$$.dirty[0]&&(r(10,s=S.getDerivedFromVars(null===r(25,A=null===r(24,C=D.offset)||void 0===C?void 0:C.y)||void 0===A?void 0:A.value)),y(),y=h(s,(t=>r(29,d=t)))),1&t.$$.dirty[0]&&(r(9,l=S.getDerivedFromVars(D.animation_in)),w(),w=h(l,(t=>r(15,m=t)))),1&t.$$.dirty[0]&&(r(8,c=S.getDerivedFromVars(D.animation_out)),x(),x=h(c,(t=>r(16,v=t)))),67108864&t.$$.dirty[0]&&r(7,u={visible:F})},r(13,i=S.isDesktop),b(),b=h(i,(t=>r(14,g=t))),[D,j,I,O,M,T,z,u,c,l,s,a,o,i,g,m,v,{name:"set",items:[{name:"translate"},{name:"fade"}]},function(t){Date.now()-N<100||t.composedPath().includes(I)||S.onTooltipClose(P)},function(){B()},V,P,k,E,C,A,F,function(t){vt[t?"unshift":"push"]((()=>{I=t,r(2,I)}))}]}const Yi=class extends te{constructor(t){super(),Zt(this,t,Ki,Gi,d,{ownerNode:20,data:0,internalId:21,templateContext:1},null,[-1,-1])}},{Map:Xi}=A;function Zi(t,e,n){const r=t.slice();return r[30]=e[n],r}function Qi(t,e,n){const r=t.slice();return r[30]=e[n],r}function to(t){var e;let n,r,i,o;n=new yn({props:{cls:wi.state,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ao]},$$scope:{ctx:t}}});let a=(null===(e=t[3])||void 0===e?void 0:e.tooltips)&&so(t);return{c(){Gt(n.$$.fragment),r=B(),a&&a.c(),i=J()},l(t){Kt(n.$$.fragment,t),r=Q(t),a&&a.l(t),i=J()},m(t,e){Yt(n,t,e),F(t,r,e),a&&a.m(t,e),F(t,i,e),o=!0},p(t,e){var r;const o={};1&e[0]&&(o.json=t[0]),4&e[0]&&(o.origJson=t[2]),2&e[0]&&(o.templateContext=t[1]),8&e[0]&&(o.layoutParams=t[3]),210&e[0]|16&e[1]&&(o.$$scope={dirty:e,ctx:t}),n.$set(o),null!==(r=t[3])&&void 0!==r&&r.tooltips?a?(a.p(t,e),8&e[0]&&Ot(a,1)):(a=so(t),a.c(),Ot(a,1),a.m(i.parentNode,i)):a&&(It(),Mt(a,1,1,(()=>{a=null})),Ft())},i(t){o||(Ot(n.$$.fragment,t),Ot(a),o=!0)},o(t){Mt(n.$$.fragment,t),Mt(a),o=!1},d(t){t&&(O(r),O(i)),Xt(n,t),a&&a.d(t)}}}function eo(t){let e,r,i=t[7],o=no(t);return{c(){o.c(),e=J()},l(t){o.l(t),e=J()},m(t,n){o.m(t,n),F(t,e,n),r=!0},p(t,r){128&r[0]&&d(i,i=t[7])?(It(),Mt(o,1,1,n),Ft(),o=no(t),o.c(),Ot(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Ot(o),r=!0)},o(t){Mt(o),r=!1},d(t){t&&O(e),o.d(t)}}}function no(t){let e,n;return e=new Ta({props:{div:t[7].div,templateContext:t[1]}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.div=t[7].div),2&n[0]&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function ro(t){let e,n,r,i,o,a,s,l,c,u;function d(){return t[11](t[30])}return r=new Ta({props:{div:t[30].json,templateContext:t[30].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=T("div"),n=T("div"),Gt(r.$$.fragment),o=B(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var i=q(e);n=Y(i,"DIV",{class:!0});var a=q(n);Kt(r.$$.fragment,a),a.forEach(O),o=Q(i),i.forEach(O),this.h()},h(){U(n,"class",i=wi["state__animation-child-inner"]),U(e,"class",a=wi["state__animation-child"])},m(t,i){F(t,e,i),I(e,n),Yt(r,n,null),I(e,o),l=!0,c||(u=L(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n[0]&&(i.div=t[30].json),64&n[0]&&(i.templateContext=t[30].templateContext),r.$set(i)},i(n){l||(Ot(r.$$.fragment,n),s||kt((()=>{s=zt(e,Ri,t[30]),s.start()})),l=!0)},o(t){Mt(r.$$.fragment,t),l=!1},d(t){t&&O(e),Xt(r),c=!1,u()}}}function io(t){let e,n,r,i,o,a,s,l,c,u,d="".concat(t[30].offsetLeft,"px"),h="".concat(t[30].offsetTop,"px"),f="".concat(t[30].width,"px"),p="".concat(t[30].height,"px");function g(){return t[10](t[30])}return r=new Ta({props:{div:t[30].json,templateContext:t[30].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=T("div"),n=T("div"),Gt(r.$$.fragment),o=B(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var i=q(e);n=Y(i,"DIV",{class:!0});var a=q(n);Kt(r.$$.fragment,a),a.forEach(O),o=Q(i),i.forEach(O),this.h()},h(){U(n,"class",i=wi["state__animation-child-inner"]),U(e,"class",a=wi["state__animation-child"]),et(e,"left",d),et(e,"top",h),et(e,"width",f),et(e,"height",p)},m(t,i){F(t,e,i),I(e,n),Yt(r,n,null),I(e,o),l=!0,c||(u=L(e,"introend",g),c=!0)},p(n,i){t=n;const o={};64&i[0]&&(o.div=t[30].json),64&i[0]&&(o.templateContext=t[30].templateContext),r.$set(o),64&i[0]&&d!==(d="".concat(t[30].offsetLeft,"px"))&&et(e,"left",d),64&i[0]&&h!==(h="".concat(t[30].offsetTop,"px"))&&et(e,"top",h),64&i[0]&&f!==(f="".concat(t[30].width,"px"))&&et(e,"width",f),64&i[0]&&p!==(p="".concat(t[30].height,"px"))&&et(e,"height",p)},i(n){l||(Ot(r.$$.fragment,n),s||kt((()=>{s=zt(e,Fi,t[30]),s.start()})),l=!0)},o(t){Mt(r.$$.fragment,t),l=!1},d(t){t&&O(e),Xt(r),c=!1,u()}}}function oo(t,e){let n,r,i,o,a;const s=[io,ro],l=[];function c(t,e){return"direction"in t[30]?0:1}return r=c(e),i=l[r]=s[r](e),{key:t,first:null,c(){n=J(),i.c(),o=J(),this.h()},l(t){n=J(),i.l(t),o=J(),this.h()},h(){this.first=n},m(t,e){F(t,n,e),l[r].m(t,e),F(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(It(),Mt(l[a],1,1,(()=>{l[a]=null})),Ft(),i=l[r],i?i.p(e,n):(i=l[r]=s[r](e),i.c()),Ot(i,1),i.m(o.parentNode,o))},i(t){a||(Ot(i),a=!0)},o(t){Mt(i),a=!1},d(t){t&&(O(n),O(o)),l[r].d(t)}}}function ao(t){var e;let n,r,i,o,a=[],s=new Xi,l=(null===(e=t[7])||void 0===e?void 0:e.div)&&eo(t),c=Rt(t[6]);const u=t=>t[30];for(let e=0;e<c.length;e+=1){let n=Qi(t,c,e),r=u(n);s.set(r,a[e]=oo(r,n))}return{c(){l&&l.c(),n=B(),r=T("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){l&&l.l(t),n=Q(t),r=Y(t,"DIV",{class:!0,"aria-hidden":!0});var e=q(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(O),this.h()},h(){U(r,"class",i=wi.state__animations),U(r,"aria-hidden","true")},m(e,i){l&&l.m(e,i),F(e,n,i),F(e,r,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(r,null);t[12](r),o=!0},p(t,e){var i;null!==(i=t[7])&&void 0!==i&&i.div?l?(l.p(t,e),128&e[0]&&Ot(l,1)):(l=eo(t),l.c(),Ot(l,1),l.m(n.parentNode,n)):l&&(It(),Mt(l,1,1,(()=>{l=null})),Ft()),320&e[0]&&(c=Rt(t[6]),It(),a=Jt(a,e,u,1,t,c,s,r,Bt,oo,null,Qi),Ft())},i(t){if(!o){Ot(l);for(let t=0;t<c.length;t+=1)Ot(a[t]);o=!0}},o(t){Mt(l);for(let t=0;t<a.length;t+=1)Mt(a[t]);o=!1},d(e){e&&(O(n),O(r)),l&&l.d(e);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function so(t){var e;let n,r,i=[],o=new Xi,a=Rt(null===(e=t[3])||void 0===e?void 0:e.tooltips);const s=t=>t[30].internalId;for(let e=0;e<a.length;e+=1){let n=Zi(t,a,e),r=s(n);o.set(r,i[e]=lo(r,n))}return{c(){for(let t=0;t<i.length;t+=1)i[t].c();n=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);n=J()},m(t,e){for(let n=0;n<i.length;n+=1)i[n]&&i[n].m(t,e);F(t,n,e),r=!0},p(t,e){var r;10&e[0]&&(a=Rt(null===(r=t[3])||void 0===r?void 0:r.tooltips),It(),i=Jt(i,e,s,1,t,a,o,n.parentNode,Bt,lo,n,Zi),Ft())},i(t){if(!r){for(let t=0;t<a.length;t+=1)Ot(i[t]);r=!0}},o(t){for(let t=0;t<i.length;t+=1)Mt(i[t]);r=!1},d(t){t&&O(n);for(let e=0;e<i.length;e+=1)i[e].d(t)}}}function lo(t,e){let n,r,i;return r=new Yi({props:{ownerNode:e[30].ownerNode,data:e[30].desc,internalId:e[30].internalId,templateContext:e[1]}}),{key:t,first:null,c(){n=J(),Gt(r.$$.fragment),this.h()},l(t){n=J(),Kt(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){F(t,n,e),Yt(r,t,e),i=!0},p(t,n){e=t;const i={};8&n[0]&&(i.ownerNode=e[30].ownerNode),8&n[0]&&(i.data=e[30].desc),8&n[0]&&(i.internalId=e[30].internalId),2&n[0]&&(i.templateContext=e[1]),r.$set(i)},i(t){i||(Ot(r.$$.fragment,t),i=!0)},o(t){Mt(r.$$.fragment,t),i=!1},d(t){t&&O(n),Xt(r,t)}}}function co(t){let e,n,r=!t[5]&&to(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[5]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),32&n[0]&&Ot(r,1)):(r=to(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function uo(t){return"change_bounds"===t.type?t:"set"===t.type?uo(t.items[0]):null}function ho(t,e,n){let r,{json:i={}}=e,{templateContext:o}=e,{origJson:a}=e,{layoutParams:s}=e;const l=pt(oe),c=pt(Pe);let u,d=new Map,h=new Set,f=!1,p=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=l.getJsonWithVars(r),o=l.getJsonWithVars(o);const s=Bi(o),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=s,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:c,rootBbox:t,transitions:s,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=i.div_id||i.id;async function b(t){if(w===t)return;l.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let i=[];if(u){const t=u.getBoundingClientRect();i=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const o=r.find((e=>e.state_id===t))||null;if(o?(w=t,null==C||C.setValue(w),n(7,x=o)):l.logError(ae(new Error("Cannot find state with id"),{additional:{stateId:t}})),await xt(),!u)return;const a=u.getBoundingClientRect();let s=m.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,t,"in")));i=i.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=i.concat(s),f=c.reduce(((t,e)=>Math.max(t,Ii(e.transitions))),0),p=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:uo(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:f}))),...p]),d.clear(),l.setRunning("stateChange",!1)}let w;_?(null==s?void 0:s.fakeElement)||(c.registerInstance(_,{setState:b,getChild(t){if(p&&p.has(t))return p.get(t);l.logError(ae(new Error("Missing state block with id"),{additional:{id:t}}))}}),ft(Pe,{registerInstance(t,e){p||(p=new Map),p.has(t)?l.logError(ae(new Error("Duplicate state with id"),{additional:{id:t}})):p.set(t,e)},unregisterInstance(t){null==p||p.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),s=Ii(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(6,g=[...g.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return y.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(f=!0,l.logError(ae(new Error('Missing "id" prop for div "state"'))));let x=null;const k=l.getJsonWithVars(i.default_state_id),E=i.state_id_variable,C=E?l.getVariable(E,"string"):null;let A=!1;function V(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return ht((()=>{_&&!(null==s?void 0:s.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,i=t.json),"templateContext"in t&&n(1,o=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,s=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&i&&(h=new Set),1&t.$$.dirty[0]&&n(9,r=i.states||[]),512&t.$$.dirty[0]&&((null==r?void 0:r.length)?n(5,f=!1):(n(5,f=!0),l.logError(ae(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty[0]&&function(t){if(!A&&(A=!0,t.length)){const e=(null==C?void 0:C.getValue())||k;e?(w=e,n(7,x=t.find((t=>t.state_id===w))||null),x||l.logError(ae(new Error("Cannot find state for default_state_id"),{additional:{selectedId:w}}))):(n(7,x=t[0]),w=x.state_id),C&&(C.setValue(w),C.subscribe((t=>{b(t)})))}}(r)},[i,o,a,s,u,f,g,x,V,r,t=>V(t),t=>V(t),function(t){vt[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const fo={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:po}=A;function go(t,e,n){const r=t.slice();return r[49]=e[n],r}function mo(t){let e,n;return e=new yn({props:{cls:De("pager",fo,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,parentOf:t[0].items,replaceItems:t[16],$$slots:{default:[$o]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=De("pager",fo,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1&n[0]&&(r.parentOf=t[0].items),33336&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function vo(t){var e;let n,r,i,o,a;return r=new Ta({props:{div:t[49].json,templateContext:t[49].templateContext,origJson:t[49].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=T("div"),Gt(r.$$.fragment),i=B(),this.h()},l(t){n=Y(t,"DIV",{class:!0});var e=q(n);Kt(r.$$.fragment,e),i=Q(e),e.forEach(O),this.h()},h(){U(n,"class",o=fo.pager__item)},m(t,e){F(t,n,e),Yt(r,n,null),I(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[49].json),16&e[0]&&(i.templateContext=t[49].templateContext),16&e[0]&&(i.origJson=t[49].origJson),8&e[0]&&(i.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(i)},i(t){a||(Ot(r.$$.fragment,t),a=!0)},o(t){Mt(r.$$.fragment,t),a=!1},d(t){t&&O(n),Xt(r)}}}function yo(t){let e,n,r=Rt(t[4]),i=[];for(let e=0;e<r.length;e+=1)i[e]=vo(go(t,r,e));const o=t=>Mt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=J()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=J()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);F(t,e,r),n=!0},p(t,n){if(24&n[0]){let a;for(r=Rt(t[4]),a=0;a<r.length;a+=1){const o=go(t,r,a);i[a]?(i[a].p(o,n),Ot(i[a],1)):(i[a]=vo(o),i[a].c(),Ot(i[a],1),i[a].m(e.parentNode,e))}for(It(),a=r.length;a<i.length;a+=1)o(a);Ft()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ot(i[t]);n=!0}},o(t){i=i.filter(po);for(let t=0;t<i.length;t+=1)Mt(i[t]);n=!1},d(t){t&&O(e),M(i,t)}}}function $o(t){let e,r,i,o,a,s,l=t[4],c=yo(t);return{c(){e=T("div"),c.c(),this.h()},l(t){e=Y(t,"DIV",{class:!0,style:!0});var n=q(e);c.l(n),n.forEach(O),this.h()},h(){U(e,"class",r=fo.pager__items+" "+(t[15]?ie["root_restrict-scroll"]:"")),U(e,"style",i=ce(t[9]))},m(n,r){F(n,e,r),c.m(e,null),t[37](e),o=!0,a||(s=L(e,"scroll",t[17]),a=!0)},p(t,a){16&a[0]&&d(l,l=t[4])?(It(),Mt(c,1,1,n),Ft(),c=yo(t),c.c(),Ot(c,1),c.m(e,null)):c.p(t,a),(!o||32768&a[0]&&r!==(r=fo.pager__items+" "+(t[15]?ie["root_restrict-scroll"]:"")))&&U(e,"class",r),(!o||512&a[0]&&i!==(i=ce(t[9])))&&U(e,"style",i)},i(t){o||(Ot(c),o=!0)},o(t){Mt(c),o=!1},d(n){n&&O(e),c.d(n),t[37](null),a=!1,s()}}}function _o(t){let e,n,r=!t[7]&&mo(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[7]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),128&n[0]&&Ot(r,1)):(r=mo(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function bo(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y,_,b,w,x=n,k=n,E=n,C=n,A=n,V=n;var D,P,j,S,N,I,F;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V()));let{json:O={}}=e,{templateContext:M}=e,{origJson:T}=e,{layoutParams:z}=e;const R=pt(oe),B=R.genId("pager");let J,L=!1,U=!1,W=0,H=0,q=!1,G="horizontal",K="",Y="",X="";const Z=Wr((function(){if(!L)return;const t=function(){const t=Array.from(J.children),e=J.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===G?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:W}();t!==W&&r(26,W=t)}),50);function Q(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===G,i=J.children[t],o=n?"offsetLeft":"offsetTop",a=n?"left":"top";J.scroll({[a]:i[o],behavior:e}),r(26,W=t)}return O.id&&!(null==z?void 0:z.fakeElement)&&R.registerInstance(O.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Q(t)},setPreviousItem(t){let e=W-1;e<0&&(e="ring"===t?i.length-1:W),Q(e)},setNextItem(t){let e=W+1;e>i.length-1&&(e="ring"===t?0:W),Q(e)}}),dt((()=>{if(L=!0,Boolean(document.getElementById("".concat(B,"-tab-0")))){const t=[...J.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(B,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(B,"-tab-").concat(e))}})),ht((()=>{L=!1,O.id&&!(null==z?void 0:z.fakeElement)&&R.unregisterInstance(O.id)})),t.$$set=t=>{"json"in t&&r(0,O=t.json),"templateContext"in t&&r(1,M=t.templateContext),"origJson"in t&&r(2,T=t.origJson),"layoutParams"in t&&r(3,z=t.layoutParams)},t.$$.update=()=>{if(262145&t.$$.dirty[0]&&((null===r(18,D=O.items)||void 0===D?void 0:D.length)&&Array.isArray(O.items)?r(25,U=!1):(r(25,U=!0),R.logError(ae(new Error('Incorrect or empty "items" prop for div "pager"'))))),33554435&t.$$.dirty[0]&&r(4,i=(!U&&O.items||[]).map((t=>{let e=t,n=M;return({templateContext:n,json:e}=R.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(14,o=R.getDerivedFromVars(O.layout_mode)),k(),k=h(o,(t=>r(33,v=t)))),4&t.$$.dirty[1]&&(v?"percentage"!==v.type&&"fixed"!==v.type?(r(27,q=!0),R.logError(ae(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(27,q=!1):(r(27,q=!0),R.logError(ae(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(r(13,a=R.getDerivedFromVars(O.orientation)),A(),A=h(a,(t=>r(36,b=t)))),268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(28,G=gr(b,G)),1&t.$$.dirty[0]&&(r(12,s=R.getDerivedFromVars(O.item_spacing)),C(),C=h(s,(t=>r(35,_=t)))),16&t.$$.dirty[1]){const t=null==_?void 0:_.value;t&&Ne(t)&&r(29,K=ue(t||0))}if(1&t.$$.dirty[0]&&(r(11,l=R.getDerivedFromVars(O.paddings)),E(),E=h(l,(t=>r(34,y=t)))),1073741824&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(30,Y=Ie(y,Y)),1&t.$$.dirty[0]&&(r(10,c=R.getDerivedFromVars(O.restrict_parent_scroll)),V(),V=h(c,(t=>r(15,w=t)))),268435456&t.$$.dirty[0]&&r(32,u="horizontal"===G?"grid-auto-columns":"grid-auto-rows"),838336513&t.$$.dirty[0]|4&t.$$.dirty[1])if("fixed"===(null==v?void 0:v.type)){const t=de("horizontal"===G?((null===r(19,P=O.paddings)||void 0===P?void 0:P.left)||0)+((null===r(20,j=O.paddings)||void 0===j?void 0:j.right)||0):((null===r(21,S=O.paddings)||void 0===S?void 0:S.top)||0)+((null===r(22,N=O.paddings)||void 0===N?void 0:N.bottom)||0)),e=null===r(23,I=v.neighbour_page_width)||void 0===I?void 0:I.value;r(31,X=e?"calc(100% + ".concat(t," - 2 * ").concat(de(e)," - 2 * ").concat(K,")"):"100%")}else if("percentage"===(null==v?void 0:v.type)){const t=null===r(24,F=v.page_width)||void 0===F?void 0:F.value;r(31,X="".concat(Number(t),"%"))}1610612736&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(9,d={"grid-gap":K,padding:Y,[u]:X}),268435456&t.$$.dirty[0]&&r(8,f={orientation:G}),167772160&t.$$.dirty[0]&&r(7,p=U||q),67108880&t.$$.dirty[0]&&function(t,e){const n=O.id;if(n){const r=new Map(m);$(g,m=r.set(n,{instId:B,size:t,currentItem:e,scrollToPagerItem:Q}),m)}}(i.length,W),67108864&t.$$.dirty[0]&&function(t){var e;if(t===H)return;H=t;const n=R.getJsonWithVars(null===(e=i[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&R.execAnyActions(n)}(W)},r(6,g=R.getStore("pagers")),x(),x=h(g,(t=>r(40,m=t))),[O,M,T,z,i,J,g,p,f,d,c,l,s,a,o,w,function(t){r(0,O=Object.assign(Object.assign({},O),{items:t}))},Z,D,P,j,S,N,I,F,U,W,q,G,K,Y,X,u,v,y,_,b,function(t){vt[t?"unshift":"push"]((()=>{J=t,r(5,J)}))}]}const wo={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_placement_stretch:"divkit-b6bd3"};function xo(t,e,n){const r=t.slice();r[43]=e[n],r[46]=n;const i=r[46]===r[12].currentItem;return r[44]=i,r}function ko(t){let e,n=Rt(Array(t[12].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=Eo(xo(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=J()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=J()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);F(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Rt(Array(t[12].size)),o=0;o<n.length;o+=1){const a=xo(t,n,o);r[o]?r[o].p(a,i):(r[o]=Eo(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&O(e),M(r,t)}}}function Eo(t){let e,n,r,i,o,a,l,c;function u(){return t[36](t[46])}return{c(){e=T("div"),this.h()},l(t){e=Y(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=De("indicator__item",wo,{active:t[44]})+" "+ie.root__clickable),U(e,"role","tab"),U(e,"id",r=t[12].instId+"-tab-"+t[46]),U(e,"aria-controls",i=t[12].instId+"-panel-"+t[46]),U(e,"aria-selected",o=t[44]?"true":"false"),U(e,"tabindex",a=t[44]?0:-1)},m(n,r){F(n,e,r),l||(c=[L(e,"click",u),L(e,"keydown",t[24])],l=!0)},p(s,l){t=s,4096&l[0]&&n!==(n=De("indicator__item",wo,{active:t[44]})+" "+ie.root__clickable)&&U(e,"class",n),4096&l[0]&&r!==(r=t[12].instId+"-tab-"+t[46])&&U(e,"id",r),4096&l[0]&&i!==(i=t[12].instId+"-panel-"+t[46])&&U(e,"aria-controls",i),4096&l[0]&&o!==(o=t[44]?"true":"false")&&U(e,"aria-selected",o),4096&l[0]&&a!==(a=t[44]?0:-1)&&U(e,"tabindex",a)},d(t){t&&O(e),l=!1,s(c)}}}function Co(t){let e,n,r,i,o=t[12]&&ko(t);return{c(){e=T("div"),n=T("div"),o&&o.c(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var r=q(e);n=Y(r,"DIV",{class:!0,role:!0});var i=q(n);o&&o.l(i),i.forEach(O),r.forEach(O),this.h()},h(){U(n,"class",r=wo.indicator__items),U(n,"role","tablist"),et(n,"margin","default"===t[6]?"0 ".concat(ue(Math.max(0,t[4].width-t[5].width)/2)):""),et(n,"--divkit-indicator-inactive-width",ue(t[5].width)),et(n,"--divkit-indicator-inactive-height",ue(t[5].height)),et(n,"--divkit-indicator-inactive-border-radius",ue(t[5].borderRadius)),et(n,"--divkit-indicator-inactive-background",t[5].background||""),et(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),et(n,"--divkit-indicator-active-width",ue(t[4].width)),et(n,"--divkit-indicator-active-height",ue(t[4].height)),et(n,"--divkit-indicator-active-border-radius",ue(t[4].borderRadius)),et(n,"--divkit-indicator-active-background",t[4].background||""),et(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),et(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),et(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(ue((t[7]-t[5].width)/2)):""),et(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?ue(t[9]):""),et(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),et(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?ue((t[8]-1)*t[9]):""),U(e,"class",i=wo.indicator__scroller)},m(r,i){F(r,e,i),I(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=ko(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&et(n,"margin","default"===t[6]?"0 ".concat(ue(Math.max(0,t[4].width-t[5].width)/2)):""),32&e[0]&&et(n,"--divkit-indicator-inactive-width",ue(t[5].width)),32&e[0]&&et(n,"--divkit-indicator-inactive-height",ue(t[5].height)),32&e[0]&&et(n,"--divkit-indicator-inactive-border-radius",ue(t[5].borderRadius)),32&e[0]&&et(n,"--divkit-indicator-inactive-background",t[5].background||""),32&e[0]&&et(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),16&e[0]&&et(n,"--divkit-indicator-active-width",ue(t[4].width)),16&e[0]&&et(n,"--divkit-indicator-active-height",ue(t[4].height)),16&e[0]&&et(n,"--divkit-indicator-active-border-radius",ue(t[4].borderRadius)),16&e[0]&&et(n,"--divkit-indicator-active-background",t[4].background||""),16&e[0]&&et(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),48&e[0]&&et(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),224&e[0]&&et(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(ue((t[7]-t[5].width)/2)):""),576&e[0]&&et(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?ue(t[9]):""),320&e[0]&&et(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),832&e[0]&&et(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?ue((t[8]-1)*t[9]):"")},d(n){n&&O(e),o&&o.d(),t[37](null),t[38](null)}}}function Ao(t){let e,n;return e=new yn({props:{cls:De("indicator",wo,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Co]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=De("indicator",wo,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Vo(t,e,r){let i,o,a,s,l,c,u,d,f,p,g,m,v,y,$,_,b,w,x,k=n,E=n,C=n,A=n,V=n,D=n,P=n,j=n,S=n;var N,I;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S()));let{json:F={}}=e,{templateContext:O}=e,{origJson:M}=e,{layoutParams:T}=e;const z=["rounded_rectangle","circle"],R=pt(oe);let B,J,L,U={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},W={width:10,height:10,borderRadius:5,background:"#33919cb5"},H="default",q=15,G=10,K=5;function Y(t){t!==L.currentItem&&L.scrollToPagerItem(t)}async function X(t){L.scrollToPagerItem(t),await xt();const e=J.querySelector(".".concat(wo.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&r(0,F=t.json),"templateContext"in t&&r(1,O=t.templateContext),"origJson"in t&&r(2,M=t.origJson),"layoutParams"in t&&r(3,T=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(22,i=R.getDerivedFromVars(F.shape)),D(),D=h(i,(t=>r(32,_=t)))),1&t.$$.dirty[0]&&(r(21,o=R.getDerivedFromVars(F.active_item_color)),A(),A=h(o,(t=>r(30,y=t)))),1&t.$$.dirty[0]&&(r(20,a=R.getDerivedFromVars(F.inactive_item_color)),V(),V=h(a,(t=>r(31,$=t)))),1&t.$$.dirty[0]&&(r(19,s=R.getDerivedFromVars(F.active_item_size)),P(),P=h(s,(t=>r(33,b=t)))),1&t.$$.dirty[0]&&(r(18,l=R.getDerivedFromVars(F.active_shape)),S(),S=h(l,(t=>r(35,x=t)))),1&t.$$.dirty[0]&&(r(17,c=R.getDerivedFromVars(F.inactive_shape)),j(),j=h(c,(t=>r(34,w=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(x&&r(4,U=Gn({type:"shape_drawable",shape:x},z,U)),w&&r(5,W=Gn({type:"shape_drawable",shape:w},z,W)),!x&&!w&&_)){const t=_n(b,1.3);r(5,W=Gn({type:"shape_drawable",shape:_,color:W.background},z,W)),r(5,W.background=fe($,1,W.background),W),r(4,U=Object.assign(Object.assign({},W),{width:W.width*t,height:W.height*t,borderRadius:W.borderRadius*t,background:U.background})),r(4,U.background=fe(y,1,U.background),U)}if(1&t.$$.dirty[0]&&(r(16,u=R.getDerivedFromVars(F.space_between_centers)),E(),E=h(u,(t=>r(28,m=t)))),1&t.$$.dirty[0]&&(r(15,d=R.getDerivedFromVars(F.items_placement)),C(),C=h(d,(t=>r(29,v=t)))),905970624&t.$$.dirty[0])if(!v||"default"!==v.type&&"stretch"!==v.type)r(6,H="default"),m&&r(7,q=Fe(m.value,q));else if(r(6,H=v.type),"default"===H)r(7,q=Fe(null===r(25,N=v.space_between_centers)||void 0===N?void 0:N.value,q));else if("stretch"===H){const t=v;r(8,G=_n(t.max_visible_items,G)),r(9,K=Fe(null===r(26,I=t.item_spacing)||void 0===I?void 0:I.value,K))}134217728&t.$$.dirty[0]&&async function(t){if(F.pager_id&&t.has(F.pager_id)&&(r(12,L=t.get(F.pager_id)),await xt(),J)){const t=J.children[L.currentItem].offsetLeft;B.scroll({left:t-B.clientWidth/2,behavior:"smooth"})}}(g),64&t.$$.dirty[0]&&r(13,p={placement:H})},r(14,f=R.getStore("pagers")),k(),k=h(f,(t=>r(27,g=t))),[F,O,M,T,U,W,H,q,G,K,B,J,L,p,f,d,u,c,l,s,a,o,i,Y,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=L;if(t.which===ai)X(n-1<0?n:n-1);else if(t.which===si)X(n+1>=e?n:n+1);else if(t.which===li)X(0);else{if(t.which!==ci)return;X(e-1)}t.preventDefault()},N,I,g,m,v,y,$,_,b,w,x,t=>Y(t),function(t){vt[t?"unshift":"push"]((()=>{J=t,r(11,J)}))},function(t){vt[t?"unshift":"push"]((()=>{B=t,r(10,B)}))}]}const Do={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",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 Po(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&fe(t.text_color)||"#000",i=bn(t.font_weight);if(Qe(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:ue(t.font_size),fontWeight:i,textColor:r};return"number"==typeof(null==n||null===(o=n.x)||void 0===o?void 0:o.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 jo(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const So="function"==typeof BigInt;function No(t){return So?BigInt(t):Number(t)}const Io=No("9223372036854775807"),Fo=No("-9223372036854775808");function Oo(t){const e=No(t);if(e>Io||e<Fo)throw new Error("Integer overflow.");return e}const Mo=Oo(0);function To(t){let e=t;return e<0&&(e=-e),e}function zo(t){let e=0;return t>0?e=1:t<0&&(e=-1),Oo(e)}class Ro{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=ne(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}}const Bo={string:class extends Ro{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends Ro{convertValue(t){if("number"!=typeof t||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"}},integer:class extends Ro{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>Io||t<Fo)throw new Error("Incorrect variable value");return Oo(t)}fromString(t){const e=Oo(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends Ro{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"}},color:class extends Ro{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"}},url:class extends Ro{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}},dict:class extends Ro{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"}}};function Jo(t,e,n){if(!(e in Bo))throw new Error("Unsupported variable type");return new Bo[e](t,n)}function Lo(t,e,n){const r=t.slice();return r[78]=e[n],r}function Uo(t,e,n){const r=t.slice();return r[78]=e[n],r}function Wo(t){let e,n;return e=new yn({props:{cls:De("slider",Do,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Yo]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=De("slider",Do,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Ho(t){let e,n;return{c(){e=T("div"),this.h()},l(t){e=Y(t,"DIV",{class:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=Do.slider__tick+" "+Do.slider__tick_active),et(e,"--divkit-slider-tick",t[78])},m(t,n){F(t,e,n)},p(t,n){131072&n[0]&&et(e,"--divkit-slider-tick",t[78])},d(t){t&&O(e)}}}function qo(t){let e,n;return{c(){e=T("div"),this.h()},l(t){e=Y(t,"DIV",{class:!0}),q(e).forEach(O),this.h()},h(){U(e,"class",n=Do.slider__tick+" "+Do.slider__tick_inactive),et(e,"--divkit-slider-tick",t[78])},m(t,n){F(t,e,n)},p(t,n){262144&n[0]&&et(e,"--divkit-slider-tick",t[78])},d(t){t&&O(e)}}}function Go(t){let e,n,r,i,o;return{c(){e=T("div"),n=T("div"),r=R(t[6]),this.h()},l(i){e=Y(i,"DIV",{class:!0});var o=q(e);n=Y(o,"DIV",{class:!0});var a=q(n);r=Z(a,t[6]),a.forEach(O),o.forEach(O),this.h()},h(){var r,a,s;U(n,"class",i=Do["slider__thumb-text-inner"]),et(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em"),et(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||""),et(n,"color",(null===(s=t[12])||void 0===s?void 0:s.textColor)||"#000"),U(e,"class",o=Do["slider__thumb-text"])},m(t,i){F(t,e,i),I(e,n),I(n,r)},p(t,e){var i,o,a;64&e[0]&&tt(r,t[6]),4096&e[0]&&et(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em"),4096&e[0]&&et(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||""),4096&e[0]&&et(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&O(e)}}}function Ko(t){let e,n,r,i,o;return{c(){e=T("div"),n=T("div"),r=R(t[7]),this.h()},l(i){e=Y(i,"DIV",{class:!0});var o=q(e);n=Y(o,"DIV",{class:!0});var a=q(n);r=Z(a,t[7]),a.forEach(O),o.forEach(O),this.h()},h(){var r,a,s;U(n,"class",i=Do["slider__thumb-text-inner"]),et(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em"),et(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||""),et(n,"color",(null===(s=t[13])||void 0===s?void 0:s.textColor)||"#000"),U(e,"class",o=Do["slider__thumb-text"]+" "+Do["slider__thumb-text_secondary"])},m(t,i){F(t,e,i),I(e,n),I(n,r)},p(t,e){var i,o,a;128&e[0]&&tt(r,t[7]),8192&e[0]&&et(n,"font-size",(null===(i=t[13])||void 0===i?void 0:i.fontSize)||"1em"),8192&e[0]&&et(n,"font-weight",(null===(o=t[13])||void 0===o?void 0:o.fontWeight)||""),8192&e[0]&&et(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&O(e)}}}function Yo(t){let e,n,r,i,o,a,l,c,u,d,h,f,p,g,m,v,y,$,_,b,w,x,k=Rt(t[17]),E=[];for(let e=0;e<k.length;e+=1)E[e]=Ho(Uo(t,k,e));let C=Rt(t[18]),A=[];for(let e=0;e<C.length;e+=1)A[e]=qo(Lo(t,C,e));let V=t[12]&&Go(t),D=t[37]&&function(t){let e,n,r=t[13]&&Ko(t);return{c(){e=T("div"),r&&r.c(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var n=q(e);r&&r.l(n),n.forEach(O),this.h()},h(){U(e,"class",n=Do.slider__thumb+" "+Do.slider__thumb_secondary),et(e,"border-radius",ue(t[9].borderRadius)),et(e,"background",t[9].background),et(e,"box-shadow",t[9].boxShadow||"")},m(t,n){F(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=Ko(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&et(e,"border-radius",ue(t[9].borderRadius)),512&n[0]&&et(e,"background",t[9].background),512&n[0]&&et(e,"box-shadow",t[9].boxShadow||"")},d(t){t&&O(e),r&&r.d()}}}(t),P=t[37]&&function(t){let e,n,r,i,o;return{c(){e=T("input"),this.h()},l(t){e=Y(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){U(e,"type","range"),U(e,"class",n=t[16]?Do.slider__input:"".concat(Do.slider__input," ").concat(Do.slider__input_secondary)),U(e,"min",t[4]),U(e,"max",t[5]),U(e,"step","1"),e.value=r=t[16]?t[6]:t[7],U(e,"aria-label",t[20])},m(n,r){F(n,e,r),i||(o=[L(e,"input",t[68]),L(e,"mousedown",t[37]?t[40]:null),L(e,"touchstart",t[37]?t[40]:null)],i=!0)},p(t,i){65536&i[0]&&n!==(n=t[16]?Do.slider__input:"".concat(Do.slider__input," ").concat(Do.slider__input_secondary))&&U(e,"class",n),16&i[0]&&U(e,"min",t[4]),32&i[0]&&U(e,"max",t[5]),65728&i[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&i[0]&&U(e,"aria-label",t[20])},d(t){t&&O(e),i=!1,s(o)}}}(t);return{c(){e=T("div"),n=T("div"),r=T("div"),o=B(),a=T("div"),c=B();for(let t=0;t<E.length;t+=1)E[t].c();u=B();for(let t=0;t<A.length;t+=1)A[t].c();d=B(),h=T("div"),V&&V.c(),p=B(),D&&D.c(),g=B(),m=T("input"),$=B(),P&&P.c(),this.h()},l(t){e=Y(t,"DIV",{class:!0});var i=q(e);n=Y(i,"DIV",{class:!0});var s=q(n);r=Y(s,"DIV",{class:!0}),q(r).forEach(O),o=Q(s),a=Y(s,"DIV",{class:!0}),q(a).forEach(O),c=Q(s);for(let t=0;t<E.length;t+=1)E[t].l(s);u=Q(s);for(let t=0;t<A.length;t+=1)A[t].l(s);d=Q(s),h=Y(s,"DIV",{class:!0});var l=q(h);V&&V.l(l),l.forEach(O),p=Q(s),D&&D.l(s),g=Q(s),m=Y(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),$=Q(s),P&&P.l(s),s.forEach(O),i.forEach(O),this.h()},h(){U(r,"class",i=Do.slider__track),et(r,"height",ue(t[10].height)),et(r,"border-radius",ue(t[10].borderRadius)),et(r,"background",t[10].background),et(r,"box-shadow",t[10].boxShadow||""),U(a,"class",l=Do["slider__active-track"]),et(a,"left",(100*t[23]).toFixed(2)+"%"),et(a,"width",(100*t[24]).toFixed(2)+"%"),et(a,"height",ue(t[11].height)),et(a,"border-radius",ue(t[11].borderRadius)),et(a,"background",t[11].background),et(a,"box-shadow",t[11].boxShadow||""),U(h,"class",f=Do.slider__thumb),et(h,"border-radius",ue(t[8].borderRadius)),et(h,"background",t[8].background),et(h,"box-shadow",t[8].boxShadow||""),U(m,"type","range"),U(m,"class",v=t[16]?"".concat(Do.slider__input," ").concat(Do.slider__input_secondary):Do.slider__input),U(m,"min",t[4]),U(m,"max",t[5]),U(m,"step","1"),m.value=y=t[16]?t[7]:t[6],U(m,"aria-label",t[19]),U(n,"class",_=Do["slider__tracks-inner"]),U(e,"class",b=Do["slider__tracks-wrapper"])},m(i,s){F(i,e,s),I(e,n),I(n,r),I(n,o),I(n,a),I(n,c);for(let t=0;t<E.length;t+=1)E[t]&&E[t].m(n,null);I(n,u);for(let t=0;t<A.length;t+=1)A[t]&&A[t].m(n,null);I(n,d),I(n,h),V&&V.m(h,null),I(n,p),D&&D.m(n,null),I(n,g),I(n,m),I(n,$),P&&P.m(n,null),t[69](n),w||(x=L(m,"input",t[67]),w=!0)},p(t,e){if(1024&e[0]&&et(r,"height",ue(t[10].height)),1024&e[0]&&et(r,"border-radius",ue(t[10].borderRadius)),1024&e[0]&&et(r,"background",t[10].background),1024&e[0]&&et(r,"box-shadow",t[10].boxShadow||""),8388608&e[0]&&et(a,"left",(100*t[23]).toFixed(2)+"%"),16777216&e[0]&&et(a,"width",(100*t[24]).toFixed(2)+"%"),2048&e[0]&&et(a,"height",ue(t[11].height)),2048&e[0]&&et(a,"border-radius",ue(t[11].borderRadius)),2048&e[0]&&et(a,"background",t[11].background),2048&e[0]&&et(a,"box-shadow",t[11].boxShadow||""),131072&e[0]){let r;for(k=Rt(t[17]),r=0;r<k.length;r+=1){const i=Uo(t,k,r);E[r]?E[r].p(i,e):(E[r]=Ho(i),E[r].c(),E[r].m(n,u))}for(;r<E.length;r+=1)E[r].d(1);E.length=k.length}if(262144&e[0]){let r;for(C=Rt(t[18]),r=0;r<C.length;r+=1){const i=Lo(t,C,r);A[r]?A[r].p(i,e):(A[r]=qo(i),A[r].c(),A[r].m(n,d))}for(;r<A.length;r+=1)A[r].d(1);A.length=C.length}t[12]?V?V.p(t,e):(V=Go(t),V.c(),V.m(h,null)):V&&(V.d(1),V=null),256&e[0]&&et(h,"border-radius",ue(t[8].borderRadius)),256&e[0]&&et(h,"background",t[8].background),256&e[0]&&et(h,"box-shadow",t[8].boxShadow||""),t[37]&&D.p(t,e),65536&e[0]&&v!==(v=t[16]?"".concat(Do.slider__input," ").concat(Do.slider__input_secondary):Do.slider__input)&&U(m,"class",v),16&e[0]&&U(m,"min",t[4]),32&e[0]&&U(m,"max",t[5]),65728&e[0]&&y!==(y=t[16]?t[7]:t[6])&&(m.value=y),524288&e[0]&&U(m,"aria-label",t[19]),t[37]&&P.p(t,e)},d(n){n&&O(e),M(E,n),M(A,n),V&&V.d(),D&&D.d(),P&&P.d(),t[69](null),w=!1,x()}}}function Xo(t){let e,n,r,i,o=!t[14]&&Wo(t);return{c(){o&&o.c(),e=J()},l(t){o&&o.l(t),e=J()},m(a,s){o&&o.m(a,s),F(a,e,s),n=!0,r||(i=L(window,"resize",t[42]),r=!0)},p(t,n){t[14]?o&&(It(),Mt(o,1,1,(()=>{o=null})),Ft()):o?(o.p(t,n),16384&n[0]&&Ot(o,1)):(o=Wo(t),o.c(),Ot(o,1),o.m(e.parentNode,e))},i(t){n||(Ot(o),n=!0)},o(t){Mt(o),n=!1},d(t){t&&O(e),o&&o.d(t),r=!1,i()}}}function Zo(t,e,n,r,i){let o=[];if(i)for(let i=t;i<e;++i)o.push((i-n)/(r-n));else{for(let e=n;e<t;++e)o.push((e-n)/(r-n));for(let t=e;t<r+1;++t)o.push((t-n)/(r-n))}return o}function Qo(t,e,r){let i,o,a,s,l,c,u,d,p,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,N,I,F,O,M,T,z,R=n,B=n,J=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,Y=n,X=n;var Z,Q,tt,et;t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),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((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X()));let{json:nt={}}=e,{templateContext:rt}=e,{origJson:it}=e,{layoutParams:ot}=e;const at={width:10,height:10,borderRadius:5,background:"#000"},st=["rounded_rectangle","circle"],lt=["rounded_rectangle"],ct=pt(oe),ut=pt(We);let ht,ft=!1,gt=0,mt=100;const yt=nt.thumb_value_variable,$t=nt.thumb_secondary_value_variable;let _t=yt&&ct.getVariable(yt,"integer")||Jo("temp","integer",0);f(t,_t,(t=>r(64,M=t)));let bt=$t&&ct.getVariable($t,"integer")||Jo("temp","integer",0);f(t,bt,(t=>r(63,O=t)));let wt,xt,kt,Et=jo(M||0,gt,mt),Ct=jo(O||0,gt,mt),At=at,Vt=At,Dt=at,Pt=at,jt=null,St=null,Nt=kt,It="",Ft="",Ot=!1;function Mt(t,e){const n=Number(t.target.value);ft===("first"===e)?(r(7,Ct=n),bt.setValue(n)):(r(6,Et=n),_t.setValue(n))}let Tt=!1;function zt(){if(!ht)return;const t=mt-gt,e=(null==jt?void 0:jt.width)||0,n=(null==St?void 0:St.width)||0;Math.max(e,n)*t>=(null==ht?void 0:ht.clientWidth)?Tt||(ct.logError(ae(new Error("Slider ticks overlap each other"),{level:"warn"})),Tt=!0):Tt=!1}const Rt=Wr(zt,50);return dt((()=>{zt()})),t.$$set=t=>{"json"in t&&r(0,nt=t.json),"templateContext"in t&&r(1,rt=t.templateContext),"origJson"in t&&r(2,it=t.origJson),"layoutParams"in t&&r(3,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(36,i=ct.getDerivedFromVars(nt.min_value)),X(),X=h(i,(t=>r(66,z=t)))),1&t.$$.dirty[0]&&(r(35,o=ct.getDerivedFromVars(nt.max_value)),Y(),Y=h(o,(t=>r(65,T=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(r(4,gt=Re(z,gt)),r(5,mt=Re(T,mt)),zt()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=jo(M||0,gt,mt);t!==Et&&r(6,Et=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=jo(O||0,gt,mt);t!==Ct&&r(7,Ct=t)}if(1&t.$$.dirty[0]&&(r(34,a=ct.getDerivedFromVars(nt.thumb_style)),K(),K=h(a,(t=>r(62,F=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(8,At=Gn(F,st,At)),1&t.$$.dirty[0]&&(r(33,s=ct.getDerivedFromVars(nt.thumb_secondary_style)),G(),G=h(s,(t=>r(61,I=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(9,Vt=Gn(I,st,At)),1&t.$$.dirty[0]&&(r(32,l=ct.getDerivedFromVars(nt.track_inactive_style)),q(),q=h(l,(t=>r(60,N=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(10,Dt=Gn(N,lt,Dt)),1&t.$$.dirty[0]&&(r(31,c=ct.getDerivedFromVars(nt.track_active_style)),H(),H=h(c,(t=>r(59,S=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,Pt=Gn(S,lt,Pt)),1&t.$$.dirty[0]&&(r(30,u=ct.getDerivedFromVars(nt.tick_mark_active_style)),W(),W=h(u,(t=>r(58,j=t)))),134217728&t.$$.dirty[1]){let t=Gn(j,st,at);t!==at&&r(47,jt=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(jt?(r(17,wt=$t?Zo(Math.min(Et,Ct),Math.max(Et,Ct)+1,gt,mt,!0):Zo(gt,Et,gt,mt,!0)),zt()):r(17,wt=[])),1&t.$$.dirty[0]&&(r(29,d=ct.getDerivedFromVars(nt.tick_mark_inactive_style)),U(),U=h(d,(t=>r(57,P=t)))),67108864&t.$$.dirty[1]){let t=Gn(P,st,at);t!==at&&r(48,St=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(St?(r(18,xt=$t?Zo(Math.min(Et,Ct),Math.max(Et,Ct)+1,gt,mt,!1):Zo(Et+1,mt+1,gt,mt,!0)),zt()):r(18,xt=[])),1&t.$$.dirty[0]&&(r(28,p=ct.getDerivedFromVars(nt.thumb_text_style)),L(),L=h(p,(t=>r(56,D=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,kt=Po(D,kt)),1&t.$$.dirty[0]&&(r(27,g=ct.getDerivedFromVars(nt.thumb_secondary_text_style)),J(),J=h(g,(t=>r(55,V=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(13,Nt=Po(V,kt)),1&t.$$.dirty[0]&&(r(26,m=ct.getDerivedFromVars(nt.accessibility)),B(),B=h(m,(t=>r(54,A=t)))),8388608&t.$$.dirty[1]&&((null==A?void 0:A.description)?r(19,It=A.description):ct.logError(ae(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(r(25,v=ct.getDerivedFromVars(nt.secondary_value_accessibility)),R(),R=h(v,(t=>r(53,C=t)))),4194304&t.$$.dirty[1]&&((null==C?void 0:C.description)?r(20,Ft=C.description):$t&&ct.logError(ae(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;ut.hasAction()?(ct.logError(ae(new Error('Cannot show "slider" inside component with action'))),t=!0):At===at?(ct.logError(ae(new Error('Missing "thumb_style" in slider'))),t=!0):Pt===at?(ct.logError(ae(new Error('Missing "track_active_style" in slider'))),t=!0):Dt===at&&(ct.logError(ae(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Ot&&r(14,Ot=t)}768&t.$$.dirty[0]&&r(52,y=ue(Math.max(...[At.width,Vt.width,0].filter(Ne)))),768&t.$$.dirty[0]&&r(51,$=ue(Math.max(...[At.height,Vt.height,0].filter(Ne)))),112&t.$$.dirty[0]&&r(50,_=(Et-gt)/(mt-gt)),176&t.$$.dirty[0]&&r(49,b=$t?(Ct-gt)/(mt-gt):void 0),786432&t.$$.dirty[1]&&r(24,w=void 0!==b?Math.abs(b-_):_),786432&t.$$.dirty[1]&&r(23,x=void 0!==b?Math.min(b,_):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&r(22,k={"--divkit-slider-thumb-width":ue(At.width),"--divkit-slider-thumb-height":ue(At.height),"--divkit-slider-thumb-secondary-width":ue(Vt.width),"--divkit-slider-thumb-secondary-height":ue(Vt.height),"--divkit-slider-text-offset-x":(null===r(43,Z=null==kt?void 0:kt.offset)||void 0===Z?void 0:Z.x)?de(kt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(44,Q=null==kt?void 0:kt.offset)||void 0===Q?void 0:Q.y)?de(kt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(45,tt=null==Nt?void 0:Nt.offset)||void 0===tt?void 0:tt.x)?de(Nt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(46,et=null==Nt?void 0:Nt.offset)||void 0===et?void 0:et.y)?de(Nt.offset.y):void 0,"--divkit-slider-tick-active-width":jt?ue(jt.width):void 0,"--divkit-slider-tick-active-height":jt?ue(jt.height):void 0,"--divkit-slider-tick-active-border-radius":jt?ue(jt.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==jt?void 0:jt.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==jt?void 0:jt.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":St?ue(St.width):void 0,"--divkit-slider-tick-inactive-height":St?ue(St.height):void 0,"--divkit-slider-tick-inactive-border-radius":St?ue(St.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-max-thumb-width":y,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":_,"--divkit-slider-track-secondary-part":b})},r(21,E={}),[nt,rt,it,ot,gt,mt,Et,Ct,At,Vt,Dt,Pt,kt,Nt,Ot,ht,ft,wt,xt,It,Ft,E,k,x,w,v,m,g,p,d,u,c,l,s,a,o,i,$t,_t,bt,function(t){var e,n;const i="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===i)return;const o=ht.getBoundingClientRect(),a=(i-o.left)/o.width,s=(mt-gt)*a,l=Math.round(jo(s,gt,mt));r(16,ft=l<(Et+Ct)/2==Et<Ct)},Mt,Rt,Z,Q,tt,et,jt,St,b,_,$,y,C,A,V,D,P,j,S,N,I,F,O,M,T,z,t=>Mt(t,"first"),t=>Mt(t,"second"),function(t){vt[t?"unshift":"push"]((()=>{ht=t,r(15,ht)}))}]}const ta={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_right":"divkit-e8038",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_top":"divkit-bdccd","input_alignment-vertical_bottom":"divkit-fc670","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 ea(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=ea(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const i=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-i>=n&&t[r-i]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-i}}function na(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 ra{constructor(t){this.char=t}}class ia{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class oa{constructor(t){na(this,"filters",new Map),na(this,"destructedValue",[]),na(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 ra)t+=n.char;else if(n instanceof ia)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 ia&&!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(ae(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 ia(null,this.filters.get(e.key),e.placeholder):new ra(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=ea(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),i=this.buildTailSubstring(n);this.cleanup(n);const o=this.firstEmptyHolderIndex(),a=this.calculateMaxShift(i,o);this.replaceChars(r,o,a);const s=this.firstEmptyHolderIndex();this.replaceChars(i,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 ia&&++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 ia&&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 ia&&(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 i=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof ia);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=i();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 ia&&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 i=e,o=0;for(;i<this.destructedValue.length&&o<r.length;){const t=this.destructedValue[i],e=r[o];t instanceof ia&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof ia);)++e;return e}}class aa extends oa{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function sa(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 extends oa{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}),sa(this,"currencyFormatter",new Intl.NumberFormat),sa(this,"decimalSeparator","."),sa(this,"localeDigits",{}),sa(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(ae(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=ea(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),i=t.lastIndexOf(this.decimalSeparator),o=r!==i||-1===r&&-1===i,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;o&&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 i=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(i=e.start);const o=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=o;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 i=t[r];i===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(i)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==i,l=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=l.length<=o;this.isDigit(u)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(u),a--):l.push(u):d&&-1===n&&r===i?(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 ca=3;function ua(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 da(t,e){if(t.nodeType!==ca)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,i=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,i),n.setEnd(r,i),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],i=ua(r);if(e<=i)return void da(r,e);e-=i}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 ha(t){let e,n;return e=new yn({props:{cls:De("input",ta,t[15]),style:t[14],customDescription:!0,customActions:"input",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ma,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{89:e,90:n,91:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?134217728:0)|(n?268435456:0)|(r?536870912:0)]}]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=De("input",ta,t[15])),16384&n[0]&&(r.style=t[14]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),802672&n[0]|2013265920&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function fa(t){let e,n,r,i,o;return{c(){e=T("input"),this.h()},l(t){e=Y(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){U(e,"type",t[9]),U(e,"inputmode",t[10]),U(e,"class",n=De("input__input",ta,{"has-custom-focus":t[91],singleline:!0})),U(e,"autocomplete","off"),U(e,"autocapitalize","off"),U(e,"aria-label",t[11]),U(e,"style",r=ce(t[13])),U(e,"placeholder",t[18]),e.value=t[4]},m(n,r){F(n,e,r),t[76](e),i||(o=[L(e,"input",t[37]),L(e,"mousedown",(function(){l(t[19]?t[38]:void 0)&&(t[19]?t[38]:void 0).apply(this,arguments)})),L(e,"click",(function(){l(t[19]?t[39]:void 0)&&(t[19]?t[39]:void 0).apply(this,arguments)})),L(e,"focus",(function(){l(t[89])&&t[89].apply(this,arguments)})),L(e,"blur",(function(){l(t[90])&&t[90].apply(this,arguments)}))],i=!0)},p(i,o){t=i,512&o[0]&&U(e,"type",t[9]),1024&o[0]&&U(e,"inputmode",t[10]),536870912&o[2]&&n!==(n=De("input__input",ta,{"has-custom-focus":t[91],singleline:!0}))&&U(e,"class",n),2048&o[0]&&U(e,"aria-label",t[11]),8192&o[0]&&r!==(r=ce(t[13]))&&U(e,"style",r),262144&o[0]&&U(e,"placeholder",t[18]),16&o[0]&&e.value!==t[4]&&(e.value=t[4])},d(n){n&&O(e),t[76](null),i=!1,s(o)}}}function pa(t){let e,n,r,i,o,a,c,u,d,h,f,p,g=!t[8]&&t[18]&&ga(t);return{c(){e=T("span"),g&&g.c(),n=B(),r=T("span"),i=R(""),a=B(),c=T("span"),this.h()},l(t){e=Y(t,"SPAN",{class:!0});var o=q(e);g&&g.l(o),n=Q(o),r=Y(o,"SPAN",{"aria-hidden":!0,style:!0});var s=q(r);i=Z(s,""),s.forEach(O),a=Q(o),c=Y(o,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),q(c).forEach(O),o.forEach(O),this.h()},h(){U(r,"aria-hidden","true"),U(r,"style",o=ce(t[12])),U(c,"class",u=De("input__input",ta,{"has-custom-focus":t[91],multiline:!0})),U(c,"autocapitalize","off"),U(c,"contenteditable","true"),U(c,"aria-label",t[11]),U(c,"style",d=ce(t[13])),void 0===t[8]&&kt((()=>t[75].call(c))),U(e,"class",h=ta["input__scroll-wrapper"])},m(o,s){F(o,e,s),g&&g.m(e,null),I(e,n),I(e,r),I(r,i),I(e,a),I(e,c),t[74](c),void 0!==t[8]&&(c.innerText=t[8]),f||(p=[L(c,"input",t[75]),L(c,"input",t[37]),L(c,"paste",ya),L(c,"mousedown",(function(){l(t[19]?t[38]:void 0)&&(t[19]?t[38]:void 0).apply(this,arguments)})),L(c,"click",(function(){l(t[19]?t[39]:void 0)&&(t[19]?t[39]:void 0).apply(this,arguments)})),L(c,"focus",(function(){l(t[89])&&t[89].apply(this,arguments)})),L(c,"blur",(function(){l(t[90])&&t[90].apply(this,arguments)}))],f=!0)},p(i,a){!(t=i)[8]&&t[18]?g?g.p(t,a):(g=ga(t),g.c(),g.m(e,n)):g&&(g.d(1),g=null),4096&a[0]&&o!==(o=ce(t[12]))&&U(r,"style",o),536870912&a[2]&&u!==(u=De("input__input",ta,{"has-custom-focus":t[91],multiline:!0}))&&U(c,"class",u),2048&a[0]&&U(c,"aria-label",t[11]),8192&a[0]&&d!==(d=ce(t[13]))&&U(c,"style",d),256&a[0]&&t[8]!==c.innerText&&(c.innerText=t[8])},d(n){n&&O(e),g&&g.d(),t[74](null),f=!1,s(p)}}}function ga(t){let e,n,r,i;return{c(){e=T("div"),n=R(t[18]),this.h()},l(r){e=Y(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var i=q(e);n=Z(i,t[18]),i.forEach(O),this.h()},h(){U(e,"class",r=ta.input__placeholder),U(e,"aria-hidden","true"),U(e,"style",i=ce(t[13]))},m(t,r){F(t,e,r),I(e,n)},p(t,r){262144&r[0]&&tt(n,t[18]),8192&r[0]&&i!==(i=ce(t[13]))&&U(e,"style",i)},d(t){t&&O(e)}}}function ma(t){let e;function n(t,e){return t[5]?pa:fa}let r=n(t),i=r(t);return{c(){i.c(),e=J()},l(t){i.l(t),e=J()},m(t,n){i.m(t,n),F(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&O(e),i.d(t)}}}function va(t){let e,n,r=!t[7]&&ha(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[7]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),128&n[0]&&Ot(r,1)):(r=ha(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function ya(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function $a(t,e,r){let i,o,a,s,l,c,u,d,p,g,m,v,y,_,b,w,x,k,E,C,A,V,D,P,j,S,N,I=n,F=n;var O;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F()));let{json:M={}}=e,{templateContext:T}=e,{origJson:z}=e,{layoutParams:R}=e;const B=pt(oe);let J,L=!1,U=null;const W=M.text_variable,H=null===(O=M.mask)||void 0===O?void 0:O.raw_text_variable;let q=!1;W||(q=!0,B.logError(ae(new Error('Missing "text_variable" in "input"'))));let G=W&&B.getVariable(W,"string")||Jo("temp","string","");f(t,G,(t=>r(56,p=t)));let K=H&&B.getVariable(H,"string")||Jo("temp","string","");f(t,K,(t=>r(57,g=t)));let Y="",X="";const Z=B.getDerivedFromVars(M.mask);f(t,Z,(t=>r(61,_=t)));const Q=B.getDerivedFromVars(M.hint_text);f(t,Q,(t=>r(73,S=t)));const tt=B.getDerivedFromVars(M.hint_color);f(t,tt,(t=>r(72,j=t)));let et="";const nt=B.getDerivedFromVars(M.font_size);f(t,nt,(t=>r(71,P=t)));let rt=12;const it=B.getDerivedFromVars(M.font_weight);f(t,it,(t=>r(70,D=t)));const ot=B.getDerivedFromVars(M.font_family);let at;f(t,ot,(t=>r(69,V=t)));let st="";const lt=B.getDerivedFromVars(M.line_height);let ct;f(t,lt,(t=>r(68,A=t)));const ut=B.getDerivedFromVars(M.letter_spacing);f(t,ut,(t=>r(67,C=t)));let ht="";const ft=B.getDerivedFromVars(M.text_color);f(t,ft,(t=>r(66,E=t)));let gt="#000";const mt=B.getDerivedFromVars(M.highlight_color);f(t,mt,(t=>r(65,k=t)));let yt="";const $t=B.getDerivedFromVars(M.text_alignment_horizontal);f(t,$t,(t=>r(64,x=t)));let _t="left";const bt=B.getDerivedFromVars(M.text_alignment_vertical);f(t,bt,(t=>r(63,w=t)));let wt="center";const kt=B.getDerivedFromVars(M.keyboard_type);f(t,kt,(t=>r(62,b=t)));const Et={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let Ct="multi_line_text",At="text";const Vt=document&&"inputMode"in document.createElement("input");let Dt;const Pt=B.getDerivedFromVars(M.max_visible_lines);f(t,Pt,(t=>r(60,y=t)));let jt="",St=null,Nt="",It="",Ft="";const Ot=B.getDerivedFromVars(M.select_all_on_focus);function Mt(t){J instanceof HTMLInputElement?r(6,J.selectionStart=r(6,J.selectionEnd=t,J),J):da(J,t)}async function Tt(){if(!J||!U)return;U.overrideRawValue(g),K.set(U.rawValue),$(G,p=r(4,Y=r(8,X=U.value)),p);const t=U.cursorPosition;await xt(),document.activeElement===J&&Mt(t)}return f(t,Ot,(t=>r(19,N=t))),dt((()=>{J&&U&&g&&(U.overrideRawValue(g),$(G,p=r(4,Y=r(8,X=U.value)),p))})),t.$$set=t=>{"json"in t&&r(0,M=t.json),"templateContext"in t&&r(1,T=t.templateContext),"origJson"in t&&r(2,z=t.origJson),"layoutParams"in t&&r(3,R=t.layoutParams)},t.$$.update=()=>{if(1073741824&t.$$.dirty[1]&&("fixed_length"===(null==(e=_)?void 0:e.type)?r(40,U=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 aa(r,e)}return n||null}(e,B.logError,U)):"currency"===(null==e?void 0:e.type)&&r(40,U=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new la(t.locale,e)}(e,B.logError,U)),U&&Tt()),16&t.$$.dirty[0]|33554944&t.$$.dirty[1]&&(U||Y===p||r(4,Y=r(8,X=p))),67109376&t.$$.dirty[1]&&U&&U.rawValue!==g&&Tt(),2048&t.$$.dirty[2]&&r(18,i=S),1024&t.$$.dirty[1]|1024&t.$$.dirty[2]&&r(41,et=fe(j,1,et)),2048&t.$$.dirty[1]|512&t.$$.dirty[2]&&r(42,rt=_n(P,rt)),4096&t.$$.dirty[1]|384&t.$$.dirty[2]&&(r(43,at=wn(D,at)),r(44,st=V&&"string"==typeof V?B.typefaceProvider(V,{fontWeight:at||400}):"")),2048&t.$$.dirty[1]|64&t.$$.dirty[2]){const t=A;Qe(t)&&r(45,ct=t/rt)}var e;32&t.$$.dirty[2]&&Se(C)&&r(46,ht=ue(C)),65536&t.$$.dirty[1]|16&t.$$.dirty[2]&&r(47,gt=fe(E,1,gt)),131072&t.$$.dirty[1]|8&t.$$.dirty[2]&&r(48,yt=fe(k,1,yt)),262144&t.$$.dirty[1]|4&t.$$.dirty[2]&&r(49,_t=Vn(x,_t)),524288&t.$$.dirty[1]|2&t.$$.dirty[2]&&r(50,wt=Dn(w,wt)),1073741824&t.$$.dirty[1]|1&t.$$.dirty[2]&&(b&&b in Et&&(r(9,At=Et[b]),r(51,Ct=b)),"currency"===(null==_?void 0:_.type)&&(r(9,At=Vt?"text":"tel"),r(10,Dt="decimal"))),1048576&t.$$.dirty[1]&&r(5,o="multi_line_text"===Ct),1&t.$$.dirty[0]&&(r(17,a=B.getDerivedFromVars(M.paddings)),F(),F=h(a,(t=>r(59,v=t)))),809519104&t.$$.dirty[1]&&(Qe(y)&&r(52,jt="calc(".concat(y*(ct||1.25)*(rt/10)+"em"," + ").concat(de(Fe(null==v?void 0:v.top,0)+Fe(null==v?void 0:v.bottom,0)),")")),r(53,St=Je(v||void 0,St)),r(54,Nt=St?je({top:(Number(St.top)||0)/rt*10,right:(Number(St.right)||0)/rt*10,bottom:(Number(St.bottom)||0)/rt*10,left:(Number(St.left)||0)/rt*10}):""),r(55,It=St?je({top:(Number(St.top)||0)/rt*10,bottom:(Number(St.bottom)||0)/rt*10}):"")),1&t.$$.dirty[0]&&(r(16,s=B.getDerivedFromVars(M.accessibility)),I(),I=h(s,(t=>r(58,m=t)))),134217728&t.$$.dirty[1]&&((null==m?void 0:m.description)?r(11,Ft=m.description):B.logError(ae(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|917504&t.$$.dirty[1]&&r(15,l={"highlight-color":Boolean(yt),multiline:o,"alignment-horizontal":_t,"alignment-vertical":wt}),2356224&t.$$.dirty[1]&&r(14,c={"--divkit-input-hint-color":et,"--divkit-input-highlight-color":yt,"--divkit-input-line-height":ct,"font-weight":at,"font-family":st,"letter-spacing":ht,color:gt,"max-height":jt}),8390656&t.$$.dirty[1]&&r(13,u={"font-size":ue(rt),padding:Nt}),16779264&t.$$.dirty[1]&&r(12,d={"font-size":ue(rt),padding:It})},[M,T,z,R,Y,o,J,q,X,At,Dt,Ft,d,u,c,l,s,a,i,N,G,K,Z,Q,tt,nt,it,ot,lt,ut,ft,mt,$t,bt,kt,Pt,Ot,function(t){let e=(o?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Y!==e&&(r(4,Y=r(8,X=e)),G.setValue(e),U&&async function(){if(!J||!U)return;U.applyChangeFrom(Y,J instanceof HTMLInputElement?null===J.selectionEnd?void 0:J.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const i=r.getRangeAt(0);let o;if(i){if(!i.collapsed)return 0;n+=i.endOffset,o=i.endContainer}if(o instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,o.childNodes.length);e<r;++e)t+=ua(o.childNodes[e]);n=t}for(;o&&o!==t;){var e;const t=o.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(o);for(let e=0;e<r;++e)n+=ua(t.childNodes[e]);o instanceof HTMLElement&&("DIV"===o.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===ca||"BR"===o.tagName)&&++n,o=t}return n}catch(t){return 0}}(J)),K.set(U.rawValue),$(G,p=r(4,Y=r(8,X=U.value)),p);const t=U.cursorPosition;await xt(),document.activeElement===J&&Mt(t)}())},function(){L=!1,setTimeout((()=>{L=!0}),250)},function(){if(!L)if(J instanceof HTMLInputElement)J.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(J),t&&(t.removeAllRanges(),t.addRange(e))}},U,et,rt,at,st,ct,ht,gt,yt,_t,wt,Ct,jt,St,Nt,It,p,g,m,v,y,_,b,w,x,k,E,C,A,V,D,P,j,S,function(t){vt[t?"unshift":"push"]((()=>{J=t,r(6,J)}))},function(){X=this.innerText,r(8,X),r(40,U),r(4,Y),r(56,p)},function(t){vt[t?"unshift":"push"]((()=>{J=t,r(6,J)}))}]}const _a={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 ba(t,e,n){const r=t.slice();return r[52]=e[n],r}function wa(t){let e,n;return e=new yn({props:{cls:De("select",_a,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ka,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{49:e,50:n,51:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?262144:0)|(n?524288:0)|(r?1048576:0)]}]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=De("select",_a,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),9136&n[0]|18612224&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function xa(t){let e,r,i,o,a=(t[52].text||t[52].value)+"";return{c(){e=T("option"),r=R(a),this.h()},l(t){e=Y(t,"OPTION",{class:!0});var n=q(e);r=Z(n,a),n.forEach(O),this.h()},h(){var n,r;U(e,"class",i=_a.select__option),e.__value=o=t[52].value,n=e,r=e.__value,n.value=null==r?"":r},m(t,n){F(t,e,n),I(e,r)},p:n,d(t){t&&O(e)}}}function ka(t){let e,n,r,i,o,a,c,u,d,h,f=(t[4]||t[13]||"")+"",p=Rt(t[16]),g=[];for(let e=0;e<p.length;e+=1)g[e]=xa(ba(t,p,e));return{c(){e=T("span"),n=R(f),o=B(),a=T("select");for(let t=0;t<g.length;t+=1)g[t].c();this.h()},l(t){e=Y(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=q(e);n=Z(r,f),r.forEach(O),o=Q(t),a=Y(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var i=q(a);for(let t=0;t<g.length;t+=1)g[t].l(i);i.forEach(O),this.h()},h(){U(e,"class",r=_a["select__select-text"]),U(e,"style",i=ce(t[9])),U(e,"aria-hidden","true"),U(a,"class",c=De("select__select",_a,{"has-custom-focus":t[49]})),U(a,"aria-label",t[7]),U(a,"style",u=ce(t[8])),void 0===t[5]&&kt((()=>t[44].call(a)))},m(r,i){F(r,e,i),I(e,n),F(r,o,i),F(r,a,i);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);nt(a,t[5],!0),d||(h=[L(a,"change",t[44]),L(a,"focus",(function(){l(t[50])&&t[50].apply(this,arguments)})),L(a,"blur",(function(){l(t[51])&&t[51].apply(this,arguments)}))],d=!0)},p(r,o){if(t=r,8208&o[0]&&f!==(f=(t[4]||t[13]||"")+"")&&tt(n,f),512&o[0]&&i!==(i=ce(t[9]))&&U(e,"style",i),65536&o[0]){let e;for(p=Rt(t[16]),e=0;e<p.length;e+=1){const n=ba(t,p,e);g[e]?g[e].p(n,o):(g[e]=xa(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=p.length}262144&o[1]&&c!==(c=De("select__select",_a,{"has-custom-focus":t[49]}))&&U(a,"class",c),128&o[0]&&U(a,"aria-label",t[7]),256&o[0]&&u!==(u=ce(t[8]))&&U(a,"style",u),65568&o[0]&&nt(a,t[5])},d(t){t&&(O(e),O(o),O(a)),M(g,t),d=!1,s(h)}}}function Ea(t){let e,n,r=!t[6]&&wa(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[6]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),64&n[0]&&Ot(r,1)):(r=wa(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function Ca(t,e,r){let i,o,a,s,l,c,u,d,p,g,m,v,y,$,_,b,w,x,k=n,E=n;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:C={}}=e,{templateContext:A}=e,{origJson:V}=e,{layoutParams:D}=e;const P=pt(oe),j=C.value_variable;let S=!1;j||(S=!0,P.logError(ae(new Error('Missing "value_variable" in "select"'))));let N=j&&P.getVariable(j,"string")||Jo("temp","string","");f(t,N,(t=>r(5,x=t)));let I="";const F=C.options,O=Array.isArray(F)&&F.filter((t=>"string"==typeof t.value))||[];Array.isArray(O)&&O.length||P.logError(ae(new Error('Empty selection "items" in "select"')));let M="",T=null,z="";const R=P.getDerivedFromVars(C.hint_text);f(t,R,(t=>r(42,b=t)));const B=P.getDerivedFromVars(C.hint_color);f(t,B,(t=>r(41,_=t)));let J="rgba(0,0,0,.45)";const L=P.getDerivedFromVars(C.font_size);f(t,L,(t=>r(40,$=t)));let U=12;const W=P.getDerivedFromVars(C.font_weight);f(t,W,(t=>r(39,y=t)));const H=P.getDerivedFromVars(C.font_family);let q;f(t,H,(t=>r(38,v=t)));let G="";const K=P.getDerivedFromVars(C.line_height);let Y;f(t,K,(t=>r(37,m=t)));const X=P.getDerivedFromVars(C.letter_spacing);f(t,X,(t=>r(36,g=t)));let Z="";const Q=P.getDerivedFromVars(C.text_color);f(t,Q,(t=>r(35,p=t)));let tt="#000",et="";return t.$$set=t=>{"json"in t&&r(0,C=t.json),"templateContext"in t&&r(1,A=t.templateContext),"origJson"in t&&r(2,V=t.origJson),"layoutParams"in t&&r(3,D=t.layoutParams)},t.$$.update=()=>{if(32&t.$$.dirty[0]&&(I=x),32&t.$$.dirty[0]){const t=O.find((t=>t.value===x));t?r(4,M="string"==typeof t.text?t.text:t.value):(r(4,M=""),x&&P.logError(ae(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1&t.$$.dirty[0]&&(r(14,i=P.getDerivedFromVars(C.paddings)),E(),E=h(i,(t=>r(43,w=t)))),268435456&t.$$.dirty[0]|512&t.$$.dirty[1]&&r(28,U=_n($,U)),301989888&t.$$.dirty[0]|4096&t.$$.dirty[1]&&(r(25,T=Je(w||void 0,T)),r(26,z=T?je({top:(Number(T.top)||0)/U*10,right:(Number(T.right)||0)/U*10,bottom:(Number(T.bottom)||0)/U*10,left:(Number(T.left)||0)/U*10}):"")),2048&t.$$.dirty[1]&&r(13,o=b),134217728&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(27,J=fe(_,1,J)),536870912&t.$$.dirty[0]|384&t.$$.dirty[1]&&(r(29,q=wn(y,q)),r(30,G=v&&"string"==typeof v?P.typefaceProvider(v,{fontWeight:q||400}):"")),268435456&t.$$.dirty[0]|64&t.$$.dirty[1]){const t=m;Qe(t)&&r(31,Y=t/U)}268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&Se(g)&&r(32,Z=ue(g/U*10)),20&t.$$.dirty[1]&&r(33,tt=fe(p,1,tt)),1&t.$$.dirty[0]&&(r(12,a=P.getDerivedFromVars(C.accessibility)),k(),k=h(a,(t=>r(34,d=t)))),8&t.$$.dirty[1]&&((null==d?void 0:d.description)?r(7,et=d.description):P.logError(ae(new Error('Missing accessibility "description" for select'),{level:"warn"}))),16&t.$$.dirty[0]&&r(11,s={hint:!M}),1744830464&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(10,l={"--divkit-input-hint-color":J,"font-weight":q,"font-family":G,color:tt}),335544320&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(9,c={padding:z,"font-size":ue(U),"line-height":Y,"letter-spacing":Z}),268435456&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(8,u={"font-size":ue(U),"line-height":Y,"letter-spacing":Z})},[C,A,V,D,M,x,S,et,u,c,l,s,a,o,i,N,O,R,B,L,W,H,K,X,Q,T,z,J,U,q,G,Y,Z,tt,d,p,g,m,v,y,$,_,b,w,function(){x=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),N.set(x),r(16,O)}]}const Aa={video__video:"divkit-c11f9"};function Va(t,e,n){const r=t.slice();return r[32]=e[n],r}function Da(t){let e,n;return e=new yn({props:{cls:Aa.video,customActions:"video",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ja]},$$scope:{ctx:t}}}),{c(){Gt(e.$$.fragment)},l(t){Kt(e.$$.fragment,t)},m(t,r){Yt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1520&n[0]|16&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ot(e.$$.fragment,t),n=!0)},o(t){Mt(e.$$.fragment,t),n=!1},d(t){Xt(e,t)}}}function Pa(t){let e,n,r,i,o;return{c(){e=T("source"),this.h()},l(t){e=Y(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[32].src)||U(e,"src",n),U(e,"type",r=t[32].type)},m(n,r){F(n,e,r),i||(o=L(e,"error",t[21]),i=!0)},p(t,i){16&i[0]&&!u(e.src,n=t[32].src)&&U(e,"src",n),16&i[0]&&r!==(r=t[32].type)&&U(e,"type",r)},d(t){t&&O(e),i=!1,o()}}}function ja(t){let e,n,r,i,o=Rt(t[4]),a=[];for(let e=0;e<o.length;e+=1)a[e]=Pa(Va(t,o,e));return{c(){e=T("video");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=Y(t,"VIDEO",{class:!0,poster:!0});var n=q(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(O),this.h()},h(){U(e,"class",n=Aa.video__video),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],U(e,"poster",t[8])},m(n,o){F(n,e,o);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null);t[27](e),r||(i=[L(e,"timeupdate",t[16]),L(e,"ended",t[17]),L(e,"playing",t[18]),L(e,"pause",t[19]),L(e,"waiting",t[20]),L(e,"error",t[21])],r=!0)},p(t,n){if(2097168&n[0]){let r;for(o=Rt(t[4]),r=0;r<o.length;r+=1){const i=Va(t,o,r);a[r]?a[r].p(i,n):(a[r]=Pa(i),a[r].c(),a[r].m(e,null))}for(;r<a.length;r+=1)a[r].d(1);a.length=o.length}32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),256&n[0]&&U(e,"poster",t[8])},d(n){n&&O(e),M(a,n),t[27](null),r=!1,s(i)}}}function Sa(t){let e,n,r=!t[9]&&Da(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){t[9]?r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft()):r?(r.p(t,n),512&n[0]&&Ot(r,1)):(r=Da(t),r.c(),Ot(r,1),r.m(e.parentNode,e))},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function Na(t,e,n){let r,i,o,a,s,{json:l={}}=e,{templateContext:c}=e,{origJson:u}=e,{layoutParams:d}=e;const h=pt(oe);let p,g=!1,m=!1;const v=h.getDerivedFromVars(l.video_sources);f(t,v,(t=>n(26,s=t)));let y=[];const $=h.getDerivedFromVars(l.repeatable);f(t,$,(t=>n(25,a=t)));let _=!1;const b=h.getDerivedFromVars(l.autostart);f(t,b,(t=>n(24,o=t)));let w=!1;const x=h.getDerivedFromVars(l.muted);f(t,x,(t=>n(23,i=t)));let k=!1;const E=h.getDerivedFromVars(l.preview);let C;f(t,E,(t=>n(22,r=t)));const A=l.elapsed_time_variable;let V=A&&h.getVariable(A,"integer")||Jo("temp","integer",0);return V.subscribe((t=>{m?m=!1:p&&n(10,p.currentTime=Number(t)/1e3,p)})),!l.id||g||(null==d?void 0:d.fakeElement)||h.registerInstance(l.id,{pause(){null==p||p.pause()},start(){const t=null==p?void 0:p.play();t&&t.catch((t=>{h.logError(ae(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}}),ht((()=>{!l.id||g||(null==d?void 0:d.fakeElement)||h.unregisterInstance(l.id)})),t.$$set=t=>{"json"in t&&n(0,l=t.json),"templateContext"in t&&n(1,c=t.templateContext),"origJson"in t&&n(2,u=t.origJson),"layoutParams"in t&&n(3,d=t.layoutParams)},t.$$.update=()=>{var e,l;67108880&t.$$.dirty[0]&&(n(4,(e=s,l=y,y=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})):l)),y.length?n(9,g=!1):(n(9,g=!0),h.logError(ae(new Error('Missing "video_sources" in "video"'))))),33554464&t.$$.dirty[0]&&n(5,_=Pn(a,_)),16777280&t.$$.dirty[0]&&n(6,w=Pn(o,w)),8388736&t.$$.dirty[0]&&n(7,k=Pn(i,k)),4194560&t.$$.dirty[0]&&n(8,C="string"==typeof r?br(r):C)},[l,c,u,d,y,_,w,k,C,g,p,v,$,b,x,E,function(){p&&(m=!0,V.setValue(Math.floor(1e3*p.currentTime)))},function(){const t=h.getJsonWithVars(l.end_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(l.resume_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(l.pause_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(l.buffering_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(l.fatal_actions);h.execAnyActions(t)},r,i,o,a,s,function(t){vt[t?"unshift":"push"]((()=>{p=t,n(10,p)}))}]}const Ia={};function Fa(t){let e,n,r;var i=t[5];function o(t,e){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=rt(i,o(t))),{c(){e&&Gt(e.$$.fragment),n=J()},l(t){e&&Kt(e.$$.fragment,t),n=J()},m(t,i){e&&Yt(e,t,i),F(t,n,i),r=!0},p(t,r){if(32&r&&i!==(i=t[5])){if(e){It();const t=e;Mt(t.$$.fragment,1,0,(()=>{Xt(t,1)})),Ft()}i?(e=rt(i,o(t)),Gt(e.$$.fragment),Ot(e.$$.fragment,1),Yt(e,n.parentNode,n)):e=null}else if(i){const n={};8&r&&(n.json=t[3]),16&r&&(n.templateContext=t[4]),4&r&&(n.layoutParams=t[2]),3&r&&(n.origJson=t[1]||t[0]),e.$set(n)}},i(t){r||(e&&Ot(e.$$.fragment,t),r=!0)},o(t){e&&Mt(e.$$.fragment,t),r=!1},d(t){t&&O(n),e&&Xt(e,t)}}}function Oa(t){let e,n,r=t[5]&&Fa(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&Ot(r,1)):(r=Fa(t),r.c(),Ot(r,1),r.m(e.parentNode,e)):r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft())},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}function Ma(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const s=pt(oe);let l,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,i=t.templateContext),"origJson"in t&&n(1,o=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,l=r),n(4,c=i),n(5,u=l&&Ia[l.type]||void 0),!u&&(n(4,({templateContext:c,json:l}=s.processTemplate(l,c)),c,(n(3,l),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=l&&Ia[l.type]||void 0),!u))){let t;t=(null==l?void 0:l.type)&&s.hasTemplate(l.type)?"Recursive template":"Unknown component",s.logError(ae(new Error(t),{additional:{component:(null==l?void 0:l.type)||"<missing>"}}))}},[r,o,a,l,c,u,i]}Ia.text=class extends te{constructor(t){super(),Zt(this,t,Ln,Jn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.container=class extends te{constructor(t){super(),Zt(this,t,fr,hr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.separator=class extends te{constructor(t){super(),Zt(this,t,$r,yr,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},Ia.image=jr,Ia.gif=jr,Ia.grid=class extends te{constructor(t){super(),Zt(this,t,Jr,Br,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.gallery=class extends te{constructor(t){super(),Zt(this,t,ii,ri,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Ia.tabs=class extends te{constructor(t){super(),Zt(this,t,bi,_i,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1,-1])}},Ia.state=class extends te{constructor(t){super(),Zt(this,t,ho,co,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.pager=class extends te{constructor(t){super(),Zt(this,t,bo,_o,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.indicator=class extends te{constructor(t){super(),Zt(this,t,Vo,Ao,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.slider=class extends te{constructor(t){super(),Zt(this,t,Qo,Xo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Ia.input=class extends te{constructor(t){super(),Zt(this,t,$a,va,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Ia.select=class extends te{constructor(t){super(),Zt(this,t,Ca,Ea,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ia.video=class extends te{constructor(t){super(),Zt(this,t,Na,Sa,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}};const Ta=class extends te{constructor(t){super(),Zt(this,t,Ma,Oa,d,{div:0,templateContext:6,origJson:1,layoutParams:2})}},za={"root-svg-filters":"divkit-dc22b"};function Ra(t,e,n){const r=t.slice();r[1]=e[n];const i=r[1].split(":");return r[2]=i[0],r[3]=i[1],r}function Ba(t){let e,n,r,i=Rt([...Object.keys(t[0])]),o=[];for(let e=0;e<i.length;e+=1)o[e]=Wa(Ra(t,i,e));return{c(){e=z("svg"),n=z("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=X(t,"svg",{class:!0,"aria-hidden":!0});var r=q(e);n=X(r,"defs",{});var i=q(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(O),r.forEach(O),this.h()},h(){U(e,"class",r=za["root-svg-filters"]),U(e,"aria-hidden","true")},m(t,r){F(t,e,r),I(e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(n,null)},p(t,e){if(1&e){let r;for(i=Rt([...Object.keys(t[0])]),r=0;r<i.length;r+=1){const a=Ra(t,i,r);o[r]?o[r].p(a,e):(o[r]=Wa(a),o[r].c(),o[r].m(n,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(t){t&&O(e),M(o,t)}}}function Ja(t){let e,n;return{c(){e=z("feBlend"),this.h()},l(t){e=X(t,"feBlend",{in2:!0,mode:!0}),q(e).forEach(O),this.h()},h(){U(e,"in2","SourceGraphic"),U(e,"mode",n=t[3])},m(t,n){F(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&U(e,"mode",n)},d(t){t&&O(e)}}}function La(t){let e;return{c(){e=z("feComposite"),this.h()},l(t){e=X(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),q(e).forEach(O),this.h()},h(){U(e,"in2","SourceGraphic"),U(e,"operator","arithmetic"),U(e,"k1","1"),U(e,"k2","0"),U(e,"k3","0"),U(e,"k4","0")},m(t,n){F(t,e,n)},p:n,d(t){t&&O(e)}}}function Ua(t){let e,n;return{c(){e=z("feComposite"),this.h()},l(t){e=X(t,"feComposite",{in2:!0,operator:!0}),q(e).forEach(O),this.h()},h(){U(e,"in2","SourceGraphic"),U(e,"operator",n=t[3].split("_")[1])},m(t,n){F(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&U(e,"operator",n)},d(t){t&&O(e)}}}function Wa(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Ua:"multiply"===t[3]?La:Ja}let a=o(t),s=a(t);return{c(){e=z("filter"),n=z("feFlood"),s.c(),this.h()},l(t){e=X(t,"filter",{id:!0});var r=q(e);n=X(r,"feFlood",{"flood-color":!0}),q(n).forEach(O),s.l(r),r.forEach(O),this.h()},h(){U(n,"flood-color",r=t[2]),U(e,"id",i=t[0][t[1]])},m(t,r){F(t,e,r),I(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&U(n,"flood-color",r),a===(a=o(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&i!==(i=t[0][t[1]])&&U(e,"id",i)},d(t){t&&O(e),s.d()}}}function Ha(t){let e,r=Object.keys(t[0]).length,i=r&&Ba(t);return{c(){i&&i.c(),e=J()},l(t){i&&i.l(t),e=J()},m(t,n){i&&i.m(t,n),F(t,e,n)},p(t,n){let[o]=n;1&o&&(r=Object.keys(t[0]).length),r?i?i.p(t,o):(i=Ba(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:n,o:n,d(t){t&&O(e),i&&i.d(t)}}}function qa(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Ga=class extends te{constructor(t){super(),Zt(this,t,qa,Ha,d,{svgFiltersMap:0})}};function Ka(t,e,n,r){const i=n[t.type];if(!i)return r(ae(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let o;const a={};for(o in e)e.hasOwnProperty(o)&&(a[o]=e[o]);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(a[o]=t[o]);const s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),i=r.filter((t=>"$"!==t.charAt(0))),o=r.filter((t=>"$"===t.charAt(0)));return i.forEach((r=>{const i=n[r];"object"==typeof i&&null!==i?(e[r]=Array.isArray(i)?[]:{},t(e[r],i)):e[r]=i})),o.forEach((t=>{const r=n[t],i=a[r];if(void 0!==i){const n=t.substring(1);e[n]=i}})),e}({},i);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(s[o]=t[o]);return{json:s,templateContext:a}}function Ya(){}function Xa(t){return{subscribe:e=>(e(t),Ya)}}function Za(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function Qa(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function ts(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 es(t){try{return Oo(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function ns(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function rs(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,rs.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function is(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function os(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:Ae,JsonStringContents:function(){var t,e,n;for(t=pe,e=[],n=Ve();n!==r;)e.push(n),n=Ve();return ge=t,e=jt(e)}},a=Ae,s="@{",l="}",c="@{}",u="\\",d="?",h=":",f="||",p="&&",g="==",m="!=",v=">=",y=">",$="<=",_="<",b="+",w="-",x="/",k="*",E="%",C="!",A="(",V=")",D=",",P="'",j=".",S="e",N="E",I="true",F="false",O=/^[^}]/,M=/^[^'}]/,T=/^[0-9]/,z=/^[a-zA-Z_0-9.]/,R=/^[a-zA-Z_]/,B=/^[ \t\r\n]/,J=be("@{",!1),L=be("}",!1),U=be("@{}",!1),W=be("\\",!1),H={type:"any"},q=we(["}"],!0,!1),G=be("?",!1),K=be(":",!1),Y=be("||",!1),X=be("&&",!1),Z=be("==",!1),Q=be("!=",!1),tt=be(">=",!1),et=be(">",!1),nt=be("<=",!1),rt=be("<",!1),it=be("+",!1),ot=be("-",!1),at=be("/",!1),st=be("*",!1),lt=be("%",!1),ct=be("!",!1),ut=be("(",!1),dt=be(")",!1),ht=be(",",!1),ft=xe("string"),pt=be("'",!1),gt=we(["'","}"],!0,!1),mt=xe("integer"),vt=we([["0","9"]],!1,!1),yt=xe("number"),$t=be(".",!1),_t=be("e",!1),bt=be("E",!1),wt=xe("boolean"),xt=be("true",!1),kt=be("false",!1),Et=we([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),Ct=xe("identifier"),At=we([["a","z"],["A","Z"],"_"],!1,!1),Vt=xe("whitespace"),Dt=we([" ","\t","\r","\n"],!1,!1),Pt=function(t){return t},jt=function(t){return ts(t)},St=function(t){return t},Nt=function(){return""},It=function(){return _e()},Ft=function(){throw new Error("Error tokenizing '"+t+"'.")},Ot=function(){throw new Error("Error tokenizing '"+t+"'.")},Mt=function(t){return t},Tt=function(t){return ns(t)},zt=function(){throw new Error("Error tokenizing '"+t+"'.")},Rt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Bt=function(t,e){return Qa(t,e)},Jt=function(t,e){return Qa(t,e)},Lt=function(t,e){return Za(t,e)},Ut=function(t,e){return Za(t,e)},Wt=function(t,e){return Za(t,e)},Ht=function(t,e){return Za(t,e)},qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Gt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Kt=function(t){return{type:"Variable",id:t}},Yt=function(t,e){return[t,...e]},Xt=function(t){return t},Zt=function(t){return t},Qt=function(t){return ts(t)},te=function(t){return t},ee=function(){return""},ne=function(){return _e()},re=function(){throw new Error("Error tokenizing '"+t+"'.")},ie=function(){throw new Error("Error tokenizing '"+t+"'.")},oe=function(t){return t},ae=function(t){return ns(t)},se=function(){throw new Error("Error tokenizing '"+t+"'.")},le=function(){return{type:"IntegerLiteral",value:es(_e())}},ce=function(){return{type:"NumberLiteral",value:parseFloat(_e())}},ue=function(){return{type:"NumberLiteral",value:parseFloat(_e())}},de=function(){return{type:"BooleanLiteral",value:!0}},he=function(){return{type:"BooleanLiteral",value:!1}},fe=function(){return{type:"Identifier",name:_e()}},pe=0,ge=0,me=[{line:1,column:1}],ve=0,ye=[],$e=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function _e(){return t.substring(ge,pe)}function be(t,e){return{type:"literal",text:t,ignoreCase:e}}function we(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function xe(t){return{type:"other",description:t}}function ke(e){var n,r=me[e];if(r)return r;for(n=e-1;!me[n];)n--;for(r={line:(r=me[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return me[e]=r,r}function Ee(t,e,n){var r=ke(t),o=ke(e),a={source:i,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:o.line,column:o.column}};return n&&i&&"function"==typeof i.offset&&(a.start=i.offset(a.start),a.end=i.offset(a.end)),a}function Ce(t){pe<ve||(pe>ve&&(ve=pe,ye=[]),ye.push(t))}function Ae(){var t,e;return t=pe,Be(),(e=De())!==r?(Be(),ge=t,t=Pt(e)):(pe=t,t=r),t}function Ve(){var e,n,i,o,a;if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===$e&&Ce(J)),n!==r?(i=Be(),(o=De())!==r?(Be(),125===t.charCodeAt(pe)?(a=l,pe++):(a=r,0===$e&&Ce(L)),a!==r?(ge=e,e=St(o)):(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===$e&&Ce(U)),n!==r&&(ge=e,n=Nt()),(e=n)===r&&(e=pe,n=pe,$e++,92===t.charCodeAt(pe)?(i=u,pe++):(i=r,0===$e&&Ce(W)),i===r&&(t.substr(pe,2)===s?(i=s,pe+=2):(i=r,0===$e&&Ce(J))),$e--,i===r?n=void 0:(pe=n,n=r),n!==r?(t.length>pe?(i=t.charAt(pe),pe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=It()):(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===$e&&Ce(J)),n!==r){if(i=[],O.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(q)),o!==r)for(;o!==r;)i.push(o),O.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(q));else i=r;i!==r?(125===t.charCodeAt(pe)?(o=l,pe++):(o=r,0===$e&&Ce(L)),o!==r?(ge=e,e=Ft()):(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===$e&&Ce(J)),n!==r&&(ge=e,n=Ot()),(e=n)===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===$e&&Ce(W)),n!==r?(t.substr(pe,2)===s?(i=s,pe+=2):(i=r,0===$e&&Ce(J)),i!==r?(ge=e,e=Mt(i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===$e&&Ce(W)),n!==r?(t.length>pe?(i=t.charAt(pe),pe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=Tt(i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===$e&&Ce(W)),n!==r&&(ge=e,n=zt()),e=n))))}return e}function De(){var e,n,i,o,a,s;return e=pe,(n=Pe())!==r?(Be(),63===t.charCodeAt(pe)?(i=d,pe++):(i=r,0===$e&&Ce(G)),i!==r?(Be(),(o=De())!==r?(Be(),58===t.charCodeAt(pe)?(a=h,pe++):(a=r,0===$e&&Ce(K)),a!==r?(Be(),(s=De())!==r?(ge=e,e=Rt(n,o,s)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=Pe()),e}function Pe(){var e,n,i,o,a,s,l,c;if(e=pe,(n=je())!==r){for(i=[],o=pe,a=Be(),t.substr(pe,2)===f?(s=f,pe+=2):(s=r,0===$e&&Ce(Y)),s!==r?(l=Be(),(c=je())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,a=Be(),t.substr(pe,2)===f?(s=f,pe+=2):(s=r,0===$e&&Ce(Y)),s!==r?(l=Be(),(c=je())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Bt(n,i)}else pe=e,e=r;return e}function je(){var e,n,i,o,a,s,l,c;if(e=pe,(n=Se())!==r){for(i=[],o=pe,a=Be(),t.substr(pe,2)===p?(s=p,pe+=2):(s=r,0===$e&&Ce(X)),s!==r?(l=Be(),(c=Se())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,a=Be(),t.substr(pe,2)===p?(s=p,pe+=2):(s=r,0===$e&&Ce(X)),s!==r?(l=Be(),(c=Se())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Jt(n,i)}else pe=e,e=r;return e}function Se(){var e,n,i,o,a,s,l,c;if(e=pe,(n=Ne())!==r){for(i=[],o=pe,a=Be(),t.substr(pe,2)===g?(s=g,pe+=2):(s=r,0===$e&&Ce(Z)),s===r&&(t.substr(pe,2)===m?(s=m,pe+=2):(s=r,0===$e&&Ce(Q))),s!==r?(l=Be(),(c=Ne())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,a=Be(),t.substr(pe,2)===g?(s=g,pe+=2):(s=r,0===$e&&Ce(Z)),s===r&&(t.substr(pe,2)===m?(s=m,pe+=2):(s=r,0===$e&&Ce(Q))),s!==r?(l=Be(),(c=Ne())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Lt(n,i)}else pe=e,e=r;return e}function Ne(){var e,n,i,o,a,s,l,c;if(e=pe,(n=Ie())!==r){for(i=[],o=pe,a=Be(),t.substr(pe,2)===v?(s=v,pe+=2):(s=r,0===$e&&Ce(tt)),s===r&&(62===t.charCodeAt(pe)?(s=y,pe++):(s=r,0===$e&&Ce(et)),s===r&&(t.substr(pe,2)===$?(s=$,pe+=2):(s=r,0===$e&&Ce(nt)),s===r&&(60===t.charCodeAt(pe)?(s=_,pe++):(s=r,0===$e&&Ce(rt))))),s!==r?(l=Be(),(c=Ie())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,a=Be(),t.substr(pe,2)===v?(s=v,pe+=2):(s=r,0===$e&&Ce(tt)),s===r&&(62===t.charCodeAt(pe)?(s=y,pe++):(s=r,0===$e&&Ce(et)),s===r&&(t.substr(pe,2)===$?(s=$,pe+=2):(s=r,0===$e&&Ce(nt)),s===r&&(60===t.charCodeAt(pe)?(s=_,pe++):(s=r,0===$e&&Ce(rt))))),s!==r?(l=Be(),(c=Ie())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Ut(n,i)}else pe=e,e=r;return e}function Ie(){var e,n,i,o,a,s,l,c;if(e=pe,(n=Fe())!==r){for(i=[],o=pe,a=Be(),43===t.charCodeAt(pe)?(s=b,pe++):(s=r,0===$e&&Ce(it)),s===r&&(45===t.charCodeAt(pe)?(s=w,pe++):(s=r,0===$e&&Ce(ot))),s!==r?(l=Be(),(c=Fe())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,a=Be(),43===t.charCodeAt(pe)?(s=b,pe++):(s=r,0===$e&&Ce(it)),s===r&&(45===t.charCodeAt(pe)?(s=w,pe++):(s=r,0===$e&&Ce(ot))),s!==r?(l=Be(),(c=Fe())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Wt(n,i)}else pe=e,e=r;return e}function Fe(){var e,n,i,o,a,s,l,c;if(e=pe,(n=Oe())!==r){for(i=[],o=pe,a=Be(),47===t.charCodeAt(pe)?(s=x,pe++):(s=r,0===$e&&Ce(at)),s===r&&(42===t.charCodeAt(pe)?(s=k,pe++):(s=r,0===$e&&Ce(st)),s===r&&(37===t.charCodeAt(pe)?(s=E,pe++):(s=r,0===$e&&Ce(lt)))),s!==r?(l=Be(),(c=Oe())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,a=Be(),47===t.charCodeAt(pe)?(s=x,pe++):(s=r,0===$e&&Ce(at)),s===r&&(42===t.charCodeAt(pe)?(s=k,pe++):(s=r,0===$e&&Ce(st)),s===r&&(37===t.charCodeAt(pe)?(s=E,pe++):(s=r,0===$e&&Ce(lt)))),s!==r?(l=Be(),(c=Oe())!==r?o=a=[a,s,l,c]:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Ht(n,i)}else pe=e,e=r;return e}function Oe(){var e,n,i;return(e=ze())===r&&(e=Te())===r&&(e=pe,33===t.charCodeAt(pe)?(n=C,pe++):(n=r,0===$e&&Ce(ct)),n===r&&(43===t.charCodeAt(pe)?(n=b,pe++):(n=r,0===$e&&Ce(it)),n===r&&(45===t.charCodeAt(pe)?(n=w,pe++):(n=r,0===$e&&Ce(ot)))),n!==r?(Be(),(i=Oe())!==r?(ge=e,e=qt(n,i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=pe,(n=Re())!==r?(Be(),40===t.charCodeAt(pe)?(i=A,pe++):(i=r,0===$e&&Ce(ut)),i!==r?(Be(),o=function(){var e,n,i,o,a,s;if(e=pe,(n=De())!==r){for(i=[],o=pe,Be(),44===t.charCodeAt(pe)?(a=D,pe++):(a=r,0===$e&&Ce(ht)),a!==r?(Be(),(s=De())!==r?o=s:(pe=o,o=r)):(pe=o,o=r);o!==r;)i.push(o),o=pe,Be(),44===t.charCodeAt(pe)?(a=D,pe++):(a=r,0===$e&&Ce(ht)),a!==r?(Be(),(s=De())!==r?o=s:(pe=o,o=r)):(pe=o,o=r);ge=e,e=Yt(n,i)}else pe=e,e=r;return e===r&&(e=Be()),e}(),o!==r?(Be(),41===t.charCodeAt(pe)?(a=V,pe++):(a=r,0===$e&&Ce(dt)),a!==r?(ge=e,e=Gt(n,o)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,(n=Re())!==r&&(ge=e,n=Kt(n)),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return $e++,e=pe,39===t.charCodeAt(pe)?(n=P,pe++):(n=r,0===$e&&Ce(pt)),n!==r?(i=function(){var t,e,n;for(t=pe,e=[],n=Me();n!==r;)e.push(n),n=Me();return ge=t,t=e=Qt(e)}(),39===t.charCodeAt(pe)?(o=P,pe++):(o=r,0===$e&&Ce(pt)),o!==r?(ge=e,e=Zt(i)):(pe=e,e=r)):(pe=e,e=r),$e--,e===r&&(n=r,0===$e&&Ce(ft)),e}(),e===r&&(e=ze())===r&&(e=Te())===r&&(e=function(){var e,n;return $e++,e=pe,t.substr(pe,4)===I?(n=I,pe+=4):(n=r,0===$e&&Ce(xt)),n!==r&&(ge=e,n=de()),(e=n)===r&&(e=pe,t.substr(pe,5)===F?(n=F,pe+=5):(n=r,0===$e&&Ce(kt)),n!==r&&(ge=e,n=he()),e=n),$e--,e===r&&(n=r,0===$e&&Ce(wt)),e}(),e===r&&(e=pe,40===t.charCodeAt(pe)?(n=A,pe++):(n=r,0===$e&&Ce(ut)),n!==r&&(i=De())!==r?(41===t.charCodeAt(pe)?(o=V,pe++):(o=r,0===$e&&Ce(dt)),o!==r?(ge=e,e=Xt(i)):(pe=e,e=r)):(pe=e,e=r))),e}())),e}())),e}function Me(){var e,n,i,o,a;if(e=pe,t.substr(pe,2)===s?(n=s,pe+=2):(n=r,0===$e&&Ce(J)),n!==r?(i=Be(),(o=De())!==r?(Be(),125===t.charCodeAt(pe)?(a=l,pe++):(a=r,0===$e&&Ce(L)),a!==r?(ge=e,e=te(o)):(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===$e&&Ce(U)),n!==r&&(ge=e,n=ee()),(e=n)===r&&(e=pe,n=pe,$e++,92===t.charCodeAt(pe)?(i=u,pe++):(i=r,0===$e&&Ce(W)),i===r&&(39===t.charCodeAt(pe)?(i=P,pe++):(i=r,0===$e&&Ce(pt)),i===r&&(t.substr(pe,2)===s?(i=s,pe+=2):(i=r,0===$e&&Ce(J)))),$e--,i===r?n=void 0:(pe=n,n=r),n!==r?(t.length>pe?(i=t.charAt(pe),pe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=ne()):(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===$e&&Ce(J)),n!==r){if(i=[],M.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(gt)),o!==r)for(;o!==r;)i.push(o),M.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(gt));else i=r;i!==r?(125===t.charCodeAt(pe)?(o=l,pe++):(o=r,0===$e&&Ce(L)),o!==r?(ge=e,e=re()):(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===$e&&Ce(J)),n!==r&&(ge=e,n=ie()),(e=n)===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===$e&&Ce(W)),n!==r?(t.substr(pe,2)===s?(i=s,pe+=2):(i=r,0===$e&&Ce(J)),i!==r?(ge=e,e=oe(i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===$e&&Ce(W)),n!==r?(t.length>pe?(i=t.charAt(pe),pe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=ae(i)):(pe=e,e=r)):(pe=e,e=r),e===r&&(e=pe,92===t.charCodeAt(pe)?(n=u,pe++):(n=r,0===$e&&Ce(W)),n!==r&&(ge=e,n=se()),e=n))))}return e}function Te(){var e,n,i,o;if($e++,e=pe,45===t.charCodeAt(pe)?(n=w,pe++):(n=r,0===$e&&Ce(ot)),n===r&&(n=null),i=[],T.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(vt)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(vt));else i=r;return i!==r?(ge=e,e=le()):(pe=e,e=r),$e--,e===r&&(n=r,0===$e&&Ce(mt)),e}function ze(){var e,n,i,o,a,s,l,c,u,d;for($e++,e=pe,45===t.charCodeAt(pe)?(n=w,pe++):(n=r,0===$e&&Ce(ot)),n===r&&(n=null),i=[],T.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(vt));o!==r;)i.push(o),T.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(vt));if(46===t.charCodeAt(pe)?(o=j,pe++):(o=r,0===$e&&Ce($t)),o!==r){if(a=[],T.test(t.charAt(pe))?(s=t.charAt(pe),pe++):(s=r,0===$e&&Ce(vt)),s!==r)for(;s!==r;)a.push(s),T.test(t.charAt(pe))?(s=t.charAt(pe),pe++):(s=r,0===$e&&Ce(vt));else a=r;if(a!==r){if(s=pe,101===t.charCodeAt(pe)?(l=S,pe++):(l=r,0===$e&&Ce(_t)),l===r&&(69===t.charCodeAt(pe)?(l=N,pe++):(l=r,0===$e&&Ce(bt))),l!==r){if(43===t.charCodeAt(pe)?(c=b,pe++):(c=r,0===$e&&Ce(it)),c===r&&(45===t.charCodeAt(pe)?(c=w,pe++):(c=r,0===$e&&Ce(ot))),c===r&&(c=null),u=[],T.test(t.charAt(pe))?(d=t.charAt(pe),pe++):(d=r,0===$e&&Ce(vt)),d!==r)for(;d!==r;)u.push(d),T.test(t.charAt(pe))?(d=t.charAt(pe),pe++):(d=r,0===$e&&Ce(vt));else u=r;u!==r?s=l=[l,c,u]:(pe=s,s=r)}else pe=s,s=r;s===r&&(s=null),ge=e,e=ce()}else pe=e,e=r}else pe=e,e=r;if(e===r){if(e=pe,45===t.charCodeAt(pe)?(n=w,pe++):(n=r,0===$e&&Ce(ot)),n===r&&(n=null),i=[],T.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(vt)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(vt));else i=r;if(i!==r)if(101===t.charCodeAt(pe)?(o=S,pe++):(o=r,0===$e&&Ce(_t)),o===r&&(69===t.charCodeAt(pe)?(o=N,pe++):(o=r,0===$e&&Ce(bt))),o!==r){if(43===t.charCodeAt(pe)?(a=b,pe++):(a=r,0===$e&&Ce(it)),a===r&&(45===t.charCodeAt(pe)?(a=w,pe++):(a=r,0===$e&&Ce(ot))),a===r&&(a=null),s=[],T.test(t.charAt(pe))?(l=t.charAt(pe),pe++):(l=r,0===$e&&Ce(vt)),l!==r)for(;l!==r;)s.push(l),T.test(t.charAt(pe))?(l=t.charAt(pe),pe++):(l=r,0===$e&&Ce(vt));else s=r;s!==r?(ge=e,e=ue()):(pe=e,e=r)}else pe=e,e=r;else pe=e,e=r}return $e--,e===r&&(n=r,0===$e&&Ce(yt)),e}function Re(){var e,n,i,o,a;if($e++,e=pe,n=pe,$e++,i=function(){var e,n,i,o;return e=pe,t.substr(pe,4)===I?(n=I,pe+=4):(n=r,0===$e&&Ce(xt)),n===r&&(t.substr(pe,5)===F?(n=F,pe+=5):(n=r,0===$e&&Ce(kt))),n!==r?(i=pe,$e++,z.test(t.charAt(pe))?(o=t.charAt(pe),pe++):(o=r,0===$e&&Ce(Et)),$e--,o===r?i=void 0:(pe=i,i=r),i!==r?e=n=[n,i]:(pe=e,e=r)):(pe=e,e=r),e}(),$e--,i===r?n=void 0:(pe=n,n=r),n!==r)if(R.test(t.charAt(pe))?(i=t.charAt(pe),pe++):(i=r,0===$e&&Ce(At)),i!==r){for(o=[],z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===$e&&Ce(Et));a!==r;)o.push(a),z.test(t.charAt(pe))?(a=t.charAt(pe),pe++):(a=r,0===$e&&Ce(Et));ge=e,e=fe()}else pe=e,e=r;else pe=e,e=r;return $e--,e===r&&(n=r,0===$e&&Ce(Ct)),e}function Be(){var e,n;for($e++,e=[],B.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===$e&&Ce(Dt));n!==r;)e.push(n),B.test(t.charAt(pe))?(n=t.charAt(pe),pe++):(n=r,0===$e&&Ce(Dt));return $e--,n=r,0===$e&&Ce(Vt),e}if((n=a())!==r&&pe===t.length)return n;throw n!==r&&pe<t.length&&Ce({type:"end"}),function(t,e,n){return new rs(rs.buildMessage(t,e),t,e,n)}(ye,ve<t.length?t.charAt(ve):null,ve<t.length?Ee(ve,ve+1):Ee(ve,ve))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(rs,Error),rs.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 i=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,a=this.location.source+":"+o.line+":"+o.column;if(r){var s=this.location.end,l=is("",o.line.toString().length," "),c=r[i.line-1],u=(i.line===s.line?s.column:c.length+1)-i.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+o.line+" | "+c+"\n"+l+" | "+is("",i.column-1," ")+is("",u,"^")}else e+="\n at "+a}return e},rs.buildMessage=function(t,e){var n={literal:function(t){return'"'+i(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(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 i(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 o(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?'"'+i(t)+'"':"end of input"}(e)+" found."};const as=new Map,ss=new Map;function ls(t,e,n){const r={args:e,cb:n},i=as.get(t)||[];as.has(t)||as.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");ss.set(o,r)}function cs(t,e){let n=t.args.length,r=t.args.length;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(--n,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!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function us(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=>{us(t,e)}));break;case"BinaryExpression":case"LogicalExpression":us(t.left,e),us(t.right,e);break;case"UnaryExpression":us(t.argument,e);break;case"ConditionalExpression":us(t.test,e),us(t.consequent,e),us(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{us(t,e)}))}}function ds(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function hs(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function fs(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 hs(t.value);if("color"===t.type)return bs(_s(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";throw new Error("Unexpected type ".concat(t.type))}function ps(t){let e=fs(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function gs(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function ms(t,e){if(So)return Oo(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function vs(t,e){if(e<Fo||e>Io)throw new Error("Integer overflow.");!So&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function ys(t){const e=[];return us(t,{Variable(t){e.push(t.id.name)}}),e}function $s(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function _s(t){const e=pe(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function bs(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 he(Math.round(t).toString(16),2)})).join("").toUpperCase())}function ws(t){return bs(_s(t))}const xs=Number.MAX_VALUE,ks=Number.MIN_VALUE,Es="string",Cs="integer",As="number",Vs="boolean",Ds="color",Ps="url",js="datetime",Ss="dict";function Ns(t,e){return{type:Es,value:fs(e)}}function Is(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:As,value:n}}function Fs(t,e,n,r){const i=t.variables.get(e.value);let o;return o=i&&i.getType()===r?i.getValue():n.value,"color"===r&&(o=ws(o)),{type:r,value:o}}function Os(t,e,n){return Fs(t,e,n,n.type)}function Ms(t,e,n){return Fs(t,e,n,"color")}function Ts(t,e,n){return Fs(t,e,n,"url")}const zs=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:Cs,value:Oo(r)}},Rs=zs("getUTCFullYear"),Bs=zs("getUTCMonth"),Js=zs("getUTCDate"),Ls=zs("getUTCDay"),Us=zs("getUTCHours"),Ws=zs("getUTCMinutes"),Hs=zs("getUTCSeconds"),qs=zs("getUTCMilliseconds");function Gs(t,e,n,r){if(!r.value.length)return t.warnings.push(ae(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===Es?e.value:fs(e);for(;i.length+o.length<n.value;)i+=r.value;return i.length>0&&i.length+o.length>n.value&&(i=i.substring(0,Number(n.value)-Number(o.length))),i}function Ks(t,e,n,r){const i=Gs(t,e,n,r);return{type:Es,value:i+fs(e)}}function Ys(t,e,n,r){const i=Gs(t,e,n,r);return{type:Es,value:fs(e)+i}}function Xs(t){return(e,n)=>{const r=_s(n.value);return{type:As,value:r[t]/255}}}function Zs(t){return(e,n,r)=>{const i=_s(n.value);return i[t]=255*r.value,{type:Ds,value:bs(i)}}}const Qs=Xs("a"),tl=Xs("r"),el=Xs("g"),nl=Xs("b"),rl=Zs("a"),il=Zs("r"),ol=Zs("g"),al=Zs("b");function sl(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=Oo(e.value)/Oo(n);return vs(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=Oo(i)%Oo(r)),{type:Cs,value:i}}const ll=36e5;function cl(t,e){return function(n,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];let s=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}(r.value,o.map((t=>t.value))),l=typeof s;if(l!==t)throw"object"===l&&(l=Array.isArray(s)?"array":null===s?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(l,'".'));if("number"===t&&"integer"===e){if(s!==Math.round(s))throw new Error("Cannot convert value to integer.");vs(n,s)}return"string"===t&&"color"===e&&(s=ws(s)),{type:e,value:s}}}function ul(t,e){return function(n,r,i){try{for(var o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return t(n,i,...a)}catch(t){let n=r.value;return"color"===e&&(n=ws(n)),{type:e,value:n}}}}const dl=cl("string","string"),hl=cl("number","number"),fl=cl("number","integer"),pl=cl("boolean","boolean"),gl=cl("string","color"),ml=cl("string","url"),vl=ul(dl,"string"),yl=ul(hl,"number"),$l=ul(fl,"integer"),_l=ul(pl,"boolean"),bl=ul(gl,"color"),wl=ul(ml,"url");function xl(t){return t.map(ps).join(", ")}ls("toString",[Cs],Ns),ls("toString",[As],Ns),ls("toString",[Vs],Ns),ls("toString",[Ds],Ns),ls("toString",[Ps],Ns),ls("toNumber",[Cs],Is),ls("toNumber",[Es],Is),ls("toInteger",[As],(function(t,e){if(e.value>Io||e.value<Fo)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:Cs,value:Oo(n)}})),ls("toInteger",[Es],(function(t,e){let n;try{n=Oo(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>Io||n<Fo)throw new Error("Unable to convert value to Integer.");return{type:Cs,value:n}})),ls("toInteger",[Vs],(function(t,e){return{type:Cs,value:Oo(e.value?1:0)}})),ls("toBoolean",[Cs],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:Vs,value:n}})),ls("toBoolean",[Es],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:Vs,value:"true"===e.value?1:0}})),ls("toColor",[Es],(function(t,e){return{type:Ds,value:ws(e.value)}})),ls("toUrl",[Es],(function(t,e){return{type:Ps,value:e.value}})),ls("encodeUri",[Es],(function(t,e){try{return{type:Es,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),ls("decodeUri",[Es],(function(t,e){try{return{type:Es,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),ls("getIntegerValue",[Es,Cs],Os),ls("getNumberValue",[Es,As],Os),ls("getBooleanValue",[Es,Vs],Os),ls("getStringValue",[Es,Es],Os),ls("getColorValue",[Es,Ds],Ms),ls("getColorValue",[Es,Es],Ms),ls("getUrlValue",[Es,Ps],Ts),ls("getUrlValue",[Es,Es],Ts),ls("parseUnixTime",[Cs],(function(t,e){return{type:js,value:new Date(1e3*Number(e.value))}})),ls("nowLocal",[],(function(){return{type:js,value:new Date}})),ls("addMillis",[js,Cs],(function(t,e,n){return{type:js,value:new Date(e.value.getTime()+Number(n.value))}})),ls("setYear",[js,Cs],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:js,value:r}})),ls("setMonth",[js,Cs],(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 i=new Date(e.value);return i.setUTCMonth(r-1),{type:js,value:i}})),ls("setDay",[js,Cs],(function(t,e,n){const r=new Date(e.value),i=Number(n.value);if(i<=0&&-1!==i||i>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(i," for date ").concat(fs(e),"."));return r.setUTCDate(-1===i?0:i),{type:js,value:r}})),ls("setHours",[js,Cs],(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 i=new Date(e.value);return i.setUTCHours(r),{type:js,value:i}})),ls("setMinutes",[js,Cs],(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 i=new Date(e.value);return i.setUTCMinutes(r),{type:js,value:i}})),ls("setSeconds",[js,Cs],(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 i=new Date(e.value);return i.setUTCSeconds(r),{type:js,value:i}})),ls("setMillis",[js,Cs],(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 i=new Date(e.value);return i.setUTCMilliseconds(r),{type:js,value:i}})),ls("getYear",[js],Rs),ls("getMonth",[js],Bs),ls("getDay",[js],Js),ls("getDayOfWeek",[js],Ls),ls("getHours",[js],Us),ls("getMinutes",[js],Ws),ls("getSeconds",[js],Hs),ls("getMillis",[js],qs),ls("getIntervalSeconds",[Cs],(function(t,e){return sl(t,e,1e3,60)})),ls("getIntervalTotalSeconds",[Cs],(function(t,e){return sl(t,e,1e3)})),ls("getIntervalMinutes",[Cs],(function(t,e){return sl(t,e,6e4,60)})),ls("getIntervalTotalMinutes",[Cs],(function(t,e){return sl(t,e,6e4)})),ls("getIntervalHours",[Cs],(function(t,e){return sl(t,e,ll,24)})),ls("getIntervalTotalHours",[Cs],(function(t,e){return sl(t,e,ll)})),ls("getIntervalTotalDays",[Cs],(function(t,e){return sl(t,e,864e5)})),ls("getIntervalTotalWeeks",[Cs],(function(t,e){return sl(t,e,6048e5)})),ls("len",[Es],(function(t,e){return{type:Cs,value:Oo(e.value.length)}})),ls("contains",[Es,Es],(function(t,e,n){return{type:Vs,value:e.value.includes(n.value)?1:0}})),ls("substring",[Es,Cs,Cs],(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:Es,value:e.value.substring(Number(n.value),Number(r.value))}})),ls("replaceAll",[Es,Es,Es],(function(t,e,n,r){let i;return i=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:Es,value:i}})),ls("index",[Es,Es],(function(t,e,n){return{type:Cs,value:Oo(e.value.indexOf(n.value))}})),ls("lastIndex",[Es,Es],(function(t,e,n){return{type:Cs,value:Oo(e.value.lastIndexOf(n.value))}})),ls("trim",[Es],(function(t,e){return{type:Es,value:e.value.trim()}})),ls("trimLeft",[Es],(function(t,e){return{type:Es,value:e.value.replace(/^\s+/,"")}})),ls("trimRight",[Es],(function(t,e){return{type:Es,value:e.value.replace(/\s+$/,"")}})),ls("toUpperCase",[Es],(function(t,e){return{type:Es,value:e.value.toUpperCase()}})),ls("toLowerCase",[Es],(function(t,e){return{type:Es,value:e.value.toLowerCase()}})),ls("padStart",[Es,Cs,Es],Ks),ls("padStart",[Cs,Cs,Es],Ks),ls("padEnd",[Es,Cs,Es],Ys),ls("padEnd",[Cs,Cs,Es],Ys),ls("testRegex",[Es,Es],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:Vs,value:r.test(e.value)?1:0}})),ls("div",[Cs,Cs],(function(t,e,n){if(n.value===Mo)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=ms(0,r),vs(t,r),{type:Cs,value:r}})),ls("div",[As,As],(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:As,value:r}})),ls("mod",[Cs,Cs],(function(t,e,n){if(n.value===Mo)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=ms(0,r),vs(t,r),{type:Cs,value:r}})),ls("mod",[As,As],(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:As,value:r}})),ls("mul",[{type:Cs,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 i=n.length?n[0].value:Mo;for(let e=1;e<n.length;++e)i*=n[e].value,i=ms(0,i),vs(t,i);return{type:Cs,value:i}})),ls("mul",[{type:As,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 i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i*=n[t].value;return{type:As,value:i}})),ls("sub",[{type:Cs,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 i=n.length?n[0].value:Mo;for(let e=1;e<n.length;++e)i-=n[e].value,i=ms(0,i),vs(t,i);return{type:Cs,value:i}})),ls("sub",[{type:As,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 i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i-=n[t].value;return{type:As,value:i}})),ls("sum",[{type:Cs,isVararg:!0}],(function(t){let e=Mo;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n=0;n<r.length;++n)e+=r[n].value,e=ms(0,e),vs(t,e);return{type:Cs,value:e}})),ls("sum",[{type:As,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:As,value:e}})),ls("abs",[Cs],(function(t,e){const n=To(e.value);return vs(t,n),{type:e.type,value:n}})),ls("abs",[As],(function(t,e){const n=Math.abs(e.value);return{type:As,value:n}})),ls("max",[{type:Cs,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 i=n[0].value;for(let t=1;t<n.length;++t)n[t].value>i&&(i=n[t].value);return{type:Cs,value:i}})),ls("max",[{type:As,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:As,value:Math.max(...n.map((t=>t.value)))}})),ls("min",[{type:Cs,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 i=n[0].value;for(let t=1;t<n.length;++t)n[t].value<i&&(i=n[t].value);return{type:Cs,value:i}})),ls("min",[{type:As,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:As,value:Math.min(...n.map((t=>t.value)))}})),ls("maxNumber",[],(function(){return{type:As,value:xs}})),ls("minNumber",[],(function(){return{type:As,value:ks}})),ls("maxInteger",[],(function(t){return vs(t,Io),{type:Cs,value:Io}})),ls("minInteger",[],(function(t){return vs(t,Fo),{type:Cs,value:Fo}})),ls("round",[As],(function(t,e){const n=Math.sign(e.value);return{type:As,value:n*Math.round(Math.abs(e.value))}})),ls("floor",[As],(function(t,e){return{type:As,value:Math.floor(e.value)}})),ls("ceil",[As],(function(t,e){return{type:As,value:Math.ceil(e.value)}})),ls("signum",[Cs],(function(t,e){return{type:Cs,value:zo(e.value)}})),ls("signum",[As],(function(t,e){return{type:As,value:Math.sign(e.value)}})),ls("copySign",[Cs,Cs],(function(t,e,n){let r;if(n.value===Mo)r=e.value;else if(e.value===Mo)r=0;else{const t=zo(n.value);r=To(e.value)*t}return vs(t,r),{type:Cs,value:r}})),ls("copySign",[As,As],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const i=Math.abs(e.value)*r;return{type:As,value:i}})),ls("getColorAlpha",[Es],Qs),ls("getColorAlpha",[Ds],Qs),ls("getColorRed",[Es],tl),ls("getColorRed",[Ds],tl),ls("getColorGreen",[Es],el),ls("getColorGreen",[Ds],el),ls("getColorBlue",[Es],nl),ls("getColorBlue",[Ds],nl),ls("setColorAlpha",[Es,As],rl),ls("setColorAlpha",[Ds,As],rl),ls("setColorRed",[Es,As],il),ls("setColorRed",[Ds,As],il),ls("setColorGreen",[Es,As],ol),ls("setColorGreen",[Ds,As],ol),ls("setColorBlue",[Es,As],al),ls("setColorBlue",[Ds,As],al),ls("rgb",[As,As,As],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:Ds,value:bs(i)}})),ls("argb",[As,As,As,As],(function(t,e,n,r,i){const o={a:255*e.value,r:255*n.value,g:255*r.value,b:255*i.value};return{type:Ds,value:bs(o)}})),ls("getDictString",[Ss,{type:Es,isVararg:!0}],dl),ls("getDictNumber",[Ss,{type:Es,isVararg:!0}],hl),ls("getDictInteger",[Ss,{type:Es,isVararg:!0}],fl),ls("getDictBoolean",[Ss,{type:Es,isVararg:!0}],pl),ls("getDictColor",[Ss,{type:Es,isVararg:!0}],gl),ls("getDictUrl",[Ss,{type:Es,isVararg:!0}],ml),ls("getDictOptString",[Es,Ss,{type:Es,isVararg:!0}],vl),ls("getDictOptNumber",[As,Ss,{type:Es,isVararg:!0}],yl),ls("getDictOptInteger",[Cs,Ss,{type:Es,isVararg:!0}],$l),ls("getDictOptBoolean",[Vs,Ss,{type:Es,isVararg:!0}],_l),ls("getDictOptColor",[Ds,Ss,{type:Es,isVararg:!0}],bl),ls("getDictOptColor",[Es,Ss,{type:Es,isVararg:!0}],bl),ls("getDictOptUrl",[Es,Ss,{type:Es,isVararg:!0}],wl),ls("getDictOptUrl",[Ps,Ss,{type:Es,isVararg:!0}],wl);const kl={StringLiteral:function(t,e){return{type:Es,value:e.value}},NumberLiteral:function(t,e){return{type:As,value:e.value}},IntegerLiteral:function(t,e){return vs(t,e.value),{type:Cs,value:e.value}},BooleanLiteral:function(t,e){return{type:Vs,value:e.value?1:0}},UnaryExpression:function(t,e){const n=ds(El(t,e.argument));switch(e.operator){case"!":if(n.type===Vs)return{type:Vs,value:n.value?0:1};$s("".concat(e.operator).concat(ps(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===Cs){const e=n.value*Oo(r);return vs(t,e),{type:Cs,value:e}}if(n.type===As)return{type:As,value:n.value*r};$s("".concat(e.operator).concat(ps(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=ds(El(t,e.test));if(n.type===Vs)return n.value?El(t,e.consequent):El(t,e.alternate);$s("".concat(ps(n)," ? ").concat(ps(El(t,e.consequent))," : ").concat(ps(El(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return El(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=fs(El(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:Es,value:n}},LogicalExpression:function(t,e){const n=ds(El(t,e.left));if(n.type!==Vs&&$s("".concat(ps(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:Vs,value:0};const r=ds(El(t,e.right));return r.type!==Vs&&$s("".concat(ps(n)," ").concat(e.operator," ").concat(ps(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(gs(r.type),".")),{type:Vs,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=El(t,e.left),i=El(t,e.right);if(r.type!==i.type&&$s("".concat(ps(r)," ").concat(e.operator," ").concat(ps(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(gs(r.type)," and ").concat(gs(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===js&&n.type===js?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:Vs,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==As&&e.type!==Cs&&e.type!==js&&$s("".concat(ps(e)," ").concat(t," ").concat(ps(n)),"Operator '".concat(t,"' cannot be applied to ").concat(gs(e.type)," type."));const i=e.type===js?e.value.getTime():e.value,o=n.type===js?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:Vs,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==Es&&n.type!==As&&n.type!==Cs&&$s("".concat(ps(n)," ").concat(e," ").concat(ps(r)),"Operator '".concat(e,"' cannot be applied to ").concat(gs(n.type)," type.")),n.type===Es)return"-"===e&&$s("".concat(ps(n)," - ").concat(ps(r)),"Operator '".concat(e,"' cannot be applied to ").concat(gs(n.type)," type.")),{type:Es,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===Cs)try{i=ms(0,i),vs(t,i)}catch(t){$s("".concat(ps(n)," ").concat(e," ").concat(ps(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let i;if(n.type!==Cs&&n.type!==As&&$s("".concat(ps(n)," ").concat(e," ").concat(ps(r)),"Operator '".concat(e,"' cannot be applied to ").concat(gs(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&$s("".concat(ps(n)," ").concat(e," ").concat(ps(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===Cs)try{i=ms(0,i),vs(t,i)}catch(t){$s("".concat(ps(n)," ").concat(e," ").concat(ps(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r;const i=e.arguments.map((e=>El(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if(ss.has(o))r=ss.get(o);else{const t=function(t,e){const n=as.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=cs(n[t],e);if("match"===i.type)return n[t];r||(r=i)}if(!r)throw new Error("Missing function");return r}(n,i);if("expected"in t||"type"in t&&"missing"===t.type){const e=i.map((t=>gs(t.type))).join(", "),r="".concat(n,"(").concat(xl(i),")");"few"===t.type&&0===i.length?$s(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?$s(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):$s(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){$s("".concat(n,"(").concat(xl(i),")"),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 El(t,e){if(e.type in kl)return kl[e.type](t,e);throw new Error("Unsupported expression")}function Cl(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1};!function(t,e){let n="";if(us(e,{Variable(e){n||t.variables.has(e.id.name)||(n=e.id.name)}}),n)throw new Error("Variable '".concat(n,"' is missing."))}(n,e);const r=El(n,e);return n.safeIntegerOverflow&&n.warnings.push(ae(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:r,warnings:n.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}class Al{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return us(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=Cl(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(ae(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return hs(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=pe(String(i));if(t)return bs(t);e(ae(new Error("Expression execution error")))}return"integer"===r.type?i>2147483647||i<-2147483648?void e(ae(new Error("Expression result is out of 32-bit int range"))):Number(i):i}catch(t){return void e(ae(new Error("Expression execution error")))}}}function Vl(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=os(t,{startRule:"JsonStringContents"}),r=ys(n);return e.vars.push(...r),new Al(n)}catch(e){return void n(ae(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Vl(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Vl(t[i],e,n);return r}}var r;return t}function Dl(t,e,n){if(t){if(t instanceof Al)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>Dl(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Dl(t[i],e,n);return r}}return t}function Pl(t,e){const n={vars:[],hasExpression:!1},r=Vl(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>Dl(r,t,e)}}const jl={pagers:function(){return ne(new Map)}},Sl=new Map,Nl=new Map;function Il(t){const e=Sl.get(t)||ne("");return Sl.has(t)||Sl.set(t,e),e}function Fl(t){const e=Nl.get(t)||new Map;return Nl.has(t)||Nl.set(t,e),e}class Ol{setVariable(t){const e=t.getName(),n=Fl(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Il(this).set(e)}getVariable(t){return Fl(this).get(t)}}function Ml(){return new Ol}function Tl(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 zl=new Set(["start","stop","pause","resume","cancel","reset"]);class Rl{constructor(t){Tl(this,"timers",new Map),Tl(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(ae(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(ae(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&zl.has(e)))return void this.logError(ae(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)}tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),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((()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&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(),i=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-i)%n,e()}),i)};e()}}start(t){if("running"===t.state)return void this.logError(ae(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(ae(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(ae(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(ae(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(ae(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(ae(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(ae(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(ae(new Error("The timer is already running"))):this.logError(ae(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))}callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);this.execAnyActions(t,!1)}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}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&&this.tickOrUnholdAction(e),this.startOrResume(e)}}}function Bl(t){let e,n,r,i,o,a,s,l;return n=new Ga({props:{svgFiltersMap:t[3]}}),i=new Ta({props:{div:t[4],templateContext:t[7],layoutParams:{tooltips:t[2]}}}),{c(){e=T("div"),Gt(n.$$.fragment),r=B(),Gt(i.$$.fragment),this.h()},l(t){e=Y(t,"DIV",{class:!0});var o=q(e);Kt(n.$$.fragment,o),r=Q(o),Kt(i.$$.fragment,o),o.forEach(O),this.h()},h(){U(e,"class",o=""+(ie.root+(t[5]?" ".concat(ie.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){F(t,e,o),Yt(n,e,null),I(e,r),Yt(i,e,null),a=!0,s||(l=L(e,"touchstart",ql,{passive:!0}),s=!0)},p(t,r){const s={};8&r[0]&&(s.svgFiltersMap=t[3]),n.$set(s);const l={};16&r[0]&&(l.div=t[4]),4&r[0]&&(l.layoutParams={tooltips:t[2]}),i.$set(l),(!a||33&r[0]&&o!==(o=""+(ie.root+(t[5]?" ".concat(ie.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&U(e,"class",o)},i(t){a||(Ot(n.$$.fragment,t),Ot(i.$$.fragment,t),a=!0)},o(t){Mt(n.$$.fragment,t),Mt(i.$$.fragment,t),a=!1},d(t){t&&O(e),Xt(n),Xt(i),s=!1,l()}}}function Jl(t){let e,n,r=!t[1]&&t[4]&&Bl(t);return{c(){r&&r.c(),e=J()},l(t){r&&r.l(t),e=J()},m(t,i){r&&r.m(t,i),F(t,e,i),n=!0},p(t,n){!t[1]&&t[4]?r?(r.p(t,n),18&n[0]&&Ot(r,1)):(r=Bl(t),r.c(),Ot(r,1),r.m(e.parentNode,e)):r&&(It(),Mt(r,1,1,(()=>{r=null})),Ft())},i(t){n||(Ot(r),n=!0)},o(t){Mt(r),n=!1},d(t){t&&O(e),r&&r.d(t)}}}let Ll=ne(!0),Ul=0;function Wl(){Ll.set(!1)}function Hl(){Ll.set(!0)}function ql(){}function Gl(t,e,n){let r;var i,o,a,s;let{id:l}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new Ol}=e,{mix:p=""}=e,{customization:g={}}=e,{builtinProtocols:m=["http","https","tel","mailto","intent"]}=e,{extensions:v=new Map}=e,{onError:y}=e,{onStat:$}=e,{onCustomAction:_}=e,{onComponent:b}=e,{typefaceProvider:w=(t=>"")}=e,{fetchInit:x={}}=e,{tooltipRoot:k}=e,E=ne("desktop"===u);if(f(t,E,(t=>n(5,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");E.set(!t.matches),t.addListener((()=>{E.set(!t.matches)}))}let C="light",A=null;function V(){"system"===d&&A&&n(26,C=A.matches?"dark":"light")}const D=new Set(m);let P=!1;c||(P=!0,L(ae(new Error('"json" prop is required')))),l||(P=!0,L(ae(new Error('"id" prop is required'))));let j=function(t){if(!t)return ae(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return ae(new Error("Missing card"));if(!e.states||!e.states.length)return ae(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Ia)return ae(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return ae(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return ae(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const S=c.templates||{};j&&(P=!0,L(j));const N={stateChange:!1},I=Il(h),F=Fl(h),O=new Map,M=new Map,T=new Map;let z=null,R=0,B=[];function J(t){const e=Pl(t,L);return e.hasExpression?e.applyVars(M):t}function L(t){y?y({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function U(t,e){$&&$({type:t,action:e})}let W=0;function H(t){return"".concat(l,"-").concat(W++)}let q={},G={};function K(t){const e=t.url?String(t.url):"";if(e)try{const r=e.replace(/div-action:\/\//,""),i=/([^?]+)\?(.+)/.exec(r);if(!i)return;const o=new URLSearchParams(i[2]);switch(i[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=it,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],i=n[t+1];let o=e.getChild(r);if(!o)return;o.setState(i),e=o}}(o.get("state_id"));break;case"set_current_item":!function(t,e){if(!t||!e)throw new Error('Missing data for "set-current-item" action');if(isNaN(Number(e)))throw new Error('Incorrect item for "set-current-item" action');const n=et(t);n&&n.setCurrentItem(Number(e))}(o.get("id"),o.get("item"));break;case"set_previous_item":!function(t,e){if(!t)throw new Error('Missing id for "set-previous-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-previous-item" action');e=e||"clamp";const n=et(t);n&&n.setPreviousItem(e)}(o.get("id"),o.get("overflow"));break;case"set_next_item":!function(t,e){if(!t)throw new Error('Missing id for "set-next-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-next-item" action');e=e||"clamp";const n=et(t);n&&n.setNextItem(e)}(o.get("id"),o.get("overflow"));break;case"set_variable":const i=o.get("name"),a=o.get("value");if(i&&null!==a){const t=M.get(i);t?"dict"===t.getType()?L(ae(new Error("Setting dict variables is not supported"),{additional:{name:i}})):t.set(a):L(ae(new Error("Cannot find variable"),{additional:{name:i}}))}else L(ae(new Error("Incorrect set_variable_action"),{additional:{url:r}}));break;case"timer":const s=o.get("action"),l=o.get("id");z?z.execTimerAction(l,s):L(ae(new Error("Incorrect timer action"),{additional:{id:l,action:s}}));break;case"video":!function(t,e){if(t){const n=et(t);n?"start"===e?n.start():"pause"===e?n.pause():L(ae(new Error("Unknown video action"),{additional:{id:t,action:e}})):L(ae(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else L(ae(new Error("Missing id in video action"),{additional:{action:e}}))}(o.get("id"),o.get("action"));break;case"download":!function(t,e){if(t){let n;n="function"==typeof x?x(t):x,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var r,i,o;if(n){if(n.templates)for(const t in n.templates)S.hasOwnProperty(t)||(S[t]=n.templates[t]);if(Array.isArray(null===(r=n.patch)||void 0===r?void 0:r.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>!Q.has(t.id)));if(r)return L(ae(new Error("Skipping transactional, child is not found"),{additional:{url:t,id:r.id}})),void Y(null===(i=e.download_callbacks)||void 0===i?void 0:i.on_fail_actions)}n.patch.changes.forEach((t=>{const e=Q.get(t.id);e&&e.replaceWith(t.id,t.items)})),Y(null===(o=e.download_callbacks)||void 0===o?void 0:o.on_success_actions)}}else L(ae(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;L(ae(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),Y(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else L(ae(new Error("Missing url in download action"),{additional:{url:t}}))}(o.get("url"),t);break;case"show_tooltip":!function(t,e){var r;if(!t)return void L(ae(new Error("Missing id in show_tooltip action")));const i=tt.get(t);if(!i)return void L(ae(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&B.some((e=>e.desc.id===t)))return;const o={internalId:++R,ownerNode:i.onwerNode,desc:i.tooltip,timeoutId:0};n(2,B=[...B,o]);const a=null!==(r=i.tooltip.duration)&&void 0!==r?r:5e3;a&&(o.timeoutId=window.setTimeout((()=>{o.timeoutId=0,n(2,B=B.filter((t=>t.internalId!==o.internalId)))}),a))}(o.get("id"),o.get("multiple"));break;case"hide_tooltip":!function(t){t?n(2,B=B.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):L(ae(new Error("Missing id in hide_tooltip action")))}(o.get("id"));break;default:L(ae(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){L(ae(t,{additional:{url:e}}))}}async function Y(t,e){if(t&&Array.isArray(t)){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url;if(i){const t=we(i);if(t)if(xe(t,D)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(K(r),await xt()):r.log_id&&(X(r),await xt())}}t.forEach((t=>{t.log_id&&U("click",t)}))}}function X(t){null==_||_(t)}const Z=new Map,Q=new Map,tt=new Map;function et(t){if(Z.has(t))return Z.get(t);L(ae(new Error("Missing instance with id"),{additional:{id:t}}))}const nt=new Map;function rt(t){for(const e of t)M.has(e)&&t.delete(e);return t}ft(oe,{logError:L,logStat:U,hasTemplate:function(t){return t in S},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in S;){if(({json:t,templateContext:e}=Ka(t,e,S,L)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:H,genClass:function(t){return"divkit-".concat(H())},execAction:K,execAnyActions:Y,execCustomAction:X,isRunning:function(t){return N[t]},setRunning:function(t,e){N[t]=e},registerInstance:function(t,e){Z.has(t)?L(ae(new Error("Duplicate instance id"),{additional:{id:t}})):Z.set(t,e)},unregisterInstance:function(t){Z.delete(t)},registerParentOf:function(t,e){Q.set(t,e)},unregisterParentOf:function(t){Q.delete(t)},registerTooltip:function(t,e){tt.has(e.id)&&L(ae(new Error("Duplicate tooltip id"),{additional:{id:e.id}})),tt.set(e.id,{onwerNode:t,tooltip:e})},unregisterTooltip:function(t){tt.delete(t.id),B.some((e=>e.desc.id===t.id))&&n(2,B=B.filter((e=>e.desc.id!==t.id)))},onTooltipClose:function(t){n(2,B=B.filter((e=>e.internalId!==t)))},tooltipRoot:k,addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(G[r]=G[r]||0,++G[r],q[r])return q[r];const i="".concat(H(),"-svg-filter");return n(3,q=Object.assign(Object.assign({},q),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);G[r]&&0==--G[r]&&n(3,q=Object.keys(q).reduce(((t,e)=>(G[e]&&(t[e]=q[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Xa(t);const e=Pl(t,L);return e.vars.length?re(e.vars.map((t=>M.get(t)||function(t){const e=T.get(t)||ne(void 0);return T.has(t)||T.set(t,e),e}(t))).filter(me),(()=>e.applyVars(M))):e.hasExpression?Xa(e.applyVars(M)):Xa(t)},getJsonWithVars:J,getStore:function(t){return nt.has(t)||function(t){nt.has(t)||nt.set(t,jl[t]())}(t),nt.get(t)},getVariable:function(t,e){const n=M.get(t);if(n){const r=n.getType();if(r!==e)return void L(ae(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==g?void 0:g[t]},getBuiltinProtocols:function(){return D},getExtension:function(t,e){const n=v.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:M,logError:L}},typefaceProvider:w,isDesktop:E,isPointerFocus:Ll,registerComponent:void 0,unregisterComponent:void 0}),ft(We,{hasAction:()=>!1});const it={setState(t){throw new Error("Not implemented")},getChild(t){if(ot&&ot.has(t))return ot.get(t);L(ae(new Error("Missing state block with id"),{additional:{id:t}}))}};let ot=null;ft(Pe,{registerInstance(t,e){ot||(ot=new Map),ot.has(t)?L(ae(new Error("Duplicate state with id"),{additional:{id:t}})):ot.set(t,e)},unregisterInstance(t){null==ot||ot.delete(t)},runVisibilityTransition:(t,e,n,r,i)=>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 at=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variables;Array.isArray(at)&&at.forEach((t=>{if(t&&t.type in Bo&&t.name){if(O.has(t.name))return void L(ae(new Error("Duplicate variable"),{additional:{name:t.name}}));"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&L(ae(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=Jo(t.name,t.type,t.value);O.set(t.name,e),M.set(t.name,e)}catch(e){L(ae(e,{additional:{name:t.name}}))}}}));const st=c.palette;st&&st[C].forEach((t=>{if(O.has(t.name))L(ae(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Jo(t.name,"color",t.color);O.set(t.name,e),M.set(t.name,e)}catch(e){L(ae(e,{additional:{name:t.name}}))}}));for(const[t,e]of F)M.has(t)||M.set(t,e);I.subscribe((t=>{if(t&&!M.has(t)){const e=F.get(t);M.set(t,e);const n=T.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const lt=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(lt)&<.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void L(ae(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=os(t.condition,{startRule:"JsonStringContents"}),i=ys(r);if(!i.length)return void L(ae(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return rt(e),e.size?new Promise((t=>{const n=I.subscribe((()=>{rt(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{re(i.map((t=>M.get(t))).filter(me),(()=>{const t=Cl(M,r);return t.warnings.forEach(L),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=J(t);e.log_id&&K(e)})),e=Boolean(r.value)):L(ae(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){L(ae(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else L(ae(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const ct=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(ct){const t=z=new Rl({logError:L,applyVars:J,hasVariableWithType:function(t,e){const n=M.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=M.get(t);n?n.setValue(e):L(ae(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:Y});ct.forEach((e=>t.createTimer(e)))}const ut=null===(s=null==c?void 0:c.card)||void 0===s?void 0:s.states;let pt;return ut&&!P&&(pt={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:ut.map((t=>({state_id:t.state_id.toString(),div:t.div})))}),dt((()=>{Ul++,1===Ul&&(window.addEventListener("keydown",Wl),window.addEventListener("pointerdown",Hl))})),ht((()=>{Ul--,Ul||(window.removeEventListener("keydown",Wl),window.removeEventListener("pointerdown",Hl)),z&&z.destroy(),B.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)}))})),t.$$set=t=>{"id"in t&&n(9,l=t.id),"json"in t&&n(10,c=t.json),"platform"in t&&n(11,u=t.platform),"theme"in t&&n(8,d=t.theme),"globalVariablesController"in t&&n(12,h=t.globalVariablesController),"mix"in t&&n(0,p=t.mix),"customization"in t&&n(13,g=t.customization),"builtinProtocols"in t&&n(14,m=t.builtinProtocols),"extensions"in t&&n(15,v=t.extensions),"onError"in t&&n(16,y=t.onError),"onStat"in t&&n(17,$=t.onStat),"onCustomAction"in t&&n(18,_=t.onCustomAction),"onComponent"in t&&n(19,b=t.onComponent),"typefaceProvider"in t&&n(20,w=t.typefaceProvider),"fetchInit"in t&&n(21,x=t.fetchInit),"tooltipRoot"in t&&n(22,k=t.tooltipRoot)},t.$$.update=()=>{134217984&t.$$.dirty[0]&&("light"===d||"dark"===d?n(26,C=d):"system"===d?"undefined"!=typeof matchMedia?(A||(n(27,A=matchMedia("(prefers-color-scheme: dark)")),A.addListener(V)),n(26,C=A.matches?"dark":"light")):n(26,C="light"):L(ae(new Error("Unsupported theme")))),67108864&t.$$.dirty[0]&&C&&st&&st[C].forEach((t=>{const e=M.get(t.name);e&&e.setValue(t.color)}))},[p,P,B,q,pt,r,E,{},d,l,c,u,h,g,m,v,y,$,_,b,w,x,k,function(t){n(8,d=t)},function(){},K,C,A]}const Kl=class extends te{constructor(t){super(),Zt(this,t,Gl,Jl,d,{id:9,json:10,platform:11,theme:8,globalVariablesController:12,mix:0,customization:13,builtinProtocols:14,extensions:15,onError:16,onStat:17,onCustomAction:18,onComponent:19,typefaceProvider:20,fetchInit:21,tooltipRoot:22,setTheme:23,getDebugVariables:24,execAction:25},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[23]}get getDebugVariables(){return this.$$.ctx[24]}get execAction(){return this.$$.ctx[25]}};class Yl{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 xt()}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 Xl(t){return t instanceof HTMLElement}function Zl(t){return class{constructor(t){this.params=t}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(Xl);r.forEach((t=>{t.style.display="none"})),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),o=this.animItem=t({container:this.wrapper,path:this.params.lottie_url,animationData:this.params.lottie_json,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",(()=>{var t;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""}));const e=new Error("Failed to load lottie animation");e.level="error",e.additional={url:this.params.lottie_url},n.logError(e)})),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;o.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(o.stop(),o.goToAndStop(o.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,o.setDirection(t)),o.goToAndPlay(1===t?0:o.totalFrames,!0))}))}}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)}}}function Ql(t){return new Kl({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,mix:t.mix,customization:t.customization,builtinProtocols:t.builtinProtocols,extensions:t.extensions,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,typefaceProvider:t.typefaceProvider,platform:t.platform,theme:t.theme,fetchInit:t.fetchInit,tooltipRoot:t.tooltipRoot},hydrate:t.hydrate})}var tc=e.Hy,ec=e.M,nc=e.Os,rc=e._0,ic=e.sY;export{tc as SizeProvider,ec as createGlobalVariablesController,nc as createVariable,rc as lottieExtensionBuilder,ic as render};
|
|
2
2
|
//# sourceMappingURL=client-hydratable.mjs.map
|