@divkitframework/divkit 29.15.0 → 30.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.
- package/README.md +1 -1
- package/dist/browser/client-devtool.js +1 -1
- package/dist/browser/client-devtool.js.map +1 -1
- package/dist/browser/client-hydratable.js +1 -1
- package/dist/browser/client-hydratable.js.map +1 -1
- package/dist/browser/client.js +1 -1
- package/dist/browser/client.js.map +1 -1
- package/dist/client-devtool.js +1 -1
- package/dist/client-devtool.js.map +1 -1
- package/dist/client-hydratable.js +1 -1
- package/dist/client-hydratable.js.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/esm/client-devtool.mjs +1 -1
- package/dist/esm/client-devtool.mjs.map +1 -1
- package/dist/esm/client-hydratable.mjs +1 -1
- package/dist/esm/client-hydratable.mjs.map +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/client.mjs.map +1 -1
- package/dist/esm/server.mjs +1 -1
- package/dist/esm/server.mjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};function n(){}t.d(e,{$5:()=>Wu,XQ:()=>iu,rz:()=>ia,U2:()=>Ju,XX:()=>Ku});const r=t=>t;function o(t,e){for(const n in e)t[n]=e[n];return t}function i(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(i)}function l(t){return"function"==typeof t}let c;function u(t,e){return t===e||(c||(c=document.createElement("a")),c.href=e,t===c.href)}function d(t,e){return t!=t?e==e:t!==e}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(null==t){for(const t of r)t(void 0);return n}const i=t.subscribe(...r);return i.unsubscribe?()=>i.unsubscribe():i}function p(t,e,n){t.$$.on_destroy.push(h(e,n))}function f(t,e,n,r){if(t){const o=g(t,e,n,r);return t[0](o)}}function g(t,e,n,r){return t[1]&&r?o(n.ctx.slice(),t[1](r(e))):n.ctx}function m(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function v(t,e,n,r,o,i){if(o){const a=g(e,n,r,i);t.p(a,o)}}function y(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function $(t,e,n){return t.set(n),e}function b(t){return t&&l(t.destroy)?t.destroy:n}function _(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const w="undefined"!=typeof window;let x=w?()=>window.performance.now():()=>Date.now(),k=w?t=>requestAnimationFrame(t):n;const E=new Set;function C(t){E.forEach((e=>{e.c(t)||(E.delete(e),e.f())})),0!==E.size&&k(C)}function A(t){let e;return 0===E.size&&k(C),{promise:new Promise((n=>{E.add(e={c:t,f:n})})),abort(){E.delete(e)}}}const j="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function V(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class D{constructor(t){V(this,"_listeners","WeakMap"in j?new WeakMap:void 0),V(this,"_observer",void 0),V(this,"options",void 0),this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return null!==(t=this._observer)&&void 0!==t?t:this._observer=new ResizeObserver((t=>{for(const n of t){var e;D.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}function F(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}D.entries="WeakMap"in j?new WeakMap:void 0;let S=!1;function P(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function N(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function I(t){const e=B("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(N(t),e),e.sheet}function O(t,e){if(S){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 o=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,a=(o>0&&e[n[o]].claim_order<=i?o+1:P(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const s=a+1;n[s]=t,o=Math.max(s,o)}const i=[],a=[];let s=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const r=n<i.length?i[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 T(t,e,n){t.insertBefore(e,n||null)}function M(t,e,n){S&&!n?O(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function z(t){t.parentNode&&t.parentNode.removeChild(t)}function R(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function B(t){return document.createElement(t)}function L(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function U(t){return document.createTextNode(t)}function H(){return U(" ")}function W(){return U("")}function q(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function J(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const G=["width","height"];function K(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set&&-1===G.indexOf(r)?t[r]=e[r]:J(t,r,e[r])}function X(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:J(t,e,n)}(t,n,e[n])}))}function Y(t){return/-/.test(t)?X:K}function Z(t){return Array.from(t.childNodes)}function Q(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function tt(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Q(t);const i=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),i}}for(let r=t.claim_info.last_index-1;r>=0;r--){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,i}}return r()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function et(t,e,n,r){return tt(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function nt(t,e,n){return et(t,e,n,B)}function rt(t,e,n){return et(t,e,n,L)}function ot(t,e){return tt(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}),(()=>U(e)),!0)}function it(t){return ot(t," ")}function at(t,e,n){for(let r=n;r<t.length;r+=1){const n=t[r];if(8===n.nodeType&&n.textContent.trim()===e)return r}return-1}function st(t,e){e=""+e,t.data!==e&&(t.data=e)}function lt(t,e){t.value=null==e?"":e}function ct(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function ut(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 dt(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}class ht{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];F(this,"is_svg",!1),F(this,"e",void 0),F(this,"n",void 0),F(this,"t",void 0),F(this,"a",void 0),this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.is_svg?this.e=L(e.nodeName):this.e=B(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)T(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(z)}}class pt extends ht{constructor(){let t=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),F(this,"l",void 0),this.e=this.n=null,this.l=t}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let e=0;e<this.n.length;e+=1)M(this.t,this.n[e],t)}}function ft(t,e){return new t(e)}const gt=new Map;let mt,vt=0;function yt(t,e,n,r,o,i,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*i(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const u=c+"100% {".concat(a(n,1-n),"}\n}"),d="__svelte_".concat(function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u),"_").concat(s),h=N(t),{stylesheet:p,rules:f}=gt.get(h)||function(t,e){const n={stylesheet:I(e),rules:{}};return gt.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule("@keyframes ".concat(d," ").concat(u),p.cssRules.length));const g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(d," ").concat(r,"ms linear ").concat(o,"ms 1 both"),vt+=1,d}function $t(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),vt-=o,vt||k((()=>{vt||(gt.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&z(e)})),gt.clear())})))}function bt(t){mt=t}function _t(){if(!mt)throw new Error("Function called outside component initialization");return mt}function wt(t){_t().$$.on_mount.push(t)}function xt(t){_t().$$.after_update.push(t)}function kt(t){_t().$$.on_destroy.push(t)}function Et(t,e){return _t().$$.context.set(t,e),e}function Ct(t){return _t().$$.context.get(t)}function At(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const jt=[],Vt=[];let Dt=[];const Ft=[],St=Promise.resolve();let Pt=!1;function Nt(){Pt||(Pt=!0,St.then(Rt))}function It(){return Nt(),St}function Ot(t){Dt.push(t)}const Tt=new Set;let Mt,zt=0;function Rt(){if(0!==zt)return;const t=mt;do{try{for(;zt<jt.length;){const t=jt[zt];zt++,bt(t),Bt(t.$$)}}catch(t){throw jt.length=0,zt=0,t}for(bt(null),jt.length=0,zt=0;Vt.length;)Vt.pop()();for(let t=0;t<Dt.length;t+=1){const e=Dt[t];Tt.has(e)||(Tt.add(e),e())}Dt.length=0}while(jt.length);for(;Ft.length;)Ft.pop()();Pt=!1,Tt.clear(),bt(t)}function Bt(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ot)}}function Lt(){return Mt||(Mt=Promise.resolve(),Mt.then((()=>{Mt=null}))),Mt}function Ut(t,e,n){t.dispatchEvent(dt("".concat(e?"intro":"outro").concat(n)))}const Ht=new Set;let Wt;function qt(){Wt={r:0,c:[],p:Wt}}function Jt(){Wt.r||s(Wt.c),Wt=Wt.p}function Gt(t,e){t&&t.i&&(Ht.delete(t),t.i(e))}function Kt(t,e,n,r){if(t&&t.o){if(Ht.has(t))return;Ht.add(t),Wt.c.push((()=>{Ht.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Xt={duration:0};function Yt(t,e,o){const i={direction:"in"};let a,s,c=e(t,o,i),u=!1,d=0;function h(){a&&$t(t,a)}function p(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:p}=c||Xt;p&&(a=yt(t,0,1,o,e,i,p,d++)),l(0,1);const f=x()+e,g=f+o;s&&s.abort(),u=!0,Ot((()=>Ut(t,!0,"start"))),s=A((e=>{if(u){if(e>=g)return l(1,0),Ut(t,!0,"end"),h(),u=!1;if(e>=f){const t=i((e-f)/o);l(t,1-t)}}return u}))}let f=!1;return{start(){f||(f=!0,$t(t),l(c)?(c=c(i),Lt().then(p)):p())},invalidate(){f=!1},end(){u&&(h(),u=!1)}}}function Zt(t,e,o,i){let a,c=e(t,o,{direction:"both"}),u=i?0:1,d=null,h=null,p=null;function f(){p&&$t(t,p)}function g(t,e){const n=t.b-u;return e*=Math.abs(n),{a:u,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function m(e){const{delay:o=0,duration:i=300,easing:l=r,tick:m=n,css:v}=c||Xt,y={start:x()+o,b:e};e||(y.group=Wt,Wt.r+=1),"inert"in t&&(e?void 0!==a&&(t.inert=a):(a=t.inert,t.inert=!0)),d||h?h=y:(v&&(f(),p=yt(t,u,e,i,o,l,v)),e&&m(0,1),d=g(y,i),Ot((()=>Ut(t,e,"start"))),A((e=>{if(h&&e>h.start&&(d=g(h,i),h=null,Ut(t,d.b,"start"),v&&(f(),p=yt(t,u,d.b,d.duration,0,l,c.css))),d)if(e>=d.end)m(u=d.b,1-u),Ut(t,d.b,"end"),h||(d.b?f():--d.group.r||s(d.group.c)),d=null;else if(e>=d.start){const t=e-d.start;u=d.a+d.d*l(t/d.duration),m(u,1-u)}return!(!d&&!h)})))}return{run(t){l(c)?Lt().then((()=>{c=c({direction:t?"in":"out"}),m(t)})):m(t)},end(){f(),d=h=null}}}function Qt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function te(t,e){Kt(t,1,1,(()=>{e.delete(t.key)}))}function ee(t,e,n,r,o,i,a,l,c,u,d,h){let p=t.length,f=i.length,g=p;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,b=[];for(g=f;g--;){const t=h(o,i,g),s=n(t);let l=a.get(s);l?r&&b.push((()=>l.p(t,e))):(l=u(s,t),l.c()),y.set(s,v[g]=l),s in m&&$.set(s,Math.abs(g-m[s]))}const _=new Set,w=new Set;function x(t){Gt(t,1),t.m(l,d),a.set(t.key,t),d=t.first,f--}for(;p&&f;){const e=v[f-1],n=t[p-1],r=e.key,o=n.key;e===n?(d=e.first,p--,f--):y.has(o)?!a.has(r)||_.has(r)?x(e):w.has(o)?p--:$.get(r)>$.get(o)?(w.add(r),x(e)):(_.add(o),p--):(c(n,a),p--)}for(;p--;){const e=t[p];y.has(e.key)||c(e,a)}for(;f;)x(v[f-1]);return s(b),v}function ne(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],s=e[i];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)o[t]||(n[t]=s[t],o[t]=1);t[i]=s}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let re;function oe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oe(Object(n),!0).forEach((function(e){ae(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ae(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 se(t){t&&t.c()}function le(t,e){t&&t.l(e)}function ce(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),Ot((()=>{const e=t.$$.on_mount.map(i).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),o.forEach(Ot)}function ue(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];Dt.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),Dt=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function de(t,e,r,o,i,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=mt;bt(t);const h=t.$$={fragment:null,ctx:[],props:l,update:n,not_equal:i,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:a(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};c&&c(h.root);let p=!1;if(h.ctx=r?r(t,e.props||{},(function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return h.ctx&&i(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),p&&function(t,e){-1===t.$$.dirty[0]&&(jt.push(t),Nt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,s(h.before_update),h.fragment=!!o&&o(h.ctx),e.target){if(e.hydrate){S=!0;const t=Z(e.target);h.fragment&&h.fragment.l(t),t.forEach(z)}else h.fragment&&h.fragment.c();e.intro&&Gt(t.$$.fragment),ce(t,e.target,e.anchor),S=!1,Rt()}bt(d)}function he(t,e,n,r){var o;const i=null===(o=n[t])||void 0===o?void 0:o.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(re=class extends HTMLElement{constructor(t,e,n){super(),ae(this,"$$ctor",void 0),ae(this,"$$s",void 0),ae(this,"$$c",void 0),ae(this,"$$cn",!1),ae(this,"$$d",{}),ae(this,"$$r",!1),ae(this,"$$p_d",{}),ae(this,"$$l",{}),ae(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function t(t){return()=>{let e;return{c:function(){e=B("slot"),"default"!==t&&J(e,"name",t)},m:function(t,n){T(t,e,n)},d:function(t){t&&z(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=he(a,i.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ie(ie({},this.$$d),{},{$$slots:e,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=he(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const c=this.$$c.$on(s,l);this.$$l_u.set(l,c)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=he(t,n,this.$$p_d,"toProp"),null===(r=this.$$c)||void 0===r||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class pe{constructor(){ae(this,"$$",void 0),ae(this,"$$set",void 0)}$destroy(){ue(this,1),this.$destroy=n}$on(t,e){if(!l(e))return n;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const fe=[];function ge(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const o=new Set;function i(n){if(i=n,((r=t)!=r?i==i:r!==i||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!fe.length;for(const e of o)e[1](),fe.push(e,t);if(e){for(let t=0;t<fe.length;t+=2)fe[t][0](fe[t+1]);fe.length=0}}var r,i}function a(e){i(e(t))}return{set:i,update:a,subscribe:function(s){const l=[s,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return o.add(l),1===o.size&&(e=r(i,a)||n),s(t),()=>{o.delete(l),0===o.size&&e&&(e(),e=null)}}}}function me(t,e,r){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return c=(t,r)=>{let c=!1;const u=[];let d=0,p=n;const f=()=>{if(d)return;p();const i=e(o?u[0]:u,t,r);a?t(i):p=l(i)?i:n},g=i.map(((t,e)=>h(t,(t=>{u[e]=t,d&=~(1<<e),c&&f()}),(()=>{d|=1<<e}))));return c=!0,f(),function(){s(g),p(),c=!1}},{subscribe:ge(r,c).subscribe};var c}const ve={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"},ye=Symbol("root");function $e(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 be={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_start:"divkit-e70de",text_halign_center:"divkit-e1659",text_halign_end:"divkit-e48b4",text_valign_start:"divkit-b7b70",text_valign_center:"divkit-ef58e",text_valign_end:"divkit-d4206",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},_e={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980","outer_has-custom-focus":"divkit-c7f14"};function we(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 xe(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return Number.isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function ke(t){let e=xe(t);return"0"===e&&(e+="em"),e}function Ee(t,e){for(;t.length<e;)t="0"+t;return t}function Ce(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=Ae(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 Ae(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(5===e.length){const[t,n,r,o,i]=e,a=2===r.length?r:r+r,s=2===o.length?o:o+o,l=2===i.length?i:i+i,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(s,16),b:parseInt(l,16)}}const[t,n,r,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function je(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&")),e.indexOf("<")>-1&&(e=e.replace(/</g,"<")),e.indexOf(">")>-1&&(e=e.replace(/>/g,">")),e.indexOf('"')>-1&&(e=e.replace(/"/g,""")),e}const Ve=Boolean;function De(t){if(1===t.length&&"solid"===t[0].type)return{color:Ce(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=Ce(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(Ve);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>Ce(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:Pe(t.bg.scale),pos:Ne(t.bg),image:'url("'+je(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(Ve);if(!n.length)return;const r=t.bg.radius;let o;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?o=ke(r.value):"relative"===r.type&&(o=Fe[r.value]));const i=Se(t.bg.center_x),a=Se(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(o||"farthest-corner"," at ").concat(i," ").concat(a)+","+n.map((t=>Ce(t))).join(",")+")"}}({bg:t}):void 0)).filter(Ve).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 Fe={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 ke(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function Pe(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function Ne(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 Ie(t){if(t.startsWith("tel:"))return"tel";const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Oe(t,e){return e.has(t)}function Te(t,e){const n=Number(t);return Number.isNaN(n)||n<0?e:n}function Me(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function ze(t){return 0!==t.is_enabled&&!1!==t.is_enabled&&void 0!==t.index}function Re(t,e){e&&t.push(e)}function Be(t,e,n){const r=[];Re(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Re(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const Le=Symbol("state");function Ue(t,e){var n,r;const o=t.top||0,i=(null!==(n="ltr"===e?t.end:t.start)&&void 0!==n?n:t.right)||0,a=t.bottom||0,s=(null!==(r="ltr"===e?t.start:t.end)&&void 0!==r?r:t.left)||0;return 0===o&&0===i&&0===a&&0===s?"":xe(o)+" "+xe(i)+" "+xe(a)+" "+xe(s)}function He(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!Number.isNaN(e)}function We(t){return He(t)&&t>=0}function qe(t,e,n){var r,o;if(!t)return n;const i=[t.top,null!==(r="ltr"===e?t.end:t.start)&&void 0!==r?r:t.right,t.bottom,null!==(o="ltr"===e?t.start:t.end)&&void 0!==o?o:t.left];for(let t=0;t<i.length;++t)if(i[t]&&!We(i[t]))return n;return Ue(t,e)}const Je=Object.prototype.hasOwnProperty;function Ge(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!Je.call(e,o)||!Ge(t[o],e[o]))return!1}return!0}function Ke(t,e){return Ge(t,e)?e:t}function Xe(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Ye(t,e){const n=Number(t);return Number.isNaN(n)?e:n}function Ze(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Ze(t))})):e.push(t),e}function Qe(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 tn(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=>xe((t||e)/n*10))).join(" ")}function en(t){return 0!==t.is_enabled&&!1!==t.is_enabled}let nn;function rn(){return"undefined"!=typeof matchMedia&&(nn||(nn=window.matchMedia("(prefers-reduced-motion)")),nn.matches)}function on(){}const an=Symbol("action");function sn(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function ln(t){var e;let n,r,i,a,l,c,u,d;const h=t[18].default,p=f(h,t,t[17],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?ve.root__clickable:ve["root__clickable-no-transition"]," ").concat(ve.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ve["root_disabled-context-menu"]:"")},{style:t[2]},{role:i=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=o($,g[t]);return{c(){n=B("span"),p&&p.c(),this.h()},l(t){n=nt(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=Z(n);p&&p.l(e),e.forEach(z),this.h()},h(){K(n,$)},m(e,r){M(e,n,r),p&&p.m(n,null),t[26](n),c=!0,u||(d=[b(l=t[4].call(null,n)),q(n,"click",t[22]),q(n,"keydown",t[10]),q(n,"focus",t[23]),q(n,"blur",t[24])],u=!0)},p(t,e){var o;p&&p.p&&(!c||131072&e[0])&&v(p,h,t,t[17],c?m(h,t[17],e,null):y(t[17]),null),K(n,$=ne(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?ve.root__clickable:ve["root__clickable-no-transition"]," ").concat(ve.root__unselectable):"")+" "+(null!==(o=t[0])&&void 0!==o&&o.length?ve["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&i!==(i=t[8]?"button":null))&&{role:i},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(Gt(p,t),c=!0)},o(t){Kt(p,t),c=!1},d(e){e&&z(n),p&&p.d(e),t[26](null),u=!1,s(d)}}}function cn(t){var e;let n,r,i,a,l,c;const u=t[18].default,d=f(u,t,t[17],null);let h=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?ve.root__clickable:ve["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ve["root_disabled-context-menu"]:"")},t[3]],p={};for(let t=0;t<h.length;t+=1)p=o(p,h[t]);return{c(){n=B("a"),d&&d.c(),this.h()},l(t){n=nt(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=Z(n);d&&d.l(e),e.forEach(z),this.h()},h(){K(n,p)},m(e,r){M(e,n,r),d&&d.m(n,null),t[25](n),a=!0,l||(c=[b(i=t[4].call(null,n)),q(n,"click",t[19]),q(n,"keydown",t[10]),q(n,"focus",t[20]),q(n,"blur",t[21])],l=!0)},p(t,e){var o;d&&d.p&&(!a||131072&e[0])&&v(d,u,t,t[17],a?m(u,t[17],e,null):y(t[17]),null),K(n,p=ne(h,[(!a||128&e[0])&&{href:t[7]},(!a||512&e[0])&&{target:t[9]},(!a||4&e[0])&&{style:t[2]},(!a||35&e[0]&&r!==(r=t[1]+" "+(t[5]?ve.root__clickable:ve["root__clickable-no-transition"])+" "+(null!==(o=t[0])&&void 0!==o&&o.length?ve["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Gt(d,t),a=!0)},o(t){Kt(d,t),a=!1},d(e){e&&z(n),d&&d.d(e),t[25](null),l=!1,s(c)}}}function un(t){let e,n,r,o;const i=[cn,ln],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=i[e](t),{c(){n.c(),r=W()},l(t){n.l(t),r=W()},m(t,n){a[e].m(t,n),M(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?a[e].p(t,o):(qt(),Kt(a[l],1,1,(()=>{a[l]=null})),Jt(),n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Gt(n,1),n.m(r.parentNode,r))},i(t){o||(Gt(n),o=!0)},o(t){Kt(n),o=!1},d(t){t&&z(r),a[e].d(t)}}}function dn(t,e,n){let{$$slots:r={},$$scope:o}=e,{componentContext:i}=e,{id:a=""}=e,{actions:s}=e,{doubleTapActions:l}=e,{longTapActions:c}=e,{cls:u=""}=e,{style:d=null}=e,{attrs:h}=e,{use:p=on}=e,{customAction:f=null}=e,{isNativeActionAnimation:g=!0}=e,{hasInnerFocusable:m=!1}=e;const v=Ct(ye),y=Ct(an);let $;Et(an,{hasAction:()=>Boolean(y.hasAction()||(null==s?void 0:s.length))});let b,_,w="",x=-1,k=null,E=!1,C=!1;async function A(t){y.hasAction()||void 0!==t.button&&0!==t.button||(x>0&&Date.now()>x+400||!1===(null==f?void 0:f(t))?t.preventDefault():s&&(s.some((t=>{if(null==t?void 0:t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=Ie(e);return n&&!Oe(n,v.getBuiltinProtocols())}))&&t.preventDefault(),i.execAnyActions(s,{node:$})))}function j(t){y.hasAction()||void 0!==t.button&&0!==t.button||i.execAnyActions(l,{processUrls:!0,node:$})}function V(t){t.touches.length>1||(k=sn(t),E=!1,x=Date.now(),clearTimeout(_))}function D(t){if(!k)return;const e=sn(t);(Math.abs(k.x-e.x)>8||Math.abs(k.y-e.y)>8)&&(E=!0)}function F(t){!k||x<0||(!E&&Date.now()-x>=400&&(t.stopPropagation(),i.execAnyActions(c,{processUrls:!0,node:$})),clearTimeout(_),_=window.setTimeout((()=>{k=null,x=-1}),100))}return wt((()=>{a&&!m&&v.registerFocusable(a,{focus(){$&&(w||C)&&$.focus()}})})),kt((()=>{a&&!m&&v.unregisterFocusable(a),clearTimeout(_)})),t.$$set=t=>{"componentContext"in t&&n(11,i=t.componentContext),"id"in t&&n(12,a=t.id),"actions"in t&&n(13,s=t.actions),"doubleTapActions"in t&&n(14,l=t.doubleTapActions),"longTapActions"in t&&n(0,c=t.longTapActions),"cls"in t&&n(1,u=t.cls),"style"in t&&n(2,d=t.style),"attrs"in t&&n(3,h=t.attrs),"use"in t&&n(4,p=t.use),"customAction"in t&&n(15,f=t.customAction),"isNativeActionAnimation"in t&&n(5,g=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(16,m=t.hasInnerFocusable),"$$scope"in t&&n(17,o=t.$$scope)},t.$$.update=()=>{if(43136&t.$$.dirty[0]){if(Array.isArray(s)&&(null==s?void 0:s.length))for(let t=0;t<s.length;++t){const e=s[t].url;if(e){n(7,w=e),n(9,b=s[t].target||void 0);break}}Array.isArray(s)&&(null==s?void 0:s.length)&&y.hasAction()&&(n(7,w=""),i.logError($e(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:s}}))),n(8,C=Boolean(f)),w&&!Oe(Ie(w),v.getBuiltinProtocols())?(n(7,w=""),n(8,C=!0)):!w&&Array.isArray(s)&&(null==s?void 0:s.length)&&(n(8,C=!0),s.some((t=>t.url||t.typed||t.menu_items))||i.logError($e(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:s}})))}16833&t.$$.dirty[0]&&$&&(w||C?$.addEventListener("click",A):$.removeEventListener("click",A),(null==l?void 0:l.length)?$.addEventListener("dblclick",j):$.removeEventListener("dblclick",j),(null==c?void 0:c.length)?($.addEventListener("touchstart",V,{passive:!0}),$.addEventListener("touchmove",D,{passive:!0}),$.addEventListener("touchend",F,{passive:!0}),$.addEventListener("touchcancel",F,{passive:!0})):($.removeEventListener("touchstart",V),$.removeEventListener("touchmove",D),$.removeEventListener("touchend",F),$.removeEventListener("touchcancel",F)))},[c,u,d,h,p,g,$,w,C,b,function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(s)&&s.length&&(i.execAnyActions(s),t.preventDefault())},i,a,s,l,f,m,o,r,function(e){At.call(this,t,e)},function(e){At.call(this,t,e)},function(e){At.call(this,t,e)},function(e){At.call(this,t,e)},function(e){At.call(this,t,e)},function(e){At.call(this,t,e)},function(t){Vt[t?"unshift":"push"]((()=>{$=t,n(6,$)}))},function(t){Vt[t?"unshift":"push"]((()=>{$=t,n(6,$)}))}]}const hn=class extends pe{constructor(t){super(),de(this,t,dn,un,d,{componentContext:11,id:12,actions:13,doubleTapActions:14,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:15,isNativeActionAnimation:5,hasInnerFocusable:16},null,[-1,-1])}},pn={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function fn(t){return He(t)&&t>0}function gn(t,e){return t.map((t=>{if(t)if("blur"===t.type){if(fn(t.radius))return"blur(".concat(ke(t.radius/2),")")}else{if("rtl_mirror"===t.type)return;e($e(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}else e($e(new Error("Incorrect filter"),{level:"warn"}))})).filter(Boolean).join(" ")}function mn(t,e,n){const r=t.slice();return r[6]=e[n],r}function vn(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=nt(t,"SPAN",{class:!0,style:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=pn["outer-background__item"]),J(e,"style",r=we(t[6].style))},m(t,n){M(t,e,n)},p(t,n){2&n&&r!==(r=we(t[6].style))&&J(e,"style",r)},d(t){t&&z(e)}}}function yn(t){let e,n,r,o,i,a;return{c(){e=B("img"),this.h()},l(t){e=nt(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[6].image_url)||J(e,"src",n),J(e,"alt",""),J(e,"aria-hidden","true"),J(e,"loading","lazy"),J(e,"decoding","async"),J(e,"class",r=pn["outer-background__item"]),J(e,"style",o=we(t[6].style))},m(n,r){M(n,e,r),i||(a=q(e,"error",t[2]),i=!0)},p(t,r){2&r&&!u(e.src,n=t[6].image_url)&&J(e,"src",n),2&r&&o!==(o=we(t[6].style))&&J(e,"style",o)},d(t){t&&z(e),i=!1,a()}}}function $n(t){let e;function n(t,e){return t[6].image_url?yn:vn}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),M(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&z(e),o.d(t)}}}function bn(t){let e,r,o=Qt(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=$n(mn(t,o,e));return{c(){e=B("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=nt(t,"SPAN",{class:!0});var n=Z(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(z),this.h()},h(){J(e,"class",r=pn["outer-background"]+(t[0]?" "+pn["outer-background_clip"]:"")),ct(e,"border-radius",t[0])},m(t,n){M(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(o=Qt(t[1]),n=0;n<o.length;n+=1){const r=mn(t,o,n);i[n]?i[n].p(r,a):(i[n]=$n(r),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=o.length}1&a&&r!==(r=pn["outer-background"]+(t[0]?" "+pn["outer-background_clip"]:""))&&J(e,"class",r),1&a&&ct(e,"border-radius",t[0])},i:n,o:n,d(t){t&&z(e),R(i,t)}}}function _n(t,e,n){let r,{direction:o}=e,{componentContext:i}=e,{background:a=[]}=e,{radius:s=""}=e;return t.$$set=t=>{"direction"in t&&n(3,o=t.direction),"componentContext"in t&&n(4,i=t.componentContext),"background"in t&&n(5,a=t.background),"radius"in t&&n(0,s=t.radius)},t.$$.update=()=>{56&t.$$.dirty&&n(1,r=a.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=De([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=gn(t.filters,i.logError),"rtl"===o&&t.filters.some((t=>"rtl_mirror"===t.type))&&(e.transform="scale(-1,1)")))}return n})))},[s,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(pn["outer-background__item_hidden"])},o,i,a]}const wn=class extends pe{constructor(t){super(),de(this,t,_n,bn,d,{direction:3,componentContext:4,background:5,radius:0})}},xn=t=>({hasCustomFocus:256&t[0]}),kn=t=>({focusHandler:t[39],blurHandler:t[40],hasCustomFocus:t[8]});function En(t){let e,n;return e=new hn({props:{componentContext:t[0],id:t[0].json.id,use:t[38],cls:t[1]+" "+Be("outer",_e,t[18]),style:we(t[17]),actions:t[14],doubleTapActions:t[15],longTapActions:t[16],attrs:t[10],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||Pn(t[7]),$$slots:{default:[jn]},$$scope:{ctx:t}}}),e.$on("focus",t[39]),e.$on("blur",t[40]),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),1&n[0]&&(r.id=t[0].json.id),262146&n[0]&&(r.cls=t[1]+" "+Be("outer",_e,t[18])),131072&n[0]&&(r.style=we(t[17])),16384&n[0]&&(r.actions=t[14]),32768&n[0]&&(r.doubleTapActions=t[15]),65536&n[0]&&(r.longTapActions=t[16]),1024&n[0]&&(r.attrs=t[10]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||Pn(t[7])),2937&n[0]|134217728&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Cn(t){let e,n;return e=new wn({props:{componentContext:t[0],direction:t[9],background:t[5],radius:t[4]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),512&n[0]&&(r.direction=t[9]),32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function An(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=nt(t,"SPAN",{class:!0,style:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=_e.outer__border),J(e,"style",r=we(t[3]))},m(t,n){M(t,e,n)},p(t,n){8&n[0]&&r!==(r=we(t[3]))&&J(e,"style",r)},d(t){t&&z(e)}}}function jn(t){let e,n,r,o=t[6]&&Cn(t);const i=t[119].default,a=f(i,t,t[120],kn);let s=t[11]&&An(t);return{c(){o&&o.c(),e=W(),a&&a.c(),s&&s.c(),n=W()},l(t){o&&o.l(t),e=W(),a&&a.l(t),s&&s.l(t),n=W()},m(t,i){o&&o.m(t,i),M(t,e,i),a&&a.m(t,i),s&&s.m(t,i),M(t,n,i),r=!0},p(t,l){t[6]?o?(o.p(t,l),64&l[0]&&Gt(o,1)):(o=Cn(t),o.c(),Gt(o,1),o.m(e.parentNode,e)):o&&(qt(),Kt(o,1,1,(()=>{o=null})),Jt()),a&&a.p&&(!r||256&l[0]|134217728&l[3])&&v(a,i,t,t[120],r?m(i,t[120],l,xn):y(t[120]),kn),t[11]?s?s.p(t,l):(s=An(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Gt(o),Gt(a,t),r=!0)},o(t){Kt(o),Kt(a,t),r=!1},d(t){t&&(z(e),z(n)),o&&o.d(t),a&&a.d(t),s&&s.d(t)}}}function Vn(t){let e,n,r=!t[12]&&!t[13]&&En(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[12]||t[13]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),12288&n[0]&&Gt(r,1)):(r=En(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}const Dn={left:"start",center:"center",right:"end",start:"start",end:"end"},Fn={left:"end",center:"center",right:"start",start:"start",end:"end"},Sn={top:"start",center:"center",bottom:"end",baseline:"baseline"};function Pn(t){return t.some((t=>"native"===t.name))}function Nn(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M,z,R,B,L,U,H,W,q,J,G,K,X,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n,at=n,st=n,lt=n,ct=n,ut=n,dt=n,ht=n,pt=n,ft=n;t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft()));let{$$slots:gt={},$$scope:mt}=e,{componentContext:vt}=e,{cls:yt=""}=e,{style:$t}=e,{layoutParams:bt={}}=e,{customDescription:_t=!1}=e,{customPaddings:wt=!1}=e,{customActions:Et=""}=e,{additionalPaddings:At=null}=e,{heightByAspect:jt=!1}=e,{parentOf:Vt}=e,{parentOfSimpleMode:Dt}=e,{replaceItems:Ft}=e,{hasInnerFocusable:St=!1}=e;const Pt=Ct(ye),Nt=Ct(Le),Ot=Pt.direction;let Tt,Mt;p(t,Ot,(t=>r(9,J=t)));let zt,Rt,Bt,Lt,Ut,Ht,Wt,qt,Jt,Gt,Kt,Xt,Yt,Zt,Qt,te,ee,ne,re,oe,ie,ae=null,se=[],le={},ce={},ue=!1,de=1,he="transparent",pe=0,fe={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},ge="",ve=null,be="",_e={},we=0,Ee=0,Ae=0,je=!1,Fe=!1,Se={},Pe=0,Ne=0,Re=0,Be=!1,He=!1,Je=1,nn=[],on=!1,an=!1,sn=[],ln=[],cn=[],un=[],dn=[],hn=[],pn="",fn=!1,gn="visible",mn=0,vn=0,yn=!1,$n=null;function bn(t,e){if(!Array.isArray(Vt)||!Ft)return;if(Dt&&1!==(Array.isArray(e)&&e.length||0))return;const n=Vt.findIndex((e=>(null==e?void 0:e.id)===t)),o=Vt.slice();o.splice(n,1,...e||[]),r(41,Vt=o),Ft(o)}function _n(t){const e=Ye(t.start_value,1),n=Ye(t.end_value,1),o=Te(t.start_delay,0),i=rn()?0:Te(t.duration,300),a=Xe(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(84,Zt=e),r(85,Qt=n),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return r(86,te=e),r(87,ee=n),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return vt.logError($e(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function wn(){if(ae&&Tt){const t=Pt.getExtensionContext();ae.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,Tt,t)})),ae=null}}function xn(t){var e;null==ie||ie.destroy(),r(51,Tt=t),on&&vt.json.transition_in&&Nt.registerChildWithTransitionIn(vt.json,vt,vt.json.transition_in,t).then((()=>{r(80,Kt=!1)})).catch((t=>{throw r(80,Kt=!1),t})),on&&vt.json.transition_out&&Nt.registerChildWithTransitionOut(vt.json,vt,vt.json.transition_out,t),on&&vt.json.transition_change&&Nt.registerChildWithTransitionChange(vt.json,vt,vt.json.transition_change,t).then((()=>{r(82,Yt=!1)})).catch((t=>{throw r(82,Yt=!1),t}));const n=vt.fakeElement?[]:vt.json.visibility_actions||vt.json.visibility_action&&[vt.json.visibility_action],o=vt.fakeElement?[]:vt.json.disappear_actions;let i;(Array.isArray(n)&&n.length||Array.isArray(o)&&o.length)&&(i=function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:o,componentContext:i}=e;const a=[];n&&n.forEach((t=>{a.push({type:"visibility",index:a.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{a.push({type:"disappear",index:a.length,action:t,visible:!1,count:0,finished:!1})}));const s=a.map(((t,e)=>{const n="visibility"===t.type;return i.getDerivedFromVars({index:e,visibility_percentage:t.action.visibility_percentage,visibility_duration:n?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit,is_enabled:t.action.is_enabled})}));let l;const c=()=>{l&&l.disconnect(),a.forEach((t=>{t.timer&&clearTimeout(t.timer)}))},u=me(s,(t=>t));let d;const h=t=>{const e="visibility"===t.type,n=i.getJsonWithVars(t.action),r=n.url,a=n.typed;if(r){const t=Ie(r);t&&!Oe(t,o.getBuiltinProtocols())&&("div-action"===t?o.execAction(n):n.log_id&&o.execCustomAction(n))}else a&&o.execAction(n);o.logStat(e?"visible":"disappear",n)},p=u.subscribe((e=>{d=e.filter(ze);const n={};d.forEach((t=>{n[t.index]=t})),c();const r=[...new Set(d.map((t=>{const e="visibility"===a[t.index].type;return Me(e,t.visibility_percentage,e?50:0)/100})))];r.length&&(l=new IntersectionObserver((t=>{t.forEach((t=>{d.forEach((e=>{const n=a[e.index],r="visibility"===n.type,o=Me(r,e.visibility_percentage,r?50:0);let i;i=0===o?t.intersectionRatio>=1e-12:t.intersectionRatio>=o/100;const s=r?!i:i;(r?!n.visible&&i:n.visible&&!i)?n.finished||(n.timer=setTimeout((()=>{++n.count;const t=0===e.log_limit?1/0:e.log_limit||1;++n.count>=t&&(n.finished=!0),h(n)}),Te(e.visibility_duration,800))):s&&n.timer&&clearTimeout(n.timer),n.visible=i}))}))}),{threshold:r}),l.observe(t))}));return{destroy(){var t;null===(t=d)||void 0===t||t.forEach((t=>{const e=a[t.index];e&&"disappear"===e.type&&e.visible&&!e.finished&&o.registerTimeout(window.setTimeout((()=>{h(e)}),t.visibility_duration))})),c(),p()}}}(t,{visibilityActions:n,disappearActions:o,rootCtx:Pt,componentContext:vt}));const a=vt.json.id;return a&&Nt.registerChild(a),null===(e=vt.json.tooltips)||void 0===e||e.forEach((e=>{Pt.registerTooltip(t,e)})),ie={destroy(){a&&Nt.unregisterChild(a),i&&i.destroy(),$n&&$n.destroy()}},ie}return xt((function(){$n&&$n.update(vt)})),kt((()=>{var t;se.forEach((t=>{Pt.unregisterParentOf(t)})),r(52,se=[]),null===(t=vt.json.tooltips)||void 0===t||t.forEach((t=>{Pt.unregisterTooltip(t)})),wn()})),t.$$set=t=>{"componentContext"in t&&r(0,vt=t.componentContext),"cls"in t&&r(1,yt=t.cls),"style"in t&&r(42,$t=t.style),"layoutParams"in t&&r(43,bt=t.layoutParams),"customDescription"in t&&r(44,_t=t.customDescription),"customPaddings"in t&&r(45,wt=t.customPaddings),"customActions"in t&&r(46,Et=t.customActions),"additionalPaddings"in t&&r(47,At=t.additionalPaddings),"heightByAspect"in t&&r(48,jt=t.heightByAspect),"parentOf"in t&&r(41,Vt=t.parentOf),"parentOfSimpleMode"in t&&r(49,Dt=t.parentOfSimpleMode),"replaceItems"in t&&r(50,Ft=t.replaceItems),"hasInnerFocusable"in t&&r(2,St=t.hasInnerFocusable),"$$scope"in t&&r(120,mt=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(100,o=vt.origJson),128&t.$$.dirty[3]&&o&&(r(58,ve=null),r(59,be=""),r(76,Je=1),r(88,fn=!1),r(89,gn="visible"),r(90,mn=0),r(91,vn=0),r(92,ne=void 0),r(93,re=void 0),nn=vt.fakeElement?[]:vt.json.transition_triggers||["state_change","visibility_change"],r(79,on=Boolean(-1!==nn.indexOf("state_change")&&vt.json.id)),an=Boolean(-1!==nn.indexOf("visibility_change")&&vt.json.id),Tt&&xn(Tt)),1&t.$$.dirty[0]&&(r(36,i=vt.getDerivedFromVars(vt.json.focus)),tt(),tt=h(i,(t=>r(104,I=t)))),1&t.$$.dirty[0]&&(r(35,a=vt.getDerivedFromVars(vt.json.border)),ft(),ft=h(a,(t=>r(118,X=t)))),1&t.$$.dirty[0]&&(r(34,s=vt.getDerivedFromVars(vt.json.paddings)),pt(),pt=h(s,(t=>r(117,K=t)))),1&t.$$.dirty[0]&&(r(33,l=vt.getDerivedFromVars(vt.json.margins)),dt(),dt=h(l,(t=>r(115,q=t)))),1&t.$$.dirty[0]&&(r(32,c=vt.getDerivedFromVars(vt.json.width)),ct(),ct=h(c,(t=>r(113,H=t)))),1&t.$$.dirty[0]&&(r(31,u=vt.getDerivedFromVars(vt.json.alignment_horizontal)),ht(),ht=h(u,(t=>r(116,G=t)))),1&t.$$.dirty[0]&&(r(30,d=vt.getDerivedFromVars(vt.json.height)),lt(),lt=h(d,(t=>r(112,U=t)))),1&t.$$.dirty[0]&&(r(29,f=vt.getDerivedFromVars(vt.json.alignment_vertical)),ut(),ut=h(f,(t=>r(114,W=t)))),1&t.$$.dirty[0]&&(r(28,g=vt.getDerivedFromVars(vt.json.alpha)),st(),st=h(g,(t=>r(111,L=t)))),1&t.$$.dirty[0]&&(r(27,m=vt.getDerivedFromVars(vt.json.accessibility)),at(),at=h(m,(t=>r(110,B=t)))),1&t.$$.dirty[0]&&(r(26,v=vt.getDerivedFromVars(vt.json.background)),it(),it=h(v,(t=>r(109,R=t)))),1&t.$$.dirty[0]&&(r(25,y=vt.getDerivedFromVars(vt.json.action)),rt(),rt=h(y,(t=>r(107,M=t)))),1&t.$$.dirty[0]&&(r(24,$=vt.getDerivedFromVars(vt.json.actions)),ot(),ot=h($,(t=>r(108,z=t)))),1&t.$$.dirty[0]&&(r(23,b=vt.getDerivedFromVars(vt.json.doubletap_actions)),nt(),nt=h(b,(t=>r(106,T=t)))),1&t.$$.dirty[0]&&(r(22,_=vt.getDerivedFromVars(vt.json.longtap_actions)),et(),et=h(_,(t=>r(105,O=t)))),1&t.$$.dirty[0]&&(r(21,w=vt.getDerivedFromVars(vt.json.action_animation)),Q(),Q=h(w,(t=>r(103,N=t)))),1&t.$$.dirty[0]&&(r(20,x=vt.getDerivedFromVars(vt.json.visibility)),Z(),Z=h(x,(t=>r(102,P=t)))),1&t.$$.dirty[0]&&(r(19,k=vt.getDerivedFromVars(vt.json.transform)),Y(),Y=h(k,(t=>r(101,S=t)))),2360320&t.$$.dirty[1]&&(se.forEach((t=>{Pt.unregisterParentOf(t)})),r(52,se=[]),Vt&&Vt.forEach((t=>{(null==t?void 0:t.id)&&(se.push(t.id),Pt.registerParentOf(t.id,{replaceWith:bn,isSingleMode:Boolean(Dt)}))}))),264&t.$$.dirty[0]|130023424&t.$$.dirty[1]|33556480&t.$$.dirty[3]){const t=yn&&(null==I?void 0:I.border)?I.border:X;let e={},n={},o=!1,i="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,o,i,a;return xe((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+xe((null===(r=t.offset)||void 0===r||null===(o=r.y)||void 0===o?void 0:o.value)||0)+" "+xe(null!==(i=t.blur)&&void 0!==i?i:2)+" "+Ce(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(n):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(o=!0,r(54,de=Te(t.stroke.width,de)),r(55,he=Ce(t.stroke.color,1,he)),n["--divkit-border"]="".concat(xe(de+1)," solid ").concat(he)),t.corners_radius?(r(57,fe=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}(t.corners_radius,fe)),e["border-radius"]=tn(fe),["top-left","top-right","bottom-right","bottom-left"].forEach((t=>{r(57,fe[t]=(fe[t]||0)+1,fe)})),n["--divkit-border-radius"]=tn(fe)):t.corner_radius&&(r(56,pe=Te(t.corner_radius,pe)),r(57,fe={"top-left":pe,"top-right":pe,"bottom-right":pe,"bottom-left":pe}),e["border-radius"]=xe(pe),n["--divkit-border-radius"]=xe(pe+1)),o&&de&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},fe);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+de/2})),i=tn(t)}}r(53,le=Ke(e,le)),r(3,ce=Ke(n,ce)),r(11,ue=o),r(4,ge=i)}if(134234112&t.$$.dirty[1]|16777216&t.$$.dirty[3]&&r(58,ve=Qe(K&&!wt?K:void 0,ve)),512&t.$$.dirty[0]|134283264&t.$$.dirty[1]&&r(96,E=Ue(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left","start","end"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}(ve,At),J)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]|4194304&t.$$.dirty[3]&&r(59,be=qe(q,J,be)),513&t.$$.dirty[0]|536875008&t.$$.dirty[1]|4&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null==H?void 0:H.type;if("fixed"===u)r(64,we=Te(null==H?void 0:H.value,we)),e=xe(we);else if("wrap_content"===u||("match_parent"===u||!u)&&bt.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==H?void 0:H.constrained)||("match_parent"===u||!u)&&bt.parentHorizontalWrapContent)&&(i["width-constrained"]=!0,"horizontal"===bt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=H;t.min_size&&We(t.min_size.value)&&(n=xe(t.min_size.value)),t.max_size&&We(t.max_size.value)&&(o=xe(t.max_size.value))}"match_parent"!==u&&u||vt.logError($e(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===bt.parentContainerOrientation&&bt.parentContainerWrap&&(c=!0,vt.logError($e(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===bt.parentLayoutOrientation?e="calc(100% - ".concat(ke(((null==q?void 0:q.left)||0)+((null==q?void 0:q.right)||0)),")"):"horizontal"===bt.parentContainerOrientation&&(a=H&&"weight"in H&&H.weight||1,bt.parentContainerWrap&&(l=!0));if("parent"===t)i["halign-self"]="stretch";else{const t=G;i["halign-self"]="left"===t||"center"===t||"right"===t||"start"===t||"end"===t?("ltr"===J?Dn:Fn)[t]:bt.parentHAlign||"start"}t&&(i.width=t),r(61,zt=e),r(62,Rt=n),r(63,Bt=o),r(65,Ee=a),r(66,Ae=s),r(60,_e=Ke(i,_e)),r(67,je=l),r(12,Fe=c)}if(1&t.$$.dirty[0]|135168&t.$$.dirty[1]|1088&t.$$.dirty[2]|6815744&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null==U?void 0:U.type;if(jt);else if("fixed"===u)r(72,Pe=Te(null==U?void 0:U.value,Pe)),e=xe(Pe);else if("match_parent"!==u||bt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||"match_parent"===u&&bt.parentVerticalWrapContent)&&(i["height-constrained"]=!0,"vertical"===bt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=U;(null==t?void 0:t.min_size)&&We(t.min_size.value)&&(n=xe(t.min_size.value)),(null==t?void 0:t.max_size)&&We(t.max_size.value)&&(o=xe(t.max_size.value))}"match_parent"===u&&vt.logError($e(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===bt.parentContainerOrientation&&bt.parentContainerWrap&&(c=!0,vt.logError($e(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===bt.parentLayoutOrientation?e="calc(100% - ".concat(ke(((null==q?void 0:q.top)||0)+((null==q?void 0:q.bottom)||0)),")"):"vertical"===bt.parentContainerOrientation&&(a=(null==U?void 0:U.weight)||1,bt.parentContainerWrap&&(l=!0));if("parent"===t)i["valign-self"]="stretch";else{const t=W;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===bt.parentContainerOrientation?i["valign-self"]=Sn[t]:i["valign-self"]=bt.parentVAlign||"start"}t&&(i.height=t),r(69,Lt=e),r(70,Ut=n),r(71,Ht=o),r(73,Ne=a),r(74,Re=s),r(68,Se=Ke(i,Se)),r(75,Be=l),r(13,He=c)}var e,n;if(4096&t.$$.dirty[1]&&r(99,C=!!bt.overlapParent||void 0),4096&t.$$.dirty[1]|1572864&t.$$.dirty[3]&&r(98,A=bt.overlapParent&&(!H||"match_parent"===H.type)&&!bt.parentHorizontalWrapContent&&"match_parent"===(null==U?void 0:U.type)&&!bt.parentVerticalWrapContent),4096&t.$$.dirty[1]&&r(97,j=bt.gridArea?"".concat(bt.gridArea.y+1,"/").concat(bt.gridArea.x+1,"/span ").concat(bt.gridArea.rowSpan,"/span ").concat(bt.gridArea.colSpan):void 0),16384&t.$$.dirty[2]|262144&t.$$.dirty[3]&&(r(76,(n=Je,Je=!We(e=L)||void 0===e||e>1?n:Number(e))),r(77,Wt=1===Je?void 0:Je)),8192&t.$$.dirty[1]|131072&t.$$.dirty[3]&&(r(10,Mt=void 0),B&&!_t&&B.description&&(r(10,Mt={}),r(10,Mt["aria-label"]=B.description,Mt))),368&t.$$.dirty[0]|67584&t.$$.dirty[3]&&(r(5,qt=yn&&(null==I?void 0:I.background)?I.background:R),r(78,Jt={}),r(6,Gt=!1),Array.isArray(qt)&&(r(6,Gt=qt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(ge)),!Gt))){const t=De(qt);r(78,Jt["background-color"]=t.color,Jt),r(78,Jt["background-image"]=t.image,Jt),r(78,Jt["background-size"]=t.size,Jt),r(78,Jt["background-position"]=t.position,Jt),r(78,Jt["background-repeat"]="no-repeat",Jt)}if(1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(80,Kt=void 0),on&&vt.json.transition_in&&Pt.isRunning("stateChange")&&r(80,Kt=!0)),1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(82,Yt=void 0),on&&vt.json.transition_change&&Pt.isRunning("stateChange")&&Nt.hasTransitionChange(vt.json.id)&&r(82,Yt=!0)),1&t.$$.dirty[0]|32768&t.$$.dirty[1]|63488&t.$$.dirty[3]){let t=z||M&&[M]||[],e=T||[],n=O||[],o=(null==I?void 0:I.on_focus)||[],i=(null==I?void 0:I.on_blur)||[];vt.fakeElement?(t=[],e=[],n=[],o=[],i=[]):(Array.isArray(t)||(t=[],vt.logError($e(new Error("Actions should be array")))),Array.isArray(e)||(e=[],vt.logError($e(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],vt.logError($e(new Error("LongTapActions should be array")))),Array.isArray(o)||(o=[],vt.logError($e(new Error("FocusActions should be array")))),Array.isArray(i)||(i=[],vt.logError($e(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&Et&&(t=[],e=[],n=[],vt.logError($e(new Error('Cannot use action on component "'.concat(Et,'"'))))),r(14,sn=t.filter(en)),r(15,ln=e.filter(en)),r(16,cn=n.filter(en)),un=o.filter(en),dn=i.filter(en)}if(128&t.$$.dirty[0]|1024&t.$$.dirty[3]&&N&&(r(7,hn=Ze(N)),r(83,pn=hn.map(_n).filter(Boolean).join(", "))),201326592&t.$$.dirty[2]|512&t.$$.dirty[3]){const t=gn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(P,gn);t!==e&&(!fn||"visible"!==gn&&"visible"!==e?r(89,gn=e):async function(t){r(89,gn=t);const e="visible"===t?"in":"out",n="in"===e?vt.json.transition_in:vt.json.transition_out;an&&n&&(await It(),"in"===e&&r(81,Xt=!0),Nt.runVisibilityTransition(Object.assign(Object.assign({},vt.json),{visibility:"visible"}),vt,n,Tt,e).then((()=>{"in"===e&&r(81,Xt=!1)})).catch((t=>{throw"in"===e&&r(81,Xt=!1),t})))}(e)),fn||r(88,fn=!0)}if(1&t.$$.dirty[0]|1048576&t.$$.dirty[1]|2&t.$$.dirty[3]&&vt.json&&Tt&&!Ge(vt.json.extensions,oe)){let t=r(94,oe=vt.json.extensions);It().then((()=>{if(t===oe&&Tt&&(wn(),Array.isArray(vt.json.extensions))){const t=Pt.getExtensionContext();ae=vt.json.extensions.map((e=>{var n;const r=e.id;if(!r)return;const o=Pt.getExtension(r,e.params);return o&&(null===(n=o.mountView)||void 0===n||n.call(o,Tt,t)),o})).filter(Ve)}}))}if(257&t.$$.dirty[0]|536875008&t.$$.dirty[1]|138149952&t.$$.dirty[2]|96&t.$$.dirty[3]&&r(18,V=Object.assign(Object.assign(Object.assign({},_e),Se),{"parent-overlap":C,"parent-overlap-absolute":A,"scroll-snap":bt.scrollSnap,"hide-on-transition-in":Kt||Xt||Yt,visibility:gn,"has-action-animation":Boolean(pn),"parent-flex":bt.parentContainerOrientation||void 0,"parent-grid":Boolean(bt.gridArea)||void 0,"has-custom-focus":Boolean(yn&&vt.json.focus)})),805306368&t.$$.dirty[2]|256&t.$$.dirty[3]&&S&&void 0!==S.rotation){const t=S.pivot_x||{type:"pivot-percentage",value:50};r(90,mn=Ye(t.value,mn));const e="pivot-fixed"===t.type?xe(mn):"".concat(mn,"%"),n=S.pivot_y||{type:"pivot-percentage",value:50};r(91,vn=Ye(n.value,vn));const o="pivot-fixed"===n.type?xe(vn):"".concat(vn,"%");r(92,ne="".concat(e," ").concat(o)),r(93,re="rotate(".concat(S.rotation,"deg)"))}10280&t.$$.dirty[2]&&r(95,D=je||Be?"100%":Ee||Ne?0:void 0),1346373632&t.$$.dirty[1]|1138858907&t.$$.dirty[2]|29&t.$$.dirty[3]&&r(17,F=Object.assign(Object.assign(Object.assign(Object.assign({},$t),Jt),le),{width:zt,"min-width":Rt,"max-width":Bt,height:Lt,"min-height":Ut,"max-height":Ht||(null==$t?void 0:$t["max-height"]),"grid-area":j,padding:E,margin:be,opacity:Wt,transition:pn,"transform-origin":ne,transform:re,"flex-grow":Ee||Ne||void 0,"flex-shrink":Ae||Re?1:void 0,"flex-basis":D,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ee}))},[vt,yt,St,ce,ge,qt,Gt,hn,yn,J,Mt,ue,Fe,He,sn,ln,cn,F,V,k,x,w,_,b,$,y,v,m,g,f,d,u,c,l,s,a,i,Ot,xn,function(){vt.json.focus&&(function(t){let e;return h(t,(t=>e=t))(),e}(Pt.isPointerFocus)||r(8,yn=!0),vt.execAnyActions(un))},function(){vt.json.focus&&(r(8,yn=!1),vt.execAnyActions(dn))},Vt,$t,bt,_t,wt,Et,At,jt,Dt,Ft,Tt,se,le,de,he,pe,fe,ve,be,_e,zt,Rt,Bt,we,Ee,Ae,je,Se,Lt,Ut,Ht,Pe,Ne,Re,Be,Je,Wt,Jt,on,Kt,Xt,Yt,pn,Zt,Qt,te,ee,fn,gn,mn,vn,ne,re,oe,D,E,j,A,C,o,S,P,N,I,O,T,M,z,R,B,L,U,H,W,q,G,K,X,gt,mt]}const In=class extends pe{constructor(t){super(),de(this,t,Nn,Vn,d,{componentContext:0,cls:1,style:42,layoutParams:43,customDescription:44,customPaddings:45,customActions:46,additionalPaddings:47,heightByAspect:48,parentOf:41,parentOfSimpleMode:49,replaceItems:50,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},On={"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 Tn(t,e){const n=Number(t);return Number.isNaN(n)||n<=0?e:n}function Mn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function zn(t,e){return Mn(t)||e}function Rn(t){let e,n;return{c(){e=B("span"),this.h()},l(t){e=nt(t,"SPAN",{class:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=On["text-range__top-offset"]),ct(e,"margin-top",t[5])},m(t,n){M(t,e,n)},p(t,n){32&n&&ct(e,"margin-top",t[5])},d(t){t&&z(e)}}}function Bn(t){let e;return{c(){e=U(t[1])},l(n){e=ot(n,t[1])},m(t,n){M(t,e,n)},p(t,n){2&n&&st(e,t[1])},d(t){t&&z(e)}}}function Ln(t){let e,n,r,o=t[5]&&Rn(t);return n=new hn({props:{componentContext:t[0],cls:Be("text-range",On,t[4]),actions:t[2],style:we(t[3]),$$slots:{default:[Bn]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=W(),se(n.$$.fragment)},l(t){o&&o.l(t),e=W(),le(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),M(t,e,i),ce(n,t,i),r=!0},p(t,r){let[i]=r;t[5]?o?o.p(t,i):(o=Rn(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};1&i&&(a.componentContext=t[0]),16&i&&(a.cls=Be("text-range",On,t[4])),4&i&&(a.actions=t[2]),8&i&&(a.style=we(t[3])),8388610&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Gt(n.$$.fragment,t),r=!0)},o(t){Kt(n.$$.fragment,t),r=!1},d(t){t&&z(e),o&&o.d(t),ue(n,t)}}}function Un(t,e,n){let r,o,i,a,s,l;var c,u;let{componentContext:d}=e,{text:h}=e,{rootFontSize:p}=e,{textStyles:f={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=Ct(ye);let y,$="none",b=12,_=1.25,w="",x="",k="",E=null;return t.$$set=t=>{"componentContext"in t&&n(0,d=t.componentContext),"text"in t&&n(1,h=t.text),"rootFontSize"in t&&n(6,p=t.rootFontSize),"textStyles"in t&&n(7,f=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(2,m=t.actions)},t.$$.update=()=>{if(1&t.$$.dirty&&d.json&&(n(11,$="none"),n(12,b=12),n(13,_=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,k=""),n(18,E=null)),128&t.$$.dirty){let t="none";(f.underline||f.strike)&&("single"===f.underline&&"single"===f.strike?t="both":"single"===f.underline?t="underline":"single"===f.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,b=Tn(f.font_size,b)),4224&t.$$.dirty&&fn(f.line_height)&&n(13,_=Number(f.line_height)/b),128&t.$$.dirty&&We(f.letter_spacing)&&n(14,w=xe(f.letter_spacing)),32896&t.$$.dirty&&(n(15,y=zn(f.font_weight,y)),"string"==typeof f.font_family&&f.font_family?n(16,x=v.typefaceProvider(f.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,k=Ce(f.text_color,1,k)),128&t.$$.dirty&&n(5,r=f.top_offset?xe(f.top_offset):""),128&t.$$.dirty&&n(20,o=f.background?De([f.background]):null),640&t.$$.dirty&&((null===n(9,c=f.border)||void 0===c?void 0:c.stroke)&&f.border.stroke.color&&"transparent"!==Ce(f.border.stroke.color)&&fn(f.border.stroke.width)?n(18,E={color:f.border.stroke.color,width:f.border.stroke.width}):n(18,E=null)),1152&t.$$.dirty&&n(19,i=Tn(null===n(10,u=f.border)||void 0===u?void 0:u.corner_radius,0)),4224&t.$$.dirty&&n(21,a=f.text_shadow?function(t,e){var n,r,o,i,a,s;return"drop-shadow("+Ce(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+xe(10*((null===(r=t.offset)||void 0===r||null===(o=r.x)||void 0===o?void 0:o.value)||0)/e)+" "+xe(10*((null===(i=t.offset)||void 0===i||null===(a=i.y)||void 0===a?void 0:a.value)||0)/e)+" "+xe(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(f.text_shadow,b):void 0),2304&t.$$.dirty&&n(4,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(3,l={"font-size":xe(10*b/p),"line-height":_,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:k,background:(null==o?void 0:o.color)||void 0,"box-shadow":E?"inset 0 0 0 ".concat(xe(E.width)," ").concat(E.color):void 0,"border-radius":i?xe(i):void 0})},[d,h,m,l,s,r,p,f,g,c,u,$,b,_,w,y,x,k,E,i,o,a]}const Hn=class extends pe{constructor(t){super(),de(this,t,Un,Ln,d,{componentContext:0,text:1,rootFontSize:6,textStyles:7,singleline:8,actions:2})}};function Wn(t,e,n){return"left"===t||"center"===t||"right"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}function qn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?"top"===t?"start":"bottom"===t?"end":t:e}function Jn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function Gn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}function Kn(t,e){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,o),n=null}),e)}}function Xn(t,e){let n=null;const r=()=>{const n=getComputedStyle(t),r=parseFloat(n.lineHeight);t.style.webkitLineClamp="",t.style.maxHeight="";const o=t.offsetHeight;if(t.scrollHeight<=o+1e-9)return;let i=Math.max(1,Math.floor(o/r));e.maxLines&&e.maxLines<i&&(i=e.maxLines),t.style.webkitLineClamp=String(i),t.style.maxHeight=r*i+"px"},o=Kn(r,50),i=()=>{n&&(n.disconnect(),n=null)},a=()=>{if(i(),e.enabled){if(r(),"undefined"!=typeof ResizeObserver){n=new ResizeObserver(o);const e=t.parentElement;e&&n.observe(e)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return a(),{update(t){e=t,a()},destroy(){i()}}}const{Boolean:Yn}=j;function Zn(t,e,n){const r=t.slice();return r[60]=e[n],r}function Qn(t){let e,n;return e=new Hn({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[7],singleline:t[6]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),4&n[0]&&(r.text=t[2]),8&n[0]&&(r.rootFontSize=t[3]),128&n[0]&&(r.textStyles=t[7]),64&n[0]&&(r.singleline=t[6]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function tr(t){let e,n,r=Qt(t[11]),o=[];for(let e=0;e<r.length;e+=1)o[e]=or(Zn(t,r,e));const i=t=>Kt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=W()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=W()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);M(t,e,r),n=!0},p(t,n){if(2633&n[0]|1&n[1]){let a;for(r=Qt(t[11]),a=0;a<r.length;a+=1){const i=Zn(t,r,a);o[a]?(o[a].p(i,n),Gt(o[a],1)):(o[a]=or(i),o[a].c(),Gt(o[a],1),o[a].m(e.parentNode,e))}for(qt(),a=r.length;a<o.length;a+=1)i(a);Jt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Gt(o[t]);n=!0}},o(t){o=o.filter(Yn);for(let t=0;t<o.length;t+=1)Kt(o[t]);n=!1},d(t){t&&z(e),R(o,t)}}}function er(t){let e,r,o,i,a,s,l,c,d;return{c(){e=B("span"),r=B("img"),this.h()},l(t){e=nt(t,"SPAN",{style:!0});var n=Z(e);r=nt(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(z),this.h()},h(){J(r,"class",o=be.text__image),u(r.src,i=t[60].image.url)||J(r,"src",i),J(r,"loading",a=t[60].image.preloadRequired?"eager":"lazy"),J(r,"decoding","async"),J(r,"aria-hidden","true"),J(r,"alt",""),J(r,"style",s=we({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0})),J(e,"style",l=we(t[60].image.wrapperStyle))},m(n,o){M(n,e,o),O(e,r),c||(d=q(r,"error",t[31]),c=!0)},p(t,n){2048&n[0]&&!u(r.src,i=t[60].image.url)&&J(r,"src",i),2048&n[0]&&a!==(a=t[60].image.preloadRequired?"eager":"lazy")&&J(r,"loading",a),2560&n[0]&&s!==(s=we({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0}))&&J(r,"style",s),2048&n[0]&&l!==(l=we(t[60].image.wrapperStyle))&&J(e,"style",l)},i:n,o:n,d(t){t&&z(e),c=!1,d()}}}function nr(t){let e,n,r=t[60].text&&rr(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[60].text?r?(r.p(t,n),2048&n[0]&&Gt(r,1)):(r=rr(t),r.c(),Gt(r,1),r.m(e.parentNode,e)):r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt())},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function rr(t){let e,n;return e=new Hn({props:{componentContext:t[0],text:t[60].text,rootFontSize:t[3],textStyles:t[60].textStyles,singleline:t[6],actions:t[60].actions}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2048&n[0]&&(r.text=t[60].text),8&n[0]&&(r.rootFontSize=t[3]),2048&n[0]&&(r.textStyles=t[60].textStyles),64&n[0]&&(r.singleline=t[6]),2048&n[0]&&(r.actions=t[60].actions),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function or(t){let e,n,r,o;const i=[nr,er],a=[];function s(t,e){return"text"in t[60]?0:t[60].image?1:-1}return~(e=s(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=W()},l(t){n&&n.l(t),r=W()},m(t,n){~e&&a[e].m(t,n),M(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?~e&&a[e].p(t,o):(n&&(qt(),Kt(a[l],1,1,(()=>{a[l]=null})),Jt()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Gt(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Gt(n),o=!0)},o(t){Kt(n),o=!1},d(t){t&&z(r),~e&&a[e].d(t)}}}function ir(t){let e,n,r,o,i,a,s,c,u;const d=[tr,Qn],h=[];function p(t,e){return t[11].length?0:1}return n=p(t),r=h[n]=d[n](t),{c(){e=B("span"),r.c(),this.h()},l(t){e=nt(t,"SPAN",{class:!0,style:!0});var n=Z(e);r.l(n),n.forEach(z),this.h()},h(){J(e,"class",o=Be("text__inner",be,t[13])),J(e,"style",i=we(t[12]))},m(r,o){M(r,e,o),h[n].m(e,null),s=!0,c||(u=b(a=Xn.call(null,e,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})),c=!0)},p(t,c){let u=n;n=p(t),n===u?h[n].p(t,c):(qt(),Kt(h[u],1,1,(()=>{h[u]=null})),Jt(),r=h[n],r?r.p(t,c):(r=h[n]=d[n](t),r.c()),Gt(r,1),r.m(e,null)),(!s||8192&c[0]&&o!==(o=Be("text__inner",be,t[13])))&&J(e,"class",o),(!s||4096&c[0]&&i!==(i=we(t[12])))&&J(e,"style",i),a&&l(a.update)&&1296&c[0]&&a.update.call(null,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})},i(t){s||(Gt(r),s=!0)},o(t){Kt(r),s=!1},d(t){t&&z(e),h[n].d(),c=!1,u()}}}function ar(t){let e,n;return e=new In({props:{cls:Be("text",be,t[14])+" "+(t[5]?"":ve.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[ir]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};16416&n[0]&&(r.cls=Be("text",be,t[14])+" "+(t[5]?"":ve.root__unselectable)),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),16349&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function sr(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M,z,R,B,L,U,H=n,W=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n;t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot()));let{componentContext:it}=e,{layoutParams:at}=e;const st=Ct(ye),lt=st.direction;p(t,lt,(t=>r(52,M=t)));let ct,ut="",dt=12,ht=1.25,pt=!1,ft="",gt="",mt=!1,vt="start",yt="start",$t="",bt="",_t="",wt=!1,xt=[],Et=[];return kt((()=>{Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)}))})),t.$$set=t=>{"componentContext"in t&&r(0,it=t.componentContext),"layoutParams"in t&&r(1,at=t.layoutParams)},t.$$.update=()=>{var e;if(1&t.$$.dirty[0]&&it.json&&(r(3,dt=12),r(32,ht=1.25),r(9,pt=!1),r(33,ft=""),r(10,ct=void 0),r(4,gt=""),r(34,mt=!1),r(35,vt="start"),r(36,yt="start"),r(37,$t=""),r(39,_t=""),r(5,wt=!1)),1&t.$$.dirty[0]&&(r(29,o=it.getDerivedFromVars(it.json.text)),ot(),ot=h(o,(t=>r(56,U=t)))),1&t.$$.dirty[0]&&(r(28,i=it.getDerivedFromVars(it.json.ranges)),q(),q=h(i,(t=>r(44,D=t)))),1&t.$$.dirty[0]&&(r(27,a=it.getDerivedFromVars(it.json.images)),W(),W=h(a,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(26,s=it.getDerivedFromVars({font_size:it.json.font_size,letter_spacing:it.json.letter_spacing,font_weight:it.json.font_weight,font_family:it.json.font_family,text_color:it.json.text_color,underline:it.json.underline,strike:it.json.strike,line_height:it.json.line_height,text_shadow:it.json.text_shadow})),H(),H=h(s,(t=>r(7,j=t)))),1&t.$$.dirty[0]&&(r(25,l=it.getDerivedFromVars(it.json.font_size)),rt(),rt=h(l,(t=>r(55,L=t)))),1&t.$$.dirty[0]&&(r(24,c=it.getDerivedFromVars(it.json.line_height)),nt(),nt=h(c,(t=>r(54,B=t)))),1&t.$$.dirty[0]&&(r(23,u=it.getDerivedFromVars(it.json.max_lines)),Z(),Z=h(u,(t=>r(50,O=t)))),1&t.$$.dirty[0]&&(r(22,d=it.getDerivedFromVars(it.json.text_alignment_horizontal)),tt(),tt=h(d,(t=>r(53,z=t)))),1&t.$$.dirty[0]&&(r(21,f=it.getDerivedFromVars(it.json.text_alignment_vertical)),Q(),Q=h(f,(t=>r(51,T=t)))),1&t.$$.dirty[0]&&(r(20,g=it.getDerivedFromVars(it.json.text_color)),Y(),Y=h(g,(t=>r(49,I=t)))),1&t.$$.dirty[0]&&(r(19,m=it.getDerivedFromVars(it.json.focused_text_color)),X(),X=h(m,(t=>r(48,N=t)))),1&t.$$.dirty[0]&&(r(18,v=it.getDerivedFromVars(it.json.truncate)),K(),K=h(v,(t=>r(47,P=t)))),1&t.$$.dirty[0]&&(r(17,y=it.getDerivedFromVars(it.json.text_gradient)),G(),G=h(y,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(16,$=it.getDerivedFromVars(it.json.selectable)),J(),J=h($,(t=>r(45,F=t)))),1&t.$$.dirty[0]&&(r(15,b=it.getDerivedFromVars(it.json.auto_ellipsize)),et(),et=h(b,(t=>r(8,R=t)))),33554432&t.$$.dirty[1]&&r(2,(e=U,ut=String(null!=e?e:""))),8&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(3,dt=Tn(L,dt)),8&t.$$.dirty[0]|8388608&t.$$.dirty[1]){const t=B;fn(t)?(r(32,ht=Number(t)/dt),r(9,pt=!0)):r(9,pt=!1)}if(524288&t.$$.dirty[1]&&r(6,_=1===O),256&t.$$.dirty[0]|524290&t.$$.dirty[1]){let t,e="",n="",o=!1;if(O&&O>1){const r=Number(O);e=r*ht+"em",t=r,n=r,o=!0}else R&&1!==O&&(o=!0);r(33,ft=e),r(10,ct=t),r(4,gt=n),r(34,mt=o)}if(6291472&t.$$.dirty[1]&&r(35,vt=Wn(z,M,vt)),1048608&t.$$.dirty[1]&&r(36,yt=qn(T,yt)),4&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(42,w=!D||ut&&1===D.length&&D[0]&&0===D[0].start&&"number"==typeof D[0].end&&D[0].end>=ut.length),270336&t.$$.dirty[1]&&r(41,x=Boolean(I)!==Boolean(D&&D[0]&&D[0].text_color)),797760&t.$$.dirty[1]){let t="";O&&w&&x&&(t=Ce(I||D&&D[0]&&D[0].text_color,1,$t)),r(37,$t=t)}if(131200&t.$$.dirty[1]&&r(38,bt=Ce(N,1,bt)),65536&t.$$.dirty[1]&&r(40,k="none"===P?"none":""),32768&t.$$.dirty[1]){let t="";if(S){const e=De([S]);e.image&&(t=e.image)}r(39,_t=t)}32&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(5,wt=Jn(F,wt)),132&t.$$.dirty[0]|12288&t.$$.dirty[1]&&function(t,e,n,o){let i=[];if(Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)})),Et=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(11,xt=[]);const a=t;let s=e||[{start:0,end:a.length}],l=n||[],c=0,u=[],d=[];s.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(d.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),d.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=a.length&&d.push({index:t.start,image:t,type:"image",arrayIndex:e})})),d.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),d.forEach((t=>{var e,n;let r="image"===t.type?null:t.range,s=t.index;if(s>c){let r=Object.assign(Object.assign({},o),...u);i.push({text:a.substring(c,s),textStyles:r,actions:"rangeEnd"===t.type&&(null===(n=null===(e=t.range)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.filter(en))||void 0})}if("rangeStart"===t.type&&r)u.push(r);else if("rangeEnd"===t.type)u=u.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},o),...u),n=xe(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=xe(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const a={"font-size":xe(10*(Number(e.font_size)||12)/dt)};let s="";const l=t.image.tint_color,c=Gn(t.image.tint_mode,"source_in");if(l){const e=Ce(t.image.tint_color);s=st.addSvgFilter(e,c),Et.push([e,c])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:a,svgFilterId:s,preloadRequired:Boolean(t.image.preload_required)}})}c=s})),c<a.length&&i.push({text:a.substring(c),textStyles:Object.assign({},o)}),r(11,xt=i)}(ut,D,V,j),64&t.$$.dirty[0]|696&t.$$.dirty[1]&&r(14,E={singleline:_,multiline:mt,halign:vt,valign:yt,truncate:k,"has-focus-color":Boolean(bt)}),256&t.$$.dirty[1]&&r(13,C={gradient:Boolean(_t)}),24&t.$$.dirty[0]|454&t.$$.dirty[1]&&r(12,A={"font-size":xe(dt),"line-height":ht,"max-height":ft,"-webkit-line-clamp":gt,color:$t,"background-image":_t,"--divkit-text-focus-color":bt})},[it,at,ut,dt,gt,wt,_,j,R,pt,ct,xt,A,C,E,b,$,y,v,m,g,f,d,u,c,l,s,a,i,o,lt,function(t){t.target&&"classList"in t.target&&t.target.classList.add(be.text__image_hidden)},ht,ft,mt,vt,yt,$t,bt,_t,k,x,w,V,D,F,S,P,N,I,O,T,M,z,B,L,U]}const lr={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_overflow_visible:"divkit-f315a",container_orientation_vertical:"divkit-ddc33",container_valign_start:"divkit-a31f0",container_valign_center:"divkit-aae61",container_valign_end:"divkit-eac00","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_start:"divkit-efaf5",container_halign_center:"divkit-bac9d",container_halign_end:"divkit-ca36b","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function cr(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 ur(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+o:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+o:t.right=e.style.width+r)}function dr(t,e,n){let r;const o=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),s=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+s:0,null!=e&&e.show_between?e.style.width+o:0]:[null!=e&&e.show_between?e.style.height+i:0,null!=n&&n.show_between?n.style.width+a:0],r.map(xe).join(" ")}function hr(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function pr(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function fr(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:Te(null===(i=(o=t.shape).item_width)||void 0===i?void 0:i.value,10),height:Te(null===(a=o.item_height)||void 0===a?void 0:a.value,10),radius:Te(null===(s=o.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Te(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var o,i,a,s;return function(t,e,n){var r;const o={},i=e.stroke||(null==n?void 0:n.stroke),a=null!=i&&i.color?Ce(i.color):"",s=null!=i&&i.width?Number(null!==(r=i.width)&&void 0!==r?r:1):"";o.width=t.width,o.height=t.height,o.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return o.background=Ce(l),a&&s&&(o.boxShadow="inset 0 0 0 ".concat(xe(s)," ").concat(a)),o}(r,t.shape,{color:t.color,stroke:t.stroke})}let gr;function mr(){if("undefined"==typeof document&&(gr=!0),void 0!==gr)return gr;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),gr=1===t.scrollHeight,document.body.removeChild(t),gr}const vr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:yr}=j;function $r(t,e,n){const r=t.slice();return r[16]=e[n],r}function br(t){let e,n,r,o,i,a="".concat(t[16].style.width,"px"),s="".concat(t[16].style.height,"px"),l="".concat(t[16].style.borderRadius,"px"),c="".concat(t[16].left,"px"),u="".concat(t[16].top,"px"),d="".concat(t[16].width,"px"),h="".concat(t[16].height,"px");return{c(){e=B("div"),n=B("div"),o=H(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var r=Z(e);n=nt(r,"DIV",{class:!0}),Z(n).forEach(z),o=it(r),r.forEach(z),this.h()},h(){J(n,"class",r=vr["container-separator__shape"]),ct(n,"width",a),ct(n,"height",s),ct(n,"border-radius",l),ct(n,"background",t[16].style.background),ct(n,"box-shadow",t[16].style.boxShadow),J(e,"class",i=vr["container-separator__item"]),ct(e,"left",c),ct(e,"top",u),ct(e,"width",d),ct(e,"height",h)},m(t,r){M(t,e,r),O(e,n),O(e,o)},p(t,r){2&r&&a!==(a="".concat(t[16].style.width,"px"))&&ct(n,"width",a),2&r&&s!==(s="".concat(t[16].style.height,"px"))&&ct(n,"height",s),2&r&&l!==(l="".concat(t[16].style.borderRadius,"px"))&&ct(n,"border-radius",l),2&r&&ct(n,"background",t[16].style.background),2&r&&ct(n,"box-shadow",t[16].style.boxShadow),2&r&&c!==(c="".concat(t[16].left,"px"))&&ct(e,"left",c),2&r&&u!==(u="".concat(t[16].top,"px"))&&ct(e,"top",u),2&r&&d!==(d="".concat(t[16].width,"px"))&&ct(e,"width",d),2&r&&h!==(h="".concat(t[16].height,"px"))&&ct(e,"height",h)},d(t){t&&z(e)}}}function _r(t){let e,r,o,i,a=Qt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=br($r(t,a,e));return{c(){e=B("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(z),this.h()},h(){J(e,"class",r=vr["container-separator"])},m(n,r){M(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[13](e),o||(i=q(yr,"resize",t[2]),o=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=Qt(t[1]),n=0;n<a.length;n+=1){const o=$r(t,a,n);s[n]?s[n].p(o,r):(s[n]=br(o),s[n].c(),s[n].m(e,null))}for(;n<s.length;n+=1)s[n].d(1);s.length=a.length}},i:n,o:n,d(n){n&&z(e),R(s,n),t[13](null),o=!1,i()}}}function wr(t,e,n,r,o,i){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;i?t.push({top:n.bottom+l,left:o.left+a,width:Math.max(0,o.right-o.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:o.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,o.bottom-o.top-l-c),style:e.style})}function xr(t,e,n,r,o,i){const a={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if(null==e?void 0:e.show_at_start){let s,l;"space-around"===o||"space-evenly"===o?(s=i.left-e.style.width,l=i.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),wr(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)wr(t,e,n[o],n[o+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===o||"space-evenly"===o?(l=i.bottom+e.style.height,c=i.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),wr(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function kr(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e,{direction:c}=e;const u=function(t,e){let n,r=0,o=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect(),e=window.getComputedStyle(r),u={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,h=[]);let p=[...r.children].filter((t=>t!==d&&!t.classList.contains(_e.outer__border))),f=[];for(;p.length;){const t=[],e=p.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.left,i=n.right,a=n.bottom;for(;p.length;){let e=p[0],n=e.getBoundingClientRect();if("vertical"===o){if(n.top<a)break}else if("ltr"===c?n.left<i:n.right>r)break;i=Math.max(i,n.right),r=Math.min(r,n.left),a=Math.max(a,n.bottom),t.push(e),p.shift()}f.push(t)}const g=[];f.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));"rtl"===c&&"horizontal"===o&&e.reverse(),i&&xr(h,i,e,"vertical"===o,"vertical"===o?l:s,u);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};g.push(n)})),"rtl"===c&&"vertical"===o&&g.reverse(),a&&xr(h,a,g,"horizontal"===o,"vertical"===o?s:l,u),h.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let d,h=[],p=!1,f=null,g=null;function m(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(vr["container-separator__shape"]))&&!(null==n?void 0:n.contains(vr["container-separator"]))}))&&u()}return wt((()=>{n(9,p=!0)})),kt((()=>{n(9,p=!1)})),t.$$set=t=>{"orientation"in t&&n(3,o=t.orientation),"separator"in t&&n(4,i=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign),"direction"in t&&n(8,c=t.direction)},t.$$.update=()=>{1&t.$$.dirty&&n(12,r=(null==d?void 0:d.parentElement)||null),7680&t.$$.dirty&&(p&&r||f||g)&&(f&&(f.disconnect(),n(10,f=null)),g&&(g.disconnect(),n(11,g=null)),p&&r&&("undefined"!=typeof MutationObserver&&(n(10,f=new MutationObserver(m)),f.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(11,g=new ResizeObserver(u)),g.observe(r)))),4608&t.$$.dirty&&p&&r&&u()},[d,h,u,o,i,a,s,l,c,p,f,g,r,function(t){Vt[t?"unshift":"push"]((()=>{d=t,n(0,d)}))}]}const Er=class extends pe{constructor(t){super(),de(this,t,kr,_r,d,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}},{Boolean:Cr}=j;function Ar(t,e,n){const r=t.slice();return r[54]=e[n],r}function jr(t){let e,n;return e=new Ds({props:{componentContext:t[54],layoutParams:t[8]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.componentContext=t[54]),256&n[0]&&(r.layoutParams=t[8]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Vr(t){let e,n;return e=new Er({props:{direction:t[11],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.direction=t[11]),32&n[0]&&(r.separator=t[5]),64&n[0]&&(r.lineSeparator=t[6]),4&n[0]&&(r.orientation=t[2]),16&n[0]&&(r.contentHAlign=t[4]),8&n[0]&&(r.contentVAlign=t[3]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Dr(t){let e,n,r,o=Qt(t[9]),i=[];for(let e=0;e<o.length;e+=1)i[e]=jr(Ar(t,o,e));const a=t=>Kt(i[t],1,1,(()=>{i[t]=null}));let s=(t[5]||t[6])&&Vr(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=H(),s&&s.c(),n=W()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=it(t),s&&s.l(t),n=W()},m(t,o){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,o);M(t,e,o),s&&s.m(t,o),M(t,n,o),r=!0},p(t,r){if(768&r[0]){let n;for(o=Qt(t[9]),n=0;n<o.length;n+=1){const a=Ar(t,o,n);i[n]?(i[n].p(a,r),Gt(i[n],1)):(i[n]=jr(a),i[n].c(),Gt(i[n],1),i[n].m(e.parentNode,e))}for(qt(),n=o.length;n<i.length;n+=1)a(n);Jt()}t[5]||t[6]?s?(s.p(t,r),96&r[0]&&Gt(s,1)):(s=Vr(t),s.c(),Gt(s,1),s.m(n.parentNode,n)):s&&(qt(),Kt(s,1,1,(()=>{s=null})),Jt())},i(t){if(!r){for(let t=0;t<o.length;t+=1)Gt(i[t]);Gt(s),r=!0}},o(t){i=i.filter(Cr);for(let t=0;t<i.length;t+=1)Kt(i[t]);Kt(s),r=!1},d(t){t&&(z(e),z(n)),R(i,t),s&&s.d(t)}}}function Fr(t){let e,n;return e=new In({props:{cls:Be("container",lr,t[13]),componentContext:t[0],layoutParams:t[1],style:t[10],additionalPaddings:t[14],heightByAspect:Boolean(t[7]),parentOf:t[9].map(Ir),replaceItems:t[27],$$slots:{default:[Dr]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Be("container",lr,t[13])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1024&n[0]&&(r.style=t[10]),16384&n[0]&&(r.additionalPaddings=t[14]),128&n[0]&&(r.heightByAspect=Boolean(t[7])),512&n[0]&&(r.parentOf=t[9].map(Ir)),2940&n[0]|67108864&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}const Sr={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},Pr={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Nr=["rounded_rectangle","circle"],Ir=t=>t.json;function Or(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M=n,z=n,R=n,B=n,L=n,U=n,H=n,W=n,q=n,J=n,G=n,K=n;var X,Y,Z,Q,tt,et,nt;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{componentContext:rt}=e,{layoutParams:ot}=e;const it=Ct(ye),at=it.direction;let st;p(t,at,(t=>r(11,F=t)));let lt,ct="vertical",ut="start",dt="start",ht=null,pt=null,ft={},gt=[];return t.$$set=t=>{"componentContext"in t&&r(0,rt=t.componentContext),"layoutParams"in t&&r(1,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(39,o=rt.origJson),256&t.$$.dirty[1]&&o&&(r(2,ct="vertical"),r(3,ut="start"),r(4,dt="start"),r(7,lt=void 0)),1&t.$$.dirty[0]&&r(38,i=rt.json.items),268435457&t.$$.dirty[0]&&(r(25,a=rt.getDerivedFromVars(null===r(28,X=rt.json.item_builder)||void 0===X?void 0:X.data,void 0,!0)),K(),K=h(a,(t=>r(51,T=t)))),1&t.$$.dirty[0]&&(r(24,s=rt.getDerivedFromVars(rt.json.orientation)),G(),G=h(s,(t=>r(50,O=t)))),1&t.$$.dirty[0]&&(r(23,l=rt.getDerivedFromVars(rt.json.layout_mode)),J(),J=h(l,(t=>r(49,I=t)))),1&t.$$.dirty[0]&&(r(22,c=rt.getDerivedFromVars(rt.json.content_alignment_vertical)),W(),W=h(c,(t=>r(47,P=t)))),1&t.$$.dirty[0]&&(r(21,u=rt.getDerivedFromVars(rt.json.content_alignment_horizontal)),H(),H=h(u,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(20,d=rt.getDerivedFromVars(rt.json.separator)),U(),U=h(d,(t=>r(45,D=t)))),1&t.$$.dirty[0]&&(r(19,f=rt.getDerivedFromVars(rt.json.line_separator)),L(),L=h(f,(t=>r(44,V=t)))),1&t.$$.dirty[0]&&(r(18,g=rt.getDerivedFromVars(rt.json.aspect)),B(),B=h(g,(t=>r(43,j=t)))),1&t.$$.dirty[0]&&(r(17,m=rt.getDerivedFromVars(rt.json.width)),z(),z=h(m,(t=>r(41,C=t)))),1&t.$$.dirty[0]&&(r(16,v=rt.getDerivedFromVars(rt.json.height)),R(),R=h(v,(t=>r(42,A=t)))),1&t.$$.dirty[0]&&(r(15,y=rt.getDerivedFromVars(rt.json.clip_to_bounds)),M(),M=h(y,(t=>r(40,E=t)))),1&t.$$.dirty[0]|1048704&t.$$.dirty[1]){let t=[];if(rt.json.item_builder&&Array.isArray(T)&&Array.isArray(rt.json.item_builder.prototypes)){const e=rt.json.item_builder;t=[],T.forEach((n=>{if(null===n||"object"!=typeof n)return;const r=it.preparePrototypeVariables(e.data_element_name||"it",n);let o;for(let t=0;t<e.prototypes.length;++t){const n=e.prototypes[t];if(n.div){if(void 0===n.selector){o=n.div;break}if(rt.getJsonWithVars(n.selector,r)){o=n.div;break}}}o&&t.push({div:o,vars:r})}))}else t=(Array.isArray(i)&&i||[]).map((t=>({div:t})));r(9,gt=t.map(((t,e)=>rt.produceChildContext(t.div,{path:e,variables:t.vars}))))}if(513&t.$$.dirty[0]){let t=[];gt.forEach((e=>{t.push(rt.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(12,st=me(t,(t=>[...t]))),q(),q=h(st,(t=>r(48,N=t)))}if(4&t.$$.dirty[0]|524288&t.$$.dirty[1]&&r(2,ct=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(O,ct)),262144&t.$$.dirty[1]&&r(35,$="wrap"===I),4&t.$$.dirty[0]|131088&t.$$.dirty[1]&&r(36,b="horizontal"!==ct&&!$&&N.some(hr)),4&t.$$.dirty[0]|131088&t.$$.dirty[1]&&r(37,_="vertical"!==ct&&!$&&N.some(pr)),8&t.$$.dirty[0]|65536&t.$$.dirty[1]&&r(3,ut=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?"top"===t?"start":"bottom"===t?"end":t:e}(P,ut)),2064&t.$$.dirty[0]|32768&t.$$.dirty[1]&&r(4,dt=function(t,e,n){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}(S,F,dt)),1610612772&t.$$.dirty[0]|16385&t.$$.dirty[1])if((null==D?void 0:D.style)&&"overlap"!==ct&&mr()){const t=fr(D.style,Nr,(null==ht?void 0:ht.style)||null);r(5,ht=t?{show_at_start:Boolean(null!==r(29,Y=D.show_at_start)&&void 0!==Y&&Y),show_at_end:Boolean(null!==r(30,Z=D.show_at_end)&&void 0!==Z&&Z),show_between:Boolean(null===r(31,Q=D.show_between)||void 0===Q||Q),style:t,margins:cr(D.margins)}:null)}else r(5,ht=null);if(68&t.$$.dirty[0]|8206&t.$$.dirty[1])if((null==V?void 0:V.style)&&"overlap"!==ct&&mr()){const t=fr(V.style,Nr,(null==pt?void 0:pt.style)||null);r(6,pt=t?{show_at_start:Boolean(null!==r(32,tt=V.show_at_start)&&void 0!==tt&&tt),show_at_end:Boolean(null!==r(33,et=V.show_at_end)&&void 0!==et&&et),show_between:Boolean(null===r(34,nt=V.show_between)||void 0===nt||nt),style:t,margins:cr(V.margins)}:null)}else r(6,pt=null);if(100&t.$$.dirty[0]&&r(14,w=ht||pt?function(t,e,n){const r={};return ur(r,e,"vertical"===t),ur(r,n,"horizontal"===t),r}(ct,ht,pt):null),4096&t.$$.dirty[1]){const t=null==j?void 0:j.ratio;t&&fn(t)?r(7,lt=t):r(7,lt=void 0)}if(414&t.$$.dirty[0]|3184&t.$$.dirty[1]){let t={};"overlap"===ct&&(t.overlapParent=!0),"horizontal"!==ct&&(t.parentHAlign=$?"start":Sr[dt]),"vertical"!==ct&&(t.parentVAlign=$?"start":Pr[ut]),lt||_||A&&"wrap_content"!==A.type&&("match_parent"!==A.type||!(null==ot?void 0:ot.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!b&&("wrap_content"===(null==C?void 0:C.type)||"match_parent"===(null==C?void 0:C.type)&&(null==ot?void 0:ot.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===ct&&(t.parentContainerOrientation="horizontal"),"vertical"===ct&&(t.parentContainerOrientation="vertical"),$&&(t.parentContainerWrap=!0),r(8,ft=Ke(t,ft))}28&t.$$.dirty[0]|528&t.$$.dirty[1]&&r(13,x={orientation:ct,valign:ut,halign:dt,wrap:$,overflow:!1===E||0===E?"visible":void 0}),228&t.$$.dirty[0]&&r(10,k={gap:ht||pt?dr(ct,ht,pt):void 0,"aspect-ratio":lt})},[rt,ot,ct,ut,dt,ht,pt,lt,ft,gt,k,F,st,x,w,y,v,m,g,f,d,u,c,l,s,a,at,function(t){r(0,rt=Object.assign(Object.assign({},rt),{json:Object.assign(Object.assign({},rt.json),{items:t.filter(Ve)})}))},X,Y,Z,Q,tt,et,nt,$,b,_,i,o,E,C,A,j,V,D,S,P,N,I,O,T]}const Tr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Mr(t,e){return"vertical"===t||"horizontal"===t?t:e}function zr(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=nt(t,"SPAN",{class:!0,style:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=Tr.separator__inner),J(e,"style",r=we(t[3]))},m(t,n){M(t,e,n)},p(t,n){8&n&&r!==(r=we(t[3]))&&J(e,"style",r)},d(t){t&&z(e)}}}function Rr(t){let e,n=t[4]&&zr(t);return{c(){n&&n.c(),e=W()},l(t){n&&n.l(t),e=W()},m(t,r){n&&n.m(t,r),M(t,e,r)},p(t,r){t[4]?n?n.p(t,r):(n=zr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&z(e),n&&n.d(t)}}}function Br(t){let e,n;return e=new In({props:{cls:Be("separator",Tr,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Rr]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){let[r]=n;const o={};4&r&&(o.cls=Be("separator",Tr,t[2])),1&r&&(o.componentContext=t[0]),2&r&&(o.layoutParams=t[1]),8216&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Lr(t,e,r){let o,i,a,s,l,c,u,d,p=n;t.$$.on_destroy.push((()=>p()));let{componentContext:f}=e,{layoutParams:g}=e,m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"componentContext"in t&&r(0,f=t.componentContext),"layoutParams"in t&&r(1,g=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&r(10,o=f.origJson),1024&t.$$.dirty&&o&&(r(6,m="horizontal"),r(7,v="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(r(5,i=f.getDerivedFromVars(f.json.delimiter_style)),p(),p=h(i,(t=>r(11,d=t)))),2112&t.$$.dirty&&r(6,m=Mr(null==d?void 0:d.orientation,m)),2048&t.$$.dirty&&r(4,a=!((null==d?void 0:d.color)&&("transparent"===d.color||9===d.color.length&&0===d.color.indexOf("#00")))),2176&t.$$.dirty&&r(7,v=Ce(null==d?void 0:d.color,1,v)),64&t.$$.dirty&&r(9,s="horizontal"===m?"100%":xe(1)),64&t.$$.dirty&&r(8,l="horizontal"===m?xe(1):"100%"),896&t.$$.dirty&&r(3,c={background:v,width:s,height:l}),64&t.$$.dirty&&r(2,u={orientation:m})},[f,g,u,c,a,i,m,v,l,s,o,d]}const Ur={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image_is-rtl-mirror":"divkit-ae78c","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Hr(t){return t.startsWith("data:")?je(t):"data:image/jpg;base64,".concat(je(t))}function Wr(t){let e,n;return e=new In({props:{cls:Be("image",Ur,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[Kr]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=Be("image",Ur,t[9])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),67110780&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function qr(t){let e,n,r,o,i,a,l,c;return{c(){e=B("img"),this.h()},l(t){e=nt(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){J(e,"class",n=Ur.image__image),u(e.src,r=t[3]===Zr?Yr:t[4])||J(e,"src",r),J(e,"loading",o=t[26]?"eager":"lazy"),J(e,"decoding","async"),J(e,"style",i=we(t[8])),J(e,"alt",t[10]),J(e,"aria-hidden",a=t[10]?null:"true")},m(n,r){M(n,e,r),t[63](e),l||(c=[q(e,"load",t[28]),q(e,"error",t[29])],l=!0)},p(t,n){24&n[0]&&!u(e.src,r=t[3]===Zr?Yr:t[4])&&J(e,"src",r),67108864&n[0]&&o!==(o=t[26]?"eager":"lazy")&&J(e,"loading",o),256&n[0]&&i!==(i=we(t[8]))&&J(e,"style",i),1024&n[0]&&J(e,"alt",t[10]),1024&n[0]&&a!==(a=t[10]?null:"true")&&J(e,"aria-hidden",a)},d(n){n&&z(e),t[63](null),l=!1,s(c)}}}function Jr(t){let e,n,r,o,i,a,l,c,d,h,p="".concat(t[5],"%");return{c(){e=B("span"),n=B("img"),this.h()},l(t){e=nt(t,"SPAN",{class:!0});var r=Z(e);n=nt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(z),this.h()},h(){J(n,"class",r=Ur.image__image),u(n.src,o=t[3]===Zr?Yr:t[4])||J(n,"src",o),J(n,"loading",i=t[26]?"eager":"lazy"),J(n,"decoding","async"),J(n,"style",a=we(t[8])),J(n,"alt",t[10]),J(n,"aria-hidden",l=t[10]?null:"true"),J(e,"class",c=Ur["image__aspect-wrapper"]),ct(e,"padding-bottom",p)},m(r,o){M(r,e,o),O(e,n),t[62](n),d||(h=[q(n,"load",t[28]),q(n,"error",t[29])],d=!0)},p(t,r){24&r[0]&&!u(n.src,o=t[3]===Zr?Yr:t[4])&&J(n,"src",o),67108864&r[0]&&i!==(i=t[26]?"eager":"lazy")&&J(n,"loading",i),256&r[0]&&a!==(a=we(t[8]))&&J(n,"style",a),1024&r[0]&&J(n,"alt",t[10]),1024&r[0]&&l!==(l=t[10]?null:"true")&&J(n,"aria-hidden",l),32&r[0]&&p!==(p="".concat(t[5],"%"))&&ct(e,"padding-bottom",p)},d(n){n&&z(e),t[62](null),d=!1,s(h)}}}function Gr(t){let e;function n(t,e){return t[9].aspect?Jr:qr}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),M(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&z(e),o.d(t)}}}function Kr(t){let e,n=t[6],r=Gr(t);return{c(){r.c(),e=W()},l(t){r.l(t),e=W()},m(t,n){r.m(t,n),M(t,e,n)},p(t,o){64&o[0]&&d(n,n=t[6])?(r.d(1),r=Gr(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&z(e),r.d(t)}}}function Xr(t){let e,n,r=!t[7]&&Wr(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[7]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),128&n[0]&&Gt(r,1)):(r=Wr(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}const Yr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Zr=2;function Qr(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M,z,R,B,L,U=n,H=n,W=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n;t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt()));let{componentContext:ot}=e,{layoutParams:it}=e;const at=Ct(ye),st=at.direction;let lt;p(t,st,(t=>r(48,j=t)));let ct,ut,dt=0,ht=!1,pt="rgba(0,0,0,0.08)",ft=!1,gt="",mt="none",vt="50% 50%",yt="0",$t="source_in",bt="",_t="",wt=0,xt=0,Et=0,At="",jt="",Dt=!1;return kt((()=>{at.removeSvgFilter(ut,$t)})),t.$$set=t=>{"componentContext"in t&&r(0,ot=t.componentContext),"layoutParams"in t&&r(1,it=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(46,o=ot.origJson),32768&t.$$.dirty[1]&&o&&(r(33,mt="none"),r(34,vt="50% 50%"),r(36,$t="source_in")),1&t.$$.dirty[0]&&(r(25,i=ot.getDerivedFromVars(ot.json.image_url)),et(),et=h(i,(t=>r(60,R=t)))),1&t.$$.dirty[0]&&(r(24,a=ot.getDerivedFromVars(ot.json.gif_url)),nt(),nt=h(a,(t=>r(61,B=t)))),1&t.$$.dirty[0]&&(r(23,s=ot.getDerivedFromVars(ot.json.width)),tt(),tt=h(s,(t=>r(59,z=t)))),1&t.$$.dirty[0]&&(r(22,l=ot.getDerivedFromVars(ot.json.height)),Q(),Q=h(l,(t=>r(58,M=t)))),1&t.$$.dirty[0]&&(r(21,c=ot.getDerivedFromVars(ot.json.preview)),Z(),Z=h(c,(t=>r(57,T=t)))),1&t.$$.dirty[0]&&(r(20,u=ot.getDerivedFromVars(ot.json.placeholder_color)),Y(),Y=h(u,(t=>r(56,O=t)))),1&t.$$.dirty[0]&&(r(19,d=ot.getDerivedFromVars(ot.json.scale)),X(),X=h(d,(t=>r(55,I=t)))),1&t.$$.dirty[0]&&(r(18,f=ot.getDerivedFromVars({content_alignment_horizontal:ot.json.content_alignment_horizontal,content_alignment_vertical:ot.json.content_alignment_vertical})),K(),K=h(f,(t=>r(54,N=t)))),1&t.$$.dirty[0]&&(r(17,g=ot.getDerivedFromVars(ot.json.accessibility)),G(),G=h(g,(t=>r(53,P=t)))),1&t.$$.dirty[0]&&(r(16,m=ot.getDerivedFromVars(ot.json.aspect)),J(),J=h(m,(t=>r(52,S=t)))),1&t.$$.dirty[0]&&(r(15,v=ot.getDerivedFromVars(ot.json.tint_color)),q(),q=h(v,(t=>r(51,F=t)))),1&t.$$.dirty[0]&&(r(14,y=ot.getDerivedFromVars(ot.json.tint_mode)),W(),W=h(y,(t=>r(50,D=t)))),1&t.$$.dirty[0]&&(r(13,$=ot.getDerivedFromVars(ot.json.appearance_animation)),H(),H=h($,(t=>r(49,V=t)))),1&t.$$.dirty[0]&&(r(12,b=ot.getDerivedFromVars(ot.json.filters)),U(),U=h(b,(t=>r(47,A=t)))),1&t.$$.dirty[0]&&(r(11,_=ot.getDerivedFromVars(ot.json.preload_required)),rt(),rt=h(_,(t=>r(26,L=t)))),1073741825&t.$$.dirty[0]|1610612736&t.$$.dirty[1]){let t="gif"===ot.json.type?B:R;r(30,ht="empty://"===t),ht&&(t=Yr),r(4,ct=t)}if(16&t.$$.dirty[0]&&r(3,dt=0),17&t.$$.dirty[0]&&(ct?r(7,ft=!1):(r(7,ft=!0),ot.logError($e(new Error('Missing "'.concat("gif"===ot.json.type?"gif_url":"image_url",'" for "').concat(ot.json.type,'"')))))),268435456&t.$$.dirty[1]&&r(45,w="wrap_content"===(null==z?void 0:z.type)),134217728&t.$$.dirty[1]&&r(44,x="wrap_content"===(null==M?void 0:M.type)),1073741832&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(32,gt=(0===dt||dt===Zr||ht)&&T?'url("'.concat(Hr(T),'")'):""),1073741832&t.$$.dirty[0]|33554433&t.$$.dirty[1]&&r(31,pt=0===dt||dt===Zr||ht?Ce(O,1,pt):""),16777220&t.$$.dirty[1]&&r(33,mt=Pe(I)||mt),8388608&t.$$.dirty[1]&&r(34,vt=function(t,e,n){let r=t.content_alignment_horizontal;const o=t.content_alignment_vertical;return"start"===r?r="ltr"===e?"left":"right":"end"===r&&(r="ltr"===e?"right":"left"),r&&"left"!==r&&"center"!==r&&"right"!==r||o&&"top"!==o&&"center"!==o&&"bottom"!==o?n:Ne({content_alignment_horizontal:r,content_alignment_vertical:o})}(N,j,vt)),4194304&t.$$.dirty[1]&&r(10,k=(null==P?void 0:P.description)||""),2097152&t.$$.dirty[1]){const t=null==S?void 0:S.ratio;t&&fn(t)?r(5,yt=(100/Number(t)).toFixed(2)):r(5,yt="0")}if(1572912&t.$$.dirty[1]){const t=F?Ce(F):void 0,e=Gn(D,$t);t===ut&&e===$t||(at.removeSvgFilter(ut,$t),r(6,bt=t?at.addSvgFilter(t,e):""),r(35,ut=t),r(36,$t=e))}if(262144&t.$$.dirty[1]&&V&&"fade"===V.type){const t=V;r(37,_t=Xe(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(40,Et=Te(t.duration,300)),r(39,xt=Te(t.start_delay,0)),r(38,wt=Te(t.alpha,0))}if(1&t.$$.dirty[0]|196608&t.$$.dirty[1]){let t="",e="";Array.isArray(A)&&A.length&&(t=gn(A,ot.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(41,At=t),r(42,jt=e),r(43,Dt="rtl"===j&&Array.isArray(A)&&A.some((t=>"rtl_mirror"===t.type)))}40&t.$$.dirty[0]|28736&t.$$.dirty[1]&&r(9,E={aspect:"0"!==yt,"is-width-content":w,"is-height-content":x,loaded:1===dt,"before-appearance":Boolean(_t)&&0===dt,"is-rtl-mirror":Dt}),72&t.$$.dirty[0]|4047&t.$$.dirty[1]&&r(8,C={"background-image":gt,"background-color":gt?void 0:pt,"background-size":mt,"clip-path":jt||void 0,"object-fit":mt,"object-position":vt,filter:[1===dt&&bt?"url(#".concat(bt,")"):"",At].filter(Boolean).join(" "),"--divkit-appearance-interpolator":_t||void 0,"--divkit-appearance-fade-start":_t?wt:void 0,"--divkit-appearance-delay":_t?"".concat(xt,"ms"):void 0,"--divkit-appearance-duration":_t?"".concat(Et,"ms"):void 0})},[ot,it,lt,dt,ct,yt,bt,ft,C,E,k,_,b,$,y,v,m,g,f,d,u,c,l,s,a,i,L,st,function(){0===dt&&r(3,dt=1)},function(){0===dt&&r(3,dt=Zr)},ht,pt,gt,mt,vt,ut,$t,_t,wt,xt,Et,At,jt,Dt,x,w,o,A,j,V,D,F,S,P,N,I,O,T,M,z,R,B,function(t){Vt[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))},function(t){Vt[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))}]}const to=class extends pe{constructor(t){super(),de(this,t,Qr,Xr,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},eo={grid:"divkit-d9080",grid_halign_start:"divkit-fc24d",grid_halign_center:"divkit-a14a6",grid_halign_end:"divkit-cfd04",grid_valign_start:"divkit-c3106",grid_valign_center:"divkit-d4310",grid_valign_end:"divkit-fa9cf"};function no(t){return t>0&&t<1}function ro(t){return String(Math.ceil(1e3*t)/1e3)}function oo(t,e,n){if(t.some(no)){const e=Math.max(...t.filter(no).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,o=0;const i=[];if(t.every(Boolean)){o=t.reduce(((t,e)=>t+e),0);for(let i=0;i<n;++i){if(!e[i])continue;const n=e[i]/t[i]*o;n>r&&(r=n)}}for(let e=0;e<n;++e)r?i[e]="minmax(".concat(xe(r*t[e]/o),",").concat(ro(t[e]),"fr)"):t[e]?i[e]="".concat(ro(t[e]),"fr"):i[e]="auto";return i.join(" ")}function io(t,e,n){const r=t.slice();return r[31]=e[n],r}function ao(t){let e,n;return e=new In({props:{cls:Be("grid",eo,t[7]),componentContext:t[0],style:t[6],layoutParams:t[1],parentOf:t[2].map(uo),replaceItems:t[12],$$slots:{default:[lo]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.cls=Be("grid",eo,t[7])),1&n[0]&&(r.componentContext=t[0]),64&n[0]&&(r.style=t[6]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(uo)),16&n[0]|8&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function so(t){let e,n;return e=new Ds({props:{componentContext:t[31].componentContext,layoutParams:t[31].layoutParams}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.componentContext=t[31].componentContext),16&n[0]&&(r.layoutParams=t[31].layoutParams),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function lo(t){let e,n,r=Qt(t[4]),o=[];for(let e=0;e<r.length;e+=1)o[e]=so(io(t,r,e));const i=t=>Kt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=W()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=W()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);M(t,e,r),n=!0},p(t,n){if(16&n[0]){let a;for(r=Qt(t[4]),a=0;a<r.length;a+=1){const i=io(t,r,a);o[a]?(o[a].p(i,n),Gt(o[a],1)):(o[a]=so(i),o[a].c(),Gt(o[a],1),o[a].m(e.parentNode,e))}for(qt(),a=r.length;a<o.length;a+=1)i(a);Jt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Gt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Kt(o[t]);n=!1},d(t){t&&z(e),R(o,t)}}}function co(t){let e,n,r=!t[5]&&ao(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[5]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),32&n[0]&&Gt(r,1)):(r=ao(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}const uo=t=>t.json;function ho(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b=n,_=n,w=n,x=n;t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{componentContext:k}=e,{layoutParams:E}=e;const C=Ct(ye).direction;p(t,C,(t=>r(24,g=t)));let A,j,V=1,D=[],F=[],S=[],P=[],N=0,I=!1,O="start",T="start";return t.$$set=t=>{"componentContext"in t&&r(0,k=t.componentContext),"layoutParams"in t&&r(1,E=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(23,o=k.origJson),8388608&t.$$.dirty[0]&&o&&(r(13,V=1),r(20,O="start"),r(21,T="start")),1&t.$$.dirty[0]&&r(22,i=Array.isArray(k.json.items)&&k.json.items||[]),1&t.$$.dirty[0]&&(r(10,a=k.getDerivedFromVars(k.json.column_count)),x(),x=h(a,(t=>r(28,$=t)))),1&t.$$.dirty[0]&&(r(9,s=k.getDerivedFromVars(k.json.content_alignment_vertical)),_(),_=h(s,(t=>r(26,v=t)))),1&t.$$.dirty[0]&&(r(8,l=k.getDerivedFromVars(k.json.content_alignment_horizontal)),b(),b=h(l,(t=>r(25,m=t)))),268443648&t.$$.dirty[0]&&r(13,V=Tn($,V)),4194305&t.$$.dirty[0]&&r(2,c=i.map(((t,e)=>k.produceChildContext(t,{path:e})))),5&t.$$.dirty[0]){let t=[];c.forEach((e=>{t.push(k.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(3,A=me(t,(t=>[...t]))),w(),w=h(A,(t=>r(27,y=t)))}if(134471685&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,D=[]),r(15,F=[]),r(16,S=[]),r(17,P=[]),r(19,I=!1),r(4,j=c.map(((o,i)=>{var a,s,l,c;const u=y[i],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,g="match_parent"===(null===(s=u.height)||void 0===s?void 0:s.type)?Number(u.height.weight||1)/h:0,m=1===d&&"fixed"===(null===(l=u.width)||void 0===l?void 0:l.type)&&u.width.value?Number(u.width.value)/d:0,v=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let o=e;o<e+d;++o)for(let e=n;e<n+h;++e)t[o+"_"+e]?(r(19,I=!0),k.logError($e(new Error("No space for item at index ".concat(i))))):(t[o+"_"+e]=!0,(!D[o]||D[o]<f)&&r(14,D[o]=f,D),(!F[e]||F[e]<g)&&r(15,F[e]=g,F),(!S[o]||S[o]<m)&&r(16,S[o]=m,S),(!P[e]||P[e]<v)&&r(17,P[e]=v,P));do{++e,e>=V&&(e=0,++n)}while(t[e+"_"+n]);return{componentContext:o,layoutParams:{gridArea:p}}}))),r(18,N=n)}68157440&t.$$.dirty[0]&&r(20,O=qn(v,O)),52428800&t.$$.dirty[0]&&r(21,T=Wn(m,g,T)),3145728&t.$$.dirty[0]&&r(7,u={valign:O,halign:T}),516096&t.$$.dirty[0]&&r(6,d={"grid-template-columns":oo(D,S,V),"grid-template-rows":oo(F,P,N)}),524288&t.$$.dirty[0]&&r(5,f=I)},[k,E,c,A,j,f,d,u,l,s,a,C,function(t){r(0,k=Object.assign(Object.assign({},k),{json:Object.assign(Object.assign({},k.json),{items:t.filter(Ve)})}))},V,D,F,S,P,N,I,O,T,i,o,g,m,v,y,$]}const po={gallery:"divkit-cbb0f",gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},fo={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function go(t){const e=[];let n=t[0],r=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[o],r=1):r++;return e.join(" ")}function mo(t,e){let n=t%e;return n<0&&(n+=e),n}const{Boolean:vo}=j;function yo(t,e,n){const r=t.slice();return r[78]=e[n],r[79]=e,r[80]=n,r}function $o(t,e,n){const r=t.slice();return r[81]=e[n],r}function bo(t){let e,n;return e=new Ds({props:{componentContext:t[81],layoutParams:t[6]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.componentContext=t[81]),64&n[0]&&(r.layoutParams=t[6]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function _o(t){let e,n,r,o,i,a=t[80],s=Qt(t[78]),l=[];for(let e=0;e<s.length;e+=1)l[e]=bo($o(t,s,e));const c=t=>Kt(l[t],1,1,(()=>{l[t]=null})),u=()=>t[64](e,a),d=()=>t[64](null,a);return{c(){e=B("div");for(let t=0;t<l.length;t+=1)l[t].c();n=H(),this.h()},l(t){e=nt(t,"DIV",{class:!0,style:!0});var r=Z(e);for(let t=0;t<l.length;t+=1)l[t].l(r);n=it(r),r.forEach(z),this.h()},h(){J(e,"class",r=po.gallery__items),J(e,"style",o=we(t[14]))},m(t,r){M(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);O(e,n),u(),i=!0},p(r,h){if(t=r,65600&h[0]){let r;for(s=Qt(t[78]),r=0;r<s.length;r+=1){const o=$o(t,s,r);l[r]?(l[r].p(o,h),Gt(l[r],1)):(l[r]=bo(o),l[r].c(),Gt(l[r],1),l[r].m(e,n))}for(qt(),r=s.length;r<l.length;r+=1)c(r);Jt()}(!i||16384&h[0]&&o!==(o=we(t[14])))&&J(e,"style",o),a!==t[80]&&(d(),a=t[80],u())},i(t){if(!i){for(let t=0;t<s.length;t+=1)Gt(l[t]);i=!0}},o(t){l=l.filter(vo);for(let t=0;t<l.length;t+=1)Kt(l[t]);i=!1},d(t){t&&z(e),R(l,t),d()}}}function wo(t){let e,n,r=t[10]&&t[7]&&xo(t),o=t[11]&&t[7]&&ko(t);return{c(){r&&r.c(),e=H(),o&&o.c(),n=W()},l(t){r&&r.l(t),e=it(t),o&&o.l(t),n=W()},m(t,i){r&&r.m(t,i),M(t,e,i),o&&o.m(t,i),M(t,n,i)},p(t,i){t[10]&&t[7]?r?r.p(t,i):(r=xo(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]&&t[7]?o?o.p(t,i):(o=ko(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){t&&(z(e),z(n)),r&&r.d(t),o&&o.d(t)}}}function xo(t){let e,r,o,i,a=!t[29]&&function(t){let e,n,r,o;return{c(){e=L("svg"),n=L("path"),this.h()},l(t){e=rt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Z(e);n=rt(r,"path",{class:!0,d:!0}),Z(n).forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=po["gallery__arrow-icon-path"]),J(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),J(e,"class",o=fo.arrow__icon),J(e,"xmlns","http://www.w3.org/2000/svg"),J(e,"width","32"),J(e,"height","32"),J(e,"viewBox","0 0 32 32"),J(e,"fill","none")},m(t,r){M(t,e,r),O(e,n)},d(t){t&&z(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);a&&a.l(n),n.forEach(z),this.h()},h(){J(e,"class",r=t[29]||"".concat(po.gallery__arrow," ").concat(fo.arrow," ").concat(fo.arrow_left))},m(n,r){M(n,e,r),a&&a.m(e,null),o||(i=q(e,"click",t[67]),o=!0)},p:n,d(t){t&&z(e),a&&a.d(),o=!1,i()}}}function ko(t){let e,r,o,i,a=!t[30]&&function(t){let e,n,r,o;return{c(){e=L("svg"),n=L("path"),this.h()},l(t){e=rt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Z(e);n=rt(r,"path",{class:!0,d:!0}),Z(n).forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=po["gallery__arrow-icon-path"]),J(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),J(e,"class",o=fo.arrow__icon),J(e,"xmlns","http://www.w3.org/2000/svg"),J(e,"width","32"),J(e,"height","32"),J(e,"viewBox","0 0 32 32"),J(e,"fill","none")},m(t,r){M(t,e,r),O(e,n)},d(t){t&&z(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);a&&a.l(n),n.forEach(z),this.h()},h(){J(e,"class",r=t[30]||"".concat(po.gallery__arrow," ").concat(fo.arrow," ").concat(fo.arrow_right))},m(n,r){M(n,e,r),a&&a.m(e,null),o||(i=q(e,"click",t[68]),o=!0)},p:n,d(t){t&&z(e),a&&a.d(),o=!1,i()}}}function Eo(t){let e,n,r,o,i,a,s,c,u,d,h,p=Qt(t[16]),f=[];for(let e=0;e<p.length;e+=1)f[e]=_o(yo(t,p,e));const g=t=>Kt(f[t],1,1,(()=>{f[t]=null}));let m="horizontal"===t[4]&&wo(t);return{c(){e=B("div"),n=B("div");for(let t=0;t<f.length;t+=1)f[t].c();s=H(),m&&m.c(),c=W(),this.h()},l(t){e=nt(t,"DIV",{class:!0,style:!0});var r=Z(e);n=nt(r,"DIV",{class:!0,style:!0});var o=Z(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(z),r.forEach(z),s=it(t),m&&m.l(t),c=W(),this.h()},h(){J(n,"class",r=po["gallery__items-grid"]),J(n,"style",o=we(t[15])),J(e,"class",i=po.gallery__scroller+" "+(t[27]?ve["root_restrict-scroll"]:"")),J(e,"style",a=we(t[5]))},m(r,o){M(r,e,o),O(e,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(n,null);t[65](n),t[66](e),M(r,s,o),m&&m.m(r,o),M(r,c,o),u=!0,d||(h=q(e,"scroll",(function(){l(t[7]?t[33]:null)&&(t[7]?t[33]:null).apply(this,arguments)})),d=!0)},p(r,s){if(t=r,82496&s[0]){let e;for(p=Qt(t[16]),e=0;e<p.length;e+=1){const r=yo(t,p,e);f[e]?(f[e].p(r,s),Gt(f[e],1)):(f[e]=_o(r),f[e].c(),Gt(f[e],1),f[e].m(n,null))}for(qt(),e=p.length;e<f.length;e+=1)g(e);Jt()}(!u||32768&s[0]&&o!==(o=we(t[15])))&&J(n,"style",o),(!u||134217728&s[0]&&i!==(i=po.gallery__scroller+" "+(t[27]?ve["root_restrict-scroll"]:"")))&&J(e,"class",i),(!u||32&s[0]&&a!==(a=we(t[5])))&&J(e,"style",a),"horizontal"===t[4]?m?m.p(t,s):(m=wo(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)Gt(f[t]);u=!0}},o(t){f=f.filter(vo);for(let t=0;t<f.length;t+=1)Kt(f[t]);u=!1},d(n){n&&(z(e),z(s),z(c)),R(f,n),t[65](null),t[66](null),m&&m.d(n),d=!1,h()}}}function Co(t){let e,n,r,o;return e=new In({props:{cls:Be("gallery",po,t[13]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[8],replaceItems:t[31],$$slots:{default:[Eo]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(i,a){ce(e,i,a),n=!0,r||(o=q(window,"resize",(function(){l(t[7]?t[34]:null)&&(t[7]?t[34]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const o={};8192&r[0]&&(o.cls=Be("gallery",po,t[13])),1&r[0]&&(o.componentContext=t[0]),2&r[0]&&(o.layoutParams=t[1]),256&r[0]&&(o.parentOf=t[8]),134336252&r[0]|4194304&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t),r=!1,o()}}}function Ao(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M=n,z=n,R=n,B=n,L=n,U=n,H=n,W=n,q=n,J=n,G=n;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G()));let{componentContext:K}=e,{layoutParams:X}=e;const Y=Ct(ye),Z=Y.direction;let Q;p(t,Z,(t=>r(52,E=t)));let tt,et=[],nt=!1,rt=!1,ot=null,it=!1;const at=Y.getCustomization("galleryLeftClass"),st=Y.getCustomization("galleryRightClass");let lt,ct,ut,dt,ht,pt=1,ft="horizontal",gt="start",mt=8,vt="",yt=[],$t={},bt=!1,_t={},xt=0;const Et=Y.isDesktop;function At(){if(!Q)return;let t=Q.scrollLeft;"rtl"===E&&(t*=-1);const e=Q.scrollWidth,n=Q.offsetWidth;"ltr"===E?(r(10,nt=t>2),r(11,rt=t+n<e-2)):(r(11,rt=t>2),r(10,nt=t+n<e-2))}p(t,Et,(t=>r(63,O=t)));const jt=Kn(At,50);function Dt(t){Q.scroll({left:Q.scrollLeft+.75*Q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Ft(){let t=[],e=et[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<pt;++e){const r=et[e].children[n];r&&t.push(r)}return t}function St(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===ft?"left":"top";Q.scroll({[n]:t,behavior:e})}function Pt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===ft,o=r?"offsetLeft":"offsetTop",i=t[e];if(i){let t;if("ltr"!==E&&r){const e=Q.offsetWidth;t=i[o]+i.offsetWidth+.01-mt/2-e}else t=i[o]+.01-mt/2;St(t,n)}}function Nt(t){const e=Ft(),n=Q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===ft?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const o=e.map((t=>function(t,e){return"horizontal"===ft?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),i=o.findIndex(Boolean);return-1!==i?"prev"===t&&2===o.filter(Boolean).length?i+1:i:"prev"===t?1:e.length-2}return wt((()=>{r(37,it=!0),At(),xt&&Pt(Ft(),xt,"auto")})),kt((()=>{r(37,it=!1),lt&&!K.fakeElement&&(Y.unregisterInstance(lt),r(38,lt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,K=t.componentContext),"layoutParams"in t&&r(1,X=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(51,o=K.origJson),1048576&t.$$.dirty[1]&&o&&(r(39,pt=1),r(4,ft="horizontal"),r(40,gt="start"),r(42,mt=8),r(45,vt="")),1&t.$$.dirty[0]&&r(8,i=Array.isArray(K.json.items)&&K.json.items||[]),1&t.$$.dirty[0]&&(r(26,a=K.getDerivedFromVars(K.json.column_count)),J(),J=h(a,(t=>r(62,I=t)))),1&t.$$.dirty[0]&&(r(25,s=K.getDerivedFromVars(K.json.orientation)),q(),q=h(s,(t=>r(61,N=t)))),1&t.$$.dirty[0]&&(r(24,l=K.getDerivedFromVars(K.json.cross_content_alignment)),W(),W=h(l,(t=>r(60,P=t)))),1&t.$$.dirty[0]&&(r(23,c=K.getDerivedFromVars(K.json.item_spacing)),H(),H=h(c,(t=>r(59,S=t)))),1&t.$$.dirty[0]&&(r(22,u=K.getDerivedFromVars(K.json.cross_spacing)),U(),U=h(u,(t=>r(58,F=t)))),1&t.$$.dirty[0]&&(r(21,d=K.getDerivedFromVars(K.json.paddings)),L(),L=h(d,(t=>r(57,D=t)))),1&t.$$.dirty[0]&&(r(20,f=K.getDerivedFromVars(K.json.scroll_mode)),R(),R=h(f,(t=>r(55,j=t)))),1&t.$$.dirty[0]&&(r(19,g=K.getDerivedFromVars(K.json.restrict_parent_scroll)),G(),G=h(g,(t=>r(27,T=t)))),1&t.$$.dirty[0]&&(r(18,m=K.getDerivedFromVars(K.json.scrollbar)),z(),z=h(m,(t=>r(54,A=t)))),1&t.$$.dirty[0]&&(r(17,v=K.getDerivedFromVars(K.json.default_item)),M(),M=h(v,(t=>r(53,C=t)))),257&t.$$.dirty[0]&&r(50,y=i.map(((t,e)=>K.produceChildContext(t,{path:e})))),64&t.$$.dirty[1]|2&t.$$.dirty[2]&&r(7,$=O&&it),136&t.$$.dirty[0]|32&t.$$.dirty[1]&&($?"undefined"!=typeof ResizeObserver&&(r(36,ot=new ResizeObserver((()=>{jt()}))),ot.observe(tt)):ot&&(ot.disconnect(),r(36,ot=null))),256&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(39,pt=Tn(I,pt)),524544&t.$$.dirty[1]&&r(16,b=function(t,e){let n=0,r=[];for(let o=0;o<t.length;++o)r[n]||(r[n]=[]),r[n].push(t[o]),++n>=e&&(n=0);return r}(y,pt)),16&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(4,ft=Mr(N,ft)),536871424&t.$$.dirty[1]&&r(40,gt=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(P,gt)),268437504&t.$$.dirty[1]&&(r(42,mt=Te(S,mt)),r(41,ct=xe(mt))),134227968&t.$$.dirty[1]&&(r(44,dt=Te(F,mt)),r(43,ut=xe(dt))),69222400&t.$$.dirty[1]&&r(45,vt=qe(D,E,vt)),16&t.$$.dirty[0]&&r(49,_="horizontal"===ft?"grid-template-columns":"grid-template-rows"),17&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];y.forEach((e=>{const n="horizontal"===ft?"width":"height";t.push(K.getDerivedFromVars(e.json[n]))})),r(12,ht=me(t,(t=>t))),B(),B=h(ht,(t=>r(56,V=t)))}if(16&t.$$.dirty[0]|33587456&t.$$.dirty[1]&&(r(46,yt=[]),pt>1?yt.push("auto"):V.forEach((t=>{!t&&"horizontal"===ft||"match_parent"===(null==t?void 0:t.type)?yt.push("100%"):yt.push("max-content")}))),112&t.$$.dirty[0]|16780032&t.$$.dirty[1]){const t={};let e={};r(47,bt=!1),"horizontal"===ft?e.parentVAlign=gt:e.parentHAlign=gt,"paging"===j&&(r(47,bt=!0),e.scrollSnap="start",t["horizontal"===ft?"scroll-padding-left":"scroll-padding-top"]=xe(mt/2)),1===pt&&(e.parentLayoutOrientation=ft),r(5,$t=Ke(t,$t)),r(6,_t=Ke(e,_t))}20480&t.$$.dirty[1]&&r(15,w={padding:vt,"grid-gap":ut}),295936&t.$$.dirty[1]&&r(14,x={"grid-gap":ct,[_]:go(yt)}),16&t.$$.dirty[0]|8454144&t.$$.dirty[1]&&r(13,k={orientation:ft,"scroll-snap":bt,scrollbar:"auto"===A?"auto":"none"}),4325376&t.$$.dirty[1]&&r(48,xt=Te(C,xt)),1&t.$$.dirty[0]&&K.json&&jt(),21&t.$$.dirty[0]|2097280&t.$$.dirty[1]&&K.json&&(lt&&(Y.unregisterInstance(lt),r(38,lt=void 0)),K.json.id&&!K.fakeElement&&(r(38,lt=K.json.id),Y.registerInstance(lt,{setCurrentItem(t){const e=Ft();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Pt(e,t)},setPreviousItem(t,e){const n=Nt("prev"),r=Ft();let o=n-t;o<0&&(o="ring"===e?mo(o,r.length):0),Pt(r,o)},setNextItem(t,e){const n="horizontal"===ft,r="ltr"!==E&&n?-1:1,o=n?Q.scrollLeft*r+Q.offsetWidth===Q.scrollWidth:Q.scrollTop+Q.offsetHeight===Q.scrollHeight,i=Ft();if(o&&"ring"===e)return void Pt(i,0);let a=Nt("next")+t;a>i.length-1&&(a="ring"===e?mo(a,i.length):i.length-1),Pt(i,a)},scrollToStart(){St(0)},scrollToEnd(){St("ltr"===E||"horizontal"!==ft?1e6:-1e6)},scrollBackward(t,e){const n="horizontal"===ft,r="ltr"!==E&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r-t;a<0&&("clamp"===e?a=0:"ring"===e&&(a=mo(a,i))),St(a*r)},scrollForward(t,e){const n="horizontal"===ft,r="ltr"!==E&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r+t;a>i&&("clamp"===e?a=i:"ring"===e&&(a=mo(a,i))),St(a*r)},scrollToPosition(t){St("ltr"===E||"horizontal"!==ft?t:-t)}})))},[K,X,Q,tt,ft,$t,_t,$,i,et,nt,rt,ht,k,x,w,b,v,m,g,f,d,u,c,l,s,a,T,Z,at,st,function(t){r(0,K=Object.assign(Object.assign({},K),{json:Object.assign(Object.assign({},K.json),{items:t.filter(Ve)})}))},Et,At,jt,Dt,ot,it,lt,pt,gt,ct,mt,ut,dt,vt,yt,bt,xt,_,y,o,E,C,A,j,V,D,F,S,P,N,I,O,function(t,e){Vt[t?"unshift":"push"]((()=>{et[e]=t,r(9,et)}))},function(t){Vt[t?"unshift":"push"]((()=>{tt=t,r(3,tt)}))},function(t){Vt[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},()=>Dt("left"),()=>Dt("right")]}const jo={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306","tabs_height-parent_yes":"divkit-ae594",tabs__separator:"divkit-b85bf"},{Boolean:Vo}=j;function Do(t,e,n){const r=t.slice();r[93]=e[n];const o=r[93].index;r[94]=o;const i=r[29][r[94]];return r[95]=i,r}function Fo(t,e,n){const r=t.slice();r[93]=e[n];const o=r[93].index;r[94]=o;const i=r[94]===r[15];return r[98]=i,r}function So(t){let e,n;return e=new In({props:{cls:Be("tabs",jo,t[22]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[42],parentOfSimpleMode:!0,replaceItems:t[47],$$slots:{default:[Mo]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};4194304&n[0]&&(r.cls=Be("tabs",jo,t[22])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2048&n[1]&&(r.parentOf=t[42]),2143289337&n[0]|4099&n[1]|256&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Po(t){let e,n=t[93].title+"";return{c(){e=U(n)},l(t){e=ot(t,n)},m(t,n){M(t,e,n)},p(t,r){65536&r[0]&&n!==(n=t[93].title+"")&&st(e,n)},d(t){t&&z(e)}}}function No(t){let e,n;function r(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[69](t[94],...n)}return e=new hn({props:{componentContext:t[0],cls:Be("tabs__item",jo,{selected:t[98],actionable:Boolean(t[93].title_click_action)}),actions:t[93].title_click_action&&!t[0].fakeElement?[t[93].title_click_action].filter(en):[],attrs:{id:"".concat(t[45],"-tab-").concat(t[94]),"aria-controls":"".concat(t[45],"-panel-").concat(t[94]),role:"tab",tabindex:t[98]&&!t[0].fakeElement?t[93].title_click_action?void 0:"0":"-1","aria-selected":t[98]?"true":"false"},customAction:t[0].fakeElement?null:r,$$slots:{default:[Po]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(n,o){t=n;const i={};1&o[0]&&(i.componentContext=t[0]),98304&o[0]&&(i.cls=Be("tabs__item",jo,{selected:t[98],actionable:Boolean(t[93].title_click_action)})),65537&o[0]&&(i.actions=t[93].title_click_action&&!t[0].fakeElement?[t[93].title_click_action].filter(en):[]),98305&o[0]&&(i.attrs={id:"".concat(t[45],"-tab-").concat(t[94]),"aria-controls":"".concat(t[45],"-panel-").concat(t[94]),role:"tab",tabindex:t[98]&&!t[0].fakeElement?t[93].title_click_action?void 0:"0":"-1","aria-selected":t[98]?"true":"false"}),65537&o[0]&&(i.customAction=t[0].fakeElement?null:r),65536&o[0]|256&o[3]&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Io(t){let e,n,r;return{c(){e=B("div"),this.h()},l(t){e=nt(t,"DIV",{class:!0,style:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=jo.tabs__separator),J(e,"style",r=we(t[32]))},m(t,n){M(t,e,n)},p(t,n){2&n[1]&&r!==(r=we(t[32]))&&J(e,"style",r)},d(t){t&&z(e)}}}function Oo(t){let e,n;return e=new Ds({props:{componentContext:t[95],layoutParams:t[3]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};536936448&n[0]&&(r.componentContext=t[95]),8&n[0]&&(r.layoutParams=t[3]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function To(t){let e,n,r,o,i,a,s=t[95]&&Oo(t);return{c(){e=B("div"),s&&s.c(),n=H(),this.h()},l(t){e=nt(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Z(e);s&&s.l(r),n=it(r),r.forEach(z),this.h()},h(){J(e,"class",r=Be("tabs__panel",jo,{visible:t[30][t[94]]})),J(e,"role","tabpanel"),J(e,"id",o=t[45]+"-panel-"+t[94]),J(e,"aria-labelledby",i=t[45]+"-tab-"+t[94]),ct(e,"left",100*t[94]+"%")},m(t,r){M(t,e,r),s&&s.m(e,null),O(e,n),a=!0},p(t,l){t[95]?s?(s.p(t,l),536936448&l[0]&&Gt(s,1)):(s=Oo(t),s.c(),Gt(s,1),s.m(e,n)):s&&(qt(),Kt(s,1,1,(()=>{s=null})),Jt()),(!a||1073807360&l[0]&&r!==(r=Be("tabs__panel",jo,{visible:t[30][t[94]]})))&&J(e,"class",r),(!a||65536&l[0]&&o!==(o=t[45]+"-panel-"+t[94]))&&J(e,"id",o),(!a||65536&l[0]&&i!==(i=t[45]+"-tab-"+t[94]))&&J(e,"aria-labelledby",i),(!a||65536&l[0])&&ct(e,"left",100*t[94]+"%")},i(t){a||(Gt(s),a=!0)},o(t){Kt(s),a=!1},d(t){t&&z(e),s&&s.d()}}}function Mo(t){let e,n,r,o,i,a,c,u,d,h,p,f=Qt(t[16]),g=[];for(let e=0;e<f.length;e+=1)g[e]=No(Fo(t,f,e));const m=t=>Kt(g[t],1,1,(()=>{g[t]=null}));let v=t[18]&&Io(t),y=Qt(t[16]),$=[];for(let e=0;e<y.length;e+=1)$[e]=To(Do(t,y,e));const b=t=>Kt($[t],1,1,(()=>{$[t]=null}));return{c(){e=B("div");for(let t=0;t<g.length;t+=1)g[t].c();r=H(),v&&v.c(),o=H(),i=B("div"),a=B("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=nt(t,"DIV",{class:!0,role:!0});var n=Z(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(z),r=it(t),v&&v.l(t),o=it(t),i=nt(t,"DIV",{class:!0});var s=Z(i);a=nt(s,"DIV",{class:!0});var l=Z(a);for(let t=0;t<$.length;t+=1)$[t].l(l);l.forEach(z),s.forEach(z),this.h()},h(){J(e,"class",n=jo.tabs__list+" "+(t[43]?ve["root_restrict-scroll"]:"")),J(e,"role","tablist"),ct(e,"--divkit-tabs-title-padding",t[14]?Ue(t[14],t[17]):""),ct(e,"--divkit-tabs-font-size",xe(t[4])),ct(e,"--divkit-tabs-paddings",t[5]),ct(e,"--divkit-tabs-line-height",t[23]),ct(e,"--divkit-tabs-letter-spacing",t[24]),ct(e,"--divkit-tabs-active-font-weight",t[7]||""),ct(e,"--divkit-tabs-inactive-font-weight",t[8]||""),ct(e,"--divkit-tabs-active-font-family",t[25]||""),ct(e,"--divkit-tabs-inactive-font-family",t[26]||""),ct(e,"--divkit-tabs-active-text-color",t[9]),ct(e,"--divkit-tabs-inactive-text-color",t[10]),ct(e,"--divkit-tabs-active-background-color",t[11]),ct(e,"--divkit-tabs-inactive-background-color",t[12]),ct(e,"--divkit-tabs-border-radius",t[6]),ct(e,"--divkit-tabs-items-spacing",t[13]?ke(10*t[13]/t[4]):""),J(a,"class",c=Be("tabs__swiper",jo,{inited:t[27],animated:t[28]})),J(i,"class",u=jo.tabs__panels+" "+(t[43]?ve["root_restrict-scroll"]:""))},m(n,s){M(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[70](e),M(n,r,s),v&&v.m(n,s),M(n,o,s),M(n,i,s),O(i,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[71](a),t[72](i),d=!0,h||(p=[q(e,"keydown",t[49]),q(i,"touchstart",(function(){l(t[31]?t[50]:void 0)&&(t[31]?t[50]:void 0).apply(this,arguments)})),q(i,"touchmove",(function(){l(t[31]?t[51]:void 0)&&(t[31]?t[51]:void 0).apply(this,arguments)})),q(i,"touchend",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)})),q(i,"touchcancel",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)}))],h=!0)},p(r,s){if(t=r,98305&s[0]|147456&s[1]){let n;for(f=Qt(t[16]),n=0;n<f.length;n+=1){const r=Fo(t,f,n);g[n]?(g[n].p(r,s),Gt(g[n],1)):(g[n]=No(r),g[n].c(),Gt(g[n],1),g[n].m(e,null))}for(qt(),n=f.length;n<g.length;n+=1)m(n);Jt()}if((!d||4096&s[1]&&n!==(n=jo.tabs__list+" "+(t[43]?ve["root_restrict-scroll"]:"")))&&J(e,"class",n),147456&s[0]&&ct(e,"--divkit-tabs-title-padding",t[14]?Ue(t[14],t[17]):""),16&s[0]&&ct(e,"--divkit-tabs-font-size",xe(t[4])),32&s[0]&&ct(e,"--divkit-tabs-paddings",t[5]),8388608&s[0]&&ct(e,"--divkit-tabs-line-height",t[23]),16777216&s[0]&&ct(e,"--divkit-tabs-letter-spacing",t[24]),128&s[0]&&ct(e,"--divkit-tabs-active-font-weight",t[7]||""),256&s[0]&&ct(e,"--divkit-tabs-inactive-font-weight",t[8]||""),33554432&s[0]&&ct(e,"--divkit-tabs-active-font-family",t[25]||""),67108864&s[0]&&ct(e,"--divkit-tabs-inactive-font-family",t[26]||""),512&s[0]&&ct(e,"--divkit-tabs-active-text-color",t[9]),1024&s[0]&&ct(e,"--divkit-tabs-inactive-text-color",t[10]),2048&s[0]&&ct(e,"--divkit-tabs-active-background-color",t[11]),4096&s[0]&&ct(e,"--divkit-tabs-inactive-background-color",t[12]),64&s[0]&&ct(e,"--divkit-tabs-border-radius",t[6]),8208&s[0]&&ct(e,"--divkit-tabs-items-spacing",t[13]?ke(10*t[13]/t[4]):""),t[18]?v?v.p(t,s):(v=Io(t),v.c(),v.m(o.parentNode,o)):v&&(v.d(1),v=null),1610678280&s[0]|16384&s[1]){let e;for(y=Qt(t[16]),e=0;e<y.length;e+=1){const n=Do(t,y,e);$[e]?($[e].p(n,s),Gt($[e],1)):($[e]=To(n),$[e].c(),Gt($[e],1),$[e].m(a,null))}for(qt(),e=y.length;e<$.length;e+=1)b(e);Jt()}(!d||402653184&s[0]&&c!==(c=Be("tabs__swiper",jo,{inited:t[27],animated:t[28]})))&&J(a,"class",c),(!d||4096&s[1]&&u!==(u=jo.tabs__panels+" "+(t[43]?ve["root_restrict-scroll"]:"")))&&J(i,"class",u)},i(t){if(!d){for(let t=0;t<f.length;t+=1)Gt(g[t]);for(let t=0;t<y.length;t+=1)Gt($[t]);d=!0}},o(t){g=g.filter(Vo);for(let t=0;t<g.length;t+=1)Kt(g[t]);$=$.filter(Vo);for(let t=0;t<$.length;t+=1)Kt($[t]);d=!1},d(n){n&&(z(e),z(r),z(o),z(i)),R(g,n),t[70](null),v&&v.d(n),R($,n),t[71](null),t[72](null),h=!1,s(p)}}}function zo(t){let e,n,r=!t[2]&&So(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[2]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),4&n[0]&&Gt(r,1)):(r=So(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function Ro(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N=n,I=n,O=n,T=n,M=n,z=n,R=n,B=n,L=n;var U,H;t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L()));let{componentContext:W}=e,{layoutParams:q}=e;const J=Ct(ye),G=J.direction;p(t,G,(t=>r(17,A=t)));const K=J.genId("tabs");let X,Y=!1,Z=ge([]);p(t,Z,(t=>r(16,k=t)));let Q,tt,et,nt,rt,ot,it,at,st,lt={},ct={},ut=12,dt="",ht="",pt="",ft="",gt="",mt="",vt="",yt="",$t="",bt="",_t=0,wt="",xt="",Et=null,At=!1,jt=!1,Dt=[],Ft=[],St=null,Pt=null,Nt=null,Ot=!1,Tt=!1;async function Mt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ot=$,r(15,$=t),Ht(),r(28,jt=!0),Bt(100*-$),Lt(),async function(){if("match_parent"===(null==x?void 0:x.type))return;await It();const t=document.getElementById("".concat(K,"-panel-").concat($));t&&r(20,tt.style.height=xe(t.offsetHeight),tt)}(),Ut(),st=-$*tt.clientWidth,e){await It();const t=Q.querySelector(".".concat(jo.tabs__item_selected));t&&t.focus()}}function zt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==k?void 0:k.length;if(!n)return;const r=k.map((t=>t.index));let o=r.indexOf($)+t;o>=n?o=0:o<0&&(o=n-1),Mt(r[o],e)}function Rt(t,e){return $===e||(Mt(e),!1)}async function Bt(t){await It(),r(21,et.style.transform="translate3d(".concat(t,"%,0,0)"),et)}function Lt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,$-1):Math.min($,null!=ot?ot:$),n=t?Math.min(i.length-1,$+1):Math.max($,null!=ot?ot:$);r(29,Dt=Dt.map(((t,r)=>{var o;return t||(r>=e&&r<=n&&(null===(o=i[r])||void 0===o?void 0:o.div)?W.produceChildContext(i[r].div,{path:r}):void 0)}))),r(30,Ft=Ft.map(((t,r)=>r>=e&&r<=n)))}function Ut(){St&&clearTimeout(St),St=window.setTimeout((()=>{r(30,Ft=i.map(((t,e)=>e===$)))}),400)}function Ht(){At||(r(27,At=!0),r(20,tt.style.height=xe(tt.clientHeight),tt),r(21,et.style.transform="translate3d(".concat(100*-(null!=ot?ot:$),"%,0,0)"),et))}return kt((()=>{X&&(J.unregisterInstance(X),r(55,X=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,W=t.componentContext),"layoutParams"in t&&r(1,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(61,o=W.origJson),1073741824&t.$$.dirty[1]&&o&&(r(4,ut=12),r(5,dt=""),r(6,ft=""),r(7,nt=void 0),r(25,gt=""),r(8,rt=void 0),r(26,mt=""),r(9,vt=""),r(10,yt=""),r(11,$t=""),r(12,bt=""),r(13,_t=0),r(56,wt=""),r(57,xt=""),r(14,Et=null)),1&t.$$.dirty[0]&&r(58,i=Array.isArray(W.json.items)&&W.json.items||[]),134217728&t.$$.dirty[1]&&r(42,a=i.map((t=>t.div))),1&t.$$.dirty[0]&&(r(41,s=W.getDerivedFromVars(W.json.width)),B(),B=h(s,(t=>r(68,S=t)))),1&t.$$.dirty[0]&&(r(40,l=W.getDerivedFromVars(W.json.height)),N(),N=h(l,(t=>r(62,x=t)))),1&t.$$.dirty[0]&&r(60,c=W.getJsonWithVars(W.json.selected_tab)),1&t.$$.dirty[0]&&(r(39,u=W.getDerivedFromVars(W.json.tab_title_style)),R(),R=h(u,(t=>r(67,F=t)))),1&t.$$.dirty[0]&&(r(38,d=W.getDerivedFromVars(W.json.has_separator)),z(),z=h(d,(t=>r(18,D=t)))),1&t.$$.dirty[0]&&(r(37,f=W.getDerivedFromVars(W.json.separator_color)),M(),M=h(f,(t=>r(66,V=t)))),1&t.$$.dirty[0]&&(r(36,g=W.getDerivedFromVars(W.json.separator_paddings)),T(),T=h(g,(t=>r(65,j=t)))),1&t.$$.dirty[0]&&(r(35,m=W.getDerivedFromVars(W.json.switch_tabs_by_content_swipe_enabled)),O(),O=h(m,(t=>r(64,C=t)))),1&t.$$.dirty[0]&&(r(34,v=W.getDerivedFromVars(W.json.restrict_parent_scroll)),L(),L=h(v,(t=>r(43,P=t)))),1&t.$$.dirty[0]&&(r(33,y=W.getDerivedFromVars(W.json.title_paddings)),I(),I=h(y,(t=>r(63,E=t)))),536870912&t.$$.dirty[1]&&r(15,$=c&&Number(c)||0),1&t.$$.dirty[0]|134217728&t.$$.dirty[1])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=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($e(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),Z.set(t)}else Z.set([]);if(65537&t.$$.dirty[0]&&((null==k?void 0:k.length)?r(2,Y=!1):(r(2,Y=!0),W.logError($e(new Error('Incorrect or empty "items" prop for div "tabs"'))))),8&t.$$.dirty[0]|65&t.$$.dirty[2]){let t={parentContainerOrientation:"horizontal"};"wrap_content"===(null==S?void 0:S.type)&&(t.parentHorizontalWrapContent=!0),x&&"wrap_content"!==x.type||(t.parentVerticalWrapContent=!0),r(3,lt=Ke(t,lt))}if(32773&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&!Y&&($<0||$>=i.length)&&(W.logError($e(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:W.json.selected_tab,length:i.length}})),r(15,$=$<0?0:i.length-1)),98309&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&(Y||k.some((t=>$===t.index))||(W.logError($e(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:W.json.selected_tab}})),r(15,$=(null===r(53,U=k[0])||void 0===U?void 0:U.index)||0))),32&t.$$.dirty[2]&&r(59,b=F||{}),16&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(4,ut=Tn(b.font_size,ut)),131120&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(b.font_size||b.paddings)){const t=b.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/ut*10,right:(Number("ltr"===A?t.end:t.start)||Number(t.right)||0)/ut*10,bottom:(Number(t.bottom)||0)/ut*10,left:(Number("ltr"===A?t.start:t.end)||Number(t.left)||0)/ut*10};r(5,dt=qe(e,A,dt))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=b.line_height;void 0!==t&&fn(t)&&r(23,ht=xe(t/ut*10))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=b.letter_spacing;void 0!==t&&We(t)&&r(24,pt=xe(t/ut*10))}if(80&t.$$.dirty[0]|276824064&t.$$.dirty[1]&&(b.corner_radius||b.corners_radius||b.font_size)){const t=null!==r(54,H=b.corner_radius)&&void 0!==H?H:1e3;b.corners_radius?r(6,ft=function(t,e,n,r){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<o.length;++t)if(o[t]&&!We(o[t]))return r;return tn(t,e,n)}(b.corners_radius,t,ut,ft)):We(t)&&r(6,ft=xe(t/ut*10))}128&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(7,nt=zn(b.active_font_weight||b.font_weight,nt)),b.font_family&&"string"==typeof b.font_family?r(25,gt=J.typefaceProvider(b.font_family,{fontWeight:nt||400})):r(25,gt="")),256&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(8,rt=zn(b.inactive_font_weight||b.font_weight,rt)),b.font_family&&"string"==typeof b.font_family?r(26,mt=J.typefaceProvider(b.font_family,{fontWeight:rt||400})):r(26,mt="")),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(9,vt=Ce(b.active_text_color,1,vt)),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,yt=Ce(b.inactive_text_color,1,yt)),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,$t=Ce(b.active_background_color,1,$t)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(12,bt=Ce(b.inactive_background_color,1,bt)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(13,_t=Te(b.item_spacing,_t)),393216&t.$$.dirty[0]|100663296&t.$$.dirty[1]|24&t.$$.dirty[2]&&D&&(V&&r(56,wt=Ce(V,1,wt)),j&&r(57,xt=qe(j,A,xt))),100663296&t.$$.dirty[1]&&r(32,_={background:wt,margin:xt}),4&t.$$.dirty[2]&&r(31,w=void 0===C||Boolean(C)),16384&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(14,Et=Qe(E||void 0,Et)),134217728&t.$$.dirty[1]&&function(t){Y||(r(29,Dt=t.map(((t,e)=>{if(e===$&&(null==t?void 0:t.div))return W.produceChildContext(t.div,{path:e})}))),r(30,Ft=t.map(((t,e)=>e===$))))}(i),32773&t.$$.dirty[0]|150994944&t.$$.dirty[1]&&W.json&&(X&&(J.unregisterInstance(X),r(55,X=void 0)),!W.json.id||Y||W.fakeElement||(r(55,X=W.json.id),J.registerInstance(X,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Mt(t)},setPreviousItem(t,e){let n=$-t;n<0&&(n="ring"===e?mo(n,i.length):0),Mt(n)},setNextItem(t,e){let n=$+t;n>i.length-1&&(n="ring"===e?mo(n,i.length):i.length-1),Mt(n)},scrollToStart(){Mt(0)},scrollToEnd(){Mt(i.length-1)}}))),1&t.$$.dirty[2]&&r(22,ct={"height-parent":"match_parent"===(null==x?void 0:x.type)?"yes":""})},[W,q,Y,lt,ut,dt,ft,nt,rt,vt,yt,$t,bt,_t,Et,$,k,A,D,Q,tt,et,ct,ht,pt,gt,mt,At,jt,Dt,Ft,w,_,y,v,m,g,f,d,u,l,s,a,P,G,K,Z,function(t){W.json.items&&r(0,W=Object.assign(Object.assign({},W),{json:Object.assign(Object.assign({},W.json),{items:W.json.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))})}))},Rt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(37===t.which)zt(-1,!0);else if(39===t.which)zt(1,!0);else if(36===t.which)Mt(0,!0);else{if(35!==t.which)return;Mt(i.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,o=null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,".".concat(ve["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==tt||(Ot=!1,Tt=!1,Pt=sn(t),Nt=null,it=Date.now(),at=st||-$*tt.clientWidth,r(28,jt=!1),St&&clearTimeout(St))},function(t){const e=sn(t);if(!Pt||Nt&&Nt.x===e.x&&Nt.y===e.y)return;Nt=e;const n=tt.clientWidth;if(Ot){st=e.x-Pt.x+at;const t=n*i.length;if(st>0)st=st*n/(st+3*n);else if(-st+n>t){let e=-st+n-t;e=e*n/(e+3*n),st=n-t-e}Bt(100*st/n)}else Math.abs(e.y-Pt.y)>10?Tt=!0:!Tt&&Math.abs(e.x-Pt.x)>8&&(Ht(),Ot=!0,Pt=e,Bt(100*-$),Lt(!0));Ot&&t.cancelable&&t.preventDefault()},function(){Tt=!1,Pt=null;let t=$;if(!Ot)return;Ot=!1;const e=Math.min(512,tt.clientWidth);Math.abs(at-st)>e/4*Math.min(1,(Date.now()-it)/750)&&(t+=at>st?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===$?(r(28,jt=!0),st=-t*e,Bt(100*-t),Ut()):Mt(t)},U,H,X,wt,xt,i,b,c,o,x,E,C,j,V,F,S,(t,e)=>Rt(0,t),function(t){Vt[t?"unshift":"push"]((()=>{Q=t,r(19,Q)}))},function(t){Vt[t?"unshift":"push"]((()=>{et=t,r(21,et)}))},function(t){Vt[t?"unshift":"push"]((()=>{tt=t,r(20,tt)}))}]}const Bo={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Lo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Uo(t){return t*t*t}function Ho(t){const e=t-1;return e*e*e+1}function Wo(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),o=n-r;return t[r]*o+t[r+1]*(1-o)}}const qo=Wo([.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]),Jo=Wo([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]),Go={linear:r,ease:qo,ease_in:Uo,ease_out:Ho,ease_in_out:Lo,spring:Jo},Ko=200,Xo=0,Yo=0,Zo=0;function Qo(t){return Math.max(...t.map((t=>(Number(t.duration)||Ko)+(Number(t.start_delay)||Xo))))}function ti(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:rn()?0:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||Xo,a=Number(t.duration)||Ko,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-s:s,u=(Go[t.interpolator||"ease_in_out"]||Lo)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Yo)};if("slide"===t.type){var d;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let i=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===i&&(i="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(o["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(o["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=i*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,p;const e=1-u+u*(t.scale||Zo),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,o=null!==(p=t.pivot_y)&&void 0!==p?p:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:u>0&&u<1,scale:"translate(".concat(i,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=s.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=s.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=s.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=s.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function ei(t,e,n){return t*(1-n)+e*n}const ni={linear:r,ease:qo,ease_in:Uo,ease_out:Ho,ease_in_out:Lo,spring:Jo},ri=200,oi=0;function ii(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:oi,duration:rn()?0:null!==(r=s.duration)&&void 0!==r?r:ri,easing:s.interpolator&&s.interpolator in ni?ni[s.interpolator]:Lo,css:t=>["top:".concat(ei(i.top,a.top,t)-o.top,"px"),"left:".concat(ei(i.left,a.left,t)-o.left,"px"),"width:".concat(ei(i.width,a.width,t),"px"),"height:".concat(ei(i.height,a.height,t),"px")].join(";")}}function ai(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...ai(t))})):e.push(t),e}const{Map:si}=j;function li(t,e,n){const r=t.slice();return r[35]=e[n],r}function ci(t){let e,n;return e=new In({props:{cls:Bo.state,componentContext:t[0],layoutParams:t[1],parentOf:t[7],parentOfSimpleMode:!0,replaceItems:t[8],$$slots:{default:[gi]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),128&n[0]&&(r.parentOf=t[7]),120&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function ui(t){let e,r,o=t[5],i=di(t);return{c(){i.c(),e=W()},l(t){i.l(t),e=W()},m(t,n){i.m(t,n),M(t,e,n),r=!0},p(t,r){32&r[0]&&d(o,o=t[5])?(qt(),Kt(i,1,1,n),Jt(),i=di(t),i.c(),Gt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Gt(i),r=!0)},o(t){Kt(i),r=!1},d(t){t&&z(e),i.d(t)}}}function di(t){let e,n;return e=new Ds({props:{componentContext:t[6]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.componentContext=t[6]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function hi(t){let e,n,r,o,i,a,s,l,c,u;function d(){return t[17](t[35])}return r=new Ds({props:{componentContext:t[35].componentContextCopy}}),{c(){e=B("div"),n=B("div"),se(r.$$.fragment),i=H(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var o=Z(e);n=nt(o,"DIV",{class:!0});var a=Z(n);le(r.$$.fragment,a),a.forEach(z),i=it(o),o.forEach(z),this.h()},h(){J(n,"class",o=Bo["state__animation-child-inner"]),J(e,"class",a=Bo["state__animation-child"])},m(t,o){M(t,e,o),O(e,n),ce(r,n,null),O(e,i),l=!0,c||(u=q(e,"introend",d),c=!0)},p(e,n){t=e;const o={};16&n[0]&&(o.componentContext=t[35].componentContextCopy),r.$set(o)},i(n){l||(Gt(r.$$.fragment,n),s||Ot((()=>{s=Yt(e,ii,t[35]),s.start()})),l=!0)},o(t){Kt(r.$$.fragment,t),l=!1},d(t){t&&z(e),ue(r),c=!1,u()}}}function pi(t){let e,n,r,o,i,a,s,l,c,u,d="".concat(t[35].offsetLeft,"px"),h="".concat(t[35].offsetTop,"px"),p="".concat(t[35].width,"px"),f="".concat(t[35].height,"px");function g(){return t[16](t[35])}return r=new Ds({props:{componentContext:t[35].componentContextCopy}}),{c(){e=B("div"),n=B("div"),se(r.$$.fragment),i=H(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var o=Z(e);n=nt(o,"DIV",{class:!0});var a=Z(n);le(r.$$.fragment,a),a.forEach(z),i=it(o),o.forEach(z),this.h()},h(){J(n,"class",o=Bo["state__animation-child-inner"]),J(e,"class",a=Bo["state__animation-child"]),ct(e,"left",d),ct(e,"top",h),ct(e,"width",p),ct(e,"height",f)},m(t,o){M(t,e,o),O(e,n),ce(r,n,null),O(e,i),l=!0,c||(u=q(e,"introend",g),c=!0)},p(n,o){t=n;const i={};16&o[0]&&(i.componentContext=t[35].componentContextCopy),r.$set(i),16&o[0]&&d!==(d="".concat(t[35].offsetLeft,"px"))&&ct(e,"left",d),16&o[0]&&h!==(h="".concat(t[35].offsetTop,"px"))&&ct(e,"top",h),16&o[0]&&p!==(p="".concat(t[35].width,"px"))&&ct(e,"width",p),16&o[0]&&f!==(f="".concat(t[35].height,"px"))&&ct(e,"height",f)},i(n){l||(Gt(r.$$.fragment,n),s||Ot((()=>{s=Yt(e,ti,t[35]),s.start()})),l=!0)},o(t){Kt(r.$$.fragment,t),l=!1},d(t){t&&z(e),ue(r),c=!1,u()}}}function fi(t,e){let n,r,o,i,a;const s=[pi,hi],l=[];function c(t,e){return"direction"in t[35]?0:1}return r=c(e),o=l[r]=s[r](e),{key:t,first:null,c(){n=W(),o.c(),i=W(),this.h()},l(t){n=W(),o.l(t),i=W(),this.h()},h(){this.first=n},m(t,e){M(t,n,e),l[r].m(t,e),M(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(qt(),Kt(l[a],1,1,(()=>{l[a]=null})),Jt(),o=l[r],o?o.p(e,n):(o=l[r]=s[r](e),o.c()),Gt(o,1),o.m(i.parentNode,i))},i(t){a||(Gt(o),a=!0)},o(t){Kt(o),a=!1},d(t){t&&(z(n),z(i)),l[r].d(t)}}}function gi(t){let e,n,r,o,i=[],a=new si,s=t[6]&&ui(t),l=Qt(t[4]);const c=t=>t[35];for(let e=0;e<l.length;e+=1){let n=li(t,l,e),r=c(n);a.set(r,i[e]=fi(r,n))}return{c(){s&&s.c(),e=H(),n=B("div");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){s&&s.l(t),e=it(t),n=nt(t,"DIV",{class:!0,"aria-hidden":!0});var r=Z(n);for(let t=0;t<i.length;t+=1)i[t].l(r);r.forEach(z),this.h()},h(){J(n,"class",r=Bo.state__animations),J(n,"aria-hidden","true")},m(r,a){s&&s.m(r,a),M(r,e,a),M(r,n,a);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null);t[18](n),o=!0},p(t,r){t[6]?s?(s.p(t,r),64&r[0]&&Gt(s,1)):(s=ui(t),s.c(),Gt(s,1),s.m(e.parentNode,e)):s&&(qt(),Kt(s,1,1,(()=>{s=null})),Jt()),528&r[0]&&(l=Qt(t[4]),qt(),i=ee(i,r,c,1,t,l,a,n,te,fi,null,li),Jt())},i(t){if(!o){Gt(s);for(let t=0;t<l.length;t+=1)Gt(i[t]);o=!0}},o(t){Kt(s);for(let t=0;t<i.length;t+=1)Kt(i[t]);o=!1},d(r){r&&(z(e),z(n)),s&&s.d(r);for(let t=0;t<i.length;t+=1)i[t].d();t[18](null)}}}function mi(t){let e,n,r=!t[2]&&ci(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[2]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),4&n[0]&&Gt(r,1)):(r=ci(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function vi(t){return"change_bounds"===t.type?t:"set"===t.type?vi(t.items[0]):null}function yi(t,e,n){let r,o,i,a,s,l,c,{componentContext:u}=e,{layoutParams:d}=e;const h=Ct(ye),p=Ct(Le);let f,g,m,v,y=!1,$=new Map,b=new Set,_=null,w=[],x=[],k=[],E=[],C=!1;function A(t){n(6,v=(null==t?void 0:t.div)?u.produceChildContext(t.div,{path:t.state_id||"<unknown>"}):void 0)}function j(t,e,n){let{json:r,parentComponentContext:o,transitions:i,node:a}=e;r=u.getJsonWithVars(r),i=u.getJsonWithVars(i);const s=ai(i),l=a.getBoundingClientRect(),c=Object.assign(Object.assign({},r),{margins:void 0,alpha:(d=s,d.some((t=>"fade"===t.type))?void 0:r.alpha)});var d;return{json:c,componentContextCopy:o.produceChildContext(c,{fake:!0}),elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node}}async function V(t){if(m===t)return;h.setRunning("stateChange",!0);const e=new Set(b);w.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(4,w=[]);let r=[];if(f){const t=f.getBoundingClientRect();r=k.map((e=>j(t,e,"out")))}E.forEach((t=>{$.set(t.id,t.node.getBoundingClientRect())})),x=[],k=[],E=[];const o=l.find((e=>e.state_id===t))||null;if(o?(n(5,m=t),null==a||a.setValue(m),A(o)):u.logError($e(new Error("Cannot find state with id"),{additional:{stateId:t}})),await It(),!f)return;const i=f.getBoundingClientRect();let s=x.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>j(i,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||b.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=r.concat(s),d=c.reduce(((t,e)=>Math.max(t,Qo(e.transitions))),0),p=E.filter((t=>$.has(t.id))).map((t=>{const e=Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}});return{json:e,componentContextCopy:t.parentComponentContext.produceChildContext(e,{fake:!0}),rootBbox:i,beforeBbox:$.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:u.getJsonWithVars(vi(t.transitions)),resolvePromise:t.resolvePromise}}));n(4,w=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:d}))),...p]),$.clear(),h.setRunning("stateChange",!1)}function D(t){if(_&&_.has(t))return _.get(t);u.logError($e(new Error("Missing state block with id"),{additional:{id:t}}))}function F(t){n(4,w=w.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return Et(Le,{registerInstance(t,e){_||(_=new Map),_.has(t)?u.logError($e(new Error("Duplicate state with id"),{additional:{id:t}})):_.set(t,e)},unregisterInstance(t){null==_||_.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!f)return Promise.resolve();const a=j(f.getBoundingClientRect(),{json:t,parentComponentContext:e,transitions:r,node:o},i),s=Qo(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(4,w=[...w.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return x.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return k.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const o=t.id;if(!o)return Promise.resolve();const i={id:o,json:t,parentComponentContext:e,transitions:n,node:r};return E.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&$.has(t),registerChild(t){b.add(t)},unregisterChild(t){b.delete(t)}}),kt((()=>{g&&p.unregisterInstance(g)})),t.$$set=t=>{"componentContext"in t&&n(0,u=t.componentContext),"layoutParams"in t&&n(1,d=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(13,r=u.json.div_id||u.json.id),1&t.$$.dirty[0]&&(o=u.getJsonWithVars(u.json.default_state_id)),1&t.$$.dirty[0]&&n(15,i=u.json.state_id_variable),32769&t.$$.dirty[0]&&(a=i?u.getVariable(i,"string"):null),1&t.$$.dirty[0]&&n(14,s=u.origJson),16384&t.$$.dirty[0]&&s&&n(11,C=!1),8193&t.$$.dirty[0]&&(r?n(2,y=!1):(n(2,y=!0),u.logError($e(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&u.json&&(b=new Set),1&t.$$.dirty[0]&&n(12,l=Array.isArray(u.json.states)&&u.json.states||[]),4096&t.$$.dirty[0]&&n(7,c=l.map((t=>t.div))),4097&t.$$.dirty[0]&&((null==l?void 0:l.length)?n(2,y=!1):(n(2,y=!0),u.logError($e(new Error('Empty "states" prop for div "state"'))))),9217&t.$$.dirty[0]&&u.json&&(g&&(p.unregisterInstance(g),n(10,g=void 0)),r&&!(null==u?void 0:u.fakeElement)&&(n(10,g=r),p.registerInstance(r,{setState:V,getChild:D}))),6144&t.$$.dirty[0]&&!C&&function(t){if(!C&&(n(11,C=!0),t.length)){const e=(null==a?void 0:a.getValue())||o;if(e){n(5,m=e);const r=t.find((t=>t.state_id===m))||null;A(r),r||u.logError($e(new Error("Cannot find state for default_state_id"),{additional:{selectedId:m}}))}else{const e=t[0];n(5,m=e.state_id),A(e)}a&&(a.setValue(m),a.subscribe((t=>{V(t)})))}}(l)},[u,d,y,f,w,m,v,c,function(t){const e=u.json.states;e&&(n(12,l=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))),n(0,u.json=Object.assign(Object.assign({},u.json),{states:l}),u),m&&A(l.find((t=>t.state_id===m))||null))},F,g,C,l,r,s,i,t=>F(t),t=>F(t),function(t){Vt[t?"unshift":"push"]((()=>{f=t,n(3,f)}))}]}const $i={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:bi}=j;function _i(t,e,n){const r=t.slice();return r[65]=e[n],r}function wi(t){let e,n;return e=new In({props:{cls:Be("pager",$i,t[10]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[2].map(ji),replaceItems:t[23],$$slots:{default:[Ci]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Be("pager",$i,t[10])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(ji)),134068&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function xi(t){let e,n,r,o,i;return n=new Ds({props:{componentContext:t[65]}}),{c(){e=B("div"),se(n.$$.fragment),r=H(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var o=Z(e);le(n.$$.fragment,o),r=it(o),o.forEach(z),this.h()},h(){J(e,"class",o=$i.pager__item)},m(t,o){M(t,e,o),ce(n,e,null),O(e,r),i=!0},p(t,e){const r={};4&e[0]&&(r.componentContext=t[65]),n.$set(r)},i(t){i||(Gt(n.$$.fragment,t),i=!0)},o(t){Kt(n.$$.fragment,t),i=!1},d(t){t&&z(e),ue(n)}}}function ki(t){let e,r,o,i,a=!t[19]&&function(t){let e,n,r,o;return{c(){e=L("svg"),n=L("path"),this.h()},l(t){e=rt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Z(e);n=rt(r,"path",{class:!0,d:!0}),Z(n).forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=$i["pager__arrow-icon-path"]),J(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),J(e,"class",o=fo.arrow__icon),J(e,"xmlns","http://www.w3.org/2000/svg"),J(e,"width","32"),J(e,"height","32"),J(e,"viewBox","0 0 32 32"),J(e,"fill","none")},m(t,r){M(t,e,r),O(e,n)},d(t){t&&z(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);a&&a.l(n),n.forEach(z),this.h()},h(){J(e,"class",r=t[19]||"".concat($i.pager__arrow," ").concat(fo.arrow," ").concat(fo.arrow_left))},m(n,r){M(n,e,r),a&&a.m(e,null),o||(i=q(e,"click",t[52]),o=!0)},p:n,d(t){t&&z(e),a&&a.d(),o=!1,i()}}}function Ei(t){let e,r,o,i,a=!t[20]&&function(t){let e,n,r,o;return{c(){e=L("svg"),n=L("path"),this.h()},l(t){e=rt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Z(e);n=rt(r,"path",{class:!0,d:!0}),Z(n).forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=$i["pager__arrow-icon-path"]),J(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),J(e,"class",o=fo.arrow__icon),J(e,"xmlns","http://www.w3.org/2000/svg"),J(e,"width","32"),J(e,"height","32"),J(e,"viewBox","0 0 32 32"),J(e,"fill","none")},m(t,r){M(t,e,r),O(e,n)},d(t){t&&z(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);a&&a.l(n),n.forEach(z),this.h()},h(){J(e,"class",r=t[20]||"".concat($i.pager__arrow," ").concat(fo.arrow," ").concat(fo.arrow_right))},m(n,r){M(n,e,r),a&&a.m(e,null),o||(i=q(e,"click",t[53]),o=!0)},p:n,d(t){t&&z(e),a&&a.d(),o=!1,i()}}}function Ci(t){let e,n,r,o,i,a,s,l,c,u=Qt(t[2]),d=[];for(let e=0;e<u.length;e+=1)d[e]=xi(_i(t,u,e));const h=t=>Kt(d[t],1,1,(()=>{d[t]=null}));let p=t[8]&&t[9]&&ki(t),f=t[7]&&t[9]&&Ei(t);return{c(){e=B("div");for(let t=0;t<d.length;t+=1)d[t].c();o=H(),p&&p.c(),i=H(),f&&f.c(),a=W(),this.h()},l(t){e=nt(t,"DIV",{class:!0,style:!0});var n=Z(e);for(let t=0;t<d.length;t+=1)d[t].l(n);n.forEach(z),o=it(t),p&&p.l(t),i=it(t),f&&f.l(t),a=W(),this.h()},h(){J(e,"class",n=$i.pager__items+" "+(t[17]?ve["root_restrict-scroll"]:"")),J(e,"style",r=we(t[11]))},m(n,r){M(n,e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);t[51](e),M(n,o,r),p&&p.m(n,r),M(n,i,r),f&&f.m(n,r),M(n,a,r),s=!0,l||(c=q(e,"scroll",t[22]),l=!0)},p(t,o){if(4&o[0]){let n;for(u=Qt(t[2]),n=0;n<u.length;n+=1){const r=_i(t,u,n);d[n]?(d[n].p(r,o),Gt(d[n],1)):(d[n]=xi(r),d[n].c(),Gt(d[n],1),d[n].m(e,null))}for(qt(),n=u.length;n<d.length;n+=1)h(n);Jt()}(!s||131072&o[0]&&n!==(n=$i.pager__items+" "+(t[17]?ve["root_restrict-scroll"]:"")))&&J(e,"class",n),(!s||2048&o[0]&&r!==(r=we(t[11])))&&J(e,"style",r),t[8]&&t[9]?p?p.p(t,o):(p=ki(t),p.c(),p.m(i.parentNode,i)):p&&(p.d(1),p=null),t[7]&&t[9]?f?f.p(t,o):(f=Ei(t),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(t){if(!s){for(let t=0;t<u.length;t+=1)Gt(d[t]);s=!0}},o(t){d=d.filter(bi);for(let t=0;t<d.length;t+=1)Kt(d[t]);s=!1},d(n){n&&(z(e),z(o),z(i),z(a)),R(d,n),t[51](null),p&&p.d(n),f&&f.d(n),l=!1,c()}}}function Ai(t){let e,n,r=!t[3]&&wi(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[3]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),8&n[0]&&Gt(r,1)):(r=wi(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}const ji=t=>t.json;function Vi(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,b,_,w,x,k,E,C,A,j,V,D=n,F=n,S=n,P=n,N=n,I=n;var O,T,M,z,R,B,L,U,H,W;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I()));let{componentContext:q}=e,{layoutParams:J}=e;const G=Ct(ye),K=G.direction;p(t,K,(t=>r(4,x=t)));const X=G.genId("pager"),Y=G.getCustomization("pagerLeftClass"),Z=G.getCustomization("pagerRightClass"),Q=G.isDesktop;p(t,Q,(t=>r(46,k=t)));const tt=Kn((function(){if(!rt)return;const t=function(){const t=Array.from(nt.children),e=nt.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===st?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:ot}();t!==ot&&r(38,ot=t)}),50);let et,nt,rt=!1,ot=0,it=0,at=!1,st="horizontal",lt="",ct="",ut="";function dt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===st,o=nt.children[t],i=n?"offsetLeft":"offsetTop",a=n?"left":"top";nt.scroll({[a]:o[i],behavior:e}),r(38,ot=t)}function ht(t,e){let n=ot-t;n<0&&(n="ring"===e?mo(n,u.length):0),dt(n)}function pt(t,e){let n=ot+t;n>u.length-1&&(n="ring"===e?mo(n,u.length):u.length-1),dt(n)}return wt((()=>{if(r(37,rt=!0),Boolean(document.getElementById("".concat(X,"-tab-0")))){const t=[...nt.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(X,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(X,"-tab-").concat(e))}})),kt((()=>{r(37,rt=!1),et&&(G.unregisterInstance(et),r(36,et=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,q=t.componentContext),"layoutParams"in t&&r(1,J=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(45,o=q.origJson),16384&t.$$.dirty[1]&&o&&r(42,ct=""),1&t.$$.dirty[0]&&(r(16,i=q.getDerivedFromVars(q.json.layout_mode)),F(),F=h(i,(t=>r(47,E=t)))),1&t.$$.dirty[0]&&(r(15,a=q.getDerivedFromVars(q.json.orientation)),N(),N=h(a,(t=>r(50,j=t)))),1&t.$$.dirty[0]&&(r(14,s=q.getDerivedFromVars(q.json.item_spacing)),P(),P=h(s,(t=>r(49,A=t)))),1&t.$$.dirty[0]&&(r(13,l=q.getDerivedFromVars(q.json.paddings)),S(),S=h(l,(t=>r(48,C=t)))),1&t.$$.dirty[0]&&(r(12,c=q.getDerivedFromVars(q.json.restrict_parent_scroll)),I(),I=h(c,(t=>r(17,V=t)))),1&t.$$.dirty[0]&&r(2,u=(Array.isArray(q.json.items)&&q.json.items||[]).map(((t,e)=>q.produceChildContext(t,{path:e})))),1&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(E?"percentage"!==E.type&&"fixed"!==E.type?(r(39,at=!0),q.logError($e(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(39,at=!1):(r(39,at=!0),q.logError($e(new Error('Empty "layout_mode" prop for div "pager"'))))),524800&t.$$.dirty[1]&&r(40,st=Mr(j,st)),262144&t.$$.dirty[1]){const t=null==A?void 0:A.value;t&&We(t)&&r(41,lt=xe(t||0))}if(16&t.$$.dirty[0]|133120&t.$$.dirty[1]&&r(42,ct=qe(C,x,ct)),512&t.$$.dirty[1]&&r(44,d="horizontal"===st?"grid-auto-columns":"grid-auto-rows"),2080374801&t.$$.dirty[0]|67103&t.$$.dirty[1])if("fixed"===(null==E?void 0:E.type)){const t=ke("horizontal"===st?(("ltr"===x?null===r(26,O=q.json.paddings)||void 0===O?void 0:O.start:null===r(27,T=q.json.paddings)||void 0===T?void 0:T.end)||(null===r(28,M=q.json.paddings)||void 0===M?void 0:M.left)||0)+(("ltr"===x?null===r(29,z=q.json.paddings)||void 0===z?void 0:z.end:null===r(30,R=q.json.paddings)||void 0===R?void 0:R.start)||(null===r(31,B=q.json.paddings)||void 0===B?void 0:B.right)||0):((null===r(32,L=q.json.paddings)||void 0===L?void 0:L.top)||0)+((null===r(33,U=q.json.paddings)||void 0===U?void 0:U.bottom)||0)),e=null===r(34,H=E.neighbour_page_width)||void 0===H?void 0:H.value;r(43,ut=e?"calc(100% + ".concat(t," - 2 * ").concat(ke(e)," - 2 * ").concat(lt,")"):"100%")}else if("percentage"===(null==E?void 0:E.type)){const t=null===r(35,W=E.page_width)||void 0===W?void 0:W.value;r(43,ut="".concat(Number(t),"%"))}15360&t.$$.dirty[1]&&r(11,f={"grid-gap":lt,padding:ct,[d]:ut}),512&t.$$.dirty[1]&&r(10,g={orientation:st}),256&t.$$.dirty[1]&&r(3,m=at),8&t.$$.dirty[0]|32832&t.$$.dirty[1]&&r(9,v=k&&rt&&!m),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(8,y="ltr"===x?ot>0:ot+1<u.length),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(7,b="ltr"===x?ot+1<u.length:ot>0),4&t.$$.dirty[0]|128&t.$$.dirty[1]&&function(t,e){const n=q.json.id;if(n){const r=new Map(w);$(_,w=r.set(n,{instId:X,size:t,currentItem:e,scrollToPagerItem:dt}),w)}}(u.length,ot),128&t.$$.dirty[1]&&function(t){var e;if(t===it)return;it=t;const n=q.getJsonWithVars(null===(e=u[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&q.execAnyActions(n)}(ot),5&t.$$.dirty[0]|32&t.$$.dirty[1]&&q.json&&(et&&(G.unregisterInstance(et),r(36,et=void 0)),q.json.id&&!q.fakeElement&&(r(36,et=q.json.id),G.registerInstance(et,{setCurrentItem(t){if(t<0||t>u.length-1)throw new Error('Item is out of range in "set-current-item" action');dt(t)},setPreviousItem:ht,setNextItem:pt,scrollToStart(){dt(0)},scrollToEnd(){dt(u.length-1)}})))},r(6,_=G.getStore("pagers")),D(),D=h(_,(t=>r(55,w=t))),[q,J,u,m,x,nt,_,b,y,v,g,f,c,l,s,a,i,V,K,Y,Z,Q,tt,function(t){r(0,q=Object.assign(Object.assign({},q),{json:Object.assign(Object.assign({},q.json),{items:t.filter(Ve)})}))},ht,pt,O,T,M,z,R,B,L,U,H,W,et,rt,ot,at,st,lt,ct,ut,d,o,k,E,C,A,j,function(t){Vt[t?"unshift":"push"]((()=>{nt=t,r(5,nt)}))},()=>("ltr"===x?ht:pt)(1,"clamp"),()=>("ltr"===x?pt:ht)(1,"clamp")]}const Di={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_direction_ltr:"divkit-a7473",indicator_direction_rtl:"divkit-a7d63",indicator_placement_stretch:"divkit-b6bd3"};function Fi(t,e,n){const r=t.slice();r[44]=e[n],r[47]=n;const o=r[47]===r[10].currentItem;return r[45]=o,r}function Si(t){let e,n=Qt(Array(t[10].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=Pi(Fi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=W()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=W()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);M(t,e,n)},p(t,o){if(12583936&o[0]){let i;for(n=Qt(Array(t[10].size)),i=0;i<n.length;i+=1){const a=Fi(t,n,i);r[i]?r[i].p(a,o):(r[i]=Pi(a),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(t){t&&z(e),R(r,t)}}}function Pi(t){let e,n,r,o,i,a,l,c;function u(){return t[37](t[47])}return{c(){e=B("div"),this.h()},l(t){e=nt(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=Be("indicator__item",Di,{active:t[45]})+" "+ve.root__clickable),J(e,"role","tab"),J(e,"id",r=t[10].instId+"-tab-"+t[47]),J(e,"aria-controls",o=t[10].instId+"-panel-"+t[47]),J(e,"aria-selected",i=t[45]?"true":"false"),J(e,"tabindex",a=t[45]?0:-1)},m(n,r){M(n,e,r),l||(c=[q(e,"click",u),q(e,"keydown",t[23])],l=!0)},p(s,l){t=s,1024&l[0]&&n!==(n=Be("indicator__item",Di,{active:t[45]})+" "+ve.root__clickable)&&J(e,"class",n),1024&l[0]&&r!==(r=t[10].instId+"-tab-"+t[47])&&J(e,"id",r),1024&l[0]&&o!==(o=t[10].instId+"-panel-"+t[47])&&J(e,"aria-controls",o),1024&l[0]&&i!==(i=t[45]?"true":"false")&&J(e,"aria-selected",i),1024&l[0]&&a!==(a=t[45]?0:-1)&&J(e,"tabindex",a)},d(t){t&&z(e),l=!1,s(c)}}}function Ni(t){let e,n,r,o,i=t[10]&&Si(t);return{c(){e=B("div"),n=B("div"),i&&i.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var r=Z(e);n=nt(r,"DIV",{class:!0,role:!0});var o=Z(n);i&&i.l(o),o.forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=Di.indicator__items),J(n,"role","tablist"),ct(n,"margin","default"===t[4]?"0 ".concat(xe(Math.max(0,t[2].width-t[3].width)/2)):""),ct(n,"--divkit-indicator-inactive-width",xe(t[3].width)),ct(n,"--divkit-indicator-inactive-height",xe(t[3].height)),ct(n,"--divkit-indicator-inactive-border-radius",xe(t[3].borderRadius)),ct(n,"--divkit-indicator-inactive-background",t[3].background||""),ct(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),ct(n,"--divkit-indicator-active-width",xe(t[2].width)),ct(n,"--divkit-indicator-active-height",xe(t[2].height)),ct(n,"--divkit-indicator-active-border-radius",xe(t[2].borderRadius)),ct(n,"--divkit-indicator-active-background",t[2].background||""),ct(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),ct(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),ct(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(xe((t[5]-t[3].width)/2)):""),ct(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?xe(t[7]):""),ct(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),ct(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?xe((t[6]-1)*t[7]):""),J(e,"class",o=Di.indicator__scroller)},m(r,o){M(r,e,o),O(e,n),i&&i.m(n,null),t[38](n),t[39](e)},p(t,e){t[10]?i?i.p(t,e):(i=Si(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null),28&e[0]&&ct(n,"margin","default"===t[4]?"0 ".concat(xe(Math.max(0,t[2].width-t[3].width)/2)):""),8&e[0]&&ct(n,"--divkit-indicator-inactive-width",xe(t[3].width)),8&e[0]&&ct(n,"--divkit-indicator-inactive-height",xe(t[3].height)),8&e[0]&&ct(n,"--divkit-indicator-inactive-border-radius",xe(t[3].borderRadius)),8&e[0]&&ct(n,"--divkit-indicator-inactive-background",t[3].background||""),8&e[0]&&ct(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),4&e[0]&&ct(n,"--divkit-indicator-active-width",xe(t[2].width)),4&e[0]&&ct(n,"--divkit-indicator-active-height",xe(t[2].height)),4&e[0]&&ct(n,"--divkit-indicator-active-border-radius",xe(t[2].borderRadius)),4&e[0]&&ct(n,"--divkit-indicator-active-background",t[2].background||""),4&e[0]&&ct(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),12&e[0]&&ct(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),56&e[0]&&ct(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(xe((t[5]-t[3].width)/2)):""),144&e[0]&&ct(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?xe(t[7]):""),80&e[0]&&ct(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),208&e[0]&&ct(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?xe((t[6]-1)*t[7]):"")},d(n){n&&z(e),i&&i.d(),t[38](null),t[39](null)}}}function Ii(t){let e,n;return e=new In({props:{cls:Be("indicator",Di,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Ni]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Be("indicator",Di,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2044&n[0]|131072&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}const Oi=["rounded_rectangle","circle"];function Ti(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A=n,j=n,V=n,D=n,F=n,S=n,P=n,N=n,I=n;var O,T;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I()));let{componentContext:M}=e,{layoutParams:z}=e;const R=Ct(ye),B=R.direction;p(t,B,(t=>r(27,v=t)));let L,U,H,W={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},q={width:10,height:10,borderRadius:5,background:"#33919cb5"},J="default",G=15,K=10,X=5;function Y(t){t!==H.currentItem&&H.scrollToPagerItem(t)}async function Z(t){H.scrollToPagerItem(t),await It();const e=U.querySelector(".".concat(Di.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"componentContext"in t&&r(0,M=t.componentContext),"layoutParams"in t&&r(1,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(26,o=M.origJson),67108864&t.$$.dirty[0]&&o&&(r(4,J="default"),r(5,G=15),r(6,K=10),r(7,X=5),r(2,W={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),r(3,q={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(r(20,i=M.getDerivedFromVars(M.json.shape)),S(),S=h(i,(t=>r(33,x=t)))),1&t.$$.dirty[0]&&(r(19,a=M.getDerivedFromVars(M.json.active_item_color)),D(),D=h(a,(t=>r(31,_=t)))),1&t.$$.dirty[0]&&(r(18,s=M.getDerivedFromVars(M.json.inactive_item_color)),F(),F=h(s,(t=>r(32,w=t)))),1&t.$$.dirty[0]&&(r(17,l=M.getDerivedFromVars(M.json.active_item_size)),P(),P=h(l,(t=>r(34,k=t)))),1&t.$$.dirty[0]&&(r(16,c=M.getDerivedFromVars(M.json.active_shape)),I(),I=h(c,(t=>r(36,C=t)))),1&t.$$.dirty[0]&&(r(15,u=M.getDerivedFromVars(M.json.inactive_shape)),N(),N=h(u,(t=>r(35,E=t)))),1&t.$$.dirty[0]&&(r(14,d=M.getDerivedFromVars(M.json.space_between_centers)),j(),j=h(d,(t=>r(29,$=t)))),1&t.$$.dirty[0]&&(r(13,f=M.getDerivedFromVars(M.json.items_placement)),V(),V=h(f,(t=>r(30,b=t)))),12&t.$$.dirty[0]|63&t.$$.dirty[1]&&(C&&r(2,W=fr({type:"shape_drawable",shape:C},Oi,W)),E&&r(3,q=fr({type:"shape_drawable",shape:E},Oi,q)),!C&&!E&&x)){const t=Tn(k,1.3);r(3,q=fr({type:"shape_drawable",shape:x,color:q.background},Oi,q)),r(3,q.background=Ce(w,1,q.background),q),r(2,W=Object.assign(Object.assign({},q),{width:q.width*t,height:q.height*t,borderRadius:q.borderRadius*t,background:W.background})),r(2,W.background=Ce(_,1,W.background),W)}if(1660944624&t.$$.dirty[0])if(!b||"default"!==b.type&&"stretch"!==b.type)r(4,J="default"),$&&r(5,G=Te($.value,G));else if(r(4,J=b.type),"default"===J)r(5,G=Te(null===r(24,O=b.space_between_centers)||void 0===O?void 0:O.value,G));else if("stretch"===J){const t=b;r(6,K=Tn(t.max_visible_items,K)),r(7,X=Te(null===r(25,T=t.item_spacing)||void 0===T?void 0:T.value,X))}268435456&t.$$.dirty[0]&&async function(t){if(M.json.pager_id&&t.has(M.json.pager_id)&&(r(10,H=t.get(M.json.pager_id)),await It(),U)){const t=U.children[H.currentItem];if(t){const e=t.offsetLeft;L.scroll({left:e-L.clientWidth/2,behavior:"smooth"})}}}(y),134217744&t.$$.dirty[0]&&r(11,m={placement:J,direction:v})},r(12,g=R.getStore("pagers")),A(),A=h(g,(t=>r(28,y=t))),[M,z,W,q,J,G,K,X,L,U,H,m,g,f,d,u,c,l,s,a,i,B,Y,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=H;if(37===t.which)Z(n-1<0?n:n-1);else if(39===t.which)Z(n+1>=e?n:n+1);else if(36===t.which)Z(0);else{if(35!==t.which)return;Z(e-1)}t.preventDefault()},O,T,o,v,y,$,b,_,w,x,k,E,C,t=>Y(t),function(t){Vt[t?"unshift":"push"]((()=>{U=t,r(9,U)}))},function(t){Vt[t?"unshift":"push"]((()=>{L=t,r(8,L)}))}]}const Mi={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider_direction_rtl:"divkit-fb7b5",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function zi(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&Ce(t.text_color)||"#000",o=Mn(t.font_weight);if(fn(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:xe(t.font_size),fontWeight:o,textColor:r};return"number"==typeof(null==n||null===(i=n.x)||void 0===i?void 0:i.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function Ri(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const Bi="function"==typeof BigInt;function Li(t){return Bi?BigInt(t):Number(t)}const Ui=Li("9223372036854775807"),Hi=Li("-9223372036854775808");function Wi(t){const e=Li(t);if(e>Ui||e<Hi)throw new Error("Integer overflow.");if("number"==typeof e&&(Number.isNaN(e)||e!==Math.round(e)))throw new Error("Incorrect integer value.");return e}const qi=Wi(0);function Ji(t){let e=t;return e<0&&(e=-e),e}function Gi(t){let e=0;return t>0?e=1:t<0&&(e=-1),Wi(e)}class Ki{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=ge(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}class Xi extends Ki{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}}class Yi extends Ki{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t)throw new Error("Incorrect variable value");try{return Wi(t)}catch(t){throw new Error("Incorrect variable value")}}fromString(t){try{return Wi(t)}catch(t){throw new Error("Incorrect variable value")}}getType(){return"integer"}}class Zi extends Ki{convertValue(t){if("number"!=typeof t||Number.isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}}class Qi extends Ki{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class ta extends Ki{convertValue(t){if("string"!=typeof t||!Ae(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}}class ea extends Ki{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}class na extends Ki{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class ra extends Ki{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const oa={string:Xi,number:Zi,integer:Yi,boolean:Qi,color:ta,url:ea,dict:na,array:ra};function ia(t,e,n){if(!(e in oa))throw new Error("Unsupported variable type");return new oa[e](t,n)}function aa(){}function sa(t){return t(this.value),aa}function la(){throw new Error("Cannot change the value of this type of variable")}const ca={string:class extends Xi{},number:class extends Zi{},integer:class extends Yi{},boolean:class extends Qi{},color:class extends ta{},url:class extends ea{},dict:class extends na{},array:class extends ra{}};for(const t in ca){const e=ca[t];e.prototype.subscribe=sa,e.prototype.set=la,e.prototype.setValue=la}function ua(t,e,n){const r=t.slice();return r[82]=e[n],r}function da(t,e,n){const r=t.slice();return r[82]=e[n],r}function ha(t){let e,n;return e=new In({props:{cls:Be("slider",Mi,t[24]),style:t[25],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[$a,t=>{let{focusHandler:e,blurHandler:n}=t;return{80:e,81:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?262144:0)|(n?524288:0)]}]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};16777216&n[0]&&(r.cls=Be("slider",Mi,t[24])),33554432&n[0]&&(r.style=t[25]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),205518844&n[0]|34340864&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function pa(t){let e,n;return{c(){e=B("div"),this.h()},l(t){e=nt(t,"DIV",{class:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=Mi.slider__tick+" "+Mi.slider__tick_active),ct(e,"--divkit-slider-tick",t[82])},m(t,n){M(t,e,n)},p(t,n){262144&n[0]&&ct(e,"--divkit-slider-tick",t[82])},d(t){t&&z(e)}}}function fa(t){let e,n;return{c(){e=B("div"),this.h()},l(t){e=nt(t,"DIV",{class:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=Mi.slider__tick+" "+Mi.slider__tick_inactive),ct(e,"--divkit-slider-tick",t[82])},m(t,n){M(t,e,n)},p(t,n){524288&n[0]&&ct(e,"--divkit-slider-tick",t[82])},d(t){t&&z(e)}}}function ga(t){let e,n,r,o,i;return{c(){e=B("div"),n=B("div"),r=U(t[12]),this.h()},l(o){e=nt(o,"DIV",{class:!0});var i=Z(e);n=nt(i,"DIV",{class:!0});var a=Z(n);r=ot(a,t[12]),a.forEach(z),i.forEach(z),this.h()},h(){var r,a,s;J(n,"class",o=Mi["slider__thumb-text-inner"]),ct(n,"font-size",(null===(r=t[9])||void 0===r?void 0:r.fontSize)||"1em"),ct(n,"font-weight",(null===(a=t[9])||void 0===a?void 0:a.fontWeight)||""),ct(n,"color",(null===(s=t[9])||void 0===s?void 0:s.textColor)||"#000"),J(e,"class",i=Mi["slider__thumb-text"])},m(t,o){M(t,e,o),O(e,n),O(n,r)},p(t,e){var o,i,a;4096&e[0]&&st(r,t[12]),512&e[0]&&ct(n,"font-size",(null===(o=t[9])||void 0===o?void 0:o.fontSize)||"1em"),512&e[0]&&ct(n,"font-weight",(null===(i=t[9])||void 0===i?void 0:i.fontWeight)||""),512&e[0]&&ct(n,"color",(null===(a=t[9])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&z(e)}}}function ma(t){let e,n,r=t[10]&&va(t);return{c(){e=B("div"),r&&r.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);r&&r.l(n),n.forEach(z),this.h()},h(){J(e,"class",n=Mi.slider__thumb+" "+Mi.slider__thumb_secondary),ct(e,"border-radius",xe(t[6].borderRadius)),ct(e,"background",t[6].background),ct(e,"box-shadow",t[6].boxShadow||"")},m(t,n){M(t,e,n),r&&r.m(e,null)},p(t,n){t[10]?r?r.p(t,n):(r=va(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),64&n[0]&&ct(e,"border-radius",xe(t[6].borderRadius)),64&n[0]&&ct(e,"background",t[6].background),64&n[0]&&ct(e,"box-shadow",t[6].boxShadow||"")},d(t){t&&z(e),r&&r.d()}}}function va(t){let e,n,r,o,i;return{c(){e=B("div"),n=B("div"),r=U(t[13]),this.h()},l(o){e=nt(o,"DIV",{class:!0});var i=Z(e);n=nt(i,"DIV",{class:!0});var a=Z(n);r=ot(a,t[13]),a.forEach(z),i.forEach(z),this.h()},h(){var r,a,s;J(n,"class",o=Mi["slider__thumb-text-inner"]),ct(n,"font-size",(null===(r=t[10])||void 0===r?void 0:r.fontSize)||"1em"),ct(n,"font-weight",(null===(a=t[10])||void 0===a?void 0:a.fontWeight)||""),ct(n,"color",(null===(s=t[10])||void 0===s?void 0:s.textColor)||"#000"),J(e,"class",i=Mi["slider__thumb-text"]+" "+Mi["slider__thumb-text_secondary"])},m(t,o){M(t,e,o),O(e,n),O(n,r)},p(t,e){var o,i,a;8192&e[0]&&st(r,t[13]),1024&e[0]&&ct(n,"font-size",(null===(o=t[10])||void 0===o?void 0:o.fontSize)||"1em"),1024&e[0]&&ct(n,"font-weight",(null===(i=t[10])||void 0===i?void 0:i.fontWeight)||""),1024&e[0]&&ct(n,"color",(null===(a=t[10])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&z(e)}}}function ya(t){let e,n,r,o,i;return{c(){e=B("input"),this.h()},l(t){e=nt(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){J(e,"type","range"),J(e,"class",n=t[17]?Mi.slider__input:"".concat(Mi.slider__input," ").concat(Mi.slider__input_secondary)),J(e,"min",t[3]),J(e,"max",t[4]),J(e,"step","1"),e.value=r=t[17]?t[12]:t[13],J(e,"aria-label",t[21])},m(n,r){M(n,e,r),o||(i=[q(e,"input",t[73]),q(e,"mousedown",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),q(e,"touchstart",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),q(e,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),q(e,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],o=!0)},p(o,i){t=o,131072&i[0]&&n!==(n=t[17]?Mi.slider__input:"".concat(Mi.slider__input," ").concat(Mi.slider__input_secondary))&&J(e,"class",n),8&i[0]&&J(e,"min",t[3]),16&i[0]&&J(e,"max",t[4]),143360&i[0]&&r!==(r=t[17]?t[12]:t[13])&&(e.value=r),2097152&i[0]&&J(e,"aria-label",t[21])},d(t){t&&z(e),o=!1,s(i)}}}function $a(t){let e,n,r,o,i,a,c,u,d,h,p,f,g,m,v,y,$,b,_,w,x,k,E=Qt(t[18]),C=[];for(let e=0;e<E.length;e+=1)C[e]=pa(da(t,E,e));let A=Qt(t[19]),j=[];for(let e=0;e<A.length;e+=1)j[e]=fa(ua(t,A,e));let V=t[9]&&ga(t),D=t[14]&&ma(t),F=t[14]&&ya(t);return{c(){e=B("div"),n=B("div"),r=B("div"),i=H(),a=B("div"),u=H();for(let t=0;t<C.length;t+=1)C[t].c();d=H();for(let t=0;t<j.length;t+=1)j[t].c();h=H(),p=B("div"),V&&V.c(),g=H(),D&&D.c(),m=H(),v=B("input"),b=H(),F&&F.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var o=Z(e);n=nt(o,"DIV",{class:!0});var s=Z(n);r=nt(s,"DIV",{class:!0}),Z(r).forEach(z),i=it(s),a=nt(s,"DIV",{class:!0}),Z(a).forEach(z),u=it(s);for(let t=0;t<C.length;t+=1)C[t].l(s);d=it(s);for(let t=0;t<j.length;t+=1)j[t].l(s);h=it(s),p=nt(s,"DIV",{class:!0});var l=Z(p);V&&V.l(l),l.forEach(z),g=it(s),D&&D.l(s),m=it(s),v=nt(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),b=it(s),F&&F.l(s),s.forEach(z),o.forEach(z),this.h()},h(){J(r,"class",o=Mi.slider__track),ct(r,"height",xe(t[7].height)),ct(r,"border-radius",xe(t[7].borderRadius)),ct(r,"background",t[7].background),ct(r,"box-shadow",t[7].boxShadow||""),J(a,"class",c=Mi["slider__active-track"]),ct(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),ct(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),ct(a,"width",(100*t[27]).toFixed(2)+"%"),ct(a,"height",xe(t[8].height)),ct(a,"border-radius",xe(t[8].borderRadius)),ct(a,"background",t[8].background),ct(a,"box-shadow",t[8].boxShadow||""),J(p,"class",f=Mi.slider__thumb),ct(p,"border-radius",xe(t[5].borderRadius)),ct(p,"background",t[5].background),ct(p,"box-shadow",t[5].boxShadow||""),J(v,"type","range"),J(v,"class",y=t[17]?"".concat(Mi.slider__input," ").concat(Mi.slider__input_secondary):Mi.slider__input),J(v,"min",t[3]),J(v,"max",t[4]),J(v,"step","1"),v.value=$=t[17]?t[13]:t[12],J(v,"aria-label",t[20]),J(n,"class",_=Mi["slider__tracks-inner"]),J(e,"class",w=Mi["slider__tracks-wrapper"])},m(o,s){M(o,e,s),O(e,n),O(n,r),O(n,i),O(n,a),O(n,u);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(n,null);O(n,d);for(let t=0;t<j.length;t+=1)j[t]&&j[t].m(n,null);O(n,h),O(n,p),V&&V.m(p,null),O(n,g),D&&D.m(n,null),O(n,m),O(n,v),t[72](v),O(n,b),F&&F.m(n,null),t[74](n),x||(k=[q(v,"input",t[71]),q(v,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),q(v,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],x=!0)},p(e,o){if(t=e,128&o[0]&&ct(r,"height",xe(t[7].height)),128&o[0]&&ct(r,"border-radius",xe(t[7].borderRadius)),128&o[0]&&ct(r,"background",t[7].background),128&o[0]&&ct(r,"box-shadow",t[7].boxShadow||""),67141632&o[0]&&ct(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),67141632&o[0]&&ct(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),134217728&o[0]&&ct(a,"width",(100*t[27]).toFixed(2)+"%"),256&o[0]&&ct(a,"height",xe(t[8].height)),256&o[0]&&ct(a,"border-radius",xe(t[8].borderRadius)),256&o[0]&&ct(a,"background",t[8].background),256&o[0]&&ct(a,"box-shadow",t[8].boxShadow||""),262144&o[0]){let e;for(E=Qt(t[18]),e=0;e<E.length;e+=1){const r=da(t,E,e);C[e]?C[e].p(r,o):(C[e]=pa(r),C[e].c(),C[e].m(n,d))}for(;e<C.length;e+=1)C[e].d(1);C.length=E.length}if(524288&o[0]){let e;for(A=Qt(t[19]),e=0;e<A.length;e+=1){const r=ua(t,A,e);j[e]?j[e].p(r,o):(j[e]=fa(r),j[e].c(),j[e].m(n,h))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}t[9]?V?V.p(t,o):(V=ga(t),V.c(),V.m(p,null)):V&&(V.d(1),V=null),32&o[0]&&ct(p,"border-radius",xe(t[5].borderRadius)),32&o[0]&&ct(p,"background",t[5].background),32&o[0]&&ct(p,"box-shadow",t[5].boxShadow||""),t[14]?D?D.p(t,o):(D=ma(t),D.c(),D.m(n,m)):D&&(D.d(1),D=null),131072&o[0]&&y!==(y=t[17]?"".concat(Mi.slider__input," ").concat(Mi.slider__input_secondary):Mi.slider__input)&&J(v,"class",y),8&o[0]&&J(v,"min",t[3]),16&o[0]&&J(v,"max",t[4]),143360&o[0]&&$!==($=t[17]?t[13]:t[12])&&(v.value=$),1048576&o[0]&&J(v,"aria-label",t[20]),t[14]?F?F.p(t,o):(F=ya(t),F.c(),F.m(n,null)):F&&(F.d(1),F=null)},d(n){n&&z(e),R(C,n),R(j,n),V&&V.d(),D&&D.d(),t[72](null),F&&F.d(),t[74](null),x=!1,s(k)}}}function ba(t){let e,n,r,o,i=!t[11]&&ha(t);return{c(){i&&i.c(),e=W()},l(t){i&&i.l(t),e=W()},m(a,s){i&&i.m(a,s),M(a,e,s),n=!0,r||(o=q(window,"resize",t[43]),r=!0)},p(t,n){t[11]?i&&(qt(),Kt(i,1,1,(()=>{i=null})),Jt()):i?(i.p(t,n),2048&n[0]&&Gt(i,1)):(i=ha(t),i.c(),Gt(i,1),i.m(e.parentNode,e))},i(t){n||(Gt(i),n=!0)},o(t){Kt(i),n=!1},d(t){t&&z(e),i&&i.d(t),r=!1,o()}}}const _a={width:10,height:10,borderRadius:5,background:"#000"},wa=["rounded_rectangle","circle"],xa=["rounded_rectangle"];function ka(t,e,n,r,o){let i=[];if(o)for(let o=t;o<e;++o)i.push((o-n)/(r-n));else{for(let e=n;e<t;++e)i.push((e-n)/(r-n));for(let t=e;t<r+1;++t)i.push((t-n)/(r-n))}return i}function Ea(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M,z,R,B,L,U,H,W,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n;var at,st,lt,ct;t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it()));let{componentContext:ut}=e,{layoutParams:dt}=e;const ht=Ct(ye),pt=Ct(an),ft=ht.direction;let gt,mt,vt;p(t,ft,(t=>r(15,F=t)));let yt,$t,bt,_t=!1,xt=0,Et=100,At=_a,jt=At,Dt=_a,Ft=_a,St=null,Pt=null,Nt=bt,It="",Ot="",Tt=!1,Mt=Ri(U||0,xt,Et),zt=Ri(L||0,xt,Et);function Rt(t,e){const n=Number(t.target.value);_t===("first"===e)?(r(13,zt=n),l.setValue(n)):(r(12,Mt=n),s.setValue(n))}let Bt=!1;function Lt(){if(!vt)return;const t=Et-xt,e=(null==St?void 0:St.width)||0,n=(null==Pt?void 0:Pt.width)||0;Math.max(e,n)*t>=(null==vt?void 0:vt.clientWidth)?Bt||(ut.logError($e(new Error("Slider ticks overlap each other"),{level:"warn"})),Bt=!0):Bt=!1}const Ut=Kn(Lt,50);return wt((()=>{Lt()})),kt((()=>{gt&&(ht.unregisterFocusable(gt),r(48,gt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,ut=t.componentContext),"layoutParams"in t&&r(1,dt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(56,o=ut.origJson),33554432&t.$$.dirty[1]&&o&&(r(5,At=_a),r(6,jt=At),r(7,Dt=_a),r(8,Ft=_a),r(49,St=null),r(50,Pt=null),r(9,bt=void 0),r(10,Nt=void 0),r(20,It=""),r(21,Ot="")),1&t.$$.dirty[0]&&r(55,i=ut.json.thumb_value_variable),1&t.$$.dirty[0]&&r(14,a=ut.json.thumb_secondary_value_variable),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(r(22,s=i&&ut.getVariable(i,"integer")||ia("temp","integer",0)),rt(),rt=h(s,(t=>r(68,U=t)))),16385&t.$$.dirty[0]&&(r(23,l=a&&ut.getVariable(a,"integer")||ia("temp","integer",0)),nt(),nt=h(l,(t=>r(67,L=t)))),1&t.$$.dirty[0]&&(r(39,c=ut.getDerivedFromVars(ut.json.min_value)),it(),it=h(c,(t=>r(70,W=t)))),1&t.$$.dirty[0]&&(r(38,u=ut.getDerivedFromVars(ut.json.max_value)),ot(),ot=h(u,(t=>r(69,H=t)))),1&t.$$.dirty[0]&&(r(37,d=ut.getDerivedFromVars(ut.json.thumb_style)),et(),et=h(d,(t=>r(66,B=t)))),1&t.$$.dirty[0]&&(r(36,f=ut.getDerivedFromVars(ut.json.thumb_secondary_style)),tt(),tt=h(f,(t=>r(65,R=t)))),1&t.$$.dirty[0]&&(r(35,g=ut.getDerivedFromVars(ut.json.track_inactive_style)),Q(),Q=h(g,(t=>r(64,z=t)))),1&t.$$.dirty[0]&&(r(34,m=ut.getDerivedFromVars(ut.json.track_active_style)),Z(),Z=h(m,(t=>r(63,M=t)))),1&t.$$.dirty[0]&&(r(33,v=ut.getDerivedFromVars(ut.json.tick_mark_active_style)),Y(),Y=h(v,(t=>r(62,T=t)))),1&t.$$.dirty[0]&&(r(32,y=ut.getDerivedFromVars(ut.json.tick_mark_inactive_style)),X(),X=h(y,(t=>r(61,O=t)))),1&t.$$.dirty[0]&&(r(31,$=ut.getDerivedFromVars(ut.json.thumb_text_style)),K(),K=h($,(t=>r(60,I=t)))),1&t.$$.dirty[0]&&(r(30,b=ut.getDerivedFromVars(ut.json.thumb_secondary_text_style)),G(),G=h(b,(t=>r(59,N=t)))),1&t.$$.dirty[0]&&(r(29,_=ut.getDerivedFromVars(ut.json.accessibility)),J(),J=h(_,(t=>r(58,P=t)))),1&t.$$.dirty[0]&&(r(28,w=ut.getDerivedFromVars(ut.json.secondary_value_accessibility)),q(),q=h(w,(t=>r(57,S=t)))),24&t.$$.dirty[0]|384&t.$$.dirty[2]&&(r(3,xt=Ye(W,xt)),r(4,Et=Ye(H,Et)),Lt()),4120&t.$$.dirty[0]|64&t.$$.dirty[2]){const t=Ri(U||0,xt,Et);t!==Mt&&r(12,Mt=t)}if(8216&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=Ri(L||0,xt,Et);t!==zt&&r(13,zt=t)}if(32&t.$$.dirty[0]|16&t.$$.dirty[2]&&r(5,At=fr(B,wa,At)),32&t.$$.dirty[0]|8&t.$$.dirty[2]&&r(6,jt=fr(R,wa,At)),128&t.$$.dirty[0]|4&t.$$.dirty[2]&&r(7,Dt=fr(z,xa,Dt)),256&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(8,Ft=fr(M,xa,Ft)),1&t.$$.dirty[2]){let t=fr(T,wa,_a);t!==_a&&r(49,St=t)}if(28696&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(St?(r(18,yt=a?ka(Math.min(Mt,zt),Math.max(Mt,zt)+1,xt,Et,!0):ka(xt,Mt,xt,Et,!0)),Lt()):r(18,yt=[])),1073741824&t.$$.dirty[1]){let t=fr(O,wa,_a);t!==_a&&r(50,Pt=t)}if(28696&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(Pt?(r(19,$t=a?ka(Math.min(Mt,zt),Math.max(Mt,zt)+1,xt,Et,!1):ka(Mt+1,Et+1,xt,Et,!0)),Lt()):r(19,$t=[])),512&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(9,bt=zi(I,bt)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,Nt=zi(N,bt)),1&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&((null==P?void 0:P.description)?r(20,It=P.description):ut.logError($e(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),16385&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&((null==S?void 0:S.description)?r(21,Ot=S.description):a&&ut.logError($e(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),2465&t.$$.dirty[0]){let t=!1;pt.hasAction()?(ut.logError($e(new Error('Cannot show "slider" inside component with action'))),t=!0):At===_a?(ut.logError($e(new Error('Missing "thumb_style" in slider'))),t=!0):Ft===_a?(ut.logError($e(new Error('Missing "track_active_style" in slider'))),t=!0):Dt===_a&&(ut.logError($e(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Tt&&r(11,Tt=t)}96&t.$$.dirty[0]&&r(54,x=xe(Math.max(...[At.width,jt.width,0].filter(We)))),96&t.$$.dirty[0]&&r(53,k=xe(Math.max(...[At.height,jt.height,0].filter(We)))),4120&t.$$.dirty[0]&&r(52,E=(Mt-xt)/(Et-xt)),24600&t.$$.dirty[0]&&r(51,C=a?(zt-xt)/(Et-xt):void 0),3145728&t.$$.dirty[1]&&r(27,A=void 0!==C?Math.abs(C-E):E),3145728&t.$$.dirty[1]&&r(26,j=void 0!==C?Math.min(C,E):0),1632&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&r(25,V={"--divkit-slider-thumb-width":xe(At.width),"--divkit-slider-thumb-height":xe(At.height),"--divkit-slider-thumb-secondary-width":xe(jt.width),"--divkit-slider-thumb-secondary-height":xe(jt.height),"--divkit-slider-text-offset-x":(null===r(44,at=null==bt?void 0:bt.offset)||void 0===at?void 0:at.x)?ke(bt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(45,st=null==bt?void 0:bt.offset)||void 0===st?void 0:st.y)?ke(bt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(46,lt=null==Nt?void 0:Nt.offset)||void 0===lt?void 0:lt.x)?ke(Nt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(47,ct=null==Nt?void 0:Nt.offset)||void 0===ct?void 0:ct.y)?ke(Nt.offset.y):void 0,"--divkit-slider-tick-active-width":St?xe(St.width):void 0,"--divkit-slider-tick-active-height":St?xe(St.height):void 0,"--divkit-slider-tick-active-border-radius":St?xe(St.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Pt?xe(Pt.width):void 0,"--divkit-slider-tick-inactive-height":Pt?xe(Pt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Pt?xe(Pt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Pt?void 0:Pt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Pt?void 0:Pt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":x,"--divkit-slider-max-thumb-height":k,"--divkit-slider-track-part":E,"--divkit-slider-track-secondary-part":C}),32768&t.$$.dirty[0]&&r(24,D={direction:F}),5&t.$$.dirty[0]|131072&t.$$.dirty[1]&&ut.json&&mt&&(gt&&(ht.unregisterFocusable(gt),r(48,gt=void 0)),ut.json.id&&!ut.fakeElement&&(r(48,gt=ut.json.id),ht.registerFocusable(gt,{focus(){mt&&mt.focus()}})))},[ut,dt,mt,xt,Et,At,jt,Dt,Ft,bt,Nt,Tt,Mt,zt,a,F,vt,_t,yt,$t,It,Ot,s,l,D,V,j,A,w,_,b,$,y,v,m,g,f,d,u,c,ft,function(t){var e,n;const o="pageX"in t?t.pageX:null===(n=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageX;if(void 0===o)return;const i=vt.getBoundingClientRect();let a=(o-i.left)/i.width;"rtl"===F&&(a=1-a);const s=xt+(Et-xt)*a,l=Math.round(Ri(s,xt,Et));r(17,_t=l<(Mt+zt)/2==Mt<zt)},Rt,Ut,at,st,lt,ct,gt,St,Pt,C,E,k,x,i,o,S,P,N,I,O,T,M,z,R,B,L,U,H,W,t=>Rt(t,"first"),function(t){Vt[t?"unshift":"push"]((()=>{mt=t,r(2,mt)}))},t=>Rt(t,"second"),function(t){Vt[t?"unshift":"push"]((()=>{vt=t,r(16,vt)}))}]}const Ca={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_end":"divkit-e9096",input__aligner:"divkit-e0491",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_start":"divkit-cd14f","input_alignment-vertical_end":"divkit-cd38f","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0","input__input_has-custom-focus":"divkit-e6b50"};function Aa(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=Aa(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const o=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-o>=n&&t[r-o]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-o}}function ja(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Va{constructor(t){this.char=t}}class Da{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class Fa{constructor(t){ja(this,"filters",new Map),ja(this,"destructedValue",[]),ja(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 Va)t+=n.char;else if(n instanceof Da)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 Da&&!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($e(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 Da(null,this.filters.get(e.key),e.placeholder):new Va(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=Aa(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),o=this.buildTailSubstring(n);this.cleanup(n);const i=this.firstEmptyHolderIndex(),a=o?this.calculateMaxShift(o,i):void 0;this.replaceChars(r,i,a);const s=this.firstEmptyHolderIndex();this.replaceChars(o,s),this.calculateCursorPosition(n,s)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof Da&&++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 Da&&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 Da&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const o=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof Da);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=o();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof Da&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let o=e,i=0;for(;o<this.destructedValue.length&&i<r.length;){const t=this.destructedValue[o],e=r[i];t instanceof Da&&(t.char=e,++i),++o}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof Da);)++e;return e}}class Sa extends Fa{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function Pa(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 Na extends Fa{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}),Pa(this,"currencyFormatter",new Intl.NumberFormat),Pa(this,"decimalSeparator","."),Pa(this,"localeDigits",{}),Pa(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($e(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=Aa(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),o=t.lastIndexOf(this.decimalSeparator),i=r!==o||-1===r&&-1===o,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;i&&this.invalidateMaskDataForFormatted(s),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let o=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(o=e.start);const i=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=i;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const o=t[r];o===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(o)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==o,l=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=l.length<=i;this.isDigit(u)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(u),a--):l.push(u):d&&-1===n&&r===o?(l.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(l.push(this.decimalSeparator),c=!0,n=r),r--}return l.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,e){return t.start<=e&&e<t.start+t.added}isDigit(t){return Boolean(this.localeDigits[t])}onException(t){this.logError(t)}}const Ia=3;function Oa(t){const e=t.textContent;let n=0;return"string"==typeof e&&(n+=e.length,t instanceof HTMLElement&&("DIV"===t.tagName||"BR"===t.tagName)&&++n),n}function Ta(t,e){if(t.nodeType!==Ia)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,o=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,o),n.setEnd(r,o),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],o=Oa(r);if(e<=o)return void Ta(r,e);e-=o}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function Ma(t){let e,n;return e=new In({props:{cls:Be("input",Ca,t[16]),style:t[15],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Ha,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{95:e,96:n,97:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,0,(e?4:0)|(n?8:0)|(r?16:0)]}]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=Be("input",Ca,t[16])),32768&n[0]&&(r.style=t[15]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),157564&n[0]|32&n[1]|60&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function za(t){let e,n,r,o,i,a;return{c(){e=B("input"),this.h()},l(t){e=nt(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){J(e,"type",t[8]),J(e,"inputmode",t[9]),J(e,"class",n=Be("input__input",Ca,{"has-custom-focus":t[97],singleline:!0})),J(e,"autocomplete","off"),J(e,"autocapitalize","off"),J(e,"aria-label",t[10]),J(e,"style",r=we(t[14])),e.disabled=o=!t[4],J(e,"placeholder",t[17]),e.value=t[3]},m(n,r){M(n,e,r),t[86](e),i||(a=[q(e,"input",t[38]),q(e,"mousedown",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),q(e,"click",(function(){l(t[36]?t[40]:void 0)&&(t[36]?t[40]:void 0).apply(this,arguments)})),q(e,"focus",(function(){l(t[95])&&t[95].apply(this,arguments)})),q(e,"blur",(function(){l(t[96])&&t[96].apply(this,arguments)}))],i=!0)},p(i,a){t=i,256&a[0]&&J(e,"type",t[8]),512&a[0]&&J(e,"inputmode",t[9]),16&a[3]&&n!==(n=Be("input__input",Ca,{"has-custom-focus":t[97],singleline:!0}))&&J(e,"class",n),1024&a[0]&&J(e,"aria-label",t[10]),16384&a[0]&&r!==(r=we(t[14]))&&J(e,"style",r),16&a[0]&&o!==(o=!t[4])&&(e.disabled=o),131072&a[0]&&J(e,"placeholder",t[17]),8&a[0]&&e.value!==t[3]&&(e.value=t[3])},d(n){n&&z(e),t[86](null),i=!1,s(a)}}}function Ra(t){let e,n,r,o,i,a,s,l,c=!t[6]&&t[17]&&Ba(t);function u(t,e){return t[4]?Ua:La}let d=u(t),h=d(t);return{c(){e=B("span"),c&&c.c(),n=H(),r=B("span"),o=U(""),s=H(),h.c(),this.h()},l(t){e=nt(t,"SPAN",{class:!0});var i=Z(e);c&&c.l(i),n=it(i),r=nt(i,"SPAN",{class:!0,"aria-hidden":!0,style:!0});var a=Z(r);o=ot(a,""),a.forEach(z),s=it(i),h.l(i),i.forEach(z),this.h()},h(){J(r,"class",i=Ca.input__aligner),J(r,"aria-hidden","true"),J(r,"style",a=we(t[13])),J(e,"class",l=Ca["input__scroll-wrapper"])},m(t,i){M(t,e,i),c&&c.m(e,null),O(e,n),O(e,r),O(r,o),O(e,s),h.m(e,null)},p(t,o){!t[6]&&t[17]?c?c.p(t,o):(c=Ba(t),c.c(),c.m(e,n)):c&&(c.d(1),c=null),8192&o[0]&&a!==(a=we(t[13]))&&J(r,"style",a),d===(d=u(t))&&h?h.p(t,o):(h.d(1),h=d(t),h&&(h.c(),h.m(e,null)))},d(t){t&&z(e),c&&c.d(),h.d()}}}function Ba(t){let e,n,r,o;return{c(){e=B("div"),n=U(t[17]),this.h()},l(r){e=nt(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var o=Z(e);n=ot(o,t[17]),o.forEach(z),this.h()},h(){J(e,"class",r=Ca.input__placeholder),J(e,"aria-hidden","true"),J(e,"style",o=we(t[14]))},m(t,r){M(t,e,r),O(e,n)},p(t,r){131072&r[0]&&st(n,t[17]),16384&r[0]&&o!==(o=we(t[14]))&&J(e,"style",o)},d(t){t&&z(e)}}}function La(t){let e,n,r,o,i;return{c(){e=B("span"),this.h()},l(t){e=nt(t,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,role:!0,"aria-label":!0,"aria-disabled":!0,"aria-multiline":!0,style:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=Be("input__input",Ca,{multiline:!0})),J(e,"autocapitalize","off"),J(e,"contenteditable","false"),J(e,"role","textbox"),J(e,"aria-label",t[10]),J(e,"aria-disabled","true"),J(e,"aria-multiline","true"),J(e,"style",r=we(t[14])),void 0===t[6]&&Ot((()=>t[85].call(e)))},m(n,r){M(n,e,r),t[84](e),void 0!==t[6]&&(e.innerText=t[6]),o||(i=q(e,"input",t[85]),o=!0)},p(t,n){1024&n[0]&&J(e,"aria-label",t[10]),16384&n[0]&&r!==(r=we(t[14]))&&J(e,"style",r),64&n[0]&&t[6]!==e.innerText&&(e.innerText=t[6])},d(n){n&&z(e),t[84](null),o=!1,i()}}}function Ua(t){let e,n,r,o,i;return{c(){e=B("span"),this.h()},l(t){e=nt(t,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,role:!0,tabindex:!0,"aria-label":!0,"aria-multiline":!0,style:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=Be("input__input",Ca,{"has-custom-focus":t[97],multiline:!0})),J(e,"autocapitalize","off"),J(e,"contenteditable","true"),J(e,"role","textbox"),J(e,"tabindex","0"),J(e,"aria-label",t[10]),J(e,"aria-multiline","true"),J(e,"style",r=we(t[14])),void 0===t[6]&&Ot((()=>t[83].call(e)))},m(n,r){M(n,e,r),t[82](e),void 0!==t[6]&&(e.innerText=t[6]),o||(i=[q(e,"input",t[83]),q(e,"input",t[38]),q(e,"paste",Ga),q(e,"mousedown",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),q(e,"click",(function(){l(t[36]?t[40]:void 0)&&(t[36]?t[40]:void 0).apply(this,arguments)})),q(e,"focus",(function(){l(t[95])&&t[95].apply(this,arguments)})),q(e,"blur",(function(){l(t[96])&&t[96].apply(this,arguments)}))],o=!0)},p(o,i){t=o,16&i[3]&&n!==(n=Be("input__input",Ca,{"has-custom-focus":t[97],multiline:!0}))&&J(e,"class",n),1024&i[0]&&J(e,"aria-label",t[10]),16384&i[0]&&r!==(r=we(t[14]))&&J(e,"style",r),64&i[0]&&t[6]!==e.innerText&&(e.innerText=t[6])},d(n){n&&z(e),t[82](null),o=!1,s(i)}}}function Ha(t){let e;function n(t,e){return t[5]?Ra:za}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),M(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&z(e),o.d(t)}}}function Wa(t){let e,n,r=!t[7]&&Ma(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[7]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),128&n[0]&&Gt(r,1)):(r=Ma(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}const qa="undefined"!=typeof document&&"inputMode"in document.createElement("input"),Ja={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"};function Ga(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Ka(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M,z,R,B,L,U,H,W,q,J,G,K,X,Y,Z,Q,tt,et,nt,rt=n,ot=n,it=n,at=n,st=n,lt=n,ct=n,ut=n,dt=n,ht=n,pt=n,ft=n,gt=n,mt=n,vt=n,yt=n,$t=n,bt=n,_t=n,xt=n;var Et;t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>yt())),t.$$.on_destroy.push((()=>$t())),t.$$.on_destroy.push((()=>bt())),t.$$.on_destroy.push((()=>_t())),t.$$.on_destroy.push((()=>xt()));let{componentContext:At}=e,{layoutParams:jt}=e;const Dt=Ct(ye),Ft=Dt.direction;let St,Pt;p(t,Ft,(t=>r(65,z=t)));let Nt,Ot,Tt,Mt=!1,zt=null,Rt="",Bt="",Lt=!1,Ut="",Ht=12,Wt="",qt="",Jt="#000",Gt="",Kt="start",Xt="center",Yt="multi_line_text",Zt="text",Qt="",te=null,ee="",ne="",re="",oe=!0;function ie(t){Pt instanceof HTMLInputElement?r(2,Pt.selectionStart=r(2,Pt.selectionEnd=t,Pt),Pt):Ta(Pt,t)}async function ae(){if(!Pt||!zt)return;zt.overrideRawValue(T),l.set(zt.rawValue),$(s,O=r(3,Rt=r(6,Bt=zt.value)),O);const t=zt.cursorPosition;await It(),document.activeElement===Pt&&ie(t)}return wt((()=>{Pt&&zt&&T&&(zt.overrideRawValue(T),$(s,O=r(3,Rt=r(6,Bt=zt.value)),O))})),kt((()=>{St&&(Dt.unregisterFocusable(St),r(42,St=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,At=t.componentContext),"layoutParams"in t&&r(1,jt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(61,o=At.origJson),1073741824&t.$$.dirty[1]&&o&&(r(44,Ut=""),r(45,Ht=12),r(46,Nt=void 0),r(47,Wt=""),r(48,Ot=void 0),r(50,Jt="#000"),r(51,Gt=""),r(52,Kt="left"),r(53,Xt="center"),r(54,Yt="multi_line_text"),r(8,Zt="text"),r(9,Tt=void 0),r(4,oe=!0)),1&t.$$.dirty[0]&&r(59,i=At.json.text_variable),1&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(60,a=null===r(41,Et=At.json.mask)||void 0===Et?void 0:Et.raw_text_variable),1&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(12,s=i&&At.getVariable(i,"string")||ia("temp","string","")),rt(),rt=h(s,(t=>r(62,O=t)))),1&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&(r(11,l=a&&At.getVariable(a,"string")||ia("temp","string","")),ot(),ot=h(l,(t=>r(63,T=t)))),1&t.$$.dirty[0]&&(r(35,c=At.getDerivedFromVars(At.json.hint_text)),_t(),_t=h(c,(t=>r(81,et=t)))),1&t.$$.dirty[0]&&(r(34,u=At.getDerivedFromVars(At.json.hint_color)),bt(),bt=h(u,(t=>r(80,tt=t)))),1&t.$$.dirty[0]&&(r(33,d=At.getDerivedFromVars(At.json.font_size)),$t(),$t=h(d,(t=>r(79,Q=t)))),1&t.$$.dirty[0]&&(r(32,f=At.getDerivedFromVars(At.json.font_weight)),yt(),yt=h(f,(t=>r(78,Z=t)))),1&t.$$.dirty[0]&&(r(31,g=At.getDerivedFromVars(At.json.font_family)),vt(),vt=h(g,(t=>r(77,Y=t)))),1&t.$$.dirty[0]&&(r(30,m=At.getDerivedFromVars(At.json.line_height)),mt(),mt=h(m,(t=>r(76,X=t)))),1&t.$$.dirty[0]&&(r(29,v=At.getDerivedFromVars(At.json.letter_spacing)),gt(),gt=h(v,(t=>r(75,K=t)))),1&t.$$.dirty[0]&&(r(28,y=At.getDerivedFromVars(At.json.text_color)),ft(),ft=h(y,(t=>r(74,G=t)))),1&t.$$.dirty[0]&&(r(27,b=At.getDerivedFromVars(At.json.highlight_color)),pt(),pt=h(b,(t=>r(73,J=t)))),1&t.$$.dirty[0]&&(r(26,_=At.getDerivedFromVars(At.json.text_alignment_horizontal)),ht(),ht=h(_,(t=>r(72,q=t)))),1&t.$$.dirty[0]&&(r(25,w=At.getDerivedFromVars(At.json.text_alignment_vertical)),dt(),dt=h(w,(t=>r(71,W=t)))),1&t.$$.dirty[0]&&(r(24,x=At.getDerivedFromVars(At.json.keyboard_type)),ct(),ct=h(x,(t=>r(69,U=t)))),1&t.$$.dirty[0]&&(r(23,k=At.getDerivedFromVars(At.json.mask)),lt(),lt=h(k,(t=>r(68,L=t)))),1&t.$$.dirty[0]&&(r(22,E=At.getDerivedFromVars(At.json.max_visible_lines)),st(),st=h(E,(t=>r(67,B=t)))),1&t.$$.dirty[0]&&(r(21,C=At.getDerivedFromVars(At.json.paddings)),at(),at=h(C,(t=>r(66,R=t)))),1&t.$$.dirty[0]&&(r(20,A=At.getDerivedFromVars(At.json.accessibility)),it(),it=h(A,(t=>r(64,M=t)))),1&t.$$.dirty[0]&&(r(19,j=At.getDerivedFromVars(At.json.select_all_on_focus)),xt(),xt=h(j,(t=>r(36,nt=t)))),1&t.$$.dirty[0]&&(r(18,V=At.getDerivedFromVars(At.json.is_enabled)),ut(),ut=h(V,(t=>r(70,H=t)))),1&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(i?r(7,Lt=!1):(r(7,Lt=!0),At.logError($e(new Error('Missing "text_variable" in "input"'))))),64&t.$$.dirty[2]&&("fixed_length"===(null==(e=L)?void 0:e.type)?r(43,zt=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new Sa(r,e)}return n||null}(e,At.logError,zt)):"currency"===(null==e?void 0:e.type)&&r(43,zt=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new Na(t.locale,e)}(e,At.logError,zt)),zt&&ae()),8&t.$$.dirty[0]|4096&t.$$.dirty[1]|1&t.$$.dirty[2]&&(zt||Rt===O||r(3,Rt=r(6,Bt=O))),4096&t.$$.dirty[1]|2&t.$$.dirty[2]&&zt&&zt.rawValue!==T&&ae(),524288&t.$$.dirty[2]&&r(17,D=et),8192&t.$$.dirty[1]|262144&t.$$.dirty[2]&&r(44,Ut=Ce(tt,1,Ut)),16384&t.$$.dirty[1]|131072&t.$$.dirty[2]&&r(45,Ht=Tn(Q,Ht)),32768&t.$$.dirty[1]|98304&t.$$.dirty[2]&&(r(46,Nt=zn(Z,Nt)),r(47,Wt=Y&&"string"==typeof Y?Dt.typefaceProvider(Y,{fontWeight:Nt||400}):"")),16384&t.$$.dirty[1]|16384&t.$$.dirty[2]){const t=X;fn(t)&&r(48,Ot=t/Ht)}var e;8192&t.$$.dirty[2]&&He(K)&&r(49,qt=xe(K)),524288&t.$$.dirty[1]|4096&t.$$.dirty[2]&&r(50,Jt=Ce(G,1,Jt)),1048576&t.$$.dirty[1]|2048&t.$$.dirty[2]&&r(51,Gt=Ce(J,1,Gt)),2097152&t.$$.dirty[1]|1032&t.$$.dirty[2]&&r(52,Kt=Wn(q,z,Kt)),4194304&t.$$.dirty[1]|512&t.$$.dirty[2]&&r(53,Xt=qn(W,Xt)),16&t.$$.dirty[0]|256&t.$$.dirty[2]&&r(4,oe=Jn(H,oe)),192&t.$$.dirty[2]&&(U&&U in Ja&&(r(8,Zt=Ja[U]),r(54,Yt=U)),"currency"===(null==L?void 0:L.type)&&(r(8,Zt=qa?"text":"tel"),r(9,Tt="decimal"))),8388608&t.$$.dirty[1]&&r(5,F="multi_line_text"===Yt),33701888&t.$$.dirty[1]|56&t.$$.dirty[2]&&(fn(B)?r(55,Qt="calc(".concat(B*(Ot||1.25)*(Ht/10)+"em"," + ").concat(ke(Te(null==R?void 0:R.top,0)+Te(null==R?void 0:R.bottom,0)),")")):r(55,Qt=""),r(56,te=Qe(R||void 0,te)),r(57,ee=te?Ue({top:(Number(te.top)||0)/Ht*10,right:(Number("ltr"===z?te.end:te.start)||Number(te.right)||0)/Ht*10,bottom:(Number(te.bottom)||0)/Ht*10,left:(Number("ltr"===z?te.start:te.end)||Number(te.left)||0)/Ht*10},z):""),r(58,ne=te?Ue({top:(Number(te.top)||0)/Ht*10,bottom:(Number(te.bottom)||0)/Ht*10},z):"")),1&t.$$.dirty[0]|4&t.$$.dirty[2]&&((null==M?void 0:M.description)?r(10,re=M.description):At.logError($e(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|7340032&t.$$.dirty[1]&&r(16,S={"highlight-color":Boolean(Gt),multiline:F,"alignment-horizontal":Kt,"alignment-vertical":Xt}),18849792&t.$$.dirty[1]&&r(15,P={"--divkit-input-hint-color":Ut,"--divkit-input-highlight-color":Gt,"--divkit-input-line-height":Ot,"font-weight":Nt,"font-family":Wt,"letter-spacing":qt,color:Jt,"max-height":Qt}),67125248&t.$$.dirty[1]&&r(14,N={"font-size":xe(Ht),padding:ee}),134234112&t.$$.dirty[1]&&r(13,I={"font-size":xe(Ht),padding:ne}),5&t.$$.dirty[0]|2048&t.$$.dirty[1]&&Pt&&At.json&&(St&&(Dt.unregisterFocusable(St),r(42,St=void 0)),At.json.id&&!At.fakeElement&&(r(42,St=At.json.id),Dt.registerFocusable(St,{focus(){Pt&&Pt.focus()}})))},[At,jt,Pt,Rt,oe,F,Bt,Lt,Zt,Tt,re,l,s,I,N,P,S,D,V,j,A,C,E,k,x,w,_,b,y,v,m,g,f,d,u,c,nt,Ft,function(t){let e=(F?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Rt!==e&&(r(3,Rt=r(6,Bt=e)),s.setValue(e),zt&&async function(){if(!Pt||!zt)return;zt.applyChangeFrom(Rt,Pt instanceof HTMLInputElement?null===Pt.selectionEnd?void 0:Pt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const o=r.getRangeAt(0);let i;if(o){if(!o.collapsed)return 0;n+=o.endOffset,i=o.endContainer}if(i instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,i.childNodes.length);e<r;++e)t+=Oa(i.childNodes[e]);n=t}for(;i&&i!==t;){var e;const t=i.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(i);for(let e=0;e<r;++e)n+=Oa(t.childNodes[e]);i instanceof HTMLElement&&("DIV"===i.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===Ia||"BR"===i.tagName)&&++n,i=t}return n}catch(t){return 0}}(Pt)),l.set(zt.rawValue),$(s,O=r(3,Rt=r(6,Bt=zt.value)),O);const t=zt.cursorPosition;await It(),document.activeElement===Pt&&ie(t)}())},function(){Mt=!1,setTimeout((()=>{Mt=!0}),250)},function(){if(!Mt)if(Pt instanceof HTMLInputElement)Pt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(Pt),t&&(t.removeAllRanges(),t.addRange(e))}},Et,St,zt,Ut,Ht,Nt,Wt,Ot,qt,Jt,Gt,Kt,Xt,Yt,Qt,te,ee,ne,i,a,o,O,T,M,z,R,B,L,U,H,W,q,J,G,K,X,Y,Z,Q,tt,et,function(t){Vt[t?"unshift":"push"]((()=>{Pt=t,r(2,Pt)}))},function(){Bt=this.innerText,r(6,Bt),r(43,zt),r(3,Rt),r(62,O)},function(t){Vt[t?"unshift":"push"]((()=>{Pt=t,r(2,Pt)}))},function(){Bt=this.innerText,r(6,Bt),r(43,zt),r(3,Rt),r(62,O)},function(t){Vt[t?"unshift":"push"]((()=>{Pt=t,r(2,Pt)}))}]}const Xa={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72","select__select_has-custom-focused":"divkit-a46ad","has-custom-focused":"divkit-fc5dc",select__option:"divkit-e774b"};function Ya(t,e,n){const r=t.slice();return r[55]=e[n],r}function Za(t){let e,n;return e=new In({props:{cls:Be("select",Xa,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[ts,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{52:e,53:n,54:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?2097152:0)|(n?4194304:0)|(r?8388608:0)]}]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Be("select",Xa,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8389564&n[0]|148897792&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Qa(t){let e,n,r,o,i=(t[55].text||t[55].value)+"";return{c(){e=B("option"),n=U(i),this.h()},l(t){e=nt(t,"OPTION",{class:!0});var r=Z(e);n=ot(r,i),r.forEach(z),this.h()},h(){J(e,"class",r=Xa.select__option),e.__value=o=t[55].value,lt(e,e.__value)},m(t,r){M(t,e,r),O(e,n)},p(t,r){16&r[0]&&i!==(i=(t[55].text||t[55].value)+"")&&st(n,i),16&r[0]&&o!==(o=t[55].value)&&(e.__value=o,lt(e,e.__value))},d(t){t&&z(e)}}}function ts(t){let e,n,r,o,i,a,c,u,d,h,p=(t[3]||t[23]||"")+"",f=Qt(t[4]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Qa(Ya(t,f,e));return{c(){e=B("span"),n=U(p),i=H(),a=B("select");for(let t=0;t<g.length;t+=1)g[t].c();this.h()},l(t){e=nt(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=Z(e);n=ot(r,p),r.forEach(z),i=it(t),a=nt(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var o=Z(a);for(let t=0;t<g.length;t+=1)g[t].l(o);o.forEach(z),this.h()},h(){J(e,"class",r=Xa["select__select-text"]),J(e,"style",o=we(t[9])),J(e,"aria-hidden","true"),J(a,"class",c=Be("select__select",Xa,{"has-custom-focus":t[52]})),J(a,"aria-label",t[7]),J(a,"style",u=we(t[8])),void 0===t[5]&&Ot((()=>t[49].call(a)))},m(r,o){M(r,e,o),O(e,n),M(r,i,o),M(r,a,o);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);t[48](a),ut(a,t[5],!0),d||(h=[q(a,"change",t[49]),q(a,"focus",(function(){l(t[53])&&t[53].apply(this,arguments)})),q(a,"blur",(function(){l(t[54])&&t[54].apply(this,arguments)}))],d=!0)},p(r,i){if(t=r,8388616&i[0]&&p!==(p=(t[3]||t[23]||"")+"")&&st(n,p),512&i[0]&&o!==(o=we(t[9]))&&J(e,"style",o),16&i[0]){let e;for(f=Qt(t[4]),e=0;e<f.length;e+=1){const n=Ya(t,f,e);g[e]?g[e].p(n,i):(g[e]=Qa(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}2097152&i[1]&&c!==(c=Be("select__select",Xa,{"has-custom-focus":t[52]}))&&J(a,"class",c),128&i[0]&&J(a,"aria-label",t[7]),256&i[0]&&u!==(u=we(t[8]))&&J(a,"style",u),48&i[0]&&ut(a,t[5])},d(n){n&&(z(e),z(i),z(a)),R(g,n),t[48](null),d=!1,s(h)}}}function es(t){let e,n,r=!t[6]&&Za(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[6]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),64&n[0]&&Gt(r,1)):(r=Za(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function ns(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T=n,M=n,z=n,R=n,B=n,L=n,U=n,H=n,W=n,q=n,J=n;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J()));let{componentContext:G}=e,{layoutParams:K}=e;const X=Ct(ye),Y=X.direction;let Z,Q;p(t,Y,(t=>r(46,P=t)));let tt,et,nt=!1,rt="",ot=null,it="",at="rgba(0,0,0,.45)",st=12,lt="",ct="",ut="#000",dt="";return kt((()=>{Z&&(X.unregisterFocusable(Z),r(25,Z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,G=t.componentContext),"layoutParams"in t&&r(1,K=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(37,o=G.origJson),64&t.$$.dirty[1]&&o&&(r(26,ot=null),r(28,at="rgba(0,0,0,.45)"),r(29,st=12),r(30,tt=void 0),r(31,lt=""),r(32,et=void 0),r(33,ct=""),r(34,ut="#000"),r(7,dt="")),1&t.$$.dirty[0]&&r(35,i=G.json.value_variable),1&t.$$.dirty[0]&&r(36,a=G.json.options),32&t.$$.dirty[1]&&r(4,s=Array.isArray(a)&&a.filter((t=>"string"==typeof t.value))||[]),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(r(22,l=i&&G.getVariable(i,"string")||ia("temp","string","")),q(),q=h(l,(t=>r(5,I=t)))),1&t.$$.dirty[0]&&(r(21,c=G.getDerivedFromVars(G.json.paddings)),W(),W=h(c,(t=>r(47,N=t)))),1&t.$$.dirty[0]&&(r(20,u=G.getDerivedFromVars(G.json.hint_text)),J(),J=h(u,(t=>r(23,O=t)))),1&t.$$.dirty[0]&&(r(19,d=G.getDerivedFromVars(G.json.hint_color)),H(),H=h(d,(t=>r(45,S=t)))),1&t.$$.dirty[0]&&(r(18,f=G.getDerivedFromVars(G.json.font_size)),U(),U=h(f,(t=>r(44,F=t)))),1&t.$$.dirty[0]&&(r(17,g=G.getDerivedFromVars(G.json.font_weight)),L(),L=h(g,(t=>r(43,D=t)))),1&t.$$.dirty[0]&&(r(16,m=G.getDerivedFromVars(G.json.font_family)),B(),B=h(m,(t=>r(42,V=t)))),1&t.$$.dirty[0]&&(r(15,v=G.getDerivedFromVars(G.json.line_height)),R(),R=h(v,(t=>r(41,j=t)))),1&t.$$.dirty[0]&&(r(14,y=G.getDerivedFromVars(G.json.letter_spacing)),z(),z=h(y,(t=>r(40,A=t)))),1&t.$$.dirty[0]&&(r(13,$=G.getDerivedFromVars(G.json.text_color)),M(),M=h($,(t=>r(39,C=t)))),1&t.$$.dirty[0]&&(r(12,b=G.getDerivedFromVars(G.json.accessibility)),T(),T=h(b,(t=>r(38,E=t)))),17&t.$$.dirty[0]&&(Array.isArray(s)&&s.length||G.logError($e(new Error('Empty selection "items" in "select"')))),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(i?r(6,nt=!1):(r(6,nt=!0),G.logError($e(new Error('Missing "value_variable" in "select"'))))),49&t.$$.dirty[0]){const t=s.find((t=>t.value===I));t?r(3,rt=("string"==typeof t.text?t.text:t.value)||""):(r(3,rt=""),I&&G.logError($e(new Error('Value from the variable was not found in the selection items for "select"'))))}if(536870912&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(29,st=Tn(F,st)),603979776&t.$$.dirty[0]|98304&t.$$.dirty[1]&&(r(26,ot=Qe(N||void 0,ot)),r(27,it=ot?Ue({top:(Number(ot.top)||0)/st*10,right:(Number("ltr"===P?ot.end:ot.start)||Number(ot.right)||0)/st*10,bottom:(Number(ot.bottom)||0)/st*10,left:(Number("ltr"===P?ot.start:ot.end)||Number(ot.left)||0)/st*10},P):"")),268435456&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(28,at=Ce(S,1,at)),1073741824&t.$$.dirty[0]|6144&t.$$.dirty[1]&&(r(30,tt=zn(D,tt)),r(31,lt=V&&"string"==typeof V?X.typefaceProvider(V,{fontWeight:tt||400}):"")),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]){const t=j;fn(t)&&r(32,et=t/st)}536870912&t.$$.dirty[0]|512&t.$$.dirty[1]&&He(A)&&r(33,ct=xe(A/st*10)),264&t.$$.dirty[1]&&r(34,ut=Ce(C,1,ut)),1&t.$$.dirty[0]|128&t.$$.dirty[1]&&((null==E?void 0:E.description)?r(7,dt=E.description):G.logError($e(new Error('Missing accessibility "description" for select'),{level:"warn"}))),8&t.$$.dirty[0]&&r(11,_={hint:!rt}),1342177280&t.$$.dirty[0]|9&t.$$.dirty[1]&&r(10,w={"--divkit-input-hint-color":at,"font-weight":tt,"font-family":lt,color:ut}),671088640&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(9,x={padding:it,"font-size":xe(st),"line-height":et,"letter-spacing":ct}),536870912&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(8,k={"font-size":xe(st),"line-height":et,"letter-spacing":ct}),33554437&t.$$.dirty[0]&&G.json&&Q&&(Z&&(X.unregisterFocusable(Z),r(25,Z=void 0)),G.json.id&&!G.fakeElement&&(r(25,Z=G.json.id),X.registerFocusable(Z,{focus(){Q&&Q.focus()}})))},[G,K,Q,rt,s,I,nt,dt,k,x,w,_,b,$,y,v,m,g,f,d,u,c,l,O,Y,Z,ot,it,at,st,tt,lt,et,ct,ut,i,a,o,E,C,A,j,V,D,F,S,P,N,function(t){Vt[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},function(){I=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),l.set(I),r(4,s),r(36,a),r(0,G)}]}const rs={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function os(t,e,n){const r=t.slice();return r[47]=e[n],r}function is(t,e,n){const r=t.slice();return r[47]=e[n],r}function as(t){let e,n;return e=new In({props:{cls:Be("video",rs,t[12]),customActions:"video",componentContext:t[0],layoutParams:t[1],$$slots:{default:[ps]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=Be("video",rs,t[12])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8184&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function ss(t){let e,n,r,o,i,a,l=Qt(t[4]),c=[];for(let e=0;e<l.length;e+=1)c[e]=us(os(t,l,e));return{c(){e=B("video");for(let t=0;t<c.length;t+=1)c[t].c();this.h()},l(t){e=nt(t,"VIDEO",{class:!0,style:!0,poster:!0,preload:!0});var n=Z(e);for(let t=0;t<c.length;t+=1)c[t].l(n);n.forEach(z),this.h()},h(){J(e,"class",n=rs.video__video),J(e,"style",r=we(t[11])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],J(e,"poster",t[9]),J(e,"preload",o=t[8]?"metadata":"auto")},m(n,r){M(n,e,r);for(let t=0;t<c.length;t+=1)c[t]&&c[t].m(e,null);t[41](e),i||(a=[q(e,"timeupdate",t[21]),q(e,"ended",t[22]),q(e,"playing",t[23]),q(e,"pause",t[24]),q(e,"waiting",t[25]),q(e,"error",t[26])],i=!0)},p(t,n){if(67108880&n[0]){let r;for(l=Qt(t[4]),r=0;r<l.length;r+=1){const o=os(t,l,r);c[r]?c[r].p(o,n):(c[r]=us(o),c[r].c(),c[r].m(e,null))}for(;r<c.length;r+=1)c[r].d(1);c.length=l.length}2048&n[0]&&r!==(r=we(t[11]))&&J(e,"style",r),32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),512&n[0]&&J(e,"poster",t[9]),256&n[0]&&o!==(o=t[8]?"metadata":"auto")&&J(e,"preload",o)},d(n){n&&z(e),R(c,n),t[41](null),i=!1,s(a)}}}function ls(t){let e,n,r,o,i,a,l,c,u="".concat(t[10],"%"),d=Qt(t[4]),h=[];for(let e=0;e<d.length;e+=1)h[e]=hs(is(t,d,e));return{c(){e=B("div"),n=B("video");for(let t=0;t<h.length;t+=1)h[t].c();this.h()},l(t){e=nt(t,"DIV",{class:!0});var r=Z(e);n=nt(r,"VIDEO",{class:!0,style:!0,poster:!0,preload:!0});var o=Z(n);for(let t=0;t<h.length;t+=1)h[t].l(o);o.forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=rs.video__video),J(n,"style",o=we(t[11])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],J(n,"poster",t[9]),J(n,"preload",i=t[8]?"metadata":"auto"),J(e,"class",a=rs["video__aspect-wrapper"]),ct(e,"padding-bottom",u)},m(r,o){M(r,e,o),O(e,n);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(n,null);t[40](n),l||(c=[q(n,"timeupdate",t[21]),q(n,"ended",t[22]),q(n,"playing",t[23]),q(n,"pause",t[24]),q(n,"waiting",t[25]),q(n,"error",t[26])],l=!0)},p(t,r){if(67108880&r[0]){let e;for(d=Qt(t[4]),e=0;e<d.length;e+=1){const o=is(t,d,e);h[e]?h[e].p(o,r):(h[e]=hs(o),h[e].c(),h[e].m(n,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=d.length}2048&r[0]&&o!==(o=we(t[11]))&&J(n,"style",o),32&r[0]&&(n.loop=t[5]),64&r[0]&&(n.autoplay=t[6]),128&r[0]&&(n.muted=t[7]),512&r[0]&&J(n,"poster",t[9]),256&r[0]&&i!==(i=t[8]?"metadata":"auto")&&J(n,"preload",i),1024&r[0]&&u!==(u="".concat(t[10],"%"))&&ct(e,"padding-bottom",u)},d(n){n&&z(e),R(h,n),t[40](null),l=!1,s(c)}}}function cs(t){let e,n,r,o,i;return{c(){e=B("source"),this.h()},l(t){e=nt(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[47].src)||J(e,"src",n),J(e,"type",r=t[47].type)},m(n,r){M(n,e,r),o||(i=q(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[47].src)&&J(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&J(e,"type",r)},d(t){t&&z(e),o=!1,i()}}}function us(t){let e,n=t[47],r=cs(t);return{c(){r.c(),e=W()},l(t){r.l(t),e=W()},m(t,n){r.m(t,n),M(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[47])?(r.d(1),r=cs(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&z(e),r.d(t)}}}function ds(t){let e,n,r,o,i;return{c(){e=B("source"),this.h()},l(t){e=nt(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[47].src)||J(e,"src",n),J(e,"type",r=t[47].type)},m(n,r){M(n,e,r),o||(i=q(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[47].src)&&J(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&J(e,"type",r)},d(t){t&&z(e),o=!1,i()}}}function hs(t){let e,n=t[47],r=ds(t);return{c(){r.c(),e=W()},l(t){r.l(t),e=W()},m(t,n){r.m(t,n),M(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[47])?(r.d(1),r=ds(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&z(e),r.d(t)}}}function ps(t){let e;function n(t,e){return t[12].aspect?ls:ss}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),M(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&z(e),o.d(t)}}}function fs(t){let e,n,r=!t[2]&&as(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[2]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),4&n[0]&&Gt(r,1)):(r=as(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function gs(t,e,r){let o,i,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E=n,C=n,A=n,j=n,V=n,D=n,F=n,S=n;t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S()));let{componentContext:P}=e,{layoutParams:N}=e;const I=Ct(ye);let O,T,M,z,R=!1,B=!1,L=[],U=!1,H=!1,W=!1,q=!1,J="fit",G="0";function K(t){B?B=!1:T&&r(3,T.currentTime=Number(t)/1e3,T)}function X(){null==T||T.pause()}function Y(){const t=null==T?void 0:T.play();t&&t.catch((t=>{P.logError($e(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}return kt((()=>{O&&(I.unregisterInstance(O),r(27,O=void 0)),z&&(z(),r(29,z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,P=t.componentContext),"layoutParams"in t&&r(1,N=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&P.json&&(r(5,U=!1),r(6,H=!1),r(7,W=!1),r(8,q=!1),r(9,M=void 0),r(28,J="fit")),1&t.$$.dirty[0]&&r(31,o=P.json.elapsed_time_variable),1&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(30,i=o&&P.getVariable(o,"integer")||ia("temp","integer",0)),1610612736&t.$$.dirty[0]&&i&&(z&&z(),r(29,z=i.subscribe(K))),1&t.$$.dirty[0]&&(r(20,a=P.getDerivedFromVars(P.json.video_sources)),S(),S=h(a,(t=>r(39,k=t)))),1&t.$$.dirty[0]&&(r(19,s=P.getDerivedFromVars(P.json.repeatable)),F(),F=h(s,(t=>r(38,x=t)))),1&t.$$.dirty[0]&&(r(18,l=P.getDerivedFromVars(P.json.autostart)),E(),E=h(l,(t=>r(32,v=t)))),1&t.$$.dirty[0]&&(r(17,c=P.getDerivedFromVars(P.json.muted)),D(),D=h(c,(t=>r(37,w=t)))),1&t.$$.dirty[0]&&(r(16,u=P.getDerivedFromVars(P.json.preload_required)),V(),V=h(u,(t=>r(36,_=t)))),1&t.$$.dirty[0]&&(r(15,d=P.getDerivedFromVars(P.json.preview)),j(),j=h(d,(t=>r(35,b=t)))),1&t.$$.dirty[0]&&(r(14,p=P.getDerivedFromVars(P.json.scale)),A(),A=h(p,(t=>r(34,$=t)))),1&t.$$.dirty[0]&&(r(13,f=P.getDerivedFromVars(P.json.aspect)),C(),C=h(f,(t=>r(33,y=t)))),17&t.$$.dirty[0]|256&t.$$.dirty[1]&&(r(4,(e=k,n=L,L=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):n)),L.length?r(2,R=!1):(r(2,R=!0),P.logError($e(new Error('Missing "video_sources" in "video"'))))),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(5,U=Jn(x,U)),64&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(6,H=Jn(v,H)),128&t.$$.dirty[0]|64&t.$$.dirty[1]&&r(7,W=Jn(w,W)),256&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(8,q=Jn(_,q)),512&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(9,M="string"==typeof b?Hr(b):M),268435456&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(28,J=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}($)||J),4&t.$$.dirty[1]){const t=null==y?void 0:y.ratio;t&&fn(t)?r(10,G=(100/Number(t)).toFixed(2)):r(10,G="0")}134217733&t.$$.dirty[0]&&P.json&&(O&&(I.unregisterInstance(O),r(27,O=void 0)),!P.json.id||R||P.fakeElement||(r(27,O=P.json.id),I.registerInstance(O,{pause:X,start:Y}))),9&t.$$.dirty[0]|2&t.$$.dirty[1]&&P.json&&v&&T&&Y(),1024&t.$$.dirty[0]&&r(12,g={aspect:"0"!==G}),268435456&t.$$.dirty[0]&&r(11,m={"object-fit":J})},[P,N,R,T,L,U,H,W,q,M,G,m,g,f,p,d,u,c,l,s,a,function(){T&&(B=!0,i.setValue(Math.floor(1e3*T.currentTime)))},function(){const t=P.getJsonWithVars(P.json.end_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.resume_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.pause_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.buffering_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.fatal_actions);P.execAnyActions(t)},O,J,z,i,o,v,y,$,b,_,w,x,k,function(t){Vt[t?"unshift":"push"]((()=>{T=t,r(3,T)}))},function(t){Vt[t?"unshift":"push"]((()=>{T=t,r(3,T)}))}]}function ms(t,e,n){const r=t.slice();return r[12]=e[n],r}function vs(t){let e,n;return e=new In({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[xs]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.componentContext=t[0]),2&n&&(r.layoutParams=t[1]),33277&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function ys(t){let e,n,r=[t[7]],i={};for(let t=0;t<r.length;t+=1)i=o(i,r[t]);return{c(){e=B("template"),n=new pt(!1),this.h()},l(t){e=nt(t,"TEMPLATE",{});var r=Z(e.content);n=function(t,e){const n=at(t,"HTML_TAG_START",0),r=at(t,"HTML_TAG_END",n+1);if(-1===n||-1===r)return new pt(e);Q(t);const o=t.splice(n,r-n+1);z(o[0]),z(o[o.length-1]);const i=o.slice(1,o.length-1);for(const e of i)e.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new pt(e,i)}(r,!1),r.forEach(z),this.h()},h(){n.a=null,K(e,i)},m(r,o){M(r,e,o),n.m(t[6],e.content)},p(t,o){64&o&&n.p(t[6]),K(e,i=ne(r,[128&o&&t[7]]))},d(t){t&&z(e)}}}function $s(t){let e,r,o=t[4],i=_s(t);return{c(){i.c(),e=W()},l(t){i.l(t),e=W()},m(t,n){i.m(t,n),M(t,e,n),r=!0},p(t,r){16&r&&d(o,o=t[4])?(qt(),Kt(i,1,1,n),Jt(),i=_s(t),i.c(),Gt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Gt(i),r=!0)},o(t){Kt(i),r=!1},d(t){t&&z(e),i.d(t)}}}function bs(t){let e,n;return e=new Ds({props:{componentContext:t[12]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};256&n&&(r.componentContext=t[12]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function _s(t){let e,n,r=Qt(t[8]),o=[];for(let e=0;e<r.length;e+=1)o[e]=bs(ms(t,r,e));const i=t=>Kt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=W()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=W()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);M(t,e,r),n=!0},p(t,n){if(256&n){let a;for(r=Qt(t[8]),a=0;a<r.length;a+=1){const i=ms(t,r,a);o[a]?(o[a].p(i,n),Gt(o[a],1)):(o[a]=bs(i),o[a].c(),Gt(o[a],1),o[a].m(e.parentNode,e))}for(qt(),a=r.length;a<o.length;a+=1)i(a);Jt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Gt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Kt(o[t]);n=!1},d(t){t&&z(e),R(o,t)}}}function ws(t){let e,n,r,i=t[6]&&ys(t),a=!t[3]&&t[4]&&$s(t),s=[t[0].json.custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=o(l,s[t]);return{c(){e=B(t[2].element),i&&i.c(),n=H(),a&&a.c(),this.h()},l(r){e=nt(r,(t[2].element||"null").toUpperCase(),{});var o=Z(e);i&&i.l(o),n=it(o),a&&a.l(o),o.forEach(z),this.h()},h(){Y(t[2].element)(e,l)},m(o,s){M(o,e,s),i&&i.m(e,null),O(e,n),a&&a.m(e,null),t[10](e),r=!0},p(t,r){t[6]?i?i.p(t,r):(i=ys(t),i.c(),i.m(e,n)):i&&(i.d(1),i=null),!t[3]&&t[4]?a?(a.p(t,r),24&r&&Gt(a,1)):(a=$s(t),a.c(),Gt(a,1),a.m(e,null)):a&&(qt(),Kt(a,1,1,(()=>{a=null})),Jt()),Y(t[2].element)(e,l=ne(s,[1&r&&(t[0].json.custom_props||{})]))},i(t){r||(Gt(a),r=!0)},o(t){Kt(a),r=!1},d(n){n&&z(e),i&&i.d(),a&&a.d(),t[10](null)}}}function xs(t){let e,r,o=t[2].element,i=t[2].element&&ws(t);return{c(){i&&i.c(),e=W()},l(t){i&&i.l(t),e=W()},m(t,n){i&&i.m(t,n),M(t,e,n)},p(t,n){t[2].element?o?d(o,t[2].element)?(i.d(1),i=ws(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):i.p(t,n):(i=ws(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):o&&(i.d(1),i=null,o=t[2].element)},i:n,o(t){Kt(i,t),r=!1},d(t){t&&z(e),i&&i.d(t)}}}function ks(t){let e,n,r=t[2]&&vs(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Gt(r,1)):(r=vs(t),r.c(),Gt(r,1),r.m(e.parentNode,e)):r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt())},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function Es(t,e,n){let r,o;var i;let{componentContext:a}=e,{layoutParams:s}=e;const l=Ct(ye);let c,u=null,d="",h={},p=!1;return wt((()=>{if(c&&"divKitApiCallback"in c&&"function"==typeof c.divKitApiCallback){const t=l.getExtensionContext();c.divKitApiCallback(t)}})),t.$$set=t=>{"componentContext"in t&&n(0,a=t.componentContext),"layoutParams"in t&&n(1,s=t.layoutParams)},t.$$.update=()=>{if(517&t.$$.dirty)if("string"==typeof a.json.custom_type&&a.json.custom_type&&(null===n(9,i=l.customComponents)||void 0===i?void 0:i.has(a.json.custom_type))){if(n(2,u=l.customComponents.get(a.json.custom_type)),"function"==typeof u.template){const t=l.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(6,d=u.template({props:a.json.custom_props,variables:e}))}else u.template&&"string"==typeof u.template?n(6,d=u.template):n(6,d="");n(7,h={shadowrootmode:u.shadowRootMode||"open"})}else n(2,u=null),n(6,d=";"),a.logError($e(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(4,r=a.json.items),17&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(3,p=!1):(n(3,p=!0),a.logError($e(new Error('Incorrect "items" prop for div "custom"'))))),25&t.$$.dirty&&n(8,o=(!p&&r||[]).map(((t,e)=>a.produceChildContext(t,{path:e}))))},[a,s,u,p,r,c,d,h,o,i,function(t){Vt[t?"unshift":"push"]((()=>{c=t,n(5,c)}))}]}const Cs={};function As(t){let e,n,r;var o=t[2];function i(t,e){return{props:{componentContext:t[0],layoutParams:t[1]}}}return o&&(e=ft(o,i(t))),{c(){e&&se(e.$$.fragment),n=W()},l(t){e&&le(e.$$.fragment,t),n=W()},m(t,o){e&&ce(e,t,o),M(t,n,o),r=!0},p(t,r){if(4&r&&o!==(o=t[2])){if(e){qt();const t=e;Kt(t.$$.fragment,1,0,(()=>{ue(t,1)})),Jt()}o?(e=ft(o,i(t)),se(e.$$.fragment),Gt(e.$$.fragment,1),ce(e,n.parentNode,n)):e=null}else if(o){const n={};1&r&&(n.componentContext=t[0]),2&r&&(n.layoutParams=t[1]),e.$set(n)}},i(t){r||(e&&Gt(e.$$.fragment,t),r=!0)},o(t){e&&Kt(e.$$.fragment,t),r=!1},d(t){t&&z(n),e&&ue(e,t)}}}function js(t){let e,n,r=t[2]&&As(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Gt(r,1)):(r=As(t),r.c(),Gt(r,1),r.m(e.parentNode,e)):r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt())},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function Vs(t,e,n){let{componentContext:r}=e,{layoutParams:o}=e;const i=Ct(ye);let a;return t.$$set=t=>{"componentContext"in t&&n(0,r=t.componentContext),"layoutParams"in t&&n(1,o=t.layoutParams)},t.$$.update=()=>{if(5&t.$$.dirty){const t=r.json;if(n(2,a=(null==t?void 0:t.type)&&Cs[t.type]||void 0),!a){let e;e=(null==t?void 0:t.type)&&i.hasTemplate(t.type)?"Recursive template":"Unknown component",r.logError($e(new Error(e),{additional:{component:(null==t?void 0:t.type)||"<missing>"}}))}}},[r,o,a]}Cs.text=class extends pe{constructor(t){super(),de(this,t,sr,ar,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Cs.container=class extends pe{constructor(t){super(),de(this,t,Or,Fr,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Cs.separator=class extends pe{constructor(t){super(),de(this,t,Lr,Br,d,{componentContext:0,layoutParams:1})}},Cs.image=to,Cs.gif=to,Cs.grid=class extends pe{constructor(t){super(),de(this,t,ho,co,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Cs.gallery=class extends pe{constructor(t){super(),de(this,t,Ao,Co,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Cs.tabs=class extends pe{constructor(t){super(),de(this,t,Ro,zo,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},Cs.state=class extends pe{constructor(t){super(),de(this,t,yi,mi,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Cs.pager=class extends pe{constructor(t){super(),de(this,t,Vi,Ai,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Cs.indicator=class extends pe{constructor(t){super(),de(this,t,Ti,Ii,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Cs.slider=class extends pe{constructor(t){super(),de(this,t,Ea,ba,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Cs.input=class extends pe{constructor(t){super(),de(this,t,Ka,Wa,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},Cs.select=class extends pe{constructor(t){super(),de(this,t,ns,es,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Cs.video=class extends pe{constructor(t){super(),de(this,t,gs,fs,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Cs.custom=class extends pe{constructor(t){super(),de(this,t,Es,ks,d,{componentContext:0,layoutParams:1})}};const Ds=class extends pe{constructor(t){super(),de(this,t,Vs,js,d,{componentContext:0,layoutParams:1})}},Fs={"root-svg-filters":"divkit-dc22b"};function Ss(t,e,n){const r=t.slice();r[1]=e[n];const o=r[1].split(":");return r[2]=o[0],r[3]=o[1],r}function Ps(t){let e,n,r,o=Qt([...Object.keys(t[0])]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Ts(Ss(t,o,e));return{c(){e=L("svg"),n=L("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=rt(t,"svg",{class:!0,"aria-hidden":!0});var r=Z(e);n=rt(r,"defs",{});var o=Z(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(z),r.forEach(z),this.h()},h(){J(e,"class",r=Fs["root-svg-filters"]),J(e,"aria-hidden","true")},m(t,r){M(t,e,r),O(e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=Qt([...Object.keys(t[0])]),r=0;r<o.length;r+=1){const a=Ss(t,o,r);i[r]?i[r].p(a,e):(i[r]=Ts(a),i[r].c(),i[r].m(n,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&z(e),R(i,t)}}}function Ns(t){let e,n;return{c(){e=L("feBlend"),this.h()},l(t){e=rt(t,"feBlend",{in2:!0,mode:!0}),Z(e).forEach(z),this.h()},h(){J(e,"in2","SourceGraphic"),J(e,"mode",n=t[3])},m(t,n){M(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&J(e,"mode",n)},d(t){t&&z(e)}}}function Is(t){let e;return{c(){e=L("feComposite"),this.h()},l(t){e=rt(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),Z(e).forEach(z),this.h()},h(){J(e,"in2","SourceGraphic"),J(e,"operator","arithmetic"),J(e,"k1","1"),J(e,"k2","0"),J(e,"k3","0"),J(e,"k4","0")},m(t,n){M(t,e,n)},p:n,d(t){t&&z(e)}}}function Os(t){let e,n;return{c(){e=L("feComposite"),this.h()},l(t){e=rt(t,"feComposite",{in2:!0,operator:!0}),Z(e).forEach(z),this.h()},h(){J(e,"in2","SourceGraphic"),J(e,"operator",n=t[3].split("_")[1])},m(t,n){M(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&J(e,"operator",n)},d(t){t&&z(e)}}}function Ts(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Os:"multiply"===t[3]?Is:Ns}let a=i(t),s=a(t);return{c(){e=L("filter"),n=L("feFlood"),s.c(),this.h()},l(t){e=rt(t,"filter",{id:!0});var r=Z(e);n=rt(r,"feFlood",{"flood-color":!0}),Z(n).forEach(z),s.l(r),r.forEach(z),this.h()},h(){J(n,"flood-color",r=t[2]),J(e,"id",o=t[0][t[1]])},m(t,r){M(t,e,r),O(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&J(n,"flood-color",r),a===(a=i(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&o!==(o=t[0][t[1]])&&J(e,"id",o)},d(t){t&&z(e),s.d()}}}function Ms(t){let e,r=Object.keys(t[0]).length,o=r&&Ps(t);return{c(){o&&o.c(),e=W()},l(t){o&&o.l(t),e=W()},m(t,n){o&&o.m(t,n),M(t,e,n)},p(t,n){let[i]=n;1&i&&(r=Object.keys(t[0]).length),r?o?o.p(t,i):(o=Ps(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:n,o:n,d(t){t&&z(e),o&&o.d(t)}}}function zs(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Rs=class extends pe{constructor(t){super(),de(this,t,zs,Ms,d,{svgFiltersMap:0})}};function Bs(t,e,n,r){const o=n[t.type];if(!o)return r($e(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let i;const a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(a[i]=t[i]);const s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),o=r.filter((t=>"$"!==t.charAt(0))),i=r.filter((t=>"$"===t.charAt(0)));return o.forEach((r=>{const o=n[r];"object"==typeof o&&null!==o?(e[r]=Array.isArray(o)?[]:{},t(e[r],o)):e[r]=o})),i.forEach((t=>{const r=n[t],o=a[r];if(void 0!==o){const n=t.substring(1);e[n]=o}})),e}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(s[i]=t[i]);return{json:s,templateContext:a}}function Ls(){}function Us(t){return{subscribe:e=>(e(t),Ls)}}function Hs(t,e){return e.length?e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t):t}function Ws(t,e){return e.length?e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t):t}function qs(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 Js(t){try{return Wi(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function Gs(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function Ks(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,Ks.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function Xs(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Ys(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:Ee,JsonStringContents:function(){var t,e,n;for(t=he,e=[],n=Ce();n!==r;)e.push(n),n=Ce();return pe=t,e=At(e)}},a=Ee,s="@{",l="}",c="@{}",u="\\",d="?",h=":",p="!:",f="||",g="&&",m="==",v="!=",y=">=",$=">",b="<=",_="<",w="+",x="-",k="/",E="*",C="%",A="!",j=".",V="(",D=")",F=",",S="'",P="e",N="E",I=/^[^}]/,O=/^[^'}]/,T=/^[0-9]/,M=/^[a-zA-Z_]/,z=/^[a-zA-Z_0-9]/,R=/^[ \t\r\n]/,B=$e("@{",!1),L=$e("}",!1),U=$e("@{}",!1),H=$e("\\",!1),W={type:"any"},q=be(["}"],!0,!1),J=$e("?",!1),G=$e(":",!1),K=$e("!:",!1),X=$e("||",!1),Y=$e("&&",!1),Z=$e("==",!1),Q=$e("!=",!1),tt=$e(">=",!1),et=$e(">",!1),nt=$e("<=",!1),rt=$e("<",!1),ot=$e("+",!1),it=$e("-",!1),at=$e("/",!1),st=$e("*",!1),lt=$e("%",!1),ct=$e("!",!1),ut=$e(".",!1),dt=$e("(",!1),ht=$e(")",!1),pt=$e(",",!1),ft=_e("string"),gt=$e("'",!1),mt=be(["'","}"],!0,!1),vt=_e("integer"),yt=be([["0","9"]],!1,!1),$t=_e("number"),bt=$e("e",!1),_t=$e("E",!1),wt=be([["a","z"],["A","Z"],"_"],!1,!1),xt=be([["a","z"],["A","Z"],"_",["0","9"]],!1,!1),kt=_e("whitespace"),Et=be([" ","\t","\r","\n"],!1,!1),Ct=function(t){return t},At=function(t){return qs(t)},jt=function(t){return t},Vt=function(){return""},Dt=function(){return ye()},Ft=function(){throw new Error("Error tokenizing '"+t+"'.")},St=function(){throw new Error("Error tokenizing '"+t+"'.")},Pt=function(t){return t},Nt=function(t){return Gs(t)},It=function(){throw new Error("Error tokenizing '"+t+"'.")},Ot=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Tt=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Mt=function(t,e){return Ws(t,e)},zt=function(t,e){return Ws(t,e)},Rt=function(t,e){return Hs(t,e)},Bt=function(t,e){return Hs(t,e)},Lt=function(t,e){return Hs(t,e)},Ut=function(t,e){return Hs(t,e)},Ht=function(t){return t},Wt=function(t){return t},qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Jt=function(t,e){return function(t,e){return e.length?e.reduce(((t,e)=>{if(!e[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:t,method:e[3],arguments:e[5][2]}}),t):t}(t,e)},Gt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Kt=function(t,e){return[t,...e]},Xt=function(t){return t},Yt=function(t){return t},Zt=function(t){return qs(t)},Qt=function(t){return t},te=function(){return""},ee=function(){return ye()},ne=function(){throw new Error("Error tokenizing '"+t+"'.")},re=function(){throw new Error("Error tokenizing '"+t+"'.")},oe=function(t){return t},ie=function(t){return Gs(t)},ae=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){return{type:"IntegerLiteral",value:Js(ye())}},le=function(){return{type:"NumberLiteral",value:parseFloat(ye())}},ce=function(){return{type:"NumberLiteral",value:parseFloat(ye())}},ue=function(){return"true"===(t=ye())||"false"===t?{type:"BooleanLiteral",value:"true"===t}:{type:"Variable",id:{type:"Identifier",name:t}};var t},de=function(){return{type:"Identifier",name:ye()}},he=0,pe=0,fe=[{line:1,column:1}],ge=0,me=[],ve=0;if("startRule"in e){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=i[e.startRule]}function ye(){return t.substring(pe,he)}function $e(t,e){return{type:"literal",text:t,ignoreCase:e}}function be(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function _e(t){return{type:"other",description:t}}function we(e){var n,r=fe[e];if(r)return r;for(n=e-1;!fe[n];)n--;for(r={line:(r=fe[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return fe[e]=r,r}function xe(t,e,n){var r=we(t),i=we(e),a={source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}};return n&&o&&"function"==typeof o.offset&&(a.start=o.offset(a.start),a.end=o.offset(a.end)),a}function ke(t){he<ge||(he>ge&&(ge=he,me=[]),me.push(t))}function Ee(){var t,e;return t=he,Le(),(e=Ae())!==r?(Le(),pe=t,t=Ct(e)):(he=t,t=r),t}function Ce(){var e,n,o,i,a;if(e=he,t.substr(he,2)===s?(n=s,he+=2):(n=r,0===ve&&ke(B)),n!==r?(o=Le(),(i=Ae())!==r?(Le(),125===t.charCodeAt(he)?(a=l,he++):(a=r,0===ve&&ke(L)),a!==r?(pe=e,e=jt(i)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r),e===r&&(e=he,t.substr(he,3)===c?(n=c,he+=3):(n=r,0===ve&&ke(U)),n!==r&&(pe=e,n=Vt()),(e=n)===r&&(e=he,n=he,ve++,92===t.charCodeAt(he)?(o=u,he++):(o=r,0===ve&&ke(H)),o===r&&(t.substr(he,2)===s?(o=s,he+=2):(o=r,0===ve&&ke(B))),ve--,o===r?n=void 0:(he=n,n=r),n!==r?(t.length>he?(o=t.charAt(he),he++):(o=r,0===ve&&ke(W)),o!==r?(pe=e,e=Dt()):(he=e,e=r)):(he=e,e=r),e===r))){if(e=he,t.substr(he,2)===s?(n=s,he+=2):(n=r,0===ve&&ke(B)),n!==r){if(o=[],I.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(q)),i!==r)for(;i!==r;)o.push(i),I.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(q));else o=r;o!==r?(125===t.charCodeAt(he)?(i=l,he++):(i=r,0===ve&&ke(L)),i!==r?(pe=e,e=Ft()):(he=e,e=r)):(he=e,e=r)}else he=e,e=r;e===r&&(e=he,t.substr(he,2)===s?(n=s,he+=2):(n=r,0===ve&&ke(B)),n!==r&&(pe=e,n=St()),(e=n)===r&&(e=he,92===t.charCodeAt(he)?(n=u,he++):(n=r,0===ve&&ke(H)),n!==r?(t.substr(he,2)===s?(o=s,he+=2):(o=r,0===ve&&ke(B)),o!==r?(pe=e,e=Pt(o)):(he=e,e=r)):(he=e,e=r),e===r&&(e=he,92===t.charCodeAt(he)?(n=u,he++):(n=r,0===ve&&ke(H)),n!==r?(t.length>he?(o=t.charAt(he),he++):(o=r,0===ve&&ke(W)),o!==r?(pe=e,e=Nt(o)):(he=e,e=r)):(he=e,e=r),e===r&&(e=he,92===t.charCodeAt(he)?(n=u,he++):(n=r,0===ve&&ke(H)),n!==r&&(pe=e,n=It()),e=n))))}return e}function Ae(){var e,n,o,i,a,s;return e=he,(n=je())!==r?(Le(),63===t.charCodeAt(he)?(o=d,he++):(o=r,0===ve&&ke(J)),o!==r?(Le(),(i=Ae())!==r?(Le(),58===t.charCodeAt(he)?(a=h,he++):(a=r,0===ve&&ke(G)),a!==r?(Le(),(s=Ae())!==r?(pe=e,e=Ot(n,i,s)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r),e===r&&(e=je()),e}function je(){var e,n,o,i;return e=he,(n=Ve())!==r?(Le(),t.substr(he,2)===p?(o=p,he+=2):(o=r,0===ve&&ke(K)),o!==r?(Le(),(i=Ae())!==r?(pe=e,e=Tt(n,i)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r),e===r&&(e=Ve()),e}function Ve(){var e,n,o,i,a,s,l,c;if(e=he,(n=De())!==r){for(o=[],i=he,a=Le(),t.substr(he,2)===f?(s=f,he+=2):(s=r,0===ve&&ke(X)),s!==r?(l=Le(),(c=De())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),t.substr(he,2)===f?(s=f,he+=2):(s=r,0===ve&&ke(X)),s!==r?(l=Le(),(c=De())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);pe=e,e=Mt(n,o)}else he=e,e=r;return e}function De(){var e,n,o,i,a,s,l,c;if(e=he,(n=Fe())!==r){for(o=[],i=he,a=Le(),t.substr(he,2)===g?(s=g,he+=2):(s=r,0===ve&&ke(Y)),s!==r?(l=Le(),(c=Fe())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),t.substr(he,2)===g?(s=g,he+=2):(s=r,0===ve&&ke(Y)),s!==r?(l=Le(),(c=Fe())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);pe=e,e=zt(n,o)}else he=e,e=r;return e}function Fe(){var e,n,o,i,a,s,l,c;if(e=he,(n=Se())!==r){for(o=[],i=he,a=Le(),t.substr(he,2)===m?(s=m,he+=2):(s=r,0===ve&&ke(Z)),s===r&&(t.substr(he,2)===v?(s=v,he+=2):(s=r,0===ve&&ke(Q))),s!==r?(l=Le(),(c=Se())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),t.substr(he,2)===m?(s=m,he+=2):(s=r,0===ve&&ke(Z)),s===r&&(t.substr(he,2)===v?(s=v,he+=2):(s=r,0===ve&&ke(Q))),s!==r?(l=Le(),(c=Se())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);pe=e,e=Rt(n,o)}else he=e,e=r;return e}function Se(){var e,n,o,i,a,s,l,c;if(e=he,(n=Pe())!==r){for(o=[],i=he,a=Le(),t.substr(he,2)===y?(s=y,he+=2):(s=r,0===ve&&ke(tt)),s===r&&(62===t.charCodeAt(he)?(s=$,he++):(s=r,0===ve&&ke(et)),s===r&&(t.substr(he,2)===b?(s=b,he+=2):(s=r,0===ve&&ke(nt)),s===r&&(60===t.charCodeAt(he)?(s=_,he++):(s=r,0===ve&&ke(rt))))),s!==r?(l=Le(),(c=Pe())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),t.substr(he,2)===y?(s=y,he+=2):(s=r,0===ve&&ke(tt)),s===r&&(62===t.charCodeAt(he)?(s=$,he++):(s=r,0===ve&&ke(et)),s===r&&(t.substr(he,2)===b?(s=b,he+=2):(s=r,0===ve&&ke(nt)),s===r&&(60===t.charCodeAt(he)?(s=_,he++):(s=r,0===ve&&ke(rt))))),s!==r?(l=Le(),(c=Pe())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);pe=e,e=Bt(n,o)}else he=e,e=r;return e}function Pe(){var e,n,o,i,a,s,l,c;if(e=he,(n=Ne())!==r){for(o=[],i=he,a=Le(),43===t.charCodeAt(he)?(s=w,he++):(s=r,0===ve&&ke(ot)),s===r&&(45===t.charCodeAt(he)?(s=x,he++):(s=r,0===ve&&ke(it))),s!==r?(l=Le(),(c=Ne())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),43===t.charCodeAt(he)?(s=w,he++):(s=r,0===ve&&ke(ot)),s===r&&(45===t.charCodeAt(he)?(s=x,he++):(s=r,0===ve&&ke(it))),s!==r?(l=Le(),(c=Ne())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);pe=e,e=Lt(n,o)}else he=e,e=r;return e}function Ne(){var e,n,o,i,a,s,l,c;if(e=he,(n=Ie())!==r){for(o=[],i=he,a=Le(),47===t.charCodeAt(he)?(s=k,he++):(s=r,0===ve&&ke(at)),s===r&&(42===t.charCodeAt(he)?(s=E,he++):(s=r,0===ve&&ke(st)),s===r&&(37===t.charCodeAt(he)?(s=C,he++):(s=r,0===ve&&ke(lt)))),s!==r?(l=Le(),(c=Ie())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),47===t.charCodeAt(he)?(s=k,he++):(s=r,0===ve&&ke(at)),s===r&&(42===t.charCodeAt(he)?(s=E,he++):(s=r,0===ve&&ke(st)),s===r&&(37===t.charCodeAt(he)?(s=C,he++):(s=r,0===ve&&ke(lt)))),s!==r?(l=Le(),(c=Ie())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);pe=e,e=Ut(n,o)}else he=e,e=r;return e}function Ie(){var e,n,o,i;return e=he,n=he,ve++,45===t.charCodeAt(he)?(o=x,he++):(o=r,0===ve&&ke(it)),ve--,o!==r?(he=n,n=void 0):n=r,n!==r&&(o=Re())!==r?(pe=e,e=Ht(o)):(he=e,e=r),e===r&&(e=he,n=he,ve++,45===t.charCodeAt(he)?(o=x,he++):(o=r,0===ve&&ke(it)),ve--,o!==r?(he=n,n=void 0):n=r,n!==r&&(o=ze())!==r?(pe=e,e=Wt(o)):(he=e,e=r),e===r&&(e=he,33===t.charCodeAt(he)?(n=A,he++):(n=r,0===ve&&ke(ct)),n===r&&(43===t.charCodeAt(he)?(n=w,he++):(n=r,0===ve&&ke(ot)),n===r&&(45===t.charCodeAt(he)?(n=x,he++):(n=r,0===ve&&ke(it)))),n!==r?(o=Le(),(i=Oe())!==r?(pe=e,e=qt(n,i)):(he=e,e=r)):(he=e,e=r),e===r&&(e=Oe()))),e}function Oe(){var e,n,o,i,a,s,l,c,u,d,h,p,f,g,m;if(e=he,n=function(){var e,n,o,i,a;return e=he,(n=Be())!==r?(Le(),40===t.charCodeAt(he)?(o=V,he++):(o=r,0===ve&&ke(dt)),o!==r?(Le(),(i=Te())!==r?(Le(),41===t.charCodeAt(he)?(a=D,he++):(a=r,0===ve&&ke(ht)),a!==r?(pe=e,e=Gt(n,i)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r),e===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i,a,s,l,c,u,d,h;if(e=he,M.test(t.charAt(he))?(n=t.charAt(he),he++):(n=r,0===ve&&ke(wt)),n!==r){if(o=[],i=[],z.test(t.charAt(he))?(a=t.charAt(he),he++):(a=r,0===ve&&ke(xt)),a!==r)for(;a!==r;)i.push(a),z.test(t.charAt(he))?(a=t.charAt(he),he++):(a=r,0===ve&&ke(xt));else i=r;for(i===r&&(i=he,46===t.charCodeAt(he)?(a=j,he++):(a=r,0===ve&&ke(ut)),a!==r?(s=he,ve++,l=he,c=Le(),(u=Be())!==r?(d=Le(),40===t.charCodeAt(he)?(h=V,he++):(h=r,0===ve&&ke(dt)),h!==r?l=c=[c,u,d,h]:(he=l,l=r)):(he=l,l=r),ve--,l===r?s=void 0:(he=s,s=r),s!==r?i=a=[a,s]:(he=i,i=r)):(he=i,i=r));i!==r;){if(o.push(i),i=[],z.test(t.charAt(he))?(a=t.charAt(he),he++):(a=r,0===ve&&ke(xt)),a!==r)for(;a!==r;)i.push(a),z.test(t.charAt(he))?(a=t.charAt(he),he++):(a=r,0===ve&&ke(xt));else i=r;i===r&&(i=he,46===t.charCodeAt(he)?(a=j,he++):(a=r,0===ve&&ke(ut)),a!==r?(s=he,ve++,l=he,c=Le(),(u=Be())!==r?(d=Le(),40===t.charCodeAt(he)?(h=V,he++):(h=r,0===ve&&ke(dt)),h!==r?l=c=[c,u,d,h]:(he=l,l=r)):(he=l,l=r),ve--,l===r?s=void 0:(he=s,s=r),s!==r?i=a=[a,s]:(he=i,i=r)):(he=i,i=r))}pe=e,e=ue()}else he=e,e=r;return e}(),e===r&&(e=function(){var e,n,o,i;return ve++,e=he,39===t.charCodeAt(he)?(n=S,he++):(n=r,0===ve&&ke(gt)),n!==r?(o=function(){var t,e,n;for(t=he,e=[],n=Me();n!==r;)e.push(n),n=Me();return pe=t,t=e=Zt(e)}(),39===t.charCodeAt(he)?(i=S,he++):(i=r,0===ve&&ke(gt)),i!==r?(pe=e,e=Yt(o)):(he=e,e=r)):(he=e,e=r),ve--,e===r&&(n=r,0===ve&&ke(ft)),e}(),e===r&&(e=Re())===r&&(e=ze())===r&&(e=he,40===t.charCodeAt(he)?(n=V,he++):(n=r,0===ve&&ke(dt)),n!==r?(Le(),(o=Ae())!==r?(Le(),41===t.charCodeAt(he)?(i=D,he++):(i=r,0===ve&&ke(ht)),i!==r?(pe=e,e=Xt(o)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r))),e}()),e}(),n!==r){for(o=[],i=he,a=Le(),46===t.charCodeAt(he)?(s=j,he++):(s=r,0===ve&&ke(ut)),s!==r?(l=Le(),(c=Be())!==r?(u=Le(),d=he,40===t.charCodeAt(he)?(h=V,he++):(h=r,0===ve&&ke(dt)),h!==r?(p=Le(),(f=Te())!==r?(g=Le(),41===t.charCodeAt(he)?(m=D,he++):(m=r,0===ve&&ke(ht)),m!==r?d=h=[h,p,f,g,m]:(he=d,d=r)):(he=d,d=r)):(he=d,d=r),d===r&&(d=null),i=a=[a,s,l,c,u,d]):(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),46===t.charCodeAt(he)?(s=j,he++):(s=r,0===ve&&ke(ut)),s!==r?(l=Le(),(c=Be())!==r?(u=Le(),d=he,40===t.charCodeAt(he)?(h=V,he++):(h=r,0===ve&&ke(dt)),h!==r?(p=Le(),(f=Te())!==r?(g=Le(),41===t.charCodeAt(he)?(m=D,he++):(m=r,0===ve&&ke(ht)),m!==r?d=h=[h,p,f,g,m]:(he=d,d=r)):(he=d,d=r)):(he=d,d=r),d===r&&(d=null),i=a=[a,s,l,c,u,d]):(he=i,i=r)):(he=i,i=r);pe=e,e=Jt(n,o)}else he=e,e=r;return e}function Te(){var e,n,o,i,a,s;if(e=he,(n=Ae())!==r){for(o=[],i=he,Le(),44===t.charCodeAt(he)?(a=F,he++):(a=r,0===ve&&ke(pt)),a!==r?(Le(),(s=Ae())!==r?i=s:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,Le(),44===t.charCodeAt(he)?(a=F,he++):(a=r,0===ve&&ke(pt)),a!==r?(Le(),(s=Ae())!==r?i=s:(he=i,i=r)):(he=i,i=r);pe=e,e=Kt(n,o)}else he=e,e=r;return e===r&&(e=Le()),e}function Me(){var e,n,o,i,a;if(e=he,t.substr(he,2)===s?(n=s,he+=2):(n=r,0===ve&&ke(B)),n!==r?(o=Le(),(i=Ae())!==r?(Le(),125===t.charCodeAt(he)?(a=l,he++):(a=r,0===ve&&ke(L)),a!==r?(pe=e,e=Qt(i)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r),e===r&&(e=he,t.substr(he,3)===c?(n=c,he+=3):(n=r,0===ve&&ke(U)),n!==r&&(pe=e,n=te()),(e=n)===r&&(e=he,n=he,ve++,92===t.charCodeAt(he)?(o=u,he++):(o=r,0===ve&&ke(H)),o===r&&(39===t.charCodeAt(he)?(o=S,he++):(o=r,0===ve&&ke(gt)),o===r&&(t.substr(he,2)===s?(o=s,he+=2):(o=r,0===ve&&ke(B)))),ve--,o===r?n=void 0:(he=n,n=r),n!==r?(t.length>he?(o=t.charAt(he),he++):(o=r,0===ve&&ke(W)),o!==r?(pe=e,e=ee()):(he=e,e=r)):(he=e,e=r),e===r))){if(e=he,t.substr(he,2)===s?(n=s,he+=2):(n=r,0===ve&&ke(B)),n!==r){if(o=[],O.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(mt)),i!==r)for(;i!==r;)o.push(i),O.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(mt));else o=r;o!==r?(125===t.charCodeAt(he)?(i=l,he++):(i=r,0===ve&&ke(L)),i!==r?(pe=e,e=ne()):(he=e,e=r)):(he=e,e=r)}else he=e,e=r;e===r&&(e=he,t.substr(he,2)===s?(n=s,he+=2):(n=r,0===ve&&ke(B)),n!==r&&(pe=e,n=re()),(e=n)===r&&(e=he,92===t.charCodeAt(he)?(n=u,he++):(n=r,0===ve&&ke(H)),n!==r?(t.substr(he,2)===s?(o=s,he+=2):(o=r,0===ve&&ke(B)),o!==r?(pe=e,e=oe(o)):(he=e,e=r)):(he=e,e=r),e===r&&(e=he,92===t.charCodeAt(he)?(n=u,he++):(n=r,0===ve&&ke(H)),n!==r?(t.length>he?(o=t.charAt(he),he++):(o=r,0===ve&&ke(W)),o!==r?(pe=e,e=ie(o)):(he=e,e=r)):(he=e,e=r),e===r&&(e=he,92===t.charCodeAt(he)?(n=u,he++):(n=r,0===ve&&ke(H)),n!==r&&(pe=e,n=ae()),e=n))))}return e}function ze(){var e,n,o,i;if(ve++,e=he,45===t.charCodeAt(he)?(n=x,he++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],T.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(yt)),i!==r)for(;i!==r;)o.push(i),T.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(yt));else o=r;return o!==r?(pe=e,e=se()):(he=e,e=r),ve--,e===r&&(n=r,0===ve&&ke(vt)),e}function Re(){var e,n,o,i,a,s,l,c,u,d;for(ve++,e=he,45===t.charCodeAt(he)?(n=x,he++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],T.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(yt));i!==r;)o.push(i),T.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(yt));if(46===t.charCodeAt(he)?(i=j,he++):(i=r,0===ve&&ke(ut)),i!==r){if(a=[],T.test(t.charAt(he))?(s=t.charAt(he),he++):(s=r,0===ve&&ke(yt)),s!==r)for(;s!==r;)a.push(s),T.test(t.charAt(he))?(s=t.charAt(he),he++):(s=r,0===ve&&ke(yt));else a=r;if(a!==r){if(s=he,101===t.charCodeAt(he)?(l=P,he++):(l=r,0===ve&&ke(bt)),l===r&&(69===t.charCodeAt(he)?(l=N,he++):(l=r,0===ve&&ke(_t))),l!==r){if(43===t.charCodeAt(he)?(c=w,he++):(c=r,0===ve&&ke(ot)),c===r&&(45===t.charCodeAt(he)?(c=x,he++):(c=r,0===ve&&ke(it))),c===r&&(c=null),u=[],T.test(t.charAt(he))?(d=t.charAt(he),he++):(d=r,0===ve&&ke(yt)),d!==r)for(;d!==r;)u.push(d),T.test(t.charAt(he))?(d=t.charAt(he),he++):(d=r,0===ve&&ke(yt));else u=r;u!==r?s=l=[l,c,u]:(he=s,s=r)}else he=s,s=r;s===r&&(s=null),pe=e,e=le()}else he=e,e=r}else he=e,e=r;if(e===r){if(e=he,45===t.charCodeAt(he)?(n=x,he++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],T.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(yt)),i!==r)for(;i!==r;)o.push(i),T.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(yt));else o=r;if(o!==r)if(101===t.charCodeAt(he)?(i=P,he++):(i=r,0===ve&&ke(bt)),i===r&&(69===t.charCodeAt(he)?(i=N,he++):(i=r,0===ve&&ke(_t))),i!==r){if(43===t.charCodeAt(he)?(a=w,he++):(a=r,0===ve&&ke(ot)),a===r&&(45===t.charCodeAt(he)?(a=x,he++):(a=r,0===ve&&ke(it))),a===r&&(a=null),s=[],T.test(t.charAt(he))?(l=t.charAt(he),he++):(l=r,0===ve&&ke(yt)),l!==r)for(;l!==r;)s.push(l),T.test(t.charAt(he))?(l=t.charAt(he),he++):(l=r,0===ve&&ke(yt));else s=r;s!==r?(pe=e,e=ce()):(he=e,e=r)}else he=e,e=r;else he=e,e=r}return ve--,e===r&&(n=r,0===ve&&ke($t)),e}function Be(){var e,n,o,i;if(e=he,M.test(t.charAt(he))?(n=t.charAt(he),he++):(n=r,0===ve&&ke(wt)),n!==r){for(o=[],z.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(xt));i!==r;)o.push(i),z.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(xt));pe=e,e=de()}else he=e,e=r;return e}function Le(){var e,n;for(ve++,e=[],R.test(t.charAt(he))?(n=t.charAt(he),he++):(n=r,0===ve&&ke(Et));n!==r;)e.push(n),R.test(t.charAt(he))?(n=t.charAt(he),he++):(n=r,0===ve&&ke(Et));return ve--,n=r,0===ve&&ke(kt),e}if((n=a())!==r&&he===t.length)return n;throw n!==r&&he<t.length&&ke({type:"end"}),function(t,e,n){return new Ks(Ks.buildMessage(t,e),t,e,n)}(me,ge<t.length?t.charAt(ge):null,ge<t.length?xe(ge,ge+1):xe(ge,ge))}Us(void 0),function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(Ks,Error),Ks.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+i.line+":"+i.column;if(r){var s=this.location.end,l=Xs("",i.line.toString().length," "),c=r[o.line-1],u=(o.line===s.line?s.column:c.length+1)-o.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+i.line+" | "+c+"\n"+l+" | "+Xs("",o.column-1," ")+Xs("",u,"^")}else e+="\n at "+a}return e},Ks.buildMessage=function(t,e){var n={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."};const Zs=Number.MAX_VALUE,Qs=Number.MIN_VALUE,tl="string",el="integer",nl="number",rl="boolean",ol="color",il="url",al="datetime",sl="dict",ll="array";function cl(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=>{cl(t,e)}));break;case"BinaryExpression":case"LogicalExpression":cl(t.left,e),cl(t.right,e);break;case"UnaryExpression":cl(t.argument,e);break;case"ConditionalExpression":cl(t.test,e),cl(t.consequent,e),cl(t.alternate,e);break;case"TryExpression":cl(t.test,e),cl(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{cl(t,e)}))}}function ul(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function dl(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function hl(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 dl(t.value);if("color"===t.type)return bl($l(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";if("array"===t.type)return"<array>";throw new Error("Unexpected type ".concat(t.type))}function pl(t){let e=hl(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function fl(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function gl(t,e){if(Bi)return Wi(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function ml(t,e){if(e<Hi||e>Ui)throw new Error("Integer overflow.");!Bi&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function vl(t){const e=[];return cl(t,{Variable(t){e.push(t.id.name)}}),e}function yl(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function $l(t){const e=Ae(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function bl(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 _l(t){return bl($l(t))}function wl(t){return{type:nl,value:Number(t.value)}}const xl={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function kl(t,e,n){const r=xl[n];let o=typeof e;if("array"===r&&!Array.isArray(e)||"array"!==r&&o!==r||"object"===o&&null===e)throw"object"===o&&(o=Array.isArray(e)?"array":null===e?"null":"dict"),new Error('Incorrect value type: expected "'.concat(n,'", got "').concat(o,'".'));if("number"===r&&"integer"===n){ml(t,e);try{e=Wi(e)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===r&&"color"===n&&(e=_l(e)),{type:n,value:e}}const El=new Map,Cl=new Map,Al=new Map,jl=new Map;function Vl(t,e,n){const r={args:e,cb:n},o=El.get(t)||[];El.has(t)||El.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Cl.set(i,r)}function Dl(t,e,n){const r={args:e,cb:n},o=Al.get(t)||[];Al.has(t)||Al.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");jl.set(i,r)}function Fl(t,e){const n=t.args.length;let r=t.args.length,o=0;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==nl||e[n].type!==el){if(r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}else++o}return{type:"match",conversions:o}}function Sl(t,e,n){const r=("function"===t?El:Al).get(e);if(!r)return{type:"missing"};let o=null,i=null;for(let t=0;t<r.length;++t){const e=Fl(r[t],n);"match"!==e.type?o||(o=e):(!i||i.conversions>e.conversions)&&(i={func:r[t],conversions:e.conversions})}if(!i){if(o)return o;throw new Error("Missing function")}return i}function Pl(t,e){return e.map(((e,n)=>{let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];return"object"!=typeof r&&(r={type:r}),r.type===nl&&e.type===el?wl(e):e}))}function Nl(t,e){return{type:tl,value:hl(e)}}function Il(t,e){const n=Number(e.value);if(Number.isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:nl,value:n}}function Ol(t,e,n,r){const o=t.variables.get(e.value);let i;return i=o&&o.getType()===r?o.getValue():n.value,"color"===r&&(i=_l(i)),{type:r,value:i}}function Tl(t,e,n){return Ol(t,e,n,n.type)}function Ml(t,e,n){return Ol(t,e,n,"color")}function zl(t,e,n){return Ol(t,e,n,"url")}const Rl=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:el,value:Wi(r)}},Bl=Rl("getUTCFullYear"),Ll=Rl("getUTCMonth"),Ul=Rl("getUTCDate"),Hl=Rl("getUTCDay"),Wl=Rl("getUTCHours"),ql=Rl("getUTCMinutes"),Jl=Rl("getUTCSeconds"),Gl=Rl("getUTCMilliseconds");function Kl(t,e,n,r){if(!r.value.length)return t.warnings.push($e(new Error("String for padding is empty."),{level:"warn"})),"";let o="";const i=e.type===tl?e.value:hl(e);for(;o.length+i.length<n.value;)o+=r.value;return o.length>0&&o.length+i.length>n.value&&(o=o.substring(0,Number(n.value)-Number(i.length))),o}function Xl(t,e,n,r){const o=Kl(t,e,n,r);return{type:tl,value:o+hl(e)}}function Yl(t,e,n,r){const o=Kl(t,e,n,r);return{type:tl,value:hl(e)+o}}function Zl(t){return(e,n)=>{const r=$l(n.value);return{type:nl,value:r[t]/255}}}function Ql(t){return(e,n,r)=>{const o=$l(n.value);return o[t]=255*r.value,{type:ol,value:bl(o)}}}const tc=Zl("a"),ec=Zl("r"),nc=Zl("g"),rc=Zl("b"),oc=Ql("a"),ic=Ql("r"),ac=Ql("g"),sc=Ql("b");function lc(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let o=Wi(e.value)/Wi(n);return ml(t,o),"number"==typeof o&&(o=Math.floor(o)),r&&(o=Wi(o)%Wi(r)),{type:el,value:o}}const cc=36e5;function uc(t){return function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(0===o.length)throw new Error("Non empty argument list is required.");return kl(e,function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(n.value,o.map((t=>t.value))),t)}}function dc(t,e){return function(n,r,o){try{for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return t(n,o,...a)}catch(t){let n=r.value;return"color"===e&&(n=_l(n)),{type:e,value:n}}}}const hc=uc(tl),pc=uc(nl),fc=uc(el),gc=uc(rl),mc=uc(ol),vc=uc(il),yc=uc(ll),$c=uc(sl),bc=dc(hc,tl),_c=dc(pc,nl),wc=dc(fc,el),xc=dc(gc,rl),kc=dc(mc,ol),Ec=dc(vc,il);function Cc(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return yc(t,e,...r)}catch(t){return{type:ll,value:[]}}}function Ac(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return $c(t,e,...r)}catch(t){return{type:sl,value:{}}}}function jc(t,e){return(n,r,o)=>{if(o.value<0||o.value>=r.value.length)throw new Error("Requested index (".concat(o.value,") out of bounds array size (").concat(r.value.length,")."));let i=r.value[Number(o.value)],a=typeof i;if("array"===t&&!Array.isArray(i)||"array"!==t&&a!==t||"object"===a&&null===i)throw"object"===a&&(a=Array.isArray(i)?"array":null===i?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(a,'".'));if("number"===t&&"integer"===e){ml(n,i);try{i=Wi(i)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===t&&"color"===e&&(i=_l(i)),{type:e,value:i}}}function Vc(t,e){return(n,r,o,i)=>{try{return t(n,r,o)}catch(t){let n=i.value;return"color"===e&&(n=_l(n)),{type:e,value:n}}}}const Dc=jc("string","string"),Fc=jc("number","number"),Sc=jc("number","integer"),Pc=jc("boolean","boolean"),Nc=jc("string","color"),Ic=jc("string","url"),Oc=jc("array","array"),Tc=jc("object","dict"),Mc=Vc(Dc,"string"),zc=Vc(Fc,"number"),Rc=Vc(Sc,"integer"),Bc=Vc(Pc,"boolean"),Lc=Vc(Nc,"color"),Uc=Vc(Ic,"url");function Hc(t){return(e,n,r)=>{if(!e.store)return{type:t,value:r.value};let o;o="boolean"===t?"boolean":"number"===t||"integer"===t?"number":"string";const i=e.store.getValue(n.value,o);return void 0===i?{type:t,value:r.value}:kl(e,i,t)}}function Wc(t){return t.map(pl).join(", ")}Vl("toString",[el],Nl),Vl("toString",[nl],Nl),Vl("toString",[rl],Nl),Vl("toString",[ol],Nl),Vl("toString",[il],Nl),Vl("toString",[tl],Nl),Vl("toNumber",[el],Il),Vl("toNumber",[tl],Il),Vl("toInteger",[nl],(function(t,e){if(e.value>Ui||e.value<Hi)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:el,value:Wi(n)}})),Vl("toInteger",[tl],(function(t,e){let n;try{n=Wi(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}return{type:el,value:n}})),Vl("toInteger",[rl],(function(t,e){return{type:el,value:Wi(e.value?1:0)}})),Vl("toBoolean",[el],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:rl,value:n}})),Vl("toBoolean",[tl],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:rl,value:"true"===e.value?1:0}})),Vl("toColor",[tl],(function(t,e){return{type:ol,value:_l(e.value)}})),Vl("toUrl",[tl],(function(t,e){return{type:il,value:e.value}})),Vl("encodeUri",[tl],(function(t,e){try{return{type:tl,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Vl("decodeUri",[tl],(function(t,e){try{return{type:tl,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Vl("getIntegerValue",[tl,el],Tl),Vl("getNumberValue",[tl,nl],Tl),Vl("getBooleanValue",[tl,rl],Tl),Vl("getStringValue",[tl,tl],Tl),Vl("getColorValue",[tl,ol],Ml),Vl("getColorValue",[tl,tl],Ml),Vl("getUrlValue",[tl,il],zl),Vl("getUrlValue",[tl,tl],zl),Dl("toString",[el],Nl),Dl("toString",[nl],Nl),Dl("toString",[rl],Nl),Dl("toString",[ol],Nl),Dl("toString",[il],Nl),Dl("toString",[tl],Nl),Vl("parseUnixTime",[el],(function(t,e){return{type:al,value:new Date(1e3*Number(e.value))}})),Vl("nowLocal",[],(function(){return{type:al,value:new Date}})),Vl("addMillis",[al,el],(function(t,e,n){return{type:al,value:new Date(e.value.getTime()+Number(n.value))}})),Vl("setYear",[al,el],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:al,value:r}})),Vl("setMonth",[al,el],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMonth(r-1),{type:al,value:o}})),Vl("setDay",[al,el],(function(t,e,n){const r=new Date(e.value),o=Number(n.value);if(o<=0&&-1!==o||o>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(o," for date ").concat(hl(e),"."));return r.setUTCDate(-1===o?0:o),{type:al,value:r}})),Vl("setHours",[al,el],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCHours(r),{type:al,value:o}})),Vl("setMinutes",[al,el],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMinutes(r),{type:al,value:o}})),Vl("setSeconds",[al,el],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCSeconds(r),{type:al,value:o}})),Vl("setMillis",[al,el],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMilliseconds(r),{type:al,value:o}})),Vl("getYear",[al],Bl),Vl("getMonth",[al],Ll),Vl("getDay",[al],Ul),Vl("getDayOfWeek",[al],Hl),Vl("getHours",[al],Wl),Vl("getMinutes",[al],ql),Vl("getSeconds",[al],Jl),Vl("getMillis",[al],Gl),Vl("getIntervalSeconds",[el],(function(t,e){return lc(t,e,1e3,60)})),Vl("getIntervalTotalSeconds",[el],(function(t,e){return lc(t,e,1e3)})),Vl("getIntervalMinutes",[el],(function(t,e){return lc(t,e,6e4,60)})),Vl("getIntervalTotalMinutes",[el],(function(t,e){return lc(t,e,6e4)})),Vl("getIntervalHours",[el],(function(t,e){return lc(t,e,cc,24)})),Vl("getIntervalTotalHours",[el],(function(t,e){return lc(t,e,cc)})),Vl("getIntervalTotalDays",[el],(function(t,e){return lc(t,e,864e5)})),Vl("getIntervalTotalWeeks",[el],(function(t,e){return lc(t,e,6048e5)})),Vl("len",[tl],(function(t,e){return{type:el,value:Wi(e.value.length)}})),Vl("contains",[tl,tl],(function(t,e,n){return{type:rl,value:e.value.includes(n.value)?1:0}})),Vl("substring",[tl,el,el],(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:tl,value:e.value.substring(Number(n.value),Number(r.value))}})),Vl("replaceAll",[tl,tl,tl],(function(t,e,n,r){let o;return o=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:tl,value:o}})),Vl("index",[tl,tl],(function(t,e,n){return{type:el,value:Wi(e.value.indexOf(n.value))}})),Vl("lastIndex",[tl,tl],(function(t,e,n){return{type:el,value:Wi(e.value.lastIndexOf(n.value))}})),Vl("trim",[tl],(function(t,e){return{type:tl,value:e.value.trim()}})),Vl("trimLeft",[tl],(function(t,e){return{type:tl,value:e.value.replace(/^\s+/,"")}})),Vl("trimRight",[tl],(function(t,e){return{type:tl,value:e.value.replace(/\s+$/,"")}})),Vl("toUpperCase",[tl],(function(t,e){return{type:tl,value:e.value.toUpperCase()}})),Vl("toLowerCase",[tl],(function(t,e){return{type:tl,value:e.value.toLowerCase()}})),Vl("padStart",[tl,el,tl],Xl),Vl("padStart",[el,el,tl],Xl),Vl("padEnd",[tl,el,tl],Yl),Vl("padEnd",[el,el,tl],Yl),Vl("testRegex",[tl,tl],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:rl,value:r.test(e.value)?1:0}})),Vl("div",[el,el],(function(t,e,n){if(n.value===qi)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=gl(0,r),ml(t,r),{type:el,value:r}})),Vl("div",[nl,nl],(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:nl,value:r}})),Vl("mod",[el,el],(function(t,e,n){if(n.value===qi)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=gl(0,r),ml(t,r),{type:el,value:r}})),Vl("mod",[nl,nl],(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:nl,value:r}})),Vl("mul",[{type:el,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:qi;for(let e=1;e<n.length;++e)o*=n[e].value,o=gl(0,o),ml(t,o);return{type:el,value:o}})),Vl("mul",[{type:nl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o*=n[t].value;return{type:nl,value:o}})),Vl("sub",[{type:el,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:qi;for(let e=1;e<n.length;++e)o-=n[e].value,o=gl(0,o),ml(t,o);return{type:el,value:o}})),Vl("sub",[{type:nl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o-=n[t].value;return{type:nl,value:o}})),Vl("sum",[{type:el,isVararg:!0}],(function(t){let e=qi;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<r.length;++n)e+=r[n].value,e=gl(0,e),ml(t,e);return{type:el,value:e}})),Vl("sum",[{type:nl,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:nl,value:e}})),Vl("abs",[el],(function(t,e){const n=Ji(e.value);return ml(t,n),{type:e.type,value:n}})),Vl("abs",[nl],(function(t,e){const n=Math.abs(e.value);return{type:nl,value:n}})),Vl("max",[{type:el,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value>o&&(o=n[t].value);return{type:el,value:o}})),Vl("max",[{type:nl,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:nl,value:Math.max(...n.map((t=>t.value)))}})),Vl("min",[{type:el,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value<o&&(o=n[t].value);return{type:el,value:o}})),Vl("min",[{type:nl,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:nl,value:Math.min(...n.map((t=>t.value)))}})),Vl("maxNumber",[],(function(){return{type:nl,value:Zs}})),Vl("minNumber",[],(function(){return{type:nl,value:Qs}})),Vl("maxInteger",[],(function(t){return ml(t,Ui),{type:el,value:Ui}})),Vl("minInteger",[],(function(t){return ml(t,Hi),{type:el,value:Hi}})),Vl("round",[nl],(function(t,e){const n=Math.sign(e.value);return{type:nl,value:n*Math.round(Math.abs(e.value))}})),Vl("floor",[nl],(function(t,e){return{type:nl,value:Math.floor(e.value)}})),Vl("ceil",[nl],(function(t,e){return{type:nl,value:Math.ceil(e.value)}})),Vl("signum",[el],(function(t,e){return{type:el,value:Gi(e.value)}})),Vl("signum",[nl],(function(t,e){return{type:nl,value:Math.sign(e.value)}})),Vl("copySign",[el,el],(function(t,e,n){let r;if(n.value===qi)r=e.value;else if(e.value===qi)r=Wi(0);else{const t=Gi(n.value);r=Ji(e.value)*t}return ml(t,r),{type:el,value:r}})),Vl("copySign",[nl,nl],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const o=Math.abs(e.value)*r;return{type:nl,value:o}})),Vl("getColorAlpha",[tl],tc),Vl("getColorAlpha",[ol],tc),Vl("getColorRed",[tl],ec),Vl("getColorRed",[ol],ec),Vl("getColorGreen",[tl],nc),Vl("getColorGreen",[ol],nc),Vl("getColorBlue",[tl],rc),Vl("getColorBlue",[ol],rc),Vl("setColorAlpha",[tl,nl],oc),Vl("setColorAlpha",[ol,nl],oc),Vl("setColorRed",[tl,nl],ic),Vl("setColorRed",[ol,nl],ic),Vl("setColorGreen",[tl,nl],ac),Vl("setColorGreen",[ol,nl],ac),Vl("setColorBlue",[tl,nl],sc),Vl("setColorBlue",[ol,nl],sc),Vl("rgb",[nl,nl,nl],(function(t,e,n,r){const o={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:ol,value:bl(o)}})),Vl("argb",[nl,nl,nl,nl],(function(t,e,n,r,o){const i={a:255*e.value,r:255*n.value,g:255*r.value,b:255*o.value};return{type:ol,value:bl(i)}})),function(){const t={type:tl,isVararg:!0};Vl("getDictString",[sl,t],hc),Vl("getStringFromDict",[sl,t],hc),Vl("getDictNumber",[sl,t],pc),Vl("getNumberFromDict",[sl,t],pc),Vl("getDictInteger",[sl,t],fc),Vl("getIntegerFromDict",[sl,t],fc),Vl("getDictBoolean",[sl,t],gc),Vl("getBooleanFromDict",[sl,t],gc),Vl("getDictColor",[sl,t],mc),Vl("getColorFromDict",[sl,t],mc),Vl("getDictUrl",[sl,t],vc),Vl("getUrlFromDict",[sl,t],vc),Vl("getDictOptString",[tl,sl,t],bc),Vl("getOptStringFromDict",[tl,sl,t],bc),Vl("getDictOptNumber",[nl,sl,t],_c),Vl("getOptNumberFromDict",[nl,sl,t],_c),Vl("getDictOptInteger",[el,sl,t],wc),Vl("getOptIntegerFromDict",[el,sl,t],wc),Vl("getDictOptBoolean",[rl,sl,t],xc),Vl("getOptBooleanFromDict",[rl,sl,t],xc),Vl("getDictOptColor",[ol,sl,t],kc),Vl("getOptColorFromDict",[ol,sl,t],kc),Vl("getDictOptColor",[tl,sl,t],kc),Vl("getOptColorFromDict",[tl,sl,t],kc),Vl("getDictOptUrl",[tl,sl,t],Ec),Vl("getOptUrlFromDict",[tl,sl,t],Ec),Vl("getDictOptUrl",[il,sl,t],Ec),Vl("getOptUrlFromDict",[il,sl,t],Ec),Vl("getDictFromDict",[sl,t],$c),Vl("getArrayFromDict",[sl,t],yc),Vl("getOptArrayFromDict",[sl,t],Cc),Vl("getOptDictFromDict",[sl,t],Ac),Dl("getString",[sl,t],hc),Dl("getBoolean",[sl,t],gc),Dl("getInteger",[sl,t],fc),Dl("getNumber",[sl,t],pc),Dl("getUrl",[sl,t],vc),Dl("getColor",[sl,t],mc),Dl("getArray",[sl,t],yc),Dl("getDict",[sl,t],$c)}(),Vl("getArrayString",[ll,el],Dc),Vl("getStringFromArray",[ll,el],Dc),Vl("getArrayNumber",[ll,el],Fc),Vl("getNumberFromArray",[ll,el],Fc),Vl("getArrayInteger",[ll,el],Sc),Vl("getIntegerFromArray",[ll,el],Sc),Vl("getArrayBoolean",[ll,el],Pc),Vl("getBooleanFromArray",[ll,el],Pc),Vl("getArrayColor",[ll,el],Nc),Vl("getColorFromArray",[ll,el],Nc),Vl("getArrayUrl",[ll,el],Ic),Vl("getUrlFromArray",[ll,el],Ic),Vl("getArrayFromArray",[ll,el],Oc),Vl("getDictFromArray",[ll,el],Tc),Vl("getArrayOptString",[ll,el,tl],Mc),Vl("getOptStringFromArray",[ll,el,tl],Mc),Vl("getArrayOptNumber",[ll,el,nl],zc),Vl("getOptNumberFromArray",[ll,el,nl],zc),Vl("getArrayOptInteger",[ll,el,el],Rc),Vl("getOptIntegerFromArray",[ll,el,el],Rc),Vl("getArrayOptBoolean",[ll,el,rl],Bc),Vl("getOptBooleanFromArray",[ll,el,rl],Bc),Vl("getArrayOptColor",[ll,el,ol],Lc),Vl("getOptColorFromArray",[ll,el,ol],Lc),Vl("getArrayOptColor",[ll,el,tl],Lc),Vl("getOptColorFromArray",[ll,el,tl],Lc),Vl("getArrayOptUrl",[ll,el,il],Uc),Vl("getOptUrlFromArray",[ll,el,il],Uc),Vl("getArrayOptUrl",[ll,el,tl],Uc),Vl("getOptUrlFromArray",[ll,el,tl],Uc),Vl("getOptArrayFromArray",[ll,el],(function(t,e,n){try{return Oc(t,e,n)}catch(t){return{type:ll,value:[]}}})),Vl("getOptDictFromArray",[ll,el],(function(t,e,n){try{return Tc(t,e,n)}catch(t){return{type:sl,value:{}}}})),Vl("len",[ll],(function(t,e){return{type:el,value:Wi(e.value.length)}})),Dl("getString",[ll,el],Dc),Dl("getInteger",[ll,el],Sc),Dl("getNumber",[ll,el],Fc),Dl("getBoolean",[ll,el],Pc),Dl("getUrl",[ll,el],Ic),Dl("getColor",[ll,el],Nc),Dl("getArray",[ll,el],Oc),Dl("getDict",[ll,el],Tc),Vl("getStoredIntegerValue",[tl,el],Hc(el)),Vl("getStoredNumberValue",[tl,nl],Hc(nl)),Vl("getStoredStringValue",[tl,tl],Hc(tl)),Vl("getStoredUrlValue",[tl,il],Hc(il)),Vl("getStoredUrlValue",[tl,tl],Hc(il)),Vl("getStoredColorValue",[tl,ol],Hc(ol)),Vl("getStoredColorValue",[tl,tl],Hc(ol)),Vl("getStoredBooleanValue",[tl,rl],Hc(rl));const qc={StringLiteral:function(t,e){return{type:tl,value:e.value}},NumberLiteral:function(t,e){return{type:nl,value:e.value}},IntegerLiteral:function(t,e){return ml(t,e.value),{type:el,value:e.value}},BooleanLiteral:function(t,e){return{type:rl,value:e.value?1:0}},UnaryExpression:function(t,e){const n=ul(Jc(t,e.argument));switch(e.operator){case"!":if(n.type===rl)return{type:rl,value:n.value?0:1};yl("".concat(e.operator).concat(pl(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===el){const e=n.value*Wi(r);return ml(t,e),{type:el,value:e}}if(n.type===nl)return{type:nl,value:n.value*r};yl("".concat(e.operator).concat(pl(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=ul(Jc(t,e.test));if(n.type===rl)return n.value?Jc(t,e.consequent):Jc(t,e.alternate);yl("".concat(pl(n)," ? ").concat(pl(Jc(t,e.consequent))," : ").concat(pl(Jc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return Jc(t,e.test)}catch(n){return Jc(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Jc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=hl(Jc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:tl,value:n}},LogicalExpression:function(t,e){const n=ul(Jc(t,e.left));if(n.type!==rl&&yl("".concat(pl(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:rl,value:0};const r=ul(Jc(t,e.right));return r.type!==rl&&yl("".concat(pl(n)," ").concat(e.operator," ").concat(pl(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(fl(r.type),".")),{type:rl,value:r.value}},BinaryExpression:function(t,e){const n=e.operator;let r=Jc(t,e.left),o=Jc(t,e.right);if(("number"===r.type&&"integer"===o.type||"integer"===r.type&&"number"===o.type)&&("integer"===r.type?r=wl(r):"integer"===o.type&&(o=wl(o))),r.type!==o.type&&yl("".concat(pl(r)," ").concat(e.operator," ").concat(pl(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(fl(r.type)," and ").concat(fl(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===al&&n.type===al?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:rl,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==nl&&e.type!==el&&e.type!==al&&yl("".concat(pl(e)," ").concat(t," ").concat(pl(n)),"Operator '".concat(t,"' cannot be applied to ").concat(fl(e.type)," type."));const o=e.type===al?e.value.getTime():e.value,i=n.type===al?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:rl,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==tl&&n.type!==nl&&n.type!==el&&yl("".concat(pl(n)," ").concat(e," ").concat(pl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(fl(n.type)," type.")),n.type===tl)return"-"===e&&yl("".concat(pl(n)," - ").concat(pl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(fl(n.type)," type.")),{type:tl,value:n.value+r.value};let o="+"===e?n.value+r.value:n.value-r.value;if(n.type===el)try{o=gl(0,o),ml(t,o)}catch(t){yl("".concat(pl(n)," ").concat(e," ").concat(pl(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let o;if(n.type!==el&&n.type!==nl&&yl("".concat(pl(n)," ").concat(e," ").concat(pl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(fl(n.type)," type.")),"*"===e)o=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&yl("".concat(pl(n)," ").concat(e," ").concat(pl(r)),"Division by zero is not supported."),o="/"===e?n.value/r.value:n.value%r.value}if(n.type===el)try{o=gl(0,o),ml(t,o)}catch(t){yl("".concat(pl(n)," ").concat(e," ").concat(pl(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r,o=e.arguments.map((e=>Jc(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(Cl.has(i))r=Cl.get(i);else{const t=Sl("function",n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.map((t=>fl(t.type))).join(", "),r="".concat(n,"(").concat(Wc(o),")");"few"===t.type&&0===o.length?yl(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?yl(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):yl(r,"Unknown function name: ".concat(n,"."))}r=t.func,t.conversions&&(o=Pl(r,o))}if(!r)throw new Error("Function not found");try{return r.cb(t,...o)}catch(t){yl("".concat(n,"(").concat(Wc(o),")"),t.message)}},MethodExpression:function(t,e){const n=e.method.name;let r;e.arguments.unshift(e.object);let o=e.arguments.map((e=>Jc(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(jl.has(i))r=jl.get(i);else{const t=Sl("method",n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.slice(1).map((t=>fl(t.type))).join(", "),r="".concat(n,"(").concat(Wc(o.slice(1)),")");"few"===t.type&&1===o.length?yl(r,"Non empty argument list is required for method '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?yl(r,"Method '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):yl(r,"Unknown method name: ".concat(n,"."))}r=t.func,t.conversions&&(o=Pl(r,o))}if(!r)throw new Error("Method not found");try{return r.cb(t,...o)}catch(t){yl("".concat(n,"(").concat(Wc(o.slice(1)),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function Jc(t,e){if(e.type in qc)return qc[e.type](t,e);throw new Error("Unsupported expression")}function Gc(t,e,n){try{const r={variables:t,warnings:[],safeIntegerOverflow:!1,store:e},o=Jc(r,n);return r.safeIntegerOverflow&&r.warnings.push($e(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:o,warnings:r.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}class Kc{constructor(t){this.ast=t}apply(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{const o=Gc(t,n,this.ast);o.warnings.forEach(e);const i=o.result;if("error"===i.type)return void e($e(new Error("Expression execution error"),{additional:{message:i.value}}));const a=i.value;if(a instanceof Date)return dl(a);if("boolean"===i.type)return Boolean(a);if("color"===i.type){const t=Ae(String(a));if(t)return bl(t);e($e(new Error("Expression execution error")))}if("integer"===i.type)return a>2147483647||a<-2147483648?void e($e(new Error("Expression result is out of 32-bit int range"))):Number(a);if(!r&&("array"===i.type||"dict"===i.type))try{return JSON.stringify(a)}catch(t){return e($e(new Error("Failed to stringify ".concat(i.type)))),"<".concat(i.type,">")}return a}catch(t){return void e($e(new Error("Expression execution error")))}}}function Xc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Ys(t,{startRule:"JsonStringContents"}),r=vl(n);return e.vars.push(...r),new Kc(n)}catch(e){return void n($e(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Xc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Xc(t[o],e,n);return r}}var r;return t}function Yc(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t){if(t instanceof Kc)return t.apply(e,n,r,o);if(Array.isArray(t))return t.map((t=>Yc(t,e,n,r)));if("object"==typeof t){const o={};for(const i in t)o[i]=Yc(t[i],e,n,r);return o}}return t}function Zc(t,e,n){const r={vars:[],hasExpression:!1},o=Xc(t,r,e);return{vars:[...new Set(r.vars)],hasExpression:r.hasExpression,applyVars:(t,r)=>Yc(o,t,e,n,r)}}const Qc={pagers:function(){return ge(new Map)}},tu=new Map,eu=new Map;function nu(t){const e=tu.get(t)||ge("");return tu.has(t)||tu.set(t,e),e}function ru(t){const e=eu.get(t)||new Map;return eu.has(t)||eu.set(t,e),e}class ou{setVariable(t){const e=t.getName(),n=ru(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),nu(this).set(e)}getVariable(t){return ru(this).get(t)}list(){return ru(this).values()}}function iu(){return new ou}function au(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 su=new Set(["start","stop","pause","resume","cancel","reset"]);class lu{constructor(t){au(this,"timers",new Map),au(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($e(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError($e(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&su.has(e)))return void this.logError($e(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}async tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),await this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((async()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&await this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),o=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((async()=>{await this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-o)%n,"running"===t.state&&e()}),o)};e()}}start(t){if("running"===t.state)return void this.logError($e(new Error("The timer is already running")));if("paused"===t.state)return void this.logError($e(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($e(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($e(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($e(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError($e(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError($e(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($e(new Error("The timer is already running"))):this.logError($e(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}async callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);return this.execAnyActions(t,{processUrls:!1})}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}async unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&await this.tickOrUnholdAction(e),this.startOrResume(e)}}}function cu(t,e,n,r){const{variable_name:o}=n;if(!o)return void e($e(new Error("Incorrect ".concat(n.type," action")),{additional:{name:o}}));const i=t.get(o);if(!i)return void e($e(new Error("Cannot find variable"),{additional:{name:o}}));const a=i.getType();"array"===a?r(i):e($e(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:a}}))}const uu={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},du={linear:r,ease:qo,ease_in:Uo,ease_out:Ho,ease_in_out:Lo,spring:Jo},hu=300,pu=0;function fu(t,e){let{animations:n,direction:r}=e;if(!n)return{};const o=Ze(n),i=(a=o,Math.max(...a.map((t=>(Number(t.duration)||hu)+(Number(t.start_delay)||pu)))));var a;return o.some((t=>"no_animation"===t.name))?{}:{duration:rn()?0:i,css:t=>{const e=t*i,n=o.map((t=>{const n=Number(t.start_delay)||pu,o=Number(t.duration)||hu,i=Math.max(0,Math.min(1,(e-n)/o)),a=(du[t.interpolator||"ease_in_out"]||Lo)(i);var s,l;if("fade"===t.name)return{active:a>0&&a<1,opacity:(1-a)*("in"===r&&null!==(s=t.start_value)&&void 0!==s?s:0)+a*("in"===r?1:null!==(l=t.end_value)&&void 0!==l?l:1)};if("translate"===t.name){var c,u;const e=-("in"===r&&null!==(c=t.start_value)&&void 0!==c?c:10),n=-("in"===r?0:null!==(u=t.end_value)&&void 0!==u?u:0);return{active:a>0&&a<1,translate:"translateY(".concat((1-a)*e+a*n).concat("in"===r&&void 0!==t.start_value||"out"===r&&void 0!==t.end_value?"%":"px",")")}}if("scale"===t.name){var d,h;const e="in"===r&&null!==(d=t.start_value)&&void 0!==d?d:0,n="in"===r?1:null!==(h=t.end_value)&&void 0!==h?h:1;return{active:a>0&&a<1,scale:"scale(".concat((1-a)*e+a*n,")")}}return{}})),a=n.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),s=n.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),l=n.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),c=n.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),u=[s,c.length?c[c.length-1]:l].filter(Boolean).join(" ");return"transform:".concat(u||"none",";opacity:").concat(a)}}}const{window:gu}=j;function mu(t){let e,o,i,a,c,u,d,h;return o=new Ds({props:{componentContext:t[11]}}),{c(){e=B("div"),se(o.$$.fragment),this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);le(o.$$.fragment,n),n.forEach(z),this.h()},h(){J(e,"class",i=Be("tooltip",uu,t[5])+" "+(t[12]?ve.root_platform_desktop:"")),ct(e,"top",t[2]),ct(e,"left",t[1]),ct(e,"width",t[3]),ct(e,"height",t[4])},m(n,r){M(n,e,r),ce(o,e,null),t[27](e),u=!0,d||(h=[q(gu,"click",t[16]),q(gu,"resize",t[17])],d=!0)},p(n,r){t=n;const a={};2048&r[0]&&(a.componentContext=t[11]),o.$set(a),(!u||4128&r[0]&&i!==(i=Be("tooltip",uu,t[5])+" "+(t[12]?ve.root_platform_desktop:"")))&&J(e,"class",i),4&r[0]&&ct(e,"top",t[2]),2&r[0]&&ct(e,"left",t[1]),8&r[0]&&ct(e,"width",t[3]),16&r[0]&&ct(e,"height",t[4])},i(n){u||(Gt(o.$$.fragment,n),n&&Ot((()=>{u&&(c&&c.end(1),a=Yt(e,fu,{animations:t[13]||vu,direction:"in"}),a.start())})),u=!0)},o(i){Kt(o.$$.fragment,i),a&&a.invalidate(),i&&(c=function(t,e,o){const i={direction:"out"};let a,c=e(t,o,i),u=!0;const d=Wt;let h;function p(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:p}=c||Xt;p&&(a=yt(t,1,0,o,e,i,p));const f=x()+e,g=f+o;Ot((()=>Ut(t,!1,"start"))),"inert"in t&&(h=t.inert,t.inert=!0),A((e=>{if(u){if(e>=g)return l(0,1),Ut(t,!1,"end"),--d.r||s(d.c),!1;if(e>=f){const t=i((e-f)/o);l(1-t,t)}}return u}))}return d.r+=1,l(c)?Lt().then((()=>{c=c(i),p()})):p(),{end(e){e&&"inert"in t&&(t.inert=h),e&&c.tick&&c.tick(1,0),u&&(a&&$t(t,a),u=!1)}}}(e,fu,{animations:t[14]||vu,direction:"out"})),u=!1},d(n){n&&z(e),ue(o),t[27](null),n&&c&&c.end(),d=!1,s(h)}}}const vu={name:"set",items:[{name:"translate"},{name:"fade"}]};function yu(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$=n,b=n,_=n,w=n,x=n;var k,E,C,A;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{ownerNode:j}=e,{data:V}=e,{internalId:D}=e,{parentComponentContext:F}=e;const S=Ct(ye),P=S.isDesktop;p(t,P,(t=>r(12,m=t)));const N=Date.now();let I,O=!1,T="",M="",z="",R="",B=null;function L(){var t,e;if(!I||!j)return;const n=I.parentElement;if(!n)return;const o=I.style.cssText;r(0,I.style.cssText+=";transform: none !important",I);const i=j.getBoundingClientRect(),a=I.getBoundingClientRect(),s=n.getBoundingClientRect();r(0,I.style.cssText=o,I);let l=0,c=0,u=null,h=null,p=0,m=0;const v=F.getJsonWithVars(null===(t=V.div)||void 0===t?void 0:t.width),y=F.getJsonWithVars(null===(e=V.div)||void 0===e?void 0:e.width);if(p=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?u=v.value:a.width:u=i.width,m="match_parent"===(null==y?void 0:y.type)?h=i.height:"fixed"===(null==y?void 0:y.type)&&y.value?h=y.value:a.height,"left"===g||"bottom-left"===g||"top-left"===g)l=i.left-p;else if("top"===g||"bottom"===g||"center"===g)l=(i.left+i.right)/2-p/2;else{if("right"!==g&&"bottom-right"!==g&&"top-right"!==g)return;l=i.right}if("top"===g||"top-left"===g||"top-right"===g)c=i.top-m;else if("left"===g||"right"===g||"center"===g)c=(i.top+i.bottom)/2-m/2;else{if("bottom-left"!==g&&"bottom"!==g&&"bottom-right"!==g)return;c=i.bottom}l-=s.left,c-=s.top,l+=f||0,c+=d||0,r(1,T="".concat(l,"px")),r(2,M="".concat(c,"px")),r(3,z=null!==u?"".concat(u,"px"):""),r(4,R=null!==h?"".concat(h,"px"):""),r(26,O=!0),null===u||null===h?"undefined"==typeof ResizeObserver||B||(B=new ResizeObserver((()=>{requestAnimationFrame(L)})),B.observe(I)):null==B||B.disconnect()}return wt((()=>{if(S.tooltipRoot){const t=window.getComputedStyle(I);r(0,I.style.fontSize=t.fontSize,I),r(0,I.style.fontFamily=t.fontFamily,I),r(0,I.style.lineHeight=t.lineHeight,I),S.tooltipRoot.appendChild(I)}})),xt((()=>{O||L()})),kt((()=>{null==B||B.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(18,j=t.ownerNode),"data"in t&&r(19,V=t.data),"internalId"in t&&r(20,D=t.internalId),"parentComponentContext"in t&&r(21,F=t.parentComponentContext)},t.$$.update=()=>{2621440&t.$$.dirty[0]&&r(11,o=F.produceChildContext(V.div)),2621440&t.$$.dirty[0]&&(r(10,i=F.getDerivedFromVars(V.position)),_(),_=h(i,(t=>r(31,g=t)))),15204352&t.$$.dirty[0]&&(r(9,a=F.getDerivedFromVars(null===r(23,E=null===r(22,k=V.offset)||void 0===k?void 0:k.x)||void 0===E?void 0:E.value)),b(),b=h(a,(t=>r(30,f=t)))),52953088&t.$$.dirty[0]&&(r(8,s=F.getDerivedFromVars(null===r(25,A=null===r(24,C=V.offset)||void 0===C?void 0:C.y)||void 0===A?void 0:A.value)),$(),$=h(s,(t=>r(29,d=t)))),2621440&t.$$.dirty[0]&&(r(7,l=F.getDerivedFromVars(V.animation_in)),w(),w=h(l,(t=>r(13,v=t)))),2621440&t.$$.dirty[0]&&(r(6,c=F.getDerivedFromVars(V.animation_out)),x(),x=h(c,(t=>r(14,y=t)))),67108864&t.$$.dirty[0]&&r(5,u={visible:O})},[I,T,M,z,R,u,c,l,s,a,i,o,m,v,y,P,function(t){Date.now()-N<100||t.composedPath().includes(I)||S.onTooltipClose(D)},function(){L()},j,V,D,F,k,E,C,A,O,function(t){Vt[t?"unshift":"push"]((()=>{I=t,r(0,I)}))}]}const $u=class extends pe{constructor(t){super(),de(this,t,yu,mu,d,{ownerNode:18,data:19,internalId:20,parentComponentContext:21},null,[-1,-1])}};function bu(t){let{delay:e=0,duration:n=400,easing:r=Ho,x:o=0,y:i=0,opacity:a=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=getComputedStyle(t),l=+s.opacity,c="none"===s.transform?"":s.transform,u=l*(1-a),[d,h]=_(o),[p,f]=_(i);return{delay:e,duration:n,easing:r,css:(t,e)=>"\n\t\t\ttransform: ".concat(c," translate(").concat((1-t)*d).concat(h,", ").concat((1-t)*p).concat(f,");\n\t\t\topacity: ").concat(l-u*e)}}const _u={root_platform_desktop:"divkit-ee112",menu:"divkit-cedbe",menu_visible:"divkit-e4801",menu__list:"divkit-c8df2",menu__item:"divkit-ffd4a"},{window:wu}=j;function xu(t,e,n){const r=t.slice();return r[23]=e[n],r}function ku(t){let e,n=t[23].text+"";return{c(){e=U(n)},l(t){e=ot(t,n)},m(t,n){M(t,e,n)},p(t,r){1&r&&n!==(n=t[23].text+"")&&st(e,n)},d(t){t&&z(e)}}}function Eu(t){let e,n,r,o;return n=new hn({props:{componentContext:t[1],actions:t[23].actions||t[23].action&&[t[23].action],cls:_u.menu__item+" "+t[10],customAction:t[14],$$slots:{default:[ku]},$$scope:{ctx:t}}}),{c(){e=B("li"),se(n.$$.fragment),r=H()},l(t){e=nt(t,"LI",{});var o=Z(e);le(n.$$.fragment,o),r=it(o),o.forEach(z)},m(t,i){M(t,e,i),ce(n,e,null),O(e,r),o=!0},p(t,e){const r={};2&e&&(r.componentContext=t[1]),1&e&&(r.actions=t[23].actions||t[23].action&&[t[23].action]),67108865&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){o||(Gt(n.$$.fragment,t),o=!0)},o(t){Kt(n.$$.fragment,t),o=!1},d(t){t&&z(e),ue(n)}}}function Cu(t){let e,n,r,o,i,a,l,c,u=Qt(t[0]),d=[];for(let e=0;e<u.length;e+=1)d[e]=Eu(xu(t,u,e));const h=t=>Kt(d[t],1,1,(()=>{d[t]=null}));return{c(){e=B("div"),n=B("ul");for(let t=0;t<d.length;t+=1)d[t].c();this.h()},l(t){e=nt(t,"DIV",{class:!0});var r=Z(e);n=nt(r,"UL",{class:!0});var o=Z(n);for(let t=0;t<d.length;t+=1)d[t].l(o);o.forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=_u.menu__list),J(e,"class",o=Be("menu",_u,t[7])+" "+(t[8]?ve.root_platform_desktop:"")+" "+t[9]),ct(e,"top",t[4]),ct(e,"left",t[3]),ct(e,"width",t[5]),ct(e,"height",t[6])},m(r,o){M(r,e,o),O(e,n);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(n,null);t[17](e),a=!0,l||(c=[q(wu,"click",t[12]),q(wu,"resize",t[13])],l=!0)},p(t,r){let[i]=r;if(17411&i){let e;for(u=Qt(t[0]),e=0;e<u.length;e+=1){const r=xu(t,u,e);d[e]?(d[e].p(r,i),Gt(d[e],1)):(d[e]=Eu(r),d[e].c(),Gt(d[e],1),d[e].m(n,null))}for(qt(),e=u.length;e<d.length;e+=1)h(e);Jt()}(!a||384&i&&o!==(o=Be("menu",_u,t[7])+" "+(t[8]?ve.root_platform_desktop:"")+" "+t[9]))&&J(e,"class",o),16&i&&ct(e,"top",t[4]),8&i&&ct(e,"left",t[3]),32&i&&ct(e,"width",t[5]),64&i&&ct(e,"height",t[6])},i(t){if(!a){for(let t=0;t<u.length;t+=1)Gt(d[t]);t&&Ot((()=>{a&&(i||(i=Zt(e,bu,{y:20},!0)),i.run(1))})),a=!0}},o(t){d=d.filter(Boolean);for(let t=0;t<d.length;t+=1)Kt(d[t]);t&&(i||(i=Zt(e,bu,{y:20},!1)),i.run(0)),a=!1},d(n){n&&z(e),R(d,n),t[17](null),n&&i&&i.end(),l=!1,s(c)}}}function Au(t,e,n){let r,o,{ownerNode:i}=e,{items:a}=e,{parentComponentContext:s}=e;const l=Ct(ye),c=l.getCustomization("menuPopupClass")||"",u=l.getCustomization("menuItemClass")||"",d=l.isDesktop;p(t,d,(t=>n(8,o=t)));const h=Date.now(),f=function(){const t=_t();return function(e,n){let{cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t.$$.callbacks[e];if(o){const i=dt(e,n,{cancelable:r});return o.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}();let g,m=!1,v="",y="",$="",b="",_=null;function w(){if(!g||!i)return;const t=g.parentElement;if(!t)return;const e=i.getBoundingClientRect(),r=g.getBoundingClientRect(),o=t.getBoundingClientRect(),a=window.innerWidth,s=window.innerHeight;let l=0,c=0,u=r.width,d=r.height;l=e.left-o.left,c=e.bottom-o.top,l+u>a&&(l=a-u),l<0&&(l=0),c+d>s&&(c=e.top-o.top-d>0?e.top-o.top-d:s-d),c<0&&(c=0),n(3,v="".concat(l,"px")),n(4,y="".concat(c,"px")),n(5,$=""),n(6,b=""),n(16,m=!0),"undefined"==typeof ResizeObserver||_||(_=new ResizeObserver((()=>{requestAnimationFrame(w)})),_.observe(g))}return wt((()=>{if(l.tooltipRoot){const t=window.getComputedStyle(g);n(2,g.style.fontSize=t.fontSize,g),n(2,g.style.fontFamily=t.fontFamily,g),n(2,g.style.lineHeight=t.lineHeight,g),l.tooltipRoot.appendChild(g)}})),xt((()=>{m||w()})),kt((()=>{null==_||_.disconnect()})),t.$$set=t=>{"ownerNode"in t&&n(15,i=t.ownerNode),"items"in t&&n(0,a=t.items),"parentComponentContext"in t&&n(1,s=t.parentComponentContext)},t.$$.update=()=>{65536&t.$$.dirty&&n(7,r={visible:m})},[a,s,g,v,y,$,b,r,o,c,u,d,function(t){Date.now()-h<100||t.composedPath().includes(g)||f("close")},function(){w()},function(){return f("close"),!0},i,m,function(t){Vt[t?"unshift":"push"]((()=>{g=t,n(2,g)}))}]}const ju=class extends pe{constructor(t){super(),de(this,t,Au,Cu,d,{ownerNode:15,items:0,parentComponentContext:1})}},{Map:Vu}=j;function Du(t,e,n){const r=t.slice();return r[115]=e[n],r}function Fu(t){let e,n,r,o,i,a,s,l,c,u;n=new Rs({props:{svgFiltersMap:t[5]}}),o=new Ds({props:{componentContext:t[6]}});let d=t[3]&&Su(t),h=t[4]&&Nu(t);return{c(){e=B("div"),se(n.$$.fragment),r=H(),se(o.$$.fragment),i=H(),d&&d.c(),a=H(),h&&h.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0,dir:!0});var s=Z(e);le(n.$$.fragment,s),r=it(s),le(o.$$.fragment,s),i=it(s),d&&d.l(s),a=it(s),h&&h.l(s),s.forEach(z),this.h()},h(){J(e,"class",s=""+(ve.root+(t[7]?" ".concat(ve.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))),J(e,"dir",t[8])},m(t,s){M(t,e,s),ce(n,e,null),O(e,r),ce(o,e,null),O(e,i),d&&d.m(e,null),O(e,a),h&&h.m(e,null),l=!0,c||(u=q(e,"touchstart",Lu,{passive:!0}),c=!0)},p(t,r){const i={};32&r[0]&&(i.svgFiltersMap=t[5]),n.$set(i);const c={};64&r[0]&&(c.componentContext=t[6]),o.$set(c),t[3]?d?(d.p(t,r),8&r[0]&&Gt(d,1)):(d=Su(t),d.c(),Gt(d,1),d.m(e,a)):d&&(qt(),Kt(d,1,1,(()=>{d=null})),Jt()),t[4]?h?(h.p(t,r),16&r[0]&&Gt(h,1)):(h=Nu(t),h.c(),Gt(h,1),h.m(e,null)):h&&(qt(),Kt(h,1,1,(()=>{h=null})),Jt()),(!l||129&r[0]&&s!==(s=""+(ve.root+(t[7]?" ".concat(ve.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&J(e,"class",s),(!l||256&r[0])&&J(e,"dir",t[8])},i(t){l||(Gt(n.$$.fragment,t),Gt(o.$$.fragment,t),Gt(d),Gt(h),l=!0)},o(t){Kt(n.$$.fragment,t),Kt(o.$$.fragment,t),Kt(d),Kt(h),l=!1},d(t){t&&z(e),ue(n),ue(o),d&&d.d(),h&&h.d(),c=!1,u()}}}function Su(t){let e,n,r=[],o=new Vu,i=Qt(t[3]);const a=t=>t[115].internalId;for(let e=0;e<i.length;e+=1){let n=Du(t,i,e),s=a(n);o.set(s,r[e]=Pu(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=W()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=W()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);M(t,e,o),n=!0},p(t,n){72&n[0]&&(i=Qt(t[3]),qt(),r=ee(r,n,a,1,t,i,o,e.parentNode,te,Pu,e,Du),Jt())},i(t){if(!n){for(let t=0;t<i.length;t+=1)Gt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)Kt(r[t]);n=!1},d(t){t&&z(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function Pu(t,e){let n,r,o;return r=new $u({props:{ownerNode:e[115].ownerNode,data:e[115].desc,internalId:e[115].internalId,parentComponentContext:e[6]}}),{key:t,first:null,c(){n=W(),se(r.$$.fragment),this.h()},l(t){n=W(),le(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){M(t,n,e),ce(r,t,e),o=!0},p(t,n){e=t;const o={};8&n[0]&&(o.ownerNode=e[115].ownerNode),8&n[0]&&(o.data=e[115].desc),8&n[0]&&(o.internalId=e[115].internalId),64&n[0]&&(o.parentComponentContext=e[6]),r.$set(o)},i(t){o||(Gt(r.$$.fragment,t),o=!0)},o(t){Kt(r.$$.fragment,t),o=!1},d(t){t&&z(n),ue(r,t)}}}function Nu(t){let e,n;return e=new ju({props:{ownerNode:t[4].node,items:t[4].items,parentComponentContext:t[6]}}),e.$on("close",t[39]),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.ownerNode=t[4].node),16&n[0]&&(r.items=t[4].items),64&n[0]&&(r.parentComponentContext=t[6]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Iu(t){let e,n,r=!t[1]&&!t[2]&&t[6]&&Fu(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[1]||t[2]||!t[6]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),70&n[0]&&Gt(r,1)):(r=Fu(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}let Ou=ge(!0),Tu=0;function Mu(){Ou.set(!1)}function zu(){Ou.set(!0)}const Ru=new Set(["string","integer","number","url","color","boolean"]);function Bu(t,e){return t&&e?new Map([...t,...e]):t||e||void 0}function Lu(){}function Uu(t,e,n){let r,o,i,a;var s,l,c,u;let{id:d}=e,{json:h={}}=e,{platform:f="auto"}=e,{theme:g="system"}=e,{globalVariablesController:m=new ou}=e,{mix:v=""}=e,{customization:y={}}=e,{builtinProtocols:$=["http","https","tel","mailto","intent"]}=e,{extensions:b=new Map}=e,{onError:_}=e,{onStat:w}=e,{onCustomAction:x}=e,{onComponent:k}=e,{typefaceProvider:E=(t=>"")}=e,{fetchInit:C={}}=e,{tooltipRoot:A}=e,{customComponents:j}=e,{direction:V="ltr"}=e,{store:D}=e,F=ge("desktop"===f);if(p(t,F,(t=>n(7,i=t))),"auto"===f&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");F.set(!t.matches),t.addListener((()=>{F.set(!t.matches)}))}let S="light",P=null;const N=ge("rtl"===V?"rtl":"ltr");function I(){"system"===g&&P&&n(36,S=P.matches?"dark":"light")}p(t,N,(t=>n(8,a=t)));const O=new Set($);let T=!1,M=!1;d||(M=!0,Y($e(new Error('"id" prop is required'))));const z={stateChange:!1},R=nu(m),B=ru(m),L=new Map,U=new Map,H=new Map;let W,q=null,J=0,G=[];const K=[];function X(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=Zc(e,t,D);if(!o.hasExpression)return e;const i=Bu(U,n);return o.applyVars(i,r)}function Y(t){_?_({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function Z(t,e){w&&w({type:t,action:e})}function Q(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type&&t.type in r;){if(({json:t,templateContext:e}=Bs(t,e,r,Y)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}}let tt=0;function et(t){return"".concat(d,"-").concat(tt++)}let nt={},rt={};async function ot(t,e){const o=t.url?String(t.url):"",i=t.typed;if(!en(t))return;const a=(null==e?void 0:e.logError)||Y;if(o)try{const i=o.replace(/div-action:\/\//,""),s=/([^?]+)\?(.+)/.exec(i);if(!s)return;const l=new URLSearchParams(s[2]);switch(s[1]){case"set_state":await async function(t){if(!t)throw new Error("Missing state id");let e=ft,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],o=n[t+1];let i=e.getChild(r);if(!i)return;await i.setState(o),e=i}}(l.get("state_id"));break;case"set_current_item":case"set_previous_item":case"set_next_item":case"scroll_to_start":case"scroll_to_end":case"scroll_backward":case"scroll_forward":case"scroll_to_position":!function(t,e,n){let{item:r,step:o,overflow:i}=n;var a,s,l,c,u;if(!e)throw new Error('Missing id for "'.concat(t,'" action'));const d=Number(r);if("set_current_item"===t&&Number.isNaN(d))throw new Error('Incorrect item for "'.concat(t,'" action'));let h=Number(o);if(o||"set_previous_item"!==t&&"set_next_item"!==t||(h=1),!o&&("scroll_backward"===t||"scroll_forward"===t||"scroll_to_position"===t)||Number.isNaN(h))throw new Error('Incorrect step value for "'.concat(t,'" action'));if(i&&"clamp"!==i&&"ring"!==i)throw new Error('Incorrect overflow value for "'.concat(t,'" action'));i=i||"clamp";const p=dt(e);if(p)switch(t){case"set_current_item":return void p.setCurrentItem(d);case"set_previous_item":return void p.setPreviousItem(h,i);case"set_next_item":return void p.setNextItem(h,i);case"scroll_to_start":return void(null===(a=p.scrollToStart)||void 0===a||a.call(p));case"scroll_to_end":return void(null===(s=p.scrollToEnd)||void 0===s||s.call(p));case"scroll_backward":return void(null===(l=p.scrollBackward)||void 0===l||l.call(p,h,i));case"scroll_forward":return void(null===(c=p.scrollForward)||void 0===c||c.call(p,h,i));case"scroll_to_position":null===(u=p.scrollToPosition)||void 0===u||u.call(p,h)}}(s[1],l.get("id"),{item:l.get("item"),step:l.get("step"),overflow:l.get("overflow")});break;case"set_variable":const c=l.get("name"),u=l.get("value");if(c&&null!==u){const t=U.get(c);if(t){const e=t.getType();"dict"===e||"array"===e?a($e(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:c}})):t.set(u)}else a($e(new Error("Cannot find variable"),{additional:{name:c}}))}else a($e(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const d=l.get("action"),h=l.get("id");q?q.execTimerAction(h,d):a($e(new Error("Incorrect timer action"),{additional:{id:h,action:d}}));break;case"video":!function(t,e,n){const r=(null==n?void 0:n.logError)||Y;if(t){const n=dt(t);n?"start"===e?n.start():"pause"===e?n.pause():r($e(new Error("Unknown video action"),{additional:{id:t,action:e}})):r($e(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else r($e(new Error("Missing id in video action"),{additional:{action:e}}))}(l.get("id"),l.get("action"),e);break;case"download":!function(t,e,n){const o=(null==n?void 0:n.logError)||Y;if(t){let n;n="function"==typeof C?C(t):C,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,a,s;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=lt.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return o($e(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void it(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_fail_actions)}n.patch.changes.forEach((t=>{const e=lt.get(t.id);e&&e.replaceWith(t.id,t.items)})),it(null===(s=e.download_callbacks)||void 0===s?void 0:s.on_success_actions)}}else o($e(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;o($e(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),it(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else o($e(new Error("Missing url in download action"),{additional:{url:t}}))}(l.get("url"),t,e);break;case"show_tooltip":!function(t,e,r){var o;const i=(null==r?void 0:r.logError)||Y;if(!t)return void i($e(new Error("Missing id in show_tooltip action")));const a=ut.get(t);if(!a)return void i($e(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&G.some((e=>e.desc.id===t)))return;const s={internalId:++J,ownerNode:a.onwerNode,desc:a.tooltip,timeoutId:0};n(3,G=[...G,s]);const l=null!==(o=a.tooltip.duration)&&void 0!==o?o:5e3;l&&(s.timeoutId=window.setTimeout((()=>{s.timeoutId=0,n(3,G=G.filter((t=>t.internalId!==s.internalId)))}),l))}(l.get("id"),l.get("multiple"),e);break;case"hide_tooltip":!function(t,e){const r=(null==e?void 0:e.logError)||Y;t?n(3,G=G.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):r($e(new Error("Missing id in hide_tooltip action")))}(l.get("id"),e);break;case"set_stored_value":!function(t,e,n,r,o){const i=(null==t?void 0:t.logError)||Y;if(!D)return void i($e(new Error("Store is not configured")));let a=n;e&&a&&r&&o?Ru.has(r)?("integer"===r||"number"===r?a=Number(a):"boolean"===r&&(a="true"===a),D.setValue(e,r,a,Number(o))):i($e(new Error("Incorrect stored type"))):i($e(new Error("Missing required params for set_stored_value")))}(e,l.get("name"),l.get("value"),l.get("type"),l.get("lifetime"));break;default:a($e(new Error("Unknown type of action"),{additional:{url:o}}))}}catch(t){a($e(t,{additional:{url:o}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=U.get(t);n?n.getType()===e.type?n.setValue(e.value):a($e(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):a($e(new Error("Cannot find variable"),{additional:{name:t}}))}else a($e(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:o,value:i}=n;!i||"number"!=typeof o&&void 0!==o?e($e(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):cu(t,e,n,(t=>{const a=t.getValue();if("number"==typeof o&&(o<0||o>a.length))e($e(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:a.length}}));else{const e=a.slice();"number"==typeof o?e.splice(o,0,i.value):e.push(i.value),t.setValue(e)}}))}(U,a,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:o}=n;"number"==typeof o?cu(t,e,n,(t=>{const i=t.getValue();if("number"==typeof o&&(o<0||o>=i.length))e($e(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:i.length}}));else{const e=i.slice();e.splice(o,1),t.setValue(e)}})):e($e(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(U,a,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t($e(new Error("Incorrect action"),{additional:{action:e}})):"undefined"!=typeof navigator&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e.content.value).catch((e=>{t($e(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t($e(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(a,i);break;case"focus_element":{const t=i.element_id&&ct.get(i.element_id);t?t.focus():a($e(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}case"clear_focus":try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch(t){}break;default:a($e(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function it(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!Array.isArray(t))return;const r=t.filter(en);for(let t=0;t<r.length;++t){let o=r[t];const i=o.url,a=o.typed;if(i){const t=Ie(i);if(t)if(Oe(t,O)){if(e.processUrls)if("_blank"===o.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(await ot(o,e.componentContext),await It()):o.log_id&&(at(o),await It())}else a?await ot(o,e.componentContext):e.node&&Array.isArray(o.menu_items)&&o.menu_items.length&&n(4,W={items:o.menu_items,node:e.node})}r.forEach((t=>{t.log_id&&Z("click",t)}))}function at(t){null==x||x(t)}const st=new Map,lt=new Map,ct=new Map,ut=new Map;function dt(t){if(st.has(t))return st.get(t);Y($e(new Error("Missing instance with id"),{additional:{id:t}}))}const ht=new Map;function pt(t){const e=H.get(t)||ge(void 0);return H.has(t)||H.set(t,e),e}Et(ye,{logStat:Z,hasTemplate:function(t){return t in r},processTemplate:Q,genId:et,genClass:function(t){return"divkit-".concat(et())},execAction:ot,execCustomAction:at,isRunning:function(t){return z[t]},setRunning:function(t,e){z[t]=e},registerInstance:function(t,e){st.has(t)?Y($e(new Error("Duplicate instance id"),{additional:{id:t}})):st.set(t,e)},unregisterInstance:function(t){st.delete(t)},registerParentOf:function(t,e){lt.set(t,e)},unregisterParentOf:function(t){lt.delete(t)},registerTooltip:function(t,e){const n=e.id;n&&(ut.has(n)&&Y($e(new Error("Duplicate tooltip id"),{additional:{id:n}})),ut.set(n,{onwerNode:t,tooltip:e}))},unregisterTooltip:function(t){const e=t.id;e&&(ut.delete(e),G.some((t=>t.desc.id===e))&&n(3,G=G.filter((t=>t.desc.id!==e))))},onTooltipClose:function(t){n(3,G=G.filter((e=>e.internalId!==t)))},tooltipRoot:A,registerFocusable:function(t,e){ct.set(t,e)},unregisterFocusable:function(t){ct.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(rt[r]=rt[r]||0,++rt[r],nt[r])return nt[r];const o="".concat(et(),"-svg-filter");return n(5,nt=Object.assign(Object.assign({},nt),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);rt[r]&&0==--rt[r]&&n(5,nt=Object.keys(nt).reduce(((t,e)=>(rt[e]&&(t[e]=nt[e]),t)),{}))},preparePrototypeVariables:function(t,e){const n=new Map,r=function(t,e,n){if(!(e in ca))throw new Error("Unsupported variable type");return new ca[e](t,n)}(t,"dict",e);return n.set(t,r),n},getStore:function(t){return ht.has(t)||function(t){ht.has(t)||ht.set(t,Qc[t]())}(t),ht.get(t)},getCustomization:function(t){return null==y?void 0:y[t]},getBuiltinProtocols:function(){return O},getExtension:function(t,e){const n=b.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:U,logError:Y}},registerTimeout:function(t){K.push(t)},typefaceProvider:E,isDesktop:F,isPointerFocus:Ou,customComponents:j,direction:N,componentDevtool:void 0}),Et(an,{hasAction:()=>!1});const ft={setState(t){throw new Error("Not implemented")},getChild(t){if(gt&>.has(t))return gt.get(t);Y($e(new Error("Missing state block with id"),{additional:{id:t}}))}};let gt=null;function mt(t){if(t.type in oa){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&Y($e(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=ia(t.name,t.type,t.value);L.set(t.name,e),U.set(t.name,e)}catch(e){Y($e(e,{additional:{name:t.name}}))}}}Et(Le,{registerInstance(t,e){gt||(gt=new Map),gt.has(t)?Y($e(new Error("Duplicate state with id"),{additional:{id:t}})):gt.set(t,e)},unregisterInstance(t){null==gt||gt.delete(t)},runVisibilityTransition:(t,e,n,r,o)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const vt=null===(s=null==h?void 0:h.card)||void 0===s?void 0:s.variables;Array.isArray(vt)&&vt.forEach((t=>{if(t&&t.name){if(L.has(t.name))return void Y($e(new Error("Duplicate variable"),{additional:{name:t.name}}));mt(t)}}));const yt=h.palette;yt&&yt[S].forEach((t=>{if(L.has(t.name))Y($e(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=ia(t.name,"color",t.color);L.set(t.name,e),U.set(t.name,e)}catch(e){Y($e(e,{additional:{name:t.name}}))}}));for(const[t,e]of B)U.has(t)||U.set(t,e);R.subscribe((t=>{if(t&&!U.has(t)){const e=B.get(t);U.set(t,e);const n=H.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const $t=null===(c=null==h?void 0:h.card)||void 0===c?void 0:c.timers;if($t&&"undefined"!=typeof document){const t=q=new lu({logError:Y,applyVars:t=>X(Y,t),hasVariableWithType:function(t,e){const n=U.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=U.get(t);n?n.setValue(e):Y($e(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:it});$t.forEach((e=>t.createTimer(e)))}const bt=function t(e){const n={json:{},path:[],templateContext:{},logError(t){t.additional=t.additional||{},t.additional.path=n.path.join("/"),Y(t)},execAnyActions(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return it(t,{componentContext:n,processUrls:e.processUrls,node:e.node})},getDerivedFromVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return Us(e);const o=Bu(U,n),i=Zc(e,t,D);return i.vars.length?me(i.vars.map((t=>o.get(t)||pt(t))).filter(Ve),(()=>i.applyVars(o,r))):i.hasExpression?Us(i.applyVars(o)):Us(e)}(n.logError,t,Bu(n.variables,e),r)},getJsonWithVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return X(n.logError,t,Bu(n.variables,e),r)},produceChildContext(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t(n);let i=e,a=n.templateContext;const{templateContext:s,json:l}=Q(i,a);return o.json=l,o.templateContext=s,o.origJson=e,void 0!==r.path&&o.path.push(String(r.path)),e.type&&!r.isRootState&&o.path.push(e.type),o.variables=Bu(n.variables,r.variables),r.fake&&(o.fakeElement=!0),r.isRootState&&(o.isRootState=!0),o},getVariable(t,e){const r=(n.variables||U).get(t);if(r){const o=r.getType();if(o!==e)return void n.logError($e(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:o}}))}return r}};return e?(n.parent=e,n.path=e.path.slice(),e.fakeElement&&(n.fakeElement=!0)):(n.json={type:"root"},n.isRootState=!0),n}();let _t;return wt((()=>{Tu++,1===Tu&&(window.addEventListener("keydown",Mu),window.addEventListener("pointerdown",zu)),(()=>{var t;const e=null===(t=null==h?void 0:h.card)||void 0===t?void 0:t.variable_triggers;Array.isArray(e)&&e.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void Y($e(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=Ys(t.condition,{startRule:"JsonStringContents"}),o=vl(r);if(!o.length)return void Y($e(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));me(o.map((t=>U.get(t)||pt(t))),(()=>{const t=Gc(U,D,r);return t.warnings.forEach(Y),t.result})).subscribe((async r=>{if("error"!==r.type){if(r.value&&("on_variable"===n||"on_condition"===n&&!1===e))for(const e of t.actions){const t=X(Y,e);t.log_id&&await ot(t)}e=Boolean(r.value)}else Y($e(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}catch(e){Y($e(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else Y($e(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}))})()})),kt((()=>{Tu--,Tu||(window.removeEventListener("keydown",Mu),window.removeEventListener("pointerdown",zu)),q&&q.destroy(),G.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)})),K.forEach((t=>{clearTimeout(t)}))})),t.$$set=t=>{"id"in t&&n(13,d=t.id),"json"in t&&n(11,h=t.json),"platform"in t&&n(14,f=t.platform),"theme"in t&&n(12,g=t.theme),"globalVariablesController"in t&&n(15,m=t.globalVariablesController),"mix"in t&&n(0,v=t.mix),"customization"in t&&n(16,y=t.customization),"builtinProtocols"in t&&n(17,$=t.builtinProtocols),"extensions"in t&&n(18,b=t.extensions),"onError"in t&&n(19,_=t.onError),"onStat"in t&&n(20,w=t.onStat),"onCustomAction"in t&&n(21,x=t.onCustomAction),"onComponent"in t&&n(22,k=t.onComponent),"typefaceProvider"in t&&n(23,E=t.typefaceProvider),"fetchInit"in t&&n(24,C=t.fetchInit),"tooltipRoot"in t&&n(25,A=t.tooltipRoot),"customComponents"in t&&n(26,j=t.customComponents),"direction"in t&&n(27,V=t.direction),"store"in t&&n(28,D=t.store)},t.$$.update=()=>{if(4096&t.$$.dirty[0]|64&t.$$.dirty[1]&&("light"===g||"dark"===g?n(36,S=g):"system"===g?"undefined"!=typeof matchMedia?(P||(n(37,P=matchMedia("(prefers-color-scheme: dark)")),P.addListener(I)),n(36,S=P.matches?"dark":"light")):n(36,S="light"):Y($e(new Error("Unsupported theme")))),32&t.$$.dirty[1]&&S&&(yt&&yt[S].forEach((t=>{const e=U.get(t.name);e&&e.setValue(t.color)}))),2048&t.$$.dirty[0]){n(1,T=!1);const t=function(t){if(!t)return $e(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return $e(new Error("Missing card"));if(!e.states||!e.states.length)return $e(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Cs)return $e(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return $e(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return $e(new Error("Missing state_id"),{additional:{index:t}})}return null}(h);t&&(n(1,T=!0),Y(t))}if(2048&t.$$.dirty[0]&&(r=h.templates||{}),2048&t.$$.dirty[0]|8&t.$$.dirty[1]&&(null===n(34,l=null==h?void 0:h.card)||void 0===l?void 0:l.variables)&&Array.isArray(h.card.variables)&&h.card.variables!==vt&&h.card.variables.forEach((t=>{t&&t.name&&!L.has(t.name)&&mt(t)})),2048&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(38,o=null===n(35,u=null==h?void 0:h.card)||void 0===u?void 0:u.states),6&t.$$.dirty[0]|128&t.$$.dirty[1]&&o&&!T&&!M){const t={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:o.map((t=>({state_id:t.state_id.toString(),div:t.div})))};n(6,_t=bt.produceChildContext(t,{isRootState:!0}))}},[v,T,M,G,W,nt,_t,i,a,F,N,h,g,d,f,m,y,$,b,_,w,x,k,E,C,A,j,V,D,function(t){n(12,g=t)},function(){return new Map},function(){return new Map},function(t){n(11,h=t)},function(t){ot(X(Y,t))},l,u,S,P,o,()=>n(4,W=void 0)]}const Hu=class extends pe{constructor(t){super(),de(this,t,Uu,Iu,d,{id:13,json:11,platform:14,theme:12,globalVariablesController:15,mix:0,customization:16,builtinProtocols:17,extensions:18,onError:19,onStat:20,onCustomAction:21,onComponent:22,typefaceProvider:23,fetchInit:24,tooltipRoot:25,customComponents:26,direction:27,store:28,setTheme:29,getDebugVariables:30,getDebugAllVariables:31,setData:32,execAction:33},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[29]}get getDebugVariables(){return this.$$.ctx[30]}get getDebugAllVariables(){return this.$$.ctx[31]}get setData(){return this.$$.ctx[32]}get execAction(){return this.$$.ctx[33]}};class Wu{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 It()}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 qu(t){return t instanceof HTMLElement}function Ju(t){return class{constructor(t){this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(qu);r.forEach((t=>{t.style.display="none"})),e.setAttribute("data-lottie","true");const o=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),a=()=>{var t,o;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(o=this.wrapper.parentNode)||void 0===o||o.removeChild(this.wrapper),this.wrapper=void 0);const i=new Error("Failed to load lottie animation");i.level="error",i.additional={url:this.params.lottie_url},n.logError(i)};this.loadData().then((e=>{const n=this.animItem=t({container:o,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const Gu=["target","hydrate"];function Ku(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Gu),o=new Hu({target:e,props:r,hydrate:n});return{$destroy(){o.$destroy()},execAction(t){o.execAction(t)},setTheme(t){o.setTheme(t)},setData(t){o.setData(t)}}}var Xu=e.$5,Yu=e.XQ,Zu=e.rz,Qu=e.U2,td=e.XX;export{Xu as SizeProvider,Yu as createGlobalVariablesController,Zu as createVariable,Qu as lottieExtensionBuilder,td as render};
|
|
1
|
+
var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};function n(){}t.d(e,{$5:()=>Wu,XQ:()=>iu,rz:()=>ia,U2:()=>Ju,XX:()=>Ku});const r=t=>t;function o(t,e){for(const n in e)t[n]=e[n];return t}function i(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(i)}function l(t){return"function"==typeof t}let c;function u(t,e){return t===e||(c||(c=document.createElement("a")),c.href=e,t===c.href)}function d(t,e){return t!=t?e==e:t!==e}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(null==t){for(const t of r)t(void 0);return n}const i=t.subscribe(...r);return i.unsubscribe?()=>i.unsubscribe():i}function p(t,e,n){t.$$.on_destroy.push(h(e,n))}function f(t,e,n,r){if(t){const o=g(t,e,n,r);return t[0](o)}}function g(t,e,n,r){return t[1]&&r?o(n.ctx.slice(),t[1](r(e))):n.ctx}function m(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function v(t,e,n,r,o,i){if(o){const a=g(e,n,r,i);t.p(a,o)}}function y(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function $(t,e,n){return t.set(n),e}function b(t){return t&&l(t.destroy)?t.destroy:n}function _(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const w="undefined"!=typeof window;let x=w?()=>window.performance.now():()=>Date.now(),k=w?t=>requestAnimationFrame(t):n;const E=new Set;function C(t){E.forEach((e=>{e.c(t)||(E.delete(e),e.f())})),0!==E.size&&k(C)}function A(t){let e;return 0===E.size&&k(C),{promise:new Promise((n=>{E.add(e={c:t,f:n})})),abort(){E.delete(e)}}}const j="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function V(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class D{constructor(t){V(this,"_listeners","WeakMap"in j?new WeakMap:void 0),V(this,"_observer",void 0),V(this,"options",void 0),this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return null!==(t=this._observer)&&void 0!==t?t:this._observer=new ResizeObserver((t=>{for(const n of t){var e;D.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}function F(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}D.entries="WeakMap"in j?new WeakMap:void 0;let S=!1;function P(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function N(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function I(t){const e=B("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(N(t),e),e.sheet}function O(t,e){if(S){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 o=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,a=(o>0&&e[n[o]].claim_order<=i?o+1:P(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const s=a+1;n[s]=t,o=Math.max(s,o)}const i=[],a=[];let s=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const r=n<i.length?i[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 T(t,e,n){t.insertBefore(e,n||null)}function M(t,e,n){S&&!n?O(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function z(t){t.parentNode&&t.parentNode.removeChild(t)}function R(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function B(t){return document.createElement(t)}function L(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function U(t){return document.createTextNode(t)}function H(){return U(" ")}function W(){return U("")}function q(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function J(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const G=["width","height"];function K(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set&&-1===G.indexOf(r)?t[r]=e[r]:J(t,r,e[r])}function X(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:J(t,e,n)}(t,n,e[n])}))}function Y(t){return/-/.test(t)?X:K}function Z(t){return Array.from(t.childNodes)}function Q(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function tt(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Q(t);const i=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),i}}for(let r=t.claim_info.last_index-1;r>=0;r--){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,i}}return r()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function et(t,e,n,r){return tt(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function nt(t,e,n){return et(t,e,n,B)}function rt(t,e,n){return et(t,e,n,L)}function ot(t,e){return tt(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}),(()=>U(e)),!0)}function it(t){return ot(t," ")}function at(t,e,n){for(let r=n;r<t.length;r+=1){const n=t[r];if(8===n.nodeType&&n.textContent.trim()===e)return r}return-1}function st(t,e){e=""+e,t.data!==e&&(t.data=e)}function lt(t,e){t.value=null==e?"":e}function ct(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function ut(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 dt(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}class ht{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];F(this,"is_svg",!1),F(this,"e",void 0),F(this,"n",void 0),F(this,"t",void 0),F(this,"a",void 0),this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.is_svg?this.e=L(e.nodeName):this.e=B(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)T(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(z)}}class pt extends ht{constructor(){let t=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),F(this,"l",void 0),this.e=this.n=null,this.l=t}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let e=0;e<this.n.length;e+=1)M(this.t,this.n[e],t)}}function ft(t,e){return new t(e)}const gt=new Map;let mt,vt=0;function yt(t,e,n,r,o,i,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*i(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const u=c+"100% {".concat(a(n,1-n),"}\n}"),d="__svelte_".concat(function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u),"_").concat(s),h=N(t),{stylesheet:p,rules:f}=gt.get(h)||function(t,e){const n={stylesheet:I(e),rules:{}};return gt.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule("@keyframes ".concat(d," ").concat(u),p.cssRules.length));const g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(d," ").concat(r,"ms linear ").concat(o,"ms 1 both"),vt+=1,d}function $t(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),vt-=o,vt||k((()=>{vt||(gt.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&z(e)})),gt.clear())})))}function bt(t){mt=t}function _t(){if(!mt)throw new Error("Function called outside component initialization");return mt}function wt(t){_t().$$.on_mount.push(t)}function xt(t){_t().$$.after_update.push(t)}function kt(t){_t().$$.on_destroy.push(t)}function Et(t,e){return _t().$$.context.set(t,e),e}function Ct(t){return _t().$$.context.get(t)}function At(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const jt=[],Vt=[];let Dt=[];const Ft=[],St=Promise.resolve();let Pt=!1;function Nt(){Pt||(Pt=!0,St.then(Rt))}function It(){return Nt(),St}function Ot(t){Dt.push(t)}const Tt=new Set;let Mt,zt=0;function Rt(){if(0!==zt)return;const t=mt;do{try{for(;zt<jt.length;){const t=jt[zt];zt++,bt(t),Bt(t.$$)}}catch(t){throw jt.length=0,zt=0,t}for(bt(null),jt.length=0,zt=0;Vt.length;)Vt.pop()();for(let t=0;t<Dt.length;t+=1){const e=Dt[t];Tt.has(e)||(Tt.add(e),e())}Dt.length=0}while(jt.length);for(;Ft.length;)Ft.pop()();Pt=!1,Tt.clear(),bt(t)}function Bt(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ot)}}function Lt(){return Mt||(Mt=Promise.resolve(),Mt.then((()=>{Mt=null}))),Mt}function Ut(t,e,n){t.dispatchEvent(dt("".concat(e?"intro":"outro").concat(n)))}const Ht=new Set;let Wt;function qt(){Wt={r:0,c:[],p:Wt}}function Jt(){Wt.r||s(Wt.c),Wt=Wt.p}function Gt(t,e){t&&t.i&&(Ht.delete(t),t.i(e))}function Kt(t,e,n,r){if(t&&t.o){if(Ht.has(t))return;Ht.add(t),Wt.c.push((()=>{Ht.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Xt={duration:0};function Yt(t,e,o){const i={direction:"in"};let a,s,c=e(t,o,i),u=!1,d=0;function h(){a&&$t(t,a)}function p(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:p}=c||Xt;p&&(a=yt(t,0,1,o,e,i,p,d++)),l(0,1);const f=x()+e,g=f+o;s&&s.abort(),u=!0,Ot((()=>Ut(t,!0,"start"))),s=A((e=>{if(u){if(e>=g)return l(1,0),Ut(t,!0,"end"),h(),u=!1;if(e>=f){const t=i((e-f)/o);l(t,1-t)}}return u}))}let f=!1;return{start(){f||(f=!0,$t(t),l(c)?(c=c(i),Lt().then(p)):p())},invalidate(){f=!1},end(){u&&(h(),u=!1)}}}function Zt(t,e,o,i){let a,c=e(t,o,{direction:"both"}),u=i?0:1,d=null,h=null,p=null;function f(){p&&$t(t,p)}function g(t,e){const n=t.b-u;return e*=Math.abs(n),{a:u,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function m(e){const{delay:o=0,duration:i=300,easing:l=r,tick:m=n,css:v}=c||Xt,y={start:x()+o,b:e};e||(y.group=Wt,Wt.r+=1),"inert"in t&&(e?void 0!==a&&(t.inert=a):(a=t.inert,t.inert=!0)),d||h?h=y:(v&&(f(),p=yt(t,u,e,i,o,l,v)),e&&m(0,1),d=g(y,i),Ot((()=>Ut(t,e,"start"))),A((e=>{if(h&&e>h.start&&(d=g(h,i),h=null,Ut(t,d.b,"start"),v&&(f(),p=yt(t,u,d.b,d.duration,0,l,c.css))),d)if(e>=d.end)m(u=d.b,1-u),Ut(t,d.b,"end"),h||(d.b?f():--d.group.r||s(d.group.c)),d=null;else if(e>=d.start){const t=e-d.start;u=d.a+d.d*l(t/d.duration),m(u,1-u)}return!(!d&&!h)})))}return{run(t){l(c)?Lt().then((()=>{c=c({direction:t?"in":"out"}),m(t)})):m(t)},end(){f(),d=h=null}}}function Qt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function te(t,e){Kt(t,1,1,(()=>{e.delete(t.key)}))}function ee(t,e,n,r,o,i,a,l,c,u,d,h){let p=t.length,f=i.length,g=p;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,b=[];for(g=f;g--;){const t=h(o,i,g),s=n(t);let l=a.get(s);l?r&&b.push((()=>l.p(t,e))):(l=u(s,t),l.c()),y.set(s,v[g]=l),s in m&&$.set(s,Math.abs(g-m[s]))}const _=new Set,w=new Set;function x(t){Gt(t,1),t.m(l,d),a.set(t.key,t),d=t.first,f--}for(;p&&f;){const e=v[f-1],n=t[p-1],r=e.key,o=n.key;e===n?(d=e.first,p--,f--):y.has(o)?!a.has(r)||_.has(r)?x(e):w.has(o)?p--:$.get(r)>$.get(o)?(w.add(r),x(e)):(_.add(o),p--):(c(n,a),p--)}for(;p--;){const e=t[p];y.has(e.key)||c(e,a)}for(;f;)x(v[f-1]);return s(b),v}function ne(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],s=e[i];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)o[t]||(n[t]=s[t],o[t]=1);t[i]=s}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let re;function oe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oe(Object(n),!0).forEach((function(e){ae(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ae(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 se(t){t&&t.c()}function le(t,e){t&&t.l(e)}function ce(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),Ot((()=>{const e=t.$$.on_mount.map(i).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),o.forEach(Ot)}function ue(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];Dt.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),Dt=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function de(t,e,r,o,i,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=mt;bt(t);const h=t.$$={fragment:null,ctx:[],props:l,update:n,not_equal:i,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:a(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};c&&c(h.root);let p=!1;if(h.ctx=r?r(t,e.props||{},(function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return h.ctx&&i(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),p&&function(t,e){-1===t.$$.dirty[0]&&(jt.push(t),Nt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,s(h.before_update),h.fragment=!!o&&o(h.ctx),e.target){if(e.hydrate){S=!0;const t=Z(e.target);h.fragment&&h.fragment.l(t),t.forEach(z)}else h.fragment&&h.fragment.c();e.intro&&Gt(t.$$.fragment),ce(t,e.target,e.anchor),S=!1,Rt()}bt(d)}function he(t,e,n,r){var o;const i=null===(o=n[t])||void 0===o?void 0:o.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(re=class extends HTMLElement{constructor(t,e,n){super(),ae(this,"$$ctor",void 0),ae(this,"$$s",void 0),ae(this,"$$c",void 0),ae(this,"$$cn",!1),ae(this,"$$d",{}),ae(this,"$$r",!1),ae(this,"$$p_d",{}),ae(this,"$$l",{}),ae(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function t(t){return()=>{let e;return{c:function(){e=B("slot"),"default"!==t&&J(e,"name",t)},m:function(t,n){T(t,e,n)},d:function(t){t&&z(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=he(a,i.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ie(ie({},this.$$d),{},{$$slots:e,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=he(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const c=this.$$c.$on(s,l);this.$$l_u.set(l,c)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=he(t,n,this.$$p_d,"toProp"),null===(r=this.$$c)||void 0===r||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class pe{constructor(){ae(this,"$$",void 0),ae(this,"$$set",void 0)}$destroy(){ue(this,1),this.$destroy=n}$on(t,e){if(!l(e))return n;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const fe=[];function ge(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const o=new Set;function i(n){if(i=n,((r=t)!=r?i==i:r!==i||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!fe.length;for(const e of o)e[1](),fe.push(e,t);if(e){for(let t=0;t<fe.length;t+=2)fe[t][0](fe[t+1]);fe.length=0}}var r,i}function a(e){i(e(t))}return{set:i,update:a,subscribe:function(s){const l=[s,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return o.add(l),1===o.size&&(e=r(i,a)||n),s(t),()=>{o.delete(l),0===o.size&&e&&(e(),e=null)}}}}function me(t,e,r){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return c=(t,r)=>{let c=!1;const u=[];let d=0,p=n;const f=()=>{if(d)return;p();const i=e(o?u[0]:u,t,r);a?t(i):p=l(i)?i:n},g=i.map(((t,e)=>h(t,(t=>{u[e]=t,d&=~(1<<e),c&&f()}),(()=>{d|=1<<e}))));return c=!0,f(),function(){s(g),p(),c=!1}},{subscribe:ge(r,c).subscribe};var c}const ve={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"},ye=Symbol("root");function $e(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 be={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_start:"divkit-e70de",text_halign_center:"divkit-e1659",text_halign_end:"divkit-e48b4",text_valign_start:"divkit-b7b70",text_valign_center:"divkit-ef58e",text_valign_end:"divkit-d4206",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},_e={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980","outer_has-custom-focus":"divkit-c7f14"};function we(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 xe(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return Number.isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function ke(t){let e=xe(t);return"0"===e&&(e+="em"),e}function Ee(t,e){for(;t.length<e;)t="0"+t;return t}function Ce(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=Ae(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 Ae(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(5===e.length){const[t,n,r,o,i]=e,a=2===r.length?r:r+r,s=2===o.length?o:o+o,l=2===i.length?i:i+i,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(s,16),b:parseInt(l,16)}}const[t,n,r,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function je(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&")),e.indexOf("<")>-1&&(e=e.replace(/</g,"<")),e.indexOf(">")>-1&&(e=e.replace(/>/g,">")),e.indexOf('"')>-1&&(e=e.replace(/"/g,""")),e}const Ve=Boolean;function De(t){if(1===t.length&&"solid"===t[0].type)return{color:Ce(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=Ce(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(Ve);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>Ce(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:Pe(t.bg.scale),pos:Ne(t.bg),image:'url("'+je(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(Ve);if(!n.length)return;const r=t.bg.radius;let o;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?o=ke(r.value):"relative"===r.type&&(o=Fe[r.value]));const i=Se(t.bg.center_x),a=Se(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(o||"farthest-corner"," at ").concat(i," ").concat(a)+","+n.map((t=>Ce(t))).join(",")+")"}}({bg:t}):void 0)).filter(Ve).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 Fe={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 ke(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function Pe(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function Ne(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 Ie(t){if(t.startsWith("tel:"))return"tel";const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Oe(t,e){return e.has(t)}function Te(t,e){const n=Number(t);return Number.isNaN(n)||n<0?e:n}function Me(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function ze(t){return 0!==t.is_enabled&&!1!==t.is_enabled&&void 0!==t.index}function Re(t,e){e&&t.push(e)}function Be(t,e,n){const r=[];Re(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Re(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const Le=Symbol("state");function Ue(t,e){var n,r;const o=t.top||0,i=(null!==(n="ltr"===e?t.end:t.start)&&void 0!==n?n:t.right)||0,a=t.bottom||0,s=(null!==(r="ltr"===e?t.start:t.end)&&void 0!==r?r:t.left)||0;return 0===o&&0===i&&0===a&&0===s?"":xe(o)+" "+xe(i)+" "+xe(a)+" "+xe(s)}function He(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!Number.isNaN(e)}function We(t){return He(t)&&t>=0}function qe(t,e,n){var r,o;if(!t)return n;const i=[t.top,null!==(r="ltr"===e?t.end:t.start)&&void 0!==r?r:t.right,t.bottom,null!==(o="ltr"===e?t.start:t.end)&&void 0!==o?o:t.left];for(let t=0;t<i.length;++t)if(i[t]&&!We(i[t]))return n;return Ue(t,e)}const Je=Object.prototype.hasOwnProperty;function Ge(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!Je.call(e,o)||!Ge(t[o],e[o]))return!1}return!0}function Ke(t,e){return Ge(t,e)?e:t}function Xe(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Ye(t,e){const n=Number(t);return Number.isNaN(n)?e:n}function Ze(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Ze(t))})):e.push(t),e}function Qe(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 tn(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=>xe((t||e)/n*10))).join(" ")}function en(t){return 0!==t.is_enabled&&!1!==t.is_enabled}let nn;function rn(){return"undefined"!=typeof matchMedia&&(nn||(nn=window.matchMedia("(prefers-reduced-motion)")),nn.matches)}function on(){}const an=Symbol("action");function sn(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function ln(t){var e;let n,r,i,a,l,c,u,d;const h=t[18].default,p=f(h,t,t[17],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?ve.root__clickable:ve["root__clickable-no-transition"]," ").concat(ve.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ve["root_disabled-context-menu"]:"")},{style:t[2]},{role:i=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=o($,g[t]);return{c(){n=B("span"),p&&p.c(),this.h()},l(t){n=nt(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=Z(n);p&&p.l(e),e.forEach(z),this.h()},h(){K(n,$)},m(e,r){M(e,n,r),p&&p.m(n,null),t[26](n),c=!0,u||(d=[b(l=t[4].call(null,n)),q(n,"click",t[22]),q(n,"keydown",t[10]),q(n,"focus",t[23]),q(n,"blur",t[24])],u=!0)},p(t,e){var o;p&&p.p&&(!c||131072&e[0])&&v(p,h,t,t[17],c?m(h,t[17],e,null):y(t[17]),null),K(n,$=ne(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?ve.root__clickable:ve["root__clickable-no-transition"]," ").concat(ve.root__unselectable):"")+" "+(null!==(o=t[0])&&void 0!==o&&o.length?ve["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&i!==(i=t[8]?"button":null))&&{role:i},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(Gt(p,t),c=!0)},o(t){Kt(p,t),c=!1},d(e){e&&z(n),p&&p.d(e),t[26](null),u=!1,s(d)}}}function cn(t){var e;let n,r,i,a,l,c;const u=t[18].default,d=f(u,t,t[17],null);let h=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?ve.root__clickable:ve["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?ve["root_disabled-context-menu"]:"")},t[3]],p={};for(let t=0;t<h.length;t+=1)p=o(p,h[t]);return{c(){n=B("a"),d&&d.c(),this.h()},l(t){n=nt(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=Z(n);d&&d.l(e),e.forEach(z),this.h()},h(){K(n,p)},m(e,r){M(e,n,r),d&&d.m(n,null),t[25](n),a=!0,l||(c=[b(i=t[4].call(null,n)),q(n,"click",t[19]),q(n,"keydown",t[10]),q(n,"focus",t[20]),q(n,"blur",t[21])],l=!0)},p(t,e){var o;d&&d.p&&(!a||131072&e[0])&&v(d,u,t,t[17],a?m(u,t[17],e,null):y(t[17]),null),K(n,p=ne(h,[(!a||128&e[0])&&{href:t[7]},(!a||512&e[0])&&{target:t[9]},(!a||4&e[0])&&{style:t[2]},(!a||35&e[0]&&r!==(r=t[1]+" "+(t[5]?ve.root__clickable:ve["root__clickable-no-transition"])+" "+(null!==(o=t[0])&&void 0!==o&&o.length?ve["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Gt(d,t),a=!0)},o(t){Kt(d,t),a=!1},d(e){e&&z(n),d&&d.d(e),t[25](null),l=!1,s(c)}}}function un(t){let e,n,r,o;const i=[cn,ln],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=i[e](t),{c(){n.c(),r=W()},l(t){n.l(t),r=W()},m(t,n){a[e].m(t,n),M(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?a[e].p(t,o):(qt(),Kt(a[l],1,1,(()=>{a[l]=null})),Jt(),n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Gt(n,1),n.m(r.parentNode,r))},i(t){o||(Gt(n),o=!0)},o(t){Kt(n),o=!1},d(t){t&&z(r),a[e].d(t)}}}function dn(t,e,n){let{$$slots:r={},$$scope:o}=e,{componentContext:i}=e,{id:a=""}=e,{actions:s}=e,{doubleTapActions:l}=e,{longTapActions:c}=e,{cls:u=""}=e,{style:d=null}=e,{attrs:h}=e,{use:p=on}=e,{customAction:f=null}=e,{isNativeActionAnimation:g=!0}=e,{hasInnerFocusable:m=!1}=e;const v=Ct(ye),y=Ct(an);let $;Et(an,{hasAction:()=>Boolean(y.hasAction()||(null==s?void 0:s.length))});let b,_,w="",x=-1,k=null,E=!1,C=!1;async function A(t){y.hasAction()||void 0!==t.button&&0!==t.button||(x>0&&Date.now()>x+400||!1===(null==f?void 0:f(t))?t.preventDefault():s&&(s.some((t=>{if(null==t?void 0:t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=Ie(e);return n&&!Oe(n,v.getBuiltinProtocols())}))&&t.preventDefault(),i.execAnyActions(s,{node:$})))}function j(t){y.hasAction()||void 0!==t.button&&0!==t.button||i.execAnyActions(l,{processUrls:!0,node:$})}function V(t){t.touches.length>1||(k=sn(t),E=!1,x=Date.now(),clearTimeout(_))}function D(t){if(!k)return;const e=sn(t);(Math.abs(k.x-e.x)>8||Math.abs(k.y-e.y)>8)&&(E=!0)}function F(t){!k||x<0||(!E&&Date.now()-x>=400&&(t.stopPropagation(),i.execAnyActions(c,{processUrls:!0,node:$})),clearTimeout(_),_=window.setTimeout((()=>{k=null,x=-1}),100))}return wt((()=>{a&&!m&&v.registerFocusable(a,{focus(){$&&(w||C)&&$.focus()}})})),kt((()=>{a&&!m&&v.unregisterFocusable(a),clearTimeout(_)})),t.$$set=t=>{"componentContext"in t&&n(11,i=t.componentContext),"id"in t&&n(12,a=t.id),"actions"in t&&n(13,s=t.actions),"doubleTapActions"in t&&n(14,l=t.doubleTapActions),"longTapActions"in t&&n(0,c=t.longTapActions),"cls"in t&&n(1,u=t.cls),"style"in t&&n(2,d=t.style),"attrs"in t&&n(3,h=t.attrs),"use"in t&&n(4,p=t.use),"customAction"in t&&n(15,f=t.customAction),"isNativeActionAnimation"in t&&n(5,g=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(16,m=t.hasInnerFocusable),"$$scope"in t&&n(17,o=t.$$scope)},t.$$.update=()=>{if(43136&t.$$.dirty[0]){if(Array.isArray(s)&&(null==s?void 0:s.length))for(let t=0;t<s.length;++t){const e=s[t].url;if(e){n(7,w=e),n(9,b=s[t].target||void 0);break}}Array.isArray(s)&&(null==s?void 0:s.length)&&y.hasAction()&&(n(7,w=""),i.logError($e(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:s}}))),n(8,C=Boolean(f)),w&&!Oe(Ie(w),v.getBuiltinProtocols())?(n(7,w=""),n(8,C=!0)):!w&&Array.isArray(s)&&(null==s?void 0:s.length)&&(n(8,C=!0),s.some((t=>t.url||t.typed||t.menu_items))||i.logError($e(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:s}})))}16833&t.$$.dirty[0]&&$&&(w||C?$.addEventListener("click",A):$.removeEventListener("click",A),(null==l?void 0:l.length)?$.addEventListener("dblclick",j):$.removeEventListener("dblclick",j),(null==c?void 0:c.length)?($.addEventListener("touchstart",V,{passive:!0}),$.addEventListener("touchmove",D,{passive:!0}),$.addEventListener("touchend",F,{passive:!0}),$.addEventListener("touchcancel",F,{passive:!0})):($.removeEventListener("touchstart",V),$.removeEventListener("touchmove",D),$.removeEventListener("touchend",F),$.removeEventListener("touchcancel",F)))},[c,u,d,h,p,g,$,w,C,b,function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(s)&&s.length&&(i.execAnyActions(s),t.preventDefault())},i,a,s,l,f,m,o,r,function(e){At.call(this,t,e)},function(e){At.call(this,t,e)},function(e){At.call(this,t,e)},function(e){At.call(this,t,e)},function(e){At.call(this,t,e)},function(e){At.call(this,t,e)},function(t){Vt[t?"unshift":"push"]((()=>{$=t,n(6,$)}))},function(t){Vt[t?"unshift":"push"]((()=>{$=t,n(6,$)}))}]}const hn=class extends pe{constructor(t){super(),de(this,t,dn,un,d,{componentContext:11,id:12,actions:13,doubleTapActions:14,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:15,isNativeActionAnimation:5,hasInnerFocusable:16},null,[-1,-1])}},pn={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function fn(t){return He(t)&&t>0}function gn(t,e){return t.map((t=>{if(t)if("blur"===t.type){if(fn(t.radius))return"blur(".concat(ke(t.radius/2),")")}else{if("rtl_mirror"===t.type)return;e($e(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}else e($e(new Error("Incorrect filter"),{level:"warn"}))})).filter(Boolean).join(" ")}function mn(t,e,n){const r=t.slice();return r[6]=e[n],r}function vn(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=nt(t,"SPAN",{class:!0,style:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=pn["outer-background__item"]),J(e,"style",r=we(t[6].style))},m(t,n){M(t,e,n)},p(t,n){2&n&&r!==(r=we(t[6].style))&&J(e,"style",r)},d(t){t&&z(e)}}}function yn(t){let e,n,r,o,i,a;return{c(){e=B("img"),this.h()},l(t){e=nt(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[6].image_url)||J(e,"src",n),J(e,"alt",""),J(e,"aria-hidden","true"),J(e,"loading","lazy"),J(e,"decoding","async"),J(e,"class",r=pn["outer-background__item"]),J(e,"style",o=we(t[6].style))},m(n,r){M(n,e,r),i||(a=q(e,"error",t[2]),i=!0)},p(t,r){2&r&&!u(e.src,n=t[6].image_url)&&J(e,"src",n),2&r&&o!==(o=we(t[6].style))&&J(e,"style",o)},d(t){t&&z(e),i=!1,a()}}}function $n(t){let e;function n(t,e){return t[6].image_url?yn:vn}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),M(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&z(e),o.d(t)}}}function bn(t){let e,r,o=Qt(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=$n(mn(t,o,e));return{c(){e=B("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=nt(t,"SPAN",{class:!0});var n=Z(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(z),this.h()},h(){J(e,"class",r=pn["outer-background"]+(t[0]?" "+pn["outer-background_clip"]:"")),ct(e,"border-radius",t[0])},m(t,n){M(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(o=Qt(t[1]),n=0;n<o.length;n+=1){const r=mn(t,o,n);i[n]?i[n].p(r,a):(i[n]=$n(r),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=o.length}1&a&&r!==(r=pn["outer-background"]+(t[0]?" "+pn["outer-background_clip"]:""))&&J(e,"class",r),1&a&&ct(e,"border-radius",t[0])},i:n,o:n,d(t){t&&z(e),R(i,t)}}}function _n(t,e,n){let r,{direction:o}=e,{componentContext:i}=e,{background:a=[]}=e,{radius:s=""}=e;return t.$$set=t=>{"direction"in t&&n(3,o=t.direction),"componentContext"in t&&n(4,i=t.componentContext),"background"in t&&n(5,a=t.background),"radius"in t&&n(0,s=t.radius)},t.$$.update=()=>{56&t.$$.dirty&&n(1,r=a.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=De([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=gn(t.filters,i.logError),"rtl"===o&&t.filters.some((t=>"rtl_mirror"===t.type))&&(e.transform="scale(-1,1)")))}return n})))},[s,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(pn["outer-background__item_hidden"])},o,i,a]}const wn=class extends pe{constructor(t){super(),de(this,t,_n,bn,d,{direction:3,componentContext:4,background:5,radius:0})}},xn=t=>({hasCustomFocus:256&t[0]}),kn=t=>({focusHandler:t[39],blurHandler:t[40],hasCustomFocus:t[8]});function En(t){let e,n;return e=new hn({props:{componentContext:t[0],id:t[0].json.id,use:t[38],cls:t[1]+" "+Be("outer",_e,t[18]),style:we(t[17]),actions:t[14],doubleTapActions:t[15],longTapActions:t[16],attrs:t[10],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||Pn(t[7]),$$slots:{default:[jn]},$$scope:{ctx:t}}}),e.$on("focus",t[39]),e.$on("blur",t[40]),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),1&n[0]&&(r.id=t[0].json.id),262146&n[0]&&(r.cls=t[1]+" "+Be("outer",_e,t[18])),131072&n[0]&&(r.style=we(t[17])),16384&n[0]&&(r.actions=t[14]),32768&n[0]&&(r.doubleTapActions=t[15]),65536&n[0]&&(r.longTapActions=t[16]),1024&n[0]&&(r.attrs=t[10]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||Pn(t[7])),2937&n[0]|134217728&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Cn(t){let e,n;return e=new wn({props:{componentContext:t[0],direction:t[9],background:t[5],radius:t[4]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),512&n[0]&&(r.direction=t[9]),32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function An(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=nt(t,"SPAN",{class:!0,style:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=_e.outer__border),J(e,"style",r=we(t[3]))},m(t,n){M(t,e,n)},p(t,n){8&n[0]&&r!==(r=we(t[3]))&&J(e,"style",r)},d(t){t&&z(e)}}}function jn(t){let e,n,r,o=t[6]&&Cn(t);const i=t[119].default,a=f(i,t,t[120],kn);let s=t[11]&&An(t);return{c(){o&&o.c(),e=W(),a&&a.c(),s&&s.c(),n=W()},l(t){o&&o.l(t),e=W(),a&&a.l(t),s&&s.l(t),n=W()},m(t,i){o&&o.m(t,i),M(t,e,i),a&&a.m(t,i),s&&s.m(t,i),M(t,n,i),r=!0},p(t,l){t[6]?o?(o.p(t,l),64&l[0]&&Gt(o,1)):(o=Cn(t),o.c(),Gt(o,1),o.m(e.parentNode,e)):o&&(qt(),Kt(o,1,1,(()=>{o=null})),Jt()),a&&a.p&&(!r||256&l[0]|134217728&l[3])&&v(a,i,t,t[120],r?m(i,t[120],l,xn):y(t[120]),kn),t[11]?s?s.p(t,l):(s=An(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Gt(o),Gt(a,t),r=!0)},o(t){Kt(o),Kt(a,t),r=!1},d(t){t&&(z(e),z(n)),o&&o.d(t),a&&a.d(t),s&&s.d(t)}}}function Vn(t){let e,n,r=!t[12]&&!t[13]&&En(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[12]||t[13]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),12288&n[0]&&Gt(r,1)):(r=En(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}const Dn={left:"start",center:"center",right:"end",start:"start",end:"end"},Fn={left:"end",center:"center",right:"start",start:"start",end:"end"},Sn={top:"start",center:"center",bottom:"end",baseline:"baseline"};function Pn(t){return t.some((t=>"native"===t.name))}function Nn(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M,z,R,B,L,U,H,W,q,J,G,K,X,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n,at=n,st=n,lt=n,ct=n,ut=n,dt=n,ht=n,pt=n,ft=n;t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft()));let{$$slots:gt={},$$scope:mt}=e,{componentContext:vt}=e,{cls:yt=""}=e,{style:$t}=e,{layoutParams:bt={}}=e,{customDescription:_t=!1}=e,{customPaddings:wt=!1}=e,{customActions:Et=""}=e,{additionalPaddings:At=null}=e,{heightByAspect:jt=!1}=e,{parentOf:Vt}=e,{parentOfSimpleMode:Dt}=e,{replaceItems:Ft}=e,{hasInnerFocusable:St=!1}=e;const Pt=Ct(ye),Nt=Ct(Le),Ot=Pt.direction;let Tt,Mt;p(t,Ot,(t=>r(9,J=t)));let zt,Rt,Bt,Lt,Ut,Ht,Wt,qt,Jt,Gt,Kt,Xt,Yt,Zt,Qt,te,ee,ne,re,oe,ie,ae=null,se=[],le={},ce={},ue=!1,de=1,he="transparent",pe=0,fe={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},ge="",ve=null,be="",_e={},we=0,Ee=0,Ae=0,je=!1,Fe=!1,Se={},Pe=0,Ne=0,Re=0,Be=!1,He=!1,Je=1,nn=[],on=!1,an=!1,sn=[],ln=[],cn=[],un=[],dn=[],hn=[],pn="",fn=!1,gn="visible",mn=0,vn=0,yn=!1,$n=null;function bn(t,e){if(!Array.isArray(Vt)||!Ft)return;if(Dt&&1!==(Array.isArray(e)&&e.length||0))return;const n=Vt.findIndex((e=>(null==e?void 0:e.id)===t)),o=Vt.slice();o.splice(n,1,...e||[]),r(41,Vt=o),Ft(o)}function _n(t){const e=Ye(t.start_value,1),n=Ye(t.end_value,1),o=Te(t.start_delay,0),i=rn()?0:Te(t.duration,300),a=Xe(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(84,Zt=e),r(85,Qt=n),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return r(86,te=e),r(87,ee=n),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return vt.logError($e(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function wn(){if(ae&&Tt){const t=Pt.getExtensionContext();ae.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,Tt,t)})),ae=null}}function xn(t){var e;null==ie||ie.destroy(),r(51,Tt=t),on&&vt.json.transition_in&&Nt.registerChildWithTransitionIn(vt.json,vt,vt.json.transition_in,t).then((()=>{r(80,Kt=!1)})).catch((t=>{throw r(80,Kt=!1),t})),on&&vt.json.transition_out&&Nt.registerChildWithTransitionOut(vt.json,vt,vt.json.transition_out,t),on&&vt.json.transition_change&&Nt.registerChildWithTransitionChange(vt.json,vt,vt.json.transition_change,t).then((()=>{r(82,Yt=!1)})).catch((t=>{throw r(82,Yt=!1),t}));const n=vt.fakeElement?[]:vt.json.visibility_actions||vt.json.visibility_action&&[vt.json.visibility_action],o=vt.fakeElement?[]:vt.json.disappear_actions;let i;(Array.isArray(n)&&n.length||Array.isArray(o)&&o.length)&&(i=function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:o,componentContext:i}=e;const a=[];n&&n.forEach((t=>{a.push({type:"visibility",index:a.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{a.push({type:"disappear",index:a.length,action:t,visible:!1,count:0,finished:!1})}));const s=a.map(((t,e)=>{const n="visibility"===t.type;return i.getDerivedFromVars({index:e,visibility_percentage:t.action.visibility_percentage,visibility_duration:n?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit,is_enabled:t.action.is_enabled})}));let l;const c=()=>{l&&l.disconnect(),a.forEach((t=>{t.timer&&clearTimeout(t.timer)}))},u=me(s,(t=>t));let d;const h=t=>{const e="visibility"===t.type,n=i.getJsonWithVars(t.action),r=n.url,a=n.typed;if(r){const t=Ie(r);t&&!Oe(t,o.getBuiltinProtocols())&&("div-action"===t?o.execAction(n):n.log_id&&o.execCustomAction(n))}else a&&o.execAction(n);o.logStat(e?"visible":"disappear",n)},p=u.subscribe((e=>{d=e.filter(ze);const n={};d.forEach((t=>{n[t.index]=t})),c();const r=[...new Set(d.map((t=>{const e="visibility"===a[t.index].type;return Me(e,t.visibility_percentage,e?50:0)/100})))];r.length&&(l=new IntersectionObserver((t=>{t.forEach((t=>{d.forEach((e=>{const n=a[e.index],r="visibility"===n.type,o=Me(r,e.visibility_percentage,r?50:0);let i;i=0===o?t.intersectionRatio>=1e-12:t.intersectionRatio>=o/100;const s=r?!i:i;(r?!n.visible&&i:n.visible&&!i)?n.finished||(n.timer=setTimeout((()=>{++n.count;const t=0===e.log_limit?1/0:e.log_limit||1;++n.count>=t&&(n.finished=!0),h(n)}),Te(e.visibility_duration,800))):s&&n.timer&&clearTimeout(n.timer),n.visible=i}))}))}),{threshold:r}),l.observe(t))}));return{destroy(){var t;null===(t=d)||void 0===t||t.forEach((t=>{const e=a[t.index];e&&"disappear"===e.type&&e.visible&&!e.finished&&o.registerTimeout(window.setTimeout((()=>{h(e)}),t.visibility_duration))})),c(),p()}}}(t,{visibilityActions:n,disappearActions:o,rootCtx:Pt,componentContext:vt}));const a=vt.json.id;return a&&Nt.registerChild(a),null===(e=vt.json.tooltips)||void 0===e||e.forEach((e=>{Pt.registerTooltip(t,e)})),ie={destroy(){a&&Nt.unregisterChild(a),i&&i.destroy(),$n&&$n.destroy()}},ie}return xt((function(){$n&&$n.update(vt)})),kt((()=>{var t;se.forEach((t=>{Pt.unregisterParentOf(t)})),r(52,se=[]),null===(t=vt.json.tooltips)||void 0===t||t.forEach((t=>{Pt.unregisterTooltip(t)})),wn()})),t.$$set=t=>{"componentContext"in t&&r(0,vt=t.componentContext),"cls"in t&&r(1,yt=t.cls),"style"in t&&r(42,$t=t.style),"layoutParams"in t&&r(43,bt=t.layoutParams),"customDescription"in t&&r(44,_t=t.customDescription),"customPaddings"in t&&r(45,wt=t.customPaddings),"customActions"in t&&r(46,Et=t.customActions),"additionalPaddings"in t&&r(47,At=t.additionalPaddings),"heightByAspect"in t&&r(48,jt=t.heightByAspect),"parentOf"in t&&r(41,Vt=t.parentOf),"parentOfSimpleMode"in t&&r(49,Dt=t.parentOfSimpleMode),"replaceItems"in t&&r(50,Ft=t.replaceItems),"hasInnerFocusable"in t&&r(2,St=t.hasInnerFocusable),"$$scope"in t&&r(120,mt=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(100,o=vt.origJson),128&t.$$.dirty[3]&&o&&(r(58,ve=null),r(59,be=""),r(76,Je=1),r(88,fn=!1),r(89,gn="visible"),r(90,mn=0),r(91,vn=0),r(92,ne=void 0),r(93,re=void 0),nn=vt.fakeElement?[]:vt.json.transition_triggers||["state_change","visibility_change"],r(79,on=Boolean(-1!==nn.indexOf("state_change")&&vt.json.id)),an=Boolean(-1!==nn.indexOf("visibility_change")&&vt.json.id),Tt&&xn(Tt)),1&t.$$.dirty[0]&&(r(36,i=vt.getDerivedFromVars(vt.json.focus)),tt(),tt=h(i,(t=>r(104,I=t)))),1&t.$$.dirty[0]&&(r(35,a=vt.getDerivedFromVars(vt.json.border)),ft(),ft=h(a,(t=>r(118,X=t)))),1&t.$$.dirty[0]&&(r(34,s=vt.getDerivedFromVars(vt.json.paddings)),pt(),pt=h(s,(t=>r(117,K=t)))),1&t.$$.dirty[0]&&(r(33,l=vt.getDerivedFromVars(vt.json.margins)),dt(),dt=h(l,(t=>r(115,q=t)))),1&t.$$.dirty[0]&&(r(32,c=vt.getDerivedFromVars(vt.json.width)),ct(),ct=h(c,(t=>r(113,H=t)))),1&t.$$.dirty[0]&&(r(31,u=vt.getDerivedFromVars(vt.json.alignment_horizontal)),ht(),ht=h(u,(t=>r(116,G=t)))),1&t.$$.dirty[0]&&(r(30,d=vt.getDerivedFromVars(vt.json.height)),lt(),lt=h(d,(t=>r(112,U=t)))),1&t.$$.dirty[0]&&(r(29,f=vt.getDerivedFromVars(vt.json.alignment_vertical)),ut(),ut=h(f,(t=>r(114,W=t)))),1&t.$$.dirty[0]&&(r(28,g=vt.getDerivedFromVars(vt.json.alpha)),st(),st=h(g,(t=>r(111,L=t)))),1&t.$$.dirty[0]&&(r(27,m=vt.getDerivedFromVars(vt.json.accessibility)),at(),at=h(m,(t=>r(110,B=t)))),1&t.$$.dirty[0]&&(r(26,v=vt.getDerivedFromVars(vt.json.background)),it(),it=h(v,(t=>r(109,R=t)))),1&t.$$.dirty[0]&&(r(25,y=vt.getDerivedFromVars(vt.json.action)),rt(),rt=h(y,(t=>r(107,M=t)))),1&t.$$.dirty[0]&&(r(24,$=vt.getDerivedFromVars(vt.json.actions)),ot(),ot=h($,(t=>r(108,z=t)))),1&t.$$.dirty[0]&&(r(23,b=vt.getDerivedFromVars(vt.json.doubletap_actions)),nt(),nt=h(b,(t=>r(106,T=t)))),1&t.$$.dirty[0]&&(r(22,_=vt.getDerivedFromVars(vt.json.longtap_actions)),et(),et=h(_,(t=>r(105,O=t)))),1&t.$$.dirty[0]&&(r(21,w=vt.getDerivedFromVars(vt.json.action_animation)),Q(),Q=h(w,(t=>r(103,N=t)))),1&t.$$.dirty[0]&&(r(20,x=vt.getDerivedFromVars(vt.json.visibility)),Z(),Z=h(x,(t=>r(102,P=t)))),1&t.$$.dirty[0]&&(r(19,k=vt.getDerivedFromVars(vt.json.transform)),Y(),Y=h(k,(t=>r(101,S=t)))),2360320&t.$$.dirty[1]&&(se.forEach((t=>{Pt.unregisterParentOf(t)})),r(52,se=[]),Vt&&Vt.forEach((t=>{(null==t?void 0:t.id)&&(se.push(t.id),Pt.registerParentOf(t.id,{replaceWith:bn,isSingleMode:Boolean(Dt)}))}))),264&t.$$.dirty[0]|130023424&t.$$.dirty[1]|33556480&t.$$.dirty[3]){const t=yn&&(null==I?void 0:I.border)?I.border:X;let e={},n={},o=!1,i="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,o,i,a;return xe((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+xe((null===(r=t.offset)||void 0===r||null===(o=r.y)||void 0===o?void 0:o.value)||0)+" "+xe(null!==(i=t.blur)&&void 0!==i?i:2)+" "+Ce(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(n):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(o=!0,r(54,de=Te(t.stroke.width,de)),r(55,he=Ce(t.stroke.color,1,he)),n["--divkit-border"]="".concat(xe(de+1)," solid ").concat(he)),t.corners_radius?(r(57,fe=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}(t.corners_radius,fe)),e["border-radius"]=tn(fe),["top-left","top-right","bottom-right","bottom-left"].forEach((t=>{r(57,fe[t]=(fe[t]||0)+1,fe)})),n["--divkit-border-radius"]=tn(fe)):t.corner_radius&&(r(56,pe=Te(t.corner_radius,pe)),r(57,fe={"top-left":pe,"top-right":pe,"bottom-right":pe,"bottom-left":pe}),e["border-radius"]=xe(pe),n["--divkit-border-radius"]=xe(pe+1)),o&&de&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},fe);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+de/2})),i=tn(t)}}r(53,le=Ke(e,le)),r(3,ce=Ke(n,ce)),r(11,ue=o),r(4,ge=i)}if(134234112&t.$$.dirty[1]|16777216&t.$$.dirty[3]&&r(58,ve=Qe(K&&!wt?K:void 0,ve)),512&t.$$.dirty[0]|134283264&t.$$.dirty[1]&&r(96,E=Ue(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left","start","end"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}(ve,At),J)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]|4194304&t.$$.dirty[3]&&r(59,be=qe(q,J,be)),513&t.$$.dirty[0]|536875008&t.$$.dirty[1]|4&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null==H?void 0:H.type;if("fixed"===u)r(64,we=Te(null==H?void 0:H.value,we)),e=xe(we);else if("wrap_content"===u||("match_parent"===u||!u)&&bt.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==H?void 0:H.constrained)||("match_parent"===u||!u)&&bt.parentHorizontalWrapContent)&&(i["width-constrained"]=!0,"horizontal"===bt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=H;t.min_size&&We(t.min_size.value)&&(n=xe(t.min_size.value)),t.max_size&&We(t.max_size.value)&&(o=xe(t.max_size.value))}"match_parent"!==u&&u||vt.logError($e(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===bt.parentContainerOrientation&&bt.parentContainerWrap&&(c=!0,vt.logError($e(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===bt.parentLayoutOrientation?e="calc(100% - ".concat(ke(((null==q?void 0:q.left)||0)+((null==q?void 0:q.right)||0)),")"):"horizontal"===bt.parentContainerOrientation&&(a=H&&"weight"in H&&H.weight||1,bt.parentContainerWrap&&(l=!0));if("parent"===t)i["halign-self"]="stretch";else{const t=G;i["halign-self"]="left"===t||"center"===t||"right"===t||"start"===t||"end"===t?("ltr"===J?Dn:Fn)[t]:bt.parentHAlign||"start"}t&&(i.width=t),r(61,zt=e),r(62,Rt=n),r(63,Bt=o),r(65,Ee=a),r(66,Ae=s),r(60,_e=Ke(i,_e)),r(67,je=l),r(12,Fe=c)}if(1&t.$$.dirty[0]|135168&t.$$.dirty[1]|1088&t.$$.dirty[2]|6815744&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null==U?void 0:U.type;if(jt);else if("fixed"===u)r(72,Pe=Te(null==U?void 0:U.value,Pe)),e=xe(Pe);else if("match_parent"!==u||bt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||"match_parent"===u&&bt.parentVerticalWrapContent)&&(i["height-constrained"]=!0,"vertical"===bt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=U;(null==t?void 0:t.min_size)&&We(t.min_size.value)&&(n=xe(t.min_size.value)),(null==t?void 0:t.max_size)&&We(t.max_size.value)&&(o=xe(t.max_size.value))}"match_parent"===u&&vt.logError($e(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===bt.parentContainerOrientation&&bt.parentContainerWrap&&(c=!0,vt.logError($e(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===bt.parentLayoutOrientation?e="calc(100% - ".concat(ke(((null==q?void 0:q.top)||0)+((null==q?void 0:q.bottom)||0)),")"):"vertical"===bt.parentContainerOrientation&&(a=(null==U?void 0:U.weight)||1,bt.parentContainerWrap&&(l=!0));if("parent"===t)i["valign-self"]="stretch";else{const t=W;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===bt.parentContainerOrientation?i["valign-self"]=Sn[t]:i["valign-self"]=bt.parentVAlign||"start"}t&&(i.height=t),r(69,Lt=e),r(70,Ut=n),r(71,Ht=o),r(73,Ne=a),r(74,Re=s),r(68,Se=Ke(i,Se)),r(75,Be=l),r(13,He=c)}var e,n;if(4096&t.$$.dirty[1]&&r(99,C=!!bt.overlapParent||void 0),4096&t.$$.dirty[1]|1572864&t.$$.dirty[3]&&r(98,A=bt.overlapParent&&(!H||"match_parent"===H.type)&&!bt.parentHorizontalWrapContent&&"match_parent"===(null==U?void 0:U.type)&&!bt.parentVerticalWrapContent),4096&t.$$.dirty[1]&&r(97,j=bt.gridArea?"".concat(bt.gridArea.y+1,"/").concat(bt.gridArea.x+1,"/span ").concat(bt.gridArea.rowSpan,"/span ").concat(bt.gridArea.colSpan):void 0),16384&t.$$.dirty[2]|262144&t.$$.dirty[3]&&(r(76,(n=Je,Je=!We(e=L)||void 0===e||e>1?n:Number(e))),r(77,Wt=1===Je?void 0:Je)),8192&t.$$.dirty[1]|131072&t.$$.dirty[3]&&(r(10,Mt=void 0),B&&!_t&&B.description&&(r(10,Mt={}),r(10,Mt["aria-label"]=B.description,Mt))),368&t.$$.dirty[0]|67584&t.$$.dirty[3]&&(r(5,qt=yn&&(null==I?void 0:I.background)?I.background:R),r(78,Jt={}),r(6,Gt=!1),Array.isArray(qt)&&(r(6,Gt=qt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(ge)),!Gt))){const t=De(qt);r(78,Jt["background-color"]=t.color,Jt),r(78,Jt["background-image"]=t.image,Jt),r(78,Jt["background-size"]=t.size,Jt),r(78,Jt["background-position"]=t.position,Jt),r(78,Jt["background-repeat"]="no-repeat",Jt)}if(1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(80,Kt=void 0),on&&vt.json.transition_in&&Pt.isRunning("stateChange")&&r(80,Kt=!0)),1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(82,Yt=void 0),on&&vt.json.transition_change&&Pt.isRunning("stateChange")&&Nt.hasTransitionChange(vt.json.id)&&r(82,Yt=!0)),1&t.$$.dirty[0]|32768&t.$$.dirty[1]|63488&t.$$.dirty[3]){let t=z||M&&[M]||[],e=T||[],n=O||[],o=(null==I?void 0:I.on_focus)||[],i=(null==I?void 0:I.on_blur)||[];vt.fakeElement?(t=[],e=[],n=[],o=[],i=[]):(Array.isArray(t)||(t=[],vt.logError($e(new Error("Actions should be array")))),Array.isArray(e)||(e=[],vt.logError($e(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],vt.logError($e(new Error("LongTapActions should be array")))),Array.isArray(o)||(o=[],vt.logError($e(new Error("FocusActions should be array")))),Array.isArray(i)||(i=[],vt.logError($e(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&Et&&(t=[],e=[],n=[],vt.logError($e(new Error('Cannot use action on component "'.concat(Et,'"'))))),r(14,sn=t.filter(en)),r(15,ln=e.filter(en)),r(16,cn=n.filter(en)),un=o.filter(en),dn=i.filter(en)}if(128&t.$$.dirty[0]|1024&t.$$.dirty[3]&&N&&(r(7,hn=Ze(N)),r(83,pn=hn.map(_n).filter(Boolean).join(", "))),201326592&t.$$.dirty[2]|512&t.$$.dirty[3]){const t=gn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(P,gn);t!==e&&(!fn||"visible"!==gn&&"visible"!==e?r(89,gn=e):async function(t){r(89,gn=t);const e="visible"===t?"in":"out",n="in"===e?vt.json.transition_in:vt.json.transition_out;an&&n&&(await It(),"in"===e&&r(81,Xt=!0),Nt.runVisibilityTransition(Object.assign(Object.assign({},vt.json),{visibility:"visible"}),vt,n,Tt,e).then((()=>{"in"===e&&r(81,Xt=!1)})).catch((t=>{throw"in"===e&&r(81,Xt=!1),t})))}(e)),fn||r(88,fn=!0)}if(1&t.$$.dirty[0]|1048576&t.$$.dirty[1]|2&t.$$.dirty[3]&&vt.json&&Tt&&!Ge(vt.json.extensions,oe)){let t=r(94,oe=vt.json.extensions);It().then((()=>{if(t===oe&&Tt&&(wn(),Array.isArray(vt.json.extensions))){const t=Pt.getExtensionContext();ae=vt.json.extensions.map((e=>{var n;const r=e.id;if(!r)return;const o=Pt.getExtension(r,e.params);return o&&(null===(n=o.mountView)||void 0===n||n.call(o,Tt,t)),o})).filter(Ve)}}))}if(257&t.$$.dirty[0]|536875008&t.$$.dirty[1]|138149952&t.$$.dirty[2]|96&t.$$.dirty[3]&&r(18,V=Object.assign(Object.assign(Object.assign({},_e),Se),{"parent-overlap":C,"parent-overlap-absolute":A,"scroll-snap":bt.scrollSnap,"hide-on-transition-in":Kt||Xt||Yt,visibility:gn,"has-action-animation":Boolean(pn),"parent-flex":bt.parentContainerOrientation||void 0,"parent-grid":Boolean(bt.gridArea)||void 0,"has-custom-focus":Boolean(yn&&vt.json.focus)})),805306368&t.$$.dirty[2]|256&t.$$.dirty[3]&&S&&void 0!==S.rotation){const t=S.pivot_x||{type:"pivot-percentage",value:50};r(90,mn=Ye(t.value,mn));const e="pivot-fixed"===t.type?xe(mn):"".concat(mn,"%"),n=S.pivot_y||{type:"pivot-percentage",value:50};r(91,vn=Ye(n.value,vn));const o="pivot-fixed"===n.type?xe(vn):"".concat(vn,"%");r(92,ne="".concat(e," ").concat(o)),r(93,re="rotate(".concat(S.rotation,"deg)"))}10280&t.$$.dirty[2]&&r(95,D=je||Be?"100%":Ee||Ne?0:void 0),1346373632&t.$$.dirty[1]|1138858907&t.$$.dirty[2]|29&t.$$.dirty[3]&&r(17,F=Object.assign(Object.assign(Object.assign(Object.assign({},$t),Jt),le),{width:zt,"min-width":Rt,"max-width":Bt,height:Lt,"min-height":Ut,"max-height":Ht||(null==$t?void 0:$t["max-height"]),"grid-area":j,padding:E,margin:be,opacity:Wt,transition:pn,"transform-origin":ne,transform:re,"flex-grow":Ee||Ne||void 0,"flex-shrink":Ae||Re?1:void 0,"flex-basis":D,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ee}))},[vt,yt,St,ce,ge,qt,Gt,hn,yn,J,Mt,ue,Fe,He,sn,ln,cn,F,V,k,x,w,_,b,$,y,v,m,g,f,d,u,c,l,s,a,i,Ot,xn,function(){vt.json.focus&&(function(t){let e;return h(t,(t=>e=t))(),e}(Pt.isPointerFocus)||r(8,yn=!0),vt.execAnyActions(un))},function(){vt.json.focus&&(r(8,yn=!1),vt.execAnyActions(dn))},Vt,$t,bt,_t,wt,Et,At,jt,Dt,Ft,Tt,se,le,de,he,pe,fe,ve,be,_e,zt,Rt,Bt,we,Ee,Ae,je,Se,Lt,Ut,Ht,Pe,Ne,Re,Be,Je,Wt,Jt,on,Kt,Xt,Yt,pn,Zt,Qt,te,ee,fn,gn,mn,vn,ne,re,oe,D,E,j,A,C,o,S,P,N,I,O,T,M,z,R,B,L,U,H,W,q,G,K,X,gt,mt]}const In=class extends pe{constructor(t){super(),de(this,t,Nn,Vn,d,{componentContext:0,cls:1,style:42,layoutParams:43,customDescription:44,customPaddings:45,customActions:46,additionalPaddings:47,heightByAspect:48,parentOf:41,parentOfSimpleMode:49,replaceItems:50,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},On={"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 Tn(t,e){const n=Number(t);return Number.isNaN(n)||n<=0?e:n}function Mn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function zn(t,e){return Mn(t)||e}function Rn(t){let e,n;return{c(){e=B("span"),this.h()},l(t){e=nt(t,"SPAN",{class:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=On["text-range__top-offset"]),ct(e,"margin-top",t[5])},m(t,n){M(t,e,n)},p(t,n){32&n&&ct(e,"margin-top",t[5])},d(t){t&&z(e)}}}function Bn(t){let e;return{c(){e=U(t[1])},l(n){e=ot(n,t[1])},m(t,n){M(t,e,n)},p(t,n){2&n&&st(e,t[1])},d(t){t&&z(e)}}}function Ln(t){let e,n,r,o=t[5]&&Rn(t);return n=new hn({props:{componentContext:t[0],cls:Be("text-range",On,t[4]),actions:t[2],style:we(t[3]),$$slots:{default:[Bn]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=W(),se(n.$$.fragment)},l(t){o&&o.l(t),e=W(),le(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),M(t,e,i),ce(n,t,i),r=!0},p(t,r){let[i]=r;t[5]?o?o.p(t,i):(o=Rn(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};1&i&&(a.componentContext=t[0]),16&i&&(a.cls=Be("text-range",On,t[4])),4&i&&(a.actions=t[2]),8&i&&(a.style=we(t[3])),8388610&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Gt(n.$$.fragment,t),r=!0)},o(t){Kt(n.$$.fragment,t),r=!1},d(t){t&&z(e),o&&o.d(t),ue(n,t)}}}function Un(t,e,n){let r,o,i,a,s,l;var c,u;let{componentContext:d}=e,{text:h}=e,{rootFontSize:p}=e,{textStyles:f={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=Ct(ye);let y,$="none",b=12,_=1.25,w="",x="",k="",E=null;return t.$$set=t=>{"componentContext"in t&&n(0,d=t.componentContext),"text"in t&&n(1,h=t.text),"rootFontSize"in t&&n(6,p=t.rootFontSize),"textStyles"in t&&n(7,f=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(2,m=t.actions)},t.$$.update=()=>{if(1&t.$$.dirty&&d.json&&(n(11,$="none"),n(12,b=12),n(13,_=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,k=""),n(18,E=null)),128&t.$$.dirty){let t="none";(f.underline||f.strike)&&("single"===f.underline&&"single"===f.strike?t="both":"single"===f.underline?t="underline":"single"===f.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,b=Tn(f.font_size,b)),4224&t.$$.dirty&&fn(f.line_height)&&n(13,_=Number(f.line_height)/b),128&t.$$.dirty&&We(f.letter_spacing)&&n(14,w=xe(f.letter_spacing)),32896&t.$$.dirty&&(n(15,y=zn(f.font_weight,y)),"string"==typeof f.font_family&&f.font_family?n(16,x=v.typefaceProvider(f.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,k=Ce(f.text_color,1,k)),128&t.$$.dirty&&n(5,r=f.top_offset?xe(f.top_offset):""),128&t.$$.dirty&&n(20,o=f.background?De([f.background]):null),640&t.$$.dirty&&((null===n(9,c=f.border)||void 0===c?void 0:c.stroke)&&f.border.stroke.color&&"transparent"!==Ce(f.border.stroke.color)&&fn(f.border.stroke.width)?n(18,E={color:f.border.stroke.color,width:f.border.stroke.width}):n(18,E=null)),1152&t.$$.dirty&&n(19,i=Tn(null===n(10,u=f.border)||void 0===u?void 0:u.corner_radius,0)),4224&t.$$.dirty&&n(21,a=f.text_shadow?function(t,e){var n,r,o,i,a,s;return"drop-shadow("+Ce(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+xe(10*((null===(r=t.offset)||void 0===r||null===(o=r.x)||void 0===o?void 0:o.value)||0)/e)+" "+xe(10*((null===(i=t.offset)||void 0===i||null===(a=i.y)||void 0===a?void 0:a.value)||0)/e)+" "+xe(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(f.text_shadow,b):void 0),2304&t.$$.dirty&&n(4,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(3,l={"font-size":xe(10*b/p),"line-height":_,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:k,background:(null==o?void 0:o.color)||void 0,"box-shadow":E?"inset 0 0 0 ".concat(xe(E.width)," ").concat(E.color):void 0,"border-radius":i?xe(i):void 0})},[d,h,m,l,s,r,p,f,g,c,u,$,b,_,w,y,x,k,E,i,o,a]}const Hn=class extends pe{constructor(t){super(),de(this,t,Un,Ln,d,{componentContext:0,text:1,rootFontSize:6,textStyles:7,singleline:8,actions:2})}};function Wn(t,e,n){return"left"===t||"center"===t||"right"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}function qn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?"top"===t?"start":"bottom"===t?"end":t:e}function Jn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function Gn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}function Kn(t,e){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,o),n=null}),e)}}function Xn(t,e){let n=null;const r=()=>{const n=getComputedStyle(t),r=parseFloat(n.lineHeight);t.style.webkitLineClamp="",t.style.maxHeight="";const o=t.offsetHeight;if(t.scrollHeight<=o+1e-9)return;let i=Math.max(1,Math.floor(o/r));e.maxLines&&e.maxLines<i&&(i=e.maxLines),t.style.webkitLineClamp=String(i),t.style.maxHeight=r*i+"px"},o=Kn(r,50),i=()=>{n&&(n.disconnect(),n=null)},a=()=>{if(i(),e.enabled){if(r(),"undefined"!=typeof ResizeObserver){n=new ResizeObserver(o);const e=t.parentElement;e&&n.observe(e)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return a(),{update(t){e=t,a()},destroy(){i()}}}const{Boolean:Yn}=j;function Zn(t,e,n){const r=t.slice();return r[60]=e[n],r}function Qn(t){let e,n;return e=new Hn({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[7],singleline:t[6]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),4&n[0]&&(r.text=t[2]),8&n[0]&&(r.rootFontSize=t[3]),128&n[0]&&(r.textStyles=t[7]),64&n[0]&&(r.singleline=t[6]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function tr(t){let e,n,r=Qt(t[11]),o=[];for(let e=0;e<r.length;e+=1)o[e]=or(Zn(t,r,e));const i=t=>Kt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=W()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=W()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);M(t,e,r),n=!0},p(t,n){if(2633&n[0]|1&n[1]){let a;for(r=Qt(t[11]),a=0;a<r.length;a+=1){const i=Zn(t,r,a);o[a]?(o[a].p(i,n),Gt(o[a],1)):(o[a]=or(i),o[a].c(),Gt(o[a],1),o[a].m(e.parentNode,e))}for(qt(),a=r.length;a<o.length;a+=1)i(a);Jt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Gt(o[t]);n=!0}},o(t){o=o.filter(Yn);for(let t=0;t<o.length;t+=1)Kt(o[t]);n=!1},d(t){t&&z(e),R(o,t)}}}function er(t){let e,r,o,i,a,s,l,c,d;return{c(){e=B("span"),r=B("img"),this.h()},l(t){e=nt(t,"SPAN",{style:!0});var n=Z(e);r=nt(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(z),this.h()},h(){J(r,"class",o=be.text__image),u(r.src,i=t[60].image.url)||J(r,"src",i),J(r,"loading",a=t[60].image.preloadRequired?"eager":"lazy"),J(r,"decoding","async"),J(r,"aria-hidden","true"),J(r,"alt",""),J(r,"style",s=we({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0})),J(e,"style",l=we(t[60].image.wrapperStyle))},m(n,o){M(n,e,o),O(e,r),c||(d=q(r,"error",t[31]),c=!0)},p(t,n){2048&n[0]&&!u(r.src,i=t[60].image.url)&&J(r,"src",i),2048&n[0]&&a!==(a=t[60].image.preloadRequired?"eager":"lazy")&&J(r,"loading",a),2560&n[0]&&s!==(s=we({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0}))&&J(r,"style",s),2048&n[0]&&l!==(l=we(t[60].image.wrapperStyle))&&J(e,"style",l)},i:n,o:n,d(t){t&&z(e),c=!1,d()}}}function nr(t){let e,n,r=t[60].text&&rr(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[60].text?r?(r.p(t,n),2048&n[0]&&Gt(r,1)):(r=rr(t),r.c(),Gt(r,1),r.m(e.parentNode,e)):r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt())},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function rr(t){let e,n;return e=new Hn({props:{componentContext:t[0],text:t[60].text,rootFontSize:t[3],textStyles:t[60].textStyles,singleline:t[6],actions:t[60].actions}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2048&n[0]&&(r.text=t[60].text),8&n[0]&&(r.rootFontSize=t[3]),2048&n[0]&&(r.textStyles=t[60].textStyles),64&n[0]&&(r.singleline=t[6]),2048&n[0]&&(r.actions=t[60].actions),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function or(t){let e,n,r,o;const i=[nr,er],a=[];function s(t,e){return"text"in t[60]?0:t[60].image?1:-1}return~(e=s(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=W()},l(t){n&&n.l(t),r=W()},m(t,n){~e&&a[e].m(t,n),M(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?~e&&a[e].p(t,o):(n&&(qt(),Kt(a[l],1,1,(()=>{a[l]=null})),Jt()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Gt(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Gt(n),o=!0)},o(t){Kt(n),o=!1},d(t){t&&z(r),~e&&a[e].d(t)}}}function ir(t){let e,n,r,o,i,a,s,c,u;const d=[tr,Qn],h=[];function p(t,e){return t[11].length?0:1}return n=p(t),r=h[n]=d[n](t),{c(){e=B("span"),r.c(),this.h()},l(t){e=nt(t,"SPAN",{class:!0,style:!0});var n=Z(e);r.l(n),n.forEach(z),this.h()},h(){J(e,"class",o=Be("text__inner",be,t[13])),J(e,"style",i=we(t[12]))},m(r,o){M(r,e,o),h[n].m(e,null),s=!0,c||(u=b(a=Xn.call(null,e,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})),c=!0)},p(t,c){let u=n;n=p(t),n===u?h[n].p(t,c):(qt(),Kt(h[u],1,1,(()=>{h[u]=null})),Jt(),r=h[n],r?r.p(t,c):(r=h[n]=d[n](t),r.c()),Gt(r,1),r.m(e,null)),(!s||8192&c[0]&&o!==(o=Be("text__inner",be,t[13])))&&J(e,"class",o),(!s||4096&c[0]&&i!==(i=we(t[12])))&&J(e,"style",i),a&&l(a.update)&&1296&c[0]&&a.update.call(null,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})},i(t){s||(Gt(r),s=!0)},o(t){Kt(r),s=!1},d(t){t&&z(e),h[n].d(),c=!1,u()}}}function ar(t){let e,n;return e=new In({props:{cls:Be("text",be,t[14])+" "+(t[5]?"":ve.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[ir]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};16416&n[0]&&(r.cls=Be("text",be,t[14])+" "+(t[5]?"":ve.root__unselectable)),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),16349&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function sr(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M,z,R,B,L,U,H=n,W=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n;t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot()));let{componentContext:it}=e,{layoutParams:at}=e;const st=Ct(ye),lt=st.direction;p(t,lt,(t=>r(52,M=t)));let ct,ut="",dt=12,ht=1.25,pt=!1,ft="",gt="",mt=!1,vt="start",yt="start",$t="",bt="",_t="",wt=!1,xt=[],Et=[];return kt((()=>{Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)}))})),t.$$set=t=>{"componentContext"in t&&r(0,it=t.componentContext),"layoutParams"in t&&r(1,at=t.layoutParams)},t.$$.update=()=>{var e;if(1&t.$$.dirty[0]&&it.json&&(r(3,dt=12),r(32,ht=1.25),r(9,pt=!1),r(33,ft=""),r(10,ct=void 0),r(4,gt=""),r(34,mt=!1),r(35,vt="start"),r(36,yt="start"),r(37,$t=""),r(39,_t=""),r(5,wt=!1)),1&t.$$.dirty[0]&&(r(29,o=it.getDerivedFromVars(it.json.text)),ot(),ot=h(o,(t=>r(56,U=t)))),1&t.$$.dirty[0]&&(r(28,i=it.getDerivedFromVars(it.json.ranges)),q(),q=h(i,(t=>r(44,D=t)))),1&t.$$.dirty[0]&&(r(27,a=it.getDerivedFromVars(it.json.images)),W(),W=h(a,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(26,s=it.getDerivedFromVars({font_size:it.json.font_size,letter_spacing:it.json.letter_spacing,font_weight:it.json.font_weight,font_family:it.json.font_family,text_color:it.json.text_color,underline:it.json.underline,strike:it.json.strike,line_height:it.json.line_height,text_shadow:it.json.text_shadow})),H(),H=h(s,(t=>r(7,j=t)))),1&t.$$.dirty[0]&&(r(25,l=it.getDerivedFromVars(it.json.font_size)),rt(),rt=h(l,(t=>r(55,L=t)))),1&t.$$.dirty[0]&&(r(24,c=it.getDerivedFromVars(it.json.line_height)),nt(),nt=h(c,(t=>r(54,B=t)))),1&t.$$.dirty[0]&&(r(23,u=it.getDerivedFromVars(it.json.max_lines)),Z(),Z=h(u,(t=>r(50,O=t)))),1&t.$$.dirty[0]&&(r(22,d=it.getDerivedFromVars(it.json.text_alignment_horizontal)),tt(),tt=h(d,(t=>r(53,z=t)))),1&t.$$.dirty[0]&&(r(21,f=it.getDerivedFromVars(it.json.text_alignment_vertical)),Q(),Q=h(f,(t=>r(51,T=t)))),1&t.$$.dirty[0]&&(r(20,g=it.getDerivedFromVars(it.json.text_color)),Y(),Y=h(g,(t=>r(49,I=t)))),1&t.$$.dirty[0]&&(r(19,m=it.getDerivedFromVars(it.json.focused_text_color)),X(),X=h(m,(t=>r(48,N=t)))),1&t.$$.dirty[0]&&(r(18,v=it.getDerivedFromVars(it.json.truncate)),K(),K=h(v,(t=>r(47,P=t)))),1&t.$$.dirty[0]&&(r(17,y=it.getDerivedFromVars(it.json.text_gradient)),G(),G=h(y,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(16,$=it.getDerivedFromVars(it.json.selectable)),J(),J=h($,(t=>r(45,F=t)))),1&t.$$.dirty[0]&&(r(15,b=it.getDerivedFromVars(it.json.auto_ellipsize)),et(),et=h(b,(t=>r(8,R=t)))),33554432&t.$$.dirty[1]&&r(2,(e=U,ut=String(null!=e?e:""))),8&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(3,dt=Tn(L,dt)),8&t.$$.dirty[0]|8388608&t.$$.dirty[1]){const t=B;fn(t)?(r(32,ht=Number(t)/dt),r(9,pt=!0)):r(9,pt=!1)}if(524288&t.$$.dirty[1]&&r(6,_=1===O),256&t.$$.dirty[0]|524290&t.$$.dirty[1]){let t,e="",n="",o=!1;if(O&&O>1){const r=Number(O);e=r*ht+"em",t=r,n=r,o=!0}else R&&1!==O&&(o=!0);r(33,ft=e),r(10,ct=t),r(4,gt=n),r(34,mt=o)}if(6291472&t.$$.dirty[1]&&r(35,vt=Wn(z,M,vt)),1048608&t.$$.dirty[1]&&r(36,yt=qn(T,yt)),4&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(42,w=!D||ut&&1===D.length&&D[0]&&0===D[0].start&&"number"==typeof D[0].end&&D[0].end>=ut.length),270336&t.$$.dirty[1]&&r(41,x=Boolean(I)!==Boolean(D&&D[0]&&D[0].text_color)),797760&t.$$.dirty[1]){let t="";O&&w&&x&&(t=Ce(I||D&&D[0]&&D[0].text_color,1,$t)),r(37,$t=t)}if(131200&t.$$.dirty[1]&&r(38,bt=Ce(N,1,bt)),65536&t.$$.dirty[1]&&r(40,k="none"===P?"none":""),32768&t.$$.dirty[1]){let t="";if(S){const e=De([S]);e.image&&(t=e.image)}r(39,_t=t)}32&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(5,wt=Jn(F,wt)),132&t.$$.dirty[0]|12288&t.$$.dirty[1]&&function(t,e,n,o){let i=[];if(Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)})),Et=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(11,xt=[]);const a=t;let s=e||[{start:0,end:a.length}],l=n||[],c=0,u=[],d=[];s.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(d.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),d.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=a.length&&d.push({index:t.start,image:t,type:"image",arrayIndex:e})})),d.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),d.forEach((t=>{var e,n;let r="image"===t.type?null:t.range,s=t.index;if(s>c){let r=Object.assign(Object.assign({},o),...u);i.push({text:a.substring(c,s),textStyles:r,actions:"rangeEnd"===t.type&&(null===(n=null===(e=t.range)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.filter(en))||void 0})}if("rangeStart"===t.type&&r)u.push(r);else if("rangeEnd"===t.type)u=u.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},o),...u),n=xe(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=xe(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const a={"font-size":xe(10*(Number(e.font_size)||12)/dt)};let s="";const l=t.image.tint_color,c=Gn(t.image.tint_mode,"source_in");if(l){const e=Ce(t.image.tint_color);s=st.addSvgFilter(e,c),Et.push([e,c])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:a,svgFilterId:s,preloadRequired:Boolean(t.image.preload_required)}})}c=s})),c<a.length&&i.push({text:a.substring(c),textStyles:Object.assign({},o)}),r(11,xt=i)}(ut,D,V,j),64&t.$$.dirty[0]|696&t.$$.dirty[1]&&r(14,E={singleline:_,multiline:mt,halign:vt,valign:yt,truncate:k,"has-focus-color":Boolean(bt)}),256&t.$$.dirty[1]&&r(13,C={gradient:Boolean(_t)}),24&t.$$.dirty[0]|454&t.$$.dirty[1]&&r(12,A={"font-size":xe(dt),"line-height":ht,"max-height":ft,"-webkit-line-clamp":gt,color:$t,"background-image":_t,"--divkit-text-focus-color":bt})},[it,at,ut,dt,gt,wt,_,j,R,pt,ct,xt,A,C,E,b,$,y,v,m,g,f,d,u,c,l,s,a,i,o,lt,function(t){t.target&&"classList"in t.target&&t.target.classList.add(be.text__image_hidden)},ht,ft,mt,vt,yt,$t,bt,_t,k,x,w,V,D,F,S,P,N,I,O,T,M,z,B,L,U]}const lr={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_overflow_visible:"divkit-f315a",container_orientation_vertical:"divkit-ddc33",container_valign_start:"divkit-a31f0",container_valign_center:"divkit-aae61",container_valign_end:"divkit-eac00","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_start:"divkit-efaf5",container_halign_center:"divkit-bac9d",container_halign_end:"divkit-ca36b","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function cr(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 ur(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+o:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+o:t.right=e.style.width+r)}function dr(t,e,n){let r;const o=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),s=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+s:0,null!=e&&e.show_between?e.style.width+o:0]:[null!=e&&e.show_between?e.style.height+i:0,null!=n&&n.show_between?n.style.width+a:0],r.map(xe).join(" ")}function hr(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function pr(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function fr(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:Te(null===(i=(o=t.shape).item_width)||void 0===i?void 0:i.value,10),height:Te(null===(a=o.item_height)||void 0===a?void 0:a.value,10),radius:Te(null===(s=o.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Te(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var o,i,a,s;return function(t,e,n){var r;const o={},i=e.stroke||(null==n?void 0:n.stroke),a=null!=i&&i.color?Ce(i.color):"",s=null!=i&&i.width?Number(null!==(r=i.width)&&void 0!==r?r:1):"";o.width=t.width,o.height=t.height,o.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return o.background=Ce(l),a&&s&&(o.boxShadow="inset 0 0 0 ".concat(xe(s)," ").concat(a)),o}(r,t.shape,{color:t.color,stroke:t.stroke})}let gr;function mr(){if("undefined"==typeof document&&(gr=!0),void 0!==gr)return gr;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),gr=1===t.scrollHeight,document.body.removeChild(t),gr}const vr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:yr}=j;function $r(t,e,n){const r=t.slice();return r[16]=e[n],r}function br(t){let e,n,r,o,i,a="".concat(t[16].style.width,"px"),s="".concat(t[16].style.height,"px"),l="".concat(t[16].style.borderRadius,"px"),c="".concat(t[16].left,"px"),u="".concat(t[16].top,"px"),d="".concat(t[16].width,"px"),h="".concat(t[16].height,"px");return{c(){e=B("div"),n=B("div"),o=H(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var r=Z(e);n=nt(r,"DIV",{class:!0}),Z(n).forEach(z),o=it(r),r.forEach(z),this.h()},h(){J(n,"class",r=vr["container-separator__shape"]),ct(n,"width",a),ct(n,"height",s),ct(n,"border-radius",l),ct(n,"background",t[16].style.background),ct(n,"box-shadow",t[16].style.boxShadow),J(e,"class",i=vr["container-separator__item"]),ct(e,"left",c),ct(e,"top",u),ct(e,"width",d),ct(e,"height",h)},m(t,r){M(t,e,r),O(e,n),O(e,o)},p(t,r){2&r&&a!==(a="".concat(t[16].style.width,"px"))&&ct(n,"width",a),2&r&&s!==(s="".concat(t[16].style.height,"px"))&&ct(n,"height",s),2&r&&l!==(l="".concat(t[16].style.borderRadius,"px"))&&ct(n,"border-radius",l),2&r&&ct(n,"background",t[16].style.background),2&r&&ct(n,"box-shadow",t[16].style.boxShadow),2&r&&c!==(c="".concat(t[16].left,"px"))&&ct(e,"left",c),2&r&&u!==(u="".concat(t[16].top,"px"))&&ct(e,"top",u),2&r&&d!==(d="".concat(t[16].width,"px"))&&ct(e,"width",d),2&r&&h!==(h="".concat(t[16].height,"px"))&&ct(e,"height",h)},d(t){t&&z(e)}}}function _r(t){let e,r,o,i,a=Qt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=br($r(t,a,e));return{c(){e=B("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(z),this.h()},h(){J(e,"class",r=vr["container-separator"])},m(n,r){M(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[13](e),o||(i=q(yr,"resize",t[2]),o=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=Qt(t[1]),n=0;n<a.length;n+=1){const o=$r(t,a,n);s[n]?s[n].p(o,r):(s[n]=br(o),s[n].c(),s[n].m(e,null))}for(;n<s.length;n+=1)s[n].d(1);s.length=a.length}},i:n,o:n,d(n){n&&z(e),R(s,n),t[13](null),o=!1,i()}}}function wr(t,e,n,r,o,i){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;i?t.push({top:n.bottom+l,left:o.left+a,width:Math.max(0,o.right-o.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:o.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,o.bottom-o.top-l-c),style:e.style})}function xr(t,e,n,r,o,i){const a={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if(null==e?void 0:e.show_at_start){let s,l;"space-around"===o||"space-evenly"===o?(s=i.left-e.style.width,l=i.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),wr(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)wr(t,e,n[o],n[o+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===o||"space-evenly"===o?(l=i.bottom+e.style.height,c=i.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),wr(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function kr(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e,{direction:c}=e;const u=function(t,e){let n,r=0,o=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect(),e=window.getComputedStyle(r),u={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,h=[]);let p=[...r.children].filter((t=>t!==d&&!t.classList.contains(_e.outer__border))),f=[];for(;p.length;){const t=[],e=p.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.left,i=n.right,a=n.bottom;for(;p.length;){let e=p[0],n=e.getBoundingClientRect();if("vertical"===o){if(n.top<a)break}else if("ltr"===c?n.left<i:n.right>r)break;i=Math.max(i,n.right),r=Math.min(r,n.left),a=Math.max(a,n.bottom),t.push(e),p.shift()}f.push(t)}const g=[];f.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));"rtl"===c&&"horizontal"===o&&e.reverse(),i&&xr(h,i,e,"vertical"===o,"vertical"===o?l:s,u);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};g.push(n)})),"rtl"===c&&"vertical"===o&&g.reverse(),a&&xr(h,a,g,"horizontal"===o,"vertical"===o?s:l,u),h.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let d,h=[],p=!1,f=null,g=null;function m(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(vr["container-separator__shape"]))&&!(null==n?void 0:n.contains(vr["container-separator"]))}))&&u()}return wt((()=>{n(9,p=!0)})),kt((()=>{n(9,p=!1)})),t.$$set=t=>{"orientation"in t&&n(3,o=t.orientation),"separator"in t&&n(4,i=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign),"direction"in t&&n(8,c=t.direction)},t.$$.update=()=>{1&t.$$.dirty&&n(12,r=(null==d?void 0:d.parentElement)||null),7680&t.$$.dirty&&(p&&r||f||g)&&(f&&(f.disconnect(),n(10,f=null)),g&&(g.disconnect(),n(11,g=null)),p&&r&&("undefined"!=typeof MutationObserver&&(n(10,f=new MutationObserver(m)),f.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(11,g=new ResizeObserver(u)),g.observe(r)))),4608&t.$$.dirty&&p&&r&&u()},[d,h,u,o,i,a,s,l,c,p,f,g,r,function(t){Vt[t?"unshift":"push"]((()=>{d=t,n(0,d)}))}]}const Er=class extends pe{constructor(t){super(),de(this,t,kr,_r,d,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}},{Boolean:Cr}=j;function Ar(t,e,n){const r=t.slice();return r[54]=e[n],r}function jr(t){let e,n;return e=new Ds({props:{componentContext:t[54],layoutParams:t[8]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.componentContext=t[54]),256&n[0]&&(r.layoutParams=t[8]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Vr(t){let e,n;return e=new Er({props:{direction:t[11],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.direction=t[11]),32&n[0]&&(r.separator=t[5]),64&n[0]&&(r.lineSeparator=t[6]),4&n[0]&&(r.orientation=t[2]),16&n[0]&&(r.contentHAlign=t[4]),8&n[0]&&(r.contentVAlign=t[3]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Dr(t){let e,n,r,o=Qt(t[9]),i=[];for(let e=0;e<o.length;e+=1)i[e]=jr(Ar(t,o,e));const a=t=>Kt(i[t],1,1,(()=>{i[t]=null}));let s=(t[5]||t[6])&&Vr(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=H(),s&&s.c(),n=W()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=it(t),s&&s.l(t),n=W()},m(t,o){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,o);M(t,e,o),s&&s.m(t,o),M(t,n,o),r=!0},p(t,r){if(768&r[0]){let n;for(o=Qt(t[9]),n=0;n<o.length;n+=1){const a=Ar(t,o,n);i[n]?(i[n].p(a,r),Gt(i[n],1)):(i[n]=jr(a),i[n].c(),Gt(i[n],1),i[n].m(e.parentNode,e))}for(qt(),n=o.length;n<i.length;n+=1)a(n);Jt()}t[5]||t[6]?s?(s.p(t,r),96&r[0]&&Gt(s,1)):(s=Vr(t),s.c(),Gt(s,1),s.m(n.parentNode,n)):s&&(qt(),Kt(s,1,1,(()=>{s=null})),Jt())},i(t){if(!r){for(let t=0;t<o.length;t+=1)Gt(i[t]);Gt(s),r=!0}},o(t){i=i.filter(Cr);for(let t=0;t<i.length;t+=1)Kt(i[t]);Kt(s),r=!1},d(t){t&&(z(e),z(n)),R(i,t),s&&s.d(t)}}}function Fr(t){let e,n;return e=new In({props:{cls:Be("container",lr,t[13]),componentContext:t[0],layoutParams:t[1],style:t[10],additionalPaddings:t[14],heightByAspect:Boolean(t[7]),parentOf:t[9].map(Ir),replaceItems:t[27],$$slots:{default:[Dr]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Be("container",lr,t[13])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1024&n[0]&&(r.style=t[10]),16384&n[0]&&(r.additionalPaddings=t[14]),128&n[0]&&(r.heightByAspect=Boolean(t[7])),512&n[0]&&(r.parentOf=t[9].map(Ir)),2940&n[0]|67108864&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}const Sr={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},Pr={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Nr=["rounded_rectangle","circle"],Ir=t=>t.json;function Or(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M=n,z=n,R=n,B=n,L=n,U=n,H=n,W=n,q=n,J=n,G=n,K=n;var X,Y,Z,Q,tt,et,nt;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{componentContext:rt}=e,{layoutParams:ot}=e;const it=Ct(ye),at=it.direction;let st;p(t,at,(t=>r(11,F=t)));let lt,ct="vertical",ut="start",dt="start",ht=null,pt=null,ft={},gt=[];return t.$$set=t=>{"componentContext"in t&&r(0,rt=t.componentContext),"layoutParams"in t&&r(1,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(39,o=rt.origJson),256&t.$$.dirty[1]&&o&&(r(2,ct="vertical"),r(3,ut="start"),r(4,dt="start"),r(7,lt=void 0)),1&t.$$.dirty[0]&&r(38,i=rt.json.items),268435457&t.$$.dirty[0]&&(r(25,a=rt.getDerivedFromVars(null===r(28,X=rt.json.item_builder)||void 0===X?void 0:X.data,void 0,!0)),K(),K=h(a,(t=>r(51,T=t)))),1&t.$$.dirty[0]&&(r(24,s=rt.getDerivedFromVars(rt.json.orientation)),G(),G=h(s,(t=>r(50,O=t)))),1&t.$$.dirty[0]&&(r(23,l=rt.getDerivedFromVars(rt.json.layout_mode)),J(),J=h(l,(t=>r(49,I=t)))),1&t.$$.dirty[0]&&(r(22,c=rt.getDerivedFromVars(rt.json.content_alignment_vertical)),W(),W=h(c,(t=>r(47,P=t)))),1&t.$$.dirty[0]&&(r(21,u=rt.getDerivedFromVars(rt.json.content_alignment_horizontal)),H(),H=h(u,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(20,d=rt.getDerivedFromVars(rt.json.separator)),U(),U=h(d,(t=>r(45,D=t)))),1&t.$$.dirty[0]&&(r(19,f=rt.getDerivedFromVars(rt.json.line_separator)),L(),L=h(f,(t=>r(44,V=t)))),1&t.$$.dirty[0]&&(r(18,g=rt.getDerivedFromVars(rt.json.aspect)),B(),B=h(g,(t=>r(43,j=t)))),1&t.$$.dirty[0]&&(r(17,m=rt.getDerivedFromVars(rt.json.width)),z(),z=h(m,(t=>r(41,C=t)))),1&t.$$.dirty[0]&&(r(16,v=rt.getDerivedFromVars(rt.json.height)),R(),R=h(v,(t=>r(42,A=t)))),1&t.$$.dirty[0]&&(r(15,y=rt.getDerivedFromVars(rt.json.clip_to_bounds)),M(),M=h(y,(t=>r(40,E=t)))),1&t.$$.dirty[0]|1048704&t.$$.dirty[1]){let t=[];if(rt.json.item_builder&&Array.isArray(T)&&Array.isArray(rt.json.item_builder.prototypes)){const e=rt.json.item_builder;t=[],T.forEach((n=>{if(null===n||"object"!=typeof n)return;const r=it.preparePrototypeVariables(e.data_element_name||"it",n);let o;for(let t=0;t<e.prototypes.length;++t){const n=e.prototypes[t];if(n.div){if(void 0===n.selector){o=n.div;break}if(rt.getJsonWithVars(n.selector,r)){o=n.div;break}}}o&&t.push({div:o,vars:r})}))}else t=(Array.isArray(i)&&i||[]).map((t=>({div:t})));r(9,gt=t.map(((t,e)=>rt.produceChildContext(t.div,{path:e,variables:t.vars}))))}if(513&t.$$.dirty[0]){let t=[];gt.forEach((e=>{t.push(rt.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(12,st=me(t,(t=>[...t]))),q(),q=h(st,(t=>r(48,N=t)))}if(4&t.$$.dirty[0]|524288&t.$$.dirty[1]&&r(2,ct=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(O,ct)),262144&t.$$.dirty[1]&&r(35,$="wrap"===I),4&t.$$.dirty[0]|131088&t.$$.dirty[1]&&r(36,b="horizontal"!==ct&&!$&&N.some(hr)),4&t.$$.dirty[0]|131088&t.$$.dirty[1]&&r(37,_="vertical"!==ct&&!$&&N.some(pr)),8&t.$$.dirty[0]|65536&t.$$.dirty[1]&&r(3,ut=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?"top"===t?"start":"bottom"===t?"end":t:e}(P,ut)),2064&t.$$.dirty[0]|32768&t.$$.dirty[1]&&r(4,dt=function(t,e,n){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}(S,F,dt)),1610612772&t.$$.dirty[0]|16385&t.$$.dirty[1])if((null==D?void 0:D.style)&&"overlap"!==ct&&mr()){const t=fr(D.style,Nr,(null==ht?void 0:ht.style)||null);r(5,ht=t?{show_at_start:Boolean(null!==r(29,Y=D.show_at_start)&&void 0!==Y&&Y),show_at_end:Boolean(null!==r(30,Z=D.show_at_end)&&void 0!==Z&&Z),show_between:Boolean(null===r(31,Q=D.show_between)||void 0===Q||Q),style:t,margins:cr(D.margins)}:null)}else r(5,ht=null);if(68&t.$$.dirty[0]|8206&t.$$.dirty[1])if((null==V?void 0:V.style)&&"overlap"!==ct&&mr()){const t=fr(V.style,Nr,(null==pt?void 0:pt.style)||null);r(6,pt=t?{show_at_start:Boolean(null!==r(32,tt=V.show_at_start)&&void 0!==tt&&tt),show_at_end:Boolean(null!==r(33,et=V.show_at_end)&&void 0!==et&&et),show_between:Boolean(null===r(34,nt=V.show_between)||void 0===nt||nt),style:t,margins:cr(V.margins)}:null)}else r(6,pt=null);if(100&t.$$.dirty[0]&&r(14,w=ht||pt?function(t,e,n){const r={};return ur(r,e,"vertical"===t),ur(r,n,"horizontal"===t),r}(ct,ht,pt):null),4096&t.$$.dirty[1]){const t=null==j?void 0:j.ratio;t&&fn(t)?r(7,lt=t):r(7,lt=void 0)}if(414&t.$$.dirty[0]|3184&t.$$.dirty[1]){let t={};"overlap"===ct&&(t.overlapParent=!0),"horizontal"!==ct&&(t.parentHAlign=$?"start":Sr[dt]),"vertical"!==ct&&(t.parentVAlign=$?"start":Pr[ut]),lt||_||A&&"wrap_content"!==A.type&&("match_parent"!==A.type||!(null==ot?void 0:ot.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!b&&("wrap_content"===(null==C?void 0:C.type)||"match_parent"===(null==C?void 0:C.type)&&(null==ot?void 0:ot.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===ct&&(t.parentContainerOrientation="horizontal"),"vertical"===ct&&(t.parentContainerOrientation="vertical"),$&&(t.parentContainerWrap=!0),r(8,ft=Ke(t,ft))}28&t.$$.dirty[0]|528&t.$$.dirty[1]&&r(13,x={orientation:ct,valign:ut,halign:dt,wrap:$,overflow:!1===E||0===E?"visible":void 0}),228&t.$$.dirty[0]&&r(10,k={gap:ht||pt?dr(ct,ht,pt):void 0,"aspect-ratio":lt})},[rt,ot,ct,ut,dt,ht,pt,lt,ft,gt,k,F,st,x,w,y,v,m,g,f,d,u,c,l,s,a,at,function(t){r(0,rt=Object.assign(Object.assign({},rt),{json:Object.assign(Object.assign({},rt.json),{items:t.filter(Ve)})}))},X,Y,Z,Q,tt,et,nt,$,b,_,i,o,E,C,A,j,V,D,S,P,N,I,O,T]}const Tr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Mr(t,e){return"vertical"===t||"horizontal"===t?t:e}function zr(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=nt(t,"SPAN",{class:!0,style:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=Tr.separator__inner),J(e,"style",r=we(t[3]))},m(t,n){M(t,e,n)},p(t,n){8&n&&r!==(r=we(t[3]))&&J(e,"style",r)},d(t){t&&z(e)}}}function Rr(t){let e,n=t[4]&&zr(t);return{c(){n&&n.c(),e=W()},l(t){n&&n.l(t),e=W()},m(t,r){n&&n.m(t,r),M(t,e,r)},p(t,r){t[4]?n?n.p(t,r):(n=zr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&z(e),n&&n.d(t)}}}function Br(t){let e,n;return e=new In({props:{cls:Be("separator",Tr,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Rr]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){let[r]=n;const o={};4&r&&(o.cls=Be("separator",Tr,t[2])),1&r&&(o.componentContext=t[0]),2&r&&(o.layoutParams=t[1]),8216&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Lr(t,e,r){let o,i,a,s,l,c,u,d,p=n;t.$$.on_destroy.push((()=>p()));let{componentContext:f}=e,{layoutParams:g}=e,m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"componentContext"in t&&r(0,f=t.componentContext),"layoutParams"in t&&r(1,g=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&r(10,o=f.origJson),1024&t.$$.dirty&&o&&(r(6,m="horizontal"),r(7,v="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(r(5,i=f.getDerivedFromVars(f.json.delimiter_style)),p(),p=h(i,(t=>r(11,d=t)))),2112&t.$$.dirty&&r(6,m=Mr(null==d?void 0:d.orientation,m)),2048&t.$$.dirty&&r(4,a=!((null==d?void 0:d.color)&&("transparent"===d.color||9===d.color.length&&0===d.color.indexOf("#00")))),2176&t.$$.dirty&&r(7,v=Ce(null==d?void 0:d.color,1,v)),64&t.$$.dirty&&r(9,s="horizontal"===m?"100%":xe(1)),64&t.$$.dirty&&r(8,l="horizontal"===m?xe(1):"100%"),896&t.$$.dirty&&r(3,c={background:v,width:s,height:l}),64&t.$$.dirty&&r(2,u={orientation:m})},[f,g,u,c,a,i,m,v,l,s,o,d]}const Ur={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image_is-rtl-mirror":"divkit-ae78c","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Hr(t){return t.startsWith("data:")?je(t):"data:image/jpg;base64,".concat(je(t))}function Wr(t){let e,n;return e=new In({props:{cls:Be("image",Ur,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[Kr]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=Be("image",Ur,t[9])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),67110780&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function qr(t){let e,n,r,o,i,a,l,c;return{c(){e=B("img"),this.h()},l(t){e=nt(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){J(e,"class",n=Ur.image__image),u(e.src,r=t[3]===Zr?Yr:t[4])||J(e,"src",r),J(e,"loading",o=t[26]?"eager":"lazy"),J(e,"decoding","async"),J(e,"style",i=we(t[8])),J(e,"alt",t[10]),J(e,"aria-hidden",a=t[10]?null:"true")},m(n,r){M(n,e,r),t[63](e),l||(c=[q(e,"load",t[28]),q(e,"error",t[29])],l=!0)},p(t,n){24&n[0]&&!u(e.src,r=t[3]===Zr?Yr:t[4])&&J(e,"src",r),67108864&n[0]&&o!==(o=t[26]?"eager":"lazy")&&J(e,"loading",o),256&n[0]&&i!==(i=we(t[8]))&&J(e,"style",i),1024&n[0]&&J(e,"alt",t[10]),1024&n[0]&&a!==(a=t[10]?null:"true")&&J(e,"aria-hidden",a)},d(n){n&&z(e),t[63](null),l=!1,s(c)}}}function Jr(t){let e,n,r,o,i,a,l,c,d,h,p="".concat(t[5],"%");return{c(){e=B("span"),n=B("img"),this.h()},l(t){e=nt(t,"SPAN",{class:!0});var r=Z(e);n=nt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(z),this.h()},h(){J(n,"class",r=Ur.image__image),u(n.src,o=t[3]===Zr?Yr:t[4])||J(n,"src",o),J(n,"loading",i=t[26]?"eager":"lazy"),J(n,"decoding","async"),J(n,"style",a=we(t[8])),J(n,"alt",t[10]),J(n,"aria-hidden",l=t[10]?null:"true"),J(e,"class",c=Ur["image__aspect-wrapper"]),ct(e,"padding-bottom",p)},m(r,o){M(r,e,o),O(e,n),t[62](n),d||(h=[q(n,"load",t[28]),q(n,"error",t[29])],d=!0)},p(t,r){24&r[0]&&!u(n.src,o=t[3]===Zr?Yr:t[4])&&J(n,"src",o),67108864&r[0]&&i!==(i=t[26]?"eager":"lazy")&&J(n,"loading",i),256&r[0]&&a!==(a=we(t[8]))&&J(n,"style",a),1024&r[0]&&J(n,"alt",t[10]),1024&r[0]&&l!==(l=t[10]?null:"true")&&J(n,"aria-hidden",l),32&r[0]&&p!==(p="".concat(t[5],"%"))&&ct(e,"padding-bottom",p)},d(n){n&&z(e),t[62](null),d=!1,s(h)}}}function Gr(t){let e;function n(t,e){return t[9].aspect?Jr:qr}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),M(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&z(e),o.d(t)}}}function Kr(t){let e,n=t[6],r=Gr(t);return{c(){r.c(),e=W()},l(t){r.l(t),e=W()},m(t,n){r.m(t,n),M(t,e,n)},p(t,o){64&o[0]&&d(n,n=t[6])?(r.d(1),r=Gr(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&z(e),r.d(t)}}}function Xr(t){let e,n,r=!t[7]&&Wr(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[7]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),128&n[0]&&Gt(r,1)):(r=Wr(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}const Yr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Zr=2;function Qr(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M,z,R,B,L,U=n,H=n,W=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n;t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt()));let{componentContext:ot}=e,{layoutParams:it}=e;const at=Ct(ye),st=at.direction;let lt;p(t,st,(t=>r(48,j=t)));let ct,ut,dt=0,ht=!1,pt="rgba(0,0,0,0.08)",ft=!1,gt="",mt="none",vt="50% 50%",yt="0",$t="source_in",bt="",_t="",wt=0,xt=0,Et=0,At="",jt="",Dt=!1;return kt((()=>{at.removeSvgFilter(ut,$t)})),t.$$set=t=>{"componentContext"in t&&r(0,ot=t.componentContext),"layoutParams"in t&&r(1,it=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(46,o=ot.origJson),32768&t.$$.dirty[1]&&o&&(r(33,mt="none"),r(34,vt="50% 50%"),r(36,$t="source_in")),1&t.$$.dirty[0]&&(r(25,i=ot.getDerivedFromVars(ot.json.image_url)),et(),et=h(i,(t=>r(60,R=t)))),1&t.$$.dirty[0]&&(r(24,a=ot.getDerivedFromVars(ot.json.gif_url)),nt(),nt=h(a,(t=>r(61,B=t)))),1&t.$$.dirty[0]&&(r(23,s=ot.getDerivedFromVars(ot.json.width)),tt(),tt=h(s,(t=>r(59,z=t)))),1&t.$$.dirty[0]&&(r(22,l=ot.getDerivedFromVars(ot.json.height)),Q(),Q=h(l,(t=>r(58,M=t)))),1&t.$$.dirty[0]&&(r(21,c=ot.getDerivedFromVars(ot.json.preview)),Z(),Z=h(c,(t=>r(57,T=t)))),1&t.$$.dirty[0]&&(r(20,u=ot.getDerivedFromVars(ot.json.placeholder_color)),Y(),Y=h(u,(t=>r(56,O=t)))),1&t.$$.dirty[0]&&(r(19,d=ot.getDerivedFromVars(ot.json.scale)),X(),X=h(d,(t=>r(55,I=t)))),1&t.$$.dirty[0]&&(r(18,f=ot.getDerivedFromVars({content_alignment_horizontal:ot.json.content_alignment_horizontal,content_alignment_vertical:ot.json.content_alignment_vertical})),K(),K=h(f,(t=>r(54,N=t)))),1&t.$$.dirty[0]&&(r(17,g=ot.getDerivedFromVars(ot.json.accessibility)),G(),G=h(g,(t=>r(53,P=t)))),1&t.$$.dirty[0]&&(r(16,m=ot.getDerivedFromVars(ot.json.aspect)),J(),J=h(m,(t=>r(52,S=t)))),1&t.$$.dirty[0]&&(r(15,v=ot.getDerivedFromVars(ot.json.tint_color)),q(),q=h(v,(t=>r(51,F=t)))),1&t.$$.dirty[0]&&(r(14,y=ot.getDerivedFromVars(ot.json.tint_mode)),W(),W=h(y,(t=>r(50,D=t)))),1&t.$$.dirty[0]&&(r(13,$=ot.getDerivedFromVars(ot.json.appearance_animation)),H(),H=h($,(t=>r(49,V=t)))),1&t.$$.dirty[0]&&(r(12,b=ot.getDerivedFromVars(ot.json.filters)),U(),U=h(b,(t=>r(47,A=t)))),1&t.$$.dirty[0]&&(r(11,_=ot.getDerivedFromVars(ot.json.preload_required)),rt(),rt=h(_,(t=>r(26,L=t)))),1073741825&t.$$.dirty[0]|1610612736&t.$$.dirty[1]){let t="gif"===ot.json.type?B:R;r(30,ht="empty://"===t),ht&&(t=Yr),r(4,ct=t)}if(16&t.$$.dirty[0]&&r(3,dt=0),17&t.$$.dirty[0]&&(ct?r(7,ft=!1):(r(7,ft=!0),ot.logError($e(new Error('Missing "'.concat("gif"===ot.json.type?"gif_url":"image_url",'" for "').concat(ot.json.type,'"')))))),268435456&t.$$.dirty[1]&&r(45,w="wrap_content"===(null==z?void 0:z.type)),134217728&t.$$.dirty[1]&&r(44,x="wrap_content"===(null==M?void 0:M.type)),1073741832&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(32,gt=(0===dt||dt===Zr||ht)&&T?'url("'.concat(Hr(T),'")'):""),1073741832&t.$$.dirty[0]|33554433&t.$$.dirty[1]&&r(31,pt=0===dt||dt===Zr||ht?Ce(O,1,pt):""),16777220&t.$$.dirty[1]&&r(33,mt=Pe(I)||mt),8388608&t.$$.dirty[1]&&r(34,vt=function(t,e,n){let r=t.content_alignment_horizontal;const o=t.content_alignment_vertical;return"start"===r?r="ltr"===e?"left":"right":"end"===r&&(r="ltr"===e?"right":"left"),r&&"left"!==r&&"center"!==r&&"right"!==r||o&&"top"!==o&&"center"!==o&&"bottom"!==o?n:Ne({content_alignment_horizontal:r,content_alignment_vertical:o})}(N,j,vt)),4194304&t.$$.dirty[1]&&r(10,k=(null==P?void 0:P.description)||""),2097152&t.$$.dirty[1]){const t=null==S?void 0:S.ratio;t&&fn(t)?r(5,yt=(100/Number(t)).toFixed(2)):r(5,yt="0")}if(1572912&t.$$.dirty[1]){const t=F?Ce(F):void 0,e=Gn(D,$t);t===ut&&e===$t||(at.removeSvgFilter(ut,$t),r(6,bt=t?at.addSvgFilter(t,e):""),r(35,ut=t),r(36,$t=e))}if(262144&t.$$.dirty[1]&&V&&"fade"===V.type){const t=V;r(37,_t=Xe(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(40,Et=Te(t.duration,300)),r(39,xt=Te(t.start_delay,0)),r(38,wt=Te(t.alpha,0))}if(1&t.$$.dirty[0]|196608&t.$$.dirty[1]){let t="",e="";Array.isArray(A)&&A.length&&(t=gn(A,ot.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(41,At=t),r(42,jt=e),r(43,Dt="rtl"===j&&Array.isArray(A)&&A.some((t=>"rtl_mirror"===t.type)))}40&t.$$.dirty[0]|28736&t.$$.dirty[1]&&r(9,E={aspect:"0"!==yt,"is-width-content":w,"is-height-content":x,loaded:1===dt,"before-appearance":Boolean(_t)&&0===dt,"is-rtl-mirror":Dt}),72&t.$$.dirty[0]|4047&t.$$.dirty[1]&&r(8,C={"background-image":gt,"background-color":gt?void 0:pt,"background-size":mt,"clip-path":jt||void 0,"object-fit":mt,"object-position":vt,filter:[1===dt&&bt?"url(#".concat(bt,")"):"",At].filter(Boolean).join(" "),"--divkit-appearance-interpolator":_t||void 0,"--divkit-appearance-fade-start":_t?wt:void 0,"--divkit-appearance-delay":_t?"".concat(xt,"ms"):void 0,"--divkit-appearance-duration":_t?"".concat(Et,"ms"):void 0})},[ot,it,lt,dt,ct,yt,bt,ft,C,E,k,_,b,$,y,v,m,g,f,d,u,c,l,s,a,i,L,st,function(){0===dt&&r(3,dt=1)},function(){0===dt&&r(3,dt=Zr)},ht,pt,gt,mt,vt,ut,$t,_t,wt,xt,Et,At,jt,Dt,x,w,o,A,j,V,D,F,S,P,N,I,O,T,M,z,R,B,function(t){Vt[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))},function(t){Vt[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))}]}const to=class extends pe{constructor(t){super(),de(this,t,Qr,Xr,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},eo={grid:"divkit-d9080",grid_halign_start:"divkit-fc24d",grid_halign_center:"divkit-a14a6",grid_halign_end:"divkit-cfd04",grid_valign_start:"divkit-c3106",grid_valign_center:"divkit-d4310",grid_valign_end:"divkit-fa9cf"};function no(t){return t>0&&t<1}function ro(t){return String(Math.ceil(1e3*t)/1e3)}function oo(t,e,n){if(t.some(no)){const e=Math.max(...t.filter(no).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,o=0;const i=[];if(t.every(Boolean)){o=t.reduce(((t,e)=>t+e),0);for(let i=0;i<n;++i){if(!e[i])continue;const n=e[i]/t[i]*o;n>r&&(r=n)}}for(let e=0;e<n;++e)r?i[e]="minmax(".concat(xe(r*t[e]/o),",").concat(ro(t[e]),"fr)"):t[e]?i[e]="".concat(ro(t[e]),"fr"):i[e]="auto";return i.join(" ")}function io(t,e,n){const r=t.slice();return r[31]=e[n],r}function ao(t){let e,n;return e=new In({props:{cls:Be("grid",eo,t[7]),componentContext:t[0],style:t[6],layoutParams:t[1],parentOf:t[2].map(uo),replaceItems:t[12],$$slots:{default:[lo]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.cls=Be("grid",eo,t[7])),1&n[0]&&(r.componentContext=t[0]),64&n[0]&&(r.style=t[6]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(uo)),16&n[0]|8&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function so(t){let e,n;return e=new Ds({props:{componentContext:t[31].componentContext,layoutParams:t[31].layoutParams}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.componentContext=t[31].componentContext),16&n[0]&&(r.layoutParams=t[31].layoutParams),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function lo(t){let e,n,r=Qt(t[4]),o=[];for(let e=0;e<r.length;e+=1)o[e]=so(io(t,r,e));const i=t=>Kt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=W()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=W()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);M(t,e,r),n=!0},p(t,n){if(16&n[0]){let a;for(r=Qt(t[4]),a=0;a<r.length;a+=1){const i=io(t,r,a);o[a]?(o[a].p(i,n),Gt(o[a],1)):(o[a]=so(i),o[a].c(),Gt(o[a],1),o[a].m(e.parentNode,e))}for(qt(),a=r.length;a<o.length;a+=1)i(a);Jt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Gt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Kt(o[t]);n=!1},d(t){t&&z(e),R(o,t)}}}function co(t){let e,n,r=!t[5]&&ao(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[5]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),32&n[0]&&Gt(r,1)):(r=ao(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}const uo=t=>t.json;function ho(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b=n,_=n,w=n,x=n;t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{componentContext:k}=e,{layoutParams:E}=e;const C=Ct(ye).direction;p(t,C,(t=>r(24,g=t)));let A,j,V=1,D=[],F=[],S=[],P=[],N=0,I=!1,O="start",T="start";return t.$$set=t=>{"componentContext"in t&&r(0,k=t.componentContext),"layoutParams"in t&&r(1,E=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(23,o=k.origJson),8388608&t.$$.dirty[0]&&o&&(r(13,V=1),r(20,O="start"),r(21,T="start")),1&t.$$.dirty[0]&&r(22,i=Array.isArray(k.json.items)&&k.json.items||[]),1&t.$$.dirty[0]&&(r(10,a=k.getDerivedFromVars(k.json.column_count)),x(),x=h(a,(t=>r(28,$=t)))),1&t.$$.dirty[0]&&(r(9,s=k.getDerivedFromVars(k.json.content_alignment_vertical)),_(),_=h(s,(t=>r(26,v=t)))),1&t.$$.dirty[0]&&(r(8,l=k.getDerivedFromVars(k.json.content_alignment_horizontal)),b(),b=h(l,(t=>r(25,m=t)))),268443648&t.$$.dirty[0]&&r(13,V=Tn($,V)),4194305&t.$$.dirty[0]&&r(2,c=i.map(((t,e)=>k.produceChildContext(t,{path:e})))),5&t.$$.dirty[0]){let t=[];c.forEach((e=>{t.push(k.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(3,A=me(t,(t=>[...t]))),w(),w=h(A,(t=>r(27,y=t)))}if(134471685&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,D=[]),r(15,F=[]),r(16,S=[]),r(17,P=[]),r(19,I=!1),r(4,j=c.map(((o,i)=>{var a,s,l,c;const u=y[i],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,g="match_parent"===(null===(s=u.height)||void 0===s?void 0:s.type)?Number(u.height.weight||1)/h:0,m=1===d&&"fixed"===(null===(l=u.width)||void 0===l?void 0:l.type)&&u.width.value?Number(u.width.value)/d:0,v=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let o=e;o<e+d;++o)for(let e=n;e<n+h;++e)t[o+"_"+e]?(r(19,I=!0),k.logError($e(new Error("No space for item at index ".concat(i))))):(t[o+"_"+e]=!0,(!D[o]||D[o]<f)&&r(14,D[o]=f,D),(!F[e]||F[e]<g)&&r(15,F[e]=g,F),(!S[o]||S[o]<m)&&r(16,S[o]=m,S),(!P[e]||P[e]<v)&&r(17,P[e]=v,P));do{++e,e>=V&&(e=0,++n)}while(t[e+"_"+n]);return{componentContext:o,layoutParams:{gridArea:p}}}))),r(18,N=n)}68157440&t.$$.dirty[0]&&r(20,O=qn(v,O)),52428800&t.$$.dirty[0]&&r(21,T=Wn(m,g,T)),3145728&t.$$.dirty[0]&&r(7,u={valign:O,halign:T}),516096&t.$$.dirty[0]&&r(6,d={"grid-template-columns":oo(D,S,V),"grid-template-rows":oo(F,P,N)}),524288&t.$$.dirty[0]&&r(5,f=I)},[k,E,c,A,j,f,d,u,l,s,a,C,function(t){r(0,k=Object.assign(Object.assign({},k),{json:Object.assign(Object.assign({},k.json),{items:t.filter(Ve)})}))},V,D,F,S,P,N,I,O,T,i,o,g,m,v,y,$]}const po={gallery:"divkit-cbb0f",gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},fo={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function go(t){const e=[];let n=t[0],r=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[o],r=1):r++;return e.join(" ")}function mo(t,e){let n=t%e;return n<0&&(n+=e),n}const{Boolean:vo}=j;function yo(t,e,n){const r=t.slice();return r[78]=e[n],r[79]=e,r[80]=n,r}function $o(t,e,n){const r=t.slice();return r[81]=e[n],r}function bo(t){let e,n;return e=new Ds({props:{componentContext:t[81],layoutParams:t[6]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.componentContext=t[81]),64&n[0]&&(r.layoutParams=t[6]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function _o(t){let e,n,r,o,i,a=t[80],s=Qt(t[78]),l=[];for(let e=0;e<s.length;e+=1)l[e]=bo($o(t,s,e));const c=t=>Kt(l[t],1,1,(()=>{l[t]=null})),u=()=>t[64](e,a),d=()=>t[64](null,a);return{c(){e=B("div");for(let t=0;t<l.length;t+=1)l[t].c();n=H(),this.h()},l(t){e=nt(t,"DIV",{class:!0,style:!0});var r=Z(e);for(let t=0;t<l.length;t+=1)l[t].l(r);n=it(r),r.forEach(z),this.h()},h(){J(e,"class",r=po.gallery__items),J(e,"style",o=we(t[14]))},m(t,r){M(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);O(e,n),u(),i=!0},p(r,h){if(t=r,65600&h[0]){let r;for(s=Qt(t[78]),r=0;r<s.length;r+=1){const o=$o(t,s,r);l[r]?(l[r].p(o,h),Gt(l[r],1)):(l[r]=bo(o),l[r].c(),Gt(l[r],1),l[r].m(e,n))}for(qt(),r=s.length;r<l.length;r+=1)c(r);Jt()}(!i||16384&h[0]&&o!==(o=we(t[14])))&&J(e,"style",o),a!==t[80]&&(d(),a=t[80],u())},i(t){if(!i){for(let t=0;t<s.length;t+=1)Gt(l[t]);i=!0}},o(t){l=l.filter(vo);for(let t=0;t<l.length;t+=1)Kt(l[t]);i=!1},d(t){t&&z(e),R(l,t),d()}}}function wo(t){let e,n,r=t[10]&&t[7]&&xo(t),o=t[11]&&t[7]&&ko(t);return{c(){r&&r.c(),e=H(),o&&o.c(),n=W()},l(t){r&&r.l(t),e=it(t),o&&o.l(t),n=W()},m(t,i){r&&r.m(t,i),M(t,e,i),o&&o.m(t,i),M(t,n,i)},p(t,i){t[10]&&t[7]?r?r.p(t,i):(r=xo(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]&&t[7]?o?o.p(t,i):(o=ko(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){t&&(z(e),z(n)),r&&r.d(t),o&&o.d(t)}}}function xo(t){let e,r,o,i,a=!t[29]&&function(t){let e,n,r,o;return{c(){e=L("svg"),n=L("path"),this.h()},l(t){e=rt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Z(e);n=rt(r,"path",{class:!0,d:!0}),Z(n).forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=po["gallery__arrow-icon-path"]),J(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),J(e,"class",o=fo.arrow__icon),J(e,"xmlns","http://www.w3.org/2000/svg"),J(e,"width","32"),J(e,"height","32"),J(e,"viewBox","0 0 32 32"),J(e,"fill","none")},m(t,r){M(t,e,r),O(e,n)},d(t){t&&z(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);a&&a.l(n),n.forEach(z),this.h()},h(){J(e,"class",r=t[29]||"".concat(po.gallery__arrow," ").concat(fo.arrow," ").concat(fo.arrow_left))},m(n,r){M(n,e,r),a&&a.m(e,null),o||(i=q(e,"click",t[67]),o=!0)},p:n,d(t){t&&z(e),a&&a.d(),o=!1,i()}}}function ko(t){let e,r,o,i,a=!t[30]&&function(t){let e,n,r,o;return{c(){e=L("svg"),n=L("path"),this.h()},l(t){e=rt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Z(e);n=rt(r,"path",{class:!0,d:!0}),Z(n).forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=po["gallery__arrow-icon-path"]),J(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),J(e,"class",o=fo.arrow__icon),J(e,"xmlns","http://www.w3.org/2000/svg"),J(e,"width","32"),J(e,"height","32"),J(e,"viewBox","0 0 32 32"),J(e,"fill","none")},m(t,r){M(t,e,r),O(e,n)},d(t){t&&z(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);a&&a.l(n),n.forEach(z),this.h()},h(){J(e,"class",r=t[30]||"".concat(po.gallery__arrow," ").concat(fo.arrow," ").concat(fo.arrow_right))},m(n,r){M(n,e,r),a&&a.m(e,null),o||(i=q(e,"click",t[68]),o=!0)},p:n,d(t){t&&z(e),a&&a.d(),o=!1,i()}}}function Eo(t){let e,n,r,o,i,a,s,c,u,d,h,p=Qt(t[16]),f=[];for(let e=0;e<p.length;e+=1)f[e]=_o(yo(t,p,e));const g=t=>Kt(f[t],1,1,(()=>{f[t]=null}));let m="horizontal"===t[4]&&wo(t);return{c(){e=B("div"),n=B("div");for(let t=0;t<f.length;t+=1)f[t].c();s=H(),m&&m.c(),c=W(),this.h()},l(t){e=nt(t,"DIV",{class:!0,style:!0});var r=Z(e);n=nt(r,"DIV",{class:!0,style:!0});var o=Z(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(z),r.forEach(z),s=it(t),m&&m.l(t),c=W(),this.h()},h(){J(n,"class",r=po["gallery__items-grid"]),J(n,"style",o=we(t[15])),J(e,"class",i=po.gallery__scroller+" "+(t[27]?ve["root_restrict-scroll"]:"")),J(e,"style",a=we(t[5]))},m(r,o){M(r,e,o),O(e,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(n,null);t[65](n),t[66](e),M(r,s,o),m&&m.m(r,o),M(r,c,o),u=!0,d||(h=q(e,"scroll",(function(){l(t[7]?t[33]:null)&&(t[7]?t[33]:null).apply(this,arguments)})),d=!0)},p(r,s){if(t=r,82496&s[0]){let e;for(p=Qt(t[16]),e=0;e<p.length;e+=1){const r=yo(t,p,e);f[e]?(f[e].p(r,s),Gt(f[e],1)):(f[e]=_o(r),f[e].c(),Gt(f[e],1),f[e].m(n,null))}for(qt(),e=p.length;e<f.length;e+=1)g(e);Jt()}(!u||32768&s[0]&&o!==(o=we(t[15])))&&J(n,"style",o),(!u||134217728&s[0]&&i!==(i=po.gallery__scroller+" "+(t[27]?ve["root_restrict-scroll"]:"")))&&J(e,"class",i),(!u||32&s[0]&&a!==(a=we(t[5])))&&J(e,"style",a),"horizontal"===t[4]?m?m.p(t,s):(m=wo(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)Gt(f[t]);u=!0}},o(t){f=f.filter(vo);for(let t=0;t<f.length;t+=1)Kt(f[t]);u=!1},d(n){n&&(z(e),z(s),z(c)),R(f,n),t[65](null),t[66](null),m&&m.d(n),d=!1,h()}}}function Co(t){let e,n,r,o;return e=new In({props:{cls:Be("gallery",po,t[13]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[8],replaceItems:t[31],$$slots:{default:[Eo]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(i,a){ce(e,i,a),n=!0,r||(o=q(window,"resize",(function(){l(t[7]?t[34]:null)&&(t[7]?t[34]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const o={};8192&r[0]&&(o.cls=Be("gallery",po,t[13])),1&r[0]&&(o.componentContext=t[0]),2&r[0]&&(o.layoutParams=t[1]),256&r[0]&&(o.parentOf=t[8]),134336252&r[0]|4194304&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t),r=!1,o()}}}function Ao(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M=n,z=n,R=n,B=n,L=n,U=n,H=n,W=n,q=n,J=n,G=n;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G()));let{componentContext:K}=e,{layoutParams:X}=e;const Y=Ct(ye),Z=Y.direction;let Q;p(t,Z,(t=>r(52,E=t)));let tt,et=[],nt=!1,rt=!1,ot=null,it=!1;const at=Y.getCustomization("galleryLeftClass"),st=Y.getCustomization("galleryRightClass");let lt,ct,ut,dt,ht,pt=1,ft="horizontal",gt="start",mt=8,vt="",yt=[],$t={},bt=!1,_t={},xt=0;const Et=Y.isDesktop;function At(){if(!Q)return;let t=Q.scrollLeft;"rtl"===E&&(t*=-1);const e=Q.scrollWidth,n=Q.offsetWidth;"ltr"===E?(r(10,nt=t>2),r(11,rt=t+n<e-2)):(r(11,rt=t>2),r(10,nt=t+n<e-2))}p(t,Et,(t=>r(63,O=t)));const jt=Kn(At,50);function Dt(t){Q.scroll({left:Q.scrollLeft+.75*Q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Ft(){let t=[],e=et[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<pt;++e){const r=et[e].children[n];r&&t.push(r)}return t}function St(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===ft?"left":"top";Q.scroll({[n]:t,behavior:e})}function Pt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===ft,o=r?"offsetLeft":"offsetTop",i=t[e];if(i){let t;if("ltr"!==E&&r){const e=Q.offsetWidth;t=i[o]+i.offsetWidth+.01-mt/2-e}else t=i[o]+.01-mt/2;St(t,n)}}function Nt(t){const e=Ft(),n=Q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===ft?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const o=e.map((t=>function(t,e){return"horizontal"===ft?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),i=o.findIndex(Boolean);return-1!==i?"prev"===t&&2===o.filter(Boolean).length?i+1:i:"prev"===t?1:e.length-2}return wt((()=>{r(37,it=!0),At(),xt&&Pt(Ft(),xt,"auto")})),kt((()=>{r(37,it=!1),lt&&!K.fakeElement&&(Y.unregisterInstance(lt),r(38,lt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,K=t.componentContext),"layoutParams"in t&&r(1,X=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(51,o=K.origJson),1048576&t.$$.dirty[1]&&o&&(r(39,pt=1),r(4,ft="horizontal"),r(40,gt="start"),r(42,mt=8),r(45,vt="")),1&t.$$.dirty[0]&&r(8,i=Array.isArray(K.json.items)&&K.json.items||[]),1&t.$$.dirty[0]&&(r(26,a=K.getDerivedFromVars(K.json.column_count)),J(),J=h(a,(t=>r(62,I=t)))),1&t.$$.dirty[0]&&(r(25,s=K.getDerivedFromVars(K.json.orientation)),q(),q=h(s,(t=>r(61,N=t)))),1&t.$$.dirty[0]&&(r(24,l=K.getDerivedFromVars(K.json.cross_content_alignment)),W(),W=h(l,(t=>r(60,P=t)))),1&t.$$.dirty[0]&&(r(23,c=K.getDerivedFromVars(K.json.item_spacing)),H(),H=h(c,(t=>r(59,S=t)))),1&t.$$.dirty[0]&&(r(22,u=K.getDerivedFromVars(K.json.cross_spacing)),U(),U=h(u,(t=>r(58,F=t)))),1&t.$$.dirty[0]&&(r(21,d=K.getDerivedFromVars(K.json.paddings)),L(),L=h(d,(t=>r(57,D=t)))),1&t.$$.dirty[0]&&(r(20,f=K.getDerivedFromVars(K.json.scroll_mode)),R(),R=h(f,(t=>r(55,j=t)))),1&t.$$.dirty[0]&&(r(19,g=K.getDerivedFromVars(K.json.restrict_parent_scroll)),G(),G=h(g,(t=>r(27,T=t)))),1&t.$$.dirty[0]&&(r(18,m=K.getDerivedFromVars(K.json.scrollbar)),z(),z=h(m,(t=>r(54,A=t)))),1&t.$$.dirty[0]&&(r(17,v=K.getDerivedFromVars(K.json.default_item)),M(),M=h(v,(t=>r(53,C=t)))),257&t.$$.dirty[0]&&r(50,y=i.map(((t,e)=>K.produceChildContext(t,{path:e})))),64&t.$$.dirty[1]|2&t.$$.dirty[2]&&r(7,$=O&&it),136&t.$$.dirty[0]|32&t.$$.dirty[1]&&($?"undefined"!=typeof ResizeObserver&&(r(36,ot=new ResizeObserver((()=>{jt()}))),ot.observe(tt)):ot&&(ot.disconnect(),r(36,ot=null))),256&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(39,pt=Tn(I,pt)),524544&t.$$.dirty[1]&&r(16,b=function(t,e){let n=0,r=[];for(let o=0;o<t.length;++o)r[n]||(r[n]=[]),r[n].push(t[o]),++n>=e&&(n=0);return r}(y,pt)),16&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(4,ft=Mr(N,ft)),536871424&t.$$.dirty[1]&&r(40,gt=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(P,gt)),268437504&t.$$.dirty[1]&&(r(42,mt=Te(S,mt)),r(41,ct=xe(mt))),134227968&t.$$.dirty[1]&&(r(44,dt=Te(F,mt)),r(43,ut=xe(dt))),69222400&t.$$.dirty[1]&&r(45,vt=qe(D,E,vt)),16&t.$$.dirty[0]&&r(49,_="horizontal"===ft?"grid-template-columns":"grid-template-rows"),17&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];y.forEach((e=>{const n="horizontal"===ft?"width":"height";t.push(K.getDerivedFromVars(e.json[n]))})),r(12,ht=me(t,(t=>t))),B(),B=h(ht,(t=>r(56,V=t)))}if(16&t.$$.dirty[0]|33587456&t.$$.dirty[1]&&(r(46,yt=[]),pt>1?yt.push("auto"):V.forEach((t=>{!t&&"horizontal"===ft||"match_parent"===(null==t?void 0:t.type)?yt.push("100%"):yt.push("max-content")}))),112&t.$$.dirty[0]|16780032&t.$$.dirty[1]){const t={};let e={};r(47,bt=!1),"horizontal"===ft?e.parentVAlign=gt:e.parentHAlign=gt,"paging"===j&&(r(47,bt=!0),e.scrollSnap="start",t["horizontal"===ft?"scroll-padding-left":"scroll-padding-top"]=xe(mt/2)),1===pt&&(e.parentLayoutOrientation=ft),r(5,$t=Ke(t,$t)),r(6,_t=Ke(e,_t))}20480&t.$$.dirty[1]&&r(15,w={padding:vt,"grid-gap":ut}),295936&t.$$.dirty[1]&&r(14,x={"grid-gap":ct,[_]:go(yt)}),16&t.$$.dirty[0]|8454144&t.$$.dirty[1]&&r(13,k={orientation:ft,"scroll-snap":bt,scrollbar:"auto"===A?"auto":"none"}),4325376&t.$$.dirty[1]&&r(48,xt=Te(C,xt)),1&t.$$.dirty[0]&&K.json&&jt(),21&t.$$.dirty[0]|2097280&t.$$.dirty[1]&&K.json&&(lt&&(Y.unregisterInstance(lt),r(38,lt=void 0)),K.json.id&&!K.fakeElement&&(r(38,lt=K.json.id),Y.registerInstance(lt,{setCurrentItem(t){const e=Ft();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Pt(e,t)},setPreviousItem(t,e){const n=Nt("prev"),r=Ft();let o=n-t;o<0&&(o="ring"===e?mo(o,r.length):0),Pt(r,o)},setNextItem(t,e){const n="horizontal"===ft,r="ltr"!==E&&n?-1:1,o=n?Q.scrollLeft*r+Q.offsetWidth===Q.scrollWidth:Q.scrollTop+Q.offsetHeight===Q.scrollHeight,i=Ft();if(o&&"ring"===e)return void Pt(i,0);let a=Nt("next")+t;a>i.length-1&&(a="ring"===e?mo(a,i.length):i.length-1),Pt(i,a)},scrollToStart(){St(0)},scrollToEnd(){St("ltr"===E||"horizontal"!==ft?1e6:-1e6)},scrollBackward(t,e){const n="horizontal"===ft,r="ltr"!==E&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r-t;a<0&&("clamp"===e?a=0:"ring"===e&&(a=mo(a,i))),St(a*r)},scrollForward(t,e){const n="horizontal"===ft,r="ltr"!==E&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r+t;a>i&&("clamp"===e?a=i:"ring"===e&&(a=mo(a,i))),St(a*r)},scrollToPosition(t){St("ltr"===E||"horizontal"!==ft?t:-t)}})))},[K,X,Q,tt,ft,$t,_t,$,i,et,nt,rt,ht,k,x,w,b,v,m,g,f,d,u,c,l,s,a,T,Z,at,st,function(t){r(0,K=Object.assign(Object.assign({},K),{json:Object.assign(Object.assign({},K.json),{items:t.filter(Ve)})}))},Et,At,jt,Dt,ot,it,lt,pt,gt,ct,mt,ut,dt,vt,yt,bt,xt,_,y,o,E,C,A,j,V,D,F,S,P,N,I,O,function(t,e){Vt[t?"unshift":"push"]((()=>{et[e]=t,r(9,et)}))},function(t){Vt[t?"unshift":"push"]((()=>{tt=t,r(3,tt)}))},function(t){Vt[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},()=>Dt("left"),()=>Dt("right")]}const jo={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306","tabs_height-parent_yes":"divkit-ae594",tabs__separator:"divkit-b85bf"},{Boolean:Vo}=j;function Do(t,e,n){const r=t.slice();r[93]=e[n];const o=r[93].index;r[94]=o;const i=r[29][r[94]];return r[95]=i,r}function Fo(t,e,n){const r=t.slice();r[93]=e[n];const o=r[93].index;r[94]=o;const i=r[94]===r[15];return r[98]=i,r}function So(t){let e,n;return e=new In({props:{cls:Be("tabs",jo,t[22]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[42],parentOfSimpleMode:!0,replaceItems:t[47],$$slots:{default:[Mo]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};4194304&n[0]&&(r.cls=Be("tabs",jo,t[22])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2048&n[1]&&(r.parentOf=t[42]),2143289337&n[0]|4099&n[1]|256&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Po(t){let e,n=t[93].title+"";return{c(){e=U(n)},l(t){e=ot(t,n)},m(t,n){M(t,e,n)},p(t,r){65536&r[0]&&n!==(n=t[93].title+"")&&st(e,n)},d(t){t&&z(e)}}}function No(t){let e,n;function r(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[69](t[94],...n)}return e=new hn({props:{componentContext:t[0],cls:Be("tabs__item",jo,{selected:t[98],actionable:Boolean(t[93].title_click_action)}),actions:t[93].title_click_action&&!t[0].fakeElement?[t[93].title_click_action].filter(en):[],attrs:{id:"".concat(t[45],"-tab-").concat(t[94]),"aria-controls":"".concat(t[45],"-panel-").concat(t[94]),role:"tab",tabindex:t[98]&&!t[0].fakeElement?t[93].title_click_action?void 0:"0":"-1","aria-selected":t[98]?"true":"false"},customAction:t[0].fakeElement?null:r,$$slots:{default:[Po]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(n,o){t=n;const i={};1&o[0]&&(i.componentContext=t[0]),98304&o[0]&&(i.cls=Be("tabs__item",jo,{selected:t[98],actionable:Boolean(t[93].title_click_action)})),65537&o[0]&&(i.actions=t[93].title_click_action&&!t[0].fakeElement?[t[93].title_click_action].filter(en):[]),98305&o[0]&&(i.attrs={id:"".concat(t[45],"-tab-").concat(t[94]),"aria-controls":"".concat(t[45],"-panel-").concat(t[94]),role:"tab",tabindex:t[98]&&!t[0].fakeElement?t[93].title_click_action?void 0:"0":"-1","aria-selected":t[98]?"true":"false"}),65537&o[0]&&(i.customAction=t[0].fakeElement?null:r),65536&o[0]|256&o[3]&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Io(t){let e,n,r;return{c(){e=B("div"),this.h()},l(t){e=nt(t,"DIV",{class:!0,style:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=jo.tabs__separator),J(e,"style",r=we(t[32]))},m(t,n){M(t,e,n)},p(t,n){2&n[1]&&r!==(r=we(t[32]))&&J(e,"style",r)},d(t){t&&z(e)}}}function Oo(t){let e,n;return e=new Ds({props:{componentContext:t[95],layoutParams:t[3]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};536936448&n[0]&&(r.componentContext=t[95]),8&n[0]&&(r.layoutParams=t[3]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function To(t){let e,n,r,o,i,a,s=t[95]&&Oo(t);return{c(){e=B("div"),s&&s.c(),n=H(),this.h()},l(t){e=nt(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Z(e);s&&s.l(r),n=it(r),r.forEach(z),this.h()},h(){J(e,"class",r=Be("tabs__panel",jo,{visible:t[30][t[94]]})),J(e,"role","tabpanel"),J(e,"id",o=t[45]+"-panel-"+t[94]),J(e,"aria-labelledby",i=t[45]+"-tab-"+t[94]),ct(e,"left",100*t[94]+"%")},m(t,r){M(t,e,r),s&&s.m(e,null),O(e,n),a=!0},p(t,l){t[95]?s?(s.p(t,l),536936448&l[0]&&Gt(s,1)):(s=Oo(t),s.c(),Gt(s,1),s.m(e,n)):s&&(qt(),Kt(s,1,1,(()=>{s=null})),Jt()),(!a||1073807360&l[0]&&r!==(r=Be("tabs__panel",jo,{visible:t[30][t[94]]})))&&J(e,"class",r),(!a||65536&l[0]&&o!==(o=t[45]+"-panel-"+t[94]))&&J(e,"id",o),(!a||65536&l[0]&&i!==(i=t[45]+"-tab-"+t[94]))&&J(e,"aria-labelledby",i),(!a||65536&l[0])&&ct(e,"left",100*t[94]+"%")},i(t){a||(Gt(s),a=!0)},o(t){Kt(s),a=!1},d(t){t&&z(e),s&&s.d()}}}function Mo(t){let e,n,r,o,i,a,c,u,d,h,p,f=Qt(t[16]),g=[];for(let e=0;e<f.length;e+=1)g[e]=No(Fo(t,f,e));const m=t=>Kt(g[t],1,1,(()=>{g[t]=null}));let v=t[18]&&Io(t),y=Qt(t[16]),$=[];for(let e=0;e<y.length;e+=1)$[e]=To(Do(t,y,e));const b=t=>Kt($[t],1,1,(()=>{$[t]=null}));return{c(){e=B("div");for(let t=0;t<g.length;t+=1)g[t].c();r=H(),v&&v.c(),o=H(),i=B("div"),a=B("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=nt(t,"DIV",{class:!0,role:!0});var n=Z(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(z),r=it(t),v&&v.l(t),o=it(t),i=nt(t,"DIV",{class:!0});var s=Z(i);a=nt(s,"DIV",{class:!0});var l=Z(a);for(let t=0;t<$.length;t+=1)$[t].l(l);l.forEach(z),s.forEach(z),this.h()},h(){J(e,"class",n=jo.tabs__list+" "+(t[43]?ve["root_restrict-scroll"]:"")),J(e,"role","tablist"),ct(e,"--divkit-tabs-title-padding",t[14]?Ue(t[14],t[17]):""),ct(e,"--divkit-tabs-font-size",xe(t[4])),ct(e,"--divkit-tabs-paddings",t[5]),ct(e,"--divkit-tabs-line-height",t[23]),ct(e,"--divkit-tabs-letter-spacing",t[24]),ct(e,"--divkit-tabs-active-font-weight",t[7]||""),ct(e,"--divkit-tabs-inactive-font-weight",t[8]||""),ct(e,"--divkit-tabs-active-font-family",t[25]||""),ct(e,"--divkit-tabs-inactive-font-family",t[26]||""),ct(e,"--divkit-tabs-active-text-color",t[9]),ct(e,"--divkit-tabs-inactive-text-color",t[10]),ct(e,"--divkit-tabs-active-background-color",t[11]),ct(e,"--divkit-tabs-inactive-background-color",t[12]),ct(e,"--divkit-tabs-border-radius",t[6]),ct(e,"--divkit-tabs-items-spacing",t[13]?ke(10*t[13]/t[4]):""),J(a,"class",c=Be("tabs__swiper",jo,{inited:t[27],animated:t[28]})),J(i,"class",u=jo.tabs__panels+" "+(t[43]?ve["root_restrict-scroll"]:""))},m(n,s){M(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[70](e),M(n,r,s),v&&v.m(n,s),M(n,o,s),M(n,i,s),O(i,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[71](a),t[72](i),d=!0,h||(p=[q(e,"keydown",t[49]),q(i,"touchstart",(function(){l(t[31]?t[50]:void 0)&&(t[31]?t[50]:void 0).apply(this,arguments)})),q(i,"touchmove",(function(){l(t[31]?t[51]:void 0)&&(t[31]?t[51]:void 0).apply(this,arguments)})),q(i,"touchend",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)})),q(i,"touchcancel",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)}))],h=!0)},p(r,s){if(t=r,98305&s[0]|147456&s[1]){let n;for(f=Qt(t[16]),n=0;n<f.length;n+=1){const r=Fo(t,f,n);g[n]?(g[n].p(r,s),Gt(g[n],1)):(g[n]=No(r),g[n].c(),Gt(g[n],1),g[n].m(e,null))}for(qt(),n=f.length;n<g.length;n+=1)m(n);Jt()}if((!d||4096&s[1]&&n!==(n=jo.tabs__list+" "+(t[43]?ve["root_restrict-scroll"]:"")))&&J(e,"class",n),147456&s[0]&&ct(e,"--divkit-tabs-title-padding",t[14]?Ue(t[14],t[17]):""),16&s[0]&&ct(e,"--divkit-tabs-font-size",xe(t[4])),32&s[0]&&ct(e,"--divkit-tabs-paddings",t[5]),8388608&s[0]&&ct(e,"--divkit-tabs-line-height",t[23]),16777216&s[0]&&ct(e,"--divkit-tabs-letter-spacing",t[24]),128&s[0]&&ct(e,"--divkit-tabs-active-font-weight",t[7]||""),256&s[0]&&ct(e,"--divkit-tabs-inactive-font-weight",t[8]||""),33554432&s[0]&&ct(e,"--divkit-tabs-active-font-family",t[25]||""),67108864&s[0]&&ct(e,"--divkit-tabs-inactive-font-family",t[26]||""),512&s[0]&&ct(e,"--divkit-tabs-active-text-color",t[9]),1024&s[0]&&ct(e,"--divkit-tabs-inactive-text-color",t[10]),2048&s[0]&&ct(e,"--divkit-tabs-active-background-color",t[11]),4096&s[0]&&ct(e,"--divkit-tabs-inactive-background-color",t[12]),64&s[0]&&ct(e,"--divkit-tabs-border-radius",t[6]),8208&s[0]&&ct(e,"--divkit-tabs-items-spacing",t[13]?ke(10*t[13]/t[4]):""),t[18]?v?v.p(t,s):(v=Io(t),v.c(),v.m(o.parentNode,o)):v&&(v.d(1),v=null),1610678280&s[0]|16384&s[1]){let e;for(y=Qt(t[16]),e=0;e<y.length;e+=1){const n=Do(t,y,e);$[e]?($[e].p(n,s),Gt($[e],1)):($[e]=To(n),$[e].c(),Gt($[e],1),$[e].m(a,null))}for(qt(),e=y.length;e<$.length;e+=1)b(e);Jt()}(!d||402653184&s[0]&&c!==(c=Be("tabs__swiper",jo,{inited:t[27],animated:t[28]})))&&J(a,"class",c),(!d||4096&s[1]&&u!==(u=jo.tabs__panels+" "+(t[43]?ve["root_restrict-scroll"]:"")))&&J(i,"class",u)},i(t){if(!d){for(let t=0;t<f.length;t+=1)Gt(g[t]);for(let t=0;t<y.length;t+=1)Gt($[t]);d=!0}},o(t){g=g.filter(Vo);for(let t=0;t<g.length;t+=1)Kt(g[t]);$=$.filter(Vo);for(let t=0;t<$.length;t+=1)Kt($[t]);d=!1},d(n){n&&(z(e),z(r),z(o),z(i)),R(g,n),t[70](null),v&&v.d(n),R($,n),t[71](null),t[72](null),h=!1,s(p)}}}function zo(t){let e,n,r=!t[2]&&So(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[2]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),4&n[0]&&Gt(r,1)):(r=So(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function Ro(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N=n,I=n,O=n,T=n,M=n,z=n,R=n,B=n,L=n;var U,H;t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L()));let{componentContext:W}=e,{layoutParams:q}=e;const J=Ct(ye),G=J.direction;p(t,G,(t=>r(17,A=t)));const K=J.genId("tabs");let X,Y=!1,Z=ge([]);p(t,Z,(t=>r(16,k=t)));let Q,tt,et,nt,rt,ot,it,at,st,lt={},ct={},ut=12,dt="",ht="",pt="",ft="",gt="",mt="",vt="",yt="",$t="",bt="",_t=0,wt="",xt="",Et=null,At=!1,jt=!1,Dt=[],Ft=[],St=null,Pt=null,Nt=null,Ot=!1,Tt=!1;async function Mt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ot=$,r(15,$=t),Ht(),r(28,jt=!0),Bt(100*-$),Lt(),async function(){if("match_parent"===(null==x?void 0:x.type))return;await It();const t=document.getElementById("".concat(K,"-panel-").concat($));t&&r(20,tt.style.height=xe(t.offsetHeight),tt)}(),Ut(),st=-$*tt.clientWidth,e){await It();const t=Q.querySelector(".".concat(jo.tabs__item_selected));t&&t.focus()}}function zt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==k?void 0:k.length;if(!n)return;const r=k.map((t=>t.index));let o=r.indexOf($)+t;o>=n?o=0:o<0&&(o=n-1),Mt(r[o],e)}function Rt(t,e){return $===e||(Mt(e),!1)}async function Bt(t){await It(),r(21,et.style.transform="translate3d(".concat(t,"%,0,0)"),et)}function Lt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,$-1):Math.min($,null!=ot?ot:$),n=t?Math.min(i.length-1,$+1):Math.max($,null!=ot?ot:$);r(29,Dt=Dt.map(((t,r)=>{var o;return t||(r>=e&&r<=n&&(null===(o=i[r])||void 0===o?void 0:o.div)?W.produceChildContext(i[r].div,{path:r}):void 0)}))),r(30,Ft=Ft.map(((t,r)=>r>=e&&r<=n)))}function Ut(){St&&clearTimeout(St),St=window.setTimeout((()=>{r(30,Ft=i.map(((t,e)=>e===$)))}),400)}function Ht(){At||(r(27,At=!0),r(20,tt.style.height=xe(tt.clientHeight),tt),r(21,et.style.transform="translate3d(".concat(100*-(null!=ot?ot:$),"%,0,0)"),et))}return kt((()=>{X&&(J.unregisterInstance(X),r(55,X=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,W=t.componentContext),"layoutParams"in t&&r(1,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(61,o=W.origJson),1073741824&t.$$.dirty[1]&&o&&(r(4,ut=12),r(5,dt=""),r(6,ft=""),r(7,nt=void 0),r(25,gt=""),r(8,rt=void 0),r(26,mt=""),r(9,vt=""),r(10,yt=""),r(11,$t=""),r(12,bt=""),r(13,_t=0),r(56,wt=""),r(57,xt=""),r(14,Et=null)),1&t.$$.dirty[0]&&r(58,i=Array.isArray(W.json.items)&&W.json.items||[]),134217728&t.$$.dirty[1]&&r(42,a=i.map((t=>t.div))),1&t.$$.dirty[0]&&(r(41,s=W.getDerivedFromVars(W.json.width)),B(),B=h(s,(t=>r(68,S=t)))),1&t.$$.dirty[0]&&(r(40,l=W.getDerivedFromVars(W.json.height)),N(),N=h(l,(t=>r(62,x=t)))),1&t.$$.dirty[0]&&r(60,c=W.getJsonWithVars(W.json.selected_tab)),1&t.$$.dirty[0]&&(r(39,u=W.getDerivedFromVars(W.json.tab_title_style)),R(),R=h(u,(t=>r(67,F=t)))),1&t.$$.dirty[0]&&(r(38,d=W.getDerivedFromVars(W.json.has_separator)),z(),z=h(d,(t=>r(18,D=t)))),1&t.$$.dirty[0]&&(r(37,f=W.getDerivedFromVars(W.json.separator_color)),M(),M=h(f,(t=>r(66,V=t)))),1&t.$$.dirty[0]&&(r(36,g=W.getDerivedFromVars(W.json.separator_paddings)),T(),T=h(g,(t=>r(65,j=t)))),1&t.$$.dirty[0]&&(r(35,m=W.getDerivedFromVars(W.json.switch_tabs_by_content_swipe_enabled)),O(),O=h(m,(t=>r(64,C=t)))),1&t.$$.dirty[0]&&(r(34,v=W.getDerivedFromVars(W.json.restrict_parent_scroll)),L(),L=h(v,(t=>r(43,P=t)))),1&t.$$.dirty[0]&&(r(33,y=W.getDerivedFromVars(W.json.title_paddings)),I(),I=h(y,(t=>r(63,E=t)))),536870912&t.$$.dirty[1]&&r(15,$=c&&Number(c)||0),1&t.$$.dirty[0]|134217728&t.$$.dirty[1])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=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($e(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),Z.set(t)}else Z.set([]);if(65537&t.$$.dirty[0]&&((null==k?void 0:k.length)?r(2,Y=!1):(r(2,Y=!0),W.logError($e(new Error('Incorrect or empty "items" prop for div "tabs"'))))),8&t.$$.dirty[0]|65&t.$$.dirty[2]){let t={parentContainerOrientation:"horizontal"};"wrap_content"===(null==S?void 0:S.type)&&(t.parentHorizontalWrapContent=!0),x&&"wrap_content"!==x.type||(t.parentVerticalWrapContent=!0),r(3,lt=Ke(t,lt))}if(32773&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&!Y&&($<0||$>=i.length)&&(W.logError($e(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:W.json.selected_tab,length:i.length}})),r(15,$=$<0?0:i.length-1)),98309&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&(Y||k.some((t=>$===t.index))||(W.logError($e(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:W.json.selected_tab}})),r(15,$=(null===r(53,U=k[0])||void 0===U?void 0:U.index)||0))),32&t.$$.dirty[2]&&r(59,b=F||{}),16&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(4,ut=Tn(b.font_size,ut)),131120&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(b.font_size||b.paddings)){const t=b.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/ut*10,right:(Number("ltr"===A?t.end:t.start)||Number(t.right)||0)/ut*10,bottom:(Number(t.bottom)||0)/ut*10,left:(Number("ltr"===A?t.start:t.end)||Number(t.left)||0)/ut*10};r(5,dt=qe(e,A,dt))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=b.line_height;void 0!==t&&fn(t)&&r(23,ht=xe(t/ut*10))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=b.letter_spacing;void 0!==t&&We(t)&&r(24,pt=xe(t/ut*10))}if(80&t.$$.dirty[0]|276824064&t.$$.dirty[1]&&(b.corner_radius||b.corners_radius||b.font_size)){const t=null!==r(54,H=b.corner_radius)&&void 0!==H?H:1e3;b.corners_radius?r(6,ft=function(t,e,n,r){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<o.length;++t)if(o[t]&&!We(o[t]))return r;return tn(t,e,n)}(b.corners_radius,t,ut,ft)):We(t)&&r(6,ft=xe(t/ut*10))}128&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(7,nt=zn(b.active_font_weight||b.font_weight,nt)),b.font_family&&"string"==typeof b.font_family?r(25,gt=J.typefaceProvider(b.font_family,{fontWeight:nt||400})):r(25,gt="")),256&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(8,rt=zn(b.inactive_font_weight||b.font_weight,rt)),b.font_family&&"string"==typeof b.font_family?r(26,mt=J.typefaceProvider(b.font_family,{fontWeight:rt||400})):r(26,mt="")),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(9,vt=Ce(b.active_text_color,1,vt)),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,yt=Ce(b.inactive_text_color,1,yt)),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,$t=Ce(b.active_background_color,1,$t)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(12,bt=Ce(b.inactive_background_color,1,bt)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(13,_t=Te(b.item_spacing,_t)),393216&t.$$.dirty[0]|100663296&t.$$.dirty[1]|24&t.$$.dirty[2]&&D&&(V&&r(56,wt=Ce(V,1,wt)),j&&r(57,xt=qe(j,A,xt))),100663296&t.$$.dirty[1]&&r(32,_={background:wt,margin:xt}),4&t.$$.dirty[2]&&r(31,w=void 0===C||Boolean(C)),16384&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(14,Et=Qe(E||void 0,Et)),134217728&t.$$.dirty[1]&&function(t){Y||(r(29,Dt=t.map(((t,e)=>{if(e===$&&(null==t?void 0:t.div))return W.produceChildContext(t.div,{path:e})}))),r(30,Ft=t.map(((t,e)=>e===$))))}(i),32773&t.$$.dirty[0]|150994944&t.$$.dirty[1]&&W.json&&(X&&(J.unregisterInstance(X),r(55,X=void 0)),!W.json.id||Y||W.fakeElement||(r(55,X=W.json.id),J.registerInstance(X,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Mt(t)},setPreviousItem(t,e){let n=$-t;n<0&&(n="ring"===e?mo(n,i.length):0),Mt(n)},setNextItem(t,e){let n=$+t;n>i.length-1&&(n="ring"===e?mo(n,i.length):i.length-1),Mt(n)},scrollToStart(){Mt(0)},scrollToEnd(){Mt(i.length-1)}}))),1&t.$$.dirty[2]&&r(22,ct={"height-parent":"match_parent"===(null==x?void 0:x.type)?"yes":""})},[W,q,Y,lt,ut,dt,ft,nt,rt,vt,yt,$t,bt,_t,Et,$,k,A,D,Q,tt,et,ct,ht,pt,gt,mt,At,jt,Dt,Ft,w,_,y,v,m,g,f,d,u,l,s,a,P,G,K,Z,function(t){W.json.items&&r(0,W=Object.assign(Object.assign({},W),{json:Object.assign(Object.assign({},W.json),{items:W.json.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))})}))},Rt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(37===t.which)zt(-1,!0);else if(39===t.which)zt(1,!0);else if(36===t.which)Mt(0,!0);else{if(35!==t.which)return;Mt(i.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,o=null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,".".concat(ve["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==tt||(Ot=!1,Tt=!1,Pt=sn(t),Nt=null,it=Date.now(),at=st||-$*tt.clientWidth,r(28,jt=!1),St&&clearTimeout(St))},function(t){const e=sn(t);if(!Pt||Nt&&Nt.x===e.x&&Nt.y===e.y)return;Nt=e;const n=tt.clientWidth;if(Ot){st=e.x-Pt.x+at;const t=n*i.length;if(st>0)st=st*n/(st+3*n);else if(-st+n>t){let e=-st+n-t;e=e*n/(e+3*n),st=n-t-e}Bt(100*st/n)}else Math.abs(e.y-Pt.y)>10?Tt=!0:!Tt&&Math.abs(e.x-Pt.x)>8&&(Ht(),Ot=!0,Pt=e,Bt(100*-$),Lt(!0));Ot&&t.cancelable&&t.preventDefault()},function(){Tt=!1,Pt=null;let t=$;if(!Ot)return;Ot=!1;const e=Math.min(512,tt.clientWidth);Math.abs(at-st)>e/4*Math.min(1,(Date.now()-it)/750)&&(t+=at>st?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===$?(r(28,jt=!0),st=-t*e,Bt(100*-t),Ut()):Mt(t)},U,H,X,wt,xt,i,b,c,o,x,E,C,j,V,F,S,(t,e)=>Rt(0,t),function(t){Vt[t?"unshift":"push"]((()=>{Q=t,r(19,Q)}))},function(t){Vt[t?"unshift":"push"]((()=>{et=t,r(21,et)}))},function(t){Vt[t?"unshift":"push"]((()=>{tt=t,r(20,tt)}))}]}const Bo={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Lo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Uo(t){return t*t*t}function Ho(t){const e=t-1;return e*e*e+1}function Wo(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),o=n-r;return t[r]*o+t[r+1]*(1-o)}}const qo=Wo([.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]),Jo=Wo([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]),Go={linear:r,ease:qo,ease_in:Uo,ease_out:Ho,ease_in_out:Lo,spring:Jo},Ko=200,Xo=0,Yo=0,Zo=0;function Qo(t){return Math.max(...t.map((t=>(Number(t.duration)||Ko)+(Number(t.start_delay)||Xo))))}function ti(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:rn()?0:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||Xo,a=Number(t.duration)||Ko,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-s:s,u=(Go[t.interpolator||"ease_in_out"]||Lo)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Yo)};if("slide"===t.type){var d;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let i=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===i&&(i="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(o["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(o["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=i*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,p;const e=1-u+u*(t.scale||Zo),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,o=null!==(p=t.pivot_y)&&void 0!==p?p:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:u>0&&u<1,scale:"translate(".concat(i,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=s.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=s.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=s.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=s.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function ei(t,e,n){return t*(1-n)+e*n}const ni={linear:r,ease:qo,ease_in:Uo,ease_out:Ho,ease_in_out:Lo,spring:Jo},ri=200,oi=0;function ii(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:oi,duration:rn()?0:null!==(r=s.duration)&&void 0!==r?r:ri,easing:s.interpolator&&s.interpolator in ni?ni[s.interpolator]:Lo,css:t=>["top:".concat(ei(i.top,a.top,t)-o.top,"px"),"left:".concat(ei(i.left,a.left,t)-o.left,"px"),"width:".concat(ei(i.width,a.width,t),"px"),"height:".concat(ei(i.height,a.height,t),"px")].join(";")}}function ai(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...ai(t))})):e.push(t),e}const{Map:si}=j;function li(t,e,n){const r=t.slice();return r[35]=e[n],r}function ci(t){let e,n;return e=new In({props:{cls:Bo.state,componentContext:t[0],layoutParams:t[1],parentOf:t[7],parentOfSimpleMode:!0,replaceItems:t[8],$$slots:{default:[gi]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),128&n[0]&&(r.parentOf=t[7]),120&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function ui(t){let e,r,o=t[5],i=di(t);return{c(){i.c(),e=W()},l(t){i.l(t),e=W()},m(t,n){i.m(t,n),M(t,e,n),r=!0},p(t,r){32&r[0]&&d(o,o=t[5])?(qt(),Kt(i,1,1,n),Jt(),i=di(t),i.c(),Gt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Gt(i),r=!0)},o(t){Kt(i),r=!1},d(t){t&&z(e),i.d(t)}}}function di(t){let e,n;return e=new Ds({props:{componentContext:t[6]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.componentContext=t[6]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function hi(t){let e,n,r,o,i,a,s,l,c,u;function d(){return t[17](t[35])}return r=new Ds({props:{componentContext:t[35].componentContextCopy}}),{c(){e=B("div"),n=B("div"),se(r.$$.fragment),i=H(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var o=Z(e);n=nt(o,"DIV",{class:!0});var a=Z(n);le(r.$$.fragment,a),a.forEach(z),i=it(o),o.forEach(z),this.h()},h(){J(n,"class",o=Bo["state__animation-child-inner"]),J(e,"class",a=Bo["state__animation-child"])},m(t,o){M(t,e,o),O(e,n),ce(r,n,null),O(e,i),l=!0,c||(u=q(e,"introend",d),c=!0)},p(e,n){t=e;const o={};16&n[0]&&(o.componentContext=t[35].componentContextCopy),r.$set(o)},i(n){l||(Gt(r.$$.fragment,n),s||Ot((()=>{s=Yt(e,ii,t[35]),s.start()})),l=!0)},o(t){Kt(r.$$.fragment,t),l=!1},d(t){t&&z(e),ue(r),c=!1,u()}}}function pi(t){let e,n,r,o,i,a,s,l,c,u,d="".concat(t[35].offsetLeft,"px"),h="".concat(t[35].offsetTop,"px"),p="".concat(t[35].width,"px"),f="".concat(t[35].height,"px");function g(){return t[16](t[35])}return r=new Ds({props:{componentContext:t[35].componentContextCopy}}),{c(){e=B("div"),n=B("div"),se(r.$$.fragment),i=H(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var o=Z(e);n=nt(o,"DIV",{class:!0});var a=Z(n);le(r.$$.fragment,a),a.forEach(z),i=it(o),o.forEach(z),this.h()},h(){J(n,"class",o=Bo["state__animation-child-inner"]),J(e,"class",a=Bo["state__animation-child"]),ct(e,"left",d),ct(e,"top",h),ct(e,"width",p),ct(e,"height",f)},m(t,o){M(t,e,o),O(e,n),ce(r,n,null),O(e,i),l=!0,c||(u=q(e,"introend",g),c=!0)},p(n,o){t=n;const i={};16&o[0]&&(i.componentContext=t[35].componentContextCopy),r.$set(i),16&o[0]&&d!==(d="".concat(t[35].offsetLeft,"px"))&&ct(e,"left",d),16&o[0]&&h!==(h="".concat(t[35].offsetTop,"px"))&&ct(e,"top",h),16&o[0]&&p!==(p="".concat(t[35].width,"px"))&&ct(e,"width",p),16&o[0]&&f!==(f="".concat(t[35].height,"px"))&&ct(e,"height",f)},i(n){l||(Gt(r.$$.fragment,n),s||Ot((()=>{s=Yt(e,ti,t[35]),s.start()})),l=!0)},o(t){Kt(r.$$.fragment,t),l=!1},d(t){t&&z(e),ue(r),c=!1,u()}}}function fi(t,e){let n,r,o,i,a;const s=[pi,hi],l=[];function c(t,e){return"direction"in t[35]?0:1}return r=c(e),o=l[r]=s[r](e),{key:t,first:null,c(){n=W(),o.c(),i=W(),this.h()},l(t){n=W(),o.l(t),i=W(),this.h()},h(){this.first=n},m(t,e){M(t,n,e),l[r].m(t,e),M(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(qt(),Kt(l[a],1,1,(()=>{l[a]=null})),Jt(),o=l[r],o?o.p(e,n):(o=l[r]=s[r](e),o.c()),Gt(o,1),o.m(i.parentNode,i))},i(t){a||(Gt(o),a=!0)},o(t){Kt(o),a=!1},d(t){t&&(z(n),z(i)),l[r].d(t)}}}function gi(t){let e,n,r,o,i=[],a=new si,s=t[6]&&ui(t),l=Qt(t[4]);const c=t=>t[35];for(let e=0;e<l.length;e+=1){let n=li(t,l,e),r=c(n);a.set(r,i[e]=fi(r,n))}return{c(){s&&s.c(),e=H(),n=B("div");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){s&&s.l(t),e=it(t),n=nt(t,"DIV",{class:!0,"aria-hidden":!0});var r=Z(n);for(let t=0;t<i.length;t+=1)i[t].l(r);r.forEach(z),this.h()},h(){J(n,"class",r=Bo.state__animations),J(n,"aria-hidden","true")},m(r,a){s&&s.m(r,a),M(r,e,a),M(r,n,a);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null);t[18](n),o=!0},p(t,r){t[6]?s?(s.p(t,r),64&r[0]&&Gt(s,1)):(s=ui(t),s.c(),Gt(s,1),s.m(e.parentNode,e)):s&&(qt(),Kt(s,1,1,(()=>{s=null})),Jt()),528&r[0]&&(l=Qt(t[4]),qt(),i=ee(i,r,c,1,t,l,a,n,te,fi,null,li),Jt())},i(t){if(!o){Gt(s);for(let t=0;t<l.length;t+=1)Gt(i[t]);o=!0}},o(t){Kt(s);for(let t=0;t<i.length;t+=1)Kt(i[t]);o=!1},d(r){r&&(z(e),z(n)),s&&s.d(r);for(let t=0;t<i.length;t+=1)i[t].d();t[18](null)}}}function mi(t){let e,n,r=!t[2]&&ci(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[2]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),4&n[0]&&Gt(r,1)):(r=ci(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function vi(t){return"change_bounds"===t.type?t:"set"===t.type?vi(t.items[0]):null}function yi(t,e,n){let r,o,i,a,s,l,c,{componentContext:u}=e,{layoutParams:d}=e;const h=Ct(ye),p=Ct(Le);let f,g,m,v,y=!1,$=new Map,b=new Set,_=null,w=[],x=[],k=[],E=[],C=!1;function A(t){n(6,v=(null==t?void 0:t.div)?u.produceChildContext(t.div,{path:t.state_id||"<unknown>"}):void 0)}function j(t,e,n){let{json:r,parentComponentContext:o,transitions:i,node:a}=e;r=u.getJsonWithVars(r),i=u.getJsonWithVars(i);const s=ai(i),l=a.getBoundingClientRect(),c=Object.assign(Object.assign({},r),{margins:void 0,alpha:(d=s,d.some((t=>"fade"===t.type))?void 0:r.alpha)});var d;return{json:c,componentContextCopy:o.produceChildContext(c,{fake:!0}),elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node}}async function V(t){if(m===t)return;h.setRunning("stateChange",!0);const e=new Set(b);w.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(4,w=[]);let r=[];if(f){const t=f.getBoundingClientRect();r=k.map((e=>j(t,e,"out")))}E.forEach((t=>{$.set(t.id,t.node.getBoundingClientRect())})),x=[],k=[],E=[];const o=l.find((e=>e.state_id===t))||null;if(o?(n(5,m=t),null==a||a.setValue(m),A(o)):u.logError($e(new Error("Cannot find state with id"),{additional:{stateId:t}})),await It(),!f)return;const i=f.getBoundingClientRect();let s=x.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>j(i,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||b.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=r.concat(s),d=c.reduce(((t,e)=>Math.max(t,Qo(e.transitions))),0),p=E.filter((t=>$.has(t.id))).map((t=>{const e=Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}});return{json:e,componentContextCopy:t.parentComponentContext.produceChildContext(e,{fake:!0}),rootBbox:i,beforeBbox:$.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:u.getJsonWithVars(vi(t.transitions)),resolvePromise:t.resolvePromise}}));n(4,w=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:d}))),...p]),$.clear(),h.setRunning("stateChange",!1)}function D(t){if(_&&_.has(t))return _.get(t);u.logError($e(new Error("Missing state block with id"),{additional:{id:t}}))}function F(t){n(4,w=w.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return Et(Le,{registerInstance(t,e){_||(_=new Map),_.has(t)?u.logError($e(new Error("Duplicate state with id"),{additional:{id:t}})):_.set(t,e)},unregisterInstance(t){null==_||_.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!f)return Promise.resolve();const a=j(f.getBoundingClientRect(),{json:t,parentComponentContext:e,transitions:r,node:o},i),s=Qo(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(4,w=[...w.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return x.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return k.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const o=t.id;if(!o)return Promise.resolve();const i={id:o,json:t,parentComponentContext:e,transitions:n,node:r};return E.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&$.has(t),registerChild(t){b.add(t)},unregisterChild(t){b.delete(t)}}),kt((()=>{g&&p.unregisterInstance(g)})),t.$$set=t=>{"componentContext"in t&&n(0,u=t.componentContext),"layoutParams"in t&&n(1,d=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(13,r=u.json.div_id||u.json.id),1&t.$$.dirty[0]&&(o=u.getJsonWithVars(u.json.default_state_id)),1&t.$$.dirty[0]&&n(15,i=u.json.state_id_variable),32769&t.$$.dirty[0]&&(a=i?u.getVariable(i,"string"):null),1&t.$$.dirty[0]&&n(14,s=u.origJson),16384&t.$$.dirty[0]&&s&&n(11,C=!1),8193&t.$$.dirty[0]&&(r?n(2,y=!1):(n(2,y=!0),u.logError($e(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&u.json&&(b=new Set),1&t.$$.dirty[0]&&n(12,l=Array.isArray(u.json.states)&&u.json.states||[]),4096&t.$$.dirty[0]&&n(7,c=l.map((t=>t.div))),4097&t.$$.dirty[0]&&((null==l?void 0:l.length)?n(2,y=!1):(n(2,y=!0),u.logError($e(new Error('Empty "states" prop for div "state"'))))),9217&t.$$.dirty[0]&&u.json&&(g&&(p.unregisterInstance(g),n(10,g=void 0)),r&&!(null==u?void 0:u.fakeElement)&&(n(10,g=r),p.registerInstance(r,{setState:V,getChild:D}))),6144&t.$$.dirty[0]&&!C&&function(t){if(!C&&(n(11,C=!0),t.length)){const e=(null==a?void 0:a.getValue())||o;if(e){n(5,m=e);const r=t.find((t=>t.state_id===m))||null;A(r),r||u.logError($e(new Error("Cannot find state for default_state_id"),{additional:{selectedId:m}}))}else{const e=t[0];n(5,m=e.state_id),A(e)}a&&(a.setValue(m),a.subscribe((t=>{V(t)})))}}(l)},[u,d,y,f,w,m,v,c,function(t){const e=u.json.states;e&&(n(12,l=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))),n(0,u.json=Object.assign(Object.assign({},u.json),{states:l}),u),m&&A(l.find((t=>t.state_id===m))||null))},F,g,C,l,r,s,i,t=>F(t),t=>F(t),function(t){Vt[t?"unshift":"push"]((()=>{f=t,n(3,f)}))}]}const $i={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:bi}=j;function _i(t,e,n){const r=t.slice();return r[65]=e[n],r}function wi(t){let e,n;return e=new In({props:{cls:Be("pager",$i,t[10]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[2].map(ji),replaceItems:t[23],$$slots:{default:[Ci]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Be("pager",$i,t[10])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(ji)),134068&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function xi(t){let e,n,r,o,i;return n=new Ds({props:{componentContext:t[65]}}),{c(){e=B("div"),se(n.$$.fragment),r=H(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var o=Z(e);le(n.$$.fragment,o),r=it(o),o.forEach(z),this.h()},h(){J(e,"class",o=$i.pager__item)},m(t,o){M(t,e,o),ce(n,e,null),O(e,r),i=!0},p(t,e){const r={};4&e[0]&&(r.componentContext=t[65]),n.$set(r)},i(t){i||(Gt(n.$$.fragment,t),i=!0)},o(t){Kt(n.$$.fragment,t),i=!1},d(t){t&&z(e),ue(n)}}}function ki(t){let e,r,o,i,a=!t[19]&&function(t){let e,n,r,o;return{c(){e=L("svg"),n=L("path"),this.h()},l(t){e=rt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Z(e);n=rt(r,"path",{class:!0,d:!0}),Z(n).forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=$i["pager__arrow-icon-path"]),J(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),J(e,"class",o=fo.arrow__icon),J(e,"xmlns","http://www.w3.org/2000/svg"),J(e,"width","32"),J(e,"height","32"),J(e,"viewBox","0 0 32 32"),J(e,"fill","none")},m(t,r){M(t,e,r),O(e,n)},d(t){t&&z(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);a&&a.l(n),n.forEach(z),this.h()},h(){J(e,"class",r=t[19]||"".concat($i.pager__arrow," ").concat(fo.arrow," ").concat(fo.arrow_left))},m(n,r){M(n,e,r),a&&a.m(e,null),o||(i=q(e,"click",t[52]),o=!0)},p:n,d(t){t&&z(e),a&&a.d(),o=!1,i()}}}function Ei(t){let e,r,o,i,a=!t[20]&&function(t){let e,n,r,o;return{c(){e=L("svg"),n=L("path"),this.h()},l(t){e=rt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Z(e);n=rt(r,"path",{class:!0,d:!0}),Z(n).forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=$i["pager__arrow-icon-path"]),J(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),J(e,"class",o=fo.arrow__icon),J(e,"xmlns","http://www.w3.org/2000/svg"),J(e,"width","32"),J(e,"height","32"),J(e,"viewBox","0 0 32 32"),J(e,"fill","none")},m(t,r){M(t,e,r),O(e,n)},d(t){t&&z(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);a&&a.l(n),n.forEach(z),this.h()},h(){J(e,"class",r=t[20]||"".concat($i.pager__arrow," ").concat(fo.arrow," ").concat(fo.arrow_right))},m(n,r){M(n,e,r),a&&a.m(e,null),o||(i=q(e,"click",t[53]),o=!0)},p:n,d(t){t&&z(e),a&&a.d(),o=!1,i()}}}function Ci(t){let e,n,r,o,i,a,s,l,c,u=Qt(t[2]),d=[];for(let e=0;e<u.length;e+=1)d[e]=xi(_i(t,u,e));const h=t=>Kt(d[t],1,1,(()=>{d[t]=null}));let p=t[8]&&t[9]&&ki(t),f=t[7]&&t[9]&&Ei(t);return{c(){e=B("div");for(let t=0;t<d.length;t+=1)d[t].c();o=H(),p&&p.c(),i=H(),f&&f.c(),a=W(),this.h()},l(t){e=nt(t,"DIV",{class:!0,style:!0});var n=Z(e);for(let t=0;t<d.length;t+=1)d[t].l(n);n.forEach(z),o=it(t),p&&p.l(t),i=it(t),f&&f.l(t),a=W(),this.h()},h(){J(e,"class",n=$i.pager__items+" "+(t[17]?ve["root_restrict-scroll"]:"")),J(e,"style",r=we(t[11]))},m(n,r){M(n,e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);t[51](e),M(n,o,r),p&&p.m(n,r),M(n,i,r),f&&f.m(n,r),M(n,a,r),s=!0,l||(c=q(e,"scroll",t[22]),l=!0)},p(t,o){if(4&o[0]){let n;for(u=Qt(t[2]),n=0;n<u.length;n+=1){const r=_i(t,u,n);d[n]?(d[n].p(r,o),Gt(d[n],1)):(d[n]=xi(r),d[n].c(),Gt(d[n],1),d[n].m(e,null))}for(qt(),n=u.length;n<d.length;n+=1)h(n);Jt()}(!s||131072&o[0]&&n!==(n=$i.pager__items+" "+(t[17]?ve["root_restrict-scroll"]:"")))&&J(e,"class",n),(!s||2048&o[0]&&r!==(r=we(t[11])))&&J(e,"style",r),t[8]&&t[9]?p?p.p(t,o):(p=ki(t),p.c(),p.m(i.parentNode,i)):p&&(p.d(1),p=null),t[7]&&t[9]?f?f.p(t,o):(f=Ei(t),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(t){if(!s){for(let t=0;t<u.length;t+=1)Gt(d[t]);s=!0}},o(t){d=d.filter(bi);for(let t=0;t<d.length;t+=1)Kt(d[t]);s=!1},d(n){n&&(z(e),z(o),z(i),z(a)),R(d,n),t[51](null),p&&p.d(n),f&&f.d(n),l=!1,c()}}}function Ai(t){let e,n,r=!t[3]&&wi(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[3]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),8&n[0]&&Gt(r,1)):(r=wi(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}const ji=t=>t.json;function Vi(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,b,_,w,x,k,E,C,A,j,V,D=n,F=n,S=n,P=n,N=n,I=n;var O,T,M,z,R,B,L,U,H,W;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I()));let{componentContext:q}=e,{layoutParams:J}=e;const G=Ct(ye),K=G.direction;p(t,K,(t=>r(4,x=t)));const X=G.genId("pager"),Y=G.getCustomization("pagerLeftClass"),Z=G.getCustomization("pagerRightClass"),Q=G.isDesktop;p(t,Q,(t=>r(46,k=t)));const tt=Kn((function(){if(!rt)return;const t=function(){const t=Array.from(nt.children),e=nt.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===st?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:ot}();t!==ot&&r(38,ot=t)}),50);let et,nt,rt=!1,ot=0,it=0,at=!1,st="horizontal",lt="",ct="",ut="";function dt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===st,o=nt.children[t],i=n?"offsetLeft":"offsetTop",a=n?"left":"top";nt.scroll({[a]:o[i],behavior:e}),r(38,ot=t)}function ht(t,e){let n=ot-t;n<0&&(n="ring"===e?mo(n,u.length):0),dt(n)}function pt(t,e){let n=ot+t;n>u.length-1&&(n="ring"===e?mo(n,u.length):u.length-1),dt(n)}return wt((()=>{if(r(37,rt=!0),Boolean(document.getElementById("".concat(X,"-tab-0")))){const t=[...nt.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(X,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(X,"-tab-").concat(e))}})),kt((()=>{r(37,rt=!1),et&&(G.unregisterInstance(et),r(36,et=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,q=t.componentContext),"layoutParams"in t&&r(1,J=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(45,o=q.origJson),16384&t.$$.dirty[1]&&o&&r(42,ct=""),1&t.$$.dirty[0]&&(r(16,i=q.getDerivedFromVars(q.json.layout_mode)),F(),F=h(i,(t=>r(47,E=t)))),1&t.$$.dirty[0]&&(r(15,a=q.getDerivedFromVars(q.json.orientation)),N(),N=h(a,(t=>r(50,j=t)))),1&t.$$.dirty[0]&&(r(14,s=q.getDerivedFromVars(q.json.item_spacing)),P(),P=h(s,(t=>r(49,A=t)))),1&t.$$.dirty[0]&&(r(13,l=q.getDerivedFromVars(q.json.paddings)),S(),S=h(l,(t=>r(48,C=t)))),1&t.$$.dirty[0]&&(r(12,c=q.getDerivedFromVars(q.json.restrict_parent_scroll)),I(),I=h(c,(t=>r(17,V=t)))),1&t.$$.dirty[0]&&r(2,u=(Array.isArray(q.json.items)&&q.json.items||[]).map(((t,e)=>q.produceChildContext(t,{path:e})))),1&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(E?"percentage"!==E.type&&"fixed"!==E.type?(r(39,at=!0),q.logError($e(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(39,at=!1):(r(39,at=!0),q.logError($e(new Error('Empty "layout_mode" prop for div "pager"'))))),524800&t.$$.dirty[1]&&r(40,st=Mr(j,st)),262144&t.$$.dirty[1]){const t=null==A?void 0:A.value;t&&We(t)&&r(41,lt=xe(t||0))}if(16&t.$$.dirty[0]|133120&t.$$.dirty[1]&&r(42,ct=qe(C,x,ct)),512&t.$$.dirty[1]&&r(44,d="horizontal"===st?"grid-auto-columns":"grid-auto-rows"),2080374801&t.$$.dirty[0]|67103&t.$$.dirty[1])if("fixed"===(null==E?void 0:E.type)){const t=ke("horizontal"===st?(("ltr"===x?null===r(26,O=q.json.paddings)||void 0===O?void 0:O.start:null===r(27,T=q.json.paddings)||void 0===T?void 0:T.end)||(null===r(28,M=q.json.paddings)||void 0===M?void 0:M.left)||0)+(("ltr"===x?null===r(29,z=q.json.paddings)||void 0===z?void 0:z.end:null===r(30,R=q.json.paddings)||void 0===R?void 0:R.start)||(null===r(31,B=q.json.paddings)||void 0===B?void 0:B.right)||0):((null===r(32,L=q.json.paddings)||void 0===L?void 0:L.top)||0)+((null===r(33,U=q.json.paddings)||void 0===U?void 0:U.bottom)||0)),e=null===r(34,H=E.neighbour_page_width)||void 0===H?void 0:H.value;r(43,ut=e?"calc(100% + ".concat(t," - 2 * ").concat(ke(e)," - 2 * ").concat(lt,")"):"100%")}else if("percentage"===(null==E?void 0:E.type)){const t=null===r(35,W=E.page_width)||void 0===W?void 0:W.value;r(43,ut="".concat(Number(t),"%"))}15360&t.$$.dirty[1]&&r(11,f={"grid-gap":lt,padding:ct,[d]:ut}),512&t.$$.dirty[1]&&r(10,g={orientation:st}),256&t.$$.dirty[1]&&r(3,m=at),8&t.$$.dirty[0]|32832&t.$$.dirty[1]&&r(9,v=k&&rt&&!m),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(8,y="ltr"===x?ot>0:ot+1<u.length),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(7,b="ltr"===x?ot+1<u.length:ot>0),4&t.$$.dirty[0]|128&t.$$.dirty[1]&&function(t,e){const n=q.json.id;if(n){const r=new Map(w);$(_,w=r.set(n,{instId:X,size:t,currentItem:e,scrollToPagerItem:dt}),w)}}(u.length,ot),128&t.$$.dirty[1]&&function(t){var e;if(t===it)return;it=t;const n=q.getJsonWithVars(null===(e=u[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&q.execAnyActions(n)}(ot),5&t.$$.dirty[0]|32&t.$$.dirty[1]&&q.json&&(et&&(G.unregisterInstance(et),r(36,et=void 0)),q.json.id&&!q.fakeElement&&(r(36,et=q.json.id),G.registerInstance(et,{setCurrentItem(t){if(t<0||t>u.length-1)throw new Error('Item is out of range in "set-current-item" action');dt(t)},setPreviousItem:ht,setNextItem:pt,scrollToStart(){dt(0)},scrollToEnd(){dt(u.length-1)}})))},r(6,_=G.getStore("pagers")),D(),D=h(_,(t=>r(55,w=t))),[q,J,u,m,x,nt,_,b,y,v,g,f,c,l,s,a,i,V,K,Y,Z,Q,tt,function(t){r(0,q=Object.assign(Object.assign({},q),{json:Object.assign(Object.assign({},q.json),{items:t.filter(Ve)})}))},ht,pt,O,T,M,z,R,B,L,U,H,W,et,rt,ot,at,st,lt,ct,ut,d,o,k,E,C,A,j,function(t){Vt[t?"unshift":"push"]((()=>{nt=t,r(5,nt)}))},()=>("ltr"===x?ht:pt)(1,"clamp"),()=>("ltr"===x?pt:ht)(1,"clamp")]}const Di={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_direction_ltr:"divkit-a7473",indicator_direction_rtl:"divkit-a7d63",indicator_placement_stretch:"divkit-b6bd3"};function Fi(t,e,n){const r=t.slice();r[44]=e[n],r[47]=n;const o=r[47]===r[10].currentItem;return r[45]=o,r}function Si(t){let e,n=Qt(Array(t[10].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=Pi(Fi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=W()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=W()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);M(t,e,n)},p(t,o){if(12583936&o[0]){let i;for(n=Qt(Array(t[10].size)),i=0;i<n.length;i+=1){const a=Fi(t,n,i);r[i]?r[i].p(a,o):(r[i]=Pi(a),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(t){t&&z(e),R(r,t)}}}function Pi(t){let e,n,r,o,i,a,l,c;function u(){return t[37](t[47])}return{c(){e=B("div"),this.h()},l(t){e=nt(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=Be("indicator__item",Di,{active:t[45]})+" "+ve.root__clickable),J(e,"role","tab"),J(e,"id",r=t[10].instId+"-tab-"+t[47]),J(e,"aria-controls",o=t[10].instId+"-panel-"+t[47]),J(e,"aria-selected",i=t[45]?"true":"false"),J(e,"tabindex",a=t[45]?0:-1)},m(n,r){M(n,e,r),l||(c=[q(e,"click",u),q(e,"keydown",t[23])],l=!0)},p(s,l){t=s,1024&l[0]&&n!==(n=Be("indicator__item",Di,{active:t[45]})+" "+ve.root__clickable)&&J(e,"class",n),1024&l[0]&&r!==(r=t[10].instId+"-tab-"+t[47])&&J(e,"id",r),1024&l[0]&&o!==(o=t[10].instId+"-panel-"+t[47])&&J(e,"aria-controls",o),1024&l[0]&&i!==(i=t[45]?"true":"false")&&J(e,"aria-selected",i),1024&l[0]&&a!==(a=t[45]?0:-1)&&J(e,"tabindex",a)},d(t){t&&z(e),l=!1,s(c)}}}function Ni(t){let e,n,r,o,i=t[10]&&Si(t);return{c(){e=B("div"),n=B("div"),i&&i.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var r=Z(e);n=nt(r,"DIV",{class:!0,role:!0});var o=Z(n);i&&i.l(o),o.forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=Di.indicator__items),J(n,"role","tablist"),ct(n,"margin","default"===t[4]?"0 ".concat(xe(Math.max(0,t[2].width-t[3].width)/2)):""),ct(n,"--divkit-indicator-inactive-width",xe(t[3].width)),ct(n,"--divkit-indicator-inactive-height",xe(t[3].height)),ct(n,"--divkit-indicator-inactive-border-radius",xe(t[3].borderRadius)),ct(n,"--divkit-indicator-inactive-background",t[3].background||""),ct(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),ct(n,"--divkit-indicator-active-width",xe(t[2].width)),ct(n,"--divkit-indicator-active-height",xe(t[2].height)),ct(n,"--divkit-indicator-active-border-radius",xe(t[2].borderRadius)),ct(n,"--divkit-indicator-active-background",t[2].background||""),ct(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),ct(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),ct(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(xe((t[5]-t[3].width)/2)):""),ct(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?xe(t[7]):""),ct(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),ct(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?xe((t[6]-1)*t[7]):""),J(e,"class",o=Di.indicator__scroller)},m(r,o){M(r,e,o),O(e,n),i&&i.m(n,null),t[38](n),t[39](e)},p(t,e){t[10]?i?i.p(t,e):(i=Si(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null),28&e[0]&&ct(n,"margin","default"===t[4]?"0 ".concat(xe(Math.max(0,t[2].width-t[3].width)/2)):""),8&e[0]&&ct(n,"--divkit-indicator-inactive-width",xe(t[3].width)),8&e[0]&&ct(n,"--divkit-indicator-inactive-height",xe(t[3].height)),8&e[0]&&ct(n,"--divkit-indicator-inactive-border-radius",xe(t[3].borderRadius)),8&e[0]&&ct(n,"--divkit-indicator-inactive-background",t[3].background||""),8&e[0]&&ct(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),4&e[0]&&ct(n,"--divkit-indicator-active-width",xe(t[2].width)),4&e[0]&&ct(n,"--divkit-indicator-active-height",xe(t[2].height)),4&e[0]&&ct(n,"--divkit-indicator-active-border-radius",xe(t[2].borderRadius)),4&e[0]&&ct(n,"--divkit-indicator-active-background",t[2].background||""),4&e[0]&&ct(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),12&e[0]&&ct(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),56&e[0]&&ct(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(xe((t[5]-t[3].width)/2)):""),144&e[0]&&ct(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?xe(t[7]):""),80&e[0]&&ct(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),208&e[0]&&ct(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?xe((t[6]-1)*t[7]):"")},d(n){n&&z(e),i&&i.d(),t[38](null),t[39](null)}}}function Ii(t){let e,n;return e=new In({props:{cls:Be("indicator",Di,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Ni]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Be("indicator",Di,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2044&n[0]|131072&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}const Oi=["rounded_rectangle","circle"];function Ti(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A=n,j=n,V=n,D=n,F=n,S=n,P=n,N=n,I=n;var O,T;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I()));let{componentContext:M}=e,{layoutParams:z}=e;const R=Ct(ye),B=R.direction;p(t,B,(t=>r(27,v=t)));let L,U,H,W={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},q={width:10,height:10,borderRadius:5,background:"#33919cb5"},J="default",G=15,K=10,X=5;function Y(t){t!==H.currentItem&&H.scrollToPagerItem(t)}async function Z(t){H.scrollToPagerItem(t),await It();const e=U.querySelector(".".concat(Di.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"componentContext"in t&&r(0,M=t.componentContext),"layoutParams"in t&&r(1,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(26,o=M.origJson),67108864&t.$$.dirty[0]&&o&&(r(4,J="default"),r(5,G=15),r(6,K=10),r(7,X=5),r(2,W={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),r(3,q={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(r(20,i=M.getDerivedFromVars(M.json.shape)),S(),S=h(i,(t=>r(33,x=t)))),1&t.$$.dirty[0]&&(r(19,a=M.getDerivedFromVars(M.json.active_item_color)),D(),D=h(a,(t=>r(31,_=t)))),1&t.$$.dirty[0]&&(r(18,s=M.getDerivedFromVars(M.json.inactive_item_color)),F(),F=h(s,(t=>r(32,w=t)))),1&t.$$.dirty[0]&&(r(17,l=M.getDerivedFromVars(M.json.active_item_size)),P(),P=h(l,(t=>r(34,k=t)))),1&t.$$.dirty[0]&&(r(16,c=M.getDerivedFromVars(M.json.active_shape)),I(),I=h(c,(t=>r(36,C=t)))),1&t.$$.dirty[0]&&(r(15,u=M.getDerivedFromVars(M.json.inactive_shape)),N(),N=h(u,(t=>r(35,E=t)))),1&t.$$.dirty[0]&&(r(14,d=M.getDerivedFromVars(M.json.space_between_centers)),j(),j=h(d,(t=>r(29,$=t)))),1&t.$$.dirty[0]&&(r(13,f=M.getDerivedFromVars(M.json.items_placement)),V(),V=h(f,(t=>r(30,b=t)))),12&t.$$.dirty[0]|63&t.$$.dirty[1]&&(C&&r(2,W=fr({type:"shape_drawable",shape:C},Oi,W)),E&&r(3,q=fr({type:"shape_drawable",shape:E},Oi,q)),!C&&!E&&x)){const t=Tn(k,1.3);r(3,q=fr({type:"shape_drawable",shape:x,color:q.background},Oi,q)),r(3,q.background=Ce(w,1,q.background),q),r(2,W=Object.assign(Object.assign({},q),{width:q.width*t,height:q.height*t,borderRadius:q.borderRadius*t,background:W.background})),r(2,W.background=Ce(_,1,W.background),W)}if(1660944624&t.$$.dirty[0])if(!b||"default"!==b.type&&"stretch"!==b.type)r(4,J="default"),$&&r(5,G=Te($.value,G));else if(r(4,J=b.type),"default"===J)r(5,G=Te(null===r(24,O=b.space_between_centers)||void 0===O?void 0:O.value,G));else if("stretch"===J){const t=b;r(6,K=Tn(t.max_visible_items,K)),r(7,X=Te(null===r(25,T=t.item_spacing)||void 0===T?void 0:T.value,X))}268435456&t.$$.dirty[0]&&async function(t){if(M.json.pager_id&&t.has(M.json.pager_id)&&(r(10,H=t.get(M.json.pager_id)),await It(),U)){const t=U.children[H.currentItem];if(t){const e=t.offsetLeft;L.scroll({left:e-L.clientWidth/2,behavior:"smooth"})}}}(y),134217744&t.$$.dirty[0]&&r(11,m={placement:J,direction:v})},r(12,g=R.getStore("pagers")),A(),A=h(g,(t=>r(28,y=t))),[M,z,W,q,J,G,K,X,L,U,H,m,g,f,d,u,c,l,s,a,i,B,Y,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=H;if(37===t.which)Z(n-1<0?n:n-1);else if(39===t.which)Z(n+1>=e?n:n+1);else if(36===t.which)Z(0);else{if(35!==t.which)return;Z(e-1)}t.preventDefault()},O,T,o,v,y,$,b,_,w,x,k,E,C,t=>Y(t),function(t){Vt[t?"unshift":"push"]((()=>{U=t,r(9,U)}))},function(t){Vt[t?"unshift":"push"]((()=>{L=t,r(8,L)}))}]}const Mi={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider_direction_rtl:"divkit-fb7b5",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function zi(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&Ce(t.text_color)||"#000",o=Mn(t.font_weight);if(fn(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:xe(t.font_size),fontWeight:o,textColor:r};return"number"==typeof(null==n||null===(i=n.x)||void 0===i?void 0:i.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function Ri(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const Bi="function"==typeof BigInt;function Li(t){return Bi?BigInt(t):Number(t)}const Ui=Li("9223372036854775807"),Hi=Li("-9223372036854775808");function Wi(t){const e=Li(t);if(e>Ui||e<Hi)throw new Error("Integer overflow.");if("number"==typeof e&&(Number.isNaN(e)||e!==Math.round(e)))throw new Error("Incorrect integer value.");return e}const qi=Wi(0);function Ji(t){let e=t;return e<0&&(e=-e),e}function Gi(t){let e=0;return t>0?e=1:t<0&&(e=-1),Wi(e)}class Ki{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=ge(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}class Xi extends Ki{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}}class Yi extends Ki{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t)throw new Error("Incorrect variable value");try{return Wi(t)}catch(t){throw new Error("Incorrect variable value")}}fromString(t){try{return Wi(t)}catch(t){throw new Error("Incorrect variable value")}}getType(){return"integer"}}class Zi extends Ki{convertValue(t){if("number"!=typeof t||Number.isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}}class Qi extends Ki{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class ta extends Ki{convertValue(t){if("string"!=typeof t||!Ae(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}}class ea extends Ki{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}class na extends Ki{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class ra extends Ki{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const oa={string:Xi,number:Zi,integer:Yi,boolean:Qi,color:ta,url:ea,dict:na,array:ra};function ia(t,e,n){if(!(e in oa))throw new Error("Unsupported variable type");return new oa[e](t,n)}function aa(){}function sa(t){return t(this.value),aa}function la(){throw new Error("Cannot change the value of this type of variable")}const ca={string:class extends Xi{},number:class extends Zi{},integer:class extends Yi{},boolean:class extends Qi{},color:class extends ta{},url:class extends ea{},dict:class extends na{},array:class extends ra{}};for(const t in ca){const e=ca[t];e.prototype.subscribe=sa,e.prototype.set=la,e.prototype.setValue=la}function ua(t,e,n){const r=t.slice();return r[82]=e[n],r}function da(t,e,n){const r=t.slice();return r[82]=e[n],r}function ha(t){let e,n;return e=new In({props:{cls:Be("slider",Mi,t[24]),style:t[25],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[$a,t=>{let{focusHandler:e,blurHandler:n}=t;return{80:e,81:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?262144:0)|(n?524288:0)]}]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};16777216&n[0]&&(r.cls=Be("slider",Mi,t[24])),33554432&n[0]&&(r.style=t[25]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),205518844&n[0]|34340864&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function pa(t){let e,n;return{c(){e=B("div"),this.h()},l(t){e=nt(t,"DIV",{class:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=Mi.slider__tick+" "+Mi.slider__tick_active),ct(e,"--divkit-slider-tick",t[82])},m(t,n){M(t,e,n)},p(t,n){262144&n[0]&&ct(e,"--divkit-slider-tick",t[82])},d(t){t&&z(e)}}}function fa(t){let e,n;return{c(){e=B("div"),this.h()},l(t){e=nt(t,"DIV",{class:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=Mi.slider__tick+" "+Mi.slider__tick_inactive),ct(e,"--divkit-slider-tick",t[82])},m(t,n){M(t,e,n)},p(t,n){524288&n[0]&&ct(e,"--divkit-slider-tick",t[82])},d(t){t&&z(e)}}}function ga(t){let e,n,r,o,i;return{c(){e=B("div"),n=B("div"),r=U(t[12]),this.h()},l(o){e=nt(o,"DIV",{class:!0});var i=Z(e);n=nt(i,"DIV",{class:!0});var a=Z(n);r=ot(a,t[12]),a.forEach(z),i.forEach(z),this.h()},h(){var r,a,s;J(n,"class",o=Mi["slider__thumb-text-inner"]),ct(n,"font-size",(null===(r=t[9])||void 0===r?void 0:r.fontSize)||"1em"),ct(n,"font-weight",(null===(a=t[9])||void 0===a?void 0:a.fontWeight)||""),ct(n,"color",(null===(s=t[9])||void 0===s?void 0:s.textColor)||"#000"),J(e,"class",i=Mi["slider__thumb-text"])},m(t,o){M(t,e,o),O(e,n),O(n,r)},p(t,e){var o,i,a;4096&e[0]&&st(r,t[12]),512&e[0]&&ct(n,"font-size",(null===(o=t[9])||void 0===o?void 0:o.fontSize)||"1em"),512&e[0]&&ct(n,"font-weight",(null===(i=t[9])||void 0===i?void 0:i.fontWeight)||""),512&e[0]&&ct(n,"color",(null===(a=t[9])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&z(e)}}}function ma(t){let e,n,r=t[10]&&va(t);return{c(){e=B("div"),r&&r.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);r&&r.l(n),n.forEach(z),this.h()},h(){J(e,"class",n=Mi.slider__thumb+" "+Mi.slider__thumb_secondary),ct(e,"border-radius",xe(t[6].borderRadius)),ct(e,"background",t[6].background),ct(e,"box-shadow",t[6].boxShadow||"")},m(t,n){M(t,e,n),r&&r.m(e,null)},p(t,n){t[10]?r?r.p(t,n):(r=va(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),64&n[0]&&ct(e,"border-radius",xe(t[6].borderRadius)),64&n[0]&&ct(e,"background",t[6].background),64&n[0]&&ct(e,"box-shadow",t[6].boxShadow||"")},d(t){t&&z(e),r&&r.d()}}}function va(t){let e,n,r,o,i;return{c(){e=B("div"),n=B("div"),r=U(t[13]),this.h()},l(o){e=nt(o,"DIV",{class:!0});var i=Z(e);n=nt(i,"DIV",{class:!0});var a=Z(n);r=ot(a,t[13]),a.forEach(z),i.forEach(z),this.h()},h(){var r,a,s;J(n,"class",o=Mi["slider__thumb-text-inner"]),ct(n,"font-size",(null===(r=t[10])||void 0===r?void 0:r.fontSize)||"1em"),ct(n,"font-weight",(null===(a=t[10])||void 0===a?void 0:a.fontWeight)||""),ct(n,"color",(null===(s=t[10])||void 0===s?void 0:s.textColor)||"#000"),J(e,"class",i=Mi["slider__thumb-text"]+" "+Mi["slider__thumb-text_secondary"])},m(t,o){M(t,e,o),O(e,n),O(n,r)},p(t,e){var o,i,a;8192&e[0]&&st(r,t[13]),1024&e[0]&&ct(n,"font-size",(null===(o=t[10])||void 0===o?void 0:o.fontSize)||"1em"),1024&e[0]&&ct(n,"font-weight",(null===(i=t[10])||void 0===i?void 0:i.fontWeight)||""),1024&e[0]&&ct(n,"color",(null===(a=t[10])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&z(e)}}}function ya(t){let e,n,r,o,i;return{c(){e=B("input"),this.h()},l(t){e=nt(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){J(e,"type","range"),J(e,"class",n=t[17]?Mi.slider__input:"".concat(Mi.slider__input," ").concat(Mi.slider__input_secondary)),J(e,"min",t[3]),J(e,"max",t[4]),J(e,"step","1"),e.value=r=t[17]?t[12]:t[13],J(e,"aria-label",t[21])},m(n,r){M(n,e,r),o||(i=[q(e,"input",t[73]),q(e,"mousedown",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),q(e,"touchstart",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),q(e,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),q(e,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],o=!0)},p(o,i){t=o,131072&i[0]&&n!==(n=t[17]?Mi.slider__input:"".concat(Mi.slider__input," ").concat(Mi.slider__input_secondary))&&J(e,"class",n),8&i[0]&&J(e,"min",t[3]),16&i[0]&&J(e,"max",t[4]),143360&i[0]&&r!==(r=t[17]?t[12]:t[13])&&(e.value=r),2097152&i[0]&&J(e,"aria-label",t[21])},d(t){t&&z(e),o=!1,s(i)}}}function $a(t){let e,n,r,o,i,a,c,u,d,h,p,f,g,m,v,y,$,b,_,w,x,k,E=Qt(t[18]),C=[];for(let e=0;e<E.length;e+=1)C[e]=pa(da(t,E,e));let A=Qt(t[19]),j=[];for(let e=0;e<A.length;e+=1)j[e]=fa(ua(t,A,e));let V=t[9]&&ga(t),D=t[14]&&ma(t),F=t[14]&&ya(t);return{c(){e=B("div"),n=B("div"),r=B("div"),i=H(),a=B("div"),u=H();for(let t=0;t<C.length;t+=1)C[t].c();d=H();for(let t=0;t<j.length;t+=1)j[t].c();h=H(),p=B("div"),V&&V.c(),g=H(),D&&D.c(),m=H(),v=B("input"),b=H(),F&&F.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0});var o=Z(e);n=nt(o,"DIV",{class:!0});var s=Z(n);r=nt(s,"DIV",{class:!0}),Z(r).forEach(z),i=it(s),a=nt(s,"DIV",{class:!0}),Z(a).forEach(z),u=it(s);for(let t=0;t<C.length;t+=1)C[t].l(s);d=it(s);for(let t=0;t<j.length;t+=1)j[t].l(s);h=it(s),p=nt(s,"DIV",{class:!0});var l=Z(p);V&&V.l(l),l.forEach(z),g=it(s),D&&D.l(s),m=it(s),v=nt(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),b=it(s),F&&F.l(s),s.forEach(z),o.forEach(z),this.h()},h(){J(r,"class",o=Mi.slider__track),ct(r,"height",xe(t[7].height)),ct(r,"border-radius",xe(t[7].borderRadius)),ct(r,"background",t[7].background),ct(r,"box-shadow",t[7].boxShadow||""),J(a,"class",c=Mi["slider__active-track"]),ct(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),ct(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),ct(a,"width",(100*t[27]).toFixed(2)+"%"),ct(a,"height",xe(t[8].height)),ct(a,"border-radius",xe(t[8].borderRadius)),ct(a,"background",t[8].background),ct(a,"box-shadow",t[8].boxShadow||""),J(p,"class",f=Mi.slider__thumb),ct(p,"border-radius",xe(t[5].borderRadius)),ct(p,"background",t[5].background),ct(p,"box-shadow",t[5].boxShadow||""),J(v,"type","range"),J(v,"class",y=t[17]?"".concat(Mi.slider__input," ").concat(Mi.slider__input_secondary):Mi.slider__input),J(v,"min",t[3]),J(v,"max",t[4]),J(v,"step","1"),v.value=$=t[17]?t[13]:t[12],J(v,"aria-label",t[20]),J(n,"class",_=Mi["slider__tracks-inner"]),J(e,"class",w=Mi["slider__tracks-wrapper"])},m(o,s){M(o,e,s),O(e,n),O(n,r),O(n,i),O(n,a),O(n,u);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(n,null);O(n,d);for(let t=0;t<j.length;t+=1)j[t]&&j[t].m(n,null);O(n,h),O(n,p),V&&V.m(p,null),O(n,g),D&&D.m(n,null),O(n,m),O(n,v),t[72](v),O(n,b),F&&F.m(n,null),t[74](n),x||(k=[q(v,"input",t[71]),q(v,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),q(v,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],x=!0)},p(e,o){if(t=e,128&o[0]&&ct(r,"height",xe(t[7].height)),128&o[0]&&ct(r,"border-radius",xe(t[7].borderRadius)),128&o[0]&&ct(r,"background",t[7].background),128&o[0]&&ct(r,"box-shadow",t[7].boxShadow||""),67141632&o[0]&&ct(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),67141632&o[0]&&ct(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),134217728&o[0]&&ct(a,"width",(100*t[27]).toFixed(2)+"%"),256&o[0]&&ct(a,"height",xe(t[8].height)),256&o[0]&&ct(a,"border-radius",xe(t[8].borderRadius)),256&o[0]&&ct(a,"background",t[8].background),256&o[0]&&ct(a,"box-shadow",t[8].boxShadow||""),262144&o[0]){let e;for(E=Qt(t[18]),e=0;e<E.length;e+=1){const r=da(t,E,e);C[e]?C[e].p(r,o):(C[e]=pa(r),C[e].c(),C[e].m(n,d))}for(;e<C.length;e+=1)C[e].d(1);C.length=E.length}if(524288&o[0]){let e;for(A=Qt(t[19]),e=0;e<A.length;e+=1){const r=ua(t,A,e);j[e]?j[e].p(r,o):(j[e]=fa(r),j[e].c(),j[e].m(n,h))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}t[9]?V?V.p(t,o):(V=ga(t),V.c(),V.m(p,null)):V&&(V.d(1),V=null),32&o[0]&&ct(p,"border-radius",xe(t[5].borderRadius)),32&o[0]&&ct(p,"background",t[5].background),32&o[0]&&ct(p,"box-shadow",t[5].boxShadow||""),t[14]?D?D.p(t,o):(D=ma(t),D.c(),D.m(n,m)):D&&(D.d(1),D=null),131072&o[0]&&y!==(y=t[17]?"".concat(Mi.slider__input," ").concat(Mi.slider__input_secondary):Mi.slider__input)&&J(v,"class",y),8&o[0]&&J(v,"min",t[3]),16&o[0]&&J(v,"max",t[4]),143360&o[0]&&$!==($=t[17]?t[13]:t[12])&&(v.value=$),1048576&o[0]&&J(v,"aria-label",t[20]),t[14]?F?F.p(t,o):(F=ya(t),F.c(),F.m(n,null)):F&&(F.d(1),F=null)},d(n){n&&z(e),R(C,n),R(j,n),V&&V.d(),D&&D.d(),t[72](null),F&&F.d(),t[74](null),x=!1,s(k)}}}function ba(t){let e,n,r,o,i=!t[11]&&ha(t);return{c(){i&&i.c(),e=W()},l(t){i&&i.l(t),e=W()},m(a,s){i&&i.m(a,s),M(a,e,s),n=!0,r||(o=q(window,"resize",t[43]),r=!0)},p(t,n){t[11]?i&&(qt(),Kt(i,1,1,(()=>{i=null})),Jt()):i?(i.p(t,n),2048&n[0]&&Gt(i,1)):(i=ha(t),i.c(),Gt(i,1),i.m(e.parentNode,e))},i(t){n||(Gt(i),n=!0)},o(t){Kt(i),n=!1},d(t){t&&z(e),i&&i.d(t),r=!1,o()}}}const _a={width:10,height:10,borderRadius:5,background:"#000"},wa=["rounded_rectangle","circle"],xa=["rounded_rectangle"];function ka(t,e,n,r,o){let i=[];if(o)for(let o=t;o<e;++o)i.push((o-n)/(r-n));else{for(let e=n;e<t;++e)i.push((e-n)/(r-n));for(let t=e;t<r+1;++t)i.push((t-n)/(r-n))}return i}function Ea(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M,z,R,B,L,U,H,W,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n;var at,st,lt,ct;t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it()));let{componentContext:ut}=e,{layoutParams:dt}=e;const ht=Ct(ye),pt=Ct(an),ft=ht.direction;let gt,mt,vt;p(t,ft,(t=>r(15,F=t)));let yt,$t,bt,_t=!1,xt=0,Et=100,At=_a,jt=At,Dt=_a,Ft=_a,St=null,Pt=null,Nt=bt,It="",Ot="",Tt=!1,Mt=Ri(U||0,xt,Et),zt=Ri(L||0,xt,Et);function Rt(t,e){const n=Number(t.target.value);_t===("first"===e)?(r(13,zt=n),l.setValue(n)):(r(12,Mt=n),s.setValue(n))}let Bt=!1;function Lt(){if(!vt)return;const t=Et-xt,e=(null==St?void 0:St.width)||0,n=(null==Pt?void 0:Pt.width)||0;Math.max(e,n)*t>=(null==vt?void 0:vt.clientWidth)?Bt||(ut.logError($e(new Error("Slider ticks overlap each other"),{level:"warn"})),Bt=!0):Bt=!1}const Ut=Kn(Lt,50);return wt((()=>{Lt()})),kt((()=>{gt&&(ht.unregisterFocusable(gt),r(48,gt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,ut=t.componentContext),"layoutParams"in t&&r(1,dt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(56,o=ut.origJson),33554432&t.$$.dirty[1]&&o&&(r(5,At=_a),r(6,jt=At),r(7,Dt=_a),r(8,Ft=_a),r(49,St=null),r(50,Pt=null),r(9,bt=void 0),r(10,Nt=void 0),r(20,It=""),r(21,Ot="")),1&t.$$.dirty[0]&&r(55,i=ut.json.thumb_value_variable),1&t.$$.dirty[0]&&r(14,a=ut.json.thumb_secondary_value_variable),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(r(22,s=i&&ut.getVariable(i,"integer")||ia("temp","integer",0)),rt(),rt=h(s,(t=>r(68,U=t)))),16385&t.$$.dirty[0]&&(r(23,l=a&&ut.getVariable(a,"integer")||ia("temp","integer",0)),nt(),nt=h(l,(t=>r(67,L=t)))),1&t.$$.dirty[0]&&(r(39,c=ut.getDerivedFromVars(ut.json.min_value)),it(),it=h(c,(t=>r(70,W=t)))),1&t.$$.dirty[0]&&(r(38,u=ut.getDerivedFromVars(ut.json.max_value)),ot(),ot=h(u,(t=>r(69,H=t)))),1&t.$$.dirty[0]&&(r(37,d=ut.getDerivedFromVars(ut.json.thumb_style)),et(),et=h(d,(t=>r(66,B=t)))),1&t.$$.dirty[0]&&(r(36,f=ut.getDerivedFromVars(ut.json.thumb_secondary_style)),tt(),tt=h(f,(t=>r(65,R=t)))),1&t.$$.dirty[0]&&(r(35,g=ut.getDerivedFromVars(ut.json.track_inactive_style)),Q(),Q=h(g,(t=>r(64,z=t)))),1&t.$$.dirty[0]&&(r(34,m=ut.getDerivedFromVars(ut.json.track_active_style)),Z(),Z=h(m,(t=>r(63,M=t)))),1&t.$$.dirty[0]&&(r(33,v=ut.getDerivedFromVars(ut.json.tick_mark_active_style)),Y(),Y=h(v,(t=>r(62,T=t)))),1&t.$$.dirty[0]&&(r(32,y=ut.getDerivedFromVars(ut.json.tick_mark_inactive_style)),X(),X=h(y,(t=>r(61,O=t)))),1&t.$$.dirty[0]&&(r(31,$=ut.getDerivedFromVars(ut.json.thumb_text_style)),K(),K=h($,(t=>r(60,I=t)))),1&t.$$.dirty[0]&&(r(30,b=ut.getDerivedFromVars(ut.json.thumb_secondary_text_style)),G(),G=h(b,(t=>r(59,N=t)))),1&t.$$.dirty[0]&&(r(29,_=ut.getDerivedFromVars(ut.json.accessibility)),J(),J=h(_,(t=>r(58,P=t)))),1&t.$$.dirty[0]&&(r(28,w=ut.getDerivedFromVars(ut.json.secondary_value_accessibility)),q(),q=h(w,(t=>r(57,S=t)))),24&t.$$.dirty[0]|384&t.$$.dirty[2]&&(r(3,xt=Ye(W,xt)),r(4,Et=Ye(H,Et)),Lt()),4120&t.$$.dirty[0]|64&t.$$.dirty[2]){const t=Ri(U||0,xt,Et);t!==Mt&&r(12,Mt=t)}if(8216&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=Ri(L||0,xt,Et);t!==zt&&r(13,zt=t)}if(32&t.$$.dirty[0]|16&t.$$.dirty[2]&&r(5,At=fr(B,wa,At)),32&t.$$.dirty[0]|8&t.$$.dirty[2]&&r(6,jt=fr(R,wa,At)),128&t.$$.dirty[0]|4&t.$$.dirty[2]&&r(7,Dt=fr(z,xa,Dt)),256&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(8,Ft=fr(M,xa,Ft)),1&t.$$.dirty[2]){let t=fr(T,wa,_a);t!==_a&&r(49,St=t)}if(28696&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(St?(r(18,yt=a?ka(Math.min(Mt,zt),Math.max(Mt,zt)+1,xt,Et,!0):ka(xt,Mt,xt,Et,!0)),Lt()):r(18,yt=[])),1073741824&t.$$.dirty[1]){let t=fr(O,wa,_a);t!==_a&&r(50,Pt=t)}if(28696&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(Pt?(r(19,$t=a?ka(Math.min(Mt,zt),Math.max(Mt,zt)+1,xt,Et,!1):ka(Mt+1,Et+1,xt,Et,!0)),Lt()):r(19,$t=[])),512&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(9,bt=zi(I,bt)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,Nt=zi(N,bt)),1&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&((null==P?void 0:P.description)?r(20,It=P.description):ut.logError($e(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),16385&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&((null==S?void 0:S.description)?r(21,Ot=S.description):a&&ut.logError($e(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),2465&t.$$.dirty[0]){let t=!1;pt.hasAction()?(ut.logError($e(new Error('Cannot show "slider" inside component with action'))),t=!0):At===_a?(ut.logError($e(new Error('Missing "thumb_style" in slider'))),t=!0):Ft===_a?(ut.logError($e(new Error('Missing "track_active_style" in slider'))),t=!0):Dt===_a&&(ut.logError($e(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Tt&&r(11,Tt=t)}96&t.$$.dirty[0]&&r(54,x=xe(Math.max(...[At.width,jt.width,0].filter(We)))),96&t.$$.dirty[0]&&r(53,k=xe(Math.max(...[At.height,jt.height,0].filter(We)))),4120&t.$$.dirty[0]&&r(52,E=(Mt-xt)/(Et-xt)),24600&t.$$.dirty[0]&&r(51,C=a?(zt-xt)/(Et-xt):void 0),3145728&t.$$.dirty[1]&&r(27,A=void 0!==C?Math.abs(C-E):E),3145728&t.$$.dirty[1]&&r(26,j=void 0!==C?Math.min(C,E):0),1632&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&r(25,V={"--divkit-slider-thumb-width":xe(At.width),"--divkit-slider-thumb-height":xe(At.height),"--divkit-slider-thumb-secondary-width":xe(jt.width),"--divkit-slider-thumb-secondary-height":xe(jt.height),"--divkit-slider-text-offset-x":(null===r(44,at=null==bt?void 0:bt.offset)||void 0===at?void 0:at.x)?ke(bt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(45,st=null==bt?void 0:bt.offset)||void 0===st?void 0:st.y)?ke(bt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(46,lt=null==Nt?void 0:Nt.offset)||void 0===lt?void 0:lt.x)?ke(Nt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(47,ct=null==Nt?void 0:Nt.offset)||void 0===ct?void 0:ct.y)?ke(Nt.offset.y):void 0,"--divkit-slider-tick-active-width":St?xe(St.width):void 0,"--divkit-slider-tick-active-height":St?xe(St.height):void 0,"--divkit-slider-tick-active-border-radius":St?xe(St.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Pt?xe(Pt.width):void 0,"--divkit-slider-tick-inactive-height":Pt?xe(Pt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Pt?xe(Pt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Pt?void 0:Pt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Pt?void 0:Pt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":x,"--divkit-slider-max-thumb-height":k,"--divkit-slider-track-part":E,"--divkit-slider-track-secondary-part":C}),32768&t.$$.dirty[0]&&r(24,D={direction:F}),5&t.$$.dirty[0]|131072&t.$$.dirty[1]&&ut.json&&mt&&(gt&&(ht.unregisterFocusable(gt),r(48,gt=void 0)),ut.json.id&&!ut.fakeElement&&(r(48,gt=ut.json.id),ht.registerFocusable(gt,{focus(){mt&&mt.focus()}})))},[ut,dt,mt,xt,Et,At,jt,Dt,Ft,bt,Nt,Tt,Mt,zt,a,F,vt,_t,yt,$t,It,Ot,s,l,D,V,j,A,w,_,b,$,y,v,m,g,f,d,u,c,ft,function(t){var e,n;const o="pageX"in t?t.pageX:null===(n=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageX;if(void 0===o)return;const i=vt.getBoundingClientRect();let a=(o-i.left)/i.width;"rtl"===F&&(a=1-a);const s=xt+(Et-xt)*a,l=Math.round(Ri(s,xt,Et));r(17,_t=l<(Mt+zt)/2==Mt<zt)},Rt,Ut,at,st,lt,ct,gt,St,Pt,C,E,k,x,i,o,S,P,N,I,O,T,M,z,R,B,L,U,H,W,t=>Rt(t,"first"),function(t){Vt[t?"unshift":"push"]((()=>{mt=t,r(2,mt)}))},t=>Rt(t,"second"),function(t){Vt[t?"unshift":"push"]((()=>{vt=t,r(16,vt)}))}]}const Ca={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_end":"divkit-e9096",input__aligner:"divkit-e0491",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_start":"divkit-cd14f","input_alignment-vertical_end":"divkit-cd38f","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0","input__input_has-custom-focus":"divkit-e6b50"};function Aa(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=Aa(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const o=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-o>=n&&t[r-o]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-o}}function ja(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Va{constructor(t){this.char=t}}class Da{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class Fa{constructor(t){ja(this,"filters",new Map),ja(this,"destructedValue",[]),ja(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 Va)t+=n.char;else if(n instanceof Da)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 Da&&!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($e(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 Da(null,this.filters.get(e.key),e.placeholder):new Va(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=Aa(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),o=this.buildTailSubstring(n);this.cleanup(n);const i=this.firstEmptyHolderIndex(),a=o?this.calculateMaxShift(o,i):void 0;this.replaceChars(r,i,a);const s=this.firstEmptyHolderIndex();this.replaceChars(o,s),this.calculateCursorPosition(n,s)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof Da&&++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 Da&&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 Da&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const o=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof Da);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=o();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof Da&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let o=e,i=0;for(;o<this.destructedValue.length&&i<r.length;){const t=this.destructedValue[o],e=r[i];t instanceof Da&&(t.char=e,++i),++o}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof Da);)++e;return e}}class Sa extends Fa{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function Pa(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 Na extends Fa{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}),Pa(this,"currencyFormatter",new Intl.NumberFormat),Pa(this,"decimalSeparator","."),Pa(this,"localeDigits",{}),Pa(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($e(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=Aa(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),o=t.lastIndexOf(this.decimalSeparator),i=r!==o||-1===r&&-1===o,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;i&&this.invalidateMaskDataForFormatted(s),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let o=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(o=e.start);const i=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=i;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const o=t[r];o===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(o)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==o,l=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=l.length<=i;this.isDigit(u)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(u),a--):l.push(u):d&&-1===n&&r===o?(l.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(l.push(this.decimalSeparator),c=!0,n=r),r--}return l.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,e){return t.start<=e&&e<t.start+t.added}isDigit(t){return Boolean(this.localeDigits[t])}onException(t){this.logError(t)}}const Ia=3;function Oa(t){const e=t.textContent;let n=0;return"string"==typeof e&&(n+=e.length,t instanceof HTMLElement&&("DIV"===t.tagName||"BR"===t.tagName)&&++n),n}function Ta(t,e){if(t.nodeType!==Ia)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,o=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,o),n.setEnd(r,o),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],o=Oa(r);if(e<=o)return void Ta(r,e);e-=o}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function Ma(t){let e,n;return e=new In({props:{cls:Be("input",Ca,t[16]),style:t[15],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Ha,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{95:e,96:n,97:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,0,(e?4:0)|(n?8:0)|(r?16:0)]}]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=Be("input",Ca,t[16])),32768&n[0]&&(r.style=t[15]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),157564&n[0]|32&n[1]|60&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function za(t){let e,n,r,o,i,a;return{c(){e=B("input"),this.h()},l(t){e=nt(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){J(e,"type",t[8]),J(e,"inputmode",t[9]),J(e,"class",n=Be("input__input",Ca,{"has-custom-focus":t[97],singleline:!0})),J(e,"autocomplete","off"),J(e,"autocapitalize","off"),J(e,"aria-label",t[10]),J(e,"style",r=we(t[14])),e.disabled=o=!t[4],J(e,"placeholder",t[17]),e.value=t[3]},m(n,r){M(n,e,r),t[86](e),i||(a=[q(e,"input",t[38]),q(e,"mousedown",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),q(e,"click",(function(){l(t[36]?t[40]:void 0)&&(t[36]?t[40]:void 0).apply(this,arguments)})),q(e,"focus",(function(){l(t[95])&&t[95].apply(this,arguments)})),q(e,"blur",(function(){l(t[96])&&t[96].apply(this,arguments)}))],i=!0)},p(i,a){t=i,256&a[0]&&J(e,"type",t[8]),512&a[0]&&J(e,"inputmode",t[9]),16&a[3]&&n!==(n=Be("input__input",Ca,{"has-custom-focus":t[97],singleline:!0}))&&J(e,"class",n),1024&a[0]&&J(e,"aria-label",t[10]),16384&a[0]&&r!==(r=we(t[14]))&&J(e,"style",r),16&a[0]&&o!==(o=!t[4])&&(e.disabled=o),131072&a[0]&&J(e,"placeholder",t[17]),8&a[0]&&e.value!==t[3]&&(e.value=t[3])},d(n){n&&z(e),t[86](null),i=!1,s(a)}}}function Ra(t){let e,n,r,o,i,a,s,l,c=!t[6]&&t[17]&&Ba(t);function u(t,e){return t[4]?Ua:La}let d=u(t),h=d(t);return{c(){e=B("span"),c&&c.c(),n=H(),r=B("span"),o=U(""),s=H(),h.c(),this.h()},l(t){e=nt(t,"SPAN",{class:!0});var i=Z(e);c&&c.l(i),n=it(i),r=nt(i,"SPAN",{class:!0,"aria-hidden":!0,style:!0});var a=Z(r);o=ot(a,""),a.forEach(z),s=it(i),h.l(i),i.forEach(z),this.h()},h(){J(r,"class",i=Ca.input__aligner),J(r,"aria-hidden","true"),J(r,"style",a=we(t[13])),J(e,"class",l=Ca["input__scroll-wrapper"])},m(t,i){M(t,e,i),c&&c.m(e,null),O(e,n),O(e,r),O(r,o),O(e,s),h.m(e,null)},p(t,o){!t[6]&&t[17]?c?c.p(t,o):(c=Ba(t),c.c(),c.m(e,n)):c&&(c.d(1),c=null),8192&o[0]&&a!==(a=we(t[13]))&&J(r,"style",a),d===(d=u(t))&&h?h.p(t,o):(h.d(1),h=d(t),h&&(h.c(),h.m(e,null)))},d(t){t&&z(e),c&&c.d(),h.d()}}}function Ba(t){let e,n,r,o;return{c(){e=B("div"),n=U(t[17]),this.h()},l(r){e=nt(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var o=Z(e);n=ot(o,t[17]),o.forEach(z),this.h()},h(){J(e,"class",r=Ca.input__placeholder),J(e,"aria-hidden","true"),J(e,"style",o=we(t[14]))},m(t,r){M(t,e,r),O(e,n)},p(t,r){131072&r[0]&&st(n,t[17]),16384&r[0]&&o!==(o=we(t[14]))&&J(e,"style",o)},d(t){t&&z(e)}}}function La(t){let e,n,r,o,i;return{c(){e=B("span"),this.h()},l(t){e=nt(t,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,role:!0,"aria-label":!0,"aria-disabled":!0,"aria-multiline":!0,style:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=Be("input__input",Ca,{multiline:!0})),J(e,"autocapitalize","off"),J(e,"contenteditable","false"),J(e,"role","textbox"),J(e,"aria-label",t[10]),J(e,"aria-disabled","true"),J(e,"aria-multiline","true"),J(e,"style",r=we(t[14])),void 0===t[6]&&Ot((()=>t[85].call(e)))},m(n,r){M(n,e,r),t[84](e),void 0!==t[6]&&(e.innerText=t[6]),o||(i=q(e,"input",t[85]),o=!0)},p(t,n){1024&n[0]&&J(e,"aria-label",t[10]),16384&n[0]&&r!==(r=we(t[14]))&&J(e,"style",r),64&n[0]&&t[6]!==e.innerText&&(e.innerText=t[6])},d(n){n&&z(e),t[84](null),o=!1,i()}}}function Ua(t){let e,n,r,o,i;return{c(){e=B("span"),this.h()},l(t){e=nt(t,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,role:!0,tabindex:!0,"aria-label":!0,"aria-multiline":!0,style:!0}),Z(e).forEach(z),this.h()},h(){J(e,"class",n=Be("input__input",Ca,{"has-custom-focus":t[97],multiline:!0})),J(e,"autocapitalize","off"),J(e,"contenteditable","true"),J(e,"role","textbox"),J(e,"tabindex","0"),J(e,"aria-label",t[10]),J(e,"aria-multiline","true"),J(e,"style",r=we(t[14])),void 0===t[6]&&Ot((()=>t[83].call(e)))},m(n,r){M(n,e,r),t[82](e),void 0!==t[6]&&(e.innerText=t[6]),o||(i=[q(e,"input",t[83]),q(e,"input",t[38]),q(e,"paste",Ga),q(e,"mousedown",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),q(e,"click",(function(){l(t[36]?t[40]:void 0)&&(t[36]?t[40]:void 0).apply(this,arguments)})),q(e,"focus",(function(){l(t[95])&&t[95].apply(this,arguments)})),q(e,"blur",(function(){l(t[96])&&t[96].apply(this,arguments)}))],o=!0)},p(o,i){t=o,16&i[3]&&n!==(n=Be("input__input",Ca,{"has-custom-focus":t[97],multiline:!0}))&&J(e,"class",n),1024&i[0]&&J(e,"aria-label",t[10]),16384&i[0]&&r!==(r=we(t[14]))&&J(e,"style",r),64&i[0]&&t[6]!==e.innerText&&(e.innerText=t[6])},d(n){n&&z(e),t[82](null),o=!1,s(i)}}}function Ha(t){let e;function n(t,e){return t[5]?Ra:za}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),M(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&z(e),o.d(t)}}}function Wa(t){let e,n,r=!t[7]&&Ma(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[7]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),128&n[0]&&Gt(r,1)):(r=Ma(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}const qa="undefined"!=typeof document&&"inputMode"in document.createElement("input"),Ja={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"};function Ga(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Ka(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T,M,z,R,B,L,U,H,W,q,J,G,K,X,Y,Z,Q,tt,et,nt,rt=n,ot=n,it=n,at=n,st=n,lt=n,ct=n,ut=n,dt=n,ht=n,pt=n,ft=n,gt=n,mt=n,vt=n,yt=n,$t=n,bt=n,_t=n,xt=n;var Et;t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>yt())),t.$$.on_destroy.push((()=>$t())),t.$$.on_destroy.push((()=>bt())),t.$$.on_destroy.push((()=>_t())),t.$$.on_destroy.push((()=>xt()));let{componentContext:At}=e,{layoutParams:jt}=e;const Dt=Ct(ye),Ft=Dt.direction;let St,Pt;p(t,Ft,(t=>r(65,z=t)));let Nt,Ot,Tt,Mt=!1,zt=null,Rt="",Bt="",Lt=!1,Ut="",Ht=12,Wt="",qt="",Jt="#000",Gt="",Kt="start",Xt="center",Yt="multi_line_text",Zt="text",Qt="",te=null,ee="",ne="",re="",oe=!0;function ie(t){Pt instanceof HTMLInputElement?r(2,Pt.selectionStart=r(2,Pt.selectionEnd=t,Pt),Pt):Ta(Pt,t)}async function ae(){if(!Pt||!zt)return;zt.overrideRawValue(T),l.set(zt.rawValue),$(s,O=r(3,Rt=r(6,Bt=zt.value)),O);const t=zt.cursorPosition;await It(),document.activeElement===Pt&&ie(t)}return wt((()=>{Pt&&zt&&T&&(zt.overrideRawValue(T),$(s,O=r(3,Rt=r(6,Bt=zt.value)),O))})),kt((()=>{St&&(Dt.unregisterFocusable(St),r(42,St=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,At=t.componentContext),"layoutParams"in t&&r(1,jt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(61,o=At.origJson),1073741824&t.$$.dirty[1]&&o&&(r(44,Ut=""),r(45,Ht=12),r(46,Nt=void 0),r(47,Wt=""),r(48,Ot=void 0),r(50,Jt="#000"),r(51,Gt=""),r(52,Kt="left"),r(53,Xt="center"),r(54,Yt="multi_line_text"),r(8,Zt="text"),r(9,Tt=void 0),r(4,oe=!0)),1&t.$$.dirty[0]&&r(59,i=At.json.text_variable),1&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(60,a=null===r(41,Et=At.json.mask)||void 0===Et?void 0:Et.raw_text_variable),1&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(12,s=i&&At.getVariable(i,"string")||ia("temp","string","")),rt(),rt=h(s,(t=>r(62,O=t)))),1&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&(r(11,l=a&&At.getVariable(a,"string")||ia("temp","string","")),ot(),ot=h(l,(t=>r(63,T=t)))),1&t.$$.dirty[0]&&(r(35,c=At.getDerivedFromVars(At.json.hint_text)),_t(),_t=h(c,(t=>r(81,et=t)))),1&t.$$.dirty[0]&&(r(34,u=At.getDerivedFromVars(At.json.hint_color)),bt(),bt=h(u,(t=>r(80,tt=t)))),1&t.$$.dirty[0]&&(r(33,d=At.getDerivedFromVars(At.json.font_size)),$t(),$t=h(d,(t=>r(79,Q=t)))),1&t.$$.dirty[0]&&(r(32,f=At.getDerivedFromVars(At.json.font_weight)),yt(),yt=h(f,(t=>r(78,Z=t)))),1&t.$$.dirty[0]&&(r(31,g=At.getDerivedFromVars(At.json.font_family)),vt(),vt=h(g,(t=>r(77,Y=t)))),1&t.$$.dirty[0]&&(r(30,m=At.getDerivedFromVars(At.json.line_height)),mt(),mt=h(m,(t=>r(76,X=t)))),1&t.$$.dirty[0]&&(r(29,v=At.getDerivedFromVars(At.json.letter_spacing)),gt(),gt=h(v,(t=>r(75,K=t)))),1&t.$$.dirty[0]&&(r(28,y=At.getDerivedFromVars(At.json.text_color)),ft(),ft=h(y,(t=>r(74,G=t)))),1&t.$$.dirty[0]&&(r(27,b=At.getDerivedFromVars(At.json.highlight_color)),pt(),pt=h(b,(t=>r(73,J=t)))),1&t.$$.dirty[0]&&(r(26,_=At.getDerivedFromVars(At.json.text_alignment_horizontal)),ht(),ht=h(_,(t=>r(72,q=t)))),1&t.$$.dirty[0]&&(r(25,w=At.getDerivedFromVars(At.json.text_alignment_vertical)),dt(),dt=h(w,(t=>r(71,W=t)))),1&t.$$.dirty[0]&&(r(24,x=At.getDerivedFromVars(At.json.keyboard_type)),ct(),ct=h(x,(t=>r(69,U=t)))),1&t.$$.dirty[0]&&(r(23,k=At.getDerivedFromVars(At.json.mask)),lt(),lt=h(k,(t=>r(68,L=t)))),1&t.$$.dirty[0]&&(r(22,E=At.getDerivedFromVars(At.json.max_visible_lines)),st(),st=h(E,(t=>r(67,B=t)))),1&t.$$.dirty[0]&&(r(21,C=At.getDerivedFromVars(At.json.paddings)),at(),at=h(C,(t=>r(66,R=t)))),1&t.$$.dirty[0]&&(r(20,A=At.getDerivedFromVars(At.json.accessibility)),it(),it=h(A,(t=>r(64,M=t)))),1&t.$$.dirty[0]&&(r(19,j=At.getDerivedFromVars(At.json.select_all_on_focus)),xt(),xt=h(j,(t=>r(36,nt=t)))),1&t.$$.dirty[0]&&(r(18,V=At.getDerivedFromVars(At.json.is_enabled)),ut(),ut=h(V,(t=>r(70,H=t)))),1&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(i?r(7,Lt=!1):(r(7,Lt=!0),At.logError($e(new Error('Missing "text_variable" in "input"'))))),64&t.$$.dirty[2]&&("fixed_length"===(null==(e=L)?void 0:e.type)?r(43,zt=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new Sa(r,e)}return n||null}(e,At.logError,zt)):"currency"===(null==e?void 0:e.type)&&r(43,zt=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new Na(t.locale,e)}(e,At.logError,zt)),zt&&ae()),8&t.$$.dirty[0]|4096&t.$$.dirty[1]|1&t.$$.dirty[2]&&(zt||Rt===O||r(3,Rt=r(6,Bt=O))),4096&t.$$.dirty[1]|2&t.$$.dirty[2]&&zt&&zt.rawValue!==T&&ae(),524288&t.$$.dirty[2]&&r(17,D=et),8192&t.$$.dirty[1]|262144&t.$$.dirty[2]&&r(44,Ut=Ce(tt,1,Ut)),16384&t.$$.dirty[1]|131072&t.$$.dirty[2]&&r(45,Ht=Tn(Q,Ht)),32768&t.$$.dirty[1]|98304&t.$$.dirty[2]&&(r(46,Nt=zn(Z,Nt)),r(47,Wt=Y&&"string"==typeof Y?Dt.typefaceProvider(Y,{fontWeight:Nt||400}):"")),16384&t.$$.dirty[1]|16384&t.$$.dirty[2]){const t=X;fn(t)&&r(48,Ot=t/Ht)}var e;8192&t.$$.dirty[2]&&He(K)&&r(49,qt=xe(K)),524288&t.$$.dirty[1]|4096&t.$$.dirty[2]&&r(50,Jt=Ce(G,1,Jt)),1048576&t.$$.dirty[1]|2048&t.$$.dirty[2]&&r(51,Gt=Ce(J,1,Gt)),2097152&t.$$.dirty[1]|1032&t.$$.dirty[2]&&r(52,Kt=Wn(q,z,Kt)),4194304&t.$$.dirty[1]|512&t.$$.dirty[2]&&r(53,Xt=qn(W,Xt)),16&t.$$.dirty[0]|256&t.$$.dirty[2]&&r(4,oe=Jn(H,oe)),192&t.$$.dirty[2]&&(U&&U in Ja&&(r(8,Zt=Ja[U]),r(54,Yt=U)),"currency"===(null==L?void 0:L.type)&&(r(8,Zt=qa?"text":"tel"),r(9,Tt="decimal"))),8388608&t.$$.dirty[1]&&r(5,F="multi_line_text"===Yt),33701888&t.$$.dirty[1]|56&t.$$.dirty[2]&&(fn(B)?r(55,Qt="calc(".concat(B*(Ot||1.25)*(Ht/10)+"em"," + ").concat(ke(Te(null==R?void 0:R.top,0)+Te(null==R?void 0:R.bottom,0)),")")):r(55,Qt=""),r(56,te=Qe(R||void 0,te)),r(57,ee=te?Ue({top:(Number(te.top)||0)/Ht*10,right:(Number("ltr"===z?te.end:te.start)||Number(te.right)||0)/Ht*10,bottom:(Number(te.bottom)||0)/Ht*10,left:(Number("ltr"===z?te.start:te.end)||Number(te.left)||0)/Ht*10},z):""),r(58,ne=te?Ue({top:(Number(te.top)||0)/Ht*10,bottom:(Number(te.bottom)||0)/Ht*10},z):"")),1&t.$$.dirty[0]|4&t.$$.dirty[2]&&((null==M?void 0:M.description)?r(10,re=M.description):At.logError($e(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|7340032&t.$$.dirty[1]&&r(16,S={"highlight-color":Boolean(Gt),multiline:F,"alignment-horizontal":Kt,"alignment-vertical":Xt}),18849792&t.$$.dirty[1]&&r(15,P={"--divkit-input-hint-color":Ut,"--divkit-input-highlight-color":Gt,"--divkit-input-line-height":Ot,"font-weight":Nt,"font-family":Wt,"letter-spacing":qt,color:Jt,"max-height":Qt}),67125248&t.$$.dirty[1]&&r(14,N={"font-size":xe(Ht),padding:ee}),134234112&t.$$.dirty[1]&&r(13,I={"font-size":xe(Ht),padding:ne}),5&t.$$.dirty[0]|2048&t.$$.dirty[1]&&Pt&&At.json&&(St&&(Dt.unregisterFocusable(St),r(42,St=void 0)),At.json.id&&!At.fakeElement&&(r(42,St=At.json.id),Dt.registerFocusable(St,{focus(){Pt&&Pt.focus()}})))},[At,jt,Pt,Rt,oe,F,Bt,Lt,Zt,Tt,re,l,s,I,N,P,S,D,V,j,A,C,E,k,x,w,_,b,y,v,m,g,f,d,u,c,nt,Ft,function(t){let e=(F?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Rt!==e&&(r(3,Rt=r(6,Bt=e)),s.setValue(e),zt&&async function(){if(!Pt||!zt)return;zt.applyChangeFrom(Rt,Pt instanceof HTMLInputElement?null===Pt.selectionEnd?void 0:Pt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const o=r.getRangeAt(0);let i;if(o){if(!o.collapsed)return 0;n+=o.endOffset,i=o.endContainer}if(i instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,i.childNodes.length);e<r;++e)t+=Oa(i.childNodes[e]);n=t}for(;i&&i!==t;){var e;const t=i.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(i);for(let e=0;e<r;++e)n+=Oa(t.childNodes[e]);i instanceof HTMLElement&&("DIV"===i.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===Ia||"BR"===i.tagName)&&++n,i=t}return n}catch(t){return 0}}(Pt)),l.set(zt.rawValue),$(s,O=r(3,Rt=r(6,Bt=zt.value)),O);const t=zt.cursorPosition;await It(),document.activeElement===Pt&&ie(t)}())},function(){Mt=!1,setTimeout((()=>{Mt=!0}),250)},function(){if(!Mt)if(Pt instanceof HTMLInputElement)Pt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(Pt),t&&(t.removeAllRanges(),t.addRange(e))}},Et,St,zt,Ut,Ht,Nt,Wt,Ot,qt,Jt,Gt,Kt,Xt,Yt,Qt,te,ee,ne,i,a,o,O,T,M,z,R,B,L,U,H,W,q,J,G,K,X,Y,Z,Q,tt,et,function(t){Vt[t?"unshift":"push"]((()=>{Pt=t,r(2,Pt)}))},function(){Bt=this.innerText,r(6,Bt),r(43,zt),r(3,Rt),r(62,O)},function(t){Vt[t?"unshift":"push"]((()=>{Pt=t,r(2,Pt)}))},function(){Bt=this.innerText,r(6,Bt),r(43,zt),r(3,Rt),r(62,O)},function(t){Vt[t?"unshift":"push"]((()=>{Pt=t,r(2,Pt)}))}]}const Xa={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72","select__select_has-custom-focused":"divkit-a46ad","has-custom-focused":"divkit-fc5dc",select__option:"divkit-e774b"};function Ya(t,e,n){const r=t.slice();return r[55]=e[n],r}function Za(t){let e,n;return e=new In({props:{cls:Be("select",Xa,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[ts,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{52:e,53:n,54:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?2097152:0)|(n?4194304:0)|(r?8388608:0)]}]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Be("select",Xa,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8389564&n[0]|148897792&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Qa(t){let e,n,r,o,i=(t[55].text||t[55].value)+"";return{c(){e=B("option"),n=U(i),this.h()},l(t){e=nt(t,"OPTION",{class:!0});var r=Z(e);n=ot(r,i),r.forEach(z),this.h()},h(){J(e,"class",r=Xa.select__option),e.__value=o=t[55].value,lt(e,e.__value)},m(t,r){M(t,e,r),O(e,n)},p(t,r){16&r[0]&&i!==(i=(t[55].text||t[55].value)+"")&&st(n,i),16&r[0]&&o!==(o=t[55].value)&&(e.__value=o,lt(e,e.__value))},d(t){t&&z(e)}}}function ts(t){let e,n,r,o,i,a,c,u,d,h,p=(t[3]||t[23]||"")+"",f=Qt(t[4]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Qa(Ya(t,f,e));return{c(){e=B("span"),n=U(p),i=H(),a=B("select");for(let t=0;t<g.length;t+=1)g[t].c();this.h()},l(t){e=nt(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=Z(e);n=ot(r,p),r.forEach(z),i=it(t),a=nt(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var o=Z(a);for(let t=0;t<g.length;t+=1)g[t].l(o);o.forEach(z),this.h()},h(){J(e,"class",r=Xa["select__select-text"]),J(e,"style",o=we(t[9])),J(e,"aria-hidden","true"),J(a,"class",c=Be("select__select",Xa,{"has-custom-focus":t[52]})),J(a,"aria-label",t[7]),J(a,"style",u=we(t[8])),void 0===t[5]&&Ot((()=>t[49].call(a)))},m(r,o){M(r,e,o),O(e,n),M(r,i,o),M(r,a,o);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);t[48](a),ut(a,t[5],!0),d||(h=[q(a,"change",t[49]),q(a,"focus",(function(){l(t[53])&&t[53].apply(this,arguments)})),q(a,"blur",(function(){l(t[54])&&t[54].apply(this,arguments)}))],d=!0)},p(r,i){if(t=r,8388616&i[0]&&p!==(p=(t[3]||t[23]||"")+"")&&st(n,p),512&i[0]&&o!==(o=we(t[9]))&&J(e,"style",o),16&i[0]){let e;for(f=Qt(t[4]),e=0;e<f.length;e+=1){const n=Ya(t,f,e);g[e]?g[e].p(n,i):(g[e]=Qa(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}2097152&i[1]&&c!==(c=Be("select__select",Xa,{"has-custom-focus":t[52]}))&&J(a,"class",c),128&i[0]&&J(a,"aria-label",t[7]),256&i[0]&&u!==(u=we(t[8]))&&J(a,"style",u),48&i[0]&&ut(a,t[5])},d(n){n&&(z(e),z(i),z(a)),R(g,n),t[48](null),d=!1,s(h)}}}function es(t){let e,n,r=!t[6]&&Za(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[6]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),64&n[0]&&Gt(r,1)):(r=Za(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function ns(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,S,P,N,I,O,T=n,M=n,z=n,R=n,B=n,L=n,U=n,H=n,W=n,q=n,J=n;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J()));let{componentContext:G}=e,{layoutParams:K}=e;const X=Ct(ye),Y=X.direction;let Z,Q;p(t,Y,(t=>r(46,P=t)));let tt,et,nt=!1,rt="",ot=null,it="",at="rgba(0,0,0,.45)",st=12,lt="",ct="",ut="#000",dt="";return kt((()=>{Z&&(X.unregisterFocusable(Z),r(25,Z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,G=t.componentContext),"layoutParams"in t&&r(1,K=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(37,o=G.origJson),64&t.$$.dirty[1]&&o&&(r(26,ot=null),r(28,at="rgba(0,0,0,.45)"),r(29,st=12),r(30,tt=void 0),r(31,lt=""),r(32,et=void 0),r(33,ct=""),r(34,ut="#000"),r(7,dt="")),1&t.$$.dirty[0]&&r(35,i=G.json.value_variable),1&t.$$.dirty[0]&&r(36,a=G.json.options),32&t.$$.dirty[1]&&r(4,s=Array.isArray(a)&&a.filter((t=>"string"==typeof t.value))||[]),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(r(22,l=i&&G.getVariable(i,"string")||ia("temp","string","")),q(),q=h(l,(t=>r(5,I=t)))),1&t.$$.dirty[0]&&(r(21,c=G.getDerivedFromVars(G.json.paddings)),W(),W=h(c,(t=>r(47,N=t)))),1&t.$$.dirty[0]&&(r(20,u=G.getDerivedFromVars(G.json.hint_text)),J(),J=h(u,(t=>r(23,O=t)))),1&t.$$.dirty[0]&&(r(19,d=G.getDerivedFromVars(G.json.hint_color)),H(),H=h(d,(t=>r(45,S=t)))),1&t.$$.dirty[0]&&(r(18,f=G.getDerivedFromVars(G.json.font_size)),U(),U=h(f,(t=>r(44,F=t)))),1&t.$$.dirty[0]&&(r(17,g=G.getDerivedFromVars(G.json.font_weight)),L(),L=h(g,(t=>r(43,D=t)))),1&t.$$.dirty[0]&&(r(16,m=G.getDerivedFromVars(G.json.font_family)),B(),B=h(m,(t=>r(42,V=t)))),1&t.$$.dirty[0]&&(r(15,v=G.getDerivedFromVars(G.json.line_height)),R(),R=h(v,(t=>r(41,j=t)))),1&t.$$.dirty[0]&&(r(14,y=G.getDerivedFromVars(G.json.letter_spacing)),z(),z=h(y,(t=>r(40,A=t)))),1&t.$$.dirty[0]&&(r(13,$=G.getDerivedFromVars(G.json.text_color)),M(),M=h($,(t=>r(39,C=t)))),1&t.$$.dirty[0]&&(r(12,b=G.getDerivedFromVars(G.json.accessibility)),T(),T=h(b,(t=>r(38,E=t)))),17&t.$$.dirty[0]&&(Array.isArray(s)&&s.length||G.logError($e(new Error('Empty selection "items" in "select"')))),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(i?r(6,nt=!1):(r(6,nt=!0),G.logError($e(new Error('Missing "value_variable" in "select"'))))),49&t.$$.dirty[0]){const t=s.find((t=>t.value===I));t?r(3,rt=("string"==typeof t.text?t.text:t.value)||""):(r(3,rt=""),I&&G.logError($e(new Error('Value from the variable was not found in the selection items for "select"'))))}if(536870912&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(29,st=Tn(F,st)),603979776&t.$$.dirty[0]|98304&t.$$.dirty[1]&&(r(26,ot=Qe(N||void 0,ot)),r(27,it=ot?Ue({top:(Number(ot.top)||0)/st*10,right:(Number("ltr"===P?ot.end:ot.start)||Number(ot.right)||0)/st*10,bottom:(Number(ot.bottom)||0)/st*10,left:(Number("ltr"===P?ot.start:ot.end)||Number(ot.left)||0)/st*10},P):"")),268435456&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(28,at=Ce(S,1,at)),1073741824&t.$$.dirty[0]|6144&t.$$.dirty[1]&&(r(30,tt=zn(D,tt)),r(31,lt=V&&"string"==typeof V?X.typefaceProvider(V,{fontWeight:tt||400}):"")),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]){const t=j;fn(t)&&r(32,et=t/st)}536870912&t.$$.dirty[0]|512&t.$$.dirty[1]&&He(A)&&r(33,ct=xe(A/st*10)),264&t.$$.dirty[1]&&r(34,ut=Ce(C,1,ut)),1&t.$$.dirty[0]|128&t.$$.dirty[1]&&((null==E?void 0:E.description)?r(7,dt=E.description):G.logError($e(new Error('Missing accessibility "description" for select'),{level:"warn"}))),8&t.$$.dirty[0]&&r(11,_={hint:!rt}),1342177280&t.$$.dirty[0]|9&t.$$.dirty[1]&&r(10,w={"--divkit-input-hint-color":at,"font-weight":tt,"font-family":lt,color:ut}),671088640&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(9,x={padding:it,"font-size":xe(st),"line-height":et,"letter-spacing":ct}),536870912&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(8,k={"font-size":xe(st),"line-height":et,"letter-spacing":ct}),33554437&t.$$.dirty[0]&&G.json&&Q&&(Z&&(X.unregisterFocusable(Z),r(25,Z=void 0)),G.json.id&&!G.fakeElement&&(r(25,Z=G.json.id),X.registerFocusable(Z,{focus(){Q&&Q.focus()}})))},[G,K,Q,rt,s,I,nt,dt,k,x,w,_,b,$,y,v,m,g,f,d,u,c,l,O,Y,Z,ot,it,at,st,tt,lt,et,ct,ut,i,a,o,E,C,A,j,V,D,F,S,P,N,function(t){Vt[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},function(){I=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),l.set(I),r(4,s),r(36,a),r(0,G)}]}const rs={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function os(t,e,n){const r=t.slice();return r[47]=e[n],r}function is(t,e,n){const r=t.slice();return r[47]=e[n],r}function as(t){let e,n;return e=new In({props:{cls:Be("video",rs,t[12]),customActions:"video",componentContext:t[0],layoutParams:t[1],$$slots:{default:[ps]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=Be("video",rs,t[12])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8184&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function ss(t){let e,n,r,o,i,a,l=Qt(t[4]),c=[];for(let e=0;e<l.length;e+=1)c[e]=us(os(t,l,e));return{c(){e=B("video");for(let t=0;t<c.length;t+=1)c[t].c();this.h()},l(t){e=nt(t,"VIDEO",{class:!0,style:!0,poster:!0,preload:!0});var n=Z(e);for(let t=0;t<c.length;t+=1)c[t].l(n);n.forEach(z),this.h()},h(){J(e,"class",n=rs.video__video),J(e,"style",r=we(t[11])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],J(e,"poster",t[9]),J(e,"preload",o=t[8]?"metadata":"auto")},m(n,r){M(n,e,r);for(let t=0;t<c.length;t+=1)c[t]&&c[t].m(e,null);t[41](e),i||(a=[q(e,"timeupdate",t[21]),q(e,"ended",t[22]),q(e,"playing",t[23]),q(e,"pause",t[24]),q(e,"waiting",t[25]),q(e,"error",t[26])],i=!0)},p(t,n){if(67108880&n[0]){let r;for(l=Qt(t[4]),r=0;r<l.length;r+=1){const o=os(t,l,r);c[r]?c[r].p(o,n):(c[r]=us(o),c[r].c(),c[r].m(e,null))}for(;r<c.length;r+=1)c[r].d(1);c.length=l.length}2048&n[0]&&r!==(r=we(t[11]))&&J(e,"style",r),32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),512&n[0]&&J(e,"poster",t[9]),256&n[0]&&o!==(o=t[8]?"metadata":"auto")&&J(e,"preload",o)},d(n){n&&z(e),R(c,n),t[41](null),i=!1,s(a)}}}function ls(t){let e,n,r,o,i,a,l,c,u="".concat(t[10],"%"),d=Qt(t[4]),h=[];for(let e=0;e<d.length;e+=1)h[e]=hs(is(t,d,e));return{c(){e=B("div"),n=B("video");for(let t=0;t<h.length;t+=1)h[t].c();this.h()},l(t){e=nt(t,"DIV",{class:!0});var r=Z(e);n=nt(r,"VIDEO",{class:!0,style:!0,poster:!0,preload:!0});var o=Z(n);for(let t=0;t<h.length;t+=1)h[t].l(o);o.forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=rs.video__video),J(n,"style",o=we(t[11])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],J(n,"poster",t[9]),J(n,"preload",i=t[8]?"metadata":"auto"),J(e,"class",a=rs["video__aspect-wrapper"]),ct(e,"padding-bottom",u)},m(r,o){M(r,e,o),O(e,n);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(n,null);t[40](n),l||(c=[q(n,"timeupdate",t[21]),q(n,"ended",t[22]),q(n,"playing",t[23]),q(n,"pause",t[24]),q(n,"waiting",t[25]),q(n,"error",t[26])],l=!0)},p(t,r){if(67108880&r[0]){let e;for(d=Qt(t[4]),e=0;e<d.length;e+=1){const o=is(t,d,e);h[e]?h[e].p(o,r):(h[e]=hs(o),h[e].c(),h[e].m(n,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=d.length}2048&r[0]&&o!==(o=we(t[11]))&&J(n,"style",o),32&r[0]&&(n.loop=t[5]),64&r[0]&&(n.autoplay=t[6]),128&r[0]&&(n.muted=t[7]),512&r[0]&&J(n,"poster",t[9]),256&r[0]&&i!==(i=t[8]?"metadata":"auto")&&J(n,"preload",i),1024&r[0]&&u!==(u="".concat(t[10],"%"))&&ct(e,"padding-bottom",u)},d(n){n&&z(e),R(h,n),t[40](null),l=!1,s(c)}}}function cs(t){let e,n,r,o,i;return{c(){e=B("source"),this.h()},l(t){e=nt(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[47].src)||J(e,"src",n),J(e,"type",r=t[47].type)},m(n,r){M(n,e,r),o||(i=q(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[47].src)&&J(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&J(e,"type",r)},d(t){t&&z(e),o=!1,i()}}}function us(t){let e,n=t[47],r=cs(t);return{c(){r.c(),e=W()},l(t){r.l(t),e=W()},m(t,n){r.m(t,n),M(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[47])?(r.d(1),r=cs(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&z(e),r.d(t)}}}function ds(t){let e,n,r,o,i;return{c(){e=B("source"),this.h()},l(t){e=nt(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[47].src)||J(e,"src",n),J(e,"type",r=t[47].type)},m(n,r){M(n,e,r),o||(i=q(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[47].src)&&J(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&J(e,"type",r)},d(t){t&&z(e),o=!1,i()}}}function hs(t){let e,n=t[47],r=ds(t);return{c(){r.c(),e=W()},l(t){r.l(t),e=W()},m(t,n){r.m(t,n),M(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[47])?(r.d(1),r=ds(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&z(e),r.d(t)}}}function ps(t){let e;function n(t,e){return t[12].aspect?ls:ss}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),M(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&z(e),o.d(t)}}}function fs(t){let e,n,r=!t[2]&&as(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[2]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),4&n[0]&&Gt(r,1)):(r=as(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function gs(t,e,r){let o,i,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E=n,C=n,A=n,j=n,V=n,D=n,F=n,S=n;t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S()));let{componentContext:P}=e,{layoutParams:N}=e;const I=Ct(ye);let O,T,M,z,R=!1,B=!1,L=[],U=!1,H=!1,W=!1,q=!1,J="fit",G="0";function K(t){B?B=!1:T&&r(3,T.currentTime=Number(t)/1e3,T)}function X(){null==T||T.pause()}function Y(){const t=null==T?void 0:T.play();t&&t.catch((t=>{P.logError($e(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}return kt((()=>{O&&(I.unregisterInstance(O),r(27,O=void 0)),z&&(z(),r(29,z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,P=t.componentContext),"layoutParams"in t&&r(1,N=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&P.json&&(r(5,U=!1),r(6,H=!1),r(7,W=!1),r(8,q=!1),r(9,M=void 0),r(28,J="fit")),1&t.$$.dirty[0]&&r(31,o=P.json.elapsed_time_variable),1&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(30,i=o&&P.getVariable(o,"integer")||ia("temp","integer",0)),1610612736&t.$$.dirty[0]&&i&&(z&&z(),r(29,z=i.subscribe(K))),1&t.$$.dirty[0]&&(r(20,a=P.getDerivedFromVars(P.json.video_sources)),S(),S=h(a,(t=>r(39,k=t)))),1&t.$$.dirty[0]&&(r(19,s=P.getDerivedFromVars(P.json.repeatable)),F(),F=h(s,(t=>r(38,x=t)))),1&t.$$.dirty[0]&&(r(18,l=P.getDerivedFromVars(P.json.autostart)),E(),E=h(l,(t=>r(32,v=t)))),1&t.$$.dirty[0]&&(r(17,c=P.getDerivedFromVars(P.json.muted)),D(),D=h(c,(t=>r(37,w=t)))),1&t.$$.dirty[0]&&(r(16,u=P.getDerivedFromVars(P.json.preload_required)),V(),V=h(u,(t=>r(36,_=t)))),1&t.$$.dirty[0]&&(r(15,d=P.getDerivedFromVars(P.json.preview)),j(),j=h(d,(t=>r(35,b=t)))),1&t.$$.dirty[0]&&(r(14,p=P.getDerivedFromVars(P.json.scale)),A(),A=h(p,(t=>r(34,$=t)))),1&t.$$.dirty[0]&&(r(13,f=P.getDerivedFromVars(P.json.aspect)),C(),C=h(f,(t=>r(33,y=t)))),17&t.$$.dirty[0]|256&t.$$.dirty[1]&&(r(4,(e=k,n=L,L=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):n)),L.length?r(2,R=!1):(r(2,R=!0),P.logError($e(new Error('Missing "video_sources" in "video"'))))),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(5,U=Jn(x,U)),64&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(6,H=Jn(v,H)),128&t.$$.dirty[0]|64&t.$$.dirty[1]&&r(7,W=Jn(w,W)),256&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(8,q=Jn(_,q)),512&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(9,M="string"==typeof b?Hr(b):M),268435456&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(28,J=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}($)||J),4&t.$$.dirty[1]){const t=null==y?void 0:y.ratio;t&&fn(t)?r(10,G=(100/Number(t)).toFixed(2)):r(10,G="0")}134217733&t.$$.dirty[0]&&P.json&&(O&&(I.unregisterInstance(O),r(27,O=void 0)),!P.json.id||R||P.fakeElement||(r(27,O=P.json.id),I.registerInstance(O,{pause:X,start:Y}))),9&t.$$.dirty[0]|2&t.$$.dirty[1]&&P.json&&v&&T&&Y(),1024&t.$$.dirty[0]&&r(12,g={aspect:"0"!==G}),268435456&t.$$.dirty[0]&&r(11,m={"object-fit":J})},[P,N,R,T,L,U,H,W,q,M,G,m,g,f,p,d,u,c,l,s,a,function(){T&&(B=!0,i.setValue(Math.floor(1e3*T.currentTime)))},function(){const t=P.getJsonWithVars(P.json.end_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.resume_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.pause_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.buffering_actions);P.execAnyActions(t)},function(){const t=P.getJsonWithVars(P.json.fatal_actions);P.execAnyActions(t)},O,J,z,i,o,v,y,$,b,_,w,x,k,function(t){Vt[t?"unshift":"push"]((()=>{T=t,r(3,T)}))},function(t){Vt[t?"unshift":"push"]((()=>{T=t,r(3,T)}))}]}function ms(t,e,n){const r=t.slice();return r[12]=e[n],r}function vs(t){let e,n;return e=new In({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[xs]},$$scope:{ctx:t}}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.componentContext=t[0]),2&n&&(r.layoutParams=t[1]),33277&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function ys(t){let e,n,r=[t[7]],i={};for(let t=0;t<r.length;t+=1)i=o(i,r[t]);return{c(){e=B("template"),n=new pt(!1),this.h()},l(t){e=nt(t,"TEMPLATE",{});var r=Z(e.content);n=function(t,e){const n=at(t,"HTML_TAG_START",0),r=at(t,"HTML_TAG_END",n+1);if(-1===n||-1===r)return new pt(e);Q(t);const o=t.splice(n,r-n+1);z(o[0]),z(o[o.length-1]);const i=o.slice(1,o.length-1);for(const e of i)e.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new pt(e,i)}(r,!1),r.forEach(z),this.h()},h(){n.a=null,K(e,i)},m(r,o){M(r,e,o),n.m(t[6],e.content)},p(t,o){64&o&&n.p(t[6]),K(e,i=ne(r,[128&o&&t[7]]))},d(t){t&&z(e)}}}function $s(t){let e,r,o=t[4],i=_s(t);return{c(){i.c(),e=W()},l(t){i.l(t),e=W()},m(t,n){i.m(t,n),M(t,e,n),r=!0},p(t,r){16&r&&d(o,o=t[4])?(qt(),Kt(i,1,1,n),Jt(),i=_s(t),i.c(),Gt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Gt(i),r=!0)},o(t){Kt(i),r=!1},d(t){t&&z(e),i.d(t)}}}function bs(t){let e,n;return e=new Ds({props:{componentContext:t[12]}}),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};256&n&&(r.componentContext=t[12]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function _s(t){let e,n,r=Qt(t[8]),o=[];for(let e=0;e<r.length;e+=1)o[e]=bs(ms(t,r,e));const i=t=>Kt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=W()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=W()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);M(t,e,r),n=!0},p(t,n){if(256&n){let a;for(r=Qt(t[8]),a=0;a<r.length;a+=1){const i=ms(t,r,a);o[a]?(o[a].p(i,n),Gt(o[a],1)):(o[a]=bs(i),o[a].c(),Gt(o[a],1),o[a].m(e.parentNode,e))}for(qt(),a=r.length;a<o.length;a+=1)i(a);Jt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Gt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Kt(o[t]);n=!1},d(t){t&&z(e),R(o,t)}}}function ws(t){let e,n,r,i=t[6]&&ys(t),a=!t[3]&&t[4]&&$s(t),s=[t[0].json.custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=o(l,s[t]);return{c(){e=B(t[2].element),i&&i.c(),n=H(),a&&a.c(),this.h()},l(r){e=nt(r,(t[2].element||"null").toUpperCase(),{});var o=Z(e);i&&i.l(o),n=it(o),a&&a.l(o),o.forEach(z),this.h()},h(){Y(t[2].element)(e,l)},m(o,s){M(o,e,s),i&&i.m(e,null),O(e,n),a&&a.m(e,null),t[10](e),r=!0},p(t,r){t[6]?i?i.p(t,r):(i=ys(t),i.c(),i.m(e,n)):i&&(i.d(1),i=null),!t[3]&&t[4]?a?(a.p(t,r),24&r&&Gt(a,1)):(a=$s(t),a.c(),Gt(a,1),a.m(e,null)):a&&(qt(),Kt(a,1,1,(()=>{a=null})),Jt()),Y(t[2].element)(e,l=ne(s,[1&r&&(t[0].json.custom_props||{})]))},i(t){r||(Gt(a),r=!0)},o(t){Kt(a),r=!1},d(n){n&&z(e),i&&i.d(),a&&a.d(),t[10](null)}}}function xs(t){let e,r,o=t[2].element,i=t[2].element&&ws(t);return{c(){i&&i.c(),e=W()},l(t){i&&i.l(t),e=W()},m(t,n){i&&i.m(t,n),M(t,e,n)},p(t,n){t[2].element?o?d(o,t[2].element)?(i.d(1),i=ws(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):i.p(t,n):(i=ws(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):o&&(i.d(1),i=null,o=t[2].element)},i:n,o(t){Kt(i,t),r=!1},d(t){t&&z(e),i&&i.d(t)}}}function ks(t){let e,n,r=t[2]&&vs(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Gt(r,1)):(r=vs(t),r.c(),Gt(r,1),r.m(e.parentNode,e)):r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt())},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function Es(t,e,n){let r,o;var i;let{componentContext:a}=e,{layoutParams:s}=e;const l=Ct(ye);let c,u=null,d="",h={},p=!1;return wt((()=>{if(c&&"divKitApiCallback"in c&&"function"==typeof c.divKitApiCallback){const t=l.getExtensionContext();c.divKitApiCallback(t)}})),t.$$set=t=>{"componentContext"in t&&n(0,a=t.componentContext),"layoutParams"in t&&n(1,s=t.layoutParams)},t.$$.update=()=>{if(517&t.$$.dirty)if("string"==typeof a.json.custom_type&&a.json.custom_type&&(null===n(9,i=l.customComponents)||void 0===i?void 0:i.has(a.json.custom_type))){if(n(2,u=l.customComponents.get(a.json.custom_type)),"function"==typeof u.template){const t=l.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(6,d=u.template({props:a.json.custom_props,variables:e}))}else u.template&&"string"==typeof u.template?n(6,d=u.template):n(6,d="");n(7,h={shadowrootmode:u.shadowRootMode||"open"})}else n(2,u=null),n(6,d=";"),a.logError($e(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(4,r=a.json.items),17&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(3,p=!1):(n(3,p=!0),a.logError($e(new Error('Incorrect "items" prop for div "custom"'))))),25&t.$$.dirty&&n(8,o=(!p&&r||[]).map(((t,e)=>a.produceChildContext(t,{path:e}))))},[a,s,u,p,r,c,d,h,o,i,function(t){Vt[t?"unshift":"push"]((()=>{c=t,n(5,c)}))}]}const Cs={};function As(t){let e,n,r;var o=t[2];function i(t,e){return{props:{componentContext:t[0],layoutParams:t[1]}}}return o&&(e=ft(o,i(t))),{c(){e&&se(e.$$.fragment),n=W()},l(t){e&&le(e.$$.fragment,t),n=W()},m(t,o){e&&ce(e,t,o),M(t,n,o),r=!0},p(t,r){if(4&r&&o!==(o=t[2])){if(e){qt();const t=e;Kt(t.$$.fragment,1,0,(()=>{ue(t,1)})),Jt()}o?(e=ft(o,i(t)),se(e.$$.fragment),Gt(e.$$.fragment,1),ce(e,n.parentNode,n)):e=null}else if(o){const n={};1&r&&(n.componentContext=t[0]),2&r&&(n.layoutParams=t[1]),e.$set(n)}},i(t){r||(e&&Gt(e.$$.fragment,t),r=!0)},o(t){e&&Kt(e.$$.fragment,t),r=!1},d(t){t&&z(n),e&&ue(e,t)}}}function js(t){let e,n,r=t[2]&&As(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Gt(r,1)):(r=As(t),r.c(),Gt(r,1),r.m(e.parentNode,e)):r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt())},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}function Vs(t,e,n){let{componentContext:r}=e,{layoutParams:o}=e;const i=Ct(ye);let a;return t.$$set=t=>{"componentContext"in t&&n(0,r=t.componentContext),"layoutParams"in t&&n(1,o=t.layoutParams)},t.$$.update=()=>{if(5&t.$$.dirty){const t=r.json;if(n(2,a=(null==t?void 0:t.type)&&Cs[t.type]||void 0),!a){let e;e=(null==t?void 0:t.type)&&i.hasTemplate(t.type)?"Recursive template":"Unknown component",r.logError($e(new Error(e),{additional:{component:(null==t?void 0:t.type)||"<missing>"}}))}}},[r,o,a]}Cs.text=class extends pe{constructor(t){super(),de(this,t,sr,ar,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Cs.container=class extends pe{constructor(t){super(),de(this,t,Or,Fr,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Cs.separator=class extends pe{constructor(t){super(),de(this,t,Lr,Br,d,{componentContext:0,layoutParams:1})}},Cs.image=to,Cs.gif=to,Cs.grid=class extends pe{constructor(t){super(),de(this,t,ho,co,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Cs.gallery=class extends pe{constructor(t){super(),de(this,t,Ao,Co,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Cs.tabs=class extends pe{constructor(t){super(),de(this,t,Ro,zo,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},Cs.state=class extends pe{constructor(t){super(),de(this,t,yi,mi,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Cs.pager=class extends pe{constructor(t){super(),de(this,t,Vi,Ai,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Cs.indicator=class extends pe{constructor(t){super(),de(this,t,Ti,Ii,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Cs.slider=class extends pe{constructor(t){super(),de(this,t,Ea,ba,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Cs.input=class extends pe{constructor(t){super(),de(this,t,Ka,Wa,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},Cs.select=class extends pe{constructor(t){super(),de(this,t,ns,es,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Cs.video=class extends pe{constructor(t){super(),de(this,t,gs,fs,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Cs.custom=class extends pe{constructor(t){super(),de(this,t,Es,ks,d,{componentContext:0,layoutParams:1})}};const Ds=class extends pe{constructor(t){super(),de(this,t,Vs,js,d,{componentContext:0,layoutParams:1})}},Fs={"root-svg-filters":"divkit-dc22b"};function Ss(t,e,n){const r=t.slice();r[1]=e[n];const o=r[1].split(":");return r[2]=o[0],r[3]=o[1],r}function Ps(t){let e,n,r,o=Qt([...Object.keys(t[0])]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Ts(Ss(t,o,e));return{c(){e=L("svg"),n=L("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=rt(t,"svg",{class:!0,"aria-hidden":!0});var r=Z(e);n=rt(r,"defs",{});var o=Z(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(z),r.forEach(z),this.h()},h(){J(e,"class",r=Fs["root-svg-filters"]),J(e,"aria-hidden","true")},m(t,r){M(t,e,r),O(e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=Qt([...Object.keys(t[0])]),r=0;r<o.length;r+=1){const a=Ss(t,o,r);i[r]?i[r].p(a,e):(i[r]=Ts(a),i[r].c(),i[r].m(n,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&z(e),R(i,t)}}}function Ns(t){let e,n;return{c(){e=L("feBlend"),this.h()},l(t){e=rt(t,"feBlend",{in2:!0,mode:!0}),Z(e).forEach(z),this.h()},h(){J(e,"in2","SourceGraphic"),J(e,"mode",n=t[3])},m(t,n){M(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&J(e,"mode",n)},d(t){t&&z(e)}}}function Is(t){let e;return{c(){e=L("feComposite"),this.h()},l(t){e=rt(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),Z(e).forEach(z),this.h()},h(){J(e,"in2","SourceGraphic"),J(e,"operator","arithmetic"),J(e,"k1","1"),J(e,"k2","0"),J(e,"k3","0"),J(e,"k4","0")},m(t,n){M(t,e,n)},p:n,d(t){t&&z(e)}}}function Os(t){let e,n;return{c(){e=L("feComposite"),this.h()},l(t){e=rt(t,"feComposite",{in2:!0,operator:!0}),Z(e).forEach(z),this.h()},h(){J(e,"in2","SourceGraphic"),J(e,"operator",n=t[3].split("_")[1])},m(t,n){M(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&J(e,"operator",n)},d(t){t&&z(e)}}}function Ts(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Os:"multiply"===t[3]?Is:Ns}let a=i(t),s=a(t);return{c(){e=L("filter"),n=L("feFlood"),s.c(),this.h()},l(t){e=rt(t,"filter",{id:!0});var r=Z(e);n=rt(r,"feFlood",{"flood-color":!0}),Z(n).forEach(z),s.l(r),r.forEach(z),this.h()},h(){J(n,"flood-color",r=t[2]),J(e,"id",o=t[0][t[1]])},m(t,r){M(t,e,r),O(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&J(n,"flood-color",r),a===(a=i(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&o!==(o=t[0][t[1]])&&J(e,"id",o)},d(t){t&&z(e),s.d()}}}function Ms(t){let e,r=Object.keys(t[0]).length,o=r&&Ps(t);return{c(){o&&o.c(),e=W()},l(t){o&&o.l(t),e=W()},m(t,n){o&&o.m(t,n),M(t,e,n)},p(t,n){let[i]=n;1&i&&(r=Object.keys(t[0]).length),r?o?o.p(t,i):(o=Ps(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:n,o:n,d(t){t&&z(e),o&&o.d(t)}}}function zs(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Rs=class extends pe{constructor(t){super(),de(this,t,zs,Ms,d,{svgFiltersMap:0})}};function Bs(t,e,n,r){const o=n[t.type];if(!o)return r($e(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let i;const a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(a[i]=t[i]);const s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),o=r.filter((t=>"$"!==t.charAt(0))),i=r.filter((t=>"$"===t.charAt(0)));return o.forEach((r=>{const o=n[r];"object"==typeof o&&null!==o?(e[r]=Array.isArray(o)?[]:{},t(e[r],o)):e[r]=o})),i.forEach((t=>{const r=n[t],o=a[r];if(void 0!==o){const n=t.substring(1);e[n]=o}})),e}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(s[i]=t[i]);return{json:s,templateContext:a}}function Ls(){}function Us(t){return{subscribe:e=>(e(t),Ls)}}function Hs(t,e){return e.length?e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t):t}function Ws(t,e){return e.length?e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t):t}function qs(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 Js(t){try{return Wi(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function Gs(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function Ks(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,Ks.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function Xs(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Ys(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:Ee,JsonStringContents:function(){var t,e,n;for(t=he,e=[],n=Ce();n!==r;)e.push(n),n=Ce();return pe=t,e=At(e)}},a=Ee,s="@{",l="}",c="@{}",u="\\",d="?",h=":",p="!:",f="||",g="&&",m="==",v="!=",y=">=",$=">",b="<=",_="<",w="+",x="-",k="/",E="*",C="%",A="!",j=".",V="(",D=")",F=",",S="'",P="e",N="E",I=/^[^}]/,O=/^[^'}]/,T=/^[0-9]/,M=/^[a-zA-Z_]/,z=/^[a-zA-Z_0-9]/,R=/^[ \t\r\n]/,B=$e("@{",!1),L=$e("}",!1),U=$e("@{}",!1),H=$e("\\",!1),W={type:"any"},q=be(["}"],!0,!1),J=$e("?",!1),G=$e(":",!1),K=$e("!:",!1),X=$e("||",!1),Y=$e("&&",!1),Z=$e("==",!1),Q=$e("!=",!1),tt=$e(">=",!1),et=$e(">",!1),nt=$e("<=",!1),rt=$e("<",!1),ot=$e("+",!1),it=$e("-",!1),at=$e("/",!1),st=$e("*",!1),lt=$e("%",!1),ct=$e("!",!1),ut=$e(".",!1),dt=$e("(",!1),ht=$e(")",!1),pt=$e(",",!1),ft=_e("string"),gt=$e("'",!1),mt=be(["'","}"],!0,!1),vt=_e("integer"),yt=be([["0","9"]],!1,!1),$t=_e("number"),bt=$e("e",!1),_t=$e("E",!1),wt=be([["a","z"],["A","Z"],"_"],!1,!1),xt=be([["a","z"],["A","Z"],"_",["0","9"]],!1,!1),kt=_e("whitespace"),Et=be([" ","\t","\r","\n"],!1,!1),Ct=function(t){return t},At=function(t){return qs(t)},jt=function(t){return t},Vt=function(){return""},Dt=function(){return ye()},Ft=function(){throw new Error("Error tokenizing '"+t+"'.")},St=function(){throw new Error("Error tokenizing '"+t+"'.")},Pt=function(t){return t},Nt=function(t){return Gs(t)},It=function(){throw new Error("Error tokenizing '"+t+"'.")},Ot=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Tt=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Mt=function(t,e){return Ws(t,e)},zt=function(t,e){return Ws(t,e)},Rt=function(t,e){return Hs(t,e)},Bt=function(t,e){return Hs(t,e)},Lt=function(t,e){return Hs(t,e)},Ut=function(t,e){return Hs(t,e)},Ht=function(t){return t},Wt=function(t){return t},qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Jt=function(t,e){return function(t,e){return e.length?e.reduce(((t,e)=>{if(!e[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:t,method:e[3],arguments:e[5][2]}}),t):t}(t,e)},Gt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Kt=function(t,e){return[t,...e]},Xt=function(t){return t},Yt=function(t){return t},Zt=function(t){return qs(t)},Qt=function(t){return t},te=function(){return""},ee=function(){return ye()},ne=function(){throw new Error("Error tokenizing '"+t+"'.")},re=function(){throw new Error("Error tokenizing '"+t+"'.")},oe=function(t){return t},ie=function(t){return Gs(t)},ae=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){return{type:"IntegerLiteral",value:Js(ye())}},le=function(){return{type:"NumberLiteral",value:parseFloat(ye())}},ce=function(){return{type:"NumberLiteral",value:parseFloat(ye())}},ue=function(){const t=ye();if(/\.\./.test(t)||/\.$/.test(t))throw new Error("Unexpected token: .");return function(t){return"true"===t||"false"===t?{type:"BooleanLiteral",value:"true"===t}:{type:"Variable",id:{type:"Identifier",name:t}}}(t)},de=function(){return{type:"Identifier",name:ye()}},he=0,pe=0,fe=[{line:1,column:1}],ge=0,me=[],ve=0;if("startRule"in e){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=i[e.startRule]}function ye(){return t.substring(pe,he)}function $e(t,e){return{type:"literal",text:t,ignoreCase:e}}function be(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function _e(t){return{type:"other",description:t}}function we(e){var n,r=fe[e];if(r)return r;for(n=e-1;!fe[n];)n--;for(r={line:(r=fe[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return fe[e]=r,r}function xe(t,e,n){var r=we(t),i=we(e),a={source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}};return n&&o&&"function"==typeof o.offset&&(a.start=o.offset(a.start),a.end=o.offset(a.end)),a}function ke(t){he<ge||(he>ge&&(ge=he,me=[]),me.push(t))}function Ee(){var t,e;return t=he,Le(),(e=Ae())!==r?(Le(),pe=t,t=Ct(e)):(he=t,t=r),t}function Ce(){var e,n,o,i,a;if(e=he,t.substr(he,2)===s?(n=s,he+=2):(n=r,0===ve&&ke(B)),n!==r?(o=Le(),(i=Ae())!==r?(Le(),125===t.charCodeAt(he)?(a=l,he++):(a=r,0===ve&&ke(L)),a!==r?(pe=e,e=jt(i)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r),e===r&&(e=he,t.substr(he,3)===c?(n=c,he+=3):(n=r,0===ve&&ke(U)),n!==r&&(pe=e,n=Vt()),(e=n)===r&&(e=he,n=he,ve++,92===t.charCodeAt(he)?(o=u,he++):(o=r,0===ve&&ke(H)),o===r&&(t.substr(he,2)===s?(o=s,he+=2):(o=r,0===ve&&ke(B))),ve--,o===r?n=void 0:(he=n,n=r),n!==r?(t.length>he?(o=t.charAt(he),he++):(o=r,0===ve&&ke(W)),o!==r?(pe=e,e=Dt()):(he=e,e=r)):(he=e,e=r),e===r))){if(e=he,t.substr(he,2)===s?(n=s,he+=2):(n=r,0===ve&&ke(B)),n!==r){if(o=[],I.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(q)),i!==r)for(;i!==r;)o.push(i),I.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(q));else o=r;o!==r?(125===t.charCodeAt(he)?(i=l,he++):(i=r,0===ve&&ke(L)),i!==r?(pe=e,e=Ft()):(he=e,e=r)):(he=e,e=r)}else he=e,e=r;e===r&&(e=he,t.substr(he,2)===s?(n=s,he+=2):(n=r,0===ve&&ke(B)),n!==r&&(pe=e,n=St()),(e=n)===r&&(e=he,92===t.charCodeAt(he)?(n=u,he++):(n=r,0===ve&&ke(H)),n!==r?(t.substr(he,2)===s?(o=s,he+=2):(o=r,0===ve&&ke(B)),o!==r?(pe=e,e=Pt(o)):(he=e,e=r)):(he=e,e=r),e===r&&(e=he,92===t.charCodeAt(he)?(n=u,he++):(n=r,0===ve&&ke(H)),n!==r?(t.length>he?(o=t.charAt(he),he++):(o=r,0===ve&&ke(W)),o!==r?(pe=e,e=Nt(o)):(he=e,e=r)):(he=e,e=r),e===r&&(e=he,92===t.charCodeAt(he)?(n=u,he++):(n=r,0===ve&&ke(H)),n!==r&&(pe=e,n=It()),e=n))))}return e}function Ae(){var e,n,o,i,a,s;return e=he,(n=je())!==r?(Le(),63===t.charCodeAt(he)?(o=d,he++):(o=r,0===ve&&ke(J)),o!==r?(Le(),(i=Ae())!==r?(Le(),58===t.charCodeAt(he)?(a=h,he++):(a=r,0===ve&&ke(G)),a!==r?(Le(),(s=Ae())!==r?(pe=e,e=Ot(n,i,s)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r),e===r&&(e=je()),e}function je(){var e,n,o,i;return e=he,(n=Ve())!==r?(Le(),t.substr(he,2)===p?(o=p,he+=2):(o=r,0===ve&&ke(K)),o!==r?(Le(),(i=Ae())!==r?(pe=e,e=Tt(n,i)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r),e===r&&(e=Ve()),e}function Ve(){var e,n,o,i,a,s,l,c;if(e=he,(n=De())!==r){for(o=[],i=he,a=Le(),t.substr(he,2)===f?(s=f,he+=2):(s=r,0===ve&&ke(X)),s!==r?(l=Le(),(c=De())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),t.substr(he,2)===f?(s=f,he+=2):(s=r,0===ve&&ke(X)),s!==r?(l=Le(),(c=De())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);pe=e,e=Mt(n,o)}else he=e,e=r;return e}function De(){var e,n,o,i,a,s,l,c;if(e=he,(n=Fe())!==r){for(o=[],i=he,a=Le(),t.substr(he,2)===g?(s=g,he+=2):(s=r,0===ve&&ke(Y)),s!==r?(l=Le(),(c=Fe())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),t.substr(he,2)===g?(s=g,he+=2):(s=r,0===ve&&ke(Y)),s!==r?(l=Le(),(c=Fe())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);pe=e,e=zt(n,o)}else he=e,e=r;return e}function Fe(){var e,n,o,i,a,s,l,c;if(e=he,(n=Se())!==r){for(o=[],i=he,a=Le(),t.substr(he,2)===m?(s=m,he+=2):(s=r,0===ve&&ke(Z)),s===r&&(t.substr(he,2)===v?(s=v,he+=2):(s=r,0===ve&&ke(Q))),s!==r?(l=Le(),(c=Se())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),t.substr(he,2)===m?(s=m,he+=2):(s=r,0===ve&&ke(Z)),s===r&&(t.substr(he,2)===v?(s=v,he+=2):(s=r,0===ve&&ke(Q))),s!==r?(l=Le(),(c=Se())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);pe=e,e=Rt(n,o)}else he=e,e=r;return e}function Se(){var e,n,o,i,a,s,l,c;if(e=he,(n=Pe())!==r){for(o=[],i=he,a=Le(),t.substr(he,2)===y?(s=y,he+=2):(s=r,0===ve&&ke(tt)),s===r&&(62===t.charCodeAt(he)?(s=$,he++):(s=r,0===ve&&ke(et)),s===r&&(t.substr(he,2)===b?(s=b,he+=2):(s=r,0===ve&&ke(nt)),s===r&&(60===t.charCodeAt(he)?(s=_,he++):(s=r,0===ve&&ke(rt))))),s!==r?(l=Le(),(c=Pe())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),t.substr(he,2)===y?(s=y,he+=2):(s=r,0===ve&&ke(tt)),s===r&&(62===t.charCodeAt(he)?(s=$,he++):(s=r,0===ve&&ke(et)),s===r&&(t.substr(he,2)===b?(s=b,he+=2):(s=r,0===ve&&ke(nt)),s===r&&(60===t.charCodeAt(he)?(s=_,he++):(s=r,0===ve&&ke(rt))))),s!==r?(l=Le(),(c=Pe())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);pe=e,e=Bt(n,o)}else he=e,e=r;return e}function Pe(){var e,n,o,i,a,s,l,c;if(e=he,(n=Ne())!==r){for(o=[],i=he,a=Le(),43===t.charCodeAt(he)?(s=w,he++):(s=r,0===ve&&ke(ot)),s===r&&(45===t.charCodeAt(he)?(s=x,he++):(s=r,0===ve&&ke(it))),s!==r?(l=Le(),(c=Ne())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),43===t.charCodeAt(he)?(s=w,he++):(s=r,0===ve&&ke(ot)),s===r&&(45===t.charCodeAt(he)?(s=x,he++):(s=r,0===ve&&ke(it))),s!==r?(l=Le(),(c=Ne())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);pe=e,e=Lt(n,o)}else he=e,e=r;return e}function Ne(){var e,n,o,i,a,s,l,c;if(e=he,(n=Ie())!==r){for(o=[],i=he,a=Le(),47===t.charCodeAt(he)?(s=k,he++):(s=r,0===ve&&ke(at)),s===r&&(42===t.charCodeAt(he)?(s=E,he++):(s=r,0===ve&&ke(st)),s===r&&(37===t.charCodeAt(he)?(s=C,he++):(s=r,0===ve&&ke(lt)))),s!==r?(l=Le(),(c=Ie())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),47===t.charCodeAt(he)?(s=k,he++):(s=r,0===ve&&ke(at)),s===r&&(42===t.charCodeAt(he)?(s=E,he++):(s=r,0===ve&&ke(st)),s===r&&(37===t.charCodeAt(he)?(s=C,he++):(s=r,0===ve&&ke(lt)))),s!==r?(l=Le(),(c=Ie())!==r?i=a=[a,s,l,c]:(he=i,i=r)):(he=i,i=r);pe=e,e=Ut(n,o)}else he=e,e=r;return e}function Ie(){var e,n,o,i;return e=he,n=he,ve++,45===t.charCodeAt(he)?(o=x,he++):(o=r,0===ve&&ke(it)),ve--,o!==r?(he=n,n=void 0):n=r,n!==r&&(o=Re())!==r?(pe=e,e=Ht(o)):(he=e,e=r),e===r&&(e=he,n=he,ve++,45===t.charCodeAt(he)?(o=x,he++):(o=r,0===ve&&ke(it)),ve--,o!==r?(he=n,n=void 0):n=r,n!==r&&(o=ze())!==r?(pe=e,e=Wt(o)):(he=e,e=r),e===r&&(e=he,33===t.charCodeAt(he)?(n=A,he++):(n=r,0===ve&&ke(ct)),n===r&&(43===t.charCodeAt(he)?(n=w,he++):(n=r,0===ve&&ke(ot)),n===r&&(45===t.charCodeAt(he)?(n=x,he++):(n=r,0===ve&&ke(it)))),n!==r?(o=Le(),(i=Oe())!==r?(pe=e,e=qt(n,i)):(he=e,e=r)):(he=e,e=r),e===r&&(e=Oe()))),e}function Oe(){var e,n,o,i,a,s,l,c,u,d,h,p,f,g,m;if(e=he,n=function(){var e,n,o,i,a;return e=he,(n=Be())!==r?(Le(),40===t.charCodeAt(he)?(o=V,he++):(o=r,0===ve&&ke(dt)),o!==r?(Le(),(i=Te())!==r?(Le(),41===t.charCodeAt(he)?(a=D,he++):(a=r,0===ve&&ke(ht)),a!==r?(pe=e,e=Gt(n,i)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r),e===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i,a,s,l,c,u,d,h;if(e=he,M.test(t.charAt(he))?(n=t.charAt(he),he++):(n=r,0===ve&&ke(wt)),n!==r){if(o=[],i=[],z.test(t.charAt(he))?(a=t.charAt(he),he++):(a=r,0===ve&&ke(xt)),a!==r)for(;a!==r;)i.push(a),z.test(t.charAt(he))?(a=t.charAt(he),he++):(a=r,0===ve&&ke(xt));else i=r;for(i===r&&(i=he,46===t.charCodeAt(he)?(a=j,he++):(a=r,0===ve&&ke(ut)),a!==r?(s=he,ve++,l=he,c=Le(),(u=Be())!==r?(d=Le(),40===t.charCodeAt(he)?(h=V,he++):(h=r,0===ve&&ke(dt)),h!==r?l=c=[c,u,d,h]:(he=l,l=r)):(he=l,l=r),ve--,l===r?s=void 0:(he=s,s=r),s!==r?i=a=[a,s]:(he=i,i=r)):(he=i,i=r));i!==r;){if(o.push(i),i=[],z.test(t.charAt(he))?(a=t.charAt(he),he++):(a=r,0===ve&&ke(xt)),a!==r)for(;a!==r;)i.push(a),z.test(t.charAt(he))?(a=t.charAt(he),he++):(a=r,0===ve&&ke(xt));else i=r;i===r&&(i=he,46===t.charCodeAt(he)?(a=j,he++):(a=r,0===ve&&ke(ut)),a!==r?(s=he,ve++,l=he,c=Le(),(u=Be())!==r?(d=Le(),40===t.charCodeAt(he)?(h=V,he++):(h=r,0===ve&&ke(dt)),h!==r?l=c=[c,u,d,h]:(he=l,l=r)):(he=l,l=r),ve--,l===r?s=void 0:(he=s,s=r),s!==r?i=a=[a,s]:(he=i,i=r)):(he=i,i=r))}pe=e,e=ue()}else he=e,e=r;return e}(),e===r&&(e=function(){var e,n,o,i;return ve++,e=he,39===t.charCodeAt(he)?(n=S,he++):(n=r,0===ve&&ke(gt)),n!==r?(o=function(){var t,e,n;for(t=he,e=[],n=Me();n!==r;)e.push(n),n=Me();return pe=t,t=e=Zt(e)}(),39===t.charCodeAt(he)?(i=S,he++):(i=r,0===ve&&ke(gt)),i!==r?(pe=e,e=Yt(o)):(he=e,e=r)):(he=e,e=r),ve--,e===r&&(n=r,0===ve&&ke(ft)),e}(),e===r&&(e=Re())===r&&(e=ze())===r&&(e=he,40===t.charCodeAt(he)?(n=V,he++):(n=r,0===ve&&ke(dt)),n!==r?(Le(),(o=Ae())!==r?(Le(),41===t.charCodeAt(he)?(i=D,he++):(i=r,0===ve&&ke(ht)),i!==r?(pe=e,e=Xt(o)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r))),e}()),e}(),n!==r){for(o=[],i=he,a=Le(),46===t.charCodeAt(he)?(s=j,he++):(s=r,0===ve&&ke(ut)),s!==r?(l=Le(),(c=Be())!==r?(u=Le(),d=he,40===t.charCodeAt(he)?(h=V,he++):(h=r,0===ve&&ke(dt)),h!==r?(p=Le(),(f=Te())!==r?(g=Le(),41===t.charCodeAt(he)?(m=D,he++):(m=r,0===ve&&ke(ht)),m!==r?d=h=[h,p,f,g,m]:(he=d,d=r)):(he=d,d=r)):(he=d,d=r),d===r&&(d=null),i=a=[a,s,l,c,u,d]):(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,a=Le(),46===t.charCodeAt(he)?(s=j,he++):(s=r,0===ve&&ke(ut)),s!==r?(l=Le(),(c=Be())!==r?(u=Le(),d=he,40===t.charCodeAt(he)?(h=V,he++):(h=r,0===ve&&ke(dt)),h!==r?(p=Le(),(f=Te())!==r?(g=Le(),41===t.charCodeAt(he)?(m=D,he++):(m=r,0===ve&&ke(ht)),m!==r?d=h=[h,p,f,g,m]:(he=d,d=r)):(he=d,d=r)):(he=d,d=r),d===r&&(d=null),i=a=[a,s,l,c,u,d]):(he=i,i=r)):(he=i,i=r);pe=e,e=Jt(n,o)}else he=e,e=r;return e}function Te(){var e,n,o,i,a,s;if(e=he,(n=Ae())!==r){for(o=[],i=he,Le(),44===t.charCodeAt(he)?(a=F,he++):(a=r,0===ve&&ke(pt)),a!==r?(Le(),(s=Ae())!==r?i=s:(he=i,i=r)):(he=i,i=r);i!==r;)o.push(i),i=he,Le(),44===t.charCodeAt(he)?(a=F,he++):(a=r,0===ve&&ke(pt)),a!==r?(Le(),(s=Ae())!==r?i=s:(he=i,i=r)):(he=i,i=r);pe=e,e=Kt(n,o)}else he=e,e=r;return e===r&&(e=Le()),e}function Me(){var e,n,o,i,a;if(e=he,t.substr(he,2)===s?(n=s,he+=2):(n=r,0===ve&&ke(B)),n!==r?(o=Le(),(i=Ae())!==r?(Le(),125===t.charCodeAt(he)?(a=l,he++):(a=r,0===ve&&ke(L)),a!==r?(pe=e,e=Qt(i)):(he=e,e=r)):(he=e,e=r)):(he=e,e=r),e===r&&(e=he,t.substr(he,3)===c?(n=c,he+=3):(n=r,0===ve&&ke(U)),n!==r&&(pe=e,n=te()),(e=n)===r&&(e=he,n=he,ve++,92===t.charCodeAt(he)?(o=u,he++):(o=r,0===ve&&ke(H)),o===r&&(39===t.charCodeAt(he)?(o=S,he++):(o=r,0===ve&&ke(gt)),o===r&&(t.substr(he,2)===s?(o=s,he+=2):(o=r,0===ve&&ke(B)))),ve--,o===r?n=void 0:(he=n,n=r),n!==r?(t.length>he?(o=t.charAt(he),he++):(o=r,0===ve&&ke(W)),o!==r?(pe=e,e=ee()):(he=e,e=r)):(he=e,e=r),e===r))){if(e=he,t.substr(he,2)===s?(n=s,he+=2):(n=r,0===ve&&ke(B)),n!==r){if(o=[],O.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(mt)),i!==r)for(;i!==r;)o.push(i),O.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(mt));else o=r;o!==r?(125===t.charCodeAt(he)?(i=l,he++):(i=r,0===ve&&ke(L)),i!==r?(pe=e,e=ne()):(he=e,e=r)):(he=e,e=r)}else he=e,e=r;e===r&&(e=he,t.substr(he,2)===s?(n=s,he+=2):(n=r,0===ve&&ke(B)),n!==r&&(pe=e,n=re()),(e=n)===r&&(e=he,92===t.charCodeAt(he)?(n=u,he++):(n=r,0===ve&&ke(H)),n!==r?(t.substr(he,2)===s?(o=s,he+=2):(o=r,0===ve&&ke(B)),o!==r?(pe=e,e=oe(o)):(he=e,e=r)):(he=e,e=r),e===r&&(e=he,92===t.charCodeAt(he)?(n=u,he++):(n=r,0===ve&&ke(H)),n!==r?(t.length>he?(o=t.charAt(he),he++):(o=r,0===ve&&ke(W)),o!==r?(pe=e,e=ie(o)):(he=e,e=r)):(he=e,e=r),e===r&&(e=he,92===t.charCodeAt(he)?(n=u,he++):(n=r,0===ve&&ke(H)),n!==r&&(pe=e,n=ae()),e=n))))}return e}function ze(){var e,n,o,i;if(ve++,e=he,45===t.charCodeAt(he)?(n=x,he++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],T.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(yt)),i!==r)for(;i!==r;)o.push(i),T.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(yt));else o=r;return o!==r?(pe=e,e=se()):(he=e,e=r),ve--,e===r&&(n=r,0===ve&&ke(vt)),e}function Re(){var e,n,o,i,a,s,l,c,u,d;for(ve++,e=he,45===t.charCodeAt(he)?(n=x,he++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],T.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(yt));i!==r;)o.push(i),T.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(yt));if(46===t.charCodeAt(he)?(i=j,he++):(i=r,0===ve&&ke(ut)),i!==r){if(a=[],T.test(t.charAt(he))?(s=t.charAt(he),he++):(s=r,0===ve&&ke(yt)),s!==r)for(;s!==r;)a.push(s),T.test(t.charAt(he))?(s=t.charAt(he),he++):(s=r,0===ve&&ke(yt));else a=r;if(a!==r){if(s=he,101===t.charCodeAt(he)?(l=P,he++):(l=r,0===ve&&ke(bt)),l===r&&(69===t.charCodeAt(he)?(l=N,he++):(l=r,0===ve&&ke(_t))),l!==r){if(43===t.charCodeAt(he)?(c=w,he++):(c=r,0===ve&&ke(ot)),c===r&&(45===t.charCodeAt(he)?(c=x,he++):(c=r,0===ve&&ke(it))),c===r&&(c=null),u=[],T.test(t.charAt(he))?(d=t.charAt(he),he++):(d=r,0===ve&&ke(yt)),d!==r)for(;d!==r;)u.push(d),T.test(t.charAt(he))?(d=t.charAt(he),he++):(d=r,0===ve&&ke(yt));else u=r;u!==r?s=l=[l,c,u]:(he=s,s=r)}else he=s,s=r;s===r&&(s=null),pe=e,e=le()}else he=e,e=r}else he=e,e=r;if(e===r){if(e=he,45===t.charCodeAt(he)?(n=x,he++):(n=r,0===ve&&ke(it)),n===r&&(n=null),o=[],T.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(yt)),i!==r)for(;i!==r;)o.push(i),T.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(yt));else o=r;if(o!==r)if(101===t.charCodeAt(he)?(i=P,he++):(i=r,0===ve&&ke(bt)),i===r&&(69===t.charCodeAt(he)?(i=N,he++):(i=r,0===ve&&ke(_t))),i!==r){if(43===t.charCodeAt(he)?(a=w,he++):(a=r,0===ve&&ke(ot)),a===r&&(45===t.charCodeAt(he)?(a=x,he++):(a=r,0===ve&&ke(it))),a===r&&(a=null),s=[],T.test(t.charAt(he))?(l=t.charAt(he),he++):(l=r,0===ve&&ke(yt)),l!==r)for(;l!==r;)s.push(l),T.test(t.charAt(he))?(l=t.charAt(he),he++):(l=r,0===ve&&ke(yt));else s=r;s!==r?(pe=e,e=ce()):(he=e,e=r)}else he=e,e=r;else he=e,e=r}return ve--,e===r&&(n=r,0===ve&&ke($t)),e}function Be(){var e,n,o,i;if(e=he,M.test(t.charAt(he))?(n=t.charAt(he),he++):(n=r,0===ve&&ke(wt)),n!==r){for(o=[],z.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(xt));i!==r;)o.push(i),z.test(t.charAt(he))?(i=t.charAt(he),he++):(i=r,0===ve&&ke(xt));pe=e,e=de()}else he=e,e=r;return e}function Le(){var e,n;for(ve++,e=[],R.test(t.charAt(he))?(n=t.charAt(he),he++):(n=r,0===ve&&ke(Et));n!==r;)e.push(n),R.test(t.charAt(he))?(n=t.charAt(he),he++):(n=r,0===ve&&ke(Et));return ve--,n=r,0===ve&&ke(kt),e}if((n=a())!==r&&he===t.length)return n;throw n!==r&&he<t.length&&ke({type:"end"}),function(t,e,n){return new Ks(Ks.buildMessage(t,e),t,e,n)}(me,ge<t.length?t.charAt(ge):null,ge<t.length?xe(ge,ge+1):xe(ge,ge))}Us(void 0),function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(Ks,Error),Ks.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+i.line+":"+i.column;if(r){var s=this.location.end,l=Xs("",i.line.toString().length," "),c=r[o.line-1],u=(o.line===s.line?s.column:c.length+1)-o.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+i.line+" | "+c+"\n"+l+" | "+Xs("",o.column-1," ")+Xs("",u,"^")}else e+="\n at "+a}return e},Ks.buildMessage=function(t,e){var n={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."};const Zs=Number.MAX_VALUE,Qs=Number.MIN_VALUE,tl="string",el="integer",nl="number",rl="boolean",ol="color",il="url",al="datetime",sl="dict",ll="array";function cl(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=>{cl(t,e)}));break;case"BinaryExpression":case"LogicalExpression":cl(t.left,e),cl(t.right,e);break;case"UnaryExpression":cl(t.argument,e);break;case"ConditionalExpression":cl(t.test,e),cl(t.consequent,e),cl(t.alternate,e);break;case"TryExpression":cl(t.test,e),cl(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{cl(t,e)}))}}function ul(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function dl(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function hl(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 dl(t.value);if("color"===t.type)return bl($l(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";if("array"===t.type)return"<array>";throw new Error("Unexpected type ".concat(t.type))}function pl(t){let e=hl(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function fl(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function gl(t,e){if(Bi)return Wi(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function ml(t,e){if(e<Hi||e>Ui)throw new Error("Integer overflow.");!Bi&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function vl(t){const e=[];return cl(t,{Variable(t){e.push(t.id.name)}}),e}function yl(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function $l(t){const e=Ae(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function bl(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 _l(t){return bl($l(t))}function wl(t){return{type:nl,value:Number(t.value)}}const xl={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function kl(t,e,n){const r=xl[n];let o=typeof e;if("array"===r&&!Array.isArray(e)||"array"!==r&&o!==r||"object"===o&&null===e)throw"object"===o&&(o=Array.isArray(e)?"array":null===e?"null":"dict"),new Error('Incorrect value type: expected "'.concat(n,'", got "').concat(o,'".'));if("number"===r&&"integer"===n){ml(t,e);try{e=Wi(e)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===r&&"color"===n&&(e=_l(e)),{type:n,value:e}}const El=new Map,Cl=new Map,Al=new Map,jl=new Map;function Vl(t,e,n){const r={args:e,cb:n},o=El.get(t)||[];El.has(t)||El.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Cl.set(i,r)}function Dl(t,e,n){const r={args:e,cb:n},o=Al.get(t)||[];Al.has(t)||Al.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");jl.set(i,r)}function Fl(t,e){const n=t.args.length;let r=t.args.length,o=0;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==nl||e[n].type!==el){if(r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}else++o}return{type:"match",conversions:o}}function Sl(t,e,n){const r=("function"===t?El:Al).get(e);if(!r)return{type:"missing"};let o=null,i=null;for(let t=0;t<r.length;++t){const e=Fl(r[t],n);"match"!==e.type?o||(o=e):(!i||i.conversions>e.conversions)&&(i={func:r[t],conversions:e.conversions})}if(!i){if(o)return o;throw new Error("Missing function")}return i}function Pl(t,e){return e.map(((e,n)=>{let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];return"object"!=typeof r&&(r={type:r}),r.type===nl&&e.type===el?wl(e):e}))}function Nl(t,e){return{type:tl,value:hl(e)}}function Il(t,e){const n=Number(e.value);if(Number.isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:nl,value:n}}function Ol(t,e,n,r){const o=t.variables.get(e.value);let i;return i=o&&o.getType()===r?o.getValue():n.value,"color"===r&&(i=_l(i)),{type:r,value:i}}function Tl(t,e,n){return Ol(t,e,n,n.type)}function Ml(t,e,n){return Ol(t,e,n,"color")}function zl(t,e,n){return Ol(t,e,n,"url")}const Rl=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:el,value:Wi(r)}},Bl=Rl("getUTCFullYear"),Ll=Rl("getUTCMonth"),Ul=Rl("getUTCDate"),Hl=Rl("getUTCDay"),Wl=Rl("getUTCHours"),ql=Rl("getUTCMinutes"),Jl=Rl("getUTCSeconds"),Gl=Rl("getUTCMilliseconds");function Kl(t,e,n,r){if(!r.value.length)return t.warnings.push($e(new Error("String for padding is empty."),{level:"warn"})),"";let o="";const i=e.type===tl?e.value:hl(e);for(;o.length+i.length<n.value;)o+=r.value;return o.length>0&&o.length+i.length>n.value&&(o=o.substring(0,Number(n.value)-Number(i.length))),o}function Xl(t,e,n,r){const o=Kl(t,e,n,r);return{type:tl,value:o+hl(e)}}function Yl(t,e,n,r){const o=Kl(t,e,n,r);return{type:tl,value:hl(e)+o}}function Zl(t){return(e,n)=>{const r=$l(n.value);return{type:nl,value:r[t]/255}}}function Ql(t){return(e,n,r)=>{const o=$l(n.value);return o[t]=255*r.value,{type:ol,value:bl(o)}}}const tc=Zl("a"),ec=Zl("r"),nc=Zl("g"),rc=Zl("b"),oc=Ql("a"),ic=Ql("r"),ac=Ql("g"),sc=Ql("b");function lc(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let o=Wi(e.value)/Wi(n);return ml(t,o),"number"==typeof o&&(o=Math.floor(o)),r&&(o=Wi(o)%Wi(r)),{type:el,value:o}}const cc=36e5;function uc(t){return function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(0===o.length)throw new Error("Non empty argument list is required.");return kl(e,function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(n.value,o.map((t=>t.value))),t)}}function dc(t,e){return function(n,r,o){try{for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return t(n,o,...a)}catch(t){let n=r.value;return"color"===e&&(n=_l(n)),{type:e,value:n}}}}const hc=uc(tl),pc=uc(nl),fc=uc(el),gc=uc(rl),mc=uc(ol),vc=uc(il),yc=uc(ll),$c=uc(sl),bc=dc(hc,tl),_c=dc(pc,nl),wc=dc(fc,el),xc=dc(gc,rl),kc=dc(mc,ol),Ec=dc(vc,il);function Cc(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return yc(t,e,...r)}catch(t){return{type:ll,value:[]}}}function Ac(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return $c(t,e,...r)}catch(t){return{type:sl,value:{}}}}function jc(t,e){return(n,r,o)=>{if(o.value<0||o.value>=r.value.length)throw new Error("Requested index (".concat(o.value,") out of bounds array size (").concat(r.value.length,")."));let i=r.value[Number(o.value)],a=typeof i;if("array"===t&&!Array.isArray(i)||"array"!==t&&a!==t||"object"===a&&null===i)throw"object"===a&&(a=Array.isArray(i)?"array":null===i?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(a,'".'));if("number"===t&&"integer"===e){ml(n,i);try{i=Wi(i)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===t&&"color"===e&&(i=_l(i)),{type:e,value:i}}}function Vc(t,e){return(n,r,o,i)=>{try{return t(n,r,o)}catch(t){let n=i.value;return"color"===e&&(n=_l(n)),{type:e,value:n}}}}const Dc=jc("string","string"),Fc=jc("number","number"),Sc=jc("number","integer"),Pc=jc("boolean","boolean"),Nc=jc("string","color"),Ic=jc("string","url"),Oc=jc("array","array"),Tc=jc("object","dict"),Mc=Vc(Dc,"string"),zc=Vc(Fc,"number"),Rc=Vc(Sc,"integer"),Bc=Vc(Pc,"boolean"),Lc=Vc(Nc,"color"),Uc=Vc(Ic,"url");function Hc(t){return(e,n,r)=>{if(!e.store)return{type:t,value:r.value};let o;o="boolean"===t?"boolean":"number"===t||"integer"===t?"number":"string";const i=e.store.getValue(n.value,o);return void 0===i?{type:t,value:r.value}:kl(e,i,t)}}function Wc(t){return t.map(pl).join(", ")}Vl("toString",[el],Nl),Vl("toString",[nl],Nl),Vl("toString",[rl],Nl),Vl("toString",[ol],Nl),Vl("toString",[il],Nl),Vl("toString",[tl],Nl),Vl("toNumber",[el],Il),Vl("toNumber",[tl],Il),Vl("toInteger",[nl],(function(t,e){if(e.value>Ui||e.value<Hi)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:el,value:Wi(n)}})),Vl("toInteger",[tl],(function(t,e){let n;try{n=Wi(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}return{type:el,value:n}})),Vl("toInteger",[rl],(function(t,e){return{type:el,value:Wi(e.value?1:0)}})),Vl("toBoolean",[el],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:rl,value:n}})),Vl("toBoolean",[tl],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:rl,value:"true"===e.value?1:0}})),Vl("toColor",[tl],(function(t,e){return{type:ol,value:_l(e.value)}})),Vl("toUrl",[tl],(function(t,e){return{type:il,value:e.value}})),Vl("encodeUri",[tl],(function(t,e){try{return{type:tl,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Vl("decodeUri",[tl],(function(t,e){try{return{type:tl,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Vl("getIntegerValue",[tl,el],Tl),Vl("getNumberValue",[tl,nl],Tl),Vl("getBooleanValue",[tl,rl],Tl),Vl("getStringValue",[tl,tl],Tl),Vl("getColorValue",[tl,ol],Ml),Vl("getColorValue",[tl,tl],Ml),Vl("getUrlValue",[tl,il],zl),Vl("getUrlValue",[tl,tl],zl),Dl("toString",[el],Nl),Dl("toString",[nl],Nl),Dl("toString",[rl],Nl),Dl("toString",[ol],Nl),Dl("toString",[il],Nl),Dl("toString",[tl],Nl),Vl("parseUnixTime",[el],(function(t,e){return{type:al,value:new Date(1e3*Number(e.value))}})),Vl("nowLocal",[],(function(){return{type:al,value:new Date}})),Vl("addMillis",[al,el],(function(t,e,n){return{type:al,value:new Date(e.value.getTime()+Number(n.value))}})),Vl("setYear",[al,el],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:al,value:r}})),Vl("setMonth",[al,el],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMonth(r-1),{type:al,value:o}})),Vl("setDay",[al,el],(function(t,e,n){const r=new Date(e.value),o=Number(n.value);if(o<=0&&-1!==o||o>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(o," for date ").concat(hl(e),"."));return r.setUTCDate(-1===o?0:o),{type:al,value:r}})),Vl("setHours",[al,el],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCHours(r),{type:al,value:o}})),Vl("setMinutes",[al,el],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMinutes(r),{type:al,value:o}})),Vl("setSeconds",[al,el],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCSeconds(r),{type:al,value:o}})),Vl("setMillis",[al,el],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMilliseconds(r),{type:al,value:o}})),Vl("getYear",[al],Bl),Vl("getMonth",[al],Ll),Vl("getDay",[al],Ul),Vl("getDayOfWeek",[al],Hl),Vl("getHours",[al],Wl),Vl("getMinutes",[al],ql),Vl("getSeconds",[al],Jl),Vl("getMillis",[al],Gl),Vl("getIntervalSeconds",[el],(function(t,e){return lc(t,e,1e3,60)})),Vl("getIntervalTotalSeconds",[el],(function(t,e){return lc(t,e,1e3)})),Vl("getIntervalMinutes",[el],(function(t,e){return lc(t,e,6e4,60)})),Vl("getIntervalTotalMinutes",[el],(function(t,e){return lc(t,e,6e4)})),Vl("getIntervalHours",[el],(function(t,e){return lc(t,e,cc,24)})),Vl("getIntervalTotalHours",[el],(function(t,e){return lc(t,e,cc)})),Vl("getIntervalTotalDays",[el],(function(t,e){return lc(t,e,864e5)})),Vl("getIntervalTotalWeeks",[el],(function(t,e){return lc(t,e,6048e5)})),Vl("len",[tl],(function(t,e){return{type:el,value:Wi(e.value.length)}})),Vl("contains",[tl,tl],(function(t,e,n){return{type:rl,value:e.value.includes(n.value)?1:0}})),Vl("substring",[tl,el,el],(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:tl,value:e.value.substring(Number(n.value),Number(r.value))}})),Vl("replaceAll",[tl,tl,tl],(function(t,e,n,r){let o;return o=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:tl,value:o}})),Vl("index",[tl,tl],(function(t,e,n){return{type:el,value:Wi(e.value.indexOf(n.value))}})),Vl("lastIndex",[tl,tl],(function(t,e,n){return{type:el,value:Wi(e.value.lastIndexOf(n.value))}})),Vl("trim",[tl],(function(t,e){return{type:tl,value:e.value.trim()}})),Vl("trimLeft",[tl],(function(t,e){return{type:tl,value:e.value.replace(/^\s+/,"")}})),Vl("trimRight",[tl],(function(t,e){return{type:tl,value:e.value.replace(/\s+$/,"")}})),Vl("toUpperCase",[tl],(function(t,e){return{type:tl,value:e.value.toUpperCase()}})),Vl("toLowerCase",[tl],(function(t,e){return{type:tl,value:e.value.toLowerCase()}})),Vl("padStart",[tl,el,tl],Xl),Vl("padStart",[el,el,tl],Xl),Vl("padEnd",[tl,el,tl],Yl),Vl("padEnd",[el,el,tl],Yl),Vl("testRegex",[tl,tl],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:rl,value:r.test(e.value)?1:0}})),Vl("div",[el,el],(function(t,e,n){if(n.value===qi)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=gl(0,r),ml(t,r),{type:el,value:r}})),Vl("div",[nl,nl],(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:nl,value:r}})),Vl("mod",[el,el],(function(t,e,n){if(n.value===qi)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=gl(0,r),ml(t,r),{type:el,value:r}})),Vl("mod",[nl,nl],(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:nl,value:r}})),Vl("mul",[{type:el,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:qi;for(let e=1;e<n.length;++e)o*=n[e].value,o=gl(0,o),ml(t,o);return{type:el,value:o}})),Vl("mul",[{type:nl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o*=n[t].value;return{type:nl,value:o}})),Vl("sub",[{type:el,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:qi;for(let e=1;e<n.length;++e)o-=n[e].value,o=gl(0,o),ml(t,o);return{type:el,value:o}})),Vl("sub",[{type:nl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o-=n[t].value;return{type:nl,value:o}})),Vl("sum",[{type:el,isVararg:!0}],(function(t){let e=qi;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<r.length;++n)e+=r[n].value,e=gl(0,e),ml(t,e);return{type:el,value:e}})),Vl("sum",[{type:nl,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:nl,value:e}})),Vl("abs",[el],(function(t,e){const n=Ji(e.value);return ml(t,n),{type:e.type,value:n}})),Vl("abs",[nl],(function(t,e){const n=Math.abs(e.value);return{type:nl,value:n}})),Vl("max",[{type:el,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value>o&&(o=n[t].value);return{type:el,value:o}})),Vl("max",[{type:nl,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:nl,value:Math.max(...n.map((t=>t.value)))}})),Vl("min",[{type:el,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value<o&&(o=n[t].value);return{type:el,value:o}})),Vl("min",[{type:nl,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:nl,value:Math.min(...n.map((t=>t.value)))}})),Vl("maxNumber",[],(function(){return{type:nl,value:Zs}})),Vl("minNumber",[],(function(){return{type:nl,value:Qs}})),Vl("maxInteger",[],(function(t){return ml(t,Ui),{type:el,value:Ui}})),Vl("minInteger",[],(function(t){return ml(t,Hi),{type:el,value:Hi}})),Vl("round",[nl],(function(t,e){const n=Math.sign(e.value);return{type:nl,value:n*Math.round(Math.abs(e.value))}})),Vl("floor",[nl],(function(t,e){return{type:nl,value:Math.floor(e.value)}})),Vl("ceil",[nl],(function(t,e){return{type:nl,value:Math.ceil(e.value)}})),Vl("signum",[el],(function(t,e){return{type:el,value:Gi(e.value)}})),Vl("signum",[nl],(function(t,e){return{type:nl,value:Math.sign(e.value)}})),Vl("copySign",[el,el],(function(t,e,n){let r;if(n.value===qi)r=e.value;else if(e.value===qi)r=Wi(0);else{const t=Gi(n.value);r=Ji(e.value)*t}return ml(t,r),{type:el,value:r}})),Vl("copySign",[nl,nl],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const o=Math.abs(e.value)*r;return{type:nl,value:o}})),Vl("getColorAlpha",[tl],tc),Vl("getColorAlpha",[ol],tc),Vl("getColorRed",[tl],ec),Vl("getColorRed",[ol],ec),Vl("getColorGreen",[tl],nc),Vl("getColorGreen",[ol],nc),Vl("getColorBlue",[tl],rc),Vl("getColorBlue",[ol],rc),Vl("setColorAlpha",[tl,nl],oc),Vl("setColorAlpha",[ol,nl],oc),Vl("setColorRed",[tl,nl],ic),Vl("setColorRed",[ol,nl],ic),Vl("setColorGreen",[tl,nl],ac),Vl("setColorGreen",[ol,nl],ac),Vl("setColorBlue",[tl,nl],sc),Vl("setColorBlue",[ol,nl],sc),Vl("rgb",[nl,nl,nl],(function(t,e,n,r){const o={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:ol,value:bl(o)}})),Vl("argb",[nl,nl,nl,nl],(function(t,e,n,r,o){const i={a:255*e.value,r:255*n.value,g:255*r.value,b:255*o.value};return{type:ol,value:bl(i)}})),function(){const t={type:tl,isVararg:!0};Vl("getDictString",[sl,t],hc),Vl("getStringFromDict",[sl,t],hc),Vl("getDictNumber",[sl,t],pc),Vl("getNumberFromDict",[sl,t],pc),Vl("getDictInteger",[sl,t],fc),Vl("getIntegerFromDict",[sl,t],fc),Vl("getDictBoolean",[sl,t],gc),Vl("getBooleanFromDict",[sl,t],gc),Vl("getDictColor",[sl,t],mc),Vl("getColorFromDict",[sl,t],mc),Vl("getDictUrl",[sl,t],vc),Vl("getUrlFromDict",[sl,t],vc),Vl("getDictOptString",[tl,sl,t],bc),Vl("getOptStringFromDict",[tl,sl,t],bc),Vl("getDictOptNumber",[nl,sl,t],_c),Vl("getOptNumberFromDict",[nl,sl,t],_c),Vl("getDictOptInteger",[el,sl,t],wc),Vl("getOptIntegerFromDict",[el,sl,t],wc),Vl("getDictOptBoolean",[rl,sl,t],xc),Vl("getOptBooleanFromDict",[rl,sl,t],xc),Vl("getDictOptColor",[ol,sl,t],kc),Vl("getOptColorFromDict",[ol,sl,t],kc),Vl("getDictOptColor",[tl,sl,t],kc),Vl("getOptColorFromDict",[tl,sl,t],kc),Vl("getDictOptUrl",[tl,sl,t],Ec),Vl("getOptUrlFromDict",[tl,sl,t],Ec),Vl("getDictOptUrl",[il,sl,t],Ec),Vl("getOptUrlFromDict",[il,sl,t],Ec),Vl("getDictFromDict",[sl,t],$c),Vl("getArrayFromDict",[sl,t],yc),Vl("getOptArrayFromDict",[sl,t],Cc),Vl("getOptDictFromDict",[sl,t],Ac),Dl("getString",[sl,t],hc),Dl("getBoolean",[sl,t],gc),Dl("getInteger",[sl,t],fc),Dl("getNumber",[sl,t],pc),Dl("getUrl",[sl,t],vc),Dl("getColor",[sl,t],mc),Dl("getArray",[sl,t],yc),Dl("getDict",[sl,t],$c)}(),Vl("getArrayString",[ll,el],Dc),Vl("getStringFromArray",[ll,el],Dc),Vl("getArrayNumber",[ll,el],Fc),Vl("getNumberFromArray",[ll,el],Fc),Vl("getArrayInteger",[ll,el],Sc),Vl("getIntegerFromArray",[ll,el],Sc),Vl("getArrayBoolean",[ll,el],Pc),Vl("getBooleanFromArray",[ll,el],Pc),Vl("getArrayColor",[ll,el],Nc),Vl("getColorFromArray",[ll,el],Nc),Vl("getArrayUrl",[ll,el],Ic),Vl("getUrlFromArray",[ll,el],Ic),Vl("getArrayFromArray",[ll,el],Oc),Vl("getDictFromArray",[ll,el],Tc),Vl("getArrayOptString",[ll,el,tl],Mc),Vl("getOptStringFromArray",[ll,el,tl],Mc),Vl("getArrayOptNumber",[ll,el,nl],zc),Vl("getOptNumberFromArray",[ll,el,nl],zc),Vl("getArrayOptInteger",[ll,el,el],Rc),Vl("getOptIntegerFromArray",[ll,el,el],Rc),Vl("getArrayOptBoolean",[ll,el,rl],Bc),Vl("getOptBooleanFromArray",[ll,el,rl],Bc),Vl("getArrayOptColor",[ll,el,ol],Lc),Vl("getOptColorFromArray",[ll,el,ol],Lc),Vl("getArrayOptColor",[ll,el,tl],Lc),Vl("getOptColorFromArray",[ll,el,tl],Lc),Vl("getArrayOptUrl",[ll,el,il],Uc),Vl("getOptUrlFromArray",[ll,el,il],Uc),Vl("getArrayOptUrl",[ll,el,tl],Uc),Vl("getOptUrlFromArray",[ll,el,tl],Uc),Vl("getOptArrayFromArray",[ll,el],(function(t,e,n){try{return Oc(t,e,n)}catch(t){return{type:ll,value:[]}}})),Vl("getOptDictFromArray",[ll,el],(function(t,e,n){try{return Tc(t,e,n)}catch(t){return{type:sl,value:{}}}})),Vl("len",[ll],(function(t,e){return{type:el,value:Wi(e.value.length)}})),Dl("getString",[ll,el],Dc),Dl("getInteger",[ll,el],Sc),Dl("getNumber",[ll,el],Fc),Dl("getBoolean",[ll,el],Pc),Dl("getUrl",[ll,el],Ic),Dl("getColor",[ll,el],Nc),Dl("getArray",[ll,el],Oc),Dl("getDict",[ll,el],Tc),Vl("getStoredIntegerValue",[tl,el],Hc(el)),Vl("getStoredNumberValue",[tl,nl],Hc(nl)),Vl("getStoredStringValue",[tl,tl],Hc(tl)),Vl("getStoredUrlValue",[tl,il],Hc(il)),Vl("getStoredUrlValue",[tl,tl],Hc(il)),Vl("getStoredColorValue",[tl,ol],Hc(ol)),Vl("getStoredColorValue",[tl,tl],Hc(ol)),Vl("getStoredBooleanValue",[tl,rl],Hc(rl));const qc={StringLiteral:function(t,e){return{type:tl,value:e.value}},NumberLiteral:function(t,e){return{type:nl,value:e.value}},IntegerLiteral:function(t,e){return ml(t,e.value),{type:el,value:e.value}},BooleanLiteral:function(t,e){return{type:rl,value:e.value?1:0}},UnaryExpression:function(t,e){const n=ul(Jc(t,e.argument));switch(e.operator){case"!":if(n.type===rl)return{type:rl,value:n.value?0:1};yl("".concat(e.operator).concat(pl(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===el){const e=n.value*Wi(r);return ml(t,e),{type:el,value:e}}if(n.type===nl)return{type:nl,value:n.value*r};yl("".concat(e.operator).concat(pl(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=ul(Jc(t,e.test));if(n.type===rl)return n.value?Jc(t,e.consequent):Jc(t,e.alternate);yl("".concat(pl(n)," ? ").concat(pl(Jc(t,e.consequent))," : ").concat(pl(Jc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return Jc(t,e.test)}catch(n){return Jc(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Jc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=hl(Jc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:tl,value:n}},LogicalExpression:function(t,e){const n=ul(Jc(t,e.left));if(n.type!==rl&&yl("".concat(pl(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:rl,value:0};const r=ul(Jc(t,e.right));return r.type!==rl&&yl("".concat(pl(n)," ").concat(e.operator," ").concat(pl(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(fl(r.type),".")),{type:rl,value:r.value}},BinaryExpression:function(t,e){const n=e.operator;let r=Jc(t,e.left),o=Jc(t,e.right);if(("number"===r.type&&"integer"===o.type||"integer"===r.type&&"number"===o.type)&&("integer"===r.type?r=wl(r):"integer"===o.type&&(o=wl(o))),r.type!==o.type&&yl("".concat(pl(r)," ").concat(e.operator," ").concat(pl(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(fl(r.type)," and ").concat(fl(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===al&&n.type===al?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:rl,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==nl&&e.type!==el&&e.type!==al&&yl("".concat(pl(e)," ").concat(t," ").concat(pl(n)),"Operator '".concat(t,"' cannot be applied to ").concat(fl(e.type)," type."));const o=e.type===al?e.value.getTime():e.value,i=n.type===al?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:rl,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==tl&&n.type!==nl&&n.type!==el&&yl("".concat(pl(n)," ").concat(e," ").concat(pl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(fl(n.type)," type.")),n.type===tl)return"-"===e&&yl("".concat(pl(n)," - ").concat(pl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(fl(n.type)," type.")),{type:tl,value:n.value+r.value};let o="+"===e?n.value+r.value:n.value-r.value;if(n.type===el)try{o=gl(0,o),ml(t,o)}catch(t){yl("".concat(pl(n)," ").concat(e," ").concat(pl(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let o;if(n.type!==el&&n.type!==nl&&yl("".concat(pl(n)," ").concat(e," ").concat(pl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(fl(n.type)," type.")),"*"===e)o=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&yl("".concat(pl(n)," ").concat(e," ").concat(pl(r)),"Division by zero is not supported."),o="/"===e?n.value/r.value:n.value%r.value}if(n.type===el)try{o=gl(0,o),ml(t,o)}catch(t){yl("".concat(pl(n)," ").concat(e," ").concat(pl(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r,o=e.arguments.map((e=>Jc(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(Cl.has(i))r=Cl.get(i);else{const t=Sl("function",n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.map((t=>fl(t.type))).join(", "),r="".concat(n,"(").concat(Wc(o),")");"few"===t.type&&0===o.length?yl(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?yl(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):yl(r,"Unknown function name: ".concat(n,"."))}r=t.func,t.conversions&&(o=Pl(r,o))}if(!r)throw new Error("Function not found");try{return r.cb(t,...o)}catch(t){yl("".concat(n,"(").concat(Wc(o),")"),t.message)}},MethodExpression:function(t,e){const n=e.method.name;let r;e.arguments.unshift(e.object);let o=e.arguments.map((e=>Jc(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(jl.has(i))r=jl.get(i);else{const t=Sl("method",n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.slice(1).map((t=>fl(t.type))).join(", "),r="".concat(n,"(").concat(Wc(o.slice(1)),")");"few"===t.type&&1===o.length?yl(r,"Non empty argument list is required for method '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?yl(r,"Method '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):yl(r,"Unknown method name: ".concat(n,"."))}r=t.func,t.conversions&&(o=Pl(r,o))}if(!r)throw new Error("Method not found");try{return r.cb(t,...o)}catch(t){yl("".concat(n,"(").concat(Wc(o.slice(1)),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function Jc(t,e){if(e.type in qc)return qc[e.type](t,e);throw new Error("Unsupported expression")}function Gc(t,e,n){try{const r={variables:t,warnings:[],safeIntegerOverflow:!1,store:e},o=Jc(r,n);return r.safeIntegerOverflow&&r.warnings.push($e(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:o,warnings:r.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}class Kc{constructor(t){this.ast=t}apply(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{const o=Gc(t,n,this.ast);o.warnings.forEach(e);const i=o.result;if("error"===i.type)return void e($e(new Error("Expression execution error"),{additional:{message:i.value}}));const a=i.value;if(a instanceof Date)return dl(a);if("boolean"===i.type)return Boolean(a);if("color"===i.type){const t=Ae(String(a));if(t)return bl(t);e($e(new Error("Expression execution error")))}if("integer"===i.type)return a>2147483647||a<-2147483648?void e($e(new Error("Expression result is out of 32-bit int range"))):Number(a);if(!r&&("array"===i.type||"dict"===i.type))try{return JSON.stringify(a)}catch(t){return e($e(new Error("Failed to stringify ".concat(i.type)))),"<".concat(i.type,">")}return a}catch(t){return void e($e(new Error("Expression execution error")))}}}function Xc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Ys(t,{startRule:"JsonStringContents"}),r=vl(n);return e.vars.push(...r),new Kc(n)}catch(e){return void n($e(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Xc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Xc(t[o],e,n);return r}}var r;return t}function Yc(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t){if(t instanceof Kc)return t.apply(e,n,r,o);if(Array.isArray(t))return t.map((t=>Yc(t,e,n,r)));if("object"==typeof t){const o={};for(const i in t)o[i]=Yc(t[i],e,n,r);return o}}return t}function Zc(t,e,n){const r={vars:[],hasExpression:!1},o=Xc(t,r,e);return{vars:[...new Set(r.vars)],hasExpression:r.hasExpression,applyVars:(t,r)=>Yc(o,t,e,n,r)}}const Qc={pagers:function(){return ge(new Map)}},tu=new Map,eu=new Map;function nu(t){const e=tu.get(t)||ge("");return tu.has(t)||tu.set(t,e),e}function ru(t){const e=eu.get(t)||new Map;return eu.has(t)||eu.set(t,e),e}class ou{setVariable(t){const e=t.getName(),n=ru(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),nu(this).set(e)}getVariable(t){return ru(this).get(t)}list(){return ru(this).values()}}function iu(){return new ou}function au(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 su=new Set(["start","stop","pause","resume","cancel","reset"]);class lu{constructor(t){au(this,"timers",new Map),au(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($e(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError($e(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&su.has(e)))return void this.logError($e(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}async tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),await this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((async()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&await this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),o=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((async()=>{await this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-o)%n,"running"===t.state&&e()}),o)};e()}}start(t){if("running"===t.state)return void this.logError($e(new Error("The timer is already running")));if("paused"===t.state)return void this.logError($e(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($e(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($e(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($e(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError($e(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError($e(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($e(new Error("The timer is already running"))):this.logError($e(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}async callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);return this.execAnyActions(t,{processUrls:!1})}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}async unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&await this.tickOrUnholdAction(e),this.startOrResume(e)}}}function cu(t,e,n,r){const{variable_name:o}=n;if(!o)return void e($e(new Error("Incorrect ".concat(n.type," action")),{additional:{name:o}}));const i=t.get(o);if(!i)return void e($e(new Error("Cannot find variable"),{additional:{name:o}}));const a=i.getType();"array"===a?r(i):e($e(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:a}}))}const uu={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},du={linear:r,ease:qo,ease_in:Uo,ease_out:Ho,ease_in_out:Lo,spring:Jo},hu=300,pu=0;function fu(t,e){let{animations:n,direction:r}=e;if(!n)return{};const o=Ze(n),i=(a=o,Math.max(...a.map((t=>(Number(t.duration)||hu)+(Number(t.start_delay)||pu)))));var a;return o.some((t=>"no_animation"===t.name))?{}:{duration:rn()?0:i,css:t=>{const e=t*i,n=o.map((t=>{const n=Number(t.start_delay)||pu,o=Number(t.duration)||hu,i=Math.max(0,Math.min(1,(e-n)/o)),a=(du[t.interpolator||"ease_in_out"]||Lo)(i);var s,l;if("fade"===t.name)return{active:a>0&&a<1,opacity:(1-a)*("in"===r&&null!==(s=t.start_value)&&void 0!==s?s:0)+a*("in"===r?1:null!==(l=t.end_value)&&void 0!==l?l:1)};if("translate"===t.name){var c,u;const e=-("in"===r&&null!==(c=t.start_value)&&void 0!==c?c:10),n=-("in"===r?0:null!==(u=t.end_value)&&void 0!==u?u:0);return{active:a>0&&a<1,translate:"translateY(".concat((1-a)*e+a*n).concat("in"===r&&void 0!==t.start_value||"out"===r&&void 0!==t.end_value?"%":"px",")")}}if("scale"===t.name){var d,h;const e="in"===r&&null!==(d=t.start_value)&&void 0!==d?d:0,n="in"===r?1:null!==(h=t.end_value)&&void 0!==h?h:1;return{active:a>0&&a<1,scale:"scale(".concat((1-a)*e+a*n,")")}}return{}})),a=n.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),s=n.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),l=n.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),c=n.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),u=[s,c.length?c[c.length-1]:l].filter(Boolean).join(" ");return"transform:".concat(u||"none",";opacity:").concat(a)}}}const{window:gu}=j;function mu(t){let e,o,i,a,c,u,d,h;return o=new Ds({props:{componentContext:t[11]}}),{c(){e=B("div"),se(o.$$.fragment),this.h()},l(t){e=nt(t,"DIV",{class:!0});var n=Z(e);le(o.$$.fragment,n),n.forEach(z),this.h()},h(){J(e,"class",i=Be("tooltip",uu,t[5])+" "+(t[12]?ve.root_platform_desktop:"")),ct(e,"top",t[2]),ct(e,"left",t[1]),ct(e,"width",t[3]),ct(e,"height",t[4])},m(n,r){M(n,e,r),ce(o,e,null),t[27](e),u=!0,d||(h=[q(gu,"click",t[16]),q(gu,"resize",t[17])],d=!0)},p(n,r){t=n;const a={};2048&r[0]&&(a.componentContext=t[11]),o.$set(a),(!u||4128&r[0]&&i!==(i=Be("tooltip",uu,t[5])+" "+(t[12]?ve.root_platform_desktop:"")))&&J(e,"class",i),4&r[0]&&ct(e,"top",t[2]),2&r[0]&&ct(e,"left",t[1]),8&r[0]&&ct(e,"width",t[3]),16&r[0]&&ct(e,"height",t[4])},i(n){u||(Gt(o.$$.fragment,n),n&&Ot((()=>{u&&(c&&c.end(1),a=Yt(e,fu,{animations:t[13]||vu,direction:"in"}),a.start())})),u=!0)},o(i){Kt(o.$$.fragment,i),a&&a.invalidate(),i&&(c=function(t,e,o){const i={direction:"out"};let a,c=e(t,o,i),u=!0;const d=Wt;let h;function p(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:p}=c||Xt;p&&(a=yt(t,1,0,o,e,i,p));const f=x()+e,g=f+o;Ot((()=>Ut(t,!1,"start"))),"inert"in t&&(h=t.inert,t.inert=!0),A((e=>{if(u){if(e>=g)return l(0,1),Ut(t,!1,"end"),--d.r||s(d.c),!1;if(e>=f){const t=i((e-f)/o);l(1-t,t)}}return u}))}return d.r+=1,l(c)?Lt().then((()=>{c=c(i),p()})):p(),{end(e){e&&"inert"in t&&(t.inert=h),e&&c.tick&&c.tick(1,0),u&&(a&&$t(t,a),u=!1)}}}(e,fu,{animations:t[14]||vu,direction:"out"})),u=!1},d(n){n&&z(e),ue(o),t[27](null),n&&c&&c.end(),d=!1,s(h)}}}const vu={name:"set",items:[{name:"translate"},{name:"fade"}]};function yu(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$=n,b=n,_=n,w=n,x=n;var k,E,C,A;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{ownerNode:j}=e,{data:V}=e,{internalId:D}=e,{parentComponentContext:F}=e;const S=Ct(ye),P=S.isDesktop;p(t,P,(t=>r(12,m=t)));const N=Date.now();let I,O=!1,T="",M="",z="",R="",B=null;function L(){var t,e;if(!I||!j)return;const n=I.parentElement;if(!n)return;const o=I.style.cssText;r(0,I.style.cssText+=";transform: none !important",I);const i=j.getBoundingClientRect(),a=I.getBoundingClientRect(),s=n.getBoundingClientRect();r(0,I.style.cssText=o,I);let l=0,c=0,u=null,h=null,p=0,m=0;const v=F.getJsonWithVars(null===(t=V.div)||void 0===t?void 0:t.width),y=F.getJsonWithVars(null===(e=V.div)||void 0===e?void 0:e.width);if(p=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?u=v.value:a.width:u=i.width,m="match_parent"===(null==y?void 0:y.type)?h=i.height:"fixed"===(null==y?void 0:y.type)&&y.value?h=y.value:a.height,"left"===g||"bottom-left"===g||"top-left"===g)l=i.left-p;else if("top"===g||"bottom"===g||"center"===g)l=(i.left+i.right)/2-p/2;else{if("right"!==g&&"bottom-right"!==g&&"top-right"!==g)return;l=i.right}if("top"===g||"top-left"===g||"top-right"===g)c=i.top-m;else if("left"===g||"right"===g||"center"===g)c=(i.top+i.bottom)/2-m/2;else{if("bottom-left"!==g&&"bottom"!==g&&"bottom-right"!==g)return;c=i.bottom}l-=s.left,c-=s.top,l+=f||0,c+=d||0,r(1,T="".concat(l,"px")),r(2,M="".concat(c,"px")),r(3,z=null!==u?"".concat(u,"px"):""),r(4,R=null!==h?"".concat(h,"px"):""),r(26,O=!0),null===u||null===h?"undefined"==typeof ResizeObserver||B||(B=new ResizeObserver((()=>{requestAnimationFrame(L)})),B.observe(I)):null==B||B.disconnect()}return wt((()=>{if(S.tooltipRoot){const t=window.getComputedStyle(I);r(0,I.style.fontSize=t.fontSize,I),r(0,I.style.fontFamily=t.fontFamily,I),r(0,I.style.lineHeight=t.lineHeight,I),S.tooltipRoot.appendChild(I)}})),xt((()=>{O||L()})),kt((()=>{null==B||B.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(18,j=t.ownerNode),"data"in t&&r(19,V=t.data),"internalId"in t&&r(20,D=t.internalId),"parentComponentContext"in t&&r(21,F=t.parentComponentContext)},t.$$.update=()=>{2621440&t.$$.dirty[0]&&r(11,o=F.produceChildContext(V.div)),2621440&t.$$.dirty[0]&&(r(10,i=F.getDerivedFromVars(V.position)),_(),_=h(i,(t=>r(31,g=t)))),15204352&t.$$.dirty[0]&&(r(9,a=F.getDerivedFromVars(null===r(23,E=null===r(22,k=V.offset)||void 0===k?void 0:k.x)||void 0===E?void 0:E.value)),b(),b=h(a,(t=>r(30,f=t)))),52953088&t.$$.dirty[0]&&(r(8,s=F.getDerivedFromVars(null===r(25,A=null===r(24,C=V.offset)||void 0===C?void 0:C.y)||void 0===A?void 0:A.value)),$(),$=h(s,(t=>r(29,d=t)))),2621440&t.$$.dirty[0]&&(r(7,l=F.getDerivedFromVars(V.animation_in)),w(),w=h(l,(t=>r(13,v=t)))),2621440&t.$$.dirty[0]&&(r(6,c=F.getDerivedFromVars(V.animation_out)),x(),x=h(c,(t=>r(14,y=t)))),67108864&t.$$.dirty[0]&&r(5,u={visible:O})},[I,T,M,z,R,u,c,l,s,a,i,o,m,v,y,P,function(t){Date.now()-N<100||t.composedPath().includes(I)||S.onTooltipClose(D)},function(){L()},j,V,D,F,k,E,C,A,O,function(t){Vt[t?"unshift":"push"]((()=>{I=t,r(0,I)}))}]}const $u=class extends pe{constructor(t){super(),de(this,t,yu,mu,d,{ownerNode:18,data:19,internalId:20,parentComponentContext:21},null,[-1,-1])}};function bu(t){let{delay:e=0,duration:n=400,easing:r=Ho,x:o=0,y:i=0,opacity:a=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=getComputedStyle(t),l=+s.opacity,c="none"===s.transform?"":s.transform,u=l*(1-a),[d,h]=_(o),[p,f]=_(i);return{delay:e,duration:n,easing:r,css:(t,e)=>"\n\t\t\ttransform: ".concat(c," translate(").concat((1-t)*d).concat(h,", ").concat((1-t)*p).concat(f,");\n\t\t\topacity: ").concat(l-u*e)}}const _u={root_platform_desktop:"divkit-ee112",menu:"divkit-cedbe",menu_visible:"divkit-e4801",menu__list:"divkit-c8df2",menu__item:"divkit-ffd4a"},{window:wu}=j;function xu(t,e,n){const r=t.slice();return r[23]=e[n],r}function ku(t){let e,n=t[23].text+"";return{c(){e=U(n)},l(t){e=ot(t,n)},m(t,n){M(t,e,n)},p(t,r){1&r&&n!==(n=t[23].text+"")&&st(e,n)},d(t){t&&z(e)}}}function Eu(t){let e,n,r,o;return n=new hn({props:{componentContext:t[1],actions:t[23].actions||t[23].action&&[t[23].action],cls:_u.menu__item+" "+t[10],customAction:t[14],$$slots:{default:[ku]},$$scope:{ctx:t}}}),{c(){e=B("li"),se(n.$$.fragment),r=H()},l(t){e=nt(t,"LI",{});var o=Z(e);le(n.$$.fragment,o),r=it(o),o.forEach(z)},m(t,i){M(t,e,i),ce(n,e,null),O(e,r),o=!0},p(t,e){const r={};2&e&&(r.componentContext=t[1]),1&e&&(r.actions=t[23].actions||t[23].action&&[t[23].action]),67108865&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){o||(Gt(n.$$.fragment,t),o=!0)},o(t){Kt(n.$$.fragment,t),o=!1},d(t){t&&z(e),ue(n)}}}function Cu(t){let e,n,r,o,i,a,l,c,u=Qt(t[0]),d=[];for(let e=0;e<u.length;e+=1)d[e]=Eu(xu(t,u,e));const h=t=>Kt(d[t],1,1,(()=>{d[t]=null}));return{c(){e=B("div"),n=B("ul");for(let t=0;t<d.length;t+=1)d[t].c();this.h()},l(t){e=nt(t,"DIV",{class:!0});var r=Z(e);n=nt(r,"UL",{class:!0});var o=Z(n);for(let t=0;t<d.length;t+=1)d[t].l(o);o.forEach(z),r.forEach(z),this.h()},h(){J(n,"class",r=_u.menu__list),J(e,"class",o=Be("menu",_u,t[7])+" "+(t[8]?ve.root_platform_desktop:"")+" "+t[9]),ct(e,"top",t[4]),ct(e,"left",t[3]),ct(e,"width",t[5]),ct(e,"height",t[6])},m(r,o){M(r,e,o),O(e,n);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(n,null);t[17](e),a=!0,l||(c=[q(wu,"click",t[12]),q(wu,"resize",t[13])],l=!0)},p(t,r){let[i]=r;if(17411&i){let e;for(u=Qt(t[0]),e=0;e<u.length;e+=1){const r=xu(t,u,e);d[e]?(d[e].p(r,i),Gt(d[e],1)):(d[e]=Eu(r),d[e].c(),Gt(d[e],1),d[e].m(n,null))}for(qt(),e=u.length;e<d.length;e+=1)h(e);Jt()}(!a||384&i&&o!==(o=Be("menu",_u,t[7])+" "+(t[8]?ve.root_platform_desktop:"")+" "+t[9]))&&J(e,"class",o),16&i&&ct(e,"top",t[4]),8&i&&ct(e,"left",t[3]),32&i&&ct(e,"width",t[5]),64&i&&ct(e,"height",t[6])},i(t){if(!a){for(let t=0;t<u.length;t+=1)Gt(d[t]);t&&Ot((()=>{a&&(i||(i=Zt(e,bu,{y:20},!0)),i.run(1))})),a=!0}},o(t){d=d.filter(Boolean);for(let t=0;t<d.length;t+=1)Kt(d[t]);t&&(i||(i=Zt(e,bu,{y:20},!1)),i.run(0)),a=!1},d(n){n&&z(e),R(d,n),t[17](null),n&&i&&i.end(),l=!1,s(c)}}}function Au(t,e,n){let r,o,{ownerNode:i}=e,{items:a}=e,{parentComponentContext:s}=e;const l=Ct(ye),c=l.getCustomization("menuPopupClass")||"",u=l.getCustomization("menuItemClass")||"",d=l.isDesktop;p(t,d,(t=>n(8,o=t)));const h=Date.now(),f=function(){const t=_t();return function(e,n){let{cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t.$$.callbacks[e];if(o){const i=dt(e,n,{cancelable:r});return o.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}();let g,m=!1,v="",y="",$="",b="",_=null;function w(){if(!g||!i)return;const t=g.parentElement;if(!t)return;const e=i.getBoundingClientRect(),r=g.getBoundingClientRect(),o=t.getBoundingClientRect(),a=window.innerWidth,s=window.innerHeight;let l=0,c=0,u=r.width,d=r.height;l=e.left-o.left,c=e.bottom-o.top,l+u>a&&(l=a-u),l<0&&(l=0),c+d>s&&(c=e.top-o.top-d>0?e.top-o.top-d:s-d),c<0&&(c=0),n(3,v="".concat(l,"px")),n(4,y="".concat(c,"px")),n(5,$=""),n(6,b=""),n(16,m=!0),"undefined"==typeof ResizeObserver||_||(_=new ResizeObserver((()=>{requestAnimationFrame(w)})),_.observe(g))}return wt((()=>{if(l.tooltipRoot){const t=window.getComputedStyle(g);n(2,g.style.fontSize=t.fontSize,g),n(2,g.style.fontFamily=t.fontFamily,g),n(2,g.style.lineHeight=t.lineHeight,g),l.tooltipRoot.appendChild(g)}})),xt((()=>{m||w()})),kt((()=>{null==_||_.disconnect()})),t.$$set=t=>{"ownerNode"in t&&n(15,i=t.ownerNode),"items"in t&&n(0,a=t.items),"parentComponentContext"in t&&n(1,s=t.parentComponentContext)},t.$$.update=()=>{65536&t.$$.dirty&&n(7,r={visible:m})},[a,s,g,v,y,$,b,r,o,c,u,d,function(t){Date.now()-h<100||t.composedPath().includes(g)||f("close")},function(){w()},function(){return f("close"),!0},i,m,function(t){Vt[t?"unshift":"push"]((()=>{g=t,n(2,g)}))}]}const ju=class extends pe{constructor(t){super(),de(this,t,Au,Cu,d,{ownerNode:15,items:0,parentComponentContext:1})}},{Map:Vu}=j;function Du(t,e,n){const r=t.slice();return r[115]=e[n],r}function Fu(t){let e,n,r,o,i,a,s,l,c,u;n=new Rs({props:{svgFiltersMap:t[5]}}),o=new Ds({props:{componentContext:t[6]}});let d=t[3]&&Su(t),h=t[4]&&Nu(t);return{c(){e=B("div"),se(n.$$.fragment),r=H(),se(o.$$.fragment),i=H(),d&&d.c(),a=H(),h&&h.c(),this.h()},l(t){e=nt(t,"DIV",{class:!0,dir:!0});var s=Z(e);le(n.$$.fragment,s),r=it(s),le(o.$$.fragment,s),i=it(s),d&&d.l(s),a=it(s),h&&h.l(s),s.forEach(z),this.h()},h(){J(e,"class",s=""+(ve.root+(t[7]?" ".concat(ve.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))),J(e,"dir",t[8])},m(t,s){M(t,e,s),ce(n,e,null),O(e,r),ce(o,e,null),O(e,i),d&&d.m(e,null),O(e,a),h&&h.m(e,null),l=!0,c||(u=q(e,"touchstart",Lu,{passive:!0}),c=!0)},p(t,r){const i={};32&r[0]&&(i.svgFiltersMap=t[5]),n.$set(i);const c={};64&r[0]&&(c.componentContext=t[6]),o.$set(c),t[3]?d?(d.p(t,r),8&r[0]&&Gt(d,1)):(d=Su(t),d.c(),Gt(d,1),d.m(e,a)):d&&(qt(),Kt(d,1,1,(()=>{d=null})),Jt()),t[4]?h?(h.p(t,r),16&r[0]&&Gt(h,1)):(h=Nu(t),h.c(),Gt(h,1),h.m(e,null)):h&&(qt(),Kt(h,1,1,(()=>{h=null})),Jt()),(!l||129&r[0]&&s!==(s=""+(ve.root+(t[7]?" ".concat(ve.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&J(e,"class",s),(!l||256&r[0])&&J(e,"dir",t[8])},i(t){l||(Gt(n.$$.fragment,t),Gt(o.$$.fragment,t),Gt(d),Gt(h),l=!0)},o(t){Kt(n.$$.fragment,t),Kt(o.$$.fragment,t),Kt(d),Kt(h),l=!1},d(t){t&&z(e),ue(n),ue(o),d&&d.d(),h&&h.d(),c=!1,u()}}}function Su(t){let e,n,r=[],o=new Vu,i=Qt(t[3]);const a=t=>t[115].internalId;for(let e=0;e<i.length;e+=1){let n=Du(t,i,e),s=a(n);o.set(s,r[e]=Pu(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=W()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=W()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);M(t,e,o),n=!0},p(t,n){72&n[0]&&(i=Qt(t[3]),qt(),r=ee(r,n,a,1,t,i,o,e.parentNode,te,Pu,e,Du),Jt())},i(t){if(!n){for(let t=0;t<i.length;t+=1)Gt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)Kt(r[t]);n=!1},d(t){t&&z(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function Pu(t,e){let n,r,o;return r=new $u({props:{ownerNode:e[115].ownerNode,data:e[115].desc,internalId:e[115].internalId,parentComponentContext:e[6]}}),{key:t,first:null,c(){n=W(),se(r.$$.fragment),this.h()},l(t){n=W(),le(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){M(t,n,e),ce(r,t,e),o=!0},p(t,n){e=t;const o={};8&n[0]&&(o.ownerNode=e[115].ownerNode),8&n[0]&&(o.data=e[115].desc),8&n[0]&&(o.internalId=e[115].internalId),64&n[0]&&(o.parentComponentContext=e[6]),r.$set(o)},i(t){o||(Gt(r.$$.fragment,t),o=!0)},o(t){Kt(r.$$.fragment,t),o=!1},d(t){t&&z(n),ue(r,t)}}}function Nu(t){let e,n;return e=new ju({props:{ownerNode:t[4].node,items:t[4].items,parentComponentContext:t[6]}}),e.$on("close",t[39]),{c(){se(e.$$.fragment)},l(t){le(e.$$.fragment,t)},m(t,r){ce(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.ownerNode=t[4].node),16&n[0]&&(r.items=t[4].items),64&n[0]&&(r.parentComponentContext=t[6]),e.$set(r)},i(t){n||(Gt(e.$$.fragment,t),n=!0)},o(t){Kt(e.$$.fragment,t),n=!1},d(t){ue(e,t)}}}function Iu(t){let e,n,r=!t[1]&&!t[2]&&t[6]&&Fu(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[1]||t[2]||!t[6]?r&&(qt(),Kt(r,1,1,(()=>{r=null})),Jt()):r?(r.p(t,n),70&n[0]&&Gt(r,1)):(r=Fu(t),r.c(),Gt(r,1),r.m(e.parentNode,e))},i(t){n||(Gt(r),n=!0)},o(t){Kt(r),n=!1},d(t){t&&z(e),r&&r.d(t)}}}let Ou=ge(!0),Tu=0;function Mu(){Ou.set(!1)}function zu(){Ou.set(!0)}const Ru=new Set(["string","integer","number","url","color","boolean"]);function Bu(t,e){return t&&e?new Map([...t,...e]):t||e||void 0}function Lu(){}function Uu(t,e,n){let r,o,i,a;var s,l,c,u;let{id:d}=e,{json:h={}}=e,{platform:f="auto"}=e,{theme:g="system"}=e,{globalVariablesController:m=new ou}=e,{mix:v=""}=e,{customization:y={}}=e,{builtinProtocols:$=["http","https","tel","mailto","intent"]}=e,{extensions:b=new Map}=e,{onError:_}=e,{onStat:w}=e,{onCustomAction:x}=e,{onComponent:k}=e,{typefaceProvider:E=(t=>"")}=e,{fetchInit:C={}}=e,{tooltipRoot:A}=e,{customComponents:j}=e,{direction:V="ltr"}=e,{store:D}=e,F=ge("desktop"===f);if(p(t,F,(t=>n(7,i=t))),"auto"===f&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");F.set(!t.matches),t.addListener((()=>{F.set(!t.matches)}))}let S="light",P=null;const N=ge("rtl"===V?"rtl":"ltr");function I(){"system"===g&&P&&n(36,S=P.matches?"dark":"light")}p(t,N,(t=>n(8,a=t)));const O=new Set($);let T=!1,M=!1;d||(M=!0,Y($e(new Error('"id" prop is required'))));const z={stateChange:!1},R=nu(m),B=ru(m),L=new Map,U=new Map,H=new Map;let W,q=null,J=0,G=[];const K=[];function X(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=Zc(e,t,D);if(!o.hasExpression)return e;const i=Bu(U,n);return o.applyVars(i,r)}function Y(t){_?_({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function Z(t,e){w&&w({type:t,action:e})}function Q(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type&&t.type in r;){if(({json:t,templateContext:e}=Bs(t,e,r,Y)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}}let tt=0;function et(t){return"".concat(d,"-").concat(tt++)}let nt={},rt={};async function ot(t,e){const o=t.url?String(t.url):"",i=t.typed;if(!en(t))return;const a=(null==e?void 0:e.logError)||Y;if(o)try{const i=o.replace(/div-action:\/\//,""),s=/([^?]+)\?(.+)/.exec(i);if(!s)return;const l=new URLSearchParams(s[2]);switch(s[1]){case"set_state":await async function(t){if(!t)throw new Error("Missing state id");let e=ft,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],o=n[t+1];let i=e.getChild(r);if(!i)return;await i.setState(o),e=i}}(l.get("state_id"));break;case"set_current_item":case"set_previous_item":case"set_next_item":case"scroll_to_start":case"scroll_to_end":case"scroll_backward":case"scroll_forward":case"scroll_to_position":!function(t,e,n){let{item:r,step:o,overflow:i}=n;var a,s,l,c,u;if(!e)throw new Error('Missing id for "'.concat(t,'" action'));const d=Number(r);if("set_current_item"===t&&Number.isNaN(d))throw new Error('Incorrect item for "'.concat(t,'" action'));let h=Number(o);if(o||"set_previous_item"!==t&&"set_next_item"!==t||(h=1),!o&&("scroll_backward"===t||"scroll_forward"===t||"scroll_to_position"===t)||Number.isNaN(h))throw new Error('Incorrect step value for "'.concat(t,'" action'));if(i&&"clamp"!==i&&"ring"!==i)throw new Error('Incorrect overflow value for "'.concat(t,'" action'));i=i||"clamp";const p=dt(e);if(p)switch(t){case"set_current_item":return void p.setCurrentItem(d);case"set_previous_item":return void p.setPreviousItem(h,i);case"set_next_item":return void p.setNextItem(h,i);case"scroll_to_start":return void(null===(a=p.scrollToStart)||void 0===a||a.call(p));case"scroll_to_end":return void(null===(s=p.scrollToEnd)||void 0===s||s.call(p));case"scroll_backward":return void(null===(l=p.scrollBackward)||void 0===l||l.call(p,h,i));case"scroll_forward":return void(null===(c=p.scrollForward)||void 0===c||c.call(p,h,i));case"scroll_to_position":null===(u=p.scrollToPosition)||void 0===u||u.call(p,h)}}(s[1],l.get("id"),{item:l.get("item"),step:l.get("step"),overflow:l.get("overflow")});break;case"set_variable":const c=l.get("name"),u=l.get("value");if(c&&null!==u){const t=U.get(c);if(t){const e=t.getType();"dict"===e||"array"===e?a($e(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:c}})):t.set(u)}else a($e(new Error("Cannot find variable"),{additional:{name:c}}))}else a($e(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const d=l.get("action"),h=l.get("id");q?q.execTimerAction(h,d):a($e(new Error("Incorrect timer action"),{additional:{id:h,action:d}}));break;case"video":!function(t,e,n){const r=(null==n?void 0:n.logError)||Y;if(t){const n=dt(t);n?"start"===e?n.start():"pause"===e?n.pause():r($e(new Error("Unknown video action"),{additional:{id:t,action:e}})):r($e(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else r($e(new Error("Missing id in video action"),{additional:{action:e}}))}(l.get("id"),l.get("action"),e);break;case"download":!function(t,e,n){const o=(null==n?void 0:n.logError)||Y;if(t){let n;n="function"==typeof C?C(t):C,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,a,s;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=lt.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return o($e(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void it(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_fail_actions)}n.patch.changes.forEach((t=>{const e=lt.get(t.id);e&&e.replaceWith(t.id,t.items)})),it(null===(s=e.download_callbacks)||void 0===s?void 0:s.on_success_actions)}}else o($e(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;o($e(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),it(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else o($e(new Error("Missing url in download action"),{additional:{url:t}}))}(l.get("url"),t,e);break;case"show_tooltip":!function(t,e,r){var o;const i=(null==r?void 0:r.logError)||Y;if(!t)return void i($e(new Error("Missing id in show_tooltip action")));const a=ut.get(t);if(!a)return void i($e(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&G.some((e=>e.desc.id===t)))return;const s={internalId:++J,ownerNode:a.onwerNode,desc:a.tooltip,timeoutId:0};n(3,G=[...G,s]);const l=null!==(o=a.tooltip.duration)&&void 0!==o?o:5e3;l&&(s.timeoutId=window.setTimeout((()=>{s.timeoutId=0,n(3,G=G.filter((t=>t.internalId!==s.internalId)))}),l))}(l.get("id"),l.get("multiple"),e);break;case"hide_tooltip":!function(t,e){const r=(null==e?void 0:e.logError)||Y;t?n(3,G=G.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):r($e(new Error("Missing id in hide_tooltip action")))}(l.get("id"),e);break;case"set_stored_value":!function(t,e,n,r,o){const i=(null==t?void 0:t.logError)||Y;if(!D)return void i($e(new Error("Store is not configured")));let a=n;e&&a&&r&&o?Ru.has(r)?("integer"===r||"number"===r?a=Number(a):"boolean"===r&&(a="true"===a),D.setValue(e,r,a,Number(o))):i($e(new Error("Incorrect stored type"))):i($e(new Error("Missing required params for set_stored_value")))}(e,l.get("name"),l.get("value"),l.get("type"),l.get("lifetime"));break;default:a($e(new Error("Unknown type of action"),{additional:{url:o}}))}}catch(t){a($e(t,{additional:{url:o}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=U.get(t);n?n.getType()===e.type?n.setValue(e.value):a($e(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):a($e(new Error("Cannot find variable"),{additional:{name:t}}))}else a($e(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:o,value:i}=n;!i||"number"!=typeof o&&void 0!==o?e($e(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):cu(t,e,n,(t=>{const a=t.getValue();if("number"==typeof o&&(o<0||o>a.length))e($e(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:a.length}}));else{const e=a.slice();"number"==typeof o?e.splice(o,0,i.value):e.push(i.value),t.setValue(e)}}))}(U,a,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:o}=n;"number"==typeof o?cu(t,e,n,(t=>{const i=t.getValue();if("number"==typeof o&&(o<0||o>=i.length))e($e(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:i.length}}));else{const e=i.slice();e.splice(o,1),t.setValue(e)}})):e($e(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(U,a,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t($e(new Error("Incorrect action"),{additional:{action:e}})):"undefined"!=typeof navigator&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e.content.value).catch((e=>{t($e(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t($e(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(a,i);break;case"focus_element":{const t=i.element_id&&ct.get(i.element_id);t?t.focus():a($e(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}case"clear_focus":try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch(t){}break;default:a($e(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function it(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!Array.isArray(t))return;const r=t.filter(en);for(let t=0;t<r.length;++t){let o=r[t];const i=o.url,a=o.typed;if(i){const t=Ie(i);if(t)if(Oe(t,O)){if(e.processUrls)if("_blank"===o.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(await ot(o,e.componentContext),await It()):o.log_id&&(at(o),await It())}else a?await ot(o,e.componentContext):e.node&&Array.isArray(o.menu_items)&&o.menu_items.length&&n(4,W={items:o.menu_items,node:e.node})}r.forEach((t=>{t.log_id&&Z("click",t)}))}function at(t){null==x||x(t)}const st=new Map,lt=new Map,ct=new Map,ut=new Map;function dt(t){if(st.has(t))return st.get(t);Y($e(new Error("Missing instance with id"),{additional:{id:t}}))}const ht=new Map;function pt(t){const e=H.get(t)||ge(void 0);return H.has(t)||H.set(t,e),e}Et(ye,{logStat:Z,hasTemplate:function(t){return t in r},processTemplate:Q,genId:et,genClass:function(t){return"divkit-".concat(et())},execAction:ot,execCustomAction:at,isRunning:function(t){return z[t]},setRunning:function(t,e){z[t]=e},registerInstance:function(t,e){st.has(t)?Y($e(new Error("Duplicate instance id"),{additional:{id:t}})):st.set(t,e)},unregisterInstance:function(t){st.delete(t)},registerParentOf:function(t,e){lt.set(t,e)},unregisterParentOf:function(t){lt.delete(t)},registerTooltip:function(t,e){const n=e.id;n&&(ut.has(n)&&Y($e(new Error("Duplicate tooltip id"),{additional:{id:n}})),ut.set(n,{onwerNode:t,tooltip:e}))},unregisterTooltip:function(t){const e=t.id;e&&(ut.delete(e),G.some((t=>t.desc.id===e))&&n(3,G=G.filter((t=>t.desc.id!==e))))},onTooltipClose:function(t){n(3,G=G.filter((e=>e.internalId!==t)))},tooltipRoot:A,registerFocusable:function(t,e){ct.set(t,e)},unregisterFocusable:function(t){ct.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(rt[r]=rt[r]||0,++rt[r],nt[r])return nt[r];const o="".concat(et(),"-svg-filter");return n(5,nt=Object.assign(Object.assign({},nt),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);rt[r]&&0==--rt[r]&&n(5,nt=Object.keys(nt).reduce(((t,e)=>(rt[e]&&(t[e]=nt[e]),t)),{}))},preparePrototypeVariables:function(t,e){const n=new Map,r=function(t,e,n){if(!(e in ca))throw new Error("Unsupported variable type");return new ca[e](t,n)}(t,"dict",e);return n.set(t,r),n},getStore:function(t){return ht.has(t)||function(t){ht.has(t)||ht.set(t,Qc[t]())}(t),ht.get(t)},getCustomization:function(t){return null==y?void 0:y[t]},getBuiltinProtocols:function(){return O},getExtension:function(t,e){const n=b.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:U,logError:Y}},registerTimeout:function(t){K.push(t)},typefaceProvider:E,isDesktop:F,isPointerFocus:Ou,customComponents:j,direction:N,componentDevtool:void 0}),Et(an,{hasAction:()=>!1});const ft={setState(t){throw new Error("Not implemented")},getChild(t){if(gt&>.has(t))return gt.get(t);Y($e(new Error("Missing state block with id"),{additional:{id:t}}))}};let gt=null;function mt(t){if(t.type in oa){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&Y($e(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=ia(t.name,t.type,t.value);L.set(t.name,e),U.set(t.name,e)}catch(e){Y($e(e,{additional:{name:t.name}}))}}}Et(Le,{registerInstance(t,e){gt||(gt=new Map),gt.has(t)?Y($e(new Error("Duplicate state with id"),{additional:{id:t}})):gt.set(t,e)},unregisterInstance(t){null==gt||gt.delete(t)},runVisibilityTransition:(t,e,n,r,o)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const vt=null===(s=null==h?void 0:h.card)||void 0===s?void 0:s.variables;Array.isArray(vt)&&vt.forEach((t=>{if(t&&t.name){if(L.has(t.name))return void Y($e(new Error("Duplicate variable"),{additional:{name:t.name}}));mt(t)}}));const yt=h.palette;yt&&yt[S].forEach((t=>{if(L.has(t.name))Y($e(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=ia(t.name,"color",t.color);L.set(t.name,e),U.set(t.name,e)}catch(e){Y($e(e,{additional:{name:t.name}}))}}));for(const[t,e]of B)U.has(t)||U.set(t,e);R.subscribe((t=>{if(t&&!U.has(t)){const e=B.get(t);U.set(t,e);const n=H.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const $t=null===(c=null==h?void 0:h.card)||void 0===c?void 0:c.timers;if($t&&"undefined"!=typeof document){const t=q=new lu({logError:Y,applyVars:t=>X(Y,t),hasVariableWithType:function(t,e){const n=U.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=U.get(t);n?n.setValue(e):Y($e(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:it});$t.forEach((e=>t.createTimer(e)))}const bt=function t(e){const n={json:{},path:[],templateContext:{},logError(t){t.additional=t.additional||{},t.additional.path=n.path.join("/"),Y(t)},execAnyActions(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return it(t,{componentContext:n,processUrls:e.processUrls,node:e.node})},getDerivedFromVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return Us(e);const o=Bu(U,n),i=Zc(e,t,D);return i.vars.length?me(i.vars.map((t=>o.get(t)||pt(t))).filter(Ve),(()=>i.applyVars(o,r))):i.hasExpression?Us(i.applyVars(o)):Us(e)}(n.logError,t,Bu(n.variables,e),r)},getJsonWithVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return X(n.logError,t,Bu(n.variables,e),r)},produceChildContext(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t(n);let i=e,a=n.templateContext;const{templateContext:s,json:l}=Q(i,a);return o.json=l,o.templateContext=s,o.origJson=e,void 0!==r.path&&o.path.push(String(r.path)),e.type&&!r.isRootState&&o.path.push(e.type),o.variables=Bu(n.variables,r.variables),r.fake&&(o.fakeElement=!0),r.isRootState&&(o.isRootState=!0),o},getVariable(t,e){const r=(n.variables||U).get(t);if(r){const o=r.getType();if(o!==e)return void n.logError($e(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:o}}))}return r}};return e?(n.parent=e,n.path=e.path.slice(),e.fakeElement&&(n.fakeElement=!0)):(n.json={type:"root"},n.isRootState=!0),n}();let _t;return wt((()=>{Tu++,1===Tu&&(window.addEventListener("keydown",Mu),window.addEventListener("pointerdown",zu)),(()=>{var t;const e=null===(t=null==h?void 0:h.card)||void 0===t?void 0:t.variable_triggers;Array.isArray(e)&&e.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void Y($e(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=Ys(t.condition,{startRule:"JsonStringContents"}),o=vl(r);if(!o.length)return void Y($e(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));me(o.map((t=>U.get(t)||pt(t))),(()=>{const t=Gc(U,D,r);return t.warnings.forEach(Y),t.result})).subscribe((async r=>{if("error"!==r.type){if(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)){const e=[];for(const n of t.actions){const t=X(Y,n);t.log_id&&(await ot(t),e.push(t))}for(const t of e)Z("trigger",t)}e=Boolean(r.value)}else Y($e(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}catch(e){Y($e(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else Y($e(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}))})()})),kt((()=>{Tu--,Tu||(window.removeEventListener("keydown",Mu),window.removeEventListener("pointerdown",zu)),q&&q.destroy(),G.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)})),K.forEach((t=>{clearTimeout(t)}))})),t.$$set=t=>{"id"in t&&n(13,d=t.id),"json"in t&&n(11,h=t.json),"platform"in t&&n(14,f=t.platform),"theme"in t&&n(12,g=t.theme),"globalVariablesController"in t&&n(15,m=t.globalVariablesController),"mix"in t&&n(0,v=t.mix),"customization"in t&&n(16,y=t.customization),"builtinProtocols"in t&&n(17,$=t.builtinProtocols),"extensions"in t&&n(18,b=t.extensions),"onError"in t&&n(19,_=t.onError),"onStat"in t&&n(20,w=t.onStat),"onCustomAction"in t&&n(21,x=t.onCustomAction),"onComponent"in t&&n(22,k=t.onComponent),"typefaceProvider"in t&&n(23,E=t.typefaceProvider),"fetchInit"in t&&n(24,C=t.fetchInit),"tooltipRoot"in t&&n(25,A=t.tooltipRoot),"customComponents"in t&&n(26,j=t.customComponents),"direction"in t&&n(27,V=t.direction),"store"in t&&n(28,D=t.store)},t.$$.update=()=>{if(4096&t.$$.dirty[0]|64&t.$$.dirty[1]&&("light"===g||"dark"===g?n(36,S=g):"system"===g?"undefined"!=typeof matchMedia?(P||(n(37,P=matchMedia("(prefers-color-scheme: dark)")),P.addListener(I)),n(36,S=P.matches?"dark":"light")):n(36,S="light"):Y($e(new Error("Unsupported theme")))),32&t.$$.dirty[1]&&S&&(yt&&yt[S].forEach((t=>{const e=U.get(t.name);e&&e.setValue(t.color)}))),2048&t.$$.dirty[0]){n(1,T=!1);const t=function(t){if(!t)return $e(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return $e(new Error("Missing card"));if(!e.states||!e.states.length)return $e(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Cs)return $e(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return $e(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return $e(new Error("Missing state_id"),{additional:{index:t}})}return null}(h);t&&(n(1,T=!0),Y(t))}if(2048&t.$$.dirty[0]&&(r=h.templates||{}),2048&t.$$.dirty[0]|8&t.$$.dirty[1]&&(null===n(34,l=null==h?void 0:h.card)||void 0===l?void 0:l.variables)&&Array.isArray(h.card.variables)&&h.card.variables!==vt&&h.card.variables.forEach((t=>{t&&t.name&&!L.has(t.name)&&mt(t)})),2048&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(38,o=null===n(35,u=null==h?void 0:h.card)||void 0===u?void 0:u.states),6&t.$$.dirty[0]|128&t.$$.dirty[1]&&o&&!T&&!M){const t={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:o.map((t=>({state_id:t.state_id.toString(),div:t.div})))};n(6,_t=bt.produceChildContext(t,{isRootState:!0}))}},[v,T,M,G,W,nt,_t,i,a,F,N,h,g,d,f,m,y,$,b,_,w,x,k,E,C,A,j,V,D,function(t){n(12,g=t)},function(){return new Map},function(){return new Map},function(t){n(11,h=t)},function(t){ot(X(Y,t))},l,u,S,P,o,()=>n(4,W=void 0)]}const Hu=class extends pe{constructor(t){super(),de(this,t,Uu,Iu,d,{id:13,json:11,platform:14,theme:12,globalVariablesController:15,mix:0,customization:16,builtinProtocols:17,extensions:18,onError:19,onStat:20,onCustomAction:21,onComponent:22,typefaceProvider:23,fetchInit:24,tooltipRoot:25,customComponents:26,direction:27,store:28,setTheme:29,getDebugVariables:30,getDebugAllVariables:31,setData:32,execAction:33},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[29]}get getDebugVariables(){return this.$$.ctx[30]}get getDebugAllVariables(){return this.$$.ctx[31]}get setData(){return this.$$.ctx[32]}get execAction(){return this.$$.ctx[33]}};class Wu{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 It()}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 qu(t){return t instanceof HTMLElement}function Ju(t){return class{constructor(t){this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(qu);r.forEach((t=>{t.style.display="none"})),e.setAttribute("data-lottie","true");const o=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),a=()=>{var t,o;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(o=this.wrapper.parentNode)||void 0===o||o.removeChild(this.wrapper),this.wrapper=void 0);const i=new Error("Failed to load lottie animation");i.level="error",i.additional={url:this.params.lottie_url},n.logError(i)};this.loadData().then((e=>{const n=this.animItem=t({container:o,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const Gu=["target","hydrate"];function Ku(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Gu),o=new Hu({target:e,props:r,hydrate:n});return{$destroy(){o.$destroy()},execAction(t){o.execAction(t)},setTheme(t){o.setTheme(t)},setData(t){o.setData(t)}}}var Xu=e.$5,Yu=e.XQ,Zu=e.rz,Qu=e.U2,td=e.XX;export{Xu as SizeProvider,Yu as createGlobalVariablesController,Zu as createVariable,Qu as lottieExtensionBuilder,td as render};
|
|
2
2
|
//# sourceMappingURL=client-hydratable.mjs.map
|