@divkitframework/divkit 26.0.0 → 26.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:()=>ps,createGlobalVariablesController:()=>is,createVariable:()=>po,lottieExtensionBuilder:()=>gs,render:()=>ms});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 l(t){t.forEach(o)}function s(t){return"function"==typeof t}let c;function u(t,e){return 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){return 0===Object.keys(t).length}function p(t,...e){if(null==t)return n;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function f(t,e,n){t.$$.on_destroy.push(p(e,n))}function g(t,e,n,r){if(t){const i=m(t,e,n,r);return t[0](i)}}function m(t,e,n,r){return t[1]&&r?i(n.ctx.slice(),t[1](r(e))):n.ctx}function v(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 y(t,e,n,r,i,o){if(i){const a=m(e,n,r,o);t.p(a,i)}}function $(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&&s(t.destroy)?t.destroy:n}const w="undefined"!=typeof window;let x=w?()=>window.performance.now():()=>Date.now(),k=w?t=>requestAnimationFrame(t):n;const E=new Set;function C(t){E.forEach((e=>{e.c(t)||(E.delete(e),e.f())})),0!==E.size&&k(C)}let A=!1;function V(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function D(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function P(t){const e=I("style");return function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(D(t),e),e.sheet}function j(t,e){if(A){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:V(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,i=Math.max(l,i)}const o=[],a=[];let l=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);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 S(t,e,n){A&&!n?j(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function F(t){t.parentNode&&t.parentNode.removeChild(t)}function N(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function I(t){return document.createElement(t)}function M(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function z(t){return document.createTextNode(t)}function T(){return z(" ")}function O(){return z("")}function J(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function B(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function R(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?t[r]=e[r]:B(t,r,e[r])}function U(t){return Array.from(t.childNodes)}function W(t,e,n,r,i=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const o=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function L(t,e,n,r){return W(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 H(t,e,n){return L(t,e,n,I)}function q(t,e,n){return L(t,e,n,M)}function G(t,e){return W(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}),(()=>z(e)),!0)}function K(t){return G(t," ")}function X(t,e){e=""+e,t.data!==e&&(t.data=e)}function Z(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function Y(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}function Q(t,e){return new t(e)}const tt=new Map;let et,nt=0;function rt(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(", "),nt-=i,nt||k((()=>{nt||(tt.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&F(e)})),tt.clear())})))}function it(t){et=t}function ot(){if(!et)throw new Error("Function called outside component initialization");return et}function at(t){ot().$$.on_mount.push(t)}function lt(t){ot().$$.on_destroy.push(t)}function st(t,e){return ot().$$.context.set(t,e),e}function ct(t){return ot().$$.context.get(t)}function ut(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const dt=[],ht=[];let pt=[];const ft=[],gt=Promise.resolve();let mt=!1;function vt(){mt||(mt=!0,gt.then(xt))}function yt(){return vt(),gt}function $t(t){pt.push(t)}const _t=new Set;let bt,wt=0;function xt(){if(0!==wt)return;const t=et;do{try{for(;wt<dt.length;){const t=dt[wt];wt++,it(t),kt(t.$$)}}catch(t){throw dt.length=0,wt=0,t}for(it(null),dt.length=0,wt=0;ht.length;)ht.pop()();for(let t=0;t<pt.length;t+=1){const e=pt[t];_t.has(e)||(_t.add(e),e())}pt.length=0}while(dt.length);for(;ft.length;)ft.pop()();mt=!1,_t.clear(),it(t)}function kt(t){if(null!==t.fragment){t.update(),l(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach($t)}}function Et(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(`${e?"intro":"outro"}${n}`))}const Ct=new Set;let At;function Vt(){At={r:0,c:[],p:At}}function Dt(){At.r||l(At.c),At=At.p}function Pt(t,e){t&&t.i&&(Ct.delete(t),t.i(e))}function jt(t,e,n,r){if(t&&t.o){if(Ct.has(t))return;Ct.add(t),At.c.push((()=>{Ct.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const St={duration:0};function Ft(t,e,i){const o={direction:"in"};let a,l,c=e(t,i,o),u=!1,d=0;function h(){a&&rt(t,a)}function p(){const{delay:e=0,duration:i=300,easing:o=r,tick:s=n,css:p}=c||St;p&&(a=function(t,e,n,r,i,o,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*o(t);c+=100*t+`%{${a(r,1-r)}}\n`}const u=c+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,h=D(t),{stylesheet:p,rules:f}=tt.get(h)||function(t,e){const n={stylesheet:P(e),rules:{}};return tt.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${i}ms 1 both`,nt+=1,d}(t,0,1,i,e,o,p,d++)),s(0,1);const f=x()+e,g=f+i;l&&l.abort(),u=!0,$t((()=>Et(t,!0,"start"))),l=function(t){let e;return 0===E.size&&k(C),{promise:new Promise((n=>{E.add(e={c:t,f:n})})),abort(){E.delete(e)}}}((e=>{if(u){if(e>=g)return s(1,0),Et(t,!0,"end"),h(),u=!1;if(e>=f){const t=o((e-f)/i);s(t,1-t)}}return u}))}let f=!1;return{start(){f||(f=!0,rt(t),s(c)?(c=c(o),(bt||(bt=Promise.resolve(),bt.then((()=>{bt=null}))),bt).then(p)):p())},invalidate(){f=!1},end(){u&&(h(),u=!1)}}}const Nt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function It(t,e){jt(t,1,1,(()=>{e.delete(t.key)}))}function Mt(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],l=e[o];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[o]=l}else for(const t in a)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let zt;function Tt(t){t&&t.c()}function Ot(t,e){t&&t.l(e)}function Jt(t,e,n,r){const{fragment:i,after_update:a}=t.$$;i&&i.m(e,n),r||$t((()=>{const e=t.$$.on_mount.map(o).filter(s);t.$$.on_destroy?t.$$.on_destroy.push(...e):l(e),t.$$.on_mount=[]})),a.forEach($t)}function Bt(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];pt.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),pt=e}(n.after_update),l(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Rt(t,e,r,i,o,s,c,u=[-1]){const d=et;it(t);const h=t.$$={fragment:null,ctx:[],props:s,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||{},((e,n,...r)=>{const i=r.length?r[0]:n;return h.ctx&&o(h.ctx[e],h.ctx[e]=i)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](i),p&&function(t,e){-1===t.$$.dirty[0]&&(dt.push(t),vt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,l(h.before_update),h.fragment=!!i&&i(h.ctx),e.target){if(e.hydrate){A=!0;const t=U(e.target);h.fragment&&h.fragment.l(t),t.forEach(F)}else h.fragment&&h.fragment.c();e.intro&&Pt(t.$$.fragment),Jt(t,e.target,e.anchor,e.customElement),A=!1,xt()}it(d)}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&&(zt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(o).filter(s);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){l(this.$$.on_disconnect)}$destroy(){Bt(this,1),this.$destroy=n}$on(t,e){if(!s(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){this.$$set&&!h(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class Ut{$destroy(){Bt(this,1),this.$destroy=n}$on(t,e){if(!s(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){this.$$set&&!h(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Wt=[];function Lt(t,e=n){let r;const i=new Set;function o(e){if(o=e,((n=t)!=n?o==o:n!==o||n&&"object"==typeof n||"function"==typeof n)&&(t=e,r)){const e=!Wt.length;for(const e of i)e[1](),Wt.push(e,t);if(e){for(let t=0;t<Wt.length;t+=2)Wt[t][0](Wt[t+1]);Wt.length=0}}var n,o}return{set:o,update:function(e){o(e(t))},subscribe:function(a,l=n){const s=[a,l];return i.add(s),1===i.size&&(r=e(o)||n),a(t),()=>{i.delete(s),0===i.size&&r&&(r(),r=null)}}}}function Ht(t,e,r){const i=!Array.isArray(t),o=i?[t]:t,a=e.length<2;return c=t=>{let r=!1;const c=[];let u=0,d=n;const h=()=>{if(u)return;d();const r=e(i?c[0]:c,t);a?t(r):d=s(r)?r:n},f=o.map(((t,e)=>p(t,(t=>{c[e]=t,u&=~(1<<e),r&&h()}),(()=>{u|=1<<e}))));return r=!0,h(),function(){l(f),d(),r=!1}},{subscribe:Lt(r,c).subscribe};var c}const qt={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"},Gt=Symbol("root");function Kt(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 Xt={text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},Zt={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"};function Yt(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 Qt(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 te(t){let e=Qt(t);return"0"===e&&(e+="em"),e}function ee(t,e){for(;t.length<e;)t="0"+t;return t}function ne(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=re(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>ee(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 re(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,l=2===i.length?i:i+i,s=2===o.length?o:o+o,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(l,16),b:parseInt(s,16)}}const[t,n,r,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function ie(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 oe=Boolean;function ae(t){if(1===t.length&&"solid"===t[0].type)return{color:ne(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=ne(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(oe);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>ne(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:ce(t.bg.scale),pos:ue(t.bg),image:'url("'+ie(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(oe);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=te(r.value):"relative"===r.type&&(i=le[r.value]));const o=se(t.bg.center_x),a=se(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=>ne(t))).join(",")+")"}}({bg:t}):void 0)).filter(oe).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 le={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function se(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return te(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function ce(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function ue(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 de(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function he(t,e){return e.has(t)}function pe(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 fe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pe(Object(n),!0).forEach((function(e){ge(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ge(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 me(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function ve(t,e){e&&t.push(e)}function ye(t,e,n){const r=[];ve(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&ve(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const $e=Symbol("state");function _e(t){return Qt(t.top||0)+" "+Qt(t.right||0)+" "+Qt(t.bottom||0)+" "+Qt(t.left||0)}function be(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function we(t){return be(t)&&t>=0}function xe(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]&&!we(n[t]))return e;return _e(t)}function ke(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Ee=Object.prototype.hasOwnProperty;function Ce(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(!Ee.call(e,i)||!Ce(t[i],e[i]))return!1}return!0}function Ae(t,e){return Ce(t,e)?e:t}function Ve(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function De(t,e){const n=Number(t);return isNaN(n)?e:n}function Pe(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Pe(t))})):e.push(t),e}function je(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!we(t[n[r]]))return e;return t}function Se(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=>Qt((t||e)/n*10))).join(" ")}function Fe(){}const Ne=Symbol("action");function Ie(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function Me(t){var e;let n,r,o,a,c,u,d,h;const p=t[19].default,f=g(p,t,t[18],null);let m=[{class:r=t[2]+(t[9]?" ".concat(t[6]?qt.root__clickable:qt["root__clickable-no-transition"]," ").concat(qt.root__unselectable):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?qt["root_disabled-context-menu"]:"")},{style:t[3]},{role:o=t[9]?"button":null},{tabindex:a=t[9]?0:null},t[4]],_={};for(let t=0;t<m.length;t+=1)_=i(_,m[t]);return{c(){n=I("span"),f&&f.c(),this.h()},l(t){n=H(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=U(n);f&&f.l(e),e.forEach(F),this.h()},h(){R(n,_)},m(e,r){S(e,n,r),f&&f.m(n,null),u=!0,d||(h=[b(c=t[5].call(null,n)),J(n,"click",(function(){s(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),J(n,"click",t[21]),J(n,"dblclick",(function(){var e,n;s(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),J(n,"touchstart",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),J(n,"touchmove",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),J(n,"touchend",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),J(n,"touchcancel",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),J(n,"keydown",t[15])],d=!0)},p(e,i){var l;t=e,f&&f.p&&(!u||262144&i)&&y(f,p,t,t[18],u?v(p,t[18],i,null):$(t[18]),null),R(n,_=Mt(m,[(!u||582&i&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?qt.root__clickable:qt["root__clickable-no-transition"]," ").concat(qt.root__unselectable):"")+" "+(null!==(l=t[1])&&void 0!==l&&l.length?qt["root_disabled-context-menu"]:"")))&&{class:r},(!u||8&i)&&{style:t[3]},(!u||512&i&&o!==(o=t[9]?"button":null))&&{role:o},(!u||512&i&&a!==(a=t[9]?0:null))&&{tabindex:a},16&i&&t[4]]))},i(t){u||(Pt(f,t),u=!0)},o(t){jt(f,t),u=!1},d(t){t&&F(n),f&&f.d(t),d=!1,l(h)}}}function ze(t){var e;let n,r,o,a,c,u;const d=t[19].default,h=g(d,t,t[18],null);let p=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?qt.root__clickable:qt["root__clickable-no-transition"])+" "+(null!==(e=t[1])&&void 0!==e&&e.length?qt["root_disabled-context-menu"]:"")},t[4]],f={};for(let t=0;t<p.length;t+=1)f=i(f,p[t]);return{c(){n=I("a"),h&&h.c(),this.h()},l(t){n=H(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=U(n);h&&h.l(e),e.forEach(F),this.h()},h(){R(n,f)},m(e,r){S(e,n,r),h&&h.m(n,null),a=!0,c||(u=[b(o=t[5].call(null,n)),J(n,"click",t[10]),J(n,"click",t[20]),J(n,"dblclick",(function(){var e,n;s(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),J(n,"touchstart",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),J(n,"touchmove",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),J(n,"touchend",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),J(n,"touchcancel",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),J(n,"keydown",t[15])],c=!0)},p(e,i){var o;t=e,h&&h.p&&(!a||262144&i)&&y(h,d,t,t[18],a?v(d,t[18],i,null):$(t[18]),null),R(n,f=Mt(p,[(!a||128&i)&&{href:t[7]},(!a||256&i)&&{target:t[8]},(!a||8&i)&&{style:t[3]},(!a||70&i&&r!==(r=t[2]+" "+(t[6]?qt.root__clickable:qt["root__clickable-no-transition"])+" "+(null!==(o=t[1])&&void 0!==o&&o.length?qt["root_disabled-context-menu"]:"")))&&{class:r},16&i&&t[4]]))},i(t){a||(Pt(h,t),a=!0)},o(t){jt(h,t),a=!1},d(t){t&&F(n),h&&h.d(t),c=!1,l(u)}}}function Te(t){let e,n,r,i;const o=[ze,Me],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=o[e](t),{c(){n.c(),r=O()},l(t){n.l(t),r=O()},m(t,n){a[e].m(t,n),S(t,r,n),i=!0},p(t,i){let[s]=i,c=e;e=l(t),e===c?a[e].p(t,s):(Vt(),jt(a[c],1,1,(()=>{a[c]=null})),Dt(),n=a[e],n?n.p(t,s):(n=a[e]=o[e](t),n.c()),Pt(n,1),n.m(r.parentNode,r))},i(t){i||(Pt(n),i=!0)},o(t){jt(n),i=!1},d(t){a[e].d(t),t&&F(r)}}}function Oe(t,e,n){let{$$slots:r={},$$scope:i}=e,{actions:o}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=Fe}=e,{customAction:h=null}=e,{isNativeActionAnimation:p=!0}=e;const f=ct(Gt),g=ct(Ne);st(Ne,{hasAction:()=>Boolean(g.hasAction()||(null==o?void 0:o.length))});let m,v="",y=-1,$=null,_=!1,b=!1;return t.$$set=t=>{"actions"in t&&n(16,o=t.actions),"doubleTapActions"in t&&n(0,a=t.doubleTapActions),"longTapActions"in t&&n(1,l=t.longTapActions),"cls"in t&&n(2,s=t.cls),"style"in t&&n(3,c=t.style),"attrs"in t&&n(4,u=t.attrs),"use"in t&&n(5,d=t.use),"customAction"in t&&n(17,h=t.customAction),"isNativeActionAnimation"in t&&n(6,p=t.isNativeActionAnimation),"$$scope"in t&&n(18,i=t.$$scope)},t.$$.update=()=>{if(196736&t.$$.dirty){if(Array.isArray(o)&&(null==o?void 0:o.length))for(let t=0;t<o.length;++t){const e=o[t].url;if(e){n(7,v=e),n(8,m=o[t].target||void 0);break}}Array.isArray(o)&&(null==o?void 0:o.length)&&g.hasAction()&&(n(7,v=""),f.logError(Kt(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:o}}))),n(9,b=Boolean(h)),v&&!he(de(v),f.getBuiltinProtocols())?(n(7,v=""),n(9,b=!0)):!v&&Array.isArray(o)&&(null==o?void 0:o.length)&&(n(9,b=!0),f.logError(Kt(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:o}})))}},[a,l,s,c,u,d,p,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():o&&(o.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=de(e);return n&&!he(n,f.getBuiltinProtocols())}))&&t.preventDefault(),f.execAnyActions(o)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||f.execAnyActions(a,!0)},function(t){t.touches.length>1||($=Ie(t),_=!1,y=Date.now())},function(t){if(!$)return;const e=Ie(t);(Math.abs($.x-e.x)>8||Math.abs($.y-e.y)>8)&&(_=!0)},function(){!$||y<0||(!_&&Date.now()-y>=400&&f.execAnyActions(l,!0),$=null,y=-1)},function(t){t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(o)&&o.length&&(f.execAnyActions(o),t.preventDefault())},o,h,i,r,function(e){ut.call(this,t,e)},function(e){ut.call(this,t,e)}]}const Je=class extends Ut{constructor(t){super(),Rt(this,t,Oe,Te,d,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,isNativeActionAnimation:6})}},Be={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function Re(t){return be(t)&&t>0}function Ue(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(Re(t.radius))return"blur(".concat(te(t.radius/2),")")}else e(Kt(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function We(t,e,n){const r=t.slice();return r[5]=e[n],r}function Le(t){let e,n,r;return{c(){e=I("span"),this.h()},l(t){e=H(t,"SPAN",{class:!0,style:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=Be["outer-background__item"]),B(e,"style",r=Yt(t[5].style))},m(t,n){S(t,e,n)},p(t,n){2&n&&r!==(r=Yt(t[5].style))&&B(e,"style",r)},d(t){t&&F(e)}}}function He(t){let e,n,r,i,o,a;return{c(){e=I("img"),this.h()},l(t){e=H(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)||B(e,"src",n),B(e,"alt",""),B(e,"aria-hidden","true"),B(e,"loading","lazy"),B(e,"decoding","async"),B(e,"class",r=Be["outer-background__item"]),B(e,"style",i=Yt(t[5].style))},m(n,r){S(n,e,r),o||(a=J(e,"error",t[2]),o=!0)},p(t,r){2&r&&!u(e.src,n=t[5].image_url)&&B(e,"src",n),2&r&&i!==(i=Yt(t[5].style))&&B(e,"style",i)},d(t){t&&F(e),o=!1,a()}}}function qe(t){let e;function n(t,e){return t[5].image_url?He:Le}let r=n(t),i=r(t);return{c(){i.c(),e=O()},l(t){i.l(t),e=O()},m(t,n){i.m(t,n),S(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){i.d(t),t&&F(e)}}}function Ge(t){let e,r,i=t[1],o=[];for(let e=0;e<i.length;e+=1)o[e]=qe(We(t,i,e));return{c(){e=I("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=H(t,"SPAN",{class:!0});var n=U(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(F),this.h()},h(){B(e,"class",r=Be["outer-background"]+(t[0]?" "+Be["outer-background_clip"]:"")),Z(e,"border-radius",t[0])},m(t,n){S(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=t[1],n=0;n<i.length;n+=1){const r=We(t,i,n);o[n]?o[n].p(r,a):(o[n]=qe(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=Be["outer-background"]+(t[0]?" "+Be["outer-background_clip"]:""))&&B(e,"class",r),1&a&&Z(e,"border-radius",t[0])},i:n,o:n,d(t){t&&F(e),N(o,t)}}}function Ke(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=ct(Gt);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=Ue(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Be["outer-background__item_hidden"])},i]}const Xe=class extends Ut{constructor(t){super(),Rt(this,t,Ke,Ge,d,{background:3,radius:0})}};function Ze(t){let e,n;return e=new Je({props:{use:t[32],cls:t[0]+" "+ye("outer",Zt,t[15]),style:Yt(t[13]),actions:t[10],doubleTapActions:t[11],longTapActions:t[12],attrs:t[6],isNativeActionAnimation:!t[4].length||nn(t[4]),$$slots:{default:[tn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};32769&n[0]&&(r.cls=t[0]+" "+ye("outer",Zt,t[15])),8192&n[0]&&(r.style=Yt(t[13])),1024&n[0]&&(r.actions=t[10]),2048&n[0]&&(r.doubleTapActions=t[11]),4096&n[0]&&(r.longTapActions=t[12]),64&n[0]&&(r.attrs=t[6]),16&n[0]&&(r.isNativeActionAnimation=!t[4].length||nn(t[4])),174&n[0]|262144&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Ye(t){let e,n;return e=new Xe({props:{background:t[5],radius:t[2]}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Qe(t){let e,n,r;return{c(){e=I("span"),this.h()},l(t){e=H(t,"SPAN",{class:!0,style:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=Zt.outer__border),B(e,"style",r=Yt(t[1]))},m(t,n){S(t,e,n)},p(t,n){2&n[0]&&r!==(r=Yt(t[1]))&&B(e,"style",r)},d(t){t&&F(e)}}}function tn(t){let e,n,r,i=t[3]&&Ye(t);const o=t[110].default,a=g(o,t,t[111],null);let l=t[7]&&Qe(t);return{c(){i&&i.c(),e=O(),a&&a.c(),l&&l.c(),n=O()},l(t){i&&i.l(t),e=O(),a&&a.l(t),l&&l.l(t),n=O()},m(t,o){i&&i.m(t,o),S(t,e,o),a&&a.m(t,o),l&&l.m(t,o),S(t,n,o),r=!0},p(t,s){t[3]?i?(i.p(t,s),8&s[0]&&Pt(i,1)):(i=Ye(t),i.c(),Pt(i,1),i.m(e.parentNode,e)):i&&(Vt(),jt(i,1,1,(()=>{i=null})),Dt()),a&&a.p&&(!r||262144&s[3])&&y(a,o,t,t[111],r?v(o,t[111],s,null):$(t[111]),null),t[7]?l?l.p(t,s):(l=Qe(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Pt(i),Pt(a,t),r=!0)},o(t){jt(i),jt(a,t),r=!1},d(t){i&&i.d(t),t&&F(e),a&&a.d(t),l&&l.d(t),t&&F(n)}}}function en(t){let e,n,r=!t[8]&&!t[9]&&Ze(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[8]||t[9]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),768&n[0]&&Pt(r,1)):(r=Ze(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function nn(t){return t.some((t=>"native"===t.name))}function rn(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,F,N,I,M,z,T,O,J,B,R,U,W,L,H=n,q=n,G=n,K=n,X=n,Z=n,Y=n,Q=n,tt=n,et=n,nt=n,rt=n,it=n,ot=n,at=n,lt=n,st=n;t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Y())),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((()=>lt())),t.$$.on_destroy.push((()=>st()));let{$$slots:ut={},$$scope:dt}=e;var ht,pt,ft,gt,mt,vt;let{json:$t={}}=e,{origJson:_t}=e,{templateContext:bt}=e,{cls:wt=""}=e,{style:xt}=e,{layoutParams:kt={}}=e,{customDescription:Et=!1}=e,{customPaddings:Ct=!1}=e,{customActions:At=""}=e,{additionalPaddings:Vt=null}=e,{heightByAspect:Dt=!1}=e;const Pt={left:"start",center:"center",right:"end"},jt={top:"start",center:"center",bottom:"end",baseline:"baseline"},St=ct(Gt),Ft=ct($e);let Nt,It,Mt,zt,Tt,Ot,Jt,Bt,Rt,Ut,Wt,Lt=null,Ht={},qt={},Xt=!1,Zt=1,Yt="transparent",ee=0,re={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},ie="",le=null,se="",ce={},ue=0,pe=0,ge=0,ve=!1,ye=!1,be={},Ee=0,Ce=0,Fe=0,Ne=!1,Ie=!1,Me=1;const ze=kt.fakeElement?[]:$t.transition_triggers||["state_change","visibility_change"],Te=-1!==ze.indexOf("state_change")&&$t.id,Oe=-1!==ze.indexOf("visibility_change")&&$t.id;let Je,Be,Re,Ue,We,Le,He,qe=[],Ge=[],Ke=[],Xe=[],Ze="";function Ye(t){const e=De(t.start_value,1),n=De(t.end_value,1),i=ke(t.start_delay,0),o=ke(t.duration,300),a=Ve(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(79,Ue=e),r(80,We=n),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return r(81,Le=e),r(82,He=n),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return St.logError(Kt(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let Qe,tn,en=!1,nn="visible",rn=0,on=0;return t.$$set=t=>{"json"in t&&r(33,$t=t.json),"origJson"in t&&r(34,_t=t.origJson),"templateContext"in t&&r(35,bt=t.templateContext),"cls"in t&&r(0,wt=t.cls),"style"in t&&r(36,xt=t.style),"layoutParams"in t&&r(37,kt=t.layoutParams),"customDescription"in t&&r(38,Et=t.customDescription),"customPaddings"in t&&r(39,Ct=t.customPaddings),"customActions"in t&&r(40,At=t.customActions),"additionalPaddings"in t&&r(41,Vt=t.additionalPaddings),"heightByAspect"in t&&r(42,Dt=t.heightByAspect),"$$scope"in t&&r(111,dt=t.$$scope)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&(r(31,i=St.getDerivedFromVars($t.border)),st(),st=p(i,(t=>r(109,L=t)))),2&t.$$.dirty[0]|8384512&t.$$.dirty[1]|65536&t.$$.dirty[3]){let t={},e={},n=!1,i="";if(L){if(L.has_shadow){const e=L.shadow;t["box-shadow"]=e?Qt((null===r(44,pt=null===r(43,ht=e.offset)||void 0===ht?void 0:ht.x)||void 0===pt?void 0:pt.value)||0)+" "+Qt((null===r(46,gt=null===r(45,ft=e.offset)||void 0===ft?void 0:ft.y)||void 0===gt?void 0:gt.value)||0)+" "+Qt(null!==r(47,mt=e.blur)&&void 0!==mt?mt:2)+" "+ne(e.color||"#000000",null!==r(48,vt=e.alpha)&&void 0!==vt?vt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(L.stroke&&(n=!0,r(50,Zt=ke(L.stroke.width,Zt)),r(51,Yt=ne(L.stroke.color,1,Yt)),e.border="".concat(Qt(Zt)," solid ").concat(Yt)),L.corners_radius?(r(53,re=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]&&!we(n[t]))return e;return t}(L.corners_radius,re)),e["border-radius"]=t["border-radius"]=Se(re)):L.corner_radius&&(r(52,ee=ke(L.corner_radius,ee)),r(53,re={"top-left":ee,"top-right":ee,"bottom-right":ee,"bottom-left":ee}),e["border-radius"]=t["border-radius"]=Qt(ee)),n&&Zt&&(L.corners_radius||L.corner_radius)){let t=Object.assign({},re);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+Zt/2})),i=Se(t)}}r(49,Ht=Ae(t,Ht)),r(1,qt=Ae(e,qt)),r(7,Xt=n),r(2,ie=i)}if(4&t.$$.dirty[1]&&(r(30,o=St.getDerivedFromVars($t.paddings)),lt(),lt=p(o,(t=>r(108,W=t)))),8388864&t.$$.dirty[1]|32768&t.$$.dirty[3]&&r(54,le=je(W&&!Ct?W:void 0,le)),8389632&t.$$.dirty[1]&&r(90,a=_e(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}(le,Vt))),4&t.$$.dirty[1]&&(r(29,l=St.getDerivedFromVars($t.margins)),ot(),ot=p(l,(t=>r(106,R=t)))),16777216&t.$$.dirty[1]|8192&t.$$.dirty[3]&&r(55,se=xe(R,se)),4&t.$$.dirty[1]&&(r(28,s=St.getDerivedFromVars($t.width)),rt(),rt=p(s,(t=>r(104,J=t)))),4&t.$$.dirty[1]&&(r(27,c=St.getDerivedFromVars($t.alignment_horizontal)),at(),at=p(c,(t=>r(107,U=t)))),570425408&t.$$.dirty[1]|26624&t.$$.dirty[3]){let t,e,n,i,o={},a=0,l=0,s=!1,c=!1;const u=null==J?void 0:J.type;if("fixed"===u)r(60,ue=ke(null==J?void 0:J.value,ue)),e=Qt(ue);else if("wrap_content"!==u&&(kt.overlapParent||"match_parent"!==u&&u||!kt.parentHorizontalWrapContent))t="parent","vertical"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,St.logError(Kt(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===kt.parentLayoutOrientation?e="calc(100% - ".concat(te(((null==R?void 0:R.left)||0)+((null==R?void 0:R.right)||0)),")"):"horizontal"===kt.parentContainerOrientation&&(a=J&&"weight"in J&&J.weight||1,kt.parentContainerWrap&&(s=!0));else{if(t="content",("wrap_content"===u&&(null==J?void 0:J.constrained)||("match_parent"===u||!u)&&kt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===kt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=J;t.min_size&&we(t.min_size.value)&&(n=Qt(t.min_size.value)),t.max_size&&we(t.max_size.value)&&(i=Qt(t.max_size.value))}"match_parent"!==u&&u||St.logError(Kt(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}if("parent"===t)o["halign-self"]="stretch";else{const t=U;o["halign-self"]="left"===t||"center"===t||"right"===t?Pt[t]:kt.parentHAlign||"start"}t&&(o.width=t),r(57,Mt=e),r(58,zt=n),r(59,Tt=i),r(61,pe=a),r(62,ge=l),r(56,ce=Ae(o,ce)),r(63,ve=s),r(8,ye=c)}if(4&t.$$.dirty[1]&&(r(26,u=St.getDerivedFromVars($t.height)),nt(),nt=p(u,(t=>r(103,O=t)))),4&t.$$.dirty[1]&&(r(25,d=St.getDerivedFromVars($t.alignment_vertical)),it(),it=p(d,(t=>r(105,B=t)))),2112&t.$$.dirty[1]|68&t.$$.dirty[2]|13312&t.$$.dirty[3]){let t,e,n,i,o={},a=0,l=0,s=!1,c=!1;const u=null==O?void 0:O.type;if(Dt);else if("fixed"===u)r(68,Ee=ke(null==O?void 0:O.value,Ee)),e=Qt(Ee);else if("match_parent"!==u||!kt.overlapParent&&kt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==O?void 0:O.constrained)||"match_parent"===u&&kt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===kt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=O;(null==t?void 0:t.min_size)&&we(t.min_size.value)&&(n=Qt(t.min_size.value)),(null==t?void 0:t.max_size)&&we(t.max_size.value)&&(i=Qt(t.max_size.value))}"match_parent"===u&&St.logError(Kt(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,St.logError(Kt(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===kt.parentLayoutOrientation?e="calc(100% - ".concat(te(((null==R?void 0:R.top)||0)+((null==R?void 0:R.bottom)||0)),")"):"vertical"===kt.parentContainerOrientation&&(a=(null==O?void 0:O.weight)||1,kt.parentContainerWrap&&(s=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=B;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===kt.parentContainerOrientation?o["valign-self"]=jt[t]:o["valign-self"]=kt.parentVAlign||"start"}t&&(o.height=t),r(65,Ot=e),r(66,Jt=n),r(67,Bt=i),r(69,Ce=a),r(70,Fe=l),r(64,be=Ae(o,be)),r(71,Ne=s),r(9,Ie=c)}var e,n;if(64&t.$$.dirty[1]&&r(93,h=!!kt.overlapParent||void 0),64&t.$$.dirty[1]|3072&t.$$.dirty[3]&&r(92,f=kt.overlapParent&&(!J||"match_parent"===J.type)&&"match_parent"===(null==O?void 0:O.type)),64&t.$$.dirty[1]&&r(91,g=kt.gridArea?"".concat(kt.gridArea.y+1,"/").concat(kt.gridArea.x+1,"/span ").concat(kt.gridArea.rowSpan,"/span ").concat(kt.gridArea.colSpan):void 0),4&t.$$.dirty[1]&&(r(24,m=St.getDerivedFromVars($t.alpha)),et(),et=p(m,(t=>r(102,T=t)))),1024&t.$$.dirty[2]|512&t.$$.dirty[3]&&(r(72,(n=Me,Me=!we(e=T)||void 0===e||e>1?n:Number(e))),r(73,Rt=1===Me?void 0:Me)),4&t.$$.dirty[1]&&(r(23,v=St.getDerivedFromVars($t.accessibility)),tt(),tt=p(v,(t=>r(101,z=t)))),128&t.$$.dirty[1]|256&t.$$.dirty[3]&&(r(6,It=void 0),z&&!Et&&z.description&&(r(6,It={}),r(6,It["aria-label"]=z.description,It))),4&t.$$.dirty[1]&&(r(22,y=St.getDerivedFromVars($t.background)),Q(),Q=p(y,(t=>r(5,M=t)))),44&t.$$.dirty[0]&&(r(74,Ut={}),r(3,Wt=!1),Array.isArray(M)&&(r(3,Wt=M.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(ie)),!Wt))){const t=ae(M);r(74,Ut["background-color"]=t.color,Ut),r(74,Ut["background-image"]=t.image,Ut),r(74,Ut["background-size"]=t.size,Ut),r(74,Ut["background-position"]=t.position,Ut),r(74,Ut["background-repeat"]="no-repeat",Ut)}if(4&t.$$.dirty[1]&&(r(75,Je=void 0),Te&&$t.transition_in&&St.isRunning("stateChange")&&r(75,Je=!0)),4&t.$$.dirty[1]&&(r(77,Re=void 0),Te&&$t.transition_change&&St.isRunning("stateChange")&&Ft.hasTransitionChange($t.id)&&r(77,Re=!0)),4&t.$$.dirty[1]&&(r(21,$=St.getDerivedFromVars($t.action)),Z(),Z=p($,(t=>r(99,N=t)))),4&t.$$.dirty[1]&&(r(20,_=St.getDerivedFromVars($t.actions)),Y(),Y=p(_,(t=>r(100,I=t)))),4&t.$$.dirty[1]&&(r(19,b=St.getDerivedFromVars($t.doubletap_actions)),X(),X=p(b,(t=>r(98,F=t)))),4&t.$$.dirty[1]&&(r(18,w=St.getDerivedFromVars($t.longtap_actions)),K(),K=p(w,(t=>r(97,S=t)))),576&t.$$.dirty[1]|240&t.$$.dirty[3]){let t=I||N&&[N]||[],e=F||[],n=S||[];kt.fakeElement?(t=[],e=[],n=[]):(Array.isArray(t)||(t=[],St.logError(Kt(new Error("Actions should be array")))),Array.isArray(e)||(e=[],St.logError(Kt(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],St.logError(Kt(new Error("LongTapActions should be array"))))),(t.length||e.length||n.length)&&At&&(t=[],e=[],n=[],St.logError(Kt(new Error('Cannot use action on component "'.concat(At,'"'))))),r(10,qe=t),r(11,Ge=e),r(12,Ke=n)}if(4&t.$$.dirty[1]&&(r(17,x=St.getDerivedFromVars($t.action_animation)),G(),G=p(x,(t=>r(96,j=t)))),16&t.$$.dirty[0]|8&t.$$.dirty[3]&&j&&(r(4,Xe=Pe(j)),r(78,Ze=Xe.map(Ye).filter(Boolean).join(", "))),4&t.$$.dirty[1]&&(r(16,k=St.getDerivedFromVars($t.visibility)),q(),q=p(k,(t=>r(95,P=t)))),6291456&t.$$.dirty[2]|4&t.$$.dirty[3]){const t=nn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(P,nn);t!==e&&(!en||"visible"!==nn&&"visible"!==e?r(84,nn=e):async function(t){r(84,nn=t);const e="visible"===t?"in":"out",n="in"===e?$t.transition_in:$t.transition_out;Oe&&n&&(await yt(),"in"===e&&r(76,Be=!0),Ft.runVisibilityTransition(Object.assign(Object.assign({},$t),{visibility:"visible"}),bt,n,Nt,e).then((()=>{"in"===e&&r(76,Be=!1)})).catch((t=>{throw"in"===e&&r(76,Be=!1),t})))}(e)),en||r(83,en=!0)}if(33554496&t.$$.dirty[1]|1078059012&t.$$.dirty[2]|1&t.$$.dirty[3]&&r(15,E=Object.assign(Object.assign(Object.assign({},ce),be),{"parent-overlap":h,"parent-overlap-absolute":f,"scroll-snap":kt.scrollSnap,"hide-on-transition-in":Je||Be||Re,visibility:nn,"has-action-animation":Boolean(Ze),"parent-flex":kt.parentContainerOrientation||void 0,"parent-grid":Boolean(kt.gridArea)||void 0})),4&t.$$.dirty[1]&&(r(14,C=St.getDerivedFromVars($t.transform)),H(),H=p(C,(t=>r(94,D=t)))),25165824&t.$$.dirty[2]|2&t.$$.dirty[3]&&D&&void 0!==D.rotation){const t=D.pivot_x||{type:"pivot-percentage",value:50};r(85,rn=De(t.value,rn));const e="pivot-fixed"===t.type?Qt(rn):"".concat(rn,"%"),n=D.pivot_y||{type:"pivot-percentage",value:50};r(86,on=De(n.value,on));const i="pivot-fixed"===n.type?Qt(on):"".concat(on,"%");r(87,Qe="".concat(e," ").concat(i)),r(88,tn="rotate(".concat(D.rotation,"deg)"))}1073741824&t.$$.dirty[1]|642&t.$$.dirty[2]&&r(89,A=ve||Ne?"100%":pe||Ce?0:void 0),1560543264&t.$$.dirty[1]|1042225593&t.$$.dirty[2]&&r(13,V=Object.assign(Object.assign(Object.assign(Object.assign({},xt),Ut),Ht),{width:Mt,"min-width":zt,"max-width":Tt,height:Ot,"min-height":Jt,"max-height":Bt||(null==xt?void 0:xt["max-height"]),"grid-area":g,padding:a,margin:se,opacity:Rt,transition:Ze,"transform-origin":Qe,transform:tn,"flex-grow":pe||Ce||void 0,"flex-shrink":ge||Fe?1:void 0,"flex-basis":A,"--divkit-animation-opacity-start":Ue,"--divkit-animation-opacity-end":We,"--divkit-animation-scale-start":Le,"--divkit-animation-scale-end":He}))},[wt,qt,ie,Wt,Xe,M,It,Xt,ye,Ie,qe,Ge,Ke,V,C,E,k,x,w,b,_,$,y,v,m,d,u,c,s,l,o,i,function(t){Nt=t,Te&&$t.transition_in&&Ft.registerChildWithTransitionIn($t,bt,$t.transition_in,t).then((()=>{r(75,Je=!1)})).catch((t=>{throw r(75,Je=!1),t})),Te&&$t.transition_out&&Ft.registerChildWithTransitionOut($t,bt,$t.transition_out,t),Te&&$t.transition_change&&Ft.registerChildWithTransitionChange($t,bt,$t.transition_change,t).then((()=>{r(77,Re=!1)})).catch((t=>{throw r(77,Re=!1),t}));const e=kt.fakeElement?[]:$t.visibility_actions||$t.visibility_action&&[$t.visibility_action],n=kt.fakeElement?[]:$t.disappear_actions;(Array.isArray(e)&&e.length||Array.isArray(n)&&n.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 fe(fe({},n),{},{visibility_percentage:me(e,n.visibility_percentage,e?50:0)})})),l=[...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 l=r?!e.visible&&o:e.visible&&!o,s=r?!o:o;l?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===n.log_limit?1/0:n.log_limit||1;++e.count>=t&&(e.finished=!0);const o=i.getJsonWithVars(e.action),a=o.url;if(a){const t=de(a);t&&!he(t,i.getBuiltinProtocols())&&("div-action"===t?i.execAction(o):o.log_id&&i.execCustomAction(o))}i.logStat(r?"visible":"disappear",o)}),a[e.index].visibility_duration||800)):s&&e.timer&&clearTimeout(e.timer),e.visible=o}))}))}),{threshold:l}).observe(t)}(t,{visibilityActions:e,disappearActions:n,rootCtx:St});const i=$t.id;i&&Ft.registerChild(i);let o=null;if(Array.isArray($t.extensions)){const e=St.getExtensionContext();Lt=$t.extensions.map((n=>{var r;const i=St.getExtension(n.id,n.params);return i&&(null===(r=i.mountView)||void 0===r||r.call(i,t,e)),i})).filter(oe)}return{destroy(){if(i&&Ft.unregisterChild(i),Lt){const e=St.getExtensionContext();Lt.forEach((n=>{var r;null===(r=n.unmountView)||void 0===r||r.call(n,t,e)})),Lt=null}o&&o.destroy()}}},$t,_t,bt,xt,kt,Et,Ct,At,Vt,Dt,ht,pt,ft,gt,mt,vt,Ht,Zt,Yt,ee,re,le,se,ce,Mt,zt,Tt,ue,pe,ge,ve,be,Ot,Jt,Bt,Ee,Ce,Fe,Ne,Me,Rt,Ut,Je,Be,Re,Ze,Ue,We,Le,He,en,nn,rn,on,Qe,tn,A,a,g,f,h,D,P,j,S,F,N,I,z,T,O,J,B,R,U,W,L,ut,dt]}const on=class extends Ut{constructor(t){super(),Rt(this,t,rn,en,d,{json:33,origJson:34,templateContext:35,cls:0,style:36,layoutParams:37,customDescription:38,customPaddings:39,customActions:40,additionalPaddings:41,heightByAspect:42},null,[-1,-1,-1,-1])}},an={"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 ln(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function sn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function cn(t,e){return sn(t)||e}function un(t){let e,n;return{c(){e=I("span"),this.h()},l(t){e=H(t,"SPAN",{class:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=an["text-range__top-offset"]),Z(e,"margin-top",t[4])},m(t,n){S(t,e,n)},p(t,n){16&n&&Z(e,"margin-top",t[4])},d(t){t&&F(e)}}}function dn(t){let e;return{c(){e=z(t[0])},l(n){e=G(n,t[0])},m(t,n){S(t,e,n)},p(t,n){1&n&&X(e,t[0])},d(t){t&&F(e)}}}function hn(t){let e,n,r,i=t[4]&&un(t);return n=new Je({props:{cls:ye("text-range",an,t[3]),actions:t[1],style:Yt(t[2]),$$slots:{default:[dn]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=O(),Tt(n.$$.fragment)},l(t){i&&i.l(t),e=O(),Ot(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),S(t,e,o),Jt(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=un(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=ye("text-range",an,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=Yt(t[2])),2097153&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(Pt(n.$$.fragment,t),r=!0)},o(t){jt(n.$$.fragment,t),r=!1},d(t){i&&i.d(t),t&&F(e),Bt(n,t)}}}function pn(t,e,n){let r,i,o,a,l;var s,c;let{text:u}=e,{rootFontSize:d}=e,{textStyles:h={}}=e,{singleline:p=!1}=e,{actions:f}=e;const g=ct(Gt);let m,v="none",y=12,$=1.25,_="",b="",w="",x=null;return t.$$set=t=>{"text"in t&&n(0,u=t.text),"rootFontSize"in t&&n(5,d=t.rootFontSize),"textStyles"in t&&n(6,h=t.textStyles),"singleline"in t&&n(7,p=t.singleline),"actions"in t&&n(1,f=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(h.underline||h.strike)&&("single"===h.underline&&"single"===h.strike?t="both":"single"===h.underline?t="underline":"single"===h.strike&&(t="strike")),n(10,v=t)}2112&t.$$.dirty&&n(11,y=ln(h.font_size,y)),2112&t.$$.dirty&&Re(h.line_height)&&n(12,$=Number(h.line_height)/y),64&t.$$.dirty&&we(h.letter_spacing)&&n(13,_=Qt(h.letter_spacing)),16448&t.$$.dirty&&(n(14,m=cn(h.font_weight,m)),"string"==typeof h.font_family&&h.font_family?n(15,b=g.typefaceProvider(h.font_family,{fontWeight:m||400})):n(15,b="")),65600&t.$$.dirty&&n(16,w=ne(h.text_color,1,w)),64&t.$$.dirty&&n(4,r=h.top_offset?Qt(h.top_offset):""),64&t.$$.dirty&&n(19,i=h.background?ae([h.background]):null),320&t.$$.dirty&&((null===n(8,s=h.border)||void 0===s?void 0:s.stroke)&&"transparent"!==ne(h.border.stroke.color)&&Re(h.border.stroke.width)?n(17,x={color:h.border.stroke.color,width:h.border.stroke.width}):n(17,x=null)),576&t.$$.dirty&&n(18,o=ln(null===n(9,c=h.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:p,decoration:v}),1046560&t.$$.dirty&&n(2,l={"font-size":Qt(10*y/d),"line-height":$,"letter-spacing":_,"font-weight":m,"font-family":b,color:w,background:(null==i?void 0:i.color)||void 0,"box-shadow":x?"inset 0 0 0 ".concat(Qt(x.width)," ").concat(x.color):void 0,"border-radius":o?Qt(o):void 0})},[u,f,l,a,r,d,h,p,s,c,v,y,$,_,m,b,w,x,o,i]}const fn=class extends Ut{constructor(t){super(),Rt(this,t,pn,hn,d,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function gn(t,e){return"left"===t||"center"===t||"right"===t?t:e}function mn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function vn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function yn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:$n}=Nt;function _n(t,e,n){const r=t.slice();return r[55]=e[n],r[57]=n,r}function bn(t){let e,n;return e=new on({props:{cls:ye("text",Xt,t[13])+" "+(t[6]?"":qt.root__unselectable),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Vn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=ye("text",Xt,t[13])+" "+(t[6]?"":qt.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]),134225584&n[0]|134217728&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function wn(t){let e,n;return e=new fn({props:{text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};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||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function xn(t){let e,n,r=t[10],i=[];for(let e=0;e<r.length;e+=1)i[e]=An(_n(t,r,e));const o=t=>jt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=O()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=O()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);S(t,e,r),n=!0},p(t,n){if(268437152&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const o=_n(t,r,a);i[a]?(i[a].p(o,n),Pt(i[a],1)):(i[a]=An(o),i[a].c(),Pt(i[a],1),i[a].m(e.parentNode,e))}for(Vt(),a=r.length;a<i.length;a+=1)o(a);Dt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Pt(i[t]);n=!0}},o(t){i=i.filter($n);for(let t=0;t<i.length;t+=1)jt(i[t]);n=!1},d(t){N(i,t),t&&F(e)}}}function kn(t){let e,r,i,o,a,l,s,c;return{c(){e=I("span"),r=I("img"),this.h()},l(t){e=H(t,"SPAN",{style:!0});var n=U(e);r=H(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(F),this.h()},h(){B(r,"class",i=Xt.text__image),u(r.src,o=t[55].image.url)||B(r,"src",o),B(r,"loading","lazy"),B(r,"decoding","async"),B(r,"aria-hidden","true"),B(r,"alt",""),B(r,"style",a=Yt({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0})),B(e,"style",l=Yt(t[55].image.wrapperStyle))},m(n,i){S(n,e,i),j(e,r),s||(c=J(r,"error",t[28]),s=!0)},p(t,n){1024&n[0]&&!u(r.src,o=t[55].image.url)&&B(r,"src",o),1536&n[0]&&a!==(a=Yt({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0}))&&B(r,"style",a),1024&n[0]&&l!==(l=Yt(t[55].image.wrapperStyle))&&B(e,"style",l)},i:n,o:n,d(t){t&&F(e),s=!1,c()}}}function En(t){let e,n,r=t[55].text&&Cn(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[55].text?r?(r.p(t,n),1024&n[0]&&Pt(r,1)):(r=Cn(t),r.c(),Pt(r,1),r.m(e.parentNode,e)):r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt())},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Cn(t){let e,n;return e=new fn({props:{text:t[55].text,rootFontSize:t[5],textStyles:t[55].textStyles,singleline:t[7],actions:t[55].actions}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[55].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[55].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[55].actions),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function An(t){let e,n,r,i;const o=[En,kn],a=[];function l(t,e){return"text"in t[55]?0:t[55].image?1:-1}return~(e=l(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=O()},l(t){n&&n.l(t),r=O()},m(t,n){~e&&a[e].m(t,n),S(t,r,n),i=!0},p(t,i){let s=e;e=l(t),e===s?~e&&a[e].p(t,i):(n&&(Vt(),jt(a[s],1,1,(()=>{a[s]=null})),Dt()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Pt(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(Pt(n),i=!0)},o(t){jt(n),i=!1},d(t){~e&&a[e].d(t),t&&F(r)}}}function Vn(t){let e,n,r,i,o,a;const l=[xn,wn],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=I("span"),r.c(),this.h()},l(t){e=H(t,"SPAN",{class:!0,style:!0});var n=U(e);r.l(n),n.forEach(F),this.h()},h(){B(e,"class",i=ye("text__inner",Xt,t[12])),B(e,"style",o=Yt(t[11]))},m(t,r){S(t,e,r),s[n].m(e,null),a=!0},p(t,u){let d=n;n=c(t),n===d?s[n].p(t,u):(Vt(),jt(s[d],1,1,(()=>{s[d]=null})),Dt(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Pt(r,1),r.m(e,null)),(!a||4096&u[0]&&i!==(i=ye("text__inner",Xt,t[12])))&&B(e,"class",i),(!a||2048&u[0]&&o!==(o=Yt(t[11])))&&B(e,"style",o)},i(t){a||(Pt(r),a=!0)},o(t){jt(r),a=!1},d(t){t&&F(e),s[n].d()}}}function Dn(t){let e,n,r=!t[8]&&bn(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[8]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),256&n[0]&&Pt(r,1)):(r=bn(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Pn(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,F,N,I,M,z,T=n,O=n,J=n,B=n,R=n,U=n,W=n,L=n,H=n,q=n,G=n,K=n,X=n;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X()));let{json:Z={}}=e,{templateContext:Y}=e,{origJson:Q}=e,{layoutParams:tt}=e;const et=ct(Gt);let nt=!1,rt="",it=12,ot=1.25,at=!1,st="",ut="",dt=!1,ht="left",pt="top",ft="",gt="",mt=!1,vt=[],yt=[];return lt((()=>{yt.forEach((t=>{let[e,n]=t;et.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&r(0,Z=t.json),"templateContext"in t&&r(1,Y=t.templateContext),"origJson"in t&&r(2,Q=t.origJson),"layoutParams"in t&&r(3,tt=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&(r(26,i=et.getDerivedFromVars(Z.text)),X(),X=p(i,(t=>r(51,z=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(r(4,(e=z,n=rt,rt=String(null!=e?e:"")||n)),rt?r(8,nt=!1):(r(8,nt=!0),et.logError(Kt(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(r(25,o=et.getDerivedFromVars(Z.ranges)),O(),O=p(o,(t=>r(41,C=t)))),1&t.$$.dirty[0]&&(r(24,a=et.getDerivedFromVars(Z.images)),T(),T=p(a,(t=>r(40,E=t)))),1&t.$$.dirty[0]&&(r(23,l=et.getDerivedFromVars({font_size:Z.font_size,letter_spacing:Z.letter_spacing,font_weight:Z.font_weight,font_family:Z.font_family,text_color:Z.text_color,underline:Z.underline,strike:Z.strike,line_height:Z.line_height})),J(),J=p(l,(t=>r(27,A=t)))),1&t.$$.dirty[0]&&(r(22,s=et.getDerivedFromVars(Z.font_size)),K(),K=p(s,(t=>r(50,M=t)))),32&t.$$.dirty[0]|524288&t.$$.dirty[1]&&r(5,it=ln(M,it)),1&t.$$.dirty[0]&&(r(21,c=et.getDerivedFromVars(Z.line_height)),G(),G=p(c,(t=>r(49,I=t)))),32&t.$$.dirty[0]|262144&t.$$.dirty[1]){const t=I;Re(t)?(r(29,ot=Number(t)/it),r(9,at=!0)):r(9,at=!1)}if(1&t.$$.dirty[0]&&(r(20,u=et.getDerivedFromVars(Z.max_lines)),L(),L=p(u,(t=>r(46,S=t)))),32768&t.$$.dirty[1]&&r(7,d=1===S),536870912&t.$$.dirty[0]|34304&t.$$.dirty[1]){let t="",e="",n=!1;if(S&&S>1){let r=Number(S);t=r*ot+"em",C||E||(e=r,n=!0)}r(30,st=t),r(31,ut=e),r(32,dt=n)}if(1&t.$$.dirty[0]&&(r(19,h=et.getDerivedFromVars(Z.text_alignment_horizontal)),q(),q=p(h,(t=>r(48,N=t)))),131076&t.$$.dirty[1]&&r(33,ht=gn(N,ht)),1&t.$$.dirty[0]&&(r(18,f=et.getDerivedFromVars(Z.text_alignment_vertical)),H(),H=p(f,(t=>r(47,F=t)))),65544&t.$$.dirty[1]&&r(34,pt=mn(F,pt)),16&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(39,g=!C||rt&&1===C.length&&C[0]&&0===C[0].start&&"number"==typeof C[0].end&&C[0].end>=rt.length),1&t.$$.dirty[0]&&(r(17,m=et.getDerivedFromVars(Z.text_color)),W(),W=p(m,(t=>r(45,j=t)))),17408&t.$$.dirty[1]&&r(38,v=Boolean(j)!==Boolean(C&&C[0]&&C[0].text_color)),50576&t.$$.dirty[1]){let t="";S&&g&&v&&(t=ne(j||C&&C[0]&&C[0].text_color,1,ft)),r(35,ft=t)}if(1&t.$$.dirty[0]&&(r(16,y=et.getDerivedFromVars(Z.truncate)),U(),U=p(y,(t=>r(44,P=t)))),8192&t.$$.dirty[1]&&r(37,$="none"===P?"none":""),1&t.$$.dirty[0]&&(r(15,_=et.getDerivedFromVars(Z.text_gradient)),R(),R=p(_,(t=>r(43,D=t)))),4096&t.$$.dirty[1]){let t="";if(D){const e=ae([D]);e.image&&(t=e.image)}r(36,gt=t)}1&t.$$.dirty[0]&&(r(14,b=et.getDerivedFromVars(Z.selectable)),B(),B=p(b,(t=>r(42,V=t)))),64&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(6,mt=vn(V,mt)),16&t.$$.dirty[0]|1536&t.$$.dirty[1]&&function(t,e,n){let i=[];if(yt.forEach((t=>{let[e,n]=t;et.removeSvgFilter(e,n)})),yt=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(10,vt=[]);const o=t;let a=e||[{start:0,end:o.length}],l=n||[],s=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"}))})),l.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>s){let n=Object.assign(Object.assign({},A),...c);i.push({text:o.substring(s,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({},A),...c),n=Qt(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=Qt(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":Qt(10*(Number(e.font_size)||12)/it)};let a="";const l=t.image.tint_color,s=yn(t.image.tint_mode,"source_in");if(l){const e=ne(t.image.tint_color);a=et.addSvgFilter(e,s),yt.push([e,s])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}s=r})),s<o.length&&i.push({text:o.substring(s),textStyles:Object.assign({},A)}),r(10,vt=i)}(rt,C,E),128&t.$$.dirty[0]|78&t.$$.dirty[1]&&r(13,w={singleline:d,multiline:dt,halign:ht,valign:pt,truncate:$}),32&t.$$.dirty[1]&&r(12,x={gradient:Boolean(gt)}),1610612768&t.$$.dirty[0]|49&t.$$.dirty[1]&&r(11,k={"font-size":Qt(it),"line-height":ot,"max-height":st,"-webkit-line-clamp":ut,color:ft,"background-image":gt})},[Z,Y,Q,tt,rt,it,mt,d,nt,at,vt,k,x,w,b,_,y,m,f,h,u,c,s,l,a,o,i,A,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Xt.text__image_hidden)},ot,st,ut,dt,ht,pt,ft,gt,$,v,g,E,C,V,D,P,j,S,F,N,I,M,z]}const jn={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_orientation_horizontal:"divkit-fe458",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_overlap:"divkit-a644d"};function Sn(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 Fn(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 Nn(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),l=((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+l: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(Qt).join(" ")}function In(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)i=t.shape,r={width:Number((null===(o=i.item_width)||void 0===o?void 0:o.value)||10),height:Number((null===(a=i.item_height)||void 0===a?void 0:a.value)||10),radius:Number(null!==(l=null===(s=i.corner_radius)||void 0===s?void 0:s.value)&&void 0!==l?l:5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Number((null===(e=t.radius)||void 0===e?void 0:e.value)||10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,l,s;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?ne(o.color):"",l=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 s=e.background_color||(null==n?void 0:n.color);return i.background=ne(s),a&&l&&(i.boxShadow="inset 0 0 0 ".concat(Qt(l)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}let Mn;function zn(){if(void 0!==Mn)return Mn;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),Mn=1===t.scrollHeight,document.body.removeChild(t),Mn}const Tn={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"};function On(t,e,n){const r=t.slice();return r[13]=e[n],r}function Jn(t){let e,n,r,i,o,a="".concat(t[13].style.width,"px"),l="".concat(t[13].style.height,"px"),s="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=I("div"),n=I("div"),i=T(),this.h()},l(t){e=H(t,"DIV",{class:!0});var r=U(e);n=H(r,"DIV",{class:!0}),U(n).forEach(F),i=K(r),r.forEach(F),this.h()},h(){B(n,"class",r=Tn["container-separator__shape"]),Z(n,"width",a),Z(n,"height",l),Z(n,"border-radius",s),Z(n,"background",t[13].style.background),Z(n,"box-shadow",t[13].style.boxShadow),B(e,"class",o=Tn["container-separator__item"]),Z(e,"left",c),Z(e,"top",u),Z(e,"width",d),Z(e,"height",h)},m(t,r){S(t,e,r),j(e,n),j(e,i)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&Z(n,"width",a),2&r&&l!==(l="".concat(t[13].style.height,"px"))&&Z(n,"height",l),2&r&&s!==(s="".concat(t[13].style.borderRadius,"px"))&&Z(n,"border-radius",s),2&r&&Z(n,"background",t[13].style.background),2&r&&Z(n,"box-shadow",t[13].style.boxShadow),2&r&&c!==(c="".concat(t[13].left,"px"))&&Z(e,"left",c),2&r&&u!==(u="".concat(t[13].top,"px"))&&Z(e,"top",u),2&r&&d!==(d="".concat(t[13].width,"px"))&&Z(e,"width",d),2&r&&h!==(h="".concat(t[13].height,"px"))&&Z(e,"height",h)},d(t){t&&F(e)}}}function Bn(t){let e,r,i,o,a=t[1],l=[];for(let e=0;e<a.length;e+=1)l[e]=Jn(On(t,a,e));return{c(){e=I("div");for(let t=0;t<l.length;t+=1)l[t].c();this.h()},l(t){e=H(t,"DIV",{class:!0});var n=U(e);for(let t=0;t<l.length;t+=1)l[t].l(n);n.forEach(F),this.h()},h(){B(e,"class",r=Tn["container-separator"])},m(n,r){S(n,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);t[10](e),i||(o=J(window,"resize",t[2]),i=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=t[1],n=0;n<a.length;n+=1){const i=On(t,a,n);l[n]?l[n].p(i,r):(l[n]=Jn(i),l[n].c(),l[n].m(e,null))}for(;n<l.length;n+=1)l[n].d(1);l.length=a.length}},i:n,o:n,d(n){n&&F(e),N(l,n),t[10](null),i=!1,o()}}}function Rn(t,e,n,r,i,o){const a=e.margins.left,l=e.margins.right,s=e.margins.top,c=e.margins.bottom;o?t.push({top:n.bottom+s,left:i.left+a,width:Math.max(0,i.right-i.left-a-l),height:r.top-n.bottom-s-c,style:e.style}):t.push({top:i.top+s,left:n.right+a,width:r.left-n.right-a-l,height:Math.max(0,i.bottom-i.top-s-c),style:e.style})}function Un(t,e,n,r){const i={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if((null==e?void 0:e.show_at_start)&&Rn(t,e,{top:0,right:n[0].left-e.style.width-e.margins.left-e.margins.right,bottom:n[0].top-e.style.height-e.margins.top-e.margins.bottom,left:0},n[0],i,r),null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)Rn(t,e,n[o],n[o+1],i,r);if(null==e?void 0:e.show_at_end){const o=n[n.length-1];Rn(t,e,o,{top:o.bottom+e.style.height+e.margins.top+e.margins.bottom,right:0,bottom:0,left:o.right+e.style.width+e.margins.left+e.margins.right},i,r)}}function Wn(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e;const l=function(t,e){let n,r=0,i=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(i||(i=!0,setTimeout((()=>{i=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect();n(1,c=[]);let e=[...r.children].filter((t=>t!==s&&!t.classList.contains(Zt.outer__border))),l=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),o=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===i){if(r.top<a)break}else if(r.left<o)break;o=Math.max(o,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}l.push(t)}const u=[];l.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&&Un(c,o,e,"vertical"===i);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};u.push(n)})),a&&Un(c,a,u,"horizontal"===i),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let s,c=[],u=!1,d=null,h=null;function p(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(Tn["container-separator__shape"]))&&!(null==n?void 0:n.contains(Tn["container-separator"]))}))&&l()}return at((()=>{n(6,u=!0)})),lt((()=>{n(6,u=!1)})),t.$$set=t=>{"orientation"in t&&n(3,i=t.orientation),"separator"in t&&n(4,o=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==s?void 0:s.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(p)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(l)),h.observe(r)))),576&t.$$.dirty&&u&&r&&l()},[s,c,l,i,o,a,u,d,h,r,function(t){ht[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}const Ln=class extends Ut{constructor(t){super(),Rt(this,t,Wn,Bn,d,{orientation:3,separator:4,lineSeparator:5})}},{Boolean:Hn}=Nt;function qn(t,e,n){const r=t.slice();return r[46]=e[n],r}function Gn(t){let e,n;return e=new on({props:{cls:ye("container",jn,t[11]),style:t[10],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[15],heightByAspect:Boolean(t[8]),$$slots:{default:[Zn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=ye("container",jn,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),32768&n[0]&&(r.additionalPaddings=t[15]),256&n[0]&&(r.heightByAspect=Boolean(t[8])),4195040&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Kn(t){let e,n;return e=new oa({props:{layoutParams:t[9],div:t[46].json,templateContext:t[46].templateContext,origJson:t[46].origJson}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.layoutParams=t[9]),4194304&n[0]&&(r.div=t[46].json),4194304&n[0]&&(r.templateContext=t[46].templateContext),4194304&n[0]&&(r.origJson=t[46].origJson),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Xn(t){let e,n;return e=new Ln({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Zn(t){let e,n,r,i=t[22],o=[];for(let e=0;e<i.length;e+=1)o[e]=Kn(qn(t,i,e));const a=t=>jt(o[t],1,1,(()=>{o[t]=null}));let l=(t[6]||t[7])&&Xn(t);return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=T(),l&&l.c(),n=O()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=K(t),l&&l.l(t),n=O()},m(t,i){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,i);S(t,e,i),l&&l.m(t,i),S(t,n,i),r=!0},p(t,r){if(4194816&r[0]){let n;for(i=t[22],n=0;n<i.length;n+=1){const a=qn(t,i,n);o[n]?(o[n].p(a,r),Pt(o[n],1)):(o[n]=Kn(a),o[n].c(),Pt(o[n],1),o[n].m(e.parentNode,e))}for(Vt(),n=i.length;n<o.length;n+=1)a(n);Dt()}t[6]||t[7]?l?(l.p(t,r),192&r[0]&&Pt(l,1)):(l=Xn(t),l.c(),Pt(l,1),l.m(n.parentNode,n)):l&&(Vt(),jt(l,1,1,(()=>{l=null})),Dt())},i(t){if(!r){for(let t=0;t<i.length;t+=1)Pt(o[t]);Pt(l),r=!0}},o(t){o=o.filter(Hn);for(let t=0;t<o.length;t+=1)jt(o[t]);jt(l),r=!1},d(t){N(o,t),t&&F(e),l&&l.d(t),t&&F(n)}}}function Yn(t){let e,n,r=!t[4]&&Gn(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[4]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),16&n[0]&&Pt(r,1)):(r=Gn(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Qn(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D=n,P=n,j=n,S=n,F=n,N=n,I=n,M=n,z=n;var T,O,J,B,R,U;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z()));let{json:W={}}=e,{templateContext:L}=e,{origJson:H}=e,{layoutParams:q}=e;const G={left:"start",center:"center",right:"end","space-between":"start","space-around":"start","space-evenly":"start"},K={top:"start",center:"center",bottom:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},X=["rounded_rectangle","circle"],Z=ct(Gt);let Y,Q=!1,tt="vertical",et="top",nt="left",rt=null,it=null,ot={};return t.$$set=t=>{"json"in t&&r(0,W=t.json),"templateContext"in t&&r(1,L=t.templateContext),"origJson"in t&&r(2,H=t.origJson),"layoutParams"in t&&r(3,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(32,i=W.items),2&t.$$.dirty[1]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(4,Q=!1):(r(4,Q=!0),Z.logError(Kt(new Error('Incorrect or empty "items" prop for div "container"'))))),18&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(22,o=(!Q&&i||[]).map((t=>{let e=t,n=L;return({templateContext:n,json:e}=Z.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(21,a=Z.getDerivedFromVars(W.orientation)),z(),z=p(a,(t=>r(41,V=t)))),32&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(5,tt=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(V,tt)),1&t.$$.dirty[0]&&(r(20,l=Z.getDerivedFromVars(W.content_alignment_vertical)),M(),M=p(l,(t=>r(40,A=t)))),536870912&t.$$.dirty[0]|512&t.$$.dirty[1]&&r(29,et=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(A,et)),1&t.$$.dirty[0]&&(r(19,s=Z.getDerivedFromVars(W.content_alignment_horizontal)),I(),I=p(s,(t=>r(39,C=t)))),1073741824&t.$$.dirty[0]|256&t.$$.dirty[1]&&r(30,nt=function(t,e){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(C,nt)),1&t.$$.dirty[0]&&(r(18,c=Z.getDerivedFromVars(W.layout_mode)),N(),N=p(c,(t=>r(38,E=t)))),128&t.$$.dirty[1]&&r(31,u="wrap"===E),1&t.$$.dirty[0]&&(r(17,d=Z.getDerivedFromVars(W.separator)),F(),F=p(d,(t=>r(37,k=t)))),58720352&t.$$.dirty[0]|64&t.$$.dirty[1])if((null==k?void 0:k.style)&&"overlap"!==tt&&zn()){const t=In(k.style,X,(null==rt?void 0:rt.style)||null);r(6,rt=t?{show_at_start:Boolean(null!==r(23,T=k.show_at_start)&&void 0!==T&&T),show_at_end:Boolean(null!==r(24,O=k.show_at_end)&&void 0!==O&&O),show_between:Boolean(null===r(25,J=k.show_between)||void 0===J||J),style:t,margins:Sn(k.margins)}:null)}else r(6,rt=null);if(1&t.$$.dirty[0]&&(r(16,h=Z.getDerivedFromVars(W.line_separator)),S(),S=p(h,(t=>r(36,x=t)))),469762208&t.$$.dirty[0]|32&t.$$.dirty[1])if((null==x?void 0:x.style)&&"overlap"!==tt&&zn()){const t=In(x.style,X,(null==it?void 0:it.style)||null);r(7,it=t?{show_at_start:Boolean(null!==r(26,B=x.show_at_start)&&void 0!==B&&B),show_at_end:Boolean(null!==r(27,R=x.show_at_end)&&void 0!==R&&R),show_between:Boolean(null===r(28,U=x.show_between)||void 0===U||U),style:t,margins:Sn(x.margins)}:null)}else r(7,it=null);if(224&t.$$.dirty[0]&&r(15,f=rt||it?function(t,e,n){const r={};return Fn(r,e,"vertical"===t),Fn(r,n,"horizontal"===t),r}(tt,rt,it):null),1&t.$$.dirty[0]&&(r(14,g=Z.getDerivedFromVars(W.aspect)),j(),j=p(g,(t=>r(35,w=t)))),16&t.$$.dirty[1]){const t=null==w?void 0:w.ratio;t&&Re(t)?r(8,Y=t):r(8,Y=void 0)}if(1&t.$$.dirty[0]&&(r(13,m=Z.getDerivedFromVars(W.width)),D(),D=p(m,(t=>r(33,_=t)))),1&t.$$.dirty[0]&&(r(12,v=Z.getDerivedFromVars(W.height)),P(),P=p(v,(t=>r(34,b=t)))),1610613544&t.$$.dirty[0]|13&t.$$.dirty[1]){let t={};(null==q?void 0:q.fakeElement)&&(t.fakeElement=!0),"overlap"===tt&&(t.overlapParent=!0),"horizontal"!==tt&&(t.parentHAlign=G[nt],Y||b&&"wrap_content"!==b.type&&("match_parent"!==b.type||!(null==q?void 0:q.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0)),"vertical"!==tt&&(t.parentVAlign=K[et],("wrap_content"===(null==_?void 0:_.type)||"match_parent"===(null==_?void 0:_.type)&&(null==q?void 0:q.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===tt&&(t.parentContainerOrientation="horizontal"),"vertical"===tt&&(t.parentContainerOrientation="vertical"),u&&(t.parentContainerWrap=!0),r(9,ot=Ae(t,ot))}1610612768&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(11,y={orientation:tt,valign:et,halign:nt,wrap:u}),480&t.$$.dirty[0]&&r(10,$={gap:rt||it?Nn(tt,rt,it):void 0,"aspect-ratio":Y})},[W,L,H,q,Q,tt,rt,it,Y,ot,$,y,v,m,g,f,h,d,c,s,l,a,o,T,O,J,B,R,U,et,nt,u,i,_,b,w,x,k,E,C,A,V]}const tr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function er(t,e){return"vertical"===t||"horizontal"===t?t:e}function nr(t){let e,n,r;return{c(){e=I("span"),this.h()},l(t){e=H(t,"SPAN",{class:!0,style:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=tr.separator__inner),B(e,"style",r=Yt(t[5]))},m(t,n){S(t,e,n)},p(t,n){32&n&&r!==(r=Yt(t[5]))&&B(e,"style",r)},d(t){t&&F(e)}}}function rr(t){let e,n=t[6]&&nr(t);return{c(){n&&n.c(),e=O()},l(t){n&&n.l(t),e=O()},m(t,r){n&&n.m(t,r),S(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=nr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&F(e)}}}function ir(t){let e,n;return e=new on({props:{cls:ye("separator",tr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[rr]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=ye("separator",tr,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||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function or(t,e,r){let i,o,a,l,s,c,u,d=n;t.$$.on_destroy.push((()=>d()));let{json:h={}}=e,{templateContext:f}=e,{origJson:g}=e,{layoutParams:m}=e;const v=ct(Gt);let y="horizontal",$="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&r(0,h=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&&(r(7,i=v.getDerivedFromVars(h.delimiter_style)),d(),d=p(i,(t=>r(12,u=t)))),4352&t.$$.dirty&&r(8,y=er(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,$=ne(null==u?void 0:u.color,1,$)),256&t.$$.dirty&&r(11,a="horizontal"===y?"100%":Qt(1)),256&t.$$.dirty&&r(10,l="horizontal"===y?Qt(1):"100%"),3584&t.$$.dirty&&r(5,s={background:$,width:a,height:l}),256&t.$$.dirty&&r(4,c={orientation:y})},[h,f,g,m,c,s,o,i,y,$,l,a,u]}const ar={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 lr(t){return t.startsWith("data:")?ie(t):"data:image/jpg;base64,".concat(ie(t))}function sr(t){let e,n;return e=new on({props:{cls:ye("image",ar,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[hr]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=ye("image",ar,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),67312&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function cr(t){let e,n,r,i,o,a,s;return{c(){e=I("img"),this.h()},l(t){e=H(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){B(e,"class",n=ar.image__image),u(e.src,r=t[4]===gr?fr:t[7])||B(e,"src",r),B(e,"loading","lazy"),B(e,"decoding","async"),B(e,"style",i=Yt(t[9])),B(e,"alt",t[16]),B(e,"aria-hidden",o=t[16]?null:"true")},m(n,r){S(n,e,r),a||(s=[J(e,"load",t[26]),J(e,"error",t[27])],a=!0)},p(t,n){144&n[0]&&!u(e.src,r=t[4]===gr?fr:t[7])&&B(e,"src",r),512&n[0]&&i!==(i=Yt(t[9]))&&B(e,"style",i),65536&n[0]&&B(e,"alt",t[16]),65536&n[0]&&o!==(o=t[16]?null:"true")&&B(e,"aria-hidden",o)},d(t){t&&F(e),a=!1,l(s)}}}function ur(t){let e,n,r,i,o,a,s,c,d,h="".concat(t[5],"%");return{c(){e=I("span"),n=I("img"),this.h()},l(t){e=H(t,"SPAN",{class:!0});var r=U(e);n=H(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(F),this.h()},h(){B(n,"class",r=ar.image__image),u(n.src,i=t[4]===gr?fr:t[7])||B(n,"src",i),B(n,"loading","lazy"),B(n,"decoding","async"),B(n,"style",o=Yt(t[9])),B(n,"alt",t[16]),B(n,"aria-hidden",a=t[16]?null:"true"),B(e,"class",s=ar["image__aspect-wrapper"]),Z(e,"padding-bottom",h)},m(r,i){S(r,e,i),j(e,n),c||(d=[J(n,"load",t[26]),J(n,"error",t[27])],c=!0)},p(t,r){144&r[0]&&!u(n.src,i=t[4]===gr?fr:t[7])&&B(n,"src",i),512&r[0]&&o!==(o=Yt(t[9]))&&B(n,"style",o),65536&r[0]&&B(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&B(n,"aria-hidden",a),32&r[0]&&h!==(h="".concat(t[5],"%"))&&Z(e,"padding-bottom",h)},d(t){t&&F(e),c=!1,l(d)}}}function dr(t){let e;function n(t,e){return t[10].aspect?ur:cr}let r=n(t),i=r(t);return{c(){i.c(),e=O()},l(t){i.l(t),e=O()},m(t,n){i.m(t,n),S(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){i.d(t),t&&F(e)}}}function hr(t){let e,n=t[6],r=dr(t);return{c(){r.c(),e=O()},l(t){r.l(t),e=O()},m(t,n){r.m(t,n),S(t,e,n)},p(t,i){64&i[0]&&d(n,n=t[6])?(r.d(1),r=dr(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&F(e),r.d(t)}}}function pr(t){let e,n,r=!t[8]&&sr(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[8]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),256&n[0]&&Pt(r,1)):(r=sr(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}const fr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",gr=2;function mr(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,F,N,I,M,z,T,O=n,J=n,B=n,R=n,U=n,W=n,L=n,H=n,q=n,G=n,K=n,X=n,Z=n,Y=n;t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Y()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt=ct(Gt);let it=0,ot="rgba(0,0,0,0.08)",at=!1,st="",ut="none",dt="50% 50%";let ht,pt="0",ft="source_in",gt="",mt="",vt=0,yt=0,$t=0,_t="",bt="";return lt((()=>{rt.removeSvgFilter(ht,ft)})),t.$$set=t=>{"json"in t&&r(0,Q=t.json),"templateContext"in t&&r(1,tt=t.templateContext),"origJson"in t&&r(2,et=t.origJson),"layoutParams"in t&&r(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(25,i=rt.getDerivedFromVars(Q.image_url)),Y(),Y=p(i,(t=>r(55,T=t)))),1&t.$$.dirty[0]&&(r(24,o=rt.getDerivedFromVars(Q.gif_url)),Z(),Z=p(o,(t=>r(54,z=t)))),25165824&t.$$.dirty[1]&&r(7,a=T||z),128&t.$$.dirty[0]&&r(4,it=0),128&t.$$.dirty[0]&&(a?r(8,at=!1):(r(8,at=!0),rt.logError(Kt(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(r(23,l=rt.getDerivedFromVars(Q.width)),X(),X=p(l,(t=>r(53,M=t)))),4194304&t.$$.dirty[1]&&r(41,s="wrap_content"===(null==M?void 0:M.type)),1&t.$$.dirty[0]&&(r(22,c=rt.getDerivedFromVars(Q.height)),K(),K=p(c,(t=>r(52,I=t)))),2097152&t.$$.dirty[1]&&r(40,u="wrap_content"===(null==I?void 0:I.type)),1&t.$$.dirty[0]&&(r(21,d=rt.getDerivedFromVars(Q.preview)),G(),G=p(d,(t=>r(51,N=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&r(29,st=0!==it&&it!==gr||!N?"":'url("'.concat(lr(N),'")')),1&t.$$.dirty[0]&&(r(20,h=rt.getDerivedFromVars(Q.placeholder_color)),q(),q=p(h,(t=>r(50,F=t)))),16&t.$$.dirty[0]|524288&t.$$.dirty[1]&&function(t,e){r(28,ot=0===t||t===gr?ne(e,1,ot):"")}(it,F),1&t.$$.dirty[0]&&(r(19,f=rt.getDerivedFromVars(Q.scale)),H(),H=p(f,(t=>r(49,S=t)))),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]&&r(30,ut=ce(S)||ut),1&t.$$.dirty[0]&&(r(18,g=rt.getDerivedFromVars({content_alignment_horizontal:Q.content_alignment_horizontal,content_alignment_vertical:Q.content_alignment_vertical})),L(),L=p(g,(t=>r(48,j=t)))),131072&t.$$.dirty[1]&&r(31,dt=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:ue(t)}(j,dt)),1&t.$$.dirty[0]&&(r(17,m=rt.getDerivedFromVars(Q.accessibility)),W(),W=p(m,(t=>r(47,P=t)))),65536&t.$$.dirty[1]&&r(16,v=(null==P?void 0:P.description)||""),1&t.$$.dirty[0]&&(r(15,y=rt.getDerivedFromVars(Q.aspect)),U(),U=p(y,(t=>r(46,D=t)))),32768&t.$$.dirty[1]){const t=null==D?void 0:D.ratio;t&&Re(t)?r(5,pt=(100/Number(t)).toFixed(2)):r(5,pt="0")}if(1&t.$$.dirty[0]&&(r(14,$=rt.getDerivedFromVars(Q.tint_color)),R(),R=p($,(t=>r(45,V=t)))),1&t.$$.dirty[0]&&(r(13,_=rt.getDerivedFromVars(Q.tint_mode)),B(),B=p(_,(t=>r(44,A=t)))),24582&t.$$.dirty[1]){const t=V?ne(V):void 0,e=yn(A,ft);t===ht&&e===ft||(rt.removeSvgFilter(ht,ft),r(6,gt=t?rt.addSvgFilter(t,e):""),r(32,ht=t),r(33,ft=e))}if(1&t.$$.dirty[0]&&(r(12,b=rt.getDerivedFromVars(Q.appearance_animation)),J(),J=p(b,(t=>r(43,C=t)))),4096&t.$$.dirty[1]&&C&&"fade"===C.type){const t=C;r(34,mt=Ve(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(37,$t=ke(t.duration,300)),r(36,yt=ke(t.start_delay,0)),r(35,vt=ke(t.alpha,0))}if(1&t.$$.dirty[0]&&(r(11,w=rt.getDerivedFromVars(Q.filters)),O(),O=p(w,(t=>r(42,E=t)))),2048&t.$$.dirty[1]){let t="",e="";Array.isArray(E)&&E.length&&(t=Ue(E,rt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(38,_t=t),r(39,bt=e)}48&t.$$.dirty[0]|1544&t.$$.dirty[1]&&r(10,x={aspect:"0"!==pt,"is-width-content":s,"is-height-content":u,loaded:1===it,"before-appearance":Boolean(mt)&&0===it}),1879048272&t.$$.dirty[0]|505&t.$$.dirty[1]&&r(9,k={"background-image":st,"background-color":st?void 0:ot,"background-size":ut,"clip-path":bt||void 0,"object-fit":ut,"object-position":dt,filter:[1===it&&gt?"url(#".concat(gt,")"):"",_t].filter(Boolean).join(" "),"--divkit-appearance-interpolator":mt||void 0,"--divkit-appearance-fade-start":mt?vt:void 0,"--divkit-appearance-delay":mt?"".concat(yt,"ms"):void 0,"--divkit-appearance-duration":mt?"".concat($t,"ms"):void 0})},[Q,tt,et,nt,it,pt,gt,a,at,k,x,w,b,_,$,y,v,m,g,f,h,d,c,l,o,i,function(){0===it&&r(4,it=1)},function(){0===it&&r(4,it=gr)},ot,st,ut,dt,ht,ft,mt,vt,yt,$t,_t,bt,u,s,E,C,A,V,D,P,j,S,F,N,I,M,z,T]}const vr=class extends Ut{constructor(t){super(),Rt(this,t,mr,pr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},yr={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 $r(t){return t>0&&t<1}function _r(t){return String(Math.ceil(1e3*t)/1e3)}function br(t,e,n){if(t.some($r)){const e=Math.max(...t.filter($r).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(Qt(r*t[e]/i),",").concat(_r(t[e]),"fr)"):t[e]?o[e]="".concat(_r(t[e]),"fr"):o[e]="auto";return o.join(" ")}function wr(t,e,n){const r=t.slice();return r[29]=e[n],r}function xr(t){let e,n;return e=new on({props:{cls:ye("grid",yr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[Er]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=ye("grid",yr,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]),32&n[0]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function kr(t){let e,n;return e=new oa({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(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||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Er(t){let e,n,r=t[5],i=[];for(let e=0;e<r.length;e+=1)i[e]=kr(wr(t,r,e));const o=t=>jt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=O()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=O()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);S(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=t[5],a=0;a<r.length;a+=1){const o=wr(t,r,a);i[a]?(i[a].p(o,n),Pt(i[a],1)):(i[a]=kr(o),i[a].c(),Pt(i[a],1),i[a].m(e.parentNode,e))}for(Vt(),a=r.length;a<i.length;a+=1)o(a);Dt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Pt(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)jt(i[t]);n=!1},d(t){N(i,t),t&&F(e)}}}function Cr(t){let e,n,r=!t[6]&&xr(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[6]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),64&n[0]&&Pt(r,1)):(r=xr(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Ar(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v=n,y=n,$=n,_=n;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:w}=e,{origJson:x}=e,{layoutParams:k}=e;const E=ct(Gt);let C,A,V=!1,D=1,P=[],j=[],S=[],F=[],N=0,I=!1,M="top",z="left";return t.$$set=t=>{"json"in t&&r(0,b=t.json),"templateContext"in t&&r(1,w=t.templateContext),"origJson"in t&&r(2,x=t.origJson),"layoutParams"in t&&r(3,k=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(23,i=b.items),8388608&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(12,V=!1):(r(12,V=!0),E.logError(Kt(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(r(11,o=E.getDerivedFromVars(b.column_count)),_(),_=p(o,(t=>r(27,m=t)))),134225920&t.$$.dirty[0]&&r(13,D=ln(m,D)),8392706&t.$$.dirty[0]&&r(22,a=(!V&&i||[]).map((t=>{let e=t,n=w;return({templateContext:n,json:e}=E.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];a.forEach((e=>{t.push(E.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(4,C=Ht(t,(t=>[...t]))),$(),$=p(C,(t=>r(26,g=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,P=[]),r(15,j=[]),r(16,S=[]),r(17,F=[]),r(19,I=!1),r(5,A=a.map(((i,o)=>{var a,l,s,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===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.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,(!P[i]||P[i]<f)&&r(14,P[i]=f,P),(!j[e]||j[e]<m)&&r(15,j[e]=m,j),(!S[i]||S[i]<v)&&r(16,S[i]=v,S),(!F[e]||F[e]<y)&&r(17,F[e]=y,F));do{++e,e>=D&&(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(Kt(new Error('Mismatching "grid" rows/columns'))),r(18,N=n)}1&t.$$.dirty[0]&&(r(10,l=E.getDerivedFromVars(b.content_alignment_vertical)),y(),y=p(l,(t=>r(25,f=t)))),34603008&t.$$.dirty[0]&&r(20,M=mn(f,M)),1&t.$$.dirty[0]&&(r(9,s=E.getDerivedFromVars(b.content_alignment_horizontal)),v(),v=p(s,(t=>r(24,h=t)))),18874368&t.$$.dirty[0]&&r(21,z=gn(h,z)),3145728&t.$$.dirty[0]&&r(8,c={valign:M,halign:z}),516096&t.$$.dirty[0]&&r(7,u={"grid-template-columns":br(P,S,D),"grid-template-rows":br(j,F,N)}),528384&t.$$.dirty[0]&&r(6,d=V||I)},[b,w,x,k,C,A,d,u,c,s,l,o,V,D,P,j,S,F,N,I,M,z,a,i,h,f,g,m]}const Vr={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function Dr(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 Pr(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:jr}=Nt;function Sr(t,e,n){const r=t.slice();return r[72]=e[n],r[73]=e,r[74]=n,r}function Fr(t,e,n){const r=t.slice();return r[75]=e[n],r}function Nr(t){let e,n;return e=new on({props:{cls:ye("gallery",Vr,t[16]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",$$slots:{default:[Jr]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=ye("gallery",Vr,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]),335953872&n[0]|65536&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Ir(t){let e,n;return e=new oa({props:{layoutParams:t[8],div:t[75].json,templateContext:t[75].templateContext,origJson:t[75].origJson}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),67108864&n[0]&&(r.div=t[75].json),67108864&n[0]&&(r.templateContext=t[75].templateContext),67108864&n[0]&&(r.origJson=t[75].origJson),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Mr(t){let e,n,r,i,o,a=t[74],l=t[72],s=[];for(let e=0;e<l.length;e+=1)s[e]=Ir(Fr(t,l,e));const c=t=>jt(s[t],1,1,(()=>{s[t]=null})),u=()=>t[60](e,a),d=()=>t[60](null,a);return{c(){e=I("div");for(let t=0;t<s.length;t+=1)s[t].c();n=T(),this.h()},l(t){e=H(t,"DIV",{class:!0,style:!0});var r=U(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=K(r),r.forEach(F),this.h()},h(){B(e,"class",r=Vr.gallery__items),B(e,"style",i=Yt(t[17]))},m(t,r){S(t,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);j(e,n),u(),o=!0},p(r,h){if(t=r,67109120&h[0]){let r;for(l=t[72],r=0;r<l.length;r+=1){const i=Fr(t,l,r);s[r]?(s[r].p(i,h),Pt(s[r],1)):(s[r]=Ir(i),s[r].c(),Pt(s[r],1),s[r].m(e,n))}for(Vt(),r=l.length;r<s.length;r+=1)c(r);Dt()}(!o||131072&h[0]&&i!==(i=Yt(t[17])))&&B(e,"style",i),a!==t[74]&&(d(),a=t[74],u())},i(t){if(!o){for(let t=0;t<l.length;t+=1)Pt(s[t]);o=!0}},o(t){s=s.filter(jr);for(let t=0;t<s.length;t+=1)jt(s[t]);o=!1},d(t){t&&F(e),N(s,t),d()}}}function zr(t){let e,n,r=t[12]&&t[9]&&Tr(t),i=t[13]&&t[9]&&Or(t);return{c(){r&&r.c(),e=T(),i&&i.c(),n=O()},l(t){r&&r.l(t),e=K(t),i&&i.l(t),n=O()},m(t,o){r&&r.m(t,o),S(t,e,o),i&&i.m(t,o),S(t,n,o)},p(t,o){t[12]&&t[9]?r?r.p(t,o):(r=Tr(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?i?i.p(t,o):(i=Or(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){r&&r.d(t),t&&F(e),i&&i.d(t),t&&F(n)}}}function Tr(t){let e,r,i,o,a=!t[29]&&function(t){let e,r,i,o;return{c(){e=M("svg"),r=M("path"),this.h()},l(t){e=q(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var n=U(e);r=q(n,"path",{class:!0,d:!0}),U(r).forEach(F),n.forEach(F),this.h()},h(){B(r,"class",i=Vr["gallery__arrow-icon-path"]),B(r,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),B(e,"class",o=Vr["gallery__arrow-icon"]),B(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"width","32"),B(e,"height","32"),B(e,"viewBox","0 0 32 32"),B(e,"fill","none")},m(t,n){S(t,e,n),j(e,r)},p:n,d(t){t&&F(e)}}}();return{c(){e=I("div"),a&&a.c(),this.h()},l(t){e=H(t,"DIV",{class:!0});var n=U(e);a&&a.l(n),n.forEach(F),this.h()},h(){B(e,"class",r=t[29]||"".concat(Vr.gallery__arrow," ").concat(Vr.gallery__arrow_left))},m(n,r){S(n,e,r),a&&a.m(e,null),i||(o=J(e,"click",t[63]),i=!0)},p(t,e){t[29]||a.p(t,e)},d(t){t&&F(e),a&&a.d(),i=!1,o()}}}function Or(t){let e,r,i,o,a=!t[30]&&function(t){let e,r,i,o;return{c(){e=M("svg"),r=M("path"),this.h()},l(t){e=q(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var n=U(e);r=q(n,"path",{class:!0,d:!0}),U(r).forEach(F),n.forEach(F),this.h()},h(){B(r,"class",i=Vr["gallery__arrow-icon-path"]),B(r,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),B(e,"class",o=Vr["gallery__arrow-icon"]),B(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"width","32"),B(e,"height","32"),B(e,"viewBox","0 0 32 32"),B(e,"fill","none")},m(t,n){S(t,e,n),j(e,r)},p:n,d(t){t&&F(e)}}}();return{c(){e=I("div"),a&&a.c(),this.h()},l(t){e=H(t,"DIV",{class:!0});var n=U(e);a&&a.l(n),n.forEach(F),this.h()},h(){B(e,"class",r=t[30]||"".concat(Vr.gallery__arrow," ").concat(Vr.gallery__arrow_right))},m(n,r){S(n,e,r),a&&a.m(e,null),i||(o=J(e,"click",t[64]),i=!0)},p(t,e){t[30]||a.p(t,e)},d(t){t&&F(e),a&&a.d(),i=!1,o()}}}function Jr(t){let e,n,r,i,o,a,l,c,u,d,h,p=t[26],f=[];for(let e=0;e<p.length;e+=1)f[e]=Mr(Sr(t,p,e));const g=t=>jt(f[t],1,1,(()=>{f[t]=null}));let m="horizontal"===t[6]&&zr(t);return{c(){e=I("div"),n=I("div");for(let t=0;t<f.length;t+=1)f[t].c();l=T(),m&&m.c(),c=O(),this.h()},l(t){e=H(t,"DIV",{class:!0,style:!0});var r=U(e);n=H(r,"DIV",{class:!0,style:!0});var i=U(n);for(let t=0;t<f.length;t+=1)f[t].l(i);i.forEach(F),r.forEach(F),l=K(t),m&&m.l(t),c=O(),this.h()},h(){B(n,"class",r=Vr["gallery__items-grid"]),B(n,"style",i=Yt(t[18])),B(e,"class",o=Vr.gallery__scroller+" "+(t[28]?qt["root_restrict-scroll"]:"")),B(e,"style",a=Yt(t[7]))},m(r,i){S(r,e,i),j(e,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(n,null);t[61](n),t[62](e),S(r,l,i),m&&m.m(r,i),S(r,c,i),u=!0,d||(h=J(e,"scroll",(function(){s(t[9]?t[32]:null)&&(t[9]?t[32]:null).apply(this,arguments)})),d=!0)},p(r,l){if(t=r,67242240&l[0]){let e;for(p=t[26],e=0;e<p.length;e+=1){const r=Sr(t,p,e);f[e]?(f[e].p(r,l),Pt(f[e],1)):(f[e]=Mr(r),f[e].c(),Pt(f[e],1),f[e].m(n,null))}for(Vt(),e=p.length;e<f.length;e+=1)g(e);Dt()}(!u||262144&l[0]&&i!==(i=Yt(t[18])))&&B(n,"style",i),(!u||268435456&l[0]&&o!==(o=Vr.gallery__scroller+" "+(t[28]?qt["root_restrict-scroll"]:"")))&&B(e,"class",o),(!u||128&l[0]&&a!==(a=Yt(t[7])))&&B(e,"style",a),"horizontal"===t[6]?m?m.p(t,l):(m=zr(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)Pt(f[t]);u=!0}},o(t){f=f.filter(jr);for(let t=0;t<f.length;t+=1)jt(f[t]);u=!1},d(n){n&&F(e),N(f,n),t[61](null),t[62](null),n&&F(l),m&&m.d(n),n&&F(c),d=!1,h()}}}function Br(t){let e,n,r,i,o=!t[5]&&Nr(t);return{c(){o&&o.c(),e=O()},l(t){o&&o.l(t),e=O()},m(a,l){o&&o.m(a,l),S(a,e,l),n=!0,r||(i=J(window,"resize",(function(){s(t[9]?t[33]:null)&&(t[9]?t[33]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?o&&(Vt(),jt(o,1,1,(()=>{o=null})),Dt()):o?(o.p(t,r),32&r[0]&&Pt(o,1)):(o=Nr(t),o.c(),Pt(o,1),o.m(e.parentNode,e))},i(t){n||(Pt(o),n=!0)},o(t){jt(o),n=!1},d(t){o&&o.d(t),t&&F(e),r=!1,i()}}}function Rr(t,e,r){let i,o,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,F,N=n,I=n,M=n,z=n,T=n,O=n,J=n,B=n,R=n,U=n;t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U()));let{json:W={}}=e,{templateContext:L}=e,{origJson:H}=e,{layoutParams:q}=e;const G=ct(Gt);let K,X,Z=[],Y=!1,Q=!1,tt=null,et=!1;const nt=G.getCustomization("galleryLeftClass"),rt=G.getCustomization("galleryRightClass");let it=!1;const ot=G.isDesktop;f(t,ot,(t=>r(59,S=t)));let st,ut,dt,pt,ft=1,gt="horizontal",mt="start",vt=8,yt="",$t=[],_t={},bt=!1,wt={},xt=0;function kt(){if(!K)return;const t=K.scrollLeft,e=K.scrollWidth,n=K.offsetWidth;r(12,Y=t>2),r(13,Q=t+n<e-2)}const Et=Pr(kt,50);function Ct(t){K.scroll({left:K.scrollLeft+.75*K.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function At(){let t=[],e=Z[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ft;++e){const r=Z[e].children[n];r&&t.push(r)}return t}function Vt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===gt,i=r?"offsetLeft":"offsetTop",o=r?"left":"top";K.scroll({[o]:Math.max(0,t[e][i]+.01-vt/2),behavior:n})}function Dt(t){const e=At(),n=K.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===gt?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"===gt?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!W.id||it||(null==q?void 0:q.fakeElement)||G.registerInstance(W.id,{setCurrentItem(t){const e=At();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Vt(e,t)},setPreviousItem(t){const e=Dt("prev"),n=At();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),Vt(n,r)},setNextItem(t){const e="horizontal"===gt?K.scrollLeft+K.offsetWidth===K.scrollWidth:K.scrollTop+K.offsetHeight===K.scrollHeight,n=At();if(e&&"ring"===t)return void Vt(n,0);const r=Dt("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),Vt(n,i)}}),at((()=>{r(36,et=!0),!it&&(kt(),xt)&&Vt(At(),xt,"auto")})),lt((()=>{r(36,et=!1),W.id&&!(null==q?void 0:q.fakeElement)&&G.unregisterInstance(W.id)})),t.$$set=t=>{"json"in t&&r(0,W=t.json),"templateContext"in t&&r(1,L=t.templateContext),"origJson"in t&&r(2,H=t.origJson),"layoutParams"in t&&r(3,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(49,i=W.items),262144&t.$$.dirty[1]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(5,it=!1):(r(5,it=!0),G.logError(Kt(new Error('Incorrect or empty "items" prop for div "gallery"'))))),34&t.$$.dirty[0]|262144&t.$$.dirty[1]&&r(48,o=(!it&&i||[]).map((t=>{let e=t,n=L;return({templateContext:n,json:e}=G.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|268435488&t.$$.dirty[1]&&r(9,a=S&&et&&!it),528&t.$$.dirty[0]|16&t.$$.dirty[1]&&(a?"undefined"!=typeof ResizeObserver&&(r(35,tt=new ResizeObserver((()=>{Et()}))),tt.observe(X)):tt&&(tt.disconnect(),r(35,tt=null))),1&t.$$.dirty[0]&&(r(27,l=G.getDerivedFromVars(W.column_count)),R(),R=p(l,(t=>r(58,j=t)))),134217792&t.$$.dirty[1]&&r(37,ft=ln(j,ft)),131136&t.$$.dirty[1]&&r(26,s=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(o,ft)),1&t.$$.dirty[0]&&(r(25,c=G.getDerivedFromVars(W.orientation)),B(),B=p(c,(t=>r(57,P=t)))),64&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(6,gt=er(P,gt)),1&t.$$.dirty[0]&&(r(24,u=G.getDerivedFromVars(W.cross_content_alignment)),J(),J=p(u,(t=>r(56,D=t)))),33554560&t.$$.dirty[1]&&r(38,mt=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(D,mt)),1&t.$$.dirty[0]&&(r(23,d=G.getDerivedFromVars(W.item_spacing)),O(),O=p(d,(t=>r(55,V=t)))),16777728&t.$$.dirty[1]&&(r(40,vt=ke(V,vt)),r(39,st=Qt(vt))),1&t.$$.dirty[0]&&(r(22,h=G.getDerivedFromVars(W.cross_spacing)),T(),T=p(h,(t=>r(54,A=t)))),8391168&t.$$.dirty[1]&&(r(42,dt=ke(A,vt)),r(41,ut=Qt(dt))),1&t.$$.dirty[0]&&(r(21,g=G.getDerivedFromVars(W.paddings)),z(),z=p(g,(t=>r(53,C=t)))),4198400&t.$$.dirty[1]&&r(43,yt=xe(C,yt)),64&t.$$.dirty[0]&&r(47,m="horizontal"===gt?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|131072&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===gt?"width":"height";t.push(G.getDerivedFromVars(e.json[n]))})),r(14,pt=Ht(t,(t=>t))),M(),M=p(pt,(t=>r(52,E=t)))}if(64&t.$$.dirty[0]|2105408&t.$$.dirty[1]&&(r(44,$t=[]),ft>1?$t.push("auto"):E.forEach((t=>{!t&&"horizontal"===gt||"match_parent"===(null==t?void 0:t.type)?$t.push("100%"):$t.push("max-content")}))),1&t.$$.dirty[0]&&(r(20,v=G.getDerivedFromVars(W.scroll_mode)),I(),I=p(v,(t=>r(51,k=t)))),456&t.$$.dirty[0]|1049280&t.$$.dirty[1]){const t={};let e={};r(45,bt=!1),(null==q?void 0:q.fakeElement)&&(e.fakeElement=!0),"horizontal"===gt?e.parentVAlign=mt:e.parentHAlign=mt,"paging"===k&&(r(45,bt=!0),e.scrollSnap="start",t["horizontal"===gt?"scroll-padding-left":"scroll-padding-top"]=Qt(vt/2)),1===ft&&(e.parentLayoutOrientation=gt),r(7,_t=Ae(t,_t)),r(8,wt=Ae(e,wt))}1&t.$$.dirty[0]&&(r(19,y=G.getDerivedFromVars(W.restrict_parent_scroll)),U(),U=p(y,(t=>r(28,F=t)))),5120&t.$$.dirty[1]&&r(18,$={padding:yt,"grid-gap":ut}),73984&t.$$.dirty[1]&&r(17,_={"grid-gap":st,[m]:Dr($t)}),64&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(16,b={orientation:gt,"scroll-snap":bt}),1&t.$$.dirty[0]&&(r(15,w=G.getDerivedFromVars(W.default_item)),N(),N=p(w,(t=>r(50,x=t)))),557056&t.$$.dirty[1]&&r(46,xt=ke(x,xt))},[W,L,H,q,X,it,gt,_t,wt,a,K,Z,Y,Q,pt,w,b,_,$,y,v,g,h,d,u,c,s,l,F,nt,rt,ot,kt,Et,Ct,tt,et,ft,mt,st,vt,ut,dt,yt,$t,bt,xt,m,o,i,x,k,E,C,A,V,D,P,j,S,function(t,e){ht[t?"unshift":"push"]((()=>{Z[e]=t,r(11,Z)}))},function(t){ht[t?"unshift":"push"]((()=>{X=t,r(4,X)}))},function(t){ht[t?"unshift":"push"]((()=>{K=t,r(10,K)}))},()=>Ct("left"),()=>Ct("right")]}const Ur={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"},Wr=37,Lr=39,Hr=36,qr=35,{Boolean:Gr}=Nt;function Kr(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;return r[89]=i,r}function Xr(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;r[89]=i;const o=r[89]===r[6];return r[92]=o,r}function Zr(t){let e,n;return e=new on({props:{cls:ye("tabs",Ur,t[46]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[ri]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),2147483626&n[0]|4137&n[1]|4&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Yr(t){let e,n,r=t[88].title+"";return{c(){e=z(r),n=T()},l(t){e=G(t,r),n=K(t)},m(t,r){S(t,e,r),S(t,n,r)},p(t,n){524288&n[0]&&r!==(r=t[88].title+"")&&X(e,r)},d(t){t&&F(e),t&&F(n)}}}function Qr(t){var e,n,r;let i,o;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[64](t[89],...n)}return i=new Je({props:{cls:ye("tabs__item",Ur,{selected:t[92],actionable:Boolean(t[88].title_click_action)}),actions:!t[88].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[88].title_click_action],attrs:{id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Yr]},$$scope:{ctx:t}}}),{c(){Tt(i.$$.fragment)},l(t){Ot(i.$$.fragment,t)},m(t,e){Jt(i,t,e),o=!0},p(e,n){var r,o,l;t=e;const s={};524352&n[0]&&(s.cls=ye("tabs__item",Ur,{selected:t[92],actionable:Boolean(t[88].title_click_action)})),524296&n[0]&&(s.actions=!t[88].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[88].title_click_action]),524360&n[0]&&(s.attrs={id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"}),524296&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),524288&n[0]|4&n[3]&&(s.$$scope={dirty:n,ctx:t}),i.$set(s)},i(t){o||(Pt(i.$$.fragment,t),o=!0)},o(t){jt(i.$$.fragment,t),o=!1},d(t){Bt(i,t)}}}function ti(t){let e,n,r;return{c(){e=I("div"),this.h()},l(t){e=H(t,"DIV",{class:!0,style:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=Ur.tabs__separator),B(e,"style",r=Yt(t[36]))},m(t,n){S(t,e,n)},p(t,n){32&n[1]&&r!==(r=Yt(t[36]))&&B(e,"style",r)},d(t){t&&F(e)}}}function ei(t){let e,n;return e=new oa({props:{div:t[18][t[89]].div,templateContext:t[1],layoutParams:t[5]}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};786432&n[0]&&(r.div=t[18][t[89]].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function ni(t){let e,n,r,i,o,a,l=t[30][t[89]]&&ei(t);return{c(){e=I("div"),l&&l.c(),n=T(),this.h()},l(t){e=H(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=U(e);l&&l.l(r),n=K(r),r.forEach(F),this.h()},h(){B(e,"class",r=ye("tabs__panel",Ur,{visible:t[31][t[89]]})),B(e,"role","tabpanel"),B(e,"id",i=t[44]+"-panel-"+t[89]),B(e,"aria-labelledby",o=t[44]+"-tab-"+t[89]),Z(e,"left",100*t[89]+"%")},m(t,r){S(t,e,r),l&&l.m(e,null),j(e,n),a=!0},p(t,s){t[30][t[89]]?l?(l.p(t,s),1074266112&s[0]&&Pt(l,1)):(l=ei(t),l.c(),Pt(l,1),l.m(e,n)):l&&(Vt(),jt(l,1,1,(()=>{l=null})),Dt()),(!a||524288&s[0]|1&s[1]&&r!==(r=ye("tabs__panel",Ur,{visible:t[31][t[89]]})))&&B(e,"class",r),(!a||524288&s[0]&&i!==(i=t[44]+"-panel-"+t[89]))&&B(e,"id",i),(!a||524288&s[0]&&o!==(o=t[44]+"-tab-"+t[89]))&&B(e,"aria-labelledby",o),(!a||524288&s[0])&&Z(e,"left",100*t[89]+"%")},i(t){a||(Pt(l),a=!0)},o(t){jt(l),a=!1},d(t){t&&F(e),l&&l.d()}}}function ri(t){let e,n,r,i,o,a,c,u,d,h,p,f=t[19],g=[];for(let e=0;e<f.length;e+=1)g[e]=Qr(Xr(t,f,e));const m=t=>jt(g[t],1,1,(()=>{g[t]=null}));let v=t[20]&&ti(t),y=t[19],$=[];for(let e=0;e<y.length;e+=1)$[e]=ni(Kr(t,y,e));const _=t=>jt($[t],1,1,(()=>{$[t]=null}));return{c(){e=I("div");for(let t=0;t<g.length;t+=1)g[t].c();r=T(),v&&v.c(),i=T(),o=I("div"),a=I("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=H(t,"DIV",{class:!0,role:!0});var n=U(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(F),r=K(t),v&&v.l(t),i=K(t),o=H(t,"DIV",{class:!0});var l=U(o);a=H(l,"DIV",{class:!0});var s=U(a);for(let t=0;t<$.length;t+=1)$[t].l(s);s.forEach(F),l.forEach(F),this.h()},h(){B(e,"class",n=Ur.tabs__list+" "+(t[43]?qt["root_restrict-scroll"]:"")),B(e,"role","tablist"),Z(e,"--divkit-tabs-title-padding",t[17]?_e(t[17]):""),Z(e,"--divkit-tabs-font-size",Qt(t[7])),Z(e,"--divkit-tabs-paddings",t[8]),Z(e,"--divkit-tabs-line-height",t[24]),Z(e,"--divkit-tabs-letter-spacing",t[25]),Z(e,"--divkit-tabs-active-font-weight",t[10]||""),Z(e,"--divkit-tabs-inactive-font-weight",t[11]||""),Z(e,"--divkit-tabs-active-font-family",t[26]||""),Z(e,"--divkit-tabs-inactive-font-family",t[27]||""),Z(e,"--divkit-tabs-active-text-color",t[12]),Z(e,"--divkit-tabs-inactive-text-color",t[13]),Z(e,"--divkit-tabs-active-background-color",t[14]),Z(e,"--divkit-tabs-inactive-background-color",t[15]),Z(e,"--divkit-tabs-border-radius",t[9]),Z(e,"--divkit-tabs-items-spacing",t[16]?te(t[16]):""),B(a,"class",c=ye("tabs__swiper",Ur,{inited:t[28],animated:t[29]})),B(o,"class",u=Ur.tabs__panels+" "+(t[43]?qt["root_restrict-scroll"]:""))},m(n,l){S(n,e,l);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[65](e),S(n,r,l),v&&v.m(n,l),S(n,i,l),S(n,o,l),j(o,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[66](a),t[67](o),d=!0,h||(p=[J(e,"keydown",t[48]),J(a,"touchstart",(function(){s(t[34]?t[49]:void 0)&&(t[34]?t[49]:void 0).apply(this,arguments)})),J(a,"touchmove",(function(){s(t[34]?t[50]:void 0)&&(t[34]?t[50]:void 0).apply(this,arguments)})),J(a,"touchend",(function(){s(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)})),J(a,"touchcancel",(function(){s(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)}))],h=!0)},p(r,l){if(t=r,524360&l[0]|73728&l[1]){let n;for(f=t[19],n=0;n<f.length;n+=1){const r=Xr(t,f,n);g[n]?(g[n].p(r,l),Pt(g[n],1)):(g[n]=Qr(r),g[n].c(),Pt(g[n],1),g[n].m(e,null))}for(Vt(),n=f.length;n<g.length;n+=1)m(n);Dt()}if((!d||4096&l[1]&&n!==(n=Ur.tabs__list+" "+(t[43]?qt["root_restrict-scroll"]:"")))&&B(e,"class",n),131072&l[0]&&Z(e,"--divkit-tabs-title-padding",t[17]?_e(t[17]):""),128&l[0]&&Z(e,"--divkit-tabs-font-size",Qt(t[7])),256&l[0]&&Z(e,"--divkit-tabs-paddings",t[8]),16777216&l[0]&&Z(e,"--divkit-tabs-line-height",t[24]),33554432&l[0]&&Z(e,"--divkit-tabs-letter-spacing",t[25]),1024&l[0]&&Z(e,"--divkit-tabs-active-font-weight",t[10]||""),2048&l[0]&&Z(e,"--divkit-tabs-inactive-font-weight",t[11]||""),67108864&l[0]&&Z(e,"--divkit-tabs-active-font-family",t[26]||""),134217728&l[0]&&Z(e,"--divkit-tabs-inactive-font-family",t[27]||""),4096&l[0]&&Z(e,"--divkit-tabs-active-text-color",t[12]),8192&l[0]&&Z(e,"--divkit-tabs-inactive-text-color",t[13]),16384&l[0]&&Z(e,"--divkit-tabs-active-background-color",t[14]),32768&l[0]&&Z(e,"--divkit-tabs-inactive-background-color",t[15]),512&l[0]&&Z(e,"--divkit-tabs-border-radius",t[9]),65536&l[0]&&Z(e,"--divkit-tabs-items-spacing",t[16]?te(t[16]):""),t[20]?v?v.p(t,l):(v=ti(t),v.c(),v.m(i.parentNode,i)):v&&(v.d(1),v=null),1074528290&l[0]|8193&l[1]){let e;for(y=t[19],e=0;e<y.length;e+=1){const n=Kr(t,y,e);$[e]?($[e].p(n,l),Pt($[e],1)):($[e]=ni(n),$[e].c(),Pt($[e],1),$[e].m(a,null))}for(Vt(),e=y.length;e<$.length;e+=1)_(e);Dt()}(!d||805306368&l[0]&&c!==(c=ye("tabs__swiper",Ur,{inited:t[28],animated:t[29]})))&&B(a,"class",c),(!d||4096&l[1]&&u!==(u=Ur.tabs__panels+" "+(t[43]?qt["root_restrict-scroll"]:"")))&&B(o,"class",u)},i(t){if(!d){for(let t=0;t<f.length;t+=1)Pt(g[t]);for(let t=0;t<y.length;t+=1)Pt($[t]);d=!0}},o(t){g=g.filter(Gr);for(let t=0;t<g.length;t+=1)jt(g[t]);$=$.filter(Gr);for(let t=0;t<$.length;t+=1)jt($[t]);d=!1},d(n){n&&F(e),N(g,n),t[65](null),n&&F(r),v&&v.d(n),n&&F(i),n&&F(o),N($,n),t[66](null),t[67](null),h=!1,l(p)}}}function ii(t){let e,n,r=!t[4]&&Zr(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[4]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),16&n[0]&&Pt(r,1)):(r=Zr(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function oi(t,e,r){let i,o,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D=n,P=n,j=n,S=n,F=n,N=n,I=n,M=n,z=n;var T,O;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z()));let{json:J={}}=e,{templateContext:B}=e,{origJson:R}=e,{layoutParams:U}=e;const W=ct(Gt),L=W.genId("tabs");let H=!1,q=Lt([]);f(t,q,(t=>r(19,$=t)));let G,K,X,Z={};const Y=W.getJsonWithVars(J.selected_tab);let Q,tt,et=Y&&Number(Y)||0,nt=12,rt="",it="",ot="",at="",st="",ut="",dt="",pt="",ft="",gt="",mt=0,vt="",$t="",_t=null,bt=!1,wt=!1,xt=et,kt=[],Et=[];async function Ct(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(xt=et,r(6,et=t),Ft(),r(29,wt=!0),Dt(100*-et),Pt(),async function(){await yt();const t=document.getElementById("".concat(L,"-panel-").concat(et));t&&r(22,K.style.height=Qt(t.offsetHeight),K)}(),St(),Mt=-et*K.clientWidth,e){await yt();const t=G.querySelector(".".concat(Ur.tabs__item_selected));t&&t.focus()}}function At(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==$?void 0:$.length;if(!n)return;const r=$.map((t=>t.index));let i=r.indexOf(et)+t;i>=n?i=0:i<0&&(i=n-1),Ct(r[i],e)}function Vt(t,e){return et===e||(Ct(e),!1)}async function Dt(t){await yt(),r(23,X.style.transform="translate3d(".concat(t,"%,0,0)"),X)}function Pt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,et-1):Math.min(et,xt),n=t?Math.min(i.length-1,et+1):Math.max(et,xt);r(30,kt=kt.map(((t,r)=>t||r>=e&&r<=n))),r(31,Et=Et.map(((t,r)=>r>=e&&r<=n)))}let jt=null;function St(){jt&&clearTimeout(jt),jt=window.setTimeout((()=>{r(31,Et=i.map(((t,e)=>e===et)))}),400)}function Ft(){bt||(r(28,bt=!0),r(22,K.style.height=Qt(K.clientHeight),K),r(23,X.style.transform="translate3d(".concat(100*-xt,"%,0,0)"),X))}let Nt,It,Mt,zt=null,Tt=null,Ot=!1,Jt=!1;return!J.id||H||(null==U?void 0:U.fakeElement)||W.registerInstance(J.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Ct(t)},setPreviousItem(t){let e=et-1;e<0&&(e="ring"===t?i.length-1:et),Ct(e)},setNextItem(t){let e=et+1;e>i.length-1&&(e="ring"===t?0:et),Ct(e)}}),lt((()=>{J.id&&!(null==U?void 0:U.fakeElement)&&W.unregisterInstance(J.id)})),t.$$set=t=>{"json"in t&&r(0,J=t.json),"templateContext"in t&&r(1,B=t.templateContext),"origJson"in t&&r(2,R=t.origJson),"layoutParams"in t&&r(3,U=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(18,i=J.items||[]),262144&t.$$.dirty[0])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=W.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):W.logError(Kt(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),q.set(t)}else q.set([]);if(524288&t.$$.dirty[0]&&((null==$?void 0:$.length)?r(4,H=!1):(r(4,H=!0),W.logError(Kt(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(r(42,o=W.getDerivedFromVars(J.width)),M(),M=p(o,(t=>r(63,A=t)))),1&t.$$.dirty[0]&&(r(41,a=W.getDerivedFromVars(J.height)),I(),I=p(a,(t=>r(62,C=t)))),40&t.$$.dirty[0]|3&t.$$.dirty[2]){let t={};(null==U?void 0:U.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==A?void 0:A.type)&&(t.parentHorizontalWrapContent=!0),C&&"wrap_content"!==C.type||(t.parentVerticalWrapContent=!0),r(5,Z=Ae(t,Z))}if(262225&t.$$.dirty[0]&&!H&&(et<0||et>=i.length)&&(W.logError(Kt(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:J.selected_tab,length:i.length}})),r(6,et=et<0?0:i.length-1)),524369&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&(H||$.some((t=>et===t.index))||(W.logError(Kt(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:J.selected_tab}})),r(6,et=(null===r(52,T=$[0])||void 0===T?void 0:T.index)||0))),1&t.$$.dirty[0]&&(r(40,l=W.getDerivedFromVars(J.tab_title_style)),N(),N=p(l,(t=>r(61,E=t)))),1073741824&t.$$.dirty[1]&&r(56,s=E||{}),128&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(7,nt=ln(s.font_size,nt)),384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(s.font_size||s.paddings)){const t=s.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/nt*10,right:(Number(t.right)||0)/nt*10,bottom:(Number(t.bottom)||0)/nt*10,left:(Number(t.left)||0)/nt*10};r(8,rt=xe(e,rt))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=s.line_height;void 0!==t&&Re(t)&&r(24,it=Qt(t/nt*10))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=s.letter_spacing;void 0!==t&&we(t)&&r(25,ot=Qt(t/nt*10))}if(640&t.$$.dirty[0]|37748736&t.$$.dirty[1]&&(s.corner_radius||s.corners_radius||s.font_size)){const t=null!==r(53,O=s.corner_radius)&&void 0!==O?O:1e3;s.corners_radius?r(9,at=function(t,e,n,r){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<i.length;++t)if(i[t]&&!we(i[t]))return r;return Se(t,e,n)}(s.corners_radius,t,nt,at)):we(t)&&r(9,at=Qt(t/nt*10))}1024&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(r(10,Q=cn(s.active_font_weight||s.font_weight,Q)),s.font_family&&"string"==typeof s.font_family?r(26,st=W.typefaceProvider(s.font_family,{fontWeight:Q||400})):r(26,st="")),2048&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(r(11,tt=cn(s.inactive_font_weight||s.font_weight,tt)),s.font_family&&"string"==typeof s.font_family?r(27,ut=W.typefaceProvider(s.font_family,{fontWeight:tt||400})):r(27,ut="")),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,dt=ne(s.active_text_color,1,dt)),8192&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(13,pt=ne(s.inactive_text_color,1,pt)),16384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(14,ft=ne(s.active_background_color,1,ft)),32768&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(15,gt=ne(s.inactive_background_color,1,gt)),65536&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(16,mt=ke(s.item_spacing,mt)),1&t.$$.dirty[0]&&(r(39,c=W.getDerivedFromVars(J.has_separator)),F(),F=p(c,(t=>r(20,k=t)))),1&t.$$.dirty[0]&&(r(38,u=W.getDerivedFromVars(J.separator_color)),S(),S=p(u,(t=>r(60,x=t)))),1&t.$$.dirty[0]&&(r(37,d=W.getDerivedFromVars(J.separator_paddings)),j(),j=p(d,(t=>r(59,w=t)))),1048576&t.$$.dirty[0]|830472192&t.$$.dirty[1]&&k&&(x&&r(54,vt=ne(x,1,vt)),w&&r(55,$t=xe(w,$t))),25165824&t.$$.dirty[1]&&r(36,h={background:vt,margin:$t}),1&t.$$.dirty[0]&&(r(35,g=W.getDerivedFromVars(J.switch_tabs_by_content_swipe_enabled)),P(),P=p(g,(t=>r(58,b=t)))),134217728&t.$$.dirty[1]&&r(34,m=void 0===b||Boolean(b)),1&t.$$.dirty[0]&&(r(33,v=W.getDerivedFromVars(J.restrict_parent_scroll)),z(),z=p(v,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(32,y=W.getDerivedFromVars(J.title_paddings)),D(),D=p(y,(t=>r(57,_=t)))),131072&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(17,_t=je(_||void 0,_t)),262144&t.$$.dirty[0]&&(H||(r(30,kt=i.map(((t,e)=>e===et))),r(31,Et=i.map(((t,e)=>e===et)))))},[J,B,R,U,H,Z,et,nt,rt,at,Q,tt,dt,pt,ft,gt,mt,_t,i,$,k,G,K,X,it,ot,st,ut,bt,wt,kt,Et,y,v,m,g,h,d,u,c,l,a,o,V,L,q,{},Vt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(t.which===Wr)At(-1,!0);else if(t.which===Lr)At(1,!0);else if(t.which===Hr)Ct(0,!0);else{if(t.which!==qr)return;Ct(i.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,o=null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,".".concat(qt["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==K||(Ot=!1,Jt=!1,zt=Ie(t),Tt=null,Nt=Date.now(),It=Mt||-et*K.clientWidth,r(29,wt=!1),jt&&clearTimeout(jt))},function(t){const e=Ie(t);if(!zt||Tt&&Tt.x===e.x&&Tt.y===e.y)return;Tt=e;const n=K.clientWidth;if(Ot){Mt=e.x-zt.x+It;const t=n*i.length;if(Mt>0)Mt=Mt*n/(Mt+3*n);else if(-Mt+n>t){let e=-Mt+n-t;e=e*n/(e+3*n),Mt=n-t-e}Dt(100*Mt/n)}else Math.abs(e.y-zt.y)>10?Jt=!0:!Jt&&Math.abs(e.x-zt.x)>8&&(Ft(),Ot=!0,zt=e,Dt(100*-et),Pt(!0));Ot&&t.cancelable&&t.preventDefault()},function(){Jt=!1,zt=null;let t=et;if(!Ot)return;Ot=!1;const e=Math.min(512,K.clientWidth);Math.abs(It-Mt)>e/4*Math.min(1,(Date.now()-Nt)/750)&&(t+=It>Mt?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===et?(Mt=-t*e,Dt(100*-t),St()):Ct(t)},T,O,vt,$t,s,_,b,w,x,E,C,A,(t,e)=>Vt(0,t),function(t){ht[t?"unshift":"push"]((()=>{G=t,r(21,G)}))},function(t){ht[t?"unshift":"push"]((()=>{X=t,r(23,X)}))},function(t){ht[t?"unshift":"push"]((()=>{K=t,r(22,K)}))}]}const ai={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function li(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function si(t){return t*t*t}function ci(t){const e=t-1;return e*e*e+1}function ui(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 di=ui([.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]),hi=ui([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]),pi={linear:r,ease:di,ease_in:si,ease_out:ci,ease_in_out:li,spring:hi},fi=200,gi=0,mi=0,vi=0;function yi(t){return Math.max(...t.map((t=>(Number(t.duration)||fi)+(Number(t.start_delay)||gi))))}function $i(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:l}=e;const s=null!=l?l:1;return{duration:a,css:t=>{const e=t*a,l=n.map((t=>{const n=Number(t.start_delay)||gi,a=Number(t.duration)||fi,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-l:l,u=(pi[t.interpolator||"ease_in_out"]||li)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||mi)};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||vi),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=l.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=l.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=l.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=l.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 _i(t,e,n){return t*(1-n)+e*n}const bi={linear:r,ease:di,ease_in:si,ease_out:ci,ease_in_out:li,spring:hi},wi=200,xi=0;function ki(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:xi,duration:null!==(r=l.duration)&&void 0!==r?r:wi,easing:l.interpolator&&l.interpolator in bi?bi[l.interpolator]:li,css:t=>["top:".concat(_i(o.top,a.top,t)-i.top,"px"),"left:".concat(_i(o.left,a.left,t)-i.left,"px"),"width:".concat(_i(o.width,a.width,t),"px"),"height:".concat(_i(o.height,a.height,t),"px")].join(";")}}function Ei(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Ei(t))})):e.push(t),e}const{Map:Ci}=Nt;function Ai(t,e,n){const r=t.slice();return r[27]=e[n],r}function Vi(t){let e,n;return e=new on({props:{cls:ai.state,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ni]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(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]),1073742034&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Di(t){let e,r,i=t[7],o=Pi(t);return{c(){o.c(),e=O()},l(t){o.l(t),e=O()},m(t,n){o.m(t,n),S(t,e,n),r=!0},p(t,r){128&r&&d(i,i=t[7])?(Vt(),jt(o,1,1,n),Dt(),o=Pi(t),o.c(),Pt(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Pt(o),r=!0)},o(t){jt(o),r=!1},d(t){t&&F(e),o.d(t)}}}function Pi(t){let e,n;return e=new oa({props:{div:t[7].div,templateContext:t[1]}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};128&n&&(r.div=t[7].div),2&n&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function ji(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[11](t[27])}return r=new oa({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=I("div"),n=I("div"),Tt(r.$$.fragment),o=T(),this.h()},l(t){e=H(t,"DIV",{class:!0});var i=U(e);n=H(i,"DIV",{class:!0});var a=U(n);Ot(r.$$.fragment,a),a.forEach(F),o=K(i),i.forEach(F),this.h()},h(){B(n,"class",i=ai["state__animation-child-inner"]),B(e,"class",a=ai["state__animation-child"])},m(t,i){S(t,e,i),j(e,n),Jt(r,n,null),j(e,o),s=!0,c||(u=J(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n&&(i.div=t[27].json),64&n&&(i.templateContext=t[27].templateContext),r.$set(i)},i(n){s||(Pt(r.$$.fragment,n),l||$t((()=>{l=Ft(e,ki,t[27]),l.start()})),s=!0)},o(t){jt(r.$$.fragment,t),s=!1},d(t){t&&F(e),Bt(r),c=!1,u()}}}function Si(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[10](t[27])}return r=new oa({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=I("div"),n=I("div"),Tt(r.$$.fragment),o=T(),this.h()},l(t){e=H(t,"DIV",{class:!0,style:!0});var i=U(e);n=H(i,"DIV",{class:!0});var a=U(n);Ot(r.$$.fragment,a),a.forEach(F),o=K(i),i.forEach(F),this.h()},h(){B(n,"class",i=ai["state__animation-child-inner"]),B(e,"class",a=ai["state__animation-child"]),Z(e,"left",t[27].offsetLeft+"px"),Z(e,"top",t[27].offsetTop+"px"),Z(e,"width",t[27].width+"px"),Z(e,"height",t[27].height+"px")},m(t,i){S(t,e,i),j(e,n),Jt(r,n,null),j(e,o),s=!0,c||(u=J(e,"introend",d),c=!0)},p(n,i){t=n;const o={};64&i&&(o.div=t[27].json),64&i&&(o.templateContext=t[27].templateContext),r.$set(o),(!s||64&i)&&Z(e,"left",t[27].offsetLeft+"px"),(!s||64&i)&&Z(e,"top",t[27].offsetTop+"px"),(!s||64&i)&&Z(e,"width",t[27].width+"px"),(!s||64&i)&&Z(e,"height",t[27].height+"px")},i(n){s||(Pt(r.$$.fragment,n),l||$t((()=>{l=Ft(e,$i,t[27]),l.start()})),s=!0)},o(t){jt(r.$$.fragment,t),s=!1},d(t){t&&F(e),Bt(r),c=!1,u()}}}function Fi(t,e){let n,r,i,o,a;const l=[Si,ji],s=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),i=s[r]=l[r](e),{key:t,first:null,c(){n=O(),i.c(),o=O(),this.h()},l(t){n=O(),i.l(t),o=O(),this.h()},h(){this.first=n},m(t,e){S(t,n,e),s[r].m(t,e),S(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Vt(),jt(s[a],1,1,(()=>{s[a]=null})),Dt(),i=s[r],i?i.p(e,n):(i=s[r]=l[r](e),i.c()),Pt(i,1),i.m(o.parentNode,o))},i(t){a||(Pt(i),a=!0)},o(t){jt(i),a=!1},d(t){t&&F(n),s[r].d(t),t&&F(o)}}}function Ni(t){var e;let n,r,i,o,a=[],s=new Ci,c=(null===(e=t[7])||void 0===e?void 0:e.div)&&Di(t),u=t[6];const d=t=>t[27];for(let e=0;e<u.length;e+=1){let n=Ai(t,u,e),r=d(n);s.set(r,a[e]=Fi(r,n))}return{c(){c&&c.c(),n=T(),r=I("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){c&&c.l(t),n=K(t),r=H(t,"DIV",{class:!0,"aria-hidden":!0});var e=U(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(F),this.h()},h(){B(r,"class",i=ai.state__animations),B(r,"aria-hidden","true")},m(e,i){c&&c.m(e,i),S(e,n,i),S(e,r,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(r,null);t[12](r),o=!0},p(t,e){var i;null!==(i=t[7])&&void 0!==i&&i.div?c?(c.p(t,e),128&e&&Pt(c,1)):(c=Di(t),c.c(),Pt(c,1),c.m(n.parentNode,n)):c&&(Vt(),jt(c,1,1,(()=>{c=null})),Dt()),320&e&&(u=t[6],Vt(),a=function(t,e,n,r,i,o,a,s,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,_=[];for(g=f;g--;){const t=h(i,o,g),r=n(t);let l=a.get(r);l?_.push((()=>l.p(t,e))):(l=u(r,t),l.c()),y.set(r,v[g]=l),r in m&&$.set(r,Math.abs(g-m[r]))}const b=new Set,w=new Set;function x(t){Pt(t,1),t.m(s,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)||b.has(r)?x(e):w.has(i)?p--:$.get(r)>$.get(i)?(w.add(r),x(e)):(b.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 l(_),v}(a,e,d,0,t,u,s,r,It,Fi,null,Ai),Dt())},i(t){if(!o){Pt(c);for(let t=0;t<u.length;t+=1)Pt(a[t]);o=!0}},o(t){jt(c);for(let t=0;t<a.length;t+=1)jt(a[t]);o=!1},d(e){c&&c.d(e),e&&F(n),e&&F(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function Ii(t){let e,n,r=!t[5]&&Vi(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,i),32&i&&Pt(r,1)):(r=Vi(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Mi(t){return"change_bounds"===t.type?t:"set"===t.type?Mi(t.items[0]):null}function zi(t,e,n){let r,{json:i={}}=e,{templateContext:o}=e,{origJson:a}=e,{layoutParams:l}=e;const s=ct(Gt),c=ct($e);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=s.getJsonWithVars(r),o=s.getJsonWithVars(o);const l=Ei(o),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:c,rootBbox:t,transitions:l,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=i.div_id||i.id;let b;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let i=[];if(u){const t=u.getBoundingClientRect();i=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const o=r.find((e=>e.state_id===t))||null;if(o?(b=t,n(7,w=o)):s.logError(Kt(new Error("Cannot find state with id"),{additional:{stateId:t}})),await yt(),!u)return;const a=u.getBoundingClientRect();let l=m.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>$(a,t,"in")));i=i.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=i.concat(l),p=c.reduce(((t,e)=>Math.max(t,yi(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:Mi(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(Kt(new Error("Missing state block with id"),{additional:{id:t}}))}}),st($e,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(Kt(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),l=yi(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return y.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,s.logError(Kt(new Error('Missing "id" prop for div "state"'))));let w=null;const x=s.getJsonWithVars(i.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return lt((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,i=t.json),"templateContext"in t&&n(1,o=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&i&&(h=new Set),1&t.$$.dirty&&n(9,r=i.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),s.logError(Kt(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||s.logError(Kt(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[i,o,a,l,u,p,g,w,E,r,t=>E(t),t=>E(t),function(t){ht[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const Ti={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:Oi}=Nt;function Ji(t,e,n){const r=t.slice();return r[48]=e[n],r}function Bi(t){let e,n;return e=new on({props:{cls:ye("pager",Ti,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[Ui]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=ye("pager",Ti,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),33336&n[0]|1048576&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Ri(t){var e;let n,r,i,o,a;return r=new oa({props:{div:t[48].json,templateContext:t[48].templateContext,origJson:t[48].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=I("div"),Tt(r.$$.fragment),i=T(),this.h()},l(t){n=H(t,"DIV",{class:!0});var e=U(n);Ot(r.$$.fragment,e),i=K(e),e.forEach(F),this.h()},h(){B(n,"class",o=Ti.pager__item)},m(t,e){S(t,n,e),Jt(r,n,null),j(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[48].json),16&e[0]&&(i.templateContext=t[48].templateContext),16&e[0]&&(i.origJson=t[48].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||(Pt(r.$$.fragment,t),a=!0)},o(t){jt(r.$$.fragment,t),a=!1},d(t){t&&F(n),Bt(r)}}}function Ui(t){let e,n,r,i,o,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=Ri(Ji(t,l,e));const c=t=>jt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=I("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=H(t,"DIV",{class:!0,style:!0});var n=U(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(F),this.h()},h(){B(e,"class",n=Ti.pager__items+" "+(t[15]?qt["root_restrict-scroll"]:"")),B(e,"style",r=Yt(t[9]))},m(n,r){S(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[36](e),i=!0,o||(a=J(e,"scroll",t[16]),o=!0)},p(t,o){if(24&o[0]){let n;for(l=t[4],n=0;n<l.length;n+=1){const r=Ji(t,l,n);s[n]?(s[n].p(r,o),Pt(s[n],1)):(s[n]=Ri(r),s[n].c(),Pt(s[n],1),s[n].m(e,null))}for(Vt(),n=l.length;n<s.length;n+=1)c(n);Dt()}(!i||32768&o[0]&&n!==(n=Ti.pager__items+" "+(t[15]?qt["root_restrict-scroll"]:"")))&&B(e,"class",n),(!i||512&o[0]&&r!==(r=Yt(t[9])))&&B(e,"style",r)},i(t){if(!i){for(let t=0;t<l.length;t+=1)Pt(s[t]);i=!0}},o(t){s=s.filter(Oi);for(let t=0;t<s.length;t+=1)jt(s[t]);i=!1},d(n){n&&F(e),N(s,n),t[36](null),o=!1,a()}}}function Wi(t){let e,n,r=!t[7]&&Bi(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[7]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),128&n[0]&&Pt(r,1)):(r=Bi(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Li(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v,y,$,b,w,x=n,k=n,E=n,C=n,A=n,V=n;var D,P,j,S,F,N,I;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V()));let{json:M={}}=e,{templateContext:z}=e,{origJson:T}=e,{layoutParams:O}=e;const J=ct(Gt),B=J.genId("pager");let R,U=!1,W=!1,L=0,H=0,q=!1,G="horizontal",K="",X="",Z="";const Y=Pr((function(){if(!U)return;const t=function(){const t=Array.from(R.children),e=R.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===G?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:L}();t!==L&&r(25,L=t)}),50);function Q(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===G,i=R.children[t],o=n?"offsetLeft":"offsetTop",a=n?"left":"top";R.scroll({[a]:i[o],behavior:e}),r(25,L=t)}return M.id&&!(null==O?void 0:O.fakeElement)&&J.registerInstance(M.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Q(t)},setPreviousItem(t){let e=L-1;e<0&&(e="ring"===t?i.length-1:L),Q(e)},setNextItem(t){let e=L+1;e>i.length-1&&(e="ring"===t?0:L),Q(e)}}),at((()=>{if(U=!0,Boolean(document.getElementById("".concat(B,"-tab-0")))){const t=[...R.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(B,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(B,"-tab-").concat(e))}})),lt((()=>{U=!1,M.id&&!(null==O?void 0:O.fakeElement)&&J.unregisterInstance(M.id)})),t.$$set=t=>{"json"in t&&r(0,M=t.json),"templateContext"in t&&r(1,z=t.templateContext),"origJson"in t&&r(2,T=t.origJson),"layoutParams"in t&&r(3,O=t.layoutParams)},t.$$.update=()=>{if(131073&t.$$.dirty[0]&&((null===r(17,D=M.items)||void 0===D?void 0:D.length)&&Array.isArray(M.items)?r(24,W=!1):(r(24,W=!0),J.logError(Kt(new Error('Incorrect or empty "items" prop for div "pager"'))))),16777219&t.$$.dirty[0]&&r(4,i=(!W&&M.items||[]).map((t=>{let e=t,n=z;return({templateContext:n,json:e}=J.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(14,o=J.getDerivedFromVars(M.layout_mode)),k(),k=p(o,(t=>r(32,v=t)))),2&t.$$.dirty[1]&&(v?"percentage"!==v.type&&"fixed"!==v.type?(r(26,q=!0),J.logError(Kt(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(26,q=!1):(r(26,q=!0),J.logError(Kt(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(r(13,a=J.getDerivedFromVars(M.orientation)),A(),A=p(a,(t=>r(35,b=t)))),134217728&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(27,G=er(b,G)),1&t.$$.dirty[0]&&(r(12,l=J.getDerivedFromVars(M.item_spacing)),C(),C=p(l,(t=>r(34,$=t)))),8&t.$$.dirty[1]){const t=null==$?void 0:$.value;t&&we(t)&&r(28,K=Qt(t||0))}if(1&t.$$.dirty[0]&&(r(11,s=J.getDerivedFromVars(M.paddings)),E(),E=p(s,(t=>r(33,y=t)))),536870912&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(29,X=xe(y,X)),1&t.$$.dirty[0]&&(r(10,c=J.getDerivedFromVars(M.restrict_parent_scroll)),V(),V=p(c,(t=>r(15,w=t)))),134217728&t.$$.dirty[0]&&r(31,u="horizontal"===G?"grid-auto-columns":"grid-auto-rows"),419168257&t.$$.dirty[0]|2&t.$$.dirty[1])if("fixed"===(null==v?void 0:v.type)){const t=te("horizontal"===G?((null===r(18,P=M.paddings)||void 0===P?void 0:P.left)||0)+((null===r(19,j=M.paddings)||void 0===j?void 0:j.right)||0):((null===r(20,S=M.paddings)||void 0===S?void 0:S.top)||0)+((null===r(21,F=M.paddings)||void 0===F?void 0:F.bottom)||0)),e=null===r(22,N=v.neighbour_page_width)||void 0===N?void 0:N.value;r(30,Z=e?"calc(100% + ".concat(t," - 2 * ").concat(te(e)," - 2 * ").concat(K,")"):"100%")}else if("percentage"===(null==v?void 0:v.type)){const t=null===r(23,I=v.page_width)||void 0===I?void 0:I.value;r(30,Z="".concat(Number(t),"%"))}1879048192&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(9,d={"grid-gap":K,padding:X,[u]:Z}),134217728&t.$$.dirty[0]&&r(8,h={orientation:G}),83886080&t.$$.dirty[0]&&r(7,f=W||q),33554448&t.$$.dirty[0]&&function(t,e){const n=M.id;if(n){const r=new Map(m);_(g,m=r.set(n,{instId:B,size:t,currentItem:e,scrollToPagerItem:Q}),m)}}(i.length,L),33554432&t.$$.dirty[0]&&function(t){var e;if(t===H)return;H=t;const n=J.getJsonWithVars(null===(e=i[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&J.execAnyActions(n)}(L)},r(6,g=J.getStore("pagers")),x(),x=p(g,(t=>r(39,m=t))),[M,z,T,O,i,R,g,f,h,d,c,s,l,a,o,w,Y,D,P,j,S,F,N,I,W,L,q,G,K,X,Z,u,v,y,$,b,function(t){ht[t?"unshift":"push"]((()=>{R=t,r(5,R)}))}]}const Hi={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 qi(t,e,n){const r=t.slice();r[43]=e[n],r[46]=n;const i=r[46]===r[12].currentItem;return r[44]=i,r}function Gi(t){let e,n=Array(t[12].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=Ki(qi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=O()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=O()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);S(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Array(t[12].size),o=0;o<n.length;o+=1){const a=qi(t,n,o);r[o]?r[o].p(a,i):(r[o]=Ki(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){N(r,t),t&&F(e)}}}function Ki(t){let e,n,r,i,o,a,s,c;function u(){return t[36](t[46])}return{c(){e=I("div"),this.h()},l(t){e=H(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=ye("indicator__item",Hi,{active:t[44]})+" "+qt.root__clickable),B(e,"role","tab"),B(e,"id",r=t[12].instId+"-tab-"+t[46]),B(e,"aria-controls",i=t[12].instId+"-panel-"+t[46]),B(e,"aria-selected",o=t[44]?"true":"false"),B(e,"tabindex",a=t[44]?0:-1)},m(n,r){S(n,e,r),s||(c=[J(e,"click",u),J(e,"keydown",t[24])],s=!0)},p(l,s){t=l,4096&s[0]&&n!==(n=ye("indicator__item",Hi,{active:t[44]})+" "+qt.root__clickable)&&B(e,"class",n),4096&s[0]&&r!==(r=t[12].instId+"-tab-"+t[46])&&B(e,"id",r),4096&s[0]&&i!==(i=t[12].instId+"-panel-"+t[46])&&B(e,"aria-controls",i),4096&s[0]&&o!==(o=t[44]?"true":"false")&&B(e,"aria-selected",o),4096&s[0]&&a!==(a=t[44]?0:-1)&&B(e,"tabindex",a)},d(t){t&&F(e),s=!1,l(c)}}}function Xi(t){let e,n,r,i,o=t[12]&&Gi(t);return{c(){e=I("div"),n=I("div"),o&&o.c(),this.h()},l(t){e=H(t,"DIV",{class:!0});var r=U(e);n=H(r,"DIV",{class:!0,role:!0});var i=U(n);o&&o.l(i),i.forEach(F),r.forEach(F),this.h()},h(){B(n,"class",r=Hi.indicator__items),B(n,"role","tablist"),Z(n,"margin","default"===t[6]?"0 ".concat(Qt(Math.max(0,t[4].width-t[5].width)/2)):""),Z(n,"--divkit-indicator-inactive-width",Qt(t[5].width)),Z(n,"--divkit-indicator-inactive-height",Qt(t[5].height)),Z(n,"--divkit-indicator-inactive-border-radius",Qt(t[5].borderRadius)),Z(n,"--divkit-indicator-inactive-background",t[5].background||""),Z(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),Z(n,"--divkit-indicator-active-width",Qt(t[4].width)),Z(n,"--divkit-indicator-active-height",Qt(t[4].height)),Z(n,"--divkit-indicator-active-border-radius",Qt(t[4].borderRadius)),Z(n,"--divkit-indicator-active-background",t[4].background||""),Z(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),Z(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),Z(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Qt((t[7]-t[5].width)/2)):""),Z(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Qt(t[9]):""),Z(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),Z(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Qt((t[8]-1)*t[9]):""),B(e,"class",i=Hi.indicator__scroller)},m(r,i){S(r,e,i),j(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=Gi(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&Z(n,"margin","default"===t[6]?"0 ".concat(Qt(Math.max(0,t[4].width-t[5].width)/2)):""),32&e[0]&&Z(n,"--divkit-indicator-inactive-width",Qt(t[5].width)),32&e[0]&&Z(n,"--divkit-indicator-inactive-height",Qt(t[5].height)),32&e[0]&&Z(n,"--divkit-indicator-inactive-border-radius",Qt(t[5].borderRadius)),32&e[0]&&Z(n,"--divkit-indicator-inactive-background",t[5].background||""),32&e[0]&&Z(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),16&e[0]&&Z(n,"--divkit-indicator-active-width",Qt(t[4].width)),16&e[0]&&Z(n,"--divkit-indicator-active-height",Qt(t[4].height)),16&e[0]&&Z(n,"--divkit-indicator-active-border-radius",Qt(t[4].borderRadius)),16&e[0]&&Z(n,"--divkit-indicator-active-background",t[4].background||""),16&e[0]&&Z(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),48&e[0]&&Z(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),224&e[0]&&Z(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Qt((t[7]-t[5].width)/2)):""),576&e[0]&&Z(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Qt(t[9]):""),320&e[0]&&Z(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),832&e[0]&&Z(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Qt((t[8]-1)*t[9]):"")},d(n){n&&F(e),o&&o.d(),t[37](null),t[38](null)}}}function Zi(t){let e,n;return e=new on({props:{cls:ye("indicator",Hi,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Xi]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=ye("indicator",Hi,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Yi(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k=n,E=n,C=n,A=n,V=n,D=n,P=n,j=n,S=n;var F,N;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S()));let{json:I={}}=e,{templateContext:M}=e,{origJson:z}=e,{layoutParams:T}=e;const O=["rounded_rectangle","circle"],J=ct(Gt);let B,R,U,W={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},L={width:10,height:10,borderRadius:5,background:"#33919cb5"},H="default",q=15,G=10,K=5;function X(t){t!==U.currentItem&&U.scrollToPagerItem(t)}async function Z(t){U.scrollToPagerItem(t),await yt();const e=R.querySelector(".".concat(Hi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&r(0,I=t.json),"templateContext"in t&&r(1,M=t.templateContext),"origJson"in t&&r(2,z=t.origJson),"layoutParams"in t&&r(3,T=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(22,i=J.getDerivedFromVars(I.shape)),D(),D=p(i,(t=>r(32,_=t)))),1&t.$$.dirty[0]&&(r(21,o=J.getDerivedFromVars(I.active_item_color)),A(),A=p(o,(t=>r(30,y=t)))),1&t.$$.dirty[0]&&(r(20,a=J.getDerivedFromVars(I.inactive_item_color)),V(),V=p(a,(t=>r(31,$=t)))),1&t.$$.dirty[0]&&(r(19,l=J.getDerivedFromVars(I.active_item_size)),P(),P=p(l,(t=>r(33,b=t)))),1&t.$$.dirty[0]&&(r(18,s=J.getDerivedFromVars(I.active_shape)),S(),S=p(s,(t=>r(35,x=t)))),1&t.$$.dirty[0]&&(r(17,c=J.getDerivedFromVars(I.inactive_shape)),j(),j=p(c,(t=>r(34,w=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(x&&r(4,W=In({type:"shape_drawable",shape:x},O,W)),w&&r(5,L=In({type:"shape_drawable",shape:w},O,L)),!x&&!w&&_)){const t=ln(b,1.3);r(5,L=In({type:"shape_drawable",shape:_,color:L.background},O,L)),r(5,L.background=ne($,1,L.background),L),r(4,W=Object.assign(Object.assign({},L),{width:L.width*t,height:L.height*t,borderRadius:L.borderRadius*t,background:W.background})),r(4,W.background=ne(y,1,W.background),W)}if(1&t.$$.dirty[0]&&(r(16,u=J.getDerivedFromVars(I.space_between_centers)),E(),E=p(u,(t=>r(28,m=t)))),1&t.$$.dirty[0]&&(r(15,d=J.getDerivedFromVars(I.items_placement)),C(),C=p(d,(t=>r(29,v=t)))),905970624&t.$$.dirty[0])if(!v||"default"!==v.type&&"stretch"!==v.type)r(6,H="default"),m&&r(7,q=ke(m.value,q));else if(r(6,H=v.type),"default"===H)r(7,q=ke(null===r(25,F=v.space_between_centers)||void 0===F?void 0:F.value,q));else if("stretch"===H){const t=v;r(8,G=ln(t.max_visible_items,G)),r(9,K=ke(null===r(26,N=t.item_spacing)||void 0===N?void 0:N.value,K))}134217728&t.$$.dirty[0]&&async function(t){if(I.pager_id&&t.has(I.pager_id)&&(r(12,U=t.get(I.pager_id)),await yt(),R)){const t=R.children[U.currentItem].offsetLeft;B.scroll({left:t-B.clientWidth/2,behavior:"smooth"})}}(g),64&t.$$.dirty[0]&&r(13,f={placement:H})},r(14,h=J.getStore("pagers")),k(),k=p(h,(t=>r(27,g=t))),[I,M,z,T,W,L,H,q,G,K,B,R,U,f,h,d,u,c,s,l,a,o,i,X,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=U;if(t.which===Wr)Z(n-1<0?n:n-1);else if(t.which===Lr)Z(n+1>=e?n:n+1);else if(t.which===Hr)Z(0);else{if(t.which!==qr)return;Z(e-1)}t.preventDefault()},F,N,g,m,v,y,$,_,b,w,x,t=>X(t),function(t){ht[t?"unshift":"push"]((()=>{R=t,r(11,R)}))},function(t){ht[t?"unshift":"push"]((()=>{B=t,r(10,B)}))}]}const Qi={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 to(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&ne(t.text_color)||"#000",i=sn(t.font_weight);if(Re(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:Qt(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 eo(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const no="function"==typeof BigInt;function ro(t){return no?BigInt(t):Number(t)}const io=ro("9223372036854775807"),oo=ro("-9223372036854775808");function ao(t){const e=ro(t);if(e>io||e<oo)throw new Error("Integer overflow.");return e}const lo=ao(0);function so(t){let e=t;return e<0&&(e=-e),e}function co(t){let e=0;return t>0?e=1:t<0&&(e=-1),ao(e)}class uo{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=Lt(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 ho={string:class extends uo{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends uo{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 uo{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>io||t<oo)throw new Error("Incorrect variable value");return ao(t)}fromString(t){const e=ao(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends uo{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 uo{convertValue(t){if("string"!=typeof t||!re(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends uo{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}},dict:class extends uo{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}};function po(t,e,n){if(!(e in ho))throw new Error("Unsupported variable type");return new ho[e](t,n)}function fo(t,e,n){const r=t.slice();return r[78]=e[n],r}function go(t,e,n){const r=t.slice();return r[78]=e[n],r}function mo(t){let e,n;return e=new on({props:{cls:ye("slider",Qi,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[bo]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=ye("slider",Qi,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function vo(t){let e,n;return{c(){e=I("div"),this.h()},l(t){e=H(t,"DIV",{class:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=Qi.slider__tick+" "+Qi.slider__tick_active),Z(e,"--divkit-slider-tick",t[78])},m(t,n){S(t,e,n)},p(t,n){131072&n[0]&&Z(e,"--divkit-slider-tick",t[78])},d(t){t&&F(e)}}}function yo(t){let e,n;return{c(){e=I("div"),this.h()},l(t){e=H(t,"DIV",{class:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=Qi.slider__tick+" "+Qi.slider__tick_inactive),Z(e,"--divkit-slider-tick",t[78])},m(t,n){S(t,e,n)},p(t,n){262144&n[0]&&Z(e,"--divkit-slider-tick",t[78])},d(t){t&&F(e)}}}function $o(t){let e,n,r,i,o;return{c(){e=I("div"),n=I("div"),r=z(t[6]),this.h()},l(i){e=H(i,"DIV",{class:!0});var o=U(e);n=H(o,"DIV",{class:!0});var a=U(n);r=G(a,t[6]),a.forEach(F),o.forEach(F),this.h()},h(){var r,a,l;B(n,"class",i=Qi["slider__thumb-text-inner"]),Z(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em"),Z(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||""),Z(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000"),B(e,"class",o=Qi["slider__thumb-text"])},m(t,i){S(t,e,i),j(e,n),j(n,r)},p(t,e){var i,o,a;64&e[0]&&X(r,t[6]),4096&e[0]&&Z(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em"),4096&e[0]&&Z(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||""),4096&e[0]&&Z(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&F(e)}}}function _o(t){let e,n,r,i,o;return{c(){e=I("div"),n=I("div"),r=z(t[7]),this.h()},l(i){e=H(i,"DIV",{class:!0});var o=U(e);n=H(o,"DIV",{class:!0});var a=U(n);r=G(a,t[7]),a.forEach(F),o.forEach(F),this.h()},h(){var r,a,l;B(n,"class",i=Qi["slider__thumb-text-inner"]),Z(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em"),Z(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||""),Z(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000"),B(e,"class",o=Qi["slider__thumb-text"]+" "+Qi["slider__thumb-text_secondary"])},m(t,i){S(t,e,i),j(e,n),j(n,r)},p(t,e){var i,o,a;128&e[0]&&X(r,t[7]),8192&e[0]&&Z(n,"font-size",(null===(i=t[13])||void 0===i?void 0:i.fontSize)||"1em"),8192&e[0]&&Z(n,"font-weight",(null===(o=t[13])||void 0===o?void 0:o.fontWeight)||""),8192&e[0]&&Z(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&F(e)}}}function bo(t){let e,n,r,i,o,a,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k=t[17],E=[];for(let e=0;e<k.length;e+=1)E[e]=vo(go(t,k,e));let C=t[18],A=[];for(let e=0;e<C.length;e+=1)A[e]=yo(fo(t,C,e));let V=t[12]&&$o(t),D=t[37]&&function(t){let e,n,r=t[13]&&_o(t);return{c(){e=I("div"),r&&r.c(),this.h()},l(t){e=H(t,"DIV",{class:!0});var n=U(e);r&&r.l(n),n.forEach(F),this.h()},h(){B(e,"class",n=Qi.slider__thumb+" "+Qi.slider__thumb_secondary),Z(e,"border-radius",Qt(t[9].borderRadius)),Z(e,"background",t[9].background),Z(e,"box-shadow",t[9].boxShadow||"")},m(t,n){S(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=_o(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&Z(e,"border-radius",Qt(t[9].borderRadius)),512&n[0]&&Z(e,"background",t[9].background),512&n[0]&&Z(e,"box-shadow",t[9].boxShadow||"")},d(t){t&&F(e),r&&r.d()}}}(t),P=t[37]&&function(t){let e,n,r,i,o;return{c(){e=I("input"),this.h()},l(t){e=H(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){B(e,"type","range"),B(e,"class",n=t[16]?Qi.slider__input:"".concat(Qi.slider__input," ").concat(Qi.slider__input_secondary)),B(e,"min",t[4]),B(e,"max",t[5]),B(e,"step","1"),e.value=r=t[16]?t[6]:t[7],B(e,"aria-label",t[20])},m(n,r){S(n,e,r),i||(o=[J(e,"input",t[68]),J(e,"mousedown",t[37]?t[40]:null),J(e,"touchstart",t[37]?t[40]:null)],i=!0)},p(t,i){65536&i[0]&&n!==(n=t[16]?Qi.slider__input:"".concat(Qi.slider__input," ").concat(Qi.slider__input_secondary))&&B(e,"class",n),16&i[0]&&B(e,"min",t[4]),32&i[0]&&B(e,"max",t[5]),65728&i[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&i[0]&&B(e,"aria-label",t[20])},d(t){t&&F(e),i=!1,l(o)}}}(t);return{c(){e=I("div"),n=I("div"),r=I("div"),o=T(),a=I("div"),c=T();for(let t=0;t<E.length;t+=1)E[t].c();u=T();for(let t=0;t<A.length;t+=1)A[t].c();d=T(),h=I("div"),V&&V.c(),f=T(),D&&D.c(),g=T(),m=I("input"),$=T(),P&&P.c(),this.h()},l(t){e=H(t,"DIV",{class:!0});var i=U(e);n=H(i,"DIV",{class:!0});var l=U(n);r=H(l,"DIV",{class:!0}),U(r).forEach(F),o=K(l),a=H(l,"DIV",{class:!0}),U(a).forEach(F),c=K(l);for(let t=0;t<E.length;t+=1)E[t].l(l);u=K(l);for(let t=0;t<A.length;t+=1)A[t].l(l);d=K(l),h=H(l,"DIV",{class:!0});var s=U(h);V&&V.l(s),s.forEach(F),f=K(l),D&&D.l(l),g=K(l),m=H(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),$=K(l),P&&P.l(l),l.forEach(F),i.forEach(F),this.h()},h(){B(r,"class",i=Qi.slider__track),Z(r,"height",Qt(t[10].height)),Z(r,"border-radius",Qt(t[10].borderRadius)),Z(r,"background",t[10].background),Z(r,"box-shadow",t[10].boxShadow||""),B(a,"class",s=Qi["slider__active-track"]),Z(a,"left",(100*t[23]).toFixed(2)+"%"),Z(a,"width",(100*t[24]).toFixed(2)+"%"),Z(a,"height",Qt(t[11].height)),Z(a,"border-radius",Qt(t[11].borderRadius)),Z(a,"background",t[11].background),Z(a,"box-shadow",t[11].boxShadow||""),B(h,"class",p=Qi.slider__thumb),Z(h,"border-radius",Qt(t[8].borderRadius)),Z(h,"background",t[8].background),Z(h,"box-shadow",t[8].boxShadow||""),B(m,"type","range"),B(m,"class",v=t[16]?"".concat(Qi.slider__input," ").concat(Qi.slider__input_secondary):Qi.slider__input),B(m,"min",t[4]),B(m,"max",t[5]),B(m,"step","1"),m.value=y=t[16]?t[7]:t[6],B(m,"aria-label",t[19]),B(n,"class",_=Qi["slider__tracks-inner"]),B(e,"class",b=Qi["slider__tracks-wrapper"])},m(i,l){S(i,e,l),j(e,n),j(n,r),j(n,o),j(n,a),j(n,c);for(let t=0;t<E.length;t+=1)E[t]&&E[t].m(n,null);j(n,u);for(let t=0;t<A.length;t+=1)A[t]&&A[t].m(n,null);j(n,d),j(n,h),V&&V.m(h,null),j(n,f),D&&D.m(n,null),j(n,g),j(n,m),j(n,$),P&&P.m(n,null),t[69](n),w||(x=J(m,"input",t[67]),w=!0)},p(t,e){if(1024&e[0]&&Z(r,"height",Qt(t[10].height)),1024&e[0]&&Z(r,"border-radius",Qt(t[10].borderRadius)),1024&e[0]&&Z(r,"background",t[10].background),1024&e[0]&&Z(r,"box-shadow",t[10].boxShadow||""),8388608&e[0]&&Z(a,"left",(100*t[23]).toFixed(2)+"%"),16777216&e[0]&&Z(a,"width",(100*t[24]).toFixed(2)+"%"),2048&e[0]&&Z(a,"height",Qt(t[11].height)),2048&e[0]&&Z(a,"border-radius",Qt(t[11].borderRadius)),2048&e[0]&&Z(a,"background",t[11].background),2048&e[0]&&Z(a,"box-shadow",t[11].boxShadow||""),131072&e[0]){let r;for(k=t[17],r=0;r<k.length;r+=1){const i=go(t,k,r);E[r]?E[r].p(i,e):(E[r]=vo(i),E[r].c(),E[r].m(n,u))}for(;r<E.length;r+=1)E[r].d(1);E.length=k.length}if(262144&e[0]){let r;for(C=t[18],r=0;r<C.length;r+=1){const i=fo(t,C,r);A[r]?A[r].p(i,e):(A[r]=yo(i),A[r].c(),A[r].m(n,d))}for(;r<A.length;r+=1)A[r].d(1);A.length=C.length}t[12]?V?V.p(t,e):(V=$o(t),V.c(),V.m(h,null)):V&&(V.d(1),V=null),256&e[0]&&Z(h,"border-radius",Qt(t[8].borderRadius)),256&e[0]&&Z(h,"background",t[8].background),256&e[0]&&Z(h,"box-shadow",t[8].boxShadow||""),t[37]&&D.p(t,e),65536&e[0]&&v!==(v=t[16]?"".concat(Qi.slider__input," ").concat(Qi.slider__input_secondary):Qi.slider__input)&&B(m,"class",v),16&e[0]&&B(m,"min",t[4]),32&e[0]&&B(m,"max",t[5]),65728&e[0]&&y!==(y=t[16]?t[7]:t[6])&&(m.value=y),524288&e[0]&&B(m,"aria-label",t[19]),t[37]&&P.p(t,e)},d(n){n&&F(e),N(E,n),N(A,n),V&&V.d(),D&&D.d(),P&&P.d(),t[69](null),w=!1,x()}}}function wo(t){let e,n,r,i,o=!t[14]&&mo(t);return{c(){o&&o.c(),e=O()},l(t){o&&o.l(t),e=O()},m(a,l){o&&o.m(a,l),S(a,e,l),n=!0,r||(i=J(window,"resize",t[42]),r=!0)},p(t,n){t[14]?o&&(Vt(),jt(o,1,1,(()=>{o=null})),Dt()):o?(o.p(t,n),16384&n[0]&&Pt(o,1)):(o=mo(t),o.c(),Pt(o,1),o.m(e.parentNode,e))},i(t){n||(Pt(o),n=!0)},o(t){jt(o),n=!1},d(t){o&&o.d(t),t&&F(e),r=!1,i()}}}function xo(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 ko(t,e,r){let i,o,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,F,N,I,M,z,T,O,J=n,B=n,R=n,U=n,W=n,L=n,H=n,q=n,G=n,K=n,X=n,Z=n;var Y,Q,tt,et;t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z()));let{json:nt={}}=e,{templateContext:rt}=e,{origJson:it}=e,{layoutParams:ot}=e;const lt={width:10,height:10,borderRadius:5,background:"#000"},st=["rounded_rectangle","circle"],ut=["rounded_rectangle"],dt=ct(Gt),pt=ct(Ne);let ft,gt=!1,mt=0,vt=100;const yt=dt.getJsonWithVars(nt.thumb_value_variable),$t=dt.getJsonWithVars(nt.thumb_secondary_value_variable);let _t=yt&&dt.getVariable(yt,"integer")||po("temp","integer",0);f(t,_t,(t=>r(64,z=t)));let bt=$t&&dt.getVariable($t,"integer")||po("temp","integer",0);f(t,bt,(t=>r(63,M=t)));let wt,xt,kt,Et=eo(z||0,mt,vt),Ct=eo(M||0,mt,vt),At=lt,Vt=At,Dt=lt,Pt=lt,jt=null,St=null,Ft=kt,Nt="",It="",Mt=!1;function zt(t,e){const n=Number(t.target.value);gt===("first"===e)?(r(7,Ct=n),bt.setValue(n)):(r(6,Et=n),_t.setValue(n))}let Tt=!1;function Ot(){if(!ft)return;const t=vt-mt,e=(null==jt?void 0:jt.width)||0,n=(null==St?void 0:St.width)||0;Math.max(e,n)*t>=(null==ft?void 0:ft.clientWidth)?Tt||(dt.logError(Kt(new Error("Slider ticks overlap each other"),{level:"warn"})),Tt=!0):Tt=!1}const Jt=Pr(Ot,50);return at((()=>{Ot()})),t.$$set=t=>{"json"in t&&r(0,nt=t.json),"templateContext"in t&&r(1,rt=t.templateContext),"origJson"in t&&r(2,it=t.origJson),"layoutParams"in t&&r(3,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(36,i=dt.getDerivedFromVars(nt.min_value)),Z(),Z=p(i,(t=>r(66,O=t)))),1&t.$$.dirty[0]&&(r(35,o=dt.getDerivedFromVars(nt.max_value)),X(),X=p(o,(t=>r(65,T=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(r(4,mt=De(O,mt)),r(5,vt=De(T,vt)),Ot()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=eo(z||0,mt,vt);t!==Et&&r(6,Et=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=eo(M||0,mt,vt);t!==Ct&&r(7,Ct=t)}if(1&t.$$.dirty[0]&&(r(34,a=dt.getDerivedFromVars(nt.thumb_style)),K(),K=p(a,(t=>r(62,I=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(8,At=In(I,st,At)),1&t.$$.dirty[0]&&(r(33,l=dt.getDerivedFromVars(nt.thumb_secondary_style)),G(),G=p(l,(t=>r(61,N=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(9,Vt=In(N,st,At)),1&t.$$.dirty[0]&&(r(32,s=dt.getDerivedFromVars(nt.track_inactive_style)),q(),q=p(s,(t=>r(60,F=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(10,Dt=In(F,ut,Dt)),1&t.$$.dirty[0]&&(r(31,c=dt.getDerivedFromVars(nt.track_active_style)),H(),H=p(c,(t=>r(59,S=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,Pt=In(S,ut,Pt)),1&t.$$.dirty[0]&&(r(30,u=dt.getDerivedFromVars(nt.tick_mark_active_style)),L(),L=p(u,(t=>r(58,j=t)))),134217728&t.$$.dirty[1]){let t=In(j,st,lt);t!==lt&&r(47,jt=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(jt?(r(17,wt=$t?xo(Math.min(Et,Ct),Math.max(Et,Ct)+1,mt,vt,!0):xo(mt,Et,mt,vt,!0)),Ot()):r(17,wt=[])),1&t.$$.dirty[0]&&(r(29,d=dt.getDerivedFromVars(nt.tick_mark_inactive_style)),W(),W=p(d,(t=>r(57,P=t)))),67108864&t.$$.dirty[1]){let t=In(P,st,lt);t!==lt&&r(48,St=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(St?(r(18,xt=$t?xo(Math.min(Et,Ct),Math.max(Et,Ct)+1,mt,vt,!1):xo(Et+1,vt+1,mt,vt,!0)),Ot()):r(18,xt=[])),1&t.$$.dirty[0]&&(r(28,h=dt.getDerivedFromVars(nt.thumb_text_style)),U(),U=p(h,(t=>r(56,D=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,kt=to(D,kt)),1&t.$$.dirty[0]&&(r(27,g=dt.getDerivedFromVars(nt.thumb_secondary_text_style)),R(),R=p(g,(t=>r(55,V=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(13,Ft=to(V,kt)),1&t.$$.dirty[0]&&(r(26,m=dt.getDerivedFromVars(nt.accessibility)),B(),B=p(m,(t=>r(54,A=t)))),8388608&t.$$.dirty[1]&&((null==A?void 0:A.description)?r(19,Nt=A.description):dt.logError(Kt(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(r(25,v=dt.getDerivedFromVars(nt.secondary_value_accessibility)),J(),J=p(v,(t=>r(53,C=t)))),4194304&t.$$.dirty[1]&&((null==C?void 0:C.description)?r(20,It=C.description):$t&&dt.logError(Kt(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;pt.hasAction()?(dt.logError(Kt(new Error('Cannot show "slider" inside component with action'))),t=!0):At===lt?(dt.logError(Kt(new Error('Missing "thumb_style" in slider'))),t=!0):Pt===lt?(dt.logError(Kt(new Error('Missing "track_active_style" in slider'))),t=!0):Dt===lt&&(dt.logError(Kt(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Mt&&r(14,Mt=t)}768&t.$$.dirty[0]&&r(52,y=Qt(Math.max(...[At.width,Vt.width,0].filter(we)))),768&t.$$.dirty[0]&&r(51,$=Qt(Math.max(...[At.height,Vt.height,0].filter(we)))),112&t.$$.dirty[0]&&r(50,_=(Et-mt)/(vt-mt)),176&t.$$.dirty[0]&&r(49,b=$t?(Ct-mt)/(vt-mt):void 0),786432&t.$$.dirty[1]&&r(24,w=void 0!==b?Math.abs(b-_):_),786432&t.$$.dirty[1]&&r(23,x=void 0!==b?Math.min(b,_):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&r(22,k={"--divkit-slider-thumb-width":Qt(At.width),"--divkit-slider-thumb-height":Qt(At.height),"--divkit-slider-thumb-secondary-width":Qt(Vt.width),"--divkit-slider-thumb-secondary-height":Qt(Vt.height),"--divkit-slider-text-offset-x":(null===r(43,Y=null==kt?void 0:kt.offset)||void 0===Y?void 0:Y.x)?te(kt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(44,Q=null==kt?void 0:kt.offset)||void 0===Q?void 0:Q.y)?te(kt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(45,tt=null==Ft?void 0:Ft.offset)||void 0===tt?void 0:tt.x)?te(Ft.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(46,et=null==Ft?void 0:Ft.offset)||void 0===et?void 0:et.y)?te(Ft.offset.y):void 0,"--divkit-slider-tick-active-width":jt?Qt(jt.width):void 0,"--divkit-slider-tick-active-height":jt?Qt(jt.height):void 0,"--divkit-slider-tick-active-border-radius":jt?Qt(jt.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==jt?void 0:jt.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==jt?void 0:jt.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":St?Qt(St.width):void 0,"--divkit-slider-tick-inactive-height":St?Qt(St.height):void 0,"--divkit-slider-tick-inactive-border-radius":St?Qt(St.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-max-thumb-width":y,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":_,"--divkit-slider-track-secondary-part":b})},r(21,E={}),[nt,rt,it,ot,mt,vt,Et,Ct,At,Vt,Dt,Pt,kt,Ft,Mt,ft,gt,wt,xt,Nt,It,E,k,x,w,v,m,g,h,d,u,c,s,l,a,o,i,$t,_t,bt,function(t){var e,n;const i="pageX"in t?t.pageX:null===(n=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageX;if(void 0===i)return;const o=ft.getBoundingClientRect(),a=(i-o.left)/o.width,l=(vt-mt)*a,s=Math.round(eo(l,mt,vt));r(16,gt=s<(Et+Ct)/2==Et<Ct)},zt,Jt,Y,Q,tt,et,jt,St,b,_,$,y,C,A,V,D,P,j,S,F,N,I,M,z,T,O,t=>zt(t,"first"),t=>zt(t,"second"),function(t){ht[t?"unshift":"push"]((()=>{ft=t,r(15,ft)}))}]}const Eo={input:"divkit-c3a4c",input__wrapper:"divkit-ef7eb",input__holder:"divkit-bb3da",input_multiline:"divkit-e48a3",input__input:"divkit-f11e0","input_highlight-color":"divkit-cc00f","input_vertical-overflow":"divkit-b7075"};function Co(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=Co(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 Ao(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 Vo{constructor(t){this.char=t}}class Do{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class Po{constructor(t){Ao(this,"filters",new Map),Ao(this,"destructedValue",[]),Ao(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 Vo)t+=n.char;else if(n instanceof Do)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 Do&&!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(Kt(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 Do(null,this.filters.get(e.key),e.placeholder):new Vo(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=Co(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),i=this.buildTailSubstring(n);this.cleanup(n);const o=this.firstEmptyHolderIndex(),a=this.calculateMaxShift(i,o);this.replaceChars(r,o,a);const l=this.firstEmptyHolderIndex();this.replaceChars(i,l),this.calculateCursorPosition(n,l)}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 Do&&++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 Do&&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 Do&&(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 Do);)++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 Do&&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 Do&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof Do);)++e;return e}}class jo extends Po{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function So(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 Fo extends Po{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}),So(this,"currencyFormatter",new Intl.NumberFormat),So(this,"decimalSeparator","."),So(this,"localeDigits",{}),So(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(Kt(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=Co(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 l=this.parseFormat(a)||0;o&&this.invalidateMaskDataForFormatted(l),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 l=t.includes(this.decimalSeparator)||-1!==i,s=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=s.length<=o;this.isDigit(u)?this.inDiff(e,r)&&!c&&l?a>0&&(s.push(u),a--):s.push(u):d&&-1===n&&r===i?(s.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(s.push(this.decimalSeparator),c=!0,n=r),r--}return s.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)}}function No(t){let e,n;return e=new on({props:{cls:ye("input",Eo,t[15]),style:t[14],customDescription:!0,customActions:"input",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[To]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=ye("input",Eo,t[15])),16384&n[0]&&(r.style=t[14]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),802288&n[0]|524288&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Io(t){let e;return{c(){e=z("​")},l(t){e=G(t,"​")},m(t,n){S(t,e,n)},d(t){t&&F(e)}}}function Mo(t){let e,n,r,i,o;return{c(){e=I("input"),this.h()},l(t){e=H(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){B(e,"type",t[10]),B(e,"inputmode",t[11]),B(e,"class",n=Eo.input__input),B(e,"autocomplete","off"),B(e,"autocapitalize","off"),B(e,"aria-label",t[12]),B(e,"style",r=Yt({padding:t[5]})),B(e,"placeholder",t[18]),e.value=t[4]},m(n,r){S(n,e,r),t[69](e),i||(o=[J(e,"input",t[35]),J(e,"mousedown",(function(){s(t[19]?t[36]:void 0)&&(t[19]?t[36]:void 0).apply(this,arguments)})),J(e,"click",(function(){s(t[19]?t[37]:void 0)&&(t[19]?t[37]:void 0).apply(this,arguments)}))],i=!0)},p(n,i){t=n,1024&i[0]&&B(e,"type",t[10]),2048&i[0]&&B(e,"inputmode",t[11]),4096&i[0]&&B(e,"aria-label",t[12]),32&i[0]&&r!==(r=Yt({padding:t[5]}))&&B(e,"style",r),262144&i[0]&&B(e,"placeholder",t[18]),16&i[0]&&e.value!==t[4]&&(e.value=t[4])},d(n){n&&F(e),t[69](null),i=!1,l(o)}}}function zo(t){let e,n,r,i,o;return{c(){e=I("textarea"),this.h()},l(t){e=H(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=Eo.input__input),B(e,"autocomplete","off"),B(e,"autocapitalize","off"),B(e,"aria-label",t[12]),B(e,"style",r=Yt({padding:t[5]})),B(e,"placeholder",t[18]),e.value=t[4]},m(n,r){S(n,e,r),t[68](e),i||(o=[J(e,"input",t[35]),J(e,"mousedown",(function(){s(t[19]?t[36]:void 0)&&(t[19]?t[36]:void 0).apply(this,arguments)})),J(e,"click",(function(){s(t[19]?t[37]:void 0)&&(t[19]?t[37]:void 0).apply(this,arguments)}))],i=!0)},p(n,i){t=n,4096&i[0]&&B(e,"aria-label",t[12]),32&i[0]&&r!==(r=Yt({padding:t[5]}))&&B(e,"style",r),262144&i[0]&&B(e,"placeholder",t[18]),16&i[0]&&(e.value=t[4])},d(n){n&&F(e),t[68](null),i=!1,l(o)}}}function To(t){let e,n,r,i,o,a,l,s=t[4].endsWith("\n")||!t[4],c=s&&Io();function u(t,e){return t[6]?zo:Mo}let d=u(t),h=d(t);return{c(){e=I("span"),n=I("span"),r=z(t[4]),c&&c.c(),o=T(),h.c(),this.h()},l(i){e=H(i,"SPAN",{class:!0,style:!0});var a=U(e);n=H(a,"SPAN",{class:!0,"aria-hidden":!0});var l=U(n);r=G(l,t[4]),c&&c.l(l),l.forEach(F),o=K(a),h.l(a),a.forEach(F),this.h()},h(){B(n,"class",i=Eo.input__holder),B(n,"aria-hidden","true"),B(e,"class",a=Eo.input__wrapper),B(e,"style",l=Yt(t[13]))},m(i,a){S(i,e,a),j(e,n),j(n,r),c&&c.m(n,null),t[67](n),j(e,o),h.m(e,null)},p(t,i){16&i[0]&&X(r,t[4]),16&i[0]&&(s=t[4].endsWith("\n")||!t[4]),s?c||(c=Io(),c.c(),c.m(n,null)):c&&(c.d(1),c=null),d===(d=u(t))&&h?h.p(t,i):(h.d(1),h=d(t),h&&(h.c(),h.m(e,null))),8192&i[0]&&l!==(l=Yt(t[13]))&&B(e,"style",l)},d(n){n&&F(e),c&&c.d(),t[67](null),h.d()}}}function Oo(t){let e,n,r=!t[9]&&No(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[9]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),512&n[0]&&Pt(r,1)):(r=No(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Jo(t,e,r){let i,o,a,l,s,c,u,d,h,g,m,v,y,$,b,w,x,k,E,C,A,V,D,P,j=n,S=n;var F;t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S()));let{json:N={}}=e,{templateContext:I}=e,{origJson:M}=e,{layoutParams:z}=e;const T=ct(Gt);let O,J,B=!1,R=!1,U=null;const W=N.text_variable,L=null===(F=N.mask)||void 0===F?void 0:F.raw_text_variable;let H=!1;W||(H=!0,T.logError(Kt(new Error('Missing "text_variable" in "input"'))));let q=W&&T.getVariable(W,"string")||po("temp","string","");f(t,q,(t=>r(51,d=t)));let G=L&&T.getVariable(L,"string")||po("temp","string","");f(t,G,(t=>r(52,h=t)));let K="";const X=T.getDerivedFromVars(N.mask);f(t,X,(t=>r(56,y=t)));const Z=T.getDerivedFromVars(N.hint_text);f(t,Z,(t=>r(66,D=t)));const Y=T.getDerivedFromVars(N.hint_color);f(t,Y,(t=>r(65,V=t)));let Q="";const tt=T.getDerivedFromVars(N.font_size);f(t,tt,(t=>r(64,A=t)));let et=12;const nt=T.getDerivedFromVars(N.font_weight);f(t,nt,(t=>r(63,C=t)));const rt=T.getDerivedFromVars(N.font_family);let it;f(t,rt,(t=>r(62,E=t)));let ot="";const lt=T.getDerivedFromVars(N.line_height);let st;f(t,lt,(t=>r(61,k=t)));const ut=T.getDerivedFromVars(N.letter_spacing);f(t,ut,(t=>r(60,x=t)));let dt="";const pt=T.getDerivedFromVars(N.text_color);f(t,pt,(t=>r(59,w=t)));let ft="#000";const gt=T.getDerivedFromVars(N.highlight_color);f(t,gt,(t=>r(58,b=t)));let mt="";const vt=T.getDerivedFromVars(N.keyboard_type);f(t,vt,(t=>r(57,$=t)));const $t={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let _t="multi_line_text",bt="text";const wt=document&&"inputMode"in document.createElement("input");let xt;const kt=T.getDerivedFromVars(N.max_visible_lines);f(t,kt,(t=>r(55,v=t)));let Et="",Ct=null,At="",Vt="";const Dt=T.getDerivedFromVars(N.select_all_on_focus);function Pt(){r(38,R=!!J&&J.scrollHeight>J.offsetHeight)}async function jt(){if(!O||!U)return;U.overrideRawValue(h),G.set(U.rawValue),_(q,d=r(4,K=U.value),d);const t=U.cursorPosition;await yt(),document.activeElement===O&&r(7,O.selectionStart=r(7,O.selectionEnd=t,O),O)}return f(t,Dt,(t=>r(19,P=t))),at((()=>{Pt(),O&&U&&h&&(U.overrideRawValue(h),_(q,d=r(4,K=U.value),d))})),t.$$set=t=>{"json"in t&&r(0,N=t.json),"templateContext"in t&&r(1,I=t.templateContext),"origJson"in t&&r(2,M=t.origJson),"layoutParams"in t&&r(3,z=t.layoutParams)},t.$$.update=()=>{if(33554432&t.$$.dirty[1]&&("fixed_length"===(null==(e=y)?void 0:e.type)?r(39,U=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new jo(r,e)}return n||null}(e,T.logError,U)):"currency"===(null==e?void 0:e.type)&&r(39,U=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new Fo(t.locale,e)}(e,T.logError,U)),U&&jt()),16&t.$$.dirty[0]|1048832&t.$$.dirty[1]&&(U||K===d||r(4,K=d)),2097408&t.$$.dirty[1]&&U&&U.rawValue!==h&&jt(),16&t.$$.dirty[2]&&r(18,i=D),512&t.$$.dirty[1]|8&t.$$.dirty[2]&&r(40,Q=ne(V,1,Q)),1024&t.$$.dirty[1]|4&t.$$.dirty[2]&&r(41,et=ln(A,et)),2048&t.$$.dirty[1]|3&t.$$.dirty[2]&&(r(42,it=cn(C,it)),r(43,ot=E&&"string"==typeof E?T.typefaceProvider(E,{fontWeight:it||400}):"")),1073742848&t.$$.dirty[1]){const t=k;Re(t)&&r(44,st=t/et)}var e;536870912&t.$$.dirty[1]&&be(x)&&r(45,dt=Qt(x)),268468224&t.$$.dirty[1]&&r(46,ft=ne(w,1,ft)),134283264&t.$$.dirty[1]&&r(47,mt=ne(b,1,mt)),100663296&t.$$.dirty[1]&&($&&$ in $t&&(r(10,bt=$t[$]),r(48,_t=$)),"currency"===(null==y?void 0:y.type)&&(r(10,bt=wt?"text":"tel"),r(11,xt="decimal"))),131072&t.$$.dirty[1]&&r(6,o="multi_line_text"===_t),1&t.$$.dirty[0]&&(r(17,a=T.getDerivedFromVars(N.paddings)),S(),S=p(a,(t=>r(54,m=t)))),25699328&t.$$.dirty[1]&&(Re(v)&&r(49,Et="calc(".concat(v*(st||1.25)*(et/10)+"em"," + ").concat(te(ke(null==m?void 0:m.top,0)+ke(null==m?void 0:m.bottom,0)),")")),r(50,Ct=je(m||void 0,Ct)),r(5,At=Ct?_e({top:(Number(Ct.top)||0)/et*10,right:(Number(Ct.right)||0)/et*10,bottom:(Number(Ct.bottom)||0)/et*10,left:(Number(Ct.left)||0)/et*10}):"")),1&t.$$.dirty[0]&&(r(16,l=T.getDerivedFromVars(N.accessibility)),j(),j=p(l,(t=>r(53,g=t)))),4194304&t.$$.dirty[1]&&((null==g?void 0:g.description)?r(12,Vt=g.description):T.logError(Kt(new Error('Missing accessibility "description" for input'),{level:"warn"}))),64&t.$$.dirty[0]|65664&t.$$.dirty[1]&&r(15,s={"highlight-color":Boolean(mt),"vertical-overflow":R,multiline:o}),391680&t.$$.dirty[1]&&r(14,c={"--divkit-input-hint-color":Q,"--divkit-input-highlight-color":mt,"font-weight":it,"font-family":ot,"line-height":st,"letter-spacing":dt,color:ft,"max-height":Et}),32&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(13,u={"font-size":Qt(et),padding:At})},[N,I,M,z,K,At,o,O,J,H,bt,xt,Vt,u,c,s,l,a,i,P,q,G,X,Z,Y,tt,nt,rt,lt,ut,pt,gt,vt,kt,Dt,function(t){const e=t.target.value||"";K!==e&&(r(4,K=e),q.setValue(e),U&&async function(){if(!O||!U)return;U.applyChangeFrom(K,null!==O.selectionEnd?O.selectionEnd:void 0),G.set(U.rawValue),_(q,d=r(4,K=U.value),d);const t=U.cursorPosition;await yt(),document.activeElement===O&&r(7,O.selectionStart=r(7,O.selectionEnd=t,O),O)}()),Pt()},function(){B=!1,setTimeout((()=>{B=!0}),250)},function(){B||O.select()},R,U,Q,et,it,ot,st,dt,ft,mt,_t,Et,Ct,d,h,g,m,v,y,$,b,w,x,k,E,C,A,V,D,function(t){ht[t?"unshift":"push"]((()=>{J=t,r(8,J)}))},function(t){ht[t?"unshift":"push"]((()=>{O=t,r(7,O)}))},function(t){ht[t?"unshift":"push"]((()=>{O=t,r(7,O)}))}]}const Bo={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72",select__option:"divkit-e774b"};function Ro(t,e,n){const r=t.slice();return r[49]=e[n],r}function Uo(t){let e,n;return e=new on({props:{cls:ye("select",Bo,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Lo]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=ye("select",Bo,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),9136&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Wo(t){let e,r,i,o,a=(t[49].text||t[49].value)+"";return{c(){e=I("option"),r=z(a),this.h()},l(t){e=H(t,"OPTION",{class:!0});var n=U(e);r=G(n,a),n.forEach(F),this.h()},h(){B(e,"class",i=Bo.select__option),e.__value=o=t[49].value,e.value=e.__value},m(t,n){S(t,e,n),j(e,r)},p:n,d(t){t&&F(e)}}}function Lo(t){let e,n,r,i,o,a,l,s,c,u,d=(t[4]||t[13]||"​")+"",h=t[16],p=[];for(let e=0;e<h.length;e+=1)p[e]=Wo(Ro(t,h,e));return{c(){e=I("span"),n=z(d),o=T(),a=I("select");for(let t=0;t<p.length;t+=1)p[t].c();this.h()},l(t){e=H(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=U(e);n=G(r,d),r.forEach(F),o=K(t),a=H(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var i=U(a);for(let t=0;t<p.length;t+=1)p[t].l(i);i.forEach(F),this.h()},h(){B(e,"class",r=Bo["select__select-text"]),B(e,"style",i=Yt(t[9])),B(e,"aria-hidden","true"),B(a,"class",l=Bo.select__select),B(a,"aria-label",t[7]),B(a,"style",s=Yt(t[8])),void 0===t[5]&&$t((()=>t[44].call(a)))},m(r,i){S(r,e,i),j(e,n),S(r,o,i),S(r,a,i);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(a,null);Y(a,t[5],!0),c||(u=J(a,"change",t[44]),c=!0)},p(t,r){if(8208&r[0]&&d!==(d=(t[4]||t[13]||"​")+"")&&X(n,d),512&r[0]&&i!==(i=Yt(t[9]))&&B(e,"style",i),65536&r[0]){let e;for(h=t[16],e=0;e<h.length;e+=1){const n=Ro(t,h,e);p[e]?p[e].p(n,r):(p[e]=Wo(n),p[e].c(),p[e].m(a,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=h.length}128&r[0]&&B(a,"aria-label",t[7]),256&r[0]&&s!==(s=Yt(t[8]))&&B(a,"style",s),65568&r[0]&&Y(a,t[5])},d(t){t&&F(e),t&&F(o),t&&F(a),N(p,t),c=!1,u()}}}function Ho(t){let e,n,r=!t[6]&&Uo(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[6]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),64&n[0]&&Pt(r,1)):(r=Uo(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function qo(t,e,r){let i,o,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k=n,E=n;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:C={}}=e,{templateContext:A}=e,{origJson:V}=e,{layoutParams:D}=e;const P=ct(Gt),j=P.getJsonWithVars(C.value_variable);let S=!1;j||(S=!0,P.logError(Kt(new Error('Missing "value_variable" in "select"'))));let F=j&&P.getVariable(j,"string")||po("temp","string","");f(t,F,(t=>r(5,x=t)));let N="";const I=C.options,M=Array.isArray(I)&&I.filter((t=>"string"==typeof t.value))||[];Array.isArray(M)&&M.length||P.logError(Kt(new Error('Empty selection "items" in "select"')));let z="",T=null,O="";const J=P.getDerivedFromVars(C.hint_text);f(t,J,(t=>r(42,b=t)));const B=P.getDerivedFromVars(C.hint_color);f(t,B,(t=>r(41,_=t)));let R="rgba(0,0,0,.45)";const U=P.getDerivedFromVars(C.font_size);f(t,U,(t=>r(40,$=t)));let W=12;const L=P.getDerivedFromVars(C.font_weight);f(t,L,(t=>r(39,y=t)));const H=P.getDerivedFromVars(C.font_family);let q;f(t,H,(t=>r(38,v=t)));let G="";const K=P.getDerivedFromVars(C.line_height);let X;f(t,K,(t=>r(37,m=t)));const Z=P.getDerivedFromVars(C.letter_spacing);f(t,Z,(t=>r(36,g=t)));let Y="";const Q=P.getDerivedFromVars(C.text_color);f(t,Q,(t=>r(35,h=t)));let tt="#000",et="";return t.$$set=t=>{"json"in t&&r(0,C=t.json),"templateContext"in t&&r(1,A=t.templateContext),"origJson"in t&&r(2,V=t.origJson),"layoutParams"in t&&r(3,D=t.layoutParams)},t.$$.update=()=>{if(32&t.$$.dirty[0]&&(N=x),32&t.$$.dirty[0]){const t=M.find((t=>t.value===x));t?r(4,z="string"==typeof t.text?t.text:t.value):(r(4,z=""),x&&P.logError(Kt(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1&t.$$.dirty[0]&&(r(14,i=P.getDerivedFromVars(C.paddings)),E(),E=p(i,(t=>r(43,w=t)))),268435456&t.$$.dirty[0]|512&t.$$.dirty[1]&&r(28,W=ln($,W)),301989888&t.$$.dirty[0]|4096&t.$$.dirty[1]&&(r(25,T=je(w||void 0,T)),r(26,O=T?_e({top:(Number(T.top)||0)/W*10,right:(Number(T.right)||0)/W*10,bottom:(Number(T.bottom)||0)/W*10,left:(Number(T.left)||0)/W*10}):"")),2048&t.$$.dirty[1]&&r(13,o=b),134217728&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(27,R=ne(_,1,R)),536870912&t.$$.dirty[0]|384&t.$$.dirty[1]&&(r(29,q=cn(y,q)),r(30,G=v&&"string"==typeof v?P.typefaceProvider(v,{fontWeight:q||400}):"")),268435456&t.$$.dirty[0]|64&t.$$.dirty[1]){const t=m;Re(t)&&r(31,X=t/W)}268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&be(g)&&r(32,Y=Qt(g/W*10)),20&t.$$.dirty[1]&&r(33,tt=ne(h,1,tt)),1&t.$$.dirty[0]&&(r(12,a=P.getDerivedFromVars(C.accessibility)),k(),k=p(a,(t=>r(34,d=t)))),8&t.$$.dirty[1]&&((null==d?void 0:d.description)?r(7,et=d.description):P.logError(Kt(new Error('Missing accessibility "description" for select'),{level:"warn"}))),16&t.$$.dirty[0]&&r(11,l={hint:!z}),1744830464&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(10,s={"--divkit-input-hint-color":R,"font-weight":q,"font-family":G,color:tt}),335544320&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(9,c={padding:O,"font-size":Qt(W),"line-height":X,"letter-spacing":Y}),268435456&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(8,u={"font-size":Qt(W),"line-height":X,"letter-spacing":Y})},[C,A,V,D,z,x,S,et,u,c,s,l,a,o,i,F,M,J,B,U,L,H,K,Z,Q,T,O,R,W,q,G,X,Y,tt,d,h,g,m,v,y,$,_,b,w,function(){x=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),F.set(x),r(16,M)}]}const Go={video__video:"divkit-c11f9"};function Ko(t,e,n){const r=t.slice();return r[32]=e[n],r}function Xo(t){let e,n;return e=new on({props:{cls:Go.video,customActions:"video",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Yo]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1520&n[0]|16&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Zo(t){let e,n,r,i,o;return{c(){e=I("source"),this.h()},l(t){e=H(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[32].src)||B(e,"src",n),B(e,"type",r=t[32].type)},m(n,r){S(n,e,r),i||(o=J(e,"error",t[21]),i=!0)},p(t,i){16&i[0]&&!u(e.src,n=t[32].src)&&B(e,"src",n),16&i[0]&&r!==(r=t[32].type)&&B(e,"type",r)},d(t){t&&F(e),i=!1,o()}}}function Yo(t){let e,n,r,i,o=t[4],a=[];for(let e=0;e<o.length;e+=1)a[e]=Zo(Ko(t,o,e));return{c(){e=I("video");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=H(t,"VIDEO",{class:!0,poster:!0});var n=U(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(F),this.h()},h(){B(e,"class",n=Go.video__video),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],B(e,"poster",t[8])},m(n,o){S(n,e,o);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null);t[27](e),r||(i=[J(e,"timeupdate",t[16]),J(e,"ended",t[17]),J(e,"playing",t[18]),J(e,"pause",t[19]),J(e,"waiting",t[20]),J(e,"error",t[21])],r=!0)},p(t,n){if(2097168&n[0]){let r;for(o=t[4],r=0;r<o.length;r+=1){const i=Ko(t,o,r);a[r]?a[r].p(i,n):(a[r]=Zo(i),a[r].c(),a[r].m(e,null))}for(;r<a.length;r+=1)a[r].d(1);a.length=o.length}32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),256&n[0]&&B(e,"poster",t[8])},d(n){n&&F(e),N(a,n),t[27](null),r=!1,l(i)}}}function Qo(t){let e,n,r=!t[9]&&Xo(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[9]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),512&n[0]&&Pt(r,1)):(r=Xo(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function ta(t,e,n){let r,i,o,a,l,{json:s={}}=e,{templateContext:c}=e,{origJson:u}=e,{layoutParams:d}=e;const h=ct(Gt);let p,g=!1,m=!1;const v=h.getDerivedFromVars(s.video_sources);f(t,v,(t=>n(26,l=t)));let y=[];const $=h.getDerivedFromVars(s.repeatable);f(t,$,(t=>n(25,a=t)));let _=!1;const b=h.getDerivedFromVars(s.autostart);f(t,b,(t=>n(24,o=t)));let w=!1;const x=h.getDerivedFromVars(s.muted);f(t,x,(t=>n(23,i=t)));let k=!1;const E=h.getDerivedFromVars(s.preview);let C;f(t,E,(t=>n(22,r=t)));const A=h.getJsonWithVars(s.elapsed_time_variable);let V=A&&h.getVariable(A,"integer")||po("temp","integer",0);return V.subscribe((t=>{m?m=!1:p&&n(10,p.currentTime=Number(t)/1e3,p)})),!s.id||g||(null==d?void 0:d.fakeElement)||h.registerInstance(s.id,{pause(){null==p||p.pause()},start(){const t=null==p?void 0:p.play();t&&t.catch((t=>{h.logError(Kt(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}}),lt((()=>{!s.id||g||(null==d?void 0:d.fakeElement)||h.unregisterInstance(s.id)})),t.$$set=t=>{"json"in t&&n(0,s=t.json),"templateContext"in t&&n(1,c=t.templateContext),"origJson"in t&&n(2,u=t.origJson),"layoutParams"in t&&n(3,d=t.layoutParams)},t.$$.update=()=>{var e,s;67108880&t.$$.dirty[0]&&(n(4,(e=l,s=y,y=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):s)),y.length?n(9,g=!1):(n(9,g=!0),h.logError(Kt(new Error('Missing "video_sources" in "video"'))))),33554464&t.$$.dirty[0]&&n(5,_=vn(a,_)),16777280&t.$$.dirty[0]&&n(6,w=vn(o,w)),8388736&t.$$.dirty[0]&&n(7,k=vn(i,k)),4194560&t.$$.dirty[0]&&n(8,C="string"==typeof r?lr(r):C)},[s,c,u,d,y,_,w,k,C,g,p,v,$,b,x,E,function(){p&&(m=!0,V.setValue(Math.floor(1e3*p.currentTime)))},function(){const t=h.getJsonWithVars(s.end_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.resume_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.pause_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.buffering_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.fatal_actions);h.execAnyActions(t)},r,i,o,a,l,function(t){ht[t?"unshift":"push"]((()=>{p=t,n(10,p)}))}]}const ea={};function na(t){let e,n,r;var i=t[5];function o(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=Q(i,o(t))),{c(){e&&Tt(e.$$.fragment),n=O()},l(t){e&&Ot(e.$$.fragment,t),n=O()},m(t,i){e&&Jt(e,t,i),S(t,n,i),r=!0},p(t,r){const a={};if(8&r&&(a.json=t[3]),16&r&&(a.templateContext=t[4]),4&r&&(a.layoutParams=t[2]),3&r&&(a.origJson=t[1]||t[0]),32&r&&i!==(i=t[5])){if(e){Vt();const t=e;jt(t.$$.fragment,1,0,(()=>{Bt(t,1)})),Dt()}i?(e=Q(i,o(t)),Tt(e.$$.fragment),Pt(e.$$.fragment,1),Jt(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){r||(e&&Pt(e.$$.fragment,t),r=!0)},o(t){e&&jt(e.$$.fragment,t),r=!1},d(t){t&&F(n),e&&Bt(e,t)}}}function ra(t){let e,n,r=t[5]&&na(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&Pt(r,1)):(r=na(t),r.c(),Pt(r,1),r.m(e.parentNode,e)):r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt())},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function ia(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const l=ct(Gt);let s,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,s=r),n(4,c=i),n(5,u=s&&ea[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=s&&ea[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(Kt(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,o,a,s,c,u,i]}ea.text=class extends Ut{constructor(t){super(),Rt(this,t,Pn,Dn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ea.container=class extends Ut{constructor(t){super(),Rt(this,t,Qn,Yn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ea.separator=class extends Ut{constructor(t){super(),Rt(this,t,or,ir,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},ea.image=vr,ea.gif=vr,ea.grid=class extends Ut{constructor(t){super(),Rt(this,t,Ar,Cr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ea.gallery=class extends Ut{constructor(t){super(),Rt(this,t,Rr,Br,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ea.tabs=class extends Ut{constructor(t){super(),Rt(this,t,oi,ii,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1,-1])}},ea.state=class extends Ut{constructor(t){super(),Rt(this,t,zi,Ii,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},ea.pager=class extends Ut{constructor(t){super(),Rt(this,t,Li,Wi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ea.indicator=class extends Ut{constructor(t){super(),Rt(this,t,Yi,Zi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ea.slider=class extends Ut{constructor(t){super(),Rt(this,t,ko,wo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ea.input=class extends Ut{constructor(t){super(),Rt(this,t,Jo,Oo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ea.select=class extends Ut{constructor(t){super(),Rt(this,t,qo,Ho,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ea.video=class extends Ut{constructor(t){super(),Rt(this,t,ta,Qo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}};const oa=class extends Ut{constructor(t){super(),Rt(this,t,ia,ra,d,{div:0,templateContext:6,origJson:1,layoutParams:2})}},aa={"root-svg-filters":"divkit-dc22b"};function la(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 sa(t){let e,n,r,i=[...Object.keys(t[0])],o=[];for(let e=0;e<i.length;e+=1)o[e]=ha(la(t,i,e));return{c(){e=M("svg"),n=M("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=q(t,"svg",{class:!0,"aria-hidden":!0});var r=U(e);n=q(r,"defs",{});var i=U(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(F),r.forEach(F),this.h()},h(){B(e,"class",r=aa["root-svg-filters"]),B(e,"aria-hidden","true")},m(t,r){S(t,e,r),j(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=[...Object.keys(t[0])],r=0;r<i.length;r+=1){const a=la(t,i,r);o[r]?o[r].p(a,e):(o[r]=ha(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&&F(e),N(o,t)}}}function ca(t){let e,n;return{c(){e=M("feBlend"),this.h()},l(t){e=q(t,"feBlend",{in2:!0,mode:!0}),U(e).forEach(F),this.h()},h(){B(e,"in2","SourceGraphic"),B(e,"mode",n=t[3])},m(t,n){S(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&B(e,"mode",n)},d(t){t&&F(e)}}}function ua(t){let e;return{c(){e=M("feComposite"),this.h()},l(t){e=q(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),U(e).forEach(F),this.h()},h(){B(e,"in2","SourceGraphic"),B(e,"operator","arithmetic"),B(e,"k1","1"),B(e,"k2","0"),B(e,"k3","0"),B(e,"k4","0")},m(t,n){S(t,e,n)},p:n,d(t){t&&F(e)}}}function da(t){let e,n;return{c(){e=M("feComposite"),this.h()},l(t){e=q(t,"feComposite",{in2:!0,operator:!0}),U(e).forEach(F),this.h()},h(){B(e,"in2","SourceGraphic"),B(e,"operator",n=t[3].split("_")[1])},m(t,n){S(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&B(e,"operator",n)},d(t){t&&F(e)}}}function ha(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?da:"multiply"===t[3]?ua:ca}let a=o(t),l=a(t);return{c(){e=M("filter"),n=M("feFlood"),l.c(),this.h()},l(t){e=q(t,"filter",{id:!0});var r=U(e);n=q(r,"feFlood",{"flood-color":!0}),U(n).forEach(F),l.l(r),r.forEach(F),this.h()},h(){B(n,"flood-color",r=t[2]),B(e,"id",i=t[0][t[1]])},m(t,r){S(t,e,r),j(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&B(n,"flood-color",r),a===(a=o(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&i!==(i=t[0][t[1]])&&B(e,"id",i)},d(t){t&&F(e),l.d()}}}function pa(t){let e,r=Object.keys(t[0]).length,i=r&&sa(t);return{c(){i&&i.c(),e=O()},l(t){i&&i.l(t),e=O()},m(t,n){i&&i.m(t,n),S(t,e,n)},p(t,n){let[o]=n;1&o&&(r=Object.keys(t[0]).length),r?i?i.p(t,o):(i=sa(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:n,o:n,d(t){i&&i.d(t),t&&F(e)}}}function fa(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const ga=class extends Ut{constructor(t){super(),Rt(this,t,fa,pa,d,{svgFiltersMap:0})}};function ma(t,e,n,r){const i=n[t.type];if(!i)return r(Kt(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 l=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)&&(l[o]=t[o]);return{json:l,templateContext:a}}function va(){}function ya(t){return{subscribe:e=>(e(t),va)}}function $a(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function _a(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function ba(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 wa(t){try{return ao(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function xa(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function ka(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,ka.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function Ea(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Ca(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:Ae,JsonStringContents:function(){var t,e,n;for(t=fe,e=[],n=Ve();n!==r;)e.push(n),n=Ve();return ge=t,e=jt(e)}},a=Ae,l="@{",s="}",c="@{}",u="\\",d="?",h=":",p="||",f="&&",g="==",m="!=",v=">=",y=">",$="<=",_="<",b="+",w="-",x="/",k="*",E="%",C="!",A="(",V=")",D=",",P="'",j=".",S="e",F="E",N="true",I="false",M=/^[^}]/,z=/^[^'}]/,T=/^[0-9]/,O=/^[a-zA-Z_0-9.]/,J=/^[a-zA-Z_]/,B=/^[ \t\r\n]/,R=be("@{",!1),U=be("}",!1),W=be("@{}",!1),L=be("\\",!1),H={type:"any"},q=we(["}"],!0,!1),G=be("?",!1),K=be(":",!1),X=be("||",!1),Z=be("&&",!1),Y=be("==",!1),Q=be("!=",!1),tt=be(">=",!1),et=be(">",!1),nt=be("<=",!1),rt=be("<",!1),it=be("+",!1),ot=be("-",!1),at=be("/",!1),lt=be("*",!1),st=be("%",!1),ct=be("!",!1),ut=be("(",!1),dt=be(")",!1),ht=be(",",!1),pt=xe("string"),ft=be("'",!1),gt=we(["'","}"],!0,!1),mt=xe("integer"),vt=we([["0","9"]],!1,!1),yt=xe("number"),$t=be(".",!1),_t=be("e",!1),bt=be("E",!1),wt=xe("boolean"),xt=be("true",!1),kt=be("false",!1),Et=we([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),Ct=xe("identifier"),At=we([["a","z"],["A","Z"],"_"],!1,!1),Vt=xe("whitespace"),Dt=we([" ","\t","\r","\n"],!1,!1),Pt=function(t){return t},jt=function(t){return ba(t)},St=function(t){return t},Ft=function(){return""},Nt=function(){return _e()},It=function(){throw new Error("Error tokenizing '"+t+"'.")},Mt=function(){throw new Error("Error tokenizing '"+t+"'.")},zt=function(t){return t},Tt=function(t){return xa(t)},Ot=function(){throw new Error("Error tokenizing '"+t+"'.")},Jt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Bt=function(t,e){return _a(t,e)},Rt=function(t,e){return _a(t,e)},Ut=function(t,e){return $a(t,e)},Wt=function(t,e){return $a(t,e)},Lt=function(t,e){return $a(t,e)},Ht=function(t,e){return $a(t,e)},qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Gt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Kt=function(t){return{type:"Variable",id:t}},Xt=function(t,e){return[t,...e]},Zt=function(t){return t},Yt=function(t){return t},Qt=function(t){return ba(t)},te=function(t){return t},ee=function(){return""},ne=function(){return _e()},re=function(){throw new Error("Error tokenizing '"+t+"'.")},ie=function(){throw new Error("Error tokenizing '"+t+"'.")},oe=function(t){return t},ae=function(t){return xa(t)},le=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){return{type:"IntegerLiteral",value:wa(_e())}},ce=function(){return{type:"NumberLiteral",value:parseFloat(_e())}},ue=function(){return{type:"NumberLiteral",value:parseFloat(_e())}},de=function(){return{type:"BooleanLiteral",value:!0}},he=function(){return{type:"BooleanLiteral",value:!1}},pe=function(){return{type:"Identifier",name:_e()}},fe=0,ge=0,me=[{line:1,column:1}],ve=0,ye=[],$e=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function _e(){return t.substring(ge,fe)}function be(t,e){return{type:"literal",text:t,ignoreCase:e}}function we(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function xe(t){return{type:"other",description:t}}function ke(e){var n,r=me[e];if(r)return r;for(n=e-1;!me[n];)n--;for(r={line:(r=me[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return me[e]=r,r}function Ee(t,e,n){var r=ke(t),o=ke(e),a={source:i,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:o.line,column:o.column}};return n&&i&&"function"==typeof i.offset&&(a.start=i.offset(a.start),a.end=i.offset(a.end)),a}function Ce(t){fe<ve||(fe>ve&&(ve=fe,ye=[]),ye.push(t))}function Ae(){var t,e;return t=fe,Be(),(e=De())!==r?(Be(),ge=t,t=Pt(e)):(fe=t,t=r),t}function Ve(){var e,n,i,o,a;if(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ce(R)),n!==r?(i=Be(),(o=De())!==r?(Be(),125===t.charCodeAt(fe)?(a=s,fe++):(a=r,0===$e&&Ce(U)),a!==r?(ge=e,e=St(o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,t.substr(fe,3)===c?(n=c,fe+=3):(n=r,0===$e&&Ce(W)),n!==r&&(ge=e,n=Ft()),(e=n)===r&&(e=fe,n=fe,$e++,92===t.charCodeAt(fe)?(i=u,fe++):(i=r,0===$e&&Ce(L)),i===r&&(t.substr(fe,2)===l?(i=l,fe+=2):(i=r,0===$e&&Ce(R))),$e--,i===r?n=void 0:(fe=n,n=r),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=Nt()):(fe=e,e=r)):(fe=e,e=r),e===r))){if(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ce(R)),n!==r){if(i=[],M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(q)),o!==r)for(;o!==r;)i.push(o),M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(q));else i=r;i!==r?(125===t.charCodeAt(fe)?(o=s,fe++):(o=r,0===$e&&Ce(U)),o!==r?(ge=e,e=It()):(fe=e,e=r)):(fe=e,e=r)}else fe=e,e=r;e===r&&(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ce(R)),n!==r&&(ge=e,n=Mt()),(e=n)===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ce(L)),n!==r?(t.substr(fe,2)===l?(i=l,fe+=2):(i=r,0===$e&&Ce(R)),i!==r?(ge=e,e=zt(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ce(L)),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=Tt(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ce(L)),n!==r&&(ge=e,n=Ot()),e=n))))}return e}function De(){var e,n,i,o,a,l;return e=fe,(n=Pe())!==r?(Be(),63===t.charCodeAt(fe)?(i=d,fe++):(i=r,0===$e&&Ce(G)),i!==r?(Be(),(o=De())!==r?(Be(),58===t.charCodeAt(fe)?(a=h,fe++):(a=r,0===$e&&Ce(K)),a!==r?(Be(),(l=De())!==r?(ge=e,e=Jt(n,o,l)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=Pe()),e}function Pe(){var e,n,i,o,a,l,s,c;if(e=fe,(n=je())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===p?(l=p,fe+=2):(l=r,0===$e&&Ce(X)),l!==r?(s=Be(),(c=je())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===p?(l=p,fe+=2):(l=r,0===$e&&Ce(X)),l!==r?(s=Be(),(c=je())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Bt(n,i)}else fe=e,e=r;return e}function je(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Se())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===f?(l=f,fe+=2):(l=r,0===$e&&Ce(Z)),l!==r?(s=Be(),(c=Se())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===f?(l=f,fe+=2):(l=r,0===$e&&Ce(Z)),l!==r?(s=Be(),(c=Se())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Rt(n,i)}else fe=e,e=r;return e}function Se(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Fe())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===g?(l=g,fe+=2):(l=r,0===$e&&Ce(Y)),l===r&&(t.substr(fe,2)===m?(l=m,fe+=2):(l=r,0===$e&&Ce(Q))),l!==r?(s=Be(),(c=Fe())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===g?(l=g,fe+=2):(l=r,0===$e&&Ce(Y)),l===r&&(t.substr(fe,2)===m?(l=m,fe+=2):(l=r,0===$e&&Ce(Q))),l!==r?(s=Be(),(c=Fe())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Ut(n,i)}else fe=e,e=r;return e}function Fe(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Ne())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===v?(l=v,fe+=2):(l=r,0===$e&&Ce(tt)),l===r&&(62===t.charCodeAt(fe)?(l=y,fe++):(l=r,0===$e&&Ce(et)),l===r&&(t.substr(fe,2)===$?(l=$,fe+=2):(l=r,0===$e&&Ce(nt)),l===r&&(60===t.charCodeAt(fe)?(l=_,fe++):(l=r,0===$e&&Ce(rt))))),l!==r?(s=Be(),(c=Ne())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===v?(l=v,fe+=2):(l=r,0===$e&&Ce(tt)),l===r&&(62===t.charCodeAt(fe)?(l=y,fe++):(l=r,0===$e&&Ce(et)),l===r&&(t.substr(fe,2)===$?(l=$,fe+=2):(l=r,0===$e&&Ce(nt)),l===r&&(60===t.charCodeAt(fe)?(l=_,fe++):(l=r,0===$e&&Ce(rt))))),l!==r?(s=Be(),(c=Ne())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Wt(n,i)}else fe=e,e=r;return e}function Ne(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Ie())!==r){for(i=[],o=fe,a=Be(),43===t.charCodeAt(fe)?(l=b,fe++):(l=r,0===$e&&Ce(it)),l===r&&(45===t.charCodeAt(fe)?(l=w,fe++):(l=r,0===$e&&Ce(ot))),l!==r?(s=Be(),(c=Ie())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),43===t.charCodeAt(fe)?(l=b,fe++):(l=r,0===$e&&Ce(it)),l===r&&(45===t.charCodeAt(fe)?(l=w,fe++):(l=r,0===$e&&Ce(ot))),l!==r?(s=Be(),(c=Ie())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Lt(n,i)}else fe=e,e=r;return e}function Ie(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Me())!==r){for(i=[],o=fe,a=Be(),47===t.charCodeAt(fe)?(l=x,fe++):(l=r,0===$e&&Ce(at)),l===r&&(42===t.charCodeAt(fe)?(l=k,fe++):(l=r,0===$e&&Ce(lt)),l===r&&(37===t.charCodeAt(fe)?(l=E,fe++):(l=r,0===$e&&Ce(st)))),l!==r?(s=Be(),(c=Me())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),47===t.charCodeAt(fe)?(l=x,fe++):(l=r,0===$e&&Ce(at)),l===r&&(42===t.charCodeAt(fe)?(l=k,fe++):(l=r,0===$e&&Ce(lt)),l===r&&(37===t.charCodeAt(fe)?(l=E,fe++):(l=r,0===$e&&Ce(st)))),l!==r?(s=Be(),(c=Me())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Ht(n,i)}else fe=e,e=r;return e}function Me(){var e,n,i;return(e=Oe())===r&&(e=Te())===r&&(e=fe,33===t.charCodeAt(fe)?(n=C,fe++):(n=r,0===$e&&Ce(ct)),n===r&&(43===t.charCodeAt(fe)?(n=b,fe++):(n=r,0===$e&&Ce(it)),n===r&&(45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ce(ot)))),n!==r?(Be(),(i=Me())!==r?(ge=e,e=qt(n,i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=fe,(n=Je())!==r?(Be(),40===t.charCodeAt(fe)?(i=A,fe++):(i=r,0===$e&&Ce(ut)),i!==r?(Be(),o=function(){var e,n,i,o,a,l;if(e=fe,(n=De())!==r){for(i=[],o=fe,Be(),44===t.charCodeAt(fe)?(a=D,fe++):(a=r,0===$e&&Ce(ht)),a!==r?(Be(),(l=De())!==r?o=l:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,Be(),44===t.charCodeAt(fe)?(a=D,fe++):(a=r,0===$e&&Ce(ht)),a!==r?(Be(),(l=De())!==r?o=l:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Xt(n,i)}else fe=e,e=r;return e===r&&(e=Be()),e}(),o!==r?(Be(),41===t.charCodeAt(fe)?(a=V,fe++):(a=r,0===$e&&Ce(dt)),a!==r?(ge=e,e=Gt(n,o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,(n=Je())!==r&&(ge=e,n=Kt(n)),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return $e++,e=fe,39===t.charCodeAt(fe)?(n=P,fe++):(n=r,0===$e&&Ce(ft)),n!==r?(i=function(){var t,e,n;for(t=fe,e=[],n=ze();n!==r;)e.push(n),n=ze();return ge=t,t=e=Qt(e)}(),39===t.charCodeAt(fe)?(o=P,fe++):(o=r,0===$e&&Ce(ft)),o!==r?(ge=e,e=Yt(i)):(fe=e,e=r)):(fe=e,e=r),$e--,e===r&&(n=r,0===$e&&Ce(pt)),e}(),e===r&&(e=Oe())===r&&(e=Te())===r&&(e=function(){var e,n;return $e++,e=fe,t.substr(fe,4)===N?(n=N,fe+=4):(n=r,0===$e&&Ce(xt)),n!==r&&(ge=e,n=de()),(e=n)===r&&(e=fe,t.substr(fe,5)===I?(n=I,fe+=5):(n=r,0===$e&&Ce(kt)),n!==r&&(ge=e,n=he()),e=n),$e--,e===r&&(n=r,0===$e&&Ce(wt)),e}(),e===r&&(e=fe,40===t.charCodeAt(fe)?(n=A,fe++):(n=r,0===$e&&Ce(ut)),n!==r&&(i=De())!==r?(41===t.charCodeAt(fe)?(o=V,fe++):(o=r,0===$e&&Ce(dt)),o!==r?(ge=e,e=Zt(i)):(fe=e,e=r)):(fe=e,e=r))),e}())),e}())),e}function ze(){var e,n,i,o,a;if(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ce(R)),n!==r?(i=Be(),(o=De())!==r?(Be(),125===t.charCodeAt(fe)?(a=s,fe++):(a=r,0===$e&&Ce(U)),a!==r?(ge=e,e=te(o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,t.substr(fe,3)===c?(n=c,fe+=3):(n=r,0===$e&&Ce(W)),n!==r&&(ge=e,n=ee()),(e=n)===r&&(e=fe,n=fe,$e++,92===t.charCodeAt(fe)?(i=u,fe++):(i=r,0===$e&&Ce(L)),i===r&&(39===t.charCodeAt(fe)?(i=P,fe++):(i=r,0===$e&&Ce(ft)),i===r&&(t.substr(fe,2)===l?(i=l,fe+=2):(i=r,0===$e&&Ce(R)))),$e--,i===r?n=void 0:(fe=n,n=r),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=ne()):(fe=e,e=r)):(fe=e,e=r),e===r))){if(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ce(R)),n!==r){if(i=[],z.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(gt)),o!==r)for(;o!==r;)i.push(o),z.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(gt));else i=r;i!==r?(125===t.charCodeAt(fe)?(o=s,fe++):(o=r,0===$e&&Ce(U)),o!==r?(ge=e,e=re()):(fe=e,e=r)):(fe=e,e=r)}else fe=e,e=r;e===r&&(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ce(R)),n!==r&&(ge=e,n=ie()),(e=n)===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ce(L)),n!==r?(t.substr(fe,2)===l?(i=l,fe+=2):(i=r,0===$e&&Ce(R)),i!==r?(ge=e,e=oe(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ce(L)),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=ae(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ce(L)),n!==r&&(ge=e,n=le()),e=n))))}return e}function Te(){var e,n,i,o;if($e++,e=fe,45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ce(ot)),n===r&&(n=null),i=[],T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(vt)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(vt));else i=r;return i!==r?(ge=e,e=se()):(fe=e,e=r),$e--,e===r&&(n=r,0===$e&&Ce(mt)),e}function Oe(){var e,n,i,o,a,l,s,c,u,d;for($e++,e=fe,45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ce(ot)),n===r&&(n=null),i=[],T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(vt));o!==r;)i.push(o),T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(vt));if(46===t.charCodeAt(fe)?(o=j,fe++):(o=r,0===$e&&Ce($t)),o!==r){if(a=[],T.test(t.charAt(fe))?(l=t.charAt(fe),fe++):(l=r,0===$e&&Ce(vt)),l!==r)for(;l!==r;)a.push(l),T.test(t.charAt(fe))?(l=t.charAt(fe),fe++):(l=r,0===$e&&Ce(vt));else a=r;if(a!==r){if(l=fe,101===t.charCodeAt(fe)?(s=S,fe++):(s=r,0===$e&&Ce(_t)),s===r&&(69===t.charCodeAt(fe)?(s=F,fe++):(s=r,0===$e&&Ce(bt))),s!==r){if(43===t.charCodeAt(fe)?(c=b,fe++):(c=r,0===$e&&Ce(it)),c===r&&(45===t.charCodeAt(fe)?(c=w,fe++):(c=r,0===$e&&Ce(ot))),c===r&&(c=null),u=[],T.test(t.charAt(fe))?(d=t.charAt(fe),fe++):(d=r,0===$e&&Ce(vt)),d!==r)for(;d!==r;)u.push(d),T.test(t.charAt(fe))?(d=t.charAt(fe),fe++):(d=r,0===$e&&Ce(vt));else u=r;u!==r?l=s=[s,c,u]:(fe=l,l=r)}else fe=l,l=r;l===r&&(l=null),ge=e,e=ce()}else fe=e,e=r}else fe=e,e=r;if(e===r){if(e=fe,45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ce(ot)),n===r&&(n=null),i=[],T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(vt)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(vt));else i=r;if(i!==r)if(101===t.charCodeAt(fe)?(o=S,fe++):(o=r,0===$e&&Ce(_t)),o===r&&(69===t.charCodeAt(fe)?(o=F,fe++):(o=r,0===$e&&Ce(bt))),o!==r){if(43===t.charCodeAt(fe)?(a=b,fe++):(a=r,0===$e&&Ce(it)),a===r&&(45===t.charCodeAt(fe)?(a=w,fe++):(a=r,0===$e&&Ce(ot))),a===r&&(a=null),l=[],T.test(t.charAt(fe))?(s=t.charAt(fe),fe++):(s=r,0===$e&&Ce(vt)),s!==r)for(;s!==r;)l.push(s),T.test(t.charAt(fe))?(s=t.charAt(fe),fe++):(s=r,0===$e&&Ce(vt));else l=r;l!==r?(ge=e,e=ue()):(fe=e,e=r)}else fe=e,e=r;else fe=e,e=r}return $e--,e===r&&(n=r,0===$e&&Ce(yt)),e}function Je(){var e,n,i,o,a;if($e++,e=fe,n=fe,$e++,i=function(){var e,n,i,o;return e=fe,t.substr(fe,4)===N?(n=N,fe+=4):(n=r,0===$e&&Ce(xt)),n===r&&(t.substr(fe,5)===I?(n=I,fe+=5):(n=r,0===$e&&Ce(kt))),n!==r?(i=fe,$e++,O.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(Et)),$e--,o===r?i=void 0:(fe=i,i=r),i!==r?e=n=[n,i]:(fe=e,e=r)):(fe=e,e=r),e}(),$e--,i===r?n=void 0:(fe=n,n=r),n!==r)if(J.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ce(At)),i!==r){for(o=[],O.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=r,0===$e&&Ce(Et));a!==r;)o.push(a),O.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=r,0===$e&&Ce(Et));ge=e,e=pe()}else fe=e,e=r;else fe=e,e=r;return $e--,e===r&&(n=r,0===$e&&Ce(Ct)),e}function Be(){var e,n;for($e++,e=[],B.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=r,0===$e&&Ce(Dt));n!==r;)e.push(n),B.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=r,0===$e&&Ce(Dt));return $e--,n=r,0===$e&&Ce(Vt),e}if((n=a())!==r&&fe===t.length)return n;throw n!==r&&fe<t.length&&Ce({type:"end"}),function(t,e,n){return new ka(ka.buildMessage(t,e),t,e,n)}(ye,ve<t.length?t.charAt(ve):null,ve<t.length?Ee(ve,ve+1):Ee(ve,ve))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(ka,Error),ka.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 l=this.location.end,s=Ea("",o.line.toString().length," "),c=r[i.line-1],u=(i.line===l.line?l.column:c.length+1)-i.column||1;e+="\n --\x3e "+a+"\n"+s+" |\n"+o.line+" | "+c+"\n"+s+" | "+Ea("",i.column-1," ")+Ea("",u,"^")}else e+="\n at "+a}return e},ka.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 Aa=new Map,Va=new Map;function Da(t,e,n){const r={args:e,cb:n},i=Aa.get(t)||[];Aa.has(t)||Aa.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Va.set(o,r)}function Pa(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 ja(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=>{ja(t,e)}));break;case"BinaryExpression":case"LogicalExpression":ja(t.left,e),ja(t.right,e);break;case"UnaryExpression":ja(t.argument,e);break;case"ConditionalExpression":ja(t.test,e),ja(t.consequent,e),ja(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{ja(t,e)}))}}function Sa(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function Fa(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Na(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 Fa(t.value);if("color"===t.type)return Ra(Ba(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";throw new Error("Unexpected type ".concat(t.type))}function Ia(t){let e=Na(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function Ma(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function za(t,e){if(no)return ao(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function Ta(t,e){if(e<oo||e>io)throw new Error("Integer overflow.");!no&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function Oa(t){const e=[];return ja(t,{Variable(t){e.push(t.id.name)}}),e}function Ja(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function Ba(t){const e=re(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function Ra(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 ee(Math.round(t).toString(16),2)})).join("").toUpperCase())}function Ua(t){return Ra(Ba(t))}const Wa=Number.MAX_VALUE,La=Number.MIN_VALUE,Ha="string",qa="integer",Ga="number",Ka="boolean",Xa="color",Za="url",Ya="datetime",Qa="dict";function tl(t,e){return{type:Ha,value:Na(e)}}function el(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:Ga,value:n}}function nl(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=Ua(o)),{type:r,value:o}}function rl(t,e,n){return nl(t,e,n,n.type)}function il(t,e,n){return nl(t,e,n,"color")}function ol(t,e,n){return nl(t,e,n,"url")}const al=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:qa,value:r}},ll=al("getUTCFullYear"),sl=al("getUTCMonth"),cl=al("getUTCDate"),ul=al("getUTCDay"),dl=al("getUTCHours"),hl=al("getUTCMinutes"),pl=al("getUTCSeconds"),fl=al("getUTCMilliseconds");function gl(t,e,n,r){if(!r.value.length)return t.warnings.push(Kt(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===Ha?e.value:Na(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 ml(t,e,n,r){const i=gl(t,e,n,r);return{type:Ha,value:i+Na(e)}}function vl(t,e,n,r){const i=gl(t,e,n,r);return{type:Ha,value:Na(e)+i}}function yl(t){return(e,n)=>{const r=Ba(n.value);return{type:Ga,value:r[t]/255}}}function $l(t){return(e,n,r)=>{const i=Ba(n.value);return i[t]=255*r.value,{type:Xa,value:Ra(i)}}}const _l=yl("a"),bl=yl("r"),wl=yl("g"),xl=yl("b"),kl=$l("a"),El=$l("r"),Cl=$l("g"),Al=$l("b");function Vl(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=ao(e.value)/ao(n);return Ta(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=ao(i)%ao(r)),{type:qa,value:i}}const Dl=36e5;function Pl(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 l=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))),s=typeof l;if(s!==t)throw"object"===s&&(s=Array.isArray(l)?"array":null===l?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(s,'".'));if("number"===t&&"integer"===e){if(l!==Math.round(l))throw new Error("Cannot convert value to integer.");Ta(n,l)}return"string"===t&&"color"===e&&(l=Ua(l)),{type:e,value:l}}}function jl(t,e){return function(n,r,i){try{for(var o=arguments.length,a=new Array(o>3?o-3:0),l=3;l<o;l++)a[l-3]=arguments[l];return t(n,i,...a)}catch(t){let n=r.value;return"color"===e&&(n=Ua(n)),{type:e,value:n}}}}const Sl=Pl("string","string"),Fl=Pl("number","number"),Nl=Pl("number","integer"),Il=Pl("boolean","boolean"),Ml=Pl("string","color"),zl=Pl("string","url"),Tl=jl(Sl,"string"),Ol=jl(Fl,"number"),Jl=jl(Nl,"integer"),Bl=jl(Il,"boolean"),Rl=jl(Ml,"color"),Ul=jl(zl,"url");function Wl(t){return t.map(Ia).join(", ")}Da("toString",[qa],tl),Da("toString",[Ga],tl),Da("toString",[Ka],tl),Da("toString",[Xa],tl),Da("toString",[Za],tl),Da("toNumber",[qa],el),Da("toNumber",[Ha],el),Da("toInteger",[Ga],(function(t,e){if(e.value>io||e.value<oo)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:qa,value:ao(n)}})),Da("toInteger",[Ha],(function(t,e){let n;try{n=ao(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>io||n<oo)throw new Error("Unable to convert value to Integer.");return{type:qa,value:n}})),Da("toInteger",[Ka],(function(t,e){return{type:qa,value:ao(e.value?1:0)}})),Da("toBoolean",[qa],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:Ka,value:n}})),Da("toBoolean",[Ha],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:Ka,value:"true"===e.value?1:0}})),Da("toColor",[Ha],(function(t,e){return{type:Xa,value:Ua(e.value)}})),Da("toUrl",[Ha],(function(t,e){return{type:Za,value:e.value}})),Da("encodeUri",[Ha],(function(t,e){try{return{type:Ha,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Da("decodeUri",[Ha],(function(t,e){try{return{type:Ha,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Da("getIntegerValue",[Ha,qa],rl),Da("getNumberValue",[Ha,Ga],rl),Da("getBooleanValue",[Ha,Ka],rl),Da("getStringValue",[Ha,Ha],rl),Da("getColorValue",[Ha,Xa],il),Da("getColorValue",[Ha,Ha],il),Da("getUrlValue",[Ha,Za],ol),Da("getUrlValue",[Ha,Ha],ol),Da("parseUnixTime",[qa],(function(t,e){return{type:Ya,value:new Date(1e3*Number(e.value))}})),Da("nowLocal",[],(function(){return{type:Ya,value:new Date}})),Da("addMillis",[Ya,qa],(function(t,e,n){return{type:Ya,value:new Date(e.value.getTime()+Number(n.value))}})),Da("setYear",[Ya,qa],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:Ya,value:r}})),Da("setMonth",[Ya,qa],(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:Ya,value:i}})),Da("setDay",[Ya,qa],(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(Na(e),"."));return r.setUTCDate(-1===i?0:i),{type:Ya,value:r}})),Da("setHours",[Ya,qa],(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:Ya,value:i}})),Da("setMinutes",[Ya,qa],(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:Ya,value:i}})),Da("setSeconds",[Ya,qa],(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:Ya,value:i}})),Da("setMillis",[Ya,qa],(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:Ya,value:i}})),Da("getYear",[Ya],ll),Da("getMonth",[Ya],sl),Da("getDay",[Ya],cl),Da("getDayOfWeek",[Ya],ul),Da("getHours",[Ya],dl),Da("getMinutes",[Ya],hl),Da("getSeconds",[Ya],pl),Da("getMillis",[Ya],fl),Da("getIntervalSeconds",[qa],(function(t,e){return Vl(t,e,1e3,60)})),Da("getIntervalTotalSeconds",[qa],(function(t,e){return Vl(t,e,1e3)})),Da("getIntervalMinutes",[qa],(function(t,e){return Vl(t,e,6e4,60)})),Da("getIntervalTotalMinutes",[qa],(function(t,e){return Vl(t,e,6e4)})),Da("getIntervalHours",[qa],(function(t,e){return Vl(t,e,Dl,24)})),Da("getIntervalTotalHours",[qa],(function(t,e){return Vl(t,e,Dl)})),Da("getIntervalTotalDays",[qa],(function(t,e){return Vl(t,e,864e5)})),Da("getIntervalTotalWeeks",[qa],(function(t,e){return Vl(t,e,6048e5)})),Da("len",[Ha],(function(t,e){return{type:qa,value:e.value.length}})),Da("contains",[Ha,Ha],(function(t,e,n){return{type:Ka,value:e.value.includes(n.value)?1:0}})),Da("substring",[Ha,qa,qa],(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:Ha,value:e.value.substring(Number(n.value),Number(r.value))}})),Da("replaceAll",[Ha,Ha,Ha],(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:Ha,value:i}})),Da("index",[Ha,Ha],(function(t,e,n){return{type:qa,value:e.value.indexOf(n.value)}})),Da("lastIndex",[Ha,Ha],(function(t,e,n){return{type:qa,value:e.value.lastIndexOf(n.value)}})),Da("trim",[Ha],(function(t,e){return{type:Ha,value:e.value.trim()}})),Da("trimLeft",[Ha],(function(t,e){return{type:Ha,value:e.value.replace(/^\s+/,"")}})),Da("trimRight",[Ha],(function(t,e){return{type:Ha,value:e.value.replace(/\s+$/,"")}})),Da("toUpperCase",[Ha],(function(t,e){return{type:Ha,value:e.value.toUpperCase()}})),Da("toLowerCase",[Ha],(function(t,e){return{type:Ha,value:e.value.toLowerCase()}})),Da("padStart",[Ha,qa,Ha],ml),Da("padStart",[qa,qa,Ha],ml),Da("padEnd",[Ha,qa,Ha],vl),Da("padEnd",[qa,qa,Ha],vl),Da("div",[qa,qa],(function(t,e,n){if(n.value===lo)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=za(0,r),Ta(t,r),{type:qa,value:r}})),Da("div",[Ga,Ga],(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:Ga,value:r}})),Da("mod",[qa,qa],(function(t,e,n){if(n.value===lo)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=za(0,r),Ta(t,r),{type:qa,value:r}})),Da("mod",[Ga,Ga],(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:Ga,value:r}})),Da("mul",[{type:qa,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:lo;for(let e=1;e<n.length;++e)i*=n[e].value,i=za(0,i),Ta(t,i);return{type:qa,value:i}})),Da("mul",[{type:Ga,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:Ga,value:i}})),Da("sub",[{type:qa,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:lo;for(let e=1;e<n.length;++e)i-=n[e].value,i=za(0,i),Ta(t,i);return{type:qa,value:i}})),Da("sub",[{type:Ga,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:Ga,value:i}})),Da("sum",[{type:qa,isVararg:!0}],(function(t){let e=lo;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=za(0,e),Ta(t,e);return{type:qa,value:e}})),Da("sum",[{type:Ga,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:Ga,value:e}})),Da("abs",[qa],(function(t,e){const n=so(e.value);return Ta(t,n),{type:e.type,value:n}})),Da("abs",[Ga],(function(t,e){const n=Math.abs(e.value);return{type:Ga,value:n}})),Da("max",[{type:qa,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:qa,value:i}})),Da("max",[{type:Ga,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:Ga,value:Math.max(...n.map((t=>t.value)))}})),Da("min",[{type:qa,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:qa,value:i}})),Da("min",[{type:Ga,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:Ga,value:Math.min(...n.map((t=>t.value)))}})),Da("maxNumber",[],(function(){return{type:Ga,value:Wa}})),Da("minNumber",[],(function(){return{type:Ga,value:La}})),Da("maxInteger",[],(function(t){return Ta(t,io),{type:qa,value:io}})),Da("minInteger",[],(function(t){return Ta(t,oo),{type:qa,value:oo}})),Da("round",[Ga],(function(t,e){const n=Math.sign(e.value);return{type:Ga,value:n*Math.round(Math.abs(e.value))}})),Da("floor",[Ga],(function(t,e){return{type:Ga,value:Math.floor(e.value)}})),Da("ceil",[Ga],(function(t,e){return{type:Ga,value:Math.ceil(e.value)}})),Da("signum",[qa],(function(t,e){return{type:qa,value:co(e.value)}})),Da("signum",[Ga],(function(t,e){return{type:Ga,value:Math.sign(e.value)}})),Da("copySign",[qa,qa],(function(t,e,n){let r;if(n.value===lo)r=e.value;else if(e.value===lo)r=0;else{const t=co(n.value);r=so(e.value)*t}return Ta(t,r),{type:qa,value:r}})),Da("copySign",[Ga,Ga],(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:Ga,value:i}})),Da("getColorAlpha",[Ha],_l),Da("getColorAlpha",[Xa],_l),Da("getColorRed",[Ha],bl),Da("getColorRed",[Xa],bl),Da("getColorGreen",[Ha],wl),Da("getColorGreen",[Xa],wl),Da("getColorBlue",[Ha],xl),Da("getColorBlue",[Xa],xl),Da("setColorAlpha",[Ha,Ga],kl),Da("setColorAlpha",[Xa,Ga],kl),Da("setColorRed",[Ha,Ga],El),Da("setColorRed",[Xa,Ga],El),Da("setColorGreen",[Ha,Ga],Cl),Da("setColorGreen",[Xa,Ga],Cl),Da("setColorBlue",[Ha,Ga],Al),Da("setColorBlue",[Xa,Ga],Al),Da("rgb",[Ga,Ga,Ga],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:Xa,value:Ra(i)}})),Da("argb",[Ga,Ga,Ga,Ga],(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:Xa,value:Ra(o)}})),Da("getDictString",[Qa,{type:Ha,isVararg:!0}],Sl),Da("getDictNumber",[Qa,{type:Ha,isVararg:!0}],Fl),Da("getDictInteger",[Qa,{type:Ha,isVararg:!0}],Nl),Da("getDictBoolean",[Qa,{type:Ha,isVararg:!0}],Il),Da("getDictColor",[Qa,{type:Ha,isVararg:!0}],Ml),Da("getDictUrl",[Qa,{type:Ha,isVararg:!0}],zl),Da("getDictOptString",[Ha,Qa,{type:Ha,isVararg:!0}],Tl),Da("getDictOptNumber",[Ga,Qa,{type:Ha,isVararg:!0}],Ol),Da("getDictOptInteger",[qa,Qa,{type:Ha,isVararg:!0}],Jl),Da("getDictOptBoolean",[Ka,Qa,{type:Ha,isVararg:!0}],Bl),Da("getDictOptColor",[Xa,Qa,{type:Ha,isVararg:!0}],Rl),Da("getDictOptColor",[Ha,Qa,{type:Ha,isVararg:!0}],Rl),Da("getDictOptUrl",[Ha,Qa,{type:Ha,isVararg:!0}],Ul),Da("getDictOptUrl",[Za,Qa,{type:Ha,isVararg:!0}],Ul);const Ll={StringLiteral:function(t,e){return{type:Ha,value:e.value}},NumberLiteral:function(t,e){return{type:Ga,value:e.value}},IntegerLiteral:function(t,e){return Ta(t,e.value),{type:qa,value:e.value}},BooleanLiteral:function(t,e){return{type:Ka,value:e.value?1:0}},UnaryExpression:function(t,e){const n=Sa(Hl(t,e.argument));switch(e.operator){case"!":if(n.type===Ka)return{type:Ka,value:n.value?0:1};Ja("".concat(e.operator).concat(Ia(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===qa){const e=n.value*ao(r);return Ta(t,e),{type:qa,value:e}}if(n.type===Ga)return{type:Ga,value:n.value*r};Ja("".concat(e.operator).concat(Ia(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=Sa(Hl(t,e.test));if(n.type===Ka)return n.value?Hl(t,e.consequent):Hl(t,e.alternate);Ja("".concat(Ia(n)," ? ").concat(Ia(Hl(t,e.consequent))," : ").concat(Ia(Hl(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Hl(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=Na(Hl(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:Ha,value:n}},LogicalExpression:function(t,e){const n=Sa(Hl(t,e.left));if(n.type!==Ka&&Ja("".concat(Ia(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:Ka,value:0};const r=Sa(Hl(t,e.right));return r.type!==Ka&&Ja("".concat(Ia(n)," ").concat(e.operator," ").concat(Ia(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(Ma(r.type),".")),{type:Ka,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=Hl(t,e.left),i=Hl(t,e.right);if(r.type!==i.type&&Ja("".concat(Ia(r)," ").concat(e.operator," ").concat(Ia(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(Ma(r.type)," and ").concat(Ma(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===Ya&&n.type===Ya?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:Ka,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==Ga&&e.type!==qa&&e.type!==Ya&&Ja("".concat(Ia(e)," ").concat(t," ").concat(Ia(n)),"Operator '".concat(t,"' cannot be applied to ").concat(Ma(e.type)," type."));const i=e.type===Ya?e.value.getTime():e.value,o=n.type===Ya?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:Ka,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==Ha&&n.type!==Ga&&n.type!==qa&&Ja("".concat(Ia(n)," ").concat(e," ").concat(Ia(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Ma(n.type)," type.")),n.type===Ha)return"-"===e&&Ja("".concat(Ia(n)," - ").concat(Ia(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Ma(n.type)," type.")),{type:Ha,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===qa)try{i=za(0,i),Ta(t,i)}catch(t){Ja("".concat(Ia(n)," ").concat(e," ").concat(Ia(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!==qa&&n.type!==Ga&&Ja("".concat(Ia(n)," ").concat(e," ").concat(Ia(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Ma(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&Ja("".concat(Ia(n)," ").concat(e," ").concat(Ia(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===qa)try{i=za(0,i),Ta(t,i)}catch(t){Ja("".concat(Ia(n)," ").concat(e," ").concat(Ia(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=>Hl(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if(Va.has(o))r=Va.get(o);else{const t=function(t,e){const n=Aa.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=Pa(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=>Ma(t.type))).join(", "),r="".concat(n,"(").concat(Wl(i),")");"few"===t.type&&0===i.length?Ja(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?Ja(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):Ja(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){Ja("".concat(n,"(").concat(Wl(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 Hl(t,e){if(e.type in Ll)return Ll[e.type](t,e);throw new Error("Unsupported expression")}function ql(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1};!function(t,e){let n="";if(ja(e,{Variable(e){n||t.variables.has(e.id.name)||(n=e.id.name)}}),n)throw new Error("Variable '".concat(n,"' is missing."))}(n,e);const r=Hl(n,e);return n.safeIntegerOverflow&&n.warnings.push(Kt(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 Gl{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return ja(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=ql(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(Kt(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return Fa(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=re(String(i));if(t)return Ra(t);e(Kt(new Error("Expression execution error")))}return"integer"===r.type?i>2147483647||i<-2147483648?void e(Kt(new Error("Expression result is out of 32-bit int range"))):Number(i):i}catch(t){return void e(Kt(new Error("Expression execution error")))}}}function Kl(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Ca(t,{startRule:"JsonStringContents"}),r=Oa(n);return e.vars.push(...r),new Gl(n)}catch(e){return void n(Kt(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Kl(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Kl(t[i],e,n);return r}}var r;return t}function Xl(t,e,n){if(t){if(t instanceof Gl)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>Xl(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Xl(t[i],e,n);return r}}return t}function Zl(t,e){const n={vars:[],hasExpression:!1},r=Kl(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>Xl(r,t,e)}}const Yl={pagers:function(){return Lt(new Map)}},Ql=new Map,ts=new Map;function es(t){const e=Ql.get(t)||Lt("");return Ql.has(t)||Ql.set(t,e),e}function ns(t){const e=ts.get(t)||new Map;return ts.has(t)||ts.set(t,e),e}class rs{setVariable(t){const e=t.getName(),n=ns(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),es(this).set(e)}getVariable(t){return ns(this).get(t)}}function is(){return new rs}function os(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 as=new Set(["start","stop","pause","resume","cancel","reset"]);class ls{constructor(t){os(this,"timers",new Map),os(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(Kt(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(Kt(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&as.has(e)))return void this.logError(Kt(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(Kt(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(Kt(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(Kt(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(Kt(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(Kt(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(Kt(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(Kt(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(Kt(new Error("The timer is already running"))):this.logError(Kt(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 ss(t){let e,n,r,i,o,a,l,s;return n=new ga({props:{svgFiltersMap:t[2]}}),i=new oa({props:{div:t[3],templateContext:t[6]}}),{c(){e=I("div"),Tt(n.$$.fragment),r=T(),Tt(i.$$.fragment),this.h()},l(t){e=H(t,"DIV",{class:!0});var o=U(e);Ot(n.$$.fragment,o),r=K(o),Ot(i.$$.fragment,o),o.forEach(F),this.h()},h(){B(e,"class",o=""+(qt.root+(t[4]?" ".concat(qt.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){S(t,e,o),Jt(n,e,null),j(e,r),Jt(i,e,null),a=!0,l||(s=J(e,"touchstart",us,{passive:!0}),l=!0)},p(t,r){const l={};4&r[0]&&(l.svgFiltersMap=t[2]),n.$set(l);const s={};8&r[0]&&(s.div=t[3]),i.$set(s),(!a||17&r[0]&&o!==(o=""+(qt.root+(t[4]?" ".concat(qt.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&B(e,"class",o)},i(t){a||(Pt(n.$$.fragment,t),Pt(i.$$.fragment,t),a=!0)},o(t){jt(n.$$.fragment,t),jt(i.$$.fragment,t),a=!1},d(t){t&&F(e),Bt(n),Bt(i),l=!1,s()}}}function cs(t){let e,n,r=!t[1]&&t[3]&&ss(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){!t[1]&&t[3]?r?(r.p(t,n),10&n[0]&&Pt(r,1)):(r=ss(t),r.c(),Pt(r,1),r.m(e.parentNode,e)):r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt())},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function us(){}function ds(t,e,n){let r;var i,o,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new rs}=e,{mix:p=""}=e,{customization:g={}}=e,{builtinProtocols:m=["http","https","tel","mailto","intent"]}=e,{extensions:v=new Map}=e,{onError:y}=e,{onStat:$}=e,{onCustomAction:_}=e,{onComponent:b}=e,{typefaceProvider:w=(t=>"")}=e,x=Lt("desktop"===u);if(f(t,x,(t=>n(4,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");x.set(!t.matches),t.addListener((()=>{x.set(!t.matches)}))}let k="light",E=null;function C(){"system"===d&&E&&n(23,k=E.matches?"dark":"light")}const A=new Set(m);let V=!1;c||(V=!0,O(Kt(new Error('"json" prop is required')))),s||(V=!0,O(Kt(new Error('"id" prop is required'))));let D=function(t){if(!t)return Kt(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return Kt(new Error("Missing card"));if(!e.states||!e.states.length)return Kt(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in ea)return Kt(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return Kt(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return Kt(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const P=c.templates||{};D&&(V=!0,O(D));const j={stateChange:!1},S=es(h),F=ns(h),N=new Map,I=new Map,M=new Map;let z=null;function T(t){const e=Zl(t,O);return e.vars.length?e.applyVars(I):t}function O(t){y?y({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function J(t,e){$&&$({type:t,action:e})}let B=0;function R(t){return"".concat(s,"-").concat(B++)}let U={},W={};function L(t){const e=t.url?String(t.url):"";if(e)try{const t=e.replace(/div-action:\/\//,""),n=/([^?]+)\?(.+)/.exec(t);if(!n)return;const r=new URLSearchParams(n[2]);switch(n[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=Y,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}}(r.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=K(t);n&&n.setCurrentItem(Number(e))}(r.get("id"),r.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=K(t);n&&n.setPreviousItem(e)}(r.get("id"),r.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=K(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),i=r.get("value");if(n&&null!==i){const t=I.get(n);t?"dict"===t.getType()?O(Kt(new Error("Setting dict variables is not supported"),{additional:{name:n}})):t.set(i):O(Kt(new Error("Cannot find variable"),{additional:{name:n}}))}else O(Kt(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;case"timer":const o=r.get("action"),a=r.get("id");z?z.execTimerAction(a,o):O(Kt(new Error("Incorrect timer action"),{additional:{id:a,action:o}}));break;case"video":!function(t,e){if(t){const n=K(t);n?"start"===e?n.start():"pause"===e?n.pause():O(Kt(new Error("Unknown video action"),{additional:{id:t,action:e}})):O(Kt(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else O(Kt(new Error("Missing id in video action"),{additional:{action:e}}))}(r.get("id"),r.get("action"));break;default:O(Kt(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){O(Kt(t,{additional:{url:e}}))}}async function H(t,e){if(t&&Array.isArray(t)){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url;if(i){const t=de(i);if(t)if(he(t,A)){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?(L(r),await yt()):r.log_id&&(q(r),await yt())}}t.forEach((t=>{t.log_id&&J("click",t)}))}}function q(t){null==_||_(t)}const G=new Map;function K(t){if(G.has(t))return G.get(t);O(Kt(new Error("Missing instance with id"),{additional:{id:t}}))}const X=new Map;function Z(t){for(const e of t)I.has(e)&&t.delete(e);return t}st(Gt,{logError:O,logStat:J,hasTemplate:function(t){return t in P},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in P;){if(({json:t,templateContext:e}=ma(t,e,P,O)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:R,genClass:function(t){return"divkit-".concat(R())},execAction:L,execAnyActions:H,execCustomAction:q,isRunning:function(t){return j[t]},setRunning:function(t,e){j[t]=e},registerInstance:function(t,e){G.has(t)?O(Kt(new Error("Duplicate instance id"),{additional:{id:t}})):G.set(t,e)},unregisterInstance:function(t){G.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(W[r]=W[r]||0,++W[r],U[r])return U[r];const i="".concat(R(),"-svg-filter");return n(2,U=Object.assign(Object.assign({},U),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);W[r]&&0==--W[r]&&n(2,U=Object.keys(U).reduce(((t,e)=>(W[e]&&(t[e]=U[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return ya(t);const e=Zl(t,O);return e.vars.length?Ht(e.vars.map((t=>I.get(t)||function(t){const e=M.get(t)||Lt(void 0);return M.has(t)||M.set(t,e),e}(t))).filter(oe),(()=>e.applyVars(I))):e.hasExpression?ya(e.applyVars(I)):ya(t)},getJsonWithVars:T,getStore:function(t){return X.has(t)||function(t){X.has(t)||X.set(t,Yl[t]())}(t),X.get(t)},getVariable:function(t,e){const n=I.get(t);if(n){const r=n.getType();if(r!==e)return void O(Kt(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==g?void 0:g[t]},getBuiltinProtocols:function(){return A},getExtension:function(t,e){const n=v.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:I,logError:O}},typefaceProvider:w,isDesktop:x,registerComponent:void 0,unregisterComponent:void 0}),st(Ne,{hasAction:()=>!1});const Y={setState(t){throw new Error("Not implemented")},getChild(t){if(Q&&Q.has(t))return Q.get(t);O(Kt(new Error("Missing state block with id"),{additional:{id:t}}))}};let Q=null;st($e,{registerInstance(t,e){Q||(Q=new Map),Q.has(t)?O(Kt(new Error("Duplicate state with id"),{additional:{id:t}})):Q.set(t,e)},unregisterInstance(t){null==Q||Q.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 tt=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variables;Array.isArray(tt)&&tt.forEach((t=>{if(t&&t.type in ho&&t.name){if(N.has(t.name))return void O(Kt(new Error("Duplicate variable"),{additional:{name:t.name}}));"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&O(Kt(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=po(t.name,t.type,t.value);N.set(t.name,e),I.set(t.name,e)}catch(e){O(Kt(e,{additional:{name:t.name}}))}}}));const et=c.palette;et&&et[k].forEach((t=>{if(N.has(t.name))O(Kt(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=po(t.name,"color",t.color);N.set(t.name,e),I.set(t.name,e)}catch(e){O(Kt(e,{additional:{name:t.name}}))}}));for(const[t,e]of F)I.has(t)||I.set(t,e);S.subscribe((t=>{if(t&&!I.has(t)){const e=F.get(t);I.set(t,e);const n=M.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const nt=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(nt)&&nt.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void O(Kt(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=Ca(t.condition,{startRule:"JsonStringContents"}),i=Oa(r);if(!i.length)return void O(Kt(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return Z(e),e.size?new Promise((t=>{const n=S.subscribe((()=>{Z(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{Ht(i.map((t=>I.get(t))).filter(oe),(()=>{const t=ql(I,r);return t.warnings.forEach(O),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=T(t);e.log_id&&L(e)})),e=Boolean(r.value)):O(Kt(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){O(Kt(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else O(Kt(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const rt=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(rt){const t=z=new ls({logError:O,applyVars:T,hasVariableWithType:function(t,e){const n=I.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=I.get(t);n?n.setValue(e):O(Kt(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:H});rt.forEach((e=>t.createTimer(e)))}const it=null===(l=null==c?void 0:c.card)||void 0===l?void 0:l.states;let ot;return it&&!V&&(ot={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:it.map((t=>({state_id:t.state_id.toString(),div:t.div})))}),lt((()=>{z&&z.destroy()})),t.$$set=t=>{"id"in t&&n(8,s=t.id),"json"in t&&n(9,c=t.json),"platform"in t&&n(10,u=t.platform),"theme"in t&&n(7,d=t.theme),"globalVariablesController"in t&&n(11,h=t.globalVariablesController),"mix"in t&&n(0,p=t.mix),"customization"in t&&n(12,g=t.customization),"builtinProtocols"in t&&n(13,m=t.builtinProtocols),"extensions"in t&&n(14,v=t.extensions),"onError"in t&&n(15,y=t.onError),"onStat"in t&&n(16,$=t.onStat),"onCustomAction"in t&&n(17,_=t.onCustomAction),"onComponent"in t&&n(18,b=t.onComponent),"typefaceProvider"in t&&n(19,w=t.typefaceProvider)},t.$$.update=()=>{16777344&t.$$.dirty[0]&&("light"===d||"dark"===d?n(23,k=d):"system"===d?"undefined"!=typeof matchMedia?(E||(n(24,E=matchMedia("(prefers-color-scheme: dark)")),E.addListener(C)),n(23,k=E.matches?"dark":"light")):n(23,k="light"):O(Kt(new Error("Unsupported theme")))),8388608&t.$$.dirty[0]&&k&&et&&et[k].forEach((t=>{const e=I.get(t.name);e&&e.setValue(t.color)}))},[p,V,U,ot,r,x,{},d,s,c,u,h,g,m,v,y,$,_,b,w,function(t){n(7,d=t)},function(){},L,k,E]}const hs=class extends Ut{constructor(t){super(),Rt(this,t,ds,cs,d,{id:8,json:9,platform:10,theme:7,globalVariablesController:11,mix:0,customization:12,builtinProtocols:13,extensions:14,onError:15,onStat:16,onCustomAction:17,onComponent:18,typefaceProvider:19,setTheme:20,getDebugVariables:21,execAction:22},null,[-1,-1,-1])}get setTheme(){return this.$$.ctx[20]}get getDebugVariables(){return this.$$.ctx[21]}get execAction(){return this.$$.ctx[22]}};class ps{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 yt()}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 fs(t){return t instanceof HTMLElement}function gs(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(fs);r.forEach((t=>{t.style.display="none"})),this.wrapper=document.createElement("div"),this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),o=this.animItem=t({container:this.wrapper,path:this.params.lottie_url,animationData:this.params.lottie_json,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",(()=>{var t;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""}));const e=new Error("Failed to load lottie animation");e.level="error",e.additional={url:this.params.lottie_url},n.logError(e)})),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;o.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(o.stop(),o.goToAndStop(o.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,o.setDirection(t)),o.goToAndPlay(1===t?0:o.totalFrames,!0))}))}}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0)}}}function ms(t){return new hs({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,mix:t.mix,customization:t.customization,builtinProtocols:t.builtinProtocols,extensions:t.extensions,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,typefaceProvider:t.typefaceProvider,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}var vs=exports;for(var ys in e)vs[ys]=e[ys];e.__esModule&&Object.defineProperty(vs,"__esModule",{value:!0})})();
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:()=>ps,createGlobalVariablesController:()=>is,createVariable:()=>po,lottieExtensionBuilder:()=>gs,render:()=>ms});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 l(t){t.forEach(o)}function s(t){return"function"==typeof t}let c;function u(t,e){return 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){return 0===Object.keys(t).length}function p(t,...e){if(null==t)return n;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function f(t,e,n){t.$$.on_destroy.push(p(e,n))}function g(t,e,n,r){if(t){const i=m(t,e,n,r);return t[0](i)}}function m(t,e,n,r){return t[1]&&r?i(n.ctx.slice(),t[1](r(e))):n.ctx}function v(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 y(t,e,n,r,i,o){if(i){const a=m(e,n,r,o);t.p(a,i)}}function $(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&&s(t.destroy)?t.destroy:n}const w="undefined"!=typeof window;let x=w?()=>window.performance.now():()=>Date.now(),k=w?t=>requestAnimationFrame(t):n;const E=new Set;function C(t){E.forEach((e=>{e.c(t)||(E.delete(e),e.f())})),0!==E.size&&k(C)}let A=!1;function V(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function D(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function P(t){const e=I("style");return function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(D(t),e),e.sheet}function j(t,e){if(A){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:V(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,i=Math.max(l,i)}const o=[],a=[];let l=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);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 S(t,e,n){A&&!n?j(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function F(t){t.parentNode&&t.parentNode.removeChild(t)}function N(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function I(t){return document.createElement(t)}function M(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function z(t){return document.createTextNode(t)}function T(){return z(" ")}function O(){return z("")}function J(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function B(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function R(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?t[r]=e[r]:B(t,r,e[r])}function U(t){return Array.from(t.childNodes)}function W(t,e,n,r,i=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const o=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function L(t,e,n,r){return W(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 H(t,e,n){return L(t,e,n,I)}function q(t,e,n){return L(t,e,n,M)}function G(t,e){return W(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}),(()=>z(e)),!0)}function K(t){return G(t," ")}function X(t,e){e=""+e,t.data!==e&&(t.data=e)}function Z(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function Y(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}function Q(t,e){return new t(e)}const tt=new Map;let et,nt=0;function rt(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(", "),nt-=i,nt||k((()=>{nt||(tt.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&F(e)})),tt.clear())})))}function it(t){et=t}function ot(){if(!et)throw new Error("Function called outside component initialization");return et}function at(t){ot().$$.on_mount.push(t)}function lt(t){ot().$$.on_destroy.push(t)}function st(t,e){return ot().$$.context.set(t,e),e}function ct(t){return ot().$$.context.get(t)}function ut(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const dt=[],ht=[];let pt=[];const ft=[],gt=Promise.resolve();let mt=!1;function vt(){mt||(mt=!0,gt.then(xt))}function yt(){return vt(),gt}function $t(t){pt.push(t)}const _t=new Set;let bt,wt=0;function xt(){if(0!==wt)return;const t=et;do{try{for(;wt<dt.length;){const t=dt[wt];wt++,it(t),kt(t.$$)}}catch(t){throw dt.length=0,wt=0,t}for(it(null),dt.length=0,wt=0;ht.length;)ht.pop()();for(let t=0;t<pt.length;t+=1){const e=pt[t];_t.has(e)||(_t.add(e),e())}pt.length=0}while(dt.length);for(;ft.length;)ft.pop()();mt=!1,_t.clear(),it(t)}function kt(t){if(null!==t.fragment){t.update(),l(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach($t)}}function Et(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(`${e?"intro":"outro"}${n}`))}const Ct=new Set;let At;function Vt(){At={r:0,c:[],p:At}}function Dt(){At.r||l(At.c),At=At.p}function Pt(t,e){t&&t.i&&(Ct.delete(t),t.i(e))}function jt(t,e,n,r){if(t&&t.o){if(Ct.has(t))return;Ct.add(t),At.c.push((()=>{Ct.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const St={duration:0};function Ft(t,e,i){const o={direction:"in"};let a,l,c=e(t,i,o),u=!1,d=0;function h(){a&&rt(t,a)}function p(){const{delay:e=0,duration:i=300,easing:o=r,tick:s=n,css:p}=c||St;p&&(a=function(t,e,n,r,i,o,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*o(t);c+=100*t+`%{${a(r,1-r)}}\n`}const u=c+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,h=D(t),{stylesheet:p,rules:f}=tt.get(h)||function(t,e){const n={stylesheet:P(e),rules:{}};return tt.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${i}ms 1 both`,nt+=1,d}(t,0,1,i,e,o,p,d++)),s(0,1);const f=x()+e,g=f+i;l&&l.abort(),u=!0,$t((()=>Et(t,!0,"start"))),l=function(t){let e;return 0===E.size&&k(C),{promise:new Promise((n=>{E.add(e={c:t,f:n})})),abort(){E.delete(e)}}}((e=>{if(u){if(e>=g)return s(1,0),Et(t,!0,"end"),h(),u=!1;if(e>=f){const t=o((e-f)/i);s(t,1-t)}}return u}))}let f=!1;return{start(){f||(f=!0,rt(t),s(c)?(c=c(o),(bt||(bt=Promise.resolve(),bt.then((()=>{bt=null}))),bt).then(p)):p())},invalidate(){f=!1},end(){u&&(h(),u=!1)}}}const Nt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function It(t,e){jt(t,1,1,(()=>{e.delete(t.key)}))}function Mt(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],l=e[o];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[o]=l}else for(const t in a)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let zt;function Tt(t){t&&t.c()}function Ot(t,e){t&&t.l(e)}function Jt(t,e,n,r){const{fragment:i,after_update:a}=t.$$;i&&i.m(e,n),r||$t((()=>{const e=t.$$.on_mount.map(o).filter(s);t.$$.on_destroy?t.$$.on_destroy.push(...e):l(e),t.$$.on_mount=[]})),a.forEach($t)}function Bt(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];pt.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),pt=e}(n.after_update),l(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Rt(t,e,r,i,o,s,c,u=[-1]){const d=et;it(t);const h=t.$$={fragment:null,ctx:[],props:s,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||{},((e,n,...r)=>{const i=r.length?r[0]:n;return h.ctx&&o(h.ctx[e],h.ctx[e]=i)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](i),p&&function(t,e){-1===t.$$.dirty[0]&&(dt.push(t),vt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,l(h.before_update),h.fragment=!!i&&i(h.ctx),e.target){if(e.hydrate){A=!0;const t=U(e.target);h.fragment&&h.fragment.l(t),t.forEach(F)}else h.fragment&&h.fragment.c();e.intro&&Pt(t.$$.fragment),Jt(t,e.target,e.anchor,e.customElement),A=!1,xt()}it(d)}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&&(zt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(o).filter(s);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){l(this.$$.on_disconnect)}$destroy(){Bt(this,1),this.$destroy=n}$on(t,e){if(!s(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){this.$$set&&!h(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class Ut{$destroy(){Bt(this,1),this.$destroy=n}$on(t,e){if(!s(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){this.$$set&&!h(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Wt=[];function Lt(t,e=n){let r;const i=new Set;function o(e){if(o=e,((n=t)!=n?o==o:n!==o||n&&"object"==typeof n||"function"==typeof n)&&(t=e,r)){const e=!Wt.length;for(const e of i)e[1](),Wt.push(e,t);if(e){for(let t=0;t<Wt.length;t+=2)Wt[t][0](Wt[t+1]);Wt.length=0}}var n,o}return{set:o,update:function(e){o(e(t))},subscribe:function(a,l=n){const s=[a,l];return i.add(s),1===i.size&&(r=e(o)||n),a(t),()=>{i.delete(s),0===i.size&&r&&(r(),r=null)}}}}function Ht(t,e,r){const i=!Array.isArray(t),o=i?[t]:t,a=e.length<2;return c=t=>{let r=!1;const c=[];let u=0,d=n;const h=()=>{if(u)return;d();const r=e(i?c[0]:c,t);a?t(r):d=s(r)?r:n},f=o.map(((t,e)=>p(t,(t=>{c[e]=t,u&=~(1<<e),r&&h()}),(()=>{u|=1<<e}))));return r=!0,h(),function(){l(f),d(),r=!1}},{subscribe:Lt(r,c).subscribe};var c}const qt={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"},Gt=Symbol("root");function Kt(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 Xt={text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},Zt={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"};function Yt(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 Qt(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 te(t){let e=Qt(t);return"0"===e&&(e+="em"),e}function ee(t,e){for(;t.length<e;)t="0"+t;return t}function ne(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=re(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>ee(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 re(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,l=2===i.length?i:i+i,s=2===o.length?o:o+o,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(l,16),b:parseInt(s,16)}}const[t,n,r,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function ie(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 oe=Boolean;function ae(t){if(1===t.length&&"solid"===t[0].type)return{color:ne(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=ne(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(oe);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>ne(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:ce(t.bg.scale),pos:ue(t.bg),image:'url("'+ie(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(oe);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=te(r.value):"relative"===r.type&&(i=le[r.value]));const o=se(t.bg.center_x),a=se(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=>ne(t))).join(",")+")"}}({bg:t}):void 0)).filter(oe).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 le={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function se(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return te(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function ce(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function ue(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 de(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function he(t,e){return e.has(t)}function pe(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 fe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pe(Object(n),!0).forEach((function(e){ge(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ge(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 me(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function ve(t,e){e&&t.push(e)}function ye(t,e,n){const r=[];ve(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&ve(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const $e=Symbol("state");function _e(t){return Qt(t.top||0)+" "+Qt(t.right||0)+" "+Qt(t.bottom||0)+" "+Qt(t.left||0)}function be(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function we(t){return be(t)&&t>=0}function xe(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]&&!we(n[t]))return e;return _e(t)}function ke(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Ee=Object.prototype.hasOwnProperty;function Ce(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(!Ee.call(e,i)||!Ce(t[i],e[i]))return!1}return!0}function Ae(t,e){return Ce(t,e)?e:t}function Ve(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function De(t,e){const n=Number(t);return isNaN(n)?e:n}function Pe(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Pe(t))})):e.push(t),e}function je(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!we(t[n[r]]))return e;return t}function Se(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=>Qt((t||e)/n*10))).join(" ")}function Fe(){}const Ne=Symbol("action");function Ie(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function Me(t){var e;let n,r,o,a,c,u,d,h;const p=t[19].default,f=g(p,t,t[18],null);let m=[{class:r=t[2]+(t[9]?" ".concat(t[6]?qt.root__clickable:qt["root__clickable-no-transition"]," ").concat(qt.root__unselectable):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?qt["root_disabled-context-menu"]:"")},{style:t[3]},{role:o=t[9]?"button":null},{tabindex:a=t[9]?0:null},t[4]],_={};for(let t=0;t<m.length;t+=1)_=i(_,m[t]);return{c(){n=I("span"),f&&f.c(),this.h()},l(t){n=H(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=U(n);f&&f.l(e),e.forEach(F),this.h()},h(){R(n,_)},m(e,r){S(e,n,r),f&&f.m(n,null),u=!0,d||(h=[b(c=t[5].call(null,n)),J(n,"click",(function(){s(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),J(n,"click",t[21]),J(n,"dblclick",(function(){var e,n;s(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),J(n,"touchstart",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),J(n,"touchmove",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),J(n,"touchend",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),J(n,"touchcancel",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),J(n,"keydown",t[15])],d=!0)},p(e,i){var l;t=e,f&&f.p&&(!u||262144&i)&&y(f,p,t,t[18],u?v(p,t[18],i,null):$(t[18]),null),R(n,_=Mt(m,[(!u||582&i&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?qt.root__clickable:qt["root__clickable-no-transition"]," ").concat(qt.root__unselectable):"")+" "+(null!==(l=t[1])&&void 0!==l&&l.length?qt["root_disabled-context-menu"]:"")))&&{class:r},(!u||8&i)&&{style:t[3]},(!u||512&i&&o!==(o=t[9]?"button":null))&&{role:o},(!u||512&i&&a!==(a=t[9]?0:null))&&{tabindex:a},16&i&&t[4]]))},i(t){u||(Pt(f,t),u=!0)},o(t){jt(f,t),u=!1},d(t){t&&F(n),f&&f.d(t),d=!1,l(h)}}}function ze(t){var e;let n,r,o,a,c,u;const d=t[19].default,h=g(d,t,t[18],null);let p=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?qt.root__clickable:qt["root__clickable-no-transition"])+" "+(null!==(e=t[1])&&void 0!==e&&e.length?qt["root_disabled-context-menu"]:"")},t[4]],f={};for(let t=0;t<p.length;t+=1)f=i(f,p[t]);return{c(){n=I("a"),h&&h.c(),this.h()},l(t){n=H(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=U(n);h&&h.l(e),e.forEach(F),this.h()},h(){R(n,f)},m(e,r){S(e,n,r),h&&h.m(n,null),a=!0,c||(u=[b(o=t[5].call(null,n)),J(n,"click",t[10]),J(n,"click",t[20]),J(n,"dblclick",(function(){var e,n;s(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),J(n,"touchstart",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),J(n,"touchmove",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),J(n,"touchend",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),J(n,"touchcancel",(function(){var e,n;s(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),J(n,"keydown",t[15])],c=!0)},p(e,i){var o;t=e,h&&h.p&&(!a||262144&i)&&y(h,d,t,t[18],a?v(d,t[18],i,null):$(t[18]),null),R(n,f=Mt(p,[(!a||128&i)&&{href:t[7]},(!a||256&i)&&{target:t[8]},(!a||8&i)&&{style:t[3]},(!a||70&i&&r!==(r=t[2]+" "+(t[6]?qt.root__clickable:qt["root__clickable-no-transition"])+" "+(null!==(o=t[1])&&void 0!==o&&o.length?qt["root_disabled-context-menu"]:"")))&&{class:r},16&i&&t[4]]))},i(t){a||(Pt(h,t),a=!0)},o(t){jt(h,t),a=!1},d(t){t&&F(n),h&&h.d(t),c=!1,l(u)}}}function Te(t){let e,n,r,i;const o=[ze,Me],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=o[e](t),{c(){n.c(),r=O()},l(t){n.l(t),r=O()},m(t,n){a[e].m(t,n),S(t,r,n),i=!0},p(t,i){let[s]=i,c=e;e=l(t),e===c?a[e].p(t,s):(Vt(),jt(a[c],1,1,(()=>{a[c]=null})),Dt(),n=a[e],n?n.p(t,s):(n=a[e]=o[e](t),n.c()),Pt(n,1),n.m(r.parentNode,r))},i(t){i||(Pt(n),i=!0)},o(t){jt(n),i=!1},d(t){a[e].d(t),t&&F(r)}}}function Oe(t,e,n){let{$$slots:r={},$$scope:i}=e,{actions:o}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=Fe}=e,{customAction:h=null}=e,{isNativeActionAnimation:p=!0}=e;const f=ct(Gt),g=ct(Ne);st(Ne,{hasAction:()=>Boolean(g.hasAction()||(null==o?void 0:o.length))});let m,v="",y=-1,$=null,_=!1,b=!1;return t.$$set=t=>{"actions"in t&&n(16,o=t.actions),"doubleTapActions"in t&&n(0,a=t.doubleTapActions),"longTapActions"in t&&n(1,l=t.longTapActions),"cls"in t&&n(2,s=t.cls),"style"in t&&n(3,c=t.style),"attrs"in t&&n(4,u=t.attrs),"use"in t&&n(5,d=t.use),"customAction"in t&&n(17,h=t.customAction),"isNativeActionAnimation"in t&&n(6,p=t.isNativeActionAnimation),"$$scope"in t&&n(18,i=t.$$scope)},t.$$.update=()=>{if(196736&t.$$.dirty){if(Array.isArray(o)&&(null==o?void 0:o.length))for(let t=0;t<o.length;++t){const e=o[t].url;if(e){n(7,v=e),n(8,m=o[t].target||void 0);break}}Array.isArray(o)&&(null==o?void 0:o.length)&&g.hasAction()&&(n(7,v=""),f.logError(Kt(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:o}}))),n(9,b=Boolean(h)),v&&!he(de(v),f.getBuiltinProtocols())?(n(7,v=""),n(9,b=!0)):!v&&Array.isArray(o)&&(null==o?void 0:o.length)&&(n(9,b=!0),f.logError(Kt(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:o}})))}},[a,l,s,c,u,d,p,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():o&&(o.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=de(e);return n&&!he(n,f.getBuiltinProtocols())}))&&t.preventDefault(),f.execAnyActions(o)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||f.execAnyActions(a,!0)},function(t){t.touches.length>1||($=Ie(t),_=!1,y=Date.now())},function(t){if(!$)return;const e=Ie(t);(Math.abs($.x-e.x)>8||Math.abs($.y-e.y)>8)&&(_=!0)},function(){!$||y<0||(!_&&Date.now()-y>=400&&f.execAnyActions(l,!0),$=null,y=-1)},function(t){t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(o)&&o.length&&(f.execAnyActions(o),t.preventDefault())},o,h,i,r,function(e){ut.call(this,t,e)},function(e){ut.call(this,t,e)}]}const Je=class extends Ut{constructor(t){super(),Rt(this,t,Oe,Te,d,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,isNativeActionAnimation:6})}},Be={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function Re(t){return be(t)&&t>0}function Ue(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(Re(t.radius))return"blur(".concat(te(t.radius/2),")")}else e(Kt(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function We(t,e,n){const r=t.slice();return r[5]=e[n],r}function Le(t){let e,n,r;return{c(){e=I("span"),this.h()},l(t){e=H(t,"SPAN",{class:!0,style:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=Be["outer-background__item"]),B(e,"style",r=Yt(t[5].style))},m(t,n){S(t,e,n)},p(t,n){2&n&&r!==(r=Yt(t[5].style))&&B(e,"style",r)},d(t){t&&F(e)}}}function He(t){let e,n,r,i,o,a;return{c(){e=I("img"),this.h()},l(t){e=H(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)||B(e,"src",n),B(e,"alt",""),B(e,"aria-hidden","true"),B(e,"loading","lazy"),B(e,"decoding","async"),B(e,"class",r=Be["outer-background__item"]),B(e,"style",i=Yt(t[5].style))},m(n,r){S(n,e,r),o||(a=J(e,"error",t[2]),o=!0)},p(t,r){2&r&&!u(e.src,n=t[5].image_url)&&B(e,"src",n),2&r&&i!==(i=Yt(t[5].style))&&B(e,"style",i)},d(t){t&&F(e),o=!1,a()}}}function qe(t){let e;function n(t,e){return t[5].image_url?He:Le}let r=n(t),i=r(t);return{c(){i.c(),e=O()},l(t){i.l(t),e=O()},m(t,n){i.m(t,n),S(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){i.d(t),t&&F(e)}}}function Ge(t){let e,r,i=t[1],o=[];for(let e=0;e<i.length;e+=1)o[e]=qe(We(t,i,e));return{c(){e=I("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=H(t,"SPAN",{class:!0});var n=U(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(F),this.h()},h(){B(e,"class",r=Be["outer-background"]+(t[0]?" "+Be["outer-background_clip"]:"")),Z(e,"border-radius",t[0])},m(t,n){S(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=t[1],n=0;n<i.length;n+=1){const r=We(t,i,n);o[n]?o[n].p(r,a):(o[n]=qe(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=Be["outer-background"]+(t[0]?" "+Be["outer-background_clip"]:""))&&B(e,"class",r),1&a&&Z(e,"border-radius",t[0])},i:n,o:n,d(t){t&&F(e),N(o,t)}}}function Ke(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=ct(Gt);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=Ue(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Be["outer-background__item_hidden"])},i]}const Xe=class extends Ut{constructor(t){super(),Rt(this,t,Ke,Ge,d,{background:3,radius:0})}};function Ze(t){let e,n;return e=new Je({props:{use:t[32],cls:t[0]+" "+ye("outer",Zt,t[15]),style:Yt(t[13]),actions:t[10],doubleTapActions:t[11],longTapActions:t[12],attrs:t[6],isNativeActionAnimation:!t[4].length||nn(t[4]),$$slots:{default:[tn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};32769&n[0]&&(r.cls=t[0]+" "+ye("outer",Zt,t[15])),8192&n[0]&&(r.style=Yt(t[13])),1024&n[0]&&(r.actions=t[10]),2048&n[0]&&(r.doubleTapActions=t[11]),4096&n[0]&&(r.longTapActions=t[12]),64&n[0]&&(r.attrs=t[6]),16&n[0]&&(r.isNativeActionAnimation=!t[4].length||nn(t[4])),174&n[0]|262144&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Ye(t){let e,n;return e=new Xe({props:{background:t[5],radius:t[2]}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Qe(t){let e,n,r;return{c(){e=I("span"),this.h()},l(t){e=H(t,"SPAN",{class:!0,style:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=Zt.outer__border),B(e,"style",r=Yt(t[1]))},m(t,n){S(t,e,n)},p(t,n){2&n[0]&&r!==(r=Yt(t[1]))&&B(e,"style",r)},d(t){t&&F(e)}}}function tn(t){let e,n,r,i=t[3]&&Ye(t);const o=t[110].default,a=g(o,t,t[111],null);let l=t[7]&&Qe(t);return{c(){i&&i.c(),e=O(),a&&a.c(),l&&l.c(),n=O()},l(t){i&&i.l(t),e=O(),a&&a.l(t),l&&l.l(t),n=O()},m(t,o){i&&i.m(t,o),S(t,e,o),a&&a.m(t,o),l&&l.m(t,o),S(t,n,o),r=!0},p(t,s){t[3]?i?(i.p(t,s),8&s[0]&&Pt(i,1)):(i=Ye(t),i.c(),Pt(i,1),i.m(e.parentNode,e)):i&&(Vt(),jt(i,1,1,(()=>{i=null})),Dt()),a&&a.p&&(!r||262144&s[3])&&y(a,o,t,t[111],r?v(o,t[111],s,null):$(t[111]),null),t[7]?l?l.p(t,s):(l=Qe(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Pt(i),Pt(a,t),r=!0)},o(t){jt(i),jt(a,t),r=!1},d(t){i&&i.d(t),t&&F(e),a&&a.d(t),l&&l.d(t),t&&F(n)}}}function en(t){let e,n,r=!t[8]&&!t[9]&&Ze(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[8]||t[9]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),768&n[0]&&Pt(r,1)):(r=Ze(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function nn(t){return t.some((t=>"native"===t.name))}function rn(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,F,N,I,M,z,T,O,J,B,R,U,W,L,H=n,q=n,G=n,K=n,X=n,Z=n,Y=n,Q=n,tt=n,et=n,nt=n,rt=n,it=n,ot=n,at=n,lt=n,st=n;t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Y())),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((()=>lt())),t.$$.on_destroy.push((()=>st()));let{$$slots:ut={},$$scope:dt}=e;var ht,pt,ft,gt,mt,vt;let{json:$t={}}=e,{origJson:_t}=e,{templateContext:bt}=e,{cls:wt=""}=e,{style:xt}=e,{layoutParams:kt={}}=e,{customDescription:Et=!1}=e,{customPaddings:Ct=!1}=e,{customActions:At=""}=e,{additionalPaddings:Vt=null}=e,{heightByAspect:Dt=!1}=e;const Pt={left:"start",center:"center",right:"end"},jt={top:"start",center:"center",bottom:"end",baseline:"baseline"},St=ct(Gt),Ft=ct($e);let Nt,It,Mt,zt,Tt,Ot,Jt,Bt,Rt,Ut,Wt,Lt=null,Ht={},qt={},Xt=!1,Zt=1,Yt="transparent",ee=0,re={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},ie="",le=null,se="",ce={},ue=0,pe=0,ge=0,ve=!1,ye=!1,be={},Ee=0,Ce=0,Fe=0,Ne=!1,Ie=!1,Me=1;const ze=kt.fakeElement?[]:$t.transition_triggers||["state_change","visibility_change"],Te=-1!==ze.indexOf("state_change")&&$t.id,Oe=-1!==ze.indexOf("visibility_change")&&$t.id;let Je,Be,Re,Ue,We,Le,He,qe=[],Ge=[],Ke=[],Xe=[],Ze="";function Ye(t){const e=De(t.start_value,1),n=De(t.end_value,1),i=ke(t.start_delay,0),o=ke(t.duration,300),a=Ve(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(79,Ue=e),r(80,We=n),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return r(81,Le=e),r(82,He=n),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return St.logError(Kt(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let Qe,tn,en=!1,nn="visible",rn=0,on=0;return t.$$set=t=>{"json"in t&&r(33,$t=t.json),"origJson"in t&&r(34,_t=t.origJson),"templateContext"in t&&r(35,bt=t.templateContext),"cls"in t&&r(0,wt=t.cls),"style"in t&&r(36,xt=t.style),"layoutParams"in t&&r(37,kt=t.layoutParams),"customDescription"in t&&r(38,Et=t.customDescription),"customPaddings"in t&&r(39,Ct=t.customPaddings),"customActions"in t&&r(40,At=t.customActions),"additionalPaddings"in t&&r(41,Vt=t.additionalPaddings),"heightByAspect"in t&&r(42,Dt=t.heightByAspect),"$$scope"in t&&r(111,dt=t.$$scope)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&(r(31,i=St.getDerivedFromVars($t.border)),st(),st=p(i,(t=>r(109,L=t)))),2&t.$$.dirty[0]|8384512&t.$$.dirty[1]|65536&t.$$.dirty[3]){let t={},e={},n=!1,i="";if(L){if(L.has_shadow){const e=L.shadow;t["box-shadow"]=e?Qt((null===r(44,pt=null===r(43,ht=e.offset)||void 0===ht?void 0:ht.x)||void 0===pt?void 0:pt.value)||0)+" "+Qt((null===r(46,gt=null===r(45,ft=e.offset)||void 0===ft?void 0:ft.y)||void 0===gt?void 0:gt.value)||0)+" "+Qt(null!==r(47,mt=e.blur)&&void 0!==mt?mt:2)+" "+ne(e.color||"#000000",null!==r(48,vt=e.alpha)&&void 0!==vt?vt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(L.stroke&&(n=!0,r(50,Zt=ke(L.stroke.width,Zt)),r(51,Yt=ne(L.stroke.color,1,Yt)),e.border="".concat(Qt(Zt)," solid ").concat(Yt)),L.corners_radius?(r(53,re=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]&&!we(n[t]))return e;return t}(L.corners_radius,re)),e["border-radius"]=t["border-radius"]=Se(re)):L.corner_radius&&(r(52,ee=ke(L.corner_radius,ee)),r(53,re={"top-left":ee,"top-right":ee,"bottom-right":ee,"bottom-left":ee}),e["border-radius"]=t["border-radius"]=Qt(ee)),n&&Zt&&(L.corners_radius||L.corner_radius)){let t=Object.assign({},re);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+Zt/2})),i=Se(t)}}r(49,Ht=Ae(t,Ht)),r(1,qt=Ae(e,qt)),r(7,Xt=n),r(2,ie=i)}if(4&t.$$.dirty[1]&&(r(30,o=St.getDerivedFromVars($t.paddings)),lt(),lt=p(o,(t=>r(108,W=t)))),8388864&t.$$.dirty[1]|32768&t.$$.dirty[3]&&r(54,le=je(W&&!Ct?W:void 0,le)),8389632&t.$$.dirty[1]&&r(90,a=_e(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}(le,Vt))),4&t.$$.dirty[1]&&(r(29,l=St.getDerivedFromVars($t.margins)),ot(),ot=p(l,(t=>r(106,R=t)))),16777216&t.$$.dirty[1]|8192&t.$$.dirty[3]&&r(55,se=xe(R,se)),4&t.$$.dirty[1]&&(r(28,s=St.getDerivedFromVars($t.width)),rt(),rt=p(s,(t=>r(104,J=t)))),4&t.$$.dirty[1]&&(r(27,c=St.getDerivedFromVars($t.alignment_horizontal)),at(),at=p(c,(t=>r(107,U=t)))),570425408&t.$$.dirty[1]|26624&t.$$.dirty[3]){let t,e,n,i,o={},a=0,l=0,s=!1,c=!1;const u=null==J?void 0:J.type;if("fixed"===u)r(60,ue=ke(null==J?void 0:J.value,ue)),e=Qt(ue);else if("wrap_content"!==u&&(kt.overlapParent||"match_parent"!==u&&u||!kt.parentHorizontalWrapContent))t="parent","vertical"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,St.logError(Kt(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===kt.parentLayoutOrientation?e="calc(100% - ".concat(te(((null==R?void 0:R.left)||0)+((null==R?void 0:R.right)||0)),")"):"horizontal"===kt.parentContainerOrientation&&(a=J&&"weight"in J&&J.weight||1,kt.parentContainerWrap&&(s=!0));else{if(t="content",("wrap_content"===u&&(null==J?void 0:J.constrained)||("match_parent"===u||!u)&&kt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===kt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=J;t.min_size&&we(t.min_size.value)&&(n=Qt(t.min_size.value)),t.max_size&&we(t.max_size.value)&&(i=Qt(t.max_size.value))}"match_parent"!==u&&u||St.logError(Kt(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}if("parent"===t)o["halign-self"]="stretch";else{const t=U;o["halign-self"]="left"===t||"center"===t||"right"===t?Pt[t]:kt.parentHAlign||"start"}t&&(o.width=t),r(57,Mt=e),r(58,zt=n),r(59,Tt=i),r(61,pe=a),r(62,ge=l),r(56,ce=Ae(o,ce)),r(63,ve=s),r(8,ye=c)}if(4&t.$$.dirty[1]&&(r(26,u=St.getDerivedFromVars($t.height)),nt(),nt=p(u,(t=>r(103,O=t)))),4&t.$$.dirty[1]&&(r(25,d=St.getDerivedFromVars($t.alignment_vertical)),it(),it=p(d,(t=>r(105,B=t)))),2112&t.$$.dirty[1]|68&t.$$.dirty[2]|13312&t.$$.dirty[3]){let t,e,n,i,o={},a=0,l=0,s=!1,c=!1;const u=null==O?void 0:O.type;if(Dt);else if("fixed"===u)r(68,Ee=ke(null==O?void 0:O.value,Ee)),e=Qt(Ee);else if("match_parent"!==u||!kt.overlapParent&&kt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==O?void 0:O.constrained)||"match_parent"===u&&kt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===kt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=O;(null==t?void 0:t.min_size)&&we(t.min_size.value)&&(n=Qt(t.min_size.value)),(null==t?void 0:t.max_size)&&we(t.max_size.value)&&(i=Qt(t.max_size.value))}"match_parent"===u&&St.logError(Kt(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,St.logError(Kt(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===kt.parentLayoutOrientation?e="calc(100% - ".concat(te(((null==R?void 0:R.top)||0)+((null==R?void 0:R.bottom)||0)),")"):"vertical"===kt.parentContainerOrientation&&(a=(null==O?void 0:O.weight)||1,kt.parentContainerWrap&&(s=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=B;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===kt.parentContainerOrientation?o["valign-self"]=jt[t]:o["valign-self"]=kt.parentVAlign||"start"}t&&(o.height=t),r(65,Ot=e),r(66,Jt=n),r(67,Bt=i),r(69,Ce=a),r(70,Fe=l),r(64,be=Ae(o,be)),r(71,Ne=s),r(9,Ie=c)}var e,n;if(64&t.$$.dirty[1]&&r(93,h=!!kt.overlapParent||void 0),64&t.$$.dirty[1]|3072&t.$$.dirty[3]&&r(92,f=kt.overlapParent&&(!J||"match_parent"===J.type)&&"match_parent"===(null==O?void 0:O.type)),64&t.$$.dirty[1]&&r(91,g=kt.gridArea?"".concat(kt.gridArea.y+1,"/").concat(kt.gridArea.x+1,"/span ").concat(kt.gridArea.rowSpan,"/span ").concat(kt.gridArea.colSpan):void 0),4&t.$$.dirty[1]&&(r(24,m=St.getDerivedFromVars($t.alpha)),et(),et=p(m,(t=>r(102,T=t)))),1024&t.$$.dirty[2]|512&t.$$.dirty[3]&&(r(72,(n=Me,Me=!we(e=T)||void 0===e||e>1?n:Number(e))),r(73,Rt=1===Me?void 0:Me)),4&t.$$.dirty[1]&&(r(23,v=St.getDerivedFromVars($t.accessibility)),tt(),tt=p(v,(t=>r(101,z=t)))),128&t.$$.dirty[1]|256&t.$$.dirty[3]&&(r(6,It=void 0),z&&!Et&&z.description&&(r(6,It={}),r(6,It["aria-label"]=z.description,It))),4&t.$$.dirty[1]&&(r(22,y=St.getDerivedFromVars($t.background)),Q(),Q=p(y,(t=>r(5,M=t)))),44&t.$$.dirty[0]&&(r(74,Ut={}),r(3,Wt=!1),Array.isArray(M)&&(r(3,Wt=M.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(ie)),!Wt))){const t=ae(M);r(74,Ut["background-color"]=t.color,Ut),r(74,Ut["background-image"]=t.image,Ut),r(74,Ut["background-size"]=t.size,Ut),r(74,Ut["background-position"]=t.position,Ut),r(74,Ut["background-repeat"]="no-repeat",Ut)}if(4&t.$$.dirty[1]&&(r(75,Je=void 0),Te&&$t.transition_in&&St.isRunning("stateChange")&&r(75,Je=!0)),4&t.$$.dirty[1]&&(r(77,Re=void 0),Te&&$t.transition_change&&St.isRunning("stateChange")&&Ft.hasTransitionChange($t.id)&&r(77,Re=!0)),4&t.$$.dirty[1]&&(r(21,$=St.getDerivedFromVars($t.action)),Z(),Z=p($,(t=>r(99,N=t)))),4&t.$$.dirty[1]&&(r(20,_=St.getDerivedFromVars($t.actions)),Y(),Y=p(_,(t=>r(100,I=t)))),4&t.$$.dirty[1]&&(r(19,b=St.getDerivedFromVars($t.doubletap_actions)),X(),X=p(b,(t=>r(98,F=t)))),4&t.$$.dirty[1]&&(r(18,w=St.getDerivedFromVars($t.longtap_actions)),K(),K=p(w,(t=>r(97,S=t)))),576&t.$$.dirty[1]|240&t.$$.dirty[3]){let t=I||N&&[N]||[],e=F||[],n=S||[];kt.fakeElement?(t=[],e=[],n=[]):(Array.isArray(t)||(t=[],St.logError(Kt(new Error("Actions should be array")))),Array.isArray(e)||(e=[],St.logError(Kt(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],St.logError(Kt(new Error("LongTapActions should be array"))))),(t.length||e.length||n.length)&&At&&(t=[],e=[],n=[],St.logError(Kt(new Error('Cannot use action on component "'.concat(At,'"'))))),r(10,qe=t),r(11,Ge=e),r(12,Ke=n)}if(4&t.$$.dirty[1]&&(r(17,x=St.getDerivedFromVars($t.action_animation)),G(),G=p(x,(t=>r(96,j=t)))),16&t.$$.dirty[0]|8&t.$$.dirty[3]&&j&&(r(4,Xe=Pe(j)),r(78,Ze=Xe.map(Ye).filter(Boolean).join(", "))),4&t.$$.dirty[1]&&(r(16,k=St.getDerivedFromVars($t.visibility)),q(),q=p(k,(t=>r(95,P=t)))),6291456&t.$$.dirty[2]|4&t.$$.dirty[3]){const t=nn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(P,nn);t!==e&&(!en||"visible"!==nn&&"visible"!==e?r(84,nn=e):async function(t){r(84,nn=t);const e="visible"===t?"in":"out",n="in"===e?$t.transition_in:$t.transition_out;Oe&&n&&(await yt(),"in"===e&&r(76,Be=!0),Ft.runVisibilityTransition(Object.assign(Object.assign({},$t),{visibility:"visible"}),bt,n,Nt,e).then((()=>{"in"===e&&r(76,Be=!1)})).catch((t=>{throw"in"===e&&r(76,Be=!1),t})))}(e)),en||r(83,en=!0)}if(33554496&t.$$.dirty[1]|1078059012&t.$$.dirty[2]|1&t.$$.dirty[3]&&r(15,E=Object.assign(Object.assign(Object.assign({},ce),be),{"parent-overlap":h,"parent-overlap-absolute":f,"scroll-snap":kt.scrollSnap,"hide-on-transition-in":Je||Be||Re,visibility:nn,"has-action-animation":Boolean(Ze),"parent-flex":kt.parentContainerOrientation||void 0,"parent-grid":Boolean(kt.gridArea)||void 0})),4&t.$$.dirty[1]&&(r(14,C=St.getDerivedFromVars($t.transform)),H(),H=p(C,(t=>r(94,D=t)))),25165824&t.$$.dirty[2]|2&t.$$.dirty[3]&&D&&void 0!==D.rotation){const t=D.pivot_x||{type:"pivot-percentage",value:50};r(85,rn=De(t.value,rn));const e="pivot-fixed"===t.type?Qt(rn):"".concat(rn,"%"),n=D.pivot_y||{type:"pivot-percentage",value:50};r(86,on=De(n.value,on));const i="pivot-fixed"===n.type?Qt(on):"".concat(on,"%");r(87,Qe="".concat(e," ").concat(i)),r(88,tn="rotate(".concat(D.rotation,"deg)"))}1073741824&t.$$.dirty[1]|642&t.$$.dirty[2]&&r(89,A=ve||Ne?"100%":pe||Ce?0:void 0),1560543264&t.$$.dirty[1]|1042225593&t.$$.dirty[2]&&r(13,V=Object.assign(Object.assign(Object.assign(Object.assign({},xt),Ut),Ht),{width:Mt,"min-width":zt,"max-width":Tt,height:Ot,"min-height":Jt,"max-height":Bt||(null==xt?void 0:xt["max-height"]),"grid-area":g,padding:a,margin:se,opacity:Rt,transition:Ze,"transform-origin":Qe,transform:tn,"flex-grow":pe||Ce||void 0,"flex-shrink":ge||Fe?1:void 0,"flex-basis":A,"--divkit-animation-opacity-start":Ue,"--divkit-animation-opacity-end":We,"--divkit-animation-scale-start":Le,"--divkit-animation-scale-end":He}))},[wt,qt,ie,Wt,Xe,M,It,Xt,ye,Ie,qe,Ge,Ke,V,C,E,k,x,w,b,_,$,y,v,m,d,u,c,s,l,o,i,function(t){Nt=t,Te&&$t.transition_in&&Ft.registerChildWithTransitionIn($t,bt,$t.transition_in,t).then((()=>{r(75,Je=!1)})).catch((t=>{throw r(75,Je=!1),t})),Te&&$t.transition_out&&Ft.registerChildWithTransitionOut($t,bt,$t.transition_out,t),Te&&$t.transition_change&&Ft.registerChildWithTransitionChange($t,bt,$t.transition_change,t).then((()=>{r(77,Re=!1)})).catch((t=>{throw r(77,Re=!1),t}));const e=kt.fakeElement?[]:$t.visibility_actions||$t.visibility_action&&[$t.visibility_action],n=kt.fakeElement?[]:$t.disappear_actions;(Array.isArray(e)&&e.length||Array.isArray(n)&&n.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 fe(fe({},n),{},{visibility_percentage:me(e,n.visibility_percentage,e?50:0)})})),l=[...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 l=r?!e.visible&&o:e.visible&&!o,s=r?!o:o;l?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===n.log_limit?1/0:n.log_limit||1;++e.count>=t&&(e.finished=!0);const o=i.getJsonWithVars(e.action),a=o.url;if(a){const t=de(a);t&&!he(t,i.getBuiltinProtocols())&&("div-action"===t?i.execAction(o):o.log_id&&i.execCustomAction(o))}i.logStat(r?"visible":"disappear",o)}),a[e.index].visibility_duration||800)):s&&e.timer&&clearTimeout(e.timer),e.visible=o}))}))}),{threshold:l}).observe(t)}(t,{visibilityActions:e,disappearActions:n,rootCtx:St});const i=$t.id;i&&Ft.registerChild(i);let o=null;if(Array.isArray($t.extensions)){const e=St.getExtensionContext();Lt=$t.extensions.map((n=>{var r;const i=St.getExtension(n.id,n.params);return i&&(null===(r=i.mountView)||void 0===r||r.call(i,t,e)),i})).filter(oe)}return{destroy(){if(i&&Ft.unregisterChild(i),Lt){const e=St.getExtensionContext();Lt.forEach((n=>{var r;null===(r=n.unmountView)||void 0===r||r.call(n,t,e)})),Lt=null}o&&o.destroy()}}},$t,_t,bt,xt,kt,Et,Ct,At,Vt,Dt,ht,pt,ft,gt,mt,vt,Ht,Zt,Yt,ee,re,le,se,ce,Mt,zt,Tt,ue,pe,ge,ve,be,Ot,Jt,Bt,Ee,Ce,Fe,Ne,Me,Rt,Ut,Je,Be,Re,Ze,Ue,We,Le,He,en,nn,rn,on,Qe,tn,A,a,g,f,h,D,P,j,S,F,N,I,z,T,O,J,B,R,U,W,L,ut,dt]}const on=class extends Ut{constructor(t){super(),Rt(this,t,rn,en,d,{json:33,origJson:34,templateContext:35,cls:0,style:36,layoutParams:37,customDescription:38,customPaddings:39,customActions:40,additionalPaddings:41,heightByAspect:42},null,[-1,-1,-1,-1])}},an={"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 ln(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function sn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function cn(t,e){return sn(t)||e}function un(t){let e,n;return{c(){e=I("span"),this.h()},l(t){e=H(t,"SPAN",{class:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=an["text-range__top-offset"]),Z(e,"margin-top",t[4])},m(t,n){S(t,e,n)},p(t,n){16&n&&Z(e,"margin-top",t[4])},d(t){t&&F(e)}}}function dn(t){let e;return{c(){e=z(t[0])},l(n){e=G(n,t[0])},m(t,n){S(t,e,n)},p(t,n){1&n&&X(e,t[0])},d(t){t&&F(e)}}}function hn(t){let e,n,r,i=t[4]&&un(t);return n=new Je({props:{cls:ye("text-range",an,t[3]),actions:t[1],style:Yt(t[2]),$$slots:{default:[dn]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=O(),Tt(n.$$.fragment)},l(t){i&&i.l(t),e=O(),Ot(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),S(t,e,o),Jt(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=un(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=ye("text-range",an,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=Yt(t[2])),2097153&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(Pt(n.$$.fragment,t),r=!0)},o(t){jt(n.$$.fragment,t),r=!1},d(t){i&&i.d(t),t&&F(e),Bt(n,t)}}}function pn(t,e,n){let r,i,o,a,l;var s,c;let{text:u}=e,{rootFontSize:d}=e,{textStyles:h={}}=e,{singleline:p=!1}=e,{actions:f}=e;const g=ct(Gt);let m,v="none",y=12,$=1.25,_="",b="",w="",x=null;return t.$$set=t=>{"text"in t&&n(0,u=t.text),"rootFontSize"in t&&n(5,d=t.rootFontSize),"textStyles"in t&&n(6,h=t.textStyles),"singleline"in t&&n(7,p=t.singleline),"actions"in t&&n(1,f=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(h.underline||h.strike)&&("single"===h.underline&&"single"===h.strike?t="both":"single"===h.underline?t="underline":"single"===h.strike&&(t="strike")),n(10,v=t)}2112&t.$$.dirty&&n(11,y=ln(h.font_size,y)),2112&t.$$.dirty&&Re(h.line_height)&&n(12,$=Number(h.line_height)/y),64&t.$$.dirty&&we(h.letter_spacing)&&n(13,_=Qt(h.letter_spacing)),16448&t.$$.dirty&&(n(14,m=cn(h.font_weight,m)),"string"==typeof h.font_family&&h.font_family?n(15,b=g.typefaceProvider(h.font_family,{fontWeight:m||400})):n(15,b="")),65600&t.$$.dirty&&n(16,w=ne(h.text_color,1,w)),64&t.$$.dirty&&n(4,r=h.top_offset?Qt(h.top_offset):""),64&t.$$.dirty&&n(19,i=h.background?ae([h.background]):null),320&t.$$.dirty&&((null===n(8,s=h.border)||void 0===s?void 0:s.stroke)&&"transparent"!==ne(h.border.stroke.color)&&Re(h.border.stroke.width)?n(17,x={color:h.border.stroke.color,width:h.border.stroke.width}):n(17,x=null)),576&t.$$.dirty&&n(18,o=ln(null===n(9,c=h.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:p,decoration:v}),1046560&t.$$.dirty&&n(2,l={"font-size":Qt(10*y/d),"line-height":$,"letter-spacing":_,"font-weight":m,"font-family":b,color:w,background:(null==i?void 0:i.color)||void 0,"box-shadow":x?"inset 0 0 0 ".concat(Qt(x.width)," ").concat(x.color):void 0,"border-radius":o?Qt(o):void 0})},[u,f,l,a,r,d,h,p,s,c,v,y,$,_,m,b,w,x,o,i]}const fn=class extends Ut{constructor(t){super(),Rt(this,t,pn,hn,d,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function gn(t,e){return"left"===t||"center"===t||"right"===t?t:e}function mn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function vn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function yn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:$n}=Nt;function _n(t,e,n){const r=t.slice();return r[55]=e[n],r[57]=n,r}function bn(t){let e,n;return e=new on({props:{cls:ye("text",Xt,t[13])+" "+(t[6]?"":qt.root__unselectable),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Vn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=ye("text",Xt,t[13])+" "+(t[6]?"":qt.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]),134225584&n[0]|134217728&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function wn(t){let e,n;return e=new fn({props:{text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};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||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function xn(t){let e,n,r=t[10],i=[];for(let e=0;e<r.length;e+=1)i[e]=An(_n(t,r,e));const o=t=>jt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=O()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=O()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);S(t,e,r),n=!0},p(t,n){if(268437152&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const o=_n(t,r,a);i[a]?(i[a].p(o,n),Pt(i[a],1)):(i[a]=An(o),i[a].c(),Pt(i[a],1),i[a].m(e.parentNode,e))}for(Vt(),a=r.length;a<i.length;a+=1)o(a);Dt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Pt(i[t]);n=!0}},o(t){i=i.filter($n);for(let t=0;t<i.length;t+=1)jt(i[t]);n=!1},d(t){N(i,t),t&&F(e)}}}function kn(t){let e,r,i,o,a,l,s,c;return{c(){e=I("span"),r=I("img"),this.h()},l(t){e=H(t,"SPAN",{style:!0});var n=U(e);r=H(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(F),this.h()},h(){B(r,"class",i=Xt.text__image),u(r.src,o=t[55].image.url)||B(r,"src",o),B(r,"loading","lazy"),B(r,"decoding","async"),B(r,"aria-hidden","true"),B(r,"alt",""),B(r,"style",a=Yt({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0})),B(e,"style",l=Yt(t[55].image.wrapperStyle))},m(n,i){S(n,e,i),j(e,r),s||(c=J(r,"error",t[28]),s=!0)},p(t,n){1024&n[0]&&!u(r.src,o=t[55].image.url)&&B(r,"src",o),1536&n[0]&&a!==(a=Yt({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0}))&&B(r,"style",a),1024&n[0]&&l!==(l=Yt(t[55].image.wrapperStyle))&&B(e,"style",l)},i:n,o:n,d(t){t&&F(e),s=!1,c()}}}function En(t){let e,n,r=t[55].text&&Cn(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[55].text?r?(r.p(t,n),1024&n[0]&&Pt(r,1)):(r=Cn(t),r.c(),Pt(r,1),r.m(e.parentNode,e)):r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt())},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Cn(t){let e,n;return e=new fn({props:{text:t[55].text,rootFontSize:t[5],textStyles:t[55].textStyles,singleline:t[7],actions:t[55].actions}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[55].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[55].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[55].actions),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function An(t){let e,n,r,i;const o=[En,kn],a=[];function l(t,e){return"text"in t[55]?0:t[55].image?1:-1}return~(e=l(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=O()},l(t){n&&n.l(t),r=O()},m(t,n){~e&&a[e].m(t,n),S(t,r,n),i=!0},p(t,i){let s=e;e=l(t),e===s?~e&&a[e].p(t,i):(n&&(Vt(),jt(a[s],1,1,(()=>{a[s]=null})),Dt()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Pt(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(Pt(n),i=!0)},o(t){jt(n),i=!1},d(t){~e&&a[e].d(t),t&&F(r)}}}function Vn(t){let e,n,r,i,o,a;const l=[xn,wn],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=I("span"),r.c(),this.h()},l(t){e=H(t,"SPAN",{class:!0,style:!0});var n=U(e);r.l(n),n.forEach(F),this.h()},h(){B(e,"class",i=ye("text__inner",Xt,t[12])),B(e,"style",o=Yt(t[11]))},m(t,r){S(t,e,r),s[n].m(e,null),a=!0},p(t,u){let d=n;n=c(t),n===d?s[n].p(t,u):(Vt(),jt(s[d],1,1,(()=>{s[d]=null})),Dt(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Pt(r,1),r.m(e,null)),(!a||4096&u[0]&&i!==(i=ye("text__inner",Xt,t[12])))&&B(e,"class",i),(!a||2048&u[0]&&o!==(o=Yt(t[11])))&&B(e,"style",o)},i(t){a||(Pt(r),a=!0)},o(t){jt(r),a=!1},d(t){t&&F(e),s[n].d()}}}function Dn(t){let e,n,r=!t[8]&&bn(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[8]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),256&n[0]&&Pt(r,1)):(r=bn(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Pn(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,F,N,I,M,z,T=n,O=n,J=n,B=n,R=n,U=n,W=n,L=n,H=n,q=n,G=n,K=n,X=n;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X()));let{json:Z={}}=e,{templateContext:Y}=e,{origJson:Q}=e,{layoutParams:tt}=e;const et=ct(Gt);let nt=!1,rt="",it=12,ot=1.25,at=!1,st="",ut="",dt=!1,ht="left",pt="top",ft="",gt="",mt=!1,vt=[],yt=[];return lt((()=>{yt.forEach((t=>{let[e,n]=t;et.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&r(0,Z=t.json),"templateContext"in t&&r(1,Y=t.templateContext),"origJson"in t&&r(2,Q=t.origJson),"layoutParams"in t&&r(3,tt=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&(r(26,i=et.getDerivedFromVars(Z.text)),X(),X=p(i,(t=>r(51,z=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(r(4,(e=z,n=rt,rt=String(null!=e?e:"")||n)),rt?r(8,nt=!1):(r(8,nt=!0),et.logError(Kt(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(r(25,o=et.getDerivedFromVars(Z.ranges)),O(),O=p(o,(t=>r(41,C=t)))),1&t.$$.dirty[0]&&(r(24,a=et.getDerivedFromVars(Z.images)),T(),T=p(a,(t=>r(40,E=t)))),1&t.$$.dirty[0]&&(r(23,l=et.getDerivedFromVars({font_size:Z.font_size,letter_spacing:Z.letter_spacing,font_weight:Z.font_weight,font_family:Z.font_family,text_color:Z.text_color,underline:Z.underline,strike:Z.strike,line_height:Z.line_height})),J(),J=p(l,(t=>r(27,A=t)))),1&t.$$.dirty[0]&&(r(22,s=et.getDerivedFromVars(Z.font_size)),K(),K=p(s,(t=>r(50,M=t)))),32&t.$$.dirty[0]|524288&t.$$.dirty[1]&&r(5,it=ln(M,it)),1&t.$$.dirty[0]&&(r(21,c=et.getDerivedFromVars(Z.line_height)),G(),G=p(c,(t=>r(49,I=t)))),32&t.$$.dirty[0]|262144&t.$$.dirty[1]){const t=I;Re(t)?(r(29,ot=Number(t)/it),r(9,at=!0)):r(9,at=!1)}if(1&t.$$.dirty[0]&&(r(20,u=et.getDerivedFromVars(Z.max_lines)),L(),L=p(u,(t=>r(46,S=t)))),32768&t.$$.dirty[1]&&r(7,d=1===S),536870912&t.$$.dirty[0]|34304&t.$$.dirty[1]){let t="",e="",n=!1;if(S&&S>1){let r=Number(S);t=r*ot+"em",C||E||(e=r,n=!0)}r(30,st=t),r(31,ut=e),r(32,dt=n)}if(1&t.$$.dirty[0]&&(r(19,h=et.getDerivedFromVars(Z.text_alignment_horizontal)),q(),q=p(h,(t=>r(48,N=t)))),131076&t.$$.dirty[1]&&r(33,ht=gn(N,ht)),1&t.$$.dirty[0]&&(r(18,f=et.getDerivedFromVars(Z.text_alignment_vertical)),H(),H=p(f,(t=>r(47,F=t)))),65544&t.$$.dirty[1]&&r(34,pt=mn(F,pt)),16&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(39,g=!C||rt&&1===C.length&&C[0]&&0===C[0].start&&"number"==typeof C[0].end&&C[0].end>=rt.length),1&t.$$.dirty[0]&&(r(17,m=et.getDerivedFromVars(Z.text_color)),W(),W=p(m,(t=>r(45,j=t)))),17408&t.$$.dirty[1]&&r(38,v=Boolean(j)!==Boolean(C&&C[0]&&C[0].text_color)),50576&t.$$.dirty[1]){let t="";S&&g&&v&&(t=ne(j||C&&C[0]&&C[0].text_color,1,ft)),r(35,ft=t)}if(1&t.$$.dirty[0]&&(r(16,y=et.getDerivedFromVars(Z.truncate)),U(),U=p(y,(t=>r(44,P=t)))),8192&t.$$.dirty[1]&&r(37,$="none"===P?"none":""),1&t.$$.dirty[0]&&(r(15,_=et.getDerivedFromVars(Z.text_gradient)),R(),R=p(_,(t=>r(43,D=t)))),4096&t.$$.dirty[1]){let t="";if(D){const e=ae([D]);e.image&&(t=e.image)}r(36,gt=t)}1&t.$$.dirty[0]&&(r(14,b=et.getDerivedFromVars(Z.selectable)),B(),B=p(b,(t=>r(42,V=t)))),64&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(6,mt=vn(V,mt)),16&t.$$.dirty[0]|1536&t.$$.dirty[1]&&function(t,e,n){let i=[];if(yt.forEach((t=>{let[e,n]=t;et.removeSvgFilter(e,n)})),yt=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(10,vt=[]);const o=t;let a=e||[{start:0,end:o.length}],l=n||[],s=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"}))})),l.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>s){let n=Object.assign(Object.assign({},A),...c);i.push({text:o.substring(s,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({},A),...c),n=Qt(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=Qt(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":Qt(10*(Number(e.font_size)||12)/it)};let a="";const l=t.image.tint_color,s=yn(t.image.tint_mode,"source_in");if(l){const e=ne(t.image.tint_color);a=et.addSvgFilter(e,s),yt.push([e,s])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}s=r})),s<o.length&&i.push({text:o.substring(s),textStyles:Object.assign({},A)}),r(10,vt=i)}(rt,C,E),128&t.$$.dirty[0]|78&t.$$.dirty[1]&&r(13,w={singleline:d,multiline:dt,halign:ht,valign:pt,truncate:$}),32&t.$$.dirty[1]&&r(12,x={gradient:Boolean(gt)}),1610612768&t.$$.dirty[0]|49&t.$$.dirty[1]&&r(11,k={"font-size":Qt(it),"line-height":ot,"max-height":st,"-webkit-line-clamp":ut,color:ft,"background-image":gt})},[Z,Y,Q,tt,rt,it,mt,d,nt,at,vt,k,x,w,b,_,y,m,f,h,u,c,s,l,a,o,i,A,function(t){t.target&&"classList"in t.target&&t.target.classList.add(Xt.text__image_hidden)},ot,st,ut,dt,ht,pt,ft,gt,$,v,g,E,C,V,D,P,j,S,F,N,I,M,z]}const jn={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 Sn(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 Fn(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 Nn(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),l=((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+l: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(Qt).join(" ")}function In(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)i=t.shape,r={width:Number((null===(o=i.item_width)||void 0===o?void 0:o.value)||10),height:Number((null===(a=i.item_height)||void 0===a?void 0:a.value)||10),radius:Number(null!==(l=null===(s=i.corner_radius)||void 0===s?void 0:s.value)&&void 0!==l?l:5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Number((null===(e=t.radius)||void 0===e?void 0:e.value)||10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,l,s;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?ne(o.color):"",l=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 s=e.background_color||(null==n?void 0:n.color);return i.background=ne(s),a&&l&&(i.boxShadow="inset 0 0 0 ".concat(Qt(l)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}let Mn;function zn(){if(void 0!==Mn)return Mn;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),Mn=1===t.scrollHeight,document.body.removeChild(t),Mn}const Tn={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"};function On(t,e,n){const r=t.slice();return r[13]=e[n],r}function Jn(t){let e,n,r,i,o,a="".concat(t[13].style.width,"px"),l="".concat(t[13].style.height,"px"),s="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=I("div"),n=I("div"),i=T(),this.h()},l(t){e=H(t,"DIV",{class:!0});var r=U(e);n=H(r,"DIV",{class:!0}),U(n).forEach(F),i=K(r),r.forEach(F),this.h()},h(){B(n,"class",r=Tn["container-separator__shape"]),Z(n,"width",a),Z(n,"height",l),Z(n,"border-radius",s),Z(n,"background",t[13].style.background),Z(n,"box-shadow",t[13].style.boxShadow),B(e,"class",o=Tn["container-separator__item"]),Z(e,"left",c),Z(e,"top",u),Z(e,"width",d),Z(e,"height",h)},m(t,r){S(t,e,r),j(e,n),j(e,i)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&Z(n,"width",a),2&r&&l!==(l="".concat(t[13].style.height,"px"))&&Z(n,"height",l),2&r&&s!==(s="".concat(t[13].style.borderRadius,"px"))&&Z(n,"border-radius",s),2&r&&Z(n,"background",t[13].style.background),2&r&&Z(n,"box-shadow",t[13].style.boxShadow),2&r&&c!==(c="".concat(t[13].left,"px"))&&Z(e,"left",c),2&r&&u!==(u="".concat(t[13].top,"px"))&&Z(e,"top",u),2&r&&d!==(d="".concat(t[13].width,"px"))&&Z(e,"width",d),2&r&&h!==(h="".concat(t[13].height,"px"))&&Z(e,"height",h)},d(t){t&&F(e)}}}function Bn(t){let e,r,i,o,a=t[1],l=[];for(let e=0;e<a.length;e+=1)l[e]=Jn(On(t,a,e));return{c(){e=I("div");for(let t=0;t<l.length;t+=1)l[t].c();this.h()},l(t){e=H(t,"DIV",{class:!0});var n=U(e);for(let t=0;t<l.length;t+=1)l[t].l(n);n.forEach(F),this.h()},h(){B(e,"class",r=Tn["container-separator"])},m(n,r){S(n,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);t[10](e),i||(o=J(window,"resize",t[2]),i=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=t[1],n=0;n<a.length;n+=1){const i=On(t,a,n);l[n]?l[n].p(i,r):(l[n]=Jn(i),l[n].c(),l[n].m(e,null))}for(;n<l.length;n+=1)l[n].d(1);l.length=a.length}},i:n,o:n,d(n){n&&F(e),N(l,n),t[10](null),i=!1,o()}}}function Rn(t,e,n,r,i,o){const a=e.margins.left,l=e.margins.right,s=e.margins.top,c=e.margins.bottom;o?t.push({top:n.bottom+s,left:i.left+a,width:Math.max(0,i.right-i.left-a-l),height:r.top-n.bottom-s-c,style:e.style}):t.push({top:i.top+s,left:n.right+a,width:r.left-n.right-a-l,height:Math.max(0,i.bottom-i.top-s-c),style:e.style})}function Un(t,e,n,r){const i={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if((null==e?void 0:e.show_at_start)&&Rn(t,e,{top:0,right:n[0].left-e.style.width-e.margins.left-e.margins.right,bottom:n[0].top-e.style.height-e.margins.top-e.margins.bottom,left:0},n[0],i,r),null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)Rn(t,e,n[o],n[o+1],i,r);if(null==e?void 0:e.show_at_end){const o=n[n.length-1];Rn(t,e,o,{top:o.bottom+e.style.height+e.margins.top+e.margins.bottom,right:0,bottom:0,left:o.right+e.style.width+e.margins.left+e.margins.right},i,r)}}function Wn(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e;const l=function(t,e){let n,r=0,i=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(i||(i=!0,setTimeout((()=>{i=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect();n(1,c=[]);let e=[...r.children].filter((t=>t!==s&&!t.classList.contains(Zt.outer__border))),l=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),o=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===i){if(r.top<a)break}else if(r.left<o)break;o=Math.max(o,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}l.push(t)}const u=[];l.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&&Un(c,o,e,"vertical"===i);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};u.push(n)})),a&&Un(c,a,u,"horizontal"===i),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let s,c=[],u=!1,d=null,h=null;function p(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(Tn["container-separator__shape"]))&&!(null==n?void 0:n.contains(Tn["container-separator"]))}))&&l()}return at((()=>{n(6,u=!0)})),lt((()=>{n(6,u=!1)})),t.$$set=t=>{"orientation"in t&&n(3,i=t.orientation),"separator"in t&&n(4,o=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==s?void 0:s.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(p)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(l)),h.observe(r)))),576&t.$$.dirty&&u&&r&&l()},[s,c,l,i,o,a,u,d,h,r,function(t){ht[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}const Ln=class extends Ut{constructor(t){super(),Rt(this,t,Wn,Bn,d,{orientation:3,separator:4,lineSeparator:5})}},{Boolean:Hn}=Nt;function qn(t,e,n){const r=t.slice();return r[46]=e[n],r}function Gn(t){let e,n;return e=new on({props:{cls:ye("container",jn,t[11]),style:t[10],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[15],heightByAspect:Boolean(t[8]),$$slots:{default:[Zn]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=ye("container",jn,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),32768&n[0]&&(r.additionalPaddings=t[15]),256&n[0]&&(r.heightByAspect=Boolean(t[8])),4195040&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Kn(t){let e,n;return e=new oa({props:{layoutParams:t[9],div:t[46].json,templateContext:t[46].templateContext,origJson:t[46].origJson}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.layoutParams=t[9]),4194304&n[0]&&(r.div=t[46].json),4194304&n[0]&&(r.templateContext=t[46].templateContext),4194304&n[0]&&(r.origJson=t[46].origJson),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Xn(t){let e,n;return e=new Ln({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Zn(t){let e,n,r,i=t[22],o=[];for(let e=0;e<i.length;e+=1)o[e]=Kn(qn(t,i,e));const a=t=>jt(o[t],1,1,(()=>{o[t]=null}));let l=(t[6]||t[7])&&Xn(t);return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=T(),l&&l.c(),n=O()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=K(t),l&&l.l(t),n=O()},m(t,i){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,i);S(t,e,i),l&&l.m(t,i),S(t,n,i),r=!0},p(t,r){if(4194816&r[0]){let n;for(i=t[22],n=0;n<i.length;n+=1){const a=qn(t,i,n);o[n]?(o[n].p(a,r),Pt(o[n],1)):(o[n]=Kn(a),o[n].c(),Pt(o[n],1),o[n].m(e.parentNode,e))}for(Vt(),n=i.length;n<o.length;n+=1)a(n);Dt()}t[6]||t[7]?l?(l.p(t,r),192&r[0]&&Pt(l,1)):(l=Xn(t),l.c(),Pt(l,1),l.m(n.parentNode,n)):l&&(Vt(),jt(l,1,1,(()=>{l=null})),Dt())},i(t){if(!r){for(let t=0;t<i.length;t+=1)Pt(o[t]);Pt(l),r=!0}},o(t){o=o.filter(Hn);for(let t=0;t<o.length;t+=1)jt(o[t]);jt(l),r=!1},d(t){N(o,t),t&&F(e),l&&l.d(t),t&&F(n)}}}function Yn(t){let e,n,r=!t[4]&&Gn(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[4]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),16&n[0]&&Pt(r,1)):(r=Gn(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Qn(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D=n,P=n,j=n,S=n,F=n,N=n,I=n,M=n,z=n;var T,O,J,B,R,U;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z()));let{json:W={}}=e,{templateContext:L}=e,{origJson:H}=e,{layoutParams:q}=e;const G={left:"start",center:"center",right:"end","space-between":"start","space-around":"start","space-evenly":"start"},K={top:"start",center:"center",bottom:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},X=["rounded_rectangle","circle"],Z=ct(Gt);let Y,Q=!1,tt="vertical",et="top",nt="left",rt=null,it=null,ot={};return t.$$set=t=>{"json"in t&&r(0,W=t.json),"templateContext"in t&&r(1,L=t.templateContext),"origJson"in t&&r(2,H=t.origJson),"layoutParams"in t&&r(3,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(32,i=W.items),2&t.$$.dirty[1]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(4,Q=!1):(r(4,Q=!0),Z.logError(Kt(new Error('Incorrect or empty "items" prop for div "container"'))))),18&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(22,o=(!Q&&i||[]).map((t=>{let e=t,n=L;return({templateContext:n,json:e}=Z.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(21,a=Z.getDerivedFromVars(W.orientation)),z(),z=p(a,(t=>r(41,V=t)))),32&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(5,tt=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(V,tt)),1&t.$$.dirty[0]&&(r(20,l=Z.getDerivedFromVars(W.content_alignment_vertical)),M(),M=p(l,(t=>r(40,A=t)))),536870912&t.$$.dirty[0]|512&t.$$.dirty[1]&&r(29,et=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(A,et)),1&t.$$.dirty[0]&&(r(19,s=Z.getDerivedFromVars(W.content_alignment_horizontal)),I(),I=p(s,(t=>r(39,C=t)))),1073741824&t.$$.dirty[0]|256&t.$$.dirty[1]&&r(30,nt=function(t,e){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(C,nt)),1&t.$$.dirty[0]&&(r(18,c=Z.getDerivedFromVars(W.layout_mode)),N(),N=p(c,(t=>r(38,E=t)))),128&t.$$.dirty[1]&&r(31,u="wrap"===E),1&t.$$.dirty[0]&&(r(17,d=Z.getDerivedFromVars(W.separator)),F(),F=p(d,(t=>r(37,k=t)))),58720352&t.$$.dirty[0]|64&t.$$.dirty[1])if((null==k?void 0:k.style)&&"overlap"!==tt&&zn()){const t=In(k.style,X,(null==rt?void 0:rt.style)||null);r(6,rt=t?{show_at_start:Boolean(null!==r(23,T=k.show_at_start)&&void 0!==T&&T),show_at_end:Boolean(null!==r(24,O=k.show_at_end)&&void 0!==O&&O),show_between:Boolean(null===r(25,J=k.show_between)||void 0===J||J),style:t,margins:Sn(k.margins)}:null)}else r(6,rt=null);if(1&t.$$.dirty[0]&&(r(16,h=Z.getDerivedFromVars(W.line_separator)),S(),S=p(h,(t=>r(36,x=t)))),469762208&t.$$.dirty[0]|32&t.$$.dirty[1])if((null==x?void 0:x.style)&&"overlap"!==tt&&zn()){const t=In(x.style,X,(null==it?void 0:it.style)||null);r(7,it=t?{show_at_start:Boolean(null!==r(26,B=x.show_at_start)&&void 0!==B&&B),show_at_end:Boolean(null!==r(27,R=x.show_at_end)&&void 0!==R&&R),show_between:Boolean(null===r(28,U=x.show_between)||void 0===U||U),style:t,margins:Sn(x.margins)}:null)}else r(7,it=null);if(224&t.$$.dirty[0]&&r(15,f=rt||it?function(t,e,n){const r={};return Fn(r,e,"vertical"===t),Fn(r,n,"horizontal"===t),r}(tt,rt,it):null),1&t.$$.dirty[0]&&(r(14,g=Z.getDerivedFromVars(W.aspect)),j(),j=p(g,(t=>r(35,w=t)))),16&t.$$.dirty[1]){const t=null==w?void 0:w.ratio;t&&Re(t)?r(8,Y=t):r(8,Y=void 0)}if(1&t.$$.dirty[0]&&(r(13,m=Z.getDerivedFromVars(W.width)),D(),D=p(m,(t=>r(33,_=t)))),1&t.$$.dirty[0]&&(r(12,v=Z.getDerivedFromVars(W.height)),P(),P=p(v,(t=>r(34,b=t)))),1610613544&t.$$.dirty[0]|13&t.$$.dirty[1]){let t={};(null==q?void 0:q.fakeElement)&&(t.fakeElement=!0),"overlap"===tt&&(t.overlapParent=!0),"horizontal"!==tt&&(t.parentHAlign=u?"start":G[nt],Y||b&&"wrap_content"!==b.type&&("match_parent"!==b.type||!(null==q?void 0:q.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0)),"vertical"!==tt&&(t.parentVAlign=u?"start":K[et],("wrap_content"===(null==_?void 0:_.type)||"match_parent"===(null==_?void 0:_.type)&&(null==q?void 0:q.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===tt&&(t.parentContainerOrientation="horizontal"),"vertical"===tt&&(t.parentContainerOrientation="vertical"),u&&(t.parentContainerWrap=!0),r(9,ot=Ae(t,ot))}1610612768&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(11,y={orientation:tt,valign:et,halign:nt,wrap:u}),480&t.$$.dirty[0]&&r(10,$={gap:rt||it?Nn(tt,rt,it):void 0,"aspect-ratio":Y})},[W,L,H,q,Q,tt,rt,it,Y,ot,$,y,v,m,g,f,h,d,c,s,l,a,o,T,O,J,B,R,U,et,nt,u,i,_,b,w,x,k,E,C,A,V]}const tr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function er(t,e){return"vertical"===t||"horizontal"===t?t:e}function nr(t){let e,n,r;return{c(){e=I("span"),this.h()},l(t){e=H(t,"SPAN",{class:!0,style:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=tr.separator__inner),B(e,"style",r=Yt(t[5]))},m(t,n){S(t,e,n)},p(t,n){32&n&&r!==(r=Yt(t[5]))&&B(e,"style",r)},d(t){t&&F(e)}}}function rr(t){let e,n=t[6]&&nr(t);return{c(){n&&n.c(),e=O()},l(t){n&&n.l(t),e=O()},m(t,r){n&&n.m(t,r),S(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=nr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&F(e)}}}function ir(t){let e,n;return e=new on({props:{cls:ye("separator",tr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[rr]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=ye("separator",tr,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||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function or(t,e,r){let i,o,a,l,s,c,u,d=n;t.$$.on_destroy.push((()=>d()));let{json:h={}}=e,{templateContext:f}=e,{origJson:g}=e,{layoutParams:m}=e;const v=ct(Gt);let y="horizontal",$="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&r(0,h=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&&(r(7,i=v.getDerivedFromVars(h.delimiter_style)),d(),d=p(i,(t=>r(12,u=t)))),4352&t.$$.dirty&&r(8,y=er(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,$=ne(null==u?void 0:u.color,1,$)),256&t.$$.dirty&&r(11,a="horizontal"===y?"100%":Qt(1)),256&t.$$.dirty&&r(10,l="horizontal"===y?Qt(1):"100%"),3584&t.$$.dirty&&r(5,s={background:$,width:a,height:l}),256&t.$$.dirty&&r(4,c={orientation:y})},[h,f,g,m,c,s,o,i,y,$,l,a,u]}const ar={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 lr(t){return t.startsWith("data:")?ie(t):"data:image/jpg;base64,".concat(ie(t))}function sr(t){let e,n;return e=new on({props:{cls:ye("image",ar,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[hr]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=ye("image",ar,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),67312&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function cr(t){let e,n,r,i,o,a,s;return{c(){e=I("img"),this.h()},l(t){e=H(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){B(e,"class",n=ar.image__image),u(e.src,r=t[4]===gr?fr:t[7])||B(e,"src",r),B(e,"loading","lazy"),B(e,"decoding","async"),B(e,"style",i=Yt(t[9])),B(e,"alt",t[16]),B(e,"aria-hidden",o=t[16]?null:"true")},m(n,r){S(n,e,r),a||(s=[J(e,"load",t[26]),J(e,"error",t[27])],a=!0)},p(t,n){144&n[0]&&!u(e.src,r=t[4]===gr?fr:t[7])&&B(e,"src",r),512&n[0]&&i!==(i=Yt(t[9]))&&B(e,"style",i),65536&n[0]&&B(e,"alt",t[16]),65536&n[0]&&o!==(o=t[16]?null:"true")&&B(e,"aria-hidden",o)},d(t){t&&F(e),a=!1,l(s)}}}function ur(t){let e,n,r,i,o,a,s,c,d,h="".concat(t[5],"%");return{c(){e=I("span"),n=I("img"),this.h()},l(t){e=H(t,"SPAN",{class:!0});var r=U(e);n=H(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(F),this.h()},h(){B(n,"class",r=ar.image__image),u(n.src,i=t[4]===gr?fr:t[7])||B(n,"src",i),B(n,"loading","lazy"),B(n,"decoding","async"),B(n,"style",o=Yt(t[9])),B(n,"alt",t[16]),B(n,"aria-hidden",a=t[16]?null:"true"),B(e,"class",s=ar["image__aspect-wrapper"]),Z(e,"padding-bottom",h)},m(r,i){S(r,e,i),j(e,n),c||(d=[J(n,"load",t[26]),J(n,"error",t[27])],c=!0)},p(t,r){144&r[0]&&!u(n.src,i=t[4]===gr?fr:t[7])&&B(n,"src",i),512&r[0]&&o!==(o=Yt(t[9]))&&B(n,"style",o),65536&r[0]&&B(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&B(n,"aria-hidden",a),32&r[0]&&h!==(h="".concat(t[5],"%"))&&Z(e,"padding-bottom",h)},d(t){t&&F(e),c=!1,l(d)}}}function dr(t){let e;function n(t,e){return t[10].aspect?ur:cr}let r=n(t),i=r(t);return{c(){i.c(),e=O()},l(t){i.l(t),e=O()},m(t,n){i.m(t,n),S(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){i.d(t),t&&F(e)}}}function hr(t){let e,n=t[6],r=dr(t);return{c(){r.c(),e=O()},l(t){r.l(t),e=O()},m(t,n){r.m(t,n),S(t,e,n)},p(t,i){64&i[0]&&d(n,n=t[6])?(r.d(1),r=dr(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&F(e),r.d(t)}}}function pr(t){let e,n,r=!t[8]&&sr(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[8]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),256&n[0]&&Pt(r,1)):(r=sr(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}const fr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",gr=2;function mr(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,F,N,I,M,z,T,O=n,J=n,B=n,R=n,U=n,W=n,L=n,H=n,q=n,G=n,K=n,X=n,Z=n,Y=n;t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Y()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt=ct(Gt);let it=0,ot="rgba(0,0,0,0.08)",at=!1,st="",ut="none",dt="50% 50%";let ht,pt="0",ft="source_in",gt="",mt="",vt=0,yt=0,$t=0,_t="",bt="";return lt((()=>{rt.removeSvgFilter(ht,ft)})),t.$$set=t=>{"json"in t&&r(0,Q=t.json),"templateContext"in t&&r(1,tt=t.templateContext),"origJson"in t&&r(2,et=t.origJson),"layoutParams"in t&&r(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(25,i=rt.getDerivedFromVars(Q.image_url)),Y(),Y=p(i,(t=>r(55,T=t)))),1&t.$$.dirty[0]&&(r(24,o=rt.getDerivedFromVars(Q.gif_url)),Z(),Z=p(o,(t=>r(54,z=t)))),25165824&t.$$.dirty[1]&&r(7,a=T||z),128&t.$$.dirty[0]&&r(4,it=0),128&t.$$.dirty[0]&&(a?r(8,at=!1):(r(8,at=!0),rt.logError(Kt(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(r(23,l=rt.getDerivedFromVars(Q.width)),X(),X=p(l,(t=>r(53,M=t)))),4194304&t.$$.dirty[1]&&r(41,s="wrap_content"===(null==M?void 0:M.type)),1&t.$$.dirty[0]&&(r(22,c=rt.getDerivedFromVars(Q.height)),K(),K=p(c,(t=>r(52,I=t)))),2097152&t.$$.dirty[1]&&r(40,u="wrap_content"===(null==I?void 0:I.type)),1&t.$$.dirty[0]&&(r(21,d=rt.getDerivedFromVars(Q.preview)),G(),G=p(d,(t=>r(51,N=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&r(29,st=0!==it&&it!==gr||!N?"":'url("'.concat(lr(N),'")')),1&t.$$.dirty[0]&&(r(20,h=rt.getDerivedFromVars(Q.placeholder_color)),q(),q=p(h,(t=>r(50,F=t)))),16&t.$$.dirty[0]|524288&t.$$.dirty[1]&&function(t,e){r(28,ot=0===t||t===gr?ne(e,1,ot):"")}(it,F),1&t.$$.dirty[0]&&(r(19,f=rt.getDerivedFromVars(Q.scale)),H(),H=p(f,(t=>r(49,S=t)))),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]&&r(30,ut=ce(S)||ut),1&t.$$.dirty[0]&&(r(18,g=rt.getDerivedFromVars({content_alignment_horizontal:Q.content_alignment_horizontal,content_alignment_vertical:Q.content_alignment_vertical})),L(),L=p(g,(t=>r(48,j=t)))),131072&t.$$.dirty[1]&&r(31,dt=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:ue(t)}(j,dt)),1&t.$$.dirty[0]&&(r(17,m=rt.getDerivedFromVars(Q.accessibility)),W(),W=p(m,(t=>r(47,P=t)))),65536&t.$$.dirty[1]&&r(16,v=(null==P?void 0:P.description)||""),1&t.$$.dirty[0]&&(r(15,y=rt.getDerivedFromVars(Q.aspect)),U(),U=p(y,(t=>r(46,D=t)))),32768&t.$$.dirty[1]){const t=null==D?void 0:D.ratio;t&&Re(t)?r(5,pt=(100/Number(t)).toFixed(2)):r(5,pt="0")}if(1&t.$$.dirty[0]&&(r(14,$=rt.getDerivedFromVars(Q.tint_color)),R(),R=p($,(t=>r(45,V=t)))),1&t.$$.dirty[0]&&(r(13,_=rt.getDerivedFromVars(Q.tint_mode)),B(),B=p(_,(t=>r(44,A=t)))),24582&t.$$.dirty[1]){const t=V?ne(V):void 0,e=yn(A,ft);t===ht&&e===ft||(rt.removeSvgFilter(ht,ft),r(6,gt=t?rt.addSvgFilter(t,e):""),r(32,ht=t),r(33,ft=e))}if(1&t.$$.dirty[0]&&(r(12,b=rt.getDerivedFromVars(Q.appearance_animation)),J(),J=p(b,(t=>r(43,C=t)))),4096&t.$$.dirty[1]&&C&&"fade"===C.type){const t=C;r(34,mt=Ve(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(37,$t=ke(t.duration,300)),r(36,yt=ke(t.start_delay,0)),r(35,vt=ke(t.alpha,0))}if(1&t.$$.dirty[0]&&(r(11,w=rt.getDerivedFromVars(Q.filters)),O(),O=p(w,(t=>r(42,E=t)))),2048&t.$$.dirty[1]){let t="",e="";Array.isArray(E)&&E.length&&(t=Ue(E,rt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(38,_t=t),r(39,bt=e)}48&t.$$.dirty[0]|1544&t.$$.dirty[1]&&r(10,x={aspect:"0"!==pt,"is-width-content":s,"is-height-content":u,loaded:1===it,"before-appearance":Boolean(mt)&&0===it}),1879048272&t.$$.dirty[0]|505&t.$$.dirty[1]&&r(9,k={"background-image":st,"background-color":st?void 0:ot,"background-size":ut,"clip-path":bt||void 0,"object-fit":ut,"object-position":dt,filter:[1===it&&gt?"url(#".concat(gt,")"):"",_t].filter(Boolean).join(" "),"--divkit-appearance-interpolator":mt||void 0,"--divkit-appearance-fade-start":mt?vt:void 0,"--divkit-appearance-delay":mt?"".concat(yt,"ms"):void 0,"--divkit-appearance-duration":mt?"".concat($t,"ms"):void 0})},[Q,tt,et,nt,it,pt,gt,a,at,k,x,w,b,_,$,y,v,m,g,f,h,d,c,l,o,i,function(){0===it&&r(4,it=1)},function(){0===it&&r(4,it=gr)},ot,st,ut,dt,ht,ft,mt,vt,yt,$t,_t,bt,u,s,E,C,A,V,D,P,j,S,F,N,I,M,z,T]}const vr=class extends Ut{constructor(t){super(),Rt(this,t,mr,pr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},yr={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 $r(t){return t>0&&t<1}function _r(t){return String(Math.ceil(1e3*t)/1e3)}function br(t,e,n){if(t.some($r)){const e=Math.max(...t.filter($r).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(Qt(r*t[e]/i),",").concat(_r(t[e]),"fr)"):t[e]?o[e]="".concat(_r(t[e]),"fr"):o[e]="auto";return o.join(" ")}function wr(t,e,n){const r=t.slice();return r[29]=e[n],r}function xr(t){let e,n;return e=new on({props:{cls:ye("grid",yr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[Er]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=ye("grid",yr,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]),32&n[0]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function kr(t){let e,n;return e=new oa({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(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||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Er(t){let e,n,r=t[5],i=[];for(let e=0;e<r.length;e+=1)i[e]=kr(wr(t,r,e));const o=t=>jt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=O()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=O()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);S(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=t[5],a=0;a<r.length;a+=1){const o=wr(t,r,a);i[a]?(i[a].p(o,n),Pt(i[a],1)):(i[a]=kr(o),i[a].c(),Pt(i[a],1),i[a].m(e.parentNode,e))}for(Vt(),a=r.length;a<i.length;a+=1)o(a);Dt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Pt(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)jt(i[t]);n=!1},d(t){N(i,t),t&&F(e)}}}function Cr(t){let e,n,r=!t[6]&&xr(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[6]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),64&n[0]&&Pt(r,1)):(r=xr(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Ar(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v=n,y=n,$=n,_=n;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:w}=e,{origJson:x}=e,{layoutParams:k}=e;const E=ct(Gt);let C,A,V=!1,D=1,P=[],j=[],S=[],F=[],N=0,I=!1,M="top",z="left";return t.$$set=t=>{"json"in t&&r(0,b=t.json),"templateContext"in t&&r(1,w=t.templateContext),"origJson"in t&&r(2,x=t.origJson),"layoutParams"in t&&r(3,k=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(23,i=b.items),8388608&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(12,V=!1):(r(12,V=!0),E.logError(Kt(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(r(11,o=E.getDerivedFromVars(b.column_count)),_(),_=p(o,(t=>r(27,m=t)))),134225920&t.$$.dirty[0]&&r(13,D=ln(m,D)),8392706&t.$$.dirty[0]&&r(22,a=(!V&&i||[]).map((t=>{let e=t,n=w;return({templateContext:n,json:e}=E.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];a.forEach((e=>{t.push(E.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(4,C=Ht(t,(t=>[...t]))),$(),$=p(C,(t=>r(26,g=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,P=[]),r(15,j=[]),r(16,S=[]),r(17,F=[]),r(19,I=!1),r(5,A=a.map(((i,o)=>{var a,l,s,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===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.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,(!P[i]||P[i]<f)&&r(14,P[i]=f,P),(!j[e]||j[e]<m)&&r(15,j[e]=m,j),(!S[i]||S[i]<v)&&r(16,S[i]=v,S),(!F[e]||F[e]<y)&&r(17,F[e]=y,F));do{++e,e>=D&&(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(Kt(new Error('Mismatching "grid" rows/columns'))),r(18,N=n)}1&t.$$.dirty[0]&&(r(10,l=E.getDerivedFromVars(b.content_alignment_vertical)),y(),y=p(l,(t=>r(25,f=t)))),34603008&t.$$.dirty[0]&&r(20,M=mn(f,M)),1&t.$$.dirty[0]&&(r(9,s=E.getDerivedFromVars(b.content_alignment_horizontal)),v(),v=p(s,(t=>r(24,h=t)))),18874368&t.$$.dirty[0]&&r(21,z=gn(h,z)),3145728&t.$$.dirty[0]&&r(8,c={valign:M,halign:z}),516096&t.$$.dirty[0]&&r(7,u={"grid-template-columns":br(P,S,D),"grid-template-rows":br(j,F,N)}),528384&t.$$.dirty[0]&&r(6,d=V||I)},[b,w,x,k,C,A,d,u,c,s,l,o,V,D,P,j,S,F,N,I,M,z,a,i,h,f,g,m]}const Vr={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function Dr(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 Pr(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:jr}=Nt;function Sr(t,e,n){const r=t.slice();return r[72]=e[n],r[73]=e,r[74]=n,r}function Fr(t,e,n){const r=t.slice();return r[75]=e[n],r}function Nr(t){let e,n;return e=new on({props:{cls:ye("gallery",Vr,t[16]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",$$slots:{default:[Jr]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=ye("gallery",Vr,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]),335953872&n[0]|65536&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Ir(t){let e,n;return e=new oa({props:{layoutParams:t[8],div:t[75].json,templateContext:t[75].templateContext,origJson:t[75].origJson}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),67108864&n[0]&&(r.div=t[75].json),67108864&n[0]&&(r.templateContext=t[75].templateContext),67108864&n[0]&&(r.origJson=t[75].origJson),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Mr(t){let e,n,r,i,o,a=t[74],l=t[72],s=[];for(let e=0;e<l.length;e+=1)s[e]=Ir(Fr(t,l,e));const c=t=>jt(s[t],1,1,(()=>{s[t]=null})),u=()=>t[60](e,a),d=()=>t[60](null,a);return{c(){e=I("div");for(let t=0;t<s.length;t+=1)s[t].c();n=T(),this.h()},l(t){e=H(t,"DIV",{class:!0,style:!0});var r=U(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=K(r),r.forEach(F),this.h()},h(){B(e,"class",r=Vr.gallery__items),B(e,"style",i=Yt(t[17]))},m(t,r){S(t,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);j(e,n),u(),o=!0},p(r,h){if(t=r,67109120&h[0]){let r;for(l=t[72],r=0;r<l.length;r+=1){const i=Fr(t,l,r);s[r]?(s[r].p(i,h),Pt(s[r],1)):(s[r]=Ir(i),s[r].c(),Pt(s[r],1),s[r].m(e,n))}for(Vt(),r=l.length;r<s.length;r+=1)c(r);Dt()}(!o||131072&h[0]&&i!==(i=Yt(t[17])))&&B(e,"style",i),a!==t[74]&&(d(),a=t[74],u())},i(t){if(!o){for(let t=0;t<l.length;t+=1)Pt(s[t]);o=!0}},o(t){s=s.filter(jr);for(let t=0;t<s.length;t+=1)jt(s[t]);o=!1},d(t){t&&F(e),N(s,t),d()}}}function zr(t){let e,n,r=t[12]&&t[9]&&Tr(t),i=t[13]&&t[9]&&Or(t);return{c(){r&&r.c(),e=T(),i&&i.c(),n=O()},l(t){r&&r.l(t),e=K(t),i&&i.l(t),n=O()},m(t,o){r&&r.m(t,o),S(t,e,o),i&&i.m(t,o),S(t,n,o)},p(t,o){t[12]&&t[9]?r?r.p(t,o):(r=Tr(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?i?i.p(t,o):(i=Or(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){r&&r.d(t),t&&F(e),i&&i.d(t),t&&F(n)}}}function Tr(t){let e,r,i,o,a=!t[29]&&function(t){let e,r,i,o;return{c(){e=M("svg"),r=M("path"),this.h()},l(t){e=q(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var n=U(e);r=q(n,"path",{class:!0,d:!0}),U(r).forEach(F),n.forEach(F),this.h()},h(){B(r,"class",i=Vr["gallery__arrow-icon-path"]),B(r,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),B(e,"class",o=Vr["gallery__arrow-icon"]),B(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"width","32"),B(e,"height","32"),B(e,"viewBox","0 0 32 32"),B(e,"fill","none")},m(t,n){S(t,e,n),j(e,r)},p:n,d(t){t&&F(e)}}}();return{c(){e=I("div"),a&&a.c(),this.h()},l(t){e=H(t,"DIV",{class:!0});var n=U(e);a&&a.l(n),n.forEach(F),this.h()},h(){B(e,"class",r=t[29]||"".concat(Vr.gallery__arrow," ").concat(Vr.gallery__arrow_left))},m(n,r){S(n,e,r),a&&a.m(e,null),i||(o=J(e,"click",t[63]),i=!0)},p(t,e){t[29]||a.p(t,e)},d(t){t&&F(e),a&&a.d(),i=!1,o()}}}function Or(t){let e,r,i,o,a=!t[30]&&function(t){let e,r,i,o;return{c(){e=M("svg"),r=M("path"),this.h()},l(t){e=q(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var n=U(e);r=q(n,"path",{class:!0,d:!0}),U(r).forEach(F),n.forEach(F),this.h()},h(){B(r,"class",i=Vr["gallery__arrow-icon-path"]),B(r,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),B(e,"class",o=Vr["gallery__arrow-icon"]),B(e,"xmlns","http://www.w3.org/2000/svg"),B(e,"width","32"),B(e,"height","32"),B(e,"viewBox","0 0 32 32"),B(e,"fill","none")},m(t,n){S(t,e,n),j(e,r)},p:n,d(t){t&&F(e)}}}();return{c(){e=I("div"),a&&a.c(),this.h()},l(t){e=H(t,"DIV",{class:!0});var n=U(e);a&&a.l(n),n.forEach(F),this.h()},h(){B(e,"class",r=t[30]||"".concat(Vr.gallery__arrow," ").concat(Vr.gallery__arrow_right))},m(n,r){S(n,e,r),a&&a.m(e,null),i||(o=J(e,"click",t[64]),i=!0)},p(t,e){t[30]||a.p(t,e)},d(t){t&&F(e),a&&a.d(),i=!1,o()}}}function Jr(t){let e,n,r,i,o,a,l,c,u,d,h,p=t[26],f=[];for(let e=0;e<p.length;e+=1)f[e]=Mr(Sr(t,p,e));const g=t=>jt(f[t],1,1,(()=>{f[t]=null}));let m="horizontal"===t[6]&&zr(t);return{c(){e=I("div"),n=I("div");for(let t=0;t<f.length;t+=1)f[t].c();l=T(),m&&m.c(),c=O(),this.h()},l(t){e=H(t,"DIV",{class:!0,style:!0});var r=U(e);n=H(r,"DIV",{class:!0,style:!0});var i=U(n);for(let t=0;t<f.length;t+=1)f[t].l(i);i.forEach(F),r.forEach(F),l=K(t),m&&m.l(t),c=O(),this.h()},h(){B(n,"class",r=Vr["gallery__items-grid"]),B(n,"style",i=Yt(t[18])),B(e,"class",o=Vr.gallery__scroller+" "+(t[28]?qt["root_restrict-scroll"]:"")),B(e,"style",a=Yt(t[7]))},m(r,i){S(r,e,i),j(e,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(n,null);t[61](n),t[62](e),S(r,l,i),m&&m.m(r,i),S(r,c,i),u=!0,d||(h=J(e,"scroll",(function(){s(t[9]?t[32]:null)&&(t[9]?t[32]:null).apply(this,arguments)})),d=!0)},p(r,l){if(t=r,67242240&l[0]){let e;for(p=t[26],e=0;e<p.length;e+=1){const r=Sr(t,p,e);f[e]?(f[e].p(r,l),Pt(f[e],1)):(f[e]=Mr(r),f[e].c(),Pt(f[e],1),f[e].m(n,null))}for(Vt(),e=p.length;e<f.length;e+=1)g(e);Dt()}(!u||262144&l[0]&&i!==(i=Yt(t[18])))&&B(n,"style",i),(!u||268435456&l[0]&&o!==(o=Vr.gallery__scroller+" "+(t[28]?qt["root_restrict-scroll"]:"")))&&B(e,"class",o),(!u||128&l[0]&&a!==(a=Yt(t[7])))&&B(e,"style",a),"horizontal"===t[6]?m?m.p(t,l):(m=zr(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)Pt(f[t]);u=!0}},o(t){f=f.filter(jr);for(let t=0;t<f.length;t+=1)jt(f[t]);u=!1},d(n){n&&F(e),N(f,n),t[61](null),t[62](null),n&&F(l),m&&m.d(n),n&&F(c),d=!1,h()}}}function Br(t){let e,n,r,i,o=!t[5]&&Nr(t);return{c(){o&&o.c(),e=O()},l(t){o&&o.l(t),e=O()},m(a,l){o&&o.m(a,l),S(a,e,l),n=!0,r||(i=J(window,"resize",(function(){s(t[9]?t[33]:null)&&(t[9]?t[33]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?o&&(Vt(),jt(o,1,1,(()=>{o=null})),Dt()):o?(o.p(t,r),32&r[0]&&Pt(o,1)):(o=Nr(t),o.c(),Pt(o,1),o.m(e.parentNode,e))},i(t){n||(Pt(o),n=!0)},o(t){jt(o),n=!1},d(t){o&&o.d(t),t&&F(e),r=!1,i()}}}function Rr(t,e,r){let i,o,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,F,N=n,I=n,M=n,z=n,T=n,O=n,J=n,B=n,R=n,U=n;t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U()));let{json:W={}}=e,{templateContext:L}=e,{origJson:H}=e,{layoutParams:q}=e;const G=ct(Gt);let K,X,Z=[],Y=!1,Q=!1,tt=null,et=!1;const nt=G.getCustomization("galleryLeftClass"),rt=G.getCustomization("galleryRightClass");let it=!1;const ot=G.isDesktop;f(t,ot,(t=>r(59,S=t)));let st,ut,dt,pt,ft=1,gt="horizontal",mt="start",vt=8,yt="",$t=[],_t={},bt=!1,wt={},xt=0;function kt(){if(!K)return;const t=K.scrollLeft,e=K.scrollWidth,n=K.offsetWidth;r(12,Y=t>2),r(13,Q=t+n<e-2)}const Et=Pr(kt,50);function Ct(t){K.scroll({left:K.scrollLeft+.75*K.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function At(){let t=[],e=Z[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ft;++e){const r=Z[e].children[n];r&&t.push(r)}return t}function Vt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===gt,i=r?"offsetLeft":"offsetTop",o=r?"left":"top";K.scroll({[o]:Math.max(0,t[e][i]+.01-vt/2),behavior:n})}function Dt(t){const e=At(),n=K.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===gt?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"===gt?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!W.id||it||(null==q?void 0:q.fakeElement)||G.registerInstance(W.id,{setCurrentItem(t){const e=At();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Vt(e,t)},setPreviousItem(t){const e=Dt("prev"),n=At();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),Vt(n,r)},setNextItem(t){const e="horizontal"===gt?K.scrollLeft+K.offsetWidth===K.scrollWidth:K.scrollTop+K.offsetHeight===K.scrollHeight,n=At();if(e&&"ring"===t)return void Vt(n,0);const r=Dt("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),Vt(n,i)}}),at((()=>{r(36,et=!0),!it&&(kt(),xt)&&Vt(At(),xt,"auto")})),lt((()=>{r(36,et=!1),W.id&&!(null==q?void 0:q.fakeElement)&&G.unregisterInstance(W.id)})),t.$$set=t=>{"json"in t&&r(0,W=t.json),"templateContext"in t&&r(1,L=t.templateContext),"origJson"in t&&r(2,H=t.origJson),"layoutParams"in t&&r(3,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(49,i=W.items),262144&t.$$.dirty[1]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(5,it=!1):(r(5,it=!0),G.logError(Kt(new Error('Incorrect or empty "items" prop for div "gallery"'))))),34&t.$$.dirty[0]|262144&t.$$.dirty[1]&&r(48,o=(!it&&i||[]).map((t=>{let e=t,n=L;return({templateContext:n,json:e}=G.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|268435488&t.$$.dirty[1]&&r(9,a=S&&et&&!it),528&t.$$.dirty[0]|16&t.$$.dirty[1]&&(a?"undefined"!=typeof ResizeObserver&&(r(35,tt=new ResizeObserver((()=>{Et()}))),tt.observe(X)):tt&&(tt.disconnect(),r(35,tt=null))),1&t.$$.dirty[0]&&(r(27,l=G.getDerivedFromVars(W.column_count)),R(),R=p(l,(t=>r(58,j=t)))),134217792&t.$$.dirty[1]&&r(37,ft=ln(j,ft)),131136&t.$$.dirty[1]&&r(26,s=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(o,ft)),1&t.$$.dirty[0]&&(r(25,c=G.getDerivedFromVars(W.orientation)),B(),B=p(c,(t=>r(57,P=t)))),64&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(6,gt=er(P,gt)),1&t.$$.dirty[0]&&(r(24,u=G.getDerivedFromVars(W.cross_content_alignment)),J(),J=p(u,(t=>r(56,D=t)))),33554560&t.$$.dirty[1]&&r(38,mt=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(D,mt)),1&t.$$.dirty[0]&&(r(23,d=G.getDerivedFromVars(W.item_spacing)),O(),O=p(d,(t=>r(55,V=t)))),16777728&t.$$.dirty[1]&&(r(40,vt=ke(V,vt)),r(39,st=Qt(vt))),1&t.$$.dirty[0]&&(r(22,h=G.getDerivedFromVars(W.cross_spacing)),T(),T=p(h,(t=>r(54,A=t)))),8391168&t.$$.dirty[1]&&(r(42,dt=ke(A,vt)),r(41,ut=Qt(dt))),1&t.$$.dirty[0]&&(r(21,g=G.getDerivedFromVars(W.paddings)),z(),z=p(g,(t=>r(53,C=t)))),4198400&t.$$.dirty[1]&&r(43,yt=xe(C,yt)),64&t.$$.dirty[0]&&r(47,m="horizontal"===gt?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|131072&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===gt?"width":"height";t.push(G.getDerivedFromVars(e.json[n]))})),r(14,pt=Ht(t,(t=>t))),M(),M=p(pt,(t=>r(52,E=t)))}if(64&t.$$.dirty[0]|2105408&t.$$.dirty[1]&&(r(44,$t=[]),ft>1?$t.push("auto"):E.forEach((t=>{!t&&"horizontal"===gt||"match_parent"===(null==t?void 0:t.type)?$t.push("100%"):$t.push("max-content")}))),1&t.$$.dirty[0]&&(r(20,v=G.getDerivedFromVars(W.scroll_mode)),I(),I=p(v,(t=>r(51,k=t)))),456&t.$$.dirty[0]|1049280&t.$$.dirty[1]){const t={};let e={};r(45,bt=!1),(null==q?void 0:q.fakeElement)&&(e.fakeElement=!0),"horizontal"===gt?e.parentVAlign=mt:e.parentHAlign=mt,"paging"===k&&(r(45,bt=!0),e.scrollSnap="start",t["horizontal"===gt?"scroll-padding-left":"scroll-padding-top"]=Qt(vt/2)),1===ft&&(e.parentLayoutOrientation=gt),r(7,_t=Ae(t,_t)),r(8,wt=Ae(e,wt))}1&t.$$.dirty[0]&&(r(19,y=G.getDerivedFromVars(W.restrict_parent_scroll)),U(),U=p(y,(t=>r(28,F=t)))),5120&t.$$.dirty[1]&&r(18,$={padding:yt,"grid-gap":ut}),73984&t.$$.dirty[1]&&r(17,_={"grid-gap":st,[m]:Dr($t)}),64&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(16,b={orientation:gt,"scroll-snap":bt}),1&t.$$.dirty[0]&&(r(15,w=G.getDerivedFromVars(W.default_item)),N(),N=p(w,(t=>r(50,x=t)))),557056&t.$$.dirty[1]&&r(46,xt=ke(x,xt))},[W,L,H,q,X,it,gt,_t,wt,a,K,Z,Y,Q,pt,w,b,_,$,y,v,g,h,d,u,c,s,l,F,nt,rt,ot,kt,Et,Ct,tt,et,ft,mt,st,vt,ut,dt,yt,$t,bt,xt,m,o,i,x,k,E,C,A,V,D,P,j,S,function(t,e){ht[t?"unshift":"push"]((()=>{Z[e]=t,r(11,Z)}))},function(t){ht[t?"unshift":"push"]((()=>{X=t,r(4,X)}))},function(t){ht[t?"unshift":"push"]((()=>{K=t,r(10,K)}))},()=>Ct("left"),()=>Ct("right")]}const Ur={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"},Wr=37,Lr=39,Hr=36,qr=35,{Boolean:Gr}=Nt;function Kr(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;return r[89]=i,r}function Xr(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;r[89]=i;const o=r[89]===r[6];return r[92]=o,r}function Zr(t){let e,n;return e=new on({props:{cls:ye("tabs",Ur,t[46]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[ri]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),2147483626&n[0]|4137&n[1]|4&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Yr(t){let e,n,r=t[88].title+"";return{c(){e=z(r),n=T()},l(t){e=G(t,r),n=K(t)},m(t,r){S(t,e,r),S(t,n,r)},p(t,n){524288&n[0]&&r!==(r=t[88].title+"")&&X(e,r)},d(t){t&&F(e),t&&F(n)}}}function Qr(t){var e,n,r;let i,o;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[64](t[89],...n)}return i=new Je({props:{cls:ye("tabs__item",Ur,{selected:t[92],actionable:Boolean(t[88].title_click_action)}),actions:!t[88].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[88].title_click_action],attrs:{id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Yr]},$$scope:{ctx:t}}}),{c(){Tt(i.$$.fragment)},l(t){Ot(i.$$.fragment,t)},m(t,e){Jt(i,t,e),o=!0},p(e,n){var r,o,l;t=e;const s={};524352&n[0]&&(s.cls=ye("tabs__item",Ur,{selected:t[92],actionable:Boolean(t[88].title_click_action)})),524296&n[0]&&(s.actions=!t[88].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[88].title_click_action]),524360&n[0]&&(s.attrs={id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"}),524296&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),524288&n[0]|4&n[3]&&(s.$$scope={dirty:n,ctx:t}),i.$set(s)},i(t){o||(Pt(i.$$.fragment,t),o=!0)},o(t){jt(i.$$.fragment,t),o=!1},d(t){Bt(i,t)}}}function ti(t){let e,n,r;return{c(){e=I("div"),this.h()},l(t){e=H(t,"DIV",{class:!0,style:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=Ur.tabs__separator),B(e,"style",r=Yt(t[36]))},m(t,n){S(t,e,n)},p(t,n){32&n[1]&&r!==(r=Yt(t[36]))&&B(e,"style",r)},d(t){t&&F(e)}}}function ei(t){let e,n;return e=new oa({props:{div:t[18][t[89]].div,templateContext:t[1],layoutParams:t[5]}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};786432&n[0]&&(r.div=t[18][t[89]].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function ni(t){let e,n,r,i,o,a,l=t[30][t[89]]&&ei(t);return{c(){e=I("div"),l&&l.c(),n=T(),this.h()},l(t){e=H(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=U(e);l&&l.l(r),n=K(r),r.forEach(F),this.h()},h(){B(e,"class",r=ye("tabs__panel",Ur,{visible:t[31][t[89]]})),B(e,"role","tabpanel"),B(e,"id",i=t[44]+"-panel-"+t[89]),B(e,"aria-labelledby",o=t[44]+"-tab-"+t[89]),Z(e,"left",100*t[89]+"%")},m(t,r){S(t,e,r),l&&l.m(e,null),j(e,n),a=!0},p(t,s){t[30][t[89]]?l?(l.p(t,s),1074266112&s[0]&&Pt(l,1)):(l=ei(t),l.c(),Pt(l,1),l.m(e,n)):l&&(Vt(),jt(l,1,1,(()=>{l=null})),Dt()),(!a||524288&s[0]|1&s[1]&&r!==(r=ye("tabs__panel",Ur,{visible:t[31][t[89]]})))&&B(e,"class",r),(!a||524288&s[0]&&i!==(i=t[44]+"-panel-"+t[89]))&&B(e,"id",i),(!a||524288&s[0]&&o!==(o=t[44]+"-tab-"+t[89]))&&B(e,"aria-labelledby",o),(!a||524288&s[0])&&Z(e,"left",100*t[89]+"%")},i(t){a||(Pt(l),a=!0)},o(t){jt(l),a=!1},d(t){t&&F(e),l&&l.d()}}}function ri(t){let e,n,r,i,o,a,c,u,d,h,p,f=t[19],g=[];for(let e=0;e<f.length;e+=1)g[e]=Qr(Xr(t,f,e));const m=t=>jt(g[t],1,1,(()=>{g[t]=null}));let v=t[20]&&ti(t),y=t[19],$=[];for(let e=0;e<y.length;e+=1)$[e]=ni(Kr(t,y,e));const _=t=>jt($[t],1,1,(()=>{$[t]=null}));return{c(){e=I("div");for(let t=0;t<g.length;t+=1)g[t].c();r=T(),v&&v.c(),i=T(),o=I("div"),a=I("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=H(t,"DIV",{class:!0,role:!0});var n=U(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(F),r=K(t),v&&v.l(t),i=K(t),o=H(t,"DIV",{class:!0});var l=U(o);a=H(l,"DIV",{class:!0});var s=U(a);for(let t=0;t<$.length;t+=1)$[t].l(s);s.forEach(F),l.forEach(F),this.h()},h(){B(e,"class",n=Ur.tabs__list+" "+(t[43]?qt["root_restrict-scroll"]:"")),B(e,"role","tablist"),Z(e,"--divkit-tabs-title-padding",t[17]?_e(t[17]):""),Z(e,"--divkit-tabs-font-size",Qt(t[7])),Z(e,"--divkit-tabs-paddings",t[8]),Z(e,"--divkit-tabs-line-height",t[24]),Z(e,"--divkit-tabs-letter-spacing",t[25]),Z(e,"--divkit-tabs-active-font-weight",t[10]||""),Z(e,"--divkit-tabs-inactive-font-weight",t[11]||""),Z(e,"--divkit-tabs-active-font-family",t[26]||""),Z(e,"--divkit-tabs-inactive-font-family",t[27]||""),Z(e,"--divkit-tabs-active-text-color",t[12]),Z(e,"--divkit-tabs-inactive-text-color",t[13]),Z(e,"--divkit-tabs-active-background-color",t[14]),Z(e,"--divkit-tabs-inactive-background-color",t[15]),Z(e,"--divkit-tabs-border-radius",t[9]),Z(e,"--divkit-tabs-items-spacing",t[16]?te(t[16]):""),B(a,"class",c=ye("tabs__swiper",Ur,{inited:t[28],animated:t[29]})),B(o,"class",u=Ur.tabs__panels+" "+(t[43]?qt["root_restrict-scroll"]:""))},m(n,l){S(n,e,l);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[65](e),S(n,r,l),v&&v.m(n,l),S(n,i,l),S(n,o,l),j(o,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[66](a),t[67](o),d=!0,h||(p=[J(e,"keydown",t[48]),J(a,"touchstart",(function(){s(t[34]?t[49]:void 0)&&(t[34]?t[49]:void 0).apply(this,arguments)})),J(a,"touchmove",(function(){s(t[34]?t[50]:void 0)&&(t[34]?t[50]:void 0).apply(this,arguments)})),J(a,"touchend",(function(){s(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)})),J(a,"touchcancel",(function(){s(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)}))],h=!0)},p(r,l){if(t=r,524360&l[0]|73728&l[1]){let n;for(f=t[19],n=0;n<f.length;n+=1){const r=Xr(t,f,n);g[n]?(g[n].p(r,l),Pt(g[n],1)):(g[n]=Qr(r),g[n].c(),Pt(g[n],1),g[n].m(e,null))}for(Vt(),n=f.length;n<g.length;n+=1)m(n);Dt()}if((!d||4096&l[1]&&n!==(n=Ur.tabs__list+" "+(t[43]?qt["root_restrict-scroll"]:"")))&&B(e,"class",n),131072&l[0]&&Z(e,"--divkit-tabs-title-padding",t[17]?_e(t[17]):""),128&l[0]&&Z(e,"--divkit-tabs-font-size",Qt(t[7])),256&l[0]&&Z(e,"--divkit-tabs-paddings",t[8]),16777216&l[0]&&Z(e,"--divkit-tabs-line-height",t[24]),33554432&l[0]&&Z(e,"--divkit-tabs-letter-spacing",t[25]),1024&l[0]&&Z(e,"--divkit-tabs-active-font-weight",t[10]||""),2048&l[0]&&Z(e,"--divkit-tabs-inactive-font-weight",t[11]||""),67108864&l[0]&&Z(e,"--divkit-tabs-active-font-family",t[26]||""),134217728&l[0]&&Z(e,"--divkit-tabs-inactive-font-family",t[27]||""),4096&l[0]&&Z(e,"--divkit-tabs-active-text-color",t[12]),8192&l[0]&&Z(e,"--divkit-tabs-inactive-text-color",t[13]),16384&l[0]&&Z(e,"--divkit-tabs-active-background-color",t[14]),32768&l[0]&&Z(e,"--divkit-tabs-inactive-background-color",t[15]),512&l[0]&&Z(e,"--divkit-tabs-border-radius",t[9]),65536&l[0]&&Z(e,"--divkit-tabs-items-spacing",t[16]?te(t[16]):""),t[20]?v?v.p(t,l):(v=ti(t),v.c(),v.m(i.parentNode,i)):v&&(v.d(1),v=null),1074528290&l[0]|8193&l[1]){let e;for(y=t[19],e=0;e<y.length;e+=1){const n=Kr(t,y,e);$[e]?($[e].p(n,l),Pt($[e],1)):($[e]=ni(n),$[e].c(),Pt($[e],1),$[e].m(a,null))}for(Vt(),e=y.length;e<$.length;e+=1)_(e);Dt()}(!d||805306368&l[0]&&c!==(c=ye("tabs__swiper",Ur,{inited:t[28],animated:t[29]})))&&B(a,"class",c),(!d||4096&l[1]&&u!==(u=Ur.tabs__panels+" "+(t[43]?qt["root_restrict-scroll"]:"")))&&B(o,"class",u)},i(t){if(!d){for(let t=0;t<f.length;t+=1)Pt(g[t]);for(let t=0;t<y.length;t+=1)Pt($[t]);d=!0}},o(t){g=g.filter(Gr);for(let t=0;t<g.length;t+=1)jt(g[t]);$=$.filter(Gr);for(let t=0;t<$.length;t+=1)jt($[t]);d=!1},d(n){n&&F(e),N(g,n),t[65](null),n&&F(r),v&&v.d(n),n&&F(i),n&&F(o),N($,n),t[66](null),t[67](null),h=!1,l(p)}}}function ii(t){let e,n,r=!t[4]&&Zr(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[4]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),16&n[0]&&Pt(r,1)):(r=Zr(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function oi(t,e,r){let i,o,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D=n,P=n,j=n,S=n,F=n,N=n,I=n,M=n,z=n;var T,O;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z()));let{json:J={}}=e,{templateContext:B}=e,{origJson:R}=e,{layoutParams:U}=e;const W=ct(Gt),L=W.genId("tabs");let H=!1,q=Lt([]);f(t,q,(t=>r(19,$=t)));let G,K,X,Z={};const Y=W.getJsonWithVars(J.selected_tab);let Q,tt,et=Y&&Number(Y)||0,nt=12,rt="",it="",ot="",at="",st="",ut="",dt="",pt="",ft="",gt="",mt=0,vt="",$t="",_t=null,bt=!1,wt=!1,xt=et,kt=[],Et=[];async function Ct(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(xt=et,r(6,et=t),Ft(),r(29,wt=!0),Dt(100*-et),Pt(),async function(){await yt();const t=document.getElementById("".concat(L,"-panel-").concat(et));t&&r(22,K.style.height=Qt(t.offsetHeight),K)}(),St(),Mt=-et*K.clientWidth,e){await yt();const t=G.querySelector(".".concat(Ur.tabs__item_selected));t&&t.focus()}}function At(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==$?void 0:$.length;if(!n)return;const r=$.map((t=>t.index));let i=r.indexOf(et)+t;i>=n?i=0:i<0&&(i=n-1),Ct(r[i],e)}function Vt(t,e){return et===e||(Ct(e),!1)}async function Dt(t){await yt(),r(23,X.style.transform="translate3d(".concat(t,"%,0,0)"),X)}function Pt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,et-1):Math.min(et,xt),n=t?Math.min(i.length-1,et+1):Math.max(et,xt);r(30,kt=kt.map(((t,r)=>t||r>=e&&r<=n))),r(31,Et=Et.map(((t,r)=>r>=e&&r<=n)))}let jt=null;function St(){jt&&clearTimeout(jt),jt=window.setTimeout((()=>{r(31,Et=i.map(((t,e)=>e===et)))}),400)}function Ft(){bt||(r(28,bt=!0),r(22,K.style.height=Qt(K.clientHeight),K),r(23,X.style.transform="translate3d(".concat(100*-xt,"%,0,0)"),X))}let Nt,It,Mt,zt=null,Tt=null,Ot=!1,Jt=!1;return!J.id||H||(null==U?void 0:U.fakeElement)||W.registerInstance(J.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Ct(t)},setPreviousItem(t){let e=et-1;e<0&&(e="ring"===t?i.length-1:et),Ct(e)},setNextItem(t){let e=et+1;e>i.length-1&&(e="ring"===t?0:et),Ct(e)}}),lt((()=>{J.id&&!(null==U?void 0:U.fakeElement)&&W.unregisterInstance(J.id)})),t.$$set=t=>{"json"in t&&r(0,J=t.json),"templateContext"in t&&r(1,B=t.templateContext),"origJson"in t&&r(2,R=t.origJson),"layoutParams"in t&&r(3,U=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(18,i=J.items||[]),262144&t.$$.dirty[0])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=W.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):W.logError(Kt(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),q.set(t)}else q.set([]);if(524288&t.$$.dirty[0]&&((null==$?void 0:$.length)?r(4,H=!1):(r(4,H=!0),W.logError(Kt(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(r(42,o=W.getDerivedFromVars(J.width)),M(),M=p(o,(t=>r(63,A=t)))),1&t.$$.dirty[0]&&(r(41,a=W.getDerivedFromVars(J.height)),I(),I=p(a,(t=>r(62,C=t)))),40&t.$$.dirty[0]|3&t.$$.dirty[2]){let t={};(null==U?void 0:U.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==A?void 0:A.type)&&(t.parentHorizontalWrapContent=!0),C&&"wrap_content"!==C.type||(t.parentVerticalWrapContent=!0),r(5,Z=Ae(t,Z))}if(262225&t.$$.dirty[0]&&!H&&(et<0||et>=i.length)&&(W.logError(Kt(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:J.selected_tab,length:i.length}})),r(6,et=et<0?0:i.length-1)),524369&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&(H||$.some((t=>et===t.index))||(W.logError(Kt(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:J.selected_tab}})),r(6,et=(null===r(52,T=$[0])||void 0===T?void 0:T.index)||0))),1&t.$$.dirty[0]&&(r(40,l=W.getDerivedFromVars(J.tab_title_style)),N(),N=p(l,(t=>r(61,E=t)))),1073741824&t.$$.dirty[1]&&r(56,s=E||{}),128&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(7,nt=ln(s.font_size,nt)),384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(s.font_size||s.paddings)){const t=s.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/nt*10,right:(Number(t.right)||0)/nt*10,bottom:(Number(t.bottom)||0)/nt*10,left:(Number(t.left)||0)/nt*10};r(8,rt=xe(e,rt))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=s.line_height;void 0!==t&&Re(t)&&r(24,it=Qt(t/nt*10))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=s.letter_spacing;void 0!==t&&we(t)&&r(25,ot=Qt(t/nt*10))}if(640&t.$$.dirty[0]|37748736&t.$$.dirty[1]&&(s.corner_radius||s.corners_radius||s.font_size)){const t=null!==r(53,O=s.corner_radius)&&void 0!==O?O:1e3;s.corners_radius?r(9,at=function(t,e,n,r){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<i.length;++t)if(i[t]&&!we(i[t]))return r;return Se(t,e,n)}(s.corners_radius,t,nt,at)):we(t)&&r(9,at=Qt(t/nt*10))}1024&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(r(10,Q=cn(s.active_font_weight||s.font_weight,Q)),s.font_family&&"string"==typeof s.font_family?r(26,st=W.typefaceProvider(s.font_family,{fontWeight:Q||400})):r(26,st="")),2048&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(r(11,tt=cn(s.inactive_font_weight||s.font_weight,tt)),s.font_family&&"string"==typeof s.font_family?r(27,ut=W.typefaceProvider(s.font_family,{fontWeight:tt||400})):r(27,ut="")),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,dt=ne(s.active_text_color,1,dt)),8192&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(13,pt=ne(s.inactive_text_color,1,pt)),16384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(14,ft=ne(s.active_background_color,1,ft)),32768&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(15,gt=ne(s.inactive_background_color,1,gt)),65536&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(16,mt=ke(s.item_spacing,mt)),1&t.$$.dirty[0]&&(r(39,c=W.getDerivedFromVars(J.has_separator)),F(),F=p(c,(t=>r(20,k=t)))),1&t.$$.dirty[0]&&(r(38,u=W.getDerivedFromVars(J.separator_color)),S(),S=p(u,(t=>r(60,x=t)))),1&t.$$.dirty[0]&&(r(37,d=W.getDerivedFromVars(J.separator_paddings)),j(),j=p(d,(t=>r(59,w=t)))),1048576&t.$$.dirty[0]|830472192&t.$$.dirty[1]&&k&&(x&&r(54,vt=ne(x,1,vt)),w&&r(55,$t=xe(w,$t))),25165824&t.$$.dirty[1]&&r(36,h={background:vt,margin:$t}),1&t.$$.dirty[0]&&(r(35,g=W.getDerivedFromVars(J.switch_tabs_by_content_swipe_enabled)),P(),P=p(g,(t=>r(58,b=t)))),134217728&t.$$.dirty[1]&&r(34,m=void 0===b||Boolean(b)),1&t.$$.dirty[0]&&(r(33,v=W.getDerivedFromVars(J.restrict_parent_scroll)),z(),z=p(v,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(32,y=W.getDerivedFromVars(J.title_paddings)),D(),D=p(y,(t=>r(57,_=t)))),131072&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(17,_t=je(_||void 0,_t)),262144&t.$$.dirty[0]&&(H||(r(30,kt=i.map(((t,e)=>e===et))),r(31,Et=i.map(((t,e)=>e===et)))))},[J,B,R,U,H,Z,et,nt,rt,at,Q,tt,dt,pt,ft,gt,mt,_t,i,$,k,G,K,X,it,ot,st,ut,bt,wt,kt,Et,y,v,m,g,h,d,u,c,l,a,o,V,L,q,{},Vt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(t.which===Wr)At(-1,!0);else if(t.which===Lr)At(1,!0);else if(t.which===Hr)Ct(0,!0);else{if(t.which!==qr)return;Ct(i.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,o=null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,".".concat(qt["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==K||(Ot=!1,Jt=!1,zt=Ie(t),Tt=null,Nt=Date.now(),It=Mt||-et*K.clientWidth,r(29,wt=!1),jt&&clearTimeout(jt))},function(t){const e=Ie(t);if(!zt||Tt&&Tt.x===e.x&&Tt.y===e.y)return;Tt=e;const n=K.clientWidth;if(Ot){Mt=e.x-zt.x+It;const t=n*i.length;if(Mt>0)Mt=Mt*n/(Mt+3*n);else if(-Mt+n>t){let e=-Mt+n-t;e=e*n/(e+3*n),Mt=n-t-e}Dt(100*Mt/n)}else Math.abs(e.y-zt.y)>10?Jt=!0:!Jt&&Math.abs(e.x-zt.x)>8&&(Ft(),Ot=!0,zt=e,Dt(100*-et),Pt(!0));Ot&&t.cancelable&&t.preventDefault()},function(){Jt=!1,zt=null;let t=et;if(!Ot)return;Ot=!1;const e=Math.min(512,K.clientWidth);Math.abs(It-Mt)>e/4*Math.min(1,(Date.now()-Nt)/750)&&(t+=It>Mt?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===et?(Mt=-t*e,Dt(100*-t),St()):Ct(t)},T,O,vt,$t,s,_,b,w,x,E,C,A,(t,e)=>Vt(0,t),function(t){ht[t?"unshift":"push"]((()=>{G=t,r(21,G)}))},function(t){ht[t?"unshift":"push"]((()=>{X=t,r(23,X)}))},function(t){ht[t?"unshift":"push"]((()=>{K=t,r(22,K)}))}]}const ai={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function li(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function si(t){return t*t*t}function ci(t){const e=t-1;return e*e*e+1}function ui(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 di=ui([.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]),hi=ui([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]),pi={linear:r,ease:di,ease_in:si,ease_out:ci,ease_in_out:li,spring:hi},fi=200,gi=0,mi=0,vi=0;function yi(t){return Math.max(...t.map((t=>(Number(t.duration)||fi)+(Number(t.start_delay)||gi))))}function $i(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:l}=e;const s=null!=l?l:1;return{duration:a,css:t=>{const e=t*a,l=n.map((t=>{const n=Number(t.start_delay)||gi,a=Number(t.duration)||fi,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-l:l,u=(pi[t.interpolator||"ease_in_out"]||li)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||mi)};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||vi),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=l.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=l.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=l.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=l.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 _i(t,e,n){return t*(1-n)+e*n}const bi={linear:r,ease:di,ease_in:si,ease_out:ci,ease_in_out:li,spring:hi},wi=200,xi=0;function ki(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:xi,duration:null!==(r=l.duration)&&void 0!==r?r:wi,easing:l.interpolator&&l.interpolator in bi?bi[l.interpolator]:li,css:t=>["top:".concat(_i(o.top,a.top,t)-i.top,"px"),"left:".concat(_i(o.left,a.left,t)-i.left,"px"),"width:".concat(_i(o.width,a.width,t),"px"),"height:".concat(_i(o.height,a.height,t),"px")].join(";")}}function Ei(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Ei(t))})):e.push(t),e}const{Map:Ci}=Nt;function Ai(t,e,n){const r=t.slice();return r[27]=e[n],r}function Vi(t){let e,n;return e=new on({props:{cls:ai.state,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ni]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(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]),1073742034&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Di(t){let e,r,i=t[7],o=Pi(t);return{c(){o.c(),e=O()},l(t){o.l(t),e=O()},m(t,n){o.m(t,n),S(t,e,n),r=!0},p(t,r){128&r&&d(i,i=t[7])?(Vt(),jt(o,1,1,n),Dt(),o=Pi(t),o.c(),Pt(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Pt(o),r=!0)},o(t){jt(o),r=!1},d(t){t&&F(e),o.d(t)}}}function Pi(t){let e,n;return e=new oa({props:{div:t[7].div,templateContext:t[1]}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};128&n&&(r.div=t[7].div),2&n&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function ji(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[11](t[27])}return r=new oa({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=I("div"),n=I("div"),Tt(r.$$.fragment),o=T(),this.h()},l(t){e=H(t,"DIV",{class:!0});var i=U(e);n=H(i,"DIV",{class:!0});var a=U(n);Ot(r.$$.fragment,a),a.forEach(F),o=K(i),i.forEach(F),this.h()},h(){B(n,"class",i=ai["state__animation-child-inner"]),B(e,"class",a=ai["state__animation-child"])},m(t,i){S(t,e,i),j(e,n),Jt(r,n,null),j(e,o),s=!0,c||(u=J(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n&&(i.div=t[27].json),64&n&&(i.templateContext=t[27].templateContext),r.$set(i)},i(n){s||(Pt(r.$$.fragment,n),l||$t((()=>{l=Ft(e,ki,t[27]),l.start()})),s=!0)},o(t){jt(r.$$.fragment,t),s=!1},d(t){t&&F(e),Bt(r),c=!1,u()}}}function Si(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[10](t[27])}return r=new oa({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=I("div"),n=I("div"),Tt(r.$$.fragment),o=T(),this.h()},l(t){e=H(t,"DIV",{class:!0,style:!0});var i=U(e);n=H(i,"DIV",{class:!0});var a=U(n);Ot(r.$$.fragment,a),a.forEach(F),o=K(i),i.forEach(F),this.h()},h(){B(n,"class",i=ai["state__animation-child-inner"]),B(e,"class",a=ai["state__animation-child"]),Z(e,"left",t[27].offsetLeft+"px"),Z(e,"top",t[27].offsetTop+"px"),Z(e,"width",t[27].width+"px"),Z(e,"height",t[27].height+"px")},m(t,i){S(t,e,i),j(e,n),Jt(r,n,null),j(e,o),s=!0,c||(u=J(e,"introend",d),c=!0)},p(n,i){t=n;const o={};64&i&&(o.div=t[27].json),64&i&&(o.templateContext=t[27].templateContext),r.$set(o),(!s||64&i)&&Z(e,"left",t[27].offsetLeft+"px"),(!s||64&i)&&Z(e,"top",t[27].offsetTop+"px"),(!s||64&i)&&Z(e,"width",t[27].width+"px"),(!s||64&i)&&Z(e,"height",t[27].height+"px")},i(n){s||(Pt(r.$$.fragment,n),l||$t((()=>{l=Ft(e,$i,t[27]),l.start()})),s=!0)},o(t){jt(r.$$.fragment,t),s=!1},d(t){t&&F(e),Bt(r),c=!1,u()}}}function Fi(t,e){let n,r,i,o,a;const l=[Si,ji],s=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),i=s[r]=l[r](e),{key:t,first:null,c(){n=O(),i.c(),o=O(),this.h()},l(t){n=O(),i.l(t),o=O(),this.h()},h(){this.first=n},m(t,e){S(t,n,e),s[r].m(t,e),S(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Vt(),jt(s[a],1,1,(()=>{s[a]=null})),Dt(),i=s[r],i?i.p(e,n):(i=s[r]=l[r](e),i.c()),Pt(i,1),i.m(o.parentNode,o))},i(t){a||(Pt(i),a=!0)},o(t){jt(i),a=!1},d(t){t&&F(n),s[r].d(t),t&&F(o)}}}function Ni(t){var e;let n,r,i,o,a=[],s=new Ci,c=(null===(e=t[7])||void 0===e?void 0:e.div)&&Di(t),u=t[6];const d=t=>t[27];for(let e=0;e<u.length;e+=1){let n=Ai(t,u,e),r=d(n);s.set(r,a[e]=Fi(r,n))}return{c(){c&&c.c(),n=T(),r=I("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){c&&c.l(t),n=K(t),r=H(t,"DIV",{class:!0,"aria-hidden":!0});var e=U(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(F),this.h()},h(){B(r,"class",i=ai.state__animations),B(r,"aria-hidden","true")},m(e,i){c&&c.m(e,i),S(e,n,i),S(e,r,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(r,null);t[12](r),o=!0},p(t,e){var i;null!==(i=t[7])&&void 0!==i&&i.div?c?(c.p(t,e),128&e&&Pt(c,1)):(c=Di(t),c.c(),Pt(c,1),c.m(n.parentNode,n)):c&&(Vt(),jt(c,1,1,(()=>{c=null})),Dt()),320&e&&(u=t[6],Vt(),a=function(t,e,n,r,i,o,a,s,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,_=[];for(g=f;g--;){const t=h(i,o,g),r=n(t);let l=a.get(r);l?_.push((()=>l.p(t,e))):(l=u(r,t),l.c()),y.set(r,v[g]=l),r in m&&$.set(r,Math.abs(g-m[r]))}const b=new Set,w=new Set;function x(t){Pt(t,1),t.m(s,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)||b.has(r)?x(e):w.has(i)?p--:$.get(r)>$.get(i)?(w.add(r),x(e)):(b.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 l(_),v}(a,e,d,0,t,u,s,r,It,Fi,null,Ai),Dt())},i(t){if(!o){Pt(c);for(let t=0;t<u.length;t+=1)Pt(a[t]);o=!0}},o(t){jt(c);for(let t=0;t<a.length;t+=1)jt(a[t]);o=!1},d(e){c&&c.d(e),e&&F(n),e&&F(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function Ii(t){let e,n,r=!t[5]&&Vi(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,i),32&i&&Pt(r,1)):(r=Vi(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Mi(t){return"change_bounds"===t.type?t:"set"===t.type?Mi(t.items[0]):null}function zi(t,e,n){let r,{json:i={}}=e,{templateContext:o}=e,{origJson:a}=e,{layoutParams:l}=e;const s=ct(Gt),c=ct($e);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=s.getJsonWithVars(r),o=s.getJsonWithVars(o);const l=Ei(o),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:c,rootBbox:t,transitions:l,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=i.div_id||i.id;let b;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let i=[];if(u){const t=u.getBoundingClientRect();i=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const o=r.find((e=>e.state_id===t))||null;if(o?(b=t,n(7,w=o)):s.logError(Kt(new Error("Cannot find state with id"),{additional:{stateId:t}})),await yt(),!u)return;const a=u.getBoundingClientRect();let l=m.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>$(a,t,"in")));i=i.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=i.concat(l),p=c.reduce(((t,e)=>Math.max(t,yi(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:Mi(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(Kt(new Error("Missing state block with id"),{additional:{id:t}}))}}),st($e,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(Kt(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),l=yi(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return y.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,s.logError(Kt(new Error('Missing "id" prop for div "state"'))));let w=null;const x=s.getJsonWithVars(i.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return lt((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,i=t.json),"templateContext"in t&&n(1,o=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&i&&(h=new Set),1&t.$$.dirty&&n(9,r=i.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),s.logError(Kt(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||s.logError(Kt(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[i,o,a,l,u,p,g,w,E,r,t=>E(t),t=>E(t),function(t){ht[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const Ti={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:Oi}=Nt;function Ji(t,e,n){const r=t.slice();return r[48]=e[n],r}function Bi(t){let e,n;return e=new on({props:{cls:ye("pager",Ti,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[Ui]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=ye("pager",Ti,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),33336&n[0]|1048576&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Ri(t){var e;let n,r,i,o,a;return r=new oa({props:{div:t[48].json,templateContext:t[48].templateContext,origJson:t[48].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=I("div"),Tt(r.$$.fragment),i=T(),this.h()},l(t){n=H(t,"DIV",{class:!0});var e=U(n);Ot(r.$$.fragment,e),i=K(e),e.forEach(F),this.h()},h(){B(n,"class",o=Ti.pager__item)},m(t,e){S(t,n,e),Jt(r,n,null),j(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[48].json),16&e[0]&&(i.templateContext=t[48].templateContext),16&e[0]&&(i.origJson=t[48].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||(Pt(r.$$.fragment,t),a=!0)},o(t){jt(r.$$.fragment,t),a=!1},d(t){t&&F(n),Bt(r)}}}function Ui(t){let e,n,r,i,o,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=Ri(Ji(t,l,e));const c=t=>jt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=I("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=H(t,"DIV",{class:!0,style:!0});var n=U(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(F),this.h()},h(){B(e,"class",n=Ti.pager__items+" "+(t[15]?qt["root_restrict-scroll"]:"")),B(e,"style",r=Yt(t[9]))},m(n,r){S(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[36](e),i=!0,o||(a=J(e,"scroll",t[16]),o=!0)},p(t,o){if(24&o[0]){let n;for(l=t[4],n=0;n<l.length;n+=1){const r=Ji(t,l,n);s[n]?(s[n].p(r,o),Pt(s[n],1)):(s[n]=Ri(r),s[n].c(),Pt(s[n],1),s[n].m(e,null))}for(Vt(),n=l.length;n<s.length;n+=1)c(n);Dt()}(!i||32768&o[0]&&n!==(n=Ti.pager__items+" "+(t[15]?qt["root_restrict-scroll"]:"")))&&B(e,"class",n),(!i||512&o[0]&&r!==(r=Yt(t[9])))&&B(e,"style",r)},i(t){if(!i){for(let t=0;t<l.length;t+=1)Pt(s[t]);i=!0}},o(t){s=s.filter(Oi);for(let t=0;t<s.length;t+=1)jt(s[t]);i=!1},d(n){n&&F(e),N(s,n),t[36](null),o=!1,a()}}}function Wi(t){let e,n,r=!t[7]&&Bi(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[7]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),128&n[0]&&Pt(r,1)):(r=Bi(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Li(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v,y,$,b,w,x=n,k=n,E=n,C=n,A=n,V=n;var D,P,j,S,F,N,I;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V()));let{json:M={}}=e,{templateContext:z}=e,{origJson:T}=e,{layoutParams:O}=e;const J=ct(Gt),B=J.genId("pager");let R,U=!1,W=!1,L=0,H=0,q=!1,G="horizontal",K="",X="",Z="";const Y=Pr((function(){if(!U)return;const t=function(){const t=Array.from(R.children),e=R.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===G?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:L}();t!==L&&r(25,L=t)}),50);function Q(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===G,i=R.children[t],o=n?"offsetLeft":"offsetTop",a=n?"left":"top";R.scroll({[a]:i[o],behavior:e}),r(25,L=t)}return M.id&&!(null==O?void 0:O.fakeElement)&&J.registerInstance(M.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Q(t)},setPreviousItem(t){let e=L-1;e<0&&(e="ring"===t?i.length-1:L),Q(e)},setNextItem(t){let e=L+1;e>i.length-1&&(e="ring"===t?0:L),Q(e)}}),at((()=>{if(U=!0,Boolean(document.getElementById("".concat(B,"-tab-0")))){const t=[...R.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(B,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(B,"-tab-").concat(e))}})),lt((()=>{U=!1,M.id&&!(null==O?void 0:O.fakeElement)&&J.unregisterInstance(M.id)})),t.$$set=t=>{"json"in t&&r(0,M=t.json),"templateContext"in t&&r(1,z=t.templateContext),"origJson"in t&&r(2,T=t.origJson),"layoutParams"in t&&r(3,O=t.layoutParams)},t.$$.update=()=>{if(131073&t.$$.dirty[0]&&((null===r(17,D=M.items)||void 0===D?void 0:D.length)&&Array.isArray(M.items)?r(24,W=!1):(r(24,W=!0),J.logError(Kt(new Error('Incorrect or empty "items" prop for div "pager"'))))),16777219&t.$$.dirty[0]&&r(4,i=(!W&&M.items||[]).map((t=>{let e=t,n=z;return({templateContext:n,json:e}=J.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(14,o=J.getDerivedFromVars(M.layout_mode)),k(),k=p(o,(t=>r(32,v=t)))),2&t.$$.dirty[1]&&(v?"percentage"!==v.type&&"fixed"!==v.type?(r(26,q=!0),J.logError(Kt(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(26,q=!1):(r(26,q=!0),J.logError(Kt(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(r(13,a=J.getDerivedFromVars(M.orientation)),A(),A=p(a,(t=>r(35,b=t)))),134217728&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(27,G=er(b,G)),1&t.$$.dirty[0]&&(r(12,l=J.getDerivedFromVars(M.item_spacing)),C(),C=p(l,(t=>r(34,$=t)))),8&t.$$.dirty[1]){const t=null==$?void 0:$.value;t&&we(t)&&r(28,K=Qt(t||0))}if(1&t.$$.dirty[0]&&(r(11,s=J.getDerivedFromVars(M.paddings)),E(),E=p(s,(t=>r(33,y=t)))),536870912&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(29,X=xe(y,X)),1&t.$$.dirty[0]&&(r(10,c=J.getDerivedFromVars(M.restrict_parent_scroll)),V(),V=p(c,(t=>r(15,w=t)))),134217728&t.$$.dirty[0]&&r(31,u="horizontal"===G?"grid-auto-columns":"grid-auto-rows"),419168257&t.$$.dirty[0]|2&t.$$.dirty[1])if("fixed"===(null==v?void 0:v.type)){const t=te("horizontal"===G?((null===r(18,P=M.paddings)||void 0===P?void 0:P.left)||0)+((null===r(19,j=M.paddings)||void 0===j?void 0:j.right)||0):((null===r(20,S=M.paddings)||void 0===S?void 0:S.top)||0)+((null===r(21,F=M.paddings)||void 0===F?void 0:F.bottom)||0)),e=null===r(22,N=v.neighbour_page_width)||void 0===N?void 0:N.value;r(30,Z=e?"calc(100% + ".concat(t," - 2 * ").concat(te(e)," - 2 * ").concat(K,")"):"100%")}else if("percentage"===(null==v?void 0:v.type)){const t=null===r(23,I=v.page_width)||void 0===I?void 0:I.value;r(30,Z="".concat(Number(t),"%"))}1879048192&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(9,d={"grid-gap":K,padding:X,[u]:Z}),134217728&t.$$.dirty[0]&&r(8,h={orientation:G}),83886080&t.$$.dirty[0]&&r(7,f=W||q),33554448&t.$$.dirty[0]&&function(t,e){const n=M.id;if(n){const r=new Map(m);_(g,m=r.set(n,{instId:B,size:t,currentItem:e,scrollToPagerItem:Q}),m)}}(i.length,L),33554432&t.$$.dirty[0]&&function(t){var e;if(t===H)return;H=t;const n=J.getJsonWithVars(null===(e=i[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&J.execAnyActions(n)}(L)},r(6,g=J.getStore("pagers")),x(),x=p(g,(t=>r(39,m=t))),[M,z,T,O,i,R,g,f,h,d,c,s,l,a,o,w,Y,D,P,j,S,F,N,I,W,L,q,G,K,X,Z,u,v,y,$,b,function(t){ht[t?"unshift":"push"]((()=>{R=t,r(5,R)}))}]}const Hi={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 qi(t,e,n){const r=t.slice();r[43]=e[n],r[46]=n;const i=r[46]===r[12].currentItem;return r[44]=i,r}function Gi(t){let e,n=Array(t[12].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=Ki(qi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=O()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=O()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);S(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Array(t[12].size),o=0;o<n.length;o+=1){const a=qi(t,n,o);r[o]?r[o].p(a,i):(r[o]=Ki(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){N(r,t),t&&F(e)}}}function Ki(t){let e,n,r,i,o,a,s,c;function u(){return t[36](t[46])}return{c(){e=I("div"),this.h()},l(t){e=H(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=ye("indicator__item",Hi,{active:t[44]})+" "+qt.root__clickable),B(e,"role","tab"),B(e,"id",r=t[12].instId+"-tab-"+t[46]),B(e,"aria-controls",i=t[12].instId+"-panel-"+t[46]),B(e,"aria-selected",o=t[44]?"true":"false"),B(e,"tabindex",a=t[44]?0:-1)},m(n,r){S(n,e,r),s||(c=[J(e,"click",u),J(e,"keydown",t[24])],s=!0)},p(l,s){t=l,4096&s[0]&&n!==(n=ye("indicator__item",Hi,{active:t[44]})+" "+qt.root__clickable)&&B(e,"class",n),4096&s[0]&&r!==(r=t[12].instId+"-tab-"+t[46])&&B(e,"id",r),4096&s[0]&&i!==(i=t[12].instId+"-panel-"+t[46])&&B(e,"aria-controls",i),4096&s[0]&&o!==(o=t[44]?"true":"false")&&B(e,"aria-selected",o),4096&s[0]&&a!==(a=t[44]?0:-1)&&B(e,"tabindex",a)},d(t){t&&F(e),s=!1,l(c)}}}function Xi(t){let e,n,r,i,o=t[12]&&Gi(t);return{c(){e=I("div"),n=I("div"),o&&o.c(),this.h()},l(t){e=H(t,"DIV",{class:!0});var r=U(e);n=H(r,"DIV",{class:!0,role:!0});var i=U(n);o&&o.l(i),i.forEach(F),r.forEach(F),this.h()},h(){B(n,"class",r=Hi.indicator__items),B(n,"role","tablist"),Z(n,"margin","default"===t[6]?"0 ".concat(Qt(Math.max(0,t[4].width-t[5].width)/2)):""),Z(n,"--divkit-indicator-inactive-width",Qt(t[5].width)),Z(n,"--divkit-indicator-inactive-height",Qt(t[5].height)),Z(n,"--divkit-indicator-inactive-border-radius",Qt(t[5].borderRadius)),Z(n,"--divkit-indicator-inactive-background",t[5].background||""),Z(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),Z(n,"--divkit-indicator-active-width",Qt(t[4].width)),Z(n,"--divkit-indicator-active-height",Qt(t[4].height)),Z(n,"--divkit-indicator-active-border-radius",Qt(t[4].borderRadius)),Z(n,"--divkit-indicator-active-background",t[4].background||""),Z(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),Z(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),Z(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Qt((t[7]-t[5].width)/2)):""),Z(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Qt(t[9]):""),Z(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),Z(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Qt((t[8]-1)*t[9]):""),B(e,"class",i=Hi.indicator__scroller)},m(r,i){S(r,e,i),j(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=Gi(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&Z(n,"margin","default"===t[6]?"0 ".concat(Qt(Math.max(0,t[4].width-t[5].width)/2)):""),32&e[0]&&Z(n,"--divkit-indicator-inactive-width",Qt(t[5].width)),32&e[0]&&Z(n,"--divkit-indicator-inactive-height",Qt(t[5].height)),32&e[0]&&Z(n,"--divkit-indicator-inactive-border-radius",Qt(t[5].borderRadius)),32&e[0]&&Z(n,"--divkit-indicator-inactive-background",t[5].background||""),32&e[0]&&Z(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),16&e[0]&&Z(n,"--divkit-indicator-active-width",Qt(t[4].width)),16&e[0]&&Z(n,"--divkit-indicator-active-height",Qt(t[4].height)),16&e[0]&&Z(n,"--divkit-indicator-active-border-radius",Qt(t[4].borderRadius)),16&e[0]&&Z(n,"--divkit-indicator-active-background",t[4].background||""),16&e[0]&&Z(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),48&e[0]&&Z(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),224&e[0]&&Z(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Qt((t[7]-t[5].width)/2)):""),576&e[0]&&Z(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Qt(t[9]):""),320&e[0]&&Z(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),832&e[0]&&Z(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Qt((t[8]-1)*t[9]):"")},d(n){n&&F(e),o&&o.d(),t[37](null),t[38](null)}}}function Zi(t){let e,n;return e=new on({props:{cls:ye("indicator",Hi,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Xi]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=ye("indicator",Hi,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Yi(t,e,r){let i,o,a,l,s,c,u,d,h,f,g,m,v,y,$,_,b,w,x,k=n,E=n,C=n,A=n,V=n,D=n,P=n,j=n,S=n;var F,N;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S()));let{json:I={}}=e,{templateContext:M}=e,{origJson:z}=e,{layoutParams:T}=e;const O=["rounded_rectangle","circle"],J=ct(Gt);let B,R,U,W={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},L={width:10,height:10,borderRadius:5,background:"#33919cb5"},H="default",q=15,G=10,K=5;function X(t){t!==U.currentItem&&U.scrollToPagerItem(t)}async function Z(t){U.scrollToPagerItem(t),await yt();const e=R.querySelector(".".concat(Hi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&r(0,I=t.json),"templateContext"in t&&r(1,M=t.templateContext),"origJson"in t&&r(2,z=t.origJson),"layoutParams"in t&&r(3,T=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(22,i=J.getDerivedFromVars(I.shape)),D(),D=p(i,(t=>r(32,_=t)))),1&t.$$.dirty[0]&&(r(21,o=J.getDerivedFromVars(I.active_item_color)),A(),A=p(o,(t=>r(30,y=t)))),1&t.$$.dirty[0]&&(r(20,a=J.getDerivedFromVars(I.inactive_item_color)),V(),V=p(a,(t=>r(31,$=t)))),1&t.$$.dirty[0]&&(r(19,l=J.getDerivedFromVars(I.active_item_size)),P(),P=p(l,(t=>r(33,b=t)))),1&t.$$.dirty[0]&&(r(18,s=J.getDerivedFromVars(I.active_shape)),S(),S=p(s,(t=>r(35,x=t)))),1&t.$$.dirty[0]&&(r(17,c=J.getDerivedFromVars(I.inactive_shape)),j(),j=p(c,(t=>r(34,w=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(x&&r(4,W=In({type:"shape_drawable",shape:x},O,W)),w&&r(5,L=In({type:"shape_drawable",shape:w},O,L)),!x&&!w&&_)){const t=ln(b,1.3);r(5,L=In({type:"shape_drawable",shape:_,color:L.background},O,L)),r(5,L.background=ne($,1,L.background),L),r(4,W=Object.assign(Object.assign({},L),{width:L.width*t,height:L.height*t,borderRadius:L.borderRadius*t,background:W.background})),r(4,W.background=ne(y,1,W.background),W)}if(1&t.$$.dirty[0]&&(r(16,u=J.getDerivedFromVars(I.space_between_centers)),E(),E=p(u,(t=>r(28,m=t)))),1&t.$$.dirty[0]&&(r(15,d=J.getDerivedFromVars(I.items_placement)),C(),C=p(d,(t=>r(29,v=t)))),905970624&t.$$.dirty[0])if(!v||"default"!==v.type&&"stretch"!==v.type)r(6,H="default"),m&&r(7,q=ke(m.value,q));else if(r(6,H=v.type),"default"===H)r(7,q=ke(null===r(25,F=v.space_between_centers)||void 0===F?void 0:F.value,q));else if("stretch"===H){const t=v;r(8,G=ln(t.max_visible_items,G)),r(9,K=ke(null===r(26,N=t.item_spacing)||void 0===N?void 0:N.value,K))}134217728&t.$$.dirty[0]&&async function(t){if(I.pager_id&&t.has(I.pager_id)&&(r(12,U=t.get(I.pager_id)),await yt(),R)){const t=R.children[U.currentItem].offsetLeft;B.scroll({left:t-B.clientWidth/2,behavior:"smooth"})}}(g),64&t.$$.dirty[0]&&r(13,f={placement:H})},r(14,h=J.getStore("pagers")),k(),k=p(h,(t=>r(27,g=t))),[I,M,z,T,W,L,H,q,G,K,B,R,U,f,h,d,u,c,s,l,a,o,i,X,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=U;if(t.which===Wr)Z(n-1<0?n:n-1);else if(t.which===Lr)Z(n+1>=e?n:n+1);else if(t.which===Hr)Z(0);else{if(t.which!==qr)return;Z(e-1)}t.preventDefault()},F,N,g,m,v,y,$,_,b,w,x,t=>X(t),function(t){ht[t?"unshift":"push"]((()=>{R=t,r(11,R)}))},function(t){ht[t?"unshift":"push"]((()=>{B=t,r(10,B)}))}]}const Qi={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 to(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&ne(t.text_color)||"#000",i=sn(t.font_weight);if(Re(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:Qt(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 eo(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const no="function"==typeof BigInt;function ro(t){return no?BigInt(t):Number(t)}const io=ro("9223372036854775807"),oo=ro("-9223372036854775808");function ao(t){const e=ro(t);if(e>io||e<oo)throw new Error("Integer overflow.");return e}const lo=ao(0);function so(t){let e=t;return e<0&&(e=-e),e}function co(t){let e=0;return t>0?e=1:t<0&&(e=-1),ao(e)}class uo{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=Lt(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 ho={string:class extends uo{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends uo{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 uo{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>io||t<oo)throw new Error("Incorrect variable value");return ao(t)}fromString(t){const e=ao(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends uo{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 uo{convertValue(t){if("string"!=typeof t||!re(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends uo{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}},dict:class extends uo{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}};function po(t,e,n){if(!(e in ho))throw new Error("Unsupported variable type");return new ho[e](t,n)}function fo(t,e,n){const r=t.slice();return r[78]=e[n],r}function go(t,e,n){const r=t.slice();return r[78]=e[n],r}function mo(t){let e,n;return e=new on({props:{cls:ye("slider",Qi,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[bo]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=ye("slider",Qi,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function vo(t){let e,n;return{c(){e=I("div"),this.h()},l(t){e=H(t,"DIV",{class:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=Qi.slider__tick+" "+Qi.slider__tick_active),Z(e,"--divkit-slider-tick",t[78])},m(t,n){S(t,e,n)},p(t,n){131072&n[0]&&Z(e,"--divkit-slider-tick",t[78])},d(t){t&&F(e)}}}function yo(t){let e,n;return{c(){e=I("div"),this.h()},l(t){e=H(t,"DIV",{class:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=Qi.slider__tick+" "+Qi.slider__tick_inactive),Z(e,"--divkit-slider-tick",t[78])},m(t,n){S(t,e,n)},p(t,n){262144&n[0]&&Z(e,"--divkit-slider-tick",t[78])},d(t){t&&F(e)}}}function $o(t){let e,n,r,i,o;return{c(){e=I("div"),n=I("div"),r=z(t[6]),this.h()},l(i){e=H(i,"DIV",{class:!0});var o=U(e);n=H(o,"DIV",{class:!0});var a=U(n);r=G(a,t[6]),a.forEach(F),o.forEach(F),this.h()},h(){var r,a,l;B(n,"class",i=Qi["slider__thumb-text-inner"]),Z(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em"),Z(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||""),Z(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000"),B(e,"class",o=Qi["slider__thumb-text"])},m(t,i){S(t,e,i),j(e,n),j(n,r)},p(t,e){var i,o,a;64&e[0]&&X(r,t[6]),4096&e[0]&&Z(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em"),4096&e[0]&&Z(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||""),4096&e[0]&&Z(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&F(e)}}}function _o(t){let e,n,r,i,o;return{c(){e=I("div"),n=I("div"),r=z(t[7]),this.h()},l(i){e=H(i,"DIV",{class:!0});var o=U(e);n=H(o,"DIV",{class:!0});var a=U(n);r=G(a,t[7]),a.forEach(F),o.forEach(F),this.h()},h(){var r,a,l;B(n,"class",i=Qi["slider__thumb-text-inner"]),Z(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em"),Z(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||""),Z(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000"),B(e,"class",o=Qi["slider__thumb-text"]+" "+Qi["slider__thumb-text_secondary"])},m(t,i){S(t,e,i),j(e,n),j(n,r)},p(t,e){var i,o,a;128&e[0]&&X(r,t[7]),8192&e[0]&&Z(n,"font-size",(null===(i=t[13])||void 0===i?void 0:i.fontSize)||"1em"),8192&e[0]&&Z(n,"font-weight",(null===(o=t[13])||void 0===o?void 0:o.fontWeight)||""),8192&e[0]&&Z(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&F(e)}}}function bo(t){let e,n,r,i,o,a,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k=t[17],E=[];for(let e=0;e<k.length;e+=1)E[e]=vo(go(t,k,e));let C=t[18],A=[];for(let e=0;e<C.length;e+=1)A[e]=yo(fo(t,C,e));let V=t[12]&&$o(t),D=t[37]&&function(t){let e,n,r=t[13]&&_o(t);return{c(){e=I("div"),r&&r.c(),this.h()},l(t){e=H(t,"DIV",{class:!0});var n=U(e);r&&r.l(n),n.forEach(F),this.h()},h(){B(e,"class",n=Qi.slider__thumb+" "+Qi.slider__thumb_secondary),Z(e,"border-radius",Qt(t[9].borderRadius)),Z(e,"background",t[9].background),Z(e,"box-shadow",t[9].boxShadow||"")},m(t,n){S(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=_o(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&Z(e,"border-radius",Qt(t[9].borderRadius)),512&n[0]&&Z(e,"background",t[9].background),512&n[0]&&Z(e,"box-shadow",t[9].boxShadow||"")},d(t){t&&F(e),r&&r.d()}}}(t),P=t[37]&&function(t){let e,n,r,i,o;return{c(){e=I("input"),this.h()},l(t){e=H(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){B(e,"type","range"),B(e,"class",n=t[16]?Qi.slider__input:"".concat(Qi.slider__input," ").concat(Qi.slider__input_secondary)),B(e,"min",t[4]),B(e,"max",t[5]),B(e,"step","1"),e.value=r=t[16]?t[6]:t[7],B(e,"aria-label",t[20])},m(n,r){S(n,e,r),i||(o=[J(e,"input",t[68]),J(e,"mousedown",t[37]?t[40]:null),J(e,"touchstart",t[37]?t[40]:null)],i=!0)},p(t,i){65536&i[0]&&n!==(n=t[16]?Qi.slider__input:"".concat(Qi.slider__input," ").concat(Qi.slider__input_secondary))&&B(e,"class",n),16&i[0]&&B(e,"min",t[4]),32&i[0]&&B(e,"max",t[5]),65728&i[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&i[0]&&B(e,"aria-label",t[20])},d(t){t&&F(e),i=!1,l(o)}}}(t);return{c(){e=I("div"),n=I("div"),r=I("div"),o=T(),a=I("div"),c=T();for(let t=0;t<E.length;t+=1)E[t].c();u=T();for(let t=0;t<A.length;t+=1)A[t].c();d=T(),h=I("div"),V&&V.c(),f=T(),D&&D.c(),g=T(),m=I("input"),$=T(),P&&P.c(),this.h()},l(t){e=H(t,"DIV",{class:!0});var i=U(e);n=H(i,"DIV",{class:!0});var l=U(n);r=H(l,"DIV",{class:!0}),U(r).forEach(F),o=K(l),a=H(l,"DIV",{class:!0}),U(a).forEach(F),c=K(l);for(let t=0;t<E.length;t+=1)E[t].l(l);u=K(l);for(let t=0;t<A.length;t+=1)A[t].l(l);d=K(l),h=H(l,"DIV",{class:!0});var s=U(h);V&&V.l(s),s.forEach(F),f=K(l),D&&D.l(l),g=K(l),m=H(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),$=K(l),P&&P.l(l),l.forEach(F),i.forEach(F),this.h()},h(){B(r,"class",i=Qi.slider__track),Z(r,"height",Qt(t[10].height)),Z(r,"border-radius",Qt(t[10].borderRadius)),Z(r,"background",t[10].background),Z(r,"box-shadow",t[10].boxShadow||""),B(a,"class",s=Qi["slider__active-track"]),Z(a,"left",(100*t[23]).toFixed(2)+"%"),Z(a,"width",(100*t[24]).toFixed(2)+"%"),Z(a,"height",Qt(t[11].height)),Z(a,"border-radius",Qt(t[11].borderRadius)),Z(a,"background",t[11].background),Z(a,"box-shadow",t[11].boxShadow||""),B(h,"class",p=Qi.slider__thumb),Z(h,"border-radius",Qt(t[8].borderRadius)),Z(h,"background",t[8].background),Z(h,"box-shadow",t[8].boxShadow||""),B(m,"type","range"),B(m,"class",v=t[16]?"".concat(Qi.slider__input," ").concat(Qi.slider__input_secondary):Qi.slider__input),B(m,"min",t[4]),B(m,"max",t[5]),B(m,"step","1"),m.value=y=t[16]?t[7]:t[6],B(m,"aria-label",t[19]),B(n,"class",_=Qi["slider__tracks-inner"]),B(e,"class",b=Qi["slider__tracks-wrapper"])},m(i,l){S(i,e,l),j(e,n),j(n,r),j(n,o),j(n,a),j(n,c);for(let t=0;t<E.length;t+=1)E[t]&&E[t].m(n,null);j(n,u);for(let t=0;t<A.length;t+=1)A[t]&&A[t].m(n,null);j(n,d),j(n,h),V&&V.m(h,null),j(n,f),D&&D.m(n,null),j(n,g),j(n,m),j(n,$),P&&P.m(n,null),t[69](n),w||(x=J(m,"input",t[67]),w=!0)},p(t,e){if(1024&e[0]&&Z(r,"height",Qt(t[10].height)),1024&e[0]&&Z(r,"border-radius",Qt(t[10].borderRadius)),1024&e[0]&&Z(r,"background",t[10].background),1024&e[0]&&Z(r,"box-shadow",t[10].boxShadow||""),8388608&e[0]&&Z(a,"left",(100*t[23]).toFixed(2)+"%"),16777216&e[0]&&Z(a,"width",(100*t[24]).toFixed(2)+"%"),2048&e[0]&&Z(a,"height",Qt(t[11].height)),2048&e[0]&&Z(a,"border-radius",Qt(t[11].borderRadius)),2048&e[0]&&Z(a,"background",t[11].background),2048&e[0]&&Z(a,"box-shadow",t[11].boxShadow||""),131072&e[0]){let r;for(k=t[17],r=0;r<k.length;r+=1){const i=go(t,k,r);E[r]?E[r].p(i,e):(E[r]=vo(i),E[r].c(),E[r].m(n,u))}for(;r<E.length;r+=1)E[r].d(1);E.length=k.length}if(262144&e[0]){let r;for(C=t[18],r=0;r<C.length;r+=1){const i=fo(t,C,r);A[r]?A[r].p(i,e):(A[r]=yo(i),A[r].c(),A[r].m(n,d))}for(;r<A.length;r+=1)A[r].d(1);A.length=C.length}t[12]?V?V.p(t,e):(V=$o(t),V.c(),V.m(h,null)):V&&(V.d(1),V=null),256&e[0]&&Z(h,"border-radius",Qt(t[8].borderRadius)),256&e[0]&&Z(h,"background",t[8].background),256&e[0]&&Z(h,"box-shadow",t[8].boxShadow||""),t[37]&&D.p(t,e),65536&e[0]&&v!==(v=t[16]?"".concat(Qi.slider__input," ").concat(Qi.slider__input_secondary):Qi.slider__input)&&B(m,"class",v),16&e[0]&&B(m,"min",t[4]),32&e[0]&&B(m,"max",t[5]),65728&e[0]&&y!==(y=t[16]?t[7]:t[6])&&(m.value=y),524288&e[0]&&B(m,"aria-label",t[19]),t[37]&&P.p(t,e)},d(n){n&&F(e),N(E,n),N(A,n),V&&V.d(),D&&D.d(),P&&P.d(),t[69](null),w=!1,x()}}}function wo(t){let e,n,r,i,o=!t[14]&&mo(t);return{c(){o&&o.c(),e=O()},l(t){o&&o.l(t),e=O()},m(a,l){o&&o.m(a,l),S(a,e,l),n=!0,r||(i=J(window,"resize",t[42]),r=!0)},p(t,n){t[14]?o&&(Vt(),jt(o,1,1,(()=>{o=null})),Dt()):o?(o.p(t,n),16384&n[0]&&Pt(o,1)):(o=mo(t),o.c(),Pt(o,1),o.m(e.parentNode,e))},i(t){n||(Pt(o),n=!0)},o(t){jt(o),n=!1},d(t){o&&o.d(t),t&&F(e),r=!1,i()}}}function xo(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 ko(t,e,r){let i,o,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,P,j,S,F,N,I,M,z,T,O,J=n,B=n,R=n,U=n,W=n,L=n,H=n,q=n,G=n,K=n,X=n,Z=n;var Y,Q,tt,et;t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z()));let{json:nt={}}=e,{templateContext:rt}=e,{origJson:it}=e,{layoutParams:ot}=e;const lt={width:10,height:10,borderRadius:5,background:"#000"},st=["rounded_rectangle","circle"],ut=["rounded_rectangle"],dt=ct(Gt),pt=ct(Ne);let ft,gt=!1,mt=0,vt=100;const yt=nt.thumb_value_variable,$t=nt.thumb_secondary_value_variable;let _t=yt&&dt.getVariable(yt,"integer")||po("temp","integer",0);f(t,_t,(t=>r(64,z=t)));let bt=$t&&dt.getVariable($t,"integer")||po("temp","integer",0);f(t,bt,(t=>r(63,M=t)));let wt,xt,kt,Et=eo(z||0,mt,vt),Ct=eo(M||0,mt,vt),At=lt,Vt=At,Dt=lt,Pt=lt,jt=null,St=null,Ft=kt,Nt="",It="",Mt=!1;function zt(t,e){const n=Number(t.target.value);gt===("first"===e)?(r(7,Ct=n),bt.setValue(n)):(r(6,Et=n),_t.setValue(n))}let Tt=!1;function Ot(){if(!ft)return;const t=vt-mt,e=(null==jt?void 0:jt.width)||0,n=(null==St?void 0:St.width)||0;Math.max(e,n)*t>=(null==ft?void 0:ft.clientWidth)?Tt||(dt.logError(Kt(new Error("Slider ticks overlap each other"),{level:"warn"})),Tt=!0):Tt=!1}const Jt=Pr(Ot,50);return at((()=>{Ot()})),t.$$set=t=>{"json"in t&&r(0,nt=t.json),"templateContext"in t&&r(1,rt=t.templateContext),"origJson"in t&&r(2,it=t.origJson),"layoutParams"in t&&r(3,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(36,i=dt.getDerivedFromVars(nt.min_value)),Z(),Z=p(i,(t=>r(66,O=t)))),1&t.$$.dirty[0]&&(r(35,o=dt.getDerivedFromVars(nt.max_value)),X(),X=p(o,(t=>r(65,T=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(r(4,mt=De(O,mt)),r(5,vt=De(T,vt)),Ot()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=eo(z||0,mt,vt);t!==Et&&r(6,Et=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=eo(M||0,mt,vt);t!==Ct&&r(7,Ct=t)}if(1&t.$$.dirty[0]&&(r(34,a=dt.getDerivedFromVars(nt.thumb_style)),K(),K=p(a,(t=>r(62,I=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(8,At=In(I,st,At)),1&t.$$.dirty[0]&&(r(33,l=dt.getDerivedFromVars(nt.thumb_secondary_style)),G(),G=p(l,(t=>r(61,N=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(9,Vt=In(N,st,At)),1&t.$$.dirty[0]&&(r(32,s=dt.getDerivedFromVars(nt.track_inactive_style)),q(),q=p(s,(t=>r(60,F=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(10,Dt=In(F,ut,Dt)),1&t.$$.dirty[0]&&(r(31,c=dt.getDerivedFromVars(nt.track_active_style)),H(),H=p(c,(t=>r(59,S=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,Pt=In(S,ut,Pt)),1&t.$$.dirty[0]&&(r(30,u=dt.getDerivedFromVars(nt.tick_mark_active_style)),L(),L=p(u,(t=>r(58,j=t)))),134217728&t.$$.dirty[1]){let t=In(j,st,lt);t!==lt&&r(47,jt=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(jt?(r(17,wt=$t?xo(Math.min(Et,Ct),Math.max(Et,Ct)+1,mt,vt,!0):xo(mt,Et,mt,vt,!0)),Ot()):r(17,wt=[])),1&t.$$.dirty[0]&&(r(29,d=dt.getDerivedFromVars(nt.tick_mark_inactive_style)),W(),W=p(d,(t=>r(57,P=t)))),67108864&t.$$.dirty[1]){let t=In(P,st,lt);t!==lt&&r(48,St=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(St?(r(18,xt=$t?xo(Math.min(Et,Ct),Math.max(Et,Ct)+1,mt,vt,!1):xo(Et+1,vt+1,mt,vt,!0)),Ot()):r(18,xt=[])),1&t.$$.dirty[0]&&(r(28,h=dt.getDerivedFromVars(nt.thumb_text_style)),U(),U=p(h,(t=>r(56,D=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,kt=to(D,kt)),1&t.$$.dirty[0]&&(r(27,g=dt.getDerivedFromVars(nt.thumb_secondary_text_style)),R(),R=p(g,(t=>r(55,V=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(13,Ft=to(V,kt)),1&t.$$.dirty[0]&&(r(26,m=dt.getDerivedFromVars(nt.accessibility)),B(),B=p(m,(t=>r(54,A=t)))),8388608&t.$$.dirty[1]&&((null==A?void 0:A.description)?r(19,Nt=A.description):dt.logError(Kt(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(r(25,v=dt.getDerivedFromVars(nt.secondary_value_accessibility)),J(),J=p(v,(t=>r(53,C=t)))),4194304&t.$$.dirty[1]&&((null==C?void 0:C.description)?r(20,It=C.description):$t&&dt.logError(Kt(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;pt.hasAction()?(dt.logError(Kt(new Error('Cannot show "slider" inside component with action'))),t=!0):At===lt?(dt.logError(Kt(new Error('Missing "thumb_style" in slider'))),t=!0):Pt===lt?(dt.logError(Kt(new Error('Missing "track_active_style" in slider'))),t=!0):Dt===lt&&(dt.logError(Kt(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Mt&&r(14,Mt=t)}768&t.$$.dirty[0]&&r(52,y=Qt(Math.max(...[At.width,Vt.width,0].filter(we)))),768&t.$$.dirty[0]&&r(51,$=Qt(Math.max(...[At.height,Vt.height,0].filter(we)))),112&t.$$.dirty[0]&&r(50,_=(Et-mt)/(vt-mt)),176&t.$$.dirty[0]&&r(49,b=$t?(Ct-mt)/(vt-mt):void 0),786432&t.$$.dirty[1]&&r(24,w=void 0!==b?Math.abs(b-_):_),786432&t.$$.dirty[1]&&r(23,x=void 0!==b?Math.min(b,_):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&r(22,k={"--divkit-slider-thumb-width":Qt(At.width),"--divkit-slider-thumb-height":Qt(At.height),"--divkit-slider-thumb-secondary-width":Qt(Vt.width),"--divkit-slider-thumb-secondary-height":Qt(Vt.height),"--divkit-slider-text-offset-x":(null===r(43,Y=null==kt?void 0:kt.offset)||void 0===Y?void 0:Y.x)?te(kt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(44,Q=null==kt?void 0:kt.offset)||void 0===Q?void 0:Q.y)?te(kt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(45,tt=null==Ft?void 0:Ft.offset)||void 0===tt?void 0:tt.x)?te(Ft.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(46,et=null==Ft?void 0:Ft.offset)||void 0===et?void 0:et.y)?te(Ft.offset.y):void 0,"--divkit-slider-tick-active-width":jt?Qt(jt.width):void 0,"--divkit-slider-tick-active-height":jt?Qt(jt.height):void 0,"--divkit-slider-tick-active-border-radius":jt?Qt(jt.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==jt?void 0:jt.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==jt?void 0:jt.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":St?Qt(St.width):void 0,"--divkit-slider-tick-inactive-height":St?Qt(St.height):void 0,"--divkit-slider-tick-inactive-border-radius":St?Qt(St.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-max-thumb-width":y,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":_,"--divkit-slider-track-secondary-part":b})},r(21,E={}),[nt,rt,it,ot,mt,vt,Et,Ct,At,Vt,Dt,Pt,kt,Ft,Mt,ft,gt,wt,xt,Nt,It,E,k,x,w,v,m,g,h,d,u,c,s,l,a,o,i,$t,_t,bt,function(t){var e,n;const i="pageX"in t?t.pageX:null===(n=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageX;if(void 0===i)return;const o=ft.getBoundingClientRect(),a=(i-o.left)/o.width,l=(vt-mt)*a,s=Math.round(eo(l,mt,vt));r(16,gt=s<(Et+Ct)/2==Et<Ct)},zt,Jt,Y,Q,tt,et,jt,St,b,_,$,y,C,A,V,D,P,j,S,F,N,I,M,z,T,O,t=>zt(t,"first"),t=>zt(t,"second"),function(t){ht[t?"unshift":"push"]((()=>{ft=t,r(15,ft)}))}]}const Eo={input:"divkit-c3a4c",input__wrapper:"divkit-ef7eb",input__holder:"divkit-bb3da",input_multiline:"divkit-e48a3",input__input:"divkit-f11e0","input_highlight-color":"divkit-cc00f","input_vertical-overflow":"divkit-b7075"};function Co(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=Co(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 Ao(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 Vo{constructor(t){this.char=t}}class Do{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class Po{constructor(t){Ao(this,"filters",new Map),Ao(this,"destructedValue",[]),Ao(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 Vo)t+=n.char;else if(n instanceof Do)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 Do&&!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(Kt(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 Do(null,this.filters.get(e.key),e.placeholder):new Vo(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=Co(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),i=this.buildTailSubstring(n);this.cleanup(n);const o=this.firstEmptyHolderIndex(),a=this.calculateMaxShift(i,o);this.replaceChars(r,o,a);const l=this.firstEmptyHolderIndex();this.replaceChars(i,l),this.calculateCursorPosition(n,l)}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 Do&&++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 Do&&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 Do&&(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 Do);)++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 Do&&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 Do&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof Do);)++e;return e}}class jo extends Po{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function So(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 Fo extends Po{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}),So(this,"currencyFormatter",new Intl.NumberFormat),So(this,"decimalSeparator","."),So(this,"localeDigits",{}),So(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(Kt(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=Co(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 l=this.parseFormat(a)||0;o&&this.invalidateMaskDataForFormatted(l),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 l=t.includes(this.decimalSeparator)||-1!==i,s=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=s.length<=o;this.isDigit(u)?this.inDiff(e,r)&&!c&&l?a>0&&(s.push(u),a--):s.push(u):d&&-1===n&&r===i?(s.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(s.push(this.decimalSeparator),c=!0,n=r),r--}return s.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)}}function No(t){let e,n;return e=new on({props:{cls:ye("input",Eo,t[15]),style:t[14],customDescription:!0,customActions:"input",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[To]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=ye("input",Eo,t[15])),16384&n[0]&&(r.style=t[14]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),802288&n[0]|524288&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Io(t){let e;return{c(){e=z("​")},l(t){e=G(t,"​")},m(t,n){S(t,e,n)},d(t){t&&F(e)}}}function Mo(t){let e,n,r,i,o;return{c(){e=I("input"),this.h()},l(t){e=H(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){B(e,"type",t[10]),B(e,"inputmode",t[11]),B(e,"class",n=Eo.input__input),B(e,"autocomplete","off"),B(e,"autocapitalize","off"),B(e,"aria-label",t[12]),B(e,"style",r=Yt({padding:t[5]})),B(e,"placeholder",t[18]),e.value=t[4]},m(n,r){S(n,e,r),t[69](e),i||(o=[J(e,"input",t[35]),J(e,"mousedown",(function(){s(t[19]?t[36]:void 0)&&(t[19]?t[36]:void 0).apply(this,arguments)})),J(e,"click",(function(){s(t[19]?t[37]:void 0)&&(t[19]?t[37]:void 0).apply(this,arguments)}))],i=!0)},p(n,i){t=n,1024&i[0]&&B(e,"type",t[10]),2048&i[0]&&B(e,"inputmode",t[11]),4096&i[0]&&B(e,"aria-label",t[12]),32&i[0]&&r!==(r=Yt({padding:t[5]}))&&B(e,"style",r),262144&i[0]&&B(e,"placeholder",t[18]),16&i[0]&&e.value!==t[4]&&(e.value=t[4])},d(n){n&&F(e),t[69](null),i=!1,l(o)}}}function zo(t){let e,n,r,i,o;return{c(){e=I("textarea"),this.h()},l(t){e=H(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),U(e).forEach(F),this.h()},h(){B(e,"class",n=Eo.input__input),B(e,"autocomplete","off"),B(e,"autocapitalize","off"),B(e,"aria-label",t[12]),B(e,"style",r=Yt({padding:t[5]})),B(e,"placeholder",t[18]),e.value=t[4]},m(n,r){S(n,e,r),t[68](e),i||(o=[J(e,"input",t[35]),J(e,"mousedown",(function(){s(t[19]?t[36]:void 0)&&(t[19]?t[36]:void 0).apply(this,arguments)})),J(e,"click",(function(){s(t[19]?t[37]:void 0)&&(t[19]?t[37]:void 0).apply(this,arguments)}))],i=!0)},p(n,i){t=n,4096&i[0]&&B(e,"aria-label",t[12]),32&i[0]&&r!==(r=Yt({padding:t[5]}))&&B(e,"style",r),262144&i[0]&&B(e,"placeholder",t[18]),16&i[0]&&(e.value=t[4])},d(n){n&&F(e),t[68](null),i=!1,l(o)}}}function To(t){let e,n,r,i,o,a,l,s=t[4].endsWith("\n")||!t[4],c=s&&Io();function u(t,e){return t[6]?zo:Mo}let d=u(t),h=d(t);return{c(){e=I("span"),n=I("span"),r=z(t[4]),c&&c.c(),o=T(),h.c(),this.h()},l(i){e=H(i,"SPAN",{class:!0,style:!0});var a=U(e);n=H(a,"SPAN",{class:!0,"aria-hidden":!0});var l=U(n);r=G(l,t[4]),c&&c.l(l),l.forEach(F),o=K(a),h.l(a),a.forEach(F),this.h()},h(){B(n,"class",i=Eo.input__holder),B(n,"aria-hidden","true"),B(e,"class",a=Eo.input__wrapper),B(e,"style",l=Yt(t[13]))},m(i,a){S(i,e,a),j(e,n),j(n,r),c&&c.m(n,null),t[67](n),j(e,o),h.m(e,null)},p(t,i){16&i[0]&&X(r,t[4]),16&i[0]&&(s=t[4].endsWith("\n")||!t[4]),s?c||(c=Io(),c.c(),c.m(n,null)):c&&(c.d(1),c=null),d===(d=u(t))&&h?h.p(t,i):(h.d(1),h=d(t),h&&(h.c(),h.m(e,null))),8192&i[0]&&l!==(l=Yt(t[13]))&&B(e,"style",l)},d(n){n&&F(e),c&&c.d(),t[67](null),h.d()}}}function Oo(t){let e,n,r=!t[9]&&No(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[9]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),512&n[0]&&Pt(r,1)):(r=No(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function Jo(t,e,r){let i,o,a,l,s,c,u,d,h,g,m,v,y,$,b,w,x,k,E,C,A,V,D,P,j=n,S=n;var F;t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S()));let{json:N={}}=e,{templateContext:I}=e,{origJson:M}=e,{layoutParams:z}=e;const T=ct(Gt);let O,J,B=!1,R=!1,U=null;const W=N.text_variable,L=null===(F=N.mask)||void 0===F?void 0:F.raw_text_variable;let H=!1;W||(H=!0,T.logError(Kt(new Error('Missing "text_variable" in "input"'))));let q=W&&T.getVariable(W,"string")||po("temp","string","");f(t,q,(t=>r(51,d=t)));let G=L&&T.getVariable(L,"string")||po("temp","string","");f(t,G,(t=>r(52,h=t)));let K="";const X=T.getDerivedFromVars(N.mask);f(t,X,(t=>r(56,y=t)));const Z=T.getDerivedFromVars(N.hint_text);f(t,Z,(t=>r(66,D=t)));const Y=T.getDerivedFromVars(N.hint_color);f(t,Y,(t=>r(65,V=t)));let Q="";const tt=T.getDerivedFromVars(N.font_size);f(t,tt,(t=>r(64,A=t)));let et=12;const nt=T.getDerivedFromVars(N.font_weight);f(t,nt,(t=>r(63,C=t)));const rt=T.getDerivedFromVars(N.font_family);let it;f(t,rt,(t=>r(62,E=t)));let ot="";const lt=T.getDerivedFromVars(N.line_height);let st;f(t,lt,(t=>r(61,k=t)));const ut=T.getDerivedFromVars(N.letter_spacing);f(t,ut,(t=>r(60,x=t)));let dt="";const pt=T.getDerivedFromVars(N.text_color);f(t,pt,(t=>r(59,w=t)));let ft="#000";const gt=T.getDerivedFromVars(N.highlight_color);f(t,gt,(t=>r(58,b=t)));let mt="";const vt=T.getDerivedFromVars(N.keyboard_type);f(t,vt,(t=>r(57,$=t)));const $t={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let _t="multi_line_text",bt="text";const wt=document&&"inputMode"in document.createElement("input");let xt;const kt=T.getDerivedFromVars(N.max_visible_lines);f(t,kt,(t=>r(55,v=t)));let Et="",Ct=null,At="",Vt="";const Dt=T.getDerivedFromVars(N.select_all_on_focus);function Pt(){r(38,R=!!J&&J.scrollHeight>J.offsetHeight)}async function jt(){if(!O||!U)return;U.overrideRawValue(h),G.set(U.rawValue),_(q,d=r(4,K=U.value),d);const t=U.cursorPosition;await yt(),document.activeElement===O&&r(7,O.selectionStart=r(7,O.selectionEnd=t,O),O)}return f(t,Dt,(t=>r(19,P=t))),at((()=>{Pt(),O&&U&&h&&(U.overrideRawValue(h),_(q,d=r(4,K=U.value),d))})),t.$$set=t=>{"json"in t&&r(0,N=t.json),"templateContext"in t&&r(1,I=t.templateContext),"origJson"in t&&r(2,M=t.origJson),"layoutParams"in t&&r(3,z=t.layoutParams)},t.$$.update=()=>{if(33554432&t.$$.dirty[1]&&("fixed_length"===(null==(e=y)?void 0:e.type)?r(39,U=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new jo(r,e)}return n||null}(e,T.logError,U)):"currency"===(null==e?void 0:e.type)&&r(39,U=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new Fo(t.locale,e)}(e,T.logError,U)),U&&jt()),16&t.$$.dirty[0]|1048832&t.$$.dirty[1]&&(U||K===d||r(4,K=d)),2097408&t.$$.dirty[1]&&U&&U.rawValue!==h&&jt(),16&t.$$.dirty[2]&&r(18,i=D),512&t.$$.dirty[1]|8&t.$$.dirty[2]&&r(40,Q=ne(V,1,Q)),1024&t.$$.dirty[1]|4&t.$$.dirty[2]&&r(41,et=ln(A,et)),2048&t.$$.dirty[1]|3&t.$$.dirty[2]&&(r(42,it=cn(C,it)),r(43,ot=E&&"string"==typeof E?T.typefaceProvider(E,{fontWeight:it||400}):"")),1073742848&t.$$.dirty[1]){const t=k;Re(t)&&r(44,st=t/et)}var e;536870912&t.$$.dirty[1]&&be(x)&&r(45,dt=Qt(x)),268468224&t.$$.dirty[1]&&r(46,ft=ne(w,1,ft)),134283264&t.$$.dirty[1]&&r(47,mt=ne(b,1,mt)),100663296&t.$$.dirty[1]&&($&&$ in $t&&(r(10,bt=$t[$]),r(48,_t=$)),"currency"===(null==y?void 0:y.type)&&(r(10,bt=wt?"text":"tel"),r(11,xt="decimal"))),131072&t.$$.dirty[1]&&r(6,o="multi_line_text"===_t),1&t.$$.dirty[0]&&(r(17,a=T.getDerivedFromVars(N.paddings)),S(),S=p(a,(t=>r(54,m=t)))),25699328&t.$$.dirty[1]&&(Re(v)&&r(49,Et="calc(".concat(v*(st||1.25)*(et/10)+"em"," + ").concat(te(ke(null==m?void 0:m.top,0)+ke(null==m?void 0:m.bottom,0)),")")),r(50,Ct=je(m||void 0,Ct)),r(5,At=Ct?_e({top:(Number(Ct.top)||0)/et*10,right:(Number(Ct.right)||0)/et*10,bottom:(Number(Ct.bottom)||0)/et*10,left:(Number(Ct.left)||0)/et*10}):"")),1&t.$$.dirty[0]&&(r(16,l=T.getDerivedFromVars(N.accessibility)),j(),j=p(l,(t=>r(53,g=t)))),4194304&t.$$.dirty[1]&&((null==g?void 0:g.description)?r(12,Vt=g.description):T.logError(Kt(new Error('Missing accessibility "description" for input'),{level:"warn"}))),64&t.$$.dirty[0]|65664&t.$$.dirty[1]&&r(15,s={"highlight-color":Boolean(mt),"vertical-overflow":R,multiline:o}),391680&t.$$.dirty[1]&&r(14,c={"--divkit-input-hint-color":Q,"--divkit-input-highlight-color":mt,"font-weight":it,"font-family":ot,"line-height":st,"letter-spacing":dt,color:ft,"max-height":Et}),32&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(13,u={"font-size":Qt(et),padding:At})},[N,I,M,z,K,At,o,O,J,H,bt,xt,Vt,u,c,s,l,a,i,P,q,G,X,Z,Y,tt,nt,rt,lt,ut,pt,gt,vt,kt,Dt,function(t){const e=t.target.value||"";K!==e&&(r(4,K=e),q.setValue(e),U&&async function(){if(!O||!U)return;U.applyChangeFrom(K,null!==O.selectionEnd?O.selectionEnd:void 0),G.set(U.rawValue),_(q,d=r(4,K=U.value),d);const t=U.cursorPosition;await yt(),document.activeElement===O&&r(7,O.selectionStart=r(7,O.selectionEnd=t,O),O)}()),Pt()},function(){B=!1,setTimeout((()=>{B=!0}),250)},function(){B||O.select()},R,U,Q,et,it,ot,st,dt,ft,mt,_t,Et,Ct,d,h,g,m,v,y,$,b,w,x,k,E,C,A,V,D,function(t){ht[t?"unshift":"push"]((()=>{J=t,r(8,J)}))},function(t){ht[t?"unshift":"push"]((()=>{O=t,r(7,O)}))},function(t){ht[t?"unshift":"push"]((()=>{O=t,r(7,O)}))}]}const Bo={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72",select__option:"divkit-e774b"};function Ro(t,e,n){const r=t.slice();return r[49]=e[n],r}function Uo(t){let e,n;return e=new on({props:{cls:ye("select",Bo,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Lo]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=ye("select",Bo,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),9136&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Wo(t){let e,r,i,o,a=(t[49].text||t[49].value)+"";return{c(){e=I("option"),r=z(a),this.h()},l(t){e=H(t,"OPTION",{class:!0});var n=U(e);r=G(n,a),n.forEach(F),this.h()},h(){B(e,"class",i=Bo.select__option),e.__value=o=t[49].value,e.value=e.__value},m(t,n){S(t,e,n),j(e,r)},p:n,d(t){t&&F(e)}}}function Lo(t){let e,n,r,i,o,a,l,s,c,u,d=(t[4]||t[13]||"​")+"",h=t[16],p=[];for(let e=0;e<h.length;e+=1)p[e]=Wo(Ro(t,h,e));return{c(){e=I("span"),n=z(d),o=T(),a=I("select");for(let t=0;t<p.length;t+=1)p[t].c();this.h()},l(t){e=H(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=U(e);n=G(r,d),r.forEach(F),o=K(t),a=H(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var i=U(a);for(let t=0;t<p.length;t+=1)p[t].l(i);i.forEach(F),this.h()},h(){B(e,"class",r=Bo["select__select-text"]),B(e,"style",i=Yt(t[9])),B(e,"aria-hidden","true"),B(a,"class",l=Bo.select__select),B(a,"aria-label",t[7]),B(a,"style",s=Yt(t[8])),void 0===t[5]&&$t((()=>t[44].call(a)))},m(r,i){S(r,e,i),j(e,n),S(r,o,i),S(r,a,i);for(let t=0;t<p.length;t+=1)p[t]&&p[t].m(a,null);Y(a,t[5],!0),c||(u=J(a,"change",t[44]),c=!0)},p(t,r){if(8208&r[0]&&d!==(d=(t[4]||t[13]||"​")+"")&&X(n,d),512&r[0]&&i!==(i=Yt(t[9]))&&B(e,"style",i),65536&r[0]){let e;for(h=t[16],e=0;e<h.length;e+=1){const n=Ro(t,h,e);p[e]?p[e].p(n,r):(p[e]=Wo(n),p[e].c(),p[e].m(a,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=h.length}128&r[0]&&B(a,"aria-label",t[7]),256&r[0]&&s!==(s=Yt(t[8]))&&B(a,"style",s),65568&r[0]&&Y(a,t[5])},d(t){t&&F(e),t&&F(o),t&&F(a),N(p,t),c=!1,u()}}}function Ho(t){let e,n,r=!t[6]&&Uo(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[6]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),64&n[0]&&Pt(r,1)):(r=Uo(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function qo(t,e,r){let i,o,a,l,s,c,u,d,h,g,m,v,y,$,_,b,w,x,k=n,E=n;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:C={}}=e,{templateContext:A}=e,{origJson:V}=e,{layoutParams:D}=e;const P=ct(Gt),j=C.value_variable;let S=!1;j||(S=!0,P.logError(Kt(new Error('Missing "value_variable" in "select"'))));let F=j&&P.getVariable(j,"string")||po("temp","string","");f(t,F,(t=>r(5,x=t)));let N="";const I=C.options,M=Array.isArray(I)&&I.filter((t=>"string"==typeof t.value))||[];Array.isArray(M)&&M.length||P.logError(Kt(new Error('Empty selection "items" in "select"')));let z="",T=null,O="";const J=P.getDerivedFromVars(C.hint_text);f(t,J,(t=>r(42,b=t)));const B=P.getDerivedFromVars(C.hint_color);f(t,B,(t=>r(41,_=t)));let R="rgba(0,0,0,.45)";const U=P.getDerivedFromVars(C.font_size);f(t,U,(t=>r(40,$=t)));let W=12;const L=P.getDerivedFromVars(C.font_weight);f(t,L,(t=>r(39,y=t)));const H=P.getDerivedFromVars(C.font_family);let q;f(t,H,(t=>r(38,v=t)));let G="";const K=P.getDerivedFromVars(C.line_height);let X;f(t,K,(t=>r(37,m=t)));const Z=P.getDerivedFromVars(C.letter_spacing);f(t,Z,(t=>r(36,g=t)));let Y="";const Q=P.getDerivedFromVars(C.text_color);f(t,Q,(t=>r(35,h=t)));let tt="#000",et="";return t.$$set=t=>{"json"in t&&r(0,C=t.json),"templateContext"in t&&r(1,A=t.templateContext),"origJson"in t&&r(2,V=t.origJson),"layoutParams"in t&&r(3,D=t.layoutParams)},t.$$.update=()=>{if(32&t.$$.dirty[0]&&(N=x),32&t.$$.dirty[0]){const t=M.find((t=>t.value===x));t?r(4,z="string"==typeof t.text?t.text:t.value):(r(4,z=""),x&&P.logError(Kt(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1&t.$$.dirty[0]&&(r(14,i=P.getDerivedFromVars(C.paddings)),E(),E=p(i,(t=>r(43,w=t)))),268435456&t.$$.dirty[0]|512&t.$$.dirty[1]&&r(28,W=ln($,W)),301989888&t.$$.dirty[0]|4096&t.$$.dirty[1]&&(r(25,T=je(w||void 0,T)),r(26,O=T?_e({top:(Number(T.top)||0)/W*10,right:(Number(T.right)||0)/W*10,bottom:(Number(T.bottom)||0)/W*10,left:(Number(T.left)||0)/W*10}):"")),2048&t.$$.dirty[1]&&r(13,o=b),134217728&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(27,R=ne(_,1,R)),536870912&t.$$.dirty[0]|384&t.$$.dirty[1]&&(r(29,q=cn(y,q)),r(30,G=v&&"string"==typeof v?P.typefaceProvider(v,{fontWeight:q||400}):"")),268435456&t.$$.dirty[0]|64&t.$$.dirty[1]){const t=m;Re(t)&&r(31,X=t/W)}268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&be(g)&&r(32,Y=Qt(g/W*10)),20&t.$$.dirty[1]&&r(33,tt=ne(h,1,tt)),1&t.$$.dirty[0]&&(r(12,a=P.getDerivedFromVars(C.accessibility)),k(),k=p(a,(t=>r(34,d=t)))),8&t.$$.dirty[1]&&((null==d?void 0:d.description)?r(7,et=d.description):P.logError(Kt(new Error('Missing accessibility "description" for select'),{level:"warn"}))),16&t.$$.dirty[0]&&r(11,l={hint:!z}),1744830464&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(10,s={"--divkit-input-hint-color":R,"font-weight":q,"font-family":G,color:tt}),335544320&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(9,c={padding:O,"font-size":Qt(W),"line-height":X,"letter-spacing":Y}),268435456&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(8,u={"font-size":Qt(W),"line-height":X,"letter-spacing":Y})},[C,A,V,D,z,x,S,et,u,c,s,l,a,o,i,F,M,J,B,U,L,H,K,Z,Q,T,O,R,W,q,G,X,Y,tt,d,h,g,m,v,y,$,_,b,w,function(){x=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),F.set(x),r(16,M)}]}const Go={video__video:"divkit-c11f9"};function Ko(t,e,n){const r=t.slice();return r[32]=e[n],r}function Xo(t){let e,n;return e=new on({props:{cls:Go.video,customActions:"video",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Yo]},$$scope:{ctx:t}}}),{c(){Tt(e.$$.fragment)},l(t){Ot(e.$$.fragment,t)},m(t,r){Jt(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1520&n[0]|16&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Pt(e.$$.fragment,t),n=!0)},o(t){jt(e.$$.fragment,t),n=!1},d(t){Bt(e,t)}}}function Zo(t){let e,n,r,i,o;return{c(){e=I("source"),this.h()},l(t){e=H(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[32].src)||B(e,"src",n),B(e,"type",r=t[32].type)},m(n,r){S(n,e,r),i||(o=J(e,"error",t[21]),i=!0)},p(t,i){16&i[0]&&!u(e.src,n=t[32].src)&&B(e,"src",n),16&i[0]&&r!==(r=t[32].type)&&B(e,"type",r)},d(t){t&&F(e),i=!1,o()}}}function Yo(t){let e,n,r,i,o=t[4],a=[];for(let e=0;e<o.length;e+=1)a[e]=Zo(Ko(t,o,e));return{c(){e=I("video");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=H(t,"VIDEO",{class:!0,poster:!0});var n=U(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(F),this.h()},h(){B(e,"class",n=Go.video__video),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],B(e,"poster",t[8])},m(n,o){S(n,e,o);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(e,null);t[27](e),r||(i=[J(e,"timeupdate",t[16]),J(e,"ended",t[17]),J(e,"playing",t[18]),J(e,"pause",t[19]),J(e,"waiting",t[20]),J(e,"error",t[21])],r=!0)},p(t,n){if(2097168&n[0]){let r;for(o=t[4],r=0;r<o.length;r+=1){const i=Ko(t,o,r);a[r]?a[r].p(i,n):(a[r]=Zo(i),a[r].c(),a[r].m(e,null))}for(;r<a.length;r+=1)a[r].d(1);a.length=o.length}32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),256&n[0]&&B(e,"poster",t[8])},d(n){n&&F(e),N(a,n),t[27](null),r=!1,l(i)}}}function Qo(t){let e,n,r=!t[9]&&Xo(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){t[9]?r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt()):r?(r.p(t,n),512&n[0]&&Pt(r,1)):(r=Xo(t),r.c(),Pt(r,1),r.m(e.parentNode,e))},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function ta(t,e,n){let r,i,o,a,l,{json:s={}}=e,{templateContext:c}=e,{origJson:u}=e,{layoutParams:d}=e;const h=ct(Gt);let p,g=!1,m=!1;const v=h.getDerivedFromVars(s.video_sources);f(t,v,(t=>n(26,l=t)));let y=[];const $=h.getDerivedFromVars(s.repeatable);f(t,$,(t=>n(25,a=t)));let _=!1;const b=h.getDerivedFromVars(s.autostart);f(t,b,(t=>n(24,o=t)));let w=!1;const x=h.getDerivedFromVars(s.muted);f(t,x,(t=>n(23,i=t)));let k=!1;const E=h.getDerivedFromVars(s.preview);let C;f(t,E,(t=>n(22,r=t)));const A=s.elapsed_time_variable;let V=A&&h.getVariable(A,"integer")||po("temp","integer",0);return V.subscribe((t=>{m?m=!1:p&&n(10,p.currentTime=Number(t)/1e3,p)})),!s.id||g||(null==d?void 0:d.fakeElement)||h.registerInstance(s.id,{pause(){null==p||p.pause()},start(){const t=null==p?void 0:p.play();t&&t.catch((t=>{h.logError(Kt(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}}),lt((()=>{!s.id||g||(null==d?void 0:d.fakeElement)||h.unregisterInstance(s.id)})),t.$$set=t=>{"json"in t&&n(0,s=t.json),"templateContext"in t&&n(1,c=t.templateContext),"origJson"in t&&n(2,u=t.origJson),"layoutParams"in t&&n(3,d=t.layoutParams)},t.$$.update=()=>{var e,s;67108880&t.$$.dirty[0]&&(n(4,(e=l,s=y,y=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):s)),y.length?n(9,g=!1):(n(9,g=!0),h.logError(Kt(new Error('Missing "video_sources" in "video"'))))),33554464&t.$$.dirty[0]&&n(5,_=vn(a,_)),16777280&t.$$.dirty[0]&&n(6,w=vn(o,w)),8388736&t.$$.dirty[0]&&n(7,k=vn(i,k)),4194560&t.$$.dirty[0]&&n(8,C="string"==typeof r?lr(r):C)},[s,c,u,d,y,_,w,k,C,g,p,v,$,b,x,E,function(){p&&(m=!0,V.setValue(Math.floor(1e3*p.currentTime)))},function(){const t=h.getJsonWithVars(s.end_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.resume_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.pause_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.buffering_actions);h.execAnyActions(t)},function(){const t=h.getJsonWithVars(s.fatal_actions);h.execAnyActions(t)},r,i,o,a,l,function(t){ht[t?"unshift":"push"]((()=>{p=t,n(10,p)}))}]}const ea={};function na(t){let e,n,r;var i=t[5];function o(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=Q(i,o(t))),{c(){e&&Tt(e.$$.fragment),n=O()},l(t){e&&Ot(e.$$.fragment,t),n=O()},m(t,i){e&&Jt(e,t,i),S(t,n,i),r=!0},p(t,r){const a={};if(8&r&&(a.json=t[3]),16&r&&(a.templateContext=t[4]),4&r&&(a.layoutParams=t[2]),3&r&&(a.origJson=t[1]||t[0]),32&r&&i!==(i=t[5])){if(e){Vt();const t=e;jt(t.$$.fragment,1,0,(()=>{Bt(t,1)})),Dt()}i?(e=Q(i,o(t)),Tt(e.$$.fragment),Pt(e.$$.fragment,1),Jt(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){r||(e&&Pt(e.$$.fragment,t),r=!0)},o(t){e&&jt(e.$$.fragment,t),r=!1},d(t){t&&F(n),e&&Bt(e,t)}}}function ra(t){let e,n,r=t[5]&&na(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&Pt(r,1)):(r=na(t),r.c(),Pt(r,1),r.m(e.parentNode,e)):r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt())},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function ia(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const l=ct(Gt);let s,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,s=r),n(4,c=i),n(5,u=s&&ea[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=s&&ea[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(Kt(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,o,a,s,c,u,i]}ea.text=class extends Ut{constructor(t){super(),Rt(this,t,Pn,Dn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ea.container=class extends Ut{constructor(t){super(),Rt(this,t,Qn,Yn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ea.separator=class extends Ut{constructor(t){super(),Rt(this,t,or,ir,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},ea.image=vr,ea.gif=vr,ea.grid=class extends Ut{constructor(t){super(),Rt(this,t,Ar,Cr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ea.gallery=class extends Ut{constructor(t){super(),Rt(this,t,Rr,Br,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ea.tabs=class extends Ut{constructor(t){super(),Rt(this,t,oi,ii,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1,-1])}},ea.state=class extends Ut{constructor(t){super(),Rt(this,t,zi,Ii,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},ea.pager=class extends Ut{constructor(t){super(),Rt(this,t,Li,Wi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ea.indicator=class extends Ut{constructor(t){super(),Rt(this,t,Yi,Zi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ea.slider=class extends Ut{constructor(t){super(),Rt(this,t,ko,wo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ea.input=class extends Ut{constructor(t){super(),Rt(this,t,Jo,Oo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ea.select=class extends Ut{constructor(t){super(),Rt(this,t,qo,Ho,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ea.video=class extends Ut{constructor(t){super(),Rt(this,t,ta,Qo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}};const oa=class extends Ut{constructor(t){super(),Rt(this,t,ia,ra,d,{div:0,templateContext:6,origJson:1,layoutParams:2})}},aa={"root-svg-filters":"divkit-dc22b"};function la(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 sa(t){let e,n,r,i=[...Object.keys(t[0])],o=[];for(let e=0;e<i.length;e+=1)o[e]=ha(la(t,i,e));return{c(){e=M("svg"),n=M("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=q(t,"svg",{class:!0,"aria-hidden":!0});var r=U(e);n=q(r,"defs",{});var i=U(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(F),r.forEach(F),this.h()},h(){B(e,"class",r=aa["root-svg-filters"]),B(e,"aria-hidden","true")},m(t,r){S(t,e,r),j(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=[...Object.keys(t[0])],r=0;r<i.length;r+=1){const a=la(t,i,r);o[r]?o[r].p(a,e):(o[r]=ha(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&&F(e),N(o,t)}}}function ca(t){let e,n;return{c(){e=M("feBlend"),this.h()},l(t){e=q(t,"feBlend",{in2:!0,mode:!0}),U(e).forEach(F),this.h()},h(){B(e,"in2","SourceGraphic"),B(e,"mode",n=t[3])},m(t,n){S(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&B(e,"mode",n)},d(t){t&&F(e)}}}function ua(t){let e;return{c(){e=M("feComposite"),this.h()},l(t){e=q(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),U(e).forEach(F),this.h()},h(){B(e,"in2","SourceGraphic"),B(e,"operator","arithmetic"),B(e,"k1","1"),B(e,"k2","0"),B(e,"k3","0"),B(e,"k4","0")},m(t,n){S(t,e,n)},p:n,d(t){t&&F(e)}}}function da(t){let e,n;return{c(){e=M("feComposite"),this.h()},l(t){e=q(t,"feComposite",{in2:!0,operator:!0}),U(e).forEach(F),this.h()},h(){B(e,"in2","SourceGraphic"),B(e,"operator",n=t[3].split("_")[1])},m(t,n){S(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&B(e,"operator",n)},d(t){t&&F(e)}}}function ha(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?da:"multiply"===t[3]?ua:ca}let a=o(t),l=a(t);return{c(){e=M("filter"),n=M("feFlood"),l.c(),this.h()},l(t){e=q(t,"filter",{id:!0});var r=U(e);n=q(r,"feFlood",{"flood-color":!0}),U(n).forEach(F),l.l(r),r.forEach(F),this.h()},h(){B(n,"flood-color",r=t[2]),B(e,"id",i=t[0][t[1]])},m(t,r){S(t,e,r),j(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&B(n,"flood-color",r),a===(a=o(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&i!==(i=t[0][t[1]])&&B(e,"id",i)},d(t){t&&F(e),l.d()}}}function pa(t){let e,r=Object.keys(t[0]).length,i=r&&sa(t);return{c(){i&&i.c(),e=O()},l(t){i&&i.l(t),e=O()},m(t,n){i&&i.m(t,n),S(t,e,n)},p(t,n){let[o]=n;1&o&&(r=Object.keys(t[0]).length),r?i?i.p(t,o):(i=sa(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:n,o:n,d(t){i&&i.d(t),t&&F(e)}}}function fa(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const ga=class extends Ut{constructor(t){super(),Rt(this,t,fa,pa,d,{svgFiltersMap:0})}};function ma(t,e,n,r){const i=n[t.type];if(!i)return r(Kt(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 l=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)&&(l[o]=t[o]);return{json:l,templateContext:a}}function va(){}function ya(t){return{subscribe:e=>(e(t),va)}}function $a(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function _a(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function ba(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 wa(t){try{return ao(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function xa(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function ka(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,ka.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function Ea(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Ca(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:Ae,JsonStringContents:function(){var t,e,n;for(t=fe,e=[],n=Ve();n!==r;)e.push(n),n=Ve();return ge=t,e=jt(e)}},a=Ae,l="@{",s="}",c="@{}",u="\\",d="?",h=":",p="||",f="&&",g="==",m="!=",v=">=",y=">",$="<=",_="<",b="+",w="-",x="/",k="*",E="%",C="!",A="(",V=")",D=",",P="'",j=".",S="e",F="E",N="true",I="false",M=/^[^}]/,z=/^[^'}]/,T=/^[0-9]/,O=/^[a-zA-Z_0-9.]/,J=/^[a-zA-Z_]/,B=/^[ \t\r\n]/,R=be("@{",!1),U=be("}",!1),W=be("@{}",!1),L=be("\\",!1),H={type:"any"},q=we(["}"],!0,!1),G=be("?",!1),K=be(":",!1),X=be("||",!1),Z=be("&&",!1),Y=be("==",!1),Q=be("!=",!1),tt=be(">=",!1),et=be(">",!1),nt=be("<=",!1),rt=be("<",!1),it=be("+",!1),ot=be("-",!1),at=be("/",!1),lt=be("*",!1),st=be("%",!1),ct=be("!",!1),ut=be("(",!1),dt=be(")",!1),ht=be(",",!1),pt=xe("string"),ft=be("'",!1),gt=we(["'","}"],!0,!1),mt=xe("integer"),vt=we([["0","9"]],!1,!1),yt=xe("number"),$t=be(".",!1),_t=be("e",!1),bt=be("E",!1),wt=xe("boolean"),xt=be("true",!1),kt=be("false",!1),Et=we([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),Ct=xe("identifier"),At=we([["a","z"],["A","Z"],"_"],!1,!1),Vt=xe("whitespace"),Dt=we([" ","\t","\r","\n"],!1,!1),Pt=function(t){return t},jt=function(t){return ba(t)},St=function(t){return t},Ft=function(){return""},Nt=function(){return _e()},It=function(){throw new Error("Error tokenizing '"+t+"'.")},Mt=function(){throw new Error("Error tokenizing '"+t+"'.")},zt=function(t){return t},Tt=function(t){return xa(t)},Ot=function(){throw new Error("Error tokenizing '"+t+"'.")},Jt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Bt=function(t,e){return _a(t,e)},Rt=function(t,e){return _a(t,e)},Ut=function(t,e){return $a(t,e)},Wt=function(t,e){return $a(t,e)},Lt=function(t,e){return $a(t,e)},Ht=function(t,e){return $a(t,e)},qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Gt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Kt=function(t){return{type:"Variable",id:t}},Xt=function(t,e){return[t,...e]},Zt=function(t){return t},Yt=function(t){return t},Qt=function(t){return ba(t)},te=function(t){return t},ee=function(){return""},ne=function(){return _e()},re=function(){throw new Error("Error tokenizing '"+t+"'.")},ie=function(){throw new Error("Error tokenizing '"+t+"'.")},oe=function(t){return t},ae=function(t){return xa(t)},le=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){return{type:"IntegerLiteral",value:wa(_e())}},ce=function(){return{type:"NumberLiteral",value:parseFloat(_e())}},ue=function(){return{type:"NumberLiteral",value:parseFloat(_e())}},de=function(){return{type:"BooleanLiteral",value:!0}},he=function(){return{type:"BooleanLiteral",value:!1}},pe=function(){return{type:"Identifier",name:_e()}},fe=0,ge=0,me=[{line:1,column:1}],ve=0,ye=[],$e=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function _e(){return t.substring(ge,fe)}function be(t,e){return{type:"literal",text:t,ignoreCase:e}}function we(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function xe(t){return{type:"other",description:t}}function ke(e){var n,r=me[e];if(r)return r;for(n=e-1;!me[n];)n--;for(r={line:(r=me[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return me[e]=r,r}function Ee(t,e,n){var r=ke(t),o=ke(e),a={source:i,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:o.line,column:o.column}};return n&&i&&"function"==typeof i.offset&&(a.start=i.offset(a.start),a.end=i.offset(a.end)),a}function Ce(t){fe<ve||(fe>ve&&(ve=fe,ye=[]),ye.push(t))}function Ae(){var t,e;return t=fe,Be(),(e=De())!==r?(Be(),ge=t,t=Pt(e)):(fe=t,t=r),t}function Ve(){var e,n,i,o,a;if(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ce(R)),n!==r?(i=Be(),(o=De())!==r?(Be(),125===t.charCodeAt(fe)?(a=s,fe++):(a=r,0===$e&&Ce(U)),a!==r?(ge=e,e=St(o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,t.substr(fe,3)===c?(n=c,fe+=3):(n=r,0===$e&&Ce(W)),n!==r&&(ge=e,n=Ft()),(e=n)===r&&(e=fe,n=fe,$e++,92===t.charCodeAt(fe)?(i=u,fe++):(i=r,0===$e&&Ce(L)),i===r&&(t.substr(fe,2)===l?(i=l,fe+=2):(i=r,0===$e&&Ce(R))),$e--,i===r?n=void 0:(fe=n,n=r),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=Nt()):(fe=e,e=r)):(fe=e,e=r),e===r))){if(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ce(R)),n!==r){if(i=[],M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(q)),o!==r)for(;o!==r;)i.push(o),M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(q));else i=r;i!==r?(125===t.charCodeAt(fe)?(o=s,fe++):(o=r,0===$e&&Ce(U)),o!==r?(ge=e,e=It()):(fe=e,e=r)):(fe=e,e=r)}else fe=e,e=r;e===r&&(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ce(R)),n!==r&&(ge=e,n=Mt()),(e=n)===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ce(L)),n!==r?(t.substr(fe,2)===l?(i=l,fe+=2):(i=r,0===$e&&Ce(R)),i!==r?(ge=e,e=zt(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ce(L)),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=Tt(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ce(L)),n!==r&&(ge=e,n=Ot()),e=n))))}return e}function De(){var e,n,i,o,a,l;return e=fe,(n=Pe())!==r?(Be(),63===t.charCodeAt(fe)?(i=d,fe++):(i=r,0===$e&&Ce(G)),i!==r?(Be(),(o=De())!==r?(Be(),58===t.charCodeAt(fe)?(a=h,fe++):(a=r,0===$e&&Ce(K)),a!==r?(Be(),(l=De())!==r?(ge=e,e=Jt(n,o,l)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=Pe()),e}function Pe(){var e,n,i,o,a,l,s,c;if(e=fe,(n=je())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===p?(l=p,fe+=2):(l=r,0===$e&&Ce(X)),l!==r?(s=Be(),(c=je())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===p?(l=p,fe+=2):(l=r,0===$e&&Ce(X)),l!==r?(s=Be(),(c=je())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Bt(n,i)}else fe=e,e=r;return e}function je(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Se())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===f?(l=f,fe+=2):(l=r,0===$e&&Ce(Z)),l!==r?(s=Be(),(c=Se())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===f?(l=f,fe+=2):(l=r,0===$e&&Ce(Z)),l!==r?(s=Be(),(c=Se())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Rt(n,i)}else fe=e,e=r;return e}function Se(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Fe())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===g?(l=g,fe+=2):(l=r,0===$e&&Ce(Y)),l===r&&(t.substr(fe,2)===m?(l=m,fe+=2):(l=r,0===$e&&Ce(Q))),l!==r?(s=Be(),(c=Fe())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===g?(l=g,fe+=2):(l=r,0===$e&&Ce(Y)),l===r&&(t.substr(fe,2)===m?(l=m,fe+=2):(l=r,0===$e&&Ce(Q))),l!==r?(s=Be(),(c=Fe())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Ut(n,i)}else fe=e,e=r;return e}function Fe(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Ne())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===v?(l=v,fe+=2):(l=r,0===$e&&Ce(tt)),l===r&&(62===t.charCodeAt(fe)?(l=y,fe++):(l=r,0===$e&&Ce(et)),l===r&&(t.substr(fe,2)===$?(l=$,fe+=2):(l=r,0===$e&&Ce(nt)),l===r&&(60===t.charCodeAt(fe)?(l=_,fe++):(l=r,0===$e&&Ce(rt))))),l!==r?(s=Be(),(c=Ne())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===v?(l=v,fe+=2):(l=r,0===$e&&Ce(tt)),l===r&&(62===t.charCodeAt(fe)?(l=y,fe++):(l=r,0===$e&&Ce(et)),l===r&&(t.substr(fe,2)===$?(l=$,fe+=2):(l=r,0===$e&&Ce(nt)),l===r&&(60===t.charCodeAt(fe)?(l=_,fe++):(l=r,0===$e&&Ce(rt))))),l!==r?(s=Be(),(c=Ne())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Wt(n,i)}else fe=e,e=r;return e}function Ne(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Ie())!==r){for(i=[],o=fe,a=Be(),43===t.charCodeAt(fe)?(l=b,fe++):(l=r,0===$e&&Ce(it)),l===r&&(45===t.charCodeAt(fe)?(l=w,fe++):(l=r,0===$e&&Ce(ot))),l!==r?(s=Be(),(c=Ie())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),43===t.charCodeAt(fe)?(l=b,fe++):(l=r,0===$e&&Ce(it)),l===r&&(45===t.charCodeAt(fe)?(l=w,fe++):(l=r,0===$e&&Ce(ot))),l!==r?(s=Be(),(c=Ie())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Lt(n,i)}else fe=e,e=r;return e}function Ie(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Me())!==r){for(i=[],o=fe,a=Be(),47===t.charCodeAt(fe)?(l=x,fe++):(l=r,0===$e&&Ce(at)),l===r&&(42===t.charCodeAt(fe)?(l=k,fe++):(l=r,0===$e&&Ce(lt)),l===r&&(37===t.charCodeAt(fe)?(l=E,fe++):(l=r,0===$e&&Ce(st)))),l!==r?(s=Be(),(c=Me())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),47===t.charCodeAt(fe)?(l=x,fe++):(l=r,0===$e&&Ce(at)),l===r&&(42===t.charCodeAt(fe)?(l=k,fe++):(l=r,0===$e&&Ce(lt)),l===r&&(37===t.charCodeAt(fe)?(l=E,fe++):(l=r,0===$e&&Ce(st)))),l!==r?(s=Be(),(c=Me())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Ht(n,i)}else fe=e,e=r;return e}function Me(){var e,n,i;return(e=Oe())===r&&(e=Te())===r&&(e=fe,33===t.charCodeAt(fe)?(n=C,fe++):(n=r,0===$e&&Ce(ct)),n===r&&(43===t.charCodeAt(fe)?(n=b,fe++):(n=r,0===$e&&Ce(it)),n===r&&(45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ce(ot)))),n!==r?(Be(),(i=Me())!==r?(ge=e,e=qt(n,i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=fe,(n=Je())!==r?(Be(),40===t.charCodeAt(fe)?(i=A,fe++):(i=r,0===$e&&Ce(ut)),i!==r?(Be(),o=function(){var e,n,i,o,a,l;if(e=fe,(n=De())!==r){for(i=[],o=fe,Be(),44===t.charCodeAt(fe)?(a=D,fe++):(a=r,0===$e&&Ce(ht)),a!==r?(Be(),(l=De())!==r?o=l:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,Be(),44===t.charCodeAt(fe)?(a=D,fe++):(a=r,0===$e&&Ce(ht)),a!==r?(Be(),(l=De())!==r?o=l:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Xt(n,i)}else fe=e,e=r;return e===r&&(e=Be()),e}(),o!==r?(Be(),41===t.charCodeAt(fe)?(a=V,fe++):(a=r,0===$e&&Ce(dt)),a!==r?(ge=e,e=Gt(n,o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,(n=Je())!==r&&(ge=e,n=Kt(n)),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return $e++,e=fe,39===t.charCodeAt(fe)?(n=P,fe++):(n=r,0===$e&&Ce(ft)),n!==r?(i=function(){var t,e,n;for(t=fe,e=[],n=ze();n!==r;)e.push(n),n=ze();return ge=t,t=e=Qt(e)}(),39===t.charCodeAt(fe)?(o=P,fe++):(o=r,0===$e&&Ce(ft)),o!==r?(ge=e,e=Yt(i)):(fe=e,e=r)):(fe=e,e=r),$e--,e===r&&(n=r,0===$e&&Ce(pt)),e}(),e===r&&(e=Oe())===r&&(e=Te())===r&&(e=function(){var e,n;return $e++,e=fe,t.substr(fe,4)===N?(n=N,fe+=4):(n=r,0===$e&&Ce(xt)),n!==r&&(ge=e,n=de()),(e=n)===r&&(e=fe,t.substr(fe,5)===I?(n=I,fe+=5):(n=r,0===$e&&Ce(kt)),n!==r&&(ge=e,n=he()),e=n),$e--,e===r&&(n=r,0===$e&&Ce(wt)),e}(),e===r&&(e=fe,40===t.charCodeAt(fe)?(n=A,fe++):(n=r,0===$e&&Ce(ut)),n!==r&&(i=De())!==r?(41===t.charCodeAt(fe)?(o=V,fe++):(o=r,0===$e&&Ce(dt)),o!==r?(ge=e,e=Zt(i)):(fe=e,e=r)):(fe=e,e=r))),e}())),e}())),e}function ze(){var e,n,i,o,a;if(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ce(R)),n!==r?(i=Be(),(o=De())!==r?(Be(),125===t.charCodeAt(fe)?(a=s,fe++):(a=r,0===$e&&Ce(U)),a!==r?(ge=e,e=te(o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,t.substr(fe,3)===c?(n=c,fe+=3):(n=r,0===$e&&Ce(W)),n!==r&&(ge=e,n=ee()),(e=n)===r&&(e=fe,n=fe,$e++,92===t.charCodeAt(fe)?(i=u,fe++):(i=r,0===$e&&Ce(L)),i===r&&(39===t.charCodeAt(fe)?(i=P,fe++):(i=r,0===$e&&Ce(ft)),i===r&&(t.substr(fe,2)===l?(i=l,fe+=2):(i=r,0===$e&&Ce(R)))),$e--,i===r?n=void 0:(fe=n,n=r),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=ne()):(fe=e,e=r)):(fe=e,e=r),e===r))){if(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ce(R)),n!==r){if(i=[],z.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(gt)),o!==r)for(;o!==r;)i.push(o),z.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(gt));else i=r;i!==r?(125===t.charCodeAt(fe)?(o=s,fe++):(o=r,0===$e&&Ce(U)),o!==r?(ge=e,e=re()):(fe=e,e=r)):(fe=e,e=r)}else fe=e,e=r;e===r&&(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ce(R)),n!==r&&(ge=e,n=ie()),(e=n)===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ce(L)),n!==r?(t.substr(fe,2)===l?(i=l,fe+=2):(i=r,0===$e&&Ce(R)),i!==r?(ge=e,e=oe(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ce(L)),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ce(H)),i!==r?(ge=e,e=ae(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ce(L)),n!==r&&(ge=e,n=le()),e=n))))}return e}function Te(){var e,n,i,o;if($e++,e=fe,45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ce(ot)),n===r&&(n=null),i=[],T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(vt)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(vt));else i=r;return i!==r?(ge=e,e=se()):(fe=e,e=r),$e--,e===r&&(n=r,0===$e&&Ce(mt)),e}function Oe(){var e,n,i,o,a,l,s,c,u,d;for($e++,e=fe,45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ce(ot)),n===r&&(n=null),i=[],T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(vt));o!==r;)i.push(o),T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(vt));if(46===t.charCodeAt(fe)?(o=j,fe++):(o=r,0===$e&&Ce($t)),o!==r){if(a=[],T.test(t.charAt(fe))?(l=t.charAt(fe),fe++):(l=r,0===$e&&Ce(vt)),l!==r)for(;l!==r;)a.push(l),T.test(t.charAt(fe))?(l=t.charAt(fe),fe++):(l=r,0===$e&&Ce(vt));else a=r;if(a!==r){if(l=fe,101===t.charCodeAt(fe)?(s=S,fe++):(s=r,0===$e&&Ce(_t)),s===r&&(69===t.charCodeAt(fe)?(s=F,fe++):(s=r,0===$e&&Ce(bt))),s!==r){if(43===t.charCodeAt(fe)?(c=b,fe++):(c=r,0===$e&&Ce(it)),c===r&&(45===t.charCodeAt(fe)?(c=w,fe++):(c=r,0===$e&&Ce(ot))),c===r&&(c=null),u=[],T.test(t.charAt(fe))?(d=t.charAt(fe),fe++):(d=r,0===$e&&Ce(vt)),d!==r)for(;d!==r;)u.push(d),T.test(t.charAt(fe))?(d=t.charAt(fe),fe++):(d=r,0===$e&&Ce(vt));else u=r;u!==r?l=s=[s,c,u]:(fe=l,l=r)}else fe=l,l=r;l===r&&(l=null),ge=e,e=ce()}else fe=e,e=r}else fe=e,e=r;if(e===r){if(e=fe,45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ce(ot)),n===r&&(n=null),i=[],T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(vt)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(vt));else i=r;if(i!==r)if(101===t.charCodeAt(fe)?(o=S,fe++):(o=r,0===$e&&Ce(_t)),o===r&&(69===t.charCodeAt(fe)?(o=F,fe++):(o=r,0===$e&&Ce(bt))),o!==r){if(43===t.charCodeAt(fe)?(a=b,fe++):(a=r,0===$e&&Ce(it)),a===r&&(45===t.charCodeAt(fe)?(a=w,fe++):(a=r,0===$e&&Ce(ot))),a===r&&(a=null),l=[],T.test(t.charAt(fe))?(s=t.charAt(fe),fe++):(s=r,0===$e&&Ce(vt)),s!==r)for(;s!==r;)l.push(s),T.test(t.charAt(fe))?(s=t.charAt(fe),fe++):(s=r,0===$e&&Ce(vt));else l=r;l!==r?(ge=e,e=ue()):(fe=e,e=r)}else fe=e,e=r;else fe=e,e=r}return $e--,e===r&&(n=r,0===$e&&Ce(yt)),e}function Je(){var e,n,i,o,a;if($e++,e=fe,n=fe,$e++,i=function(){var e,n,i,o;return e=fe,t.substr(fe,4)===N?(n=N,fe+=4):(n=r,0===$e&&Ce(xt)),n===r&&(t.substr(fe,5)===I?(n=I,fe+=5):(n=r,0===$e&&Ce(kt))),n!==r?(i=fe,$e++,O.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ce(Et)),$e--,o===r?i=void 0:(fe=i,i=r),i!==r?e=n=[n,i]:(fe=e,e=r)):(fe=e,e=r),e}(),$e--,i===r?n=void 0:(fe=n,n=r),n!==r)if(J.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ce(At)),i!==r){for(o=[],O.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=r,0===$e&&Ce(Et));a!==r;)o.push(a),O.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=r,0===$e&&Ce(Et));ge=e,e=pe()}else fe=e,e=r;else fe=e,e=r;return $e--,e===r&&(n=r,0===$e&&Ce(Ct)),e}function Be(){var e,n;for($e++,e=[],B.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=r,0===$e&&Ce(Dt));n!==r;)e.push(n),B.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=r,0===$e&&Ce(Dt));return $e--,n=r,0===$e&&Ce(Vt),e}if((n=a())!==r&&fe===t.length)return n;throw n!==r&&fe<t.length&&Ce({type:"end"}),function(t,e,n){return new ka(ka.buildMessage(t,e),t,e,n)}(ye,ve<t.length?t.charAt(ve):null,ve<t.length?Ee(ve,ve+1):Ee(ve,ve))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(ka,Error),ka.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 l=this.location.end,s=Ea("",o.line.toString().length," "),c=r[i.line-1],u=(i.line===l.line?l.column:c.length+1)-i.column||1;e+="\n --\x3e "+a+"\n"+s+" |\n"+o.line+" | "+c+"\n"+s+" | "+Ea("",i.column-1," ")+Ea("",u,"^")}else e+="\n at "+a}return e},ka.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 Aa=new Map,Va=new Map;function Da(t,e,n){const r={args:e,cb:n},i=Aa.get(t)||[];Aa.has(t)||Aa.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Va.set(o,r)}function Pa(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 ja(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=>{ja(t,e)}));break;case"BinaryExpression":case"LogicalExpression":ja(t.left,e),ja(t.right,e);break;case"UnaryExpression":ja(t.argument,e);break;case"ConditionalExpression":ja(t.test,e),ja(t.consequent,e),ja(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{ja(t,e)}))}}function Sa(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function Fa(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Na(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 Fa(t.value);if("color"===t.type)return Ra(Ba(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";throw new Error("Unexpected type ".concat(t.type))}function Ia(t){let e=Na(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function Ma(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function za(t,e){if(no)return ao(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function Ta(t,e){if(e<oo||e>io)throw new Error("Integer overflow.");!no&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function Oa(t){const e=[];return ja(t,{Variable(t){e.push(t.id.name)}}),e}function Ja(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function Ba(t){const e=re(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function Ra(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 ee(Math.round(t).toString(16),2)})).join("").toUpperCase())}function Ua(t){return Ra(Ba(t))}const Wa=Number.MAX_VALUE,La=Number.MIN_VALUE,Ha="string",qa="integer",Ga="number",Ka="boolean",Xa="color",Za="url",Ya="datetime",Qa="dict";function tl(t,e){return{type:Ha,value:Na(e)}}function el(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:Ga,value:n}}function nl(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=Ua(o)),{type:r,value:o}}function rl(t,e,n){return nl(t,e,n,n.type)}function il(t,e,n){return nl(t,e,n,"color")}function ol(t,e,n){return nl(t,e,n,"url")}const al=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:qa,value:r}},ll=al("getUTCFullYear"),sl=al("getUTCMonth"),cl=al("getUTCDate"),ul=al("getUTCDay"),dl=al("getUTCHours"),hl=al("getUTCMinutes"),pl=al("getUTCSeconds"),fl=al("getUTCMilliseconds");function gl(t,e,n,r){if(!r.value.length)return t.warnings.push(Kt(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===Ha?e.value:Na(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 ml(t,e,n,r){const i=gl(t,e,n,r);return{type:Ha,value:i+Na(e)}}function vl(t,e,n,r){const i=gl(t,e,n,r);return{type:Ha,value:Na(e)+i}}function yl(t){return(e,n)=>{const r=Ba(n.value);return{type:Ga,value:r[t]/255}}}function $l(t){return(e,n,r)=>{const i=Ba(n.value);return i[t]=255*r.value,{type:Xa,value:Ra(i)}}}const _l=yl("a"),bl=yl("r"),wl=yl("g"),xl=yl("b"),kl=$l("a"),El=$l("r"),Cl=$l("g"),Al=$l("b");function Vl(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=ao(e.value)/ao(n);return Ta(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=ao(i)%ao(r)),{type:qa,value:i}}const Dl=36e5;function Pl(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 l=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))),s=typeof l;if(s!==t)throw"object"===s&&(s=Array.isArray(l)?"array":null===l?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(s,'".'));if("number"===t&&"integer"===e){if(l!==Math.round(l))throw new Error("Cannot convert value to integer.");Ta(n,l)}return"string"===t&&"color"===e&&(l=Ua(l)),{type:e,value:l}}}function jl(t,e){return function(n,r,i){try{for(var o=arguments.length,a=new Array(o>3?o-3:0),l=3;l<o;l++)a[l-3]=arguments[l];return t(n,i,...a)}catch(t){let n=r.value;return"color"===e&&(n=Ua(n)),{type:e,value:n}}}}const Sl=Pl("string","string"),Fl=Pl("number","number"),Nl=Pl("number","integer"),Il=Pl("boolean","boolean"),Ml=Pl("string","color"),zl=Pl("string","url"),Tl=jl(Sl,"string"),Ol=jl(Fl,"number"),Jl=jl(Nl,"integer"),Bl=jl(Il,"boolean"),Rl=jl(Ml,"color"),Ul=jl(zl,"url");function Wl(t){return t.map(Ia).join(", ")}Da("toString",[qa],tl),Da("toString",[Ga],tl),Da("toString",[Ka],tl),Da("toString",[Xa],tl),Da("toString",[Za],tl),Da("toNumber",[qa],el),Da("toNumber",[Ha],el),Da("toInteger",[Ga],(function(t,e){if(e.value>io||e.value<oo)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:qa,value:ao(n)}})),Da("toInteger",[Ha],(function(t,e){let n;try{n=ao(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>io||n<oo)throw new Error("Unable to convert value to Integer.");return{type:qa,value:n}})),Da("toInteger",[Ka],(function(t,e){return{type:qa,value:ao(e.value?1:0)}})),Da("toBoolean",[qa],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:Ka,value:n}})),Da("toBoolean",[Ha],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:Ka,value:"true"===e.value?1:0}})),Da("toColor",[Ha],(function(t,e){return{type:Xa,value:Ua(e.value)}})),Da("toUrl",[Ha],(function(t,e){return{type:Za,value:e.value}})),Da("encodeUri",[Ha],(function(t,e){try{return{type:Ha,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Da("decodeUri",[Ha],(function(t,e){try{return{type:Ha,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Da("getIntegerValue",[Ha,qa],rl),Da("getNumberValue",[Ha,Ga],rl),Da("getBooleanValue",[Ha,Ka],rl),Da("getStringValue",[Ha,Ha],rl),Da("getColorValue",[Ha,Xa],il),Da("getColorValue",[Ha,Ha],il),Da("getUrlValue",[Ha,Za],ol),Da("getUrlValue",[Ha,Ha],ol),Da("parseUnixTime",[qa],(function(t,e){return{type:Ya,value:new Date(1e3*Number(e.value))}})),Da("nowLocal",[],(function(){return{type:Ya,value:new Date}})),Da("addMillis",[Ya,qa],(function(t,e,n){return{type:Ya,value:new Date(e.value.getTime()+Number(n.value))}})),Da("setYear",[Ya,qa],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:Ya,value:r}})),Da("setMonth",[Ya,qa],(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:Ya,value:i}})),Da("setDay",[Ya,qa],(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(Na(e),"."));return r.setUTCDate(-1===i?0:i),{type:Ya,value:r}})),Da("setHours",[Ya,qa],(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:Ya,value:i}})),Da("setMinutes",[Ya,qa],(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:Ya,value:i}})),Da("setSeconds",[Ya,qa],(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:Ya,value:i}})),Da("setMillis",[Ya,qa],(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:Ya,value:i}})),Da("getYear",[Ya],ll),Da("getMonth",[Ya],sl),Da("getDay",[Ya],cl),Da("getDayOfWeek",[Ya],ul),Da("getHours",[Ya],dl),Da("getMinutes",[Ya],hl),Da("getSeconds",[Ya],pl),Da("getMillis",[Ya],fl),Da("getIntervalSeconds",[qa],(function(t,e){return Vl(t,e,1e3,60)})),Da("getIntervalTotalSeconds",[qa],(function(t,e){return Vl(t,e,1e3)})),Da("getIntervalMinutes",[qa],(function(t,e){return Vl(t,e,6e4,60)})),Da("getIntervalTotalMinutes",[qa],(function(t,e){return Vl(t,e,6e4)})),Da("getIntervalHours",[qa],(function(t,e){return Vl(t,e,Dl,24)})),Da("getIntervalTotalHours",[qa],(function(t,e){return Vl(t,e,Dl)})),Da("getIntervalTotalDays",[qa],(function(t,e){return Vl(t,e,864e5)})),Da("getIntervalTotalWeeks",[qa],(function(t,e){return Vl(t,e,6048e5)})),Da("len",[Ha],(function(t,e){return{type:qa,value:e.value.length}})),Da("contains",[Ha,Ha],(function(t,e,n){return{type:Ka,value:e.value.includes(n.value)?1:0}})),Da("substring",[Ha,qa,qa],(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:Ha,value:e.value.substring(Number(n.value),Number(r.value))}})),Da("replaceAll",[Ha,Ha,Ha],(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:Ha,value:i}})),Da("index",[Ha,Ha],(function(t,e,n){return{type:qa,value:e.value.indexOf(n.value)}})),Da("lastIndex",[Ha,Ha],(function(t,e,n){return{type:qa,value:e.value.lastIndexOf(n.value)}})),Da("trim",[Ha],(function(t,e){return{type:Ha,value:e.value.trim()}})),Da("trimLeft",[Ha],(function(t,e){return{type:Ha,value:e.value.replace(/^\s+/,"")}})),Da("trimRight",[Ha],(function(t,e){return{type:Ha,value:e.value.replace(/\s+$/,"")}})),Da("toUpperCase",[Ha],(function(t,e){return{type:Ha,value:e.value.toUpperCase()}})),Da("toLowerCase",[Ha],(function(t,e){return{type:Ha,value:e.value.toLowerCase()}})),Da("padStart",[Ha,qa,Ha],ml),Da("padStart",[qa,qa,Ha],ml),Da("padEnd",[Ha,qa,Ha],vl),Da("padEnd",[qa,qa,Ha],vl),Da("testRegex",[Ha,Ha],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:Ka,value:r.test(e.value)?1:0}})),Da("div",[qa,qa],(function(t,e,n){if(n.value===lo)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=za(0,r),Ta(t,r),{type:qa,value:r}})),Da("div",[Ga,Ga],(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:Ga,value:r}})),Da("mod",[qa,qa],(function(t,e,n){if(n.value===lo)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=za(0,r),Ta(t,r),{type:qa,value:r}})),Da("mod",[Ga,Ga],(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:Ga,value:r}})),Da("mul",[{type:qa,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:lo;for(let e=1;e<n.length;++e)i*=n[e].value,i=za(0,i),Ta(t,i);return{type:qa,value:i}})),Da("mul",[{type:Ga,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:Ga,value:i}})),Da("sub",[{type:qa,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:lo;for(let e=1;e<n.length;++e)i-=n[e].value,i=za(0,i),Ta(t,i);return{type:qa,value:i}})),Da("sub",[{type:Ga,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:Ga,value:i}})),Da("sum",[{type:qa,isVararg:!0}],(function(t){let e=lo;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=za(0,e),Ta(t,e);return{type:qa,value:e}})),Da("sum",[{type:Ga,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:Ga,value:e}})),Da("abs",[qa],(function(t,e){const n=so(e.value);return Ta(t,n),{type:e.type,value:n}})),Da("abs",[Ga],(function(t,e){const n=Math.abs(e.value);return{type:Ga,value:n}})),Da("max",[{type:qa,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:qa,value:i}})),Da("max",[{type:Ga,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:Ga,value:Math.max(...n.map((t=>t.value)))}})),Da("min",[{type:qa,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:qa,value:i}})),Da("min",[{type:Ga,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:Ga,value:Math.min(...n.map((t=>t.value)))}})),Da("maxNumber",[],(function(){return{type:Ga,value:Wa}})),Da("minNumber",[],(function(){return{type:Ga,value:La}})),Da("maxInteger",[],(function(t){return Ta(t,io),{type:qa,value:io}})),Da("minInteger",[],(function(t){return Ta(t,oo),{type:qa,value:oo}})),Da("round",[Ga],(function(t,e){const n=Math.sign(e.value);return{type:Ga,value:n*Math.round(Math.abs(e.value))}})),Da("floor",[Ga],(function(t,e){return{type:Ga,value:Math.floor(e.value)}})),Da("ceil",[Ga],(function(t,e){return{type:Ga,value:Math.ceil(e.value)}})),Da("signum",[qa],(function(t,e){return{type:qa,value:co(e.value)}})),Da("signum",[Ga],(function(t,e){return{type:Ga,value:Math.sign(e.value)}})),Da("copySign",[qa,qa],(function(t,e,n){let r;if(n.value===lo)r=e.value;else if(e.value===lo)r=0;else{const t=co(n.value);r=so(e.value)*t}return Ta(t,r),{type:qa,value:r}})),Da("copySign",[Ga,Ga],(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:Ga,value:i}})),Da("getColorAlpha",[Ha],_l),Da("getColorAlpha",[Xa],_l),Da("getColorRed",[Ha],bl),Da("getColorRed",[Xa],bl),Da("getColorGreen",[Ha],wl),Da("getColorGreen",[Xa],wl),Da("getColorBlue",[Ha],xl),Da("getColorBlue",[Xa],xl),Da("setColorAlpha",[Ha,Ga],kl),Da("setColorAlpha",[Xa,Ga],kl),Da("setColorRed",[Ha,Ga],El),Da("setColorRed",[Xa,Ga],El),Da("setColorGreen",[Ha,Ga],Cl),Da("setColorGreen",[Xa,Ga],Cl),Da("setColorBlue",[Ha,Ga],Al),Da("setColorBlue",[Xa,Ga],Al),Da("rgb",[Ga,Ga,Ga],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:Xa,value:Ra(i)}})),Da("argb",[Ga,Ga,Ga,Ga],(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:Xa,value:Ra(o)}})),Da("getDictString",[Qa,{type:Ha,isVararg:!0}],Sl),Da("getDictNumber",[Qa,{type:Ha,isVararg:!0}],Fl),Da("getDictInteger",[Qa,{type:Ha,isVararg:!0}],Nl),Da("getDictBoolean",[Qa,{type:Ha,isVararg:!0}],Il),Da("getDictColor",[Qa,{type:Ha,isVararg:!0}],Ml),Da("getDictUrl",[Qa,{type:Ha,isVararg:!0}],zl),Da("getDictOptString",[Ha,Qa,{type:Ha,isVararg:!0}],Tl),Da("getDictOptNumber",[Ga,Qa,{type:Ha,isVararg:!0}],Ol),Da("getDictOptInteger",[qa,Qa,{type:Ha,isVararg:!0}],Jl),Da("getDictOptBoolean",[Ka,Qa,{type:Ha,isVararg:!0}],Bl),Da("getDictOptColor",[Xa,Qa,{type:Ha,isVararg:!0}],Rl),Da("getDictOptColor",[Ha,Qa,{type:Ha,isVararg:!0}],Rl),Da("getDictOptUrl",[Ha,Qa,{type:Ha,isVararg:!0}],Ul),Da("getDictOptUrl",[Za,Qa,{type:Ha,isVararg:!0}],Ul);const Ll={StringLiteral:function(t,e){return{type:Ha,value:e.value}},NumberLiteral:function(t,e){return{type:Ga,value:e.value}},IntegerLiteral:function(t,e){return Ta(t,e.value),{type:qa,value:e.value}},BooleanLiteral:function(t,e){return{type:Ka,value:e.value?1:0}},UnaryExpression:function(t,e){const n=Sa(Hl(t,e.argument));switch(e.operator){case"!":if(n.type===Ka)return{type:Ka,value:n.value?0:1};Ja("".concat(e.operator).concat(Ia(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===qa){const e=n.value*ao(r);return Ta(t,e),{type:qa,value:e}}if(n.type===Ga)return{type:Ga,value:n.value*r};Ja("".concat(e.operator).concat(Ia(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=Sa(Hl(t,e.test));if(n.type===Ka)return n.value?Hl(t,e.consequent):Hl(t,e.alternate);Ja("".concat(Ia(n)," ? ").concat(Ia(Hl(t,e.consequent))," : ").concat(Ia(Hl(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Hl(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=Na(Hl(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:Ha,value:n}},LogicalExpression:function(t,e){const n=Sa(Hl(t,e.left));if(n.type!==Ka&&Ja("".concat(Ia(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:Ka,value:0};const r=Sa(Hl(t,e.right));return r.type!==Ka&&Ja("".concat(Ia(n)," ").concat(e.operator," ").concat(Ia(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(Ma(r.type),".")),{type:Ka,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=Hl(t,e.left),i=Hl(t,e.right);if(r.type!==i.type&&Ja("".concat(Ia(r)," ").concat(e.operator," ").concat(Ia(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(Ma(r.type)," and ").concat(Ma(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===Ya&&n.type===Ya?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:Ka,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==Ga&&e.type!==qa&&e.type!==Ya&&Ja("".concat(Ia(e)," ").concat(t," ").concat(Ia(n)),"Operator '".concat(t,"' cannot be applied to ").concat(Ma(e.type)," type."));const i=e.type===Ya?e.value.getTime():e.value,o=n.type===Ya?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:Ka,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==Ha&&n.type!==Ga&&n.type!==qa&&Ja("".concat(Ia(n)," ").concat(e," ").concat(Ia(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Ma(n.type)," type.")),n.type===Ha)return"-"===e&&Ja("".concat(Ia(n)," - ").concat(Ia(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Ma(n.type)," type.")),{type:Ha,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===qa)try{i=za(0,i),Ta(t,i)}catch(t){Ja("".concat(Ia(n)," ").concat(e," ").concat(Ia(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!==qa&&n.type!==Ga&&Ja("".concat(Ia(n)," ").concat(e," ").concat(Ia(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Ma(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&Ja("".concat(Ia(n)," ").concat(e," ").concat(Ia(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===qa)try{i=za(0,i),Ta(t,i)}catch(t){Ja("".concat(Ia(n)," ").concat(e," ").concat(Ia(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=>Hl(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if(Va.has(o))r=Va.get(o);else{const t=function(t,e){const n=Aa.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=Pa(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=>Ma(t.type))).join(", "),r="".concat(n,"(").concat(Wl(i),")");"few"===t.type&&0===i.length?Ja(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?Ja(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):Ja(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){Ja("".concat(n,"(").concat(Wl(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 Hl(t,e){if(e.type in Ll)return Ll[e.type](t,e);throw new Error("Unsupported expression")}function ql(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1};!function(t,e){let n="";if(ja(e,{Variable(e){n||t.variables.has(e.id.name)||(n=e.id.name)}}),n)throw new Error("Variable '".concat(n,"' is missing."))}(n,e);const r=Hl(n,e);return n.safeIntegerOverflow&&n.warnings.push(Kt(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 Gl{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return ja(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=ql(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(Kt(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return Fa(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=re(String(i));if(t)return Ra(t);e(Kt(new Error("Expression execution error")))}return"integer"===r.type?i>2147483647||i<-2147483648?void e(Kt(new Error("Expression result is out of 32-bit int range"))):Number(i):i}catch(t){return void e(Kt(new Error("Expression execution error")))}}}function Kl(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Ca(t,{startRule:"JsonStringContents"}),r=Oa(n);return e.vars.push(...r),new Gl(n)}catch(e){return void n(Kt(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Kl(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Kl(t[i],e,n);return r}}var r;return t}function Xl(t,e,n){if(t){if(t instanceof Gl)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>Xl(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Xl(t[i],e,n);return r}}return t}function Zl(t,e){const n={vars:[],hasExpression:!1},r=Kl(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>Xl(r,t,e)}}const Yl={pagers:function(){return Lt(new Map)}},Ql=new Map,ts=new Map;function es(t){const e=Ql.get(t)||Lt("");return Ql.has(t)||Ql.set(t,e),e}function ns(t){const e=ts.get(t)||new Map;return ts.has(t)||ts.set(t,e),e}class rs{setVariable(t){const e=t.getName(),n=ns(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),es(this).set(e)}getVariable(t){return ns(this).get(t)}}function is(){return new rs}function os(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 as=new Set(["start","stop","pause","resume","cancel","reset"]);class ls{constructor(t){os(this,"timers",new Map),os(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(Kt(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(Kt(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&as.has(e)))return void this.logError(Kt(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(Kt(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(Kt(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(Kt(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(Kt(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(Kt(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(Kt(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(Kt(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(Kt(new Error("The timer is already running"))):this.logError(Kt(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 ss(t){let e,n,r,i,o,a,l,s;return n=new ga({props:{svgFiltersMap:t[2]}}),i=new oa({props:{div:t[3],templateContext:t[6]}}),{c(){e=I("div"),Tt(n.$$.fragment),r=T(),Tt(i.$$.fragment),this.h()},l(t){e=H(t,"DIV",{class:!0});var o=U(e);Ot(n.$$.fragment,o),r=K(o),Ot(i.$$.fragment,o),o.forEach(F),this.h()},h(){B(e,"class",o=""+(qt.root+(t[4]?" ".concat(qt.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){S(t,e,o),Jt(n,e,null),j(e,r),Jt(i,e,null),a=!0,l||(s=J(e,"touchstart",us,{passive:!0}),l=!0)},p(t,r){const l={};4&r[0]&&(l.svgFiltersMap=t[2]),n.$set(l);const s={};8&r[0]&&(s.div=t[3]),i.$set(s),(!a||17&r[0]&&o!==(o=""+(qt.root+(t[4]?" ".concat(qt.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&B(e,"class",o)},i(t){a||(Pt(n.$$.fragment,t),Pt(i.$$.fragment,t),a=!0)},o(t){jt(n.$$.fragment,t),jt(i.$$.fragment,t),a=!1},d(t){t&&F(e),Bt(n),Bt(i),l=!1,s()}}}function cs(t){let e,n,r=!t[1]&&t[3]&&ss(t);return{c(){r&&r.c(),e=O()},l(t){r&&r.l(t),e=O()},m(t,i){r&&r.m(t,i),S(t,e,i),n=!0},p(t,n){!t[1]&&t[3]?r?(r.p(t,n),10&n[0]&&Pt(r,1)):(r=ss(t),r.c(),Pt(r,1),r.m(e.parentNode,e)):r&&(Vt(),jt(r,1,1,(()=>{r=null})),Dt())},i(t){n||(Pt(r),n=!0)},o(t){jt(r),n=!1},d(t){r&&r.d(t),t&&F(e)}}}function us(){}function ds(t,e,n){let r;var i,o,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new rs}=e,{mix:p=""}=e,{customization:g={}}=e,{builtinProtocols:m=["http","https","tel","mailto","intent"]}=e,{extensions:v=new Map}=e,{onError:y}=e,{onStat:$}=e,{onCustomAction:_}=e,{onComponent:b}=e,{typefaceProvider:w=(t=>"")}=e,x=Lt("desktop"===u);if(f(t,x,(t=>n(4,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");x.set(!t.matches),t.addListener((()=>{x.set(!t.matches)}))}let k="light",E=null;function C(){"system"===d&&E&&n(23,k=E.matches?"dark":"light")}const A=new Set(m);let V=!1;c||(V=!0,O(Kt(new Error('"json" prop is required')))),s||(V=!0,O(Kt(new Error('"id" prop is required'))));let D=function(t){if(!t)return Kt(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return Kt(new Error("Missing card"));if(!e.states||!e.states.length)return Kt(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in ea)return Kt(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return Kt(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return Kt(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const P=c.templates||{};D&&(V=!0,O(D));const j={stateChange:!1},S=es(h),F=ns(h),N=new Map,I=new Map,M=new Map;let z=null;function T(t){const e=Zl(t,O);return e.hasExpression?e.applyVars(I):t}function O(t){y?y({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function J(t,e){$&&$({type:t,action:e})}let B=0;function R(t){return"".concat(s,"-").concat(B++)}let U={},W={};function L(t){const e=t.url?String(t.url):"";if(e)try{const t=e.replace(/div-action:\/\//,""),n=/([^?]+)\?(.+)/.exec(t);if(!n)return;const r=new URLSearchParams(n[2]);switch(n[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=Y,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}}(r.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=K(t);n&&n.setCurrentItem(Number(e))}(r.get("id"),r.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=K(t);n&&n.setPreviousItem(e)}(r.get("id"),r.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=K(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),i=r.get("value");if(n&&null!==i){const t=I.get(n);t?"dict"===t.getType()?O(Kt(new Error("Setting dict variables is not supported"),{additional:{name:n}})):t.set(i):O(Kt(new Error("Cannot find variable"),{additional:{name:n}}))}else O(Kt(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;case"timer":const o=r.get("action"),a=r.get("id");z?z.execTimerAction(a,o):O(Kt(new Error("Incorrect timer action"),{additional:{id:a,action:o}}));break;case"video":!function(t,e){if(t){const n=K(t);n?"start"===e?n.start():"pause"===e?n.pause():O(Kt(new Error("Unknown video action"),{additional:{id:t,action:e}})):O(Kt(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else O(Kt(new Error("Missing id in video action"),{additional:{action:e}}))}(r.get("id"),r.get("action"));break;default:O(Kt(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){O(Kt(t,{additional:{url:e}}))}}async function H(t,e){if(t&&Array.isArray(t)){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url;if(i){const t=de(i);if(t)if(he(t,A)){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?(L(r),await yt()):r.log_id&&(q(r),await yt())}}t.forEach((t=>{t.log_id&&J("click",t)}))}}function q(t){null==_||_(t)}const G=new Map;function K(t){if(G.has(t))return G.get(t);O(Kt(new Error("Missing instance with id"),{additional:{id:t}}))}const X=new Map;function Z(t){for(const e of t)I.has(e)&&t.delete(e);return t}st(Gt,{logError:O,logStat:J,hasTemplate:function(t){return t in P},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in P;){if(({json:t,templateContext:e}=ma(t,e,P,O)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:R,genClass:function(t){return"divkit-".concat(R())},execAction:L,execAnyActions:H,execCustomAction:q,isRunning:function(t){return j[t]},setRunning:function(t,e){j[t]=e},registerInstance:function(t,e){G.has(t)?O(Kt(new Error("Duplicate instance id"),{additional:{id:t}})):G.set(t,e)},unregisterInstance:function(t){G.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(W[r]=W[r]||0,++W[r],U[r])return U[r];const i="".concat(R(),"-svg-filter");return n(2,U=Object.assign(Object.assign({},U),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);W[r]&&0==--W[r]&&n(2,U=Object.keys(U).reduce(((t,e)=>(W[e]&&(t[e]=U[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return ya(t);const e=Zl(t,O);return e.vars.length?Ht(e.vars.map((t=>I.get(t)||function(t){const e=M.get(t)||Lt(void 0);return M.has(t)||M.set(t,e),e}(t))).filter(oe),(()=>e.applyVars(I))):e.hasExpression?ya(e.applyVars(I)):ya(t)},getJsonWithVars:T,getStore:function(t){return X.has(t)||function(t){X.has(t)||X.set(t,Yl[t]())}(t),X.get(t)},getVariable:function(t,e){const n=I.get(t);if(n){const r=n.getType();if(r!==e)return void O(Kt(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==g?void 0:g[t]},getBuiltinProtocols:function(){return A},getExtension:function(t,e){const n=v.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:I,logError:O}},typefaceProvider:w,isDesktop:x,registerComponent:void 0,unregisterComponent:void 0}),st(Ne,{hasAction:()=>!1});const Y={setState(t){throw new Error("Not implemented")},getChild(t){if(Q&&Q.has(t))return Q.get(t);O(Kt(new Error("Missing state block with id"),{additional:{id:t}}))}};let Q=null;st($e,{registerInstance(t,e){Q||(Q=new Map),Q.has(t)?O(Kt(new Error("Duplicate state with id"),{additional:{id:t}})):Q.set(t,e)},unregisterInstance(t){null==Q||Q.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 tt=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variables;Array.isArray(tt)&&tt.forEach((t=>{if(t&&t.type in ho&&t.name){if(N.has(t.name))return void O(Kt(new Error("Duplicate variable"),{additional:{name:t.name}}));"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&O(Kt(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=po(t.name,t.type,t.value);N.set(t.name,e),I.set(t.name,e)}catch(e){O(Kt(e,{additional:{name:t.name}}))}}}));const et=c.palette;et&&et[k].forEach((t=>{if(N.has(t.name))O(Kt(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=po(t.name,"color",t.color);N.set(t.name,e),I.set(t.name,e)}catch(e){O(Kt(e,{additional:{name:t.name}}))}}));for(const[t,e]of F)I.has(t)||I.set(t,e);S.subscribe((t=>{if(t&&!I.has(t)){const e=F.get(t);I.set(t,e);const n=M.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const nt=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(nt)&&nt.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void O(Kt(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=Ca(t.condition,{startRule:"JsonStringContents"}),i=Oa(r);if(!i.length)return void O(Kt(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return Z(e),e.size?new Promise((t=>{const n=S.subscribe((()=>{Z(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{Ht(i.map((t=>I.get(t))).filter(oe),(()=>{const t=ql(I,r);return t.warnings.forEach(O),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=T(t);e.log_id&&L(e)})),e=Boolean(r.value)):O(Kt(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){O(Kt(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else O(Kt(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const rt=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(rt){const t=z=new ls({logError:O,applyVars:T,hasVariableWithType:function(t,e){const n=I.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=I.get(t);n?n.setValue(e):O(Kt(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:H});rt.forEach((e=>t.createTimer(e)))}const it=null===(l=null==c?void 0:c.card)||void 0===l?void 0:l.states;let ot;return it&&!V&&(ot={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:it.map((t=>({state_id:t.state_id.toString(),div:t.div})))}),lt((()=>{z&&z.destroy()})),t.$$set=t=>{"id"in t&&n(8,s=t.id),"json"in t&&n(9,c=t.json),"platform"in t&&n(10,u=t.platform),"theme"in t&&n(7,d=t.theme),"globalVariablesController"in t&&n(11,h=t.globalVariablesController),"mix"in t&&n(0,p=t.mix),"customization"in t&&n(12,g=t.customization),"builtinProtocols"in t&&n(13,m=t.builtinProtocols),"extensions"in t&&n(14,v=t.extensions),"onError"in t&&n(15,y=t.onError),"onStat"in t&&n(16,$=t.onStat),"onCustomAction"in t&&n(17,_=t.onCustomAction),"onComponent"in t&&n(18,b=t.onComponent),"typefaceProvider"in t&&n(19,w=t.typefaceProvider)},t.$$.update=()=>{16777344&t.$$.dirty[0]&&("light"===d||"dark"===d?n(23,k=d):"system"===d?"undefined"!=typeof matchMedia?(E||(n(24,E=matchMedia("(prefers-color-scheme: dark)")),E.addListener(C)),n(23,k=E.matches?"dark":"light")):n(23,k="light"):O(Kt(new Error("Unsupported theme")))),8388608&t.$$.dirty[0]&&k&&et&&et[k].forEach((t=>{const e=I.get(t.name);e&&e.setValue(t.color)}))},[p,V,U,ot,r,x,{},d,s,c,u,h,g,m,v,y,$,_,b,w,function(t){n(7,d=t)},function(){},L,k,E]}const hs=class extends Ut{constructor(t){super(),Rt(this,t,ds,cs,d,{id:8,json:9,platform:10,theme:7,globalVariablesController:11,mix:0,customization:12,builtinProtocols:13,extensions:14,onError:15,onStat:16,onCustomAction:17,onComponent:18,typefaceProvider:19,setTheme:20,getDebugVariables:21,execAction:22},null,[-1,-1,-1])}get setTheme(){return this.$$.ctx[20]}get getDebugVariables(){return this.$$.ctx[21]}get execAction(){return this.$$.ctx[22]}};class ps{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 yt()}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 fs(t){return t instanceof HTMLElement}function gs(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(fs);r.forEach((t=>{t.style.display="none"})),this.wrapper=document.createElement("div"),this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),o=this.animItem=t({container:this.wrapper,path:this.params.lottie_url,animationData:this.params.lottie_json,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",(()=>{var t;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""}));const e=new Error("Failed to load lottie animation");e.level="error",e.additional={url:this.params.lottie_url},n.logError(e)})),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;o.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(o.stop(),o.goToAndStop(o.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,o.setDirection(t)),o.goToAndPlay(1===t?0:o.totalFrames,!0))}))}}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0)}}}function ms(t){return new hs({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,mix:t.mix,customization:t.customization,builtinProtocols:t.builtinProtocols,extensions:t.extensions,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,typefaceProvider:t.typefaceProvider,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}var vs=exports;for(var ys in e)vs[ys]=e[ys];e.__esModule&&Object.defineProperty(vs,"__esModule",{value:!0})})();
2
2
  //# sourceMappingURL=client-hydratable.js.map