@divkitframework/divkit 29.0.0 → 29.1.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.
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";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),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(){}t.r(e),t.d(e,{SizeProvider:()=>Yc,createGlobalVariablesController:()=>Oc,createVariable:()=>ra,lottieExtensionBuilder:()=>Zc,render:()=>tu});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 p(t,e,n){t.$$.on_destroy.push(h(e,n))}function f(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 b(t){return t&&l(t.destroy)?t.destroy:n}const _="undefined"!=typeof window;let w=_?()=>window.performance.now():()=>Date.now(),x=_?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 A(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 C="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 C?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)}}))}}function j(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}D.entries="WeakMap"in C?new WeakMap:void 0;let P=!1;function F(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 I(t){const e=B("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 N(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:F(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 O(t,e,n){t.insertBefore(e,n||null)}function T(t,e,n){P&&!n?N(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function M(t){t.parentNode&&t.parentNode.removeChild(t)}function z(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function B(t){return document.createElement(t)}function J(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function R(t){return document.createTextNode(t)}function L(){return R(" ")}function U(){return R("")}function W(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function H(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const q=["width","height"];function G(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===q.indexOf(r)?t[r]=e[r]:H(t,r,e[r])}function K(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:H(t,e,n)}(t,n,e[n])}))}function Y(t){return/-/.test(t)?K:G}function X(t){return Array.from(t.childNodes)}function Z(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function Q(t,e,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Z(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 tt(t,e,n,r){return Q(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 et(t,e,n){return tt(t,e,n,B)}function nt(t,e,n){return tt(t,e,n,J)}function rt(t,e){return Q(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 it(t){return rt(t," ")}function ot(t,e,n){for(let r=n;r<t.length;r+=1){const n=t[r];if(8===n.nodeType&&n.textContent.trim()===e)return r}return-1}function at(t,e){e=""+e,t.data!==e&&(t.data=e)}function st(t,e){t.value=null==e?"":e}function lt(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function ct(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)}class ut{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];j(this,"is_svg",!1),j(this,"e",void 0),j(this,"n",void 0),j(this,"t",void 0),j(this,"a",void 0),this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.is_svg?this.e=J(e.nodeName):this.e=B(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)O(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(M)}}class dt extends ut{constructor(){let t=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),j(this,"l",void 0),this.e=this.n=null,this.l=t}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let e=0;e<this.n.length;e+=1)T(this.t,this.n[e],t)}}function ht(t,e){return new t(e)}const pt=new Map;let ft,gt=0;function mt(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:p,rules:f}=pt.get(h)||function(t,e){const n={stylesheet:I(e),rules:{}};return pt.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule("@keyframes ".concat(d," ").concat(u),p.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"),gt+=1,d}function vt(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(", "),gt-=i,gt||x((()=>{gt||(pt.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&M(e)})),pt.clear())})))}function yt(t){ft=t}function $t(){if(!ft)throw new Error("Function called outside component initialization");return ft}function bt(t){$t().$$.on_mount.push(t)}function _t(t){$t().$$.on_destroy.push(t)}function wt(t,e){return $t().$$.context.set(t,e),e}function xt(t){return $t().$$.context.get(t)}function kt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const Et=[],At=[];let Ct=[];const Vt=[],Dt=Promise.resolve();let jt=!1;function Pt(){jt||(jt=!0,Dt.then(Tt))}function Ft(){return Pt(),Dt}function St(t){Ct.push(t)}const It=new Set;let Nt,Ot=0;function Tt(){if(0!==Ot)return;const t=ft;do{try{for(;Ot<Et.length;){const t=Et[Ot];Ot++,yt(t),Mt(t.$$)}}catch(t){throw Et.length=0,Ot=0,t}for(yt(null),Et.length=0,Ot=0;At.length;)At.pop()();for(let t=0;t<Ct.length;t+=1){const e=Ct[t];It.has(e)||(It.add(e),e())}Ct.length=0}while(Et.length);for(;Vt.length;)Vt.pop()();jt=!1,It.clear(),yt(t)}function Mt(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(St)}}function zt(){return Nt||(Nt=Promise.resolve(),Nt.then((()=>{Nt=null}))),Nt}function Bt(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 Jt=new Set;let Rt;function Lt(){Rt={r:0,c:[],p:Rt}}function Ut(){Rt.r||s(Rt.c),Rt=Rt.p}function Wt(t,e){t&&t.i&&(Jt.delete(t),t.i(e))}function Ht(t,e,n,r){if(t&&t.o){if(Jt.has(t))return;Jt.add(t),Rt.c.push((()=>{Jt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const qt={duration:0};function Gt(t,e,i){const o={direction:"in"};let a,s,c=e(t,i,o),u=!1,d=0;function h(){a&&vt(t,a)}function p(){const{delay:e=0,duration:i=300,easing:o=r,tick:l=n,css:p}=c||qt;p&&(a=mt(t,0,1,i,e,o,p,d++)),l(0,1);const f=w()+e,g=f+i;s&&s.abort(),u=!0,St((()=>Bt(t,!0,"start"))),s=A((e=>{if(u){if(e>=g)return l(1,0),Bt(t,!0,"end"),h(),u=!1;if(e>=f){const t=o((e-f)/i);l(t,1-t)}}return u}))}let f=!1;return{start(){f||(f=!0,vt(t),l(c)?(c=c(o),zt().then(p)):p())},invalidate(){f=!1},end(){u&&(h(),u=!1)}}}function Kt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Yt(t,e){Ht(t,1,1,(()=>{e.delete(t.key)}))}function Xt(t,e,n,r,i,o,a,l,c,u,d,h){let p=t.length,f=o.length,g=p;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,b=[];for(g=f;g--;){const t=h(i,o,g),s=n(t);let l=a.get(s);l?r&&b.push((()=>l.p(t,e))):(l=u(s,t),l.c()),y.set(s,v[g]=l),s in m&&$.set(s,Math.abs(g-m[s]))}const _=new Set,w=new Set;function x(t){Wt(t,1),t.m(l,d),a.set(t.key,t),d=t.first,f--}for(;p&&f;){const e=v[f-1],n=t[p-1],r=e.key,i=n.key;e===n?(d=e.first,p--,f--):y.has(i)?!a.has(r)||_.has(r)?x(e):w.has(i)?p--:$.get(r)>$.get(i)?(w.add(r),x(e)):(_.add(i),p--):(c(n,a),p--)}for(;p--;){const e=t[p];y.has(e.key)||c(e,a)}for(;f;)x(v[f-1]);return s(b),v}function Zt(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 Qt;function te(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?te(Object(n),!0).forEach((function(e){ne(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ne(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 re(t){t&&t.c()}function ie(t,e){t&&t.l(e)}function oe(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),St((()=>{const e=t.$$.on_mount.map(o).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),i.forEach(St)}function ae(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];Ct.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),Ct=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function se(t,e,r,i,o,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=ft;yt(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 p=!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),p&&function(t,e){-1===t.$$.dirty[0]&&(Et.push(t),Pt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,s(h.before_update),h.fragment=!!i&&i(h.ctx),e.target){if(e.hydrate){P=!0;const t=X(e.target);h.fragment&&h.fragment.l(t),t.forEach(M)}else h.fragment&&h.fragment.c();e.intro&&Wt(t.$$.fragment),oe(t,e.target,e.anchor),P=!1,Tt()}yt(d)}function le(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&&(Qt=class extends HTMLElement{constructor(t,e,n){super(),ne(this,"$$ctor",void 0),ne(this,"$$s",void 0),ne(this,"$$c",void 0),ne(this,"$$cn",!1),ne(this,"$$d",{}),ne(this,"$$r",!1),ne(this,"$$p_d",{}),ne(this,"$$l",{}),ne(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=B("slot"),"default"!==t&&H(e,"name",t)},m:function(t,n){O(t,e,n)},d:function(t){t&&M(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]=le(a,o.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ee(ee({},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=le(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]=le(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 ce{constructor(){ne(this,"$$",void 0),ne(this,"$$set",void 0)}$destroy(){ae(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 ue=[];function de(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=!ue.length;for(const e of i)e[1](),ue.push(e,t);if(e){for(let t=0;t<ue.length;t+=2)ue[t][0](ue[t+1]);ue.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 he(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,p=n;const f=()=>{if(d)return;p();const o=e(i?u[0]:u,t,r);a?t(o):p=l(o)?o:n},g=o.map(((t,e)=>h(t,(t=>{u[e]=t,d&=~(1<<e),c&&f()}),(()=>{d|=1<<e}))));return c=!0,f(),function(){s(g),p(),c=!1}},{subscribe:de(r,c).subscribe};var c}const pe={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"},fe=Symbol("root");function ge(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 me={"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_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},ve={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 ye(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 $e(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 be(t){let e=$e(t);return"0"===e&&(e+="em"),e}function _e(t,e){for(;t.length<e;)t="0"+t;return t}function we(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=xe(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>_e(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 xe(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 ke(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&amp;")),e.indexOf("<")>-1&&(e=e.replace(/</g,"&lt;")),e.indexOf(">")>-1&&(e=e.replace(/>/g,"&gt;")),e.indexOf('"')>-1&&(e=e.replace(/"/g,"&quot;")),e}const Ee=Boolean;function Ae(t){if(1===t.length&&"solid"===t[0].type)return{color:we(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=we(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(Ee);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>we(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:De(t.bg.scale),pos:je(t.bg),image:'url("'+ke(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(Ee);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=be(r.value):"relative"===r.type&&(i=Ce[r.value]));const o=Ve(t.bg.center_x),a=Ve(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=>we(t))).join(",")+")"}}({bg:t}):void 0)).filter(Ee).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 Ce={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Ve(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return be(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function De(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function je(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 Pe(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Fe(t,e){return e.has(t)}function Se(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 Ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Se(Object(n),!0).forEach((function(e){Ne(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ne(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 Oe(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function Te(t,e){e&&t.push(e)}function Me(t,e,n){const r=[];Te(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&Te(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const ze=Symbol("state");function Be(t){const e=t.top||0,n=t.right||0,r=t.bottom||0,i=t.left||0;return 0===e&&0===n&&0===r&&0===i?"":$e(e)+" "+$e(n)+" "+$e(r)+" "+$e(i)}function Je(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Re(t){return Je(t)&&t>=0}function Le(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]&&!Re(n[t]))return e;return Be(t)}function Ue(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const We=Object.prototype.hasOwnProperty;function He(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(!We.call(e,i)||!He(t[i],e[i]))return!1}return!0}function qe(t,e){return He(t,e)?e:t}function Ge(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Ke(t,e){const n=Number(t);return isNaN(n)?e:n}function Ye(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Ye(t))})):e.push(t),e}function Xe(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]]&&!Re(t[n[r]]))return e;return t}function Ze(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map((t=>$e((t||e)/n*10))).join(" ")}function Qe(){}const tn=Symbol("action");function en(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function nn(t){var e;let n,r,o,a,l,c,u,d;const h=t[17].default,p=f(h,t,t[16],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?pe.root__clickable:pe["root__clickable-no-transition"]," ").concat(pe.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?pe["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=B("span"),p&&p.c(),this.h()},l(t){n=et(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=X(n);p&&p.l(e),e.forEach(M),this.h()},h(){G(n,$)},m(e,r){T(e,n,r),p&&p.m(n,null),t[25](n),c=!0,u||(d=[b(l=t[4].call(null,n)),W(n,"click",t[21]),W(n,"keydown",t[10]),W(n,"focus",t[22]),W(n,"blur",t[23])],u=!0)},p(t,e){var i;p&&p.p&&(!c||65536&e[0])&&v(p,h,t,t[16],c?m(h,t[16],e,null):y(t[16]),null),G(n,$=Zt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?pe.root__clickable:pe["root__clickable-no-transition"]," ").concat(pe.root__unselectable):"")+" "+(null!==(i=t[0])&&void 0!==i&&i.length?pe["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||(Wt(p,t),c=!0)},o(t){Ht(p,t),c=!1},d(e){e&&M(n),p&&p.d(e),t[25](null),u=!1,s(d)}}}function rn(t){var e;let n,r,o,a,l,c;const u=t[17].default,d=f(u,t,t[16],null);let h=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?pe.root__clickable:pe["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?pe["root_disabled-context-menu"]:"")},t[3]],p={};for(let t=0;t<h.length;t+=1)p=i(p,h[t]);return{c(){n=B("a"),d&&d.c(),this.h()},l(t){n=et(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=X(n);d&&d.l(e),e.forEach(M),this.h()},h(){G(n,p)},m(e,r){T(e,n,r),d&&d.m(n,null),t[24](n),a=!0,l||(c=[b(o=t[4].call(null,n)),W(n,"click",t[18]),W(n,"keydown",t[10]),W(n,"focus",t[19]),W(n,"blur",t[20])],l=!0)},p(t,e){var i;d&&d.p&&(!a||65536&e[0])&&v(d,u,t,t[16],a?m(u,t[16],e,null):y(t[16]),null),G(n,p=Zt(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]?pe.root__clickable:pe["root__clickable-no-transition"])+" "+(null!==(i=t[0])&&void 0!==i&&i.length?pe["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Wt(d,t),a=!0)},o(t){Ht(d,t),a=!1},d(e){e&&M(n),d&&d.d(e),t[24](null),l=!1,s(c)}}}function on(t){let e,n,r,i;const o=[rn,nn],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=o[e](t),{c(){n.c(),r=U()},l(t){n.l(t),r=U()},m(t,n){a[e].m(t,n),T(t,r,n),i=!0},p(t,i){let l=e;e=s(t),e===l?a[e].p(t,i):(Lt(),Ht(a[l],1,1,(()=>{a[l]=null})),Ut(),n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Wt(n,1),n.m(r.parentNode,r))},i(t){i||(Wt(n),i=!0)},o(t){Ht(n),i=!1},d(t){t&&M(r),a[e].d(t)}}}function an(t,e,n){let{$$slots:r={},$$scope:i}=e,{id:o=""}=e,{actions:a}=e,{doubleTapActions:s}=e,{longTapActions:l}=e,{cls:c=""}=e,{style:u=null}=e,{attrs:d}=e,{use:h=Qe}=e,{customAction:p=null}=e,{isNativeActionAnimation:f=!0}=e,{hasInnerFocusable:g=!1}=e;const m=xt(fe),v=xt(tn);let y;wt(tn,{hasAction:()=>Boolean(v.hasAction()||(null==a?void 0:a.length))});let $,b="",_=-1,w=null,x=!1,k=!1;async function E(t){v.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==p?void 0:p(t))?t.preventDefault():a&&(a.some((t=>{if(null==t?void 0:t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=Pe(e);return n&&!Fe(n,m.getBuiltinProtocols())}))&&t.preventDefault(),m.execAnyActions(a)))}function A(t){v.hasAction()||void 0!==t.button&&0!==t.button||m.execAnyActions(s,!0)}function C(t){t.touches.length>1||(w=en(t),x=!1,_=Date.now())}function V(t){if(!w)return;const e=en(t);(Math.abs(w.x-e.x)>8||Math.abs(w.y-e.y)>8)&&(x=!0)}function D(){!w||_<0||(!x&&Date.now()-_>=400&&m.execAnyActions(l,!0),w=null,_=-1)}return bt((()=>{o&&!g&&m.registerFocusable(o,{focus(){y&&(b||k)&&y.focus()}})})),_t((()=>{o&&!g&&m.unregisterFocusable(o)})),t.$$set=t=>{"id"in t&&n(11,o=t.id),"actions"in t&&n(12,a=t.actions),"doubleTapActions"in t&&n(13,s=t.doubleTapActions),"longTapActions"in t&&n(0,l=t.longTapActions),"cls"in t&&n(1,c=t.cls),"style"in t&&n(2,u=t.style),"attrs"in t&&n(3,d=t.attrs),"use"in t&&n(4,h=t.use),"customAction"in t&&n(14,p=t.customAction),"isNativeActionAnimation"in t&&n(5,f=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(15,g=t.hasInnerFocusable),"$$scope"in t&&n(16,i=t.$$scope)},t.$$.update=()=>{if(20608&t.$$.dirty[0]){if(Array.isArray(a)&&(null==a?void 0:a.length))for(let t=0;t<a.length;++t){const e=a[t].url;if(e){n(7,b=e),n(9,$=a[t].target||void 0);break}}Array.isArray(a)&&(null==a?void 0:a.length)&&v.hasAction()&&(n(7,b=""),m.logError(ge(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:a}}))),n(8,k=Boolean(p)),b&&!Fe(Pe(b),m.getBuiltinProtocols())?(n(7,b=""),n(8,k=!0)):!b&&Array.isArray(a)&&(null==a?void 0:a.length)&&(n(8,k=!0),a.some((t=>t.url||t.typed))||m.logError(ge(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:a}})))}8641&t.$$.dirty[0]&&y&&(b||k?y.addEventListener("click",E):y.removeEventListener("click",E),(null==s?void 0:s.length)?y.addEventListener("dblclick",A):y.removeEventListener("dblclick",A),(null==l?void 0:l.length)?(y.addEventListener("touchstart",C,{passive:!0}),y.addEventListener("touchmove",V,{passive:!0}),y.addEventListener("touchend",D,{passive:!0}),y.addEventListener("touchcancel",D,{passive:!0})):(y.removeEventListener("touchstart",C),y.removeEventListener("touchmove",V),y.removeEventListener("touchend",D),y.removeEventListener("touchcancel",D)))},[l,c,u,d,h,f,y,b,k,$,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(a)&&a.length&&(m.execAnyActions(a),t.preventDefault())},o,a,s,p,g,i,r,function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(t){At[t?"unshift":"push"]((()=>{y=t,n(6,y)}))},function(t){At[t?"unshift":"push"]((()=>{y=t,n(6,y)}))}]}const sn=class extends ce{constructor(t){super(),se(this,t,an,on,d,{id:11,actions:12,doubleTapActions:13,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:14,isNativeActionAnimation:5,hasInnerFocusable:15},null,[-1,-1])}},ln={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function cn(t){return Je(t)&&t>0}function un(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(cn(t.radius))return"blur(".concat(be(t.radius/2),")")}else e(ge(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function dn(t,e,n){const r=t.slice();return r[5]=e[n],r}function hn(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=ln["outer-background__item"]),H(e,"style",r=ye(t[5].style))},m(t,n){T(t,e,n)},p(t,n){2&n&&r!==(r=ye(t[5].style))&&H(e,"style",r)},d(t){t&&M(e)}}}function pn(t){let e,n,r,i,o,a;return{c(){e=B("img"),this.h()},l(t){e=et(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)||H(e,"src",n),H(e,"alt",""),H(e,"aria-hidden","true"),H(e,"loading","lazy"),H(e,"decoding","async"),H(e,"class",r=ln["outer-background__item"]),H(e,"style",i=ye(t[5].style))},m(n,r){T(n,e,r),o||(a=W(e,"error",t[2]),o=!0)},p(t,r){2&r&&!u(e.src,n=t[5].image_url)&&H(e,"src",n),2&r&&i!==(i=ye(t[5].style))&&H(e,"style",i)},d(t){t&&M(e),o=!1,a()}}}function fn(t){let e;function n(t,e){return t[5].image_url?pn:hn}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(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&&M(e),i.d(t)}}}function gn(t){let e,r,i=Kt(t[1]),o=[];for(let e=0;e<i.length;e+=1)o[e]=fn(dn(t,i,e));return{c(){e=B("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=et(t,"SPAN",{class:!0});var n=X(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(M),this.h()},h(){H(e,"class",r=ln["outer-background"]+(t[0]?" "+ln["outer-background_clip"]:"")),lt(e,"border-radius",t[0])},m(t,n){T(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=Kt(t[1]),n=0;n<i.length;n+=1){const r=dn(t,i,n);o[n]?o[n].p(r,a):(o[n]=fn(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=ln["outer-background"]+(t[0]?" "+ln["outer-background_clip"]:""))&&H(e,"class",r),1&a&&lt(e,"border-radius",t[0])},i:n,o:n,d(t){t&&M(e),z(o,t)}}}function mn(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=xt(fe);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=Ae([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=un(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(ln["outer-background__item_hidden"])},i]}const vn=class extends ce{constructor(t){super(),se(this,t,mn,gn,d,{background:3,radius:0})}},yn=t=>({hasCustomFocus:256&t[0]}),$n=t=>({focusHandler:t[38],blurHandler:t[39],hasCustomFocus:t[8]});function bn(t){let e,n;return e=new sn({props:{id:t[0].id,use:t[37],cls:t[1]+" "+Me("outer",ve,t[17]),style:ye(t[16]),actions:t[13],doubleTapActions:t[14],longTapActions:t[15],attrs:t[9],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||Cn(t[7]),$$slots:{default:[xn]},$$scope:{ctx:t}}}),e.$on("focus",t[38]),e.$on("blur",t[39]),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.id=t[0].id),131074&n[0]&&(r.cls=t[1]+" "+Me("outer",ve,t[17])),65536&n[0]&&(r.style=ye(t[16])),8192&n[0]&&(r.actions=t[13]),16384&n[0]&&(r.doubleTapActions=t[14]),32768&n[0]&&(r.longTapActions=t[15]),512&n[0]&&(r.attrs=t[9]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||Cn(t[7])),1400&n[0]|268435456&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function _n(t){let e,n;return e=new vn({props:{background:t[5],radius:t[4]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function wn(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=ve.outer__border),H(e,"style",r=ye(t[3]))},m(t,n){T(t,e,n)},p(t,n){8&n[0]&&r!==(r=ye(t[3]))&&H(e,"style",r)},d(t){t&&M(e)}}}function xn(t){let e,n,r,i=t[6]&&_n(t);const o=t[120].default,a=f(o,t,t[121],$n);let s=t[10]&&wn(t);return{c(){i&&i.c(),e=U(),a&&a.c(),s&&s.c(),n=U()},l(t){i&&i.l(t),e=U(),a&&a.l(t),s&&s.l(t),n=U()},m(t,o){i&&i.m(t,o),T(t,e,o),a&&a.m(t,o),s&&s.m(t,o),T(t,n,o),r=!0},p(t,l){t[6]?i?(i.p(t,l),64&l[0]&&Wt(i,1)):(i=_n(t),i.c(),Wt(i,1),i.m(e.parentNode,e)):i&&(Lt(),Ht(i,1,1,(()=>{i=null})),Ut()),a&&a.p&&(!r||256&l[0]|268435456&l[3])&&v(a,o,t,t[121],r?m(o,t[121],l,yn):y(t[121]),$n),t[10]?s?s.p(t,l):(s=wn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Wt(i),Wt(a,t),r=!0)},o(t){Ht(i),Ht(a,t),r=!1},d(t){t&&(M(e),M(n)),i&&i.d(t),a&&a.d(t),s&&s.d(t)}}}function kn(t){let e,n,r=!t[11]&&!t[12]&&bn(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[11]||t[12]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),6144&n[0]&&Wt(r,1)):(r=bn(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const En={left:"start",center:"center",right:"end"},An={top:"start",center:"center",bottom:"end",baseline:"baseline"};function Cn(t){return t.some((t=>"native"===t.name))}function Vn(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I,N,O,T,M,z,B,J,R,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,ht=n,pt=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((()=>ht())),t.$$.on_destroy.push((()=>pt()));let{$$slots:ft={},$$scope:gt}=e,{json:mt={}}=e,{origJson:vt}=e,{templateContext:yt}=e,{cls:$t=""}=e,{style:bt}=e,{layoutParams:wt={}}=e,{customDescription:kt=!1}=e,{customPaddings:Et=!1}=e,{customActions:At=""}=e,{additionalPaddings:Ct=null}=e,{heightByAspect:Vt=!1}=e,{parentOf:Dt}=e,{parentOfSimpleMode:jt}=e,{replaceItems:Pt}=e,{hasInnerFocusable:St=!1}=e;const It=xt(fe),Nt=xt(ze),Ot=It.isPointerFocus;let Tt,Mt;p(t,Ot,(t=>r(127,P=t)));let zt,Bt,Jt,Rt,Lt,Ut,Wt,Ht,qt,Gt,Kt,Yt,Xt,Zt,Qt,te,ee,ne,re,ie,oe=null,ae=[],se={},le={},ce=!1,ue=1,de="transparent",he=0,pe={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},me="",ve=null,ye="",_e={},xe=0,ke=0,Ce=0,Ve=!1,De=!1,je={},Se=0,Ne=0,Te=0,Me=!1,Je=!1,We=1,Qe=[],tn=!1,en=!1,nn=[],rn=[],on=[],an=[],sn=[],ln=[],cn="",un=!1,dn="visible",hn=0,pn=0,fn=!1,gn=null;function mn(t,e){if(!Array.isArray(Dt)||!Pt)return;if(jt&&1!==(Array.isArray(e)&&e.length||0))return;const n=Dt.findIndex((e=>(null==e?void 0:e.id)===t)),i=Dt.slice();i.splice(n,1,...e||[]),r(40,Dt=i),Pt(i)}function vn(t){const e=Ke(t.start_value,1),n=Ke(t.end_value,1),i=Ue(t.start_delay,0),o=Ue(t.duration,300),a=Ge(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(86,Zt=e),r(87,Qt=n),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return r(88,te=e),r(89,ee=n),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return It.logError(ge(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function yn(){if(oe&&Tt){const t=It.getExtensionContext();oe.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,Tt,t)})),oe=null}}return _t((()=>{var t;ae.forEach((t=>{It.unregisterParentOf(t)})),r(53,ae=[]),null===(t=mt.tooltips)||void 0===t||t.forEach((t=>{It.unregisterTooltip(t)})),yn()})),t.$$set=t=>{"json"in t&&r(0,mt=t.json),"origJson"in t&&r(41,vt=t.origJson),"templateContext"in t&&r(42,yt=t.templateContext),"cls"in t&&r(1,$t=t.cls),"style"in t&&r(43,bt=t.style),"layoutParams"in t&&r(44,wt=t.layoutParams),"customDescription"in t&&r(45,kt=t.customDescription),"customPaddings"in t&&r(46,Et=t.customPaddings),"customActions"in t&&r(47,At=t.customActions),"additionalPaddings"in t&&r(48,Ct=t.additionalPaddings),"heightByAspect"in t&&r(49,Vt=t.heightByAspect),"parentOf"in t&&r(40,Dt=t.parentOf),"parentOfSimpleMode"in t&&r(50,jt=t.parentOfSimpleMode),"replaceItems"in t&&r(51,Pt=t.replaceItems),"hasInnerFocusable"in t&&r(2,St=t.hasInnerFocusable),"$$scope"in t&&r(121,gt=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]|8192&t.$$.dirty[1]|262144&t.$$.dirty[2]&&mt&&wt&&(r(59,ve=null),r(60,ye=""),r(77,We=1),r(90,un=!1),r(91,dn="visible"),r(92,hn=0),r(93,pn=0),r(94,ne=void 0),r(95,re=void 0),r(80,Qe=wt.fakeElement?[]:mt.transition_triggers||["state_change","visibility_change"]),r(81,tn=Boolean(-1!==Qe.indexOf("state_change")&&mt.id)),en=Boolean(-1!==Qe.indexOf("visibility_change")&&mt.id)),1&t.$$.dirty[0]&&(r(35,i=It.getDerivedFromVars(mt.focus)),Q(),Q=h(i,(t=>r(105,N=t)))),1&t.$$.dirty[0]&&(r(34,o=It.getDerivedFromVars(mt.border)),pt(),pt=h(o,(t=>r(119,K=t)))),1&t.$$.dirty[0]&&(r(33,a=It.getDerivedFromVars(mt.paddings)),ht(),ht=h(a,(t=>r(118,G=t)))),1&t.$$.dirty[0]&&(r(32,s=It.getDerivedFromVars(mt.margins)),ut(),ut=h(s,(t=>r(116,H=t)))),1&t.$$.dirty[0]&&(r(31,l=It.getDerivedFromVars(mt.width)),lt(),lt=h(l,(t=>r(114,U=t)))),1&t.$$.dirty[0]&&(r(30,c=It.getDerivedFromVars(mt.alignment_horizontal)),dt(),dt=h(c,(t=>r(117,q=t)))),1&t.$$.dirty[0]&&(r(29,u=It.getDerivedFromVars(mt.height)),st(),st=h(u,(t=>r(113,L=t)))),1&t.$$.dirty[0]&&(r(28,d=It.getDerivedFromVars(mt.alignment_vertical)),ct(),ct=h(d,(t=>r(115,W=t)))),1&t.$$.dirty[0]&&(r(27,f=It.getDerivedFromVars(mt.alpha)),at(),at=h(f,(t=>r(112,R=t)))),1&t.$$.dirty[0]&&(r(26,g=It.getDerivedFromVars(mt.accessibility)),ot(),ot=h(g,(t=>r(111,J=t)))),1&t.$$.dirty[0]&&(r(25,m=It.getDerivedFromVars(mt.background)),it(),it=h(m,(t=>r(110,B=t)))),1&t.$$.dirty[0]&&(r(24,v=It.getDerivedFromVars(mt.action)),nt(),nt=h(v,(t=>r(108,M=t)))),1&t.$$.dirty[0]&&(r(23,y=It.getDerivedFromVars(mt.actions)),rt(),rt=h(y,(t=>r(109,z=t)))),1&t.$$.dirty[0]&&(r(22,$=It.getDerivedFromVars(mt.doubletap_actions)),et(),et=h($,(t=>r(107,T=t)))),1&t.$$.dirty[0]&&(r(21,b=It.getDerivedFromVars(mt.longtap_actions)),tt(),tt=h(b,(t=>r(106,O=t)))),1&t.$$.dirty[0]&&(r(20,_=It.getDerivedFromVars(mt.action_animation)),Z(),Z=h(_,(t=>r(104,I=t)))),1&t.$$.dirty[0]&&(r(19,w=It.getDerivedFromVars(mt.visibility)),X(),X=h(w,(t=>r(103,S=t)))),1&t.$$.dirty[0]&&(r(18,x=It.getDerivedFromVars(mt.transform)),Y(),Y=h(x,(t=>r(102,F=t)))),4719104&t.$$.dirty[1]&&(ae.forEach((t=>{It.unregisterParentOf(t)})),r(53,ae=[]),Dt&&Dt.forEach((t=>{(null==t?void 0:t.id)&&(ae.push(t.id),It.registerParentOf(t.id,{replaceWith:mn,isSingleMode:Boolean(jt)}))}))),264&t.$$.dirty[0]|260046848&t.$$.dirty[1]|67112960&t.$$.dirty[3]){const t=fn&&(null==N?void 0:N.border)?N.border:K;let e={},n={},i=!1,o="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,i,o,a;return $e((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+$e((null===(r=t.offset)||void 0===r||null===(i=r.y)||void 0===i?void 0:i.value)||0)+" "+$e(null!==(o=t.blur)&&void 0!==o?o:2)+" "+we(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(n):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(i=!0,r(55,ue=Ue(t.stroke.width,ue)),r(56,de=we(t.stroke.color,1,de)),n.border="".concat($e(ue)," solid ").concat(de)),t.corners_radius?(r(58,pe=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!Re(n[t]))return e;return t}(t.corners_radius,pe)),n["border-radius"]=e["border-radius"]=Ze(pe)):t.corner_radius&&(r(57,he=Ue(t.corner_radius,he)),r(58,pe={"top-left":he,"top-right":he,"bottom-right":he,"bottom-left":he}),n["border-radius"]=e["border-radius"]=$e(he)),i&&ue&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},pe);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+ue/2})),o=Ze(t)}}r(54,se=qe(e,se)),r(3,le=qe(n,le)),r(10,ce=i),r(4,me=o)}if(268468224&t.$$.dirty[1]|33554432&t.$$.dirty[3]&&r(59,ve=Xe(G&&!Et?G:void 0,ve)),268566528&t.$$.dirty[1]&&r(98,k=Be(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}(ve,Ct))),536870912&t.$$.dirty[1]|8388608&t.$$.dirty[3]&&r(60,ye=Le(H,ye)),1073750016&t.$$.dirty[1]|8&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(65,xe=Ue(null==U?void 0:U.value,xe)),e=$e(xe);else if("wrap_content"===u||("match_parent"===u||!u)&&wt.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||("match_parent"===u||!u)&&wt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===wt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=U;t.min_size&&Re(t.min_size.value)&&(n=$e(t.min_size.value)),t.max_size&&Re(t.max_size.value)&&(i=$e(t.max_size.value))}"match_parent"!==u&&u||It.logError(ge(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,It.logError(ge(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===wt.parentLayoutOrientation?e="calc(100% - ".concat(be(((null==H?void 0:H.left)||0)+((null==H?void 0:H.right)||0)),")"):"horizontal"===wt.parentContainerOrientation&&(a=U&&"weight"in U&&U.weight||1,wt.parentContainerWrap&&(l=!0));if("parent"===t)o["halign-self"]="stretch";else{const t=q;o["halign-self"]="left"===t||"center"===t||"right"===t?En[t]:wt.parentHAlign||"start"}t&&(o.width=t),r(62,zt=e),r(63,Bt=n),r(64,Jt=i),r(66,ke=a),r(67,Ce=s),r(61,_e=qe(o,_e)),r(68,Ve=l),r(11,De=c)}if(270336&t.$$.dirty[1]|2176&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(Vt);else if("fixed"===u)r(73,Se=Ue(null==L?void 0:L.value,Se)),e=$e(Se);else if("match_parent"!==u||wt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==L?void 0:L.constrained)||"match_parent"===u&&wt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===wt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=L;(null==t?void 0:t.min_size)&&Re(t.min_size.value)&&(n=$e(t.min_size.value)),(null==t?void 0:t.max_size)&&Re(t.max_size.value)&&(i=$e(t.max_size.value))}"match_parent"===u&&It.logError(ge(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,It.logError(ge(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===wt.parentLayoutOrientation?e="calc(100% - ".concat(be(((null==H?void 0:H.top)||0)+((null==H?void 0:H.bottom)||0)),")"):"vertical"===wt.parentContainerOrientation&&(a=(null==L?void 0:L.weight)||1,wt.parentContainerWrap&&(l=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=W;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===wt.parentContainerOrientation?o["valign-self"]=An[t]:o["valign-self"]=wt.parentVAlign||"start"}t&&(o.height=t),r(70,Rt=e),r(71,Lt=n),r(72,Ut=i),r(74,Ne=a),r(75,Te=s),r(69,je=qe(o,je)),r(76,Me=l),r(12,Je=c)}var e,n;if(8192&t.$$.dirty[1]&&r(101,E=!!wt.overlapParent||void 0),8192&t.$$.dirty[1]|3145728&t.$$.dirty[3]&&r(100,A=wt.overlapParent&&(!U||"match_parent"===U.type)&&!wt.parentHorizontalWrapContent&&"match_parent"===(null==L?void 0:L.type)&&!wt.parentVerticalWrapContent),8192&t.$$.dirty[1]&&r(99,C=wt.gridArea?"".concat(wt.gridArea.y+1,"/").concat(wt.gridArea.x+1,"/span ").concat(wt.gridArea.rowSpan,"/span ").concat(wt.gridArea.colSpan):void 0),32768&t.$$.dirty[2]|524288&t.$$.dirty[3]&&(r(77,(n=We,We=!Re(e=R)||void 0===e||e>1?n:Number(e))),r(78,Wt=1===We?void 0:We)),16384&t.$$.dirty[1]|262144&t.$$.dirty[3]&&(r(9,Mt=void 0),J&&!kt&&J.description&&(r(9,Mt={}),r(9,Mt["aria-label"]=J.description,Mt))),368&t.$$.dirty[0]|135168&t.$$.dirty[3]&&(r(5,Ht=fn&&(null==N?void 0:N.background)?N.background:B),r(79,qt={}),r(6,Gt=!1),Array.isArray(Ht)&&(r(6,Gt=Ht.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(me)),!Gt))){const t=Ae(Ht);r(79,qt["background-color"]=t.color,qt),r(79,qt["background-image"]=t.image,qt),r(79,qt["background-size"]=t.size,qt),r(79,qt["background-position"]=t.position,qt),r(79,qt["background-repeat"]="no-repeat",qt)}if(1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(r(82,Kt=void 0),tn&&mt.transition_in&&It.isRunning("stateChange")&&r(82,Kt=!0)),1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(r(84,Xt=void 0),tn&&mt.transition_change&&It.isRunning("stateChange")&&Nt.hasTransitionChange(mt.id)&&r(84,Xt=!0)),73728&t.$$.dirty[1]|126976&t.$$.dirty[3]){let t=z||M&&[M]||[],e=T||[],n=O||[],i=(null==N?void 0:N.on_focus)||[],o=(null==N?void 0:N.on_blur)||[];wt.fakeElement?(t=[],e=[],n=[],i=[],o=[]):(Array.isArray(t)||(t=[],It.logError(ge(new Error("Actions should be array")))),Array.isArray(e)||(e=[],It.logError(ge(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],It.logError(ge(new Error("LongTapActions should be array")))),Array.isArray(i)||(i=[],It.logError(ge(new Error("FocusActions should be array")))),Array.isArray(o)||(o=[],It.logError(ge(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&At&&(t=[],e=[],n=[],It.logError(ge(new Error('Cannot use action on component "'.concat(At,'"'))))),r(13,nn=t),r(14,rn=e),r(15,on=n),an=i,sn=o}if(128&t.$$.dirty[0]|2048&t.$$.dirty[3]&&I&&(r(7,ln=Ye(I)),r(85,cn=ln.map(vn).filter(Boolean).join(", "))),805306368&t.$$.dirty[2]|1024&t.$$.dirty[3]){const t=dn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(S,dn);t!==e&&(!un||"visible"!==dn&&"visible"!==e?r(91,dn=e):async function(t){r(91,dn=t);const e="visible"===t?"in":"out",n="in"===e?mt.transition_in:mt.transition_out;en&&n&&(await Ft(),"in"===e&&r(83,Yt=!0),Nt.runVisibilityTransition(Object.assign(Object.assign({},mt),{visibility:"visible"}),yt,n,Tt,e).then((()=>{"in"===e&&r(83,Yt=!1)})).catch((t=>{throw"in"===e&&r(83,Yt=!1),t})))}(e)),un||r(90,un=!0)}if(1&t.$$.dirty[0]|2097152&t.$$.dirty[1]|8&t.$$.dirty[3]&&mt&&Tt&&!He(mt.extensions,ie)){let t=r(96,ie=mt.extensions);Ft().then((()=>{if(t===ie&&Tt&&(yn(),Array.isArray(mt.extensions))){const t=It.getExtensionContext();oe=mt.extensions.map((e=>{var n;const r=It.getExtension(e.id,e.params);return r&&(null===(n=r.mountView)||void 0===n||n.call(r,Tt,t)),r})).filter(Ee)}}))}if(1&t.$$.dirty[0]|3072&t.$$.dirty[1]&&mt&&vt&&yt&&gn&&gn.update({json:mt,origJson:vt,templateContext:yt}),257&t.$$.dirty[0]|1073750016&t.$$.dirty[1]|552599680&t.$$.dirty[2]|384&t.$$.dirty[3]&&r(17,V=Object.assign(Object.assign(Object.assign({},_e),je),{"parent-overlap":E,"parent-overlap-absolute":A,"scroll-snap":wt.scrollSnap,"hide-on-transition-in":Kt||Yt||Xt,visibility:dn,"has-action-animation":Boolean(cn),"parent-flex":wt.parentContainerOrientation||void 0,"parent-grid":Boolean(wt.gridArea)||void 0,"has-custom-focus":Boolean(fn&&mt.focus)})),1073741824&t.$$.dirty[2]|513&t.$$.dirty[3]&&F&&void 0!==F.rotation){const t=F.pivot_x||{type:"pivot-percentage",value:50};r(92,hn=Ke(t.value,hn));const e="pivot-fixed"===t.type?$e(hn):"".concat(hn,"%"),n=F.pivot_y||{type:"pivot-percentage",value:50};r(93,pn=Ke(n.value,pn));const i="pivot-fixed"===n.type?$e(pn):"".concat(pn,"%");r(94,ne="".concat(e," ").concat(i)),r(95,re="rotate(".concat(F.rotation,"deg)"))}20560&t.$$.dirty[2]&&r(97,D=Ve||Me?"100%":ke||Ne?0:void 0),545263616&t.$$.dirty[1]|260257591&t.$$.dirty[2]|118&t.$$.dirty[3]&&r(16,j=Object.assign(Object.assign(Object.assign(Object.assign({},bt),qt),se),{width:zt,"min-width":Bt,"max-width":Jt,height:Rt,"min-height":Lt,"max-height":Ut||(null==bt?void 0:bt["max-height"]),"grid-area":C,padding:k,margin:ye,opacity:Wt,transition:cn,"transform-origin":ne,transform:re,"flex-grow":ke||Ne||void 0,"flex-shrink":Ce||Te?1:void 0,"flex-basis":D,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ee}))},[mt,$t,St,le,me,Ht,Gt,ln,fn,Mt,ce,De,Je,nn,rn,on,j,V,x,w,_,b,$,y,v,m,g,f,d,u,c,l,s,a,o,i,Ot,function(t){var e;r(52,Tt=t),tn&&mt.transition_in&&Nt.registerChildWithTransitionIn(mt,yt,mt.transition_in,t).then((()=>{r(82,Kt=!1)})).catch((t=>{throw r(82,Kt=!1),t})),tn&&mt.transition_out&&Nt.registerChildWithTransitionOut(mt,yt,mt.transition_out,t),tn&&mt.transition_change&&Nt.registerChildWithTransitionChange(mt,yt,mt.transition_change,t).then((()=>{r(84,Xt=!1)})).catch((t=>{throw r(84,Xt=!1),t}));const n=wt.fakeElement?[]:mt.visibility_actions||mt.visibility_action&&[mt.visibility_action],i=wt.fakeElement?[]:mt.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 Ie(Ie({},n),{},{visibility_percentage:Oe(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,s=o.typed;if(a){const t=Pe(a);t&&!Fe(t,i.getBuiltinProtocols())&&("div-action"===t?i.execAction(o):o.log_id&&i.execCustomAction(o))}else s&&i.execAction(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:It});const o=mt.id;return o&&Nt.registerChild(o),null===(e=mt.tooltips)||void 0===e||e.forEach((e=>{It.registerTooltip(t,e)})),{destroy(){o&&Nt.unregisterChild(o),gn&&gn.destroy()}}},function(){mt.focus&&(P||r(8,fn=!0),It.execAnyActions(an))},function(){mt.focus&&(r(8,fn=!1),It.execAnyActions(sn))},Dt,vt,yt,bt,wt,kt,Et,At,Ct,Vt,jt,Pt,Tt,ae,se,ue,de,he,pe,ve,ye,_e,zt,Bt,Jt,xe,ke,Ce,Ve,je,Rt,Lt,Ut,Se,Ne,Te,Me,We,Wt,qt,Qe,tn,Kt,Yt,Xt,cn,Zt,Qt,te,ee,un,dn,hn,pn,ne,re,ie,D,k,C,A,E,F,S,I,N,O,T,M,z,B,J,R,L,U,W,H,q,G,K,ft,gt]}const Dn=class extends ce{constructor(t){super(),se(this,t,Vn,kn,d,{json:0,origJson:41,templateContext:42,cls:1,style:43,layoutParams:44,customDescription:45,customPaddings:46,customActions:47,additionalPaddings:48,heightByAspect:49,parentOf:40,parentOfSimpleMode:50,replaceItems:51,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},jn={"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 Pn(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function Fn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Sn(t,e){return Fn(t)||e}function In(t){let e,n;return{c(){e=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=jn["text-range__top-offset"]),lt(e,"margin-top",t[4])},m(t,n){T(t,e,n)},p(t,n){16&n&&lt(e,"margin-top",t[4])},d(t){t&&M(e)}}}function Nn(t){let e;return{c(){e=R(t[0])},l(n){e=rt(n,t[0])},m(t,n){T(t,e,n)},p(t,n){1&n&&at(e,t[0])},d(t){t&&M(e)}}}function On(t){let e,n,r,i=t[4]&&In(t);return n=new sn({props:{cls:Me("text-range",jn,t[3]),actions:t[1],style:ye(t[2]),$$slots:{default:[Nn]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=U(),re(n.$$.fragment)},l(t){i&&i.l(t),e=U(),ie(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),T(t,e,o),oe(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=In(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=Me("text-range",jn,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=ye(t[2])),8388609&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(Wt(n.$$.fragment,t),r=!0)},o(t){Ht(n.$$.fragment,t),r=!1},d(t){t&&M(e),i&&i.d(t),ae(n,t)}}}function Tn(t,e,n){let r,i,o,a,s,l;var c,u;let{json:d}=e,{text:h}=e,{rootFontSize:p}=e,{textStyles:f={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=xt(fe);let y,$="none",b=12,_=1.25,w="",x="",k="",E=null;return t.$$set=t=>{"json"in t&&n(5,d=t.json),"text"in t&&n(0,h=t.text),"rootFontSize"in t&&n(6,p=t.rootFontSize),"textStyles"in t&&n(7,f=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(1,m=t.actions)},t.$$.update=()=>{if(32&t.$$.dirty&&d&&(n(11,$="none"),n(12,b=12),n(13,_=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,k=""),n(18,E=null)),128&t.$$.dirty){let t="none";(f.underline||f.strike)&&("single"===f.underline&&"single"===f.strike?t="both":"single"===f.underline?t="underline":"single"===f.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,b=Pn(f.font_size,b)),4224&t.$$.dirty&&cn(f.line_height)&&n(13,_=Number(f.line_height)/b),128&t.$$.dirty&&Re(f.letter_spacing)&&n(14,w=$e(f.letter_spacing)),32896&t.$$.dirty&&(n(15,y=Sn(f.font_weight,y)),"string"==typeof f.font_family&&f.font_family?n(16,x=v.typefaceProvider(f.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,k=we(f.text_color,1,k)),128&t.$$.dirty&&n(4,r=f.top_offset?$e(f.top_offset):""),128&t.$$.dirty&&n(20,i=f.background?Ae([f.background]):null),640&t.$$.dirty&&((null===n(9,c=f.border)||void 0===c?void 0:c.stroke)&&f.border.stroke.color&&"transparent"!==we(f.border.stroke.color)&&cn(f.border.stroke.width)?n(18,E={color:f.border.stroke.color,width:f.border.stroke.width}):n(18,E=null)),1152&t.$$.dirty&&n(19,o=Pn(null===n(10,u=f.border)||void 0===u?void 0:u.corner_radius,0)),4224&t.$$.dirty&&n(21,a=f.text_shadow?function(t,e){var n,r,i,o,a,s;return"drop-shadow("+we(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+$e(10*((null===(r=t.offset)||void 0===r||null===(i=r.x)||void 0===i?void 0:i.value)||0)/e)+" "+$e(10*((null===(o=t.offset)||void 0===o||null===(a=o.y)||void 0===a?void 0:a.value)||0)/e)+" "+$e(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(f.text_shadow,b):void 0),2304&t.$$.dirty&&n(3,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(2,l={"font-size":$e(10*b/p),"line-height":_,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:k,background:(null==i?void 0:i.color)||void 0,"box-shadow":E?"inset 0 0 0 ".concat($e(E.width)," ").concat(E.color):void 0,"border-radius":o?$e(o):void 0})},[h,m,l,s,r,d,p,f,g,c,u,$,b,_,w,y,x,k,E,o,i,a]}const Mn=class extends ce{constructor(t){super(),se(this,t,Tn,On,d,{json:5,text:0,rootFontSize:6,textStyles:7,singleline:8,actions:1})}};function zn(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Bn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Jn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function Rn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:Ln}=C;function Un(t,e,n){const r=t.slice();return r[57]=e[n],r[59]=n,r}function Wn(t){let e,n;return e=new Mn({props:{json:t[0],text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),134217728&n[0]&&(r.textStyles=t[27]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Hn(t){let e,n,r=Kt(t[9]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Yn(Un(t,r,e));const o=t=>Ht(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(268436385&n[0]){let a;for(r=Kt(t[9]),a=0;a<r.length;a+=1){const o=Un(t,r,a);i[a]?(i[a].p(o,n),Wt(i[a],1)):(i[a]=Yn(o),i[a].c(),Wt(i[a],1),i[a].m(e.parentNode,e))}for(Lt(),a=r.length;a<i.length;a+=1)o(a);Ut()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Wt(i[t]);n=!0}},o(t){i=i.filter(Ln);for(let t=0;t<i.length;t+=1)Ht(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function qn(t){let e,r,i,o,a,s,l,c;return{c(){e=B("span"),r=B("img"),this.h()},l(t){e=et(t,"SPAN",{style:!0});var n=X(e);r=et(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(M),this.h()},h(){H(r,"class",i=me.text__image),u(r.src,o=t[57].image.url)||H(r,"src",o),H(r,"loading","lazy"),H(r,"decoding","async"),H(r,"aria-hidden","true"),H(r,"alt",""),H(r,"style",a=ye({width:t[57].image.width,height:t[57].image.height,"margin-top":t[8]?"-".concat(t[57].image.height):void 0,"margin-bottom":t[8]?"-".concat(t[57].image.height):void 0,filter:t[57].image.svgFilterId?"url(#".concat(t[57].image.svgFilterId,")"):void 0})),H(e,"style",s=ye(t[57].image.wrapperStyle))},m(n,i){T(n,e,i),N(e,r),l||(c=W(r,"error",t[28]),l=!0)},p(t,n){512&n[0]&&!u(r.src,o=t[57].image.url)&&H(r,"src",o),768&n[0]&&a!==(a=ye({width:t[57].image.width,height:t[57].image.height,"margin-top":t[8]?"-".concat(t[57].image.height):void 0,"margin-bottom":t[8]?"-".concat(t[57].image.height):void 0,filter:t[57].image.svgFilterId?"url(#".concat(t[57].image.svgFilterId,")"):void 0}))&&H(r,"style",a),512&n[0]&&s!==(s=ye(t[57].image.wrapperStyle))&&H(e,"style",s)},i:n,o:n,d(t){t&&M(e),l=!1,c()}}}function Gn(t){let e,n,r=t[57].text&&Kn(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[57].text?r?(r.p(t,n),512&n[0]&&Wt(r,1)):(r=Kn(t),r.c(),Wt(r,1),r.m(e.parentNode,e)):r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut())},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Kn(t){let e,n;return e=new Mn({props:{json:t[0],text:t[57].text,rootFontSize:t[5],textStyles:t[57].textStyles,singleline:t[7],actions:t[57].actions}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),512&n[0]&&(r.text=t[57].text),32&n[0]&&(r.rootFontSize=t[5]),512&n[0]&&(r.textStyles=t[57].textStyles),128&n[0]&&(r.singleline=t[7]),512&n[0]&&(r.actions=t[57].actions),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Yn(t){let e,n,r,i;const o=[Gn,qn],a=[];function s(t,e){return"text"in t[57]?0:t[57].image?1:-1}return~(e=s(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=U()},l(t){n&&n.l(t),r=U()},m(t,n){~e&&a[e].m(t,n),T(t,r,n),i=!0},p(t,i){let l=e;e=s(t),e===l?~e&&a[e].p(t,i):(n&&(Lt(),Ht(a[l],1,1,(()=>{a[l]=null})),Ut()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Wt(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(Wt(n),i=!0)},o(t){Ht(n),i=!1},d(t){t&&M(r),~e&&a[e].d(t)}}}function Xn(t){let e,n,r,i,o,a;const s=[Hn,Wn],l=[];function c(t,e){return t[9].length?0:1}return n=c(t),r=l[n]=s[n](t),{c(){e=B("span"),r.c(),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0});var n=X(e);r.l(n),n.forEach(M),this.h()},h(){H(e,"class",i=Me("text__inner",me,t[11])),H(e,"style",o=ye(t[10]))},m(t,r){T(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):(Lt(),Ht(l[d],1,1,(()=>{l[d]=null})),Ut(),r=l[n],r?r.p(t,u):(r=l[n]=s[n](t),r.c()),Wt(r,1),r.m(e,null)),(!a||2048&u[0]&&i!==(i=Me("text__inner",me,t[11])))&&H(e,"class",i),(!a||1024&u[0]&&o!==(o=ye(t[10])))&&H(e,"style",o)},i(t){a||(Wt(r),a=!0)},o(t){Ht(r),a=!1},d(t){t&&M(e),l[n].d()}}}function Zn(t){let e,n;return e=new Dn({props:{cls:Me("text",me,t[12])+" "+(t[6]?"":pe.root__unselectable),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Xn]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};4160&n[0]&&(r.cls=Me("text",me,t[12])+" "+(t[6]?"":pe.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]),134221745&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Qn(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I,N,O,T,M,z,B=n,J=n,R=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((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>R())),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=xt(fe);let ot="",at=12,st=1.25,lt=!1,ct="",ut="",dt=!1,ht="left",pt="top",ft="",gt="",mt="",vt=!1,yt=[],$t=[];return _t((()=>{$t.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;if(1&t.$$.dirty[0]&&tt&&(r(5,at=12),r(29,st=1.25),r(8,lt=!1),r(30,ct=""),r(31,ut=""),r(32,dt=!1),r(33,ht="left"),r(34,pt="top"),r(35,ft=""),r(37,mt=""),r(6,vt=!1)),1&t.$$.dirty[0]&&(r(26,i=it.getDerivedFromVars(tt.text)),Q(),Q=h(i,(t=>r(53,z=t)))),1&t.$$.dirty[0]&&(r(25,o=it.getDerivedFromVars(tt.ranges)),J(),J=h(o,(t=>r(42,C=t)))),1&t.$$.dirty[0]&&(r(24,a=it.getDerivedFromVars(tt.images)),B(),B=h(a,(t=>r(41,A=t)))),1&t.$$.dirty[0]&&(r(23,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,text_shadow:tt.text_shadow})),R(),R=h(s,(t=>r(27,V=t)))),1&t.$$.dirty[0]&&(r(22,l=it.getDerivedFromVars(tt.font_size)),Z(),Z=h(l,(t=>r(52,M=t)))),1&t.$$.dirty[0]&&(r(21,c=it.getDerivedFromVars(tt.line_height)),X(),X=h(c,(t=>r(51,T=t)))),1&t.$$.dirty[0]&&(r(20,u=it.getDerivedFromVars(tt.max_lines)),G(),G=h(u,(t=>r(48,I=t)))),1&t.$$.dirty[0]&&(r(19,d=it.getDerivedFromVars(tt.text_alignment_horizontal)),Y(),Y=h(d,(t=>r(50,O=t)))),1&t.$$.dirty[0]&&(r(18,p=it.getDerivedFromVars(tt.text_alignment_vertical)),K(),K=h(p,(t=>r(49,N=t)))),1&t.$$.dirty[0]&&(r(17,f=it.getDerivedFromVars(tt.text_color)),q(),q=h(f,(t=>r(47,S=t)))),1&t.$$.dirty[0]&&(r(16,g=it.getDerivedFromVars(tt.focused_text_color)),H(),H=h(g,(t=>r(46,F=t)))),1&t.$$.dirty[0]&&(r(15,m=it.getDerivedFromVars(tt.truncate)),W(),W=h(m,(t=>r(45,P=t)))),1&t.$$.dirty[0]&&(r(14,v=it.getDerivedFromVars(tt.text_gradient)),U(),U=h(v,(t=>r(44,j=t)))),1&t.$$.dirty[0]&&(r(13,y=it.getDerivedFromVars(tt.selectable)),L(),L=h(y,(t=>r(43,D=t)))),4194304&t.$$.dirty[1]&&r(4,(e=z,ot=String(null!=e?e:""))),32&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&r(5,at=Pn(M,at)),32&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=T;cn(t)?(r(29,st=Number(t)/at),r(8,lt=!0)):r(8,lt=!1)}if(131072&t.$$.dirty[1]&&r(7,$=1===I),536870912&t.$$.dirty[0]|131072&t.$$.dirty[1]){let t="",e="",n=!1;if(I&&I>1){let r=Number(I);t=r*st+"em",e=r,n=!0}r(30,ct=t),r(31,ut=e),r(32,dt=n)}if(524292&t.$$.dirty[1]&&r(33,ht=zn(O,ht)),262152&t.$$.dirty[1]&&r(34,pt=Bn(N,pt)),16&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(40,b=!C||ot&&1===C.length&&C[0]&&0===C[0].start&&"number"==typeof C[0].end&&C[0].end>=ot.length),67584&t.$$.dirty[1]&&r(39,_=Boolean(S)!==Boolean(C&&C[0]&&C[0].text_color)),199440&t.$$.dirty[1]){let t="";I&&b&&_&&(t=we(S||C&&C[0]&&C[0].text_color,1,ft)),r(35,ft=t)}if(32800&t.$$.dirty[1]&&r(36,gt=we(F,1,gt)),16384&t.$$.dirty[1]&&r(38,w="none"===P?"none":""),8192&t.$$.dirty[1]){let t="";if(j){const e=Ae([j]);e.image&&(t=e.image)}r(37,mt=t)}64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(6,vt=Jn(D,vt)),16&t.$$.dirty[0]|3072&t.$$.dirty[1]&&function(t,e,n){let i=[];if($t.forEach((t=>{let[e,n]=t;it.removeSvgFilter(e,n)})),$t=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(9,yt=[]);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=$e(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=$e(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":$e(10*(Number(e.font_size)||12)/at)};let a="";const s=t.image.tint_color,l=Rn(t.image.tint_mode,"source_in");if(s){const e=we(t.image.tint_color);a=it.addSvgFilter(e,l),$t.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(9,yt=i)}(ot,C,A),128&t.$$.dirty[0]|174&t.$$.dirty[1]&&r(12,x={singleline:$,multiline:dt,halign:ht,valign:pt,truncate:w,"has-focus-color":Boolean(gt)}),64&t.$$.dirty[1]&&r(11,k={gradient:Boolean(mt)}),1610612768&t.$$.dirty[0]|113&t.$$.dirty[1]&&r(10,E={"font-size":$e(at),"line-height":st,"max-height":ct,"-webkit-line-clamp":ut,color:ft,"background-image":mt,"--divkit-text-focus-color":gt})},[tt,et,nt,rt,ot,at,vt,$,lt,yt,E,k,x,y,v,m,g,f,p,d,u,c,l,s,a,o,i,V,function(t){t.target&&"classList"in t.target&&t.target.classList.add(me.text__image_hidden)},st,ct,ut,dt,ht,pt,ft,gt,mt,w,_,b,A,C,D,j,P,F,S,I,N,O,T,M,z]}const tr={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 er(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 nr(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 rr(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($e).join(" ")}function ir(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function or(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function ar(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:Ue(null===(o=(i=t.shape).item_width)||void 0===o?void 0:o.value,10),height:Ue(null===(a=i.item_height)||void 0===a?void 0:a.value,10),radius:Ue(null===(s=i.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Ue(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;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?we(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=we(l),a&&s&&(i.boxShadow="inset 0 0 0 ".concat($e(s)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}let sr;function lr(){if("undefined"==typeof document&&(sr=!0),void 0!==sr)return sr;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),sr=1===t.scrollHeight,document.body.removeChild(t),sr}const cr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:ur}=C;function dr(t,e,n){const r=t.slice();return r[15]=e[n],r}function hr(t){let e,n,r,i,o,a="".concat(t[15].style.width,"px"),s="".concat(t[15].style.height,"px"),l="".concat(t[15].style.borderRadius,"px"),c="".concat(t[15].left,"px"),u="".concat(t[15].top,"px"),d="".concat(t[15].width,"px"),h="".concat(t[15].height,"px");return{c(){e=B("div"),n=B("div"),i=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=X(e);n=et(r,"DIV",{class:!0}),X(n).forEach(M),i=it(r),r.forEach(M),this.h()},h(){H(n,"class",r=cr["container-separator__shape"]),lt(n,"width",a),lt(n,"height",s),lt(n,"border-radius",l),lt(n,"background",t[15].style.background),lt(n,"box-shadow",t[15].style.boxShadow),H(e,"class",o=cr["container-separator__item"]),lt(e,"left",c),lt(e,"top",u),lt(e,"width",d),lt(e,"height",h)},m(t,r){T(t,e,r),N(e,n),N(e,i)},p(t,r){2&r&&a!==(a="".concat(t[15].style.width,"px"))&&lt(n,"width",a),2&r&&s!==(s="".concat(t[15].style.height,"px"))&&lt(n,"height",s),2&r&&l!==(l="".concat(t[15].style.borderRadius,"px"))&&lt(n,"border-radius",l),2&r&&lt(n,"background",t[15].style.background),2&r&&lt(n,"box-shadow",t[15].style.boxShadow),2&r&&c!==(c="".concat(t[15].left,"px"))&&lt(e,"left",c),2&r&&u!==(u="".concat(t[15].top,"px"))&&lt(e,"top",u),2&r&&d!==(d="".concat(t[15].width,"px"))&&lt(e,"width",d),2&r&&h!==(h="".concat(t[15].height,"px"))&&lt(e,"height",h)},d(t){t&&M(e)}}}function pr(t){let e,r,i,o,a=Kt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=hr(dr(t,a,e));return{c(){e=B("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(M),this.h()},h(){H(e,"class",r=cr["container-separator"])},m(n,r){T(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[12](e),i||(o=W(ur,"resize",t[2]),i=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=Kt(t[1]),n=0;n<a.length;n+=1){const i=dr(t,a,n);s[n]?s[n].p(i,r):(s[n]=hr(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&&M(e),z(s,n),t[12](null),i=!1,o()}}}function fr(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 gr(t,e,n,r,i,o){const a={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if(null==e?void 0:e.show_at_start){let s,l;"space-around"===i||"space-evenly"===i?(s=o.left-e.style.width,l=o.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),fr(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let i=0;i<n.length-1;++i)fr(t,e,n[i],n[i+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===i||"space-evenly"===i?(l=o.bottom+e.style.height,c=o.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),fr(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function mr(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e;const c=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(),e=window.getComputedStyle(r),c={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,d=[]);let h=[...r.children].filter((t=>t!==u&&!t.classList.contains(ve.outer__border))),p=[];for(;h.length;){const t=[],e=h.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.right,o=n.bottom;for(;h.length;){let e=h[0],n=e.getBoundingClientRect();if("vertical"===i){if(n.top<o)break}else if(n.left<r)break;r=Math.max(r,n.right),o=Math.max(o,n.bottom),t.push(e),h.shift()}p.push(t)}const f=[];p.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&&gr(d,o,e,"vertical"===i,"vertical"===i?l:s,c);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)))};f.push(n)})),a&&gr(d,a,f,"horizontal"===i,"vertical"===i?s:l,c),d.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let u,d=[],h=!1,p=null,f=null;function g(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(cr["container-separator__shape"]))&&!(null==n?void 0:n.contains(cr["container-separator"]))}))&&c()}return bt((()=>{n(8,h=!0)})),_t((()=>{n(8,h=!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),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign)},t.$$.update=()=>{1&t.$$.dirty&&n(11,r=(null==u?void 0:u.parentElement)||null),3840&t.$$.dirty&&(h&&r||p||f)&&(p&&(p.disconnect(),n(9,p=null)),f&&(f.disconnect(),n(10,f=null)),h&&r&&("undefined"!=typeof MutationObserver&&(n(9,p=new MutationObserver(g)),p.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(10,f=new ResizeObserver(c)),f.observe(r)))),2304&t.$$.dirty&&h&&r&&c()},[u,d,c,i,o,a,s,l,h,p,f,r,function(t){At[t?"unshift":"push"]((()=>{u=t,n(0,u)}))}]}const vr=class extends ce{constructor(t){super(),se(this,t,mr,pr,d,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7})}},{Boolean:yr}=C;function $r(t,e,n){const r=t.slice();return r[47]=e[n],r}function br(t){let e,n;return e=new bs({props:{layoutParams:t[10],div:t[47].json,templateContext:t[47].templateContext,origJson:t[47].origJson}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.layoutParams=t[10]),4096&n[0]&&(r.div=t[47].json),4096&n[0]&&(r.templateContext=t[47].templateContext),4096&n[0]&&(r.origJson=t[47].origJson),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function _r(t){let e,n;return e=new vr({props:{separator:t[7],lineSeparator:t[8],orientation:t[4],contentHAlign:t[6],contentVAlign:t[5]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.separator=t[7]),256&n[0]&&(r.lineSeparator=t[8]),16&n[0]&&(r.orientation=t[4]),64&n[0]&&(r.contentHAlign=t[6]),32&n[0]&&(r.contentVAlign=t[5]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function wr(t){let e,n,r,i=Kt(t[12]),o=[];for(let e=0;e<i.length;e+=1)o[e]=br($r(t,i,e));const a=t=>Ht(o[t],1,1,(()=>{o[t]=null}));let s=(t[7]||t[8])&&_r(t);return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=L(),s&&s.c(),n=U()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=it(t),s&&s.l(t),n=U()},m(t,i){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,i);T(t,e,i),s&&s.m(t,i),T(t,n,i),r=!0},p(t,r){if(5120&r[0]){let n;for(i=Kt(t[12]),n=0;n<i.length;n+=1){const a=$r(t,i,n);o[n]?(o[n].p(a,r),Wt(o[n],1)):(o[n]=br(a),o[n].c(),Wt(o[n],1),o[n].m(e.parentNode,e))}for(Lt(),n=i.length;n<o.length;n+=1)a(n);Ut()}t[7]||t[8]?s?(s.p(t,r),384&r[0]&&Wt(s,1)):(s=_r(t),s.c(),Wt(s,1),s.m(n.parentNode,n)):s&&(Lt(),Ht(s,1,1,(()=>{s=null})),Ut())},i(t){if(!r){for(let t=0;t<i.length;t+=1)Wt(o[t]);Wt(s),r=!0}},o(t){o=o.filter(yr);for(let t=0;t<o.length;t+=1)Ht(o[t]);Ht(s),r=!1},d(t){t&&(M(e),M(n)),z(o,t),s&&s.d(t)}}}function xr(t){let e,n;return e=new Dn({props:{cls:Me("container",tr,t[15]),style:t[11],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[16],heightByAspect:Boolean(t[9]),parentOf:t[13],replaceItems:t[26],$$slots:{default:[wr]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=Me("container",tr,t[15])),2048&n[0]&&(r.style=t[11]),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]),512&n[0]&&(r.heightByAspect=Boolean(t[9])),8192&n[0]&&(r.parentOf=t[13]),5616&n[0]|524288&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}const kr={left:"start",center:"center",right:"end","space-between":"start","space-around":"start","space-evenly":"start"},Er={top:"start",center:"center",bottom:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Ar=["rounded_rectangle","circle"];function Cr(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F=n,S=n,I=n,N=n,O=n,T=n,M=n,z=n,B=n,J=n;var R,L,U,W,H,q;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J()));let{json:G={}}=e,{templateContext:K}=e,{origJson:Y}=e,{layoutParams:X}=e;const Z=xt(fe);let Q,tt,et="vertical",nt="top",rt="left",it=null,ot=null,at={};return t.$$set=t=>{"json"in t&&r(0,G=t.json),"templateContext"in t&&r(1,K=t.templateContext),"origJson"in t&&r(2,Y=t.origJson),"layoutParams"in t&&r(3,X=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&G&&(r(4,et="vertical"),r(5,nt="top"),r(6,rt="left"),r(9,tt=void 0)),1&t.$$.dirty[0]&&r(13,i=G.items),1&t.$$.dirty[0]&&(r(25,o=Z.getDerivedFromVars(G.orientation)),J(),J=h(o,(t=>r(45,P=t)))),1&t.$$.dirty[0]&&(r(24,a=Z.getDerivedFromVars(G.layout_mode)),B(),B=h(a,(t=>r(44,j=t)))),1&t.$$.dirty[0]&&(r(23,s=Z.getDerivedFromVars(G.content_alignment_vertical)),M(),M=h(s,(t=>r(42,V=t)))),1&t.$$.dirty[0]&&(r(22,l=Z.getDerivedFromVars(G.content_alignment_horizontal)),T(),T=h(l,(t=>r(41,C=t)))),1&t.$$.dirty[0]&&(r(21,c=Z.getDerivedFromVars(G.separator)),O(),O=h(c,(t=>r(40,A=t)))),1&t.$$.dirty[0]&&(r(20,u=Z.getDerivedFromVars(G.line_separator)),N(),N=h(u,(t=>r(39,E=t)))),1&t.$$.dirty[0]&&(r(19,d=Z.getDerivedFromVars(G.aspect)),I(),I=h(d,(t=>r(38,k=t)))),1&t.$$.dirty[0]&&(r(18,p=Z.getDerivedFromVars(G.width)),F(),F=h(p,(t=>r(36,w=t)))),1&t.$$.dirty[0]&&(r(17,f=Z.getDerivedFromVars(G.height)),S(),S=h(f,(t=>r(37,x=t)))),8194&t.$$.dirty[0]&&r(12,g=(i||[]).map((t=>{let e=t,n=K;return({templateContext:n,json:e}=Z.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4096&t.$$.dirty[0]){let t=[];g.forEach((e=>{t.push(Z.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(14,Q=he(t,(t=>[...t]))),z(),z=h(Q,(t=>r(43,D=t)))}if(16&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(4,et=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(P,et)),8192&t.$$.dirty[1]&&r(33,m="wrap"===j),16&t.$$.dirty[0]|4100&t.$$.dirty[1]&&r(34,v="horizontal"!==et&&!m&&D.some(ir)),16&t.$$.dirty[0]|4100&t.$$.dirty[1]&&r(35,y="vertical"!==et&&!m&&D.some(or)),32&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(5,nt=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(V,nt)),64&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(6,rt=function(t,e){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(C,rt)),939524240&t.$$.dirty[0]|512&t.$$.dirty[1])if((null==A?void 0:A.style)&&"overlap"!==et&&lr()){const t=ar(A.style,Ar,(null==it?void 0:it.style)||null);r(7,it=t?{show_at_start:Boolean(null!==r(27,R=A.show_at_start)&&void 0!==R&&R),show_at_end:Boolean(null!==r(28,L=A.show_at_end)&&void 0!==L&&L),show_between:Boolean(null===r(29,U=A.show_between)||void 0===U||U),style:t,margins:er(A.margins)}:null)}else r(7,it=null);if(1073742096&t.$$.dirty[0]|259&t.$$.dirty[1])if((null==E?void 0:E.style)&&"overlap"!==et&&lr()){const t=ar(E.style,Ar,(null==ot?void 0:ot.style)||null);r(8,ot=t?{show_at_start:Boolean(null!==r(30,W=E.show_at_start)&&void 0!==W&&W),show_at_end:Boolean(null!==r(31,H=E.show_at_end)&&void 0!==H&&H),show_between:Boolean(null===r(32,q=E.show_between)||void 0===q||q),style:t,margins:er(E.margins)}:null)}else r(8,ot=null);if(400&t.$$.dirty[0]&&r(16,$=it||ot?function(t,e,n){const r={};return nr(r,e,"vertical"===t),nr(r,n,"horizontal"===t),r}(et,it,ot):null),128&t.$$.dirty[1]){const t=null==k?void 0:k.ratio;t&&cn(t)?r(9,tt=t):r(9,tt=void 0)}if(1656&t.$$.dirty[0]|124&t.$$.dirty[1]){let t={};(null==X?void 0:X.fakeElement)&&(t.fakeElement=!0),"overlap"===et&&(t.overlapParent=!0),"horizontal"!==et&&(t.parentHAlign=m?"start":kr[rt]),"vertical"!==et&&(t.parentVAlign=m?"start":Er[nt]),tt||y||x&&"wrap_content"!==x.type&&("match_parent"!==x.type||!(null==X?void 0:X.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!v&&("wrap_content"===(null==w?void 0:w.type)||"match_parent"===(null==w?void 0:w.type)&&(null==X?void 0:X.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===et&&(t.parentContainerOrientation="horizontal"),"vertical"===et&&(t.parentContainerOrientation="vertical"),m&&(t.parentContainerWrap=!0),r(10,at=qe(t,at))}112&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(15,b={orientation:et,valign:nt,halign:rt,wrap:m}),912&t.$$.dirty[0]&&r(11,_={gap:it||ot?rr(et,it,ot):void 0,"aspect-ratio":tt})},[G,K,Y,X,et,nt,rt,it,ot,tt,at,_,g,i,Q,b,$,f,p,d,u,c,l,s,a,o,function(t){r(0,G=Object.assign(Object.assign({},G),{items:t.filter(Ee)}))},R,L,U,W,H,q,m,v,y,w,x,k,E,A,C,V,D,j,P]}const Vr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Dr(t,e){return"vertical"===t||"horizontal"===t?t:e}function jr(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=Vr.separator__inner),H(e,"style",r=ye(t[5]))},m(t,n){T(t,e,n)},p(t,n){32&n&&r!==(r=ye(t[5]))&&H(e,"style",r)},d(t){t&&M(e)}}}function Pr(t){let e,n=t[6]&&jr(t);return{c(){n&&n.c(),e=U()},l(t){n&&n.l(t),e=U()},m(t,r){n&&n.m(t,r),T(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=jr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&M(e),n&&n.d(t)}}}function Fr(t){let e,n;return e=new Dn({props:{cls:Me("separator",Vr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Pr]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=Me("separator",Vr,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||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Sr(t,e,r){let i,o,a,s,l,c,u,d=n;t.$$.on_destroy.push((()=>d()));let{json:p={}}=e,{templateContext:f}=e,{origJson:g}=e,{layoutParams:m}=e;const v=xt(fe);let y="horizontal",$="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&r(0,p=t.json),"templateContext"in t&&r(1,f=t.templateContext),"origJson"in t&&r(2,g=t.origJson),"layoutParams"in t&&r(3,m=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&p&&(r(8,y="horizontal"),r(9,$="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(r(7,i=v.getDerivedFromVars(p.delimiter_style)),d(),d=h(i,(t=>r(12,u=t)))),4352&t.$$.dirty&&r(8,y=Dr(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,$=we(null==u?void 0:u.color,1,$)),256&t.$$.dirty&&r(11,a="horizontal"===y?"100%":$e(1)),256&t.$$.dirty&&r(10,s="horizontal"===y?$e(1):"100%"),3584&t.$$.dirty&&r(5,l={background:$,width:a,height:s}),256&t.$$.dirty&&r(4,c={orientation:y})},[p,f,g,m,c,l,o,i,y,$,s,a,u]}const Ir={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 Nr(t){return t.startsWith("data:")?ke(t):"data:image/jpg;base64,".concat(ke(t))}function Or(t){let e,n;return e=new Dn({props:{cls:Me("image",Ir,t[11]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Br]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Me("image",Ir,t[11])),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]),7664&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Tr(t){let e,n,r,i,o,a,l;return{c(){e=B("img"),this.h()},l(t){e=et(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){H(e,"class",n=Ir.image__image),u(e.src,r=t[5]===Lr?Rr:t[6])||H(e,"src",r),H(e,"loading","lazy"),H(e,"decoding","async"),H(e,"style",i=ye(t[10])),H(e,"alt",t[12]),H(e,"aria-hidden",o=t[12]?null:"true")},m(n,r){T(n,e,r),t[59](e),a||(l=[W(e,"load",t[27]),W(e,"error",t[28])],a=!0)},p(t,n){96&n[0]&&!u(e.src,r=t[5]===Lr?Rr:t[6])&&H(e,"src",r),1024&n[0]&&i!==(i=ye(t[10]))&&H(e,"style",i),4096&n[0]&&H(e,"alt",t[12]),4096&n[0]&&o!==(o=t[12]?null:"true")&&H(e,"aria-hidden",o)},d(n){n&&M(e),t[59](null),a=!1,s(l)}}}function Mr(t){let e,n,r,i,o,a,l,c,d,h="".concat(t[7],"%");return{c(){e=B("span"),n=B("img"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var r=X(e);n=et(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(M),this.h()},h(){H(n,"class",r=Ir.image__image),u(n.src,i=t[5]===Lr?Rr:t[6])||H(n,"src",i),H(n,"loading","lazy"),H(n,"decoding","async"),H(n,"style",o=ye(t[10])),H(n,"alt",t[12]),H(n,"aria-hidden",a=t[12]?null:"true"),H(e,"class",l=Ir["image__aspect-wrapper"]),lt(e,"padding-bottom",h)},m(r,i){T(r,e,i),N(e,n),t[58](n),c||(d=[W(n,"load",t[27]),W(n,"error",t[28])],c=!0)},p(t,r){96&r[0]&&!u(n.src,i=t[5]===Lr?Rr:t[6])&&H(n,"src",i),1024&r[0]&&o!==(o=ye(t[10]))&&H(n,"style",o),4096&r[0]&&H(n,"alt",t[12]),4096&r[0]&&a!==(a=t[12]?null:"true")&&H(n,"aria-hidden",a),128&r[0]&&h!==(h="".concat(t[7],"%"))&&lt(e,"padding-bottom",h)},d(n){n&&M(e),t[58](null),c=!1,s(d)}}}function zr(t){let e;function n(t,e){return t[11].aspect?Mr:Tr}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(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&&M(e),i.d(t)}}}function Br(t){let e,n=t[8],r=zr(t);return{c(){r.c(),e=U()},l(t){r.l(t),e=U()},m(t,n){r.m(t,n),T(t,e,n)},p(t,i){256&i[0]&&d(n,n=t[8])?(r.d(1),r=zr(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&M(e),r.d(t)}}}function Jr(t){let e,n,r=!t[9]&&Or(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[9]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),512&n[0]&&Wt(r,1)):(r=Or(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const Rr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Lr=2;function Ur(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I,N,O,T,M=n,z=n,B=n,J=n,R=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,Y=n,X=n;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>R())),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:Z={}}=e,{templateContext:Q}=e,{origJson:tt}=e,{layoutParams:et}=e;const nt=xt(fe);let rt,it,ot,at=0,st=!1,lt="rgba(0,0,0,0.08)",ct=!1,ut="",dt="none",ht="50% 50%",pt="0",ft="source_in",gt="",mt="",vt=0,yt=0,$t=0,bt="",wt="";return _t((()=>{nt.removeSvgFilter(ot,ft)})),t.$$set=t=>{"json"in t&&r(0,Z=t.json),"templateContext"in t&&r(1,Q=t.templateContext),"origJson"in t&&r(2,tt=t.origJson),"layoutParams"in t&&r(3,et=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&Z&&(r(32,dt="none"),r(33,ht="50% 50%"),r(35,ft="source_in")),1&t.$$.dirty[0]&&(r(26,i=nt.getDerivedFromVars(Z.image_url)),Y(),Y=h(i,(t=>r(56,O=t)))),1&t.$$.dirty[0]&&(r(25,o=nt.getDerivedFromVars(Z.gif_url)),X(),X=h(o,(t=>r(57,T=t)))),1&t.$$.dirty[0]&&(r(24,a=nt.getDerivedFromVars(Z.width)),K(),K=h(a,(t=>r(55,N=t)))),1&t.$$.dirty[0]&&(r(23,s=nt.getDerivedFromVars(Z.height)),G(),G=h(s,(t=>r(54,I=t)))),1&t.$$.dirty[0]&&(r(22,l=nt.getDerivedFromVars(Z.preview)),q(),q=h(l,(t=>r(53,S=t)))),1&t.$$.dirty[0]&&(r(21,c=nt.getDerivedFromVars(Z.placeholder_color)),H(),H=h(c,(t=>r(52,F=t)))),1&t.$$.dirty[0]&&(r(20,u=nt.getDerivedFromVars(Z.scale)),W(),W=h(u,(t=>r(51,P=t)))),1&t.$$.dirty[0]&&(r(19,d=nt.getDerivedFromVars({content_alignment_horizontal:Z.content_alignment_horizontal,content_alignment_vertical:Z.content_alignment_vertical})),U(),U=h(d,(t=>r(50,j=t)))),1&t.$$.dirty[0]&&(r(18,p=nt.getDerivedFromVars(Z.accessibility)),L(),L=h(p,(t=>r(49,D=t)))),1&t.$$.dirty[0]&&(r(17,f=nt.getDerivedFromVars(Z.aspect)),R(),R=h(f,(t=>r(48,V=t)))),1&t.$$.dirty[0]&&(r(16,g=nt.getDerivedFromVars(Z.tint_color)),J(),J=h(g,(t=>r(47,C=t)))),1&t.$$.dirty[0]&&(r(15,m=nt.getDerivedFromVars(Z.tint_mode)),B(),B=h(m,(t=>r(46,A=t)))),1&t.$$.dirty[0]&&(r(14,v=nt.getDerivedFromVars(Z.appearance_animation)),z(),z=h(v,(t=>r(45,E=t)))),1&t.$$.dirty[0]&&(r(13,y=nt.getDerivedFromVars(Z.filters)),M(),M=h(y,(t=>r(44,k=t)))),536870913&t.$$.dirty[0]|100663296&t.$$.dirty[1]){let t="gif"===Z.type?T:O;r(29,st="empty://"===t),st&&(t=Rr),r(6,it=t)}if(64&t.$$.dirty[0]&&r(5,at=0),65&t.$$.dirty[0]&&(it?r(9,ct=!1):(r(9,ct=!0),nt.logError(ge(new Error('Missing "'.concat("gif"===Z.type?"gif_url":"image_url",'" for "').concat(Z.type,'"')))))),16777216&t.$$.dirty[1]&&r(43,$="wrap_content"===(null==N?void 0:N.type)),8388608&t.$$.dirty[1]&&r(42,b="wrap_content"===(null==I?void 0:I.type)),536870944&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&r(31,ut=(0===at||at===Lr||st)&&S?'url("'.concat(Nr(S),'")'):""),1610612768&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&r(30,lt=0===at||at===Lr||st?we(F,1,lt):""),1048578&t.$$.dirty[1]&&r(32,dt=De(P)||dt),524288&t.$$.dirty[1]&&r(33,ht=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:je(t)}(j,ht)),262144&t.$$.dirty[1]&&r(12,_=(null==D?void 0:D.description)||""),131072&t.$$.dirty[1]){const t=null==V?void 0:V.ratio;t&&cn(t)?r(7,pt=(100/Number(t)).toFixed(2)):r(7,pt="0")}if(98328&t.$$.dirty[1]){const t=C?we(C):void 0,e=Rn(A,ft);t===ot&&e===ft||(nt.removeSvgFilter(ot,ft),r(8,gt=t?nt.addSvgFilter(t,e):""),r(34,ot=t),r(35,ft=e))}if(16384&t.$$.dirty[1]&&E&&"fade"===E.type){const t=E;r(36,mt=Ge(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(39,$t=Ue(t.duration,300)),r(38,yt=Ue(t.start_delay,0)),r(37,vt=Ue(t.alpha,0))}if(8192&t.$$.dirty[1]){let t="",e="";Array.isArray(k)&&k.length&&(t=un(k,nt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(40,bt=t),r(41,wt=e)}160&t.$$.dirty[0]|6176&t.$$.dirty[1]&&r(11,w={aspect:"0"!==pt,"is-width-content":$,"is-height-content":b,loaded:1===at,"before-appearance":Boolean(mt)&&0===at}),1073742112&t.$$.dirty[0]|2023&t.$$.dirty[1]&&r(10,x={"background-image":ut,"background-color":ut?void 0:lt,"background-size":dt,"clip-path":wt||void 0,"object-fit":dt,"object-position":ht,filter:[1===at&&gt?"url(#".concat(gt,")"):"",bt].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})},[Z,Q,tt,et,rt,at,it,pt,gt,ct,x,w,_,y,v,m,g,f,p,d,u,c,l,s,a,o,i,function(){0===at&&r(5,at=1)},function(){0===at&&r(5,at=Lr)},st,lt,ut,dt,ht,ot,ft,mt,vt,yt,$t,bt,wt,b,$,k,E,A,C,V,D,j,P,F,S,I,N,O,T,function(t){At[t?"unshift":"push"]((()=>{rt=t,r(4,rt),r(0,Z),r(57,T),r(56,O),r(29,st)}))},function(t){At[t?"unshift":"push"]((()=>{rt=t,r(4,rt),r(0,Z),r(57,T),r(56,O),r(29,st)}))}]}const Wr=class extends ce{constructor(t){super(),se(this,t,Ur,Jr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Hr={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 qr(t){return t>0&&t<1}function Gr(t){return String(Math.ceil(1e3*t)/1e3)}function Kr(t,e,n){if(t.some(qr)){const e=Math.max(...t.filter(qr).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($e(r*t[e]/i),",").concat(Gr(t[e]),"fr)"):t[e]?o[e]="".concat(Gr(t[e]),"fr"):o[e]="auto";return o.join(" ")}function Yr(t,e,n){const r=t.slice();return r[29]=e[n],r}function Xr(t){let e,n;return e=new Dn({props:{cls:Me("grid",Hr,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:[Qr]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Me("grid",Hr,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]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Zr(t){let e,n;return e=new bs({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[29].layoutParams),32&n[0]&&(r.div=t[29].json),32&n[0]&&(r.templateContext=t[29].templateContext),32&n[0]&&(r.origJson=t[29].origJson),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Qr(t){let e,n,r=Kt(t[5]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Zr(Yr(t,r,e));const o=t=>Ht(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=Kt(t[5]),a=0;a<r.length;a+=1){const o=Yr(t,r,a);i[a]?(i[a].p(o,n),Wt(i[a],1)):(i[a]=Zr(o),i[a].c(),Wt(i[a],1),i[a].m(e.parentNode,e))}for(Lt(),a=r.length;a<i.length;a+=1)o(a);Ut()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Wt(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Ht(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function ti(t){let e,n,r=!t[6]&&Xr(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[6]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),64&n[0]&&Wt(r,1)):(r=Xr(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function ei(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v=n,y=n,$=n,b=n;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b()));let{json:_={}}=e,{templateContext:w}=e,{origJson:x}=e,{layoutParams:k}=e;const E=xt(fe);let A,C,V=1,D=[],j=[],P=[],F=[],S=0,I=!1,N="top",O="left";return t.$$set=t=>{"json"in t&&r(0,_=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(13,V=1),r(20,N="top"),r(21,O="left")),1&t.$$.dirty[0]&&r(23,i=Array.isArray(_.items)&&_.items||[]),1&t.$$.dirty[0]&&(r(11,o=E.getDerivedFromVars(_.column_count)),b(),b=h(o,(t=>r(27,m=t)))),1&t.$$.dirty[0]&&(r(10,a=E.getDerivedFromVars(_.content_alignment_vertical)),y(),y=h(a,(t=>r(25,f=t)))),1&t.$$.dirty[0]&&(r(9,s=E.getDerivedFromVars(_.content_alignment_horizontal)),v(),v=h(s,(t=>r(24,p=t)))),134225920&t.$$.dirty[0]&&r(13,V=Pn(m,V)),8388610&t.$$.dirty[0]&&r(22,l=i.map((t=>{let e=t,n=w;return({templateContext:n,json:e}=E.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];l.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,A=he(t,(t=>[...t]))),$(),$=h(A,(t=>r(26,g=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,D=[]),r(15,j=[]),r(16,P=[]),r(17,F=[]),r(19,I=!1),r(5,C=l.map(((i,o)=>{var a,s,l,c;const u=g[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,p={x:e,y:n,colSpan:d,rowSpan:h},f="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(19,I=!0):(t[i+"_"+e]=!0,(!D[i]||D[i]<f)&&r(14,D[i]=f,D),(!j[e]||j[e]<m)&&r(15,j[e]=m,j),(!P[i]||P[i]<v)&&r(16,P[i]=v,P),(!F[e]||F[e]<y)&&r(17,F[e]=y,F));do{++e,e>=V&&(e=0,++n)}while(t[e+"_"+n]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:p,fakeElement:(null==k?void 0:k.fakeElement)||!1}})}))),0!==e&&r(19,I=!0),I&&E.logError(ge(new Error('Mismatching "grid" rows/columns'))),r(18,S=n)}34603008&t.$$.dirty[0]&&r(20,N=Bn(f,N)),18874368&t.$$.dirty[0]&&r(21,O=zn(p,O)),3145728&t.$$.dirty[0]&&r(8,c={valign:N,halign:O}),516096&t.$$.dirty[0]&&r(7,u={"grid-template-columns":Kr(D,P,V),"grid-template-rows":Kr(j,F,S)}),524288&t.$$.dirty[0]&&r(6,d=I)},[_,w,x,k,A,C,d,u,c,s,a,o,function(t){r(0,_=Object.assign(Object.assign({},_),{items:t.filter(Ee)}))},V,D,j,P,F,S,I,N,O,l,i,p,f,g,m]}const ni={gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},ri={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function ii(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 oi(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:ai}=C;function si(t,e,n){const r=t.slice();return r[75]=e[n],r[76]=e,r[77]=n,r}function li(t,e,n){const r=t.slice();return r[78]=e[n],r}function ci(t){let e,n;return e=new bs({props:{layoutParams:t[8],div:t[78].json,templateContext:t[78].templateContext,origJson:t[78].origJson}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),262144&n[0]&&(r.div=t[78].json),262144&n[0]&&(r.templateContext=t[78].templateContext),262144&n[0]&&(r.origJson=t[78].origJson),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function ui(t){let e,n,r,i,o,a=t[77],s=Kt(t[75]),l=[];for(let e=0;e<s.length;e+=1)l[e]=ci(li(t,s,e));const c=t=>Ht(l[t],1,1,(()=>{l[t]=null})),u=()=>t[63](e,a),d=()=>t[63](null,a);return{c(){e=B("div");for(let t=0;t<l.length;t+=1)l[t].c();n=L(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var r=X(e);for(let t=0;t<l.length;t+=1)l[t].l(r);n=it(r),r.forEach(M),this.h()},h(){H(e,"class",r=ni.gallery__items),H(e,"style",i=ye(t[16]))},m(t,r){T(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);N(e,n),u(),o=!0},p(r,h){if(t=r,262400&h[0]){let r;for(s=Kt(t[75]),r=0;r<s.length;r+=1){const i=li(t,s,r);l[r]?(l[r].p(i,h),Wt(l[r],1)):(l[r]=ci(i),l[r].c(),Wt(l[r],1),l[r].m(e,n))}for(Lt(),r=s.length;r<l.length;r+=1)c(r);Ut()}(!o||65536&h[0]&&i!==(i=ye(t[16])))&&H(e,"style",i),a!==t[77]&&(d(),a=t[77],u())},i(t){if(!o){for(let t=0;t<s.length;t+=1)Wt(l[t]);o=!0}},o(t){l=l.filter(ai);for(let t=0;t<l.length;t+=1)Ht(l[t]);o=!1},d(t){t&&M(e),z(l,t),d()}}}function di(t){let e,n,r=t[12]&&t[9]&&hi(t),i=t[13]&&t[9]&&pi(t);return{c(){r&&r.c(),e=L(),i&&i.c(),n=U()},l(t){r&&r.l(t),e=it(t),i&&i.l(t),n=U()},m(t,o){r&&r.m(t,o),T(t,e,o),i&&i.m(t,o),T(t,n,o)},p(t,o){t[12]&&t[9]?r?r.p(t,o):(r=hi(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?i?i.p(t,o):(i=pi(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){t&&(M(e),M(n)),r&&r.d(t),i&&i.d(t)}}}function hi(t){let e,r,i,o,a=!t[30]&&function(t){let e,n,r,i;return{c(){e=J("svg"),n=J("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=ni["gallery__arrow-icon-path"]),H(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),H(e,"class",i=ri.arrow__icon),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"width","32"),H(e,"height","32"),H(e,"viewBox","0 0 32 32"),H(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(M),this.h()},h(){H(e,"class",r=t[30]||"".concat(ni.gallery__arrow," ").concat(ri.arrow," ").concat(ri.arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=W(e,"click",t[66]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function pi(t){let e,r,i,o,a=!t[31]&&function(t){let e,n,r,i;return{c(){e=J("svg"),n=J("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=ni["gallery__arrow-icon-path"]),H(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),H(e,"class",i=ri.arrow__icon),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"width","32"),H(e,"height","32"),H(e,"viewBox","0 0 32 32"),H(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(M),this.h()},h(){H(e,"class",r=t[31]||"".concat(ni.gallery__arrow," ").concat(ri.arrow," ").concat(ri.arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=W(e,"click",t[67]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function fi(t){let e,n,r,i,o,a,s,c,u,d,h,p=Kt(t[18]),f=[];for(let e=0;e<p.length;e+=1)f[e]=ui(si(t,p,e));const g=t=>Ht(f[t],1,1,(()=>{f[t]=null}));let m="horizontal"===t[6]&&di(t);return{c(){e=B("div"),n=B("div");for(let t=0;t<f.length;t+=1)f[t].c();s=L(),m&&m.c(),c=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var r=X(e);n=et(r,"DIV",{class:!0,style:!0});var i=X(n);for(let t=0;t<f.length;t+=1)f[t].l(i);i.forEach(M),r.forEach(M),s=it(t),m&&m.l(t),c=U(),this.h()},h(){H(n,"class",r=ni["gallery__items-grid"]),H(n,"style",i=ye(t[17])),H(e,"class",o=ni.gallery__scroller+" "+(t[29]?pe["root_restrict-scroll"]:"")),H(e,"style",a=ye(t[7]))},m(r,i){T(r,e,i),N(e,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(n,null);t[64](n),t[65](e),T(r,s,i),m&&m.m(r,i),T(r,c,i),u=!0,d||(h=W(e,"scroll",(function(){l(t[9]?t[34]:null)&&(t[9]?t[34]:null).apply(this,arguments)})),d=!0)},p(r,s){if(t=r,329984&s[0]){let e;for(p=Kt(t[18]),e=0;e<p.length;e+=1){const r=si(t,p,e);f[e]?(f[e].p(r,s),Wt(f[e],1)):(f[e]=ui(r),f[e].c(),Wt(f[e],1),f[e].m(n,null))}for(Lt(),e=p.length;e<f.length;e+=1)g(e);Ut()}(!u||131072&s[0]&&i!==(i=ye(t[17])))&&H(n,"style",i),(!u||536870912&s[0]&&o!==(o=ni.gallery__scroller+" "+(t[29]?pe["root_restrict-scroll"]:"")))&&H(e,"class",o),(!u||128&s[0]&&a!==(a=ye(t[7])))&&H(e,"style",a),"horizontal"===t[6]?m?m.p(t,s):(m=di(t),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i(t){if(!u){for(let t=0;t<p.length;t+=1)Wt(f[t]);u=!0}},o(t){f=f.filter(ai);for(let t=0;t<f.length;t+=1)Ht(f[t]);u=!1},d(n){n&&(M(e),M(s),M(c)),z(f,n),t[64](null),t[65](null),m&&m.d(n),d=!1,h()}}}function gi(t){let e,n,r,i;return e=new Dn({props:{cls:Me("gallery",ni,t[15]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",parentOf:t[10],replaceItems:t[32],$$slots:{default:[fi]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(o,a){oe(e,o,a),n=!0,r||(i=W(window,"resize",(function(){l(t[9]?t[35]:null)&&(t[9]?t[35]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const i={};32768&r[0]&&(i.cls=Me("gallery",ni,t[15])),1&r[0]&&(i.json=t[0]),4&r[0]&&(i.origJson=t[2]),2&r[0]&&(i.templateContext=t[1]),8&r[0]&&(i.layoutParams=t[3]),1024&r[0]&&(i.parentOf=t[10]),537345008&r[0]|524288&r[2]&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t),r=!1,i()}}}function mi(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I,N,O=n,T=n,M=n,z=n,B=n,J=n,R=n,L=n,U=n,W=n,H=n;t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H()));let{json:q={}}=e,{templateContext:G}=e,{origJson:K}=e,{layoutParams:Y}=e;const X=xt(fe);let Z,Q,tt=[],et=!1,nt=!1,rt=null,it=!1;const ot=X.getCustomization("galleryLeftClass"),at=X.getCustomization("galleryRightClass");let st,lt,ct,ut,dt,ht=1,pt="horizontal",ft="start",gt=8,mt="",vt=[],yt={},$t=!1,wt={},kt=0;const Et=X.isDesktop;function Ct(){if(!Z)return;const t=Z.scrollLeft,e=Z.scrollWidth,n=Z.offsetWidth;r(12,et=t>2),r(13,nt=t+n<e-2)}p(t,Et,(t=>r(62,I=t)));const Vt=oi(Ct,50);function Dt(t){Z.scroll({left:Z.scrollLeft+.75*Z.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function jt(){let t=[],e=tt[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ht;++e){const r=tt[e].children[n];r&&t.push(r)}return t}function Pt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===pt,i=r?"offsetLeft":"offsetTop",o=r?"left":"top",a=t[e];a&&Z.scroll({[o]:Math.max(0,a[i]+.01-gt/2),behavior:n})}function Ft(t){const e=jt(),n=Z.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===pt?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"===pt?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 bt((()=>{r(38,it=!0),Ct(),kt&&Pt(jt(),kt,"auto")})),_t((()=>{r(38,it=!1),st&&!(null==Y?void 0:Y.fakeElement)&&(X.unregisterInstance(st),r(39,st=void 0))})),t.$$set=t=>{"json"in t&&r(0,q=t.json),"templateContext"in t&&r(1,G=t.templateContext),"origJson"in t&&r(2,K=t.origJson),"layoutParams"in t&&r(3,Y=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&q&&(r(40,ht=1),r(6,pt="horizontal"),r(41,ft="start"),r(43,gt=8),r(46,mt="")),1&t.$$.dirty[0]&&r(10,i=Array.isArray(q.items)&&q.items||[]),1&t.$$.dirty[0]&&(r(28,o=X.getDerivedFromVars(q.column_count)),W(),W=h(o,(t=>r(61,S=t)))),1&t.$$.dirty[0]&&(r(27,a=X.getDerivedFromVars(q.orientation)),U(),U=h(a,(t=>r(60,F=t)))),1&t.$$.dirty[0]&&(r(26,s=X.getDerivedFromVars(q.cross_content_alignment)),L(),L=h(s,(t=>r(59,P=t)))),1&t.$$.dirty[0]&&(r(25,l=X.getDerivedFromVars(q.item_spacing)),R(),R=h(l,(t=>r(58,j=t)))),1&t.$$.dirty[0]&&(r(24,c=X.getDerivedFromVars(q.cross_spacing)),J(),J=h(c,(t=>r(57,D=t)))),1&t.$$.dirty[0]&&(r(23,u=X.getDerivedFromVars(q.paddings)),B(),B=h(u,(t=>r(56,V=t)))),1&t.$$.dirty[0]&&(r(22,d=X.getDerivedFromVars(q.scroll_mode)),M(),M=h(d,(t=>r(54,A=t)))),1&t.$$.dirty[0]&&(r(21,f=X.getDerivedFromVars(q.restrict_parent_scroll)),H(),H=h(f,(t=>r(29,N=t)))),1&t.$$.dirty[0]&&(r(20,g=X.getDerivedFromVars(q.scrollbar)),T(),T=h(g,(t=>r(53,E=t)))),1&t.$$.dirty[0]&&(r(19,m=X.getDerivedFromVars(q.default_item)),O(),O=h(m,(t=>r(52,k=t)))),1026&t.$$.dirty[0]&&r(51,v=i.map((t=>{let e=t,n=G;return({templateContext:n,json:e}=X.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),128&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(9,y=I&&it),544&t.$$.dirty[0]|64&t.$$.dirty[1]&&(y?"undefined"!=typeof ResizeObserver&&(r(37,rt=new ResizeObserver((()=>{Vt()}))),rt.observe(Q)):rt&&(rt.disconnect(),r(37,rt=null))),1073742336&t.$$.dirty[1]&&r(40,ht=Pn(S,ht)),1049088&t.$$.dirty[1]&&r(18,$=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}(v,ht)),64&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(6,pt=Dr(F,pt)),268436480&t.$$.dirty[1]&&r(41,ft=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(P,ft)),134221824&t.$$.dirty[1]&&(r(43,gt=Ue(j,gt)),r(42,lt=$e(gt))),67129344&t.$$.dirty[1]&&(r(45,ut=Ue(D,gt)),r(44,ct=$e(ut))),33587200&t.$$.dirty[1]&&r(46,mt=Le(V,mt)),64&t.$$.dirty[0]&&r(50,b="horizontal"===pt?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|1048576&t.$$.dirty[1]){let t=[];v.forEach((e=>{const n="horizontal"===pt?"width":"height";t.push(X.getDerivedFromVars(e.json[n]))})),r(14,dt=he(t,(t=>t))),z(),z=h(dt,(t=>r(55,C=t)))}if(64&t.$$.dirty[0]|16843264&t.$$.dirty[1]&&(r(47,vt=[]),ht>1?vt.push("auto"):C.forEach((t=>{!t&&"horizontal"===pt||"match_parent"===(null==t?void 0:t.type)?vt.push("100%"):vt.push("max-content")}))),456&t.$$.dirty[0]|8394240&t.$$.dirty[1]){const t={};let e={};r(48,$t=!1),(null==Y?void 0:Y.fakeElement)&&(e.fakeElement=!0),"horizontal"===pt?e.parentVAlign=ft:e.parentHAlign=ft,"paging"===A&&(r(48,$t=!0),e.scrollSnap="start",t["horizontal"===pt?"scroll-padding-left":"scroll-padding-top"]=$e(gt/2)),1===ht&&(e.parentLayoutOrientation=pt),r(7,yt=qe(t,yt)),r(8,wt=qe(e,wt))}40960&t.$$.dirty[1]&&r(17,_={padding:mt,"grid-gap":ct}),591872&t.$$.dirty[1]&&r(16,w={"grid-gap":lt,[b]:ii(vt)}),64&t.$$.dirty[0]|4325376&t.$$.dirty[1]&&r(15,x={orientation:pt,"scroll-snap":$t,scrollbar:"auto"===E?"auto":"none"}),2359296&t.$$.dirty[1]&&r(49,kt=Ue(k,kt)),1&t.$$.dirty[0]&&q&&Vt(),89&t.$$.dirty[0]|256&t.$$.dirty[1]&&q&&(st&&(X.unregisterInstance(st),r(39,st=void 0)),q.id&&!(null==Y?void 0:Y.fakeElement)&&(r(39,st=q.id),X.registerInstance(q.id,{setCurrentItem(t){const e=jt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Pt(e,t)},setPreviousItem(t){const e=Ft("prev"),n=jt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),Pt(n,r)},setNextItem(t){const e="horizontal"===pt?Z.scrollLeft+Z.offsetWidth===Z.scrollWidth:Z.scrollTop+Z.offsetHeight===Z.scrollHeight,n=jt();if(e&&"ring"===t)return void Pt(n,0);const r=Ft("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),Pt(n,i)}})))},[q,G,K,Y,Z,Q,pt,yt,wt,y,i,tt,et,nt,dt,x,w,_,$,m,g,f,d,u,c,l,s,a,o,N,ot,at,function(t){r(0,q=Object.assign(Object.assign({},q),{items:t.filter(Ee)}))},Et,Ct,Vt,Dt,rt,it,st,ht,ft,lt,gt,ct,ut,mt,vt,$t,kt,b,v,k,E,A,C,V,D,j,P,F,S,I,function(t,e){At[t?"unshift":"push"]((()=>{tt[e]=t,r(11,tt)}))},function(t){At[t?"unshift":"push"]((()=>{Q=t,r(5,Q)}))},function(t){At[t?"unshift":"push"]((()=>{Z=t,r(4,Z)}))},()=>Dt("left"),()=>Dt("right")]}const vi={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"},yi=37,$i=39,bi=36,_i=35,{Boolean:wi}=C;function xi(t,e,n){const r=t.slice();r[91]=e[n];const i=r[91].index;return r[92]=i,r}function ki(t,e,n){const r=t.slice();r[91]=e[n];const i=r[91].index;r[92]=i;const o=r[92]===r[17];return r[95]=o,r}function Ei(t){let e,n;return e=new Dn({props:{cls:Me("tabs",vi,t[47]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",parentOf:t[43],parentOfSimpleMode:!0,replaceItems:t[48],$$slots:{default:[Pi]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(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]),4096&n[1]&&(r.parentOf=t[43]),2147483626&n[0]|8199&n[1]|32&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Ai(t){let e,n,r=t[91].title+"";return{c(){e=R(r),n=L()},l(t){e=rt(t,r),n=it(t)},m(t,r){T(t,e,r),T(t,n,r)},p(t,n){524288&n[0]&&r!==(r=t[91].title+"")&&at(e,r)},d(t){t&&(M(e),M(n))}}}function Ci(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[68](t[92],...n)}return i=new sn({props:{cls:Me("tabs__item",vi,{selected:t[95],actionable:Boolean(t[91].title_click_action)}),actions:!t[91].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[91].title_click_action],attrs:{id:"".concat(t[45],"-tab-").concat(t[92]),"aria-controls":"".concat(t[45],"-panel-").concat(t[92]),role:"tab",tabindex:!t[95]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[91].title_click_action?void 0:"0","aria-selected":t[95]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Ai]},$$scope:{ctx:t}}}),{c(){re(i.$$.fragment)},l(t){ie(i.$$.fragment,t)},m(t,e){oe(i,t,e),o=!0},p(e,n){var r,o,s;t=e;const l={};655360&n[0]&&(l.cls=Me("tabs__item",vi,{selected:t[95],actionable:Boolean(t[91].title_click_action)})),524296&n[0]&&(l.actions=!t[91].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[91].title_click_action]),655368&n[0]&&(l.attrs={id:"".concat(t[45],"-tab-").concat(t[92]),"aria-controls":"".concat(t[45],"-panel-").concat(t[92]),role:"tab",tabindex:!t[95]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[91].title_click_action?void 0:"0","aria-selected":t[95]?"true":"false"}),524296&n[0]&&(l.customAction=null!==(s=t[3])&&void 0!==s&&s.fakeElement?null:a),524288&n[0]|32&n[3]&&(l.$$scope={dirty:n,ctx:t}),i.$set(l)},i(t){o||(Wt(i.$$.fragment,t),o=!0)},o(t){Ht(i.$$.fragment,t),o=!1},d(t){ae(i,t)}}}function Vi(t){let e,n,r;return{c(){e=B("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=vi.tabs__separator),H(e,"style",r=ye(t[33]))},m(t,n){T(t,e,n)},p(t,n){4&n[1]&&r!==(r=ye(t[33]))&&H(e,"style",r)},d(t){t&&M(e)}}}function Di(t){let e,n;return e=new bs({props:{div:t[18][t[92]].div,templateContext:t[1],layoutParams:t[5]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};786432&n[0]&&(r.div=t[18][t[92]].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function ji(t){let e,n,r,i,o,a,s=t[30][t[92]]&&Di(t);return{c(){e=B("div"),s&&s.c(),n=L(),this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=X(e);s&&s.l(r),n=it(r),r.forEach(M),this.h()},h(){H(e,"class",r=Me("tabs__panel",vi,{visible:t[31][t[92]]})),H(e,"role","tabpanel"),H(e,"id",i=t[45]+"-panel-"+t[92]),H(e,"aria-labelledby",o=t[45]+"-tab-"+t[92]),lt(e,"left",100*t[92]+"%")},m(t,r){T(t,e,r),s&&s.m(e,null),N(e,n),a=!0},p(t,l){t[30][t[92]]?s?(s.p(t,l),1074266112&l[0]&&Wt(s,1)):(s=Di(t),s.c(),Wt(s,1),s.m(e,n)):s&&(Lt(),Ht(s,1,1,(()=>{s=null})),Ut()),(!a||524288&l[0]|1&l[1]&&r!==(r=Me("tabs__panel",vi,{visible:t[31][t[92]]})))&&H(e,"class",r),(!a||524288&l[0]&&i!==(i=t[45]+"-panel-"+t[92]))&&H(e,"id",i),(!a||524288&l[0]&&o!==(o=t[45]+"-tab-"+t[92]))&&H(e,"aria-labelledby",o),(!a||524288&l[0])&&lt(e,"left",100*t[92]+"%")},i(t){a||(Wt(s),a=!0)},o(t){Ht(s),a=!1},d(t){t&&M(e),s&&s.d()}}}function Pi(t){let e,n,r,i,o,a,c,u,d,h,p,f=Kt(t[19]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Ci(ki(t,f,e));const m=t=>Ht(g[t],1,1,(()=>{g[t]=null}));let v=t[20]&&Vi(t),y=Kt(t[19]),$=[];for(let e=0;e<y.length;e+=1)$[e]=ji(xi(t,y,e));const b=t=>Ht($[t],1,1,(()=>{$[t]=null}));return{c(){e=B("div");for(let t=0;t<g.length;t+=1)g[t].c();r=L(),v&&v.c(),i=L(),o=B("div"),a=B("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0});var n=X(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(M),r=it(t),v&&v.l(t),i=it(t),o=et(t,"DIV",{class:!0});var s=X(o);a=et(s,"DIV",{class:!0});var l=X(a);for(let t=0;t<$.length;t+=1)$[t].l(l);l.forEach(M),s.forEach(M),this.h()},h(){H(e,"class",n=vi.tabs__list+" "+(t[44]?pe["root_restrict-scroll"]:"")),H(e,"role","tablist"),lt(e,"--divkit-tabs-title-padding",t[16]?Be(t[16]):""),lt(e,"--divkit-tabs-font-size",$e(t[6])),lt(e,"--divkit-tabs-paddings",t[7]),lt(e,"--divkit-tabs-line-height",t[24]),lt(e,"--divkit-tabs-letter-spacing",t[25]),lt(e,"--divkit-tabs-active-font-weight",t[9]||""),lt(e,"--divkit-tabs-inactive-font-weight",t[10]||""),lt(e,"--divkit-tabs-active-font-family",t[26]||""),lt(e,"--divkit-tabs-inactive-font-family",t[27]||""),lt(e,"--divkit-tabs-active-text-color",t[11]),lt(e,"--divkit-tabs-inactive-text-color",t[12]),lt(e,"--divkit-tabs-active-background-color",t[13]),lt(e,"--divkit-tabs-inactive-background-color",t[14]),lt(e,"--divkit-tabs-border-radius",t[8]),lt(e,"--divkit-tabs-items-spacing",t[15]?be(t[15]):""),H(a,"class",c=Me("tabs__swiper",vi,{inited:t[28],animated:t[29]})),H(o,"class",u=vi.tabs__panels+" "+(t[44]?pe["root_restrict-scroll"]:""))},m(n,s){T(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[69](e),T(n,r,s),v&&v.m(n,s),T(n,i,s),T(n,o,s),N(o,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[70](a),t[71](o),d=!0,h||(p=[W(e,"keydown",t[50]),W(a,"touchstart",(function(){l(t[32]?t[51]:void 0)&&(t[32]?t[51]:void 0).apply(this,arguments)})),W(a,"touchmove",(function(){l(t[32]?t[52]:void 0)&&(t[32]?t[52]:void 0).apply(this,arguments)})),W(a,"touchend",(function(){l(t[32]?t[53]:void 0)&&(t[32]?t[53]:void 0).apply(this,arguments)})),W(a,"touchcancel",(function(){l(t[32]?t[53]:void 0)&&(t[32]?t[53]:void 0).apply(this,arguments)}))],h=!0)},p(r,s){if(t=r,655368&s[0]|278528&s[1]){let n;for(f=Kt(t[19]),n=0;n<f.length;n+=1){const r=ki(t,f,n);g[n]?(g[n].p(r,s),Wt(g[n],1)):(g[n]=Ci(r),g[n].c(),Wt(g[n],1),g[n].m(e,null))}for(Lt(),n=f.length;n<g.length;n+=1)m(n);Ut()}if((!d||8192&s[1]&&n!==(n=vi.tabs__list+" "+(t[44]?pe["root_restrict-scroll"]:"")))&&H(e,"class",n),65536&s[0]&&lt(e,"--divkit-tabs-title-padding",t[16]?Be(t[16]):""),64&s[0]&&lt(e,"--divkit-tabs-font-size",$e(t[6])),128&s[0]&&lt(e,"--divkit-tabs-paddings",t[7]),16777216&s[0]&&lt(e,"--divkit-tabs-line-height",t[24]),33554432&s[0]&&lt(e,"--divkit-tabs-letter-spacing",t[25]),512&s[0]&&lt(e,"--divkit-tabs-active-font-weight",t[9]||""),1024&s[0]&&lt(e,"--divkit-tabs-inactive-font-weight",t[10]||""),67108864&s[0]&&lt(e,"--divkit-tabs-active-font-family",t[26]||""),134217728&s[0]&&lt(e,"--divkit-tabs-inactive-font-family",t[27]||""),2048&s[0]&&lt(e,"--divkit-tabs-active-text-color",t[11]),4096&s[0]&&lt(e,"--divkit-tabs-inactive-text-color",t[12]),8192&s[0]&&lt(e,"--divkit-tabs-active-background-color",t[13]),16384&s[0]&&lt(e,"--divkit-tabs-inactive-background-color",t[14]),256&s[0]&&lt(e,"--divkit-tabs-border-radius",t[8]),32768&s[0]&&lt(e,"--divkit-tabs-items-spacing",t[15]?be(t[15]):""),t[20]?v?v.p(t,s):(v=Vi(t),v.c(),v.m(i.parentNode,i)):v&&(v.d(1),v=null),1074528290&s[0]|16385&s[1]){let e;for(y=Kt(t[19]),e=0;e<y.length;e+=1){const n=xi(t,y,e);$[e]?($[e].p(n,s),Wt($[e],1)):($[e]=ji(n),$[e].c(),Wt($[e],1),$[e].m(a,null))}for(Lt(),e=y.length;e<$.length;e+=1)b(e);Ut()}(!d||805306368&s[0]&&c!==(c=Me("tabs__swiper",vi,{inited:t[28],animated:t[29]})))&&H(a,"class",c),(!d||8192&s[1]&&u!==(u=vi.tabs__panels+" "+(t[44]?pe["root_restrict-scroll"]:"")))&&H(o,"class",u)},i(t){if(!d){for(let t=0;t<f.length;t+=1)Wt(g[t]);for(let t=0;t<y.length;t+=1)Wt($[t]);d=!0}},o(t){g=g.filter(wi);for(let t=0;t<g.length;t+=1)Ht(g[t]);$=$.filter(wi);for(let t=0;t<$.length;t+=1)Ht($[t]);d=!1},d(n){n&&(M(e),M(r),M(i),M(o)),z(g,n),t[69](null),v&&v.d(n),z($,n),t[70](null),t[71](null),h=!1,s(p)}}}function Fi(t){let e,n,r=!t[4]&&Ei(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[4]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),16&n[0]&&Wt(r,1)):(r=Ei(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Si(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F=n,S=n,I=n,N=n,O=n,T=n,M=n,z=n,B=n;var J,R;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>B()));let{json:L={}}=e,{templateContext:U}=e,{origJson:W}=e,{layoutParams:H}=e;const q=xt(fe),G=q.genId("tabs");let K,Y=!1,X=de([]);p(t,X,(t=>r(19,w=t)));let Z,Q,tt,et,nt,rt,it,ot,at,st={},lt=12,ct="",ut="",dt="",ht="",pt="",ft="",gt="",mt="",vt="",yt="",$t=0,bt="",wt="",kt=null,Et=!1,Ct=!1,Vt=[],Dt=[],jt=null,Pt=null,St=null,It=!1,Nt=!1;async function Ot(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(rt=y,r(17,y=t),Rt(),r(29,Ct=!0),zt(100*-y),Bt(),async function(){await Ft();const t=document.getElementById("".concat(G,"-panel-").concat(y));t&&r(22,Q.style.height=$e(t.offsetHeight),Q)}(),Jt(),at=-y*Q.clientWidth,e){await Ft();const t=Z.querySelector(".".concat(vi.tabs__item_selected));t&&t.focus()}}function Tt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==w?void 0:w.length;if(!n)return;const r=w.map((t=>t.index));let i=r.indexOf(y)+t;i>=n?i=0:i<0&&(i=n-1),Ot(r[i],e)}function Mt(t,e){return y===e||(Ot(e),!1)}async function zt(t){await Ft(),r(23,tt.style.transform="translate3d(".concat(t,"%,0,0)"),tt)}function Bt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,y-1):Math.min(y,null!=rt?rt:y),n=t?Math.min(i.length-1,y+1):Math.max(y,null!=rt?rt:y);r(30,Vt=Vt.map(((t,r)=>t||r>=e&&r<=n))),r(31,Dt=Dt.map(((t,r)=>r>=e&&r<=n)))}function Jt(){jt&&clearTimeout(jt),jt=window.setTimeout((()=>{r(31,Dt=i.map(((t,e)=>e===y)))}),400)}function Rt(){Et||(r(28,Et=!0),r(22,Q.style.height=$e(Q.clientHeight),Q),r(23,tt.style.transform="translate3d(".concat(100*-(null!=rt?rt:y),"%,0,0)"),tt))}return _t((()=>{K&&(q.unregisterInstance(K),r(56,K=void 0))})),t.$$set=t=>{"json"in t&&r(0,L=t.json),"templateContext"in t&&r(1,U=t.templateContext),"origJson"in t&&r(2,W=t.origJson),"layoutParams"in t&&r(3,H=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&L&&(r(6,lt=12),r(7,ct=""),r(8,ht=""),r(9,et=void 0),r(26,pt=""),r(10,nt=void 0),r(27,ft=""),r(11,gt=""),r(12,mt=""),r(13,vt=""),r(14,yt=""),r(15,$t=0),r(57,bt=""),r(58,wt=""),r(16,kt=null)),1&t.$$.dirty[0]&&r(18,i=L.items||[]),262144&t.$$.dirty[0]&&r(43,o=i.map((t=>t.div))),1&t.$$.dirty[0]&&(r(42,a=q.getDerivedFromVars(L.width)),z(),z=h(a,(t=>r(67,j=t)))),1&t.$$.dirty[0]&&(r(41,s=q.getDerivedFromVars(L.height)),M(),M=h(s,(t=>r(66,D=t)))),1&t.$$.dirty[0]&&r(60,l=q.getJsonWithVars(L.selected_tab)),1&t.$$.dirty[0]&&(r(40,c=q.getDerivedFromVars(L.tab_title_style)),T(),T=h(c,(t=>r(65,V=t)))),1&t.$$.dirty[0]&&(r(39,u=q.getDerivedFromVars(L.has_separator)),O(),O=h(u,(t=>r(20,C=t)))),1&t.$$.dirty[0]&&(r(38,d=q.getDerivedFromVars(L.separator_color)),N(),N=h(d,(t=>r(64,A=t)))),1&t.$$.dirty[0]&&(r(37,f=q.getDerivedFromVars(L.separator_paddings)),I(),I=h(f,(t=>r(63,E=t)))),1&t.$$.dirty[0]&&(r(36,g=q.getDerivedFromVars(L.switch_tabs_by_content_swipe_enabled)),S(),S=h(g,(t=>r(62,k=t)))),1&t.$$.dirty[0]&&(r(35,m=q.getDerivedFromVars(L.restrict_parent_scroll)),B(),B=h(m,(t=>r(44,P=t)))),1&t.$$.dirty[0]&&(r(34,v=q.getDerivedFromVars(L.title_paddings)),F(),F=h(v,(t=>r(61,x=t)))),536870912&t.$$.dirty[1]&&r(17,y=l&&Number(l)||0),262144&t.$$.dirty[0])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=q.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):q.logError(ge(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),X.set(t)}else X.set([]);if(524288&t.$$.dirty[0]&&((null==w?void 0:w.length)?r(4,Y=!1):(r(4,Y=!0),q.logError(ge(new Error('Incorrect or empty "items" prop for div "tabs"'))))),40&t.$$.dirty[0]|48&t.$$.dirty[2]){let t={};(null==H?void 0:H.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==j?void 0:j.type)&&(t.parentHorizontalWrapContent=!0),D&&"wrap_content"!==D.type||(t.parentVerticalWrapContent=!0),r(5,st=qe(t,st))}if(393233&t.$$.dirty[0]&&!Y&&(y<0||y>=i.length)&&(q.logError(ge(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:L.selected_tab,length:i.length}})),r(17,y=y<0?0:i.length-1)),655377&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&(Y||w.some((t=>y===t.index))||(q.logError(ge(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:L.selected_tab}})),r(17,y=(null===r(54,J=w[0])||void 0===J?void 0:J.index)||0))),8&t.$$.dirty[2]&&r(59,$=V||{}),64&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(6,lt=Pn($.font_size,lt)),192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&($.font_size||$.paddings)){const t=$.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/lt*10,right:(Number(t.right)||0)/lt*10,bottom:(Number(t.bottom)||0)/lt*10,left:(Number(t.left)||0)/lt*10};r(7,ct=Le(e,ct))}if(64&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=$.line_height;void 0!==t&&cn(t)&&r(24,ut=$e(t/lt*10))}if(64&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=$.letter_spacing;void 0!==t&&Re(t)&&r(25,dt=$e(t/lt*10))}if(320&t.$$.dirty[0]|285212672&t.$$.dirty[1]&&($.corner_radius||$.corners_radius||$.font_size)){const t=null!==r(55,R=$.corner_radius)&&void 0!==R?R:1e3;$.corners_radius?r(8,ht=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]&&!Re(i[t]))return r;return Ze(t,e,n)}($.corners_radius,t,lt,ht)):Re(t)&&r(8,ht=$e(t/lt*10))}512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(9,et=Sn($.active_font_weight||$.font_weight,et)),$.font_family&&"string"==typeof $.font_family?r(26,pt=q.typefaceProvider($.font_family,{fontWeight:et||400})):r(26,pt="")),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(10,nt=Sn($.inactive_font_weight||$.font_weight,nt)),$.font_family&&"string"==typeof $.font_family?r(27,ft=q.typefaceProvider($.font_family,{fontWeight:nt||400})):r(27,ft="")),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,gt=we($.active_text_color,1,gt)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(12,mt=we($.inactive_text_color,1,mt)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(13,vt=we($.active_background_color,1,vt)),16384&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(14,yt=we($.inactive_background_color,1,yt)),32768&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(15,$t=Ue($.item_spacing,$t)),1048576&t.$$.dirty[0]|201326592&t.$$.dirty[1]|6&t.$$.dirty[2]&&C&&(A&&r(57,bt=we(A,1,bt)),E&&r(58,wt=Le(E,wt))),201326592&t.$$.dirty[1]&&r(33,b={background:bt,margin:wt}),1&t.$$.dirty[2]&&r(32,_=void 0===k||Boolean(k)),65536&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(16,kt=Xe(x||void 0,kt)),262144&t.$$.dirty[0]&&(Y||(r(30,Vt=i.map(((t,e)=>e===y))),r(31,Dt=i.map(((t,e)=>e===y))))),393241&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&L&&(K&&(q.unregisterInstance(K),r(56,K=void 0)),!L.id||Y||(null==H?void 0:H.fakeElement)||(r(56,K=L.id),q.registerInstance(L.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Ot(t)},setPreviousItem(t){let e=y-1;e<0&&(e="ring"===t?i.length-1:y),Ot(e)},setNextItem(t){let e=y+1;e>i.length-1&&(e="ring"===t?0:y),Ot(e)}})))},[L,U,W,H,Y,st,lt,ct,ht,et,nt,gt,mt,vt,yt,$t,kt,y,i,w,C,Z,Q,tt,ut,dt,pt,ft,Et,Ct,Vt,Dt,_,b,v,m,g,f,d,u,c,s,a,o,P,G,X,{},function(t){L.items&&r(0,L=Object.assign(Object.assign({},L),{items:L.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))}))},Mt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(t.which===yi)Tt(-1,!0);else if(t.which===$i)Tt(1,!0);else if(t.which===bi)Ot(0,!0);else{if(t.which!==_i)return;Ot(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(pe["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==Q||(It=!1,Nt=!1,Pt=en(t),St=null,it=Date.now(),ot=at||-y*Q.clientWidth,r(29,Ct=!1),jt&&clearTimeout(jt))},function(t){const e=en(t);if(!Pt||St&&St.x===e.x&&St.y===e.y)return;St=e;const n=Q.clientWidth;if(It){at=e.x-Pt.x+ot;const t=n*i.length;if(at>0)at=at*n/(at+3*n);else if(-at+n>t){let e=-at+n-t;e=e*n/(e+3*n),at=n-t-e}zt(100*at/n)}else Math.abs(e.y-Pt.y)>10?Nt=!0:!Nt&&Math.abs(e.x-Pt.x)>8&&(Rt(),It=!0,Pt=e,zt(100*-y),Bt(!0));It&&t.cancelable&&t.preventDefault()},function(){Nt=!1,Pt=null;let t=y;if(!It)return;It=!1;const e=Math.min(512,Q.clientWidth);Math.abs(ot-at)>e/4*Math.min(1,(Date.now()-it)/750)&&(t+=ot>at?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===y?(at=-t*e,zt(100*-t),Jt()):Ot(t)},J,R,K,bt,wt,$,l,x,k,E,A,V,D,j,(t,e)=>Mt(0,t),function(t){At[t?"unshift":"push"]((()=>{Z=t,r(21,Z)}))},function(t){At[t?"unshift":"push"]((()=>{tt=t,r(23,tt)}))},function(t){At[t?"unshift":"push"]((()=>{Q=t,r(22,Q)}))}]}const Ii={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Ni(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Oi(t){return t*t*t}function Ti(t){const e=t-1;return e*e*e+1}function Mi(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 zi=Mi([.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]),Bi=Mi([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]),Ji={linear:r,ease:zi,ease_in:Oi,ease_out:Ti,ease_in_out:Ni,spring:Bi},Ri=200,Li=0,Ui=0,Wi=0;function Hi(t){return Math.max(...t.map((t=>(Number(t.duration)||Ri)+(Number(t.start_delay)||Li))))}function qi(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)||Li,a=Number(t.duration)||Ri,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-s:s,u=(Ji[t.interpolator||"ease_in_out"]||Ni)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Ui)};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,p;const e=1-u+u*(t.scale||Wi),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(p=t.pivot_y)&&void 0!==p?p:.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)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function Gi(t,e,n){return t*(1-n)+e*n}const Ki={linear:r,ease:zi,ease_in:Oi,ease_out:Ti,ease_in_out:Ni,spring:Bi},Yi=200,Xi=0;function Zi(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:Xi,duration:null!==(r=s.duration)&&void 0!==r?r:Yi,easing:s.interpolator&&s.interpolator in Ki?Ki[s.interpolator]:Ni,css:t=>["top:".concat(Gi(o.top,a.top,t)-i.top,"px"),"left:".concat(Gi(o.left,a.left,t)-i.left,"px"),"width:".concat(Gi(o.width,a.width,t),"px"),"height:".concat(Gi(o.height,a.height,t),"px")].join(";")}}function Qi(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Qi(t))})):e.push(t),e}const to={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},eo={linear:r,ease:zi,ease_in:Oi,ease_out:Ti,ease_in_out:Ni,spring:Bi},no=300,ro=0;function io(t,e){let{animations:n,direction:r}=e;if(!n)return{};const i=Ye(n),o=(a=i,Math.max(...a.map((t=>(Number(t.duration)||no)+(Number(t.start_delay)||ro)))));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)||ro,i=Number(t.duration)||no,o=Math.max(0,Math.min(1,(e-n)/i)),a=(eo[t.interpolator||"ease_in_out"]||Ni)(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:oo}=C;function ao(t){let e,i,o,a,c,u,d,h;return i=new bs({props:{div:t[0].div,templateContext:t[1]}}),{c(){e=B("div"),re(i.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);ie(i.$$.fragment,n),n.forEach(M),this.h()},h(){H(e,"class",o=Me("tooltip",to,t[7])+" "+(t[13]?pe.root_platform_desktop:"")),lt(e,"top",t[4]),lt(e,"left",t[3]),lt(e,"width",t[5]),lt(e,"height",t[6])},m(n,r){T(n,e,r),oe(i,e,null),t[26](e),u=!0,d||(h=[W(oo,"click",t[17]),W(oo,"resize",t[18])],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||8320&r[0]&&o!==(o=Me("tooltip",to,t[7])+" "+(t[13]?pe.root_platform_desktop:"")))&&H(e,"class",o),16&r[0]&&lt(e,"top",t[4]),8&r[0]&&lt(e,"left",t[3]),32&r[0]&&lt(e,"width",t[5]),64&r[0]&&lt(e,"height",t[6])},i(n){u||(Wt(i.$$.fragment,n),n&&St((()=>{u&&(c&&c.end(1),a=Gt(e,io,{animations:t[14]||so,direction:"in"}),a.start())})),u=!0)},o(o){Ht(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=Rt;let h;function p(){const{delay:e=0,duration:i=300,easing:o=r,tick:l=n,css:p}=c||qt;p&&(a=mt(t,1,0,i,e,o,p));const f=w()+e,g=f+i;St((()=>Bt(t,!1,"start"))),"inert"in t&&(h=t.inert,t.inert=!0),A((e=>{if(u){if(e>=g)return l(0,1),Bt(t,!1,"end"),--d.r||s(d.c),!1;if(e>=f){const t=o((e-f)/i);l(1-t,t)}}return u}))}return d.r+=1,l(c)?zt().then((()=>{c=c(o),p()})):p(),{end(e){e&&"inert"in t&&(t.inert=h),e&&c.tick&&c.tick(1,0),u&&(a&&vt(t,a),u=!1)}}}(e,io,{animations:t[15]||so,direction:"out"})),u=!1},d(n){n&&M(e),ae(i),t[26](null),n&&c&&c.end(),d=!1,s(h)}}}const so={name:"set",items:[{name:"translate"},{name:"fade"}]};function lo(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y=n,$=n,b=n,_=n,w=n;var x,k,E,A;t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w()));let{ownerNode:C}=e,{data:V}=e,{internalId:D}=e,{templateContext:j}=e;const P=xt(fe),F=P.isDesktop;p(t,F,(t=>r(13,g=t)));const S=Date.now();let I,N=!1,O="",T="",M="",z="",B=null;function J(){var t,e;if(!I||!C)return;const n=I.parentElement;if(!n)return;const i=I.style.cssText;r(2,I.style.cssText+=";transform: none !important",I);const o=C.getBoundingClientRect(),a=I.getBoundingClientRect(),s=n.getBoundingClientRect();r(2,I.style.cssText=i,I);let l=0,c=0,h=null,p=null,g=0,m=0;const v=P.getJsonWithVars(null===(t=V.div)||void 0===t?void 0:t.width),y=P.getJsonWithVars(null===(e=V.div)||void 0===e?void 0:e.width);if(g=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?h=v.value:a.width:h=o.width,m="match_parent"===(null==y?void 0:y.type)?p=o.height:"fixed"===(null==y?void 0:y.type)&&y.value?p=y.value:a.height,"left"===f||"bottom-left"===f||"top-left"===f)l=o.left-g;else if("top"===f||"bottom"===f||"center"===f)l=(o.left+o.right)/2-g/2;else{if("right"!==f&&"bottom-right"!==f&&"top-right"!==f)return;l=o.right}if("top"===f||"top-left"===f||"top-right"===f)c=o.top-m;else if("left"===f||"right"===f||"center"===f)c=(o.top+o.bottom)/2-m/2;else{if("bottom-left"!==f&&"bottom"!==f&&"bottom-right"!==f)return;c=o.bottom}l-=s.left,c-=s.top,l+=d||0,c+=u||0,r(3,O="".concat(l,"px")),r(4,T="".concat(c,"px")),r(5,M=null!==h?"".concat(h,"px"):""),r(6,z=null!==p?"".concat(p,"px"):""),r(25,N=!0),null===h||null===p?"undefined"==typeof ResizeObserver||B||(B=new ResizeObserver((()=>{requestAnimationFrame(J)})),B.observe(I)):null==B||B.disconnect()}var R;return bt((()=>{if(P.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),P.tooltipRoot.appendChild(I)}})),R=()=>{N||J()},$t().$$.after_update.push(R),_t((()=>{null==B||B.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(19,C=t.ownerNode),"data"in t&&r(0,V=t.data),"internalId"in t&&r(20,D=t.internalId),"templateContext"in t&&r(1,j=t.templateContext)},t.$$.update=()=>{1&t.$$.dirty[0]&&(r(12,i=P.getDerivedFromVars(V.position)),b(),b=h(i,(t=>r(30,f=t)))),6291457&t.$$.dirty[0]&&(r(11,o=P.getDerivedFromVars(null===r(22,k=null===r(21,x=V.offset)||void 0===x?void 0:x.x)||void 0===k?void 0:k.value)),$(),$=h(o,(t=>r(29,d=t)))),25165825&t.$$.dirty[0]&&(r(10,a=P.getDerivedFromVars(null===r(24,A=null===r(23,E=V.offset)||void 0===E?void 0:E.y)||void 0===A?void 0:A.value)),y(),y=h(a,(t=>r(28,u=t)))),1&t.$$.dirty[0]&&(r(9,s=P.getDerivedFromVars(V.animation_in)),_(),_=h(s,(t=>r(14,m=t)))),1&t.$$.dirty[0]&&(r(8,l=P.getDerivedFromVars(V.animation_out)),w(),w=h(l,(t=>r(15,v=t)))),33554432&t.$$.dirty[0]&&r(7,c={visible:N})},[V,j,I,O,T,M,z,c,l,s,a,o,i,g,m,v,F,function(t){Date.now()-S<100||t.composedPath().includes(I)||P.onTooltipClose(D)},function(){J()},C,D,x,k,E,A,N,function(t){At[t?"unshift":"push"]((()=>{I=t,r(2,I)}))}]}const co=class extends ce{constructor(t){super(),se(this,t,lo,ao,d,{ownerNode:19,data:0,internalId:20,templateContext:1},null,[-1,-1])}},{Map:uo}=C;function ho(t,e,n){const r=t.slice();return r[34]=e[n],r}function po(t,e,n){const r=t.slice();return r[34]=e[n],r}function fo(t){var e;let n,r,i,o;n=new Dn({props:{cls:Ii.state,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],parentOf:t[9],parentOfSimpleMode:!0,replaceItems:t[10],$$slots:{default:[bo]},$$scope:{ctx:t}}});let a=(null===(e=t[3])||void 0===e?void 0:e.tooltips)&&_o(t);return{c(){re(n.$$.fragment),r=L(),a&&a.c(),i=U()},l(t){ie(n.$$.fragment,t),r=it(t),a&&a.l(t),i=U()},m(t,e){oe(n,t,e),T(t,r,e),a&&a.m(t,e),T(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]),512&e[0]&&(o.parentOf=t[9]),482&e[0]|256&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]&&Wt(a,1)):(a=_o(t),a.c(),Wt(a,1),a.m(i.parentNode,i)):a&&(Lt(),Ht(a,1,1,(()=>{a=null})),Ut())},i(t){o||(Wt(n.$$.fragment,t),Wt(a),o=!0)},o(t){Ht(n.$$.fragment,t),Ht(a),o=!1},d(t){t&&(M(r),M(i)),ae(n,t),a&&a.d(t)}}}function go(t){let e,r,i=t[7],o=mo(t);return{c(){o.c(),e=U()},l(t){o.l(t),e=U()},m(t,n){o.m(t,n),T(t,e,n),r=!0},p(t,r){128&r[0]&&d(i,i=t[7])?(Lt(),Ht(o,1,1,n),Ut(),o=mo(t),o.c(),Wt(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Wt(o),r=!0)},o(t){Ht(o),r=!1},d(t){t&&M(e),o.d(t)}}}function mo(t){let e,n;return e=new bs({props:{div:t[8].div,templateContext:t[1]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.div=t[8].div),2&n[0]&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function vo(t){let e,n,r,i,o,a,s,l,c,u;function d(){return t[18](t[34])}return r=new bs({props:{div:t[34].json,templateContext:t[34].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=B("div"),n=B("div"),re(r.$$.fragment),o=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=X(e);n=et(i,"DIV",{class:!0});var a=X(n);ie(r.$$.fragment,a),a.forEach(M),o=it(i),i.forEach(M),this.h()},h(){H(n,"class",i=Ii["state__animation-child-inner"]),H(e,"class",a=Ii["state__animation-child"])},m(t,i){T(t,e,i),N(e,n),oe(r,n,null),N(e,o),l=!0,c||(u=W(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n[0]&&(i.div=t[34].json),64&n[0]&&(i.templateContext=t[34].templateContext),r.$set(i)},i(n){l||(Wt(r.$$.fragment,n),s||St((()=>{s=Gt(e,Zi,t[34]),s.start()})),l=!0)},o(t){Ht(r.$$.fragment,t),l=!1},d(t){t&&M(e),ae(r),c=!1,u()}}}function yo(t){let e,n,r,i,o,a,s,l,c,u,d="".concat(t[34].offsetLeft,"px"),h="".concat(t[34].offsetTop,"px"),p="".concat(t[34].width,"px"),f="".concat(t[34].height,"px");function g(){return t[17](t[34])}return r=new bs({props:{div:t[34].json,templateContext:t[34].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=B("div"),n=B("div"),re(r.$$.fragment),o=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=X(e);n=et(i,"DIV",{class:!0});var a=X(n);ie(r.$$.fragment,a),a.forEach(M),o=it(i),i.forEach(M),this.h()},h(){H(n,"class",i=Ii["state__animation-child-inner"]),H(e,"class",a=Ii["state__animation-child"]),lt(e,"left",d),lt(e,"top",h),lt(e,"width",p),lt(e,"height",f)},m(t,i){T(t,e,i),N(e,n),oe(r,n,null),N(e,o),l=!0,c||(u=W(e,"introend",g),c=!0)},p(n,i){t=n;const o={};64&i[0]&&(o.div=t[34].json),64&i[0]&&(o.templateContext=t[34].templateContext),r.$set(o),64&i[0]&&d!==(d="".concat(t[34].offsetLeft,"px"))&&lt(e,"left",d),64&i[0]&&h!==(h="".concat(t[34].offsetTop,"px"))&&lt(e,"top",h),64&i[0]&&p!==(p="".concat(t[34].width,"px"))&&lt(e,"width",p),64&i[0]&&f!==(f="".concat(t[34].height,"px"))&&lt(e,"height",f)},i(n){l||(Wt(r.$$.fragment,n),s||St((()=>{s=Gt(e,qi,t[34]),s.start()})),l=!0)},o(t){Ht(r.$$.fragment,t),l=!1},d(t){t&&M(e),ae(r),c=!1,u()}}}function $o(t,e){let n,r,i,o,a;const s=[yo,vo],l=[];function c(t,e){return"direction"in t[34]?0:1}return r=c(e),i=l[r]=s[r](e),{key:t,first:null,c(){n=U(),i.c(),o=U(),this.h()},l(t){n=U(),i.l(t),o=U(),this.h()},h(){this.first=n},m(t,e){T(t,n,e),l[r].m(t,e),T(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(Lt(),Ht(l[a],1,1,(()=>{l[a]=null})),Ut(),i=l[r],i?i.p(e,n):(i=l[r]=s[r](e),i.c()),Wt(i,1),i.m(o.parentNode,o))},i(t){a||(Wt(i),a=!0)},o(t){Ht(i),a=!1},d(t){t&&(M(n),M(o)),l[r].d(t)}}}function bo(t){var e;let n,r,i,o,a=[],s=new uo,l=(null===(e=t[8])||void 0===e?void 0:e.div)&&go(t),c=Kt(t[6]);const u=t=>t[34];for(let e=0;e<c.length;e+=1){let n=po(t,c,e),r=u(n);s.set(r,a[e]=$o(r,n))}return{c(){l&&l.c(),n=L(),r=B("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){l&&l.l(t),n=it(t),r=et(t,"DIV",{class:!0,"aria-hidden":!0});var e=X(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(M),this.h()},h(){H(r,"class",i=Ii.state__animations),H(r,"aria-hidden","true")},m(e,i){l&&l.m(e,i),T(e,n,i),T(e,r,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(r,null);t[19](r),o=!0},p(t,e){var i;null!==(i=t[8])&&void 0!==i&&i.div?l?(l.p(t,e),256&e[0]&&Wt(l,1)):(l=go(t),l.c(),Wt(l,1),l.m(n.parentNode,n)):l&&(Lt(),Ht(l,1,1,(()=>{l=null})),Ut()),2112&e[0]&&(c=Kt(t[6]),Lt(),a=Xt(a,e,u,1,t,c,s,r,Yt,$o,null,po),Ut())},i(t){if(!o){Wt(l);for(let t=0;t<c.length;t+=1)Wt(a[t]);o=!0}},o(t){Ht(l);for(let t=0;t<a.length;t+=1)Ht(a[t]);o=!1},d(e){e&&(M(n),M(r)),l&&l.d(e);for(let t=0;t<a.length;t+=1)a[t].d();t[19](null)}}}function _o(t){var e;let n,r,i=[],o=new uo,a=Kt(null===(e=t[3])||void 0===e?void 0:e.tooltips);const s=t=>t[34].internalId;for(let e=0;e<a.length;e+=1){let n=ho(t,a,e),r=s(n);o.set(r,i[e]=wo(r,n))}return{c(){for(let t=0;t<i.length;t+=1)i[t].c();n=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);n=U()},m(t,e){for(let n=0;n<i.length;n+=1)i[n]&&i[n].m(t,e);T(t,n,e),r=!0},p(t,e){var r;10&e[0]&&(a=Kt(null===(r=t[3])||void 0===r?void 0:r.tooltips),Lt(),i=Xt(i,e,s,1,t,a,o,n.parentNode,Yt,wo,n,ho),Ut())},i(t){if(!r){for(let t=0;t<a.length;t+=1)Wt(i[t]);r=!0}},o(t){for(let t=0;t<i.length;t+=1)Ht(i[t]);r=!1},d(t){t&&M(n);for(let e=0;e<i.length;e+=1)i[e].d(t)}}}function wo(t,e){let n,r,i;return r=new co({props:{ownerNode:e[34].ownerNode,data:e[34].desc,internalId:e[34].internalId,templateContext:e[1]}}),{key:t,first:null,c(){n=U(),re(r.$$.fragment),this.h()},l(t){n=U(),ie(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){T(t,n,e),oe(r,t,e),i=!0},p(t,n){e=t;const i={};8&n[0]&&(i.ownerNode=e[34].ownerNode),8&n[0]&&(i.data=e[34].desc),8&n[0]&&(i.internalId=e[34].internalId),2&n[0]&&(i.templateContext=e[1]),r.$set(i)},i(t){i||(Wt(r.$$.fragment,t),i=!0)},o(t){Ht(r.$$.fragment,t),i=!1},d(t){t&&M(n),ae(r,t)}}}function xo(t){let e,n,r=!t[4]&&fo(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[4]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),16&n[0]&&Wt(r,1)):(r=fo(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function ko(t){return"change_bounds"===t.type?t:"set"===t.type?ko(t.items[0]):null}function Eo(t,e,n){let r,i,o,a,s,l,{json:c={}}=e,{templateContext:u}=e,{origJson:d}=e,{layoutParams:h}=e;const p=xt(fe),f=xt(ze);let g,m,v,y=!1,$=new Map,b=new Set,_=null,w=[],x=[],k=[],E=[],A=null,C=!1;function V(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=p.getJsonWithVars(r),o=p.getJsonWithVars(o);const s=Qi(o),l=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(c=s,c.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var c}async function D(t){if(v===t)return;p.setRunning("stateChange",!0);const e=new Set(b);w.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,w=[]);let r=[];if(g){const t=g.getBoundingClientRect();r=k.map((e=>V(t,e,"out")))}E.forEach((t=>{$.set(t.id,t.node.getBoundingClientRect())})),x=[],k=[],E=[];const i=s.find((e=>e.state_id===t))||null;if(i?(n(7,v=t),null==a||a.setValue(v),n(8,A=i)):p.logError(ge(new Error("Cannot find state with id"),{additional:{stateId:t}})),await Ft(),!g)return;const o=g.getBoundingClientRect();let l=x.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>V(o,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||b.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=r.concat(l),u=c.reduce(((t,e)=>Math.max(t,Hi(e.transitions))),0),d=E.filter((t=>$.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:o,beforeBbox:$.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:p.getJsonWithVars(ko(t.transitions)),resolvePromise:t.resolvePromise})));n(6,w=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:u}))),...d]),$.clear(),p.setRunning("stateChange",!1)}function j(t){if(_&&_.has(t))return _.get(t);p.logError(ge(new Error("Missing state block with id"),{additional:{id:t}}))}function P(t){n(6,w=w.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return wt(ze,{registerInstance(t,e){_||(_=new Map),_.has(t)?p.logError(ge(new Error("Duplicate state with id"),{additional:{id:t}})):_.set(t,e)},unregisterInstance(t){null==_||_.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!g)return Promise.resolve();const a=V(g.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),s=Hi(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(6,w=[...w.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 x.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return k.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 E.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&$.has(t),registerChild(t){b.add(t)},unregisterChild(t){b.delete(t)}}),_t((()=>{m&&f.unregisterInstance(m)})),t.$$set=t=>{"json"in t&&n(0,c=t.json),"templateContext"in t&&n(1,u=t.templateContext),"origJson"in t&&n(2,d=t.origJson),"layoutParams"in t&&n(3,h=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(15,r=c.div_id||c.id),1&t.$$.dirty[0]&&(i=p.getJsonWithVars(c.default_state_id)),1&t.$$.dirty[0]&&n(16,o=c.state_id_variable),65536&t.$$.dirty[0]&&(a=o?p.getVariable(o,"string"):null),1&t.$$.dirty[0]&&c&&n(13,C=!1),32768&t.$$.dirty[0]&&(r?n(4,y=!1):(n(4,y=!0),p.logError(ge(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&c&&(b=new Set),1&t.$$.dirty[0]&&n(14,s=c.states||[]),16384&t.$$.dirty[0]&&n(9,l=s.map((t=>t.div))),16384&t.$$.dirty[0]&&((null==s?void 0:s.length)?n(4,y=!1):(n(4,y=!0),p.logError(ge(new Error('Empty "states" prop for div "state"'))))),36873&t.$$.dirty[0]&&c&&(m&&(f.unregisterInstance(m),n(12,m=void 0)),r&&!(null==h?void 0:h.fakeElement)&&(n(12,m=r),f.registerInstance(r,{setState:D,getChild:j}))),24576&t.$$.dirty[0]&&!C&&function(t){if(!C&&(n(13,C=!0),t.length)){const e=(null==a?void 0:a.getValue())||i;e?(n(7,v=e),n(8,A=t.find((t=>t.state_id===v))||null),A||p.logError(ge(new Error("Cannot find state for default_state_id"),{additional:{selectedId:v}}))):(n(8,A=t[0]),n(7,v=A.state_id)),a&&(a.setValue(v),a.subscribe((t=>{D(t)})))}}(s)},[c,u,d,h,y,g,w,v,A,l,function(t){const e=c.states;if(!e)return;const r=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})));n(0,c=Object.assign(Object.assign({},c),{states:r})),v&&n(8,A=r.find((t=>t.state_id===v))||null)},P,m,C,s,r,o,t=>P(t),t=>P(t),function(t){At[t?"unshift":"push"]((()=>{g=t,n(5,g)}))}]}const Ao={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:Co}=C;function Vo(t,e,n){const r=t.slice();return r[59]=e[n],r}function Do(t){let e,n;return e=new Dn({props:{cls:Me("pager",Ao,t[11]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,parentOf:t[0].items,replaceItems:t[23],$$slots:{default:[So]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Me("pager",Ao,t[11])),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),268120&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function jo(t){var e;let n,r,i,o,a;return r=new bs({props:{div:t[59].json,templateContext:t[59].templateContext,origJson:t[59].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=B("div"),re(r.$$.fragment),i=L(),this.h()},l(t){n=et(t,"DIV",{class:!0});var e=X(n);ie(r.$$.fragment,e),i=it(e),e.forEach(M),this.h()},h(){H(n,"class",o=Ao.pager__item)},m(t,e){T(t,n,e),oe(r,n,null),N(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[59].json),16&e[0]&&(i.templateContext=t[59].templateContext),16&e[0]&&(i.origJson=t[59].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||(Wt(r.$$.fragment,t),a=!0)},o(t){Ht(r.$$.fragment,t),a=!1},d(t){t&&M(n),ae(r)}}}function Po(t){let e,r,i,o,a=!t[19]&&function(t){let e,n,r,i;return{c(){e=J("svg"),n=J("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=Ao["pager__arrow-icon-path"]),H(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),H(e,"class",i=ri.arrow__icon),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"width","32"),H(e,"height","32"),H(e,"viewBox","0 0 32 32"),H(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(M),this.h()},h(){H(e,"class",r=t[19]||"".concat(Ao.pager__arrow," ").concat(ri.arrow," ").concat(ri.arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=W(e,"click",t[47]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function Fo(t){let e,r,i,o,a=!t[20]&&function(t){let e,n,r,i;return{c(){e=J("svg"),n=J("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=Ao["pager__arrow-icon-path"]),H(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),H(e,"class",i=ri.arrow__icon),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"width","32"),H(e,"height","32"),H(e,"viewBox","0 0 32 32"),H(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(M),this.h()},h(){H(e,"class",r=t[20]||"".concat(Ao.pager__arrow," ").concat(ri.arrow," ").concat(ri.arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=W(e,"click",t[48]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function So(t){let e,n,r,i,o,a,s,l,c,u=Kt(t[4]),d=[];for(let e=0;e<u.length;e+=1)d[e]=jo(Vo(t,u,e));const h=t=>Ht(d[t],1,1,(()=>{d[t]=null}));let p=t[9]&&t[10]&&Po(t),f=t[8]&&t[10]&&Fo(t);return{c(){e=B("div");for(let t=0;t<d.length;t+=1)d[t].c();i=L(),p&&p.c(),o=L(),f&&f.c(),a=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var n=X(e);for(let t=0;t<d.length;t+=1)d[t].l(n);n.forEach(M),i=it(t),p&&p.l(t),o=it(t),f&&f.l(t),a=U(),this.h()},h(){H(e,"class",n=Ao.pager__items+" "+(t[18]?pe["root_restrict-scroll"]:"")),H(e,"style",r=ye(t[12]))},m(n,r){T(n,e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);t[46](e),T(n,i,r),p&&p.m(n,r),T(n,o,r),f&&f.m(n,r),T(n,a,r),s=!0,l||(c=W(e,"scroll",t[22]),l=!0)},p(t,i){if(24&i[0]){let n;for(u=Kt(t[4]),n=0;n<u.length;n+=1){const r=Vo(t,u,n);d[n]?(d[n].p(r,i),Wt(d[n],1)):(d[n]=jo(r),d[n].c(),Wt(d[n],1),d[n].m(e,null))}for(Lt(),n=u.length;n<d.length;n+=1)h(n);Ut()}(!s||262144&i[0]&&n!==(n=Ao.pager__items+" "+(t[18]?pe["root_restrict-scroll"]:"")))&&H(e,"class",n),(!s||4096&i[0]&&r!==(r=ye(t[12])))&&H(e,"style",r),t[9]&&t[10]?p?p.p(t,i):(p=Po(t),p.c(),p.m(o.parentNode,o)):p&&(p.d(1),p=null),t[8]&&t[10]?f?f.p(t,i):(f=Fo(t),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(t){if(!s){for(let t=0;t<u.length;t+=1)Wt(d[t]);s=!0}},o(t){d=d.filter(Co);for(let t=0;t<d.length;t+=1)Ht(d[t]);s=!1},d(n){n&&(M(e),M(i),M(o),M(a)),z(d,n),t[46](null),p&&p.d(n),f&&f.d(n),l=!1,c()}}}function Io(t){let e,n,r=!t[5]&&Do(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[5]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),32&n[0]&&Wt(r,1)):(r=Do(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function No(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,b,_,w,x,k,E,A,C,V=n,D=n,j=n,P=n,F=n,S=n;var I,N,O,T,M,z;t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S()));let{json:B={}}=e,{templateContext:J}=e,{origJson:R}=e,{layoutParams:L}=e;const U=xt(fe),W=U.genId("pager"),H=U.getCustomization("pagerLeftClass"),q=U.getCustomization("pagerRightClass"),G=U.isDesktop;p(t,G,(t=>r(41,w=t)));const K=oi((function(){if(!Z)return;const t=function(){const t=Array.from(X.children),e=X.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===nt?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:Q}();t!==Q&&r(34,Q=t)}),50);let Y,X,Z=!1,Q=0,tt=0,et=!1,nt="horizontal",rt="",it="",ot="";function at(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===nt,i=X.children[t],o=n?"offsetLeft":"offsetTop",a=n?"left":"top";X.scroll({[a]:i[o],behavior:e}),r(34,Q=t)}function st(t){let e=Q-1;e<0&&(e="ring"===t?c.length-1:Q),at(e)}function lt(t){let e=Q+1;e>c.length-1&&(e="ring"===t?0:Q),at(e)}return bt((()=>{if(r(33,Z=!0),Boolean(document.getElementById("".concat(W,"-tab-0")))){const t=[...X.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(W,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(W,"-tab-").concat(e))}})),_t((()=>{r(33,Z=!1),Y&&(U.unregisterInstance(Y),r(32,Y=void 0))})),t.$$set=t=>{"json"in t&&r(0,B=t.json),"templateContext"in t&&r(1,J=t.templateContext),"origJson"in t&&r(2,R=t.origJson),"layoutParams"in t&&r(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&B&&r(38,it=""),1&t.$$.dirty[0]&&(r(17,i=U.getDerivedFromVars(B.layout_mode)),D(),D=h(i,(t=>r(42,x=t)))),1&t.$$.dirty[0]&&(r(16,o=U.getDerivedFromVars(B.orientation)),F(),F=h(o,(t=>r(45,A=t)))),1&t.$$.dirty[0]&&(r(15,a=U.getDerivedFromVars(B.item_spacing)),P(),P=h(a,(t=>r(44,E=t)))),1&t.$$.dirty[0]&&(r(14,s=U.getDerivedFromVars(B.paddings)),j(),j=h(s,(t=>r(43,k=t)))),1&t.$$.dirty[0]&&(r(13,l=U.getDerivedFromVars(B.restrict_parent_scroll)),S(),S=h(l,(t=>r(18,C=t)))),3&t.$$.dirty[0]&&r(4,c=(Array.isArray(B.items)&&B.items||[]).map((t=>{let e=t,n=J;return({templateContext:n,json:e}=U.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),2048&t.$$.dirty[1]&&(x?"percentage"!==x.type&&"fixed"!==x.type?(r(35,et=!0),U.logError(ge(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(35,et=!1):(r(35,et=!0),U.logError(ge(new Error('Empty "layout_mode" prop for div "pager"'))))),16416&t.$$.dirty[1]&&r(36,nt=Dr(A,nt)),8192&t.$$.dirty[1]){const t=null==E?void 0:E.value;t&&Re(t)&&r(37,rt=$e(t||0))}if(4224&t.$$.dirty[1]&&r(38,it=Le(k,it)),32&t.$$.dirty[1]&&r(40,u="horizontal"===nt?"grid-auto-columns":"grid-auto-rows"),2080374785&t.$$.dirty[0]|2145&t.$$.dirty[1])if("fixed"===(null==x?void 0:x.type)){const t=be("horizontal"===nt?((null===r(26,I=B.paddings)||void 0===I?void 0:I.left)||0)+((null===r(27,N=B.paddings)||void 0===N?void 0:N.right)||0):((null===r(28,O=B.paddings)||void 0===O?void 0:O.top)||0)+((null===r(29,T=B.paddings)||void 0===T?void 0:T.bottom)||0)),e=null===r(30,M=x.neighbour_page_width)||void 0===M?void 0:M.value;r(39,ot=e?"calc(100% + ".concat(t," - 2 * ").concat(be(e)," - 2 * ").concat(rt,")"):"100%")}else if("percentage"===(null==x?void 0:x.type)){const t=null===r(31,z=x.page_width)||void 0===z?void 0:z.value;r(39,ot="".concat(Number(t),"%"))}960&t.$$.dirty[1]&&r(12,d={"grid-gap":rt,padding:it,[u]:ot}),32&t.$$.dirty[1]&&r(11,f={orientation:nt}),16&t.$$.dirty[1]&&r(5,g=et),32&t.$$.dirty[0]|1028&t.$$.dirty[1]&&r(10,m=w&&Z&&!g),8&t.$$.dirty[1]&&r(9,v=Q>0),16&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(8,y=Q+1<c.length),16&t.$$.dirty[0]|8&t.$$.dirty[1]&&function(t,e){const n=B.id;if(n){const r=new Map(_);$(b,_=r.set(n,{instId:W,size:t,currentItem:e,scrollToPagerItem:at}),_)}}(c.length,Q),8&t.$$.dirty[1]&&function(t){var e;if(t===tt)return;tt=t;const n=U.getJsonWithVars(null===(e=c[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&U.execAnyActions(n)}(Q),25&t.$$.dirty[0]|2&t.$$.dirty[1]&&B&&(Y&&(U.unregisterInstance(Y),r(32,Y=void 0)),B.id&&!(null==L?void 0:L.fakeElement)&&(r(32,Y=B.id),U.registerInstance(B.id,{setCurrentItem(t){if(t<0||t>c.length-1)throw new Error('Item is out of range in "set-current-item" action');at(t)},setPreviousItem:st,setNextItem:lt})))},r(7,b=U.getStore("pagers")),V(),V=h(b,(t=>r(50,_=t))),[B,J,R,L,c,g,X,b,y,v,m,f,d,l,s,a,o,i,C,H,q,G,K,function(t){r(0,B=Object.assign(Object.assign({},B),{items:t.filter(Ee)}))},st,lt,I,N,O,T,M,z,Y,Z,Q,et,nt,rt,it,ot,u,w,x,k,E,A,function(t){At[t?"unshift":"push"]((()=>{X=t,r(6,X)}))},()=>st("clamp"),()=>lt("clamp")]}const Oo={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 To(t,e,n){const r=t.slice();r[42]=e[n],r[45]=n;const i=r[45]===r[12].currentItem;return r[43]=i,r}function Mo(t){let e,n=Kt(Array(t[12].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=zo(To(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=U()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=U()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);T(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Kt(Array(t[12].size)),o=0;o<n.length;o+=1){const a=To(t,n,o);r[o]?r[o].p(a,i):(r[o]=zo(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&&M(e),z(r,t)}}}function zo(t){let e,n,r,i,o,a,l,c;function u(){return t[36](t[45])}return{c(){e=B("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=Me("indicator__item",Oo,{active:t[43]})+" "+pe.root__clickable),H(e,"role","tab"),H(e,"id",r=t[12].instId+"-tab-"+t[45]),H(e,"aria-controls",i=t[12].instId+"-panel-"+t[45]),H(e,"aria-selected",o=t[43]?"true":"false"),H(e,"tabindex",a=t[43]?0:-1)},m(n,r){T(n,e,r),l||(c=[W(e,"click",u),W(e,"keydown",t[24])],l=!0)},p(s,l){t=s,4096&l[0]&&n!==(n=Me("indicator__item",Oo,{active:t[43]})+" "+pe.root__clickable)&&H(e,"class",n),4096&l[0]&&r!==(r=t[12].instId+"-tab-"+t[45])&&H(e,"id",r),4096&l[0]&&i!==(i=t[12].instId+"-panel-"+t[45])&&H(e,"aria-controls",i),4096&l[0]&&o!==(o=t[43]?"true":"false")&&H(e,"aria-selected",o),4096&l[0]&&a!==(a=t[43]?0:-1)&&H(e,"tabindex",a)},d(t){t&&M(e),l=!1,s(c)}}}function Bo(t){let e,n,r,i,o=t[12]&&Mo(t);return{c(){e=B("div"),n=B("div"),o&&o.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=X(e);n=et(r,"DIV",{class:!0,role:!0});var i=X(n);o&&o.l(i),i.forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=Oo.indicator__items),H(n,"role","tablist"),lt(n,"margin","default"===t[6]?"0 ".concat($e(Math.max(0,t[4].width-t[5].width)/2)):""),lt(n,"--divkit-indicator-inactive-width",$e(t[5].width)),lt(n,"--divkit-indicator-inactive-height",$e(t[5].height)),lt(n,"--divkit-indicator-inactive-border-radius",$e(t[5].borderRadius)),lt(n,"--divkit-indicator-inactive-background",t[5].background||""),lt(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),lt(n,"--divkit-indicator-active-width",$e(t[4].width)),lt(n,"--divkit-indicator-active-height",$e(t[4].height)),lt(n,"--divkit-indicator-active-border-radius",$e(t[4].borderRadius)),lt(n,"--divkit-indicator-active-background",t[4].background||""),lt(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),lt(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),lt(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat($e((t[7]-t[5].width)/2)):""),lt(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?$e(t[9]):""),lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?$e((t[8]-1)*t[9]):""),H(e,"class",i=Oo.indicator__scroller)},m(r,i){T(r,e,i),N(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=Mo(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&lt(n,"margin","default"===t[6]?"0 ".concat($e(Math.max(0,t[4].width-t[5].width)/2)):""),32&e[0]&&lt(n,"--divkit-indicator-inactive-width",$e(t[5].width)),32&e[0]&&lt(n,"--divkit-indicator-inactive-height",$e(t[5].height)),32&e[0]&&lt(n,"--divkit-indicator-inactive-border-radius",$e(t[5].borderRadius)),32&e[0]&&lt(n,"--divkit-indicator-inactive-background",t[5].background||""),32&e[0]&&lt(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),16&e[0]&&lt(n,"--divkit-indicator-active-width",$e(t[4].width)),16&e[0]&&lt(n,"--divkit-indicator-active-height",$e(t[4].height)),16&e[0]&&lt(n,"--divkit-indicator-active-border-radius",$e(t[4].borderRadius)),16&e[0]&&lt(n,"--divkit-indicator-active-background",t[4].background||""),16&e[0]&&lt(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),48&e[0]&&lt(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),224&e[0]&&lt(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat($e((t[7]-t[5].width)/2)):""),576&e[0]&&lt(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?$e(t[9]):""),320&e[0]&&lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),832&e[0]&&lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?$e((t[8]-1)*t[9]):"")},d(n){n&&M(e),o&&o.d(),t[37](null),t[38](null)}}}function Jo(t){let e,n;return e=new Dn({props:{cls:Me("indicator",Oo,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Bo]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Me("indicator",Oo,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]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}const Ro=["rounded_rectangle","circle"];function Lo(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k=n,E=n,A=n,C=n,V=n,D=n,j=n,P=n,F=n;var S,I;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>F()));let{json:N={}}=e,{templateContext:O}=e,{origJson:T}=e,{layoutParams:M}=e;const z=xt(fe);let B,J,R,L={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},U={width:10,height:10,borderRadius:5,background:"#33919cb5"},W="default",H=15,q=10,G=5;function K(t){t!==R.currentItem&&R.scrollToPagerItem(t)}async function Y(t){R.scrollToPagerItem(t),await Ft();const e=J.querySelector(".".concat(Oo.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&r(0,N=t.json),"templateContext"in t&&r(1,O=t.templateContext),"origJson"in t&&r(2,T=t.origJson),"layoutParams"in t&&r(3,M=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&N&&(r(6,W="default"),r(7,H=15),r(8,q=10),r(9,G=5),r(4,L={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),r(5,U={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(r(22,i=z.getDerivedFromVars(N.shape)),D(),D=h(i,(t=>r(32,b=t)))),1&t.$$.dirty[0]&&(r(21,o=z.getDerivedFromVars(N.active_item_color)),C(),C=h(o,(t=>r(30,y=t)))),1&t.$$.dirty[0]&&(r(20,a=z.getDerivedFromVars(N.inactive_item_color)),V(),V=h(a,(t=>r(31,$=t)))),1&t.$$.dirty[0]&&(r(19,s=z.getDerivedFromVars(N.active_item_size)),j(),j=h(s,(t=>r(33,_=t)))),1&t.$$.dirty[0]&&(r(18,l=z.getDerivedFromVars(N.active_shape)),F(),F=h(l,(t=>r(35,x=t)))),1&t.$$.dirty[0]&&(r(17,c=z.getDerivedFromVars(N.inactive_shape)),P(),P=h(c,(t=>r(34,w=t)))),1&t.$$.dirty[0]&&(r(16,u=z.getDerivedFromVars(N.space_between_centers)),E(),E=h(u,(t=>r(28,m=t)))),1&t.$$.dirty[0]&&(r(15,d=z.getDerivedFromVars(N.items_placement)),A(),A=h(d,(t=>r(29,v=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(x&&r(4,L=ar({type:"shape_drawable",shape:x},Ro,L)),w&&r(5,U=ar({type:"shape_drawable",shape:w},Ro,U)),!x&&!w&&b)){const t=Pn(_,1.3);r(5,U=ar({type:"shape_drawable",shape:b,color:U.background},Ro,U)),r(5,U.background=we($,1,U.background),U),r(4,L=Object.assign(Object.assign({},U),{width:U.width*t,height:U.height*t,borderRadius:U.borderRadius*t,background:L.background})),r(4,L.background=we(y,1,L.background),L)}if(905970624&t.$$.dirty[0])if(!v||"default"!==v.type&&"stretch"!==v.type)r(6,W="default"),m&&r(7,H=Ue(m.value,H));else if(r(6,W=v.type),"default"===W)r(7,H=Ue(null===r(25,S=v.space_between_centers)||void 0===S?void 0:S.value,H));else if("stretch"===W){const t=v;r(8,q=Pn(t.max_visible_items,q)),r(9,G=Ue(null===r(26,I=t.item_spacing)||void 0===I?void 0:I.value,G))}134217728&t.$$.dirty[0]&&async function(t){if(N.pager_id&&t.has(N.pager_id)&&(r(12,R=t.get(N.pager_id)),await Ft(),J)){const t=J.children[R.currentItem];if(t){const e=t.offsetLeft;B.scroll({left:e-B.clientWidth/2,behavior:"smooth"})}}}(g),64&t.$$.dirty[0]&&r(13,f={placement:W})},r(14,p=z.getStore("pagers")),k(),k=h(p,(t=>r(27,g=t))),[N,O,T,M,L,U,W,H,q,G,B,J,R,f,p,d,u,c,l,s,a,o,i,K,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=R;if(t.which===yi)Y(n-1<0?n:n-1);else if(t.which===$i)Y(n+1>=e?n:n+1);else if(t.which===bi)Y(0);else{if(t.which!==_i)return;Y(e-1)}t.preventDefault()},S,I,g,m,v,y,$,b,_,w,x,t=>K(t),function(t){At[t?"unshift":"push"]((()=>{J=t,r(11,J)}))},function(t){At[t?"unshift":"push"]((()=>{B=t,r(10,B)}))}]}const Uo={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 Wo(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&we(t.text_color)||"#000",i=Fn(t.font_weight);if(cn(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:$e(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 Ho(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const qo="function"==typeof BigInt;function Go(t){return qo?BigInt(t):Number(t)}const Ko=Go("9223372036854775807"),Yo=Go("-9223372036854775808");function Xo(t){const e=Go(t);if(e>Ko||e<Yo)throw new Error("Integer overflow.");return e}const Zo=Xo(0);function Qo(t){let e=t;return e<0&&(e=-e),e}function ta(t){let e=0;return t>0?e=1:t<0&&(e=-1),Xo(e)}class ea{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=de(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 na={string:class extends ea{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends ea{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 ea{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>Ko||t<Yo)throw new Error("Incorrect variable value");return Xo(t)}fromString(t){const e=Xo(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends ea{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 ea{convertValue(t){if("string"!=typeof t||!xe(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends ea{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}},dict:class extends ea{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"}},array:class extends ea{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}};function ra(t,e,n){if(!(e in na))throw new Error("Unsupported variable type");return new na[e](t,n)}function ia(t,e,n){const r=t.slice();return r[80]=e[n],r}function oa(t,e,n){const r=t.slice();return r[80]=e[n],r}function aa(t){let e,n;return e=new Dn({props:{cls:Me("slider",Uo,t[25]),style:t[26],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[pa,t=>{let{focusHandler:e,blurHandler:n}=t;return{78:e,79:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?65536:0)|(n?131072:0)]}]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};33554432&n[0]&&(r.cls=Me("slider",Uo,t[25])),67108864&n[0]&&(r.style=t[26]),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]),411033584&n[0]|8585216&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function sa(t){let e,n;return{c(){e=B("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=Uo.slider__tick+" "+Uo.slider__tick_active),lt(e,"--divkit-slider-tick",t[80])},m(t,n){T(t,e,n)},p(t,n){524288&n[0]&&lt(e,"--divkit-slider-tick",t[80])},d(t){t&&M(e)}}}function la(t){let e,n;return{c(){e=B("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=Uo.slider__tick+" "+Uo.slider__tick_inactive),lt(e,"--divkit-slider-tick",t[80])},m(t,n){T(t,e,n)},p(t,n){1048576&n[0]&&lt(e,"--divkit-slider-tick",t[80])},d(t){t&&M(e)}}}function ca(t){let e,n,r,i,o;return{c(){e=B("div"),n=B("div"),r=R(t[14]),this.h()},l(i){e=et(i,"DIV",{class:!0});var o=X(e);n=et(o,"DIV",{class:!0});var a=X(n);r=rt(a,t[14]),a.forEach(M),o.forEach(M),this.h()},h(){var r,a,s;H(n,"class",i=Uo["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[11])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[11])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(s=t[11])||void 0===s?void 0:s.textColor)||"#000"),H(e,"class",o=Uo["slider__thumb-text"])},m(t,i){T(t,e,i),N(e,n),N(n,r)},p(t,e){var i,o,a;16384&e[0]&&at(r,t[14]),2048&e[0]&&lt(n,"font-size",(null===(i=t[11])||void 0===i?void 0:i.fontSize)||"1em"),2048&e[0]&&lt(n,"font-weight",(null===(o=t[11])||void 0===o?void 0:o.fontWeight)||""),2048&e[0]&&lt(n,"color",(null===(a=t[11])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function ua(t){let e,n,r=t[12]&&da(t);return{c(){e=B("div"),r&&r.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);r&&r.l(n),n.forEach(M),this.h()},h(){H(e,"class",n=Uo.slider__thumb+" "+Uo.slider__thumb_secondary),lt(e,"border-radius",$e(t[8].borderRadius)),lt(e,"background",t[8].background),lt(e,"box-shadow",t[8].boxShadow||"")},m(t,n){T(t,e,n),r&&r.m(e,null)},p(t,n){t[12]?r?r.p(t,n):(r=da(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),256&n[0]&&lt(e,"border-radius",$e(t[8].borderRadius)),256&n[0]&&lt(e,"background",t[8].background),256&n[0]&&lt(e,"box-shadow",t[8].boxShadow||"")},d(t){t&&M(e),r&&r.d()}}}function da(t){let e,n,r,i,o;return{c(){e=B("div"),n=B("div"),r=R(t[15]),this.h()},l(i){e=et(i,"DIV",{class:!0});var o=X(e);n=et(o,"DIV",{class:!0});var a=X(n);r=rt(a,t[15]),a.forEach(M),o.forEach(M),this.h()},h(){var r,a,s;H(n,"class",i=Uo["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(s=t[12])||void 0===s?void 0:s.textColor)||"#000"),H(e,"class",o=Uo["slider__thumb-text"]+" "+Uo["slider__thumb-text_secondary"])},m(t,i){T(t,e,i),N(e,n),N(n,r)},p(t,e){var i,o,a;32768&e[0]&&at(r,t[15]),4096&e[0]&&lt(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em"),4096&e[0]&&lt(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||""),4096&e[0]&&lt(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function ha(t){let e,n,r,i,o;return{c(){e=B("input"),this.h()},l(t){e=et(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){H(e,"type","range"),H(e,"class",n=t[18]?Uo.slider__input:"".concat(Uo.slider__input," ").concat(Uo.slider__input_secondary)),H(e,"min",t[5]),H(e,"max",t[6]),H(e,"step","1"),e.value=r=t[18]?t[14]:t[15],H(e,"aria-label",t[22])},m(n,r){T(n,e,r),i||(o=[W(e,"input",t[72]),W(e,"mousedown",(function(){l(t[16]?t[41]:null)&&(t[16]?t[41]:null).apply(this,arguments)})),W(e,"touchstart",(function(){l(t[16]?t[41]:null)&&(t[16]?t[41]:null).apply(this,arguments)})),W(e,"focus",(function(){l(t[78])&&t[78].apply(this,arguments)})),W(e,"blur",(function(){l(t[79])&&t[79].apply(this,arguments)}))],i=!0)},p(i,o){t=i,262144&o[0]&&n!==(n=t[18]?Uo.slider__input:"".concat(Uo.slider__input," ").concat(Uo.slider__input_secondary))&&H(e,"class",n),32&o[0]&&H(e,"min",t[5]),64&o[0]&&H(e,"max",t[6]),311296&o[0]&&r!==(r=t[18]?t[14]:t[15])&&(e.value=r),4194304&o[0]&&H(e,"aria-label",t[22])},d(t){t&&M(e),i=!1,s(o)}}}function pa(t){let e,n,r,i,o,a,c,u,d,h,p,f,g,m,v,y,$,b,_,w,x,k,E=Kt(t[19]),A=[];for(let e=0;e<E.length;e+=1)A[e]=sa(oa(t,E,e));let C=Kt(t[20]),V=[];for(let e=0;e<C.length;e+=1)V[e]=la(ia(t,C,e));let D=t[11]&&ca(t),j=t[16]&&ua(t),P=t[16]&&ha(t);return{c(){e=B("div"),n=B("div"),r=B("div"),o=L(),a=B("div"),u=L();for(let t=0;t<A.length;t+=1)A[t].c();d=L();for(let t=0;t<V.length;t+=1)V[t].c();h=L(),p=B("div"),D&&D.c(),g=L(),j&&j.c(),m=L(),v=B("input"),b=L(),P&&P.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=X(e);n=et(i,"DIV",{class:!0});var s=X(n);r=et(s,"DIV",{class:!0}),X(r).forEach(M),o=it(s),a=et(s,"DIV",{class:!0}),X(a).forEach(M),u=it(s);for(let t=0;t<A.length;t+=1)A[t].l(s);d=it(s);for(let t=0;t<V.length;t+=1)V[t].l(s);h=it(s),p=et(s,"DIV",{class:!0});var l=X(p);D&&D.l(l),l.forEach(M),g=it(s),j&&j.l(s),m=it(s),v=et(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),b=it(s),P&&P.l(s),s.forEach(M),i.forEach(M),this.h()},h(){H(r,"class",i=Uo.slider__track),lt(r,"height",$e(t[9].height)),lt(r,"border-radius",$e(t[9].borderRadius)),lt(r,"background",t[9].background),lt(r,"box-shadow",t[9].boxShadow||""),H(a,"class",c=Uo["slider__active-track"]),lt(a,"left",(100*t[27]).toFixed(2)+"%"),lt(a,"width",(100*t[28]).toFixed(2)+"%"),lt(a,"height",$e(t[10].height)),lt(a,"border-radius",$e(t[10].borderRadius)),lt(a,"background",t[10].background),lt(a,"box-shadow",t[10].boxShadow||""),H(p,"class",f=Uo.slider__thumb),lt(p,"border-radius",$e(t[7].borderRadius)),lt(p,"background",t[7].background),lt(p,"box-shadow",t[7].boxShadow||""),H(v,"type","range"),H(v,"class",y=t[18]?"".concat(Uo.slider__input," ").concat(Uo.slider__input_secondary):Uo.slider__input),H(v,"min",t[5]),H(v,"max",t[6]),H(v,"step","1"),v.value=$=t[18]?t[15]:t[14],H(v,"aria-label",t[21]),H(n,"class",_=Uo["slider__tracks-inner"]),H(e,"class",w=Uo["slider__tracks-wrapper"])},m(i,s){T(i,e,s),N(e,n),N(n,r),N(n,o),N(n,a),N(n,u);for(let t=0;t<A.length;t+=1)A[t]&&A[t].m(n,null);N(n,d);for(let t=0;t<V.length;t+=1)V[t]&&V[t].m(n,null);N(n,h),N(n,p),D&&D.m(p,null),N(n,g),j&&j.m(n,null),N(n,m),N(n,v),t[71](v),N(n,b),P&&P.m(n,null),t[73](n),x||(k=[W(v,"input",t[70]),W(v,"focus",(function(){l(t[78])&&t[78].apply(this,arguments)})),W(v,"blur",(function(){l(t[79])&&t[79].apply(this,arguments)}))],x=!0)},p(e,i){if(t=e,512&i[0]&&lt(r,"height",$e(t[9].height)),512&i[0]&&lt(r,"border-radius",$e(t[9].borderRadius)),512&i[0]&&lt(r,"background",t[9].background),512&i[0]&&lt(r,"box-shadow",t[9].boxShadow||""),134217728&i[0]&&lt(a,"left",(100*t[27]).toFixed(2)+"%"),268435456&i[0]&&lt(a,"width",(100*t[28]).toFixed(2)+"%"),1024&i[0]&&lt(a,"height",$e(t[10].height)),1024&i[0]&&lt(a,"border-radius",$e(t[10].borderRadius)),1024&i[0]&&lt(a,"background",t[10].background),1024&i[0]&&lt(a,"box-shadow",t[10].boxShadow||""),524288&i[0]){let e;for(E=Kt(t[19]),e=0;e<E.length;e+=1){const r=oa(t,E,e);A[e]?A[e].p(r,i):(A[e]=sa(r),A[e].c(),A[e].m(n,d))}for(;e<A.length;e+=1)A[e].d(1);A.length=E.length}if(1048576&i[0]){let e;for(C=Kt(t[20]),e=0;e<C.length;e+=1){const r=ia(t,C,e);V[e]?V[e].p(r,i):(V[e]=la(r),V[e].c(),V[e].m(n,h))}for(;e<V.length;e+=1)V[e].d(1);V.length=C.length}t[11]?D?D.p(t,i):(D=ca(t),D.c(),D.m(p,null)):D&&(D.d(1),D=null),128&i[0]&&lt(p,"border-radius",$e(t[7].borderRadius)),128&i[0]&&lt(p,"background",t[7].background),128&i[0]&&lt(p,"box-shadow",t[7].boxShadow||""),t[16]?j?j.p(t,i):(j=ua(t),j.c(),j.m(n,m)):j&&(j.d(1),j=null),262144&i[0]&&y!==(y=t[18]?"".concat(Uo.slider__input," ").concat(Uo.slider__input_secondary):Uo.slider__input)&&H(v,"class",y),32&i[0]&&H(v,"min",t[5]),64&i[0]&&H(v,"max",t[6]),311296&i[0]&&$!==($=t[18]?t[15]:t[14])&&(v.value=$),2097152&i[0]&&H(v,"aria-label",t[21]),t[16]?P?P.p(t,i):(P=ha(t),P.c(),P.m(n,null)):P&&(P.d(1),P=null)},d(n){n&&M(e),z(A,n),z(V,n),D&&D.d(),j&&j.d(),t[71](null),P&&P.d(),t[73](null),x=!1,s(k)}}}function fa(t){let e,n,r,i,o=!t[13]&&aa(t);return{c(){o&&o.c(),e=U()},l(t){o&&o.l(t),e=U()},m(a,s){o&&o.m(a,s),T(a,e,s),n=!0,r||(i=W(window,"resize",t[43]),r=!0)},p(t,n){t[13]?o&&(Lt(),Ht(o,1,1,(()=>{o=null})),Ut()):o?(o.p(t,n),8192&n[0]&&Wt(o,1)):(o=aa(t),o.c(),Wt(o,1),o.m(e.parentNode,e))},i(t){n||(Wt(o),n=!0)},o(t){Ht(o),n=!1},d(t){t&&M(e),o&&o.d(t),r=!1,i()}}}const ga={width:10,height:10,borderRadius:5,background:"#000"},ma=["rounded_rectangle","circle"],va=["rounded_rectangle"];function ya(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 $a(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I,N,O,T,M,z,B,J,R,L=n,U=n,W=n,H=n,q=n,G=n,K=n,Y=n,X=n,Z=n,Q=n,tt=n,et=n,nt=n;var rt,it,ot,at;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())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt()));let{json:st={}}=e,{templateContext:lt}=e,{origJson:ct}=e,{layoutParams:ut}=e;const dt=xt(fe),ht=xt(tn);let pt,ft,gt,mt,vt,yt,$t=!1,wt=0,kt=100,Et=ga,Ct=Et,Vt=ga,Dt=ga,jt=null,Pt=null,Ft=yt,St="",It="",Nt=!1,Ot=Ho(B||0,wt,kt),Tt=Ho(z||0,wt,kt);function Mt(t,e){const n=Number(t.target.value);$t===("first"===e)?(r(15,Tt=n),s.setValue(n)):(r(14,Ot=n),a.setValue(n))}let zt=!1;function Bt(){if(!gt)return;const t=kt-wt,e=(null==jt?void 0:jt.width)||0,n=(null==Pt?void 0:Pt.width)||0;Math.max(e,n)*t>=(null==gt?void 0:gt.clientWidth)?zt||(dt.logError(ge(new Error("Slider ticks overlap each other"),{level:"warn"})),zt=!0):zt=!1}const Jt=oi(Bt,50);return bt((()=>{Bt()})),_t((()=>{pt&&(dt.unregisterFocusable(pt),r(48,pt=void 0))})),t.$$set=t=>{"json"in t&&r(0,st=t.json),"templateContext"in t&&r(1,lt=t.templateContext),"origJson"in t&&r(2,ct=t.origJson),"layoutParams"in t&&r(3,ut=t.layoutParams)},t.$$.update=()=>{if(129&t.$$.dirty[0]&&st&&(r(7,Et=ga),r(8,Ct=Et),r(9,Vt=ga),r(10,Dt=ga),r(49,jt=null),r(50,Pt=null),r(11,yt=void 0),r(12,Ft=void 0),r(21,St=""),r(22,It="")),1&t.$$.dirty[0]&&r(55,i=st.thumb_value_variable),1&t.$$.dirty[0]&&r(16,o=st.thumb_secondary_value_variable),16777216&t.$$.dirty[1]&&(r(23,a=i&&dt.getVariable(i,"integer")||ra("temp","integer",0)),tt(),tt=h(a,(t=>r(67,B=t)))),65536&t.$$.dirty[0]&&(r(24,s=o&&dt.getVariable(o,"integer")||ra("temp","integer",0)),Q(),Q=h(s,(t=>r(66,z=t)))),1&t.$$.dirty[0]&&(r(40,l=dt.getDerivedFromVars(st.min_value)),nt(),nt=h(l,(t=>r(69,R=t)))),1&t.$$.dirty[0]&&(r(39,c=dt.getDerivedFromVars(st.max_value)),et(),et=h(c,(t=>r(68,J=t)))),1&t.$$.dirty[0]&&(r(38,u=dt.getDerivedFromVars(st.thumb_style)),Z(),Z=h(u,(t=>r(65,M=t)))),1&t.$$.dirty[0]&&(r(37,d=dt.getDerivedFromVars(st.thumb_secondary_style)),X(),X=h(d,(t=>r(64,T=t)))),1&t.$$.dirty[0]&&(r(36,p=dt.getDerivedFromVars(st.track_inactive_style)),Y(),Y=h(p,(t=>r(63,O=t)))),1&t.$$.dirty[0]&&(r(35,f=dt.getDerivedFromVars(st.track_active_style)),K(),K=h(f,(t=>r(62,N=t)))),1&t.$$.dirty[0]&&(r(34,g=dt.getDerivedFromVars(st.tick_mark_active_style)),G(),G=h(g,(t=>r(61,I=t)))),1&t.$$.dirty[0]&&(r(33,m=dt.getDerivedFromVars(st.tick_mark_inactive_style)),q(),q=h(m,(t=>r(60,S=t)))),1&t.$$.dirty[0]&&(r(32,v=dt.getDerivedFromVars(st.thumb_text_style)),H(),H=h(v,(t=>r(59,F=t)))),1&t.$$.dirty[0]&&(r(31,y=dt.getDerivedFromVars(st.thumb_secondary_text_style)),W(),W=h(y,(t=>r(58,P=t)))),1&t.$$.dirty[0]&&(r(30,$=dt.getDerivedFromVars(st.accessibility)),U(),U=h($,(t=>r(57,j=t)))),1&t.$$.dirty[0]&&(r(29,b=dt.getDerivedFromVars(st.secondary_value_accessibility)),L(),L=h(b,(t=>r(56,D=t)))),96&t.$$.dirty[0]|192&t.$$.dirty[2]&&(r(5,wt=Ke(R,wt)),r(6,kt=Ke(J,kt)),Bt()),16480&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=Ho(B||0,wt,kt);t!==Ot&&r(14,Ot=t)}if(32864&t.$$.dirty[0]|16&t.$$.dirty[2]){const t=Ho(z||0,wt,kt);t!==Tt&&r(15,Tt=t)}if(128&t.$$.dirty[0]|8&t.$$.dirty[2]&&r(7,Et=ar(M,ma,Et)),128&t.$$.dirty[0]|4&t.$$.dirty[2]&&r(8,Ct=ar(T,ma,Et)),512&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(9,Vt=ar(O,va,Vt)),1024&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(10,Dt=ar(N,va,Dt)),1073741824&t.$$.dirty[1]){let t=ar(I,ma,ga);t!==ga&&r(49,jt=t)}if(114784&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(jt?(r(19,mt=o?ya(Math.min(Ot,Tt),Math.max(Ot,Tt)+1,wt,kt,!0):ya(wt,Ot,wt,kt,!0)),Bt()):r(19,mt=[])),536870912&t.$$.dirty[1]){let t=ar(S,ma,ga);t!==ga&&r(50,Pt=t)}if(114784&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(Pt?(r(20,vt=o?ya(Math.min(Ot,Tt),Math.max(Ot,Tt)+1,wt,kt,!1):ya(Ot+1,kt+1,wt,kt,!0)),Bt()):r(20,vt=[])),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,yt=Wo(F,yt)),2048&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&r(12,Ft=Wo(P,yt)),67108864&t.$$.dirty[1]&&((null==j?void 0:j.description)?r(21,St=j.description):dt.logError(ge(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),65536&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&((null==D?void 0:D.description)?r(22,It=D.description):o&&dt.logError(ge(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),9856&t.$$.dirty[0]){let t=!1;ht.hasAction()?(dt.logError(ge(new Error('Cannot show "slider" inside component with action'))),t=!0):Et===ga?(dt.logError(ge(new Error('Missing "thumb_style" in slider'))),t=!0):Dt===ga?(dt.logError(ge(new Error('Missing "track_active_style" in slider'))),t=!0):Vt===ga&&(dt.logError(ge(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Nt&&r(13,Nt=t)}384&t.$$.dirty[0]&&r(54,_=$e(Math.max(...[Et.width,Ct.width,0].filter(Re)))),384&t.$$.dirty[0]&&r(53,w=$e(Math.max(...[Et.height,Ct.height,0].filter(Re)))),16480&t.$$.dirty[0]&&r(52,x=(Ot-wt)/(kt-wt)),98400&t.$$.dirty[0]&&r(51,k=o?(Tt-wt)/(kt-wt):void 0),3145728&t.$$.dirty[1]&&r(28,E=void 0!==k?Math.abs(k-x):x),3145728&t.$$.dirty[1]&&r(27,A=void 0!==k?Math.min(k,x):0),6528&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&r(26,C={"--divkit-slider-thumb-width":$e(Et.width),"--divkit-slider-thumb-height":$e(Et.height),"--divkit-slider-thumb-secondary-width":$e(Ct.width),"--divkit-slider-thumb-secondary-height":$e(Ct.height),"--divkit-slider-text-offset-x":(null===r(44,rt=null==yt?void 0:yt.offset)||void 0===rt?void 0:rt.x)?be(yt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(45,it=null==yt?void 0:yt.offset)||void 0===it?void 0:it.y)?be(yt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(46,ot=null==Ft?void 0:Ft.offset)||void 0===ot?void 0:ot.x)?be(Ft.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(47,at=null==Ft?void 0:Ft.offset)||void 0===at?void 0:at.y)?be(Ft.offset.y):void 0,"--divkit-slider-tick-active-width":jt?$e(jt.width):void 0,"--divkit-slider-tick-active-height":jt?$e(jt.height):void 0,"--divkit-slider-tick-active-border-radius":jt?$e(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":Pt?$e(Pt.width):void 0,"--divkit-slider-tick-inactive-height":Pt?$e(Pt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Pt?$e(Pt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Pt?void 0:Pt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Pt?void 0:Pt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":_,"--divkit-slider-max-thumb-height":w,"--divkit-slider-track-part":x,"--divkit-slider-track-secondary-part":k}),25&t.$$.dirty[0]|131072&t.$$.dirty[1]&&st&&ft&&(pt&&(dt.unregisterFocusable(pt),r(48,pt=void 0)),st.id&&!(null==ut?void 0:ut.fakeElement)&&(r(48,pt=st.id),dt.registerFocusable(st.id,{focus(){ft&&ft.focus()}})))},r(25,V={}),[st,lt,ct,ut,ft,wt,kt,Et,Ct,Vt,Dt,yt,Ft,Nt,Ot,Tt,o,gt,$t,mt,vt,St,It,a,s,V,C,A,E,b,$,y,v,m,g,f,p,d,u,c,l,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=gt.getBoundingClientRect(),a=(i-o.left)/o.width,s=(kt-wt)*a,l=Math.round(Ho(s,wt,kt));r(18,$t=l<(Ot+Tt)/2==Ot<Tt)},Mt,Jt,rt,it,ot,at,pt,jt,Pt,k,x,w,_,i,D,j,P,F,S,I,N,O,T,M,z,B,J,R,t=>Mt(t,"first"),function(t){At[t?"unshift":"push"]((()=>{ft=t,r(4,ft)}))},t=>Mt(t,"second"),function(t){At[t?"unshift":"push"]((()=>{gt=t,r(17,gt)}))}]}const ba={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 _a(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=_a(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 wa(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 xa{constructor(t){this.char=t}}class ka{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class Ea{constructor(t){wa(this,"filters",new Map),wa(this,"destructedValue",[]),wa(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 xa)t+=n.char;else if(n instanceof ka)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 ka&&!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(ge(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 ka(null,this.filters.get(e.key),e.placeholder):new xa(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=_a(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=i?this.calculateMaxShift(i,o):void 0;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 ka&&++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 ka&&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 ka&&(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 ka);)++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 ka&&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 ka&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof ka);)++e;return e}}class Aa extends Ea{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function Ca(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 Va extends Ea{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}),Ca(this,"currencyFormatter",new Intl.NumberFormat),Ca(this,"decimalSeparator","."),Ca(this,"localeDigits",{}),Ca(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(ge(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=_a(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 Da=3;function ja(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 Pa(t,e){if(t.nodeType!==Da)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=ja(r);if(e<=i)return void Pa(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 Fa(t){let e,n;return e=new Dn({props:{cls:Me("input",ba,t[17]),style:t[16],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Oa,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{88:e,89:n,90:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?67108864:0)|(n?134217728:0)|(r?268435456:0)]}]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};131072&n[0]&&(r.cls=Me("input",ba,t[17])),65536&n[0]&&(r.style=t[16]),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]),315120&n[0]|32&n[1]|1006632960&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Sa(t){let e,n,r,i,o;return{c(){e=B("input"),this.h()},l(t){e=et(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){H(e,"type",t[9]),H(e,"inputmode",t[10]),H(e,"class",n=Me("input__input",ba,{"has-custom-focus":t[90],singleline:!0})),H(e,"autocomplete","off"),H(e,"autocapitalize","off"),H(e,"aria-label",t[11]),H(e,"style",r=ye(t[15])),H(e,"placeholder",t[18]),e.value=t[5]},m(n,r){T(n,e,r),t[80](e),i||(o=[W(e,"input",t[37]),W(e,"mousedown",(function(){l(t[36]?t[38]:void 0)&&(t[36]?t[38]:void 0).apply(this,arguments)})),W(e,"click",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),W(e,"focus",(function(){l(t[88])&&t[88].apply(this,arguments)})),W(e,"blur",(function(){l(t[89])&&t[89].apply(this,arguments)}))],i=!0)},p(i,o){t=i,512&o[0]&&H(e,"type",t[9]),1024&o[0]&&H(e,"inputmode",t[10]),268435456&o[2]&&n!==(n=Me("input__input",ba,{"has-custom-focus":t[90],singleline:!0}))&&H(e,"class",n),2048&o[0]&&H(e,"aria-label",t[11]),32768&o[0]&&r!==(r=ye(t[15]))&&H(e,"style",r),262144&o[0]&&H(e,"placeholder",t[18]),32&o[0]&&e.value!==t[5]&&(e.value=t[5])},d(n){n&&M(e),t[80](null),i=!1,s(o)}}}function Ia(t){let e,n,r,i,o,a,c,u,d,h,p,f,g=!t[7]&&t[18]&&Na(t);return{c(){e=B("span"),g&&g.c(),n=L(),r=B("span"),i=R("​"),a=L(),c=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var o=X(e);g&&g.l(o),n=it(o),r=et(o,"SPAN",{"aria-hidden":!0,style:!0});var s=X(r);i=rt(s,"​"),s.forEach(M),a=it(o),c=et(o,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),X(c).forEach(M),o.forEach(M),this.h()},h(){H(r,"aria-hidden","true"),H(r,"style",o=ye(t[14])),H(c,"class",u=Me("input__input",ba,{"has-custom-focus":t[90],multiline:!0})),H(c,"autocapitalize","off"),H(c,"contenteditable","true"),H(c,"aria-label",t[11]),H(c,"style",d=ye(t[15])),void 0===t[7]&&St((()=>t[79].call(c))),H(e,"class",h=ba["input__scroll-wrapper"])},m(o,s){T(o,e,s),g&&g.m(e,null),N(e,n),N(e,r),N(r,i),N(e,a),N(e,c),t[78](c),void 0!==t[7]&&(c.innerText=t[7]),p||(f=[W(c,"input",t[79]),W(c,"input",t[37]),W(c,"paste",Ba),W(c,"mousedown",(function(){l(t[36]?t[38]:void 0)&&(t[36]?t[38]:void 0).apply(this,arguments)})),W(c,"click",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),W(c,"focus",(function(){l(t[88])&&t[88].apply(this,arguments)})),W(c,"blur",(function(){l(t[89])&&t[89].apply(this,arguments)}))],p=!0)},p(i,a){!(t=i)[7]&&t[18]?g?g.p(t,a):(g=Na(t),g.c(),g.m(e,n)):g&&(g.d(1),g=null),16384&a[0]&&o!==(o=ye(t[14]))&&H(r,"style",o),268435456&a[2]&&u!==(u=Me("input__input",ba,{"has-custom-focus":t[90],multiline:!0}))&&H(c,"class",u),2048&a[0]&&H(c,"aria-label",t[11]),32768&a[0]&&d!==(d=ye(t[15]))&&H(c,"style",d),128&a[0]&&t[7]!==c.innerText&&(c.innerText=t[7])},d(n){n&&M(e),g&&g.d(),t[78](null),p=!1,s(f)}}}function Na(t){let e,n,r,i;return{c(){e=B("div"),n=R(t[18]),this.h()},l(r){e=et(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var i=X(e);n=rt(i,t[18]),i.forEach(M),this.h()},h(){H(e,"class",r=ba.input__placeholder),H(e,"aria-hidden","true"),H(e,"style",i=ye(t[15]))},m(t,r){T(t,e,r),N(e,n)},p(t,r){262144&r[0]&&at(n,t[18]),32768&r[0]&&i!==(i=ye(t[15]))&&H(e,"style",i)},d(t){t&&M(e)}}}function Oa(t){let e;function n(t,e){return t[6]?Ia:Sa}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(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&&M(e),i.d(t)}}}function Ta(t){let e,n,r=!t[8]&&Fa(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[8]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),256&n[0]&&Wt(r,1)):(r=Fa(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const Ma="undefined"!=typeof document&&"inputMode"in document.createElement("input"),za={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};function Ba(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Ja(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I,N,O,T,M,z,B,J,R,L,U,W,H,q,G,K,Y,X,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,ht=n,pt=n,ft=n,gt=n,mt=n;var vt;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((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt()));let{json:yt={}}=e,{templateContext:$t}=e,{origJson:wt}=e,{layoutParams:kt}=e;const Et=xt(fe);let Ct,Vt,Dt,jt,Pt,St=!1,It=null,Nt="",Ot="",Tt=!1,Mt="",zt=12,Bt="",Jt="",Rt="#000",Lt="",Ut="left",Wt="center",Ht="multi_line_text",qt="text",Gt="",Kt=null,Yt="",Xt="",Zt="";function Qt(t){Vt instanceof HTMLInputElement?r(4,Vt.selectionStart=r(4,Vt.selectionEnd=t,Vt),Vt):Pa(Vt,t)}async function te(){if(!Vt||!It)return;It.overrideRawValue(I),s.set(It.rawValue),$(a,S=r(5,Nt=r(7,Ot=It.value)),S);const t=It.cursorPosition;await Ft(),document.activeElement===Vt&&Qt(t)}return bt((()=>{Vt&&It&&I&&(It.overrideRawValue(I),$(a,S=r(5,Nt=r(7,Ot=It.value)),S))})),_t((()=>{Ct&&(Et.unregisterFocusable(Ct),r(41,Ct=void 0))})),t.$$set=t=>{"json"in t&&r(0,yt=t.json),"templateContext"in t&&r(1,$t=t.templateContext),"origJson"in t&&r(2,wt=t.origJson),"layoutParams"in t&&r(3,kt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&yt&&(r(43,Mt=""),r(44,zt=12),r(45,Dt=void 0),r(46,Bt=""),r(47,jt=void 0),r(49,Rt="#000"),r(50,Lt=""),r(51,Ut="left"),r(52,Wt="center"),r(53,Ht="multi_line_text"),r(9,qt="text"),r(10,Pt=void 0)),1&t.$$.dirty[0]&&r(58,i=yt.text_variable),1&t.$$.dirty[0]|512&t.$$.dirty[1]&&r(59,o=null===r(40,vt=yt.mask)||void 0===vt?void 0:vt.raw_text_variable),134217728&t.$$.dirty[1]&&(r(13,a=i&&Et.getVariable(i,"string")||ra("temp","string","")),Z(),Z=h(a,(t=>r(60,S=t)))),268435456&t.$$.dirty[1]&&(r(12,s=o&&Et.getVariable(o,"string")||ra("temp","string","")),Q(),Q=h(s,(t=>r(61,I=t)))),1&t.$$.dirty[0]&&(r(35,l=Et.getDerivedFromVars(yt.hint_text)),gt(),gt=h(l,(t=>r(77,Y=t)))),1&t.$$.dirty[0]&&(r(34,c=Et.getDerivedFromVars(yt.hint_color)),ft(),ft=h(c,(t=>r(76,K=t)))),1&t.$$.dirty[0]&&(r(33,u=Et.getDerivedFromVars(yt.font_size)),pt(),pt=h(u,(t=>r(75,G=t)))),1&t.$$.dirty[0]&&(r(32,d=Et.getDerivedFromVars(yt.font_weight)),ht(),ht=h(d,(t=>r(74,q=t)))),1&t.$$.dirty[0]&&(r(31,p=Et.getDerivedFromVars(yt.font_family)),dt(),dt=h(p,(t=>r(73,H=t)))),1&t.$$.dirty[0]&&(r(30,f=Et.getDerivedFromVars(yt.line_height)),ut(),ut=h(f,(t=>r(72,W=t)))),1&t.$$.dirty[0]&&(r(29,g=Et.getDerivedFromVars(yt.letter_spacing)),ct(),ct=h(g,(t=>r(71,U=t)))),1&t.$$.dirty[0]&&(r(28,m=Et.getDerivedFromVars(yt.text_color)),lt(),lt=h(m,(t=>r(70,L=t)))),1&t.$$.dirty[0]&&(r(27,v=Et.getDerivedFromVars(yt.highlight_color)),st(),st=h(v,(t=>r(69,R=t)))),1&t.$$.dirty[0]&&(r(26,y=Et.getDerivedFromVars(yt.text_alignment_horizontal)),at(),at=h(y,(t=>r(68,J=t)))),1&t.$$.dirty[0]&&(r(25,b=Et.getDerivedFromVars(yt.text_alignment_vertical)),ot(),ot=h(b,(t=>r(67,B=t)))),1&t.$$.dirty[0]&&(r(24,_=Et.getDerivedFromVars(yt.keyboard_type)),it(),it=h(_,(t=>r(66,z=t)))),1&t.$$.dirty[0]&&(r(23,w=Et.getDerivedFromVars(yt.mask)),rt(),rt=h(w,(t=>r(65,M=t)))),1&t.$$.dirty[0]&&(r(22,x=Et.getDerivedFromVars(yt.max_visible_lines)),nt(),nt=h(x,(t=>r(64,T=t)))),1&t.$$.dirty[0]&&(r(21,k=Et.getDerivedFromVars(yt.paddings)),et(),et=h(k,(t=>r(63,O=t)))),1&t.$$.dirty[0]&&(r(20,E=Et.getDerivedFromVars(yt.accessibility)),tt(),tt=h(E,(t=>r(62,N=t)))),1&t.$$.dirty[0]&&(r(19,A=Et.getDerivedFromVars(yt.select_all_on_focus)),mt(),mt=h(A,(t=>r(36,X=t)))),134217728&t.$$.dirty[1]&&(i?r(8,Tt=!1):(r(8,Tt=!0),Et.logError(ge(new Error('Missing "text_variable" in "input"'))))),8&t.$$.dirty[2]&&("fixed_length"===(null==(e=M)?void 0:e.type)?r(42,It=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new Aa(r,e)}return n||null}(e,Et.logError,It)):"currency"===(null==e?void 0:e.type)&&r(42,It=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new Va(t.locale,e)}(e,Et.logError,It)),It&&te()),32&t.$$.dirty[0]|536872960&t.$$.dirty[1]&&(It||Nt===S||r(5,Nt=r(7,Ot=S))),1073743872&t.$$.dirty[1]&&It&&It.rawValue!==I&&te(),32768&t.$$.dirty[2]&&r(18,C=Y),4096&t.$$.dirty[1]|16384&t.$$.dirty[2]&&r(43,Mt=we(K,1,Mt)),8192&t.$$.dirty[1]|8192&t.$$.dirty[2]&&r(44,zt=Pn(G,zt)),16384&t.$$.dirty[1]|6144&t.$$.dirty[2]&&(r(45,Dt=Sn(q,Dt)),r(46,Bt=H&&"string"==typeof H?Et.typefaceProvider(H,{fontWeight:Dt||400}):"")),8192&t.$$.dirty[1]|1024&t.$$.dirty[2]){const t=W;cn(t)&&r(47,jt=t/zt)}var e;512&t.$$.dirty[2]&&Je(U)&&r(48,Jt=$e(U)),262144&t.$$.dirty[1]|256&t.$$.dirty[2]&&r(49,Rt=we(L,1,Rt)),524288&t.$$.dirty[1]|128&t.$$.dirty[2]&&r(50,Lt=we(R,1,Lt)),1048576&t.$$.dirty[1]|64&t.$$.dirty[2]&&r(51,Ut=zn(J,Ut)),2097152&t.$$.dirty[1]|32&t.$$.dirty[2]&&r(52,Wt=Bn(B,Wt)),24&t.$$.dirty[2]&&(z&&z in za&&(r(9,qt=za[z]),r(53,Ht=z)),"currency"===(null==M?void 0:M.type)&&(r(9,qt=Ma?"text":"tel"),r(10,Pt="decimal"))),4194304&t.$$.dirty[1]&&r(6,V="multi_line_text"===Ht),16850944&t.$$.dirty[1]|6&t.$$.dirty[2]&&(cn(T)?r(54,Gt="calc(".concat(T*(jt||1.25)*(zt/10)+"em"," + ").concat(be(Ue(null==O?void 0:O.top,0)+Ue(null==O?void 0:O.bottom,0)),")")):r(54,Gt=""),r(55,Kt=Xe(O||void 0,Kt)),r(56,Yt=Kt?Be({top:(Number(Kt.top)||0)/zt*10,right:(Number(Kt.right)||0)/zt*10,bottom:(Number(Kt.bottom)||0)/zt*10,left:(Number(Kt.left)||0)/zt*10}):""),r(57,Xt=Kt?Be({top:(Number(Kt.top)||0)/zt*10,bottom:(Number(Kt.bottom)||0)/zt*10}):"")),1&t.$$.dirty[2]&&((null==N?void 0:N.description)?r(11,Zt=N.description):Et.logError(ge(new Error('Missing accessibility "description" for input'),{level:"warn"}))),64&t.$$.dirty[0]|3670016&t.$$.dirty[1]&&r(17,D={"highlight-color":Boolean(Lt),multiline:V,"alignment-horizontal":Ut,"alignment-vertical":Wt}),9424896&t.$$.dirty[1]&&r(16,j={"--divkit-input-hint-color":Mt,"--divkit-input-highlight-color":Lt,"--divkit-input-line-height":jt,"font-weight":Dt,"font-family":Bt,"letter-spacing":Jt,color:Rt,"max-height":Gt}),33562624&t.$$.dirty[1]&&r(15,P={"font-size":$e(zt),padding:Yt}),67117056&t.$$.dirty[1]&&r(14,F={"font-size":$e(zt),padding:Xt}),25&t.$$.dirty[0]|1024&t.$$.dirty[1]&&Vt&&yt&&(Ct&&(Et.unregisterFocusable(Ct),r(41,Ct=void 0)),yt.id&&!(null==kt?void 0:kt.fakeElement)&&(r(41,Ct=yt.id),Et.registerFocusable(yt.id,{focus(){Vt&&Vt.focus()}})))},[yt,$t,wt,kt,Vt,Nt,V,Ot,Tt,qt,Pt,Zt,s,a,F,P,j,D,C,A,E,k,x,w,_,b,y,v,m,g,f,p,d,u,c,l,X,function(t){let e=(V?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Nt!==e&&(r(5,Nt=r(7,Ot=e)),a.setValue(e),It&&async function(){if(!Vt||!It)return;It.applyChangeFrom(Nt,Vt instanceof HTMLInputElement?null===Vt.selectionEnd?void 0:Vt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const 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+=ja(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+=ja(t.childNodes[e]);o instanceof HTMLElement&&("DIV"===o.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===Da||"BR"===o.tagName)&&++n,o=t}return n}catch(t){return 0}}(Vt)),s.set(It.rawValue),$(a,S=r(5,Nt=r(7,Ot=It.value)),S);const t=It.cursorPosition;await Ft(),document.activeElement===Vt&&Qt(t)}())},function(){St=!1,setTimeout((()=>{St=!0}),250)},function(){if(!St)if(Vt instanceof HTMLInputElement)Vt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(Vt),t&&(t.removeAllRanges(),t.addRange(e))}},vt,Ct,It,Mt,zt,Dt,Bt,jt,Jt,Rt,Lt,Ut,Wt,Ht,Gt,Kt,Yt,Xt,i,o,S,I,N,O,T,M,z,B,J,R,L,U,W,H,q,G,K,Y,function(t){At[t?"unshift":"push"]((()=>{Vt=t,r(4,Vt)}))},function(){Ot=this.innerText,r(7,Ot),r(42,It),r(5,Nt),r(60,S)},function(t){At[t?"unshift":"push"]((()=>{Vt=t,r(4,Vt)}))}]}const Ra={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 La(t,e,n){const r=t.slice();return r[53]=e[n],r}function Ua(t){let e,n;return e=new Dn({props:{cls:Me("select",Ra,t[13]),style:t[12],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ha,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{50:e,51:n,52:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?524288:0)|(n?1048576:0)|(r?2097152:0)]}]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Me("select",Ra,t[13])),4096&n[0]&&(r.style=t[12]),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]),33558256&n[0]|37224448&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Wa(t){let e,n,r,i,o=(t[53].text||t[53].value)+"";return{c(){e=B("option"),n=R(o),this.h()},l(t){e=et(t,"OPTION",{class:!0});var r=X(e);n=rt(r,o),r.forEach(M),this.h()},h(){H(e,"class",r=Ra.select__option),e.__value=i=t[53].value,st(e,e.__value)},m(t,r){T(t,e,r),N(e,n)},p(t,r){64&r[0]&&o!==(o=(t[53].text||t[53].value)+"")&&at(n,o),64&r[0]&&i!==(i=t[53].value)&&(e.__value=i,st(e,e.__value))},d(t){t&&M(e)}}}function Ha(t){let e,n,r,i,o,a,c,u,d,h,p=(t[5]||t[25]||"​")+"",f=Kt(t[6]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Wa(La(t,f,e));return{c(){e=B("span"),n=R(p),o=L(),a=B("select");for(let t=0;t<g.length;t+=1)g[t].c();this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=X(e);n=rt(r,p),r.forEach(M),o=it(t),a=et(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var i=X(a);for(let t=0;t<g.length;t+=1)g[t].l(i);i.forEach(M),this.h()},h(){H(e,"class",r=Ra["select__select-text"]),H(e,"style",i=ye(t[11])),H(e,"aria-hidden","true"),H(a,"class",c=Me("select__select",Ra,{"has-custom-focus":t[50]})),H(a,"aria-label",t[9]),H(a,"style",u=ye(t[10])),void 0===t[7]&&St((()=>t[48].call(a)))},m(r,i){T(r,e,i),N(e,n),T(r,o,i),T(r,a,i);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);t[47](a),ct(a,t[7],!0),d||(h=[W(a,"change",t[48]),W(a,"focus",(function(){l(t[51])&&t[51].apply(this,arguments)})),W(a,"blur",(function(){l(t[52])&&t[52].apply(this,arguments)}))],d=!0)},p(r,o){if(t=r,33554464&o[0]&&p!==(p=(t[5]||t[25]||"​")+"")&&at(n,p),2048&o[0]&&i!==(i=ye(t[11]))&&H(e,"style",i),64&o[0]){let e;for(f=Kt(t[6]),e=0;e<f.length;e+=1){const n=La(t,f,e);g[e]?g[e].p(n,o):(g[e]=Wa(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}524288&o[1]&&c!==(c=Me("select__select",Ra,{"has-custom-focus":t[50]}))&&H(a,"class",c),512&o[0]&&H(a,"aria-label",t[9]),1024&o[0]&&u!==(u=ye(t[10]))&&H(a,"style",u),192&o[0]&&ct(a,t[7])},d(n){n&&(M(e),M(o),M(a)),z(g,n),t[47](null),d=!1,s(h)}}}function qa(t){let e,n,r=!t[8]&&Ua(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[8]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),256&n[0]&&Wt(r,1)):(r=Ua(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Ga(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I=n,N=n,O=n,T=n,M=n,z=n,B=n,J=n,R=n,L=n,U=n;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U()));let{json:W={}}=e,{templateContext:H}=e,{origJson:q}=e,{layoutParams:G}=e;const K=xt(fe);let Y,X,Z,Q,tt=!1,et="",nt=null,rt="",it="rgba(0,0,0,.45)",ot=12,at="",st="",lt="#000",ct="";return _t((()=>{Y&&(K.unregisterFocusable(Y),r(26,Y=void 0))})),t.$$set=t=>{"json"in t&&r(0,W=t.json),"templateContext"in t&&r(1,H=t.templateContext),"origJson"in t&&r(2,q=t.origJson),"layoutParams"in t&&r(3,G=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&W&&(r(27,nt=null),r(29,it="rgba(0,0,0,.45)"),r(30,ot=12),r(31,Z=void 0),r(32,at=""),r(33,Q=void 0),r(34,st=""),r(35,lt="#000"),r(9,ct="")),1&t.$$.dirty[0]&&r(36,i=W.value_variable),1&t.$$.dirty[0]&&r(37,o=W.options),64&t.$$.dirty[1]&&r(6,a=Array.isArray(o)&&o.filter((t=>"string"==typeof t.value))||[]),32&t.$$.dirty[1]&&(r(24,s=i&&K.getVariable(i,"string")||ra("temp","string","")),L(),L=h(s,(t=>r(7,F=t)))),1&t.$$.dirty[0]&&(r(23,l=K.getDerivedFromVars(W.paddings)),R(),R=h(l,(t=>r(46,P=t)))),1&t.$$.dirty[0]&&(r(22,c=K.getDerivedFromVars(W.hint_text)),U(),U=h(c,(t=>r(25,S=t)))),1&t.$$.dirty[0]&&(r(21,u=K.getDerivedFromVars(W.hint_color)),J(),J=h(u,(t=>r(45,j=t)))),1&t.$$.dirty[0]&&(r(20,d=K.getDerivedFromVars(W.font_size)),B(),B=h(d,(t=>r(44,D=t)))),1&t.$$.dirty[0]&&(r(19,p=K.getDerivedFromVars(W.font_weight)),z(),z=h(p,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(18,f=K.getDerivedFromVars(W.font_family)),M(),M=h(f,(t=>r(42,C=t)))),1&t.$$.dirty[0]&&(r(17,g=K.getDerivedFromVars(W.line_height)),T(),T=h(g,(t=>r(41,A=t)))),1&t.$$.dirty[0]&&(r(16,m=K.getDerivedFromVars(W.letter_spacing)),O(),O=h(m,(t=>r(40,E=t)))),1&t.$$.dirty[0]&&(r(15,v=K.getDerivedFromVars(W.text_color)),N(),N=h(v,(t=>r(39,k=t)))),1&t.$$.dirty[0]&&(r(14,y=K.getDerivedFromVars(W.accessibility)),I(),I=h(y,(t=>r(38,x=t)))),64&t.$$.dirty[0]&&(Array.isArray(a)&&a.length||K.logError(ge(new Error('Empty selection "items" in "select"')))),32&t.$$.dirty[1]&&(i?r(8,tt=!1):(r(8,tt=!0),K.logError(ge(new Error('Missing "value_variable" in "select"'))))),192&t.$$.dirty[0]){const t=a.find((t=>t.value===F));t?r(5,et="string"==typeof t.text?t.text:t.value):(r(5,et=""),F&&K.logError(ge(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1073741824&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(30,ot=Pn(D,ot)),1207959552&t.$$.dirty[0]|32768&t.$$.dirty[1]&&(r(27,nt=Xe(P||void 0,nt)),r(28,rt=nt?Be({top:(Number(nt.top)||0)/ot*10,right:(Number(nt.right)||0)/ot*10,bottom:(Number(nt.bottom)||0)/ot*10,left:(Number(nt.left)||0)/ot*10}):"")),536870912&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(29,it=we(j,1,it)),6145&t.$$.dirty[1]&&(r(31,Z=Sn(V,Z)),r(32,at=C&&"string"==typeof C?K.typefaceProvider(C,{fontWeight:Z||400}):"")),1073741824&t.$$.dirty[0]|1024&t.$$.dirty[1]){const t=A;cn(t)&&r(33,Q=t/ot)}1073741824&t.$$.dirty[0]|512&t.$$.dirty[1]&&Je(E)&&r(34,st=$e(E/ot*10)),272&t.$$.dirty[1]&&r(35,lt=we(k,1,lt)),128&t.$$.dirty[1]&&((null==x?void 0:x.description)?r(9,ct=x.description):K.logError(ge(new Error('Missing accessibility "description" for select'),{level:"warn"}))),32&t.$$.dirty[0]&&r(13,$={hint:!et}),536870912&t.$$.dirty[0]|19&t.$$.dirty[1]&&r(12,b={"--divkit-input-hint-color":it,"font-weight":Z,"font-family":at,color:lt}),1342177280&t.$$.dirty[0]|12&t.$$.dirty[1]&&r(11,_={padding:rt,"font-size":$e(ot),"line-height":Q,"letter-spacing":st}),1073741824&t.$$.dirty[0]|12&t.$$.dirty[1]&&r(10,w={"font-size":$e(ot),"line-height":Q,"letter-spacing":st}),67108889&t.$$.dirty[0]&&W&&X&&(Y&&(K.unregisterFocusable(Y),r(26,Y=void 0)),W.id&&!(null==G?void 0:G.fakeElement)&&(r(26,Y=W.id),K.registerFocusable(W.id,{focus(){X&&X.focus()}})))},[W,H,q,G,X,et,a,F,tt,ct,w,_,b,$,y,v,m,g,f,p,d,u,c,l,s,S,Y,nt,rt,it,ot,Z,at,Q,st,lt,i,o,x,k,E,A,C,V,D,j,P,function(t){At[t?"unshift":"push"]((()=>{X=t,r(4,X)}))},function(){F=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),s.set(F),r(6,a),r(37,o),r(0,W)}]}const Ka={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function Ya(t,e,n){const r=t.slice();return r[44]=e[n],r}function Xa(t,e,n){const r=t.slice();return r[44]=e[n],r}function Za(t){let e,n;return e=new Dn({props:{cls:Me("video",Ka,t[13]),customActions:"video",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[rs]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Me("video",Ka,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]),16352&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Qa(t){let e,n,r,i,o,a=Kt(t[6]),l=[];for(let e=0;e<a.length;e+=1)l[e]=es(Ya(t,a,e));return{c(){e=B("video");for(let t=0;t<l.length;t+=1)l[t].c();this.h()},l(t){e=et(t,"VIDEO",{class:!0,style:!0,poster:!0});var n=X(e);for(let t=0;t<l.length;t+=1)l[t].l(n);n.forEach(M),this.h()},h(){H(e,"class",n=Ka.video__video),H(e,"style",r=ye(t[12])),e.playsInline=!0,e.loop=t[7],e.autoplay=t[8],e.muted=t[9],H(e,"poster",t[10])},m(n,r){T(n,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);t[40](e),i||(o=[W(e,"timeupdate",t[21]),W(e,"ended",t[22]),W(e,"playing",t[23]),W(e,"pause",t[24]),W(e,"waiting",t[25]),W(e,"error",t[26])],i=!0)},p(t,n){if(67108928&n[0]){let r;for(a=Kt(t[6]),r=0;r<a.length;r+=1){const i=Ya(t,a,r);l[r]?l[r].p(i,n):(l[r]=es(i),l[r].c(),l[r].m(e,null))}for(;r<l.length;r+=1)l[r].d(1);l.length=a.length}4096&n[0]&&r!==(r=ye(t[12]))&&H(e,"style",r),128&n[0]&&(e.loop=t[7]),256&n[0]&&(e.autoplay=t[8]),512&n[0]&&(e.muted=t[9]),1024&n[0]&&H(e,"poster",t[10])},d(n){n&&M(e),z(l,n),t[40](null),i=!1,s(o)}}}function ts(t){let e,n,r,i,o,a,l,c="".concat(t[11],"%"),u=Kt(t[6]),d=[];for(let e=0;e<u.length;e+=1)d[e]=ns(Xa(t,u,e));return{c(){e=B("div"),n=B("video");for(let t=0;t<d.length;t+=1)d[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0});var r=X(e);n=et(r,"VIDEO",{class:!0,style:!0,poster:!0});var i=X(n);for(let t=0;t<d.length;t+=1)d[t].l(i);i.forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=Ka.video__video),H(n,"style",i=ye(t[12])),n.playsInline=!0,n.loop=t[7],n.autoplay=t[8],n.muted=t[9],H(n,"poster",t[10]),H(e,"class",o=Ka["video__aspect-wrapper"]),lt(e,"padding-bottom",c)},m(r,i){T(r,e,i),N(e,n);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(n,null);t[39](n),a||(l=[W(n,"timeupdate",t[21]),W(n,"ended",t[22]),W(n,"playing",t[23]),W(n,"pause",t[24]),W(n,"waiting",t[25]),W(n,"error",t[26])],a=!0)},p(t,r){if(67108928&r[0]){let e;for(u=Kt(t[6]),e=0;e<u.length;e+=1){const i=Xa(t,u,e);d[e]?d[e].p(i,r):(d[e]=ns(i),d[e].c(),d[e].m(n,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}4096&r[0]&&i!==(i=ye(t[12]))&&H(n,"style",i),128&r[0]&&(n.loop=t[7]),256&r[0]&&(n.autoplay=t[8]),512&r[0]&&(n.muted=t[9]),1024&r[0]&&H(n,"poster",t[10]),2048&r[0]&&c!==(c="".concat(t[11],"%"))&&lt(e,"padding-bottom",c)},d(n){n&&M(e),z(d,n),t[39](null),a=!1,s(l)}}}function es(t){let e,n,r,i,o;return{c(){e=B("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[44].src)||H(e,"src",n),H(e,"type",r=t[44].type)},m(n,r){T(n,e,r),i||(o=W(e,"error",t[26]),i=!0)},p(t,i){64&i[0]&&!u(e.src,n=t[44].src)&&H(e,"src",n),64&i[0]&&r!==(r=t[44].type)&&H(e,"type",r)},d(t){t&&M(e),i=!1,o()}}}function ns(t){let e,n,r,i,o;return{c(){e=B("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[44].src)||H(e,"src",n),H(e,"type",r=t[44].type)},m(n,r){T(n,e,r),i||(o=W(e,"error",t[26]),i=!0)},p(t,i){64&i[0]&&!u(e.src,n=t[44].src)&&H(e,"src",n),64&i[0]&&r!==(r=t[44].type)&&H(e,"type",r)},d(t){t&&M(e),i=!1,o()}}}function rs(t){let e;function n(t,e){return t[13].aspect?ts:Qa}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(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&&M(e),i.d(t)}}}function is(t){let e,n,r=!t[4]&&Za(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[4]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),16&n[0]&&Wt(r,1)):(r=Za(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function os(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x=n,k=n,E=n,A=n,C=n,V=n,D=n;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D()));let{json:j={}}=e,{templateContext:P}=e,{origJson:F}=e,{layoutParams:S}=e;const I=xt(fe);let N,O,T,M,z=!1,B=!1,J=[],R=!1,L=!1,U=!1,W="fit",H="0";function q(t){B?B=!1:O&&r(5,O.currentTime=Number(t)/1e3,O)}return _t((()=>{N&&(I.unregisterInstance(N),r(27,N=void 0)),M&&(M(),r(29,M=void 0))})),t.$$set=t=>{"json"in t&&r(0,j=t.json),"templateContext"in t&&r(1,P=t.templateContext),"origJson"in t&&r(2,F=t.origJson),"layoutParams"in t&&r(3,S=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&j&&(r(7,R=!1),r(8,L=!1),r(9,U=!1),r(10,T=void 0),r(28,W="fit")),1&t.$$.dirty[0]&&r(31,i=j.elapsed_time_variable),1&t.$$.dirty[1]&&r(30,o=i&&I.getVariable(i,"integer")||ra("temp","integer",0)),1610612736&t.$$.dirty[0]&&o&&(M&&M(),r(29,M=o.subscribe(q))),1&t.$$.dirty[0]&&(r(20,a=I.getDerivedFromVars(j.video_sources)),D(),D=h(a,(t=>r(38,w=t)))),1&t.$$.dirty[0]&&(r(19,s=I.getDerivedFromVars(j.repeatable)),V(),V=h(s,(t=>r(37,_=t)))),1&t.$$.dirty[0]&&(r(18,l=I.getDerivedFromVars(j.autostart)),C(),C=h(l,(t=>r(36,b=t)))),1&t.$$.dirty[0]&&(r(17,c=I.getDerivedFromVars(j.muted)),A(),A=h(c,(t=>r(35,$=t)))),1&t.$$.dirty[0]&&(r(16,u=I.getDerivedFromVars(j.preview)),E(),E=h(u,(t=>r(34,y=t)))),1&t.$$.dirty[0]&&(r(15,d=I.getDerivedFromVars(j.scale)),k(),k=h(d,(t=>r(33,v=t)))),1&t.$$.dirty[0]&&(r(14,p=I.getDerivedFromVars(j.aspect)),x(),x=h(p,(t=>r(32,m=t)))),64&t.$$.dirty[0]|128&t.$$.dirty[1]&&(r(6,(e=w,n=J,J=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):n)),J.length?r(4,z=!1):(r(4,z=!0),I.logError(ge(new Error('Missing "video_sources" in "video"'))))),128&t.$$.dirty[0]|64&t.$$.dirty[1]&&r(7,R=Jn(_,R)),256&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(8,L=Jn(b,L)),512&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(9,U=Jn($,U)),1024&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(10,T="string"==typeof y?Nr(y):T),268435456&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(28,W=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}(v)||W),2&t.$$.dirty[1]){const t=null==m?void 0:m.ratio;t&&cn(t)?r(11,H=(100/Number(t)).toFixed(2)):r(11,H="0")}134217785&t.$$.dirty[0]&&j&&(N&&(I.unregisterInstance(N),r(27,N=void 0)),!j.id||z||(null==S?void 0:S.fakeElement)||(r(27,N=j.id),I.registerInstance(j.id,{pause(){null==O||O.pause()},start(){const t=null==O?void 0:O.play();t&&t.catch((t=>{I.logError(ge(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}}))),2048&t.$$.dirty[0]&&r(13,f={aspect:"0"!==H}),268435456&t.$$.dirty[0]&&r(12,g={"object-fit":W})},[j,P,F,S,z,O,J,R,L,U,T,H,g,f,p,d,u,c,l,s,a,function(){O&&(B=!0,o.setValue(Math.floor(1e3*O.currentTime)))},function(){const t=I.getJsonWithVars(j.end_actions);I.execAnyActions(t)},function(){const t=I.getJsonWithVars(j.resume_actions);I.execAnyActions(t)},function(){const t=I.getJsonWithVars(j.pause_actions);I.execAnyActions(t)},function(){const t=I.getJsonWithVars(j.buffering_actions);I.execAnyActions(t)},function(){const t=I.getJsonWithVars(j.fatal_actions);I.execAnyActions(t)},N,W,M,o,i,m,v,y,$,b,_,w,function(t){At[t?"unshift":"push"]((()=>{O=t,r(5,O)}))},function(t){At[t?"unshift":"push"]((()=>{O=t,r(5,O)}))}]}function as(t,e,n){const r=t.slice();return r[15]=e[n],r}function ss(t){let e,n;return e=new Dn({props:{json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ps]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),266225&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function ls(t){let e,n,r=[t[9]],o={};for(let t=0;t<r.length;t+=1)o=i(o,r[t]);return{c(){e=B("template"),n=new dt(!1),this.h()},l(t){e=et(t,"TEMPLATE",{});var r=X(e.content);n=function(t,e){const n=ot(t,"HTML_TAG_START",0),r=ot(t,"HTML_TAG_END",n+1);if(-1===n||-1===r)return new dt(false);Z(t);const i=t.splice(n,r-n+1);M(i[0]),M(i[i.length-1]);const o=i.slice(1,i.length-1);for(const e of o)e.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new dt(false,o)}(r),r.forEach(M),this.h()},h(){n.a=null,G(e,o)},m(r,i){T(r,e,i),n.m(t[8],e.content)},p(t,i){256&i&&n.p(t[8]),G(e,o=Zt(r,[512&i&&t[9]]))},d(t){t&&M(e)}}}function cs(t){let e,r,i=t[6],o=ds(t);return{c(){o.c(),e=U()},l(t){o.l(t),e=U()},m(t,n){o.m(t,n),T(t,e,n),r=!0},p(t,r){64&r&&d(i,i=t[6])?(Lt(),Ht(o,1,1,n),Ut(),o=ds(t),o.c(),Wt(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Wt(o),r=!0)},o(t){Ht(o),r=!1},d(t){t&&M(e),o.d(t)}}}function us(t){let e,n;return e=new bs({props:{layoutParams:t[10],div:t[15].json,templateContext:t[15].templateContext,origJson:t[15].origJson}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1024&n&&(r.layoutParams=t[10]),2048&n&&(r.div=t[15].json),2048&n&&(r.templateContext=t[15].templateContext),2048&n&&(r.origJson=t[15].origJson),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function ds(t){let e,n,r=Kt(t[11]),i=[];for(let e=0;e<r.length;e+=1)i[e]=us(as(t,r,e));const o=t=>Ht(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(3072&n){let a;for(r=Kt(t[11]),a=0;a<r.length;a+=1){const o=as(t,r,a);i[a]?(i[a].p(o,n),Wt(i[a],1)):(i[a]=us(o),i[a].c(),Wt(i[a],1),i[a].m(e.parentNode,e))}for(Lt(),a=r.length;a<i.length;a+=1)o(a);Ut()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Wt(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Ht(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function hs(t){let e,n,r,o=t[8]&&ls(t),a=!t[5]&&t[6]&&cs(t),s=[t[0].custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=i(l,s[t]);return{c(){e=B(t[4].element),o&&o.c(),n=L(),a&&a.c(),this.h()},l(r){e=et(r,(t[4].element||"null").toUpperCase(),{});var i=X(e);o&&o.l(i),n=it(i),a&&a.l(i),i.forEach(M),this.h()},h(){Y(t[4].element)(e,l)},m(i,s){T(i,e,s),o&&o.m(e,null),N(e,n),a&&a.m(e,null),t[13](e),r=!0},p(t,r){t[8]?o?o.p(t,r):(o=ls(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),!t[5]&&t[6]?a?(a.p(t,r),96&r&&Wt(a,1)):(a=cs(t),a.c(),Wt(a,1),a.m(e,null)):a&&(Lt(),Ht(a,1,1,(()=>{a=null})),Ut()),Y(t[4].element)(e,l=Zt(s,[1&r&&(t[0].custom_props||{})]))},i(t){r||(Wt(a),r=!0)},o(t){Ht(a),r=!1},d(n){n&&M(e),o&&o.d(),a&&a.d(),t[13](null)}}}function ps(t){let e,r,i=t[4].element,o=t[4].element&&hs(t);return{c(){o&&o.c(),e=U()},l(t){o&&o.l(t),e=U()},m(t,n){o&&o.m(t,n),T(t,e,n)},p(t,n){t[4].element?i?d(i,t[4].element)?(o.d(1),o=hs(t),i=t[4].element,o.c(),o.m(e.parentNode,e)):o.p(t,n):(o=hs(t),i=t[4].element,o.c(),o.m(e.parentNode,e)):i&&(o.d(1),o=null,i=t[4].element)},i:n,o(t){Ht(o,t),r=!1},d(t){t&&M(e),o&&o.d(t)}}}function fs(t){let e,n,r=t[4]&&ss(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){let[i]=n;t[4]?r?(r.p(t,i),16&i&&Wt(r,1)):(r=ss(t),r.c(),Wt(r,1),r.m(e.parentNode,e)):r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut())},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function gs(t,e,n){let r,i,o;var a;let{json:s={}}=e,{templateContext:l}=e,{origJson:c}=e,{layoutParams:u}=e;const d=xt(fe);let h,p=null,f="",g={},m=!1;return bt((()=>{if(h&&"divKitApiCallback"in h&&"function"==typeof h.divKitApiCallback){const t=d.getExtensionContext();h.divKitApiCallback(t)}})),t.$$set=t=>{"json"in t&&n(0,s=t.json),"templateContext"in t&&n(1,l=t.templateContext),"origJson"in t&&n(2,c=t.origJson),"layoutParams"in t&&n(3,u=t.layoutParams)},t.$$.update=()=>{if(4113&t.$$.dirty)if("string"==typeof s.custom_type&&s.custom_type&&(null===n(12,a=d.customComponents)||void 0===a?void 0:a.has(s.custom_type))){if(n(4,p=d.customComponents.get(s.custom_type)),"function"==typeof p.template){const t=d.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(8,f=p.template({props:s.custom_props,variables:e}))}else p.template&&"string"==typeof p.template?n(8,f=p.template):n(8,f="");n(9,g={shadowrootmode:p.shadowRootMode||"open"})}else n(4,p=null),n(8,f=";"),d.logError(ge(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(6,r=s.items),64&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(5,m=!1):(n(5,m=!0),d.logError(ge(new Error('Incorrect "items" prop for div "custom"'))))),98&t.$$.dirty&&n(11,i=(!m&&r||[]).map((t=>{let e=t,n=l;return({templateContext:n,json:e}=d.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),8&t.$$.dirty&&n(10,o={fakeElement:null==u?void 0:u.fakeElement})},[s,l,c,u,p,m,r,h,f,g,o,i,a,function(t){At[t?"unshift":"push"]((()=>{h=t,n(7,h)}))}]}const ms={};function vs(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=ht(i,o(t))),{c(){e&&re(e.$$.fragment),n=U()},l(t){e&&ie(e.$$.fragment,t),n=U()},m(t,i){e&&oe(e,t,i),T(t,n,i),r=!0},p(t,r){if(32&r&&i!==(i=t[5])){if(e){Lt();const t=e;Ht(t.$$.fragment,1,0,(()=>{ae(t,1)})),Ut()}i?(e=ht(i,o(t)),re(e.$$.fragment),Wt(e.$$.fragment,1),oe(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&&Wt(e.$$.fragment,t),r=!0)},o(t){e&&Ht(e.$$.fragment,t),r=!1},d(t){t&&M(n),e&&ae(e,t)}}}function ys(t){let e,n,r=t[5]&&vs(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&Wt(r,1)):(r=vs(t),r.c(),Wt(r,1),r.m(e.parentNode,e)):r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut())},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function $s(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const s=xt(fe);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&&ms[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&&ms[l.type]||void 0),!u))){let t;t=(null==l?void 0:l.type)&&s.hasTemplate(l.type)?"Recursive template":"Unknown component",s.logError(ge(new Error(t),{additional:{component:(null==l?void 0:l.type)||"<missing>"}}))}},[r,o,a,l,c,u,i]}ms.text=class extends ce{constructor(t){super(),se(this,t,Qn,Zn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.container=class extends ce{constructor(t){super(),se(this,t,Cr,xr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.separator=class extends ce{constructor(t){super(),se(this,t,Sr,Fr,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},ms.image=Wr,ms.gif=Wr,ms.grid=class extends ce{constructor(t){super(),se(this,t,ei,ti,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.gallery=class extends ce{constructor(t){super(),se(this,t,mi,gi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ms.tabs=class extends ce{constructor(t){super(),se(this,t,Si,Fi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1,-1])}},ms.state=class extends ce{constructor(t){super(),se(this,t,Eo,xo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.pager=class extends ce{constructor(t){super(),se(this,t,No,Io,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ms.indicator=class extends ce{constructor(t){super(),se(this,t,Lo,Jo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.slider=class extends ce{constructor(t){super(),se(this,t,$a,fa,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ms.input=class extends ce{constructor(t){super(),se(this,t,Ja,Ta,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ms.select=class extends ce{constructor(t){super(),se(this,t,Ga,qa,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.video=class extends ce{constructor(t){super(),se(this,t,os,is,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.custom=class extends ce{constructor(t){super(),se(this,t,gs,fs,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}};const bs=class extends ce{constructor(t){super(),se(this,t,$s,ys,d,{div:0,templateContext:6,origJson:1,layoutParams:2})}},_s={"root-svg-filters":"divkit-dc22b"};function ws(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 xs(t){let e,n,r,i=Kt([...Object.keys(t[0])]),o=[];for(let e=0;e<i.length;e+=1)o[e]=Cs(ws(t,i,e));return{c(){e=J("svg"),n=J("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=nt(t,"svg",{class:!0,"aria-hidden":!0});var r=X(e);n=nt(r,"defs",{});var i=X(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(M),r.forEach(M),this.h()},h(){H(e,"class",r=_s["root-svg-filters"]),H(e,"aria-hidden","true")},m(t,r){T(t,e,r),N(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=Kt([...Object.keys(t[0])]),r=0;r<i.length;r+=1){const a=ws(t,i,r);o[r]?o[r].p(a,e):(o[r]=Cs(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&&M(e),z(o,t)}}}function ks(t){let e,n;return{c(){e=J("feBlend"),this.h()},l(t){e=nt(t,"feBlend",{in2:!0,mode:!0}),X(e).forEach(M),this.h()},h(){H(e,"in2","SourceGraphic"),H(e,"mode",n=t[3])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&H(e,"mode",n)},d(t){t&&M(e)}}}function Es(t){let e;return{c(){e=J("feComposite"),this.h()},l(t){e=nt(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),X(e).forEach(M),this.h()},h(){H(e,"in2","SourceGraphic"),H(e,"operator","arithmetic"),H(e,"k1","1"),H(e,"k2","0"),H(e,"k3","0"),H(e,"k4","0")},m(t,n){T(t,e,n)},p:n,d(t){t&&M(e)}}}function As(t){let e,n;return{c(){e=J("feComposite"),this.h()},l(t){e=nt(t,"feComposite",{in2:!0,operator:!0}),X(e).forEach(M),this.h()},h(){H(e,"in2","SourceGraphic"),H(e,"operator",n=t[3].split("_")[1])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&H(e,"operator",n)},d(t){t&&M(e)}}}function Cs(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?As:"multiply"===t[3]?Es:ks}let a=o(t),s=a(t);return{c(){e=J("filter"),n=J("feFlood"),s.c(),this.h()},l(t){e=nt(t,"filter",{id:!0});var r=X(e);n=nt(r,"feFlood",{"flood-color":!0}),X(n).forEach(M),s.l(r),r.forEach(M),this.h()},h(){H(n,"flood-color",r=t[2]),H(e,"id",i=t[0][t[1]])},m(t,r){T(t,e,r),N(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&H(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]])&&H(e,"id",i)},d(t){t&&M(e),s.d()}}}function Vs(t){let e,r=Object.keys(t[0]).length,i=r&&xs(t);return{c(){i&&i.c(),e=U()},l(t){i&&i.l(t),e=U()},m(t,n){i&&i.m(t,n),T(t,e,n)},p(t,n){let[o]=n;1&o&&(r=Object.keys(t[0]).length),r?i?i.p(t,o):(i=xs(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:n,o:n,d(t){t&&M(e),i&&i.d(t)}}}function Ds(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const js=class extends ce{constructor(t){super(),se(this,t,Ds,Vs,d,{svgFiltersMap:0})}};function Ps(t,e,n,r){const i=n[t.type];if(!i)return r(ge(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 Fs(){}function Ss(t){return{subscribe:e=>(e(t),Fs)}}function Is(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function Ns(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function Os(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 Ts(t){try{return Xo(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function Ms(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function zs(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,zs.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function Bs(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Js(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:je,JsonStringContents:function(){var t,e,n;for(t=ve,e=[],n=Pe();n!==r;)e.push(n),n=Pe();return ye=t,e=St(e)}},a=je,s="@{",l="}",c="@{}",u="\\",d="?",h=":",p="!:",f="||",g="&&",m="==",v="!=",y=">=",$=">",b="<=",_="<",w="+",x="-",k="/",E="*",A="%",C="!",V="(",D=")",j=",",P="'",F=".",S="e",I="E",N="true",O="false",T=/^[^}]/,M=/^[^'}]/,z=/^[0-9]/,B=/^[a-zA-Z_0-9.]/,J=/^[a-zA-Z_]/,R=/^[ \t\r\n]/,L=ke("@{",!1),U=ke("}",!1),W=ke("@{}",!1),H=ke("\\",!1),q={type:"any"},G=Ee(["}"],!0,!1),K=ke("?",!1),Y=ke(":",!1),X=ke("!:",!1),Z=ke("||",!1),Q=ke("&&",!1),tt=ke("==",!1),et=ke("!=",!1),nt=ke(">=",!1),rt=ke(">",!1),it=ke("<=",!1),ot=ke("<",!1),at=ke("+",!1),st=ke("-",!1),lt=ke("/",!1),ct=ke("*",!1),ut=ke("%",!1),dt=ke("!",!1),ht=ke("(",!1),pt=ke(")",!1),ft=ke(",",!1),gt=Ae("string"),mt=ke("'",!1),vt=Ee(["'","}"],!0,!1),yt=Ae("integer"),$t=Ee([["0","9"]],!1,!1),bt=Ae("number"),_t=ke(".",!1),wt=ke("e",!1),xt=ke("E",!1),kt=Ae("boolean"),Et=ke("true",!1),At=ke("false",!1),Ct=Ee([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),Vt=Ae("identifier"),Dt=Ee([["a","z"],["A","Z"],"_"],!1,!1),jt=Ae("whitespace"),Pt=Ee([" ","\t","\r","\n"],!1,!1),Ft=function(t){return t},St=function(t){return Os(t)},It=function(t){return t},Nt=function(){return""},Ot=function(){return xe()},Tt=function(){throw new Error("Error tokenizing '"+t+"'.")},Mt=function(){throw new Error("Error tokenizing '"+t+"'.")},zt=function(t){return t},Bt=function(t){return Ms(t)},Jt=function(){throw new Error("Error tokenizing '"+t+"'.")},Rt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Lt=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Ut=function(t,e){return Ns(t,e)},Wt=function(t,e){return Ns(t,e)},Ht=function(t,e){return Is(t,e)},qt=function(t,e){return Is(t,e)},Gt=function(t,e){return Is(t,e)},Kt=function(t,e){return Is(t,e)},Yt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Xt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Zt=function(t){return{type:"Variable",id:t}},Qt=function(t,e){return[t,...e]},te=function(t){return t},ee=function(t){return t},ne=function(t){return Os(t)},re=function(t){return t},ie=function(){return""},oe=function(){return xe()},ae=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){throw new Error("Error tokenizing '"+t+"'.")},le=function(t){return t},ce=function(t){return Ms(t)},ue=function(){throw new Error("Error tokenizing '"+t+"'.")},de=function(){return{type:"IntegerLiteral",value:Ts(xe())}},he=function(){return{type:"NumberLiteral",value:parseFloat(xe())}},pe=function(){return{type:"NumberLiteral",value:parseFloat(xe())}},fe=function(){return{type:"BooleanLiteral",value:!0}},ge=function(){return{type:"BooleanLiteral",value:!1}},me=function(){return{type:"Identifier",name:xe()}},ve=0,ye=0,$e=[{line:1,column:1}],be=0,_e=[],we=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 xe(){return t.substring(ye,ve)}function ke(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ee(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Ae(t){return{type:"other",description:t}}function Ce(e){var n,r=$e[e];if(r)return r;for(n=e-1;!$e[n];)n--;for(r={line:(r=$e[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return $e[e]=r,r}function Ve(t,e,n){var r=Ce(t),o=Ce(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 De(t){ve<be||(ve>be&&(be=ve,_e=[]),_e.push(t))}function je(){var t,e;return t=ve,We(),(e=Fe())!==r?(We(),ye=t,t=Ft(e)):(ve=t,t=r),t}function Pe(){var e,n,i,o,a;if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r?(i=We(),(o=Fe())!==r?(We(),125===t.charCodeAt(ve)?(a=l,ve++):(a=r,0===we&&De(U)),a!==r?(ye=e,e=It(o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,t.substr(ve,3)===c?(n=c,ve+=3):(n=r,0===we&&De(W)),n!==r&&(ye=e,n=Nt()),(e=n)===r&&(e=ve,n=ve,we++,92===t.charCodeAt(ve)?(i=u,ve++):(i=r,0===we&&De(H)),i===r&&(t.substr(ve,2)===s?(i=s,ve+=2):(i=r,0===we&&De(L))),we--,i===r?n=void 0:(ve=n,n=r),n!==r?(t.length>ve?(i=t.charAt(ve),ve++):(i=r,0===we&&De(q)),i!==r?(ye=e,e=Ot()):(ve=e,e=r)):(ve=e,e=r),e===r))){if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r){if(i=[],T.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(G)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(G));else i=r;i!==r?(125===t.charCodeAt(ve)?(o=l,ve++):(o=r,0===we&&De(U)),o!==r?(ye=e,e=Tt()):(ve=e,e=r)):(ve=e,e=r)}else ve=e,e=r;e===r&&(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r&&(ye=e,n=Mt()),(e=n)===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(H)),n!==r?(t.substr(ve,2)===s?(i=s,ve+=2):(i=r,0===we&&De(L)),i!==r?(ye=e,e=zt(i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(H)),n!==r?(t.length>ve?(i=t.charAt(ve),ve++):(i=r,0===we&&De(q)),i!==r?(ye=e,e=Bt(i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(H)),n!==r&&(ye=e,n=Jt()),e=n))))}return e}function Fe(){var e,n,i,o,a,s;return e=ve,(n=Se())!==r?(We(),63===t.charCodeAt(ve)?(i=d,ve++):(i=r,0===we&&De(K)),i!==r?(We(),(o=Fe())!==r?(We(),58===t.charCodeAt(ve)?(a=h,ve++):(a=r,0===we&&De(Y)),a!==r?(We(),(s=Fe())!==r?(ye=e,e=Rt(n,o,s)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=Se()),e}function Se(){var e,n,i,o;return e=ve,(n=Ie())!==r?(We(),t.substr(ve,2)===p?(i=p,ve+=2):(i=r,0===we&&De(X)),i!==r?(We(),(o=Fe())!==r?(ye=e,e=Lt(n,o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=Ie()),e}function Ie(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Ne())!==r){for(i=[],o=ve,a=We(),t.substr(ve,2)===f?(s=f,ve+=2):(s=r,0===we&&De(Z)),s!==r?(l=We(),(c=Ne())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=We(),t.substr(ve,2)===f?(s=f,ve+=2):(s=r,0===we&&De(Z)),s!==r?(l=We(),(c=Ne())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Ut(n,i)}else ve=e,e=r;return e}function Ne(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Oe())!==r){for(i=[],o=ve,a=We(),t.substr(ve,2)===g?(s=g,ve+=2):(s=r,0===we&&De(Q)),s!==r?(l=We(),(c=Oe())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=We(),t.substr(ve,2)===g?(s=g,ve+=2):(s=r,0===we&&De(Q)),s!==r?(l=We(),(c=Oe())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Wt(n,i)}else ve=e,e=r;return e}function Oe(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Te())!==r){for(i=[],o=ve,a=We(),t.substr(ve,2)===m?(s=m,ve+=2):(s=r,0===we&&De(tt)),s===r&&(t.substr(ve,2)===v?(s=v,ve+=2):(s=r,0===we&&De(et))),s!==r?(l=We(),(c=Te())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=We(),t.substr(ve,2)===m?(s=m,ve+=2):(s=r,0===we&&De(tt)),s===r&&(t.substr(ve,2)===v?(s=v,ve+=2):(s=r,0===we&&De(et))),s!==r?(l=We(),(c=Te())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Ht(n,i)}else ve=e,e=r;return e}function Te(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Me())!==r){for(i=[],o=ve,a=We(),t.substr(ve,2)===y?(s=y,ve+=2):(s=r,0===we&&De(nt)),s===r&&(62===t.charCodeAt(ve)?(s=$,ve++):(s=r,0===we&&De(rt)),s===r&&(t.substr(ve,2)===b?(s=b,ve+=2):(s=r,0===we&&De(it)),s===r&&(60===t.charCodeAt(ve)?(s=_,ve++):(s=r,0===we&&De(ot))))),s!==r?(l=We(),(c=Me())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=We(),t.substr(ve,2)===y?(s=y,ve+=2):(s=r,0===we&&De(nt)),s===r&&(62===t.charCodeAt(ve)?(s=$,ve++):(s=r,0===we&&De(rt)),s===r&&(t.substr(ve,2)===b?(s=b,ve+=2):(s=r,0===we&&De(it)),s===r&&(60===t.charCodeAt(ve)?(s=_,ve++):(s=r,0===we&&De(ot))))),s!==r?(l=We(),(c=Me())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=qt(n,i)}else ve=e,e=r;return e}function Me(){var e,n,i,o,a,s,l,c;if(e=ve,(n=ze())!==r){for(i=[],o=ve,a=We(),43===t.charCodeAt(ve)?(s=w,ve++):(s=r,0===we&&De(at)),s===r&&(45===t.charCodeAt(ve)?(s=x,ve++):(s=r,0===we&&De(st))),s!==r?(l=We(),(c=ze())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=We(),43===t.charCodeAt(ve)?(s=w,ve++):(s=r,0===we&&De(at)),s===r&&(45===t.charCodeAt(ve)?(s=x,ve++):(s=r,0===we&&De(st))),s!==r?(l=We(),(c=ze())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Gt(n,i)}else ve=e,e=r;return e}function ze(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Be())!==r){for(i=[],o=ve,a=We(),47===t.charCodeAt(ve)?(s=k,ve++):(s=r,0===we&&De(lt)),s===r&&(42===t.charCodeAt(ve)?(s=E,ve++):(s=r,0===we&&De(ct)),s===r&&(37===t.charCodeAt(ve)?(s=A,ve++):(s=r,0===we&&De(ut)))),s!==r?(l=We(),(c=Be())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=We(),47===t.charCodeAt(ve)?(s=k,ve++):(s=r,0===we&&De(lt)),s===r&&(42===t.charCodeAt(ve)?(s=E,ve++):(s=r,0===we&&De(ct)),s===r&&(37===t.charCodeAt(ve)?(s=A,ve++):(s=r,0===we&&De(ut)))),s!==r?(l=We(),(c=Be())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Kt(n,i)}else ve=e,e=r;return e}function Be(){var e,n,i;return(e=Le())===r&&(e=Re())===r&&(e=ve,33===t.charCodeAt(ve)?(n=C,ve++):(n=r,0===we&&De(dt)),n===r&&(43===t.charCodeAt(ve)?(n=w,ve++):(n=r,0===we&&De(at)),n===r&&(45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&De(st)))),n!==r?(We(),(i=Be())!==r?(ye=e,e=Yt(n,i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=ve,(n=Ue())!==r?(We(),40===t.charCodeAt(ve)?(i=V,ve++):(i=r,0===we&&De(ht)),i!==r?(We(),o=function(){var e,n,i,o,a,s;if(e=ve,(n=Fe())!==r){for(i=[],o=ve,We(),44===t.charCodeAt(ve)?(a=j,ve++):(a=r,0===we&&De(ft)),a!==r?(We(),(s=Fe())!==r?o=s:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,We(),44===t.charCodeAt(ve)?(a=j,ve++):(a=r,0===we&&De(ft)),a!==r?(We(),(s=Fe())!==r?o=s:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Qt(n,i)}else ve=e,e=r;return e===r&&(e=We()),e}(),o!==r?(We(),41===t.charCodeAt(ve)?(a=D,ve++):(a=r,0===we&&De(pt)),a!==r?(ye=e,e=Xt(n,o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,(n=Ue())!==r&&(ye=e,n=Zt(n)),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return we++,e=ve,39===t.charCodeAt(ve)?(n=P,ve++):(n=r,0===we&&De(mt)),n!==r?(i=function(){var t,e,n;for(t=ve,e=[],n=Je();n!==r;)e.push(n),n=Je();return ye=t,t=e=ne(e)}(),39===t.charCodeAt(ve)?(o=P,ve++):(o=r,0===we&&De(mt)),o!==r?(ye=e,e=ee(i)):(ve=e,e=r)):(ve=e,e=r),we--,e===r&&(n=r,0===we&&De(gt)),e}(),e===r&&(e=Le())===r&&(e=Re())===r&&(e=function(){var e,n;return we++,e=ve,t.substr(ve,4)===N?(n=N,ve+=4):(n=r,0===we&&De(Et)),n!==r&&(ye=e,n=fe()),(e=n)===r&&(e=ve,t.substr(ve,5)===O?(n=O,ve+=5):(n=r,0===we&&De(At)),n!==r&&(ye=e,n=ge()),e=n),we--,e===r&&(n=r,0===we&&De(kt)),e}(),e===r&&(e=ve,40===t.charCodeAt(ve)?(n=V,ve++):(n=r,0===we&&De(ht)),n!==r?(We(),(i=Fe())!==r?(We(),41===t.charCodeAt(ve)?(o=D,ve++):(o=r,0===we&&De(pt)),o!==r?(ye=e,e=te(i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r))),e}())),e}())),e}function Je(){var e,n,i,o,a;if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r?(i=We(),(o=Fe())!==r?(We(),125===t.charCodeAt(ve)?(a=l,ve++):(a=r,0===we&&De(U)),a!==r?(ye=e,e=re(o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,t.substr(ve,3)===c?(n=c,ve+=3):(n=r,0===we&&De(W)),n!==r&&(ye=e,n=ie()),(e=n)===r&&(e=ve,n=ve,we++,92===t.charCodeAt(ve)?(i=u,ve++):(i=r,0===we&&De(H)),i===r&&(39===t.charCodeAt(ve)?(i=P,ve++):(i=r,0===we&&De(mt)),i===r&&(t.substr(ve,2)===s?(i=s,ve+=2):(i=r,0===we&&De(L)))),we--,i===r?n=void 0:(ve=n,n=r),n!==r?(t.length>ve?(i=t.charAt(ve),ve++):(i=r,0===we&&De(q)),i!==r?(ye=e,e=oe()):(ve=e,e=r)):(ve=e,e=r),e===r))){if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r){if(i=[],M.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(vt)),o!==r)for(;o!==r;)i.push(o),M.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(vt));else i=r;i!==r?(125===t.charCodeAt(ve)?(o=l,ve++):(o=r,0===we&&De(U)),o!==r?(ye=e,e=ae()):(ve=e,e=r)):(ve=e,e=r)}else ve=e,e=r;e===r&&(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r&&(ye=e,n=se()),(e=n)===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(H)),n!==r?(t.substr(ve,2)===s?(i=s,ve+=2):(i=r,0===we&&De(L)),i!==r?(ye=e,e=le(i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(H)),n!==r?(t.length>ve?(i=t.charAt(ve),ve++):(i=r,0===we&&De(q)),i!==r?(ye=e,e=ce(i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(H)),n!==r&&(ye=e,n=ue()),e=n))))}return e}function Re(){var e,n,i,o;if(we++,e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&De(st)),n===r&&(n=null),i=[],z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t)),o!==r)for(;o!==r;)i.push(o),z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t));else i=r;return i!==r?(ye=e,e=de()):(ve=e,e=r),we--,e===r&&(n=r,0===we&&De(yt)),e}function Le(){var e,n,i,o,a,s,l,c,u,d;for(we++,e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&De(st)),n===r&&(n=null),i=[],z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t));o!==r;)i.push(o),z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t));if(46===t.charCodeAt(ve)?(o=F,ve++):(o=r,0===we&&De(_t)),o!==r){if(a=[],z.test(t.charAt(ve))?(s=t.charAt(ve),ve++):(s=r,0===we&&De($t)),s!==r)for(;s!==r;)a.push(s),z.test(t.charAt(ve))?(s=t.charAt(ve),ve++):(s=r,0===we&&De($t));else a=r;if(a!==r){if(s=ve,101===t.charCodeAt(ve)?(l=S,ve++):(l=r,0===we&&De(wt)),l===r&&(69===t.charCodeAt(ve)?(l=I,ve++):(l=r,0===we&&De(xt))),l!==r){if(43===t.charCodeAt(ve)?(c=w,ve++):(c=r,0===we&&De(at)),c===r&&(45===t.charCodeAt(ve)?(c=x,ve++):(c=r,0===we&&De(st))),c===r&&(c=null),u=[],z.test(t.charAt(ve))?(d=t.charAt(ve),ve++):(d=r,0===we&&De($t)),d!==r)for(;d!==r;)u.push(d),z.test(t.charAt(ve))?(d=t.charAt(ve),ve++):(d=r,0===we&&De($t));else u=r;u!==r?s=l=[l,c,u]:(ve=s,s=r)}else ve=s,s=r;s===r&&(s=null),ye=e,e=he()}else ve=e,e=r}else ve=e,e=r;if(e===r){if(e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&De(st)),n===r&&(n=null),i=[],z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t)),o!==r)for(;o!==r;)i.push(o),z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t));else i=r;if(i!==r)if(101===t.charCodeAt(ve)?(o=S,ve++):(o=r,0===we&&De(wt)),o===r&&(69===t.charCodeAt(ve)?(o=I,ve++):(o=r,0===we&&De(xt))),o!==r){if(43===t.charCodeAt(ve)?(a=w,ve++):(a=r,0===we&&De(at)),a===r&&(45===t.charCodeAt(ve)?(a=x,ve++):(a=r,0===we&&De(st))),a===r&&(a=null),s=[],z.test(t.charAt(ve))?(l=t.charAt(ve),ve++):(l=r,0===we&&De($t)),l!==r)for(;l!==r;)s.push(l),z.test(t.charAt(ve))?(l=t.charAt(ve),ve++):(l=r,0===we&&De($t));else s=r;s!==r?(ye=e,e=pe()):(ve=e,e=r)}else ve=e,e=r;else ve=e,e=r}return we--,e===r&&(n=r,0===we&&De(bt)),e}function Ue(){var e,n,i,o,a;if(we++,e=ve,n=ve,we++,i=function(){var e,n,i,o;return e=ve,t.substr(ve,4)===N?(n=N,ve+=4):(n=r,0===we&&De(Et)),n===r&&(t.substr(ve,5)===O?(n=O,ve+=5):(n=r,0===we&&De(At))),n!==r?(i=ve,we++,B.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(Ct)),we--,o===r?i=void 0:(ve=i,i=r),i!==r?e=n=[n,i]:(ve=e,e=r)):(ve=e,e=r),e}(),we--,i===r?n=void 0:(ve=n,n=r),n!==r)if(J.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&De(Dt)),i!==r){for(o=[],B.test(t.charAt(ve))?(a=t.charAt(ve),ve++):(a=r,0===we&&De(Ct));a!==r;)o.push(a),B.test(t.charAt(ve))?(a=t.charAt(ve),ve++):(a=r,0===we&&De(Ct));ye=e,e=me()}else ve=e,e=r;else ve=e,e=r;return we--,e===r&&(n=r,0===we&&De(Vt)),e}function We(){var e,n;for(we++,e=[],R.test(t.charAt(ve))?(n=t.charAt(ve),ve++):(n=r,0===we&&De(Pt));n!==r;)e.push(n),R.test(t.charAt(ve))?(n=t.charAt(ve),ve++):(n=r,0===we&&De(Pt));return we--,n=r,0===we&&De(jt),e}if((n=a())!==r&&ve===t.length)return n;throw n!==r&&ve<t.length&&De({type:"end"}),function(t,e,n){return new zs(zs.buildMessage(t,e),t,e,n)}(_e,be<t.length?t.charAt(be):null,be<t.length?Ve(be,be+1):Ve(be,be))}Ss(void 0),function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(zs,Error),zs.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=Bs("",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+" | "+Bs("",i.column-1," ")+Bs("",u,"^")}else e+="\n at "+a}return e},zs.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 Rs=new Map,Ls=new Map;function Us(t,e,n){const r={args:e,cb:n},i=Rs.get(t)||[];Rs.has(t)||Rs.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Ls.set(o,r)}function Ws(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 Hs(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=>{Hs(t,e)}));break;case"BinaryExpression":case"LogicalExpression":Hs(t.left,e),Hs(t.right,e);break;case"UnaryExpression":Hs(t.argument,e);break;case"ConditionalExpression":Hs(t.test,e),Hs(t.consequent,e),Hs(t.alternate,e);break;case"TryExpression":Hs(t.test,e),Hs(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{Hs(t,e)}))}}function qs(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function Gs(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Ks(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 Gs(t.value);if("color"===t.type)return rl(nl(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";if("array"===t.type)return"<array>";throw new Error("Unexpected type ".concat(t.type))}function Ys(t){let e=Ks(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function Xs(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function Zs(t,e){if(qo)return Xo(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function Qs(t,e){if(e<Yo||e>Ko)throw new Error("Integer overflow.");!qo&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function tl(t){const e=[];return Hs(t,{Variable(t){e.push(t.id.name)}}),e}function el(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function nl(t){const e=xe(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function rl(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 _e(Math.round(t).toString(16),2)})).join("").toUpperCase())}function il(t){return rl(nl(t))}const ol=Number.MAX_VALUE,al=Number.MIN_VALUE,sl="string",ll="integer",cl="number",ul="boolean",dl="color",hl="url",pl="datetime",fl="dict",gl="array";function ml(t,e){return{type:sl,value:Ks(e)}}function vl(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:cl,value:n}}function yl(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=il(o)),{type:r,value:o}}function $l(t,e,n){return yl(t,e,n,n.type)}function bl(t,e,n){return yl(t,e,n,"color")}function _l(t,e,n){return yl(t,e,n,"url")}const wl=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:ll,value:Xo(r)}},xl=wl("getUTCFullYear"),kl=wl("getUTCMonth"),El=wl("getUTCDate"),Al=wl("getUTCDay"),Cl=wl("getUTCHours"),Vl=wl("getUTCMinutes"),Dl=wl("getUTCSeconds"),jl=wl("getUTCMilliseconds");function Pl(t,e,n,r){if(!r.value.length)return t.warnings.push(ge(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===sl?e.value:Ks(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 Fl(t,e,n,r){const i=Pl(t,e,n,r);return{type:sl,value:i+Ks(e)}}function Sl(t,e,n,r){const i=Pl(t,e,n,r);return{type:sl,value:Ks(e)+i}}function Il(t){return(e,n)=>{const r=nl(n.value);return{type:cl,value:r[t]/255}}}function Nl(t){return(e,n,r)=>{const i=nl(n.value);return i[t]=255*r.value,{type:dl,value:rl(i)}}}const Ol=Il("a"),Tl=Il("r"),Ml=Il("g"),zl=Il("b"),Bl=Nl("a"),Jl=Nl("r"),Rl=Nl("g"),Ll=Nl("b");function Ul(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=Xo(e.value)/Xo(n);return Qs(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=Xo(i)%Xo(r)),{type:ll,value:i}}const Wl=36e5;function Hl(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.");Qs(n,s),s=Xo(s)}return"string"===t&&"color"===e&&(s=il(s)),{type:e,value:s}}}function ql(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=il(n)),{type:e,value:n}}}}const Gl=Hl("string","string"),Kl=Hl("number","number"),Yl=Hl("number","integer"),Xl=Hl("boolean","boolean"),Zl=Hl("string","color"),Ql=Hl("string","url"),tc=ql(Gl,"string"),ec=ql(Kl,"number"),nc=ql(Yl,"integer"),rc=ql(Xl,"boolean"),ic=ql(Zl,"color"),oc=ql(Ql,"url");function ac(t,e){return(n,r,i)=>{if(i.value<0||i.value>=r.value.length)throw new Error("Requested index (".concat(i.value,") out of bounds array size (").concat(r.value.length,")."));let o=r.value[Number(i.value)],a=typeof o;if("array"===t&&!Array.isArray(o)||"array"!==t&&a!==t||"obejct"===a&&null===o)throw"object"===a&&(a=Array.isArray(o)?"array":null===o?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(a,'".'));if("number"===t&&"integer"===e){if(o!==Math.round(o))throw new Error("Cannot convert value to integer.");Qs(n,o),o=Xo(o)}return"string"===t&&"color"===e&&(o=il(o)),{type:e,value:o}}}function sc(t,e){return(n,r,i,o)=>{try{return t(n,r,i)}catch(t){let n=o.value;return"color"===e&&(n=il(n)),{type:e,value:n}}}}const lc=ac("string","string"),cc=ac("number","number"),uc=ac("number","integer"),dc=ac("boolean","boolean"),hc=ac("string","color"),pc=ac("string","url"),fc=ac("array","array"),gc=ac("object","dict"),mc=sc(lc,"string"),vc=sc(cc,"number"),yc=sc(uc,"integer"),$c=sc(dc,"boolean"),bc=sc(hc,"color"),_c=sc(pc,"url");function wc(t){return t.map(Ys).join(", ")}Us("toString",[ll],ml),Us("toString",[cl],ml),Us("toString",[ul],ml),Us("toString",[dl],ml),Us("toString",[hl],ml),Us("toNumber",[ll],vl),Us("toNumber",[sl],vl),Us("toInteger",[cl],(function(t,e){if(e.value>Ko||e.value<Yo)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:ll,value:Xo(n)}})),Us("toInteger",[sl],(function(t,e){let n;try{n=Xo(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>Ko||n<Yo)throw new Error("Unable to convert value to Integer.");return{type:ll,value:n}})),Us("toInteger",[ul],(function(t,e){return{type:ll,value:Xo(e.value?1:0)}})),Us("toBoolean",[ll],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:ul,value:n}})),Us("toBoolean",[sl],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:ul,value:"true"===e.value?1:0}})),Us("toColor",[sl],(function(t,e){return{type:dl,value:il(e.value)}})),Us("toUrl",[sl],(function(t,e){return{type:hl,value:e.value}})),Us("encodeUri",[sl],(function(t,e){try{return{type:sl,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Us("decodeUri",[sl],(function(t,e){try{return{type:sl,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Us("getIntegerValue",[sl,ll],$l),Us("getNumberValue",[sl,cl],$l),Us("getBooleanValue",[sl,ul],$l),Us("getStringValue",[sl,sl],$l),Us("getColorValue",[sl,dl],bl),Us("getColorValue",[sl,sl],bl),Us("getUrlValue",[sl,hl],_l),Us("getUrlValue",[sl,sl],_l),Us("parseUnixTime",[ll],(function(t,e){return{type:pl,value:new Date(1e3*Number(e.value))}})),Us("nowLocal",[],(function(){return{type:pl,value:new Date}})),Us("addMillis",[pl,ll],(function(t,e,n){return{type:pl,value:new Date(e.value.getTime()+Number(n.value))}})),Us("setYear",[pl,ll],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:pl,value:r}})),Us("setMonth",[pl,ll],(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:pl,value:i}})),Us("setDay",[pl,ll],(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(Ks(e),"."));return r.setUTCDate(-1===i?0:i),{type:pl,value:r}})),Us("setHours",[pl,ll],(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:pl,value:i}})),Us("setMinutes",[pl,ll],(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:pl,value:i}})),Us("setSeconds",[pl,ll],(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:pl,value:i}})),Us("setMillis",[pl,ll],(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:pl,value:i}})),Us("getYear",[pl],xl),Us("getMonth",[pl],kl),Us("getDay",[pl],El),Us("getDayOfWeek",[pl],Al),Us("getHours",[pl],Cl),Us("getMinutes",[pl],Vl),Us("getSeconds",[pl],Dl),Us("getMillis",[pl],jl),Us("getIntervalSeconds",[ll],(function(t,e){return Ul(t,e,1e3,60)})),Us("getIntervalTotalSeconds",[ll],(function(t,e){return Ul(t,e,1e3)})),Us("getIntervalMinutes",[ll],(function(t,e){return Ul(t,e,6e4,60)})),Us("getIntervalTotalMinutes",[ll],(function(t,e){return Ul(t,e,6e4)})),Us("getIntervalHours",[ll],(function(t,e){return Ul(t,e,Wl,24)})),Us("getIntervalTotalHours",[ll],(function(t,e){return Ul(t,e,Wl)})),Us("getIntervalTotalDays",[ll],(function(t,e){return Ul(t,e,864e5)})),Us("getIntervalTotalWeeks",[ll],(function(t,e){return Ul(t,e,6048e5)})),Us("len",[sl],(function(t,e){return{type:ll,value:Xo(e.value.length)}})),Us("contains",[sl,sl],(function(t,e,n){return{type:ul,value:e.value.includes(n.value)?1:0}})),Us("substring",[sl,ll,ll],(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:sl,value:e.value.substring(Number(n.value),Number(r.value))}})),Us("replaceAll",[sl,sl,sl],(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:sl,value:i}})),Us("index",[sl,sl],(function(t,e,n){return{type:ll,value:Xo(e.value.indexOf(n.value))}})),Us("lastIndex",[sl,sl],(function(t,e,n){return{type:ll,value:Xo(e.value.lastIndexOf(n.value))}})),Us("trim",[sl],(function(t,e){return{type:sl,value:e.value.trim()}})),Us("trimLeft",[sl],(function(t,e){return{type:sl,value:e.value.replace(/^\s+/,"")}})),Us("trimRight",[sl],(function(t,e){return{type:sl,value:e.value.replace(/\s+$/,"")}})),Us("toUpperCase",[sl],(function(t,e){return{type:sl,value:e.value.toUpperCase()}})),Us("toLowerCase",[sl],(function(t,e){return{type:sl,value:e.value.toLowerCase()}})),Us("padStart",[sl,ll,sl],Fl),Us("padStart",[ll,ll,sl],Fl),Us("padEnd",[sl,ll,sl],Sl),Us("padEnd",[ll,ll,sl],Sl),Us("testRegex",[sl,sl],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:ul,value:r.test(e.value)?1:0}})),Us("div",[ll,ll],(function(t,e,n){if(n.value===Zo)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=Zs(0,r),Qs(t,r),{type:ll,value:r}})),Us("div",[cl,cl],(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:cl,value:r}})),Us("mod",[ll,ll],(function(t,e,n){if(n.value===Zo)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=Zs(0,r),Qs(t,r),{type:ll,value:r}})),Us("mod",[cl,cl],(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:cl,value:r}})),Us("mul",[{type:ll,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:Zo;for(let e=1;e<n.length;++e)i*=n[e].value,i=Zs(0,i),Qs(t,i);return{type:ll,value:i}})),Us("mul",[{type:cl,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:cl,value:i}})),Us("sub",[{type:ll,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:Zo;for(let e=1;e<n.length;++e)i-=n[e].value,i=Zs(0,i),Qs(t,i);return{type:ll,value:i}})),Us("sub",[{type:cl,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:cl,value:i}})),Us("sum",[{type:ll,isVararg:!0}],(function(t){let e=Zo;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=Zs(0,e),Qs(t,e);return{type:ll,value:e}})),Us("sum",[{type:cl,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:cl,value:e}})),Us("abs",[ll],(function(t,e){const n=Qo(e.value);return Qs(t,n),{type:e.type,value:n}})),Us("abs",[cl],(function(t,e){const n=Math.abs(e.value);return{type:cl,value:n}})),Us("max",[{type:ll,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:ll,value:i}})),Us("max",[{type:cl,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:cl,value:Math.max(...n.map((t=>t.value)))}})),Us("min",[{type:ll,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:ll,value:i}})),Us("min",[{type:cl,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:cl,value:Math.min(...n.map((t=>t.value)))}})),Us("maxNumber",[],(function(){return{type:cl,value:ol}})),Us("minNumber",[],(function(){return{type:cl,value:al}})),Us("maxInteger",[],(function(t){return Qs(t,Ko),{type:ll,value:Ko}})),Us("minInteger",[],(function(t){return Qs(t,Yo),{type:ll,value:Yo}})),Us("round",[cl],(function(t,e){const n=Math.sign(e.value);return{type:cl,value:n*Math.round(Math.abs(e.value))}})),Us("floor",[cl],(function(t,e){return{type:cl,value:Math.floor(e.value)}})),Us("ceil",[cl],(function(t,e){return{type:cl,value:Math.ceil(e.value)}})),Us("signum",[ll],(function(t,e){return{type:ll,value:ta(e.value)}})),Us("signum",[cl],(function(t,e){return{type:cl,value:Math.sign(e.value)}})),Us("copySign",[ll,ll],(function(t,e,n){let r;if(n.value===Zo)r=e.value;else if(e.value===Zo)r=Xo(0);else{const t=ta(n.value);r=Qo(e.value)*t}return Qs(t,r),{type:ll,value:r}})),Us("copySign",[cl,cl],(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:cl,value:i}})),Us("getColorAlpha",[sl],Ol),Us("getColorAlpha",[dl],Ol),Us("getColorRed",[sl],Tl),Us("getColorRed",[dl],Tl),Us("getColorGreen",[sl],Ml),Us("getColorGreen",[dl],Ml),Us("getColorBlue",[sl],zl),Us("getColorBlue",[dl],zl),Us("setColorAlpha",[sl,cl],Bl),Us("setColorAlpha",[dl,cl],Bl),Us("setColorRed",[sl,cl],Jl),Us("setColorRed",[dl,cl],Jl),Us("setColorGreen",[sl,cl],Rl),Us("setColorGreen",[dl,cl],Rl),Us("setColorBlue",[sl,cl],Ll),Us("setColorBlue",[dl,cl],Ll),Us("rgb",[cl,cl,cl],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:dl,value:rl(i)}})),Us("argb",[cl,cl,cl,cl],(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:dl,value:rl(o)}})),Us("getDictString",[fl,{type:sl,isVararg:!0}],Gl),Us("getStringFromDict",[fl,{type:sl,isVararg:!0}],Gl),Us("getDictNumber",[fl,{type:sl,isVararg:!0}],Kl),Us("getNumberFromDict",[fl,{type:sl,isVararg:!0}],Kl),Us("getDictInteger",[fl,{type:sl,isVararg:!0}],Yl),Us("getIntegerFromDict",[fl,{type:sl,isVararg:!0}],Yl),Us("getDictBoolean",[fl,{type:sl,isVararg:!0}],Xl),Us("getBooleanFromDict",[fl,{type:sl,isVararg:!0}],Xl),Us("getDictColor",[fl,{type:sl,isVararg:!0}],Zl),Us("getColorFromDict",[fl,{type:sl,isVararg:!0}],Zl),Us("getDictUrl",[fl,{type:sl,isVararg:!0}],Ql),Us("getUrlFromDict",[fl,{type:sl,isVararg:!0}],Ql),Us("getDictOptString",[sl,fl,{type:sl,isVararg:!0}],tc),Us("getOptStringFromDict",[sl,fl,{type:sl,isVararg:!0}],tc),Us("getDictOptNumber",[cl,fl,{type:sl,isVararg:!0}],ec),Us("getOptNumberFromDict",[cl,fl,{type:sl,isVararg:!0}],ec),Us("getDictOptInteger",[ll,fl,{type:sl,isVararg:!0}],nc),Us("getOptIntegerFromDict",[ll,fl,{type:sl,isVararg:!0}],nc),Us("getDictOptBoolean",[ul,fl,{type:sl,isVararg:!0}],rc),Us("getOptBooleanFromDict",[ul,fl,{type:sl,isVararg:!0}],rc),Us("getDictOptColor",[dl,fl,{type:sl,isVararg:!0}],ic),Us("getOptColorFromDict",[dl,fl,{type:sl,isVararg:!0}],ic),Us("getDictOptColor",[sl,fl,{type:sl,isVararg:!0}],ic),Us("getOptColorFromDict",[sl,fl,{type:sl,isVararg:!0}],ic),Us("getDictOptUrl",[sl,fl,{type:sl,isVararg:!0}],oc),Us("getOptUrlFromDict",[sl,fl,{type:sl,isVararg:!0}],oc),Us("getDictOptUrl",[hl,fl,{type:sl,isVararg:!0}],oc),Us("getOptUrlFromDict",[hl,fl,{type:sl,isVararg:!0}],oc),Us("getArrayString",[gl,ll],lc),Us("getStringFromArray",[gl,ll],lc),Us("getArrayNumber",[gl,ll],cc),Us("getNumberFromArray",[gl,ll],cc),Us("getArrayInteger",[gl,ll],uc),Us("getIntegerFromArray",[gl,ll],uc),Us("getArrayBoolean",[gl,ll],dc),Us("getBooleanFromArray",[gl,ll],dc),Us("getArrayColor",[gl,ll],hc),Us("getColorFromArray",[gl,ll],hc),Us("getArrayUrl",[gl,ll],pc),Us("getUrlFromArray",[gl,ll],pc),Us("getArrayFromArray",[gl,ll],fc),Us("getDictFromArray",[gl,ll],gc),Us("getArrayOptString",[gl,ll,sl],mc),Us("getOptStringFromArray",[gl,ll,sl],mc),Us("getArrayOptNumber",[gl,ll,cl],vc),Us("getOptNumberFromArray",[gl,ll,cl],vc),Us("getArrayOptInteger",[gl,ll,ll],yc),Us("getOptIntegerFromArray",[gl,ll,ll],yc),Us("getArrayOptBoolean",[gl,ll,ul],$c),Us("getOptBooleanFromArray",[gl,ll,ul],$c),Us("getArrayOptColor",[gl,ll,dl],bc),Us("getOptColorFromArray",[gl,ll,dl],bc),Us("getArrayOptColor",[gl,ll,sl],bc),Us("getOptColorFromArray",[gl,ll,sl],bc),Us("getArrayOptUrl",[gl,ll,hl],_c),Us("getOptUrlFromArray",[gl,ll,hl],_c),Us("getArrayOptUrl",[gl,ll,sl],_c),Us("getOptUrlFromArray",[gl,ll,sl],_c),Us("getOptArrayFromArray",[gl,ll],(function(t,e,n){try{return fc(t,e,n)}catch(t){return{type:gl,value:[]}}})),Us("getOptDictFromArray",[gl,ll],(function(t,e,n){try{return gc(t,e,n)}catch(t){return{type:fl,value:{}}}})),Us("len",[gl],(function(t,e){return{type:ll,value:Xo(e.value.length)}}));const xc={StringLiteral:function(t,e){return{type:sl,value:e.value}},NumberLiteral:function(t,e){return{type:cl,value:e.value}},IntegerLiteral:function(t,e){return Qs(t,e.value),{type:ll,value:e.value}},BooleanLiteral:function(t,e){return{type:ul,value:e.value?1:0}},UnaryExpression:function(t,e){const n=qs(kc(t,e.argument));switch(e.operator){case"!":if(n.type===ul)return{type:ul,value:n.value?0:1};el("".concat(e.operator).concat(Ys(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===ll){const e=n.value*Xo(r);return Qs(t,e),{type:ll,value:e}}if(n.type===cl)return{type:cl,value:n.value*r};el("".concat(e.operator).concat(Ys(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=qs(kc(t,e.test));if(n.type===ul)return n.value?kc(t,e.consequent):kc(t,e.alternate);el("".concat(Ys(n)," ? ").concat(Ys(kc(t,e.consequent))," : ").concat(Ys(kc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return kc(t,e.test)}catch(n){return kc(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return kc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=Ks(kc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:sl,value:n}},LogicalExpression:function(t,e){const n=qs(kc(t,e.left));if(n.type!==ul&&el("".concat(Ys(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:ul,value:0};const r=qs(kc(t,e.right));return r.type!==ul&&el("".concat(Ys(n)," ").concat(e.operator," ").concat(Ys(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(Xs(r.type),".")),{type:ul,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=kc(t,e.left),i=kc(t,e.right);if(r.type!==i.type&&el("".concat(Ys(r)," ").concat(e.operator," ").concat(Ys(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(Xs(r.type)," and ").concat(Xs(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===pl&&n.type===pl?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:ul,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==cl&&e.type!==ll&&e.type!==pl&&el("".concat(Ys(e)," ").concat(t," ").concat(Ys(n)),"Operator '".concat(t,"' cannot be applied to ").concat(Xs(e.type)," type."));const i=e.type===pl?e.value.getTime():e.value,o=n.type===pl?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:ul,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==sl&&n.type!==cl&&n.type!==ll&&el("".concat(Ys(n)," ").concat(e," ").concat(Ys(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Xs(n.type)," type.")),n.type===sl)return"-"===e&&el("".concat(Ys(n)," - ").concat(Ys(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Xs(n.type)," type.")),{type:sl,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===ll)try{i=Zs(0,i),Qs(t,i)}catch(t){el("".concat(Ys(n)," ").concat(e," ").concat(Ys(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!==ll&&n.type!==cl&&el("".concat(Ys(n)," ").concat(e," ").concat(Ys(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Xs(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&el("".concat(Ys(n)," ").concat(e," ").concat(Ys(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===ll)try{i=Zs(0,i),Qs(t,i)}catch(t){el("".concat(Ys(n)," ").concat(e," ").concat(Ys(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=>kc(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if(Ls.has(o))r=Ls.get(o);else{const t=function(t,e){const n=Rs.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=Ws(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=>Xs(t.type))).join(", "),r="".concat(n,"(").concat(wc(i),")");"few"===t.type&&0===i.length?el(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?el(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):el(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){el("".concat(n,"(").concat(wc(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 kc(t,e){if(e.type in xc)return xc[e.type](t,e);throw new Error("Unsupported expression")}function Ec(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1},r=kc(n,e);return n.safeIntegerOverflow&&n.warnings.push(ge(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 Ac{constructor(t){this.ast=t}apply(t,e){try{const n=Ec(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(ge(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return Gs(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=xe(String(i));if(t)return rl(t);e(ge(new Error("Expression execution error")))}if("integer"===r.type)return i>2147483647||i<-2147483648?void e(ge(new Error("Expression result is out of 32-bit int range"))):Number(i);if("array"===r.type||"dict"===r.type)try{return JSON.stringify(i)}catch(t){return e(ge(new Error("Failed to stringify ".concat(r.type)))),"<".concat(r.type,">")}return i}catch(t){return void e(ge(new Error("Expression execution error")))}}}function Cc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Js(t,{startRule:"JsonStringContents"}),r=tl(n);return e.vars.push(...r),new Ac(n)}catch(e){return void n(ge(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Cc(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Cc(t[i],e,n);return r}}var r;return t}function Vc(t,e,n){if(t){if(t instanceof Ac)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>Vc(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Vc(t[i],e,n);return r}}return t}function Dc(t,e){const n={vars:[],hasExpression:!1},r=Cc(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>Vc(r,t,e)}}const jc={pagers:function(){return de(new Map)}},Pc=new Map,Fc=new Map;function Sc(t){const e=Pc.get(t)||de("");return Pc.has(t)||Pc.set(t,e),e}function Ic(t){const e=Fc.get(t)||new Map;return Fc.has(t)||Fc.set(t,e),e}class Nc{setVariable(t){const e=t.getName(),n=Ic(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Sc(this).set(e)}getVariable(t){return Ic(this).get(t)}list(){return Ic(this).values()}}function Oc(){return new Nc}function Tc(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 Mc=new Set(["start","stop","pause","resume","cancel","reset"]);class zc{constructor(t){Tc(this,"timers",new Map),Tc(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(ge(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(ge(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&Mc.has(e)))return void this.logError(ge(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(ge(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(ge(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(ge(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(ge(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(ge(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(ge(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(ge(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(ge(new Error("The timer is already running"))):this.logError(ge(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 Bc(t,e,n,r){const{variable_name:i}=n;if(!i)return void e(ge(new Error("Incorrect ".concat(n.type," action")),{additional:{name:i}}));const o=t.get(i);if(!o)return void e(ge(new Error("Cannot find variable"),{additional:{name:i}}));const a=o.getType();"array"===a?r(o):e(ge(new Error("Trying to insert value into the non-array"),{additional:{name:i,type:a}}))}function Jc(t){let e,n,r,i,o,a,s,l;return n=new js({props:{svgFiltersMap:t[4]}}),i=new bs({props:{div:t[5],templateContext:t[8],layoutParams:{tooltips:t[3]}}}),{c(){e=B("div"),re(n.$$.fragment),r=L(),re(i.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=X(e);ie(n.$$.fragment,o),r=it(o),ie(i.$$.fragment,o),o.forEach(M),this.h()},h(){H(e,"class",o=""+(pe.root+(t[6]?" ".concat(pe.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){T(t,e,o),oe(n,e,null),N(e,r),oe(i,e,null),a=!0,s||(l=W(e,"touchstart",qc,{passive:!0}),s=!0)},p(t,r){const s={};16&r[0]&&(s.svgFiltersMap=t[4]),n.$set(s);const l={};32&r[0]&&(l.div=t[5]),8&r[0]&&(l.layoutParams={tooltips:t[3]}),i.$set(l),(!a||65&r[0]&&o!==(o=""+(pe.root+(t[6]?" ".concat(pe.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&H(e,"class",o)},i(t){a||(Wt(n.$$.fragment,t),Wt(i.$$.fragment,t),a=!0)},o(t){Ht(n.$$.fragment,t),Ht(i.$$.fragment,t),a=!1},d(t){t&&M(e),ae(n),ae(i),s=!1,l()}}}function Rc(t){let e,n,r=!t[1]&&!t[2]&&t[5]&&Jc(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[1]||t[2]||!t[5]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),38&n[0]&&Wt(r,1)):(r=Jc(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}let Lc=de(!0),Uc=0;function Wc(){Lc.set(!1)}function Hc(){Lc.set(!0)}function qc(){}function Gc(t,e,n){let r,i,o;var a,s,l,c,u;let{id:d}=e,{json:h={}}=e,{platform:f="auto"}=e,{theme:g="system"}=e,{globalVariablesController:m=new Nc}=e,{mix:v=""}=e,{customization:y={}}=e,{builtinProtocols:$=["http","https","tel","mailto","intent"]}=e,{extensions:b=new Map}=e,{onError:_}=e,{onStat:w}=e,{onCustomAction:x}=e,{onComponent:k}=e,{typefaceProvider:E=(t=>"")}=e,{fetchInit:A={}}=e,{tooltipRoot:C}=e,{customComponents:V}=e,D=de("desktop"===f);if(p(t,D,(t=>n(6,o=t))),"auto"===f&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");D.set(!t.matches),t.addListener((()=>{D.set(!t.matches)}))}let j="light",P=null;function F(){"system"===g&&P&&n(32,j=P.matches?"dark":"light")}const S=new Set($);let I=!1,N=!1;d||(N=!0,H(ge(new Error('"id" prop is required'))));const O={stateChange:!1},T=Sc(m),M=Ic(m),z=new Map,B=new Map,J=new Map;let R=null,L=0,U=[];function W(t){const e=Dc(t,H);return e.hasExpression?e.applyVars(B):t}function H(t){_?_({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function q(t,e){w&&w({type:t,action:e})}let G=0;function K(t){return"".concat(d,"-").concat(G++)}let Y={},X={};function Z(t){const e=t.url?String(t.url):"",i=t.typed;if(e)try{const i=e.replace(/div-action:\/\//,""),o=/([^?]+)\?(.+)/.exec(i);if(!o)return;const a=new URLSearchParams(o[2]);switch(o[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=lt,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}}(a.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=ot(t);n&&n.setCurrentItem(Number(e))}(a.get("id"),a.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=ot(t);n&&n.setPreviousItem(e)}(a.get("id"),a.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=ot(t);n&&n.setNextItem(e)}(a.get("id"),a.get("overflow"));break;case"set_variable":const o=a.get("name"),s=a.get("value");if(o&&null!==s){const t=B.get(o);if(t){const e=t.getType();"dict"===e||"array"===e?H(ge(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:o}})):t.set(s)}else H(ge(new Error("Cannot find variable"),{additional:{name:o}}))}else H(ge(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const l=a.get("action"),c=a.get("id");R?R.execTimerAction(c,l):H(ge(new Error("Incorrect timer action"),{additional:{id:c,action:l}}));break;case"video":!function(t,e){if(t){const n=ot(t);n?"start"===e?n.start():"pause"===e?n.pause():H(ge(new Error("Unknown video action"),{additional:{id:t,action:e}})):H(ge(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else H(ge(new Error("Missing id in video action"),{additional:{action:e}}))}(a.get("id"),a.get("action"));break;case"download":!function(t,e){if(t){let n;n="function"==typeof A?A(t):A,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,o,a;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=nt.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return H(ge(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void Q(null===(o=e.download_callbacks)||void 0===o?void 0:o.on_fail_actions)}n.patch.changes.forEach((t=>{const e=nt.get(t.id);e&&e.replaceWith(t.id,t.items)})),Q(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_success_actions)}}else H(ge(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;H(ge(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),Q(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else H(ge(new Error("Missing url in download action"),{additional:{url:t}}))}(a.get("url"),t);break;case"show_tooltip":!function(t,e){var r;if(!t)return void H(ge(new Error("Missing id in show_tooltip action")));const i=it.get(t);if(!i)return void H(ge(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&U.some((e=>e.desc.id===t)))return;const o={internalId:++L,ownerNode:i.onwerNode,desc:i.tooltip,timeoutId:0};n(3,U=[...U,o]);const a=null!==(r=i.tooltip.duration)&&void 0!==r?r:5e3;a&&(o.timeoutId=window.setTimeout((()=>{o.timeoutId=0,n(3,U=U.filter((t=>t.internalId!==o.internalId)))}),a))}(a.get("id"),a.get("multiple"));break;case"hide_tooltip":!function(t){t?n(3,U=U.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):H(ge(new Error("Missing id in hide_tooltip action")))}(a.get("id"));break;default:H(ge(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){H(ge(t,{additional:{url:e}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=B.get(t);n?n.getType()===e.type?n.setValue(e.value):H(ge(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):H(ge(new Error("Cannot find variable"),{additional:{name:t}}))}else H(ge(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:i,value:o}=n;!o||"number"!=typeof i&&void 0!==i?e(ge(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):Bc(t,e,n,(t=>{const a=t.getValue();if("number"==typeof i&&(i<0||i>a.length))e(ge(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:i,length:a.length}}));else{const e=a.slice();"number"==typeof i?e.splice(i,0,o.value):e.push(o.value),t.setValue(e)}}))}(B,H,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:i}=n;"number"==typeof i?Bc(t,e,n,(t=>{const o=t.getValue();if("number"==typeof i&&(i<0||i>=o.length))e(ge(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:i,length:o.length}}));else{const e=o.slice();e.splice(i,1),t.setValue(e)}})):e(ge(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(B,H,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(ge(new Error("Incorrect action"),{additional:{action:e}})):"undefined"!=typeof navigator&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e.content.value).catch((e=>{t(ge(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(ge(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(H,i);break;case"focus_element":{const t=i.element_id&&rt.get(i.element_id);t?t.focus():H(ge(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}default:H(ge(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function Q(t,e){if(t&&Array.isArray(t)){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url,o=r.typed;if(i){const t=Pe(i);if(t)if(Fe(t,S)){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?(Z(r),await Ft()):r.log_id&&(tt(r),await Ft())}else o&&Z(r)}t.forEach((t=>{t.log_id&&q("click",t)}))}}function tt(t){null==x||x(t)}const et=new Map,nt=new Map,rt=new Map,it=new Map;function ot(t){if(et.has(t))return et.get(t);H(ge(new Error("Missing instance with id"),{additional:{id:t}}))}const at=new Map;function st(t){for(const e of t)B.has(e)&&t.delete(e);return t}wt(fe,{logError:H,logStat:q,hasTemplate:function(t){return t in r},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in r;){if(({json:t,templateContext:e}=Ps(t,e,r,H)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:K,genClass:function(t){return"divkit-".concat(K())},execAction:Z,execAnyActions:Q,execCustomAction:tt,isRunning:function(t){return O[t]},setRunning:function(t,e){O[t]=e},registerInstance:function(t,e){et.has(t)?H(ge(new Error("Duplicate instance id"),{additional:{id:t}})):et.set(t,e)},unregisterInstance:function(t){et.delete(t)},registerParentOf:function(t,e){nt.set(t,e)},unregisterParentOf:function(t){nt.delete(t)},registerTooltip:function(t,e){it.has(e.id)&&H(ge(new Error("Duplicate tooltip id"),{additional:{id:e.id}})),it.set(e.id,{onwerNode:t,tooltip:e})},unregisterTooltip:function(t){it.delete(t.id),U.some((e=>e.desc.id===t.id))&&n(3,U=U.filter((e=>e.desc.id!==t.id)))},onTooltipClose:function(t){n(3,U=U.filter((e=>e.internalId!==t)))},tooltipRoot:C,registerFocusable:function(t,e){rt.set(t,e)},unregisterFocusable:function(t){rt.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(X[r]=X[r]||0,++X[r],Y[r])return Y[r];const i="".concat(K(),"-svg-filter");return n(4,Y=Object.assign(Object.assign({},Y),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);X[r]&&0==--X[r]&&n(4,Y=Object.keys(Y).reduce(((t,e)=>(X[e]&&(t[e]=Y[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Ss(t);const e=Dc(t,H);return e.vars.length?he(e.vars.map((t=>B.get(t)||function(t){const e=J.get(t)||de(void 0);return J.has(t)||J.set(t,e),e}(t))).filter(Ee),(()=>e.applyVars(B))):e.hasExpression?Ss(e.applyVars(B)):Ss(t)},getJsonWithVars:W,getStore:function(t){return at.has(t)||function(t){at.has(t)||at.set(t,jc[t]())}(t),at.get(t)},getVariable:function(t,e){const n=B.get(t);if(n){const r=n.getType();if(r!==e)return void H(ge(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==y?void 0:y[t]},getBuiltinProtocols:function(){return S},getExtension:function(t,e){const n=b.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:B,logError:H}},typefaceProvider:E,isDesktop:D,isPointerFocus:Lc,customComponents:V,componentDevtool:void 0}),wt(tn,{hasAction:()=>!1});const lt={setState(t){throw new Error("Not implemented")},getChild(t){if(ct&&ct.has(t))return ct.get(t);H(ge(new Error("Missing state block with id"),{additional:{id:t}}))}};let ct=null;function ut(t){if(t.type in na){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&H(ge(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=ra(t.name,t.type,t.value);z.set(t.name,e),B.set(t.name,e)}catch(e){H(ge(e,{additional:{name:t.name}}))}}}wt(ze,{registerInstance(t,e){ct||(ct=new Map),ct.has(t)?H(ge(new Error("Duplicate state with id"),{additional:{id:t}})):ct.set(t,e)},unregisterInstance(t){null==ct||ct.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 dt=null===(a=null==h?void 0:h.card)||void 0===a?void 0:a.variables;Array.isArray(dt)&&dt.forEach((t=>{if(t&&t.name){if(z.has(t.name))return void H(ge(new Error("Duplicate variable"),{additional:{name:t.name}}));ut(t)}}));const ht=h.palette;ht&&ht[j].forEach((t=>{if(z.has(t.name))H(ge(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=ra(t.name,"color",t.color);z.set(t.name,e),B.set(t.name,e)}catch(e){H(ge(e,{additional:{name:t.name}}))}}));for(const[t,e]of M)B.has(t)||B.set(t,e);T.subscribe((t=>{if(t&&!B.has(t)){const e=M.get(t);B.set(t,e);const n=J.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const pt=null===(l=null==h?void 0:h.card)||void 0===l?void 0:l.variable_triggers;Array.isArray(pt)&&pt.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void H(ge(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=Js(t.condition,{startRule:"JsonStringContents"}),i=tl(r);if(!i.length)return void H(ge(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return st(e),e.size?new Promise((t=>{const n=T.subscribe((()=>{st(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{he(i.map((t=>B.get(t))).filter(Ee),(()=>{const t=Ec(B,r);return t.warnings.forEach(H),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=W(t);e.log_id&&Z(e)})),e=Boolean(r.value)):H(ge(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){H(ge(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else H(ge(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const ft=null===(c=null==h?void 0:h.card)||void 0===c?void 0:c.timers;if(ft&&"undefined"!=typeof document){const t=R=new zc({logError:H,applyVars:W,hasVariableWithType:function(t,e){const n=B.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=B.get(t);n?n.setValue(e):H(ge(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:Q});ft.forEach((e=>t.createTimer(e)))}let gt;return bt((()=>{Uc++,1===Uc&&(window.addEventListener("keydown",Wc),window.addEventListener("pointerdown",Hc))})),_t((()=>{Uc--,Uc||(window.removeEventListener("keydown",Wc),window.removeEventListener("pointerdown",Hc)),R&&R.destroy(),U.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)}))})),t.$$set=t=>{"id"in t&&n(11,d=t.id),"json"in t&&n(9,h=t.json),"platform"in t&&n(12,f=t.platform),"theme"in t&&n(10,g=t.theme),"globalVariablesController"in t&&n(13,m=t.globalVariablesController),"mix"in t&&n(0,v=t.mix),"customization"in t&&n(14,y=t.customization),"builtinProtocols"in t&&n(15,$=t.builtinProtocols),"extensions"in t&&n(16,b=t.extensions),"onError"in t&&n(17,_=t.onError),"onStat"in t&&n(18,w=t.onStat),"onCustomAction"in t&&n(19,x=t.onCustomAction),"onComponent"in t&&n(20,k=t.onComponent),"typefaceProvider"in t&&n(21,E=t.typefaceProvider),"fetchInit"in t&&n(22,A=t.fetchInit),"tooltipRoot"in t&&n(23,C=t.tooltipRoot),"customComponents"in t&&n(24,V=t.customComponents)},t.$$.update=()=>{if(1024&t.$$.dirty[0]|4&t.$$.dirty[1]&&("light"===g||"dark"===g?n(32,j=g):"system"===g?"undefined"!=typeof matchMedia?(P||(n(33,P=matchMedia("(prefers-color-scheme: dark)")),P.addListener(F)),n(32,j=P.matches?"dark":"light")):n(32,j="light"):H(ge(new Error("Unsupported theme")))),2&t.$$.dirty[1]&&j&&(ht&&ht[j].forEach((t=>{const e=B.get(t.name);e&&e.setValue(t.color)}))),512&t.$$.dirty[0]){n(1,I=!1);const t=function(t){if(!t)return ge(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return ge(new Error("Missing card"));if(!e.states||!e.states.length)return ge(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in ms)return ge(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return ge(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return ge(new Error("Missing state_id"),{additional:{index:t}})}return null}(h);t&&(n(1,I=!0),H(t))}512&t.$$.dirty[0]&&(r=h.templates||{}),1073742336&t.$$.dirty[0]&&(null===n(30,s=null==h?void 0:h.card)||void 0===s?void 0:s.variables)&&Array.isArray(h.card.variables)&&h.card.variables!==dt&&h.card.variables.forEach((t=>{t&&t.name&&!z.has(t.name)&&ut(t)})),512&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(34,i=null===n(31,u=null==h?void 0:h.card)||void 0===u?void 0:u.states),6&t.$$.dirty[0]|8&t.$$.dirty[1]&&(!i||I||N||n(5,gt={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:i.map((t=>({state_id:t.state_id.toString(),div:t.div})))}))},[v,I,N,U,Y,gt,o,D,{},h,g,d,f,m,y,$,b,_,w,x,k,E,A,C,V,function(t){n(10,g=t)},function(){return new Map},function(){return new Map},function(t){n(9,h=t)},function(t){Z(W(t))},s,u,j,P,i]}const Kc=class extends ce{constructor(t){super(),se(this,t,Gc,Rc,d,{id:11,json:9,platform:12,theme:10,globalVariablesController:13,mix:0,customization:14,builtinProtocols:15,extensions:16,onError:17,onStat:18,onCustomAction:19,onComponent:20,typefaceProvider:21,fetchInit:22,tooltipRoot:23,customComponents:24,setTheme:25,getDebugVariables:26,getDebugAllVariables:27,setData:28,execAction:29},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[25]}get getDebugVariables(){return this.$$.ctx[26]}get getDebugAllVariables(){return this.$$.ctx[27]}get setData(){return this.$$.ctx[28]}get execAction(){return this.$$.ctx[29]}};class Yc{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 Ft()}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 Xc(t){return t instanceof HTMLElement}function Zc(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(Xc);r.forEach((t=>{t.style.display="none"})),e.setAttribute("data-lottie","true"),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,i;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(i=this.wrapper.parentNode)||void 0===i||i.removeChild(this.wrapper),this.wrapper=void 0);const o=new Error("Failed to load lottie animation");o.level="error",o.additional={url:this.params.lottie_url},n.logError(o)})),"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),t.removeAttribute("data-lottie")}}}const Qc=["target","hydrate"];function tu(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,Qc),i=new Kc({target:e,props:r,hydrate:n});return{$destroy(){i.$destroy()},execAction(t){i.execAction(t)},setTheme(t){i.setTheme(t)},setData(t){i.setData(t)}}}(window.Ya=window.Ya||{}).Divkit=e})();
1
+ (()=>{"use strict";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),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(){}t.r(e),t.d(e,{SizeProvider:()=>Yc,createGlobalVariablesController:()=>Oc,createVariable:()=>ra,lottieExtensionBuilder:()=>Zc,render:()=>tu});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 p(t,e,n){t.$$.on_destroy.push(h(e,n))}function f(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 b(t){return t&&l(t.destroy)?t.destroy:n}const _="undefined"!=typeof window;let w=_?()=>window.performance.now():()=>Date.now(),x=_?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 A(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 C="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 C?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)}}))}}function j(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}D.entries="WeakMap"in C?new WeakMap:void 0;let P=!1;function F(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 I(t){const e=B("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 N(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:F(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 O(t,e,n){t.insertBefore(e,n||null)}function T(t,e,n){P&&!n?N(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function M(t){t.parentNode&&t.parentNode.removeChild(t)}function z(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function B(t){return document.createElement(t)}function J(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function R(t){return document.createTextNode(t)}function L(){return R(" ")}function U(){return R("")}function W(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function H(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const q=["width","height"];function G(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===q.indexOf(r)?t[r]=e[r]:H(t,r,e[r])}function K(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:H(t,e,n)}(t,n,e[n])}))}function Y(t){return/-/.test(t)?K:G}function X(t){return Array.from(t.childNodes)}function Z(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function Q(t,e,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Z(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 tt(t,e,n,r){return Q(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 et(t,e,n){return tt(t,e,n,B)}function nt(t,e,n){return tt(t,e,n,J)}function rt(t,e){return Q(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 it(t){return rt(t," ")}function ot(t,e,n){for(let r=n;r<t.length;r+=1){const n=t[r];if(8===n.nodeType&&n.textContent.trim()===e)return r}return-1}function at(t,e){e=""+e,t.data!==e&&(t.data=e)}function st(t,e){t.value=null==e?"":e}function lt(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function ct(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)}class ut{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];j(this,"is_svg",!1),j(this,"e",void 0),j(this,"n",void 0),j(this,"t",void 0),j(this,"a",void 0),this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.is_svg?this.e=J(e.nodeName):this.e=B(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)O(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(M)}}class dt extends ut{constructor(){let t=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),j(this,"l",void 0),this.e=this.n=null,this.l=t}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let e=0;e<this.n.length;e+=1)T(this.t,this.n[e],t)}}function ht(t,e){return new t(e)}const pt=new Map;let ft,gt=0;function mt(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:p,rules:f}=pt.get(h)||function(t,e){const n={stylesheet:I(e),rules:{}};return pt.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule("@keyframes ".concat(d," ").concat(u),p.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"),gt+=1,d}function vt(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(", "),gt-=i,gt||x((()=>{gt||(pt.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&M(e)})),pt.clear())})))}function yt(t){ft=t}function $t(){if(!ft)throw new Error("Function called outside component initialization");return ft}function bt(t){$t().$$.on_mount.push(t)}function _t(t){$t().$$.on_destroy.push(t)}function wt(t,e){return $t().$$.context.set(t,e),e}function xt(t){return $t().$$.context.get(t)}function kt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const Et=[],At=[];let Ct=[];const Vt=[],Dt=Promise.resolve();let jt=!1;function Pt(){jt||(jt=!0,Dt.then(Tt))}function Ft(){return Pt(),Dt}function St(t){Ct.push(t)}const It=new Set;let Nt,Ot=0;function Tt(){if(0!==Ot)return;const t=ft;do{try{for(;Ot<Et.length;){const t=Et[Ot];Ot++,yt(t),Mt(t.$$)}}catch(t){throw Et.length=0,Ot=0,t}for(yt(null),Et.length=0,Ot=0;At.length;)At.pop()();for(let t=0;t<Ct.length;t+=1){const e=Ct[t];It.has(e)||(It.add(e),e())}Ct.length=0}while(Et.length);for(;Vt.length;)Vt.pop()();jt=!1,It.clear(),yt(t)}function Mt(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(St)}}function zt(){return Nt||(Nt=Promise.resolve(),Nt.then((()=>{Nt=null}))),Nt}function Bt(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 Jt=new Set;let Rt;function Lt(){Rt={r:0,c:[],p:Rt}}function Ut(){Rt.r||s(Rt.c),Rt=Rt.p}function Wt(t,e){t&&t.i&&(Jt.delete(t),t.i(e))}function Ht(t,e,n,r){if(t&&t.o){if(Jt.has(t))return;Jt.add(t),Rt.c.push((()=>{Jt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const qt={duration:0};function Gt(t,e,i){const o={direction:"in"};let a,s,c=e(t,i,o),u=!1,d=0;function h(){a&&vt(t,a)}function p(){const{delay:e=0,duration:i=300,easing:o=r,tick:l=n,css:p}=c||qt;p&&(a=mt(t,0,1,i,e,o,p,d++)),l(0,1);const f=w()+e,g=f+i;s&&s.abort(),u=!0,St((()=>Bt(t,!0,"start"))),s=A((e=>{if(u){if(e>=g)return l(1,0),Bt(t,!0,"end"),h(),u=!1;if(e>=f){const t=o((e-f)/i);l(t,1-t)}}return u}))}let f=!1;return{start(){f||(f=!0,vt(t),l(c)?(c=c(o),zt().then(p)):p())},invalidate(){f=!1},end(){u&&(h(),u=!1)}}}function Kt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Yt(t,e){Ht(t,1,1,(()=>{e.delete(t.key)}))}function Xt(t,e,n,r,i,o,a,l,c,u,d,h){let p=t.length,f=o.length,g=p;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,b=[];for(g=f;g--;){const t=h(i,o,g),s=n(t);let l=a.get(s);l?r&&b.push((()=>l.p(t,e))):(l=u(s,t),l.c()),y.set(s,v[g]=l),s in m&&$.set(s,Math.abs(g-m[s]))}const _=new Set,w=new Set;function x(t){Wt(t,1),t.m(l,d),a.set(t.key,t),d=t.first,f--}for(;p&&f;){const e=v[f-1],n=t[p-1],r=e.key,i=n.key;e===n?(d=e.first,p--,f--):y.has(i)?!a.has(r)||_.has(r)?x(e):w.has(i)?p--:$.get(r)>$.get(i)?(w.add(r),x(e)):(_.add(i),p--):(c(n,a),p--)}for(;p--;){const e=t[p];y.has(e.key)||c(e,a)}for(;f;)x(v[f-1]);return s(b),v}function Zt(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 Qt;function te(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?te(Object(n),!0).forEach((function(e){ne(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ne(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 re(t){t&&t.c()}function ie(t,e){t&&t.l(e)}function oe(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),St((()=>{const e=t.$$.on_mount.map(o).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),i.forEach(St)}function ae(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];Ct.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),Ct=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function se(t,e,r,i,o,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=ft;yt(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 p=!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),p&&function(t,e){-1===t.$$.dirty[0]&&(Et.push(t),Pt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,s(h.before_update),h.fragment=!!i&&i(h.ctx),e.target){if(e.hydrate){P=!0;const t=X(e.target);h.fragment&&h.fragment.l(t),t.forEach(M)}else h.fragment&&h.fragment.c();e.intro&&Wt(t.$$.fragment),oe(t,e.target,e.anchor),P=!1,Tt()}yt(d)}function le(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&&(Qt=class extends HTMLElement{constructor(t,e,n){super(),ne(this,"$$ctor",void 0),ne(this,"$$s",void 0),ne(this,"$$c",void 0),ne(this,"$$cn",!1),ne(this,"$$d",{}),ne(this,"$$r",!1),ne(this,"$$p_d",{}),ne(this,"$$l",{}),ne(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=B("slot"),"default"!==t&&H(e,"name",t)},m:function(t,n){O(t,e,n)},d:function(t){t&&M(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]=le(a,o.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ee(ee({},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=le(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]=le(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 ce{constructor(){ne(this,"$$",void 0),ne(this,"$$set",void 0)}$destroy(){ae(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 ue=[];function de(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=!ue.length;for(const e of i)e[1](),ue.push(e,t);if(e){for(let t=0;t<ue.length;t+=2)ue[t][0](ue[t+1]);ue.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 he(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,p=n;const f=()=>{if(d)return;p();const o=e(i?u[0]:u,t,r);a?t(o):p=l(o)?o:n},g=o.map(((t,e)=>h(t,(t=>{u[e]=t,d&=~(1<<e),c&&f()}),(()=>{d|=1<<e}))));return c=!0,f(),function(){s(g),p(),c=!1}},{subscribe:de(r,c).subscribe};var c}const pe={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"},fe=Symbol("root");function ge(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 me={"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_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},ve={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 ye(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 $e(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 be(t){let e=$e(t);return"0"===e&&(e+="em"),e}function _e(t,e){for(;t.length<e;)t="0"+t;return t}function we(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=xe(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>_e(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 xe(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 ke(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&amp;")),e.indexOf("<")>-1&&(e=e.replace(/</g,"&lt;")),e.indexOf(">")>-1&&(e=e.replace(/>/g,"&gt;")),e.indexOf('"')>-1&&(e=e.replace(/"/g,"&quot;")),e}const Ee=Boolean;function Ae(t){if(1===t.length&&"solid"===t[0].type)return{color:we(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=we(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(Ee);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>we(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:De(t.bg.scale),pos:je(t.bg),image:'url("'+ke(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(Ee);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=be(r.value):"relative"===r.type&&(i=Ce[r.value]));const o=Ve(t.bg.center_x),a=Ve(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=>we(t))).join(",")+")"}}({bg:t}):void 0)).filter(Ee).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 Ce={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Ve(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return be(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function De(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function je(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 Pe(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Fe(t,e){return e.has(t)}function Se(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 Ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Se(Object(n),!0).forEach((function(e){Ne(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ne(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 Oe(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function Te(t,e){e&&t.push(e)}function Me(t,e,n){const r=[];Te(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&Te(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const ze=Symbol("state");function Be(t){const e=t.top||0,n=t.right||0,r=t.bottom||0,i=t.left||0;return 0===e&&0===n&&0===r&&0===i?"":$e(e)+" "+$e(n)+" "+$e(r)+" "+$e(i)}function Je(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Re(t){return Je(t)&&t>=0}function Le(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]&&!Re(n[t]))return e;return Be(t)}function Ue(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const We=Object.prototype.hasOwnProperty;function He(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(!We.call(e,i)||!He(t[i],e[i]))return!1}return!0}function qe(t,e){return He(t,e)?e:t}function Ge(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Ke(t,e){const n=Number(t);return isNaN(n)?e:n}function Ye(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Ye(t))})):e.push(t),e}function Xe(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]]&&!Re(t[n[r]]))return e;return t}function Ze(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map((t=>$e((t||e)/n*10))).join(" ")}function Qe(){}const tn=Symbol("action");function en(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function nn(t){var e;let n,r,o,a,l,c,u,d;const h=t[17].default,p=f(h,t,t[16],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?pe.root__clickable:pe["root__clickable-no-transition"]," ").concat(pe.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?pe["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=B("span"),p&&p.c(),this.h()},l(t){n=et(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=X(n);p&&p.l(e),e.forEach(M),this.h()},h(){G(n,$)},m(e,r){T(e,n,r),p&&p.m(n,null),t[25](n),c=!0,u||(d=[b(l=t[4].call(null,n)),W(n,"click",t[21]),W(n,"keydown",t[10]),W(n,"focus",t[22]),W(n,"blur",t[23])],u=!0)},p(t,e){var i;p&&p.p&&(!c||65536&e[0])&&v(p,h,t,t[16],c?m(h,t[16],e,null):y(t[16]),null),G(n,$=Zt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?pe.root__clickable:pe["root__clickable-no-transition"]," ").concat(pe.root__unselectable):"")+" "+(null!==(i=t[0])&&void 0!==i&&i.length?pe["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||(Wt(p,t),c=!0)},o(t){Ht(p,t),c=!1},d(e){e&&M(n),p&&p.d(e),t[25](null),u=!1,s(d)}}}function rn(t){var e;let n,r,o,a,l,c;const u=t[17].default,d=f(u,t,t[16],null);let h=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?pe.root__clickable:pe["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?pe["root_disabled-context-menu"]:"")},t[3]],p={};for(let t=0;t<h.length;t+=1)p=i(p,h[t]);return{c(){n=B("a"),d&&d.c(),this.h()},l(t){n=et(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=X(n);d&&d.l(e),e.forEach(M),this.h()},h(){G(n,p)},m(e,r){T(e,n,r),d&&d.m(n,null),t[24](n),a=!0,l||(c=[b(o=t[4].call(null,n)),W(n,"click",t[18]),W(n,"keydown",t[10]),W(n,"focus",t[19]),W(n,"blur",t[20])],l=!0)},p(t,e){var i;d&&d.p&&(!a||65536&e[0])&&v(d,u,t,t[16],a?m(u,t[16],e,null):y(t[16]),null),G(n,p=Zt(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]?pe.root__clickable:pe["root__clickable-no-transition"])+" "+(null!==(i=t[0])&&void 0!==i&&i.length?pe["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Wt(d,t),a=!0)},o(t){Ht(d,t),a=!1},d(e){e&&M(n),d&&d.d(e),t[24](null),l=!1,s(c)}}}function on(t){let e,n,r,i;const o=[rn,nn],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=o[e](t),{c(){n.c(),r=U()},l(t){n.l(t),r=U()},m(t,n){a[e].m(t,n),T(t,r,n),i=!0},p(t,i){let l=e;e=s(t),e===l?a[e].p(t,i):(Lt(),Ht(a[l],1,1,(()=>{a[l]=null})),Ut(),n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Wt(n,1),n.m(r.parentNode,r))},i(t){i||(Wt(n),i=!0)},o(t){Ht(n),i=!1},d(t){t&&M(r),a[e].d(t)}}}function an(t,e,n){let{$$slots:r={},$$scope:i}=e,{id:o=""}=e,{actions:a}=e,{doubleTapActions:s}=e,{longTapActions:l}=e,{cls:c=""}=e,{style:u=null}=e,{attrs:d}=e,{use:h=Qe}=e,{customAction:p=null}=e,{isNativeActionAnimation:f=!0}=e,{hasInnerFocusable:g=!1}=e;const m=xt(fe),v=xt(tn);let y;wt(tn,{hasAction:()=>Boolean(v.hasAction()||(null==a?void 0:a.length))});let $,b="",_=-1,w=null,x=!1,k=!1;async function E(t){v.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==p?void 0:p(t))?t.preventDefault():a&&(a.some((t=>{if(null==t?void 0:t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=Pe(e);return n&&!Fe(n,m.getBuiltinProtocols())}))&&t.preventDefault(),m.execAnyActions(a)))}function A(t){v.hasAction()||void 0!==t.button&&0!==t.button||m.execAnyActions(s,!0)}function C(t){t.touches.length>1||(w=en(t),x=!1,_=Date.now())}function V(t){if(!w)return;const e=en(t);(Math.abs(w.x-e.x)>8||Math.abs(w.y-e.y)>8)&&(x=!0)}function D(){!w||_<0||(!x&&Date.now()-_>=400&&m.execAnyActions(l,!0),w=null,_=-1)}return bt((()=>{o&&!g&&m.registerFocusable(o,{focus(){y&&(b||k)&&y.focus()}})})),_t((()=>{o&&!g&&m.unregisterFocusable(o)})),t.$$set=t=>{"id"in t&&n(11,o=t.id),"actions"in t&&n(12,a=t.actions),"doubleTapActions"in t&&n(13,s=t.doubleTapActions),"longTapActions"in t&&n(0,l=t.longTapActions),"cls"in t&&n(1,c=t.cls),"style"in t&&n(2,u=t.style),"attrs"in t&&n(3,d=t.attrs),"use"in t&&n(4,h=t.use),"customAction"in t&&n(14,p=t.customAction),"isNativeActionAnimation"in t&&n(5,f=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(15,g=t.hasInnerFocusable),"$$scope"in t&&n(16,i=t.$$scope)},t.$$.update=()=>{if(20608&t.$$.dirty[0]){if(Array.isArray(a)&&(null==a?void 0:a.length))for(let t=0;t<a.length;++t){const e=a[t].url;if(e){n(7,b=e),n(9,$=a[t].target||void 0);break}}Array.isArray(a)&&(null==a?void 0:a.length)&&v.hasAction()&&(n(7,b=""),m.logError(ge(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:a}}))),n(8,k=Boolean(p)),b&&!Fe(Pe(b),m.getBuiltinProtocols())?(n(7,b=""),n(8,k=!0)):!b&&Array.isArray(a)&&(null==a?void 0:a.length)&&(n(8,k=!0),a.some((t=>t.url||t.typed))||m.logError(ge(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:a}})))}8641&t.$$.dirty[0]&&y&&(b||k?y.addEventListener("click",E):y.removeEventListener("click",E),(null==s?void 0:s.length)?y.addEventListener("dblclick",A):y.removeEventListener("dblclick",A),(null==l?void 0:l.length)?(y.addEventListener("touchstart",C,{passive:!0}),y.addEventListener("touchmove",V,{passive:!0}),y.addEventListener("touchend",D,{passive:!0}),y.addEventListener("touchcancel",D,{passive:!0})):(y.removeEventListener("touchstart",C),y.removeEventListener("touchmove",V),y.removeEventListener("touchend",D),y.removeEventListener("touchcancel",D)))},[l,c,u,d,h,f,y,b,k,$,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(a)&&a.length&&(m.execAnyActions(a),t.preventDefault())},o,a,s,p,g,i,r,function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(t){At[t?"unshift":"push"]((()=>{y=t,n(6,y)}))},function(t){At[t?"unshift":"push"]((()=>{y=t,n(6,y)}))}]}const sn=class extends ce{constructor(t){super(),se(this,t,an,on,d,{id:11,actions:12,doubleTapActions:13,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:14,isNativeActionAnimation:5,hasInnerFocusable:15},null,[-1,-1])}},ln={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function cn(t){return Je(t)&&t>0}function un(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(cn(t.radius))return"blur(".concat(be(t.radius/2),")")}else e(ge(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function dn(t,e,n){const r=t.slice();return r[5]=e[n],r}function hn(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=ln["outer-background__item"]),H(e,"style",r=ye(t[5].style))},m(t,n){T(t,e,n)},p(t,n){2&n&&r!==(r=ye(t[5].style))&&H(e,"style",r)},d(t){t&&M(e)}}}function pn(t){let e,n,r,i,o,a;return{c(){e=B("img"),this.h()},l(t){e=et(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)||H(e,"src",n),H(e,"alt",""),H(e,"aria-hidden","true"),H(e,"loading","lazy"),H(e,"decoding","async"),H(e,"class",r=ln["outer-background__item"]),H(e,"style",i=ye(t[5].style))},m(n,r){T(n,e,r),o||(a=W(e,"error",t[2]),o=!0)},p(t,r){2&r&&!u(e.src,n=t[5].image_url)&&H(e,"src",n),2&r&&i!==(i=ye(t[5].style))&&H(e,"style",i)},d(t){t&&M(e),o=!1,a()}}}function fn(t){let e;function n(t,e){return t[5].image_url?pn:hn}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(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&&M(e),i.d(t)}}}function gn(t){let e,r,i=Kt(t[1]),o=[];for(let e=0;e<i.length;e+=1)o[e]=fn(dn(t,i,e));return{c(){e=B("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=et(t,"SPAN",{class:!0});var n=X(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(M),this.h()},h(){H(e,"class",r=ln["outer-background"]+(t[0]?" "+ln["outer-background_clip"]:"")),lt(e,"border-radius",t[0])},m(t,n){T(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=Kt(t[1]),n=0;n<i.length;n+=1){const r=dn(t,i,n);o[n]?o[n].p(r,a):(o[n]=fn(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=ln["outer-background"]+(t[0]?" "+ln["outer-background_clip"]:""))&&H(e,"class",r),1&a&&lt(e,"border-radius",t[0])},i:n,o:n,d(t){t&&M(e),z(o,t)}}}function mn(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=xt(fe);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=Ae([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=un(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(ln["outer-background__item_hidden"])},i]}const vn=class extends ce{constructor(t){super(),se(this,t,mn,gn,d,{background:3,radius:0})}},yn=t=>({hasCustomFocus:256&t[0]}),$n=t=>({focusHandler:t[38],blurHandler:t[39],hasCustomFocus:t[8]});function bn(t){let e,n;return e=new sn({props:{id:t[0].id,use:t[37],cls:t[1]+" "+Me("outer",ve,t[17]),style:ye(t[16]),actions:t[13],doubleTapActions:t[14],longTapActions:t[15],attrs:t[9],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||Cn(t[7]),$$slots:{default:[xn]},$$scope:{ctx:t}}}),e.$on("focus",t[38]),e.$on("blur",t[39]),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.id=t[0].id),131074&n[0]&&(r.cls=t[1]+" "+Me("outer",ve,t[17])),65536&n[0]&&(r.style=ye(t[16])),8192&n[0]&&(r.actions=t[13]),16384&n[0]&&(r.doubleTapActions=t[14]),32768&n[0]&&(r.longTapActions=t[15]),512&n[0]&&(r.attrs=t[9]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||Cn(t[7])),1400&n[0]|268435456&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function _n(t){let e,n;return e=new vn({props:{background:t[5],radius:t[4]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function wn(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=ve.outer__border),H(e,"style",r=ye(t[3]))},m(t,n){T(t,e,n)},p(t,n){8&n[0]&&r!==(r=ye(t[3]))&&H(e,"style",r)},d(t){t&&M(e)}}}function xn(t){let e,n,r,i=t[6]&&_n(t);const o=t[120].default,a=f(o,t,t[121],$n);let s=t[10]&&wn(t);return{c(){i&&i.c(),e=U(),a&&a.c(),s&&s.c(),n=U()},l(t){i&&i.l(t),e=U(),a&&a.l(t),s&&s.l(t),n=U()},m(t,o){i&&i.m(t,o),T(t,e,o),a&&a.m(t,o),s&&s.m(t,o),T(t,n,o),r=!0},p(t,l){t[6]?i?(i.p(t,l),64&l[0]&&Wt(i,1)):(i=_n(t),i.c(),Wt(i,1),i.m(e.parentNode,e)):i&&(Lt(),Ht(i,1,1,(()=>{i=null})),Ut()),a&&a.p&&(!r||256&l[0]|268435456&l[3])&&v(a,o,t,t[121],r?m(o,t[121],l,yn):y(t[121]),$n),t[10]?s?s.p(t,l):(s=wn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Wt(i),Wt(a,t),r=!0)},o(t){Ht(i),Ht(a,t),r=!1},d(t){t&&(M(e),M(n)),i&&i.d(t),a&&a.d(t),s&&s.d(t)}}}function kn(t){let e,n,r=!t[11]&&!t[12]&&bn(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[11]||t[12]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),6144&n[0]&&Wt(r,1)):(r=bn(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const En={left:"start",center:"center",right:"end"},An={top:"start",center:"center",bottom:"end",baseline:"baseline"};function Cn(t){return t.some((t=>"native"===t.name))}function Vn(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I,N,O,T,M,z,B,J,R,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,ht=n,pt=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((()=>ht())),t.$$.on_destroy.push((()=>pt()));let{$$slots:ft={},$$scope:gt}=e,{json:mt={}}=e,{origJson:vt}=e,{templateContext:yt}=e,{cls:$t=""}=e,{style:bt}=e,{layoutParams:wt={}}=e,{customDescription:kt=!1}=e,{customPaddings:Et=!1}=e,{customActions:At=""}=e,{additionalPaddings:Ct=null}=e,{heightByAspect:Vt=!1}=e,{parentOf:Dt}=e,{parentOfSimpleMode:jt}=e,{replaceItems:Pt}=e,{hasInnerFocusable:St=!1}=e;const It=xt(fe),Nt=xt(ze),Ot=It.isPointerFocus;let Tt,Mt;p(t,Ot,(t=>r(127,P=t)));let zt,Bt,Jt,Rt,Lt,Ut,Wt,Ht,qt,Gt,Kt,Yt,Xt,Zt,Qt,te,ee,ne,re,ie,oe=null,ae=[],se={},le={},ce=!1,ue=1,de="transparent",he=0,pe={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},me="",ve=null,ye="",_e={},xe=0,ke=0,Ce=0,Ve=!1,De=!1,je={},Se=0,Ne=0,Te=0,Me=!1,Je=!1,We=1,Qe=[],tn=!1,en=!1,nn=[],rn=[],on=[],an=[],sn=[],ln=[],cn="",un=!1,dn="visible",hn=0,pn=0,fn=!1,gn=null;function mn(t,e){if(!Array.isArray(Dt)||!Pt)return;if(jt&&1!==(Array.isArray(e)&&e.length||0))return;const n=Dt.findIndex((e=>(null==e?void 0:e.id)===t)),i=Dt.slice();i.splice(n,1,...e||[]),r(40,Dt=i),Pt(i)}function vn(t){const e=Ke(t.start_value,1),n=Ke(t.end_value,1),i=Ue(t.start_delay,0),o=Ue(t.duration,300),a=Ge(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(86,Zt=e),r(87,Qt=n),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return r(88,te=e),r(89,ee=n),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return It.logError(ge(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function yn(){if(oe&&Tt){const t=It.getExtensionContext();oe.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,Tt,t)})),oe=null}}return _t((()=>{var t;ae.forEach((t=>{It.unregisterParentOf(t)})),r(53,ae=[]),null===(t=mt.tooltips)||void 0===t||t.forEach((t=>{It.unregisterTooltip(t)})),yn()})),t.$$set=t=>{"json"in t&&r(0,mt=t.json),"origJson"in t&&r(41,vt=t.origJson),"templateContext"in t&&r(42,yt=t.templateContext),"cls"in t&&r(1,$t=t.cls),"style"in t&&r(43,bt=t.style),"layoutParams"in t&&r(44,wt=t.layoutParams),"customDescription"in t&&r(45,kt=t.customDescription),"customPaddings"in t&&r(46,Et=t.customPaddings),"customActions"in t&&r(47,At=t.customActions),"additionalPaddings"in t&&r(48,Ct=t.additionalPaddings),"heightByAspect"in t&&r(49,Vt=t.heightByAspect),"parentOf"in t&&r(40,Dt=t.parentOf),"parentOfSimpleMode"in t&&r(50,jt=t.parentOfSimpleMode),"replaceItems"in t&&r(51,Pt=t.replaceItems),"hasInnerFocusable"in t&&r(2,St=t.hasInnerFocusable),"$$scope"in t&&r(121,gt=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]|8192&t.$$.dirty[1]|262144&t.$$.dirty[2]&&mt&&wt&&(r(59,ve=null),r(60,ye=""),r(77,We=1),r(90,un=!1),r(91,dn="visible"),r(92,hn=0),r(93,pn=0),r(94,ne=void 0),r(95,re=void 0),r(80,Qe=wt.fakeElement?[]:mt.transition_triggers||["state_change","visibility_change"]),r(81,tn=Boolean(-1!==Qe.indexOf("state_change")&&mt.id)),en=Boolean(-1!==Qe.indexOf("visibility_change")&&mt.id)),1&t.$$.dirty[0]&&(r(35,i=It.getDerivedFromVars(mt.focus)),Q(),Q=h(i,(t=>r(105,N=t)))),1&t.$$.dirty[0]&&(r(34,o=It.getDerivedFromVars(mt.border)),pt(),pt=h(o,(t=>r(119,K=t)))),1&t.$$.dirty[0]&&(r(33,a=It.getDerivedFromVars(mt.paddings)),ht(),ht=h(a,(t=>r(118,G=t)))),1&t.$$.dirty[0]&&(r(32,s=It.getDerivedFromVars(mt.margins)),ut(),ut=h(s,(t=>r(116,H=t)))),1&t.$$.dirty[0]&&(r(31,l=It.getDerivedFromVars(mt.width)),lt(),lt=h(l,(t=>r(114,U=t)))),1&t.$$.dirty[0]&&(r(30,c=It.getDerivedFromVars(mt.alignment_horizontal)),dt(),dt=h(c,(t=>r(117,q=t)))),1&t.$$.dirty[0]&&(r(29,u=It.getDerivedFromVars(mt.height)),st(),st=h(u,(t=>r(113,L=t)))),1&t.$$.dirty[0]&&(r(28,d=It.getDerivedFromVars(mt.alignment_vertical)),ct(),ct=h(d,(t=>r(115,W=t)))),1&t.$$.dirty[0]&&(r(27,f=It.getDerivedFromVars(mt.alpha)),at(),at=h(f,(t=>r(112,R=t)))),1&t.$$.dirty[0]&&(r(26,g=It.getDerivedFromVars(mt.accessibility)),ot(),ot=h(g,(t=>r(111,J=t)))),1&t.$$.dirty[0]&&(r(25,m=It.getDerivedFromVars(mt.background)),it(),it=h(m,(t=>r(110,B=t)))),1&t.$$.dirty[0]&&(r(24,v=It.getDerivedFromVars(mt.action)),nt(),nt=h(v,(t=>r(108,M=t)))),1&t.$$.dirty[0]&&(r(23,y=It.getDerivedFromVars(mt.actions)),rt(),rt=h(y,(t=>r(109,z=t)))),1&t.$$.dirty[0]&&(r(22,$=It.getDerivedFromVars(mt.doubletap_actions)),et(),et=h($,(t=>r(107,T=t)))),1&t.$$.dirty[0]&&(r(21,b=It.getDerivedFromVars(mt.longtap_actions)),tt(),tt=h(b,(t=>r(106,O=t)))),1&t.$$.dirty[0]&&(r(20,_=It.getDerivedFromVars(mt.action_animation)),Z(),Z=h(_,(t=>r(104,I=t)))),1&t.$$.dirty[0]&&(r(19,w=It.getDerivedFromVars(mt.visibility)),X(),X=h(w,(t=>r(103,S=t)))),1&t.$$.dirty[0]&&(r(18,x=It.getDerivedFromVars(mt.transform)),Y(),Y=h(x,(t=>r(102,F=t)))),4719104&t.$$.dirty[1]&&(ae.forEach((t=>{It.unregisterParentOf(t)})),r(53,ae=[]),Dt&&Dt.forEach((t=>{(null==t?void 0:t.id)&&(ae.push(t.id),It.registerParentOf(t.id,{replaceWith:mn,isSingleMode:Boolean(jt)}))}))),264&t.$$.dirty[0]|260046848&t.$$.dirty[1]|67112960&t.$$.dirty[3]){const t=fn&&(null==N?void 0:N.border)?N.border:K;let e={},n={},i=!1,o="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,i,o,a;return $e((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+$e((null===(r=t.offset)||void 0===r||null===(i=r.y)||void 0===i?void 0:i.value)||0)+" "+$e(null!==(o=t.blur)&&void 0!==o?o:2)+" "+we(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(n):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(i=!0,r(55,ue=Ue(t.stroke.width,ue)),r(56,de=we(t.stroke.color,1,de)),n.border="".concat($e(ue)," solid ").concat(de)),t.corners_radius?(r(58,pe=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!Re(n[t]))return e;return t}(t.corners_radius,pe)),n["border-radius"]=e["border-radius"]=Ze(pe)):t.corner_radius&&(r(57,he=Ue(t.corner_radius,he)),r(58,pe={"top-left":he,"top-right":he,"bottom-right":he,"bottom-left":he}),n["border-radius"]=e["border-radius"]=$e(he)),i&&ue&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},pe);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+ue/2})),o=Ze(t)}}r(54,se=qe(e,se)),r(3,le=qe(n,le)),r(10,ce=i),r(4,me=o)}if(268468224&t.$$.dirty[1]|33554432&t.$$.dirty[3]&&r(59,ve=Xe(G&&!Et?G:void 0,ve)),268566528&t.$$.dirty[1]&&r(98,k=Be(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}(ve,Ct))),536870912&t.$$.dirty[1]|8388608&t.$$.dirty[3]&&r(60,ye=Le(H,ye)),1073750016&t.$$.dirty[1]|8&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(65,xe=Ue(null==U?void 0:U.value,xe)),e=$e(xe);else if("wrap_content"===u||("match_parent"===u||!u)&&wt.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||("match_parent"===u||!u)&&wt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===wt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=U;t.min_size&&Re(t.min_size.value)&&(n=$e(t.min_size.value)),t.max_size&&Re(t.max_size.value)&&(i=$e(t.max_size.value))}"match_parent"!==u&&u||It.logError(ge(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,It.logError(ge(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===wt.parentLayoutOrientation?e="calc(100% - ".concat(be(((null==H?void 0:H.left)||0)+((null==H?void 0:H.right)||0)),")"):"horizontal"===wt.parentContainerOrientation&&(a=U&&"weight"in U&&U.weight||1,wt.parentContainerWrap&&(l=!0));if("parent"===t)o["halign-self"]="stretch";else{const t=q;o["halign-self"]="left"===t||"center"===t||"right"===t?En[t]:wt.parentHAlign||"start"}t&&(o.width=t),r(62,zt=e),r(63,Bt=n),r(64,Jt=i),r(66,ke=a),r(67,Ce=s),r(61,_e=qe(o,_e)),r(68,Ve=l),r(11,De=c)}if(270336&t.$$.dirty[1]|2176&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(Vt);else if("fixed"===u)r(73,Se=Ue(null==L?void 0:L.value,Se)),e=$e(Se);else if("match_parent"!==u||wt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==L?void 0:L.constrained)||"match_parent"===u&&wt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===wt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=L;(null==t?void 0:t.min_size)&&Re(t.min_size.value)&&(n=$e(t.min_size.value)),(null==t?void 0:t.max_size)&&Re(t.max_size.value)&&(i=$e(t.max_size.value))}"match_parent"===u&&It.logError(ge(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,It.logError(ge(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===wt.parentLayoutOrientation?e="calc(100% - ".concat(be(((null==H?void 0:H.top)||0)+((null==H?void 0:H.bottom)||0)),")"):"vertical"===wt.parentContainerOrientation&&(a=(null==L?void 0:L.weight)||1,wt.parentContainerWrap&&(l=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=W;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===wt.parentContainerOrientation?o["valign-self"]=An[t]:o["valign-self"]=wt.parentVAlign||"start"}t&&(o.height=t),r(70,Rt=e),r(71,Lt=n),r(72,Ut=i),r(74,Ne=a),r(75,Te=s),r(69,je=qe(o,je)),r(76,Me=l),r(12,Je=c)}var e,n;if(8192&t.$$.dirty[1]&&r(101,E=!!wt.overlapParent||void 0),8192&t.$$.dirty[1]|3145728&t.$$.dirty[3]&&r(100,A=wt.overlapParent&&(!U||"match_parent"===U.type)&&!wt.parentHorizontalWrapContent&&"match_parent"===(null==L?void 0:L.type)&&!wt.parentVerticalWrapContent),8192&t.$$.dirty[1]&&r(99,C=wt.gridArea?"".concat(wt.gridArea.y+1,"/").concat(wt.gridArea.x+1,"/span ").concat(wt.gridArea.rowSpan,"/span ").concat(wt.gridArea.colSpan):void 0),32768&t.$$.dirty[2]|524288&t.$$.dirty[3]&&(r(77,(n=We,We=!Re(e=R)||void 0===e||e>1?n:Number(e))),r(78,Wt=1===We?void 0:We)),16384&t.$$.dirty[1]|262144&t.$$.dirty[3]&&(r(9,Mt=void 0),J&&!kt&&J.description&&(r(9,Mt={}),r(9,Mt["aria-label"]=J.description,Mt))),368&t.$$.dirty[0]|135168&t.$$.dirty[3]&&(r(5,Ht=fn&&(null==N?void 0:N.background)?N.background:B),r(79,qt={}),r(6,Gt=!1),Array.isArray(Ht)&&(r(6,Gt=Ht.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(me)),!Gt))){const t=Ae(Ht);r(79,qt["background-color"]=t.color,qt),r(79,qt["background-image"]=t.image,qt),r(79,qt["background-size"]=t.size,qt),r(79,qt["background-position"]=t.position,qt),r(79,qt["background-repeat"]="no-repeat",qt)}if(1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(r(82,Kt=void 0),tn&&mt.transition_in&&It.isRunning("stateChange")&&r(82,Kt=!0)),1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(r(84,Xt=void 0),tn&&mt.transition_change&&It.isRunning("stateChange")&&Nt.hasTransitionChange(mt.id)&&r(84,Xt=!0)),73728&t.$$.dirty[1]|126976&t.$$.dirty[3]){let t=z||M&&[M]||[],e=T||[],n=O||[],i=(null==N?void 0:N.on_focus)||[],o=(null==N?void 0:N.on_blur)||[];wt.fakeElement?(t=[],e=[],n=[],i=[],o=[]):(Array.isArray(t)||(t=[],It.logError(ge(new Error("Actions should be array")))),Array.isArray(e)||(e=[],It.logError(ge(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],It.logError(ge(new Error("LongTapActions should be array")))),Array.isArray(i)||(i=[],It.logError(ge(new Error("FocusActions should be array")))),Array.isArray(o)||(o=[],It.logError(ge(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&At&&(t=[],e=[],n=[],It.logError(ge(new Error('Cannot use action on component "'.concat(At,'"'))))),r(13,nn=t),r(14,rn=e),r(15,on=n),an=i,sn=o}if(128&t.$$.dirty[0]|2048&t.$$.dirty[3]&&I&&(r(7,ln=Ye(I)),r(85,cn=ln.map(vn).filter(Boolean).join(", "))),805306368&t.$$.dirty[2]|1024&t.$$.dirty[3]){const t=dn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(S,dn);t!==e&&(!un||"visible"!==dn&&"visible"!==e?r(91,dn=e):async function(t){r(91,dn=t);const e="visible"===t?"in":"out",n="in"===e?mt.transition_in:mt.transition_out;en&&n&&(await Ft(),"in"===e&&r(83,Yt=!0),Nt.runVisibilityTransition(Object.assign(Object.assign({},mt),{visibility:"visible"}),yt,n,Tt,e).then((()=>{"in"===e&&r(83,Yt=!1)})).catch((t=>{throw"in"===e&&r(83,Yt=!1),t})))}(e)),un||r(90,un=!0)}if(1&t.$$.dirty[0]|2097152&t.$$.dirty[1]|8&t.$$.dirty[3]&&mt&&Tt&&!He(mt.extensions,ie)){let t=r(96,ie=mt.extensions);Ft().then((()=>{if(t===ie&&Tt&&(yn(),Array.isArray(mt.extensions))){const t=It.getExtensionContext();oe=mt.extensions.map((e=>{var n;const r=It.getExtension(e.id,e.params);return r&&(null===(n=r.mountView)||void 0===n||n.call(r,Tt,t)),r})).filter(Ee)}}))}if(1&t.$$.dirty[0]|3072&t.$$.dirty[1]&&mt&&vt&&yt&&gn&&gn.update({json:mt,origJson:vt,templateContext:yt}),257&t.$$.dirty[0]|1073750016&t.$$.dirty[1]|552599680&t.$$.dirty[2]|384&t.$$.dirty[3]&&r(17,V=Object.assign(Object.assign(Object.assign({},_e),je),{"parent-overlap":E,"parent-overlap-absolute":A,"scroll-snap":wt.scrollSnap,"hide-on-transition-in":Kt||Yt||Xt,visibility:dn,"has-action-animation":Boolean(cn),"parent-flex":wt.parentContainerOrientation||void 0,"parent-grid":Boolean(wt.gridArea)||void 0,"has-custom-focus":Boolean(fn&&mt.focus)})),1073741824&t.$$.dirty[2]|513&t.$$.dirty[3]&&F&&void 0!==F.rotation){const t=F.pivot_x||{type:"pivot-percentage",value:50};r(92,hn=Ke(t.value,hn));const e="pivot-fixed"===t.type?$e(hn):"".concat(hn,"%"),n=F.pivot_y||{type:"pivot-percentage",value:50};r(93,pn=Ke(n.value,pn));const i="pivot-fixed"===n.type?$e(pn):"".concat(pn,"%");r(94,ne="".concat(e," ").concat(i)),r(95,re="rotate(".concat(F.rotation,"deg)"))}20560&t.$$.dirty[2]&&r(97,D=Ve||Me?"100%":ke||Ne?0:void 0),545263616&t.$$.dirty[1]|260257591&t.$$.dirty[2]|118&t.$$.dirty[3]&&r(16,j=Object.assign(Object.assign(Object.assign(Object.assign({},bt),qt),se),{width:zt,"min-width":Bt,"max-width":Jt,height:Rt,"min-height":Lt,"max-height":Ut||(null==bt?void 0:bt["max-height"]),"grid-area":C,padding:k,margin:ye,opacity:Wt,transition:cn,"transform-origin":ne,transform:re,"flex-grow":ke||Ne||void 0,"flex-shrink":Ce||Te?1:void 0,"flex-basis":D,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ee}))},[mt,$t,St,le,me,Ht,Gt,ln,fn,Mt,ce,De,Je,nn,rn,on,j,V,x,w,_,b,$,y,v,m,g,f,d,u,c,l,s,a,o,i,Ot,function(t){var e;r(52,Tt=t),tn&&mt.transition_in&&Nt.registerChildWithTransitionIn(mt,yt,mt.transition_in,t).then((()=>{r(82,Kt=!1)})).catch((t=>{throw r(82,Kt=!1),t})),tn&&mt.transition_out&&Nt.registerChildWithTransitionOut(mt,yt,mt.transition_out,t),tn&&mt.transition_change&&Nt.registerChildWithTransitionChange(mt,yt,mt.transition_change,t).then((()=>{r(84,Xt=!1)})).catch((t=>{throw r(84,Xt=!1),t}));const n=wt.fakeElement?[]:mt.visibility_actions||mt.visibility_action&&[mt.visibility_action],i=wt.fakeElement?[]:mt.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 Ie(Ie({},n),{},{visibility_percentage:Oe(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,s=o.typed;if(a){const t=Pe(a);t&&!Fe(t,i.getBuiltinProtocols())&&("div-action"===t?i.execAction(o):o.log_id&&i.execCustomAction(o))}else s&&i.execAction(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:It});const o=mt.id;return o&&Nt.registerChild(o),null===(e=mt.tooltips)||void 0===e||e.forEach((e=>{It.registerTooltip(t,e)})),{destroy(){o&&Nt.unregisterChild(o),gn&&gn.destroy()}}},function(){mt.focus&&(P||r(8,fn=!0),It.execAnyActions(an))},function(){mt.focus&&(r(8,fn=!1),It.execAnyActions(sn))},Dt,vt,yt,bt,wt,kt,Et,At,Ct,Vt,jt,Pt,Tt,ae,se,ue,de,he,pe,ve,ye,_e,zt,Bt,Jt,xe,ke,Ce,Ve,je,Rt,Lt,Ut,Se,Ne,Te,Me,We,Wt,qt,Qe,tn,Kt,Yt,Xt,cn,Zt,Qt,te,ee,un,dn,hn,pn,ne,re,ie,D,k,C,A,E,F,S,I,N,O,T,M,z,B,J,R,L,U,W,H,q,G,K,ft,gt]}const Dn=class extends ce{constructor(t){super(),se(this,t,Vn,kn,d,{json:0,origJson:41,templateContext:42,cls:1,style:43,layoutParams:44,customDescription:45,customPaddings:46,customActions:47,additionalPaddings:48,heightByAspect:49,parentOf:40,parentOfSimpleMode:50,replaceItems:51,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},jn={"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 Pn(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function Fn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Sn(t,e){return Fn(t)||e}function In(t){let e,n;return{c(){e=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=jn["text-range__top-offset"]),lt(e,"margin-top",t[4])},m(t,n){T(t,e,n)},p(t,n){16&n&&lt(e,"margin-top",t[4])},d(t){t&&M(e)}}}function Nn(t){let e;return{c(){e=R(t[0])},l(n){e=rt(n,t[0])},m(t,n){T(t,e,n)},p(t,n){1&n&&at(e,t[0])},d(t){t&&M(e)}}}function On(t){let e,n,r,i=t[4]&&In(t);return n=new sn({props:{cls:Me("text-range",jn,t[3]),actions:t[1],style:ye(t[2]),$$slots:{default:[Nn]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=U(),re(n.$$.fragment)},l(t){i&&i.l(t),e=U(),ie(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),T(t,e,o),oe(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=In(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=Me("text-range",jn,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=ye(t[2])),8388609&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(Wt(n.$$.fragment,t),r=!0)},o(t){Ht(n.$$.fragment,t),r=!1},d(t){t&&M(e),i&&i.d(t),ae(n,t)}}}function Tn(t,e,n){let r,i,o,a,s,l;var c,u;let{json:d}=e,{text:h}=e,{rootFontSize:p}=e,{textStyles:f={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=xt(fe);let y,$="none",b=12,_=1.25,w="",x="",k="",E=null;return t.$$set=t=>{"json"in t&&n(5,d=t.json),"text"in t&&n(0,h=t.text),"rootFontSize"in t&&n(6,p=t.rootFontSize),"textStyles"in t&&n(7,f=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(1,m=t.actions)},t.$$.update=()=>{if(32&t.$$.dirty&&d&&(n(11,$="none"),n(12,b=12),n(13,_=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,k=""),n(18,E=null)),128&t.$$.dirty){let t="none";(f.underline||f.strike)&&("single"===f.underline&&"single"===f.strike?t="both":"single"===f.underline?t="underline":"single"===f.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,b=Pn(f.font_size,b)),4224&t.$$.dirty&&cn(f.line_height)&&n(13,_=Number(f.line_height)/b),128&t.$$.dirty&&Re(f.letter_spacing)&&n(14,w=$e(f.letter_spacing)),32896&t.$$.dirty&&(n(15,y=Sn(f.font_weight,y)),"string"==typeof f.font_family&&f.font_family?n(16,x=v.typefaceProvider(f.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,k=we(f.text_color,1,k)),128&t.$$.dirty&&n(4,r=f.top_offset?$e(f.top_offset):""),128&t.$$.dirty&&n(20,i=f.background?Ae([f.background]):null),640&t.$$.dirty&&((null===n(9,c=f.border)||void 0===c?void 0:c.stroke)&&f.border.stroke.color&&"transparent"!==we(f.border.stroke.color)&&cn(f.border.stroke.width)?n(18,E={color:f.border.stroke.color,width:f.border.stroke.width}):n(18,E=null)),1152&t.$$.dirty&&n(19,o=Pn(null===n(10,u=f.border)||void 0===u?void 0:u.corner_radius,0)),4224&t.$$.dirty&&n(21,a=f.text_shadow?function(t,e){var n,r,i,o,a,s;return"drop-shadow("+we(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+$e(10*((null===(r=t.offset)||void 0===r||null===(i=r.x)||void 0===i?void 0:i.value)||0)/e)+" "+$e(10*((null===(o=t.offset)||void 0===o||null===(a=o.y)||void 0===a?void 0:a.value)||0)/e)+" "+$e(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(f.text_shadow,b):void 0),2304&t.$$.dirty&&n(3,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(2,l={"font-size":$e(10*b/p),"line-height":_,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:k,background:(null==i?void 0:i.color)||void 0,"box-shadow":E?"inset 0 0 0 ".concat($e(E.width)," ").concat(E.color):void 0,"border-radius":o?$e(o):void 0})},[h,m,l,s,r,d,p,f,g,c,u,$,b,_,w,y,x,k,E,o,i,a]}const Mn=class extends ce{constructor(t){super(),se(this,t,Tn,On,d,{json:5,text:0,rootFontSize:6,textStyles:7,singleline:8,actions:1})}};function zn(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Bn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Jn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function Rn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:Ln}=C;function Un(t,e,n){const r=t.slice();return r[57]=e[n],r[59]=n,r}function Wn(t){let e,n;return e=new Mn({props:{json:t[0],text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),134217728&n[0]&&(r.textStyles=t[27]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Hn(t){let e,n,r=Kt(t[9]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Yn(Un(t,r,e));const o=t=>Ht(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(268436385&n[0]){let a;for(r=Kt(t[9]),a=0;a<r.length;a+=1){const o=Un(t,r,a);i[a]?(i[a].p(o,n),Wt(i[a],1)):(i[a]=Yn(o),i[a].c(),Wt(i[a],1),i[a].m(e.parentNode,e))}for(Lt(),a=r.length;a<i.length;a+=1)o(a);Ut()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Wt(i[t]);n=!0}},o(t){i=i.filter(Ln);for(let t=0;t<i.length;t+=1)Ht(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function qn(t){let e,r,i,o,a,s,l,c;return{c(){e=B("span"),r=B("img"),this.h()},l(t){e=et(t,"SPAN",{style:!0});var n=X(e);r=et(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(M),this.h()},h(){H(r,"class",i=me.text__image),u(r.src,o=t[57].image.url)||H(r,"src",o),H(r,"loading","lazy"),H(r,"decoding","async"),H(r,"aria-hidden","true"),H(r,"alt",""),H(r,"style",a=ye({width:t[57].image.width,height:t[57].image.height,"margin-top":t[8]?"-".concat(t[57].image.height):void 0,"margin-bottom":t[8]?"-".concat(t[57].image.height):void 0,filter:t[57].image.svgFilterId?"url(#".concat(t[57].image.svgFilterId,")"):void 0})),H(e,"style",s=ye(t[57].image.wrapperStyle))},m(n,i){T(n,e,i),N(e,r),l||(c=W(r,"error",t[28]),l=!0)},p(t,n){512&n[0]&&!u(r.src,o=t[57].image.url)&&H(r,"src",o),768&n[0]&&a!==(a=ye({width:t[57].image.width,height:t[57].image.height,"margin-top":t[8]?"-".concat(t[57].image.height):void 0,"margin-bottom":t[8]?"-".concat(t[57].image.height):void 0,filter:t[57].image.svgFilterId?"url(#".concat(t[57].image.svgFilterId,")"):void 0}))&&H(r,"style",a),512&n[0]&&s!==(s=ye(t[57].image.wrapperStyle))&&H(e,"style",s)},i:n,o:n,d(t){t&&M(e),l=!1,c()}}}function Gn(t){let e,n,r=t[57].text&&Kn(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[57].text?r?(r.p(t,n),512&n[0]&&Wt(r,1)):(r=Kn(t),r.c(),Wt(r,1),r.m(e.parentNode,e)):r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut())},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Kn(t){let e,n;return e=new Mn({props:{json:t[0],text:t[57].text,rootFontSize:t[5],textStyles:t[57].textStyles,singleline:t[7],actions:t[57].actions}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),512&n[0]&&(r.text=t[57].text),32&n[0]&&(r.rootFontSize=t[5]),512&n[0]&&(r.textStyles=t[57].textStyles),128&n[0]&&(r.singleline=t[7]),512&n[0]&&(r.actions=t[57].actions),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Yn(t){let e,n,r,i;const o=[Gn,qn],a=[];function s(t,e){return"text"in t[57]?0:t[57].image?1:-1}return~(e=s(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=U()},l(t){n&&n.l(t),r=U()},m(t,n){~e&&a[e].m(t,n),T(t,r,n),i=!0},p(t,i){let l=e;e=s(t),e===l?~e&&a[e].p(t,i):(n&&(Lt(),Ht(a[l],1,1,(()=>{a[l]=null})),Ut()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Wt(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(Wt(n),i=!0)},o(t){Ht(n),i=!1},d(t){t&&M(r),~e&&a[e].d(t)}}}function Xn(t){let e,n,r,i,o,a;const s=[Hn,Wn],l=[];function c(t,e){return t[9].length?0:1}return n=c(t),r=l[n]=s[n](t),{c(){e=B("span"),r.c(),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0});var n=X(e);r.l(n),n.forEach(M),this.h()},h(){H(e,"class",i=Me("text__inner",me,t[11])),H(e,"style",o=ye(t[10]))},m(t,r){T(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):(Lt(),Ht(l[d],1,1,(()=>{l[d]=null})),Ut(),r=l[n],r?r.p(t,u):(r=l[n]=s[n](t),r.c()),Wt(r,1),r.m(e,null)),(!a||2048&u[0]&&i!==(i=Me("text__inner",me,t[11])))&&H(e,"class",i),(!a||1024&u[0]&&o!==(o=ye(t[10])))&&H(e,"style",o)},i(t){a||(Wt(r),a=!0)},o(t){Ht(r),a=!1},d(t){t&&M(e),l[n].d()}}}function Zn(t){let e,n;return e=new Dn({props:{cls:Me("text",me,t[12])+" "+(t[6]?"":pe.root__unselectable),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Xn]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};4160&n[0]&&(r.cls=Me("text",me,t[12])+" "+(t[6]?"":pe.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]),134221745&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Qn(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I,N,O,T,M,z,B=n,J=n,R=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((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>R())),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=xt(fe);let ot="",at=12,st=1.25,lt=!1,ct="",ut="",dt=!1,ht="left",pt="top",ft="",gt="",mt="",vt=!1,yt=[],$t=[];return _t((()=>{$t.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;if(1&t.$$.dirty[0]&&tt&&(r(5,at=12),r(29,st=1.25),r(8,lt=!1),r(30,ct=""),r(31,ut=""),r(32,dt=!1),r(33,ht="left"),r(34,pt="top"),r(35,ft=""),r(37,mt=""),r(6,vt=!1)),1&t.$$.dirty[0]&&(r(26,i=it.getDerivedFromVars(tt.text)),Q(),Q=h(i,(t=>r(53,z=t)))),1&t.$$.dirty[0]&&(r(25,o=it.getDerivedFromVars(tt.ranges)),J(),J=h(o,(t=>r(42,C=t)))),1&t.$$.dirty[0]&&(r(24,a=it.getDerivedFromVars(tt.images)),B(),B=h(a,(t=>r(41,A=t)))),1&t.$$.dirty[0]&&(r(23,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,text_shadow:tt.text_shadow})),R(),R=h(s,(t=>r(27,V=t)))),1&t.$$.dirty[0]&&(r(22,l=it.getDerivedFromVars(tt.font_size)),Z(),Z=h(l,(t=>r(52,M=t)))),1&t.$$.dirty[0]&&(r(21,c=it.getDerivedFromVars(tt.line_height)),X(),X=h(c,(t=>r(51,T=t)))),1&t.$$.dirty[0]&&(r(20,u=it.getDerivedFromVars(tt.max_lines)),G(),G=h(u,(t=>r(48,I=t)))),1&t.$$.dirty[0]&&(r(19,d=it.getDerivedFromVars(tt.text_alignment_horizontal)),Y(),Y=h(d,(t=>r(50,O=t)))),1&t.$$.dirty[0]&&(r(18,p=it.getDerivedFromVars(tt.text_alignment_vertical)),K(),K=h(p,(t=>r(49,N=t)))),1&t.$$.dirty[0]&&(r(17,f=it.getDerivedFromVars(tt.text_color)),q(),q=h(f,(t=>r(47,S=t)))),1&t.$$.dirty[0]&&(r(16,g=it.getDerivedFromVars(tt.focused_text_color)),H(),H=h(g,(t=>r(46,F=t)))),1&t.$$.dirty[0]&&(r(15,m=it.getDerivedFromVars(tt.truncate)),W(),W=h(m,(t=>r(45,P=t)))),1&t.$$.dirty[0]&&(r(14,v=it.getDerivedFromVars(tt.text_gradient)),U(),U=h(v,(t=>r(44,j=t)))),1&t.$$.dirty[0]&&(r(13,y=it.getDerivedFromVars(tt.selectable)),L(),L=h(y,(t=>r(43,D=t)))),4194304&t.$$.dirty[1]&&r(4,(e=z,ot=String(null!=e?e:""))),32&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&r(5,at=Pn(M,at)),32&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=T;cn(t)?(r(29,st=Number(t)/at),r(8,lt=!0)):r(8,lt=!1)}if(131072&t.$$.dirty[1]&&r(7,$=1===I),536870912&t.$$.dirty[0]|131072&t.$$.dirty[1]){let t="",e="",n=!1;if(I&&I>1){let r=Number(I);t=r*st+"em",e=r,n=!0}r(30,ct=t),r(31,ut=e),r(32,dt=n)}if(524292&t.$$.dirty[1]&&r(33,ht=zn(O,ht)),262152&t.$$.dirty[1]&&r(34,pt=Bn(N,pt)),16&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(40,b=!C||ot&&1===C.length&&C[0]&&0===C[0].start&&"number"==typeof C[0].end&&C[0].end>=ot.length),67584&t.$$.dirty[1]&&r(39,_=Boolean(S)!==Boolean(C&&C[0]&&C[0].text_color)),199440&t.$$.dirty[1]){let t="";I&&b&&_&&(t=we(S||C&&C[0]&&C[0].text_color,1,ft)),r(35,ft=t)}if(32800&t.$$.dirty[1]&&r(36,gt=we(F,1,gt)),16384&t.$$.dirty[1]&&r(38,w="none"===P?"none":""),8192&t.$$.dirty[1]){let t="";if(j){const e=Ae([j]);e.image&&(t=e.image)}r(37,mt=t)}64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(6,vt=Jn(D,vt)),16&t.$$.dirty[0]|3072&t.$$.dirty[1]&&function(t,e,n){let i=[];if($t.forEach((t=>{let[e,n]=t;it.removeSvgFilter(e,n)})),$t=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(9,yt=[]);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=$e(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=$e(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":$e(10*(Number(e.font_size)||12)/at)};let a="";const s=t.image.tint_color,l=Rn(t.image.tint_mode,"source_in");if(s){const e=we(t.image.tint_color);a=it.addSvgFilter(e,l),$t.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(9,yt=i)}(ot,C,A),128&t.$$.dirty[0]|174&t.$$.dirty[1]&&r(12,x={singleline:$,multiline:dt,halign:ht,valign:pt,truncate:w,"has-focus-color":Boolean(gt)}),64&t.$$.dirty[1]&&r(11,k={gradient:Boolean(mt)}),1610612768&t.$$.dirty[0]|113&t.$$.dirty[1]&&r(10,E={"font-size":$e(at),"line-height":st,"max-height":ct,"-webkit-line-clamp":ut,color:ft,"background-image":mt,"--divkit-text-focus-color":gt})},[tt,et,nt,rt,ot,at,vt,$,lt,yt,E,k,x,y,v,m,g,f,p,d,u,c,l,s,a,o,i,V,function(t){t.target&&"classList"in t.target&&t.target.classList.add(me.text__image_hidden)},st,ct,ut,dt,ht,pt,ft,gt,mt,w,_,b,A,C,D,j,P,F,S,I,N,O,T,M,z]}const tr={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 er(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 nr(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 rr(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($e).join(" ")}function ir(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function or(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function ar(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:Ue(null===(o=(i=t.shape).item_width)||void 0===o?void 0:o.value,10),height:Ue(null===(a=i.item_height)||void 0===a?void 0:a.value,10),radius:Ue(null===(s=i.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Ue(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;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?we(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=we(l),a&&s&&(i.boxShadow="inset 0 0 0 ".concat($e(s)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}let sr;function lr(){if("undefined"==typeof document&&(sr=!0),void 0!==sr)return sr;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),sr=1===t.scrollHeight,document.body.removeChild(t),sr}const cr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:ur}=C;function dr(t,e,n){const r=t.slice();return r[15]=e[n],r}function hr(t){let e,n,r,i,o,a="".concat(t[15].style.width,"px"),s="".concat(t[15].style.height,"px"),l="".concat(t[15].style.borderRadius,"px"),c="".concat(t[15].left,"px"),u="".concat(t[15].top,"px"),d="".concat(t[15].width,"px"),h="".concat(t[15].height,"px");return{c(){e=B("div"),n=B("div"),i=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=X(e);n=et(r,"DIV",{class:!0}),X(n).forEach(M),i=it(r),r.forEach(M),this.h()},h(){H(n,"class",r=cr["container-separator__shape"]),lt(n,"width",a),lt(n,"height",s),lt(n,"border-radius",l),lt(n,"background",t[15].style.background),lt(n,"box-shadow",t[15].style.boxShadow),H(e,"class",o=cr["container-separator__item"]),lt(e,"left",c),lt(e,"top",u),lt(e,"width",d),lt(e,"height",h)},m(t,r){T(t,e,r),N(e,n),N(e,i)},p(t,r){2&r&&a!==(a="".concat(t[15].style.width,"px"))&&lt(n,"width",a),2&r&&s!==(s="".concat(t[15].style.height,"px"))&&lt(n,"height",s),2&r&&l!==(l="".concat(t[15].style.borderRadius,"px"))&&lt(n,"border-radius",l),2&r&&lt(n,"background",t[15].style.background),2&r&&lt(n,"box-shadow",t[15].style.boxShadow),2&r&&c!==(c="".concat(t[15].left,"px"))&&lt(e,"left",c),2&r&&u!==(u="".concat(t[15].top,"px"))&&lt(e,"top",u),2&r&&d!==(d="".concat(t[15].width,"px"))&&lt(e,"width",d),2&r&&h!==(h="".concat(t[15].height,"px"))&&lt(e,"height",h)},d(t){t&&M(e)}}}function pr(t){let e,r,i,o,a=Kt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=hr(dr(t,a,e));return{c(){e=B("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(M),this.h()},h(){H(e,"class",r=cr["container-separator"])},m(n,r){T(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[12](e),i||(o=W(ur,"resize",t[2]),i=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=Kt(t[1]),n=0;n<a.length;n+=1){const i=dr(t,a,n);s[n]?s[n].p(i,r):(s[n]=hr(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&&M(e),z(s,n),t[12](null),i=!1,o()}}}function fr(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 gr(t,e,n,r,i,o){const a={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if(null==e?void 0:e.show_at_start){let s,l;"space-around"===i||"space-evenly"===i?(s=o.left-e.style.width,l=o.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),fr(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let i=0;i<n.length-1;++i)fr(t,e,n[i],n[i+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===i||"space-evenly"===i?(l=o.bottom+e.style.height,c=o.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),fr(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function mr(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e;const c=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(),e=window.getComputedStyle(r),c={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,d=[]);let h=[...r.children].filter((t=>t!==u&&!t.classList.contains(ve.outer__border))),p=[];for(;h.length;){const t=[],e=h.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.right,o=n.bottom;for(;h.length;){let e=h[0],n=e.getBoundingClientRect();if("vertical"===i){if(n.top<o)break}else if(n.left<r)break;r=Math.max(r,n.right),o=Math.max(o,n.bottom),t.push(e),h.shift()}p.push(t)}const f=[];p.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&&gr(d,o,e,"vertical"===i,"vertical"===i?l:s,c);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)))};f.push(n)})),a&&gr(d,a,f,"horizontal"===i,"vertical"===i?s:l,c),d.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let u,d=[],h=!1,p=null,f=null;function g(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(cr["container-separator__shape"]))&&!(null==n?void 0:n.contains(cr["container-separator"]))}))&&c()}return bt((()=>{n(8,h=!0)})),_t((()=>{n(8,h=!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),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign)},t.$$.update=()=>{1&t.$$.dirty&&n(11,r=(null==u?void 0:u.parentElement)||null),3840&t.$$.dirty&&(h&&r||p||f)&&(p&&(p.disconnect(),n(9,p=null)),f&&(f.disconnect(),n(10,f=null)),h&&r&&("undefined"!=typeof MutationObserver&&(n(9,p=new MutationObserver(g)),p.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(10,f=new ResizeObserver(c)),f.observe(r)))),2304&t.$$.dirty&&h&&r&&c()},[u,d,c,i,o,a,s,l,h,p,f,r,function(t){At[t?"unshift":"push"]((()=>{u=t,n(0,u)}))}]}const vr=class extends ce{constructor(t){super(),se(this,t,mr,pr,d,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7})}},{Boolean:yr}=C;function $r(t,e,n){const r=t.slice();return r[47]=e[n],r}function br(t){let e,n;return e=new bs({props:{layoutParams:t[10],div:t[47].json,templateContext:t[47].templateContext,origJson:t[47].origJson}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.layoutParams=t[10]),4096&n[0]&&(r.div=t[47].json),4096&n[0]&&(r.templateContext=t[47].templateContext),4096&n[0]&&(r.origJson=t[47].origJson),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function _r(t){let e,n;return e=new vr({props:{separator:t[7],lineSeparator:t[8],orientation:t[4],contentHAlign:t[6],contentVAlign:t[5]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.separator=t[7]),256&n[0]&&(r.lineSeparator=t[8]),16&n[0]&&(r.orientation=t[4]),64&n[0]&&(r.contentHAlign=t[6]),32&n[0]&&(r.contentVAlign=t[5]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function wr(t){let e,n,r,i=Kt(t[12]),o=[];for(let e=0;e<i.length;e+=1)o[e]=br($r(t,i,e));const a=t=>Ht(o[t],1,1,(()=>{o[t]=null}));let s=(t[7]||t[8])&&_r(t);return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=L(),s&&s.c(),n=U()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=it(t),s&&s.l(t),n=U()},m(t,i){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,i);T(t,e,i),s&&s.m(t,i),T(t,n,i),r=!0},p(t,r){if(5120&r[0]){let n;for(i=Kt(t[12]),n=0;n<i.length;n+=1){const a=$r(t,i,n);o[n]?(o[n].p(a,r),Wt(o[n],1)):(o[n]=br(a),o[n].c(),Wt(o[n],1),o[n].m(e.parentNode,e))}for(Lt(),n=i.length;n<o.length;n+=1)a(n);Ut()}t[7]||t[8]?s?(s.p(t,r),384&r[0]&&Wt(s,1)):(s=_r(t),s.c(),Wt(s,1),s.m(n.parentNode,n)):s&&(Lt(),Ht(s,1,1,(()=>{s=null})),Ut())},i(t){if(!r){for(let t=0;t<i.length;t+=1)Wt(o[t]);Wt(s),r=!0}},o(t){o=o.filter(yr);for(let t=0;t<o.length;t+=1)Ht(o[t]);Ht(s),r=!1},d(t){t&&(M(e),M(n)),z(o,t),s&&s.d(t)}}}function xr(t){let e,n;return e=new Dn({props:{cls:Me("container",tr,t[15]),style:t[11],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[16],heightByAspect:Boolean(t[9]),parentOf:t[13],replaceItems:t[26],$$slots:{default:[wr]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=Me("container",tr,t[15])),2048&n[0]&&(r.style=t[11]),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]),512&n[0]&&(r.heightByAspect=Boolean(t[9])),8192&n[0]&&(r.parentOf=t[13]),5616&n[0]|524288&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}const kr={left:"start",center:"center",right:"end","space-between":"start","space-around":"start","space-evenly":"start"},Er={top:"start",center:"center",bottom:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Ar=["rounded_rectangle","circle"];function Cr(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F=n,S=n,I=n,N=n,O=n,T=n,M=n,z=n,B=n,J=n;var R,L,U,W,H,q;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J()));let{json:G={}}=e,{templateContext:K}=e,{origJson:Y}=e,{layoutParams:X}=e;const Z=xt(fe);let Q,tt,et="vertical",nt="top",rt="left",it=null,ot=null,at={};return t.$$set=t=>{"json"in t&&r(0,G=t.json),"templateContext"in t&&r(1,K=t.templateContext),"origJson"in t&&r(2,Y=t.origJson),"layoutParams"in t&&r(3,X=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&G&&(r(4,et="vertical"),r(5,nt="top"),r(6,rt="left"),r(9,tt=void 0)),1&t.$$.dirty[0]&&r(13,i=G.items),1&t.$$.dirty[0]&&(r(25,o=Z.getDerivedFromVars(G.orientation)),J(),J=h(o,(t=>r(45,P=t)))),1&t.$$.dirty[0]&&(r(24,a=Z.getDerivedFromVars(G.layout_mode)),B(),B=h(a,(t=>r(44,j=t)))),1&t.$$.dirty[0]&&(r(23,s=Z.getDerivedFromVars(G.content_alignment_vertical)),M(),M=h(s,(t=>r(42,V=t)))),1&t.$$.dirty[0]&&(r(22,l=Z.getDerivedFromVars(G.content_alignment_horizontal)),T(),T=h(l,(t=>r(41,C=t)))),1&t.$$.dirty[0]&&(r(21,c=Z.getDerivedFromVars(G.separator)),O(),O=h(c,(t=>r(40,A=t)))),1&t.$$.dirty[0]&&(r(20,u=Z.getDerivedFromVars(G.line_separator)),N(),N=h(u,(t=>r(39,E=t)))),1&t.$$.dirty[0]&&(r(19,d=Z.getDerivedFromVars(G.aspect)),I(),I=h(d,(t=>r(38,k=t)))),1&t.$$.dirty[0]&&(r(18,p=Z.getDerivedFromVars(G.width)),F(),F=h(p,(t=>r(36,w=t)))),1&t.$$.dirty[0]&&(r(17,f=Z.getDerivedFromVars(G.height)),S(),S=h(f,(t=>r(37,x=t)))),8194&t.$$.dirty[0]&&r(12,g=(i||[]).map((t=>{let e=t,n=K;return({templateContext:n,json:e}=Z.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4096&t.$$.dirty[0]){let t=[];g.forEach((e=>{t.push(Z.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(14,Q=he(t,(t=>[...t]))),z(),z=h(Q,(t=>r(43,D=t)))}if(16&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(4,et=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(P,et)),8192&t.$$.dirty[1]&&r(33,m="wrap"===j),16&t.$$.dirty[0]|4100&t.$$.dirty[1]&&r(34,v="horizontal"!==et&&!m&&D.some(ir)),16&t.$$.dirty[0]|4100&t.$$.dirty[1]&&r(35,y="vertical"!==et&&!m&&D.some(or)),32&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(5,nt=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(V,nt)),64&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(6,rt=function(t,e){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(C,rt)),939524240&t.$$.dirty[0]|512&t.$$.dirty[1])if((null==A?void 0:A.style)&&"overlap"!==et&&lr()){const t=ar(A.style,Ar,(null==it?void 0:it.style)||null);r(7,it=t?{show_at_start:Boolean(null!==r(27,R=A.show_at_start)&&void 0!==R&&R),show_at_end:Boolean(null!==r(28,L=A.show_at_end)&&void 0!==L&&L),show_between:Boolean(null===r(29,U=A.show_between)||void 0===U||U),style:t,margins:er(A.margins)}:null)}else r(7,it=null);if(1073742096&t.$$.dirty[0]|259&t.$$.dirty[1])if((null==E?void 0:E.style)&&"overlap"!==et&&lr()){const t=ar(E.style,Ar,(null==ot?void 0:ot.style)||null);r(8,ot=t?{show_at_start:Boolean(null!==r(30,W=E.show_at_start)&&void 0!==W&&W),show_at_end:Boolean(null!==r(31,H=E.show_at_end)&&void 0!==H&&H),show_between:Boolean(null===r(32,q=E.show_between)||void 0===q||q),style:t,margins:er(E.margins)}:null)}else r(8,ot=null);if(400&t.$$.dirty[0]&&r(16,$=it||ot?function(t,e,n){const r={};return nr(r,e,"vertical"===t),nr(r,n,"horizontal"===t),r}(et,it,ot):null),128&t.$$.dirty[1]){const t=null==k?void 0:k.ratio;t&&cn(t)?r(9,tt=t):r(9,tt=void 0)}if(1656&t.$$.dirty[0]|124&t.$$.dirty[1]){let t={};(null==X?void 0:X.fakeElement)&&(t.fakeElement=!0),"overlap"===et&&(t.overlapParent=!0),"horizontal"!==et&&(t.parentHAlign=m?"start":kr[rt]),"vertical"!==et&&(t.parentVAlign=m?"start":Er[nt]),tt||y||x&&"wrap_content"!==x.type&&("match_parent"!==x.type||!(null==X?void 0:X.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!v&&("wrap_content"===(null==w?void 0:w.type)||"match_parent"===(null==w?void 0:w.type)&&(null==X?void 0:X.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===et&&(t.parentContainerOrientation="horizontal"),"vertical"===et&&(t.parentContainerOrientation="vertical"),m&&(t.parentContainerWrap=!0),r(10,at=qe(t,at))}112&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(15,b={orientation:et,valign:nt,halign:rt,wrap:m}),912&t.$$.dirty[0]&&r(11,_={gap:it||ot?rr(et,it,ot):void 0,"aspect-ratio":tt})},[G,K,Y,X,et,nt,rt,it,ot,tt,at,_,g,i,Q,b,$,f,p,d,u,c,l,s,a,o,function(t){r(0,G=Object.assign(Object.assign({},G),{items:t.filter(Ee)}))},R,L,U,W,H,q,m,v,y,w,x,k,E,A,C,V,D,j,P]}const Vr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Dr(t,e){return"vertical"===t||"horizontal"===t?t:e}function jr(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=Vr.separator__inner),H(e,"style",r=ye(t[5]))},m(t,n){T(t,e,n)},p(t,n){32&n&&r!==(r=ye(t[5]))&&H(e,"style",r)},d(t){t&&M(e)}}}function Pr(t){let e,n=t[6]&&jr(t);return{c(){n&&n.c(),e=U()},l(t){n&&n.l(t),e=U()},m(t,r){n&&n.m(t,r),T(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=jr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&M(e),n&&n.d(t)}}}function Fr(t){let e,n;return e=new Dn({props:{cls:Me("separator",Vr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Pr]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=Me("separator",Vr,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||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Sr(t,e,r){let i,o,a,s,l,c,u,d=n;t.$$.on_destroy.push((()=>d()));let{json:p={}}=e,{templateContext:f}=e,{origJson:g}=e,{layoutParams:m}=e;const v=xt(fe);let y="horizontal",$="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&r(0,p=t.json),"templateContext"in t&&r(1,f=t.templateContext),"origJson"in t&&r(2,g=t.origJson),"layoutParams"in t&&r(3,m=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&p&&(r(8,y="horizontal"),r(9,$="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(r(7,i=v.getDerivedFromVars(p.delimiter_style)),d(),d=h(i,(t=>r(12,u=t)))),4352&t.$$.dirty&&r(8,y=Dr(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,$=we(null==u?void 0:u.color,1,$)),256&t.$$.dirty&&r(11,a="horizontal"===y?"100%":$e(1)),256&t.$$.dirty&&r(10,s="horizontal"===y?$e(1):"100%"),3584&t.$$.dirty&&r(5,l={background:$,width:a,height:s}),256&t.$$.dirty&&r(4,c={orientation:y})},[p,f,g,m,c,l,o,i,y,$,s,a,u]}const Ir={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 Nr(t){return t.startsWith("data:")?ke(t):"data:image/jpg;base64,".concat(ke(t))}function Or(t){let e,n;return e=new Dn({props:{cls:Me("image",Ir,t[11]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Br]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Me("image",Ir,t[11])),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]),7664&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Tr(t){let e,n,r,i,o,a,l;return{c(){e=B("img"),this.h()},l(t){e=et(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){H(e,"class",n=Ir.image__image),u(e.src,r=t[5]===Lr?Rr:t[6])||H(e,"src",r),H(e,"loading","lazy"),H(e,"decoding","async"),H(e,"style",i=ye(t[10])),H(e,"alt",t[12]),H(e,"aria-hidden",o=t[12]?null:"true")},m(n,r){T(n,e,r),t[59](e),a||(l=[W(e,"load",t[27]),W(e,"error",t[28])],a=!0)},p(t,n){96&n[0]&&!u(e.src,r=t[5]===Lr?Rr:t[6])&&H(e,"src",r),1024&n[0]&&i!==(i=ye(t[10]))&&H(e,"style",i),4096&n[0]&&H(e,"alt",t[12]),4096&n[0]&&o!==(o=t[12]?null:"true")&&H(e,"aria-hidden",o)},d(n){n&&M(e),t[59](null),a=!1,s(l)}}}function Mr(t){let e,n,r,i,o,a,l,c,d,h="".concat(t[7],"%");return{c(){e=B("span"),n=B("img"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var r=X(e);n=et(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(M),this.h()},h(){H(n,"class",r=Ir.image__image),u(n.src,i=t[5]===Lr?Rr:t[6])||H(n,"src",i),H(n,"loading","lazy"),H(n,"decoding","async"),H(n,"style",o=ye(t[10])),H(n,"alt",t[12]),H(n,"aria-hidden",a=t[12]?null:"true"),H(e,"class",l=Ir["image__aspect-wrapper"]),lt(e,"padding-bottom",h)},m(r,i){T(r,e,i),N(e,n),t[58](n),c||(d=[W(n,"load",t[27]),W(n,"error",t[28])],c=!0)},p(t,r){96&r[0]&&!u(n.src,i=t[5]===Lr?Rr:t[6])&&H(n,"src",i),1024&r[0]&&o!==(o=ye(t[10]))&&H(n,"style",o),4096&r[0]&&H(n,"alt",t[12]),4096&r[0]&&a!==(a=t[12]?null:"true")&&H(n,"aria-hidden",a),128&r[0]&&h!==(h="".concat(t[7],"%"))&&lt(e,"padding-bottom",h)},d(n){n&&M(e),t[58](null),c=!1,s(d)}}}function zr(t){let e;function n(t,e){return t[11].aspect?Mr:Tr}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(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&&M(e),i.d(t)}}}function Br(t){let e,n=t[8],r=zr(t);return{c(){r.c(),e=U()},l(t){r.l(t),e=U()},m(t,n){r.m(t,n),T(t,e,n)},p(t,i){256&i[0]&&d(n,n=t[8])?(r.d(1),r=zr(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&M(e),r.d(t)}}}function Jr(t){let e,n,r=!t[9]&&Or(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[9]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),512&n[0]&&Wt(r,1)):(r=Or(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const Rr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Lr=2;function Ur(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I,N,O,T,M=n,z=n,B=n,J=n,R=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,Y=n,X=n;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>R())),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:Z={}}=e,{templateContext:Q}=e,{origJson:tt}=e,{layoutParams:et}=e;const nt=xt(fe);let rt,it,ot,at=0,st=!1,lt="rgba(0,0,0,0.08)",ct=!1,ut="",dt="none",ht="50% 50%",pt="0",ft="source_in",gt="",mt="",vt=0,yt=0,$t=0,bt="",wt="";return _t((()=>{nt.removeSvgFilter(ot,ft)})),t.$$set=t=>{"json"in t&&r(0,Z=t.json),"templateContext"in t&&r(1,Q=t.templateContext),"origJson"in t&&r(2,tt=t.origJson),"layoutParams"in t&&r(3,et=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&Z&&(r(32,dt="none"),r(33,ht="50% 50%"),r(35,ft="source_in")),1&t.$$.dirty[0]&&(r(26,i=nt.getDerivedFromVars(Z.image_url)),Y(),Y=h(i,(t=>r(56,O=t)))),1&t.$$.dirty[0]&&(r(25,o=nt.getDerivedFromVars(Z.gif_url)),X(),X=h(o,(t=>r(57,T=t)))),1&t.$$.dirty[0]&&(r(24,a=nt.getDerivedFromVars(Z.width)),K(),K=h(a,(t=>r(55,N=t)))),1&t.$$.dirty[0]&&(r(23,s=nt.getDerivedFromVars(Z.height)),G(),G=h(s,(t=>r(54,I=t)))),1&t.$$.dirty[0]&&(r(22,l=nt.getDerivedFromVars(Z.preview)),q(),q=h(l,(t=>r(53,S=t)))),1&t.$$.dirty[0]&&(r(21,c=nt.getDerivedFromVars(Z.placeholder_color)),H(),H=h(c,(t=>r(52,F=t)))),1&t.$$.dirty[0]&&(r(20,u=nt.getDerivedFromVars(Z.scale)),W(),W=h(u,(t=>r(51,P=t)))),1&t.$$.dirty[0]&&(r(19,d=nt.getDerivedFromVars({content_alignment_horizontal:Z.content_alignment_horizontal,content_alignment_vertical:Z.content_alignment_vertical})),U(),U=h(d,(t=>r(50,j=t)))),1&t.$$.dirty[0]&&(r(18,p=nt.getDerivedFromVars(Z.accessibility)),L(),L=h(p,(t=>r(49,D=t)))),1&t.$$.dirty[0]&&(r(17,f=nt.getDerivedFromVars(Z.aspect)),R(),R=h(f,(t=>r(48,V=t)))),1&t.$$.dirty[0]&&(r(16,g=nt.getDerivedFromVars(Z.tint_color)),J(),J=h(g,(t=>r(47,C=t)))),1&t.$$.dirty[0]&&(r(15,m=nt.getDerivedFromVars(Z.tint_mode)),B(),B=h(m,(t=>r(46,A=t)))),1&t.$$.dirty[0]&&(r(14,v=nt.getDerivedFromVars(Z.appearance_animation)),z(),z=h(v,(t=>r(45,E=t)))),1&t.$$.dirty[0]&&(r(13,y=nt.getDerivedFromVars(Z.filters)),M(),M=h(y,(t=>r(44,k=t)))),536870913&t.$$.dirty[0]|100663296&t.$$.dirty[1]){let t="gif"===Z.type?T:O;r(29,st="empty://"===t),st&&(t=Rr),r(6,it=t)}if(64&t.$$.dirty[0]&&r(5,at=0),65&t.$$.dirty[0]&&(it?r(9,ct=!1):(r(9,ct=!0),nt.logError(ge(new Error('Missing "'.concat("gif"===Z.type?"gif_url":"image_url",'" for "').concat(Z.type,'"')))))),16777216&t.$$.dirty[1]&&r(43,$="wrap_content"===(null==N?void 0:N.type)),8388608&t.$$.dirty[1]&&r(42,b="wrap_content"===(null==I?void 0:I.type)),536870944&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&r(31,ut=(0===at||at===Lr||st)&&S?'url("'.concat(Nr(S),'")'):""),1610612768&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&r(30,lt=0===at||at===Lr||st?we(F,1,lt):""),1048578&t.$$.dirty[1]&&r(32,dt=De(P)||dt),524288&t.$$.dirty[1]&&r(33,ht=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:je(t)}(j,ht)),262144&t.$$.dirty[1]&&r(12,_=(null==D?void 0:D.description)||""),131072&t.$$.dirty[1]){const t=null==V?void 0:V.ratio;t&&cn(t)?r(7,pt=(100/Number(t)).toFixed(2)):r(7,pt="0")}if(98328&t.$$.dirty[1]){const t=C?we(C):void 0,e=Rn(A,ft);t===ot&&e===ft||(nt.removeSvgFilter(ot,ft),r(8,gt=t?nt.addSvgFilter(t,e):""),r(34,ot=t),r(35,ft=e))}if(16384&t.$$.dirty[1]&&E&&"fade"===E.type){const t=E;r(36,mt=Ge(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(39,$t=Ue(t.duration,300)),r(38,yt=Ue(t.start_delay,0)),r(37,vt=Ue(t.alpha,0))}if(8192&t.$$.dirty[1]){let t="",e="";Array.isArray(k)&&k.length&&(t=un(k,nt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(40,bt=t),r(41,wt=e)}160&t.$$.dirty[0]|6176&t.$$.dirty[1]&&r(11,w={aspect:"0"!==pt,"is-width-content":$,"is-height-content":b,loaded:1===at,"before-appearance":Boolean(mt)&&0===at}),1073742112&t.$$.dirty[0]|2023&t.$$.dirty[1]&&r(10,x={"background-image":ut,"background-color":ut?void 0:lt,"background-size":dt,"clip-path":wt||void 0,"object-fit":dt,"object-position":ht,filter:[1===at&&gt?"url(#".concat(gt,")"):"",bt].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})},[Z,Q,tt,et,rt,at,it,pt,gt,ct,x,w,_,y,v,m,g,f,p,d,u,c,l,s,a,o,i,function(){0===at&&r(5,at=1)},function(){0===at&&r(5,at=Lr)},st,lt,ut,dt,ht,ot,ft,mt,vt,yt,$t,bt,wt,b,$,k,E,A,C,V,D,j,P,F,S,I,N,O,T,function(t){At[t?"unshift":"push"]((()=>{rt=t,r(4,rt),r(0,Z),r(57,T),r(56,O),r(29,st)}))},function(t){At[t?"unshift":"push"]((()=>{rt=t,r(4,rt),r(0,Z),r(57,T),r(56,O),r(29,st)}))}]}const Wr=class extends ce{constructor(t){super(),se(this,t,Ur,Jr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Hr={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 qr(t){return t>0&&t<1}function Gr(t){return String(Math.ceil(1e3*t)/1e3)}function Kr(t,e,n){if(t.some(qr)){const e=Math.max(...t.filter(qr).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($e(r*t[e]/i),",").concat(Gr(t[e]),"fr)"):t[e]?o[e]="".concat(Gr(t[e]),"fr"):o[e]="auto";return o.join(" ")}function Yr(t,e,n){const r=t.slice();return r[29]=e[n],r}function Xr(t){let e,n;return e=new Dn({props:{cls:Me("grid",Hr,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:[Qr]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Me("grid",Hr,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]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Zr(t){let e,n;return e=new bs({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[29].layoutParams),32&n[0]&&(r.div=t[29].json),32&n[0]&&(r.templateContext=t[29].templateContext),32&n[0]&&(r.origJson=t[29].origJson),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Qr(t){let e,n,r=Kt(t[5]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Zr(Yr(t,r,e));const o=t=>Ht(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=Kt(t[5]),a=0;a<r.length;a+=1){const o=Yr(t,r,a);i[a]?(i[a].p(o,n),Wt(i[a],1)):(i[a]=Zr(o),i[a].c(),Wt(i[a],1),i[a].m(e.parentNode,e))}for(Lt(),a=r.length;a<i.length;a+=1)o(a);Ut()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Wt(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Ht(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function ti(t){let e,n,r=!t[6]&&Xr(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[6]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),64&n[0]&&Wt(r,1)):(r=Xr(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function ei(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v=n,y=n,$=n,b=n;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b()));let{json:_={}}=e,{templateContext:w}=e,{origJson:x}=e,{layoutParams:k}=e;const E=xt(fe);let A,C,V=1,D=[],j=[],P=[],F=[],S=0,I=!1,N="top",O="left";return t.$$set=t=>{"json"in t&&r(0,_=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(13,V=1),r(20,N="top"),r(21,O="left")),1&t.$$.dirty[0]&&r(23,i=Array.isArray(_.items)&&_.items||[]),1&t.$$.dirty[0]&&(r(11,o=E.getDerivedFromVars(_.column_count)),b(),b=h(o,(t=>r(27,m=t)))),1&t.$$.dirty[0]&&(r(10,a=E.getDerivedFromVars(_.content_alignment_vertical)),y(),y=h(a,(t=>r(25,f=t)))),1&t.$$.dirty[0]&&(r(9,s=E.getDerivedFromVars(_.content_alignment_horizontal)),v(),v=h(s,(t=>r(24,p=t)))),134225920&t.$$.dirty[0]&&r(13,V=Pn(m,V)),8388610&t.$$.dirty[0]&&r(22,l=i.map((t=>{let e=t,n=w;return({templateContext:n,json:e}=E.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];l.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,A=he(t,(t=>[...t]))),$(),$=h(A,(t=>r(26,g=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,D=[]),r(15,j=[]),r(16,P=[]),r(17,F=[]),r(19,I=!1),r(5,C=l.map(((i,o)=>{var a,s,l,c;const u=g[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,p={x:e,y:n,colSpan:d,rowSpan:h},f="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(19,I=!0):(t[i+"_"+e]=!0,(!D[i]||D[i]<f)&&r(14,D[i]=f,D),(!j[e]||j[e]<m)&&r(15,j[e]=m,j),(!P[i]||P[i]<v)&&r(16,P[i]=v,P),(!F[e]||F[e]<y)&&r(17,F[e]=y,F));do{++e,e>=V&&(e=0,++n)}while(t[e+"_"+n]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:p,fakeElement:(null==k?void 0:k.fakeElement)||!1}})}))),0!==e&&r(19,I=!0),I&&E.logError(ge(new Error('Mismatching "grid" rows/columns'))),r(18,S=n)}34603008&t.$$.dirty[0]&&r(20,N=Bn(f,N)),18874368&t.$$.dirty[0]&&r(21,O=zn(p,O)),3145728&t.$$.dirty[0]&&r(8,c={valign:N,halign:O}),516096&t.$$.dirty[0]&&r(7,u={"grid-template-columns":Kr(D,P,V),"grid-template-rows":Kr(j,F,S)}),524288&t.$$.dirty[0]&&r(6,d=I)},[_,w,x,k,A,C,d,u,c,s,a,o,function(t){r(0,_=Object.assign(Object.assign({},_),{items:t.filter(Ee)}))},V,D,j,P,F,S,I,N,O,l,i,p,f,g,m]}const ni={gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},ri={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function ii(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 oi(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:ai}=C;function si(t,e,n){const r=t.slice();return r[75]=e[n],r[76]=e,r[77]=n,r}function li(t,e,n){const r=t.slice();return r[78]=e[n],r}function ci(t){let e,n;return e=new bs({props:{layoutParams:t[8],div:t[78].json,templateContext:t[78].templateContext,origJson:t[78].origJson}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),262144&n[0]&&(r.div=t[78].json),262144&n[0]&&(r.templateContext=t[78].templateContext),262144&n[0]&&(r.origJson=t[78].origJson),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function ui(t){let e,n,r,i,o,a=t[77],s=Kt(t[75]),l=[];for(let e=0;e<s.length;e+=1)l[e]=ci(li(t,s,e));const c=t=>Ht(l[t],1,1,(()=>{l[t]=null})),u=()=>t[63](e,a),d=()=>t[63](null,a);return{c(){e=B("div");for(let t=0;t<l.length;t+=1)l[t].c();n=L(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var r=X(e);for(let t=0;t<l.length;t+=1)l[t].l(r);n=it(r),r.forEach(M),this.h()},h(){H(e,"class",r=ni.gallery__items),H(e,"style",i=ye(t[16]))},m(t,r){T(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);N(e,n),u(),o=!0},p(r,h){if(t=r,262400&h[0]){let r;for(s=Kt(t[75]),r=0;r<s.length;r+=1){const i=li(t,s,r);l[r]?(l[r].p(i,h),Wt(l[r],1)):(l[r]=ci(i),l[r].c(),Wt(l[r],1),l[r].m(e,n))}for(Lt(),r=s.length;r<l.length;r+=1)c(r);Ut()}(!o||65536&h[0]&&i!==(i=ye(t[16])))&&H(e,"style",i),a!==t[77]&&(d(),a=t[77],u())},i(t){if(!o){for(let t=0;t<s.length;t+=1)Wt(l[t]);o=!0}},o(t){l=l.filter(ai);for(let t=0;t<l.length;t+=1)Ht(l[t]);o=!1},d(t){t&&M(e),z(l,t),d()}}}function di(t){let e,n,r=t[12]&&t[9]&&hi(t),i=t[13]&&t[9]&&pi(t);return{c(){r&&r.c(),e=L(),i&&i.c(),n=U()},l(t){r&&r.l(t),e=it(t),i&&i.l(t),n=U()},m(t,o){r&&r.m(t,o),T(t,e,o),i&&i.m(t,o),T(t,n,o)},p(t,o){t[12]&&t[9]?r?r.p(t,o):(r=hi(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?i?i.p(t,o):(i=pi(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){t&&(M(e),M(n)),r&&r.d(t),i&&i.d(t)}}}function hi(t){let e,r,i,o,a=!t[30]&&function(t){let e,n,r,i;return{c(){e=J("svg"),n=J("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=ni["gallery__arrow-icon-path"]),H(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),H(e,"class",i=ri.arrow__icon),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"width","32"),H(e,"height","32"),H(e,"viewBox","0 0 32 32"),H(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(M),this.h()},h(){H(e,"class",r=t[30]||"".concat(ni.gallery__arrow," ").concat(ri.arrow," ").concat(ri.arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=W(e,"click",t[66]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function pi(t){let e,r,i,o,a=!t[31]&&function(t){let e,n,r,i;return{c(){e=J("svg"),n=J("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=ni["gallery__arrow-icon-path"]),H(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),H(e,"class",i=ri.arrow__icon),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"width","32"),H(e,"height","32"),H(e,"viewBox","0 0 32 32"),H(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(M),this.h()},h(){H(e,"class",r=t[31]||"".concat(ni.gallery__arrow," ").concat(ri.arrow," ").concat(ri.arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=W(e,"click",t[67]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function fi(t){let e,n,r,i,o,a,s,c,u,d,h,p=Kt(t[18]),f=[];for(let e=0;e<p.length;e+=1)f[e]=ui(si(t,p,e));const g=t=>Ht(f[t],1,1,(()=>{f[t]=null}));let m="horizontal"===t[6]&&di(t);return{c(){e=B("div"),n=B("div");for(let t=0;t<f.length;t+=1)f[t].c();s=L(),m&&m.c(),c=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var r=X(e);n=et(r,"DIV",{class:!0,style:!0});var i=X(n);for(let t=0;t<f.length;t+=1)f[t].l(i);i.forEach(M),r.forEach(M),s=it(t),m&&m.l(t),c=U(),this.h()},h(){H(n,"class",r=ni["gallery__items-grid"]),H(n,"style",i=ye(t[17])),H(e,"class",o=ni.gallery__scroller+" "+(t[29]?pe["root_restrict-scroll"]:"")),H(e,"style",a=ye(t[7]))},m(r,i){T(r,e,i),N(e,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(n,null);t[64](n),t[65](e),T(r,s,i),m&&m.m(r,i),T(r,c,i),u=!0,d||(h=W(e,"scroll",(function(){l(t[9]?t[34]:null)&&(t[9]?t[34]:null).apply(this,arguments)})),d=!0)},p(r,s){if(t=r,329984&s[0]){let e;for(p=Kt(t[18]),e=0;e<p.length;e+=1){const r=si(t,p,e);f[e]?(f[e].p(r,s),Wt(f[e],1)):(f[e]=ui(r),f[e].c(),Wt(f[e],1),f[e].m(n,null))}for(Lt(),e=p.length;e<f.length;e+=1)g(e);Ut()}(!u||131072&s[0]&&i!==(i=ye(t[17])))&&H(n,"style",i),(!u||536870912&s[0]&&o!==(o=ni.gallery__scroller+" "+(t[29]?pe["root_restrict-scroll"]:"")))&&H(e,"class",o),(!u||128&s[0]&&a!==(a=ye(t[7])))&&H(e,"style",a),"horizontal"===t[6]?m?m.p(t,s):(m=di(t),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i(t){if(!u){for(let t=0;t<p.length;t+=1)Wt(f[t]);u=!0}},o(t){f=f.filter(ai);for(let t=0;t<f.length;t+=1)Ht(f[t]);u=!1},d(n){n&&(M(e),M(s),M(c)),z(f,n),t[64](null),t[65](null),m&&m.d(n),d=!1,h()}}}function gi(t){let e,n,r,i;return e=new Dn({props:{cls:Me("gallery",ni,t[15]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",parentOf:t[10],replaceItems:t[32],$$slots:{default:[fi]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(o,a){oe(e,o,a),n=!0,r||(i=W(window,"resize",(function(){l(t[9]?t[35]:null)&&(t[9]?t[35]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const i={};32768&r[0]&&(i.cls=Me("gallery",ni,t[15])),1&r[0]&&(i.json=t[0]),4&r[0]&&(i.origJson=t[2]),2&r[0]&&(i.templateContext=t[1]),8&r[0]&&(i.layoutParams=t[3]),1024&r[0]&&(i.parentOf=t[10]),537345008&r[0]|524288&r[2]&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t),r=!1,i()}}}function mi(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I,N,O=n,T=n,M=n,z=n,B=n,J=n,R=n,L=n,U=n,W=n,H=n;t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H()));let{json:q={}}=e,{templateContext:G}=e,{origJson:K}=e,{layoutParams:Y}=e;const X=xt(fe);let Z,Q,tt=[],et=!1,nt=!1,rt=null,it=!1;const ot=X.getCustomization("galleryLeftClass"),at=X.getCustomization("galleryRightClass");let st,lt,ct,ut,dt,ht=1,pt="horizontal",ft="start",gt=8,mt="",vt=[],yt={},$t=!1,wt={},kt=0;const Et=X.isDesktop;function Ct(){if(!Z)return;const t=Z.scrollLeft,e=Z.scrollWidth,n=Z.offsetWidth;r(12,et=t>2),r(13,nt=t+n<e-2)}p(t,Et,(t=>r(62,I=t)));const Vt=oi(Ct,50);function Dt(t){Z.scroll({left:Z.scrollLeft+.75*Z.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function jt(){let t=[],e=tt[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ht;++e){const r=tt[e].children[n];r&&t.push(r)}return t}function Pt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===pt,i=r?"offsetLeft":"offsetTop",o=r?"left":"top",a=t[e];a&&Z.scroll({[o]:Math.max(0,a[i]+.01-gt/2),behavior:n})}function Ft(t){const e=jt(),n=Z.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===pt?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"===pt?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 bt((()=>{r(38,it=!0),Ct(),kt&&Pt(jt(),kt,"auto")})),_t((()=>{r(38,it=!1),st&&!(null==Y?void 0:Y.fakeElement)&&(X.unregisterInstance(st),r(39,st=void 0))})),t.$$set=t=>{"json"in t&&r(0,q=t.json),"templateContext"in t&&r(1,G=t.templateContext),"origJson"in t&&r(2,K=t.origJson),"layoutParams"in t&&r(3,Y=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&q&&(r(40,ht=1),r(6,pt="horizontal"),r(41,ft="start"),r(43,gt=8),r(46,mt="")),1&t.$$.dirty[0]&&r(10,i=Array.isArray(q.items)&&q.items||[]),1&t.$$.dirty[0]&&(r(28,o=X.getDerivedFromVars(q.column_count)),W(),W=h(o,(t=>r(61,S=t)))),1&t.$$.dirty[0]&&(r(27,a=X.getDerivedFromVars(q.orientation)),U(),U=h(a,(t=>r(60,F=t)))),1&t.$$.dirty[0]&&(r(26,s=X.getDerivedFromVars(q.cross_content_alignment)),L(),L=h(s,(t=>r(59,P=t)))),1&t.$$.dirty[0]&&(r(25,l=X.getDerivedFromVars(q.item_spacing)),R(),R=h(l,(t=>r(58,j=t)))),1&t.$$.dirty[0]&&(r(24,c=X.getDerivedFromVars(q.cross_spacing)),J(),J=h(c,(t=>r(57,D=t)))),1&t.$$.dirty[0]&&(r(23,u=X.getDerivedFromVars(q.paddings)),B(),B=h(u,(t=>r(56,V=t)))),1&t.$$.dirty[0]&&(r(22,d=X.getDerivedFromVars(q.scroll_mode)),M(),M=h(d,(t=>r(54,A=t)))),1&t.$$.dirty[0]&&(r(21,f=X.getDerivedFromVars(q.restrict_parent_scroll)),H(),H=h(f,(t=>r(29,N=t)))),1&t.$$.dirty[0]&&(r(20,g=X.getDerivedFromVars(q.scrollbar)),T(),T=h(g,(t=>r(53,E=t)))),1&t.$$.dirty[0]&&(r(19,m=X.getDerivedFromVars(q.default_item)),O(),O=h(m,(t=>r(52,k=t)))),1026&t.$$.dirty[0]&&r(51,v=i.map((t=>{let e=t,n=G;return({templateContext:n,json:e}=X.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),128&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(9,y=I&&it),544&t.$$.dirty[0]|64&t.$$.dirty[1]&&(y?"undefined"!=typeof ResizeObserver&&(r(37,rt=new ResizeObserver((()=>{Vt()}))),rt.observe(Q)):rt&&(rt.disconnect(),r(37,rt=null))),1073742336&t.$$.dirty[1]&&r(40,ht=Pn(S,ht)),1049088&t.$$.dirty[1]&&r(18,$=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}(v,ht)),64&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(6,pt=Dr(F,pt)),268436480&t.$$.dirty[1]&&r(41,ft=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(P,ft)),134221824&t.$$.dirty[1]&&(r(43,gt=Ue(j,gt)),r(42,lt=$e(gt))),67129344&t.$$.dirty[1]&&(r(45,ut=Ue(D,gt)),r(44,ct=$e(ut))),33587200&t.$$.dirty[1]&&r(46,mt=Le(V,mt)),64&t.$$.dirty[0]&&r(50,b="horizontal"===pt?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|1048576&t.$$.dirty[1]){let t=[];v.forEach((e=>{const n="horizontal"===pt?"width":"height";t.push(X.getDerivedFromVars(e.json[n]))})),r(14,dt=he(t,(t=>t))),z(),z=h(dt,(t=>r(55,C=t)))}if(64&t.$$.dirty[0]|16843264&t.$$.dirty[1]&&(r(47,vt=[]),ht>1?vt.push("auto"):C.forEach((t=>{!t&&"horizontal"===pt||"match_parent"===(null==t?void 0:t.type)?vt.push("100%"):vt.push("max-content")}))),456&t.$$.dirty[0]|8394240&t.$$.dirty[1]){const t={};let e={};r(48,$t=!1),(null==Y?void 0:Y.fakeElement)&&(e.fakeElement=!0),"horizontal"===pt?e.parentVAlign=ft:e.parentHAlign=ft,"paging"===A&&(r(48,$t=!0),e.scrollSnap="start",t["horizontal"===pt?"scroll-padding-left":"scroll-padding-top"]=$e(gt/2)),1===ht&&(e.parentLayoutOrientation=pt),r(7,yt=qe(t,yt)),r(8,wt=qe(e,wt))}40960&t.$$.dirty[1]&&r(17,_={padding:mt,"grid-gap":ct}),591872&t.$$.dirty[1]&&r(16,w={"grid-gap":lt,[b]:ii(vt)}),64&t.$$.dirty[0]|4325376&t.$$.dirty[1]&&r(15,x={orientation:pt,"scroll-snap":$t,scrollbar:"auto"===E?"auto":"none"}),2359296&t.$$.dirty[1]&&r(49,kt=Ue(k,kt)),1&t.$$.dirty[0]&&q&&Vt(),89&t.$$.dirty[0]|256&t.$$.dirty[1]&&q&&(st&&(X.unregisterInstance(st),r(39,st=void 0)),q.id&&!(null==Y?void 0:Y.fakeElement)&&(r(39,st=q.id),X.registerInstance(q.id,{setCurrentItem(t){const e=jt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Pt(e,t)},setPreviousItem(t){const e=Ft("prev"),n=jt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),Pt(n,r)},setNextItem(t){const e="horizontal"===pt?Z.scrollLeft+Z.offsetWidth===Z.scrollWidth:Z.scrollTop+Z.offsetHeight===Z.scrollHeight,n=jt();if(e&&"ring"===t)return void Pt(n,0);const r=Ft("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),Pt(n,i)}})))},[q,G,K,Y,Z,Q,pt,yt,wt,y,i,tt,et,nt,dt,x,w,_,$,m,g,f,d,u,c,l,s,a,o,N,ot,at,function(t){r(0,q=Object.assign(Object.assign({},q),{items:t.filter(Ee)}))},Et,Ct,Vt,Dt,rt,it,st,ht,ft,lt,gt,ct,ut,mt,vt,$t,kt,b,v,k,E,A,C,V,D,j,P,F,S,I,function(t,e){At[t?"unshift":"push"]((()=>{tt[e]=t,r(11,tt)}))},function(t){At[t?"unshift":"push"]((()=>{Q=t,r(5,Q)}))},function(t){At[t?"unshift":"push"]((()=>{Z=t,r(4,Z)}))},()=>Dt("left"),()=>Dt("right")]}const vi={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"},yi=37,$i=39,bi=36,_i=35,{Boolean:wi}=C;function xi(t,e,n){const r=t.slice();r[91]=e[n];const i=r[91].index;return r[92]=i,r}function ki(t,e,n){const r=t.slice();r[91]=e[n];const i=r[91].index;r[92]=i;const o=r[92]===r[17];return r[95]=o,r}function Ei(t){let e,n;return e=new Dn({props:{cls:Me("tabs",vi,t[47]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",parentOf:t[43],parentOfSimpleMode:!0,replaceItems:t[48],$$slots:{default:[Pi]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(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]),4096&n[1]&&(r.parentOf=t[43]),2147483626&n[0]|8199&n[1]|32&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Ai(t){let e,n,r=t[91].title+"";return{c(){e=R(r),n=L()},l(t){e=rt(t,r),n=it(t)},m(t,r){T(t,e,r),T(t,n,r)},p(t,n){524288&n[0]&&r!==(r=t[91].title+"")&&at(e,r)},d(t){t&&(M(e),M(n))}}}function Ci(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[68](t[92],...n)}return i=new sn({props:{cls:Me("tabs__item",vi,{selected:t[95],actionable:Boolean(t[91].title_click_action)}),actions:!t[91].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[91].title_click_action],attrs:{id:"".concat(t[45],"-tab-").concat(t[92]),"aria-controls":"".concat(t[45],"-panel-").concat(t[92]),role:"tab",tabindex:!t[95]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[91].title_click_action?void 0:"0","aria-selected":t[95]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Ai]},$$scope:{ctx:t}}}),{c(){re(i.$$.fragment)},l(t){ie(i.$$.fragment,t)},m(t,e){oe(i,t,e),o=!0},p(e,n){var r,o,s;t=e;const l={};655360&n[0]&&(l.cls=Me("tabs__item",vi,{selected:t[95],actionable:Boolean(t[91].title_click_action)})),524296&n[0]&&(l.actions=!t[91].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[91].title_click_action]),655368&n[0]&&(l.attrs={id:"".concat(t[45],"-tab-").concat(t[92]),"aria-controls":"".concat(t[45],"-panel-").concat(t[92]),role:"tab",tabindex:!t[95]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[91].title_click_action?void 0:"0","aria-selected":t[95]?"true":"false"}),524296&n[0]&&(l.customAction=null!==(s=t[3])&&void 0!==s&&s.fakeElement?null:a),524288&n[0]|32&n[3]&&(l.$$scope={dirty:n,ctx:t}),i.$set(l)},i(t){o||(Wt(i.$$.fragment,t),o=!0)},o(t){Ht(i.$$.fragment,t),o=!1},d(t){ae(i,t)}}}function Vi(t){let e,n,r;return{c(){e=B("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=vi.tabs__separator),H(e,"style",r=ye(t[33]))},m(t,n){T(t,e,n)},p(t,n){4&n[1]&&r!==(r=ye(t[33]))&&H(e,"style",r)},d(t){t&&M(e)}}}function Di(t){let e,n;return e=new bs({props:{div:t[18][t[92]].div,templateContext:t[1],layoutParams:t[5]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};786432&n[0]&&(r.div=t[18][t[92]].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function ji(t){let e,n,r,i,o,a,s=t[30][t[92]]&&Di(t);return{c(){e=B("div"),s&&s.c(),n=L(),this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=X(e);s&&s.l(r),n=it(r),r.forEach(M),this.h()},h(){H(e,"class",r=Me("tabs__panel",vi,{visible:t[31][t[92]]})),H(e,"role","tabpanel"),H(e,"id",i=t[45]+"-panel-"+t[92]),H(e,"aria-labelledby",o=t[45]+"-tab-"+t[92]),lt(e,"left",100*t[92]+"%")},m(t,r){T(t,e,r),s&&s.m(e,null),N(e,n),a=!0},p(t,l){t[30][t[92]]?s?(s.p(t,l),1074266112&l[0]&&Wt(s,1)):(s=Di(t),s.c(),Wt(s,1),s.m(e,n)):s&&(Lt(),Ht(s,1,1,(()=>{s=null})),Ut()),(!a||524288&l[0]|1&l[1]&&r!==(r=Me("tabs__panel",vi,{visible:t[31][t[92]]})))&&H(e,"class",r),(!a||524288&l[0]&&i!==(i=t[45]+"-panel-"+t[92]))&&H(e,"id",i),(!a||524288&l[0]&&o!==(o=t[45]+"-tab-"+t[92]))&&H(e,"aria-labelledby",o),(!a||524288&l[0])&&lt(e,"left",100*t[92]+"%")},i(t){a||(Wt(s),a=!0)},o(t){Ht(s),a=!1},d(t){t&&M(e),s&&s.d()}}}function Pi(t){let e,n,r,i,o,a,c,u,d,h,p,f=Kt(t[19]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Ci(ki(t,f,e));const m=t=>Ht(g[t],1,1,(()=>{g[t]=null}));let v=t[20]&&Vi(t),y=Kt(t[19]),$=[];for(let e=0;e<y.length;e+=1)$[e]=ji(xi(t,y,e));const b=t=>Ht($[t],1,1,(()=>{$[t]=null}));return{c(){e=B("div");for(let t=0;t<g.length;t+=1)g[t].c();r=L(),v&&v.c(),i=L(),o=B("div"),a=B("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0});var n=X(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(M),r=it(t),v&&v.l(t),i=it(t),o=et(t,"DIV",{class:!0});var s=X(o);a=et(s,"DIV",{class:!0});var l=X(a);for(let t=0;t<$.length;t+=1)$[t].l(l);l.forEach(M),s.forEach(M),this.h()},h(){H(e,"class",n=vi.tabs__list+" "+(t[44]?pe["root_restrict-scroll"]:"")),H(e,"role","tablist"),lt(e,"--divkit-tabs-title-padding",t[16]?Be(t[16]):""),lt(e,"--divkit-tabs-font-size",$e(t[6])),lt(e,"--divkit-tabs-paddings",t[7]),lt(e,"--divkit-tabs-line-height",t[24]),lt(e,"--divkit-tabs-letter-spacing",t[25]),lt(e,"--divkit-tabs-active-font-weight",t[9]||""),lt(e,"--divkit-tabs-inactive-font-weight",t[10]||""),lt(e,"--divkit-tabs-active-font-family",t[26]||""),lt(e,"--divkit-tabs-inactive-font-family",t[27]||""),lt(e,"--divkit-tabs-active-text-color",t[11]),lt(e,"--divkit-tabs-inactive-text-color",t[12]),lt(e,"--divkit-tabs-active-background-color",t[13]),lt(e,"--divkit-tabs-inactive-background-color",t[14]),lt(e,"--divkit-tabs-border-radius",t[8]),lt(e,"--divkit-tabs-items-spacing",t[15]?be(t[15]):""),H(a,"class",c=Me("tabs__swiper",vi,{inited:t[28],animated:t[29]})),H(o,"class",u=vi.tabs__panels+" "+(t[44]?pe["root_restrict-scroll"]:""))},m(n,s){T(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[69](e),T(n,r,s),v&&v.m(n,s),T(n,i,s),T(n,o,s),N(o,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[70](a),t[71](o),d=!0,h||(p=[W(e,"keydown",t[50]),W(a,"touchstart",(function(){l(t[32]?t[51]:void 0)&&(t[32]?t[51]:void 0).apply(this,arguments)})),W(a,"touchmove",(function(){l(t[32]?t[52]:void 0)&&(t[32]?t[52]:void 0).apply(this,arguments)})),W(a,"touchend",(function(){l(t[32]?t[53]:void 0)&&(t[32]?t[53]:void 0).apply(this,arguments)})),W(a,"touchcancel",(function(){l(t[32]?t[53]:void 0)&&(t[32]?t[53]:void 0).apply(this,arguments)}))],h=!0)},p(r,s){if(t=r,655368&s[0]|278528&s[1]){let n;for(f=Kt(t[19]),n=0;n<f.length;n+=1){const r=ki(t,f,n);g[n]?(g[n].p(r,s),Wt(g[n],1)):(g[n]=Ci(r),g[n].c(),Wt(g[n],1),g[n].m(e,null))}for(Lt(),n=f.length;n<g.length;n+=1)m(n);Ut()}if((!d||8192&s[1]&&n!==(n=vi.tabs__list+" "+(t[44]?pe["root_restrict-scroll"]:"")))&&H(e,"class",n),65536&s[0]&&lt(e,"--divkit-tabs-title-padding",t[16]?Be(t[16]):""),64&s[0]&&lt(e,"--divkit-tabs-font-size",$e(t[6])),128&s[0]&&lt(e,"--divkit-tabs-paddings",t[7]),16777216&s[0]&&lt(e,"--divkit-tabs-line-height",t[24]),33554432&s[0]&&lt(e,"--divkit-tabs-letter-spacing",t[25]),512&s[0]&&lt(e,"--divkit-tabs-active-font-weight",t[9]||""),1024&s[0]&&lt(e,"--divkit-tabs-inactive-font-weight",t[10]||""),67108864&s[0]&&lt(e,"--divkit-tabs-active-font-family",t[26]||""),134217728&s[0]&&lt(e,"--divkit-tabs-inactive-font-family",t[27]||""),2048&s[0]&&lt(e,"--divkit-tabs-active-text-color",t[11]),4096&s[0]&&lt(e,"--divkit-tabs-inactive-text-color",t[12]),8192&s[0]&&lt(e,"--divkit-tabs-active-background-color",t[13]),16384&s[0]&&lt(e,"--divkit-tabs-inactive-background-color",t[14]),256&s[0]&&lt(e,"--divkit-tabs-border-radius",t[8]),32768&s[0]&&lt(e,"--divkit-tabs-items-spacing",t[15]?be(t[15]):""),t[20]?v?v.p(t,s):(v=Vi(t),v.c(),v.m(i.parentNode,i)):v&&(v.d(1),v=null),1074528290&s[0]|16385&s[1]){let e;for(y=Kt(t[19]),e=0;e<y.length;e+=1){const n=xi(t,y,e);$[e]?($[e].p(n,s),Wt($[e],1)):($[e]=ji(n),$[e].c(),Wt($[e],1),$[e].m(a,null))}for(Lt(),e=y.length;e<$.length;e+=1)b(e);Ut()}(!d||805306368&s[0]&&c!==(c=Me("tabs__swiper",vi,{inited:t[28],animated:t[29]})))&&H(a,"class",c),(!d||8192&s[1]&&u!==(u=vi.tabs__panels+" "+(t[44]?pe["root_restrict-scroll"]:"")))&&H(o,"class",u)},i(t){if(!d){for(let t=0;t<f.length;t+=1)Wt(g[t]);for(let t=0;t<y.length;t+=1)Wt($[t]);d=!0}},o(t){g=g.filter(wi);for(let t=0;t<g.length;t+=1)Ht(g[t]);$=$.filter(wi);for(let t=0;t<$.length;t+=1)Ht($[t]);d=!1},d(n){n&&(M(e),M(r),M(i),M(o)),z(g,n),t[69](null),v&&v.d(n),z($,n),t[70](null),t[71](null),h=!1,s(p)}}}function Fi(t){let e,n,r=!t[4]&&Ei(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[4]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),16&n[0]&&Wt(r,1)):(r=Ei(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Si(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F=n,S=n,I=n,N=n,O=n,T=n,M=n,z=n,B=n;var J,R;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>B()));let{json:L={}}=e,{templateContext:U}=e,{origJson:W}=e,{layoutParams:H}=e;const q=xt(fe),G=q.genId("tabs");let K,Y=!1,X=de([]);p(t,X,(t=>r(19,w=t)));let Z,Q,tt,et,nt,rt,it,ot,at,st={},lt=12,ct="",ut="",dt="",ht="",pt="",ft="",gt="",mt="",vt="",yt="",$t=0,bt="",wt="",kt=null,Et=!1,Ct=!1,Vt=[],Dt=[],jt=null,Pt=null,St=null,It=!1,Nt=!1;async function Ot(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(rt=y,r(17,y=t),Rt(),r(29,Ct=!0),zt(100*-y),Bt(),async function(){await Ft();const t=document.getElementById("".concat(G,"-panel-").concat(y));t&&r(22,Q.style.height=$e(t.offsetHeight),Q)}(),Jt(),at=-y*Q.clientWidth,e){await Ft();const t=Z.querySelector(".".concat(vi.tabs__item_selected));t&&t.focus()}}function Tt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==w?void 0:w.length;if(!n)return;const r=w.map((t=>t.index));let i=r.indexOf(y)+t;i>=n?i=0:i<0&&(i=n-1),Ot(r[i],e)}function Mt(t,e){return y===e||(Ot(e),!1)}async function zt(t){await Ft(),r(23,tt.style.transform="translate3d(".concat(t,"%,0,0)"),tt)}function Bt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,y-1):Math.min(y,null!=rt?rt:y),n=t?Math.min(i.length-1,y+1):Math.max(y,null!=rt?rt:y);r(30,Vt=Vt.map(((t,r)=>t||r>=e&&r<=n))),r(31,Dt=Dt.map(((t,r)=>r>=e&&r<=n)))}function Jt(){jt&&clearTimeout(jt),jt=window.setTimeout((()=>{r(31,Dt=i.map(((t,e)=>e===y)))}),400)}function Rt(){Et||(r(28,Et=!0),r(22,Q.style.height=$e(Q.clientHeight),Q),r(23,tt.style.transform="translate3d(".concat(100*-(null!=rt?rt:y),"%,0,0)"),tt))}return _t((()=>{K&&(q.unregisterInstance(K),r(56,K=void 0))})),t.$$set=t=>{"json"in t&&r(0,L=t.json),"templateContext"in t&&r(1,U=t.templateContext),"origJson"in t&&r(2,W=t.origJson),"layoutParams"in t&&r(3,H=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&L&&(r(6,lt=12),r(7,ct=""),r(8,ht=""),r(9,et=void 0),r(26,pt=""),r(10,nt=void 0),r(27,ft=""),r(11,gt=""),r(12,mt=""),r(13,vt=""),r(14,yt=""),r(15,$t=0),r(57,bt=""),r(58,wt=""),r(16,kt=null)),1&t.$$.dirty[0]&&r(18,i=L.items||[]),262144&t.$$.dirty[0]&&r(43,o=i.map((t=>t.div))),1&t.$$.dirty[0]&&(r(42,a=q.getDerivedFromVars(L.width)),z(),z=h(a,(t=>r(67,j=t)))),1&t.$$.dirty[0]&&(r(41,s=q.getDerivedFromVars(L.height)),M(),M=h(s,(t=>r(66,D=t)))),1&t.$$.dirty[0]&&r(60,l=q.getJsonWithVars(L.selected_tab)),1&t.$$.dirty[0]&&(r(40,c=q.getDerivedFromVars(L.tab_title_style)),T(),T=h(c,(t=>r(65,V=t)))),1&t.$$.dirty[0]&&(r(39,u=q.getDerivedFromVars(L.has_separator)),O(),O=h(u,(t=>r(20,C=t)))),1&t.$$.dirty[0]&&(r(38,d=q.getDerivedFromVars(L.separator_color)),N(),N=h(d,(t=>r(64,A=t)))),1&t.$$.dirty[0]&&(r(37,f=q.getDerivedFromVars(L.separator_paddings)),I(),I=h(f,(t=>r(63,E=t)))),1&t.$$.dirty[0]&&(r(36,g=q.getDerivedFromVars(L.switch_tabs_by_content_swipe_enabled)),S(),S=h(g,(t=>r(62,k=t)))),1&t.$$.dirty[0]&&(r(35,m=q.getDerivedFromVars(L.restrict_parent_scroll)),B(),B=h(m,(t=>r(44,P=t)))),1&t.$$.dirty[0]&&(r(34,v=q.getDerivedFromVars(L.title_paddings)),F(),F=h(v,(t=>r(61,x=t)))),536870912&t.$$.dirty[1]&&r(17,y=l&&Number(l)||0),262144&t.$$.dirty[0])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=q.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):q.logError(ge(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),X.set(t)}else X.set([]);if(524288&t.$$.dirty[0]&&((null==w?void 0:w.length)?r(4,Y=!1):(r(4,Y=!0),q.logError(ge(new Error('Incorrect or empty "items" prop for div "tabs"'))))),40&t.$$.dirty[0]|48&t.$$.dirty[2]){let t={};(null==H?void 0:H.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==j?void 0:j.type)&&(t.parentHorizontalWrapContent=!0),D&&"wrap_content"!==D.type||(t.parentVerticalWrapContent=!0),r(5,st=qe(t,st))}if(393233&t.$$.dirty[0]&&!Y&&(y<0||y>=i.length)&&(q.logError(ge(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:L.selected_tab,length:i.length}})),r(17,y=y<0?0:i.length-1)),655377&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&(Y||w.some((t=>y===t.index))||(q.logError(ge(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:L.selected_tab}})),r(17,y=(null===r(54,J=w[0])||void 0===J?void 0:J.index)||0))),8&t.$$.dirty[2]&&r(59,$=V||{}),64&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(6,lt=Pn($.font_size,lt)),192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&($.font_size||$.paddings)){const t=$.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/lt*10,right:(Number(t.right)||0)/lt*10,bottom:(Number(t.bottom)||0)/lt*10,left:(Number(t.left)||0)/lt*10};r(7,ct=Le(e,ct))}if(64&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=$.line_height;void 0!==t&&cn(t)&&r(24,ut=$e(t/lt*10))}if(64&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=$.letter_spacing;void 0!==t&&Re(t)&&r(25,dt=$e(t/lt*10))}if(320&t.$$.dirty[0]|285212672&t.$$.dirty[1]&&($.corner_radius||$.corners_radius||$.font_size)){const t=null!==r(55,R=$.corner_radius)&&void 0!==R?R:1e3;$.corners_radius?r(8,ht=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]&&!Re(i[t]))return r;return Ze(t,e,n)}($.corners_radius,t,lt,ht)):Re(t)&&r(8,ht=$e(t/lt*10))}512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(9,et=Sn($.active_font_weight||$.font_weight,et)),$.font_family&&"string"==typeof $.font_family?r(26,pt=q.typefaceProvider($.font_family,{fontWeight:et||400})):r(26,pt="")),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(10,nt=Sn($.inactive_font_weight||$.font_weight,nt)),$.font_family&&"string"==typeof $.font_family?r(27,ft=q.typefaceProvider($.font_family,{fontWeight:nt||400})):r(27,ft="")),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,gt=we($.active_text_color,1,gt)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(12,mt=we($.inactive_text_color,1,mt)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(13,vt=we($.active_background_color,1,vt)),16384&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(14,yt=we($.inactive_background_color,1,yt)),32768&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(15,$t=Ue($.item_spacing,$t)),1048576&t.$$.dirty[0]|201326592&t.$$.dirty[1]|6&t.$$.dirty[2]&&C&&(A&&r(57,bt=we(A,1,bt)),E&&r(58,wt=Le(E,wt))),201326592&t.$$.dirty[1]&&r(33,b={background:bt,margin:wt}),1&t.$$.dirty[2]&&r(32,_=void 0===k||Boolean(k)),65536&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(16,kt=Xe(x||void 0,kt)),262144&t.$$.dirty[0]&&(Y||(r(30,Vt=i.map(((t,e)=>e===y))),r(31,Dt=i.map(((t,e)=>e===y))))),393241&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&L&&(K&&(q.unregisterInstance(K),r(56,K=void 0)),!L.id||Y||(null==H?void 0:H.fakeElement)||(r(56,K=L.id),q.registerInstance(L.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Ot(t)},setPreviousItem(t){let e=y-1;e<0&&(e="ring"===t?i.length-1:y),Ot(e)},setNextItem(t){let e=y+1;e>i.length-1&&(e="ring"===t?0:y),Ot(e)}})))},[L,U,W,H,Y,st,lt,ct,ht,et,nt,gt,mt,vt,yt,$t,kt,y,i,w,C,Z,Q,tt,ut,dt,pt,ft,Et,Ct,Vt,Dt,_,b,v,m,g,f,d,u,c,s,a,o,P,G,X,{},function(t){L.items&&r(0,L=Object.assign(Object.assign({},L),{items:L.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))}))},Mt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(t.which===yi)Tt(-1,!0);else if(t.which===$i)Tt(1,!0);else if(t.which===bi)Ot(0,!0);else{if(t.which!==_i)return;Ot(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(pe["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==Q||(It=!1,Nt=!1,Pt=en(t),St=null,it=Date.now(),ot=at||-y*Q.clientWidth,r(29,Ct=!1),jt&&clearTimeout(jt))},function(t){const e=en(t);if(!Pt||St&&St.x===e.x&&St.y===e.y)return;St=e;const n=Q.clientWidth;if(It){at=e.x-Pt.x+ot;const t=n*i.length;if(at>0)at=at*n/(at+3*n);else if(-at+n>t){let e=-at+n-t;e=e*n/(e+3*n),at=n-t-e}zt(100*at/n)}else Math.abs(e.y-Pt.y)>10?Nt=!0:!Nt&&Math.abs(e.x-Pt.x)>8&&(Rt(),It=!0,Pt=e,zt(100*-y),Bt(!0));It&&t.cancelable&&t.preventDefault()},function(){Nt=!1,Pt=null;let t=y;if(!It)return;It=!1;const e=Math.min(512,Q.clientWidth);Math.abs(ot-at)>e/4*Math.min(1,(Date.now()-it)/750)&&(t+=ot>at?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===y?(at=-t*e,zt(100*-t),Jt()):Ot(t)},J,R,K,bt,wt,$,l,x,k,E,A,V,D,j,(t,e)=>Mt(0,t),function(t){At[t?"unshift":"push"]((()=>{Z=t,r(21,Z)}))},function(t){At[t?"unshift":"push"]((()=>{tt=t,r(23,tt)}))},function(t){At[t?"unshift":"push"]((()=>{Q=t,r(22,Q)}))}]}const Ii={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Ni(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Oi(t){return t*t*t}function Ti(t){const e=t-1;return e*e*e+1}function Mi(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 zi=Mi([.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]),Bi=Mi([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]),Ji={linear:r,ease:zi,ease_in:Oi,ease_out:Ti,ease_in_out:Ni,spring:Bi},Ri=200,Li=0,Ui=0,Wi=0;function Hi(t){return Math.max(...t.map((t=>(Number(t.duration)||Ri)+(Number(t.start_delay)||Li))))}function qi(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)||Li,a=Number(t.duration)||Ri,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-s:s,u=(Ji[t.interpolator||"ease_in_out"]||Ni)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Ui)};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,p;const e=1-u+u*(t.scale||Wi),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(p=t.pivot_y)&&void 0!==p?p:.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)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function Gi(t,e,n){return t*(1-n)+e*n}const Ki={linear:r,ease:zi,ease_in:Oi,ease_out:Ti,ease_in_out:Ni,spring:Bi},Yi=200,Xi=0;function Zi(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:Xi,duration:null!==(r=s.duration)&&void 0!==r?r:Yi,easing:s.interpolator&&s.interpolator in Ki?Ki[s.interpolator]:Ni,css:t=>["top:".concat(Gi(o.top,a.top,t)-i.top,"px"),"left:".concat(Gi(o.left,a.left,t)-i.left,"px"),"width:".concat(Gi(o.width,a.width,t),"px"),"height:".concat(Gi(o.height,a.height,t),"px")].join(";")}}function Qi(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Qi(t))})):e.push(t),e}const to={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},eo={linear:r,ease:zi,ease_in:Oi,ease_out:Ti,ease_in_out:Ni,spring:Bi},no=300,ro=0;function io(t,e){let{animations:n,direction:r}=e;if(!n)return{};const i=Ye(n),o=(a=i,Math.max(...a.map((t=>(Number(t.duration)||no)+(Number(t.start_delay)||ro)))));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)||ro,i=Number(t.duration)||no,o=Math.max(0,Math.min(1,(e-n)/i)),a=(eo[t.interpolator||"ease_in_out"]||Ni)(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:oo}=C;function ao(t){let e,i,o,a,c,u,d,h;return i=new bs({props:{div:t[0].div,templateContext:t[1]}}),{c(){e=B("div"),re(i.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);ie(i.$$.fragment,n),n.forEach(M),this.h()},h(){H(e,"class",o=Me("tooltip",to,t[7])+" "+(t[13]?pe.root_platform_desktop:"")),lt(e,"top",t[4]),lt(e,"left",t[3]),lt(e,"width",t[5]),lt(e,"height",t[6])},m(n,r){T(n,e,r),oe(i,e,null),t[26](e),u=!0,d||(h=[W(oo,"click",t[17]),W(oo,"resize",t[18])],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||8320&r[0]&&o!==(o=Me("tooltip",to,t[7])+" "+(t[13]?pe.root_platform_desktop:"")))&&H(e,"class",o),16&r[0]&&lt(e,"top",t[4]),8&r[0]&&lt(e,"left",t[3]),32&r[0]&&lt(e,"width",t[5]),64&r[0]&&lt(e,"height",t[6])},i(n){u||(Wt(i.$$.fragment,n),n&&St((()=>{u&&(c&&c.end(1),a=Gt(e,io,{animations:t[14]||so,direction:"in"}),a.start())})),u=!0)},o(o){Ht(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=Rt;let h;function p(){const{delay:e=0,duration:i=300,easing:o=r,tick:l=n,css:p}=c||qt;p&&(a=mt(t,1,0,i,e,o,p));const f=w()+e,g=f+i;St((()=>Bt(t,!1,"start"))),"inert"in t&&(h=t.inert,t.inert=!0),A((e=>{if(u){if(e>=g)return l(0,1),Bt(t,!1,"end"),--d.r||s(d.c),!1;if(e>=f){const t=o((e-f)/i);l(1-t,t)}}return u}))}return d.r+=1,l(c)?zt().then((()=>{c=c(o),p()})):p(),{end(e){e&&"inert"in t&&(t.inert=h),e&&c.tick&&c.tick(1,0),u&&(a&&vt(t,a),u=!1)}}}(e,io,{animations:t[15]||so,direction:"out"})),u=!1},d(n){n&&M(e),ae(i),t[26](null),n&&c&&c.end(),d=!1,s(h)}}}const so={name:"set",items:[{name:"translate"},{name:"fade"}]};function lo(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y=n,$=n,b=n,_=n,w=n;var x,k,E,A;t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w()));let{ownerNode:C}=e,{data:V}=e,{internalId:D}=e,{templateContext:j}=e;const P=xt(fe),F=P.isDesktop;p(t,F,(t=>r(13,g=t)));const S=Date.now();let I,N=!1,O="",T="",M="",z="",B=null;function J(){var t,e;if(!I||!C)return;const n=I.parentElement;if(!n)return;const i=I.style.cssText;r(2,I.style.cssText+=";transform: none !important",I);const o=C.getBoundingClientRect(),a=I.getBoundingClientRect(),s=n.getBoundingClientRect();r(2,I.style.cssText=i,I);let l=0,c=0,h=null,p=null,g=0,m=0;const v=P.getJsonWithVars(null===(t=V.div)||void 0===t?void 0:t.width),y=P.getJsonWithVars(null===(e=V.div)||void 0===e?void 0:e.width);if(g=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?h=v.value:a.width:h=o.width,m="match_parent"===(null==y?void 0:y.type)?p=o.height:"fixed"===(null==y?void 0:y.type)&&y.value?p=y.value:a.height,"left"===f||"bottom-left"===f||"top-left"===f)l=o.left-g;else if("top"===f||"bottom"===f||"center"===f)l=(o.left+o.right)/2-g/2;else{if("right"!==f&&"bottom-right"!==f&&"top-right"!==f)return;l=o.right}if("top"===f||"top-left"===f||"top-right"===f)c=o.top-m;else if("left"===f||"right"===f||"center"===f)c=(o.top+o.bottom)/2-m/2;else{if("bottom-left"!==f&&"bottom"!==f&&"bottom-right"!==f)return;c=o.bottom}l-=s.left,c-=s.top,l+=d||0,c+=u||0,r(3,O="".concat(l,"px")),r(4,T="".concat(c,"px")),r(5,M=null!==h?"".concat(h,"px"):""),r(6,z=null!==p?"".concat(p,"px"):""),r(25,N=!0),null===h||null===p?"undefined"==typeof ResizeObserver||B||(B=new ResizeObserver((()=>{requestAnimationFrame(J)})),B.observe(I)):null==B||B.disconnect()}var R;return bt((()=>{if(P.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),P.tooltipRoot.appendChild(I)}})),R=()=>{N||J()},$t().$$.after_update.push(R),_t((()=>{null==B||B.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(19,C=t.ownerNode),"data"in t&&r(0,V=t.data),"internalId"in t&&r(20,D=t.internalId),"templateContext"in t&&r(1,j=t.templateContext)},t.$$.update=()=>{1&t.$$.dirty[0]&&(r(12,i=P.getDerivedFromVars(V.position)),b(),b=h(i,(t=>r(30,f=t)))),6291457&t.$$.dirty[0]&&(r(11,o=P.getDerivedFromVars(null===r(22,k=null===r(21,x=V.offset)||void 0===x?void 0:x.x)||void 0===k?void 0:k.value)),$(),$=h(o,(t=>r(29,d=t)))),25165825&t.$$.dirty[0]&&(r(10,a=P.getDerivedFromVars(null===r(24,A=null===r(23,E=V.offset)||void 0===E?void 0:E.y)||void 0===A?void 0:A.value)),y(),y=h(a,(t=>r(28,u=t)))),1&t.$$.dirty[0]&&(r(9,s=P.getDerivedFromVars(V.animation_in)),_(),_=h(s,(t=>r(14,m=t)))),1&t.$$.dirty[0]&&(r(8,l=P.getDerivedFromVars(V.animation_out)),w(),w=h(l,(t=>r(15,v=t)))),33554432&t.$$.dirty[0]&&r(7,c={visible:N})},[V,j,I,O,T,M,z,c,l,s,a,o,i,g,m,v,F,function(t){Date.now()-S<100||t.composedPath().includes(I)||P.onTooltipClose(D)},function(){J()},C,D,x,k,E,A,N,function(t){At[t?"unshift":"push"]((()=>{I=t,r(2,I)}))}]}const co=class extends ce{constructor(t){super(),se(this,t,lo,ao,d,{ownerNode:19,data:0,internalId:20,templateContext:1},null,[-1,-1])}},{Map:uo}=C;function ho(t,e,n){const r=t.slice();return r[34]=e[n],r}function po(t,e,n){const r=t.slice();return r[34]=e[n],r}function fo(t){var e;let n,r,i,o;n=new Dn({props:{cls:Ii.state,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],parentOf:t[9],parentOfSimpleMode:!0,replaceItems:t[10],$$slots:{default:[bo]},$$scope:{ctx:t}}});let a=(null===(e=t[3])||void 0===e?void 0:e.tooltips)&&_o(t);return{c(){re(n.$$.fragment),r=L(),a&&a.c(),i=U()},l(t){ie(n.$$.fragment,t),r=it(t),a&&a.l(t),i=U()},m(t,e){oe(n,t,e),T(t,r,e),a&&a.m(t,e),T(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]),512&e[0]&&(o.parentOf=t[9]),482&e[0]|256&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]&&Wt(a,1)):(a=_o(t),a.c(),Wt(a,1),a.m(i.parentNode,i)):a&&(Lt(),Ht(a,1,1,(()=>{a=null})),Ut())},i(t){o||(Wt(n.$$.fragment,t),Wt(a),o=!0)},o(t){Ht(n.$$.fragment,t),Ht(a),o=!1},d(t){t&&(M(r),M(i)),ae(n,t),a&&a.d(t)}}}function go(t){let e,r,i=t[7],o=mo(t);return{c(){o.c(),e=U()},l(t){o.l(t),e=U()},m(t,n){o.m(t,n),T(t,e,n),r=!0},p(t,r){128&r[0]&&d(i,i=t[7])?(Lt(),Ht(o,1,1,n),Ut(),o=mo(t),o.c(),Wt(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Wt(o),r=!0)},o(t){Ht(o),r=!1},d(t){t&&M(e),o.d(t)}}}function mo(t){let e,n;return e=new bs({props:{div:t[8].div,templateContext:t[1]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.div=t[8].div),2&n[0]&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function vo(t){let e,n,r,i,o,a,s,l,c,u;function d(){return t[18](t[34])}return r=new bs({props:{div:t[34].json,templateContext:t[34].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=B("div"),n=B("div"),re(r.$$.fragment),o=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=X(e);n=et(i,"DIV",{class:!0});var a=X(n);ie(r.$$.fragment,a),a.forEach(M),o=it(i),i.forEach(M),this.h()},h(){H(n,"class",i=Ii["state__animation-child-inner"]),H(e,"class",a=Ii["state__animation-child"])},m(t,i){T(t,e,i),N(e,n),oe(r,n,null),N(e,o),l=!0,c||(u=W(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n[0]&&(i.div=t[34].json),64&n[0]&&(i.templateContext=t[34].templateContext),r.$set(i)},i(n){l||(Wt(r.$$.fragment,n),s||St((()=>{s=Gt(e,Zi,t[34]),s.start()})),l=!0)},o(t){Ht(r.$$.fragment,t),l=!1},d(t){t&&M(e),ae(r),c=!1,u()}}}function yo(t){let e,n,r,i,o,a,s,l,c,u,d="".concat(t[34].offsetLeft,"px"),h="".concat(t[34].offsetTop,"px"),p="".concat(t[34].width,"px"),f="".concat(t[34].height,"px");function g(){return t[17](t[34])}return r=new bs({props:{div:t[34].json,templateContext:t[34].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=B("div"),n=B("div"),re(r.$$.fragment),o=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=X(e);n=et(i,"DIV",{class:!0});var a=X(n);ie(r.$$.fragment,a),a.forEach(M),o=it(i),i.forEach(M),this.h()},h(){H(n,"class",i=Ii["state__animation-child-inner"]),H(e,"class",a=Ii["state__animation-child"]),lt(e,"left",d),lt(e,"top",h),lt(e,"width",p),lt(e,"height",f)},m(t,i){T(t,e,i),N(e,n),oe(r,n,null),N(e,o),l=!0,c||(u=W(e,"introend",g),c=!0)},p(n,i){t=n;const o={};64&i[0]&&(o.div=t[34].json),64&i[0]&&(o.templateContext=t[34].templateContext),r.$set(o),64&i[0]&&d!==(d="".concat(t[34].offsetLeft,"px"))&&lt(e,"left",d),64&i[0]&&h!==(h="".concat(t[34].offsetTop,"px"))&&lt(e,"top",h),64&i[0]&&p!==(p="".concat(t[34].width,"px"))&&lt(e,"width",p),64&i[0]&&f!==(f="".concat(t[34].height,"px"))&&lt(e,"height",f)},i(n){l||(Wt(r.$$.fragment,n),s||St((()=>{s=Gt(e,qi,t[34]),s.start()})),l=!0)},o(t){Ht(r.$$.fragment,t),l=!1},d(t){t&&M(e),ae(r),c=!1,u()}}}function $o(t,e){let n,r,i,o,a;const s=[yo,vo],l=[];function c(t,e){return"direction"in t[34]?0:1}return r=c(e),i=l[r]=s[r](e),{key:t,first:null,c(){n=U(),i.c(),o=U(),this.h()},l(t){n=U(),i.l(t),o=U(),this.h()},h(){this.first=n},m(t,e){T(t,n,e),l[r].m(t,e),T(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(Lt(),Ht(l[a],1,1,(()=>{l[a]=null})),Ut(),i=l[r],i?i.p(e,n):(i=l[r]=s[r](e),i.c()),Wt(i,1),i.m(o.parentNode,o))},i(t){a||(Wt(i),a=!0)},o(t){Ht(i),a=!1},d(t){t&&(M(n),M(o)),l[r].d(t)}}}function bo(t){var e;let n,r,i,o,a=[],s=new uo,l=(null===(e=t[8])||void 0===e?void 0:e.div)&&go(t),c=Kt(t[6]);const u=t=>t[34];for(let e=0;e<c.length;e+=1){let n=po(t,c,e),r=u(n);s.set(r,a[e]=$o(r,n))}return{c(){l&&l.c(),n=L(),r=B("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){l&&l.l(t),n=it(t),r=et(t,"DIV",{class:!0,"aria-hidden":!0});var e=X(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(M),this.h()},h(){H(r,"class",i=Ii.state__animations),H(r,"aria-hidden","true")},m(e,i){l&&l.m(e,i),T(e,n,i),T(e,r,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(r,null);t[19](r),o=!0},p(t,e){var i;null!==(i=t[8])&&void 0!==i&&i.div?l?(l.p(t,e),256&e[0]&&Wt(l,1)):(l=go(t),l.c(),Wt(l,1),l.m(n.parentNode,n)):l&&(Lt(),Ht(l,1,1,(()=>{l=null})),Ut()),2112&e[0]&&(c=Kt(t[6]),Lt(),a=Xt(a,e,u,1,t,c,s,r,Yt,$o,null,po),Ut())},i(t){if(!o){Wt(l);for(let t=0;t<c.length;t+=1)Wt(a[t]);o=!0}},o(t){Ht(l);for(let t=0;t<a.length;t+=1)Ht(a[t]);o=!1},d(e){e&&(M(n),M(r)),l&&l.d(e);for(let t=0;t<a.length;t+=1)a[t].d();t[19](null)}}}function _o(t){var e;let n,r,i=[],o=new uo,a=Kt(null===(e=t[3])||void 0===e?void 0:e.tooltips);const s=t=>t[34].internalId;for(let e=0;e<a.length;e+=1){let n=ho(t,a,e),r=s(n);o.set(r,i[e]=wo(r,n))}return{c(){for(let t=0;t<i.length;t+=1)i[t].c();n=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);n=U()},m(t,e){for(let n=0;n<i.length;n+=1)i[n]&&i[n].m(t,e);T(t,n,e),r=!0},p(t,e){var r;10&e[0]&&(a=Kt(null===(r=t[3])||void 0===r?void 0:r.tooltips),Lt(),i=Xt(i,e,s,1,t,a,o,n.parentNode,Yt,wo,n,ho),Ut())},i(t){if(!r){for(let t=0;t<a.length;t+=1)Wt(i[t]);r=!0}},o(t){for(let t=0;t<i.length;t+=1)Ht(i[t]);r=!1},d(t){t&&M(n);for(let e=0;e<i.length;e+=1)i[e].d(t)}}}function wo(t,e){let n,r,i;return r=new co({props:{ownerNode:e[34].ownerNode,data:e[34].desc,internalId:e[34].internalId,templateContext:e[1]}}),{key:t,first:null,c(){n=U(),re(r.$$.fragment),this.h()},l(t){n=U(),ie(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){T(t,n,e),oe(r,t,e),i=!0},p(t,n){e=t;const i={};8&n[0]&&(i.ownerNode=e[34].ownerNode),8&n[0]&&(i.data=e[34].desc),8&n[0]&&(i.internalId=e[34].internalId),2&n[0]&&(i.templateContext=e[1]),r.$set(i)},i(t){i||(Wt(r.$$.fragment,t),i=!0)},o(t){Ht(r.$$.fragment,t),i=!1},d(t){t&&M(n),ae(r,t)}}}function xo(t){let e,n,r=!t[4]&&fo(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[4]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),16&n[0]&&Wt(r,1)):(r=fo(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function ko(t){return"change_bounds"===t.type?t:"set"===t.type?ko(t.items[0]):null}function Eo(t,e,n){let r,i,o,a,s,l,{json:c={}}=e,{templateContext:u}=e,{origJson:d}=e,{layoutParams:h}=e;const p=xt(fe),f=xt(ze);let g,m,v,y=!1,$=new Map,b=new Set,_=null,w=[],x=[],k=[],E=[],A=null,C=!1;function V(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=p.getJsonWithVars(r),o=p.getJsonWithVars(o);const s=Qi(o),l=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(c=s,c.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var c}async function D(t){if(v===t)return;p.setRunning("stateChange",!0);const e=new Set(b);w.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,w=[]);let r=[];if(g){const t=g.getBoundingClientRect();r=k.map((e=>V(t,e,"out")))}E.forEach((t=>{$.set(t.id,t.node.getBoundingClientRect())})),x=[],k=[],E=[];const i=s.find((e=>e.state_id===t))||null;if(i?(n(7,v=t),null==a||a.setValue(v),n(8,A=i)):p.logError(ge(new Error("Cannot find state with id"),{additional:{stateId:t}})),await Ft(),!g)return;const o=g.getBoundingClientRect();let l=x.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>V(o,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||b.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=r.concat(l),u=c.reduce(((t,e)=>Math.max(t,Hi(e.transitions))),0),d=E.filter((t=>$.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:o,beforeBbox:$.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:p.getJsonWithVars(ko(t.transitions)),resolvePromise:t.resolvePromise})));n(6,w=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:u}))),...d]),$.clear(),p.setRunning("stateChange",!1)}function j(t){if(_&&_.has(t))return _.get(t);p.logError(ge(new Error("Missing state block with id"),{additional:{id:t}}))}function P(t){n(6,w=w.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return wt(ze,{registerInstance(t,e){_||(_=new Map),_.has(t)?p.logError(ge(new Error("Duplicate state with id"),{additional:{id:t}})):_.set(t,e)},unregisterInstance(t){null==_||_.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!g)return Promise.resolve();const a=V(g.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),s=Hi(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(6,w=[...w.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 x.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return k.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 E.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&$.has(t),registerChild(t){b.add(t)},unregisterChild(t){b.delete(t)}}),_t((()=>{m&&f.unregisterInstance(m)})),t.$$set=t=>{"json"in t&&n(0,c=t.json),"templateContext"in t&&n(1,u=t.templateContext),"origJson"in t&&n(2,d=t.origJson),"layoutParams"in t&&n(3,h=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(15,r=c.div_id||c.id),1&t.$$.dirty[0]&&(i=p.getJsonWithVars(c.default_state_id)),1&t.$$.dirty[0]&&n(16,o=c.state_id_variable),65536&t.$$.dirty[0]&&(a=o?p.getVariable(o,"string"):null),1&t.$$.dirty[0]&&c&&n(13,C=!1),32768&t.$$.dirty[0]&&(r?n(4,y=!1):(n(4,y=!0),p.logError(ge(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&c&&(b=new Set),1&t.$$.dirty[0]&&n(14,s=c.states||[]),16384&t.$$.dirty[0]&&n(9,l=s.map((t=>t.div))),16384&t.$$.dirty[0]&&((null==s?void 0:s.length)?n(4,y=!1):(n(4,y=!0),p.logError(ge(new Error('Empty "states" prop for div "state"'))))),36873&t.$$.dirty[0]&&c&&(m&&(f.unregisterInstance(m),n(12,m=void 0)),r&&!(null==h?void 0:h.fakeElement)&&(n(12,m=r),f.registerInstance(r,{setState:D,getChild:j}))),24576&t.$$.dirty[0]&&!C&&function(t){if(!C&&(n(13,C=!0),t.length)){const e=(null==a?void 0:a.getValue())||i;e?(n(7,v=e),n(8,A=t.find((t=>t.state_id===v))||null),A||p.logError(ge(new Error("Cannot find state for default_state_id"),{additional:{selectedId:v}}))):(n(8,A=t[0]),n(7,v=A.state_id)),a&&(a.setValue(v),a.subscribe((t=>{D(t)})))}}(s)},[c,u,d,h,y,g,w,v,A,l,function(t){const e=c.states;if(!e)return;const r=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})));n(0,c=Object.assign(Object.assign({},c),{states:r})),v&&n(8,A=r.find((t=>t.state_id===v))||null)},P,m,C,s,r,o,t=>P(t),t=>P(t),function(t){At[t?"unshift":"push"]((()=>{g=t,n(5,g)}))}]}const Ao={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:Co}=C;function Vo(t,e,n){const r=t.slice();return r[59]=e[n],r}function Do(t){let e,n;return e=new Dn({props:{cls:Me("pager",Ao,t[11]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,parentOf:t[0].items,replaceItems:t[23],$$slots:{default:[So]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Me("pager",Ao,t[11])),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),268120&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function jo(t){var e;let n,r,i,o,a;return r=new bs({props:{div:t[59].json,templateContext:t[59].templateContext,origJson:t[59].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=B("div"),re(r.$$.fragment),i=L(),this.h()},l(t){n=et(t,"DIV",{class:!0});var e=X(n);ie(r.$$.fragment,e),i=it(e),e.forEach(M),this.h()},h(){H(n,"class",o=Ao.pager__item)},m(t,e){T(t,n,e),oe(r,n,null),N(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[59].json),16&e[0]&&(i.templateContext=t[59].templateContext),16&e[0]&&(i.origJson=t[59].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||(Wt(r.$$.fragment,t),a=!0)},o(t){Ht(r.$$.fragment,t),a=!1},d(t){t&&M(n),ae(r)}}}function Po(t){let e,r,i,o,a=!t[19]&&function(t){let e,n,r,i;return{c(){e=J("svg"),n=J("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=Ao["pager__arrow-icon-path"]),H(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),H(e,"class",i=ri.arrow__icon),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"width","32"),H(e,"height","32"),H(e,"viewBox","0 0 32 32"),H(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(M),this.h()},h(){H(e,"class",r=t[19]||"".concat(Ao.pager__arrow," ").concat(ri.arrow," ").concat(ri.arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=W(e,"click",t[47]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function Fo(t){let e,r,i,o,a=!t[20]&&function(t){let e,n,r,i;return{c(){e=J("svg"),n=J("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=Ao["pager__arrow-icon-path"]),H(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),H(e,"class",i=ri.arrow__icon),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"width","32"),H(e,"height","32"),H(e,"viewBox","0 0 32 32"),H(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(M),this.h()},h(){H(e,"class",r=t[20]||"".concat(Ao.pager__arrow," ").concat(ri.arrow," ").concat(ri.arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=W(e,"click",t[48]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function So(t){let e,n,r,i,o,a,s,l,c,u=Kt(t[4]),d=[];for(let e=0;e<u.length;e+=1)d[e]=jo(Vo(t,u,e));const h=t=>Ht(d[t],1,1,(()=>{d[t]=null}));let p=t[9]&&t[10]&&Po(t),f=t[8]&&t[10]&&Fo(t);return{c(){e=B("div");for(let t=0;t<d.length;t+=1)d[t].c();i=L(),p&&p.c(),o=L(),f&&f.c(),a=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var n=X(e);for(let t=0;t<d.length;t+=1)d[t].l(n);n.forEach(M),i=it(t),p&&p.l(t),o=it(t),f&&f.l(t),a=U(),this.h()},h(){H(e,"class",n=Ao.pager__items+" "+(t[18]?pe["root_restrict-scroll"]:"")),H(e,"style",r=ye(t[12]))},m(n,r){T(n,e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);t[46](e),T(n,i,r),p&&p.m(n,r),T(n,o,r),f&&f.m(n,r),T(n,a,r),s=!0,l||(c=W(e,"scroll",t[22]),l=!0)},p(t,i){if(24&i[0]){let n;for(u=Kt(t[4]),n=0;n<u.length;n+=1){const r=Vo(t,u,n);d[n]?(d[n].p(r,i),Wt(d[n],1)):(d[n]=jo(r),d[n].c(),Wt(d[n],1),d[n].m(e,null))}for(Lt(),n=u.length;n<d.length;n+=1)h(n);Ut()}(!s||262144&i[0]&&n!==(n=Ao.pager__items+" "+(t[18]?pe["root_restrict-scroll"]:"")))&&H(e,"class",n),(!s||4096&i[0]&&r!==(r=ye(t[12])))&&H(e,"style",r),t[9]&&t[10]?p?p.p(t,i):(p=Po(t),p.c(),p.m(o.parentNode,o)):p&&(p.d(1),p=null),t[8]&&t[10]?f?f.p(t,i):(f=Fo(t),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(t){if(!s){for(let t=0;t<u.length;t+=1)Wt(d[t]);s=!0}},o(t){d=d.filter(Co);for(let t=0;t<d.length;t+=1)Ht(d[t]);s=!1},d(n){n&&(M(e),M(i),M(o),M(a)),z(d,n),t[46](null),p&&p.d(n),f&&f.d(n),l=!1,c()}}}function Io(t){let e,n,r=!t[5]&&Do(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[5]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),32&n[0]&&Wt(r,1)):(r=Do(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function No(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,b,_,w,x,k,E,A,C,V=n,D=n,j=n,P=n,F=n,S=n;var I,N,O,T,M,z;t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S()));let{json:B={}}=e,{templateContext:J}=e,{origJson:R}=e,{layoutParams:L}=e;const U=xt(fe),W=U.genId("pager"),H=U.getCustomization("pagerLeftClass"),q=U.getCustomization("pagerRightClass"),G=U.isDesktop;p(t,G,(t=>r(41,w=t)));const K=oi((function(){if(!Z)return;const t=function(){const t=Array.from(X.children),e=X.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===nt?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:Q}();t!==Q&&r(34,Q=t)}),50);let Y,X,Z=!1,Q=0,tt=0,et=!1,nt="horizontal",rt="",it="",ot="";function at(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===nt,i=X.children[t],o=n?"offsetLeft":"offsetTop",a=n?"left":"top";X.scroll({[a]:i[o],behavior:e}),r(34,Q=t)}function st(t){let e=Q-1;e<0&&(e="ring"===t?c.length-1:Q),at(e)}function lt(t){let e=Q+1;e>c.length-1&&(e="ring"===t?0:Q),at(e)}return bt((()=>{if(r(33,Z=!0),Boolean(document.getElementById("".concat(W,"-tab-0")))){const t=[...X.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(W,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(W,"-tab-").concat(e))}})),_t((()=>{r(33,Z=!1),Y&&(U.unregisterInstance(Y),r(32,Y=void 0))})),t.$$set=t=>{"json"in t&&r(0,B=t.json),"templateContext"in t&&r(1,J=t.templateContext),"origJson"in t&&r(2,R=t.origJson),"layoutParams"in t&&r(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&B&&r(38,it=""),1&t.$$.dirty[0]&&(r(17,i=U.getDerivedFromVars(B.layout_mode)),D(),D=h(i,(t=>r(42,x=t)))),1&t.$$.dirty[0]&&(r(16,o=U.getDerivedFromVars(B.orientation)),F(),F=h(o,(t=>r(45,A=t)))),1&t.$$.dirty[0]&&(r(15,a=U.getDerivedFromVars(B.item_spacing)),P(),P=h(a,(t=>r(44,E=t)))),1&t.$$.dirty[0]&&(r(14,s=U.getDerivedFromVars(B.paddings)),j(),j=h(s,(t=>r(43,k=t)))),1&t.$$.dirty[0]&&(r(13,l=U.getDerivedFromVars(B.restrict_parent_scroll)),S(),S=h(l,(t=>r(18,C=t)))),3&t.$$.dirty[0]&&r(4,c=(Array.isArray(B.items)&&B.items||[]).map((t=>{let e=t,n=J;return({templateContext:n,json:e}=U.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),2048&t.$$.dirty[1]&&(x?"percentage"!==x.type&&"fixed"!==x.type?(r(35,et=!0),U.logError(ge(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(35,et=!1):(r(35,et=!0),U.logError(ge(new Error('Empty "layout_mode" prop for div "pager"'))))),16416&t.$$.dirty[1]&&r(36,nt=Dr(A,nt)),8192&t.$$.dirty[1]){const t=null==E?void 0:E.value;t&&Re(t)&&r(37,rt=$e(t||0))}if(4224&t.$$.dirty[1]&&r(38,it=Le(k,it)),32&t.$$.dirty[1]&&r(40,u="horizontal"===nt?"grid-auto-columns":"grid-auto-rows"),2080374785&t.$$.dirty[0]|2145&t.$$.dirty[1])if("fixed"===(null==x?void 0:x.type)){const t=be("horizontal"===nt?((null===r(26,I=B.paddings)||void 0===I?void 0:I.left)||0)+((null===r(27,N=B.paddings)||void 0===N?void 0:N.right)||0):((null===r(28,O=B.paddings)||void 0===O?void 0:O.top)||0)+((null===r(29,T=B.paddings)||void 0===T?void 0:T.bottom)||0)),e=null===r(30,M=x.neighbour_page_width)||void 0===M?void 0:M.value;r(39,ot=e?"calc(100% + ".concat(t," - 2 * ").concat(be(e)," - 2 * ").concat(rt,")"):"100%")}else if("percentage"===(null==x?void 0:x.type)){const t=null===r(31,z=x.page_width)||void 0===z?void 0:z.value;r(39,ot="".concat(Number(t),"%"))}960&t.$$.dirty[1]&&r(12,d={"grid-gap":rt,padding:it,[u]:ot}),32&t.$$.dirty[1]&&r(11,f={orientation:nt}),16&t.$$.dirty[1]&&r(5,g=et),32&t.$$.dirty[0]|1028&t.$$.dirty[1]&&r(10,m=w&&Z&&!g),8&t.$$.dirty[1]&&r(9,v=Q>0),16&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(8,y=Q+1<c.length),16&t.$$.dirty[0]|8&t.$$.dirty[1]&&function(t,e){const n=B.id;if(n){const r=new Map(_);$(b,_=r.set(n,{instId:W,size:t,currentItem:e,scrollToPagerItem:at}),_)}}(c.length,Q),8&t.$$.dirty[1]&&function(t){var e;if(t===tt)return;tt=t;const n=U.getJsonWithVars(null===(e=c[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&U.execAnyActions(n)}(Q),25&t.$$.dirty[0]|2&t.$$.dirty[1]&&B&&(Y&&(U.unregisterInstance(Y),r(32,Y=void 0)),B.id&&!(null==L?void 0:L.fakeElement)&&(r(32,Y=B.id),U.registerInstance(B.id,{setCurrentItem(t){if(t<0||t>c.length-1)throw new Error('Item is out of range in "set-current-item" action');at(t)},setPreviousItem:st,setNextItem:lt})))},r(7,b=U.getStore("pagers")),V(),V=h(b,(t=>r(50,_=t))),[B,J,R,L,c,g,X,b,y,v,m,f,d,l,s,a,o,i,C,H,q,G,K,function(t){r(0,B=Object.assign(Object.assign({},B),{items:t.filter(Ee)}))},st,lt,I,N,O,T,M,z,Y,Z,Q,et,nt,rt,it,ot,u,w,x,k,E,A,function(t){At[t?"unshift":"push"]((()=>{X=t,r(6,X)}))},()=>st("clamp"),()=>lt("clamp")]}const Oo={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 To(t,e,n){const r=t.slice();r[42]=e[n],r[45]=n;const i=r[45]===r[12].currentItem;return r[43]=i,r}function Mo(t){let e,n=Kt(Array(t[12].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=zo(To(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=U()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=U()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);T(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Kt(Array(t[12].size)),o=0;o<n.length;o+=1){const a=To(t,n,o);r[o]?r[o].p(a,i):(r[o]=zo(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&&M(e),z(r,t)}}}function zo(t){let e,n,r,i,o,a,l,c;function u(){return t[36](t[45])}return{c(){e=B("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=Me("indicator__item",Oo,{active:t[43]})+" "+pe.root__clickable),H(e,"role","tab"),H(e,"id",r=t[12].instId+"-tab-"+t[45]),H(e,"aria-controls",i=t[12].instId+"-panel-"+t[45]),H(e,"aria-selected",o=t[43]?"true":"false"),H(e,"tabindex",a=t[43]?0:-1)},m(n,r){T(n,e,r),l||(c=[W(e,"click",u),W(e,"keydown",t[24])],l=!0)},p(s,l){t=s,4096&l[0]&&n!==(n=Me("indicator__item",Oo,{active:t[43]})+" "+pe.root__clickable)&&H(e,"class",n),4096&l[0]&&r!==(r=t[12].instId+"-tab-"+t[45])&&H(e,"id",r),4096&l[0]&&i!==(i=t[12].instId+"-panel-"+t[45])&&H(e,"aria-controls",i),4096&l[0]&&o!==(o=t[43]?"true":"false")&&H(e,"aria-selected",o),4096&l[0]&&a!==(a=t[43]?0:-1)&&H(e,"tabindex",a)},d(t){t&&M(e),l=!1,s(c)}}}function Bo(t){let e,n,r,i,o=t[12]&&Mo(t);return{c(){e=B("div"),n=B("div"),o&&o.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=X(e);n=et(r,"DIV",{class:!0,role:!0});var i=X(n);o&&o.l(i),i.forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=Oo.indicator__items),H(n,"role","tablist"),lt(n,"margin","default"===t[6]?"0 ".concat($e(Math.max(0,t[4].width-t[5].width)/2)):""),lt(n,"--divkit-indicator-inactive-width",$e(t[5].width)),lt(n,"--divkit-indicator-inactive-height",$e(t[5].height)),lt(n,"--divkit-indicator-inactive-border-radius",$e(t[5].borderRadius)),lt(n,"--divkit-indicator-inactive-background",t[5].background||""),lt(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),lt(n,"--divkit-indicator-active-width",$e(t[4].width)),lt(n,"--divkit-indicator-active-height",$e(t[4].height)),lt(n,"--divkit-indicator-active-border-radius",$e(t[4].borderRadius)),lt(n,"--divkit-indicator-active-background",t[4].background||""),lt(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),lt(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),lt(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat($e((t[7]-t[5].width)/2)):""),lt(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?$e(t[9]):""),lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?$e((t[8]-1)*t[9]):""),H(e,"class",i=Oo.indicator__scroller)},m(r,i){T(r,e,i),N(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=Mo(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&lt(n,"margin","default"===t[6]?"0 ".concat($e(Math.max(0,t[4].width-t[5].width)/2)):""),32&e[0]&&lt(n,"--divkit-indicator-inactive-width",$e(t[5].width)),32&e[0]&&lt(n,"--divkit-indicator-inactive-height",$e(t[5].height)),32&e[0]&&lt(n,"--divkit-indicator-inactive-border-radius",$e(t[5].borderRadius)),32&e[0]&&lt(n,"--divkit-indicator-inactive-background",t[5].background||""),32&e[0]&&lt(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),16&e[0]&&lt(n,"--divkit-indicator-active-width",$e(t[4].width)),16&e[0]&&lt(n,"--divkit-indicator-active-height",$e(t[4].height)),16&e[0]&&lt(n,"--divkit-indicator-active-border-radius",$e(t[4].borderRadius)),16&e[0]&&lt(n,"--divkit-indicator-active-background",t[4].background||""),16&e[0]&&lt(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),48&e[0]&&lt(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),224&e[0]&&lt(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat($e((t[7]-t[5].width)/2)):""),576&e[0]&&lt(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?$e(t[9]):""),320&e[0]&&lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),832&e[0]&&lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?$e((t[8]-1)*t[9]):"")},d(n){n&&M(e),o&&o.d(),t[37](null),t[38](null)}}}function Jo(t){let e,n;return e=new Dn({props:{cls:Me("indicator",Oo,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Bo]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Me("indicator",Oo,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]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}const Ro=["rounded_rectangle","circle"];function Lo(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k=n,E=n,A=n,C=n,V=n,D=n,j=n,P=n,F=n;var S,I;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>F()));let{json:N={}}=e,{templateContext:O}=e,{origJson:T}=e,{layoutParams:M}=e;const z=xt(fe);let B,J,R,L={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},U={width:10,height:10,borderRadius:5,background:"#33919cb5"},W="default",H=15,q=10,G=5;function K(t){t!==R.currentItem&&R.scrollToPagerItem(t)}async function Y(t){R.scrollToPagerItem(t),await Ft();const e=J.querySelector(".".concat(Oo.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&r(0,N=t.json),"templateContext"in t&&r(1,O=t.templateContext),"origJson"in t&&r(2,T=t.origJson),"layoutParams"in t&&r(3,M=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&N&&(r(6,W="default"),r(7,H=15),r(8,q=10),r(9,G=5),r(4,L={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),r(5,U={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(r(22,i=z.getDerivedFromVars(N.shape)),D(),D=h(i,(t=>r(32,b=t)))),1&t.$$.dirty[0]&&(r(21,o=z.getDerivedFromVars(N.active_item_color)),C(),C=h(o,(t=>r(30,y=t)))),1&t.$$.dirty[0]&&(r(20,a=z.getDerivedFromVars(N.inactive_item_color)),V(),V=h(a,(t=>r(31,$=t)))),1&t.$$.dirty[0]&&(r(19,s=z.getDerivedFromVars(N.active_item_size)),j(),j=h(s,(t=>r(33,_=t)))),1&t.$$.dirty[0]&&(r(18,l=z.getDerivedFromVars(N.active_shape)),F(),F=h(l,(t=>r(35,x=t)))),1&t.$$.dirty[0]&&(r(17,c=z.getDerivedFromVars(N.inactive_shape)),P(),P=h(c,(t=>r(34,w=t)))),1&t.$$.dirty[0]&&(r(16,u=z.getDerivedFromVars(N.space_between_centers)),E(),E=h(u,(t=>r(28,m=t)))),1&t.$$.dirty[0]&&(r(15,d=z.getDerivedFromVars(N.items_placement)),A(),A=h(d,(t=>r(29,v=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(x&&r(4,L=ar({type:"shape_drawable",shape:x},Ro,L)),w&&r(5,U=ar({type:"shape_drawable",shape:w},Ro,U)),!x&&!w&&b)){const t=Pn(_,1.3);r(5,U=ar({type:"shape_drawable",shape:b,color:U.background},Ro,U)),r(5,U.background=we($,1,U.background),U),r(4,L=Object.assign(Object.assign({},U),{width:U.width*t,height:U.height*t,borderRadius:U.borderRadius*t,background:L.background})),r(4,L.background=we(y,1,L.background),L)}if(905970624&t.$$.dirty[0])if(!v||"default"!==v.type&&"stretch"!==v.type)r(6,W="default"),m&&r(7,H=Ue(m.value,H));else if(r(6,W=v.type),"default"===W)r(7,H=Ue(null===r(25,S=v.space_between_centers)||void 0===S?void 0:S.value,H));else if("stretch"===W){const t=v;r(8,q=Pn(t.max_visible_items,q)),r(9,G=Ue(null===r(26,I=t.item_spacing)||void 0===I?void 0:I.value,G))}134217728&t.$$.dirty[0]&&async function(t){if(N.pager_id&&t.has(N.pager_id)&&(r(12,R=t.get(N.pager_id)),await Ft(),J)){const t=J.children[R.currentItem];if(t){const e=t.offsetLeft;B.scroll({left:e-B.clientWidth/2,behavior:"smooth"})}}}(g),64&t.$$.dirty[0]&&r(13,f={placement:W})},r(14,p=z.getStore("pagers")),k(),k=h(p,(t=>r(27,g=t))),[N,O,T,M,L,U,W,H,q,G,B,J,R,f,p,d,u,c,l,s,a,o,i,K,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=R;if(t.which===yi)Y(n-1<0?n:n-1);else if(t.which===$i)Y(n+1>=e?n:n+1);else if(t.which===bi)Y(0);else{if(t.which!==_i)return;Y(e-1)}t.preventDefault()},S,I,g,m,v,y,$,b,_,w,x,t=>K(t),function(t){At[t?"unshift":"push"]((()=>{J=t,r(11,J)}))},function(t){At[t?"unshift":"push"]((()=>{B=t,r(10,B)}))}]}const Uo={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 Wo(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&we(t.text_color)||"#000",i=Fn(t.font_weight);if(cn(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:$e(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 Ho(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const qo="function"==typeof BigInt;function Go(t){return qo?BigInt(t):Number(t)}const Ko=Go("9223372036854775807"),Yo=Go("-9223372036854775808");function Xo(t){const e=Go(t);if(e>Ko||e<Yo)throw new Error("Integer overflow.");return e}const Zo=Xo(0);function Qo(t){let e=t;return e<0&&(e=-e),e}function ta(t){let e=0;return t>0?e=1:t<0&&(e=-1),Xo(e)}class ea{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=de(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 na={string:class extends ea{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends ea{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 ea{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>Ko||t<Yo)throw new Error("Incorrect variable value");return Xo(t)}fromString(t){const e=Xo(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends ea{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 ea{convertValue(t){if("string"!=typeof t||!xe(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends ea{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}},dict:class extends ea{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"}},array:class extends ea{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}};function ra(t,e,n){if(!(e in na))throw new Error("Unsupported variable type");return new na[e](t,n)}function ia(t,e,n){const r=t.slice();return r[80]=e[n],r}function oa(t,e,n){const r=t.slice();return r[80]=e[n],r}function aa(t){let e,n;return e=new Dn({props:{cls:Me("slider",Uo,t[25]),style:t[26],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[pa,t=>{let{focusHandler:e,blurHandler:n}=t;return{78:e,79:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?65536:0)|(n?131072:0)]}]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};33554432&n[0]&&(r.cls=Me("slider",Uo,t[25])),67108864&n[0]&&(r.style=t[26]),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]),411033584&n[0]|8585216&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function sa(t){let e,n;return{c(){e=B("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=Uo.slider__tick+" "+Uo.slider__tick_active),lt(e,"--divkit-slider-tick",t[80])},m(t,n){T(t,e,n)},p(t,n){524288&n[0]&&lt(e,"--divkit-slider-tick",t[80])},d(t){t&&M(e)}}}function la(t){let e,n;return{c(){e=B("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),X(e).forEach(M),this.h()},h(){H(e,"class",n=Uo.slider__tick+" "+Uo.slider__tick_inactive),lt(e,"--divkit-slider-tick",t[80])},m(t,n){T(t,e,n)},p(t,n){1048576&n[0]&&lt(e,"--divkit-slider-tick",t[80])},d(t){t&&M(e)}}}function ca(t){let e,n,r,i,o;return{c(){e=B("div"),n=B("div"),r=R(t[14]),this.h()},l(i){e=et(i,"DIV",{class:!0});var o=X(e);n=et(o,"DIV",{class:!0});var a=X(n);r=rt(a,t[14]),a.forEach(M),o.forEach(M),this.h()},h(){var r,a,s;H(n,"class",i=Uo["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[11])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[11])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(s=t[11])||void 0===s?void 0:s.textColor)||"#000"),H(e,"class",o=Uo["slider__thumb-text"])},m(t,i){T(t,e,i),N(e,n),N(n,r)},p(t,e){var i,o,a;16384&e[0]&&at(r,t[14]),2048&e[0]&&lt(n,"font-size",(null===(i=t[11])||void 0===i?void 0:i.fontSize)||"1em"),2048&e[0]&&lt(n,"font-weight",(null===(o=t[11])||void 0===o?void 0:o.fontWeight)||""),2048&e[0]&&lt(n,"color",(null===(a=t[11])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function ua(t){let e,n,r=t[12]&&da(t);return{c(){e=B("div"),r&&r.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);r&&r.l(n),n.forEach(M),this.h()},h(){H(e,"class",n=Uo.slider__thumb+" "+Uo.slider__thumb_secondary),lt(e,"border-radius",$e(t[8].borderRadius)),lt(e,"background",t[8].background),lt(e,"box-shadow",t[8].boxShadow||"")},m(t,n){T(t,e,n),r&&r.m(e,null)},p(t,n){t[12]?r?r.p(t,n):(r=da(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),256&n[0]&&lt(e,"border-radius",$e(t[8].borderRadius)),256&n[0]&&lt(e,"background",t[8].background),256&n[0]&&lt(e,"box-shadow",t[8].boxShadow||"")},d(t){t&&M(e),r&&r.d()}}}function da(t){let e,n,r,i,o;return{c(){e=B("div"),n=B("div"),r=R(t[15]),this.h()},l(i){e=et(i,"DIV",{class:!0});var o=X(e);n=et(o,"DIV",{class:!0});var a=X(n);r=rt(a,t[15]),a.forEach(M),o.forEach(M),this.h()},h(){var r,a,s;H(n,"class",i=Uo["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(s=t[12])||void 0===s?void 0:s.textColor)||"#000"),H(e,"class",o=Uo["slider__thumb-text"]+" "+Uo["slider__thumb-text_secondary"])},m(t,i){T(t,e,i),N(e,n),N(n,r)},p(t,e){var i,o,a;32768&e[0]&&at(r,t[15]),4096&e[0]&&lt(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em"),4096&e[0]&&lt(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||""),4096&e[0]&&lt(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function ha(t){let e,n,r,i,o;return{c(){e=B("input"),this.h()},l(t){e=et(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){H(e,"type","range"),H(e,"class",n=t[18]?Uo.slider__input:"".concat(Uo.slider__input," ").concat(Uo.slider__input_secondary)),H(e,"min",t[5]),H(e,"max",t[6]),H(e,"step","1"),e.value=r=t[18]?t[14]:t[15],H(e,"aria-label",t[22])},m(n,r){T(n,e,r),i||(o=[W(e,"input",t[72]),W(e,"mousedown",(function(){l(t[16]?t[41]:null)&&(t[16]?t[41]:null).apply(this,arguments)})),W(e,"touchstart",(function(){l(t[16]?t[41]:null)&&(t[16]?t[41]:null).apply(this,arguments)})),W(e,"focus",(function(){l(t[78])&&t[78].apply(this,arguments)})),W(e,"blur",(function(){l(t[79])&&t[79].apply(this,arguments)}))],i=!0)},p(i,o){t=i,262144&o[0]&&n!==(n=t[18]?Uo.slider__input:"".concat(Uo.slider__input," ").concat(Uo.slider__input_secondary))&&H(e,"class",n),32&o[0]&&H(e,"min",t[5]),64&o[0]&&H(e,"max",t[6]),311296&o[0]&&r!==(r=t[18]?t[14]:t[15])&&(e.value=r),4194304&o[0]&&H(e,"aria-label",t[22])},d(t){t&&M(e),i=!1,s(o)}}}function pa(t){let e,n,r,i,o,a,c,u,d,h,p,f,g,m,v,y,$,b,_,w,x,k,E=Kt(t[19]),A=[];for(let e=0;e<E.length;e+=1)A[e]=sa(oa(t,E,e));let C=Kt(t[20]),V=[];for(let e=0;e<C.length;e+=1)V[e]=la(ia(t,C,e));let D=t[11]&&ca(t),j=t[16]&&ua(t),P=t[16]&&ha(t);return{c(){e=B("div"),n=B("div"),r=B("div"),o=L(),a=B("div"),u=L();for(let t=0;t<A.length;t+=1)A[t].c();d=L();for(let t=0;t<V.length;t+=1)V[t].c();h=L(),p=B("div"),D&&D.c(),g=L(),j&&j.c(),m=L(),v=B("input"),b=L(),P&&P.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=X(e);n=et(i,"DIV",{class:!0});var s=X(n);r=et(s,"DIV",{class:!0}),X(r).forEach(M),o=it(s),a=et(s,"DIV",{class:!0}),X(a).forEach(M),u=it(s);for(let t=0;t<A.length;t+=1)A[t].l(s);d=it(s);for(let t=0;t<V.length;t+=1)V[t].l(s);h=it(s),p=et(s,"DIV",{class:!0});var l=X(p);D&&D.l(l),l.forEach(M),g=it(s),j&&j.l(s),m=it(s),v=et(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),b=it(s),P&&P.l(s),s.forEach(M),i.forEach(M),this.h()},h(){H(r,"class",i=Uo.slider__track),lt(r,"height",$e(t[9].height)),lt(r,"border-radius",$e(t[9].borderRadius)),lt(r,"background",t[9].background),lt(r,"box-shadow",t[9].boxShadow||""),H(a,"class",c=Uo["slider__active-track"]),lt(a,"left",(100*t[27]).toFixed(2)+"%"),lt(a,"width",(100*t[28]).toFixed(2)+"%"),lt(a,"height",$e(t[10].height)),lt(a,"border-radius",$e(t[10].borderRadius)),lt(a,"background",t[10].background),lt(a,"box-shadow",t[10].boxShadow||""),H(p,"class",f=Uo.slider__thumb),lt(p,"border-radius",$e(t[7].borderRadius)),lt(p,"background",t[7].background),lt(p,"box-shadow",t[7].boxShadow||""),H(v,"type","range"),H(v,"class",y=t[18]?"".concat(Uo.slider__input," ").concat(Uo.slider__input_secondary):Uo.slider__input),H(v,"min",t[5]),H(v,"max",t[6]),H(v,"step","1"),v.value=$=t[18]?t[15]:t[14],H(v,"aria-label",t[21]),H(n,"class",_=Uo["slider__tracks-inner"]),H(e,"class",w=Uo["slider__tracks-wrapper"])},m(i,s){T(i,e,s),N(e,n),N(n,r),N(n,o),N(n,a),N(n,u);for(let t=0;t<A.length;t+=1)A[t]&&A[t].m(n,null);N(n,d);for(let t=0;t<V.length;t+=1)V[t]&&V[t].m(n,null);N(n,h),N(n,p),D&&D.m(p,null),N(n,g),j&&j.m(n,null),N(n,m),N(n,v),t[71](v),N(n,b),P&&P.m(n,null),t[73](n),x||(k=[W(v,"input",t[70]),W(v,"focus",(function(){l(t[78])&&t[78].apply(this,arguments)})),W(v,"blur",(function(){l(t[79])&&t[79].apply(this,arguments)}))],x=!0)},p(e,i){if(t=e,512&i[0]&&lt(r,"height",$e(t[9].height)),512&i[0]&&lt(r,"border-radius",$e(t[9].borderRadius)),512&i[0]&&lt(r,"background",t[9].background),512&i[0]&&lt(r,"box-shadow",t[9].boxShadow||""),134217728&i[0]&&lt(a,"left",(100*t[27]).toFixed(2)+"%"),268435456&i[0]&&lt(a,"width",(100*t[28]).toFixed(2)+"%"),1024&i[0]&&lt(a,"height",$e(t[10].height)),1024&i[0]&&lt(a,"border-radius",$e(t[10].borderRadius)),1024&i[0]&&lt(a,"background",t[10].background),1024&i[0]&&lt(a,"box-shadow",t[10].boxShadow||""),524288&i[0]){let e;for(E=Kt(t[19]),e=0;e<E.length;e+=1){const r=oa(t,E,e);A[e]?A[e].p(r,i):(A[e]=sa(r),A[e].c(),A[e].m(n,d))}for(;e<A.length;e+=1)A[e].d(1);A.length=E.length}if(1048576&i[0]){let e;for(C=Kt(t[20]),e=0;e<C.length;e+=1){const r=ia(t,C,e);V[e]?V[e].p(r,i):(V[e]=la(r),V[e].c(),V[e].m(n,h))}for(;e<V.length;e+=1)V[e].d(1);V.length=C.length}t[11]?D?D.p(t,i):(D=ca(t),D.c(),D.m(p,null)):D&&(D.d(1),D=null),128&i[0]&&lt(p,"border-radius",$e(t[7].borderRadius)),128&i[0]&&lt(p,"background",t[7].background),128&i[0]&&lt(p,"box-shadow",t[7].boxShadow||""),t[16]?j?j.p(t,i):(j=ua(t),j.c(),j.m(n,m)):j&&(j.d(1),j=null),262144&i[0]&&y!==(y=t[18]?"".concat(Uo.slider__input," ").concat(Uo.slider__input_secondary):Uo.slider__input)&&H(v,"class",y),32&i[0]&&H(v,"min",t[5]),64&i[0]&&H(v,"max",t[6]),311296&i[0]&&$!==($=t[18]?t[15]:t[14])&&(v.value=$),2097152&i[0]&&H(v,"aria-label",t[21]),t[16]?P?P.p(t,i):(P=ha(t),P.c(),P.m(n,null)):P&&(P.d(1),P=null)},d(n){n&&M(e),z(A,n),z(V,n),D&&D.d(),j&&j.d(),t[71](null),P&&P.d(),t[73](null),x=!1,s(k)}}}function fa(t){let e,n,r,i,o=!t[13]&&aa(t);return{c(){o&&o.c(),e=U()},l(t){o&&o.l(t),e=U()},m(a,s){o&&o.m(a,s),T(a,e,s),n=!0,r||(i=W(window,"resize",t[43]),r=!0)},p(t,n){t[13]?o&&(Lt(),Ht(o,1,1,(()=>{o=null})),Ut()):o?(o.p(t,n),8192&n[0]&&Wt(o,1)):(o=aa(t),o.c(),Wt(o,1),o.m(e.parentNode,e))},i(t){n||(Wt(o),n=!0)},o(t){Ht(o),n=!1},d(t){t&&M(e),o&&o.d(t),r=!1,i()}}}const ga={width:10,height:10,borderRadius:5,background:"#000"},ma=["rounded_rectangle","circle"],va=["rounded_rectangle"];function ya(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 $a(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I,N,O,T,M,z,B,J,R,L=n,U=n,W=n,H=n,q=n,G=n,K=n,Y=n,X=n,Z=n,Q=n,tt=n,et=n,nt=n;var rt,it,ot,at;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())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt()));let{json:st={}}=e,{templateContext:lt}=e,{origJson:ct}=e,{layoutParams:ut}=e;const dt=xt(fe),ht=xt(tn);let pt,ft,gt,mt,vt,yt,$t=!1,wt=0,kt=100,Et=ga,Ct=Et,Vt=ga,Dt=ga,jt=null,Pt=null,Ft=yt,St="",It="",Nt=!1,Ot=Ho(B||0,wt,kt),Tt=Ho(z||0,wt,kt);function Mt(t,e){const n=Number(t.target.value);$t===("first"===e)?(r(15,Tt=n),s.setValue(n)):(r(14,Ot=n),a.setValue(n))}let zt=!1;function Bt(){if(!gt)return;const t=kt-wt,e=(null==jt?void 0:jt.width)||0,n=(null==Pt?void 0:Pt.width)||0;Math.max(e,n)*t>=(null==gt?void 0:gt.clientWidth)?zt||(dt.logError(ge(new Error("Slider ticks overlap each other"),{level:"warn"})),zt=!0):zt=!1}const Jt=oi(Bt,50);return bt((()=>{Bt()})),_t((()=>{pt&&(dt.unregisterFocusable(pt),r(48,pt=void 0))})),t.$$set=t=>{"json"in t&&r(0,st=t.json),"templateContext"in t&&r(1,lt=t.templateContext),"origJson"in t&&r(2,ct=t.origJson),"layoutParams"in t&&r(3,ut=t.layoutParams)},t.$$.update=()=>{if(129&t.$$.dirty[0]&&st&&(r(7,Et=ga),r(8,Ct=Et),r(9,Vt=ga),r(10,Dt=ga),r(49,jt=null),r(50,Pt=null),r(11,yt=void 0),r(12,Ft=void 0),r(21,St=""),r(22,It="")),1&t.$$.dirty[0]&&r(55,i=st.thumb_value_variable),1&t.$$.dirty[0]&&r(16,o=st.thumb_secondary_value_variable),16777216&t.$$.dirty[1]&&(r(23,a=i&&dt.getVariable(i,"integer")||ra("temp","integer",0)),tt(),tt=h(a,(t=>r(67,B=t)))),65536&t.$$.dirty[0]&&(r(24,s=o&&dt.getVariable(o,"integer")||ra("temp","integer",0)),Q(),Q=h(s,(t=>r(66,z=t)))),1&t.$$.dirty[0]&&(r(40,l=dt.getDerivedFromVars(st.min_value)),nt(),nt=h(l,(t=>r(69,R=t)))),1&t.$$.dirty[0]&&(r(39,c=dt.getDerivedFromVars(st.max_value)),et(),et=h(c,(t=>r(68,J=t)))),1&t.$$.dirty[0]&&(r(38,u=dt.getDerivedFromVars(st.thumb_style)),Z(),Z=h(u,(t=>r(65,M=t)))),1&t.$$.dirty[0]&&(r(37,d=dt.getDerivedFromVars(st.thumb_secondary_style)),X(),X=h(d,(t=>r(64,T=t)))),1&t.$$.dirty[0]&&(r(36,p=dt.getDerivedFromVars(st.track_inactive_style)),Y(),Y=h(p,(t=>r(63,O=t)))),1&t.$$.dirty[0]&&(r(35,f=dt.getDerivedFromVars(st.track_active_style)),K(),K=h(f,(t=>r(62,N=t)))),1&t.$$.dirty[0]&&(r(34,g=dt.getDerivedFromVars(st.tick_mark_active_style)),G(),G=h(g,(t=>r(61,I=t)))),1&t.$$.dirty[0]&&(r(33,m=dt.getDerivedFromVars(st.tick_mark_inactive_style)),q(),q=h(m,(t=>r(60,S=t)))),1&t.$$.dirty[0]&&(r(32,v=dt.getDerivedFromVars(st.thumb_text_style)),H(),H=h(v,(t=>r(59,F=t)))),1&t.$$.dirty[0]&&(r(31,y=dt.getDerivedFromVars(st.thumb_secondary_text_style)),W(),W=h(y,(t=>r(58,P=t)))),1&t.$$.dirty[0]&&(r(30,$=dt.getDerivedFromVars(st.accessibility)),U(),U=h($,(t=>r(57,j=t)))),1&t.$$.dirty[0]&&(r(29,b=dt.getDerivedFromVars(st.secondary_value_accessibility)),L(),L=h(b,(t=>r(56,D=t)))),96&t.$$.dirty[0]|192&t.$$.dirty[2]&&(r(5,wt=Ke(R,wt)),r(6,kt=Ke(J,kt)),Bt()),16480&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=Ho(B||0,wt,kt);t!==Ot&&r(14,Ot=t)}if(32864&t.$$.dirty[0]|16&t.$$.dirty[2]){const t=Ho(z||0,wt,kt);t!==Tt&&r(15,Tt=t)}if(128&t.$$.dirty[0]|8&t.$$.dirty[2]&&r(7,Et=ar(M,ma,Et)),128&t.$$.dirty[0]|4&t.$$.dirty[2]&&r(8,Ct=ar(T,ma,Et)),512&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(9,Vt=ar(O,va,Vt)),1024&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(10,Dt=ar(N,va,Dt)),1073741824&t.$$.dirty[1]){let t=ar(I,ma,ga);t!==ga&&r(49,jt=t)}if(114784&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(jt?(r(19,mt=o?ya(Math.min(Ot,Tt),Math.max(Ot,Tt)+1,wt,kt,!0):ya(wt,Ot,wt,kt,!0)),Bt()):r(19,mt=[])),536870912&t.$$.dirty[1]){let t=ar(S,ma,ga);t!==ga&&r(50,Pt=t)}if(114784&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(Pt?(r(20,vt=o?ya(Math.min(Ot,Tt),Math.max(Ot,Tt)+1,wt,kt,!1):ya(Ot+1,kt+1,wt,kt,!0)),Bt()):r(20,vt=[])),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,yt=Wo(F,yt)),2048&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&r(12,Ft=Wo(P,yt)),67108864&t.$$.dirty[1]&&((null==j?void 0:j.description)?r(21,St=j.description):dt.logError(ge(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),65536&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&((null==D?void 0:D.description)?r(22,It=D.description):o&&dt.logError(ge(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),9856&t.$$.dirty[0]){let t=!1;ht.hasAction()?(dt.logError(ge(new Error('Cannot show "slider" inside component with action'))),t=!0):Et===ga?(dt.logError(ge(new Error('Missing "thumb_style" in slider'))),t=!0):Dt===ga?(dt.logError(ge(new Error('Missing "track_active_style" in slider'))),t=!0):Vt===ga&&(dt.logError(ge(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Nt&&r(13,Nt=t)}384&t.$$.dirty[0]&&r(54,_=$e(Math.max(...[Et.width,Ct.width,0].filter(Re)))),384&t.$$.dirty[0]&&r(53,w=$e(Math.max(...[Et.height,Ct.height,0].filter(Re)))),16480&t.$$.dirty[0]&&r(52,x=(Ot-wt)/(kt-wt)),98400&t.$$.dirty[0]&&r(51,k=o?(Tt-wt)/(kt-wt):void 0),3145728&t.$$.dirty[1]&&r(28,E=void 0!==k?Math.abs(k-x):x),3145728&t.$$.dirty[1]&&r(27,A=void 0!==k?Math.min(k,x):0),6528&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&r(26,C={"--divkit-slider-thumb-width":$e(Et.width),"--divkit-slider-thumb-height":$e(Et.height),"--divkit-slider-thumb-secondary-width":$e(Ct.width),"--divkit-slider-thumb-secondary-height":$e(Ct.height),"--divkit-slider-text-offset-x":(null===r(44,rt=null==yt?void 0:yt.offset)||void 0===rt?void 0:rt.x)?be(yt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(45,it=null==yt?void 0:yt.offset)||void 0===it?void 0:it.y)?be(yt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(46,ot=null==Ft?void 0:Ft.offset)||void 0===ot?void 0:ot.x)?be(Ft.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(47,at=null==Ft?void 0:Ft.offset)||void 0===at?void 0:at.y)?be(Ft.offset.y):void 0,"--divkit-slider-tick-active-width":jt?$e(jt.width):void 0,"--divkit-slider-tick-active-height":jt?$e(jt.height):void 0,"--divkit-slider-tick-active-border-radius":jt?$e(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":Pt?$e(Pt.width):void 0,"--divkit-slider-tick-inactive-height":Pt?$e(Pt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Pt?$e(Pt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Pt?void 0:Pt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Pt?void 0:Pt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":_,"--divkit-slider-max-thumb-height":w,"--divkit-slider-track-part":x,"--divkit-slider-track-secondary-part":k}),25&t.$$.dirty[0]|131072&t.$$.dirty[1]&&st&&ft&&(pt&&(dt.unregisterFocusable(pt),r(48,pt=void 0)),st.id&&!(null==ut?void 0:ut.fakeElement)&&(r(48,pt=st.id),dt.registerFocusable(st.id,{focus(){ft&&ft.focus()}})))},r(25,V={}),[st,lt,ct,ut,ft,wt,kt,Et,Ct,Vt,Dt,yt,Ft,Nt,Ot,Tt,o,gt,$t,mt,vt,St,It,a,s,V,C,A,E,b,$,y,v,m,g,f,p,d,u,c,l,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=gt.getBoundingClientRect(),a=(i-o.left)/o.width,s=(kt-wt)*a,l=Math.round(Ho(s,wt,kt));r(18,$t=l<(Ot+Tt)/2==Ot<Tt)},Mt,Jt,rt,it,ot,at,pt,jt,Pt,k,x,w,_,i,D,j,P,F,S,I,N,O,T,M,z,B,J,R,t=>Mt(t,"first"),function(t){At[t?"unshift":"push"]((()=>{ft=t,r(4,ft)}))},t=>Mt(t,"second"),function(t){At[t?"unshift":"push"]((()=>{gt=t,r(17,gt)}))}]}const ba={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 _a(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=_a(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 wa(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 xa{constructor(t){this.char=t}}class ka{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class Ea{constructor(t){wa(this,"filters",new Map),wa(this,"destructedValue",[]),wa(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 xa)t+=n.char;else if(n instanceof ka)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 ka&&!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(ge(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 ka(null,this.filters.get(e.key),e.placeholder):new xa(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=_a(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=i?this.calculateMaxShift(i,o):void 0;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 ka&&++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 ka&&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 ka&&(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 ka);)++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 ka&&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 ka&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof ka);)++e;return e}}class Aa extends Ea{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function Ca(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 Va extends Ea{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}),Ca(this,"currencyFormatter",new Intl.NumberFormat),Ca(this,"decimalSeparator","."),Ca(this,"localeDigits",{}),Ca(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(ge(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=_a(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 Da=3;function ja(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 Pa(t,e){if(t.nodeType!==Da)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=ja(r);if(e<=i)return void Pa(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 Fa(t){let e,n;return e=new Dn({props:{cls:Me("input",ba,t[17]),style:t[16],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Oa,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{88:e,89:n,90:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?67108864:0)|(n?134217728:0)|(r?268435456:0)]}]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};131072&n[0]&&(r.cls=Me("input",ba,t[17])),65536&n[0]&&(r.style=t[16]),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]),315120&n[0]|32&n[1]|1006632960&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Sa(t){let e,n,r,i,o;return{c(){e=B("input"),this.h()},l(t){e=et(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){H(e,"type",t[9]),H(e,"inputmode",t[10]),H(e,"class",n=Me("input__input",ba,{"has-custom-focus":t[90],singleline:!0})),H(e,"autocomplete","off"),H(e,"autocapitalize","off"),H(e,"aria-label",t[11]),H(e,"style",r=ye(t[15])),H(e,"placeholder",t[18]),e.value=t[5]},m(n,r){T(n,e,r),t[80](e),i||(o=[W(e,"input",t[37]),W(e,"mousedown",(function(){l(t[36]?t[38]:void 0)&&(t[36]?t[38]:void 0).apply(this,arguments)})),W(e,"click",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),W(e,"focus",(function(){l(t[88])&&t[88].apply(this,arguments)})),W(e,"blur",(function(){l(t[89])&&t[89].apply(this,arguments)}))],i=!0)},p(i,o){t=i,512&o[0]&&H(e,"type",t[9]),1024&o[0]&&H(e,"inputmode",t[10]),268435456&o[2]&&n!==(n=Me("input__input",ba,{"has-custom-focus":t[90],singleline:!0}))&&H(e,"class",n),2048&o[0]&&H(e,"aria-label",t[11]),32768&o[0]&&r!==(r=ye(t[15]))&&H(e,"style",r),262144&o[0]&&H(e,"placeholder",t[18]),32&o[0]&&e.value!==t[5]&&(e.value=t[5])},d(n){n&&M(e),t[80](null),i=!1,s(o)}}}function Ia(t){let e,n,r,i,o,a,c,u,d,h,p,f,g=!t[7]&&t[18]&&Na(t);return{c(){e=B("span"),g&&g.c(),n=L(),r=B("span"),i=R("​"),a=L(),c=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var o=X(e);g&&g.l(o),n=it(o),r=et(o,"SPAN",{"aria-hidden":!0,style:!0});var s=X(r);i=rt(s,"​"),s.forEach(M),a=it(o),c=et(o,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),X(c).forEach(M),o.forEach(M),this.h()},h(){H(r,"aria-hidden","true"),H(r,"style",o=ye(t[14])),H(c,"class",u=Me("input__input",ba,{"has-custom-focus":t[90],multiline:!0})),H(c,"autocapitalize","off"),H(c,"contenteditable","true"),H(c,"aria-label",t[11]),H(c,"style",d=ye(t[15])),void 0===t[7]&&St((()=>t[79].call(c))),H(e,"class",h=ba["input__scroll-wrapper"])},m(o,s){T(o,e,s),g&&g.m(e,null),N(e,n),N(e,r),N(r,i),N(e,a),N(e,c),t[78](c),void 0!==t[7]&&(c.innerText=t[7]),p||(f=[W(c,"input",t[79]),W(c,"input",t[37]),W(c,"paste",Ba),W(c,"mousedown",(function(){l(t[36]?t[38]:void 0)&&(t[36]?t[38]:void 0).apply(this,arguments)})),W(c,"click",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),W(c,"focus",(function(){l(t[88])&&t[88].apply(this,arguments)})),W(c,"blur",(function(){l(t[89])&&t[89].apply(this,arguments)}))],p=!0)},p(i,a){!(t=i)[7]&&t[18]?g?g.p(t,a):(g=Na(t),g.c(),g.m(e,n)):g&&(g.d(1),g=null),16384&a[0]&&o!==(o=ye(t[14]))&&H(r,"style",o),268435456&a[2]&&u!==(u=Me("input__input",ba,{"has-custom-focus":t[90],multiline:!0}))&&H(c,"class",u),2048&a[0]&&H(c,"aria-label",t[11]),32768&a[0]&&d!==(d=ye(t[15]))&&H(c,"style",d),128&a[0]&&t[7]!==c.innerText&&(c.innerText=t[7])},d(n){n&&M(e),g&&g.d(),t[78](null),p=!1,s(f)}}}function Na(t){let e,n,r,i;return{c(){e=B("div"),n=R(t[18]),this.h()},l(r){e=et(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var i=X(e);n=rt(i,t[18]),i.forEach(M),this.h()},h(){H(e,"class",r=ba.input__placeholder),H(e,"aria-hidden","true"),H(e,"style",i=ye(t[15]))},m(t,r){T(t,e,r),N(e,n)},p(t,r){262144&r[0]&&at(n,t[18]),32768&r[0]&&i!==(i=ye(t[15]))&&H(e,"style",i)},d(t){t&&M(e)}}}function Oa(t){let e;function n(t,e){return t[6]?Ia:Sa}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(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&&M(e),i.d(t)}}}function Ta(t){let e,n,r=!t[8]&&Fa(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[8]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),256&n[0]&&Wt(r,1)):(r=Fa(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const Ma="undefined"!=typeof document&&"inputMode"in document.createElement("input"),za={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};function Ba(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Ja(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I,N,O,T,M,z,B,J,R,L,U,W,H,q,G,K,Y,X,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,ht=n,pt=n,ft=n,gt=n,mt=n;var vt;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((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt()));let{json:yt={}}=e,{templateContext:$t}=e,{origJson:wt}=e,{layoutParams:kt}=e;const Et=xt(fe);let Ct,Vt,Dt,jt,Pt,St=!1,It=null,Nt="",Ot="",Tt=!1,Mt="",zt=12,Bt="",Jt="",Rt="#000",Lt="",Ut="left",Wt="center",Ht="multi_line_text",qt="text",Gt="",Kt=null,Yt="",Xt="",Zt="";function Qt(t){Vt instanceof HTMLInputElement?r(4,Vt.selectionStart=r(4,Vt.selectionEnd=t,Vt),Vt):Pa(Vt,t)}async function te(){if(!Vt||!It)return;It.overrideRawValue(I),s.set(It.rawValue),$(a,S=r(5,Nt=r(7,Ot=It.value)),S);const t=It.cursorPosition;await Ft(),document.activeElement===Vt&&Qt(t)}return bt((()=>{Vt&&It&&I&&(It.overrideRawValue(I),$(a,S=r(5,Nt=r(7,Ot=It.value)),S))})),_t((()=>{Ct&&(Et.unregisterFocusable(Ct),r(41,Ct=void 0))})),t.$$set=t=>{"json"in t&&r(0,yt=t.json),"templateContext"in t&&r(1,$t=t.templateContext),"origJson"in t&&r(2,wt=t.origJson),"layoutParams"in t&&r(3,kt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&yt&&(r(43,Mt=""),r(44,zt=12),r(45,Dt=void 0),r(46,Bt=""),r(47,jt=void 0),r(49,Rt="#000"),r(50,Lt=""),r(51,Ut="left"),r(52,Wt="center"),r(53,Ht="multi_line_text"),r(9,qt="text"),r(10,Pt=void 0)),1&t.$$.dirty[0]&&r(58,i=yt.text_variable),1&t.$$.dirty[0]|512&t.$$.dirty[1]&&r(59,o=null===r(40,vt=yt.mask)||void 0===vt?void 0:vt.raw_text_variable),134217728&t.$$.dirty[1]&&(r(13,a=i&&Et.getVariable(i,"string")||ra("temp","string","")),Z(),Z=h(a,(t=>r(60,S=t)))),268435456&t.$$.dirty[1]&&(r(12,s=o&&Et.getVariable(o,"string")||ra("temp","string","")),Q(),Q=h(s,(t=>r(61,I=t)))),1&t.$$.dirty[0]&&(r(35,l=Et.getDerivedFromVars(yt.hint_text)),gt(),gt=h(l,(t=>r(77,Y=t)))),1&t.$$.dirty[0]&&(r(34,c=Et.getDerivedFromVars(yt.hint_color)),ft(),ft=h(c,(t=>r(76,K=t)))),1&t.$$.dirty[0]&&(r(33,u=Et.getDerivedFromVars(yt.font_size)),pt(),pt=h(u,(t=>r(75,G=t)))),1&t.$$.dirty[0]&&(r(32,d=Et.getDerivedFromVars(yt.font_weight)),ht(),ht=h(d,(t=>r(74,q=t)))),1&t.$$.dirty[0]&&(r(31,p=Et.getDerivedFromVars(yt.font_family)),dt(),dt=h(p,(t=>r(73,H=t)))),1&t.$$.dirty[0]&&(r(30,f=Et.getDerivedFromVars(yt.line_height)),ut(),ut=h(f,(t=>r(72,W=t)))),1&t.$$.dirty[0]&&(r(29,g=Et.getDerivedFromVars(yt.letter_spacing)),ct(),ct=h(g,(t=>r(71,U=t)))),1&t.$$.dirty[0]&&(r(28,m=Et.getDerivedFromVars(yt.text_color)),lt(),lt=h(m,(t=>r(70,L=t)))),1&t.$$.dirty[0]&&(r(27,v=Et.getDerivedFromVars(yt.highlight_color)),st(),st=h(v,(t=>r(69,R=t)))),1&t.$$.dirty[0]&&(r(26,y=Et.getDerivedFromVars(yt.text_alignment_horizontal)),at(),at=h(y,(t=>r(68,J=t)))),1&t.$$.dirty[0]&&(r(25,b=Et.getDerivedFromVars(yt.text_alignment_vertical)),ot(),ot=h(b,(t=>r(67,B=t)))),1&t.$$.dirty[0]&&(r(24,_=Et.getDerivedFromVars(yt.keyboard_type)),it(),it=h(_,(t=>r(66,z=t)))),1&t.$$.dirty[0]&&(r(23,w=Et.getDerivedFromVars(yt.mask)),rt(),rt=h(w,(t=>r(65,M=t)))),1&t.$$.dirty[0]&&(r(22,x=Et.getDerivedFromVars(yt.max_visible_lines)),nt(),nt=h(x,(t=>r(64,T=t)))),1&t.$$.dirty[0]&&(r(21,k=Et.getDerivedFromVars(yt.paddings)),et(),et=h(k,(t=>r(63,O=t)))),1&t.$$.dirty[0]&&(r(20,E=Et.getDerivedFromVars(yt.accessibility)),tt(),tt=h(E,(t=>r(62,N=t)))),1&t.$$.dirty[0]&&(r(19,A=Et.getDerivedFromVars(yt.select_all_on_focus)),mt(),mt=h(A,(t=>r(36,X=t)))),134217728&t.$$.dirty[1]&&(i?r(8,Tt=!1):(r(8,Tt=!0),Et.logError(ge(new Error('Missing "text_variable" in "input"'))))),8&t.$$.dirty[2]&&("fixed_length"===(null==(e=M)?void 0:e.type)?r(42,It=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new Aa(r,e)}return n||null}(e,Et.logError,It)):"currency"===(null==e?void 0:e.type)&&r(42,It=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new Va(t.locale,e)}(e,Et.logError,It)),It&&te()),32&t.$$.dirty[0]|536872960&t.$$.dirty[1]&&(It||Nt===S||r(5,Nt=r(7,Ot=S))),1073743872&t.$$.dirty[1]&&It&&It.rawValue!==I&&te(),32768&t.$$.dirty[2]&&r(18,C=Y),4096&t.$$.dirty[1]|16384&t.$$.dirty[2]&&r(43,Mt=we(K,1,Mt)),8192&t.$$.dirty[1]|8192&t.$$.dirty[2]&&r(44,zt=Pn(G,zt)),16384&t.$$.dirty[1]|6144&t.$$.dirty[2]&&(r(45,Dt=Sn(q,Dt)),r(46,Bt=H&&"string"==typeof H?Et.typefaceProvider(H,{fontWeight:Dt||400}):"")),8192&t.$$.dirty[1]|1024&t.$$.dirty[2]){const t=W;cn(t)&&r(47,jt=t/zt)}var e;512&t.$$.dirty[2]&&Je(U)&&r(48,Jt=$e(U)),262144&t.$$.dirty[1]|256&t.$$.dirty[2]&&r(49,Rt=we(L,1,Rt)),524288&t.$$.dirty[1]|128&t.$$.dirty[2]&&r(50,Lt=we(R,1,Lt)),1048576&t.$$.dirty[1]|64&t.$$.dirty[2]&&r(51,Ut=zn(J,Ut)),2097152&t.$$.dirty[1]|32&t.$$.dirty[2]&&r(52,Wt=Bn(B,Wt)),24&t.$$.dirty[2]&&(z&&z in za&&(r(9,qt=za[z]),r(53,Ht=z)),"currency"===(null==M?void 0:M.type)&&(r(9,qt=Ma?"text":"tel"),r(10,Pt="decimal"))),4194304&t.$$.dirty[1]&&r(6,V="multi_line_text"===Ht),16850944&t.$$.dirty[1]|6&t.$$.dirty[2]&&(cn(T)?r(54,Gt="calc(".concat(T*(jt||1.25)*(zt/10)+"em"," + ").concat(be(Ue(null==O?void 0:O.top,0)+Ue(null==O?void 0:O.bottom,0)),")")):r(54,Gt=""),r(55,Kt=Xe(O||void 0,Kt)),r(56,Yt=Kt?Be({top:(Number(Kt.top)||0)/zt*10,right:(Number(Kt.right)||0)/zt*10,bottom:(Number(Kt.bottom)||0)/zt*10,left:(Number(Kt.left)||0)/zt*10}):""),r(57,Xt=Kt?Be({top:(Number(Kt.top)||0)/zt*10,bottom:(Number(Kt.bottom)||0)/zt*10}):"")),1&t.$$.dirty[2]&&((null==N?void 0:N.description)?r(11,Zt=N.description):Et.logError(ge(new Error('Missing accessibility "description" for input'),{level:"warn"}))),64&t.$$.dirty[0]|3670016&t.$$.dirty[1]&&r(17,D={"highlight-color":Boolean(Lt),multiline:V,"alignment-horizontal":Ut,"alignment-vertical":Wt}),9424896&t.$$.dirty[1]&&r(16,j={"--divkit-input-hint-color":Mt,"--divkit-input-highlight-color":Lt,"--divkit-input-line-height":jt,"font-weight":Dt,"font-family":Bt,"letter-spacing":Jt,color:Rt,"max-height":Gt}),33562624&t.$$.dirty[1]&&r(15,P={"font-size":$e(zt),padding:Yt}),67117056&t.$$.dirty[1]&&r(14,F={"font-size":$e(zt),padding:Xt}),25&t.$$.dirty[0]|1024&t.$$.dirty[1]&&Vt&&yt&&(Ct&&(Et.unregisterFocusable(Ct),r(41,Ct=void 0)),yt.id&&!(null==kt?void 0:kt.fakeElement)&&(r(41,Ct=yt.id),Et.registerFocusable(yt.id,{focus(){Vt&&Vt.focus()}})))},[yt,$t,wt,kt,Vt,Nt,V,Ot,Tt,qt,Pt,Zt,s,a,F,P,j,D,C,A,E,k,x,w,_,b,y,v,m,g,f,p,d,u,c,l,X,function(t){let e=(V?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Nt!==e&&(r(5,Nt=r(7,Ot=e)),a.setValue(e),It&&async function(){if(!Vt||!It)return;It.applyChangeFrom(Nt,Vt instanceof HTMLInputElement?null===Vt.selectionEnd?void 0:Vt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const 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+=ja(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+=ja(t.childNodes[e]);o instanceof HTMLElement&&("DIV"===o.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===Da||"BR"===o.tagName)&&++n,o=t}return n}catch(t){return 0}}(Vt)),s.set(It.rawValue),$(a,S=r(5,Nt=r(7,Ot=It.value)),S);const t=It.cursorPosition;await Ft(),document.activeElement===Vt&&Qt(t)}())},function(){St=!1,setTimeout((()=>{St=!0}),250)},function(){if(!St)if(Vt instanceof HTMLInputElement)Vt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(Vt),t&&(t.removeAllRanges(),t.addRange(e))}},vt,Ct,It,Mt,zt,Dt,Bt,jt,Jt,Rt,Lt,Ut,Wt,Ht,Gt,Kt,Yt,Xt,i,o,S,I,N,O,T,M,z,B,J,R,L,U,W,H,q,G,K,Y,function(t){At[t?"unshift":"push"]((()=>{Vt=t,r(4,Vt)}))},function(){Ot=this.innerText,r(7,Ot),r(42,It),r(5,Nt),r(60,S)},function(t){At[t?"unshift":"push"]((()=>{Vt=t,r(4,Vt)}))}]}const Ra={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 La(t,e,n){const r=t.slice();return r[53]=e[n],r}function Ua(t){let e,n;return e=new Dn({props:{cls:Me("select",Ra,t[13]),style:t[12],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ha,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{50:e,51:n,52:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?524288:0)|(n?1048576:0)|(r?2097152:0)]}]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Me("select",Ra,t[13])),4096&n[0]&&(r.style=t[12]),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]),33558256&n[0]|37224448&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Wa(t){let e,n,r,i,o=(t[53].text||t[53].value)+"";return{c(){e=B("option"),n=R(o),this.h()},l(t){e=et(t,"OPTION",{class:!0});var r=X(e);n=rt(r,o),r.forEach(M),this.h()},h(){H(e,"class",r=Ra.select__option),e.__value=i=t[53].value,st(e,e.__value)},m(t,r){T(t,e,r),N(e,n)},p(t,r){64&r[0]&&o!==(o=(t[53].text||t[53].value)+"")&&at(n,o),64&r[0]&&i!==(i=t[53].value)&&(e.__value=i,st(e,e.__value))},d(t){t&&M(e)}}}function Ha(t){let e,n,r,i,o,a,c,u,d,h,p=(t[5]||t[25]||"​")+"",f=Kt(t[6]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Wa(La(t,f,e));return{c(){e=B("span"),n=R(p),o=L(),a=B("select");for(let t=0;t<g.length;t+=1)g[t].c();this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=X(e);n=rt(r,p),r.forEach(M),o=it(t),a=et(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var i=X(a);for(let t=0;t<g.length;t+=1)g[t].l(i);i.forEach(M),this.h()},h(){H(e,"class",r=Ra["select__select-text"]),H(e,"style",i=ye(t[11])),H(e,"aria-hidden","true"),H(a,"class",c=Me("select__select",Ra,{"has-custom-focus":t[50]})),H(a,"aria-label",t[9]),H(a,"style",u=ye(t[10])),void 0===t[7]&&St((()=>t[48].call(a)))},m(r,i){T(r,e,i),N(e,n),T(r,o,i),T(r,a,i);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);t[47](a),ct(a,t[7],!0),d||(h=[W(a,"change",t[48]),W(a,"focus",(function(){l(t[51])&&t[51].apply(this,arguments)})),W(a,"blur",(function(){l(t[52])&&t[52].apply(this,arguments)}))],d=!0)},p(r,o){if(t=r,33554464&o[0]&&p!==(p=(t[5]||t[25]||"​")+"")&&at(n,p),2048&o[0]&&i!==(i=ye(t[11]))&&H(e,"style",i),64&o[0]){let e;for(f=Kt(t[6]),e=0;e<f.length;e+=1){const n=La(t,f,e);g[e]?g[e].p(n,o):(g[e]=Wa(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}524288&o[1]&&c!==(c=Me("select__select",Ra,{"has-custom-focus":t[50]}))&&H(a,"class",c),512&o[0]&&H(a,"aria-label",t[9]),1024&o[0]&&u!==(u=ye(t[10]))&&H(a,"style",u),192&o[0]&&ct(a,t[7])},d(n){n&&(M(e),M(o),M(a)),z(g,n),t[47](null),d=!1,s(h)}}}function qa(t){let e,n,r=!t[8]&&Ua(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[8]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),256&n[0]&&Wt(r,1)):(r=Ua(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Ga(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,j,P,F,S,I=n,N=n,O=n,T=n,M=n,z=n,B=n,J=n,R=n,L=n,U=n;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U()));let{json:W={}}=e,{templateContext:H}=e,{origJson:q}=e,{layoutParams:G}=e;const K=xt(fe);let Y,X,Z,Q,tt=!1,et="",nt=null,rt="",it="rgba(0,0,0,.45)",ot=12,at="",st="",lt="#000",ct="";return _t((()=>{Y&&(K.unregisterFocusable(Y),r(26,Y=void 0))})),t.$$set=t=>{"json"in t&&r(0,W=t.json),"templateContext"in t&&r(1,H=t.templateContext),"origJson"in t&&r(2,q=t.origJson),"layoutParams"in t&&r(3,G=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&W&&(r(27,nt=null),r(29,it="rgba(0,0,0,.45)"),r(30,ot=12),r(31,Z=void 0),r(32,at=""),r(33,Q=void 0),r(34,st=""),r(35,lt="#000"),r(9,ct="")),1&t.$$.dirty[0]&&r(36,i=W.value_variable),1&t.$$.dirty[0]&&r(37,o=W.options),64&t.$$.dirty[1]&&r(6,a=Array.isArray(o)&&o.filter((t=>"string"==typeof t.value))||[]),32&t.$$.dirty[1]&&(r(24,s=i&&K.getVariable(i,"string")||ra("temp","string","")),L(),L=h(s,(t=>r(7,F=t)))),1&t.$$.dirty[0]&&(r(23,l=K.getDerivedFromVars(W.paddings)),R(),R=h(l,(t=>r(46,P=t)))),1&t.$$.dirty[0]&&(r(22,c=K.getDerivedFromVars(W.hint_text)),U(),U=h(c,(t=>r(25,S=t)))),1&t.$$.dirty[0]&&(r(21,u=K.getDerivedFromVars(W.hint_color)),J(),J=h(u,(t=>r(45,j=t)))),1&t.$$.dirty[0]&&(r(20,d=K.getDerivedFromVars(W.font_size)),B(),B=h(d,(t=>r(44,D=t)))),1&t.$$.dirty[0]&&(r(19,p=K.getDerivedFromVars(W.font_weight)),z(),z=h(p,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(18,f=K.getDerivedFromVars(W.font_family)),M(),M=h(f,(t=>r(42,C=t)))),1&t.$$.dirty[0]&&(r(17,g=K.getDerivedFromVars(W.line_height)),T(),T=h(g,(t=>r(41,A=t)))),1&t.$$.dirty[0]&&(r(16,m=K.getDerivedFromVars(W.letter_spacing)),O(),O=h(m,(t=>r(40,E=t)))),1&t.$$.dirty[0]&&(r(15,v=K.getDerivedFromVars(W.text_color)),N(),N=h(v,(t=>r(39,k=t)))),1&t.$$.dirty[0]&&(r(14,y=K.getDerivedFromVars(W.accessibility)),I(),I=h(y,(t=>r(38,x=t)))),64&t.$$.dirty[0]&&(Array.isArray(a)&&a.length||K.logError(ge(new Error('Empty selection "items" in "select"')))),32&t.$$.dirty[1]&&(i?r(8,tt=!1):(r(8,tt=!0),K.logError(ge(new Error('Missing "value_variable" in "select"'))))),192&t.$$.dirty[0]){const t=a.find((t=>t.value===F));t?r(5,et="string"==typeof t.text?t.text:t.value):(r(5,et=""),F&&K.logError(ge(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1073741824&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(30,ot=Pn(D,ot)),1207959552&t.$$.dirty[0]|32768&t.$$.dirty[1]&&(r(27,nt=Xe(P||void 0,nt)),r(28,rt=nt?Be({top:(Number(nt.top)||0)/ot*10,right:(Number(nt.right)||0)/ot*10,bottom:(Number(nt.bottom)||0)/ot*10,left:(Number(nt.left)||0)/ot*10}):"")),536870912&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(29,it=we(j,1,it)),6145&t.$$.dirty[1]&&(r(31,Z=Sn(V,Z)),r(32,at=C&&"string"==typeof C?K.typefaceProvider(C,{fontWeight:Z||400}):"")),1073741824&t.$$.dirty[0]|1024&t.$$.dirty[1]){const t=A;cn(t)&&r(33,Q=t/ot)}1073741824&t.$$.dirty[0]|512&t.$$.dirty[1]&&Je(E)&&r(34,st=$e(E/ot*10)),272&t.$$.dirty[1]&&r(35,lt=we(k,1,lt)),128&t.$$.dirty[1]&&((null==x?void 0:x.description)?r(9,ct=x.description):K.logError(ge(new Error('Missing accessibility "description" for select'),{level:"warn"}))),32&t.$$.dirty[0]&&r(13,$={hint:!et}),536870912&t.$$.dirty[0]|19&t.$$.dirty[1]&&r(12,b={"--divkit-input-hint-color":it,"font-weight":Z,"font-family":at,color:lt}),1342177280&t.$$.dirty[0]|12&t.$$.dirty[1]&&r(11,_={padding:rt,"font-size":$e(ot),"line-height":Q,"letter-spacing":st}),1073741824&t.$$.dirty[0]|12&t.$$.dirty[1]&&r(10,w={"font-size":$e(ot),"line-height":Q,"letter-spacing":st}),67108889&t.$$.dirty[0]&&W&&X&&(Y&&(K.unregisterFocusable(Y),r(26,Y=void 0)),W.id&&!(null==G?void 0:G.fakeElement)&&(r(26,Y=W.id),K.registerFocusable(W.id,{focus(){X&&X.focus()}})))},[W,H,q,G,X,et,a,F,tt,ct,w,_,b,$,y,v,m,g,f,p,d,u,c,l,s,S,Y,nt,rt,it,ot,Z,at,Q,st,lt,i,o,x,k,E,A,C,V,D,j,P,function(t){At[t?"unshift":"push"]((()=>{X=t,r(4,X)}))},function(){F=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),s.set(F),r(6,a),r(37,o),r(0,W)}]}const Ka={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function Ya(t,e,n){const r=t.slice();return r[44]=e[n],r}function Xa(t,e,n){const r=t.slice();return r[44]=e[n],r}function Za(t){let e,n;return e=new Dn({props:{cls:Me("video",Ka,t[13]),customActions:"video",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[rs]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Me("video",Ka,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]),16352&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Qa(t){let e,n,r,i,o,a=Kt(t[6]),l=[];for(let e=0;e<a.length;e+=1)l[e]=es(Ya(t,a,e));return{c(){e=B("video");for(let t=0;t<l.length;t+=1)l[t].c();this.h()},l(t){e=et(t,"VIDEO",{class:!0,style:!0,poster:!0});var n=X(e);for(let t=0;t<l.length;t+=1)l[t].l(n);n.forEach(M),this.h()},h(){H(e,"class",n=Ka.video__video),H(e,"style",r=ye(t[12])),e.playsInline=!0,e.loop=t[7],e.autoplay=t[8],e.muted=t[9],H(e,"poster",t[10])},m(n,r){T(n,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);t[40](e),i||(o=[W(e,"timeupdate",t[21]),W(e,"ended",t[22]),W(e,"playing",t[23]),W(e,"pause",t[24]),W(e,"waiting",t[25]),W(e,"error",t[26])],i=!0)},p(t,n){if(67108928&n[0]){let r;for(a=Kt(t[6]),r=0;r<a.length;r+=1){const i=Ya(t,a,r);l[r]?l[r].p(i,n):(l[r]=es(i),l[r].c(),l[r].m(e,null))}for(;r<l.length;r+=1)l[r].d(1);l.length=a.length}4096&n[0]&&r!==(r=ye(t[12]))&&H(e,"style",r),128&n[0]&&(e.loop=t[7]),256&n[0]&&(e.autoplay=t[8]),512&n[0]&&(e.muted=t[9]),1024&n[0]&&H(e,"poster",t[10])},d(n){n&&M(e),z(l,n),t[40](null),i=!1,s(o)}}}function ts(t){let e,n,r,i,o,a,l,c="".concat(t[11],"%"),u=Kt(t[6]),d=[];for(let e=0;e<u.length;e+=1)d[e]=ns(Xa(t,u,e));return{c(){e=B("div"),n=B("video");for(let t=0;t<d.length;t+=1)d[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0});var r=X(e);n=et(r,"VIDEO",{class:!0,style:!0,poster:!0});var i=X(n);for(let t=0;t<d.length;t+=1)d[t].l(i);i.forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=Ka.video__video),H(n,"style",i=ye(t[12])),n.playsInline=!0,n.loop=t[7],n.autoplay=t[8],n.muted=t[9],H(n,"poster",t[10]),H(e,"class",o=Ka["video__aspect-wrapper"]),lt(e,"padding-bottom",c)},m(r,i){T(r,e,i),N(e,n);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(n,null);t[39](n),a||(l=[W(n,"timeupdate",t[21]),W(n,"ended",t[22]),W(n,"playing",t[23]),W(n,"pause",t[24]),W(n,"waiting",t[25]),W(n,"error",t[26])],a=!0)},p(t,r){if(67108928&r[0]){let e;for(u=Kt(t[6]),e=0;e<u.length;e+=1){const i=Xa(t,u,e);d[e]?d[e].p(i,r):(d[e]=ns(i),d[e].c(),d[e].m(n,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}4096&r[0]&&i!==(i=ye(t[12]))&&H(n,"style",i),128&r[0]&&(n.loop=t[7]),256&r[0]&&(n.autoplay=t[8]),512&r[0]&&(n.muted=t[9]),1024&r[0]&&H(n,"poster",t[10]),2048&r[0]&&c!==(c="".concat(t[11],"%"))&&lt(e,"padding-bottom",c)},d(n){n&&M(e),z(d,n),t[39](null),a=!1,s(l)}}}function es(t){let e,n,r,i,o;return{c(){e=B("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[44].src)||H(e,"src",n),H(e,"type",r=t[44].type)},m(n,r){T(n,e,r),i||(o=W(e,"error",t[26]),i=!0)},p(t,i){64&i[0]&&!u(e.src,n=t[44].src)&&H(e,"src",n),64&i[0]&&r!==(r=t[44].type)&&H(e,"type",r)},d(t){t&&M(e),i=!1,o()}}}function ns(t){let e,n,r,i,o;return{c(){e=B("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[44].src)||H(e,"src",n),H(e,"type",r=t[44].type)},m(n,r){T(n,e,r),i||(o=W(e,"error",t[26]),i=!0)},p(t,i){64&i[0]&&!u(e.src,n=t[44].src)&&H(e,"src",n),64&i[0]&&r!==(r=t[44].type)&&H(e,"type",r)},d(t){t&&M(e),i=!1,o()}}}function rs(t){let e;function n(t,e){return t[13].aspect?ts:Qa}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(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&&M(e),i.d(t)}}}function is(t){let e,n,r=!t[4]&&Za(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[4]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),16&n[0]&&Wt(r,1)):(r=Za(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function os(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x=n,k=n,E=n,A=n,C=n,V=n,D=n;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D()));let{json:j={}}=e,{templateContext:P}=e,{origJson:F}=e,{layoutParams:S}=e;const I=xt(fe);let N,O,T,M,z=!1,B=!1,J=[],R=!1,L=!1,U=!1,W="fit",H="0";function q(t){B?B=!1:O&&r(5,O.currentTime=Number(t)/1e3,O)}return _t((()=>{N&&(I.unregisterInstance(N),r(27,N=void 0)),M&&(M(),r(29,M=void 0))})),t.$$set=t=>{"json"in t&&r(0,j=t.json),"templateContext"in t&&r(1,P=t.templateContext),"origJson"in t&&r(2,F=t.origJson),"layoutParams"in t&&r(3,S=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&j&&(r(7,R=!1),r(8,L=!1),r(9,U=!1),r(10,T=void 0),r(28,W="fit")),1&t.$$.dirty[0]&&r(31,i=j.elapsed_time_variable),1&t.$$.dirty[1]&&r(30,o=i&&I.getVariable(i,"integer")||ra("temp","integer",0)),1610612736&t.$$.dirty[0]&&o&&(M&&M(),r(29,M=o.subscribe(q))),1&t.$$.dirty[0]&&(r(20,a=I.getDerivedFromVars(j.video_sources)),D(),D=h(a,(t=>r(38,w=t)))),1&t.$$.dirty[0]&&(r(19,s=I.getDerivedFromVars(j.repeatable)),V(),V=h(s,(t=>r(37,_=t)))),1&t.$$.dirty[0]&&(r(18,l=I.getDerivedFromVars(j.autostart)),C(),C=h(l,(t=>r(36,b=t)))),1&t.$$.dirty[0]&&(r(17,c=I.getDerivedFromVars(j.muted)),A(),A=h(c,(t=>r(35,$=t)))),1&t.$$.dirty[0]&&(r(16,u=I.getDerivedFromVars(j.preview)),E(),E=h(u,(t=>r(34,y=t)))),1&t.$$.dirty[0]&&(r(15,d=I.getDerivedFromVars(j.scale)),k(),k=h(d,(t=>r(33,v=t)))),1&t.$$.dirty[0]&&(r(14,p=I.getDerivedFromVars(j.aspect)),x(),x=h(p,(t=>r(32,m=t)))),64&t.$$.dirty[0]|128&t.$$.dirty[1]&&(r(6,(e=w,n=J,J=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):n)),J.length?r(4,z=!1):(r(4,z=!0),I.logError(ge(new Error('Missing "video_sources" in "video"'))))),128&t.$$.dirty[0]|64&t.$$.dirty[1]&&r(7,R=Jn(_,R)),256&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(8,L=Jn(b,L)),512&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(9,U=Jn($,U)),1024&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(10,T="string"==typeof y?Nr(y):T),268435456&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(28,W=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}(v)||W),2&t.$$.dirty[1]){const t=null==m?void 0:m.ratio;t&&cn(t)?r(11,H=(100/Number(t)).toFixed(2)):r(11,H="0")}134217785&t.$$.dirty[0]&&j&&(N&&(I.unregisterInstance(N),r(27,N=void 0)),!j.id||z||(null==S?void 0:S.fakeElement)||(r(27,N=j.id),I.registerInstance(j.id,{pause(){null==O||O.pause()},start(){const t=null==O?void 0:O.play();t&&t.catch((t=>{I.logError(ge(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}}))),2048&t.$$.dirty[0]&&r(13,f={aspect:"0"!==H}),268435456&t.$$.dirty[0]&&r(12,g={"object-fit":W})},[j,P,F,S,z,O,J,R,L,U,T,H,g,f,p,d,u,c,l,s,a,function(){O&&(B=!0,o.setValue(Math.floor(1e3*O.currentTime)))},function(){const t=I.getJsonWithVars(j.end_actions);I.execAnyActions(t)},function(){const t=I.getJsonWithVars(j.resume_actions);I.execAnyActions(t)},function(){const t=I.getJsonWithVars(j.pause_actions);I.execAnyActions(t)},function(){const t=I.getJsonWithVars(j.buffering_actions);I.execAnyActions(t)},function(){const t=I.getJsonWithVars(j.fatal_actions);I.execAnyActions(t)},N,W,M,o,i,m,v,y,$,b,_,w,function(t){At[t?"unshift":"push"]((()=>{O=t,r(5,O)}))},function(t){At[t?"unshift":"push"]((()=>{O=t,r(5,O)}))}]}function as(t,e,n){const r=t.slice();return r[15]=e[n],r}function ss(t){let e,n;return e=new Dn({props:{json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ps]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),266225&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function ls(t){let e,n,r=[t[9]],o={};for(let t=0;t<r.length;t+=1)o=i(o,r[t]);return{c(){e=B("template"),n=new dt(!1),this.h()},l(t){e=et(t,"TEMPLATE",{});var r=X(e.content);n=function(t,e){const n=ot(t,"HTML_TAG_START",0),r=ot(t,"HTML_TAG_END",n+1);if(-1===n||-1===r)return new dt(false);Z(t);const i=t.splice(n,r-n+1);M(i[0]),M(i[i.length-1]);const o=i.slice(1,i.length-1);for(const e of o)e.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new dt(false,o)}(r),r.forEach(M),this.h()},h(){n.a=null,G(e,o)},m(r,i){T(r,e,i),n.m(t[8],e.content)},p(t,i){256&i&&n.p(t[8]),G(e,o=Zt(r,[512&i&&t[9]]))},d(t){t&&M(e)}}}function cs(t){let e,r,i=t[6],o=ds(t);return{c(){o.c(),e=U()},l(t){o.l(t),e=U()},m(t,n){o.m(t,n),T(t,e,n),r=!0},p(t,r){64&r&&d(i,i=t[6])?(Lt(),Ht(o,1,1,n),Ut(),o=ds(t),o.c(),Wt(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Wt(o),r=!0)},o(t){Ht(o),r=!1},d(t){t&&M(e),o.d(t)}}}function us(t){let e,n;return e=new bs({props:{layoutParams:t[10],div:t[15].json,templateContext:t[15].templateContext,origJson:t[15].origJson}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1024&n&&(r.layoutParams=t[10]),2048&n&&(r.div=t[15].json),2048&n&&(r.templateContext=t[15].templateContext),2048&n&&(r.origJson=t[15].origJson),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){Ht(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function ds(t){let e,n,r=Kt(t[11]),i=[];for(let e=0;e<r.length;e+=1)i[e]=us(as(t,r,e));const o=t=>Ht(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(3072&n){let a;for(r=Kt(t[11]),a=0;a<r.length;a+=1){const o=as(t,r,a);i[a]?(i[a].p(o,n),Wt(i[a],1)):(i[a]=us(o),i[a].c(),Wt(i[a],1),i[a].m(e.parentNode,e))}for(Lt(),a=r.length;a<i.length;a+=1)o(a);Ut()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Wt(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Ht(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function hs(t){let e,n,r,o=t[8]&&ls(t),a=!t[5]&&t[6]&&cs(t),s=[t[0].custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=i(l,s[t]);return{c(){e=B(t[4].element),o&&o.c(),n=L(),a&&a.c(),this.h()},l(r){e=et(r,(t[4].element||"null").toUpperCase(),{});var i=X(e);o&&o.l(i),n=it(i),a&&a.l(i),i.forEach(M),this.h()},h(){Y(t[4].element)(e,l)},m(i,s){T(i,e,s),o&&o.m(e,null),N(e,n),a&&a.m(e,null),t[13](e),r=!0},p(t,r){t[8]?o?o.p(t,r):(o=ls(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),!t[5]&&t[6]?a?(a.p(t,r),96&r&&Wt(a,1)):(a=cs(t),a.c(),Wt(a,1),a.m(e,null)):a&&(Lt(),Ht(a,1,1,(()=>{a=null})),Ut()),Y(t[4].element)(e,l=Zt(s,[1&r&&(t[0].custom_props||{})]))},i(t){r||(Wt(a),r=!0)},o(t){Ht(a),r=!1},d(n){n&&M(e),o&&o.d(),a&&a.d(),t[13](null)}}}function ps(t){let e,r,i=t[4].element,o=t[4].element&&hs(t);return{c(){o&&o.c(),e=U()},l(t){o&&o.l(t),e=U()},m(t,n){o&&o.m(t,n),T(t,e,n)},p(t,n){t[4].element?i?d(i,t[4].element)?(o.d(1),o=hs(t),i=t[4].element,o.c(),o.m(e.parentNode,e)):o.p(t,n):(o=hs(t),i=t[4].element,o.c(),o.m(e.parentNode,e)):i&&(o.d(1),o=null,i=t[4].element)},i:n,o(t){Ht(o,t),r=!1},d(t){t&&M(e),o&&o.d(t)}}}function fs(t){let e,n,r=t[4]&&ss(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){let[i]=n;t[4]?r?(r.p(t,i),16&i&&Wt(r,1)):(r=ss(t),r.c(),Wt(r,1),r.m(e.parentNode,e)):r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut())},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function gs(t,e,n){let r,i,o;var a;let{json:s={}}=e,{templateContext:l}=e,{origJson:c}=e,{layoutParams:u}=e;const d=xt(fe);let h,p=null,f="",g={},m=!1;return bt((()=>{if(h&&"divKitApiCallback"in h&&"function"==typeof h.divKitApiCallback){const t=d.getExtensionContext();h.divKitApiCallback(t)}})),t.$$set=t=>{"json"in t&&n(0,s=t.json),"templateContext"in t&&n(1,l=t.templateContext),"origJson"in t&&n(2,c=t.origJson),"layoutParams"in t&&n(3,u=t.layoutParams)},t.$$.update=()=>{if(4113&t.$$.dirty)if("string"==typeof s.custom_type&&s.custom_type&&(null===n(12,a=d.customComponents)||void 0===a?void 0:a.has(s.custom_type))){if(n(4,p=d.customComponents.get(s.custom_type)),"function"==typeof p.template){const t=d.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(8,f=p.template({props:s.custom_props,variables:e}))}else p.template&&"string"==typeof p.template?n(8,f=p.template):n(8,f="");n(9,g={shadowrootmode:p.shadowRootMode||"open"})}else n(4,p=null),n(8,f=";"),d.logError(ge(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(6,r=s.items),64&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(5,m=!1):(n(5,m=!0),d.logError(ge(new Error('Incorrect "items" prop for div "custom"'))))),98&t.$$.dirty&&n(11,i=(!m&&r||[]).map((t=>{let e=t,n=l;return({templateContext:n,json:e}=d.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),8&t.$$.dirty&&n(10,o={fakeElement:null==u?void 0:u.fakeElement})},[s,l,c,u,p,m,r,h,f,g,o,i,a,function(t){At[t?"unshift":"push"]((()=>{h=t,n(7,h)}))}]}const ms={};function vs(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=ht(i,o(t))),{c(){e&&re(e.$$.fragment),n=U()},l(t){e&&ie(e.$$.fragment,t),n=U()},m(t,i){e&&oe(e,t,i),T(t,n,i),r=!0},p(t,r){if(32&r&&i!==(i=t[5])){if(e){Lt();const t=e;Ht(t.$$.fragment,1,0,(()=>{ae(t,1)})),Ut()}i?(e=ht(i,o(t)),re(e.$$.fragment),Wt(e.$$.fragment,1),oe(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&&Wt(e.$$.fragment,t),r=!0)},o(t){e&&Ht(e.$$.fragment,t),r=!1},d(t){t&&M(n),e&&ae(e,t)}}}function ys(t){let e,n,r=t[5]&&vs(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&Wt(r,1)):(r=vs(t),r.c(),Wt(r,1),r.m(e.parentNode,e)):r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut())},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function $s(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const s=xt(fe);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&&ms[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&&ms[l.type]||void 0),!u))){let t;t=(null==l?void 0:l.type)&&s.hasTemplate(l.type)?"Recursive template":"Unknown component",s.logError(ge(new Error(t),{additional:{component:(null==l?void 0:l.type)||"<missing>"}}))}},[r,o,a,l,c,u,i]}ms.text=class extends ce{constructor(t){super(),se(this,t,Qn,Zn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.container=class extends ce{constructor(t){super(),se(this,t,Cr,xr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.separator=class extends ce{constructor(t){super(),se(this,t,Sr,Fr,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},ms.image=Wr,ms.gif=Wr,ms.grid=class extends ce{constructor(t){super(),se(this,t,ei,ti,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.gallery=class extends ce{constructor(t){super(),se(this,t,mi,gi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ms.tabs=class extends ce{constructor(t){super(),se(this,t,Si,Fi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1,-1])}},ms.state=class extends ce{constructor(t){super(),se(this,t,Eo,xo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.pager=class extends ce{constructor(t){super(),se(this,t,No,Io,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ms.indicator=class extends ce{constructor(t){super(),se(this,t,Lo,Jo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.slider=class extends ce{constructor(t){super(),se(this,t,$a,fa,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ms.input=class extends ce{constructor(t){super(),se(this,t,Ja,Ta,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ms.select=class extends ce{constructor(t){super(),se(this,t,Ga,qa,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.video=class extends ce{constructor(t){super(),se(this,t,os,is,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ms.custom=class extends ce{constructor(t){super(),se(this,t,gs,fs,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}};const bs=class extends ce{constructor(t){super(),se(this,t,$s,ys,d,{div:0,templateContext:6,origJson:1,layoutParams:2})}},_s={"root-svg-filters":"divkit-dc22b"};function ws(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 xs(t){let e,n,r,i=Kt([...Object.keys(t[0])]),o=[];for(let e=0;e<i.length;e+=1)o[e]=Cs(ws(t,i,e));return{c(){e=J("svg"),n=J("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=nt(t,"svg",{class:!0,"aria-hidden":!0});var r=X(e);n=nt(r,"defs",{});var i=X(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(M),r.forEach(M),this.h()},h(){H(e,"class",r=_s["root-svg-filters"]),H(e,"aria-hidden","true")},m(t,r){T(t,e,r),N(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=Kt([...Object.keys(t[0])]),r=0;r<i.length;r+=1){const a=ws(t,i,r);o[r]?o[r].p(a,e):(o[r]=Cs(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&&M(e),z(o,t)}}}function ks(t){let e,n;return{c(){e=J("feBlend"),this.h()},l(t){e=nt(t,"feBlend",{in2:!0,mode:!0}),X(e).forEach(M),this.h()},h(){H(e,"in2","SourceGraphic"),H(e,"mode",n=t[3])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&H(e,"mode",n)},d(t){t&&M(e)}}}function Es(t){let e;return{c(){e=J("feComposite"),this.h()},l(t){e=nt(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),X(e).forEach(M),this.h()},h(){H(e,"in2","SourceGraphic"),H(e,"operator","arithmetic"),H(e,"k1","1"),H(e,"k2","0"),H(e,"k3","0"),H(e,"k4","0")},m(t,n){T(t,e,n)},p:n,d(t){t&&M(e)}}}function As(t){let e,n;return{c(){e=J("feComposite"),this.h()},l(t){e=nt(t,"feComposite",{in2:!0,operator:!0}),X(e).forEach(M),this.h()},h(){H(e,"in2","SourceGraphic"),H(e,"operator",n=t[3].split("_")[1])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&H(e,"operator",n)},d(t){t&&M(e)}}}function Cs(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?As:"multiply"===t[3]?Es:ks}let a=o(t),s=a(t);return{c(){e=J("filter"),n=J("feFlood"),s.c(),this.h()},l(t){e=nt(t,"filter",{id:!0});var r=X(e);n=nt(r,"feFlood",{"flood-color":!0}),X(n).forEach(M),s.l(r),r.forEach(M),this.h()},h(){H(n,"flood-color",r=t[2]),H(e,"id",i=t[0][t[1]])},m(t,r){T(t,e,r),N(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&H(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]])&&H(e,"id",i)},d(t){t&&M(e),s.d()}}}function Vs(t){let e,r=Object.keys(t[0]).length,i=r&&xs(t);return{c(){i&&i.c(),e=U()},l(t){i&&i.l(t),e=U()},m(t,n){i&&i.m(t,n),T(t,e,n)},p(t,n){let[o]=n;1&o&&(r=Object.keys(t[0]).length),r?i?i.p(t,o):(i=xs(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:n,o:n,d(t){t&&M(e),i&&i.d(t)}}}function Ds(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const js=class extends ce{constructor(t){super(),se(this,t,Ds,Vs,d,{svgFiltersMap:0})}};function Ps(t,e,n,r){const i=n[t.type];if(!i)return r(ge(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 Fs(){}function Ss(t){return{subscribe:e=>(e(t),Fs)}}function Is(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function Ns(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function Os(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 Ts(t){try{return Xo(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function Ms(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function zs(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,zs.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function Bs(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Js(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:je,JsonStringContents:function(){var t,e,n;for(t=ve,e=[],n=Pe();n!==r;)e.push(n),n=Pe();return ye=t,e=St(e)}},a=je,s="@{",l="}",c="@{}",u="\\",d="?",h=":",p="!:",f="||",g="&&",m="==",v="!=",y=">=",$=">",b="<=",_="<",w="+",x="-",k="/",E="*",A="%",C="!",V="(",D=")",j=",",P="'",F=".",S="e",I="E",N="true",O="false",T=/^[^}]/,M=/^[^'}]/,z=/^[0-9]/,B=/^[a-zA-Z_0-9.]/,J=/^[a-zA-Z_]/,R=/^[ \t\r\n]/,L=ke("@{",!1),U=ke("}",!1),W=ke("@{}",!1),H=ke("\\",!1),q={type:"any"},G=Ee(["}"],!0,!1),K=ke("?",!1),Y=ke(":",!1),X=ke("!:",!1),Z=ke("||",!1),Q=ke("&&",!1),tt=ke("==",!1),et=ke("!=",!1),nt=ke(">=",!1),rt=ke(">",!1),it=ke("<=",!1),ot=ke("<",!1),at=ke("+",!1),st=ke("-",!1),lt=ke("/",!1),ct=ke("*",!1),ut=ke("%",!1),dt=ke("!",!1),ht=ke("(",!1),pt=ke(")",!1),ft=ke(",",!1),gt=Ae("string"),mt=ke("'",!1),vt=Ee(["'","}"],!0,!1),yt=Ae("integer"),$t=Ee([["0","9"]],!1,!1),bt=Ae("number"),_t=ke(".",!1),wt=ke("e",!1),xt=ke("E",!1),kt=Ae("boolean"),Et=ke("true",!1),At=ke("false",!1),Ct=Ee([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),Vt=Ae("identifier"),Dt=Ee([["a","z"],["A","Z"],"_"],!1,!1),jt=Ae("whitespace"),Pt=Ee([" ","\t","\r","\n"],!1,!1),Ft=function(t){return t},St=function(t){return Os(t)},It=function(t){return t},Nt=function(){return""},Ot=function(){return xe()},Tt=function(){throw new Error("Error tokenizing '"+t+"'.")},Mt=function(){throw new Error("Error tokenizing '"+t+"'.")},zt=function(t){return t},Bt=function(t){return Ms(t)},Jt=function(){throw new Error("Error tokenizing '"+t+"'.")},Rt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Lt=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Ut=function(t,e){return Ns(t,e)},Wt=function(t,e){return Ns(t,e)},Ht=function(t,e){return Is(t,e)},qt=function(t,e){return Is(t,e)},Gt=function(t,e){return Is(t,e)},Kt=function(t,e){return Is(t,e)},Yt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Xt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Zt=function(t){return{type:"Variable",id:t}},Qt=function(t,e){return[t,...e]},te=function(t){return t},ee=function(t){return t},ne=function(t){return Os(t)},re=function(t){return t},ie=function(){return""},oe=function(){return xe()},ae=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){throw new Error("Error tokenizing '"+t+"'.")},le=function(t){return t},ce=function(t){return Ms(t)},ue=function(){throw new Error("Error tokenizing '"+t+"'.")},de=function(){return{type:"IntegerLiteral",value:Ts(xe())}},he=function(){return{type:"NumberLiteral",value:parseFloat(xe())}},pe=function(){return{type:"NumberLiteral",value:parseFloat(xe())}},fe=function(){return{type:"BooleanLiteral",value:!0}},ge=function(){return{type:"BooleanLiteral",value:!1}},me=function(){return{type:"Identifier",name:xe()}},ve=0,ye=0,$e=[{line:1,column:1}],be=0,_e=[],we=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 xe(){return t.substring(ye,ve)}function ke(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ee(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Ae(t){return{type:"other",description:t}}function Ce(e){var n,r=$e[e];if(r)return r;for(n=e-1;!$e[n];)n--;for(r={line:(r=$e[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return $e[e]=r,r}function Ve(t,e,n){var r=Ce(t),o=Ce(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 De(t){ve<be||(ve>be&&(be=ve,_e=[]),_e.push(t))}function je(){var t,e;return t=ve,We(),(e=Fe())!==r?(We(),ye=t,t=Ft(e)):(ve=t,t=r),t}function Pe(){var e,n,i,o,a;if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r?(i=We(),(o=Fe())!==r?(We(),125===t.charCodeAt(ve)?(a=l,ve++):(a=r,0===we&&De(U)),a!==r?(ye=e,e=It(o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,t.substr(ve,3)===c?(n=c,ve+=3):(n=r,0===we&&De(W)),n!==r&&(ye=e,n=Nt()),(e=n)===r&&(e=ve,n=ve,we++,92===t.charCodeAt(ve)?(i=u,ve++):(i=r,0===we&&De(H)),i===r&&(t.substr(ve,2)===s?(i=s,ve+=2):(i=r,0===we&&De(L))),we--,i===r?n=void 0:(ve=n,n=r),n!==r?(t.length>ve?(i=t.charAt(ve),ve++):(i=r,0===we&&De(q)),i!==r?(ye=e,e=Ot()):(ve=e,e=r)):(ve=e,e=r),e===r))){if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r){if(i=[],T.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(G)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(G));else i=r;i!==r?(125===t.charCodeAt(ve)?(o=l,ve++):(o=r,0===we&&De(U)),o!==r?(ye=e,e=Tt()):(ve=e,e=r)):(ve=e,e=r)}else ve=e,e=r;e===r&&(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r&&(ye=e,n=Mt()),(e=n)===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(H)),n!==r?(t.substr(ve,2)===s?(i=s,ve+=2):(i=r,0===we&&De(L)),i!==r?(ye=e,e=zt(i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(H)),n!==r?(t.length>ve?(i=t.charAt(ve),ve++):(i=r,0===we&&De(q)),i!==r?(ye=e,e=Bt(i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(H)),n!==r&&(ye=e,n=Jt()),e=n))))}return e}function Fe(){var e,n,i,o,a,s;return e=ve,(n=Se())!==r?(We(),63===t.charCodeAt(ve)?(i=d,ve++):(i=r,0===we&&De(K)),i!==r?(We(),(o=Fe())!==r?(We(),58===t.charCodeAt(ve)?(a=h,ve++):(a=r,0===we&&De(Y)),a!==r?(We(),(s=Fe())!==r?(ye=e,e=Rt(n,o,s)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=Se()),e}function Se(){var e,n,i,o;return e=ve,(n=Ie())!==r?(We(),t.substr(ve,2)===p?(i=p,ve+=2):(i=r,0===we&&De(X)),i!==r?(We(),(o=Fe())!==r?(ye=e,e=Lt(n,o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=Ie()),e}function Ie(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Ne())!==r){for(i=[],o=ve,a=We(),t.substr(ve,2)===f?(s=f,ve+=2):(s=r,0===we&&De(Z)),s!==r?(l=We(),(c=Ne())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=We(),t.substr(ve,2)===f?(s=f,ve+=2):(s=r,0===we&&De(Z)),s!==r?(l=We(),(c=Ne())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Ut(n,i)}else ve=e,e=r;return e}function Ne(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Oe())!==r){for(i=[],o=ve,a=We(),t.substr(ve,2)===g?(s=g,ve+=2):(s=r,0===we&&De(Q)),s!==r?(l=We(),(c=Oe())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=We(),t.substr(ve,2)===g?(s=g,ve+=2):(s=r,0===we&&De(Q)),s!==r?(l=We(),(c=Oe())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Wt(n,i)}else ve=e,e=r;return e}function Oe(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Te())!==r){for(i=[],o=ve,a=We(),t.substr(ve,2)===m?(s=m,ve+=2):(s=r,0===we&&De(tt)),s===r&&(t.substr(ve,2)===v?(s=v,ve+=2):(s=r,0===we&&De(et))),s!==r?(l=We(),(c=Te())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=We(),t.substr(ve,2)===m?(s=m,ve+=2):(s=r,0===we&&De(tt)),s===r&&(t.substr(ve,2)===v?(s=v,ve+=2):(s=r,0===we&&De(et))),s!==r?(l=We(),(c=Te())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Ht(n,i)}else ve=e,e=r;return e}function Te(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Me())!==r){for(i=[],o=ve,a=We(),t.substr(ve,2)===y?(s=y,ve+=2):(s=r,0===we&&De(nt)),s===r&&(62===t.charCodeAt(ve)?(s=$,ve++):(s=r,0===we&&De(rt)),s===r&&(t.substr(ve,2)===b?(s=b,ve+=2):(s=r,0===we&&De(it)),s===r&&(60===t.charCodeAt(ve)?(s=_,ve++):(s=r,0===we&&De(ot))))),s!==r?(l=We(),(c=Me())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=We(),t.substr(ve,2)===y?(s=y,ve+=2):(s=r,0===we&&De(nt)),s===r&&(62===t.charCodeAt(ve)?(s=$,ve++):(s=r,0===we&&De(rt)),s===r&&(t.substr(ve,2)===b?(s=b,ve+=2):(s=r,0===we&&De(it)),s===r&&(60===t.charCodeAt(ve)?(s=_,ve++):(s=r,0===we&&De(ot))))),s!==r?(l=We(),(c=Me())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=qt(n,i)}else ve=e,e=r;return e}function Me(){var e,n,i,o,a,s,l,c;if(e=ve,(n=ze())!==r){for(i=[],o=ve,a=We(),43===t.charCodeAt(ve)?(s=w,ve++):(s=r,0===we&&De(at)),s===r&&(45===t.charCodeAt(ve)?(s=x,ve++):(s=r,0===we&&De(st))),s!==r?(l=We(),(c=ze())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=We(),43===t.charCodeAt(ve)?(s=w,ve++):(s=r,0===we&&De(at)),s===r&&(45===t.charCodeAt(ve)?(s=x,ve++):(s=r,0===we&&De(st))),s!==r?(l=We(),(c=ze())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Gt(n,i)}else ve=e,e=r;return e}function ze(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Be())!==r){for(i=[],o=ve,a=We(),47===t.charCodeAt(ve)?(s=k,ve++):(s=r,0===we&&De(lt)),s===r&&(42===t.charCodeAt(ve)?(s=E,ve++):(s=r,0===we&&De(ct)),s===r&&(37===t.charCodeAt(ve)?(s=A,ve++):(s=r,0===we&&De(ut)))),s!==r?(l=We(),(c=Be())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=We(),47===t.charCodeAt(ve)?(s=k,ve++):(s=r,0===we&&De(lt)),s===r&&(42===t.charCodeAt(ve)?(s=E,ve++):(s=r,0===we&&De(ct)),s===r&&(37===t.charCodeAt(ve)?(s=A,ve++):(s=r,0===we&&De(ut)))),s!==r?(l=We(),(c=Be())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Kt(n,i)}else ve=e,e=r;return e}function Be(){var e,n,i;return(e=Le())===r&&(e=Re())===r&&(e=ve,33===t.charCodeAt(ve)?(n=C,ve++):(n=r,0===we&&De(dt)),n===r&&(43===t.charCodeAt(ve)?(n=w,ve++):(n=r,0===we&&De(at)),n===r&&(45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&De(st)))),n!==r?(We(),(i=Be())!==r?(ye=e,e=Yt(n,i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=ve,(n=Ue())!==r?(We(),40===t.charCodeAt(ve)?(i=V,ve++):(i=r,0===we&&De(ht)),i!==r?(We(),o=function(){var e,n,i,o,a,s;if(e=ve,(n=Fe())!==r){for(i=[],o=ve,We(),44===t.charCodeAt(ve)?(a=j,ve++):(a=r,0===we&&De(ft)),a!==r?(We(),(s=Fe())!==r?o=s:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,We(),44===t.charCodeAt(ve)?(a=j,ve++):(a=r,0===we&&De(ft)),a!==r?(We(),(s=Fe())!==r?o=s:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Qt(n,i)}else ve=e,e=r;return e===r&&(e=We()),e}(),o!==r?(We(),41===t.charCodeAt(ve)?(a=D,ve++):(a=r,0===we&&De(pt)),a!==r?(ye=e,e=Xt(n,o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,(n=Ue())!==r&&(ye=e,n=Zt(n)),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return we++,e=ve,39===t.charCodeAt(ve)?(n=P,ve++):(n=r,0===we&&De(mt)),n!==r?(i=function(){var t,e,n;for(t=ve,e=[],n=Je();n!==r;)e.push(n),n=Je();return ye=t,t=e=ne(e)}(),39===t.charCodeAt(ve)?(o=P,ve++):(o=r,0===we&&De(mt)),o!==r?(ye=e,e=ee(i)):(ve=e,e=r)):(ve=e,e=r),we--,e===r&&(n=r,0===we&&De(gt)),e}(),e===r&&(e=Le())===r&&(e=Re())===r&&(e=function(){var e,n;return we++,e=ve,t.substr(ve,4)===N?(n=N,ve+=4):(n=r,0===we&&De(Et)),n!==r&&(ye=e,n=fe()),(e=n)===r&&(e=ve,t.substr(ve,5)===O?(n=O,ve+=5):(n=r,0===we&&De(At)),n!==r&&(ye=e,n=ge()),e=n),we--,e===r&&(n=r,0===we&&De(kt)),e}(),e===r&&(e=ve,40===t.charCodeAt(ve)?(n=V,ve++):(n=r,0===we&&De(ht)),n!==r?(We(),(i=Fe())!==r?(We(),41===t.charCodeAt(ve)?(o=D,ve++):(o=r,0===we&&De(pt)),o!==r?(ye=e,e=te(i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r))),e}())),e}())),e}function Je(){var e,n,i,o,a;if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r?(i=We(),(o=Fe())!==r?(We(),125===t.charCodeAt(ve)?(a=l,ve++):(a=r,0===we&&De(U)),a!==r?(ye=e,e=re(o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,t.substr(ve,3)===c?(n=c,ve+=3):(n=r,0===we&&De(W)),n!==r&&(ye=e,n=ie()),(e=n)===r&&(e=ve,n=ve,we++,92===t.charCodeAt(ve)?(i=u,ve++):(i=r,0===we&&De(H)),i===r&&(39===t.charCodeAt(ve)?(i=P,ve++):(i=r,0===we&&De(mt)),i===r&&(t.substr(ve,2)===s?(i=s,ve+=2):(i=r,0===we&&De(L)))),we--,i===r?n=void 0:(ve=n,n=r),n!==r?(t.length>ve?(i=t.charAt(ve),ve++):(i=r,0===we&&De(q)),i!==r?(ye=e,e=oe()):(ve=e,e=r)):(ve=e,e=r),e===r))){if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r){if(i=[],M.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(vt)),o!==r)for(;o!==r;)i.push(o),M.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(vt));else i=r;i!==r?(125===t.charCodeAt(ve)?(o=l,ve++):(o=r,0===we&&De(U)),o!==r?(ye=e,e=ae()):(ve=e,e=r)):(ve=e,e=r)}else ve=e,e=r;e===r&&(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r&&(ye=e,n=se()),(e=n)===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(H)),n!==r?(t.substr(ve,2)===s?(i=s,ve+=2):(i=r,0===we&&De(L)),i!==r?(ye=e,e=le(i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(H)),n!==r?(t.length>ve?(i=t.charAt(ve),ve++):(i=r,0===we&&De(q)),i!==r?(ye=e,e=ce(i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(H)),n!==r&&(ye=e,n=ue()),e=n))))}return e}function Re(){var e,n,i,o;if(we++,e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&De(st)),n===r&&(n=null),i=[],z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t)),o!==r)for(;o!==r;)i.push(o),z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t));else i=r;return i!==r?(ye=e,e=de()):(ve=e,e=r),we--,e===r&&(n=r,0===we&&De(yt)),e}function Le(){var e,n,i,o,a,s,l,c,u,d;for(we++,e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&De(st)),n===r&&(n=null),i=[],z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t));o!==r;)i.push(o),z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t));if(46===t.charCodeAt(ve)?(o=F,ve++):(o=r,0===we&&De(_t)),o!==r){if(a=[],z.test(t.charAt(ve))?(s=t.charAt(ve),ve++):(s=r,0===we&&De($t)),s!==r)for(;s!==r;)a.push(s),z.test(t.charAt(ve))?(s=t.charAt(ve),ve++):(s=r,0===we&&De($t));else a=r;if(a!==r){if(s=ve,101===t.charCodeAt(ve)?(l=S,ve++):(l=r,0===we&&De(wt)),l===r&&(69===t.charCodeAt(ve)?(l=I,ve++):(l=r,0===we&&De(xt))),l!==r){if(43===t.charCodeAt(ve)?(c=w,ve++):(c=r,0===we&&De(at)),c===r&&(45===t.charCodeAt(ve)?(c=x,ve++):(c=r,0===we&&De(st))),c===r&&(c=null),u=[],z.test(t.charAt(ve))?(d=t.charAt(ve),ve++):(d=r,0===we&&De($t)),d!==r)for(;d!==r;)u.push(d),z.test(t.charAt(ve))?(d=t.charAt(ve),ve++):(d=r,0===we&&De($t));else u=r;u!==r?s=l=[l,c,u]:(ve=s,s=r)}else ve=s,s=r;s===r&&(s=null),ye=e,e=he()}else ve=e,e=r}else ve=e,e=r;if(e===r){if(e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&De(st)),n===r&&(n=null),i=[],z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t)),o!==r)for(;o!==r;)i.push(o),z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t));else i=r;if(i!==r)if(101===t.charCodeAt(ve)?(o=S,ve++):(o=r,0===we&&De(wt)),o===r&&(69===t.charCodeAt(ve)?(o=I,ve++):(o=r,0===we&&De(xt))),o!==r){if(43===t.charCodeAt(ve)?(a=w,ve++):(a=r,0===we&&De(at)),a===r&&(45===t.charCodeAt(ve)?(a=x,ve++):(a=r,0===we&&De(st))),a===r&&(a=null),s=[],z.test(t.charAt(ve))?(l=t.charAt(ve),ve++):(l=r,0===we&&De($t)),l!==r)for(;l!==r;)s.push(l),z.test(t.charAt(ve))?(l=t.charAt(ve),ve++):(l=r,0===we&&De($t));else s=r;s!==r?(ye=e,e=pe()):(ve=e,e=r)}else ve=e,e=r;else ve=e,e=r}return we--,e===r&&(n=r,0===we&&De(bt)),e}function Ue(){var e,n,i,o,a;if(we++,e=ve,n=ve,we++,i=function(){var e,n,i,o;return e=ve,t.substr(ve,4)===N?(n=N,ve+=4):(n=r,0===we&&De(Et)),n===r&&(t.substr(ve,5)===O?(n=O,ve+=5):(n=r,0===we&&De(At))),n!==r?(i=ve,we++,B.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(Ct)),we--,o===r?i=void 0:(ve=i,i=r),i!==r?e=n=[n,i]:(ve=e,e=r)):(ve=e,e=r),e}(),we--,i===r?n=void 0:(ve=n,n=r),n!==r)if(J.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&De(Dt)),i!==r){for(o=[],B.test(t.charAt(ve))?(a=t.charAt(ve),ve++):(a=r,0===we&&De(Ct));a!==r;)o.push(a),B.test(t.charAt(ve))?(a=t.charAt(ve),ve++):(a=r,0===we&&De(Ct));ye=e,e=me()}else ve=e,e=r;else ve=e,e=r;return we--,e===r&&(n=r,0===we&&De(Vt)),e}function We(){var e,n;for(we++,e=[],R.test(t.charAt(ve))?(n=t.charAt(ve),ve++):(n=r,0===we&&De(Pt));n!==r;)e.push(n),R.test(t.charAt(ve))?(n=t.charAt(ve),ve++):(n=r,0===we&&De(Pt));return we--,n=r,0===we&&De(jt),e}if((n=a())!==r&&ve===t.length)return n;throw n!==r&&ve<t.length&&De({type:"end"}),function(t,e,n){return new zs(zs.buildMessage(t,e),t,e,n)}(_e,be<t.length?t.charAt(be):null,be<t.length?Ve(be,be+1):Ve(be,be))}Ss(void 0),function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(zs,Error),zs.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=Bs("",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+" | "+Bs("",i.column-1," ")+Bs("",u,"^")}else e+="\n at "+a}return e},zs.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 Rs=new Map,Ls=new Map;function Us(t,e,n){const r={args:e,cb:n},i=Rs.get(t)||[];Rs.has(t)||Rs.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Ls.set(o,r)}function Ws(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 Hs(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=>{Hs(t,e)}));break;case"BinaryExpression":case"LogicalExpression":Hs(t.left,e),Hs(t.right,e);break;case"UnaryExpression":Hs(t.argument,e);break;case"ConditionalExpression":Hs(t.test,e),Hs(t.consequent,e),Hs(t.alternate,e);break;case"TryExpression":Hs(t.test,e),Hs(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{Hs(t,e)}))}}function qs(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function Gs(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Ks(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 Gs(t.value);if("color"===t.type)return rl(nl(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";if("array"===t.type)return"<array>";throw new Error("Unexpected type ".concat(t.type))}function Ys(t){let e=Ks(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function Xs(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function Zs(t,e){if(qo)return Xo(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function Qs(t,e){if(e<Yo||e>Ko)throw new Error("Integer overflow.");!qo&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function tl(t){const e=[];return Hs(t,{Variable(t){e.push(t.id.name)}}),e}function el(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function nl(t){const e=xe(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function rl(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 _e(Math.round(t).toString(16),2)})).join("").toUpperCase())}function il(t){return rl(nl(t))}const ol=Number.MAX_VALUE,al=Number.MIN_VALUE,sl="string",ll="integer",cl="number",ul="boolean",dl="color",hl="url",pl="datetime",fl="dict",gl="array";function ml(t,e){return{type:sl,value:Ks(e)}}function vl(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:cl,value:n}}function yl(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=il(o)),{type:r,value:o}}function $l(t,e,n){return yl(t,e,n,n.type)}function bl(t,e,n){return yl(t,e,n,"color")}function _l(t,e,n){return yl(t,e,n,"url")}const wl=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:ll,value:Xo(r)}},xl=wl("getUTCFullYear"),kl=wl("getUTCMonth"),El=wl("getUTCDate"),Al=wl("getUTCDay"),Cl=wl("getUTCHours"),Vl=wl("getUTCMinutes"),Dl=wl("getUTCSeconds"),jl=wl("getUTCMilliseconds");function Pl(t,e,n,r){if(!r.value.length)return t.warnings.push(ge(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===sl?e.value:Ks(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 Fl(t,e,n,r){const i=Pl(t,e,n,r);return{type:sl,value:i+Ks(e)}}function Sl(t,e,n,r){const i=Pl(t,e,n,r);return{type:sl,value:Ks(e)+i}}function Il(t){return(e,n)=>{const r=nl(n.value);return{type:cl,value:r[t]/255}}}function Nl(t){return(e,n,r)=>{const i=nl(n.value);return i[t]=255*r.value,{type:dl,value:rl(i)}}}const Ol=Il("a"),Tl=Il("r"),Ml=Il("g"),zl=Il("b"),Bl=Nl("a"),Jl=Nl("r"),Rl=Nl("g"),Ll=Nl("b");function Ul(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=Xo(e.value)/Xo(n);return Qs(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=Xo(i)%Xo(r)),{type:ll,value:i}}const Wl=36e5;function Hl(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.");Qs(n,s),s=Xo(s)}return"string"===t&&"color"===e&&(s=il(s)),{type:e,value:s}}}function ql(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=il(n)),{type:e,value:n}}}}const Gl=Hl("string","string"),Kl=Hl("number","number"),Yl=Hl("number","integer"),Xl=Hl("boolean","boolean"),Zl=Hl("string","color"),Ql=Hl("string","url"),tc=ql(Gl,"string"),ec=ql(Kl,"number"),nc=ql(Yl,"integer"),rc=ql(Xl,"boolean"),ic=ql(Zl,"color"),oc=ql(Ql,"url");function ac(t,e){return(n,r,i)=>{if(i.value<0||i.value>=r.value.length)throw new Error("Requested index (".concat(i.value,") out of bounds array size (").concat(r.value.length,")."));let o=r.value[Number(i.value)],a=typeof o;if("array"===t&&!Array.isArray(o)||"array"!==t&&a!==t||"obejct"===a&&null===o)throw"object"===a&&(a=Array.isArray(o)?"array":null===o?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(a,'".'));if("number"===t&&"integer"===e){if(o!==Math.round(o))throw new Error("Cannot convert value to integer.");Qs(n,o),o=Xo(o)}return"string"===t&&"color"===e&&(o=il(o)),{type:e,value:o}}}function sc(t,e){return(n,r,i,o)=>{try{return t(n,r,i)}catch(t){let n=o.value;return"color"===e&&(n=il(n)),{type:e,value:n}}}}const lc=ac("string","string"),cc=ac("number","number"),uc=ac("number","integer"),dc=ac("boolean","boolean"),hc=ac("string","color"),pc=ac("string","url"),fc=ac("array","array"),gc=ac("object","dict"),mc=sc(lc,"string"),vc=sc(cc,"number"),yc=sc(uc,"integer"),$c=sc(dc,"boolean"),bc=sc(hc,"color"),_c=sc(pc,"url");function wc(t){return t.map(Ys).join(", ")}Us("toString",[ll],ml),Us("toString",[cl],ml),Us("toString",[ul],ml),Us("toString",[dl],ml),Us("toString",[hl],ml),Us("toNumber",[ll],vl),Us("toNumber",[sl],vl),Us("toInteger",[cl],(function(t,e){if(e.value>Ko||e.value<Yo)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:ll,value:Xo(n)}})),Us("toInteger",[sl],(function(t,e){let n;try{n=Xo(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>Ko||n<Yo)throw new Error("Unable to convert value to Integer.");return{type:ll,value:n}})),Us("toInteger",[ul],(function(t,e){return{type:ll,value:Xo(e.value?1:0)}})),Us("toBoolean",[ll],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:ul,value:n}})),Us("toBoolean",[sl],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:ul,value:"true"===e.value?1:0}})),Us("toColor",[sl],(function(t,e){return{type:dl,value:il(e.value)}})),Us("toUrl",[sl],(function(t,e){return{type:hl,value:e.value}})),Us("encodeUri",[sl],(function(t,e){try{return{type:sl,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Us("decodeUri",[sl],(function(t,e){try{return{type:sl,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Us("getIntegerValue",[sl,ll],$l),Us("getNumberValue",[sl,cl],$l),Us("getBooleanValue",[sl,ul],$l),Us("getStringValue",[sl,sl],$l),Us("getColorValue",[sl,dl],bl),Us("getColorValue",[sl,sl],bl),Us("getUrlValue",[sl,hl],_l),Us("getUrlValue",[sl,sl],_l),Us("parseUnixTime",[ll],(function(t,e){return{type:pl,value:new Date(1e3*Number(e.value))}})),Us("nowLocal",[],(function(){return{type:pl,value:new Date}})),Us("addMillis",[pl,ll],(function(t,e,n){return{type:pl,value:new Date(e.value.getTime()+Number(n.value))}})),Us("setYear",[pl,ll],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:pl,value:r}})),Us("setMonth",[pl,ll],(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:pl,value:i}})),Us("setDay",[pl,ll],(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(Ks(e),"."));return r.setUTCDate(-1===i?0:i),{type:pl,value:r}})),Us("setHours",[pl,ll],(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:pl,value:i}})),Us("setMinutes",[pl,ll],(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:pl,value:i}})),Us("setSeconds",[pl,ll],(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:pl,value:i}})),Us("setMillis",[pl,ll],(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:pl,value:i}})),Us("getYear",[pl],xl),Us("getMonth",[pl],kl),Us("getDay",[pl],El),Us("getDayOfWeek",[pl],Al),Us("getHours",[pl],Cl),Us("getMinutes",[pl],Vl),Us("getSeconds",[pl],Dl),Us("getMillis",[pl],jl),Us("getIntervalSeconds",[ll],(function(t,e){return Ul(t,e,1e3,60)})),Us("getIntervalTotalSeconds",[ll],(function(t,e){return Ul(t,e,1e3)})),Us("getIntervalMinutes",[ll],(function(t,e){return Ul(t,e,6e4,60)})),Us("getIntervalTotalMinutes",[ll],(function(t,e){return Ul(t,e,6e4)})),Us("getIntervalHours",[ll],(function(t,e){return Ul(t,e,Wl,24)})),Us("getIntervalTotalHours",[ll],(function(t,e){return Ul(t,e,Wl)})),Us("getIntervalTotalDays",[ll],(function(t,e){return Ul(t,e,864e5)})),Us("getIntervalTotalWeeks",[ll],(function(t,e){return Ul(t,e,6048e5)})),Us("len",[sl],(function(t,e){return{type:ll,value:Xo(e.value.length)}})),Us("contains",[sl,sl],(function(t,e,n){return{type:ul,value:e.value.includes(n.value)?1:0}})),Us("substring",[sl,ll,ll],(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:sl,value:e.value.substring(Number(n.value),Number(r.value))}})),Us("replaceAll",[sl,sl,sl],(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:sl,value:i}})),Us("index",[sl,sl],(function(t,e,n){return{type:ll,value:Xo(e.value.indexOf(n.value))}})),Us("lastIndex",[sl,sl],(function(t,e,n){return{type:ll,value:Xo(e.value.lastIndexOf(n.value))}})),Us("trim",[sl],(function(t,e){return{type:sl,value:e.value.trim()}})),Us("trimLeft",[sl],(function(t,e){return{type:sl,value:e.value.replace(/^\s+/,"")}})),Us("trimRight",[sl],(function(t,e){return{type:sl,value:e.value.replace(/\s+$/,"")}})),Us("toUpperCase",[sl],(function(t,e){return{type:sl,value:e.value.toUpperCase()}})),Us("toLowerCase",[sl],(function(t,e){return{type:sl,value:e.value.toLowerCase()}})),Us("padStart",[sl,ll,sl],Fl),Us("padStart",[ll,ll,sl],Fl),Us("padEnd",[sl,ll,sl],Sl),Us("padEnd",[ll,ll,sl],Sl),Us("testRegex",[sl,sl],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:ul,value:r.test(e.value)?1:0}})),Us("div",[ll,ll],(function(t,e,n){if(n.value===Zo)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=Zs(0,r),Qs(t,r),{type:ll,value:r}})),Us("div",[cl,cl],(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:cl,value:r}})),Us("mod",[ll,ll],(function(t,e,n){if(n.value===Zo)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=Zs(0,r),Qs(t,r),{type:ll,value:r}})),Us("mod",[cl,cl],(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:cl,value:r}})),Us("mul",[{type:ll,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:Zo;for(let e=1;e<n.length;++e)i*=n[e].value,i=Zs(0,i),Qs(t,i);return{type:ll,value:i}})),Us("mul",[{type:cl,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:cl,value:i}})),Us("sub",[{type:ll,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:Zo;for(let e=1;e<n.length;++e)i-=n[e].value,i=Zs(0,i),Qs(t,i);return{type:ll,value:i}})),Us("sub",[{type:cl,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:cl,value:i}})),Us("sum",[{type:ll,isVararg:!0}],(function(t){let e=Zo;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=Zs(0,e),Qs(t,e);return{type:ll,value:e}})),Us("sum",[{type:cl,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:cl,value:e}})),Us("abs",[ll],(function(t,e){const n=Qo(e.value);return Qs(t,n),{type:e.type,value:n}})),Us("abs",[cl],(function(t,e){const n=Math.abs(e.value);return{type:cl,value:n}})),Us("max",[{type:ll,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:ll,value:i}})),Us("max",[{type:cl,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:cl,value:Math.max(...n.map((t=>t.value)))}})),Us("min",[{type:ll,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:ll,value:i}})),Us("min",[{type:cl,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:cl,value:Math.min(...n.map((t=>t.value)))}})),Us("maxNumber",[],(function(){return{type:cl,value:ol}})),Us("minNumber",[],(function(){return{type:cl,value:al}})),Us("maxInteger",[],(function(t){return Qs(t,Ko),{type:ll,value:Ko}})),Us("minInteger",[],(function(t){return Qs(t,Yo),{type:ll,value:Yo}})),Us("round",[cl],(function(t,e){const n=Math.sign(e.value);return{type:cl,value:n*Math.round(Math.abs(e.value))}})),Us("floor",[cl],(function(t,e){return{type:cl,value:Math.floor(e.value)}})),Us("ceil",[cl],(function(t,e){return{type:cl,value:Math.ceil(e.value)}})),Us("signum",[ll],(function(t,e){return{type:ll,value:ta(e.value)}})),Us("signum",[cl],(function(t,e){return{type:cl,value:Math.sign(e.value)}})),Us("copySign",[ll,ll],(function(t,e,n){let r;if(n.value===Zo)r=e.value;else if(e.value===Zo)r=Xo(0);else{const t=ta(n.value);r=Qo(e.value)*t}return Qs(t,r),{type:ll,value:r}})),Us("copySign",[cl,cl],(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:cl,value:i}})),Us("getColorAlpha",[sl],Ol),Us("getColorAlpha",[dl],Ol),Us("getColorRed",[sl],Tl),Us("getColorRed",[dl],Tl),Us("getColorGreen",[sl],Ml),Us("getColorGreen",[dl],Ml),Us("getColorBlue",[sl],zl),Us("getColorBlue",[dl],zl),Us("setColorAlpha",[sl,cl],Bl),Us("setColorAlpha",[dl,cl],Bl),Us("setColorRed",[sl,cl],Jl),Us("setColorRed",[dl,cl],Jl),Us("setColorGreen",[sl,cl],Rl),Us("setColorGreen",[dl,cl],Rl),Us("setColorBlue",[sl,cl],Ll),Us("setColorBlue",[dl,cl],Ll),Us("rgb",[cl,cl,cl],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:dl,value:rl(i)}})),Us("argb",[cl,cl,cl,cl],(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:dl,value:rl(o)}})),Us("getDictString",[fl,{type:sl,isVararg:!0}],Gl),Us("getStringFromDict",[fl,{type:sl,isVararg:!0}],Gl),Us("getDictNumber",[fl,{type:sl,isVararg:!0}],Kl),Us("getNumberFromDict",[fl,{type:sl,isVararg:!0}],Kl),Us("getDictInteger",[fl,{type:sl,isVararg:!0}],Yl),Us("getIntegerFromDict",[fl,{type:sl,isVararg:!0}],Yl),Us("getDictBoolean",[fl,{type:sl,isVararg:!0}],Xl),Us("getBooleanFromDict",[fl,{type:sl,isVararg:!0}],Xl),Us("getDictColor",[fl,{type:sl,isVararg:!0}],Zl),Us("getColorFromDict",[fl,{type:sl,isVararg:!0}],Zl),Us("getDictUrl",[fl,{type:sl,isVararg:!0}],Ql),Us("getUrlFromDict",[fl,{type:sl,isVararg:!0}],Ql),Us("getDictOptString",[sl,fl,{type:sl,isVararg:!0}],tc),Us("getOptStringFromDict",[sl,fl,{type:sl,isVararg:!0}],tc),Us("getDictOptNumber",[cl,fl,{type:sl,isVararg:!0}],ec),Us("getOptNumberFromDict",[cl,fl,{type:sl,isVararg:!0}],ec),Us("getDictOptInteger",[ll,fl,{type:sl,isVararg:!0}],nc),Us("getOptIntegerFromDict",[ll,fl,{type:sl,isVararg:!0}],nc),Us("getDictOptBoolean",[ul,fl,{type:sl,isVararg:!0}],rc),Us("getOptBooleanFromDict",[ul,fl,{type:sl,isVararg:!0}],rc),Us("getDictOptColor",[dl,fl,{type:sl,isVararg:!0}],ic),Us("getOptColorFromDict",[dl,fl,{type:sl,isVararg:!0}],ic),Us("getDictOptColor",[sl,fl,{type:sl,isVararg:!0}],ic),Us("getOptColorFromDict",[sl,fl,{type:sl,isVararg:!0}],ic),Us("getDictOptUrl",[sl,fl,{type:sl,isVararg:!0}],oc),Us("getOptUrlFromDict",[sl,fl,{type:sl,isVararg:!0}],oc),Us("getDictOptUrl",[hl,fl,{type:sl,isVararg:!0}],oc),Us("getOptUrlFromDict",[hl,fl,{type:sl,isVararg:!0}],oc),Us("getArrayString",[gl,ll],lc),Us("getStringFromArray",[gl,ll],lc),Us("getArrayNumber",[gl,ll],cc),Us("getNumberFromArray",[gl,ll],cc),Us("getArrayInteger",[gl,ll],uc),Us("getIntegerFromArray",[gl,ll],uc),Us("getArrayBoolean",[gl,ll],dc),Us("getBooleanFromArray",[gl,ll],dc),Us("getArrayColor",[gl,ll],hc),Us("getColorFromArray",[gl,ll],hc),Us("getArrayUrl",[gl,ll],pc),Us("getUrlFromArray",[gl,ll],pc),Us("getArrayFromArray",[gl,ll],fc),Us("getDictFromArray",[gl,ll],gc),Us("getArrayOptString",[gl,ll,sl],mc),Us("getOptStringFromArray",[gl,ll,sl],mc),Us("getArrayOptNumber",[gl,ll,cl],vc),Us("getOptNumberFromArray",[gl,ll,cl],vc),Us("getArrayOptInteger",[gl,ll,ll],yc),Us("getOptIntegerFromArray",[gl,ll,ll],yc),Us("getArrayOptBoolean",[gl,ll,ul],$c),Us("getOptBooleanFromArray",[gl,ll,ul],$c),Us("getArrayOptColor",[gl,ll,dl],bc),Us("getOptColorFromArray",[gl,ll,dl],bc),Us("getArrayOptColor",[gl,ll,sl],bc),Us("getOptColorFromArray",[gl,ll,sl],bc),Us("getArrayOptUrl",[gl,ll,hl],_c),Us("getOptUrlFromArray",[gl,ll,hl],_c),Us("getArrayOptUrl",[gl,ll,sl],_c),Us("getOptUrlFromArray",[gl,ll,sl],_c),Us("getOptArrayFromArray",[gl,ll],(function(t,e,n){try{return fc(t,e,n)}catch(t){return{type:gl,value:[]}}})),Us("getOptDictFromArray",[gl,ll],(function(t,e,n){try{return gc(t,e,n)}catch(t){return{type:fl,value:{}}}})),Us("len",[gl],(function(t,e){return{type:ll,value:Xo(e.value.length)}}));const xc={StringLiteral:function(t,e){return{type:sl,value:e.value}},NumberLiteral:function(t,e){return{type:cl,value:e.value}},IntegerLiteral:function(t,e){return Qs(t,e.value),{type:ll,value:e.value}},BooleanLiteral:function(t,e){return{type:ul,value:e.value?1:0}},UnaryExpression:function(t,e){const n=qs(kc(t,e.argument));switch(e.operator){case"!":if(n.type===ul)return{type:ul,value:n.value?0:1};el("".concat(e.operator).concat(Ys(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===ll){const e=n.value*Xo(r);return Qs(t,e),{type:ll,value:e}}if(n.type===cl)return{type:cl,value:n.value*r};el("".concat(e.operator).concat(Ys(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=qs(kc(t,e.test));if(n.type===ul)return n.value?kc(t,e.consequent):kc(t,e.alternate);el("".concat(Ys(n)," ? ").concat(Ys(kc(t,e.consequent))," : ").concat(Ys(kc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return kc(t,e.test)}catch(n){return kc(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return kc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=Ks(kc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:sl,value:n}},LogicalExpression:function(t,e){const n=qs(kc(t,e.left));if(n.type!==ul&&el("".concat(Ys(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:ul,value:0};const r=qs(kc(t,e.right));return r.type!==ul&&el("".concat(Ys(n)," ").concat(e.operator," ").concat(Ys(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(Xs(r.type),".")),{type:ul,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=kc(t,e.left),i=kc(t,e.right);if(r.type!==i.type&&el("".concat(Ys(r)," ").concat(e.operator," ").concat(Ys(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(Xs(r.type)," and ").concat(Xs(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===pl&&n.type===pl?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:ul,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==cl&&e.type!==ll&&e.type!==pl&&el("".concat(Ys(e)," ").concat(t," ").concat(Ys(n)),"Operator '".concat(t,"' cannot be applied to ").concat(Xs(e.type)," type."));const i=e.type===pl?e.value.getTime():e.value,o=n.type===pl?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:ul,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==sl&&n.type!==cl&&n.type!==ll&&el("".concat(Ys(n)," ").concat(e," ").concat(Ys(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Xs(n.type)," type.")),n.type===sl)return"-"===e&&el("".concat(Ys(n)," - ").concat(Ys(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Xs(n.type)," type.")),{type:sl,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===ll)try{i=Zs(0,i),Qs(t,i)}catch(t){el("".concat(Ys(n)," ").concat(e," ").concat(Ys(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!==ll&&n.type!==cl&&el("".concat(Ys(n)," ").concat(e," ").concat(Ys(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Xs(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&el("".concat(Ys(n)," ").concat(e," ").concat(Ys(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===ll)try{i=Zs(0,i),Qs(t,i)}catch(t){el("".concat(Ys(n)," ").concat(e," ").concat(Ys(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=>kc(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if(Ls.has(o))r=Ls.get(o);else{const t=function(t,e){const n=Rs.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=Ws(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=>Xs(t.type))).join(", "),r="".concat(n,"(").concat(wc(i),")");"few"===t.type&&0===i.length?el(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?el(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):el(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){el("".concat(n,"(").concat(wc(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 kc(t,e){if(e.type in xc)return xc[e.type](t,e);throw new Error("Unsupported expression")}function Ec(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1},r=kc(n,e);return n.safeIntegerOverflow&&n.warnings.push(ge(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 Ac{constructor(t){this.ast=t}apply(t,e){try{const n=Ec(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(ge(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return Gs(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=xe(String(i));if(t)return rl(t);e(ge(new Error("Expression execution error")))}if("integer"===r.type)return i>2147483647||i<-2147483648?void e(ge(new Error("Expression result is out of 32-bit int range"))):Number(i);if("array"===r.type||"dict"===r.type)try{return JSON.stringify(i)}catch(t){return e(ge(new Error("Failed to stringify ".concat(r.type)))),"<".concat(r.type,">")}return i}catch(t){return void e(ge(new Error("Expression execution error")))}}}function Cc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Js(t,{startRule:"JsonStringContents"}),r=tl(n);return e.vars.push(...r),new Ac(n)}catch(e){return void n(ge(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Cc(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Cc(t[i],e,n);return r}}var r;return t}function Vc(t,e,n){if(t){if(t instanceof Ac)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>Vc(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Vc(t[i],e,n);return r}}return t}function Dc(t,e){const n={vars:[],hasExpression:!1},r=Cc(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>Vc(r,t,e)}}const jc={pagers:function(){return de(new Map)}},Pc=new Map,Fc=new Map;function Sc(t){const e=Pc.get(t)||de("");return Pc.has(t)||Pc.set(t,e),e}function Ic(t){const e=Fc.get(t)||new Map;return Fc.has(t)||Fc.set(t,e),e}class Nc{setVariable(t){const e=t.getName(),n=Ic(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Sc(this).set(e)}getVariable(t){return Ic(this).get(t)}list(){return Ic(this).values()}}function Oc(){return new Nc}function Tc(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 Mc=new Set(["start","stop","pause","resume","cancel","reset"]);class zc{constructor(t){Tc(this,"timers",new Map),Tc(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(ge(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(ge(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&Mc.has(e)))return void this.logError(ge(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(ge(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(ge(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(ge(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(ge(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(ge(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(ge(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(ge(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(ge(new Error("The timer is already running"))):this.logError(ge(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 Bc(t,e,n,r){const{variable_name:i}=n;if(!i)return void e(ge(new Error("Incorrect ".concat(n.type," action")),{additional:{name:i}}));const o=t.get(i);if(!o)return void e(ge(new Error("Cannot find variable"),{additional:{name:i}}));const a=o.getType();"array"===a?r(o):e(ge(new Error("Trying to insert value into the non-array"),{additional:{name:i,type:a}}))}function Jc(t){let e,n,r,i,o,a,s,l;return n=new js({props:{svgFiltersMap:t[4]}}),i=new bs({props:{div:t[5],templateContext:t[8],layoutParams:{tooltips:t[3]}}}),{c(){e=B("div"),re(n.$$.fragment),r=L(),re(i.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=X(e);ie(n.$$.fragment,o),r=it(o),ie(i.$$.fragment,o),o.forEach(M),this.h()},h(){H(e,"class",o=""+(pe.root+(t[6]?" ".concat(pe.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){T(t,e,o),oe(n,e,null),N(e,r),oe(i,e,null),a=!0,s||(l=W(e,"touchstart",qc,{passive:!0}),s=!0)},p(t,r){const s={};16&r[0]&&(s.svgFiltersMap=t[4]),n.$set(s);const l={};32&r[0]&&(l.div=t[5]),8&r[0]&&(l.layoutParams={tooltips:t[3]}),i.$set(l),(!a||65&r[0]&&o!==(o=""+(pe.root+(t[6]?" ".concat(pe.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&H(e,"class",o)},i(t){a||(Wt(n.$$.fragment,t),Wt(i.$$.fragment,t),a=!0)},o(t){Ht(n.$$.fragment,t),Ht(i.$$.fragment,t),a=!1},d(t){t&&M(e),ae(n),ae(i),s=!1,l()}}}function Rc(t){let e,n,r=!t[1]&&!t[2]&&t[5]&&Jc(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[1]||t[2]||!t[5]?r&&(Lt(),Ht(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),38&n[0]&&Wt(r,1)):(r=Jc(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){Ht(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}let Lc=de(!0),Uc=0;function Wc(){Lc.set(!1)}function Hc(){Lc.set(!0)}function qc(){}function Gc(t,e,n){let r,i,o;var a,s,l,c,u;let{id:d}=e,{json:h={}}=e,{platform:f="auto"}=e,{theme:g="system"}=e,{globalVariablesController:m=new Nc}=e,{mix:v=""}=e,{customization:y={}}=e,{builtinProtocols:$=["http","https","tel","mailto","intent"]}=e,{extensions:b=new Map}=e,{onError:_}=e,{onStat:w}=e,{onCustomAction:x}=e,{onComponent:k}=e,{typefaceProvider:E=(t=>"")}=e,{fetchInit:A={}}=e,{tooltipRoot:C}=e,{customComponents:V}=e,D=de("desktop"===f);if(p(t,D,(t=>n(6,o=t))),"auto"===f&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");D.set(!t.matches),t.addListener((()=>{D.set(!t.matches)}))}let j="light",P=null;function F(){"system"===g&&P&&n(32,j=P.matches?"dark":"light")}const S=new Set($);let I=!1,N=!1;d||(N=!0,H(ge(new Error('"id" prop is required'))));const O={stateChange:!1},T=Sc(m),M=Ic(m),z=new Map,B=new Map,J=new Map;let R=null,L=0,U=[];function W(t){const e=Dc(t,H);return e.hasExpression?e.applyVars(B):t}function H(t){_?_({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function q(t,e){w&&w({type:t,action:e})}let G=0;function K(t){return"".concat(d,"-").concat(G++)}let Y={},X={};function Z(t){const e=t.url?String(t.url):"",i=t.typed;if(e)try{const i=e.replace(/div-action:\/\//,""),o=/([^?]+)\?(.+)/.exec(i);if(!o)return;const a=new URLSearchParams(o[2]);switch(o[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=lt,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}}(a.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=ot(t);n&&n.setCurrentItem(Number(e))}(a.get("id"),a.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=ot(t);n&&n.setPreviousItem(e)}(a.get("id"),a.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=ot(t);n&&n.setNextItem(e)}(a.get("id"),a.get("overflow"));break;case"set_variable":const o=a.get("name"),s=a.get("value");if(o&&null!==s){const t=B.get(o);if(t){const e=t.getType();"dict"===e||"array"===e?H(ge(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:o}})):t.set(s)}else H(ge(new Error("Cannot find variable"),{additional:{name:o}}))}else H(ge(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const l=a.get("action"),c=a.get("id");R?R.execTimerAction(c,l):H(ge(new Error("Incorrect timer action"),{additional:{id:c,action:l}}));break;case"video":!function(t,e){if(t){const n=ot(t);n?"start"===e?n.start():"pause"===e?n.pause():H(ge(new Error("Unknown video action"),{additional:{id:t,action:e}})):H(ge(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else H(ge(new Error("Missing id in video action"),{additional:{action:e}}))}(a.get("id"),a.get("action"));break;case"download":!function(t,e){if(t){let n;n="function"==typeof A?A(t):A,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,o,a;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=nt.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return H(ge(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void Q(null===(o=e.download_callbacks)||void 0===o?void 0:o.on_fail_actions)}n.patch.changes.forEach((t=>{const e=nt.get(t.id);e&&e.replaceWith(t.id,t.items)})),Q(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_success_actions)}}else H(ge(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;H(ge(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),Q(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else H(ge(new Error("Missing url in download action"),{additional:{url:t}}))}(a.get("url"),t);break;case"show_tooltip":!function(t,e){var r;if(!t)return void H(ge(new Error("Missing id in show_tooltip action")));const i=it.get(t);if(!i)return void H(ge(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&U.some((e=>e.desc.id===t)))return;const o={internalId:++L,ownerNode:i.onwerNode,desc:i.tooltip,timeoutId:0};n(3,U=[...U,o]);const a=null!==(r=i.tooltip.duration)&&void 0!==r?r:5e3;a&&(o.timeoutId=window.setTimeout((()=>{o.timeoutId=0,n(3,U=U.filter((t=>t.internalId!==o.internalId)))}),a))}(a.get("id"),a.get("multiple"));break;case"hide_tooltip":!function(t){t?n(3,U=U.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):H(ge(new Error("Missing id in hide_tooltip action")))}(a.get("id"));break;default:H(ge(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){H(ge(t,{additional:{url:e}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=B.get(t);n?n.getType()===e.type?n.setValue(e.value):H(ge(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):H(ge(new Error("Cannot find variable"),{additional:{name:t}}))}else H(ge(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:i,value:o}=n;!o||"number"!=typeof i&&void 0!==i?e(ge(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):Bc(t,e,n,(t=>{const a=t.getValue();if("number"==typeof i&&(i<0||i>a.length))e(ge(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:i,length:a.length}}));else{const e=a.slice();"number"==typeof i?e.splice(i,0,o.value):e.push(o.value),t.setValue(e)}}))}(B,H,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:i}=n;"number"==typeof i?Bc(t,e,n,(t=>{const o=t.getValue();if("number"==typeof i&&(i<0||i>=o.length))e(ge(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:i,length:o.length}}));else{const e=o.slice();e.splice(i,1),t.setValue(e)}})):e(ge(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(B,H,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(ge(new Error("Incorrect action"),{additional:{action:e}})):"undefined"!=typeof navigator&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e.content.value).catch((e=>{t(ge(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(ge(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(H,i);break;case"focus_element":{const t=i.element_id&&rt.get(i.element_id);t?t.focus():H(ge(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}default:H(ge(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function Q(t,e){if(t&&Array.isArray(t)){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url,o=r.typed;if(i){const t=Pe(i);if(t)if(Fe(t,S)){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?(Z(r),await Ft()):r.log_id&&(tt(r),await Ft())}else o&&Z(r)}t.forEach((t=>{t.log_id&&q("click",t)}))}}function tt(t){null==x||x(t)}const et=new Map,nt=new Map,rt=new Map,it=new Map;function ot(t){if(et.has(t))return et.get(t);H(ge(new Error("Missing instance with id"),{additional:{id:t}}))}const at=new Map;function st(t){for(const e of t)B.has(e)&&t.delete(e);return t}wt(fe,{logError:H,logStat:q,hasTemplate:function(t){return t in r},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in r;){if(({json:t,templateContext:e}=Ps(t,e,r,H)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:K,genClass:function(t){return"divkit-".concat(K())},execAction:Z,execAnyActions:Q,execCustomAction:tt,isRunning:function(t){return O[t]},setRunning:function(t,e){O[t]=e},registerInstance:function(t,e){et.has(t)?H(ge(new Error("Duplicate instance id"),{additional:{id:t}})):et.set(t,e)},unregisterInstance:function(t){et.delete(t)},registerParentOf:function(t,e){nt.set(t,e)},unregisterParentOf:function(t){nt.delete(t)},registerTooltip:function(t,e){it.has(e.id)&&H(ge(new Error("Duplicate tooltip id"),{additional:{id:e.id}})),it.set(e.id,{onwerNode:t,tooltip:e})},unregisterTooltip:function(t){it.delete(t.id),U.some((e=>e.desc.id===t.id))&&n(3,U=U.filter((e=>e.desc.id!==t.id)))},onTooltipClose:function(t){n(3,U=U.filter((e=>e.internalId!==t)))},tooltipRoot:C,registerFocusable:function(t,e){rt.set(t,e)},unregisterFocusable:function(t){rt.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(X[r]=X[r]||0,++X[r],Y[r])return Y[r];const i="".concat(K(),"-svg-filter");return n(4,Y=Object.assign(Object.assign({},Y),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);X[r]&&0==--X[r]&&n(4,Y=Object.keys(Y).reduce(((t,e)=>(X[e]&&(t[e]=Y[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Ss(t);const e=Dc(t,H);return e.vars.length?he(e.vars.map((t=>B.get(t)||function(t){const e=J.get(t)||de(void 0);return J.has(t)||J.set(t,e),e}(t))).filter(Ee),(()=>e.applyVars(B))):e.hasExpression?Ss(e.applyVars(B)):Ss(t)},getJsonWithVars:W,getStore:function(t){return at.has(t)||function(t){at.has(t)||at.set(t,jc[t]())}(t),at.get(t)},getVariable:function(t,e){const n=B.get(t);if(n){const r=n.getType();if(r!==e)return void H(ge(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==y?void 0:y[t]},getBuiltinProtocols:function(){return S},getExtension:function(t,e){const n=b.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:B,logError:H}},typefaceProvider:E,isDesktop:D,isPointerFocus:Lc,customComponents:V,componentDevtool:void 0}),wt(tn,{hasAction:()=>!1});const lt={setState(t){throw new Error("Not implemented")},getChild(t){if(ct&&ct.has(t))return ct.get(t);H(ge(new Error("Missing state block with id"),{additional:{id:t}}))}};let ct=null;function ut(t){if(t.type in na){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&H(ge(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=ra(t.name,t.type,t.value);z.set(t.name,e),B.set(t.name,e)}catch(e){H(ge(e,{additional:{name:t.name}}))}}}wt(ze,{registerInstance(t,e){ct||(ct=new Map),ct.has(t)?H(ge(new Error("Duplicate state with id"),{additional:{id:t}})):ct.set(t,e)},unregisterInstance(t){null==ct||ct.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 dt=null===(a=null==h?void 0:h.card)||void 0===a?void 0:a.variables;Array.isArray(dt)&&dt.forEach((t=>{if(t&&t.name){if(z.has(t.name))return void H(ge(new Error("Duplicate variable"),{additional:{name:t.name}}));ut(t)}}));const ht=h.palette;ht&&ht[j].forEach((t=>{if(z.has(t.name))H(ge(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=ra(t.name,"color",t.color);z.set(t.name,e),B.set(t.name,e)}catch(e){H(ge(e,{additional:{name:t.name}}))}}));for(const[t,e]of M)B.has(t)||B.set(t,e);T.subscribe((t=>{if(t&&!B.has(t)){const e=M.get(t);B.set(t,e);const n=J.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const pt=null===(l=null==h?void 0:h.card)||void 0===l?void 0:l.variable_triggers;Array.isArray(pt)&&pt.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void H(ge(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=Js(t.condition,{startRule:"JsonStringContents"}),i=tl(r);if(!i.length)return void H(ge(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return st(e),e.size?new Promise((t=>{const n=T.subscribe((()=>{st(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{he(i.map((t=>B.get(t))).filter(Ee),(()=>{const t=Ec(B,r);return t.warnings.forEach(H),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=W(t);e.log_id&&Z(e)})),e=Boolean(r.value)):H(ge(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){H(ge(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else H(ge(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const ft=null===(c=null==h?void 0:h.card)||void 0===c?void 0:c.timers;if(ft&&"undefined"!=typeof document){const t=R=new zc({logError:H,applyVars:W,hasVariableWithType:function(t,e){const n=B.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=B.get(t);n?n.setValue(e):H(ge(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:Q});ft.forEach((e=>t.createTimer(e)))}let gt;return bt((()=>{Uc++,1===Uc&&(window.addEventListener("keydown",Wc),window.addEventListener("pointerdown",Hc))})),_t((()=>{Uc--,Uc||(window.removeEventListener("keydown",Wc),window.removeEventListener("pointerdown",Hc)),R&&R.destroy(),U.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)}))})),t.$$set=t=>{"id"in t&&n(11,d=t.id),"json"in t&&n(9,h=t.json),"platform"in t&&n(12,f=t.platform),"theme"in t&&n(10,g=t.theme),"globalVariablesController"in t&&n(13,m=t.globalVariablesController),"mix"in t&&n(0,v=t.mix),"customization"in t&&n(14,y=t.customization),"builtinProtocols"in t&&n(15,$=t.builtinProtocols),"extensions"in t&&n(16,b=t.extensions),"onError"in t&&n(17,_=t.onError),"onStat"in t&&n(18,w=t.onStat),"onCustomAction"in t&&n(19,x=t.onCustomAction),"onComponent"in t&&n(20,k=t.onComponent),"typefaceProvider"in t&&n(21,E=t.typefaceProvider),"fetchInit"in t&&n(22,A=t.fetchInit),"tooltipRoot"in t&&n(23,C=t.tooltipRoot),"customComponents"in t&&n(24,V=t.customComponents)},t.$$.update=()=>{if(1024&t.$$.dirty[0]|4&t.$$.dirty[1]&&("light"===g||"dark"===g?n(32,j=g):"system"===g?"undefined"!=typeof matchMedia?(P||(n(33,P=matchMedia("(prefers-color-scheme: dark)")),P.addListener(F)),n(32,j=P.matches?"dark":"light")):n(32,j="light"):H(ge(new Error("Unsupported theme")))),2&t.$$.dirty[1]&&j&&(ht&&ht[j].forEach((t=>{const e=B.get(t.name);e&&e.setValue(t.color)}))),512&t.$$.dirty[0]){n(1,I=!1);const t=function(t){if(!t)return ge(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return ge(new Error("Missing card"));if(!e.states||!e.states.length)return ge(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in ms)return ge(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return ge(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return ge(new Error("Missing state_id"),{additional:{index:t}})}return null}(h);t&&(n(1,I=!0),H(t))}512&t.$$.dirty[0]&&(r=h.templates||{}),1073742336&t.$$.dirty[0]&&(null===n(30,s=null==h?void 0:h.card)||void 0===s?void 0:s.variables)&&Array.isArray(h.card.variables)&&h.card.variables!==dt&&h.card.variables.forEach((t=>{t&&t.name&&!z.has(t.name)&&ut(t)})),512&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(34,i=null===n(31,u=null==h?void 0:h.card)||void 0===u?void 0:u.states),6&t.$$.dirty[0]|8&t.$$.dirty[1]&&(!i||I||N||n(5,gt={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:i.map((t=>({state_id:t.state_id.toString(),div:t.div})))}))},[v,I,N,U,Y,gt,o,D,{},h,g,d,f,m,y,$,b,_,w,x,k,E,A,C,V,function(t){n(10,g=t)},function(){return new Map},function(){return new Map},function(t){n(9,h=t)},function(t){Z(W(t))},s,u,j,P,i]}const Kc=class extends ce{constructor(t){super(),se(this,t,Gc,Rc,d,{id:11,json:9,platform:12,theme:10,globalVariablesController:13,mix:0,customization:14,builtinProtocols:15,extensions:16,onError:17,onStat:18,onCustomAction:19,onComponent:20,typefaceProvider:21,fetchInit:22,tooltipRoot:23,customComponents:24,setTheme:25,getDebugVariables:26,getDebugAllVariables:27,setData:28,execAction:29},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[25]}get getDebugVariables(){return this.$$.ctx[26]}get getDebugAllVariables(){return this.$$.ctx[27]}get setData(){return this.$$.ctx[28]}get execAction(){return this.$$.ctx[29]}};class Yc{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 Ft()}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 Xc(t){return t instanceof HTMLElement}function Zc(t){return class{constructor(t){this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(Xc);r.forEach((t=>{t.style.display="none"})),e.setAttribute("data-lottie","true");const i=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const o=Number(this.params.repeat_count||-1),a=()=>{var t,i;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(i=this.wrapper.parentNode)||void 0===i||i.removeChild(this.wrapper),this.wrapper=void 0);const o=new Error("Failed to load lottie animation");o.level="error",o.additional={url:this.params.lottie_url},n.logError(o)};this.loadData().then((e=>{const n=this.animItem=t({container:i,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==o){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==o&&e===o?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const Qc=["target","hydrate"];function tu(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,Qc),i=new Kc({target:e,props:r,hydrate:n});return{$destroy(){i.$destroy()},execAction(t){i.execAction(t)},setTheme(t){i.setTheme(t)},setData(t){i.setData(t)}}}(window.Ya=window.Ya||{}).Divkit=e})();
2
2
  //# sourceMappingURL=client-hydratable.js.map